@univerjs-pro/collaboration-client-ui 0.5.3 → 0.5.4-nightly.202501131606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x149747=_0x3d7f;function _0x35d4(){const _0x2a5ebd=['_injector','1jYschM','3536430BYMNsu','12912wMDslI','2282fbWIYB','19621890icttmr','11cYBImO','2403501vJQWPk','RemoteUniscriptService','963836cNrkdv','1310680hSCTwJ','get','FUniver','runOnServer','1927584NYKAYg','4ljPyLt'];_0x35d4=function(){return _0x2a5ebd;};return _0x35d4();}(function(_0x5638c7,_0x3fecf3){const _0x151d6d=_0x3d7f,_0x12e87a=_0x5638c7();while(!![]){try{const _0x1e5c2e=-parseInt(_0x151d6d(0xe8))/0x1*(parseInt(_0x151d6d(0xe0))/0x2)+-parseInt(_0x151d6d(0xde))/0x3*(parseInt(_0x151d6d(0xe6))/0x4)+-parseInt(_0x151d6d(0xe1))/0x5+-parseInt(_0x151d6d(0xe9))/0x6+-parseInt(_0x151d6d(0xdb))/0x7*(-parseInt(_0x151d6d(0xea))/0x8)+parseInt(_0x151d6d(0xe5))/0x9+-parseInt(_0x151d6d(0xdc))/0xa*(-parseInt(_0x151d6d(0xdd))/0xb);if(_0x1e5c2e===_0x3fecf3)break;else _0x12e87a['push'](_0x12e87a['shift']());}catch(_0xc5fd8a){_0x12e87a['push'](_0x12e87a['shift']());}}}(_0x35d4,0x8aa5f));function _0x3d7f(_0x5b20bc,_0x499563){const _0x35d406=_0x35d4();return _0x3d7f=function(_0x3d7fff,_0x3c3c8d){_0x3d7fff=_0x3d7fff-0xdb;let _0x400e59=_0x35d406[_0x3d7fff];return _0x400e59;},_0x3d7f(_0x5b20bc,_0x499563);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core');class c extends e[_0x149747(0xe3)]{['runOnServer'](_0x2b773d,_0x2ed798,..._0xc66b5f){const _0x50721e=_0x149747;return this[_0x50721e(0xe7)][_0x50721e(0xe2)](t[_0x50721e(0xdf)])[_0x50721e(0xe4)](_0x2b773d,_0x2ed798,..._0xc66b5f);}}e[_0x149747(0xe3)]['extend'](c);
1
+ 'use strict';function _0x5b4e(_0xe5a53e,_0x962da4){const _0x2b0edf=_0x2b0e();return _0x5b4e=function(_0x5b4e8e,_0x45f503){_0x5b4e8e=_0x5b4e8e-0x1a3;let _0x4cf082=_0x2b0edf[_0x5b4e8e];return _0x4cf082;},_0x5b4e(_0xe5a53e,_0x962da4);}const _0x5507d8=_0x5b4e;(function(_0x152e29,_0x5b625c){const _0x1dcea3=_0x5b4e,_0x3743e1=_0x152e29();while(!![]){try{const _0x176232=parseInt(_0x1dcea3(0x1a4))/0x1*(-parseInt(_0x1dcea3(0x1af))/0x2)+parseInt(_0x1dcea3(0x1b5))/0x3*(parseInt(_0x1dcea3(0x1b2))/0x4)+parseInt(_0x1dcea3(0x1a3))/0x5*(parseInt(_0x1dcea3(0x1a5))/0x6)+-parseInt(_0x1dcea3(0x1b1))/0x7*(parseInt(_0x1dcea3(0x1a6))/0x8)+-parseInt(_0x1dcea3(0x1b3))/0x9+-parseInt(_0x1dcea3(0x1a8))/0xa*(-parseInt(_0x1dcea3(0x1ab))/0xb)+-parseInt(_0x1dcea3(0x1a9))/0xc*(parseInt(_0x1dcea3(0x1ac))/0xd);if(_0x176232===_0x5b625c)break;else _0x3743e1['push'](_0x3743e1['shift']());}catch(_0x14115f){_0x3743e1['push'](_0x3743e1['shift']());}}}(_0x2b0e,0xb6164));const t=require(_0x5507d8(0x1ad)),e=require('@univerjs/core');class c extends e[_0x5507d8(0x1b0)]{[_0x5507d8(0x1ae)](_0x1e8d98,_0x140349,..._0xd67aeb){const _0x17aab6=_0x5507d8;return this[_0x17aab6(0x1aa)]['get'](t[_0x17aab6(0x1b4)])[_0x17aab6(0x1ae)](_0x1e8d98,_0x140349,{},..._0xd67aeb);}}function _0x2b0e(){const _0x443eb2=['_injector','6039pdzZZK','611MJcjQq','@univerjs-pro/collaboration-client-ui','runOnServer','338DMmboZ','FUniver','495838LQFJCz','2106508lKLXlZ','2167668MLtuCM','RemoteUniscriptService','6sRxlqa','115hVaKLK','225dyzXYH','262302LArPeJ','32dJPhiK','extend','11450HOVuge','352164jQjoCg'];_0x2b0e=function(){return _0x443eb2;};return _0x2b0e();}e[_0x5507d8(0x1b0)][_0x5507d8(0x1a7)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x500283=_0x433a;(function(_0x23cc95,_0x3bd006){const _0x5626d9=_0x433a,_0x52b624=_0x23cc95();while(!![]){try{const _0x355e9d=parseInt(_0x5626d9(0x276))/0x1*(parseInt(_0x5626d9(0x1c4))/0x2)+-parseInt(_0x5626d9(0x320))/0x3*(-parseInt(_0x5626d9(0x18f))/0x4)+parseInt(_0x5626d9(0x31b))/0x5+-parseInt(_0x5626d9(0xf8))/0x6+parseInt(_0x5626d9(0x115))/0x7*(parseInt(_0x5626d9(0x16a))/0x8)+parseInt(_0x5626d9(0x2ee))/0x9+parseInt(_0x5626d9(0x281))/0xa*(-parseInt(_0x5626d9(0xbf))/0xb);if(_0x355e9d===_0x3bd006)break;else _0x52b624['push'](_0x52b624['shift']());}catch(_0x222849){_0x52b624['push'](_0x52b624['shift']());}}}(_0x3a7b,0x44926));var Ze=Object[_0x500283(0xcc)],Qe=(_0xde9a9d,_0x12abd5,_0x3c5047)=>_0x12abd5 in _0xde9a9d?Ze(_0xde9a9d,_0x12abd5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c5047}):_0xde9a9d[_0x12abd5]=_0x3c5047,_=(_0x4c2d5b,_0x518478,_0x4c8490)=>Qe(_0x4c2d5b,typeof _0x518478!='symbol'?_0x518478+'':_0x518478,_0x4c8490);Object['defineProperty'](exports,Symbol[_0x500283(0x2d0)],{'value':'Module'});const u=require(_0x500283(0xbe)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),fe=require('@univerjs/network'),b=require(_0x500283(0xdf)),et=require('@univerjs/drawing'),S=require('rxjs'),X=require(_0x500283(0x229)),g=require(_0x500283(0x31a)),Te=require(_0x500283(0x2f1)),I=require(_0x500283(0x1fb)),$=require(_0x500283(0x245)),q=require('@univerjs/sheets-ui'),O=require(_0x500283(0x265)),w=require(_0x500283(0x293)),M=require('@univerjs/design'),tt=require('@univerjs/rpc');var st=Object[_0x500283(0xcc)],nt=Object[_0x500283(0x324)],it=(_0x47c545,_0x492fa2,_0x5d2e35,_0x10dc7b)=>{const _0x14e3c4=_0x500283;for(var _0x1ce8f=_0x10dc7b>0x1?void 0x0:_0x10dc7b?nt(_0x492fa2,_0x5d2e35):_0x492fa2,_0x36f93f=_0x47c545[_0x14e3c4(0x1f4)]-0x1,_0x2d3614;_0x36f93f>=0x0;_0x36f93f--)(_0x2d3614=_0x47c545[_0x36f93f])&&(_0x1ce8f=(_0x10dc7b?_0x2d3614(_0x492fa2,_0x5d2e35,_0x1ce8f):_0x2d3614(_0x1ce8f))||_0x1ce8f);return _0x10dc7b&&_0x1ce8f&&st(_0x492fa2,_0x5d2e35,_0x1ce8f),_0x1ce8f;},Oe=(_0x1745e1,_0x4faabd)=>(_0x31ac97,_0xed9e6b)=>_0x4faabd(_0x31ac97,_0xed9e6b,_0x1745e1);let Se=class extends a['RxDisposable']{constructor(_0x4c29b8,_0x52fd26){const _0x10869c=_0x500283;super(),this[_0x10869c(0x2bd)]=_0x4c29b8,this[_0x10869c(0x206)]=_0x52fd26,this[_0x10869c(0x29a)]();}[_0x500283(0x29a)](){const _0x218ab0=_0x500283,_0x534fec=this;this['disposeWithMe'](this[_0x218ab0(0x2bd)][_0x218ab0(0x2dc)]({'onBeforePasteImage':async _0x3a978e=>{const _0x19446c=_0x218ab0,_0x60545d=await _0x534fec['_imageIoService'][_0x19446c(0x2b2)](_0x3a978e);return _0x60545d?{'source':_0x60545d['source'],'imageSourceType':_0x60545d[_0x19446c(0x172)]}:null;}}));}};Se=it([Oe(0x0,b['IDocClipboardService']),Oe(0x1,et['IImageIoService'])],Se);function _0x3a7b(){const _0x51d71d=['_labelPosition','NOT_COLLAB','_revisionService','SetWorksheetActivateCommand','startColumn','MoveRangeCommandId','replaceDocRanges','transformMutation','exhaustSavingTask','OFFLINE','getOffsetConfig','_docTransformStateCacheService','_renderManagerService','ENSURE_SNAPSHOT_EXECUTION','permission.content','RichTextEditingMutation','Shape','IMessageService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','onPointerMove$','svg','deepClone','LICENSE_MAX_UNITS_EXCEEDED','collab-text-anchor-','CollaborationEvent','_collabCursorController','all','getCollabCursors$','_cursorShapes','unshift','Rect','_localeService','getMemberID','focused$','requireSession','updateOfflineData','attrs','throttleTime','then','getUnitStatus$','enableLocalCache','collaboration.closeRoom','JOIN_ROOM_FAILED','Inject','VIEW_MAIN','ONLINE','_messageService','getUniverSheetInstance','281194JkRXiQ','onPointerEnter$','reconnect','xlink:href','RegularPolygon','with','concat','handleIRemoveRow','_docSkeleton','_dataLoaderService','USERS_LEAVE','ColorKit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getActiveRange','_render','onMouseMove','getParam','NodePositionConvertToRectRange','redoState','UNDEFINED','_anchor','map','_updateCollabCursors','complete','from','_cachedData','selections','univer-flex\x20univer-items-center','_colorAssignService','combineLatest','SheetSkeletonManagerService','memberID','includes','SOCKET_FAILED_RETRY','roomMembers','location','_docStateChangeManagerService','FETCH_MISS','_initEntityListener','transformIMECache','CollaborationUIEventService','_disabled','undoState','useObservable','backgroundColor','_startSheetCollabCursor','BuiltInUIPart','_unitStatus','length','CONFLICT','next','evenodd','getSheetBySheetId','0\x200\x2017\x2016','UPDATE_CURSOR','@univerjs/sheets','_shapes','LICENSE_IMPORT_SIZE_EXCEEDED','addObject','dispose','contains','1em','OnLineSingle','_config','_heartbeatTimer','_handleEvent','_imageIoService','stringify','_removeCollabCursors','SUBMIT_CHANGESET_TIMEOUT','_beforeCloseService','_ensureSubject','_urlService','CollaborationUIEventId','_draw','CommandType','getActiveSheet','removeParam','SetSelectionsOperation','TRANSFORM_CHANGE_OBSERVABLE_TYPE','InsertRowCommandId','_initResize','transformMutationsWithChangeset','getDocRanges','LICENSE_DISTRO_REJECTED','registerRefRange','INVALID_ARGUMENT','set','SYNCED','eventID','RxDisposable','_lastPointer','react.element','onTransformChange$','APPLY_REJECT','_roomMembers$','univer-online','color','startRow','UniverCollaborationClientUIPlugin','collabStatus.syncing','@univerjs/docs','_context','clearTimeout','send','_scheduleHeartbeat','range','YUUMI_SUBSCRIPTION_NOT_FOUND','_refRangeService','icon','RefRangeService','_saveTaskMap','[CollaborationDataLoaderController]','_drawTextRange','rgba(255,\x20255,\x20255,\x200.01)','ISocketService','INTERNAL_ERROR','_getSaveTimeout','RemoteUniscriptService','dispose$','SHEET_VIEWPORT_KEY','YUUMI_UNABLE_LOAD_URL','fillStyle','drawWith','offline','getSkeleton','runId','_scheduleClearOtherTimer','idSuffix','rxjs/operators','YUUMI_RATE_OVER_LIMIT','getAncestorScale','LICENSE_EXPORT_SIZE_EXCEEDED','_getScale','for','_entityInit$','_getSheetObject','handleDeleteRangeMoveUp','uni.network.url-service','editingUnit','deserializeRangeWithSheet','ThemeService','_handleHover','APPLY_NON_SEQUENTIAL_REVISION','red300','_id','ref','addHandlerCallback','getCoordByCell','ILocalStorageService','getOwnPropertySymbols','sheetId','exports','flatMap','unitId','unitID','getUndoRedoMutationParamsCache','Subject','_startDocCollabCursor','registerRenderModule','registerComponent','react','handleDeleteRangeMoveLeft','getRenderById','ICommandService','runRefRangeMutations','_backgroundColor','_drawRectRange','CollaborationDataLoaderController','unload','font','_document','IConfigService','_collaborationUIEventService','_color','subscribeEvent','filter','event$','1dTyCYm','get','SOCKET_FAILED','setAlpha','_clearOtherTimers','_localCacheService','debug','beginPath','UNIVER_SHEET','moveTo','_assignedColors','5678330GepMAE','findNodePositionByCharIndex','clearInterval','docStateChange$','collabStatus.synced','Unknown\x20user','onStarting','max','fillText','defIds','colorChannel1','react.fragment','UniverInstanceType','BehaviorSubject','sessionStatus$','_registerDependencies','UniverIcon','LocaleService','@univerjs/ui','doc.mutation.rich-text-editing','div','_scene','DocIMEInputManagerService','_getMergeRange','fromEventSubject','_init','_collabCursorState$','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','fillRule','NOT_FOUND','params','lineTo','collab-text-range-','setConfig','actions','_transformPreviousActiveRange','_cursorInfo$','_docSyncEditingCollabCursorService','on-line-single_clip0_910_349','transformRemoteChangeset','delete','getItem','override','call','code','post','push','ALREADY_EXISTS','saveImage','transform','className','ILogService','urlChange$','jsx','useDependency','ReactCurrentOwner','toDisposable','unsubscribe','AWAITING','_docClipboardService','current','_removeClearOtherTimer','_transformHistoryAndStateStack','debounce','useCallback','bottom','setItem','EffectRefRangId','isActive','pushState','toRgbString','connectInjector','_online','_session','disposeUnit','_instanceService','ILocalCacheService','useRef','toStringTag','jiqing500','_getAnchorBounding','LOCAL_CACHE_INTERVAL_KEY','M0\x200H16V16H0z','OTHER_CLIENT_EDITING','APPLY_REVISION_CONFILICT','propertyIsEnumerable','_name','_syncEditingCollabCursorService','syncEditingCollabCursor','CollaborationStatus','addClipboardHook','assign','session.will-retry','_toggleOffline','_onCursorDelete','collaboration-client.offline-data-not-saved','DocSkeletonManagerService','body','onlineStatusIcon','searchParams','path','generateRandomId','TEXT','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','#fff','isTransformMutationsWithChangesetSuccess','textRanges','IRemoteInstanceService','4298301mAguUH','forwardRef','...','@univerjs/engine-formula','subscribe','CollaborationController','handleInsertRangeMoveDown','_initEvent','_transformUndoRedoStack','MemberService','skeleton','_updateLocalCursor','handleInsertRangeMoveRight','_entities','transformStateCache','save','_httpService','whenReady','setUndoRedoMutationParamsCache','getCurrent','random','createIdentifier','off-line-single','hide','Workbook','UniverCollaborationClientPlugin','_eventUnsubscribe','collaboration-client-ui.config','onCommandExecuted','_scheduleSaving','m2Prime','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','Injector','getFocusedUnit','none','PENDING','DataLoaderService','RevisionService','toString','_drawAnchor','forEach','add','size','setShapeProps','@univerjs-pro/collaboration','413730nQoAEd','_updateURLWithCurrentState','sheetID','assignAColorForMemberID','_initStatusComponent','27021aJXjzK','online','getVpScrollXYInfoByPosToVp','indexOf','getOwnPropertyDescriptor','Disposable','disposeWithMe','COMPLETION_FINISHED','COLORS','column','_collaborationController','LOCAL_CACHE_INTERVAL','TOO_MANY_REQUESTS','#FFF','APPLY_DUPLICATED','Tools','find','_injector','m1Prime','@univerjs-pro/collaboration-client','11RjhdKu','handleInsertRow','_commandService','HTTPService','UNAUTHENTICATED','_memberService','tag','DeleteRangeMoveUpCommandId','DesktopCollaborationStatusDisplayController','getConfig','defaultProps','subunit','name','defineProperty','currentColor','debounceTime','translate(.97)','prototype','UNRECOGNIZED','_unitOnClients','SetTextSelectionsOperation','createElement','hovered','newValue','MessageType','SNAPSHOT_HAS_BEEN_REMOVED','displayName','getRangePointData','replace','InsertColCommandId','collabStatus.conflict','values','@univerjs/docs-ui','_textBubble','currentTheme$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','RECT','_initStatusListener','switchMap','_univerInstanceService','unit','setTimeout','loadOfflineData','setParam','data','serializeRangeWithSheet','_cursor','object','popstate','asObservable','round','use','onPointerLeave$','getRelativeToViewportCoord','number','pipe','has','2077722HJndHM','_collabSessionService','merge','transformByState','_hover','_registerRenderDependencies','distinctUntilChanged','_refreshCollabCursors','mergeOverrideWithDependencies','_configService','replaceState','ITransformService','addEventListener','history','_hovered','measureText','href','RemoveRowCommandId','univer-online-status-icon','WebURLService','mapTo','jsxs','some','IUniverInstanceService','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','_send','getCurrentRevOfUnit','collab-client.tooltip.reconnect','disableLocalCache','1211kFHhGm','SheetsSelectionsService','fromEvent','SetDocZoomRatioOperation','makeDirty','height','min','roomMembers$','createInstance','_docSkeletonManagerService','Error','getMember','Warning','pluginName','_sheetSkeletonManagerService','init','DocSelectionManagerService','_status$','_handleJoinEvent','SheetCollabCursorShape','restore','fill','session.collaboration-timeout','_selfUnitIDs','getCellPositionByOffset','session.connection-failed','onlineStatus','show','_updateSubUnitFromURLParams','setActiveRange','takeUntil','_saveCache','error','Optional','_colorIndex','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','width','FromArray','getColor','text','isArray','_handleLeaveEvent','IBeforeCloseService','_initDependencies','InsertRangeMoveRightCommandId','DisposableCollection','_docTransformIMECacheService','extend','_themeService','WebBrowserSingleActiveUnitService','clipPath','defs','_range','CONNECTOR_DATA_TOO_LARGE','_initCommandExecutedListener','_transformService','CHANGESET_REVISION_CONFILICT','labelPosition','getSheetId','YUUMI_URL_COL_OUT_OF_RANGE','_anchorDot','getCurrentUnitForType','isEditing','INotificationService','cursorInfo','isTransformMutationFailure','key','getUnitId','_logService','cursorInfo$','IRenderManagerService','CollaborationSessionService','hasOwnProperty','mutations','OTHER_CLIENTS_EDITING','ranges','TEXT_RANGE_LAYER_INDEX','NO_OTHER_CLIENTS_EDITING','storage','black','_docTransformSelectionsService','_toggleOnline','MUTATION','executeCommand','url(#off-line-single_clip0_910_343)','17432vvflbC','currentSkeleton$','UNIVER_DOC','_handleHeartbeatEvent','split','_notificationService','collab-rect-range-','getViewport','imageSourceType','purple300','_onCursorUpdate','type','APPLY_PERMISSION_DENIED','UnitStatus','_localStorageService','_cursors','onLocalMutation','_setupSubUnitSync','CLOSE_ROOM','subUnitId','trim','getTypeOfUnitDisposed$','getSheetObject','collabCursorState$','DependentOn','ACTIVE_UNIT_EVENT_CHANNEL','substring','_hideTimer','getTypeOfUnitAdded$','handleInsertCol','_setupBeforeClosingHandler','string','InsertRangeMoveDownCommandId','Vector2','selection','univerjs-icon\x20univerjs-icon-','entityInit$','52CgSqOP','DOC_RANGE_TYPE','arc','blue400','children'];_0x3a7b=function(){return _0x51d71d;};return _0x3a7b();}const De=[_0x500283(0x173),_0x500283(0x2d1),'verdancy600',_0x500283(0x254),_0x500283(0x192),'gold400'];class Ce extends a['Disposable']{constructor(){const _0x55e871=_0x500283;super(...arguments),_(this,_0x55e871(0x280),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xf1e740){const _0x72feaa=_0x500283;if(this['_assignedColors'][_0x72feaa(0xf7)](_0xf1e740))return this[_0x72feaa(0x280)][_0x72feaa(0x277)](_0xf1e740);const _0x531480=De[this[_0x72feaa(0x137)]];return this[_0x72feaa(0x137)]=(this['_colorIndex']+0x1)%De[_0x72feaa(0x1f4)],this['_assignedColors']['set'](_0xf1e740,_0x531480),_0x531480;}}function xe(_0x1815e5){const _0x4a240b=_0x500283;let _0x1be7b0='';for(const _0x16ad1b of _0x1815e5){const {startOffset:_0x4ad7d9,endOffset:_0x4a2d80,isActive:_0x240cc5,rangeType:_0x3c6bd3,segmentId:_0x183613,segmentPage:_0x2185bf}=_0x16ad1b;_0x1be7b0[_0x4a240b(0x1f4)]&&(_0x1be7b0+=','),_0x1be7b0+=_0x4ad7d9+':'+_0x4a2d80+':'+(_0x240cc5?'1':'0')+':'+_0x3c6bd3+':'+_0x183613+':'+_0x2185bf;}return _0x1be7b0;}function rt(_0x191803){const _0x149972=_0x500283,_0x3fb46e=_0x191803[_0x149972(0x16e)](','),_0x4dd16c=[];for(const _0x57c3b9 of _0x3fb46e){const [_0x5bed6e,_0x1e4e72,_0x248bbf,_0x562ecf,_0x493391,_0x495783]=_0x57c3b9[_0x149972(0x16e)](':');_0x4dd16c[_0x149972(0x2b0)]({'startOffset':Number(_0x5bed6e),'endOffset':Number(_0x1e4e72),'collapsed':_0x5bed6e===_0x1e4e72,'isActive':_0x248bbf==='1','rangeType':_0x562ecf===a[_0x149972(0x190)][_0x149972(0x2e8)]?a[_0x149972(0x190)]['TEXT']:a[_0x149972(0x190)][_0x149972(0xe3)],'segmentId':typeof _0x493391==_0x149972(0x189)?String(_0x493391):'','segmentPage':Number(_0x495783!=null?_0x495783:-0x1)});}return _0x4dd16c[_0x149972(0x10e)](_0x410e3b=>_0x410e3b[_0x149972(0x2c6)])||(_0x4dd16c[0x0][_0x149972(0x2c6)]=!0x0),_0x4dd16c;}class be extends a['RxDisposable']{constructor(){const _0x3ff1e6=_0x500283;super(...arguments),_(this,_0x3ff1e6(0x29b),new S['BehaviorSubject'](null)),_(this,_0x3ff1e6(0x181),this['_collabCursorState$'][_0x3ff1e6(0xf0)]());}[_0x500283(0x2da)](_0x410a28){const _0x12d59c=_0x500283,{unitID:_0x545870,memberID:_0x3289c9,textRanges:_0x6cfa9f}=_0x410a28,_0x2d8480=xe(_0x6cfa9f);if(_0x2d8480==='')return;const _0x297331={'unitID':_0x545870,'memberID':_0x3289c9,'selection':_0x2d8480};this[_0x12d59c(0x29b)][_0x12d59c(0x1f6)](_0x297331);}}var ot=Object[_0x500283(0xcc)],at=Object['getOwnPropertyDescriptor'],ct=(_0x4ea5d1,_0x3a3abb,_0x239ba8,_0x130941)=>{const _0x2e5f4c=_0x500283;for(var _0x33d305=_0x130941>0x1?void 0x0:_0x130941?at(_0x3a3abb,_0x239ba8):_0x3a3abb,_0x4b6f72=_0x4ea5d1[_0x2e5f4c(0x1f4)]-0x1,_0x154407;_0x4b6f72>=0x0;_0x4b6f72--)(_0x154407=_0x4ea5d1[_0x4b6f72])&&(_0x33d305=(_0x130941?_0x154407(_0x3a3abb,_0x239ba8,_0x33d305):_0x154407(_0x33d305))||_0x33d305);return _0x130941&&_0x33d305&&ot(_0x3a3abb,_0x239ba8,_0x33d305),_0x33d305;},U=(_0x515418,_0x126baf)=>(_0x3f784a,_0x1dabc2)=>_0x126baf(_0x3f784a,_0x1dabc2,_0x515418);const lt=0x12c,ht=0x64;let ve=class extends a['RxDisposable']{constructor(_0x5d8479,_0x41cb8b,_0x401d0d,_0x4850dd,_0x4617f7,_0x19d4d6,_0x31b72f,_0x2e1676,_0x276dab){const _0x46a966=_0x500283;super(),_(this,_0x46a966(0x2ca),!0x1),_(this,_0x46a966(0x29a),!0x1),_(this,_0x46a966(0x2a6),new S['BehaviorSubject'](new Map())),_(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_(this,_0x46a966(0x223),new S[(_0x46a966(0x28e))]([])),_(this,_0x46a966(0x11c),this[_0x46a966(0x223)]['pipe'](S[_0x46a966(0xce)](lt))),_(this,_0x46a966(0x2f9),a['debounce'](_0x261e93=>{const _0x56377a=_0x46a966,_0x528e84={'eventID':g[_0x56377a(0x1ac)][_0x56377a(0x1fa)],'data':{'unitID':this[_0x56377a(0x25f)],'memberID':this[_0x56377a(0x2cb)][_0x56377a(0x1b4)](),'selection':xe(_0x261e93)}};this[_0x56377a(0x2cb)][_0x56377a(0x22c)](_0x528e84,this['unitID']);},ht)),(this['unitID']=_0x5d8479,this['_session']=_0x41cb8b,this['_injector']=_0x401d0d,this['_colorAssignService']=_0x4850dd,this[_0x46a966(0xc4)]=_0x4617f7,this[_0x46a966(0x2d9)]=_0x19d4d6,this[_0x46a966(0x14c)]=_0x31b72f,this[_0x46a966(0xe6)]=_0x2e1676,this[_0x46a966(0xc1)]=_0x276dab);}get[_0x500283(0x155)](){const _0x50e218=_0x500283;return this[_0x50e218(0x2a6)]['getValue']();}get[_0x500283(0x1e6)](){const _0x228169=_0x500283;return this[_0x228169(0x223)]['getValue']();}[_0x500283(0x1ff)](){const _0x30e50b=_0x500283;super[_0x30e50b(0x1ff)](),this['_cursorInfo$']['next'](new Map()),this[_0x30e50b(0x2a6)][_0x30e50b(0x1db)](),this[_0x30e50b(0x223)][_0x30e50b(0x1f6)]([]),this[_0x30e50b(0x223)]['complete']();}[_0x500283(0x124)](){const _0x191418=_0x500283;this[_0x191418(0x29a)]||(this[_0x191418(0x29a)]=!0x0,this[_0x191418(0x2cb)][_0x191418(0x28f)][_0x191418(0xf6)](S[_0x191418(0x133)](this[_0x191418(0x23b)]))['subscribe'](_0x5b006f=>{const _0x47441f=_0x191418;_0x5b006f===u['SessionStatus'][_0x47441f(0x1c1)]?this['_toggleOnline']():this[_0x47441f(0x2df)]();}),this[_0x191418(0x2cb)]['event$'][_0x191418(0xf6)](S['takeUntil'](this[_0x191418(0x23b)]))[_0x191418(0x2f2)](_0x5bc07d=>{const _0x43badd=_0x191418,_0x52f5ec=_0x5bc07d[_0x43badd(0x21d)];_0x52f5ec===g[_0x43badd(0x1ac)][_0x43badd(0x1fa)]&&this[_0x43badd(0x174)](_0x5bc07d),_0x52f5ec===g[_0x43badd(0x1ac)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x5bc07d);}),this[_0x191418(0x326)](this['_commandService']['onCommandExecuted'](_0xfafe0b=>{const _0x18e9a3=_0x191418,_0x463809=_0xfafe0b['params'];_0x463809!=null&&this['_online']&&_0xfafe0b['id']===X[_0x18e9a3(0xd3)]['id']&&_0x463809[_0x18e9a3(0x25e)]===this[_0x18e9a3(0x25f)]&&_0x463809[_0x18e9a3(0x153)]===!0x1&&_0x463809[_0x18e9a3(0x160)][_0x18e9a3(0x1f4)]>0x0&&this[_0x18e9a3(0x2f9)](_0x463809[_0x18e9a3(0x160)]);})),this['_syncEditingCollabCursorService'][_0x191418(0x181)][_0x191418(0xf6)](S[_0x191418(0x133)](this[_0x191418(0x23b)]))[_0x191418(0x2f2)](_0x2b6acf=>{const _0x5452ae=_0x191418;if((_0x2b6acf==null?void 0x0:_0x2b6acf[_0x5452ae(0x25f)])!==this[_0x5452ae(0x25f)])return;const _0x4d0748={'eventID':g[_0x5452ae(0x1ac)][_0x5452ae(0x1fa)],'data':_0x2b6acf};this[_0x5452ae(0x174)](_0x4d0748);}),this[_0x191418(0x326)](this[_0x191418(0xc1)][_0x191418(0x30a)](_0xcee09d=>{const _0x417d09=_0x191418;if(_0xcee09d['params']==null)return;const _0x19b698=_0xcee09d[_0x417d09(0x2a0)];if(_0xcee09d['id']!==X[_0x417d09(0x1a3)]['id']||_0x19b698[_0x417d09(0x25e)]!==this[_0x417d09(0x25f)])return;const _0x29cb75={'id':_0x417d09(0x294),'params':_0x19b698},_0x479b3=this[_0x417d09(0x155)];for(const [_0x59d88b,_0x45b68c]of _0x479b3){const _0x3159fa={'id':_0x417d09(0x294),'params':{'unitId':this[_0x417d09(0x25f)],'actions':null,'textRanges':_0x45b68c['ranges']}},_0x40ed4f=this[_0x417d09(0x14c)][_0x417d09(0x19b)](_0x29cb75,_0x3159fa,!0x1);if(g[_0x417d09(0x156)](_0x40ed4f))throw _0x40ed4f[_0x417d09(0x135)];_0x479b3[_0x417d09(0x21b)](_0x59d88b,{..._0x45b68c,'ranges':_0x40ed4f[_0x417d09(0x30c)]['params'][_0x417d09(0x2ec)]});}queueMicrotask(()=>{const _0x1e5af3=_0x417d09;this['_cursorInfo$'][_0x1e5af3(0x1f6)](_0x479b3);});})));}[_0x500283(0x174)](_0x562dee){const _0x3d731d=_0x500283;var _0xdc6d3e,_0xb2f26e;const {memberID:_0x1496ff,selection:_0x5832d4}=_0x562dee['data'],_0x295fa3=rt(_0x5832d4),_0x281eb5=(_0xb2f26e=(_0xdc6d3e=this[_0x3d731d(0xc4)][_0x3d731d(0x120)](this[_0x3d731d(0x25f)],_0x1496ff))==null?void 0x0:_0xdc6d3e[_0x3d731d(0xcb)])!=null?_0xb2f26e:_0x3d731d(0x286),_0x3de8f7={'color':this['_colorAssignService'][_0x3d731d(0x31e)](_0x1496ff),'name':_0x281eb5,'ranges':_0x295fa3},_0x4eeacc=this['cursorInfo'];_0x4eeacc[_0x3d731d(0x21b)](_0x1496ff,_0x3de8f7),this[_0x3d731d(0x2a6)]['next'](_0x4eeacc);}[_0x500283(0x2e0)](_0x15cad8){const _0x178a86=_0x500283,{memberID:_0x186855}=_0x15cad8['data'],_0x7b54f6=this['cursorInfo'];_0x7b54f6[_0x178a86(0x2aa)](_0x186855),this[_0x178a86(0x2a6)]['next'](_0x7b54f6);}['_toggleOnline'](){const _0x3b4755=_0x500283;var _0x3cd24e;if(this[_0x3b4755(0x2ca)]=!0x0,((_0x3cd24e=this[_0x3b4755(0xe6)][_0x3b4755(0x30f)]())==null?void 0x0:_0x3cd24e[_0x3b4755(0x158)]())!==this['unitID'])return;const _0x1db829=this[_0x3b4755(0xbc)][_0x3b4755(0x277)](X[_0x3b4755(0x125)])[_0x3b4755(0x217)]();Array[_0x3b4755(0x13d)](_0x1db829)&&_0x1db829['length']>0x0&&this[_0x3b4755(0x2f9)](_0x1db829);}['_toggleOffline'](){const _0x2198ff=_0x500283;this[_0x2198ff(0x2ca)]=!0x1;}};ve=ct([U(0x2,a[_0x500283(0x1bf)](a[_0x500283(0x30e)])),U(0x3,a[_0x500283(0x1bf)](Ce)),U(0x4,a[_0x500283(0x1bf)](u[_0x500283(0x2f7)])),U(0x5,a[_0x500283(0x1bf)](be)),U(0x6,g[_0x500283(0x103)]),U(0x7,a[_0x500283(0x10f)]),U(0x8,a[_0x500283(0x268)])],ve);var _t=Object[_0x500283(0xcc)],ut=Object['getOwnPropertyDescriptor'],dt=(_0x7d9c33,_0x20aa5f,_0x1128a0,_0x586470)=>{const _0x30c075=_0x500283;for(var _0x1a3b90=_0x586470>0x1?void 0x0:_0x586470?ut(_0x20aa5f,_0x1128a0):_0x20aa5f,_0x4954f6=_0x7d9c33[_0x30c075(0x1f4)]-0x1,_0x43eabc;_0x4954f6>=0x0;_0x4954f6--)(_0x43eabc=_0x7d9c33[_0x4954f6])&&(_0x1a3b90=(_0x586470?_0x43eabc(_0x20aa5f,_0x1128a0,_0x1a3b90):_0x43eabc(_0x1a3b90))||_0x1a3b90);return _0x586470&&_0x1a3b90&&_t(_0x20aa5f,_0x1128a0,_0x1a3b90),_0x1a3b90;},A=(_0xe8ef74,_0x1e5602)=>(_0x4c103f,_0x545b7b)=>_0x1e5602(_0x4c103f,_0x545b7b,_0xe8ef74);const ft=0x12c,St=0x64,vt=()=>{let _0x18dc20=[],_0x32e789=!0x1;return _0x3da6dc=>{const _0x358881=_0x433a;_0x18dc20[_0x358881(0x2b0)](_0x3da6dc),_0x32e789||(_0x32e789=!0x0,setTimeout(()=>{_0x18dc20['forEach'](_0x35fbeb=>_0x35fbeb()),_0x18dc20=[],_0x32e789=!0x1;}));};};let me=class extends a[_0x500283(0x21e)]{constructor(_0x58d087,_0x49232e,_0x5e3c0d,_0x3c7602,_0x3f4c91,_0x24ed86,_0x455f11,_0x2d0450){const _0x308ba2=_0x500283;super(),_(this,_0x308ba2(0x2ca),!0x1),_(this,'_init',!0x1),_(this,_0x308ba2(0x2a6),new S[(_0x308ba2(0x28e))](new Map())),_(this,'cursorInfo$',this[_0x308ba2(0x2a6)][_0x308ba2(0xf0)]()),_(this,_0x308ba2(0x223),new S[(_0x308ba2(0x28e))]([])),_(this,_0x308ba2(0x11c),this[_0x308ba2(0x223)][_0x308ba2(0xf6)](S[_0x308ba2(0xce)](ft))),_(this,_0x308ba2(0x2f9),a['debounce']((_0x378904,_0x502109)=>{const _0x24a7eb=_0x308ba2,_0x3ff3d5={'eventID':g[_0x24a7eb(0x1ac)][_0x24a7eb(0x1fa)],'data':{'unitID':this[_0x24a7eb(0x25f)],'memberID':this[_0x24a7eb(0x2cb)][_0x24a7eb(0x1b4)](),'selection':Te[_0x24a7eb(0xec)](_0x378904,_0x502109[_0x24a7eb(0x22e)])}};this['_session']['send'](_0x3ff3d5,this[_0x24a7eb(0x25f)]);},St)),(this[_0x308ba2(0x25f)]=_0x58d087,this[_0x308ba2(0x2cb)]=_0x49232e,this[_0x308ba2(0xbc)]=_0x5e3c0d,this[_0x308ba2(0x1e0)]=_0x3c7602,this[_0x308ba2(0xc4)]=_0x3f4c91,this[_0x308ba2(0xe6)]=_0x24ed86,this[_0x308ba2(0xc1)]=_0x455f11,this[_0x308ba2(0x230)]=_0x2d0450);}get[_0x500283(0x155)](){return this['_cursorInfo$']['getValue']();}get[_0x500283(0x1e6)](){const _0x4d467a=_0x500283;return this[_0x4d467a(0x223)]['getValue']();}[_0x500283(0x1ff)](){const _0x309564=_0x500283;super[_0x309564(0x1ff)](),this[_0x309564(0x2a6)]['next'](new Map()),this[_0x309564(0x2a6)][_0x309564(0x1db)](),this[_0x309564(0x223)][_0x309564(0x1f6)]([]),this['_roomMembers$'][_0x309564(0x1db)]();}[_0x500283(0x124)](){const _0x21fbbb=_0x500283;this['_init']||(this[_0x21fbbb(0x29a)]=!0x0,this[_0x21fbbb(0x2cb)][_0x21fbbb(0x28f)]['pipe'](S['takeUntil'](this[_0x21fbbb(0x23b)]))[_0x21fbbb(0x2f2)](_0x1acd1c=>{const _0x2b721a=_0x21fbbb;_0x1acd1c===u['SessionStatus'][_0x2b721a(0x1c1)]?this['_toggleOnline']():this[_0x2b721a(0x2df)]();}),this[_0x21fbbb(0x2cb)][_0x21fbbb(0x275)][_0x21fbbb(0xf6)](S[_0x21fbbb(0x133)](this[_0x21fbbb(0x23b)]))['subscribe'](_0x351a65=>{const _0x5d9e1a=_0x21fbbb,_0xe11812=_0x351a65[_0x5d9e1a(0x21d)];_0xe11812===g[_0x5d9e1a(0x1ac)][_0x5d9e1a(0x1fa)]&&this[_0x5d9e1a(0x174)](_0x351a65),_0xe11812===g[_0x5d9e1a(0x1ac)][_0x5d9e1a(0x1ce)]&&this[_0x5d9e1a(0x2e0)](_0x351a65);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x21fbbb(0x30a)](_0x22bd14=>{const _0x59aaf2=_0x21fbbb;if(this[_0x59aaf2(0x2ca)]&&_0x22bd14['id']===I[_0x59aaf2(0x212)]['id']&&_0x22bd14[_0x59aaf2(0x2a0)]['unitId']===this['unitID']){const _0x1c0354=_0x22bd14[_0x59aaf2(0x2a0)];this[_0x59aaf2(0x2f9)](_0x1c0354[_0x59aaf2(0x17d)],_0x1c0354[_0x59aaf2(0x1de)][0x0]);}})));}[_0x500283(0x174)](_0x43c787){const _0x17f7fc=_0x500283;var _0x2597a2,_0x5036ce;const {memberID:_0xb651f0,selection:_0x1e153d}=_0x43c787[_0x17f7fc(0xeb)],{sheetName:_0x38f9b3,range:_0x32cae7}=Te[_0x17f7fc(0x250)](_0x1e153d),_0x238a72={'name':(_0x5036ce=(_0x2597a2=this[_0x17f7fc(0xc4)][_0x17f7fc(0x120)](this['unitID'],_0xb651f0))==null?void 0x0:_0x2597a2[_0x17f7fc(0xcb)])!=null?_0x5036ce:_0x17f7fc(0x286),'range':this[_0x17f7fc(0x298)](_0x38f9b3,_0x32cae7),'sheetID':_0x38f9b3,'color':this[_0x17f7fc(0x1e0)]['assignAColorForMemberID'](_0xb651f0),'selection':_0x1e153d},_0x1ecc1f=this['cursorInfo'];_0x1ecc1f[_0x17f7fc(0x21b)](_0xb651f0,_0x238a72),this[_0x17f7fc(0x2a6)][_0x17f7fc(0x1f6)](_0x1ecc1f);}[_0x500283(0x2e0)](_0x1bd907){const _0x3ba7fa=_0x500283,{memberID:_0x5e8614}=_0x1bd907[_0x3ba7fa(0xeb)],_0x584dd5=this[_0x3ba7fa(0x155)];_0x584dd5[_0x3ba7fa(0x2aa)](_0x5e8614),this[_0x3ba7fa(0x2a6)][_0x3ba7fa(0x1f6)](_0x584dd5);}['_getMergeRange'](_0x33c239,_0x1b629c){const _0x4b0a11=_0x500283;var _0x5dd347,_0xf2ff72;const _0xd71842=(_0xf2ff72=(_0x5dd347=this['_univerInstanceService'][_0x4b0a11(0x1c3)](this[_0x4b0a11(0x25f)]))==null?void 0x0:_0x5dd347[_0x4b0a11(0x1f8)](_0x33c239))==null?void 0x0:_0xf2ff72['getMergeData']();return(_0xd71842==null?void 0x0:_0xd71842[_0x4b0a11(0xbb)](_0x3856bb=>a['Rectangle'][_0x4b0a11(0x200)](_0x3856bb,_0x1b629c)))||_0x1b629c;}['_onRefRangeChange'](){const _0x40b206=_0x500283,_0x2d3bc1=new a[(_0x40b206(0x142))](),_0x4a076d=vt(),_0x38c1a2=()=>{const _0x2232c6=_0x40b206;_0x2d3bc1['dispose']();const _0x5ad59c=(_0x4f24b3,_0xb327af,_0x37a77f,_0x4e3d4d)=>{const _0x2006d2=_0x433a;let _0x2afcc4=[];switch(_0x4f24b3['id']){case I[_0x2006d2(0x2c5)]['DeleteRangeMoveLeftCommandId']:{_0x2afcc4=I[_0x2006d2(0x266)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0xc6)]:{_0x2afcc4=I[_0x2006d2(0x24d)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0xdc)]:{_0x2afcc4=I[_0x2006d2(0x187)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0x18a)]:{_0x2afcc4=I[_0x2006d2(0x2f4)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0x141)]:{_0x2afcc4=I[_0x2006d2(0x2fa)](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)][_0x2006d2(0x214)]:{_0x2afcc4=I[_0x2006d2(0xc0)](_0x4f24b3,_0x4e3d4d);break;}case I['EffectRefRangId'][_0x2006d2(0x199)]:{_0x2afcc4=I['handleMoveRange'](_0x4f24b3,_0x4e3d4d);break;}case I[_0x2006d2(0x2c5)]['RemoveColCommandId']:{_0x2afcc4=I['handleIRemoveCol'](_0x4f24b3,_0x4e3d4d);break;}case I['EffectRefRangId'][_0x2006d2(0x109)]:{_0x2afcc4=I[_0x2006d2(0x1cb)](_0x4f24b3,_0x4e3d4d);break;}}const _0x2e0937=I[_0x2006d2(0x269)](_0x2afcc4,_0x4e3d4d),_0x26f899=this[_0x2006d2(0x155)][_0x2006d2(0x277)](_0xb327af);if(_0x26f899&&_0x2e0937){const _0x8e9e02={..._0x26f899,'range':_0x2e0937};this[_0x2006d2(0x155)]['set'](_0xb327af,_0x8e9e02),_0x4a076d(()=>{const _0x235f58=_0x2006d2,_0xc2bafa=this[_0x235f58(0x230)][_0x235f58(0x219)](_0x2e0937,_0x2aacbc=>(_0xc2bafa[_0x235f58(0x1ff)](),_0x5ad59c(_0x2aacbc,_0xb327af,_0x37a77f,_0x2e0937)));_0x2d3bc1[_0x235f58(0x317)](_0xc2bafa);});}return{'redos':[],'undos':[]};};this[_0x2232c6(0x155)][_0x2232c6(0x316)]((_0x42a78d,_0x17a341)=>{const _0xaf22da=_0x2232c6,{range:_0x128c83,sheetID:_0x48afff}=_0x42a78d,_0x17863c=this[_0xaf22da(0x230)]['registerRefRange'](_0x128c83,_0x1d72e6=>(_0x17863c[_0xaf22da(0x1ff)](),_0x5ad59c(_0x1d72e6,_0x17a341,_0x48afff,_0x128c83)));_0x2d3bc1[_0xaf22da(0x317)](_0x17863c);});};this[_0x40b206(0x326)](a[_0x40b206(0x2ba)](this[_0x40b206(0x2a6)]['subscribe'](()=>{_0x38c1a2();})));}[_0x500283(0x166)](){const _0x5e335a=_0x500283;var _0x30b5db,_0x161888;if(this[_0x5e335a(0x2ca)]=!0x0,((_0x30b5db=this[_0x5e335a(0xe6)][_0x5e335a(0x30f)]())==null?void 0x0:_0x30b5db['getUnitId']())!==this['unitID'])return;const _0x1b77e4=(_0x161888=this[_0x5e335a(0xbc)][_0x5e335a(0x277)](I[_0x5e335a(0x116)])['getCurrentSelections']())==null?void 0x0:_0x161888[0x0],_0x780e75=this[_0x5e335a(0xe6)][_0x5e335a(0x152)](a[_0x5e335a(0x28d)][_0x5e335a(0x27e)])[_0x5e335a(0x210)]();_0x1b77e4&&_0x780e75&&this['_updateLocalCursor'](_0x780e75[_0x5e335a(0x14f)](),_0x1b77e4);}['_toggleOffline'](){const _0x4ce49a=_0x500283;this[_0x4ce49a(0x2ca)]=!0x1;}};me=dt([A(0x2,a['Inject'](a[_0x500283(0x30e)])),A(0x3,a[_0x500283(0x1bf)](Ce)),A(0x4,a[_0x500283(0x1bf)](u[_0x500283(0x2f7)])),A(0x5,a[_0x500283(0x10f)]),A(0x6,a['ICommandService']),A(0x7,a[_0x500283(0x1bf)](I[_0x500283(0x232)]))],me);var mt=Object[_0x500283(0xcc)],It=Object[_0x500283(0x324)],gt=(_0x246e08,_0x493327,_0x1be0b0,_0xa1a907)=>{const _0x398cc3=_0x500283;for(var _0x261b6a=_0xa1a907>0x1?void 0x0:_0xa1a907?It(_0x493327,_0x1be0b0):_0x493327,_0xf8344f=_0x246e08[_0x398cc3(0x1f4)]-0x1,_0x3d17e4;_0xf8344f>=0x0;_0xf8344f--)(_0x3d17e4=_0x246e08[_0xf8344f])&&(_0x261b6a=(_0xa1a907?_0x3d17e4(_0x493327,_0x1be0b0,_0x261b6a):_0x3d17e4(_0x261b6a))||_0x261b6a);return _0xa1a907&&_0x261b6a&&mt(_0x493327,_0x1be0b0,_0x261b6a),_0x261b6a;},ne=(_0x2b6802,_0x394f52)=>(_0x6137d1,_0x37d6a1)=>_0x394f52(_0x6137d1,_0x37d6a1,_0x2b6802);let x=class extends a[_0x500283(0x21e)]{constructor(_0x5f3877,_0x13b9cb,_0x521819){const _0x572bbb=_0x500283;super(),_(this,_0x572bbb(0x2fb),new Map()),_(this,_0x572bbb(0x24b),new S[(_0x572bbb(0x261))]()),(this[_0x572bbb(0xe6)]=_0x5f3877,this[_0x572bbb(0xbc)]=_0x13b9cb,this[_0x572bbb(0xf9)]=_0x521819,this[_0x572bbb(0x29a)]());}[_0x500283(0x1ff)](){const _0x528fa7=_0x500283;super['dispose'](),this[_0x528fa7(0x24b)][_0x528fa7(0x1db)](),this[_0x528fa7(0x2fb)][_0x528fa7(0x316)](_0x2ffe9d=>_0x2ffe9d['dispose']());}[_0x500283(0x1af)](_0x3c34bc){const _0x236eee=_0x500283;return this[_0x236eee(0x2fb)][_0x236eee(0xf7)](_0x3c34bc)?this[_0x236eee(0x2fb)]['get'](_0x3c34bc)[_0x236eee(0x15a)]:this[_0x236eee(0x24b)][_0x236eee(0xf6)](S[_0x236eee(0x274)](_0x40316f=>_0x40316f['unitID']===_0x3c34bc),S[_0x236eee(0xe5)](_0x30e4e5=>_0x30e4e5[_0x236eee(0x15a)]));}[_0x500283(0x29a)](){const _0x14ef87=_0x500283;this[_0x14ef87(0xe6)]['getTypeOfUnitAdded$'](a[_0x14ef87(0x28d)][_0x14ef87(0x27e)])[_0x14ef87(0xf6)](S[_0x14ef87(0x133)](this[_0x14ef87(0x23b)]))[_0x14ef87(0x2f2)](async _0x1b5ca1=>{const _0x517e3a=_0x14ef87,_0x556c7d=_0x1b5ca1[_0x517e3a(0x158)](),_0x85df9f=await this[_0x517e3a(0x1f1)](_0x556c7d);this[_0x517e3a(0x24b)][_0x517e3a(0x1f6)](_0x85df9f),this['_entities'][_0x517e3a(0x21b)](_0x556c7d,_0x85df9f);}),this[_0x14ef87(0xe6)][_0x14ef87(0x186)](a[_0x14ef87(0x28d)][_0x14ef87(0x16c)])[_0x14ef87(0xf6)](S['takeUntil'](this[_0x14ef87(0x23b)]))[_0x14ef87(0xf6)](S[_0x14ef87(0x274)](_0x566590=>!_0x566590[_0x14ef87(0x158)]()['startsWith']('__')))[_0x14ef87(0x2f2)](async _0x119449=>{const _0x41946a=_0x14ef87,_0x3d5bfa=_0x119449[_0x41946a(0x158)](),_0x5b2155=await this[_0x41946a(0x262)](_0x3d5bfa);this[_0x41946a(0x24b)][_0x41946a(0x1f6)](_0x5b2155),this[_0x41946a(0x2fb)][_0x41946a(0x21b)](_0x3d5bfa,_0x5b2155);}),S[_0x14ef87(0xfa)](this[_0x14ef87(0xe6)][_0x14ef87(0x17f)](a[_0x14ef87(0x28d)]['UNIVER_DOC']),this[_0x14ef87(0xe6)][_0x14ef87(0x17f)](a[_0x14ef87(0x28d)][_0x14ef87(0x27e)]))[_0x14ef87(0xf6)](S[_0x14ef87(0x133)](this[_0x14ef87(0x23b)]))[_0x14ef87(0x2f2)](_0x4e83b4=>{const _0x9a5c9=_0x14ef87,_0x582328=_0x4e83b4[_0x9a5c9(0x158)](),_0x563662=this[_0x9a5c9(0x2fb)][_0x9a5c9(0x277)](_0x582328);_0x563662&&(_0x563662[_0x9a5c9(0x1ff)](),this[_0x9a5c9(0x2fb)][_0x9a5c9(0x2aa)](_0x582328));});}async[_0x500283(0x1f1)](_0x278ae3){const _0x535a14=_0x500283,_0x187194=await this[_0x535a14(0xf9)][_0x535a14(0x1b6)](_0x278ae3),_0x447d84=this[_0x535a14(0xbc)][_0x535a14(0x11d)](me,_0x278ae3,_0x187194);return _0x447d84[_0x535a14(0x124)](),_0x447d84;}async[_0x500283(0x262)](_0x201d08){const _0x242f88=_0x500283,_0x525a5a=await this[_0x242f88(0xf9)][_0x242f88(0x1b6)](_0x201d08),_0x5720bb=this[_0x242f88(0xbc)][_0x242f88(0x11d)](ve,_0x201d08,_0x525a5a);return _0x5720bb[_0x242f88(0x124)](),_0x5720bb;}};x=gt([ne(0x0,a['IUniverInstanceService']),ne(0x1,a['Inject'](a[_0x500283(0x30e)])),ne(0x2,a[_0x500283(0x1bf)](u[_0x500283(0x15c)]))],x);const V=0x14,Pe=0xc8,ie=0x4,pt=0x5;function Ct(_0x4a77b5,_0x2c494a){const _0x5719b3=_0x500283;let {radius:_0x5d4c53,width:_0x511cfc,height:_0xdb9f}=_0x2c494a;_0x5d4c53=_0x5d4c53!=null?_0x5d4c53:0x0,_0x511cfc=_0x511cfc!=null?_0x511cfc:0x1e,_0xdb9f=_0xdb9f!=null?_0xdb9f:0x1e;let _0x3d5f9c=0x0,_0x29cff7=0x0,_0x136d94=0x0;_0x3d5f9c=_0x29cff7=_0x136d94=Math[_0x5719b3(0x11b)](_0x5d4c53,_0x511cfc/0x2,_0xdb9f/0x2),_0x4a77b5[_0x5719b3(0x27d)](),_0x4a77b5[_0x5719b3(0x27f)](_0x3d5f9c,0x0),_0x4a77b5[_0x5719b3(0x2a1)](_0x511cfc-_0x29cff7,0x0),_0x4a77b5[_0x5719b3(0x191)](_0x511cfc-_0x29cff7,_0x29cff7,_0x29cff7,Math['PI']*0x3/0x2,0x0,!0x1),_0x4a77b5['lineTo'](_0x511cfc,_0xdb9f-_0x136d94),_0x4a77b5[_0x5719b3(0x191)](_0x511cfc-_0x136d94,_0xdb9f-_0x136d94,_0x136d94,0x0,Math['PI']/0x2,!0x1),_0x4a77b5[_0x5719b3(0x2a1)](0x0,_0xdb9f),_0x4a77b5[_0x5719b3(0x2a1)](0x0,_0x3d5f9c),_0x4a77b5[_0x5719b3(0x191)](_0x3d5f9c,_0x3d5f9c,_0x3d5f9c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4a77b5['closePath'](),_0x2c494a['fill']&&(_0x4a77b5[_0x5719b3(0x2fd)](),_0x4a77b5['fillStyle']=_0x2c494a[_0x5719b3(0x12a)],_0x2c494a[_0x5719b3(0x29e)]===_0x5719b3(0x1f7)?_0x4a77b5[_0x5719b3(0x12a)]('evenodd'):_0x4a77b5[_0x5719b3(0x12a)](),_0x4a77b5[_0x5719b3(0x129)]());}class ee extends p[_0x500283(0x1a4)]{constructor(_0x1d4a1d,_0x20ac49){const _0x49d938=_0x500283;super(_0x1d4a1d,_0x20ac49),_(this,_0x49d938(0x225)),_(this,_0x49d938(0x13c)),(this[_0x49d938(0x225)]=_0x20ac49==null?void 0x0:_0x20ac49[_0x49d938(0x225)],this['text']=_0x20ac49==null?void 0x0:_0x20ac49[_0x49d938(0x13c)]);}static[_0x500283(0x23f)](_0x84f85f,_0x223a3c){const _0x3ed06a=_0x500283,{text:_0x13ff4e,color:_0x5f53ac}=_0x223a3c;_0x84f85f[_0x3ed06a(0x2fd)](),_0x84f85f[_0x3ed06a(0x26e)]=_0x3ed06a(0x1d0);const _0x44db10=_0x84f85f['measureText'](_0x13ff4e)[_0x3ed06a(0x139)],_0x67dc1c=Math[_0x3ed06a(0x11b)](_0x44db10+0x2*ie,Pe);Ct(_0x84f85f,{'height':V,'radius':0x4,'width':_0x67dc1c,'fill':_0x5f53ac,'evented':!0x1}),_0x84f85f[_0x3ed06a(0x23e)]=_0x3ed06a(0xb8);const _0x1f9f8a=ie,_0x3f9bba=V-pt,_0x4b4a2a=Pe-0x2*ie;if(_0x44db10>_0x4b4a2a){let _0x53136d='',_0x450dcd=0x0;for(const _0x605035 of _0x13ff4e){const _0x51cda1=_0x84f85f[_0x3ed06a(0x107)](_0x605035)[_0x3ed06a(0x139)];if(_0x450dcd+_0x51cda1<=_0x4b4a2a-_0x84f85f['measureText']('...')['width'])_0x53136d+=_0x605035,_0x450dcd+=_0x51cda1;else{_0x53136d+=_0x3ed06a(0x2f0);break;}}_0x84f85f['fillText'](_0x53136d,_0x1f9f8a,_0x3f9bba);}else _0x84f85f[_0x3ed06a(0x289)](_0x13ff4e,_0x1f9f8a,_0x3f9bba);_0x84f85f['restore']();}[_0x500283(0x20e)](_0x418a80){const _0x2f5e3e=_0x500283;ee[_0x2f5e3e(0x23f)](_0x418a80,this);}}const re=_0x500283(0x1ab),bt=_0x500283(0x2a2),Et=_0x500283(0x170),H=0x6,Rt=1.5,oe=0x4,Tt=1.5,Ot=_0x500283(0x236);function _0x433a(_0x274750,_0x27c117){const _0x3a7bfb=_0x3a7b();return _0x433a=function(_0x433a95,_0x3e8ba8){_0x433a95=_0x433a95-0xb3;let _0x3f7a6f=_0x3a7bfb[_0x433a95];return _0x3f7a6f;},_0x433a(_0x274750,_0x27c117);}class Me{constructor(_0x51e002,_0x739f0f,_0x3e2ee1,_0xc9c9d){const _0x521488=_0x500283;_(this,_0x521488(0x1fc),[]),_(this,_0x521488(0x1d8),null),_(this,'_textBubble',null),_(this,'_anchorDot',null),_(this,_0x521488(0x185),null),_(this,_0x521488(0x308),null),(this[_0x521488(0xed)]=_0x51e002,this['_scene']=_0x739f0f,this[_0x521488(0x1cc)]=_0x3e2ee1,this[_0x521488(0x26f)]=_0xc9c9d,this[_0x521488(0x1d2)]());}set[_0x500283(0xfc)](_0x31caa5){const _0x4d8d66=_0x500283;_0x31caa5?(this['_anchorDot']&&this[_0x4d8d66(0x151)][_0x4d8d66(0x305)](),this[_0x4d8d66(0xe0)]&&this[_0x4d8d66(0xe0)][_0x4d8d66(0x130)]()):(this[_0x4d8d66(0x151)]&&this[_0x4d8d66(0x151)][_0x4d8d66(0x130)](),this[_0x4d8d66(0xe0)]&&this[_0x4d8d66(0xe0)][_0x4d8d66(0x305)]());}[_0x500283(0x1ff)](){const _0x5947cb=_0x500283;for(const _0x45426e of this[_0x5947cb(0x1fc)])_0x45426e[_0x5947cb(0x1ff)]();this[_0x5947cb(0xe0)]&&this[_0x5947cb(0xe0)][_0x5947cb(0x1ff)](),this['_anchorDot']&&this[_0x5947cb(0x151)][_0x5947cb(0x1ff)](),this[_0x5947cb(0x1d8)]&&this[_0x5947cb(0x1d8)][_0x5947cb(0x1ff)](),this[_0x5947cb(0x308)]&&this[_0x5947cb(0x308)]();}[_0x500283(0x1d2)](){const _0x34a864=_0x500283;var _0x5f0632;const {_docSkeleton:_0x5a31b2,_document:_0x4919d9}=this,{color:_0x3cdd37,name:_0x1ab53f,ranges:_0x5b7093}=this[_0x34a864(0xed)],_0x5d36db=_0x4919d9[_0x34a864(0x19e)](),{docsLeft:_0x3a2eb8,docsTop:_0x15b519}=_0x5d36db,_0x5d72b4=new b['NodePositionConvertToCursor'](_0x5d36db,_0x5a31b2);for(const {startOffset:_0x3bca47,endOffset:_0x53eac7,rangeType:_0x2f8ac0,segmentId:_0x5c0f5f,segmentPage:_0xa50fc6,collapsed:_0x205fe5,isActive:_0x5907c6}of _0x5b7093){const _0x8b9b91=_0x5a31b2[_0x34a864(0x282)](_0x3bca47,!0x0,_0x5c0f5f,_0xa50fc6);let _0x289dd7=_0x5a31b2[_0x34a864(0x282)](_0x53eac7,!0x0,_0x5c0f5f,_0xa50fc6);if(_0x289dd7==null&&(_0x289dd7=_0x5a31b2['findNodePositionByCharIndex'](_0x53eac7-0x1,!0x1,_0x5c0f5f,_0xa50fc6)),_0x5907c6){const {contentBoxPointGroup:_0x3440c2}=_0x5d72b4['getRangePointData'](_0x289dd7,_0x289dd7);if(_0x3440c2['length']===0x0)continue;this[_0x34a864(0x315)](_0x3cdd37,_0x3440c2,_0x3a2eb8,_0x15b519,_0x1ab53f),this[_0x34a864(0x308)]=this['_handleHover']();}if(_0x8b9b91&&_0x289dd7){if(_0x2f8ac0===a[_0x34a864(0x190)][_0x34a864(0xe3)]){const _0x13ffe9=new b[(_0x34a864(0x1d5))](_0x5d36db,_0x5a31b2),{pointGroup:_0x309d3e}=(_0x5f0632=_0x13ffe9['getRangePointData'](_0x8b9b91,_0x289dd7))!=null?_0x5f0632:{};if(_0x309d3e==null||_0x309d3e[_0x34a864(0x1f4)]===0x0)continue;this[_0x34a864(0x26b)](_0x3cdd37,_0x309d3e,_0x3a2eb8,_0x15b519);}else{if(!_0x205fe5){const {borderBoxPointGroup:_0x3de54b}=_0x5d72b4[_0x34a864(0xda)](_0x8b9b91,_0x289dd7);if(_0x3de54b['length']===0x0)continue;this[_0x34a864(0x235)](_0x3cdd37,_0x3de54b,_0x3a2eb8,_0x15b519);}}}}}[_0x500283(0x315)](_0x238f91,_0x3fe5cb,_0x56288a,_0x1b7a4d,_0x995df4){const _0x345fd2=_0x500283,_0x30f4dd=this[_0x345fd2(0x2d2)](_0x3fe5cb),{left:_0x434efa,top:_0x120b58,height:_0x53bd11}=_0x30f4dd,_0x51e141=this[_0x345fd2(0x249)](),_0x4dc5dc=Tt/_0x51e141,_0x3b5030=new p[(_0x345fd2(0x1b2))](re+a[_0x345fd2(0xba)][_0x345fd2(0x2e7)](H),{'left':_0x434efa+_0x56288a-_0x4dc5dc,'top':_0x120b58+_0x1b7a4d,'height':_0x53bd11,'width':Rt,'fill':_0x238f91||p[_0x345fd2(0x13b)](a['COLORS']['black'],0x0),'strokeWidth':_0x4dc5dc,'stroke':Ot,'evented':!0x0});this['_anchor']=_0x3b5030,this[_0x345fd2(0x296)][_0x345fd2(0x1fe)](_0x3b5030,b[_0x345fd2(0x161)]);const _0x4df476=new p[(_0x345fd2(0x1b2))](re+a[_0x345fd2(0xba)][_0x345fd2(0x2e7)](H),{'left':_0x434efa+_0x56288a-_0x4dc5dc,'top':_0x120b58+_0x1b7a4d-oe/0x2,'height':oe,'width':oe,'fill':_0x238f91||p[_0x345fd2(0x13b)](a[_0x345fd2(0xb3)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x238f91||p[_0x345fd2(0x13b)](a[_0x345fd2(0xb3)][_0x345fd2(0x164)],0x0),'evented':!0x1});this['_anchorDot']=_0x4df476,this['_scene'][_0x345fd2(0x1fe)](_0x4df476,b['TEXT_RANGE_LAYER_INDEX']);const _0x45807f=new ee(re+a['Tools'][_0x345fd2(0x2e7)](H),{'left':_0x434efa+_0x56288a-_0x4dc5dc,'top':_0x120b58+_0x1b7a4d-V,'text':_0x995df4,'color':_0x238f91});this['_textBubble']=_0x45807f,this[_0x345fd2(0x296)][_0x345fd2(0x1fe)](_0x45807f,b[_0x345fd2(0x161)]),this[_0x345fd2(0xfc)]=!0x1;}[_0x500283(0x252)](){const _0x5858a=_0x500283,_0x59f659=this['_anchor'][_0x5858a(0x1c5)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x27ab05=this[_0x5858a(0x1d8)][_0x5858a(0xf3)][_0x5858a(0x273)](()=>{const _0x593d04=_0x5858a;this[_0x593d04(0x185)]&&clearTimeout(this[_0x593d04(0x185)]),this['_hideTimer']=setTimeout(()=>{const _0x267297=_0x593d04;this[_0x267297(0xfc)]=!0x1;},0x7d0);});return()=>{const _0x327cff=_0x5858a;_0x59f659[_0x327cff(0x2bb)](),_0x27ab05[_0x327cff(0x2bb)]();};}[_0x500283(0x235)](_0x2812d5,_0x34e1b9,_0x3caa70,_0x24de3b){const _0x1cbb1c=_0x500283,_0x2f71ca=new a[(_0x1cbb1c(0x1cf))](_0x2812d5)[_0x1cbb1c(0x279)](0.2)[_0x1cbb1c(0x2c8)](),_0x4b15c3=new p['RegularPolygon'](bt+a['Tools'][_0x1cbb1c(0x2e7)](H),{'pointsGroup':_0x34e1b9,'fill':_0x2f71ca||p['getColor'](a[_0x1cbb1c(0xb3)]['black'],0.2),'left':_0x3caa70,'top':_0x24de3b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1cbb1c(0x1fc)][_0x1cbb1c(0x2b0)](_0x4b15c3),this[_0x1cbb1c(0x296)][_0x1cbb1c(0x1fe)](_0x4b15c3,b[_0x1cbb1c(0x161)]);}[_0x500283(0x26b)](_0xb72517,_0x29b2ca,_0x3a1f8d,_0x3f7f9e){const _0x32d988=_0x500283,_0x8bed4e=new a[(_0x32d988(0x1cf))](_0xb72517)[_0x32d988(0x279)](0.2)['toRgbString'](),_0x974f0=new p[(_0x32d988(0x1c8))](Et+a[_0x32d988(0xba)][_0x32d988(0x2e7)](H),{'pointsGroup':_0x29b2ca,'fill':_0x8bed4e||p['getColor'](a[_0x32d988(0xb3)]['black'],0.2),'left':_0x3a1f8d,'top':_0x3f7f9e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32d988(0x1fc)][_0x32d988(0x2b0)](_0x974f0),this[_0x32d988(0x296)]['addObject'](_0x974f0,b[_0x32d988(0x161)]);}['_getAnchorBounding'](_0xf08390){const _0x24f951=_0xf08390[0x0],_0x4ec027=_0x24f951[0x0],_0x151adf=_0x24f951[0x2],{x:_0x5780fb,y:_0x5c00c8}=_0x4ec027,{x:_0x1628d5,y:_0xdf4638}=_0x151adf;return{'left':_0x5780fb,'top':_0x5c00c8,'width':_0x1628d5-_0x5780fb,'height':_0xdf4638-_0x5c00c8};}[_0x500283(0x249)](){const _0x21d5bf=_0x500283,{scaleX:_0x5ae2fe,scaleY:_0x4b74d9}=this[_0x21d5bf(0x296)][_0x21d5bf(0x247)]();return Math[_0x21d5bf(0x288)](_0x5ae2fe,_0x4b74d9);}}var Dt=Object[_0x500283(0xcc)],Pt=Object[_0x500283(0x324)],Mt=(_0x35b324,_0x1d98d6,_0x4abcce,_0x19c5eb)=>{const _0x5ca080=_0x500283;for(var _0x55efbb=_0x19c5eb>0x1?void 0x0:_0x19c5eb?Pt(_0x1d98d6,_0x4abcce):_0x1d98d6,_0x30aa3a=_0x35b324[_0x5ca080(0x1f4)]-0x1,_0x3bc0cf;_0x30aa3a>=0x0;_0x30aa3a--)(_0x3bc0cf=_0x35b324[_0x30aa3a])&&(_0x55efbb=(_0x19c5eb?_0x3bc0cf(_0x1d98d6,_0x4abcce,_0x55efbb):_0x3bc0cf(_0x55efbb))||_0x55efbb);return _0x19c5eb&&_0x55efbb&&Dt(_0x1d98d6,_0x4abcce,_0x55efbb),_0x55efbb;},G=(_0x46c4dc,_0x32f0f7)=>(_0x52dc87,_0x1e88a2)=>_0x32f0f7(_0x52dc87,_0x1e88a2,_0x46c4dc);let Ie=class extends a['RxDisposable']{constructor(_0x2284ec,_0x3afa96,_0x403a2d,_0x8fcad1,_0x33a92b){const _0x2e3a77=_0x500283;super(),_(this,_0x2e3a77(0x1b0),[]),_(this,_0x2e3a77(0x179),[]),(this[_0x2e3a77(0x22a)]=_0x2284ec,this['_docSkeletonManagerService']=_0x3afa96,this[_0x2e3a77(0x1ad)]=_0x403a2d,this['_commandService']=_0x8fcad1,this['_themeService']=_0x33a92b,this[_0x2e3a77(0x29a)]());}[_0x500283(0x29a)](){const _0x24c304=_0x500283,_0x59245e=this[_0x24c304(0x22a)][_0x24c304(0x25e)],_0x2b2ae5=this[_0x24c304(0x11e)];this['disposeWithMe'](S['combineLatest']([this['_collabCursorController'][_0x24c304(0x1af)](_0x59245e),this[_0x24c304(0x145)][_0x24c304(0xe1)]])[_0x24c304(0xf6)]($[_0x24c304(0x1d9)](([_0x1be0c9,_0x247aad])=>({'skeleton':_0x2b2ae5['getSkeleton'](),'cursors':[..._0x1be0c9[_0x24c304(0xde)]()][_0x24c304(0x25d)](_0x1b9725=>({..._0x1b9725,'color':_0x247aad[_0x1b9725['color']]}))})))[_0x24c304(0x2f2)](_0x5652c7=>{const _0x189fdd=_0x24c304;if(this[_0x189fdd(0x208)](),_0x5652c7){const {skeleton:_0x45b1a7,cursors:_0x21358f}=_0x5652c7;this[_0x189fdd(0x1da)](_0x45b1a7,_0x21358f);}})),this[_0x24c304(0x215)](),this['_initCommandExecutedListener']();}[_0x500283(0x1da)](_0x12448d,_0x3ceff0){const _0x1d26d9=_0x500283,{scene:_0xed63a7,mainComponent:_0xf1548d}=this[_0x1d26d9(0x22a)],_0x4e07a0=_0x3ceff0[_0x1d26d9(0x1d9)](_0xb8cd77=>new Me(_0xb8cd77,_0xed63a7,_0x12448d,_0xf1548d));this[_0x1d26d9(0x1b0)]=_0x4e07a0,this[_0x1d26d9(0x179)]=_0x3ceff0;}[_0x500283(0xff)](){const _0x250df1=_0x500283;this['_removeCollabCursors']();const {scene:_0x2fe7b3,mainComponent:_0xb44934}=this[_0x250df1(0x22a)],_0x4f9400=this[_0x250df1(0x11e)][_0x250df1(0x241)](),_0x171a7b=this[_0x250df1(0x179)][_0x250df1(0x1d9)](_0x547181=>new Me(_0x547181,_0x2fe7b3,_0x4f9400,_0xb44934));this[_0x250df1(0x1b0)]=_0x171a7b;}[_0x500283(0x208)](){const _0x167f06=_0x500283;this[_0x167f06(0x1b0)][_0x167f06(0x316)](_0x4eb66b=>_0x4eb66b[_0x167f06(0x1ff)]()),this['_cursorShapes']=[];}[_0x500283(0x14b)](){const _0x298443=_0x500283,_0x5cc0c4=[b[_0x298443(0x118)]['id']];this[_0x298443(0x326)](this[_0x298443(0xc1)]['onCommandExecuted'](_0x242c8d=>{const _0x8557fe=_0x298443;_0x5cc0c4[_0x8557fe(0x1e4)](_0x242c8d['id'])&&_0x242c8d[_0x8557fe(0x2a0)][_0x8557fe(0x25e)]===this[_0x8557fe(0x22a)][_0x8557fe(0x25e)]&&this['_refreshCollabCursors']();}));}[_0x500283(0x215)](){const _0x17d57d=_0x500283;this[_0x17d57d(0x326)](a[_0x17d57d(0x299)](this[_0x17d57d(0x22a)]['engine'][_0x17d57d(0x221)])[_0x17d57d(0xf6)]($['filter'](_0x22845f=>_0x22845f[_0x17d57d(0x175)]===p[_0x17d57d(0x213)]['resize']),$[_0x17d57d(0x1b9)](0x10))[_0x17d57d(0x2f2)](()=>{const _0xd57761=_0x17d57d;this[_0xd57761(0xff)]();}));}};Ie=Mt([G(0x1,a[_0x500283(0x1bf)](X[_0x500283(0x2e2)])),G(0x2,a[_0x500283(0x1bf)](x)),G(0x3,a['ICommandService']),G(0x4,a[_0x500283(0x1bf)](a['ThemeService']))],Ie);const Ut=0x1,Nt=1.5;class je extends p['Shape']{constructor(_0x206eaf,_0x7d1979){const _0x54c2c8=_0x500283;super(_0x206eaf,_0x7d1979),_(this,'_color'),_(this,_0x54c2c8(0x106),!0x1),_(this,_0x54c2c8(0x149)),_(this,'_name',''),_(this,_0x54c2c8(0x194),'top'),_(this,_0x54c2c8(0x26a)),(_0x7d1979&&this[_0x54c2c8(0x319)](_0x7d1979),this[_0x54c2c8(0x1c5)]['subscribeEvent'](()=>this[_0x54c2c8(0x319)]({'hovered':!0x0})),this[_0x54c2c8(0xf3)][_0x54c2c8(0x273)](()=>this[_0x54c2c8(0x319)]({'hovered':!0x1})));}[_0x500283(0x319)](_0x380ec9){const _0x4ae243=_0x500283;var _0x1452ae,_0x931107,_0x1c356e,_0x3bceeb,_0x553650,_0x3ee9bb;this['_color']=(_0x1452ae=_0x380ec9[_0x4ae243(0x225)])!=null?_0x1452ae:this['_color'],this[_0x4ae243(0x106)]=(_0x931107=_0x380ec9[_0x4ae243(0xd5)])!=null?_0x931107:this[_0x4ae243(0x106)],this['_range']=(_0x1c356e=_0x380ec9[_0x4ae243(0x22e)])!=null?_0x1c356e:this[_0x4ae243(0x149)],this['_name']=(_0x3bceeb=_0x380ec9[_0x4ae243(0xcb)])!=null?_0x3bceeb:this[_0x4ae243(0x2d8)],this[_0x4ae243(0x194)]=(_0x553650=_0x380ec9[_0x4ae243(0x14e)])!=null?_0x553650:this[_0x4ae243(0x194)],this[_0x4ae243(0x26a)]=(_0x3ee9bb=_0x380ec9[_0x4ae243(0x1f0)])!=null?_0x3ee9bb:this[_0x4ae243(0x26a)],this[_0x4ae243(0xfb)]({'width':_0x380ec9[_0x4ae243(0x139)],'height':_0x380ec9[_0x4ae243(0x11a)]});}[_0x500283(0x1d3)](_0x56d390){const _0x5f45ff=_0x500283,{row:_0x16ef65,column:_0x4555d1}=_0x56d390;if(_0x16ef65>=this[_0x5f45ff(0x149)][_0x5f45ff(0x226)]&&_0x16ef65<=this[_0x5f45ff(0x149)]['endRow']&&_0x4555d1>=this[_0x5f45ff(0x149)][_0x5f45ff(0x198)]&&_0x4555d1<=this[_0x5f45ff(0x149)]['endColumn']){this[_0x5f45ff(0x319)]({'hovered':!0x0});return;}this[_0x5f45ff(0x319)]({'hovered':!0x1});}['triggerDblclick'](_0x1ac212){return!0x1;}[_0x500283(0x20e)](_0x5e35e1){const _0x567d67=_0x500283;p[_0x567d67(0x1b2)]['drawWith'](_0x5e35e1,{'width':this[_0x567d67(0x139)],'height':this[_0x567d67(0x11a)],'strokeWidth':Nt,'stroke':this[_0x567d67(0x272)],'evented':!0x1,'fill':this[_0x567d67(0x26a)]}),this[_0x567d67(0x106)]&&(_0x5e35e1[_0x567d67(0x2fd)](),_0x5e35e1[_0x567d67(0x2b3)](0x1,0x0,0x0,0x1,this[_0x567d67(0x139)],this['_labelPosition']===_0x567d67(0x2c3)?0x0:-V),ee[_0x567d67(0x23f)](_0x5e35e1,{'text':this[_0x567d67(0x2d8)],'color':this[_0x567d67(0x272)]}),_0x5e35e1[_0x567d67(0x129)]());}}var wt=Object[_0x500283(0xcc)],Lt=Object['getOwnPropertyDescriptor'],At=(_0x52a9f8,_0x1101e6,_0x45871d,_0x169981)=>{const _0x1716f8=_0x500283;for(var _0x4b62ce=_0x169981>0x1?void 0x0:_0x169981?Lt(_0x1101e6,_0x45871d):_0x1101e6,_0x5b2bb9=_0x52a9f8[_0x1716f8(0x1f4)]-0x1,_0x489397;_0x5b2bb9>=0x0;_0x5b2bb9--)(_0x489397=_0x52a9f8[_0x5b2bb9])&&(_0x4b62ce=(_0x169981?_0x489397(_0x1101e6,_0x45871d,_0x4b62ce):_0x489397(_0x4b62ce))||_0x4b62ce);return _0x169981&&_0x4b62ce&&wt(_0x1101e6,_0x45871d,_0x4b62ce),_0x4b62ce;},ae=(_0x23f8c9,_0x8742f5)=>(_0x4a5dbc,_0x8d4379)=>_0x8742f5(_0x4a5dbc,_0x8d4379,_0x23f8c9);const yt=0x1389;let ge=class extends a[_0x500283(0x21e)]{constructor(_0x5ac0af,_0x56feae,_0x5ee5e1,_0x23ba4c){const _0x576c78=_0x500283;super(),_(this,_0x576c78(0x179),new Set()),_(this,_0x576c78(0x21f),null),(this['_context']=_0x5ac0af,this[_0x576c78(0x123)]=_0x56feae,this[_0x576c78(0x1ad)]=_0x5ee5e1,this[_0x576c78(0x145)]=_0x23ba4c,this[_0x576c78(0x29a)]());}[_0x500283(0x29a)](){const _0x58f5e4=_0x500283;this[_0x58f5e4(0x123)]['currentSkeleton$'][_0x58f5e4(0xf6)]($[_0x58f5e4(0x133)](this[_0x58f5e4(0x23b)]),$[_0x58f5e4(0xe5)](_0x33d174=>{const _0x378dc8=_0x58f5e4;if(_0x33d174){const _0x2c6f20=_0x33d174[_0x378dc8(0x25b)];return S[_0x378dc8(0x1e1)](this[_0x378dc8(0x1ad)][_0x378dc8(0x1af)](this[_0x378dc8(0x22a)][_0x378dc8(0x25e)]),this[_0x378dc8(0x145)][_0x378dc8(0xe1)])[_0x378dc8(0xf6)]($[_0x378dc8(0x1d9)](([_0x110c3f,_0x3db1be])=>{const _0xaceb72=new Map();return _0x110c3f['forEach']((_0x335fa6,_0x344c56)=>{const _0x4b352e=_0x433a;if(_0x335fa6[_0x4b352e(0x31d)]===_0x2c6f20){const _0x204379={..._0x335fa6};_0x204379[_0x4b352e(0x225)]=_0x3db1be[_0x335fa6[_0x4b352e(0x225)]],_0xaceb72[_0x4b352e(0x21b)](_0x344c56,_0x204379);}}),{'skeleton':_0x33d174,'cursors':_0xaceb72};}));}return S['of']({'skeleton':null,'cursors':new Map()});}))[_0x58f5e4(0x2f2)](({skeleton:_0x283ad4,cursors:_0x3f56dd})=>{const _0x2069d7=_0x58f5e4;this['_removeCollabCursors'](),_0x283ad4&&this[_0x2069d7(0x1da)](_0x283ad4,_0x3f56dd);}),this[_0x58f5e4(0x123)][_0x58f5e4(0x16b)][_0x58f5e4(0x2f2)](_0xa3c077=>{const _0x3b5992=_0x58f5e4;if(_0xa3c077==null)return;const {skeleton:_0x3eba4c}=_0xa3c077,{scene:_0x2f4a02}=this['_context'];_0x2f4a02[_0x3b5992(0x1a7)]['subscribeEvent'](a[_0x3b5992(0x2c1)](_0x24dd43=>{const _0x4898a7=_0x3b5992;var _0x4ac38c,_0x5bcf8d;const {offsetX:_0x21185b,offsetY:_0x44c9d7}=_0x24dd43,{x:_0x3c5c6a,y:_0x618eb}=_0x2f4a02[_0x4898a7(0xf4)](p[_0x4898a7(0x18b)][_0x4898a7(0x13a)]([_0x21185b,_0x44c9d7])),{scaleX:_0x1d188b,scaleY:_0x4f4c0a}=_0x2f4a02[_0x4898a7(0x247)](),_0xdf5eeb=_0x2f4a02[_0x4898a7(0x171)](p[_0x4898a7(0x23c)][_0x4898a7(0x1c0)]),_0x3634ab=_0x2f4a02[_0x4898a7(0x322)](p[_0x4898a7(0x18b)][_0x4898a7(0x13a)]([_0x3c5c6a,_0x618eb]),_0xdf5eeb),_0xdd636a=_0x3eba4c[_0x4898a7(0x12d)](_0x21185b,_0x44c9d7,_0x1d188b,_0x4f4c0a,_0x3634ab);((_0x4ac38c=this['_lastPointer'])==null?void 0x0:_0x4ac38c[_0x4898a7(0xb4)])===_0xdd636a['column']&&((_0x5bcf8d=this[_0x4898a7(0x21f)])==null?void 0x0:_0x5bcf8d['row'])===_0xdd636a['row']||this[_0x4898a7(0x179)][_0x4898a7(0x316)](_0x1ac3d8=>{_0x1ac3d8['onMouseMove'](_0xdd636a);});},0x64));});}['_updateCollabCursors'](_0x1ea6ea,_0x2c63db){const _0x279c33=_0x500283;var _0x49364d;const _0x315719=(_0x49364d=this[_0x279c33(0x123)][_0x279c33(0x301)]())==null?void 0x0:_0x49364d[_0x279c33(0x2f8)];if(!_0x315719)return;const _0x4433a0=this[_0x279c33(0x24c)]();if(!_0x4433a0)return;this[_0x279c33(0x179)][_0x279c33(0x316)](_0x588453=>{const _0x3ece51=_0x279c33;_0x588453[_0x3ece51(0x119)]();});const {scene:_0x411034}=_0x4433a0,_0x3344e0=$t(Array['from'](_0x2c63db[_0x279c33(0xde)]()))['map'](_0x1213b5=>{const _0x3bbf28=_0x279c33,{color:_0x4fe9a5,range:_0x1b8de9,name:_0x497fb3,selection:_0x1c90c5,sheetID:_0x2d95e4}=_0x1213b5,{startColumn:_0x1e5832,startRow:_0x221e4f,endColumn:_0x4143a4,endRow:_0x4c9215}=_0x1b8de9,_0x384597=q['getCoordByCell'](_0x221e4f,_0x1e5832,_0x411034,_0x315719),_0x2fd630=q[_0x3bbf28(0x258)](_0x4c9215,_0x4143a4,_0x411034,_0x315719),{columnHeaderHeightAndMarginTop:_0x553d3a}=_0x315719,{startX:_0x357db4,startY:_0x28edf0}=_0x384597,{endX:_0x260e7f,endY:_0x599900}=_0x2fd630,_0x1202dc=_0x260e7f-_0x357db4,_0x243a53=_0x599900-_0x28edf0,_0x19e84f={'labelPosition':_0x28edf0-_0x553d3a>=V?'top':'bottom','sheetID':_0x2d95e4,'range':_0x1b8de9,'color':_0x4fe9a5,'name':_0x497fb3,'selection':_0x1c90c5,'left':_0x357db4,'top':_0x28edf0,'width':_0x1202dc,'height':_0x243a53,'evented':!0x1,'zIndex':yt};return new je(_0x497fb3,_0x19e84f);});_0x411034['addObjects'](_0x3344e0,Ut),this[_0x279c33(0x179)]=new Set(_0x3344e0);}['_removeCollabCursors'](){const _0x1c706d=_0x500283;var _0x467976;(_0x467976=this['_cursors'])==null||_0x467976[_0x1c706d(0x316)](_0x581043=>_0x581043[_0x1c706d(0x1ff)]());}[_0x500283(0x24c)](){const _0x2eafaf=_0x500283;return q[_0x2eafaf(0x180)](this['_context'][_0x2eafaf(0xe7)],this[_0x2eafaf(0x22a)]);}};ge=At([ae(0x1,a[_0x500283(0x1bf)](q[_0x500283(0x1e2)])),ae(0x2,a[_0x500283(0x1bf)](x)),ae(0x3,a[_0x500283(0x1bf)](a[_0x500283(0x251)]))],ge);function $t(_0xf0fb5b){const _0x49ca7e=_0x500283,_0x3cae3f=new Map();return _0xf0fb5b['forEach'](_0x4bde9e=>{const _0x1ac656=_0x433a;if(_0x3cae3f[_0x1ac656(0xf7)](_0x4bde9e['selection'])){const _0x5e08df=_0x3cae3f[_0x1ac656(0x277)](_0x4bde9e[_0x1ac656(0x18c)]);_0x5e08df[_0x1ac656(0xcb)]+=',\x20'+_0x4bde9e[_0x1ac656(0xcb)];}else _0x3cae3f[_0x1ac656(0x21b)](_0x4bde9e[_0x1ac656(0x18c)],_0x4bde9e);}),Array[_0x49ca7e(0x1dc)](_0x3cae3f[_0x49ca7e(0xde)]());}var ce={'exports':{}},W={},Ue;function xt(){const _0x2a09c3=_0x500283;if(Ue)return W;Ue=0x1;var _0x318e68=O,_0x48efaf=Symbol[_0x2a09c3(0x24a)](_0x2a09c3(0x220)),_0x321aa4=Symbol[_0x2a09c3(0x24a)](_0x2a09c3(0x28c)),_0x827717=Object[_0x2a09c3(0xd0)][_0x2a09c3(0x15d)],_0x4abb89=_0x318e68[_0x2a09c3(0x30d)][_0x2a09c3(0x2b9)],_0x31a7e5={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x4c518d(_0x2bc9c0,_0x279f86,_0x432527){const _0x1d37e9=_0x2a09c3;var _0x5c0d25,_0x171f35={},_0x358330=null,_0x180866=null;_0x432527!==void 0x0&&(_0x358330=''+_0x432527),_0x279f86[_0x1d37e9(0x157)]!==void 0x0&&(_0x358330=''+_0x279f86[_0x1d37e9(0x157)]),_0x279f86[_0x1d37e9(0x256)]!==void 0x0&&(_0x180866=_0x279f86[_0x1d37e9(0x256)]);for(_0x5c0d25 in _0x279f86)_0x827717['call'](_0x279f86,_0x5c0d25)&&!_0x31a7e5[_0x1d37e9(0x15d)](_0x5c0d25)&&(_0x171f35[_0x5c0d25]=_0x279f86[_0x5c0d25]);if(_0x2bc9c0&&_0x2bc9c0[_0x1d37e9(0xc9)]){for(_0x5c0d25 in(_0x279f86=_0x2bc9c0['defaultProps'],_0x279f86))_0x171f35[_0x5c0d25]===void 0x0&&(_0x171f35[_0x5c0d25]=_0x279f86[_0x5c0d25]);}return{'$$typeof':_0x48efaf,'type':_0x2bc9c0,'key':_0x358330,'ref':_0x180866,'props':_0x171f35,'_owner':_0x4abb89[_0x1d37e9(0x2be)]};}return W['Fragment']=_0x321aa4,W[_0x2a09c3(0x2b7)]=_0x4c518d,W[_0x2a09c3(0x10d)]=_0x4c518d,W;}var Ne;function jt(){const _0x3327a4=_0x500283;return Ne||(Ne=0x1,ce[_0x3327a4(0x25c)]=xt()),ce['exports'];}var N=jt(),E=function(){const _0x3745f8=_0x500283;return E=Object[_0x3745f8(0x2dd)]||function(_0x74a66a){const _0x3eb4ec=_0x3745f8;for(var _0x3c3f46,_0x13afe4=0x1,_0x15701a=arguments['length'];_0x13afe4<_0x15701a;_0x13afe4++){_0x3c3f46=arguments[_0x13afe4];for(var _0xf249f1 in _0x3c3f46)Object[_0x3eb4ec(0xd0)][_0x3eb4ec(0x15d)]['call'](_0x3c3f46,_0xf249f1)&&(_0x74a66a[_0xf249f1]=_0x3c3f46[_0xf249f1]);}return _0x74a66a;},E['apply'](this,arguments);},Bt=function(_0x509df3,_0x5c1015){const _0x43468e=_0x500283;var _0x565bf6={};for(var _0x2b2dc2 in _0x509df3)Object[_0x43468e(0xd0)][_0x43468e(0x15d)][_0x43468e(0x2ad)](_0x509df3,_0x2b2dc2)&&_0x5c1015[_0x43468e(0x323)](_0x2b2dc2)<0x0&&(_0x565bf6[_0x2b2dc2]=_0x509df3[_0x2b2dc2]);if(_0x509df3!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x3767bb=0x0,_0x2b2dc2=Object[_0x43468e(0x25a)](_0x509df3);_0x3767bb<_0x2b2dc2[_0x43468e(0x1f4)];_0x3767bb++)_0x5c1015['indexOf'](_0x2b2dc2[_0x3767bb])<0x0&&Object[_0x43468e(0xd0)][_0x43468e(0x2d7)][_0x43468e(0x2ad)](_0x509df3,_0x2b2dc2[_0x3767bb])&&(_0x565bf6[_0x2b2dc2[_0x3767bb]]=_0x509df3[_0x2b2dc2[_0x3767bb]]);}return _0x565bf6;},Ee=O[_0x500283(0x2ef)](function(_0xed9488,_0x3746df){const _0x5cade0=_0x500283;var _0x33d984=_0xed9488[_0x5cade0(0x231)],_0xf683d8=_0xed9488['id'],_0x439cdd=_0xed9488[_0x5cade0(0x2b4)],_0x5827cd=_0xed9488[_0x5cade0(0x144)],_0x32191d=Bt(_0xed9488,[_0x5cade0(0x231),'id',_0x5cade0(0x2b4),_0x5cade0(0x144)]),_0x4ea06f=_0x5cade0(0x18d)['concat'](_0xf683d8,'\x20')['concat'](_0x439cdd||'')[_0x5cade0(0x17e)](),_0x2a2639=O[_0x5cade0(0x2cf)]('_'['concat'](Ft()));return Be(_0x33d984,''[_0x5cade0(0x1ca)](_0xf683d8),{'defIds':_0x33d984[_0x5cade0(0x28a)],'idSuffix':_0x2a2639[_0x5cade0(0x2be)]},E({'ref':_0x3746df,'className':_0x4ea06f},_0x32191d),_0x5827cd);});function Be(_0x4f787f,_0x1898e7,_0x1e31f2,_0x4103c7,_0x829052){const _0x26ed10=_0x500283;return O[_0x26ed10(0xd4)](_0x4f787f['tag'],E(E({'key':_0x1898e7},Ht(_0x4f787f,_0x1e31f2,_0x829052)),_0x4103c7),(Wt(_0x4f787f,_0x1e31f2)[_0x26ed10(0x193)]||[])[_0x26ed10(0x1d9)](function(_0x414ede,_0x4b3f03){const _0x46881e=_0x26ed10;return Be(_0x414ede,''[_0x46881e(0x1ca)](_0x1898e7,'-')['concat'](_0x4f787f['tag'],'-')[_0x46881e(0x1ca)](_0x4b3f03),_0x1e31f2,void 0x0,_0x829052);}));}function Ht(_0x427f98,_0x141a7a,_0x142354){const _0x433ae7=_0x500283;var _0x35b4fe=E({},_0x427f98['attrs']);_0x142354!=null&&_0x142354[_0x433ae7(0x28b)]&&_0x35b4fe[_0x433ae7(0x12a)]==='colorChannel1'&&(_0x35b4fe[_0x433ae7(0x12a)]=_0x142354[_0x433ae7(0x28b)]);var _0x229cac=_0x141a7a['defIds'];return!_0x229cac||_0x229cac[_0x433ae7(0x1f4)]===0x0||(_0x427f98[_0x433ae7(0xc5)]===_0x433ae7(0xf2)&&_0x35b4fe[_0x433ae7(0x1c7)]&&(_0x35b4fe['xlink:href']=_0x35b4fe['xlink:href']+_0x141a7a[_0x433ae7(0x244)]),Object['entries'](_0x35b4fe)[_0x433ae7(0x316)](function(_0x349760){const _0x3edefe=_0x433ae7;var _0x2bd6d8=_0x349760[0x0],_0x2b2ccd=_0x349760[0x1];typeof _0x2b2ccd=='string'&&(_0x35b4fe[_0x2bd6d8]=_0x2b2ccd[_0x3edefe(0xdb)](/url\(#(.*)\)/,'url(#$1'[_0x3edefe(0x1ca)](_0x141a7a['idSuffix'],')')));})),_0x35b4fe;}function Wt(_0x1ff8ed,_0x4f3bc2){const _0x54fb28=_0x500283;var _0xaa36ca,_0x500fb5=_0x4f3bc2[_0x54fb28(0x28a)];return!_0x500fb5||_0x500fb5[_0x54fb28(0x1f4)]===0x0?_0x1ff8ed:_0x1ff8ed[_0x54fb28(0xc5)]===_0x54fb28(0x148)&&(!((_0xaa36ca=_0x1ff8ed[_0x54fb28(0x193)])===null||_0xaa36ca===void 0x0)&&_0xaa36ca[_0x54fb28(0x1f4)])?E(E({},_0x1ff8ed),{'children':_0x1ff8ed[_0x54fb28(0x193)]['map'](function(_0x5a500f){const _0x9e87fa=_0x54fb28;return typeof _0x5a500f[_0x9e87fa(0x1b8)]['id']==_0x9e87fa(0x189)&&_0x500fb5&&_0x500fb5['indexOf'](_0x5a500f[_0x9e87fa(0x1b8)]['id'])>-0x1?E(E({},_0x5a500f),{'attrs':E(E({},_0x5a500f['attrs']),{'id':_0x5a500f[_0x9e87fa(0x1b8)]['id']+_0x4f3bc2[_0x9e87fa(0x244)]})}):_0x5a500f;})}):_0x1ff8ed;}function Ft(){const _0x2aa79b=_0x500283;return Math[_0x2aa79b(0x302)]()[_0x2aa79b(0x314)](0x24)[_0x2aa79b(0x184)](0x2,0x8);}Ee[_0x500283(0xd9)]=_0x500283(0x291);var Yt={'tag':_0x500283(0x1a8),'attrs':{'fill':_0x500283(0x310),'viewBox':'0\x200\x2016\x2016','width':_0x500283(0x201),'height':_0x500283(0x201)},'children':[{'tag':'g','attrs':{'clipPath':_0x500283(0x169)},'children':[{'tag':'path','attrs':{'stroke':_0x500283(0xcd),'d':_0x500283(0x110),'strokeLinecap':_0x500283(0xf1),'strokeLinejoin':_0x500283(0xf1),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x500283(0x147),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x500283(0x2ea),'d':_0x500283(0x2d4)}}]}]}],'defIds':['off-line-single_clip0_910_343']},He=O['forwardRef'](function(_0x2ba7c5,_0x2e4d3d){const _0x5ba5ea=_0x500283;return O['createElement'](Ee,Object[_0x5ba5ea(0x2dd)]({},_0x2ba7c5,{'id':_0x5ba5ea(0x304),'ref':_0x2e4d3d,'icon':Yt}));});He[_0x500283(0xd9)]='OffLineSingle';var Xt={'tag':_0x500283(0x1a8),'attrs':{'fill':_0x500283(0x310),'viewBox':_0x500283(0x1f9),'width':_0x500283(0x201),'height':_0x500283(0x201)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x500283(0xcd),'d':_0x500283(0x2e9),'strokeLinecap':_0x500283(0xf1),'strokeLinejoin':_0x500283(0xf1),'strokeWidth':1.2}}]},{'tag':_0x500283(0x148),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x500283(0x2e6),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x500283(0xcf)}}]}]}],'defIds':[_0x500283(0x2a8)]},We=O['forwardRef'](function(_0x4c8f13,_0x4ccaf4){const _0x301808=_0x500283;return O[_0x301808(0xd4)](Ee,Object[_0x301808(0x2dd)]({},_0x4c8f13,{'id':'on-line-single','ref':_0x4ccaf4,'icon':Xt}));});We[_0x500283(0xd9)]=_0x500283(0x202);function Fe(_0x598f62){const _0x36958a=_0x500283;var _0x57170b,_0x5a470a,_0x12fa61='';if(typeof _0x598f62==_0x36958a(0x189)||typeof _0x598f62==_0x36958a(0xf5))_0x12fa61+=_0x598f62;else{if(typeof _0x598f62==_0x36958a(0xee)){if(Array[_0x36958a(0x13d)](_0x598f62)){var _0x14ae98=_0x598f62[_0x36958a(0x1f4)];for(_0x57170b=0x0;_0x57170b<_0x14ae98;_0x57170b++)_0x598f62[_0x57170b]&&(_0x5a470a=Fe(_0x598f62[_0x57170b]))&&(_0x12fa61&&(_0x12fa61+='\x20'),_0x12fa61+=_0x5a470a);}else{for(_0x5a470a in _0x598f62)_0x598f62[_0x5a470a]&&(_0x12fa61&&(_0x12fa61+='\x20'),_0x12fa61+=_0x5a470a);}}}return _0x12fa61;}function we(){const _0x1db0e3=_0x500283;for(var _0x2c047d,_0x3d7248,_0x2235a6=0x0,_0x104cfa='',_0x55a422=arguments[_0x1db0e3(0x1f4)];_0x2235a6<_0x55a422;_0x2235a6++)(_0x2c047d=arguments[_0x2235a6])&&(_0x3d7248=Fe(_0x2c047d))&&(_0x104cfa&&(_0x104cfa+='\x20'),_0x104cfa+=_0x3d7248);return _0x104cfa;}const Vt=_0x500283(0x10a),Gt='univer-online-status-title',kt='univer-online-status',qt=_0x500283(0x224),Kt='univer-offline',F={'onlineStatusIcon':Vt,'onlineStatusTitle':Gt,'onlineStatus':kt,'online':qt,'offline':Kt};function zt(_0x30e2c6){const _0x20dd33=_0x500283;switch(_0x30e2c6){case u[_0x20dd33(0x2db)][_0x20dd33(0x19d)]:return'collabStatus.offline';case u[_0x20dd33(0x2db)][_0x20dd33(0x1f5)]:return _0x20dd33(0xdd);case u[_0x20dd33(0x2db)][_0x20dd33(0x1e9)]:return'collabStatus.fetchMiss';case u[_0x20dd33(0x2db)][_0x20dd33(0x195)]:return'collabStatus.notCollab';case u[_0x20dd33(0x2db)][_0x20dd33(0x2bc)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x20dd33(0x228);case u[_0x20dd33(0x2db)][_0x20dd33(0x21c)]:case u[_0x20dd33(0x2db)][_0x20dd33(0x311)]:return _0x20dd33(0x285);}}function Ye(_0x2313b9){const _0x224943=_0x500283,{status$:_0x455404}=_0x2313b9,_0x3aac0f=w[_0x224943(0x1ef)](_0x455404,u[_0x224943(0x2db)][_0x224943(0x195)]),_0x3a147e=a[_0x224943(0x2b8)](a[_0x224943(0x292)]),_0xe9ffc0=a[_0x224943(0x2b8)](u[_0x224943(0x15c)]),_0x4dfc64=_0x3aac0f!==u['CollaborationStatus']['OFFLINE'],_0x191512=_0x3a147e['t'](zt(_0x3aac0f)),_0xed838=we(F[_0x224943(0x12f)],{[F[_0x224943(0x321)]]:_0x4dfc64,[F[_0x224943(0x240)]]:!_0x4dfc64}),_0x4c92de=_0x4dfc64?N['jsx'](We,{}):N[_0x224943(0x2b7)](He,{}),_0x256038=O[_0x224943(0x2c2)](()=>{const _0x54f90a=_0x224943;_0x4dfc64||_0xe9ffc0[_0x54f90a(0x1c6)]();},[_0x4dfc64,_0xe9ffc0]);function _0x15f5c5(){const _0x4688f0=_0x224943;return N[_0x4688f0(0x10d)](_0x4688f0(0x295),{'className':we(_0xed838,_0x4688f0(0x1df)),'onClick':_0x256038,'children':[N[_0x4688f0(0x2b7)](_0x4688f0(0x295),{'className':F[_0x4688f0(0x2e4)],'children':_0x4c92de}),N[_0x4688f0(0x2b7)]('div',{'className':F['onlineStatusTitle'],'children':_0x191512})]});}return _0x4dfc64?_0x15f5c5():N[_0x224943(0x2b7)](M['Tooltip'],{'title':_0x3a147e['t'](_0x224943(0x113)),'children':_0x15f5c5()});}var Jt=Object['defineProperty'],Zt=Object[_0x500283(0x324)],Qt=(_0x14fb01,_0x3108ec,_0xff2328,_0x746f75)=>{const _0x205f48=_0x500283;for(var _0x37937a=_0x746f75>0x1?void 0x0:_0x746f75?Zt(_0x3108ec,_0xff2328):_0x3108ec,_0x594bb1=_0x14fb01[_0x205f48(0x1f4)]-0x1,_0x351319;_0x594bb1>=0x0;_0x594bb1--)(_0x351319=_0x14fb01[_0x594bb1])&&(_0x37937a=(_0x746f75?_0x351319(_0x3108ec,_0xff2328,_0x37937a):_0x351319(_0x37937a))||_0x37937a);return _0x746f75&&_0x37937a&&Jt(_0x3108ec,_0xff2328,_0x37937a),_0x37937a;},k=(_0x40b237,_0x4a3af6)=>(_0x182d46,_0x4f8781)=>_0x4a3af6(_0x182d46,_0x4f8781,_0x40b237);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x500283(0x325)]{constructor(_0x534e89,_0x4eef8c,_0x5156e3,_0x8eb829){const _0x2e133f=_0x500283;super(),_(this,_0x2e133f(0x126),new S[(_0x2e133f(0x28e))](u[_0x2e133f(0x2db)][_0x2e133f(0x195)])),(this[_0x2e133f(0xe6)]=_0x534e89,this[_0x2e133f(0xbc)]=_0x4eef8c,this['_collaborationController']=_0x5156e3,this['_uiPartsService']=_0x8eb829,this[_0x2e133f(0x31f)](),this['_initStatusListener']());}[_0x500283(0xe4)](){const _0x549ef7=_0x500283;this[_0x549ef7(0x326)](this[_0x549ef7(0xe6)][_0x549ef7(0x1b5)][_0x549ef7(0xf6)](S[_0x549ef7(0xe5)](()=>{const _0x2f5ef6=_0x549ef7,_0x13bb77=this[_0x2f5ef6(0xe6)][_0x2f5ef6(0x30f)]();return _0x13bb77?this['_collaborationController']['getCollabEntity$'](_0x13bb77[_0x2f5ef6(0x158)]()):S['of'](null);}),S[_0x549ef7(0xe5)](_0x3be79f=>_0x3be79f?_0x3be79f['status$']:S['of'](u['CollaborationStatus'][_0x549ef7(0x195)])))[_0x549ef7(0x2f2)](_0x5b5dc2=>{const _0x389913=_0x549ef7;this[_0x389913(0x126)][_0x389913(0x1f6)](_0x5b5dc2);}));}[_0x500283(0x31f)](){const _0x50fd7e=_0x500283;this[_0x50fd7e(0x326)](this['_uiPartsService'][_0x50fd7e(0x264)](w[_0x50fd7e(0x1f2)]['HEADER_MENU'],()=>a[_0x50fd7e(0x2c9)](es({'status$':this[_0x50fd7e(0x126)][_0x50fd7e(0xf0)]()}),this[_0x50fd7e(0xbc)])));}},exports[_0x500283(0xc7)]=Qt([k(0x0,a['IUniverInstanceService']),k(0x1,a[_0x500283(0x1bf)](a[_0x500283(0x30e)])),k(0x2,a[_0x500283(0x1bf)](u['CollaborationController'])),k(0x3,w['IUIPartsService'])],exports[_0x500283(0xc7)]);function es(_0x2f8a75){const {status$:_0x51e167}=_0x2f8a75;return function(){const _0x1b4855=_0x433a;return N[_0x1b4855(0x2b7)](Ye,{'status$':_0x51e167});};}var ts=Object[_0x500283(0xcc)],ss=Object[_0x500283(0x324)],ns=(_0x4e9656,_0x36bbde,_0x226e07,_0x4421de)=>{const _0x1b1f0f=_0x500283;for(var _0x45ae60=_0x4421de>0x1?void 0x0:_0x4421de?ss(_0x36bbde,_0x226e07):_0x36bbde,_0x5efb58=_0x4e9656[_0x1b1f0f(0x1f4)]-0x1,_0x580db2;_0x5efb58>=0x0;_0x5efb58--)(_0x580db2=_0x4e9656[_0x5efb58])&&(_0x45ae60=(_0x4421de?_0x580db2(_0x36bbde,_0x226e07,_0x45ae60):_0x580db2(_0x45ae60))||_0x45ae60);return _0x4421de&&_0x45ae60&&ts(_0x36bbde,_0x226e07,_0x45ae60),_0x45ae60;},y=(_0x1e92ad,_0x49adb4)=>(_0x4394d6,_0x4c1c86)=>_0x49adb4(_0x4394d6,_0x4c1c86,_0x1e92ad);let K=class extends a[_0x500283(0x325)]{constructor(_0xaa6dd1,_0x3d99a8,_0x89315a,_0xd82b50,_0x235aed,_0x2112e5){const _0x193c20=_0x500283;super(),this[_0x193c20(0x20a)]=_0xaa6dd1,this[_0x193c20(0x27b)]=_0x3d99a8,this[_0x193c20(0x271)]=_0x89315a,this[_0x193c20(0x1c2)]=_0xd82b50,this[_0x193c20(0x16f)]=_0x235aed,this[_0x193c20(0x1b3)]=_0x2112e5,this[_0x193c20(0x188)](),this[_0x193c20(0x2f5)]();}['_setupBeforeClosingHandler'](){const _0x4e57b7=_0x500283;this[_0x4e57b7(0x326)](this[_0x4e57b7(0x20a)]['registerBeforeClose'](()=>{const _0x43059e=_0x4e57b7;if(this[_0x43059e(0x27b)]['saveTaskMap'][_0x43059e(0x318)])return this['_localeService']['t'](_0x43059e(0x2e1));}));}[_0x500283(0x2f5)](){const _0x59af80=_0x500283;this[_0x59af80(0x326)](this['_collaborationUIEventService']['event$'][_0x59af80(0x2f2)](_0x229824=>{const _0x292e6e=_0x59af80;_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x2d5)]&&this['_messageService'][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)]['Warning'],'content':this[_0x292e6e(0x1b3)]['t']('collaboration.single-unit.warning')}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x17c)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M['MessageType']['Warning'],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x1bd))}),_0x229824['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x292e6e(0x16f)][_0x292e6e(0x130)]({'title':this[_0x292e6e(0x1b3)]['t']('permission.title'),'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x1a2)),'type':_0x292e6e(0x135),'duration':0x0}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x1f5)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)]['Error'],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x1bd))+'('+_0x229824[_0x292e6e(0xeb)]+')'}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x1be)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)][_0x292e6e(0x121)],'content':this[_0x292e6e(0x1b3)]['t'](_0x229824[_0x292e6e(0xeb)]||'')}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x1e5)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)][_0x292e6e(0x121)],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x2de))}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x278)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M['MessageType'][_0x292e6e(0x11f)],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x12e))}),_0x229824['id']===u[_0x292e6e(0x20d)][_0x292e6e(0x209)]&&this[_0x292e6e(0x1c2)][_0x292e6e(0x130)]({'type':M[_0x292e6e(0xd7)][_0x292e6e(0x11f)],'content':this[_0x292e6e(0x1b3)]['t'](_0x292e6e(0x12b))});}));}};K=ns([y(0x0,w[_0x500283(0x13f)]),y(0x1,u[_0x500283(0x2ce)]),y(0x2,a['Inject'](u[_0x500283(0x1ec)])),y(0x3,w[_0x500283(0x1a5)]),y(0x4,w[_0x500283(0x154)]),y(0x5,a[_0x500283(0x1bf)](a['LocaleService']))],K);const is=_0x500283(0x309),Le={},Re=a[_0x500283(0x303)](_0x500283(0x24e));var rs=Object[_0x500283(0xcc)],os=Object['getOwnPropertyDescriptor'],as=(_0x38bd53,_0x1309b1,_0x133415,_0x44c33a)=>{const _0x17a0cf=_0x500283;for(var _0x2520f4=_0x44c33a>0x1?void 0x0:_0x44c33a?os(_0x1309b1,_0x133415):_0x1309b1,_0xa7ce39=_0x38bd53[_0x17a0cf(0x1f4)]-0x1,_0x5f43fc;_0xa7ce39>=0x0;_0xa7ce39--)(_0x5f43fc=_0x38bd53[_0xa7ce39])&&(_0x2520f4=(_0x44c33a?_0x5f43fc(_0x1309b1,_0x133415,_0x2520f4):_0x5f43fc(_0x2520f4))||_0x2520f4);return _0x44c33a&&_0x2520f4&&rs(_0x1309b1,_0x133415,_0x2520f4),_0x2520f4;},Y=(_0x270999,_0x268f37)=>(_0x4f8839,_0x5e8cf0)=>_0x268f37(_0x4f8839,_0x5e8cf0,_0x270999);exports['CollaborationDataLoaderController']=class extends a['RxDisposable']{constructor(_0x45f07a,_0xce9059,_0x2ec7ca,_0x1512be,_0x458ef4){const _0x47513d=_0x500283;super(),this[_0x47513d(0x20c)]=_0x45f07a,this[_0x47513d(0x159)]=_0xce9059,this[_0x47513d(0xc1)]=_0x2ec7ca,this[_0x47513d(0x1cd)]=_0x1512be,_0x458ef4?_0x458ef4==null||_0x458ef4[_0x47513d(0x2ff)]()['then'](()=>this['_init']()):(this[_0x47513d(0x159)][_0x47513d(0x27c)](_0x47513d(0x234),_0x47513d(0x138)),this[_0x47513d(0x29a)]());}async[_0x500283(0x29a)](){const _0x260ed6=_0x500283,_0x2be98d=this[_0x260ed6(0x20c)][_0x260ed6(0x1d4)](_0x260ed6(0xe7)),_0x39f755=this[_0x260ed6(0x20c)]['getParam'](_0x260ed6(0x175)),_0x37b4a2=this[_0x260ed6(0x20c)]['getParam'](_0x260ed6(0xca));if(!_0x2be98d||!_0x39f755){this[_0x260ed6(0x159)][_0x260ed6(0x27c)]('[CollaborationDataLoaderController]',_0x260ed6(0xe2));return;}const _0x57271f=await this[_0x260ed6(0x1cd)]['loadUnit'](_0x2be98d,Number(_0x39f755),_0x37b4a2);_0x57271f&&_0x57271f instanceof a[_0x260ed6(0x306)]&&this[_0x260ed6(0x17b)](_0x57271f);}async[_0x500283(0x17b)](_0x5acaee){const _0xdce3b4=_0x500283;await this[_0xdce3b4(0x131)](_0x5acaee),_0x5acaee['activeSheet$']['pipe'](S[_0xdce3b4(0x133)](this[_0xdce3b4(0x23b)]))['subscribe'](_0xa9e222=>{const _0xb80929=_0xdce3b4;_0xa9e222&&this[_0xb80929(0x31c)](_0xa9e222);}),this[_0xdce3b4(0x20c)][_0xdce3b4(0x2b6)]['pipe'](S[_0xdce3b4(0x133)](this[_0xdce3b4(0x23b)]))[_0xdce3b4(0x2f2)](()=>this[_0xdce3b4(0x131)](_0x5acaee));}[_0x500283(0x31c)](_0x1bf159,_0x4993e4=!0x1){const _0x3a7aea=_0x500283,_0x1d9037=this['_urlService'][_0x3a7aea(0x1d4)](_0x3a7aea(0xca));_0x1bf159[_0x3a7aea(0x14f)]()!==_0x1d9037&&this['_urlService']['setParam'](_0x3a7aea(0xca),_0x1bf159[_0x3a7aea(0x14f)](),_0x4993e4);}async['_updateSubUnitFromURLParams'](_0x5b7fd5){const _0x58c381=_0x500283;var _0x3fd70d;const _0x1995ce=this[_0x58c381(0x20c)][_0x58c381(0x1d4)](_0x58c381(0xca));if(!_0x1995ce||!_0x5b7fd5[_0x58c381(0x1f8)](_0x1995ce)){const _0x3b7f01=_0x5b7fd5['getUnhiddenWorksheets']()[0x0],_0x5f3697=_0x5b7fd5[_0x58c381(0x1f8)](_0x3b7f01);if(!_0x5f3697)return;this['_updateURLWithCurrentState'](_0x5f3697,!0x0),await this[_0x58c381(0xc1)]['executeCommand'](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x5b7fd5[_0x58c381(0x158)](),'subUnitId':_0x3b7f01});return;}((_0x3fd70d=_0x5b7fd5[_0x58c381(0x210)]())==null?void 0x0:_0x3fd70d[_0x58c381(0x14f)]())!==_0x1995ce&&await this[_0x58c381(0xc1)][_0x58c381(0x168)](I[_0x58c381(0x197)]['id'],{'unitId':_0x5b7fd5[_0x58c381(0x158)](),'subUnitId':_0x1995ce});}},exports['CollaborationDataLoaderController']=as([Y(0x0,Re),Y(0x1,a[_0x500283(0x2b5)]),Y(0x2,a[_0x500283(0x268)]),Y(0x3,a['Inject'](u[_0x500283(0x312)])),Y(0x4,a[_0x500283(0x136)](tt[_0x500283(0x2ed)]))],exports[_0x500283(0x26c)]);var cs=Object[_0x500283(0xcc)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x553b16,_0x36376c,_0x322945,_0x390a7c)=>{const _0x280711=_0x500283;for(var _0x37511f=_0x390a7c>0x1?void 0x0:_0x390a7c?ls(_0x36376c,_0x322945):_0x36376c,_0x3d0f14=_0x553b16[_0x280711(0x1f4)]-0x1,_0x3323dd;_0x3d0f14>=0x0;_0x3d0f14--)(_0x3323dd=_0x553b16[_0x3d0f14])&&(_0x37511f=(_0x390a7c?_0x3323dd(_0x36376c,_0x322945,_0x37511f):_0x3323dd(_0x37511f))||_0x37511f);return _0x390a7c&&_0x37511f&&cs(_0x36376c,_0x322945,_0x37511f),_0x37511f;},le=(_0x341297,_0x4a0a51)=>(_0x3091ad,_0x2da64a)=>_0x4a0a51(_0x3091ad,_0x2da64a,_0x341297);let z=class{constructor(_0x162d5a,_0x37dc8a,_0x23c6ca){const _0xae7e3f=_0x500283;this['_injector']=_0x162d5a,this[_0xae7e3f(0x14c)]=_0x37dc8a,this[_0xae7e3f(0x1a0)]=_0x23c6ca;}[_0x500283(0x1eb)](_0x970617){const _0x3ce59c=_0x500283;this[_0x3ce59c(0x2f6)](_0x970617),this[_0x3ce59c(0x2a5)](_0x970617);}[_0x500283(0x2a9)](_0x2e4f57){const _0x6d530d=_0x500283,{unitID:_0x9deb64}=_0x2e4f57,_0x4900b5=this[_0x6d530d(0x1a0)][_0x6d530d(0x267)](_0x9deb64)['with'](b[_0x6d530d(0x297)]),{redoCache:_0x24f62e}=_0x4900b5[_0x6d530d(0x260)]();if(_0x24f62e[_0x6d530d(0x1f4)]===0x0)return _0x2e4f57;let _0xdc6c0e=a[_0x6d530d(0xba)][_0x6d530d(0x1a9)](_0x2e4f57[_0x6d530d(0x15e)][0x0]);for(let _0x19efa7=0x0;_0x19efa7<_0x24f62e[_0x6d530d(0x1f4)];_0x19efa7++){const _0x9e6a17={'id':'doc.mutation.rich-text-editing','params':{..._0x24f62e[_0x19efa7]}},_0x5e7388=this[_0x6d530d(0x14c)][_0x6d530d(0x19b)](_0xdc6c0e,_0x9e6a17,!0x1);if(g[_0x6d530d(0x156)](_0x5e7388))throw _0x5e7388[_0x6d530d(0x135)];_0xdc6c0e=_0x5e7388['m1Prime'];}return{...a[_0x6d530d(0xba)]['deepClone'](_0x2e4f57),'mutations':[_0xdc6c0e]};}['_transformUndoRedoStack'](_0x21ad82){const _0x2715f0=_0x500283,{unitID:_0x44ff2e}=_0x21ad82,_0x3c58db=this[_0x2715f0(0x1a0)][_0x2715f0(0x267)](_0x44ff2e)[_0x2715f0(0x1c9)](b[_0x2715f0(0x297)]),{undoCache:_0x257e71,redoCache:_0x216b02}=_0x3c58db[_0x2715f0(0x260)]();if(_0x257e71['length']===0x0||_0x216b02[_0x2715f0(0x1f4)]===0x0)return;const _0xacf1e6=[],_0x5760d6=[];let _0x42f84e=a[_0x2715f0(0xba)][_0x2715f0(0x1a9)](_0x21ad82['mutations'][0x0]),_0x380cf2=a['Tools']['deepClone'](_0x21ad82[_0x2715f0(0x15e)][0x0]);for(let _0x3854bd=_0x257e71[_0x2715f0(0x1f4)]-0x1;_0x3854bd>=0x0;_0x3854bd--){const _0x1c4d86={'id':'doc.mutation.rich-text-editing','params':{..._0x257e71[_0x3854bd]}},_0x5cef59={'id':_0x2715f0(0x294),'params':{..._0x216b02[_0x3854bd]}},_0x5eb779=this[_0x2715f0(0x14c)][_0x2715f0(0x19b)](_0x42f84e,_0x1c4d86,!0x1),_0xf72e33=this[_0x2715f0(0x14c)][_0x2715f0(0x19b)](_0x380cf2,_0x5cef59,!0x1);if(g['isTransformMutationFailure'](_0x5eb779))throw _0x5eb779[_0x2715f0(0x135)];if(g[_0x2715f0(0x156)](_0xf72e33))throw _0xf72e33[_0x2715f0(0x135)];_0xacf1e6[_0x2715f0(0x1b1)](_0x5eb779['m2Prime'][_0x2715f0(0x2a0)]),_0x5760d6[_0x2715f0(0x1b1)](_0xf72e33[_0x2715f0(0x30c)]['params']),_0x42f84e=_0x5eb779[_0x2715f0(0xbd)],_0x380cf2=_0xf72e33['m1Prime'];}_0x3c58db[_0x2715f0(0x300)]({'undoCache':_0xacf1e6,'redoCache':_0x5760d6});}[_0x500283(0x2a5)](_0x21931f){const _0xe8249b=_0x500283,{unitID:_0x8001ce}=_0x21931f,_0x50ec5d=this['_renderManagerService'][_0xe8249b(0x267)](_0x8001ce)['with'](b[_0xe8249b(0x297)]),_0x24e6e4=_0x50ec5d[_0xe8249b(0x1d1)]();if(_0x24e6e4==null)return;const _0x467c04=[{'id':_0xe8249b(0x294),'params':{'unitId':_0x21931f[_0xe8249b(0x25f)],'actions':null,'textRanges':[_0x24e6e4]}}],_0xbfac4a=this[_0xe8249b(0x14c)][_0xe8249b(0x216)](_0x21931f,_0x467c04);if(!g[_0xe8249b(0x2eb)](_0xbfac4a))throw _0xbfac4a[_0xe8249b(0x135)];const _0x16f05d=_0xbfac4a[_0xe8249b(0x30c)][0x0][_0xe8249b(0x2a0)]['textRanges'];Array['isArray'](_0x16f05d)&&_0x16f05d[_0xe8249b(0x1f4)]&&_0x50ec5d[_0xe8249b(0x132)](_0x16f05d[0x0]);}};z=hs([le(0x0,a['Inject'](a[_0x500283(0x30e)])),le(0x1,g[_0x500283(0x103)]),le(0x2,p[_0x500283(0x15b)])],z);var _s=Object[_0x500283(0xcc)],us=Object[_0x500283(0x324)],ds=(_0x509ab4,_0x60bfb6,_0x450bc1,_0x132f50)=>{for(var _0x2ea8a7=_0x132f50>0x1?void 0x0:_0x132f50?us(_0x60bfb6,_0x450bc1):_0x60bfb6,_0x34f2ff=_0x509ab4['length']-0x1,_0x2a0f66;_0x34f2ff>=0x0;_0x34f2ff--)(_0x2a0f66=_0x509ab4[_0x34f2ff])&&(_0x2ea8a7=(_0x132f50?_0x2a0f66(_0x60bfb6,_0x450bc1,_0x2ea8a7):_0x2a0f66(_0x2ea8a7))||_0x2ea8a7);return _0x132f50&&_0x2ea8a7&&_s(_0x60bfb6,_0x450bc1,_0x2ea8a7),_0x2ea8a7;},he=(_0x47e9a7,_0x1e62c6)=>(_0x3f9146,_0x203116)=>_0x1e62c6(_0x3f9146,_0x203116,_0x47e9a7);let J=class{constructor(_0x501033,_0x6428b8,_0x9f1cea){const _0x49c4d0=_0x500283;this[_0x49c4d0(0xbc)]=_0x501033,this[_0x49c4d0(0x14c)]=_0x6428b8,this[_0x49c4d0(0x1e8)]=_0x9f1cea;}['transformStateCache'](_0x367fc9){this['_transformHistoryAndStateStack'](_0x367fc9);}[_0x500283(0x2a9)](_0x3492ad){const _0x2428e7=_0x500283,{unitID:_0x57c7b4}=_0x3492ad,{collaboration:_0x19ed25}=this['_docStateChangeManagerService']['getStateCache'](_0x57c7b4);if(_0x19ed25[_0x2428e7(0x1f4)]===0x0)return _0x3492ad;let _0x1fa954=a[_0x2428e7(0xba)][_0x2428e7(0x1a9)](_0x3492ad['mutations'][0x0]);for(let _0x1fce8d=0x0;_0x1fce8d<_0x19ed25[_0x2428e7(0x1f4)];_0x1fce8d++){const _0x575736={'id':_0x2428e7(0x294),'params':{'unitId':_0x19ed25[_0x1fce8d][_0x2428e7(0x25e)],..._0x19ed25[_0x1fce8d][_0x2428e7(0x1d6)]}},_0x32821f=this[_0x2428e7(0x14c)]['transformMutation'](_0x1fa954,_0x575736,!0x1);if(g[_0x2428e7(0x156)](_0x32821f))throw _0x32821f[_0x2428e7(0x135)];_0x1fa954=_0x32821f[_0x2428e7(0xbd)];}return{...a[_0x2428e7(0xba)][_0x2428e7(0x1a9)](_0x3492ad),'mutations':[_0x1fa954]};}[_0x500283(0x2c0)](_0x4d122e){const _0x1d0a10=_0x500283,{unitID:_0x2c469d}=_0x4d122e,{history:_0x4cfe9c,collaboration:_0x13b51d}=this[_0x1d0a10(0x1e8)]['getStateCache'](_0x2c469d);if(_0x4cfe9c['length']===0x0&&_0x13b51d[_0x1d0a10(0x1f4)]===0x0)return;const _0x53df69=[],_0x1849c6=[];let _0x24ead5=a[_0x1d0a10(0xba)][_0x1d0a10(0x1a9)](_0x4d122e[_0x1d0a10(0x15e)][0x0]),_0xf57b26=a['Tools']['deepClone'](_0x4d122e[_0x1d0a10(0x15e)][0x0]);for(let _0x4b235b=_0x4cfe9c[_0x1d0a10(0x1f4)]-0x1;_0x4b235b>=0x0;_0x4b235b--){const _0x2f7eec={'id':_0x1d0a10(0x294),'params':{'unitId':_0x4cfe9c[_0x4b235b][_0x1d0a10(0x25e)],..._0x4cfe9c[_0x4b235b]['undoState']}},_0x13fc55={'id':_0x1d0a10(0x294),'params':{'unitId':_0x4cfe9c[_0x4b235b][_0x1d0a10(0x25e)],..._0x4cfe9c[_0x4b235b][_0x1d0a10(0x1d6)]}},_0x23e2f1=this[_0x1d0a10(0x14c)][_0x1d0a10(0x19b)](_0x24ead5,_0x2f7eec,!0x1),_0x4388a9=this[_0x1d0a10(0x14c)]['transformMutation'](_0xf57b26,_0x13fc55,!0x1);if(g[_0x1d0a10(0x156)](_0x23e2f1))throw _0x23e2f1['error'];if(g[_0x1d0a10(0x156)](_0x4388a9))throw _0x4388a9[_0x1d0a10(0x135)];_0x53df69[_0x1d0a10(0x1b1)]({..._0x4cfe9c[_0x4b235b],'undoState':_0x23e2f1[_0x1d0a10(0x30c)][_0x1d0a10(0x2a0)],'redoState':_0x4388a9[_0x1d0a10(0x30c)][_0x1d0a10(0x2a0)]}),_0x24ead5=_0x23e2f1[_0x1d0a10(0xbd)],_0xf57b26=_0x4388a9[_0x1d0a10(0xbd)];}_0x24ead5=a[_0x1d0a10(0xba)][_0x1d0a10(0x1a9)](_0x4d122e[_0x1d0a10(0x15e)][0x0]),_0xf57b26=a['Tools'][_0x1d0a10(0x1a9)](_0x4d122e[_0x1d0a10(0x15e)][0x0]);for(let _0x53c153=_0x13b51d['length']-0x1;_0x53c153>=0x0;_0x53c153--){const _0x19e851={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x13b51d[_0x53c153][_0x1d0a10(0x25e)],..._0x13b51d[_0x53c153][_0x1d0a10(0x1ee)]}},_0x215164={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x13b51d[_0x53c153][_0x1d0a10(0x25e)],..._0x13b51d[_0x53c153]['redoState']}},_0x1e9425=this[_0x1d0a10(0x14c)]['transformMutation'](_0x24ead5,_0x19e851,!0x1),_0x1a9ed9=this[_0x1d0a10(0x14c)][_0x1d0a10(0x19b)](_0xf57b26,_0x215164,!0x1);if(g[_0x1d0a10(0x156)](_0x1e9425))throw _0x1e9425[_0x1d0a10(0x135)];if(g[_0x1d0a10(0x156)](_0x1a9ed9))throw _0x1a9ed9['error'];_0x1849c6[_0x1d0a10(0x1b1)]({..._0x13b51d[_0x53c153],'undoState':_0x1e9425[_0x1d0a10(0x30c)]['params'],'redoState':_0x1a9ed9[_0x1d0a10(0x30c)][_0x1d0a10(0x2a0)]}),_0x24ead5=_0x1e9425[_0x1d0a10(0xbd)],_0xf57b26=_0x1a9ed9[_0x1d0a10(0xbd)];}this['_docStateChangeManagerService']['setStateCache'](_0x2c469d,{'history':_0x53df69,'collaboration':_0x1849c6});}};J=ds([he(0x0,a['Inject'](a['Injector'])),he(0x1,g['ITransformService']),he(0x2,a[_0x500283(0x1bf)](b['DocStateChangeManagerService']))],J);var fs=Object[_0x500283(0xcc)],Ss=Object[_0x500283(0x324)],vs=(_0x5bb432,_0x1d4100,_0x50b5d1,_0x2cd208)=>{const _0x2ab28e=_0x500283;for(var _0x41bb39=_0x2cd208>0x1?void 0x0:_0x2cd208?Ss(_0x1d4100,_0x50b5d1):_0x1d4100,_0x256857=_0x5bb432[_0x2ab28e(0x1f4)]-0x1,_0x42fa9b;_0x256857>=0x0;_0x256857--)(_0x42fa9b=_0x5bb432[_0x256857])&&(_0x41bb39=(_0x2cd208?_0x42fa9b(_0x1d4100,_0x50b5d1,_0x41bb39):_0x42fa9b(_0x41bb39))||_0x41bb39);return _0x2cd208&&_0x41bb39&&fs(_0x1d4100,_0x50b5d1,_0x41bb39),_0x41bb39;},Ae=(_0x4ddfcd,_0x34e732)=>(_0x286965,_0x416a37)=>_0x34e732(_0x286965,_0x416a37,_0x4ddfcd);let Z=class{constructor(_0x546190,_0x50604b){const _0x164577=_0x500283;this[_0x164577(0xbc)]=_0x546190,this[_0x164577(0x14c)]=_0x50604b;}['transformSelections'](_0x341649){const _0x48f118=_0x500283;var _0xbe6f02;const _0x5d9d74=this[_0x48f118(0xbc)][_0x48f118(0x277)](X[_0x48f118(0x125)]),_0xde96a5=(_0xbe6f02=_0x5d9d74[_0x48f118(0x217)]())!=null?_0xbe6f02:[];if(_0xde96a5[_0x48f118(0x1f4)]===0x0)return;const _0x28ac45=_0x341649[_0x48f118(0x25f)],_0x24dffa=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28ac45,'actions':null,'textRanges':_0xde96a5}}],_0x2a623a=this['_transformService'][_0x48f118(0x216)](_0x341649,_0x24dffa);if(!g[_0x48f118(0x2eb)](_0x2a623a))throw _0x2a623a[_0x48f118(0x135)];const _0x2b0b81=_0x2a623a[_0x48f118(0x30c)][0x0][_0x48f118(0x2a0)][_0x48f118(0x2ec)];Array[_0x48f118(0x13d)](_0x2b0b81)&&_0x2b0b81['length']&&_0x5d9d74[_0x48f118(0x19a)](_0x2b0b81,{'unitId':_0x28ac45,'subUnitId':_0x28ac45},!0x1);}};Z=vs([Ae(0x0,a[_0x500283(0x1bf)](a['Injector'])),Ae(0x1,g[_0x500283(0x103)])],Z);var ms=Object['defineProperty'],Is=Object[_0x500283(0x324)],gs=(_0x480456,_0x171b33,_0x1c2d76,_0x4ffd91)=>{for(var _0x11b3c1=_0x4ffd91>0x1?void 0x0:_0x4ffd91?Is(_0x171b33,_0x1c2d76):_0x171b33,_0x5c7630=_0x480456['length']-0x1,_0x21b7d8;_0x5c7630>=0x0;_0x5c7630--)(_0x21b7d8=_0x480456[_0x5c7630])&&(_0x11b3c1=(_0x4ffd91?_0x21b7d8(_0x171b33,_0x1c2d76,_0x11b3c1):_0x21b7d8(_0x11b3c1))||_0x11b3c1);return _0x4ffd91&&_0x11b3c1&&ms(_0x171b33,_0x1c2d76,_0x11b3c1),_0x11b3c1;},P=(_0x2f9efd,_0x543f6f)=>(_0x145a43,_0x5ceeaa)=>_0x543f6f(_0x145a43,_0x5ceeaa,_0x2f9efd);let Q=class extends a[_0x500283(0x325)]{constructor(_0x5cf573,_0x209959,_0x1ef017,_0x39fcee,_0x4e5818,_0x18f450,_0x5e3a80,_0x3d3e51){const _0x559151=_0x500283;super(),_(this,'_status$',new S[(_0x559151(0x28e))](u[_0x559151(0x2db)]['NOT_COLLAB'])),(this[_0x559151(0x1e8)]=_0x5cf573,this[_0x559151(0xb5)]=_0x209959,this['_docTransformIMECacheService']=_0x1ef017,this[_0x559151(0x19f)]=_0x39fcee,this[_0x559151(0x165)]=_0x4e5818,this[_0x559151(0x2a7)]=_0x18f450,this['_messageService']=_0x5e3a80,this[_0x559151(0x1b3)]=_0x3d3e51,this['_initEntityListener']());}[_0x500283(0x1ea)](){const _0x2bd8c5=_0x500283;this[_0x2bd8c5(0x326)](this[_0x2bd8c5(0xb5)][_0x2bd8c5(0x18e)]['subscribe'](_0x9c3cb6=>{const _0x369c59=_0x2bd8c5,_0x307f99=this[_0x369c59(0x1e8)][_0x369c59(0x284)][_0x369c59(0x2f2)](_0x31a031=>{const _0x4bc029=_0x369c59;if(_0x31a031==null)return;const {unitId:_0x2c210c,redoState:_0x319d26,commandId:_0x1003b3}=_0x31a031;if(_0x2c210c!==_0x9c3cb6[_0x4bc029(0x25f)])return;const _0x323166={'id':_0x1003b3,'type':a[_0x4bc029(0x20f)][_0x4bc029(0x167)],'params':{'unitId':_0x2c210c,'actions':_0x319d26[_0x4bc029(0x2a4)],'textRanges':null}};_0x9c3cb6[_0x4bc029(0x17a)](_0x323166);});if(_0x9c3cb6['disposeWithMe'](_0x307f99),_0x9c3cb6 instanceof u['DocCollaborationEntity']){const _0x2a2603={'onTransformIME':_0xa86751=>this[_0x369c59(0x143)][_0x369c59(0x1eb)](_0xa86751),'onTransformState':_0xb0c348=>this[_0x369c59(0x19f)][_0x369c59(0x2fc)](_0xb0c348),'onTransformSelections':_0x58eb0f=>this[_0x369c59(0x165)]['transformSelections'](_0x58eb0f),'onSyncEditingCollabCursor':_0x43987a=>this[_0x369c59(0x2a7)]['syncEditingCollabCursor'](_0x43987a),'onTransformRemoteChangesetByIMECache':_0xd643d7=>this['_docTransformIMECacheService'][_0x369c59(0x2a9)](_0xd643d7),'onTransformRemoteChangesetByStateCache':_0xb5d894=>this[_0x369c59(0x19f)]['transformRemoteChangeset'](_0xb5d894)};_0x9c3cb6[_0x369c59(0x257)](_0x2a2603);}}));}};Q=gs([P(0x0,a['Inject'](b['DocStateChangeManagerService'])),P(0x1,a[_0x500283(0x1bf)](u[_0x500283(0x2f3)])),P(0x2,a[_0x500283(0x1bf)](z)),P(0x3,a[_0x500283(0x1bf)](J)),P(0x4,a[_0x500283(0x1bf)](Z)),P(0x5,a[_0x500283(0x1bf)](be)),P(0x6,w[_0x500283(0x1a5)]),P(0x7,a[_0x500283(0x1bf)](a[_0x500283(0x292)]))],Q);var ps=Object[_0x500283(0xcc)],Cs=Object[_0x500283(0x324)],bs=(_0x1ccd9d,_0x5e0300,_0x2959f0,_0x299a82)=>{const _0x1b6f1f=_0x500283;for(var _0x4f49f3=_0x299a82>0x1?void 0x0:_0x299a82?Cs(_0x5e0300,_0x2959f0):_0x5e0300,_0xd986c4=_0x1ccd9d[_0x1b6f1f(0x1f4)]-0x1,_0x565922;_0xd986c4>=0x0;_0xd986c4--)(_0x565922=_0x1ccd9d[_0xd986c4])&&(_0x4f49f3=(_0x299a82?_0x565922(_0x5e0300,_0x2959f0,_0x4f49f3):_0x565922(_0x4f49f3))||_0x4f49f3);return _0x299a82&&_0x4f49f3&&ps(_0x5e0300,_0x2959f0,_0x4f49f3),_0x4f49f3;},_e=(_0x28caba,_0x4f6a25)=>(_0x3854d7,_0x314ea4)=>_0x4f6a25(_0x3854d7,_0x314ea4,_0x28caba);let pe=class extends a[_0x500283(0x325)]{constructor(_0xc6d1f,_0x32cf0a,_0x5d4b87){const _0x38f446=_0x500283;super(),_(this,_0x38f446(0x1dd),new Map()),_(this,_0x38f446(0x233),new Map()),_(this,_0x38f446(0x1ed),!0x1),(this[_0x38f446(0x101)]=_0xc6d1f,this['_localStorageService']=_0x32cf0a,this[_0x38f446(0x196)]=_0x5d4b87);}[_0x500283(0x114)](){this['_disabled']=!0x0;}[_0x500283(0x1bc)](){const _0x4f2db9=_0x500283;this[_0x4f2db9(0x1ed)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x500283(0x1ff)](){const _0x4c1bce=_0x500283;this[_0x4c1bce(0x19c)]()['then'](()=>super['dispose']());}async[_0x500283(0xe9)](_0x33ce36){const _0x50d9ff=_0x500283;return this[_0x50d9ff(0x1ed)]?null:this['_localStorageService'][_0x50d9ff(0x2ab)](u['getLocalCacheKey'](_0x33ce36));}async['saveOfflineData'](_0x3f049e,_0x4e7bfa){const _0x50d25e=_0x500283;return!!this[_0x50d25e(0x178)][_0x50d25e(0x2c4)](_0x3f049e,_0x4e7bfa);}[_0x500283(0x1b7)](_0x4f8487,_0x2524dd,_0x22a66f,_0x1f3dea){const _0x2fb9c2=_0x500283,_0x173b29=this[_0x2fb9c2(0x196)][_0x2fb9c2(0x112)](_0x4f8487);this['_cachedData'][_0x2fb9c2(0x21b)](_0x4f8487,{'unitID':_0x4f8487,'type':_0x2524dd,'awaitingChangeset':_0x22a66f,'mutations':_0x1f3dea,'rev':_0x173b29}),this['_saveTaskMap'][_0x2fb9c2(0xf7)](_0x4f8487)||this[_0x2fb9c2(0x30b)](_0x4f8487);}[_0x500283(0x30b)](_0x260c47){const _0x120169=_0x500283,_0x309482=this['_getSaveTimeout']();_0x309482===0x0?this[_0x120169(0x134)](_0x260c47):this[_0x120169(0x233)]['set'](_0x260c47,setTimeout(()=>this['_saveCache'](_0x260c47),_0x309482));}[_0x500283(0x239)](){const _0x6f8700=_0x500283;var _0x17611d;return(_0x17611d=this[_0x6f8700(0x101)][_0x6f8700(0xc8)](u[_0x6f8700(0x2d3)]))!=null?_0x17611d:u[_0x6f8700(0xb6)];}[_0x500283(0x134)](_0x57b9d0){const _0x445026=_0x500283,_0x126980=this['_saveTaskMap']['get'](_0x57b9d0);return _0x126980!==void 0x0&&window[_0x445026(0x22b)](_0x126980),this['_localStorageService'][_0x445026(0x2c4)](u['getLocalCacheKey'](_0x57b9d0),this[_0x445026(0x1dd)]['get'](_0x57b9d0))[_0x445026(0x1ba)](()=>this[_0x445026(0x233)][_0x445026(0x2aa)](_0x57b9d0));}async['exhaustSavingTask'](){const _0x413273=_0x500283,_0x268ce1=[];this['_saveTaskMap']['forEach']((_0x8d6889,_0x3e4cf7)=>{const _0x9259e3=_0x433a;window[_0x9259e3(0x22b)](_0x8d6889),_0x268ce1['push'](this[_0x9259e3(0x134)](_0x3e4cf7)['then'](()=>{const _0x2ee03a=_0x9259e3;this[_0x2ee03a(0x233)]['delete'](_0x3e4cf7);}));}),await Promise[_0x413273(0x1ae)](_0x268ce1);}};pe=bs([_e(0x0,a[_0x500283(0x270)]),_e(0x1,a[_0x500283(0x259)]),_e(0x2,a[_0x500283(0x1bf)](g[_0x500283(0x313)]))],pe);class Xe extends a['RxDisposable']{constructor(){const _0x3253bb=_0x500283;super(),_(this,_0x3253bb(0x2b6)),this[_0x3253bb(0x2b6)]=S[_0x3253bb(0x117)](window,_0x3253bb(0xef))['pipe'](S['takeUntil'](this[_0x3253bb(0x23b)]),S['shareReplay'](0x1),S[_0x3253bb(0x10c)](void 0x0));}[_0x500283(0xea)](_0x1e6172,_0x175e6c,_0x18e869=!0x1){const _0xa8074d=_0x500283,_0x1566de=new URL(window[_0xa8074d(0x1e7)][_0xa8074d(0x108)]);_0x1566de['searchParams'][_0xa8074d(0x21b)](_0x1e6172,_0x175e6c),_0x18e869?window[_0xa8074d(0x105)][_0xa8074d(0x102)]('','',_0x1566de[_0xa8074d(0x314)]()):window[_0xa8074d(0x105)][_0xa8074d(0x2c7)]('','',_0x1566de[_0xa8074d(0x314)]());}[_0x500283(0x211)](_0x579857,_0x16e7ef=!0x1){const _0x5200bc=_0x500283,_0xf8146f=new URL(window[_0x5200bc(0x1e7)]['href']);_0xf8146f['searchParams'][_0x5200bc(0x2aa)](_0x579857),_0x16e7ef?window['history'][_0x5200bc(0x102)]('','',_0xf8146f[_0x5200bc(0x314)]()):window[_0x5200bc(0x105)][_0x5200bc(0x2c7)]('','',_0xf8146f[_0x5200bc(0x314)]());}[_0x500283(0x1d4)](_0x356377){const _0x1ec471=_0x500283;var _0x5eb709;return(_0x5eb709=new URL(window[_0x1ec471(0x1e7)]['href'])[_0x1ec471(0x2e5)][_0x1ec471(0x277)](_0x356377))!=null?_0x5eb709:void 0x0;}}var Ve=Object[_0x500283(0xcc)],Es=Object[_0x500283(0x324)],Rs=(_0x38a48d,_0x2b9142,_0x457cf8)=>_0x2b9142 in _0x38a48d?Ve(_0x38a48d,_0x2b9142,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x457cf8}):_0x38a48d[_0x2b9142]=_0x457cf8,Ts=(_0x1e624a,_0x22b542,_0x1a0037,_0x3153e9)=>{for(var _0x5adad0=_0x3153e9>0x1?void 0x0:_0x3153e9?Es(_0x22b542,_0x1a0037):_0x22b542,_0x210820=_0x1e624a['length']-0x1,_0x24b195;_0x210820>=0x0;_0x210820--)(_0x24b195=_0x1e624a[_0x210820])&&(_0x5adad0=(_0x3153e9?_0x24b195(_0x22b542,_0x1a0037,_0x5adad0):_0x24b195(_0x5adad0))||_0x5adad0);return _0x3153e9&&_0x5adad0&&Ve(_0x22b542,_0x1a0037,_0x5adad0),_0x5adad0;},ue=(_0xffcbb2,_0x31173b)=>(_0x4969a6,_0x484bc2)=>_0x31173b(_0x4969a6,_0x484bc2,_0xffcbb2),Os=(_0x240ad2,_0x563d75,_0x508dbb)=>Rs(_0x240ad2,_0x563d75+'',_0x508dbb);const Ds='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x500283(0x227)]=class extends a['Plugin']{constructor(_0x393253=Le,_0x31e26d,_0x2d73bc,_0x167859){const _0x5c76db=_0x500283;super(),this[_0x5c76db(0x203)]=_0x393253,this[_0x5c76db(0x1a0)]=_0x31e26d,this[_0x5c76db(0xbc)]=_0x2d73bc,this[_0x5c76db(0x101)]=_0x167859;const {..._0x26ddf9}=a[_0x5c76db(0xfa)]({},Le,this[_0x5c76db(0x203)]);this[_0x5c76db(0x101)][_0x5c76db(0x2a3)](is,_0x26ddf9);}[_0x500283(0x287)](){const _0x234725=_0x500283;this['_registerDependencies'](),this[_0x234725(0x140)]();}['onRendered'](){const _0x4578a0=_0x500283;this[_0x4578a0(0xfd)]();}[_0x500283(0x290)](){const _0x7947a2=_0x500283;var _0x5d3c7f;const _0x3e0327=[[Ce],[Z],[z],[J],[be],[Re,{'useClass':Xe}],[fe[_0x7947a2(0x237)],{'useClass':fe['WebSocketService']}],[u[_0x7947a2(0x2ce)],{'useClass':pe}],[exports[_0x7947a2(0xc7)]],[Q],[K],[x],[Se],[exports[_0x7947a2(0x26c)]]];a['registerDependencies'](this[_0x7947a2(0xbc)],a[_0x7947a2(0x100)](_0x3e0327,(_0x5d3c7f=this[_0x7947a2(0x203)])==null?void 0x0:_0x5d3c7f[_0x7947a2(0x2ac)]));}[_0x500283(0xfd)](){const _0x4eb6f6=_0x500283;this[_0x4eb6f6(0x326)](this['_renderManagerService']['registerRenderModule'](a[_0x4eb6f6(0x28d)][_0x4eb6f6(0x16c)],[Ie])),this[_0x4eb6f6(0x326)](this[_0x4eb6f6(0x1a0)][_0x4eb6f6(0x263)](a[_0x4eb6f6(0x28d)][_0x4eb6f6(0x27e)],[ge]));}[_0x500283(0x140)](){const _0x3c2528=_0x500283;a['touchDependencies'](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[K],[exports[_0x3c2528(0x26c)]]]);}},Os(exports[_0x500283(0x227)],_0x500283(0x122),Ds),exports[_0x500283(0x227)]=Ts([a[_0x500283(0x182)](u[_0x500283(0x307)]),ue(0x1,p[_0x500283(0x15b)]),ue(0x2,a[_0x500283(0x1bf)](a[_0x500283(0x30e)])),ue(0x3,a['IConfigService'])],exports[_0x500283(0x227)]);const ye=0x7530,$e=_0x500283(0x183);class Ps extends a[_0x500283(0x325)]{constructor(){const _0x479ca9=_0x500283;super(),_(this,_0x479ca9(0x255),a[_0x479ca9(0xba)][_0x479ca9(0x2e7)]()),_(this,_0x479ca9(0x12c),new Set()),_(this,_0x479ca9(0xd2),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x479ca9(0x27a),new Map()),_(this,_0x479ca9(0x1f3),new Map()),this[_0x479ca9(0x29a)]();}[_0x500283(0x1ff)](){const _0x57bdd6=_0x500283;super[_0x57bdd6(0x1ff)](),this['_clearOtherTimers'][_0x57bdd6(0x316)]((_0x5c286a,_0x10919a)=>this[_0x57bdd6(0x2bf)](_0x10919a)),this[_0x57bdd6(0x204)]&&window[_0x57bdd6(0x283)](this[_0x57bdd6(0x204)]);}[_0x500283(0x1bb)](_0x19a574){const _0x32b7aa=_0x500283;return this['_ensureSubject'](_0x19a574)[_0x32b7aa(0xf6)](S[_0x32b7aa(0xfe)]());}[_0x500283(0x24f)](_0x65be93){const _0x2a349d=_0x500283;this[_0x2a349d(0x12c)][_0x2a349d(0x318)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x2a349d(0x317)](_0x65be93),this['_send']({'type':0x0,'memberID':this[_0x2a349d(0x255)],'unitIDs':[_0x65be93],'isForwarded':!0x1});}[_0x500283(0x2cc)](_0x5e8ae9){const _0x2966a8=_0x500283;this[_0x2966a8(0x12c)][_0x2966a8(0x2aa)](_0x5e8ae9),this['_selfUnitIDs'][_0x2966a8(0x318)]===0x0&&this[_0x2966a8(0x204)]&&window[_0x2966a8(0x283)](this[_0x2966a8(0x204)]);}['_init'](){const _0x162ffc=_0x500283;this['disposeWithMe'](a[_0x162ffc(0x2ba)](S['fromEvent'](window,_0x162ffc(0x163))[_0x162ffc(0x2f2)](_0x129fd2=>{const _0x31d7b6=_0x162ffc;if(_0x129fd2[_0x31d7b6(0x157)]!==$e||!_0x129fd2['newValue'])return;const _0x4b5dd7=JSON['parse'](_0x129fd2[_0x31d7b6(0xd6)]);this['_handleEvent'](_0x4b5dd7);}))),window[_0x162ffc(0x104)](_0x162ffc(0x26d),()=>this['_send']({'type':0x1,'memberID':this[_0x162ffc(0x255)],'unitIDs':Array[_0x162ffc(0x1dc)](this[_0x162ffc(0x12c)])}));}[_0x500283(0x205)](_0x3e2e3f){const _0x5092b1=_0x500283;switch(_0x3e2e3f[_0x5092b1(0x175)]){case 0x0:this['_handleJoinEvent'](_0x3e2e3f);break;case 0x1:this[_0x5092b1(0x13e)](_0x3e2e3f);break;case 0x2:this[_0x5092b1(0x16d)](_0x3e2e3f);break;}}[_0x500283(0x127)](_0x372b84){const _0x230629=_0x500283,{unitIDs:_0x191d48,memberID:_0xc0514a,isForwarded:_0x15f85c}=_0x372b84;_0x191d48['forEach'](_0x35766f=>{const _0x21c3a6=_0x433a;if(!_0x15f85c&&this[_0x21c3a6(0xd2)][_0x21c3a6(0xf7)](_0x35766f)&&this['_ensureSubject'](_0x35766f)[_0x21c3a6(0x1f6)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x21c3a6(0xd2)]['has'](_0x35766f)||!this['_unitOnClients'][_0x21c3a6(0x277)](_0x35766f)[_0x21c3a6(0xf7)](_0xc0514a)){const _0x49970a=this[_0x21c3a6(0xd2)][_0x21c3a6(0x277)](_0x35766f)||new Set();_0x49970a[_0x21c3a6(0x317)](_0xc0514a),this[_0x21c3a6(0xd2)][_0x21c3a6(0x21b)](_0x35766f,_0x49970a),this[_0x21c3a6(0x243)](_0xc0514a);}}),_0x15f85c||this[_0x230629(0x111)]({'type':0x0,'memberID':this[_0x230629(0x255)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4eb82b){const _0x31c3af=_0x500283;this[_0x31c3af(0x2bf)](_0x4eb82b);const _0x4dfb3d=window[_0x31c3af(0xe8)](()=>{const _0x3446aa=_0x31c3af;this['_unitOnClients'][_0x3446aa(0x316)](_0x12cc0f=>{const _0x3ecbdd=_0x3446aa;_0x12cc0f[_0x3ecbdd(0x2aa)](_0x4eb82b);});},ye*0x2);this[_0x31c3af(0x27a)][_0x31c3af(0x21b)](_0x4eb82b,_0x4dfb3d);}[_0x500283(0x2bf)](_0x151181){const _0xdfa074=_0x500283;if(this[_0xdfa074(0x27a)][_0xdfa074(0xf7)](_0x151181)){const _0x924205=this[_0xdfa074(0x27a)][_0xdfa074(0x277)](_0x151181);_0x924205&&window[_0xdfa074(0x22b)](_0x924205),this[_0xdfa074(0x27a)][_0xdfa074(0x21b)](_0x151181,null);}}[_0x500283(0x13e)](_0x6870db){const _0x2a50ed=_0x500283,{memberID:_0x3e74dd,unitIDs:_0xf6afda}=_0x6870db;_0xf6afda[_0x2a50ed(0x316)](_0x30eb24=>{const _0x14b8eb=_0x2a50ed;var _0x370fa0;const _0x2daf11=this[_0x14b8eb(0xd2)][_0x14b8eb(0x277)](_0x30eb24);_0x2daf11&&(_0x2daf11['delete'](_0x3e74dd),(_0x370fa0=this['_ensureSubject'](_0x30eb24))==null||_0x370fa0['next'](_0x2daf11[_0x14b8eb(0x318)]===0x0?u[_0x14b8eb(0x177)][_0x14b8eb(0x162)]:u[_0x14b8eb(0x177)][_0x14b8eb(0x15f)]));}),this['_removeClearOtherTimer'](_0x3e74dd);}[_0x500283(0x16d)](_0xa80631){const _0x2e9048=_0x500283;this['_scheduleClearOtherTimer'](_0xa80631[_0x2e9048(0x1e3)]);}[_0x500283(0x111)](_0x52462f){const _0x3810e4=_0x500283;localStorage['setItem']($e,JSON[_0x3810e4(0x207)](_0x52462f));}[_0x500283(0x22d)](){const _0x25e471=_0x500283;this[_0x25e471(0x204)]=window['setInterval'](()=>{const _0x27de95=_0x25e471;this['_send']({'type':0x2,'memberID':this[_0x27de95(0x255)]});},ye);}[_0x500283(0x20b)](_0x353819){const _0xf64a36=_0x500283;return this[_0xf64a36(0x1f3)][_0xf64a36(0xf7)](_0x353819)||this[_0xf64a36(0x1f3)]['set'](_0x353819,new S[(_0xf64a36(0x28e))](u[_0xf64a36(0x177)][_0xf64a36(0x162)])),this[_0xf64a36(0x1f3)][_0xf64a36(0x277)](_0x353819);}}var Ge=(_0x58da60=>(_0x58da60[_0x58da60[_0x500283(0x1d7)]=0x0]='UNDEFINED',_0x58da60[_0x58da60['OK']=0x1]='OK',_0x58da60[_0x58da60['INTERNAL_ERROR']=0x2]=_0x500283(0x238),_0x58da60[_0x58da60['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x58da60[_0x58da60[_0x500283(0x29f)]=0x4]=_0x500283(0x29f),_0x58da60[_0x58da60['UNAUTHENTICATED']=0x5]=_0x500283(0xc3),_0x58da60[_0x58da60[_0x500283(0x2b1)]=0x6]='ALREADY_EXISTS',_0x58da60[_0x58da60[_0x500283(0x21a)]=0x7]=_0x500283(0x21a),_0x58da60[_0x58da60[_0x500283(0xb7)]=0x8]=_0x500283(0xb7),_0x58da60[_0x58da60['COMPLETION_FINISHED']=0x9]=_0x500283(0x327),_0x58da60[_0x58da60[_0x500283(0x14d)]=0x1389]=_0x500283(0x14d),_0x58da60[_0x58da60[_0x500283(0x29c)]=0x1771]=_0x500283(0x29c),_0x58da60[_0x58da60[_0x500283(0xd8)]=0x1772]=_0x500283(0xd8),_0x58da60[_0x58da60[_0x500283(0x1a1)]=0x1773]=_0x500283(0x1a1),_0x58da60[_0x58da60[_0x500283(0x222)]=0x1b59]=_0x500283(0x222),_0x58da60[_0x58da60[_0x500283(0x253)]=0x1b5a]=_0x500283(0x253),_0x58da60[_0x58da60[_0x500283(0x2d6)]=0x1b5b]=_0x500283(0x2d6),_0x58da60[_0x58da60[_0x500283(0x176)]=0x1b5c]=_0x500283(0x176),_0x58da60[_0x58da60[_0x500283(0xb9)]=0x1b5d]=_0x500283(0xb9),_0x58da60[_0x58da60[_0x500283(0x14a)]=0x1f41]=_0x500283(0x14a),_0x58da60[_0x58da60[_0x500283(0x1aa)]=0x2329]=_0x500283(0x1aa),_0x58da60[_0x58da60[_0x500283(0x29d)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x58da60[_0x58da60[_0x500283(0x1fd)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x58da60[_0x58da60['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x500283(0x248),_0x58da60[_0x58da60[_0x500283(0x218)]=0x232d]=_0x500283(0x218),_0x58da60[_0x58da60[_0x500283(0x23d)]=0x2711]=_0x500283(0x23d),_0x58da60[_0x58da60[_0x500283(0x150)]=0x2712]=_0x500283(0x150),_0x58da60[_0x58da60[_0x500283(0x246)]=0x2713]=_0x500283(0x246),_0x58da60[_0x58da60[_0x500283(0x22f)]=0x2714]=_0x500283(0x22f),_0x58da60[_0x58da60[_0x500283(0xd1)]=-0x1]='UNRECOGNIZED',_0x58da60))(Ge||{}),Ms=Object[_0x500283(0xcc)],Us=Object[_0x500283(0x324)],Ns=(_0x2da6aa,_0x363aca,_0x196bd9,_0x10ef06)=>{const _0x40518c=_0x500283;for(var _0x9460a3=_0x10ef06>0x1?void 0x0:_0x10ef06?Us(_0x363aca,_0x196bd9):_0x363aca,_0x4f2442=_0x2da6aa[_0x40518c(0x1f4)]-0x1,_0x37c9f3;_0x4f2442>=0x0;_0x4f2442--)(_0x37c9f3=_0x2da6aa[_0x4f2442])&&(_0x9460a3=(_0x10ef06?_0x37c9f3(_0x363aca,_0x196bd9,_0x9460a3):_0x37c9f3(_0x9460a3))||_0x9460a3);return _0x10ef06&&_0x9460a3&&Ms(_0x363aca,_0x196bd9,_0x9460a3),_0x9460a3;},de=(_0x46ef02,_0x4ccdf4)=>(_0x2830e6,_0x2f1344)=>_0x4ccdf4(_0x2830e6,_0x2f1344,_0x46ef02);exports[_0x500283(0x23a)]=class extends a[_0x500283(0x325)]{constructor(_0x191ed3,_0x1b9176,_0x2531dc){const _0x343038=_0x500283;super(),this[_0x343038(0x2cd)]=_0x191ed3,this[_0x343038(0x2fe)]=_0x1b9176,this[_0x343038(0x101)]=_0x2531dc;}async['runOnServer'](_0x2d7d33,_0x44c308,..._0xd950b5){const _0x2157a0=_0x500283;var _0x32dbaa,_0xb2b2db;const _0x254b89=this[_0x2157a0(0x2cd)][_0x2157a0(0x30f)]();if(!_0x254b89)throw new Error(_0x2157a0(0x1a6));const _0x272467=((_0x32dbaa=this[_0x2157a0(0x101)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x32dbaa:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x2d7d33+'/run/'+_0x44c308,_0x58a84f=new URL(window[_0x2157a0(0x1e7)][_0x2157a0(0x108)]),_0x920bd5={'scriptId':_0x2d7d33,'runId':(_0xb2b2db=_0x58a84f['searchParams'][_0x2157a0(0x277)](_0x2157a0(0x242)))!=null?_0xb2b2db:'','function':_0x44c308,'unitId':_0x254b89[_0x2157a0(0x158)](),'argsOfFunction':JSON[_0x2157a0(0x207)](_0xd950b5)};try{const _0xa0ccde=await this[_0x2157a0(0x2fe)][_0x2157a0(0x2af)](_0x272467,{'body':_0x920bd5});return!(_0xa0ccde[_0x2157a0(0x2e3)][_0x2157a0(0x135)]&&_0xa0ccde[_0x2157a0(0x2e3)][_0x2157a0(0x135)][_0x2157a0(0x2ae)]!==Ge['OK']);}catch{return!0x1;}}},exports[_0x500283(0x23a)]=Ns([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x500283(0x1bf)](fe[_0x500283(0xc2)])),de(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=Ye,exports['IURLService']=Re,exports[_0x500283(0x128)]=je,exports[_0x500283(0x146)]=Ps,exports[_0x500283(0x10b)]=Xe;
1
+ 'use strict';const _0x369919=_0x25b9;(function(_0x122e0c,_0x5f55e7){const _0x1e1767=_0x25b9,_0x2309ee=_0x122e0c();while(!![]){try{const _0x809cb9=-parseInt(_0x1e1767(0x3da))/0x1*(-parseInt(_0x1e1767(0x2a2))/0x2)+-parseInt(_0x1e1767(0x1f4))/0x3+parseInt(_0x1e1767(0x3e9))/0x4*(-parseInt(_0x1e1767(0x2cc))/0x5)+parseInt(_0x1e1767(0x33f))/0x6*(-parseInt(_0x1e1767(0x27a))/0x7)+parseInt(_0x1e1767(0x386))/0x8+parseInt(_0x1e1767(0x32c))/0x9+-parseInt(_0x1e1767(0x390))/0xa*(-parseInt(_0x1e1767(0x368))/0xb);if(_0x809cb9===_0x5f55e7)break;else _0x2309ee['push'](_0x2309ee['shift']());}catch(_0x5850fd){_0x2309ee['push'](_0x2309ee['shift']());}}}(_0x4f77,0x29f85));var Ze=Object[_0x369919(0x3b8)],Qe=(_0x1d5e00,_0x3243a6,_0x39952f)=>_0x3243a6 in _0x1d5e00?Ze(_0x1d5e00,_0x3243a6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39952f}):_0x1d5e00[_0x3243a6]=_0x39952f,h=(_0x737690,_0x516b0d,_0x53ae32)=>Qe(_0x737690,typeof _0x516b0d!=_0x369919(0x37d)?_0x516b0d+'':_0x516b0d,_0x53ae32);Object['defineProperty'](exports,Symbol[_0x369919(0x414)],{'value':_0x369919(0x3ce)});const _=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),C=require(_0x369919(0x34b)),fe=require(_0x369919(0x2df)),b=require(_0x369919(0x35e)),et=require(_0x369919(0x3ed)),S=require(_0x369919(0x310)),X=require('@univerjs/docs'),g=require(_0x369919(0x1f1)),Te=require(_0x369919(0x3bb)),I=require(_0x369919(0x38b)),$=require(_0x369919(0x30f)),k=require(_0x369919(0x3aa)),O=require(_0x369919(0x32b)),w=require('@univerjs/ui'),M=require(_0x369919(0x226)),tt=require('@univerjs/rpc');var st=Object[_0x369919(0x3b8)],nt=Object[_0x369919(0x1e7)],it=(_0x53a291,_0x1a880e,_0x535462,_0x5ac693)=>{for(var _0x21a888=_0x5ac693>0x1?void 0x0:_0x5ac693?nt(_0x1a880e,_0x535462):_0x1a880e,_0x2c7414=_0x53a291['length']-0x1,_0x12653b;_0x2c7414>=0x0;_0x2c7414--)(_0x12653b=_0x53a291[_0x2c7414])&&(_0x21a888=(_0x5ac693?_0x12653b(_0x1a880e,_0x535462,_0x21a888):_0x12653b(_0x21a888))||_0x21a888);return _0x5ac693&&_0x21a888&&st(_0x1a880e,_0x535462,_0x21a888),_0x21a888;},Oe=(_0x3b40f9,_0x4ce1f9)=>(_0x5d1aa4,_0x135701)=>_0x4ce1f9(_0x5d1aa4,_0x135701,_0x3b40f9);let Se=class extends a[_0x369919(0x2b7)]{constructor(_0xc0229c,_0xa1f49){const _0x1b5dea=_0x369919;super(),this[_0x1b5dea(0x275)]=_0xc0229c,this[_0x1b5dea(0x1e8)]=_0xa1f49,this['_init']();}[_0x369919(0x236)](){const _0xc63412=_0x369919,_0x11105d=this;this[_0xc63412(0x239)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x1194b2=>{const _0x477086=_0xc63412,_0x2227c3=await _0x11105d[_0x477086(0x1e8)][_0x477086(0x1fd)](_0x1194b2);return _0x2227c3?{'source':_0x2227c3[_0x477086(0x29d)],'imageSourceType':_0x2227c3[_0x477086(0x33e)]}:null;}}));}};Se=it([Oe(0x0,b[_0x369919(0x3f5)]),Oe(0x1,et[_0x369919(0x31b)])],Se);const De=[_0x369919(0x24d),_0x369919(0x361),_0x369919(0x20c),_0x369919(0x33d),_0x369919(0x26c),_0x369919(0x42b)];class Ce extends a[_0x369919(0x2f1)]{constructor(){const _0x24df70=_0x369919;super(...arguments),h(this,_0x24df70(0x1e3),new Map()),h(this,_0x24df70(0x2bd),0x0);}[_0x369919(0x1c8)](_0xda9c8f){const _0x1e75e1=_0x369919;if(this[_0x1e75e1(0x1e3)][_0x1e75e1(0x1d2)](_0xda9c8f))return this['_assignedColors'][_0x1e75e1(0x364)](_0xda9c8f);const _0x144c64=De[this[_0x1e75e1(0x2bd)]];return this[_0x1e75e1(0x2bd)]=(this[_0x1e75e1(0x2bd)]+0x1)%De[_0x1e75e1(0x3e2)],this[_0x1e75e1(0x1e3)][_0x1e75e1(0x2a3)](_0xda9c8f,_0x144c64),_0x144c64;}}function xe(_0x3fc432){let _0x1ccaa3='';for(const _0x39bba9 of _0x3fc432){const {startOffset:_0x1681fa,endOffset:_0x4816a9,isActive:_0x3cc0f9,rangeType:_0x5f8a19,segmentId:_0x5a43db,segmentPage:_0x1d4452}=_0x39bba9;_0x1ccaa3['length']&&(_0x1ccaa3+=','),_0x1ccaa3+=_0x1681fa+':'+_0x4816a9+':'+(_0x3cc0f9?'1':'0')+':'+_0x5f8a19+':'+_0x5a43db+':'+_0x1d4452;}return _0x1ccaa3;}function rt(_0x3a5263){const _0x467bf7=_0x369919,_0x172283=_0x3a5263['split'](','),_0x4371ab=[];for(const _0x571257 of _0x172283){const [_0x56f777,_0x5edc7a,_0x3ea0d5,_0x5f4e49,_0x1f2e50,_0x2da817]=_0x571257[_0x467bf7(0x1e1)](':');_0x4371ab[_0x467bf7(0x269)]({'startOffset':Number(_0x56f777),'endOffset':Number(_0x5edc7a),'collapsed':_0x56f777===_0x5edc7a,'isActive':_0x3ea0d5==='1','rangeType':_0x5f4e49===a[_0x467bf7(0x3a1)][_0x467bf7(0x378)]?a[_0x467bf7(0x3a1)][_0x467bf7(0x378)]:a[_0x467bf7(0x3a1)][_0x467bf7(0x354)],'segmentId':typeof _0x1f2e50=='string'?String(_0x1f2e50):'','segmentPage':Number(_0x2da817!=null?_0x2da817:-0x1)});}return _0x4371ab['some'](_0x19fc1c=>_0x19fc1c['isActive'])||(_0x4371ab[0x0][_0x467bf7(0x21b)]=!0x0),_0x4371ab;}class be extends a[_0x369919(0x2b7)]{constructor(){super(...arguments),h(this,'_collabCursorState$',new S['BehaviorSubject'](null)),h(this,'collabCursorState$',this['_collabCursorState$']['asObservable']());}[_0x369919(0x237)](_0x4b5e28){const _0x42dc6e=_0x369919,{unitID:_0x19e6a4,memberID:_0x2c3dc1,textRanges:_0x15779c}=_0x4b5e28,_0x4f90fd=xe(_0x15779c);if(_0x4f90fd==='')return;const _0x30b148={'unitID':_0x19e6a4,'memberID':_0x2c3dc1,'selection':_0x4f90fd};this['_collabCursorState$'][_0x42dc6e(0x28f)](_0x30b148);}}var ot=Object[_0x369919(0x3b8)],at=Object[_0x369919(0x1e7)],ct=(_0x808d06,_0x54807b,_0x161a17,_0x3d2f1a)=>{for(var _0x4987b3=_0x3d2f1a>0x1?void 0x0:_0x3d2f1a?at(_0x54807b,_0x161a17):_0x54807b,_0x131006=_0x808d06['length']-0x1,_0x88ec7f;_0x131006>=0x0;_0x131006--)(_0x88ec7f=_0x808d06[_0x131006])&&(_0x4987b3=(_0x3d2f1a?_0x88ec7f(_0x54807b,_0x161a17,_0x4987b3):_0x88ec7f(_0x4987b3))||_0x4987b3);return _0x3d2f1a&&_0x4987b3&&ot(_0x54807b,_0x161a17,_0x4987b3),_0x4987b3;},U=(_0x1456a7,_0x5888f3)=>(_0xa74370,_0x1bbc89)=>_0x5888f3(_0xa74370,_0x1bbc89,_0x1456a7);const lt=0x12c,ut=0x64;let ve=class extends a[_0x369919(0x2b7)]{constructor(_0x3cafad,_0x16ab8b,_0x471105,_0x577f10,_0x47298d,_0xb546e8,_0x7222ba,_0x2afbaa,_0x42b160){const _0x474a74=_0x369919;super(),h(this,_0x474a74(0x314),!0x1),h(this,_0x474a74(0x236),!0x1),h(this,_0x474a74(0x3d6),new S[(_0x474a74(0x277))](new Map())),h(this,_0x474a74(0x3d0),this[_0x474a74(0x3d6)][_0x474a74(0x2ba)]()),h(this,_0x474a74(0x345),new S[(_0x474a74(0x277))]([])),h(this,_0x474a74(0x3ae),this[_0x474a74(0x345)][_0x474a74(0x3a2)](S[_0x474a74(0x3bc)](lt))),h(this,'_updateLocalCursor',a['debounce'](_0x555f98=>{const _0xf8942d=_0x474a74,_0xef2357={'eventID':g[_0xf8942d(0x338)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xf8942d(0x3f6)][_0xf8942d(0x1cb)](),'selection':xe(_0x555f98)}};this[_0xf8942d(0x3f6)][_0xf8942d(0x346)](_0xef2357,this[_0xf8942d(0x3bd)]);},ut)),(this[_0x474a74(0x3bd)]=_0x3cafad,this[_0x474a74(0x3f6)]=_0x16ab8b,this['_injector']=_0x471105,this[_0x474a74(0x294)]=_0x577f10,this['_memberService']=_0x47298d,this[_0x474a74(0x26d)]=_0xb546e8,this[_0x474a74(0x2f7)]=_0x7222ba,this[_0x474a74(0x245)]=_0x2afbaa,this[_0x474a74(0x27f)]=_0x42b160);}get[_0x369919(0x2b0)](){const _0x22bee7=_0x369919;return this['_cursorInfo$'][_0x22bee7(0x23d)]();}get['roomMembers'](){const _0x13d242=_0x369919;return this[_0x13d242(0x345)][_0x13d242(0x23d)]();}[_0x369919(0x31d)](){const _0x136b92=_0x369919;super['dispose'](),this['_cursorInfo$'][_0x136b92(0x28f)](new Map()),this[_0x136b92(0x3d6)]['complete'](),this[_0x136b92(0x345)][_0x136b92(0x28f)]([]),this['_roomMembers$'][_0x136b92(0x2d2)]();}['init'](){const _0x18e837=_0x369919;this[_0x18e837(0x236)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x18e837(0x3a2)](S['takeUntil'](this[_0x18e837(0x2aa)]))[_0x18e837(0x296)](_0x581bf8=>{const _0x162021=_0x18e837;_0x581bf8===_[_0x162021(0x427)]['ONLINE']?this[_0x162021(0x2cb)]():this[_0x162021(0x42f)]();}),this[_0x18e837(0x3f6)][_0x18e837(0x38d)][_0x18e837(0x3a2)](S[_0x18e837(0x41c)](this['dispose$']))[_0x18e837(0x296)](_0x557db9=>{const _0x8a4cf9=_0x18e837,_0x4d1c0a=_0x557db9[_0x8a4cf9(0x218)];_0x4d1c0a===g[_0x8a4cf9(0x338)]['UPDATE_CURSOR']&&this[_0x8a4cf9(0x394)](_0x557db9),_0x4d1c0a===g[_0x8a4cf9(0x338)][_0x8a4cf9(0x232)]&&this[_0x8a4cf9(0x2e4)](_0x557db9);}),this[_0x18e837(0x239)](this['_commandService'][_0x18e837(0x26f)](_0x5530a6=>{const _0x2b6855=_0x18e837,_0x3f9cdf=_0x5530a6[_0x2b6855(0x297)];_0x3f9cdf!=null&&this[_0x2b6855(0x314)]&&_0x5530a6['id']===X[_0x2b6855(0x404)]['id']&&_0x3f9cdf['unitId']===this[_0x2b6855(0x3bd)]&&_0x3f9cdf[_0x2b6855(0x1cf)]===!0x1&&_0x3f9cdf[_0x2b6855(0x304)][_0x2b6855(0x3e2)]>0x0&&this['_updateLocalCursor'](_0x3f9cdf['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x18e837(0x3a2)](S['takeUntil'](this['dispose$']))['subscribe'](_0x4df9a4=>{const _0x50c216=_0x18e837;if((_0x4df9a4==null?void 0x0:_0x4df9a4['unitID'])!==this[_0x50c216(0x3bd)])return;const _0x38b8ea={'eventID':g[_0x50c216(0x338)]['UPDATE_CURSOR'],'data':_0x4df9a4};this['_onCursorUpdate'](_0x38b8ea);}),this[_0x18e837(0x239)](this[_0x18e837(0x27f)][_0x18e837(0x26f)](_0x3d6042=>{const _0x349b93=_0x18e837;if(_0x3d6042[_0x349b93(0x297)]==null)return;const _0x583953=_0x3d6042['params'];if(_0x3d6042['id']!==X[_0x349b93(0x1d5)]['id']||_0x583953[_0x349b93(0x367)]!==this[_0x349b93(0x3bd)])return;const _0x4c7449={'id':'doc.mutation.rich-text-editing','params':_0x583953},_0x18c137=this['cursorInfo'];for(const [_0x4882bf,_0x3b2291]of _0x18c137){const _0x1744af={'id':_0x349b93(0x24c),'params':{'unitId':this[_0x349b93(0x3bd)],'actions':null,'textRanges':_0x3b2291['ranges']}},_0x162d42=this[_0x349b93(0x2f7)][_0x349b93(0x2c4)](_0x4c7449,_0x1744af,!0x1);if(g[_0x349b93(0x30b)](_0x162d42))throw _0x162d42[_0x349b93(0x2ab)];_0x18c137[_0x349b93(0x2a3)](_0x4882bf,{..._0x3b2291,'ranges':_0x162d42['m2Prime']['params'][_0x349b93(0x1e0)]});}queueMicrotask(()=>{const _0x48a25f=_0x349b93;this[_0x48a25f(0x3d6)][_0x48a25f(0x28f)](_0x18c137);});})));}['_onCursorUpdate'](_0x35699a){const _0x3aba75=_0x369919;var _0xe58380,_0x1dadc3;const {memberID:_0x1bc27d,selection:_0x3c0613}=_0x35699a['data'],_0x19f414=rt(_0x3c0613),_0x5bc8c1=(_0x1dadc3=(_0xe58380=this[_0x3aba75(0x425)][_0x3aba75(0x2cf)](this[_0x3aba75(0x3bd)],_0x1bc27d))==null?void 0x0:_0xe58380[_0x3aba75(0x3e3)])!=null?_0x1dadc3:_0x3aba75(0x400),_0x2d7be2={'color':this[_0x3aba75(0x294)][_0x3aba75(0x1c8)](_0x1bc27d),'name':_0x5bc8c1,'ranges':_0x19f414},_0x46250f=this[_0x3aba75(0x2b0)];_0x46250f[_0x3aba75(0x2a3)](_0x1bc27d,_0x2d7be2),this[_0x3aba75(0x3d6)][_0x3aba75(0x28f)](_0x46250f);}[_0x369919(0x2e4)](_0x35d2c8){const _0x47445a=_0x369919,{memberID:_0x943c}=_0x35d2c8[_0x47445a(0x3b6)],_0x470c99=this['cursorInfo'];_0x470c99['delete'](_0x943c),this[_0x47445a(0x3d6)][_0x47445a(0x28f)](_0x470c99);}[_0x369919(0x2cb)](){const _0x2d7546=_0x369919;var _0x2aeede;if(this[_0x2d7546(0x314)]=!0x0,((_0x2aeede=this[_0x2d7546(0x245)][_0x2d7546(0x1c4)]())==null?void 0x0:_0x2aeede[_0x2d7546(0x355)]())!==this[_0x2d7546(0x3bd)])return;const _0x3a6c69=this['_injector'][_0x2d7546(0x364)](X[_0x2d7546(0x315)])[_0x2d7546(0x22e)]();Array[_0x2d7546(0x23e)](_0x3a6c69)&&_0x3a6c69[_0x2d7546(0x3e2)]>0x0&&this[_0x2d7546(0x3c2)](_0x3a6c69);}[_0x369919(0x42f)](){const _0x287244=_0x369919;this[_0x287244(0x314)]=!0x1;}};ve=ct([U(0x2,a['Inject'](a[_0x369919(0x2e5)])),U(0x3,a['Inject'](Ce)),U(0x4,a[_0x369919(0x420)](_[_0x369919(0x1f8)])),U(0x5,a[_0x369919(0x420)](be)),U(0x6,g[_0x369919(0x329)]),U(0x7,a[_0x369919(0x3ec)]),U(0x8,a[_0x369919(0x2e1)])],ve);var ht=Object[_0x369919(0x3b8)],_t=Object[_0x369919(0x1e7)],dt=(_0x3b65e2,_0x2b73b5,_0x1045c1,_0x2c505c)=>{const _0x5cd090=_0x369919;for(var _0x403fae=_0x2c505c>0x1?void 0x0:_0x2c505c?_t(_0x2b73b5,_0x1045c1):_0x2b73b5,_0x397a85=_0x3b65e2[_0x5cd090(0x3e2)]-0x1,_0x18ccc8;_0x397a85>=0x0;_0x397a85--)(_0x18ccc8=_0x3b65e2[_0x397a85])&&(_0x403fae=(_0x2c505c?_0x18ccc8(_0x2b73b5,_0x1045c1,_0x403fae):_0x18ccc8(_0x403fae))||_0x403fae);return _0x2c505c&&_0x403fae&&ht(_0x2b73b5,_0x1045c1,_0x403fae),_0x403fae;},A=(_0x3e7ad0,_0x3c19e0)=>(_0x2eca2f,_0x2f7604)=>_0x3c19e0(_0x2eca2f,_0x2f7604,_0x3e7ad0);const ft=0x12c,St=0x64,vt=()=>{let _0x9817ba=[],_0x126ed3=!0x1;return _0x357d26=>{_0x9817ba['push'](_0x357d26),_0x126ed3||(_0x126ed3=!0x0,setTimeout(()=>{_0x9817ba['forEach'](_0x83b1cb=>_0x83b1cb()),_0x9817ba=[],_0x126ed3=!0x1;}));};};let me=class extends a[_0x369919(0x2b7)]{constructor(_0x12ea95,_0x42f1e9,_0x34c17d,_0x1dae58,_0x1a856a,_0x53a8f1,_0x75950c,_0x524bbf){const _0x5b48ed=_0x369919;super(),h(this,_0x5b48ed(0x314),!0x1),h(this,_0x5b48ed(0x236),!0x1),h(this,'_cursorInfo$',new S['BehaviorSubject'](new Map())),h(this,'cursorInfo$',this[_0x5b48ed(0x3d6)]['asObservable']()),h(this,_0x5b48ed(0x345),new S['BehaviorSubject']([])),h(this,_0x5b48ed(0x3ae),this['_roomMembers$'][_0x5b48ed(0x3a2)](S[_0x5b48ed(0x3bc)](ft))),h(this,_0x5b48ed(0x3c2),a[_0x5b48ed(0x313)]((_0x2d40a5,_0xae6930)=>{const _0xdb410c=_0x5b48ed,_0x2033dd={'eventID':g[_0xdb410c(0x338)][_0xdb410c(0x214)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0xdb410c(0x1cb)](),'selection':Te[_0xdb410c(0x1e9)](_0x2d40a5,_0xae6930['range'])}};this[_0xdb410c(0x3f6)][_0xdb410c(0x346)](_0x2033dd,this[_0xdb410c(0x3bd)]);},St)),(this['unitID']=_0x12ea95,this['_session']=_0x42f1e9,this['_injector']=_0x34c17d,this['_colorAssignService']=_0x1dae58,this[_0x5b48ed(0x425)]=_0x1a856a,this[_0x5b48ed(0x245)]=_0x53a8f1,this[_0x5b48ed(0x27f)]=_0x75950c,this[_0x5b48ed(0x23f)]=_0x524bbf);}get[_0x369919(0x2b0)](){const _0x3eedd8=_0x369919;return this[_0x3eedd8(0x3d6)]['getValue']();}get[_0x369919(0x412)](){const _0x50df56=_0x369919;return this['_roomMembers$'][_0x50df56(0x23d)]();}['dispose'](){const _0x180a09=_0x369919;super[_0x180a09(0x31d)](),this['_cursorInfo$']['next'](new Map()),this[_0x180a09(0x3d6)][_0x180a09(0x2d2)](),this[_0x180a09(0x345)]['next']([]),this['_roomMembers$']['complete']();}[_0x369919(0x2d0)](){const _0xaa1645=_0x369919;this['_init']||(this['_init']=!0x0,this[_0xaa1645(0x3f6)][_0xaa1645(0x1d9)]['pipe'](S[_0xaa1645(0x41c)](this[_0xaa1645(0x2aa)]))['subscribe'](_0x461c38=>{const _0x1120bb=_0xaa1645;_0x461c38===_['SessionStatus']['ONLINE']?this[_0x1120bb(0x2cb)]():this[_0x1120bb(0x42f)]();}),this[_0xaa1645(0x3f6)][_0xaa1645(0x38d)][_0xaa1645(0x3a2)](S[_0xaa1645(0x41c)](this[_0xaa1645(0x2aa)]))[_0xaa1645(0x296)](_0x4c5287=>{const _0x34627f=_0xaa1645,_0x4decb0=_0x4c5287[_0x34627f(0x218)];_0x4decb0===g['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x4c5287),_0x4decb0===g[_0x34627f(0x338)]['USERS_LEAVE']&&this[_0x34627f(0x2e4)](_0x4c5287);}),this[_0xaa1645(0x32d)](),this[_0xaa1645(0x239)](this[_0xaa1645(0x27f)]['onCommandExecuted'](_0x453cdb=>{const _0x497c63=_0xaa1645;if(this[_0x497c63(0x314)]&&_0x453cdb['id']===I[_0x497c63(0x255)]['id']&&_0x453cdb[_0x497c63(0x297)][_0x497c63(0x367)]===this[_0x497c63(0x3bd)]){const _0x4cf6c2=_0x453cdb[_0x497c63(0x297)];this[_0x497c63(0x3c2)](_0x4cf6c2['subUnitId'],_0x4cf6c2[_0x497c63(0x24b)][0x0]);}})));}['_onCursorUpdate'](_0x205792){const _0x3d2da7=_0x369919;var _0x47175e,_0x273514;const {memberID:_0x1760fc,selection:_0x5c71c8}=_0x205792[_0x3d2da7(0x3b6)],{sheetName:_0x4434ab,range:_0x24b802}=Te[_0x3d2da7(0x39a)](_0x5c71c8),_0x3f3ad4={'name':(_0x273514=(_0x47175e=this[_0x3d2da7(0x425)]['getMember'](this[_0x3d2da7(0x3bd)],_0x1760fc))==null?void 0x0:_0x47175e[_0x3d2da7(0x3e3)])!=null?_0x273514:_0x3d2da7(0x400),'range':this[_0x3d2da7(0x253)](_0x4434ab,_0x24b802),'sheetID':_0x4434ab,'color':this[_0x3d2da7(0x294)][_0x3d2da7(0x1c8)](_0x1760fc),'selection':_0x5c71c8},_0x136868=this[_0x3d2da7(0x2b0)];_0x136868[_0x3d2da7(0x2a3)](_0x1760fc,_0x3f3ad4),this[_0x3d2da7(0x3d6)]['next'](_0x136868);}[_0x369919(0x2e4)](_0x5f56f9){const _0xca3729=_0x369919,{memberID:_0x270b9b}=_0x5f56f9[_0xca3729(0x3b6)],_0x23ab58=this['cursorInfo'];_0x23ab58[_0xca3729(0x428)](_0x270b9b),this[_0xca3729(0x3d6)]['next'](_0x23ab58);}[_0x369919(0x253)](_0x436bb7,_0x5365c1){const _0x45921a=_0x369919;var _0x190c06,_0x3515e5;const _0x1d0b98=(_0x3515e5=(_0x190c06=this[_0x45921a(0x245)][_0x45921a(0x1d0)](this['unitID']))==null?void 0x0:_0x190c06['getSheetBySheetId'](_0x436bb7))==null?void 0x0:_0x3515e5[_0x45921a(0x246)]();return(_0x1d0b98==null?void 0x0:_0x1d0b98[_0x45921a(0x3c3)](_0x2d4a46=>a[_0x45921a(0x2a5)]['contains'](_0x2d4a46,_0x5365c1)))||_0x5365c1;}[_0x369919(0x32d)](){const _0x30cc31=_0x369919,_0x4ec3a1=new a['DisposableCollection'](),_0x2b7549=vt(),_0x5d24a1=()=>{const _0x2f3cfe=_0x25b9;_0x4ec3a1[_0x2f3cfe(0x31d)]();const _0x1eda4e=(_0x204beb,_0x1fb795,_0x80d96d,_0x24d805)=>{const _0x41764f=_0x2f3cfe;let _0x30a401=[];switch(_0x204beb['id']){case I['EffectRefRangId'][_0x41764f(0x388)]:{_0x30a401=I[_0x41764f(0x376)](_0x204beb,_0x24d805);break;}case I[_0x41764f(0x2b6)][_0x41764f(0x3bf)]:{_0x30a401=I['handleDeleteRangeMoveUp'](_0x204beb,_0x24d805);break;}case I[_0x41764f(0x2b6)]['InsertColCommandId']:{_0x30a401=I[_0x41764f(0x29b)](_0x204beb,_0x24d805);break;}case I[_0x41764f(0x2b6)][_0x41764f(0x1f7)]:{_0x30a401=I['handleInsertRangeMoveDown'](_0x204beb,_0x24d805);break;}case I[_0x41764f(0x2b6)]['InsertRangeMoveRightCommandId']:{_0x30a401=I['handleInsertRangeMoveRight'](_0x204beb,_0x24d805);break;}case I[_0x41764f(0x2b6)][_0x41764f(0x20f)]:{_0x30a401=I[_0x41764f(0x211)](_0x204beb,_0x24d805);break;}case I[_0x41764f(0x2b6)][_0x41764f(0x3b4)]:{_0x30a401=I['handleMoveRange'](_0x204beb,_0x24d805);break;}case I[_0x41764f(0x2b6)]['RemoveColCommandId']:{_0x30a401=I[_0x41764f(0x2ec)](_0x204beb,_0x24d805);break;}case I[_0x41764f(0x2b6)][_0x41764f(0x336)]:{_0x30a401=I[_0x41764f(0x3f9)](_0x204beb,_0x24d805);break;}}const _0x31d802=I['runRefRangeMutations'](_0x30a401,_0x24d805),_0x1e749c=this['cursorInfo'][_0x41764f(0x364)](_0x1fb795);if(_0x1e749c&&_0x31d802){const _0x17c36e={..._0x1e749c,'range':_0x31d802};this[_0x41764f(0x2b0)][_0x41764f(0x2a3)](_0x1fb795,_0x17c36e),_0x2b7549(()=>{const _0x57693e=_0x41764f,_0x4b7a53=this[_0x57693e(0x23f)]['registerRefRange'](_0x31d802,_0x47508c=>(_0x4b7a53[_0x57693e(0x31d)](),_0x1eda4e(_0x47508c,_0x1fb795,_0x80d96d,_0x31d802)));_0x4ec3a1[_0x57693e(0x2fc)](_0x4b7a53);});}return{'redos':[],'undos':[]};};this[_0x2f3cfe(0x2b0)][_0x2f3cfe(0x34d)]((_0xb8c618,_0x464438)=>{const _0x1b73ea=_0x2f3cfe,{range:_0x53f3ee,sheetID:_0x18ecb4}=_0xb8c618,_0x1b9977=this[_0x1b73ea(0x23f)]['registerRefRange'](_0x53f3ee,_0x51d814=>(_0x1b9977[_0x1b73ea(0x31d)](),_0x1eda4e(_0x51d814,_0x464438,_0x18ecb4,_0x53f3ee)));_0x4ec3a1[_0x1b73ea(0x2fc)](_0x1b9977);});};this['disposeWithMe'](a[_0x30cc31(0x2e0)](this[_0x30cc31(0x3d6)][_0x30cc31(0x296)](()=>{_0x5d24a1();})));}['_toggleOnline'](){const _0x21cf9d=_0x369919;var _0x54b613,_0x40e80e;if(this[_0x21cf9d(0x314)]=!0x0,((_0x54b613=this['_univerInstanceService'][_0x21cf9d(0x1c4)]())==null?void 0x0:_0x54b613['getUnitId']())!==this['unitID'])return;const _0xd1c110=(_0x40e80e=this[_0x21cf9d(0x32f)][_0x21cf9d(0x364)](I[_0x21cf9d(0x3e5)])[_0x21cf9d(0x1d4)]())==null?void 0x0:_0x40e80e[0x0],_0x5d86c1=this[_0x21cf9d(0x245)][_0x21cf9d(0x29f)](a[_0x21cf9d(0x28a)][_0x21cf9d(0x20b)])[_0x21cf9d(0x303)]();_0xd1c110&&_0x5d86c1&&this[_0x21cf9d(0x3c2)](_0x5d86c1[_0x21cf9d(0x208)](),_0xd1c110);}[_0x369919(0x42f)](){this['_online']=!0x1;}};function _0x25b9(_0x42a7c0,_0x1ea42d){const _0x4f772f=_0x4f77();return _0x25b9=function(_0x25b95f,_0x17baa4){_0x25b95f=_0x25b95f-0x1c3;let _0x34d40d=_0x4f772f[_0x25b95f];return _0x34d40d;},_0x25b9(_0x42a7c0,_0x1ea42d);}me=dt([A(0x2,a['Inject'](a[_0x369919(0x2e5)])),A(0x3,a[_0x369919(0x420)](Ce)),A(0x4,a['Inject'](_[_0x369919(0x1f8)])),A(0x5,a[_0x369919(0x3ec)]),A(0x6,a[_0x369919(0x2e1)]),A(0x7,a[_0x369919(0x420)](I[_0x369919(0x385)]))],me);var mt=Object[_0x369919(0x3b8)],It=Object[_0x369919(0x1e7)],gt=(_0x2c2da3,_0x5738de,_0x4a2748,_0x1c6261)=>{const _0x1e014d=_0x369919;for(var _0x227e84=_0x1c6261>0x1?void 0x0:_0x1c6261?It(_0x5738de,_0x4a2748):_0x5738de,_0xbfc81b=_0x2c2da3[_0x1e014d(0x3e2)]-0x1,_0x3e7132;_0xbfc81b>=0x0;_0xbfc81b--)(_0x3e7132=_0x2c2da3[_0xbfc81b])&&(_0x227e84=(_0x1c6261?_0x3e7132(_0x5738de,_0x4a2748,_0x227e84):_0x3e7132(_0x227e84))||_0x227e84);return _0x1c6261&&_0x227e84&&mt(_0x5738de,_0x4a2748,_0x227e84),_0x227e84;},ne=(_0x426d40,_0x2023c4)=>(_0x578b0a,_0x136ca4)=>_0x2023c4(_0x578b0a,_0x136ca4,_0x426d40);let x=class extends a[_0x369919(0x2b7)]{constructor(_0x184de5,_0x4b9d3b,_0x3e7d95){const _0x59e205=_0x369919;super(),h(this,_0x59e205(0x341),new Map()),h(this,_0x59e205(0x42d),new S['Subject']()),(this[_0x59e205(0x245)]=_0x184de5,this[_0x59e205(0x32f)]=_0x4b9d3b,this[_0x59e205(0x375)]=_0x3e7d95,this[_0x59e205(0x236)]());}[_0x369919(0x31d)](){const _0x2f0534=_0x369919;super[_0x2f0534(0x31d)](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0x5d6343=>_0x5d6343[_0x2f0534(0x31d)]());}[_0x369919(0x206)](_0x3a0708){const _0xbffdc0=_0x369919;return this['_entities'][_0xbffdc0(0x1d2)](_0x3a0708)?this['_entities'][_0xbffdc0(0x364)](_0x3a0708)[_0xbffdc0(0x3d0)]:this[_0xbffdc0(0x42d)][_0xbffdc0(0x3a2)](S[_0xbffdc0(0x352)](_0x655922=>_0x655922[_0xbffdc0(0x3bd)]===_0x3a0708),S[_0xbffdc0(0x210)](_0x167ec3=>_0x167ec3['cursorInfo$']));}[_0x369919(0x236)](){const _0x4e84c5=_0x369919;this[_0x4e84c5(0x245)]['getTypeOfUnitAdded$'](a[_0x4e84c5(0x28a)]['UNIVER_SHEET'])[_0x4e84c5(0x3a2)](S['takeUntil'](this[_0x4e84c5(0x2aa)]))[_0x4e84c5(0x296)](async _0x10111c=>{const _0x28d524=_0x4e84c5,_0x3c98a7=_0x10111c[_0x28d524(0x355)](),_0x7d5ca5=await this[_0x28d524(0x327)](_0x3c98a7);this[_0x28d524(0x42d)]['next'](_0x7d5ca5),this['_entities'][_0x28d524(0x2a3)](_0x3c98a7,_0x7d5ca5);}),this[_0x4e84c5(0x245)][_0x4e84c5(0x433)](a[_0x4e84c5(0x28a)][_0x4e84c5(0x337)])[_0x4e84c5(0x3a2)](S[_0x4e84c5(0x41c)](this['dispose$']))[_0x4e84c5(0x3a2)](S[_0x4e84c5(0x352)](_0x45c3b1=>!_0x45c3b1[_0x4e84c5(0x355)]()[_0x4e84c5(0x40d)]('__')))[_0x4e84c5(0x296)](async _0x5a7154=>{const _0xb2c487=_0x4e84c5,_0x41f2a4=_0x5a7154[_0xb2c487(0x355)](),_0x23c631=await this[_0xb2c487(0x316)](_0x41f2a4);this[_0xb2c487(0x42d)]['next'](_0x23c631),this[_0xb2c487(0x341)][_0xb2c487(0x2a3)](_0x41f2a4,_0x23c631);}),S['merge'](this[_0x4e84c5(0x245)][_0x4e84c5(0x207)](a[_0x4e84c5(0x28a)][_0x4e84c5(0x337)]),this['_univerInstanceService'][_0x4e84c5(0x207)](a[_0x4e84c5(0x28a)]['UNIVER_SHEET']))[_0x4e84c5(0x3a2)](S[_0x4e84c5(0x41c)](this[_0x4e84c5(0x2aa)]))[_0x4e84c5(0x296)](_0xf2ed4f=>{const _0xaae2a4=_0x4e84c5,_0x36b1e9=_0xf2ed4f['getUnitId'](),_0x8e9880=this[_0xaae2a4(0x341)]['get'](_0x36b1e9);_0x8e9880&&(_0x8e9880['dispose'](),this[_0xaae2a4(0x341)][_0xaae2a4(0x428)](_0x36b1e9));});}async[_0x369919(0x327)](_0x5cbc96){const _0x5a8cf5=_0x369919,_0x4f36f1=await this[_0x5a8cf5(0x375)]['requireSession'](_0x5cbc96),_0x4e5481=this[_0x5a8cf5(0x32f)]['createInstance'](me,_0x5cbc96,_0x4f36f1);return _0x4e5481[_0x5a8cf5(0x2d0)](),_0x4e5481;}async['_startDocCollabCursor'](_0x52a384){const _0xf8882e=_0x369919,_0xcf400e=await this[_0xf8882e(0x375)][_0xf8882e(0x3b7)](_0x52a384),_0x2fafdf=this[_0xf8882e(0x32f)][_0xf8882e(0x42e)](ve,_0x52a384,_0xcf400e);return _0x2fafdf[_0xf8882e(0x2d0)](),_0x2fafdf;}};x=gt([ne(0x0,a[_0x369919(0x3ec)]),ne(0x1,a[_0x369919(0x420)](a[_0x369919(0x2e5)])),ne(0x2,a['Inject'](_[_0x369919(0x1ce)]))],x);const q=0x14,Pe=0xc8,ie=0x4,pt=0x5;function Ct(_0x150bf7,_0x30a640){const _0x4a9d00=_0x369919;let {radius:_0x34be03,width:_0x1e7317,height:_0x31d389}=_0x30a640;_0x34be03=_0x34be03!=null?_0x34be03:0x0,_0x1e7317=_0x1e7317!=null?_0x1e7317:0x1e,_0x31d389=_0x31d389!=null?_0x31d389:0x1e;let _0x29853b=0x0,_0x2528fa=0x0,_0xcde2e1=0x0;_0x29853b=_0x2528fa=_0xcde2e1=Math['min'](_0x34be03,_0x1e7317/0x2,_0x31d389/0x2),_0x150bf7[_0x4a9d00(0x33c)](),_0x150bf7[_0x4a9d00(0x42c)](_0x29853b,0x0),_0x150bf7['lineTo'](_0x1e7317-_0x2528fa,0x0),_0x150bf7['arc'](_0x1e7317-_0x2528fa,_0x2528fa,_0x2528fa,Math['PI']*0x3/0x2,0x0,!0x1),_0x150bf7['lineTo'](_0x1e7317,_0x31d389-_0xcde2e1),_0x150bf7[_0x4a9d00(0x318)](_0x1e7317-_0xcde2e1,_0x31d389-_0xcde2e1,_0xcde2e1,0x0,Math['PI']/0x2,!0x1),_0x150bf7[_0x4a9d00(0x254)](0x0,_0x31d389),_0x150bf7[_0x4a9d00(0x254)](0x0,_0x29853b),_0x150bf7[_0x4a9d00(0x318)](_0x29853b,_0x29853b,_0x29853b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x150bf7[_0x4a9d00(0x408)](),_0x30a640[_0x4a9d00(0x1f3)]&&(_0x150bf7[_0x4a9d00(0x2ae)](),_0x150bf7['fillStyle']=_0x30a640['fill'],_0x30a640[_0x4a9d00(0x1df)]===_0x4a9d00(0x2a1)?_0x150bf7[_0x4a9d00(0x1f3)](_0x4a9d00(0x2a1)):_0x150bf7[_0x4a9d00(0x1f3)](),_0x150bf7[_0x4a9d00(0x340)]());}class ee extends C[_0x369919(0x2d5)]{constructor(_0x3f17f2,_0x3038cc){const _0x28099e=_0x369919;super(_0x3f17f2,_0x3038cc),h(this,_0x28099e(0x36d)),h(this,'text'),(this[_0x28099e(0x36d)]=_0x3038cc==null?void 0x0:_0x3038cc[_0x28099e(0x36d)],this[_0x28099e(0x251)]=_0x3038cc==null?void 0x0:_0x3038cc['text']);}static['drawWith'](_0x1bfc68,_0x268c9b){const _0x36ca53=_0x369919,{text:_0x3ee2c4,color:_0x7d7f49}=_0x268c9b;_0x1bfc68[_0x36ca53(0x2ae)](),_0x1bfc68[_0x36ca53(0x2c0)]=_0x36ca53(0x301);const _0x31cb98=_0x1bfc68[_0x36ca53(0x33b)](_0x3ee2c4)[_0x36ca53(0x3d7)],_0x29d1d=Math[_0x36ca53(0x241)](_0x31cb98+0x2*ie,Pe);Ct(_0x1bfc68,{'height':q,'radius':0x4,'width':_0x29d1d,'fill':_0x7d7f49,'evented':!0x1}),_0x1bfc68['fillStyle']=_0x36ca53(0x380);const _0x5e5960=ie,_0x3b4e29=q-pt,_0x30b275=Pe-0x2*ie;if(_0x31cb98>_0x30b275){let _0x1a3302='',_0x4c4ae8=0x0;for(const _0x4e6922 of _0x3ee2c4){const _0x5c178c=_0x1bfc68['measureText'](_0x4e6922)[_0x36ca53(0x3d7)];if(_0x4c4ae8+_0x5c178c<=_0x30b275-_0x1bfc68[_0x36ca53(0x33b)](_0x36ca53(0x1f5))[_0x36ca53(0x3d7)])_0x1a3302+=_0x4e6922,_0x4c4ae8+=_0x5c178c;else{_0x1a3302+='...';break;}}_0x1bfc68[_0x36ca53(0x2a9)](_0x1a3302,_0x5e5960,_0x3b4e29);}else _0x1bfc68['fillText'](_0x3ee2c4,_0x5e5960,_0x3b4e29);_0x1bfc68[_0x36ca53(0x340)]();}[_0x369919(0x41e)](_0x22905f){ee['drawWith'](_0x22905f,this);}}const re=_0x369919(0x265),bt=_0x369919(0x22a),Et=_0x369919(0x3db),H=0x6,Rt=1.5,oe=0x4,Tt=1.5,Ot=_0x369919(0x285);class Me{constructor(_0x3598ae,_0x142900,_0x4e3c23,_0x511f73){const _0x4aafe1=_0x369919;h(this,_0x4aafe1(0x3a8),[]),h(this,_0x4aafe1(0x305),null),h(this,_0x4aafe1(0x2a8),null),h(this,_0x4aafe1(0x273),null),h(this,_0x4aafe1(0x231),null),h(this,_0x4aafe1(0x1f6),null),(this['_cursor']=_0x3598ae,this[_0x4aafe1(0x288)]=_0x142900,this[_0x4aafe1(0x243)]=_0x4e3c23,this['_document']=_0x511f73,this[_0x4aafe1(0x1ea)]());}set[_0x369919(0x2bf)](_0x27b8ab){const _0xf149a3=_0x369919;_0x27b8ab?(this[_0xf149a3(0x273)]&&this[_0xf149a3(0x273)][_0xf149a3(0x40c)](),this[_0xf149a3(0x2a8)]&&this[_0xf149a3(0x2a8)]['show']()):(this[_0xf149a3(0x273)]&&this[_0xf149a3(0x273)][_0xf149a3(0x342)](),this[_0xf149a3(0x2a8)]&&this['_textBubble']['hide']());}[_0x369919(0x31d)](){const _0x3a9eec=_0x369919;for(const _0x140b95 of this[_0x3a9eec(0x3a8)])_0x140b95[_0x3a9eec(0x31d)]();this['_textBubble']&&this['_textBubble'][_0x3a9eec(0x31d)](),this[_0x3a9eec(0x273)]&&this[_0x3a9eec(0x273)]['dispose'](),this['_anchor']&&this['_anchor'][_0x3a9eec(0x31d)](),this[_0x3a9eec(0x1f6)]&&this[_0x3a9eec(0x1f6)]();}[_0x369919(0x1ea)](){const _0x15b812=_0x369919;var _0x563781;const {_docSkeleton:_0x471dc1,_document:_0xf3e8db}=this,{color:_0x2744e9,name:_0x2606ab,ranges:_0x3c9e91}=this['_cursor'],_0x45ff37=_0xf3e8db[_0x15b812(0x21e)](),{docsLeft:_0x14f0df,docsTop:_0x4f80a5}=_0x45ff37,_0x15bf8c=new b[(_0x15b812(0x37b))](_0x45ff37,_0x471dc1);for(const {startOffset:_0x3f5037,endOffset:_0x2a6707,rangeType:_0x4e642e,segmentId:_0x3638e9,segmentPage:_0x3f9851,collapsed:_0x4f613c,isActive:_0x2ef0fb}of _0x3c9e91){const _0x57d948=_0x471dc1[_0x15b812(0x2e2)](_0x3f5037,!0x0,_0x3638e9,_0x3f9851);let _0x7f404=_0x471dc1[_0x15b812(0x2e2)](_0x2a6707,!0x0,_0x3638e9,_0x3f9851);if(_0x7f404==null&&(_0x7f404=_0x471dc1[_0x15b812(0x2e2)](_0x2a6707-0x1,!0x1,_0x3638e9,_0x3f9851)),_0x2ef0fb){const {contentBoxPointGroup:_0x2708b0}=_0x15bf8c[_0x15b812(0x258)](_0x7f404,_0x7f404);if(_0x2708b0[_0x15b812(0x3e2)]===0x0)continue;this['_drawAnchor'](_0x2744e9,_0x2708b0,_0x14f0df,_0x4f80a5,_0x2606ab),this['_eventUnsubscribe']=this[_0x15b812(0x3a7)]();}if(_0x57d948&&_0x7f404){if(_0x4e642e===a[_0x15b812(0x3a1)][_0x15b812(0x354)]){const _0x3d76dc=new b['NodePositionConvertToRectRange'](_0x45ff37,_0x471dc1),{pointGroup:_0x3724f6}=(_0x563781=_0x3d76dc[_0x15b812(0x258)](_0x57d948,_0x7f404))!=null?_0x563781:{};if(_0x3724f6==null||_0x3724f6[_0x15b812(0x3e2)]===0x0)continue;this[_0x15b812(0x381)](_0x2744e9,_0x3724f6,_0x14f0df,_0x4f80a5);}else{if(!_0x4f613c){const {borderBoxPointGroup:_0xf348d3}=_0x15bf8c['getRangePointData'](_0x57d948,_0x7f404);if(_0xf348d3[_0x15b812(0x3e2)]===0x0)continue;this[_0x15b812(0x35c)](_0x2744e9,_0xf348d3,_0x14f0df,_0x4f80a5);}}}}}['_drawAnchor'](_0x58bf5c,_0x216690,_0x1b5af7,_0xb78c37,_0x40a989){const _0x3b3bb0=_0x369919,_0x10c5d4=this[_0x3b3bb0(0x3fc)](_0x216690),{left:_0x1a7417,top:_0x252485,height:_0x4e83f6}=_0x10c5d4,_0x4d381c=this['_getScale'](),_0x43b561=Tt/_0x4d381c,_0x392232=new C[(_0x3b3bb0(0x350))](re+a['Tools'][_0x3b3bb0(0x2ed)](H),{'left':_0x1a7417+_0x1b5af7-_0x43b561,'top':_0x252485+_0xb78c37,'height':_0x4e83f6,'width':Rt,'fill':_0x58bf5c||C['getColor'](a[_0x3b3bb0(0x2c7)][_0x3b3bb0(0x24f)],0x0),'strokeWidth':_0x43b561,'stroke':Ot,'evented':!0x0});this[_0x3b3bb0(0x305)]=_0x392232,this[_0x3b3bb0(0x288)][_0x3b3bb0(0x382)](_0x392232,b[_0x3b3bb0(0x3e0)]);const _0x4e4683=new C['Rect'](re+a[_0x3b3bb0(0x238)][_0x3b3bb0(0x2ed)](H),{'left':_0x1a7417+_0x1b5af7-_0x43b561,'top':_0x252485+_0xb78c37-oe/0x2,'height':oe,'width':oe,'fill':_0x58bf5c||C[_0x3b3bb0(0x3e7)](a[_0x3b3bb0(0x2c7)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x58bf5c||C['getColor'](a[_0x3b3bb0(0x2c7)][_0x3b3bb0(0x24f)],0x0),'evented':!0x1});this[_0x3b3bb0(0x273)]=_0x4e4683,this[_0x3b3bb0(0x288)][_0x3b3bb0(0x382)](_0x4e4683,b[_0x3b3bb0(0x3e0)]);const _0x59e882=new ee(re+a[_0x3b3bb0(0x238)][_0x3b3bb0(0x2ed)](H),{'left':_0x1a7417+_0x1b5af7-_0x43b561,'top':_0x252485+_0xb78c37-q,'text':_0x40a989,'color':_0x58bf5c});this[_0x3b3bb0(0x2a8)]=_0x59e882,this[_0x3b3bb0(0x288)]['addObject'](_0x59e882,b[_0x3b3bb0(0x3e0)]),this['_hover']=!0x1;}['_handleHover'](){const _0x5928d7=_0x369919,_0x163ce2=this[_0x5928d7(0x305)]['onPointerEnter$'][_0x5928d7(0x2e9)](()=>{const _0x4a41d9=_0x5928d7;this[_0x4a41d9(0x2bf)]=!0x0;}),_0x473464=this[_0x5928d7(0x305)][_0x5928d7(0x2de)]['subscribeEvent'](()=>{const _0x26fde0=_0x5928d7;this[_0x26fde0(0x231)]&&clearTimeout(this[_0x26fde0(0x231)]),this['_hideTimer']=setTimeout(()=>{const _0x5f29d2=_0x26fde0;this[_0x5f29d2(0x2bf)]=!0x1;},0x7d0);});return()=>{const _0x31cfbf=_0x5928d7;_0x163ce2[_0x31cfbf(0x358)](),_0x473464[_0x31cfbf(0x358)]();};}['_drawTextRange'](_0xb8014a,_0x2326da,_0x26f7df,_0x5164c3){const _0x57ab35=_0x369919,_0x4f6f37=new a[(_0x57ab35(0x3a9))](_0xb8014a)['setAlpha'](0.2)[_0x57ab35(0x325)](),_0x122904=new C[(_0x57ab35(0x3dd))](bt+a[_0x57ab35(0x238)][_0x57ab35(0x2ed)](H),{'pointsGroup':_0x2326da,'fill':_0x4f6f37||C[_0x57ab35(0x3e7)](a[_0x57ab35(0x2c7)]['black'],0.2),'left':_0x26f7df,'top':_0x5164c3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x57ab35(0x3a8)][_0x57ab35(0x269)](_0x122904),this[_0x57ab35(0x288)][_0x57ab35(0x382)](_0x122904,b[_0x57ab35(0x3e0)]);}['_drawRectRange'](_0x5885b9,_0x336bfb,_0x574477,_0x2631c9){const _0x252b27=_0x369919,_0x261124=new a[(_0x252b27(0x3a9))](_0x5885b9)[_0x252b27(0x2dc)](0.2)[_0x252b27(0x325)](),_0x101b4f=new C[(_0x252b27(0x3dd))](Et+a[_0x252b27(0x238)][_0x252b27(0x2ed)](H),{'pointsGroup':_0x336bfb,'fill':_0x261124||C[_0x252b27(0x3e7)](a['COLORS']['black'],0.2),'left':_0x574477,'top':_0x2631c9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x252b27(0x269)](_0x101b4f),this[_0x252b27(0x288)][_0x252b27(0x382)](_0x101b4f,b[_0x252b27(0x3e0)]);}[_0x369919(0x3fc)](_0x307496){const _0x278495=_0x307496[0x0],_0x18d88e=_0x278495[0x0],_0x284787=_0x278495[0x2],{x:_0x4b9261,y:_0x2c3a67}=_0x18d88e,{x:_0x34abc5,y:_0x4312f1}=_0x284787;return{'left':_0x4b9261,'top':_0x2c3a67,'width':_0x34abc5-_0x4b9261,'height':_0x4312f1-_0x2c3a67};}[_0x369919(0x349)](){const _0x198b27=_0x369919,{scaleX:_0x2ae637,scaleY:_0x2358b8}=this[_0x198b27(0x288)][_0x198b27(0x256)]();return Math[_0x198b27(0x2d6)](_0x2ae637,_0x2358b8);}}var Dt=Object[_0x369919(0x3b8)],Pt=Object[_0x369919(0x1e7)],Mt=(_0x28b32e,_0x591388,_0x408b2e,_0x85adc6)=>{const _0x559d56=_0x369919;for(var _0x4f0e35=_0x85adc6>0x1?void 0x0:_0x85adc6?Pt(_0x591388,_0x408b2e):_0x591388,_0x10ff24=_0x28b32e[_0x559d56(0x3e2)]-0x1,_0x5e2807;_0x10ff24>=0x0;_0x10ff24--)(_0x5e2807=_0x28b32e[_0x10ff24])&&(_0x4f0e35=(_0x85adc6?_0x5e2807(_0x591388,_0x408b2e,_0x4f0e35):_0x5e2807(_0x4f0e35))||_0x4f0e35);return _0x85adc6&&_0x4f0e35&&Dt(_0x591388,_0x408b2e,_0x4f0e35),_0x4f0e35;},V=(_0x1c195d,_0x32e878)=>(_0x292370,_0x390fbe)=>_0x32e878(_0x292370,_0x390fbe,_0x1c195d);let Ie=class extends a[_0x369919(0x2b7)]{constructor(_0x5cf758,_0x39cb99,_0x4bcec5,_0x347aa4,_0x1aa72d){const _0x59dd2f=_0x369919;super(),h(this,_0x59dd2f(0x21c),[]),h(this,'_cursors',[]),(this['_context']=_0x5cf758,this[_0x59dd2f(0x3d9)]=_0x39cb99,this[_0x59dd2f(0x264)]=_0x4bcec5,this[_0x59dd2f(0x27f)]=_0x347aa4,this[_0x59dd2f(0x34a)]=_0x1aa72d,this[_0x59dd2f(0x236)]());}[_0x369919(0x236)](){const _0x3292f7=_0x369919,_0x3b0f44=this['_context'][_0x3292f7(0x367)],_0x55c6a2=this[_0x3292f7(0x3d9)];this['disposeWithMe'](S[_0x3292f7(0x219)]([this[_0x3292f7(0x264)][_0x3292f7(0x206)](_0x3b0f44),this[_0x3292f7(0x34a)][_0x3292f7(0x262)]])[_0x3292f7(0x3a2)]($[_0x3292f7(0x1c7)](([_0x524b23,_0x25ba9a])=>({'skeleton':_0x55c6a2[_0x3292f7(0x41a)](),'cursors':[..._0x524b23[_0x3292f7(0x2c5)]()][_0x3292f7(0x247)](_0x48f7c2=>({..._0x48f7c2,'color':_0x25ba9a[_0x48f7c2['color']]}))})))[_0x3292f7(0x296)](_0x1be551=>{const _0x1638dd=_0x3292f7;if(this[_0x1638dd(0x25c)](),_0x1be551){const {skeleton:_0x49e8ee,cursors:_0x252ba1}=_0x1be551;this[_0x1638dd(0x415)](_0x49e8ee,_0x252ba1);}})),this['_initResize'](),this[_0x3292f7(0x2ea)]();}[_0x369919(0x415)](_0x5637d0,_0x24cb3a){const _0x369827=_0x369919,{scene:_0x815832,mainComponent:_0x5cf46d}=this[_0x369827(0x3e6)],_0x3b1de7=_0x24cb3a['map'](_0x4d80f4=>new Me(_0x4d80f4,_0x815832,_0x5637d0,_0x5cf46d));this[_0x369827(0x21c)]=_0x3b1de7,this[_0x369827(0x3d1)]=_0x24cb3a;}[_0x369919(0x421)](){const _0x4a1af0=_0x369919;this[_0x4a1af0(0x25c)]();const {scene:_0x59415b,mainComponent:_0x141c8d}=this[_0x4a1af0(0x3e6)],_0x175e23=this[_0x4a1af0(0x3d9)]['getSkeleton'](),_0x1eb4f9=this[_0x4a1af0(0x3d1)]['map'](_0x1d8e54=>new Me(_0x1d8e54,_0x59415b,_0x175e23,_0x141c8d));this[_0x4a1af0(0x21c)]=_0x1eb4f9;}[_0x369919(0x25c)](){const _0x18754f=_0x369919;this[_0x18754f(0x21c)][_0x18754f(0x34d)](_0x2d6d0a=>_0x2d6d0a[_0x18754f(0x31d)]()),this[_0x18754f(0x21c)]=[];}[_0x369919(0x2ea)](){const _0x19c831=_0x369919,_0x49dcee=[b['SetDocZoomRatioOperation']['id']];this[_0x19c831(0x239)](this[_0x19c831(0x27f)][_0x19c831(0x26f)](_0x815271=>{const _0x57d5c6=_0x19c831;_0x49dcee[_0x57d5c6(0x234)](_0x815271['id'])&&_0x815271['params'][_0x57d5c6(0x367)]===this[_0x57d5c6(0x3e6)][_0x57d5c6(0x367)]&&this[_0x57d5c6(0x421)]();}));}[_0x369919(0x3fb)](){const _0x2f6760=_0x369919;this[_0x2f6760(0x239)](a[_0x2f6760(0x360)](this[_0x2f6760(0x3e6)][_0x2f6760(0x431)][_0x2f6760(0x299)])['pipe']($[_0x2f6760(0x352)](_0x47a4b2=>_0x47a4b2[_0x2f6760(0x267)]===C[_0x2f6760(0x339)][_0x2f6760(0x324)]),$[_0x2f6760(0x39b)](0x10))[_0x2f6760(0x296)](()=>{const _0x419c41=_0x2f6760;this[_0x419c41(0x421)]();}));}};Ie=Mt([V(0x1,a[_0x369919(0x420)](X['DocSkeletonManagerService'])),V(0x2,a[_0x369919(0x420)](x)),V(0x3,a[_0x369919(0x2e1)]),V(0x4,a['Inject'](a['ThemeService']))],Ie);const Ut=0x1,Nt=1.5;class je extends C[_0x369919(0x2d5)]{constructor(_0x5dc9b5,_0x205fcf){const _0x5ad9a3=_0x369919;super(_0x5dc9b5,_0x205fcf),h(this,_0x5ad9a3(0x29a)),h(this,_0x5ad9a3(0x260),!0x1),h(this,_0x5ad9a3(0x2da)),h(this,_0x5ad9a3(0x227),''),h(this,_0x5ad9a3(0x366),_0x5ad9a3(0x37a)),h(this,_0x5ad9a3(0x215)),(_0x205fcf&&this[_0x5ad9a3(0x413)](_0x205fcf),this[_0x5ad9a3(0x418)][_0x5ad9a3(0x2e9)](()=>this[_0x5ad9a3(0x413)]({'hovered':!0x0})),this['onPointerLeave$'][_0x5ad9a3(0x2e9)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x369919(0x413)](_0x5e12d2){const _0x556f5b=_0x369919;var _0x3e7a23,_0x3ff658,_0x5b00bf,_0x3ccc3f,_0x52cf01,_0x133164;this[_0x556f5b(0x29a)]=(_0x3e7a23=_0x5e12d2[_0x556f5b(0x36d)])!=null?_0x3e7a23:this[_0x556f5b(0x29a)],this[_0x556f5b(0x260)]=(_0x3ff658=_0x5e12d2['hovered'])!=null?_0x3ff658:this[_0x556f5b(0x260)],this['_range']=(_0x5b00bf=_0x5e12d2[_0x556f5b(0x335)])!=null?_0x5b00bf:this[_0x556f5b(0x2da)],this[_0x556f5b(0x227)]=(_0x3ccc3f=_0x5e12d2[_0x556f5b(0x3e3)])!=null?_0x3ccc3f:this[_0x556f5b(0x227)],this[_0x556f5b(0x366)]=(_0x52cf01=_0x5e12d2[_0x556f5b(0x252)])!=null?_0x52cf01:this[_0x556f5b(0x366)],this[_0x556f5b(0x215)]=(_0x133164=_0x5e12d2[_0x556f5b(0x429)])!=null?_0x133164:this[_0x556f5b(0x215)],this[_0x556f5b(0x261)]({'width':_0x5e12d2['width'],'height':_0x5e12d2[_0x556f5b(0x30d)]});}[_0x369919(0x1eb)](_0x3a68ef){const _0x15ef2b=_0x369919,{row:_0x3c0a2c,column:_0x3870d7}=_0x3a68ef;if(_0x3c0a2c>=this[_0x15ef2b(0x2da)][_0x15ef2b(0x1e5)]&&_0x3c0a2c<=this[_0x15ef2b(0x2da)][_0x15ef2b(0x437)]&&_0x3870d7>=this[_0x15ef2b(0x2da)][_0x15ef2b(0x28b)]&&_0x3870d7<=this[_0x15ef2b(0x2da)][_0x15ef2b(0x35d)]){this[_0x15ef2b(0x413)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x369919(0x40f)](_0x267ac9){return!0x1;}[_0x369919(0x41e)](_0x20edf0){const _0x35fbb0=_0x369919;C['Rect'][_0x35fbb0(0x217)](_0x20edf0,{'width':this['width'],'height':this[_0x35fbb0(0x30d)],'strokeWidth':Nt,'stroke':this[_0x35fbb0(0x29a)],'evented':!0x1,'fill':this[_0x35fbb0(0x215)]}),this['_hovered']&&(_0x20edf0['save'](),_0x20edf0[_0x35fbb0(0x3cc)](0x1,0x0,0x0,0x1,this[_0x35fbb0(0x3d7)],this['_labelPosition']==='bottom'?0x0:-0x14),ee[_0x35fbb0(0x217)](_0x20edf0,{'text':this[_0x35fbb0(0x227)],'color':this[_0x35fbb0(0x29a)]}),_0x20edf0[_0x35fbb0(0x340)]());}}function _0x4f77(){const _0x8ea82e=['OFFLINE','actions','_handleJoinEvent','on-line-single','clearInterval','isTransformMutationFailure','displayName','height','[CollaborationDataLoaderController]','rxjs/operators','rxjs','hasOwnProperty','BuiltInUIPart','debounce','_online','DocSelectionManagerService','_startDocCollabCursor','propertyIsEnumerable','arc','getUnitStatus$','registerComponent','IImageIoService','forwardRef','dispose','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_id','storage','collaboration.single-unit.warning','tag','DataLoaderService','resize','toRgbString','history','_startSheetCollabCursor','prototype','ITransformService','Warning','react','1040265yNHjur','_onRefRangeChange','_docTransformIMECacheService','_injector','unload','useCallback','univer-online-status-title','PERMISSION_DENIED','children','range','RemoveRowCommandId','UNIVER_DOC','CollaborationEvent','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_status$','measureText','beginPath','red300','imageSourceType','6lRjoac','restore','_entities','show','CollaborationStatusDisplay','_sheetSkeletonManagerService','_roomMembers$','send','href','all','_getScale','_themeService','@univerjs/engine-render','_registerRenderDependencies','forEach','LocaleService','runId','Rect','[RemoteUniscriptService]:\x20no\x20focused\x20unit','filter','_clearOtherTimers','RECT','getUnitId','APPLY_PERMISSION_DENIED','mergeOverrideWithDependencies','unsubscribe','setInterval','updateOfflineData','_localStorageService','_drawTextRange','endColumn','@univerjs/docs-ui','parse','fromEventSubject','jiqing500','FETCH_MISS','createIdentifier','get','replaceState','_labelPosition','unitId','658042rLkOxm','_logService','SUBMIT_CHANGESET_TIMEOUT','Error','defIds','color','OTHER_CLIENT_EDITING','Workbook','runOnServer','IBeforeCloseService','SNAPSHOT_HAS_BEEN_REMOVED','APPLY_REVISION_CONFILICT','location','_collabSessionService','handleDeleteRangeMoveLeft','addHandlerCallback','TEXT','transformStateCache','top','NodePositionConvertToCursor','_docStateChangeManagerService','symbol','mutations','_handleHeartbeatEvent','#FFF','_drawRectRange','addObject','SYNCED','indexOf','RefRangeService','1314056AjYLgC','IConfigService','DeleteRangeMoveLeftCommandId','_ensureSubject','ReactCurrentOwner','@univerjs/sheets','_collaborationUIEventService','event$','Plugin','_disabled','30Wrmdce','_beforeCloseService','MUTATION','AWAITING_WITH_PENDING','_onCursorUpdate','/run/','loadOfflineData','APPLY_REJECT','setItem','docStateChange$','deserializeRangeWithSheet','throttleTime','permission.content','VIEW_MAIN','RemoteUniscriptService','onStarting','ENSURE_SNAPSHOT_EXECUTION','DOC_RANGE_TYPE','pipe','_initStatusComponent','size','unit','useDependency','_handleHover','_shapes','ColorKit','@univerjs/sheets-ui','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_renderManagerService','_initStatusListener','roomMembers$','assign','_docTransformStateCacheService','defs','executeCommand','MessageType','MoveRangeCommandId','getCollabEntity$','data','requireSession','defineProperty','_unitOnClients','TOO_MANY_REQUESTS','@univerjs/engine-formula','debounceTime','unitID','pluginName','DeleteRangeMoveUpCommandId','transformRemoteChangeset','touchDependencies','_updateLocalCursor','find','_config','fromEvent','NO_OTHER_CLIENTS_EDITING','selection','off-line-single_clip0_910_343','_localCacheService','getLocalCacheKey','pushState','transform','getOwnPropertySymbols','Module','YUUMI_URL_COL_OUT_OF_RANGE','cursorInfo$','_cursors','urlChange$','addEventListener','LICENSE_MAX_UNITS_EXCEEDED','getUnhiddenWorksheets','_cursorInfo$','width','CHANGESET_REVISION_CONFILICT','_docSkeletonManagerService','3suLvDA','collab-rect-range-','CollaborationUIEventId','RegularPolygon','_revisionService','extend','TEXT_RANGE_LAYER_INDEX','clearTimeout','length','name','call','SheetsSelectionsService','_context','getColor','onPointerMove$','28WrDqRL','_updateURLWithCurrentState','_scheduleHeartbeat','IUniverInstanceService','@univerjs/drawing','current','exhaustSavingTask','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collaborationController','merge','currentSkeleton$','_transformPreviousActiveRange','IDocClipboardService','_session','UNRECOGNIZED','setParam','handleIRemoveRow','collaboration-client.offline-data-not-saved','_initResize','_getAnchorBounding','SetWorksheetActivateCommand','_urlService','collaboration-client-ui.config','Unknown\x20user','toString','getCellPositionByOffset','attrs','SetTextSelectionsOperation','univer-flex\x20univer-items-center','popstate','DocIMEInputManagerService','closePath','univer-online-status','unshift','_initEvent','hide','startsWith','replace','triggerDblclick','override','reconnect','roomMembers','setShapeProps','toStringTag','_updateCollabCursors','_initEntityListener','WebURLService','onPointerEnter$','INVALID_ARGUMENT','getSkeleton','none','takeUntil','onlineStatusTitle','_draw','SheetCollabCursorShape','Inject','_refreshCollabCursors','session.will-retry','mapTo','ILocalCacheService','_memberService','activeSheet$','SessionStatus','delete','backgroundColor','SOCKET_FAILED','gold400','moveTo','_entityInit$','createInstance','_toggleOffline','_messageService','engine','subunit','getTypeOfUnitAdded$','_configService','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','OTHER_CLIENTS_EDITING','endRow','makeDirty','getFocusedUnit','string','onLocalMutation','map','assignAColorForMemberID','_transformHistoryAndStateStack','url(#off-line-single_clip0_910_343)','getMemberID','_registerDependencies','0\x200\x2017\x2016','CollaborationSessionService','isEditing','getUniverSheetInstance','redoState','has','getActiveRange','getCurrentSelections','RichTextEditingMutation','then','DesktopCollaborationStatusDisplayController','PENDING','sessionStatus$','_transformUndoRedoStack','setUndoRedoMutationParamsCache','url(#$1','memberID','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','fillRule','textRanges','split','disposeUnit','_assignedColors','UniverCollaborationClientPlugin','startRow','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getOwnPropertyDescriptor','_imageIoService','serializeRangeWithSheet','_render','onMouseMove','currentColor','function','getSheetBySheetId','off-line-single','react.fragment','@univerjs-pro/collaboration','APPLY_DUPLICATED','fill','673194uwLXKZ','...','_eventUnsubscribe','InsertRangeMoveDownCommandId','MemberService','code','CLOSE_ROOM','path','translate(.97)','saveImage','YUUMI_SUBSCRIPTION_NOT_FOUND','_scheduleClearOtherTimer','sheetId','collab-client.tooltip.reconnect','onlineStatusIcon','_docTransformSelectionsService','univer-offline','_httpService','getCollabCursors$','getTypeOfUnitDisposed$','getSheetId','_updateSubUnitFromURLParams','CollaborationDataLoaderController','UNIVER_SHEET','verdancy600','Fragment','isTransformMutationsWithChangesetSuccess','InsertRowCommandId','switchMap','handleInsertRow','WebBrowserSingleActiveUnitService','UnitStatus','UPDATE_CURSOR','_backgroundColor','setTimeout','drawWith','eventID','combineLatest','removeParam','isActive','_cursorShapes','LOCAL_CACHE_INTERVAL_KEY','getOffsetConfig','apply','xlink:href','_lastPointer','m1Prime','_handleLeaveEvent','online','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','@univerjs/design','_name','DependentOn','JOIN_ROOM_FAILED','collab-text-range-','_docSyncEditingCollabCursorService','IURLService','_notificationService','getDocRanges','IRenderManagerService','CollaborationStatus','_hideTimer','USERS_LEAVE','registerRenderModule','includes','saveOfflineData','_init','syncEditingCollabCursor','Tools','disposeWithMe','jsxs','invokeId','sheetID','getValue','isArray','_refRangeService','uni.network.url-service','min','jsx','_docSkeleton','colorChannel1','_univerInstanceService','getMergeData','flatMap','CONFLICT','clipPath','CollaborationController','selections','doc.mutation.rich-text-editing','purple300','_heartbeatTimer','black','object','text','labelPosition','_getMergeRange','lineTo','SetSelectionsOperation','getAncestorScale','INotificationService','getRangePointData','0\x200\x2016\x2016','m2Prime','searchParams','_removeCollabCursors','AWAITING','from','FromArray','_hovered','transformByState','currentTheme$','IMessageService','_collabCursorController','collab-text-anchor-','_getSheetObject','type','_setupSubUnitSync','push','#fff','idSuffix','blue400','_syncEditingCollabCursorService','shareReplay','onCommandExecuted','DocStateChangeManagerService','_unitStatus','collabStatus.syncing','_anchorDot','NOT_COLLAB','_docClipboardService','getUndoRedoMutationParamsCache','BehaviorSubject','collabStatus.conflict','getParam','229040LeJzGm','univer-online-status-icon','exports','OnLineSingle','getCurrentRevOfUnit','_commandService','addObjects','deepClone','transformSelections','_initDependencies','UniverCollaborationClientUIPlugin','rgba(255,\x20255,\x20255,\x200.01)','loadUnit','url(#on-line-single_clip0_910_349)','_scene','HEADER_MENU','UniverInstanceType','startColumn','getVpScrollXYInfoByPosToVp','ThemeService','permission.title','next','round','connectInjector','debug','_uiPartsService','_colorAssignService','getCoordByCell','subscribe','params','undoState','onTransformChange$','_color','handleInsertCol','column','source','CommandType','getCurrentUnitForType','UNAUTHENTICATED','evenodd','116084LGdkCa','set','concat','Rectangle','LICENSE_EXPORT_SIZE_EXCEEDED','useObservable','_textBubble','fillText','dispose$','error','ALREADY_EXISTS','collabStatus.notCollab','save','UniverIcon','cursorInfo','M0\x200H16V16H0z','getStateCache','getRenderById','stringify','transformMutationsWithChangeset','EffectRefRangId','RxDisposable','YUUMI_UNABLE_LOAD_URL','_dataLoaderService','asObservable','for','substring','_colorIndex','session.collaboration-timeout','_hover','font','_saveTaskMap','distinctUntilChanged','getViewport','transformMutation','values','defaultProps','COLORS','_saveCache','use','ref','_toggleOnline','146005RrHJko','getRelativeToViewportCoord','collaboration.closeRoom','getMember','init','UNDEFINED','complete','_localeService','key','Shape','max','div','createElement','svg','_range','_selfUnitIDs','setAlpha','DocCollaborationEntity','onPointerLeave$','@univerjs/network','toDisposable','ICommandService','findNodePositionByCharIndex','1em','_onCursorDelete','Injector','on-line-single_clip0_910_349','_instanceService','number','subscribeEvent','_initCommandExecutedListener','_getSaveTimeout','handleIRemoveCol','generateRandomId','INTERNAL_ERROR','_handleEvent','icon','Disposable','random','body','IRemoteInstanceService','_cachedData','_removeClearOtherTimer','_transformService','post','COMPLETION_FINISHED','_send','saveTaskMap','add','with','APPLY_NON_SEQUENTIAL_REVISION','react.element','univer-online','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','SheetSkeletonManagerService','getActiveSheet','ranges','_anchor'];_0x4f77=function(){return _0x8ea82e;};return _0x4f77();}var wt=Object[_0x369919(0x3b8)],Lt=Object[_0x369919(0x1e7)],At=(_0x1fef5b,_0x2d3da0,_0x32d986,_0x34ef2)=>{const _0x591663=_0x369919;for(var _0x3a47bd=_0x34ef2>0x1?void 0x0:_0x34ef2?Lt(_0x2d3da0,_0x32d986):_0x2d3da0,_0xd38409=_0x1fef5b[_0x591663(0x3e2)]-0x1,_0x5e13bb;_0xd38409>=0x0;_0xd38409--)(_0x5e13bb=_0x1fef5b[_0xd38409])&&(_0x3a47bd=(_0x34ef2?_0x5e13bb(_0x2d3da0,_0x32d986,_0x3a47bd):_0x5e13bb(_0x3a47bd))||_0x3a47bd);return _0x34ef2&&_0x3a47bd&&wt(_0x2d3da0,_0x32d986,_0x3a47bd),_0x3a47bd;},ae=(_0x381a1f,_0x3a6937)=>(_0x3b4749,_0x486aa1)=>_0x3a6937(_0x3b4749,_0x486aa1,_0x381a1f);const yt=0x1389;let ge=class extends a[_0x369919(0x2b7)]{constructor(_0x112e0e,_0x297edb,_0x21e4c6,_0x48d9f2){const _0x1d4e67=_0x369919;super(),h(this,'_cursors',new Set()),h(this,_0x1d4e67(0x221),null),(this[_0x1d4e67(0x3e6)]=_0x112e0e,this[_0x1d4e67(0x344)]=_0x297edb,this['_collabCursorController']=_0x21e4c6,this[_0x1d4e67(0x34a)]=_0x48d9f2,this[_0x1d4e67(0x236)]());}[_0x369919(0x236)](){const _0x431c56=_0x369919;this[_0x431c56(0x344)][_0x431c56(0x3f3)]['pipe']($[_0x431c56(0x41c)](this[_0x431c56(0x2aa)]),$[_0x431c56(0x210)](_0x5ac1ea=>{const _0x17775c=_0x431c56;if(_0x5ac1ea){const _0x2ae53c=_0x5ac1ea[_0x17775c(0x200)];return S[_0x17775c(0x219)](this[_0x17775c(0x264)][_0x17775c(0x206)](this['_context'][_0x17775c(0x367)]),this[_0x17775c(0x34a)][_0x17775c(0x262)])['pipe']($[_0x17775c(0x1c7)](([_0x4452fe,_0x2529cc])=>{const _0x1a2b19=new Map();return _0x4452fe['forEach']((_0x322c31,_0x103ee8)=>{const _0x4d5a60=_0x25b9;if(_0x322c31[_0x4d5a60(0x23c)]===_0x2ae53c){const _0xf3a304={..._0x322c31};_0xf3a304[_0x4d5a60(0x36d)]=_0x2529cc[_0x322c31[_0x4d5a60(0x36d)]],_0x1a2b19[_0x4d5a60(0x2a3)](_0x103ee8,_0xf3a304);}}),{'skeleton':_0x5ac1ea,'cursors':_0x1a2b19};}));}return S['of']({'skeleton':null,'cursors':new Map()});}))[_0x431c56(0x296)](({skeleton:_0x4f0703,cursors:_0x521ad8})=>{const _0x51c870=_0x431c56;this[_0x51c870(0x25c)](),_0x4f0703&&this[_0x51c870(0x415)](_0x4f0703,_0x521ad8);}),this[_0x431c56(0x344)]['currentSkeleton$'][_0x431c56(0x296)](_0x1e2787=>{const _0x4f8996=_0x431c56;if(_0x1e2787==null)return;const {skeleton:_0x2ea195}=_0x1e2787,{scene:_0x10b2b7}=this[_0x4f8996(0x3e6)];_0x10b2b7[_0x4f8996(0x3e8)][_0x4f8996(0x2e9)](a[_0x4f8996(0x313)](_0x42448f=>{const _0x136b89=_0x4f8996;var _0x5dda3b,_0x117a6b;const {offsetX:_0x31822b,offsetY:_0x14a9ee}=_0x42448f,{x:_0x4e87e3,y:_0x540b72}=_0x10b2b7[_0x136b89(0x2cd)](C['Vector2']['FromArray']([_0x31822b,_0x14a9ee])),{scaleX:_0x46f38b,scaleY:_0x346978}=_0x10b2b7['getAncestorScale'](),_0x87135c=_0x10b2b7[_0x136b89(0x2c3)](C['SHEET_VIEWPORT_KEY'][_0x136b89(0x39d)]),_0x2a7ce5=_0x10b2b7[_0x136b89(0x28c)](C['Vector2'][_0x136b89(0x25f)]([_0x4e87e3,_0x540b72]),_0x87135c),_0x237008=_0x2ea195[_0x136b89(0x402)](_0x31822b,_0x14a9ee,_0x46f38b,_0x346978,_0x2a7ce5);((_0x5dda3b=this[_0x136b89(0x221)])==null?void 0x0:_0x5dda3b[_0x136b89(0x29c)])===_0x237008[_0x136b89(0x29c)]&&((_0x117a6b=this[_0x136b89(0x221)])==null?void 0x0:_0x117a6b['row'])===_0x237008['row']||this[_0x136b89(0x3d1)][_0x136b89(0x34d)](_0x1f9d83=>{const _0x3d1390=_0x136b89;_0x1f9d83[_0x3d1390(0x1eb)](_0x237008);});},0x64));});}['_updateCollabCursors'](_0x307b6d,_0x5491b0){const _0x5be27f=_0x369919;var _0x5d4900;const _0x29bef2=(_0x5d4900=this[_0x5be27f(0x344)]['getCurrent']())==null?void 0x0:_0x5d4900['skeleton'];if(!_0x29bef2)return;const _0xffe16a=this[_0x5be27f(0x266)]();if(!_0xffe16a)return;this['_cursors'][_0x5be27f(0x34d)](_0x37f280=>{const _0x1a50fe=_0x5be27f;_0x37f280[_0x1a50fe(0x1c3)]();});const {scene:_0x4d6788}=_0xffe16a,_0x3f86ea=$t(Array['from'](_0x5491b0[_0x5be27f(0x2c5)]()))[_0x5be27f(0x1c7)](_0x1db4ad=>{const _0x4fd1e1=_0x5be27f,{color:_0x3f7f92,range:_0x40e00f,name:_0x3fd687,selection:_0x369d0a,sheetID:_0x3b56ec}=_0x1db4ad,{startColumn:_0x59e99c,startRow:_0x342e2a,endColumn:_0x25fba2,endRow:_0x4178ea}=_0x40e00f,_0x16a3dd=k[_0x4fd1e1(0x295)](_0x342e2a,_0x59e99c,_0x4d6788,_0x29bef2),_0x17b222=k[_0x4fd1e1(0x295)](_0x4178ea,_0x25fba2,_0x4d6788,_0x29bef2),{columnHeaderHeightAndMarginTop:_0x3d6602}=_0x29bef2,{startX:_0x2c1029,startY:_0x530d54}=_0x16a3dd,{endX:_0x574812,endY:_0x18dcdb}=_0x17b222,_0x4b5955=_0x574812-_0x2c1029,_0x294c38=_0x18dcdb-_0x530d54,_0x4360b6={'labelPosition':_0x530d54-_0x3d6602>=q?_0x4fd1e1(0x37a):'bottom','sheetID':_0x3b56ec,'range':_0x40e00f,'color':_0x3f7f92,'name':_0x3fd687,'selection':_0x369d0a,'left':_0x2c1029,'top':_0x530d54,'width':_0x4b5955,'height':_0x294c38,'evented':!0x1,'zIndex':yt};return new je(_0x3fd687,_0x4360b6);});_0x4d6788[_0x5be27f(0x280)](_0x3f86ea,Ut),this[_0x5be27f(0x3d1)]=new Set(_0x3f86ea);}[_0x369919(0x25c)](){const _0x177300=_0x369919;var _0x2d670b;(_0x2d670b=this['_cursors'])==null||_0x2d670b['forEach'](_0x354ec2=>_0x354ec2[_0x177300(0x31d)]());}[_0x369919(0x266)](){const _0x1c91ac=_0x369919;return k['getSheetObject'](this[_0x1c91ac(0x3e6)][_0x1c91ac(0x3a5)],this[_0x1c91ac(0x3e6)]);}};ge=At([ae(0x1,a[_0x369919(0x420)](k[_0x369919(0x302)])),ae(0x2,a[_0x369919(0x420)](x)),ae(0x3,a[_0x369919(0x420)](a[_0x369919(0x28d)]))],ge);function $t(_0x407cb3){const _0x20a01c=_0x369919,_0xbedacb=new Map();return _0x407cb3['forEach'](_0x15021f=>{const _0xe7f6dd=_0x25b9;if(_0xbedacb['has'](_0x15021f[_0xe7f6dd(0x3c7)])){const _0x23d4d5=_0xbedacb[_0xe7f6dd(0x364)](_0x15021f[_0xe7f6dd(0x3c7)]);_0x23d4d5[_0xe7f6dd(0x3e3)]+=',\x20'+_0x15021f[_0xe7f6dd(0x3e3)];}else _0xbedacb[_0xe7f6dd(0x2a3)](_0x15021f[_0xe7f6dd(0x3c7)],_0x15021f);}),Array['from'](_0xbedacb[_0x20a01c(0x2c5)]());}var ce={'exports':{}},W={},Ue;function xt(){const _0x15ef95=_0x369919;if(Ue)return W;Ue=0x1;var _0x4d1a59=O,_0x44074f=Symbol[_0x15ef95(0x2bb)](_0x15ef95(0x2ff)),_0x1e2c92=Symbol[_0x15ef95(0x2bb)](_0x15ef95(0x1f0)),_0x1db284=Object[_0x15ef95(0x328)][_0x15ef95(0x311)],_0xf7350f=_0x4d1a59[_0x15ef95(0x1de)][_0x15ef95(0x38a)],_0x2dfd3d={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x119693(_0x1016d5,_0xac103d,_0x14b31a){const _0x502429=_0x15ef95;var _0x546d31,_0x2fcfcc={},_0x2fc6c8=null,_0x1986e9=null;_0x14b31a!==void 0x0&&(_0x2fc6c8=''+_0x14b31a),_0xac103d['key']!==void 0x0&&(_0x2fc6c8=''+_0xac103d[_0x502429(0x2d4)]),_0xac103d[_0x502429(0x2ca)]!==void 0x0&&(_0x1986e9=_0xac103d['ref']);for(_0x546d31 in _0xac103d)_0x1db284[_0x502429(0x3e4)](_0xac103d,_0x546d31)&&!_0x2dfd3d[_0x502429(0x311)](_0x546d31)&&(_0x2fcfcc[_0x546d31]=_0xac103d[_0x546d31]);if(_0x1016d5&&_0x1016d5[_0x502429(0x2c6)]){for(_0x546d31 in(_0xac103d=_0x1016d5[_0x502429(0x2c6)],_0xac103d))_0x2fcfcc[_0x546d31]===void 0x0&&(_0x2fcfcc[_0x546d31]=_0xac103d[_0x546d31]);}return{'$$typeof':_0x44074f,'type':_0x1016d5,'key':_0x2fc6c8,'ref':_0x1986e9,'props':_0x2fcfcc,'_owner':_0xf7350f[_0x502429(0x3ee)]};}return W[_0x15ef95(0x20d)]=_0x1e2c92,W[_0x15ef95(0x242)]=_0x119693,W[_0x15ef95(0x23a)]=_0x119693,W;}var Ne;function jt(){const _0x5083aa=_0x369919;return Ne||(Ne=0x1,ce[_0x5083aa(0x27c)]=xt()),ce['exports'];}var N=jt(),E=function(){const _0x24b144=_0x369919;return E=Object[_0x24b144(0x3af)]||function(_0x5e452e){const _0x3e6fb6=_0x24b144;for(var _0x267fbb,_0xa63f90=0x1,_0x11e956=arguments[_0x3e6fb6(0x3e2)];_0xa63f90<_0x11e956;_0xa63f90++){_0x267fbb=arguments[_0xa63f90];for(var _0xfa2e71 in _0x267fbb)Object[_0x3e6fb6(0x328)][_0x3e6fb6(0x311)][_0x3e6fb6(0x3e4)](_0x267fbb,_0xfa2e71)&&(_0x5e452e[_0xfa2e71]=_0x267fbb[_0xfa2e71]);}return _0x5e452e;},E[_0x24b144(0x21f)](this,arguments);},Bt=function(_0x3bf0dc,_0x533ec2){const _0x5e5ca0=_0x369919;var _0xfff504={};for(var _0x59e704 in _0x3bf0dc)Object[_0x5e5ca0(0x328)][_0x5e5ca0(0x311)][_0x5e5ca0(0x3e4)](_0x3bf0dc,_0x59e704)&&_0x533ec2[_0x5e5ca0(0x384)](_0x59e704)<0x0&&(_0xfff504[_0x59e704]=_0x3bf0dc[_0x59e704]);if(_0x3bf0dc!=null&&typeof Object[_0x5e5ca0(0x3cd)]==_0x5e5ca0(0x1ed)){for(var _0x159bae=0x0,_0x59e704=Object[_0x5e5ca0(0x3cd)](_0x3bf0dc);_0x159bae<_0x59e704[_0x5e5ca0(0x3e2)];_0x159bae++)_0x533ec2[_0x5e5ca0(0x384)](_0x59e704[_0x159bae])<0x0&&Object[_0x5e5ca0(0x328)][_0x5e5ca0(0x317)][_0x5e5ca0(0x3e4)](_0x3bf0dc,_0x59e704[_0x159bae])&&(_0xfff504[_0x59e704[_0x159bae]]=_0x3bf0dc[_0x59e704[_0x159bae]]);}return _0xfff504;},Ee=O[_0x369919(0x31c)](function(_0x46ddad,_0x574fa2){const _0x272733=_0x369919;var _0x5afc8f=_0x46ddad[_0x272733(0x2f0)],_0x17dda3=_0x46ddad['id'],_0x5ecc63=_0x46ddad['className'],_0x2dc5f1=_0x46ddad[_0x272733(0x3df)],_0x2f26c5=Bt(_0x46ddad,[_0x272733(0x2f0),'id','className','extend']),_0x24d631='univerjs-icon\x20univerjs-icon-'[_0x272733(0x2a4)](_0x17dda3,'\x20')[_0x272733(0x2a4)](_0x5ecc63||'')['trim'](),_0x54a545=O['useRef']('_'['concat'](Ft()));return Be(_0x5afc8f,''[_0x272733(0x2a4)](_0x17dda3),{'defIds':_0x5afc8f[_0x272733(0x36c)],'idSuffix':_0x54a545[_0x272733(0x3ee)]},E({'ref':_0x574fa2,'className':_0x24d631},_0x2f26c5),_0x2dc5f1);});function Be(_0x344e10,_0x2ae713,_0x457569,_0x4b10bc,_0x5b24a4){const _0x4889da=_0x369919;return O[_0x4889da(0x2d8)](_0x344e10[_0x4889da(0x322)],E(E({'key':_0x2ae713},Ht(_0x344e10,_0x457569,_0x5b24a4)),_0x4b10bc),(Wt(_0x344e10,_0x457569)[_0x4889da(0x334)]||[])[_0x4889da(0x1c7)](function(_0x5377d1,_0x261340){const _0x2c9684=_0x4889da;return Be(_0x5377d1,''[_0x2c9684(0x2a4)](_0x2ae713,'-')[_0x2c9684(0x2a4)](_0x344e10[_0x2c9684(0x322)],'-')[_0x2c9684(0x2a4)](_0x261340),_0x457569,void 0x0,_0x5b24a4);}));}function Ht(_0x93ec58,_0x510c1c,_0x6a7380){const _0x3cc51d=_0x369919;var _0x55e093=E({},_0x93ec58['attrs']);_0x6a7380!=null&&_0x6a7380[_0x3cc51d(0x244)]&&_0x55e093[_0x3cc51d(0x1f3)]===_0x3cc51d(0x244)&&(_0x55e093[_0x3cc51d(0x1f3)]=_0x6a7380[_0x3cc51d(0x244)]);var _0xc4a409=_0x510c1c['defIds'];return!_0xc4a409||_0xc4a409[_0x3cc51d(0x3e2)]===0x0||(_0x93ec58['tag']===_0x3cc51d(0x2c9)&&_0x55e093[_0x3cc51d(0x220)]&&(_0x55e093['xlink:href']=_0x55e093[_0x3cc51d(0x220)]+_0x510c1c[_0x3cc51d(0x26b)]),Object['entries'](_0x55e093)[_0x3cc51d(0x34d)](function(_0xf3d77c){const _0x48e435=_0x3cc51d;var _0x153cee=_0xf3d77c[0x0],_0x4d0f32=_0xf3d77c[0x1];typeof _0x4d0f32==_0x48e435(0x1c5)&&(_0x55e093[_0x153cee]=_0x4d0f32[_0x48e435(0x40e)](/url\(#(.*)\)/,_0x48e435(0x1dc)[_0x48e435(0x2a4)](_0x510c1c[_0x48e435(0x26b)],')')));})),_0x55e093;}function Wt(_0x4decc2,_0x4e7a76){const _0x109ab2=_0x369919;var _0x4be950,_0x8f18a0=_0x4e7a76[_0x109ab2(0x36c)];return!_0x8f18a0||_0x8f18a0[_0x109ab2(0x3e2)]===0x0?_0x4decc2:_0x4decc2[_0x109ab2(0x322)]===_0x109ab2(0x3b1)&&(!((_0x4be950=_0x4decc2[_0x109ab2(0x334)])===null||_0x4be950===void 0x0)&&_0x4be950[_0x109ab2(0x3e2)])?E(E({},_0x4decc2),{'children':_0x4decc2[_0x109ab2(0x334)]['map'](function(_0x4886e1){const _0x5758cd=_0x109ab2;return typeof _0x4886e1[_0x5758cd(0x403)]['id']==_0x5758cd(0x1c5)&&_0x8f18a0&&_0x8f18a0[_0x5758cd(0x384)](_0x4886e1[_0x5758cd(0x403)]['id'])>-0x1?E(E({},_0x4886e1),{'attrs':E(E({},_0x4886e1[_0x5758cd(0x403)]),{'id':_0x4886e1[_0x5758cd(0x403)]['id']+_0x4e7a76[_0x5758cd(0x26b)]})}):_0x4886e1;})}):_0x4decc2;}function Ft(){const _0x48a069=_0x369919;return Math[_0x48a069(0x2f2)]()['toString'](0x24)[_0x48a069(0x2bc)](0x2,0x8);}Ee[_0x369919(0x30c)]=_0x369919(0x2af);var Yt={'tag':_0x369919(0x2d9),'attrs':{'fill':_0x369919(0x41b),'viewBox':_0x369919(0x259),'width':_0x369919(0x2e3),'height':_0x369919(0x2e3)},'children':[{'tag':'g','attrs':{'clipPath':_0x369919(0x1ca)},'children':[{'tag':_0x369919(0x1fb),'attrs':{'stroke':_0x369919(0x1ec),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x369919(0x290),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x369919(0x3b1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x369919(0x3c8)},'children':[{'tag':'path','attrs':{'fill':_0x369919(0x26a),'d':_0x369919(0x2b1)}}]}]}],'defIds':[_0x369919(0x3c8)]},He=O['forwardRef'](function(_0x46b55e,_0x2b9b5f){const _0x58a5ee=_0x369919;return O[_0x58a5ee(0x2d8)](Ee,Object[_0x58a5ee(0x3af)]({},_0x46b55e,{'id':_0x58a5ee(0x1ef),'ref':_0x2b9b5f,'icon':Yt}));});He[_0x369919(0x30c)]='OffLineSingle';var Xt={'tag':_0x369919(0x2d9),'attrs':{'fill':_0x369919(0x41b),'viewBox':_0x369919(0x1cd),'width':_0x369919(0x2e3),'height':_0x369919(0x2e3)},'children':[{'tag':'g','attrs':{'clipPath':_0x369919(0x287)},'children':[{'tag':_0x369919(0x1fb),'attrs':{'stroke':'currentColor','d':_0x369919(0x435),'strokeLinecap':_0x369919(0x290),'strokeLinejoin':_0x369919(0x290),'strokeWidth':1.2}}]},{'tag':_0x369919(0x3b1),'attrs':{},'children':[{'tag':_0x369919(0x249),'attrs':{'id':_0x369919(0x2e6)},'children':[{'tag':'path','attrs':{'fill':_0x369919(0x26a),'d':_0x369919(0x2b1),'transform':_0x369919(0x1fc)}}]}]}],'defIds':[_0x369919(0x2e6)]},We=O[_0x369919(0x31c)](function(_0x7f049f,_0x53a853){const _0x2c1596=_0x369919;return O['createElement'](Ee,Object[_0x2c1596(0x3af)]({},_0x7f049f,{'id':_0x2c1596(0x309),'ref':_0x53a853,'icon':Xt}));});We[_0x369919(0x30c)]=_0x369919(0x27d);function Fe(_0x201aa9){const _0x2656c5=_0x369919;var _0x54f578,_0x431bb8,_0x1a524a='';if(typeof _0x201aa9==_0x2656c5(0x1c5)||typeof _0x201aa9==_0x2656c5(0x2e8))_0x1a524a+=_0x201aa9;else{if(typeof _0x201aa9==_0x2656c5(0x250)){if(Array['isArray'](_0x201aa9)){var _0x1a3da2=_0x201aa9['length'];for(_0x54f578=0x0;_0x54f578<_0x1a3da2;_0x54f578++)_0x201aa9[_0x54f578]&&(_0x431bb8=Fe(_0x201aa9[_0x54f578]))&&(_0x1a524a&&(_0x1a524a+='\x20'),_0x1a524a+=_0x431bb8);}else{for(_0x431bb8 in _0x201aa9)_0x201aa9[_0x431bb8]&&(_0x1a524a&&(_0x1a524a+='\x20'),_0x1a524a+=_0x431bb8);}}}return _0x1a524a;}function we(){const _0x3e2b7b=_0x369919;for(var _0xd35bfb,_0x55f674,_0x3963a6=0x0,_0x2bc79e='',_0x3d0df3=arguments[_0x3e2b7b(0x3e2)];_0x3963a6<_0x3d0df3;_0x3963a6++)(_0xd35bfb=arguments[_0x3963a6])&&(_0x55f674=Fe(_0xd35bfb))&&(_0x2bc79e&&(_0x2bc79e+='\x20'),_0x2bc79e+=_0x55f674);return _0x2bc79e;}const Vt=_0x369919(0x27b),Gt=_0x369919(0x332),kt=_0x369919(0x409),qt=_0x369919(0x300),Kt=_0x369919(0x204),F={'onlineStatusIcon':Vt,'onlineStatusTitle':Gt,'onlineStatus':kt,'online':qt,'offline':Kt};function zt(_0x271f97){const _0x3ae2bb=_0x369919;switch(_0x271f97){case _[_0x3ae2bb(0x230)][_0x3ae2bb(0x306)]:return'collabStatus.offline';case _['CollaborationStatus']['CONFLICT']:return _0x3ae2bb(0x278);case _[_0x3ae2bb(0x230)][_0x3ae2bb(0x362)]:return'collabStatus.fetchMiss';case _[_0x3ae2bb(0x230)][_0x3ae2bb(0x274)]:return _0x3ae2bb(0x2ad);case _[_0x3ae2bb(0x230)][_0x3ae2bb(0x25d)]:case _[_0x3ae2bb(0x230)][_0x3ae2bb(0x393)]:return _0x3ae2bb(0x272);case _[_0x3ae2bb(0x230)][_0x3ae2bb(0x383)]:case _[_0x3ae2bb(0x230)][_0x3ae2bb(0x1d8)]:return'collabStatus.synced';}}function Ye(_0x5c38ff){const _0x16cfbd=_0x369919,{status$:_0x12264f}=_0x5c38ff,_0x59494e=w[_0x16cfbd(0x2a7)](_0x12264f,_[_0x16cfbd(0x230)][_0x16cfbd(0x274)]),_0xee48b1=a[_0x16cfbd(0x3a6)](a['LocaleService']),_0x24d0df=a[_0x16cfbd(0x3a6)](_['CollaborationSessionService']),_0x5344bb=_0x59494e!==_[_0x16cfbd(0x230)]['OFFLINE'],_0x3a83e2=_0xee48b1['t'](zt(_0x59494e)),_0x1c713a=we(F['onlineStatus'],{[F[_0x16cfbd(0x224)]]:_0x5344bb,[F['offline']]:!_0x5344bb}),_0x1f06c1=_0x5344bb?N[_0x16cfbd(0x242)](We,{}):N[_0x16cfbd(0x242)](He,{}),_0x11cba7=O[_0x16cfbd(0x331)](()=>{const _0x5059d8=_0x16cfbd;_0x5344bb||_0x24d0df[_0x5059d8(0x411)]();},[_0x5344bb,_0x24d0df]);function _0x32f878(){const _0x501dfd=_0x16cfbd;return N[_0x501dfd(0x23a)](_0x501dfd(0x2d7),{'className':we(_0x1c713a,_0x501dfd(0x405)),'onClick':_0x11cba7,'children':[N[_0x501dfd(0x242)]('div',{'className':F[_0x501dfd(0x202)],'children':_0x1f06c1}),N[_0x501dfd(0x242)](_0x501dfd(0x2d7),{'className':F[_0x501dfd(0x41d)],'children':_0x3a83e2})]});}return _0x5344bb?_0x32f878():N[_0x16cfbd(0x242)](M['Tooltip'],{'title':_0xee48b1['t'](_0x16cfbd(0x201)),'children':_0x32f878()});}var Jt=Object[_0x369919(0x3b8)],Zt=Object[_0x369919(0x1e7)],Qt=(_0xe959a2,_0x5c4c3f,_0x50aa90,_0x3e6a61)=>{for(var _0x542fb7=_0x3e6a61>0x1?void 0x0:_0x3e6a61?Zt(_0x5c4c3f,_0x50aa90):_0x5c4c3f,_0x26a51d=_0xe959a2['length']-0x1,_0x38dc98;_0x26a51d>=0x0;_0x26a51d--)(_0x38dc98=_0xe959a2[_0x26a51d])&&(_0x542fb7=(_0x3e6a61?_0x38dc98(_0x5c4c3f,_0x50aa90,_0x542fb7):_0x38dc98(_0x542fb7))||_0x542fb7);return _0x3e6a61&&_0x542fb7&&Jt(_0x5c4c3f,_0x50aa90,_0x542fb7),_0x542fb7;},G=(_0x916cfc,_0x6b0bd7)=>(_0x1dc490,_0x3b4f9e)=>_0x6b0bd7(_0x1dc490,_0x3b4f9e,_0x916cfc);exports[_0x369919(0x1d7)]=class extends a[_0x369919(0x2f1)]{constructor(_0x2c1880,_0xcf0717,_0x176691,_0x40931d){const _0x5b2766=_0x369919;super(),h(this,_0x5b2766(0x33a),new S[(_0x5b2766(0x277))](_['CollaborationStatus'][_0x5b2766(0x274)])),(this[_0x5b2766(0x245)]=_0x2c1880,this['_injector']=_0xcf0717,this[_0x5b2766(0x3f1)]=_0x176691,this[_0x5b2766(0x293)]=_0x40931d,this[_0x5b2766(0x3a3)](),this[_0x5b2766(0x3ad)]());}[_0x369919(0x3ad)](){const _0x2826be=_0x369919;this[_0x2826be(0x239)](this[_0x2826be(0x245)]['focused$'][_0x2826be(0x3a2)](S['switchMap'](()=>{const _0x3b1358=_0x2826be,_0x3ebc70=this[_0x3b1358(0x245)][_0x3b1358(0x1c4)]();return _0x3ebc70?this[_0x3b1358(0x3f1)][_0x3b1358(0x3b5)](_0x3ebc70['getUnitId']()):S['of'](null);}),S[_0x2826be(0x210)](_0x219bad=>_0x219bad?_0x219bad['status$']:S['of'](_[_0x2826be(0x230)]['NOT_COLLAB'])))['subscribe'](_0x4e45a2=>{const _0x7b9ded=_0x2826be;this[_0x7b9ded(0x33a)][_0x7b9ded(0x28f)](_0x4e45a2);}));}[_0x369919(0x3a3)](){const _0xd82a36=_0x369919;this[_0xd82a36(0x239)](this[_0xd82a36(0x293)][_0xd82a36(0x31a)](w[_0xd82a36(0x312)][_0xd82a36(0x289)],()=>a[_0xd82a36(0x291)](es({'status$':this[_0xd82a36(0x33a)][_0xd82a36(0x2ba)]()}),this['_injector'])));}},exports[_0x369919(0x1d7)]=Qt([G(0x0,a[_0x369919(0x3ec)]),G(0x1,a[_0x369919(0x420)](a[_0x369919(0x2e5)])),G(0x2,a[_0x369919(0x420)](_[_0x369919(0x24a)])),G(0x3,w['IUIPartsService'])],exports[_0x369919(0x1d7)]);function es(_0x1fb1a8){const {status$:_0xcda1cd}=_0x1fb1a8;return function(){const _0x480576=_0x25b9;return N[_0x480576(0x242)](Ye,{'status$':_0xcda1cd});};}var ts=Object[_0x369919(0x3b8)],ss=Object[_0x369919(0x1e7)],ns=(_0xfc50cc,_0x4fe587,_0x54f0df,_0x22cf1e)=>{for(var _0x4479e6=_0x22cf1e>0x1?void 0x0:_0x22cf1e?ss(_0x4fe587,_0x54f0df):_0x4fe587,_0x5bace4=_0xfc50cc['length']-0x1,_0x2ac024;_0x5bace4>=0x0;_0x5bace4--)(_0x2ac024=_0xfc50cc[_0x5bace4])&&(_0x4479e6=(_0x22cf1e?_0x2ac024(_0x4fe587,_0x54f0df,_0x4479e6):_0x2ac024(_0x4479e6))||_0x4479e6);return _0x22cf1e&&_0x4479e6&&ts(_0x4fe587,_0x54f0df,_0x4479e6),_0x4479e6;},y=(_0x3e856d,_0x43d596)=>(_0x5eee89,_0x5ca0e1)=>_0x43d596(_0x5eee89,_0x5ca0e1,_0x3e856d);let K=class extends a['Disposable']{constructor(_0x23212c,_0x3330de,_0x5d432f,_0x52dbbc,_0x318f8a,_0x413c2e){const _0x53267a=_0x369919;super(),this[_0x53267a(0x391)]=_0x23212c,this[_0x53267a(0x3c9)]=_0x3330de,this[_0x53267a(0x38c)]=_0x5d432f,this[_0x53267a(0x430)]=_0x52dbbc,this[_0x53267a(0x22d)]=_0x318f8a,this[_0x53267a(0x2d3)]=_0x413c2e,this['_setupBeforeClosingHandler'](),this[_0x53267a(0x40b)]();}['_setupBeforeClosingHandler'](){const _0x5d6d47=_0x369919;this[_0x5d6d47(0x239)](this[_0x5d6d47(0x391)]['registerBeforeClose'](()=>{const _0x2f042a=_0x5d6d47;if(this[_0x2f042a(0x3c9)][_0x2f042a(0x2fb)][_0x2f042a(0x3a4)])return this[_0x2f042a(0x2d3)]['t'](_0x2f042a(0x3fa));}));}[_0x369919(0x40b)](){const _0x3ab676=_0x369919;this[_0x3ab676(0x239)](this[_0x3ab676(0x38c)][_0x3ab676(0x38d)][_0x3ab676(0x296)](_0xfc9b11=>{const _0x4b512c=_0x3ab676;_0xfc9b11['id']===_[_0x4b512c(0x3dc)][_0x4b512c(0x36e)]&&this[_0x4b512c(0x430)][_0x4b512c(0x342)]({'type':M['MessageType'][_0x4b512c(0x32a)],'content':this[_0x4b512c(0x2d3)]['t'](_0x4b512c(0x321))}),_0xfc9b11['id']===_[_0x4b512c(0x3dc)][_0x4b512c(0x1fa)]&&this[_0x4b512c(0x430)][_0x4b512c(0x342)]({'type':M[_0x4b512c(0x3b3)]['Warning'],'content':this['_localeService']['t'](_0x4b512c(0x2ce))}),_0xfc9b11['id']===_[_0x4b512c(0x3dc)][_0x4b512c(0x333)]&&this['_notificationService'][_0x4b512c(0x342)]({'title':this[_0x4b512c(0x2d3)]['t'](_0x4b512c(0x28e)),'content':this[_0x4b512c(0x2d3)]['t'](_0x4b512c(0x39c)),'type':_0x4b512c(0x2ab),'duration':0x0}),_0xfc9b11['id']===_[_0x4b512c(0x3dc)][_0x4b512c(0x248)]&&this[_0x4b512c(0x430)][_0x4b512c(0x342)]({'type':M['MessageType'][_0x4b512c(0x36b)],'content':this[_0x4b512c(0x2d3)]['t'](_0x4b512c(0x2ce))+'('+_0xfc9b11[_0x4b512c(0x3b6)]+')'}),_0xfc9b11['id']===_[_0x4b512c(0x3dc)][_0x4b512c(0x229)]&&this[_0x4b512c(0x430)][_0x4b512c(0x342)]({'type':M[_0x4b512c(0x3b3)][_0x4b512c(0x32a)],'content':this[_0x4b512c(0x2d3)]['t'](_0xfc9b11[_0x4b512c(0x3b6)]||'')}),_0xfc9b11['id']===_[_0x4b512c(0x3dc)]['SOCKET_FAILED_RETRY']&&this['_messageService'][_0x4b512c(0x342)]({'type':M[_0x4b512c(0x3b3)]['Warning'],'content':this[_0x4b512c(0x2d3)]['t'](_0x4b512c(0x422))}),_0xfc9b11['id']===_[_0x4b512c(0x3dc)][_0x4b512c(0x42a)]&&this[_0x4b512c(0x430)][_0x4b512c(0x342)]({'type':M['MessageType'][_0x4b512c(0x36b)],'content':this[_0x4b512c(0x2d3)]['t']('session.connection-failed')}),_0xfc9b11['id']===_[_0x4b512c(0x3dc)][_0x4b512c(0x36a)]&&this[_0x4b512c(0x430)][_0x4b512c(0x342)]({'type':M[_0x4b512c(0x3b3)][_0x4b512c(0x36b)],'content':this[_0x4b512c(0x2d3)]['t'](_0x4b512c(0x2be))});}));}};K=ns([y(0x0,w[_0x369919(0x371)]),y(0x1,_['ILocalCacheService']),y(0x2,a[_0x369919(0x420)](_['CollaborationUIEventService'])),y(0x3,w[_0x369919(0x263)]),y(0x4,w[_0x369919(0x257)]),y(0x5,a[_0x369919(0x420)](a[_0x369919(0x34e)]))],K);const is=_0x369919(0x3ff),Le={},Re=a[_0x369919(0x363)](_0x369919(0x240));var rs=Object['defineProperty'],os=Object[_0x369919(0x1e7)],as=(_0x14db16,_0x7bc5ea,_0x4b96a0,_0x3cbfc5)=>{for(var _0x45ef7b=_0x3cbfc5>0x1?void 0x0:_0x3cbfc5?os(_0x7bc5ea,_0x4b96a0):_0x7bc5ea,_0x3c5a4e=_0x14db16['length']-0x1,_0x6f8db5;_0x3c5a4e>=0x0;_0x3c5a4e--)(_0x6f8db5=_0x14db16[_0x3c5a4e])&&(_0x45ef7b=(_0x3cbfc5?_0x6f8db5(_0x7bc5ea,_0x4b96a0,_0x45ef7b):_0x6f8db5(_0x45ef7b))||_0x45ef7b);return _0x3cbfc5&&_0x45ef7b&&rs(_0x7bc5ea,_0x4b96a0,_0x45ef7b),_0x45ef7b;},Y=(_0x118610,_0x82fde4)=>(_0x41bee3,_0x7586f0)=>_0x82fde4(_0x41bee3,_0x7586f0,_0x118610);exports[_0x369919(0x20a)]=class extends a['RxDisposable']{constructor(_0x2d52e7,_0x4fb7a4,_0xeaf610,_0x4b5374,_0x1647a2){const _0x1a70fa=_0x369919;super(),this[_0x1a70fa(0x3fe)]=_0x2d52e7,this['_logService']=_0x4fb7a4,this[_0x1a70fa(0x27f)]=_0xeaf610,this[_0x1a70fa(0x2b9)]=_0x4b5374,_0x1647a2?_0x1647a2==null||_0x1647a2['whenReady']()[_0x1a70fa(0x1d6)](()=>this[_0x1a70fa(0x236)]()):(this['_logService'][_0x1a70fa(0x292)](_0x1a70fa(0x30e),_0x1a70fa(0x225)),this[_0x1a70fa(0x236)]());}async[_0x369919(0x236)](){const _0x162f00=_0x369919,_0x394685=this['_urlService'][_0x162f00(0x279)](_0x162f00(0x3a5)),_0x4d93f7=this['_urlService'][_0x162f00(0x279)](_0x162f00(0x267)),_0x41bd52=this[_0x162f00(0x3fe)][_0x162f00(0x279)](_0x162f00(0x432));if(!_0x394685||!_0x4d93f7){this[_0x162f00(0x369)][_0x162f00(0x292)](_0x162f00(0x30e),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x8feee2=await this[_0x162f00(0x2b9)][_0x162f00(0x286)](_0x394685,Number(_0x4d93f7),_0x41bd52);_0x8feee2&&_0x8feee2 instanceof a[_0x162f00(0x36f)]&&this[_0x162f00(0x268)](_0x8feee2);}async['_setupSubUnitSync'](_0x2b2918){const _0x1724d2=_0x369919;await this[_0x1724d2(0x209)](_0x2b2918),_0x2b2918[_0x1724d2(0x426)][_0x1724d2(0x3a2)](S['takeUntil'](this[_0x1724d2(0x2aa)]))[_0x1724d2(0x296)](_0x5e46cd=>{const _0x2cc19d=_0x1724d2;_0x5e46cd&&this[_0x2cc19d(0x3ea)](_0x5e46cd);}),this[_0x1724d2(0x3fe)][_0x1724d2(0x3d2)][_0x1724d2(0x3a2)](S[_0x1724d2(0x41c)](this[_0x1724d2(0x2aa)]))[_0x1724d2(0x296)](()=>this[_0x1724d2(0x209)](_0x2b2918));}['_updateURLWithCurrentState'](_0x5a131b,_0x43e7fc=!0x1){const _0x4c9831=_0x369919,_0x45bd18=this[_0x4c9831(0x3fe)][_0x4c9831(0x279)](_0x4c9831(0x432));_0x5a131b[_0x4c9831(0x208)]()!==_0x45bd18&&this[_0x4c9831(0x3fe)]['setParam'](_0x4c9831(0x432),_0x5a131b['getSheetId'](),_0x43e7fc);}async[_0x369919(0x209)](_0x126b70){const _0x123614=_0x369919;var _0x1568cd;const _0x2a4e5d=this[_0x123614(0x3fe)]['getParam'](_0x123614(0x432));if(!_0x2a4e5d||!_0x126b70['getSheetBySheetId'](_0x2a4e5d)){const _0x55a2b1=_0x126b70[_0x123614(0x3d5)]()[0x0],_0x237a39=_0x126b70[_0x123614(0x1ee)](_0x55a2b1);if(!_0x237a39)return;this[_0x123614(0x3ea)](_0x237a39,!0x0),await this[_0x123614(0x27f)][_0x123614(0x3b2)](I[_0x123614(0x3fd)]['id'],{'unitId':_0x126b70[_0x123614(0x355)](),'subUnitId':_0x55a2b1});return;}((_0x1568cd=_0x126b70[_0x123614(0x303)]())==null?void 0x0:_0x1568cd[_0x123614(0x208)]())!==_0x2a4e5d&&await this[_0x123614(0x27f)][_0x123614(0x3b2)](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x126b70[_0x123614(0x355)](),'subUnitId':_0x2a4e5d});}},exports['CollaborationDataLoaderController']=as([Y(0x0,Re),Y(0x1,a['ILogService']),Y(0x2,a[_0x369919(0x2e1)]),Y(0x3,a[_0x369919(0x420)](_[_0x369919(0x323)])),Y(0x4,a['Optional'](tt[_0x369919(0x2f4)]))],exports[_0x369919(0x20a)]);var cs=Object['defineProperty'],ls=Object[_0x369919(0x1e7)],us=(_0x14462a,_0x4158bc,_0x5b5945,_0x39c389)=>{const _0xcf51ce=_0x369919;for(var _0x1d86e8=_0x39c389>0x1?void 0x0:_0x39c389?ls(_0x4158bc,_0x5b5945):_0x4158bc,_0x5f0c75=_0x14462a[_0xcf51ce(0x3e2)]-0x1,_0x2df9ec;_0x5f0c75>=0x0;_0x5f0c75--)(_0x2df9ec=_0x14462a[_0x5f0c75])&&(_0x1d86e8=(_0x39c389?_0x2df9ec(_0x4158bc,_0x5b5945,_0x1d86e8):_0x2df9ec(_0x1d86e8))||_0x1d86e8);return _0x39c389&&_0x1d86e8&&cs(_0x4158bc,_0x5b5945,_0x1d86e8),_0x1d86e8;},le=(_0x2e907f,_0x3414fd)=>(_0x5a6755,_0x2ef7b0)=>_0x3414fd(_0x5a6755,_0x2ef7b0,_0x2e907f);let z=class{constructor(_0x579c87,_0x13da4e,_0xa85fb2){const _0x187680=_0x369919;this['_injector']=_0x579c87,this['_transformService']=_0x13da4e,this[_0x187680(0x3ac)]=_0xa85fb2;}['transformIMECache'](_0x15184f){const _0x160fa9=_0x369919;this[_0x160fa9(0x1da)](_0x15184f),this['_transformPreviousActiveRange'](_0x15184f);}[_0x369919(0x3c0)](_0x3026c5){const _0x538b9c=_0x369919,{unitID:_0x551848}=_0x3026c5,_0x39f0d5=this[_0x538b9c(0x3ac)][_0x538b9c(0x2b3)](_0x551848)[_0x538b9c(0x2fd)](b[_0x538b9c(0x407)]),{redoCache:_0x3dd30e}=_0x39f0d5[_0x538b9c(0x276)]();if(_0x3dd30e[_0x538b9c(0x3e2)]===0x0)return _0x3026c5;let _0x1ef0e2=a[_0x538b9c(0x238)]['deepClone'](_0x3026c5[_0x538b9c(0x37e)][0x0]);for(let _0x5db99f=0x0;_0x5db99f<_0x3dd30e[_0x538b9c(0x3e2)];_0x5db99f++){const _0x497ffe={'id':_0x538b9c(0x24c),'params':{..._0x3dd30e[_0x5db99f]}},_0x33400d=this[_0x538b9c(0x2f7)]['transformMutation'](_0x1ef0e2,_0x497ffe,!0x1);if(g['isTransformMutationFailure'](_0x33400d))throw _0x33400d[_0x538b9c(0x2ab)];_0x1ef0e2=_0x33400d[_0x538b9c(0x222)];}return{...a[_0x538b9c(0x238)]['deepClone'](_0x3026c5),'mutations':[_0x1ef0e2]};}['_transformUndoRedoStack'](_0x5e12e1){const _0x39e16a=_0x369919,{unitID:_0x4f14ab}=_0x5e12e1,_0x139830=this['_renderManagerService'][_0x39e16a(0x2b3)](_0x4f14ab)[_0x39e16a(0x2fd)](b[_0x39e16a(0x407)]),{undoCache:_0x5abda3,redoCache:_0x1f42af}=_0x139830[_0x39e16a(0x276)]();if(_0x5abda3[_0x39e16a(0x3e2)]===0x0||_0x1f42af[_0x39e16a(0x3e2)]===0x0)return;const _0x5a64c8=[],_0x1bb1b7=[];let _0x2e0e05=a['Tools']['deepClone'](_0x5e12e1[_0x39e16a(0x37e)][0x0]),_0x418f37=a[_0x39e16a(0x238)][_0x39e16a(0x281)](_0x5e12e1[_0x39e16a(0x37e)][0x0]);for(let _0x920c4=_0x5abda3['length']-0x1;_0x920c4>=0x0;_0x920c4--){const _0x20ce67={'id':_0x39e16a(0x24c),'params':{..._0x5abda3[_0x920c4]}},_0xb226fb={'id':_0x39e16a(0x24c),'params':{..._0x1f42af[_0x920c4]}},_0x2094d3=this[_0x39e16a(0x2f7)]['transformMutation'](_0x2e0e05,_0x20ce67,!0x1),_0x49c550=this[_0x39e16a(0x2f7)][_0x39e16a(0x2c4)](_0x418f37,_0xb226fb,!0x1);if(g[_0x39e16a(0x30b)](_0x2094d3))throw _0x2094d3[_0x39e16a(0x2ab)];if(g[_0x39e16a(0x30b)](_0x49c550))throw _0x49c550[_0x39e16a(0x2ab)];_0x5a64c8[_0x39e16a(0x40a)](_0x2094d3[_0x39e16a(0x25a)]['params']),_0x1bb1b7['unshift'](_0x49c550[_0x39e16a(0x25a)][_0x39e16a(0x297)]),_0x2e0e05=_0x2094d3[_0x39e16a(0x222)],_0x418f37=_0x49c550[_0x39e16a(0x222)];}_0x139830[_0x39e16a(0x1db)]({'undoCache':_0x5a64c8,'redoCache':_0x1bb1b7});}[_0x369919(0x3f4)](_0x1a82b6){const _0x2dee7b=_0x369919,{unitID:_0x1cae6b}=_0x1a82b6,_0x16bb2b=this['_renderManagerService'][_0x2dee7b(0x2b3)](_0x1cae6b)[_0x2dee7b(0x2fd)](b[_0x2dee7b(0x407)]),_0x38562f=_0x16bb2b[_0x2dee7b(0x1d3)]();if(_0x38562f==null)return;const _0xf9ca6d=[{'id':_0x2dee7b(0x24c),'params':{'unitId':_0x1a82b6['unitID'],'actions':null,'textRanges':[_0x38562f]}}],_0x3029cf=this[_0x2dee7b(0x2f7)][_0x2dee7b(0x2b5)](_0x1a82b6,_0xf9ca6d);if(!g[_0x2dee7b(0x20e)](_0x3029cf))throw _0x3029cf[_0x2dee7b(0x2ab)];const _0x430d53=_0x3029cf[_0x2dee7b(0x25a)][0x0][_0x2dee7b(0x297)][_0x2dee7b(0x1e0)];Array[_0x2dee7b(0x23e)](_0x430d53)&&_0x430d53['length']&&_0x16bb2b['setActiveRange'](_0x430d53[0x0]);}};z=us([le(0x0,a['Inject'](a[_0x369919(0x2e5)])),le(0x1,g['ITransformService']),le(0x2,C['IRenderManagerService'])],z);var hs=Object[_0x369919(0x3b8)],_s=Object[_0x369919(0x1e7)],ds=(_0x52ce49,_0x119df6,_0x5c1100,_0xf10dbb)=>{const _0x5f06c8=_0x369919;for(var _0x25898e=_0xf10dbb>0x1?void 0x0:_0xf10dbb?_s(_0x119df6,_0x5c1100):_0x119df6,_0x18abf6=_0x52ce49[_0x5f06c8(0x3e2)]-0x1,_0x52bb52;_0x18abf6>=0x0;_0x18abf6--)(_0x52bb52=_0x52ce49[_0x18abf6])&&(_0x25898e=(_0xf10dbb?_0x52bb52(_0x119df6,_0x5c1100,_0x25898e):_0x52bb52(_0x25898e))||_0x25898e);return _0xf10dbb&&_0x25898e&&hs(_0x119df6,_0x5c1100,_0x25898e),_0x25898e;},ue=(_0x18d757,_0x35ce31)=>(_0x1c35b0,_0x2cdd72)=>_0x35ce31(_0x1c35b0,_0x2cdd72,_0x18d757);let J=class{constructor(_0x2ceb12,_0xa98b93,_0x3182a7){const _0x2e1e76=_0x369919;this['_injector']=_0x2ceb12,this[_0x2e1e76(0x2f7)]=_0xa98b93,this[_0x2e1e76(0x37c)]=_0x3182a7;}[_0x369919(0x379)](_0x4ccfb2){const _0x590956=_0x369919;this[_0x590956(0x1c9)](_0x4ccfb2);}[_0x369919(0x3c0)](_0x4338d9){const _0x419839=_0x369919,{unitID:_0x5900d7}=_0x4338d9,{collaboration:_0x3f4781}=this[_0x419839(0x37c)][_0x419839(0x2b2)](_0x5900d7);if(_0x3f4781[_0x419839(0x3e2)]===0x0)return _0x4338d9;let _0x2aeab9=a[_0x419839(0x238)][_0x419839(0x281)](_0x4338d9['mutations'][0x0]);for(let _0x1ada5c=0x0;_0x1ada5c<_0x3f4781['length'];_0x1ada5c++){const _0x1c7daa={'id':_0x419839(0x24c),'params':{'unitId':_0x3f4781[_0x1ada5c][_0x419839(0x367)],..._0x3f4781[_0x1ada5c][_0x419839(0x1d1)]}},_0x48a3a9=this[_0x419839(0x2f7)][_0x419839(0x2c4)](_0x2aeab9,_0x1c7daa,!0x1);if(g[_0x419839(0x30b)](_0x48a3a9))throw _0x48a3a9[_0x419839(0x2ab)];_0x2aeab9=_0x48a3a9[_0x419839(0x222)];}return{...a['Tools']['deepClone'](_0x4338d9),'mutations':[_0x2aeab9]};}['_transformHistoryAndStateStack'](_0x3bb521){const _0x4857cb=_0x369919,{unitID:_0x1b396c}=_0x3bb521,{history:_0x34c741,collaboration:_0x322ade}=this[_0x4857cb(0x37c)][_0x4857cb(0x2b2)](_0x1b396c);if(_0x34c741['length']===0x0&&_0x322ade['length']===0x0)return;const _0x253d0c=[],_0x5ba396=[];let _0x21e81c=a[_0x4857cb(0x238)]['deepClone'](_0x3bb521[_0x4857cb(0x37e)][0x0]),_0x410d2b=a[_0x4857cb(0x238)][_0x4857cb(0x281)](_0x3bb521['mutations'][0x0]);for(let _0x59eb05=_0x34c741[_0x4857cb(0x3e2)]-0x1;_0x59eb05>=0x0;_0x59eb05--){const _0x49a1e0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x34c741[_0x59eb05][_0x4857cb(0x367)],..._0x34c741[_0x59eb05]['undoState']}},_0x127c61={'id':_0x4857cb(0x24c),'params':{'unitId':_0x34c741[_0x59eb05][_0x4857cb(0x367)],..._0x34c741[_0x59eb05][_0x4857cb(0x1d1)]}},_0x22240f=this[_0x4857cb(0x2f7)][_0x4857cb(0x2c4)](_0x21e81c,_0x49a1e0,!0x1),_0x4d70f5=this['_transformService'][_0x4857cb(0x2c4)](_0x410d2b,_0x127c61,!0x1);if(g['isTransformMutationFailure'](_0x22240f))throw _0x22240f[_0x4857cb(0x2ab)];if(g[_0x4857cb(0x30b)](_0x4d70f5))throw _0x4d70f5[_0x4857cb(0x2ab)];_0x253d0c[_0x4857cb(0x40a)]({..._0x34c741[_0x59eb05],'undoState':_0x22240f[_0x4857cb(0x25a)][_0x4857cb(0x297)],'redoState':_0x4d70f5[_0x4857cb(0x25a)][_0x4857cb(0x297)]}),_0x21e81c=_0x22240f[_0x4857cb(0x222)],_0x410d2b=_0x4d70f5[_0x4857cb(0x222)];}_0x21e81c=a[_0x4857cb(0x238)][_0x4857cb(0x281)](_0x3bb521[_0x4857cb(0x37e)][0x0]),_0x410d2b=a['Tools']['deepClone'](_0x3bb521[_0x4857cb(0x37e)][0x0]);for(let _0x334582=_0x322ade[_0x4857cb(0x3e2)]-0x1;_0x334582>=0x0;_0x334582--){const _0xd62585={'id':_0x4857cb(0x24c),'params':{'unitId':_0x322ade[_0x334582][_0x4857cb(0x367)],..._0x322ade[_0x334582][_0x4857cb(0x298)]}},_0x7a1986={'id':_0x4857cb(0x24c),'params':{'unitId':_0x322ade[_0x334582]['unitId'],..._0x322ade[_0x334582][_0x4857cb(0x1d1)]}},_0x9def=this['_transformService'][_0x4857cb(0x2c4)](_0x21e81c,_0xd62585,!0x1),_0x4b2f30=this[_0x4857cb(0x2f7)]['transformMutation'](_0x410d2b,_0x7a1986,!0x1);if(g['isTransformMutationFailure'](_0x9def))throw _0x9def[_0x4857cb(0x2ab)];if(g[_0x4857cb(0x30b)](_0x4b2f30))throw _0x4b2f30['error'];_0x5ba396['unshift']({..._0x322ade[_0x334582],'undoState':_0x9def[_0x4857cb(0x25a)][_0x4857cb(0x297)],'redoState':_0x4b2f30[_0x4857cb(0x25a)][_0x4857cb(0x297)]}),_0x21e81c=_0x9def[_0x4857cb(0x222)],_0x410d2b=_0x4b2f30[_0x4857cb(0x222)];}this[_0x4857cb(0x37c)]['setStateCache'](_0x1b396c,{'history':_0x253d0c,'collaboration':_0x5ba396});}};J=ds([ue(0x0,a['Inject'](a['Injector'])),ue(0x1,g[_0x369919(0x329)]),ue(0x2,a[_0x369919(0x420)](b[_0x369919(0x270)]))],J);var fs=Object[_0x369919(0x3b8)],Ss=Object[_0x369919(0x1e7)],vs=(_0x526231,_0x2017ae,_0x12ac26,_0x146725)=>{for(var _0x566b99=_0x146725>0x1?void 0x0:_0x146725?Ss(_0x2017ae,_0x12ac26):_0x2017ae,_0x4e6db8=_0x526231['length']-0x1,_0x32ca79;_0x4e6db8>=0x0;_0x4e6db8--)(_0x32ca79=_0x526231[_0x4e6db8])&&(_0x566b99=(_0x146725?_0x32ca79(_0x2017ae,_0x12ac26,_0x566b99):_0x32ca79(_0x566b99))||_0x566b99);return _0x146725&&_0x566b99&&fs(_0x2017ae,_0x12ac26,_0x566b99),_0x566b99;},Ae=(_0x54da8e,_0x21ea91)=>(_0x479209,_0x542459)=>_0x21ea91(_0x479209,_0x542459,_0x54da8e);let Z=class{constructor(_0x3f0f2a,_0x42eebc){const _0x45fb2c=_0x369919;this['_injector']=_0x3f0f2a,this[_0x45fb2c(0x2f7)]=_0x42eebc;}[_0x369919(0x282)](_0x520e54){const _0x579d33=_0x369919;var _0x50eff9;const _0xd01f94=this[_0x579d33(0x32f)]['get'](X['DocSelectionManagerService']),_0x2f0c8b=(_0x50eff9=_0xd01f94[_0x579d33(0x22e)]())!=null?_0x50eff9:[];if(_0x2f0c8b[_0x579d33(0x3e2)]===0x0)return;const _0x53ad31=_0x520e54[_0x579d33(0x3bd)],_0x539ee3=[{'id':_0x579d33(0x24c),'params':{'unitId':_0x53ad31,'actions':null,'textRanges':_0x2f0c8b}}],_0x4ff961=this['_transformService'][_0x579d33(0x2b5)](_0x520e54,_0x539ee3);if(!g['isTransformMutationsWithChangesetSuccess'](_0x4ff961))throw _0x4ff961[_0x579d33(0x2ab)];const _0x588dde=_0x4ff961[_0x579d33(0x25a)][0x0][_0x579d33(0x297)][_0x579d33(0x1e0)];Array[_0x579d33(0x23e)](_0x588dde)&&_0x588dde['length']&&_0xd01f94['replaceDocRanges'](_0x588dde,{'unitId':_0x53ad31,'subUnitId':_0x53ad31},!0x1);}};Z=vs([Ae(0x0,a['Inject'](a[_0x369919(0x2e5)])),Ae(0x1,g[_0x369919(0x329)])],Z);var ms=Object[_0x369919(0x3b8)],Is=Object[_0x369919(0x1e7)],gs=(_0x583b7b,_0x325bee,_0x2c9479,_0x2a00d6)=>{const _0x34137b=_0x369919;for(var _0x2d073c=_0x2a00d6>0x1?void 0x0:_0x2a00d6?Is(_0x325bee,_0x2c9479):_0x325bee,_0x29bdf6=_0x583b7b[_0x34137b(0x3e2)]-0x1,_0x1e766b;_0x29bdf6>=0x0;_0x29bdf6--)(_0x1e766b=_0x583b7b[_0x29bdf6])&&(_0x2d073c=(_0x2a00d6?_0x1e766b(_0x325bee,_0x2c9479,_0x2d073c):_0x1e766b(_0x2d073c))||_0x2d073c);return _0x2a00d6&&_0x2d073c&&ms(_0x325bee,_0x2c9479,_0x2d073c),_0x2d073c;},P=(_0x58d6ee,_0x34c433)=>(_0x50d531,_0x4c231a)=>_0x34c433(_0x50d531,_0x4c231a,_0x58d6ee);let Q=class extends a['Disposable']{constructor(_0x20b7b3,_0x3c5012,_0x57363e,_0x30a85d,_0x276193,_0x5640dd,_0x41573d,_0x4348bf){const _0x2febad=_0x369919;super(),h(this,_0x2febad(0x33a),new S[(_0x2febad(0x277))](_[_0x2febad(0x230)]['NOT_COLLAB'])),(this['_docStateChangeManagerService']=_0x20b7b3,this[_0x2febad(0x3f1)]=_0x3c5012,this[_0x2febad(0x32e)]=_0x57363e,this[_0x2febad(0x3b0)]=_0x30a85d,this[_0x2febad(0x203)]=_0x276193,this[_0x2febad(0x22b)]=_0x5640dd,this[_0x2febad(0x430)]=_0x41573d,this['_localeService']=_0x4348bf,this['_initEntityListener']());}[_0x369919(0x416)](){const _0x562569=_0x369919;this[_0x562569(0x239)](this['_collaborationController']['entityInit$'][_0x562569(0x296)](_0x5af1ec=>{const _0x31f407=_0x562569,_0x1d4020=this[_0x31f407(0x37c)][_0x31f407(0x399)][_0x31f407(0x296)](_0x3adde6=>{const _0x133b3e=_0x31f407;if(_0x3adde6==null)return;const {unitId:_0x43f51a,redoState:_0x2ee02e,commandId:_0x3ac72a}=_0x3adde6;if(_0x43f51a!==_0x5af1ec[_0x133b3e(0x3bd)])return;const _0x2689be={'id':_0x3ac72a,'type':a[_0x133b3e(0x29e)][_0x133b3e(0x392)],'params':{'unitId':_0x43f51a,'actions':_0x2ee02e[_0x133b3e(0x307)],'textRanges':null}};_0x5af1ec[_0x133b3e(0x1c6)](_0x2689be);});if(_0x5af1ec[_0x31f407(0x239)](_0x1d4020),_0x5af1ec instanceof _[_0x31f407(0x2dd)]){const _0x347a83={'onTransformIME':_0x4facb6=>this[_0x31f407(0x32e)]['transformIMECache'](_0x4facb6),'onTransformState':_0x9d51df=>this[_0x31f407(0x3b0)][_0x31f407(0x379)](_0x9d51df),'onTransformSelections':_0x880151=>this[_0x31f407(0x203)]['transformSelections'](_0x880151),'onSyncEditingCollabCursor':_0x5be1bc=>this[_0x31f407(0x22b)][_0x31f407(0x237)](_0x5be1bc),'onTransformRemoteChangesetByIMECache':_0x4f2e29=>this[_0x31f407(0x32e)][_0x31f407(0x3c0)](_0x4f2e29),'onTransformRemoteChangesetByStateCache':_0x18b81f=>this[_0x31f407(0x3b0)][_0x31f407(0x3c0)](_0x18b81f)};_0x5af1ec[_0x31f407(0x377)](_0x347a83);}}));}};Q=gs([P(0x0,a[_0x369919(0x420)](b[_0x369919(0x270)])),P(0x1,a[_0x369919(0x420)](_[_0x369919(0x24a)])),P(0x2,a[_0x369919(0x420)](z)),P(0x3,a[_0x369919(0x420)](J)),P(0x4,a[_0x369919(0x420)](Z)),P(0x5,a['Inject'](be)),P(0x6,w[_0x369919(0x263)]),P(0x7,a['Inject'](a[_0x369919(0x34e)]))],Q);var ps=Object[_0x369919(0x3b8)],Cs=Object[_0x369919(0x1e7)],bs=(_0x1e29b7,_0x5901f3,_0x33a115,_0x482873)=>{const _0x57f61b=_0x369919;for(var _0x400417=_0x482873>0x1?void 0x0:_0x482873?Cs(_0x5901f3,_0x33a115):_0x5901f3,_0x148e02=_0x1e29b7[_0x57f61b(0x3e2)]-0x1,_0xe1d9ae;_0x148e02>=0x0;_0x148e02--)(_0xe1d9ae=_0x1e29b7[_0x148e02])&&(_0x400417=(_0x482873?_0xe1d9ae(_0x5901f3,_0x33a115,_0x400417):_0xe1d9ae(_0x400417))||_0x400417);return _0x482873&&_0x400417&&ps(_0x5901f3,_0x33a115,_0x400417),_0x400417;},he=(_0x137bf0,_0x477b02)=>(_0x4904a5,_0x28c547)=>_0x477b02(_0x4904a5,_0x28c547,_0x137bf0);let pe=class extends a['Disposable']{constructor(_0xf1fcd4,_0x2dcd48,_0x34ccb4){const _0x56d1f7=_0x369919;super(),h(this,'_cachedData',new Map()),h(this,_0x56d1f7(0x2c1),new Map()),h(this,_0x56d1f7(0x38f),!0x1),(this[_0x56d1f7(0x434)]=_0xf1fcd4,this['_localStorageService']=_0x2dcd48,this[_0x56d1f7(0x3de)]=_0x34ccb4);}['disableLocalCache'](){const _0x5ab275=_0x369919;this[_0x5ab275(0x38f)]=!0x0;}['enableLocalCache'](){const _0x1a766d=_0x369919;this[_0x1a766d(0x38f)]=!0x1;}get[_0x369919(0x2fb)](){const _0x5027f7=_0x369919;return this[_0x5027f7(0x2c1)];}['dispose'](){const _0x3d6723=_0x369919;this['exhaustSavingTask']()[_0x3d6723(0x1d6)](()=>super['dispose']());}async[_0x369919(0x396)](_0x197bda){const _0x13cc82=_0x369919;return this[_0x13cc82(0x38f)]?null:this[_0x13cc82(0x35b)]['getItem'](_[_0x13cc82(0x3ca)](_0x197bda));}async[_0x369919(0x235)](_0x5ee0c4,_0x1cdf53){const _0x2ad8c3=_0x369919;return!!this[_0x2ad8c3(0x35b)]['setItem'](_0x5ee0c4,_0x1cdf53);}[_0x369919(0x35a)](_0x251caa,_0xa35b6a,_0x6530cb,_0xf81d41){const _0x27e4f5=_0x369919,_0x26cc17=this['_revisionService'][_0x27e4f5(0x27e)](_0x251caa);this[_0x27e4f5(0x2f5)][_0x27e4f5(0x2a3)](_0x251caa,{'unitID':_0x251caa,'type':_0xa35b6a,'awaitingChangeset':_0x6530cb,'mutations':_0xf81d41,'rev':_0x26cc17}),this[_0x27e4f5(0x2c1)][_0x27e4f5(0x1d2)](_0x251caa)||this['_scheduleSaving'](_0x251caa);}['_scheduleSaving'](_0x1a1765){const _0x2fc475=_0x369919,_0x29833f=this[_0x2fc475(0x2eb)]();_0x29833f===0x0?this['_saveCache'](_0x1a1765):this[_0x2fc475(0x2c1)][_0x2fc475(0x2a3)](_0x1a1765,setTimeout(()=>this[_0x2fc475(0x2c8)](_0x1a1765),_0x29833f));}[_0x369919(0x2eb)](){const _0x19335e=_0x369919;var _0x52e539;return(_0x52e539=this[_0x19335e(0x434)]['getConfig'](_[_0x19335e(0x21d)]))!=null?_0x52e539:_['LOCAL_CACHE_INTERVAL'];}[_0x369919(0x2c8)](_0x499805){const _0x1c4c87=_0x369919,_0x494db4=this[_0x1c4c87(0x2c1)][_0x1c4c87(0x364)](_0x499805);return _0x494db4!==void 0x0&&window[_0x1c4c87(0x3e1)](_0x494db4),this[_0x1c4c87(0x35b)][_0x1c4c87(0x398)](_[_0x1c4c87(0x3ca)](_0x499805),this['_cachedData'][_0x1c4c87(0x364)](_0x499805))['then'](()=>this[_0x1c4c87(0x2c1)][_0x1c4c87(0x428)](_0x499805));}async[_0x369919(0x3ef)](){const _0x2ff9f2=_0x369919,_0x1b7522=[];this[_0x2ff9f2(0x2c1)][_0x2ff9f2(0x34d)]((_0x183d41,_0x3d17d9)=>{const _0x40b23d=_0x2ff9f2;window[_0x40b23d(0x3e1)](_0x183d41),_0x1b7522['push'](this['_saveCache'](_0x3d17d9)[_0x40b23d(0x1d6)](()=>{const _0x4896df=_0x40b23d;this[_0x4896df(0x2c1)][_0x4896df(0x428)](_0x3d17d9);}));}),await Promise[_0x2ff9f2(0x348)](_0x1b7522);}};pe=bs([he(0x0,a[_0x369919(0x387)]),he(0x1,a['ILocalStorageService']),he(0x2,a['Inject'](g['RevisionService']))],pe);class Xe extends a[_0x369919(0x2b7)]{constructor(){const _0x472c74=_0x369919;super(),h(this,_0x472c74(0x3d2)),this['urlChange$']=S[_0x472c74(0x3c5)](window,_0x472c74(0x406))['pipe'](S['takeUntil'](this[_0x472c74(0x2aa)]),S[_0x472c74(0x26e)](0x1),S[_0x472c74(0x423)](void 0x0));}[_0x369919(0x3f8)](_0x3fa759,_0x362e6c,_0x47e8ca=!0x1){const _0x300039=_0x369919,_0x5e1d8c=new URL(window['location']['href']);_0x5e1d8c['searchParams'][_0x300039(0x2a3)](_0x3fa759,_0x362e6c),_0x47e8ca?window[_0x300039(0x326)][_0x300039(0x365)]('','',_0x5e1d8c[_0x300039(0x401)]()):window['history'][_0x300039(0x3cb)]('','',_0x5e1d8c[_0x300039(0x401)]());}[_0x369919(0x21a)](_0x588267,_0x299cb1=!0x1){const _0x299ef9=_0x369919,_0x356990=new URL(window[_0x299ef9(0x374)][_0x299ef9(0x347)]);_0x356990['searchParams'][_0x299ef9(0x428)](_0x588267),_0x299cb1?window[_0x299ef9(0x326)][_0x299ef9(0x365)]('','',_0x356990[_0x299ef9(0x401)]()):window['history']['pushState']('','',_0x356990['toString']());}[_0x369919(0x279)](_0x3a4500){const _0x11026b=_0x369919;var _0x540d27;return(_0x540d27=new URL(window[_0x11026b(0x374)][_0x11026b(0x347)])[_0x11026b(0x25b)]['get'](_0x3a4500))!=null?_0x540d27:void 0x0;}}var Ve=Object[_0x369919(0x3b8)],Es=Object[_0x369919(0x1e7)],Rs=(_0x55337b,_0x5c1606,_0x5b0115)=>_0x5c1606 in _0x55337b?Ve(_0x55337b,_0x5c1606,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b0115}):_0x55337b[_0x5c1606]=_0x5b0115,Ts=(_0x5de07e,_0x4ed26c,_0x62ebd7,_0x5465ec)=>{const _0x1e7299=_0x369919;for(var _0x312ea4=_0x5465ec>0x1?void 0x0:_0x5465ec?Es(_0x4ed26c,_0x62ebd7):_0x4ed26c,_0x291030=_0x5de07e[_0x1e7299(0x3e2)]-0x1,_0x48dd9a;_0x291030>=0x0;_0x291030--)(_0x48dd9a=_0x5de07e[_0x291030])&&(_0x312ea4=(_0x5465ec?_0x48dd9a(_0x4ed26c,_0x62ebd7,_0x312ea4):_0x48dd9a(_0x312ea4))||_0x312ea4);return _0x5465ec&&_0x312ea4&&Ve(_0x4ed26c,_0x62ebd7,_0x312ea4),_0x312ea4;},_e=(_0x46f066,_0x475fc9)=>(_0x118834,_0x2a5e0a)=>_0x475fc9(_0x118834,_0x2a5e0a,_0x46f066),Os=(_0x1bc1ec,_0x562edf,_0x2055a6)=>Rs(_0x1bc1ec,_0x562edf+'',_0x2055a6);const Ds=_0x369919(0x3ab);exports[_0x369919(0x284)]=class extends a[_0x369919(0x38e)]{constructor(_0x56768f=Le,_0x410abf,_0x40ce3c,_0x438e95){const _0x80bb67=_0x369919;super(),this[_0x80bb67(0x3c4)]=_0x56768f,this[_0x80bb67(0x3ac)]=_0x410abf,this['_injector']=_0x40ce3c,this[_0x80bb67(0x434)]=_0x438e95;const {..._0x284cfd}=a[_0x80bb67(0x3f2)]({},Le,this[_0x80bb67(0x3c4)]);this['_configService']['setConfig'](is,_0x284cfd);}[_0x369919(0x39f)](){const _0x49780e=_0x369919;this[_0x49780e(0x1cc)](),this[_0x49780e(0x283)]();}['onRendered'](){const _0x1ab163=_0x369919;this[_0x1ab163(0x34c)]();}['_registerDependencies'](){const _0x468444=_0x369919;var _0x49f586;const _0x588cc0=[[Ce],[Z],[z],[J],[be],[Re,{'useClass':Xe}],[fe['ISocketService'],{'useClass':fe['WebSocketService']}],[_[_0x468444(0x424)],{'useClass':pe}],[exports[_0x468444(0x1d7)]],[Q],[K],[x],[Se],[exports[_0x468444(0x20a)]]];a['registerDependencies'](this[_0x468444(0x32f)],a[_0x468444(0x357)](_0x588cc0,(_0x49f586=this['_config'])==null?void 0x0:_0x49f586[_0x468444(0x410)]));}[_0x369919(0x34c)](){const _0x1e360b=_0x369919;this['disposeWithMe'](this['_renderManagerService'][_0x1e360b(0x233)](a['UniverInstanceType'][_0x1e360b(0x337)],[Ie])),this[_0x1e360b(0x239)](this[_0x1e360b(0x3ac)][_0x1e360b(0x233)](a[_0x1e360b(0x28a)][_0x1e360b(0x20b)],[ge]));}[_0x369919(0x283)](){const _0x97bc1a=_0x369919;a[_0x97bc1a(0x3c1)](this[_0x97bc1a(0x32f)],[[x],[exports[_0x97bc1a(0x1d7)]],[Q],[K],[exports[_0x97bc1a(0x20a)]]]);}},Os(exports[_0x369919(0x284)],_0x369919(0x3be),Ds),exports[_0x369919(0x284)]=Ts([a[_0x369919(0x228)](_[_0x369919(0x1e4)]),_e(0x1,C[_0x369919(0x22f)]),_e(0x2,a['Inject'](a['Injector'])),_e(0x3,a[_0x369919(0x387)])],exports[_0x369919(0x284)]);const ye=0x7530,$e='ACTIVE_UNIT_EVENT_CHANNEL';class Ps extends a[_0x369919(0x2f1)]{constructor(){const _0x650465=_0x369919;super(),h(this,_0x650465(0x31f),a[_0x650465(0x238)][_0x650465(0x2ed)]()),h(this,_0x650465(0x2db),new Set()),h(this,_0x650465(0x3b9),new Map()),h(this,'_heartbeatTimer',null),h(this,'_clearOtherTimers',new Map()),h(this,_0x650465(0x271),new Map()),this[_0x650465(0x236)]();}[_0x369919(0x31d)](){const _0x5c7754=_0x369919;super[_0x5c7754(0x31d)](),this['_clearOtherTimers'][_0x5c7754(0x34d)]((_0x4bf714,_0x153fa4)=>this[_0x5c7754(0x2f6)](_0x153fa4)),this[_0x5c7754(0x24e)]&&window['clearInterval'](this[_0x5c7754(0x24e)]);}[_0x369919(0x319)](_0xb40079){const _0x55681b=_0x369919;return this[_0x55681b(0x389)](_0xb40079)[_0x55681b(0x3a2)](S[_0x55681b(0x2c2)]());}['editingUnit'](_0x11d36e){const _0x16ead2=_0x369919;this[_0x16ead2(0x2db)][_0x16ead2(0x3a4)]===0x0&&this[_0x16ead2(0x3eb)](),this[_0x16ead2(0x2db)][_0x16ead2(0x2fc)](_0x11d36e),this[_0x16ead2(0x2fa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x11d36e],'isForwarded':!0x1});}[_0x369919(0x1e2)](_0x2998ef){const _0x182718=_0x369919;this['_selfUnitIDs'][_0x182718(0x428)](_0x2998ef),this[_0x182718(0x2db)][_0x182718(0x3a4)]===0x0&&this[_0x182718(0x24e)]&&window[_0x182718(0x30a)](this[_0x182718(0x24e)]);}[_0x369919(0x236)](){const _0x162345=_0x369919;this['disposeWithMe'](a[_0x162345(0x2e0)](S[_0x162345(0x3c5)](window,_0x162345(0x320))[_0x162345(0x296)](_0x38b199=>{const _0x7f7c86=_0x162345;if(_0x38b199[_0x7f7c86(0x2d4)]!==$e||!_0x38b199['newValue'])return;const _0x4975b2=JSON[_0x7f7c86(0x35f)](_0x38b199['newValue']);this[_0x7f7c86(0x2ef)](_0x4975b2);}))),window[_0x162345(0x3d3)](_0x162345(0x330),()=>this[_0x162345(0x2fa)]({'type':0x1,'memberID':this[_0x162345(0x31f)],'unitIDs':Array[_0x162345(0x25e)](this[_0x162345(0x2db)])}));}[_0x369919(0x2ef)](_0x5491c9){const _0x3d049c=_0x369919;switch(_0x5491c9['type']){case 0x0:this[_0x3d049c(0x308)](_0x5491c9);break;case 0x1:this[_0x3d049c(0x223)](_0x5491c9);break;case 0x2:this[_0x3d049c(0x37f)](_0x5491c9);break;}}[_0x369919(0x308)](_0x4a51af){const _0x2fd714=_0x369919,{unitIDs:_0x2e466,memberID:_0x69331c,isForwarded:_0x2d0b40}=_0x4a51af;_0x2e466[_0x2fd714(0x34d)](_0x21d886=>{const _0x1013b5=_0x2fd714;if(!_0x2d0b40&&this[_0x1013b5(0x3b9)][_0x1013b5(0x1d2)](_0x21d886)&&this['_ensureSubject'](_0x21d886)[_0x1013b5(0x28f)](_[_0x1013b5(0x213)][_0x1013b5(0x436)]),!this[_0x1013b5(0x3b9)][_0x1013b5(0x1d2)](_0x21d886)||!this['_unitOnClients'][_0x1013b5(0x364)](_0x21d886)[_0x1013b5(0x1d2)](_0x69331c)){const _0x509677=this['_unitOnClients'][_0x1013b5(0x364)](_0x21d886)||new Set();_0x509677['add'](_0x69331c),this[_0x1013b5(0x3b9)][_0x1013b5(0x2a3)](_0x21d886,_0x509677),this[_0x1013b5(0x1ff)](_0x69331c);}}),_0x2d0b40||this[_0x2fd714(0x2fa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2fd714(0x2db)]],'isForwarded':!0x0});}[_0x369919(0x1ff)](_0x467552){const _0x1bf618=_0x369919;this[_0x1bf618(0x2f6)](_0x467552);const _0x49409a=window[_0x1bf618(0x216)](()=>{const _0x553cef=_0x1bf618;this[_0x553cef(0x3b9)][_0x553cef(0x34d)](_0x1ccf10=>{const _0x43f8de=_0x553cef;_0x1ccf10[_0x43f8de(0x428)](_0x467552);});},ye*0x2);this['_clearOtherTimers'][_0x1bf618(0x2a3)](_0x467552,_0x49409a);}[_0x369919(0x2f6)](_0xe3dfd){const _0x5ba969=_0x369919;if(this['_clearOtherTimers'][_0x5ba969(0x1d2)](_0xe3dfd)){const _0x2fbd67=this[_0x5ba969(0x353)]['get'](_0xe3dfd);_0x2fbd67&&window['clearTimeout'](_0x2fbd67),this[_0x5ba969(0x353)][_0x5ba969(0x2a3)](_0xe3dfd,null);}}[_0x369919(0x223)](_0x3f3e2e){const _0x48db45=_0x369919,{memberID:_0xf25f3,unitIDs:_0x14aede}=_0x3f3e2e;_0x14aede[_0x48db45(0x34d)](_0x12ab72=>{const _0x4a4a08=_0x48db45;var _0x3bbc22;const _0x48ef62=this['_unitOnClients'][_0x4a4a08(0x364)](_0x12ab72);_0x48ef62&&(_0x48ef62[_0x4a4a08(0x428)](_0xf25f3),(_0x3bbc22=this[_0x4a4a08(0x389)](_0x12ab72))==null||_0x3bbc22[_0x4a4a08(0x28f)](_0x48ef62[_0x4a4a08(0x3a4)]===0x0?_[_0x4a4a08(0x213)][_0x4a4a08(0x3c6)]:_[_0x4a4a08(0x213)][_0x4a4a08(0x436)]));}),this[_0x48db45(0x2f6)](_0xf25f3);}[_0x369919(0x37f)](_0x475fc1){const _0x5a7f13=_0x369919;this[_0x5a7f13(0x1ff)](_0x475fc1[_0x5a7f13(0x1dd)]);}[_0x369919(0x2fa)](_0x5912c1){const _0x3bfa79=_0x369919;localStorage[_0x3bfa79(0x398)]($e,JSON['stringify'](_0x5912c1));}[_0x369919(0x3eb)](){const _0x42df01=_0x369919;this[_0x42df01(0x24e)]=window[_0x42df01(0x359)](()=>{const _0x43b066=_0x42df01;this[_0x43b066(0x2fa)]({'type':0x2,'memberID':this['_id']});},ye);}[_0x369919(0x389)](_0x3daea3){const _0x369c53=_0x369919;return this['_unitStatus'][_0x369c53(0x1d2)](_0x3daea3)||this['_unitStatus'][_0x369c53(0x2a3)](_0x3daea3,new S[(_0x369c53(0x277))](_['UnitStatus'][_0x369c53(0x3c6)])),this[_0x369c53(0x271)]['get'](_0x3daea3);}}var Ge=(_0x25fb7a=>(_0x25fb7a[_0x25fb7a[_0x369919(0x2d1)]=0x0]=_0x369919(0x2d1),_0x25fb7a[_0x25fb7a['OK']=0x1]='OK',_0x25fb7a[_0x25fb7a[_0x369919(0x2ee)]=0x2]='INTERNAL_ERROR',_0x25fb7a[_0x25fb7a[_0x369919(0x333)]=0x3]='PERMISSION_DENIED',_0x25fb7a[_0x25fb7a['NOT_FOUND']=0x4]='NOT_FOUND',_0x25fb7a[_0x25fb7a[_0x369919(0x2a0)]=0x5]=_0x369919(0x2a0),_0x25fb7a[_0x25fb7a['ALREADY_EXISTS']=0x6]=_0x369919(0x2ac),_0x25fb7a[_0x25fb7a[_0x369919(0x419)]=0x7]='INVALID_ARGUMENT',_0x25fb7a[_0x25fb7a[_0x369919(0x3ba)]=0x8]=_0x369919(0x3ba),_0x25fb7a[_0x25fb7a[_0x369919(0x2f9)]=0x9]='COMPLETION_FINISHED',_0x25fb7a[_0x25fb7a[_0x369919(0x3d8)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x25fb7a[_0x25fb7a['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x25fb7a[_0x25fb7a[_0x369919(0x372)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x25fb7a[_0x25fb7a[_0x369919(0x3a0)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x25fb7a[_0x25fb7a[_0x369919(0x397)]=0x1b59]=_0x369919(0x397),_0x25fb7a[_0x25fb7a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x369919(0x2fe),_0x25fb7a[_0x25fb7a[_0x369919(0x373)]=0x1b5b]=_0x369919(0x373),_0x25fb7a[_0x25fb7a['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x369919(0x356),_0x25fb7a[_0x25fb7a['APPLY_DUPLICATED']=0x1b5d]=_0x369919(0x1f2),_0x25fb7a[_0x25fb7a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x25fb7a[_0x25fb7a[_0x369919(0x3d4)]=0x2329]=_0x369919(0x3d4),_0x25fb7a[_0x25fb7a[_0x369919(0x3f0)]=0x232a]=_0x369919(0x3f0),_0x25fb7a[_0x25fb7a['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x25fb7a[_0x25fb7a[_0x369919(0x2a6)]=0x232c]=_0x369919(0x2a6),_0x25fb7a[_0x25fb7a['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x25fb7a[_0x25fb7a[_0x369919(0x2b8)]=0x2711]=_0x369919(0x2b8),_0x25fb7a[_0x25fb7a[_0x369919(0x3cf)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x25fb7a[_0x25fb7a['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x25fb7a[_0x25fb7a[_0x369919(0x1fe)]=0x2714]=_0x369919(0x1fe),_0x25fb7a[_0x25fb7a[_0x369919(0x3f7)]=-0x1]=_0x369919(0x3f7),_0x25fb7a))(Ge||{}),Ms=Object[_0x369919(0x3b8)],Us=Object[_0x369919(0x1e7)],Ns=(_0x1fa4e7,_0x310595,_0xc88043,_0x14f023)=>{for(var _0x2efdd2=_0x14f023>0x1?void 0x0:_0x14f023?Us(_0x310595,_0xc88043):_0x310595,_0x47ecaf=_0x1fa4e7['length']-0x1,_0x505405;_0x47ecaf>=0x0;_0x47ecaf--)(_0x505405=_0x1fa4e7[_0x47ecaf])&&(_0x2efdd2=(_0x14f023?_0x505405(_0x310595,_0xc88043,_0x2efdd2):_0x505405(_0x2efdd2))||_0x2efdd2);return _0x14f023&&_0x2efdd2&&Ms(_0x310595,_0xc88043,_0x2efdd2),_0x2efdd2;},de=(_0x4c5c9a,_0x12207f)=>(_0x20225c,_0x3e7327)=>_0x12207f(_0x20225c,_0x3e7327,_0x4c5c9a);exports[_0x369919(0x39e)]=class extends a[_0x369919(0x2f1)]{constructor(_0x32a0bb,_0x4238d6,_0x390714){const _0x24a2c3=_0x369919;super(),this['_instanceService']=_0x32a0bb,this[_0x24a2c3(0x205)]=_0x4238d6,this[_0x24a2c3(0x434)]=_0x390714;}async[_0x369919(0x370)](_0x154440,_0x1b643b,_0x419862,..._0xd41af){const _0x173ab1=_0x369919;var _0x20066d,_0x575b34,_0x4e555d,_0x5d198f;const _0x53f681=this[_0x173ab1(0x2e7)]['getFocusedUnit']();if(!_0x53f681)throw new Error(_0x173ab1(0x351));const _0xc74d4b=((_0x20066d=this[_0x173ab1(0x434)]['getConfig'](_[_0x173ab1(0x31e)]))!=null?_0x20066d:_[_0x173ab1(0x1e6)])+'/'+_0x154440+_0x173ab1(0x395)+_0x1b643b,_0x31ee8f=new URL(window['location'][_0x173ab1(0x347)]),_0x358d53={'scriptId':_0x154440,'runId':(_0x575b34=_0x31ee8f[_0x173ab1(0x25b)][_0x173ab1(0x364)](_0x173ab1(0x34f)))!=null?_0x575b34:'','function':_0x1b643b,'unitId':_0x53f681[_0x173ab1(0x355)](),'argsOfFunction':JSON[_0x173ab1(0x2b4)](_0xd41af),'invokeId':(_0x4e555d=_0x419862[_0x173ab1(0x23b)])!=null?_0x4e555d:'','executionId':(_0x5d198f=_0x419862['executionId'])!=null?_0x5d198f:''};try{const _0x581cfe=await this[_0x173ab1(0x205)][_0x173ab1(0x2f8)](_0xc74d4b,{'body':_0x358d53});return!(_0x581cfe[_0x173ab1(0x2f3)][_0x173ab1(0x2ab)]&&_0x581cfe[_0x173ab1(0x2f3)][_0x173ab1(0x2ab)][_0x173ab1(0x1f9)]!==Ge['OK']);}catch{return!0x1;}}},exports['RemoteUniscriptService']=Ns([de(0x0,a[_0x369919(0x3ec)]),de(0x1,a[_0x369919(0x420)](fe['HTTPService'])),de(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports[_0x369919(0x343)]=Ye,exports[_0x369919(0x22c)]=Re,exports[_0x369919(0x41f)]=je,exports[_0x369919(0x212)]=Ps,exports[_0x369919(0x417)]=Xe;
@@ -1 +1 @@
1
- 'use strict';const _0x1912f0=_0x1baa;function _0x1baa(_0x28375f,_0x573719){const _0xa705e=_0xa705();return _0x1baa=function(_0x1baa08,_0x52a58e){_0x1baa08=_0x1baa08-0x146;let _0x39f498=_0xa705e[_0x1baa08];return _0x39f498;},_0x1baa(_0x28375f,_0x573719);}(function(_0x142718,_0x527955){const _0x5eb8e8=_0x1baa,_0xd1f7b9=_0x142718();while(!![]){try{const _0x20742d=parseInt(_0x5eb8e8(0x15c))/0x1+parseInt(_0x5eb8e8(0x15a))/0x2+-parseInt(_0x5eb8e8(0x159))/0x3+-parseInt(_0x5eb8e8(0x151))/0x4*(-parseInt(_0x5eb8e8(0x155))/0x5)+-parseInt(_0x5eb8e8(0x150))/0x6+-parseInt(_0x5eb8e8(0x149))/0x7*(parseInt(_0x5eb8e8(0x148))/0x8)+parseInt(_0x5eb8e8(0x157))/0x9;if(_0x20742d===_0x527955)break;else _0xd1f7b9['push'](_0xd1f7b9['shift']());}catch(_0x1183a6){_0xd1f7b9['push'](_0xd1f7b9['shift']());}}}(_0xa705,0x5322b));const e={'collab-client':{'tooltip':{'reconnect':_0x1912f0(0x14e)}},'collabStatus':{'fetchMiss':_0x1912f0(0x147),'conflict':_0x1912f0(0x158),'notCollab':_0x1912f0(0x14d),'synced':_0x1912f0(0x15e),'syncing':_0x1912f0(0x14b),'offline':_0x1912f0(0x14a)},'session':{'connection-failed':_0x1912f0(0x14f),'will-retry':_0x1912f0(0x153),'room-full':_0x1912f0(0x15b),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x1912f0(0x152),'content':'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.'},'permission':{'title':_0x1912f0(0x154),'content':_0x1912f0(0x15d)},'collaboration':{'single-unit':{'warning':_0x1912f0(0x156)},'closeRoom':_0x1912f0(0x146)},'auth':{'needGotoLoginAlert':_0x1912f0(0x14c)}};function _0xa705(){const _0x15f0a7=['You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','6973299Kogcrr','Edit\x20conflicts','2034153YwLXFp','830440JiYeef','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','231558IFmCKu','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Syncing\x20server\x20data...','8TNKPAi','4113375AhgIAV','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Syncing...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Local\x20file','Click\x20to\x20Reconnect','Connection\x20failed,\x20please\x20check\x20your\x20network.','1442190VUWrfm','20rpclHc','Collaboration\x20Conflict','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Authentication\x20Error','424975FIRzJW'];_0xa705=function(){return _0x15f0a7;};return _0xa705();}module['exports']=e;
1
+ 'use strict';const _0x4c6f2e=_0x2b46;(function(_0x58edeb,_0x4408f6){const _0x378ad7=_0x2b46,_0x2cab74=_0x58edeb();while(!![]){try{const _0x5e7862=parseInt(_0x378ad7(0x147))/0x1+-parseInt(_0x378ad7(0x144))/0x2*(-parseInt(_0x378ad7(0x134))/0x3)+-parseInt(_0x378ad7(0x145))/0x4+parseInt(_0x378ad7(0x146))/0x5+parseInt(_0x378ad7(0x13e))/0x6*(parseInt(_0x378ad7(0x140))/0x7)+parseInt(_0x378ad7(0x13a))/0x8*(parseInt(_0x378ad7(0x141))/0x9)+-parseInt(_0x378ad7(0x143))/0xa*(parseInt(_0x378ad7(0x139))/0xb);if(_0x5e7862===_0x4408f6)break;else _0x2cab74['push'](_0x2cab74['shift']());}catch(_0x27ddc8){_0x2cab74['push'](_0x2cab74['shift']());}}}(_0x16d1,0xa8e86));function _0x2b46(_0x29d3a7,_0x20fb57){const _0x16d1c5=_0x16d1();return _0x2b46=function(_0x2b4628,_0x116157){_0x2b4628=_0x2b4628-0x130;let _0x1223b8=_0x16d1c5[_0x2b4628];return _0x1223b8;},_0x2b46(_0x29d3a7,_0x20fb57);}function _0x16d1(){const _0x9469aa=['715hoYEKw','7848wMyXGX','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','exports','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','710826bIXmMl','Synced','42IsCbhP','2799ttDvXU','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','267230BNMXWv','124LPuzNr','5500268kgdSEt','5963450bxkCnY','922415llNNsA','Syncing...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Collaboration\x20Conflict','32559CbqNDo','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Local\x20file','Authentication\x20Error','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'];_0x16d1=function(){return _0x9469aa;};return _0x16d1();}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x4c6f2e(0x136),'synced':_0x4c6f2e(0x13f),'syncing':_0x4c6f2e(0x130),'offline':_0x4c6f2e(0x132)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x4c6f2e(0x13d),'room-full':_0x4c6f2e(0x13b),'collaboration-timeout':_0x4c6f2e(0x138)},'conflict':{'title':_0x4c6f2e(0x133),'content':_0x4c6f2e(0x135)},'permission':{'title':_0x4c6f2e(0x137),'content':_0x4c6f2e(0x142)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x4c6f2e(0x131)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};module[_0x4c6f2e(0x13c)]=e;