@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506011606 → 0.8.0-nightly.202506021607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4e23fa=_0x13d8;(function(_0xbe2059,_0x2a492e){const _0x2e10a1=_0x13d8,_0x586894=_0xbe2059();while(!![]){try{const _0x23f0ba=-parseInt(_0x2e10a1(0xe9))/0x1*(-parseInt(_0x2e10a1(0xf2))/0x2)+parseInt(_0x2e10a1(0xf0))/0x3*(-parseInt(_0x2e10a1(0xec))/0x4)+-parseInt(_0x2e10a1(0xf3))/0x5+parseInt(_0x2e10a1(0xed))/0x6*(parseInt(_0x2e10a1(0xf1))/0x7)+parseInt(_0x2e10a1(0xef))/0x8+-parseInt(_0x2e10a1(0xf6))/0x9+-parseInt(_0x2e10a1(0xf7))/0xa*(-parseInt(_0x2e10a1(0xf9))/0xb);if(_0x23f0ba===_0x2a492e)break;else _0x586894['push'](_0x586894['shift']());}catch(_0x4474ec){_0x586894['push'](_0x586894['shift']());}}}(_0x1337,0x74caa));const t=require(_0x4e23fa(0xea)),e=require(_0x4e23fa(0xee));function _0x13d8(_0xb7698e,_0x37de37){const _0x133715=_0x1337();return _0x13d8=function(_0x13d8ff,_0x326054){_0x13d8ff=_0x13d8ff-0xe9;let _0x536ff1=_0x133715[_0x13d8ff];return _0x536ff1;},_0x13d8(_0xb7698e,_0x37de37);}function _0x1337(){const _0x3cdac7=['FUniver','11TwXHtp','213Ufqefd','@univerjs-pro/collaboration-client-ui','_injector','29000xelryb','19830JNJKTq','@univerjs/core/facade','5910392dYpeVF','363gRDkCW','2009LRdLaq','3726JBMdJR','2486065LaEBgX','extend','runOnServer','7957476wGhWMv','6528520FvfrKf'];_0x1337=function(){return _0x3cdac7;};return _0x1337();}class c extends e[_0x4e23fa(0xf8)]{['runOnServer'](_0x2e55b8,_0x560aab,..._0x46c950){const _0x535cc5=_0x4e23fa;return this[_0x535cc5(0xeb)]['get'](t['RemoteUniscriptService'])[_0x535cc5(0xf5)](_0x2e55b8,_0x560aab,{},..._0x46c950);}}e[_0x4e23fa(0xf8)][_0x4e23fa(0xf4)](c);
1
+ 'use strict';const _0xf57802=_0x1795;(function(_0x383648,_0x179df1){const _0x517723=_0x1795,_0x3c49a4=_0x383648();while(!![]){try{const _0xf2b2c0=parseInt(_0x517723(0x9c))/0x1*(parseInt(_0x517723(0x9f))/0x2)+parseInt(_0x517723(0x98))/0x3+parseInt(_0x517723(0x9e))/0x4*(-parseInt(_0x517723(0x94))/0x5)+parseInt(_0x517723(0x9b))/0x6*(parseInt(_0x517723(0x90))/0x7)+parseInt(_0x517723(0x96))/0x8+parseInt(_0x517723(0x9a))/0x9+parseInt(_0x517723(0xa2))/0xa*(-parseInt(_0x517723(0xa1))/0xb);if(_0xf2b2c0===_0x179df1)break;else _0x3c49a4['push'](_0x3c49a4['shift']());}catch(_0x154351){_0x3c49a4['push'](_0x3c49a4['shift']());}}}(_0x27ef,0x2a4a0));function _0x27ef(){const _0x5255a4=['get','53645ydozPB','runOnServer','642656QCMtHV','@univerjs-pro/collaboration-client-ui','786732NhRQod','_injector','1585674bnwUxM','6OrKJFz','308PcJQIC','@univerjs/core/facade','12GmVDTp','182ZuLpWq','FUniver','4198018ZQupug','10RThsCP','281757CcaSJB','RemoteUniscriptService','extend'];_0x27ef=function(){return _0x5255a4;};return _0x27ef();}function _0x1795(_0x2e3ff9,_0x21155c){const _0x27efe6=_0x27ef();return _0x1795=function(_0x179501,_0x4d2312){_0x179501=_0x179501-0x90;let _0x47aff2=_0x27efe6[_0x179501];return _0x47aff2;},_0x1795(_0x2e3ff9,_0x21155c);}const t=require(_0xf57802(0x97)),e=require(_0xf57802(0x9d));class c extends e['FUniver']{[_0xf57802(0x95)](_0xb58592,_0x61a474,..._0x1b982f){const _0xd003df=_0xf57802;return this[_0xd003df(0x99)][_0xd003df(0x93)](t[_0xd003df(0x91)])[_0xd003df(0x95)](_0xb58592,_0x61a474,{},..._0x1b982f);}}e[_0xf57802(0xa0)][_0xf57802(0x92)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4a9aaf=_0x7693;(function(_0x5ef72f,_0x109d0b){const _0x17aa04=_0x7693,_0x392fba=_0x5ef72f();while(!![]){try{const _0x3cba9f=-parseInt(_0x17aa04(0x226))/0x1+parseInt(_0x17aa04(0x2df))/0x2*(parseInt(_0x17aa04(0x1b5))/0x3)+-parseInt(_0x17aa04(0x1a4))/0x4*(parseInt(_0x17aa04(0x10c))/0x5)+parseInt(_0x17aa04(0x2f3))/0x6*(-parseInt(_0x17aa04(0x18f))/0x7)+parseInt(_0x17aa04(0x2a3))/0x8+-parseInt(_0x17aa04(0x16c))/0x9*(parseInt(_0x17aa04(0x11d))/0xa)+parseInt(_0x17aa04(0x2bd))/0xb*(parseInt(_0x17aa04(0x32c))/0xc);if(_0x3cba9f===_0x109d0b)break;else _0x392fba['push'](_0x392fba['shift']());}catch(_0x5d74d2){_0x392fba['push'](_0x392fba['shift']());}}}(_0x316a,0x36667));var Ve=Object[_0x4a9aaf(0x2ae)],Xe=(_0x1b59a6,_0x1e762d,_0x4b556f)=>_0x1e762d in _0x1b59a6?Ve(_0x1b59a6,_0x1e762d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b556f}):_0x1b59a6[_0x1e762d]=_0x4b556f,h=(_0x313f27,_0x4edba7,_0x5ac927)=>Xe(_0x313f27,typeof _0x4edba7!=_0x4a9aaf(0x1ff)?_0x4edba7+'':_0x4edba7,_0x5ac927);Object[_0x4a9aaf(0x2ae)](exports,Symbol[_0x4a9aaf(0x24b)],{'value':'Module'});const u=require(_0x4a9aaf(0x366)),a=require(_0x4a9aaf(0x12c)),p=require(_0x4a9aaf(0x271)),G=require(_0x4a9aaf(0x261)),b=require(_0x4a9aaf(0x12f)),Ge=require(_0x4a9aaf(0x266)),d=require(_0x4a9aaf(0x1e8)),Y=require(_0x4a9aaf(0x1fe)),m=require(_0x4a9aaf(0xf9)),Ee=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require(_0x4a9aaf(0x213)),X=require(_0x4a9aaf(0x2d0)),w=require(_0x4a9aaf(0x119)),T=require(_0x4a9aaf(0x1db)),D=require(_0x4a9aaf(0x16e)),M=require(_0x4a9aaf(0xf6)),Ke=require('@univerjs/rpc');function _0x316a(){const _0x5e779a=['_context','_univerInstanceService','m1Prime','MemberService','collabStatus.conflict','_saveTaskMap','forEach','defineProperty','[CollaborationDataLoaderController]','set','SYNCED','UniverCollaborationClientUIPlugin','none','NO_OTHER_CLIENTS_EDITING','onPointerMove$','_unitOnClients','subunit','_document','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_handleHeartbeatEvent','textRanges','_docTransformIMECacheService','97339iWSgKi','CollaborationStatus','storage','merge','_startDocCollabCursor','activeSheet$','data','on-line-icon_clip0_910_349','drawWith','isArray','getItem','IRenderManagerService','handleInsertRangeMoveDown','setInterval','_status$','Warning','parse','collab-text-anchor-','_disabled','@univerjs/sheets-ui','string','jsxs','translate(.97)','handleIRemoveCol','url(#off-line-icon_clip0_910_343)','removeParam','save','EMAIL_HAS_BEEN_BOUND','source','min','disposeWithMe','getConfig','INTERNAL_ERROR','isTransformMutationFailure','2646fiIBlM','_dataLoaderService','RevisionService','EffectRefRangId','IConfigService','M0\x200H16V16H0z','debounceTime','apply','_imageIoService','getUnhiddenWorksheets','INVITE_CODE_REQUIRED','all','setAlpha','doc.mutation.rich-text-editing','onMouseMove','getUndoRedoMutationParamsCache','collabStatus.syncing','_configService','clipPath','COMPLETION_FINISHED','3480nFZLZy','complete','purple.300','setConfig','fillRule','rgba(255,\x20255,\x20255,\x200.01)','body','search','_updateLocalCursor','saveImage','restore','find','off-line-icon','blue.400','Inject','_entities','addObjects','getCollabEntity$','post','fill','currentSkeleton$','UNDEFINED','DeleteRangeMoveUpCommandId','indexOf','current','next','newValue','send','getOffsetConfig','createElement','SOCKET_FAILED','_docTransformSelectionsService','AWAITING_WITH_PENDING','enableLocalCache','TEXT','svg','_ensureSubject','imageSourceType','href','DependentOn','call','_getAnchorBounding','wsSessionTicketUrl','TOO_MANY_REQUESTS','_colorAssignService','DocStateChangeManagerService','NodePositionConvertToCursor','name','generateRandomId','_cursorInfo$','selection','_cursor','OTHER_CLIENTS_EDITING','icon','url(#on-line-icon_clip0_910_349)','_updateCollabCursors','application/json','1044ZIkyDT','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','replace','sessionTicket','unit','sessionStatus$','override','path','column','debug','_scheduleSaving','prototype','_draw','transformSelections','useRef','error','onPointerLeave$','_removeClearOtherTimer','NOT_COLLAB','concat','isTransformMutationsWithChangesetSuccess','IUIPartsService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','includes','filter','code','getSkeleton','_onCursorDelete','div','INVALID_INVITE_CODE','engine','history','_httpService','INotificationService','ITransformService','collaboration-client-ui.config','beginPath','_docClipboardService','size','displayName','switchMap','split','SOCKET_FAILED_RETRY','_render','MOBILE_HAS_BEEN_BOUND','eventID','flatMap','IImageIoService','_docSkeletonManagerService','collab-client.tooltip.reconnect','_saveCache','fromEvent','m2Prime','sheetID','dispose','getLocalCacheKey','_transformHistoryAndStateStack','_initResize','@univerjs-pro/collaboration-client','HEADER_MENU','clearTimeout','_scene','session.collaboration-timeout','ThemeService','addObject','_initDependencies','getOwnPropertyDescriptor','_localCacheService','USERS_LEAVE','subscribeEvent','_injector','getActiveRange','BrowserCollaborationSocketService','docStateChange$','takeUntil','YUUMI_RATE_OVER_LIMIT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_toggleOnline','getSheetId','setShapeProps','WebBrowserSingleActiveUnitService','LOCAL_CACHE_INTERVAL','from','handleInsertCol','push','measureText','DocIMEInputManagerService','RemoteUniscriptService','_labelPosition','toString','focused$','ICommandService','_initEntityListener','UniverInstanceType','then','_color','_setupSubUnitSync','pushState','react','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_onRefRangeChange','@univerjs-pro/collaboration','Shape','session.will-retry','onTransformChange$','unitID','useCallback','UNIVER_DOC','CollaborationController','CommandType','LocaleService','type','fillText','registerRenderModule','transformMutationsWithChangeset','APPLY_PERMISSION_DENIED','bottom','createSocket','toDisposable','pipe','608945xsWYgo','_assignedColors','YUUMI_ASYNCIO_CANCELLED','getSheetBySheetId','setUndoRedoMutationParamsCache','_collabCursorController','_memberService','loadUnit','init','APPLY_REVISION_CONFILICT','unshift','stringify','map','react/jsx-runtime','_hideTimer','RefRangeService','replaceDocRanges','70010WqOxXe','toRgbString','permission.content','_onCursorUpdate','debounce','PY_RUNTIME_SCRIPT_ERROR','_init','getMemberID','addClipboardHook','getRenderById','WebURLService','transformMutation','InsertColCommandId','_sheetSkeletonManagerService','RECT','@univerjs/core','_transformPreviousActiveRange','univerjs-icon\x20univerjs-icon-','@univerjs/docs-ui','updateOfflineData','white','PERMISSION_DENIED','_session','_messageService','transformRemoteChangeset','LICENSE_IMPORT_SIZE_EXCEEDED','startColumn','YUUMI_ALL_TABLES_IS_INVALID','getCellPositionByOffset','_doCreateSocket','status$','YUUMI_UNABLE_LOAD_URL','UniverCollaborationClientPlugin','attrs','collaboration-client.offline-data-not-saved','_registerRenderDependencies','DisposableCollection','INVALID_ARGUMENT','createIdentifier','MessageType','registerDependencies','contains','_handleHover','max','Disposable','onCommandExecuted','CollaborationUIEventId','_handleEvent','LOCAL_CACHE_INTERVAL_KEY','_entityInit$','_docSkeleton','CollaborationUIEventService','endRow','useDependency','_drawRectRange','reconnect','throttleTime','_anchorDot','selections','_range','_docSyncEditingCollabCursorService','1em','syncEditingCollabCursor','deepClone','DocSelectionManagerService','_logService','touchDependencies','_config','unsubscribe','resize','CollaborationSocketService','_commandService','entries','startsWith','ranges','_startSheetCollabCursor','_colorIndex','createInstance','SNAPSHOT_INVALID_SNAPSHOT','162aFdjIx','tag','@univerjs/design','fromEventSubject','Vector2','setItem','BehaviorSubject','DeleteRangeMoveLeftCommandId','InsertRowCommandId','Subject','triggerDblclick','lineTo','_textBubble','_lastPointer','_updateSubUnitFromURLParams','LICENSE_MAX_UNITS_EXCEEDED','cursorInfo','labelPosition','_drawAnchor','getDocRanges','getMember','unitId','getUnitId','onLocalMutation','transformByState','_transformUndoRedoStack','ISocketService','_initCommandExecutedListener','_heartbeatTimer','range','getColor','DesktopCollaborationStatusDisplayController','_removeCollabCursors','SheetSkeletonManagerService','getStateCache','1939NVgWnG','registerRefRange','CollaborationDataLoaderController','setActiveRange','SessionStatus','mapTo','FETCH_MISS','_anchor','transformIMECache','className','collabStatus.offline','LOGIN_FAILED','url(#$1','collab-text-range-','_cachedData','location','getActiveSheet','random','collabCursorState$','forwardRef','mutations','4fvlfKv','getCoordByCell','WECHAT_HAS_BEEN_BOUND','_docStateChangeManagerService','_roomMembers$','text','_collaborationUIEventService','with','getAncestorScale','Failed','OffLineIcon','startRow','saveTaskMap','CONFLICT','shareReplay','YUUMI_URL_COL_OUT_OF_RANGE','isActive','135UYwFQV','round','INVITE_CODE_HAS_BEEN_UES','CollaborationEvent','_selfUnitIDs','replaceState','row','length','getCurrentRevOfUnit','getRangePointData','ticket','_handleJoinEvent','SheetCollabCursorShape','_online','_localStorageService','color','APPLY_DUPLICATED','SNAPSHOT_HAS_BEEN_REMOVED','getTypeOfUnitDisposed$','roomMembers','hide','result','YUUMI_AI_RUN_FAILED','http://www.w3.org/2000/svg','WebSocketService','add','Injector','NodePositionConvertToRectRange','has','values','getValue','mask','UnitStatus','_hovered','setStateCache','runRefRangeMutations','_getSheetObject','CHANGESET_REVISION_CONFILICT','@univerjs/ui','CollaborationSessionService','RxDisposable','cursorInfo$','fillStyle','onPointerEnter$','getSheetObject','transformStateCache','propertyIsEnumerable','_updateURLWithCurrentState','HTTPService','getColorFromTheme','getRelativeToViewportCoord','rxjs','findNodePositionByCharIndex','get','_handleLeaveEvent','currentColor','handleInsertRow','IURLService','handleInsertRangeMoveRight','delete','APPLY_REJECT','ALREADY_EXISTS','getTypeOfUnitAdded$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ColorKit','clearInterval','xlink:href','_getSaveTimeout','endColumn','_eventUnsubscribe','distinctUntilChanged','COLORS','Rect','@univerjs/docs','symbol','getOwnPropertySymbols','jiqing.500','SetDocZoomRatioOperation','_createSocketURL','_scheduleClearOtherTimer','_revisionService','colorChannel1','_drawTextRange','defs','params','_getMergeRange','sheetId','pluginName','Tools','_name','_id','getFocusedUnit','IRemoteInstanceService','ENSURE_SNAPSHOT_EXECUTION','rxjs/operators','NOT_FOUND','_registerDependencies','IUniverInstanceService','_syncEditingCollabCursorService','disposeUnit','off-line-icon_clip0_910_343','CollaborationStatusDisplay','ILocalCacheService','_initStatusListener','clsx','_setupBeforeClosingHandler','runId','popstate','_send','width','whenReady','event$','SetSelectionsOperation','259576LnDtcn','height','SetWorksheetActivateCommand','JOIN_ROOM_FAILED','YUUMI_NO_CUBOID_FOR_QUESTION','jsx','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_scheduleHeartbeat','_refreshCollabCursors','show','_refRangeService','onStarting','green.600','ACTIVE_UNIT_EVENT_CHANNEL','permission.title','_cursors','redoState','extend','FromArray','font','DOC_RANGE_TYPE','idSuffix','Tooltip','DocSkeletonManagerService','closePath','assignAColorForMemberID','_unitStatus','_uiPartsService','_notificationService','combineLatest','IDocClipboardService','hasOwnProperty','black','disableLocalCache','MoveRangeCommandId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_renderManagerService','toStringTag','registerComponent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','searchParams','Error','_hover','subscribe','UNRECOGNIZED','hovered','...','INVITE_CODE_ALREADY_BOUND','connectInjector','actions','deserializeRangeWithSheet','getVpScrollXYInfoByPosToVp','onRendered','_collabSessionService','red.300','_backgroundColor','RegularPolygon','_urlService','subUnitId','@univerjs/network','makeDirty','IBeforeCloseService','undoState','Optional','@univerjs/drawing','currentTheme$','evenodd','collabStatus.notCollab','useObservable','_clearOtherTimers','arc','#FFF','requireSession','_getSessionTicket','handleDeleteRangeMoveLeft','@univerjs/engine-render','CONNECTOR_DATA_TOO_LARGE','SheetsSelectionsService','APPLY_NON_SEQUENTIAL_REVISION','TEXT_RANGE_LAYER_INDEX','_initStatusComponent','executeCommand','UNIVER_SHEET','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','YUUMI_SUBSCRIPTION_NOT_FOUND','_getScale','uni.network.url-service','USER_NOT_INVITED_CODE','dispose$','collaboration.closeRoom','asObservable','_localeService','LICENSE_EXPORT_SIZE_EXCEEDED','_cursorShapes','_docTransformStateCacheService','moveTo','exhaustSavingTask','_themeService','_toggleOffline','registerBeforeClose','children','OFFLINE','getCollabCursors$','invokeId','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','defIds','addEventListener','_collabCursorState$','/run/','assign','setParam','ILocalStorageService','ILogService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UPDATE_CURSOR','function','_shapes','editingUnit','_initEvent','roomMembers$','origin','_transformService','OnLineIcon','_collaborationController','on-line-icon','491744oDbmol','IMessageService','urlChange$','getParam'];_0x316a=function(){return _0x5e779a;};return _0x316a();}var qe=Object[_0x4a9aaf(0x36e)],ze=(_0x31a4cb,_0x58db5f,_0x373883,_0x44d08d)=>{const _0x471c5a=_0x4a9aaf;for(var _0x4879be=_0x44d08d>0x1?void 0x0:_0x44d08d?qe(_0x58db5f,_0x373883):_0x58db5f,_0x2776e1=_0x31a4cb[_0x471c5a(0x1bc)]-0x1,_0x69268e;_0x2776e1>=0x0;_0x2776e1--)(_0x69268e=_0x31a4cb[_0x2776e1])&&(_0x4879be=_0x69268e(_0x4879be)||_0x4879be);return _0x4879be;},Te=(_0xb795b1,_0x535ed8)=>(_0x249649,_0x2f312e)=>_0x535ed8(_0x249649,_0x2f312e,_0xb795b1);let de=class extends a['RxDisposable']{constructor(_0x54d1ab,_0x94f556){const _0x18b014=_0x4a9aaf;super(),this['_docClipboardService']=_0x54d1ab,this[_0x18b014(0x2e7)]=_0x94f556,this['_init']();}[_0x4a9aaf(0x123)](){const _0x5cc27b=_0x4a9aaf,_0x16d852=this;this[_0x5cc27b(0x2db)](this[_0x5cc27b(0x351)][_0x5cc27b(0x125)]({'onBeforePasteImage':async _0x4e310c=>{const _0x58124e=_0x5cc27b,_0x3dd3f6=await _0x16d852[_0x58124e(0x2e7)][_0x58124e(0x2fc)](_0x4e310c);return _0x3dd3f6?{'source':_0x3dd3f6[_0x58124e(0x2d9)],'imageSourceType':_0x3dd3f6[_0x58124e(0x318)]}:null;}}));}};de=ze([Te(0x0,b[_0x4a9aaf(0x244)]),Te(0x1,Ge[_0x4a9aaf(0x35b)])],de);const Oe=[_0x4a9aaf(0x2f5),_0x4a9aaf(0x201),_0x4a9aaf(0x232),_0x4a9aaf(0x25c),_0x4a9aaf(0x300),'yellow.400'];class me extends a[_0x4a9aaf(0x149)]{constructor(){const _0x42581c=_0x4a9aaf;super(...arguments),h(this,_0x42581c(0x10d),new Map()),h(this,_0x42581c(0x169),0x0);}[_0x4a9aaf(0x23f)](_0x31ac61){const _0x4649d6=_0x4a9aaf;if(this[_0x4649d6(0x10d)]['has'](_0x31ac61))return this[_0x4649d6(0x10d)][_0x4649d6(0x1ea)](_0x31ac61);const _0x5a82f1=Oe[this[_0x4649d6(0x169)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%Oe['length'],this[_0x4649d6(0x10d)][_0x4649d6(0x2b0)](_0x31ac61,_0x5a82f1),_0x5a82f1;}}function we(_0x310490){const _0xf62801=_0x4a9aaf;let _0x1b9543='';for(const _0x4eed1e of _0x310490){const {startOffset:_0x61a8f7,endOffset:_0x2fbcd5,isActive:_0x26372a,rangeType:_0x28071c,segmentId:_0x2fb4e1,segmentPage:_0x118b3b}=_0x4eed1e;_0x1b9543[_0xf62801(0x1bc)]&&(_0x1b9543+=','),_0x1b9543+=_0x61a8f7+':'+_0x2fbcd5+':'+(_0x26372a?'1':'0')+':'+_0x28071c+':'+_0x2fb4e1+':'+_0x118b3b;}return _0x1b9543;}function Je(_0x46cf54){const _0x394b4c=_0x4a9aaf,_0xcec2db=_0x46cf54[_0x394b4c(0x355)](','),_0x1ad50a=[];for(const _0x9fa528 of _0xcec2db){const [_0x15d2b9,_0x4abb8a,_0x1fc550,_0x51ae7d,_0x5bb74c,_0x31795d]=_0x9fa528['split'](':');_0x1ad50a[_0x394b4c(0x380)]({'startOffset':Number(_0x15d2b9),'endOffset':Number(_0x4abb8a),'collapsed':_0x15d2b9===_0x4abb8a,'isActive':_0x1fc550==='1','rangeType':_0x51ae7d===a[_0x394b4c(0x23a)][_0x394b4c(0x315)]?a['DOC_RANGE_TYPE'][_0x394b4c(0x315)]:a['DOC_RANGE_TYPE'][_0x394b4c(0x12b)],'segmentId':typeof _0x5bb74c==_0x394b4c(0x2d1)?String(_0x5bb74c):'','segmentPage':Number(_0x31795d!=null?_0x31795d:-0x1)});}return _0x1ad50a['some'](_0x2f6361=>_0x2f6361[_0x394b4c(0x1b4)])||(_0x1ad50a[0x0][_0x394b4c(0x1b4)]=!0x0),_0x1ad50a;}class Ce extends a[_0x4a9aaf(0x1dd)]{constructor(){const _0xff7085=_0x4a9aaf;super(...arguments),h(this,_0xff7085(0x291),new d['BehaviorSubject'](null)),h(this,_0xff7085(0x1a1),this[_0xff7085(0x291)]['asObservable']());}['syncEditingCollabCursor'](_0x56d69b){const _0x1707cb=_0x4a9aaf,{unitID:_0x331f39,memberID:_0x76e25,textRanges:_0x22c211}=_0x56d69b,_0x34aa5e=we(_0x22c211);if(_0x34aa5e==='')return;const _0x48313c={'unitID':_0x331f39,'memberID':_0x76e25,'selection':_0x34aa5e};this['_collabCursorState$'][_0x1707cb(0x30c)](_0x48313c);}}var Ze=Object[_0x4a9aaf(0x36e)],Qe=(_0x348181,_0x134165,_0x56983f,_0x391b85)=>{const _0x1c9bcc=_0x4a9aaf;for(var _0x36362d=_0x391b85>0x1?void 0x0:_0x391b85?Ze(_0x134165,_0x56983f):_0x134165,_0x186906=_0x348181[_0x1c9bcc(0x1bc)]-0x1,_0x5885db;_0x186906>=0x0;_0x186906--)(_0x5885db=_0x348181[_0x186906])&&(_0x36362d=_0x5885db(_0x36362d)||_0x36362d);return _0x36362d;},L=(_0x1b2137,_0xcbde42)=>(_0x548abd,_0x3e2e07)=>_0xcbde42(_0x548abd,_0x3e2e07,_0x1b2137);const et=0x12c,tt=0x64;let fe=class extends a[_0x4a9aaf(0x1dd)]{constructor(_0x36e434,_0x4b67ab,_0x2fab81,_0x554f55,_0x41143a,_0x1cd9ee,_0x453fc3,_0x525758,_0x5d12c3){const _0x612e12=_0x4a9aaf;super(),h(this,_0x612e12(0x1c2),!0x1),h(this,_0x612e12(0x123),!0x1),h(this,_0x612e12(0x324),new d[(_0x612e12(0x172))](new Map())),h(this,'cursorInfo$',this[_0x612e12(0x324)]['asObservable']()),h(this,_0x612e12(0x1a8),new d[(_0x612e12(0x172))]([])),h(this,_0x612e12(0x29d),this[_0x612e12(0x1a8)][_0x612e12(0x10b)](d[_0x612e12(0x2e5)](et))),h(this,_0x612e12(0x2fb),a[_0x612e12(0x121)](_0x1595fa=>{const _0x7f9525=_0x612e12,_0x4da212={'eventID':m[_0x7f9525(0x1b8)][_0x7f9525(0x298)],'data':{'unitID':this[_0x7f9525(0xfd)],'memberID':this[_0x7f9525(0x133)][_0x7f9525(0x124)](),'selection':we(_0x1595fa)}};this[_0x7f9525(0x133)][_0x7f9525(0x30e)](_0x4da212,this['unitID']);},tt)),(this[_0x612e12(0xfd)]=_0x36e434,this[_0x612e12(0x133)]=_0x4b67ab,this['_injector']=_0x2fab81,this[_0x612e12(0x31f)]=_0x554f55,this[_0x612e12(0x112)]=_0x41143a,this['_syncEditingCollabCursorService']=_0x1cd9ee,this[_0x612e12(0x29f)]=_0x453fc3,this[_0x612e12(0x2a8)]=_0x525758,this[_0x612e12(0x164)]=_0x5d12c3);}get[_0x4a9aaf(0x17c)](){const _0x52909f=_0x4a9aaf;return this['_cursorInfo$'][_0x52909f(0x1d3)]();}get[_0x4a9aaf(0x1c8)](){const _0x1a46c8=_0x4a9aaf;return this[_0x1a46c8(0x1a8)]['getValue']();}[_0x4a9aaf(0x362)](){const _0x1442b6=_0x4a9aaf;super['dispose'](),this[_0x1442b6(0x324)]['next'](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x1442b6(0x30c)]([]),this[_0x1442b6(0x1a8)][_0x1442b6(0x2f4)]();}[_0x4a9aaf(0x114)](){const _0x1f5b56=_0x4a9aaf;this[_0x1f5b56(0x123)]||(this[_0x1f5b56(0x123)]=!0x0,this[_0x1f5b56(0x133)][_0x1f5b56(0x331)]['pipe'](d['takeUntil'](this['dispose$']))[_0x1f5b56(0x251)](_0x42fdd5=>{const _0x4e16f0=_0x1f5b56;_0x42fdd5===u['SessionStatus']['ONLINE']?this[_0x4e16f0(0x379)]():this['_toggleOffline']();}),this[_0x1f5b56(0x133)][_0x1f5b56(0x224)][_0x1f5b56(0x10b)](d[_0x1f5b56(0x376)](this[_0x1f5b56(0x27e)]))[_0x1f5b56(0x251)](_0x378c05=>{const _0x2dd0cf=_0x1f5b56,_0x431def=_0x378c05['eventID'];_0x431def===m['CollaborationEvent'][_0x2dd0cf(0x298)]&&this[_0x2dd0cf(0x120)](_0x378c05),_0x431def===m[_0x2dd0cf(0x1b8)][_0x2dd0cf(0x370)]&&this[_0x2dd0cf(0x347)](_0x378c05);}),this[_0x1f5b56(0x2db)](this[_0x1f5b56(0x164)][_0x1f5b56(0x14a)](_0x4c166b=>{const _0x286a2e=_0x1f5b56,_0x58a655=_0x4c166b[_0x286a2e(0x209)];_0x58a655!=null&&this[_0x286a2e(0x1c2)]&&_0x4c166b['id']===Y['SetTextSelectionsOperation']['id']&&_0x58a655[_0x286a2e(0x181)]===this[_0x286a2e(0xfd)]&&_0x58a655['isEditing']===!0x1&&_0x58a655[_0x286a2e(0x167)][_0x286a2e(0x1bc)]>0x0&&this[_0x286a2e(0x2fb)](_0x58a655['ranges']);})),this[_0x1f5b56(0x217)]['collabCursorState$'][_0x1f5b56(0x10b)](d[_0x1f5b56(0x376)](this[_0x1f5b56(0x27e)]))[_0x1f5b56(0x251)](_0x57b552=>{const _0x2d5cc0=_0x1f5b56;if((_0x57b552==null?void 0x0:_0x57b552['unitID'])!==this[_0x2d5cc0(0xfd)])return;const _0x38307d={'eventID':m['CollaborationEvent'][_0x2d5cc0(0x298)],'data':_0x57b552};this[_0x2d5cc0(0x120)](_0x38307d);}),this[_0x1f5b56(0x2db)](this['_commandService']['onCommandExecuted'](_0x5bb5bf=>{const _0x3a4983=_0x1f5b56;if(_0x5bb5bf['params']==null)return;const _0x56aefc=_0x5bb5bf[_0x3a4983(0x209)];if(_0x5bb5bf['id']!==Y['RichTextEditingMutation']['id']||_0x56aefc[_0x3a4983(0x181)]!==this[_0x3a4983(0xfd)])return;const _0x23b421={'id':_0x3a4983(0x2ec),'params':_0x56aefc},_0x4283c8=this[_0x3a4983(0x17c)];for(const [_0x5a2f37,_0x14113f]of _0x4283c8){const _0x445b73={'id':_0x3a4983(0x2ec),'params':{'unitId':this[_0x3a4983(0xfd)],'actions':null,'textRanges':_0x14113f[_0x3a4983(0x167)]}},_0x5ecef9=this[_0x3a4983(0x29f)]['transformMutation'](_0x23b421,_0x445b73,!0x1);if(m[_0x3a4983(0x2de)](_0x5ecef9))throw _0x5ecef9['error'];_0x4283c8[_0x3a4983(0x2b0)](_0x5a2f37,{..._0x14113f,'ranges':_0x5ecef9[_0x3a4983(0x360)][_0x3a4983(0x209)][_0x3a4983(0x2bb)]});}queueMicrotask(()=>{const _0xcfa468=_0x3a4983;this[_0xcfa468(0x324)][_0xcfa468(0x30c)](_0x4283c8);});})));}[_0x4a9aaf(0x120)](_0x490310){const _0x14433a=_0x4a9aaf;var _0x36289b,_0x34897f;const {memberID:_0xe84cbd,selection:_0x49f0d4}=_0x490310[_0x14433a(0x2c3)],_0x202bfd=Je(_0x49f0d4),_0x30cbba=(_0x34897f=(_0x36289b=this[_0x14433a(0x112)][_0x14433a(0x180)](this['unitID'],_0xe84cbd))==null?void 0x0:_0x36289b[_0x14433a(0x322)])!=null?_0x34897f:'Unknown\x20user',_0x101ee6={'color':this[_0x14433a(0x31f)]['assignAColorForMemberID'](_0xe84cbd),'name':_0x30cbba,'ranges':_0x202bfd},_0x1e0a6b=this[_0x14433a(0x17c)];_0x1e0a6b[_0x14433a(0x2b0)](_0xe84cbd,_0x101ee6),this[_0x14433a(0x324)][_0x14433a(0x30c)](_0x1e0a6b);}[_0x4a9aaf(0x347)](_0x161239){const _0x2df661=_0x4a9aaf,{memberID:_0x2040e5}=_0x161239['data'],_0x4f7a8b=this[_0x2df661(0x17c)];_0x4f7a8b[_0x2df661(0x1f0)](_0x2040e5),this[_0x2df661(0x324)][_0x2df661(0x30c)](_0x4f7a8b);}[_0x4a9aaf(0x379)](){const _0x34e4a7=_0x4a9aaf;var _0x3a2e8d;if(this[_0x34e4a7(0x1c2)]=!0x0,((_0x3a2e8d=this[_0x34e4a7(0x2a8)][_0x34e4a7(0x210)]())==null?void 0x0:_0x3a2e8d['getUnitId']())!==this[_0x34e4a7(0xfd)])return;const _0x18fcc4=this[_0x34e4a7(0x372)][_0x34e4a7(0x1ea)](Y['DocSelectionManagerService'])[_0x34e4a7(0x17f)]();Array['isArray'](_0x18fcc4)&&_0x18fcc4[_0x34e4a7(0x1bc)]>0x0&&this[_0x34e4a7(0x2fb)](_0x18fcc4);}[_0x4a9aaf(0x288)](){const _0x309b2a=_0x4a9aaf;this[_0x309b2a(0x1c2)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x4a9aaf(0x1cf)])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u['MemberService'])),L(0x5,a[_0x4a9aaf(0x301)](Ce)),L(0x6,m[_0x4a9aaf(0x34e)]),L(0x7,a[_0x4a9aaf(0x216)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x4a9aaf(0x36e)],it=(_0x5c5696,_0x54cedd,_0x58ed90,_0x5e2c93)=>{const _0x4f0c12=_0x4a9aaf;for(var _0x3e4d70=_0x5e2c93>0x1?void 0x0:_0x5e2c93?st(_0x54cedd,_0x58ed90):_0x54cedd,_0x4e08a7=_0x5c5696[_0x4f0c12(0x1bc)]-0x1,_0x4249ef;_0x4e08a7>=0x0;_0x4e08a7--)(_0x4249ef=_0x5c5696[_0x4e08a7])&&(_0x3e4d70=_0x4249ef(_0x3e4d70)||_0x3e4d70);return _0x3e4d70;},A=(_0x44aaf7,_0x1241e2)=>(_0x1aa7b8,_0x116162)=>_0x1241e2(_0x1aa7b8,_0x116162,_0x44aaf7);const nt=0x12c,rt=0x64,ot=()=>{let _0x1bd553=[],_0x5d61de=!0x1;return _0x1d6e2f=>{_0x1bd553['push'](_0x1d6e2f),_0x5d61de||(_0x5d61de=!0x0,setTimeout(()=>{const _0x29dce9=_0x7693;_0x1bd553[_0x29dce9(0x2ad)](_0x4e3a89=>_0x4e3a89()),_0x1bd553=[],_0x5d61de=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x48fc4a,_0x52ce4a,_0x51d8c4,_0x8d5a01,_0x3a59aa,_0x432406,_0x36742c,_0x461b19){const _0x5a477b=_0x4a9aaf;super(),h(this,_0x5a477b(0x1c2),!0x1),h(this,'_init',!0x1),h(this,_0x5a477b(0x324),new d['BehaviorSubject'](new Map())),h(this,_0x5a477b(0x1de),this[_0x5a477b(0x324)][_0x5a477b(0x280)]()),h(this,_0x5a477b(0x1a8),new d[(_0x5a477b(0x172))]([])),h(this,_0x5a477b(0x29d),this[_0x5a477b(0x1a8)][_0x5a477b(0x10b)](d[_0x5a477b(0x2e5)](nt))),h(this,_0x5a477b(0x2fb),a[_0x5a477b(0x121)]((_0x285d95,_0x4ae57c)=>{const _0xb855d2=_0x5a477b,_0x5dd4e3={'eventID':m[_0xb855d2(0x1b8)][_0xb855d2(0x298)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x285d95,_0x4ae57c[_0xb855d2(0x189)])}};this[_0xb855d2(0x133)]['send'](_0x5dd4e3,this[_0xb855d2(0xfd)]);},rt)),(this[_0x5a477b(0xfd)]=_0x48fc4a,this[_0x5a477b(0x133)]=_0x52ce4a,this['_injector']=_0x51d8c4,this[_0x5a477b(0x31f)]=_0x8d5a01,this[_0x5a477b(0x112)]=_0x3a59aa,this['_univerInstanceService']=_0x432406,this[_0x5a477b(0x164)]=_0x36742c,this[_0x5a477b(0x230)]=_0x461b19);}get[_0x4a9aaf(0x17c)](){const _0x210719=_0x4a9aaf;return this[_0x210719(0x324)]['getValue']();}get['roomMembers'](){const _0x485f8b=_0x4a9aaf;return this[_0x485f8b(0x1a8)]['getValue']();}[_0x4a9aaf(0x362)](){const _0x206979=_0x4a9aaf;super[_0x206979(0x362)](),this['_cursorInfo$'][_0x206979(0x30c)](new Map()),this[_0x206979(0x324)][_0x206979(0x2f4)](),this[_0x206979(0x1a8)][_0x206979(0x30c)]([]),this['_roomMembers$'][_0x206979(0x2f4)]();}['init'](){const _0x5b0123=_0x4a9aaf;this[_0x5b0123(0x123)]||(this[_0x5b0123(0x123)]=!0x0,this[_0x5b0123(0x133)][_0x5b0123(0x331)][_0x5b0123(0x10b)](d[_0x5b0123(0x376)](this['dispose$']))[_0x5b0123(0x251)](_0x54a577=>{const _0x33f137=_0x5b0123;_0x54a577===u[_0x33f137(0x193)]['ONLINE']?this[_0x33f137(0x379)]():this['_toggleOffline']();}),this[_0x5b0123(0x133)][_0x5b0123(0x224)][_0x5b0123(0x10b)](d[_0x5b0123(0x376)](this[_0x5b0123(0x27e)]))['subscribe'](_0x3da70c=>{const _0x28b9da=_0x5b0123,_0x1de484=_0x3da70c[_0x28b9da(0x359)];_0x1de484===m[_0x28b9da(0x1b8)][_0x28b9da(0x298)]&&this[_0x28b9da(0x120)](_0x3da70c),_0x1de484===m[_0x28b9da(0x1b8)]['USERS_LEAVE']&&this[_0x28b9da(0x347)](_0x3da70c);}),this[_0x5b0123(0xf8)](),this['disposeWithMe'](this[_0x5b0123(0x164)][_0x5b0123(0x14a)](_0x33ed50=>{const _0x4f4937=_0x5b0123;if(this[_0x4f4937(0x1c2)]&&_0x33ed50['id']===g[_0x4f4937(0x225)]['id']&&_0x33ed50['params']['unitId']===this[_0x4f4937(0xfd)]){const _0xb2a077=_0x33ed50[_0x4f4937(0x209)];this[_0x4f4937(0x2fb)](_0xb2a077[_0x4f4937(0x260)],_0xb2a077[_0x4f4937(0x157)][0x0]);}})));}[_0x4a9aaf(0x120)](_0x5250f6){const _0xc84123=_0x4a9aaf;var _0xb42275,_0x447dc6;const {memberID:_0x4846d4,selection:_0x4405b7}=_0x5250f6[_0xc84123(0x2c3)],{sheetName:_0x221afe,range:_0x348a0a}=Ee[_0xc84123(0x258)](_0x4405b7),_0x41f406={'name':(_0x447dc6=(_0xb42275=this[_0xc84123(0x112)]['getMember'](this[_0xc84123(0xfd)],_0x4846d4))==null?void 0x0:_0xb42275[_0xc84123(0x322)])!=null?_0x447dc6:'Unknown\x20user','range':this[_0xc84123(0x20a)](_0x221afe,_0x348a0a),'sheetID':_0x221afe,'color':this[_0xc84123(0x31f)][_0xc84123(0x23f)](_0x4846d4),'selection':_0x4405b7},_0x4e6d80=this['cursorInfo'];_0x4e6d80[_0xc84123(0x2b0)](_0x4846d4,_0x41f406),this[_0xc84123(0x324)]['next'](_0x4e6d80);}[_0x4a9aaf(0x347)](_0x25b492){const _0x3546a6=_0x4a9aaf,{memberID:_0x53795f}=_0x25b492[_0x3546a6(0x2c3)],_0x49467b=this[_0x3546a6(0x17c)];_0x49467b['delete'](_0x53795f),this['_cursorInfo$'][_0x3546a6(0x30c)](_0x49467b);}[_0x4a9aaf(0x20a)](_0x220983,_0x5b8bdc){const _0x2ef1a4=_0x4a9aaf;var _0x35b2bd,_0x15f727;const _0x5d269c=(_0x15f727=(_0x35b2bd=this[_0x2ef1a4(0x2a8)]['getUniverSheetInstance'](this[_0x2ef1a4(0xfd)]))==null?void 0x0:_0x35b2bd['getSheetBySheetId'](_0x220983))==null?void 0x0:_0x15f727['getMergeData']();return(_0x5d269c==null?void 0x0:_0x5d269c[_0x2ef1a4(0x2fe)](_0x1f31ac=>a['Rectangle'][_0x2ef1a4(0x146)](_0x1f31ac,_0x5b8bdc)))||_0x5b8bdc;}[_0x4a9aaf(0xf8)](){const _0xffc8f3=_0x4a9aaf,_0x141db8=new a[(_0xffc8f3(0x141))](),_0x5d41f6=ot(),_0x39e9eb=()=>{const _0x2e5831=_0xffc8f3;_0x141db8[_0x2e5831(0x362)]();const _0x11ccb3=(_0x4b3960,_0x66f76d,_0x293fee,_0x1b3160)=>{const _0x43d9e3=_0x2e5831;let _0x13737c=[];switch(_0x4b3960['id']){case g['EffectRefRangId'][_0x43d9e3(0x173)]:{_0x13737c=g[_0x43d9e3(0x270)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)][_0x43d9e3(0x309)]:{_0x13737c=g['handleDeleteRangeMoveUp'](_0x4b3960,_0x1b3160);break;}case g['EffectRefRangId'][_0x43d9e3(0x129)]:{_0x13737c=g[_0x43d9e3(0x37f)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)]['InsertRangeMoveDownCommandId']:{_0x13737c=g[_0x43d9e3(0x2c9)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)]['InsertRangeMoveRightCommandId']:{_0x13737c=g[_0x43d9e3(0x1ef)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)][_0x43d9e3(0x174)]:{_0x13737c=g[_0x43d9e3(0x1ed)](_0x4b3960,_0x1b3160);break;}case g['EffectRefRangId'][_0x43d9e3(0x248)]:{_0x13737c=g['handleMoveRange'](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)]['RemoveColCommandId']:{_0x13737c=g[_0x43d9e3(0x2d4)](_0x4b3960,_0x1b3160);break;}case g[_0x43d9e3(0x2e2)]['RemoveRowCommandId']:{_0x13737c=g['handleIRemoveRow'](_0x4b3960,_0x1b3160);break;}}const _0x492214=g[_0x43d9e3(0x1d8)](_0x13737c,_0x1b3160),_0x141e54=this[_0x43d9e3(0x17c)]['get'](_0x66f76d);if(_0x141e54&&_0x492214){const _0x4a3e22={..._0x141e54,'range':_0x492214};this[_0x43d9e3(0x17c)][_0x43d9e3(0x2b0)](_0x66f76d,_0x4a3e22),_0x5d41f6(()=>{const _0x12776f=_0x43d9e3,_0x122461=this[_0x12776f(0x230)][_0x12776f(0x190)](_0x492214,_0x23e7a7=>(_0x122461[_0x12776f(0x362)](),_0x11ccb3(_0x23e7a7,_0x66f76d,_0x293fee,_0x492214)));_0x141db8[_0x12776f(0x1ce)](_0x122461);});}return{'redos':[],'undos':[]};};this[_0x2e5831(0x17c)][_0x2e5831(0x2ad)]((_0x2f0734,_0x51b262)=>{const _0xb3ccf1=_0x2e5831,{range:_0x4a42cf,sheetID:_0x2c0b3f}=_0x2f0734,_0x223ecc=this[_0xb3ccf1(0x230)][_0xb3ccf1(0x190)](_0x4a42cf,_0x23d45a=>(_0x223ecc[_0xb3ccf1(0x362)](),_0x11ccb3(_0x23d45a,_0x51b262,_0x2c0b3f,_0x4a42cf)));_0x141db8[_0xb3ccf1(0x1ce)](_0x223ecc);});};this[_0xffc8f3(0x2db)](a['toDisposable'](this[_0xffc8f3(0x324)][_0xffc8f3(0x251)](()=>{_0x39e9eb();})));}[_0x4a9aaf(0x379)](){const _0x4e5c64=_0x4a9aaf;var _0x29b237,_0x15d800;if(this[_0x4e5c64(0x1c2)]=!0x0,((_0x29b237=this[_0x4e5c64(0x2a8)][_0x4e5c64(0x210)]())==null?void 0x0:_0x29b237[_0x4e5c64(0x182)]())!==this[_0x4e5c64(0xfd)])return;const _0xef88d3=(_0x15d800=this[_0x4e5c64(0x372)]['get'](g[_0x4e5c64(0x273)])['getCurrentSelections']())==null?void 0x0:_0x15d800[0x0],_0x33c70b=this[_0x4e5c64(0x2a8)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x4e5c64(0x278)])[_0x4e5c64(0x19f)]();_0xef88d3&&_0x33c70b&&this[_0x4e5c64(0x2fb)](_0x33c70b[_0x4e5c64(0x37a)](),_0xef88d3);}[_0x4a9aaf(0x288)](){const _0x5c04e9=_0x4a9aaf;this[_0x5c04e9(0x1c2)]=!0x1;}};Se=it([A(0x2,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),A(0x3,a[_0x4a9aaf(0x301)](me)),A(0x4,a['Inject'](u[_0x4a9aaf(0x2aa)])),A(0x5,a[_0x4a9aaf(0x216)]),A(0x6,a[_0x4a9aaf(0x387)]),A(0x7,a[_0x4a9aaf(0x301)](g[_0x4a9aaf(0x11b)]))],Se);var at=Object[_0x4a9aaf(0x36e)],ct=(_0x413ff8,_0x435e60,_0x539197,_0x241d36)=>{const _0x36dbaa=_0x4a9aaf;for(var _0x3662e8=_0x241d36>0x1?void 0x0:_0x241d36?at(_0x435e60,_0x539197):_0x435e60,_0x5816fc=_0x413ff8[_0x36dbaa(0x1bc)]-0x1,_0xd3227c;_0x5816fc>=0x0;_0x5816fc--)(_0xd3227c=_0x413ff8[_0x5816fc])&&(_0x3662e8=_0xd3227c(_0x3662e8)||_0x3662e8);return _0x3662e8;},ie=(_0x5ee514,_0x20159e)=>(_0x28c6f2,_0x2160bc)=>_0x20159e(_0x28c6f2,_0x2160bc,_0x5ee514);let x=class extends a[_0x4a9aaf(0x1dd)]{constructor(_0x4fcb69,_0x233685,_0x421988){const _0x1cfed8=_0x4a9aaf;super(),h(this,_0x1cfed8(0x302),new Map()),h(this,_0x1cfed8(0x14e),new d[(_0x1cfed8(0x175))]()),(this[_0x1cfed8(0x2a8)]=_0x4fcb69,this[_0x1cfed8(0x372)]=_0x233685,this[_0x1cfed8(0x25b)]=_0x421988,this[_0x1cfed8(0x123)]());}[_0x4a9aaf(0x362)](){const _0x587449=_0x4a9aaf;super[_0x587449(0x362)](),this[_0x587449(0x14e)][_0x587449(0x2f4)](),this[_0x587449(0x302)]['forEach'](_0x5ccddb=>_0x5ccddb[_0x587449(0x362)]());}[_0x4a9aaf(0x28c)](_0x3ceec0){const _0x4d39d0=_0x4a9aaf;return this[_0x4d39d0(0x302)][_0x4d39d0(0x1d1)](_0x3ceec0)?this['_entities'][_0x4d39d0(0x1ea)](_0x3ceec0)['cursorInfo$']:this[_0x4d39d0(0x14e)]['pipe'](d['filter'](_0x1e9fdc=>_0x1e9fdc['unitID']===_0x3ceec0),d[_0x4d39d0(0x354)](_0x3f2323=>_0x3f2323[_0x4d39d0(0x1de)]));}['_init'](){const _0x2c2ef8=_0x4a9aaf;this[_0x2c2ef8(0x2a8)][_0x2c2ef8(0x1f3)](a['UniverInstanceType'][_0x2c2ef8(0x278)])[_0x2c2ef8(0x10b)](d['takeUntil'](this[_0x2c2ef8(0x27e)]))[_0x2c2ef8(0x251)](async _0x43e7e7=>{const _0x4076b2=_0x2c2ef8,_0x1a44b1=_0x43e7e7['getUnitId'](),_0x559c94=await this['_startSheetCollabCursor'](_0x1a44b1);this[_0x4076b2(0x14e)][_0x4076b2(0x30c)](_0x559c94),this['_entities'][_0x4076b2(0x2b0)](_0x1a44b1,_0x559c94);}),this[_0x2c2ef8(0x2a8)][_0x2c2ef8(0x1f3)](a[_0x2c2ef8(0x389)][_0x2c2ef8(0xff)])[_0x2c2ef8(0x10b)](d[_0x2c2ef8(0x376)](this['dispose$']))[_0x2c2ef8(0x10b)](d[_0x2c2ef8(0x344)](_0x65b62c=>!_0x65b62c[_0x2c2ef8(0x182)]()[_0x2c2ef8(0x166)]('__')))[_0x2c2ef8(0x251)](async _0x3cdf25=>{const _0x13587e=_0x2c2ef8,_0x3edc77=_0x3cdf25[_0x13587e(0x182)](),_0x3fdafc=await this[_0x13587e(0x2c1)](_0x3edc77);this[_0x13587e(0x14e)][_0x13587e(0x30c)](_0x3fdafc),this[_0x13587e(0x302)][_0x13587e(0x2b0)](_0x3edc77,_0x3fdafc);}),d[_0x2c2ef8(0x2c0)](this[_0x2c2ef8(0x2a8)]['getTypeOfUnitDisposed$'](a[_0x2c2ef8(0x389)][_0x2c2ef8(0xff)]),this[_0x2c2ef8(0x2a8)][_0x2c2ef8(0x1c7)](a[_0x2c2ef8(0x389)][_0x2c2ef8(0x278)]))['pipe'](d['takeUntil'](this[_0x2c2ef8(0x27e)]))[_0x2c2ef8(0x251)](_0x51f96a=>{const _0x5a3d2f=_0x2c2ef8,_0x3fff31=_0x51f96a[_0x5a3d2f(0x182)](),_0x766a61=this['_entities']['get'](_0x3fff31);_0x766a61&&(_0x766a61[_0x5a3d2f(0x362)](),this[_0x5a3d2f(0x302)]['delete'](_0x3fff31));});}async[_0x4a9aaf(0x168)](_0x1b0935){const _0x3aafc4=_0x4a9aaf,_0x288826=await this[_0x3aafc4(0x25b)][_0x3aafc4(0x26e)](_0x1b0935),_0x43858e=this[_0x3aafc4(0x372)][_0x3aafc4(0x16a)](Se,_0x1b0935,_0x288826);return _0x43858e[_0x3aafc4(0x114)](),_0x43858e;}async[_0x4a9aaf(0x2c1)](_0x3f56af){const _0x55fe38=_0x4a9aaf,_0x17e3d5=await this[_0x55fe38(0x25b)]['requireSession'](_0x3f56af),_0x1c1265=this['_injector']['createInstance'](fe,_0x3f56af,_0x17e3d5);return _0x1c1265[_0x55fe38(0x114)](),_0x1c1265;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),ie(0x2,a['Inject'](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4ec4f0,_0x259ed3){const _0x95c480=_0x4a9aaf;let {radius:_0x2759a9,width:_0x2689ee,height:_0x30677e}=_0x259ed3;_0x2759a9=_0x2759a9!=null?_0x2759a9:0x0,_0x2689ee=_0x2689ee!=null?_0x2689ee:0x1e,_0x30677e=_0x30677e!=null?_0x30677e:0x1e;let _0x28f75e=0x0,_0x1adb14=0x0,_0x277f6b=0x0;_0x28f75e=_0x1adb14=_0x277f6b=Math[_0x95c480(0x2da)](_0x2759a9,_0x2689ee/0x2,_0x30677e/0x2),_0x4ec4f0[_0x95c480(0x350)](),_0x4ec4f0[_0x95c480(0x285)](_0x28f75e,0x0),_0x4ec4f0[_0x95c480(0x177)](_0x2689ee-_0x1adb14,0x0),_0x4ec4f0['arc'](_0x2689ee-_0x1adb14,_0x1adb14,_0x1adb14,Math['PI']*0x3/0x2,0x0,!0x1),_0x4ec4f0['lineTo'](_0x2689ee,_0x30677e-_0x277f6b),_0x4ec4f0[_0x95c480(0x26c)](_0x2689ee-_0x277f6b,_0x30677e-_0x277f6b,_0x277f6b,0x0,Math['PI']/0x2,!0x1),_0x4ec4f0['lineTo'](0x0,_0x30677e),_0x4ec4f0[_0x95c480(0x177)](0x0,_0x28f75e),_0x4ec4f0[_0x95c480(0x26c)](_0x28f75e,_0x28f75e,_0x28f75e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4ec4f0[_0x95c480(0x23e)](),_0x259ed3[_0x95c480(0x306)]&&(_0x4ec4f0['save'](),_0x4ec4f0[_0x95c480(0x1df)]=_0x259ed3[_0x95c480(0x306)],_0x259ed3[_0x95c480(0x2f7)]===_0x95c480(0x268)?_0x4ec4f0['fill']('evenodd'):_0x4ec4f0['fill'](),_0x4ec4f0[_0x95c480(0x2fd)]());}class ee extends p[_0x4a9aaf(0xfa)]{constructor(_0x39d66c,_0x47c83f){const _0x4fb331=_0x4a9aaf;super(_0x39d66c,_0x47c83f),h(this,_0x4fb331(0x1c4)),h(this,_0x4fb331(0x1a9)),(this[_0x4fb331(0x1c4)]=_0x47c83f==null?void 0x0:_0x47c83f[_0x4fb331(0x1c4)],this[_0x4fb331(0x1a9)]=_0x47c83f==null?void 0x0:_0x47c83f[_0x4fb331(0x1a9)]);}static[_0x4a9aaf(0x2c5)](_0x157d87,_0x33595c){const _0x1ecbaa=_0x4a9aaf,{text:_0x57a126,color:_0x56de66}=_0x33595c;_0x157d87[_0x1ecbaa(0x2d7)](),_0x157d87[_0x1ecbaa(0x239)]=_0x1ecbaa(0x1f4);const _0x4c7598=_0x157d87[_0x1ecbaa(0x381)](_0x57a126)[_0x1ecbaa(0x222)],_0x2190a3=Math['min'](_0x4c7598+0x2*ne,Re);_t(_0x157d87,{'height':K,'radius':0x4,'width':_0x2190a3,'fill':_0x56de66}),_0x157d87['fillStyle']=_0x1ecbaa(0x26d);const _0x4921ca=ne,_0x4855d8=K-lt,_0xaf9723=Re-0x2*ne;if(_0x4c7598>_0xaf9723){let _0x210453='',_0x5ddb9b=0x0;for(const _0x4b8f2b of _0x57a126){const _0x11d3ce=_0x157d87['measureText'](_0x4b8f2b)[_0x1ecbaa(0x222)];if(_0x5ddb9b+_0x11d3ce<=_0xaf9723-_0x157d87[_0x1ecbaa(0x381)](_0x1ecbaa(0x254))[_0x1ecbaa(0x222)])_0x210453+=_0x4b8f2b,_0x5ddb9b+=_0x11d3ce;else{_0x210453+=_0x1ecbaa(0x254);break;}}_0x157d87[_0x1ecbaa(0x104)](_0x210453,_0x4921ca,_0x4855d8);}else _0x157d87[_0x1ecbaa(0x104)](_0x57a126,_0x4921ca,_0x4855d8);_0x157d87[_0x1ecbaa(0x2fd)]();}[_0x4a9aaf(0x338)](_0xff46ae){const _0x538bef=_0x4a9aaf;ee[_0x538bef(0x2c5)](_0xff46ae,this);}}const re=_0x4a9aaf(0x2ce),ht=_0x4a9aaf(0x19c),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x4a9aaf(0x2f8);class De{constructor(_0x4f924a,_0x515bf2,_0x39cbad,_0x2598a6){const _0xb6d191=_0x4a9aaf;h(this,'_shapes',[]),h(this,_0xb6d191(0x196),null),h(this,_0xb6d191(0x178),null),h(this,'_anchorDot',null),h(this,_0xb6d191(0x11a),null),h(this,_0xb6d191(0x1fa),null),(this[_0xb6d191(0x326)]=_0x4f924a,this[_0xb6d191(0x369)]=_0x515bf2,this[_0xb6d191(0x14f)]=_0x39cbad,this[_0xb6d191(0x2b8)]=_0x2598a6,this[_0xb6d191(0x357)]());}set[_0x4a9aaf(0x250)](_0xf0ce29){const _0x200dfb=_0x4a9aaf;_0xf0ce29?(this['_anchorDot']&&this[_0x200dfb(0x156)][_0x200dfb(0x1c9)](),this[_0x200dfb(0x178)]&&this[_0x200dfb(0x178)][_0x200dfb(0x22f)]()):(this[_0x200dfb(0x156)]&&this['_anchorDot'][_0x200dfb(0x22f)](),this[_0x200dfb(0x178)]&&this[_0x200dfb(0x178)]['hide']());}['dispose'](){const _0x4daed4=_0x4a9aaf;for(const _0xd63e5c of this[_0x4daed4(0x29a)])_0xd63e5c['dispose']();this[_0x4daed4(0x178)]&&this[_0x4daed4(0x178)][_0x4daed4(0x362)](),this[_0x4daed4(0x156)]&&this[_0x4daed4(0x156)][_0x4daed4(0x362)](),this[_0x4daed4(0x196)]&&this[_0x4daed4(0x196)][_0x4daed4(0x362)](),this[_0x4daed4(0x1fa)]&&this['_eventUnsubscribe']();}[_0x4a9aaf(0x357)](){const _0x5d5ec7=_0x4a9aaf;var _0x27adef;const {_docSkeleton:_0xabfcba,_document:_0x441a81}=this,{color:_0x5b061e,name:_0x556ffc,ranges:_0x583278}=this['_cursor'],_0x477eb4=_0x441a81[_0x5d5ec7(0x30f)](),{docsLeft:_0x22d42f,docsTop:_0x45e052}=_0x477eb4,_0x3469e1=new b[(_0x5d5ec7(0x321))](_0x477eb4,_0xabfcba);for(const {startOffset:_0x15c3f0,endOffset:_0x4a408c,rangeType:_0x2968b0,segmentId:_0x3897c0,segmentPage:_0x9713b0,collapsed:_0x3de13e,isActive:_0x35e5df}of _0x583278){const _0x4b8906=_0xabfcba[_0x5d5ec7(0x1e9)](_0x15c3f0,!0x0,_0x3897c0,_0x9713b0);let _0x51552e=_0xabfcba[_0x5d5ec7(0x1e9)](_0x4a408c,!0x0,_0x3897c0,_0x9713b0);if(_0x51552e==null&&(_0x51552e=_0xabfcba[_0x5d5ec7(0x1e9)](_0x4a408c-0x1,!0x1,_0x3897c0,_0x9713b0)),_0x35e5df){const {contentBoxPointGroup:_0x199fd3}=_0x3469e1[_0x5d5ec7(0x1be)](_0x51552e,_0x51552e);if(_0x199fd3['length']===0x0)continue;this[_0x5d5ec7(0x17e)](_0x5b061e,_0x199fd3,_0x22d42f,_0x45e052,_0x556ffc),this[_0x5d5ec7(0x1fa)]=this[_0x5d5ec7(0x147)]();}if(_0x4b8906&&_0x51552e){if(_0x2968b0===a[_0x5d5ec7(0x23a)]['RECT']){const _0x365893=new b[(_0x5d5ec7(0x1d0))](_0x477eb4,_0xabfcba),{pointGroup:_0x30be05}=(_0x27adef=_0x365893[_0x5d5ec7(0x1be)](_0x4b8906,_0x51552e))!=null?_0x27adef:{};if(_0x30be05==null||_0x30be05[_0x5d5ec7(0x1bc)]===0x0)continue;this['_drawRectRange'](_0x5b061e,_0x30be05,_0x22d42f,_0x45e052);}else{if(!_0x3de13e){const {borderBoxPointGroup:_0x5b3102}=_0x3469e1[_0x5d5ec7(0x1be)](_0x4b8906,_0x51552e);if(_0x5b3102[_0x5d5ec7(0x1bc)]===0x0)continue;this[_0x5d5ec7(0x207)](_0x5b061e,_0x5b3102,_0x22d42f,_0x45e052);}}}}}['_drawAnchor'](_0x58a8a1,_0x548ee4,_0x389cd9,_0x2c94cf,_0x186d9d){const _0x318fcb=_0x4a9aaf,_0x5a2ff9=this[_0x318fcb(0x31c)](_0x548ee4),{left:_0x260442,top:_0x17e529,height:_0xdf8238}=_0x5a2ff9,_0x398eb8=this[_0x318fcb(0x27b)](),_0x2bd3bb=ft/_0x398eb8,_0x31c6bc=new p[(_0x318fcb(0x1fd))](re+a[_0x318fcb(0x20d)]['generateRandomId'](k),{'left':_0x260442+_0x389cd9-_0x2bd3bb,'top':_0x17e529+_0x2c94cf,'height':_0xdf8238,'width':dt,'fill':_0x58a8a1||p[_0x318fcb(0x18a)](a[_0x318fcb(0x1fc)][_0x318fcb(0x246)],0x0),'strokeWidth':_0x2bd3bb,'stroke':St,'evented':!0x0});this[_0x318fcb(0x196)]=_0x31c6bc,this['_scene'][_0x318fcb(0x36c)](_0x31c6bc,b[_0x318fcb(0x275)]);const _0x4cb245=new p[(_0x318fcb(0x1fd))](re+a[_0x318fcb(0x20d)][_0x318fcb(0x323)](k),{'left':_0x260442+_0x389cd9-_0x2bd3bb,'top':_0x17e529+_0x2c94cf-oe/0x2,'height':oe,'width':oe,'fill':_0x58a8a1||p[_0x318fcb(0x18a)](a[_0x318fcb(0x1fc)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x58a8a1||p[_0x318fcb(0x18a)](a[_0x318fcb(0x1fc)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x4cb245,this[_0x318fcb(0x369)]['addObject'](_0x4cb245,b[_0x318fcb(0x275)]);const _0x46033b=new ee(re+a[_0x318fcb(0x20d)]['generateRandomId'](k),{'left':_0x260442+_0x389cd9-_0x2bd3bb,'top':_0x17e529+_0x2c94cf-K,'text':_0x186d9d,'color':_0x58a8a1});this[_0x318fcb(0x178)]=_0x46033b,this[_0x318fcb(0x369)]['addObject'](_0x46033b,b[_0x318fcb(0x275)]),this[_0x318fcb(0x250)]=!0x1;}[_0x4a9aaf(0x147)](){const _0x3f3f96=_0x4a9aaf,_0x4f2b90=this[_0x3f3f96(0x196)][_0x3f3f96(0x1e0)][_0x3f3f96(0x371)](()=>{this['_hover']=!0x0;}),_0x391050=this[_0x3f3f96(0x196)][_0x3f3f96(0x33c)][_0x3f3f96(0x371)](()=>{const _0x56ea91=_0x3f3f96;this[_0x56ea91(0x11a)]&&clearTimeout(this[_0x56ea91(0x11a)]),this[_0x56ea91(0x11a)]=setTimeout(()=>{const _0x53bdbc=_0x56ea91;this[_0x53bdbc(0x250)]=!0x1;},0x7d0);});return()=>{const _0x5de81b=_0x3f3f96;_0x4f2b90[_0x5de81b(0x161)](),_0x391050[_0x5de81b(0x161)]();};}[_0x4a9aaf(0x207)](_0x196f1a,_0x54129b,_0x573bf1,_0x2e8376){const _0x4e0eee=_0x4a9aaf,_0x3cb4c6=new a[(_0x4e0eee(0x1f5))](_0x196f1a)[_0x4e0eee(0x2eb)](0.2)['toRgbString'](),_0x1e658c=new p[(_0x4e0eee(0x25e))](ht+a[_0x4e0eee(0x20d)][_0x4e0eee(0x323)](k),{'pointsGroup':_0x54129b,'fill':_0x3cb4c6||p[_0x4e0eee(0x18a)](a[_0x4e0eee(0x1fc)][_0x4e0eee(0x246)],0.2),'left':_0x573bf1,'top':_0x2e8376,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4e0eee(0x29a)]['push'](_0x1e658c),this[_0x4e0eee(0x369)][_0x4e0eee(0x36c)](_0x1e658c,b[_0x4e0eee(0x275)]);}[_0x4a9aaf(0x153)](_0x37684b,_0x4e3e80,_0x147cc0,_0x4582a7){const _0xb9949f=_0x4a9aaf,_0x244ce0=new a[(_0xb9949f(0x1f5))](_0x37684b)[_0xb9949f(0x2eb)](0.2)[_0xb9949f(0x11e)](),_0x299db7=new p[(_0xb9949f(0x25e))](ut+a['Tools'][_0xb9949f(0x323)](k),{'pointsGroup':_0x4e3e80,'fill':_0x244ce0||p[_0xb9949f(0x18a)](a[_0xb9949f(0x1fc)][_0xb9949f(0x246)],0.2),'left':_0x147cc0,'top':_0x4582a7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x299db7),this['_scene'][_0xb9949f(0x36c)](_0x299db7,b[_0xb9949f(0x275)]);}[_0x4a9aaf(0x31c)](_0x5c91a7){const _0x324094=_0x5c91a7[0x0],_0x18453d=_0x324094[0x0],_0x439665=_0x324094[0x2],{x:_0x1573c1,y:_0x25b850}=_0x18453d,{x:_0xccb0b,y:_0x50f07c}=_0x439665;return{'left':_0x1573c1,'top':_0x25b850,'width':_0xccb0b-_0x1573c1,'height':_0x50f07c-_0x25b850};}['_getScale'](){const _0x5d8371=_0x4a9aaf,{scaleX:_0x3cfede,scaleY:_0x52d22a}=this['_scene'][_0x5d8371(0x1ac)]();return Math[_0x5d8371(0x148)](_0x3cfede,_0x52d22a);}}var It=Object[_0x4a9aaf(0x36e)],vt=(_0x236bae,_0x7b9d83,_0x31ab62,_0x5d02f4)=>{const _0x3231f7=_0x4a9aaf;for(var _0x321063=_0x5d02f4>0x1?void 0x0:_0x5d02f4?It(_0x7b9d83,_0x31ab62):_0x7b9d83,_0x32b3ca=_0x236bae[_0x3231f7(0x1bc)]-0x1,_0x35b95b;_0x32b3ca>=0x0;_0x32b3ca--)(_0x35b95b=_0x236bae[_0x32b3ca])&&(_0x321063=_0x35b95b(_0x321063)||_0x321063);return _0x321063;},W=(_0x3b9157,_0x55873f)=>(_0x2397a2,_0xef1ca4)=>_0x55873f(_0x2397a2,_0xef1ca4,_0x3b9157);function _0x7693(_0x4ab6a6,_0x2df536){const _0x316ae3=_0x316a();return _0x7693=function(_0x7693b0,_0x4c7931){_0x7693b0=_0x7693b0-0xf4;let _0x4c9b31=_0x316ae3[_0x7693b0];return _0x4c9b31;},_0x7693(_0x4ab6a6,_0x2df536);}let Ie=class extends a[_0x4a9aaf(0x1dd)]{constructor(_0x3dc04c,_0x5cd273,_0x4b36a4,_0x31ec07,_0x8c7611){const _0x41cffa=_0x4a9aaf;super(),h(this,_0x41cffa(0x283),[]),h(this,'_cursors',[]),(this[_0x41cffa(0x2a7)]=_0x3dc04c,this['_docSkeletonManagerService']=_0x5cd273,this[_0x41cffa(0x111)]=_0x4b36a4,this[_0x41cffa(0x164)]=_0x31ec07,this['_themeService']=_0x8c7611,this['_init']());}[_0x4a9aaf(0x123)](){const _0x11e566=_0x4a9aaf,_0x5841ab=this[_0x11e566(0x2a7)]['unitId'],_0x445cbe=this['_docSkeletonManagerService'];this[_0x11e566(0x2db)](d[_0x11e566(0x243)]([this[_0x11e566(0x111)][_0x11e566(0x28c)](_0x5841ab),this[_0x11e566(0x287)]['currentTheme$']])['pipe']($['map'](([_0x4311cf,_0x3878ef])=>({'skeleton':_0x445cbe[_0x11e566(0x346)](),'cursors':[..._0x4311cf[_0x11e566(0x1d2)]()][_0x11e566(0x35a)](_0x16d49b=>({..._0x16d49b,'color':this[_0x11e566(0x287)][_0x11e566(0x1e6)](_0x16d49b[_0x11e566(0x1c4)])}))})))['subscribe'](_0x12edec=>{const _0x4b80c1=_0x11e566;if(this[_0x4b80c1(0x18c)](),_0x12edec){const {skeleton:_0x3b9781,cursors:_0x58f3a6}=_0x12edec;this[_0x4b80c1(0x32a)](_0x3b9781,_0x58f3a6);}})),this[_0x11e566(0x365)](),this[_0x11e566(0x187)]();}['_updateCollabCursors'](_0x2487a2,_0x116c13){const _0x548749=_0x4a9aaf,{scene:_0x1aa213,mainComponent:_0x594b64}=this[_0x548749(0x2a7)],_0x220d43=_0x116c13['map'](_0x3486f2=>new De(_0x3486f2,_0x1aa213,_0x2487a2,_0x594b64));this[_0x548749(0x283)]=_0x220d43,this['_cursors']=_0x116c13;}[_0x4a9aaf(0x22e)](){const _0x20b232=_0x4a9aaf;this['_removeCollabCursors']();const {scene:_0x55335b,mainComponent:_0x172024}=this['_context'],_0x4b732f=this[_0x20b232(0x35c)][_0x20b232(0x346)](),_0x1aecc6=this[_0x20b232(0x235)]['map'](_0x2caeaa=>new De(_0x2caeaa,_0x55335b,_0x4b732f,_0x172024));this['_cursorShapes']=_0x1aecc6;}[_0x4a9aaf(0x18c)](){const _0x10fb06=_0x4a9aaf;this[_0x10fb06(0x283)][_0x10fb06(0x2ad)](_0x31b4f5=>_0x31b4f5[_0x10fb06(0x362)]()),this[_0x10fb06(0x283)]=[];}[_0x4a9aaf(0x187)](){const _0xd68b7d=_0x4a9aaf,_0x1594cb=[b[_0xd68b7d(0x202)]['id']];this[_0xd68b7d(0x2db)](this[_0xd68b7d(0x164)][_0xd68b7d(0x14a)](_0x543ece=>{const _0x23670d=_0xd68b7d;_0x1594cb[_0x23670d(0x343)](_0x543ece['id'])&&_0x543ece[_0x23670d(0x209)][_0x23670d(0x181)]===this[_0x23670d(0x2a7)][_0x23670d(0x181)]&&this[_0x23670d(0x22e)]();}));}[_0x4a9aaf(0x365)](){const _0x549ccc=_0x4a9aaf;this[_0x549ccc(0x2db)](a[_0x549ccc(0x16f)](this['_context'][_0x549ccc(0x34a)][_0x549ccc(0xfc)])[_0x549ccc(0x10b)]($[_0x549ccc(0x344)](_0x49f4b1=>_0x49f4b1[_0x549ccc(0x103)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x549ccc(0x162)]),$[_0x549ccc(0x155)](0x10))[_0x549ccc(0x251)](()=>{const _0x508ab5=_0x549ccc;this[_0x508ab5(0x22e)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x4a9aaf(0x23d)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x4a9aaf(0x387)]),W(0x4,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x36b)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x4a9aaf(0xfa)]{constructor(_0x2731a0,_0xc932d2){const _0x52d594=_0x4a9aaf;super(_0x2731a0,_0xc932d2),h(this,'_color'),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x52d594(0x20e),''),h(this,_0x52d594(0x384),'top'),h(this,_0x52d594(0x25d)),(_0xc932d2&&this[_0x52d594(0x37b)](_0xc932d2),this[_0x52d594(0x1e0)][_0x52d594(0x371)](()=>this[_0x52d594(0x37b)]({'hovered':!0x0})),this[_0x52d594(0x33c)]['subscribeEvent'](()=>this[_0x52d594(0x37b)]({'hovered':!0x1})));}[_0x4a9aaf(0x37b)](_0x5ed52c){const _0x340edd=_0x4a9aaf;var _0x231135,_0x394f2e,_0xc97733,_0x1e55e8,_0x4d0292,_0x31870e;this[_0x340edd(0x38b)]=(_0x231135=_0x5ed52c[_0x340edd(0x1c4)])!=null?_0x231135:this[_0x340edd(0x38b)],this[_0x340edd(0x1d6)]=(_0x394f2e=_0x5ed52c[_0x340edd(0x253)])!=null?_0x394f2e:this[_0x340edd(0x1d6)],this[_0x340edd(0x158)]=(_0xc97733=_0x5ed52c[_0x340edd(0x189)])!=null?_0xc97733:this[_0x340edd(0x158)],this['_name']=(_0x1e55e8=_0x5ed52c[_0x340edd(0x322)])!=null?_0x1e55e8:this[_0x340edd(0x20e)],this['_labelPosition']=(_0x4d0292=_0x5ed52c[_0x340edd(0x17d)])!=null?_0x4d0292:this[_0x340edd(0x384)],this['_backgroundColor']=(_0x31870e=_0x5ed52c['backgroundColor'])!=null?_0x31870e:this[_0x340edd(0x25d)],this[_0x340edd(0x184)]({'width':_0x5ed52c[_0x340edd(0x222)],'height':_0x5ed52c['height']});}[_0x4a9aaf(0x2ed)](_0x42da65){const _0x380eea=_0x4a9aaf,{row:_0x4c2ca1,column:_0x2b37da}=_0x42da65;if(_0x4c2ca1>=this[_0x380eea(0x158)][_0x380eea(0x1af)]&&_0x4c2ca1<=this[_0x380eea(0x158)][_0x380eea(0x151)]&&_0x2b37da>=this[_0x380eea(0x158)][_0x380eea(0x137)]&&_0x2b37da<=this[_0x380eea(0x158)][_0x380eea(0x1f9)]){this[_0x380eea(0x37b)]({'hovered':!0x0});return;}this[_0x380eea(0x37b)]({'hovered':!0x1});}[_0x4a9aaf(0x176)](_0x544f4f){return!0x1;}[_0x4a9aaf(0x338)](_0x1d04a6){const _0x14a845=_0x4a9aaf;p[_0x14a845(0x1fd)][_0x14a845(0x2c5)](_0x1d04a6,{'width':this['width'],'height':this[_0x14a845(0x227)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x1d04a6['save'](),_0x1d04a6['transform'](0x1,0x0,0x0,0x1,this[_0x14a845(0x222)],this[_0x14a845(0x384)]==='bottom'?0x0:-0x14),ee[_0x14a845(0x2c5)](_0x1d04a6,{'text':this[_0x14a845(0x20e)],'color':this['_color']}),_0x1d04a6[_0x14a845(0x2fd)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x5c1223,_0x5d0b8,_0x1d386e,_0x1d2b94)=>{const _0x55c6e0=_0x4a9aaf;for(var _0x40e146=_0x1d2b94>0x1?void 0x0:_0x1d2b94?Ct(_0x5d0b8,_0x1d386e):_0x5d0b8,_0x2f308b=_0x5c1223[_0x55c6e0(0x1bc)]-0x1,_0x247852;_0x2f308b>=0x0;_0x2f308b--)(_0x247852=_0x5c1223[_0x2f308b])&&(_0x40e146=_0x247852(_0x40e146)||_0x40e146);return _0x40e146;},ae=(_0x4bd313,_0x14488d)=>(_0x592db0,_0xc65bb)=>_0x14488d(_0x592db0,_0xc65bb,_0x4bd313);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x21d357,_0x37f4c7,_0x22544a,_0xbb0be1){const _0x4bc080=_0x4a9aaf;super(),h(this,_0x4bc080(0x235),new Set()),h(this,_0x4bc080(0x179),null),(this[_0x4bc080(0x2a7)]=_0x21d357,this[_0x4bc080(0x12a)]=_0x37f4c7,this[_0x4bc080(0x111)]=_0x22544a,this[_0x4bc080(0x287)]=_0xbb0be1,this['_init']());}['_init'](){const _0x437229=_0x4a9aaf;this[_0x437229(0x12a)][_0x437229(0x307)][_0x437229(0x10b)]($[_0x437229(0x376)](this[_0x437229(0x27e)]),$[_0x437229(0x354)](_0x3eeb4d=>{const _0xa62b97=_0x437229;if(_0x3eeb4d){const _0x245269=_0x3eeb4d[_0xa62b97(0x20b)];return d[_0xa62b97(0x243)](this['_collabCursorController'][_0xa62b97(0x28c)](this[_0xa62b97(0x2a7)][_0xa62b97(0x181)]),this['_themeService'][_0xa62b97(0x267)])[_0xa62b97(0x10b)]($[_0xa62b97(0x118)](([_0x1f7df6,_0xa89068])=>{const _0x1cda46=new Map();return _0x1f7df6['forEach']((_0x57ec4f,_0x8b80c5)=>{const _0x248748=_0x7693;if(_0x57ec4f[_0x248748(0x361)]===_0x245269){const _0x239da5={..._0x57ec4f};_0x239da5[_0x248748(0x1c4)]=this['_themeService'][_0x248748(0x1e6)](_0x57ec4f[_0x248748(0x1c4)]),_0x1cda46[_0x248748(0x2b0)](_0x8b80c5,_0x239da5);}}),{'skeleton':_0x3eeb4d,'cursors':_0x1cda46};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x437229(0x251)](({skeleton:_0x346c11,cursors:_0x37f641})=>{const _0x222f12=_0x437229;this['_removeCollabCursors'](),_0x346c11&&this[_0x222f12(0x32a)](_0x346c11,_0x37f641);}),this[_0x437229(0x12a)][_0x437229(0x307)][_0x437229(0x251)](_0x468f9f=>{const _0x54c3e1=_0x437229;if(_0x468f9f==null)return;const {skeleton:_0x351366}=_0x468f9f,{scene:_0x11fb9b}=this[_0x54c3e1(0x2a7)];_0x11fb9b[_0x54c3e1(0x2b5)][_0x54c3e1(0x371)](a[_0x54c3e1(0x121)](_0x1e9f4b=>{const _0x1b0a2a=_0x54c3e1;var _0x17ca1c,_0xdd471d;const {offsetX:_0x5a2af5,offsetY:_0x4a2b87}=_0x1e9f4b,{x:_0x444b3a,y:_0x54f290}=_0x11fb9b[_0x1b0a2a(0x1e7)](p[_0x1b0a2a(0x170)][_0x1b0a2a(0x238)]([_0x5a2af5,_0x4a2b87])),{scaleX:_0x5634f4,scaleY:_0x4c008c}=_0x11fb9b['getAncestorScale'](),_0x5786ab=_0x11fb9b['getViewport'](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x302733=_0x11fb9b[_0x1b0a2a(0x259)](p[_0x1b0a2a(0x170)]['FromArray']([_0x444b3a,_0x54f290]),_0x5786ab),_0x34e4d1=_0x351366[_0x1b0a2a(0x139)](_0x5a2af5,_0x4a2b87,_0x5634f4,_0x4c008c,_0x302733);((_0x17ca1c=this[_0x1b0a2a(0x179)])==null?void 0x0:_0x17ca1c[_0x1b0a2a(0x334)])===_0x34e4d1['column']&&((_0xdd471d=this['_lastPointer'])==null?void 0x0:_0xdd471d['row'])===_0x34e4d1[_0x1b0a2a(0x1bb)]||this[_0x1b0a2a(0x235)][_0x1b0a2a(0x2ad)](_0x38a972=>{_0x38a972['onMouseMove'](_0x34e4d1);});},0x64));});}['_updateCollabCursors'](_0x545fbd,_0xef62ba){const _0x9608ce=_0x4a9aaf;var _0x25e55;const _0x56ff3d=(_0x25e55=this[_0x9608ce(0x12a)]['getCurrent']())==null?void 0x0:_0x25e55['skeleton'];if(!_0x56ff3d)return;const _0x51c0a7=this[_0x9608ce(0x1d9)]();if(!_0x51c0a7)return;this[_0x9608ce(0x235)][_0x9608ce(0x2ad)](_0x3b3a95=>{const _0x774346=_0x9608ce;_0x3b3a95[_0x774346(0x262)]();});const {scene:_0x4696e7}=_0x51c0a7,_0x3cde0c=Et(Array[_0x9608ce(0x37e)](_0xef62ba[_0x9608ce(0x1d2)]()))['map'](_0x2475a9=>{const _0x4bf3b4=_0x9608ce,{color:_0x4d3d8b,range:_0xa19fc,name:_0x18e17c,selection:_0x11ac85,sheetID:_0x5e9470}=_0x2475a9,{startColumn:_0x351029,startRow:_0x42bc1a,endColumn:_0x543541,endRow:_0x41b04c}=_0xa19fc,_0x45d1bd=X['getCoordByCell'](_0x42bc1a,_0x351029,_0x4696e7,_0x56ff3d),_0x3b2115=X[_0x4bf3b4(0x1a5)](_0x41b04c,_0x543541,_0x4696e7,_0x56ff3d),{columnHeaderHeightAndMarginTop:_0x5e9b67}=_0x56ff3d,{startX:_0x29f345,startY:_0x235982}=_0x45d1bd,{endX:_0x56bf4e,endY:_0x52beb3}=_0x3b2115,_0x4e7b0c=_0x56bf4e-_0x29f345,_0x2222c4=_0x52beb3-_0x235982,_0x3000c1={'labelPosition':_0x235982-_0x5e9b67>=K?'top':_0x4bf3b4(0x108),'sheetID':_0x5e9470,'range':_0xa19fc,'color':_0x4d3d8b,'name':_0x18e17c,'selection':_0x11ac85,'left':_0x29f345,'top':_0x235982,'width':_0x4e7b0c,'height':_0x2222c4,'evented':!0x1,'zIndex':bt};return new Pe(_0x18e17c,_0x3000c1);});_0x4696e7[_0x9608ce(0x303)](_0x3cde0c,gt),this[_0x9608ce(0x235)]=new Set(_0x3cde0c);}[_0x4a9aaf(0x18c)](){const _0x59caf7=_0x4a9aaf;var _0x420ce8;(_0x420ce8=this[_0x59caf7(0x235)])==null||_0x420ce8[_0x59caf7(0x2ad)](_0x3c5027=>_0x3c5027[_0x59caf7(0x362)]());}[_0x4a9aaf(0x1d9)](){const _0x5c9f2f=_0x4a9aaf;return X[_0x5c9f2f(0x1e1)](this[_0x5c9f2f(0x2a7)][_0x5c9f2f(0x330)],this[_0x5c9f2f(0x2a7)]);}};ve=pt([ae(0x1,a[_0x4a9aaf(0x301)](X[_0x4a9aaf(0x18d)])),ae(0x2,a[_0x4a9aaf(0x301)](x)),ae(0x3,a[_0x4a9aaf(0x301)](a['ThemeService']))],ve);function Et(_0x5e9238){const _0x500a5c=_0x4a9aaf,_0x5be56d=new Map();return _0x5e9238[_0x500a5c(0x2ad)](_0x4c9dbc=>{const _0x2e76dd=_0x500a5c;if(_0x5be56d[_0x2e76dd(0x1d1)](_0x4c9dbc['selection'])){const _0x5516a4=_0x5be56d[_0x2e76dd(0x1ea)](_0x4c9dbc['selection']);_0x5516a4[_0x2e76dd(0x322)]+=',\x20'+_0x4c9dbc[_0x2e76dd(0x322)];}else _0x5be56d[_0x2e76dd(0x2b0)](_0x4c9dbc[_0x2e76dd(0x325)],_0x4c9dbc);}),Array[_0x500a5c(0x37e)](_0x5be56d['values']());}var E=function(){const _0x200b2b=_0x4a9aaf;return E=Object[_0x200b2b(0x293)]||function(_0x3f2797){const _0x2a5806=_0x200b2b;for(var _0x8c5fed,_0x18e5fb=0x1,_0x25aaac=arguments[_0x2a5806(0x1bc)];_0x18e5fb<_0x25aaac;_0x18e5fb++){_0x8c5fed=arguments[_0x18e5fb];for(var _0x1c6bef in _0x8c5fed)Object[_0x2a5806(0x337)][_0x2a5806(0x245)]['call'](_0x8c5fed,_0x1c6bef)&&(_0x3f2797[_0x1c6bef]=_0x8c5fed[_0x1c6bef]);}return _0x3f2797;},E[_0x200b2b(0x2e6)](this,arguments);},Tt=function(_0x280ae6,_0x36e697){const _0x18d793=_0x4a9aaf;var _0x1824ea={};for(var _0x40640e in _0x280ae6)Object[_0x18d793(0x337)][_0x18d793(0x245)][_0x18d793(0x31b)](_0x280ae6,_0x40640e)&&_0x36e697[_0x18d793(0x30a)](_0x40640e)<0x0&&(_0x1824ea[_0x40640e]=_0x280ae6[_0x40640e]);if(_0x280ae6!=null&&typeof Object[_0x18d793(0x200)]==_0x18d793(0x299)){for(var _0x53c592=0x0,_0x40640e=Object['getOwnPropertySymbols'](_0x280ae6);_0x53c592<_0x40640e[_0x18d793(0x1bc)];_0x53c592++)_0x36e697[_0x18d793(0x30a)](_0x40640e[_0x53c592])<0x0&&Object[_0x18d793(0x337)][_0x18d793(0x1e3)][_0x18d793(0x31b)](_0x280ae6,_0x40640e[_0x53c592])&&(_0x1824ea[_0x40640e[_0x53c592]]=_0x280ae6[_0x40640e[_0x53c592]]);}return _0x1824ea;},pe=M['forwardRef'](function(_0x1b594e,_0x4a0344){const _0x3117c4=_0x4a9aaf;var _0x540806=_0x1b594e[_0x3117c4(0x328)],_0x15a325=_0x1b594e['id'],_0x5c628e=_0x1b594e['className'],_0x239f75=_0x1b594e[_0x3117c4(0x237)],_0x4b687b=Tt(_0x1b594e,['icon','id',_0x3117c4(0x198),_0x3117c4(0x237)]),_0x445398=_0x3117c4(0x12e)[_0x3117c4(0x33f)](_0x15a325,'\x20')[_0x3117c4(0x33f)](_0x5c628e||'')['trim'](),_0x4da94c=M[_0x3117c4(0x33a)]('_'[_0x3117c4(0x33f)](Dt()));return Ae(_0x540806,''[_0x3117c4(0x33f)](_0x15a325),{'defIds':_0x540806[_0x3117c4(0x28f)],'idSuffix':_0x4da94c[_0x3117c4(0x30b)]},E({'ref':_0x4a0344,'className':_0x445398},_0x4b687b),_0x239f75);});function Ae(_0x114f02,_0x472ae5,_0x5522d6,_0x33e5eb,_0xc4d8ae){const _0xa0dfb5=_0x4a9aaf;return M[_0xa0dfb5(0x310)](_0x114f02[_0xa0dfb5(0x16d)],E(E({'key':_0x472ae5},Ot(_0x114f02,_0x5522d6,_0xc4d8ae)),_0x33e5eb),(Rt(_0x114f02,_0x5522d6)[_0xa0dfb5(0x28a)]||[])['map'](function(_0x549c08,_0x45e5a3){const _0x22c180=_0xa0dfb5;return Ae(_0x549c08,''['concat'](_0x472ae5,'-')['concat'](_0x114f02[_0x22c180(0x16d)],'-')[_0x22c180(0x33f)](_0x45e5a3),_0x5522d6,void 0x0,_0xc4d8ae);}));}function Ot(_0xdba219,_0x3df6b6,_0x371108){const _0x5aef71=_0x4a9aaf;var _0x226bb0=E({},_0xdba219[_0x5aef71(0x13e)]);_0x371108!=null&&_0x371108['colorChannel1']&&_0x226bb0[_0x5aef71(0x306)]===_0x5aef71(0x206)&&(_0x226bb0[_0x5aef71(0x306)]=_0x371108['colorChannel1']),_0xdba219['tag']===_0x5aef71(0x1d4)&&_0x226bb0['id']&&(_0x226bb0['id']=_0x226bb0['id']+_0x3df6b6[_0x5aef71(0x23b)]),Object[_0x5aef71(0x165)](_0x226bb0)[_0x5aef71(0x2ad)](function(_0x5e4a49){const _0x3527ec=_0x5aef71;var _0xe025e7=_0x5e4a49[0x0],_0x4c1610=_0x5e4a49[0x1];_0xe025e7===_0x3527ec(0x1d4)&&typeof _0x4c1610==_0x3527ec(0x2d1)&&(_0x226bb0[_0xe025e7]=_0x4c1610[_0x3527ec(0x32e)](/url\(#(.*)\)/,_0x3527ec(0x19b)[_0x3527ec(0x33f)](_0x3df6b6[_0x3527ec(0x23b)],')')));});var _0x24270f=_0x3df6b6['defIds'];return!_0x24270f||_0x24270f['length']===0x0||(_0xdba219['tag']==='use'&&_0x226bb0[_0x5aef71(0x1f7)]&&(_0x226bb0[_0x5aef71(0x1f7)]=_0x226bb0['xlink:href']+_0x3df6b6[_0x5aef71(0x23b)]),Object['entries'](_0x226bb0)[_0x5aef71(0x2ad)](function(_0x123ccb){const _0x2acb12=_0x5aef71;var _0x8d7532=_0x123ccb[0x0],_0x119ce9=_0x123ccb[0x1];typeof _0x119ce9=='string'&&(_0x226bb0[_0x8d7532]=_0x119ce9[_0x2acb12(0x32e)](/url\(#(.*)\)/,_0x2acb12(0x19b)[_0x2acb12(0x33f)](_0x3df6b6[_0x2acb12(0x23b)],')')));})),_0x226bb0;}function Rt(_0x18d69e,_0xa0e192){const _0x18e94e=_0x4a9aaf;var _0xcb2404,_0x434715=_0xa0e192['defIds'];return!_0x434715||_0x434715['length']===0x0?_0x18d69e:_0x18d69e[_0x18e94e(0x16d)]===_0x18e94e(0x208)&&(!((_0xcb2404=_0x18d69e[_0x18e94e(0x28a)])===null||_0xcb2404===void 0x0)&&_0xcb2404[_0x18e94e(0x1bc)])?E(E({},_0x18d69e),{'children':_0x18d69e['children'][_0x18e94e(0x118)](function(_0x243511){const _0x3f9b14=_0x18e94e;return typeof _0x243511['attrs']['id']==_0x3f9b14(0x2d1)&&_0x434715&&_0x434715[_0x3f9b14(0x343)](_0x243511[_0x3f9b14(0x13e)]['id'])?E(E({},_0x243511),{'attrs':E(E({},_0x243511['attrs']),{'id':_0x243511[_0x3f9b14(0x13e)]['id']+_0xa0e192['idSuffix']})}):_0x243511;})}):_0x18d69e;}function Dt(){const _0x365b02=_0x4a9aaf;return Math[_0x365b02(0x1a0)]()[_0x365b02(0x385)](0x24)['substring'](0x2,0x8);}pe[_0x4a9aaf(0x353)]='UniverIcon';var Ut={'tag':_0x4a9aaf(0x316),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4a9aaf(0x2b3),'viewBox':'0\x200\x2016\x2016','width':_0x4a9aaf(0x15a),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4a9aaf(0x2d5)},'children':[{'tag':_0x4a9aaf(0x333),'attrs':{'stroke':_0x4a9aaf(0x1ec),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4a9aaf(0x1b6),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4a9aaf(0x208),'attrs':{},'children':[{'tag':_0x4a9aaf(0x2f1),'attrs':{'id':_0x4a9aaf(0x219)},'children':[{'tag':_0x4a9aaf(0x333),'attrs':{'fill':'white','d':_0x4a9aaf(0x2e4)}}]}]}],'defIds':[_0x4a9aaf(0x219)]},ye=M['forwardRef'](function(_0x24744a,_0x242152){const _0x5a7f8d=_0x4a9aaf;return M[_0x5a7f8d(0x310)](pe,Object[_0x5a7f8d(0x293)]({},_0x24744a,{'id':_0x5a7f8d(0x2ff),'ref':_0x242152,'icon':Ut}));});ye['displayName']=_0x4a9aaf(0x1ae);var Nt={'tag':'svg','attrs':{'xmlns':_0x4a9aaf(0x1cc),'fill':_0x4a9aaf(0x2b3),'viewBox':'0\x200\x2017\x2016','width':_0x4a9aaf(0x15a),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4a9aaf(0x329)},'children':[{'tag':_0x4a9aaf(0x333),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x4a9aaf(0x1b6),'strokeLinejoin':_0x4a9aaf(0x1b6),'strokeWidth':1.2}}]},{'tag':_0x4a9aaf(0x208),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4a9aaf(0x333),'attrs':{'fill':_0x4a9aaf(0x131),'d':_0x4a9aaf(0x2e4),'transform':_0x4a9aaf(0x2d3)}}]}]}],'defIds':[_0x4a9aaf(0x2c4)]},$e=M[_0x4a9aaf(0x1a2)](function(_0x626078,_0x4a5eb4){const _0x280c20=_0x4a9aaf;return M['createElement'](pe,Object[_0x280c20(0x293)]({},_0x626078,{'id':_0x280c20(0x2a2),'ref':_0x4a5eb4,'icon':Nt}));});$e[_0x4a9aaf(0x353)]=_0x4a9aaf(0x2a0);function Mt(_0x24e51d){const _0x5eaa3c=_0x4a9aaf;switch(_0x24e51d){case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x28b)]:return _0x5eaa3c(0x199);case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x1b1)]:return _0x5eaa3c(0x2ab);case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x195)]:return'collabStatus.fetchMiss';case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x33e)]:return _0x5eaa3c(0x269);case u['CollaborationStatus']['AWAITING']:case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x313)]:return _0x5eaa3c(0x2ef);case u[_0x5eaa3c(0x2be)][_0x5eaa3c(0x2b1)]:case u[_0x5eaa3c(0x2be)]['PENDING']:return'collabStatus.synced';}}function xe(_0xa60285){const _0x347ddb=_0x4a9aaf,{status$:_0x12486a}=_0xa60285,_0xfa2cc3=T[_0x347ddb(0x26a)](_0x12486a,u[_0x347ddb(0x2be)][_0x347ddb(0x33e)]),_0x101acc=T[_0x347ddb(0x152)](a[_0x347ddb(0x102)]),_0x527d5f=T[_0x347ddb(0x152)](u[_0x347ddb(0x1dc)]),_0x592e7e=_0xfa2cc3!==u['CollaborationStatus'][_0x347ddb(0x28b)],_0x2c2661=_0x101acc['t'](Mt(_0xfa2cc3)),_0x239707=_0x592e7e?w[_0x347ddb(0x22b)]($e,{}):w['jsx'](ye,{}),_0x4b6698=M[_0x347ddb(0xfe)](()=>{const _0x5e0540=_0x347ddb;_0x592e7e||_0x527d5f[_0x5e0540(0x154)]();},[_0x592e7e,_0x527d5f]);function _0x2afdf1(){const _0xac7bc6=_0x347ddb;return w[_0xac7bc6(0x2d2)](_0xac7bc6(0x348),{'className':'univer-flex\x20univer-items-center','onClick':_0x4b6698,'children':[w[_0xac7bc6(0x22b)]('div',{'className':D[_0xac7bc6(0x21d)]('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x592e7e,'univer-text-red-500':!_0x592e7e}),'children':_0x239707}),w['jsx'](_0xac7bc6(0x348),{'className':_0xac7bc6(0x32d),'children':_0x2c2661})]});}return _0x592e7e?_0x2afdf1():w[_0x347ddb(0x22b)](D[_0x347ddb(0x23c)],{'title':_0x101acc['t'](_0x347ddb(0x35d)),'children':_0x2afdf1()});}var Lt=Object[_0x4a9aaf(0x36e)],wt=(_0x37f4f7,_0x30afb0,_0x25b7c0,_0xeaec8a)=>{for(var _0x11f592=_0xeaec8a>0x1?void 0x0:_0xeaec8a?Lt(_0x30afb0,_0x25b7c0):_0x30afb0,_0x56328c=_0x37f4f7['length']-0x1,_0x16e585;_0x56328c>=0x0;_0x56328c--)(_0x16e585=_0x37f4f7[_0x56328c])&&(_0x11f592=_0x16e585(_0x11f592)||_0x11f592);return _0x11f592;},V=(_0x22f8a4,_0x2c595d)=>(_0x1b3e1b,_0x39f55d)=>_0x2c595d(_0x1b3e1b,_0x39f55d,_0x22f8a4);exports[_0x4a9aaf(0x18b)]=class extends a[_0x4a9aaf(0x149)]{constructor(_0x510f65,_0x26d100,_0x9fda2e,_0x44d048){const _0x501f2f=_0x4a9aaf;super(),h(this,_0x501f2f(0x2cb),new d['BehaviorSubject'](u[_0x501f2f(0x2be)]['NOT_COLLAB'])),(this[_0x501f2f(0x2a8)]=_0x510f65,this[_0x501f2f(0x372)]=_0x26d100,this['_collaborationController']=_0x9fda2e,this[_0x501f2f(0x241)]=_0x44d048,this[_0x501f2f(0x276)](),this['_initStatusListener']());}[_0x4a9aaf(0x21c)](){const _0x39a0b3=_0x4a9aaf;this[_0x39a0b3(0x2db)](this[_0x39a0b3(0x2a8)][_0x39a0b3(0x386)][_0x39a0b3(0x10b)](d[_0x39a0b3(0x354)](()=>{const _0x104e73=_0x39a0b3,_0x2b100a=this['_univerInstanceService'][_0x104e73(0x210)]();return _0x2b100a?this[_0x104e73(0x2a1)][_0x104e73(0x304)](_0x2b100a[_0x104e73(0x182)]()):d['of'](null);}),d['switchMap'](_0x3a5d97=>_0x3a5d97?_0x3a5d97[_0x39a0b3(0x13b)]:d['of'](u[_0x39a0b3(0x2be)][_0x39a0b3(0x33e)])))[_0x39a0b3(0x251)](_0x48d068=>{const _0x54d4c1=_0x39a0b3;this[_0x54d4c1(0x2cb)]['next'](_0x48d068);}));}[_0x4a9aaf(0x276)](){const _0x49e794=_0x4a9aaf;this[_0x49e794(0x2db)](this[_0x49e794(0x241)][_0x49e794(0x24c)](T['BuiltInUIPart'][_0x49e794(0x367)],()=>T[_0x49e794(0x256)](Pt({'status$':this[_0x49e794(0x2cb)]['asObservable']()}),this[_0x49e794(0x372)])));}},exports[_0x4a9aaf(0x18b)]=wt([V(0x0,a[_0x4a9aaf(0x216)]),V(0x1,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),V(0x2,a['Inject'](u[_0x4a9aaf(0x100)])),V(0x3,T[_0x4a9aaf(0x341)])],exports[_0x4a9aaf(0x18b)]);function Pt(_0x5c9dac){const {status$:_0x59d231}=_0x5c9dac;return function(){return w['jsx'](xe,{'status$':_0x59d231});};}var At=Object[_0x4a9aaf(0x36e)],yt=(_0x4b42e6,_0x250364,_0x40467a,_0x1c6663)=>{const _0x32f20b=_0x4a9aaf;for(var _0x434c50=_0x1c6663>0x1?void 0x0:_0x1c6663?At(_0x250364,_0x40467a):_0x250364,_0x4e8fbd=_0x4b42e6[_0x32f20b(0x1bc)]-0x1,_0x51f306;_0x4e8fbd>=0x0;_0x4e8fbd--)(_0x51f306=_0x4b42e6[_0x4e8fbd])&&(_0x434c50=_0x51f306(_0x434c50)||_0x434c50);return _0x434c50;},y=(_0x154c21,_0x4552c8)=>(_0x2ab59c,_0x3d34fc)=>_0x4552c8(_0x2ab59c,_0x3d34fc,_0x154c21);let q=class extends a[_0x4a9aaf(0x149)]{constructor(_0x50deba,_0x138593,_0x3d997e,_0x583c1b,_0x2fae27,_0xbcaba){const _0x1b3025=_0x4a9aaf;super(),this['_beforeCloseService']=_0x50deba,this[_0x1b3025(0x36f)]=_0x138593,this['_collaborationUIEventService']=_0x3d997e,this['_messageService']=_0x583c1b,this['_notificationService']=_0x2fae27,this[_0x1b3025(0x281)]=_0xbcaba,this[_0x1b3025(0x21e)](),this[_0x1b3025(0x29c)]();}[_0x4a9aaf(0x21e)](){const _0xcbb271=_0x4a9aaf;this[_0xcbb271(0x2db)](this['_beforeCloseService'][_0xcbb271(0x289)](()=>{const _0x502067=_0xcbb271;if(this[_0x502067(0x36f)][_0x502067(0x1b0)][_0x502067(0x352)])return this[_0x502067(0x281)]['t'](_0x502067(0x13f));}));}[_0x4a9aaf(0x29c)](){const _0x2a9f13=_0x4a9aaf;this[_0x2a9f13(0x2db)](this[_0x2a9f13(0x1aa)][_0x2a9f13(0x224)]['subscribe'](_0x111ffb=>{const _0x2f92c3=_0x2a9f13;_0x111ffb['id']===u[_0x2f92c3(0x14b)]['OTHER_CLIENT_EDITING']&&this[_0x2f92c3(0x134)][_0x2f92c3(0x22f)]({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x2cc)],'content':this[_0x2f92c3(0x281)]['t']('collaboration.single-unit.warning')}),_0x111ffb['id']===u[_0x2f92c3(0x14b)]['CLOSE_ROOM']&&this[_0x2f92c3(0x134)][_0x2f92c3(0x22f)]({'type':D[_0x2f92c3(0x144)]['Warning'],'content':this['_localeService']['t'](_0x2f92c3(0x27f))}),_0x111ffb['id']===u[_0x2f92c3(0x14b)][_0x2f92c3(0x132)]&&this[_0x2f92c3(0x242)]['show']({'title':this[_0x2f92c3(0x281)]['t'](_0x2f92c3(0x234)),'content':this[_0x2f92c3(0x281)]['t'](_0x2f92c3(0x11f)),'type':'error','duration':0x0}),_0x111ffb['id']===u['CollaborationUIEventId'][_0x2f92c3(0x1b1)]&&this[_0x2f92c3(0x134)][_0x2f92c3(0x22f)]({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x24f)],'content':this[_0x2f92c3(0x281)]['t']('collaboration.closeRoom')+'('+_0x111ffb[_0x2f92c3(0x2c3)]+')'}),_0x111ffb['id']===u[_0x2f92c3(0x14b)][_0x2f92c3(0x229)]&&this[_0x2f92c3(0x134)]['show']({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x2cc)],'content':this[_0x2f92c3(0x281)]['t'](_0x111ffb['data']||'')}),_0x111ffb['id']===u[_0x2f92c3(0x14b)][_0x2f92c3(0x356)]&&this['_messageService'][_0x2f92c3(0x22f)]({'type':D[_0x2f92c3(0x144)]['Warning'],'content':this['_localeService']['t'](_0x2f92c3(0xfb))}),_0x111ffb['id']===u[_0x2f92c3(0x14b)][_0x2f92c3(0x311)]&&this[_0x2f92c3(0x134)]['show']({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x24f)],'content':this[_0x2f92c3(0x281)]['t']('session.connection-failed')}),_0x111ffb['id']===u[_0x2f92c3(0x14b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x2f92c3(0x134)]['show']({'type':D[_0x2f92c3(0x144)][_0x2f92c3(0x24f)],'content':this[_0x2f92c3(0x281)]['t'](_0x2f92c3(0x36a))});}));}};q=yt([y(0x0,T[_0x4a9aaf(0x263)]),y(0x1,u[_0x4a9aaf(0x21b)]),y(0x2,a[_0x4a9aaf(0x301)](u[_0x4a9aaf(0x150)])),y(0x3,T[_0x4a9aaf(0x2a4)]),y(0x4,T[_0x4a9aaf(0x34d)]),y(0x5,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x102)]))],q);const $t=_0x4a9aaf(0x34f),Ue={},be=a[_0x4a9aaf(0x143)](_0x4a9aaf(0x27c));var xt=Object[_0x4a9aaf(0x36e)],jt=(_0x3fc888,_0x46f7aa,_0x299ab8,_0x253b96)=>{const _0x96dfdc=_0x4a9aaf;for(var _0x2e264d=_0x253b96>0x1?void 0x0:_0x253b96?xt(_0x46f7aa,_0x299ab8):_0x46f7aa,_0x733b25=_0x3fc888[_0x96dfdc(0x1bc)]-0x1,_0xb5b065;_0x733b25>=0x0;_0x733b25--)(_0xb5b065=_0x3fc888[_0x733b25])&&(_0x2e264d=_0xb5b065(_0x2e264d)||_0x2e264d);return _0x2e264d;},H=(_0x145d1c,_0x488090)=>(_0xce3ceb,_0x3d972b)=>_0x488090(_0xce3ceb,_0x3d972b,_0x145d1c);exports[_0x4a9aaf(0x191)]=class extends a[_0x4a9aaf(0x1dd)]{constructor(_0x5eeb9b,_0xd59410,_0xa332aa,_0x5a20c6,_0x4744c5){const _0xd13119=_0x4a9aaf;super(),this['_urlService']=_0x5eeb9b,this[_0xd13119(0x15e)]=_0xd59410,this[_0xd13119(0x164)]=_0xa332aa,this[_0xd13119(0x2e0)]=_0x5a20c6,_0x4744c5?_0x4744c5==null||_0x4744c5[_0xd13119(0x223)]()[_0xd13119(0x38a)](()=>this['_init']()):(this['_logService']['debug'](_0xd13119(0x2af),_0xd13119(0x279)),this['_init']());}async['_init'](){const _0xb68196=_0x4a9aaf,_0x1f2eee=this['_urlService'][_0xb68196(0x2a6)](_0xb68196(0x330)),_0x3b6567=this['_urlService']['getParam'](_0xb68196(0x103)),_0x1bbffe=this[_0xb68196(0x25f)][_0xb68196(0x2a6)](_0xb68196(0x2b7));if(!_0x1f2eee||!_0x3b6567){this['_logService'][_0xb68196(0x335)](_0xb68196(0x2af),_0xb68196(0x24d));return;}const _0x11f287=await this[_0xb68196(0x2e0)][_0xb68196(0x113)](_0x1f2eee,Number(_0x3b6567),_0x1bbffe);_0x11f287&&_0x11f287 instanceof a['Workbook']&&this[_0xb68196(0xf4)](_0x11f287);}async[_0x4a9aaf(0xf4)](_0x2a5812){const _0x31f460=_0x4a9aaf;await this[_0x31f460(0x17a)](_0x2a5812),_0x2a5812[_0x31f460(0x2c2)][_0x31f460(0x10b)](d['takeUntil'](this[_0x31f460(0x27e)]))[_0x31f460(0x251)](_0x1bad5c=>{const _0x5bc416=_0x31f460;_0x1bad5c&&this[_0x5bc416(0x1e4)](_0x1bad5c);}),this[_0x31f460(0x25f)][_0x31f460(0x2a5)][_0x31f460(0x10b)](d[_0x31f460(0x376)](this[_0x31f460(0x27e)]))['subscribe'](()=>this[_0x31f460(0x17a)](_0x2a5812));}[_0x4a9aaf(0x1e4)](_0x3d8228,_0x15888c=!0x1){const _0x2ba62d=_0x4a9aaf,_0xa44e01=this[_0x2ba62d(0x25f)]['getParam']('subunit');_0x3d8228[_0x2ba62d(0x37a)]()!==_0xa44e01&&this[_0x2ba62d(0x25f)]['setParam'](_0x2ba62d(0x2b7),_0x3d8228[_0x2ba62d(0x37a)](),_0x15888c);}async[_0x4a9aaf(0x17a)](_0x38447f){const _0x1053c5=_0x4a9aaf;var _0xee222c;const _0x567919=this[_0x1053c5(0x25f)][_0x1053c5(0x2a6)]('subunit');if(!_0x567919||!_0x38447f['getSheetBySheetId'](_0x567919)){const _0x13396e=_0x38447f[_0x1053c5(0x2e8)]()[0x0],_0x29d7bb=_0x38447f[_0x1053c5(0x10f)](_0x13396e);if(!_0x29d7bb)return;this[_0x1053c5(0x1e4)](_0x29d7bb,!0x0),await this[_0x1053c5(0x164)][_0x1053c5(0x277)](g[_0x1053c5(0x228)]['id'],{'unitId':_0x38447f[_0x1053c5(0x182)](),'subUnitId':_0x13396e});return;}((_0xee222c=_0x38447f[_0x1053c5(0x19f)]())==null?void 0x0:_0xee222c['getSheetId']())!==_0x567919&&await this['_commandService'][_0x1053c5(0x277)](g[_0x1053c5(0x228)]['id'],{'unitId':_0x38447f[_0x1053c5(0x182)](),'subUnitId':_0x567919});}},exports[_0x4a9aaf(0x191)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x4a9aaf(0x387)]),H(0x3,a[_0x4a9aaf(0x301)](u['DataLoaderService'])),H(0x4,a[_0x4a9aaf(0x265)](Ke[_0x4a9aaf(0x211)]))],exports[_0x4a9aaf(0x191)]);var Bt=Object[_0x4a9aaf(0x36e)],kt=(_0x249442,_0x56d84c,_0x2e4d5c,_0x14e725)=>{const _0x38ad36=_0x4a9aaf;for(var _0x36f54e=_0x14e725>0x1?void 0x0:_0x14e725?Bt(_0x56d84c,_0x2e4d5c):_0x56d84c,_0x16bd96=_0x249442[_0x38ad36(0x1bc)]-0x1,_0x198e11;_0x16bd96>=0x0;_0x16bd96--)(_0x198e11=_0x249442[_0x16bd96])&&(_0x36f54e=_0x198e11(_0x36f54e)||_0x36f54e);return _0x36f54e;},ce=(_0x2d7be1,_0xdb34b5)=>(_0x1582a9,_0x34b023)=>_0xdb34b5(_0x1582a9,_0x34b023,_0x2d7be1);let z=class{constructor(_0x319dca,_0x6ad4f8,_0x2a7a){const _0x151baa=_0x4a9aaf;this['_injector']=_0x319dca,this[_0x151baa(0x29f)]=_0x6ad4f8,this[_0x151baa(0x24a)]=_0x2a7a;}[_0x4a9aaf(0x197)](_0x30eda4){const _0x5ddbad=_0x4a9aaf;this[_0x5ddbad(0x185)](_0x30eda4),this[_0x5ddbad(0x12d)](_0x30eda4);}['transformRemoteChangeset'](_0x442034){const _0x383bed=_0x4a9aaf,{unitID:_0x39e63c}=_0x442034,_0x416a50=this[_0x383bed(0x24a)]['getRenderById'](_0x39e63c)['with'](b[_0x383bed(0x382)]),{redoCache:_0x172cda}=_0x416a50[_0x383bed(0x2ee)]();if(_0x172cda['length']===0x0)return _0x442034;let _0x452f9a=a['Tools'][_0x383bed(0x15c)](_0x442034[_0x383bed(0x1a3)][0x0]);for(let _0xfe5bc9=0x0;_0xfe5bc9<_0x172cda[_0x383bed(0x1bc)];_0xfe5bc9++){const _0x206a8b={'id':'doc.mutation.rich-text-editing','params':{..._0x172cda[_0xfe5bc9]}},_0x1c8e28=this[_0x383bed(0x29f)]['transformMutation'](_0x452f9a,_0x206a8b,!0x1);if(m['isTransformMutationFailure'](_0x1c8e28))throw _0x1c8e28['error'];_0x452f9a=_0x1c8e28[_0x383bed(0x2a9)];}return{...a[_0x383bed(0x20d)]['deepClone'](_0x442034),'mutations':[_0x452f9a]};}[_0x4a9aaf(0x185)](_0x523e4a){const _0x2479ba=_0x4a9aaf,{unitID:_0x2bb201}=_0x523e4a,_0x1613ef=this[_0x2479ba(0x24a)][_0x2479ba(0x126)](_0x2bb201)[_0x2479ba(0x1ab)](b['DocIMEInputManagerService']),{undoCache:_0x36f719,redoCache:_0x4b6b80}=_0x1613ef[_0x2479ba(0x2ee)]();if(_0x36f719[_0x2479ba(0x1bc)]===0x0||_0x4b6b80[_0x2479ba(0x1bc)]===0x0)return;const _0x2d54a6=[],_0x318935=[];let _0xab890c=a[_0x2479ba(0x20d)][_0x2479ba(0x15c)](_0x523e4a[_0x2479ba(0x1a3)][0x0]),_0x45a024=a['Tools']['deepClone'](_0x523e4a[_0x2479ba(0x1a3)][0x0]);for(let _0x574ebb=_0x36f719[_0x2479ba(0x1bc)]-0x1;_0x574ebb>=0x0;_0x574ebb--){const _0x3fd79d={'id':_0x2479ba(0x2ec),'params':{..._0x36f719[_0x574ebb]}},_0x42946d={'id':_0x2479ba(0x2ec),'params':{..._0x4b6b80[_0x574ebb]}},_0x4205c4=this['_transformService'][_0x2479ba(0x128)](_0xab890c,_0x3fd79d,!0x1),_0x29c2e9=this[_0x2479ba(0x29f)][_0x2479ba(0x128)](_0x45a024,_0x42946d,!0x1);if(m['isTransformMutationFailure'](_0x4205c4))throw _0x4205c4[_0x2479ba(0x33b)];if(m['isTransformMutationFailure'](_0x29c2e9))throw _0x29c2e9[_0x2479ba(0x33b)];_0x2d54a6[_0x2479ba(0x116)](_0x4205c4['m2Prime'][_0x2479ba(0x209)]),_0x318935[_0x2479ba(0x116)](_0x29c2e9['m2Prime'][_0x2479ba(0x209)]),_0xab890c=_0x4205c4[_0x2479ba(0x2a9)],_0x45a024=_0x29c2e9[_0x2479ba(0x2a9)];}_0x1613ef[_0x2479ba(0x110)]({'undoCache':_0x2d54a6,'redoCache':_0x318935});}[_0x4a9aaf(0x12d)](_0x2f9baa){const _0x5178e3=_0x4a9aaf,{unitID:_0x11148b}=_0x2f9baa,_0x5d207f=this['_renderManagerService']['getRenderById'](_0x11148b)[_0x5178e3(0x1ab)](b[_0x5178e3(0x382)]),_0x344a02=_0x5d207f[_0x5178e3(0x373)]();if(_0x344a02==null)return;const _0x1efc96=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f9baa[_0x5178e3(0xfd)],'actions':null,'textRanges':[_0x344a02]}}],_0x49e459=this[_0x5178e3(0x29f)]['transformMutationsWithChangeset'](_0x2f9baa,_0x1efc96);if(!m[_0x5178e3(0x340)](_0x49e459))throw _0x49e459[_0x5178e3(0x33b)];const _0x26cce5=_0x49e459['m2Prime'][0x0][_0x5178e3(0x209)][_0x5178e3(0x2bb)];Array[_0x5178e3(0x2c6)](_0x26cce5)&&_0x26cce5[_0x5178e3(0x1bc)]&&_0x5d207f[_0x5178e3(0x192)](_0x26cce5[0x0]);}};z=kt([ce(0x0,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),ce(0x1,m[_0x4a9aaf(0x34e)]),ce(0x2,p[_0x4a9aaf(0x2c8)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x4dd280,_0x2fb29b,_0x3294ea,_0x173280)=>{for(var _0x3479e0=_0x173280>0x1?void 0x0:_0x173280?Ht(_0x2fb29b,_0x3294ea):_0x2fb29b,_0xad2ce5=_0x4dd280['length']-0x1,_0x1a5eef;_0xad2ce5>=0x0;_0xad2ce5--)(_0x1a5eef=_0x4dd280[_0xad2ce5])&&(_0x3479e0=_0x1a5eef(_0x3479e0)||_0x3479e0);return _0x3479e0;},le=(_0x432c29,_0x578f81)=>(_0x3ac72d,_0xc2dca9)=>_0x578f81(_0x3ac72d,_0xc2dca9,_0x432c29);let J=class{constructor(_0x32c375,_0x3ac457,_0x20867c){const _0x3be7cb=_0x4a9aaf;this[_0x3be7cb(0x372)]=_0x32c375,this[_0x3be7cb(0x29f)]=_0x3ac457,this[_0x3be7cb(0x1a7)]=_0x20867c;}[_0x4a9aaf(0x1e2)](_0x29573f){const _0x474aea=_0x4a9aaf;this[_0x474aea(0x364)](_0x29573f);}[_0x4a9aaf(0x135)](_0x4c3fd9){const _0x4c86bc=_0x4a9aaf,{unitID:_0x2f71c6}=_0x4c3fd9,{collaboration:_0x45503d}=this['_docStateChangeManagerService'][_0x4c86bc(0x18e)](_0x2f71c6);if(_0x45503d[_0x4c86bc(0x1bc)]===0x0)return _0x4c3fd9;let _0x47823f=a['Tools'][_0x4c86bc(0x15c)](_0x4c3fd9[_0x4c86bc(0x1a3)][0x0]);for(let _0x8182cb=0x0;_0x8182cb<_0x45503d['length'];_0x8182cb++){const _0x881c82={'id':_0x4c86bc(0x2ec),'params':{'unitId':_0x45503d[_0x8182cb][_0x4c86bc(0x181)],..._0x45503d[_0x8182cb][_0x4c86bc(0x236)]}},_0x5ec29c=this['_transformService'][_0x4c86bc(0x128)](_0x47823f,_0x881c82,!0x1);if(m['isTransformMutationFailure'](_0x5ec29c))throw _0x5ec29c['error'];_0x47823f=_0x5ec29c['m1Prime'];}return{...a[_0x4c86bc(0x20d)]['deepClone'](_0x4c3fd9),'mutations':[_0x47823f]};}[_0x4a9aaf(0x364)](_0xbc7f81){const _0x335e03=_0x4a9aaf,{unitID:_0x3b5d12}=_0xbc7f81,{history:_0x434946,collaboration:_0x5ba462}=this['_docStateChangeManagerService']['getStateCache'](_0x3b5d12);if(_0x434946[_0x335e03(0x1bc)]===0x0&&_0x5ba462[_0x335e03(0x1bc)]===0x0)return;const _0x2c1946=[],_0x4437a4=[];let _0x48a417=a['Tools'][_0x335e03(0x15c)](_0xbc7f81[_0x335e03(0x1a3)][0x0]),_0x1395d8=a[_0x335e03(0x20d)][_0x335e03(0x15c)](_0xbc7f81[_0x335e03(0x1a3)][0x0]);for(let _0x431f81=_0x434946['length']-0x1;_0x431f81>=0x0;_0x431f81--){const _0x25a340={'id':_0x335e03(0x2ec),'params':{'unitId':_0x434946[_0x431f81][_0x335e03(0x181)],..._0x434946[_0x431f81][_0x335e03(0x264)]}},_0x390c6b={'id':_0x335e03(0x2ec),'params':{'unitId':_0x434946[_0x431f81][_0x335e03(0x181)],..._0x434946[_0x431f81][_0x335e03(0x236)]}},_0x31eb2b=this[_0x335e03(0x29f)][_0x335e03(0x128)](_0x48a417,_0x25a340,!0x1),_0xba3818=this[_0x335e03(0x29f)][_0x335e03(0x128)](_0x1395d8,_0x390c6b,!0x1);if(m['isTransformMutationFailure'](_0x31eb2b))throw _0x31eb2b[_0x335e03(0x33b)];if(m[_0x335e03(0x2de)](_0xba3818))throw _0xba3818['error'];_0x2c1946[_0x335e03(0x116)]({..._0x434946[_0x431f81],'undoState':_0x31eb2b[_0x335e03(0x360)]['params'],'redoState':_0xba3818[_0x335e03(0x360)]['params']}),_0x48a417=_0x31eb2b[_0x335e03(0x2a9)],_0x1395d8=_0xba3818[_0x335e03(0x2a9)];}_0x48a417=a['Tools'][_0x335e03(0x15c)](_0xbc7f81['mutations'][0x0]),_0x1395d8=a[_0x335e03(0x20d)]['deepClone'](_0xbc7f81[_0x335e03(0x1a3)][0x0]);for(let _0x465a3f=_0x5ba462['length']-0x1;_0x465a3f>=0x0;_0x465a3f--){const _0xf8bbd5={'id':_0x335e03(0x2ec),'params':{'unitId':_0x5ba462[_0x465a3f][_0x335e03(0x181)],..._0x5ba462[_0x465a3f][_0x335e03(0x264)]}},_0x1b6970={'id':_0x335e03(0x2ec),'params':{'unitId':_0x5ba462[_0x465a3f][_0x335e03(0x181)],..._0x5ba462[_0x465a3f]['redoState']}},_0x1b3380=this['_transformService'][_0x335e03(0x128)](_0x48a417,_0xf8bbd5,!0x1),_0x283e2d=this['_transformService'][_0x335e03(0x128)](_0x1395d8,_0x1b6970,!0x1);if(m['isTransformMutationFailure'](_0x1b3380))throw _0x1b3380[_0x335e03(0x33b)];if(m['isTransformMutationFailure'](_0x283e2d))throw _0x283e2d[_0x335e03(0x33b)];_0x4437a4['unshift']({..._0x5ba462[_0x465a3f],'undoState':_0x1b3380[_0x335e03(0x360)]['params'],'redoState':_0x283e2d[_0x335e03(0x360)]['params']}),_0x48a417=_0x1b3380[_0x335e03(0x2a9)],_0x1395d8=_0x283e2d['m1Prime'];}this[_0x335e03(0x1a7)][_0x335e03(0x1d7)](_0x3b5d12,{'history':_0x2c1946,'collaboration':_0x4437a4});}};J=Ft([le(0x0,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),le(0x1,m[_0x4a9aaf(0x34e)]),le(0x2,a[_0x4a9aaf(0x301)](b[_0x4a9aaf(0x320)]))],J);var Yt=Object[_0x4a9aaf(0x36e)],Wt=(_0x1c089a,_0x2efd6b,_0x5c0ec6,_0x299558)=>{const _0x4b07b0=_0x4a9aaf;for(var _0x1de980=_0x299558>0x1?void 0x0:_0x299558?Yt(_0x2efd6b,_0x5c0ec6):_0x2efd6b,_0x59882f=_0x1c089a[_0x4b07b0(0x1bc)]-0x1,_0xc33764;_0x59882f>=0x0;_0x59882f--)(_0xc33764=_0x1c089a[_0x59882f])&&(_0x1de980=_0xc33764(_0x1de980)||_0x1de980);return _0x1de980;},Ne=(_0x5a9822,_0xd0bc83)=>(_0x1900dd,_0x14fb87)=>_0xd0bc83(_0x1900dd,_0x14fb87,_0x5a9822);let Z=class{constructor(_0x1b4563,_0xda5836){const _0x2417d1=_0x4a9aaf;this['_injector']=_0x1b4563,this[_0x2417d1(0x29f)]=_0xda5836;}[_0x4a9aaf(0x339)](_0x5cb105){const _0x2beeca=_0x4a9aaf;var _0x36858e;const _0x37fe77=this[_0x2beeca(0x372)][_0x2beeca(0x1ea)](Y[_0x2beeca(0x15d)]),_0x5c4e6a=(_0x36858e=_0x37fe77[_0x2beeca(0x17f)]())!=null?_0x36858e:[];if(_0x5c4e6a[_0x2beeca(0x1bc)]===0x0)return;const _0x565054=_0x5cb105['unitID'],_0x423b65=[{'id':_0x2beeca(0x2ec),'params':{'unitId':_0x565054,'actions':null,'textRanges':_0x5c4e6a}}],_0xd72a22=this['_transformService'][_0x2beeca(0x106)](_0x5cb105,_0x423b65);if(!m[_0x2beeca(0x340)](_0xd72a22))throw _0xd72a22[_0x2beeca(0x33b)];const _0x1e3b42=_0xd72a22[_0x2beeca(0x360)][0x0][_0x2beeca(0x209)][_0x2beeca(0x2bb)];Array[_0x2beeca(0x2c6)](_0x1e3b42)&&_0x1e3b42[_0x2beeca(0x1bc)]&&_0x37fe77[_0x2beeca(0x11c)](_0x1e3b42,{'unitId':_0x565054,'subUnitId':_0x565054},!0x1);}};Z=Wt([Ne(0x0,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x4a9aaf(0x36e)],Xt=(_0x5090b3,_0x5a8d8b,_0x24065f,_0x45dd11)=>{const _0x245013=_0x4a9aaf;for(var _0x57198f=_0x45dd11>0x1?void 0x0:_0x45dd11?Vt(_0x5a8d8b,_0x24065f):_0x5a8d8b,_0x28c177=_0x5090b3[_0x245013(0x1bc)]-0x1,_0x49c47e;_0x28c177>=0x0;_0x28c177--)(_0x49c47e=_0x5090b3[_0x28c177])&&(_0x57198f=_0x49c47e(_0x57198f)||_0x57198f);return _0x57198f;},N=(_0x151259,_0x587f70)=>(_0x1e6430,_0x4d121e)=>_0x587f70(_0x1e6430,_0x4d121e,_0x151259);let Q=class extends a[_0x4a9aaf(0x149)]{constructor(_0x35d953,_0x3663fc,_0x2a97ff,_0x45230e,_0xa3bd72,_0x1a6e86,_0x54ce40,_0x592f80){const _0xb6f52d=_0x4a9aaf;super(),h(this,_0xb6f52d(0x2cb),new d[(_0xb6f52d(0x172))](u[_0xb6f52d(0x2be)][_0xb6f52d(0x33e)])),(this['_docStateChangeManagerService']=_0x35d953,this[_0xb6f52d(0x2a1)]=_0x3663fc,this[_0xb6f52d(0x2bc)]=_0x2a97ff,this['_docTransformStateCacheService']=_0x45230e,this['_docTransformSelectionsService']=_0xa3bd72,this[_0xb6f52d(0x159)]=_0x1a6e86,this[_0xb6f52d(0x134)]=_0x54ce40,this['_localeService']=_0x592f80,this[_0xb6f52d(0x388)]());}[_0x4a9aaf(0x388)](){const _0xb38e67=_0x4a9aaf;this[_0xb38e67(0x2db)](this[_0xb38e67(0x2a1)]['entityInit$']['subscribe'](_0x35dc8c=>{const _0x6537b3=_0xb38e67,_0x168805=this[_0x6537b3(0x1a7)][_0x6537b3(0x375)][_0x6537b3(0x251)](_0x34c534=>{const _0x363164=_0x6537b3;if(_0x34c534==null)return;const {unitId:_0x54db74,redoState:_0x1b5fd4,commandId:_0xe7485f}=_0x34c534;if(_0x54db74!==_0x35dc8c['unitID'])return;const _0x1bc52e={'id':_0xe7485f,'type':a[_0x363164(0x101)]['MUTATION'],'params':{'unitId':_0x54db74,'actions':_0x1b5fd4[_0x363164(0x257)],'textRanges':null}};_0x35dc8c[_0x363164(0x183)](_0x1bc52e);});if(_0x35dc8c['disposeWithMe'](_0x168805),_0x35dc8c instanceof u['DocCollaborationEntity']){const _0x38fb71={'onTransformIME':_0x2e1055=>this['_docTransformIMECacheService']['transformIMECache'](_0x2e1055),'onTransformState':_0x20bcaa=>this[_0x6537b3(0x284)][_0x6537b3(0x1e2)](_0x20bcaa),'onTransformSelections':_0x9723be=>this[_0x6537b3(0x312)]['transformSelections'](_0x9723be),'onSyncEditingCollabCursor':_0xd3b98f=>this[_0x6537b3(0x159)][_0x6537b3(0x15b)](_0xd3b98f),'onTransformRemoteChangesetByIMECache':_0x431099=>this[_0x6537b3(0x2bc)][_0x6537b3(0x135)](_0x431099),'onTransformRemoteChangesetByStateCache':_0x1c5194=>this[_0x6537b3(0x284)][_0x6537b3(0x135)](_0x1c5194)};_0x35dc8c['addHandlerCallback'](_0x38fb71);}}));}};Q=Xt([N(0x0,a['Inject'](b['DocStateChangeManagerService'])),N(0x1,a[_0x4a9aaf(0x301)](u['CollaborationController'])),N(0x2,a[_0x4a9aaf(0x301)](z)),N(0x3,a[_0x4a9aaf(0x301)](J)),N(0x4,a[_0x4a9aaf(0x301)](Z)),N(0x5,a[_0x4a9aaf(0x301)](Ce)),N(0x6,T[_0x4a9aaf(0x2a4)]),N(0x7,a[_0x4a9aaf(0x301)](a['LocaleService']))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x2b10d4,_0x3ec25a,_0x12a5a9,_0x3b599c)=>{const _0x35e3df=_0x4a9aaf;for(var _0x4563bf=_0x3b599c>0x1?void 0x0:_0x3b599c?Gt(_0x3ec25a,_0x12a5a9):_0x3ec25a,_0x27ebad=_0x2b10d4[_0x35e3df(0x1bc)]-0x1,_0x2d67bd;_0x27ebad>=0x0;_0x27ebad--)(_0x2d67bd=_0x2b10d4[_0x27ebad])&&(_0x4563bf=_0x2d67bd(_0x4563bf)||_0x4563bf);return _0x4563bf;},_e=(_0x21d56f,_0x472676)=>(_0x5701ea,_0x291f2e)=>_0x472676(_0x5701ea,_0x291f2e,_0x21d56f);let ge=class extends a[_0x4a9aaf(0x149)]{constructor(_0x58cc65,_0x100c2d,_0x406c17){const _0x262be5=_0x4a9aaf;super(),h(this,_0x262be5(0x19d),new Map()),h(this,_0x262be5(0x2ac),new Map()),h(this,_0x262be5(0x2cf),!0x1),(this['_configService']=_0x58cc65,this[_0x262be5(0x1c3)]=_0x100c2d,this[_0x262be5(0x205)]=_0x406c17);}[_0x4a9aaf(0x247)](){this['_disabled']=!0x0;}[_0x4a9aaf(0x314)](){const _0x2d762d=_0x4a9aaf;this[_0x2d762d(0x2cf)]=!0x1;}get[_0x4a9aaf(0x1b0)](){const _0x3d0fc5=_0x4a9aaf;return this[_0x3d0fc5(0x2ac)];}[_0x4a9aaf(0x362)](){const _0x3823db=_0x4a9aaf;this[_0x3823db(0x286)]()[_0x3823db(0x38a)](()=>super['dispose']());}async['loadOfflineData'](_0x415007){const _0x17025b=_0x4a9aaf;return this[_0x17025b(0x2cf)]?null:this[_0x17025b(0x1c3)][_0x17025b(0x2c7)](u[_0x17025b(0x363)](_0x415007));}async['saveOfflineData'](_0xc5f27e,_0x4bc338){const _0x3b3d56=_0x4a9aaf;return!!this[_0x3b3d56(0x1c3)][_0x3b3d56(0x171)](_0xc5f27e,_0x4bc338);}[_0x4a9aaf(0x130)](_0x43b623,_0x112232,_0x3e62ba,_0x4803c3){const _0x402b5a=_0x4a9aaf,_0x351d11=this[_0x402b5a(0x205)][_0x402b5a(0x1bd)](_0x43b623);this[_0x402b5a(0x19d)]['set'](_0x43b623,{'unitID':_0x43b623,'type':_0x112232,'awaitingChangeset':_0x3e62ba,'mutations':_0x4803c3,'rev':_0x351d11}),this[_0x402b5a(0x2ac)][_0x402b5a(0x1d1)](_0x43b623)||this['_scheduleSaving'](_0x43b623);}[_0x4a9aaf(0x336)](_0x11f6cd){const _0x647d0f=_0x4a9aaf,_0x2bbf83=this[_0x647d0f(0x1f8)]();_0x2bbf83===0x0?this['_saveCache'](_0x11f6cd):this[_0x647d0f(0x2ac)][_0x647d0f(0x2b0)](_0x11f6cd,setTimeout(()=>this[_0x647d0f(0x35e)](_0x11f6cd),_0x2bbf83));}[_0x4a9aaf(0x1f8)](){const _0x3dcfc0=_0x4a9aaf;var _0x183f60;return(_0x183f60=this['_configService'][_0x3dcfc0(0x2dc)](u[_0x3dcfc0(0x14d)]))!=null?_0x183f60:u[_0x3dcfc0(0x37d)];}[_0x4a9aaf(0x35e)](_0x5b9cac){const _0xa98148=_0x4a9aaf,_0x17b830=this[_0xa98148(0x2ac)][_0xa98148(0x1ea)](_0x5b9cac);return _0x17b830!==void 0x0&&window[_0xa98148(0x368)](_0x17b830),this[_0xa98148(0x1c3)][_0xa98148(0x171)](u[_0xa98148(0x363)](_0x5b9cac),this[_0xa98148(0x19d)][_0xa98148(0x1ea)](_0x5b9cac))[_0xa98148(0x38a)](()=>this['_saveTaskMap'][_0xa98148(0x1f0)](_0x5b9cac));}async[_0x4a9aaf(0x286)](){const _0x1cc5c0=_0x4a9aaf,_0x5055a0=[];this[_0x1cc5c0(0x2ac)][_0x1cc5c0(0x2ad)]((_0x51a6aa,_0x70999d)=>{const _0x209124=_0x1cc5c0;window[_0x209124(0x368)](_0x51a6aa),_0x5055a0['push'](this[_0x209124(0x35e)](_0x70999d)['then'](()=>{const _0x1fb773=_0x209124;this[_0x1fb773(0x2ac)][_0x1fb773(0x1f0)](_0x70999d);}));}),await Promise[_0x1cc5c0(0x2ea)](_0x5055a0);}};ge=Kt([_e(0x0,a[_0x4a9aaf(0x2e3)]),_e(0x1,a[_0x4a9aaf(0x295)]),_e(0x2,a['Inject'](m[_0x4a9aaf(0x2e1)]))],ge);class je extends a[_0x4a9aaf(0x1dd)]{constructor(){const _0xaf5342=_0x4a9aaf;super(),h(this,_0xaf5342(0x2a5)),this[_0xaf5342(0x2a5)]=d[_0xaf5342(0x35f)](window,_0xaf5342(0x220))['pipe'](d[_0xaf5342(0x376)](this['dispose$']),d[_0xaf5342(0x1b2)](0x1),d[_0xaf5342(0x194)](void 0x0));}[_0x4a9aaf(0x294)](_0x43baf2,_0x5044e6,_0xede55b=!0x1){const _0x206177=_0x4a9aaf,_0x332356=new URL(window[_0x206177(0x19e)][_0x206177(0x319)]);_0x332356[_0x206177(0x24e)][_0x206177(0x2b0)](_0x43baf2,_0x5044e6),_0xede55b?window[_0x206177(0x34b)][_0x206177(0x1ba)]('','',_0x332356[_0x206177(0x385)]()):window['history']['pushState']('','',_0x332356[_0x206177(0x385)]());}[_0x4a9aaf(0x2d6)](_0x46bdd4,_0x1db732=!0x1){const _0x1f6d49=_0x4a9aaf,_0x315e93=new URL(window[_0x1f6d49(0x19e)][_0x1f6d49(0x319)]);_0x315e93[_0x1f6d49(0x24e)]['delete'](_0x46bdd4),_0x1db732?window[_0x1f6d49(0x34b)][_0x1f6d49(0x1ba)]('','',_0x315e93[_0x1f6d49(0x385)]()):window[_0x1f6d49(0x34b)][_0x1f6d49(0xf5)]('','',_0x315e93[_0x1f6d49(0x385)]());}['getParam'](_0x8e4e7){const _0x2f710f=_0x4a9aaf;var _0x9ced2c;return(_0x9ced2c=new URL(window[_0x2f710f(0x19e)]['href'])[_0x2f710f(0x24e)][_0x2f710f(0x1ea)](_0x8e4e7))!=null?_0x9ced2c:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x4a9aaf(0x36e)],Jt=(_0x3ab1f1,_0x5c223c,_0x50f863)=>_0x5c223c in _0x3ab1f1?qt(_0x3ab1f1,_0x5c223c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50f863}):_0x3ab1f1[_0x5c223c]=_0x50f863,Zt=(_0x5294fe,_0x46ea8b,_0x39502a,_0x38ddb7)=>{for(var _0x1dad1a=_0x38ddb7>0x1?void 0x0:_0x38ddb7?zt(_0x46ea8b,_0x39502a):_0x46ea8b,_0x2a0c4c=_0x5294fe['length']-0x1,_0x5ae870;_0x2a0c4c>=0x0;_0x2a0c4c--)(_0x5ae870=_0x5294fe[_0x2a0c4c])&&(_0x1dad1a=_0x5ae870(_0x1dad1a)||_0x1dad1a);return _0x1dad1a;},he=(_0xd30034,_0x156947)=>(_0x21dd77,_0x5e2f6f)=>_0x156947(_0x21dd77,_0x5e2f6f,_0xd30034),Qt=(_0x9c7d16,_0x40428d,_0x7c8d2b)=>Jt(_0x9c7d16,_0x40428d+'',_0x7c8d2b);const es=_0x4a9aaf(0x342);exports[_0x4a9aaf(0x2b2)]=class extends a['Plugin']{constructor(_0xd12b84=Ue,_0x1d2d13,_0x3c41e8,_0x32b103){const _0x4aec64=_0x4a9aaf;super(),this[_0x4aec64(0x160)]=_0xd12b84,this[_0x4aec64(0x24a)]=_0x1d2d13,this[_0x4aec64(0x372)]=_0x3c41e8,this['_configService']=_0x32b103;const {..._0x65293b}=a[_0x4aec64(0x2c0)]({},Ue,this[_0x4aec64(0x160)]);this[_0x4aec64(0x2f0)][_0x4aec64(0x2f6)]($t,_0x65293b);}[_0x4a9aaf(0x231)](){const _0x1ad0a8=_0x4a9aaf;this[_0x1ad0a8(0x215)](),this['_initDependencies']();}[_0x4a9aaf(0x25a)](){const _0x5b6b55=_0x4a9aaf;this[_0x5b6b55(0x140)]();}[_0x4a9aaf(0x215)](){const _0x39b92d=_0x4a9aaf;var _0x9051af;const _0x35c56b=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x39b92d(0x186)],{'useClass':G[_0x39b92d(0x1cd)]}],[u[_0x39b92d(0x21b)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x39b92d(0x145)](this[_0x39b92d(0x372)],a['mergeOverrideWithDependencies'](_0x35c56b,(_0x9051af=this['_config'])==null?void 0x0:_0x9051af[_0x39b92d(0x332)]));}[_0x4a9aaf(0x140)](){const _0x22a4ab=_0x4a9aaf;this['disposeWithMe'](this['_renderManagerService'][_0x22a4ab(0x105)](a[_0x22a4ab(0x389)][_0x22a4ab(0xff)],[Ie])),this['disposeWithMe'](this['_renderManagerService'][_0x22a4ab(0x105)](a[_0x22a4ab(0x389)][_0x22a4ab(0x278)],[ve]));}[_0x4a9aaf(0x36d)](){const _0x91c5c3=_0x4a9aaf;a[_0x91c5c3(0x15f)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x91c5c3(0x191)]]]);}},Qt(exports[_0x4a9aaf(0x2b2)],_0x4a9aaf(0x20c),es),exports[_0x4a9aaf(0x2b2)]=Zt([a[_0x4a9aaf(0x31a)](u[_0x4a9aaf(0x13d)]),he(0x1,p[_0x4a9aaf(0x2c8)]),he(0x2,a[_0x4a9aaf(0x301)](a['Injector'])),he(0x3,a[_0x4a9aaf(0x2e3)])],exports[_0x4a9aaf(0x2b2)]);var ts=Object[_0x4a9aaf(0x36e)],ss=(_0x186fd3,_0x5a847e,_0x2a310a,_0x4b38f5)=>{const _0x34180c=_0x4a9aaf;for(var _0x20d111=_0x4b38f5>0x1?void 0x0:_0x4b38f5?ts(_0x5a847e,_0x2a310a):_0x5a847e,_0xc7a630=_0x186fd3[_0x34180c(0x1bc)]-0x1,_0x202665;_0xc7a630>=0x0;_0xc7a630--)(_0x202665=_0x186fd3[_0xc7a630])&&(_0x20d111=_0x202665(_0x20d111)||_0x20d111);return _0x20d111;},F=(_0xff7989,_0x130048)=>(_0x5e66ad,_0x5f2cbf)=>_0x130048(_0x5e66ad,_0x5f2cbf,_0xff7989);exports[_0x4a9aaf(0x374)]=class extends u[_0x4a9aaf(0x163)]{constructor(_0x29b987,_0x30a74f,_0x33bf65,_0x34317c,_0x908c8a){super(_0x29b987,_0x30a74f,_0x33bf65,_0x34317c,_0x908c8a);}async[_0x4a9aaf(0x109)](_0x44ecbe){const _0x3c4c3e=_0x4a9aaf,_0x2222ca=await this['_getSessionTicket'](),_0x48adb1=this[_0x3c4c3e(0x203)](_0x44ecbe,_0x2222ca);return this[_0x3c4c3e(0x13a)](_0x48adb1);}['_createSocketURL'](_0x2504a4,_0x240b8b){const _0x21eb9b=_0x4a9aaf,_0x4488a3=typeof window>'u'?new URL(_0x2504a4):new URL(_0x2504a4,window['location'][_0x21eb9b(0x29e)]);_0x4488a3[_0x21eb9b(0x24e)][_0x21eb9b(0x2b0)](_0x21eb9b(0x32f),_0x240b8b);const _0x3ed088=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x21eb9b(0x19e)][_0x21eb9b(0x2fa)]);return _0x3ed088['get'](_0x21eb9b(0x21f))&&_0x4488a3[_0x21eb9b(0x24e)][_0x21eb9b(0x2b0)](_0x21eb9b(0x21f),_0x3ed088[_0x21eb9b(0x1ea)](_0x21eb9b(0x21f))),_0x4488a3[_0x21eb9b(0x385)]();}async[_0x4a9aaf(0x26f)](){const _0x35f34f=_0x4a9aaf;var _0x92c5e0,_0x1ae1db,_0x41e618;const _0x5130b1=this[_0x35f34f(0x2f0)][_0x35f34f(0x2dc)](u[_0x35f34f(0x22c)]),_0x1a23c7=(_0x92c5e0=_0x5130b1==null?void 0x0:_0x5130b1[_0x35f34f(0x31d)])!=null?_0x92c5e0:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x41e618=(_0x1ae1db=(await this['_httpService'][_0x35f34f(0x1ea)](_0x1a23c7,{'headers':{'Content-Type':_0x35f34f(0x32b)}}))[_0x35f34f(0x2f9)])==null?void 0x0:_0x1ae1db[_0x35f34f(0x1bf)])!=null?_0x41e618:'';}},exports[_0x4a9aaf(0x374)]=ss([F(0x0,a[_0x4a9aaf(0x301)](a[_0x4a9aaf(0x1cf)])),F(0x1,a[_0x4a9aaf(0x301)](G[_0x4a9aaf(0x1e5)])),F(0x2,a[_0x4a9aaf(0x2e3)]),F(0x3,a[_0x4a9aaf(0x296)]),F(0x4,m['ISnapshotServerService'])],exports[_0x4a9aaf(0x374)]);const Me=0x7530,Le=_0x4a9aaf(0x233);class is extends a['Disposable']{constructor(){const _0x2c319a=_0x4a9aaf;super(),h(this,_0x2c319a(0x20f),a[_0x2c319a(0x323)]()),h(this,_0x2c319a(0x1b9),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x2c319a(0x188),null),h(this,_0x2c319a(0x26b),new Map()),h(this,'_unitStatus',new Map()),this[_0x2c319a(0x123)]();}[_0x4a9aaf(0x362)](){const _0x2962b7=_0x4a9aaf;super[_0x2962b7(0x362)](),this[_0x2962b7(0x26b)][_0x2962b7(0x2ad)]((_0x1a22c4,_0x377675)=>this[_0x2962b7(0x33d)](_0x377675)),this[_0x2962b7(0x188)]&&window['clearInterval'](this[_0x2962b7(0x188)]);}['getUnitStatus$'](_0x138b41){const _0x5c7bf6=_0x4a9aaf;return this['_ensureSubject'](_0x138b41)[_0x5c7bf6(0x10b)](d[_0x5c7bf6(0x1fb)]());}[_0x4a9aaf(0x29b)](_0x54e517){const _0x2189b2=_0x4a9aaf;this[_0x2189b2(0x1b9)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x2189b2(0x1b9)][_0x2189b2(0x1ce)](_0x54e517),this['_send']({'type':0x0,'memberID':this[_0x2189b2(0x20f)],'unitIDs':[_0x54e517],'isForwarded':!0x1});}[_0x4a9aaf(0x218)](_0x313525){const _0x56f0c9=_0x4a9aaf;this['_selfUnitIDs'][_0x56f0c9(0x1f0)](_0x313525),this[_0x56f0c9(0x1b9)][_0x56f0c9(0x352)]===0x0&&this['_heartbeatTimer']&&window[_0x56f0c9(0x1f6)](this[_0x56f0c9(0x188)]);}['_init'](){const _0x446608=_0x4a9aaf;this[_0x446608(0x2db)](a[_0x446608(0x10a)](d[_0x446608(0x35f)](window,_0x446608(0x2bf))[_0x446608(0x251)](_0x34628d=>{const _0x4fbc3a=_0x446608;if(_0x34628d['key']!==Le||!_0x34628d[_0x4fbc3a(0x30d)])return;const _0x3f7f3e=JSON[_0x4fbc3a(0x2cd)](_0x34628d[_0x4fbc3a(0x30d)]);this[_0x4fbc3a(0x14c)](_0x3f7f3e);}))),window[_0x446608(0x290)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x446608(0x20f)],'unitIDs':Array[_0x446608(0x37e)](this[_0x446608(0x1b9)])}));}['_handleEvent'](_0x109e9d){const _0x1a4228=_0x4a9aaf;switch(_0x109e9d[_0x1a4228(0x103)]){case 0x0:this['_handleJoinEvent'](_0x109e9d);break;case 0x1:this[_0x1a4228(0x1eb)](_0x109e9d);break;case 0x2:this[_0x1a4228(0x2ba)](_0x109e9d);break;}}[_0x4a9aaf(0x1c0)](_0x19faa4){const _0x2cad94=_0x4a9aaf,{unitIDs:_0x3ad9b7,memberID:_0x468a4f,isForwarded:_0x4abcba}=_0x19faa4;_0x3ad9b7['forEach'](_0x4b8e11=>{const _0x1897ee=_0x7693;if(!_0x4abcba&&this[_0x1897ee(0x2b6)][_0x1897ee(0x1d1)](_0x4b8e11)&&this[_0x1897ee(0x317)](_0x4b8e11)['next'](u[_0x1897ee(0x1d5)][_0x1897ee(0x327)]),!this[_0x1897ee(0x2b6)][_0x1897ee(0x1d1)](_0x4b8e11)||!this[_0x1897ee(0x2b6)][_0x1897ee(0x1ea)](_0x4b8e11)[_0x1897ee(0x1d1)](_0x468a4f)){const _0x1135ed=this[_0x1897ee(0x2b6)][_0x1897ee(0x1ea)](_0x4b8e11)||new Set();_0x1135ed[_0x1897ee(0x1ce)](_0x468a4f),this[_0x1897ee(0x2b6)]['set'](_0x4b8e11,_0x1135ed),this[_0x1897ee(0x204)](_0x468a4f);}}),_0x4abcba||this[_0x2cad94(0x221)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4a9aaf(0x204)](_0x41b265){const _0x28660b=_0x4a9aaf;this['_removeClearOtherTimer'](_0x41b265);const _0xa13100=window['setTimeout'](()=>{const _0x5a0420=_0x7693;this[_0x5a0420(0x2b6)]['forEach'](_0x3bd41e=>{_0x3bd41e['delete'](_0x41b265);});},Me*0x2);this[_0x28660b(0x26b)][_0x28660b(0x2b0)](_0x41b265,_0xa13100);}['_removeClearOtherTimer'](_0x6d2ec1){const _0x245a21=_0x4a9aaf;if(this['_clearOtherTimers'][_0x245a21(0x1d1)](_0x6d2ec1)){const _0x4cc580=this[_0x245a21(0x26b)][_0x245a21(0x1ea)](_0x6d2ec1);_0x4cc580&&window[_0x245a21(0x368)](_0x4cc580),this[_0x245a21(0x26b)][_0x245a21(0x2b0)](_0x6d2ec1,null);}}[_0x4a9aaf(0x1eb)](_0x2c91c8){const _0x2b0973=_0x4a9aaf,{memberID:_0x143b78,unitIDs:_0x11b68b}=_0x2c91c8;_0x11b68b[_0x2b0973(0x2ad)](_0x43550e=>{const _0x30fb37=_0x2b0973;var _0x5c31ec;const _0x636cae=this[_0x30fb37(0x2b6)][_0x30fb37(0x1ea)](_0x43550e);_0x636cae&&(_0x636cae[_0x30fb37(0x1f0)](_0x143b78),(_0x5c31ec=this[_0x30fb37(0x317)](_0x43550e))==null||_0x5c31ec['next'](_0x636cae[_0x30fb37(0x352)]===0x0?u[_0x30fb37(0x1d5)][_0x30fb37(0x2b4)]:u[_0x30fb37(0x1d5)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x143b78);}[_0x4a9aaf(0x2ba)](_0x1a8cf3){this['_scheduleClearOtherTimer'](_0x1a8cf3['memberID']);}[_0x4a9aaf(0x221)](_0x5d6b56){const _0x30cc56=_0x4a9aaf;localStorage[_0x30cc56(0x171)](Le,JSON[_0x30cc56(0x117)](_0x5d6b56));}[_0x4a9aaf(0x22d)](){const _0x129859=_0x4a9aaf;this[_0x129859(0x188)]=window[_0x129859(0x2ca)](()=>{const _0x53ded0=_0x129859;this[_0x53ded0(0x221)]({'type':0x2,'memberID':this[_0x53ded0(0x20f)]});},Me);}[_0x4a9aaf(0x317)](_0xac4c44){const _0x54b0c5=_0x4a9aaf;return this['_unitStatus'][_0x54b0c5(0x1d1)](_0xac4c44)||this[_0x54b0c5(0x240)][_0x54b0c5(0x2b0)](_0xac4c44,new d[(_0x54b0c5(0x172))](u[_0x54b0c5(0x1d5)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x54b0c5(0x240)][_0x54b0c5(0x1ea)](_0xac4c44);}}var Be=(_0x3feece=>(_0x3feece[_0x3feece[_0x4a9aaf(0x308)]=0x0]=_0x4a9aaf(0x308),_0x3feece[_0x3feece['OK']=0x1]='OK',_0x3feece[_0x3feece[_0x4a9aaf(0x2dd)]=0x2]=_0x4a9aaf(0x2dd),_0x3feece[_0x3feece['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x3feece[_0x3feece[_0x4a9aaf(0x214)]=0x4]=_0x4a9aaf(0x214),_0x3feece[_0x3feece['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x3feece[_0x3feece['ALREADY_EXISTS']=0x6]=_0x4a9aaf(0x1f2),_0x3feece[_0x3feece[_0x4a9aaf(0x142)]=0x7]=_0x4a9aaf(0x142),_0x3feece[_0x3feece[_0x4a9aaf(0x31e)]=0x8]=_0x4a9aaf(0x31e),_0x3feece[_0x3feece[_0x4a9aaf(0x2f2)]=0x9]=_0x4a9aaf(0x2f2),_0x3feece[_0x3feece['LOGIN_FAILED']=0xa]=_0x4a9aaf(0x19a),_0x3feece[_0x3feece['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a9aaf(0x1da),_0x3feece[_0x3feece[_0x4a9aaf(0x16b)]=0x1771]=_0x4a9aaf(0x16b),_0x3feece[_0x3feece[_0x4a9aaf(0x1c6)]=0x1772]=_0x4a9aaf(0x1c6),_0x3feece[_0x3feece[_0x4a9aaf(0x212)]=0x1773]=_0x4a9aaf(0x212),_0x3feece[_0x3feece['APPLY_REJECT']=0x1b59]=_0x4a9aaf(0x1f1),_0x3feece[_0x3feece[_0x4a9aaf(0x274)]=0x1b5a]=_0x4a9aaf(0x274),_0x3feece[_0x3feece[_0x4a9aaf(0x115)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x3feece[_0x3feece[_0x4a9aaf(0x107)]=0x1b5c]=_0x4a9aaf(0x107),_0x3feece[_0x3feece[_0x4a9aaf(0x1c5)]=0x1b5d]='APPLY_DUPLICATED',_0x3feece[_0x3feece['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x4a9aaf(0x272),_0x3feece[_0x3feece[_0x4a9aaf(0x17b)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3feece[_0x3feece['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x4a9aaf(0x297),_0x3feece[_0x3feece['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4a9aaf(0x136),_0x3feece[_0x3feece[_0x4a9aaf(0x282)]=0x232c]=_0x4a9aaf(0x282),_0x3feece[_0x3feece['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x3feece[_0x3feece['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4a9aaf(0x13c),_0x3feece[_0x3feece[_0x4a9aaf(0x1b3)]=0x2712]=_0x4a9aaf(0x1b3),_0x3feece[_0x3feece[_0x4a9aaf(0x377)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3feece[_0x3feece[_0x4a9aaf(0x27a)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3feece[_0x3feece[_0x4a9aaf(0x22a)]=0x271a]=_0x4a9aaf(0x22a),_0x3feece[_0x3feece[_0x4a9aaf(0x10e)]=0x271b]=_0x4a9aaf(0x10e),_0x3feece[_0x3feece['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x4a9aaf(0x378),_0x3feece[_0x3feece[_0x4a9aaf(0x138)]=0x271d]=_0x4a9aaf(0x138),_0x3feece[_0x3feece[_0x4a9aaf(0x28e)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x3feece[_0x3feece[_0x4a9aaf(0x1cb)]=0x271f]=_0x4a9aaf(0x1cb),_0x3feece[_0x3feece['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4a9aaf(0x122),_0x3feece[_0x3feece[_0x4a9aaf(0x1b7)]=0x2ee1]=_0x4a9aaf(0x1b7),_0x3feece[_0x3feece[_0x4a9aaf(0x349)]=0x2ee2]=_0x4a9aaf(0x349),_0x3feece[_0x3feece[_0x4a9aaf(0x2e9)]=0x2ee3]=_0x4a9aaf(0x2e9),_0x3feece[_0x3feece['USER_NOT_INVITED_CODE']=0x2ee4]=_0x4a9aaf(0x27d),_0x3feece[_0x3feece[_0x4a9aaf(0x255)]=0x2ee5]=_0x4a9aaf(0x255),_0x3feece[_0x3feece[_0x4a9aaf(0x1a6)]=0x32c9]=_0x4a9aaf(0x1a6),_0x3feece[_0x3feece[_0x4a9aaf(0x358)]=0x32ca]=_0x4a9aaf(0x358),_0x3feece[_0x3feece[_0x4a9aaf(0x2d8)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x3feece[_0x3feece[_0x4a9aaf(0x252)]=-0x1]=_0x4a9aaf(0x252),_0x3feece))(Be||{}),ns=Object[_0x4a9aaf(0x36e)],rs=(_0x38eb4a,_0x285e89,_0x15ebab,_0x241cc8)=>{const _0x137898=_0x4a9aaf;for(var _0xffad1f=_0x241cc8>0x1?void 0x0:_0x241cc8?ns(_0x285e89,_0x15ebab):_0x285e89,_0x5a5a09=_0x38eb4a[_0x137898(0x1bc)]-0x1,_0xd6f46d;_0x5a5a09>=0x0;_0x5a5a09--)(_0xd6f46d=_0x38eb4a[_0x5a5a09])&&(_0xffad1f=_0xd6f46d(_0xffad1f)||_0xffad1f);return _0xffad1f;},ue=(_0x42e57c,_0x57dbe8)=>(_0x4f0124,_0x3e802f)=>_0x57dbe8(_0x4f0124,_0x3e802f,_0x42e57c);exports[_0x4a9aaf(0x383)]=class extends a[_0x4a9aaf(0x149)]{constructor(_0x170096,_0x16ce67,_0x2a331e){const _0x62bcef=_0x4a9aaf;super(),this['_instanceService']=_0x170096,this[_0x62bcef(0x34c)]=_0x16ce67,this[_0x62bcef(0x2f0)]=_0x2a331e;}async['runOnServer'](_0x5a5242,_0x2eaef4,_0x4d0c91,..._0x3afc77){const _0x3e68c8=_0x4a9aaf;var _0x3be8b3,_0x5e9c70,_0x2f73dc,_0x1efaa7;const _0x4e7524=this['_instanceService']['getFocusedUnit']();if(!_0x4e7524)throw new Error(_0x3e68c8(0x249));const _0x1873c7=((_0x3be8b3=this[_0x3e68c8(0x2f0)][_0x3e68c8(0x2dc)](u[_0x3e68c8(0xf7)]))!=null?_0x3be8b3:u[_0x3e68c8(0x2b9)])+'/'+_0x5a5242+_0x3e68c8(0x292)+_0x2eaef4,_0x337799=new URL(window[_0x3e68c8(0x19e)][_0x3e68c8(0x319)]),_0x3a751b={'scriptId':_0x5a5242,'runId':(_0x5e9c70=_0x337799['searchParams'][_0x3e68c8(0x1ea)](_0x3e68c8(0x21f)))!=null?_0x5e9c70:'','function':_0x2eaef4,'unitId':_0x4e7524[_0x3e68c8(0x182)](),'argsOfFunction':JSON[_0x3e68c8(0x117)](_0x3afc77),'invokeId':(_0x2f73dc=_0x4d0c91[_0x3e68c8(0x28d)])!=null?_0x2f73dc:'','executionId':(_0x1efaa7=_0x4d0c91['executionId'])!=null?_0x1efaa7:''};try{const _0xa7b6e0=await this[_0x3e68c8(0x34c)][_0x3e68c8(0x305)](_0x1873c7,{'body':_0x3a751b});return _0xa7b6e0[_0x3e68c8(0x2f9)][_0x3e68c8(0x33b)]&&_0xa7b6e0[_0x3e68c8(0x2f9)][_0x3e68c8(0x33b)][_0x3e68c8(0x345)]!==Be['OK']?_0x3e68c8(0x1ad):_0xa7b6e0[_0x3e68c8(0x2f9)][_0x3e68c8(0x1ca)];}catch{return _0x3e68c8(0x1ad);}}},exports[_0x4a9aaf(0x383)]=rs([ue(0x0,a[_0x4a9aaf(0x216)]),ue(0x1,a[_0x4a9aaf(0x301)](G[_0x4a9aaf(0x1e5)])),ue(0x2,a[_0x4a9aaf(0x2e3)])],exports[_0x4a9aaf(0x383)]),exports[_0x4a9aaf(0x21a)]=xe,exports[_0x4a9aaf(0x1ee)]=be,exports[_0x4a9aaf(0x1c1)]=Pe,exports[_0x4a9aaf(0x37c)]=is,exports[_0x4a9aaf(0x127)]=je;
1
+ 'use strict';const _0x4711bf=_0x5c67;(function(_0x41e327,_0x35a396){const _0x4f6813=_0x5c67,_0x1dfbf9=_0x41e327();while(!![]){try{const _0x2efa00=parseInt(_0x4f6813(0x28f))/0x1*(parseInt(_0x4f6813(0x1cc))/0x2)+parseInt(_0x4f6813(0x2c9))/0x3*(-parseInt(_0x4f6813(0x20b))/0x4)+parseInt(_0x4f6813(0x308))/0x5*(parseInt(_0x4f6813(0x169))/0x6)+-parseInt(_0x4f6813(0x3e4))/0x7+-parseInt(_0x4f6813(0x1ef))/0x8*(-parseInt(_0x4f6813(0x261))/0x9)+parseInt(_0x4f6813(0x20f))/0xa+-parseInt(_0x4f6813(0x253))/0xb*(parseInt(_0x4f6813(0x1ae))/0xc);if(_0x2efa00===_0x35a396)break;else _0x1dfbf9['push'](_0x1dfbf9['shift']());}catch(_0x59fd32){_0x1dfbf9['push'](_0x1dfbf9['shift']());}}}(_0x1141,0xae54b));var Ve=Object[_0x4711bf(0x227)],Xe=(_0x590cf2,_0x487620,_0x168f1e)=>_0x487620 in _0x590cf2?Ve(_0x590cf2,_0x487620,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x168f1e}):_0x590cf2[_0x487620]=_0x168f1e,h=(_0x258d92,_0x5c6fd2,_0xae2ad4)=>Xe(_0x258d92,typeof _0x5c6fd2!=_0x4711bf(0x357)?_0x5c6fd2+'':_0x5c6fd2,_0xae2ad4);Object['defineProperty'](exports,Symbol[_0x4711bf(0x273)],{'value':'Module'});const u=require(_0x4711bf(0x23e)),a=require(_0x4711bf(0x3bb)),p=require(_0x4711bf(0x3cd)),G=require('@univerjs/network'),b=require(_0x4711bf(0x279)),Ge=require(_0x4711bf(0x3d2)),d=require('rxjs'),Y=require('@univerjs/docs'),m=require(_0x4711bf(0x25c)),Ee=require(_0x4711bf(0x1b4)),g=require(_0x4711bf(0x39d)),$=require('rxjs/operators'),X=require(_0x4711bf(0x1f6)),w=require(_0x4711bf(0x2b3)),T=require('@univerjs/ui'),D=require(_0x4711bf(0x2c0)),M=require(_0x4711bf(0x369)),Ke=require(_0x4711bf(0x384));var qe=Object[_0x4711bf(0x1fe)],ze=(_0x72f955,_0x41083f,_0x3daff1,_0x1bc5df)=>{const _0x58726c=_0x4711bf;for(var _0x3afc27=_0x1bc5df>0x1?void 0x0:_0x1bc5df?qe(_0x41083f,_0x3daff1):_0x41083f,_0x2554bc=_0x72f955[_0x58726c(0x246)]-0x1,_0x4aacd9;_0x2554bc>=0x0;_0x2554bc--)(_0x4aacd9=_0x72f955[_0x2554bc])&&(_0x3afc27=_0x4aacd9(_0x3afc27)||_0x3afc27);return _0x3afc27;},Te=(_0x463f5a,_0x2ec3e2)=>(_0x5e3490,_0x20c542)=>_0x2ec3e2(_0x5e3490,_0x20c542,_0x463f5a);let de=class extends a[_0x4711bf(0x1b0)]{constructor(_0x5ef3df,_0x3a01a5){const _0x348219=_0x4711bf;super(),this[_0x348219(0x363)]=_0x5ef3df,this[_0x348219(0x1f5)]=_0x3a01a5,this[_0x348219(0x1dc)]();}[_0x4711bf(0x1dc)](){const _0x384fed=_0x4711bf,_0x38f829=this;this[_0x384fed(0x2e9)](this[_0x384fed(0x363)][_0x384fed(0x278)]({'onBeforePasteImage':async _0x2cf4e3=>{const _0x4db225=_0x384fed,_0x552539=await _0x38f829['_imageIoService'][_0x4db225(0x199)](_0x2cf4e3);return _0x552539?{'source':_0x552539['source'],'imageSourceType':_0x552539[_0x4db225(0x1df)]}:null;}}));}};de=ze([Te(0x0,b[_0x4711bf(0x292)]),Te(0x1,Ge[_0x4711bf(0x244)])],de);const Oe=['purple.300','jiqing.500',_0x4711bf(0x216),_0x4711bf(0x2ea),'blue.400','yellow.400'];class me extends a[_0x4711bf(0x3ac)]{constructor(){const _0x1002c8=_0x4711bf;super(...arguments),h(this,_0x1002c8(0x3c0),new Map()),h(this,'_colorIndex',0x0);}[_0x4711bf(0x20e)](_0x3e8f23){const _0x1925b8=_0x4711bf;if(this['_assignedColors'][_0x1925b8(0x3ec)](_0x3e8f23))return this['_assignedColors'][_0x1925b8(0x3bc)](_0x3e8f23);const _0x250633=Oe[this[_0x1925b8(0x247)]];return this[_0x1925b8(0x247)]=(this[_0x1925b8(0x247)]+0x1)%Oe[_0x1925b8(0x246)],this['_assignedColors'][_0x1925b8(0x1cb)](_0x3e8f23,_0x250633),_0x250633;}}function we(_0x104955){const _0x125ec7=_0x4711bf;let _0xd79898='';for(const _0x3c735a of _0x104955){const {startOffset:_0xabd10e,endOffset:_0x9c00e8,isActive:_0x3081c0,rangeType:_0xb6b248,segmentId:_0x103776,segmentPage:_0x28183b}=_0x3c735a;_0xd79898[_0x125ec7(0x246)]&&(_0xd79898+=','),_0xd79898+=_0xabd10e+':'+_0x9c00e8+':'+(_0x3081c0?'1':'0')+':'+_0xb6b248+':'+_0x103776+':'+_0x28183b;}return _0xd79898;}function Je(_0x13e0be){const _0x2902d1=_0x4711bf,_0x56e643=_0x13e0be[_0x2902d1(0x3a4)](','),_0x24de2d=[];for(const _0x3a409d of _0x56e643){const [_0x519560,_0x21aa37,_0xb0421e,_0x437d19,_0x11a61e,_0x34f9af]=_0x3a409d[_0x2902d1(0x3a4)](':');_0x24de2d['push']({'startOffset':Number(_0x519560),'endOffset':Number(_0x21aa37),'collapsed':_0x519560===_0x21aa37,'isActive':_0xb0421e==='1','rangeType':_0x437d19===a[_0x2902d1(0x21e)][_0x2902d1(0x36c)]?a['DOC_RANGE_TYPE'][_0x2902d1(0x36c)]:a[_0x2902d1(0x21e)][_0x2902d1(0x29f)],'segmentId':typeof _0x11a61e=='string'?String(_0x11a61e):'','segmentPage':Number(_0x34f9af!=null?_0x34f9af:-0x1)});}return _0x24de2d[_0x2902d1(0x2ba)](_0x52c82f=>_0x52c82f[_0x2902d1(0x3d3)])||(_0x24de2d[0x0]['isActive']=!0x0),_0x24de2d;}class Ce extends a[_0x4711bf(0x1b0)]{constructor(){const _0x556246=_0x4711bf;super(...arguments),h(this,_0x556246(0x1ed),new d['BehaviorSubject'](null)),h(this,'collabCursorState$',this[_0x556246(0x1ed)][_0x556246(0x2e1)]());}[_0x4711bf(0x307)](_0xaa1529){const _0x5ac816=_0x4711bf,{unitID:_0x5c23d4,memberID:_0x16fc80,textRanges:_0x11fc2f}=_0xaa1529,_0x1732a4=we(_0x11fc2f);if(_0x1732a4==='')return;const _0x436734={'unitID':_0x5c23d4,'memberID':_0x16fc80,'selection':_0x1732a4};this[_0x5ac816(0x1ed)]['next'](_0x436734);}}var Ze=Object[_0x4711bf(0x1fe)],Qe=(_0x3f481b,_0x5b5b42,_0x1bc91c,_0x4cfc27)=>{const _0x15cc18=_0x4711bf;for(var _0x2ff2d2=_0x4cfc27>0x1?void 0x0:_0x4cfc27?Ze(_0x5b5b42,_0x1bc91c):_0x5b5b42,_0x5eb20a=_0x3f481b[_0x15cc18(0x246)]-0x1,_0x2d0b6e;_0x5eb20a>=0x0;_0x5eb20a--)(_0x2d0b6e=_0x3f481b[_0x5eb20a])&&(_0x2ff2d2=_0x2d0b6e(_0x2ff2d2)||_0x2ff2d2);return _0x2ff2d2;},L=(_0x567849,_0x410ab6)=>(_0x19f8a7,_0x351eab)=>_0x410ab6(_0x19f8a7,_0x351eab,_0x567849);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x492156,_0x1ceadf,_0x5e3a46,_0x878261,_0x46e833,_0x598313,_0x3519b3,_0x45189f,_0x5c1809){const _0x55fb84=_0x4711bf;super(),h(this,_0x55fb84(0x383),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,_0x55fb84(0x177),this[_0x55fb84(0x376)][_0x55fb84(0x2e1)]()),h(this,_0x55fb84(0x30e),new d['BehaviorSubject']([])),h(this,_0x55fb84(0x341),this[_0x55fb84(0x30e)][_0x55fb84(0x289)](d[_0x55fb84(0x27a)](et))),h(this,_0x55fb84(0x3ea),a[_0x55fb84(0x3b5)](_0x3c9c9f=>{const _0x57612b=_0x55fb84,_0x2d07f5={'eventID':m[_0x57612b(0x191)][_0x57612b(0x2ec)],'data':{'unitID':this['unitID'],'memberID':this[_0x57612b(0x1ec)]['getMemberID'](),'selection':we(_0x3c9c9f)}};this[_0x57612b(0x1ec)][_0x57612b(0x26b)](_0x2d07f5,this[_0x57612b(0x2e3)]);},tt)),(this['unitID']=_0x492156,this[_0x55fb84(0x1ec)]=_0x1ceadf,this['_injector']=_0x5e3a46,this[_0x55fb84(0x37e)]=_0x878261,this[_0x55fb84(0x1e5)]=_0x46e833,this[_0x55fb84(0x1a3)]=_0x598313,this[_0x55fb84(0x245)]=_0x3519b3,this['_univerInstanceService']=_0x45189f,this[_0x55fb84(0x1ce)]=_0x5c1809);}get[_0x4711bf(0x1f0)](){const _0x2e55e6=_0x4711bf;return this['_cursorInfo$'][_0x2e55e6(0x397)]();}get[_0x4711bf(0x328)](){const _0x295a60=_0x4711bf;return this['_roomMembers$'][_0x295a60(0x397)]();}['dispose'](){const _0x42e58f=_0x4711bf;super[_0x42e58f(0x192)](),this[_0x42e58f(0x376)]['next'](new Map()),this[_0x42e58f(0x376)]['complete'](),this[_0x42e58f(0x30e)][_0x42e58f(0x33e)]([]),this[_0x42e58f(0x30e)][_0x42e58f(0x1fa)]();}['init'](){const _0x10c4d7=_0x4711bf;this[_0x10c4d7(0x1dc)]||(this['_init']=!0x0,this[_0x10c4d7(0x1ec)][_0x10c4d7(0x394)][_0x10c4d7(0x289)](d[_0x10c4d7(0x321)](this['dispose$']))[_0x10c4d7(0x297)](_0x3e0585=>{const _0xe496cd=_0x10c4d7;_0x3e0585===u[_0xe496cd(0x18f)][_0xe496cd(0x3a6)]?this[_0xe496cd(0x24a)]():this[_0xe496cd(0x225)]();}),this[_0x10c4d7(0x1ec)][_0x10c4d7(0x39c)]['pipe'](d[_0x10c4d7(0x321)](this['dispose$']))[_0x10c4d7(0x297)](_0x2671b4=>{const _0x349cd6=_0x10c4d7,_0x3f2ebf=_0x2671b4[_0x349cd6(0x288)];_0x3f2ebf===m['CollaborationEvent'][_0x349cd6(0x2ec)]&&this[_0x349cd6(0x183)](_0x2671b4),_0x3f2ebf===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x349cd6(0x15d)](_0x2671b4);}),this['disposeWithMe'](this['_commandService'][_0x10c4d7(0x35c)](_0x5e917f=>{const _0x3d96eb=_0x10c4d7,_0x74dd3b=_0x5e917f[_0x3d96eb(0x276)];_0x74dd3b!=null&&this[_0x3d96eb(0x383)]&&_0x5e917f['id']===Y[_0x3d96eb(0x1e8)]['id']&&_0x74dd3b[_0x3d96eb(0x1d4)]===this['unitID']&&_0x74dd3b[_0x3d96eb(0x248)]===!0x1&&_0x74dd3b[_0x3d96eb(0x1a8)][_0x3d96eb(0x246)]>0x0&&this[_0x3d96eb(0x3ea)](_0x74dd3b['ranges']);})),this[_0x10c4d7(0x1a3)][_0x10c4d7(0x21c)]['pipe'](d[_0x10c4d7(0x321)](this['dispose$']))[_0x10c4d7(0x297)](_0x2d3376=>{const _0x14993c=_0x10c4d7;if((_0x2d3376==null?void 0x0:_0x2d3376['unitID'])!==this['unitID'])return;const _0x42fb6d={'eventID':m[_0x14993c(0x191)]['UPDATE_CURSOR'],'data':_0x2d3376};this[_0x14993c(0x183)](_0x42fb6d);}),this[_0x10c4d7(0x2e9)](this[_0x10c4d7(0x1ce)][_0x10c4d7(0x35c)](_0x46852d=>{const _0x45e859=_0x10c4d7;if(_0x46852d[_0x45e859(0x276)]==null)return;const _0x147403=_0x46852d['params'];if(_0x46852d['id']!==Y[_0x45e859(0x390)]['id']||_0x147403[_0x45e859(0x1d4)]!==this[_0x45e859(0x2e3)])return;const _0x4c7342={'id':_0x45e859(0x311),'params':_0x147403},_0x4ee49a=this[_0x45e859(0x1f0)];for(const [_0x4ebc9c,_0x1aec69]of _0x4ee49a){const _0x3bf4e5={'id':_0x45e859(0x311),'params':{'unitId':this[_0x45e859(0x2e3)],'actions':null,'textRanges':_0x1aec69[_0x45e859(0x1a8)]}},_0x492814=this[_0x45e859(0x245)][_0x45e859(0x211)](_0x4c7342,_0x3bf4e5,!0x1);if(m[_0x45e859(0x34d)](_0x492814))throw _0x492814[_0x45e859(0x375)];_0x4ee49a[_0x45e859(0x1cb)](_0x4ebc9c,{..._0x1aec69,'ranges':_0x492814[_0x45e859(0x1d0)][_0x45e859(0x276)][_0x45e859(0x1de)]});}queueMicrotask(()=>{const _0x43daea=_0x45e859;this['_cursorInfo$'][_0x43daea(0x33e)](_0x4ee49a);});})));}[_0x4711bf(0x183)](_0x34d950){const _0x2320bc=_0x4711bf;var _0x45b277,_0xff6415;const {memberID:_0x131040,selection:_0xbb917a}=_0x34d950[_0x2320bc(0x3e7)],_0x30f525=Je(_0xbb917a),_0x577ee8=(_0xff6415=(_0x45b277=this[_0x2320bc(0x1e5)][_0x2320bc(0x1d1)](this[_0x2320bc(0x2e3)],_0x131040))==null?void 0x0:_0x45b277[_0x2320bc(0x179)])!=null?_0xff6415:_0x2320bc(0x3cc),_0x26440f={'color':this[_0x2320bc(0x37e)][_0x2320bc(0x20e)](_0x131040),'name':_0x577ee8,'ranges':_0x30f525},_0x1785b4=this['cursorInfo'];_0x1785b4[_0x2320bc(0x1cb)](_0x131040,_0x26440f),this['_cursorInfo$'][_0x2320bc(0x33e)](_0x1785b4);}[_0x4711bf(0x15d)](_0x541523){const _0x19162e=_0x4711bf,{memberID:_0x565031}=_0x541523[_0x19162e(0x3e7)],_0x6b3ec7=this[_0x19162e(0x1f0)];_0x6b3ec7[_0x19162e(0x1d6)](_0x565031),this['_cursorInfo$'][_0x19162e(0x33e)](_0x6b3ec7);}[_0x4711bf(0x24a)](){const _0x36913f=_0x4711bf;var _0x2a075b;if(this[_0x36913f(0x383)]=!0x0,((_0x2a075b=this[_0x36913f(0x335)][_0x36913f(0x2f5)]())==null?void 0x0:_0x2a075b['getUnitId']())!==this[_0x36913f(0x2e3)])return;const _0x4c26c0=this[_0x36913f(0x2db)]['get'](Y[_0x36913f(0x3dd)])[_0x36913f(0x344)]();Array[_0x36913f(0x374)](_0x4c26c0)&&_0x4c26c0[_0x36913f(0x246)]>0x0&&this['_updateLocalCursor'](_0x4c26c0);}[_0x4711bf(0x225)](){const _0x2613d6=_0x4711bf;this[_0x2613d6(0x383)]=!0x1;}};fe=Qe([L(0x2,a[_0x4711bf(0x209)](a[_0x4711bf(0x187)])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u[_0x4711bf(0x208)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x4711bf(0x2d5)]),L(0x7,a[_0x4711bf(0x21a)]),L(0x8,a[_0x4711bf(0x38d)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x22e8fc,_0x5f2ca5,_0x51cfcb,_0x18229e)=>{const _0x571b41=_0x4711bf;for(var _0x2f83f4=_0x18229e>0x1?void 0x0:_0x18229e?st(_0x5f2ca5,_0x51cfcb):_0x5f2ca5,_0x1e94c5=_0x22e8fc[_0x571b41(0x246)]-0x1,_0x5a0210;_0x1e94c5>=0x0;_0x1e94c5--)(_0x5a0210=_0x22e8fc[_0x1e94c5])&&(_0x2f83f4=_0x5a0210(_0x2f83f4)||_0x2f83f4);return _0x2f83f4;},A=(_0x547080,_0x37d0e6)=>(_0x4cf808,_0x17b25c)=>_0x37d0e6(_0x4cf808,_0x17b25c,_0x547080);const nt=0x12c,rt=0x64,ot=()=>{let _0xf1b102=[],_0x19b2f5=!0x1;return _0x376414=>{_0xf1b102['push'](_0x376414),_0x19b2f5||(_0x19b2f5=!0x0,setTimeout(()=>{const _0x10ab5e=_0x5c67;_0xf1b102[_0x10ab5e(0x22b)](_0x130073=>_0x130073()),_0xf1b102=[],_0x19b2f5=!0x1;}));};};let Se=class extends a[_0x4711bf(0x1b0)]{constructor(_0x4d95be,_0x5970cd,_0x269c14,_0x418ec1,_0x144db2,_0x2a2cf1,_0x4ad5bc,_0x51a72){const _0x16905f=_0x4711bf;super(),h(this,'_online',!0x1),h(this,_0x16905f(0x1dc),!0x1),h(this,_0x16905f(0x376),new d[(_0x16905f(0x306))](new Map())),h(this,'cursorInfo$',this[_0x16905f(0x376)][_0x16905f(0x2e1)]()),h(this,'_roomMembers$',new d[(_0x16905f(0x306))]([])),h(this,_0x16905f(0x341),this[_0x16905f(0x30e)][_0x16905f(0x289)](d['debounceTime'](nt))),h(this,_0x16905f(0x3ea),a[_0x16905f(0x3b5)]((_0x4c353b,_0x3b81bd)=>{const _0x1f14d9=_0x16905f,_0x10d47a={'eventID':m[_0x1f14d9(0x191)][_0x1f14d9(0x2ec)],'data':{'unitID':this[_0x1f14d9(0x2e3)],'memberID':this[_0x1f14d9(0x1ec)][_0x1f14d9(0x1d8)](),'selection':Ee[_0x1f14d9(0x2b7)](_0x4c353b,_0x3b81bd[_0x1f14d9(0x1dd)])}};this[_0x1f14d9(0x1ec)][_0x1f14d9(0x26b)](_0x10d47a,this[_0x1f14d9(0x2e3)]);},rt)),(this['unitID']=_0x4d95be,this[_0x16905f(0x1ec)]=_0x5970cd,this['_injector']=_0x269c14,this[_0x16905f(0x37e)]=_0x418ec1,this['_memberService']=_0x144db2,this[_0x16905f(0x335)]=_0x2a2cf1,this[_0x16905f(0x1ce)]=_0x4ad5bc,this[_0x16905f(0x201)]=_0x51a72);}get[_0x4711bf(0x1f0)](){const _0x5f02c4=_0x4711bf;return this[_0x5f02c4(0x376)][_0x5f02c4(0x397)]();}get[_0x4711bf(0x328)](){const _0x53019d=_0x4711bf;return this[_0x53019d(0x30e)][_0x53019d(0x397)]();}[_0x4711bf(0x192)](){const _0xdce248=_0x4711bf;super[_0xdce248(0x192)](),this[_0xdce248(0x376)][_0xdce248(0x33e)](new Map()),this[_0xdce248(0x376)][_0xdce248(0x1fa)](),this['_roomMembers$']['next']([]),this[_0xdce248(0x30e)][_0xdce248(0x1fa)]();}[_0x4711bf(0x1b1)](){const _0x2edbc1=_0x4711bf;this[_0x2edbc1(0x1dc)]||(this['_init']=!0x0,this['_session'][_0x2edbc1(0x394)][_0x2edbc1(0x289)](d[_0x2edbc1(0x321)](this['dispose$']))[_0x2edbc1(0x297)](_0xd15a98=>{const _0x19661a=_0x2edbc1;_0xd15a98===u[_0x19661a(0x18f)]['ONLINE']?this[_0x19661a(0x24a)]():this['_toggleOffline']();}),this[_0x2edbc1(0x1ec)][_0x2edbc1(0x39c)][_0x2edbc1(0x289)](d['takeUntil'](this[_0x2edbc1(0x20c)]))[_0x2edbc1(0x297)](_0x4e7ddc=>{const _0x15065e=_0x2edbc1,_0x3343f5=_0x4e7ddc[_0x15065e(0x288)];_0x3343f5===m[_0x15065e(0x191)][_0x15065e(0x2ec)]&&this['_onCursorUpdate'](_0x4e7ddc),_0x3343f5===m[_0x15065e(0x191)][_0x15065e(0x38a)]&&this[_0x15065e(0x15d)](_0x4e7ddc);}),this['_onRefRangeChange'](),this[_0x2edbc1(0x2e9)](this[_0x2edbc1(0x1ce)][_0x2edbc1(0x35c)](_0x1ed43b=>{const _0x8a7023=_0x2edbc1;if(this['_online']&&_0x1ed43b['id']===g[_0x8a7023(0x389)]['id']&&_0x1ed43b[_0x8a7023(0x276)][_0x8a7023(0x1d4)]===this['unitID']){const _0x5a3d2b=_0x1ed43b[_0x8a7023(0x276)];this[_0x8a7023(0x3ea)](_0x5a3d2b[_0x8a7023(0x19a)],_0x5a3d2b[_0x8a7023(0x355)][0x0]);}})));}['_onCursorUpdate'](_0x2de6c7){const _0x521b0c=_0x4711bf;var _0x1f4448,_0x9d5a3a;const {memberID:_0x314a4a,selection:_0x2f496c}=_0x2de6c7[_0x521b0c(0x3e7)],{sheetName:_0x558269,range:_0x2e893b}=Ee[_0x521b0c(0x19b)](_0x2f496c),_0xbb42e1={'name':(_0x9d5a3a=(_0x1f4448=this[_0x521b0c(0x1e5)][_0x521b0c(0x1d1)](this['unitID'],_0x314a4a))==null?void 0x0:_0x1f4448['name'])!=null?_0x9d5a3a:'Unknown\x20user','range':this[_0x521b0c(0x15b)](_0x558269,_0x2e893b),'sheetID':_0x558269,'color':this[_0x521b0c(0x37e)]['assignAColorForMemberID'](_0x314a4a),'selection':_0x2f496c},_0x440d8a=this['cursorInfo'];_0x440d8a[_0x521b0c(0x1cb)](_0x314a4a,_0xbb42e1),this[_0x521b0c(0x376)][_0x521b0c(0x33e)](_0x440d8a);}[_0x4711bf(0x15d)](_0xc527f4){const _0x2dad27=_0x4711bf,{memberID:_0x217fb5}=_0xc527f4[_0x2dad27(0x3e7)],_0x4b8cb3=this[_0x2dad27(0x1f0)];_0x4b8cb3[_0x2dad27(0x1d6)](_0x217fb5),this[_0x2dad27(0x376)][_0x2dad27(0x33e)](_0x4b8cb3);}[_0x4711bf(0x15b)](_0x2f609b,_0x36a63f){const _0x20ad89=_0x4711bf;var _0x30f524,_0xea6784;const _0x5e75a5=(_0xea6784=(_0x30f524=this[_0x20ad89(0x335)]['getUniverSheetInstance'](this[_0x20ad89(0x2e3)]))==null?void 0x0:_0x30f524[_0x20ad89(0x249)](_0x2f609b))==null?void 0x0:_0xea6784[_0x20ad89(0x351)]();return(_0x5e75a5==null?void 0x0:_0x5e75a5[_0x20ad89(0x232)](_0x2442cc=>a[_0x20ad89(0x2e0)][_0x20ad89(0x203)](_0x2442cc,_0x36a63f)))||_0x36a63f;}['_onRefRangeChange'](){const _0x25cc04=_0x4711bf,_0x28df5c=new a[(_0x25cc04(0x36a))](),_0x2f4bb1=ot(),_0xe0e96d=()=>{const _0x4942db=_0x25cc04;_0x28df5c[_0x4942db(0x192)]();const _0x20a1f8=(_0x131603,_0x12e74e,_0x39bfe0,_0x4460d9)=>{const _0x537fba=_0x4942db;let _0x489ffe=[];switch(_0x131603['id']){case g[_0x537fba(0x18a)][_0x537fba(0x309)]:{_0x489ffe=g['handleDeleteRangeMoveLeft'](_0x131603,_0x4460d9);break;}case g[_0x537fba(0x18a)][_0x537fba(0x186)]:{_0x489ffe=g[_0x537fba(0x274)](_0x131603,_0x4460d9);break;}case g['EffectRefRangId'][_0x537fba(0x180)]:{_0x489ffe=g[_0x537fba(0x25d)](_0x131603,_0x4460d9);break;}case g[_0x537fba(0x18a)]['InsertRangeMoveDownCommandId']:{_0x489ffe=g[_0x537fba(0x348)](_0x131603,_0x4460d9);break;}case g[_0x537fba(0x18a)][_0x537fba(0x3d0)]:{_0x489ffe=g[_0x537fba(0x388)](_0x131603,_0x4460d9);break;}case g[_0x537fba(0x18a)][_0x537fba(0x399)]:{_0x489ffe=g[_0x537fba(0x1d5)](_0x131603,_0x4460d9);break;}case g['EffectRefRangId'][_0x537fba(0x329)]:{_0x489ffe=g['handleMoveRange'](_0x131603,_0x4460d9);break;}case g[_0x537fba(0x18a)][_0x537fba(0x166)]:{_0x489ffe=g['handleIRemoveCol'](_0x131603,_0x4460d9);break;}case g[_0x537fba(0x18a)][_0x537fba(0x3ad)]:{_0x489ffe=g[_0x537fba(0x29d)](_0x131603,_0x4460d9);break;}}const _0x1a1ad0=g['runRefRangeMutations'](_0x489ffe,_0x4460d9),_0x3d2668=this[_0x537fba(0x1f0)]['get'](_0x12e74e);if(_0x3d2668&&_0x1a1ad0){const _0x41385b={..._0x3d2668,'range':_0x1a1ad0};this['cursorInfo'][_0x537fba(0x1cb)](_0x12e74e,_0x41385b),_0x2f4bb1(()=>{const _0x29640e=_0x537fba,_0x36e580=this[_0x29640e(0x201)][_0x29640e(0x25e)](_0x1a1ad0,_0x3dcdf6=>(_0x36e580[_0x29640e(0x192)](),_0x20a1f8(_0x3dcdf6,_0x12e74e,_0x39bfe0,_0x1a1ad0)));_0x28df5c['add'](_0x36e580);});}return{'redos':[],'undos':[]};};this[_0x4942db(0x1f0)][_0x4942db(0x22b)]((_0x11c9c1,_0x3a481c)=>{const _0x555972=_0x4942db,{range:_0x2812df,sheetID:_0xabd77b}=_0x11c9c1,_0x26678a=this[_0x555972(0x201)][_0x555972(0x25e)](_0x2812df,_0x10623a=>(_0x26678a[_0x555972(0x192)](),_0x20a1f8(_0x10623a,_0x3a481c,_0xabd77b,_0x2812df)));_0x28df5c[_0x555972(0x372)](_0x26678a);});};this[_0x25cc04(0x2e9)](a[_0x25cc04(0x3a0)](this['_cursorInfo$'][_0x25cc04(0x297)](()=>{_0xe0e96d();})));}[_0x4711bf(0x24a)](){const _0x52b5c2=_0x4711bf;var _0x19dd28,_0xe7eb02;if(this['_online']=!0x0,((_0x19dd28=this[_0x52b5c2(0x335)][_0x52b5c2(0x2f5)]())==null?void 0x0:_0x19dd28[_0x52b5c2(0x1bc)]())!==this['unitID'])return;const _0x3edc5b=(_0xe7eb02=this['_injector'][_0x52b5c2(0x3bc)](g[_0x52b5c2(0x3b7)])['getCurrentSelections']())==null?void 0x0:_0xe7eb02[0x0],_0x128a72=this[_0x52b5c2(0x335)][_0x52b5c2(0x265)](a['UniverInstanceType'][_0x52b5c2(0x1d7)])['getActiveSheet']();_0x3edc5b&&_0x128a72&&this[_0x52b5c2(0x3ea)](_0x128a72[_0x52b5c2(0x339)](),_0x3edc5b);}['_toggleOffline'](){const _0x406451=_0x4711bf;this[_0x406451(0x383)]=!0x1;}};Se=it([A(0x2,a[_0x4711bf(0x209)](a['Injector'])),A(0x3,a[_0x4711bf(0x209)](me)),A(0x4,a[_0x4711bf(0x209)](u['MemberService'])),A(0x5,a[_0x4711bf(0x21a)]),A(0x6,a[_0x4711bf(0x38d)]),A(0x7,a[_0x4711bf(0x209)](g[_0x4711bf(0x1ff)]))],Se);var at=Object[_0x4711bf(0x1fe)],ct=(_0x855a39,_0x40d8d8,_0x3a55d1,_0x1e8c2f)=>{const _0x3795ae=_0x4711bf;for(var _0x5ccd18=_0x1e8c2f>0x1?void 0x0:_0x1e8c2f?at(_0x40d8d8,_0x3a55d1):_0x40d8d8,_0x518f52=_0x855a39[_0x3795ae(0x246)]-0x1,_0x153d62;_0x518f52>=0x0;_0x518f52--)(_0x153d62=_0x855a39[_0x518f52])&&(_0x5ccd18=_0x153d62(_0x5ccd18)||_0x5ccd18);return _0x5ccd18;},ie=(_0xcce3b2,_0x455649)=>(_0x55d3fb,_0xe01d72)=>_0x455649(_0x55d3fb,_0xe01d72,_0xcce3b2);let x=class extends a['RxDisposable']{constructor(_0x396e4e,_0x280071,_0x391bce){const _0x1a25b3=_0x4711bf;super(),h(this,_0x1a25b3(0x263),new Map()),h(this,_0x1a25b3(0x2a3),new d[(_0x1a25b3(0x1c6))]()),(this['_univerInstanceService']=_0x396e4e,this[_0x1a25b3(0x2db)]=_0x280071,this[_0x1a25b3(0x3a1)]=_0x391bce,this['_init']());}[_0x4711bf(0x192)](){const _0x2e27e5=_0x4711bf;super[_0x2e27e5(0x192)](),this[_0x2e27e5(0x2a3)][_0x2e27e5(0x1fa)](),this[_0x2e27e5(0x263)][_0x2e27e5(0x22b)](_0x1343ab=>_0x1343ab['dispose']());}[_0x4711bf(0x15e)](_0x2f1a07){const _0x54e928=_0x4711bf;return this[_0x54e928(0x263)][_0x54e928(0x3ec)](_0x2f1a07)?this[_0x54e928(0x263)][_0x54e928(0x3bc)](_0x2f1a07)[_0x54e928(0x177)]:this['_entityInit$'][_0x54e928(0x289)](d[_0x54e928(0x24b)](_0x613056=>_0x613056[_0x54e928(0x2e3)]===_0x2f1a07),d[_0x54e928(0x29b)](_0x50c9bb=>_0x50c9bb[_0x54e928(0x177)]));}['_init'](){const _0x4bface=_0x4711bf;this[_0x4bface(0x335)][_0x4bface(0x29c)](a[_0x4bface(0x3cb)][_0x4bface(0x1d7)])[_0x4bface(0x289)](d[_0x4bface(0x321)](this[_0x4bface(0x20c)]))[_0x4bface(0x297)](async _0x4f8413=>{const _0x1a2a78=_0x4bface,_0xd31edc=_0x4f8413[_0x1a2a78(0x1bc)](),_0x552996=await this[_0x1a2a78(0x25f)](_0xd31edc);this[_0x1a2a78(0x2a3)][_0x1a2a78(0x33e)](_0x552996),this[_0x1a2a78(0x263)][_0x1a2a78(0x1cb)](_0xd31edc,_0x552996);}),this[_0x4bface(0x335)][_0x4bface(0x29c)](a[_0x4bface(0x3cb)]['UNIVER_DOC'])[_0x4bface(0x289)](d[_0x4bface(0x321)](this[_0x4bface(0x20c)]))[_0x4bface(0x289)](d[_0x4bface(0x24b)](_0x28101a=>!_0x28101a[_0x4bface(0x1bc)]()[_0x4bface(0x358)]('__')))[_0x4bface(0x297)](async _0x11fd63=>{const _0x237da5=_0x4bface,_0x4ba000=_0x11fd63[_0x237da5(0x1bc)](),_0x47b3cc=await this[_0x237da5(0x1e1)](_0x4ba000);this[_0x237da5(0x2a3)][_0x237da5(0x33e)](_0x47b3cc),this[_0x237da5(0x263)][_0x237da5(0x1cb)](_0x4ba000,_0x47b3cc);}),d[_0x4bface(0x32b)](this[_0x4bface(0x335)][_0x4bface(0x316)](a[_0x4bface(0x3cb)][_0x4bface(0x359)]),this[_0x4bface(0x335)][_0x4bface(0x316)](a[_0x4bface(0x3cb)][_0x4bface(0x1d7)]))['pipe'](d[_0x4bface(0x321)](this[_0x4bface(0x20c)]))['subscribe'](_0x55e6f=>{const _0xeaa9e3=_0x4bface,_0x4d9e5d=_0x55e6f['getUnitId'](),_0xf08a6d=this[_0xeaa9e3(0x263)][_0xeaa9e3(0x3bc)](_0x4d9e5d);_0xf08a6d&&(_0xf08a6d[_0xeaa9e3(0x192)](),this['_entities'][_0xeaa9e3(0x1d6)](_0x4d9e5d));});}async[_0x4711bf(0x25f)](_0x137c60){const _0x46a2fc=_0x4711bf,_0x6fc85c=await this[_0x46a2fc(0x3a1)][_0x46a2fc(0x161)](_0x137c60),_0x1cc121=this[_0x46a2fc(0x2db)]['createInstance'](Se,_0x137c60,_0x6fc85c);return _0x1cc121['init'](),_0x1cc121;}async[_0x4711bf(0x1e1)](_0x5d6c89){const _0x5aac8e=_0x4711bf,_0x3d8394=await this[_0x5aac8e(0x3a1)]['requireSession'](_0x5d6c89),_0x2dc92f=this[_0x5aac8e(0x2db)][_0x5aac8e(0x236)](fe,_0x5d6c89,_0x3d8394);return _0x2dc92f[_0x5aac8e(0x1b1)](),_0x2dc92f;}};x=ct([ie(0x0,a[_0x4711bf(0x21a)]),ie(0x1,a[_0x4711bf(0x209)](a[_0x4711bf(0x187)])),ie(0x2,a['Inject'](u[_0x4711bf(0x30a)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x106e50,_0x1a101d){const _0x44f1ed=_0x4711bf;let {radius:_0x455bb8,width:_0x10cfe7,height:_0x130f5a}=_0x1a101d;_0x455bb8=_0x455bb8!=null?_0x455bb8:0x0,_0x10cfe7=_0x10cfe7!=null?_0x10cfe7:0x1e,_0x130f5a=_0x130f5a!=null?_0x130f5a:0x1e;let _0x488664=0x0,_0x22b673=0x0,_0x3099f1=0x0;_0x488664=_0x22b673=_0x3099f1=Math[_0x44f1ed(0x334)](_0x455bb8,_0x10cfe7/0x2,_0x130f5a/0x2),_0x106e50['beginPath'](),_0x106e50[_0x44f1ed(0x1ad)](_0x488664,0x0),_0x106e50[_0x44f1ed(0x31d)](_0x10cfe7-_0x22b673,0x0),_0x106e50[_0x44f1ed(0x22c)](_0x10cfe7-_0x22b673,_0x22b673,_0x22b673,Math['PI']*0x3/0x2,0x0,!0x1),_0x106e50['lineTo'](_0x10cfe7,_0x130f5a-_0x3099f1),_0x106e50[_0x44f1ed(0x22c)](_0x10cfe7-_0x3099f1,_0x130f5a-_0x3099f1,_0x3099f1,0x0,Math['PI']/0x2,!0x1),_0x106e50[_0x44f1ed(0x31d)](0x0,_0x130f5a),_0x106e50[_0x44f1ed(0x31d)](0x0,_0x488664),_0x106e50[_0x44f1ed(0x22c)](_0x488664,_0x488664,_0x488664,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x106e50[_0x44f1ed(0x235)](),_0x1a101d['fill']&&(_0x106e50['save'](),_0x106e50[_0x44f1ed(0x2f9)]=_0x1a101d[_0x44f1ed(0x3c5)],_0x1a101d[_0x44f1ed(0x2a6)]===_0x44f1ed(0x1af)?_0x106e50[_0x44f1ed(0x3c5)]('evenodd'):_0x106e50['fill'](),_0x106e50[_0x44f1ed(0x1a7)]());}class ee extends p['Shape']{constructor(_0x111d03,_0x5eb457){const _0x42674c=_0x4711bf;super(_0x111d03,_0x5eb457),h(this,_0x42674c(0x3da)),h(this,_0x42674c(0x38e)),(this['color']=_0x5eb457==null?void 0x0:_0x5eb457[_0x42674c(0x3da)],this[_0x42674c(0x38e)]=_0x5eb457==null?void 0x0:_0x5eb457['text']);}static[_0x4711bf(0x1b9)](_0x2ca135,_0x11da10){const _0x5e427e=_0x4711bf,{text:_0x599923,color:_0x177b72}=_0x11da10;_0x2ca135[_0x5e427e(0x3a2)](),_0x2ca135[_0x5e427e(0x2ae)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x531a07=_0x2ca135[_0x5e427e(0x272)](_0x599923)[_0x5e427e(0x1e0)],_0x56ae2c=Math[_0x5e427e(0x334)](_0x531a07+0x2*ne,Re);_t(_0x2ca135,{'height':K,'radius':0x4,'width':_0x56ae2c,'fill':_0x177b72}),_0x2ca135[_0x5e427e(0x2f9)]=_0x5e427e(0x1d2);const _0x43576d=ne,_0x210de3=K-lt,_0x4a7c26=Re-0x2*ne;if(_0x531a07>_0x4a7c26){let _0x17ed9f='',_0x170a85=0x0;for(const _0x2f2c63 of _0x599923){const _0x116a87=_0x2ca135[_0x5e427e(0x272)](_0x2f2c63)[_0x5e427e(0x1e0)];if(_0x170a85+_0x116a87<=_0x4a7c26-_0x2ca135['measureText'](_0x5e427e(0x2fb))[_0x5e427e(0x1e0)])_0x17ed9f+=_0x2f2c63,_0x170a85+=_0x116a87;else{_0x17ed9f+=_0x5e427e(0x2fb);break;}}_0x2ca135['fillText'](_0x17ed9f,_0x43576d,_0x210de3);}else _0x2ca135[_0x5e427e(0x32e)](_0x599923,_0x43576d,_0x210de3);_0x2ca135[_0x5e427e(0x1a7)]();}[_0x4711bf(0x2e4)](_0xef106d){ee['drawWith'](_0xef106d,this);}}const re=_0x4711bf(0x3f3),ht=_0x4711bf(0x2cf),ut=_0x4711bf(0x2b2),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x15e4f0,_0x4be722,_0x3202a3,_0x3f11e6){const _0x471641=_0x4711bf;h(this,_0x471641(0x34a),[]),h(this,'_anchor',null),h(this,_0x471641(0x3a5),null),h(this,_0x471641(0x2f4),null),h(this,_0x471641(0x26c),null),h(this,_0x471641(0x2fe),null),(this[_0x471641(0x302)]=_0x15e4f0,this['_scene']=_0x4be722,this[_0x471641(0x27e)]=_0x3202a3,this['_document']=_0x3f11e6,this[_0x471641(0x2aa)]());}set['_hover'](_0x2116c9){const _0xaf490a=_0x4711bf;_0x2116c9?(this[_0xaf490a(0x2f4)]&&this['_anchorDot'][_0xaf490a(0x220)](),this[_0xaf490a(0x3a5)]&&this['_textBubble'][_0xaf490a(0x28c)]()):(this[_0xaf490a(0x2f4)]&&this[_0xaf490a(0x2f4)][_0xaf490a(0x28c)](),this[_0xaf490a(0x3a5)]&&this['_textBubble']['hide']());}['dispose'](){const _0x2acb2e=_0x4711bf;for(const _0x3abada of this[_0x2acb2e(0x34a)])_0x3abada['dispose']();this[_0x2acb2e(0x3a5)]&&this[_0x2acb2e(0x3a5)][_0x2acb2e(0x192)](),this[_0x2acb2e(0x2f4)]&&this['_anchorDot'][_0x2acb2e(0x192)](),this['_anchor']&&this[_0x2acb2e(0x2e7)]['dispose'](),this[_0x2acb2e(0x2fe)]&&this['_eventUnsubscribe']();}[_0x4711bf(0x2aa)](){const _0x184bad=_0x4711bf;var _0x1fea55;const {_docSkeleton:_0x403a00,_document:_0x29302d}=this,{color:_0x45ec78,name:_0x336026,ranges:_0x242da4}=this[_0x184bad(0x302)],_0x25170f=_0x29302d['getOffsetConfig'](),{docsLeft:_0x389bb3,docsTop:_0x316ea6}=_0x25170f,_0x148cc4=new b['NodePositionConvertToCursor'](_0x25170f,_0x403a00);for(const {startOffset:_0x396cc8,endOffset:_0x1a3c99,rangeType:_0x438836,segmentId:_0x1fccb2,segmentPage:_0x5882e9,collapsed:_0x25a508,isActive:_0x196980}of _0x242da4){const _0x2f3b17=_0x403a00['findNodePositionByCharIndex'](_0x396cc8,!0x0,_0x1fccb2,_0x5882e9);let _0x245ec1=_0x403a00[_0x184bad(0x3c8)](_0x1a3c99,!0x0,_0x1fccb2,_0x5882e9);if(_0x245ec1==null&&(_0x245ec1=_0x403a00[_0x184bad(0x3c8)](_0x1a3c99-0x1,!0x1,_0x1fccb2,_0x5882e9)),_0x196980){const {contentBoxPointGroup:_0x2fa6e8}=_0x148cc4[_0x184bad(0x27c)](_0x245ec1,_0x245ec1);if(_0x2fa6e8[_0x184bad(0x246)]===0x0)continue;this[_0x184bad(0x24c)](_0x45ec78,_0x2fa6e8,_0x389bb3,_0x316ea6,_0x336026),this['_eventUnsubscribe']=this[_0x184bad(0x168)]();}if(_0x2f3b17&&_0x245ec1){if(_0x438836===a['DOC_RANGE_TYPE'][_0x184bad(0x29f)]){const _0xd8d0c2=new b[(_0x184bad(0x222))](_0x25170f,_0x403a00),{pointGroup:_0x4ec656}=(_0x1fea55=_0xd8d0c2[_0x184bad(0x27c)](_0x2f3b17,_0x245ec1))!=null?_0x1fea55:{};if(_0x4ec656==null||_0x4ec656[_0x184bad(0x246)]===0x0)continue;this[_0x184bad(0x23a)](_0x45ec78,_0x4ec656,_0x389bb3,_0x316ea6);}else{if(!_0x25a508){const {borderBoxPointGroup:_0x42a222}=_0x148cc4[_0x184bad(0x27c)](_0x2f3b17,_0x245ec1);if(_0x42a222['length']===0x0)continue;this[_0x184bad(0x237)](_0x45ec78,_0x42a222,_0x389bb3,_0x316ea6);}}}}}['_drawAnchor'](_0x500184,_0x4b2f52,_0x55be0e,_0x9f38d2,_0x29f01e){const _0x383917=_0x4711bf,_0x179697=this[_0x383917(0x1d9)](_0x4b2f52),{left:_0xad4595,top:_0x2ee7df,height:_0x2fae00}=_0x179697,_0x4cc4ee=this[_0x383917(0x28e)](),_0x2837cf=ft/_0x4cc4ee,_0x2ac233=new p[(_0x383917(0x36f))](re+a[_0x383917(0x1ab)][_0x383917(0x257)](k),{'left':_0xad4595+_0x55be0e-_0x2837cf,'top':_0x2ee7df+_0x9f38d2,'height':_0x2fae00,'width':dt,'fill':_0x500184||p[_0x383917(0x195)](a[_0x383917(0x2d8)][_0x383917(0x34f)],0x0),'strokeWidth':_0x2837cf,'stroke':St,'evented':!0x0});this[_0x383917(0x2e7)]=_0x2ac233,this[_0x383917(0x27b)]['addObject'](_0x2ac233,b[_0x383917(0x2b8)]);const _0x3d3e2c=new p[(_0x383917(0x36f))](re+a[_0x383917(0x1ab)][_0x383917(0x257)](k),{'left':_0xad4595+_0x55be0e-_0x2837cf,'top':_0x2ee7df+_0x9f38d2-oe/0x2,'height':oe,'width':oe,'fill':_0x500184||p[_0x383917(0x195)](a[_0x383917(0x2d8)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x500184||p[_0x383917(0x195)](a[_0x383917(0x2d8)]['black'],0x0),'evented':!0x1});this[_0x383917(0x2f4)]=_0x3d3e2c,this['_scene']['addObject'](_0x3d3e2c,b[_0x383917(0x2b8)]);const _0x24be0e=new ee(re+a['Tools'][_0x383917(0x257)](k),{'left':_0xad4595+_0x55be0e-_0x2837cf,'top':_0x2ee7df+_0x9f38d2-K,'text':_0x29f01e,'color':_0x500184});this['_textBubble']=_0x24be0e,this['_scene'][_0x383917(0x325)](_0x24be0e,b[_0x383917(0x2b8)]),this['_hover']=!0x1;}[_0x4711bf(0x168)](){const _0x1ca5a7=_0x4711bf,_0x56935a=this[_0x1ca5a7(0x2e7)][_0x1ca5a7(0x382)][_0x1ca5a7(0x3d8)](()=>{const _0x2abb50=_0x1ca5a7;this[_0x2abb50(0x286)]=!0x0;}),_0x5628fe=this['_anchor']['onPointerLeave$'][_0x1ca5a7(0x3d8)](()=>{const _0x448cc2=_0x1ca5a7;this[_0x448cc2(0x26c)]&&clearTimeout(this['_hideTimer']),this[_0x448cc2(0x26c)]=setTimeout(()=>{const _0x206aac=_0x448cc2;this[_0x206aac(0x286)]=!0x1;},0x7d0);});return()=>{const _0x3b0cbd=_0x1ca5a7;_0x56935a[_0x3b0cbd(0x331)](),_0x5628fe[_0x3b0cbd(0x331)]();};}[_0x4711bf(0x237)](_0x103faf,_0x2769b0,_0x543aa6,_0x3616cc){const _0x3577ad=_0x4711bf,_0x233e7d=new a[(_0x3577ad(0x1a4))](_0x103faf)[_0x3577ad(0x298)](0.2)[_0x3577ad(0x23d)](),_0xc427d=new p[(_0x3577ad(0x2a0))](ht+a['Tools'][_0x3577ad(0x257)](k),{'pointsGroup':_0x2769b0,'fill':_0x233e7d||p[_0x3577ad(0x195)](a[_0x3577ad(0x2d8)][_0x3577ad(0x34f)],0.2),'left':_0x543aa6,'top':_0x3616cc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3577ad(0x34a)]['push'](_0xc427d),this[_0x3577ad(0x27b)]['addObject'](_0xc427d,b['TEXT_RANGE_LAYER_INDEX']);}[_0x4711bf(0x23a)](_0x7eed32,_0x5ce527,_0x111cd4,_0x3c6258){const _0x1fcab9=_0x4711bf,_0x5c0384=new a['ColorKit'](_0x7eed32)['setAlpha'](0.2)[_0x1fcab9(0x23d)](),_0x187ae1=new p[(_0x1fcab9(0x2a0))](ut+a[_0x1fcab9(0x1ab)][_0x1fcab9(0x257)](k),{'pointsGroup':_0x5ce527,'fill':_0x5c0384||p['getColor'](a[_0x1fcab9(0x2d8)]['black'],0.2),'left':_0x111cd4,'top':_0x3c6258,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1fcab9(0x34a)][_0x1fcab9(0x2bd)](_0x187ae1),this[_0x1fcab9(0x27b)]['addObject'](_0x187ae1,b['TEXT_RANGE_LAYER_INDEX']);}[_0x4711bf(0x1d9)](_0x22aa28){const _0x420a5b=_0x22aa28[0x0],_0x547659=_0x420a5b[0x0],_0x52199e=_0x420a5b[0x2],{x:_0x2bcab5,y:_0x359e02}=_0x547659,{x:_0x4a6957,y:_0x320a49}=_0x52199e;return{'left':_0x2bcab5,'top':_0x359e02,'width':_0x4a6957-_0x2bcab5,'height':_0x320a49-_0x359e02};}[_0x4711bf(0x28e)](){const _0x304d8a=_0x4711bf,{scaleX:_0x2d8bae,scaleY:_0x5bbd6d}=this[_0x304d8a(0x27b)]['getAncestorScale']();return Math[_0x304d8a(0x3e2)](_0x2d8bae,_0x5bbd6d);}}var It=Object[_0x4711bf(0x1fe)],vt=(_0x50dedd,_0xd5c563,_0x50931f,_0x5887c7)=>{for(var _0x4f4a99=_0x5887c7>0x1?void 0x0:_0x5887c7?It(_0xd5c563,_0x50931f):_0xd5c563,_0x437380=_0x50dedd['length']-0x1,_0x2c565e;_0x437380>=0x0;_0x437380--)(_0x2c565e=_0x50dedd[_0x437380])&&(_0x4f4a99=_0x2c565e(_0x4f4a99)||_0x4f4a99);return _0x4f4a99;},W=(_0xbbf185,_0xdcb8ac)=>(_0x5b0106,_0x16b06d)=>_0xdcb8ac(_0x5b0106,_0x16b06d,_0xbbf185);let Ie=class extends a[_0x4711bf(0x1b0)]{constructor(_0x142ceb,_0x460000,_0x57e77a,_0xb1b41b,_0x472784){const _0x5494ba=_0x4711bf;super(),h(this,_0x5494ba(0x38b),[]),h(this,_0x5494ba(0x184),[]),(this[_0x5494ba(0x1fb)]=_0x142ceb,this[_0x5494ba(0x28d)]=_0x460000,this[_0x5494ba(0x2dc)]=_0x57e77a,this[_0x5494ba(0x1ce)]=_0xb1b41b,this[_0x5494ba(0x28a)]=_0x472784,this[_0x5494ba(0x1dc)]());}[_0x4711bf(0x1dc)](){const _0x27cfea=_0x4711bf,_0x48ea45=this[_0x27cfea(0x1fb)][_0x27cfea(0x1d4)],_0x30a043=this[_0x27cfea(0x28d)];this['disposeWithMe'](d[_0x27cfea(0x1e7)]([this[_0x27cfea(0x2dc)][_0x27cfea(0x15e)](_0x48ea45),this['_themeService']['currentTheme$']])[_0x27cfea(0x289)]($['map'](([_0x3ebca9,_0xc7a252])=>({'skeleton':_0x30a043[_0x27cfea(0x233)](),'cursors':[..._0x3ebca9[_0x27cfea(0x30c)]()][_0x27cfea(0x3e1)](_0x5b45be=>({..._0x5b45be,'color':this[_0x27cfea(0x28a)][_0x27cfea(0x22a)](_0x5b45be[_0x27cfea(0x3da)])}))})))[_0x27cfea(0x297)](_0xb26f20=>{const _0x1642f6=_0x27cfea;if(this['_removeCollabCursors'](),_0xb26f20){const {skeleton:_0x58341d,cursors:_0x57f452}=_0xb26f20;this[_0x1642f6(0x2f2)](_0x58341d,_0x57f452);}})),this[_0x27cfea(0x32c)](),this[_0x27cfea(0x1c4)]();}[_0x4711bf(0x2f2)](_0xe8466d,_0x342d0e){const _0x3abf38=_0x4711bf,{scene:_0x5dcac7,mainComponent:_0x4b6677}=this[_0x3abf38(0x1fb)],_0x333ce3=_0x342d0e[_0x3abf38(0x380)](_0x1bab18=>new De(_0x1bab18,_0x5dcac7,_0xe8466d,_0x4b6677));this[_0x3abf38(0x38b)]=_0x333ce3,this[_0x3abf38(0x184)]=_0x342d0e;}[_0x4711bf(0x2d0)](){const _0xe7cc6e=_0x4711bf;this[_0xe7cc6e(0x284)]();const {scene:_0x9c8510,mainComponent:_0x561545}=this[_0xe7cc6e(0x1fb)],_0x52f8ba=this[_0xe7cc6e(0x28d)][_0xe7cc6e(0x233)](),_0x23aceb=this[_0xe7cc6e(0x184)]['map'](_0x403908=>new De(_0x403908,_0x9c8510,_0x52f8ba,_0x561545));this['_cursorShapes']=_0x23aceb;}[_0x4711bf(0x284)](){const _0x24cadf=_0x4711bf;this['_cursorShapes'][_0x24cadf(0x22b)](_0x1d18d4=>_0x1d18d4[_0x24cadf(0x192)]()),this[_0x24cadf(0x38b)]=[];}[_0x4711bf(0x1c4)](){const _0x1a2db1=_0x4711bf,_0x48a1d0=[b['SetDocZoomRatioOperation']['id']];this[_0x1a2db1(0x2e9)](this[_0x1a2db1(0x1ce)][_0x1a2db1(0x35c)](_0x20421a=>{const _0x5b2dbd=_0x1a2db1;_0x48a1d0[_0x5b2dbd(0x17b)](_0x20421a['id'])&&_0x20421a[_0x5b2dbd(0x276)][_0x5b2dbd(0x1d4)]===this['_context'][_0x5b2dbd(0x1d4)]&&this[_0x5b2dbd(0x2d0)]();}));}['_initResize'](){const _0x1efc88=_0x4711bf;this[_0x1efc88(0x2e9)](a[_0x1efc88(0x323)](this['_context'][_0x1efc88(0x174)][_0x1efc88(0x31c)])['pipe']($['filter'](_0x2f56da=>_0x2f56da[_0x1efc88(0x287)]===p[_0x1efc88(0x345)][_0x1efc88(0x241)]),$[_0x1efc88(0x381)](0x10))['subscribe'](()=>{const _0x1ea7db=_0x1efc88;this[_0x1ea7db(0x2d0)]();}));}};Ie=vt([W(0x1,a[_0x4711bf(0x209)](Y['DocSkeletonManagerService'])),W(0x2,a[_0x4711bf(0x209)](x)),W(0x3,a[_0x4711bf(0x38d)]),W(0x4,a['Inject'](a[_0x4711bf(0x277)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x4711bf(0x1f9)]{constructor(_0x555f6b,_0x330258){const _0x53eb3a=_0x4711bf;super(_0x555f6b,_0x330258),h(this,_0x53eb3a(0x3d1)),h(this,_0x53eb3a(0x2a8),!0x1),h(this,_0x53eb3a(0x398)),h(this,_0x53eb3a(0x370),''),h(this,_0x53eb3a(0x3af),_0x53eb3a(0x2bc)),h(this,'_backgroundColor'),(_0x330258&&this[_0x53eb3a(0x3eb)](_0x330258),this['onPointerEnter$'][_0x53eb3a(0x3d8)](()=>this[_0x53eb3a(0x3eb)]({'hovered':!0x0})),this[_0x53eb3a(0x37d)][_0x53eb3a(0x3d8)](()=>this[_0x53eb3a(0x3eb)]({'hovered':!0x1})));}[_0x4711bf(0x3eb)](_0x16a5cf){const _0x25e804=_0x4711bf;var _0x3c78e0,_0x16a9dc,_0x4c432f,_0x35a180,_0x47435e,_0x585b1a;this[_0x25e804(0x3d1)]=(_0x3c78e0=_0x16a5cf[_0x25e804(0x3da)])!=null?_0x3c78e0:this[_0x25e804(0x3d1)],this['_hovered']=(_0x16a9dc=_0x16a5cf[_0x25e804(0x2b0)])!=null?_0x16a9dc:this[_0x25e804(0x2a8)],this[_0x25e804(0x398)]=(_0x4c432f=_0x16a5cf[_0x25e804(0x1dd)])!=null?_0x4c432f:this[_0x25e804(0x398)],this[_0x25e804(0x370)]=(_0x35a180=_0x16a5cf['name'])!=null?_0x35a180:this[_0x25e804(0x370)],this['_labelPosition']=(_0x47435e=_0x16a5cf[_0x25e804(0x18d)])!=null?_0x47435e:this[_0x25e804(0x3af)],this[_0x25e804(0x198)]=(_0x585b1a=_0x16a5cf['backgroundColor'])!=null?_0x585b1a:this[_0x25e804(0x198)],this[_0x25e804(0x19d)]({'width':_0x16a5cf[_0x25e804(0x1e0)],'height':_0x16a5cf[_0x25e804(0x354)]});}[_0x4711bf(0x1da)](_0x264920){const _0x22d8be=_0x4711bf,{row:_0xc7d130,column:_0x2aa17b}=_0x264920;if(_0xc7d130>=this[_0x22d8be(0x398)][_0x22d8be(0x197)]&&_0xc7d130<=this[_0x22d8be(0x398)][_0x22d8be(0x336)]&&_0x2aa17b>=this['_range'][_0x22d8be(0x1eb)]&&_0x2aa17b<=this['_range']['endColumn']){this[_0x22d8be(0x3eb)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4711bf(0x2ad)](_0x41cac6){return!0x1;}['_draw'](_0x246a0a){const _0x1eb328=_0x4711bf;p[_0x1eb328(0x36f)]['drawWith'](_0x246a0a,{'width':this[_0x1eb328(0x1e0)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x1eb328(0x3d1)],'evented':!0x1,'fill':this[_0x1eb328(0x198)]}),this[_0x1eb328(0x2a8)]&&(_0x246a0a[_0x1eb328(0x3a2)](),_0x246a0a[_0x1eb328(0x22e)](0x1,0x0,0x0,0x1,this[_0x1eb328(0x1e0)],this['_labelPosition']===_0x1eb328(0x1f7)?0x0:-0x14),ee['drawWith'](_0x246a0a,{'text':this[_0x1eb328(0x370)],'color':this[_0x1eb328(0x3d1)]}),_0x246a0a['restore']());}}var Ct=Object[_0x4711bf(0x1fe)],pt=(_0x308325,_0x2cd5f2,_0x550c97,_0x5befed)=>{for(var _0x42e713=_0x5befed>0x1?void 0x0:_0x5befed?Ct(_0x2cd5f2,_0x550c97):_0x2cd5f2,_0x9a290d=_0x308325['length']-0x1,_0x500804;_0x9a290d>=0x0;_0x9a290d--)(_0x500804=_0x308325[_0x9a290d])&&(_0x42e713=_0x500804(_0x42e713)||_0x42e713);return _0x42e713;},ae=(_0x4d86e7,_0x18b694)=>(_0xe4d6f0,_0x243894)=>_0x18b694(_0xe4d6f0,_0x243894,_0x4d86e7);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x1f4e83,_0x12dd1c,_0x5edf88,_0x1ef522){const _0x2965c5=_0x4711bf;super(),h(this,_0x2965c5(0x184),new Set()),h(this,_0x2965c5(0x2ee),null),(this[_0x2965c5(0x1fb)]=_0x1f4e83,this['_sheetSkeletonManagerService']=_0x12dd1c,this['_collabCursorController']=_0x5edf88,this[_0x2965c5(0x28a)]=_0x1ef522,this['_init']());}[_0x4711bf(0x1dc)](){const _0x91fb72=_0x4711bf;this[_0x91fb72(0x378)]['currentSkeleton$'][_0x91fb72(0x289)]($[_0x91fb72(0x321)](this[_0x91fb72(0x20c)]),$[_0x91fb72(0x29b)](_0x5400fd=>{const _0x34d8a3=_0x91fb72;if(_0x5400fd){const _0x984cab=_0x5400fd[_0x34d8a3(0x230)];return d[_0x34d8a3(0x1e7)](this[_0x34d8a3(0x2dc)][_0x34d8a3(0x15e)](this[_0x34d8a3(0x1fb)][_0x34d8a3(0x1d4)]),this[_0x34d8a3(0x28a)][_0x34d8a3(0x3ab)])[_0x34d8a3(0x289)]($[_0x34d8a3(0x380)](([_0x182c59,_0x436731])=>{const _0x2ae22e=_0x34d8a3,_0xdc11db=new Map();return _0x182c59[_0x2ae22e(0x22b)]((_0x3210ce,_0x1b2ac6)=>{const _0x450ace=_0x2ae22e;if(_0x3210ce['sheetID']===_0x984cab){const _0x3e0932={..._0x3210ce};_0x3e0932[_0x450ace(0x3da)]=this['_themeService']['getColorFromTheme'](_0x3210ce[_0x450ace(0x3da)]),_0xdc11db[_0x450ace(0x1cb)](_0x1b2ac6,_0x3e0932);}}),{'skeleton':_0x5400fd,'cursors':_0xdc11db};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2a2d8b,cursors:_0x74c96b})=>{const _0x4e2673=_0x91fb72;this[_0x4e2673(0x284)](),_0x2a2d8b&&this[_0x4e2673(0x2f2)](_0x2a2d8b,_0x74c96b);}),this[_0x91fb72(0x378)]['currentSkeleton$']['subscribe'](_0x53c1cc=>{const _0x3795e1=_0x91fb72;if(_0x53c1cc==null)return;const {skeleton:_0x12209a}=_0x53c1cc,{scene:_0x3fed06}=this['_context'];_0x3fed06['onPointerMove$']['subscribeEvent'](a[_0x3795e1(0x3b5)](_0x4e3f4d=>{const _0x3b7bc0=_0x3795e1;var _0x4de18f,_0x40e48d;const {offsetX:_0x325f2a,offsetY:_0xaa229}=_0x4e3f4d,{x:_0x481bfe,y:_0x57ef98}=_0x3fed06['getRelativeToViewportCoord'](p[_0x3b7bc0(0x2bf)][_0x3b7bc0(0x2c4)]([_0x325f2a,_0xaa229])),{scaleX:_0x5dc5d4,scaleY:_0x2494e6}=_0x3fed06[_0x3b7bc0(0x21b)](),_0x1f4d2f=_0x3fed06[_0x3b7bc0(0x2a1)](p[_0x3b7bc0(0x2f7)][_0x3b7bc0(0x313)]),_0x12029e=_0x3fed06[_0x3b7bc0(0x3e5)](p['Vector2']['FromArray']([_0x481bfe,_0x57ef98]),_0x1f4d2f),_0x4d6f65=_0x12209a[_0x3b7bc0(0x210)](_0x325f2a,_0xaa229,_0x5dc5d4,_0x2494e6,_0x12029e);((_0x4de18f=this[_0x3b7bc0(0x2ee)])==null?void 0x0:_0x4de18f[_0x3b7bc0(0x379)])===_0x4d6f65[_0x3b7bc0(0x379)]&&((_0x40e48d=this[_0x3b7bc0(0x2ee)])==null?void 0x0:_0x40e48d['row'])===_0x4d6f65['row']||this[_0x3b7bc0(0x184)][_0x3b7bc0(0x22b)](_0x475cb1=>{const _0x5b6844=_0x3b7bc0;_0x475cb1[_0x5b6844(0x1da)](_0x4d6f65);});},0x64));});}[_0x4711bf(0x2f2)](_0x3c9034,_0x5c0c75){const _0x37b3e0=_0x4711bf;var _0x3c7752;const _0x97b3fe=(_0x3c7752=this[_0x37b3e0(0x378)][_0x37b3e0(0x2a7)]())==null?void 0x0:_0x3c7752[_0x37b3e0(0x3b4)];if(!_0x97b3fe)return;const _0x52faae=this['_getSheetObject']();if(!_0x52faae)return;this['_cursors'][_0x37b3e0(0x22b)](_0x2920f0=>{_0x2920f0['makeDirty']();});const {scene:_0x421cd3}=_0x52faae,_0x54d342=Et(Array['from'](_0x5c0c75[_0x37b3e0(0x30c)]()))[_0x37b3e0(0x380)](_0x59c2ed=>{const _0x295466=_0x37b3e0,{color:_0x23bedf,range:_0x44bd29,name:_0xaee56a,selection:_0x387c45,sheetID:_0x2773d1}=_0x59c2ed,{startColumn:_0x13e2cf,startRow:_0x4fa59c,endColumn:_0x34cb16,endRow:_0x492077}=_0x44bd29,_0x497e1c=X[_0x295466(0x3c4)](_0x4fa59c,_0x13e2cf,_0x421cd3,_0x97b3fe),_0x3bc4e1=X[_0x295466(0x3c4)](_0x492077,_0x34cb16,_0x421cd3,_0x97b3fe),{columnHeaderHeightAndMarginTop:_0x3cb863}=_0x97b3fe,{startX:_0x516441,startY:_0x26a4d5}=_0x497e1c,{endX:_0x430ed2,endY:_0x5abe74}=_0x3bc4e1,_0x2aec56=_0x430ed2-_0x516441,_0x5acf7b=_0x5abe74-_0x26a4d5,_0x504533={'labelPosition':_0x26a4d5-_0x3cb863>=K?'top':'bottom','sheetID':_0x2773d1,'range':_0x44bd29,'color':_0x23bedf,'name':_0xaee56a,'selection':_0x387c45,'left':_0x516441,'top':_0x26a4d5,'width':_0x2aec56,'height':_0x5acf7b,'evented':!0x1,'zIndex':bt};return new Pe(_0xaee56a,_0x504533);});_0x421cd3[_0x37b3e0(0x3c3)](_0x54d342,gt),this['_cursors']=new Set(_0x54d342);}[_0x4711bf(0x284)](){const _0x59c407=_0x4711bf;var _0x3023a1;(_0x3023a1=this[_0x59c407(0x184)])==null||_0x3023a1[_0x59c407(0x22b)](_0x4c25c6=>_0x4c25c6[_0x59c407(0x192)]());}[_0x4711bf(0x26d)](){const _0x379d1c=_0x4711bf;return X['getSheetObject'](this[_0x379d1c(0x1fb)][_0x379d1c(0x366)],this[_0x379d1c(0x1fb)]);}};ve=pt([ae(0x1,a[_0x4711bf(0x209)](X[_0x4711bf(0x320)])),ae(0x2,a[_0x4711bf(0x209)](x)),ae(0x3,a[_0x4711bf(0x209)](a[_0x4711bf(0x277)]))],ve);function Et(_0x1fba40){const _0x1d87ec=_0x4711bf,_0x30d8ca=new Map();return _0x1fba40['forEach'](_0x3a458b=>{const _0x227a50=_0x5c67;if(_0x30d8ca[_0x227a50(0x3ec)](_0x3a458b['selection'])){const _0x16ce9c=_0x30d8ca[_0x227a50(0x3bc)](_0x3a458b[_0x227a50(0x17c)]);_0x16ce9c[_0x227a50(0x179)]+=',\x20'+_0x3a458b[_0x227a50(0x179)];}else _0x30d8ca[_0x227a50(0x1cb)](_0x3a458b[_0x227a50(0x17c)],_0x3a458b);}),Array['from'](_0x30d8ca[_0x1d87ec(0x30c)]());}var E=function(){const _0x9134f7=_0x4711bf;return E=Object[_0x9134f7(0x346)]||function(_0x35ba29){const _0x2ed340=_0x9134f7;for(var _0x5e966e,_0x2d2d9f=0x1,_0x5a678a=arguments['length'];_0x2d2d9f<_0x5a678a;_0x2d2d9f++){_0x5e966e=arguments[_0x2d2d9f];for(var _0x3f2543 in _0x5e966e)Object[_0x2ed340(0x24d)][_0x2ed340(0x2ff)]['call'](_0x5e966e,_0x3f2543)&&(_0x35ba29[_0x3f2543]=_0x5e966e[_0x3f2543]);}return _0x35ba29;},E[_0x9134f7(0x2cc)](this,arguments);},Tt=function(_0x179db8,_0x33ecdf){const _0x25367c=_0x4711bf;var _0x167985={};for(var _0xc4f9e8 in _0x179db8)Object['prototype'][_0x25367c(0x2ff)][_0x25367c(0x33c)](_0x179db8,_0xc4f9e8)&&_0x33ecdf[_0x25367c(0x35b)](_0xc4f9e8)<0x0&&(_0x167985[_0xc4f9e8]=_0x179db8[_0xc4f9e8]);if(_0x179db8!=null&&typeof Object[_0x25367c(0x32a)]==_0x25367c(0x217)){for(var _0x153504=0x0,_0xc4f9e8=Object['getOwnPropertySymbols'](_0x179db8);_0x153504<_0xc4f9e8[_0x25367c(0x246)];_0x153504++)_0x33ecdf[_0x25367c(0x35b)](_0xc4f9e8[_0x153504])<0x0&&Object[_0x25367c(0x24d)][_0x25367c(0x361)][_0x25367c(0x33c)](_0x179db8,_0xc4f9e8[_0x153504])&&(_0x167985[_0xc4f9e8[_0x153504]]=_0x179db8[_0xc4f9e8[_0x153504]]);}return _0x167985;},pe=M[_0x4711bf(0x16f)](function(_0x32555f,_0x3137b3){const _0x3e82e2=_0x4711bf;var _0x2e10d5=_0x32555f['icon'],_0x3bb08a=_0x32555f['id'],_0x47ea0=_0x32555f[_0x3e82e2(0x1ca)],_0x1a8bda=_0x32555f['extend'],_0x4b9159=Tt(_0x32555f,[_0x3e82e2(0x19f),'id',_0x3e82e2(0x1ca),'extend']),_0x1bf1b5=_0x3e82e2(0x267)[_0x3e82e2(0x2f6)](_0x3bb08a,'\x20')[_0x3e82e2(0x2f6)](_0x47ea0||'')[_0x3e82e2(0x3c1)](),_0x42459b=M['useRef']('_'['concat'](Dt()));return Ae(_0x2e10d5,''[_0x3e82e2(0x2f6)](_0x3bb08a),{'defIds':_0x2e10d5['defIds'],'idSuffix':_0x42459b[_0x3e82e2(0x2cb)]},E({'ref':_0x3137b3,'className':_0x1bf1b5},_0x4b9159),_0x1a8bda);});function Ae(_0x945a11,_0x27dec8,_0x36461b,_0x154e38,_0x332b04){const _0x40247=_0x4711bf;return M[_0x40247(0x337)](_0x945a11['tag'],E(E({'key':_0x27dec8},Ot(_0x945a11,_0x36461b,_0x332b04)),_0x154e38),(Rt(_0x945a11,_0x36461b)['children']||[])['map'](function(_0x17e6d9,_0x2971f9){const _0xe31ec4=_0x40247;return Ae(_0x17e6d9,''[_0xe31ec4(0x2f6)](_0x27dec8,'-')[_0xe31ec4(0x2f6)](_0x945a11[_0xe31ec4(0x3b0)],'-')[_0xe31ec4(0x2f6)](_0x2971f9),_0x36461b,void 0x0,_0x332b04);}));}function Ot(_0x273d23,_0x4dadb6,_0xf4297f){const _0x26426e=_0x4711bf;var _0x203559=E({},_0x273d23[_0x26426e(0x360)]);_0xf4297f!=null&&_0xf4297f[_0x26426e(0x1c2)]&&_0x203559[_0x26426e(0x3c5)]===_0x26426e(0x1c2)&&(_0x203559[_0x26426e(0x3c5)]=_0xf4297f['colorChannel1']),_0x273d23[_0x26426e(0x3b0)]===_0x26426e(0x1ea)&&_0x203559['id']&&(_0x203559['id']=_0x203559['id']+_0x4dadb6[_0x26426e(0x1e9)]),Object[_0x26426e(0x2c1)](_0x203559)[_0x26426e(0x22b)](function(_0x10b0ed){const _0x558434=_0x26426e;var _0x3fe8a4=_0x10b0ed[0x0],_0x2d6675=_0x10b0ed[0x1];_0x3fe8a4===_0x558434(0x1ea)&&typeof _0x2d6675=='string'&&(_0x203559[_0x3fe8a4]=_0x2d6675[_0x558434(0x2c5)](/url\(#(.*)\)/,'url(#$1'[_0x558434(0x2f6)](_0x4dadb6[_0x558434(0x1e9)],')')));});var _0x1db29a=_0x4dadb6[_0x26426e(0x3c9)];return!_0x1db29a||_0x1db29a[_0x26426e(0x246)]===0x0||(_0x273d23['tag']==='use'&&_0x203559[_0x26426e(0x37f)]&&(_0x203559[_0x26426e(0x37f)]=_0x203559[_0x26426e(0x37f)]+_0x4dadb6[_0x26426e(0x1e9)]),Object[_0x26426e(0x2c1)](_0x203559)['forEach'](function(_0x3cebde){const _0x268ced=_0x26426e;var _0x3fb8f6=_0x3cebde[0x0],_0x46c6cb=_0x3cebde[0x1];typeof _0x46c6cb=='string'&&(_0x203559[_0x3fb8f6]=_0x46c6cb[_0x268ced(0x2c5)](/url\(#(.*)\)/,_0x268ced(0x16e)[_0x268ced(0x2f6)](_0x4dadb6['idSuffix'],')')));})),_0x203559;}function Rt(_0x250923,_0x4a27d4){const _0x46f710=_0x4711bf;var _0x56f40b,_0x591063=_0x4a27d4['defIds'];return!_0x591063||_0x591063[_0x46f710(0x246)]===0x0?_0x250923:_0x250923[_0x46f710(0x3b0)]===_0x46f710(0x338)&&(!((_0x56f40b=_0x250923[_0x46f710(0x1ac)])===null||_0x56f40b===void 0x0)&&_0x56f40b[_0x46f710(0x246)])?E(E({},_0x250923),{'children':_0x250923[_0x46f710(0x1ac)][_0x46f710(0x380)](function(_0x1e9a5a){const _0x4b05c6=_0x46f710;return typeof _0x1e9a5a[_0x4b05c6(0x360)]['id']==_0x4b05c6(0x28b)&&_0x591063&&_0x591063[_0x4b05c6(0x17b)](_0x1e9a5a[_0x4b05c6(0x360)]['id'])?E(E({},_0x1e9a5a),{'attrs':E(E({},_0x1e9a5a[_0x4b05c6(0x360)]),{'id':_0x1e9a5a['attrs']['id']+_0x4a27d4[_0x4b05c6(0x1e9)]})}):_0x1e9a5a;})}):_0x250923;}function Dt(){const _0xcb9299=_0x4711bf;return Math[_0xcb9299(0x266)]()[_0xcb9299(0x37c)](0x24)['substring'](0x2,0x8);}pe['displayName']=_0x4711bf(0x189);var Ut={'tag':_0x4711bf(0x268),'attrs':{'xmlns':_0x4711bf(0x318),'fill':_0x4711bf(0x159),'viewBox':'0\x200\x2016\x2016','width':_0x4711bf(0x3df),'height':_0x4711bf(0x3df)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x4711bf(0x1cf),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4711bf(0x190),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4711bf(0x338),'attrs':{},'children':[{'tag':_0x4711bf(0x3ae),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4711bf(0x2b9),'attrs':{'fill':_0x4711bf(0x324),'d':_0x4711bf(0x1b5)}}]}]}],'defIds':[_0x4711bf(0x3e8)]},ye=M[_0x4711bf(0x16f)](function(_0x2506a0,_0x1529fb){const _0x7ed193=_0x4711bf;return M['createElement'](pe,Object[_0x7ed193(0x346)]({},_0x2506a0,{'id':_0x7ed193(0x31a),'ref':_0x1529fb,'icon':Ut}));});ye[_0x4711bf(0x3b3)]=_0x4711bf(0x16a);var Nt={'tag':_0x4711bf(0x268),'attrs':{'xmlns':_0x4711bf(0x318),'fill':_0x4711bf(0x159),'viewBox':_0x4711bf(0x271),'width':_0x4711bf(0x3df),'height':_0x4711bf(0x3df)},'children':[{'tag':'g','attrs':{'clipPath':_0x4711bf(0x2ed)},'children':[{'tag':_0x4711bf(0x2b9),'attrs':{'stroke':_0x4711bf(0x1cf),'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':_0x4711bf(0x190),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4711bf(0x338),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4711bf(0x350)},'children':[{'tag':_0x4711bf(0x2b9),'attrs':{'fill':'white','d':_0x4711bf(0x1b5),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4711bf(0x350)]},$e=M[_0x4711bf(0x16f)](function(_0x5ec8bf,_0x4a4dfb){const _0x4e28a5=_0x4711bf;return M[_0x4e28a5(0x337)](pe,Object['assign']({},_0x5ec8bf,{'id':_0x4e28a5(0x1a9),'ref':_0x4a4dfb,'icon':Nt}));});$e[_0x4711bf(0x3b3)]=_0x4711bf(0x3a7);function Mt(_0x5c2459){const _0x4ba4fb=_0x4711bf;switch(_0x5c2459){case u[_0x4ba4fb(0x291)]['OFFLINE']:return _0x4ba4fb(0x310);case u[_0x4ba4fb(0x291)]['CONFLICT']:return _0x4ba4fb(0x2df);case u[_0x4ba4fb(0x291)][_0x4ba4fb(0x2d9)]:return'collabStatus.fetchMiss';case u['CollaborationStatus'][_0x4ba4fb(0x2d1)]:return _0x4ba4fb(0x170);case u[_0x4ba4fb(0x291)][_0x4ba4fb(0x165)]:case u['CollaborationStatus'][_0x4ba4fb(0x1c3)]:return _0x4ba4fb(0x3aa);case u[_0x4ba4fb(0x291)]['SYNCED']:case u[_0x4ba4fb(0x291)][_0x4ba4fb(0x17d)]:return'collabStatus.synced';}}function xe(_0x2df876){const _0x2aa8a2=_0x4711bf,{status$:_0x23c47e}=_0x2df876,_0x154e08=T[_0x2aa8a2(0x221)](_0x23c47e,u[_0x2aa8a2(0x291)][_0x2aa8a2(0x2d1)]),_0x5086a6=T[_0x2aa8a2(0x2e6)](a[_0x2aa8a2(0x30b)]),_0x4e2c61=T[_0x2aa8a2(0x2e6)](u[_0x2aa8a2(0x30a)]),_0x23bb77=_0x154e08!==u[_0x2aa8a2(0x291)][_0x2aa8a2(0x219)],_0xb8c4bc=_0x5086a6['t'](Mt(_0x154e08)),_0x532447=_0x23bb77?w[_0x2aa8a2(0x275)]($e,{}):w['jsx'](ye,{}),_0x1e1e7c=M['useCallback'](()=>{const _0x49dead=_0x2aa8a2;_0x23bb77||_0x4e2c61[_0x49dead(0x2e8)]();},[_0x23bb77,_0x4e2c61]);function _0x3a612e(){const _0x57d344=_0x2aa8a2;return w['jsxs'](_0x57d344(0x294),{'className':_0x57d344(0x340),'onClick':_0x1e1e7c,'children':[w['jsx'](_0x57d344(0x294),{'className':D[_0x57d344(0x260)](_0x57d344(0x299),{'univer-text-green-500':_0x23bb77,'univer-text-red-500':!_0x23bb77}),'children':_0x532447}),w[_0x57d344(0x275)](_0x57d344(0x294),{'className':_0x57d344(0x280),'children':_0xb8c4bc})]});}return _0x23bb77?_0x3a612e():w[_0x2aa8a2(0x275)](D[_0x2aa8a2(0x1f3)],{'title':_0x5086a6['t'](_0x2aa8a2(0x32f)),'children':_0x3a612e()});}var Lt=Object['getOwnPropertyDescriptor'],wt=(_0x2f3b36,_0x30416c,_0x23e6be,_0x2ee41f)=>{const _0x234fda=_0x4711bf;for(var _0x417c3d=_0x2ee41f>0x1?void 0x0:_0x2ee41f?Lt(_0x30416c,_0x23e6be):_0x30416c,_0x281241=_0x2f3b36[_0x234fda(0x246)]-0x1,_0x3ed4dd;_0x281241>=0x0;_0x281241--)(_0x3ed4dd=_0x2f3b36[_0x281241])&&(_0x417c3d=_0x3ed4dd(_0x417c3d)||_0x417c3d);return _0x417c3d;},V=(_0x21daa9,_0x578980)=>(_0x22480f,_0x390eac)=>_0x578980(_0x22480f,_0x390eac,_0x21daa9);exports[_0x4711bf(0x3dc)]=class extends a[_0x4711bf(0x3ac)]{constructor(_0x3a9145,_0x5c410d,_0x457b1b,_0x2a7d84){const _0x2e4845=_0x4711bf;super(),h(this,'_status$',new d[(_0x2e4845(0x306))](u[_0x2e4845(0x291)][_0x2e4845(0x2d1)])),(this['_univerInstanceService']=_0x3a9145,this[_0x2e4845(0x2db)]=_0x5c410d,this[_0x2e4845(0x364)]=_0x457b1b,this[_0x2e4845(0x2ac)]=_0x2a7d84,this[_0x2e4845(0x1bf)](),this[_0x2e4845(0x214)]());}[_0x4711bf(0x214)](){const _0x5177fa=_0x4711bf;this['disposeWithMe'](this[_0x5177fa(0x335)][_0x5177fa(0x39e)][_0x5177fa(0x289)](d[_0x5177fa(0x29b)](()=>{const _0x33c910=_0x5177fa,_0x219ebf=this[_0x33c910(0x335)][_0x33c910(0x2f5)]();return _0x219ebf?this[_0x33c910(0x364)][_0x33c910(0x367)](_0x219ebf['getUnitId']()):d['of'](null);}),d[_0x5177fa(0x29b)](_0x142258=>_0x142258?_0x142258[_0x5177fa(0x3a8)]:d['of'](u[_0x5177fa(0x291)][_0x5177fa(0x2d1)])))['subscribe'](_0x537f78=>{const _0x27313f=_0x5177fa;this[_0x27313f(0x3f1)][_0x27313f(0x33e)](_0x537f78);}));}[_0x4711bf(0x1bf)](){const _0x5dbd3e=_0x4711bf;this[_0x5dbd3e(0x2e9)](this[_0x5dbd3e(0x2ac)][_0x5dbd3e(0x2dd)](T[_0x5dbd3e(0x185)][_0x5dbd3e(0x395)],()=>T[_0x5dbd3e(0x281)](Pt({'status$':this['_status$'][_0x5dbd3e(0x2e1)]()}),this[_0x5dbd3e(0x2db)])));}},exports[_0x4711bf(0x3dc)]=wt([V(0x0,a[_0x4711bf(0x21a)]),V(0x1,a[_0x4711bf(0x209)](a['Injector'])),V(0x2,a[_0x4711bf(0x209)](u[_0x4711bf(0x282)])),V(0x3,T[_0x4711bf(0x1db)])],exports['DesktopCollaborationStatusDisplayController']);function Pt(_0x40edc4){const {status$:_0x420a19}=_0x40edc4;return function(){return w['jsx'](xe,{'status$':_0x420a19});};}var At=Object[_0x4711bf(0x1fe)],yt=(_0xf90983,_0x381b1b,_0x240508,_0x50268f)=>{for(var _0x20f0d4=_0x50268f>0x1?void 0x0:_0x50268f?At(_0x381b1b,_0x240508):_0x381b1b,_0x492f6f=_0xf90983['length']-0x1,_0x3d70fb;_0x492f6f>=0x0;_0x492f6f--)(_0x3d70fb=_0xf90983[_0x492f6f])&&(_0x20f0d4=_0x3d70fb(_0x20f0d4)||_0x20f0d4);return _0x20f0d4;},y=(_0x539c98,_0x2c82dc)=>(_0x32b2d5,_0x463f9b)=>_0x2c82dc(_0x32b2d5,_0x463f9b,_0x539c98);let q=class extends a[_0x4711bf(0x3ac)]{constructor(_0x32880b,_0x37e501,_0xba694,_0x388e32,_0x2654a9,_0x31ae5b){const _0x1deae6=_0x4711bf;super(),this[_0x1deae6(0x32d)]=_0x32880b,this['_localCacheService']=_0x37e501,this[_0x1deae6(0x304)]=_0xba694,this[_0x1deae6(0x229)]=_0x388e32,this[_0x1deae6(0x1d3)]=_0x2654a9,this[_0x1deae6(0x205)]=_0x31ae5b,this[_0x1deae6(0x2c6)](),this[_0x1deae6(0x18c)]();}[_0x4711bf(0x2c6)](){const _0x43d1b9=_0x4711bf;this['disposeWithMe'](this[_0x43d1b9(0x32d)][_0x43d1b9(0x2e2)](()=>{const _0x208428=_0x43d1b9;if(this[_0x208428(0x1c7)][_0x208428(0x238)][_0x208428(0x264)])return this[_0x208428(0x205)]['t'](_0x208428(0x3ed));}));}[_0x4711bf(0x18c)](){const _0x20fd7d=_0x4711bf;this[_0x20fd7d(0x2e9)](this[_0x20fd7d(0x304)][_0x20fd7d(0x39c)]['subscribe'](_0x3c6238=>{const _0x431b29=_0x20fd7d;_0x3c6238['id']===u[_0x431b29(0x332)][_0x431b29(0x39a)]&&this[_0x431b29(0x229)][_0x431b29(0x28c)]({'type':D[_0x431b29(0x392)][_0x431b29(0x17f)],'content':this['_localeService']['t'](_0x431b29(0x17a))}),_0x3c6238['id']===u[_0x431b29(0x332)][_0x431b29(0x173)]&&this['_messageService'][_0x431b29(0x28c)]({'type':D[_0x431b29(0x392)][_0x431b29(0x17f)],'content':this[_0x431b29(0x205)]['t'](_0x431b29(0x1ee))}),_0x3c6238['id']===u['CollaborationUIEventId'][_0x431b29(0x3f2)]&&this[_0x431b29(0x1d3)][_0x431b29(0x28c)]({'title':this[_0x431b29(0x205)]['t'](_0x431b29(0x215)),'content':this[_0x431b29(0x205)]['t'](_0x431b29(0x3e6)),'type':_0x431b29(0x375),'duration':0x0}),_0x3c6238['id']===u[_0x431b29(0x332)][_0x431b29(0x2c7)]&&this[_0x431b29(0x229)]['show']({'type':D[_0x431b29(0x392)][_0x431b29(0x240)],'content':this['_localeService']['t'](_0x431b29(0x1ee))+'('+_0x3c6238['data']+')'}),_0x3c6238['id']===u[_0x431b29(0x332)][_0x431b29(0x342)]&&this['_messageService']['show']({'type':D[_0x431b29(0x392)]['Warning'],'content':this['_localeService']['t'](_0x3c6238[_0x431b29(0x3e7)]||'')}),_0x3c6238['id']===u[_0x431b29(0x332)][_0x431b29(0x252)]&&this['_messageService'][_0x431b29(0x28c)]({'type':D['MessageType'][_0x431b29(0x17f)],'content':this[_0x431b29(0x205)]['t'](_0x431b29(0x283))}),_0x3c6238['id']===u[_0x431b29(0x332)]['SOCKET_FAILED']&&this[_0x431b29(0x229)]['show']({'type':D[_0x431b29(0x392)]['Error'],'content':this[_0x431b29(0x205)]['t'](_0x431b29(0x1be))}),_0x3c6238['id']===u[_0x431b29(0x332)][_0x431b29(0x19c)]&&this[_0x431b29(0x229)][_0x431b29(0x28c)]({'type':D[_0x431b29(0x392)][_0x431b29(0x240)],'content':this[_0x431b29(0x205)]['t'](_0x431b29(0x1ba))});}));}};q=yt([y(0x0,T[_0x4711bf(0x327)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x4711bf(0x209)](u[_0x4711bf(0x26f)])),y(0x3,T[_0x4711bf(0x2de)]),y(0x4,T['INotificationService']),y(0x5,a[_0x4711bf(0x209)](a[_0x4711bf(0x30b)]))],q);const $t=_0x4711bf(0x1bd),Ue={},be=a[_0x4711bf(0x228)]('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x5b144b,_0x3e0ee9,_0x21c25d,_0x33b540)=>{const _0x25871b=_0x4711bf;for(var _0x26cd81=_0x33b540>0x1?void 0x0:_0x33b540?xt(_0x3e0ee9,_0x21c25d):_0x3e0ee9,_0x97c89f=_0x5b144b[_0x25871b(0x246)]-0x1,_0x4b160c;_0x97c89f>=0x0;_0x97c89f--)(_0x4b160c=_0x5b144b[_0x97c89f])&&(_0x26cd81=_0x4b160c(_0x26cd81)||_0x26cd81);return _0x26cd81;},H=(_0x48e79e,_0x42ba32)=>(_0x1cea16,_0x184c17)=>_0x42ba32(_0x1cea16,_0x184c17,_0x48e79e);exports[_0x4711bf(0x16c)]=class extends a['RxDisposable']{constructor(_0x5487f3,_0x40cc14,_0x51d562,_0x482517,_0x1c38fb){const _0x1f1a60=_0x4711bf;super(),this[_0x1f1a60(0x269)]=_0x5487f3,this[_0x1f1a60(0x1c9)]=_0x40cc14,this[_0x1f1a60(0x1ce)]=_0x51d562,this[_0x1f1a60(0x1c5)]=_0x482517,_0x1c38fb?_0x1c38fb==null||_0x1c38fb[_0x1f1a60(0x3d5)]()[_0x1f1a60(0x38c)](()=>this[_0x1f1a60(0x1dc)]()):(this[_0x1f1a60(0x1c9)][_0x1f1a60(0x377)]('[CollaborationDataLoaderController]',_0x1f1a60(0x226)),this[_0x1f1a60(0x1dc)]());}async['_init'](){const _0x876774=_0x4711bf,_0xa520c6=this[_0x876774(0x269)][_0x876774(0x2a9)]('unit'),_0x2bb9e8=this[_0x876774(0x269)]['getParam'](_0x876774(0x287)),_0x34e760=this[_0x876774(0x269)]['getParam']('subunit');if(!_0xa520c6||!_0x2bb9e8){this[_0x876774(0x1c9)][_0x876774(0x377)](_0x876774(0x1fc),_0x876774(0x1bb));return;}const _0x2df681=await this[_0x876774(0x1c5)][_0x876774(0x1e4)](_0xa520c6,Number(_0x2bb9e8),_0x34e760);_0x2df681&&_0x2df681 instanceof a[_0x876774(0x2d4)]&&this['_setupSubUnitSync'](_0x2df681);}async[_0x4711bf(0x213)](_0x1f8604){const _0xfca52a=_0x4711bf;await this['_updateSubUnitFromURLParams'](_0x1f8604),_0x1f8604[_0xfca52a(0x162)][_0xfca52a(0x289)](d[_0xfca52a(0x321)](this[_0xfca52a(0x20c)]))[_0xfca52a(0x297)](_0x1517ad=>{const _0x2b0eb0=_0xfca52a;_0x1517ad&&this[_0x2b0eb0(0x387)](_0x1517ad);}),this[_0xfca52a(0x269)][_0xfca52a(0x314)]['pipe'](d[_0xfca52a(0x321)](this[_0xfca52a(0x20c)]))[_0xfca52a(0x297)](()=>this[_0xfca52a(0x1b3)](_0x1f8604));}[_0x4711bf(0x387)](_0x103b0f,_0x597db4=!0x1){const _0x43d6f6=_0x4711bf,_0x164e4a=this[_0x43d6f6(0x269)]['getParam'](_0x43d6f6(0x303));_0x103b0f[_0x43d6f6(0x339)]()!==_0x164e4a&&this[_0x43d6f6(0x269)][_0x43d6f6(0x1a6)]('subunit',_0x103b0f['getSheetId'](),_0x597db4);}async[_0x4711bf(0x1b3)](_0x25f8a0){const _0x3191be=_0x4711bf;var _0x33cf39;const _0x2d6ebb=this[_0x3191be(0x269)][_0x3191be(0x2a9)](_0x3191be(0x303));if(!_0x2d6ebb||!_0x25f8a0['getSheetBySheetId'](_0x2d6ebb)){const _0x2ae58f=_0x25f8a0['getUnhiddenWorksheets']()[0x0],_0x23bde0=_0x25f8a0['getSheetBySheetId'](_0x2ae58f);if(!_0x23bde0)return;this[_0x3191be(0x387)](_0x23bde0,!0x0),await this[_0x3191be(0x1ce)]['executeCommand'](g[_0x3191be(0x188)]['id'],{'unitId':_0x25f8a0['getUnitId'](),'subUnitId':_0x2ae58f});return;}((_0x33cf39=_0x25f8a0[_0x3191be(0x1b8)]())==null?void 0x0:_0x33cf39[_0x3191be(0x339)]())!==_0x2d6ebb&&await this[_0x3191be(0x1ce)][_0x3191be(0x315)](g[_0x3191be(0x188)]['id'],{'unitId':_0x25f8a0['getUnitId'](),'subUnitId':_0x2d6ebb});}},exports[_0x4711bf(0x16c)]=jt([H(0x0,be),H(0x1,a[_0x4711bf(0x3be)]),H(0x2,a[_0x4711bf(0x38d)]),H(0x3,a[_0x4711bf(0x209)](u[_0x4711bf(0x1cd)])),H(0x4,a[_0x4711bf(0x3ca)](Ke[_0x4711bf(0x24e)]))],exports['CollaborationDataLoaderController']);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x2325cd,_0x5f4c1f,_0x531a3c,_0x59ec0d)=>{const _0x16e46=_0x4711bf;for(var _0x57952f=_0x59ec0d>0x1?void 0x0:_0x59ec0d?Bt(_0x5f4c1f,_0x531a3c):_0x5f4c1f,_0xd21454=_0x2325cd[_0x16e46(0x246)]-0x1,_0x57e695;_0xd21454>=0x0;_0xd21454--)(_0x57e695=_0x2325cd[_0xd21454])&&(_0x57952f=_0x57e695(_0x57952f)||_0x57952f);return _0x57952f;},ce=(_0x170ceb,_0x5cd512)=>(_0x261758,_0x3901b1)=>_0x5cd512(_0x261758,_0x3901b1,_0x170ceb);let z=class{constructor(_0x142466,_0x3a87df,_0x57c444){const _0x48f4c3=_0x4711bf;this[_0x48f4c3(0x2db)]=_0x142466,this[_0x48f4c3(0x245)]=_0x3a87df,this[_0x48f4c3(0x24f)]=_0x57c444;}[_0x4711bf(0x2b1)](_0x1f8e41){const _0x5bcfde=_0x4711bf;this[_0x5bcfde(0x207)](_0x1f8e41),this[_0x5bcfde(0x301)](_0x1f8e41);}['transformRemoteChangeset'](_0x562ca3){const _0x362070=_0x4711bf,{unitID:_0x55db0f}=_0x562ca3,_0x20d9b1=this[_0x362070(0x24f)][_0x362070(0x160)](_0x55db0f)[_0x362070(0x373)](b['DocIMEInputManagerService']),{redoCache:_0x1ab83e}=_0x20d9b1[_0x362070(0x29e)]();if(_0x1ab83e[_0x362070(0x246)]===0x0)return _0x562ca3;let _0x3b8c2d=a[_0x362070(0x1ab)][_0x362070(0x18b)](_0x562ca3[_0x362070(0x2eb)][0x0]);for(let _0x31c952=0x0;_0x31c952<_0x1ab83e[_0x362070(0x246)];_0x31c952++){const _0x5cbed4={'id':_0x362070(0x311),'params':{..._0x1ab83e[_0x31c952]}},_0x23bd95=this['_transformService'][_0x362070(0x211)](_0x3b8c2d,_0x5cbed4,!0x1);if(m['isTransformMutationFailure'](_0x23bd95))throw _0x23bd95[_0x362070(0x375)];_0x3b8c2d=_0x23bd95[_0x362070(0x391)];}return{...a[_0x362070(0x1ab)][_0x362070(0x18b)](_0x562ca3),'mutations':[_0x3b8c2d]};}[_0x4711bf(0x207)](_0x429e2a){const _0x55ef16=_0x4711bf,{unitID:_0x16cd77}=_0x429e2a,_0x3c327d=this[_0x55ef16(0x24f)][_0x55ef16(0x160)](_0x16cd77)[_0x55ef16(0x373)](b[_0x55ef16(0x15f)]),{undoCache:_0x217705,redoCache:_0x1d0f76}=_0x3c327d[_0x55ef16(0x29e)]();if(_0x217705[_0x55ef16(0x246)]===0x0||_0x1d0f76[_0x55ef16(0x246)]===0x0)return;const _0x4e5cde=[],_0x3e6e97=[];let _0x32c307=a[_0x55ef16(0x1ab)]['deepClone'](_0x429e2a[_0x55ef16(0x2eb)][0x0]),_0x5ef703=a[_0x55ef16(0x1ab)]['deepClone'](_0x429e2a[_0x55ef16(0x2eb)][0x0]);for(let _0x47343b=_0x217705['length']-0x1;_0x47343b>=0x0;_0x47343b--){const _0x76fe09={'id':_0x55ef16(0x311),'params':{..._0x217705[_0x47343b]}},_0xc218eb={'id':_0x55ef16(0x311),'params':{..._0x1d0f76[_0x47343b]}},_0xbfc63a=this[_0x55ef16(0x245)][_0x55ef16(0x211)](_0x32c307,_0x76fe09,!0x1),_0x50dec5=this[_0x55ef16(0x245)][_0x55ef16(0x211)](_0x5ef703,_0xc218eb,!0x1);if(m[_0x55ef16(0x34d)](_0xbfc63a))throw _0xbfc63a['error'];if(m[_0x55ef16(0x34d)](_0x50dec5))throw _0x50dec5['error'];_0x4e5cde['unshift'](_0xbfc63a[_0x55ef16(0x1d0)][_0x55ef16(0x276)]),_0x3e6e97[_0x55ef16(0x2d6)](_0x50dec5[_0x55ef16(0x1d0)][_0x55ef16(0x276)]),_0x32c307=_0xbfc63a[_0x55ef16(0x391)],_0x5ef703=_0x50dec5['m1Prime'];}_0x3c327d[_0x55ef16(0x258)]({'undoCache':_0x4e5cde,'redoCache':_0x3e6e97});}[_0x4711bf(0x301)](_0x4c8280){const _0x44b971=_0x4711bf,{unitID:_0x369584}=_0x4c8280,_0x2daa7c=this[_0x44b971(0x24f)][_0x44b971(0x160)](_0x369584)[_0x44b971(0x373)](b[_0x44b971(0x15f)]),_0x161af9=_0x2daa7c[_0x44b971(0x17e)]();if(_0x161af9==null)return;const _0x4ea238=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4c8280[_0x44b971(0x2e3)],'actions':null,'textRanges':[_0x161af9]}}],_0x2ffdeb=this[_0x44b971(0x245)]['transformMutationsWithChangeset'](_0x4c8280,_0x4ea238);if(!m[_0x44b971(0x1f8)](_0x2ffdeb))throw _0x2ffdeb[_0x44b971(0x375)];const _0x54db48=_0x2ffdeb['m2Prime'][0x0][_0x44b971(0x276)][_0x44b971(0x1de)];Array[_0x44b971(0x374)](_0x54db48)&&_0x54db48[_0x44b971(0x246)]&&_0x2daa7c[_0x44b971(0x259)](_0x54db48[0x0]);}};z=kt([ce(0x0,a[_0x4711bf(0x209)](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x4711bf(0x3d6)])],z);var Ht=Object[_0x4711bf(0x1fe)],Ft=(_0x1c5c08,_0x28b6d5,_0x4eedd1,_0x56b7f5)=>{const _0x99c14=_0x4711bf;for(var _0x5e14ce=_0x56b7f5>0x1?void 0x0:_0x56b7f5?Ht(_0x28b6d5,_0x4eedd1):_0x28b6d5,_0x1bc02e=_0x1c5c08[_0x99c14(0x246)]-0x1,_0x5bbfbb;_0x1bc02e>=0x0;_0x1bc02e--)(_0x5bbfbb=_0x1c5c08[_0x1bc02e])&&(_0x5e14ce=_0x5bbfbb(_0x5e14ce)||_0x5e14ce);return _0x5e14ce;},le=(_0x13a73c,_0xcaa129)=>(_0x18f726,_0x591244)=>_0xcaa129(_0x18f726,_0x591244,_0x13a73c);let J=class{constructor(_0x4ccb57,_0x14890e,_0x571fe6){const _0x4fdad4=_0x4711bf;this['_injector']=_0x4ccb57,this[_0x4fdad4(0x245)]=_0x14890e,this[_0x4fdad4(0x254)]=_0x571fe6;}[_0x4711bf(0x29a)](_0xa1e1b8){this['_transformHistoryAndStateStack'](_0xa1e1b8);}[_0x4711bf(0x3ef)](_0x1faa0d){const _0x593a97=_0x4711bf,{unitID:_0x1298a8}=_0x1faa0d,{collaboration:_0x31f1e0}=this[_0x593a97(0x254)]['getStateCache'](_0x1298a8);if(_0x31f1e0[_0x593a97(0x246)]===0x0)return _0x1faa0d;let _0x5f3e2b=a[_0x593a97(0x1ab)][_0x593a97(0x18b)](_0x1faa0d[_0x593a97(0x2eb)][0x0]);for(let _0x1cc4c4=0x0;_0x1cc4c4<_0x31f1e0[_0x593a97(0x246)];_0x1cc4c4++){const _0x352c5f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x31f1e0[_0x1cc4c4][_0x593a97(0x1d4)],..._0x31f1e0[_0x1cc4c4][_0x593a97(0x3c6)]}},_0x24a69e=this[_0x593a97(0x245)]['transformMutation'](_0x5f3e2b,_0x352c5f,!0x1);if(m[_0x593a97(0x34d)](_0x24a69e))throw _0x24a69e['error'];_0x5f3e2b=_0x24a69e[_0x593a97(0x391)];}return{...a['Tools'][_0x593a97(0x18b)](_0x1faa0d),'mutations':[_0x5f3e2b]};}[_0x4711bf(0x305)](_0xee5668){const _0x504856=_0x4711bf,{unitID:_0x3ff3a8}=_0xee5668,{history:_0x4ec2bf,collaboration:_0x5dc61e}=this[_0x504856(0x254)][_0x504856(0x3a3)](_0x3ff3a8);if(_0x4ec2bf[_0x504856(0x246)]===0x0&&_0x5dc61e[_0x504856(0x246)]===0x0)return;const _0x1c61a5=[],_0x2e057e=[];let _0x63bf=a[_0x504856(0x1ab)][_0x504856(0x18b)](_0xee5668['mutations'][0x0]),_0x42a15b=a[_0x504856(0x1ab)][_0x504856(0x18b)](_0xee5668[_0x504856(0x2eb)][0x0]);for(let _0x30a0f0=_0x4ec2bf['length']-0x1;_0x30a0f0>=0x0;_0x30a0f0--){const _0x8c2691={'id':_0x504856(0x311),'params':{'unitId':_0x4ec2bf[_0x30a0f0][_0x504856(0x1d4)],..._0x4ec2bf[_0x30a0f0]['undoState']}},_0x478ff8={'id':_0x504856(0x311),'params':{'unitId':_0x4ec2bf[_0x30a0f0][_0x504856(0x1d4)],..._0x4ec2bf[_0x30a0f0][_0x504856(0x3c6)]}},_0x140ef6=this['_transformService'][_0x504856(0x211)](_0x63bf,_0x8c2691,!0x1),_0x56e199=this[_0x504856(0x245)]['transformMutation'](_0x42a15b,_0x478ff8,!0x1);if(m[_0x504856(0x34d)](_0x140ef6))throw _0x140ef6['error'];if(m[_0x504856(0x34d)](_0x56e199))throw _0x56e199['error'];_0x1c61a5[_0x504856(0x2d6)]({..._0x4ec2bf[_0x30a0f0],'undoState':_0x140ef6['m2Prime'][_0x504856(0x276)],'redoState':_0x56e199[_0x504856(0x1d0)][_0x504856(0x276)]}),_0x63bf=_0x140ef6[_0x504856(0x391)],_0x42a15b=_0x56e199['m1Prime'];}_0x63bf=a[_0x504856(0x1ab)][_0x504856(0x18b)](_0xee5668[_0x504856(0x2eb)][0x0]),_0x42a15b=a[_0x504856(0x1ab)]['deepClone'](_0xee5668[_0x504856(0x2eb)][0x0]);for(let _0x4697e5=_0x5dc61e[_0x504856(0x246)]-0x1;_0x4697e5>=0x0;_0x4697e5--){const _0x5e71cc={'id':_0x504856(0x311),'params':{'unitId':_0x5dc61e[_0x4697e5][_0x504856(0x1d4)],..._0x5dc61e[_0x4697e5][_0x504856(0x1c8)]}},_0x474d27={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5dc61e[_0x4697e5][_0x504856(0x1d4)],..._0x5dc61e[_0x4697e5][_0x504856(0x3c6)]}},_0x5adc30=this[_0x504856(0x245)][_0x504856(0x211)](_0x63bf,_0x5e71cc,!0x1),_0x50ed5d=this[_0x504856(0x245)][_0x504856(0x211)](_0x42a15b,_0x474d27,!0x1);if(m[_0x504856(0x34d)](_0x5adc30))throw _0x5adc30[_0x504856(0x375)];if(m['isTransformMutationFailure'](_0x50ed5d))throw _0x50ed5d['error'];_0x2e057e[_0x504856(0x2d6)]({..._0x5dc61e[_0x4697e5],'undoState':_0x5adc30[_0x504856(0x1d0)][_0x504856(0x276)],'redoState':_0x50ed5d[_0x504856(0x1d0)][_0x504856(0x276)]}),_0x63bf=_0x5adc30[_0x504856(0x391)],_0x42a15b=_0x50ed5d[_0x504856(0x391)];}this[_0x504856(0x254)][_0x504856(0x2f3)](_0x3ff3a8,{'history':_0x1c61a5,'collaboration':_0x2e057e});}};J=Ft([le(0x0,a[_0x4711bf(0x209)](a['Injector'])),le(0x1,m['ITransformService']),le(0x2,a[_0x4711bf(0x209)](b[_0x4711bf(0x326)]))],J);var Yt=Object[_0x4711bf(0x1fe)],Wt=(_0x18fcd7,_0x280e56,_0x5af3d1,_0x3cfd30)=>{const _0xdc9f08=_0x4711bf;for(var _0x2c5871=_0x3cfd30>0x1?void 0x0:_0x3cfd30?Yt(_0x280e56,_0x5af3d1):_0x280e56,_0x3e430b=_0x18fcd7[_0xdc9f08(0x246)]-0x1,_0x226763;_0x3e430b>=0x0;_0x3e430b--)(_0x226763=_0x18fcd7[_0x3e430b])&&(_0x2c5871=_0x226763(_0x2c5871)||_0x2c5871);return _0x2c5871;},Ne=(_0x50a401,_0x28229b)=>(_0x2095df,_0x577e2c)=>_0x28229b(_0x2095df,_0x577e2c,_0x50a401);let Z=class{constructor(_0x1d29c4,_0x268fb4){const _0x483559=_0x4711bf;this[_0x483559(0x2db)]=_0x1d29c4,this['_transformService']=_0x268fb4;}['transformSelections'](_0xe9c214){const _0x3d05c2=_0x4711bf;var _0x1948fd;const _0xa45b5a=this['_injector']['get'](Y[_0x3d05c2(0x3dd)]),_0x1d5447=(_0x1948fd=_0xa45b5a[_0x3d05c2(0x344)]())!=null?_0x1948fd:[];if(_0x1d5447[_0x3d05c2(0x246)]===0x0)return;const _0x3b5cf7=_0xe9c214[_0x3d05c2(0x2e3)],_0x152e17=[{'id':_0x3d05c2(0x311),'params':{'unitId':_0x3b5cf7,'actions':null,'textRanges':_0x1d5447}}],_0x33525e=this[_0x3d05c2(0x245)]['transformMutationsWithChangeset'](_0xe9c214,_0x152e17);if(!m[_0x3d05c2(0x1f8)](_0x33525e))throw _0x33525e[_0x3d05c2(0x375)];const _0x17de1d=_0x33525e[_0x3d05c2(0x1d0)][0x0]['params']['textRanges'];Array[_0x3d05c2(0x374)](_0x17de1d)&&_0x17de1d[_0x3d05c2(0x246)]&&_0xa45b5a['replaceDocRanges'](_0x17de1d,{'unitId':_0x3b5cf7,'subUnitId':_0x3b5cf7},!0x1);}};Z=Wt([Ne(0x0,a[_0x4711bf(0x209)](a[_0x4711bf(0x187)])),Ne(0x1,m[_0x4711bf(0x2d5)])],Z);var Vt=Object[_0x4711bf(0x1fe)],Xt=(_0x2c255d,_0x10bfe9,_0xd7908a,_0x15da8d)=>{for(var _0x3a461a=_0x15da8d>0x1?void 0x0:_0x15da8d?Vt(_0x10bfe9,_0xd7908a):_0x10bfe9,_0x3ab7c7=_0x2c255d['length']-0x1,_0x178ea4;_0x3ab7c7>=0x0;_0x3ab7c7--)(_0x178ea4=_0x2c255d[_0x3ab7c7])&&(_0x3a461a=_0x178ea4(_0x3a461a)||_0x3a461a);return _0x3a461a;},N=(_0x3645d1,_0x5e26e9)=>(_0x44d373,_0x30121d)=>_0x5e26e9(_0x44d373,_0x30121d,_0x3645d1);let Q=class extends a[_0x4711bf(0x3ac)]{constructor(_0x1125cf,_0x3754db,_0x44d9af,_0x53eac5,_0x11c1d0,_0x3cf036,_0x87da0f,_0x20fed7){const _0x1c5086=_0x4711bf;super(),h(this,'_status$',new d[(_0x1c5086(0x306))](u[_0x1c5086(0x291)][_0x1c5086(0x2d1)])),(this[_0x1c5086(0x254)]=_0x1125cf,this[_0x1c5086(0x364)]=_0x3754db,this[_0x1c5086(0x16b)]=_0x44d9af,this[_0x1c5086(0x23f)]=_0x53eac5,this[_0x1c5086(0x31b)]=_0x11c1d0,this[_0x1c5086(0x23b)]=_0x3cf036,this['_messageService']=_0x87da0f,this[_0x1c5086(0x205)]=_0x20fed7,this[_0x1c5086(0x1c1)]());}[_0x4711bf(0x1c1)](){const _0x587ced=_0x4711bf;this['disposeWithMe'](this[_0x587ced(0x364)][_0x587ced(0x167)][_0x587ced(0x297)](_0x3de13a=>{const _0x4a2a9a=_0x587ced,_0x4c5dc0=this['_docStateChangeManagerService'][_0x4a2a9a(0x352)]['subscribe'](_0x56daf2=>{const _0x1aa3e2=_0x4a2a9a;if(_0x56daf2==null)return;const {unitId:_0x2fbe00,redoState:_0x562333,commandId:_0x90d2f9}=_0x56daf2;if(_0x2fbe00!==_0x3de13a[_0x1aa3e2(0x2e3)])return;const _0x373c5c={'id':_0x90d2f9,'type':a['CommandType'][_0x1aa3e2(0x295)],'params':{'unitId':_0x2fbe00,'actions':_0x562333[_0x1aa3e2(0x3db)],'textRanges':null}};_0x3de13a[_0x1aa3e2(0x231)](_0x373c5c);});if(_0x3de13a[_0x4a2a9a(0x2e9)](_0x4c5dc0),_0x3de13a instanceof u[_0x4a2a9a(0x33f)]){const _0x39b418={'onTransformIME':_0x38b4e0=>this[_0x4a2a9a(0x16b)][_0x4a2a9a(0x2b1)](_0x38b4e0),'onTransformState':_0x2fdd67=>this[_0x4a2a9a(0x23f)][_0x4a2a9a(0x29a)](_0x2fdd67),'onTransformSelections':_0x5c64b7=>this['_docTransformSelectionsService'][_0x4a2a9a(0x2c8)](_0x5c64b7),'onSyncEditingCollabCursor':_0x357f80=>this[_0x4a2a9a(0x23b)][_0x4a2a9a(0x307)](_0x357f80),'onTransformRemoteChangesetByIMECache':_0x14fa50=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x14fa50),'onTransformRemoteChangesetByStateCache':_0x3cbaca=>this[_0x4a2a9a(0x23f)][_0x4a2a9a(0x3ef)](_0x3cbaca)};_0x3de13a[_0x4a2a9a(0x251)](_0x39b418);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x4711bf(0x326)])),N(0x1,a[_0x4711bf(0x209)](u[_0x4711bf(0x282)])),N(0x2,a[_0x4711bf(0x209)](z)),N(0x3,a[_0x4711bf(0x209)](J)),N(0x4,a[_0x4711bf(0x209)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x4711bf(0x209)](a[_0x4711bf(0x30b)]))],Q);var Gt=Object[_0x4711bf(0x1fe)],Kt=(_0xa57d11,_0x13b38c,_0x5ae797,_0x43ed0f)=>{const _0x700b18=_0x4711bf;for(var _0x2c883c=_0x43ed0f>0x1?void 0x0:_0x43ed0f?Gt(_0x13b38c,_0x5ae797):_0x13b38c,_0x3b4210=_0xa57d11[_0x700b18(0x246)]-0x1,_0x2dc398;_0x3b4210>=0x0;_0x3b4210--)(_0x2dc398=_0xa57d11[_0x3b4210])&&(_0x2c883c=_0x2dc398(_0x2c883c)||_0x2c883c);return _0x2c883c;},_e=(_0x47b0b9,_0x3d8d65)=>(_0x39cbb4,_0x21c9ce)=>_0x3d8d65(_0x39cbb4,_0x21c9ce,_0x47b0b9);let ge=class extends a[_0x4711bf(0x3ac)]{constructor(_0x14a085,_0x1d2421,_0x150769){const _0x4c3623=_0x4711bf;super(),h(this,_0x4c3623(0x158),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x4c3623(0x200),!0x1),(this[_0x4c3623(0x2bb)]=_0x14a085,this['_localStorageService']=_0x1d2421,this[_0x4c3623(0x2f1)]=_0x150769);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x4711bf(0x3b6)](){this['_disabled']=!0x1;}get['saveTaskMap'](){const _0x42e229=_0x4711bf;return this[_0x42e229(0x181)];}[_0x4711bf(0x192)](){const _0x44e661=_0x4711bf;this[_0x44e661(0x176)]()[_0x44e661(0x38c)](()=>super['dispose']());}async[_0x4711bf(0x243)](_0x359f1f){const _0x234243=_0x4711bf;return this[_0x234243(0x200)]?null:this[_0x234243(0x35f)][_0x234243(0x2ce)](u[_0x234243(0x1b2)](_0x359f1f));}async[_0x4711bf(0x347)](_0x30684f,_0x1b2f4d){const _0x9951e1=_0x4711bf;return!!this[_0x9951e1(0x35f)]['setItem'](_0x30684f,_0x1b2f4d);}[_0x4711bf(0x25b)](_0x3590b9,_0x452ab6,_0x1f853d,_0x1a064d){const _0x394e28=_0x4711bf,_0x4d7e25=this['_revisionService'][_0x394e28(0x2e5)](_0x3590b9);this[_0x394e28(0x158)][_0x394e28(0x1cb)](_0x3590b9,{'unitID':_0x3590b9,'type':_0x452ab6,'awaitingChangeset':_0x1f853d,'mutations':_0x1a064d,'rev':_0x4d7e25}),this['_saveTaskMap'][_0x394e28(0x3ec)](_0x3590b9)||this[_0x394e28(0x2be)](_0x3590b9);}[_0x4711bf(0x2be)](_0x201b5a){const _0x386ce6=_0x4711bf,_0x83b4cf=this['_getSaveTimeout']();_0x83b4cf===0x0?this[_0x386ce6(0x3c7)](_0x201b5a):this[_0x386ce6(0x181)][_0x386ce6(0x1cb)](_0x201b5a,setTimeout(()=>this[_0x386ce6(0x3c7)](_0x201b5a),_0x83b4cf));}['_getSaveTimeout'](){const _0x18a48c=_0x4711bf;var _0x1a3295;return(_0x1a3295=this[_0x18a48c(0x2bb)]['getConfig'](u[_0x18a48c(0x20a)]))!=null?_0x1a3295:u[_0x18a48c(0x2b4)];}[_0x4711bf(0x3c7)](_0x41dc80){const _0x159967=_0x4711bf,_0x12235b=this[_0x159967(0x181)][_0x159967(0x3bc)](_0x41dc80);return _0x12235b!==void 0x0&&window[_0x159967(0x22d)](_0x12235b),this[_0x159967(0x35f)][_0x159967(0x2c3)](u[_0x159967(0x1b2)](_0x41dc80),this['_cachedData'][_0x159967(0x3bc)](_0x41dc80))[_0x159967(0x38c)](()=>this[_0x159967(0x181)]['delete'](_0x41dc80));}async[_0x4711bf(0x176)](){const _0x22d122=_0x4711bf,_0x1a87bf=[];this[_0x22d122(0x181)]['forEach']((_0x329f7b,_0x349823)=>{const _0x387ebb=_0x22d122;window[_0x387ebb(0x22d)](_0x329f7b),_0x1a87bf['push'](this[_0x387ebb(0x3c7)](_0x349823)[_0x387ebb(0x38c)](()=>{const _0x2faa92=_0x387ebb;this['_saveTaskMap'][_0x2faa92(0x1d6)](_0x349823);}));}),await Promise['all'](_0x1a87bf);}};ge=Kt([_e(0x0,a[_0x4711bf(0x2fc)]),_e(0x1,a[_0x4711bf(0x290)]),_e(0x2,a[_0x4711bf(0x209)](m[_0x4711bf(0x270)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x3ed9ec=_0x4711bf;super(),h(this,_0x3ed9ec(0x314)),this[_0x3ed9ec(0x314)]=d[_0x3ed9ec(0x3d7)](window,_0x3ed9ec(0x27d))['pipe'](d['takeUntil'](this[_0x3ed9ec(0x20c)]),d[_0x3ed9ec(0x3e3)](0x1),d[_0x3ed9ec(0x3c2)](void 0x0));}['setParam'](_0x1fe59c,_0x34b282,_0x357873=!0x1){const _0x2ccbde=_0x4711bf,_0x341ce7=new URL(window[_0x2ccbde(0x2f0)][_0x2ccbde(0x35e)]);_0x341ce7[_0x2ccbde(0x1a2)]['set'](_0x1fe59c,_0x34b282),_0x357873?window[_0x2ccbde(0x2a2)][_0x2ccbde(0x393)]('','',_0x341ce7[_0x2ccbde(0x37c)]()):window[_0x2ccbde(0x2a2)][_0x2ccbde(0x21d)]('','',_0x341ce7[_0x2ccbde(0x37c)]());}[_0x4711bf(0x1c0)](_0xa72af4,_0x596d6b=!0x1){const _0x100386=_0x4711bf,_0x3f2b96=new URL(window[_0x100386(0x2f0)]['href']);_0x3f2b96[_0x100386(0x1a2)][_0x100386(0x1d6)](_0xa72af4),_0x596d6b?window[_0x100386(0x2a2)][_0x100386(0x393)]('','',_0x3f2b96[_0x100386(0x37c)]()):window[_0x100386(0x2a2)][_0x100386(0x21d)]('','',_0x3f2b96[_0x100386(0x37c)]());}['getParam'](_0x52221e){const _0x374c8a=_0x4711bf;var _0x914d06;return(_0x914d06=new URL(window[_0x374c8a(0x2f0)][_0x374c8a(0x35e)])[_0x374c8a(0x1a2)]['get'](_0x52221e))!=null?_0x914d06:void 0x0;}}var qt=Object[_0x4711bf(0x227)],zt=Object[_0x4711bf(0x1fe)],Jt=(_0x441f58,_0x3c5878,_0x2b379c)=>_0x3c5878 in _0x441f58?qt(_0x441f58,_0x3c5878,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b379c}):_0x441f58[_0x3c5878]=_0x2b379c,Zt=(_0x11bdfe,_0xf01faf,_0x5cd2e0,_0x54e692)=>{const _0x42bfbe=_0x4711bf;for(var _0x509786=_0x54e692>0x1?void 0x0:_0x54e692?zt(_0xf01faf,_0x5cd2e0):_0xf01faf,_0x3ebf62=_0x11bdfe[_0x42bfbe(0x246)]-0x1,_0x171c1e;_0x3ebf62>=0x0;_0x3ebf62--)(_0x171c1e=_0x11bdfe[_0x3ebf62])&&(_0x509786=_0x171c1e(_0x509786)||_0x509786);return _0x509786;},he=(_0x118a8f,_0x3d26b7)=>(_0x5971f2,_0x43fd64)=>_0x3d26b7(_0x5971f2,_0x43fd64,_0x118a8f),Qt=(_0x490c44,_0x5838e1,_0x5c5fba)=>Jt(_0x490c44,_0x5838e1+'',_0x5c5fba);const es=_0x4711bf(0x212);exports[_0x4711bf(0x362)]=class extends a[_0x4711bf(0x3ee)]{constructor(_0xdf9659=Ue,_0x1286bb,_0x39552b,_0xe0ed69){const _0xfa59fd=_0x4711bf;super(),this[_0xfa59fd(0x1f2)]=_0xdf9659,this[_0xfa59fd(0x24f)]=_0x1286bb,this[_0xfa59fd(0x2db)]=_0x39552b,this['_configService']=_0xe0ed69;const {..._0x168be6}=a[_0xfa59fd(0x32b)]({},Ue,this[_0xfa59fd(0x1f2)]);this[_0xfa59fd(0x2bb)]['setConfig']($t,_0x168be6);}[_0x4711bf(0x1a5)](){const _0xf25075=_0x4711bf;this[_0xf25075(0x365)](),this['_initDependencies']();}[_0x4711bf(0x36d)](){const _0xea7b15=_0x4711bf;this[_0xea7b15(0x250)]();}['_registerDependencies'](){const _0x127dc1=_0x4711bf;var _0x31ab84;const _0x2a5ad1=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x127dc1(0x26e)],{'useClass':G[_0x127dc1(0x172)]}],[u[_0x127dc1(0x31e)],{'useClass':ge}],[exports[_0x127dc1(0x3dc)]],[Q],[q],[x],[de],[exports[_0x127dc1(0x16c)]]];a[_0x127dc1(0x3f0)](this['_injector'],a[_0x127dc1(0x2c2)](_0x2a5ad1,(_0x31ab84=this[_0x127dc1(0x1f2)])==null?void 0x0:_0x31ab84[_0x127dc1(0x31f)]));}['_registerRenderDependencies'](){const _0x3b0bc5=_0x4711bf;this[_0x3b0bc5(0x2e9)](this['_renderManagerService'][_0x3b0bc5(0x3b9)](a['UniverInstanceType'][_0x3b0bc5(0x359)],[Ie])),this[_0x3b0bc5(0x2e9)](this['_renderManagerService'][_0x3b0bc5(0x3b9)](a[_0x3b0bc5(0x3cb)][_0x3b0bc5(0x1d7)],[ve]));}[_0x4711bf(0x36b)](){const _0x59a424=_0x4711bf;a[_0x59a424(0x371)](this[_0x59a424(0x2db)],[[x],[exports[_0x59a424(0x3dc)]],[Q],[q],[exports[_0x59a424(0x16c)]]]);}},Qt(exports[_0x4711bf(0x362)],'pluginName',es),exports[_0x4711bf(0x362)]=Zt([a['DependentOn'](u[_0x4711bf(0x178)]),he(0x1,p[_0x4711bf(0x3d6)]),he(0x2,a[_0x4711bf(0x209)](a[_0x4711bf(0x187)])),he(0x3,a[_0x4711bf(0x2fc)])],exports[_0x4711bf(0x362)]);function _0x1141(){const _0x93c93b=['transformIMECache','collab-rect-range-','react/jsx-runtime','LOCAL_CACHE_INTERVAL','_clearOtherTimers','LICENSE_MAX_UNITS_EXCEEDED','serializeRangeWithSheet','TEXT_RANGE_LAYER_INDEX','path','some','_configService','top','push','_scheduleSaving','Vector2','@univerjs/design','entries','mergeOverrideWithDependencies','setItem','FromArray','replace','_setupBeforeClosingHandler','CONFLICT','transformSelections','610734vKKxOk','sessionTicket','current','apply','_getSessionTicket','getItem','collab-text-range-','_refreshCollabCursors','NOT_COLLAB','SNAPSHOT_INVALID_SNAPSHOT','UNDEFINED','Workbook','ITransformService','unshift','memberID','COLORS','FETCH_MISS','APPLY_DUPLICATED','_injector','_collabCursorController','registerComponent','IMessageService','collabStatus.conflict','Rectangle','asObservable','registerBeforeClose','unitID','_draw','getCurrentRevOfUnit','useDependency','_anchor','reconnect','disposeWithMe','red.300','mutations','UPDATE_CURSOR','url(#on-line-icon_clip0_910_349)','_lastPointer','_send','location','_revisionService','_updateCollabCursors','setStateCache','_anchorDot','getFocusedUnit','concat','SHEET_VIEWPORT_KEY','INVITE_CODE_ALREADY_BOUND','fillStyle','from','...','IConfigService','unload','_eventUnsubscribe','hasOwnProperty','setInterval','_transformPreviousActiveRange','_cursor','subunit','_collaborationUIEventService','_transformHistoryAndStateStack','BehaviorSubject','syncEditingCollabCursor','685ngEnmy','DeleteRangeMoveLeftCommandId','CollaborationSessionService','LocaleService','values','WebURLService','_roomMembers$','NO_OTHER_CLIENTS_EDITING','collabStatus.offline','doc.mutation.rich-text-editing','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','VIEW_MAIN','urlChange$','executeCommand','getTypeOfUnitDisposed$','SheetCollabCursorShape','http://www.w3.org/2000/svg','WECHAT_HAS_BEEN_BOUND','off-line-icon','_docTransformSelectionsService','onTransformChange$','lineTo','ILocalCacheService','override','SheetSkeletonManagerService','takeUntil','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','fromEventSubject','white','addObject','DocStateChangeManagerService','IBeforeCloseService','roomMembers','MoveRangeCommandId','getOwnPropertySymbols','merge','_initResize','_beforeCloseService','fillText','collab-client.tooltip.reconnect','YUUMI_ALL_TABLES_IS_INVALID','unsubscribe','CollaborationUIEventId','parse','min','_univerInstanceService','endRow','createElement','defs','getSheetId','YUUMI_ASYNCIO_CANCELLED','runId','call','executionId','next','DocCollaborationEntity','univer-flex\x20univer-items-center','roomMembers$','JOIN_ROOM_FAILED','TOO_MANY_REQUESTS','getDocRanges','TRANSFORM_CHANGE_OBSERVABLE_TYPE','assign','saveOfflineData','handleInsertRangeMoveDown','EMAIL_HAS_BEEN_BOUND','_shapes','MOBILE_HAS_BEEN_BOUND','UNRECOGNIZED','isTransformMutationFailure','_unitOnClients','black','on-line-icon_clip0_910_349','getMergeData','docStateChange$','storage','height','selections','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','symbol','startsWith','UNIVER_DOC','runOnServer','indexOf','onCommandExecuted','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','href','_localStorageService','attrs','propertyIsEnumerable','UniverCollaborationClientUIPlugin','_docClipboardService','_collaborationController','_registerDependencies','unit','getCollabEntity$','UNAUTHENTICATED','react','DisposableCollection','_initDependencies','TEXT','onRendered','APPLY_REVISION_CONFILICT','Rect','_name','touchDependencies','add','with','isArray','error','_cursorInfo$','debug','_sheetSkeletonManagerService','column','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','YUUMI_TABLE_NOT_FOUND_IN_UNIT','toString','onPointerLeave$','_colorAssignService','xlink:href','map','throttleTime','onPointerEnter$','_online','@univerjs/rpc','_createSocketURL','distinctUntilChanged','_updateURLWithCurrentState','handleInsertRangeMoveRight','SetSelectionsOperation','USERS_LEAVE','_cursorShapes','then','ICommandService','text','ALREADY_EXISTS','RichTextEditingMutation','m1Prime','MessageType','replaceState','sessionStatus$','HEADER_MENU','ENSURE_SNAPSHOT_EXECUTION','getValue','_range','InsertRowCommandId','OTHER_CLIENT_EDITING','_httpService','event$','@univerjs/sheets','focused$','_handleLeaveEvent','toDisposable','_collabSessionService','save','getStateCache','split','_textBubble','ONLINE','OnLineIcon','status$','BrowserCollaborationSocketService','collabStatus.syncing','currentTheme$','Disposable','RemoveRowCommandId','clipPath','_labelPosition','tag','_heartbeatTimer','WebBrowserSingleActiveUnitService','displayName','skeleton','debounce','enableLocalCache','SheetsSelectionsService','_selfUnitIDs','registerRenderModule','_ensureSubject','@univerjs/core','get','APPLY_NON_SEQUENTIAL_REVISION','ILogService','HTTPService','_assignedColors','trim','mapTo','addObjects','getCoordByCell','fill','redoState','_saveCache','findNodePositionByCharIndex','defIds','Optional','UniverInstanceType','Unknown\x20user','@univerjs/engine-render','[RemoteUniscriptService]:\x20no\x20focused\x20unit','OTHER_CLIENTS_EDITING','InsertRangeMoveRightCommandId','_color','@univerjs/drawing','isActive','result','whenReady','IRenderManagerService','fromEvent','subscribeEvent','createSocket','color','actions','DesktopCollaborationStatusDisplayController','DocSelectionManagerService','_handleEvent','1em','getConfig','flatMap','max','shareReplay','1623650MsaZJL','getVpScrollXYInfoByPosToVp','permission.content','data','off-line-icon_clip0_910_343','INVITE_CODE_REQUIRED','_updateLocalCursor','setShapeProps','has','collaboration-client.offline-data-not-saved','Plugin','transformRemoteChangeset','registerDependencies','_status$','PERMISSION_DENIED','collab-text-anchor-','_cachedData','none','key','_getMergeRange','_unitStatus','_onCursorDelete','getCollabCursors$','DocIMEInputManagerService','getRenderById','requireSession','activeSheet$','SNAPSHOT_HAS_BEEN_REMOVED','IURLService','AWAITING','RemoveColCommandId','entityInit$','_handleHover','42114HXXyuQ','OffLineIcon','_docTransformIMECacheService','CollaborationDataLoaderController','INVALID_INVITE_CODE','url(#$1','forwardRef','collabStatus.notCollab','_doCreateSocket','WebSocketService','CLOSE_ROOM','engine','YUUMI_AI_RUN_FAILED','exhaustSavingTask','cursorInfo$','UniverCollaborationClientPlugin','name','collaboration.single-unit.warning','includes','selection','PENDING','getActiveRange','Warning','InsertColCommandId','_saveTaskMap','clearInterval','_onCursorUpdate','_cursors','BuiltInUIPart','DeleteRangeMoveUpCommandId','Injector','SetWorksheetActivateCommand','UniverIcon','EffectRefRangId','deepClone','_initEvent','labelPosition','YUUMI_SUBSCRIPTION_NOT_FOUND','SessionStatus','round','CollaborationEvent','dispose','origin','ISnapshotServerService','getColor','LOGIN_FAILED','startRow','_backgroundColor','saveImage','subUnitId','deserializeRangeWithSheet','SUBMIT_CHANGESET_TIMEOUT','transformByState','INVALID_ARGUMENT','icon','_scheduleClearOtherTimer','ticket','searchParams','_syncEditingCollabCursorService','ColorKit','onStarting','setParam','restore','ranges','on-line-icon','_handleJoinEvent','Tools','children','moveTo','2256aFgrao','evenodd','RxDisposable','init','getLocalCacheKey','_updateSubUnitFromURLParams','@univerjs/engine-formula','M0\x200H16V16H0z','LICENSE_IMPORT_SIZE_EXCEEDED','UnitStatus','getActiveSheet','drawWith','session.collaboration-timeout','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnitId','collaboration-client-ui.config','session.connection-failed','_initStatusComponent','removeParam','_initEntityListener','colorChannel1','AWAITING_WITH_PENDING','_initCommandExecutedListener','_dataLoaderService','Subject','_localCacheService','undoState','_logService','className','set','670ZOfkmB','DataLoaderService','_commandService','currentColor','m2Prime','getMember','#FFF','_notificationService','unitId','handleInsertRow','delete','UNIVER_SHEET','getMemberID','_getAnchorBounding','onMouseMove','IUIPartsService','_init','range','textRanges','imageSourceType','width','_startDocCollabCursor','post','YUUMI_NO_CUBOID_FOR_QUESTION','loadUnit','_memberService','ACTIVE_UNIT_EVENT_CHANNEL','combineLatest','SetTextSelectionsOperation','idSuffix','mask','startColumn','_session','_collabCursorState$','collaboration.closeRoom','53288ErnCca','cursorInfo','wsSessionTicketUrl','_config','Tooltip','newValue','_imageIoService','@univerjs/sheets-ui','bottom','isTransformMutationsWithChangesetSuccess','Shape','complete','_context','[CollaborationDataLoaderController]','CONNECTOR_DATA_TOO_LARGE','getOwnPropertyDescriptor','RefRangeService','_disabled','_refRangeService','COMPLETION_FINISHED','contains','_removeClearOtherTimer','_localeService','INTERNAL_ERROR','_transformUndoRedoStack','MemberService','Inject','LOCAL_CACHE_INTERVAL_KEY','28JYGbrS','dispose$','LICENSE_EXPORT_SIZE_EXCEEDED','assignAColorForMemberID','11298050QmAsNZ','getCellPositionByOffset','transformMutation','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_setupSubUnitSync','_initStatusListener','permission.title','green.600','function','DEFAULT_WS_SESSION_TICKET_URL','OFFLINE','IUniverInstanceService','getAncestorScale','collabCursorState$','pushState','DOC_RANGE_TYPE','YUUMI_RATE_OVER_LIMIT','hide','useObservable','NodePositionConvertToRectRange','Failed','PY_RUNTIME_SCRIPT_ERROR','_toggleOffline','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','defineProperty','createIdentifier','_messageService','getColorFromTheme','forEach','arc','clearTimeout','transform','YUUMI_UNABLE_LOAD_URL','sheetId','onLocalMutation','find','getSkeleton','body','closePath','createInstance','_drawTextRange','saveTaskMap','INVITE_CODE_HAS_BEEN_UES','_drawRectRange','_docSyncEditingCollabCursorService','stringify','toRgbString','@univerjs-pro/collaboration-client','_docTransformStateCacheService','Error','resize','APPLY_REJECT','loadOfflineData','IImageIoService','_transformService','length','_colorIndex','isEditing','getSheetBySheetId','_toggleOnline','filter','_drawAnchor','prototype','IRemoteInstanceService','_renderManagerService','_registerRenderDependencies','addHandlerCallback','SOCKET_FAILED_RETRY','50842DlUNhZ','_docStateChangeManagerService','_scheduleHeartbeat','CHANGESET_REVISION_CONFILICT','generateRandomId','setUndoRedoMutationParamsCache','setActiveRange','_instanceService','updateOfflineData','@univerjs-pro/collaboration','handleInsertCol','registerRefRange','_startSheetCollabCursor','clsx','1422NvWCPv','NOT_FOUND','_entities','size','getCurrentUnitForType','random','univerjs-icon\x20univerjs-icon-','svg','_urlService','CollaborationStatusDisplay','send','_hideTimer','_getSheetObject','ISocketService','CollaborationUIEventService','RevisionService','0\x200\x2017\x2016','measureText','toStringTag','handleDeleteRangeMoveUp','jsx','params','ThemeService','addClipboardHook','@univerjs/docs-ui','debounceTime','_scene','getRangePointData','popstate','_docSkeleton','RemoteUniscriptService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','connectInjector','CollaborationController','session.will-retry','_removeCollabCursors','setTimeout','_hover','type','eventID','pipe','_themeService','string','show','_docSkeletonManagerService','_getScale','287HQsotb','ILocalStorageService','CollaborationStatus','IDocClipboardService','_id','div','MUTATION','APPLY_PERMISSION_DENIED','subscribe','setAlpha','univer-flex\x20univer-mr-2\x20univer-text-xl','transformStateCache','switchMap','getTypeOfUnitAdded$','handleIRemoveRow','getUndoRedoMutationParamsCache','RECT','RegularPolygon','getViewport','history','_entityInit$','_handleHeartbeatEvent','getUnitStatus$','fillRule','getCurrent','_hovered','getParam','_render','addEventListener','_uiPartsService','triggerDblclick','font','LICENSE_DISTRO_REJECTED','hovered'];_0x1141=function(){return _0x93c93b;};return _0x1141();}var ts=Object[_0x4711bf(0x1fe)],ss=(_0xcecb0,_0x24ac24,_0x203b3b,_0x2156b9)=>{const _0x15fb8f=_0x4711bf;for(var _0x526775=_0x2156b9>0x1?void 0x0:_0x2156b9?ts(_0x24ac24,_0x203b3b):_0x24ac24,_0x479824=_0xcecb0[_0x15fb8f(0x246)]-0x1,_0x562386;_0x479824>=0x0;_0x479824--)(_0x562386=_0xcecb0[_0x479824])&&(_0x526775=_0x562386(_0x526775)||_0x526775);return _0x526775;},F=(_0x45403a,_0x59fff7)=>(_0x4175c9,_0x2fbdb2)=>_0x59fff7(_0x4175c9,_0x2fbdb2,_0x45403a);exports[_0x4711bf(0x3a9)]=class extends u['CollaborationSocketService']{constructor(_0x426d9e,_0x26f1d8,_0x1bf3f9,_0x5c0a4f,_0x5025d8){super(_0x426d9e,_0x26f1d8,_0x1bf3f9,_0x5c0a4f,_0x5025d8);}async[_0x4711bf(0x3d9)](_0x54247a){const _0x222a01=_0x4711bf,_0x38a45a=await this[_0x222a01(0x2cd)](),_0x47aaeb=this['_createSocketURL'](_0x54247a,_0x38a45a);return this[_0x222a01(0x171)](_0x47aaeb);}[_0x4711bf(0x385)](_0x4c00b7,_0x3c0013){const _0x10946f=_0x4711bf,_0x3ddca7=typeof window>'u'?new URL(_0x4c00b7):new URL(_0x4c00b7,window['location'][_0x10946f(0x193)]);_0x3ddca7['searchParams'][_0x10946f(0x1cb)](_0x10946f(0x2ca),_0x3c0013);const _0x31393e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x31393e['get'](_0x10946f(0x33b))&&_0x3ddca7[_0x10946f(0x1a2)][_0x10946f(0x1cb)](_0x10946f(0x33b),_0x31393e[_0x10946f(0x3bc)](_0x10946f(0x33b))),_0x3ddca7[_0x10946f(0x37c)]();}async[_0x4711bf(0x2cd)](){const _0x23ee1d=_0x4711bf;var _0x5196a,_0x15762d,_0x21d85c;const _0xf8c195=this[_0x23ee1d(0x2bb)][_0x23ee1d(0x3e0)](u[_0x23ee1d(0x35d)]),_0x361be3=(_0x5196a=_0xf8c195==null?void 0x0:_0xf8c195[_0x23ee1d(0x1f1)])!=null?_0x5196a:u[_0x23ee1d(0x218)];return(_0x21d85c=(_0x15762d=(await this[_0x23ee1d(0x39b)]['get'](_0x361be3,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x15762d[_0x23ee1d(0x1a1)])!=null?_0x21d85c:'';}},exports[_0x4711bf(0x3a9)]=ss([F(0x0,a[_0x4711bf(0x209)](a['Injector'])),F(0x1,a[_0x4711bf(0x209)](G[_0x4711bf(0x3bf)])),F(0x2,a['IConfigService']),F(0x3,a[_0x4711bf(0x3be)]),F(0x4,m[_0x4711bf(0x194)])],exports[_0x4711bf(0x3a9)]);const Me=0x7530,Le=_0x4711bf(0x1e6);class is extends a[_0x4711bf(0x3ac)]{constructor(){const _0x2aa098=_0x4711bf;super(),h(this,_0x2aa098(0x293),a[_0x2aa098(0x257)]()),h(this,_0x2aa098(0x3b8),new Set()),h(this,_0x2aa098(0x34e),new Map()),h(this,_0x2aa098(0x3b1),null),h(this,_0x2aa098(0x2b5),new Map()),h(this,_0x2aa098(0x15c),new Map()),this[_0x2aa098(0x1dc)]();}['dispose'](){const _0x37908f=_0x4711bf;super[_0x37908f(0x192)](),this[_0x37908f(0x2b5)]['forEach']((_0x2630f3,_0x597826)=>this['_removeClearOtherTimer'](_0x597826)),this[_0x37908f(0x3b1)]&&window[_0x37908f(0x182)](this[_0x37908f(0x3b1)]);}[_0x4711bf(0x2a5)](_0x3fefe4){const _0x51b9c4=_0x4711bf;return this['_ensureSubject'](_0x3fefe4)[_0x51b9c4(0x289)](d[_0x51b9c4(0x386)]());}['editingUnit'](_0x190633){const _0x4c8891=_0x4711bf;this[_0x4c8891(0x3b8)]['size']===0x0&&this[_0x4c8891(0x255)](),this['_selfUnitIDs'][_0x4c8891(0x372)](_0x190633),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x190633],'isForwarded':!0x1});}['disposeUnit'](_0x4b68e5){const _0x8eada7=_0x4711bf;this[_0x8eada7(0x3b8)][_0x8eada7(0x1d6)](_0x4b68e5),this[_0x8eada7(0x3b8)][_0x8eada7(0x264)]===0x0&&this[_0x8eada7(0x3b1)]&&window[_0x8eada7(0x182)](this[_0x8eada7(0x3b1)]);}[_0x4711bf(0x1dc)](){const _0x9070b6=_0x4711bf;this[_0x9070b6(0x2e9)](a[_0x9070b6(0x3a0)](d[_0x9070b6(0x3d7)](window,_0x9070b6(0x353))['subscribe'](_0x1aef5e=>{const _0x475ea3=_0x9070b6;if(_0x1aef5e[_0x475ea3(0x15a)]!==Le||!_0x1aef5e[_0x475ea3(0x1f4)])return;const _0x45e86=JSON[_0x475ea3(0x333)](_0x1aef5e[_0x475ea3(0x1f4)]);this[_0x475ea3(0x3de)](_0x45e86);}))),window[_0x9070b6(0x2ab)](_0x9070b6(0x2fd),()=>this[_0x9070b6(0x2ef)]({'type':0x1,'memberID':this[_0x9070b6(0x293)],'unitIDs':Array[_0x9070b6(0x2fa)](this['_selfUnitIDs'])}));}[_0x4711bf(0x3de)](_0x4c56f3){const _0x2dc2fc=_0x4711bf;switch(_0x4c56f3[_0x2dc2fc(0x287)]){case 0x0:this[_0x2dc2fc(0x1aa)](_0x4c56f3);break;case 0x1:this[_0x2dc2fc(0x39f)](_0x4c56f3);break;case 0x2:this[_0x2dc2fc(0x2a4)](_0x4c56f3);break;}}[_0x4711bf(0x1aa)](_0x3fa3cc){const _0x4b9cc9=_0x4711bf,{unitIDs:_0x9aad1f,memberID:_0x2f3036,isForwarded:_0x12d3fd}=_0x3fa3cc;_0x9aad1f[_0x4b9cc9(0x22b)](_0x281bbc=>{const _0x3c0400=_0x4b9cc9;if(!_0x12d3fd&&this[_0x3c0400(0x34e)]['has'](_0x281bbc)&&this[_0x3c0400(0x3ba)](_0x281bbc)[_0x3c0400(0x33e)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this['_unitOnClients']['has'](_0x281bbc)||!this[_0x3c0400(0x34e)][_0x3c0400(0x3bc)](_0x281bbc)['has'](_0x2f3036)){const _0x4d1972=this[_0x3c0400(0x34e)][_0x3c0400(0x3bc)](_0x281bbc)||new Set();_0x4d1972[_0x3c0400(0x372)](_0x2f3036),this['_unitOnClients']['set'](_0x281bbc,_0x4d1972),this[_0x3c0400(0x1a0)](_0x2f3036);}}),_0x12d3fd||this[_0x4b9cc9(0x2ef)]({'type':0x0,'memberID':this[_0x4b9cc9(0x293)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4711bf(0x1a0)](_0x51c321){const _0x719710=_0x4711bf;this['_removeClearOtherTimer'](_0x51c321);const _0x5aa361=window[_0x719710(0x285)](()=>{const _0x4a6399=_0x719710;this[_0x4a6399(0x34e)][_0x4a6399(0x22b)](_0x184c03=>{_0x184c03['delete'](_0x51c321);});},Me*0x2);this['_clearOtherTimers'][_0x719710(0x1cb)](_0x51c321,_0x5aa361);}[_0x4711bf(0x204)](_0x170daf){const _0x42698a=_0x4711bf;if(this[_0x42698a(0x2b5)][_0x42698a(0x3ec)](_0x170daf)){const _0x13903d=this[_0x42698a(0x2b5)][_0x42698a(0x3bc)](_0x170daf);_0x13903d&&window[_0x42698a(0x22d)](_0x13903d),this['_clearOtherTimers'][_0x42698a(0x1cb)](_0x170daf,null);}}[_0x4711bf(0x39f)](_0xe1c4a){const {memberID:_0x211975,unitIDs:_0x14a35b}=_0xe1c4a;_0x14a35b['forEach'](_0x2a93e5=>{const _0x2717ee=_0x5c67;var _0x3b1abf;const _0xacc7a5=this[_0x2717ee(0x34e)][_0x2717ee(0x3bc)](_0x2a93e5);_0xacc7a5&&(_0xacc7a5[_0x2717ee(0x1d6)](_0x211975),(_0x3b1abf=this[_0x2717ee(0x3ba)](_0x2a93e5))==null||_0x3b1abf['next'](_0xacc7a5['size']===0x0?u[_0x2717ee(0x1b7)][_0x2717ee(0x30f)]:u[_0x2717ee(0x1b7)][_0x2717ee(0x3cf)]));}),this['_removeClearOtherTimer'](_0x211975);}[_0x4711bf(0x2a4)](_0x430b11){const _0x36f0c3=_0x4711bf;this['_scheduleClearOtherTimer'](_0x430b11[_0x36f0c3(0x2d7)]);}[_0x4711bf(0x2ef)](_0x108c80){const _0x59a4cf=_0x4711bf;localStorage[_0x59a4cf(0x2c3)](Le,JSON[_0x59a4cf(0x23c)](_0x108c80));}[_0x4711bf(0x255)](){const _0x27af58=_0x4711bf;this[_0x27af58(0x3b1)]=window[_0x27af58(0x300)](()=>{const _0xff7722=_0x27af58;this[_0xff7722(0x2ef)]({'type':0x2,'memberID':this['_id']});},Me);}[_0x4711bf(0x3ba)](_0x33f5e7){const _0xaa6695=_0x4711bf;return this[_0xaa6695(0x15c)][_0xaa6695(0x3ec)](_0x33f5e7)||this[_0xaa6695(0x15c)][_0xaa6695(0x1cb)](_0x33f5e7,new d['BehaviorSubject'](u[_0xaa6695(0x1b7)][_0xaa6695(0x30f)])),this['_unitStatus'][_0xaa6695(0x3bc)](_0x33f5e7);}}function _0x5c67(_0x255fba,_0x110657){const _0x1141d4=_0x1141();return _0x5c67=function(_0x5c670e,_0xa7b007){_0x5c670e=_0x5c670e-0x158;let _0x4d8188=_0x1141d4[_0x5c670e];return _0x4d8188;},_0x5c67(_0x255fba,_0x110657);}var Be=(_0x5ecc78=>(_0x5ecc78[_0x5ecc78['UNDEFINED']=0x0]=_0x4711bf(0x2d3),_0x5ecc78[_0x5ecc78['OK']=0x1]='OK',_0x5ecc78[_0x5ecc78[_0x4711bf(0x206)]=0x2]='INTERNAL_ERROR',_0x5ecc78[_0x5ecc78[_0x4711bf(0x3f2)]=0x3]='PERMISSION_DENIED',_0x5ecc78[_0x5ecc78[_0x4711bf(0x262)]=0x4]=_0x4711bf(0x262),_0x5ecc78[_0x5ecc78[_0x4711bf(0x368)]=0x5]='UNAUTHENTICATED',_0x5ecc78[_0x5ecc78[_0x4711bf(0x38f)]=0x6]='ALREADY_EXISTS',_0x5ecc78[_0x5ecc78[_0x4711bf(0x19e)]=0x7]=_0x4711bf(0x19e),_0x5ecc78[_0x5ecc78[_0x4711bf(0x343)]=0x8]=_0x4711bf(0x343),_0x5ecc78[_0x5ecc78[_0x4711bf(0x202)]=0x9]=_0x4711bf(0x202),_0x5ecc78[_0x5ecc78['LOGIN_FAILED']=0xa]=_0x4711bf(0x196),_0x5ecc78[_0x5ecc78[_0x4711bf(0x256)]=0x1389]=_0x4711bf(0x256),_0x5ecc78[_0x5ecc78[_0x4711bf(0x2d2)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5ecc78[_0x5ecc78[_0x4711bf(0x163)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5ecc78[_0x5ecc78[_0x4711bf(0x396)]=0x1773]=_0x4711bf(0x396),_0x5ecc78[_0x5ecc78[_0x4711bf(0x242)]=0x1b59]=_0x4711bf(0x242),_0x5ecc78[_0x5ecc78[_0x4711bf(0x3bd)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5ecc78[_0x5ecc78[_0x4711bf(0x36e)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5ecc78[_0x5ecc78[_0x4711bf(0x296)]=0x1b5c]=_0x4711bf(0x296),_0x5ecc78[_0x5ecc78[_0x4711bf(0x2da)]=0x1b5d]=_0x4711bf(0x2da),_0x5ecc78[_0x5ecc78[_0x4711bf(0x1fd)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5ecc78[_0x5ecc78[_0x4711bf(0x2b6)]=0x2329]=_0x4711bf(0x2b6),_0x5ecc78[_0x5ecc78[_0x4711bf(0x322)]=0x232a]=_0x4711bf(0x322),_0x5ecc78[_0x5ecc78[_0x4711bf(0x1b6)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5ecc78[_0x5ecc78[_0x4711bf(0x20d)]=0x232c]=_0x4711bf(0x20d),_0x5ecc78[_0x5ecc78[_0x4711bf(0x2af)]=0x232d]=_0x4711bf(0x2af),_0x5ecc78[_0x5ecc78[_0x4711bf(0x22f)]=0x2711]=_0x4711bf(0x22f),_0x5ecc78[_0x5ecc78['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5ecc78[_0x5ecc78['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x4711bf(0x21f),_0x5ecc78[_0x5ecc78[_0x4711bf(0x18e)]=0x2714]=_0x4711bf(0x18e),_0x5ecc78[_0x5ecc78[_0x4711bf(0x1e3)]=0x271a]=_0x4711bf(0x1e3),_0x5ecc78[_0x5ecc78[_0x4711bf(0x33a)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5ecc78[_0x5ecc78['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x4711bf(0x37b),_0x5ecc78[_0x5ecc78[_0x4711bf(0x330)]=0x271d]=_0x4711bf(0x330),_0x5ecc78[_0x5ecc78[_0x4711bf(0x312)]=0x271e]=_0x4711bf(0x312),_0x5ecc78[_0x5ecc78[_0x4711bf(0x175)]=0x271f]=_0x4711bf(0x175),_0x5ecc78[_0x5ecc78[_0x4711bf(0x224)]=0x2af9]=_0x4711bf(0x224),_0x5ecc78[_0x5ecc78[_0x4711bf(0x239)]=0x2ee1]=_0x4711bf(0x239),_0x5ecc78[_0x5ecc78[_0x4711bf(0x16d)]=0x2ee2]=_0x4711bf(0x16d),_0x5ecc78[_0x5ecc78[_0x4711bf(0x3e9)]=0x2ee3]=_0x4711bf(0x3e9),_0x5ecc78[_0x5ecc78['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x5ecc78[_0x5ecc78['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x4711bf(0x2f8),_0x5ecc78[_0x5ecc78[_0x4711bf(0x319)]=0x32c9]=_0x4711bf(0x319),_0x5ecc78[_0x5ecc78['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x4711bf(0x34b),_0x5ecc78[_0x5ecc78['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4711bf(0x349),_0x5ecc78[_0x5ecc78[_0x4711bf(0x34c)]=-0x1]=_0x4711bf(0x34c),_0x5ecc78))(Be||{}),ns=Object[_0x4711bf(0x1fe)],rs=(_0x2b76b4,_0x3cfd22,_0x151f42,_0x6b1f6e)=>{for(var _0x596dc1=_0x6b1f6e>0x1?void 0x0:_0x6b1f6e?ns(_0x3cfd22,_0x151f42):_0x3cfd22,_0x491d70=_0x2b76b4['length']-0x1,_0x4f7e6d;_0x491d70>=0x0;_0x491d70--)(_0x4f7e6d=_0x2b76b4[_0x491d70])&&(_0x596dc1=_0x4f7e6d(_0x596dc1)||_0x596dc1);return _0x596dc1;},ue=(_0x293214,_0x3f02c8)=>(_0x867ad2,_0x295adf)=>_0x3f02c8(_0x867ad2,_0x295adf,_0x293214);exports[_0x4711bf(0x27f)]=class extends a[_0x4711bf(0x3ac)]{constructor(_0x18a197,_0x14e7b9,_0x25e358){const _0x13b051=_0x4711bf;super(),this['_instanceService']=_0x18a197,this[_0x13b051(0x39b)]=_0x14e7b9,this[_0x13b051(0x2bb)]=_0x25e358;}async[_0x4711bf(0x35a)](_0x3e5338,_0x4eee5d,_0xd8783b,..._0x341af3){const _0x107490=_0x4711bf;var _0x365c51,_0x1d5c92,_0x37ce40,_0x26569c;const _0x485fea=this[_0x107490(0x25a)][_0x107490(0x2f5)]();if(!_0x485fea)throw new Error(_0x107490(0x3ce));const _0x568bcc=((_0x365c51=this['_configService'][_0x107490(0x3e0)](u[_0x107490(0x37a)]))!=null?_0x365c51:u[_0x107490(0x356)])+'/'+_0x3e5338+'/run/'+_0x4eee5d,_0xe4c40b=new URL(window[_0x107490(0x2f0)]['href']),_0x2032b5={'scriptId':_0x3e5338,'runId':(_0x1d5c92=_0xe4c40b[_0x107490(0x1a2)][_0x107490(0x3bc)]('runId'))!=null?_0x1d5c92:'','function':_0x4eee5d,'unitId':_0x485fea[_0x107490(0x1bc)](),'argsOfFunction':JSON[_0x107490(0x23c)](_0x341af3),'invokeId':(_0x37ce40=_0xd8783b['invokeId'])!=null?_0x37ce40:'','executionId':(_0x26569c=_0xd8783b[_0x107490(0x33d)])!=null?_0x26569c:''};try{const _0xc3769f=await this['_httpService'][_0x107490(0x1e2)](_0x568bcc,{'body':_0x2032b5});return _0xc3769f[_0x107490(0x234)][_0x107490(0x375)]&&_0xc3769f['body']['error']['code']!==Be['OK']?'Failed':_0xc3769f[_0x107490(0x234)][_0x107490(0x3d4)];}catch{return _0x107490(0x223);}}},exports[_0x4711bf(0x27f)]=rs([ue(0x0,a[_0x4711bf(0x21a)]),ue(0x1,a[_0x4711bf(0x209)](G[_0x4711bf(0x3bf)])),ue(0x2,a['IConfigService'])],exports[_0x4711bf(0x27f)]),exports[_0x4711bf(0x26a)]=xe,exports[_0x4711bf(0x164)]=be,exports[_0x4711bf(0x317)]=Pe,exports[_0x4711bf(0x3b2)]=is,exports[_0x4711bf(0x30d)]=je;