@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504241607 → 0.6.10-nightly.202504261606
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 +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x149927=_0x66b6;(function(_0x349fbb,_0xa00975){const _0x1d5495=_0x66b6,_0x300187=_0x349fbb();while(!![]){try{const _0x5a8313=-parseInt(_0x1d5495(0x169))/0x1+parseInt(_0x1d5495(0x16c))/0x2+parseInt(_0x1d5495(0x16f))/0x3+-parseInt(_0x1d5495(0x170))/0x4*(-parseInt(_0x1d5495(0x167))/0x5)+parseInt(_0x1d5495(0x166))/0x6*(parseInt(_0x1d5495(0x163))/0x7)+-parseInt(_0x1d5495(0x16d))/0x8+parseInt(_0x1d5495(0x16a))/0x9*(-parseInt(_0x1d5495(0x164))/0xa);if(_0x5a8313===_0xa00975)break;else _0x300187['push'](_0x300187['shift']());}catch(_0x48af61){_0x300187['push'](_0x300187['shift']());}}}(_0x47b2,0x26fef));function _0x66b6(_0x3f3286,_0x3fb199){const _0x47b296=_0x47b2();return _0x66b6=function(_0x66b62d,_0x396104){_0x66b62d=_0x66b62d-0x163;let _0x3a79f9=_0x47b296[_0x66b62d];return _0x3a79f9;},_0x66b6(_0x3f3286,_0x3fb199);}function _0x47b2(){const _0x1f70e4=['171MPmdBW','@univerjs/core/facade','15956FwEuaf','138992BGzgeM','extend','127092unlRKB','409232zwDJQR','170891KIRHjy','61340iabvTP','RemoteUniscriptService','6CxMaTS','15OyyOxP','@univerjs-pro/collaboration-client-ui','88032VUovYF'];_0x47b2=function(){return _0x1f70e4;};return _0x47b2();}const t=require(_0x149927(0x168)),e=require(_0x149927(0x16b));class c extends e['FUniver']{['runOnServer'](_0x3a8acc,_0x441e73,..._0xa5c0d2){const _0x632606=_0x149927;return this['_injector']['get'](t[_0x632606(0x165)])['runOnServer'](_0x3a8acc,_0x441e73,{},..._0xa5c0d2);}}e['FUniver'][_0x149927(0x16e)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5aa9fa=_0x3f67;(function(_0x516cf9,_0x3c3ccc){const _0x4446d2=_0x3f67,_0x493cc3=_0x516cf9();while(!![]){try{const _0xbea660=parseInt(_0x4446d2(0x23d))/0x1+parseInt(_0x4446d2(0x229))/0x2+-parseInt(_0x4446d2(0xef))/0x3+-parseInt(_0x4446d2(0x133))/0x4*(-parseInt(_0x4446d2(0x14d))/0x5)+parseInt(_0x4446d2(0x20f))/0x6*(-parseInt(_0x4446d2(0x130))/0x7)+-parseInt(_0x4446d2(0x231))/0x8*(parseInt(_0x4446d2(0x13d))/0x9)+-parseInt(_0x4446d2(0x1f4))/0xa*(-parseInt(_0x4446d2(0x1ee))/0xb);if(_0xbea660===_0x3c3ccc)break;else _0x493cc3['push'](_0x493cc3['shift']());}catch(_0x30ab7a){_0x493cc3['push'](_0x493cc3['shift']());}}}(_0x4e4b,0x76957));var Xe=Object['defineProperty'],Ge=(_0x12b0f2,_0xf6fca5,_0x626b6)=>_0xf6fca5 in _0x12b0f2?Xe(_0x12b0f2,_0xf6fca5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x626b6}):_0x12b0f2[_0xf6fca5]=_0x626b6,_=(_0x1976ba,_0x44fdb1,_0x4d46ed)=>Ge(_0x1976ba,typeof _0x44fdb1!='symbol'?_0x44fdb1+'':_0x44fdb1,_0x4d46ed);Object['defineProperty'](exports,Symbol[_0x5aa9fa(0x2ca)],{'value':_0x5aa9fa(0x1e5)});const u=require(_0x5aa9fa(0x12a)),a=require(_0x5aa9fa(0x290)),p=require(_0x5aa9fa(0x1d2)),q=require(_0x5aa9fa(0x216)),b=require(_0x5aa9fa(0x19a)),qe=require(_0x5aa9fa(0x2b8)),d=require('rxjs'),Y=require(_0x5aa9fa(0x257)),m=require('@univerjs-pro/collaboration'),Te=require(_0x5aa9fa(0x23f)),g=require('@univerjs/sheets'),$=require(_0x5aa9fa(0x2b3)),G=require(_0x5aa9fa(0x23b)),P=require('react/jsx-runtime'),O=require(_0x5aa9fa(0x23a)),T=require(_0x5aa9fa(0x19d)),M=require(_0x5aa9fa(0x1d6)),Ke=require('@univerjs/rpc');var ze=Object[_0x5aa9fa(0x24d)],Je=(_0x4986f4,_0xf1e822,_0x2e9aeb,_0x397320)=>{for(var _0x1bee76=_0x397320>0x1?void 0x0:_0x397320?ze(_0xf1e822,_0x2e9aeb):_0xf1e822,_0x63522b=_0x4986f4['length']-0x1,_0xdb4f7f;_0x63522b>=0x0;_0x63522b--)(_0xdb4f7f=_0x4986f4[_0x63522b])&&(_0x1bee76=_0xdb4f7f(_0x1bee76)||_0x1bee76);return _0x1bee76;},Oe=(_0x2c41b0,_0x5551d1)=>(_0xbbee04,_0x3af0bd)=>_0x5551d1(_0xbbee04,_0x3af0bd,_0x2c41b0);let fe=class extends a['RxDisposable']{constructor(_0x1d8d4e,_0x32121c){const _0x534ed5=_0x5aa9fa;super(),this['_docClipboardService']=_0x1d8d4e,this['_imageIoService']=_0x32121c,this[_0x534ed5(0xac)]();}['_init'](){const _0x309e09=_0x5aa9fa,_0x2060df=this;this[_0x309e09(0x1b8)](this[_0x309e09(0x283)][_0x309e09(0x234)]({'onBeforePasteImage':async _0x4368cc=>{const _0x3fe8d9=_0x309e09,_0x4179c0=await _0x2060df[_0x3fe8d9(0x262)][_0x3fe8d9(0x26a)](_0x4368cc);return _0x4179c0?{'source':_0x4179c0[_0x3fe8d9(0x2e8)],'imageSourceType':_0x4179c0['imageSourceType']}:null;}}));}};fe=Je([Oe(0x0,b[_0x5aa9fa(0xd9)]),Oe(0x1,qe[_0x5aa9fa(0x21b)])],fe);const Re=[_0x5aa9fa(0x235),_0x5aa9fa(0x238),_0x5aa9fa(0x293),_0x5aa9fa(0x1ba),_0x5aa9fa(0x1eb),'gold400'];class Ce extends a[_0x5aa9fa(0x196)]{constructor(){const _0x3d1f59=_0x5aa9fa;super(...arguments),_(this,_0x3d1f59(0x89),new Map()),_(this,_0x3d1f59(0x240),0x0);}['assignAColorForMemberID'](_0x218435){const _0x5430cd=_0x5aa9fa;if(this[_0x5430cd(0x89)][_0x5430cd(0x14f)](_0x218435))return this[_0x5430cd(0x89)]['get'](_0x218435);const _0x4b6117=Re[this[_0x5430cd(0x240)]];return this[_0x5430cd(0x240)]=(this['_colorIndex']+0x1)%Re['length'],this[_0x5430cd(0x89)][_0x5430cd(0x246)](_0x218435,_0x4b6117),_0x4b6117;}}function _0x4e4b(){const _0x4b4c6e=['_setupSubUnitSync','_configService','_onCursorDelete','OnLineSingle','APPLY_REJECT','Inject','MoveRangeCommandId','SNAPSHOT_HAS_BEEN_REMOVED','_hovered','error','show','icon','_initCommandExecutedListener','runOnServer','CollaborationStatusDisplay','currentColor','column','_collabSessionService','_localStorageService','univer-online-status','_unitOnClients','currentTheme$','beginPath','getCoordByCell','getCollabEntity$','_univerInstanceService','searchParams','subscribe','@univerjs-pro/collaboration-client','_setupBeforeClosingHandler','assignAColorForMemberID','getUndoRedoMutationParamsCache','_drawAnchor','SetTextSelectionsOperation','5467763xYIqPm','RegularPolygon','fillRule','479436AAvzvW','CHANGESET_REVISION_CONFILICT','_docTransformIMECacheService','lineTo','_onCursorUpdate','OffLineSingle','_collabCursorController','toRgbString','UNIVER_DOC','key','1701DZGHQe','online','m2Prime','onRendered','startsWith','_initStatusListener','_uiPartsService','ranges','debug','ENSURE_SNAPSHOT_EXECUTION','transformByState','createSocket','session.connection-failed','font','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','pushState','30bkTqva','_injector','has','APPLY_PERMISSION_DENIED','useCallback','displayName','roomMembers','_transformPreviousActiveRange','disableLocalCache','Warning','permission.content','ALREADY_EXISTS','_transformService','DataLoaderService','USERS_LEAVE','LOGIN_FAILED','_updateCollabCursors','_session','assign','_handleLeaveEvent','CollaborationSocketService','_localeService','collabStatus.syncing','UniverCollaborationClientPlugin','_document','flatMap','INVITE_CODE_ALREADY_BOUND','hide','getItem','deserializeRangeWithSheet','collabStatus.notCollab','registerRefRange','_onRefRangeChange','EffectRefRangId','getCurrentUnitForType','doc.mutation.rich-text-editing','PY_RUNTIME_SCRIPT_ERROR','save','entityInit$','docStateChange$','RemoveColCommandId','LOCAL_CACHE_INTERVAL_KEY','_getAnchorBounding','status$','_startDocCollabCursor','BehaviorSubject','useObservable','CollaborationSessionService','eventID','getSheetBySheetId','removeParam','string','selection','RxDisposable','add','registerComponent','getUnitId','onCommandExecuted','_toggleOffline','black','filter','CollaborationController','requireSession','_entityInit$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','exhaustSavingTask','INVITE_CODE_REQUIRED','IMessageService','_name','RefRangeService','Tooltip','sessionTicket','bottom','Disposable','JOIN_ROOM_FAILED','undoState','div','@univerjs/docs-ui','1em','_docSyncEditingCollabCursorService','@univerjs/design','_status$','top','useRef','offline','getCollabCursors$','_getSaveTimeout','_transformHistoryAndStateStack','_initStatusComponent','runId','univer-online','_removeCollabCursors','getAncestorScale','transformMutationsWithChangeset','MemberService','extend','idSuffix','_cursorShapes','urlChange$','max','executionId','evenodd','Injector','getRelativeToViewportCoord','uni.network.url-service','dispose','_cursorInfo$','disposeWithMe','m1Prime','red300','mergeOverrideWithDependencies','onStarting','_docSkeletonManagerService','sessionStatus$','onPointerLeave$','getOffsetConfig','_lastPointer','height','SheetCollabCursorShape','_backgroundColor','_hideTimer','_syncEditingCollabCursorService','fill','_unitStatus','M0\x200H16V16H0z','unit','Unknown\x20user','createElement','debounce','fromEvent','_collaborationController','round','handleDeleteRangeMoveUp','@univerjs/engine-render','_removeClearOtherTimer','_context','_docTransformStateCacheService','react','isTransformMutationsWithChangesetSuccess','_sheetSkeletonManagerService','size','_updateSubUnitFromURLParams','TEXT','setConfig','row','touchDependencies','_roomMembers$','jsx','Shape','_toggleOnline','Rect','_commandService','Module','addObject','executeCommand','memberID','Workbook','unitId','blue400','univer-online-status-icon','_entities','22339251epgDUq','unload','DocSkeletonManagerService','clsx','UNRECOGNIZED','generateRandomId','10cZCJiN','_notificationService','_getSessionTicket','_themeService','colorChannel1','_docSkeleton','length','_initEvent','cursorInfo','DocIMEInputManagerService','getCurrent','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','children','pipe','RECT','univerjs-icon\x20univerjs-icon-','setInterval','transformStateCache','takeUntil','SetDocZoomRatioOperation','SheetSkeletonManagerService','handleInsertRow','ILocalCacheService','Tools','getSheetObject','send','_saveCache','6KzAkKP','/run/','textRanges','engine','ITransformService','_renderManagerService','prototype','@univerjs/network','getMemberID','UNIVER_SHEET','collaboration.closeRoom','_startSheetCollabCursor','IImageIoService','actions','IUIPartsService','BrowserCollaborationSocketService','LICENSE_DISTRO_REJECTED','getOwnPropertySymbols','_messageService','range','type','stringify','_collaborationUIEventService','getTypeOfUnitDisposed$','color','newValue','159098nDwike','init','on-line-single_clip0_910_349','includes','collab-client.tooltip.reconnect','trim','toString','data','38560JLaVzw','_logService','NOT_COLLAB','addClipboardHook','purple300','replaceDocRanges','labelPosition','jiqing500','replaceState','@univerjs/ui','@univerjs/sheets-ui','setItem','43563WXWMTx','getActiveSheet','@univerjs/engine-formula','_colorIndex','DOC_RANGE_TYPE','debounceTime','collabStatus.conflict','getStateCache','_range','set','TEXT_RANGE_LAYER_INDEX','onMouseMove','AWAITING','SYNCED','loadOfflineData','UnitStatus','getOwnPropertyDescriptor','Subject','collabCursorState$','getVpScrollXYInfoByPosToVp','clearInterval','SessionStatus','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','location','getLocalCacheKey','measureText','@univerjs/docs','DocSelectionManagerService','getRenderById','path','LICENSE_EXPORT_SIZE_EXCEEDED','makeDirty','SOCKET_FAILED','getConfig','name','MOBILE_HAS_BEEN_BOUND','_getScale','_imageIoService','_scheduleSaving','push','NOT_FOUND','collab-rect-range-','className','entries','INVALID_INVITE_CODE','saveImage','_cursor','override','mutations','isTransformMutationFailure','_cachedData','_saveTaskMap','ICommandService','values','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ACTIVE_UNIT_EVENT_CHANNEL','VIEW_MAIN','url(#on-line-single_clip0_910_349)','collabStatus.fetchMiss','UPDATE_CURSOR','fillText','getColor','_handleEvent','TOO_MANY_REQUESTS','_collabCursorState$','svg','defIds','_scene','RemoteUniscriptService','_initDependencies','_docClipboardService','backgroundColor','sheetID','unsubscribe','RemoveRowCommandId','find','InsertRangeMoveRightCommandId','transformIMECache','min','subunit','DocCollaborationEntity','replace','some','@univerjs/core','CollaborationDataLoaderController','_hover','verdancy600','InsertRowCommandId','cursorInfo$','_clearOtherTimers','_refRangeService','_eventUnsubscribe','width','getParam','WECHAT_HAS_BEEN_BOUND','moveTo','call','connectInjector','application/json','APPLY_NON_SEQUENTIAL_REVISION','parse','concat','_getSheetObject','RichTextEditingMutation','on-line-single','pluginName','setTimeout','onPointerEnter$','COMPLETION_FINISHED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','toDisposable','SNAPSHOT_INVALID_SNAPSHOT','dispose$','transformMutation','_localCacheService','WebBrowserSingleActiveUnitService','FETCH_MISS','collab-text-range-','rxjs/operators','params','getUnhiddenWorksheets','next','indexOf','@univerjs/drawing','function','clipPath','tag','onPointerMove$','0\x200\x2017\x2016','ColorKit','syncEditingCollabCursor','subUnitId','sheetId','COLORS','_draw','switchMap','onlineStatusIcon','MessageType','YUUMI_URL_COL_OUT_OF_RANGE','complete','YUUMI_UNABLE_LOAD_URL','toStringTag','USER_NOT_INVITED_CODE','addHandlerCallback','_initEntityListener','_shapes','getFocusedUnit','_labelPosition','ILogService','_handleHeartbeatEvent','mapTo','YUUMI_RATE_OVER_LIMIT','CONFLICT','LOCAL_CACHE_INTERVAL','_drawTextRange','serializeRangeWithSheet','UniverIcon','activeSheet$','getCurrentSelections','permission.title','getDocRanges','asObservable','onlineStatus','_heartbeatTimer','IUniverInstanceService','UNAUTHENTICATED','unitID','_handleJoinEvent','result','HTTPService','url(#$1','source','saveTaskMap','setActiveRange','_render','disposeUnit','_memberService','handleInsertRangeMoveDown','_disabled','_createSocketURL','event$','useDependency','_color','_httpService','invokeId','getValue','_colorAssignService','random','saveOfflineData','_online','_instanceService','all','with','WebURLService','forEach','UNDEFINED','getSheetId','collaboration.single-unit.warning','CollaborationEvent','code','get','session.will-retry','TRANSFORM_CHANGE_OBSERVABLE_TYPE','CollaborationUIEventService','storage','DesktopCollaborationStatusDisplayController','reconnect','ISocketService','UniverCollaborationClientUIPlugin','CollaborationStatus','INVALID_ARGUMENT','body','_assignedColors','contains','_registerDependencies','...','substring','_anchor','distinctUntilChanged','none','isEditing','unshift','_initResize','_anchorDot','[CollaborationDataLoaderController]','APPLY_REVISION_CONFILICT','_revisionService','UniverInstanceType','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Error','setShapeProps','OTHER_CLIENTS_EDITING','setParam','ONLINE','_ensureSubject','registerDependencies','YUUMI_NO_CUBOID_FOR_QUESTION','DeleteRangeMoveLeftCommandId','session.collaboration-timeout','IRemoteInstanceService','INTERNAL_ERROR','_refreshCollabCursors','getRangePointData','NodePositionConvertToRectRange','_scheduleClearOtherTimer','isArray','getTypeOfUnitAdded$','_init','_docTransformSelectionsService','_updateURLWithCurrentState','merge','_urlService','subscribeEvent','forwardRef','LocaleService','loadUnit','DeleteRangeMoveUpCommandId','setAlpha','restore','collab-text-anchor-','_registerRenderDependencies','INVITE_CODE_HAS_BEEN_UES','throttleTime','resize','_selfUnitIDs','clearTimeout','currentSkeleton$','#fff','LICENSE_MAX_UNITS_EXCEEDED','then','from','_getMergeRange','BuiltInUIPart','IBeforeCloseService','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_ASYNCIO_CANCELLED','wsSessionTicketUrl','IRenderManagerService','onlineStatusTitle','SheetsSelectionsService','getMember','_beforeCloseService','FromArray','addObjects','_textBubble','attrs','_scheduleHeartbeat','InsertRangeMoveDownCommandId','PERMISSION_DENIED','CONNECTOR_DATA_TOO_LARGE','getSkeleton','drawWith','IDocClipboardService','getActiveRange','_drawRectRange','href','handleDeleteRangeMoveLeft','_cursors','skeleton','univer-online-status-title','delete','fromEventSubject','apply','xlink:href','transformRemoteChangeset','EMAIL_HAS_BEEN_BOUND','CollaborationUIEventId','LICENSE_IMPORT_SIZE_EXCEEDED','_updateLocalCursor','arc','DocStateChangeManagerService','IURLService','SetWorksheetActivateCommand','handleIRemoveCol','2085897Vovkqv','PENDING','_dataLoaderService','history','_handleHover','setUndoRedoMutationParamsCache','[RemoteUniscriptService]:\x20no\x20focused\x20unit','defs','IConfigService','map','SUBMIT_CHANGESET_TIMEOUT','combineLatest','NO_OTHER_CLIENTS_EDITING','createInstance','collabStatus.synced','ticket','transformSelections','_config','text','Plugin','deepClone','_send','registerRenderModule','CommandType','_docStateChangeManagerService','endColumn','triggerDblclick','_id','ThemeService','Vector2','DependentOn'];_0x4e4b=function(){return _0x4b4c6e;};return _0x4e4b();}function we(_0x1f4301){const _0x541b4c=_0x5aa9fa;let _0x5bee1e='';for(const _0x513956 of _0x1f4301){const {startOffset:_0x4eb0c4,endOffset:_0x42e4ba,isActive:_0x1cdda0,rangeType:_0x1975fa,segmentId:_0x6b1dad,segmentPage:_0xbcb60f}=_0x513956;_0x5bee1e[_0x541b4c(0x1fa)]&&(_0x5bee1e+=','),_0x5bee1e+=_0x4eb0c4+':'+_0x42e4ba+':'+(_0x1cdda0?'1':'0')+':'+_0x1975fa+':'+_0x6b1dad+':'+_0xbcb60f;}return _0x5bee1e;}function Ze(_0x33aa36){const _0x45dba3=_0x5aa9fa,_0x41a8b3=_0x33aa36['split'](','),_0x434f88=[];for(const _0x5db043 of _0x41a8b3){const [_0x17f36c,_0x49e1f5,_0x16b6d9,_0x30093b,_0x172e57,_0x3b18cb]=_0x5db043['split'](':');_0x434f88[_0x45dba3(0x264)]({'startOffset':Number(_0x17f36c),'endOffset':Number(_0x49e1f5),'collapsed':_0x17f36c===_0x49e1f5,'isActive':_0x16b6d9==='1','rangeType':_0x30093b===a[_0x45dba3(0x241)][_0x45dba3(0x1db)]?a[_0x45dba3(0x241)][_0x45dba3(0x1db)]:a['DOC_RANGE_TYPE'][_0x45dba3(0x202)],'segmentId':typeof _0x172e57==_0x45dba3(0x180)?String(_0x172e57):'','segmentPage':Number(_0x3b18cb!=null?_0x3b18cb:-0x1)});}return _0x434f88[_0x45dba3(0x28f)](_0x56336e=>_0x56336e['isActive'])||(_0x434f88[0x0]['isActive']=!0x0),_0x434f88;}class pe extends a['RxDisposable']{constructor(){const _0x30b275=_0x5aa9fa;super(...arguments),_(this,_0x30b275(0x27d),new d[(_0x30b275(0x17a))](null)),_(this,_0x30b275(0x24f),this[_0x30b275(0x27d)][_0x30b275(0x2de)]());}['syncEditingCollabCursor'](_0x4df079){const _0x5bdb0a=_0x5aa9fa,{unitID:_0x1095e4,memberID:_0x3c6280,textRanges:_0x120fd4}=_0x4df079,_0x42407d=we(_0x120fd4);if(_0x42407d==='')return;const _0x58f7fd={'unitID':_0x1095e4,'memberID':_0x3c6280,'selection':_0x42407d};this[_0x5bdb0a(0x27d)][_0x5bdb0a(0x2b6)](_0x58f7fd);}}var Qe=Object[_0x5aa9fa(0x24d)],et=(_0x5dd28e,_0x26ec19,_0x246d47,_0x272808)=>{const _0x4f6cde=_0x5aa9fa;for(var _0xb4c520=_0x272808>0x1?void 0x0:_0x272808?Qe(_0x26ec19,_0x246d47):_0x26ec19,_0x536574=_0x5dd28e[_0x4f6cde(0x1fa)]-0x1,_0x7f423b;_0x536574>=0x0;_0x536574--)(_0x7f423b=_0x5dd28e[_0x536574])&&(_0xb4c520=_0x7f423b(_0xb4c520)||_0xb4c520);return _0xb4c520;},L=(_0x4cd204,_0x281bcc)=>(_0x6b331e,_0x33d68a)=>_0x281bcc(_0x6b331e,_0x33d68a,_0x4cd204);const tt=0x12c,st=0x64;let Se=class extends a[_0x5aa9fa(0x182)]{constructor(_0x614cc3,_0x48d36c,_0x2c744a,_0x1f5aa2,_0x186b3e,_0x48b78a,_0x46eeb8,_0x33ffeb,_0x369db3){const _0x4e4210=_0x5aa9fa;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x4e4210(0x1b7),new d[(_0x4e4210(0x17a))](new Map())),_(this,_0x4e4210(0x295),this[_0x4e4210(0x1b7)][_0x4e4210(0x2de)]()),_(this,_0x4e4210(0x1df),new d['BehaviorSubject']([])),_(this,'roomMembers$',this[_0x4e4210(0x1df)][_0x4e4210(0x201)](d['debounceTime'](tt))),_(this,_0x4e4210(0xe9),a['debounce'](_0x3b97a7=>{const _0x40aa64=_0x4e4210,_0x212372={'eventID':m[_0x40aa64(0x7b)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x40aa64(0x2e3)],'memberID':this[_0x40aa64(0x15e)][_0x40aa64(0x217)](),'selection':we(_0x3b97a7)}};this[_0x40aa64(0x15e)][_0x40aa64(0x20d)](_0x212372,this[_0x40aa64(0x2e3)]);},st)),(this['unitID']=_0x614cc3,this[_0x4e4210(0x15e)]=_0x48d36c,this[_0x4e4210(0x14e)]=_0x2c744a,this['_colorAssignService']=_0x1f5aa2,this['_memberService']=_0x186b3e,this[_0x4e4210(0x1c6)]=_0x48b78a,this[_0x4e4210(0x159)]=_0x46eeb8,this[_0x4e4210(0x127)]=_0x33ffeb,this[_0x4e4210(0x1e4)]=_0x369db3);}get[_0x5aa9fa(0x1fc)](){const _0x1999e8=_0x5aa9fa;return this[_0x1999e8(0x1b7)][_0x1999e8(0x2f6)]();}get[_0x5aa9fa(0x153)](){const _0x11c061=_0x5aa9fa;return this[_0x11c061(0x1df)][_0x11c061(0x2f6)]();}[_0x5aa9fa(0x1b6)](){const _0x230427=_0x5aa9fa;super['dispose'](),this[_0x230427(0x1b7)][_0x230427(0x2b6)](new Map()),this['_cursorInfo$']['complete'](),this[_0x230427(0x1df)][_0x230427(0x2b6)]([]),this[_0x230427(0x1df)][_0x230427(0x2c8)]();}[_0x5aa9fa(0x22a)](){const _0x6787d6=_0x5aa9fa;this['_init']||(this[_0x6787d6(0xac)]=!0x0,this[_0x6787d6(0x15e)][_0x6787d6(0x1be)][_0x6787d6(0x201)](d[_0x6787d6(0x206)](this[_0x6787d6(0x2ad)]))[_0x6787d6(0x129)](_0xc54177=>{const _0x4c36a9=_0x6787d6;_0xc54177===u[_0x4c36a9(0x252)][_0x4c36a9(0x9e)]?this[_0x4c36a9(0x1e2)]():this[_0x4c36a9(0x187)]();}),this[_0x6787d6(0x15e)]['event$']['pipe'](d[_0x6787d6(0x206)](this['dispose$']))[_0x6787d6(0x129)](_0x489f67=>{const _0x732359=_0x6787d6,_0x32e8e3=_0x489f67[_0x732359(0x17d)];_0x32e8e3===m[_0x732359(0x7b)]['UPDATE_CURSOR']&&this[_0x732359(0x137)](_0x489f67),_0x32e8e3===m[_0x732359(0x7b)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x489f67);}),this[_0x6787d6(0x1b8)](this[_0x6787d6(0x1e4)]['onCommandExecuted'](_0x34f1e2=>{const _0x6e6f76=_0x6787d6,_0x4b47b2=_0x34f1e2[_0x6e6f76(0x2b4)];_0x4b47b2!=null&&this[_0x6e6f76(0x2fa)]&&_0x34f1e2['id']===Y[_0x6e6f76(0x12f)]['id']&&_0x4b47b2[_0x6e6f76(0x1ea)]===this['unitID']&&_0x4b47b2[_0x6e6f76(0x91)]===!0x1&&_0x4b47b2[_0x6e6f76(0x144)][_0x6e6f76(0x1fa)]>0x0&&this[_0x6e6f76(0xe9)](_0x4b47b2[_0x6e6f76(0x144)]);})),this[_0x6787d6(0x1c6)][_0x6787d6(0x24f)][_0x6787d6(0x201)](d['takeUntil'](this[_0x6787d6(0x2ad)]))[_0x6787d6(0x129)](_0x39f3a7=>{const _0x30d4ca=_0x6787d6;if((_0x39f3a7==null?void 0x0:_0x39f3a7[_0x30d4ca(0x2e3)])!==this[_0x30d4ca(0x2e3)])return;const _0x4087d={'eventID':m[_0x30d4ca(0x7b)][_0x30d4ca(0x278)],'data':_0x39f3a7};this[_0x30d4ca(0x137)](_0x4087d);}),this['disposeWithMe'](this['_commandService'][_0x6787d6(0x186)](_0x5ca311=>{const _0x79694d=_0x6787d6;if(_0x5ca311[_0x79694d(0x2b4)]==null)return;const _0xa56bab=_0x5ca311[_0x79694d(0x2b4)];if(_0x5ca311['id']!==Y[_0x79694d(0x2a4)]['id']||_0xa56bab[_0x79694d(0x1ea)]!==this[_0x79694d(0x2e3)])return;const _0x360355={'id':_0x79694d(0x170),'params':_0xa56bab},_0xeb4a41=this[_0x79694d(0x1fc)];for(const [_0x49ad40,_0x14a06c]of _0xeb4a41){const _0x1b0183={'id':_0x79694d(0x170),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x14a06c[_0x79694d(0x144)]}},_0x3d97a9=this[_0x79694d(0x159)][_0x79694d(0x2ae)](_0x360355,_0x1b0183,!0x1);if(m[_0x79694d(0x26e)](_0x3d97a9))throw _0x3d97a9[_0x79694d(0x117)];_0xeb4a41[_0x79694d(0x246)](_0x49ad40,{..._0x14a06c,'ranges':_0x3d97a9[_0x79694d(0x13f)][_0x79694d(0x2b4)][_0x79694d(0x211)]});}queueMicrotask(()=>{const _0x14edf2=_0x79694d;this[_0x14edf2(0x1b7)][_0x14edf2(0x2b6)](_0xeb4a41);});})));}['_onCursorUpdate'](_0x3e4d6c){const _0x4e4206=_0x5aa9fa;var _0x10ed42,_0x489e88;const {memberID:_0x31aaef,selection:_0x4cb95e}=_0x3e4d6c['data'],_0x1a1598=Ze(_0x4cb95e),_0x5f4b8c=(_0x489e88=(_0x10ed42=this[_0x4e4206(0x2ed)][_0x4e4206(0xcd)](this[_0x4e4206(0x2e3)],_0x31aaef))==null?void 0x0:_0x10ed42[_0x4e4206(0x25f)])!=null?_0x489e88:_0x4e4206(0x1cb),_0x2ebfa0={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x31aaef),'name':_0x5f4b8c,'ranges':_0x1a1598},_0x148d32=this[_0x4e4206(0x1fc)];_0x148d32[_0x4e4206(0x246)](_0x31aaef,_0x2ebfa0),this[_0x4e4206(0x1b7)]['next'](_0x148d32);}[_0x5aa9fa(0x110)](_0x3f2448){const _0x48a7ec=_0x5aa9fa,{memberID:_0xc75a48}=_0x3f2448['data'],_0x16e114=this['cursorInfo'];_0x16e114[_0x48a7ec(0xe1)](_0xc75a48),this[_0x48a7ec(0x1b7)][_0x48a7ec(0x2b6)](_0x16e114);}[_0x5aa9fa(0x1e2)](){const _0x5ac070=_0x5aa9fa;var _0x45e4ef;if(this[_0x5ac070(0x2fa)]=!0x0,((_0x45e4ef=this[_0x5ac070(0x127)][_0x5ac070(0x2cf)]())==null?void 0x0:_0x45e4ef[_0x5ac070(0x185)]())!==this['unitID'])return;const _0x393967=this['_injector'][_0x5ac070(0x7d)](Y[_0x5ac070(0x258)])[_0x5ac070(0x2dd)]();Array['isArray'](_0x393967)&&_0x393967['length']>0x0&&this['_updateLocalCursor'](_0x393967);}[_0x5aa9fa(0x187)](){const _0x189bc6=_0x5aa9fa;this[_0x189bc6(0x2fa)]=!0x1;}};Se=et([L(0x2,a[_0x5aa9fa(0x113)](a['Injector'])),L(0x3,a[_0x5aa9fa(0x113)](Ce)),L(0x4,a[_0x5aa9fa(0x113)](u['MemberService'])),L(0x5,a[_0x5aa9fa(0x113)](pe)),L(0x6,m[_0x5aa9fa(0x213)]),L(0x7,a[_0x5aa9fa(0x2e1)]),L(0x8,a[_0x5aa9fa(0x271)])],Se);var nt=Object[_0x5aa9fa(0x24d)],it=(_0x554c83,_0x5aa50b,_0x17e310,_0x579ed8)=>{const _0x4b43c6=_0x5aa9fa;for(var _0x267221=_0x579ed8>0x1?void 0x0:_0x579ed8?nt(_0x5aa50b,_0x17e310):_0x5aa50b,_0x160e7e=_0x554c83[_0x4b43c6(0x1fa)]-0x1,_0x2ccfba;_0x160e7e>=0x0;_0x160e7e--)(_0x2ccfba=_0x554c83[_0x160e7e])&&(_0x267221=_0x2ccfba(_0x267221)||_0x267221);return _0x267221;},A=(_0x518868,_0x433e61)=>(_0x498afc,_0xc33194)=>_0x433e61(_0x498afc,_0xc33194,_0x518868);const rt=0x12c,ot=0x64,at=()=>{let _0x35d2ff=[],_0x228285=!0x1;return _0x462150=>{_0x35d2ff['push'](_0x462150),_0x228285||(_0x228285=!0x0,setTimeout(()=>{_0x35d2ff['forEach'](_0x3645df=>_0x3645df()),_0x35d2ff=[],_0x228285=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0x2802a7,_0x337135,_0x11d179,_0x1a890f,_0x2cfec0,_0x47f799,_0x528531,_0x3d7acb){const _0xaaea41=_0x5aa9fa;super(),_(this,_0xaaea41(0x2fa),!0x1),_(this,_0xaaea41(0xac),!0x1),_(this,_0xaaea41(0x1b7),new d['BehaviorSubject'](new Map())),_(this,_0xaaea41(0x295),this[_0xaaea41(0x1b7)]['asObservable']()),_(this,_0xaaea41(0x1df),new d[(_0xaaea41(0x17a))]([])),_(this,'roomMembers$',this[_0xaaea41(0x1df)][_0xaaea41(0x201)](d[_0xaaea41(0x242)](rt))),_(this,'_updateLocalCursor',a[_0xaaea41(0x1cd)]((_0x29093e,_0x4fa08b)=>{const _0x31db6e=_0xaaea41,_0x5b0031={'eventID':m[_0x31db6e(0x7b)][_0x31db6e(0x278)],'data':{'unitID':this[_0x31db6e(0x2e3)],'memberID':this[_0x31db6e(0x15e)][_0x31db6e(0x217)](),'selection':Te[_0x31db6e(0x2d8)](_0x29093e,_0x4fa08b['range'])}};this[_0x31db6e(0x15e)]['send'](_0x5b0031,this[_0x31db6e(0x2e3)]);},ot)),(this[_0xaaea41(0x2e3)]=_0x2802a7,this[_0xaaea41(0x15e)]=_0x337135,this[_0xaaea41(0x14e)]=_0x11d179,this[_0xaaea41(0x2f7)]=_0x1a890f,this['_memberService']=_0x2cfec0,this[_0xaaea41(0x127)]=_0x47f799,this[_0xaaea41(0x1e4)]=_0x528531,this[_0xaaea41(0x297)]=_0x3d7acb);}get[_0x5aa9fa(0x1fc)](){const _0x3ed48f=_0x5aa9fa;return this[_0x3ed48f(0x1b7)]['getValue']();}get[_0x5aa9fa(0x153)](){const _0x40a653=_0x5aa9fa;return this[_0x40a653(0x1df)][_0x40a653(0x2f6)]();}[_0x5aa9fa(0x1b6)](){const _0x589b95=_0x5aa9fa;super[_0x589b95(0x1b6)](),this[_0x589b95(0x1b7)][_0x589b95(0x2b6)](new Map()),this[_0x589b95(0x1b7)][_0x589b95(0x2c8)](),this[_0x589b95(0x1df)][_0x589b95(0x2b6)]([]),this[_0x589b95(0x1df)][_0x589b95(0x2c8)]();}[_0x5aa9fa(0x22a)](){const _0x41cf44=_0x5aa9fa;this[_0x41cf44(0xac)]||(this[_0x41cf44(0xac)]=!0x0,this[_0x41cf44(0x15e)][_0x41cf44(0x1be)][_0x41cf44(0x201)](d[_0x41cf44(0x206)](this[_0x41cf44(0x2ad)]))[_0x41cf44(0x129)](_0x200918=>{const _0x4a8b0a=_0x41cf44;_0x200918===u['SessionStatus'][_0x4a8b0a(0x9e)]?this[_0x4a8b0a(0x1e2)]():this[_0x4a8b0a(0x187)]();}),this[_0x41cf44(0x15e)][_0x41cf44(0x2f1)][_0x41cf44(0x201)](d[_0x41cf44(0x206)](this['dispose$']))[_0x41cf44(0x129)](_0x4f7fb0=>{const _0x1b73d3=_0x41cf44,_0x21bd39=_0x4f7fb0[_0x1b73d3(0x17d)];_0x21bd39===m[_0x1b73d3(0x7b)]['UPDATE_CURSOR']&&this[_0x1b73d3(0x137)](_0x4f7fb0),_0x21bd39===m['CollaborationEvent'][_0x1b73d3(0x15b)]&&this['_onCursorDelete'](_0x4f7fb0);}),this[_0x41cf44(0x16d)](),this[_0x41cf44(0x1b8)](this[_0x41cf44(0x1e4)][_0x41cf44(0x186)](_0x3b960b=>{const _0x3c8d91=_0x41cf44;if(this[_0x3c8d91(0x2fa)]&&_0x3b960b['id']===g['SetSelectionsOperation']['id']&&_0x3b960b[_0x3c8d91(0x2b4)][_0x3c8d91(0x1ea)]===this['unitID']){const _0x361d92=_0x3b960b[_0x3c8d91(0x2b4)];this[_0x3c8d91(0xe9)](_0x361d92[_0x3c8d91(0x2c0)],_0x361d92['selections'][0x0]);}})));}[_0x5aa9fa(0x137)](_0x56d45b){const _0x53f76=_0x5aa9fa;var _0x28bc29,_0x1f4494;const {memberID:_0x3f84b7,selection:_0x227e6e}=_0x56d45b['data'],{sheetName:_0x369310,range:_0x131952}=Te[_0x53f76(0x16a)](_0x227e6e),_0x5f3406={'name':(_0x1f4494=(_0x28bc29=this[_0x53f76(0x2ed)][_0x53f76(0xcd)](this[_0x53f76(0x2e3)],_0x3f84b7))==null?void 0x0:_0x28bc29[_0x53f76(0x25f)])!=null?_0x1f4494:_0x53f76(0x1cb),'range':this[_0x53f76(0xc4)](_0x369310,_0x131952),'sheetID':_0x369310,'color':this[_0x53f76(0x2f7)][_0x53f76(0x12c)](_0x3f84b7),'selection':_0x227e6e},_0x6235e1=this[_0x53f76(0x1fc)];_0x6235e1[_0x53f76(0x246)](_0x3f84b7,_0x5f3406),this[_0x53f76(0x1b7)][_0x53f76(0x2b6)](_0x6235e1);}[_0x5aa9fa(0x110)](_0x33d085){const _0x37f314=_0x5aa9fa,{memberID:_0x5be6a3}=_0x33d085['data'],_0x280cb3=this['cursorInfo'];_0x280cb3[_0x37f314(0xe1)](_0x5be6a3),this['_cursorInfo$']['next'](_0x280cb3);}['_getMergeRange'](_0x32978e,_0x359af6){const _0x21b2a9=_0x5aa9fa;var _0x3e364e,_0x5db090;const _0x36d6e3=(_0x5db090=(_0x3e364e=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x21b2a9(0x2e3)]))==null?void 0x0:_0x3e364e[_0x21b2a9(0x17e)](_0x32978e))==null?void 0x0:_0x5db090['getMergeData']();return(_0x36d6e3==null?void 0x0:_0x36d6e3[_0x21b2a9(0x288)](_0x1abde4=>a['Rectangle'][_0x21b2a9(0x8a)](_0x1abde4,_0x359af6)))||_0x359af6;}[_0x5aa9fa(0x16d)](){const _0x2fd4d1=_0x5aa9fa,_0x4d1b25=new a['DisposableCollection'](),_0x7c81ca=at(),_0x2c2caa=()=>{const _0x39b76d=_0x3f67;_0x4d1b25['dispose']();const _0x41d4ee=(_0x3c4e44,_0x4f153c,_0x5c474d,_0x324150)=>{const _0x52f20d=_0x3f67;let _0x10f2a2=[];switch(_0x3c4e44['id']){case g[_0x52f20d(0x16e)][_0x52f20d(0xa2)]:{_0x10f2a2=g[_0x52f20d(0xdd)](_0x3c4e44,_0x324150);break;}case g[_0x52f20d(0x16e)][_0x52f20d(0xb5)]:{_0x10f2a2=g[_0x52f20d(0x1d1)](_0x3c4e44,_0x324150);break;}case g[_0x52f20d(0x16e)]['InsertColCommandId']:{_0x10f2a2=g['handleInsertCol'](_0x3c4e44,_0x324150);break;}case g[_0x52f20d(0x16e)][_0x52f20d(0xd4)]:{_0x10f2a2=g[_0x52f20d(0x2ee)](_0x3c4e44,_0x324150);break;}case g['EffectRefRangId'][_0x52f20d(0x289)]:{_0x10f2a2=g['handleInsertRangeMoveRight'](_0x3c4e44,_0x324150);break;}case g[_0x52f20d(0x16e)][_0x52f20d(0x294)]:{_0x10f2a2=g[_0x52f20d(0x209)](_0x3c4e44,_0x324150);break;}case g[_0x52f20d(0x16e)][_0x52f20d(0x114)]:{_0x10f2a2=g['handleMoveRange'](_0x3c4e44,_0x324150);break;}case g[_0x52f20d(0x16e)][_0x52f20d(0x175)]:{_0x10f2a2=g[_0x52f20d(0xee)](_0x3c4e44,_0x324150);break;}case g[_0x52f20d(0x16e)][_0x52f20d(0x287)]:{_0x10f2a2=g['handleIRemoveRow'](_0x3c4e44,_0x324150);break;}}const _0x1676f7=g['runRefRangeMutations'](_0x10f2a2,_0x324150),_0x52de3c=this[_0x52f20d(0x1fc)][_0x52f20d(0x7d)](_0x4f153c);if(_0x52de3c&&_0x1676f7){const _0x21b177={..._0x52de3c,'range':_0x1676f7};this[_0x52f20d(0x1fc)][_0x52f20d(0x246)](_0x4f153c,_0x21b177),_0x7c81ca(()=>{const _0x19e109=_0x52f20d,_0x377a69=this[_0x19e109(0x297)]['registerRefRange'](_0x1676f7,_0x3cdb13=>(_0x377a69[_0x19e109(0x1b6)](),_0x41d4ee(_0x3cdb13,_0x4f153c,_0x5c474d,_0x1676f7)));_0x4d1b25[_0x19e109(0x183)](_0x377a69);});}return{'redos':[],'undos':[]};};this[_0x39b76d(0x1fc)][_0x39b76d(0x2ff)]((_0x5eda0d,_0x30824d)=>{const _0xb22ac6=_0x39b76d,{range:_0x2c6f4b,sheetID:_0x1023a3}=_0x5eda0d,_0x19e18d=this[_0xb22ac6(0x297)][_0xb22ac6(0x16c)](_0x2c6f4b,_0x9538cd=>(_0x19e18d[_0xb22ac6(0x1b6)](),_0x41d4ee(_0x9538cd,_0x30824d,_0x1023a3,_0x2c6f4b)));_0x4d1b25[_0xb22ac6(0x183)](_0x19e18d);});};this[_0x2fd4d1(0x1b8)](a[_0x2fd4d1(0x2ab)](this['_cursorInfo$']['subscribe'](()=>{_0x2c2caa();})));}['_toggleOnline'](){const _0xdf76ef=_0x5aa9fa;var _0x408c23,_0xec0444;if(this[_0xdf76ef(0x2fa)]=!0x0,((_0x408c23=this[_0xdf76ef(0x127)][_0xdf76ef(0x2cf)]())==null?void 0x0:_0x408c23['getUnitId']())!==this[_0xdf76ef(0x2e3)])return;const _0x68e927=(_0xec0444=this[_0xdf76ef(0x14e)][_0xdf76ef(0x7d)](g[_0xdf76ef(0xcc)])[_0xdf76ef(0x2db)]())==null?void 0x0:_0xec0444[0x0],_0x115d7e=this['_univerInstanceService'][_0xdf76ef(0x16f)](a[_0xdf76ef(0x98)]['UNIVER_SHEET'])[_0xdf76ef(0x23e)]();_0x68e927&&_0x115d7e&&this[_0xdf76ef(0xe9)](_0x115d7e[_0xdf76ef(0x79)](),_0x68e927);}['_toggleOffline'](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0x1b3)])),A(0x3,a[_0x5aa9fa(0x113)](Ce)),A(0x4,a[_0x5aa9fa(0x113)](u[_0x5aa9fa(0x1ab)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x5aa9fa(0x271)]),A(0x7,a['Inject'](g[_0x5aa9fa(0x192)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x27f62a,_0x5acc71,_0x31c09b,_0xa6ea5b)=>{for(var _0x25ecbc=_0xa6ea5b>0x1?void 0x0:_0xa6ea5b?ct(_0x5acc71,_0x31c09b):_0x5acc71,_0xab2c44=_0x27f62a['length']-0x1,_0x4088d5;_0xab2c44>=0x0;_0xab2c44--)(_0x4088d5=_0x27f62a[_0xab2c44])&&(_0x25ecbc=_0x4088d5(_0x25ecbc)||_0x25ecbc);return _0x25ecbc;},ie=(_0x1c8dd8,_0x20bbdf)=>(_0x3a9261,_0x1de9e3)=>_0x20bbdf(_0x3a9261,_0x1de9e3,_0x1c8dd8);let x=class extends a[_0x5aa9fa(0x182)]{constructor(_0x3e3993,_0x5a3192,_0x3fcd28){const _0x5244ff=_0x5aa9fa;super(),_(this,_0x5244ff(0x1ed),new Map()),_(this,_0x5244ff(0x18c),new d[(_0x5244ff(0x24e))]()),(this[_0x5244ff(0x127)]=_0x3e3993,this[_0x5244ff(0x14e)]=_0x5a3192,this[_0x5244ff(0x11f)]=_0x3fcd28,this[_0x5244ff(0xac)]());}[_0x5aa9fa(0x1b6)](){const _0x2e3b06=_0x5aa9fa;super[_0x2e3b06(0x1b6)](),this[_0x2e3b06(0x18c)]['complete'](),this[_0x2e3b06(0x1ed)][_0x2e3b06(0x2ff)](_0x56a0fb=>_0x56a0fb[_0x2e3b06(0x1b6)]());}[_0x5aa9fa(0x1a2)](_0x40ebc9){const _0x369007=_0x5aa9fa;return this[_0x369007(0x1ed)][_0x369007(0x14f)](_0x40ebc9)?this['_entities'][_0x369007(0x7d)](_0x40ebc9)[_0x369007(0x295)]:this[_0x369007(0x18c)]['pipe'](d[_0x369007(0x189)](_0x5cb64c=>_0x5cb64c[_0x369007(0x2e3)]===_0x40ebc9),d[_0x369007(0x2c4)](_0x7ecdc6=>_0x7ecdc6[_0x369007(0x295)]));}[_0x5aa9fa(0xac)](){const _0x251b82=_0x5aa9fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x251b82(0x98)]['UNIVER_SHEET'])['pipe'](d[_0x251b82(0x206)](this[_0x251b82(0x2ad)]))['subscribe'](async _0x9f5eca=>{const _0x294b55=_0x251b82,_0x4acb3b=_0x9f5eca[_0x294b55(0x185)](),_0x3cbd98=await this[_0x294b55(0x21a)](_0x4acb3b);this[_0x294b55(0x18c)][_0x294b55(0x2b6)](_0x3cbd98),this[_0x294b55(0x1ed)][_0x294b55(0x246)](_0x4acb3b,_0x3cbd98);}),this['_univerInstanceService'][_0x251b82(0xab)](a[_0x251b82(0x98)]['UNIVER_DOC'])[_0x251b82(0x201)](d[_0x251b82(0x206)](this[_0x251b82(0x2ad)]))[_0x251b82(0x201)](d[_0x251b82(0x189)](_0x29da33=>!_0x29da33['getUnitId']()[_0x251b82(0x141)]('__')))[_0x251b82(0x129)](async _0x3f0712=>{const _0x307ed4=_0x251b82,_0x1648d0=_0x3f0712[_0x307ed4(0x185)](),_0x1cc00c=await this[_0x307ed4(0x179)](_0x1648d0);this[_0x307ed4(0x18c)][_0x307ed4(0x2b6)](_0x1cc00c),this[_0x307ed4(0x1ed)]['set'](_0x1648d0,_0x1cc00c);}),d[_0x251b82(0xaf)](this['_univerInstanceService'][_0x251b82(0x226)](a[_0x251b82(0x98)][_0x251b82(0x13b)]),this[_0x251b82(0x127)][_0x251b82(0x226)](a[_0x251b82(0x98)]['UNIVER_SHEET']))[_0x251b82(0x201)](d['takeUntil'](this[_0x251b82(0x2ad)]))['subscribe'](_0x34c051=>{const _0x3064c5=_0x251b82,_0x3eeb77=_0x34c051['getUnitId'](),_0x5a532c=this[_0x3064c5(0x1ed)][_0x3064c5(0x7d)](_0x3eeb77);_0x5a532c&&(_0x5a532c[_0x3064c5(0x1b6)](),this['_entities'][_0x3064c5(0xe1)](_0x3eeb77));});}async[_0x5aa9fa(0x21a)](_0x1ff5a0){const _0x10277e=_0x5aa9fa,_0x43e1a5=await this[_0x10277e(0x11f)]['requireSession'](_0x1ff5a0),_0x9ff807=this[_0x10277e(0x14e)][_0x10277e(0xfc)](Ie,_0x1ff5a0,_0x43e1a5);return _0x9ff807['init'](),_0x9ff807;}async[_0x5aa9fa(0x179)](_0x5343d5){const _0xc5e698=_0x5aa9fa,_0x43c705=await this[_0xc5e698(0x11f)][_0xc5e698(0x18b)](_0x5343d5),_0x7f0e6b=this[_0xc5e698(0x14e)][_0xc5e698(0xfc)](Se,_0x5343d5,_0x43c705);return _0x7f0e6b['init'](),_0x7f0e6b;}};x=lt([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x5aa9fa(0x113)](a['Injector'])),ie(0x2,a[_0x5aa9fa(0x113)](u[_0x5aa9fa(0x17c)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x4d19bb,_0x215081){const _0x11617d=_0x5aa9fa;let {radius:_0x2cb5af,width:_0x3606e3,height:_0x19aef4}=_0x215081;_0x2cb5af=_0x2cb5af!=null?_0x2cb5af:0x0,_0x3606e3=_0x3606e3!=null?_0x3606e3:0x1e,_0x19aef4=_0x19aef4!=null?_0x19aef4:0x1e;let _0x29ea7a=0x0,_0x54169f=0x0,_0x5c0149=0x0;_0x29ea7a=_0x54169f=_0x5c0149=Math[_0x11617d(0x28b)](_0x2cb5af,_0x3606e3/0x2,_0x19aef4/0x2),_0x4d19bb[_0x11617d(0x124)](),_0x4d19bb[_0x11617d(0x29c)](_0x29ea7a,0x0),_0x4d19bb[_0x11617d(0x136)](_0x3606e3-_0x54169f,0x0),_0x4d19bb[_0x11617d(0xea)](_0x3606e3-_0x54169f,_0x54169f,_0x54169f,Math['PI']*0x3/0x2,0x0,!0x1),_0x4d19bb[_0x11617d(0x136)](_0x3606e3,_0x19aef4-_0x5c0149),_0x4d19bb[_0x11617d(0xea)](_0x3606e3-_0x5c0149,_0x19aef4-_0x5c0149,_0x5c0149,0x0,Math['PI']/0x2,!0x1),_0x4d19bb[_0x11617d(0x136)](0x0,_0x19aef4),_0x4d19bb['lineTo'](0x0,_0x29ea7a),_0x4d19bb['arc'](_0x29ea7a,_0x29ea7a,_0x29ea7a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4d19bb['closePath'](),_0x215081[_0x11617d(0x1c7)]&&(_0x4d19bb[_0x11617d(0x172)](),_0x4d19bb['fillStyle']=_0x215081[_0x11617d(0x1c7)],_0x215081[_0x11617d(0x132)]===_0x11617d(0x1b2)?_0x4d19bb['fill'](_0x11617d(0x1b2)):_0x4d19bb['fill'](),_0x4d19bb[_0x11617d(0xb7)]());}class te extends p[_0x5aa9fa(0x1e1)]{constructor(_0x304122,_0x4f349f){const _0x1306d4=_0x5aa9fa;super(_0x304122,_0x4f349f),_(this,_0x1306d4(0x227)),_(this,_0x1306d4(0x101)),(this[_0x1306d4(0x227)]=_0x4f349f==null?void 0x0:_0x4f349f['color'],this[_0x1306d4(0x101)]=_0x4f349f==null?void 0x0:_0x4f349f['text']);}static['drawWith'](_0x1ca977,_0x312770){const _0x207597=_0x5aa9fa,{text:_0x3a316a,color:_0x217e00}=_0x312770;_0x1ca977[_0x207597(0x172)](),_0x1ca977[_0x207597(0x14a)]=_0x207597(0x273);const _0x15fdea=_0x1ca977[_0x207597(0x256)](_0x3a316a)[_0x207597(0x299)],_0x3f0432=Math[_0x207597(0x28b)](_0x15fdea+0x2*re,De);ht(_0x1ca977,{'height':K,'radius':0x4,'width':_0x3f0432,'fill':_0x217e00}),_0x1ca977['fillStyle']='#FFF';const _0x5cb584=re,_0x4055cf=K-_t,_0x959039=De-0x2*re;if(_0x15fdea>_0x959039){let _0x34b13f='',_0x205333=0x0;for(const _0x257793 of _0x3a316a){const _0x3e749e=_0x1ca977[_0x207597(0x256)](_0x257793)[_0x207597(0x299)];if(_0x205333+_0x3e749e<=_0x959039-_0x1ca977[_0x207597(0x256)](_0x207597(0x8c))['width'])_0x34b13f+=_0x257793,_0x205333+=_0x3e749e;else{_0x34b13f+='...';break;}}_0x1ca977[_0x207597(0x279)](_0x34b13f,_0x5cb584,_0x4055cf);}else _0x1ca977[_0x207597(0x279)](_0x3a316a,_0x5cb584,_0x4055cf);_0x1ca977[_0x207597(0xb7)]();}[_0x5aa9fa(0x2c3)](_0x4d8b68){const _0x40baf2=_0x5aa9fa;te[_0x40baf2(0xd8)](_0x4d8b68,this);}}const oe=_0x5aa9fa(0xb8),ut=_0x5aa9fa(0x2b2),dt=_0x5aa9fa(0x266),k=0x6,ft=1.5,ae=0x4,St=1.5,It='rgba(255,\x20255,\x20255,\x200.01)';class Ue{constructor(_0x542531,_0x575e94,_0x58f602,_0x659a){const _0x12b1cb=_0x5aa9fa;_(this,_0x12b1cb(0x2ce),[]),_(this,_0x12b1cb(0x8e),null),_(this,'_textBubble',null),_(this,_0x12b1cb(0x94),null),_(this,'_hideTimer',null),_(this,_0x12b1cb(0x298),null),(this[_0x12b1cb(0x26b)]=_0x542531,this['_scene']=_0x575e94,this[_0x12b1cb(0x1f9)]=_0x58f602,this[_0x12b1cb(0x165)]=_0x659a,this[_0x12b1cb(0x2eb)]());}set[_0x5aa9fa(0x292)](_0x269ee5){const _0x48ddfc=_0x5aa9fa;_0x269ee5?(this[_0x48ddfc(0x94)]&&this[_0x48ddfc(0x94)][_0x48ddfc(0x168)](),this['_textBubble']&&this[_0x48ddfc(0xd1)][_0x48ddfc(0x118)]()):(this['_anchorDot']&&this['_anchorDot'][_0x48ddfc(0x118)](),this[_0x48ddfc(0xd1)]&&this[_0x48ddfc(0xd1)][_0x48ddfc(0x168)]());}[_0x5aa9fa(0x1b6)](){const _0x458a32=_0x5aa9fa;for(const _0x51d235 of this[_0x458a32(0x2ce)])_0x51d235[_0x458a32(0x1b6)]();this[_0x458a32(0xd1)]&&this['_textBubble']['dispose'](),this[_0x458a32(0x94)]&&this[_0x458a32(0x94)][_0x458a32(0x1b6)](),this[_0x458a32(0x8e)]&&this['_anchor']['dispose'](),this[_0x458a32(0x298)]&&this['_eventUnsubscribe']();}[_0x5aa9fa(0x2eb)](){const _0x5df28b=_0x5aa9fa;var _0x5704dd;const {_docSkeleton:_0x22ed75,_document:_0x21a658}=this,{color:_0x2da1cd,name:_0x2e8942,ranges:_0xe1477a}=this[_0x5df28b(0x26b)],_0x169200=_0x21a658[_0x5df28b(0x1c0)](),{docsLeft:_0x5bd272,docsTop:_0x5bb05}=_0x169200,_0x59f69a=new b['NodePositionConvertToCursor'](_0x169200,_0x22ed75);for(const {startOffset:_0x2e059c,endOffset:_0x358cb1,rangeType:_0x54b5fd,segmentId:_0x480127,segmentPage:_0x249bcd,collapsed:_0x13fc40,isActive:_0x5a8799}of _0xe1477a){const _0x5ab380=_0x22ed75['findNodePositionByCharIndex'](_0x2e059c,!0x0,_0x480127,_0x249bcd);let _0x52ccc0=_0x22ed75['findNodePositionByCharIndex'](_0x358cb1,!0x0,_0x480127,_0x249bcd);if(_0x52ccc0==null&&(_0x52ccc0=_0x22ed75['findNodePositionByCharIndex'](_0x358cb1-0x1,!0x1,_0x480127,_0x249bcd)),_0x5a8799){const {contentBoxPointGroup:_0x4f70a1}=_0x59f69a['getRangePointData'](_0x52ccc0,_0x52ccc0);if(_0x4f70a1[_0x5df28b(0x1fa)]===0x0)continue;this[_0x5df28b(0x12e)](_0x2da1cd,_0x4f70a1,_0x5bd272,_0x5bb05,_0x2e8942),this[_0x5df28b(0x298)]=this[_0x5df28b(0xf3)]();}if(_0x5ab380&&_0x52ccc0){if(_0x54b5fd===a[_0x5df28b(0x241)][_0x5df28b(0x202)]){const _0x5b3703=new b[(_0x5df28b(0xa8))](_0x169200,_0x22ed75),{pointGroup:_0x3e50ae}=(_0x5704dd=_0x5b3703[_0x5df28b(0xa7)](_0x5ab380,_0x52ccc0))!=null?_0x5704dd:{};if(_0x3e50ae==null||_0x3e50ae[_0x5df28b(0x1fa)]===0x0)continue;this[_0x5df28b(0xdb)](_0x2da1cd,_0x3e50ae,_0x5bd272,_0x5bb05);}else{if(!_0x13fc40){const {borderBoxPointGroup:_0xaf0aa4}=_0x59f69a['getRangePointData'](_0x5ab380,_0x52ccc0);if(_0xaf0aa4['length']===0x0)continue;this['_drawTextRange'](_0x2da1cd,_0xaf0aa4,_0x5bd272,_0x5bb05);}}}}}['_drawAnchor'](_0x3bdbe9,_0x16cf47,_0x55be9f,_0x29e4c6,_0x4b8d46){const _0x197a4f=_0x5aa9fa,_0x39623d=this[_0x197a4f(0x177)](_0x16cf47),{left:_0x466233,top:_0x32a65a,height:_0x40d008}=_0x39623d,_0x102797=this[_0x197a4f(0x261)](),_0x4f6bd7=St/_0x102797,_0x3df67d=new p['Rect'](oe+a['Tools'][_0x197a4f(0x1f3)](k),{'left':_0x466233+_0x55be9f-_0x4f6bd7,'top':_0x32a65a+_0x29e4c6,'height':_0x40d008,'width':ft,'fill':_0x3bdbe9||p[_0x197a4f(0x27a)](a[_0x197a4f(0x2c2)]['black'],0x0),'strokeWidth':_0x4f6bd7,'stroke':It,'evented':!0x0});this[_0x197a4f(0x8e)]=_0x3df67d,this[_0x197a4f(0x280)][_0x197a4f(0x1e6)](_0x3df67d,b[_0x197a4f(0x247)]);const _0x1cf281=new p[(_0x197a4f(0x1e3))](oe+a[_0x197a4f(0x20b)]['generateRandomId'](k),{'left':_0x466233+_0x55be9f-_0x4f6bd7,'top':_0x32a65a+_0x29e4c6-ae/0x2,'height':ae,'width':ae,'fill':_0x3bdbe9||p[_0x197a4f(0x27a)](a[_0x197a4f(0x2c2)][_0x197a4f(0x188)],0x0),'strokeWidth':0x0,'stroke':_0x3bdbe9||p[_0x197a4f(0x27a)](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x1cf281,this['_scene'][_0x197a4f(0x1e6)](_0x1cf281,b[_0x197a4f(0x247)]);const _0x4247fe=new te(oe+a[_0x197a4f(0x20b)][_0x197a4f(0x1f3)](k),{'left':_0x466233+_0x55be9f-_0x4f6bd7,'top':_0x32a65a+_0x29e4c6-K,'text':_0x4b8d46,'color':_0x3bdbe9});this[_0x197a4f(0xd1)]=_0x4247fe,this['_scene']['addObject'](_0x4247fe,b[_0x197a4f(0x247)]),this[_0x197a4f(0x292)]=!0x1;}[_0x5aa9fa(0xf3)](){const _0x46e913=_0x5aa9fa,_0x211446=this[_0x46e913(0x8e)][_0x46e913(0x2a8)][_0x46e913(0xb1)](()=>{this['_hover']=!0x0;}),_0x56023c=this[_0x46e913(0x8e)][_0x46e913(0x1bf)][_0x46e913(0xb1)](()=>{const _0x5c0279=_0x46e913;this['_hideTimer']&&clearTimeout(this[_0x5c0279(0x1c5)]),this['_hideTimer']=setTimeout(()=>{const _0x4ee33c=_0x5c0279;this[_0x4ee33c(0x292)]=!0x1;},0x7d0);});return()=>{const _0x2e6d40=_0x46e913;_0x211446[_0x2e6d40(0x286)](),_0x56023c['unsubscribe']();};}[_0x5aa9fa(0x2d7)](_0x3804b1,_0x49fe2e,_0x3a2cee,_0x4a1ba9){const _0x30b70a=_0x5aa9fa,_0x5eab6b=new a[(_0x30b70a(0x2be))](_0x3804b1)[_0x30b70a(0xb6)](0.2)['toRgbString'](),_0x2ca4ff=new p[(_0x30b70a(0x131))](ut+a['Tools'][_0x30b70a(0x1f3)](k),{'pointsGroup':_0x49fe2e,'fill':_0x5eab6b||p['getColor'](a[_0x30b70a(0x2c2)][_0x30b70a(0x188)],0.2),'left':_0x3a2cee,'top':_0x4a1ba9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x30b70a(0x2ce)]['push'](_0x2ca4ff),this[_0x30b70a(0x280)][_0x30b70a(0x1e6)](_0x2ca4ff,b[_0x30b70a(0x247)]);}[_0x5aa9fa(0xdb)](_0x310db5,_0x421bd7,_0x440866,_0x4c7ce5){const _0x5adf77=_0x5aa9fa,_0xb44f0=new a[(_0x5adf77(0x2be))](_0x310db5)[_0x5adf77(0xb6)](0.2)[_0x5adf77(0x13a)](),_0x509862=new p['RegularPolygon'](dt+a[_0x5adf77(0x20b)][_0x5adf77(0x1f3)](k),{'pointsGroup':_0x421bd7,'fill':_0xb44f0||p[_0x5adf77(0x27a)](a[_0x5adf77(0x2c2)][_0x5adf77(0x188)],0.2),'left':_0x440866,'top':_0x4c7ce5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5adf77(0x2ce)]['push'](_0x509862),this[_0x5adf77(0x280)]['addObject'](_0x509862,b[_0x5adf77(0x247)]);}['_getAnchorBounding'](_0x162ab6){const _0x28fd56=_0x162ab6[0x0],_0x489cf6=_0x28fd56[0x0],_0x14cbef=_0x28fd56[0x2],{x:_0x19ad35,y:_0x213b24}=_0x489cf6,{x:_0x5ea0d0,y:_0x2a83c2}=_0x14cbef;return{'left':_0x19ad35,'top':_0x213b24,'width':_0x5ea0d0-_0x19ad35,'height':_0x2a83c2-_0x213b24};}['_getScale'](){const _0x3f8177=_0x5aa9fa,{scaleX:_0x3e0e74,scaleY:_0x4d48d8}=this[_0x3f8177(0x280)]['getAncestorScale']();return Math[_0x3f8177(0x1b0)](_0x3e0e74,_0x4d48d8);}}var vt=Object[_0x5aa9fa(0x24d)],gt=(_0x433830,_0x58a972,_0xb2f818,_0x4388bd)=>{const _0xba324=_0x5aa9fa;for(var _0x53d66c=_0x4388bd>0x1?void 0x0:_0x4388bd?vt(_0x58a972,_0xb2f818):_0x58a972,_0x31cd3d=_0x433830[_0xba324(0x1fa)]-0x1,_0x4a2c5c;_0x31cd3d>=0x0;_0x31cd3d--)(_0x4a2c5c=_0x433830[_0x31cd3d])&&(_0x53d66c=_0x4a2c5c(_0x53d66c)||_0x53d66c);return _0x53d66c;},V=(_0x529106,_0x530245)=>(_0x4a3c41,_0x1c46d7)=>_0x530245(_0x4a3c41,_0x1c46d7,_0x529106);let ve=class extends a[_0x5aa9fa(0x182)]{constructor(_0x26157f,_0x10f29b,_0x544826,_0x510817,_0x29c66f){const _0x3e8853=_0x5aa9fa;super(),_(this,'_cursorShapes',[]),_(this,_0x3e8853(0xde),[]),(this['_context']=_0x26157f,this[_0x3e8853(0x1bd)]=_0x10f29b,this['_collabCursorController']=_0x544826,this[_0x3e8853(0x1e4)]=_0x510817,this['_themeService']=_0x29c66f,this[_0x3e8853(0xac)]());}['_init'](){const _0x5d4a6e=_0x5aa9fa,_0x2b385a=this[_0x5d4a6e(0x1d4)]['unitId'],_0x3e6a5f=this[_0x5d4a6e(0x1bd)];this[_0x5d4a6e(0x1b8)](d[_0x5d4a6e(0xfa)]([this['_collabCursorController']['getCollabCursors$'](_0x2b385a),this[_0x5d4a6e(0x1f7)]['currentTheme$']])[_0x5d4a6e(0x201)]($['map'](([_0x20d5c4,_0x5ec45a])=>({'skeleton':_0x3e6a5f[_0x5d4a6e(0xd7)](),'cursors':[..._0x20d5c4[_0x5d4a6e(0x272)]()][_0x5d4a6e(0x166)](_0x31485a=>({..._0x31485a,'color':_0x5ec45a[_0x31485a[_0x5d4a6e(0x227)]]}))})))[_0x5d4a6e(0x129)](_0x920fd2=>{const _0x419827=_0x5d4a6e;if(this[_0x419827(0x1a8)](),_0x920fd2){const {skeleton:_0x1146b7,cursors:_0x33d933}=_0x920fd2;this[_0x419827(0x15d)](_0x1146b7,_0x33d933);}})),this[_0x5d4a6e(0x93)](),this[_0x5d4a6e(0x11a)]();}[_0x5aa9fa(0x15d)](_0x28e7db,_0x446a19){const _0x2f4736=_0x5aa9fa,{scene:_0x1dc63c,mainComponent:_0xfa1d83}=this['_context'],_0xb40861=_0x446a19[_0x2f4736(0xf8)](_0x194a5c=>new Ue(_0x194a5c,_0x1dc63c,_0x28e7db,_0xfa1d83));this[_0x2f4736(0x1ae)]=_0xb40861,this[_0x2f4736(0xde)]=_0x446a19;}[_0x5aa9fa(0xa6)](){const _0x497472=_0x5aa9fa;this['_removeCollabCursors']();const {scene:_0x200b86,mainComponent:_0x1a11bb}=this[_0x497472(0x1d4)],_0x414a2a=this[_0x497472(0x1bd)][_0x497472(0xd7)](),_0x395064=this[_0x497472(0xde)][_0x497472(0xf8)](_0x500b48=>new Ue(_0x500b48,_0x200b86,_0x414a2a,_0x1a11bb));this[_0x497472(0x1ae)]=_0x395064;}[_0x5aa9fa(0x1a8)](){const _0x19584d=_0x5aa9fa;this[_0x19584d(0x1ae)]['forEach'](_0x32ac6a=>_0x32ac6a['dispose']()),this[_0x19584d(0x1ae)]=[];}['_initCommandExecutedListener'](){const _0xf9ae4a=_0x5aa9fa,_0x497f26=[b[_0xf9ae4a(0x207)]['id']];this[_0xf9ae4a(0x1b8)](this['_commandService'][_0xf9ae4a(0x186)](_0x180ae9=>{const _0x140fff=_0xf9ae4a;_0x497f26[_0x140fff(0x22c)](_0x180ae9['id'])&&_0x180ae9[_0x140fff(0x2b4)]['unitId']===this[_0x140fff(0x1d4)][_0x140fff(0x1ea)]&&this[_0x140fff(0xa6)]();}));}[_0x5aa9fa(0x93)](){const _0x378bd4=_0x5aa9fa;this[_0x378bd4(0x1b8)](a[_0x378bd4(0xe2)](this[_0x378bd4(0x1d4)][_0x378bd4(0x212)]['onTransformChange$'])[_0x378bd4(0x201)]($['filter'](_0x2c4295=>_0x2c4295[_0x378bd4(0x223)]===p[_0x378bd4(0x7f)][_0x378bd4(0xbc)]),$[_0x378bd4(0xbb)](0x10))[_0x378bd4(0x129)](()=>{const _0x2552ba=_0x378bd4;this[_0x2552ba(0xa6)]();}));}};ve=gt([V(0x1,a['Inject'](Y[_0x5aa9fa(0x1f0)])),V(0x2,a['Inject'](x)),V(0x3,a[_0x5aa9fa(0x271)]),V(0x4,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0x10b)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x5aa9fa(0x1e1)]{constructor(_0x5f5afa,_0xa4001){const _0x1209a2=_0x5aa9fa;super(_0x5f5afa,_0xa4001),_(this,'_color'),_(this,_0x1209a2(0x116),!0x1),_(this,_0x1209a2(0x245)),_(this,'_name',''),_(this,_0x1209a2(0x2d0),_0x1209a2(0x19f)),_(this,_0x1209a2(0x1c4)),(_0xa4001&&this[_0x1209a2(0x9b)](_0xa4001),this[_0x1209a2(0x2a8)][_0x1209a2(0xb1)](()=>this[_0x1209a2(0x9b)]({'hovered':!0x0})),this[_0x1209a2(0x1bf)][_0x1209a2(0xb1)](()=>this[_0x1209a2(0x9b)]({'hovered':!0x1})));}['setShapeProps'](_0x1eeca3){const _0x4608fb=_0x5aa9fa;var _0x3a42ae,_0x420556,_0x3346b9,_0x12d28d,_0x23892d,_0x349809;this['_color']=(_0x3a42ae=_0x1eeca3[_0x4608fb(0x227)])!=null?_0x3a42ae:this[_0x4608fb(0x2f3)],this['_hovered']=(_0x420556=_0x1eeca3['hovered'])!=null?_0x420556:this[_0x4608fb(0x116)],this[_0x4608fb(0x245)]=(_0x3346b9=_0x1eeca3[_0x4608fb(0x222)])!=null?_0x3346b9:this[_0x4608fb(0x245)],this[_0x4608fb(0x191)]=(_0x12d28d=_0x1eeca3[_0x4608fb(0x25f)])!=null?_0x12d28d:this[_0x4608fb(0x191)],this[_0x4608fb(0x2d0)]=(_0x23892d=_0x1eeca3[_0x4608fb(0x237)])!=null?_0x23892d:this[_0x4608fb(0x2d0)],this[_0x4608fb(0x1c4)]=(_0x349809=_0x1eeca3[_0x4608fb(0x284)])!=null?_0x349809:this[_0x4608fb(0x1c4)],this[_0x4608fb(0x147)]({'width':_0x1eeca3[_0x4608fb(0x299)],'height':_0x1eeca3[_0x4608fb(0x1c2)]});}[_0x5aa9fa(0x248)](_0x346096){const _0x9ca509=_0x5aa9fa,{row:_0x1c8fb0,column:_0x36d84c}=_0x346096;if(_0x1c8fb0>=this[_0x9ca509(0x245)]['startRow']&&_0x1c8fb0<=this[_0x9ca509(0x245)]['endRow']&&_0x36d84c>=this[_0x9ca509(0x245)]['startColumn']&&_0x36d84c<=this[_0x9ca509(0x245)][_0x9ca509(0x108)]){this[_0x9ca509(0x9b)]({'hovered':!0x0});return;}this[_0x9ca509(0x9b)]({'hovered':!0x1});}[_0x5aa9fa(0x109)](_0x2c0bdf){return!0x1;}['_draw'](_0x574000){const _0x2904cb=_0x5aa9fa;p[_0x2904cb(0x1e3)][_0x2904cb(0xd8)](_0x574000,{'width':this[_0x2904cb(0x299)],'height':this[_0x2904cb(0x1c2)],'strokeWidth':Ct,'stroke':this[_0x2904cb(0x2f3)],'evented':!0x1,'fill':this[_0x2904cb(0x1c4)]}),this[_0x2904cb(0x116)]&&(_0x574000[_0x2904cb(0x172)](),_0x574000['transform'](0x1,0x0,0x0,0x1,this[_0x2904cb(0x299)],this[_0x2904cb(0x2d0)]===_0x2904cb(0x195)?0x0:-0x14),te[_0x2904cb(0xd8)](_0x574000,{'text':this['_name'],'color':this[_0x2904cb(0x2f3)]}),_0x574000[_0x2904cb(0xb7)]());}}var pt=Object[_0x5aa9fa(0x24d)],bt=(_0x207109,_0x11fa4f,_0x5a51f3,_0x3b61dc)=>{const _0x55b627=_0x5aa9fa;for(var _0x44e5ae=_0x3b61dc>0x1?void 0x0:_0x3b61dc?pt(_0x11fa4f,_0x5a51f3):_0x11fa4f,_0x31c732=_0x207109[_0x55b627(0x1fa)]-0x1,_0x555e05;_0x31c732>=0x0;_0x31c732--)(_0x555e05=_0x207109[_0x31c732])&&(_0x44e5ae=_0x555e05(_0x44e5ae)||_0x44e5ae);return _0x44e5ae;},ce=(_0x3af207,_0x2af5df)=>(_0x2f6af5,_0xbe3712)=>_0x2af5df(_0x2f6af5,_0xbe3712,_0x3af207);const Et=0x1389;let ge=class extends a[_0x5aa9fa(0x182)]{constructor(_0x56c585,_0x3d463d,_0x31f66f,_0x57443f){const _0xc5e65d=_0x5aa9fa;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x56c585,this['_sheetSkeletonManagerService']=_0x3d463d,this[_0xc5e65d(0x139)]=_0x31f66f,this[_0xc5e65d(0x1f7)]=_0x57443f,this[_0xc5e65d(0xac)]());}[_0x5aa9fa(0xac)](){const _0x3834e8=_0x5aa9fa;this[_0x3834e8(0x1d8)][_0x3834e8(0xbf)][_0x3834e8(0x201)]($['takeUntil'](this[_0x3834e8(0x2ad)]),$['switchMap'](_0x4e5b48=>{const _0xaf7d17=_0x3834e8;if(_0x4e5b48){const _0x2b42be=_0x4e5b48[_0xaf7d17(0x2c1)];return d['combineLatest'](this['_collabCursorController'][_0xaf7d17(0x1a2)](this[_0xaf7d17(0x1d4)]['unitId']),this['_themeService'][_0xaf7d17(0x123)])['pipe']($['map'](([_0x4a5f63,_0x49da6f])=>{const _0x570663=_0xaf7d17,_0x3bcfef=new Map();return _0x4a5f63[_0x570663(0x2ff)]((_0x3f985b,_0x14de15)=>{const _0xd3c473=_0x570663;if(_0x3f985b[_0xd3c473(0x285)]===_0x2b42be){const _0x50ac15={..._0x3f985b};_0x50ac15[_0xd3c473(0x227)]=_0x49da6f[_0x3f985b['color']],_0x3bcfef[_0xd3c473(0x246)](_0x14de15,_0x50ac15);}}),{'skeleton':_0x4e5b48,'cursors':_0x3bcfef};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3834e8(0x129)](({skeleton:_0x1ba408,cursors:_0x58936e})=>{this['_removeCollabCursors'](),_0x1ba408&&this['_updateCollabCursors'](_0x1ba408,_0x58936e);}),this[_0x3834e8(0x1d8)][_0x3834e8(0xbf)][_0x3834e8(0x129)](_0x3f96c5=>{const _0x33ee24=_0x3834e8;if(_0x3f96c5==null)return;const {skeleton:_0x3dac07}=_0x3f96c5,{scene:_0x39cfbc}=this['_context'];_0x39cfbc[_0x33ee24(0x2bc)][_0x33ee24(0xb1)](a[_0x33ee24(0x1cd)](_0x4740a0=>{const _0x44f9e2=_0x33ee24;var _0x1ac5d3,_0x4a71d7;const {offsetX:_0x4905c6,offsetY:_0x5eea1}=_0x4740a0,{x:_0x359c87,y:_0x5d5b03}=_0x39cfbc[_0x44f9e2(0x1b4)](p[_0x44f9e2(0x10c)][_0x44f9e2(0xcf)]([_0x4905c6,_0x5eea1])),{scaleX:_0x28c40f,scaleY:_0x59fd09}=_0x39cfbc[_0x44f9e2(0x1a9)](),_0x4c2a50=_0x39cfbc['getViewport'](p['SHEET_VIEWPORT_KEY'][_0x44f9e2(0x275)]),_0x49db9d=_0x39cfbc[_0x44f9e2(0x250)](p[_0x44f9e2(0x10c)][_0x44f9e2(0xcf)]([_0x359c87,_0x5d5b03]),_0x4c2a50),_0x33b13a=_0x3dac07['getCellPositionByOffset'](_0x4905c6,_0x5eea1,_0x28c40f,_0x59fd09,_0x49db9d);((_0x1ac5d3=this['_lastPointer'])==null?void 0x0:_0x1ac5d3[_0x44f9e2(0x11e)])===_0x33b13a['column']&&((_0x4a71d7=this[_0x44f9e2(0x1c1)])==null?void 0x0:_0x4a71d7[_0x44f9e2(0x1dd)])===_0x33b13a[_0x44f9e2(0x1dd)]||this[_0x44f9e2(0xde)][_0x44f9e2(0x2ff)](_0x18eb51=>{const _0x371f1a=_0x44f9e2;_0x18eb51[_0x371f1a(0x248)](_0x33b13a);});},0x64));});}[_0x5aa9fa(0x15d)](_0x3ca7de,_0xb98c51){const _0x2861c8=_0x5aa9fa;var _0x24d074;const _0x571896=(_0x24d074=this[_0x2861c8(0x1d8)][_0x2861c8(0x1fe)]())==null?void 0x0:_0x24d074[_0x2861c8(0xdf)];if(!_0x571896)return;const _0xa0a887=this[_0x2861c8(0x2a3)]();if(!_0xa0a887)return;this[_0x2861c8(0xde)][_0x2861c8(0x2ff)](_0x730f08=>{const _0x532f83=_0x2861c8;_0x730f08[_0x532f83(0x25c)]();});const {scene:_0x2218cb}=_0xa0a887,_0x3016e5=Tt(Array[_0x2861c8(0xc3)](_0xb98c51[_0x2861c8(0x272)]()))[_0x2861c8(0xf8)](_0x1b6b73=>{const _0x158c3b=_0x2861c8,{color:_0x5b1224,range:_0x52921c,name:_0x5a358d,selection:_0x30574b,sheetID:_0x25f2b9}=_0x1b6b73,{startColumn:_0x3f3809,startRow:_0x14ce96,endColumn:_0x39e8dd,endRow:_0x5d6771}=_0x52921c,_0x2bbc44=G[_0x158c3b(0x125)](_0x14ce96,_0x3f3809,_0x2218cb,_0x571896),_0x2e0d6a=G['getCoordByCell'](_0x5d6771,_0x39e8dd,_0x2218cb,_0x571896),{columnHeaderHeightAndMarginTop:_0x355398}=_0x571896,{startX:_0x2e3d88,startY:_0x13a8be}=_0x2bbc44,{endX:_0xca4bbc,endY:_0x1ef77d}=_0x2e0d6a,_0x31fcb3=_0xca4bbc-_0x2e3d88,_0x355f22=_0x1ef77d-_0x13a8be,_0x534dc7={'labelPosition':_0x13a8be-_0x355398>=K?'top':_0x158c3b(0x195),'sheetID':_0x25f2b9,'range':_0x52921c,'color':_0x5b1224,'name':_0x5a358d,'selection':_0x30574b,'left':_0x2e3d88,'top':_0x13a8be,'width':_0x31fcb3,'height':_0x355f22,'evented':!0x1,'zIndex':Et};return new Ae(_0x5a358d,_0x534dc7);});_0x2218cb[_0x2861c8(0xd0)](_0x3016e5,mt),this['_cursors']=new Set(_0x3016e5);}['_removeCollabCursors'](){const _0x5a34c8=_0x5aa9fa;var _0x57251c;(_0x57251c=this[_0x5a34c8(0xde)])==null||_0x57251c[_0x5a34c8(0x2ff)](_0x218eb4=>_0x218eb4['dispose']());}[_0x5aa9fa(0x2a3)](){const _0x25c865=_0x5aa9fa;return G[_0x25c865(0x20c)](this['_context'][_0x25c865(0x1ca)],this['_context']);}};ge=bt([ce(0x1,a[_0x5aa9fa(0x113)](G[_0x5aa9fa(0x208)])),ce(0x2,a[_0x5aa9fa(0x113)](x)),ce(0x3,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0x10b)]))],ge);function Tt(_0x52bd33){const _0xfe1a52=_0x5aa9fa,_0x40f26a=new Map();return _0x52bd33[_0xfe1a52(0x2ff)](_0x3a23b7=>{const _0x24cefc=_0xfe1a52;if(_0x40f26a[_0x24cefc(0x14f)](_0x3a23b7['selection'])){const _0x3dca21=_0x40f26a[_0x24cefc(0x7d)](_0x3a23b7[_0x24cefc(0x181)]);_0x3dca21['name']+=',\x20'+_0x3a23b7[_0x24cefc(0x25f)];}else _0x40f26a['set'](_0x3a23b7[_0x24cefc(0x181)],_0x3a23b7);}),Array[_0xfe1a52(0xc3)](_0x40f26a[_0xfe1a52(0x272)]());}var E=function(){const _0x4e4db8=_0x5aa9fa;return E=Object['assign']||function(_0x18eb2c){const _0x3f05ce=_0x3f67;for(var _0x485bc3,_0x57eb07=0x1,_0x2f4084=arguments[_0x3f05ce(0x1fa)];_0x57eb07<_0x2f4084;_0x57eb07++){_0x485bc3=arguments[_0x57eb07];for(var _0x407de5 in _0x485bc3)Object['prototype']['hasOwnProperty'][_0x3f05ce(0x29d)](_0x485bc3,_0x407de5)&&(_0x18eb2c[_0x407de5]=_0x485bc3[_0x407de5]);}return _0x18eb2c;},E[_0x4e4db8(0xe3)](this,arguments);},Ot=function(_0x5cba90,_0x1ef839){const _0x469a9c=_0x5aa9fa;var _0x15c3f4={};for(var _0x4e8ef3 in _0x5cba90)Object['prototype']['hasOwnProperty'][_0x469a9c(0x29d)](_0x5cba90,_0x4e8ef3)&&_0x1ef839['indexOf'](_0x4e8ef3)<0x0&&(_0x15c3f4[_0x4e8ef3]=_0x5cba90[_0x4e8ef3]);if(_0x5cba90!=null&&typeof Object[_0x469a9c(0x220)]==_0x469a9c(0x2b9)){for(var _0x2bcf7b=0x0,_0x4e8ef3=Object[_0x469a9c(0x220)](_0x5cba90);_0x2bcf7b<_0x4e8ef3[_0x469a9c(0x1fa)];_0x2bcf7b++)_0x1ef839[_0x469a9c(0x2b7)](_0x4e8ef3[_0x2bcf7b])<0x0&&Object[_0x469a9c(0x215)]['propertyIsEnumerable'][_0x469a9c(0x29d)](_0x5cba90,_0x4e8ef3[_0x2bcf7b])&&(_0x15c3f4[_0x4e8ef3[_0x2bcf7b]]=_0x5cba90[_0x4e8ef3[_0x2bcf7b]]);}return _0x15c3f4;},be=M[_0x5aa9fa(0xb2)](function(_0x61904d,_0x1fb351){const _0x4eed2f=_0x5aa9fa;var _0x3ea4b2=_0x61904d[_0x4eed2f(0x119)],_0x48dd3c=_0x61904d['id'],_0x46e158=_0x61904d[_0x4eed2f(0x267)],_0x2a4229=_0x61904d[_0x4eed2f(0x1ac)],_0x4a4818=Ot(_0x61904d,[_0x4eed2f(0x119),'id',_0x4eed2f(0x267),_0x4eed2f(0x1ac)]),_0x211648=_0x4eed2f(0x203)['concat'](_0x48dd3c,'\x20')['concat'](_0x46e158||'')[_0x4eed2f(0x22e)](),_0x33d001=M[_0x4eed2f(0x1a0)]('_'[_0x4eed2f(0x2a2)](Ut()));return ye(_0x3ea4b2,''[_0x4eed2f(0x2a2)](_0x48dd3c),{'defIds':_0x3ea4b2[_0x4eed2f(0x27f)],'idSuffix':_0x33d001['current']},E({'ref':_0x1fb351,'className':_0x211648},_0x4a4818),_0x2a4229);});function ye(_0x2a4393,_0x325e8f,_0xda2e86,_0x3fe3af,_0x2647b3){const _0x32e27f=_0x5aa9fa;return M['createElement'](_0x2a4393['tag'],E(E({'key':_0x325e8f},Rt(_0x2a4393,_0xda2e86,_0x2647b3)),_0x3fe3af),(Dt(_0x2a4393,_0xda2e86)[_0x32e27f(0x200)]||[])[_0x32e27f(0xf8)](function(_0x40b6c0,_0x487f77){const _0x436c56=_0x32e27f;return ye(_0x40b6c0,''['concat'](_0x325e8f,'-')[_0x436c56(0x2a2)](_0x2a4393[_0x436c56(0x2bb)],'-')[_0x436c56(0x2a2)](_0x487f77),_0xda2e86,void 0x0,_0x2647b3);}));}function Rt(_0x16b46a,_0x5676a4,_0x4e73f6){const _0x2d7e30=_0x5aa9fa;var _0x355c07=E({},_0x16b46a['attrs']);_0x4e73f6!=null&&_0x4e73f6['colorChannel1']&&_0x355c07['fill']===_0x2d7e30(0x1f8)&&(_0x355c07[_0x2d7e30(0x1c7)]=_0x4e73f6[_0x2d7e30(0x1f8)]),_0x16b46a[_0x2d7e30(0x2bb)]==='mask'&&_0x355c07['id']&&(_0x355c07['id']=_0x355c07['id']+_0x5676a4[_0x2d7e30(0x1ad)]),Object[_0x2d7e30(0x268)](_0x355c07)['forEach'](function(_0x594be8){const _0x2acbee=_0x2d7e30;var _0x27a0ef=_0x594be8[0x0],_0x51e877=_0x594be8[0x1];_0x27a0ef==='mask'&&typeof _0x51e877=='string'&&(_0x355c07[_0x27a0ef]=_0x51e877[_0x2acbee(0x28e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x5676a4['idSuffix'],')')));});var _0x4f7531=_0x5676a4[_0x2d7e30(0x27f)];return!_0x4f7531||_0x4f7531[_0x2d7e30(0x1fa)]===0x0||(_0x16b46a[_0x2d7e30(0x2bb)]==='use'&&_0x355c07[_0x2d7e30(0xe4)]&&(_0x355c07[_0x2d7e30(0xe4)]=_0x355c07[_0x2d7e30(0xe4)]+_0x5676a4[_0x2d7e30(0x1ad)]),Object[_0x2d7e30(0x268)](_0x355c07)[_0x2d7e30(0x2ff)](function(_0x862fca){const _0x1a0e9a=_0x2d7e30;var _0x117b5f=_0x862fca[0x0],_0x269c39=_0x862fca[0x1];typeof _0x269c39==_0x1a0e9a(0x180)&&(_0x355c07[_0x117b5f]=_0x269c39[_0x1a0e9a(0x28e)](/url\(#(.*)\)/,_0x1a0e9a(0x2e7)[_0x1a0e9a(0x2a2)](_0x5676a4[_0x1a0e9a(0x1ad)],')')));})),_0x355c07;}function Dt(_0x5ab7e0,_0x6fde56){const _0xeb1bf4=_0x5aa9fa;var _0x8919d4,_0x22d241=_0x6fde56[_0xeb1bf4(0x27f)];return!_0x22d241||_0x22d241[_0xeb1bf4(0x1fa)]===0x0?_0x5ab7e0:_0x5ab7e0[_0xeb1bf4(0x2bb)]===_0xeb1bf4(0xf6)&&(!((_0x8919d4=_0x5ab7e0['children'])===null||_0x8919d4===void 0x0)&&_0x8919d4[_0xeb1bf4(0x1fa)])?E(E({},_0x5ab7e0),{'children':_0x5ab7e0[_0xeb1bf4(0x200)][_0xeb1bf4(0xf8)](function(_0x40312e){const _0x5c3c55=_0xeb1bf4;return typeof _0x40312e[_0x5c3c55(0xd2)]['id']=='string'&&_0x22d241&&_0x22d241['indexOf'](_0x40312e[_0x5c3c55(0xd2)]['id'])>-0x1?E(E({},_0x40312e),{'attrs':E(E({},_0x40312e[_0x5c3c55(0xd2)]),{'id':_0x40312e[_0x5c3c55(0xd2)]['id']+_0x6fde56[_0x5c3c55(0x1ad)]})}):_0x40312e;})}):_0x5ab7e0;}function Ut(){const _0x48b54f=_0x5aa9fa;return Math[_0x48b54f(0x2f8)]()[_0x48b54f(0x22f)](0x24)[_0x48b54f(0x8d)](0x2,0x8);}be[_0x5aa9fa(0x152)]=_0x5aa9fa(0x2d9);var Nt={'tag':_0x5aa9fa(0x27e),'attrs':{'fill':_0x5aa9fa(0x90),'viewBox':'0\x200\x2016\x2016','width':_0x5aa9fa(0x19b),'height':_0x5aa9fa(0x19b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x5aa9fa(0x25a),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x5aa9fa(0x1d0),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5aa9fa(0x2ba),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x5aa9fa(0x25a),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=M['forwardRef'](function(_0x544750,_0x40a4f0){const _0x368ab2=_0x5aa9fa;return M[_0x368ab2(0x1cc)](be,Object[_0x368ab2(0x15f)]({},_0x544750,{'id':'off-line-single','ref':_0x40a4f0,'icon':Nt}));});$e['displayName']=_0x5aa9fa(0x138);var Mt={'tag':'svg','attrs':{'fill':_0x5aa9fa(0x90),'viewBox':_0x5aa9fa(0x2bd),'width':_0x5aa9fa(0x19b),'height':_0x5aa9fa(0x19b)},'children':[{'tag':'g','attrs':{'clipPath':_0x5aa9fa(0x276)},'children':[{'tag':_0x5aa9fa(0x25a),'attrs':{'stroke':_0x5aa9fa(0x11d),'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':'round','strokeLinejoin':_0x5aa9fa(0x1d0),'strokeWidth':1.2}}]},{'tag':_0x5aa9fa(0xf6),'attrs':{},'children':[{'tag':_0x5aa9fa(0x2ba),'attrs':{'id':_0x5aa9fa(0x22b)},'children':[{'tag':_0x5aa9fa(0x25a),'attrs':{'fill':_0x5aa9fa(0xc0),'d':_0x5aa9fa(0x1c9),'transform':'translate(.97)'}}]}]}],'defIds':[_0x5aa9fa(0x22b)]},xe=M['forwardRef'](function(_0x515407,_0x617141){const _0x51f847=_0x5aa9fa;return M[_0x51f847(0x1cc)](be,Object[_0x51f847(0x15f)]({},_0x515407,{'id':_0x51f847(0x2a5),'ref':_0x617141,'icon':Mt}));});xe[_0x5aa9fa(0x152)]=_0x5aa9fa(0x111);const Lt=_0x5aa9fa(0x1ec),Pt=_0x5aa9fa(0xe0),wt=_0x5aa9fa(0x121),At=_0x5aa9fa(0x1a7),yt='univer-offline',H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x3fda53){const _0x4810f3=_0x5aa9fa;switch(_0x3fda53){case u[_0x4810f3(0x86)]['OFFLINE']:return'collabStatus.offline';case u[_0x4810f3(0x86)][_0x4810f3(0x2d5)]:return _0x4810f3(0x243);case u[_0x4810f3(0x86)][_0x4810f3(0x2b1)]:return _0x4810f3(0x277);case u['CollaborationStatus'][_0x4810f3(0x233)]:return _0x4810f3(0x16b);case u[_0x4810f3(0x86)][_0x4810f3(0x249)]:case u[_0x4810f3(0x86)]['AWAITING_WITH_PENDING']:return _0x4810f3(0x163);case u['CollaborationStatus'][_0x4810f3(0x24a)]:case u[_0x4810f3(0x86)][_0x4810f3(0xf0)]:return _0x4810f3(0xfd);}}function je(_0x198641){const _0x52116a=_0x5aa9fa,{status$:_0x5495d8}=_0x198641,_0x5ed3cf=O[_0x52116a(0x17b)](_0x5495d8,u[_0x52116a(0x86)][_0x52116a(0x233)]),_0x4b9336=O[_0x52116a(0x2f2)](a[_0x52116a(0xb3)]),_0x3d2cb7=O['useDependency'](u[_0x52116a(0x17c)]),_0x29ac15=_0x5ed3cf!==u[_0x52116a(0x86)]['OFFLINE'],_0x2cc2b2=_0x4b9336['t']($t(_0x5ed3cf)),_0x33deb3=T['clsx'](H[_0x52116a(0x2df)],{[H[_0x52116a(0x13e)]]:_0x29ac15,[H[_0x52116a(0x1a1)]]:!_0x29ac15}),_0x3c3e36=_0x29ac15?P[_0x52116a(0x1e0)](xe,{}):P[_0x52116a(0x1e0)]($e,{}),_0x409164=M[_0x52116a(0x151)](()=>{const _0xfc1286=_0x52116a;_0x29ac15||_0x3d2cb7[_0xfc1286(0x83)]();},[_0x29ac15,_0x3d2cb7]);function _0x557840(){const _0xf24640=_0x52116a;return P['jsxs'](_0xf24640(0x199),{'className':T[_0xf24640(0x1f1)](_0x33deb3,'univer-flex\x20univer-items-center'),'onClick':_0x409164,'children':[P['jsx']('div',{'className':H[_0xf24640(0x2c5)],'children':_0x3c3e36}),P[_0xf24640(0x1e0)](_0xf24640(0x199),{'className':H[_0xf24640(0xcb)],'children':_0x2cc2b2})]});}return _0x29ac15?_0x557840():P[_0x52116a(0x1e0)](T[_0x52116a(0x193)],{'title':_0x4b9336['t'](_0x52116a(0x22d)),'children':_0x557840()});}var xt=Object[_0x5aa9fa(0x24d)],jt=(_0x3ec444,_0x2569e,_0x2d4d55,_0x4d3a52)=>{for(var _0x5c20f6=_0x4d3a52>0x1?void 0x0:_0x4d3a52?xt(_0x2569e,_0x2d4d55):_0x2569e,_0x93466=_0x3ec444['length']-0x1,_0xae2aa2;_0x93466>=0x0;_0x93466--)(_0xae2aa2=_0x3ec444[_0x93466])&&(_0x5c20f6=_0xae2aa2(_0x5c20f6)||_0x5c20f6);return _0x5c20f6;},X=(_0x519ad9,_0x56af16)=>(_0x25c974,_0x1b0404)=>_0x56af16(_0x25c974,_0x1b0404,_0x519ad9);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x5aa9fa(0x196)]{constructor(_0x3cfc9a,_0x3a8731,_0x4eba12,_0x5d7813){const _0x3d2a2d=_0x5aa9fa;super(),_(this,_0x3d2a2d(0x19e),new d[(_0x3d2a2d(0x17a))](u[_0x3d2a2d(0x86)]['NOT_COLLAB'])),(this[_0x3d2a2d(0x127)]=_0x3cfc9a,this[_0x3d2a2d(0x14e)]=_0x3a8731,this['_collaborationController']=_0x4eba12,this[_0x3d2a2d(0x143)]=_0x5d7813,this[_0x3d2a2d(0x1a5)](),this[_0x3d2a2d(0x142)]());}[_0x5aa9fa(0x142)](){const _0x33f3b3=_0x5aa9fa;this[_0x33f3b3(0x1b8)](this[_0x33f3b3(0x127)]['focused$'][_0x33f3b3(0x201)](d[_0x33f3b3(0x2c4)](()=>{const _0x56536c=_0x33f3b3,_0x5558a5=this[_0x56536c(0x127)][_0x56536c(0x2cf)]();return _0x5558a5?this[_0x56536c(0x1cf)][_0x56536c(0x126)](_0x5558a5[_0x56536c(0x185)]()):d['of'](null);}),d[_0x33f3b3(0x2c4)](_0x3cbd06=>_0x3cbd06?_0x3cbd06[_0x33f3b3(0x178)]:d['of'](u[_0x33f3b3(0x86)][_0x33f3b3(0x233)])))[_0x33f3b3(0x129)](_0x30917a=>{const _0xa00ebf=_0x33f3b3;this[_0xa00ebf(0x19e)][_0xa00ebf(0x2b6)](_0x30917a);}));}[_0x5aa9fa(0x1a5)](){const _0x5b0b0f=_0x5aa9fa;this[_0x5b0b0f(0x1b8)](this[_0x5b0b0f(0x143)][_0x5b0b0f(0x184)](O[_0x5b0b0f(0xc5)]['HEADER_MENU'],()=>O[_0x5b0b0f(0x29e)](Bt({'status$':this[_0x5b0b0f(0x19e)][_0x5b0b0f(0x2de)]()}),this[_0x5b0b0f(0x14e)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a['IUniverInstanceService']),X(0x1,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0x1b3)])),X(0x2,a[_0x5aa9fa(0x113)](u[_0x5aa9fa(0x18a)])),X(0x3,O[_0x5aa9fa(0x21d)])],exports[_0x5aa9fa(0x82)]);function Bt(_0x3ef0c4){const {status$:_0x993fec}=_0x3ef0c4;return function(){const _0x192611=_0x3f67;return P[_0x192611(0x1e0)](je,{'status$':_0x993fec});};}var kt=Object[_0x5aa9fa(0x24d)],Ht=(_0x57346c,_0x193280,_0x3d2610,_0x1dd9bb)=>{for(var _0x475c2d=_0x1dd9bb>0x1?void 0x0:_0x1dd9bb?kt(_0x193280,_0x3d2610):_0x193280,_0x429e2b=_0x57346c['length']-0x1,_0x238c21;_0x429e2b>=0x0;_0x429e2b--)(_0x238c21=_0x57346c[_0x429e2b])&&(_0x475c2d=_0x238c21(_0x475c2d)||_0x475c2d);return _0x475c2d;},y=(_0x4c4bbe,_0x11747a)=>(_0x1f2c00,_0x2431f4)=>_0x11747a(_0x1f2c00,_0x2431f4,_0x4c4bbe);let z=class extends a[_0x5aa9fa(0x196)]{constructor(_0x4dc8d7,_0x2240b1,_0x2e4582,_0x144171,_0x4e961a,_0x2d946a){const _0xb24c04=_0x5aa9fa;super(),this[_0xb24c04(0xce)]=_0x4dc8d7,this[_0xb24c04(0x2af)]=_0x2240b1,this[_0xb24c04(0x225)]=_0x2e4582,this[_0xb24c04(0x221)]=_0x144171,this[_0xb24c04(0x1f5)]=_0x4e961a,this[_0xb24c04(0x162)]=_0x2d946a,this['_setupBeforeClosingHandler'](),this[_0xb24c04(0x1fb)]();}[_0x5aa9fa(0x12b)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x338092=_0x3f67;if(this['_localCacheService'][_0x338092(0x2e9)][_0x338092(0x1d9)])return this[_0x338092(0x162)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x5aa9fa(0x1fb)](){const _0x2a9491=_0x5aa9fa;this['disposeWithMe'](this[_0x2a9491(0x225)][_0x2a9491(0x2f1)]['subscribe'](_0x99ba4b=>{const _0x25c327=_0x2a9491;_0x99ba4b['id']===u[_0x25c327(0xe7)]['OTHER_CLIENT_EDITING']&&this[_0x25c327(0x221)][_0x25c327(0x118)]({'type':T[_0x25c327(0x2c6)][_0x25c327(0x156)],'content':this['_localeService']['t'](_0x25c327(0x7a))}),_0x99ba4b['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x25c327(0x221)][_0x25c327(0x118)]({'type':T[_0x25c327(0x2c6)][_0x25c327(0x156)],'content':this[_0x25c327(0x162)]['t'](_0x25c327(0x219))}),_0x99ba4b['id']===u[_0x25c327(0xe7)][_0x25c327(0xd5)]&&this['_notificationService']['show']({'title':this[_0x25c327(0x162)]['t'](_0x25c327(0x2dc)),'content':this[_0x25c327(0x162)]['t'](_0x25c327(0x157)),'type':'error','duration':0x0}),_0x99ba4b['id']===u['CollaborationUIEventId'][_0x25c327(0x2d5)]&&this[_0x25c327(0x221)]['show']({'type':T[_0x25c327(0x2c6)][_0x25c327(0x9a)],'content':this[_0x25c327(0x162)]['t'](_0x25c327(0x219))+'('+_0x99ba4b['data']+')'}),_0x99ba4b['id']===u['CollaborationUIEventId'][_0x25c327(0x197)]&&this[_0x25c327(0x221)][_0x25c327(0x118)]({'type':T['MessageType'][_0x25c327(0x156)],'content':this['_localeService']['t'](_0x99ba4b[_0x25c327(0x230)]||'')}),_0x99ba4b['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x25c327(0x118)]({'type':T[_0x25c327(0x2c6)]['Warning'],'content':this[_0x25c327(0x162)]['t'](_0x25c327(0x7e))}),_0x99ba4b['id']===u[_0x25c327(0xe7)][_0x25c327(0x25d)]&&this[_0x25c327(0x221)]['show']({'type':T['MessageType']['Error'],'content':this[_0x25c327(0x162)]['t'](_0x25c327(0x149))}),_0x99ba4b['id']===u[_0x25c327(0xe7)][_0x25c327(0xf9)]&&this[_0x25c327(0x221)][_0x25c327(0x118)]({'type':T['MessageType']['Error'],'content':this[_0x25c327(0x162)]['t'](_0x25c327(0xa3))});}));}};z=Ht([y(0x0,O[_0x5aa9fa(0xc6)]),y(0x1,u[_0x5aa9fa(0x20a)]),y(0x2,a[_0x5aa9fa(0x113)](u[_0x5aa9fa(0x80)])),y(0x3,O[_0x5aa9fa(0x190)]),y(0x4,O['INotificationService']),y(0x5,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0xb3)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a['createIdentifier'](_0x5aa9fa(0x1b5));var Wt=Object[_0x5aa9fa(0x24d)],Yt=(_0xa6f0df,_0xc30680,_0x1c8b5d,_0x3b91be)=>{const _0x57cfed=_0x5aa9fa;for(var _0x1f7038=_0x3b91be>0x1?void 0x0:_0x3b91be?Wt(_0xc30680,_0x1c8b5d):_0xc30680,_0x19ceaa=_0xa6f0df[_0x57cfed(0x1fa)]-0x1,_0x5a8b22;_0x19ceaa>=0x0;_0x19ceaa--)(_0x5a8b22=_0xa6f0df[_0x19ceaa])&&(_0x1f7038=_0x5a8b22(_0x1f7038)||_0x1f7038);return _0x1f7038;},F=(_0x2fe6d8,_0xfa892c)=>(_0x57198f,_0x484a86)=>_0xfa892c(_0x57198f,_0x484a86,_0x2fe6d8);function _0x3f67(_0x27ce20,_0x481463){const _0x4e4b6e=_0x4e4b();return _0x3f67=function(_0x3f6752,_0x2f2739){_0x3f6752=_0x3f6752-0x78;let _0x5e1bad=_0x4e4b6e[_0x3f6752];return _0x5e1bad;},_0x3f67(_0x27ce20,_0x481463);}exports[_0x5aa9fa(0x291)]=class extends a[_0x5aa9fa(0x182)]{constructor(_0x21fe0b,_0x30aa3e,_0x2578de,_0x369e9e,_0x7f4514){const _0x13eac5=_0x5aa9fa;super(),this['_urlService']=_0x21fe0b,this[_0x13eac5(0x232)]=_0x30aa3e,this[_0x13eac5(0x1e4)]=_0x2578de,this[_0x13eac5(0xf1)]=_0x369e9e,_0x7f4514?_0x7f4514==null||_0x7f4514['whenReady']()[_0x13eac5(0xc2)](()=>this[_0x13eac5(0xac)]()):(this[_0x13eac5(0x232)][_0x13eac5(0x145)]('[CollaborationDataLoaderController]',_0x13eac5(0x1ff)),this[_0x13eac5(0xac)]());}async['_init'](){const _0xe2d58=_0x5aa9fa,_0x5c2fd9=this[_0xe2d58(0xb0)][_0xe2d58(0x29a)](_0xe2d58(0x1ca)),_0xc7e1e4=this[_0xe2d58(0xb0)][_0xe2d58(0x29a)](_0xe2d58(0x223)),_0x234880=this[_0xe2d58(0xb0)][_0xe2d58(0x29a)](_0xe2d58(0x28c));if(!_0x5c2fd9||!_0xc7e1e4){this[_0xe2d58(0x232)][_0xe2d58(0x145)](_0xe2d58(0x95),_0xe2d58(0x18d));return;}const _0x45f1db=await this[_0xe2d58(0xf1)][_0xe2d58(0xb4)](_0x5c2fd9,Number(_0xc7e1e4),_0x234880);_0x45f1db&&_0x45f1db instanceof a[_0xe2d58(0x1e9)]&&this[_0xe2d58(0x10e)](_0x45f1db);}async[_0x5aa9fa(0x10e)](_0x3a7654){const _0x1dbe1b=_0x5aa9fa;await this['_updateSubUnitFromURLParams'](_0x3a7654),_0x3a7654[_0x1dbe1b(0x2da)][_0x1dbe1b(0x201)](d[_0x1dbe1b(0x206)](this[_0x1dbe1b(0x2ad)]))['subscribe'](_0xd3fa4f=>{const _0x2529c5=_0x1dbe1b;_0xd3fa4f&&this[_0x2529c5(0xae)](_0xd3fa4f);}),this[_0x1dbe1b(0xb0)]['urlChange$'][_0x1dbe1b(0x201)](d['takeUntil'](this[_0x1dbe1b(0x2ad)]))[_0x1dbe1b(0x129)](()=>this[_0x1dbe1b(0x1da)](_0x3a7654));}[_0x5aa9fa(0xae)](_0x58a40b,_0x12c114=!0x1){const _0x247552=_0x5aa9fa,_0x566ee0=this[_0x247552(0xb0)]['getParam'](_0x247552(0x28c));_0x58a40b[_0x247552(0x79)]()!==_0x566ee0&&this['_urlService'][_0x247552(0x9d)](_0x247552(0x28c),_0x58a40b[_0x247552(0x79)](),_0x12c114);}async['_updateSubUnitFromURLParams'](_0x17a19c){const _0x36e3e0=_0x5aa9fa;var _0x8ff8dd;const _0x3a5327=this[_0x36e3e0(0xb0)][_0x36e3e0(0x29a)]('subunit');if(!_0x3a5327||!_0x17a19c['getSheetBySheetId'](_0x3a5327)){const _0xdca218=_0x17a19c[_0x36e3e0(0x2b5)]()[0x0],_0xadaa8d=_0x17a19c[_0x36e3e0(0x17e)](_0xdca218);if(!_0xadaa8d)return;this[_0x36e3e0(0xae)](_0xadaa8d,!0x0),await this['_commandService']['executeCommand'](g[_0x36e3e0(0xed)]['id'],{'unitId':_0x17a19c[_0x36e3e0(0x185)](),'subUnitId':_0xdca218});return;}((_0x8ff8dd=_0x17a19c[_0x36e3e0(0x23e)]())==null?void 0x0:_0x8ff8dd[_0x36e3e0(0x79)]())!==_0x3a5327&&await this[_0x36e3e0(0x1e4)][_0x36e3e0(0x1e7)](g[_0x36e3e0(0xed)]['id'],{'unitId':_0x17a19c['getUnitId'](),'subUnitId':_0x3a5327});}},exports[_0x5aa9fa(0x291)]=Yt([F(0x0,Ee),F(0x1,a[_0x5aa9fa(0x2d1)]),F(0x2,a[_0x5aa9fa(0x271)]),F(0x3,a[_0x5aa9fa(0x113)](u[_0x5aa9fa(0x15a)])),F(0x4,a['Optional'](Ke[_0x5aa9fa(0xa4)]))],exports[_0x5aa9fa(0x291)]);var Vt=Object[_0x5aa9fa(0x24d)],Xt=(_0x36b931,_0x9bd85b,_0x45d948,_0x46e909)=>{const _0x13151b=_0x5aa9fa;for(var _0x2fdc01=_0x46e909>0x1?void 0x0:_0x46e909?Vt(_0x9bd85b,_0x45d948):_0x9bd85b,_0x418ed1=_0x36b931[_0x13151b(0x1fa)]-0x1,_0x3eb1f2;_0x418ed1>=0x0;_0x418ed1--)(_0x3eb1f2=_0x36b931[_0x418ed1])&&(_0x2fdc01=_0x3eb1f2(_0x2fdc01)||_0x2fdc01);return _0x2fdc01;},le=(_0x1a6224,_0x524c23)=>(_0x38e0e8,_0x22582f)=>_0x524c23(_0x38e0e8,_0x22582f,_0x1a6224);let J=class{constructor(_0x1c5d1e,_0x45aff4,_0x501e1a){const _0xc79d81=_0x5aa9fa;this['_injector']=_0x1c5d1e,this[_0xc79d81(0x159)]=_0x45aff4,this[_0xc79d81(0x214)]=_0x501e1a;}[_0x5aa9fa(0x28a)](_0x2419ab){const _0x474738=_0x5aa9fa;this['_transformUndoRedoStack'](_0x2419ab),this[_0x474738(0x154)](_0x2419ab);}[_0x5aa9fa(0xe5)](_0x1abe3c){const _0x5bb43a=_0x5aa9fa,{unitID:_0x44e930}=_0x1abe3c,_0x3ac27e=this['_renderManagerService'][_0x5bb43a(0x259)](_0x44e930)['with'](b[_0x5bb43a(0x1fd)]),{redoCache:_0x4a7cae}=_0x3ac27e[_0x5bb43a(0x12d)]();if(_0x4a7cae[_0x5bb43a(0x1fa)]===0x0)return _0x1abe3c;let _0x18b52a=a[_0x5bb43a(0x20b)][_0x5bb43a(0x103)](_0x1abe3c[_0x5bb43a(0x26d)][0x0]);for(let _0x29be26=0x0;_0x29be26<_0x4a7cae[_0x5bb43a(0x1fa)];_0x29be26++){const _0x1110fd={'id':_0x5bb43a(0x170),'params':{..._0x4a7cae[_0x29be26]}},_0x1729f5=this[_0x5bb43a(0x159)][_0x5bb43a(0x2ae)](_0x18b52a,_0x1110fd,!0x1);if(m['isTransformMutationFailure'](_0x1729f5))throw _0x1729f5[_0x5bb43a(0x117)];_0x18b52a=_0x1729f5['m1Prime'];}return{...a['Tools']['deepClone'](_0x1abe3c),'mutations':[_0x18b52a]};}['_transformUndoRedoStack'](_0x58acb8){const _0x1cfc12=_0x5aa9fa,{unitID:_0x298675}=_0x58acb8,_0x2eb6de=this['_renderManagerService'][_0x1cfc12(0x259)](_0x298675)['with'](b[_0x1cfc12(0x1fd)]),{undoCache:_0x55d255,redoCache:_0x4a12d6}=_0x2eb6de[_0x1cfc12(0x12d)]();if(_0x55d255['length']===0x0||_0x4a12d6['length']===0x0)return;const _0x4b63ae=[],_0x2d4831=[];let _0x3dab2a=a[_0x1cfc12(0x20b)][_0x1cfc12(0x103)](_0x58acb8[_0x1cfc12(0x26d)][0x0]),_0x3132c0=a[_0x1cfc12(0x20b)][_0x1cfc12(0x103)](_0x58acb8[_0x1cfc12(0x26d)][0x0]);for(let _0xc6b45e=_0x55d255[_0x1cfc12(0x1fa)]-0x1;_0xc6b45e>=0x0;_0xc6b45e--){const _0x411471={'id':_0x1cfc12(0x170),'params':{..._0x55d255[_0xc6b45e]}},_0x5d8bd6={'id':'doc.mutation.rich-text-editing','params':{..._0x4a12d6[_0xc6b45e]}},_0x402f43=this[_0x1cfc12(0x159)][_0x1cfc12(0x2ae)](_0x3dab2a,_0x411471,!0x1),_0x49ef0f=this[_0x1cfc12(0x159)]['transformMutation'](_0x3132c0,_0x5d8bd6,!0x1);if(m['isTransformMutationFailure'](_0x402f43))throw _0x402f43[_0x1cfc12(0x117)];if(m[_0x1cfc12(0x26e)](_0x49ef0f))throw _0x49ef0f[_0x1cfc12(0x117)];_0x4b63ae[_0x1cfc12(0x92)](_0x402f43[_0x1cfc12(0x13f)][_0x1cfc12(0x2b4)]),_0x2d4831[_0x1cfc12(0x92)](_0x49ef0f[_0x1cfc12(0x13f)][_0x1cfc12(0x2b4)]),_0x3dab2a=_0x402f43['m1Prime'],_0x3132c0=_0x49ef0f[_0x1cfc12(0x1b9)];}_0x2eb6de[_0x1cfc12(0xf4)]({'undoCache':_0x4b63ae,'redoCache':_0x2d4831});}['_transformPreviousActiveRange'](_0x3c5ef2){const _0x12a40d=_0x5aa9fa,{unitID:_0x3ab59e}=_0x3c5ef2,_0x10adb1=this[_0x12a40d(0x214)][_0x12a40d(0x259)](_0x3ab59e)[_0x12a40d(0x2fd)](b[_0x12a40d(0x1fd)]),_0x537feb=_0x10adb1[_0x12a40d(0xda)]();if(_0x537feb==null)return;const _0x5a7a74=[{'id':_0x12a40d(0x170),'params':{'unitId':_0x3c5ef2[_0x12a40d(0x2e3)],'actions':null,'textRanges':[_0x537feb]}}],_0x271f07=this[_0x12a40d(0x159)][_0x12a40d(0x1aa)](_0x3c5ef2,_0x5a7a74);if(!m[_0x12a40d(0x1d7)](_0x271f07))throw _0x271f07[_0x12a40d(0x117)];const _0x46756b=_0x271f07[_0x12a40d(0x13f)][0x0][_0x12a40d(0x2b4)][_0x12a40d(0x211)];Array[_0x12a40d(0xaa)](_0x46756b)&&_0x46756b['length']&&_0x10adb1[_0x12a40d(0x2ea)](_0x46756b[0x0]);}};J=Xt([le(0x0,a['Inject'](a[_0x5aa9fa(0x1b3)])),le(0x1,m[_0x5aa9fa(0x213)]),le(0x2,p[_0x5aa9fa(0xca)])],J);var Gt=Object[_0x5aa9fa(0x24d)],qt=(_0x12f277,_0x124cff,_0x366657,_0x92a97)=>{const _0x32f53d=_0x5aa9fa;for(var _0x15fbe0=_0x92a97>0x1?void 0x0:_0x92a97?Gt(_0x124cff,_0x366657):_0x124cff,_0x356faf=_0x12f277[_0x32f53d(0x1fa)]-0x1,_0x4f86ba;_0x356faf>=0x0;_0x356faf--)(_0x4f86ba=_0x12f277[_0x356faf])&&(_0x15fbe0=_0x4f86ba(_0x15fbe0)||_0x15fbe0);return _0x15fbe0;},_e=(_0x3a503a,_0x351b05)=>(_0x52ecc5,_0x218eae)=>_0x351b05(_0x52ecc5,_0x218eae,_0x3a503a);let Z=class{constructor(_0x2c73df,_0x2f4eb0,_0x2c5bc3){const _0x4abc3b=_0x5aa9fa;this[_0x4abc3b(0x14e)]=_0x2c73df,this[_0x4abc3b(0x159)]=_0x2f4eb0,this[_0x4abc3b(0x107)]=_0x2c5bc3;}['transformStateCache'](_0x23454f){const _0x5a40aa=_0x5aa9fa;this[_0x5a40aa(0x1a4)](_0x23454f);}['transformRemoteChangeset'](_0x3b7a10){const _0x5c4c36=_0x5aa9fa,{unitID:_0xf01be7}=_0x3b7a10,{collaboration:_0x39f6ee}=this[_0x5c4c36(0x107)][_0x5c4c36(0x244)](_0xf01be7);if(_0x39f6ee[_0x5c4c36(0x1fa)]===0x0)return _0x3b7a10;let _0x3c1d7e=a['Tools']['deepClone'](_0x3b7a10['mutations'][0x0]);for(let _0x1bca51=0x0;_0x1bca51<_0x39f6ee[_0x5c4c36(0x1fa)];_0x1bca51++){const _0x3ada98={'id':_0x5c4c36(0x170),'params':{'unitId':_0x39f6ee[_0x1bca51]['unitId'],..._0x39f6ee[_0x1bca51]['redoState']}},_0xf31e3d=this[_0x5c4c36(0x159)][_0x5c4c36(0x2ae)](_0x3c1d7e,_0x3ada98,!0x1);if(m[_0x5c4c36(0x26e)](_0xf31e3d))throw _0xf31e3d[_0x5c4c36(0x117)];_0x3c1d7e=_0xf31e3d[_0x5c4c36(0x1b9)];}return{...a[_0x5c4c36(0x20b)]['deepClone'](_0x3b7a10),'mutations':[_0x3c1d7e]};}[_0x5aa9fa(0x1a4)](_0x2b24e6){const _0x13bbd0=_0x5aa9fa,{unitID:_0xe3a4d9}=_0x2b24e6,{history:_0x9653d,collaboration:_0x549ff8}=this[_0x13bbd0(0x107)]['getStateCache'](_0xe3a4d9);if(_0x9653d[_0x13bbd0(0x1fa)]===0x0&&_0x549ff8[_0x13bbd0(0x1fa)]===0x0)return;const _0x328709=[],_0x17164b=[];let _0x514a46=a[_0x13bbd0(0x20b)][_0x13bbd0(0x103)](_0x2b24e6[_0x13bbd0(0x26d)][0x0]),_0x5bb975=a['Tools'][_0x13bbd0(0x103)](_0x2b24e6[_0x13bbd0(0x26d)][0x0]);for(let _0x406a03=_0x9653d['length']-0x1;_0x406a03>=0x0;_0x406a03--){const _0x450c22={'id':_0x13bbd0(0x170),'params':{'unitId':_0x9653d[_0x406a03]['unitId'],..._0x9653d[_0x406a03][_0x13bbd0(0x198)]}},_0x270d0b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x9653d[_0x406a03][_0x13bbd0(0x1ea)],..._0x9653d[_0x406a03]['redoState']}},_0x1d9c5e=this[_0x13bbd0(0x159)]['transformMutation'](_0x514a46,_0x450c22,!0x1),_0x55ed8f=this[_0x13bbd0(0x159)][_0x13bbd0(0x2ae)](_0x5bb975,_0x270d0b,!0x1);if(m['isTransformMutationFailure'](_0x1d9c5e))throw _0x1d9c5e[_0x13bbd0(0x117)];if(m[_0x13bbd0(0x26e)](_0x55ed8f))throw _0x55ed8f['error'];_0x328709[_0x13bbd0(0x92)]({..._0x9653d[_0x406a03],'undoState':_0x1d9c5e[_0x13bbd0(0x13f)][_0x13bbd0(0x2b4)],'redoState':_0x55ed8f['m2Prime'][_0x13bbd0(0x2b4)]}),_0x514a46=_0x1d9c5e[_0x13bbd0(0x1b9)],_0x5bb975=_0x55ed8f[_0x13bbd0(0x1b9)];}_0x514a46=a['Tools']['deepClone'](_0x2b24e6[_0x13bbd0(0x26d)][0x0]),_0x5bb975=a[_0x13bbd0(0x20b)]['deepClone'](_0x2b24e6[_0x13bbd0(0x26d)][0x0]);for(let _0x5288b4=_0x549ff8['length']-0x1;_0x5288b4>=0x0;_0x5288b4--){const _0x146abf={'id':_0x13bbd0(0x170),'params':{'unitId':_0x549ff8[_0x5288b4]['unitId'],..._0x549ff8[_0x5288b4]['undoState']}},_0x3f4412={'id':_0x13bbd0(0x170),'params':{'unitId':_0x549ff8[_0x5288b4][_0x13bbd0(0x1ea)],..._0x549ff8[_0x5288b4]['redoState']}},_0x262286=this[_0x13bbd0(0x159)][_0x13bbd0(0x2ae)](_0x514a46,_0x146abf,!0x1),_0x187620=this['_transformService']['transformMutation'](_0x5bb975,_0x3f4412,!0x1);if(m[_0x13bbd0(0x26e)](_0x262286))throw _0x262286[_0x13bbd0(0x117)];if(m['isTransformMutationFailure'](_0x187620))throw _0x187620['error'];_0x17164b[_0x13bbd0(0x92)]({..._0x549ff8[_0x5288b4],'undoState':_0x262286[_0x13bbd0(0x13f)][_0x13bbd0(0x2b4)],'redoState':_0x187620['m2Prime'][_0x13bbd0(0x2b4)]}),_0x514a46=_0x262286[_0x13bbd0(0x1b9)],_0x5bb975=_0x187620['m1Prime'];}this[_0x13bbd0(0x107)]['setStateCache'](_0xe3a4d9,{'history':_0x328709,'collaboration':_0x17164b});}};Z=qt([_e(0x0,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0x1b3)])),_e(0x1,m[_0x5aa9fa(0x213)]),_e(0x2,a['Inject'](b['DocStateChangeManagerService']))],Z);var Kt=Object[_0x5aa9fa(0x24d)],zt=(_0x40f7c4,_0x2361ee,_0x4664cc,_0xffd780)=>{const _0x2c7b1f=_0x5aa9fa;for(var _0xa50afd=_0xffd780>0x1?void 0x0:_0xffd780?Kt(_0x2361ee,_0x4664cc):_0x2361ee,_0x17f72b=_0x40f7c4[_0x2c7b1f(0x1fa)]-0x1,_0x5227da;_0x17f72b>=0x0;_0x17f72b--)(_0x5227da=_0x40f7c4[_0x17f72b])&&(_0xa50afd=_0x5227da(_0xa50afd)||_0xa50afd);return _0xa50afd;},Me=(_0x1dfc49,_0x4dafcb)=>(_0x6b4323,_0x1567b9)=>_0x4dafcb(_0x6b4323,_0x1567b9,_0x1dfc49);let Q=class{constructor(_0xa82902,_0x44e6c2){const _0x3dd49d=_0x5aa9fa;this[_0x3dd49d(0x14e)]=_0xa82902,this[_0x3dd49d(0x159)]=_0x44e6c2;}[_0x5aa9fa(0xff)](_0x4b616c){const _0x488553=_0x5aa9fa;var _0x573e90;const _0x49af0a=this['_injector'][_0x488553(0x7d)](Y['DocSelectionManagerService']),_0x45e9c9=(_0x573e90=_0x49af0a[_0x488553(0x2dd)]())!=null?_0x573e90:[];if(_0x45e9c9[_0x488553(0x1fa)]===0x0)return;const _0x422a67=_0x4b616c[_0x488553(0x2e3)],_0x31d0c3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x422a67,'actions':null,'textRanges':_0x45e9c9}}],_0x1d7570=this[_0x488553(0x159)][_0x488553(0x1aa)](_0x4b616c,_0x31d0c3);if(!m[_0x488553(0x1d7)](_0x1d7570))throw _0x1d7570['error'];const _0x5e5e92=_0x1d7570['m2Prime'][0x0][_0x488553(0x2b4)]['textRanges'];Array[_0x488553(0xaa)](_0x5e5e92)&&_0x5e5e92[_0x488553(0x1fa)]&&_0x49af0a[_0x488553(0x236)](_0x5e5e92,{'unitId':_0x422a67,'subUnitId':_0x422a67},!0x1);}};Q=zt([Me(0x0,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0x1b3)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x5aa9fa(0x24d)],Zt=(_0x2c5d5c,_0x4a4261,_0x2d2299,_0x233302)=>{for(var _0x241579=_0x233302>0x1?void 0x0:_0x233302?Jt(_0x4a4261,_0x2d2299):_0x4a4261,_0x5e1d5f=_0x2c5d5c['length']-0x1,_0x42ff0a;_0x5e1d5f>=0x0;_0x5e1d5f--)(_0x42ff0a=_0x2c5d5c[_0x5e1d5f])&&(_0x241579=_0x42ff0a(_0x241579)||_0x241579);return _0x241579;},N=(_0xa48e96,_0x4a0f36)=>(_0x5b36be,_0x5cd642)=>_0x4a0f36(_0x5b36be,_0x5cd642,_0xa48e96);let ee=class extends a[_0x5aa9fa(0x196)]{constructor(_0x5f28c6,_0x533bc0,_0x14f07c,_0x32f5ac,_0x2bfb67,_0x52631a,_0x4d04d5,_0x14e2d5){const _0x2dadd5=_0x5aa9fa;super(),_(this,_0x2dadd5(0x19e),new d[(_0x2dadd5(0x17a))](u[_0x2dadd5(0x86)][_0x2dadd5(0x233)])),(this['_docStateChangeManagerService']=_0x5f28c6,this[_0x2dadd5(0x1cf)]=_0x533bc0,this['_docTransformIMECacheService']=_0x14f07c,this[_0x2dadd5(0x1d5)]=_0x32f5ac,this['_docTransformSelectionsService']=_0x2bfb67,this[_0x2dadd5(0x19c)]=_0x52631a,this[_0x2dadd5(0x221)]=_0x4d04d5,this[_0x2dadd5(0x162)]=_0x14e2d5,this[_0x2dadd5(0x2cd)]());}['_initEntityListener'](){const _0x2c38cc=_0x5aa9fa;this['disposeWithMe'](this['_collaborationController'][_0x2c38cc(0x173)]['subscribe'](_0x337dc5=>{const _0x333602=_0x2c38cc,_0x56789c=this[_0x333602(0x107)][_0x333602(0x174)][_0x333602(0x129)](_0x3605c5=>{const _0x3277be=_0x333602;if(_0x3605c5==null)return;const {unitId:_0x18b6e2,redoState:_0x1c5618,commandId:_0x510c21}=_0x3605c5;if(_0x18b6e2!==_0x337dc5[_0x3277be(0x2e3)])return;const _0xa92e82={'id':_0x510c21,'type':a[_0x3277be(0x106)]['MUTATION'],'params':{'unitId':_0x18b6e2,'actions':_0x1c5618[_0x3277be(0x21c)],'textRanges':null}};_0x337dc5['onLocalMutation'](_0xa92e82);});if(_0x337dc5['disposeWithMe'](_0x56789c),_0x337dc5 instanceof u[_0x333602(0x28d)]){const _0x3fed10={'onTransformIME':_0x34b64f=>this['_docTransformIMECacheService'][_0x333602(0x28a)](_0x34b64f),'onTransformState':_0x2aa2c9=>this[_0x333602(0x1d5)][_0x333602(0x205)](_0x2aa2c9),'onTransformSelections':_0x2eb6e3=>this[_0x333602(0xad)]['transformSelections'](_0x2eb6e3),'onSyncEditingCollabCursor':_0xb8675f=>this['_docSyncEditingCollabCursorService'][_0x333602(0x2bf)](_0xb8675f),'onTransformRemoteChangesetByIMECache':_0x1a4be5=>this[_0x333602(0x135)][_0x333602(0xe5)](_0x1a4be5),'onTransformRemoteChangesetByStateCache':_0x3381f7=>this[_0x333602(0x1d5)][_0x333602(0xe5)](_0x3381f7)};_0x337dc5[_0x333602(0x2cc)](_0x3fed10);}}));}};ee=Zt([N(0x0,a[_0x5aa9fa(0x113)](b[_0x5aa9fa(0xeb)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x5aa9fa(0x113)](J)),N(0x3,a[_0x5aa9fa(0x113)](Z)),N(0x4,a[_0x5aa9fa(0x113)](Q)),N(0x5,a[_0x5aa9fa(0x113)](pe)),N(0x6,O[_0x5aa9fa(0x190)]),N(0x7,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0xb3)]))],ee);var Qt=Object[_0x5aa9fa(0x24d)],es=(_0x156376,_0x2d8e8c,_0x219c52,_0x1e36e5)=>{for(var _0x2ff25f=_0x1e36e5>0x1?void 0x0:_0x1e36e5?Qt(_0x2d8e8c,_0x219c52):_0x2d8e8c,_0x7e8bab=_0x156376['length']-0x1,_0x1be03d;_0x7e8bab>=0x0;_0x7e8bab--)(_0x1be03d=_0x156376[_0x7e8bab])&&(_0x2ff25f=_0x1be03d(_0x2ff25f)||_0x2ff25f);return _0x2ff25f;},he=(_0x437d8,_0x93472)=>(_0x35fd61,_0x17ecf9)=>_0x93472(_0x35fd61,_0x17ecf9,_0x437d8);let me=class extends a['Disposable']{constructor(_0x4f9df4,_0x5591ec,_0x5ee37d){const _0x3406a6=_0x5aa9fa;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x3406a6(0x2ef),!0x1),(this[_0x3406a6(0x10f)]=_0x4f9df4,this['_localStorageService']=_0x5591ec,this[_0x3406a6(0x97)]=_0x5ee37d);}[_0x5aa9fa(0x155)](){const _0xfd3e5c=_0x5aa9fa;this[_0xfd3e5c(0x2ef)]=!0x0;}['enableLocalCache'](){const _0x56f6d6=_0x5aa9fa;this[_0x56f6d6(0x2ef)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x5aa9fa(0x1b6)](){const _0x2e3c5a=_0x5aa9fa;this[_0x2e3c5a(0x18e)]()[_0x2e3c5a(0xc2)](()=>super['dispose']());}async[_0x5aa9fa(0x24b)](_0x40fbbe){const _0x10e536=_0x5aa9fa;return this['_disabled']?null:this['_localStorageService'][_0x10e536(0x169)](u['getLocalCacheKey'](_0x40fbbe));}async[_0x5aa9fa(0x2f9)](_0x6f2d21,_0x2ee825){const _0x55cb6d=_0x5aa9fa;return!!this['_localStorageService'][_0x55cb6d(0x23c)](_0x6f2d21,_0x2ee825);}['updateOfflineData'](_0x23562a,_0x3147dc,_0x4b9c42,_0x39ffc8){const _0x45ad5d=_0x5aa9fa,_0x1ec60f=this[_0x45ad5d(0x97)]['getCurrentRevOfUnit'](_0x23562a);this[_0x45ad5d(0x26f)][_0x45ad5d(0x246)](_0x23562a,{'unitID':_0x23562a,'type':_0x3147dc,'awaitingChangeset':_0x4b9c42,'mutations':_0x39ffc8,'rev':_0x1ec60f}),this[_0x45ad5d(0x270)][_0x45ad5d(0x14f)](_0x23562a)||this[_0x45ad5d(0x263)](_0x23562a);}[_0x5aa9fa(0x263)](_0x563137){const _0xbe9057=_0x5aa9fa,_0x15ccf2=this['_getSaveTimeout']();_0x15ccf2===0x0?this[_0xbe9057(0x20e)](_0x563137):this['_saveTaskMap'][_0xbe9057(0x246)](_0x563137,setTimeout(()=>this[_0xbe9057(0x20e)](_0x563137),_0x15ccf2));}[_0x5aa9fa(0x1a3)](){const _0x191517=_0x5aa9fa;var _0x26e97d;return(_0x26e97d=this[_0x191517(0x10f)]['getConfig'](u[_0x191517(0x176)]))!=null?_0x26e97d:u[_0x191517(0x2d6)];}['_saveCache'](_0xc59446){const _0x58a53e=_0x5aa9fa,_0x55ae5c=this['_saveTaskMap'][_0x58a53e(0x7d)](_0xc59446);return _0x55ae5c!==void 0x0&&window['clearTimeout'](_0x55ae5c),this[_0x58a53e(0x120)][_0x58a53e(0x23c)](u[_0x58a53e(0x255)](_0xc59446),this[_0x58a53e(0x26f)][_0x58a53e(0x7d)](_0xc59446))[_0x58a53e(0xc2)](()=>this[_0x58a53e(0x270)][_0x58a53e(0xe1)](_0xc59446));}async['exhaustSavingTask'](){const _0x231a77=_0x5aa9fa,_0xdab0d1=[];this[_0x231a77(0x270)][_0x231a77(0x2ff)]((_0x73b0ca,_0x21a5d0)=>{const _0x559b7b=_0x231a77;window['clearTimeout'](_0x73b0ca),_0xdab0d1[_0x559b7b(0x264)](this[_0x559b7b(0x20e)](_0x21a5d0)[_0x559b7b(0xc2)](()=>{const _0xc47412=_0x559b7b;this[_0xc47412(0x270)][_0xc47412(0xe1)](_0x21a5d0);}));}),await Promise[_0x231a77(0x2fc)](_0xdab0d1);}};me=es([he(0x0,a[_0x5aa9fa(0xf7)]),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x5aa9fa(0x113)](m['RevisionService']))],me);class Be extends a[_0x5aa9fa(0x182)]{constructor(){const _0x6891fa=_0x5aa9fa;super(),_(this,'urlChange$'),this[_0x6891fa(0x1af)]=d[_0x6891fa(0x1ce)](window,'popstate')['pipe'](d['takeUntil'](this[_0x6891fa(0x2ad)]),d['shareReplay'](0x1),d[_0x6891fa(0x2d3)](void 0x0));}['setParam'](_0x28a80c,_0x41669f,_0x560ca5=!0x1){const _0x1f4ca7=_0x5aa9fa,_0x4e214b=new URL(window[_0x1f4ca7(0x254)][_0x1f4ca7(0xdc)]);_0x4e214b[_0x1f4ca7(0x128)][_0x1f4ca7(0x246)](_0x28a80c,_0x41669f),_0x560ca5?window[_0x1f4ca7(0xf2)]['replaceState']('','',_0x4e214b[_0x1f4ca7(0x22f)]()):window[_0x1f4ca7(0xf2)][_0x1f4ca7(0x14c)]('','',_0x4e214b['toString']());}[_0x5aa9fa(0x17f)](_0x4170af,_0xf29662=!0x1){const _0x39395d=_0x5aa9fa,_0x5f444a=new URL(window[_0x39395d(0x254)][_0x39395d(0xdc)]);_0x5f444a[_0x39395d(0x128)][_0x39395d(0xe1)](_0x4170af),_0xf29662?window['history'][_0x39395d(0x239)]('','',_0x5f444a['toString']()):window[_0x39395d(0xf2)][_0x39395d(0x14c)]('','',_0x5f444a[_0x39395d(0x22f)]());}[_0x5aa9fa(0x29a)](_0xb26896){const _0x48b726=_0x5aa9fa;var _0x16abf6;return(_0x16abf6=new URL(window['location']['href'])[_0x48b726(0x128)][_0x48b726(0x7d)](_0xb26896))!=null?_0x16abf6:void 0x0;}}var ts=Object['defineProperty'],ss=Object[_0x5aa9fa(0x24d)],ns=(_0x31e640,_0x7034cb,_0x49df87)=>_0x7034cb in _0x31e640?ts(_0x31e640,_0x7034cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49df87}):_0x31e640[_0x7034cb]=_0x49df87,is=(_0x19d613,_0xe06f5b,_0x44f40b,_0x2ad246)=>{const _0x59c1c1=_0x5aa9fa;for(var _0x32cf25=_0x2ad246>0x1?void 0x0:_0x2ad246?ss(_0xe06f5b,_0x44f40b):_0xe06f5b,_0x58905a=_0x19d613[_0x59c1c1(0x1fa)]-0x1,_0x1ab075;_0x58905a>=0x0;_0x58905a--)(_0x1ab075=_0x19d613[_0x58905a])&&(_0x32cf25=_0x1ab075(_0x32cf25)||_0x32cf25);return _0x32cf25;},ue=(_0x750f75,_0x27c8a5)=>(_0xe5e1ee,_0x225b3c)=>_0x27c8a5(_0xe5e1ee,_0x225b3c,_0x750f75),rs=(_0x4d3c58,_0x56b7d2,_0x29a11b)=>ns(_0x4d3c58,_0x56b7d2+'',_0x29a11b);const os=_0x5aa9fa(0x253);exports[_0x5aa9fa(0x85)]=class extends a[_0x5aa9fa(0x102)]{constructor(_0x56c9c2=Ne,_0x123558,_0x41cae3,_0x2ba972){const _0x3d137d=_0x5aa9fa;super(),this[_0x3d137d(0x100)]=_0x56c9c2,this['_renderManagerService']=_0x123558,this[_0x3d137d(0x14e)]=_0x41cae3,this['_configService']=_0x2ba972;const {..._0xb1849c}=a[_0x3d137d(0xaf)]({},Ne,this[_0x3d137d(0x100)]);this[_0x3d137d(0x10f)][_0x3d137d(0x1dc)](Ft,_0xb1849c);}[_0x5aa9fa(0x1bc)](){const _0x46e597=_0x5aa9fa;this[_0x46e597(0x8b)](),this[_0x46e597(0x282)]();}[_0x5aa9fa(0x140)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x15d187=_0x5aa9fa;var _0x5c6057;const _0x5db2bb=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x15d187(0x84)],{'useClass':q['WebSocketService']}],[u[_0x15d187(0x20a)],{'useClass':me}],[exports[_0x15d187(0x82)]],[ee],[z],[x],[fe],[exports[_0x15d187(0x291)]]];a[_0x15d187(0xa0)](this[_0x15d187(0x14e)],a[_0x15d187(0x1bb)](_0x5db2bb,(_0x5c6057=this[_0x15d187(0x100)])==null?void 0x0:_0x5c6057[_0x15d187(0x26c)]));}[_0x5aa9fa(0xb9)](){const _0x265001=_0x5aa9fa;this[_0x265001(0x1b8)](this[_0x265001(0x214)][_0x265001(0x105)](a['UniverInstanceType'][_0x265001(0x13b)],[ve])),this[_0x265001(0x1b8)](this[_0x265001(0x214)][_0x265001(0x105)](a[_0x265001(0x98)][_0x265001(0x218)],[ge]));}[_0x5aa9fa(0x282)](){const _0x4f0044=_0x5aa9fa;a[_0x4f0044(0x1de)](this[_0x4f0044(0x14e)],[[x],[exports[_0x4f0044(0x82)]],[ee],[z],[exports[_0x4f0044(0x291)]]]);}},rs(exports[_0x5aa9fa(0x85)],_0x5aa9fa(0x2a6),os),exports[_0x5aa9fa(0x85)]=is([a[_0x5aa9fa(0x10d)](u[_0x5aa9fa(0x164)]),ue(0x1,p[_0x5aa9fa(0xca)]),ue(0x2,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0x1b3)])),ue(0x3,a['IConfigService'])],exports[_0x5aa9fa(0x85)]);var as=Object[_0x5aa9fa(0x24d)],cs=(_0x503cd4,_0x178d1d,_0x26efd4,_0x5b0d6f)=>{for(var _0x3c81d1=_0x5b0d6f>0x1?void 0x0:_0x5b0d6f?as(_0x178d1d,_0x26efd4):_0x178d1d,_0x31e8ee=_0x503cd4['length']-0x1,_0x1c25fe;_0x31e8ee>=0x0;_0x31e8ee--)(_0x1c25fe=_0x503cd4[_0x31e8ee])&&(_0x3c81d1=_0x1c25fe(_0x3c81d1)||_0x3c81d1);return _0x3c81d1;},W=(_0x28f6c4,_0x3876b3)=>(_0x10c111,_0x9f072d)=>_0x3876b3(_0x10c111,_0x9f072d,_0x28f6c4);exports[_0x5aa9fa(0x21e)]=class extends u[_0x5aa9fa(0x161)]{constructor(_0x21445a,_0x56150c,_0x4b4791,_0x3c54d7,_0x3700ee){super(_0x21445a,_0x56150c,_0x4b4791,_0x3c54d7,_0x3700ee);}async[_0x5aa9fa(0x148)](_0x3d551d){const _0x4d7bd7=_0x5aa9fa,_0x1cd1cb=await this[_0x4d7bd7(0x1f6)](),_0x5d3c81=this[_0x4d7bd7(0x2f0)](_0x3d551d,_0x1cd1cb);return this['_doCreateSocket'](_0x5d3c81);}[_0x5aa9fa(0x2f0)](_0x28fecb,_0x2850de){const _0x2eab77=_0x5aa9fa,_0xd91105=typeof window>'u'?new URL(_0x28fecb):new URL(_0x28fecb,window['location']['origin']);_0xd91105[_0x2eab77(0x128)][_0x2eab77(0x246)](_0x2eab77(0x194),_0x2850de);const _0x2fa740=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x2fa740[_0x2eab77(0x7d)](_0x2eab77(0x1a6))&&_0xd91105[_0x2eab77(0x128)][_0x2eab77(0x246)](_0x2eab77(0x1a6),_0x2fa740[_0x2eab77(0x7d)]('runId')),_0xd91105[_0x2eab77(0x22f)]();}async[_0x5aa9fa(0x1f6)](){const _0x39c224=_0x5aa9fa;var _0x2718b1,_0xb2d24e,_0x45448d;const _0x3e575d=this[_0x39c224(0x10f)][_0x39c224(0x25e)](u[_0x39c224(0x14b)]),_0x3e262c=(_0x2718b1=_0x3e575d==null?void 0x0:_0x3e575d[_0x39c224(0xc9)])!=null?_0x2718b1:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x45448d=(_0xb2d24e=(await this[_0x39c224(0x2f4)][_0x39c224(0x7d)](_0x3e262c,{'headers':{'Content-Type':_0x39c224(0x29f)}}))['body'])==null?void 0x0:_0xb2d24e[_0x39c224(0xfe)])!=null?_0x45448d:'';}},exports[_0x5aa9fa(0x21e)]=cs([W(0x0,a[_0x5aa9fa(0x113)](a[_0x5aa9fa(0x1b3)])),W(0x1,a[_0x5aa9fa(0x113)](q[_0x5aa9fa(0x2e6)])),W(0x2,a[_0x5aa9fa(0xf7)]),W(0x3,a[_0x5aa9fa(0x2d1)]),W(0x4,m['ISnapshotServerService'])],exports[_0x5aa9fa(0x21e)]);const Le=0x7530,Pe=_0x5aa9fa(0x274);class ls extends a[_0x5aa9fa(0x196)]{constructor(){const _0x2b8794=_0x5aa9fa;super(),_(this,_0x2b8794(0x10a),a[_0x2b8794(0x1f3)]()),_(this,_0x2b8794(0xbd),new Set()),_(this,_0x2b8794(0x122),new Map()),_(this,_0x2b8794(0x2e0),null),_(this,_0x2b8794(0x296),new Map()),_(this,_0x2b8794(0x1c8),new Map()),this[_0x2b8794(0xac)]();}[_0x5aa9fa(0x1b6)](){const _0x532f81=_0x5aa9fa;super[_0x532f81(0x1b6)](),this[_0x532f81(0x296)][_0x532f81(0x2ff)]((_0x1f19c2,_0x3c0a85)=>this[_0x532f81(0x1d3)](_0x3c0a85)),this[_0x532f81(0x2e0)]&&window[_0x532f81(0x251)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x3565d8){const _0x328c12=_0x5aa9fa;return this[_0x328c12(0x9f)](_0x3565d8)[_0x328c12(0x201)](d[_0x328c12(0x8f)]());}['editingUnit'](_0x5988f9){const _0x109f20=_0x5aa9fa;this[_0x109f20(0xbd)][_0x109f20(0x1d9)]===0x0&&this[_0x109f20(0xd3)](),this[_0x109f20(0xbd)][_0x109f20(0x183)](_0x5988f9),this[_0x109f20(0x104)]({'type':0x0,'memberID':this[_0x109f20(0x10a)],'unitIDs':[_0x5988f9],'isForwarded':!0x1});}[_0x5aa9fa(0x2ec)](_0x232561){const _0x1f492d=_0x5aa9fa;this[_0x1f492d(0xbd)][_0x1f492d(0xe1)](_0x232561),this[_0x1f492d(0xbd)][_0x1f492d(0x1d9)]===0x0&&this[_0x1f492d(0x2e0)]&&window[_0x1f492d(0x251)](this[_0x1f492d(0x2e0)]);}['_init'](){const _0x4b6048=_0x5aa9fa;this['disposeWithMe'](a['toDisposable'](d[_0x4b6048(0x1ce)](window,_0x4b6048(0x81))['subscribe'](_0x281007=>{const _0x514671=_0x4b6048;if(_0x281007[_0x514671(0x13c)]!==Pe||!_0x281007[_0x514671(0x228)])return;const _0x5ed051=JSON[_0x514671(0x2a1)](_0x281007[_0x514671(0x228)]);this[_0x514671(0x27b)](_0x5ed051);}))),window['addEventListener'](_0x4b6048(0x1ef),()=>this[_0x4b6048(0x104)]({'type':0x1,'memberID':this[_0x4b6048(0x10a)],'unitIDs':Array[_0x4b6048(0xc3)](this['_selfUnitIDs'])}));}[_0x5aa9fa(0x27b)](_0x3df9a4){const _0x4df133=_0x5aa9fa;switch(_0x3df9a4[_0x4df133(0x223)]){case 0x0:this[_0x4df133(0x2e4)](_0x3df9a4);break;case 0x1:this['_handleLeaveEvent'](_0x3df9a4);break;case 0x2:this[_0x4df133(0x2d2)](_0x3df9a4);break;}}[_0x5aa9fa(0x2e4)](_0x4af87a){const _0xccda3f=_0x5aa9fa,{unitIDs:_0x23537e,memberID:_0x46e85e,isForwarded:_0x3aede0}=_0x4af87a;_0x23537e[_0xccda3f(0x2ff)](_0x20b940=>{const _0x3ea7bb=_0xccda3f;if(!_0x3aede0&&this[_0x3ea7bb(0x122)]['has'](_0x20b940)&&this[_0x3ea7bb(0x9f)](_0x20b940)['next'](u[_0x3ea7bb(0x24c)][_0x3ea7bb(0x9c)]),!this[_0x3ea7bb(0x122)][_0x3ea7bb(0x14f)](_0x20b940)||!this['_unitOnClients'][_0x3ea7bb(0x7d)](_0x20b940)[_0x3ea7bb(0x14f)](_0x46e85e)){const _0x49ef6b=this[_0x3ea7bb(0x122)][_0x3ea7bb(0x7d)](_0x20b940)||new Set();_0x49ef6b['add'](_0x46e85e),this['_unitOnClients'][_0x3ea7bb(0x246)](_0x20b940,_0x49ef6b),this[_0x3ea7bb(0xa9)](_0x46e85e);}}),_0x3aede0||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xccda3f(0xbd)]],'isForwarded':!0x0});}[_0x5aa9fa(0xa9)](_0x1b63bf){const _0x1db267=_0x5aa9fa;this[_0x1db267(0x1d3)](_0x1b63bf);const _0x22be56=window[_0x1db267(0x2a7)](()=>{const _0x39ac79=_0x1db267;this['_unitOnClients'][_0x39ac79(0x2ff)](_0x4f888d=>{const _0x22301a=_0x39ac79;_0x4f888d[_0x22301a(0xe1)](_0x1b63bf);});},Le*0x2);this[_0x1db267(0x296)][_0x1db267(0x246)](_0x1b63bf,_0x22be56);}[_0x5aa9fa(0x1d3)](_0xe95e06){const _0x183a99=_0x5aa9fa;if(this[_0x183a99(0x296)][_0x183a99(0x14f)](_0xe95e06)){const _0x3ebeda=this[_0x183a99(0x296)][_0x183a99(0x7d)](_0xe95e06);_0x3ebeda&&window[_0x183a99(0xbe)](_0x3ebeda),this['_clearOtherTimers'][_0x183a99(0x246)](_0xe95e06,null);}}[_0x5aa9fa(0x160)](_0x1d2f72){const _0x4a953a=_0x5aa9fa,{memberID:_0x55db58,unitIDs:_0x593682}=_0x1d2f72;_0x593682[_0x4a953a(0x2ff)](_0x3d37db=>{const _0x4bf8c4=_0x4a953a;var _0x5568c5;const _0x5be488=this['_unitOnClients'][_0x4bf8c4(0x7d)](_0x3d37db);_0x5be488&&(_0x5be488['delete'](_0x55db58),(_0x5568c5=this[_0x4bf8c4(0x9f)](_0x3d37db))==null||_0x5568c5[_0x4bf8c4(0x2b6)](_0x5be488[_0x4bf8c4(0x1d9)]===0x0?u['UnitStatus'][_0x4bf8c4(0xfb)]:u[_0x4bf8c4(0x24c)][_0x4bf8c4(0x9c)]));}),this[_0x4a953a(0x1d3)](_0x55db58);}[_0x5aa9fa(0x2d2)](_0x5492b9){const _0x34ac32=_0x5aa9fa;this['_scheduleClearOtherTimer'](_0x5492b9[_0x34ac32(0x1e8)]);}[_0x5aa9fa(0x104)](_0x16efdb){const _0x117edd=_0x5aa9fa;localStorage[_0x117edd(0x23c)](Pe,JSON[_0x117edd(0x224)](_0x16efdb));}[_0x5aa9fa(0xd3)](){const _0x2f53aa=_0x5aa9fa;this[_0x2f53aa(0x2e0)]=window[_0x2f53aa(0x204)](()=>{const _0x1fb96d=_0x2f53aa;this[_0x1fb96d(0x104)]({'type':0x2,'memberID':this[_0x1fb96d(0x10a)]});},Le);}[_0x5aa9fa(0x9f)](_0x15326c){const _0xe9e671=_0x5aa9fa;return this[_0xe9e671(0x1c8)][_0xe9e671(0x14f)](_0x15326c)||this[_0xe9e671(0x1c8)][_0xe9e671(0x246)](_0x15326c,new d[(_0xe9e671(0x17a))](u[_0xe9e671(0x24c)]['NO_OTHER_CLIENTS_EDITING'])),this[_0xe9e671(0x1c8)]['get'](_0x15326c);}}var ke=(_0x4cae2a=>(_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x78)]=0x0]=_0x5aa9fa(0x78),_0x4cae2a[_0x4cae2a['OK']=0x1]='OK',_0x4cae2a[_0x4cae2a['INTERNAL_ERROR']=0x2]=_0x5aa9fa(0xa5),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0xd5)]=0x3]=_0x5aa9fa(0xd5),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x265)]=0x4]='NOT_FOUND',_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x2e2)]=0x5]=_0x5aa9fa(0x2e2),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x158)]=0x6]=_0x5aa9fa(0x158),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x87)]=0x7]=_0x5aa9fa(0x87),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x27c)]=0x8]=_0x5aa9fa(0x27c),_0x4cae2a[_0x4cae2a['COMPLETION_FINISHED']=0x9]=_0x5aa9fa(0x2a9),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x15c)]=0xa]='LOGIN_FAILED',_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x134)]=0x1389]=_0x5aa9fa(0x134),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x2ac)]=0x1771]=_0x5aa9fa(0x2ac),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x115)]=0x1772]=_0x5aa9fa(0x115),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x146)]=0x1773]=_0x5aa9fa(0x146),_0x4cae2a[_0x4cae2a['APPLY_REJECT']=0x1b59]=_0x5aa9fa(0x112),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x2a0)]=0x1b5a]=_0x5aa9fa(0x2a0),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x96)]=0x1b5b]=_0x5aa9fa(0x96),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x150)]=0x1b5c]=_0x5aa9fa(0x150),_0x4cae2a[_0x4cae2a['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x4cae2a[_0x4cae2a[_0x5aa9fa(0xd6)]=0x1f41]=_0x5aa9fa(0xd6),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0xc1)]=0x2329]=_0x5aa9fa(0xc1),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x2aa)]=0x232a]=_0x5aa9fa(0x2aa),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0xe8)]=0x232b]=_0x5aa9fa(0xe8),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x25b)]=0x232c]=_0x5aa9fa(0x25b),_0x4cae2a[_0x4cae2a['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5aa9fa(0x21f),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x2c9)]=0x2711]=_0x5aa9fa(0x2c9),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x2c7)]=0x2712]=_0x5aa9fa(0x2c7),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x2d4)]=0x2713]=_0x5aa9fa(0x2d4),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0xc7)]=0x2714]=_0x5aa9fa(0xc7),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0xa1)]=0x271a]=_0x5aa9fa(0xa1),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0xc8)]=0x271b]=_0x5aa9fa(0xc8),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x171)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x4cae2a[_0x4cae2a[_0x5aa9fa(0xba)]=0x2ee1]=_0x5aa9fa(0xba),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x269)]=0x2ee2]='INVALID_INVITE_CODE',_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x18f)]=0x2ee3]=_0x5aa9fa(0x18f),_0x4cae2a[_0x4cae2a['USER_NOT_INVITED_CODE']=0x2ee4]=_0x5aa9fa(0x2cb),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x167)]=0x2ee5]=_0x5aa9fa(0x167),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x29b)]=0x32c9]=_0x5aa9fa(0x29b),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0x260)]=0x32ca]=_0x5aa9fa(0x260),_0x4cae2a[_0x4cae2a[_0x5aa9fa(0xe6)]=0x32cb]=_0x5aa9fa(0xe6),_0x4cae2a[_0x4cae2a['UNRECOGNIZED']=-0x1]=_0x5aa9fa(0x1f2),_0x4cae2a))(ke||{}),_s=Object[_0x5aa9fa(0x24d)],hs=(_0x12ad99,_0x3ad93b,_0x2bd11c,_0x45be16)=>{const _0x25d4ac=_0x5aa9fa;for(var _0x29fad9=_0x45be16>0x1?void 0x0:_0x45be16?_s(_0x3ad93b,_0x2bd11c):_0x3ad93b,_0x1ffeed=_0x12ad99[_0x25d4ac(0x1fa)]-0x1,_0x31bdc0;_0x1ffeed>=0x0;_0x1ffeed--)(_0x31bdc0=_0x12ad99[_0x1ffeed])&&(_0x29fad9=_0x31bdc0(_0x29fad9)||_0x29fad9);return _0x29fad9;},de=(_0x9cee09,_0x4645a4)=>(_0x354dc4,_0x4c7353)=>_0x4645a4(_0x354dc4,_0x4c7353,_0x9cee09);exports[_0x5aa9fa(0x281)]=class extends a[_0x5aa9fa(0x196)]{constructor(_0x287d5d,_0x465a81,_0x2cf79f){const _0x5c79ea=_0x5aa9fa;super(),this[_0x5c79ea(0x2fb)]=_0x287d5d,this[_0x5c79ea(0x2f4)]=_0x465a81,this['_configService']=_0x2cf79f;}async[_0x5aa9fa(0x11b)](_0x951628,_0x332881,_0x2cdb9b,..._0x59de07){const _0x2a35cb=_0x5aa9fa;var _0x5f5280,_0x2de44e,_0x5b153f,_0x57baa6;const _0x3ca957=this[_0x2a35cb(0x2fb)][_0x2a35cb(0x2cf)]();if(!_0x3ca957)throw new Error(_0x2a35cb(0xf5));const _0xc2cfba=((_0x5f5280=this[_0x2a35cb(0x10f)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x5f5280:u[_0x2a35cb(0x99)])+'/'+_0x951628+_0x2a35cb(0x210)+_0x332881,_0x405567=new URL(window['location'][_0x2a35cb(0xdc)]),_0xcc3369={'scriptId':_0x951628,'runId':(_0x2de44e=_0x405567[_0x2a35cb(0x128)][_0x2a35cb(0x7d)](_0x2a35cb(0x1a6)))!=null?_0x2de44e:'','function':_0x332881,'unitId':_0x3ca957['getUnitId'](),'argsOfFunction':JSON[_0x2a35cb(0x224)](_0x59de07),'invokeId':(_0x5b153f=_0x2cdb9b[_0x2a35cb(0x2f5)])!=null?_0x5b153f:'','executionId':(_0x57baa6=_0x2cdb9b[_0x2a35cb(0x1b1)])!=null?_0x57baa6:''};try{const _0x3be1c6=await this['_httpService']['post'](_0xc2cfba,{'body':_0xcc3369});return _0x3be1c6[_0x2a35cb(0x88)][_0x2a35cb(0x117)]&&_0x3be1c6['body'][_0x2a35cb(0x117)][_0x2a35cb(0x7c)]!==ke['OK']?'Failed':_0x3be1c6['body'][_0x2a35cb(0x2e5)];}catch{return'Failed';}}},exports[_0x5aa9fa(0x281)]=hs([de(0x0,a[_0x5aa9fa(0x2e1)]),de(0x1,a[_0x5aa9fa(0x113)](q[_0x5aa9fa(0x2e6)])),de(0x2,a[_0x5aa9fa(0xf7)])],exports[_0x5aa9fa(0x281)]),exports[_0x5aa9fa(0x11c)]=je,exports[_0x5aa9fa(0xec)]=Ee,exports[_0x5aa9fa(0x1c3)]=Ae,exports[_0x5aa9fa(0x2b0)]=ls,exports[_0x5aa9fa(0x2fe)]=Be;
|
|
1
|
+
'use strict';const _0x532fcf=_0x4bf1;(function(_0x5da2ea,_0x5c371b){const _0x2deb91=_0x4bf1,_0x59c556=_0x5da2ea();while(!![]){try{const _0x1978a2=parseInt(_0x2deb91(0x19b))/0x1+-parseInt(_0x2deb91(0x1af))/0x2+-parseInt(_0x2deb91(0x1d7))/0x3*(-parseInt(_0x2deb91(0x210))/0x4)+parseInt(_0x2deb91(0x152))/0x5*(-parseInt(_0x2deb91(0x2de))/0x6)+-parseInt(_0x2deb91(0x358))/0x7*(-parseInt(_0x2deb91(0x258))/0x8)+-parseInt(_0x2deb91(0x360))/0x9*(parseInt(_0x2deb91(0x117))/0xa)+parseInt(_0x2deb91(0x278))/0xb*(parseInt(_0x2deb91(0x130))/0xc);if(_0x1978a2===_0x5c371b)break;else _0x59c556['push'](_0x59c556['shift']());}catch(_0x1dac0c){_0x59c556['push'](_0x59c556['shift']());}}}(_0x36f2,0xb8558));var Xe=Object['defineProperty'],Ge=(_0x7a56d2,_0x358d63,_0x180100)=>_0x358d63 in _0x7a56d2?Xe(_0x7a56d2,_0x358d63,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x180100}):_0x7a56d2[_0x358d63]=_0x180100,_=(_0x21a560,_0x4f90be,_0x4e084b)=>Ge(_0x21a560,typeof _0x4f90be!=_0x532fcf(0x331)?_0x4f90be+'':_0x4f90be,_0x4e084b);Object['defineProperty'](exports,Symbol[_0x532fcf(0x274)],{'value':_0x532fcf(0x272)});const u=require(_0x532fcf(0x2b4)),a=require(_0x532fcf(0x12c)),p=require(_0x532fcf(0x2a1)),q=require(_0x532fcf(0x1da)),b=require(_0x532fcf(0x2fd)),qe=require(_0x532fcf(0x151)),d=require(_0x532fcf(0x1ca)),Y=require(_0x532fcf(0x2a7)),m=require(_0x532fcf(0x174)),Te=require(_0x532fcf(0x25f)),g=require(_0x532fcf(0x27a)),$=require('rxjs/operators'),G=require(_0x532fcf(0x102)),P=require('react/jsx-runtime'),O=require(_0x532fcf(0x275)),T=require(_0x532fcf(0x1f3)),M=require('react'),Ke=require(_0x532fcf(0x165));var ze=Object[_0x532fcf(0x1c9)],Je=(_0x1e4944,_0x75e590,_0x4323a5,_0x2fdf03)=>{for(var _0x168af9=_0x2fdf03>0x1?void 0x0:_0x2fdf03?ze(_0x75e590,_0x4323a5):_0x75e590,_0x3e1870=_0x1e4944['length']-0x1,_0x478280;_0x3e1870>=0x0;_0x3e1870--)(_0x478280=_0x1e4944[_0x3e1870])&&(_0x168af9=_0x478280(_0x168af9)||_0x168af9);return _0x168af9;},Oe=(_0x4874d5,_0x3df28d)=>(_0x35ac24,_0x5eca4d)=>_0x3df28d(_0x35ac24,_0x5eca4d,_0x4874d5);let fe=class extends a[_0x532fcf(0x13f)]{constructor(_0x13a73d,_0xfbdca3){const _0x26e3f7=_0x532fcf;super(),this[_0x26e3f7(0x27c)]=_0x13a73d,this[_0x26e3f7(0x315)]=_0xfbdca3,this['_init']();}['_init'](){const _0xea83ce=_0x532fcf,_0x5c6b9d=this;this[_0xea83ce(0x35c)](this['_docClipboardService'][_0xea83ce(0x22b)]({'onBeforePasteImage':async _0xa530d=>{const _0x5da4fa=_0xea83ce,_0xd822e5=await _0x5c6b9d[_0x5da4fa(0x315)][_0x5da4fa(0x2f0)](_0xa530d);return _0xd822e5?{'source':_0xd822e5[_0x5da4fa(0x321)],'imageSourceType':_0xd822e5[_0x5da4fa(0x1c2)]}:null;}}));}};fe=Je([Oe(0x0,b[_0x532fcf(0x148)]),Oe(0x1,qe[_0x532fcf(0x323)])],fe);const Re=[_0x532fcf(0x2fc),_0x532fcf(0x1ac),_0x532fcf(0x113),'red300','blue400',_0x532fcf(0x1f5)];class Ce extends a[_0x532fcf(0x160)]{constructor(){const _0x73e484=_0x532fcf;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x73e484(0x2ee),0x0);}[_0x532fcf(0x2ff)](_0x337064){const _0xbba34a=_0x532fcf;if(this[_0xbba34a(0x246)][_0xbba34a(0x125)](_0x337064))return this[_0xbba34a(0x246)]['get'](_0x337064);const _0x2324cb=Re[this[_0xbba34a(0x2ee)]];return this[_0xbba34a(0x2ee)]=(this['_colorIndex']+0x1)%Re['length'],this[_0xbba34a(0x246)][_0xbba34a(0x208)](_0x337064,_0x2324cb),_0x2324cb;}}function we(_0x4dc1f1){const _0x5db828=_0x532fcf;let _0x5f4c5e='';for(const _0x52a9c8 of _0x4dc1f1){const {startOffset:_0x711e5b,endOffset:_0x3f129c,isActive:_0x2d7451,rangeType:_0x2345a0,segmentId:_0x1da6d5,segmentPage:_0x8aba4c}=_0x52a9c8;_0x5f4c5e[_0x5db828(0x212)]&&(_0x5f4c5e+=','),_0x5f4c5e+=_0x711e5b+':'+_0x3f129c+':'+(_0x2d7451?'1':'0')+':'+_0x2345a0+':'+_0x1da6d5+':'+_0x8aba4c;}return _0x5f4c5e;}function Ze(_0x1f5084){const _0x2be12d=_0x532fcf,_0x5940b5=_0x1f5084['split'](','),_0x4c580b=[];for(const _0x39e3b4 of _0x5940b5){const [_0x2aa1a4,_0x58a1a2,_0x1bdc84,_0x5cc19d,_0x22053e,_0x5d0992]=_0x39e3b4[_0x2be12d(0x34e)](':');_0x4c580b['push']({'startOffset':Number(_0x2aa1a4),'endOffset':Number(_0x58a1a2),'collapsed':_0x2aa1a4===_0x58a1a2,'isActive':_0x1bdc84==='1','rangeType':_0x5cc19d===a[_0x2be12d(0xf1)][_0x2be12d(0x2cf)]?a[_0x2be12d(0xf1)][_0x2be12d(0x2cf)]:a[_0x2be12d(0xf1)][_0x2be12d(0x250)],'segmentId':typeof _0x22053e=='string'?String(_0x22053e):'','segmentPage':Number(_0x5d0992!=null?_0x5d0992:-0x1)});}return _0x4c580b[_0x2be12d(0x177)](_0x1b9050=>_0x1b9050[_0x2be12d(0x353)])||(_0x4c580b[0x0][_0x2be12d(0x353)]=!0x0),_0x4c580b;}class pe extends a[_0x532fcf(0x13f)]{constructor(){const _0x4565e7=_0x532fcf;super(...arguments),_(this,_0x4565e7(0x2e0),new d[(_0x4565e7(0x325))](null)),_(this,_0x4565e7(0x2ec),this[_0x4565e7(0x2e0)][_0x4565e7(0x244)]());}[_0x532fcf(0x352)](_0x241ae0){const _0x171431=_0x532fcf,{unitID:_0x26a21f,memberID:_0x904bd0,textRanges:_0x103117}=_0x241ae0,_0x5caef4=we(_0x103117);if(_0x5caef4==='')return;const _0x558674={'unitID':_0x26a21f,'memberID':_0x904bd0,'selection':_0x5caef4};this[_0x171431(0x2e0)][_0x171431(0x28a)](_0x558674);}}var Qe=Object[_0x532fcf(0x1c9)],et=(_0xa87a4f,_0x323a97,_0x29e886,_0x2efbd7)=>{const _0x240824=_0x532fcf;for(var _0x3626b1=_0x2efbd7>0x1?void 0x0:_0x2efbd7?Qe(_0x323a97,_0x29e886):_0x323a97,_0x2412cb=_0xa87a4f[_0x240824(0x212)]-0x1,_0x2c9d2c;_0x2412cb>=0x0;_0x2412cb--)(_0x2c9d2c=_0xa87a4f[_0x2412cb])&&(_0x3626b1=_0x2c9d2c(_0x3626b1)||_0x3626b1);return _0x3626b1;},L=(_0x18352c,_0x164199)=>(_0x3d11e1,_0x331eb6)=>_0x164199(_0x3d11e1,_0x331eb6,_0x18352c);const tt=0x12c,st=0x64;let Se=class extends a['RxDisposable']{constructor(_0x2557d7,_0x3f49ff,_0x1baad6,_0x42b039,_0x2d40b6,_0x4e082f,_0x295a34,_0x2d3bf3,_0x2fa0c4){const _0x5d0556=_0x532fcf;super(),_(this,'_online',!0x1),_(this,_0x5d0556(0x281),!0x1),_(this,_0x5d0556(0xfc),new d[(_0x5d0556(0x325))](new Map())),_(this,_0x5d0556(0x312),this[_0x5d0556(0xfc)]['asObservable']()),_(this,_0x5d0556(0x133),new d[(_0x5d0556(0x325))]([])),_(this,_0x5d0556(0xfd),this[_0x5d0556(0x133)][_0x5d0556(0x172)](d[_0x5d0556(0x18b)](tt))),_(this,_0x5d0556(0x167),a[_0x5d0556(0x297)](_0x1d4eac=>{const _0x2c103c=_0x5d0556,_0x21c08a={'eventID':m[_0x2c103c(0x273)][_0x2c103c(0x356)],'data':{'unitID':this[_0x2c103c(0x21b)],'memberID':this[_0x2c103c(0x1f9)][_0x2c103c(0x2f5)](),'selection':we(_0x1d4eac)}};this['_session']['send'](_0x21c08a,this[_0x2c103c(0x21b)]);},st)),(this['unitID']=_0x2557d7,this[_0x5d0556(0x1f9)]=_0x3f49ff,this[_0x5d0556(0x20b)]=_0x1baad6,this[_0x5d0556(0x2d5)]=_0x42b039,this[_0x5d0556(0x12d)]=_0x2d40b6,this['_syncEditingCollabCursorService']=_0x4e082f,this[_0x5d0556(0x14a)]=_0x295a34,this[_0x5d0556(0x183)]=_0x2d3bf3,this[_0x5d0556(0x2b7)]=_0x2fa0c4);}get[_0x532fcf(0x1a3)](){const _0x33e3d3=_0x532fcf;return this[_0x33e3d3(0xfc)][_0x33e3d3(0x361)]();}get[_0x532fcf(0x284)](){const _0x4689bc=_0x532fcf;return this[_0x4689bc(0x133)][_0x4689bc(0x361)]();}[_0x532fcf(0x137)](){const _0x5a4de3=_0x532fcf;super['dispose'](),this[_0x5a4de3(0xfc)]['next'](new Map()),this['_cursorInfo$'][_0x5a4de3(0x347)](),this[_0x5a4de3(0x133)][_0x5a4de3(0x28a)]([]),this[_0x5a4de3(0x133)]['complete']();}[_0x532fcf(0x205)](){const _0x489479=_0x532fcf;this[_0x489479(0x281)]||(this['_init']=!0x0,this['_session'][_0x489479(0x1aa)]['pipe'](d[_0x489479(0x2a5)](this['dispose$']))[_0x489479(0x1ce)](_0xec2892=>{const _0x3fd9e7=_0x489479;_0xec2892===u[_0x3fd9e7(0x36f)][_0x3fd9e7(0x227)]?this[_0x3fd9e7(0x18e)]():this[_0x3fd9e7(0x17b)]();}),this[_0x489479(0x1f9)][_0x489479(0xf9)][_0x489479(0x172)](d[_0x489479(0x2a5)](this[_0x489479(0x147)]))['subscribe'](_0x3aa622=>{const _0x2d34bc=_0x489479,_0x3b1db8=_0x3aa622[_0x2d34bc(0x294)];_0x3b1db8===m[_0x2d34bc(0x273)][_0x2d34bc(0x356)]&&this['_onCursorUpdate'](_0x3aa622),_0x3b1db8===m['CollaborationEvent'][_0x2d34bc(0x157)]&&this[_0x2d34bc(0x23d)](_0x3aa622);}),this['disposeWithMe'](this[_0x489479(0x2b7)][_0x489479(0x1e3)](_0x4d2fa8=>{const _0x4ca485=_0x489479,_0x2540e1=_0x4d2fa8[_0x4ca485(0x222)];_0x2540e1!=null&&this['_online']&&_0x4d2fa8['id']===Y[_0x4ca485(0x18a)]['id']&&_0x2540e1[_0x4ca485(0x26e)]===this[_0x4ca485(0x21b)]&&_0x2540e1['isEditing']===!0x1&&_0x2540e1[_0x4ca485(0x1b2)]['length']>0x0&&this['_updateLocalCursor'](_0x2540e1[_0x4ca485(0x1b2)]);})),this[_0x489479(0x369)][_0x489479(0x2ec)]['pipe'](d[_0x489479(0x2a5)](this['dispose$']))[_0x489479(0x1ce)](_0x5e640b=>{const _0x3e796e=_0x489479;if((_0x5e640b==null?void 0x0:_0x5e640b[_0x3e796e(0x21b)])!==this['unitID'])return;const _0x469e7e={'eventID':m[_0x3e796e(0x273)][_0x3e796e(0x356)],'data':_0x5e640b};this[_0x3e796e(0x2df)](_0x469e7e);}),this[_0x489479(0x35c)](this[_0x489479(0x2b7)][_0x489479(0x1e3)](_0x3e6908=>{const _0x51d8cd=_0x489479;if(_0x3e6908[_0x51d8cd(0x222)]==null)return;const _0x34b4c8=_0x3e6908['params'];if(_0x3e6908['id']!==Y[_0x51d8cd(0x1ab)]['id']||_0x34b4c8[_0x51d8cd(0x26e)]!==this[_0x51d8cd(0x21b)])return;const _0x499b41={'id':'doc.mutation.rich-text-editing','params':_0x34b4c8},_0x4e8780=this[_0x51d8cd(0x1a3)];for(const [_0x509ceb,_0x589b8a]of _0x4e8780){const _0x56abed={'id':_0x51d8cd(0x270),'params':{'unitId':this[_0x51d8cd(0x21b)],'actions':null,'textRanges':_0x589b8a['ranges']}},_0x4f3a07=this[_0x51d8cd(0x14a)][_0x51d8cd(0x129)](_0x499b41,_0x56abed,!0x1);if(m[_0x51d8cd(0x14b)](_0x4f3a07))throw _0x4f3a07[_0x51d8cd(0x1f6)];_0x4e8780[_0x51d8cd(0x208)](_0x509ceb,{..._0x589b8a,'ranges':_0x4f3a07[_0x51d8cd(0x362)][_0x51d8cd(0x222)][_0x51d8cd(0x2c7)]});}queueMicrotask(()=>{const _0x3ddffb=_0x51d8cd;this[_0x3ddffb(0xfc)][_0x3ddffb(0x28a)](_0x4e8780);});})));}[_0x532fcf(0x2df)](_0x12e69b){const _0x234e57=_0x532fcf;var _0x5e829d,_0x5b5b6c;const {memberID:_0x3eddaa,selection:_0x1f3181}=_0x12e69b['data'],_0x4afd5c=Ze(_0x1f3181),_0x4d085a=(_0x5b5b6c=(_0x5e829d=this[_0x234e57(0x12d)][_0x234e57(0x22f)](this[_0x234e57(0x21b)],_0x3eddaa))==null?void 0x0:_0x5e829d['name'])!=null?_0x5b5b6c:_0x234e57(0x291),_0x1bd340={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3eddaa),'name':_0x4d085a,'ranges':_0x4afd5c},_0x545fc3=this[_0x234e57(0x1a3)];_0x545fc3[_0x234e57(0x208)](_0x3eddaa,_0x1bd340),this['_cursorInfo$']['next'](_0x545fc3);}['_onCursorDelete'](_0x2c1e52){const _0x280ec9=_0x532fcf,{memberID:_0x16a0f0}=_0x2c1e52[_0x280ec9(0x364)],_0xaafad0=this[_0x280ec9(0x1a3)];_0xaafad0[_0x280ec9(0x2a3)](_0x16a0f0),this['_cursorInfo$'][_0x280ec9(0x28a)](_0xaafad0);}[_0x532fcf(0x18e)](){const _0x44886a=_0x532fcf;var _0x2664d3;if(this[_0x44886a(0x267)]=!0x0,((_0x2664d3=this[_0x44886a(0x183)][_0x44886a(0x20e)]())==null?void 0x0:_0x2664d3['getUnitId']())!==this[_0x44886a(0x21b)])return;const _0x15d255=this[_0x44886a(0x20b)][_0x44886a(0x2b0)](Y[_0x44886a(0x136)])[_0x44886a(0x263)]();Array[_0x44886a(0x10b)](_0x15d255)&&_0x15d255[_0x44886a(0x212)]>0x0&&this[_0x44886a(0x167)](_0x15d255);}[_0x532fcf(0x17b)](){const _0x16a75c=_0x532fcf;this[_0x16a75c(0x267)]=!0x1;}};Se=et([L(0x2,a['Inject'](a[_0x532fcf(0x282)])),L(0x3,a[_0x532fcf(0x2ce)](Ce)),L(0x4,a[_0x532fcf(0x2ce)](u[_0x532fcf(0x145)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x532fcf(0x17d)]),L(0x7,a[_0x532fcf(0x149)]),L(0x8,a[_0x532fcf(0x355)])],Se);var nt=Object[_0x532fcf(0x1c9)],it=(_0x55eed,_0x1c61e8,_0x1bed0e,_0x403862)=>{for(var _0x18e107=_0x403862>0x1?void 0x0:_0x403862?nt(_0x1c61e8,_0x1bed0e):_0x1c61e8,_0x3cdba8=_0x55eed['length']-0x1,_0x2bbd7c;_0x3cdba8>=0x0;_0x3cdba8--)(_0x2bbd7c=_0x55eed[_0x3cdba8])&&(_0x18e107=_0x2bbd7c(_0x18e107)||_0x18e107);return _0x18e107;},A=(_0x25028a,_0x3fa58f)=>(_0x9d6402,_0x50cb84)=>_0x3fa58f(_0x9d6402,_0x50cb84,_0x25028a);const rt=0x12c,ot=0x64,at=()=>{let _0x5437fd=[],_0x4d2d3a=!0x1;return _0x5a1d6f=>{const _0x38a004=_0x4bf1;_0x5437fd[_0x38a004(0x2e2)](_0x5a1d6f),_0x4d2d3a||(_0x4d2d3a=!0x0,setTimeout(()=>{_0x5437fd['forEach'](_0x317ea5=>_0x317ea5()),_0x5437fd=[],_0x4d2d3a=!0x1;}));};};let Ie=class extends a[_0x532fcf(0x13f)]{constructor(_0x6eaeec,_0xa99cdf,_0x42b368,_0x41c74e,_0x250adf,_0x160dec,_0x10870c,_0xae96d0){const _0xcbe8de=_0x532fcf;super(),_(this,_0xcbe8de(0x267),!0x1),_(this,_0xcbe8de(0x281),!0x1),_(this,_0xcbe8de(0xfc),new d[(_0xcbe8de(0x325))](new Map())),_(this,'cursorInfo$',this[_0xcbe8de(0xfc)][_0xcbe8de(0x244)]()),_(this,_0xcbe8de(0x133),new d[(_0xcbe8de(0x325))]([])),_(this,_0xcbe8de(0xfd),this['_roomMembers$'][_0xcbe8de(0x172)](d[_0xcbe8de(0x18b)](rt))),_(this,_0xcbe8de(0x167),a[_0xcbe8de(0x297)]((_0x223ef6,_0x315985)=>{const _0x384af9=_0xcbe8de,_0x3b1bb1={'eventID':m[_0x384af9(0x273)][_0x384af9(0x356)],'data':{'unitID':this[_0x384af9(0x21b)],'memberID':this[_0x384af9(0x1f9)][_0x384af9(0x2f5)](),'selection':Te['serializeRangeWithSheet'](_0x223ef6,_0x315985[_0x384af9(0x2b2)])}};this[_0x384af9(0x1f9)][_0x384af9(0x2bb)](_0x3b1bb1,this[_0x384af9(0x21b)]);},ot)),(this[_0xcbe8de(0x21b)]=_0x6eaeec,this['_session']=_0xa99cdf,this[_0xcbe8de(0x20b)]=_0x42b368,this['_colorAssignService']=_0x41c74e,this[_0xcbe8de(0x12d)]=_0x250adf,this[_0xcbe8de(0x183)]=_0x160dec,this[_0xcbe8de(0x2b7)]=_0x10870c,this[_0xcbe8de(0x241)]=_0xae96d0);}get[_0x532fcf(0x1a3)](){const _0xa8d783=_0x532fcf;return this[_0xa8d783(0xfc)][_0xa8d783(0x361)]();}get[_0x532fcf(0x284)](){const _0x58f739=_0x532fcf;return this['_roomMembers$'][_0x58f739(0x361)]();}[_0x532fcf(0x137)](){const _0x3c4d60=_0x532fcf;super[_0x3c4d60(0x137)](),this[_0x3c4d60(0xfc)][_0x3c4d60(0x28a)](new Map()),this[_0x3c4d60(0xfc)][_0x3c4d60(0x347)](),this[_0x3c4d60(0x133)][_0x3c4d60(0x28a)]([]),this[_0x3c4d60(0x133)][_0x3c4d60(0x347)]();}[_0x532fcf(0x205)](){const _0x3c2dfb=_0x532fcf;this[_0x3c2dfb(0x281)]||(this['_init']=!0x0,this[_0x3c2dfb(0x1f9)]['sessionStatus$'][_0x3c2dfb(0x172)](d['takeUntil'](this[_0x3c2dfb(0x147)]))[_0x3c2dfb(0x1ce)](_0x3884ed=>{const _0x17174d=_0x3c2dfb;_0x3884ed===u[_0x17174d(0x36f)][_0x17174d(0x227)]?this[_0x17174d(0x18e)]():this[_0x17174d(0x17b)]();}),this[_0x3c2dfb(0x1f9)][_0x3c2dfb(0xf9)][_0x3c2dfb(0x172)](d[_0x3c2dfb(0x2a5)](this['dispose$']))['subscribe'](_0xca1c9c=>{const _0xbd4b40=_0x3c2dfb,_0x811010=_0xca1c9c[_0xbd4b40(0x294)];_0x811010===m[_0xbd4b40(0x273)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0xca1c9c),_0x811010===m[_0xbd4b40(0x273)]['USERS_LEAVE']&&this[_0xbd4b40(0x23d)](_0xca1c9c);}),this[_0x3c2dfb(0x214)](),this[_0x3c2dfb(0x35c)](this['_commandService']['onCommandExecuted'](_0x139743=>{const _0x1e7d84=_0x3c2dfb;if(this[_0x1e7d84(0x267)]&&_0x139743['id']===g[_0x1e7d84(0x28d)]['id']&&_0x139743[_0x1e7d84(0x222)]['unitId']===this[_0x1e7d84(0x21b)]){const _0x2db897=_0x139743[_0x1e7d84(0x222)];this['_updateLocalCursor'](_0x2db897[_0x1e7d84(0x24e)],_0x2db897['selections'][0x0]);}})));}['_onCursorUpdate'](_0x21d266){const _0x4748a5=_0x532fcf;var _0x35d77e,_0x2a05d3;const {memberID:_0x3ec2bc,selection:_0xbf296}=_0x21d266[_0x4748a5(0x364)],{sheetName:_0x2b00af,range:_0x11ae06}=Te[_0x4748a5(0x313)](_0xbf296),_0x58d928={'name':(_0x2a05d3=(_0x35d77e=this[_0x4748a5(0x12d)][_0x4748a5(0x22f)](this[_0x4748a5(0x21b)],_0x3ec2bc))==null?void 0x0:_0x35d77e[_0x4748a5(0x240)])!=null?_0x2a05d3:_0x4748a5(0x291),'range':this[_0x4748a5(0x23b)](_0x2b00af,_0x11ae06),'sheetID':_0x2b00af,'color':this['_colorAssignService'][_0x4748a5(0x2ff)](_0x3ec2bc),'selection':_0xbf296},_0x13d0b8=this[_0x4748a5(0x1a3)];_0x13d0b8[_0x4748a5(0x208)](_0x3ec2bc,_0x58d928),this[_0x4748a5(0xfc)][_0x4748a5(0x28a)](_0x13d0b8);}[_0x532fcf(0x23d)](_0xa71692){const _0x1d96f6=_0x532fcf,{memberID:_0x570042}=_0xa71692[_0x1d96f6(0x364)],_0x36393a=this[_0x1d96f6(0x1a3)];_0x36393a[_0x1d96f6(0x2a3)](_0x570042),this[_0x1d96f6(0xfc)][_0x1d96f6(0x28a)](_0x36393a);}[_0x532fcf(0x23b)](_0x574f11,_0x2ce968){const _0x3013a8=_0x532fcf;var _0x24274b,_0x30dbdb;const _0x8570ba=(_0x30dbdb=(_0x24274b=this[_0x3013a8(0x183)][_0x3013a8(0x36d)](this[_0x3013a8(0x21b)]))==null?void 0x0:_0x24274b[_0x3013a8(0xf3)](_0x574f11))==null?void 0x0:_0x30dbdb[_0x3013a8(0x206)]();return(_0x8570ba==null?void 0x0:_0x8570ba[_0x3013a8(0x14c)](_0x684ca6=>a['Rectangle'][_0x3013a8(0x1a4)](_0x684ca6,_0x2ce968)))||_0x2ce968;}[_0x532fcf(0x214)](){const _0x459bc9=_0x532fcf,_0x4739c3=new a[(_0x459bc9(0x1a7))](),_0x7250a7=at(),_0x5a786e=()=>{const _0x259ee4=_0x459bc9;_0x4739c3[_0x259ee4(0x137)]();const _0x920b=(_0x2b595d,_0x4a0005,_0x23abd1,_0x1b5924)=>{const _0x912d73=_0x259ee4;let _0x3d4310=[];switch(_0x2b595d['id']){case g['EffectRefRangId'][_0x912d73(0x1c6)]:{_0x3d4310=g[_0x912d73(0x311)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x36b)]:{_0x3d4310=g[_0x912d73(0x163)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x343)]:{_0x3d4310=g['handleInsertCol'](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x111)]:{_0x3d4310=g[_0x912d73(0x16b)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x29e)]:{_0x3d4310=g[_0x912d73(0x25e)](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x24c)]:{_0x3d4310=g['handleInsertRow'](_0x2b595d,_0x1b5924);break;}case g['EffectRefRangId']['MoveRangeCommandId']:{_0x3d4310=g[_0x912d73(0x170)](_0x2b595d,_0x1b5924);break;}case g['EffectRefRangId'][_0x912d73(0x288)]:{_0x3d4310=g['handleIRemoveCol'](_0x2b595d,_0x1b5924);break;}case g[_0x912d73(0x18d)][_0x912d73(0x2d1)]:{_0x3d4310=g[_0x912d73(0x2a0)](_0x2b595d,_0x1b5924);break;}}const _0x48f812=g['runRefRangeMutations'](_0x3d4310,_0x1b5924),_0x2ce49f=this[_0x912d73(0x1a3)][_0x912d73(0x2b0)](_0x4a0005);if(_0x2ce49f&&_0x48f812){const _0x8f4a83={..._0x2ce49f,'range':_0x48f812};this['cursorInfo'][_0x912d73(0x208)](_0x4a0005,_0x8f4a83),_0x7250a7(()=>{const _0x42beb9=_0x912d73,_0x3b398d=this[_0x42beb9(0x241)][_0x42beb9(0x20a)](_0x48f812,_0x54e031=>(_0x3b398d[_0x42beb9(0x137)](),_0x920b(_0x54e031,_0x4a0005,_0x23abd1,_0x48f812)));_0x4739c3[_0x42beb9(0x10a)](_0x3b398d);});}return{'redos':[],'undos':[]};};this[_0x259ee4(0x1a3)][_0x259ee4(0x344)]((_0x4eb8cd,_0x4dbe68)=>{const _0x380cf1=_0x259ee4,{range:_0x14c40e,sheetID:_0x4e6477}=_0x4eb8cd,_0x2928d4=this[_0x380cf1(0x241)][_0x380cf1(0x20a)](_0x14c40e,_0x10087d=>(_0x2928d4['dispose'](),_0x920b(_0x10087d,_0x4dbe68,_0x4e6477,_0x14c40e)));_0x4739c3[_0x380cf1(0x10a)](_0x2928d4);});};this[_0x459bc9(0x35c)](a['toDisposable'](this[_0x459bc9(0xfc)][_0x459bc9(0x1ce)](()=>{_0x5a786e();})));}[_0x532fcf(0x18e)](){const _0x249337=_0x532fcf;var _0x2e3f61,_0x17a0df;if(this[_0x249337(0x267)]=!0x0,((_0x2e3f61=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x2e3f61['getUnitId']())!==this['unitID'])return;const _0x3264d7=(_0x17a0df=this[_0x249337(0x20b)]['get'](g['SheetsSelectionsService'])[_0x249337(0x2c8)]())==null?void 0x0:_0x17a0df[0x0],_0x411297=this[_0x249337(0x183)][_0x249337(0x1eb)](a[_0x249337(0x296)]['UNIVER_SHEET'])[_0x249337(0x2d8)]();_0x3264d7&&_0x411297&&this[_0x249337(0x167)](_0x411297['getSheetId'](),_0x3264d7);}['_toggleOffline'](){const _0xd116a4=_0x532fcf;this[_0xd116a4(0x267)]=!0x1;}};Ie=it([A(0x2,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),A(0x3,a[_0x532fcf(0x2ce)](Ce)),A(0x4,a[_0x532fcf(0x2ce)](u['MemberService'])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x532fcf(0x355)]),A(0x7,a['Inject'](g[_0x532fcf(0x1f8)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x500b18,_0x31ba8f,_0x5cf290,_0x3159c5)=>{const _0x1ddfea=_0x532fcf;for(var _0x5dd0dc=_0x3159c5>0x1?void 0x0:_0x3159c5?ct(_0x31ba8f,_0x5cf290):_0x31ba8f,_0x15fb05=_0x500b18[_0x1ddfea(0x212)]-0x1,_0x122cfe;_0x15fb05>=0x0;_0x15fb05--)(_0x122cfe=_0x500b18[_0x15fb05])&&(_0x5dd0dc=_0x122cfe(_0x5dd0dc)||_0x5dd0dc);return _0x5dd0dc;},ie=(_0x22c2dc,_0x1254be)=>(_0xe3e10d,_0x249ffd)=>_0x1254be(_0xe3e10d,_0x249ffd,_0x22c2dc);let x=class extends a[_0x532fcf(0x13f)]{constructor(_0x155c5b,_0x3456cb,_0x3f8baa){const _0x56d46b=_0x532fcf;super(),_(this,_0x56d46b(0x128),new Map()),_(this,_0x56d46b(0x301),new d[(_0x56d46b(0x176))]()),(this[_0x56d46b(0x183)]=_0x155c5b,this['_injector']=_0x3456cb,this[_0x56d46b(0x1a6)]=_0x3f8baa,this[_0x56d46b(0x281)]());}['dispose'](){const _0x4a6b09=_0x532fcf;super[_0x4a6b09(0x137)](),this[_0x4a6b09(0x301)][_0x4a6b09(0x347)](),this[_0x4a6b09(0x128)][_0x4a6b09(0x344)](_0x58c127=>_0x58c127['dispose']());}[_0x532fcf(0xf5)](_0x37f010){const _0x554815=_0x532fcf;return this[_0x554815(0x128)][_0x554815(0x125)](_0x37f010)?this[_0x554815(0x128)][_0x554815(0x2b0)](_0x37f010)[_0x554815(0x312)]:this[_0x554815(0x301)][_0x554815(0x172)](d['filter'](_0x4ce09b=>_0x4ce09b[_0x554815(0x21b)]===_0x37f010),d[_0x554815(0x217)](_0x3cb2b4=>_0x3cb2b4[_0x554815(0x312)]));}[_0x532fcf(0x281)](){const _0x49bb0d=_0x532fcf;this['_univerInstanceService'][_0x49bb0d(0x155)](a[_0x49bb0d(0x296)]['UNIVER_SHEET'])['pipe'](d[_0x49bb0d(0x2a5)](this[_0x49bb0d(0x147)]))[_0x49bb0d(0x1ce)](async _0x12af0f=>{const _0x249b51=_0x49bb0d,_0xaa6cb0=_0x12af0f[_0x249b51(0x1d6)](),_0x46384e=await this[_0x249b51(0x30b)](_0xaa6cb0);this[_0x249b51(0x301)][_0x249b51(0x28a)](_0x46384e),this['_entities'][_0x249b51(0x208)](_0xaa6cb0,_0x46384e);}),this[_0x49bb0d(0x183)]['getTypeOfUnitAdded$'](a[_0x49bb0d(0x296)][_0x49bb0d(0x2a4)])[_0x49bb0d(0x172)](d['takeUntil'](this[_0x49bb0d(0x147)]))['pipe'](d[_0x49bb0d(0x181)](_0x32cb3=>!_0x32cb3['getUnitId']()[_0x49bb0d(0x1db)]('__')))[_0x49bb0d(0x1ce)](async _0x5acf89=>{const _0x169ebe=_0x49bb0d,_0x24c4df=_0x5acf89[_0x169ebe(0x1d6)](),_0x8fdb32=await this[_0x169ebe(0x2f4)](_0x24c4df);this[_0x169ebe(0x301)][_0x169ebe(0x28a)](_0x8fdb32),this[_0x169ebe(0x128)][_0x169ebe(0x208)](_0x24c4df,_0x8fdb32);}),d[_0x49bb0d(0x2fe)](this['_univerInstanceService'][_0x49bb0d(0x2c2)](a[_0x49bb0d(0x296)][_0x49bb0d(0x2a4)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x49bb0d(0x296)][_0x49bb0d(0x196)]))[_0x49bb0d(0x172)](d[_0x49bb0d(0x2a5)](this['dispose$']))['subscribe'](_0x476c3c=>{const _0xbf7e29=_0x49bb0d,_0x1bc5ee=_0x476c3c['getUnitId'](),_0x2bbda4=this[_0xbf7e29(0x128)][_0xbf7e29(0x2b0)](_0x1bc5ee);_0x2bbda4&&(_0x2bbda4[_0xbf7e29(0x137)](),this[_0xbf7e29(0x128)][_0xbf7e29(0x2a3)](_0x1bc5ee));});}async['_startSheetCollabCursor'](_0x39d9c3){const _0x3c0149=_0x532fcf,_0x41cc3e=await this[_0x3c0149(0x1a6)][_0x3c0149(0x22a)](_0x39d9c3),_0x18608a=this[_0x3c0149(0x20b)][_0x3c0149(0x322)](Ie,_0x39d9c3,_0x41cc3e);return _0x18608a[_0x3c0149(0x205)](),_0x18608a;}async[_0x532fcf(0x2f4)](_0x241337){const _0x2114a3=_0x532fcf,_0x3f63ea=await this[_0x2114a3(0x1a6)][_0x2114a3(0x22a)](_0x241337),_0x1def79=this[_0x2114a3(0x20b)][_0x2114a3(0x322)](Se,_0x241337,_0x3f63ea);return _0x1def79[_0x2114a3(0x205)](),_0x1def79;}};x=lt([ie(0x0,a[_0x532fcf(0x149)]),ie(0x1,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),ie(0x2,a['Inject'](u[_0x532fcf(0x236)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x3e7d8a,_0x1afade){const _0x19148d=_0x532fcf;let {radius:_0x38932a,width:_0xfe5590,height:_0x4da2d3}=_0x1afade;_0x38932a=_0x38932a!=null?_0x38932a:0x0,_0xfe5590=_0xfe5590!=null?_0xfe5590:0x1e,_0x4da2d3=_0x4da2d3!=null?_0x4da2d3:0x1e;let _0x297eb7=0x0,_0x18c1fd=0x0,_0x5a9f80=0x0;_0x297eb7=_0x18c1fd=_0x5a9f80=Math[_0x19148d(0x35a)](_0x38932a,_0xfe5590/0x2,_0x4da2d3/0x2),_0x3e7d8a[_0x19148d(0x29c)](),_0x3e7d8a[_0x19148d(0x10d)](_0x297eb7,0x0),_0x3e7d8a[_0x19148d(0x12b)](_0xfe5590-_0x18c1fd,0x0),_0x3e7d8a['arc'](_0xfe5590-_0x18c1fd,_0x18c1fd,_0x18c1fd,Math['PI']*0x3/0x2,0x0,!0x1),_0x3e7d8a[_0x19148d(0x12b)](_0xfe5590,_0x4da2d3-_0x5a9f80),_0x3e7d8a[_0x19148d(0x100)](_0xfe5590-_0x5a9f80,_0x4da2d3-_0x5a9f80,_0x5a9f80,0x0,Math['PI']/0x2,!0x1),_0x3e7d8a[_0x19148d(0x12b)](0x0,_0x4da2d3),_0x3e7d8a[_0x19148d(0x12b)](0x0,_0x297eb7),_0x3e7d8a[_0x19148d(0x100)](_0x297eb7,_0x297eb7,_0x297eb7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3e7d8a[_0x19148d(0x16f)](),_0x1afade[_0x19148d(0x150)]&&(_0x3e7d8a[_0x19148d(0x1e1)](),_0x3e7d8a[_0x19148d(0x26f)]=_0x1afade[_0x19148d(0x150)],_0x1afade['fillRule']==='evenodd'?_0x3e7d8a[_0x19148d(0x150)](_0x19148d(0x326)):_0x3e7d8a[_0x19148d(0x150)](),_0x3e7d8a[_0x19148d(0x1d2)]());}class te extends p[_0x532fcf(0x1c1)]{constructor(_0x276e7c,_0x3a0f94){const _0x4ee3dc=_0x532fcf;super(_0x276e7c,_0x3a0f94),_(this,_0x4ee3dc(0x132)),_(this,'text'),(this[_0x4ee3dc(0x132)]=_0x3a0f94==null?void 0x0:_0x3a0f94[_0x4ee3dc(0x132)],this[_0x4ee3dc(0x27b)]=_0x3a0f94==null?void 0x0:_0x3a0f94['text']);}static[_0x532fcf(0x194)](_0x2be765,_0xff433b){const _0xd6ab82=_0x532fcf,{text:_0x28a5e1,color:_0x2d8b60}=_0xff433b;_0x2be765[_0xd6ab82(0x1e1)](),_0x2be765['font']=_0xd6ab82(0x122);const _0x4efa26=_0x2be765[_0xd6ab82(0x1d9)](_0x28a5e1)[_0xd6ab82(0x309)],_0x4bc021=Math[_0xd6ab82(0x35a)](_0x4efa26+0x2*re,De);ht(_0x2be765,{'height':K,'radius':0x4,'width':_0x4bc021,'fill':_0x2d8b60}),_0x2be765[_0xd6ab82(0x26f)]=_0xd6ab82(0x182);const _0x3332de=re,_0x2fba90=K-_t,_0x25f520=De-0x2*re;if(_0x4efa26>_0x25f520){let _0x134fea='',_0x20faac=0x0;for(const _0x447cf3 of _0x28a5e1){const _0x345e2b=_0x2be765[_0xd6ab82(0x1d9)](_0x447cf3)['width'];if(_0x20faac+_0x345e2b<=_0x25f520-_0x2be765[_0xd6ab82(0x1d9)](_0xd6ab82(0x279))[_0xd6ab82(0x309)])_0x134fea+=_0x447cf3,_0x20faac+=_0x345e2b;else{_0x134fea+=_0xd6ab82(0x279);break;}}_0x2be765[_0xd6ab82(0x26a)](_0x134fea,_0x3332de,_0x2fba90);}else _0x2be765['fillText'](_0x28a5e1,_0x3332de,_0x2fba90);_0x2be765[_0xd6ab82(0x1d2)]();}['_draw'](_0x762973){te['drawWith'](_0x762973,this);}}const oe=_0x532fcf(0x33a),ut=_0x532fcf(0x228),dt=_0x532fcf(0x34f),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x532fcf(0x17a);class Ue{constructor(_0x4454b9,_0x1c57a2,_0x622f0,_0x2decf4){const _0x1b3858=_0x532fcf;_(this,'_shapes',[]),_(this,_0x1b3858(0x28c),null),_(this,_0x1b3858(0x293),null),_(this,_0x1b3858(0x1ed),null),_(this,_0x1b3858(0x1c4),null),_(this,_0x1b3858(0x249),null),(this[_0x1b3858(0xe7)]=_0x4454b9,this[_0x1b3858(0x123)]=_0x1c57a2,this['_docSkeleton']=_0x622f0,this[_0x1b3858(0x18f)]=_0x2decf4,this[_0x1b3858(0x1be)]());}set[_0x532fcf(0x124)](_0x1bd964){const _0x56395b=_0x532fcf;_0x1bd964?(this[_0x56395b(0x1ed)]&&this['_anchorDot'][_0x56395b(0x1c5)](),this[_0x56395b(0x293)]&&this[_0x56395b(0x293)]['show']()):(this[_0x56395b(0x1ed)]&&this['_anchorDot'][_0x56395b(0x1c7)](),this[_0x56395b(0x293)]&&this[_0x56395b(0x293)][_0x56395b(0x1c5)]());}['dispose'](){const _0x34750f=_0x532fcf;for(const _0x259e05 of this[_0x34750f(0x184)])_0x259e05['dispose']();this[_0x34750f(0x293)]&&this['_textBubble'][_0x34750f(0x137)](),this[_0x34750f(0x1ed)]&&this[_0x34750f(0x1ed)]['dispose'](),this[_0x34750f(0x28c)]&&this[_0x34750f(0x28c)][_0x34750f(0x137)](),this[_0x34750f(0x249)]&&this[_0x34750f(0x249)]();}[_0x532fcf(0x1be)](){const _0x37b3ce=_0x532fcf;var _0x52f1ac;const {_docSkeleton:_0x4ed2e4,_document:_0x51b957}=this,{color:_0x14cccb,name:_0x4f10a2,ranges:_0x3e7b98}=this['_cursor'],_0x5bdb64=_0x51b957[_0x37b3ce(0x197)](),{docsLeft:_0x40ecbf,docsTop:_0x3f9bdf}=_0x5bdb64,_0x7ab8ab=new b['NodePositionConvertToCursor'](_0x5bdb64,_0x4ed2e4);for(const {startOffset:_0x4f05d4,endOffset:_0x25a798,rangeType:_0x31bc13,segmentId:_0x29586e,segmentPage:_0x2908b1,collapsed:_0x186a17,isActive:_0x107ac0}of _0x3e7b98){const _0x1da397=_0x4ed2e4['findNodePositionByCharIndex'](_0x4f05d4,!0x0,_0x29586e,_0x2908b1);let _0x555506=_0x4ed2e4[_0x37b3ce(0x191)](_0x25a798,!0x0,_0x29586e,_0x2908b1);if(_0x555506==null&&(_0x555506=_0x4ed2e4['findNodePositionByCharIndex'](_0x25a798-0x1,!0x1,_0x29586e,_0x2908b1)),_0x107ac0){const {contentBoxPointGroup:_0x4870b1}=_0x7ab8ab[_0x37b3ce(0x23f)](_0x555506,_0x555506);if(_0x4870b1[_0x37b3ce(0x212)]===0x0)continue;this['_drawAnchor'](_0x14cccb,_0x4870b1,_0x40ecbf,_0x3f9bdf,_0x4f10a2),this[_0x37b3ce(0x249)]=this[_0x37b3ce(0x2b3)]();}if(_0x1da397&&_0x555506){if(_0x31bc13===a[_0x37b3ce(0xf1)]['RECT']){const _0x29ae85=new b[(_0x37b3ce(0x36a))](_0x5bdb64,_0x4ed2e4),{pointGroup:_0x24004e}=(_0x52f1ac=_0x29ae85['getRangePointData'](_0x1da397,_0x555506))!=null?_0x52f1ac:{};if(_0x24004e==null||_0x24004e[_0x37b3ce(0x212)]===0x0)continue;this[_0x37b3ce(0x168)](_0x14cccb,_0x24004e,_0x40ecbf,_0x3f9bdf);}else{if(!_0x186a17){const {borderBoxPointGroup:_0x456fb7}=_0x7ab8ab[_0x37b3ce(0x23f)](_0x1da397,_0x555506);if(_0x456fb7[_0x37b3ce(0x212)]===0x0)continue;this['_drawTextRange'](_0x14cccb,_0x456fb7,_0x40ecbf,_0x3f9bdf);}}}}}['_drawAnchor'](_0x38d5a7,_0x15a9b3,_0x2d1a4c,_0x5ceec8,_0x99c048){const _0x4c15be=_0x532fcf,_0x4d0c9d=this[_0x4c15be(0x106)](_0x15a9b3),{left:_0x406626,top:_0xabd8a4,height:_0x585f59}=_0x4d0c9d,_0x46ebba=this[_0x4c15be(0x285)](),_0x43de13=St/_0x46ebba,_0x324b0c=new p[(_0x4c15be(0x332))](oe+a[_0x4c15be(0xfa)][_0x4c15be(0x24d)](k),{'left':_0x406626+_0x2d1a4c-_0x43de13,'top':_0xabd8a4+_0x5ceec8,'height':_0x585f59,'width':ft,'fill':_0x38d5a7||p['getColor'](a['COLORS'][_0x4c15be(0x341)],0x0),'strokeWidth':_0x43de13,'stroke':It,'evented':!0x0});this[_0x4c15be(0x28c)]=_0x324b0c,this[_0x4c15be(0x123)][_0x4c15be(0x1ba)](_0x324b0c,b[_0x4c15be(0x23a)]);const _0x63ef6e=new p[(_0x4c15be(0x332))](oe+a['Tools']['generateRandomId'](k),{'left':_0x406626+_0x2d1a4c-_0x43de13,'top':_0xabd8a4+_0x5ceec8-ae/0x2,'height':ae,'width':ae,'fill':_0x38d5a7||p[_0x4c15be(0x30c)](a[_0x4c15be(0x1f2)][_0x4c15be(0x341)],0x0),'strokeWidth':0x0,'stroke':_0x38d5a7||p[_0x4c15be(0x30c)](a[_0x4c15be(0x1f2)][_0x4c15be(0x341)],0x0),'evented':!0x1});this[_0x4c15be(0x1ed)]=_0x63ef6e,this['_scene'][_0x4c15be(0x1ba)](_0x63ef6e,b[_0x4c15be(0x23a)]);const _0x499a1d=new te(oe+a[_0x4c15be(0xfa)][_0x4c15be(0x24d)](k),{'left':_0x406626+_0x2d1a4c-_0x43de13,'top':_0xabd8a4+_0x5ceec8-K,'text':_0x99c048,'color':_0x38d5a7});this[_0x4c15be(0x293)]=_0x499a1d,this[_0x4c15be(0x123)][_0x4c15be(0x1ba)](_0x499a1d,b['TEXT_RANGE_LAYER_INDEX']),this[_0x4c15be(0x124)]=!0x1;}[_0x532fcf(0x2b3)](){const _0x46e3bf=_0x532fcf,_0x19c127=this[_0x46e3bf(0x28c)][_0x46e3bf(0x350)][_0x46e3bf(0x2c5)](()=>{const _0x160071=_0x46e3bf;this[_0x160071(0x124)]=!0x0;}),_0x8dc582=this[_0x46e3bf(0x28c)][_0x46e3bf(0x2c9)][_0x46e3bf(0x2c5)](()=>{const _0x47c184=_0x46e3bf;this[_0x47c184(0x1c4)]&&clearTimeout(this[_0x47c184(0x1c4)]),this['_hideTimer']=setTimeout(()=>{const _0x55d677=_0x47c184;this[_0x55d677(0x124)]=!0x1;},0x7d0);});return()=>{const _0x1ebf8b=_0x46e3bf;_0x19c127[_0x1ebf8b(0x17c)](),_0x8dc582['unsubscribe']();};}[_0x532fcf(0x32c)](_0x58dbd0,_0x43401d,_0x24ab4c,_0x3529a1){const _0x38de60=_0x532fcf,_0x4dc89c=new a[(_0x38de60(0x30d))](_0x58dbd0)[_0x38de60(0x2f8)](0.2)['toRgbString'](),_0xb10cca=new p[(_0x38de60(0x10e))](ut+a[_0x38de60(0xfa)][_0x38de60(0x24d)](k),{'pointsGroup':_0x43401d,'fill':_0x4dc89c||p['getColor'](a[_0x38de60(0x1f2)]['black'],0.2),'left':_0x24ab4c,'top':_0x3529a1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38de60(0x2e2)](_0xb10cca),this[_0x38de60(0x123)]['addObject'](_0xb10cca,b['TEXT_RANGE_LAYER_INDEX']);}[_0x532fcf(0x168)](_0x581418,_0x17d685,_0x423da5,_0x595924){const _0x52844e=_0x532fcf,_0x6157f5=new a[(_0x52844e(0x30d))](_0x581418)[_0x52844e(0x2f8)](0.2)[_0x52844e(0x2fa)](),_0x1f008f=new p[(_0x52844e(0x10e))](dt+a[_0x52844e(0xfa)][_0x52844e(0x24d)](k),{'pointsGroup':_0x17d685,'fill':_0x6157f5||p['getColor'](a[_0x52844e(0x1f2)][_0x52844e(0x341)],0.2),'left':_0x423da5,'top':_0x595924,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52844e(0x184)][_0x52844e(0x2e2)](_0x1f008f),this[_0x52844e(0x123)][_0x52844e(0x1ba)](_0x1f008f,b[_0x52844e(0x23a)]);}[_0x532fcf(0x106)](_0x68e63){const _0x5d4ffb=_0x68e63[0x0],_0x5b8c7c=_0x5d4ffb[0x0],_0x5928e6=_0x5d4ffb[0x2],{x:_0x2d5e98,y:_0x505e7a}=_0x5b8c7c,{x:_0x4c8289,y:_0x12f588}=_0x5928e6;return{'left':_0x2d5e98,'top':_0x505e7a,'width':_0x4c8289-_0x2d5e98,'height':_0x12f588-_0x505e7a};}[_0x532fcf(0x285)](){const _0x76554c=_0x532fcf,{scaleX:_0x4f8922,scaleY:_0x43f9ff}=this[_0x76554c(0x123)][_0x76554c(0x1a9)]();return Math['max'](_0x4f8922,_0x43f9ff);}}var vt=Object[_0x532fcf(0x1c9)],gt=(_0x314b1a,_0x4226a4,_0x320957,_0x48005a)=>{const _0x50e0b2=_0x532fcf;for(var _0x358ac1=_0x48005a>0x1?void 0x0:_0x48005a?vt(_0x4226a4,_0x320957):_0x4226a4,_0x25ada4=_0x314b1a[_0x50e0b2(0x212)]-0x1,_0x382adb;_0x25ada4>=0x0;_0x25ada4--)(_0x382adb=_0x314b1a[_0x25ada4])&&(_0x358ac1=_0x382adb(_0x358ac1)||_0x358ac1);return _0x358ac1;},V=(_0xc3e4bd,_0x53b370)=>(_0x159e60,_0x2309e6)=>_0x53b370(_0x159e60,_0x2309e6,_0xc3e4bd);let ve=class extends a['RxDisposable']{constructor(_0x339749,_0x594b68,_0x41b405,_0x10689b,_0x3b1715){const _0x4a6ee6=_0x532fcf;super(),_(this,'_cursorShapes',[]),_(this,_0x4a6ee6(0xed),[]),(this[_0x4a6ee6(0x268)]=_0x339749,this['_docSkeletonManagerService']=_0x594b68,this[_0x4a6ee6(0x159)]=_0x41b405,this[_0x4a6ee6(0x2b7)]=_0x10689b,this[_0x4a6ee6(0x32d)]=_0x3b1715,this['_init']());}[_0x532fcf(0x281)](){const _0x40667d=_0x532fcf,_0x4bcb12=this['_context'][_0x40667d(0x26e)],_0x1f11c6=this[_0x40667d(0x277)];this['disposeWithMe'](d[_0x40667d(0xf0)]([this['_collabCursorController'][_0x40667d(0xf5)](_0x4bcb12),this['_themeService']['currentTheme$']])['pipe']($['map'](([_0x21e6f5,_0x204a74])=>({'skeleton':_0x1f11c6[_0x40667d(0x2a8)](),'cursors':[..._0x21e6f5[_0x40667d(0x25a)]()][_0x40667d(0x1d1)](_0x68221=>({..._0x68221,'color':_0x204a74[_0x68221['color']]}))})))['subscribe'](_0x5a718b=>{const _0x2b7357=_0x40667d;if(this[_0x2b7357(0x186)](),_0x5a718b){const {skeleton:_0x1662a3,cursors:_0x2d46ac}=_0x5a718b;this[_0x2b7357(0x2e3)](_0x1662a3,_0x2d46ac);}})),this['_initResize'](),this[_0x40667d(0x2da)]();}[_0x532fcf(0x2e3)](_0x3803dc,_0x4985bc){const _0x230f38=_0x532fcf,{scene:_0x2eb3b2,mainComponent:_0x1a5853}=this[_0x230f38(0x268)],_0x258e83=_0x4985bc[_0x230f38(0x2af)](_0x29da54=>new Ue(_0x29da54,_0x2eb3b2,_0x3803dc,_0x1a5853));this[_0x230f38(0x367)]=_0x258e83,this['_cursors']=_0x4985bc;}[_0x532fcf(0x141)](){const _0x412817=_0x532fcf;this[_0x412817(0x186)]();const {scene:_0x448ebb,mainComponent:_0xdcb6c8}=this[_0x412817(0x268)],_0xba2e9b=this['_docSkeletonManagerService'][_0x412817(0x2a8)](),_0x291803=this[_0x412817(0xed)][_0x412817(0x2af)](_0x4849f0=>new Ue(_0x4849f0,_0x448ebb,_0xba2e9b,_0xdcb6c8));this['_cursorShapes']=_0x291803;}[_0x532fcf(0x186)](){const _0x363648=_0x532fcf;this[_0x363648(0x367)][_0x363648(0x344)](_0x1c8da4=>_0x1c8da4[_0x363648(0x137)]()),this['_cursorShapes']=[];}[_0x532fcf(0x2da)](){const _0x55bef6=_0x532fcf,_0x5e4839=[b[_0x55bef6(0x213)]['id']];this[_0x55bef6(0x35c)](this[_0x55bef6(0x2b7)]['onCommandExecuted'](_0x57c5c5=>{const _0x12e83f=_0x55bef6;_0x5e4839['includes'](_0x57c5c5['id'])&&_0x57c5c5[_0x12e83f(0x222)][_0x12e83f(0x26e)]===this['_context']['unitId']&&this[_0x12e83f(0x141)]();}));}[_0x532fcf(0x2e5)](){const _0x18f808=_0x532fcf;this[_0x18f808(0x35c)](a[_0x18f808(0x156)](this[_0x18f808(0x268)]['engine']['onTransformChange$'])[_0x18f808(0x172)]($[_0x18f808(0x181)](_0x3462a9=>_0x3462a9['type']===p[_0x18f808(0x299)]['resize']),$[_0x18f808(0x2e7)](0x10))[_0x18f808(0x1ce)](()=>{const _0x1ea71b=_0x18f808;this[_0x1ea71b(0x141)]();}));}};ve=gt([V(0x1,a[_0x532fcf(0x2ce)](Y['DocSkeletonManagerService'])),V(0x2,a[_0x532fcf(0x2ce)](x)),V(0x3,a[_0x532fcf(0x355)]),V(0x4,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x1b0)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x532fcf(0x1c1)]{constructor(_0x4e2dc4,_0x244d2d){const _0x2e7784=_0x532fcf;super(_0x4e2dc4,_0x244d2d),_(this,_0x2e7784(0x202)),_(this,_0x2e7784(0x14f),!0x1),_(this,_0x2e7784(0x216)),_(this,'_name',''),_(this,_0x2e7784(0x14e),_0x2e7784(0x31c)),_(this,'_backgroundColor'),(_0x244d2d&&this[_0x2e7784(0x345)](_0x244d2d),this[_0x2e7784(0x350)][_0x2e7784(0x2c5)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2e7784(0x2c9)][_0x2e7784(0x2c5)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x532fcf(0x345)](_0xa75368){const _0x5a795a=_0x532fcf;var _0x5bd21d,_0x1cfeeb,_0x6f9af1,_0x16d721,_0x43d82c,_0x201341;this[_0x5a795a(0x202)]=(_0x5bd21d=_0xa75368['color'])!=null?_0x5bd21d:this[_0x5a795a(0x202)],this['_hovered']=(_0x1cfeeb=_0xa75368[_0x5a795a(0x215)])!=null?_0x1cfeeb:this[_0x5a795a(0x14f)],this[_0x5a795a(0x216)]=(_0x6f9af1=_0xa75368[_0x5a795a(0x2b2)])!=null?_0x6f9af1:this[_0x5a795a(0x216)],this[_0x5a795a(0x21c)]=(_0x16d721=_0xa75368[_0x5a795a(0x240)])!=null?_0x16d721:this['_name'],this[_0x5a795a(0x14e)]=(_0x43d82c=_0xa75368['labelPosition'])!=null?_0x43d82c:this[_0x5a795a(0x14e)],this[_0x5a795a(0x131)]=(_0x201341=_0xa75368[_0x5a795a(0x1d5)])!=null?_0x201341:this[_0x5a795a(0x131)],this['transformByState']({'width':_0xa75368[_0x5a795a(0x309)],'height':_0xa75368['height']});}[_0x532fcf(0x262)](_0x32313a){const _0x412b3c=_0x532fcf,{row:_0x1f9c9a,column:_0x4f7fab}=_0x32313a;if(_0x1f9c9a>=this[_0x412b3c(0x216)][_0x412b3c(0x2be)]&&_0x1f9c9a<=this[_0x412b3c(0x216)][_0x412b3c(0x166)]&&_0x4f7fab>=this[_0x412b3c(0x216)][_0x412b3c(0xef)]&&_0x4f7fab<=this[_0x412b3c(0x216)][_0x412b3c(0x21a)]){this[_0x412b3c(0x345)]({'hovered':!0x0});return;}this[_0x412b3c(0x345)]({'hovered':!0x1});}['triggerDblclick'](_0x3b4f96){return!0x1;}['_draw'](_0x32719d){const _0x48743c=_0x532fcf;p[_0x48743c(0x332)][_0x48743c(0x194)](_0x32719d,{'width':this[_0x48743c(0x309)],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0x48743c(0x202)],'evented':!0x1,'fill':this[_0x48743c(0x131)]}),this['_hovered']&&(_0x32719d['save'](),_0x32719d['transform'](0x1,0x0,0x0,0x1,this[_0x48743c(0x309)],this['_labelPosition']===_0x48743c(0x27f)?0x0:-0x14),te[_0x48743c(0x194)](_0x32719d,{'text':this['_name'],'color':this[_0x48743c(0x202)]}),_0x32719d[_0x48743c(0x1d2)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x1c5e3c,_0x534d24,_0x91581b,_0xe43e01)=>{const _0x3a17d4=_0x532fcf;for(var _0x37cd34=_0xe43e01>0x1?void 0x0:_0xe43e01?pt(_0x534d24,_0x91581b):_0x534d24,_0x141829=_0x1c5e3c[_0x3a17d4(0x212)]-0x1,_0x2b1ff5;_0x141829>=0x0;_0x141829--)(_0x2b1ff5=_0x1c5e3c[_0x141829])&&(_0x37cd34=_0x2b1ff5(_0x37cd34)||_0x37cd34);return _0x37cd34;},ce=(_0x1a6bd8,_0x9c2452)=>(_0x62f8b6,_0x362f60)=>_0x9c2452(_0x62f8b6,_0x362f60,_0x1a6bd8);const Et=0x1389;let ge=class extends a[_0x532fcf(0x13f)]{constructor(_0x23ada5,_0x6000bf,_0x1532f8,_0x12e3e7){const _0x4c637f=_0x532fcf;super(),_(this,_0x4c637f(0xed),new Set()),_(this,_0x4c637f(0x2cd),null),(this[_0x4c637f(0x268)]=_0x23ada5,this[_0x4c637f(0x1ff)]=_0x6000bf,this[_0x4c637f(0x159)]=_0x1532f8,this[_0x4c637f(0x32d)]=_0x12e3e7,this[_0x4c637f(0x281)]());}[_0x532fcf(0x281)](){const _0x48fcf8=_0x532fcf;this['_sheetSkeletonManagerService'][_0x48fcf8(0x19f)][_0x48fcf8(0x172)]($['takeUntil'](this[_0x48fcf8(0x147)]),$[_0x48fcf8(0x217)](_0x4c6c4c=>{const _0xbdf48b=_0x48fcf8;if(_0x4c6c4c){const _0x5442c6=_0x4c6c4c[_0xbdf48b(0x200)];return d[_0xbdf48b(0xf0)](this[_0xbdf48b(0x159)][_0xbdf48b(0xf5)](this[_0xbdf48b(0x268)][_0xbdf48b(0x26e)]),this[_0xbdf48b(0x32d)][_0xbdf48b(0x29b)])[_0xbdf48b(0x172)]($[_0xbdf48b(0x2af)](([_0x51e763,_0x80acc8])=>{const _0x591cc1=_0xbdf48b,_0x132328=new Map();return _0x51e763[_0x591cc1(0x344)]((_0x4ac484,_0x22078f)=>{const _0x41d97f=_0x591cc1;if(_0x4ac484[_0x41d97f(0x1cf)]===_0x5442c6){const _0x414868={..._0x4ac484};_0x414868[_0x41d97f(0x132)]=_0x80acc8[_0x4ac484[_0x41d97f(0x132)]],_0x132328[_0x41d97f(0x208)](_0x22078f,_0x414868);}}),{'skeleton':_0x4c6c4c,'cursors':_0x132328};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x48fcf8(0x1ce)](({skeleton:_0x194133,cursors:_0x176735})=>{const _0x3bcd45=_0x48fcf8;this[_0x3bcd45(0x186)](),_0x194133&&this['_updateCollabCursors'](_0x194133,_0x176735);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x48fcf8(0x1ce)](_0x1fb8b2=>{const _0x5274c4=_0x48fcf8;if(_0x1fb8b2==null)return;const {skeleton:_0x2edc40}=_0x1fb8b2,{scene:_0x23d638}=this[_0x5274c4(0x268)];_0x23d638[_0x5274c4(0x201)][_0x5274c4(0x2c5)](a[_0x5274c4(0x297)](_0x45299b=>{const _0x2b7bc1=_0x5274c4;var _0x104391,_0x2cfd98;const {offsetX:_0x50f51f,offsetY:_0x485d65}=_0x45299b,{x:_0x14c5ed,y:_0x54e8aa}=_0x23d638[_0x2b7bc1(0x271)](p[_0x2b7bc1(0x1de)][_0x2b7bc1(0x1d4)]([_0x50f51f,_0x485d65])),{scaleX:_0x379cc5,scaleY:_0x4d8f66}=_0x23d638[_0x2b7bc1(0x1a9)](),_0x37bc21=_0x23d638[_0x2b7bc1(0x31f)](p[_0x2b7bc1(0x34d)][_0x2b7bc1(0x232)]),_0x4a68ab=_0x23d638[_0x2b7bc1(0xf8)](p['Vector2'][_0x2b7bc1(0x1d4)]([_0x14c5ed,_0x54e8aa]),_0x37bc21),_0xa1ca3f=_0x2edc40[_0x2b7bc1(0x324)](_0x50f51f,_0x485d65,_0x379cc5,_0x4d8f66,_0x4a68ab);((_0x104391=this[_0x2b7bc1(0x2cd)])==null?void 0x0:_0x104391['column'])===_0xa1ca3f[_0x2b7bc1(0x21f)]&&((_0x2cfd98=this[_0x2b7bc1(0x2cd)])==null?void 0x0:_0x2cfd98[_0x2b7bc1(0x2d4)])===_0xa1ca3f['row']||this[_0x2b7bc1(0xed)][_0x2b7bc1(0x344)](_0x34733a=>{const _0xd57d54=_0x2b7bc1;_0x34733a[_0xd57d54(0x262)](_0xa1ca3f);});},0x64));});}[_0x532fcf(0x2e3)](_0x1329fd,_0x48770c){const _0x48c4c6=_0x532fcf;var _0x485586;const _0x2943e2=(_0x485586=this[_0x48c4c6(0x1ff)][_0x48c4c6(0x327)]())==null?void 0x0:_0x485586[_0x48c4c6(0x2f9)];if(!_0x2943e2)return;const _0x48736d=this[_0x48c4c6(0x24b)]();if(!_0x48736d)return;this['_cursors']['forEach'](_0x61fa59=>{const _0x191880=_0x48c4c6;_0x61fa59[_0x191880(0x2db)]();});const {scene:_0x3b28f3}=_0x48736d,_0x20ccbb=Tt(Array[_0x48c4c6(0x252)](_0x48770c[_0x48c4c6(0x25a)]()))[_0x48c4c6(0x2af)](_0x30c322=>{const _0x2730a0=_0x48c4c6,{color:_0x2308bc,range:_0xbc6969,name:_0x3974b4,selection:_0x152ac2,sheetID:_0x2a704a}=_0x30c322,{startColumn:_0x13755c,startRow:_0x3b6dc7,endColumn:_0x320086,endRow:_0x1915e7}=_0xbc6969,_0x3e70fd=G[_0x2730a0(0x1a8)](_0x3b6dc7,_0x13755c,_0x3b28f3,_0x2943e2),_0x555572=G['getCoordByCell'](_0x1915e7,_0x320086,_0x3b28f3,_0x2943e2),{columnHeaderHeightAndMarginTop:_0x5ad727}=_0x2943e2,{startX:_0x329b2b,startY:_0x4612d5}=_0x3e70fd,{endX:_0x3acffd,endY:_0xfad02a}=_0x555572,_0x5e2246=_0x3acffd-_0x329b2b,_0x1bd7a0=_0xfad02a-_0x4612d5,_0x3cf59f={'labelPosition':_0x4612d5-_0x5ad727>=K?_0x2730a0(0x31c):_0x2730a0(0x27f),'sheetID':_0x2a704a,'range':_0xbc6969,'color':_0x2308bc,'name':_0x3974b4,'selection':_0x152ac2,'left':_0x329b2b,'top':_0x4612d5,'width':_0x5e2246,'height':_0x1bd7a0,'evented':!0x1,'zIndex':Et};return new Ae(_0x3974b4,_0x3cf59f);});_0x3b28f3['addObjects'](_0x20ccbb,mt),this['_cursors']=new Set(_0x20ccbb);}[_0x532fcf(0x186)](){const _0x3b3462=_0x532fcf;var _0x51e41e;(_0x51e41e=this[_0x3b3462(0xed)])==null||_0x51e41e['forEach'](_0x56cc66=>_0x56cc66['dispose']());}['_getSheetObject'](){const _0x557edb=_0x532fcf;return G[_0x557edb(0x337)](this[_0x557edb(0x268)]['unit'],this['_context']);}};ge=bt([ce(0x1,a['Inject'](G['SheetSkeletonManagerService'])),ce(0x2,a[_0x532fcf(0x2ce)](x)),ce(0x3,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x1b0)]))],ge);function Tt(_0x370681){const _0x46e357=_0x532fcf,_0x1a09fa=new Map();return _0x370681[_0x46e357(0x344)](_0x3e7294=>{const _0x117aaf=_0x46e357;if(_0x1a09fa[_0x117aaf(0x125)](_0x3e7294[_0x117aaf(0x1b1)])){const _0x2c67fa=_0x1a09fa[_0x117aaf(0x2b0)](_0x3e7294[_0x117aaf(0x1b1)]);_0x2c67fa[_0x117aaf(0x240)]+=',\x20'+_0x3e7294[_0x117aaf(0x240)];}else _0x1a09fa[_0x117aaf(0x208)](_0x3e7294[_0x117aaf(0x1b1)],_0x3e7294);}),Array['from'](_0x1a09fa[_0x46e357(0x25a)]());}var E=function(){const _0x5799c6=_0x532fcf;return E=Object[_0x5799c6(0x28f)]||function(_0x5ba5a9){const _0x50d926=_0x5799c6;for(var _0x25e004,_0x3d0905=0x1,_0x4446a3=arguments[_0x50d926(0x212)];_0x3d0905<_0x4446a3;_0x3d0905++){_0x25e004=arguments[_0x3d0905];for(var _0x2c84f9 in _0x25e004)Object['prototype'][_0x50d926(0x13d)]['call'](_0x25e004,_0x2c84f9)&&(_0x5ba5a9[_0x2c84f9]=_0x25e004[_0x2c84f9]);}return _0x5ba5a9;},E[_0x5799c6(0x1b9)](this,arguments);},Ot=function(_0x58ea7f,_0x3e0e35){const _0x5d554f=_0x532fcf;var _0x158b49={};for(var _0x4e85aa in _0x58ea7f)Object[_0x5d554f(0x1dd)][_0x5d554f(0x13d)][_0x5d554f(0x2fb)](_0x58ea7f,_0x4e85aa)&&_0x3e0e35[_0x5d554f(0x23c)](_0x4e85aa)<0x0&&(_0x158b49[_0x4e85aa]=_0x58ea7f[_0x4e85aa]);if(_0x58ea7f!=null&&typeof Object[_0x5d554f(0x346)]==_0x5d554f(0x1f1)){for(var _0x2f04ff=0x0,_0x4e85aa=Object[_0x5d554f(0x346)](_0x58ea7f);_0x2f04ff<_0x4e85aa[_0x5d554f(0x212)];_0x2f04ff++)_0x3e0e35[_0x5d554f(0x23c)](_0x4e85aa[_0x2f04ff])<0x0&&Object[_0x5d554f(0x1dd)][_0x5d554f(0x11c)][_0x5d554f(0x2fb)](_0x58ea7f,_0x4e85aa[_0x2f04ff])&&(_0x158b49[_0x4e85aa[_0x2f04ff]]=_0x58ea7f[_0x4e85aa[_0x2f04ff]]);}return _0x158b49;},be=M[_0x532fcf(0x185)](function(_0x5663ee,_0x2db28a){const _0x1f365c=_0x532fcf;var _0x2dad69=_0x5663ee['icon'],_0x500eec=_0x5663ee['id'],_0x808b2d=_0x5663ee[_0x1f365c(0x171)],_0x4571a8=_0x5663ee[_0x1f365c(0x31e)],_0xb0a585=Ot(_0x5663ee,['icon','id',_0x1f365c(0x171),'extend']),_0x455584=_0x1f365c(0x318)[_0x1f365c(0x2c3)](_0x500eec,'\x20')[_0x1f365c(0x2c3)](_0x808b2d||'')[_0x1f365c(0x30f)](),_0xbb14d5=M[_0x1f365c(0x2a2)]('_'['concat'](Ut()));return ye(_0x2dad69,''[_0x1f365c(0x2c3)](_0x500eec),{'defIds':_0x2dad69['defIds'],'idSuffix':_0xbb14d5[_0x1f365c(0x260)]},E({'ref':_0x2db28a,'className':_0x455584},_0xb0a585),_0x4571a8);});function _0x4bf1(_0x3c5bfa,_0x516556){const _0x36f27a=_0x36f2();return _0x4bf1=function(_0x4bf14a,_0x34b840){_0x4bf14a=_0x4bf14a-0xe7;let _0x1d1973=_0x36f27a[_0x4bf14a];return _0x1d1973;},_0x4bf1(_0x3c5bfa,_0x516556);}function ye(_0x484ff4,_0x3aeb2e,_0x26c3d2,_0x51b9e6,_0x2676d5){const _0x4c6a4f=_0x532fcf;return M[_0x4c6a4f(0x253)](_0x484ff4['tag'],E(E({'key':_0x3aeb2e},Rt(_0x484ff4,_0x26c3d2,_0x2676d5)),_0x51b9e6),(Dt(_0x484ff4,_0x26c3d2)[_0x4c6a4f(0x1cd)]||[])[_0x4c6a4f(0x2af)](function(_0x1b6c60,_0x431e67){const _0x57ecec=_0x4c6a4f;return ye(_0x1b6c60,''[_0x57ecec(0x2c3)](_0x3aeb2e,'-')['concat'](_0x484ff4[_0x57ecec(0x220)],'-')[_0x57ecec(0x2c3)](_0x431e67),_0x26c3d2,void 0x0,_0x2676d5);}));}function Rt(_0x14280f,_0x1d4504,_0x4ffe5e){const _0x586f5e=_0x532fcf;var _0x16db63=E({},_0x14280f[_0x586f5e(0x17e)]);_0x4ffe5e!=null&&_0x4ffe5e[_0x586f5e(0x27e)]&&_0x16db63['fill']===_0x586f5e(0x27e)&&(_0x16db63[_0x586f5e(0x150)]=_0x4ffe5e['colorChannel1']),_0x14280f['tag']==='mask'&&_0x16db63['id']&&(_0x16db63['id']=_0x16db63['id']+_0x1d4504[_0x586f5e(0x11a)]),Object['entries'](_0x16db63)['forEach'](function(_0x49d61b){const _0x4f85a1=_0x586f5e;var _0x423cf9=_0x49d61b[0x0],_0xd77862=_0x49d61b[0x1];_0x423cf9==='mask'&&typeof _0xd77862==_0x4f85a1(0x2ca)&&(_0x16db63[_0x423cf9]=_0xd77862['replace'](/url\(#(.*)\)/,_0x4f85a1(0x2b9)[_0x4f85a1(0x2c3)](_0x1d4504['idSuffix'],')')));});var _0x5dcdbf=_0x1d4504[_0x586f5e(0x2dc)];return!_0x5dcdbf||_0x5dcdbf[_0x586f5e(0x212)]===0x0||(_0x14280f['tag']===_0x586f5e(0xff)&&_0x16db63['xlink:href']&&(_0x16db63[_0x586f5e(0x14d)]=_0x16db63[_0x586f5e(0x14d)]+_0x1d4504[_0x586f5e(0x11a)]),Object['entries'](_0x16db63)['forEach'](function(_0x41ff6b){const _0x5b73af=_0x586f5e;var _0x17741a=_0x41ff6b[0x0],_0x4fc711=_0x41ff6b[0x1];typeof _0x4fc711==_0x5b73af(0x2ca)&&(_0x16db63[_0x17741a]=_0x4fc711['replace'](/url\(#(.*)\)/,_0x5b73af(0x2b9)['concat'](_0x1d4504[_0x5b73af(0x11a)],')')));})),_0x16db63;}function Dt(_0x65a2e0,_0x1f3e5d){const _0x36ac46=_0x532fcf;var _0x4eb8c0,_0x118a07=_0x1f3e5d[_0x36ac46(0x2dc)];return!_0x118a07||_0x118a07['length']===0x0?_0x65a2e0:_0x65a2e0[_0x36ac46(0x220)]===_0x36ac46(0x109)&&(!((_0x4eb8c0=_0x65a2e0['children'])===null||_0x4eb8c0===void 0x0)&&_0x4eb8c0[_0x36ac46(0x212)])?E(E({},_0x65a2e0),{'children':_0x65a2e0[_0x36ac46(0x1cd)]['map'](function(_0x102687){const _0x463c5b=_0x36ac46;return typeof _0x102687['attrs']['id']==_0x463c5b(0x2ca)&&_0x118a07&&_0x118a07['indexOf'](_0x102687[_0x463c5b(0x17e)]['id'])>-0x1?E(E({},_0x102687),{'attrs':E(E({},_0x102687[_0x463c5b(0x17e)]),{'id':_0x102687['attrs']['id']+_0x1f3e5d[_0x463c5b(0x11a)]})}):_0x102687;})}):_0x65a2e0;}function Ut(){const _0x4cbf5e=_0x532fcf;return Math['random']()[_0x4cbf5e(0x255)](0x24)[_0x4cbf5e(0xfe)](0x2,0x8);}be[_0x532fcf(0x142)]=_0x532fcf(0x251);var Nt={'tag':_0x532fcf(0x224),'attrs':{'fill':'none','viewBox':_0x532fcf(0x2c0),'width':_0x532fcf(0x276),'height':_0x532fcf(0x276)},'children':[{'tag':'g','attrs':{'clipPath':_0x532fcf(0x26c)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x532fcf(0x22e),'strokeLinejoin':_0x532fcf(0x22e),'strokeWidth':1.2}}]},{'tag':_0x532fcf(0x109),'attrs':{},'children':[{'tag':_0x532fcf(0x307),'attrs':{'id':_0x532fcf(0x342)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'fill':_0x532fcf(0x15f),'d':_0x532fcf(0x357)}}]}]}],'defIds':[_0x532fcf(0x342)]},$e=M['forwardRef'](function(_0x5a86c5,_0x5ad328){const _0x5686ef=_0x532fcf;return M[_0x5686ef(0x253)](be,Object[_0x5686ef(0x28f)]({},_0x5a86c5,{'id':_0x5686ef(0x238),'ref':_0x5ad328,'icon':Nt}));});$e[_0x532fcf(0x142)]=_0x532fcf(0x1cb);var Mt={'tag':_0x532fcf(0x224),'attrs':{'fill':_0x532fcf(0x233),'viewBox':_0x532fcf(0x1b4),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x532fcf(0x2bc)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'stroke':'currentColor','d':_0x532fcf(0x12f),'strokeLinecap':_0x532fcf(0x22e),'strokeLinejoin':_0x532fcf(0x22e),'strokeWidth':1.2}}]},{'tag':_0x532fcf(0x109),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x532fcf(0x16d)},'children':[{'tag':_0x532fcf(0xe9),'attrs':{'fill':'#fff','d':_0x532fcf(0x357),'transform':_0x532fcf(0x1fc)}}]}]}],'defIds':[_0x532fcf(0x16d)]},xe=M['forwardRef'](function(_0x5a4c5a,_0x35e154){const _0x4fbe44=_0x532fcf;return M[_0x4fbe44(0x253)](be,Object[_0x4fbe44(0x28f)]({},_0x5a4c5a,{'id':_0x4fbe44(0x199),'ref':_0x35e154,'icon':Mt}));});xe['displayName']=_0x532fcf(0x302);const Lt='univer-online-status-icon',Pt=_0x532fcf(0x29d),wt=_0x532fcf(0x231),At='univer-online',yt=_0x532fcf(0x261),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x49b356){const _0x1eaeff=_0x532fcf;switch(_0x49b356){case u[_0x1eaeff(0x2ba)]['OFFLINE']:return _0x1eaeff(0x25b);case u['CollaborationStatus'][_0x1eaeff(0x10c)]:return _0x1eaeff(0x1e7);case u[_0x1eaeff(0x2ba)]['FETCH_MISS']:return _0x1eaeff(0x2f2);case u['CollaborationStatus'][_0x1eaeff(0x310)]:return _0x1eaeff(0x1b8);case u[_0x1eaeff(0x2ba)][_0x1eaeff(0x120)]:case u[_0x1eaeff(0x2ba)]['AWAITING_WITH_PENDING']:return _0x1eaeff(0x35d);case u['CollaborationStatus']['SYNCED']:case u[_0x1eaeff(0x2ba)][_0x1eaeff(0x365)]:return'collabStatus.synced';}}function je(_0xf7acce){const _0xf7ce18=_0x532fcf,{status$:_0x4d1000}=_0xf7acce,_0x27f1fd=O[_0xf7ce18(0x13a)](_0x4d1000,u[_0xf7ce18(0x2ba)][_0xf7ce18(0x310)]),_0x3a270e=O[_0xf7ce18(0x20c)](a[_0xf7ce18(0x1ea)]),_0x24db04=O[_0xf7ce18(0x20c)](u[_0xf7ce18(0x236)]),_0x4bc364=_0x27f1fd!==u[_0xf7ce18(0x2ba)][_0xf7ce18(0x295)],_0x18635d=_0x3a270e['t']($t(_0x27f1fd)),_0x398d95=T[_0xf7ce18(0x2bd)](H[_0xf7ce18(0x234)],{[H['online']]:_0x4bc364,[H[_0xf7ce18(0x333)]]:!_0x4bc364}),_0x4c6bdf=_0x4bc364?P[_0xf7ce18(0x33b)](xe,{}):P[_0xf7ce18(0x33b)]($e,{}),_0x3db65a=M['useCallback'](()=>{_0x4bc364||_0x24db04['reconnect']();},[_0x4bc364,_0x24db04]);function _0x4ff40f(){const _0x51ce9a=_0xf7ce18;return P[_0x51ce9a(0x12e)](_0x51ce9a(0x1e2),{'className':T['clsx'](_0x398d95,_0x51ce9a(0x366)),'onClick':_0x3db65a,'children':[P[_0x51ce9a(0x33b)](_0x51ce9a(0x1e2),{'className':H['onlineStatusIcon'],'children':_0x4c6bdf}),P['jsx'](_0x51ce9a(0x1e2),{'className':H[_0x51ce9a(0x29f)],'children':_0x18635d})]});}return _0x4bc364?_0x4ff40f():P[_0xf7ce18(0x33b)](T[_0xf7ce18(0x349)],{'title':_0x3a270e['t'](_0xf7ce18(0x134)),'children':_0x4ff40f()});}var xt=Object[_0x532fcf(0x1c9)],jt=(_0x1b1116,_0x3f1445,_0x26ed8b,_0x472499)=>{const _0x21e7ee=_0x532fcf;for(var _0x479426=_0x472499>0x1?void 0x0:_0x472499?xt(_0x3f1445,_0x26ed8b):_0x3f1445,_0x55b478=_0x1b1116[_0x21e7ee(0x212)]-0x1,_0x387544;_0x55b478>=0x0;_0x55b478--)(_0x387544=_0x1b1116[_0x55b478])&&(_0x479426=_0x387544(_0x479426)||_0x479426);return _0x479426;},X=(_0x5795cb,_0x310361)=>(_0x87b2ea,_0x642fa)=>_0x310361(_0x87b2ea,_0x642fa,_0x5795cb);exports[_0x532fcf(0x2cc)]=class extends a[_0x532fcf(0x160)]{constructor(_0x3c7864,_0x5b69c7,_0x246eec,_0x57b926){const _0x5a1b96=_0x532fcf;super(),_(this,_0x5a1b96(0x239),new d['BehaviorSubject'](u[_0x5a1b96(0x2ba)][_0x5a1b96(0x310)])),(this[_0x5a1b96(0x183)]=_0x3c7864,this[_0x5a1b96(0x20b)]=_0x5b69c7,this['_collaborationController']=_0x246eec,this[_0x5a1b96(0x143)]=_0x57b926,this[_0x5a1b96(0x266)](),this[_0x5a1b96(0x32a)]());}[_0x532fcf(0x32a)](){const _0x2d088e=_0x532fcf;this[_0x2d088e(0x35c)](this[_0x2d088e(0x183)][_0x2d088e(0x286)]['pipe'](d[_0x2d088e(0x217)](()=>{const _0x4f0d4d=_0x2d088e,_0x2d0b88=this[_0x4f0d4d(0x183)][_0x4f0d4d(0x20e)]();return _0x2d0b88?this['_collaborationController'][_0x4f0d4d(0x173)](_0x2d0b88[_0x4f0d4d(0x1d6)]()):d['of'](null);}),d['switchMap'](_0x50f8da=>_0x50f8da?_0x50f8da[_0x2d088e(0x179)]:d['of'](u[_0x2d088e(0x2ba)][_0x2d088e(0x310)])))[_0x2d088e(0x1ce)](_0xff10ed=>{const _0x37ef27=_0x2d088e;this[_0x37ef27(0x239)][_0x37ef27(0x28a)](_0xff10ed);}));}['_initStatusComponent'](){const _0xcedeb6=_0x532fcf;this['disposeWithMe'](this[_0xcedeb6(0x143)]['registerComponent'](O['BuiltInUIPart'][_0xcedeb6(0x28b)],()=>O[_0xcedeb6(0x1fa)](Bt({'status$':this[_0xcedeb6(0x239)][_0xcedeb6(0x244)]()}),this[_0xcedeb6(0x20b)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x532fcf(0x149)]),X(0x1,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),X(0x2,a['Inject'](u[_0x532fcf(0x138)])),X(0x3,O[_0x532fcf(0x33d)])],exports[_0x532fcf(0x2cc)]);function Bt(_0x11e025){const {status$:_0x2c8487}=_0x11e025;return function(){const _0x358126=_0x4bf1;return P[_0x358126(0x33b)](je,{'status$':_0x2c8487});};}var kt=Object['getOwnPropertyDescriptor'],Ht=(_0x1983ad,_0xc8e4e8,_0x3bc75d,_0x17b07b)=>{const _0x2347fa=_0x532fcf;for(var _0x54e08a=_0x17b07b>0x1?void 0x0:_0x17b07b?kt(_0xc8e4e8,_0x3bc75d):_0xc8e4e8,_0x19810d=_0x1983ad[_0x2347fa(0x212)]-0x1,_0x4f75ff;_0x19810d>=0x0;_0x19810d--)(_0x4f75ff=_0x1983ad[_0x19810d])&&(_0x54e08a=_0x4f75ff(_0x54e08a)||_0x54e08a);return _0x54e08a;},y=(_0x13dbda,_0x536355)=>(_0x46b250,_0x1d3964)=>_0x536355(_0x46b250,_0x1d3964,_0x13dbda);let z=class extends a[_0x532fcf(0x160)]{constructor(_0x45551d,_0x72fd66,_0x5578a2,_0x231c00,_0x58f03c,_0x50b979){const _0x5d9c3a=_0x532fcf;super(),this[_0x5d9c3a(0x2d0)]=_0x45551d,this['_localCacheService']=_0x72fd66,this['_collaborationUIEventService']=_0x5578a2,this[_0x5d9c3a(0x178)]=_0x231c00,this['_notificationService']=_0x58f03c,this['_localeService']=_0x50b979,this['_setupBeforeClosingHandler'](),this[_0x5d9c3a(0xee)]();}[_0x532fcf(0x34a)](){const _0x5e3d0a=_0x532fcf;this[_0x5e3d0a(0x35c)](this[_0x5e3d0a(0x2d0)][_0x5e3d0a(0x254)](()=>{const _0x16da62=_0x5e3d0a;if(this[_0x16da62(0x110)][_0x16da62(0x287)][_0x16da62(0x2bf)])return this[_0x16da62(0x198)]['t'](_0x16da62(0x190));}));}[_0x532fcf(0xee)](){const _0x448284=_0x532fcf;this['disposeWithMe'](this[_0x448284(0x107)][_0x448284(0xf9)][_0x448284(0x1ce)](_0x539b60=>{const _0x369f12=_0x448284;_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x153)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)][_0x369f12(0x1df)],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x259))}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x2d7)]&&this[_0x369f12(0x178)]['show']({'type':T[_0x369f12(0x1e9)][_0x369f12(0x1df)],'content':this[_0x369f12(0x198)]['t']('collaboration.closeRoom')}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x1c3)]&&this['_notificationService'][_0x369f12(0x1c7)]({'title':this[_0x369f12(0x198)]['t'](_0x369f12(0x2ac)),'content':this['_localeService']['t']('permission.content'),'type':_0x369f12(0x1f6),'duration':0x0}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x10c)]&&this[_0x369f12(0x178)]['show']({'type':T['MessageType'][_0x369f12(0xfb)],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x203))+'('+_0x539b60['data']+')'}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x139)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)][_0x369f12(0x1df)],'content':this[_0x369f12(0x198)]['t'](_0x539b60[_0x369f12(0x364)]||'')}),_0x539b60['id']===u['CollaborationUIEventId'][_0x369f12(0x11d)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)]['Warning'],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x21d))}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x1ef)]&&this['_messageService'][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)]['Error'],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x304))}),_0x539b60['id']===u[_0x369f12(0x24a)][_0x369f12(0x193)]&&this[_0x369f12(0x178)][_0x369f12(0x1c7)]({'type':T[_0x369f12(0x1e9)][_0x369f12(0xfb)],'content':this[_0x369f12(0x198)]['t'](_0x369f12(0x225))});}));}};z=Ht([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0x532fcf(0x289)])),y(0x3,O[_0x532fcf(0x10f)]),y(0x4,O['INotificationService']),y(0x5,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x1ea)]))],z);const Ft=_0x532fcf(0x2e1),Ne={},Ee=a[_0x532fcf(0x127)](_0x532fcf(0x1cc));var Wt=Object[_0x532fcf(0x1c9)],Yt=(_0x66e683,_0x193911,_0x5eec9f,_0x54899a)=>{for(var _0x55bbf1=_0x54899a>0x1?void 0x0:_0x54899a?Wt(_0x193911,_0x5eec9f):_0x193911,_0x43a95e=_0x66e683['length']-0x1,_0x4d7c79;_0x43a95e>=0x0;_0x43a95e--)(_0x4d7c79=_0x66e683[_0x43a95e])&&(_0x55bbf1=_0x4d7c79(_0x55bbf1)||_0x55bbf1);return _0x55bbf1;},F=(_0x2e2068,_0x5527c5)=>(_0x513eea,_0x104e15)=>_0x5527c5(_0x513eea,_0x104e15,_0x2e2068);exports[_0x532fcf(0x30e)]=class extends a[_0x532fcf(0x13f)]{constructor(_0x149e08,_0x73676,_0x58d2a5,_0x120122,_0x361b5e){const _0x8f60b8=_0x532fcf;super(),this[_0x8f60b8(0x319)]=_0x149e08,this['_logService']=_0x73676,this['_commandService']=_0x58d2a5,this[_0x8f60b8(0x1e8)]=_0x120122,_0x361b5e?_0x361b5e==null||_0x361b5e[_0x8f60b8(0x305)]()['then'](()=>this['_init']()):(this[_0x8f60b8(0x119)][_0x8f60b8(0x101)](_0x8f60b8(0x140),_0x8f60b8(0x35f)),this[_0x8f60b8(0x281)]());}async[_0x532fcf(0x281)](){const _0x580e90=_0x532fcf,_0x4ba3af=this['_urlService'][_0x580e90(0x339)](_0x580e90(0x2f3)),_0x593622=this['_urlService']['getParam']('type'),_0x4325fa=this[_0x580e90(0x319)]['getParam']('subunit');if(!_0x4ba3af||!_0x593622){this[_0x580e90(0x119)][_0x580e90(0x101)](_0x580e90(0x140),_0x580e90(0x280));return;}const _0x100939=await this[_0x580e90(0x1e8)][_0x580e90(0x35e)](_0x4ba3af,Number(_0x593622),_0x4325fa);_0x100939&&_0x100939 instanceof a['Workbook']&&this[_0x580e90(0x235)](_0x100939);}async[_0x532fcf(0x235)](_0x35e1ee){const _0x2425e2=_0x532fcf;await this[_0x2425e2(0x264)](_0x35e1ee),_0x35e1ee[_0x2425e2(0x2c1)][_0x2425e2(0x172)](d['takeUntil'](this['dispose$']))[_0x2425e2(0x1ce)](_0x3c04ca=>{const _0x1f7946=_0x2425e2;_0x3c04ca&&this[_0x1f7946(0x1fb)](_0x3c04ca);}),this['_urlService'][_0x2425e2(0xf2)]['pipe'](d[_0x2425e2(0x2a5)](this[_0x2425e2(0x147)]))[_0x2425e2(0x1ce)](()=>this[_0x2425e2(0x264)](_0x35e1ee));}[_0x532fcf(0x1fb)](_0x17bb80,_0x4cd1c2=!0x1){const _0x58fc3c=_0x532fcf,_0x7f680b=this[_0x58fc3c(0x319)]['getParam'](_0x58fc3c(0x1bc));_0x17bb80['getSheetId']()!==_0x7f680b&&this[_0x58fc3c(0x319)][_0x58fc3c(0x121)](_0x58fc3c(0x1bc),_0x17bb80[_0x58fc3c(0x16a)](),_0x4cd1c2);}async[_0x532fcf(0x264)](_0x2fccca){const _0x38e54f=_0x532fcf;var _0x4e9bc3;const _0x4faa33=this[_0x38e54f(0x319)][_0x38e54f(0x339)](_0x38e54f(0x1bc));if(!_0x4faa33||!_0x2fccca[_0x38e54f(0xf3)](_0x4faa33)){const _0x4d8986=_0x2fccca['getUnhiddenWorksheets']()[0x0],_0x452eb5=_0x2fccca[_0x38e54f(0xf3)](_0x4d8986);if(!_0x452eb5)return;this['_updateURLWithCurrentState'](_0x452eb5,!0x0),await this[_0x38e54f(0x2b7)]['executeCommand'](g[_0x38e54f(0x23e)]['id'],{'unitId':_0x2fccca[_0x38e54f(0x1d6)](),'subUnitId':_0x4d8986});return;}((_0x4e9bc3=_0x2fccca[_0x38e54f(0x2d8)]())==null?void 0x0:_0x4e9bc3[_0x38e54f(0x16a)]())!==_0x4faa33&&await this[_0x38e54f(0x2b7)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x2fccca[_0x38e54f(0x1d6)](),'subUnitId':_0x4faa33});}},exports['CollaborationDataLoaderController']=Yt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a[_0x532fcf(0x355)]),F(0x3,a[_0x532fcf(0x2ce)](u[_0x532fcf(0x112)])),F(0x4,a[_0x532fcf(0x328)](Ke[_0x532fcf(0x15d)]))],exports[_0x532fcf(0x30e)]);var Vt=Object[_0x532fcf(0x1c9)],Xt=(_0x1ddcc8,_0x59ff19,_0x303eb2,_0x4e0a94)=>{const _0x59269c=_0x532fcf;for(var _0x3ab783=_0x4e0a94>0x1?void 0x0:_0x4e0a94?Vt(_0x59ff19,_0x303eb2):_0x59ff19,_0x1a9408=_0x1ddcc8[_0x59269c(0x212)]-0x1,_0x4343fe;_0x1a9408>=0x0;_0x1a9408--)(_0x4343fe=_0x1ddcc8[_0x1a9408])&&(_0x3ab783=_0x4343fe(_0x3ab783)||_0x3ab783);return _0x3ab783;},le=(_0x257612,_0x412088)=>(_0x56a369,_0x2472f1)=>_0x412088(_0x56a369,_0x2472f1,_0x257612);let J=class{constructor(_0x146a28,_0x104a50,_0x176f8d){const _0x5cac29=_0x532fcf;this[_0x5cac29(0x20b)]=_0x146a28,this['_transformService']=_0x104a50,this[_0x5cac29(0x1a1)]=_0x176f8d;}[_0x532fcf(0x32f)](_0x33ba9c){const _0x5d3964=_0x532fcf;this[_0x5d3964(0x368)](_0x33ba9c),this[_0x5d3964(0x1ec)](_0x33ba9c);}[_0x532fcf(0x15c)](_0x3b69d9){const _0x5c2878=_0x532fcf,{unitID:_0x556c47}=_0x3b69d9,_0x5dc15d=this[_0x5c2878(0x1a1)][_0x5c2878(0x162)](_0x556c47)[_0x5c2878(0x15b)](b[_0x5c2878(0x2ad)]),{redoCache:_0x460432}=_0x5dc15d['getUndoRedoMutationParamsCache']();if(_0x460432[_0x5c2878(0x212)]===0x0)return _0x3b69d9;let _0x3ffea7=a['Tools'][_0x5c2878(0x335)](_0x3b69d9[_0x5c2878(0x2a9)][0x0]);for(let _0x5272bc=0x0;_0x5272bc<_0x460432[_0x5c2878(0x212)];_0x5272bc++){const _0xa3fcc5={'id':_0x5c2878(0x270),'params':{..._0x460432[_0x5272bc]}},_0x3b5bd8=this[_0x5c2878(0x14a)][_0x5c2878(0x129)](_0x3ffea7,_0xa3fcc5,!0x1);if(m[_0x5c2878(0x14b)](_0x3b5bd8))throw _0x3b5bd8[_0x5c2878(0x1f6)];_0x3ffea7=_0x3b5bd8[_0x5c2878(0x1d3)];}return{...a[_0x5c2878(0xfa)][_0x5c2878(0x335)](_0x3b69d9),'mutations':[_0x3ffea7]};}[_0x532fcf(0x368)](_0xde666){const _0x4d0002=_0x532fcf,{unitID:_0x1eb791}=_0xde666,_0x43397f=this[_0x4d0002(0x1a1)][_0x4d0002(0x162)](_0x1eb791)[_0x4d0002(0x15b)](b[_0x4d0002(0x2ad)]),{undoCache:_0x11e1f0,redoCache:_0x34e483}=_0x43397f[_0x4d0002(0xeb)]();if(_0x11e1f0[_0x4d0002(0x212)]===0x0||_0x34e483[_0x4d0002(0x212)]===0x0)return;const _0x454c83=[],_0x38c515=[];let _0x20ec7c=a[_0x4d0002(0xfa)][_0x4d0002(0x335)](_0xde666[_0x4d0002(0x2a9)][0x0]),_0xf8d7bb=a[_0x4d0002(0xfa)][_0x4d0002(0x335)](_0xde666[_0x4d0002(0x2a9)][0x0]);for(let _0x200d44=_0x11e1f0[_0x4d0002(0x212)]-0x1;_0x200d44>=0x0;_0x200d44--){const _0x4544b8={'id':'doc.mutation.rich-text-editing','params':{..._0x11e1f0[_0x200d44]}},_0x1001ea={'id':'doc.mutation.rich-text-editing','params':{..._0x34e483[_0x200d44]}},_0x196ce8=this[_0x4d0002(0x14a)]['transformMutation'](_0x20ec7c,_0x4544b8,!0x1),_0x3e115c=this['_transformService'][_0x4d0002(0x129)](_0xf8d7bb,_0x1001ea,!0x1);if(m[_0x4d0002(0x14b)](_0x196ce8))throw _0x196ce8['error'];if(m[_0x4d0002(0x14b)](_0x3e115c))throw _0x3e115c[_0x4d0002(0x1f6)];_0x454c83['unshift'](_0x196ce8[_0x4d0002(0x362)][_0x4d0002(0x222)]),_0x38c515[_0x4d0002(0xf6)](_0x3e115c[_0x4d0002(0x362)][_0x4d0002(0x222)]),_0x20ec7c=_0x196ce8[_0x4d0002(0x1d3)],_0xf8d7bb=_0x3e115c[_0x4d0002(0x1d3)];}_0x43397f[_0x4d0002(0x1e4)]({'undoCache':_0x454c83,'redoCache':_0x38c515});}[_0x532fcf(0x1ec)](_0x4aac36){const _0x3927be=_0x532fcf,{unitID:_0x1479fa}=_0x4aac36,_0x3c7a61=this[_0x3927be(0x1a1)]['getRenderById'](_0x1479fa)['with'](b[_0x3927be(0x2ad)]),_0x478b2d=_0x3c7a61['getActiveRange']();if(_0x478b2d==null)return;const _0x57e27f=[{'id':_0x3927be(0x270),'params':{'unitId':_0x4aac36['unitID'],'actions':null,'textRanges':[_0x478b2d]}}],_0x1c4ebe=this['_transformService'][_0x3927be(0x329)](_0x4aac36,_0x57e27f);if(!m[_0x3927be(0xf7)](_0x1c4ebe))throw _0x1c4ebe[_0x3927be(0x1f6)];const _0x3df67d=_0x1c4ebe['m2Prime'][0x0][_0x3927be(0x222)][_0x3927be(0x2c7)];Array['isArray'](_0x3df67d)&&_0x3df67d[_0x3927be(0x212)]&&_0x3c7a61[_0x3927be(0x1d8)](_0x3df67d[0x0]);}};J=Xt([le(0x0,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),le(0x1,m[_0x532fcf(0x17d)]),le(0x2,p[_0x532fcf(0x28e)])],J);var Gt=Object[_0x532fcf(0x1c9)],qt=(_0x2fd0e5,_0x5544c8,_0x25c8ba,_0x1b1796)=>{const _0x183658=_0x532fcf;for(var _0x148388=_0x1b1796>0x1?void 0x0:_0x1b1796?Gt(_0x5544c8,_0x25c8ba):_0x5544c8,_0x48e44f=_0x2fd0e5[_0x183658(0x212)]-0x1,_0x3dc639;_0x48e44f>=0x0;_0x48e44f--)(_0x3dc639=_0x2fd0e5[_0x48e44f])&&(_0x148388=_0x3dc639(_0x148388)||_0x148388);return _0x148388;},_e=(_0xfb7ad4,_0x43e2d2)=>(_0x52c714,_0x1d3255)=>_0x43e2d2(_0x52c714,_0x1d3255,_0xfb7ad4);let Z=class{constructor(_0x48b4c4,_0x4c4056,_0x142982){const _0x1456c2=_0x532fcf;this[_0x1456c2(0x20b)]=_0x48b4c4,this['_transformService']=_0x4c4056,this[_0x1456c2(0xe8)]=_0x142982;}['transformStateCache'](_0x20c68c){this['_transformHistoryAndStateStack'](_0x20c68c);}[_0x532fcf(0x15c)](_0x3ee2aa){const _0x52e549=_0x532fcf,{unitID:_0x37d71b}=_0x3ee2aa,{collaboration:_0xe5270}=this[_0x52e549(0xe8)][_0x52e549(0x226)](_0x37d71b);if(_0xe5270[_0x52e549(0x212)]===0x0)return _0x3ee2aa;let _0x5556e6=a[_0x52e549(0xfa)]['deepClone'](_0x3ee2aa['mutations'][0x0]);for(let _0x4ddcde=0x0;_0x4ddcde<_0xe5270['length'];_0x4ddcde++){const _0x23ab57={'id':_0x52e549(0x270),'params':{'unitId':_0xe5270[_0x4ddcde][_0x52e549(0x26e)],..._0xe5270[_0x4ddcde][_0x52e549(0x248)]}},_0x4ce0a1=this[_0x52e549(0x14a)][_0x52e549(0x129)](_0x5556e6,_0x23ab57,!0x1);if(m[_0x52e549(0x14b)](_0x4ce0a1))throw _0x4ce0a1[_0x52e549(0x1f6)];_0x5556e6=_0x4ce0a1[_0x52e549(0x1d3)];}return{...a[_0x52e549(0xfa)][_0x52e549(0x335)](_0x3ee2aa),'mutations':[_0x5556e6]};}[_0x532fcf(0x13c)](_0x2c2382){const _0x115d53=_0x532fcf,{unitID:_0x2c6874}=_0x2c2382,{history:_0x519a2f,collaboration:_0x27e9f6}=this[_0x115d53(0xe8)][_0x115d53(0x226)](_0x2c6874);if(_0x519a2f['length']===0x0&&_0x27e9f6[_0x115d53(0x212)]===0x0)return;const _0x3cb6f3=[],_0x580b74=[];let _0x52a20a=a[_0x115d53(0xfa)][_0x115d53(0x335)](_0x2c2382[_0x115d53(0x2a9)][0x0]),_0x49f69e=a['Tools']['deepClone'](_0x2c2382[_0x115d53(0x2a9)][0x0]);for(let _0x181f5a=_0x519a2f[_0x115d53(0x212)]-0x1;_0x181f5a>=0x0;_0x181f5a--){const _0x4ddbc3={'id':_0x115d53(0x270),'params':{'unitId':_0x519a2f[_0x181f5a][_0x115d53(0x26e)],..._0x519a2f[_0x181f5a][_0x115d53(0x19c)]}},_0x79ac9a={'id':_0x115d53(0x270),'params':{'unitId':_0x519a2f[_0x181f5a][_0x115d53(0x26e)],..._0x519a2f[_0x181f5a][_0x115d53(0x248)]}},_0x22579d=this['_transformService'][_0x115d53(0x129)](_0x52a20a,_0x4ddbc3,!0x1),_0x4fcf97=this['_transformService'][_0x115d53(0x129)](_0x49f69e,_0x79ac9a,!0x1);if(m['isTransformMutationFailure'](_0x22579d))throw _0x22579d['error'];if(m[_0x115d53(0x14b)](_0x4fcf97))throw _0x4fcf97[_0x115d53(0x1f6)];_0x3cb6f3[_0x115d53(0xf6)]({..._0x519a2f[_0x181f5a],'undoState':_0x22579d['m2Prime'][_0x115d53(0x222)],'redoState':_0x4fcf97[_0x115d53(0x362)][_0x115d53(0x222)]}),_0x52a20a=_0x22579d[_0x115d53(0x1d3)],_0x49f69e=_0x4fcf97['m1Prime'];}_0x52a20a=a[_0x115d53(0xfa)][_0x115d53(0x335)](_0x2c2382[_0x115d53(0x2a9)][0x0]),_0x49f69e=a[_0x115d53(0xfa)][_0x115d53(0x335)](_0x2c2382['mutations'][0x0]);for(let _0x5ea0ad=_0x27e9f6[_0x115d53(0x212)]-0x1;_0x5ea0ad>=0x0;_0x5ea0ad--){const _0x3c157e={'id':_0x115d53(0x270),'params':{'unitId':_0x27e9f6[_0x5ea0ad]['unitId'],..._0x27e9f6[_0x5ea0ad]['undoState']}},_0x5867bf={'id':_0x115d53(0x270),'params':{'unitId':_0x27e9f6[_0x5ea0ad][_0x115d53(0x26e)],..._0x27e9f6[_0x5ea0ad][_0x115d53(0x248)]}},_0x363cea=this[_0x115d53(0x14a)][_0x115d53(0x129)](_0x52a20a,_0x3c157e,!0x1),_0x43a8c2=this[_0x115d53(0x14a)][_0x115d53(0x129)](_0x49f69e,_0x5867bf,!0x1);if(m['isTransformMutationFailure'](_0x363cea))throw _0x363cea[_0x115d53(0x1f6)];if(m['isTransformMutationFailure'](_0x43a8c2))throw _0x43a8c2[_0x115d53(0x1f6)];_0x580b74[_0x115d53(0xf6)]({..._0x27e9f6[_0x5ea0ad],'undoState':_0x363cea[_0x115d53(0x362)][_0x115d53(0x222)],'redoState':_0x43a8c2[_0x115d53(0x362)][_0x115d53(0x222)]}),_0x52a20a=_0x363cea['m1Prime'],_0x49f69e=_0x43a8c2['m1Prime'];}this[_0x115d53(0xe8)][_0x115d53(0x2ef)](_0x2c6874,{'history':_0x3cb6f3,'collaboration':_0x580b74});}};Z=qt([_e(0x0,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),_e(0x1,m[_0x532fcf(0x17d)]),_e(0x2,a['Inject'](b[_0x532fcf(0x154)]))],Z);var Kt=Object['getOwnPropertyDescriptor'],zt=(_0x4a38f7,_0x2bbdac,_0x505c62,_0x15d8bc)=>{const _0x58b783=_0x532fcf;for(var _0x1e8a8b=_0x15d8bc>0x1?void 0x0:_0x15d8bc?Kt(_0x2bbdac,_0x505c62):_0x2bbdac,_0x222ff8=_0x4a38f7[_0x58b783(0x212)]-0x1,_0x180e8e;_0x222ff8>=0x0;_0x222ff8--)(_0x180e8e=_0x4a38f7[_0x222ff8])&&(_0x1e8a8b=_0x180e8e(_0x1e8a8b)||_0x1e8a8b);return _0x1e8a8b;},Me=(_0x2203c4,_0x3384b5)=>(_0x4a40d8,_0x321f16)=>_0x3384b5(_0x4a40d8,_0x321f16,_0x2203c4);let Q=class{constructor(_0x3da65f,_0x1f481a){const _0x4743ea=_0x532fcf;this['_injector']=_0x3da65f,this[_0x4743ea(0x14a)]=_0x1f481a;}[_0x532fcf(0x330)](_0x50c14a){const _0x3d8536=_0x532fcf;var _0x2b6be9;const _0x2c1462=this['_injector'][_0x3d8536(0x2b0)](Y['DocSelectionManagerService']),_0x467a7b=(_0x2b6be9=_0x2c1462['getDocRanges']())!=null?_0x2b6be9:[];if(_0x467a7b[_0x3d8536(0x212)]===0x0)return;const _0x2141d1=_0x50c14a[_0x3d8536(0x21b)],_0x294004=[{'id':_0x3d8536(0x270),'params':{'unitId':_0x2141d1,'actions':null,'textRanges':_0x467a7b}}],_0x4a2772=this['_transformService'][_0x3d8536(0x329)](_0x50c14a,_0x294004);if(!m[_0x3d8536(0xf7)](_0x4a2772))throw _0x4a2772['error'];const _0x275d17=_0x4a2772[_0x3d8536(0x362)][0x0][_0x3d8536(0x222)]['textRanges'];Array['isArray'](_0x275d17)&&_0x275d17[_0x3d8536(0x212)]&&_0x2c1462['replaceDocRanges'](_0x275d17,{'unitId':_0x2141d1,'subUnitId':_0x2141d1},!0x1);}};Q=zt([Me(0x0,a['Inject'](a[_0x532fcf(0x282)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x532fcf(0x1c9)],Zt=(_0x40d476,_0x4cba89,_0x28e4b8,_0x57e370)=>{const _0x2f3d0c=_0x532fcf;for(var _0x1a87d9=_0x57e370>0x1?void 0x0:_0x57e370?Jt(_0x4cba89,_0x28e4b8):_0x4cba89,_0x28331c=_0x40d476[_0x2f3d0c(0x212)]-0x1,_0x479967;_0x28331c>=0x0;_0x28331c--)(_0x479967=_0x40d476[_0x28331c])&&(_0x1a87d9=_0x479967(_0x1a87d9)||_0x1a87d9);return _0x1a87d9;},N=(_0x21087d,_0x366bfb)=>(_0x3e6507,_0xd9dad0)=>_0x366bfb(_0x3e6507,_0xd9dad0,_0x21087d);let ee=class extends a[_0x532fcf(0x160)]{constructor(_0x194c18,_0x30454b,_0xd059d5,_0x30220c,_0x507e4c,_0x363c30,_0x2f378b,_0x2cf5e4){const _0x3fe64d=_0x532fcf;super(),_(this,_0x3fe64d(0x239),new d['BehaviorSubject'](u[_0x3fe64d(0x2ba)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x194c18,this[_0x3fe64d(0x1e6)]=_0x30454b,this[_0x3fe64d(0x2ae)]=_0xd059d5,this[_0x3fe64d(0x1ae)]=_0x30220c,this[_0x3fe64d(0x2e8)]=_0x507e4c,this[_0x3fe64d(0x320)]=_0x363c30,this[_0x3fe64d(0x178)]=_0x2f378b,this[_0x3fe64d(0x198)]=_0x2cf5e4,this[_0x3fe64d(0x180)]());}[_0x532fcf(0x180)](){const _0xa49182=_0x532fcf;this[_0xa49182(0x35c)](this['_collaborationController'][_0xa49182(0x257)][_0xa49182(0x1ce)](_0x400668=>{const _0x334a39=_0xa49182,_0x993633=this[_0x334a39(0xe8)][_0x334a39(0x1fe)][_0x334a39(0x1ce)](_0x1499ce=>{const _0x41c67a=_0x334a39;if(_0x1499ce==null)return;const {unitId:_0x46897c,redoState:_0x3fd129,commandId:_0x3cb20b}=_0x1499ce;if(_0x46897c!==_0x400668[_0x41c67a(0x21b)])return;const _0x2aa65a={'id':_0x3cb20b,'type':a[_0x41c67a(0x256)][_0x41c67a(0x114)],'params':{'unitId':_0x46897c,'actions':_0x3fd129['actions'],'textRanges':null}};_0x400668[_0x41c67a(0x245)](_0x2aa65a);});if(_0x400668['disposeWithMe'](_0x993633),_0x400668 instanceof u[_0x334a39(0x2f7)]){const _0x55cbe2={'onTransformIME':_0x2be280=>this[_0x334a39(0x2ae)][_0x334a39(0x32f)](_0x2be280),'onTransformState':_0x50ed15=>this[_0x334a39(0x1ae)]['transformStateCache'](_0x50ed15),'onTransformSelections':_0x59d32e=>this['_docTransformSelectionsService'][_0x334a39(0x330)](_0x59d32e),'onSyncEditingCollabCursor':_0xd39800=>this[_0x334a39(0x320)][_0x334a39(0x352)](_0xd39800),'onTransformRemoteChangesetByIMECache':_0x80d61b=>this[_0x334a39(0x2ae)][_0x334a39(0x15c)](_0x80d61b),'onTransformRemoteChangesetByStateCache':_0x3589f4=>this[_0x334a39(0x1ae)][_0x334a39(0x15c)](_0x3589f4)};_0x400668['addHandlerCallback'](_0x55cbe2);}}));}};function _0x36f2(){const _0x20db4c=['column','tag','NO_OTHER_CLIENTS_EDITING','params','pushState','svg','session.collaboration-timeout','getStateCache','ONLINE','collab-text-range-','USER_NOT_INVITED_CODE','requireSession','addClipboardHook','UnitStatus','toDisposable','round','getMember','RemoteUniscriptService','univer-online-status','VIEW_MAIN','none','onlineStatus','_setupSubUnitSync','CollaborationSessionService','_scheduleHeartbeat','off-line-single','_status$','TEXT_RANGE_LAYER_INDEX','_getMergeRange','indexOf','_onCursorDelete','SetWorksheetActivateCommand','getRangePointData','name','_refRangeService','_registerRenderDependencies','getUnitStatus$','asObservable','onLocalMutation','_assignedColors','WECHAT_HAS_BEEN_BOUND','redoState','_eventUnsubscribe','CollaborationUIEventId','_getSheetObject','InsertRowCommandId','generateRandomId','subUnitId','LOGIN_FAILED','RECT','UniverIcon','from','createElement','registerBeforeClose','toString','CommandType','entityInit$','88TdnbHM','collaboration.single-unit.warning','values','collabStatus.offline','_handleJoinEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','handleInsertRangeMoveRight','@univerjs/engine-formula','current','univer-offline','onMouseMove','getDocRanges','_updateSubUnitFromURLParams','_clearOtherTimers','_initStatusComponent','_online','_context','LOCAL_CACHE_INTERVAL_KEY','fillText','exhaustSavingTask','url(#off-line-single_clip0_910_343)','CollaborationStatusDisplay','unitId','fillStyle','doc.mutation.rich-text-editing','getRelativeToViewportCoord','Module','CollaborationEvent','toStringTag','@univerjs/ui','1em','_docSkeletonManagerService','15836194mQAKdQ','...','@univerjs/sheets','text','_docClipboardService','parse','colorChannel1','bottom','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_init','Injector','touchDependencies','roomMembers','_getScale','focused$','saveTaskMap','RemoveColCommandId','CollaborationUIEventService','next','HEADER_MENU','_anchor','SetSelectionsOperation','IRenderManagerService','assign','storage','Unknown\x20user','SNAPSHOT_INVALID_SNAPSHOT','_textBubble','eventID','OFFLINE','UniverInstanceType','debounce','body','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ILocalCacheService','currentTheme$','beginPath','univer-online-status-title','InsertRangeMoveRightCommandId','onlineStatusTitle','handleIRemoveRow','@univerjs/engine-render','useRef','delete','UNIVER_DOC','takeUntil','CollaborationSocketService','@univerjs/docs','getSkeleton','mutations','LICENSE_EXPORT_SIZE_EXCEEDED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','permission.title','DocIMEInputManagerService','_docTransformIMECacheService','map','get','editingUnit','range','_handleHover','@univerjs-pro/collaboration-client','APPLY_NON_SEQUENTIAL_REVISION','_localStorageService','_commandService','INVITE_CODE_REQUIRED','url(#$1','CollaborationStatus','send','url(#on-line-single_clip0_910_349)','clsx','startRow','size','0\x200\x2016\x2016','activeSheet$','getTypeOfUnitDisposed$','concat','origin','subscribeEvent','UNAUTHENTICATED','textRanges','getCurrentSelections','onPointerLeave$','string','ISocketService','DesktopCollaborationStatusDisplayController','_lastPointer','Inject','TEXT','_beforeCloseService','RemoveRowCommandId','popstate','onStarting','row','_colorAssignService','override','CLOSE_ROOM','getActiveSheet','APPLY_REVISION_CONFILICT','_initCommandExecutedListener','makeDirty','defIds','key','432414iaSzcP','_onCursorUpdate','_collabCursorState$','collaboration-client-ui.config','push','_updateCollabCursors','Plugin','_initResize','mergeOverrideWithDependencies','throttleTime','_docTransformSelectionsService','removeParam','_removeClearOtherTimer','ILogService','collabCursorState$','INVALID_ARGUMENT','_colorIndex','setStateCache','saveImage','registerDependencies','collabStatus.fetchMiss','unit','_startDocCollabCursor','getMemberID','BrowserCollaborationSocketService','DocCollaborationEntity','setAlpha','skeleton','toRgbString','call','purple300','@univerjs/docs-ui','merge','assignAColorForMemberID','MOBILE_HAS_BEEN_BOUND','_entityInit$','OnLineSingle','clearInterval','session.connection-failed','whenReady','_getSessionTicket','clipPath','getConfig','width','_saveCache','_startSheetCollabCursor','getColor','ColorKit','CollaborationDataLoaderController','trim','NOT_COLLAB','handleDeleteRangeMoveLeft','cursorInfo$','deserializeRangeWithSheet','searchParams','_imageIoService','LICENSE_DISTRO_REJECTED','UNRECOGNIZED','univerjs-icon\x20univerjs-icon-','_urlService','_disabled','HTTPService','top','_saveTaskMap','extend','getViewport','_docSyncEditingCollabCursorService','source','createInstance','IImageIoService','getCellPositionByOffset','BehaviorSubject','evenodd','getCurrent','Optional','transformMutationsWithChangeset','_initStatusListener','_configService','_drawTextRange','_themeService','createSocket','transformIMECache','transformSelections','symbol','Rect','offline','_httpService','deepClone','_unitStatus','getSheetObject','invokeId','getParam','collab-text-anchor-','jsx','_instanceService','IUIPartsService','_handleLeaveEvent','PY_RUNTIME_SCRIPT_ERROR','enableLocalCache','black','off-line-single_clip0_910_343','InsertColCommandId','forEach','setShapeProps','getOwnPropertySymbols','complete','_heartbeatTimer','Tooltip','_setupBeforeClosingHandler','IURLService','mapTo','SHEET_VIEWPORT_KEY','split','collab-rect-range-','onPointerEnter$','EMAIL_HAS_BEEN_BOUND','syncEditingCollabCursor','isActive','unload','ICommandService','UPDATE_CURSOR','M0\x200H16V16H0z','366457OlPpPF','disposeUnit','min','COMPLETION_FINISHED','disposeWithMe','collabStatus.syncing','loadUnit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','9IuWbBo','getValue','m2Prime','INVITE_CODE_ALREADY_BOUND','data','PENDING','univer-flex\x20univer-items-center','_cursorShapes','_transformUndoRedoStack','_syncEditingCollabCursorService','NodePositionConvertToRectRange','DeleteRangeMoveUpCommandId','UniverCollaborationClientPlugin','getUniverSheetInstance','_cachedData','SessionStatus','_cursor','_docStateChangeManagerService','path','APPLY_DUPLICATED','getUndoRedoMutationParamsCache','_selfUnitIDs','_cursors','_initEvent','startColumn','combineLatest','DOC_RANGE_TYPE','urlChange$','getSheetBySheetId','runId','getCollabCursors$','unshift','isTransformMutationsWithChangesetSuccess','getVpScrollXYInfoByPosToVp','event$','Tools','Error','_cursorInfo$','roomMembers$','substring','use','arc','debug','@univerjs/sheets-ui','_scheduleSaving','WebSocketService','LOCAL_CACHE_INTERVAL','_getAnchorBounding','_collaborationUIEventService','_getSaveTimeout','defs','add','isArray','CONFLICT','moveTo','RegularPolygon','IMessageService','_localCacheService','InsertRangeMoveDownCommandId','DataLoaderService','verdancy600','MUTATION','TOO_MANY_REQUESTS','IConfigService','1786580EkJJCj','OTHER_CLIENTS_EDITING','_logService','idSuffix','INVALID_INVITE_CODE','propertyIsEnumerable','SOCKET_FAILED_RETRY','setItem','executionId','AWAITING','setParam','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_scene','_hover','has','sessionTicket','createIdentifier','_entities','transformMutation','onRendered','lineTo','@univerjs/core','_memberService','jsxs','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','12BAoJro','_backgroundColor','color','_roomMembers$','collab-client.tooltip.reconnect','LICENSE_IMPORT_SIZE_EXCEEDED','DocSelectionManagerService','dispose','CollaborationController','JOIN_ROOM_FAILED','useObservable','stringify','_transformHistoryAndStateStack','hasOwnProperty','getLocalCacheKey','RxDisposable','[CollaborationDataLoaderController]','_refreshCollabCursors','displayName','_uiPartsService','newValue','MemberService','DependentOn','dispose$','IDocClipboardService','IUniverInstanceService','_transformService','isTransformMutationFailure','find','xlink:href','_labelPosition','_hovered','fill','@univerjs/drawing','60UEskpn','OTHER_CLIENT_EDITING','DocStateChangeManagerService','getTypeOfUnitAdded$','fromEventSubject','USERS_LEAVE','_createSocketURL','_collabCursorController','_unitOnClients','with','transformRemoteChangeset','IRemoteInstanceService','href','#fff','Disposable','NOT_FOUND','getRenderById','handleDeleteRangeMoveUp','registerRenderModule','@univerjs/rpc','endRow','_updateLocalCursor','_drawRectRange','/run/','getSheetId','handleInsertRangeMoveDown','ticket','on-line-single_clip0_910_349','getItem','closePath','handleMoveRange','className','pipe','getCollabEntity$','@univerjs-pro/collaboration','UniverCollaborationClientUIPlugin','Subject','some','_messageService','status$','rgba(255,\x20255,\x20255,\x200.01)','_toggleOffline','unsubscribe','ITransformService','attrs','setConfig','_initEntityListener','filter','#FFF','_univerInstanceService','_shapes','forwardRef','_removeCollabCursors','defineProperty','Failed','ENSURE_SNAPSHOT_EXECUTION','SetTextSelectionsOperation','debounceTime','CHANGESET_REVISION_CONFILICT','EffectRefRangId','_toggleOnline','_document','collaboration-client.offline-data-not-saved','findNodePositionByCharIndex','UNDEFINED','SUBMIT_CHANGESET_TIMEOUT','drawWith','[RemoteUniscriptService]:\x20no\x20focused\x20unit','UNIVER_SHEET','getOffsetConfig','_localeService','on-line-single','_initDependencies','44211QOYwzY','undoState','_revisionService','type','currentSkeleton$','_config','_renderManagerService','distinctUntilChanged','cursorInfo','contains','YUUMI_ASYNCIO_CANCELLED','_collabSessionService','DisposableCollection','getCoordByCell','getAncestorScale','sessionStatus$','RichTextEditingMutation','jiqing500','YUUMI_URL_COL_OUT_OF_RANGE','_docTransformStateCacheService','2313886BkbavK','ThemeService','selection','ranges','_doCreateSocket','0\x200\x2017\x2016','loadOfflineData','then','YUUMI_RATE_OVER_LIMIT','collabStatus.notCollab','apply','addObject','disableLocalCache','subunit','RevisionService','_render','history','clearTimeout','Shape','imageSourceType','PERMISSION_DENIED','_hideTimer','hide','DeleteRangeMoveLeftCommandId','show','_ensureSubject','getOwnPropertyDescriptor','rxjs','OffLineSingle','uni.network.url-service','children','subscribe','sheetID','APPLY_PERMISSION_DENIED','flatMap','restore','m1Prime','FromArray','backgroundColor','getUnitId','537441xVxWgx','setActiveRange','measureText','@univerjs/network','startsWith','location','prototype','Vector2','Warning','replaceState','save','div','onCommandExecuted','setUndoRedoMutationParamsCache','_id','_collaborationController','collabStatus.conflict','_dataLoaderService','MessageType','LocaleService','getCurrentUnitForType','_transformPreviousActiveRange','_anchorDot','YUUMI_UNABLE_LOAD_URL','SOCKET_FAILED','fromEvent','function','COLORS','@univerjs/design','memberID','gold400','error','saveOfflineData','RefRangeService','_session','connectInjector','_updateURLWithCurrentState','translate(.97)','YUUMI_SUBSCRIPTION_NOT_FOUND','docStateChange$','_sheetSkeletonManagerService','sheetId','onPointerMove$','_color','collaboration.closeRoom','_registerDependencies','init','getMergeData','INVITE_CODE_HAS_BEEN_UES','set','ILocalStorageService','registerRefRange','_injector','useDependency','setTimeout','getFocusedUnit','_handleHeartbeatEvent','20nGpEIk','_send','length','SetDocZoomRatioOperation','_onRefRangeChange','hovered','_range','switchMap','_scheduleClearOtherTimer','CONNECTOR_DATA_TOO_LARGE','endColumn','unitID','_name','session.will-retry','WebURLService'];_0x36f2=function(){return _0x20db4c;};return _0x36f2();}ee=Zt([N(0x0,a['Inject'](b[_0x532fcf(0x154)])),N(0x1,a[_0x532fcf(0x2ce)](u[_0x532fcf(0x138)])),N(0x2,a[_0x532fcf(0x2ce)](J)),N(0x3,a[_0x532fcf(0x2ce)](Z)),N(0x4,a[_0x532fcf(0x2ce)](Q)),N(0x5,a[_0x532fcf(0x2ce)](pe)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],ee);var Qt=Object[_0x532fcf(0x1c9)],es=(_0x1df3bd,_0x381ae3,_0x583ac4,_0x386391)=>{for(var _0x21473e=_0x386391>0x1?void 0x0:_0x386391?Qt(_0x381ae3,_0x583ac4):_0x381ae3,_0x5b504e=_0x1df3bd['length']-0x1,_0x55ce37;_0x5b504e>=0x0;_0x5b504e--)(_0x55ce37=_0x1df3bd[_0x5b504e])&&(_0x21473e=_0x55ce37(_0x21473e)||_0x21473e);return _0x21473e;},he=(_0x2ceabc,_0x2fbe10)=>(_0xd3cba3,_0x35e4ea)=>_0x2fbe10(_0xd3cba3,_0x35e4ea,_0x2ceabc);let me=class extends a[_0x532fcf(0x160)]{constructor(_0x31669c,_0x1b2dae,_0xca02db){const _0x16d399=_0x532fcf;super(),_(this,_0x16d399(0x36e),new Map()),_(this,_0x16d399(0x31d),new Map()),_(this,'_disabled',!0x1),(this[_0x16d399(0x32b)]=_0x31669c,this[_0x16d399(0x2b6)]=_0x1b2dae,this[_0x16d399(0x19d)]=_0xca02db);}[_0x532fcf(0x1bb)](){const _0x5032f5=_0x532fcf;this[_0x5032f5(0x31a)]=!0x0;}[_0x532fcf(0x340)](){this['_disabled']=!0x1;}get[_0x532fcf(0x287)](){const _0x2f3940=_0x532fcf;return this[_0x2f3940(0x31d)];}[_0x532fcf(0x137)](){const _0x5ec448=_0x532fcf;this[_0x5ec448(0x26b)]()[_0x5ec448(0x1b6)](()=>super[_0x5ec448(0x137)]());}async[_0x532fcf(0x1b5)](_0x839f7e){const _0x3ae3d8=_0x532fcf;return this[_0x3ae3d8(0x31a)]?null:this[_0x3ae3d8(0x2b6)][_0x3ae3d8(0x16e)](u[_0x3ae3d8(0x13e)](_0x839f7e));}async[_0x532fcf(0x1f7)](_0x34404f,_0x3c9fbe){const _0x43c6c4=_0x532fcf;return!!this[_0x43c6c4(0x2b6)]['setItem'](_0x34404f,_0x3c9fbe);}['updateOfflineData'](_0x5ac57e,_0x4341c3,_0x28c53d,_0x56bbbc){const _0x4c153f=_0x532fcf,_0x315311=this['_revisionService']['getCurrentRevOfUnit'](_0x5ac57e);this['_cachedData']['set'](_0x5ac57e,{'unitID':_0x5ac57e,'type':_0x4341c3,'awaitingChangeset':_0x28c53d,'mutations':_0x56bbbc,'rev':_0x315311}),this[_0x4c153f(0x31d)][_0x4c153f(0x125)](_0x5ac57e)||this['_scheduleSaving'](_0x5ac57e);}[_0x532fcf(0x103)](_0x27da6f){const _0x5ff686=_0x532fcf,_0x1647cd=this[_0x5ff686(0x108)]();_0x1647cd===0x0?this[_0x5ff686(0x30a)](_0x27da6f):this[_0x5ff686(0x31d)]['set'](_0x27da6f,setTimeout(()=>this[_0x5ff686(0x30a)](_0x27da6f),_0x1647cd));}[_0x532fcf(0x108)](){const _0x4178b0=_0x532fcf;var _0xf5fa38;return(_0xf5fa38=this[_0x4178b0(0x32b)][_0x4178b0(0x308)](u[_0x4178b0(0x269)]))!=null?_0xf5fa38:u[_0x4178b0(0x105)];}['_saveCache'](_0x2b472f){const _0x5e94ff=_0x532fcf,_0x4e204c=this[_0x5e94ff(0x31d)][_0x5e94ff(0x2b0)](_0x2b472f);return _0x4e204c!==void 0x0&&window[_0x5e94ff(0x1c0)](_0x4e204c),this[_0x5e94ff(0x2b6)][_0x5e94ff(0x11e)](u[_0x5e94ff(0x13e)](_0x2b472f),this[_0x5e94ff(0x36e)][_0x5e94ff(0x2b0)](_0x2b472f))['then'](()=>this[_0x5e94ff(0x31d)]['delete'](_0x2b472f));}async[_0x532fcf(0x26b)](){const _0x545bf9=_0x532fcf,_0x27162e=[];this['_saveTaskMap'][_0x545bf9(0x344)]((_0x546aa9,_0x3dc276)=>{const _0xc11358=_0x545bf9;window[_0xc11358(0x1c0)](_0x546aa9),_0x27162e['push'](this[_0xc11358(0x30a)](_0x3dc276)['then'](()=>{const _0x1f1928=_0xc11358;this[_0x1f1928(0x31d)][_0x1f1928(0x2a3)](_0x3dc276);}));}),await Promise['all'](_0x27162e);}};me=es([he(0x0,a['IConfigService']),he(0x1,a[_0x532fcf(0x209)]),he(0x2,a[_0x532fcf(0x2ce)](m[_0x532fcf(0x1bd)]))],me);class Be extends a[_0x532fcf(0x13f)]{constructor(){const _0x859719=_0x532fcf;super(),_(this,'urlChange$'),this[_0x859719(0xf2)]=d['fromEvent'](window,_0x859719(0x2d2))[_0x859719(0x172)](d[_0x859719(0x2a5)](this[_0x859719(0x147)]),d['shareReplay'](0x1),d[_0x859719(0x34c)](void 0x0));}[_0x532fcf(0x121)](_0x157309,_0x59288c,_0x229f6f=!0x1){const _0x4c5772=_0x532fcf,_0x18d855=new URL(window[_0x4c5772(0x1dc)]['href']);_0x18d855[_0x4c5772(0x314)][_0x4c5772(0x208)](_0x157309,_0x59288c),_0x229f6f?window[_0x4c5772(0x1bf)]['replaceState']('','',_0x18d855['toString']()):window[_0x4c5772(0x1bf)][_0x4c5772(0x223)]('','',_0x18d855[_0x4c5772(0x255)]());}[_0x532fcf(0x2e9)](_0x16b575,_0x14a0f4=!0x1){const _0x49c57d=_0x532fcf,_0x5bd4fb=new URL(window[_0x49c57d(0x1dc)][_0x49c57d(0x15e)]);_0x5bd4fb[_0x49c57d(0x314)][_0x49c57d(0x2a3)](_0x16b575),_0x14a0f4?window[_0x49c57d(0x1bf)][_0x49c57d(0x1e0)]('','',_0x5bd4fb[_0x49c57d(0x255)]()):window[_0x49c57d(0x1bf)][_0x49c57d(0x223)]('','',_0x5bd4fb[_0x49c57d(0x255)]());}[_0x532fcf(0x339)](_0x4bd1be){const _0x5ed3bd=_0x532fcf;var _0x27e3d0;return(_0x27e3d0=new URL(window['location'][_0x5ed3bd(0x15e)])[_0x5ed3bd(0x314)]['get'](_0x4bd1be))!=null?_0x27e3d0:void 0x0;}}var ts=Object[_0x532fcf(0x187)],ss=Object[_0x532fcf(0x1c9)],ns=(_0x234e62,_0x125757,_0x29a01f)=>_0x125757 in _0x234e62?ts(_0x234e62,_0x125757,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29a01f}):_0x234e62[_0x125757]=_0x29a01f,is=(_0x2a2742,_0x4a916f,_0x505a8f,_0x3e28b7)=>{const _0x17328b=_0x532fcf;for(var _0x19d80d=_0x3e28b7>0x1?void 0x0:_0x3e28b7?ss(_0x4a916f,_0x505a8f):_0x4a916f,_0x1bfe10=_0x2a2742[_0x17328b(0x212)]-0x1,_0x56e201;_0x1bfe10>=0x0;_0x1bfe10--)(_0x56e201=_0x2a2742[_0x1bfe10])&&(_0x19d80d=_0x56e201(_0x19d80d)||_0x19d80d);return _0x19d80d;},ue=(_0x544443,_0x51844e)=>(_0xa76e7d,_0x2dbb65)=>_0x51844e(_0xa76e7d,_0x2dbb65,_0x544443),rs=(_0x542103,_0x4a4183,_0x549a20)=>ns(_0x542103,_0x4a4183+'',_0x549a20);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x532fcf(0x175)]=class extends a[_0x532fcf(0x2e4)]{constructor(_0xaa6fcd=Ne,_0x97c801,_0x2605ef,_0x58a314){const _0x417ee2=_0x532fcf;super(),this[_0x417ee2(0x1a0)]=_0xaa6fcd,this[_0x417ee2(0x1a1)]=_0x97c801,this['_injector']=_0x2605ef,this['_configService']=_0x58a314;const {..._0x3109b3}=a['merge']({},Ne,this['_config']);this[_0x417ee2(0x32b)][_0x417ee2(0x17f)](Ft,_0x3109b3);}[_0x532fcf(0x2d3)](){const _0x3cb53b=_0x532fcf;this[_0x3cb53b(0x204)](),this[_0x3cb53b(0x19a)]();}[_0x532fcf(0x12a)](){const _0x15f399=_0x532fcf;this[_0x15f399(0x242)]();}['_registerDependencies'](){const _0x284020=_0x532fcf;var _0xf8263e;const _0x4eda70=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x284020(0x2cb)],{'useClass':q[_0x284020(0x104)]}],[u[_0x284020(0x29a)],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x284020(0x30e)]]];a[_0x284020(0x2f1)](this[_0x284020(0x20b)],a[_0x284020(0x2e6)](_0x4eda70,(_0xf8263e=this[_0x284020(0x1a0)])==null?void 0x0:_0xf8263e[_0x284020(0x2d6)]));}['_registerRenderDependencies'](){const _0x402199=_0x532fcf;this['disposeWithMe'](this[_0x402199(0x1a1)][_0x402199(0x164)](a[_0x402199(0x296)][_0x402199(0x2a4)],[ve])),this[_0x402199(0x35c)](this[_0x402199(0x1a1)]['registerRenderModule'](a[_0x402199(0x296)][_0x402199(0x196)],[ge]));}[_0x532fcf(0x19a)](){const _0x247854=_0x532fcf;a[_0x247854(0x283)](this[_0x247854(0x20b)],[[x],[exports[_0x247854(0x2cc)]],[ee],[z],[exports[_0x247854(0x30e)]]]);}},rs(exports[_0x532fcf(0x175)],'pluginName',os),exports[_0x532fcf(0x175)]=is([a[_0x532fcf(0x146)](u[_0x532fcf(0x36c)]),ue(0x1,p[_0x532fcf(0x28e)]),ue(0x2,a['Inject'](a[_0x532fcf(0x282)])),ue(0x3,a[_0x532fcf(0x116)])],exports[_0x532fcf(0x175)]);var as=Object[_0x532fcf(0x1c9)],cs=(_0x1366bd,_0x16a920,_0x5b8e5a,_0xf2544f)=>{const _0x384bd1=_0x532fcf;for(var _0x1ddb42=_0xf2544f>0x1?void 0x0:_0xf2544f?as(_0x16a920,_0x5b8e5a):_0x16a920,_0xc90540=_0x1366bd[_0x384bd1(0x212)]-0x1,_0x4399f2;_0xc90540>=0x0;_0xc90540--)(_0x4399f2=_0x1366bd[_0xc90540])&&(_0x1ddb42=_0x4399f2(_0x1ddb42)||_0x1ddb42);return _0x1ddb42;},W=(_0x181466,_0x29771c)=>(_0xf9ba90,_0xce3da4)=>_0x29771c(_0xf9ba90,_0xce3da4,_0x181466);exports[_0x532fcf(0x2f6)]=class extends u[_0x532fcf(0x2a6)]{constructor(_0x1b5a73,_0x4327fc,_0x11ae8e,_0x42b049,_0x33b9b0){super(_0x1b5a73,_0x4327fc,_0x11ae8e,_0x42b049,_0x33b9b0);}async[_0x532fcf(0x32e)](_0x1220bc){const _0x432937=_0x532fcf,_0xc934bc=await this[_0x432937(0x306)](),_0x428d6e=this[_0x432937(0x158)](_0x1220bc,_0xc934bc);return this[_0x432937(0x1b3)](_0x428d6e);}[_0x532fcf(0x158)](_0x5e8059,_0x7ab5df){const _0x16a6c1=_0x532fcf,_0x758d7c=typeof window>'u'?new URL(_0x5e8059):new URL(_0x5e8059,window[_0x16a6c1(0x1dc)][_0x16a6c1(0x2c4)]);_0x758d7c['searchParams'][_0x16a6c1(0x208)](_0x16a6c1(0x126),_0x7ab5df);const _0x2184b1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x16a6c1(0x1dc)]['search']);return _0x2184b1[_0x16a6c1(0x2b0)]('runId')&&_0x758d7c['searchParams'][_0x16a6c1(0x208)](_0x16a6c1(0xf4),_0x2184b1[_0x16a6c1(0x2b0)](_0x16a6c1(0xf4))),_0x758d7c[_0x16a6c1(0x255)]();}async[_0x532fcf(0x306)](){const _0xca9229=_0x532fcf;var _0x248c9d,_0x2ea742,_0xb7ab9b;const _0x508f85=this[_0xca9229(0x32b)][_0xca9229(0x308)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x2259fe=(_0x248c9d=_0x508f85==null?void 0x0:_0x508f85['wsSessionTicketUrl'])!=null?_0x248c9d:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0xb7ab9b=(_0x2ea742=(await this[_0xca9229(0x334)]['get'](_0x2259fe,{'headers':{'Content-Type':'application/json'}}))[_0xca9229(0x298)])==null?void 0x0:_0x2ea742[_0xca9229(0x16c)])!=null?_0xb7ab9b:'';}},exports[_0x532fcf(0x2f6)]=cs([W(0x0,a[_0x532fcf(0x2ce)](a[_0x532fcf(0x282)])),W(0x1,a['Inject'](q[_0x532fcf(0x31b)])),W(0x2,a['IConfigService']),W(0x3,a[_0x532fcf(0x2eb)]),W(0x4,m['ISnapshotServerService'])],exports[_0x532fcf(0x2f6)]);const Le=0x7530,Pe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a[_0x532fcf(0x160)]{constructor(){const _0x2e5e76=_0x532fcf;super(),_(this,_0x2e5e76(0x1e5),a[_0x2e5e76(0x24d)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x2e5e76(0x15a),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0x2e5e76(0x336),new Map()),this[_0x2e5e76(0x281)]();}[_0x532fcf(0x137)](){const _0x21b244=_0x532fcf;super[_0x21b244(0x137)](),this[_0x21b244(0x265)]['forEach']((_0x4ced5c,_0x4a9a26)=>this[_0x21b244(0x2ea)](_0x4a9a26)),this[_0x21b244(0x348)]&&window[_0x21b244(0x303)](this[_0x21b244(0x348)]);}[_0x532fcf(0x243)](_0x2a14b5){const _0xc1f9e8=_0x532fcf;return this[_0xc1f9e8(0x1c8)](_0x2a14b5)[_0xc1f9e8(0x172)](d[_0xc1f9e8(0x1a2)]());}[_0x532fcf(0x2b1)](_0x5eaaca){const _0x2a5374=_0x532fcf;this[_0x2a5374(0xec)][_0x2a5374(0x2bf)]===0x0&&this[_0x2a5374(0x237)](),this[_0x2a5374(0xec)]['add'](_0x5eaaca),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5eaaca],'isForwarded':!0x1});}[_0x532fcf(0x359)](_0x5b05ac){const _0x2ac283=_0x532fcf;this[_0x2ac283(0xec)][_0x2ac283(0x2a3)](_0x5b05ac),this['_selfUnitIDs'][_0x2ac283(0x2bf)]===0x0&&this[_0x2ac283(0x348)]&&window[_0x2ac283(0x303)](this[_0x2ac283(0x348)]);}[_0x532fcf(0x281)](){const _0x43c34b=_0x532fcf;this[_0x43c34b(0x35c)](a[_0x43c34b(0x22d)](d[_0x43c34b(0x1f0)](window,_0x43c34b(0x290))['subscribe'](_0xe07545=>{const _0x33e8fe=_0x43c34b;if(_0xe07545[_0x33e8fe(0x2dd)]!==Pe||!_0xe07545[_0x33e8fe(0x144)])return;const _0xf4b364=JSON[_0x33e8fe(0x27d)](_0xe07545['newValue']);this['_handleEvent'](_0xf4b364);}))),window['addEventListener'](_0x43c34b(0x354),()=>this[_0x43c34b(0x211)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x43c34b(0x252)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x18e084){const _0x596dac=_0x532fcf;switch(_0x18e084[_0x596dac(0x19e)]){case 0x0:this[_0x596dac(0x25c)](_0x18e084);break;case 0x1:this['_handleLeaveEvent'](_0x18e084);break;case 0x2:this[_0x596dac(0x20f)](_0x18e084);break;}}['_handleJoinEvent'](_0x168697){const _0x33607e=_0x532fcf,{unitIDs:_0xf14594,memberID:_0x29fd09,isForwarded:_0x51fec2}=_0x168697;_0xf14594[_0x33607e(0x344)](_0x62dfc4=>{const _0xca12ab=_0x33607e;if(!_0x51fec2&&this[_0xca12ab(0x15a)]['has'](_0x62dfc4)&&this[_0xca12ab(0x1c8)](_0x62dfc4)[_0xca12ab(0x28a)](u[_0xca12ab(0x22c)][_0xca12ab(0x118)]),!this['_unitOnClients'][_0xca12ab(0x125)](_0x62dfc4)||!this[_0xca12ab(0x15a)]['get'](_0x62dfc4)[_0xca12ab(0x125)](_0x29fd09)){const _0x12c30d=this['_unitOnClients'][_0xca12ab(0x2b0)](_0x62dfc4)||new Set();_0x12c30d[_0xca12ab(0x10a)](_0x29fd09),this['_unitOnClients']['set'](_0x62dfc4,_0x12c30d),this['_scheduleClearOtherTimer'](_0x29fd09);}}),_0x51fec2||this[_0x33607e(0x211)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x33607e(0xec)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4eb927){const _0x34df00=_0x532fcf;this[_0x34df00(0x2ea)](_0x4eb927);const _0xd14ee=window[_0x34df00(0x20d)](()=>{const _0x312984=_0x34df00;this['_unitOnClients'][_0x312984(0x344)](_0x573b55=>{_0x573b55['delete'](_0x4eb927);});},Le*0x2);this['_clearOtherTimers'][_0x34df00(0x208)](_0x4eb927,_0xd14ee);}['_removeClearOtherTimer'](_0x4d6942){const _0xead117=_0x532fcf;if(this[_0xead117(0x265)]['has'](_0x4d6942)){const _0x2c022f=this[_0xead117(0x265)]['get'](_0x4d6942);_0x2c022f&&window[_0xead117(0x1c0)](_0x2c022f),this[_0xead117(0x265)][_0xead117(0x208)](_0x4d6942,null);}}[_0x532fcf(0x33e)](_0x16789b){const _0x439f53=_0x532fcf,{memberID:_0x2c5f95,unitIDs:_0x5c5807}=_0x16789b;_0x5c5807[_0x439f53(0x344)](_0x4330ab=>{const _0x9018d3=_0x439f53;var _0x50ca35;const _0x3bce30=this[_0x9018d3(0x15a)][_0x9018d3(0x2b0)](_0x4330ab);_0x3bce30&&(_0x3bce30[_0x9018d3(0x2a3)](_0x2c5f95),(_0x50ca35=this[_0x9018d3(0x1c8)](_0x4330ab))==null||_0x50ca35['next'](_0x3bce30[_0x9018d3(0x2bf)]===0x0?u[_0x9018d3(0x22c)][_0x9018d3(0x221)]:u[_0x9018d3(0x22c)][_0x9018d3(0x118)]));}),this[_0x439f53(0x2ea)](_0x2c5f95);}['_handleHeartbeatEvent'](_0x199726){const _0x16222e=_0x532fcf;this[_0x16222e(0x218)](_0x199726[_0x16222e(0x1f4)]);}[_0x532fcf(0x211)](_0x25d201){localStorage['setItem'](Pe,JSON['stringify'](_0x25d201));}[_0x532fcf(0x237)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x42455d=_0x4bf1;this[_0x42455d(0x211)]({'type':0x2,'memberID':this[_0x42455d(0x1e5)]});},Le);}['_ensureSubject'](_0x467fd1){const _0x277981=_0x532fcf;return this[_0x277981(0x336)][_0x277981(0x125)](_0x467fd1)||this[_0x277981(0x336)][_0x277981(0x208)](_0x467fd1,new d['BehaviorSubject'](u['UnitStatus'][_0x277981(0x221)])),this['_unitStatus'][_0x277981(0x2b0)](_0x467fd1);}}var ke=(_0x2b5e5c=>(_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x192)]=0x0]=_0x532fcf(0x192),_0x2b5e5c[_0x2b5e5c['OK']=0x1]='OK',_0x2b5e5c[_0x2b5e5c['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1c3)]=0x3]=_0x532fcf(0x1c3),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x161)]=0x4]=_0x532fcf(0x161),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2c6)]=0x5]=_0x532fcf(0x2c6),_0x2b5e5c[_0x2b5e5c['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2ed)]=0x7]=_0x532fcf(0x2ed),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x115)]=0x8]=_0x532fcf(0x115),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x35b)]=0x9]='COMPLETION_FINISHED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x24f)]=0xa]=_0x532fcf(0x24f),_0x2b5e5c[_0x2b5e5c['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x532fcf(0x18c),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x292)]=0x1771]=_0x532fcf(0x292),_0x2b5e5c[_0x2b5e5c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x189)]=0x1773]=_0x532fcf(0x189),_0x2b5e5c[_0x2b5e5c['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2b5)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2b5e5c[_0x2b5e5c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x532fcf(0x2d9),_0x2b5e5c[_0x2b5e5c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x532fcf(0x1d0),_0x2b5e5c[_0x2b5e5c['APPLY_DUPLICATED']=0x1b5d]=_0x532fcf(0xea),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x219)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2b5e5c[_0x2b5e5c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x25d)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x135)]=0x232b]=_0x532fcf(0x135),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2aa)]=0x232c]=_0x532fcf(0x2aa),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x316)]=0x232d]=_0x532fcf(0x316),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1ee)]=0x2711]=_0x532fcf(0x1ee),_0x2b5e5c[_0x2b5e5c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x532fcf(0x1ad),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1b7)]=0x2713]=_0x532fcf(0x1b7),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1fd)]=0x2714]=_0x532fcf(0x1fd),_0x2b5e5c[_0x2b5e5c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x1a5)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x2b5e5c[_0x2b5e5c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x532fcf(0x33f),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x207)]=0x2ee1]=_0x532fcf(0x207),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x11b)]=0x2ee2]=_0x532fcf(0x11b),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x2b8)]=0x2ee3]=_0x532fcf(0x2b8),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x229)]=0x2ee4]=_0x532fcf(0x229),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x363)]=0x2ee5]=_0x532fcf(0x363),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x247)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x300)]=0x32ca]=_0x532fcf(0x300),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x351)]=0x32cb]=_0x532fcf(0x351),_0x2b5e5c[_0x2b5e5c[_0x532fcf(0x317)]=-0x1]=_0x532fcf(0x317),_0x2b5e5c))(ke||{}),_s=Object[_0x532fcf(0x1c9)],hs=(_0x261aa1,_0x179077,_0x56364c,_0x1a0044)=>{for(var _0x16fc8b=_0x1a0044>0x1?void 0x0:_0x1a0044?_s(_0x179077,_0x56364c):_0x179077,_0x2c3b6b=_0x261aa1['length']-0x1,_0x300ba3;_0x2c3b6b>=0x0;_0x2c3b6b--)(_0x300ba3=_0x261aa1[_0x2c3b6b])&&(_0x16fc8b=_0x300ba3(_0x16fc8b)||_0x16fc8b);return _0x16fc8b;},de=(_0x17d41f,_0x20037e)=>(_0x28cb56,_0x5256b4)=>_0x20037e(_0x28cb56,_0x5256b4,_0x17d41f);exports[_0x532fcf(0x230)]=class extends a['Disposable']{constructor(_0x14cc17,_0x395329,_0x18ac69){const _0x57a33=_0x532fcf;super(),this[_0x57a33(0x33c)]=_0x14cc17,this[_0x57a33(0x334)]=_0x395329,this[_0x57a33(0x32b)]=_0x18ac69;}async['runOnServer'](_0x81b819,_0x6dadc1,_0xd708ee,..._0x221818){const _0x219322=_0x532fcf;var _0x3fe7b7,_0x1d06cf,_0x360539,_0x56475f;const _0x43e8ef=this[_0x219322(0x33c)][_0x219322(0x20e)]();if(!_0x43e8ef)throw new Error(_0x219322(0x195));const _0x5b6cef=((_0x3fe7b7=this[_0x219322(0x32b)][_0x219322(0x308)](u[_0x219322(0x2ab)]))!=null?_0x3fe7b7:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x81b819+_0x219322(0x169)+_0x6dadc1,_0x169423=new URL(window[_0x219322(0x1dc)][_0x219322(0x15e)]),_0xc0bbd4={'scriptId':_0x81b819,'runId':(_0x1d06cf=_0x169423[_0x219322(0x314)]['get'](_0x219322(0xf4)))!=null?_0x1d06cf:'','function':_0x6dadc1,'unitId':_0x43e8ef['getUnitId'](),'argsOfFunction':JSON[_0x219322(0x13b)](_0x221818),'invokeId':(_0x360539=_0xd708ee[_0x219322(0x338)])!=null?_0x360539:'','executionId':(_0x56475f=_0xd708ee[_0x219322(0x11f)])!=null?_0x56475f:''};try{const _0x5d1338=await this[_0x219322(0x334)]['post'](_0x5b6cef,{'body':_0xc0bbd4});return _0x5d1338[_0x219322(0x298)][_0x219322(0x1f6)]&&_0x5d1338[_0x219322(0x298)]['error']['code']!==ke['OK']?_0x219322(0x188):_0x5d1338[_0x219322(0x298)]['result'];}catch{return _0x219322(0x188);}}},exports['RemoteUniscriptService']=hs([de(0x0,a[_0x532fcf(0x149)]),de(0x1,a[_0x532fcf(0x2ce)](q[_0x532fcf(0x31b)])),de(0x2,a[_0x532fcf(0x116)])],exports[_0x532fcf(0x230)]),exports[_0x532fcf(0x26d)]=je,exports[_0x532fcf(0x34b)]=Ee,exports['SheetCollabCursorShape']=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports[_0x532fcf(0x21e)]=Be;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x2d46c0=_0xad60;function _0x2c24(){const _0x111c9a=['9484144RmQVBT','Collaboration\x20Conflict','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','826756YMgDLV','17290BdFVEy','4aTAdPH','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20please\x20check\x20your\x20network.','Edit\x20conflicts','Syncing\x20server\x20data...','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1487280MqCxGW','Authentication\x20Error','4836650rjCRSB','Local\x20file','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','exports','18oPOKdU','1218936mmgEfQ','4222929OLNiLd','Click\x20to\x20Reconnect','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1026BCChHJ'];_0x2c24=function(){return _0x111c9a;};return _0x2c24();}(function(_0x257318,_0xd01cb8){const _0x5a38fd=_0xad60,_0x71ca5f=_0x257318();while(!![]){try{const _0x4e6f70=parseInt(_0x5a38fd(0x1ad))/0x1*(-parseInt(_0x5a38fd(0x1af))/0x2)+parseInt(_0x5a38fd(0x1a6))/0x3+parseInt(_0x5a38fd(0x1a5))/0x4+parseInt(_0x5a38fd(0x1ae))/0x5*(parseInt(_0x5a38fd(0x1a9))/0x6)+-parseInt(_0x5a38fd(0x1a0))/0x7+parseInt(_0x5a38fd(0x1aa))/0x8+-parseInt(_0x5a38fd(0x1a4))/0x9*(parseInt(_0x5a38fd(0x19e))/0xa);if(_0x4e6f70===_0xd01cb8)break;else _0x71ca5f['push'](_0x71ca5f['shift']());}catch(_0x2a211d){_0x71ca5f['push'](_0x71ca5f['shift']());}}}(_0x2c24,0xcedbf));const e={'collab-client':{'tooltip':{'reconnect':_0x2d46c0(0x1a7)}},'collabStatus':{'fetchMiss':_0x2d46c0(0x19c),'conflict':_0x2d46c0(0x19b),'notCollab':_0x2d46c0(0x1a1),'synced':'Synced','syncing':'Syncing...','offline':_0x2d46c0(0x19d)},'session':{'connection-failed':_0x2d46c0(0x19a),'will-retry':_0x2d46c0(0x1a8),'room-full':_0x2d46c0(0x199),'collaboration-timeout':_0x2d46c0(0x197)},'conflict':{'title':_0x2d46c0(0x1ab),'content':_0x2d46c0(0x198)},'permission':{'title':_0x2d46c0(0x19f),'content':_0x2d46c0(0x1a2)},'collaboration':{'single-unit':{'warning':_0x2d46c0(0x1b0)},'closeRoom':_0x2d46c0(0x1ac)},'auth':{'needGotoLoginAlert':_0x2d46c0(0x1b1)}};function _0xad60(_0x22fe91,_0x4b5912){const _0x2c247d=_0x2c24();return _0xad60=function(_0xad6056,_0x258818){_0xad6056=_0xad6056-0x197;let _0xbbb05a=_0x2c247d[_0xad6056];return _0xbbb05a;},_0xad60(_0x22fe91,_0x4b5912);}module[_0x2d46c0(0x1a3)]=e;
|