@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506011606 → 0.8.0-nightly.202506031608
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1dc7c4=_0x1151;(function(_0x1392cb,_0x2c04b){const _0x3774c6=_0x1151,_0x5adb5c=_0x1392cb();while(!![]){try{const _0x8de721=-parseInt(_0x3774c6(0x86))/0x1+-parseInt(_0x3774c6(0x7b))/0x2+-parseInt(_0x3774c6(0x80))/0x3*(-parseInt(_0x3774c6(0x83))/0x4)+parseInt(_0x3774c6(0x79))/0x5+-parseInt(_0x3774c6(0x82))/0x6+parseInt(_0x3774c6(0x7d))/0x7+parseInt(_0x3774c6(0x7f))/0x8*(parseInt(_0x3774c6(0x88))/0x9);if(_0x8de721===_0x2c04b)break;else _0x5adb5c['push'](_0x5adb5c['shift']());}catch(_0x484f48){_0x5adb5c['push'](_0x5adb5c['shift']());}}}(_0x4043,0x3d12c));const t=require(_0x1dc7c4(0x87)),e=require(_0x1dc7c4(0x7e));class c extends e['FUniver']{['runOnServer'](_0x42dd0a,_0x5881ae,..._0x3a460a){const _0x5128e7=_0x1dc7c4;return this[_0x5128e7(0x85)][_0x5128e7(0x7c)](t[_0x5128e7(0x7a)])[_0x5128e7(0x81)](_0x42dd0a,_0x5881ae,{},..._0x3a460a);}}e[_0x1dc7c4(0x84)]['extend'](c);function _0x1151(_0x468350,_0xb36382){const _0x4043bf=_0x4043();return _0x1151=function(_0x1151cc,_0x2926fc){_0x1151cc=_0x1151cc-0x79;let _0x5b937f=_0x4043bf[_0x1151cc];return _0x5b937f;},_0x1151(_0x468350,_0xb36382);}function _0x4043(){const _0x3ad5a5=['16XYgCkI','FUniver','_injector','247457kKVjnE','@univerjs-pro/collaboration-client-ui','9bIRhiE','41770uCWIAC','RemoteUniscriptService','393246hLhtcL','get','2748550McKNdj','@univerjs/core/facade','3643048BCWycI','51033bIxgVs','runOnServer','1381158jIWytG'];_0x4043=function(){return _0x3ad5a5;};return _0x4043();}
|
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 _0x22b98a=_0x202d;(function(_0x41d99a,_0x41d783){const _0x40f50a=_0x202d,_0x1428fd=_0x41d99a();while(!![]){try{const _0x51ad4b=-parseInt(_0x40f50a(0x3b0))/0x1*(parseInt(_0x40f50a(0x22c))/0x2)+parseInt(_0x40f50a(0x1b1))/0x3+-parseInt(_0x40f50a(0x1af))/0x4+-parseInt(_0x40f50a(0x1c8))/0x5+-parseInt(_0x40f50a(0x284))/0x6+-parseInt(_0x40f50a(0x31b))/0x7*(parseInt(_0x40f50a(0x2a0))/0x8)+parseInt(_0x40f50a(0x23b))/0x9*(parseInt(_0x40f50a(0x27c))/0xa);if(_0x51ad4b===_0x41d783)break;else _0x1428fd['push'](_0x1428fd['shift']());}catch(_0x1b1857){_0x1428fd['push'](_0x1428fd['shift']());}}}(_0x1a0f,0xc613a));var Ve=Object[_0x22b98a(0x172)],Xe=(_0x18a7ac,_0x2656df,_0x54bf46)=>_0x2656df in _0x18a7ac?Ve(_0x18a7ac,_0x2656df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54bf46}):_0x18a7ac[_0x2656df]=_0x54bf46,h=(_0x188231,_0x2fafd0,_0x31605a)=>Xe(_0x188231,typeof _0x2fafd0!=_0x22b98a(0x2d1)?_0x2fafd0+'':_0x2fafd0,_0x31605a);Object[_0x22b98a(0x172)](exports,Symbol[_0x22b98a(0x236)],{'value':_0x22b98a(0x14b)});const u=require(_0x22b98a(0x16c)),a=require(_0x22b98a(0x23f)),p=require(_0x22b98a(0x327)),G=require('@univerjs/network'),b=require(_0x22b98a(0x3bf)),Ge=require(_0x22b98a(0x2fc)),d=require('rxjs'),Y=require(_0x22b98a(0x28f)),m=require(_0x22b98a(0x1b3)),Ee=require('@univerjs/engine-formula'),g=require(_0x22b98a(0x2e2)),$=require(_0x22b98a(0x292)),X=require(_0x22b98a(0x2d9)),w=require('react/jsx-runtime'),T=require('@univerjs/ui'),D=require(_0x22b98a(0x39f)),M=require(_0x22b98a(0x152)),Ke=require(_0x22b98a(0x390));var qe=Object[_0x22b98a(0x199)],ze=(_0x79182f,_0x28bce8,_0x5fca02,_0x3f2bb3)=>{const _0x3b1b53=_0x22b98a;for(var _0x19b75f=_0x3f2bb3>0x1?void 0x0:_0x3f2bb3?qe(_0x28bce8,_0x5fca02):_0x28bce8,_0x2e9c78=_0x79182f[_0x3b1b53(0x3b1)]-0x1,_0x15b4bd;_0x2e9c78>=0x0;_0x2e9c78--)(_0x15b4bd=_0x79182f[_0x2e9c78])&&(_0x19b75f=_0x15b4bd(_0x19b75f)||_0x19b75f);return _0x19b75f;},Te=(_0x14f5b5,_0x37250f)=>(_0x4d3a49,_0x2d8aed)=>_0x37250f(_0x4d3a49,_0x2d8aed,_0x14f5b5);let de=class extends a[_0x22b98a(0x2ab)]{constructor(_0x44f25a,_0x4edbb8){super(),this['_docClipboardService']=_0x44f25a,this['_imageIoService']=_0x4edbb8,this['_init']();}[_0x22b98a(0x1a1)](){const _0x11e9c1=_0x22b98a,_0x1b10a1=this;this['disposeWithMe'](this[_0x11e9c1(0x312)][_0x11e9c1(0x28b)]({'onBeforePasteImage':async _0x3a13ac=>{const _0xe3cbe7=_0x11e9c1,_0x17c65a=await _0x1b10a1[_0xe3cbe7(0x316)][_0xe3cbe7(0x25d)](_0x3a13ac);return _0x17c65a?{'source':_0x17c65a['source'],'imageSourceType':_0x17c65a[_0xe3cbe7(0x2ac)]}:null;}}));}};de=ze([Te(0x0,b[_0x22b98a(0x1cf)]),Te(0x1,Ge[_0x22b98a(0x3cc)])],de);const Oe=[_0x22b98a(0x1e6),_0x22b98a(0x27f),_0x22b98a(0x240),_0x22b98a(0x17a),_0x22b98a(0x37b),_0x22b98a(0x2d7)];class me extends a['Disposable']{constructor(){const _0x4f689f=_0x22b98a;super(...arguments),h(this,_0x4f689f(0x39c),new Map()),h(this,_0x4f689f(0x1c9),0x0);}[_0x22b98a(0x31f)](_0x31b50f){const _0x16e8e2=_0x22b98a;if(this[_0x16e8e2(0x39c)][_0x16e8e2(0x32b)](_0x31b50f))return this[_0x16e8e2(0x39c)][_0x16e8e2(0x2b0)](_0x31b50f);const _0x2e7a81=Oe[this[_0x16e8e2(0x1c9)]];return this[_0x16e8e2(0x1c9)]=(this[_0x16e8e2(0x1c9)]+0x1)%Oe[_0x16e8e2(0x3b1)],this['_assignedColors'][_0x16e8e2(0x1f2)](_0x31b50f,_0x2e7a81),_0x2e7a81;}}function we(_0x1a45ee){const _0x5079a3=_0x22b98a;let _0x508211='';for(const _0xbe0d2 of _0x1a45ee){const {startOffset:_0x5d1393,endOffset:_0x40b285,isActive:_0x19e1a7,rangeType:_0x434090,segmentId:_0x2c2581,segmentPage:_0x55dc2f}=_0xbe0d2;_0x508211[_0x5079a3(0x3b1)]&&(_0x508211+=','),_0x508211+=_0x5d1393+':'+_0x40b285+':'+(_0x19e1a7?'1':'0')+':'+_0x434090+':'+_0x2c2581+':'+_0x55dc2f;}return _0x508211;}function Je(_0x40a7b9){const _0x2f6c9a=_0x22b98a,_0x2cf6ae=_0x40a7b9[_0x2f6c9a(0x268)](','),_0x42a2f3=[];for(const _0x4744cf of _0x2cf6ae){const [_0x51f730,_0x32f2cf,_0x294bbf,_0x324568,_0x5078b9,_0x44518e]=_0x4744cf[_0x2f6c9a(0x268)](':');_0x42a2f3[_0x2f6c9a(0x201)]({'startOffset':Number(_0x51f730),'endOffset':Number(_0x32f2cf),'collapsed':_0x51f730===_0x32f2cf,'isActive':_0x294bbf==='1','rangeType':_0x324568===a[_0x2f6c9a(0x334)][_0x2f6c9a(0x150)]?a['DOC_RANGE_TYPE'][_0x2f6c9a(0x150)]:a[_0x2f6c9a(0x334)][_0x2f6c9a(0x18a)],'segmentId':typeof _0x5078b9==_0x2f6c9a(0x38c)?String(_0x5078b9):'','segmentPage':Number(_0x44518e!=null?_0x44518e:-0x1)});}return _0x42a2f3[_0x2f6c9a(0x301)](_0x2d173e=>_0x2d173e['isActive'])||(_0x42a2f3[0x0][_0x2f6c9a(0x210)]=!0x0),_0x42a2f3;}function _0x202d(_0x2a19a6,_0x39cb8d){const _0x1a0f01=_0x1a0f();return _0x202d=function(_0x202d46,_0x47881c){_0x202d46=_0x202d46-0x149;let _0xceb832=_0x1a0f01[_0x202d46];return _0xceb832;},_0x202d(_0x2a19a6,_0x39cb8d);}class Ce extends a['RxDisposable']{constructor(){const _0x4b0dc2=_0x22b98a;super(...arguments),h(this,_0x4b0dc2(0x26e),new d[(_0x4b0dc2(0x296))](null)),h(this,'collabCursorState$',this[_0x4b0dc2(0x26e)]['asObservable']());}[_0x22b98a(0x1fb)](_0x3cda41){const _0x2823dc=_0x22b98a,{unitID:_0x27facf,memberID:_0x3df5e8,textRanges:_0x5e6751}=_0x3cda41,_0x416aee=we(_0x5e6751);if(_0x416aee==='')return;const _0xb9b8e={'unitID':_0x27facf,'memberID':_0x3df5e8,'selection':_0x416aee};this[_0x2823dc(0x26e)]['next'](_0xb9b8e);}}var Ze=Object[_0x22b98a(0x199)],Qe=(_0x576aa2,_0x517a6f,_0x156963,_0x27ae30)=>{const _0x354cec=_0x22b98a;for(var _0x1d6a9e=_0x27ae30>0x1?void 0x0:_0x27ae30?Ze(_0x517a6f,_0x156963):_0x517a6f,_0x2c21a7=_0x576aa2[_0x354cec(0x3b1)]-0x1,_0x1fee1c;_0x2c21a7>=0x0;_0x2c21a7--)(_0x1fee1c=_0x576aa2[_0x2c21a7])&&(_0x1d6a9e=_0x1fee1c(_0x1d6a9e)||_0x1d6a9e);return _0x1d6a9e;},L=(_0x1921a7,_0x457ec6)=>(_0x1e42b4,_0x4d42f7)=>_0x457ec6(_0x1e42b4,_0x4d42f7,_0x1921a7);const et=0x12c,tt=0x64;let fe=class extends a[_0x22b98a(0x2ab)]{constructor(_0x77c439,_0x3eb75e,_0x181dae,_0xb63b6a,_0x539675,_0x10fc75,_0x3c3ad2,_0x15accf,_0x3f3a9b){const _0x3b4fc7=_0x22b98a;super(),h(this,_0x3b4fc7(0x1be),!0x1),h(this,_0x3b4fc7(0x1a1),!0x1),h(this,_0x3b4fc7(0x176),new d[(_0x3b4fc7(0x296))](new Map())),h(this,'cursorInfo$',this[_0x3b4fc7(0x176)][_0x3b4fc7(0x1a0)]()),h(this,_0x3b4fc7(0x2a9),new d[(_0x3b4fc7(0x296))]([])),h(this,_0x3b4fc7(0x1bd),this[_0x3b4fc7(0x2a9)][_0x3b4fc7(0x256)](d['debounceTime'](et))),h(this,'_updateLocalCursor',a[_0x3b4fc7(0x1c7)](_0x201b49=>{const _0x432443=_0x3b4fc7,_0x2c473c={'eventID':m[_0x432443(0x215)][_0x432443(0x26b)],'data':{'unitID':this[_0x432443(0x1f3)],'memberID':this['_session']['getMemberID'](),'selection':we(_0x201b49)}};this['_session']['send'](_0x2c473c,this[_0x432443(0x1f3)]);},tt)),(this[_0x3b4fc7(0x1f3)]=_0x77c439,this['_session']=_0x3eb75e,this['_injector']=_0x181dae,this[_0x3b4fc7(0x330)]=_0xb63b6a,this[_0x3b4fc7(0x205)]=_0x539675,this[_0x3b4fc7(0x220)]=_0x10fc75,this[_0x3b4fc7(0x265)]=_0x3c3ad2,this[_0x3b4fc7(0x28c)]=_0x15accf,this[_0x3b4fc7(0x1cb)]=_0x3f3a9b);}get[_0x22b98a(0x242)](){const _0x17377f=_0x22b98a;return this[_0x17377f(0x176)][_0x17377f(0x249)]();}get['roomMembers'](){const _0x2bf83a=_0x22b98a;return this['_roomMembers$'][_0x2bf83a(0x249)]();}[_0x22b98a(0x14a)](){const _0x2b5db8=_0x22b98a;super['dispose'](),this['_cursorInfo$'][_0x2b5db8(0x3c9)](new Map()),this[_0x2b5db8(0x176)][_0x2b5db8(0x1c5)](),this[_0x2b5db8(0x2a9)][_0x2b5db8(0x3c9)]([]),this['_roomMembers$'][_0x2b5db8(0x1c5)]();}[_0x22b98a(0x3a3)](){const _0x38439c=_0x22b98a;this['_init']||(this[_0x38439c(0x1a1)]=!0x0,this[_0x38439c(0x2ec)]['sessionStatus$']['pipe'](d[_0x38439c(0x2fd)](this[_0x38439c(0x1e4)]))[_0x38439c(0x32d)](_0x5c8c80=>{const _0x262c65=_0x38439c;_0x5c8c80===u[_0x262c65(0x309)][_0x262c65(0x226)]?this[_0x262c65(0x1ad)]():this['_toggleOffline']();}),this[_0x38439c(0x2ec)]['event$'][_0x38439c(0x256)](d['takeUntil'](this[_0x38439c(0x1e4)]))['subscribe'](_0x6d8d4f=>{const _0x305129=_0x38439c,_0x15c3f1=_0x6d8d4f[_0x305129(0x321)];_0x15c3f1===m[_0x305129(0x215)]['UPDATE_CURSOR']&&this[_0x305129(0x35f)](_0x6d8d4f),_0x15c3f1===m[_0x305129(0x215)][_0x305129(0x3c5)]&&this[_0x305129(0x31d)](_0x6d8d4f);}),this['disposeWithMe'](this[_0x38439c(0x1cb)]['onCommandExecuted'](_0x2fe763=>{const _0x4f16aa=_0x38439c,_0x29c332=_0x2fe763['params'];_0x29c332!=null&&this[_0x4f16aa(0x1be)]&&_0x2fe763['id']===Y[_0x4f16aa(0x2f4)]['id']&&_0x29c332[_0x4f16aa(0x392)]===this[_0x4f16aa(0x1f3)]&&_0x29c332['isEditing']===!0x1&&_0x29c332[_0x4f16aa(0x365)][_0x4f16aa(0x3b1)]>0x0&&this[_0x4f16aa(0x3c4)](_0x29c332[_0x4f16aa(0x365)]);})),this[_0x38439c(0x220)][_0x38439c(0x257)]['pipe'](d[_0x38439c(0x2fd)](this[_0x38439c(0x1e4)]))[_0x38439c(0x32d)](_0x56e961=>{const _0x43339e=_0x38439c;if((_0x56e961==null?void 0x0:_0x56e961[_0x43339e(0x1f3)])!==this['unitID'])return;const _0x4b8a58={'eventID':m['CollaborationEvent'][_0x43339e(0x26b)],'data':_0x56e961};this['_onCursorUpdate'](_0x4b8a58);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x14e43c=>{const _0x5e080a=_0x38439c;if(_0x14e43c[_0x5e080a(0x283)]==null)return;const _0x22ad7b=_0x14e43c['params'];if(_0x14e43c['id']!==Y[_0x5e080a(0x1c0)]['id']||_0x22ad7b['unitId']!==this['unitID'])return;const _0x1d5e15={'id':_0x5e080a(0x179),'params':_0x22ad7b},_0x37f294=this[_0x5e080a(0x242)];for(const [_0x3a614a,_0x36bb63]of _0x37f294){const _0x3f5c06={'id':_0x5e080a(0x179),'params':{'unitId':this[_0x5e080a(0x1f3)],'actions':null,'textRanges':_0x36bb63[_0x5e080a(0x365)]}},_0x8d1f8a=this[_0x5e080a(0x265)][_0x5e080a(0x380)](_0x1d5e15,_0x3f5c06,!0x1);if(m['isTransformMutationFailure'](_0x8d1f8a))throw _0x8d1f8a[_0x5e080a(0x3d3)];_0x37f294[_0x5e080a(0x1f2)](_0x3a614a,{..._0x36bb63,'ranges':_0x8d1f8a['m2Prime'][_0x5e080a(0x283)][_0x5e080a(0x252)]});}queueMicrotask(()=>{const _0x5b1c17=_0x5e080a;this[_0x5b1c17(0x176)]['next'](_0x37f294);});})));}[_0x22b98a(0x35f)](_0xf7f3a9){const _0x65dd7f=_0x22b98a;var _0x423fd7,_0x454bd7;const {memberID:_0x2198d1,selection:_0x257d6b}=_0xf7f3a9['data'],_0x1d2608=Je(_0x257d6b),_0x5afda2=(_0x454bd7=(_0x423fd7=this['_memberService']['getMember'](this[_0x65dd7f(0x1f3)],_0x2198d1))==null?void 0x0:_0x423fd7['name'])!=null?_0x454bd7:_0x65dd7f(0x25c),_0x3e5b8a={'color':this[_0x65dd7f(0x330)][_0x65dd7f(0x31f)](_0x2198d1),'name':_0x5afda2,'ranges':_0x1d2608},_0x2678eb=this[_0x65dd7f(0x242)];_0x2678eb[_0x65dd7f(0x1f2)](_0x2198d1,_0x3e5b8a),this[_0x65dd7f(0x176)][_0x65dd7f(0x3c9)](_0x2678eb);}[_0x22b98a(0x31d)](_0x2a7bd3){const _0x5815f2=_0x22b98a,{memberID:_0x5eb69d}=_0x2a7bd3[_0x5815f2(0x202)],_0x237ab5=this[_0x5815f2(0x242)];_0x237ab5['delete'](_0x5eb69d),this[_0x5815f2(0x176)][_0x5815f2(0x3c9)](_0x237ab5);}['_toggleOnline'](){const _0x40a073=_0x22b98a;var _0x50010b;if(this[_0x40a073(0x1be)]=!0x0,((_0x50010b=this[_0x40a073(0x28c)][_0x40a073(0x2cd)]())==null?void 0x0:_0x50010b[_0x40a073(0x3bc)]())!==this['unitID'])return;const _0x20daf9=this[_0x40a073(0x1c4)]['get'](Y[_0x40a073(0x1f0)])[_0x40a073(0x164)]();Array[_0x40a073(0x33f)](_0x20daf9)&&_0x20daf9[_0x40a073(0x3b1)]>0x0&&this[_0x40a073(0x3c4)](_0x20daf9);}[_0x22b98a(0x1e2)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x3d1)])),L(0x3,a[_0x22b98a(0x1fc)](me)),L(0x4,a[_0x22b98a(0x1fc)](u[_0x22b98a(0x2c8)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x22b98a(0x2af)]),L(0x7,a[_0x22b98a(0x2df)]),L(0x8,a[_0x22b98a(0x23e)])],fe);var st=Object[_0x22b98a(0x199)],it=(_0x412516,_0x3f6689,_0x107103,_0x548bf4)=>{for(var _0x3b9ea2=_0x548bf4>0x1?void 0x0:_0x548bf4?st(_0x3f6689,_0x107103):_0x3f6689,_0xf14464=_0x412516['length']-0x1,_0x29fb9c;_0xf14464>=0x0;_0xf14464--)(_0x29fb9c=_0x412516[_0xf14464])&&(_0x3b9ea2=_0x29fb9c(_0x3b9ea2)||_0x3b9ea2);return _0x3b9ea2;},A=(_0x57257d,_0xf86229)=>(_0x3bf2db,_0x3bb2bd)=>_0xf86229(_0x3bf2db,_0x3bb2bd,_0x57257d);const nt=0x12c,rt=0x64,ot=()=>{let _0x18081a=[],_0x4014d7=!0x1;return _0x368b5a=>{const _0x3e2486=_0x202d;_0x18081a[_0x3e2486(0x201)](_0x368b5a),_0x4014d7||(_0x4014d7=!0x0,setTimeout(()=>{const _0x25a672=_0x3e2486;_0x18081a[_0x25a672(0x19b)](_0x3b3866=>_0x3b3866()),_0x18081a=[],_0x4014d7=!0x1;}));};};let Se=class extends a[_0x22b98a(0x2ab)]{constructor(_0x33647c,_0x3572c3,_0x58f166,_0x234825,_0x4a6c07,_0x513abc,_0x2d934a,_0x46f985){const _0x15c36a=_0x22b98a;super(),h(this,_0x15c36a(0x1be),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x15c36a(0x176)]['asObservable']()),h(this,_0x15c36a(0x2a9),new d[(_0x15c36a(0x296))]([])),h(this,_0x15c36a(0x1bd),this[_0x15c36a(0x2a9)][_0x15c36a(0x256)](d[_0x15c36a(0x2e9)](nt))),h(this,_0x15c36a(0x3c4),a[_0x15c36a(0x1c7)]((_0x338bb9,_0x514d5c)=>{const _0x183a78=_0x15c36a,_0x2b19ec={'eventID':m[_0x183a78(0x215)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x183a78(0x2ec)]['getMemberID'](),'selection':Ee[_0x183a78(0x212)](_0x338bb9,_0x514d5c[_0x183a78(0x2c4)])}};this[_0x183a78(0x2ec)]['send'](_0x2b19ec,this[_0x183a78(0x1f3)]);},rt)),(this[_0x15c36a(0x1f3)]=_0x33647c,this[_0x15c36a(0x2ec)]=_0x3572c3,this[_0x15c36a(0x1c4)]=_0x58f166,this['_colorAssignService']=_0x234825,this[_0x15c36a(0x205)]=_0x4a6c07,this[_0x15c36a(0x28c)]=_0x513abc,this['_commandService']=_0x2d934a,this[_0x15c36a(0x1b2)]=_0x46f985);}get[_0x22b98a(0x242)](){const _0x77e24b=_0x22b98a;return this[_0x77e24b(0x176)][_0x77e24b(0x249)]();}get[_0x22b98a(0x1a4)](){const _0xe36407=_0x22b98a;return this[_0xe36407(0x2a9)][_0xe36407(0x249)]();}[_0x22b98a(0x14a)](){const _0x4244e1=_0x22b98a;super[_0x4244e1(0x14a)](),this['_cursorInfo$'][_0x4244e1(0x3c9)](new Map()),this[_0x4244e1(0x176)][_0x4244e1(0x1c5)](),this[_0x4244e1(0x2a9)]['next']([]),this[_0x4244e1(0x2a9)][_0x4244e1(0x1c5)]();}[_0x22b98a(0x3a3)](){const _0x1d3ebf=_0x22b98a;this[_0x1d3ebf(0x1a1)]||(this[_0x1d3ebf(0x1a1)]=!0x0,this[_0x1d3ebf(0x2ec)][_0x1d3ebf(0x297)][_0x1d3ebf(0x256)](d[_0x1d3ebf(0x2fd)](this[_0x1d3ebf(0x1e4)]))[_0x1d3ebf(0x32d)](_0x5a40d1=>{const _0x33533e=_0x1d3ebf;_0x5a40d1===u[_0x33533e(0x309)][_0x33533e(0x226)]?this[_0x33533e(0x1ad)]():this[_0x33533e(0x1e2)]();}),this[_0x1d3ebf(0x2ec)][_0x1d3ebf(0x1a3)][_0x1d3ebf(0x256)](d[_0x1d3ebf(0x2fd)](this['dispose$']))[_0x1d3ebf(0x32d)](_0x2a6e1e=>{const _0x5c90d9=_0x1d3ebf,_0x4637ae=_0x2a6e1e[_0x5c90d9(0x321)];_0x4637ae===m[_0x5c90d9(0x215)]['UPDATE_CURSOR']&&this[_0x5c90d9(0x35f)](_0x2a6e1e),_0x4637ae===m[_0x5c90d9(0x215)][_0x5c90d9(0x3c5)]&&this[_0x5c90d9(0x31d)](_0x2a6e1e);}),this[_0x1d3ebf(0x20d)](),this[_0x1d3ebf(0x3bd)](this[_0x1d3ebf(0x1cb)]['onCommandExecuted'](_0x13d06f=>{const _0x139846=_0x1d3ebf;if(this[_0x139846(0x1be)]&&_0x13d06f['id']===g[_0x139846(0x272)]['id']&&_0x13d06f[_0x139846(0x283)][_0x139846(0x392)]===this[_0x139846(0x1f3)]){const _0xe86945=_0x13d06f[_0x139846(0x283)];this[_0x139846(0x3c4)](_0xe86945[_0x139846(0x207)],_0xe86945[_0x139846(0x300)][0x0]);}})));}[_0x22b98a(0x35f)](_0x1fb554){const _0x234439=_0x22b98a;var _0x45d31b,_0x43dc92;const {memberID:_0x4b208f,selection:_0x21fec6}=_0x1fb554['data'],{sheetName:_0xcffc54,range:_0x42587e}=Ee['deserializeRangeWithSheet'](_0x21fec6),_0x509206={'name':(_0x43dc92=(_0x45d31b=this[_0x234439(0x205)][_0x234439(0x2bc)](this[_0x234439(0x1f3)],_0x4b208f))==null?void 0x0:_0x45d31b['name'])!=null?_0x43dc92:'Unknown\x20user','range':this[_0x234439(0x377)](_0xcffc54,_0x42587e),'sheetID':_0xcffc54,'color':this['_colorAssignService'][_0x234439(0x31f)](_0x4b208f),'selection':_0x21fec6},_0x36b699=this[_0x234439(0x242)];_0x36b699['set'](_0x4b208f,_0x509206),this[_0x234439(0x176)][_0x234439(0x3c9)](_0x36b699);}[_0x22b98a(0x31d)](_0x455f85){const _0x11d2d8=_0x22b98a,{memberID:_0x2ccef6}=_0x455f85['data'],_0x32c801=this[_0x11d2d8(0x242)];_0x32c801[_0x11d2d8(0x28a)](_0x2ccef6),this[_0x11d2d8(0x176)][_0x11d2d8(0x3c9)](_0x32c801);}[_0x22b98a(0x377)](_0x5a673b,_0x4e8a60){const _0x5b0674=_0x22b98a;var _0x20487e,_0x8d8f5d;const _0x30b99f=(_0x8d8f5d=(_0x20487e=this[_0x5b0674(0x28c)][_0x5b0674(0x1ba)](this[_0x5b0674(0x1f3)]))==null?void 0x0:_0x20487e['getSheetBySheetId'](_0x5a673b))==null?void 0x0:_0x8d8f5d[_0x5b0674(0x2d6)]();return(_0x30b99f==null?void 0x0:_0x30b99f['find'](_0xfd3d2b=>a[_0x5b0674(0x384)]['contains'](_0xfd3d2b,_0x4e8a60)))||_0x4e8a60;}['_onRefRangeChange'](){const _0x57227e=_0x22b98a,_0x5ec7ff=new a[(_0x57227e(0x2e7))](),_0x19a9a0=ot(),_0x3ff199=()=>{const _0x2c4d74=_0x57227e;_0x5ec7ff['dispose']();const _0x201ca8=(_0x3fe532,_0x29b32b,_0x46ae4b,_0x2e4947)=>{const _0x205baa=_0x202d;let _0x387508=[];switch(_0x3fe532['id']){case g['EffectRefRangId'][_0x205baa(0x3b4)]:{_0x387508=g[_0x205baa(0x2ff)](_0x3fe532,_0x2e4947);break;}case g[_0x205baa(0x3b6)][_0x205baa(0x22e)]:{_0x387508=g[_0x205baa(0x178)](_0x3fe532,_0x2e4947);break;}case g[_0x205baa(0x3b6)][_0x205baa(0x2bb)]:{_0x387508=g[_0x205baa(0x206)](_0x3fe532,_0x2e4947);break;}case g[_0x205baa(0x3b6)]['InsertRangeMoveDownCommandId']:{_0x387508=g[_0x205baa(0x37d)](_0x3fe532,_0x2e4947);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x387508=g['handleInsertRangeMoveRight'](_0x3fe532,_0x2e4947);break;}case g[_0x205baa(0x3b6)][_0x205baa(0x1bc)]:{_0x387508=g[_0x205baa(0x3a8)](_0x3fe532,_0x2e4947);break;}case g[_0x205baa(0x3b6)][_0x205baa(0x15d)]:{_0x387508=g[_0x205baa(0x235)](_0x3fe532,_0x2e4947);break;}case g[_0x205baa(0x3b6)][_0x205baa(0x230)]:{_0x387508=g[_0x205baa(0x2b5)](_0x3fe532,_0x2e4947);break;}case g[_0x205baa(0x3b6)]['RemoveRowCommandId']:{_0x387508=g['handleIRemoveRow'](_0x3fe532,_0x2e4947);break;}}const _0xc18a8=g[_0x205baa(0x318)](_0x387508,_0x2e4947),_0x1d287d=this[_0x205baa(0x242)][_0x205baa(0x2b0)](_0x29b32b);if(_0x1d287d&&_0xc18a8){const _0x4f04af={..._0x1d287d,'range':_0xc18a8};this[_0x205baa(0x242)]['set'](_0x29b32b,_0x4f04af),_0x19a9a0(()=>{const _0x1d552b=_0x205baa,_0x3b9645=this[_0x1d552b(0x1b2)][_0x1d552b(0x247)](_0xc18a8,_0x198014=>(_0x3b9645[_0x1d552b(0x14a)](),_0x201ca8(_0x198014,_0x29b32b,_0x46ae4b,_0xc18a8)));_0x5ec7ff[_0x1d552b(0x1b8)](_0x3b9645);});}return{'redos':[],'undos':[]};};this[_0x2c4d74(0x242)][_0x2c4d74(0x19b)]((_0x291694,_0xf3972f)=>{const _0x4ee37c=_0x2c4d74,{range:_0x50bc23,sheetID:_0x5d5d8b}=_0x291694,_0x44e233=this['_refRangeService'][_0x4ee37c(0x247)](_0x50bc23,_0x44a609=>(_0x44e233[_0x4ee37c(0x14a)](),_0x201ca8(_0x44a609,_0xf3972f,_0x5d5d8b,_0x50bc23)));_0x5ec7ff[_0x4ee37c(0x1b8)](_0x44e233);});};this[_0x57227e(0x3bd)](a[_0x57227e(0x1f8)](this[_0x57227e(0x176)][_0x57227e(0x32d)](()=>{_0x3ff199();})));}[_0x22b98a(0x1ad)](){const _0x51802f=_0x22b98a;var _0x3b1438,_0x470bc6;if(this[_0x51802f(0x1be)]=!0x0,((_0x3b1438=this['_univerInstanceService'][_0x51802f(0x2cd)]())==null?void 0x0:_0x3b1438[_0x51802f(0x3bc)]())!==this[_0x51802f(0x1f3)])return;const _0x34e3d3=(_0x470bc6=this['_injector'][_0x51802f(0x2b0)](g[_0x51802f(0x27b)])[_0x51802f(0x322)]())==null?void 0x0:_0x470bc6[0x0],_0x2a40c9=this[_0x51802f(0x28c)][_0x51802f(0x227)](a['UniverInstanceType'][_0x51802f(0x259)])['getActiveSheet']();_0x34e3d3&&_0x2a40c9&&this[_0x51802f(0x3c4)](_0x2a40c9[_0x51802f(0x3ab)](),_0x34e3d3);}[_0x22b98a(0x1e2)](){const _0x1ac7f5=_0x22b98a;this[_0x1ac7f5(0x1be)]=!0x1;}};Se=it([A(0x2,a[_0x22b98a(0x1fc)](a['Injector'])),A(0x3,a[_0x22b98a(0x1fc)](me)),A(0x4,a[_0x22b98a(0x1fc)](u[_0x22b98a(0x2c8)])),A(0x5,a[_0x22b98a(0x2df)]),A(0x6,a[_0x22b98a(0x23e)]),A(0x7,a['Inject'](g[_0x22b98a(0x188)]))],Se);var at=Object[_0x22b98a(0x199)],ct=(_0x11a081,_0x3ca5d5,_0x4abf9a,_0x5386d9)=>{for(var _0x4252b3=_0x5386d9>0x1?void 0x0:_0x5386d9?at(_0x3ca5d5,_0x4abf9a):_0x3ca5d5,_0x4abda3=_0x11a081['length']-0x1,_0x3e527f;_0x4abda3>=0x0;_0x4abda3--)(_0x3e527f=_0x11a081[_0x4abda3])&&(_0x4252b3=_0x3e527f(_0x4252b3)||_0x4252b3);return _0x4252b3;},ie=(_0x15b57a,_0x20114f)=>(_0x21a21a,_0x248cb8)=>_0x20114f(_0x21a21a,_0x248cb8,_0x15b57a);let x=class extends a[_0x22b98a(0x2ab)]{constructor(_0x574c8b,_0x18a68d,_0x599c36){const _0x9a30c6=_0x22b98a;super(),h(this,_0x9a30c6(0x371),new Map()),h(this,_0x9a30c6(0x305),new d['Subject']()),(this['_univerInstanceService']=_0x574c8b,this[_0x9a30c6(0x1c4)]=_0x18a68d,this[_0x9a30c6(0x22f)]=_0x599c36,this[_0x9a30c6(0x1a1)]());}['dispose'](){const _0x565757=_0x22b98a;super[_0x565757(0x14a)](),this[_0x565757(0x305)]['complete'](),this[_0x565757(0x371)][_0x565757(0x19b)](_0x30a96f=>_0x30a96f['dispose']());}[_0x22b98a(0x3b8)](_0x6eb2c9){const _0x1d1a4f=_0x22b98a;return this[_0x1d1a4f(0x371)][_0x1d1a4f(0x32b)](_0x6eb2c9)?this['_entities'][_0x1d1a4f(0x2b0)](_0x6eb2c9)[_0x1d1a4f(0x2a2)]:this[_0x1d1a4f(0x305)]['pipe'](d[_0x1d1a4f(0x214)](_0x58a817=>_0x58a817['unitID']===_0x6eb2c9),d[_0x1d1a4f(0x239)](_0x3645ab=>_0x3645ab[_0x1d1a4f(0x2a2)]));}[_0x22b98a(0x1a1)](){const _0x26a225=_0x22b98a;this['_univerInstanceService'][_0x26a225(0x293)](a[_0x26a225(0x19c)][_0x26a225(0x259)])[_0x26a225(0x256)](d[_0x26a225(0x2fd)](this[_0x26a225(0x1e4)]))[_0x26a225(0x32d)](async _0x1521fc=>{const _0x48eebd=_0x26a225,_0x119dd2=_0x1521fc[_0x48eebd(0x3bc)](),_0x36dbb2=await this[_0x48eebd(0x304)](_0x119dd2);this[_0x48eebd(0x305)][_0x48eebd(0x3c9)](_0x36dbb2),this[_0x48eebd(0x371)][_0x48eebd(0x1f2)](_0x119dd2,_0x36dbb2);}),this[_0x26a225(0x28c)]['getTypeOfUnitAdded$'](a[_0x26a225(0x19c)][_0x26a225(0x2be)])[_0x26a225(0x256)](d[_0x26a225(0x2fd)](this[_0x26a225(0x1e4)]))[_0x26a225(0x256)](d[_0x26a225(0x214)](_0x2205a5=>!_0x2205a5['getUnitId']()['startsWith']('__')))[_0x26a225(0x32d)](async _0x5e7af1=>{const _0x1df09b=_0x26a225,_0x53bf3a=_0x5e7af1[_0x1df09b(0x3bc)](),_0x11c4c5=await this['_startDocCollabCursor'](_0x53bf3a);this[_0x1df09b(0x305)][_0x1df09b(0x3c9)](_0x11c4c5),this[_0x1df09b(0x371)][_0x1df09b(0x1f2)](_0x53bf3a,_0x11c4c5);}),d[_0x26a225(0x1eb)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x26a225(0x19c)][_0x26a225(0x2be)]),this[_0x26a225(0x28c)][_0x26a225(0x32a)](a[_0x26a225(0x19c)][_0x26a225(0x259)]))['pipe'](d[_0x26a225(0x2fd)](this['dispose$']))[_0x26a225(0x32d)](_0x498543=>{const _0x551dc9=_0x26a225,_0x3aa14f=_0x498543[_0x551dc9(0x3bc)](),_0x347605=this[_0x551dc9(0x371)]['get'](_0x3aa14f);_0x347605&&(_0x347605[_0x551dc9(0x14a)](),this['_entities'][_0x551dc9(0x28a)](_0x3aa14f));});}async[_0x22b98a(0x304)](_0x24db8a){const _0x111aa9=_0x22b98a,_0x4eed82=await this[_0x111aa9(0x22f)][_0x111aa9(0x173)](_0x24db8a),_0x14488c=this['_injector'][_0x111aa9(0x33b)](Se,_0x24db8a,_0x4eed82);return _0x14488c[_0x111aa9(0x3a3)](),_0x14488c;}async[_0x22b98a(0x360)](_0xf7fbe5){const _0x320ff1=_0x22b98a,_0xbebc0a=await this[_0x320ff1(0x22f)][_0x320ff1(0x173)](_0xf7fbe5),_0x79edb5=this[_0x320ff1(0x1c4)][_0x320ff1(0x33b)](fe,_0xf7fbe5,_0xbebc0a);return _0x79edb5['init'](),_0x79edb5;}};x=ct([ie(0x0,a[_0x22b98a(0x2df)]),ie(0x1,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x3d1)])),ie(0x2,a[_0x22b98a(0x1fc)](u[_0x22b98a(0x1bb)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x2cf3d5,_0x32b540){const _0x1ea8d7=_0x22b98a;let {radius:_0x260682,width:_0x47b630,height:_0x3beb37}=_0x32b540;_0x260682=_0x260682!=null?_0x260682:0x0,_0x47b630=_0x47b630!=null?_0x47b630:0x1e,_0x3beb37=_0x3beb37!=null?_0x3beb37:0x1e;let _0x425ac9=0x0,_0x3b7daa=0x0,_0x1817d0=0x0;_0x425ac9=_0x3b7daa=_0x1817d0=Math[_0x1ea8d7(0x261)](_0x260682,_0x47b630/0x2,_0x3beb37/0x2),_0x2cf3d5[_0x1ea8d7(0x217)](),_0x2cf3d5['moveTo'](_0x425ac9,0x0),_0x2cf3d5[_0x1ea8d7(0x342)](_0x47b630-_0x3b7daa,0x0),_0x2cf3d5['arc'](_0x47b630-_0x3b7daa,_0x3b7daa,_0x3b7daa,Math['PI']*0x3/0x2,0x0,!0x1),_0x2cf3d5['lineTo'](_0x47b630,_0x3beb37-_0x1817d0),_0x2cf3d5[_0x1ea8d7(0x1b4)](_0x47b630-_0x1817d0,_0x3beb37-_0x1817d0,_0x1817d0,0x0,Math['PI']/0x2,!0x1),_0x2cf3d5[_0x1ea8d7(0x342)](0x0,_0x3beb37),_0x2cf3d5['lineTo'](0x0,_0x425ac9),_0x2cf3d5[_0x1ea8d7(0x1b4)](_0x425ac9,_0x425ac9,_0x425ac9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2cf3d5[_0x1ea8d7(0x1f9)](),_0x32b540[_0x1ea8d7(0x1c2)]&&(_0x2cf3d5['save'](),_0x2cf3d5[_0x1ea8d7(0x197)]=_0x32b540[_0x1ea8d7(0x1c2)],_0x32b540[_0x1ea8d7(0x253)]===_0x1ea8d7(0x211)?_0x2cf3d5[_0x1ea8d7(0x1c2)](_0x1ea8d7(0x211)):_0x2cf3d5[_0x1ea8d7(0x1c2)](),_0x2cf3d5['restore']());}class ee extends p[_0x22b98a(0x149)]{constructor(_0x32c000,_0x9fc8ca){const _0x417271=_0x22b98a;super(_0x32c000,_0x9fc8ca),h(this,'color'),h(this,_0x417271(0x395)),(this['color']=_0x9fc8ca==null?void 0x0:_0x9fc8ca['color'],this['text']=_0x9fc8ca==null?void 0x0:_0x9fc8ca[_0x417271(0x395)]);}static[_0x22b98a(0x24f)](_0x36ef62,_0x55cd79){const _0x2f6d73=_0x22b98a,{text:_0x17a9c1,color:_0x312d1f}=_0x55cd79;_0x36ef62[_0x2f6d73(0x37f)](),_0x36ef62['font']=_0x2f6d73(0x1e0);const _0x12ab9b=_0x36ef62['measureText'](_0x17a9c1)['width'],_0x2644f1=Math['min'](_0x12ab9b+0x2*ne,Re);_t(_0x36ef62,{'height':K,'radius':0x4,'width':_0x2644f1,'fill':_0x312d1f}),_0x36ef62[_0x2f6d73(0x197)]=_0x2f6d73(0x18c);const _0x36853d=ne,_0x18bbde=K-lt,_0x4a3cc1=Re-0x2*ne;if(_0x12ab9b>_0x4a3cc1){let _0x527590='',_0x9d03b7=0x0;for(const _0x339e5c of _0x17a9c1){const _0xcd94c=_0x36ef62[_0x2f6d73(0x171)](_0x339e5c)[_0x2f6d73(0x34e)];if(_0x9d03b7+_0xcd94c<=_0x4a3cc1-_0x36ef62[_0x2f6d73(0x171)](_0x2f6d73(0x27a))['width'])_0x527590+=_0x339e5c,_0x9d03b7+=_0xcd94c;else{_0x527590+=_0x2f6d73(0x27a);break;}}_0x36ef62[_0x2f6d73(0x333)](_0x527590,_0x36853d,_0x18bbde);}else _0x36ef62[_0x2f6d73(0x333)](_0x17a9c1,_0x36853d,_0x18bbde);_0x36ef62[_0x2f6d73(0x351)]();}['_draw'](_0x1e88e3){const _0xb7bce8=_0x22b98a;ee[_0xb7bce8(0x24f)](_0x1e88e3,this);}}const re='collab-text-anchor-',ht=_0x22b98a(0x1bf),ut=_0x22b98a(0x2cc),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x22b98a(0x20b);class De{constructor(_0x419b56,_0x152047,_0x594581,_0x4cb13d){const _0x356406=_0x22b98a;h(this,_0x356406(0x2bf),[]),h(this,'_anchor',null),h(this,_0x356406(0x307),null),h(this,_0x356406(0x30d),null),h(this,_0x356406(0x3ae),null),h(this,_0x356406(0x1f4),null),(this[_0x356406(0x1a8)]=_0x419b56,this[_0x356406(0x30a)]=_0x152047,this[_0x356406(0x385)]=_0x594581,this[_0x356406(0x331)]=_0x4cb13d,this['_render']());}set['_hover'](_0x12bab5){const _0x1b51ee=_0x22b98a;_0x12bab5?(this[_0x1b51ee(0x30d)]&&this['_anchorDot'][_0x1b51ee(0x269)](),this['_textBubble']&&this[_0x1b51ee(0x307)][_0x1b51ee(0x39a)]()):(this['_anchorDot']&&this[_0x1b51ee(0x30d)]['show'](),this[_0x1b51ee(0x307)]&&this[_0x1b51ee(0x307)]['hide']());}[_0x22b98a(0x14a)](){const _0x552a65=_0x22b98a;for(const _0x2291ee of this[_0x552a65(0x2bf)])_0x2291ee['dispose']();this['_textBubble']&&this[_0x552a65(0x307)][_0x552a65(0x14a)](),this[_0x552a65(0x30d)]&&this[_0x552a65(0x30d)][_0x552a65(0x14a)](),this[_0x552a65(0x294)]&&this[_0x552a65(0x294)]['dispose'](),this['_eventUnsubscribe']&&this[_0x552a65(0x1f4)]();}['_render'](){const _0xcab9f2=_0x22b98a;var _0x284fc3;const {_docSkeleton:_0x1edb9c,_document:_0x4c4d72}=this,{color:_0x479c2d,name:_0x4a0729,ranges:_0x3a4089}=this[_0xcab9f2(0x1a8)],_0x36e15d=_0x4c4d72[_0xcab9f2(0x361)](),{docsLeft:_0x37769a,docsTop:_0x5def9b}=_0x36e15d,_0x5251e3=new b[(_0xcab9f2(0x1cd))](_0x36e15d,_0x1edb9c);for(const {startOffset:_0x1f4f22,endOffset:_0x576da9,rangeType:_0x3e5426,segmentId:_0x5f3cab,segmentPage:_0x5ac296,collapsed:_0x48610f,isActive:_0x227952}of _0x3a4089){const _0x2ff2db=_0x1edb9c[_0xcab9f2(0x1e7)](_0x1f4f22,!0x0,_0x5f3cab,_0x5ac296);let _0x288fc2=_0x1edb9c[_0xcab9f2(0x1e7)](_0x576da9,!0x0,_0x5f3cab,_0x5ac296);if(_0x288fc2==null&&(_0x288fc2=_0x1edb9c[_0xcab9f2(0x1e7)](_0x576da9-0x1,!0x1,_0x5f3cab,_0x5ac296)),_0x227952){const {contentBoxPointGroup:_0x55988a}=_0x5251e3[_0xcab9f2(0x254)](_0x288fc2,_0x288fc2);if(_0x55988a[_0xcab9f2(0x3b1)]===0x0)continue;this['_drawAnchor'](_0x479c2d,_0x55988a,_0x37769a,_0x5def9b,_0x4a0729),this[_0xcab9f2(0x1f4)]=this[_0xcab9f2(0x348)]();}if(_0x2ff2db&&_0x288fc2){if(_0x3e5426===a[_0xcab9f2(0x334)][_0xcab9f2(0x18a)]){const _0x59339d=new b[(_0xcab9f2(0x2ef))](_0x36e15d,_0x1edb9c),{pointGroup:_0x488a15}=(_0x284fc3=_0x59339d[_0xcab9f2(0x254)](_0x2ff2db,_0x288fc2))!=null?_0x284fc3:{};if(_0x488a15==null||_0x488a15[_0xcab9f2(0x3b1)]===0x0)continue;this[_0xcab9f2(0x14f)](_0x479c2d,_0x488a15,_0x37769a,_0x5def9b);}else{if(!_0x48610f){const {borderBoxPointGroup:_0x50e518}=_0x5251e3[_0xcab9f2(0x254)](_0x2ff2db,_0x288fc2);if(_0x50e518['length']===0x0)continue;this[_0xcab9f2(0x155)](_0x479c2d,_0x50e518,_0x37769a,_0x5def9b);}}}}}['_drawAnchor'](_0x416a9b,_0xd2febe,_0x273d42,_0xedeecf,_0x4bd893){const _0x11f4e1=_0x22b98a,_0x334c08=this[_0x11f4e1(0x232)](_0xd2febe),{left:_0x48ca3f,top:_0x46b96d,height:_0x2291b5}=_0x334c08,_0x12a68d=this[_0x11f4e1(0x2b1)](),_0x164250=ft/_0x12a68d,_0x7e046b=new p['Rect'](re+a[_0x11f4e1(0x31a)]['generateRandomId'](k),{'left':_0x48ca3f+_0x273d42-_0x164250,'top':_0x46b96d+_0xedeecf,'height':_0x2291b5,'width':dt,'fill':_0x416a9b||p[_0x11f4e1(0x36a)](a[_0x11f4e1(0x15f)][_0x11f4e1(0x29b)],0x0),'strokeWidth':_0x164250,'stroke':St,'evented':!0x0});this[_0x11f4e1(0x294)]=_0x7e046b,this[_0x11f4e1(0x30a)][_0x11f4e1(0x28e)](_0x7e046b,b[_0x11f4e1(0x190)]);const _0x5c49a5=new p['Rect'](re+a[_0x11f4e1(0x31a)][_0x11f4e1(0x218)](k),{'left':_0x48ca3f+_0x273d42-_0x164250,'top':_0x46b96d+_0xedeecf-oe/0x2,'height':oe,'width':oe,'fill':_0x416a9b||p[_0x11f4e1(0x36a)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x416a9b||p[_0x11f4e1(0x36a)](a[_0x11f4e1(0x15f)][_0x11f4e1(0x29b)],0x0),'evented':!0x1});this['_anchorDot']=_0x5c49a5,this[_0x11f4e1(0x30a)][_0x11f4e1(0x28e)](_0x5c49a5,b[_0x11f4e1(0x190)]);const _0x1c7610=new ee(re+a['Tools'][_0x11f4e1(0x218)](k),{'left':_0x48ca3f+_0x273d42-_0x164250,'top':_0x46b96d+_0xedeecf-K,'text':_0x4bd893,'color':_0x416a9b});this[_0x11f4e1(0x307)]=_0x1c7610,this[_0x11f4e1(0x30a)][_0x11f4e1(0x28e)](_0x1c7610,b[_0x11f4e1(0x190)]),this[_0x11f4e1(0x2ce)]=!0x1;}['_handleHover'](){const _0x4f0223=_0x22b98a,_0x290d1b=this[_0x4f0223(0x294)][_0x4f0223(0x3af)]['subscribeEvent'](()=>{const _0x273c1a=_0x4f0223;this[_0x273c1a(0x2ce)]=!0x0;}),_0x14f3eb=this[_0x4f0223(0x294)][_0x4f0223(0x1cc)][_0x4f0223(0x2f6)](()=>{const _0x4befba=_0x4f0223;this[_0x4befba(0x3ae)]&&clearTimeout(this['_hideTimer']),this[_0x4befba(0x3ae)]=setTimeout(()=>{const _0x3223a6=_0x4befba;this[_0x3223a6(0x2ce)]=!0x1;},0x7d0);});return()=>{const _0x2cbfae=_0x4f0223;_0x290d1b[_0x2cbfae(0x373)](),_0x14f3eb['unsubscribe']();};}[_0x22b98a(0x155)](_0x46f8fd,_0x5ceb46,_0x288c27,_0x58f991){const _0x5b4b10=_0x22b98a,_0xf31210=new a[(_0x5b4b10(0x276))](_0x46f8fd)[_0x5b4b10(0x2f1)](0.2)[_0x5b4b10(0x3b7)](),_0x4c5d68=new p[(_0x5b4b10(0x2f9))](ht+a['Tools'][_0x5b4b10(0x218)](k),{'pointsGroup':_0x5ceb46,'fill':_0xf31210||p['getColor'](a[_0x5b4b10(0x15f)][_0x5b4b10(0x29b)],0.2),'left':_0x288c27,'top':_0x58f991,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b4b10(0x2bf)][_0x5b4b10(0x201)](_0x4c5d68),this[_0x5b4b10(0x30a)][_0x5b4b10(0x28e)](_0x4c5d68,b[_0x5b4b10(0x190)]);}['_drawRectRange'](_0x101961,_0x52f0e4,_0x52c3c9,_0x27d4ba){const _0x20fe5e=_0x22b98a,_0x4ba79b=new a[(_0x20fe5e(0x276))](_0x101961)['setAlpha'](0.2)[_0x20fe5e(0x3b7)](),_0x10ec9a=new p[(_0x20fe5e(0x2f9))](ut+a[_0x20fe5e(0x31a)][_0x20fe5e(0x218)](k),{'pointsGroup':_0x52f0e4,'fill':_0x4ba79b||p[_0x20fe5e(0x36a)](a[_0x20fe5e(0x15f)][_0x20fe5e(0x29b)],0.2),'left':_0x52c3c9,'top':_0x27d4ba,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20fe5e(0x2bf)][_0x20fe5e(0x201)](_0x10ec9a),this[_0x20fe5e(0x30a)][_0x20fe5e(0x28e)](_0x10ec9a,b[_0x20fe5e(0x190)]);}['_getAnchorBounding'](_0x5bfd23){const _0x53ff9c=_0x5bfd23[0x0],_0x5cd8b0=_0x53ff9c[0x0],_0x58b735=_0x53ff9c[0x2],{x:_0x544eb4,y:_0x168717}=_0x5cd8b0,{x:_0x1b617e,y:_0x2d2465}=_0x58b735;return{'left':_0x544eb4,'top':_0x168717,'width':_0x1b617e-_0x544eb4,'height':_0x2d2465-_0x168717};}[_0x22b98a(0x2b1)](){const _0x10ef68=_0x22b98a,{scaleX:_0x36fc54,scaleY:_0x5c11cb}=this[_0x10ef68(0x30a)][_0x10ef68(0x22a)]();return Math[_0x10ef68(0x36e)](_0x36fc54,_0x5c11cb);}}var It=Object[_0x22b98a(0x199)],vt=(_0x716c2,_0x43f94f,_0x163963,_0x538788)=>{const _0x221851=_0x22b98a;for(var _0x5683db=_0x538788>0x1?void 0x0:_0x538788?It(_0x43f94f,_0x163963):_0x43f94f,_0x2cd8f9=_0x716c2[_0x221851(0x3b1)]-0x1,_0x1fbcc0;_0x2cd8f9>=0x0;_0x2cd8f9--)(_0x1fbcc0=_0x716c2[_0x2cd8f9])&&(_0x5683db=_0x1fbcc0(_0x5683db)||_0x5683db);return _0x5683db;},W=(_0x1b64ea,_0x38c048)=>(_0x4af9a7,_0x5f3b5b)=>_0x38c048(_0x4af9a7,_0x5f3b5b,_0x1b64ea);let Ie=class extends a['RxDisposable']{constructor(_0x3a374f,_0x1064fa,_0x3093a4,_0x2fb801,_0x4dc95d){const _0x38185f=_0x22b98a;super(),h(this,_0x38185f(0x1d2),[]),h(this,'_cursors',[]),(this['_context']=_0x3a374f,this[_0x38185f(0x302)]=_0x1064fa,this[_0x38185f(0x399)]=_0x3093a4,this[_0x38185f(0x1cb)]=_0x2fb801,this[_0x38185f(0x38b)]=_0x4dc95d,this[_0x38185f(0x1a1)]());}[_0x22b98a(0x1a1)](){const _0x5206af=_0x22b98a,_0x5c8db1=this[_0x5206af(0x3b5)][_0x5206af(0x392)],_0xa8fb16=this[_0x5206af(0x302)];this['disposeWithMe'](d['combineLatest']([this[_0x5206af(0x399)][_0x5206af(0x3b8)](_0x5c8db1),this['_themeService'][_0x5206af(0x21c)]])['pipe']($[_0x5206af(0x2a6)](([_0x1332c1,_0x3d26cb])=>({'skeleton':_0xa8fb16[_0x5206af(0x32c)](),'cursors':[..._0x1332c1[_0x5206af(0x1c3)]()][_0x5206af(0x15e)](_0x4e91c5=>({..._0x4e91c5,'color':this[_0x5206af(0x38b)][_0x5206af(0x248)](_0x4e91c5[_0x5206af(0x2cf)])}))})))[_0x5206af(0x32d)](_0x3357f3=>{const _0x1265b2=_0x5206af;if(this[_0x1265b2(0x189)](),_0x3357f3){const {skeleton:_0x5ece4f,cursors:_0x63b625}=_0x3357f3;this[_0x1265b2(0x29c)](_0x5ece4f,_0x63b625);}})),this[_0x5206af(0x3bb)](),this[_0x5206af(0x31e)]();}['_updateCollabCursors'](_0x491acb,_0x2f7e53){const _0x1d485f=_0x22b98a,{scene:_0x5c6da0,mainComponent:_0x685364}=this[_0x1d485f(0x3b5)],_0x379ae5=_0x2f7e53['map'](_0x260621=>new De(_0x260621,_0x5c6da0,_0x491acb,_0x685364));this['_cursorShapes']=_0x379ae5,this[_0x1d485f(0x2de)]=_0x2f7e53;}['_refreshCollabCursors'](){const _0x3b6323=_0x22b98a;this[_0x3b6323(0x189)]();const {scene:_0x557c54,mainComponent:_0x34476f}=this['_context'],_0x50e73c=this[_0x3b6323(0x302)]['getSkeleton'](),_0x131ec5=this[_0x3b6323(0x2de)]['map'](_0x474487=>new De(_0x474487,_0x557c54,_0x50e73c,_0x34476f));this[_0x3b6323(0x1d2)]=_0x131ec5;}[_0x22b98a(0x189)](){const _0x559b9c=_0x22b98a;this[_0x559b9c(0x1d2)]['forEach'](_0x1dbb42=>_0x1dbb42[_0x559b9c(0x14a)]()),this[_0x559b9c(0x1d2)]=[];}['_initCommandExecutedListener'](){const _0xb1a571=_0x22b98a,_0x4dcee0=[b[_0xb1a571(0x3be)]['id']];this[_0xb1a571(0x3bd)](this[_0xb1a571(0x1cb)]['onCommandExecuted'](_0x10545d=>{const _0x2fe240=_0xb1a571;_0x4dcee0['includes'](_0x10545d['id'])&&_0x10545d[_0x2fe240(0x283)][_0x2fe240(0x392)]===this[_0x2fe240(0x3b5)][_0x2fe240(0x392)]&&this[_0x2fe240(0x2f7)]();}));}[_0x22b98a(0x3bb)](){const _0x3478e4=_0x22b98a;this[_0x3478e4(0x3bd)](a[_0x3478e4(0x1e3)](this[_0x3478e4(0x3b5)]['engine'][_0x3478e4(0x275)])[_0x3478e4(0x256)]($[_0x3478e4(0x214)](_0x1ed7c2=>_0x1ed7c2[_0x3478e4(0x200)]===p[_0x3478e4(0x374)][_0x3478e4(0x1de)]),$[_0x3478e4(0x357)](0x10))[_0x3478e4(0x32d)](()=>{const _0x5a067e=_0x3478e4;this[_0x5a067e(0x2f7)]();}));}};Ie=vt([W(0x1,a[_0x22b98a(0x1fc)](Y[_0x22b98a(0x1dc)])),W(0x2,a['Inject'](x)),W(0x3,a[_0x22b98a(0x23e)]),W(0x4,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x288)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x22b98a(0x149)]{constructor(_0x2068b7,_0xb66282){const _0x5d6fb5=_0x22b98a;super(_0x2068b7,_0xb66282),h(this,_0x5d6fb5(0x3a5)),h(this,_0x5d6fb5(0x2b7),!0x1),h(this,_0x5d6fb5(0x27e)),h(this,'_name',''),h(this,_0x5d6fb5(0x1fe),_0x5d6fb5(0x2dd)),h(this,_0x5d6fb5(0x273)),(_0xb66282&&this['setShapeProps'](_0xb66282),this[_0x5d6fb5(0x3af)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5d6fb5(0x1cc)][_0x5d6fb5(0x2f6)](()=>this[_0x5d6fb5(0x1b6)]({'hovered':!0x1})));}[_0x22b98a(0x1b6)](_0x2684dc){const _0xddc6c5=_0x22b98a;var _0x3a80a7,_0x4ef6dd,_0x57e7dd,_0x562859,_0x1b628c,_0x5b64e1;this['_color']=(_0x3a80a7=_0x2684dc[_0xddc6c5(0x2cf)])!=null?_0x3a80a7:this['_color'],this[_0xddc6c5(0x2b7)]=(_0x4ef6dd=_0x2684dc['hovered'])!=null?_0x4ef6dd:this[_0xddc6c5(0x2b7)],this[_0xddc6c5(0x27e)]=(_0x57e7dd=_0x2684dc[_0xddc6c5(0x2c4)])!=null?_0x57e7dd:this[_0xddc6c5(0x27e)],this[_0xddc6c5(0x266)]=(_0x562859=_0x2684dc['name'])!=null?_0x562859:this['_name'],this[_0xddc6c5(0x1fe)]=(_0x1b628c=_0x2684dc[_0xddc6c5(0x324)])!=null?_0x1b628c:this[_0xddc6c5(0x1fe)],this[_0xddc6c5(0x273)]=(_0x5b64e1=_0x2684dc[_0xddc6c5(0x250)])!=null?_0x5b64e1:this[_0xddc6c5(0x273)],this['transformByState']({'width':_0x2684dc[_0xddc6c5(0x34e)],'height':_0x2684dc['height']});}[_0x22b98a(0x194)](_0x1a5af9){const _0x4e60cd=_0x22b98a,{row:_0x4d52aa,column:_0x59f2fd}=_0x1a5af9;if(_0x4d52aa>=this[_0x4e60cd(0x27e)][_0x4e60cd(0x204)]&&_0x4d52aa<=this[_0x4e60cd(0x27e)][_0x4e60cd(0x31c)]&&_0x59f2fd>=this['_range'][_0x4e60cd(0x24c)]&&_0x59f2fd<=this['_range'][_0x4e60cd(0x17d)]){this[_0x4e60cd(0x1b6)]({'hovered':!0x0});return;}this[_0x4e60cd(0x1b6)]({'hovered':!0x1});}['triggerDblclick'](_0x51c455){return!0x1;}['_draw'](_0x1b8705){const _0x414a32=_0x22b98a;p[_0x414a32(0x19d)][_0x414a32(0x24f)](_0x1b8705,{'width':this[_0x414a32(0x34e)],'height':this[_0x414a32(0x3b9)],'strokeWidth':mt,'stroke':this[_0x414a32(0x3a5)],'evented':!0x1,'fill':this[_0x414a32(0x273)]}),this[_0x414a32(0x2b7)]&&(_0x1b8705[_0x414a32(0x37f)](),_0x1b8705[_0x414a32(0x1c6)](0x1,0x0,0x0,0x1,this[_0x414a32(0x34e)],this[_0x414a32(0x1fe)]===_0x414a32(0x271)?0x0:-0x14),ee[_0x414a32(0x24f)](_0x1b8705,{'text':this['_name'],'color':this[_0x414a32(0x3a5)]}),_0x1b8705[_0x414a32(0x351)]());}}var Ct=Object[_0x22b98a(0x199)],pt=(_0x415124,_0x20e4f6,_0x276116,_0xc130fe)=>{const _0x2679fd=_0x22b98a;for(var _0x16ad17=_0xc130fe>0x1?void 0x0:_0xc130fe?Ct(_0x20e4f6,_0x276116):_0x20e4f6,_0x4a0abb=_0x415124[_0x2679fd(0x3b1)]-0x1,_0x5cc988;_0x4a0abb>=0x0;_0x4a0abb--)(_0x5cc988=_0x415124[_0x4a0abb])&&(_0x16ad17=_0x5cc988(_0x16ad17)||_0x16ad17);return _0x16ad17;},ae=(_0x1177e9,_0x302bb7)=>(_0x2593b2,_0x21c44a)=>_0x302bb7(_0x2593b2,_0x21c44a,_0x1177e9);const bt=0x1389;let ve=class extends a[_0x22b98a(0x2ab)]{constructor(_0x1556c1,_0x55f080,_0x1c83c0,_0x30e795){const _0x4e0b39=_0x22b98a;super(),h(this,_0x4e0b39(0x2de),new Set()),h(this,_0x4e0b39(0x2db),null),(this[_0x4e0b39(0x3b5)]=_0x1556c1,this[_0x4e0b39(0x346)]=_0x55f080,this[_0x4e0b39(0x399)]=_0x1c83c0,this['_themeService']=_0x30e795,this[_0x4e0b39(0x1a1)]());}[_0x22b98a(0x1a1)](){const _0x77adb7=_0x22b98a;this['_sheetSkeletonManagerService'][_0x77adb7(0x14e)][_0x77adb7(0x256)]($['takeUntil'](this[_0x77adb7(0x1e4)]),$['switchMap'](_0x2519ca=>{const _0x34b86e=_0x77adb7;if(_0x2519ca){const _0x29e10d=_0x2519ca[_0x34b86e(0x2f8)];return d[_0x34b86e(0x2e6)](this[_0x34b86e(0x399)][_0x34b86e(0x3b8)](this[_0x34b86e(0x3b5)][_0x34b86e(0x392)]),this[_0x34b86e(0x38b)][_0x34b86e(0x21c)])[_0x34b86e(0x256)]($[_0x34b86e(0x2a6)](([_0x469ab3,_0x16474e])=>{const _0x26420a=_0x34b86e,_0x47371f=new Map();return _0x469ab3[_0x26420a(0x19b)]((_0x5c10da,_0x45e80c)=>{const _0x4cb536=_0x26420a;if(_0x5c10da[_0x4cb536(0x3cb)]===_0x29e10d){const _0x4ac66d={..._0x5c10da};_0x4ac66d[_0x4cb536(0x2cf)]=this['_themeService'][_0x4cb536(0x248)](_0x5c10da['color']),_0x47371f[_0x4cb536(0x1f2)](_0x45e80c,_0x4ac66d);}}),{'skeleton':_0x2519ca,'cursors':_0x47371f};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x77adb7(0x32d)](({skeleton:_0x5e6561,cursors:_0x458f20})=>{const _0x39a36e=_0x77adb7;this['_removeCollabCursors'](),_0x5e6561&&this[_0x39a36e(0x29c)](_0x5e6561,_0x458f20);}),this[_0x77adb7(0x346)][_0x77adb7(0x14e)]['subscribe'](_0x4af531=>{const _0x5023c5=_0x77adb7;if(_0x4af531==null)return;const {skeleton:_0x3b1d63}=_0x4af531,{scene:_0x35b37e}=this['_context'];_0x35b37e['onPointerMove$'][_0x5023c5(0x2f6)](a[_0x5023c5(0x1c7)](_0x35c0d3=>{const _0x4a6103=_0x5023c5;var _0x438199,_0x164f3f;const {offsetX:_0x20ada7,offsetY:_0x10ff81}=_0x35c0d3,{x:_0x5092d3,y:_0x57d96d}=_0x35b37e['getRelativeToViewportCoord'](p[_0x4a6103(0x24e)][_0x4a6103(0x1a5)]([_0x20ada7,_0x10ff81])),{scaleX:_0x39d7fc,scaleY:_0x66a751}=_0x35b37e[_0x4a6103(0x22a)](),_0x2bc2f2=_0x35b37e['getViewport'](p[_0x4a6103(0x289)][_0x4a6103(0x192)]),_0x4bf079=_0x35b37e[_0x4a6103(0x2ba)](p[_0x4a6103(0x24e)]['FromArray']([_0x5092d3,_0x57d96d]),_0x2bc2f2),_0x3c1e31=_0x3b1d63[_0x4a6103(0x162)](_0x20ada7,_0x10ff81,_0x39d7fc,_0x66a751,_0x4bf079);((_0x438199=this['_lastPointer'])==null?void 0x0:_0x438199[_0x4a6103(0x174)])===_0x3c1e31[_0x4a6103(0x174)]&&((_0x164f3f=this[_0x4a6103(0x2db)])==null?void 0x0:_0x164f3f[_0x4a6103(0x34a)])===_0x3c1e31[_0x4a6103(0x34a)]||this['_cursors']['forEach'](_0x468579=>{_0x468579['onMouseMove'](_0x3c1e31);});},0x64));});}[_0x22b98a(0x29c)](_0x3279f7,_0x5ea046){const _0x13e6c6=_0x22b98a;var _0x3215ad;const _0x2834cf=(_0x3215ad=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3215ad['skeleton'];if(!_0x2834cf)return;const _0x143e7c=this[_0x13e6c6(0x21a)]();if(!_0x143e7c)return;this[_0x13e6c6(0x2de)][_0x13e6c6(0x19b)](_0x513f22=>{const _0x1b06a9=_0x13e6c6;_0x513f22[_0x1b06a9(0x2e0)]();});const {scene:_0xed809f}=_0x143e7c,_0x4919c6=Et(Array[_0x13e6c6(0x394)](_0x5ea046['values']()))[_0x13e6c6(0x2a6)](_0x244e81=>{const _0x286859=_0x13e6c6,{color:_0x5b0d37,range:_0x9020a8,name:_0x559a49,selection:_0x41f6c2,sheetID:_0xe28d5e}=_0x244e81,{startColumn:_0xa846c0,startRow:_0x278a5e,endColumn:_0x3cf55c,endRow:_0x5d3a4f}=_0x9020a8,_0x3749c9=X[_0x286859(0x1f1)](_0x278a5e,_0xa846c0,_0xed809f,_0x2834cf),_0x2e8aa0=X[_0x286859(0x1f1)](_0x5d3a4f,_0x3cf55c,_0xed809f,_0x2834cf),{columnHeaderHeightAndMarginTop:_0x252160}=_0x2834cf,{startX:_0x59cac9,startY:_0x2d5524}=_0x3749c9,{endX:_0x518a52,endY:_0x412fe8}=_0x2e8aa0,_0x2fd4a6=_0x518a52-_0x59cac9,_0x57f18d=_0x412fe8-_0x2d5524,_0x29c218={'labelPosition':_0x2d5524-_0x252160>=K?_0x286859(0x2dd):'bottom','sheetID':_0xe28d5e,'range':_0x9020a8,'color':_0x5b0d37,'name':_0x559a49,'selection':_0x41f6c2,'left':_0x59cac9,'top':_0x2d5524,'width':_0x2fd4a6,'height':_0x57f18d,'evented':!0x1,'zIndex':bt};return new Pe(_0x559a49,_0x29c218);});_0xed809f[_0x13e6c6(0x3a4)](_0x4919c6,gt),this['_cursors']=new Set(_0x4919c6);}[_0x22b98a(0x189)](){const _0x1be83c=_0x22b98a;var _0x23f204;(_0x23f204=this['_cursors'])==null||_0x23f204[_0x1be83c(0x19b)](_0x5cb916=>_0x5cb916['dispose']());}['_getSheetObject'](){const _0x3ed00b=_0x22b98a;return X['getSheetObject'](this[_0x3ed00b(0x3b5)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x22b98a(0x1fc)](X[_0x22b98a(0x391)])),ae(0x2,a['Inject'](x)),ae(0x3,a['Inject'](a['ThemeService']))],ve);function Et(_0x215b1c){const _0x40f581=_0x22b98a,_0x10166f=new Map();return _0x215b1c['forEach'](_0x47f6c0=>{const _0x548dcc=_0x202d;if(_0x10166f[_0x548dcc(0x32b)](_0x47f6c0[_0x548dcc(0x379)])){const _0x35fe4f=_0x10166f[_0x548dcc(0x2b0)](_0x47f6c0[_0x548dcc(0x379)]);_0x35fe4f[_0x548dcc(0x18e)]+=',\x20'+_0x47f6c0[_0x548dcc(0x18e)];}else _0x10166f[_0x548dcc(0x1f2)](_0x47f6c0[_0x548dcc(0x379)],_0x47f6c0);}),Array[_0x40f581(0x394)](_0x10166f['values']());}var E=function(){const _0x4ca1c9=_0x22b98a;return E=Object[_0x4ca1c9(0x389)]||function(_0x5a2201){const _0x43f1ba=_0x4ca1c9;for(var _0x5a1ce5,_0xcbe0a4=0x1,_0x5e9bcb=arguments[_0x43f1ba(0x3b1)];_0xcbe0a4<_0x5e9bcb;_0xcbe0a4++){_0x5a1ce5=arguments[_0xcbe0a4];for(var _0x634020 in _0x5a1ce5)Object['prototype']['hasOwnProperty'][_0x43f1ba(0x2b2)](_0x5a1ce5,_0x634020)&&(_0x5a2201[_0x634020]=_0x5a1ce5[_0x634020]);}return _0x5a2201;},E[_0x4ca1c9(0x286)](this,arguments);},Tt=function(_0x43c06e,_0x5b0b90){const _0x35fdaa=_0x22b98a;var _0xba435a={};for(var _0x431963 in _0x43c06e)Object[_0x35fdaa(0x1da)][_0x35fdaa(0x229)][_0x35fdaa(0x2b2)](_0x43c06e,_0x431963)&&_0x5b0b90[_0x35fdaa(0x2ca)](_0x431963)<0x0&&(_0xba435a[_0x431963]=_0x43c06e[_0x431963]);if(_0x43c06e!=null&&typeof Object[_0x35fdaa(0x27d)]==_0x35fdaa(0x349)){for(var _0x5b9d05=0x0,_0x431963=Object[_0x35fdaa(0x27d)](_0x43c06e);_0x5b9d05<_0x431963[_0x35fdaa(0x3b1)];_0x5b9d05++)_0x5b0b90[_0x35fdaa(0x2ca)](_0x431963[_0x5b9d05])<0x0&&Object['prototype'][_0x35fdaa(0x186)][_0x35fdaa(0x2b2)](_0x43c06e,_0x431963[_0x5b9d05])&&(_0xba435a[_0x431963[_0x5b9d05]]=_0x43c06e[_0x431963[_0x5b9d05]]);}return _0xba435a;},pe=M[_0x22b98a(0x180)](function(_0x49c1ab,_0xbbee39){const _0x3d3f16=_0x22b98a;var _0x46c503=_0x49c1ab['icon'],_0x147bac=_0x49c1ab['id'],_0x5a62b8=_0x49c1ab[_0x3d3f16(0x354)],_0x50de1f=_0x49c1ab[_0x3d3f16(0x19f)],_0x3a4946=Tt(_0x49c1ab,[_0x3d3f16(0x278),'id',_0x3d3f16(0x354),_0x3d3f16(0x19f)]),_0x854a2d=_0x3d3f16(0x3a6)['concat'](_0x147bac,'\x20')['concat'](_0x5a62b8||'')[_0x3d3f16(0x264)](),_0xcc2cf7=M['useRef']('_'['concat'](Dt()));return Ae(_0x46c503,''[_0x3d3f16(0x3c7)](_0x147bac),{'defIds':_0x46c503[_0x3d3f16(0x25e)],'idSuffix':_0xcc2cf7['current']},E({'ref':_0xbbee39,'className':_0x854a2d},_0x3a4946),_0x50de1f);});function Ae(_0x5ef793,_0x41f8de,_0x183b67,_0x2d2934,_0x7923bd){const _0x344c29=_0x22b98a;return M[_0x344c29(0x17c)](_0x5ef793[_0x344c29(0x1db)],E(E({'key':_0x41f8de},Ot(_0x5ef793,_0x183b67,_0x7923bd)),_0x2d2934),(Rt(_0x5ef793,_0x183b67)['children']||[])[_0x344c29(0x2a6)](function(_0x11633b,_0x4a50cb){const _0x409ce6=_0x344c29;return Ae(_0x11633b,''[_0x409ce6(0x3c7)](_0x41f8de,'-')['concat'](_0x5ef793[_0x409ce6(0x1db)],'-')[_0x409ce6(0x3c7)](_0x4a50cb),_0x183b67,void 0x0,_0x7923bd);}));}function Ot(_0x5c38eb,_0x323c8f,_0x3a986b){const _0x380753=_0x22b98a;var _0x2c7fe8=E({},_0x5c38eb[_0x380753(0x168)]);_0x3a986b!=null&&_0x3a986b[_0x380753(0x2e3)]&&_0x2c7fe8[_0x380753(0x1c2)]===_0x380753(0x2e3)&&(_0x2c7fe8[_0x380753(0x1c2)]=_0x3a986b[_0x380753(0x2e3)]),_0x5c38eb['tag']==='mask'&&_0x2c7fe8['id']&&(_0x2c7fe8['id']=_0x2c7fe8['id']+_0x323c8f[_0x380753(0x196)]),Object[_0x380753(0x16f)](_0x2c7fe8)[_0x380753(0x19b)](function(_0x77df54){const _0x25dd0e=_0x380753;var _0x3cc581=_0x77df54[0x0],_0x1c3904=_0x77df54[0x1];_0x3cc581==='mask'&&typeof _0x1c3904==_0x25dd0e(0x38c)&&(_0x2c7fe8[_0x3cc581]=_0x1c3904[_0x25dd0e(0x182)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x323c8f[_0x25dd0e(0x196)],')')));});var _0x2f0733=_0x323c8f[_0x380753(0x25e)];return!_0x2f0733||_0x2f0733['length']===0x0||(_0x5c38eb[_0x380753(0x1db)]===_0x380753(0x383)&&_0x2c7fe8[_0x380753(0x386)]&&(_0x2c7fe8[_0x380753(0x386)]=_0x2c7fe8[_0x380753(0x386)]+_0x323c8f[_0x380753(0x196)]),Object[_0x380753(0x16f)](_0x2c7fe8)[_0x380753(0x19b)](function(_0x5533eb){const _0x2e055b=_0x380753;var _0x51d587=_0x5533eb[0x0],_0x63c800=_0x5533eb[0x1];typeof _0x63c800=='string'&&(_0x2c7fe8[_0x51d587]=_0x63c800[_0x2e055b(0x182)](/url\(#(.*)\)/,_0x2e055b(0x1fa)[_0x2e055b(0x3c7)](_0x323c8f[_0x2e055b(0x196)],')')));})),_0x2c7fe8;}function Rt(_0xf0a4bc,_0x878b7f){const _0x2dd3a5=_0x22b98a;var _0x4b73ca,_0x39c12e=_0x878b7f[_0x2dd3a5(0x25e)];return!_0x39c12e||_0x39c12e[_0x2dd3a5(0x3b1)]===0x0?_0xf0a4bc:_0xf0a4bc[_0x2dd3a5(0x1db)]===_0x2dd3a5(0x2cb)&&(!((_0x4b73ca=_0xf0a4bc[_0x2dd3a5(0x378)])===null||_0x4b73ca===void 0x0)&&_0x4b73ca[_0x2dd3a5(0x3b1)])?E(E({},_0xf0a4bc),{'children':_0xf0a4bc[_0x2dd3a5(0x378)][_0x2dd3a5(0x2a6)](function(_0x475a97){const _0x16cd4e=_0x2dd3a5;return typeof _0x475a97['attrs']['id']==_0x16cd4e(0x38c)&&_0x39c12e&&_0x39c12e[_0x16cd4e(0x38d)](_0x475a97[_0x16cd4e(0x168)]['id'])?E(E({},_0x475a97),{'attrs':E(E({},_0x475a97[_0x16cd4e(0x168)]),{'id':_0x475a97[_0x16cd4e(0x168)]['id']+_0x878b7f[_0x16cd4e(0x196)]})}):_0x475a97;})}):_0xf0a4bc;}function Dt(){const _0x117fc3=_0x22b98a;return Math['random']()[_0x117fc3(0x30c)](0x24)[_0x117fc3(0x2c7)](0x2,0x8);}pe[_0x22b98a(0x2c3)]=_0x22b98a(0x1ec);var Ut={'tag':_0x22b98a(0x2e5),'attrs':{'xmlns':_0x22b98a(0x16a),'fill':'none','viewBox':_0x22b98a(0x185),'width':_0x22b98a(0x37a),'height':_0x22b98a(0x37a)},'children':[{'tag':'g','attrs':{'clipPath':_0x22b98a(0x3c6)},'children':[{'tag':_0x22b98a(0x18d),'attrs':{'stroke':_0x22b98a(0x38a),'d':_0x22b98a(0x258),'strokeLinecap':_0x22b98a(0x340),'strokeLinejoin':_0x22b98a(0x340),'strokeWidth':1.2}}]},{'tag':_0x22b98a(0x2cb),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x22b98a(0x337)},'children':[{'tag':'path','attrs':{'fill':_0x22b98a(0x270),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M[_0x22b98a(0x180)](function(_0x59d30d,_0x5c974e){const _0x4c3402=_0x22b98a;return M['createElement'](pe,Object[_0x4c3402(0x389)]({},_0x59d30d,{'id':_0x4c3402(0x153),'ref':_0x5c974e,'icon':Ut}));});ye[_0x22b98a(0x2c3)]=_0x22b98a(0x1d7);var Nt={'tag':_0x22b98a(0x2e5),'attrs':{'xmlns':_0x22b98a(0x16a),'fill':_0x22b98a(0x33c),'viewBox':_0x22b98a(0x2bd),'width':_0x22b98a(0x37a),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x22b98a(0x388)},'children':[{'tag':_0x22b98a(0x18d),'attrs':{'stroke':_0x22b98a(0x38a),'d':_0x22b98a(0x2e4),'strokeLinecap':'round','strokeLinejoin':_0x22b98a(0x340),'strokeWidth':1.2}}]},{'tag':_0x22b98a(0x2cb),'attrs':{},'children':[{'tag':_0x22b98a(0x1e1),'attrs':{'id':_0x22b98a(0x181)},'children':[{'tag':_0x22b98a(0x18d),'attrs':{'fill':'white','d':_0x22b98a(0x234),'transform':_0x22b98a(0x3c2)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x22b98a(0x180)](function(_0x3e9d34,_0x4c3253){const _0x473404=_0x22b98a;return M[_0x473404(0x17c)](pe,Object['assign']({},_0x3e9d34,{'id':'on-line-icon','ref':_0x4c3253,'icon':Nt}));});$e[_0x22b98a(0x2c3)]=_0x22b98a(0x332);function Mt(_0x48e613){const _0x4c4229=_0x22b98a;switch(_0x48e613){case u[_0x4c4229(0x1d3)][_0x4c4229(0x362)]:return _0x4c4229(0x262);case u['CollaborationStatus'][_0x4c4229(0x1fd)]:return _0x4c4229(0x1dd);case u[_0x4c4229(0x1d3)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x4c4229(0x1d3)]['NOT_COLLAB']:return _0x4c4229(0x329);case u[_0x4c4229(0x1d3)]['AWAITING']:case u[_0x4c4229(0x1d3)]['AWAITING_WITH_PENDING']:return _0x4c4229(0x184);case u['CollaborationStatus'][_0x4c4229(0x1a2)]:case u[_0x4c4229(0x1d3)][_0x4c4229(0x35a)]:return _0x4c4229(0x274);}}function xe(_0x71e55f){const _0x3adca8=_0x22b98a,{status$:_0x430ac4}=_0x71e55f,_0x324b01=T[_0x3adca8(0x3a0)](_0x430ac4,u[_0x3adca8(0x1d3)]['NOT_COLLAB']),_0x1d2213=T['useDependency'](a[_0x3adca8(0x367)]),_0x4da2d6=T[_0x3adca8(0x295)](u[_0x3adca8(0x1bb)]),_0x4a08eb=_0x324b01!==u[_0x3adca8(0x1d3)][_0x3adca8(0x362)],_0x21112b=_0x1d2213['t'](Mt(_0x324b01)),_0x449991=_0x4a08eb?w[_0x3adca8(0x32e)]($e,{}):w[_0x3adca8(0x32e)](ye,{}),_0x53802d=M[_0x3adca8(0x157)](()=>{const _0x30e2c0=_0x3adca8;_0x4a08eb||_0x4da2d6[_0x30e2c0(0x39e)]();},[_0x4a08eb,_0x4da2d6]);function _0x2e98c4(){const _0xb1240b=_0x3adca8;return w['jsxs'](_0xb1240b(0x2f5),{'className':_0xb1240b(0x195),'onClick':_0x53802d,'children':[w['jsx']('div',{'className':D[_0xb1240b(0x17f)](_0xb1240b(0x23c),{'univer-text-green-500':_0x4a08eb,'univer-text-red-500':!_0x4a08eb}),'children':_0x449991}),w[_0xb1240b(0x32e)](_0xb1240b(0x2f5),{'className':_0xb1240b(0x1a7),'children':_0x21112b})]});}return _0x4a08eb?_0x2e98c4():w[_0x3adca8(0x32e)](D['Tooltip'],{'title':_0x1d2213['t'](_0x3adca8(0x2d3)),'children':_0x2e98c4()});}var Lt=Object[_0x22b98a(0x199)],wt=(_0x4d652a,_0x4a7cd0,_0x1ff2c8,_0x2d3e37)=>{const _0x48d00e=_0x22b98a;for(var _0x36b697=_0x2d3e37>0x1?void 0x0:_0x2d3e37?Lt(_0x4a7cd0,_0x1ff2c8):_0x4a7cd0,_0x1fbe9f=_0x4d652a[_0x48d00e(0x3b1)]-0x1,_0x3a3cc4;_0x1fbe9f>=0x0;_0x1fbe9f--)(_0x3a3cc4=_0x4d652a[_0x1fbe9f])&&(_0x36b697=_0x3a3cc4(_0x36b697)||_0x36b697);return _0x36b697;},V=(_0x1efd97,_0xf47a1e)=>(_0x1731b6,_0x308f3a)=>_0xf47a1e(_0x1731b6,_0x308f3a,_0x1efd97);exports[_0x22b98a(0x355)]=class extends a[_0x22b98a(0x1ea)]{constructor(_0x560810,_0x11a103,_0x249e20,_0x5c8231){const _0x5baa91=_0x22b98a;super(),h(this,_0x5baa91(0x2b3),new d['BehaviorSubject'](u[_0x5baa91(0x1d3)][_0x5baa91(0x20e)])),(this[_0x5baa91(0x28c)]=_0x560810,this[_0x5baa91(0x1c4)]=_0x11a103,this[_0x5baa91(0x15c)]=_0x249e20,this['_uiPartsService']=_0x5c8231,this[_0x5baa91(0x2fb)](),this[_0x5baa91(0x32f)]());}[_0x22b98a(0x32f)](){const _0x2c896c=_0x22b98a;this[_0x2c896c(0x3bd)](this[_0x2c896c(0x28c)][_0x2c896c(0x20c)][_0x2c896c(0x256)](d[_0x2c896c(0x239)](()=>{const _0x1ef085=_0x2c896c,_0x13732a=this[_0x1ef085(0x28c)]['getFocusedUnit']();return _0x13732a?this['_collaborationController'][_0x1ef085(0x23d)](_0x13732a[_0x1ef085(0x3bc)]()):d['of'](null);}),d[_0x2c896c(0x239)](_0x1ff838=>_0x1ff838?_0x1ff838[_0x2c896c(0x255)]:d['of'](u[_0x2c896c(0x1d3)][_0x2c896c(0x20e)])))[_0x2c896c(0x32d)](_0x9edb74=>{const _0x21f6c9=_0x2c896c;this[_0x21f6c9(0x2b3)][_0x21f6c9(0x3c9)](_0x9edb74);}));}[_0x22b98a(0x2fb)](){const _0x3e234d=_0x22b98a;this['disposeWithMe'](this[_0x3e234d(0x221)][_0x3e234d(0x21b)](T['BuiltInUIPart']['HEADER_MENU'],()=>T['connectInjector'](Pt({'status$':this['_status$'][_0x3e234d(0x1a0)]()}),this[_0x3e234d(0x1c4)])));}},exports[_0x22b98a(0x355)]=wt([V(0x0,a[_0x22b98a(0x2df)]),V(0x1,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x3d1)])),V(0x2,a['Inject'](u[_0x22b98a(0x315)])),V(0x3,T[_0x22b98a(0x1e9)])],exports[_0x22b98a(0x355)]);function Pt(_0x167f82){const {status$:_0x3f1e75}=_0x167f82;return function(){const _0x384b92=_0x202d;return w[_0x384b92(0x32e)](xe,{'status$':_0x3f1e75});};}var At=Object[_0x22b98a(0x199)],yt=(_0x4a455c,_0x17061c,_0xab7ae4,_0x496967)=>{const _0x4c114b=_0x22b98a;for(var _0x597195=_0x496967>0x1?void 0x0:_0x496967?At(_0x17061c,_0xab7ae4):_0x17061c,_0x42b95a=_0x4a455c[_0x4c114b(0x3b1)]-0x1,_0x518915;_0x42b95a>=0x0;_0x42b95a--)(_0x518915=_0x4a455c[_0x42b95a])&&(_0x597195=_0x518915(_0x597195)||_0x597195);return _0x597195;},y=(_0x619a80,_0x1184a8)=>(_0x15e5d8,_0x157736)=>_0x1184a8(_0x15e5d8,_0x157736,_0x619a80);let q=class extends a[_0x22b98a(0x1ea)]{constructor(_0x493f16,_0xbe9af2,_0x34a865,_0x2eac14,_0xec10f6,_0x46c0ff){const _0x40ef2b=_0x22b98a;super(),this['_beforeCloseService']=_0x493f16,this[_0x40ef2b(0x358)]=_0xbe9af2,this[_0x40ef2b(0x26c)]=_0x34a865,this['_messageService']=_0x2eac14,this[_0x40ef2b(0x1ab)]=_0xec10f6,this[_0x40ef2b(0x158)]=_0x46c0ff,this['_setupBeforeClosingHandler'](),this[_0x40ef2b(0x398)]();}[_0x22b98a(0x36c)](){const _0x5935ba=_0x22b98a;this[_0x5935ba(0x3bd)](this[_0x5935ba(0x350)][_0x5935ba(0x1ca)](()=>{const _0x2c4a1d=_0x5935ba;if(this['_localCacheService'][_0x2c4a1d(0x163)][_0x2c4a1d(0x1d5)])return this['_localeService']['t'](_0x2c4a1d(0x308));}));}[_0x22b98a(0x398)](){const _0x5d533e=_0x22b98a;this[_0x5d533e(0x3bd)](this['_collaborationUIEventService'][_0x5d533e(0x1a3)]['subscribe'](_0x1c3b32=>{const _0x2070f7=_0x5d533e;_0x1c3b32['id']===u[_0x2070f7(0x376)][_0x2070f7(0x251)]&&this[_0x2070f7(0x317)][_0x2070f7(0x39a)]({'type':D[_0x2070f7(0x37e)]['Warning'],'content':this[_0x2070f7(0x158)]['t']('collaboration.single-unit.warning')}),_0x1c3b32['id']===u[_0x2070f7(0x376)]['CLOSE_ROOM']&&this['_messageService'][_0x2070f7(0x39a)]({'type':D[_0x2070f7(0x37e)]['Warning'],'content':this[_0x2070f7(0x158)]['t']('collaboration.closeRoom')}),_0x1c3b32['id']===u['CollaborationUIEventId'][_0x2070f7(0x18f)]&&this['_notificationService'][_0x2070f7(0x39a)]({'title':this[_0x2070f7(0x158)]['t'](_0x2070f7(0x1b7)),'content':this[_0x2070f7(0x158)]['t'](_0x2070f7(0x1ff)),'type':_0x2070f7(0x3d3),'duration':0x0}),_0x1c3b32['id']===u[_0x2070f7(0x376)][_0x2070f7(0x1fd)]&&this['_messageService'][_0x2070f7(0x39a)]({'type':D['MessageType'][_0x2070f7(0x159)],'content':this[_0x2070f7(0x158)]['t'](_0x2070f7(0x151))+'('+_0x1c3b32[_0x2070f7(0x202)]+')'}),_0x1c3b32['id']===u[_0x2070f7(0x376)][_0x2070f7(0x3cd)]&&this[_0x2070f7(0x317)][_0x2070f7(0x39a)]({'type':D[_0x2070f7(0x37e)][_0x2070f7(0x167)],'content':this[_0x2070f7(0x158)]['t'](_0x1c3b32[_0x2070f7(0x202)]||'')}),_0x1c3b32['id']===u['CollaborationUIEventId'][_0x2070f7(0x2d2)]&&this['_messageService'][_0x2070f7(0x39a)]({'type':D[_0x2070f7(0x37e)][_0x2070f7(0x167)],'content':this[_0x2070f7(0x158)]['t'](_0x2070f7(0x3ca))}),_0x1c3b32['id']===u[_0x2070f7(0x376)]['SOCKET_FAILED']&&this[_0x2070f7(0x317)][_0x2070f7(0x39a)]({'type':D['MessageType'][_0x2070f7(0x159)],'content':this[_0x2070f7(0x158)]['t']('session.connection-failed')}),_0x1c3b32['id']===u[_0x2070f7(0x376)][_0x2070f7(0x1ed)]&&this['_messageService'][_0x2070f7(0x39a)]({'type':D['MessageType'][_0x2070f7(0x159)],'content':this[_0x2070f7(0x158)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0x22b98a(0x175)]),y(0x1,u[_0x22b98a(0x2d5)]),y(0x2,a[_0x22b98a(0x1fc)](u['CollaborationUIEventService'])),y(0x3,T[_0x22b98a(0x2f2)]),y(0x4,T[_0x22b98a(0x169)]),y(0x5,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x367)]))],q);function _0x1a0f(){const _0x3fb627=['m2Prime','@univerjs/sheets','colorChannel1','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','svg','combineLatest','DisposableCollection','YUUMI_ALL_TABLES_IS_INVALID','debounceTime','UnitStatus','INVALID_INVITE_CODE','_session','uni.network.url-service','updateOfflineData','NodePositionConvertToRectRange','stringify','setAlpha','IMessageService','runOnServer','SetTextSelectionsOperation','div','subscribeEvent','_refreshCollabCursors','sheetId','RegularPolygon','Workbook','_initStatusComponent','@univerjs/drawing','takeUntil','ISnapshotServerService','handleDeleteRangeMoveLeft','selections','some','_docSkeletonManagerService','addHandlerCallback','_startSheetCollabCursor','_entityInit$','getActiveSheet','_textBubble','collaboration-client.offline-data-not-saved','SessionStatus','_scene','_ensureSubject','toString','_anchorDot','ACTIVE_UNIT_EVENT_CHANNEL','INVALID_ARGUMENT','activeSheet$','UNDEFINED','_docClipboardService','YUUMI_RATE_OVER_LIMIT','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CollaborationController','_imageIoService','_messageService','runRefRangeMutations','getUnitStatus$','Tools','21CUYDvP','endRow','_onCursorDelete','_initCommandExecutedListener','assignAColorForMemberID','_saveCache','eventID','getCurrentSelections','CHANGESET_REVISION_CONFILICT','labelPosition','urlChange$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','@univerjs/engine-render','exhaustSavingTask','collabStatus.notCollab','getTypeOfUnitDisposed$','has','getSkeleton','subscribe','jsx','_initStatusListener','_colorAssignService','_document','OnLineIcon','fillText','DOC_RANGE_TYPE','YUUMI_NO_CUBOID_FOR_QUESTION','_dataLoaderService','off-line-icon_clip0_910_343','removeParam','_handleLeaveEvent','APPLY_REJECT','createInstance','none','Failed','_getSessionTicket','isArray','round','_logService','lineTo','INTERNAL_ERROR','PY_RUNTIME_SCRIPT_ERROR','YUUMI_SUBSCRIPTION_NOT_FOUND','_sheetSkeletonManagerService','disposeUnit','_handleHover','function','row','COMPLETION_FINISHED','_handleEvent','setItem','width','executionId','_beforeCloseService','restore','loadOfflineData','_configService','className','DesktopCollaborationStatusDisplayController','_httpService','throttleTime','_localCacheService','_cachedData','PENDING','YUUMI_URL_COL_OUT_OF_RANGE','_docTransformStateCacheService','code','_handleHeartbeatEvent','_onCursorUpdate','_startDocCollabCursor','getOffsetConfig','OFFLINE','LICENSE_DISTRO_REJECTED','YUUMI_UNABLE_LOAD_URL','ranges','isTransformMutationsWithChangesetSuccess','LocaleService','docStateChange$','TOO_MANY_REQUESTS','getColor','_config','_setupBeforeClosingHandler','invokeId','max','override','_selfUnitIDs','_entities','LOCAL_CACHE_INTERVAL','unsubscribe','TRANSFORM_CHANGE_OBSERVABLE_TYPE','onRendered','CollaborationUIEventId','_getMergeRange','children','selection','1em','blue.400','onLocalMutation','handleInsertRangeMoveDown','MessageType','save','transformMutation','_docStateChangeManagerService','CollaborationDataLoaderController','use','Rectangle','_docSkeleton','xlink:href','saveOfflineData','url(#on-line-icon_clip0_910_349)','assign','currentColor','_themeService','string','includes','createSocket','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','@univerjs/rpc','SheetSkeletonManagerService','unitId','getConfig','from','text','SheetCollabCursorShape','LICENSE_EXPORT_SIZE_EXCEEDED','_initEvent','_collabCursorController','show','getUndoRedoMutationParamsCache','_assignedColors','WebURLService','reconnect','@univerjs/design','useObservable','deepClone','_initEntityListener','init','addObjects','_color','univerjs-icon\x20univerjs-icon-','getSheetBySheetId','handleInsertRow','setTimeout','NO_OTHER_CLIENTS_EDITING','getSheetId','location','ENSURE_SNAPSHOT_EXECUTION','_hideTimer','onPointerEnter$','4GiFKMV','length','getCurrentRevOfUnit','memberID','DeleteRangeMoveLeftCommandId','_context','EffectRefRangId','toRgbString','getCollabCursors$','height','then','_initResize','getUnitId','disposeWithMe','SetDocZoomRatioOperation','@univerjs/docs-ui','result','application/json','translate(.97)','undoState','_updateLocalCursor','USERS_LEAVE','url(#off-line-icon_clip0_910_343)','concat','transformMutationsWithChangeset','next','session.will-retry','sheetID','IImageIoService','JOIN_ROOM_FAILED','UNRECOGNIZED','replaceState','INVITE_CODE_HAS_BEEN_UES','Injector','with','error','Shape','dispose','Module','wsSessionTicketUrl','_send','currentSkeleton$','_drawRectRange','TEXT','collaboration.closeRoom','react','off-line-icon','EMAIL_HAS_BEEN_BOUND','_drawTextRange','sessionTicket','useCallback','_localeService','Error','_updateSubUnitFromURLParams','_docTransformIMECacheService','_collaborationController','MoveRangeCommandId','flatMap','COLORS','_doCreateSocket','all','getCellPositionByOffset','saveTaskMap','getDocRanges','IRemoteInstanceService','disableLocalCache','Warning','attrs','INotificationService','http://www.w3.org/2000/svg','BrowserCollaborationSocketService','@univerjs-pro/collaboration-client','collaboration-client-ui.config','_instanceService','entries','CommandType','measureText','defineProperty','requireSession','column','IBeforeCloseService','_cursorInfo$','mutations','handleDeleteRangeMoveUp','doc.mutation.rich-text-editing','red.300','_docTransformSelectionsService','createElement','endColumn','setActiveRange','clsx','forwardRef','on-line-icon_clip0_910_349','replace','onStarting','collabStatus.syncing','0\x200\x2016\x2016','propertyIsEnumerable','_createSocketURL','RefRangeService','_removeCollabCursors','RECT','pushState','#FFF','path','name','PERMISSION_DENIED','TEXT_RANGE_LAYER_INDEX','CollaborationSocketService','VIEW_MAIN','registerRenderModule','onMouseMove','univer-flex\x20univer-items-center','idSuffix','fillStyle','_heartbeatTimer','getOwnPropertyDescriptor','APPLY_NON_SEQUENTIAL_REVISION','forEach','UniverInstanceType','Rect','_docSyncEditingCollabCursorService','extend','asObservable','_init','SYNCED','event$','roomMembers','FromArray','unload','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_cursor','actions','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_notificationService','executeCommand','_toggleOnline','getActiveRange','6487048RIGfoa','_registerDependencies','919797IBHGKQ','_refRangeService','@univerjs-pro/collaboration','arc','OTHER_CLIENTS_EDITING','setShapeProps','permission.title','add','clearInterval','getUniverSheetInstance','CollaborationSessionService','InsertRowCommandId','roomMembers$','_online','collab-text-range-','RichTextEditingMutation','MOBILE_HAS_BEEN_BOUND','fill','values','_injector','complete','transform','debounce','5727065lnEukf','_colorIndex','registerBeforeClose','_commandService','onPointerLeave$','NodePositionConvertToCursor','SNAPSHOT_HAS_BEEN_REMOVED','IDocClipboardService','DocCollaborationEntity','LOGIN_FAILED','_cursorShapes','CollaborationStatus','UniverCollaborationClientUIPlugin','size','YUUMI_TABLE_NOT_FOUND_IN_UNIT','OffLineIcon','DependentOn','_unitOnClients','prototype','tag','DocSkeletonManagerService','collabStatus.conflict','resize','setInterval','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','clipPath','_toggleOffline','fromEventSubject','dispose$','newValue','purple.300','findNodePositionByCharIndex','shareReplay','IUIPartsService','Disposable','merge','UniverIcon','SUBMIT_CHANGESET_TIMEOUT','WebSocketService','_removeClearOtherTimer','DocSelectionManagerService','getCoordByCell','set','unitID','_eventUnsubscribe','LOCAL_CACHE_INTERVAL_KEY','transformSelections','_transformUndoRedoStack','toDisposable','closePath','url(#$1','syncEditingCollabCursor','Inject','CONFLICT','_labelPosition','permission.content','type','push','data','NOT_FOUND','startRow','_memberService','handleInsertCol','subUnitId','ALREADY_EXISTS','createIdentifier','href','rgba(255,\x20255,\x20255,\x200.01)','focused$','_onRefRangeChange','NOT_COLLAB','_registerRenderDependencies','isActive','evenodd','serializeRangeWithSheet','_scheduleHeartbeat','filter','CollaborationEvent','entityInit$','beginPath','generateRandomId','getParam','_getSheetObject','registerComponent','currentTheme$','IConfigService','enableLocalCache','CONNECTOR_DATA_TOO_LARGE','_syncEditingCollabCursorService','_uiPartsService','_unitStatus','editingUnit','fromEvent','_clearOtherTimers','ONLINE','getCurrentUnitForType','APPLY_PERMISSION_DENIED','hasOwnProperty','getAncestorScale','ILocalStorageService','221474EDQrso','RemoteUniscriptService','DeleteRangeMoveUpCommandId','_collabSessionService','RemoveColCommandId','[CollaborationDataLoaderController]','_getAnchorBounding','searchParams','M0\x200H16V16H0z','handleMoveRange','toStringTag','SetWorksheetActivateCommand','YUUMI_AI_RUN_FAILED','switchMap','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','2160yDDKRl','univer-flex\x20univer-mr-2\x20univer-text-xl','getCollabEntity$','ICommandService','@univerjs/core','green.600','getRenderById','cursorInfo','getUnhiddenWorksheets','unshift','body','debug','registerRefRange','getColorFromTheme','getValue','transformRemoteChangeset','addEventListener','startColumn','_renderManagerService','Vector2','drawWith','backgroundColor','OTHER_CLIENT_EDITING','textRanges','fillRule','getRangePointData','status$','pipe','collabCursorState$','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','UNIVER_SHEET','USER_NOT_INVITED_CODE','DataLoaderService','Unknown\x20user','saveImage','defIds','_localStorageService','popstate','min','collabStatus.offline','transformStateCache','trim','_transformService','_name','INVITE_CODE_ALREADY_BOUND','split','hide','_setupSubUnitSync','UPDATE_CURSOR','_collaborationUIEventService','redoState','_collabCursorState$','parse','white','bottom','SetSelectionsOperation','_backgroundColor','collabStatus.synced','onTransformChange$','ColorKit','APPLY_REVISION_CONFILICT','icon','_scheduleClearOtherTimer','...','SheetsSelectionsService','249360PjOstX','getOwnPropertySymbols','_range','jiqing.500','ILogService','RevisionService','APPLY_DUPLICATED','params','8458398gzlAuv','_urlService','apply','HTTPService','ThemeService','SHEET_VIEWPORT_KEY','delete','addClipboardHook','_univerInstanceService','isTransformMutationFailure','addObject','@univerjs/docs','UNAUTHENTICATED','subunit','rxjs/operators','getTypeOfUnitAdded$','_anchor','useDependency','BehaviorSubject','sessionStatus$','YUUMI_ASYNCIO_CANCELLED','_id','SNAPSHOT_INVALID_SNAPSHOT','black','_updateCollabCursors','_saveTaskMap','history','_scheduleSaving','2293496qwnCzd','_updateURLWithCurrentState','cursorInfo$','_disabled','_transformHistoryAndStateStack','DocIMEInputManagerService','map','unit','IRenderManagerService','_roomMembers$','transformIMECache','RxDisposable','imageSourceType','LICENSE_IMPORT_SIZE_EXCEEDED','_transformPreviousActiveRange','ITransformService','get','_getScale','call','_status$','origin','handleIRemoveCol','setParam','_hovered','LICENSE_MAX_UNITS_EXCEEDED','MUTATION','getVpScrollXYInfoByPosToVp','InsertColCommandId','getMember','0\x200\x2017\x2016','UNIVER_DOC','_shapes','m1Prime','clearTimeout','getLocalCacheKey','displayName','range','runId','storage','substring','MemberService','getStateCache','indexOf','defs','collab-rect-range-','getFocusedUnit','_hover','color','_getSaveTimeout','symbol','SOCKET_FAILED_RETRY','collab-client.tooltip.reconnect','INVITE_CODE_REQUIRED','ILocalCacheService','getMergeData','yellow.400','setStateCache','@univerjs/sheets-ui','registerDependencies','_lastPointer','_revisionService','top','_cursors','IUniverInstanceService','makeDirty'];_0x1a0f=function(){return _0x3fb627;};return _0x1a0f();}const $t=_0x22b98a(0x16d),Ue={},be=a[_0x22b98a(0x209)](_0x22b98a(0x2ed));var xt=Object['getOwnPropertyDescriptor'],jt=(_0x5ab85,_0x3340e,_0xeaad8,_0x13f4a2)=>{const _0x407878=_0x22b98a;for(var _0x430d83=_0x13f4a2>0x1?void 0x0:_0x13f4a2?xt(_0x3340e,_0xeaad8):_0x3340e,_0x419317=_0x5ab85[_0x407878(0x3b1)]-0x1,_0x4cb6e1;_0x419317>=0x0;_0x419317--)(_0x4cb6e1=_0x5ab85[_0x419317])&&(_0x430d83=_0x4cb6e1(_0x430d83)||_0x430d83);return _0x430d83;},H=(_0x4cb67f,_0x835bd)=>(_0x11b367,_0x360ed4)=>_0x835bd(_0x11b367,_0x360ed4,_0x4cb67f);exports[_0x22b98a(0x382)]=class extends a[_0x22b98a(0x2ab)]{constructor(_0x213d51,_0x50c46f,_0x2cdb27,_0x38381,_0x90a7fa){const _0x21ff10=_0x22b98a;super(),this['_urlService']=_0x213d51,this['_logService']=_0x50c46f,this[_0x21ff10(0x1cb)]=_0x2cdb27,this[_0x21ff10(0x336)]=_0x38381,_0x90a7fa?_0x90a7fa==null||_0x90a7fa['whenReady']()[_0x21ff10(0x3ba)](()=>this[_0x21ff10(0x1a1)]()):(this[_0x21ff10(0x341)][_0x21ff10(0x246)](_0x21ff10(0x231),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x21ff10(0x1a1)]());}async[_0x22b98a(0x1a1)](){const _0x5c6a97=_0x22b98a,_0x14b16b=this[_0x5c6a97(0x285)]['getParam'](_0x5c6a97(0x2a7)),_0x594f45=this[_0x5c6a97(0x285)]['getParam']('type'),_0x2fd320=this[_0x5c6a97(0x285)][_0x5c6a97(0x219)]('subunit');if(!_0x14b16b||!_0x594f45){this[_0x5c6a97(0x341)][_0x5c6a97(0x246)](_0x5c6a97(0x231),_0x5c6a97(0x1aa));return;}const _0x79f29=await this[_0x5c6a97(0x336)]['loadUnit'](_0x14b16b,Number(_0x594f45),_0x2fd320);_0x79f29&&_0x79f29 instanceof a[_0x5c6a97(0x2fa)]&&this[_0x5c6a97(0x26a)](_0x79f29);}async[_0x22b98a(0x26a)](_0x2e281a){const _0x1f4275=_0x22b98a;await this[_0x1f4275(0x15a)](_0x2e281a),_0x2e281a[_0x1f4275(0x310)]['pipe'](d[_0x1f4275(0x2fd)](this[_0x1f4275(0x1e4)]))[_0x1f4275(0x32d)](_0x415883=>{const _0x1368a8=_0x1f4275;_0x415883&&this[_0x1368a8(0x2a1)](_0x415883);}),this[_0x1f4275(0x285)]['urlChange$'][_0x1f4275(0x256)](d[_0x1f4275(0x2fd)](this[_0x1f4275(0x1e4)]))[_0x1f4275(0x32d)](()=>this['_updateSubUnitFromURLParams'](_0x2e281a));}[_0x22b98a(0x2a1)](_0x2687bd,_0x2a344f=!0x1){const _0x459603=_0x22b98a,_0xdec7ea=this[_0x459603(0x285)]['getParam'](_0x459603(0x291));_0x2687bd['getSheetId']()!==_0xdec7ea&&this[_0x459603(0x285)][_0x459603(0x2b6)](_0x459603(0x291),_0x2687bd[_0x459603(0x3ab)](),_0x2a344f);}async[_0x22b98a(0x15a)](_0x58a67f){const _0x4b5797=_0x22b98a;var _0x59ca95;const _0x3e8a5c=this['_urlService'][_0x4b5797(0x219)](_0x4b5797(0x291));if(!_0x3e8a5c||!_0x58a67f['getSheetBySheetId'](_0x3e8a5c)){const _0x2c7b20=_0x58a67f[_0x4b5797(0x243)]()[0x0],_0x464c2c=_0x58a67f[_0x4b5797(0x3a7)](_0x2c7b20);if(!_0x464c2c)return;this[_0x4b5797(0x2a1)](_0x464c2c,!0x0),await this[_0x4b5797(0x1cb)]['executeCommand'](g[_0x4b5797(0x237)]['id'],{'unitId':_0x58a67f[_0x4b5797(0x3bc)](),'subUnitId':_0x2c7b20});return;}((_0x59ca95=_0x58a67f[_0x4b5797(0x306)]())==null?void 0x0:_0x59ca95[_0x4b5797(0x3ab)]())!==_0x3e8a5c&&await this[_0x4b5797(0x1cb)][_0x4b5797(0x1ac)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x58a67f[_0x4b5797(0x3bc)](),'subUnitId':_0x3e8a5c});}},exports[_0x22b98a(0x382)]=jt([H(0x0,be),H(0x1,a[_0x22b98a(0x280)]),H(0x2,a[_0x22b98a(0x23e)]),H(0x3,a[_0x22b98a(0x1fc)](u[_0x22b98a(0x25b)])),H(0x4,a['Optional'](Ke[_0x22b98a(0x165)]))],exports[_0x22b98a(0x382)]);var Bt=Object[_0x22b98a(0x199)],kt=(_0x44c333,_0x902345,_0x5425ae,_0x1f2c6b)=>{const _0x1ec7a8=_0x22b98a;for(var _0x27a9e5=_0x1f2c6b>0x1?void 0x0:_0x1f2c6b?Bt(_0x902345,_0x5425ae):_0x902345,_0x21887a=_0x44c333[_0x1ec7a8(0x3b1)]-0x1,_0x212e96;_0x21887a>=0x0;_0x21887a--)(_0x212e96=_0x44c333[_0x21887a])&&(_0x27a9e5=_0x212e96(_0x27a9e5)||_0x27a9e5);return _0x27a9e5;},ce=(_0x590b47,_0x2901d5)=>(_0x55312e,_0x284c9b)=>_0x2901d5(_0x55312e,_0x284c9b,_0x590b47);let z=class{constructor(_0x5e46f0,_0x3026f3,_0x5b79ff){const _0x3cd511=_0x22b98a;this['_injector']=_0x5e46f0,this[_0x3cd511(0x265)]=_0x3026f3,this[_0x3cd511(0x24d)]=_0x5b79ff;}[_0x22b98a(0x2aa)](_0x37651d){const _0x4724ed=_0x22b98a;this['_transformUndoRedoStack'](_0x37651d),this[_0x4724ed(0x2ae)](_0x37651d);}[_0x22b98a(0x24a)](_0x53a93f){const _0x16e0ad=_0x22b98a,{unitID:_0x66930f}=_0x53a93f,_0x41c204=this[_0x16e0ad(0x24d)][_0x16e0ad(0x241)](_0x66930f)[_0x16e0ad(0x3d2)](b[_0x16e0ad(0x2a5)]),{redoCache:_0x14abe5}=_0x41c204[_0x16e0ad(0x39b)]();if(_0x14abe5['length']===0x0)return _0x53a93f;let _0x235b60=a['Tools'][_0x16e0ad(0x3a1)](_0x53a93f[_0x16e0ad(0x177)][0x0]);for(let _0x5a5762=0x0;_0x5a5762<_0x14abe5[_0x16e0ad(0x3b1)];_0x5a5762++){const _0x493218={'id':_0x16e0ad(0x179),'params':{..._0x14abe5[_0x5a5762]}},_0x108fb6=this['_transformService'][_0x16e0ad(0x380)](_0x235b60,_0x493218,!0x1);if(m[_0x16e0ad(0x28d)](_0x108fb6))throw _0x108fb6['error'];_0x235b60=_0x108fb6[_0x16e0ad(0x2c0)];}return{...a[_0x16e0ad(0x31a)][_0x16e0ad(0x3a1)](_0x53a93f),'mutations':[_0x235b60]};}[_0x22b98a(0x1f7)](_0x5d8acd){const _0x2a0fe1=_0x22b98a,{unitID:_0x3cebb9}=_0x5d8acd,_0x501074=this['_renderManagerService'][_0x2a0fe1(0x241)](_0x3cebb9)[_0x2a0fe1(0x3d2)](b[_0x2a0fe1(0x2a5)]),{undoCache:_0x237673,redoCache:_0xc2ad5e}=_0x501074['getUndoRedoMutationParamsCache']();if(_0x237673['length']===0x0||_0xc2ad5e[_0x2a0fe1(0x3b1)]===0x0)return;const _0xd38741=[],_0x5685f1=[];let _0x44bd62=a[_0x2a0fe1(0x31a)]['deepClone'](_0x5d8acd[_0x2a0fe1(0x177)][0x0]),_0x248517=a[_0x2a0fe1(0x31a)]['deepClone'](_0x5d8acd[_0x2a0fe1(0x177)][0x0]);for(let _0x2760cc=_0x237673['length']-0x1;_0x2760cc>=0x0;_0x2760cc--){const _0x50bcc4={'id':_0x2a0fe1(0x179),'params':{..._0x237673[_0x2760cc]}},_0x4312ef={'id':_0x2a0fe1(0x179),'params':{..._0xc2ad5e[_0x2760cc]}},_0x35b027=this['_transformService'][_0x2a0fe1(0x380)](_0x44bd62,_0x50bcc4,!0x1),_0x4a7bbf=this[_0x2a0fe1(0x265)][_0x2a0fe1(0x380)](_0x248517,_0x4312ef,!0x1);if(m['isTransformMutationFailure'](_0x35b027))throw _0x35b027['error'];if(m[_0x2a0fe1(0x28d)](_0x4a7bbf))throw _0x4a7bbf[_0x2a0fe1(0x3d3)];_0xd38741[_0x2a0fe1(0x244)](_0x35b027['m2Prime'][_0x2a0fe1(0x283)]),_0x5685f1[_0x2a0fe1(0x244)](_0x4a7bbf[_0x2a0fe1(0x2e1)]['params']),_0x44bd62=_0x35b027['m1Prime'],_0x248517=_0x4a7bbf[_0x2a0fe1(0x2c0)];}_0x501074['setUndoRedoMutationParamsCache']({'undoCache':_0xd38741,'redoCache':_0x5685f1});}[_0x22b98a(0x2ae)](_0x2b6ecb){const _0x1cb7ab=_0x22b98a,{unitID:_0x4b6746}=_0x2b6ecb,_0x101d62=this[_0x1cb7ab(0x24d)][_0x1cb7ab(0x241)](_0x4b6746)[_0x1cb7ab(0x3d2)](b[_0x1cb7ab(0x2a5)]),_0x4d88dd=_0x101d62[_0x1cb7ab(0x1ae)]();if(_0x4d88dd==null)return;const _0x4ce5a9=[{'id':_0x1cb7ab(0x179),'params':{'unitId':_0x2b6ecb[_0x1cb7ab(0x1f3)],'actions':null,'textRanges':[_0x4d88dd]}}],_0x4db915=this[_0x1cb7ab(0x265)][_0x1cb7ab(0x3c8)](_0x2b6ecb,_0x4ce5a9);if(!m[_0x1cb7ab(0x366)](_0x4db915))throw _0x4db915[_0x1cb7ab(0x3d3)];const _0x10fb1b=_0x4db915[_0x1cb7ab(0x2e1)][0x0][_0x1cb7ab(0x283)][_0x1cb7ab(0x252)];Array[_0x1cb7ab(0x33f)](_0x10fb1b)&&_0x10fb1b['length']&&_0x101d62[_0x1cb7ab(0x17e)](_0x10fb1b[0x0]);}};z=kt([ce(0x0,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x3d1)])),ce(0x1,m[_0x22b98a(0x2af)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object[_0x22b98a(0x199)],Ft=(_0x288a66,_0x2f8324,_0x1798f3,_0x37b059)=>{for(var _0xc49f76=_0x37b059>0x1?void 0x0:_0x37b059?Ht(_0x2f8324,_0x1798f3):_0x2f8324,_0x45a70b=_0x288a66['length']-0x1,_0x3d7fdc;_0x45a70b>=0x0;_0x45a70b--)(_0x3d7fdc=_0x288a66[_0x45a70b])&&(_0xc49f76=_0x3d7fdc(_0xc49f76)||_0xc49f76);return _0xc49f76;},le=(_0x57570b,_0x50b6e6)=>(_0x1d375c,_0x10757a)=>_0x50b6e6(_0x1d375c,_0x10757a,_0x57570b);let J=class{constructor(_0x2b2aa1,_0xe73a28,_0x3bf5cb){const _0x592345=_0x22b98a;this['_injector']=_0x2b2aa1,this['_transformService']=_0xe73a28,this[_0x592345(0x381)]=_0x3bf5cb;}[_0x22b98a(0x263)](_0x194002){const _0x45b322=_0x22b98a;this[_0x45b322(0x2a4)](_0x194002);}[_0x22b98a(0x24a)](_0xebad5){const _0x4540dc=_0x22b98a,{unitID:_0x39959f}=_0xebad5,{collaboration:_0x49c298}=this[_0x4540dc(0x381)][_0x4540dc(0x2c9)](_0x39959f);if(_0x49c298[_0x4540dc(0x3b1)]===0x0)return _0xebad5;let _0x4790ec=a['Tools'][_0x4540dc(0x3a1)](_0xebad5[_0x4540dc(0x177)][0x0]);for(let _0x14e68e=0x0;_0x14e68e<_0x49c298['length'];_0x14e68e++){const _0x13ab19={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x49c298[_0x14e68e][_0x4540dc(0x392)],..._0x49c298[_0x14e68e]['redoState']}},_0x2a7cd3=this[_0x4540dc(0x265)][_0x4540dc(0x380)](_0x4790ec,_0x13ab19,!0x1);if(m['isTransformMutationFailure'](_0x2a7cd3))throw _0x2a7cd3[_0x4540dc(0x3d3)];_0x4790ec=_0x2a7cd3[_0x4540dc(0x2c0)];}return{...a['Tools']['deepClone'](_0xebad5),'mutations':[_0x4790ec]};}['_transformHistoryAndStateStack'](_0xc7b136){const _0x1cb457=_0x22b98a,{unitID:_0x2f74c2}=_0xc7b136,{history:_0x2f5b4e,collaboration:_0x11eb99}=this[_0x1cb457(0x381)]['getStateCache'](_0x2f74c2);if(_0x2f5b4e['length']===0x0&&_0x11eb99['length']===0x0)return;const _0x464fc0=[],_0x1fda51=[];let _0x316ce9=a[_0x1cb457(0x31a)][_0x1cb457(0x3a1)](_0xc7b136[_0x1cb457(0x177)][0x0]),_0x393f29=a[_0x1cb457(0x31a)][_0x1cb457(0x3a1)](_0xc7b136[_0x1cb457(0x177)][0x0]);for(let _0x180c6e=_0x2f5b4e[_0x1cb457(0x3b1)]-0x1;_0x180c6e>=0x0;_0x180c6e--){const _0x48e8f2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f5b4e[_0x180c6e][_0x1cb457(0x392)],..._0x2f5b4e[_0x180c6e][_0x1cb457(0x3c3)]}},_0x452fe5={'id':_0x1cb457(0x179),'params':{'unitId':_0x2f5b4e[_0x180c6e][_0x1cb457(0x392)],..._0x2f5b4e[_0x180c6e][_0x1cb457(0x26d)]}},_0x4d4abe=this['_transformService'][_0x1cb457(0x380)](_0x316ce9,_0x48e8f2,!0x1),_0x140165=this[_0x1cb457(0x265)][_0x1cb457(0x380)](_0x393f29,_0x452fe5,!0x1);if(m[_0x1cb457(0x28d)](_0x4d4abe))throw _0x4d4abe[_0x1cb457(0x3d3)];if(m[_0x1cb457(0x28d)](_0x140165))throw _0x140165['error'];_0x464fc0[_0x1cb457(0x244)]({..._0x2f5b4e[_0x180c6e],'undoState':_0x4d4abe[_0x1cb457(0x2e1)][_0x1cb457(0x283)],'redoState':_0x140165[_0x1cb457(0x2e1)][_0x1cb457(0x283)]}),_0x316ce9=_0x4d4abe['m1Prime'],_0x393f29=_0x140165[_0x1cb457(0x2c0)];}_0x316ce9=a[_0x1cb457(0x31a)][_0x1cb457(0x3a1)](_0xc7b136[_0x1cb457(0x177)][0x0]),_0x393f29=a['Tools'][_0x1cb457(0x3a1)](_0xc7b136[_0x1cb457(0x177)][0x0]);for(let _0x5b807a=_0x11eb99[_0x1cb457(0x3b1)]-0x1;_0x5b807a>=0x0;_0x5b807a--){const _0xbb4e58={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x11eb99[_0x5b807a][_0x1cb457(0x392)],..._0x11eb99[_0x5b807a][_0x1cb457(0x3c3)]}},_0x1c7671={'id':_0x1cb457(0x179),'params':{'unitId':_0x11eb99[_0x5b807a][_0x1cb457(0x392)],..._0x11eb99[_0x5b807a][_0x1cb457(0x26d)]}},_0x1b4f36=this[_0x1cb457(0x265)][_0x1cb457(0x380)](_0x316ce9,_0xbb4e58,!0x1),_0x2c4bd3=this[_0x1cb457(0x265)][_0x1cb457(0x380)](_0x393f29,_0x1c7671,!0x1);if(m[_0x1cb457(0x28d)](_0x1b4f36))throw _0x1b4f36[_0x1cb457(0x3d3)];if(m[_0x1cb457(0x28d)](_0x2c4bd3))throw _0x2c4bd3[_0x1cb457(0x3d3)];_0x1fda51[_0x1cb457(0x244)]({..._0x11eb99[_0x5b807a],'undoState':_0x1b4f36[_0x1cb457(0x2e1)][_0x1cb457(0x283)],'redoState':_0x2c4bd3[_0x1cb457(0x2e1)][_0x1cb457(0x283)]}),_0x316ce9=_0x1b4f36[_0x1cb457(0x2c0)],_0x393f29=_0x2c4bd3[_0x1cb457(0x2c0)];}this[_0x1cb457(0x381)][_0x1cb457(0x2d8)](_0x2f74c2,{'history':_0x464fc0,'collaboration':_0x1fda51});}};J=Ft([le(0x0,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x3d1)])),le(0x1,m[_0x22b98a(0x2af)]),le(0x2,a[_0x22b98a(0x1fc)](b['DocStateChangeManagerService']))],J);var Yt=Object[_0x22b98a(0x199)],Wt=(_0x1bb2d4,_0xb52f8f,_0x12e711,_0x54a645)=>{const _0x1091fb=_0x22b98a;for(var _0x291c49=_0x54a645>0x1?void 0x0:_0x54a645?Yt(_0xb52f8f,_0x12e711):_0xb52f8f,_0x2f05c1=_0x1bb2d4[_0x1091fb(0x3b1)]-0x1,_0x3f9c26;_0x2f05c1>=0x0;_0x2f05c1--)(_0x3f9c26=_0x1bb2d4[_0x2f05c1])&&(_0x291c49=_0x3f9c26(_0x291c49)||_0x291c49);return _0x291c49;},Ne=(_0x14958c,_0x403745)=>(_0x1262fb,_0x3ac480)=>_0x403745(_0x1262fb,_0x3ac480,_0x14958c);let Z=class{constructor(_0x57e433,_0x409f7d){const _0x5f4854=_0x22b98a;this[_0x5f4854(0x1c4)]=_0x57e433,this[_0x5f4854(0x265)]=_0x409f7d;}[_0x22b98a(0x1f6)](_0x461d6e){const _0xa0b780=_0x22b98a;var _0x157e38;const _0x2a4f2b=this[_0xa0b780(0x1c4)][_0xa0b780(0x2b0)](Y[_0xa0b780(0x1f0)]),_0x54b0e2=(_0x157e38=_0x2a4f2b[_0xa0b780(0x164)]())!=null?_0x157e38:[];if(_0x54b0e2[_0xa0b780(0x3b1)]===0x0)return;const _0x38fe87=_0x461d6e[_0xa0b780(0x1f3)],_0x3a85e3=[{'id':_0xa0b780(0x179),'params':{'unitId':_0x38fe87,'actions':null,'textRanges':_0x54b0e2}}],_0x449531=this['_transformService'][_0xa0b780(0x3c8)](_0x461d6e,_0x3a85e3);if(!m[_0xa0b780(0x366)](_0x449531))throw _0x449531[_0xa0b780(0x3d3)];const _0x494baa=_0x449531['m2Prime'][0x0][_0xa0b780(0x283)][_0xa0b780(0x252)];Array[_0xa0b780(0x33f)](_0x494baa)&&_0x494baa['length']&&_0x2a4f2b['replaceDocRanges'](_0x494baa,{'unitId':_0x38fe87,'subUnitId':_0x38fe87},!0x1);}};Z=Wt([Ne(0x0,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x3d1)])),Ne(0x1,m[_0x22b98a(0x2af)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x24c5dc,_0x2173d1,_0x72295e,_0x3a2a1d)=>{const _0x519a42=_0x22b98a;for(var _0x4c6b2e=_0x3a2a1d>0x1?void 0x0:_0x3a2a1d?Vt(_0x2173d1,_0x72295e):_0x2173d1,_0x43b9fc=_0x24c5dc[_0x519a42(0x3b1)]-0x1,_0x17a3ef;_0x43b9fc>=0x0;_0x43b9fc--)(_0x17a3ef=_0x24c5dc[_0x43b9fc])&&(_0x4c6b2e=_0x17a3ef(_0x4c6b2e)||_0x4c6b2e);return _0x4c6b2e;},N=(_0x68f0f3,_0x594f9f)=>(_0x39c36e,_0x3dbf4b)=>_0x594f9f(_0x39c36e,_0x3dbf4b,_0x68f0f3);let Q=class extends a[_0x22b98a(0x1ea)]{constructor(_0x86e1e7,_0x46ad63,_0x345a6b,_0x36f745,_0x4a25bc,_0xe8e608,_0x51b1c5,_0x5db346){const _0x3a7aec=_0x22b98a;super(),h(this,_0x3a7aec(0x2b3),new d[(_0x3a7aec(0x296))](u[_0x3a7aec(0x1d3)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x86e1e7,this['_collaborationController']=_0x46ad63,this[_0x3a7aec(0x15b)]=_0x345a6b,this[_0x3a7aec(0x35c)]=_0x36f745,this[_0x3a7aec(0x17b)]=_0x4a25bc,this[_0x3a7aec(0x19e)]=_0xe8e608,this['_messageService']=_0x51b1c5,this[_0x3a7aec(0x158)]=_0x5db346,this[_0x3a7aec(0x3a2)]());}[_0x22b98a(0x3a2)](){const _0x2189b3=_0x22b98a;this[_0x2189b3(0x3bd)](this['_collaborationController'][_0x2189b3(0x216)]['subscribe'](_0x14b058=>{const _0x466dfd=_0x2189b3,_0x286c93=this['_docStateChangeManagerService'][_0x466dfd(0x368)][_0x466dfd(0x32d)](_0x204b52=>{const _0x1c1170=_0x466dfd;if(_0x204b52==null)return;const {unitId:_0x47e79b,redoState:_0xb5b71a,commandId:_0x4adb38}=_0x204b52;if(_0x47e79b!==_0x14b058[_0x1c1170(0x1f3)])return;const _0x178fe6={'id':_0x4adb38,'type':a[_0x1c1170(0x170)][_0x1c1170(0x2b9)],'params':{'unitId':_0x47e79b,'actions':_0xb5b71a[_0x1c1170(0x1a9)],'textRanges':null}};_0x14b058[_0x1c1170(0x37c)](_0x178fe6);});if(_0x14b058[_0x466dfd(0x3bd)](_0x286c93),_0x14b058 instanceof u[_0x466dfd(0x1d0)]){const _0x514d65={'onTransformIME':_0x164438=>this['_docTransformIMECacheService']['transformIMECache'](_0x164438),'onTransformState':_0xa95720=>this[_0x466dfd(0x35c)][_0x466dfd(0x263)](_0xa95720),'onTransformSelections':_0x24dd27=>this[_0x466dfd(0x17b)][_0x466dfd(0x1f6)](_0x24dd27),'onSyncEditingCollabCursor':_0x52a0b1=>this[_0x466dfd(0x19e)][_0x466dfd(0x1fb)](_0x52a0b1),'onTransformRemoteChangesetByIMECache':_0x3ac1d4=>this['_docTransformIMECacheService'][_0x466dfd(0x24a)](_0x3ac1d4),'onTransformRemoteChangesetByStateCache':_0x45b54d=>this['_docTransformStateCacheService'][_0x466dfd(0x24a)](_0x45b54d)};_0x14b058[_0x466dfd(0x303)](_0x514d65);}}));}};Q=Xt([N(0x0,a[_0x22b98a(0x1fc)](b['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0x22b98a(0x315)])),N(0x2,a[_0x22b98a(0x1fc)](z)),N(0x3,a[_0x22b98a(0x1fc)](J)),N(0x4,a[_0x22b98a(0x1fc)](Z)),N(0x5,a[_0x22b98a(0x1fc)](Ce)),N(0x6,T[_0x22b98a(0x2f2)]),N(0x7,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x367)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x14b32c,_0x512be3,_0x30acdb,_0x461c34)=>{for(var _0x4c3800=_0x461c34>0x1?void 0x0:_0x461c34?Gt(_0x512be3,_0x30acdb):_0x512be3,_0x4deb94=_0x14b32c['length']-0x1,_0x3bfe35;_0x4deb94>=0x0;_0x4deb94--)(_0x3bfe35=_0x14b32c[_0x4deb94])&&(_0x4c3800=_0x3bfe35(_0x4c3800)||_0x4c3800);return _0x4c3800;},_e=(_0x1ba5a0,_0x5f428f)=>(_0x14caee,_0x2d24ae)=>_0x5f428f(_0x14caee,_0x2d24ae,_0x1ba5a0);let ge=class extends a[_0x22b98a(0x1ea)]{constructor(_0x5996a3,_0x2ff2ba,_0x18de4d){const _0x113aec=_0x22b98a;super(),h(this,'_cachedData',new Map()),h(this,_0x113aec(0x29d),new Map()),h(this,_0x113aec(0x2a3),!0x1),(this['_configService']=_0x5996a3,this[_0x113aec(0x25f)]=_0x2ff2ba,this['_revisionService']=_0x18de4d);}[_0x22b98a(0x166)](){const _0x5f0345=_0x22b98a;this[_0x5f0345(0x2a3)]=!0x0;}[_0x22b98a(0x21e)](){this['_disabled']=!0x1;}get[_0x22b98a(0x163)](){const _0x8a8b16=_0x22b98a;return this[_0x8a8b16(0x29d)];}[_0x22b98a(0x14a)](){const _0x47b6f9=_0x22b98a;this[_0x47b6f9(0x328)]()[_0x47b6f9(0x3ba)](()=>super[_0x47b6f9(0x14a)]());}async[_0x22b98a(0x352)](_0x5792ab){const _0x52e60f=_0x22b98a;return this[_0x52e60f(0x2a3)]?null:this[_0x52e60f(0x25f)]['getItem'](u[_0x52e60f(0x2c2)](_0x5792ab));}async[_0x22b98a(0x387)](_0x354b65,_0x3cc931){const _0x55a2ba=_0x22b98a;return!!this['_localStorageService'][_0x55a2ba(0x34d)](_0x354b65,_0x3cc931);}[_0x22b98a(0x2ee)](_0x44d5b4,_0x5af1b0,_0x131b5d,_0x4b47d7){const _0x1ac1ee=_0x22b98a,_0x2c1fdd=this[_0x1ac1ee(0x2dc)][_0x1ac1ee(0x3b2)](_0x44d5b4);this[_0x1ac1ee(0x359)][_0x1ac1ee(0x1f2)](_0x44d5b4,{'unitID':_0x44d5b4,'type':_0x5af1b0,'awaitingChangeset':_0x131b5d,'mutations':_0x4b47d7,'rev':_0x2c1fdd}),this[_0x1ac1ee(0x29d)][_0x1ac1ee(0x32b)](_0x44d5b4)||this[_0x1ac1ee(0x29f)](_0x44d5b4);}[_0x22b98a(0x29f)](_0x3e9dc5){const _0x2a61ff=_0x22b98a,_0x2afad1=this[_0x2a61ff(0x2d0)]();_0x2afad1===0x0?this[_0x2a61ff(0x320)](_0x3e9dc5):this[_0x2a61ff(0x29d)][_0x2a61ff(0x1f2)](_0x3e9dc5,setTimeout(()=>this[_0x2a61ff(0x320)](_0x3e9dc5),_0x2afad1));}['_getSaveTimeout'](){const _0x1b4aaa=_0x22b98a;var _0x51e009;return(_0x51e009=this[_0x1b4aaa(0x353)][_0x1b4aaa(0x393)](u[_0x1b4aaa(0x1f5)]))!=null?_0x51e009:u[_0x1b4aaa(0x372)];}[_0x22b98a(0x320)](_0x1cbfc8){const _0x33c0d7=_0x22b98a,_0x44cc5b=this[_0x33c0d7(0x29d)]['get'](_0x1cbfc8);return _0x44cc5b!==void 0x0&&window[_0x33c0d7(0x2c1)](_0x44cc5b),this[_0x33c0d7(0x25f)][_0x33c0d7(0x34d)](u[_0x33c0d7(0x2c2)](_0x1cbfc8),this[_0x33c0d7(0x359)][_0x33c0d7(0x2b0)](_0x1cbfc8))[_0x33c0d7(0x3ba)](()=>this[_0x33c0d7(0x29d)][_0x33c0d7(0x28a)](_0x1cbfc8));}async[_0x22b98a(0x328)](){const _0x6a7930=_0x22b98a,_0x317fd2=[];this[_0x6a7930(0x29d)][_0x6a7930(0x19b)]((_0x149c41,_0x3699b5)=>{const _0x13a535=_0x6a7930;window['clearTimeout'](_0x149c41),_0x317fd2['push'](this[_0x13a535(0x320)](_0x3699b5)[_0x13a535(0x3ba)](()=>{const _0x34e48a=_0x13a535;this['_saveTaskMap'][_0x34e48a(0x28a)](_0x3699b5);}));}),await Promise[_0x6a7930(0x161)](_0x317fd2);}};ge=Kt([_e(0x0,a[_0x22b98a(0x21d)]),_e(0x1,a[_0x22b98a(0x22b)]),_e(0x2,a['Inject'](m[_0x22b98a(0x281)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x5ff714=_0x22b98a;super(),h(this,'urlChange$'),this[_0x5ff714(0x325)]=d[_0x5ff714(0x224)](window,_0x5ff714(0x260))['pipe'](d[_0x5ff714(0x2fd)](this[_0x5ff714(0x1e4)]),d[_0x5ff714(0x1e8)](0x1),d['mapTo'](void 0x0));}[_0x22b98a(0x2b6)](_0x123fd6,_0x5f41d2,_0x216a45=!0x1){const _0x5b5c41=_0x22b98a,_0x5679a7=new URL(window['location'][_0x5b5c41(0x20a)]);_0x5679a7[_0x5b5c41(0x233)][_0x5b5c41(0x1f2)](_0x123fd6,_0x5f41d2),_0x216a45?window[_0x5b5c41(0x29e)]['replaceState']('','',_0x5679a7[_0x5b5c41(0x30c)]()):window['history'][_0x5b5c41(0x18b)]('','',_0x5679a7['toString']());}[_0x22b98a(0x338)](_0x34f722,_0x495d64=!0x1){const _0xeb54c0=_0x22b98a,_0x40adba=new URL(window[_0xeb54c0(0x3ac)]['href']);_0x40adba[_0xeb54c0(0x233)][_0xeb54c0(0x28a)](_0x34f722),_0x495d64?window[_0xeb54c0(0x29e)][_0xeb54c0(0x3cf)]('','',_0x40adba[_0xeb54c0(0x30c)]()):window['history'][_0xeb54c0(0x18b)]('','',_0x40adba['toString']());}[_0x22b98a(0x219)](_0x14853b){const _0x4bd0ff=_0x22b98a;var _0xf16b3b;return(_0xf16b3b=new URL(window[_0x4bd0ff(0x3ac)][_0x4bd0ff(0x20a)])[_0x4bd0ff(0x233)][_0x4bd0ff(0x2b0)](_0x14853b))!=null?_0xf16b3b:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x22b98a(0x199)],Jt=(_0x4fcbd8,_0x1e7e64,_0x59bcb9)=>_0x1e7e64 in _0x4fcbd8?qt(_0x4fcbd8,_0x1e7e64,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59bcb9}):_0x4fcbd8[_0x1e7e64]=_0x59bcb9,Zt=(_0x21e747,_0x1dc49a,_0x1f0ec6,_0x597446)=>{for(var _0x2ce50f=_0x597446>0x1?void 0x0:_0x597446?zt(_0x1dc49a,_0x1f0ec6):_0x1dc49a,_0x15fc24=_0x21e747['length']-0x1,_0x122cda;_0x15fc24>=0x0;_0x15fc24--)(_0x122cda=_0x21e747[_0x15fc24])&&(_0x2ce50f=_0x122cda(_0x2ce50f)||_0x2ce50f);return _0x2ce50f;},he=(_0x1d4c38,_0x313df7)=>(_0x56f00e,_0x3d5907)=>_0x313df7(_0x56f00e,_0x3d5907,_0x1d4c38),Qt=(_0x147057,_0x35d0ef,_0x2683e2)=>Jt(_0x147057,_0x35d0ef+'',_0x2683e2);const es=_0x22b98a(0x23a);exports[_0x22b98a(0x1d4)]=class extends a['Plugin']{constructor(_0x1ac5c9=Ue,_0x1df9e9,_0x2525a0,_0x37935d){const _0x591ca1=_0x22b98a;super(),this[_0x591ca1(0x36b)]=_0x1ac5c9,this[_0x591ca1(0x24d)]=_0x1df9e9,this['_injector']=_0x2525a0,this[_0x591ca1(0x353)]=_0x37935d;const {..._0xbf4a07}=a[_0x591ca1(0x1eb)]({},Ue,this[_0x591ca1(0x36b)]);this['_configService']['setConfig']($t,_0xbf4a07);}[_0x22b98a(0x183)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x22b98a(0x375)](){const _0xf92fa7=_0x22b98a;this[_0xf92fa7(0x20f)]();}[_0x22b98a(0x1b0)](){const _0x53a474=_0x22b98a;var _0x1e1de1;const _0xfdc107=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x53a474(0x1ee)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x53a474(0x355)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x53a474(0x2da)](this[_0x53a474(0x1c4)],a['mergeOverrideWithDependencies'](_0xfdc107,(_0x1e1de1=this['_config'])==null?void 0x0:_0x1e1de1[_0x53a474(0x36f)]));}[_0x22b98a(0x20f)](){const _0x2186c0=_0x22b98a;this[_0x2186c0(0x3bd)](this[_0x2186c0(0x24d)][_0x2186c0(0x193)](a[_0x2186c0(0x19c)][_0x2186c0(0x2be)],[Ie])),this[_0x2186c0(0x3bd)](this[_0x2186c0(0x24d)][_0x2186c0(0x193)](a['UniverInstanceType'][_0x2186c0(0x259)],[ve]));}['_initDependencies'](){const _0x5e7dd5=_0x22b98a;a['touchDependencies'](this[_0x5e7dd5(0x1c4)],[[x],[exports[_0x5e7dd5(0x355)]],[Q],[q],[exports[_0x5e7dd5(0x382)]]]);}},Qt(exports[_0x22b98a(0x1d4)],'pluginName',es),exports[_0x22b98a(0x1d4)]=Zt([a[_0x22b98a(0x1d8)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x22b98a(0x2a8)]),he(0x2,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x3d1)])),he(0x3,a[_0x22b98a(0x21d)])],exports[_0x22b98a(0x1d4)]);var ts=Object[_0x22b98a(0x199)],ss=(_0xed0d3d,_0x5273e6,_0x2783e7,_0x105879)=>{const _0x46a438=_0x22b98a;for(var _0x3c5af0=_0x105879>0x1?void 0x0:_0x105879?ts(_0x5273e6,_0x2783e7):_0x5273e6,_0x2b9344=_0xed0d3d[_0x46a438(0x3b1)]-0x1,_0x32ce35;_0x2b9344>=0x0;_0x2b9344--)(_0x32ce35=_0xed0d3d[_0x2b9344])&&(_0x3c5af0=_0x32ce35(_0x3c5af0)||_0x3c5af0);return _0x3c5af0;},F=(_0x5a660b,_0x2f927e)=>(_0x353f2c,_0x4ec5d9)=>_0x2f927e(_0x353f2c,_0x4ec5d9,_0x5a660b);exports[_0x22b98a(0x16b)]=class extends u[_0x22b98a(0x191)]{constructor(_0x26c924,_0x3437a3,_0x38ff21,_0x50ee81,_0xf0bb5e){super(_0x26c924,_0x3437a3,_0x38ff21,_0x50ee81,_0xf0bb5e);}async[_0x22b98a(0x38e)](_0x21db65){const _0x5199e0=_0x22b98a,_0x5c45f7=await this['_getSessionTicket'](),_0x4d3b1f=this[_0x5199e0(0x187)](_0x21db65,_0x5c45f7);return this[_0x5199e0(0x160)](_0x4d3b1f);}[_0x22b98a(0x187)](_0x3c93e2,_0x1bb791){const _0x4374c7=_0x22b98a,_0x1ac9d5=typeof window>'u'?new URL(_0x3c93e2):new URL(_0x3c93e2,window[_0x4374c7(0x3ac)][_0x4374c7(0x2b4)]);_0x1ac9d5[_0x4374c7(0x233)][_0x4374c7(0x1f2)](_0x4374c7(0x156),_0x1bb791);const _0x3cfa1f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x3cfa1f[_0x4374c7(0x2b0)]('runId')&&_0x1ac9d5[_0x4374c7(0x233)][_0x4374c7(0x1f2)]('runId',_0x3cfa1f[_0x4374c7(0x2b0)](_0x4374c7(0x2c5))),_0x1ac9d5['toString']();}async[_0x22b98a(0x33e)](){const _0x3d3cd1=_0x22b98a;var _0x15c702,_0x43e244,_0x4fa486;const _0x19772c=this[_0x3d3cd1(0x353)][_0x3d3cd1(0x393)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1ca71e=(_0x15c702=_0x19772c==null?void 0x0:_0x19772c[_0x3d3cd1(0x14c)])!=null?_0x15c702:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x4fa486=(_0x43e244=(await this[_0x3d3cd1(0x356)][_0x3d3cd1(0x2b0)](_0x1ca71e,{'headers':{'Content-Type':_0x3d3cd1(0x3c1)}}))[_0x3d3cd1(0x245)])==null?void 0x0:_0x43e244['ticket'])!=null?_0x4fa486:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a[_0x22b98a(0x1fc)](a[_0x22b98a(0x3d1)])),F(0x1,a[_0x22b98a(0x1fc)](G[_0x22b98a(0x287)])),F(0x2,a[_0x22b98a(0x21d)]),F(0x3,a[_0x22b98a(0x280)]),F(0x4,m[_0x22b98a(0x2fe)])],exports[_0x22b98a(0x16b)]);const Me=0x7530,Le=_0x22b98a(0x30e);class is extends a['Disposable']{constructor(){const _0x43a311=_0x22b98a;super(),h(this,_0x43a311(0x299),a[_0x43a311(0x218)]()),h(this,_0x43a311(0x370),new Set()),h(this,_0x43a311(0x1d9),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x43a311(0x225),new Map()),h(this,_0x43a311(0x222),new Map()),this['_init']();}['dispose'](){const _0x1d4c98=_0x22b98a;super['dispose'](),this['_clearOtherTimers'][_0x1d4c98(0x19b)]((_0x2b91f8,_0x833b5a)=>this[_0x1d4c98(0x1ef)](_0x833b5a)),this[_0x1d4c98(0x198)]&&window[_0x1d4c98(0x1b9)](this[_0x1d4c98(0x198)]);}[_0x22b98a(0x319)](_0x444f5d){const _0x421978=_0x22b98a;return this[_0x421978(0x30b)](_0x444f5d)[_0x421978(0x256)](d['distinctUntilChanged']());}[_0x22b98a(0x223)](_0x3aa69d){const _0x100feb=_0x22b98a;this[_0x100feb(0x370)]['size']===0x0&&this[_0x100feb(0x213)](),this[_0x100feb(0x370)][_0x100feb(0x1b8)](_0x3aa69d),this[_0x100feb(0x14d)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3aa69d],'isForwarded':!0x1});}[_0x22b98a(0x347)](_0x577062){const _0x5ec3de=_0x22b98a;this['_selfUnitIDs'][_0x5ec3de(0x28a)](_0x577062),this[_0x5ec3de(0x370)][_0x5ec3de(0x1d5)]===0x0&&this['_heartbeatTimer']&&window[_0x5ec3de(0x1b9)](this['_heartbeatTimer']);}[_0x22b98a(0x1a1)](){const _0x4a6fd8=_0x22b98a;this[_0x4a6fd8(0x3bd)](a[_0x4a6fd8(0x1f8)](d[_0x4a6fd8(0x224)](window,_0x4a6fd8(0x2c6))[_0x4a6fd8(0x32d)](_0x40c3e5=>{const _0xce4d17=_0x4a6fd8;if(_0x40c3e5['key']!==Le||!_0x40c3e5[_0xce4d17(0x1e5)])return;const _0x2e0b95=JSON[_0xce4d17(0x26f)](_0x40c3e5[_0xce4d17(0x1e5)]);this[_0xce4d17(0x34c)](_0x2e0b95);}))),window[_0x4a6fd8(0x24b)](_0x4a6fd8(0x1a6),()=>this[_0x4a6fd8(0x14d)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4a6fd8(0x394)](this[_0x4a6fd8(0x370)])}));}[_0x22b98a(0x34c)](_0x18b5a0){const _0x2077ce=_0x22b98a;switch(_0x18b5a0[_0x2077ce(0x200)]){case 0x0:this['_handleJoinEvent'](_0x18b5a0);break;case 0x1:this[_0x2077ce(0x339)](_0x18b5a0);break;case 0x2:this[_0x2077ce(0x35e)](_0x18b5a0);break;}}['_handleJoinEvent'](_0x5114bb){const _0x2ef847=_0x22b98a,{unitIDs:_0x3ef13c,memberID:_0x301af5,isForwarded:_0x27ace3}=_0x5114bb;_0x3ef13c[_0x2ef847(0x19b)](_0x2d5e95=>{const _0x4e0e26=_0x2ef847;if(!_0x27ace3&&this[_0x4e0e26(0x1d9)][_0x4e0e26(0x32b)](_0x2d5e95)&&this[_0x4e0e26(0x30b)](_0x2d5e95)[_0x4e0e26(0x3c9)](u[_0x4e0e26(0x2ea)][_0x4e0e26(0x1b5)]),!this['_unitOnClients'][_0x4e0e26(0x32b)](_0x2d5e95)||!this[_0x4e0e26(0x1d9)][_0x4e0e26(0x2b0)](_0x2d5e95)[_0x4e0e26(0x32b)](_0x301af5)){const _0x17c707=this['_unitOnClients']['get'](_0x2d5e95)||new Set();_0x17c707[_0x4e0e26(0x1b8)](_0x301af5),this[_0x4e0e26(0x1d9)][_0x4e0e26(0x1f2)](_0x2d5e95,_0x17c707),this[_0x4e0e26(0x279)](_0x301af5);}}),_0x27ace3||this['_send']({'type':0x0,'memberID':this[_0x2ef847(0x299)],'unitIDs':[...this[_0x2ef847(0x370)]],'isForwarded':!0x0});}[_0x22b98a(0x279)](_0x3c63d9){const _0x1232f5=_0x22b98a;this[_0x1232f5(0x1ef)](_0x3c63d9);const _0x500df0=window[_0x1232f5(0x3a9)](()=>{const _0x53ad77=_0x1232f5;this['_unitOnClients'][_0x53ad77(0x19b)](_0x22e73e=>{const _0x1c48db=_0x53ad77;_0x22e73e[_0x1c48db(0x28a)](_0x3c63d9);});},Me*0x2);this['_clearOtherTimers'][_0x1232f5(0x1f2)](_0x3c63d9,_0x500df0);}[_0x22b98a(0x1ef)](_0x2e84da){const _0x1040f9=_0x22b98a;if(this[_0x1040f9(0x225)][_0x1040f9(0x32b)](_0x2e84da)){const _0x3c8fc4=this['_clearOtherTimers'][_0x1040f9(0x2b0)](_0x2e84da);_0x3c8fc4&&window[_0x1040f9(0x2c1)](_0x3c8fc4),this['_clearOtherTimers'][_0x1040f9(0x1f2)](_0x2e84da,null);}}[_0x22b98a(0x339)](_0x4ac35f){const _0x5530cc=_0x22b98a,{memberID:_0x50f657,unitIDs:_0x3dc916}=_0x4ac35f;_0x3dc916['forEach'](_0x576ee4=>{const _0x2896d8=_0x202d;var _0x526a0b;const _0x563f58=this[_0x2896d8(0x1d9)][_0x2896d8(0x2b0)](_0x576ee4);_0x563f58&&(_0x563f58[_0x2896d8(0x28a)](_0x50f657),(_0x526a0b=this[_0x2896d8(0x30b)](_0x576ee4))==null||_0x526a0b[_0x2896d8(0x3c9)](_0x563f58[_0x2896d8(0x1d5)]===0x0?u[_0x2896d8(0x2ea)]['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x5530cc(0x1ef)](_0x50f657);}[_0x22b98a(0x35e)](_0x18e4a3){const _0x3f2e14=_0x22b98a;this[_0x3f2e14(0x279)](_0x18e4a3[_0x3f2e14(0x3b3)]);}['_send'](_0x1cfe5b){const _0x2b1511=_0x22b98a;localStorage[_0x2b1511(0x34d)](Le,JSON[_0x2b1511(0x2f0)](_0x1cfe5b));}[_0x22b98a(0x213)](){const _0x49e7c4=_0x22b98a;this['_heartbeatTimer']=window[_0x49e7c4(0x1df)](()=>{const _0x29faa8=_0x49e7c4;this['_send']({'type':0x2,'memberID':this[_0x29faa8(0x299)]});},Me);}[_0x22b98a(0x30b)](_0x176493){const _0x3fedea=_0x22b98a;return this[_0x3fedea(0x222)]['has'](_0x176493)||this[_0x3fedea(0x222)]['set'](_0x176493,new d[(_0x3fedea(0x296))](u['UnitStatus'][_0x3fedea(0x3aa)])),this['_unitStatus'][_0x3fedea(0x2b0)](_0x176493);}}var Be=(_0x57b187=>(_0x57b187[_0x57b187[_0x22b98a(0x311)]=0x0]=_0x22b98a(0x311),_0x57b187[_0x57b187['OK']=0x1]='OK',_0x57b187[_0x57b187['INTERNAL_ERROR']=0x2]=_0x22b98a(0x343),_0x57b187[_0x57b187['PERMISSION_DENIED']=0x3]=_0x22b98a(0x18f),_0x57b187[_0x57b187[_0x22b98a(0x203)]=0x4]=_0x22b98a(0x203),_0x57b187[_0x57b187[_0x22b98a(0x290)]=0x5]=_0x22b98a(0x290),_0x57b187[_0x57b187[_0x22b98a(0x208)]=0x6]='ALREADY_EXISTS',_0x57b187[_0x57b187[_0x22b98a(0x30f)]=0x7]='INVALID_ARGUMENT',_0x57b187[_0x57b187[_0x22b98a(0x369)]=0x8]='TOO_MANY_REQUESTS',_0x57b187[_0x57b187[_0x22b98a(0x34b)]=0x9]=_0x22b98a(0x34b),_0x57b187[_0x57b187[_0x22b98a(0x1d1)]=0xa]=_0x22b98a(0x1d1),_0x57b187[_0x57b187[_0x22b98a(0x323)]=0x1389]=_0x22b98a(0x323),_0x57b187[_0x57b187[_0x22b98a(0x29a)]=0x1771]=_0x22b98a(0x29a),_0x57b187[_0x57b187[_0x22b98a(0x1ce)]=0x1772]=_0x22b98a(0x1ce),_0x57b187[_0x57b187[_0x22b98a(0x3ad)]=0x1773]=_0x22b98a(0x3ad),_0x57b187[_0x57b187['APPLY_REJECT']=0x1b59]=_0x22b98a(0x33a),_0x57b187[_0x57b187[_0x22b98a(0x19a)]=0x1b5a]=_0x22b98a(0x19a),_0x57b187[_0x57b187[_0x22b98a(0x277)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x57b187[_0x57b187['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x22b98a(0x228),_0x57b187[_0x57b187[_0x22b98a(0x282)]=0x1b5d]=_0x22b98a(0x282),_0x57b187[_0x57b187[_0x22b98a(0x21f)]=0x1f41]=_0x22b98a(0x21f),_0x57b187[_0x57b187['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x22b98a(0x2b8),_0x57b187[_0x57b187[_0x22b98a(0x38f)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x57b187[_0x57b187[_0x22b98a(0x2ad)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x57b187[_0x57b187['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x22b98a(0x397),_0x57b187[_0x57b187[_0x22b98a(0x363)]=0x232d]=_0x22b98a(0x363),_0x57b187[_0x57b187['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x22b98a(0x364),_0x57b187[_0x57b187[_0x22b98a(0x35b)]=0x2712]=_0x22b98a(0x35b),_0x57b187[_0x57b187[_0x22b98a(0x313)]=0x2713]=_0x22b98a(0x313),_0x57b187[_0x57b187[_0x22b98a(0x345)]=0x2714]=_0x22b98a(0x345),_0x57b187[_0x57b187[_0x22b98a(0x335)]=0x271a]=_0x22b98a(0x335),_0x57b187[_0x57b187[_0x22b98a(0x298)]=0x271b]=_0x22b98a(0x298),_0x57b187[_0x57b187[_0x22b98a(0x1d6)]=0x271c]=_0x22b98a(0x1d6),_0x57b187[_0x57b187[_0x22b98a(0x2e8)]=0x271d]=_0x22b98a(0x2e8),_0x57b187[_0x57b187[_0x22b98a(0x326)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x57b187[_0x57b187[_0x22b98a(0x238)]=0x271f]=_0x22b98a(0x238),_0x57b187[_0x57b187['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x22b98a(0x344),_0x57b187[_0x57b187[_0x22b98a(0x3d0)]=0x2ee1]=_0x22b98a(0x3d0),_0x57b187[_0x57b187[_0x22b98a(0x2eb)]=0x2ee2]=_0x22b98a(0x2eb),_0x57b187[_0x57b187[_0x22b98a(0x2d4)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x57b187[_0x57b187['USER_NOT_INVITED_CODE']=0x2ee4]=_0x22b98a(0x25a),_0x57b187[_0x57b187[_0x22b98a(0x267)]=0x2ee5]=_0x22b98a(0x267),_0x57b187[_0x57b187['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x57b187[_0x57b187[_0x22b98a(0x1c1)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x57b187[_0x57b187['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x22b98a(0x154),_0x57b187[_0x57b187[_0x22b98a(0x3ce)]=-0x1]='UNRECOGNIZED',_0x57b187))(Be||{}),ns=Object[_0x22b98a(0x199)],rs=(_0x2ffd95,_0xf618e7,_0x20324b,_0x2543e6)=>{const _0x431a57=_0x22b98a;for(var _0x1d9765=_0x2543e6>0x1?void 0x0:_0x2543e6?ns(_0xf618e7,_0x20324b):_0xf618e7,_0x17d88a=_0x2ffd95[_0x431a57(0x3b1)]-0x1,_0x339a78;_0x17d88a>=0x0;_0x17d88a--)(_0x339a78=_0x2ffd95[_0x17d88a])&&(_0x1d9765=_0x339a78(_0x1d9765)||_0x1d9765);return _0x1d9765;},ue=(_0x4695aa,_0x2e7a8b)=>(_0x57ef6c,_0x2490e8)=>_0x2e7a8b(_0x57ef6c,_0x2490e8,_0x4695aa);exports[_0x22b98a(0x22d)]=class extends a[_0x22b98a(0x1ea)]{constructor(_0x39ee67,_0x3c094b,_0x1a4eec){super(),this['_instanceService']=_0x39ee67,this['_httpService']=_0x3c094b,this['_configService']=_0x1a4eec;}async[_0x22b98a(0x2f3)](_0x585e6d,_0x27bf3f,_0x9e9fbe,..._0x439746){const _0x5bfcf5=_0x22b98a;var _0x22d65c,_0x35abc9,_0x40ee9c,_0x4476ff;const _0x49432d=this[_0x5bfcf5(0x16e)][_0x5bfcf5(0x2cd)]();if(!_0x49432d)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x165b98=((_0x22d65c=this['_configService'][_0x5bfcf5(0x393)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x22d65c:u[_0x5bfcf5(0x314)])+'/'+_0x585e6d+'/run/'+_0x27bf3f,_0x589e0c=new URL(window[_0x5bfcf5(0x3ac)][_0x5bfcf5(0x20a)]),_0x34c8a0={'scriptId':_0x585e6d,'runId':(_0x35abc9=_0x589e0c[_0x5bfcf5(0x233)][_0x5bfcf5(0x2b0)](_0x5bfcf5(0x2c5)))!=null?_0x35abc9:'','function':_0x27bf3f,'unitId':_0x49432d[_0x5bfcf5(0x3bc)](),'argsOfFunction':JSON[_0x5bfcf5(0x2f0)](_0x439746),'invokeId':(_0x40ee9c=_0x9e9fbe[_0x5bfcf5(0x36d)])!=null?_0x40ee9c:'','executionId':(_0x4476ff=_0x9e9fbe[_0x5bfcf5(0x34f)])!=null?_0x4476ff:''};try{const _0x5c703f=await this[_0x5bfcf5(0x356)]['post'](_0x165b98,{'body':_0x34c8a0});return _0x5c703f[_0x5bfcf5(0x245)]['error']&&_0x5c703f['body'][_0x5bfcf5(0x3d3)][_0x5bfcf5(0x35d)]!==Be['OK']?_0x5bfcf5(0x33d):_0x5c703f[_0x5bfcf5(0x245)][_0x5bfcf5(0x3c0)];}catch{return _0x5bfcf5(0x33d);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x22b98a(0x1fc)](G[_0x22b98a(0x287)])),ue(0x2,a[_0x22b98a(0x21d)])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=xe,exports['IURLService']=be,exports[_0x22b98a(0x396)]=Pe,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x22b98a(0x39d)]=je;
|