@univerjs-pro/collaboration-client-ui 0.6.3 → 0.6.4

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x21e0(_0x5f50b2,_0xfe0f18){const _0xade9a8=_0xade9();return _0x21e0=function(_0x21e079,_0x1e31a2){_0x21e079=_0x21e079-0x1b4;let _0x66636a=_0xade9a8[_0x21e079];return _0x66636a;},_0x21e0(_0x5f50b2,_0xfe0f18);}function _0xade9(){const _0x109e93=['transformStateCache','_logService','getActiveSheet','location','size','searchParams','ColorKit','_docSkeletonManagerService','saveTaskMap','activeSheet$','getSheetObject','parse','_cursors','enableLocalCache','HTTPService','children','getSheetBySheetId','IImageIoService','_labelPosition','concat','mapTo','add','symbol','DisposableCollection','_draw','sessionStatus$','top','IMessageService','@univerjs/sheets-ui','div','_docTransformStateCacheService','pluginName','cursorInfo$','_transformUndoRedoStack','InsertRangeMoveRightCommandId','save','_id','PY_RUNTIME_SCRIPT_ERROR','_backgroundColor','_getAnchorBounding','YUUMI_URL_COL_OUT_OF_RANGE','_docStateChangeManagerService','drawWith','wsSessionTicketUrl','onlineStatusTitle','trim','_drawRectRange','map','getStateCache','UnitStatus','search','findNodePositionByCharIndex','TEXT','createInstance','_docClipboardService','get','ISocketService','setTimeout','_transformHistoryAndStateStack','substring','EffectRefRangId','react/jsx-runtime','purple300','NOT_COLLAB','onPointerEnter$','@univerjs/engine-render','_anchor','MoveRangeCommandId','OTHER_CLIENT_EDITING','fill','event$','_color','getValue','ThemeService','touchDependencies','INVALID_ARGUMENT','unshift','_injector','DocCollaborationEntity','gold400','triggerDblclick','getColor','ranges','assign','_status$','collaboration-client-ui.config','LICENSE_MAX_UNITS_EXCEEDED','collab-text-anchor-','path','_localStorageService','Tools','_entityInit$','univer-online-status','20rPqskf','FromArray','key','makeDirty','M0\x200H16V16H0z','Rect','measureText','Failed','storage','startColumn','UniverSheetsUi','_docSyncEditingCollabCursorService','removeParam','_ensureSubject','clipPath','TOO_MANY_REQUESTS','_refRangeService','IConfigService','unit','getMember','28502yIAbei','code','connectInjector','error','getMergeData','prototype','result','NOT_FOUND','arc','_lastPointer','next','_shapes','TEXT_RANGE_LAYER_INDEX','UniverNetwork','SetWorksheetActivateCommand','show','_onCursorUpdate','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_registerRenderDependencies','UNIVER_SHEET','transformMutation','getVpScrollXYInfoByPosToVp','rxjs','[CollaborationDataLoaderController]','setShapeProps','BuiltInUIPart','TRANSFORM_CHANGE_OBSERVABLE_TYPE','SheetCollabCursorShape','requireSession','isTransformMutationsWithChangesetSuccess','_colorAssignService','ACTIVE_UNIT_EVENT_CHANNEL','getAncestorScale','getItem','getLocalCacheKey','_selfUnitIDs','@univerjs/core','name','_collabSessionService','_hovered','_init','_uiPartsService','currentTheme$','UniverEngineRender','isTransformMutationFailure','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','_httpService','defs','executeCommand','_sheetSkeletonManagerService','whenReady','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','4201065CCrBKQ','transformRemoteChangeset','PENDING','session.connection-failed','disposeWithMe','_anchorDot','height','then','_docTransformSelectionsService','_memberService','CollaborationController','fromEventSubject','_cachedData','getParam','string','_collabCursorState$','getSheetId','SheetSkeletonManagerService','_messageService','stringify','mutations','NodePositionConvertToCursor','getOwnPropertyDescriptor','1203456iBJqSS','runOnServer','attrs','toString','setConfig','getFocusedUnit','@univerjs/design','@univerjs/sheets','_createSocketURL','_entities','_beforeCloseService','LOCAL_CACHE_INTERVAL','useObservable','values','UNDEFINED','YUUMI_UNABLE_LOAD_URL','registerRefRange','_getSaveTimeout','range','SetSelectionsOperation','getRelativeToViewportCoord','bottom','useDependency','_hover','_handleHeartbeatEvent','_imageIoService','onStarting','@univerjs-pro/collaboration','beginPath','OnLineSingle','clsx','@univerjs/engine-formula','registerBeforeClose','selection','_urlService','replaceState','toDisposable','getCollabCursors$','_online','YUUMI_RATE_OVER_LIMIT','debug','complete','WebSocketService','isEditing','fromEvent','SNAPSHOT_INVALID_SNAPSHOT','univer-online-status-title','post','url(#on-line-single_clip0_910_349)','CHANGESET_REVISION_CONFILICT','replace','VIEW_MAIN','#fff','_hideTimer','serializeRangeWithSheet','addEventListener','Unknown\x20user','getViewport','subscribeEvent','_name','generateRandomId','length','Vector2','_handleJoinEvent','mask','_scene','_setupSubUnitSync','LocaleService','toStringTag','engine','transformMutationsWithChangeset','_session','CollaborationStatus','setParam','transformIMECache','_setupBeforeClosingHandler','collab-text-range-','memberID','onLocalMutation','collabCursorState$','init','collabStatus.syncing','_handleHover','getCollabEntity$','switchMap','href','registerComponent','SYNCED','focused$','_getSessionTicket','handleInsertRangeMoveRight','getUnhiddenWorksheets','sheetID','_getScale','createElement','history','DeleteRangeMoveUpCommandId','AWAITING_WITH_PENDING','INTERNAL_ERROR','getCurrent','className','selections','UniverDocsUi','collabStatus.fetchMiss','setAlpha','clearTimeout','body','round','RxDisposable','_initDependencies','on-line-single_clip0_910_349','UniverProCollaborationClientUi','BrowserCollaborationSocketService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','WebURLService','transformByState','m2Prime','_drawTextRange','getTypeOfUnitAdded$','svg','idSuffix','_drawAnchor','UniverCollaborationClientPlugin','deserializeRangeWithSheet','runRefRangeMutations','_scheduleHeartbeat','hovered','handleMoveRange','sessionTicket','unitID','48lPhnbU','defineProperty','_textBubble','BehaviorSubject','CLOSE_ROOM','from','_initEvent','_notificationService','_startSheetCollabCursor','onRendered','78HuzqNC','_revisionService','_initCommandExecutedListener','UniverProCollaborationClient','call','_saveCache','push','ITransformService','CommandType','_cursorInfo$','loadOfflineData','handleDeleteRangeMoveUp','_send','SNAPSHOT_HAS_BEEN_REMOVED','verdancy600','online','executionId','flatMap','pushState','runId','Disposable','contains','ISnapshotServerService','disposeUnit','ILocalCacheService','InsertColCommandId','handleInsertRow','currentSkeleton$','merge','APPLY_NON_SEQUENTIAL_REVISION','amd','collabStatus.conflict','saveOfflineData','undoState','ICommandService','createSocket','handleInsertCol','_document','collab-client.tooltip.reconnect','getDocRanges','offline','assignAColorForMemberID','NodePositionConvertToRectRange','_onCursorDelete','_renderManagerService','none','DocSelectionManagerService','eventID','blue400','_commandService','collabStatus.notCollab','color','_assignedColors','@univerjs/ui','propertyIsEnumerable','black','registerRenderModule','resize','random','dispose$','getUndoRedoMutationParamsCache','invokeId','UniverUi','addHandlerCallback','_updateURLWithCurrentState','_range','@univerjs/docs','disableLocalCache','clearInterval','takeUntil','5232fzyDLm','_univerInstanceService','PERMISSION_DENIED','unload','includes','entityInit$','_toggleOnline','getUnitId','handleDeleteRangeMoveLeft','exports','DeleteRangeMoveLeftCommandId','ENSURE_SNAPSHOT_EXECUTION','translate(.97)','_handleEvent','UPDATE_CURSOR','RemoteUniscriptService','use','_context','onlineStatus','SHEET_VIEWPORT_KEY','debounceTime','INotificationService','all','HEADER_MENU','some','fillStyle','getCoordByCell','APPLY_REVISION_CONFILICT','_transformService','CollaborationUIEventId','cursorInfo','OFFLINE','currentColor','origin','Plugin','OTHER_CLIENTS_EDITING','UniverRpc','distinctUntilChanged','rxjs/operators','UniverInstanceType','deepClone','handleInsertRangeMoveDown','325KbvYEG','registerDependencies','MemberService','debounce','CONFLICT','lineTo','setItem','_handleLeaveEvent','on-line-single','evenodd','find','imageSourceType','createIdentifier','_instanceService','_heartbeatTimer','_disabled','SessionStatus','url(#$1','CollaborationSessionService','hasOwnProperty','DocSkeletonManagerService','redoState','_localCacheService','isActive','@univerjs-pro/collaboration-client','min','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','OffLineSingle','APPLY_PERMISSION_DENIED','UNAUTHENTICATED','off-line-single_clip0_910_343','split','addClipboardHook','ILogService','_startDocCollabCursor','startsWith','moveTo','data','getCurrentSelections','collaboration.single-unit.warning','CollaborationStatusDisplay','permission.title','UNIVER_DOC','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getTypeOfUnitDisposed$','/run/','SheetsSelectionsService','_updateCollabCursors','USERS_LEAVE','updateOfflineData','m1Prime','url(#off-line-single_clip0_910_343)','restore','isArray','LOCAL_CACHE_INTERVAL_KEY','SOCKET_FAILED','_eventUnsubscribe','DocIMEInputManagerService','source','toRgbString','getConfig','fillText','DesktopCollaborationStatusDisplayController','object','_initResize','1em','params','IBeforeCloseService','52134LQxOeJ','CollaborationDataLoaderController','Inject','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','icon','RichTextEditingMutation','session.collaboration-timeout','handleIRemoveCol','delete','current','send','urlChange$','univer-flex\x20univer-items-center','colorChannel1','InsertRowCommandId','_config','_getMergeRange','LICENSE_IMPORT_SIZE_EXCEEDED','indexOf','useRef','doc.mutation.rich-text-editing','@univerjs/docs-ui','roomMembers','MessageType','_transformPreviousActiveRange','ILocalStorageService','subUnitId','_localeService','dispose','_roomMembers$','_docTransformIMECacheService','React','onPointerLeave$','_clearOtherTimers','Workbook','function','_collabCursorController','getRenderById','LICENSE_EXPORT_SIZE_EXCEEDED','collab-rect-range-','_registerDependencies','endColumn','@univerjs/drawing','operators','DOC_RANGE_TYPE','row','text','setStateCache','onCommandExecuted','xlink:href','_unitOnClients','pipe','...','Injector','_onRefRangeChange','_colorIndex','CONNECTOR_DATA_TOO_LARGE','CollaborationUIEventService','throttleTime','useCallback','entries','univer-online-status-icon','ONLINE','_cursorShapes','getOwnPropertySymbols','_initStatusListener','forEach','collaboration.closeRoom','subscribe','unitId','unsubscribe','with','@univerjs/rpc','_initEntityListener','tag','getRangePointData','FETCH_MISS','setActiveRange','_collaborationController','_updateSubUnitFromURLParams','RECT','UniverDrawing','IUniverInstanceService','IURLService','closePath','syncEditingCollabCursor','ticket','UniverCore','351954NwyyqO','_unitStatus','session.will-retry','getCellPositionByOffset','UniverProCollaboration','onMouseMove','asObservable','_updateLocalCursor','UNRECOGNIZED','_themeService','addObject','9695FmjXgJ','Warning','has','_getSheetObject','APPLY_DUPLICATED','font','_removeCollabCursors','saveImage','_refreshCollabCursors','transformSelections','set','column','IDocClipboardService','rgba(255,\x20255,\x20255,\x200.01)','Error','getUnitStatus$','104248oKlYVZ','CollaborationEvent','@univerjs/network','filter','width','_saveTaskMap','collabStatus.synced','apply','_dataLoaderService','subunit','textRanges','getUniverSheetInstance','YUUMI_SUBSCRIPTION_NOT_FOUND','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','DEFAULT_WS_SESSION_TICKET_URL','mergeOverrideWithDependencies','SUBMIT_CHANGESET_TIMEOUT','MUTATION','DependentOn','UniverDocs','_scheduleClearOtherTimer','type','exhaustSavingTask','forwardRef','application/json','fillRule','jsx','_scheduleSaving','COLORS','defIds','_cursor','Tooltip','_toggleOffline','AWAITING','permission.content','react','jiqing500','_render','displayName','getCurrentRevOfUnit','_collaborationUIEventService','sheetId','setUndoRedoMutationParamsCache','Rectangle','RemoveRowCommandId','APPLY_REJECT','_syncEditingCollabCursorService','docStateChange$','_configService','Shape','addObjects','onPointerMove$','UniverCollaborationClientUIPlugin','_removeClearOtherTimer'];_0xade9=function(){return _0x109e93;};return _0xade9();}(function(_0x509cf0,_0x44a1f8){const _0x20247a=_0x21e0,_0x2cf9aa=_0x509cf0();while(!![]){try{const _0x2bb42a=parseInt(_0x20247a(0x404))/0x1*(parseInt(_0x20247a(0x337))/0x2)+parseInt(_0x20247a(0x40e))/0x3*(parseInt(_0x20247a(0x290))/0x4)+parseInt(_0x20247a(0x1d9))/0x5*(-parseInt(_0x20247a(0x21d))/0x6)+-parseInt(_0x20247a(0x280))/0x7*(parseInt(_0x20247a(0x454))/0x8)+-parseInt(_0x20247a(0x275))/0x9+-parseInt(_0x20247a(0x323))/0xa*(-parseInt(_0x20247a(0x36b))/0xb)+-parseInt(_0x20247a(0x382))/0xc;if(_0x2bb42a===_0x44a1f8)break;else _0x2cf9aa['push'](_0x2cf9aa['shift']());}catch(_0x5b8b62){_0x2cf9aa['push'](_0x2cf9aa['shift']());}}}(_0xade9,0x7ddc1),function(_0x1754f6,_0x33ee5e){const _0x155a7d=_0x21e0;typeof exports==_0x155a7d(0x218)&&typeof module<'u'?_0x33ee5e(exports,require(_0x155a7d(0x1f1)),require(_0x155a7d(0x35b)),require(_0x155a7d(0x307)),require('@univerjs/network'),require(_0x155a7d(0x232)),require(_0x155a7d(0x247)),require(_0x155a7d(0x34d)),require(_0x155a7d(0x450)),require(_0x155a7d(0x39d)),require(_0x155a7d(0x3a1)),require('@univerjs/sheets'),require('rxjs/operators'),require(_0x155a7d(0x2e2)),require('react/jsx-runtime'),require(_0x155a7d(0x443)),require(_0x155a7d(0x388)),require(_0x155a7d(0x2b3)),require('@univerjs/rpc')):typeof define=='function'&&define[_0x155a7d(0x42c)]?define([_0x155a7d(0x1b8),_0x155a7d(0x1f1),_0x155a7d(0x35b),_0x155a7d(0x307),_0x155a7d(0x292),_0x155a7d(0x232),_0x155a7d(0x247),_0x155a7d(0x34d),'@univerjs/docs','@univerjs-pro/collaboration',_0x155a7d(0x3a1),_0x155a7d(0x389),_0x155a7d(0x1d5),_0x155a7d(0x2e2),_0x155a7d(0x303),_0x155a7d(0x443),'@univerjs/design','react',_0x155a7d(0x265)],_0x33ee5e):(_0x1754f6=typeof globalThis<'u'?globalThis:_0x1754f6||self,_0x33ee5e(_0x1754f6[_0x155a7d(0x3f1)]={},_0x1754f6[_0x155a7d(0x411)],_0x1754f6[_0x155a7d(0x274)],_0x1754f6[_0x155a7d(0x362)],_0x1754f6[_0x155a7d(0x344)],_0x1754f6[_0x155a7d(0x3e8)],_0x1754f6[_0x155a7d(0x26e)],_0x1754f6[_0x155a7d(0x34d)],_0x1754f6[_0x155a7d(0x2a3)],_0x1754f6[_0x155a7d(0x279)],_0x1754f6['UniverEngineFormula'],_0x1754f6['UniverSheets'],_0x1754f6[_0x155a7d(0x34d)][_0x155a7d(0x248)],_0x1754f6[_0x155a7d(0x32d)],_0x1754f6[_0x155a7d(0x23c)],_0x1754f6[_0x155a7d(0x44c)],_0x1754f6['UniverDesign'],_0x1754f6[_0x155a7d(0x23c)],_0x1754f6[_0x155a7d(0x1d3)]));}(this,function(_0x33bede,_0x27a090,_0x1dbd07,_0x32562c,_0x151a90,_0xae662a,_0x85201f,_0x2f5231,_0xb0690a,_0x84ca95,_0x32e977,_0x20ef79,_0x58bf80,_0x2edf0b,_0x568adf,_0x10c440,_0x35f834,_0x4888b4,_0x13ace6){'use strict';const _0x16274f=_0x21e0;var _0x216bf8=Object[_0x16274f(0x405)],_0x5e2e7f=(_0x2ac628,_0x4a1a62,_0x25de9e)=>_0x4a1a62 in _0x2ac628?_0x216bf8(_0x2ac628,_0x4a1a62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25de9e}):_0x2ac628[_0x4a1a62]=_0x25de9e,_0x128bdb=(_0x11edcf,_0x3b4f85,_0x4a8764)=>_0x5e2e7f(_0x11edcf,typeof _0x3b4f85!=_0x16274f(0x2dc)?_0x3b4f85+'':_0x3b4f85,_0x4a8764),_0x2917a7=Object[_0x16274f(0x381)],_0x2dc193=(_0x56d084,_0x45b0c0,_0x2d5268,_0x14154a)=>{const _0x359263=_0x16274f;for(var _0x18929d=_0x14154a>0x1?void 0x0:_0x14154a?_0x2917a7(_0x45b0c0,_0x2d5268):_0x45b0c0,_0x1b344a=_0x56d084[_0x359263(0x3bf)]-0x1,_0x576134;_0x1b344a>=0x0;_0x1b344a--)(_0x576134=_0x56d084[_0x1b344a])&&(_0x18929d=_0x576134(_0x18929d)||_0x18929d);return _0x18929d;},_0x2db6f6=(_0x179a4e,_0xda0f04)=>(_0x503dfc,_0x14e0a8)=>_0xda0f04(_0x503dfc,_0x14e0a8,_0x179a4e);let _0x681537=class extends _0x1dbd07[_0x16274f(0x3ee)]{constructor(_0x35a1a7,_0x3ec1f0){const _0x14f7f6=_0x16274f;super(),this[_0x14f7f6(0x2fc)]=_0x35a1a7,this[_0x14f7f6(0x39b)]=_0x3ec1f0,this[_0x14f7f6(0x35f)]();}[_0x16274f(0x35f)](){const _0x3638b5=_0x16274f,_0x543017=this;this['disposeWithMe'](this[_0x3638b5(0x2fc)][_0x3638b5(0x1f9)]({'onBeforePasteImage':async _0x576f55=>{const _0x30daa9=_0x3638b5,_0x4bc8c3=await _0x543017['_imageIoService'][_0x30daa9(0x287)](_0x576f55);return _0x4bc8c3?{'source':_0x4bc8c3[_0x30daa9(0x213)],'imageSourceType':_0x4bc8c3[_0x30daa9(0x1e4)]}:null;}}));}};_0x681537=_0x2dc193([_0x2db6f6(0x0,_0xae662a[_0x16274f(0x28c)]),_0x2db6f6(0x1,_0x85201f[_0x16274f(0x2d7)])],_0x681537);const _0x1b7adc=[_0x16274f(0x304),_0x16274f(0x2b4),_0x16274f(0x41c),'red300',_0x16274f(0x43e),_0x16274f(0x315)];class _0x57d318 extends _0x1dbd07[_0x16274f(0x422)]{constructor(){const _0x5856a0=_0x16274f;super(...arguments),_0x128bdb(this,_0x5856a0(0x442),new Map()),_0x128bdb(this,_0x5856a0(0x254),0x0);}[_0x16274f(0x437)](_0x1ee5ab){const _0x1b215e=_0x16274f;if(this[_0x1b215e(0x442)]['has'](_0x1ee5ab))return this[_0x1b215e(0x442)][_0x1b215e(0x2fd)](_0x1ee5ab);const _0x4a40bc=_0x1b7adc[this['_colorIndex']];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x1b7adc[_0x1b215e(0x3bf)],this['_assignedColors'][_0x1b215e(0x28a)](_0x1ee5ab,_0x4a40bc),_0x4a40bc;}}function _0x1956ee(_0x16e078){const _0x1b84f6=_0x16274f;let _0x507994='';for(const _0x4bf489 of _0x16e078){const {startOffset:_0x554981,endOffset:_0x53214e,isActive:_0x5b4fa1,rangeType:_0x562672,segmentId:_0x427ec8,segmentPage:_0xa5fde6}=_0x4bf489;_0x507994[_0x1b84f6(0x3bf)]&&(_0x507994+=','),_0x507994+=_0x554981+':'+_0x53214e+':'+(_0x5b4fa1?'1':'0')+':'+_0x562672+':'+_0x427ec8+':'+_0xa5fde6;}return _0x507994;}function _0x22267f(_0x329f10){const _0x1fc886=_0x16274f,_0x3986db=_0x329f10['split'](','),_0x4d68ac=[];for(const _0xe058e7 of _0x3986db){const [_0x508791,_0x567fc4,_0x470180,_0x324181,_0x539953,_0x8eb6c3]=_0xe058e7[_0x1fc886(0x1f8)](':');_0x4d68ac['push']({'startOffset':Number(_0x508791),'endOffset':Number(_0x567fc4),'collapsed':_0x508791===_0x567fc4,'isActive':_0x470180==='1','rangeType':_0x324181===_0x1dbd07['DOC_RANGE_TYPE'][_0x1fc886(0x2fa)]?_0x1dbd07['DOC_RANGE_TYPE'][_0x1fc886(0x2fa)]:_0x1dbd07[_0x1fc886(0x249)][_0x1fc886(0x26d)],'segmentId':typeof _0x539953==_0x1fc886(0x379)?String(_0x539953):'','segmentPage':Number(_0x8eb6c3!=null?_0x8eb6c3:-0x1)});}return _0x4d68ac[_0x1fc886(0x1c7)](_0xb8574c=>_0xb8574c[_0x1fc886(0x1f0)])||(_0x4d68ac[0x0][_0x1fc886(0x1f0)]=!0x0),_0x4d68ac;}class _0x20d9aa extends _0x1dbd07['RxDisposable']{constructor(){const _0x78a615=_0x16274f;super(...arguments),_0x128bdb(this,_0x78a615(0x37a),new _0x2f5231[(_0x78a615(0x407))](null)),_0x128bdb(this,_0x78a615(0x3d1),this[_0x78a615(0x37a)][_0x78a615(0x27b)]());}[_0x16274f(0x272)](_0x4e0c5c){const _0x50381c=_0x16274f,{unitID:_0x18158c,memberID:_0x32c29a,textRanges:_0x201592}=_0x4e0c5c,_0x12a071=_0x1956ee(_0x201592);if(_0x12a071==='')return;const _0x419282={'unitID':_0x18158c,'memberID':_0x32c29a,'selection':_0x12a071};this[_0x50381c(0x37a)][_0x50381c(0x341)](_0x419282);}}var _0x1ffe34=Object[_0x16274f(0x381)],_0x2e5e68=(_0x2ccd99,_0x9ef08f,_0x420568,_0x27f54a)=>{for(var _0x50e1c8=_0x27f54a>0x1?void 0x0:_0x27f54a?_0x1ffe34(_0x9ef08f,_0x420568):_0x9ef08f,_0x52874d=_0x2ccd99['length']-0x1,_0x37d6ba;_0x52874d>=0x0;_0x52874d--)(_0x37d6ba=_0x2ccd99[_0x52874d])&&(_0x50e1c8=_0x37d6ba(_0x50e1c8)||_0x50e1c8);return _0x50e1c8;},_0x5b0a1f=(_0x59f552,_0x5e0bcb)=>(_0x56b0d7,_0x3faf54)=>_0x5e0bcb(_0x56b0d7,_0x3faf54,_0x59f552);const _0x5907c8=0x12c,_0x36ee06=0x64;let _0x2bef98=class extends _0x1dbd07[_0x16274f(0x3ee)]{constructor(_0x28c5e6,_0x19004a,_0xbcde12,_0x249640,_0x984d18,_0xa6fc00,_0x361ff3,_0x3538af,_0x1295a2){const _0x51f99b=_0x16274f;super(),_0x128bdb(this,_0x51f99b(0x3a8),!0x1),_0x128bdb(this,_0x51f99b(0x35f),!0x1),_0x128bdb(this,_0x51f99b(0x417),new _0x2f5231[(_0x51f99b(0x407))](new Map())),_0x128bdb(this,_0x51f99b(0x2e6),this[_0x51f99b(0x417)][_0x51f99b(0x27b)]()),_0x128bdb(this,'_roomMembers$',new _0x2f5231[(_0x51f99b(0x407))]([])),_0x128bdb(this,'roomMembers$',this[_0x51f99b(0x23a)][_0x51f99b(0x250)](_0x2f5231[_0x51f99b(0x1c3)](_0x5907c8))),_0x128bdb(this,_0x51f99b(0x27c),_0x1dbd07[_0x51f99b(0x1dc)](_0x50177d=>{const _0x3314e6=_0x51f99b,_0x3fd24c={'eventID':_0x84ca95[_0x3314e6(0x291)][_0x3314e6(0x1bd)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':_0x1956ee(_0x50177d)}};this[_0x3314e6(0x3c9)]['send'](_0x3fd24c,this[_0x3314e6(0x403)]);},_0x36ee06)),(this['unitID']=_0x28c5e6,this[_0x51f99b(0x3c9)]=_0x19004a,this[_0x51f99b(0x313)]=_0xbcde12,this[_0x51f99b(0x355)]=_0x249640,this['_memberService']=_0x984d18,this[_0x51f99b(0x2be)]=_0xa6fc00,this['_transformService']=_0x361ff3,this[_0x51f99b(0x455)]=_0x3538af,this['_commandService']=_0x1295a2);}get[_0x16274f(0x1cd)](){const _0x57aeed=_0x16274f;return this['_cursorInfo$'][_0x57aeed(0x30e)]();}get[_0x16274f(0x233)](){const _0x4cf1a5=_0x16274f;return this[_0x4cf1a5(0x23a)][_0x4cf1a5(0x30e)]();}[_0x16274f(0x239)](){const _0x3e27f8=_0x16274f;super[_0x3e27f8(0x239)](),this[_0x3e27f8(0x417)][_0x3e27f8(0x341)](new Map()),this[_0x3e27f8(0x417)]['complete'](),this['_roomMembers$']['next']([]),this[_0x3e27f8(0x23a)]['complete']();}['init'](){const _0x5c6de6=_0x16274f;this['_init']||(this[_0x5c6de6(0x35f)]=!0x0,this[_0x5c6de6(0x3c9)][_0x5c6de6(0x2df)][_0x5c6de6(0x250)](_0x2f5231[_0x5c6de6(0x453)](this[_0x5c6de6(0x449)]))[_0x5c6de6(0x261)](_0x5bad23=>{const _0x5443f9=_0x5c6de6;_0x5bad23===_0x27a090[_0x5443f9(0x1e9)][_0x5443f9(0x25b)]?this['_toggleOnline']():this[_0x5443f9(0x2b0)]();}),this[_0x5c6de6(0x3c9)]['event$'][_0x5c6de6(0x250)](_0x2f5231[_0x5c6de6(0x453)](this[_0x5c6de6(0x449)]))['subscribe'](_0x4b8eed=>{const _0x42dd96=_0x5c6de6,_0x4b52f4=_0x4b8eed[_0x42dd96(0x43d)];_0x4b52f4===_0x84ca95[_0x42dd96(0x291)][_0x42dd96(0x1bd)]&&this[_0x42dd96(0x347)](_0x4b8eed),_0x4b52f4===_0x84ca95[_0x42dd96(0x291)][_0x42dd96(0x209)]&&this['_onCursorDelete'](_0x4b8eed);}),this[_0x5c6de6(0x36f)](this[_0x5c6de6(0x43f)][_0x5c6de6(0x24d)](_0x5f4846=>{const _0x20b920=_0x5c6de6,_0x1d4f13=_0x5f4846[_0x20b920(0x21b)];_0x1d4f13!=null&&this[_0x20b920(0x3a8)]&&_0x5f4846['id']===_0xb0690a['SetTextSelectionsOperation']['id']&&_0x1d4f13[_0x20b920(0x262)]===this[_0x20b920(0x403)]&&_0x1d4f13[_0x20b920(0x3ad)]===!0x1&&_0x1d4f13[_0x20b920(0x318)]['length']>0x0&&this[_0x20b920(0x27c)](_0x1d4f13[_0x20b920(0x318)]);})),this[_0x5c6de6(0x2be)][_0x5c6de6(0x3d1)][_0x5c6de6(0x250)](_0x2f5231[_0x5c6de6(0x453)](this['dispose$']))[_0x5c6de6(0x261)](_0xf02634=>{const _0x1e736e=_0x5c6de6;if((_0xf02634==null?void 0x0:_0xf02634['unitID'])!==this[_0x1e736e(0x403)])return;const _0x2ace22={'eventID':_0x84ca95[_0x1e736e(0x291)][_0x1e736e(0x1bd)],'data':_0xf02634};this[_0x1e736e(0x347)](_0x2ace22);}),this['disposeWithMe'](this[_0x5c6de6(0x43f)][_0x5c6de6(0x24d)](_0x388591=>{const _0x54c9c8=_0x5c6de6;if(_0x388591['params']==null)return;const _0x1a0052=_0x388591[_0x54c9c8(0x21b)];if(_0x388591['id']!==_0xb0690a[_0x54c9c8(0x222)]['id']||_0x1a0052[_0x54c9c8(0x262)]!==this[_0x54c9c8(0x403)])return;const _0x197233={'id':_0x54c9c8(0x231),'params':_0x1a0052},_0x18d412=this[_0x54c9c8(0x1cd)];for(const [_0x2ab632,_0x3ca1cc]of _0x18d412){const _0x4fcf05={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x54c9c8(0x403)],'actions':null,'textRanges':_0x3ca1cc[_0x54c9c8(0x318)]}},_0x4f3d6d=this['_transformService'][_0x54c9c8(0x34b)](_0x197233,_0x4fcf05,!0x1);if(_0x84ca95[_0x54c9c8(0x363)](_0x4f3d6d))throw _0x4f3d6d['error'];_0x18d412[_0x54c9c8(0x28a)](_0x2ab632,{..._0x3ca1cc,'ranges':_0x4f3d6d['m2Prime'][_0x54c9c8(0x21b)][_0x54c9c8(0x29a)]});}queueMicrotask(()=>{const _0x2ff914=_0x54c9c8;this[_0x2ff914(0x417)][_0x2ff914(0x341)](_0x18d412);});})));}[_0x16274f(0x347)](_0x460cf6){const _0x1cebae=_0x16274f;var _0x383022,_0x1a7df9;const {memberID:_0x57eea7,selection:_0x51ba7a}=_0x460cf6[_0x1cebae(0x1fe)],_0x2f6a29=_0x22267f(_0x51ba7a),_0x214f54=(_0x1a7df9=(_0x383022=this[_0x1cebae(0x374)][_0x1cebae(0x336)](this[_0x1cebae(0x403)],_0x57eea7))==null?void 0x0:_0x383022[_0x1cebae(0x35c)])!=null?_0x1a7df9:'Unknown\x20user',_0x9ded54={'color':this[_0x1cebae(0x355)][_0x1cebae(0x437)](_0x57eea7),'name':_0x214f54,'ranges':_0x2f6a29},_0x5d8b5b=this[_0x1cebae(0x1cd)];_0x5d8b5b[_0x1cebae(0x28a)](_0x57eea7,_0x9ded54),this[_0x1cebae(0x417)][_0x1cebae(0x341)](_0x5d8b5b);}[_0x16274f(0x439)](_0x5b7de5){const _0x59bc7e=_0x16274f,{memberID:_0x151e1a}=_0x5b7de5['data'],_0x310e74=this['cursorInfo'];_0x310e74['delete'](_0x151e1a),this[_0x59bc7e(0x417)][_0x59bc7e(0x341)](_0x310e74);}[_0x16274f(0x1b5)](){const _0x12b5cd=_0x16274f;var _0x4389f2;if(this[_0x12b5cd(0x3a8)]=!0x0,((_0x4389f2=this[_0x12b5cd(0x455)][_0x12b5cd(0x387)]())==null?void 0x0:_0x4389f2[_0x12b5cd(0x1b6)]())!==this['unitID'])return;const _0x59b68b=this[_0x12b5cd(0x313)]['get'](_0xb0690a[_0x12b5cd(0x43c)])[_0x12b5cd(0x435)]();Array[_0x12b5cd(0x20e)](_0x59b68b)&&_0x59b68b[_0x12b5cd(0x3bf)]>0x0&&this['_updateLocalCursor'](_0x59b68b);}[_0x16274f(0x2b0)](){this['_online']=!0x1;}};_0x2bef98=_0x2e5e68([_0x5b0a1f(0x2,_0x1dbd07['Inject'](_0x1dbd07[_0x16274f(0x252)])),_0x5b0a1f(0x3,_0x1dbd07[_0x16274f(0x21f)](_0x57d318)),_0x5b0a1f(0x4,_0x1dbd07[_0x16274f(0x21f)](_0x27a090[_0x16274f(0x1db)])),_0x5b0a1f(0x5,_0x1dbd07[_0x16274f(0x21f)](_0x20d9aa)),_0x5b0a1f(0x6,_0x84ca95[_0x16274f(0x415)]),_0x5b0a1f(0x7,_0x1dbd07[_0x16274f(0x26f)]),_0x5b0a1f(0x8,_0x1dbd07[_0x16274f(0x430)])],_0x2bef98);var _0x820c88=Object['getOwnPropertyDescriptor'],_0x4d6ad5=(_0x44be67,_0x8076b7,_0x638dc6,_0xa9d727)=>{const _0x263b3e=_0x16274f;for(var _0x477324=_0xa9d727>0x1?void 0x0:_0xa9d727?_0x820c88(_0x8076b7,_0x638dc6):_0x8076b7,_0x1f5d1a=_0x44be67[_0x263b3e(0x3bf)]-0x1,_0x3b49a5;_0x1f5d1a>=0x0;_0x1f5d1a--)(_0x3b49a5=_0x44be67[_0x1f5d1a])&&(_0x477324=_0x3b49a5(_0x477324)||_0x477324);return _0x477324;},_0x45efd4=(_0x1cf0ef,_0x4caabb)=>(_0x4664dc,_0x99ed4b)=>_0x4caabb(_0x4664dc,_0x99ed4b,_0x1cf0ef);const _0x4148ee=0x12c,_0x1508ae=0x64,_0x22d33f=()=>{let _0x53bce3=[],_0x240dee=!0x1;return _0x107514=>{_0x53bce3['push'](_0x107514),_0x240dee||(_0x240dee=!0x0,setTimeout(()=>{const _0x2d1107=_0x21e0;_0x53bce3[_0x2d1107(0x25f)](_0x4616d4=>_0x4616d4()),_0x53bce3=[],_0x240dee=!0x1;}));};};let _0x5b0daa=class extends _0x1dbd07[_0x16274f(0x3ee)]{constructor(_0x4e32b6,_0x1ea99e,_0x459cac,_0x1fd4c8,_0x32aded,_0x218298,_0x5a4d47,_0x4a84ab){const _0x57f42d=_0x16274f;super(),_0x128bdb(this,_0x57f42d(0x3a8),!0x1),_0x128bdb(this,'_init',!0x1),_0x128bdb(this,_0x57f42d(0x417),new _0x2f5231[(_0x57f42d(0x407))](new Map())),_0x128bdb(this,'cursorInfo$',this[_0x57f42d(0x417)][_0x57f42d(0x27b)]()),_0x128bdb(this,_0x57f42d(0x23a),new _0x2f5231[(_0x57f42d(0x407))]([])),_0x128bdb(this,'roomMembers$',this[_0x57f42d(0x23a)][_0x57f42d(0x250)](_0x2f5231[_0x57f42d(0x1c3)](_0x4148ee))),_0x128bdb(this,_0x57f42d(0x27c),_0x1dbd07['debounce']((_0x288dee,_0x56d9d9)=>{const _0x1f3011=_0x57f42d,_0x1691ea={'eventID':_0x84ca95[_0x1f3011(0x291)][_0x1f3011(0x1bd)],'data':{'unitID':this[_0x1f3011(0x403)],'memberID':this['_session']['getMemberID'](),'selection':_0x32e977[_0x1f3011(0x3b8)](_0x288dee,_0x56d9d9[_0x1f3011(0x394)])}};this[_0x1f3011(0x3c9)][_0x1f3011(0x227)](_0x1691ea,this['unitID']);},_0x1508ae)),(this[_0x57f42d(0x403)]=_0x4e32b6,this[_0x57f42d(0x3c9)]=_0x1ea99e,this[_0x57f42d(0x313)]=_0x459cac,this[_0x57f42d(0x355)]=_0x1fd4c8,this['_memberService']=_0x32aded,this[_0x57f42d(0x455)]=_0x218298,this[_0x57f42d(0x43f)]=_0x5a4d47,this[_0x57f42d(0x333)]=_0x4a84ab);}get['cursorInfo'](){const _0xf5a653=_0x16274f;return this[_0xf5a653(0x417)][_0xf5a653(0x30e)]();}get[_0x16274f(0x233)](){const _0x29f7ab=_0x16274f;return this[_0x29f7ab(0x23a)][_0x29f7ab(0x30e)]();}[_0x16274f(0x239)](){const _0x7dc2a0=_0x16274f;super[_0x7dc2a0(0x239)](),this[_0x7dc2a0(0x417)][_0x7dc2a0(0x341)](new Map()),this[_0x7dc2a0(0x417)][_0x7dc2a0(0x3ab)](),this[_0x7dc2a0(0x23a)][_0x7dc2a0(0x341)]([]),this[_0x7dc2a0(0x23a)][_0x7dc2a0(0x3ab)]();}[_0x16274f(0x3d2)](){const _0x276396=_0x16274f;this['_init']||(this[_0x276396(0x35f)]=!0x0,this['_session'][_0x276396(0x2df)]['pipe'](_0x2f5231[_0x276396(0x453)](this[_0x276396(0x449)]))[_0x276396(0x261)](_0x5a1b2c=>{const _0x36d06e=_0x276396;_0x5a1b2c===_0x27a090['SessionStatus'][_0x36d06e(0x25b)]?this[_0x36d06e(0x1b5)]():this[_0x36d06e(0x2b0)]();}),this[_0x276396(0x3c9)]['event$'][_0x276396(0x250)](_0x2f5231[_0x276396(0x453)](this[_0x276396(0x449)]))[_0x276396(0x261)](_0x44ae2a=>{const _0x56c687=_0x276396,_0x16347b=_0x44ae2a[_0x56c687(0x43d)];_0x16347b===_0x84ca95[_0x56c687(0x291)]['UPDATE_CURSOR']&&this[_0x56c687(0x347)](_0x44ae2a),_0x16347b===_0x84ca95[_0x56c687(0x291)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x44ae2a);}),this['_onRefRangeChange'](),this[_0x276396(0x36f)](this['_commandService'][_0x276396(0x24d)](_0x2ebf53=>{const _0x4a99c5=_0x276396;if(this[_0x4a99c5(0x3a8)]&&_0x2ebf53['id']===_0x20ef79[_0x4a99c5(0x395)]['id']&&_0x2ebf53[_0x4a99c5(0x21b)][_0x4a99c5(0x262)]===this[_0x4a99c5(0x403)]){const _0x34a4f1=_0x2ebf53[_0x4a99c5(0x21b)];this[_0x4a99c5(0x27c)](_0x34a4f1[_0x4a99c5(0x237)],_0x34a4f1[_0x4a99c5(0x3e7)][0x0]);}})));}[_0x16274f(0x347)](_0x45e33f){const _0x330d4c=_0x16274f;var _0x134c8a,_0x129ca4;const {memberID:_0x536858,selection:_0x130753}=_0x45e33f[_0x330d4c(0x1fe)],{sheetName:_0x1a9e9e,range:_0x3f2e2d}=_0x32e977[_0x330d4c(0x3fd)](_0x130753),_0x3218bd={'name':(_0x129ca4=(_0x134c8a=this[_0x330d4c(0x374)]['getMember'](this[_0x330d4c(0x403)],_0x536858))==null?void 0x0:_0x134c8a['name'])!=null?_0x129ca4:_0x330d4c(0x3ba),'range':this['_getMergeRange'](_0x1a9e9e,_0x3f2e2d),'sheetID':_0x1a9e9e,'color':this[_0x330d4c(0x355)][_0x330d4c(0x437)](_0x536858),'selection':_0x130753},_0x4212f7=this[_0x330d4c(0x1cd)];_0x4212f7[_0x330d4c(0x28a)](_0x536858,_0x3218bd),this[_0x330d4c(0x417)][_0x330d4c(0x341)](_0x4212f7);}[_0x16274f(0x439)](_0x26357f){const _0xc52fc7=_0x16274f,{memberID:_0x5400f9}=_0x26357f[_0xc52fc7(0x1fe)],_0x43bd17=this['cursorInfo'];_0x43bd17[_0xc52fc7(0x225)](_0x5400f9),this['_cursorInfo$'][_0xc52fc7(0x341)](_0x43bd17);}[_0x16274f(0x22d)](_0x13485e,_0xfccde6){const _0x55b913=_0x16274f;var _0x2ad37f,_0x4df026;const _0x13ae44=(_0x4df026=(_0x2ad37f=this['_univerInstanceService'][_0x55b913(0x29b)](this[_0x55b913(0x403)]))==null?void 0x0:_0x2ad37f[_0x55b913(0x2d6)](_0x13485e))==null?void 0x0:_0x4df026[_0x55b913(0x33b)]();return(_0x13ae44==null?void 0x0:_0x13ae44[_0x55b913(0x1e3)](_0x25c1d9=>_0x1dbd07[_0x55b913(0x2bb)][_0x55b913(0x423)](_0x25c1d9,_0xfccde6)))||_0xfccde6;}[_0x16274f(0x253)](){const _0x85028e=_0x16274f,_0x4c135e=new _0x1dbd07[(_0x85028e(0x2dd))](),_0x307a5e=_0x22d33f(),_0x100a05=()=>{const _0x3c5a1f=_0x85028e;_0x4c135e[_0x3c5a1f(0x239)]();const _0x386abb=(_0x32a354,_0x1dded2,_0x5593b2,_0x37a7a4)=>{const _0x4e3449=_0x3c5a1f;let _0x498764=[];switch(_0x32a354['id']){case _0x20ef79[_0x4e3449(0x302)][_0x4e3449(0x1b9)]:{_0x498764=_0x20ef79[_0x4e3449(0x1b7)](_0x32a354,_0x37a7a4);break;}case _0x20ef79[_0x4e3449(0x302)][_0x4e3449(0x3e2)]:{_0x498764=_0x20ef79[_0x4e3449(0x419)](_0x32a354,_0x37a7a4);break;}case _0x20ef79['EffectRefRangId'][_0x4e3449(0x427)]:{_0x498764=_0x20ef79[_0x4e3449(0x432)](_0x32a354,_0x37a7a4);break;}case _0x20ef79[_0x4e3449(0x302)]['InsertRangeMoveDownCommandId']:{_0x498764=_0x20ef79[_0x4e3449(0x1d8)](_0x32a354,_0x37a7a4);break;}case _0x20ef79[_0x4e3449(0x302)][_0x4e3449(0x2e8)]:{_0x498764=_0x20ef79[_0x4e3449(0x3dc)](_0x32a354,_0x37a7a4);break;}case _0x20ef79[_0x4e3449(0x302)][_0x4e3449(0x22b)]:{_0x498764=_0x20ef79[_0x4e3449(0x428)](_0x32a354,_0x37a7a4);break;}case _0x20ef79[_0x4e3449(0x302)][_0x4e3449(0x309)]:{_0x498764=_0x20ef79[_0x4e3449(0x401)](_0x32a354,_0x37a7a4);break;}case _0x20ef79[_0x4e3449(0x302)]['RemoveColCommandId']:{_0x498764=_0x20ef79[_0x4e3449(0x224)](_0x32a354,_0x37a7a4);break;}case _0x20ef79[_0x4e3449(0x302)][_0x4e3449(0x2bc)]:{_0x498764=_0x20ef79['handleIRemoveRow'](_0x32a354,_0x37a7a4);break;}}const _0x104296=_0x20ef79[_0x4e3449(0x3fe)](_0x498764,_0x37a7a4),_0x27ddda=this[_0x4e3449(0x1cd)][_0x4e3449(0x2fd)](_0x1dded2);if(_0x27ddda&&_0x104296){const _0xf2cc11={..._0x27ddda,'range':_0x104296};this[_0x4e3449(0x1cd)]['set'](_0x1dded2,_0xf2cc11),_0x307a5e(()=>{const _0x1c8fc5=_0x4e3449,_0x528ffd=this[_0x1c8fc5(0x333)][_0x1c8fc5(0x392)](_0x104296,_0x443029=>(_0x528ffd[_0x1c8fc5(0x239)](),_0x386abb(_0x443029,_0x1dded2,_0x5593b2,_0x104296)));_0x4c135e[_0x1c8fc5(0x2db)](_0x528ffd);});}return{'redos':[],'undos':[]};};this[_0x3c5a1f(0x1cd)][_0x3c5a1f(0x25f)]((_0x5263c6,_0x3be691)=>{const _0x5f0085=_0x3c5a1f,{range:_0x343fc0,sheetID:_0x3643eb}=_0x5263c6,_0x3e6dad=this[_0x5f0085(0x333)]['registerRefRange'](_0x343fc0,_0xf89edf=>(_0x3e6dad['dispose'](),_0x386abb(_0xf89edf,_0x3be691,_0x3643eb,_0x343fc0)));_0x4c135e[_0x5f0085(0x2db)](_0x3e6dad);});};this[_0x85028e(0x36f)](_0x1dbd07[_0x85028e(0x3a6)](this[_0x85028e(0x417)]['subscribe'](()=>{_0x100a05();})));}[_0x16274f(0x1b5)](){const _0x361e93=_0x16274f;var _0x4a5be8,_0x425916;if(this[_0x361e93(0x3a8)]=!0x0,((_0x4a5be8=this[_0x361e93(0x455)][_0x361e93(0x387)]())==null?void 0x0:_0x4a5be8[_0x361e93(0x1b6)]())!==this[_0x361e93(0x403)])return;const _0x206d86=(_0x425916=this[_0x361e93(0x313)]['get'](_0x20ef79[_0x361e93(0x207)])[_0x361e93(0x1ff)]())==null?void 0x0:_0x425916[0x0],_0x21cbc0=this['_univerInstanceService']['getCurrentUnitForType'](_0x1dbd07['UniverInstanceType']['UNIVER_SHEET'])[_0x361e93(0x2c8)]();_0x206d86&&_0x21cbc0&&this['_updateLocalCursor'](_0x21cbc0['getSheetId'](),_0x206d86);}[_0x16274f(0x2b0)](){this['_online']=!0x1;}};_0x5b0daa=_0x4d6ad5([_0x45efd4(0x2,_0x1dbd07[_0x16274f(0x21f)](_0x1dbd07[_0x16274f(0x252)])),_0x45efd4(0x3,_0x1dbd07[_0x16274f(0x21f)](_0x57d318)),_0x45efd4(0x4,_0x1dbd07[_0x16274f(0x21f)](_0x27a090[_0x16274f(0x1db)])),_0x45efd4(0x5,_0x1dbd07['IUniverInstanceService']),_0x45efd4(0x6,_0x1dbd07[_0x16274f(0x430)]),_0x45efd4(0x7,_0x1dbd07[_0x16274f(0x21f)](_0x20ef79['RefRangeService']))],_0x5b0daa);var _0x4fa61d=Object['getOwnPropertyDescriptor'],_0x49165b=(_0x5b32e2,_0xc464fc,_0x242983,_0x40101a)=>{for(var _0x3565e3=_0x40101a>0x1?void 0x0:_0x40101a?_0x4fa61d(_0xc464fc,_0x242983):_0xc464fc,_0x7017ee=_0x5b32e2['length']-0x1,_0x315798;_0x7017ee>=0x0;_0x7017ee--)(_0x315798=_0x5b32e2[_0x7017ee])&&(_0x3565e3=_0x315798(_0x3565e3)||_0x3565e3);return _0x3565e3;},_0xcd6342=(_0x43590b,_0x53bea8)=>(_0x51921e,_0x1885f7)=>_0x53bea8(_0x51921e,_0x1885f7,_0x43590b);let _0x2a1682=class extends _0x1dbd07[_0x16274f(0x3ee)]{constructor(_0x1e2252,_0x178194,_0x50ed51){const _0x5ba396=_0x16274f;super(),_0x128bdb(this,'_entities',new Map()),_0x128bdb(this,'_entityInit$',new _0x2f5231['Subject']()),(this['_univerInstanceService']=_0x1e2252,this['_injector']=_0x178194,this['_collabSessionService']=_0x50ed51,this[_0x5ba396(0x35f)]());}[_0x16274f(0x239)](){const _0x4e7ee0=_0x16274f;super[_0x4e7ee0(0x239)](),this[_0x4e7ee0(0x321)]['complete'](),this[_0x4e7ee0(0x38b)][_0x4e7ee0(0x25f)](_0x45ecad=>_0x45ecad['dispose']());}['getCollabCursors$'](_0x369a24){const _0x2c430f=_0x16274f;return this[_0x2c430f(0x38b)][_0x2c430f(0x282)](_0x369a24)?this[_0x2c430f(0x38b)][_0x2c430f(0x2fd)](_0x369a24)[_0x2c430f(0x2e6)]:this[_0x2c430f(0x321)]['pipe'](_0x2f5231[_0x2c430f(0x293)](_0x6d252b=>_0x6d252b[_0x2c430f(0x403)]===_0x369a24),_0x2f5231[_0x2c430f(0x3d6)](_0x4b4f1b=>_0x4b4f1b[_0x2c430f(0x2e6)]));}['_init'](){const _0x15c686=_0x16274f;this[_0x15c686(0x455)][_0x15c686(0x3f8)](_0x1dbd07[_0x15c686(0x1d6)][_0x15c686(0x34a)])[_0x15c686(0x250)](_0x2f5231[_0x15c686(0x453)](this['dispose$']))[_0x15c686(0x261)](async _0x22d14c=>{const _0x43fba6=_0x15c686,_0x210385=_0x22d14c['getUnitId'](),_0x2514f6=await this[_0x43fba6(0x40c)](_0x210385);this[_0x43fba6(0x321)]['next'](_0x2514f6),this[_0x43fba6(0x38b)]['set'](_0x210385,_0x2514f6);}),this[_0x15c686(0x455)][_0x15c686(0x3f8)](_0x1dbd07[_0x15c686(0x1d6)][_0x15c686(0x203)])[_0x15c686(0x250)](_0x2f5231[_0x15c686(0x453)](this[_0x15c686(0x449)]))[_0x15c686(0x250)](_0x2f5231[_0x15c686(0x293)](_0x384a59=>!_0x384a59['getUnitId']()[_0x15c686(0x1fc)]('__')))['subscribe'](async _0x1069e2=>{const _0x52072b=_0x15c686,_0x5c71e7=_0x1069e2[_0x52072b(0x1b6)](),_0x574084=await this[_0x52072b(0x1fb)](_0x5c71e7);this['_entityInit$'][_0x52072b(0x341)](_0x574084),this[_0x52072b(0x38b)][_0x52072b(0x28a)](_0x5c71e7,_0x574084);}),_0x2f5231[_0x15c686(0x42a)](this[_0x15c686(0x455)][_0x15c686(0x205)](_0x1dbd07[_0x15c686(0x1d6)][_0x15c686(0x203)]),this[_0x15c686(0x455)][_0x15c686(0x205)](_0x1dbd07[_0x15c686(0x1d6)][_0x15c686(0x34a)]))[_0x15c686(0x250)](_0x2f5231[_0x15c686(0x453)](this['dispose$']))[_0x15c686(0x261)](_0x35e81b=>{const _0x485621=_0x15c686,_0x151985=_0x35e81b[_0x485621(0x1b6)](),_0xec3326=this[_0x485621(0x38b)][_0x485621(0x2fd)](_0x151985);_0xec3326&&(_0xec3326[_0x485621(0x239)](),this[_0x485621(0x38b)]['delete'](_0x151985));});}async[_0x16274f(0x40c)](_0x22e176){const _0x508509=_0x16274f,_0x435f02=await this[_0x508509(0x35d)][_0x508509(0x353)](_0x22e176),_0x32bdde=this['_injector'][_0x508509(0x2fb)](_0x5b0daa,_0x22e176,_0x435f02);return _0x32bdde[_0x508509(0x3d2)](),_0x32bdde;}async[_0x16274f(0x1fb)](_0x8092a6){const _0x2300e1=_0x16274f,_0x3c1a14=await this['_collabSessionService'][_0x2300e1(0x353)](_0x8092a6),_0x2638bb=this[_0x2300e1(0x313)][_0x2300e1(0x2fb)](_0x2bef98,_0x8092a6,_0x3c1a14);return _0x2638bb[_0x2300e1(0x3d2)](),_0x2638bb;}};_0x2a1682=_0x49165b([_0xcd6342(0x0,_0x1dbd07['IUniverInstanceService']),_0xcd6342(0x1,_0x1dbd07['Inject'](_0x1dbd07[_0x16274f(0x252)])),_0xcd6342(0x2,_0x1dbd07[_0x16274f(0x21f)](_0x27a090['CollaborationSessionService']))],_0x2a1682);const _0x254176=0x14,_0x3caf4b=0xc8,_0x43e177=0x4,_0x518c19=0x5;function _0x565802(_0x3a820a,_0x2c1669){const _0x1def1b=_0x16274f;let {radius:_0x56ad57,width:_0x5440c0,height:_0x12456d}=_0x2c1669;_0x56ad57=_0x56ad57!=null?_0x56ad57:0x0,_0x5440c0=_0x5440c0!=null?_0x5440c0:0x1e,_0x12456d=_0x12456d!=null?_0x12456d:0x1e;let _0x10196f=0x0,_0x2fdaeb=0x0,_0x420164=0x0;_0x10196f=_0x2fdaeb=_0x420164=Math[_0x1def1b(0x1f2)](_0x56ad57,_0x5440c0/0x2,_0x12456d/0x2),_0x3a820a[_0x1def1b(0x39e)](),_0x3a820a[_0x1def1b(0x1fd)](_0x10196f,0x0),_0x3a820a[_0x1def1b(0x1de)](_0x5440c0-_0x2fdaeb,0x0),_0x3a820a['arc'](_0x5440c0-_0x2fdaeb,_0x2fdaeb,_0x2fdaeb,Math['PI']*0x3/0x2,0x0,!0x1),_0x3a820a[_0x1def1b(0x1de)](_0x5440c0,_0x12456d-_0x420164),_0x3a820a['arc'](_0x5440c0-_0x420164,_0x12456d-_0x420164,_0x420164,0x0,Math['PI']/0x2,!0x1),_0x3a820a[_0x1def1b(0x1de)](0x0,_0x12456d),_0x3a820a[_0x1def1b(0x1de)](0x0,_0x10196f),_0x3a820a[_0x1def1b(0x33f)](_0x10196f,_0x10196f,_0x10196f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3a820a[_0x1def1b(0x271)](),_0x2c1669['fill']&&(_0x3a820a[_0x1def1b(0x2e9)](),_0x3a820a[_0x1def1b(0x1c8)]=_0x2c1669[_0x1def1b(0x30b)],_0x2c1669[_0x1def1b(0x2a9)]===_0x1def1b(0x1e2)?_0x3a820a[_0x1def1b(0x30b)]('evenodd'):_0x3a820a[_0x1def1b(0x30b)](),_0x3a820a[_0x1def1b(0x20d)]());}class _0x32cf58 extends _0x32562c[_0x16274f(0x2c1)]{constructor(_0x5d5adb,_0x2fc2cf){const _0x5f2a60=_0x16274f;super(_0x5d5adb,_0x2fc2cf),_0x128bdb(this,'color'),_0x128bdb(this,_0x5f2a60(0x24b)),(this[_0x5f2a60(0x441)]=_0x2fc2cf==null?void 0x0:_0x2fc2cf['color'],this[_0x5f2a60(0x24b)]=_0x2fc2cf==null?void 0x0:_0x2fc2cf[_0x5f2a60(0x24b)]);}static['drawWith'](_0x245e77,_0x68d514){const _0x1faed8=_0x16274f,{text:_0x489972,color:_0x777d6b}=_0x68d514;_0x245e77[_0x1faed8(0x2e9)](),_0x245e77[_0x1faed8(0x285)]=_0x1faed8(0x36a);const _0x59b72a=_0x245e77[_0x1faed8(0x329)](_0x489972)[_0x1faed8(0x294)],_0x221583=Math['min'](_0x59b72a+0x2*_0x43e177,_0x3caf4b);_0x565802(_0x245e77,{'height':_0x254176,'radius':0x4,'width':_0x221583,'fill':_0x777d6b}),_0x245e77[_0x1faed8(0x1c8)]='#FFF';const _0x2cb632=_0x43e177,_0x4bb515=_0x254176-_0x518c19,_0x47da0e=_0x3caf4b-0x2*_0x43e177;if(_0x59b72a>_0x47da0e){let _0x4d8ded='',_0x38dfb7=0x0;for(const _0x546db3 of _0x489972){const _0x137ac9=_0x245e77[_0x1faed8(0x329)](_0x546db3)[_0x1faed8(0x294)];if(_0x38dfb7+_0x137ac9<=_0x47da0e-_0x245e77[_0x1faed8(0x329)](_0x1faed8(0x251))['width'])_0x4d8ded+=_0x546db3,_0x38dfb7+=_0x137ac9;else{_0x4d8ded+='...';break;}}_0x245e77[_0x1faed8(0x216)](_0x4d8ded,_0x2cb632,_0x4bb515);}else _0x245e77[_0x1faed8(0x216)](_0x489972,_0x2cb632,_0x4bb515);_0x245e77[_0x1faed8(0x20d)]();}[_0x16274f(0x2de)](_0x4182d8){_0x32cf58['drawWith'](_0x4182d8,this);}}const _0x34d45a=_0x16274f(0x31d),_0x40b46e=_0x16274f(0x3ce),_0x5c4094=_0x16274f(0x244),_0x3ab672=0x6,_0x1e8762=1.5,_0x4dc2bf=0x4,_0x54368c=1.5,_0x37c85f=_0x16274f(0x28d);class _0x2f9e0e{constructor(_0x372e07,_0x583a77,_0x46ae28,_0x513a2f){const _0x43e4bf=_0x16274f;_0x128bdb(this,'_shapes',[]),_0x128bdb(this,'_anchor',null),_0x128bdb(this,'_textBubble',null),_0x128bdb(this,_0x43e4bf(0x370),null),_0x128bdb(this,_0x43e4bf(0x3b7),null),_0x128bdb(this,_0x43e4bf(0x211),null),(this[_0x43e4bf(0x2ae)]=_0x372e07,this[_0x43e4bf(0x3c3)]=_0x583a77,this['_docSkeleton']=_0x46ae28,this[_0x43e4bf(0x433)]=_0x513a2f,this['_render']());}set['_hover'](_0x2cbee1){const _0x43995c=_0x16274f;_0x2cbee1?(this[_0x43995c(0x370)]&&this['_anchorDot']['hide'](),this[_0x43995c(0x406)]&&this[_0x43995c(0x406)][_0x43995c(0x346)]()):(this['_anchorDot']&&this[_0x43995c(0x370)][_0x43995c(0x346)](),this[_0x43995c(0x406)]&&this[_0x43995c(0x406)]['hide']());}[_0x16274f(0x239)](){const _0x3ebb7d=_0x16274f;for(const _0x45615e of this[_0x3ebb7d(0x342)])_0x45615e[_0x3ebb7d(0x239)]();this[_0x3ebb7d(0x406)]&&this['_textBubble']['dispose'](),this[_0x3ebb7d(0x370)]&&this[_0x3ebb7d(0x370)][_0x3ebb7d(0x239)](),this[_0x3ebb7d(0x308)]&&this[_0x3ebb7d(0x308)][_0x3ebb7d(0x239)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x16274f(0x2b5)](){const _0x46c9ac=_0x16274f;var _0x481756;const {_docSkeleton:_0x23f355,_document:_0xad9291}=this,{color:_0x143c74,name:_0x5cc682,ranges:_0x304b0a}=this[_0x46c9ac(0x2ae)],_0x54ffbd=_0xad9291['getOffsetConfig'](),{docsLeft:_0xce3cda,docsTop:_0x1dd530}=_0x54ffbd,_0x4d5fed=new _0xae662a[(_0x46c9ac(0x380))](_0x54ffbd,_0x23f355);for(const {startOffset:_0x15eeaa,endOffset:_0x1d58ff,rangeType:_0x8bc614,segmentId:_0x426a76,segmentPage:_0x348f37,collapsed:_0x232380,isActive:_0x2d5863}of _0x304b0a){const _0x81b4f4=_0x23f355[_0x46c9ac(0x2f9)](_0x15eeaa,!0x0,_0x426a76,_0x348f37);let _0x4d9019=_0x23f355['findNodePositionByCharIndex'](_0x1d58ff,!0x0,_0x426a76,_0x348f37);if(_0x4d9019==null&&(_0x4d9019=_0x23f355['findNodePositionByCharIndex'](_0x1d58ff-0x1,!0x1,_0x426a76,_0x348f37)),_0x2d5863){const {contentBoxPointGroup:_0x231b0d}=_0x4d5fed[_0x46c9ac(0x268)](_0x4d9019,_0x4d9019);if(_0x231b0d[_0x46c9ac(0x3bf)]===0x0)continue;this[_0x46c9ac(0x3fb)](_0x143c74,_0x231b0d,_0xce3cda,_0x1dd530,_0x5cc682),this[_0x46c9ac(0x211)]=this[_0x46c9ac(0x3d4)]();}if(_0x81b4f4&&_0x4d9019){if(_0x8bc614===_0x1dbd07['DOC_RANGE_TYPE'][_0x46c9ac(0x26d)]){const _0x44f46c=new _0xae662a[(_0x46c9ac(0x438))](_0x54ffbd,_0x23f355),{pointGroup:_0x3d9554}=(_0x481756=_0x44f46c['getRangePointData'](_0x81b4f4,_0x4d9019))!=null?_0x481756:{};if(_0x3d9554==null||_0x3d9554[_0x46c9ac(0x3bf)]===0x0)continue;this[_0x46c9ac(0x2f4)](_0x143c74,_0x3d9554,_0xce3cda,_0x1dd530);}else{if(!_0x232380){const {borderBoxPointGroup:_0x51c1fb}=_0x4d5fed[_0x46c9ac(0x268)](_0x81b4f4,_0x4d9019);if(_0x51c1fb[_0x46c9ac(0x3bf)]===0x0)continue;this['_drawTextRange'](_0x143c74,_0x51c1fb,_0xce3cda,_0x1dd530);}}}}}[_0x16274f(0x3fb)](_0x27e63b,_0x245d34,_0x1b4c94,_0x354682,_0x1afc21){const _0x439f84=_0x16274f,_0x38fb45=this[_0x439f84(0x2ed)](_0x245d34),{left:_0x2f78df,top:_0x4f6482,height:_0x53b1ce}=_0x38fb45,_0x29219d=this[_0x439f84(0x3df)](),_0x47ba9d=_0x54368c/_0x29219d,_0x4e6b97=new _0x32562c['Rect'](_0x34d45a+_0x1dbd07[_0x439f84(0x320)][_0x439f84(0x3be)](_0x3ab672),{'left':_0x2f78df+_0x1b4c94-_0x47ba9d,'top':_0x4f6482+_0x354682,'height':_0x53b1ce,'width':_0x1e8762,'fill':_0x27e63b||_0x32562c['getColor'](_0x1dbd07['COLORS'][_0x439f84(0x445)],0x0),'strokeWidth':_0x47ba9d,'stroke':_0x37c85f,'evented':!0x0});this['_anchor']=_0x4e6b97,this['_scene']['addObject'](_0x4e6b97,_0xae662a['TEXT_RANGE_LAYER_INDEX']);const _0x2b98ff=new _0x32562c['Rect'](_0x34d45a+_0x1dbd07[_0x439f84(0x320)]['generateRandomId'](_0x3ab672),{'left':_0x2f78df+_0x1b4c94-_0x47ba9d,'top':_0x4f6482+_0x354682-_0x4dc2bf/0x2,'height':_0x4dc2bf,'width':_0x4dc2bf,'fill':_0x27e63b||_0x32562c['getColor'](_0x1dbd07['COLORS'][_0x439f84(0x445)],0x0),'strokeWidth':0x0,'stroke':_0x27e63b||_0x32562c[_0x439f84(0x317)](_0x1dbd07['COLORS']['black'],0x0),'evented':!0x1});this[_0x439f84(0x370)]=_0x2b98ff,this['_scene'][_0x439f84(0x27f)](_0x2b98ff,_0xae662a[_0x439f84(0x343)]);const _0x1e7604=new _0x32cf58(_0x34d45a+_0x1dbd07[_0x439f84(0x320)][_0x439f84(0x3be)](_0x3ab672),{'left':_0x2f78df+_0x1b4c94-_0x47ba9d,'top':_0x4f6482+_0x354682-_0x254176,'text':_0x1afc21,'color':_0x27e63b});this[_0x439f84(0x406)]=_0x1e7604,this[_0x439f84(0x3c3)][_0x439f84(0x27f)](_0x1e7604,_0xae662a[_0x439f84(0x343)]),this[_0x439f84(0x399)]=!0x1;}[_0x16274f(0x3d4)](){const _0xa0caa6=_0x16274f,_0x5c865c=this[_0xa0caa6(0x308)][_0xa0caa6(0x306)]['subscribeEvent'](()=>{const _0x5934d4=_0xa0caa6;this[_0x5934d4(0x399)]=!0x0;}),_0x195baf=this['_anchor'][_0xa0caa6(0x23d)][_0xa0caa6(0x3bc)](()=>{const _0x275bf3=_0xa0caa6;this[_0x275bf3(0x3b7)]&&clearTimeout(this[_0x275bf3(0x3b7)]),this[_0x275bf3(0x3b7)]=setTimeout(()=>{const _0x288122=_0x275bf3;this[_0x288122(0x399)]=!0x1;},0x7d0);});return()=>{const _0x3641cd=_0xa0caa6;_0x5c865c['unsubscribe'](),_0x195baf[_0x3641cd(0x263)]();};}[_0x16274f(0x3f7)](_0x15b399,_0x4fae8a,_0x2facd6,_0x2d3374){const _0x390829=_0x16274f,_0x452a05=new _0x1dbd07[(_0x390829(0x2cc))](_0x15b399)[_0x390829(0x3ea)](0.2)[_0x390829(0x214)](),_0x3c2638=new _0x32562c['RegularPolygon'](_0x40b46e+_0x1dbd07[_0x390829(0x320)][_0x390829(0x3be)](_0x3ab672),{'pointsGroup':_0x4fae8a,'fill':_0x452a05||_0x32562c[_0x390829(0x317)](_0x1dbd07[_0x390829(0x2ac)][_0x390829(0x445)],0.2),'left':_0x2facd6,'top':_0x2d3374,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x390829(0x342)][_0x390829(0x414)](_0x3c2638),this['_scene'][_0x390829(0x27f)](_0x3c2638,_0xae662a[_0x390829(0x343)]);}['_drawRectRange'](_0x42ee97,_0x713dc8,_0x5ed98e,_0x442d1e){const _0x3254fd=_0x16274f,_0x3fd51d=new _0x1dbd07[(_0x3254fd(0x2cc))](_0x42ee97)['setAlpha'](0.2)[_0x3254fd(0x214)](),_0x50f3ab=new _0x32562c['RegularPolygon'](_0x5c4094+_0x1dbd07[_0x3254fd(0x320)]['generateRandomId'](_0x3ab672),{'pointsGroup':_0x713dc8,'fill':_0x3fd51d||_0x32562c['getColor'](_0x1dbd07[_0x3254fd(0x2ac)][_0x3254fd(0x445)],0.2),'left':_0x5ed98e,'top':_0x442d1e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3254fd(0x342)]['push'](_0x50f3ab),this[_0x3254fd(0x3c3)][_0x3254fd(0x27f)](_0x50f3ab,_0xae662a['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x77856d){const _0x506e2c=_0x77856d[0x0],_0x3c5fda=_0x506e2c[0x0],_0x386ab=_0x506e2c[0x2],{x:_0x3f93da,y:_0x3962cd}=_0x3c5fda,{x:_0x383399,y:_0x122990}=_0x386ab;return{'left':_0x3f93da,'top':_0x3962cd,'width':_0x383399-_0x3f93da,'height':_0x122990-_0x3962cd};}[_0x16274f(0x3df)](){const _0x59ac57=_0x16274f,{scaleX:_0x19fff4,scaleY:_0x114c50}=this[_0x59ac57(0x3c3)][_0x59ac57(0x357)]();return Math['max'](_0x19fff4,_0x114c50);}}var _0x142cef=Object[_0x16274f(0x381)],_0x3d0c21=(_0x57b979,_0x2c637c,_0x23a6d6,_0x3f59ed)=>{const _0x301fbd=_0x16274f;for(var _0x1f0b7f=_0x3f59ed>0x1?void 0x0:_0x3f59ed?_0x142cef(_0x2c637c,_0x23a6d6):_0x2c637c,_0x17aff8=_0x57b979[_0x301fbd(0x3bf)]-0x1,_0x18865e;_0x17aff8>=0x0;_0x17aff8--)(_0x18865e=_0x57b979[_0x17aff8])&&(_0x1f0b7f=_0x18865e(_0x1f0b7f)||_0x1f0b7f);return _0x1f0b7f;},_0x91845=(_0x1a693b,_0x32e746)=>(_0x39ba23,_0x4d2d9d)=>_0x32e746(_0x39ba23,_0x4d2d9d,_0x1a693b);let _0x458235=class extends _0x1dbd07[_0x16274f(0x3ee)]{constructor(_0x369f3f,_0x2ddfb7,_0x4f2f7a,_0x432993,_0x3be28d){const _0x2e0c15=_0x16274f;super(),_0x128bdb(this,_0x2e0c15(0x25c),[]),_0x128bdb(this,'_cursors',[]),(this[_0x2e0c15(0x1c0)]=_0x369f3f,this['_docSkeletonManagerService']=_0x2ddfb7,this[_0x2e0c15(0x241)]=_0x4f2f7a,this['_commandService']=_0x432993,this[_0x2e0c15(0x27e)]=_0x3be28d,this[_0x2e0c15(0x35f)]());}[_0x16274f(0x35f)](){const _0x468b4b=_0x16274f,_0x45b384=this[_0x468b4b(0x1c0)]['unitId'],_0x671aa=this[_0x468b4b(0x2cd)];this[_0x468b4b(0x36f)](_0x2f5231['combineLatest']([this['_collabCursorController'][_0x468b4b(0x3a7)](_0x45b384),this[_0x468b4b(0x27e)]['currentTheme$']])[_0x468b4b(0x250)](_0x58bf80[_0x468b4b(0x2f5)](([_0x4ce5cb,_0x1041b6])=>({'skeleton':_0x671aa['getSkeleton'](),'cursors':[..._0x4ce5cb['values']()][_0x468b4b(0x41f)](_0x147979=>({..._0x147979,'color':_0x1041b6[_0x147979[_0x468b4b(0x441)]]}))})))['subscribe'](_0xf2ddee=>{const _0x1dda7d=_0x468b4b;if(this['_removeCollabCursors'](),_0xf2ddee){const {skeleton:_0x387de0,cursors:_0x8574b6}=_0xf2ddee;this[_0x1dda7d(0x208)](_0x387de0,_0x8574b6);}})),this[_0x468b4b(0x219)](),this[_0x468b4b(0x410)]();}[_0x16274f(0x208)](_0x2a9ea0,_0xfb97d7){const _0x5727d7=_0x16274f,{scene:_0x495e4a,mainComponent:_0x4fb004}=this[_0x5727d7(0x1c0)],_0x2fcf64=_0xfb97d7[_0x5727d7(0x2f5)](_0x37ea70=>new _0x2f9e0e(_0x37ea70,_0x495e4a,_0x2a9ea0,_0x4fb004));this['_cursorShapes']=_0x2fcf64,this[_0x5727d7(0x2d2)]=_0xfb97d7;}[_0x16274f(0x288)](){const _0x36b524=_0x16274f;this[_0x36b524(0x286)]();const {scene:_0x216f33,mainComponent:_0x4a076f}=this[_0x36b524(0x1c0)],_0x25bb84=this[_0x36b524(0x2cd)]['getSkeleton'](),_0x522a14=this['_cursors'][_0x36b524(0x2f5)](_0x6fbebd=>new _0x2f9e0e(_0x6fbebd,_0x216f33,_0x25bb84,_0x4a076f));this[_0x36b524(0x25c)]=_0x522a14;}['_removeCollabCursors'](){const _0x520bd5=_0x16274f;this[_0x520bd5(0x25c)][_0x520bd5(0x25f)](_0x3c6611=>_0x3c6611['dispose']()),this[_0x520bd5(0x25c)]=[];}[_0x16274f(0x410)](){const _0x251d61=[_0xae662a['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x548abd=>{const _0x85a5d2=_0x21e0;_0x251d61[_0x85a5d2(0x458)](_0x548abd['id'])&&_0x548abd[_0x85a5d2(0x21b)]['unitId']===this[_0x85a5d2(0x1c0)]['unitId']&&this[_0x85a5d2(0x288)]();}));}[_0x16274f(0x219)](){const _0x4c7b9a=_0x16274f;this['disposeWithMe'](_0x1dbd07[_0x4c7b9a(0x376)](this['_context'][_0x4c7b9a(0x3c7)]['onTransformChange$'])['pipe'](_0x58bf80[_0x4c7b9a(0x293)](_0x350152=>_0x350152['type']===_0x32562c[_0x4c7b9a(0x351)][_0x4c7b9a(0x447)]),_0x58bf80[_0x4c7b9a(0x257)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};_0x458235=_0x3d0c21([_0x91845(0x1,_0x1dbd07[_0x16274f(0x21f)](_0xb0690a[_0x16274f(0x1ed)])),_0x91845(0x2,_0x1dbd07[_0x16274f(0x21f)](_0x2a1682)),_0x91845(0x3,_0x1dbd07[_0x16274f(0x430)]),_0x91845(0x4,_0x1dbd07[_0x16274f(0x21f)](_0x1dbd07[_0x16274f(0x30f)]))],_0x458235);const _0x666d15=0x1,_0x4007ad=1.5;class _0x5080a5 extends _0x32562c[_0x16274f(0x2c1)]{constructor(_0x1d2264,_0x365ef9){const _0x7e66d1=_0x16274f;super(_0x1d2264,_0x365ef9),_0x128bdb(this,_0x7e66d1(0x30d)),_0x128bdb(this,_0x7e66d1(0x35e),!0x1),_0x128bdb(this,_0x7e66d1(0x44f)),_0x128bdb(this,_0x7e66d1(0x3bd),''),_0x128bdb(this,_0x7e66d1(0x2d8),_0x7e66d1(0x2e0)),_0x128bdb(this,_0x7e66d1(0x2ec)),(_0x365ef9&&this[_0x7e66d1(0x34f)](_0x365ef9),this[_0x7e66d1(0x306)]['subscribeEvent'](()=>this[_0x7e66d1(0x34f)]({'hovered':!0x0})),this[_0x7e66d1(0x23d)]['subscribeEvent'](()=>this[_0x7e66d1(0x34f)]({'hovered':!0x1})));}[_0x16274f(0x34f)](_0x531b78){const _0x3eb9f5=_0x16274f;var _0x5e8b60,_0x5143e3,_0x1c5f26,_0x2c9683,_0x23c825,_0x238565;this[_0x3eb9f5(0x30d)]=(_0x5e8b60=_0x531b78[_0x3eb9f5(0x441)])!=null?_0x5e8b60:this[_0x3eb9f5(0x30d)],this[_0x3eb9f5(0x35e)]=(_0x5143e3=_0x531b78[_0x3eb9f5(0x400)])!=null?_0x5143e3:this[_0x3eb9f5(0x35e)],this['_range']=(_0x1c5f26=_0x531b78[_0x3eb9f5(0x394)])!=null?_0x1c5f26:this['_range'],this[_0x3eb9f5(0x3bd)]=(_0x2c9683=_0x531b78[_0x3eb9f5(0x35c)])!=null?_0x2c9683:this[_0x3eb9f5(0x3bd)],this['_labelPosition']=(_0x23c825=_0x531b78['labelPosition'])!=null?_0x23c825:this[_0x3eb9f5(0x2d8)],this[_0x3eb9f5(0x2ec)]=(_0x238565=_0x531b78['backgroundColor'])!=null?_0x238565:this[_0x3eb9f5(0x2ec)],this[_0x3eb9f5(0x3f5)]({'width':_0x531b78[_0x3eb9f5(0x294)],'height':_0x531b78[_0x3eb9f5(0x371)]});}[_0x16274f(0x27a)](_0x4791a9){const _0x2a7647=_0x16274f,{row:_0xc0a703,column:_0x6d3990}=_0x4791a9;if(_0xc0a703>=this['_range']['startRow']&&_0xc0a703<=this[_0x2a7647(0x44f)]['endRow']&&_0x6d3990>=this[_0x2a7647(0x44f)][_0x2a7647(0x32c)]&&_0x6d3990<=this[_0x2a7647(0x44f)][_0x2a7647(0x246)]){this[_0x2a7647(0x34f)]({'hovered':!0x0});return;}this[_0x2a7647(0x34f)]({'hovered':!0x1});}[_0x16274f(0x316)](_0x36c54d){return!0x1;}[_0x16274f(0x2de)](_0x59c576){const _0x1d01ca=_0x16274f;_0x32562c[_0x1d01ca(0x328)][_0x1d01ca(0x2f0)](_0x59c576,{'width':this['width'],'height':this[_0x1d01ca(0x371)],'strokeWidth':_0x4007ad,'stroke':this[_0x1d01ca(0x30d)],'evented':!0x1,'fill':this[_0x1d01ca(0x2ec)]}),this[_0x1d01ca(0x35e)]&&(_0x59c576[_0x1d01ca(0x2e9)](),_0x59c576['transform'](0x1,0x0,0x0,0x1,this[_0x1d01ca(0x294)],this['_labelPosition']==='bottom'?0x0:-0x14),_0x32cf58['drawWith'](_0x59c576,{'text':this[_0x1d01ca(0x3bd)],'color':this[_0x1d01ca(0x30d)]}),_0x59c576['restore']());}}var _0xa4f3d3=Object[_0x16274f(0x381)],_0x266266=(_0x9511a3,_0x435114,_0x4cb4be,_0x17d242)=>{const _0x5e7c07=_0x16274f;for(var _0x848096=_0x17d242>0x1?void 0x0:_0x17d242?_0xa4f3d3(_0x435114,_0x4cb4be):_0x435114,_0x50c1f1=_0x9511a3[_0x5e7c07(0x3bf)]-0x1,_0x45fd6a;_0x50c1f1>=0x0;_0x50c1f1--)(_0x45fd6a=_0x9511a3[_0x50c1f1])&&(_0x848096=_0x45fd6a(_0x848096)||_0x848096);return _0x848096;},_0x187c8a=(_0x27ced5,_0x273577)=>(_0x306d1a,_0x204b82)=>_0x273577(_0x306d1a,_0x204b82,_0x27ced5);const _0x1ef021=0x1389;let _0x1ea831=class extends _0x1dbd07[_0x16274f(0x3ee)]{constructor(_0x2567d7,_0x49678d,_0x285ed1,_0x543011){const _0x28b9d6=_0x16274f;super(),_0x128bdb(this,'_cursors',new Set()),_0x128bdb(this,_0x28b9d6(0x340),null),(this[_0x28b9d6(0x1c0)]=_0x2567d7,this[_0x28b9d6(0x368)]=_0x49678d,this[_0x28b9d6(0x241)]=_0x285ed1,this[_0x28b9d6(0x27e)]=_0x543011,this[_0x28b9d6(0x35f)]());}['_init'](){const _0x5912a6=_0x16274f;this['_sheetSkeletonManagerService'][_0x5912a6(0x429)][_0x5912a6(0x250)](_0x58bf80[_0x5912a6(0x453)](this[_0x5912a6(0x449)]),_0x58bf80[_0x5912a6(0x3d6)](_0x118a2a=>{const _0x3802cc=_0x5912a6;if(_0x118a2a){const _0x12a69a=_0x118a2a[_0x3802cc(0x2b9)];return _0x2f5231['combineLatest'](this[_0x3802cc(0x241)]['getCollabCursors$'](this['_context'][_0x3802cc(0x262)]),this[_0x3802cc(0x27e)][_0x3802cc(0x361)])['pipe'](_0x58bf80[_0x3802cc(0x2f5)](([_0x3132aa,_0x16561b])=>{const _0x2873ad=_0x3802cc,_0x4f4f42=new Map();return _0x3132aa[_0x2873ad(0x25f)]((_0x40af9b,_0x211743)=>{const _0x20dd60=_0x2873ad;if(_0x40af9b[_0x20dd60(0x3de)]===_0x12a69a){const _0x3e117c={..._0x40af9b};_0x3e117c[_0x20dd60(0x441)]=_0x16561b[_0x40af9b[_0x20dd60(0x441)]],_0x4f4f42[_0x20dd60(0x28a)](_0x211743,_0x3e117c);}}),{'skeleton':_0x118a2a,'cursors':_0x4f4f42};}));}return _0x2f5231['of']({'skeleton':null,'cursors':new Map()});}))[_0x5912a6(0x261)](({skeleton:_0xe223f9,cursors:_0x4ac672})=>{const _0x5761db=_0x5912a6;this[_0x5761db(0x286)](),_0xe223f9&&this['_updateCollabCursors'](_0xe223f9,_0x4ac672);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x5912a6(0x261)](_0x3de59f=>{const _0x5b972a=_0x5912a6;if(_0x3de59f==null)return;const {skeleton:_0x4dbda8}=_0x3de59f,{scene:_0x1a504f}=this[_0x5b972a(0x1c0)];_0x1a504f[_0x5b972a(0x2c3)][_0x5b972a(0x3bc)](_0x1dbd07['debounce'](_0x57d0e9=>{const _0x4c63f8=_0x5b972a;var _0x16339b,_0x2e47f6;const {offsetX:_0x2dd4df,offsetY:_0x3c2041}=_0x57d0e9,{x:_0x2bbb85,y:_0x5cf3e3}=_0x1a504f[_0x4c63f8(0x396)](_0x32562c[_0x4c63f8(0x3c0)][_0x4c63f8(0x324)]([_0x2dd4df,_0x3c2041])),{scaleX:_0x3a2ec8,scaleY:_0x3f3e2e}=_0x1a504f['getAncestorScale'](),_0xc6942d=_0x1a504f[_0x4c63f8(0x3bb)](_0x32562c[_0x4c63f8(0x1c2)][_0x4c63f8(0x3b5)]),_0x25e3f6=_0x1a504f[_0x4c63f8(0x34c)](_0x32562c[_0x4c63f8(0x3c0)][_0x4c63f8(0x324)]([_0x2bbb85,_0x5cf3e3]),_0xc6942d),_0x27c388=_0x4dbda8[_0x4c63f8(0x278)](_0x2dd4df,_0x3c2041,_0x3a2ec8,_0x3f3e2e,_0x25e3f6);((_0x16339b=this[_0x4c63f8(0x340)])==null?void 0x0:_0x16339b['column'])===_0x27c388[_0x4c63f8(0x28b)]&&((_0x2e47f6=this['_lastPointer'])==null?void 0x0:_0x2e47f6[_0x4c63f8(0x24a)])===_0x27c388[_0x4c63f8(0x24a)]||this[_0x4c63f8(0x2d2)][_0x4c63f8(0x25f)](_0x5aef9b=>{_0x5aef9b['onMouseMove'](_0x27c388);});},0x64));});}[_0x16274f(0x208)](_0x5ca088,_0x1e75b9){const _0x97cc4d=_0x16274f;var _0x49bc4a;const _0x29bb4d=(_0x49bc4a=this[_0x97cc4d(0x368)][_0x97cc4d(0x3e5)]())==null?void 0x0:_0x49bc4a['skeleton'];if(!_0x29bb4d)return;const _0x41b240=this[_0x97cc4d(0x283)]();if(!_0x41b240)return;this[_0x97cc4d(0x2d2)][_0x97cc4d(0x25f)](_0x1d16d4=>{const _0x5304b6=_0x97cc4d;_0x1d16d4[_0x5304b6(0x326)]();});const {scene:_0x20d28a}=_0x41b240,_0x15e84a=_0x2b1ddf(Array[_0x97cc4d(0x409)](_0x1e75b9['values']()))[_0x97cc4d(0x2f5)](_0x2cfcbf=>{const _0x543e08=_0x97cc4d,{color:_0x5ceed4,range:_0x263ebc,name:_0x6d53af,selection:_0x461126,sheetID:_0x31a490}=_0x2cfcbf,{startColumn:_0x41da46,startRow:_0x125ad8,endColumn:_0x42f22c,endRow:_0x153a43}=_0x263ebc,_0x110659=_0x2edf0b[_0x543e08(0x1c9)](_0x125ad8,_0x41da46,_0x20d28a,_0x29bb4d),_0x3c33cd=_0x2edf0b[_0x543e08(0x1c9)](_0x153a43,_0x42f22c,_0x20d28a,_0x29bb4d),{columnHeaderHeightAndMarginTop:_0x27ce7e}=_0x29bb4d,{startX:_0x488f78,startY:_0x1f7940}=_0x110659,{endX:_0xfedd5,endY:_0x3784c6}=_0x3c33cd,_0x1c7ae3=_0xfedd5-_0x488f78,_0x11ed1f=_0x3784c6-_0x1f7940,_0x57dd4a={'labelPosition':_0x1f7940-_0x27ce7e>=_0x254176?'top':_0x543e08(0x397),'sheetID':_0x31a490,'range':_0x263ebc,'color':_0x5ceed4,'name':_0x6d53af,'selection':_0x461126,'left':_0x488f78,'top':_0x1f7940,'width':_0x1c7ae3,'height':_0x11ed1f,'evented':!0x1,'zIndex':_0x1ef021};return new _0x5080a5(_0x6d53af,_0x57dd4a);});_0x20d28a[_0x97cc4d(0x2c2)](_0x15e84a,_0x666d15),this['_cursors']=new Set(_0x15e84a);}[_0x16274f(0x286)](){const _0x37a842=_0x16274f;var _0x527a68;(_0x527a68=this[_0x37a842(0x2d2)])==null||_0x527a68[_0x37a842(0x25f)](_0xb50d28=>_0xb50d28[_0x37a842(0x239)]());}[_0x16274f(0x283)](){const _0x10eaf0=_0x16274f;return _0x2edf0b[_0x10eaf0(0x2d0)](this[_0x10eaf0(0x1c0)][_0x10eaf0(0x335)],this['_context']);}};_0x1ea831=_0x266266([_0x187c8a(0x1,_0x1dbd07['Inject'](_0x2edf0b[_0x16274f(0x37c)])),_0x187c8a(0x2,_0x1dbd07[_0x16274f(0x21f)](_0x2a1682)),_0x187c8a(0x3,_0x1dbd07[_0x16274f(0x21f)](_0x1dbd07[_0x16274f(0x30f)]))],_0x1ea831);function _0x2b1ddf(_0x1e2a59){const _0x16165f=_0x16274f,_0x427586=new Map();return _0x1e2a59[_0x16165f(0x25f)](_0x55be51=>{const _0x1540f9=_0x16165f;if(_0x427586[_0x1540f9(0x282)](_0x55be51[_0x1540f9(0x3a3)])){const _0x2c96e4=_0x427586[_0x1540f9(0x2fd)](_0x55be51[_0x1540f9(0x3a3)]);_0x2c96e4[_0x1540f9(0x35c)]+=',\x20'+_0x55be51['name'];}else _0x427586[_0x1540f9(0x28a)](_0x55be51['selection'],_0x55be51);}),Array[_0x16165f(0x409)](_0x427586[_0x16165f(0x38f)]());}var _0x5cb0cf=function(){const _0x3e4ddb=_0x16274f;return _0x5cb0cf=Object[_0x3e4ddb(0x319)]||function(_0x34cf63){const _0xd4ec73=_0x3e4ddb;for(var _0x1314a8,_0x2f7e0e=0x1,_0x71d7ed=arguments[_0xd4ec73(0x3bf)];_0x2f7e0e<_0x71d7ed;_0x2f7e0e++){_0x1314a8=arguments[_0x2f7e0e];for(var _0x5db377 in _0x1314a8)Object[_0xd4ec73(0x33c)][_0xd4ec73(0x1ec)][_0xd4ec73(0x412)](_0x1314a8,_0x5db377)&&(_0x34cf63[_0x5db377]=_0x1314a8[_0x5db377]);}return _0x34cf63;},_0x5cb0cf[_0x3e4ddb(0x297)](this,arguments);},_0x496b4b=function(_0x886173,_0x4b4aa2){const _0x23ab35=_0x16274f;var _0x57a53c={};for(var _0x55977c in _0x886173)Object[_0x23ab35(0x33c)]['hasOwnProperty'][_0x23ab35(0x412)](_0x886173,_0x55977c)&&_0x4b4aa2[_0x23ab35(0x22f)](_0x55977c)<0x0&&(_0x57a53c[_0x55977c]=_0x886173[_0x55977c]);if(_0x886173!=null&&typeof Object[_0x23ab35(0x25d)]==_0x23ab35(0x240)){for(var _0x59ffc1=0x0,_0x55977c=Object[_0x23ab35(0x25d)](_0x886173);_0x59ffc1<_0x55977c['length'];_0x59ffc1++)_0x4b4aa2[_0x23ab35(0x22f)](_0x55977c[_0x59ffc1])<0x0&&Object[_0x23ab35(0x33c)][_0x23ab35(0x444)][_0x23ab35(0x412)](_0x886173,_0x55977c[_0x59ffc1])&&(_0x57a53c[_0x55977c[_0x59ffc1]]=_0x886173[_0x55977c[_0x59ffc1]]);}return _0x57a53c;},_0x5b4a2e=_0x4888b4['forwardRef'](function(_0x1ccacf,_0x27b17c){const _0x117163=_0x16274f;var _0xc2f603=_0x1ccacf[_0x117163(0x221)],_0x19a51e=_0x1ccacf['id'],_0x399fda=_0x1ccacf[_0x117163(0x3e6)],_0x415fbf=_0x1ccacf['extend'],_0x1ff627=_0x496b4b(_0x1ccacf,[_0x117163(0x221),'id','className','extend']),_0xa84f88='univerjs-icon\x20univerjs-icon-'[_0x117163(0x2d9)](_0x19a51e,'\x20')[_0x117163(0x2d9)](_0x399fda||'')[_0x117163(0x2f3)](),_0x51d5f2=_0x4888b4[_0x117163(0x230)]('_'[_0x117163(0x2d9)](_0x222a88()));return _0x507f33(_0xc2f603,''[_0x117163(0x2d9)](_0x19a51e),{'defIds':_0xc2f603[_0x117163(0x2ad)],'idSuffix':_0x51d5f2[_0x117163(0x226)]},_0x5cb0cf({'ref':_0x27b17c,'className':_0xa84f88},_0x1ff627),_0x415fbf);});function _0x507f33(_0x4761fc,_0x2f31bb,_0x234c23,_0x2e7ce7,_0x47a1e6){const _0x404d63=_0x16274f;return _0x4888b4[_0x404d63(0x3e0)](_0x4761fc['tag'],_0x5cb0cf(_0x5cb0cf({'key':_0x2f31bb},_0x16e297(_0x4761fc,_0x234c23,_0x47a1e6)),_0x2e7ce7),(_0x584f59(_0x4761fc,_0x234c23)[_0x404d63(0x2d5)]||[])['map'](function(_0x1e02a5,_0x4ab72f){const _0x3d4916=_0x404d63;return _0x507f33(_0x1e02a5,''[_0x3d4916(0x2d9)](_0x2f31bb,'-')[_0x3d4916(0x2d9)](_0x4761fc[_0x3d4916(0x267)],'-')[_0x3d4916(0x2d9)](_0x4ab72f),_0x234c23,void 0x0,_0x47a1e6);}));}function _0x16e297(_0x538c3b,_0xf00dde,_0x1b2008){const _0x493a78=_0x16274f;var _0x87e884=_0x5cb0cf({},_0x538c3b[_0x493a78(0x384)]);_0x1b2008!=null&&_0x1b2008[_0x493a78(0x22a)]&&_0x87e884['fill']===_0x493a78(0x22a)&&(_0x87e884[_0x493a78(0x30b)]=_0x1b2008[_0x493a78(0x22a)]),_0x538c3b[_0x493a78(0x267)]===_0x493a78(0x3c2)&&_0x87e884['id']&&(_0x87e884['id']=_0x87e884['id']+_0xf00dde[_0x493a78(0x3fa)]),Object[_0x493a78(0x259)](_0x87e884)[_0x493a78(0x25f)](function(_0x56d196){const _0x537aa6=_0x493a78;var _0x409ad9=_0x56d196[0x0],_0x4f758e=_0x56d196[0x1];_0x409ad9===_0x537aa6(0x3c2)&&typeof _0x4f758e=='string'&&(_0x87e884[_0x409ad9]=_0x4f758e['replace'](/url\(#(.*)\)/,'url(#$1'[_0x537aa6(0x2d9)](_0xf00dde[_0x537aa6(0x3fa)],')')));});var _0x1c6652=_0xf00dde['defIds'];return!_0x1c6652||_0x1c6652['length']===0x0||(_0x538c3b[_0x493a78(0x267)]===_0x493a78(0x1bf)&&_0x87e884[_0x493a78(0x24e)]&&(_0x87e884[_0x493a78(0x24e)]=_0x87e884[_0x493a78(0x24e)]+_0xf00dde[_0x493a78(0x3fa)]),Object[_0x493a78(0x259)](_0x87e884)['forEach'](function(_0x5995a6){const _0x2b2adc=_0x493a78;var _0x7b8f58=_0x5995a6[0x0],_0x19a643=_0x5995a6[0x1];typeof _0x19a643=='string'&&(_0x87e884[_0x7b8f58]=_0x19a643[_0x2b2adc(0x3b4)](/url\(#(.*)\)/,_0x2b2adc(0x1ea)[_0x2b2adc(0x2d9)](_0xf00dde[_0x2b2adc(0x3fa)],')')));})),_0x87e884;}function _0x584f59(_0x1db1f6,_0x362d83){const _0x552c0f=_0x16274f;var _0x2a0568,_0x22b3ee=_0x362d83[_0x552c0f(0x2ad)];return!_0x22b3ee||_0x22b3ee[_0x552c0f(0x3bf)]===0x0?_0x1db1f6:_0x1db1f6[_0x552c0f(0x267)]===_0x552c0f(0x366)&&(!((_0x2a0568=_0x1db1f6[_0x552c0f(0x2d5)])===null||_0x2a0568===void 0x0)&&_0x2a0568[_0x552c0f(0x3bf)])?_0x5cb0cf(_0x5cb0cf({},_0x1db1f6),{'children':_0x1db1f6[_0x552c0f(0x2d5)][_0x552c0f(0x2f5)](function(_0x5dc605){const _0x4e9761=_0x552c0f;return typeof _0x5dc605[_0x4e9761(0x384)]['id']==_0x4e9761(0x379)&&_0x22b3ee&&_0x22b3ee['indexOf'](_0x5dc605[_0x4e9761(0x384)]['id'])>-0x1?_0x5cb0cf(_0x5cb0cf({},_0x5dc605),{'attrs':_0x5cb0cf(_0x5cb0cf({},_0x5dc605[_0x4e9761(0x384)]),{'id':_0x5dc605['attrs']['id']+_0x362d83[_0x4e9761(0x3fa)]})}):_0x5dc605;})}):_0x1db1f6;}function _0x222a88(){const _0x28266b=_0x16274f;return Math[_0x28266b(0x448)]()[_0x28266b(0x385)](0x24)[_0x28266b(0x301)](0x2,0x8);}_0x5b4a2e[_0x16274f(0x2b6)]='UniverIcon';var _0x2022f4={'tag':_0x16274f(0x3f9),'attrs':{'fill':_0x16274f(0x43b),'viewBox':'0\x200\x2016\x2016','width':_0x16274f(0x21a),'height':_0x16274f(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':_0x16274f(0x20c)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x16274f(0x29d),'strokeLinecap':_0x16274f(0x3ed),'strokeLinejoin':_0x16274f(0x3ed),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x16274f(0x331),'attrs':{'id':_0x16274f(0x1f7)},'children':[{'tag':_0x16274f(0x31e),'attrs':{'fill':_0x16274f(0x3b6),'d':_0x16274f(0x327)}}]}]}],'defIds':[_0x16274f(0x1f7)]},_0x4079e0=_0x4888b4[_0x16274f(0x2a7)](function(_0x1666f9,_0x1a0a06){const _0x398b67=_0x16274f;return _0x4888b4['createElement'](_0x5b4a2e,Object[_0x398b67(0x319)]({},_0x1666f9,{'id':'off-line-single','ref':_0x1a0a06,'icon':_0x2022f4}));});_0x4079e0[_0x16274f(0x2b6)]=_0x16274f(0x1f4);var _0x3ecf75={'tag':_0x16274f(0x3f9),'attrs':{'fill':_0x16274f(0x43b),'viewBox':'0\x200\x2017\x2016','width':_0x16274f(0x21a),'height':_0x16274f(0x21a)},'children':[{'tag':'g','attrs':{'clipPath':_0x16274f(0x3b2)},'children':[{'tag':_0x16274f(0x31e),'attrs':{'stroke':_0x16274f(0x1cf),'d':_0x16274f(0x364),'strokeLinecap':'round','strokeLinejoin':_0x16274f(0x3ed),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x16274f(0x3f0)},'children':[{'tag':_0x16274f(0x31e),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x16274f(0x1bb)}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x27e7a8=_0x4888b4[_0x16274f(0x2a7)](function(_0x32b1b5,_0x1a7a05){const _0x5a4446=_0x16274f;return _0x4888b4[_0x5a4446(0x3e0)](_0x5b4a2e,Object['assign']({},_0x32b1b5,{'id':_0x5a4446(0x1e1),'ref':_0x1a7a05,'icon':_0x3ecf75}));});_0x27e7a8[_0x16274f(0x2b6)]=_0x16274f(0x39f);const _0xb9e3c7={'onlineStatusIcon':_0x16274f(0x25a),'onlineStatusTitle':_0x16274f(0x3b0),'onlineStatus':_0x16274f(0x322),'online':'univer-online','offline':'univer-offline'};function _0x219f7c(_0x30b8df){const _0x39f0e1=_0x16274f;switch(_0x30b8df){case _0x27a090[_0x39f0e1(0x3ca)][_0x39f0e1(0x1ce)]:return'collabStatus.offline';case _0x27a090[_0x39f0e1(0x3ca)][_0x39f0e1(0x1dd)]:return _0x39f0e1(0x42d);case _0x27a090[_0x39f0e1(0x3ca)][_0x39f0e1(0x269)]:return _0x39f0e1(0x3e9);case _0x27a090[_0x39f0e1(0x3ca)][_0x39f0e1(0x305)]:return _0x39f0e1(0x440);case _0x27a090[_0x39f0e1(0x3ca)][_0x39f0e1(0x2b1)]:case _0x27a090[_0x39f0e1(0x3ca)][_0x39f0e1(0x3e3)]:return _0x39f0e1(0x3d3);case _0x27a090[_0x39f0e1(0x3ca)][_0x39f0e1(0x3d9)]:case _0x27a090[_0x39f0e1(0x3ca)][_0x39f0e1(0x36d)]:return _0x39f0e1(0x296);}}function _0x10dea0(_0x304148){const _0x1556cb=_0x16274f,{status$:_0x50abf2}=_0x304148,_0x2c953f=_0x10c440[_0x1556cb(0x38e)](_0x50abf2,_0x27a090[_0x1556cb(0x3ca)][_0x1556cb(0x305)]),_0x54ffd8=_0x10c440[_0x1556cb(0x398)](_0x1dbd07[_0x1556cb(0x3c5)]),_0x290b94=_0x10c440[_0x1556cb(0x398)](_0x27a090[_0x1556cb(0x1eb)]),_0x4ac4cf=_0x2c953f!==_0x27a090['CollaborationStatus'][_0x1556cb(0x1ce)],_0x341869=_0x54ffd8['t'](_0x219f7c(_0x2c953f)),_0x553695=_0x35f834[_0x1556cb(0x3a0)](_0xb9e3c7[_0x1556cb(0x1c1)],{[_0xb9e3c7[_0x1556cb(0x41d)]]:_0x4ac4cf,[_0xb9e3c7[_0x1556cb(0x436)]]:!_0x4ac4cf}),_0x44f140=_0x4ac4cf?_0x568adf[_0x1556cb(0x2aa)](_0x27e7a8,{}):_0x568adf[_0x1556cb(0x2aa)](_0x4079e0,{}),_0x4e968e=_0x4888b4[_0x1556cb(0x258)](()=>{_0x4ac4cf||_0x290b94['reconnect']();},[_0x4ac4cf,_0x290b94]);function _0x1971df(){const _0x4409ee=_0x1556cb;return _0x568adf['jsxs'](_0x4409ee(0x2e3),{'className':_0x35f834[_0x4409ee(0x3a0)](_0x553695,_0x4409ee(0x229)),'onClick':_0x4e968e,'children':[_0x568adf[_0x4409ee(0x2aa)](_0x4409ee(0x2e3),{'className':_0xb9e3c7['onlineStatusIcon'],'children':_0x44f140}),_0x568adf['jsx'](_0x4409ee(0x2e3),{'className':_0xb9e3c7[_0x4409ee(0x2f2)],'children':_0x341869})]});}return _0x4ac4cf?_0x1971df():_0x568adf[_0x1556cb(0x2aa)](_0x35f834[_0x1556cb(0x2af)],{'title':_0x54ffd8['t'](_0x1556cb(0x434)),'children':_0x1971df()});}var _0x1b0547=Object['getOwnPropertyDescriptor'],_0x43ccef=(_0x5cc9ae,_0x5dae90,_0x35cb26,_0x4f452b)=>{for(var _0x469346=_0x4f452b>0x1?void 0x0:_0x4f452b?_0x1b0547(_0x5dae90,_0x35cb26):_0x5dae90,_0x16c303=_0x5cc9ae['length']-0x1,_0x4a4a9b;_0x16c303>=0x0;_0x16c303--)(_0x4a4a9b=_0x5cc9ae[_0x16c303])&&(_0x469346=_0x4a4a9b(_0x469346)||_0x469346);return _0x469346;},_0x18b5af=(_0x4de3b3,_0x42208a)=>(_0x359ff7,_0x3527e9)=>_0x42208a(_0x359ff7,_0x3527e9,_0x4de3b3);_0x33bede[_0x16274f(0x217)]=class extends _0x1dbd07['Disposable']{constructor(_0x5b9449,_0x174ba4,_0x2b55f6,_0x2d9156){const _0x3cd4f5=_0x16274f;super(),_0x128bdb(this,'_status$',new _0x2f5231[(_0x3cd4f5(0x407))](_0x27a090[_0x3cd4f5(0x3ca)][_0x3cd4f5(0x305)])),(this['_univerInstanceService']=_0x5b9449,this['_injector']=_0x174ba4,this[_0x3cd4f5(0x26b)]=_0x2b55f6,this[_0x3cd4f5(0x360)]=_0x2d9156,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x16274f(0x25e)](){const _0x2338ea=_0x16274f;this[_0x2338ea(0x36f)](this[_0x2338ea(0x455)][_0x2338ea(0x3da)][_0x2338ea(0x250)](_0x2f5231[_0x2338ea(0x3d6)](()=>{const _0x2dd1e9=_0x2338ea,_0xc59135=this[_0x2dd1e9(0x455)][_0x2dd1e9(0x387)]();return _0xc59135?this[_0x2dd1e9(0x26b)][_0x2dd1e9(0x3d5)](_0xc59135[_0x2dd1e9(0x1b6)]()):_0x2f5231['of'](null);}),_0x2f5231[_0x2338ea(0x3d6)](_0x654dc9=>_0x654dc9?_0x654dc9['status$']:_0x2f5231['of'](_0x27a090['CollaborationStatus']['NOT_COLLAB'])))[_0x2338ea(0x261)](_0x2f54e0=>{const _0x2a7178=_0x2338ea;this[_0x2a7178(0x31a)][_0x2a7178(0x341)](_0x2f54e0);}));}['_initStatusComponent'](){const _0x2387e8=_0x16274f;this[_0x2387e8(0x36f)](this[_0x2387e8(0x360)][_0x2387e8(0x3d8)](_0x10c440[_0x2387e8(0x350)][_0x2387e8(0x1c6)],()=>_0x10c440[_0x2387e8(0x339)](_0x1eba4d({'status$':this['_status$']['asObservable']()}),this[_0x2387e8(0x313)])));}},_0x33bede[_0x16274f(0x217)]=_0x43ccef([_0x18b5af(0x0,_0x1dbd07[_0x16274f(0x26f)]),_0x18b5af(0x1,_0x1dbd07['Inject'](_0x1dbd07['Injector'])),_0x18b5af(0x2,_0x1dbd07['Inject'](_0x27a090['CollaborationController'])),_0x18b5af(0x3,_0x10c440['IUIPartsService'])],_0x33bede[_0x16274f(0x217)]);function _0x1eba4d(_0x42c687){const {status$:_0x1d6dd1}=_0x42c687;return function(){return _0x568adf['jsx'](_0x10dea0,{'status$':_0x1d6dd1});};}var _0x1fbad5=Object[_0x16274f(0x381)],_0x50fae8=(_0x1153c8,_0x53b7b1,_0x5b20a2,_0x15db44)=>{const _0x3a180c=_0x16274f;for(var _0x4ca4a4=_0x15db44>0x1?void 0x0:_0x15db44?_0x1fbad5(_0x53b7b1,_0x5b20a2):_0x53b7b1,_0xc14c6f=_0x1153c8[_0x3a180c(0x3bf)]-0x1,_0x4ca55e;_0xc14c6f>=0x0;_0xc14c6f--)(_0x4ca55e=_0x1153c8[_0xc14c6f])&&(_0x4ca4a4=_0x4ca55e(_0x4ca4a4)||_0x4ca4a4);return _0x4ca4a4;},_0x3383f0=(_0x1115d1,_0x4239c9)=>(_0x59f6da,_0x2ea517)=>_0x4239c9(_0x59f6da,_0x2ea517,_0x1115d1);let _0x225f9a=class extends _0x1dbd07[_0x16274f(0x422)]{constructor(_0x2eebae,_0x5e9b65,_0x4812ec,_0x5a39f2,_0x490684,_0x22ce07){const _0x3d09e0=_0x16274f;super(),this[_0x3d09e0(0x38c)]=_0x2eebae,this['_localCacheService']=_0x5e9b65,this[_0x3d09e0(0x2b8)]=_0x4812ec,this[_0x3d09e0(0x37d)]=_0x5a39f2,this[_0x3d09e0(0x40b)]=_0x490684,this[_0x3d09e0(0x238)]=_0x22ce07,this[_0x3d09e0(0x3cd)](),this[_0x3d09e0(0x40a)]();}[_0x16274f(0x3cd)](){const _0x357ddc=_0x16274f;this[_0x357ddc(0x36f)](this[_0x357ddc(0x38c)][_0x357ddc(0x3a2)](()=>{const _0x33b504=_0x357ddc;if(this[_0x33b504(0x1ef)]['saveTaskMap'][_0x33b504(0x2ca)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x16274f(0x40a)](){const _0x457f51=_0x16274f;this[_0x457f51(0x36f)](this[_0x457f51(0x2b8)][_0x457f51(0x30c)][_0x457f51(0x261)](_0x2e420f=>{const _0x19053a=_0x457f51;_0x2e420f['id']===_0x27a090['CollaborationUIEventId'][_0x19053a(0x30a)]&&this['_messageService'][_0x19053a(0x346)]({'type':_0x35f834[_0x19053a(0x234)][_0x19053a(0x281)],'content':this[_0x19053a(0x238)]['t'](_0x19053a(0x200))}),_0x2e420f['id']===_0x27a090[_0x19053a(0x1cc)][_0x19053a(0x408)]&&this['_messageService'][_0x19053a(0x346)]({'type':_0x35f834[_0x19053a(0x234)][_0x19053a(0x281)],'content':this[_0x19053a(0x238)]['t']('collaboration.closeRoom')}),_0x2e420f['id']===_0x27a090['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x19053a(0x40b)][_0x19053a(0x346)]({'title':this['_localeService']['t'](_0x19053a(0x202)),'content':this[_0x19053a(0x238)]['t'](_0x19053a(0x2b2)),'type':_0x19053a(0x33a),'duration':0x0}),_0x2e420f['id']===_0x27a090[_0x19053a(0x1cc)][_0x19053a(0x1dd)]&&this[_0x19053a(0x37d)]['show']({'type':_0x35f834['MessageType'][_0x19053a(0x28e)],'content':this['_localeService']['t'](_0x19053a(0x260))+'('+_0x2e420f[_0x19053a(0x1fe)]+')'}),_0x2e420f['id']===_0x27a090[_0x19053a(0x1cc)]['JOIN_ROOM_FAILED']&&this['_messageService']['show']({'type':_0x35f834['MessageType'][_0x19053a(0x281)],'content':this[_0x19053a(0x238)]['t'](_0x2e420f['data']||'')}),_0x2e420f['id']===_0x27a090[_0x19053a(0x1cc)]['SOCKET_FAILED_RETRY']&&this[_0x19053a(0x37d)]['show']({'type':_0x35f834[_0x19053a(0x234)]['Warning'],'content':this[_0x19053a(0x238)]['t'](_0x19053a(0x277))}),_0x2e420f['id']===_0x27a090['CollaborationUIEventId'][_0x19053a(0x210)]&&this[_0x19053a(0x37d)][_0x19053a(0x346)]({'type':_0x35f834['MessageType']['Error'],'content':this['_localeService']['t'](_0x19053a(0x36e))}),_0x2e420f['id']===_0x27a090['CollaborationUIEventId'][_0x19053a(0x2a0)]&&this[_0x19053a(0x37d)][_0x19053a(0x346)]({'type':_0x35f834[_0x19053a(0x234)]['Error'],'content':this[_0x19053a(0x238)]['t'](_0x19053a(0x223))});}));}};_0x225f9a=_0x50fae8([_0x3383f0(0x0,_0x10c440[_0x16274f(0x21c)]),_0x3383f0(0x1,_0x27a090['ILocalCacheService']),_0x3383f0(0x2,_0x1dbd07[_0x16274f(0x21f)](_0x27a090[_0x16274f(0x256)])),_0x3383f0(0x3,_0x10c440[_0x16274f(0x2e1)]),_0x3383f0(0x4,_0x10c440[_0x16274f(0x1c4)]),_0x3383f0(0x5,_0x1dbd07[_0x16274f(0x21f)](_0x1dbd07[_0x16274f(0x3c5)]))],_0x225f9a);const _0x273be3=_0x16274f(0x31b),_0x164b50={},_0x51a990=_0x1dbd07[_0x16274f(0x1e5)]('uni.network.url-service');var _0x35f7e4=Object[_0x16274f(0x381)],_0xc0817=(_0x60fdc6,_0x18bae2,_0x3d5827,_0x11f246)=>{const _0x508029=_0x16274f;for(var _0x20bf69=_0x11f246>0x1?void 0x0:_0x11f246?_0x35f7e4(_0x18bae2,_0x3d5827):_0x18bae2,_0x4250b4=_0x60fdc6[_0x508029(0x3bf)]-0x1,_0x2b47b9;_0x4250b4>=0x0;_0x4250b4--)(_0x2b47b9=_0x60fdc6[_0x4250b4])&&(_0x20bf69=_0x2b47b9(_0x20bf69)||_0x20bf69);return _0x20bf69;},_0x402d0b=(_0x3dfce0,_0x3ca241)=>(_0x806129,_0x5b3507)=>_0x3ca241(_0x806129,_0x5b3507,_0x3dfce0);_0x33bede[_0x16274f(0x21e)]=class extends _0x1dbd07[_0x16274f(0x3ee)]{constructor(_0x489658,_0x9ba6b2,_0x561f45,_0x36cdaf,_0x2c0359){const _0x4e287d=_0x16274f;super(),this[_0x4e287d(0x3a4)]=_0x489658,this[_0x4e287d(0x2c7)]=_0x9ba6b2,this[_0x4e287d(0x43f)]=_0x561f45,this[_0x4e287d(0x298)]=_0x36cdaf,_0x2c0359?_0x2c0359==null||_0x2c0359[_0x4e287d(0x369)]()[_0x4e287d(0x372)](()=>this[_0x4e287d(0x35f)]()):(this[_0x4e287d(0x2c7)]['debug'](_0x4e287d(0x34e),_0x4e287d(0x204)),this[_0x4e287d(0x35f)]());}async[_0x16274f(0x35f)](){const _0x133db6=_0x16274f,_0x2d3a7d=this['_urlService'][_0x133db6(0x378)]('unit'),_0x71a42f=this[_0x133db6(0x3a4)][_0x133db6(0x378)](_0x133db6(0x2a5)),_0x3f8332=this[_0x133db6(0x3a4)][_0x133db6(0x378)]('subunit');if(!_0x2d3a7d||!_0x71a42f){this['_logService'][_0x133db6(0x3aa)](_0x133db6(0x34e),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1222b1=await this['_dataLoaderService']['loadUnit'](_0x2d3a7d,Number(_0x71a42f),_0x3f8332);_0x1222b1&&_0x1222b1 instanceof _0x1dbd07[_0x133db6(0x23f)]&&this[_0x133db6(0x3c4)](_0x1222b1);}async['_setupSubUnitSync'](_0x4cef7f){const _0x3a915d=_0x16274f;await this['_updateSubUnitFromURLParams'](_0x4cef7f),_0x4cef7f[_0x3a915d(0x2cf)]['pipe'](_0x2f5231[_0x3a915d(0x453)](this[_0x3a915d(0x449)]))[_0x3a915d(0x261)](_0x43d992=>{_0x43d992&&this['_updateURLWithCurrentState'](_0x43d992);}),this[_0x3a915d(0x3a4)][_0x3a915d(0x228)][_0x3a915d(0x250)](_0x2f5231[_0x3a915d(0x453)](this[_0x3a915d(0x449)]))[_0x3a915d(0x261)](()=>this[_0x3a915d(0x26c)](_0x4cef7f));}['_updateURLWithCurrentState'](_0xc25158,_0x7bea61=!0x1){const _0x19407d=_0x16274f,_0x4160ad=this[_0x19407d(0x3a4)]['getParam'](_0x19407d(0x299));_0xc25158[_0x19407d(0x37b)]()!==_0x4160ad&&this[_0x19407d(0x3a4)][_0x19407d(0x3cb)](_0x19407d(0x299),_0xc25158[_0x19407d(0x37b)](),_0x7bea61);}async[_0x16274f(0x26c)](_0x6ff8b9){const _0xd644cf=_0x16274f;var _0x2ca51f;const _0x423663=this[_0xd644cf(0x3a4)]['getParam'](_0xd644cf(0x299));if(!_0x423663||!_0x6ff8b9[_0xd644cf(0x2d6)](_0x423663)){const _0x4c3031=_0x6ff8b9[_0xd644cf(0x3dd)]()[0x0],_0x27af0e=_0x6ff8b9[_0xd644cf(0x2d6)](_0x4c3031);if(!_0x27af0e)return;this[_0xd644cf(0x44e)](_0x27af0e,!0x0),await this['_commandService'][_0xd644cf(0x367)](_0x20ef79[_0xd644cf(0x345)]['id'],{'unitId':_0x6ff8b9[_0xd644cf(0x1b6)](),'subUnitId':_0x4c3031});return;}((_0x2ca51f=_0x6ff8b9['getActiveSheet']())==null?void 0x0:_0x2ca51f[_0xd644cf(0x37b)]())!==_0x423663&&await this[_0xd644cf(0x43f)][_0xd644cf(0x367)](_0x20ef79[_0xd644cf(0x345)]['id'],{'unitId':_0x6ff8b9[_0xd644cf(0x1b6)](),'subUnitId':_0x423663});}},_0x33bede[_0x16274f(0x21e)]=_0xc0817([_0x402d0b(0x0,_0x51a990),_0x402d0b(0x1,_0x1dbd07['ILogService']),_0x402d0b(0x2,_0x1dbd07[_0x16274f(0x430)]),_0x402d0b(0x3,_0x1dbd07[_0x16274f(0x21f)](_0x27a090['DataLoaderService'])),_0x402d0b(0x4,_0x1dbd07['Optional'](_0x13ace6['IRemoteInstanceService']))],_0x33bede['CollaborationDataLoaderController']);var _0x25cce8=Object['getOwnPropertyDescriptor'],_0x1573a8=(_0x3c8b31,_0x45a5bf,_0x2b104a,_0x42f2dd)=>{for(var _0x2cf086=_0x42f2dd>0x1?void 0x0:_0x42f2dd?_0x25cce8(_0x45a5bf,_0x2b104a):_0x45a5bf,_0xb2e608=_0x3c8b31['length']-0x1,_0x190eb3;_0xb2e608>=0x0;_0xb2e608--)(_0x190eb3=_0x3c8b31[_0xb2e608])&&(_0x2cf086=_0x190eb3(_0x2cf086)||_0x2cf086);return _0x2cf086;},_0x395e8d=(_0x40d400,_0x1b8398)=>(_0x2d88ca,_0x4388ea)=>_0x1b8398(_0x2d88ca,_0x4388ea,_0x40d400);let _0x2c5930=class{constructor(_0x12dc1c,_0x10bdff,_0x380ddb){const _0x4b55de=_0x16274f;this[_0x4b55de(0x313)]=_0x12dc1c,this[_0x4b55de(0x1cb)]=_0x10bdff,this['_renderManagerService']=_0x380ddb;}[_0x16274f(0x3cc)](_0x5e1c84){const _0x574bb1=_0x16274f;this[_0x574bb1(0x2e7)](_0x5e1c84),this['_transformPreviousActiveRange'](_0x5e1c84);}[_0x16274f(0x36c)](_0x155011){const _0x368d8b=_0x16274f,{unitID:_0xa3a9a2}=_0x155011,_0x7123e5=this['_renderManagerService'][_0x368d8b(0x242)](_0xa3a9a2)[_0x368d8b(0x264)](_0xae662a[_0x368d8b(0x212)]),{redoCache:_0x4da097}=_0x7123e5[_0x368d8b(0x44a)]();if(_0x4da097[_0x368d8b(0x3bf)]===0x0)return _0x155011;let _0x59d8b6=_0x1dbd07[_0x368d8b(0x320)][_0x368d8b(0x1d7)](_0x155011[_0x368d8b(0x37f)][0x0]);for(let _0x8e85ee=0x0;_0x8e85ee<_0x4da097[_0x368d8b(0x3bf)];_0x8e85ee++){const _0x5b1523={'id':_0x368d8b(0x231),'params':{..._0x4da097[_0x8e85ee]}},_0x4f7cbd=this[_0x368d8b(0x1cb)][_0x368d8b(0x34b)](_0x59d8b6,_0x5b1523,!0x1);if(_0x84ca95[_0x368d8b(0x363)](_0x4f7cbd))throw _0x4f7cbd['error'];_0x59d8b6=_0x4f7cbd[_0x368d8b(0x20b)];}return{..._0x1dbd07['Tools'][_0x368d8b(0x1d7)](_0x155011),'mutations':[_0x59d8b6]};}['_transformUndoRedoStack'](_0x426534){const _0x566d53=_0x16274f,{unitID:_0x158ff5}=_0x426534,_0x5edf5e=this[_0x566d53(0x43a)]['getRenderById'](_0x158ff5)[_0x566d53(0x264)](_0xae662a['DocIMEInputManagerService']),{undoCache:_0x217947,redoCache:_0x14407a}=_0x5edf5e['getUndoRedoMutationParamsCache']();if(_0x217947[_0x566d53(0x3bf)]===0x0||_0x14407a[_0x566d53(0x3bf)]===0x0)return;const _0xa1a8b7=[],_0x108b15=[];let _0x1dec79=_0x1dbd07[_0x566d53(0x320)]['deepClone'](_0x426534[_0x566d53(0x37f)][0x0]),_0x4dd671=_0x1dbd07['Tools'][_0x566d53(0x1d7)](_0x426534[_0x566d53(0x37f)][0x0]);for(let _0x49ec44=_0x217947[_0x566d53(0x3bf)]-0x1;_0x49ec44>=0x0;_0x49ec44--){const _0x21e3d7={'id':'doc.mutation.rich-text-editing','params':{..._0x217947[_0x49ec44]}},_0x310631={'id':_0x566d53(0x231),'params':{..._0x14407a[_0x49ec44]}},_0x2866c6=this['_transformService'][_0x566d53(0x34b)](_0x1dec79,_0x21e3d7,!0x1),_0xc7f4bd=this['_transformService']['transformMutation'](_0x4dd671,_0x310631,!0x1);if(_0x84ca95[_0x566d53(0x363)](_0x2866c6))throw _0x2866c6[_0x566d53(0x33a)];if(_0x84ca95[_0x566d53(0x363)](_0xc7f4bd))throw _0xc7f4bd[_0x566d53(0x33a)];_0xa1a8b7[_0x566d53(0x312)](_0x2866c6[_0x566d53(0x3f6)][_0x566d53(0x21b)]),_0x108b15[_0x566d53(0x312)](_0xc7f4bd['m2Prime'][_0x566d53(0x21b)]),_0x1dec79=_0x2866c6[_0x566d53(0x20b)],_0x4dd671=_0xc7f4bd['m1Prime'];}_0x5edf5e[_0x566d53(0x2ba)]({'undoCache':_0xa1a8b7,'redoCache':_0x108b15});}[_0x16274f(0x235)](_0x44330c){const _0x17bb74=_0x16274f,{unitID:_0xb1c0a5}=_0x44330c,_0x2a0501=this[_0x17bb74(0x43a)][_0x17bb74(0x242)](_0xb1c0a5)['with'](_0xae662a['DocIMEInputManagerService']),_0x378129=_0x2a0501['getActiveRange']();if(_0x378129==null)return;const _0x13421a=[{'id':_0x17bb74(0x231),'params':{'unitId':_0x44330c['unitID'],'actions':null,'textRanges':[_0x378129]}}],_0x12ce0a=this[_0x17bb74(0x1cb)]['transformMutationsWithChangeset'](_0x44330c,_0x13421a);if(!_0x84ca95['isTransformMutationsWithChangesetSuccess'](_0x12ce0a))throw _0x12ce0a[_0x17bb74(0x33a)];const _0x18f489=_0x12ce0a[_0x17bb74(0x3f6)][0x0][_0x17bb74(0x21b)][_0x17bb74(0x29a)];Array[_0x17bb74(0x20e)](_0x18f489)&&_0x18f489[_0x17bb74(0x3bf)]&&_0x2a0501[_0x17bb74(0x26a)](_0x18f489[0x0]);}};_0x2c5930=_0x1573a8([_0x395e8d(0x0,_0x1dbd07[_0x16274f(0x21f)](_0x1dbd07[_0x16274f(0x252)])),_0x395e8d(0x1,_0x84ca95['ITransformService']),_0x395e8d(0x2,_0x32562c['IRenderManagerService'])],_0x2c5930);var _0x473836=Object[_0x16274f(0x381)],_0x3c3e2d=(_0x16cf68,_0x19468b,_0x301a08,_0xda8f7f)=>{for(var _0x5e61f9=_0xda8f7f>0x1?void 0x0:_0xda8f7f?_0x473836(_0x19468b,_0x301a08):_0x19468b,_0x268320=_0x16cf68['length']-0x1,_0x527112;_0x268320>=0x0;_0x268320--)(_0x527112=_0x16cf68[_0x268320])&&(_0x5e61f9=_0x527112(_0x5e61f9)||_0x5e61f9);return _0x5e61f9;},_0x84d114=(_0x5c4ee9,_0x3818d4)=>(_0x1d5b20,_0x4f7aad)=>_0x3818d4(_0x1d5b20,_0x4f7aad,_0x5c4ee9);let _0x33888f=class{constructor(_0x50be5c,_0x5ac445,_0x5b0095){const _0x5e329a=_0x16274f;this['_injector']=_0x50be5c,this['_transformService']=_0x5ac445,this[_0x5e329a(0x2ef)]=_0x5b0095;}[_0x16274f(0x2c6)](_0x45a7cd){const _0xd875eb=_0x16274f;this[_0xd875eb(0x300)](_0x45a7cd);}[_0x16274f(0x36c)](_0x11220a){const _0x3ebd9d=_0x16274f,{unitID:_0x2cd447}=_0x11220a,{collaboration:_0x1726ae}=this[_0x3ebd9d(0x2ef)][_0x3ebd9d(0x2f6)](_0x2cd447);if(_0x1726ae['length']===0x0)return _0x11220a;let _0x34701d=_0x1dbd07[_0x3ebd9d(0x320)][_0x3ebd9d(0x1d7)](_0x11220a[_0x3ebd9d(0x37f)][0x0]);for(let _0x42ee5d=0x0;_0x42ee5d<_0x1726ae[_0x3ebd9d(0x3bf)];_0x42ee5d++){const _0x1e4fda={'id':_0x3ebd9d(0x231),'params':{'unitId':_0x1726ae[_0x42ee5d][_0x3ebd9d(0x262)],..._0x1726ae[_0x42ee5d]['redoState']}},_0x598ed6=this['_transformService'][_0x3ebd9d(0x34b)](_0x34701d,_0x1e4fda,!0x1);if(_0x84ca95[_0x3ebd9d(0x363)](_0x598ed6))throw _0x598ed6[_0x3ebd9d(0x33a)];_0x34701d=_0x598ed6[_0x3ebd9d(0x20b)];}return{..._0x1dbd07[_0x3ebd9d(0x320)]['deepClone'](_0x11220a),'mutations':[_0x34701d]};}['_transformHistoryAndStateStack'](_0x8430e3){const _0x269e35=_0x16274f,{unitID:_0x575aed}=_0x8430e3,{history:_0x414d4b,collaboration:_0x3ff98a}=this[_0x269e35(0x2ef)][_0x269e35(0x2f6)](_0x575aed);if(_0x414d4b[_0x269e35(0x3bf)]===0x0&&_0x3ff98a['length']===0x0)return;const _0x5eea05=[],_0x5ae8ef=[];let _0x642009=_0x1dbd07[_0x269e35(0x320)][_0x269e35(0x1d7)](_0x8430e3[_0x269e35(0x37f)][0x0]),_0x4e3898=_0x1dbd07[_0x269e35(0x320)]['deepClone'](_0x8430e3[_0x269e35(0x37f)][0x0]);for(let _0x4a8eff=_0x414d4b[_0x269e35(0x3bf)]-0x1;_0x4a8eff>=0x0;_0x4a8eff--){const _0x503c02={'id':_0x269e35(0x231),'params':{'unitId':_0x414d4b[_0x4a8eff][_0x269e35(0x262)],..._0x414d4b[_0x4a8eff][_0x269e35(0x42f)]}},_0xa66bc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x414d4b[_0x4a8eff]['unitId'],..._0x414d4b[_0x4a8eff][_0x269e35(0x1ee)]}},_0x358ce0=this[_0x269e35(0x1cb)]['transformMutation'](_0x642009,_0x503c02,!0x1),_0xca3298=this[_0x269e35(0x1cb)][_0x269e35(0x34b)](_0x4e3898,_0xa66bc,!0x1);if(_0x84ca95[_0x269e35(0x363)](_0x358ce0))throw _0x358ce0['error'];if(_0x84ca95[_0x269e35(0x363)](_0xca3298))throw _0xca3298[_0x269e35(0x33a)];_0x5eea05[_0x269e35(0x312)]({..._0x414d4b[_0x4a8eff],'undoState':_0x358ce0[_0x269e35(0x3f6)]['params'],'redoState':_0xca3298[_0x269e35(0x3f6)][_0x269e35(0x21b)]}),_0x642009=_0x358ce0['m1Prime'],_0x4e3898=_0xca3298[_0x269e35(0x20b)];}_0x642009=_0x1dbd07[_0x269e35(0x320)]['deepClone'](_0x8430e3[_0x269e35(0x37f)][0x0]),_0x4e3898=_0x1dbd07[_0x269e35(0x320)][_0x269e35(0x1d7)](_0x8430e3[_0x269e35(0x37f)][0x0]);for(let _0x57880e=_0x3ff98a[_0x269e35(0x3bf)]-0x1;_0x57880e>=0x0;_0x57880e--){const _0x4edb03={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3ff98a[_0x57880e]['unitId'],..._0x3ff98a[_0x57880e][_0x269e35(0x42f)]}},_0x40ae0d={'id':_0x269e35(0x231),'params':{'unitId':_0x3ff98a[_0x57880e][_0x269e35(0x262)],..._0x3ff98a[_0x57880e]['redoState']}},_0x279755=this['_transformService'][_0x269e35(0x34b)](_0x642009,_0x4edb03,!0x1),_0x19caa9=this[_0x269e35(0x1cb)]['transformMutation'](_0x4e3898,_0x40ae0d,!0x1);if(_0x84ca95['isTransformMutationFailure'](_0x279755))throw _0x279755[_0x269e35(0x33a)];if(_0x84ca95['isTransformMutationFailure'](_0x19caa9))throw _0x19caa9[_0x269e35(0x33a)];_0x5ae8ef[_0x269e35(0x312)]({..._0x3ff98a[_0x57880e],'undoState':_0x279755['m2Prime'][_0x269e35(0x21b)],'redoState':_0x19caa9[_0x269e35(0x3f6)][_0x269e35(0x21b)]}),_0x642009=_0x279755['m1Prime'],_0x4e3898=_0x19caa9[_0x269e35(0x20b)];}this[_0x269e35(0x2ef)][_0x269e35(0x24c)](_0x575aed,{'history':_0x5eea05,'collaboration':_0x5ae8ef});}};_0x33888f=_0x3c3e2d([_0x84d114(0x0,_0x1dbd07['Inject'](_0x1dbd07['Injector'])),_0x84d114(0x1,_0x84ca95[_0x16274f(0x415)]),_0x84d114(0x2,_0x1dbd07[_0x16274f(0x21f)](_0xae662a['DocStateChangeManagerService']))],_0x33888f);var _0x18bd03=Object['getOwnPropertyDescriptor'],_0x4aeba0=(_0x54c41a,_0x1e47f6,_0x126dd1,_0x23a226)=>{const _0x572f37=_0x16274f;for(var _0x1f40d1=_0x23a226>0x1?void 0x0:_0x23a226?_0x18bd03(_0x1e47f6,_0x126dd1):_0x1e47f6,_0x55183e=_0x54c41a[_0x572f37(0x3bf)]-0x1,_0x7ad0e7;_0x55183e>=0x0;_0x55183e--)(_0x7ad0e7=_0x54c41a[_0x55183e])&&(_0x1f40d1=_0x7ad0e7(_0x1f40d1)||_0x1f40d1);return _0x1f40d1;},_0x1db075=(_0x56b438,_0x5d6e10)=>(_0x519d5e,_0x58ae79)=>_0x5d6e10(_0x519d5e,_0x58ae79,_0x56b438);let _0x3672f4=class{constructor(_0x152862,_0x4bf9d4){const _0x31031c=_0x16274f;this[_0x31031c(0x313)]=_0x152862,this[_0x31031c(0x1cb)]=_0x4bf9d4;}['transformSelections'](_0x2f075e){const _0x4d7384=_0x16274f;var _0x371c34;const _0x40417a=this[_0x4d7384(0x313)][_0x4d7384(0x2fd)](_0xb0690a[_0x4d7384(0x43c)]),_0x35adae=(_0x371c34=_0x40417a[_0x4d7384(0x435)]())!=null?_0x371c34:[];if(_0x35adae[_0x4d7384(0x3bf)]===0x0)return;const _0x229c04=_0x2f075e[_0x4d7384(0x403)],_0x4f05df=[{'id':_0x4d7384(0x231),'params':{'unitId':_0x229c04,'actions':null,'textRanges':_0x35adae}}],_0x4ac567=this[_0x4d7384(0x1cb)][_0x4d7384(0x3c8)](_0x2f075e,_0x4f05df);if(!_0x84ca95[_0x4d7384(0x354)](_0x4ac567))throw _0x4ac567['error'];const _0x5d5aa2=_0x4ac567[_0x4d7384(0x3f6)][0x0][_0x4d7384(0x21b)][_0x4d7384(0x29a)];Array['isArray'](_0x5d5aa2)&&_0x5d5aa2['length']&&_0x40417a['replaceDocRanges'](_0x5d5aa2,{'unitId':_0x229c04,'subUnitId':_0x229c04},!0x1);}};_0x3672f4=_0x4aeba0([_0x1db075(0x0,_0x1dbd07[_0x16274f(0x21f)](_0x1dbd07[_0x16274f(0x252)])),_0x1db075(0x1,_0x84ca95[_0x16274f(0x415)])],_0x3672f4);var _0xcf227d=Object[_0x16274f(0x381)],_0x5dcf17=(_0x4ec05e,_0x1321df,_0x4ba457,_0x122aaa)=>{for(var _0x38891e=_0x122aaa>0x1?void 0x0:_0x122aaa?_0xcf227d(_0x1321df,_0x4ba457):_0x1321df,_0x15f079=_0x4ec05e['length']-0x1,_0x4f4943;_0x15f079>=0x0;_0x15f079--)(_0x4f4943=_0x4ec05e[_0x15f079])&&(_0x38891e=_0x4f4943(_0x38891e)||_0x38891e);return _0x38891e;},_0x5b5a57=(_0x37f1c6,_0x178e1d)=>(_0x414f0c,_0x336219)=>_0x178e1d(_0x414f0c,_0x336219,_0x37f1c6);let _0x3e2ebe=class extends _0x1dbd07[_0x16274f(0x422)]{constructor(_0x3233b3,_0x54fc28,_0x2bd331,_0x339cc6,_0x491bf6,_0x5ec8f2,_0x492c44,_0x2b79f8){const _0x37a263=_0x16274f;super(),_0x128bdb(this,'_status$',new _0x2f5231['BehaviorSubject'](_0x27a090['CollaborationStatus'][_0x37a263(0x305)])),(this[_0x37a263(0x2ef)]=_0x3233b3,this[_0x37a263(0x26b)]=_0x54fc28,this['_docTransformIMECacheService']=_0x2bd331,this['_docTransformStateCacheService']=_0x339cc6,this[_0x37a263(0x373)]=_0x491bf6,this[_0x37a263(0x32e)]=_0x5ec8f2,this[_0x37a263(0x37d)]=_0x492c44,this[_0x37a263(0x238)]=_0x2b79f8,this['_initEntityListener']());}[_0x16274f(0x266)](){const _0x324250=_0x16274f;this[_0x324250(0x36f)](this[_0x324250(0x26b)][_0x324250(0x1b4)][_0x324250(0x261)](_0x502c3f=>{const _0x17495b=_0x324250,_0x5b6d76=this[_0x17495b(0x2ef)][_0x17495b(0x2bf)][_0x17495b(0x261)](_0x10fd68=>{const _0x5aae4f=_0x17495b;if(_0x10fd68==null)return;const {unitId:_0x2ff430,redoState:_0x1a192e,commandId:_0x111c51}=_0x10fd68;if(_0x2ff430!==_0x502c3f[_0x5aae4f(0x403)])return;const _0xfff374={'id':_0x111c51,'type':_0x1dbd07[_0x5aae4f(0x416)][_0x5aae4f(0x2a1)],'params':{'unitId':_0x2ff430,'actions':_0x1a192e['actions'],'textRanges':null}};_0x502c3f[_0x5aae4f(0x3d0)](_0xfff374);});if(_0x502c3f[_0x17495b(0x36f)](_0x5b6d76),_0x502c3f instanceof _0x27a090[_0x17495b(0x314)]){const _0x452ddc={'onTransformIME':_0x4f253a=>this['_docTransformIMECacheService'][_0x17495b(0x3cc)](_0x4f253a),'onTransformState':_0x2802ff=>this[_0x17495b(0x2e4)][_0x17495b(0x2c6)](_0x2802ff),'onTransformSelections':_0x3f71b7=>this[_0x17495b(0x373)][_0x17495b(0x289)](_0x3f71b7),'onSyncEditingCollabCursor':_0x1b1b37=>this[_0x17495b(0x32e)][_0x17495b(0x272)](_0x1b1b37),'onTransformRemoteChangesetByIMECache':_0x3ccd33=>this[_0x17495b(0x23b)][_0x17495b(0x36c)](_0x3ccd33),'onTransformRemoteChangesetByStateCache':_0x543ab9=>this[_0x17495b(0x2e4)][_0x17495b(0x36c)](_0x543ab9)};_0x502c3f[_0x17495b(0x44d)](_0x452ddc);}}));}};_0x3e2ebe=_0x5dcf17([_0x5b5a57(0x0,_0x1dbd07[_0x16274f(0x21f)](_0xae662a['DocStateChangeManagerService'])),_0x5b5a57(0x1,_0x1dbd07[_0x16274f(0x21f)](_0x27a090[_0x16274f(0x375)])),_0x5b5a57(0x2,_0x1dbd07[_0x16274f(0x21f)](_0x2c5930)),_0x5b5a57(0x3,_0x1dbd07['Inject'](_0x33888f)),_0x5b5a57(0x4,_0x1dbd07[_0x16274f(0x21f)](_0x3672f4)),_0x5b5a57(0x5,_0x1dbd07['Inject'](_0x20d9aa)),_0x5b5a57(0x6,_0x10c440[_0x16274f(0x2e1)]),_0x5b5a57(0x7,_0x1dbd07['Inject'](_0x1dbd07[_0x16274f(0x3c5)]))],_0x3e2ebe);var _0x23adef=Object[_0x16274f(0x381)],_0x22b6d2=(_0x302aa7,_0x46df78,_0x304322,_0x375e4d)=>{for(var _0x503753=_0x375e4d>0x1?void 0x0:_0x375e4d?_0x23adef(_0x46df78,_0x304322):_0x46df78,_0x4a0e80=_0x302aa7['length']-0x1,_0x29f117;_0x4a0e80>=0x0;_0x4a0e80--)(_0x29f117=_0x302aa7[_0x4a0e80])&&(_0x503753=_0x29f117(_0x503753)||_0x503753);return _0x503753;},_0x4d2259=(_0x4aae90,_0x1cdc49)=>(_0x142cc6,_0x2faf86)=>_0x1cdc49(_0x142cc6,_0x2faf86,_0x4aae90);let _0x21b337=class extends _0x1dbd07[_0x16274f(0x422)]{constructor(_0x8df190,_0x2b163b,_0x37b515){const _0x4d60d9=_0x16274f;super(),_0x128bdb(this,_0x4d60d9(0x377),new Map()),_0x128bdb(this,'_saveTaskMap',new Map()),_0x128bdb(this,_0x4d60d9(0x1e8),!0x1),(this[_0x4d60d9(0x2c0)]=_0x8df190,this[_0x4d60d9(0x31f)]=_0x2b163b,this[_0x4d60d9(0x40f)]=_0x37b515);}[_0x16274f(0x451)](){const _0x41dc70=_0x16274f;this[_0x41dc70(0x1e8)]=!0x0;}[_0x16274f(0x2d3)](){this['_disabled']=!0x1;}get[_0x16274f(0x2ce)](){return this['_saveTaskMap'];}[_0x16274f(0x239)](){const _0x379d9d=_0x16274f;this[_0x379d9d(0x2a6)]()['then'](()=>super[_0x379d9d(0x239)]());}async[_0x16274f(0x418)](_0x317412){const _0x28018b=_0x16274f;return this[_0x28018b(0x1e8)]?null:this[_0x28018b(0x31f)][_0x28018b(0x358)](_0x27a090[_0x28018b(0x359)](_0x317412));}async[_0x16274f(0x42e)](_0x1227de,_0x57a3bb){const _0x3ec29a=_0x16274f;return!!this['_localStorageService'][_0x3ec29a(0x1df)](_0x1227de,_0x57a3bb);}[_0x16274f(0x20a)](_0x19e56c,_0x31d81c,_0x6e35a,_0x2e3d03){const _0x53667d=_0x16274f,_0x54c6dd=this[_0x53667d(0x40f)][_0x53667d(0x2b7)](_0x19e56c);this[_0x53667d(0x377)][_0x53667d(0x28a)](_0x19e56c,{'unitID':_0x19e56c,'type':_0x31d81c,'awaitingChangeset':_0x6e35a,'mutations':_0x2e3d03,'rev':_0x54c6dd}),this[_0x53667d(0x295)][_0x53667d(0x282)](_0x19e56c)||this[_0x53667d(0x2ab)](_0x19e56c);}[_0x16274f(0x2ab)](_0x37a9ec){const _0x10fc3f=_0x16274f,_0x5d837d=this['_getSaveTimeout']();_0x5d837d===0x0?this['_saveCache'](_0x37a9ec):this[_0x10fc3f(0x295)][_0x10fc3f(0x28a)](_0x37a9ec,setTimeout(()=>this[_0x10fc3f(0x413)](_0x37a9ec),_0x5d837d));}[_0x16274f(0x393)](){const _0x577c3f=_0x16274f;var _0x4c6a73;return(_0x4c6a73=this['_configService'][_0x577c3f(0x215)](_0x27a090[_0x577c3f(0x20f)]))!=null?_0x4c6a73:_0x27a090[_0x577c3f(0x38d)];}[_0x16274f(0x413)](_0x4593ea){const _0x389c5a=_0x16274f,_0x15b8e6=this[_0x389c5a(0x295)][_0x389c5a(0x2fd)](_0x4593ea);return _0x15b8e6!==void 0x0&&window[_0x389c5a(0x3eb)](_0x15b8e6),this['_localStorageService'][_0x389c5a(0x1df)](_0x27a090[_0x389c5a(0x359)](_0x4593ea),this[_0x389c5a(0x377)][_0x389c5a(0x2fd)](_0x4593ea))[_0x389c5a(0x372)](()=>this[_0x389c5a(0x295)][_0x389c5a(0x225)](_0x4593ea));}async[_0x16274f(0x2a6)](){const _0x549f92=_0x16274f,_0x37722c=[];this['_saveTaskMap'][_0x549f92(0x25f)]((_0x24e117,_0x3fcd)=>{const _0x2ed1b8=_0x549f92;window[_0x2ed1b8(0x3eb)](_0x24e117),_0x37722c[_0x2ed1b8(0x414)](this[_0x2ed1b8(0x413)](_0x3fcd)[_0x2ed1b8(0x372)](()=>{const _0x11c8ae=_0x2ed1b8;this[_0x11c8ae(0x295)][_0x11c8ae(0x225)](_0x3fcd);}));}),await Promise[_0x549f92(0x1c5)](_0x37722c);}};_0x21b337=_0x22b6d2([_0x4d2259(0x0,_0x1dbd07[_0x16274f(0x334)]),_0x4d2259(0x1,_0x1dbd07[_0x16274f(0x236)]),_0x4d2259(0x2,_0x1dbd07[_0x16274f(0x21f)](_0x84ca95['RevisionService']))],_0x21b337);class _0x184cdc extends _0x1dbd07['RxDisposable']{constructor(){const _0x17e8bd=_0x16274f;super(),_0x128bdb(this,_0x17e8bd(0x228)),this[_0x17e8bd(0x228)]=_0x2f5231['fromEvent'](window,'popstate')[_0x17e8bd(0x250)](_0x2f5231['takeUntil'](this['dispose$']),_0x2f5231['shareReplay'](0x1),_0x2f5231[_0x17e8bd(0x2da)](void 0x0));}[_0x16274f(0x3cb)](_0x59a6f2,_0x2e3c34,_0x4efc12=!0x1){const _0x13a85d=_0x16274f,_0x4d8843=new URL(window[_0x13a85d(0x2c9)][_0x13a85d(0x3d7)]);_0x4d8843[_0x13a85d(0x2cb)][_0x13a85d(0x28a)](_0x59a6f2,_0x2e3c34),_0x4efc12?window[_0x13a85d(0x3e1)][_0x13a85d(0x3a5)]('','',_0x4d8843[_0x13a85d(0x385)]()):window['history'][_0x13a85d(0x420)]('','',_0x4d8843[_0x13a85d(0x385)]());}[_0x16274f(0x32f)](_0x28bd9c,_0x1fba54=!0x1){const _0x4254ed=_0x16274f,_0x16a6eb=new URL(window[_0x4254ed(0x2c9)][_0x4254ed(0x3d7)]);_0x16a6eb[_0x4254ed(0x2cb)][_0x4254ed(0x225)](_0x28bd9c),_0x1fba54?window['history'][_0x4254ed(0x3a5)]('','',_0x16a6eb[_0x4254ed(0x385)]()):window[_0x4254ed(0x3e1)]['pushState']('','',_0x16a6eb[_0x4254ed(0x385)]());}[_0x16274f(0x378)](_0x930196){const _0x3e0891=_0x16274f;var _0x95a963;return(_0x95a963=new URL(window[_0x3e0891(0x2c9)][_0x3e0891(0x3d7)])[_0x3e0891(0x2cb)][_0x3e0891(0x2fd)](_0x930196))!=null?_0x95a963:void 0x0;}}var _0xd7cc5=Object['defineProperty'],_0x39173b=Object[_0x16274f(0x381)],_0x18aa2a=(_0x6b8e2e,_0xb6d8c3,_0xb3f62b)=>_0xb6d8c3 in _0x6b8e2e?_0xd7cc5(_0x6b8e2e,_0xb6d8c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb3f62b}):_0x6b8e2e[_0xb6d8c3]=_0xb3f62b,_0xc1188b=(_0x473ce5,_0x3ec885,_0x497196,_0x5048d1)=>{const _0x417541=_0x16274f;for(var _0x44cac1=_0x5048d1>0x1?void 0x0:_0x5048d1?_0x39173b(_0x3ec885,_0x497196):_0x3ec885,_0x22580f=_0x473ce5[_0x417541(0x3bf)]-0x1,_0xd082bc;_0x22580f>=0x0;_0x22580f--)(_0xd082bc=_0x473ce5[_0x22580f])&&(_0x44cac1=_0xd082bc(_0x44cac1)||_0x44cac1);return _0x44cac1;},_0x484204=(_0x3652de,_0x5ceb04)=>(_0x372e7a,_0x2c4b42)=>_0x5ceb04(_0x372e7a,_0x2c4b42,_0x3652de),_0x225f49=(_0x4b7ff6,_0x4980d5,_0x417dd2)=>_0x18aa2a(_0x4b7ff6,_0x4980d5+'',_0x417dd2);const _0x54a3d2=_0x16274f(0x3f3);_0x33bede['UniverCollaborationClientUIPlugin']=class extends _0x1dbd07[_0x16274f(0x1d1)]{constructor(_0x143d09=_0x164b50,_0x58be15,_0x2dd1af,_0x2764ec){const _0x3efd40=_0x16274f;super(),this[_0x3efd40(0x22c)]=_0x143d09,this[_0x3efd40(0x43a)]=_0x58be15,this[_0x3efd40(0x313)]=_0x2dd1af,this['_configService']=_0x2764ec;const {..._0x4c410b}=_0x1dbd07[_0x3efd40(0x42a)]({},_0x164b50,this[_0x3efd40(0x22c)]);this[_0x3efd40(0x2c0)][_0x3efd40(0x386)](_0x273be3,_0x4c410b);}[_0x16274f(0x39c)](){const _0x36673b=_0x16274f;this[_0x36673b(0x245)](),this[_0x36673b(0x3ef)]();}[_0x16274f(0x40d)](){const _0x78399a=_0x16274f;this[_0x78399a(0x349)]();}[_0x16274f(0x245)](){const _0x46aea9=_0x16274f;var _0x43b031;const _0x520967=[[_0x57d318],[_0x3672f4],[_0x2c5930],[_0x33888f],[_0x20d9aa],[_0x51a990,{'useClass':_0x184cdc}],[_0x151a90[_0x46aea9(0x2fe)],{'useClass':_0x151a90[_0x46aea9(0x3ac)]}],[_0x27a090[_0x46aea9(0x426)],{'useClass':_0x21b337}],[_0x33bede[_0x46aea9(0x217)]],[_0x3e2ebe],[_0x225f9a],[_0x2a1682],[_0x681537],[_0x33bede['CollaborationDataLoaderController']]];_0x1dbd07[_0x46aea9(0x1da)](this[_0x46aea9(0x313)],_0x1dbd07[_0x46aea9(0x29f)](_0x520967,(_0x43b031=this[_0x46aea9(0x22c)])==null?void 0x0:_0x43b031['override']));}['_registerRenderDependencies'](){const _0x4bc360=_0x16274f;this[_0x4bc360(0x36f)](this[_0x4bc360(0x43a)][_0x4bc360(0x446)](_0x1dbd07[_0x4bc360(0x1d6)]['UNIVER_DOC'],[_0x458235])),this[_0x4bc360(0x36f)](this[_0x4bc360(0x43a)]['registerRenderModule'](_0x1dbd07[_0x4bc360(0x1d6)][_0x4bc360(0x34a)],[_0x1ea831]));}[_0x16274f(0x3ef)](){const _0x2ac353=_0x16274f;_0x1dbd07[_0x2ac353(0x310)](this[_0x2ac353(0x313)],[[_0x2a1682],[_0x33bede[_0x2ac353(0x217)]],[_0x3e2ebe],[_0x225f9a],[_0x33bede[_0x2ac353(0x21e)]]]);}},_0x225f49(_0x33bede[_0x16274f(0x2c4)],_0x16274f(0x2e5),_0x54a3d2),_0x33bede[_0x16274f(0x2c4)]=_0xc1188b([_0x1dbd07[_0x16274f(0x2a2)](_0x27a090[_0x16274f(0x3fc)]),_0x484204(0x1,_0x32562c['IRenderManagerService']),_0x484204(0x2,_0x1dbd07[_0x16274f(0x21f)](_0x1dbd07[_0x16274f(0x252)])),_0x484204(0x3,_0x1dbd07[_0x16274f(0x334)])],_0x33bede[_0x16274f(0x2c4)]);var _0x5503c4=Object[_0x16274f(0x381)],_0x5692e5=(_0x1ad5d7,_0x3b51ef,_0xa59d64,_0x2da9c6)=>{const _0x335310=_0x16274f;for(var _0x418ad6=_0x2da9c6>0x1?void 0x0:_0x2da9c6?_0x5503c4(_0x3b51ef,_0xa59d64):_0x3b51ef,_0x5ca3b3=_0x1ad5d7[_0x335310(0x3bf)]-0x1,_0x250c93;_0x5ca3b3>=0x0;_0x5ca3b3--)(_0x250c93=_0x1ad5d7[_0x5ca3b3])&&(_0x418ad6=_0x250c93(_0x418ad6)||_0x418ad6);return _0x418ad6;},_0x6ecf9c=(_0x396db8,_0x4f8ad0)=>(_0x4db52a,_0x9228fc)=>_0x4f8ad0(_0x4db52a,_0x9228fc,_0x396db8);_0x33bede[_0x16274f(0x3f2)]=class extends _0x27a090['CollaborationSocketService']{constructor(_0xf5c56e,_0x473e5c,_0x5a18ae,_0x550a43,_0x2813a2){super(_0xf5c56e,_0x473e5c,_0x5a18ae,_0x550a43,_0x2813a2);}async[_0x16274f(0x431)](_0x4a47ba){const _0x4fed00=_0x16274f,_0x1ee247=await this[_0x4fed00(0x3db)](),_0x1bb8e0=this[_0x4fed00(0x38a)](_0x4a47ba,_0x1ee247);return this['_doCreateSocket'](_0x1bb8e0);}[_0x16274f(0x38a)](_0x31640e,_0x123a27){const _0xa9eb27=_0x16274f,_0x3729df=typeof window>'u'?new URL(_0x31640e):new URL(_0x31640e,window['location'][_0xa9eb27(0x1d0)]);_0x3729df[_0xa9eb27(0x2cb)][_0xa9eb27(0x28a)](_0xa9eb27(0x402),_0x123a27);const _0x23f7d9=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xa9eb27(0x2c9)][_0xa9eb27(0x2f8)]);return _0x23f7d9['get']('runId')&&_0x3729df[_0xa9eb27(0x2cb)][_0xa9eb27(0x28a)]('runId',_0x23f7d9[_0xa9eb27(0x2fd)](_0xa9eb27(0x421))),_0x3729df[_0xa9eb27(0x385)]();}async[_0x16274f(0x3db)](){const _0x157af5=_0x16274f;var _0x31a780,_0x1bd40c,_0x12a368;const _0x4b12d4=this['_configService'][_0x157af5(0x215)](_0x27a090[_0x157af5(0x348)]),_0x29befd=(_0x31a780=_0x4b12d4==null?void 0x0:_0x4b12d4[_0x157af5(0x2f1)])!=null?_0x31a780:_0x27a090[_0x157af5(0x29e)];return(_0x12a368=(_0x1bd40c=(await this[_0x157af5(0x365)][_0x157af5(0x2fd)](_0x29befd,{'headers':{'Content-Type':_0x157af5(0x2a8)}}))[_0x157af5(0x3ec)])==null?void 0x0:_0x1bd40c[_0x157af5(0x273)])!=null?_0x12a368:'';}},_0x33bede[_0x16274f(0x3f2)]=_0x5692e5([_0x6ecf9c(0x0,_0x1dbd07['Inject'](_0x1dbd07[_0x16274f(0x252)])),_0x6ecf9c(0x1,_0x1dbd07[_0x16274f(0x21f)](_0x151a90['HTTPService'])),_0x6ecf9c(0x2,_0x1dbd07[_0x16274f(0x334)]),_0x6ecf9c(0x3,_0x1dbd07[_0x16274f(0x1fa)]),_0x6ecf9c(0x4,_0x84ca95[_0x16274f(0x424)])],_0x33bede[_0x16274f(0x3f2)]);const _0x2f9d5d=0x7530,_0x3b276d=_0x16274f(0x356);class _0x4a1f6d extends _0x1dbd07[_0x16274f(0x422)]{constructor(){const _0x12c4b9=_0x16274f;super(),_0x128bdb(this,_0x12c4b9(0x2ea),_0x1dbd07[_0x12c4b9(0x3be)]()),_0x128bdb(this,'_selfUnitIDs',new Set()),_0x128bdb(this,'_unitOnClients',new Map()),_0x128bdb(this,'_heartbeatTimer',null),_0x128bdb(this,_0x12c4b9(0x23e),new Map()),_0x128bdb(this,'_unitStatus',new Map()),this['_init']();}[_0x16274f(0x239)](){const _0x4cf72b=_0x16274f;super['dispose'](),this[_0x4cf72b(0x23e)]['forEach']((_0x4297a5,_0x12c82d)=>this[_0x4cf72b(0x2c5)](_0x12c82d)),this[_0x4cf72b(0x1e7)]&&window[_0x4cf72b(0x452)](this[_0x4cf72b(0x1e7)]);}[_0x16274f(0x28f)](_0x4f5d62){const _0x363934=_0x16274f;return this[_0x363934(0x330)](_0x4f5d62)[_0x363934(0x250)](_0x2f5231[_0x363934(0x1d4)]());}['editingUnit'](_0x18fbcd){const _0x5bb54d=_0x16274f;this['_selfUnitIDs'][_0x5bb54d(0x2ca)]===0x0&&this[_0x5bb54d(0x3ff)](),this[_0x5bb54d(0x35a)]['add'](_0x18fbcd),this[_0x5bb54d(0x41a)]({'type':0x0,'memberID':this[_0x5bb54d(0x2ea)],'unitIDs':[_0x18fbcd],'isForwarded':!0x1});}[_0x16274f(0x425)](_0x47ee77){const _0x247f6d=_0x16274f;this['_selfUnitIDs'][_0x247f6d(0x225)](_0x47ee77),this['_selfUnitIDs'][_0x247f6d(0x2ca)]===0x0&&this[_0x247f6d(0x1e7)]&&window['clearInterval'](this[_0x247f6d(0x1e7)]);}[_0x16274f(0x35f)](){const _0x3ae7ae=_0x16274f;this[_0x3ae7ae(0x36f)](_0x1dbd07[_0x3ae7ae(0x3a6)](_0x2f5231[_0x3ae7ae(0x3ae)](window,_0x3ae7ae(0x32b))[_0x3ae7ae(0x261)](_0x1ec04f=>{const _0x3942f6=_0x3ae7ae;if(_0x1ec04f[_0x3942f6(0x325)]!==_0x3b276d||!_0x1ec04f['newValue'])return;const _0x2c698e=JSON[_0x3942f6(0x2d1)](_0x1ec04f['newValue']);this[_0x3942f6(0x1bc)](_0x2c698e);}))),window[_0x3ae7ae(0x3b9)](_0x3ae7ae(0x457),()=>this[_0x3ae7ae(0x41a)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x3ae7ae(0x409)](this[_0x3ae7ae(0x35a)])}));}[_0x16274f(0x1bc)](_0x17f4b7){const _0x1e5193=_0x16274f;switch(_0x17f4b7['type']){case 0x0:this[_0x1e5193(0x3c1)](_0x17f4b7);break;case 0x1:this[_0x1e5193(0x1e0)](_0x17f4b7);break;case 0x2:this[_0x1e5193(0x39a)](_0x17f4b7);break;}}[_0x16274f(0x3c1)](_0x147012){const _0x55fce8=_0x16274f,{unitIDs:_0x4fb454,memberID:_0x491c46,isForwarded:_0x5273d4}=_0x147012;_0x4fb454['forEach'](_0x4c228f=>{const _0x1e1777=_0x21e0;if(!_0x5273d4&&this[_0x1e1777(0x24f)][_0x1e1777(0x282)](_0x4c228f)&&this['_ensureSubject'](_0x4c228f)[_0x1e1777(0x341)](_0x27a090[_0x1e1777(0x2f7)][_0x1e1777(0x1d2)]),!this[_0x1e1777(0x24f)]['has'](_0x4c228f)||!this[_0x1e1777(0x24f)]['get'](_0x4c228f)[_0x1e1777(0x282)](_0x491c46)){const _0x1434c8=this[_0x1e1777(0x24f)][_0x1e1777(0x2fd)](_0x4c228f)||new Set();_0x1434c8['add'](_0x491c46),this[_0x1e1777(0x24f)][_0x1e1777(0x28a)](_0x4c228f,_0x1434c8),this[_0x1e1777(0x2a4)](_0x491c46);}}),_0x5273d4||this[_0x55fce8(0x41a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x55fce8(0x35a)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x48682b){const _0x2f371c=_0x16274f;this[_0x2f371c(0x2c5)](_0x48682b);const _0x571960=window[_0x2f371c(0x2ff)](()=>{const _0x57424e=_0x2f371c;this[_0x57424e(0x24f)][_0x57424e(0x25f)](_0x12fa0f=>{const _0x423824=_0x57424e;_0x12fa0f[_0x423824(0x225)](_0x48682b);});},_0x2f9d5d*0x2);this[_0x2f371c(0x23e)][_0x2f371c(0x28a)](_0x48682b,_0x571960);}['_removeClearOtherTimer'](_0x784b16){const _0x30283b=_0x16274f;if(this[_0x30283b(0x23e)]['has'](_0x784b16)){const _0x3b0efa=this[_0x30283b(0x23e)][_0x30283b(0x2fd)](_0x784b16);_0x3b0efa&&window[_0x30283b(0x3eb)](_0x3b0efa),this[_0x30283b(0x23e)]['set'](_0x784b16,null);}}[_0x16274f(0x1e0)](_0xd2b30d){const _0xbf9327=_0x16274f,{memberID:_0x4534a4,unitIDs:_0x5579d7}=_0xd2b30d;_0x5579d7[_0xbf9327(0x25f)](_0x262090=>{const _0x35592e=_0xbf9327;var _0x447f75;const _0x2a0e5f=this[_0x35592e(0x24f)]['get'](_0x262090);_0x2a0e5f&&(_0x2a0e5f['delete'](_0x4534a4),(_0x447f75=this[_0x35592e(0x330)](_0x262090))==null||_0x447f75[_0x35592e(0x341)](_0x2a0e5f['size']===0x0?_0x27a090[_0x35592e(0x2f7)]['NO_OTHER_CLIENTS_EDITING']:_0x27a090['UnitStatus'][_0x35592e(0x1d2)]));}),this['_removeClearOtherTimer'](_0x4534a4);}['_handleHeartbeatEvent'](_0x7278dd){const _0x57372f=_0x16274f;this[_0x57372f(0x2a4)](_0x7278dd[_0x57372f(0x3cf)]);}[_0x16274f(0x41a)](_0x1dd330){const _0x4cd61f=_0x16274f;localStorage[_0x4cd61f(0x1df)](_0x3b276d,JSON[_0x4cd61f(0x37e)](_0x1dd330));}[_0x16274f(0x3ff)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x321f49=_0x21e0;this['_send']({'type':0x2,'memberID':this[_0x321f49(0x2ea)]});},_0x2f9d5d);}['_ensureSubject'](_0x4f42c2){const _0x21fe04=_0x16274f;return this['_unitStatus']['has'](_0x4f42c2)||this[_0x21fe04(0x276)]['set'](_0x4f42c2,new _0x2f5231[(_0x21fe04(0x407))](_0x27a090[_0x21fe04(0x2f7)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x21fe04(0x276)][_0x21fe04(0x2fd)](_0x4f42c2);}}var _0x3fb08e=(_0x45e340=>(_0x45e340[_0x45e340[_0x16274f(0x390)]=0x0]=_0x16274f(0x390),_0x45e340[_0x45e340['OK']=0x1]='OK',_0x45e340[_0x45e340[_0x16274f(0x3e4)]=0x2]=_0x16274f(0x3e4),_0x45e340[_0x45e340['PERMISSION_DENIED']=0x3]=_0x16274f(0x456),_0x45e340[_0x45e340[_0x16274f(0x33e)]=0x4]=_0x16274f(0x33e),_0x45e340[_0x45e340[_0x16274f(0x1f6)]=0x5]=_0x16274f(0x1f6),_0x45e340[_0x45e340['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x45e340[_0x45e340['INVALID_ARGUMENT']=0x7]=_0x16274f(0x311),_0x45e340[_0x45e340[_0x16274f(0x332)]=0x8]=_0x16274f(0x332),_0x45e340[_0x45e340['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x45e340[_0x45e340[_0x16274f(0x3b3)]=0x1389]=_0x16274f(0x3b3),_0x45e340[_0x45e340['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x16274f(0x3af),_0x45e340[_0x45e340[_0x16274f(0x41b)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x45e340[_0x45e340[_0x16274f(0x1ba)]=0x1773]=_0x16274f(0x1ba),_0x45e340[_0x45e340[_0x16274f(0x2bd)]=0x1b59]=_0x16274f(0x2bd),_0x45e340[_0x45e340[_0x16274f(0x42b)]=0x1b5a]=_0x16274f(0x42b),_0x45e340[_0x45e340[_0x16274f(0x1ca)]=0x1b5b]=_0x16274f(0x1ca),_0x45e340[_0x45e340[_0x16274f(0x1f5)]=0x1b5c]=_0x16274f(0x1f5),_0x45e340[_0x45e340[_0x16274f(0x284)]=0x1b5d]='APPLY_DUPLICATED',_0x45e340[_0x45e340[_0x16274f(0x255)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x45e340[_0x45e340[_0x16274f(0x31c)]=0x2329]=_0x16274f(0x31c),_0x45e340[_0x45e340['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x45e340[_0x45e340[_0x16274f(0x22e)]=0x232b]=_0x16274f(0x22e),_0x45e340[_0x45e340['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x16274f(0x243),_0x45e340[_0x45e340['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x45e340[_0x45e340[_0x16274f(0x391)]=0x2711]=_0x16274f(0x391),_0x45e340[_0x45e340[_0x16274f(0x2ee)]=0x2712]=_0x16274f(0x2ee),_0x45e340[_0x45e340[_0x16274f(0x3a9)]=0x2713]=_0x16274f(0x3a9),_0x45e340[_0x45e340[_0x16274f(0x29c)]=0x2714]=_0x16274f(0x29c),_0x45e340[_0x45e340[_0x16274f(0x2eb)]=0x2af9]=_0x16274f(0x2eb),_0x45e340[_0x45e340[_0x16274f(0x27d)]=-0x1]='UNRECOGNIZED',_0x45e340))(_0x3fb08e||{}),_0x1dd80d=Object[_0x16274f(0x381)],_0x14380b=(_0x4c5a14,_0x2d76fb,_0x53058a,_0x151c01)=>{const _0x32d209=_0x16274f;for(var _0x1c0a6e=_0x151c01>0x1?void 0x0:_0x151c01?_0x1dd80d(_0x2d76fb,_0x53058a):_0x2d76fb,_0x19f61f=_0x4c5a14[_0x32d209(0x3bf)]-0x1,_0x4d2c28;_0x19f61f>=0x0;_0x19f61f--)(_0x4d2c28=_0x4c5a14[_0x19f61f])&&(_0x1c0a6e=_0x4d2c28(_0x1c0a6e)||_0x1c0a6e);return _0x1c0a6e;},_0x204f02=(_0x38c8a0,_0x3fee18)=>(_0x533e8f,_0x3f4bb7)=>_0x3fee18(_0x533e8f,_0x3f4bb7,_0x38c8a0);_0x33bede['RemoteUniscriptService']=class extends _0x1dbd07[_0x16274f(0x422)]{constructor(_0xe5c627,_0x4c6d6e,_0x56483d){const _0x308a4f=_0x16274f;super(),this[_0x308a4f(0x1e6)]=_0xe5c627,this['_httpService']=_0x4c6d6e,this[_0x308a4f(0x2c0)]=_0x56483d;}async[_0x16274f(0x383)](_0x38056b,_0x537815,_0x1993c6,..._0x120971){const _0x3c523c=_0x16274f;var _0x516afd,_0x425f8c,_0x41b10b,_0x3d6e70;const _0x3a327e=this[_0x3c523c(0x1e6)]['getFocusedUnit']();if(!_0x3a327e)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1538e3=((_0x516afd=this['_configService'][_0x3c523c(0x215)](_0x27a090[_0x3c523c(0x1f3)]))!=null?_0x516afd:_0x27a090[_0x3c523c(0x220)])+'/'+_0x38056b+_0x3c523c(0x206)+_0x537815,_0x29a63e=new URL(window[_0x3c523c(0x2c9)][_0x3c523c(0x3d7)]),_0x5aaf3b={'scriptId':_0x38056b,'runId':(_0x425f8c=_0x29a63e[_0x3c523c(0x2cb)][_0x3c523c(0x2fd)](_0x3c523c(0x421)))!=null?_0x425f8c:'','function':_0x537815,'unitId':_0x3a327e[_0x3c523c(0x1b6)](),'argsOfFunction':JSON[_0x3c523c(0x37e)](_0x120971),'invokeId':(_0x41b10b=_0x1993c6[_0x3c523c(0x44b)])!=null?_0x41b10b:'','executionId':(_0x3d6e70=_0x1993c6[_0x3c523c(0x41e)])!=null?_0x3d6e70:''};try{const _0x234c68=await this[_0x3c523c(0x365)][_0x3c523c(0x3b1)](_0x1538e3,{'body':_0x5aaf3b});return _0x234c68['body']['error']&&_0x234c68[_0x3c523c(0x3ec)][_0x3c523c(0x33a)][_0x3c523c(0x338)]!==_0x3fb08e['OK']?_0x3c523c(0x32a):_0x234c68['body'][_0x3c523c(0x33d)];}catch{return _0x3c523c(0x32a);}}},_0x33bede[_0x16274f(0x1be)]=_0x14380b([_0x204f02(0x0,_0x1dbd07[_0x16274f(0x26f)]),_0x204f02(0x1,_0x1dbd07[_0x16274f(0x21f)](_0x151a90[_0x16274f(0x2d4)])),_0x204f02(0x2,_0x1dbd07[_0x16274f(0x334)])],_0x33bede[_0x16274f(0x1be)]),_0x33bede[_0x16274f(0x201)]=_0x10dea0,_0x33bede[_0x16274f(0x270)]=_0x51a990,_0x33bede[_0x16274f(0x352)]=_0x5080a5,_0x33bede['WebBrowserSingleActiveUnitService']=_0x4a1f6d,_0x33bede[_0x16274f(0x3f4)]=_0x184cdc,Object[_0x16274f(0x405)](_0x33bede,Symbol[_0x16274f(0x3c6)],{'value':'Module'});}));
1
+ function _0xfae9(){const _0x187d51=['addObject','getRelativeToViewportCoord','transformStateCache','_transformHistoryAndStateStack','_send','IDocClipboardService','getValue','off-line-single_clip0_910_343','setItem','UniverIcon','_refreshCollabCursors','tag','setUndoRedoMutationParamsCache','touchDependencies','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','currentColor','UniverCollaborationClientUIPlugin','onStarting','createInstance','univer-offline','APPLY_NON_SEQUENTIAL_REVISION','_unitOnClients','78YtfcOH','handleInsertRangeMoveDown','lineTo','UniverNetwork','_drawRectRange','_transformUndoRedoStack','MessageType','transform','skeleton','collabStatus.notCollab','getColor','round','current','getSheetObject','saveImage','div','getOwnPropertyDescriptor','UniverUi','@univerjs/sheets','handleIRemoveRow','_toggleOffline','_collabCursorController','defineProperty','handleDeleteRangeMoveUp','APPLY_DUPLICATED','cursorInfo','executeCommand','collaboration-client.offline-data-not-saved','storage','debounce','generateRandomId','source','deserializeRangeWithSheet','attrs','_initStatusComponent','_initDependencies','univerjs-icon\x20univerjs-icon-','8231760HLXDpk','subscribe','dispose$','_urlService','OffLineSingle','_scheduleClearOtherTimer','_textBubble','_drawAnchor','_docTransformIMECacheService','handleIRemoveCol','fromEventSubject','IRemoteInstanceService','sheetId','distinctUntilChanged','href','toRgbString','getCollabCursors$','disposeWithMe','_onCursorUpdate','translate(.97)','collabStatus.fetchMiss','syncEditingCollabCursor','from','_labelPosition','exports','doc.mutation.rich-text-editing','DeleteRangeMoveLeftCommandId','_anchorDot','popstate','LOCAL_CACHE_INTERVAL','_online','onPointerLeave$','fillStyle','toString','path','ILogService','getRangePointData','triggerDblclick','_eventUnsubscribe','TEXT_RANGE_LAYER_INDEX','@univerjs/engine-render','INVALID_ARGUMENT','LocaleService','WebBrowserSingleActiveUnitService','#fff','_context','IBeforeCloseService','_refRangeService','subscribeEvent','UniverDocsUi','prototype','useRef','getMemberID','rxjs/operators','fill','getMember','_getSaveTimeout','_collabSessionService','key','fillRule','SNAPSHOT_HAS_BEEN_REMOVED','_removeClearOtherTimer','_id','_setupSubUnitSync','unitID','getDocRanges','UNRECOGNIZED','purple300','_docTransformStateCacheService','_getScale','type','RECT','RxDisposable','undoState','_cachedData','INotificationService','eventID','unit','SetSelectionsOperation','IConfigService','send','_anchor','OnLineSingle','_localStorageService','_cursors','findNodePositionByCharIndex','editingUnit','UniverDocs','mapTo','_getMergeRange','_entities','APPLY_REVISION_CONFILICT','_entityInit$','_docSyncEditingCollabCursorService','post','xlink:href','_backgroundColor','3273012GcrhtZ','DocSkeletonManagerService','CollaborationSocketService','UniverEngineRender','url(#$1','HTTPService','handleInsertRow','InsertColCommandId','debug','flatMap','@univerjs-pro/collaboration-client','gold400','includes','onlineStatus','_docClipboardService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','CollaborationDataLoaderController','getOwnPropertySymbols','OFFLINE','_initEvent','DocStateChangeManagerService','DocSelectionManagerService','offline','_init','@univerjs-pro/collaboration','filter','LICENSE_EXPORT_SIZE_EXCEEDED','_cursor','unshift','selection','_startSheetCollabCursor','name','VIEW_MAIN','Workbook','univer-online-status','pipe','getCoordByCell','some','column','YUUMI_RATE_OVER_LIMIT','ITransformService','data','UniverSheets','_toggleOnline','_initCommandExecutedListener','parse','MemberService','code','FETCH_MISS','_handleLeaveEvent','color','idSuffix','unitId','JOIN_ROOM_FAILED','error','off-line-single','_getSheetObject','UniverEngineFormula','entries','focused$','currentTheme$','LICENSE_DISTRO_REJECTED','_collabCursorState$','univer-flex\x20univer-items-center','url(#off-line-single_clip0_910_343)','UNIVER_SHEET','top','@univerjs/rpc','setAlpha','getCurrentUnitForType','NO_OTHER_CLIENTS_EDITING','transformByState','_hover','transformSelections','OTHER_CLIENT_EDITING','_handleEvent','@univerjs/core','UNIVER_DOC','_themeService','NodePositionConvertToRectRange','Error','ISnapshotServerService','indexOf','transformMutation','assign','random','bottom','CollaborationStatus','handleDeleteRangeMoveLeft','handleInsertRangeMoveRight','width','defIds','CONNECTOR_DATA_TOO_LARGE','RichTextEditingMutation','DocIMEInputManagerService','getCellPositionByOffset','handleMoveRange','CollaborationUIEventId','next','show','hovered','_initEntityListener','SetTextSelectionsOperation','ONLINE','_heartbeatTimer','UniverDrawing','collab-client.tooltip.reconnect','@univerjs/drawing','COLORS','memberID','9273aBPGQM','getConfig','SOCKET_FAILED','_cursorInfo$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','operators','onCommandExecuted','APPLY_REJECT','_createSocketURL','_transformService','session.will-retry','UniverProCollaborationClientUi','_removeCollabCursors','isTransformMutationsWithChangesetSuccess','ALREADY_EXISTS','IUIPartsService','className','startColumn','collabCursorState$','_range','onlineStatusTitle','Plugin','YUUMI_URL_COL_OUT_OF_RANGE','endColumn','redoState','createIdentifier','_handleHeartbeatEvent','Failed','SOCKET_FAILED_RETRY','getLocalCacheKey','IRenderManagerService','_getAnchorBounding','collab-text-range-','/run/','body','_docSkeleton','height','_httpService','UniverInstanceType','saveOfflineData','1394455SybPCX','IUniverInstanceService','_sheetSkeletonManagerService','urlChange$','add','Warning','SNAPSHOT_INVALID_SNAPSHOT','init','UNAUTHENTICATED','_session','_registerRenderDependencies','Shape','function','ACTIVE_UNIT_EVENT_CHANNEL','_commandService','registerDependencies','_notificationService','switchMap','isArray','executionId','call','getUnitId','stringify','univer-online-status-title','cursorInfo$','CommandType','icon','addEventListener','RemoteUniscriptService','UnitStatus','assignAColorForMemberID','_lastPointer','Inject','mergeOverrideWithDependencies','registerRefRange','_revisionService','_color','drawWith','collabStatus.offline','UPDATE_CURSOR','WebURLService','row','setActiveRange','roomMembers$','status$','replaceDocRanges','unsubscribe','_initStatusListener','replace','_collaborationUIEventService','UNDEFINED','_docSkeletonManagerService','Vector2','2333944YTLHYZ','Tools','EffectRefRangId','getUndoRedoMutationParamsCache','SUBMIT_CHANGESET_TIMEOUT','getItem','delete','Rectangle','invokeId','unload','TOO_MANY_REQUESTS','sheetID','_messageService','registerBeforeClose','startRow','_selfUnitIDs','getSheetBySheetId','RegularPolygon','ThemeService','map','loadOfflineData','_scheduleHeartbeat','getCollabEntity$','_handleHover','isActive','_localCacheService','restore','colorChannel1','clearTimeout','getCurrentSelections','loadUnit','none','setStateCache','BrowserCollaborationSocketService','univer-online-status-icon','DocCollaborationEntity','arc','PY_RUNTIME_SCRIPT_ERROR','LICENSE_IMPORT_SIZE_EXCEEDED','CollaborationStatusDisplay','@univerjs/design','mutations','_clearOtherTimers','isTransformMutationFailure','getAncestorScale','mask','_config','useDependency','runOnServer','makeDirty','_getSessionTicket','_univerInstanceService','collaboration.closeRoom','length','SYNCED','string','Optional','substring','evenodd','asObservable','rxjs','textRanges','_doCreateSocket','newValue','endRow','exhaustSavingTask','646471HBDxpC','NOT_COLLAB','React','black','@univerjs/engine-formula','ISocketService','DisposableCollection','...','0\x200\x2016\x2016','DataLoaderService','YUUMI_UNABLE_LOAD_URL','ILocalCacheService','_imageIoService','BehaviorSubject','debounceTime','isEditing','values','clipPath','setShapeProps','beginPath','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','getSheetId','forwardRef','hide','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_updateSubUnitFromURLParams','LICENSE_MAX_UNITS_EXCEEDED','uni.network.url-service','Rect','subUnitId','roomMembers','CONFLICT','getTypeOfUnitAdded$','_colorAssignService','apply','CHANGESET_REVISION_CONFILICT','transformRemoteChangeset','collab-rect-range-','blue400','getMergeData','addObjects','moveTo','_setupBeforeClosingHandler','updateOfflineData','combineLatest','RemoveColCommandId','transformIMECache','SetWorksheetActivateCommand','FromArray','all','connectInjector','shareReplay','runId','getStateCache','transformMutationsWithChangeset','M0\x200H16V16H0z','displayName','m2Prime','DEFAULT_WS_SESSION_TICKET_URL','LOCAL_CACHE_INTERVAL_KEY','IImageIoService','_handleJoinEvent','has','_document','_hideTimer','clsx','ranges','children','activeSheet$','throttleTime','_scheduleSaving','_shapes','TEXT','_syncEditingCollabCursorService','searchParams','APPLY_PERMISSION_DENIED','@univerjs/docs','ILocalStorageService','CollaborationController','engine','Module','_logService','react','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_scene','COMPLETION_FINISHED','svg','_collaborationController','getUnitStatus$','[CollaborationDataLoaderController]','_startDocCollabCursor','YUUMI_SUBSCRIPTION_NOT_FOUND','text','ColorKit','IMessageService','_docTransformSelectionsService','_draw','location','clearInterval','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','UniverDesign','UniverRpc','takeUntil','onMouseMove','getVpScrollXYInfoByPosToVp','rgba(255,\x20255,\x20255,\x200.01)','reconnect','save','fillText','_roomMembers$','collab-text-anchor-','_drawTextRange','UniverCollaborationClientPlugin','ICommandService','toDisposable','entityInit$','forEach','merge','setParam','DesktopCollaborationStatusDisplayController','RevisionService','SHEET_VIEWPORT_KEY','subunit','with','handleInsertCol','getActiveSheet','onTransformChange$','fromEvent','sessionStatus$','ENSURE_SNAPSHOT_EXECUTION','origin','Subject','_uiPartsService','_onRefRangeChange','jsx','imageSourceType','_localeService','range','url(#on-line-single_clip0_910_349)','event$','NodePositionConvertToCursor','9076900IKYedF','disposeUnit','UniverProCollaboration','createSocket','OTHER_CLIENTS_EDITING','_cursorShapes','getSkeleton','MUTATION','createElement','getRenderById','font','online','removeParam','_render','dispose','_saveTaskMap','TRANSFORM_CHANGE_OBSERVABLE_TYPE','propertyIsEnumerable','history','set','getTypeOfUnitDisposed$','SessionStatus','USERS_LEAVE','_memberService','CollaborationEvent','deepClone','min','session.connection-failed','measureText','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','wsSessionTicketUrl','@univerjs/ui','@univerjs/network','DOC_RANGE_TYPE','permission.title','pushState','PERMISSION_DENIED','requireSession','get','_updateLocalCursor','_onCursorDelete','_updateCollabCursors','_name','@univerjs/sheets-ui','_injector','_hovered','onPointerMove$','symbol','m1Prime','Disposable','on-line-single','size','addClipboardHook','getOffsetConfig','react/jsx-runtime','defs','Injector','complete','RemoveRowCommandId','SetDocZoomRatioOperation','disableLocalCache','_renderManagerService','find','_status$','1em','params','split','_saveCache','_disabled','_beforeCloseService','Unknown\x20user','registerRenderModule','concat','currentSkeleton$','_updateURLWithCurrentState','_assignedColors','NOT_FOUND','collaboration.single-unit.warning','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','getFocusedUnit','#FFF','2012IVWutK','getParam','hasOwnProperty','getViewport','_configService','_ensureSubject','extend','_unitStatus','AWAITING_WITH_PENDING','push','_dataLoaderService','on-line-single_clip0_910_349','_docStateChangeManagerService'];_0xfae9=function(){return _0x187d51;};return _0xfae9();}function _0x574a(_0x5ef45e,_0x258fee){const _0xfae93f=_0xfae9();return _0x574a=function(_0x574aa1,_0x543f17){_0x574aa1=_0x574aa1-0x161;let _0x204a4d=_0xfae93f[_0x574aa1];return _0x204a4d;},_0x574a(_0x5ef45e,_0x258fee);}(function(_0x518d32,_0x5e5878){const _0x554b05=_0x574a,_0x2f7d3b=_0x518d32();while(!![]){try{const _0x36e099=parseInt(_0x554b05(0x3da))/0x1+parseInt(_0x554b05(0x17b))/0x2+-parseInt(_0x554b05(0x3b2))/0x3*(parseInt(_0x554b05(0x29b))/0x4)+parseInt(_0x554b05(0x24a))/0x5+parseInt(_0x554b05(0x2be))/0x6*(-parseInt(_0x554b05(0x1bd))/0x7)+-parseInt(_0x554b05(0x2e3))/0x8+parseInt(_0x554b05(0x344))/0x9;if(_0x36e099===_0x5e5878)break;else _0x2f7d3b['push'](_0x2f7d3b['shift']());}catch(_0x2ba120){_0x2f7d3b['push'](_0x2f7d3b['shift']());}}}(_0xfae9,0xe96ef),function(_0x264883,_0xbf83db){const _0x3e52fd=_0x574a;typeof exports=='object'&&typeof module<'u'?_0xbf83db(exports,require(_0x3e52fd(0x34e)),require(_0x3e52fd(0x390)),require('@univerjs/engine-render'),require(_0x3e52fd(0x26a)),require('@univerjs/docs-ui'),require(_0x3e52fd(0x3af)),require(_0x3e52fd(0x1b7)),require('@univerjs/docs'),require(_0x3e52fd(0x35c)),require(_0x3e52fd(0x1c1)),require(_0x3e52fd(0x2d0)),require(_0x3e52fd(0x318)),require('@univerjs/sheets-ui'),require('react/jsx-runtime'),require(_0x3e52fd(0x269)),require(_0x3e52fd(0x1a3)),require('react'),require(_0x3e52fd(0x387))):typeof define==_0x3e52fd(0x3e6)&&define['amd']?define([_0x3e52fd(0x2fb),'@univerjs-pro/collaboration-client',_0x3e52fd(0x390),_0x3e52fd(0x30b),_0x3e52fd(0x26a),'@univerjs/docs-ui',_0x3e52fd(0x3af),'rxjs',_0x3e52fd(0x209),'@univerjs-pro/collaboration',_0x3e52fd(0x1c1),_0x3e52fd(0x2d0),_0x3e52fd(0x318),_0x3e52fd(0x275),_0x3e52fd(0x280),_0x3e52fd(0x269),_0x3e52fd(0x1a3),_0x3e52fd(0x20f),_0x3e52fd(0x387)],_0xbf83db):(_0x264883=typeof globalThis<'u'?globalThis:_0x264883||self,_0xbf83db(_0x264883[_0x3e52fd(0x3bd)]={},_0x264883['UniverProCollaborationClient'],_0x264883['UniverCore'],_0x264883[_0x3e52fd(0x347)],_0x264883[_0x3e52fd(0x2c1)],_0x264883[_0x3e52fd(0x314)],_0x264883[_0x3e52fd(0x3ad)],_0x264883[_0x3e52fd(0x1b7)],_0x264883[_0x3e52fd(0x33a)],_0x264883[_0x3e52fd(0x24c)],_0x264883[_0x3e52fd(0x37d)],_0x264883[_0x3e52fd(0x36e)],_0x264883[_0x3e52fd(0x1b7)][_0x3e52fd(0x3b7)],_0x264883['UniverSheetsUi'],_0x264883[_0x3e52fd(0x1bf)],_0x264883[_0x3e52fd(0x2cf)],_0x264883[_0x3e52fd(0x221)],_0x264883['React'],_0x264883[_0x3e52fd(0x222)]));}(this,function(_0x193121,_0x5b04f9,_0x2a9662,_0x53abef,_0x3990c8,_0xccddd6,_0x4e8796,_0x539394,_0x1b62f9,_0x119f28,_0xe1fbe2,_0x10d874,_0x388455,_0x56a566,_0x532104,_0x31156b,_0x2b73f1,_0x1309ea,_0x5100b8){'use strict';const _0x22f257=_0x574a;var _0x90df04=Object[_0x22f257(0x2d4)],_0x9e1258=(_0x5c4540,_0x4cc368,_0x5785e5)=>_0x4cc368 in _0x5c4540?_0x90df04(_0x5c4540,_0x4cc368,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5785e5}):_0x5c4540[_0x4cc368]=_0x5785e5,_0x30b7bc=(_0x38cbb3,_0x239005,_0x5da0eb)=>_0x9e1258(_0x38cbb3,typeof _0x239005!=_0x22f257(0x279)?_0x239005+'':_0x239005,_0x5da0eb),_0x4fb2c3=Object[_0x22f257(0x2ce)],_0x8b0e09=(_0x5927f8,_0x1bf5c9,_0x16fa72,_0x763551)=>{for(var _0x39cfa5=_0x763551>0x1?void 0x0:_0x763551?_0x4fb2c3(_0x1bf5c9,_0x16fa72):_0x1bf5c9,_0x5987bf=_0x5927f8['length']-0x1,_0x200b52;_0x5987bf>=0x0;_0x5987bf--)(_0x200b52=_0x5927f8[_0x5987bf])&&(_0x39cfa5=_0x200b52(_0x39cfa5)||_0x39cfa5);return _0x39cfa5;},_0xf2eea1=(_0x1218b4,_0x3cb8cd)=>(_0x378696,_0x170fee)=>_0x3cb8cd(_0x378696,_0x170fee,_0x1218b4);let _0x25a21d=class extends _0x2a9662[_0x22f257(0x32b)]{constructor(_0x121b30,_0x379d29){const _0xf3ca58=_0x22f257;super(),this[_0xf3ca58(0x352)]=_0x121b30,this[_0xf3ca58(0x1c9)]=_0x379d29,this['_init']();}['_init'](){const _0xc7d42f=_0x22f257,_0x5d9a1b=this;this[_0xc7d42f(0x2f4)](this[_0xc7d42f(0x352)][_0xc7d42f(0x27e)]({'onBeforePasteImage':async _0x398ad3=>{const _0x176d76=_0xc7d42f,_0x2c8a86=await _0x5d9a1b['_imageIoService'][_0x176d76(0x2cc)](_0x398ad3);return _0x2c8a86?{'source':_0x2c8a86[_0x176d76(0x2dd)],'imageSourceType':_0x2c8a86[_0x176d76(0x244)]}:null;}}));}};_0x25a21d=_0x8b0e09([_0xf2eea1(0x0,_0xccddd6[_0x22f257(0x2ad)]),_0xf2eea1(0x1,_0x4e8796[_0x22f257(0x1f9)])],_0x25a21d);const _0x3b6ba=[_0x22f257(0x326),'jiqing500','verdancy600','red300',_0x22f257(0x1e3),_0x22f257(0x34f)];class _0x40de99 extends _0x2a9662[_0x22f257(0x27b)]{constructor(){const _0x5a502c=_0x22f257;super(...arguments),_0x30b7bc(this,_0x5a502c(0x295),new Map()),_0x30b7bc(this,'_colorIndex',0x0);}[_0x22f257(0x164)](_0x3079b3){const _0x4f53ff=_0x22f257;if(this[_0x4f53ff(0x295)]['has'](_0x3079b3))return this[_0x4f53ff(0x295)][_0x4f53ff(0x270)](_0x3079b3);const _0x4fbb35=_0x3b6ba[this['_colorIndex']];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x3b6ba[_0x4f53ff(0x1b0)],this[_0x4f53ff(0x295)][_0x4f53ff(0x25d)](_0x3079b3,_0x4fbb35),_0x4fbb35;}}function _0x3508f1(_0x5841f7){const _0x1dbc20=_0x22f257;let _0x437fc5='';for(const _0x39785c of _0x5841f7){const {startOffset:_0x28b432,endOffset:_0x2eb1f9,isActive:_0x19b467,rangeType:_0x2f85de,segmentId:_0x3f8103,segmentPage:_0x244ccf}=_0x39785c;_0x437fc5[_0x1dbc20(0x1b0)]&&(_0x437fc5+=','),_0x437fc5+=_0x28b432+':'+_0x2eb1f9+':'+(_0x19b467?'1':'0')+':'+_0x2f85de+':'+_0x3f8103+':'+_0x244ccf;}return _0x437fc5;}function _0x36a3eb(_0x557ffc){const _0x5e0a50=_0x22f257,_0x1513c3=_0x557ffc['split'](','),_0x2e2f7e=[];for(const _0x5a5684 of _0x1513c3){const [_0x54e2d6,_0x3414db,_0x34f34f,_0x9a9ae2,_0x3399c3,_0x191b99]=_0x5a5684[_0x5e0a50(0x28c)](':');_0x2e2f7e[_0x5e0a50(0x2a4)]({'startOffset':Number(_0x54e2d6),'endOffset':Number(_0x3414db),'collapsed':_0x54e2d6===_0x3414db,'isActive':_0x34f34f==='1','rangeType':_0x9a9ae2===_0x2a9662[_0x5e0a50(0x26b)][_0x5e0a50(0x205)]?_0x2a9662[_0x5e0a50(0x26b)][_0x5e0a50(0x205)]:_0x2a9662['DOC_RANGE_TYPE'][_0x5e0a50(0x32a)],'segmentId':typeof _0x3399c3==_0x5e0a50(0x1b2)?String(_0x3399c3):'','segmentPage':Number(_0x191b99!=null?_0x191b99:-0x1)});}return _0x2e2f7e[_0x5e0a50(0x369)](_0x52e21a=>_0x52e21a[_0x5e0a50(0x193)])||(_0x2e2f7e[0x0][_0x5e0a50(0x193)]=!0x0),_0x2e2f7e;}class _0x48dd5 extends _0x2a9662['RxDisposable']{constructor(){const _0x4a945b=_0x22f257;super(...arguments),_0x30b7bc(this,_0x4a945b(0x382),new _0x539394[(_0x4a945b(0x1ca))](null)),_0x30b7bc(this,'collabCursorState$',this[_0x4a945b(0x382)]['asObservable']());}[_0x22f257(0x2f8)](_0x5746d0){const _0x4afa1e=_0x22f257,{unitID:_0x11baee,memberID:_0x226bb2,textRanges:_0xe60d6b}=_0x5746d0,_0x2fdfe9=_0x3508f1(_0xe60d6b);if(_0x2fdfe9==='')return;const _0x5ed500={'unitID':_0x11baee,'memberID':_0x226bb2,'selection':_0x2fdfe9};this[_0x4afa1e(0x382)][_0x4afa1e(0x3a6)](_0x5ed500);}}var _0x92bc8e=Object[_0x22f257(0x2ce)],_0x2a486a=(_0x155e81,_0x8dd661,_0x12f45e,_0xc6795b)=>{const _0x416168=_0x22f257;for(var _0x236dd3=_0xc6795b>0x1?void 0x0:_0xc6795b?_0x92bc8e(_0x8dd661,_0x12f45e):_0x8dd661,_0x4cb44f=_0x155e81[_0x416168(0x1b0)]-0x1,_0x6690a9;_0x4cb44f>=0x0;_0x4cb44f--)(_0x6690a9=_0x155e81[_0x4cb44f])&&(_0x236dd3=_0x6690a9(_0x236dd3)||_0x236dd3);return _0x236dd3;},_0x3d2a90=(_0x2625d0,_0xb60839)=>(_0x3a5195,_0x5dc42f)=>_0xb60839(_0x3a5195,_0x5dc42f,_0x2625d0);const _0x5bc3fc=0x12c,_0x1b5e07=0x64;let _0x50a508=class extends _0x2a9662[_0x22f257(0x32b)]{constructor(_0x5edb71,_0x22fd10,_0x44cd23,_0x45842b,_0x1f6b82,_0x4b45a1,_0x321167,_0x22914e,_0x1a3965){const _0x4bdbb0=_0x22f257;super(),_0x30b7bc(this,'_online',!0x1),_0x30b7bc(this,_0x4bdbb0(0x35b),!0x1),_0x30b7bc(this,_0x4bdbb0(0x3b5),new _0x539394[(_0x4bdbb0(0x1ca))](new Map())),_0x30b7bc(this,_0x4bdbb0(0x3f2),this[_0x4bdbb0(0x3b5)]['asObservable']()),_0x30b7bc(this,_0x4bdbb0(0x22a),new _0x539394[(_0x4bdbb0(0x1ca))]([])),_0x30b7bc(this,_0x4bdbb0(0x171),this[_0x4bdbb0(0x22a)][_0x4bdbb0(0x367)](_0x539394[_0x4bdbb0(0x1cb)](_0x5bc3fc))),_0x30b7bc(this,'_updateLocalCursor',_0x2a9662['debounce'](_0x36e17c=>{const _0x2cf933=_0x4bdbb0,_0x597f94={'eventID':_0x119f28[_0x2cf933(0x262)][_0x2cf933(0x16d)],'data':{'unitID':this[_0x2cf933(0x323)],'memberID':this['_session']['getMemberID'](),'selection':_0x3508f1(_0x36e17c)}};this[_0x2cf933(0x3e3)][_0x2cf933(0x333)](_0x597f94,this[_0x2cf933(0x323)]);},_0x1b5e07)),(this['unitID']=_0x5edb71,this[_0x4bdbb0(0x3e3)]=_0x22fd10,this[_0x4bdbb0(0x276)]=_0x44cd23,this[_0x4bdbb0(0x1de)]=_0x45842b,this[_0x4bdbb0(0x261)]=_0x1f6b82,this[_0x4bdbb0(0x206)]=_0x4b45a1,this[_0x4bdbb0(0x3bb)]=_0x321167,this[_0x4bdbb0(0x1ae)]=_0x22914e,this[_0x4bdbb0(0x3e8)]=_0x1a3965);}get[_0x22f257(0x2d7)](){const _0x2182e8=_0x22f257;return this[_0x2182e8(0x3b5)][_0x2182e8(0x2ae)]();}get[_0x22f257(0x1db)](){const _0x4a6c77=_0x22f257;return this[_0x4a6c77(0x22a)]['getValue']();}[_0x22f257(0x258)](){const _0x2401dc=_0x22f257;super['dispose'](),this[_0x2401dc(0x3b5)]['next'](new Map()),this[_0x2401dc(0x3b5)][_0x2401dc(0x283)](),this['_roomMembers$'][_0x2401dc(0x3a6)]([]),this[_0x2401dc(0x22a)][_0x2401dc(0x283)]();}['init'](){const _0x5c883a=_0x22f257;this[_0x5c883a(0x35b)]||(this[_0x5c883a(0x35b)]=!0x0,this['_session'][_0x5c883a(0x23d)][_0x5c883a(0x367)](_0x539394[_0x5c883a(0x223)](this[_0x5c883a(0x2e5)]))[_0x5c883a(0x2e4)](_0x278da4=>{const _0x5cc60c=_0x5c883a;_0x278da4===_0x5b04f9['SessionStatus'][_0x5cc60c(0x3ab)]?this[_0x5cc60c(0x36f)]():this[_0x5cc60c(0x2d2)]();}),this[_0x5c883a(0x3e3)][_0x5c883a(0x248)][_0x5c883a(0x367)](_0x539394[_0x5c883a(0x223)](this[_0x5c883a(0x2e5)]))['subscribe'](_0x28355f=>{const _0x1d3247=_0x5c883a,_0x19f3c3=_0x28355f[_0x1d3247(0x32f)];_0x19f3c3===_0x119f28[_0x1d3247(0x262)][_0x1d3247(0x16d)]&&this[_0x1d3247(0x2f5)](_0x28355f),_0x19f3c3===_0x119f28[_0x1d3247(0x262)][_0x1d3247(0x260)]&&this[_0x1d3247(0x272)](_0x28355f);}),this[_0x5c883a(0x2f4)](this[_0x5c883a(0x3e8)]['onCommandExecuted'](_0x417908=>{const _0x4ae016=_0x5c883a,_0x415a85=_0x417908[_0x4ae016(0x28b)];_0x415a85!=null&&this[_0x4ae016(0x301)]&&_0x417908['id']===_0x1b62f9[_0x4ae016(0x3aa)]['id']&&_0x415a85[_0x4ae016(0x378)]===this[_0x4ae016(0x323)]&&_0x415a85[_0x4ae016(0x1cc)]===!0x1&&_0x415a85[_0x4ae016(0x1ff)][_0x4ae016(0x1b0)]>0x0&&this[_0x4ae016(0x271)](_0x415a85['ranges']);})),this['_syncEditingCollabCursorService'][_0x5c883a(0x3c4)][_0x5c883a(0x367)](_0x539394[_0x5c883a(0x223)](this['dispose$']))[_0x5c883a(0x2e4)](_0x58beea=>{const _0x4b5ca8=_0x5c883a;if((_0x58beea==null?void 0x0:_0x58beea[_0x4b5ca8(0x323)])!==this[_0x4b5ca8(0x323)])return;const _0x53d7d1={'eventID':_0x119f28[_0x4b5ca8(0x262)][_0x4b5ca8(0x16d)],'data':_0x58beea};this[_0x4b5ca8(0x2f5)](_0x53d7d1);}),this['disposeWithMe'](this['_commandService'][_0x5c883a(0x3b8)](_0x1855c7=>{const _0x28d908=_0x5c883a;if(_0x1855c7[_0x28d908(0x28b)]==null)return;const _0x5f1451=_0x1855c7[_0x28d908(0x28b)];if(_0x1855c7['id']!==_0x1b62f9[_0x28d908(0x3a1)]['id']||_0x5f1451[_0x28d908(0x378)]!==this[_0x28d908(0x323)])return;const _0xb948f={'id':'doc.mutation.rich-text-editing','params':_0x5f1451},_0x1f5ab6=this[_0x28d908(0x2d7)];for(const [_0x132571,_0x1afb14]of _0x1f5ab6){const _0x42c230={'id':_0x28d908(0x2fc),'params':{'unitId':this[_0x28d908(0x323)],'actions':null,'textRanges':_0x1afb14[_0x28d908(0x1ff)]}},_0x54773e=this[_0x28d908(0x3bb)][_0x28d908(0x397)](_0xb948f,_0x42c230,!0x1);if(_0x119f28[_0x28d908(0x1a6)](_0x54773e))throw _0x54773e[_0x28d908(0x37a)];_0x1f5ab6[_0x28d908(0x25d)](_0x132571,{..._0x1afb14,'ranges':_0x54773e[_0x28d908(0x1f6)][_0x28d908(0x28b)]['textRanges']});}queueMicrotask(()=>{const _0x2bf9ea=_0x28d908;this[_0x2bf9ea(0x3b5)][_0x2bf9ea(0x3a6)](_0x1f5ab6);});})));}['_onCursorUpdate'](_0x28f7f2){const _0x57a21f=_0x22f257;var _0x289756,_0x4cd30a;const {memberID:_0xdd1aeb,selection:_0xb89217}=_0x28f7f2['data'],_0x1acbba=_0x36a3eb(_0xb89217),_0x1f67a1=(_0x4cd30a=(_0x289756=this[_0x57a21f(0x261)][_0x57a21f(0x31a)](this['unitID'],_0xdd1aeb))==null?void 0x0:_0x289756[_0x57a21f(0x363)])!=null?_0x4cd30a:_0x57a21f(0x290),_0x3789a0={'color':this['_colorAssignService'][_0x57a21f(0x164)](_0xdd1aeb),'name':_0x1f67a1,'ranges':_0x1acbba},_0x435359=this[_0x57a21f(0x2d7)];_0x435359[_0x57a21f(0x25d)](_0xdd1aeb,_0x3789a0),this[_0x57a21f(0x3b5)][_0x57a21f(0x3a6)](_0x435359);}['_onCursorDelete'](_0x59c43e){const _0x30bc50=_0x22f257,{memberID:_0x5adb11}=_0x59c43e[_0x30bc50(0x36d)],_0x193c50=this[_0x30bc50(0x2d7)];_0x193c50[_0x30bc50(0x181)](_0x5adb11),this[_0x30bc50(0x3b5)]['next'](_0x193c50);}[_0x22f257(0x36f)](){const _0x38f326=_0x22f257;var _0x15d9a6;if(this[_0x38f326(0x301)]=!0x0,((_0x15d9a6=this[_0x38f326(0x1ae)]['getFocusedUnit']())==null?void 0x0:_0x15d9a6['getUnitId']())!==this['unitID'])return;const _0x5331cc=this[_0x38f326(0x276)][_0x38f326(0x270)](_0x1b62f9[_0x38f326(0x359)])[_0x38f326(0x324)]();Array[_0x38f326(0x3ec)](_0x5331cc)&&_0x5331cc['length']>0x0&&this[_0x38f326(0x271)](_0x5331cc);}[_0x22f257(0x2d2)](){const _0x1c1f85=_0x22f257;this[_0x1c1f85(0x301)]=!0x1;}};_0x50a508=_0x2a486a([_0x3d2a90(0x2,_0x2a9662['Inject'](_0x2a9662['Injector'])),_0x3d2a90(0x3,_0x2a9662['Inject'](_0x40de99)),_0x3d2a90(0x4,_0x2a9662[_0x22f257(0x166)](_0x5b04f9[_0x22f257(0x372)])),_0x3d2a90(0x5,_0x2a9662[_0x22f257(0x166)](_0x48dd5)),_0x3d2a90(0x6,_0x119f28['ITransformService']),_0x3d2a90(0x7,_0x2a9662[_0x22f257(0x3db)]),_0x3d2a90(0x8,_0x2a9662[_0x22f257(0x22e)])],_0x50a508);var _0x45e348=Object[_0x22f257(0x2ce)],_0xb070d4=(_0x4d1042,_0x28bae6,_0x2bb857,_0x4160b9)=>{const _0x30a6a7=_0x22f257;for(var _0x5744f0=_0x4160b9>0x1?void 0x0:_0x4160b9?_0x45e348(_0x28bae6,_0x2bb857):_0x28bae6,_0x425853=_0x4d1042[_0x30a6a7(0x1b0)]-0x1,_0x1df1cd;_0x425853>=0x0;_0x425853--)(_0x1df1cd=_0x4d1042[_0x425853])&&(_0x5744f0=_0x1df1cd(_0x5744f0)||_0x5744f0);return _0x5744f0;},_0x59b22b=(_0x17b65b,_0x2d11ea)=>(_0x223ade,_0x4ebd68)=>_0x2d11ea(_0x223ade,_0x4ebd68,_0x17b65b);const _0x2a27cb=0x12c,_0x4cfb04=0x64,_0x5b916d=()=>{let _0x3c8904=[],_0x576e60=!0x1;return _0x3b67d1=>{const _0x82d9be=_0x574a;_0x3c8904[_0x82d9be(0x2a4)](_0x3b67d1),_0x576e60||(_0x576e60=!0x0,setTimeout(()=>{const _0x213776=_0x82d9be;_0x3c8904[_0x213776(0x231)](_0xa53360=>_0xa53360()),_0x3c8904=[],_0x576e60=!0x1;}));};};let _0x1b8dd4=class extends _0x2a9662[_0x22f257(0x32b)]{constructor(_0x1cad44,_0x8d62b3,_0x530596,_0x5f6c24,_0xb444c3,_0x496f15,_0x18a69f,_0xfc046a){const _0x478144=_0x22f257;super(),_0x30b7bc(this,_0x478144(0x301),!0x1),_0x30b7bc(this,'_init',!0x1),_0x30b7bc(this,'_cursorInfo$',new _0x539394[(_0x478144(0x1ca))](new Map())),_0x30b7bc(this,_0x478144(0x3f2),this['_cursorInfo$']['asObservable']()),_0x30b7bc(this,'_roomMembers$',new _0x539394[(_0x478144(0x1ca))]([])),_0x30b7bc(this,_0x478144(0x171),this[_0x478144(0x22a)][_0x478144(0x367)](_0x539394[_0x478144(0x1cb)](_0x2a27cb))),_0x30b7bc(this,_0x478144(0x271),_0x2a9662[_0x478144(0x2db)]((_0x10be73,_0x3453f4)=>{const _0x3db7f4=_0x478144,_0x337f9c={'eventID':_0x119f28[_0x3db7f4(0x262)][_0x3db7f4(0x16d)],'data':{'unitID':this[_0x3db7f4(0x323)],'memberID':this[_0x3db7f4(0x3e3)][_0x3db7f4(0x317)](),'selection':_0xe1fbe2['serializeRangeWithSheet'](_0x10be73,_0x3453f4[_0x3db7f4(0x246)])}};this[_0x3db7f4(0x3e3)][_0x3db7f4(0x333)](_0x337f9c,this[_0x3db7f4(0x323)]);},_0x4cfb04)),(this['unitID']=_0x1cad44,this['_session']=_0x8d62b3,this['_injector']=_0x530596,this[_0x478144(0x1de)]=_0x5f6c24,this[_0x478144(0x261)]=_0xb444c3,this['_univerInstanceService']=_0x496f15,this[_0x478144(0x3e8)]=_0x18a69f,this[_0x478144(0x312)]=_0xfc046a);}get['cursorInfo'](){const _0x5e3a29=_0x22f257;return this['_cursorInfo$'][_0x5e3a29(0x2ae)]();}get[_0x22f257(0x1db)](){const _0x54a299=_0x22f257;return this['_roomMembers$'][_0x54a299(0x2ae)]();}['dispose'](){const _0x5372ce=_0x22f257;super['dispose'](),this[_0x5372ce(0x3b5)]['next'](new Map()),this['_cursorInfo$'][_0x5372ce(0x283)](),this['_roomMembers$'][_0x5372ce(0x3a6)]([]),this[_0x5372ce(0x22a)]['complete']();}[_0x22f257(0x3e1)](){const _0x576246=_0x22f257;this['_init']||(this[_0x576246(0x35b)]=!0x0,this[_0x576246(0x3e3)][_0x576246(0x23d)][_0x576246(0x367)](_0x539394[_0x576246(0x223)](this[_0x576246(0x2e5)]))[_0x576246(0x2e4)](_0x40dbfc=>{const _0x4df3de=_0x576246;_0x40dbfc===_0x5b04f9[_0x4df3de(0x25f)][_0x4df3de(0x3ab)]?this[_0x4df3de(0x36f)]():this[_0x4df3de(0x2d2)]();}),this[_0x576246(0x3e3)][_0x576246(0x248)][_0x576246(0x367)](_0x539394[_0x576246(0x223)](this['dispose$']))[_0x576246(0x2e4)](_0xaaeb00=>{const _0x533c75=_0x576246,_0x29243b=_0xaaeb00['eventID'];_0x29243b===_0x119f28[_0x533c75(0x262)][_0x533c75(0x16d)]&&this[_0x533c75(0x2f5)](_0xaaeb00),_0x29243b===_0x119f28[_0x533c75(0x262)][_0x533c75(0x260)]&&this['_onCursorDelete'](_0xaaeb00);}),this['_onRefRangeChange'](),this[_0x576246(0x2f4)](this['_commandService']['onCommandExecuted'](_0x210da7=>{const _0x46ad76=_0x576246;if(this[_0x46ad76(0x301)]&&_0x210da7['id']===_0x10d874[_0x46ad76(0x331)]['id']&&_0x210da7[_0x46ad76(0x28b)]['unitId']===this[_0x46ad76(0x323)]){const _0x5c1bb3=_0x210da7[_0x46ad76(0x28b)];this[_0x46ad76(0x271)](_0x5c1bb3[_0x46ad76(0x1da)],_0x5c1bb3['selections'][0x0]);}})));}[_0x22f257(0x2f5)](_0x3e3ba5){const _0x13ebad=_0x22f257;var _0x54fff2,_0x389c13;const {memberID:_0x22bb4e,selection:_0x12f9ac}=_0x3e3ba5[_0x13ebad(0x36d)],{sheetName:_0x470a2d,range:_0x32e19d}=_0xe1fbe2[_0x13ebad(0x2de)](_0x12f9ac),_0x2bfc9f={'name':(_0x389c13=(_0x54fff2=this[_0x13ebad(0x261)][_0x13ebad(0x31a)](this[_0x13ebad(0x323)],_0x22bb4e))==null?void 0x0:_0x54fff2[_0x13ebad(0x363)])!=null?_0x389c13:_0x13ebad(0x290),'range':this['_getMergeRange'](_0x470a2d,_0x32e19d),'sheetID':_0x470a2d,'color':this[_0x13ebad(0x1de)]['assignAColorForMemberID'](_0x22bb4e),'selection':_0x12f9ac},_0x2a69c6=this[_0x13ebad(0x2d7)];_0x2a69c6['set'](_0x22bb4e,_0x2bfc9f),this[_0x13ebad(0x3b5)][_0x13ebad(0x3a6)](_0x2a69c6);}[_0x22f257(0x272)](_0x1d5f09){const _0x386fcb=_0x22f257,{memberID:_0x28fa16}=_0x1d5f09[_0x386fcb(0x36d)],_0x18e5fc=this[_0x386fcb(0x2d7)];_0x18e5fc[_0x386fcb(0x181)](_0x28fa16),this[_0x386fcb(0x3b5)][_0x386fcb(0x3a6)](_0x18e5fc);}[_0x22f257(0x33c)](_0x238b8a,_0x295056){const _0x2c024e=_0x22f257;var _0x216722,_0x478881;const _0x4d6902=(_0x478881=(_0x216722=this[_0x2c024e(0x1ae)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x216722[_0x2c024e(0x18b)](_0x238b8a))==null?void 0x0:_0x478881[_0x2c024e(0x1e4)]();return(_0x4d6902==null?void 0x0:_0x4d6902[_0x2c024e(0x288)](_0x345136=>_0x2a9662[_0x2c024e(0x182)]['contains'](_0x345136,_0x295056)))||_0x295056;}[_0x22f257(0x242)](){const _0x16986f=_0x22f257,_0x3689f7=new _0x2a9662[(_0x16986f(0x1c3))](),_0x56377d=_0x5b916d(),_0x5bba70=()=>{const _0xac6503=_0x16986f;_0x3689f7['dispose']();const _0x72d1b9=(_0x12ab50,_0x25f96e,_0x238923,_0x2a79a3)=>{const _0x4b6a5c=_0x574a;let _0x403b5f=[];switch(_0x12ab50['id']){case _0x10d874[_0x4b6a5c(0x17d)][_0x4b6a5c(0x2fd)]:{_0x403b5f=_0x10d874[_0x4b6a5c(0x39c)](_0x12ab50,_0x2a79a3);break;}case _0x10d874[_0x4b6a5c(0x17d)]['DeleteRangeMoveUpCommandId']:{_0x403b5f=_0x10d874[_0x4b6a5c(0x2d5)](_0x12ab50,_0x2a79a3);break;}case _0x10d874[_0x4b6a5c(0x17d)][_0x4b6a5c(0x34b)]:{_0x403b5f=_0x10d874[_0x4b6a5c(0x239)](_0x12ab50,_0x2a79a3);break;}case _0x10d874[_0x4b6a5c(0x17d)]['InsertRangeMoveDownCommandId']:{_0x403b5f=_0x10d874[_0x4b6a5c(0x2bf)](_0x12ab50,_0x2a79a3);break;}case _0x10d874[_0x4b6a5c(0x17d)]['InsertRangeMoveRightCommandId']:{_0x403b5f=_0x10d874[_0x4b6a5c(0x39d)](_0x12ab50,_0x2a79a3);break;}case _0x10d874[_0x4b6a5c(0x17d)]['InsertRowCommandId']:{_0x403b5f=_0x10d874[_0x4b6a5c(0x34a)](_0x12ab50,_0x2a79a3);break;}case _0x10d874[_0x4b6a5c(0x17d)]['MoveRangeCommandId']:{_0x403b5f=_0x10d874[_0x4b6a5c(0x3a4)](_0x12ab50,_0x2a79a3);break;}case _0x10d874[_0x4b6a5c(0x17d)][_0x4b6a5c(0x1ea)]:{_0x403b5f=_0x10d874[_0x4b6a5c(0x2ec)](_0x12ab50,_0x2a79a3);break;}case _0x10d874[_0x4b6a5c(0x17d)][_0x4b6a5c(0x284)]:{_0x403b5f=_0x10d874[_0x4b6a5c(0x2d1)](_0x12ab50,_0x2a79a3);break;}}const _0x452193=_0x10d874['runRefRangeMutations'](_0x403b5f,_0x2a79a3),_0x4f7d78=this[_0x4b6a5c(0x2d7)][_0x4b6a5c(0x270)](_0x25f96e);if(_0x4f7d78&&_0x452193){const _0x4a667f={..._0x4f7d78,'range':_0x452193};this[_0x4b6a5c(0x2d7)][_0x4b6a5c(0x25d)](_0x25f96e,_0x4a667f),_0x56377d(()=>{const _0x459585=_0x4b6a5c,_0x2bf62d=this[_0x459585(0x312)]['registerRefRange'](_0x452193,_0x190361=>(_0x2bf62d[_0x459585(0x258)](),_0x72d1b9(_0x190361,_0x25f96e,_0x238923,_0x452193)));_0x3689f7['add'](_0x2bf62d);});}return{'redos':[],'undos':[]};};this[_0xac6503(0x2d7)][_0xac6503(0x231)]((_0x49b8fe,_0x5156a2)=>{const _0x595009=_0xac6503,{range:_0x34eaf5,sheetID:_0x121d7f}=_0x49b8fe,_0x3bdc79=this[_0x595009(0x312)][_0x595009(0x168)](_0x34eaf5,_0x11f921=>(_0x3bdc79[_0x595009(0x258)](),_0x72d1b9(_0x11f921,_0x5156a2,_0x121d7f,_0x34eaf5)));_0x3689f7[_0x595009(0x3de)](_0x3bdc79);});};this[_0x16986f(0x2f4)](_0x2a9662[_0x16986f(0x22f)](this[_0x16986f(0x3b5)][_0x16986f(0x2e4)](()=>{_0x5bba70();})));}[_0x22f257(0x36f)](){const _0x5987b0=_0x22f257;var _0x5530eb,_0x8675b5;if(this[_0x5987b0(0x301)]=!0x0,((_0x5530eb=this[_0x5987b0(0x1ae)][_0x5987b0(0x299)]())==null?void 0x0:_0x5530eb[_0x5987b0(0x3ef)]())!==this[_0x5987b0(0x323)])return;const _0x25cd74=(_0x8675b5=this['_injector'][_0x5987b0(0x270)](_0x10d874['SheetsSelectionsService'])[_0x5987b0(0x198)]())==null?void 0x0:_0x8675b5[0x0],_0x563ea7=this[_0x5987b0(0x1ae)][_0x5987b0(0x389)](_0x2a9662[_0x5987b0(0x3d8)][_0x5987b0(0x385)])[_0x5987b0(0x23a)]();_0x25cd74&&_0x563ea7&&this[_0x5987b0(0x271)](_0x563ea7[_0x5987b0(0x1d2)](),_0x25cd74);}[_0x22f257(0x2d2)](){const _0xc3b3bd=_0x22f257;this[_0xc3b3bd(0x301)]=!0x1;}};_0x1b8dd4=_0xb070d4([_0x59b22b(0x2,_0x2a9662['Inject'](_0x2a9662['Injector'])),_0x59b22b(0x3,_0x2a9662[_0x22f257(0x166)](_0x40de99)),_0x59b22b(0x4,_0x2a9662[_0x22f257(0x166)](_0x5b04f9[_0x22f257(0x372)])),_0x59b22b(0x5,_0x2a9662[_0x22f257(0x3db)]),_0x59b22b(0x6,_0x2a9662[_0x22f257(0x22e)]),_0x59b22b(0x7,_0x2a9662[_0x22f257(0x166)](_0x10d874['RefRangeService']))],_0x1b8dd4);var _0x2c1e11=Object[_0x22f257(0x2ce)],_0x126c59=(_0x4d64f8,_0x3b08b5,_0x5755a4,_0x21aace)=>{const _0x15a5f4=_0x22f257;for(var _0x16235d=_0x21aace>0x1?void 0x0:_0x21aace?_0x2c1e11(_0x3b08b5,_0x5755a4):_0x3b08b5,_0x629d76=_0x4d64f8[_0x15a5f4(0x1b0)]-0x1,_0x4e0ab0;_0x629d76>=0x0;_0x629d76--)(_0x4e0ab0=_0x4d64f8[_0x629d76])&&(_0x16235d=_0x4e0ab0(_0x16235d)||_0x16235d);return _0x16235d;},_0x2064fe=(_0x3b51ba,_0x455e40)=>(_0x1f575f,_0xb7a76a)=>_0x455e40(_0x1f575f,_0xb7a76a,_0x3b51ba);let _0x2dfea8=class extends _0x2a9662['RxDisposable']{constructor(_0x1bcf46,_0x4d63d9,_0x494d34){const _0x561381=_0x22f257;super(),_0x30b7bc(this,'_entities',new Map()),_0x30b7bc(this,_0x561381(0x33f),new _0x539394[(_0x561381(0x240))]()),(this[_0x561381(0x1ae)]=_0x1bcf46,this['_injector']=_0x4d63d9,this[_0x561381(0x31c)]=_0x494d34,this['_init']());}['dispose'](){const _0x4b6227=_0x22f257;super[_0x4b6227(0x258)](),this[_0x4b6227(0x33f)][_0x4b6227(0x283)](),this[_0x4b6227(0x33d)][_0x4b6227(0x231)](_0x3578b7=>_0x3578b7[_0x4b6227(0x258)]());}['getCollabCursors$'](_0x50b0f2){const _0x1cbc58=_0x22f257;return this[_0x1cbc58(0x33d)][_0x1cbc58(0x1fb)](_0x50b0f2)?this[_0x1cbc58(0x33d)][_0x1cbc58(0x270)](_0x50b0f2)[_0x1cbc58(0x3f2)]:this[_0x1cbc58(0x33f)][_0x1cbc58(0x367)](_0x539394[_0x1cbc58(0x35d)](_0x11e103=>_0x11e103[_0x1cbc58(0x323)]===_0x50b0f2),_0x539394[_0x1cbc58(0x3eb)](_0x47bb9a=>_0x47bb9a[_0x1cbc58(0x3f2)]));}[_0x22f257(0x35b)](){const _0x3adbdb=_0x22f257;this[_0x3adbdb(0x1ae)][_0x3adbdb(0x1dd)](_0x2a9662['UniverInstanceType'][_0x3adbdb(0x385)])[_0x3adbdb(0x367)](_0x539394['takeUntil'](this[_0x3adbdb(0x2e5)]))[_0x3adbdb(0x2e4)](async _0x36ff88=>{const _0x26479f=_0x3adbdb,_0x3f73de=_0x36ff88['getUnitId'](),_0x2490b6=await this['_startSheetCollabCursor'](_0x3f73de);this[_0x26479f(0x33f)][_0x26479f(0x3a6)](_0x2490b6),this[_0x26479f(0x33d)]['set'](_0x3f73de,_0x2490b6);}),this[_0x3adbdb(0x1ae)][_0x3adbdb(0x1dd)](_0x2a9662[_0x3adbdb(0x3d8)][_0x3adbdb(0x391)])[_0x3adbdb(0x367)](_0x539394[_0x3adbdb(0x223)](this[_0x3adbdb(0x2e5)]))[_0x3adbdb(0x367)](_0x539394[_0x3adbdb(0x35d)](_0x10a275=>!_0x10a275[_0x3adbdb(0x3ef)]()['startsWith']('__')))['subscribe'](async _0x2240d4=>{const _0x3df924=_0x3adbdb,_0x46cfd3=_0x2240d4[_0x3df924(0x3ef)](),_0x394ab6=await this['_startDocCollabCursor'](_0x46cfd3);this[_0x3df924(0x33f)][_0x3df924(0x3a6)](_0x394ab6),this[_0x3df924(0x33d)][_0x3df924(0x25d)](_0x46cfd3,_0x394ab6);}),_0x539394[_0x3adbdb(0x232)](this[_0x3adbdb(0x1ae)][_0x3adbdb(0x25e)](_0x2a9662[_0x3adbdb(0x3d8)][_0x3adbdb(0x391)]),this[_0x3adbdb(0x1ae)]['getTypeOfUnitDisposed$'](_0x2a9662[_0x3adbdb(0x3d8)][_0x3adbdb(0x385)]))[_0x3adbdb(0x367)](_0x539394['takeUntil'](this[_0x3adbdb(0x2e5)]))[_0x3adbdb(0x2e4)](_0x3c426b=>{const _0x559f5d=_0x3adbdb,_0x2a619f=_0x3c426b['getUnitId'](),_0x51c610=this['_entities']['get'](_0x2a619f);_0x51c610&&(_0x51c610[_0x559f5d(0x258)](),this[_0x559f5d(0x33d)][_0x559f5d(0x181)](_0x2a619f));});}async[_0x22f257(0x362)](_0x3f8da2){const _0x249e6e=_0x22f257,_0x528dc9=await this[_0x249e6e(0x31c)][_0x249e6e(0x26f)](_0x3f8da2),_0x19b619=this[_0x249e6e(0x276)][_0x249e6e(0x2ba)](_0x1b8dd4,_0x3f8da2,_0x528dc9);return _0x19b619[_0x249e6e(0x3e1)](),_0x19b619;}async[_0x22f257(0x217)](_0x1bc99d){const _0x185f02=_0x22f257,_0xa372a5=await this['_collabSessionService'][_0x185f02(0x26f)](_0x1bc99d),_0x3e889c=this[_0x185f02(0x276)][_0x185f02(0x2ba)](_0x50a508,_0x1bc99d,_0xa372a5);return _0x3e889c['init'](),_0x3e889c;}};_0x2dfea8=_0x126c59([_0x2064fe(0x0,_0x2a9662['IUniverInstanceService']),_0x2064fe(0x1,_0x2a9662[_0x22f257(0x166)](_0x2a9662[_0x22f257(0x282)])),_0x2064fe(0x2,_0x2a9662[_0x22f257(0x166)](_0x5b04f9['CollaborationSessionService']))],_0x2dfea8);const _0x8b5212=0x14,_0x2627c4=0xc8,_0x59a6b8=0x4,_0x57b58b=0x5;function _0x173a6e(_0x3f6757,_0x577e5b){const _0x12308d=_0x22f257;let {radius:_0x5dbc49,width:_0x21af0e,height:_0x522451}=_0x577e5b;_0x5dbc49=_0x5dbc49!=null?_0x5dbc49:0x0,_0x21af0e=_0x21af0e!=null?_0x21af0e:0x1e,_0x522451=_0x522451!=null?_0x522451:0x1e;let _0x50ecf8=0x0,_0x4c1447=0x0,_0x343a59=0x0;_0x50ecf8=_0x4c1447=_0x343a59=Math[_0x12308d(0x264)](_0x5dbc49,_0x21af0e/0x2,_0x522451/0x2),_0x3f6757[_0x12308d(0x1d0)](),_0x3f6757[_0x12308d(0x1e6)](_0x50ecf8,0x0),_0x3f6757[_0x12308d(0x2c0)](_0x21af0e-_0x4c1447,0x0),_0x3f6757[_0x12308d(0x19f)](_0x21af0e-_0x4c1447,_0x4c1447,_0x4c1447,Math['PI']*0x3/0x2,0x0,!0x1),_0x3f6757['lineTo'](_0x21af0e,_0x522451-_0x343a59),_0x3f6757[_0x12308d(0x19f)](_0x21af0e-_0x343a59,_0x522451-_0x343a59,_0x343a59,0x0,Math['PI']/0x2,!0x1),_0x3f6757['lineTo'](0x0,_0x522451),_0x3f6757['lineTo'](0x0,_0x50ecf8),_0x3f6757['arc'](_0x50ecf8,_0x50ecf8,_0x50ecf8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3f6757['closePath'](),_0x577e5b[_0x12308d(0x319)]&&(_0x3f6757[_0x12308d(0x228)](),_0x3f6757[_0x12308d(0x303)]=_0x577e5b['fill'],_0x577e5b[_0x12308d(0x31e)]===_0x12308d(0x1b5)?_0x3f6757[_0x12308d(0x319)](_0x12308d(0x1b5)):_0x3f6757['fill'](),_0x3f6757[_0x12308d(0x195)]());}class _0x84e299 extends _0x53abef[_0x22f257(0x3e5)]{constructor(_0x1a723c,_0x41e3c3){const _0x52f794=_0x22f257;super(_0x1a723c,_0x41e3c3),_0x30b7bc(this,_0x52f794(0x376)),_0x30b7bc(this,_0x52f794(0x219)),(this[_0x52f794(0x376)]=_0x41e3c3==null?void 0x0:_0x41e3c3[_0x52f794(0x376)],this['text']=_0x41e3c3==null?void 0x0:_0x41e3c3[_0x52f794(0x219)]);}static['drawWith'](_0xee7561,_0x538ea2){const _0x49eed5=_0x22f257,{text:_0x417beb,color:_0x102182}=_0x538ea2;_0xee7561[_0x49eed5(0x228)](),_0xee7561[_0x49eed5(0x254)]=_0x49eed5(0x220);const _0x518eaf=_0xee7561[_0x49eed5(0x266)](_0x417beb)['width'],_0x431819=Math['min'](_0x518eaf+0x2*_0x59a6b8,_0x2627c4);_0x173a6e(_0xee7561,{'height':_0x8b5212,'radius':0x4,'width':_0x431819,'fill':_0x102182}),_0xee7561[_0x49eed5(0x303)]=_0x49eed5(0x29a);const _0x201b5f=_0x59a6b8,_0x5a88ce=_0x8b5212-_0x57b58b,_0x1b665c=_0x2627c4-0x2*_0x59a6b8;if(_0x518eaf>_0x1b665c){let _0x46793c='',_0x554e6c=0x0;for(const _0x445061 of _0x417beb){const _0x105aea=_0xee7561['measureText'](_0x445061)[_0x49eed5(0x39e)];if(_0x554e6c+_0x105aea<=_0x1b665c-_0xee7561['measureText']('...')[_0x49eed5(0x39e)])_0x46793c+=_0x445061,_0x554e6c+=_0x105aea;else{_0x46793c+=_0x49eed5(0x1c4);break;}}_0xee7561[_0x49eed5(0x229)](_0x46793c,_0x201b5f,_0x5a88ce);}else _0xee7561['fillText'](_0x417beb,_0x201b5f,_0x5a88ce);_0xee7561[_0x49eed5(0x195)]();}[_0x22f257(0x21d)](_0xbd3c70){const _0x4047e6=_0x22f257;_0x84e299[_0x4047e6(0x16b)](_0xbd3c70,this);}}const _0x5eb4a6=_0x22f257(0x22b),_0x11bfe7=_0x22f257(0x3d2),_0xeb3814=_0x22f257(0x1e2),_0x14ebd1=0x6,_0x12aeee=1.5,_0x1c27b7=0x4,_0x47253f=1.5,_0x440b3f=_0x22f257(0x226);class _0x37aef7{constructor(_0x32fc84,_0x2476f7,_0x14dce2,_0xfa1188){const _0xbb365e=_0x22f257;_0x30b7bc(this,_0xbb365e(0x204),[]),_0x30b7bc(this,_0xbb365e(0x334),null),_0x30b7bc(this,'_textBubble',null),_0x30b7bc(this,_0xbb365e(0x2fe),null),_0x30b7bc(this,'_hideTimer',null),_0x30b7bc(this,'_eventUnsubscribe',null),(this[_0xbb365e(0x35f)]=_0x32fc84,this[_0xbb365e(0x211)]=_0x2476f7,this[_0xbb365e(0x3d5)]=_0x14dce2,this[_0xbb365e(0x1fc)]=_0xfa1188,this['_render']());}set['_hover'](_0x520e8a){const _0x423664=_0x22f257;_0x520e8a?(this['_anchorDot']&&this['_anchorDot'][_0x423664(0x1d4)](),this[_0x423664(0x2e9)]&&this[_0x423664(0x2e9)][_0x423664(0x3a7)]()):(this['_anchorDot']&&this[_0x423664(0x2fe)][_0x423664(0x3a7)](),this['_textBubble']&&this[_0x423664(0x2e9)][_0x423664(0x1d4)]());}[_0x22f257(0x258)](){const _0x3872bf=_0x22f257;for(const _0x5addf0 of this[_0x3872bf(0x204)])_0x5addf0[_0x3872bf(0x258)]();this[_0x3872bf(0x2e9)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x3872bf(0x258)](),this['_anchor']&&this[_0x3872bf(0x334)][_0x3872bf(0x258)](),this[_0x3872bf(0x309)]&&this['_eventUnsubscribe']();}[_0x22f257(0x257)](){const _0xb60728=_0x22f257;var _0x225e6f;const {_docSkeleton:_0x315e53,_document:_0xbc18b8}=this,{color:_0x4b89d7,name:_0x26543a,ranges:_0x2cc93a}=this[_0xb60728(0x35f)],_0x536f11=_0xbc18b8[_0xb60728(0x27f)](),{docsLeft:_0x3f17ed,docsTop:_0x7fb118}=_0x536f11,_0x1da5cf=new _0xccddd6[(_0xb60728(0x249))](_0x536f11,_0x315e53);for(const {startOffset:_0xeb8d55,endOffset:_0x6ece6b,rangeType:_0x18f4c6,segmentId:_0x114900,segmentPage:_0x43650c,collapsed:_0xe5e8ff,isActive:_0x120fdd}of _0x2cc93a){const _0x5e7b14=_0x315e53[_0xb60728(0x338)](_0xeb8d55,!0x0,_0x114900,_0x43650c);let _0x514fbb=_0x315e53[_0xb60728(0x338)](_0x6ece6b,!0x0,_0x114900,_0x43650c);if(_0x514fbb==null&&(_0x514fbb=_0x315e53['findNodePositionByCharIndex'](_0x6ece6b-0x1,!0x1,_0x114900,_0x43650c)),_0x120fdd){const {contentBoxPointGroup:_0x4956c8}=_0x1da5cf[_0xb60728(0x307)](_0x514fbb,_0x514fbb);if(_0x4956c8[_0xb60728(0x1b0)]===0x0)continue;this[_0xb60728(0x2ea)](_0x4b89d7,_0x4956c8,_0x3f17ed,_0x7fb118,_0x26543a),this[_0xb60728(0x309)]=this[_0xb60728(0x192)]();}if(_0x5e7b14&&_0x514fbb){if(_0x18f4c6===_0x2a9662[_0xb60728(0x26b)][_0xb60728(0x32a)]){const _0x3671d9=new _0xccddd6[(_0xb60728(0x393))](_0x536f11,_0x315e53),{pointGroup:_0x9726fa}=(_0x225e6f=_0x3671d9[_0xb60728(0x307)](_0x5e7b14,_0x514fbb))!=null?_0x225e6f:{};if(_0x9726fa==null||_0x9726fa[_0xb60728(0x1b0)]===0x0)continue;this[_0xb60728(0x2c2)](_0x4b89d7,_0x9726fa,_0x3f17ed,_0x7fb118);}else{if(!_0xe5e8ff){const {borderBoxPointGroup:_0x5f09df}=_0x1da5cf[_0xb60728(0x307)](_0x5e7b14,_0x514fbb);if(_0x5f09df[_0xb60728(0x1b0)]===0x0)continue;this[_0xb60728(0x22c)](_0x4b89d7,_0x5f09df,_0x3f17ed,_0x7fb118);}}}}}[_0x22f257(0x2ea)](_0x3fd0a4,_0x339567,_0x1e09b6,_0xaed142,_0x3ea37b){const _0x4355c0=_0x22f257,_0x1df2d0=this['_getAnchorBounding'](_0x339567),{left:_0x2e3241,top:_0x4fb776,height:_0x232759}=_0x1df2d0,_0x94285c=this[_0x4355c0(0x328)](),_0x8baddc=_0x47253f/_0x94285c,_0x372daa=new _0x53abef[(_0x4355c0(0x1d9))](_0x5eb4a6+_0x2a9662[_0x4355c0(0x17c)]['generateRandomId'](_0x14ebd1),{'left':_0x2e3241+_0x1e09b6-_0x8baddc,'top':_0x4fb776+_0xaed142,'height':_0x232759,'width':_0x12aeee,'fill':_0x3fd0a4||_0x53abef[_0x4355c0(0x2c8)](_0x2a9662[_0x4355c0(0x3b0)][_0x4355c0(0x1c0)],0x0),'strokeWidth':_0x8baddc,'stroke':_0x440b3f,'evented':!0x0});this[_0x4355c0(0x334)]=_0x372daa,this['_scene'][_0x4355c0(0x2a8)](_0x372daa,_0xccddd6['TEXT_RANGE_LAYER_INDEX']);const _0x217770=new _0x53abef[(_0x4355c0(0x1d9))](_0x5eb4a6+_0x2a9662[_0x4355c0(0x17c)]['generateRandomId'](_0x14ebd1),{'left':_0x2e3241+_0x1e09b6-_0x8baddc,'top':_0x4fb776+_0xaed142-_0x1c27b7/0x2,'height':_0x1c27b7,'width':_0x1c27b7,'fill':_0x3fd0a4||_0x53abef['getColor'](_0x2a9662[_0x4355c0(0x3b0)][_0x4355c0(0x1c0)],0x0),'strokeWidth':0x0,'stroke':_0x3fd0a4||_0x53abef['getColor'](_0x2a9662['COLORS'][_0x4355c0(0x1c0)],0x0),'evented':!0x1});this['_anchorDot']=_0x217770,this[_0x4355c0(0x211)]['addObject'](_0x217770,_0xccddd6[_0x4355c0(0x30a)]);const _0x2c2d00=new _0x84e299(_0x5eb4a6+_0x2a9662[_0x4355c0(0x17c)]['generateRandomId'](_0x14ebd1),{'left':_0x2e3241+_0x1e09b6-_0x8baddc,'top':_0x4fb776+_0xaed142-_0x8b5212,'text':_0x3ea37b,'color':_0x3fd0a4});this[_0x4355c0(0x2e9)]=_0x2c2d00,this[_0x4355c0(0x211)]['addObject'](_0x2c2d00,_0xccddd6['TEXT_RANGE_LAYER_INDEX']),this[_0x4355c0(0x38c)]=!0x1;}[_0x22f257(0x192)](){const _0xcf90c1=_0x22f257,_0x14570d=this[_0xcf90c1(0x334)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x3488ea=_0xcf90c1;this[_0x3488ea(0x38c)]=!0x0;}),_0x5170a6=this[_0xcf90c1(0x334)]['onPointerLeave$'][_0xcf90c1(0x313)](()=>{const _0x1d5d83=_0xcf90c1;this[_0x1d5d83(0x1fd)]&&clearTimeout(this[_0x1d5d83(0x1fd)]),this[_0x1d5d83(0x1fd)]=setTimeout(()=>{const _0xbb28fa=_0x1d5d83;this[_0xbb28fa(0x38c)]=!0x1;},0x7d0);});return()=>{const _0x4888e1=_0xcf90c1;_0x14570d[_0x4888e1(0x174)](),_0x5170a6[_0x4888e1(0x174)]();};}[_0x22f257(0x22c)](_0x51b938,_0x1a6ba3,_0x977cbf,_0x18757f){const _0x1f0a9a=_0x22f257,_0x45afb4=new _0x2a9662[(_0x1f0a9a(0x21a))](_0x51b938)[_0x1f0a9a(0x388)](0.2)[_0x1f0a9a(0x2f2)](),_0x133300=new _0x53abef[(_0x1f0a9a(0x18c))](_0x11bfe7+_0x2a9662['Tools'][_0x1f0a9a(0x2dc)](_0x14ebd1),{'pointsGroup':_0x1a6ba3,'fill':_0x45afb4||_0x53abef[_0x1f0a9a(0x2c8)](_0x2a9662['COLORS'][_0x1f0a9a(0x1c0)],0.2),'left':_0x977cbf,'top':_0x18757f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x133300),this[_0x1f0a9a(0x211)][_0x1f0a9a(0x2a8)](_0x133300,_0xccddd6[_0x1f0a9a(0x30a)]);}['_drawRectRange'](_0x559b33,_0x5120e0,_0x399343,_0x50aadc){const _0x230c85=_0x22f257,_0x4a64af=new _0x2a9662[(_0x230c85(0x21a))](_0x559b33)[_0x230c85(0x388)](0.2)[_0x230c85(0x2f2)](),_0x255808=new _0x53abef[(_0x230c85(0x18c))](_0xeb3814+_0x2a9662['Tools'][_0x230c85(0x2dc)](_0x14ebd1),{'pointsGroup':_0x5120e0,'fill':_0x4a64af||_0x53abef['getColor'](_0x2a9662[_0x230c85(0x3b0)][_0x230c85(0x1c0)],0.2),'left':_0x399343,'top':_0x50aadc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x230c85(0x204)][_0x230c85(0x2a4)](_0x255808),this[_0x230c85(0x211)][_0x230c85(0x2a8)](_0x255808,_0xccddd6[_0x230c85(0x30a)]);}[_0x22f257(0x3d1)](_0x47c6ac){const _0x20e57c=_0x47c6ac[0x0],_0x1a8dbd=_0x20e57c[0x0],_0x583201=_0x20e57c[0x2],{x:_0x3b48e5,y:_0xbc2c6b}=_0x1a8dbd,{x:_0x2ea4a7,y:_0xed93c1}=_0x583201;return{'left':_0x3b48e5,'top':_0xbc2c6b,'width':_0x2ea4a7-_0x3b48e5,'height':_0xed93c1-_0xbc2c6b};}[_0x22f257(0x328)](){const _0x4dea8d=_0x22f257,{scaleX:_0x2583e0,scaleY:_0x278568}=this['_scene'][_0x4dea8d(0x1a7)]();return Math['max'](_0x2583e0,_0x278568);}}var _0x5d6029=Object[_0x22f257(0x2ce)],_0x33edb9=(_0x8716dd,_0x3c5167,_0x509903,_0x31a194)=>{const _0x45198b=_0x22f257;for(var _0x4dcd8a=_0x31a194>0x1?void 0x0:_0x31a194?_0x5d6029(_0x3c5167,_0x509903):_0x3c5167,_0x51386d=_0x8716dd[_0x45198b(0x1b0)]-0x1,_0x40f2cd;_0x51386d>=0x0;_0x51386d--)(_0x40f2cd=_0x8716dd[_0x51386d])&&(_0x4dcd8a=_0x40f2cd(_0x4dcd8a)||_0x4dcd8a);return _0x4dcd8a;},_0x5900ba=(_0x348c4d,_0x4c34ca)=>(_0x1da180,_0x4ed708)=>_0x4c34ca(_0x1da180,_0x4ed708,_0x348c4d);let _0x3cbae1=class extends _0x2a9662['RxDisposable']{constructor(_0x5443bd,_0x5ec484,_0x535358,_0xf87466,_0x3eff29){const _0x3444c4=_0x22f257;super(),_0x30b7bc(this,_0x3444c4(0x24f),[]),_0x30b7bc(this,_0x3444c4(0x337),[]),(this['_context']=_0x5443bd,this['_docSkeletonManagerService']=_0x5ec484,this[_0x3444c4(0x2d3)]=_0x535358,this[_0x3444c4(0x3e8)]=_0xf87466,this['_themeService']=_0x3eff29,this[_0x3444c4(0x35b)]());}[_0x22f257(0x35b)](){const _0x58e73c=_0x22f257,_0xef4912=this['_context']['unitId'],_0x16b3ba=this[_0x58e73c(0x179)];this['disposeWithMe'](_0x539394[_0x58e73c(0x1e9)]([this[_0x58e73c(0x2d3)]['getCollabCursors$'](_0xef4912),this['_themeService'][_0x58e73c(0x380)]])[_0x58e73c(0x367)](_0x388455[_0x58e73c(0x18e)](([_0x2ba7f2,_0x5de7b3])=>({'skeleton':_0x16b3ba[_0x58e73c(0x250)](),'cursors':[..._0x2ba7f2[_0x58e73c(0x1cd)]()][_0x58e73c(0x34d)](_0x315f33=>({..._0x315f33,'color':_0x5de7b3[_0x315f33['color']]}))})))[_0x58e73c(0x2e4)](_0x2dd162=>{const _0x30c050=_0x58e73c;if(this['_removeCollabCursors'](),_0x2dd162){const {skeleton:_0x1c59d4,cursors:_0x25bcda}=_0x2dd162;this[_0x30c050(0x273)](_0x1c59d4,_0x25bcda);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x22f257(0x273)](_0x8e0b66,_0x2eee29){const _0x4d1e2a=_0x22f257,{scene:_0x22e187,mainComponent:_0x4b0730}=this['_context'],_0x5574cf=_0x2eee29['map'](_0x594490=>new _0x37aef7(_0x594490,_0x22e187,_0x8e0b66,_0x4b0730));this['_cursorShapes']=_0x5574cf,this[_0x4d1e2a(0x337)]=_0x2eee29;}[_0x22f257(0x2b2)](){const _0x4a75aa=_0x22f257;this[_0x4a75aa(0x3be)]();const {scene:_0x18e5be,mainComponent:_0x4a292a}=this['_context'],_0x45586e=this['_docSkeletonManagerService'][_0x4a75aa(0x250)](),_0x3d1b66=this['_cursors'][_0x4a75aa(0x18e)](_0x5220c8=>new _0x37aef7(_0x5220c8,_0x18e5be,_0x45586e,_0x4a292a));this[_0x4a75aa(0x24f)]=_0x3d1b66;}[_0x22f257(0x3be)](){const _0x3a2a42=_0x22f257;this[_0x3a2a42(0x24f)][_0x3a2a42(0x231)](_0x31b0f7=>_0x31b0f7['dispose']()),this[_0x3a2a42(0x24f)]=[];}[_0x22f257(0x370)](){const _0x55aeb3=_0x22f257,_0x574c99=[_0xccddd6[_0x55aeb3(0x285)]['id']];this[_0x55aeb3(0x2f4)](this[_0x55aeb3(0x3e8)][_0x55aeb3(0x3b8)](_0x3118cd=>{const _0xf774da=_0x55aeb3;_0x574c99[_0xf774da(0x350)](_0x3118cd['id'])&&_0x3118cd[_0xf774da(0x28b)][_0xf774da(0x378)]===this[_0xf774da(0x310)]['unitId']&&this[_0xf774da(0x2b2)]();}));}['_initResize'](){const _0x1d23c5=_0x22f257;this['disposeWithMe'](_0x2a9662[_0x1d23c5(0x2ed)](this[_0x1d23c5(0x310)][_0x1d23c5(0x20c)][_0x1d23c5(0x23b)])[_0x1d23c5(0x367)](_0x388455[_0x1d23c5(0x35d)](_0x5c2b9c=>_0x5c2b9c[_0x1d23c5(0x329)]===_0x53abef[_0x1d23c5(0x25a)]['resize']),_0x388455[_0x1d23c5(0x202)](0x10))[_0x1d23c5(0x2e4)](()=>{this['_refreshCollabCursors']();}));}};_0x3cbae1=_0x33edb9([_0x5900ba(0x1,_0x2a9662[_0x22f257(0x166)](_0x1b62f9[_0x22f257(0x345)])),_0x5900ba(0x2,_0x2a9662['Inject'](_0x2dfea8)),_0x5900ba(0x3,_0x2a9662[_0x22f257(0x22e)]),_0x5900ba(0x4,_0x2a9662[_0x22f257(0x166)](_0x2a9662[_0x22f257(0x18d)]))],_0x3cbae1);const _0x250fc4=0x1,_0x49329c=1.5;class _0x3a9bf4 extends _0x53abef['Shape']{constructor(_0x47fdaa,_0x5607e5){const _0x49e3cc=_0x22f257;super(_0x47fdaa,_0x5607e5),_0x30b7bc(this,_0x49e3cc(0x16a)),_0x30b7bc(this,_0x49e3cc(0x277),!0x1),_0x30b7bc(this,_0x49e3cc(0x3c5)),_0x30b7bc(this,'_name',''),_0x30b7bc(this,_0x49e3cc(0x2fa),_0x49e3cc(0x386)),_0x30b7bc(this,'_backgroundColor'),(_0x5607e5&&this[_0x49e3cc(0x1cf)](_0x5607e5),this['onPointerEnter$'][_0x49e3cc(0x313)](()=>this[_0x49e3cc(0x1cf)]({'hovered':!0x0})),this[_0x49e3cc(0x302)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x22f257(0x1cf)](_0x45fb78){const _0x640e99=_0x22f257;var _0xe41810,_0x35d634,_0x1a902f,_0x28d9c9,_0x243721,_0x3a3f34;this[_0x640e99(0x16a)]=(_0xe41810=_0x45fb78[_0x640e99(0x376)])!=null?_0xe41810:this['_color'],this['_hovered']=(_0x35d634=_0x45fb78[_0x640e99(0x3a8)])!=null?_0x35d634:this[_0x640e99(0x277)],this[_0x640e99(0x3c5)]=(_0x1a902f=_0x45fb78[_0x640e99(0x246)])!=null?_0x1a902f:this[_0x640e99(0x3c5)],this[_0x640e99(0x274)]=(_0x28d9c9=_0x45fb78[_0x640e99(0x363)])!=null?_0x28d9c9:this['_name'],this[_0x640e99(0x2fa)]=(_0x243721=_0x45fb78['labelPosition'])!=null?_0x243721:this[_0x640e99(0x2fa)],this['_backgroundColor']=(_0x3a3f34=_0x45fb78['backgroundColor'])!=null?_0x3a3f34:this[_0x640e99(0x343)],this[_0x640e99(0x38b)]({'width':_0x45fb78[_0x640e99(0x39e)],'height':_0x45fb78[_0x640e99(0x3d6)]});}[_0x22f257(0x224)](_0x4c8893){const _0x26ea25=_0x22f257,{row:_0x26d23d,column:_0x44cd51}=_0x4c8893;if(_0x26d23d>=this[_0x26ea25(0x3c5)][_0x26ea25(0x189)]&&_0x26d23d<=this[_0x26ea25(0x3c5)][_0x26ea25(0x1bb)]&&_0x44cd51>=this['_range'][_0x26ea25(0x3c3)]&&_0x44cd51<=this[_0x26ea25(0x3c5)][_0x26ea25(0x3c9)]){this[_0x26ea25(0x1cf)]({'hovered':!0x0});return;}this[_0x26ea25(0x1cf)]({'hovered':!0x1});}[_0x22f257(0x308)](_0x5be708){return!0x1;}[_0x22f257(0x21d)](_0x555cf6){const _0x37471b=_0x22f257;_0x53abef[_0x37471b(0x1d9)][_0x37471b(0x16b)](_0x555cf6,{'width':this[_0x37471b(0x39e)],'height':this[_0x37471b(0x3d6)],'strokeWidth':_0x49329c,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x37471b(0x277)]&&(_0x555cf6['save'](),_0x555cf6[_0x37471b(0x2c5)](0x1,0x0,0x0,0x1,this[_0x37471b(0x39e)],this[_0x37471b(0x2fa)]===_0x37471b(0x39a)?0x0:-0x14),_0x84e299[_0x37471b(0x16b)](_0x555cf6,{'text':this[_0x37471b(0x274)],'color':this[_0x37471b(0x16a)]}),_0x555cf6[_0x37471b(0x195)]());}}var _0x56a006=Object[_0x22f257(0x2ce)],_0x3a1ddf=(_0x47b325,_0x39dd53,_0x40b3e0,_0x557ae3)=>{const _0x48d169=_0x22f257;for(var _0x2bb1b6=_0x557ae3>0x1?void 0x0:_0x557ae3?_0x56a006(_0x39dd53,_0x40b3e0):_0x39dd53,_0x45743d=_0x47b325[_0x48d169(0x1b0)]-0x1,_0x3698a6;_0x45743d>=0x0;_0x45743d--)(_0x3698a6=_0x47b325[_0x45743d])&&(_0x2bb1b6=_0x3698a6(_0x2bb1b6)||_0x2bb1b6);return _0x2bb1b6;},_0x24e7f5=(_0x1fd90e,_0x1628aa)=>(_0x50c905,_0x7c6ded)=>_0x1628aa(_0x50c905,_0x7c6ded,_0x1fd90e);const _0xd714ea=0x1389;let _0x139261=class extends _0x2a9662[_0x22f257(0x32b)]{constructor(_0x4448ec,_0xefc81c,_0xf2e4c0,_0x2eec5d){const _0x51f713=_0x22f257;super(),_0x30b7bc(this,_0x51f713(0x337),new Set()),_0x30b7bc(this,_0x51f713(0x165),null),(this[_0x51f713(0x310)]=_0x4448ec,this['_sheetSkeletonManagerService']=_0xefc81c,this[_0x51f713(0x2d3)]=_0xf2e4c0,this[_0x51f713(0x392)]=_0x2eec5d,this[_0x51f713(0x35b)]());}[_0x22f257(0x35b)](){const _0x40407b=_0x22f257;this['_sheetSkeletonManagerService'][_0x40407b(0x293)]['pipe'](_0x388455[_0x40407b(0x223)](this['dispose$']),_0x388455[_0x40407b(0x3eb)](_0x2dd824=>{const _0x15f804=_0x40407b;if(_0x2dd824){const _0x7b6f2=_0x2dd824[_0x15f804(0x2ef)];return _0x539394[_0x15f804(0x1e9)](this[_0x15f804(0x2d3)][_0x15f804(0x2f3)](this[_0x15f804(0x310)]['unitId']),this[_0x15f804(0x392)][_0x15f804(0x380)])[_0x15f804(0x367)](_0x388455['map'](([_0x10df18,_0x5688b5])=>{const _0x5c5cec=_0x15f804,_0x1de8a5=new Map();return _0x10df18[_0x5c5cec(0x231)]((_0x2a60b8,_0x51f2c3)=>{const _0x1c7ea5=_0x5c5cec;if(_0x2a60b8[_0x1c7ea5(0x186)]===_0x7b6f2){const _0x377ce8={..._0x2a60b8};_0x377ce8['color']=_0x5688b5[_0x2a60b8['color']],_0x1de8a5[_0x1c7ea5(0x25d)](_0x51f2c3,_0x377ce8);}}),{'skeleton':_0x2dd824,'cursors':_0x1de8a5};}));}return _0x539394['of']({'skeleton':null,'cursors':new Map()});}))[_0x40407b(0x2e4)](({skeleton:_0x2fb1c1,cursors:_0x4cfd75})=>{const _0x387355=_0x40407b;this[_0x387355(0x3be)](),_0x2fb1c1&&this[_0x387355(0x273)](_0x2fb1c1,_0x4cfd75);}),this[_0x40407b(0x3dc)]['currentSkeleton$'][_0x40407b(0x2e4)](_0x187782=>{const _0x3199d0=_0x40407b;if(_0x187782==null)return;const {skeleton:_0x5b9f24}=_0x187782,{scene:_0x2dd023}=this['_context'];_0x2dd023[_0x3199d0(0x278)]['subscribeEvent'](_0x2a9662[_0x3199d0(0x2db)](_0x284930=>{const _0x2af583=_0x3199d0;var _0x2e4134,_0x4a01e9;const {offsetX:_0x4ed235,offsetY:_0x635b64}=_0x284930,{x:_0x1fb7b2,y:_0x4816b0}=_0x2dd023[_0x2af583(0x2a9)](_0x53abef[_0x2af583(0x17a)][_0x2af583(0x1ed)]([_0x4ed235,_0x635b64])),{scaleX:_0x3e3b2b,scaleY:_0x2ca3ed}=_0x2dd023['getAncestorScale'](),_0x395c1d=_0x2dd023[_0x2af583(0x29e)](_0x53abef[_0x2af583(0x236)][_0x2af583(0x364)]),_0x393bb9=_0x2dd023[_0x2af583(0x225)](_0x53abef[_0x2af583(0x17a)][_0x2af583(0x1ed)]([_0x1fb7b2,_0x4816b0]),_0x395c1d),_0x2d7ab3=_0x5b9f24[_0x2af583(0x3a3)](_0x4ed235,_0x635b64,_0x3e3b2b,_0x2ca3ed,_0x393bb9);((_0x2e4134=this['_lastPointer'])==null?void 0x0:_0x2e4134[_0x2af583(0x36a)])===_0x2d7ab3[_0x2af583(0x36a)]&&((_0x4a01e9=this[_0x2af583(0x165)])==null?void 0x0:_0x4a01e9[_0x2af583(0x16f)])===_0x2d7ab3['row']||this[_0x2af583(0x337)][_0x2af583(0x231)](_0xe22beb=>{const _0x39a357=_0x2af583;_0xe22beb[_0x39a357(0x224)](_0x2d7ab3);});},0x64));});}[_0x22f257(0x273)](_0x37eaa2,_0x5f24ba){const _0x2b7b29=_0x22f257;var _0x7b0b62;const _0x5cff08=(_0x7b0b62=this[_0x2b7b29(0x3dc)]['getCurrent']())==null?void 0x0:_0x7b0b62[_0x2b7b29(0x2c6)];if(!_0x5cff08)return;const _0x3f8f4b=this[_0x2b7b29(0x37c)]();if(!_0x3f8f4b)return;this['_cursors'][_0x2b7b29(0x231)](_0x489a8d=>{const _0x35ebff=_0x2b7b29;_0x489a8d[_0x35ebff(0x1ac)]();});const {scene:_0x38da67}=_0x3f8f4b,_0x463c8f=_0x13bbd9(Array[_0x2b7b29(0x2f9)](_0x5f24ba[_0x2b7b29(0x1cd)]()))[_0x2b7b29(0x18e)](_0x303b4d=>{const _0x3e18d8=_0x2b7b29,{color:_0x83c22d,range:_0x3c4173,name:_0x1052a2,selection:_0x4387fb,sheetID:_0x38bbf0}=_0x303b4d,{startColumn:_0xdc357a,startRow:_0x2e3f4a,endColumn:_0x585d17,endRow:_0x588b87}=_0x3c4173,_0xeedc9b=_0x56a566[_0x3e18d8(0x368)](_0x2e3f4a,_0xdc357a,_0x38da67,_0x5cff08),_0x17f837=_0x56a566[_0x3e18d8(0x368)](_0x588b87,_0x585d17,_0x38da67,_0x5cff08),{columnHeaderHeightAndMarginTop:_0x590796}=_0x5cff08,{startX:_0x1b0ba6,startY:_0x3a2efb}=_0xeedc9b,{endX:_0x2ba0b4,endY:_0x4b65f8}=_0x17f837,_0x15eaa7=_0x2ba0b4-_0x1b0ba6,_0x18de43=_0x4b65f8-_0x3a2efb,_0x2072a1={'labelPosition':_0x3a2efb-_0x590796>=_0x8b5212?_0x3e18d8(0x386):_0x3e18d8(0x39a),'sheetID':_0x38bbf0,'range':_0x3c4173,'color':_0x83c22d,'name':_0x1052a2,'selection':_0x4387fb,'left':_0x1b0ba6,'top':_0x3a2efb,'width':_0x15eaa7,'height':_0x18de43,'evented':!0x1,'zIndex':_0xd714ea};return new _0x3a9bf4(_0x1052a2,_0x2072a1);});_0x38da67[_0x2b7b29(0x1e5)](_0x463c8f,_0x250fc4),this['_cursors']=new Set(_0x463c8f);}['_removeCollabCursors'](){const _0x497876=_0x22f257;var _0x3d1c38;(_0x3d1c38=this[_0x497876(0x337)])==null||_0x3d1c38[_0x497876(0x231)](_0x179998=>_0x179998[_0x497876(0x258)]());}[_0x22f257(0x37c)](){const _0x5820cc=_0x22f257;return _0x56a566[_0x5820cc(0x2cb)](this[_0x5820cc(0x310)]['unit'],this[_0x5820cc(0x310)]);}};_0x139261=_0x3a1ddf([_0x24e7f5(0x1,_0x2a9662['Inject'](_0x56a566['SheetSkeletonManagerService'])),_0x24e7f5(0x2,_0x2a9662['Inject'](_0x2dfea8)),_0x24e7f5(0x3,_0x2a9662[_0x22f257(0x166)](_0x2a9662[_0x22f257(0x18d)]))],_0x139261);function _0x13bbd9(_0x1312ec){const _0x53cf6a=_0x22f257,_0x2d9cea=new Map();return _0x1312ec[_0x53cf6a(0x231)](_0x1a4773=>{const _0x2e1697=_0x53cf6a;if(_0x2d9cea[_0x2e1697(0x1fb)](_0x1a4773['selection'])){const _0x33844a=_0x2d9cea[_0x2e1697(0x270)](_0x1a4773[_0x2e1697(0x361)]);_0x33844a['name']+=',\x20'+_0x1a4773[_0x2e1697(0x363)];}else _0x2d9cea['set'](_0x1a4773[_0x2e1697(0x361)],_0x1a4773);}),Array[_0x53cf6a(0x2f9)](_0x2d9cea['values']());}var _0x5e3f59=function(){const _0x22e1c3=_0x22f257;return _0x5e3f59=Object[_0x22e1c3(0x398)]||function(_0x4224df){const _0x8186b8=_0x22e1c3;for(var _0x4f936f,_0x4a0cc8=0x1,_0x578d5b=arguments[_0x8186b8(0x1b0)];_0x4a0cc8<_0x578d5b;_0x4a0cc8++){_0x4f936f=arguments[_0x4a0cc8];for(var _0x2ef008 in _0x4f936f)Object['prototype'][_0x8186b8(0x29d)][_0x8186b8(0x3ee)](_0x4f936f,_0x2ef008)&&(_0x4224df[_0x2ef008]=_0x4f936f[_0x2ef008]);}return _0x4224df;},_0x5e3f59[_0x22e1c3(0x1df)](this,arguments);},_0x5f4c2e=function(_0x590c78,_0x19ba85){const _0xf6a917=_0x22f257;var _0x1b9687={};for(var _0x5e7dd4 in _0x590c78)Object['prototype']['hasOwnProperty'][_0xf6a917(0x3ee)](_0x590c78,_0x5e7dd4)&&_0x19ba85['indexOf'](_0x5e7dd4)<0x0&&(_0x1b9687[_0x5e7dd4]=_0x590c78[_0x5e7dd4]);if(_0x590c78!=null&&typeof Object[_0xf6a917(0x355)]=='function'){for(var _0xcf0dc5=0x0,_0x5e7dd4=Object['getOwnPropertySymbols'](_0x590c78);_0xcf0dc5<_0x5e7dd4['length'];_0xcf0dc5++)_0x19ba85[_0xf6a917(0x396)](_0x5e7dd4[_0xcf0dc5])<0x0&&Object[_0xf6a917(0x315)][_0xf6a917(0x25b)][_0xf6a917(0x3ee)](_0x590c78,_0x5e7dd4[_0xcf0dc5])&&(_0x1b9687[_0x5e7dd4[_0xcf0dc5]]=_0x590c78[_0x5e7dd4[_0xcf0dc5]]);}return _0x1b9687;},_0x5380d8=_0x1309ea[_0x22f257(0x1d3)](function(_0x41403d,_0x4cdf3b){const _0xe6b477=_0x22f257;var _0x467f6c=_0x41403d['icon'],_0x354bec=_0x41403d['id'],_0x432d4f=_0x41403d[_0xe6b477(0x3c2)],_0x33ef53=_0x41403d[_0xe6b477(0x2a1)],_0xf07a22=_0x5f4c2e(_0x41403d,[_0xe6b477(0x3f4),'id',_0xe6b477(0x3c2),'extend']),_0x239102=_0xe6b477(0x2e2)[_0xe6b477(0x292)](_0x354bec,'\x20')[_0xe6b477(0x292)](_0x432d4f||'')['trim'](),_0x2df8a6=_0x1309ea[_0xe6b477(0x316)]('_'[_0xe6b477(0x292)](_0x58b7a2()));return _0xf1efa(_0x467f6c,''[_0xe6b477(0x292)](_0x354bec),{'defIds':_0x467f6c[_0xe6b477(0x39f)],'idSuffix':_0x2df8a6[_0xe6b477(0x2ca)]},_0x5e3f59({'ref':_0x4cdf3b,'className':_0x239102},_0xf07a22),_0x33ef53);});function _0xf1efa(_0xaa3260,_0x3e0458,_0x1f61d0,_0x4ca4d3,_0x238c93){const _0x2fd2c3=_0x22f257;return _0x1309ea[_0x2fd2c3(0x252)](_0xaa3260[_0x2fd2c3(0x2b3)],_0x5e3f59(_0x5e3f59({'key':_0x3e0458},_0x35acb6(_0xaa3260,_0x1f61d0,_0x238c93)),_0x4ca4d3),(_0x2f9070(_0xaa3260,_0x1f61d0)['children']||[])['map'](function(_0x2bc1b8,_0x13d13d){const _0x4420aa=_0x2fd2c3;return _0xf1efa(_0x2bc1b8,''[_0x4420aa(0x292)](_0x3e0458,'-')[_0x4420aa(0x292)](_0xaa3260[_0x4420aa(0x2b3)],'-')['concat'](_0x13d13d),_0x1f61d0,void 0x0,_0x238c93);}));}function _0x35acb6(_0x429291,_0x2fd676,_0x197b93){const _0x3d8e03=_0x22f257;var _0x217831=_0x5e3f59({},_0x429291[_0x3d8e03(0x2df)]);_0x197b93!=null&&_0x197b93['colorChannel1']&&_0x217831[_0x3d8e03(0x319)]===_0x3d8e03(0x196)&&(_0x217831[_0x3d8e03(0x319)]=_0x197b93[_0x3d8e03(0x196)]),_0x429291[_0x3d8e03(0x2b3)]==='mask'&&_0x217831['id']&&(_0x217831['id']=_0x217831['id']+_0x2fd676[_0x3d8e03(0x377)]),Object['entries'](_0x217831)[_0x3d8e03(0x231)](function(_0x35fdbc){const _0x300c36=_0x3d8e03;var _0x592b3e=_0x35fdbc[0x0],_0x2bd62d=_0x35fdbc[0x1];_0x592b3e===_0x300c36(0x1a8)&&typeof _0x2bd62d=='string'&&(_0x217831[_0x592b3e]=_0x2bd62d[_0x300c36(0x176)](/url\(#(.*)\)/,_0x300c36(0x348)[_0x300c36(0x292)](_0x2fd676[_0x300c36(0x377)],')')));});var _0x1e41b5=_0x2fd676[_0x3d8e03(0x39f)];return!_0x1e41b5||_0x1e41b5[_0x3d8e03(0x1b0)]===0x0||(_0x429291['tag']==='use'&&_0x217831[_0x3d8e03(0x342)]&&(_0x217831[_0x3d8e03(0x342)]=_0x217831[_0x3d8e03(0x342)]+_0x2fd676[_0x3d8e03(0x377)]),Object[_0x3d8e03(0x37e)](_0x217831)[_0x3d8e03(0x231)](function(_0x1f1460){const _0x484136=_0x3d8e03;var _0x4b63c2=_0x1f1460[0x0],_0x498c46=_0x1f1460[0x1];typeof _0x498c46==_0x484136(0x1b2)&&(_0x217831[_0x4b63c2]=_0x498c46['replace'](/url\(#(.*)\)/,'url(#$1'[_0x484136(0x292)](_0x2fd676[_0x484136(0x377)],')')));})),_0x217831;}function _0x2f9070(_0x1f6d01,_0x3ddec){const _0x10b62f=_0x22f257;var _0x42ac9b,_0x44e1d4=_0x3ddec['defIds'];return!_0x44e1d4||_0x44e1d4[_0x10b62f(0x1b0)]===0x0?_0x1f6d01:_0x1f6d01[_0x10b62f(0x2b3)]===_0x10b62f(0x281)&&(!((_0x42ac9b=_0x1f6d01['children'])===null||_0x42ac9b===void 0x0)&&_0x42ac9b[_0x10b62f(0x1b0)])?_0x5e3f59(_0x5e3f59({},_0x1f6d01),{'children':_0x1f6d01[_0x10b62f(0x200)][_0x10b62f(0x18e)](function(_0x28bedd){const _0x24cfba=_0x10b62f;return typeof _0x28bedd[_0x24cfba(0x2df)]['id']==_0x24cfba(0x1b2)&&_0x44e1d4&&_0x44e1d4['indexOf'](_0x28bedd[_0x24cfba(0x2df)]['id'])>-0x1?_0x5e3f59(_0x5e3f59({},_0x28bedd),{'attrs':_0x5e3f59(_0x5e3f59({},_0x28bedd[_0x24cfba(0x2df)]),{'id':_0x28bedd[_0x24cfba(0x2df)]['id']+_0x3ddec[_0x24cfba(0x377)]})}):_0x28bedd;})}):_0x1f6d01;}function _0x58b7a2(){const _0x1c5243=_0x22f257;return Math[_0x1c5243(0x399)]()[_0x1c5243(0x304)](0x24)[_0x1c5243(0x1b4)](0x2,0x8);}_0x5380d8['displayName']=_0x22f257(0x2b1);var _0x35b5c3={'tag':'svg','attrs':{'fill':_0x22f257(0x19a),'viewBox':_0x22f257(0x1c5),'width':_0x22f257(0x28a),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x22f257(0x384)},'children':[{'tag':_0x22f257(0x305),'attrs':{'stroke':_0x22f257(0x2b7),'d':_0x22f257(0x298),'strokeLinecap':_0x22f257(0x2c9),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x22f257(0x1ce),'attrs':{'id':_0x22f257(0x2af)},'children':[{'tag':_0x22f257(0x305),'attrs':{'fill':_0x22f257(0x30f),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x34c8ce=_0x1309ea[_0x22f257(0x1d3)](function(_0x193c36,_0x2374c5){const _0x3195dc=_0x22f257;return _0x1309ea[_0x3195dc(0x252)](_0x5380d8,Object[_0x3195dc(0x398)]({},_0x193c36,{'id':_0x3195dc(0x37b),'ref':_0x2374c5,'icon':_0x35b5c3}));});_0x34c8ce['displayName']=_0x22f257(0x2e7);var _0x3dc25c={'tag':_0x22f257(0x213),'attrs':{'fill':_0x22f257(0x19a),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x22f257(0x28a)},'children':[{'tag':'g','attrs':{'clipPath':_0x22f257(0x247)},'children':[{'tag':_0x22f257(0x305),'attrs':{'stroke':_0x22f257(0x2b7),'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':_0x22f257(0x2c9),'strokeLinejoin':_0x22f257(0x2c9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x22f257(0x305),'attrs':{'fill':_0x22f257(0x30f),'d':_0x22f257(0x1f4),'transform':_0x22f257(0x2f6)}}]}]}],'defIds':[_0x22f257(0x2a6)]},_0x4e3bb8=_0x1309ea[_0x22f257(0x1d3)](function(_0x2e2c24,_0x330307){const _0xff900b=_0x22f257;return _0x1309ea[_0xff900b(0x252)](_0x5380d8,Object['assign']({},_0x2e2c24,{'id':_0xff900b(0x27c),'ref':_0x330307,'icon':_0x3dc25c}));});_0x4e3bb8[_0x22f257(0x1f5)]=_0x22f257(0x335);const _0x2083c4={'onlineStatusIcon':_0x22f257(0x19d),'onlineStatusTitle':_0x22f257(0x3f1),'onlineStatus':_0x22f257(0x366),'online':'univer-online','offline':_0x22f257(0x2bb)};function _0x1833bb(_0x4fc45d){const _0x129619=_0x22f257;switch(_0x4fc45d){case _0x5b04f9[_0x129619(0x39b)][_0x129619(0x356)]:return _0x129619(0x16c);case _0x5b04f9[_0x129619(0x39b)][_0x129619(0x1dc)]:return'collabStatus.conflict';case _0x5b04f9[_0x129619(0x39b)][_0x129619(0x374)]:return _0x129619(0x2f7);case _0x5b04f9[_0x129619(0x39b)][_0x129619(0x1be)]:return _0x129619(0x2c7);case _0x5b04f9[_0x129619(0x39b)]['AWAITING']:case _0x5b04f9[_0x129619(0x39b)][_0x129619(0x2a3)]:return'collabStatus.syncing';case _0x5b04f9[_0x129619(0x39b)][_0x129619(0x1b1)]:case _0x5b04f9[_0x129619(0x39b)]['PENDING']:return'collabStatus.synced';}}function _0x4dd7b0(_0x312747){const _0xd262c7=_0x22f257,{status$:_0x1feb36}=_0x312747,_0x4afcc3=_0x31156b['useObservable'](_0x1feb36,_0x5b04f9['CollaborationStatus'][_0xd262c7(0x1be)]),_0x553040=_0x31156b['useDependency'](_0x2a9662['LocaleService']),_0x2510d6=_0x31156b[_0xd262c7(0x1aa)](_0x5b04f9['CollaborationSessionService']),_0xd643fc=_0x4afcc3!==_0x5b04f9[_0xd262c7(0x39b)][_0xd262c7(0x356)],_0x190913=_0x553040['t'](_0x1833bb(_0x4afcc3)),_0x4d96ce=_0x2b73f1[_0xd262c7(0x1fe)](_0x2083c4[_0xd262c7(0x351)],{[_0x2083c4[_0xd262c7(0x255)]]:_0xd643fc,[_0x2083c4[_0xd262c7(0x35a)]]:!_0xd643fc}),_0x23372f=_0xd643fc?_0x532104[_0xd262c7(0x243)](_0x4e3bb8,{}):_0x532104[_0xd262c7(0x243)](_0x34c8ce,{}),_0x3d6870=_0x1309ea['useCallback'](()=>{const _0x12dc09=_0xd262c7;_0xd643fc||_0x2510d6[_0x12dc09(0x227)]();},[_0xd643fc,_0x2510d6]);function _0x7ac01e(){const _0x2933cf=_0xd262c7;return _0x532104['jsxs'](_0x2933cf(0x2cd),{'className':_0x2b73f1[_0x2933cf(0x1fe)](_0x4d96ce,_0x2933cf(0x383)),'onClick':_0x3d6870,'children':[_0x532104[_0x2933cf(0x243)](_0x2933cf(0x2cd),{'className':_0x2083c4['onlineStatusIcon'],'children':_0x23372f}),_0x532104[_0x2933cf(0x243)](_0x2933cf(0x2cd),{'className':_0x2083c4[_0x2933cf(0x3c6)],'children':_0x190913})]});}return _0xd643fc?_0x7ac01e():_0x532104[_0xd262c7(0x243)](_0x2b73f1['Tooltip'],{'title':_0x553040['t'](_0xd262c7(0x3ae)),'children':_0x7ac01e()});}var _0x1b7f64=Object[_0x22f257(0x2ce)],_0x4d8c94=(_0x275d6d,_0x5dfaa3,_0x4b2c65,_0x121032)=>{for(var _0x259786=_0x121032>0x1?void 0x0:_0x121032?_0x1b7f64(_0x5dfaa3,_0x4b2c65):_0x5dfaa3,_0x38f024=_0x275d6d['length']-0x1,_0xe6ee79;_0x38f024>=0x0;_0x38f024--)(_0xe6ee79=_0x275d6d[_0x38f024])&&(_0x259786=_0xe6ee79(_0x259786)||_0x259786);return _0x259786;},_0x1993cb=(_0x4a6972,_0x188d8c)=>(_0x40a7b3,_0x1b305f)=>_0x188d8c(_0x40a7b3,_0x1b305f,_0x4a6972);_0x193121[_0x22f257(0x234)]=class extends _0x2a9662[_0x22f257(0x27b)]{constructor(_0x35fdb5,_0x437279,_0x8db0e7,_0x51a282){const _0x3f75e0=_0x22f257;super(),_0x30b7bc(this,'_status$',new _0x539394[(_0x3f75e0(0x1ca))](_0x5b04f9['CollaborationStatus'][_0x3f75e0(0x1be)])),(this[_0x3f75e0(0x1ae)]=_0x35fdb5,this[_0x3f75e0(0x276)]=_0x437279,this['_collaborationController']=_0x8db0e7,this[_0x3f75e0(0x241)]=_0x51a282,this[_0x3f75e0(0x2e0)](),this[_0x3f75e0(0x175)]());}[_0x22f257(0x175)](){const _0x19fc5f=_0x22f257;this['disposeWithMe'](this[_0x19fc5f(0x1ae)][_0x19fc5f(0x37f)]['pipe'](_0x539394['switchMap'](()=>{const _0x1ad7b8=_0x19fc5f,_0x23cb2f=this[_0x1ad7b8(0x1ae)][_0x1ad7b8(0x299)]();return _0x23cb2f?this[_0x1ad7b8(0x214)][_0x1ad7b8(0x191)](_0x23cb2f['getUnitId']()):_0x539394['of'](null);}),_0x539394[_0x19fc5f(0x3eb)](_0xc6ad0c=>_0xc6ad0c?_0xc6ad0c[_0x19fc5f(0x172)]:_0x539394['of'](_0x5b04f9[_0x19fc5f(0x39b)][_0x19fc5f(0x1be)])))[_0x19fc5f(0x2e4)](_0x1a792e=>{const _0x1eef54=_0x19fc5f;this[_0x1eef54(0x289)]['next'](_0x1a792e);}));}[_0x22f257(0x2e0)](){const _0x278685=_0x22f257;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x31156b['BuiltInUIPart']['HEADER_MENU'],()=>_0x31156b[_0x278685(0x1ef)](_0x5d2ec7({'status$':this[_0x278685(0x289)][_0x278685(0x1b6)]()}),this[_0x278685(0x276)])));}},_0x193121[_0x22f257(0x234)]=_0x4d8c94([_0x1993cb(0x0,_0x2a9662['IUniverInstanceService']),_0x1993cb(0x1,_0x2a9662['Inject'](_0x2a9662[_0x22f257(0x282)])),_0x1993cb(0x2,_0x2a9662[_0x22f257(0x166)](_0x5b04f9[_0x22f257(0x20b)])),_0x1993cb(0x3,_0x31156b[_0x22f257(0x3c1)])],_0x193121[_0x22f257(0x234)]);function _0x5d2ec7(_0xbd9b71){const {status$:_0x4659c5}=_0xbd9b71;return function(){const _0x1d47a1=_0x574a;return _0x532104[_0x1d47a1(0x243)](_0x4dd7b0,{'status$':_0x4659c5});};}var _0x5b6966=Object[_0x22f257(0x2ce)],_0x3ad3bd=(_0x4ac238,_0x4dc387,_0x2762d2,_0x48a2fb)=>{for(var _0x418c30=_0x48a2fb>0x1?void 0x0:_0x48a2fb?_0x5b6966(_0x4dc387,_0x2762d2):_0x4dc387,_0x5c15a8=_0x4ac238['length']-0x1,_0x4282c7;_0x5c15a8>=0x0;_0x5c15a8--)(_0x4282c7=_0x4ac238[_0x5c15a8])&&(_0x418c30=_0x4282c7(_0x418c30)||_0x418c30);return _0x418c30;},_0x9854f9=(_0x23bc94,_0x591035)=>(_0x1e1e59,_0x323ed2)=>_0x591035(_0x1e1e59,_0x323ed2,_0x23bc94);let _0x4f47f0=class extends _0x2a9662[_0x22f257(0x27b)]{constructor(_0x1474ad,_0x4c3c74,_0x44c4d6,_0x436cf3,_0x3635b6,_0x5d83c5){const _0x260d2c=_0x22f257;super(),this[_0x260d2c(0x28f)]=_0x1474ad,this[_0x260d2c(0x194)]=_0x4c3c74,this[_0x260d2c(0x177)]=_0x44c4d6,this[_0x260d2c(0x187)]=_0x436cf3,this[_0x260d2c(0x3ea)]=_0x3635b6,this[_0x260d2c(0x245)]=_0x5d83c5,this[_0x260d2c(0x1e7)](),this[_0x260d2c(0x357)]();}['_setupBeforeClosingHandler'](){const _0x4601dd=_0x22f257;this[_0x4601dd(0x2f4)](this[_0x4601dd(0x28f)][_0x4601dd(0x188)](()=>{const _0x230123=_0x4601dd;if(this[_0x230123(0x194)]['saveTaskMap'][_0x230123(0x27d)])return this[_0x230123(0x245)]['t'](_0x230123(0x2d9));}));}[_0x22f257(0x357)](){const _0x21a303=_0x22f257;this[_0x21a303(0x2f4)](this[_0x21a303(0x177)][_0x21a303(0x248)][_0x21a303(0x2e4)](_0x14a4ba=>{const _0x526dff=_0x21a303;_0x14a4ba['id']===_0x5b04f9['CollaborationUIEventId'][_0x526dff(0x38e)]&&this[_0x526dff(0x187)][_0x526dff(0x3a7)]({'type':_0x2b73f1[_0x526dff(0x2c4)][_0x526dff(0x3df)],'content':this[_0x526dff(0x245)]['t'](_0x526dff(0x297))}),_0x14a4ba['id']===_0x5b04f9[_0x526dff(0x3a5)]['CLOSE_ROOM']&&this['_messageService']['show']({'type':_0x2b73f1[_0x526dff(0x2c4)][_0x526dff(0x3df)],'content':this[_0x526dff(0x245)]['t'](_0x526dff(0x1af))}),_0x14a4ba['id']===_0x5b04f9[_0x526dff(0x3a5)][_0x526dff(0x26e)]&&this['_notificationService'][_0x526dff(0x3a7)]({'title':this[_0x526dff(0x245)]['t'](_0x526dff(0x26c)),'content':this['_localeService']['t']('permission.content'),'type':_0x526dff(0x37a),'duration':0x0}),_0x14a4ba['id']===_0x5b04f9[_0x526dff(0x3a5)]['CONFLICT']&&this[_0x526dff(0x187)][_0x526dff(0x3a7)]({'type':_0x2b73f1[_0x526dff(0x2c4)]['Error'],'content':this[_0x526dff(0x245)]['t'](_0x526dff(0x1af))+'('+_0x14a4ba[_0x526dff(0x36d)]+')'}),_0x14a4ba['id']===_0x5b04f9[_0x526dff(0x3a5)][_0x526dff(0x379)]&&this['_messageService']['show']({'type':_0x2b73f1['MessageType'][_0x526dff(0x3df)],'content':this[_0x526dff(0x245)]['t'](_0x14a4ba[_0x526dff(0x36d)]||'')}),_0x14a4ba['id']===_0x5b04f9[_0x526dff(0x3a5)][_0x526dff(0x3ce)]&&this[_0x526dff(0x187)][_0x526dff(0x3a7)]({'type':_0x2b73f1[_0x526dff(0x2c4)][_0x526dff(0x3df)],'content':this[_0x526dff(0x245)]['t'](_0x526dff(0x3bc))}),_0x14a4ba['id']===_0x5b04f9[_0x526dff(0x3a5)][_0x526dff(0x3b4)]&&this[_0x526dff(0x187)][_0x526dff(0x3a7)]({'type':_0x2b73f1[_0x526dff(0x2c4)][_0x526dff(0x394)],'content':this[_0x526dff(0x245)]['t'](_0x526dff(0x265))}),_0x14a4ba['id']===_0x5b04f9['CollaborationUIEventId'][_0x526dff(0x17f)]&&this[_0x526dff(0x187)]['show']({'type':_0x2b73f1[_0x526dff(0x2c4)][_0x526dff(0x394)],'content':this[_0x526dff(0x245)]['t']('session.collaboration-timeout')});}));}};_0x4f47f0=_0x3ad3bd([_0x9854f9(0x0,_0x31156b[_0x22f257(0x311)]),_0x9854f9(0x1,_0x5b04f9['ILocalCacheService']),_0x9854f9(0x2,_0x2a9662[_0x22f257(0x166)](_0x5b04f9['CollaborationUIEventService'])),_0x9854f9(0x3,_0x31156b[_0x22f257(0x21b)]),_0x9854f9(0x4,_0x31156b[_0x22f257(0x32e)]),_0x9854f9(0x5,_0x2a9662['Inject'](_0x2a9662[_0x22f257(0x30d)]))],_0x4f47f0);const _0x3dee98='collaboration-client-ui.config',_0x1b9837={},_0x41d97e=_0x2a9662[_0x22f257(0x3cb)](_0x22f257(0x1d8));var _0x7af701=Object[_0x22f257(0x2ce)],_0x530ce2=(_0x3fc649,_0x1db8c6,_0x1d9c7a,_0x56c3cd)=>{const _0x5bbaed=_0x22f257;for(var _0x2ec0b8=_0x56c3cd>0x1?void 0x0:_0x56c3cd?_0x7af701(_0x1db8c6,_0x1d9c7a):_0x1db8c6,_0xece662=_0x3fc649[_0x5bbaed(0x1b0)]-0x1,_0x92caf3;_0xece662>=0x0;_0xece662--)(_0x92caf3=_0x3fc649[_0xece662])&&(_0x2ec0b8=_0x92caf3(_0x2ec0b8)||_0x2ec0b8);return _0x2ec0b8;},_0x1055b0=(_0x3ee082,_0x3e1148)=>(_0x5f2e46,_0xc10eb5)=>_0x3e1148(_0x5f2e46,_0xc10eb5,_0x3ee082);_0x193121[_0x22f257(0x354)]=class extends _0x2a9662[_0x22f257(0x32b)]{constructor(_0x4677bc,_0x20b351,_0x5c85e2,_0x2638ca,_0x580651){const _0x17be82=_0x22f257;super(),this['_urlService']=_0x4677bc,this[_0x17be82(0x20e)]=_0x20b351,this['_commandService']=_0x5c85e2,this[_0x17be82(0x2a5)]=_0x2638ca,_0x580651?_0x580651==null||_0x580651['whenReady']()['then'](()=>this['_init']()):(this[_0x17be82(0x20e)][_0x17be82(0x34c)](_0x17be82(0x216),_0x17be82(0x2b6)),this[_0x17be82(0x35b)]());}async['_init'](){const _0x1cdd4d=_0x22f257,_0x3e5b6a=this[_0x1cdd4d(0x2e6)][_0x1cdd4d(0x29c)](_0x1cdd4d(0x330)),_0x2a164c=this[_0x1cdd4d(0x2e6)][_0x1cdd4d(0x29c)]('type'),_0x3b7a14=this[_0x1cdd4d(0x2e6)][_0x1cdd4d(0x29c)]('subunit');if(!_0x3e5b6a||!_0x2a164c){this[_0x1cdd4d(0x20e)]['debug'](_0x1cdd4d(0x216),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x30abf1=await this[_0x1cdd4d(0x2a5)][_0x1cdd4d(0x199)](_0x3e5b6a,Number(_0x2a164c),_0x3b7a14);_0x30abf1&&_0x30abf1 instanceof _0x2a9662[_0x1cdd4d(0x365)]&&this[_0x1cdd4d(0x322)](_0x30abf1);}async[_0x22f257(0x322)](_0x1c6aaf){const _0x263ba3=_0x22f257;await this[_0x263ba3(0x1d6)](_0x1c6aaf),_0x1c6aaf[_0x263ba3(0x201)]['pipe'](_0x539394[_0x263ba3(0x223)](this[_0x263ba3(0x2e5)]))[_0x263ba3(0x2e4)](_0x556f0b=>{const _0xd3342a=_0x263ba3;_0x556f0b&&this[_0xd3342a(0x294)](_0x556f0b);}),this[_0x263ba3(0x2e6)][_0x263ba3(0x3dd)][_0x263ba3(0x367)](_0x539394[_0x263ba3(0x223)](this[_0x263ba3(0x2e5)]))[_0x263ba3(0x2e4)](()=>this[_0x263ba3(0x1d6)](_0x1c6aaf));}[_0x22f257(0x294)](_0x261445,_0xdb162d=!0x1){const _0x53b96c=_0x22f257,_0x2944a6=this[_0x53b96c(0x2e6)]['getParam'](_0x53b96c(0x237));_0x261445['getSheetId']()!==_0x2944a6&&this['_urlService'][_0x53b96c(0x233)]('subunit',_0x261445[_0x53b96c(0x1d2)](),_0xdb162d);}async[_0x22f257(0x1d6)](_0x276c61){const _0x598a5a=_0x22f257;var _0x5a98bd;const _0xa7d42f=this[_0x598a5a(0x2e6)][_0x598a5a(0x29c)](_0x598a5a(0x237));if(!_0xa7d42f||!_0x276c61['getSheetBySheetId'](_0xa7d42f)){const _0x37b42b=_0x276c61['getUnhiddenWorksheets']()[0x0],_0x394fc4=_0x276c61[_0x598a5a(0x18b)](_0x37b42b);if(!_0x394fc4)return;this[_0x598a5a(0x294)](_0x394fc4,!0x0),await this['_commandService'][_0x598a5a(0x2d8)](_0x10d874[_0x598a5a(0x1ec)]['id'],{'unitId':_0x276c61[_0x598a5a(0x3ef)](),'subUnitId':_0x37b42b});return;}((_0x5a98bd=_0x276c61[_0x598a5a(0x23a)]())==null?void 0x0:_0x5a98bd[_0x598a5a(0x1d2)]())!==_0xa7d42f&&await this[_0x598a5a(0x3e8)][_0x598a5a(0x2d8)](_0x10d874['SetWorksheetActivateCommand']['id'],{'unitId':_0x276c61['getUnitId'](),'subUnitId':_0xa7d42f});}},_0x193121['CollaborationDataLoaderController']=_0x530ce2([_0x1055b0(0x0,_0x41d97e),_0x1055b0(0x1,_0x2a9662[_0x22f257(0x306)]),_0x1055b0(0x2,_0x2a9662[_0x22f257(0x22e)]),_0x1055b0(0x3,_0x2a9662[_0x22f257(0x166)](_0x5b04f9[_0x22f257(0x1c6)])),_0x1055b0(0x4,_0x2a9662[_0x22f257(0x1b3)](_0x5100b8[_0x22f257(0x2ee)]))],_0x193121[_0x22f257(0x354)]);var _0x44fe18=Object[_0x22f257(0x2ce)],_0x201b3c=(_0x179051,_0x34e7b2,_0x1541af,_0x378020)=>{for(var _0xf1ca4c=_0x378020>0x1?void 0x0:_0x378020?_0x44fe18(_0x34e7b2,_0x1541af):_0x34e7b2,_0x558c67=_0x179051['length']-0x1,_0x46efd5;_0x558c67>=0x0;_0x558c67--)(_0x46efd5=_0x179051[_0x558c67])&&(_0xf1ca4c=_0x46efd5(_0xf1ca4c)||_0xf1ca4c);return _0xf1ca4c;},_0x3d02f6=(_0x4dbd77,_0x2d99ab)=>(_0x1390f6,_0x450ac2)=>_0x2d99ab(_0x1390f6,_0x450ac2,_0x4dbd77);let _0x1659e9=class{constructor(_0x1a8cc8,_0x230e5a,_0x295f95){const _0x2fc274=_0x22f257;this[_0x2fc274(0x276)]=_0x1a8cc8,this[_0x2fc274(0x3bb)]=_0x230e5a,this[_0x2fc274(0x287)]=_0x295f95;}[_0x22f257(0x1eb)](_0x76e6d1){const _0x153c9b=_0x22f257;this[_0x153c9b(0x2c3)](_0x76e6d1),this['_transformPreviousActiveRange'](_0x76e6d1);}[_0x22f257(0x1e1)](_0x443b9b){const _0x30a051=_0x22f257,{unitID:_0x3cb1dc}=_0x443b9b,_0x20e4e9=this[_0x30a051(0x287)][_0x30a051(0x253)](_0x3cb1dc)[_0x30a051(0x238)](_0xccddd6[_0x30a051(0x3a2)]),{redoCache:_0x1cbd97}=_0x20e4e9[_0x30a051(0x17e)]();if(_0x1cbd97[_0x30a051(0x1b0)]===0x0)return _0x443b9b;let _0x1f99f9=_0x2a9662[_0x30a051(0x17c)][_0x30a051(0x263)](_0x443b9b['mutations'][0x0]);for(let _0x74875a=0x0;_0x74875a<_0x1cbd97[_0x30a051(0x1b0)];_0x74875a++){const _0x1188ae={'id':_0x30a051(0x2fc),'params':{..._0x1cbd97[_0x74875a]}},_0x945e3c=this[_0x30a051(0x3bb)][_0x30a051(0x397)](_0x1f99f9,_0x1188ae,!0x1);if(_0x119f28['isTransformMutationFailure'](_0x945e3c))throw _0x945e3c['error'];_0x1f99f9=_0x945e3c[_0x30a051(0x27a)];}return{..._0x2a9662[_0x30a051(0x17c)][_0x30a051(0x263)](_0x443b9b),'mutations':[_0x1f99f9]};}[_0x22f257(0x2c3)](_0xfe0e87){const _0x233611=_0x22f257,{unitID:_0x21e3f9}=_0xfe0e87,_0x3a69d2=this[_0x233611(0x287)]['getRenderById'](_0x21e3f9)[_0x233611(0x238)](_0xccddd6[_0x233611(0x3a2)]),{undoCache:_0x445573,redoCache:_0x15b21f}=_0x3a69d2[_0x233611(0x17e)]();if(_0x445573[_0x233611(0x1b0)]===0x0||_0x15b21f['length']===0x0)return;const _0x941958=[],_0x5693b9=[];let _0x4d8db6=_0x2a9662[_0x233611(0x17c)]['deepClone'](_0xfe0e87[_0x233611(0x1a4)][0x0]),_0x2859e2=_0x2a9662['Tools'][_0x233611(0x263)](_0xfe0e87[_0x233611(0x1a4)][0x0]);for(let _0x45282c=_0x445573['length']-0x1;_0x45282c>=0x0;_0x45282c--){const _0x25c594={'id':_0x233611(0x2fc),'params':{..._0x445573[_0x45282c]}},_0x8cd8b={'id':'doc.mutation.rich-text-editing','params':{..._0x15b21f[_0x45282c]}},_0x549745=this[_0x233611(0x3bb)][_0x233611(0x397)](_0x4d8db6,_0x25c594,!0x1),_0x23f907=this[_0x233611(0x3bb)][_0x233611(0x397)](_0x2859e2,_0x8cd8b,!0x1);if(_0x119f28['isTransformMutationFailure'](_0x549745))throw _0x549745['error'];if(_0x119f28[_0x233611(0x1a6)](_0x23f907))throw _0x23f907['error'];_0x941958[_0x233611(0x360)](_0x549745[_0x233611(0x1f6)][_0x233611(0x28b)]),_0x5693b9[_0x233611(0x360)](_0x23f907[_0x233611(0x1f6)][_0x233611(0x28b)]),_0x4d8db6=_0x549745[_0x233611(0x27a)],_0x2859e2=_0x23f907['m1Prime'];}_0x3a69d2[_0x233611(0x2b4)]({'undoCache':_0x941958,'redoCache':_0x5693b9});}['_transformPreviousActiveRange'](_0x2ec193){const _0x17d04d=_0x22f257,{unitID:_0x543f0d}=_0x2ec193,_0x32af75=this['_renderManagerService'][_0x17d04d(0x253)](_0x543f0d)[_0x17d04d(0x238)](_0xccddd6[_0x17d04d(0x3a2)]),_0x52bf29=_0x32af75['getActiveRange']();if(_0x52bf29==null)return;const _0x4b21e4=[{'id':_0x17d04d(0x2fc),'params':{'unitId':_0x2ec193[_0x17d04d(0x323)],'actions':null,'textRanges':[_0x52bf29]}}],_0x4ce490=this['_transformService']['transformMutationsWithChangeset'](_0x2ec193,_0x4b21e4);if(!_0x119f28[_0x17d04d(0x3bf)](_0x4ce490))throw _0x4ce490['error'];const _0x477433=_0x4ce490[_0x17d04d(0x1f6)][0x0]['params']['textRanges'];Array[_0x17d04d(0x3ec)](_0x477433)&&_0x477433[_0x17d04d(0x1b0)]&&_0x32af75[_0x17d04d(0x170)](_0x477433[0x0]);}};_0x1659e9=_0x201b3c([_0x3d02f6(0x0,_0x2a9662[_0x22f257(0x166)](_0x2a9662[_0x22f257(0x282)])),_0x3d02f6(0x1,_0x119f28[_0x22f257(0x36c)]),_0x3d02f6(0x2,_0x53abef['IRenderManagerService'])],_0x1659e9);var _0x3da4c3=Object[_0x22f257(0x2ce)],_0x43a31d=(_0x42c1ba,_0x4f1ce0,_0x29a90c,_0x4a3564)=>{const _0x63c082=_0x22f257;for(var _0x290800=_0x4a3564>0x1?void 0x0:_0x4a3564?_0x3da4c3(_0x4f1ce0,_0x29a90c):_0x4f1ce0,_0xcedd7d=_0x42c1ba[_0x63c082(0x1b0)]-0x1,_0x2db91a;_0xcedd7d>=0x0;_0xcedd7d--)(_0x2db91a=_0x42c1ba[_0xcedd7d])&&(_0x290800=_0x2db91a(_0x290800)||_0x290800);return _0x290800;},_0x4e731e=(_0x51c94d,_0x1b22a6)=>(_0x106416,_0x2fd94d)=>_0x1b22a6(_0x106416,_0x2fd94d,_0x51c94d);let _0x4e7219=class{constructor(_0x573a1f,_0x470215,_0x231de4){const _0x48e373=_0x22f257;this[_0x48e373(0x276)]=_0x573a1f,this[_0x48e373(0x3bb)]=_0x470215,this['_docStateChangeManagerService']=_0x231de4;}[_0x22f257(0x2aa)](_0x557a1d){this['_transformHistoryAndStateStack'](_0x557a1d);}[_0x22f257(0x1e1)](_0x10fd86){const _0x4698fb=_0x22f257,{unitID:_0x3ce045}=_0x10fd86,{collaboration:_0x4e4084}=this[_0x4698fb(0x2a7)]['getStateCache'](_0x3ce045);if(_0x4e4084[_0x4698fb(0x1b0)]===0x0)return _0x10fd86;let _0x15755d=_0x2a9662[_0x4698fb(0x17c)][_0x4698fb(0x263)](_0x10fd86[_0x4698fb(0x1a4)][0x0]);for(let _0x22dd2f=0x0;_0x22dd2f<_0x4e4084[_0x4698fb(0x1b0)];_0x22dd2f++){const _0xaa28fa={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4e4084[_0x22dd2f][_0x4698fb(0x378)],..._0x4e4084[_0x22dd2f][_0x4698fb(0x3ca)]}},_0x40abe2=this[_0x4698fb(0x3bb)]['transformMutation'](_0x15755d,_0xaa28fa,!0x1);if(_0x119f28[_0x4698fb(0x1a6)](_0x40abe2))throw _0x40abe2[_0x4698fb(0x37a)];_0x15755d=_0x40abe2[_0x4698fb(0x27a)];}return{..._0x2a9662[_0x4698fb(0x17c)][_0x4698fb(0x263)](_0x10fd86),'mutations':[_0x15755d]};}[_0x22f257(0x2ab)](_0x49759a){const _0x210b29=_0x22f257,{unitID:_0x41a8b2}=_0x49759a,{history:_0x4cff01,collaboration:_0x1a9a6a}=this[_0x210b29(0x2a7)][_0x210b29(0x1f2)](_0x41a8b2);if(_0x4cff01[_0x210b29(0x1b0)]===0x0&&_0x1a9a6a[_0x210b29(0x1b0)]===0x0)return;const _0x5179b6=[],_0xef262d=[];let _0x2e3084=_0x2a9662[_0x210b29(0x17c)][_0x210b29(0x263)](_0x49759a[_0x210b29(0x1a4)][0x0]),_0x2fc4a4=_0x2a9662[_0x210b29(0x17c)][_0x210b29(0x263)](_0x49759a['mutations'][0x0]);for(let _0x1f48d5=_0x4cff01[_0x210b29(0x1b0)]-0x1;_0x1f48d5>=0x0;_0x1f48d5--){const _0x14e450={'id':_0x210b29(0x2fc),'params':{'unitId':_0x4cff01[_0x1f48d5][_0x210b29(0x378)],..._0x4cff01[_0x1f48d5][_0x210b29(0x32c)]}},_0x161132={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4cff01[_0x1f48d5][_0x210b29(0x378)],..._0x4cff01[_0x1f48d5]['redoState']}},_0x219996=this[_0x210b29(0x3bb)][_0x210b29(0x397)](_0x2e3084,_0x14e450,!0x1),_0x4cba41=this[_0x210b29(0x3bb)][_0x210b29(0x397)](_0x2fc4a4,_0x161132,!0x1);if(_0x119f28[_0x210b29(0x1a6)](_0x219996))throw _0x219996[_0x210b29(0x37a)];if(_0x119f28[_0x210b29(0x1a6)](_0x4cba41))throw _0x4cba41[_0x210b29(0x37a)];_0x5179b6[_0x210b29(0x360)]({..._0x4cff01[_0x1f48d5],'undoState':_0x219996[_0x210b29(0x1f6)][_0x210b29(0x28b)],'redoState':_0x4cba41[_0x210b29(0x1f6)][_0x210b29(0x28b)]}),_0x2e3084=_0x219996['m1Prime'],_0x2fc4a4=_0x4cba41[_0x210b29(0x27a)];}_0x2e3084=_0x2a9662[_0x210b29(0x17c)][_0x210b29(0x263)](_0x49759a[_0x210b29(0x1a4)][0x0]),_0x2fc4a4=_0x2a9662[_0x210b29(0x17c)]['deepClone'](_0x49759a['mutations'][0x0]);for(let _0x575c31=_0x1a9a6a[_0x210b29(0x1b0)]-0x1;_0x575c31>=0x0;_0x575c31--){const _0xbbae54={'id':_0x210b29(0x2fc),'params':{'unitId':_0x1a9a6a[_0x575c31][_0x210b29(0x378)],..._0x1a9a6a[_0x575c31][_0x210b29(0x32c)]}},_0x36feaa={'id':_0x210b29(0x2fc),'params':{'unitId':_0x1a9a6a[_0x575c31][_0x210b29(0x378)],..._0x1a9a6a[_0x575c31][_0x210b29(0x3ca)]}},_0x256bfc=this[_0x210b29(0x3bb)][_0x210b29(0x397)](_0x2e3084,_0xbbae54,!0x1),_0x184715=this['_transformService'][_0x210b29(0x397)](_0x2fc4a4,_0x36feaa,!0x1);if(_0x119f28[_0x210b29(0x1a6)](_0x256bfc))throw _0x256bfc['error'];if(_0x119f28[_0x210b29(0x1a6)](_0x184715))throw _0x184715['error'];_0xef262d[_0x210b29(0x360)]({..._0x1a9a6a[_0x575c31],'undoState':_0x256bfc[_0x210b29(0x1f6)][_0x210b29(0x28b)],'redoState':_0x184715['m2Prime'][_0x210b29(0x28b)]}),_0x2e3084=_0x256bfc['m1Prime'],_0x2fc4a4=_0x184715[_0x210b29(0x27a)];}this[_0x210b29(0x2a7)][_0x210b29(0x19b)](_0x41a8b2,{'history':_0x5179b6,'collaboration':_0xef262d});}};_0x4e7219=_0x43a31d([_0x4e731e(0x0,_0x2a9662[_0x22f257(0x166)](_0x2a9662[_0x22f257(0x282)])),_0x4e731e(0x1,_0x119f28[_0x22f257(0x36c)]),_0x4e731e(0x2,_0x2a9662[_0x22f257(0x166)](_0xccddd6[_0x22f257(0x358)]))],_0x4e7219);var _0x55de07=Object[_0x22f257(0x2ce)],_0x304171=(_0x3587b9,_0x5eaa57,_0x544075,_0x10efbb)=>{const _0x489251=_0x22f257;for(var _0x33dac5=_0x10efbb>0x1?void 0x0:_0x10efbb?_0x55de07(_0x5eaa57,_0x544075):_0x5eaa57,_0x2ab309=_0x3587b9[_0x489251(0x1b0)]-0x1,_0x45471d;_0x2ab309>=0x0;_0x2ab309--)(_0x45471d=_0x3587b9[_0x2ab309])&&(_0x33dac5=_0x45471d(_0x33dac5)||_0x33dac5);return _0x33dac5;},_0x11a97f=(_0x554e3c,_0x1c5880)=>(_0x182526,_0x4cb0db)=>_0x1c5880(_0x182526,_0x4cb0db,_0x554e3c);let _0x2511cb=class{constructor(_0x5b776c,_0x3b5690){const _0x19c6f2=_0x22f257;this['_injector']=_0x5b776c,this[_0x19c6f2(0x3bb)]=_0x3b5690;}[_0x22f257(0x38d)](_0x64b4d8){const _0x49b9a8=_0x22f257;var _0x153d70;const _0x2a0ec0=this[_0x49b9a8(0x276)][_0x49b9a8(0x270)](_0x1b62f9[_0x49b9a8(0x359)]),_0x4d9d1a=(_0x153d70=_0x2a0ec0['getDocRanges']())!=null?_0x153d70:[];if(_0x4d9d1a[_0x49b9a8(0x1b0)]===0x0)return;const _0x44f839=_0x64b4d8['unitID'],_0x221ca2=[{'id':_0x49b9a8(0x2fc),'params':{'unitId':_0x44f839,'actions':null,'textRanges':_0x4d9d1a}}],_0x249431=this[_0x49b9a8(0x3bb)][_0x49b9a8(0x1f3)](_0x64b4d8,_0x221ca2);if(!_0x119f28[_0x49b9a8(0x3bf)](_0x249431))throw _0x249431['error'];const _0x151091=_0x249431[_0x49b9a8(0x1f6)][0x0][_0x49b9a8(0x28b)][_0x49b9a8(0x1b8)];Array[_0x49b9a8(0x3ec)](_0x151091)&&_0x151091[_0x49b9a8(0x1b0)]&&_0x2a0ec0[_0x49b9a8(0x173)](_0x151091,{'unitId':_0x44f839,'subUnitId':_0x44f839},!0x1);}};_0x2511cb=_0x304171([_0x11a97f(0x0,_0x2a9662['Inject'](_0x2a9662[_0x22f257(0x282)])),_0x11a97f(0x1,_0x119f28[_0x22f257(0x36c)])],_0x2511cb);var _0x50246b=Object['getOwnPropertyDescriptor'],_0x5412e1=(_0x1a17ad,_0x2ee56f,_0x5f5b4c,_0x10e7ef)=>{const _0x1ef8ae=_0x22f257;for(var _0x138bb6=_0x10e7ef>0x1?void 0x0:_0x10e7ef?_0x50246b(_0x2ee56f,_0x5f5b4c):_0x2ee56f,_0x270d29=_0x1a17ad[_0x1ef8ae(0x1b0)]-0x1,_0x3e0bb5;_0x270d29>=0x0;_0x270d29--)(_0x3e0bb5=_0x1a17ad[_0x270d29])&&(_0x138bb6=_0x3e0bb5(_0x138bb6)||_0x138bb6);return _0x138bb6;},_0x2b2187=(_0x430de5,_0x1bf3b6)=>(_0x3a81dc,_0x1f3c42)=>_0x1bf3b6(_0x3a81dc,_0x1f3c42,_0x430de5);let _0x516d54=class extends _0x2a9662['Disposable']{constructor(_0x133012,_0x1db394,_0x5d5ec1,_0x56d9bb,_0x39e7fb,_0x302c14,_0x5e5674,_0x2dac4b){const _0x1489b7=_0x22f257;super(),_0x30b7bc(this,_0x1489b7(0x289),new _0x539394[(_0x1489b7(0x1ca))](_0x5b04f9['CollaborationStatus'][_0x1489b7(0x1be)])),(this[_0x1489b7(0x2a7)]=_0x133012,this[_0x1489b7(0x214)]=_0x1db394,this[_0x1489b7(0x2eb)]=_0x5d5ec1,this['_docTransformStateCacheService']=_0x56d9bb,this[_0x1489b7(0x21c)]=_0x39e7fb,this[_0x1489b7(0x340)]=_0x302c14,this['_messageService']=_0x5e5674,this['_localeService']=_0x2dac4b,this[_0x1489b7(0x3a9)]());}[_0x22f257(0x3a9)](){const _0x3096e1=_0x22f257;this['disposeWithMe'](this[_0x3096e1(0x214)][_0x3096e1(0x230)][_0x3096e1(0x2e4)](_0x3ad443=>{const _0x5621d1=_0x3096e1,_0x5261f0=this[_0x5621d1(0x2a7)]['docStateChange$'][_0x5621d1(0x2e4)](_0x3a329f=>{const _0x10b854=_0x5621d1;if(_0x3a329f==null)return;const {unitId:_0x44a853,redoState:_0x4561b8,commandId:_0x29339b}=_0x3a329f;if(_0x44a853!==_0x3ad443[_0x10b854(0x323)])return;const _0x58a8c8={'id':_0x29339b,'type':_0x2a9662[_0x10b854(0x3f3)][_0x10b854(0x251)],'params':{'unitId':_0x44a853,'actions':_0x4561b8['actions'],'textRanges':null}};_0x3ad443['onLocalMutation'](_0x58a8c8);});if(_0x3ad443[_0x5621d1(0x2f4)](_0x5261f0),_0x3ad443 instanceof _0x5b04f9[_0x5621d1(0x19e)]){const _0xd4ba17={'onTransformIME':_0x16c237=>this[_0x5621d1(0x2eb)][_0x5621d1(0x1eb)](_0x16c237),'onTransformState':_0x5e0571=>this[_0x5621d1(0x327)][_0x5621d1(0x2aa)](_0x5e0571),'onTransformSelections':_0x55387a=>this[_0x5621d1(0x21c)][_0x5621d1(0x38d)](_0x55387a),'onSyncEditingCollabCursor':_0x7182d9=>this[_0x5621d1(0x340)]['syncEditingCollabCursor'](_0x7182d9),'onTransformRemoteChangesetByIMECache':_0x21d877=>this[_0x5621d1(0x2eb)][_0x5621d1(0x1e1)](_0x21d877),'onTransformRemoteChangesetByStateCache':_0x4b9003=>this['_docTransformStateCacheService'][_0x5621d1(0x1e1)](_0x4b9003)};_0x3ad443['addHandlerCallback'](_0xd4ba17);}}));}};_0x516d54=_0x5412e1([_0x2b2187(0x0,_0x2a9662[_0x22f257(0x166)](_0xccddd6[_0x22f257(0x358)])),_0x2b2187(0x1,_0x2a9662[_0x22f257(0x166)](_0x5b04f9['CollaborationController'])),_0x2b2187(0x2,_0x2a9662['Inject'](_0x1659e9)),_0x2b2187(0x3,_0x2a9662[_0x22f257(0x166)](_0x4e7219)),_0x2b2187(0x4,_0x2a9662['Inject'](_0x2511cb)),_0x2b2187(0x5,_0x2a9662[_0x22f257(0x166)](_0x48dd5)),_0x2b2187(0x6,_0x31156b['IMessageService']),_0x2b2187(0x7,_0x2a9662[_0x22f257(0x166)](_0x2a9662[_0x22f257(0x30d)]))],_0x516d54);var _0x471900=Object[_0x22f257(0x2ce)],_0x1c71d7=(_0x41062d,_0x275d0d,_0x2a1e63,_0x1ad38a)=>{const _0x56ff2d=_0x22f257;for(var _0x3ad97d=_0x1ad38a>0x1?void 0x0:_0x1ad38a?_0x471900(_0x275d0d,_0x2a1e63):_0x275d0d,_0x4b4764=_0x41062d[_0x56ff2d(0x1b0)]-0x1,_0x367232;_0x4b4764>=0x0;_0x4b4764--)(_0x367232=_0x41062d[_0x4b4764])&&(_0x3ad97d=_0x367232(_0x3ad97d)||_0x3ad97d);return _0x3ad97d;},_0x521389=(_0x1a2672,_0x4cd02f)=>(_0x33496d,_0x2b8636)=>_0x4cd02f(_0x33496d,_0x2b8636,_0x1a2672);let _0x1f2734=class extends _0x2a9662[_0x22f257(0x27b)]{constructor(_0x2fc657,_0x1c61fa,_0x4b1e99){const _0x18b99e=_0x22f257;super(),_0x30b7bc(this,_0x18b99e(0x32d),new Map()),_0x30b7bc(this,'_saveTaskMap',new Map()),_0x30b7bc(this,_0x18b99e(0x28e),!0x1),(this[_0x18b99e(0x29f)]=_0x2fc657,this[_0x18b99e(0x336)]=_0x1c61fa,this[_0x18b99e(0x169)]=_0x4b1e99);}[_0x22f257(0x286)](){const _0x91f124=_0x22f257;this[_0x91f124(0x28e)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x29da58=_0x22f257;return this[_0x29da58(0x259)];}['dispose'](){const _0x28d38a=_0x22f257;this[_0x28d38a(0x1bc)]()['then'](()=>super[_0x28d38a(0x258)]());}async[_0x22f257(0x18f)](_0x2536c6){const _0x178bba=_0x22f257;return this['_disabled']?null:this[_0x178bba(0x336)][_0x178bba(0x180)](_0x5b04f9[_0x178bba(0x3cf)](_0x2536c6));}async[_0x22f257(0x3d9)](_0xef6b2c,_0x51671d){const _0x4ff1aa=_0x22f257;return!!this[_0x4ff1aa(0x336)][_0x4ff1aa(0x2b0)](_0xef6b2c,_0x51671d);}[_0x22f257(0x1e8)](_0x2290fc,_0x16d805,_0x3cf7e5,_0x2c5165){const _0x3d8ecb=_0x22f257,_0xca1090=this[_0x3d8ecb(0x169)]['getCurrentRevOfUnit'](_0x2290fc);this[_0x3d8ecb(0x32d)][_0x3d8ecb(0x25d)](_0x2290fc,{'unitID':_0x2290fc,'type':_0x16d805,'awaitingChangeset':_0x3cf7e5,'mutations':_0x2c5165,'rev':_0xca1090}),this[_0x3d8ecb(0x259)][_0x3d8ecb(0x1fb)](_0x2290fc)||this['_scheduleSaving'](_0x2290fc);}[_0x22f257(0x203)](_0x594eac){const _0x18e459=_0x22f257,_0x3b61bf=this['_getSaveTimeout']();_0x3b61bf===0x0?this[_0x18e459(0x28d)](_0x594eac):this['_saveTaskMap']['set'](_0x594eac,setTimeout(()=>this[_0x18e459(0x28d)](_0x594eac),_0x3b61bf));}[_0x22f257(0x31b)](){const _0x21c3be=_0x22f257;var _0x5c6031;return(_0x5c6031=this['_configService'][_0x21c3be(0x3b3)](_0x5b04f9[_0x21c3be(0x1f8)]))!=null?_0x5c6031:_0x5b04f9[_0x21c3be(0x300)];}[_0x22f257(0x28d)](_0x31c8dc){const _0x4ea2b1=_0x22f257,_0x33f4e5=this[_0x4ea2b1(0x259)][_0x4ea2b1(0x270)](_0x31c8dc);return _0x33f4e5!==void 0x0&&window[_0x4ea2b1(0x197)](_0x33f4e5),this['_localStorageService'][_0x4ea2b1(0x2b0)](_0x5b04f9[_0x4ea2b1(0x3cf)](_0x31c8dc),this['_cachedData'][_0x4ea2b1(0x270)](_0x31c8dc))['then'](()=>this[_0x4ea2b1(0x259)]['delete'](_0x31c8dc));}async['exhaustSavingTask'](){const _0x1f166d=_0x22f257,_0x300e75=[];this['_saveTaskMap'][_0x1f166d(0x231)]((_0x4d9e1f,_0x919400)=>{const _0x4ade88=_0x1f166d;window[_0x4ade88(0x197)](_0x4d9e1f),_0x300e75['push'](this[_0x4ade88(0x28d)](_0x919400)['then'](()=>{const _0x388ae6=_0x4ade88;this['_saveTaskMap'][_0x388ae6(0x181)](_0x919400);}));}),await Promise[_0x1f166d(0x1ee)](_0x300e75);}};_0x1f2734=_0x1c71d7([_0x521389(0x0,_0x2a9662['IConfigService']),_0x521389(0x1,_0x2a9662[_0x22f257(0x20a)]),_0x521389(0x2,_0x2a9662[_0x22f257(0x166)](_0x119f28[_0x22f257(0x235)]))],_0x1f2734);class _0x358029 extends _0x2a9662[_0x22f257(0x32b)]{constructor(){const _0x14911c=_0x22f257;super(),_0x30b7bc(this,'urlChange$'),this[_0x14911c(0x3dd)]=_0x539394[_0x14911c(0x23c)](window,_0x14911c(0x2ff))['pipe'](_0x539394[_0x14911c(0x223)](this[_0x14911c(0x2e5)]),_0x539394[_0x14911c(0x1f0)](0x1),_0x539394[_0x14911c(0x33b)](void 0x0));}[_0x22f257(0x233)](_0x449a51,_0x345623,_0x5ccbe6=!0x1){const _0x3612af=_0x22f257,_0x55eccf=new URL(window[_0x3612af(0x21e)][_0x3612af(0x2f1)]);_0x55eccf[_0x3612af(0x207)][_0x3612af(0x25d)](_0x449a51,_0x345623),_0x5ccbe6?window[_0x3612af(0x25c)]['replaceState']('','',_0x55eccf['toString']()):window[_0x3612af(0x25c)][_0x3612af(0x26d)]('','',_0x55eccf[_0x3612af(0x304)]());}[_0x22f257(0x256)](_0x25a56e,_0xea0181=!0x1){const _0x45daa3=_0x22f257,_0x1256cb=new URL(window[_0x45daa3(0x21e)][_0x45daa3(0x2f1)]);_0x1256cb[_0x45daa3(0x207)][_0x45daa3(0x181)](_0x25a56e),_0xea0181?window[_0x45daa3(0x25c)]['replaceState']('','',_0x1256cb[_0x45daa3(0x304)]()):window[_0x45daa3(0x25c)][_0x45daa3(0x26d)]('','',_0x1256cb[_0x45daa3(0x304)]());}[_0x22f257(0x29c)](_0x4b5596){const _0x1fa203=_0x22f257;var _0xf8fe17;return(_0xf8fe17=new URL(window[_0x1fa203(0x21e)][_0x1fa203(0x2f1)])['searchParams'][_0x1fa203(0x270)](_0x4b5596))!=null?_0xf8fe17:void 0x0;}}var _0x1f12d8=Object[_0x22f257(0x2d4)],_0x30c6e0=Object[_0x22f257(0x2ce)],_0x29f519=(_0x3a06da,_0x3944f8,_0x27838f)=>_0x3944f8 in _0x3a06da?_0x1f12d8(_0x3a06da,_0x3944f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27838f}):_0x3a06da[_0x3944f8]=_0x27838f,_0xd7b833=(_0x3b89c0,_0x38ea18,_0x5b3e22,_0x317181)=>{const _0x4c8465=_0x22f257;for(var _0x28f376=_0x317181>0x1?void 0x0:_0x317181?_0x30c6e0(_0x38ea18,_0x5b3e22):_0x38ea18,_0x506a2b=_0x3b89c0[_0x4c8465(0x1b0)]-0x1,_0x55163b;_0x506a2b>=0x0;_0x506a2b--)(_0x55163b=_0x3b89c0[_0x506a2b])&&(_0x28f376=_0x55163b(_0x28f376)||_0x28f376);return _0x28f376;},_0x4cace2=(_0x258a5e,_0x2dc430)=>(_0x38cd56,_0x55b828)=>_0x2dc430(_0x38cd56,_0x55b828,_0x258a5e),_0x26f678=(_0x360366,_0x8f4abd,_0x40972b)=>_0x29f519(_0x360366,_0x8f4abd+'',_0x40972b);const _0x11c0cc=_0x22f257(0x1d5);_0x193121[_0x22f257(0x2b8)]=class extends _0x2a9662[_0x22f257(0x3c7)]{constructor(_0xac5a7c=_0x1b9837,_0x144aea,_0x283b97,_0x2cd993){const _0x32158c=_0x22f257;super(),this[_0x32158c(0x1a9)]=_0xac5a7c,this[_0x32158c(0x287)]=_0x144aea,this['_injector']=_0x283b97,this['_configService']=_0x2cd993;const {..._0x164675}=_0x2a9662[_0x32158c(0x232)]({},_0x1b9837,this['_config']);this[_0x32158c(0x29f)]['setConfig'](_0x3dee98,_0x164675);}[_0x22f257(0x2b9)](){const _0x2a2376=_0x22f257;this['_registerDependencies'](),this[_0x2a2376(0x2e1)]();}['onRendered'](){const _0x56caf2=_0x22f257;this[_0x56caf2(0x3e4)]();}['_registerDependencies'](){const _0xe2b829=_0x22f257;var _0x53a6be;const _0x1abbad=[[_0x40de99],[_0x2511cb],[_0x1659e9],[_0x4e7219],[_0x48dd5],[_0x41d97e,{'useClass':_0x358029}],[_0x3990c8[_0xe2b829(0x1c2)],{'useClass':_0x3990c8['WebSocketService']}],[_0x5b04f9[_0xe2b829(0x1c8)],{'useClass':_0x1f2734}],[_0x193121[_0xe2b829(0x234)]],[_0x516d54],[_0x4f47f0],[_0x2dfea8],[_0x25a21d],[_0x193121[_0xe2b829(0x354)]]];_0x2a9662[_0xe2b829(0x3e9)](this[_0xe2b829(0x276)],_0x2a9662[_0xe2b829(0x167)](_0x1abbad,(_0x53a6be=this[_0xe2b829(0x1a9)])==null?void 0x0:_0x53a6be['override']));}[_0x22f257(0x3e4)](){const _0x1fa55b=_0x22f257;this[_0x1fa55b(0x2f4)](this[_0x1fa55b(0x287)][_0x1fa55b(0x291)](_0x2a9662['UniverInstanceType'][_0x1fa55b(0x391)],[_0x3cbae1])),this['disposeWithMe'](this[_0x1fa55b(0x287)]['registerRenderModule'](_0x2a9662[_0x1fa55b(0x3d8)][_0x1fa55b(0x385)],[_0x139261]));}[_0x22f257(0x2e1)](){const _0x32759d=_0x22f257;_0x2a9662[_0x32759d(0x2b5)](this['_injector'],[[_0x2dfea8],[_0x193121[_0x32759d(0x234)]],[_0x516d54],[_0x4f47f0],[_0x193121['CollaborationDataLoaderController']]]);}},_0x26f678(_0x193121[_0x22f257(0x2b8)],'pluginName',_0x11c0cc),_0x193121[_0x22f257(0x2b8)]=_0xd7b833([_0x2a9662['DependentOn'](_0x5b04f9[_0x22f257(0x22d)]),_0x4cace2(0x1,_0x53abef[_0x22f257(0x3d0)]),_0x4cace2(0x2,_0x2a9662[_0x22f257(0x166)](_0x2a9662[_0x22f257(0x282)])),_0x4cace2(0x3,_0x2a9662[_0x22f257(0x332)])],_0x193121[_0x22f257(0x2b8)]);var _0x501884=Object[_0x22f257(0x2ce)],_0x3f2d04=(_0xf4142e,_0x21816d,_0x5706a4,_0x3a1ef6)=>{const _0x33353e=_0x22f257;for(var _0x587723=_0x3a1ef6>0x1?void 0x0:_0x3a1ef6?_0x501884(_0x21816d,_0x5706a4):_0x21816d,_0x3fa12b=_0xf4142e[_0x33353e(0x1b0)]-0x1,_0x433b39;_0x3fa12b>=0x0;_0x3fa12b--)(_0x433b39=_0xf4142e[_0x3fa12b])&&(_0x587723=_0x433b39(_0x587723)||_0x587723);return _0x587723;},_0x1eb75e=(_0x13b25c,_0x5673a4)=>(_0x52d271,_0x139868)=>_0x5673a4(_0x52d271,_0x139868,_0x13b25c);_0x193121[_0x22f257(0x19c)]=class extends _0x5b04f9[_0x22f257(0x346)]{constructor(_0x77402c,_0xe7bbcb,_0x3811e7,_0x5ccc36,_0x308f7d){super(_0x77402c,_0xe7bbcb,_0x3811e7,_0x5ccc36,_0x308f7d);}async[_0x22f257(0x24d)](_0x426346){const _0x28faeb=_0x22f257,_0x2ced84=await this['_getSessionTicket'](),_0x38e066=this[_0x28faeb(0x3ba)](_0x426346,_0x2ced84);return this[_0x28faeb(0x1b9)](_0x38e066);}[_0x22f257(0x3ba)](_0x2ba3ab,_0x502bf9){const _0x4d0a8d=_0x22f257,_0x1be19f=typeof window>'u'?new URL(_0x2ba3ab):new URL(_0x2ba3ab,window[_0x4d0a8d(0x21e)][_0x4d0a8d(0x23f)]);_0x1be19f[_0x4d0a8d(0x207)]['set']('sessionTicket',_0x502bf9);const _0x4e2ca0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4d0a8d(0x21e)]['search']);return _0x4e2ca0['get']('runId')&&_0x1be19f['searchParams'][_0x4d0a8d(0x25d)]('runId',_0x4e2ca0['get']('runId')),_0x1be19f['toString']();}async[_0x22f257(0x1ad)](){const _0x166724=_0x22f257;var _0x3fa05c,_0x464635,_0x248e9b;const _0x51ed4d=this['_configService']['getConfig'](_0x5b04f9[_0x166724(0x3b6)]),_0xf095ed=(_0x3fa05c=_0x51ed4d==null?void 0x0:_0x51ed4d[_0x166724(0x268)])!=null?_0x3fa05c:_0x5b04f9[_0x166724(0x1f7)];return(_0x248e9b=(_0x464635=(await this['_httpService'][_0x166724(0x270)](_0xf095ed,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x464635['ticket'])!=null?_0x248e9b:'';}},_0x193121[_0x22f257(0x19c)]=_0x3f2d04([_0x1eb75e(0x0,_0x2a9662['Inject'](_0x2a9662[_0x22f257(0x282)])),_0x1eb75e(0x1,_0x2a9662['Inject'](_0x3990c8['HTTPService'])),_0x1eb75e(0x2,_0x2a9662[_0x22f257(0x332)]),_0x1eb75e(0x3,_0x2a9662['ILogService']),_0x1eb75e(0x4,_0x119f28[_0x22f257(0x395)])],_0x193121['BrowserCollaborationSocketService']);const _0x29a153=0x7530,_0x6c929c=_0x22f257(0x3e7);class _0x102ee9 extends _0x2a9662[_0x22f257(0x27b)]{constructor(){const _0x21c154=_0x22f257;super(),_0x30b7bc(this,_0x21c154(0x321),_0x2a9662['generateRandomId']()),_0x30b7bc(this,_0x21c154(0x18a),new Set()),_0x30b7bc(this,_0x21c154(0x2bd),new Map()),_0x30b7bc(this,_0x21c154(0x3ac),null),_0x30b7bc(this,_0x21c154(0x1a5),new Map()),_0x30b7bc(this,'_unitStatus',new Map()),this[_0x21c154(0x35b)]();}[_0x22f257(0x258)](){const _0x1fda46=_0x22f257;super['dispose'](),this[_0x1fda46(0x1a5)][_0x1fda46(0x231)]((_0x4ac9b7,_0x16cb37)=>this[_0x1fda46(0x320)](_0x16cb37)),this[_0x1fda46(0x3ac)]&&window[_0x1fda46(0x21f)](this['_heartbeatTimer']);}[_0x22f257(0x215)](_0x26912b){const _0x4b8fae=_0x22f257;return this[_0x4b8fae(0x2a0)](_0x26912b)[_0x4b8fae(0x367)](_0x539394[_0x4b8fae(0x2f0)]());}[_0x22f257(0x339)](_0x1feaba){const _0x77ce4d=_0x22f257;this[_0x77ce4d(0x18a)][_0x77ce4d(0x27d)]===0x0&&this['_scheduleHeartbeat'](),this[_0x77ce4d(0x18a)][_0x77ce4d(0x3de)](_0x1feaba),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1feaba],'isForwarded':!0x1});}[_0x22f257(0x24b)](_0x26e3e0){const _0xa660f8=_0x22f257;this['_selfUnitIDs'][_0xa660f8(0x181)](_0x26e3e0),this[_0xa660f8(0x18a)][_0xa660f8(0x27d)]===0x0&&this[_0xa660f8(0x3ac)]&&window[_0xa660f8(0x21f)](this['_heartbeatTimer']);}[_0x22f257(0x35b)](){const _0x535d5b=_0x22f257;this['disposeWithMe'](_0x2a9662[_0x535d5b(0x22f)](_0x539394[_0x535d5b(0x23c)](window,_0x535d5b(0x2da))[_0x535d5b(0x2e4)](_0x43d4d3=>{const _0x68687=_0x535d5b;if(_0x43d4d3[_0x68687(0x31d)]!==_0x6c929c||!_0x43d4d3[_0x68687(0x1ba)])return;const _0x30b0d3=JSON[_0x68687(0x371)](_0x43d4d3[_0x68687(0x1ba)]);this[_0x68687(0x38f)](_0x30b0d3);}))),window[_0x535d5b(0x161)](_0x535d5b(0x184),()=>this[_0x535d5b(0x2ac)]({'type':0x1,'memberID':this[_0x535d5b(0x321)],'unitIDs':Array['from'](this[_0x535d5b(0x18a)])}));}[_0x22f257(0x38f)](_0x352702){const _0x3b0a93=_0x22f257;switch(_0x352702[_0x3b0a93(0x329)]){case 0x0:this['_handleJoinEvent'](_0x352702);break;case 0x1:this[_0x3b0a93(0x375)](_0x352702);break;case 0x2:this[_0x3b0a93(0x3cc)](_0x352702);break;}}[_0x22f257(0x1fa)](_0x5a01d9){const _0xc62292=_0x22f257,{unitIDs:_0x2a8270,memberID:_0x18e5d8,isForwarded:_0xd8b6f4}=_0x5a01d9;_0x2a8270[_0xc62292(0x231)](_0x56e0d0=>{const _0x1bc5b4=_0xc62292;if(!_0xd8b6f4&&this[_0x1bc5b4(0x2bd)][_0x1bc5b4(0x1fb)](_0x56e0d0)&&this[_0x1bc5b4(0x2a0)](_0x56e0d0)[_0x1bc5b4(0x3a6)](_0x5b04f9[_0x1bc5b4(0x163)][_0x1bc5b4(0x24e)]),!this['_unitOnClients'][_0x1bc5b4(0x1fb)](_0x56e0d0)||!this[_0x1bc5b4(0x2bd)][_0x1bc5b4(0x270)](_0x56e0d0)[_0x1bc5b4(0x1fb)](_0x18e5d8)){const _0x29e165=this['_unitOnClients'][_0x1bc5b4(0x270)](_0x56e0d0)||new Set();_0x29e165['add'](_0x18e5d8),this[_0x1bc5b4(0x2bd)][_0x1bc5b4(0x25d)](_0x56e0d0,_0x29e165),this['_scheduleClearOtherTimer'](_0x18e5d8);}}),_0xd8b6f4||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xc62292(0x18a)]],'isForwarded':!0x0});}[_0x22f257(0x2e8)](_0x1d1041){const _0x2e9343=_0x22f257;this[_0x2e9343(0x320)](_0x1d1041);const _0x42f192=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x1b4b92=>{_0x1b4b92['delete'](_0x1d1041);});},_0x29a153*0x2);this[_0x2e9343(0x1a5)]['set'](_0x1d1041,_0x42f192);}['_removeClearOtherTimer'](_0x3f3008){const _0x3254e3=_0x22f257;if(this[_0x3254e3(0x1a5)][_0x3254e3(0x1fb)](_0x3f3008)){const _0x5c31af=this[_0x3254e3(0x1a5)]['get'](_0x3f3008);_0x5c31af&&window['clearTimeout'](_0x5c31af),this['_clearOtherTimers']['set'](_0x3f3008,null);}}[_0x22f257(0x375)](_0x5a765a){const _0x13eab8=_0x22f257,{memberID:_0x3beba3,unitIDs:_0x14abda}=_0x5a765a;_0x14abda[_0x13eab8(0x231)](_0x5e24ec=>{const _0x2a9448=_0x13eab8;var _0x432f05;const _0x433a25=this[_0x2a9448(0x2bd)][_0x2a9448(0x270)](_0x5e24ec);_0x433a25&&(_0x433a25['delete'](_0x3beba3),(_0x432f05=this[_0x2a9448(0x2a0)](_0x5e24ec))==null||_0x432f05[_0x2a9448(0x3a6)](_0x433a25[_0x2a9448(0x27d)]===0x0?_0x5b04f9[_0x2a9448(0x163)][_0x2a9448(0x38a)]:_0x5b04f9['UnitStatus'][_0x2a9448(0x24e)]));}),this[_0x13eab8(0x320)](_0x3beba3);}[_0x22f257(0x3cc)](_0x33734b){const _0x302ea8=_0x22f257;this[_0x302ea8(0x2e8)](_0x33734b[_0x302ea8(0x3b1)]);}['_send'](_0x4e1b3e){const _0x1b7443=_0x22f257;localStorage[_0x1b7443(0x2b0)](_0x6c929c,JSON[_0x1b7443(0x3f0)](_0x4e1b3e));}[_0x22f257(0x190)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x12202a=_0x574a;this['_send']({'type':0x2,'memberID':this[_0x12202a(0x321)]});},_0x29a153);}[_0x22f257(0x2a0)](_0x2679c6){const _0x4b9e4b=_0x22f257;return this[_0x4b9e4b(0x2a2)][_0x4b9e4b(0x1fb)](_0x2679c6)||this[_0x4b9e4b(0x2a2)][_0x4b9e4b(0x25d)](_0x2679c6,new _0x539394[(_0x4b9e4b(0x1ca))](_0x5b04f9[_0x4b9e4b(0x163)][_0x4b9e4b(0x38a)])),this[_0x4b9e4b(0x2a2)][_0x4b9e4b(0x270)](_0x2679c6);}}var _0x15aa14=(_0x5aea25=>(_0x5aea25[_0x5aea25[_0x22f257(0x178)]=0x0]=_0x22f257(0x178),_0x5aea25[_0x5aea25['OK']=0x1]='OK',_0x5aea25[_0x5aea25['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x5aea25[_0x5aea25[_0x22f257(0x26e)]=0x3]='PERMISSION_DENIED',_0x5aea25[_0x5aea25[_0x22f257(0x296)]=0x4]=_0x22f257(0x296),_0x5aea25[_0x5aea25[_0x22f257(0x3e2)]=0x5]=_0x22f257(0x3e2),_0x5aea25[_0x5aea25['ALREADY_EXISTS']=0x6]=_0x22f257(0x3c0),_0x5aea25[_0x5aea25[_0x22f257(0x30c)]=0x7]=_0x22f257(0x30c),_0x5aea25[_0x5aea25[_0x22f257(0x185)]=0x8]=_0x22f257(0x185),_0x5aea25[_0x5aea25[_0x22f257(0x212)]=0x9]='COMPLETION_FINISHED',_0x5aea25[_0x5aea25[_0x22f257(0x1e0)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5aea25[_0x5aea25[_0x22f257(0x3e0)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5aea25[_0x5aea25[_0x22f257(0x31f)]=0x1772]=_0x22f257(0x31f),_0x5aea25[_0x5aea25['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x22f257(0x23e),_0x5aea25[_0x5aea25['APPLY_REJECT']=0x1b59]=_0x22f257(0x3b9),_0x5aea25[_0x5aea25[_0x22f257(0x2bc)]=0x1b5a]=_0x22f257(0x2bc),_0x5aea25[_0x5aea25[_0x22f257(0x33e)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5aea25[_0x5aea25[_0x22f257(0x208)]=0x1b5c]=_0x22f257(0x208),_0x5aea25[_0x5aea25[_0x22f257(0x2d6)]=0x1b5d]='APPLY_DUPLICATED',_0x5aea25[_0x5aea25['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x22f257(0x3a0),_0x5aea25[_0x5aea25[_0x22f257(0x1d7)]=0x2329]=_0x22f257(0x1d7),_0x5aea25[_0x5aea25[_0x22f257(0x267)]=0x232a]=_0x22f257(0x267),_0x5aea25[_0x5aea25[_0x22f257(0x1a1)]=0x232b]=_0x22f257(0x1a1),_0x5aea25[_0x5aea25[_0x22f257(0x35e)]=0x232c]=_0x22f257(0x35e),_0x5aea25[_0x5aea25[_0x22f257(0x381)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5aea25[_0x5aea25[_0x22f257(0x1c7)]=0x2711]=_0x22f257(0x1c7),_0x5aea25[_0x5aea25['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x22f257(0x3c8),_0x5aea25[_0x5aea25[_0x22f257(0x36b)]=0x2713]=_0x22f257(0x36b),_0x5aea25[_0x5aea25[_0x22f257(0x218)]=0x2714]=_0x22f257(0x218),_0x5aea25[_0x5aea25[_0x22f257(0x1a0)]=0x2af9]=_0x22f257(0x1a0),_0x5aea25[_0x5aea25[_0x22f257(0x325)]=-0x1]=_0x22f257(0x325),_0x5aea25))(_0x15aa14||{}),_0x54d780=Object['getOwnPropertyDescriptor'],_0x5e690f=(_0x1f897c,_0x1edab5,_0x56c033,_0x4a5236)=>{for(var _0x151e7a=_0x4a5236>0x1?void 0x0:_0x4a5236?_0x54d780(_0x1edab5,_0x56c033):_0x1edab5,_0x51d8cb=_0x1f897c['length']-0x1,_0x2bc414;_0x51d8cb>=0x0;_0x51d8cb--)(_0x2bc414=_0x1f897c[_0x51d8cb])&&(_0x151e7a=_0x2bc414(_0x151e7a)||_0x151e7a);return _0x151e7a;},_0x5bfcc4=(_0x3302f8,_0x2fc5d5)=>(_0x5efa7b,_0xb285db)=>_0x2fc5d5(_0x5efa7b,_0xb285db,_0x3302f8);_0x193121[_0x22f257(0x162)]=class extends _0x2a9662[_0x22f257(0x27b)]{constructor(_0x1d3edb,_0x2cf6b8,_0xef14cb){super(),this['_instanceService']=_0x1d3edb,this['_httpService']=_0x2cf6b8,this['_configService']=_0xef14cb;}async[_0x22f257(0x1ab)](_0x2d07ca,_0xe3132f,_0x4ba163,..._0x38ce66){const _0x45aac8=_0x22f257;var _0x580c51,_0x208369,_0x449d65,_0x507e1a;const _0x46d55a=this['_instanceService'][_0x45aac8(0x299)]();if(!_0x46d55a)throw new Error(_0x45aac8(0x353));const _0x2a4889=((_0x580c51=this[_0x45aac8(0x29f)][_0x45aac8(0x3b3)](_0x5b04f9[_0x45aac8(0x1d1)]))!=null?_0x580c51:_0x5b04f9[_0x45aac8(0x210)])+'/'+_0x2d07ca+_0x45aac8(0x3d3)+_0xe3132f,_0x2a9b19=new URL(window['location'][_0x45aac8(0x2f1)]),_0x2af37b={'scriptId':_0x2d07ca,'runId':(_0x208369=_0x2a9b19[_0x45aac8(0x207)][_0x45aac8(0x270)](_0x45aac8(0x1f1)))!=null?_0x208369:'','function':_0xe3132f,'unitId':_0x46d55a[_0x45aac8(0x3ef)](),'argsOfFunction':JSON['stringify'](_0x38ce66),'invokeId':(_0x449d65=_0x4ba163[_0x45aac8(0x183)])!=null?_0x449d65:'','executionId':(_0x507e1a=_0x4ba163[_0x45aac8(0x3ed)])!=null?_0x507e1a:''};try{const _0x3f1b6f=await this[_0x45aac8(0x3d7)][_0x45aac8(0x341)](_0x2a4889,{'body':_0x2af37b});return _0x3f1b6f[_0x45aac8(0x3d4)]['error']&&_0x3f1b6f['body'][_0x45aac8(0x37a)][_0x45aac8(0x373)]!==_0x15aa14['OK']?'Failed':_0x3f1b6f[_0x45aac8(0x3d4)]['result'];}catch{return _0x45aac8(0x3cd);}}},_0x193121['RemoteUniscriptService']=_0x5e690f([_0x5bfcc4(0x0,_0x2a9662[_0x22f257(0x3db)]),_0x5bfcc4(0x1,_0x2a9662[_0x22f257(0x166)](_0x3990c8[_0x22f257(0x349)])),_0x5bfcc4(0x2,_0x2a9662['IConfigService'])],_0x193121['RemoteUniscriptService']),_0x193121[_0x22f257(0x1a2)]=_0x4dd7b0,_0x193121['IURLService']=_0x41d97e,_0x193121['SheetCollabCursorShape']=_0x3a9bf4,_0x193121[_0x22f257(0x30e)]=_0x102ee9,_0x193121[_0x22f257(0x16e)]=_0x358029,Object[_0x22f257(0x2d4)](_0x193121,Symbol['toStringTag'],{'value':_0x22f257(0x20d)});}));