@univerjs-pro/collaboration-client-ui 0.9.2 → 0.9.3-nightly.202507250750
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -0
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -0
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -0
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/index.d.ts +0 -2
- package/lib/types/locale/ca-ES.d.ts +3 -0
- package/lib/types/locale/es-ES.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +34 -18
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x28a245=_0x1afd;(function(_0x22c7a7,_0x301750){const _0x1e5b0b=_0x1afd,_0x52c467=_0x22c7a7();while(!![]){try{const _0x2eef69=parseInt(_0x1e5b0b(0x86))/0x1+-parseInt(_0x1e5b0b(0x88))/0x2+-parseInt(_0x1e5b0b(0x84))/0x3*(-parseInt(_0x1e5b0b(0x83))/0x4)+parseInt(_0x1e5b0b(0x7d))/0x5*(-parseInt(_0x1e5b0b(0x89))/0x6)+-parseInt(_0x1e5b0b(0x80))/0x7+parseInt(_0x1e5b0b(0x7c))/0x8+-parseInt(_0x1e5b0b(0x7b))/0x9*(parseInt(_0x1e5b0b(0x82))/0xa);if(_0x2eef69===_0x301750)break;else _0x52c467['push'](_0x52c467['shift']());}catch(_0x55b0cb){_0x52c467['push'](_0x52c467['shift']());}}}(_0x1340,0x3e537));const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');function _0x1afd(_0x2b8d99,_0x40f283){const _0x1340f7=_0x1340();return _0x1afd=function(_0x1afd85,_0x5df442){_0x1afd85=_0x1afd85-0x7b;let _0x2dcfc3=_0x1340f7[_0x1afd85];return _0x2dcfc3;},_0x1afd(_0x2b8d99,_0x40f283);}class c extends e['FUniver']{[_0x28a245(0x7e)](_0x338824,_0x1fc9ed,..._0x416884){const _0xb98ed0=_0x28a245;return this[_0xb98ed0(0x81)][_0xb98ed0(0x87)](t[_0xb98ed0(0x85)])[_0xb98ed0(0x7e)](_0x338824,_0x1fc9ed,{},..._0x416884);}}e['FUniver'][_0x28a245(0x7f)](c);function _0x1340(){const _0x3f178a=['_injector','110wSTSwU','2029556qBXFSy','3KHIJts','RemoteUniscriptService','324779uDpuJv','get','121890CcrtIL','6iNULkv','274977jWeEps','3340176urCZKb','1962960TvjPHT','runOnServer','extend','1433481vOUQRz'];_0x1340=function(){return _0x3f178a;};return _0x1340();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5df410=_0x4169;(function(_0x294fd3,_0x44f06c){const _0x24a236=_0x4169,_0x3e1811=_0x294fd3();while(!![]){try{const _0x1c13d3=parseInt(_0x24a236(0x290))/0x1*(-parseInt(_0x24a236(0x13a))/0x2)+parseInt(_0x24a236(0xd9))/0x3+-parseInt(_0x24a236(0x19c))/0x4*(-parseInt(_0x24a236(0x1e3))/0x5)+parseInt(_0x24a236(0x1fb))/0x6*(-parseInt(_0x24a236(0x14f))/0x7)+-parseInt(_0x24a236(0x2f9))/0x8+-parseInt(_0x24a236(0x1e1))/0x9*(parseInt(_0x24a236(0x19f))/0xa)+parseInt(_0x24a236(0x24a))/0xb;if(_0x1c13d3===_0x44f06c)break;else _0x3e1811['push'](_0x3e1811['shift']());}catch(_0x3f9a12){_0x3e1811['push'](_0x3e1811['shift']());}}}(_0x1d10,0xeb154));var Ve=Object[_0x5df410(0x119)],Xe=(_0x5ee909,_0x36ac9e,_0x11b6c2)=>_0x36ac9e in _0x5ee909?Ve(_0x5ee909,_0x36ac9e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11b6c2}):_0x5ee909[_0x36ac9e]=_0x11b6c2,h=(_0x5501a6,_0x2533f6,_0x4f1285)=>Xe(_0x5501a6,typeof _0x2533f6!=_0x5df410(0xbb)?_0x2533f6+'':_0x2533f6,_0x4f1285);Object[_0x5df410(0x119)](exports,Symbol[_0x5df410(0x1d5)],{'value':_0x5df410(0x1b1)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x5df410(0x12c)],ze=(_0x3b2c43,_0x6c40bd,_0x3fb709,_0x45c9ae)=>{const _0x20fa7b=_0x5df410;for(var _0x610107=_0x45c9ae>0x1?void 0x0:_0x45c9ae?qe(_0x6c40bd,_0x3fb709):_0x6c40bd,_0x5b1b87=_0x3b2c43[_0x20fa7b(0x270)]-0x1,_0x387e1a;_0x5b1b87>=0x0;_0x5b1b87--)(_0x387e1a=_0x3b2c43[_0x5b1b87])&&(_0x610107=_0x387e1a(_0x610107)||_0x610107);return _0x610107;},Oe=(_0x49bf37,_0x503d91)=>(_0x41ff14,_0x119c30)=>_0x503d91(_0x41ff14,_0x119c30,_0x49bf37);function _0x1d10(){const _0x25fe4d=['_refRangeService','function','fromEventSubject','send','_initStatusComponent','univer-flex\x20univer-items-center','LocaleService','_hovered','color','getOffsetConfig','data','_lastPointer','INVITE_CODE_REQUIRED','InsertColCommandId','sessionStatus$','string','updateOfflineData','_hideTimer','_syncEditingCollabCursorService','UPDATE_CURSOR','_roomMembers$','onPointerEnter$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_entities','onRendered','ranges','toDisposable','toStringTag','icon','pipe','storage','requireSession','_handleLeaveEvent','onMouseMove','arc','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','registerComponent','activeSheet$','0\x200\x2017\x2016','9ilPeUX','_saveTaskMap','1915FWhyUw','LOCAL_CACHE_INTERVAL_KEY','isEditing','_onCursorDelete','white','OffLineIcon','LICENSE_MAX_UNITS_EXCEEDED','_textBubble','get','_initDependencies','roomMembers$','ALREADY_EXISTS','skeleton','code','deserializeRangeWithSheet','setActiveRange','YUUMI_AI_RUN_FAILED','IRemoteInstanceService','forEach','useDependency','_eventUnsubscribe','name','off-line-icon_clip0_910_343','registerRefRange','7254jXrFoA','0\x200\x2016\x2016','blue.400','takeUntil','_init','min','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','setTimeout','getTypeOfUnitAdded$','BehaviorSubject','setUndoRedoMutationParamsCache','COMPLETION_FINISHED','complete','_saveCache','currentColor','_transformHistoryAndStateStack','replace','_onCursorUpdate','disposeUnit','fillText','MoveRangeCommandId','split','_urlService','LICENSE_EXPORT_SIZE_EXCEEDED','_cursor','onLocalMutation','Vector2','onTransformChange$','reconnect','RECT','entries','IUniverInstanceService','collabStatus.syncing','_id','SUBMIT_CHANGESET_TIMEOUT','newValue','YUUMI_SUBSCRIPTION_NOT_FOUND','_beforeCloseService','getCellPositionByOffset','_anchorDot','hide','clipPath','fill','MOBILE_VERIFY_CODE_MISMATCH','location','merge','undoState','xlink:href','use','event$','m1Prime','_backgroundColor','_collaborationController','CollaborationSessionService','getColor','connectInjector','roomMembers','Warning','MessageType','path','_scheduleHeartbeat','beginPath','DocIMEInputManagerService','_messageService','OTHER_CLIENTS_EDITING','_registerDependencies','_localStorageService','_online','ColorKit','_getScale','session.collaboration-timeout','getFocusedUnit','hovered','_docTransformIMECacheService','enableLocalCache','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','collaboration.closeRoom','SOCKET_FAILED','onPointerLeave$','24645335eQAvIX','isTransformMutationsWithChangesetSuccess','next','CHANGESET_REVISION_CONFILICT','params','LOCAL_CACHE_INTERVAL','entityInit$','jsxs','includes','RefRangeService','_logService','PERMISSION_DENIED','getSheetBySheetId','RevisionService','RemoteUniscriptService','_collabCursorState$','transformMutation','UNRECOGNIZED','currentTheme$','redoState','_send','column','assign','Tools','executeCommand','red.300','BuiltInUIPart','_injector','getColorFromTheme','result','NOT_COLLAB','_configService','INVALID_INVITE_CODE','UNDEFINED','_anchor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','urlChange$','unshift','length','measureText','saveOfflineData','displayName','SheetCollabCursorShape','MOBILE_HAS_BEEN_BOUND','_colorIndex','purple.300','lineTo','on-line-icon_clip0_910_349','row','getCurrentRevOfUnit','transformRemoteChangeset','_removeClearOtherTimer','ACTIVE_UNIT_EVENT_CHANNEL','on-line-icon','mergeOverrideWithDependencies','startsWith','cursorInfo$','startColumn','currentSkeleton$','createElement','getTypeOfUnitDisposed$','transformMutationsWithChangeset','_initEvent','RxDisposable','flatMap','defIds','_getSaveTimeout','DesktopCollaborationStatusDisplayController','getRelativeToViewportCoord','LICENSE_DISTRO_REJECTED','12SjhfUk','Optional','tag','CONNECTOR_DATA_TOO_LARGE','ticket','isTransformMutationFailure','url(#off-line-icon_clip0_910_343)','NodePositionConvertToCursor','[RemoteUniscriptService]:\x20no\x20focused\x20unit','dispose','idSuffix','EffectRefRangId','show','addHandlerCallback','editingUnit','CollaborationController','substring','PENDING','_commandService','[CollaborationDataLoaderController]','getSheetId','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','INotificationService','_labelPosition','Tooltip','Injector','_setupSubUnitSync','useRef','ONLINE','some','_sheetSkeletonManagerService','getCurrentUnitForType','fillStyle','_scheduleClearOtherTimer','stringify','_document','YUUMI_NO_CUBOID_FOR_QUESTION','YUUMI_CONNECTOR_URL_NOT_FOUND','Inject','status$','textRanges','Error','YUUMI_RATE_OVER_LIMIT','AWAITING_WITH_PENDING','_hover','USER_NOT_INVITED_CODE','_initStatusListener','MemberService','_render','handleInsertCol','top','getStateCache','RichTextEditingMutation','bottom','IBeforeCloseService','ENSURE_SNAPSHOT_EXECUTION','clsx','evenodd','whenReady','getParam','getActiveSheet','APPLY_NON_SEQUENTIAL_REVISION','Unknown\x20user','collabStatus.notCollab','dispose$','switchMap','_name','IConfigService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','SetWorksheetActivateCommand','SNAPSHOT_INVALID_SNAPSHOT','_docTransformSelectionsService','search','SetSelectionsOperation','_getSheetObject','getMemberID','getMember','delete','loadOfflineData','assignAColorForMemberID','DataLoaderService','history','type','BrowserCollaborationSocketService','DocSkeletonManagerService','collab-text-anchor-','_drawRectRange','toString','_collabCursorController','error','href','createIdentifier','session.connection-failed','setParam','InsertRangeMoveRightCommandId','getDocRanges','Rect','propertyIsEnumerable','pushState','TEXT','_cursors','height','findNodePositionByCharIndex','handleDeleteRangeMoveUp','INVITE_CODE_ALREADY_BOUND','6265304sGKaoh','runRefRangeMutations','drawWith','none','labelPosition','_drawAnchor','call','DeleteRangeMoveUpCommandId','getSkeleton','UniverCollaborationClientUIPlugin','then','ILocalCacheService','getCoordByCell','_docSkeletonManagerService','doc.mutation.rich-text-editing','_docSyncEditingCollabCursorService','jsx','closePath','CONFLICT','_heartbeatTimer','Workbook','Plugin','concat','_localeService','CollaborationDataLoaderController','_cachedData','YUUMI_ASYNCIO_CANCELLED','translate(.97)','FETCH_MISS','body','indexOf','init','asObservable','executionId','colorChannel1','getUniverSheetInstance','debug','endRow','_scene','getUnitId','size','LOGIN_FAILED','YUUMI_ALL_TABLES_IS_INVALID','M0\x200H16V16H0z','handleIRemoveCol','handleDeleteRangeMoveLeft','HTTPService','transformSelections','triggerDblclick','searchParams','black','save','with','_initResize','univer-mr-2\x20univer-flex\x20univer-text-xl','unitId','CollaborationSocketService','fillRule','range','useObservable','subscribe','from','_localCacheService','invokeId','sheetID','symbol','univerjs-icon\x20univerjs-icon-','mask','deepClone','collabStatus.offline','getUnhiddenWorksheets','YUUMI_URL_COL_OUT_OF_RANGE','_doCreateSocket','1em','_startDocCollabCursor','CollaborationUIEventService','replaceState','registerRenderModule','_unitStatus','UniverCollaborationClientPlugin','setAlpha','_getAnchorBounding','saveTaskMap','imageSourceType','NO_OTHER_CLIENTS_EDITING','restore','UNIVER_DOC','find','unitID','_disabled','_shapes','addObject','SessionStatus','APPLY_DUPLICATED','InsertRowCommandId','3777042oGtWqE','RemoveColCommandId','CLOSE_ROOM','getCollabCursors$','IMessageService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_colorAssignService','/run/','ISnapshotServerService','getVpScrollXYInfoByPosToVp','RegularPolygon','_getSessionTicket','IDocClipboardService','replaceDocRanges','_updateSubUnitFromURLParams','set','UniverInstanceType','runOnServer','TEXT_RANGE_LAYER_INDEX','m2Prime','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_entityInit$','map','COLORS','_updateLocalCursor','fromEvent','exhaustSavingTask','EMAIL_VERIFY_CODE_MISMATCH','application/json','subunit','selection','Disposable','SHEET_VIEWPORT_KEY','_transformPreviousActiveRange','LICENSE_IMPORT_SIZE_EXCEEDED','yellow.400','transformIMECache','getItem','random','unsubscribe','APPLY_REJECT','apply','_cursorInfo$','createSocket','setShapeProps','SYNCED','filter','removeParam','CollaborationStatusDisplay','_removeCollabCursors','_context','_instanceService','collabStatus.synced','runId','rgba(255,\x20255,\x20255,\x200.01)','_unitOnClients','url(#$1','transformStateCache','_registerRenderDependencies','getLocalCacheKey','onCommandExecuted','syncEditingCollabCursor','current','_updateCollabCursors','defineProperty','INVALID_ARGUMENT','off-line-icon','sessionTicket','_toggleOnline','contains','disableLocalCache','mapTo','_revisionService','subscribeEvent','handleIRemoveRow','text','getOwnPropertySymbols','addObjects','_createSocketURL','getConfig','OFFLINE','_memberService','attrs','getOwnPropertyDescriptor','getValue','transformByState','eventID','isActive','debounce','cursorInfo','collab-client.tooltip.reconnect','_range','saveImage','handleMoveRange','INVITE_CODE_HAS_BEEN_UES','_updateURLWithCurrentState','FromArray','50082GCJush','selections','_cursorShapes','max','_univerInstanceService','UNAUTHENTICATED','extend','createInstance','isArray','_drawTextRange','_uiPartsService','_docClipboardService','getAncestorScale','_ensureSubject','DocStateChangeManagerService','font','round','disposeWithMe','svg','DEFAULT_WS_SESSION_TICKET_URL','getRangePointData','4788tqzUxH','green.600','APPLY_PERMISSION_DENIED','_docTransformStateCacheService','_color','_initCommandExecutedListener','HEADER_MENU','_dataLoaderService','UniverIcon','_clearOtherTimers','mutations','registerDependencies','addEventListener','_getMergeRange','collaboration-client-ui.config','JOIN_ROOM_FAILED','_transformService','clearInterval','getCurrent','DOC_RANGE_TYPE','CollaborationUIEventId','_config','className','IImageIoService','generateRandomId','div','debounceTime','useCallback','_handleJoinEvent','toRgbString','NodePositionConvertToRectRange','hasOwnProperty','unit','AWAITING','ICommandService','SetDocZoomRatioOperation','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','SNAPSHOT_HAS_BEEN_REMOVED','width','_setupBeforeClosingHandler','_handleHover','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','YUUMI_UNABLE_LOAD_URL','APPLY_REVISION_CONFILICT','collaboration.single-unit.warning','_status$','add','DocCollaborationEntity','values','unload','_notificationService','UnitStatus','makeDirty','memberID','_session','OTHER_CLIENT_EDITING','defs','Subject','_assignedColors','_scheduleSaving','NOT_FOUND','TOO_MANY_REQUESTS','collab-rect-range-','CollaborationEvent','_docStateChangeManagerService','forwardRef','combineLatest','startRow','focused$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','prototype','...','IUIPartsService','ITransformService','UNIVER_SHEET','_transformUndoRedoStack','collaboration-client.offline-data-not-saved','3348xwwMKP','has','getRenderById','9465590iGKDho','USERS_LEAVE','_draw','http://www.w3.org/2000/svg','permission.title','sheetId','getActiveRange','_startSheetCollabCursor','push','setItem','_renderManagerService','CollaborationStatus','ILogService','ISocketService','source','onStarting','_docSkeleton','_selfUnitIDs','Module','_refreshCollabCursors','IRenderManagerService','_httpService','getUndoRedoMutationParamsCache','_toggleOffline','WebSocketService','_themeService','EMAIL_HAS_BEEN_BOUND'];_0x1d10=function(){return _0x25fe4d;};return _0x1d10();}let de=class extends a[_0x5df410(0x289)]{constructor(_0x3b8aa0,_0x141061){const _0x368581=_0x5df410;super(),this[_0x368581(0x145)]=_0x3b8aa0,this['_imageIoService']=_0x141061,this[_0x368581(0x1ff)]();}['_init'](){const _0x1e151b=_0x5df410,_0x36f06d=this;this[_0x1e151b(0x14b)](this[_0x1e151b(0x145)]['addClipboardHook']({'onBeforePasteImage':async _0x4ab2df=>{const _0x2037ca=_0x1e151b,_0x9b4ec0=await _0x36f06d['_imageIoService'][_0x2037ca(0x135)](_0x4ab2df);return _0x9b4ec0?{'source':_0x9b4ec0[_0x2037ca(0x1ad)],'imageSourceType':_0x9b4ec0[_0x2037ca(0xcd)]}:null;}}));}};de=ze([Oe(0x0,E[_0x5df410(0xe5)]),Oe(0x1,Ge[_0x5df410(0x166)])],de);const Te=[_0x5df410(0x277),'jiqing.500',_0x5df410(0x150),_0x5df410(0x263),_0x5df410(0x1fd),_0x5df410(0xfc)];class me extends a['Disposable']{constructor(){const _0x1a94f2=_0x5df410;super(...arguments),h(this,_0x1a94f2(0x189),new Map()),h(this,_0x1a94f2(0x276),0x0);}[_0x5df410(0x2df)](_0x458a09){const _0x291c5d=_0x5df410;if(this[_0x291c5d(0x189)][_0x291c5d(0x19d)](_0x458a09))return this[_0x291c5d(0x189)][_0x291c5d(0x1eb)](_0x458a09);const _0x4961fe=Te[this[_0x291c5d(0x276)]];return this[_0x291c5d(0x276)]=(this[_0x291c5d(0x276)]+0x1)%Te[_0x291c5d(0x270)],this[_0x291c5d(0x189)]['set'](_0x458a09,_0x4961fe),_0x4961fe;}}function Pe(_0x3e0e25){const _0x503f82=_0x5df410;let _0x45ff76='';for(const _0x4bd22a of _0x3e0e25){const {startOffset:_0x5e3a12,endOffset:_0x3ec592,isActive:_0x5e4f1c,rangeType:_0x43da4a,segmentId:_0xf3cd25,segmentPage:_0x47e3e2}=_0x4bd22a;_0x45ff76[_0x503f82(0x270)]&&(_0x45ff76+=','),_0x45ff76+=_0x5e3a12+':'+_0x3ec592+':'+(_0x5e4f1c?'1':'0')+':'+_0x43da4a+':'+_0xf3cd25+':'+_0x47e3e2;}return _0x45ff76;}function _0x4169(_0x154991,_0xba2c74){const _0x1d1033=_0x1d10();return _0x4169=function(_0x41698a,_0x42999c){_0x41698a=_0x41698a-0xa2;let _0x5cef5b=_0x1d1033[_0x41698a];return _0x5cef5b;},_0x4169(_0x154991,_0xba2c74);}function Je(_0x412c82){const _0x27cb1d=_0x5df410,_0x2b06f7=_0x412c82[_0x27cb1d(0x210)](','),_0x57694d=[];for(const _0x1f4af0 of _0x2b06f7){const [_0xc1c1b7,_0x53d8bb,_0x5064d1,_0x51e04c,_0x2e8e9a,_0x31c225]=_0x1f4af0['split'](':');_0x57694d[_0x27cb1d(0x1a7)]({'startOffset':Number(_0xc1c1b7),'endOffset':Number(_0x53d8bb),'collapsed':_0xc1c1b7===_0x53d8bb,'isActive':_0x5064d1==='1','rangeType':_0x51e04c===a[_0x27cb1d(0x162)][_0x27cb1d(0x2f3)]?a[_0x27cb1d(0x162)][_0x27cb1d(0x2f3)]:a[_0x27cb1d(0x162)]['RECT'],'segmentId':typeof _0x2e8e9a==_0x27cb1d(0x1c9)?String(_0x2e8e9a):'','segmentPage':Number(_0x31c225!=null?_0x31c225:-0x1)});}return _0x57694d[_0x27cb1d(0x2ad)](_0x10d199=>_0x10d199[_0x27cb1d(0x130)])||(_0x57694d[0x0][_0x27cb1d(0x130)]=!0x0),_0x57694d;}class Ce extends a[_0x5df410(0x289)]{constructor(){const _0xa4c34c=_0x5df410;super(...arguments),h(this,_0xa4c34c(0x259),new d[(_0xa4c34c(0x204))](null)),h(this,'collabCursorState$',this['_collabCursorState$'][_0xa4c34c(0x319)]());}[_0x5df410(0x116)](_0x31691){const _0x2970a=_0x5df410,{unitID:_0x14a96f,memberID:_0x2dacfe,textRanges:_0x5a745f}=_0x31691,_0x209598=Pe(_0x5a745f);if(_0x209598==='')return;const _0x5dbf5b={'unitID':_0x14a96f,'memberID':_0x2dacfe,'selection':_0x209598};this[_0x2970a(0x259)]['next'](_0x5dbf5b);}}var Ze=Object[_0x5df410(0x12c)],Qe=(_0x4e3c52,_0x3fdd13,_0xec6966,_0x25062a)=>{const _0x516e79=_0x5df410;for(var _0x22b2b1=_0x25062a>0x1?void 0x0:_0x25062a?Ze(_0x3fdd13,_0xec6966):_0x3fdd13,_0x2c7c90=_0x4e3c52[_0x516e79(0x270)]-0x1,_0x36f934;_0x2c7c90>=0x0;_0x2c7c90--)(_0x36f934=_0x4e3c52[_0x2c7c90])&&(_0x22b2b1=_0x36f934(_0x22b2b1)||_0x22b2b1);return _0x22b2b1;},L=(_0x15f9e6,_0x25aab5)=>(_0x862a3b,_0xfeff71)=>_0x25aab5(_0x862a3b,_0xfeff71,_0x15f9e6);const et=0x12c,tt=0x64;let Ie=class extends a['RxDisposable']{constructor(_0x49ba18,_0x5defea,_0x2c50d3,_0x1cd473,_0x1a63b2,_0x467e58,_0x57717a,_0x30a2c3,_0x49ba25){const _0x2b9cfc=_0x5df410;super(),h(this,_0x2b9cfc(0x23e),!0x1),h(this,_0x2b9cfc(0x1ff),!0x1),h(this,_0x2b9cfc(0x103),new d[(_0x2b9cfc(0x204))](new Map())),h(this,'cursorInfo$',this[_0x2b9cfc(0x103)][_0x2b9cfc(0x319)]()),h(this,_0x2b9cfc(0x1ce),new d['BehaviorSubject']([])),h(this,_0x2b9cfc(0x1ed),this[_0x2b9cfc(0x1ce)][_0x2b9cfc(0x1d7)](d[_0x2b9cfc(0x169)](et))),h(this,'_updateLocalCursor',a[_0x2b9cfc(0x131)](_0x5e2bbe=>{const _0x1724b0=_0x2b9cfc,_0x3b5702={'eventID':m[_0x1724b0(0x18e)][_0x1724b0(0x1cd)],'data':{'unitID':this[_0x1724b0(0xd2)],'memberID':this[_0x1724b0(0x185)]['getMemberID'](),'selection':Pe(_0x5e2bbe)}};this[_0x1724b0(0x185)][_0x1724b0(0x1bd)](_0x3b5702,this['unitID']);},tt)),(this[_0x2b9cfc(0xd2)]=_0x49ba18,this[_0x2b9cfc(0x185)]=_0x5defea,this[_0x2b9cfc(0x265)]=_0x2c50d3,this[_0x2b9cfc(0xdf)]=_0x1cd473,this[_0x2b9cfc(0x12a)]=_0x1a63b2,this[_0x2b9cfc(0x1cc)]=_0x467e58,this['_transformService']=_0x57717a,this[_0x2b9cfc(0x13e)]=_0x30a2c3,this[_0x2b9cfc(0x2a2)]=_0x49ba25);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x5df410(0x233)](){const _0x3f1d63=_0x5df410;return this['_roomMembers$'][_0x3f1d63(0x12d)]();}['dispose'](){const _0x176614=_0x5df410;super[_0x176614(0x299)](),this[_0x176614(0x103)][_0x176614(0x24c)](new Map()),this[_0x176614(0x103)][_0x176614(0x207)](),this[_0x176614(0x1ce)]['next']([]),this[_0x176614(0x1ce)][_0x176614(0x207)]();}[_0x5df410(0x318)](){const _0x4a802e=_0x5df410;this[_0x4a802e(0x1ff)]||(this['_init']=!0x0,this[_0x4a802e(0x185)][_0x4a802e(0x1c8)][_0x4a802e(0x1d7)](d[_0x4a802e(0x1fe)](this[_0x4a802e(0x2d0)]))['subscribe'](_0x128f84=>{const _0x18e055=_0x4a802e;_0x128f84===u['SessionStatus'][_0x18e055(0x2ac)]?this[_0x18e055(0x11d)]():this[_0x18e055(0x1b6)]();}),this[_0x4a802e(0x185)]['event$'][_0x4a802e(0x1d7)](d[_0x4a802e(0x1fe)](this[_0x4a802e(0x2d0)]))[_0x4a802e(0xb6)](_0x3fb351=>{const _0x3285c9=_0x4a802e,_0x120664=_0x3fb351[_0x3285c9(0x12f)];_0x120664===m[_0x3285c9(0x18e)][_0x3285c9(0x1cd)]&&this[_0x3285c9(0x20c)](_0x3fb351),_0x120664===m['CollaborationEvent'][_0x3285c9(0x1a0)]&&this[_0x3285c9(0x1e6)](_0x3fb351);}),this[_0x4a802e(0x14b)](this[_0x4a802e(0x2a2)][_0x4a802e(0x115)](_0x387423=>{const _0x2e29b3=_0x4a802e,_0x126b41=_0x387423[_0x2e29b3(0x24e)];_0x126b41!=null&&this[_0x2e29b3(0x23e)]&&_0x387423['id']===Y['SetTextSelectionsOperation']['id']&&_0x126b41[_0x2e29b3(0xb1)]===this[_0x2e29b3(0xd2)]&&_0x126b41[_0x2e29b3(0x1e5)]===!0x1&&_0x126b41[_0x2e29b3(0x1d3)][_0x2e29b3(0x270)]>0x0&&this[_0x2e29b3(0xf1)](_0x126b41[_0x2e29b3(0x1d3)]);})),this[_0x4a802e(0x1cc)]['collabCursorState$']['pipe'](d[_0x4a802e(0x1fe)](this[_0x4a802e(0x2d0)]))['subscribe'](_0x3739f9=>{const _0x217b2f=_0x4a802e;if((_0x3739f9==null?void 0x0:_0x3739f9[_0x217b2f(0xd2)])!==this[_0x217b2f(0xd2)])return;const _0x156d49={'eventID':m['CollaborationEvent'][_0x217b2f(0x1cd)],'data':_0x3739f9};this['_onCursorUpdate'](_0x156d49);}),this[_0x4a802e(0x14b)](this['_commandService'][_0x4a802e(0x115)](_0x56d731=>{const _0x134792=_0x4a802e;if(_0x56d731[_0x134792(0x24e)]==null)return;const _0x49dfd0=_0x56d731[_0x134792(0x24e)];if(_0x56d731['id']!==Y[_0x134792(0x2c4)]['id']||_0x49dfd0[_0x134792(0xb1)]!==this[_0x134792(0xd2)])return;const _0x534ef5={'id':'doc.mutation.rich-text-editing','params':_0x49dfd0},_0x455f01=this[_0x134792(0x132)];for(const [_0x23f680,_0x44daeb]of _0x455f01){const _0x28a104={'id':_0x134792(0x307),'params':{'unitId':this[_0x134792(0xd2)],'actions':null,'textRanges':_0x44daeb[_0x134792(0x1d3)]}},_0x4284d3=this['_transformService']['transformMutation'](_0x534ef5,_0x28a104,!0x1);if(m[_0x134792(0x295)](_0x4284d3))throw _0x4284d3[_0x134792(0x2e9)];_0x455f01[_0x134792(0xe8)](_0x23f680,{..._0x44daeb,'ranges':_0x4284d3[_0x134792(0xec)][_0x134792(0x24e)][_0x134792(0x2b8)]});}queueMicrotask(()=>{const _0x361e3b=_0x134792;this[_0x361e3b(0x103)]['next'](_0x455f01);});})));}[_0x5df410(0x20c)](_0xb590c1){const _0xae3459=_0x5df410;var _0x56fde3,_0x2ceca1;const {memberID:_0x615b8b,selection:_0x5f07f2}=_0xb590c1[_0xae3459(0x1c4)],_0x56b1f8=Je(_0x5f07f2),_0xd8fb40=(_0x2ceca1=(_0x56fde3=this[_0xae3459(0x12a)][_0xae3459(0x2dc)](this[_0xae3459(0xd2)],_0x615b8b))==null?void 0x0:_0x56fde3[_0xae3459(0x1f8)])!=null?_0x2ceca1:_0xae3459(0x2ce),_0x23e469={'color':this[_0xae3459(0xdf)][_0xae3459(0x2df)](_0x615b8b),'name':_0xd8fb40,'ranges':_0x56b1f8},_0x26a74d=this['cursorInfo'];_0x26a74d[_0xae3459(0xe8)](_0x615b8b,_0x23e469),this[_0xae3459(0x103)][_0xae3459(0x24c)](_0x26a74d);}['_onCursorDelete'](_0x26a159){const _0x54feee=_0x5df410,{memberID:_0x2287c8}=_0x26a159[_0x54feee(0x1c4)],_0x48f819=this['cursorInfo'];_0x48f819[_0x54feee(0x2dd)](_0x2287c8),this[_0x54feee(0x103)][_0x54feee(0x24c)](_0x48f819);}[_0x5df410(0x11d)](){const _0x1d8c55=_0x5df410;var _0x3c34bf;if(this[_0x1d8c55(0x23e)]=!0x0,((_0x3c34bf=this[_0x1d8c55(0x13e)][_0x1d8c55(0x242)]())==null?void 0x0:_0x3c34bf[_0x1d8c55(0x320)]())!==this[_0x1d8c55(0xd2)])return;const _0x304713=this[_0x1d8c55(0x265)]['get'](Y['DocSelectionManagerService'])[_0x1d8c55(0x2ef)]();Array['isArray'](_0x304713)&&_0x304713[_0x1d8c55(0x270)]>0x0&&this[_0x1d8c55(0xf1)](_0x304713);}[_0x5df410(0x1b6)](){this['_online']=!0x1;}};Ie=Qe([L(0x2,a[_0x5df410(0x2b6)](a[_0x5df410(0x2a9)])),L(0x3,a[_0x5df410(0x2b6)](me)),L(0x4,a['Inject'](u[_0x5df410(0x2bf)])),L(0x5,a[_0x5df410(0x2b6)](Ce)),L(0x6,m[_0x5df410(0x198)]),L(0x7,a[_0x5df410(0x21a)]),L(0x8,a[_0x5df410(0x171)])],Ie);var st=Object[_0x5df410(0x12c)],it=(_0xd2afba,_0x49bf48,_0x2827de,_0x30434e)=>{const _0x2d4692=_0x5df410;for(var _0x5b4ddb=_0x30434e>0x1?void 0x0:_0x30434e?st(_0x49bf48,_0x2827de):_0x49bf48,_0x47a74a=_0xd2afba[_0x2d4692(0x270)]-0x1,_0x2931ec;_0x47a74a>=0x0;_0x47a74a--)(_0x2931ec=_0xd2afba[_0x47a74a])&&(_0x5b4ddb=_0x2931ec(_0x5b4ddb)||_0x5b4ddb);return _0x5b4ddb;},A=(_0xf9d182,_0x165418)=>(_0x2dc4b9,_0xcfdd68)=>_0x165418(_0x2dc4b9,_0xcfdd68,_0xf9d182);const nt=0x12c,rt=0x64,ot=()=>{let _0x15ae60=[],_0x47650f=!0x1;return _0x5356b4=>{_0x15ae60['push'](_0x5356b4),_0x47650f||(_0x47650f=!0x0,setTimeout(()=>{const _0x2dec87=_0x4169;_0x15ae60[_0x2dec87(0x1f5)](_0x18d143=>_0x18d143()),_0x15ae60=[],_0x47650f=!0x1;}));};};let Se=class extends a[_0x5df410(0x289)]{constructor(_0x512486,_0x15e403,_0x29f8ee,_0x34fbd2,_0x4dcef8,_0x2aae5a,_0x5334b0,_0x33978f){const _0x43019b=_0x5df410;super(),h(this,_0x43019b(0x23e),!0x1),h(this,'_init',!0x1),h(this,_0x43019b(0x103),new d[(_0x43019b(0x204))](new Map())),h(this,_0x43019b(0x282),this['_cursorInfo$'][_0x43019b(0x319)]()),h(this,_0x43019b(0x1ce),new d[(_0x43019b(0x204))]([])),h(this,'roomMembers$',this[_0x43019b(0x1ce)][_0x43019b(0x1d7)](d[_0x43019b(0x169)](nt))),h(this,'_updateLocalCursor',a[_0x43019b(0x131)]((_0xd1a04f,_0x176571)=>{const _0x53ecf7=_0x43019b,_0x590941={'eventID':m['CollaborationEvent'][_0x53ecf7(0x1cd)],'data':{'unitID':this[_0x53ecf7(0xd2)],'memberID':this['_session'][_0x53ecf7(0x2db)](),'selection':be['serializeRangeWithSheet'](_0xd1a04f,_0x176571[_0x53ecf7(0xb4)])}};this['_session'][_0x53ecf7(0x1bd)](_0x590941,this[_0x53ecf7(0xd2)]);},rt)),(this[_0x43019b(0xd2)]=_0x512486,this[_0x43019b(0x185)]=_0x15e403,this['_injector']=_0x29f8ee,this[_0x43019b(0xdf)]=_0x34fbd2,this[_0x43019b(0x12a)]=_0x4dcef8,this[_0x43019b(0x13e)]=_0x2aae5a,this['_commandService']=_0x5334b0,this['_refRangeService']=_0x33978f);}get[_0x5df410(0x132)](){const _0x4ced5d=_0x5df410;return this[_0x4ced5d(0x103)][_0x4ced5d(0x12d)]();}get[_0x5df410(0x233)](){const _0x2a7f46=_0x5df410;return this[_0x2a7f46(0x1ce)][_0x2a7f46(0x12d)]();}[_0x5df410(0x299)](){const _0x126b60=_0x5df410;super[_0x126b60(0x299)](),this[_0x126b60(0x103)]['next'](new Map()),this[_0x126b60(0x103)][_0x126b60(0x207)](),this[_0x126b60(0x1ce)][_0x126b60(0x24c)]([]),this[_0x126b60(0x1ce)][_0x126b60(0x207)]();}['init'](){const _0x42a091=_0x5df410;this[_0x42a091(0x1ff)]||(this[_0x42a091(0x1ff)]=!0x0,this[_0x42a091(0x185)][_0x42a091(0x1c8)]['pipe'](d[_0x42a091(0x1fe)](this['dispose$']))[_0x42a091(0xb6)](_0x3939d7=>{const _0x50aec6=_0x42a091;_0x3939d7===u[_0x50aec6(0xd6)][_0x50aec6(0x2ac)]?this[_0x50aec6(0x11d)]():this['_toggleOffline']();}),this[_0x42a091(0x185)]['event$'][_0x42a091(0x1d7)](d['takeUntil'](this[_0x42a091(0x2d0)]))[_0x42a091(0xb6)](_0x168740=>{const _0x328ab4=_0x42a091,_0x14bcda=_0x168740[_0x328ab4(0x12f)];_0x14bcda===m[_0x328ab4(0x18e)][_0x328ab4(0x1cd)]&&this['_onCursorUpdate'](_0x168740),_0x14bcda===m[_0x328ab4(0x18e)]['USERS_LEAVE']&&this[_0x328ab4(0x1e6)](_0x168740);}),this['_onRefRangeChange'](),this[_0x42a091(0x14b)](this[_0x42a091(0x2a2)]['onCommandExecuted'](_0x51bf32=>{const _0x549b5b=_0x42a091;if(this['_online']&&_0x51bf32['id']===g[_0x549b5b(0x2d9)]['id']&&_0x51bf32[_0x549b5b(0x24e)][_0x549b5b(0xb1)]===this[_0x549b5b(0xd2)]){const _0x4a0e4f=_0x51bf32['params'];this['_updateLocalCursor'](_0x4a0e4f['subUnitId'],_0x4a0e4f[_0x549b5b(0x13b)][0x0]);}})));}['_onCursorUpdate'](_0x2f11a5){const _0x231f87=_0x5df410;var _0x23ce9e,_0x1cd666;const {memberID:_0x3e62ae,selection:_0x19332a}=_0x2f11a5[_0x231f87(0x1c4)],{sheetName:_0x392c1d,range:_0x3b6c76}=be[_0x231f87(0x1f1)](_0x19332a),_0x3c00b5={'name':(_0x1cd666=(_0x23ce9e=this[_0x231f87(0x12a)][_0x231f87(0x2dc)](this[_0x231f87(0xd2)],_0x3e62ae))==null?void 0x0:_0x23ce9e[_0x231f87(0x1f8)])!=null?_0x1cd666:'Unknown\x20user','range':this['_getMergeRange'](_0x392c1d,_0x3b6c76),'sheetID':_0x392c1d,'color':this[_0x231f87(0xdf)]['assignAColorForMemberID'](_0x3e62ae),'selection':_0x19332a},_0x403f63=this[_0x231f87(0x132)];_0x403f63[_0x231f87(0xe8)](_0x3e62ae,_0x3c00b5),this[_0x231f87(0x103)][_0x231f87(0x24c)](_0x403f63);}[_0x5df410(0x1e6)](_0x140c62){const _0x2deb8f=_0x5df410,{memberID:_0x183ca0}=_0x140c62[_0x2deb8f(0x1c4)],_0x174bca=this[_0x2deb8f(0x132)];_0x174bca['delete'](_0x183ca0),this[_0x2deb8f(0x103)][_0x2deb8f(0x24c)](_0x174bca);}[_0x5df410(0x15c)](_0x1aaebe,_0x135d63){const _0x40f0ec=_0x5df410;var _0x5e088f,_0x469bdd;const _0x3fe8f5=(_0x469bdd=(_0x5e088f=this[_0x40f0ec(0x13e)][_0x40f0ec(0x31c)](this[_0x40f0ec(0xd2)]))==null?void 0x0:_0x5e088f[_0x40f0ec(0x256)](_0x1aaebe))==null?void 0x0:_0x469bdd['getMergeData']();return(_0x3fe8f5==null?void 0x0:_0x3fe8f5[_0x40f0ec(0xd1)](_0xbf5e8c=>a['Rectangle'][_0x40f0ec(0x11e)](_0xbf5e8c,_0x135d63)))||_0x135d63;}['_onRefRangeChange'](){const _0x2f94b3=_0x5df410,_0x5c4b56=new a['DisposableCollection'](),_0x18cc3d=ot(),_0x2410f1=()=>{const _0x2a5f7a=_0x4169;_0x5c4b56[_0x2a5f7a(0x299)]();const _0x415277=(_0x4af3e9,_0x8d4965,_0x2dc826,_0x467526)=>{const _0x318ae7=_0x2a5f7a;let _0x2899f5=[];switch(_0x4af3e9['id']){case g[_0x318ae7(0x29b)]['DeleteRangeMoveLeftCommandId']:{_0x2899f5=g[_0x318ae7(0xa7)](_0x4af3e9,_0x467526);break;}case g[_0x318ae7(0x29b)][_0x318ae7(0x300)]:{_0x2899f5=g[_0x318ae7(0x2f7)](_0x4af3e9,_0x467526);break;}case g[_0x318ae7(0x29b)][_0x318ae7(0x1c7)]:{_0x2899f5=g[_0x318ae7(0x2c1)](_0x4af3e9,_0x467526);break;}case g[_0x318ae7(0x29b)]['InsertRangeMoveDownCommandId']:{_0x2899f5=g['handleInsertRangeMoveDown'](_0x4af3e9,_0x467526);break;}case g[_0x318ae7(0x29b)][_0x318ae7(0x2ee)]:{_0x2899f5=g['handleInsertRangeMoveRight'](_0x4af3e9,_0x467526);break;}case g[_0x318ae7(0x29b)][_0x318ae7(0xd8)]:{_0x2899f5=g['handleInsertRow'](_0x4af3e9,_0x467526);break;}case g['EffectRefRangId'][_0x318ae7(0x20f)]:{_0x2899f5=g[_0x318ae7(0x136)](_0x4af3e9,_0x467526);break;}case g[_0x318ae7(0x29b)][_0x318ae7(0xda)]:{_0x2899f5=g[_0x318ae7(0xa6)](_0x4af3e9,_0x467526);break;}case g[_0x318ae7(0x29b)]['RemoveRowCommandId']:{_0x2899f5=g[_0x318ae7(0x123)](_0x4af3e9,_0x467526);break;}}const _0x378def=g[_0x318ae7(0x2fa)](_0x2899f5,_0x467526),_0x24e1ea=this[_0x318ae7(0x132)][_0x318ae7(0x1eb)](_0x8d4965);if(_0x24e1ea&&_0x378def){const _0x5a6c7a={..._0x24e1ea,'range':_0x378def};this[_0x318ae7(0x132)][_0x318ae7(0xe8)](_0x8d4965,_0x5a6c7a),_0x18cc3d(()=>{const _0x3e8e94=_0x318ae7,_0x4efe94=this[_0x3e8e94(0x1ba)][_0x3e8e94(0x1fa)](_0x378def,_0x12104c=>(_0x4efe94[_0x3e8e94(0x299)](),_0x415277(_0x12104c,_0x8d4965,_0x2dc826,_0x378def)));_0x5c4b56['add'](_0x4efe94);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2a5f7a(0x1f5)]((_0x41b1a9,_0x45af52)=>{const _0x56f3ae=_0x2a5f7a,{range:_0x495012,sheetID:_0x39ee5e}=_0x41b1a9,_0x5a416c=this[_0x56f3ae(0x1ba)][_0x56f3ae(0x1fa)](_0x495012,_0x38afa8=>(_0x5a416c['dispose'](),_0x415277(_0x38afa8,_0x45af52,_0x39ee5e,_0x495012)));_0x5c4b56['add'](_0x5a416c);});};this['disposeWithMe'](a[_0x2f94b3(0x1d4)](this[_0x2f94b3(0x103)][_0x2f94b3(0xb6)](()=>{_0x2410f1();})));}[_0x5df410(0x11d)](){const _0x510f03=_0x5df410;var _0xc99a03,_0x662c5d;if(this[_0x510f03(0x23e)]=!0x0,((_0xc99a03=this['_univerInstanceService'][_0x510f03(0x242)]())==null?void 0x0:_0xc99a03['getUnitId']())!==this[_0x510f03(0xd2)])return;const _0x325861=(_0x662c5d=this['_injector'][_0x510f03(0x1eb)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x662c5d[0x0],_0x317149=this[_0x510f03(0x13e)][_0x510f03(0x2af)](a['UniverInstanceType'][_0x510f03(0x199)])[_0x510f03(0x2cc)]();_0x325861&&_0x317149&&this[_0x510f03(0xf1)](_0x317149['getSheetId'](),_0x325861);}[_0x5df410(0x1b6)](){this['_online']=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x5df410(0x2a9)])),A(0x3,a[_0x5df410(0x2b6)](me)),A(0x4,a['Inject'](u[_0x5df410(0x2bf)])),A(0x5,a[_0x5df410(0x21a)]),A(0x6,a[_0x5df410(0x171)]),A(0x7,a['Inject'](g[_0x5df410(0x253)]))],Se);var at=Object[_0x5df410(0x12c)],ct=(_0x5c2977,_0x303d36,_0x39814f,_0x5da3bc)=>{const _0x4e7b99=_0x5df410;for(var _0x4170ad=_0x5da3bc>0x1?void 0x0:_0x5da3bc?at(_0x303d36,_0x39814f):_0x303d36,_0x595912=_0x5c2977[_0x4e7b99(0x270)]-0x1,_0x23b308;_0x595912>=0x0;_0x595912--)(_0x23b308=_0x5c2977[_0x595912])&&(_0x4170ad=_0x23b308(_0x4170ad)||_0x4170ad);return _0x4170ad;},ie=(_0x4c2760,_0x856577)=>(_0x444f0d,_0x570084)=>_0x856577(_0x444f0d,_0x570084,_0x4c2760);let x=class extends a['RxDisposable']{constructor(_0x5a4379,_0x1c3698,_0x1d0db4){const _0xa98e33=_0x5df410;super(),h(this,_0xa98e33(0x1d1),new Map()),h(this,'_entityInit$',new d[(_0xa98e33(0x188))]()),(this[_0xa98e33(0x13e)]=_0x5a4379,this['_injector']=_0x1c3698,this['_collabSessionService']=_0x1d0db4,this[_0xa98e33(0x1ff)]());}[_0x5df410(0x299)](){const _0x2df866=_0x5df410;super['dispose'](),this[_0x2df866(0xee)]['complete'](),this[_0x2df866(0x1d1)]['forEach'](_0x1c20c0=>_0x1c20c0['dispose']());}['getCollabCursors$'](_0x5f0b50){const _0x2de4fc=_0x5df410;return this[_0x2de4fc(0x1d1)]['has'](_0x5f0b50)?this[_0x2de4fc(0x1d1)][_0x2de4fc(0x1eb)](_0x5f0b50)[_0x2de4fc(0x282)]:this[_0x2de4fc(0xee)][_0x2de4fc(0x1d7)](d[_0x2de4fc(0x107)](_0x1cfb26=>_0x1cfb26['unitID']===_0x5f0b50),d[_0x2de4fc(0x2d1)](_0xb07ab7=>_0xb07ab7[_0x2de4fc(0x282)]));}[_0x5df410(0x1ff)](){const _0x34f907=_0x5df410;this['_univerInstanceService'][_0x34f907(0x203)](a[_0x34f907(0xe9)][_0x34f907(0x199)])[_0x34f907(0x1d7)](d['takeUntil'](this[_0x34f907(0x2d0)]))[_0x34f907(0xb6)](async _0x157196=>{const _0x111a37=_0x34f907,_0x37a4a8=_0x157196['getUnitId'](),_0x1be1d6=await this[_0x111a37(0x1a6)](_0x37a4a8);this[_0x111a37(0xee)][_0x111a37(0x24c)](_0x1be1d6),this[_0x111a37(0x1d1)][_0x111a37(0xe8)](_0x37a4a8,_0x1be1d6);}),this[_0x34f907(0x13e)][_0x34f907(0x203)](a[_0x34f907(0xe9)][_0x34f907(0xd0)])['pipe'](d[_0x34f907(0x1fe)](this[_0x34f907(0x2d0)]))[_0x34f907(0x1d7)](d['filter'](_0x1930d1=>!_0x1930d1[_0x34f907(0x320)]()[_0x34f907(0x281)]('__')))[_0x34f907(0xb6)](async _0x5c7fb5=>{const _0x19432d=_0x34f907,_0x15fad8=_0x5c7fb5[_0x19432d(0x320)](),_0x2484fe=await this[_0x19432d(0xc4)](_0x15fad8);this[_0x19432d(0xee)][_0x19432d(0x24c)](_0x2484fe),this[_0x19432d(0x1d1)][_0x19432d(0xe8)](_0x15fad8,_0x2484fe);}),d['merge'](this[_0x34f907(0x13e)]['getTypeOfUnitDisposed$'](a[_0x34f907(0xe9)][_0x34f907(0xd0)]),this[_0x34f907(0x13e)][_0x34f907(0x286)](a['UniverInstanceType'][_0x34f907(0x199)]))[_0x34f907(0x1d7)](d[_0x34f907(0x1fe)](this['dispose$']))[_0x34f907(0xb6)](_0x2481a2=>{const _0x3248a0=_0x34f907,_0x9b998b=_0x2481a2[_0x3248a0(0x320)](),_0x2884ae=this[_0x3248a0(0x1d1)][_0x3248a0(0x1eb)](_0x9b998b);_0x2884ae&&(_0x2884ae[_0x3248a0(0x299)](),this[_0x3248a0(0x1d1)]['delete'](_0x9b998b));});}async[_0x5df410(0x1a6)](_0x38f7a9){const _0x39fdb7=_0x5df410,_0x106830=await this['_collabSessionService']['requireSession'](_0x38f7a9),_0x20f14a=this[_0x39fdb7(0x265)][_0x39fdb7(0x141)](Se,_0x38f7a9,_0x106830);return _0x20f14a[_0x39fdb7(0x318)](),_0x20f14a;}async[_0x5df410(0xc4)](_0x2564ef){const _0x3a01cd=_0x5df410,_0x3524d5=await this['_collabSessionService'][_0x3a01cd(0x1d9)](_0x2564ef),_0x2121a9=this[_0x3a01cd(0x265)][_0x3a01cd(0x141)](Ie,_0x2564ef,_0x3524d5);return _0x2121a9['init'](),_0x2121a9;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x5df410(0x2b6)](a[_0x5df410(0x2a9)])),ie(0x2,a[_0x5df410(0x2b6)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x502a74,_0x249822){const _0x59ecf4=_0x5df410;let {radius:_0xbd2fdc,width:_0x5af891,height:_0x2d481d}=_0x249822;_0xbd2fdc=_0xbd2fdc!=null?_0xbd2fdc:0x0,_0x5af891=_0x5af891!=null?_0x5af891:0x1e,_0x2d481d=_0x2d481d!=null?_0x2d481d:0x1e;let _0x49bff1=0x0,_0x572e9a=0x0,_0x421fa5=0x0;_0x49bff1=_0x572e9a=_0x421fa5=Math['min'](_0xbd2fdc,_0x5af891/0x2,_0x2d481d/0x2),_0x502a74[_0x59ecf4(0x238)](),_0x502a74['moveTo'](_0x49bff1,0x0),_0x502a74[_0x59ecf4(0x278)](_0x5af891-_0x572e9a,0x0),_0x502a74[_0x59ecf4(0x1dc)](_0x5af891-_0x572e9a,_0x572e9a,_0x572e9a,Math['PI']*0x3/0x2,0x0,!0x1),_0x502a74['lineTo'](_0x5af891,_0x2d481d-_0x421fa5),_0x502a74[_0x59ecf4(0x1dc)](_0x5af891-_0x421fa5,_0x2d481d-_0x421fa5,_0x421fa5,0x0,Math['PI']/0x2,!0x1),_0x502a74[_0x59ecf4(0x278)](0x0,_0x2d481d),_0x502a74[_0x59ecf4(0x278)](0x0,_0x49bff1),_0x502a74['arc'](_0x49bff1,_0x49bff1,_0x49bff1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x502a74[_0x59ecf4(0x30a)](),_0x249822['fill']&&(_0x502a74[_0x59ecf4(0xad)](),_0x502a74[_0x59ecf4(0x2b0)]=_0x249822[_0x59ecf4(0x225)],_0x249822[_0x59ecf4(0xb3)]===_0x59ecf4(0x2c9)?_0x502a74[_0x59ecf4(0x225)](_0x59ecf4(0x2c9)):_0x502a74[_0x59ecf4(0x225)](),_0x502a74['restore']());}class ee extends p['Shape']{constructor(_0x1f02ce,_0x30a651){const _0x31c61a=_0x5df410;super(_0x1f02ce,_0x30a651),h(this,_0x31c61a(0x1c2)),h(this,_0x31c61a(0x124)),(this['color']=_0x30a651==null?void 0x0:_0x30a651[_0x31c61a(0x1c2)],this[_0x31c61a(0x124)]=_0x30a651==null?void 0x0:_0x30a651[_0x31c61a(0x124)]);}static[_0x5df410(0x2fb)](_0x13586d,_0x1a6715){const _0x30a8fd=_0x5df410,{text:_0x3ca6a5,color:_0x4f1dc5}=_0x1a6715;_0x13586d['save'](),_0x13586d[_0x30a8fd(0x149)]=_0x30a8fd(0x2d4);const _0x4f0075=_0x13586d[_0x30a8fd(0x271)](_0x3ca6a5)['width'],_0x1d9f93=Math[_0x30a8fd(0x200)](_0x4f0075+0x2*ne,Re);_t(_0x13586d,{'height':K,'radius':0x4,'width':_0x1d9f93,'fill':_0x4f1dc5}),_0x13586d[_0x30a8fd(0x2b0)]='#FFF';const _0x1a5f0f=ne,_0xcaeb28=K-lt,_0x12c630=Re-0x2*ne;if(_0x4f0075>_0x12c630){let _0x2f5881='',_0x28da3d=0x0;for(const _0x3222a3 of _0x3ca6a5){const _0x4fc5a6=_0x13586d[_0x30a8fd(0x271)](_0x3222a3)[_0x30a8fd(0x175)];if(_0x28da3d+_0x4fc5a6<=_0x12c630-_0x13586d['measureText']('...')['width'])_0x2f5881+=_0x3222a3,_0x28da3d+=_0x4fc5a6;else{_0x2f5881+=_0x30a8fd(0x196);break;}}_0x13586d[_0x30a8fd(0x20e)](_0x2f5881,_0x1a5f0f,_0xcaeb28);}else _0x13586d[_0x30a8fd(0x20e)](_0x3ca6a5,_0x1a5f0f,_0xcaeb28);_0x13586d['restore']();}[_0x5df410(0x1a1)](_0x38b0c4){ee['drawWith'](_0x38b0c4,this);}}const re=_0x5df410(0x2e5),ht='collab-text-range-',ut=_0x5df410(0x18d),k=0x6,dt=1.5,oe=0x4,It=1.5,St=_0x5df410(0x10f);class De{constructor(_0xc89b86,_0x299180,_0x31317e,_0x194a93){const _0x2a206b=_0x5df410;h(this,_0x2a206b(0xd4),[]),h(this,'_anchor',null),h(this,_0x2a206b(0x1ea),null),h(this,_0x2a206b(0x222),null),h(this,_0x2a206b(0x1cb),null),h(this,_0x2a206b(0x1f7),null),(this[_0x2a206b(0x213)]=_0xc89b86,this[_0x2a206b(0x31f)]=_0x299180,this[_0x2a206b(0x1af)]=_0x31317e,this[_0x2a206b(0x2b3)]=_0x194a93,this['_render']());}set[_0x5df410(0x2bc)](_0x41e688){const _0x4017e9=_0x5df410;_0x41e688?(this['_anchorDot']&&this['_anchorDot'][_0x4017e9(0x223)](),this[_0x4017e9(0x1ea)]&&this[_0x4017e9(0x1ea)][_0x4017e9(0x29c)]()):(this['_anchorDot']&&this[_0x4017e9(0x222)][_0x4017e9(0x29c)](),this['_textBubble']&&this[_0x4017e9(0x1ea)]['hide']());}['dispose'](){const _0x5adc63=_0x5df410;for(const _0x20d115 of this[_0x5adc63(0xd4)])_0x20d115[_0x5adc63(0x299)]();this[_0x5adc63(0x1ea)]&&this[_0x5adc63(0x1ea)][_0x5adc63(0x299)](),this[_0x5adc63(0x222)]&&this['_anchorDot'][_0x5adc63(0x299)](),this['_anchor']&&this[_0x5adc63(0x26c)][_0x5adc63(0x299)](),this[_0x5adc63(0x1f7)]&&this[_0x5adc63(0x1f7)]();}[_0x5df410(0x2c0)](){const _0x4b7083=_0x5df410;var _0x50de93;const {_docSkeleton:_0x8605b,_document:_0x29409b}=this,{color:_0x2de247,name:_0x443734,ranges:_0x4e0fab}=this['_cursor'],_0xc3c513=_0x29409b[_0x4b7083(0x1c3)](),{docsLeft:_0x447657,docsTop:_0x23a108}=_0xc3c513,_0x4d3965=new E[(_0x4b7083(0x297))](_0xc3c513,_0x8605b);for(const {startOffset:_0x28483e,endOffset:_0x5987d4,rangeType:_0x22d6e0,segmentId:_0x88ccf0,segmentPage:_0x4e8ade,collapsed:_0x298105,isActive:_0x2d53be}of _0x4e0fab){const _0x569f6f=_0x8605b[_0x4b7083(0x2f6)](_0x28483e,!0x0,_0x88ccf0,_0x4e8ade);let _0x1d78a2=_0x8605b[_0x4b7083(0x2f6)](_0x5987d4,!0x0,_0x88ccf0,_0x4e8ade);if(_0x1d78a2==null&&(_0x1d78a2=_0x8605b['findNodePositionByCharIndex'](_0x5987d4-0x1,!0x1,_0x88ccf0,_0x4e8ade)),_0x2d53be){const {contentBoxPointGroup:_0x48070c}=_0x4d3965[_0x4b7083(0x14e)](_0x1d78a2,_0x1d78a2);if(_0x48070c[_0x4b7083(0x270)]===0x0)continue;this[_0x4b7083(0x2fe)](_0x2de247,_0x48070c,_0x447657,_0x23a108,_0x443734),this[_0x4b7083(0x1f7)]=this[_0x4b7083(0x177)]();}if(_0x569f6f&&_0x1d78a2){if(_0x22d6e0===a[_0x4b7083(0x162)][_0x4b7083(0x218)]){const _0x353fdc=new E[(_0x4b7083(0x16d))](_0xc3c513,_0x8605b),{pointGroup:_0x709fac}=(_0x50de93=_0x353fdc[_0x4b7083(0x14e)](_0x569f6f,_0x1d78a2))!=null?_0x50de93:{};if(_0x709fac==null||_0x709fac[_0x4b7083(0x270)]===0x0)continue;this[_0x4b7083(0x2e6)](_0x2de247,_0x709fac,_0x447657,_0x23a108);}else{if(!_0x298105){const {borderBoxPointGroup:_0x2e2725}=_0x4d3965[_0x4b7083(0x14e)](_0x569f6f,_0x1d78a2);if(_0x2e2725[_0x4b7083(0x270)]===0x0)continue;this[_0x4b7083(0x143)](_0x2de247,_0x2e2725,_0x447657,_0x23a108);}}}}}[_0x5df410(0x2fe)](_0x353730,_0x4da39a,_0x6f3883,_0x47c004,_0x32044d){const _0x1de2c1=_0x5df410,_0x2b3ee6=this[_0x1de2c1(0xcb)](_0x4da39a),{left:_0x1f39d4,top:_0x91e6f0,height:_0x23cd88}=_0x2b3ee6,_0x13d31a=this[_0x1de2c1(0x240)](),_0x4f818b=It/_0x13d31a,_0x588c8a=new p[(_0x1de2c1(0x2f0))](re+a[_0x1de2c1(0x261)][_0x1de2c1(0x167)](k),{'left':_0x1f39d4+_0x6f3883-_0x4f818b,'top':_0x91e6f0+_0x47c004,'height':_0x23cd88,'width':dt,'fill':_0x353730||p['getColor'](a[_0x1de2c1(0xf0)][_0x1de2c1(0xac)],0x0),'strokeWidth':_0x4f818b,'stroke':St,'evented':!0x0});this[_0x1de2c1(0x26c)]=_0x588c8a,this[_0x1de2c1(0x31f)][_0x1de2c1(0xd5)](_0x588c8a,E['TEXT_RANGE_LAYER_INDEX']);const _0x463157=new p[(_0x1de2c1(0x2f0))](re+a[_0x1de2c1(0x261)][_0x1de2c1(0x167)](k),{'left':_0x1f39d4+_0x6f3883-_0x4f818b,'top':_0x91e6f0+_0x47c004-oe/0x2,'height':oe,'width':oe,'fill':_0x353730||p['getColor'](a[_0x1de2c1(0xf0)][_0x1de2c1(0xac)],0x0),'strokeWidth':0x0,'stroke':_0x353730||p[_0x1de2c1(0x231)](a[_0x1de2c1(0xf0)][_0x1de2c1(0xac)],0x0),'evented':!0x1});this['_anchorDot']=_0x463157,this['_scene'][_0x1de2c1(0xd5)](_0x463157,E[_0x1de2c1(0xeb)]);const _0x2083b7=new ee(re+a[_0x1de2c1(0x261)]['generateRandomId'](k),{'left':_0x1f39d4+_0x6f3883-_0x4f818b,'top':_0x91e6f0+_0x47c004-K,'text':_0x32044d,'color':_0x353730});this[_0x1de2c1(0x1ea)]=_0x2083b7,this[_0x1de2c1(0x31f)]['addObject'](_0x2083b7,E[_0x1de2c1(0xeb)]),this[_0x1de2c1(0x2bc)]=!0x1;}[_0x5df410(0x177)](){const _0x25a9df=_0x5df410,_0x4404b9=this[_0x25a9df(0x26c)][_0x25a9df(0x1cf)][_0x25a9df(0x122)](()=>{const _0x4a2f98=_0x25a9df;this[_0x4a2f98(0x2bc)]=!0x0;}),_0x2307d4=this[_0x25a9df(0x26c)][_0x25a9df(0x249)][_0x25a9df(0x122)](()=>{const _0x2d490a=_0x25a9df;this[_0x2d490a(0x1cb)]&&clearTimeout(this[_0x2d490a(0x1cb)]),this[_0x2d490a(0x1cb)]=setTimeout(()=>{const _0x449cf9=_0x2d490a;this[_0x449cf9(0x2bc)]=!0x1;},0x7d0);});return()=>{const _0x39d512=_0x25a9df;_0x4404b9[_0x39d512(0x100)](),_0x2307d4[_0x39d512(0x100)]();};}[_0x5df410(0x143)](_0x407eba,_0x581513,_0x1abe59,_0x205d82){const _0x24c89=_0x5df410,_0x375dec=new a[(_0x24c89(0x23f))](_0x407eba)['setAlpha'](0.2)[_0x24c89(0x16c)](),_0x55d53a=new p['RegularPolygon'](ht+a[_0x24c89(0x261)][_0x24c89(0x167)](k),{'pointsGroup':_0x581513,'fill':_0x375dec||p['getColor'](a[_0x24c89(0xf0)]['black'],0.2),'left':_0x1abe59,'top':_0x205d82,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x24c89(0xd4)]['push'](_0x55d53a),this['_scene'][_0x24c89(0xd5)](_0x55d53a,E[_0x24c89(0xeb)]);}[_0x5df410(0x2e6)](_0x9d2036,_0x31e836,_0x479b6f,_0x3e9078){const _0x101611=_0x5df410,_0x8b02c1=new a['ColorKit'](_0x9d2036)[_0x101611(0xca)](0.2)[_0x101611(0x16c)](),_0x222759=new p[(_0x101611(0xe3))](ut+a[_0x101611(0x261)]['generateRandomId'](k),{'pointsGroup':_0x31e836,'fill':_0x8b02c1||p['getColor'](a[_0x101611(0xf0)][_0x101611(0xac)],0.2),'left':_0x479b6f,'top':_0x3e9078,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x101611(0x1a7)](_0x222759),this[_0x101611(0x31f)]['addObject'](_0x222759,E[_0x101611(0xeb)]);}['_getAnchorBounding'](_0x5e86b0){const _0x1f789c=_0x5e86b0[0x0],_0x826752=_0x1f789c[0x0],_0x17b192=_0x1f789c[0x2],{x:_0x410125,y:_0x55e809}=_0x826752,{x:_0x4fdda7,y:_0x53c15c}=_0x17b192;return{'left':_0x410125,'top':_0x55e809,'width':_0x4fdda7-_0x410125,'height':_0x53c15c-_0x55e809};}[_0x5df410(0x240)](){const _0x555965=_0x5df410,{scaleX:_0xc128f1,scaleY:_0x357158}=this['_scene']['getAncestorScale']();return Math[_0x555965(0x13d)](_0xc128f1,_0x357158);}}var ft=Object[_0x5df410(0x12c)],vt=(_0x1ceb53,_0x51d5d2,_0xd27474,_0x3ce62d)=>{const _0x37b455=_0x5df410;for(var _0x463f28=_0x3ce62d>0x1?void 0x0:_0x3ce62d?ft(_0x51d5d2,_0xd27474):_0x51d5d2,_0x50fa35=_0x1ceb53[_0x37b455(0x270)]-0x1,_0x1587be;_0x50fa35>=0x0;_0x50fa35--)(_0x1587be=_0x1ceb53[_0x50fa35])&&(_0x463f28=_0x1587be(_0x463f28)||_0x463f28);return _0x463f28;},W=(_0x23ed96,_0x578c6b)=>(_0x427388,_0x433a8f)=>_0x578c6b(_0x427388,_0x433a8f,_0x23ed96);let fe=class extends a['RxDisposable']{constructor(_0x3eef2c,_0x156ef5,_0x496411,_0x155ac9,_0x1f0c5d){const _0x165e42=_0x5df410;super(),h(this,_0x165e42(0x13c),[]),h(this,_0x165e42(0x2f4),[]),(this[_0x165e42(0x10b)]=_0x3eef2c,this[_0x165e42(0x306)]=_0x156ef5,this['_collabCursorController']=_0x496411,this[_0x165e42(0x2a2)]=_0x155ac9,this[_0x165e42(0x1b8)]=_0x1f0c5d,this[_0x165e42(0x1ff)]());}[_0x5df410(0x1ff)](){const _0x559d68=_0x5df410,_0x5aa9b0=this[_0x559d68(0x10b)][_0x559d68(0xb1)],_0x4736dc=this[_0x559d68(0x306)];this[_0x559d68(0x14b)](d[_0x559d68(0x191)]([this[_0x559d68(0x2e8)][_0x559d68(0xdc)](_0x5aa9b0),this[_0x559d68(0x1b8)][_0x559d68(0x25c)]])['pipe']($[_0x559d68(0xef)](([_0x178e04,_0x282553])=>({'skeleton':_0x4736dc[_0x559d68(0x301)](),'cursors':[..._0x178e04[_0x559d68(0x17f)]()][_0x559d68(0x28a)](_0x4459e2=>({..._0x4459e2,'color':this[_0x559d68(0x1b8)][_0x559d68(0x266)](_0x4459e2['color'])}))})))[_0x559d68(0xb6)](_0x1aef86=>{const _0xed744c=_0x559d68;if(this[_0xed744c(0x10a)](),_0x1aef86){const {skeleton:_0x30e51b,cursors:_0x25a41e}=_0x1aef86;this[_0xed744c(0x118)](_0x30e51b,_0x25a41e);}})),this[_0x559d68(0xaf)](),this[_0x559d68(0x154)]();}[_0x5df410(0x118)](_0x3258bc,_0x424417){const _0x2db8b0=_0x5df410,{scene:_0xe93daa,mainComponent:_0x59c572}=this[_0x2db8b0(0x10b)],_0x274965=_0x424417['map'](_0x4effdc=>new De(_0x4effdc,_0xe93daa,_0x3258bc,_0x59c572));this[_0x2db8b0(0x13c)]=_0x274965,this[_0x2db8b0(0x2f4)]=_0x424417;}[_0x5df410(0x1b2)](){const _0x5d52a9=_0x5df410;this[_0x5d52a9(0x10a)]();const {scene:_0x29f377,mainComponent:_0x1535c1}=this[_0x5d52a9(0x10b)],_0x12bd3a=this['_docSkeletonManagerService'][_0x5d52a9(0x301)](),_0x13d2dc=this[_0x5d52a9(0x2f4)][_0x5d52a9(0xef)](_0x58619c=>new De(_0x58619c,_0x29f377,_0x12bd3a,_0x1535c1));this[_0x5d52a9(0x13c)]=_0x13d2dc;}[_0x5df410(0x10a)](){const _0xeb9f09=_0x5df410;this[_0xeb9f09(0x13c)][_0xeb9f09(0x1f5)](_0x11ea64=>_0x11ea64[_0xeb9f09(0x299)]()),this[_0xeb9f09(0x13c)]=[];}[_0x5df410(0x154)](){const _0x431636=_0x5df410,_0x5b5823=[E[_0x431636(0x172)]['id']];this[_0x431636(0x14b)](this['_commandService'][_0x431636(0x115)](_0x5e7402=>{const _0x3f1204=_0x431636;_0x5b5823['includes'](_0x5e7402['id'])&&_0x5e7402['params'][_0x3f1204(0xb1)]===this['_context']['unitId']&&this[_0x3f1204(0x1b2)]();}));}[_0x5df410(0xaf)](){const _0x55c346=_0x5df410;this[_0x55c346(0x14b)](a[_0x55c346(0x1bc)](this[_0x55c346(0x10b)]['engine'][_0x55c346(0x216)])['pipe']($[_0x55c346(0x107)](_0x4567a9=>_0x4567a9[_0x55c346(0x2e2)]===p[_0x55c346(0x194)]['resize']),$['throttleTime'](0x10))[_0x55c346(0xb6)](()=>{const _0x7ef76f=_0x55c346;this[_0x7ef76f(0x1b2)]();}));}};fe=vt([W(0x1,a['Inject'](Y[_0x5df410(0x2e4)])),W(0x2,a[_0x5df410(0x2b6)](x)),W(0x3,a[_0x5df410(0x171)]),W(0x4,a[_0x5df410(0x2b6)](a['ThemeService']))],fe);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x31012c,_0x406fb9){const _0x41af3f=_0x5df410;super(_0x31012c,_0x406fb9),h(this,'_color'),h(this,'_hovered',!0x1),h(this,'_range'),h(this,'_name',''),h(this,_0x41af3f(0x2a7),_0x41af3f(0x2c2)),h(this,_0x41af3f(0x22e)),(_0x406fb9&&this[_0x41af3f(0x105)](_0x406fb9),this[_0x41af3f(0x1cf)][_0x41af3f(0x122)](()=>this[_0x41af3f(0x105)]({'hovered':!0x0})),this[_0x41af3f(0x249)][_0x41af3f(0x122)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x5df410(0x105)](_0x4488f2){const _0x1be302=_0x5df410;var _0x365dfd,_0x14f6f6,_0x7022a4,_0x1cc6e9,_0x472821,_0x4e4290;this[_0x1be302(0x153)]=(_0x365dfd=_0x4488f2['color'])!=null?_0x365dfd:this['_color'],this[_0x1be302(0x1c1)]=(_0x14f6f6=_0x4488f2[_0x1be302(0x243)])!=null?_0x14f6f6:this['_hovered'],this[_0x1be302(0x134)]=(_0x7022a4=_0x4488f2[_0x1be302(0xb4)])!=null?_0x7022a4:this[_0x1be302(0x134)],this['_name']=(_0x1cc6e9=_0x4488f2['name'])!=null?_0x1cc6e9:this['_name'],this[_0x1be302(0x2a7)]=(_0x472821=_0x4488f2[_0x1be302(0x2fd)])!=null?_0x472821:this[_0x1be302(0x2a7)],this['_backgroundColor']=(_0x4e4290=_0x4488f2['backgroundColor'])!=null?_0x4e4290:this[_0x1be302(0x22e)],this[_0x1be302(0x12e)]({'width':_0x4488f2[_0x1be302(0x175)],'height':_0x4488f2[_0x1be302(0x2f5)]});}[_0x5df410(0x1db)](_0xf82b8f){const _0x3cd847=_0x5df410,{row:_0x734519,column:_0xd36563}=_0xf82b8f;if(_0x734519>=this[_0x3cd847(0x134)][_0x3cd847(0x192)]&&_0x734519<=this[_0x3cd847(0x134)][_0x3cd847(0x31e)]&&_0xd36563>=this['_range'][_0x3cd847(0x283)]&&_0xd36563<=this['_range']['endColumn']){this[_0x3cd847(0x105)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5df410(0xaa)](_0x497136){return!0x1;}[_0x5df410(0x1a1)](_0x19c04e){const _0xe018fe=_0x5df410;p[_0xe018fe(0x2f0)]['drawWith'](_0x19c04e,{'width':this[_0xe018fe(0x175)],'height':this[_0xe018fe(0x2f5)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xe018fe(0x22e)]}),this['_hovered']&&(_0x19c04e['save'](),_0x19c04e['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0xe018fe(0x2a7)]==='bottom'?0x0:-0x14),ee[_0xe018fe(0x2fb)](_0x19c04e,{'text':this[_0xe018fe(0x2d2)],'color':this[_0xe018fe(0x153)]}),_0x19c04e[_0xe018fe(0xcf)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x334a1e,_0x2c5ea6,_0xf9bcd6,_0x2df304)=>{const _0x511167=_0x5df410;for(var _0x2c879e=_0x2df304>0x1?void 0x0:_0x2df304?Ct(_0x2c5ea6,_0xf9bcd6):_0x2c5ea6,_0x5c604e=_0x334a1e[_0x511167(0x270)]-0x1,_0xd17c88;_0x5c604e>=0x0;_0x5c604e--)(_0xd17c88=_0x334a1e[_0x5c604e])&&(_0x2c879e=_0xd17c88(_0x2c879e)||_0x2c879e);return _0x2c879e;},ae=(_0x472c7,_0x579130)=>(_0x425d6f,_0x3c4fc6)=>_0x579130(_0x425d6f,_0x3c4fc6,_0x472c7);const Et=0x1389;let ve=class extends a[_0x5df410(0x289)]{constructor(_0x3acb11,_0x34a344,_0x42d237,_0x520ffe){const _0xde76c1=_0x5df410;super(),h(this,_0xde76c1(0x2f4),new Set()),h(this,_0xde76c1(0x1c5),null),(this[_0xde76c1(0x10b)]=_0x3acb11,this[_0xde76c1(0x2ae)]=_0x34a344,this[_0xde76c1(0x2e8)]=_0x42d237,this[_0xde76c1(0x1b8)]=_0x520ffe,this['_init']());}['_init'](){const _0x4d336e=_0x5df410;this[_0x4d336e(0x2ae)][_0x4d336e(0x284)][_0x4d336e(0x1d7)]($[_0x4d336e(0x1fe)](this['dispose$']),$['switchMap'](_0x109427=>{const _0x23fb9f=_0x4d336e;if(_0x109427){const _0x237e78=_0x109427[_0x23fb9f(0x1a4)];return d[_0x23fb9f(0x191)](this['_collabCursorController'][_0x23fb9f(0xdc)](this[_0x23fb9f(0x10b)][_0x23fb9f(0xb1)]),this[_0x23fb9f(0x1b8)][_0x23fb9f(0x25c)])[_0x23fb9f(0x1d7)]($[_0x23fb9f(0xef)](([_0x23c643,_0x25e5da])=>{const _0x5c5743=_0x23fb9f,_0x5126ca=new Map();return _0x23c643[_0x5c5743(0x1f5)]((_0x5a8bf7,_0x9b9a03)=>{const _0x37159f=_0x5c5743;if(_0x5a8bf7[_0x37159f(0xba)]===_0x237e78){const _0x309fbf={..._0x5a8bf7};_0x309fbf['color']=this[_0x37159f(0x1b8)]['getColorFromTheme'](_0x5a8bf7['color']),_0x5126ca[_0x37159f(0xe8)](_0x9b9a03,_0x309fbf);}}),{'skeleton':_0x109427,'cursors':_0x5126ca};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4d336e(0xb6)](({skeleton:_0xf8c67c,cursors:_0x20c67a})=>{const _0x2d5e02=_0x4d336e;this[_0x2d5e02(0x10a)](),_0xf8c67c&&this[_0x2d5e02(0x118)](_0xf8c67c,_0x20c67a);}),this[_0x4d336e(0x2ae)][_0x4d336e(0x284)]['subscribe'](_0x15f155=>{const _0x152397=_0x4d336e;if(_0x15f155==null)return;const {skeleton:_0x45372c}=_0x15f155,{scene:_0x47cff8}=this[_0x152397(0x10b)];_0x47cff8['onPointerMove$'][_0x152397(0x122)](a[_0x152397(0x131)](_0x338a78=>{const _0x177824=_0x152397;var _0x218c38,_0x41a43f;const {offsetX:_0xa4f78a,offsetY:_0x32dce5}=_0x338a78,{x:_0x3057de,y:_0x5ced75}=_0x47cff8[_0x177824(0x28e)](p[_0x177824(0x215)]['FromArray']([_0xa4f78a,_0x32dce5])),{scaleX:_0x3be7b7,scaleY:_0x4f2946}=_0x47cff8[_0x177824(0x146)](),_0x4220f7=_0x47cff8['getViewport'](p[_0x177824(0xf9)]['VIEW_MAIN']),_0x2fb4c0=_0x47cff8[_0x177824(0xe2)](p[_0x177824(0x215)][_0x177824(0x139)]([_0x3057de,_0x5ced75]),_0x4220f7),_0x18a39c=_0x45372c[_0x177824(0x221)](_0xa4f78a,_0x32dce5,_0x3be7b7,_0x4f2946,_0x2fb4c0);((_0x218c38=this['_lastPointer'])==null?void 0x0:_0x218c38['column'])===_0x18a39c[_0x177824(0x25f)]&&((_0x41a43f=this[_0x177824(0x1c5)])==null?void 0x0:_0x41a43f[_0x177824(0x27a)])===_0x18a39c['row']||this['_cursors'][_0x177824(0x1f5)](_0x18bfec=>{const _0x56a58c=_0x177824;_0x18bfec[_0x56a58c(0x1db)](_0x18a39c);});},0x64));});}[_0x5df410(0x118)](_0x4ce629,_0x3b5d30){const _0x295b6a=_0x5df410;var _0x164e3c;const _0x589827=(_0x164e3c=this[_0x295b6a(0x2ae)][_0x295b6a(0x161)]())==null?void 0x0:_0x164e3c[_0x295b6a(0x1ef)];if(!_0x589827)return;const _0x59bc6c=this[_0x295b6a(0x2da)]();if(!_0x59bc6c)return;this[_0x295b6a(0x2f4)][_0x295b6a(0x1f5)](_0x9747ef=>{const _0x1685c6=_0x295b6a;_0x9747ef[_0x1685c6(0x183)]();});const {scene:_0x2a0137}=_0x59bc6c,_0xbb1e09=bt(Array[_0x295b6a(0xb7)](_0x3b5d30[_0x295b6a(0x17f)]()))[_0x295b6a(0xef)](_0xc03f69=>{const _0x5190a2=_0x295b6a,{color:_0x3c3cad,range:_0x452af6,name:_0x29c7f9,selection:_0x5d5913,sheetID:_0x4936c2}=_0xc03f69,{startColumn:_0x1d11d1,startRow:_0xc695d6,endColumn:_0x50e9c0,endRow:_0x54ca1e}=_0x452af6,_0x38a07f=X[_0x5190a2(0x305)](_0xc695d6,_0x1d11d1,_0x2a0137,_0x589827),_0x69df34=X[_0x5190a2(0x305)](_0x54ca1e,_0x50e9c0,_0x2a0137,_0x589827),{columnHeaderHeightAndMarginTop:_0x1f0e33}=_0x589827,{startX:_0x5ad617,startY:_0x1c02ee}=_0x38a07f,{endX:_0x25c654,endY:_0x1d17f1}=_0x69df34,_0x1a3c9b=_0x25c654-_0x5ad617,_0xd35b95=_0x1d17f1-_0x1c02ee,_0x38adfe={'labelPosition':_0x1c02ee-_0x1f0e33>=K?'top':_0x5190a2(0x2c5),'sheetID':_0x4936c2,'range':_0x452af6,'color':_0x3c3cad,'name':_0x29c7f9,'selection':_0x5d5913,'left':_0x5ad617,'top':_0x1c02ee,'width':_0x1a3c9b,'height':_0xd35b95,'evented':!0x1,'zIndex':Et};return new we(_0x29c7f9,_0x38adfe);});_0x2a0137[_0x295b6a(0x126)](_0xbb1e09,gt),this['_cursors']=new Set(_0xbb1e09);}[_0x5df410(0x10a)](){const _0x590a1e=_0x5df410;var _0x2bcc3d;(_0x2bcc3d=this[_0x590a1e(0x2f4)])==null||_0x2bcc3d[_0x590a1e(0x1f5)](_0x5b3b78=>_0x5b3b78[_0x590a1e(0x299)]());}[_0x5df410(0x2da)](){const _0x402d0c=_0x5df410;return X['getSheetObject'](this[_0x402d0c(0x10b)]['unit'],this[_0x402d0c(0x10b)]);}};ve=pt([ae(0x1,a[_0x5df410(0x2b6)](X['SheetSkeletonManagerService'])),ae(0x2,a[_0x5df410(0x2b6)](x)),ae(0x3,a['Inject'](a['ThemeService']))],ve);function bt(_0x3a2cfb){const _0x2c0831=_0x5df410,_0x55e7a4=new Map();return _0x3a2cfb[_0x2c0831(0x1f5)](_0x2f608c=>{const _0x2fae24=_0x2c0831;if(_0x55e7a4[_0x2fae24(0x19d)](_0x2f608c[_0x2fae24(0xf7)])){const _0x4f53dd=_0x55e7a4[_0x2fae24(0x1eb)](_0x2f608c['selection']);_0x4f53dd[_0x2fae24(0x1f8)]+=',\x20'+_0x2f608c[_0x2fae24(0x1f8)];}else _0x55e7a4[_0x2fae24(0xe8)](_0x2f608c[_0x2fae24(0xf7)],_0x2f608c);}),Array[_0x2c0831(0xb7)](_0x55e7a4[_0x2c0831(0x17f)]());}var b=function(){const _0x1a62d9=_0x5df410;return b=Object['assign']||function(_0x4b1138){const _0x4e0529=_0x4169;for(var _0x3b9046,_0x364a50=0x1,_0x36d9c3=arguments[_0x4e0529(0x270)];_0x364a50<_0x36d9c3;_0x364a50++){_0x3b9046=arguments[_0x364a50];for(var _0x141035 in _0x3b9046)Object[_0x4e0529(0x195)]['hasOwnProperty'][_0x4e0529(0x2ff)](_0x3b9046,_0x141035)&&(_0x4b1138[_0x141035]=_0x3b9046[_0x141035]);}return _0x4b1138;},b[_0x1a62d9(0x102)](this,arguments);},Ot=function(_0x4b01a2,_0x2cec5d){const _0x30ce33=_0x5df410;var _0x342d7a={};for(var _0x44db2f in _0x4b01a2)Object[_0x30ce33(0x195)][_0x30ce33(0x16e)][_0x30ce33(0x2ff)](_0x4b01a2,_0x44db2f)&&_0x2cec5d[_0x30ce33(0x317)](_0x44db2f)<0x0&&(_0x342d7a[_0x44db2f]=_0x4b01a2[_0x44db2f]);if(_0x4b01a2!=null&&typeof Object[_0x30ce33(0x125)]==_0x30ce33(0x1bb)){for(var _0x51dd85=0x0,_0x44db2f=Object[_0x30ce33(0x125)](_0x4b01a2);_0x51dd85<_0x44db2f[_0x30ce33(0x270)];_0x51dd85++)_0x2cec5d[_0x30ce33(0x317)](_0x44db2f[_0x51dd85])<0x0&&Object[_0x30ce33(0x195)][_0x30ce33(0x2f1)][_0x30ce33(0x2ff)](_0x4b01a2,_0x44db2f[_0x51dd85])&&(_0x342d7a[_0x44db2f[_0x51dd85]]=_0x4b01a2[_0x44db2f[_0x51dd85]]);}return _0x342d7a;},pe=M['forwardRef'](function(_0x2d397d,_0x112875){const _0x399965=_0x5df410;var _0x1d235e=_0x2d397d[_0x399965(0x1d6)],_0x161130=_0x2d397d['id'],_0x52677f=_0x2d397d['className'],_0x1cb89d=_0x2d397d[_0x399965(0x140)],_0x3b768b=Ot(_0x2d397d,[_0x399965(0x1d6),'id',_0x399965(0x165),_0x399965(0x140)]),_0x1cf502=_0x399965(0xbc)['concat'](_0x161130,'\x20')[_0x399965(0x30f)](_0x52677f||'')['trim'](),_0x38ede9=M[_0x399965(0x2ab)]('_'[_0x399965(0x30f)](Dt()));return Ae(_0x1d235e,''[_0x399965(0x30f)](_0x161130),{'defIds':_0x1d235e[_0x399965(0x28b)],'idSuffix':_0x38ede9[_0x399965(0x117)]},b({'ref':_0x112875,'className':_0x1cf502},_0x3b768b),_0x1cb89d);});function Ae(_0x2045fb,_0x359f0c,_0x2f421a,_0x1f6d11,_0x35f8cf){const _0x29125b=_0x5df410;return M[_0x29125b(0x285)](_0x2045fb['tag'],b(b({'key':_0x359f0c},Tt(_0x2045fb,_0x2f421a,_0x35f8cf)),_0x1f6d11),(Rt(_0x2045fb,_0x2f421a)['children']||[])[_0x29125b(0xef)](function(_0xed17ba,_0x413cb2){const _0x146426=_0x29125b;return Ae(_0xed17ba,''[_0x146426(0x30f)](_0x359f0c,'-')[_0x146426(0x30f)](_0x2045fb[_0x146426(0x292)],'-')['concat'](_0x413cb2),_0x2f421a,void 0x0,_0x35f8cf);}));}function Tt(_0x1a153e,_0x405512,_0x547f12){const _0x4cea18=_0x5df410;var _0x101d5e=b({},_0x1a153e[_0x4cea18(0x12b)]);_0x547f12!=null&&_0x547f12[_0x4cea18(0x31b)]&&_0x101d5e['fill']===_0x4cea18(0x31b)&&(_0x101d5e[_0x4cea18(0x225)]=_0x547f12['colorChannel1']),_0x1a153e[_0x4cea18(0x292)]===_0x4cea18(0xbd)&&_0x101d5e['id']&&(_0x101d5e['id']=_0x101d5e['id']+_0x405512[_0x4cea18(0x29a)]),Object[_0x4cea18(0x219)](_0x101d5e)[_0x4cea18(0x1f5)](function(_0xe9739a){const _0xcef944=_0x4cea18;var _0x36d855=_0xe9739a[0x0],_0x3e0ad8=_0xe9739a[0x1];_0x36d855===_0xcef944(0xbd)&&typeof _0x3e0ad8==_0xcef944(0x1c9)&&(_0x101d5e[_0x36d855]=_0x3e0ad8[_0xcef944(0x20b)](/url\(#(.*)\)/,'url(#$1'[_0xcef944(0x30f)](_0x405512[_0xcef944(0x29a)],')')));});var _0x10a423=_0x405512[_0x4cea18(0x28b)];return!_0x10a423||_0x10a423[_0x4cea18(0x270)]===0x0||(_0x1a153e[_0x4cea18(0x292)]===_0x4cea18(0x22b)&&_0x101d5e[_0x4cea18(0x22a)]&&(_0x101d5e[_0x4cea18(0x22a)]=_0x101d5e[_0x4cea18(0x22a)]+_0x405512[_0x4cea18(0x29a)]),Object[_0x4cea18(0x219)](_0x101d5e)[_0x4cea18(0x1f5)](function(_0xdb2eef){const _0x34098f=_0x4cea18;var _0x30385d=_0xdb2eef[0x0],_0x5db964=_0xdb2eef[0x1];typeof _0x5db964==_0x34098f(0x1c9)&&(_0x101d5e[_0x30385d]=_0x5db964['replace'](/url\(#(.*)\)/,_0x34098f(0x111)[_0x34098f(0x30f)](_0x405512[_0x34098f(0x29a)],')')));})),_0x101d5e;}function Rt(_0x277aba,_0x1303e8){const _0x29860c=_0x5df410;var _0x11c87d,_0x562d98=_0x1303e8[_0x29860c(0x28b)];return!_0x562d98||_0x562d98['length']===0x0?_0x277aba:_0x277aba[_0x29860c(0x292)]===_0x29860c(0x187)&&(!((_0x11c87d=_0x277aba['children'])===null||_0x11c87d===void 0x0)&&_0x11c87d[_0x29860c(0x270)])?b(b({},_0x277aba),{'children':_0x277aba['children'][_0x29860c(0xef)](function(_0x15e91f){const _0x5e0762=_0x29860c;return typeof _0x15e91f['attrs']['id']==_0x5e0762(0x1c9)&&_0x562d98&&_0x562d98[_0x5e0762(0x252)](_0x15e91f[_0x5e0762(0x12b)]['id'])?b(b({},_0x15e91f),{'attrs':b(b({},_0x15e91f[_0x5e0762(0x12b)]),{'id':_0x15e91f['attrs']['id']+_0x1303e8[_0x5e0762(0x29a)]})}):_0x15e91f;})}):_0x277aba;}function Dt(){const _0x17d71f=_0x5df410;return Math[_0x17d71f(0xff)]()[_0x17d71f(0x2e7)](0x24)[_0x17d71f(0x2a0)](0x2,0x8);}pe[_0x5df410(0x273)]=_0x5df410(0x157);var Ut={'tag':_0x5df410(0x14c),'attrs':{'xmlns':_0x5df410(0x1a2),'fill':_0x5df410(0x2fc),'viewBox':_0x5df410(0x1fc),'width':_0x5df410(0xc3),'height':_0x5df410(0xc3)},'children':[{'tag':'g','attrs':{'clipPath':_0x5df410(0x296)},'children':[{'tag':_0x5df410(0x236),'attrs':{'stroke':_0x5df410(0x209),'d':_0x5df410(0x246),'strokeLinecap':_0x5df410(0x14a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5df410(0x187),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5df410(0x1f9)},'children':[{'tag':_0x5df410(0x236),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5df410(0x1f9)]},ye=M['forwardRef'](function(_0x5e7063,_0x141939){const _0x400759=_0x5df410;return M[_0x400759(0x285)](pe,Object[_0x400759(0x260)]({},_0x5e7063,{'id':_0x400759(0x11b),'ref':_0x141939,'icon':Ut}));});ye['displayName']=_0x5df410(0x1e8);var Nt={'tag':_0x5df410(0x14c),'attrs':{'xmlns':_0x5df410(0x1a2),'fill':_0x5df410(0x2fc),'viewBox':_0x5df410(0x1e0),'width':_0x5df410(0xc3),'height':_0x5df410(0xc3)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x5df410(0x236),'attrs':{'stroke':_0x5df410(0x209),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5df410(0x14a),'strokeLinejoin':_0x5df410(0x14a),'strokeWidth':1.2}}]},{'tag':_0x5df410(0x187),'attrs':{},'children':[{'tag':_0x5df410(0x224),'attrs':{'id':_0x5df410(0x279)},'children':[{'tag':'path','attrs':{'fill':_0x5df410(0x1e7),'d':_0x5df410(0xa5),'transform':_0x5df410(0x314)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},$e=M[_0x5df410(0x190)](function(_0x5c6709,_0x356fcb){const _0x34394c=_0x5df410;return M[_0x34394c(0x285)](pe,Object[_0x34394c(0x260)]({},_0x5c6709,{'id':_0x34394c(0x27f),'ref':_0x356fcb,'icon':Nt}));});$e['displayName']='OnLineIcon';function Mt(_0xa64b73){const _0x2c3c75=_0x5df410;switch(_0xa64b73){case u[_0x2c3c75(0x1aa)][_0x2c3c75(0x129)]:return _0x2c3c75(0xbf);case u['CollaborationStatus'][_0x2c3c75(0x30b)]:return'collabStatus.conflict';case u[_0x2c3c75(0x1aa)][_0x2c3c75(0x315)]:return'collabStatus.fetchMiss';case u[_0x2c3c75(0x1aa)]['NOT_COLLAB']:return _0x2c3c75(0x2cf);case u[_0x2c3c75(0x1aa)][_0x2c3c75(0x170)]:case u[_0x2c3c75(0x1aa)][_0x2c3c75(0x2bb)]:return _0x2c3c75(0x21b);case u[_0x2c3c75(0x1aa)][_0x2c3c75(0x106)]:case u[_0x2c3c75(0x1aa)][_0x2c3c75(0x2a1)]:return _0x2c3c75(0x10d);}}function xe(_0x2ee04b){const _0xf194b6=_0x5df410,{status$:_0x2a81af}=_0x2ee04b,_0x11de4c=O[_0xf194b6(0xb5)](_0x2a81af,u['CollaborationStatus'][_0xf194b6(0x268)]),_0x252189=O[_0xf194b6(0x1f6)](a[_0xf194b6(0x1c0)]),_0x443a0f=O[_0xf194b6(0x1f6)](u[_0xf194b6(0x230)]),_0xeab933=_0x11de4c!==u[_0xf194b6(0x1aa)][_0xf194b6(0x129)],_0x3b70c8=_0x252189['t'](Mt(_0x11de4c)),_0x4d1018=_0xeab933?P['jsx']($e,{}):P[_0xf194b6(0x309)](ye,{}),_0x35f00d=M[_0xf194b6(0x16a)](()=>{const _0x534de2=_0xf194b6;_0xeab933||_0x443a0f[_0x534de2(0x217)]();},[_0xeab933,_0x443a0f]);function _0x407a92(){const _0x1facd4=_0xf194b6;return P[_0x1facd4(0x251)](_0x1facd4(0x168),{'className':_0x1facd4(0x1bf),'onClick':_0x35f00d,'children':[P[_0x1facd4(0x309)](_0x1facd4(0x168),{'className':D[_0x1facd4(0x2c8)](_0x1facd4(0xb0),{'univer-text-green-500':_0xeab933,'univer-text-red-500':!_0xeab933}),'children':_0x4d1018}),P[_0x1facd4(0x309)](_0x1facd4(0x168),{'className':_0x1facd4(0x178),'children':_0x3b70c8})]});}return _0xeab933?_0x407a92():P[_0xf194b6(0x309)](D[_0xf194b6(0x2a8)],{'title':_0x252189['t'](_0xf194b6(0x133)),'children':_0x407a92()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x47abc0,_0x40279c,_0x13eff7,_0x51bf27)=>{for(var _0x13674a=_0x51bf27>0x1?void 0x0:_0x51bf27?Lt(_0x40279c,_0x13eff7):_0x40279c,_0x1b8133=_0x47abc0['length']-0x1,_0x5e4c2b;_0x1b8133>=0x0;_0x1b8133--)(_0x5e4c2b=_0x47abc0[_0x1b8133])&&(_0x13674a=_0x5e4c2b(_0x13674a)||_0x13674a);return _0x13674a;},V=(_0x21e369,_0x5cbadf)=>(_0xf70e78,_0x5aae91)=>_0x5cbadf(_0xf70e78,_0x5aae91,_0x21e369);exports[_0x5df410(0x28d)]=class extends a[_0x5df410(0xf8)]{constructor(_0x2a458f,_0xa61f1d,_0x18e504,_0x52f1b1){const _0x4931f3=_0x5df410;super(),h(this,_0x4931f3(0x17c),new d['BehaviorSubject'](u[_0x4931f3(0x1aa)]['NOT_COLLAB'])),(this[_0x4931f3(0x13e)]=_0x2a458f,this[_0x4931f3(0x265)]=_0xa61f1d,this[_0x4931f3(0x22f)]=_0x18e504,this[_0x4931f3(0x144)]=_0x52f1b1,this[_0x4931f3(0x1be)](),this['_initStatusListener']());}[_0x5df410(0x2be)](){const _0x136a1f=_0x5df410;this[_0x136a1f(0x14b)](this[_0x136a1f(0x13e)][_0x136a1f(0x193)][_0x136a1f(0x1d7)](d['switchMap'](()=>{const _0x47fe35=_0x136a1f,_0x23662f=this[_0x47fe35(0x13e)][_0x47fe35(0x242)]();return _0x23662f?this['_collaborationController']['getCollabEntity$'](_0x23662f[_0x47fe35(0x320)]()):d['of'](null);}),d[_0x136a1f(0x2d1)](_0x1ca00c=>_0x1ca00c?_0x1ca00c[_0x136a1f(0x2b7)]:d['of'](u['CollaborationStatus'][_0x136a1f(0x268)])))['subscribe'](_0x28a8b6=>{const _0x30d549=_0x136a1f;this[_0x30d549(0x17c)][_0x30d549(0x24c)](_0x28a8b6);}));}[_0x5df410(0x1be)](){const _0x18402c=_0x5df410;this['disposeWithMe'](this[_0x18402c(0x144)][_0x18402c(0x1de)](O[_0x18402c(0x264)][_0x18402c(0x155)],()=>O[_0x18402c(0x232)](wt({'status$':this[_0x18402c(0x17c)]['asObservable']()}),this[_0x18402c(0x265)])));}},exports[_0x5df410(0x28d)]=Pt([V(0x0,a[_0x5df410(0x21a)]),V(0x1,a[_0x5df410(0x2b6)](a[_0x5df410(0x2a9)])),V(0x2,a['Inject'](u[_0x5df410(0x29f)])),V(0x3,O[_0x5df410(0x197)])],exports[_0x5df410(0x28d)]);function wt(_0x7fe0a2){const {status$:_0x197117}=_0x7fe0a2;return function(){return P['jsx'](xe,{'status$':_0x197117});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x2f4b77,_0x5b8962,_0x1e5a89,_0xa7f0)=>{const _0x91c6dd=_0x5df410;for(var _0x198a32=_0xa7f0>0x1?void 0x0:_0xa7f0?At(_0x5b8962,_0x1e5a89):_0x5b8962,_0x33c0e5=_0x2f4b77[_0x91c6dd(0x270)]-0x1,_0x2f3741;_0x33c0e5>=0x0;_0x33c0e5--)(_0x2f3741=_0x2f4b77[_0x33c0e5])&&(_0x198a32=_0x2f3741(_0x198a32)||_0x198a32);return _0x198a32;},y=(_0x4df1d8,_0x4782d0)=>(_0x396c3e,_0x234923)=>_0x4782d0(_0x396c3e,_0x234923,_0x4df1d8);let q=class extends a[_0x5df410(0xf8)]{constructor(_0x1645cd,_0x3ec84b,_0x55010b,_0xadd710,_0x46276e,_0xefc12e){const _0x3e3635=_0x5df410;super(),this['_beforeCloseService']=_0x1645cd,this['_localCacheService']=_0x3ec84b,this['_collaborationUIEventService']=_0x55010b,this[_0x3e3635(0x23a)]=_0xadd710,this[_0x3e3635(0x181)]=_0x46276e,this[_0x3e3635(0x310)]=_0xefc12e,this[_0x3e3635(0x176)](),this[_0x3e3635(0x288)]();}[_0x5df410(0x176)](){const _0x13bca8=_0x5df410;this['disposeWithMe'](this[_0x13bca8(0x220)]['registerBeforeClose'](()=>{const _0xf95a8=_0x13bca8;if(this[_0xf95a8(0xb8)][_0xf95a8(0xcc)][_0xf95a8(0xa2)])return this[_0xf95a8(0x310)]['t'](_0xf95a8(0x19b));}));}[_0x5df410(0x288)](){const _0x23fb61=_0x5df410;this[_0x23fb61(0x14b)](this['_collaborationUIEventService'][_0x23fb61(0x22c)][_0x23fb61(0xb6)](_0x1a721b=>{const _0x4f52ae=_0x23fb61;_0x1a721b['id']===u[_0x4f52ae(0x163)][_0x4f52ae(0x186)]&&this['_messageService']['show']({'type':D[_0x4f52ae(0x235)][_0x4f52ae(0x234)],'content':this[_0x4f52ae(0x310)]['t'](_0x4f52ae(0x17b))}),_0x1a721b['id']===u[_0x4f52ae(0x163)][_0x4f52ae(0xdb)]&&this[_0x4f52ae(0x23a)][_0x4f52ae(0x29c)]({'type':D[_0x4f52ae(0x235)][_0x4f52ae(0x234)],'content':this[_0x4f52ae(0x310)]['t'](_0x4f52ae(0x247))}),_0x1a721b['id']===u[_0x4f52ae(0x163)][_0x4f52ae(0x255)]&&this[_0x4f52ae(0x181)][_0x4f52ae(0x29c)]({'title':this[_0x4f52ae(0x310)]['t'](_0x4f52ae(0x1a3)),'content':this[_0x4f52ae(0x310)]['t']('permission.content'),'type':_0x4f52ae(0x2e9),'duration':0x0}),_0x1a721b['id']===u['CollaborationUIEventId'][_0x4f52ae(0x30b)]&&this[_0x4f52ae(0x23a)][_0x4f52ae(0x29c)]({'type':D['MessageType'][_0x4f52ae(0x2b9)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x1a721b[_0x4f52ae(0x1c4)]+')'}),_0x1a721b['id']===u['CollaborationUIEventId'][_0x4f52ae(0x15e)]&&this[_0x4f52ae(0x23a)][_0x4f52ae(0x29c)]({'type':D[_0x4f52ae(0x235)][_0x4f52ae(0x234)],'content':this[_0x4f52ae(0x310)]['t'](_0x1a721b[_0x4f52ae(0x1c4)]||'')}),_0x1a721b['id']===u[_0x4f52ae(0x163)]['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':D['MessageType'][_0x4f52ae(0x234)],'content':this['_localeService']['t']('session.will-retry')}),_0x1a721b['id']===u[_0x4f52ae(0x163)][_0x4f52ae(0x248)]&&this[_0x4f52ae(0x23a)][_0x4f52ae(0x29c)]({'type':D[_0x4f52ae(0x235)][_0x4f52ae(0x2b9)],'content':this['_localeService']['t'](_0x4f52ae(0x2ec))}),_0x1a721b['id']===u[_0x4f52ae(0x163)][_0x4f52ae(0x21d)]&&this[_0x4f52ae(0x23a)][_0x4f52ae(0x29c)]({'type':D[_0x4f52ae(0x235)][_0x4f52ae(0x2b9)],'content':this[_0x4f52ae(0x310)]['t'](_0x4f52ae(0x241))});}));}};q=yt([y(0x0,O[_0x5df410(0x2c6)]),y(0x1,u[_0x5df410(0x304)]),y(0x2,a[_0x5df410(0x2b6)](u[_0x5df410(0xc5)])),y(0x3,O[_0x5df410(0xdd)]),y(0x4,O[_0x5df410(0x2a6)]),y(0x5,a['Inject'](a['LocaleService']))],q);const $t=_0x5df410(0x15d),Ue={},Ee=a[_0x5df410(0x2eb)]('uni.network.url-service');var xt=Object[_0x5df410(0x12c)],Bt=(_0x2dfc42,_0x40bdeb,_0xa9eac0,_0x272b07)=>{const _0x4cedfd=_0x5df410;for(var _0x243d7d=_0x272b07>0x1?void 0x0:_0x272b07?xt(_0x40bdeb,_0xa9eac0):_0x40bdeb,_0x525dc9=_0x2dfc42[_0x4cedfd(0x270)]-0x1,_0x6d5ed4;_0x525dc9>=0x0;_0x525dc9--)(_0x6d5ed4=_0x2dfc42[_0x525dc9])&&(_0x243d7d=_0x6d5ed4(_0x243d7d)||_0x243d7d);return _0x243d7d;},F=(_0x82ffd,_0x3008c1)=>(_0x486ee3,_0xf14bdd)=>_0x3008c1(_0x486ee3,_0xf14bdd,_0x82ffd);exports[_0x5df410(0x311)]=class extends a[_0x5df410(0x289)]{constructor(_0x501c1d,_0x464d31,_0x262c58,_0xe74da2,_0x1a03c5){const _0x3490ac=_0x5df410;super(),this[_0x3490ac(0x211)]=_0x501c1d,this[_0x3490ac(0x254)]=_0x464d31,this[_0x3490ac(0x2a2)]=_0x262c58,this[_0x3490ac(0x156)]=_0xe74da2,_0x1a03c5?_0x1a03c5==null||_0x1a03c5[_0x3490ac(0x2ca)]()['then'](()=>this[_0x3490ac(0x1ff)]()):(this[_0x3490ac(0x254)][_0x3490ac(0x31d)](_0x3490ac(0x2a3),_0x3490ac(0x26d)),this[_0x3490ac(0x1ff)]());}async[_0x5df410(0x1ff)](){const _0x2c1c65=_0x5df410,_0x190d08=this[_0x2c1c65(0x211)][_0x2c1c65(0x2cb)](_0x2c1c65(0x16f)),_0x3d9bfa=this[_0x2c1c65(0x211)][_0x2c1c65(0x2cb)]('type'),_0x39661b=this['_urlService']['getParam']('subunit');if(!_0x190d08||!_0x3d9bfa){this[_0x2c1c65(0x254)][_0x2c1c65(0x31d)](_0x2c1c65(0x2a3),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0xf8f803=await this[_0x2c1c65(0x156)]['loadUnit'](_0x190d08,Number(_0x3d9bfa),_0x39661b);_0xf8f803&&_0xf8f803 instanceof a[_0x2c1c65(0x30d)]&&this[_0x2c1c65(0x2aa)](_0xf8f803);}async['_setupSubUnitSync'](_0xce3ebb){const _0x16790c=_0x5df410;await this['_updateSubUnitFromURLParams'](_0xce3ebb),_0xce3ebb[_0x16790c(0x1df)][_0x16790c(0x1d7)](d[_0x16790c(0x1fe)](this[_0x16790c(0x2d0)]))[_0x16790c(0xb6)](_0xdcf7f2=>{const _0xd2fdc8=_0x16790c;_0xdcf7f2&&this[_0xd2fdc8(0x138)](_0xdcf7f2);}),this[_0x16790c(0x211)][_0x16790c(0x26e)][_0x16790c(0x1d7)](d['takeUntil'](this[_0x16790c(0x2d0)]))['subscribe'](()=>this[_0x16790c(0xe7)](_0xce3ebb));}['_updateURLWithCurrentState'](_0x4794c6,_0x3c0da3=!0x1){const _0x2a88fb=_0x5df410,_0x304e6a=this[_0x2a88fb(0x211)]['getParam'](_0x2a88fb(0xf6));_0x4794c6[_0x2a88fb(0x2a4)]()!==_0x304e6a&&this[_0x2a88fb(0x211)][_0x2a88fb(0x2ed)](_0x2a88fb(0xf6),_0x4794c6[_0x2a88fb(0x2a4)](),_0x3c0da3);}async['_updateSubUnitFromURLParams'](_0x8cdff5){const _0x6d11d8=_0x5df410;var _0x5b9039;const _0x39264c=this['_urlService'][_0x6d11d8(0x2cb)](_0x6d11d8(0xf6));if(!_0x39264c||!_0x8cdff5['getSheetBySheetId'](_0x39264c)){const _0x410394=_0x8cdff5[_0x6d11d8(0xc0)]()[0x0],_0x47e941=_0x8cdff5[_0x6d11d8(0x256)](_0x410394);if(!_0x47e941)return;this[_0x6d11d8(0x138)](_0x47e941,!0x0),await this[_0x6d11d8(0x2a2)][_0x6d11d8(0x262)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x8cdff5[_0x6d11d8(0x320)](),'subUnitId':_0x410394});return;}((_0x5b9039=_0x8cdff5[_0x6d11d8(0x2cc)]())==null?void 0x0:_0x5b9039[_0x6d11d8(0x2a4)]())!==_0x39264c&&await this['_commandService'][_0x6d11d8(0x262)](g[_0x6d11d8(0x2d5)]['id'],{'unitId':_0x8cdff5[_0x6d11d8(0x320)](),'subUnitId':_0x39264c});}},exports['CollaborationDataLoaderController']=Bt([F(0x0,Ee),F(0x1,a[_0x5df410(0x1ab)]),F(0x2,a[_0x5df410(0x171)]),F(0x3,a[_0x5df410(0x2b6)](u[_0x5df410(0x2e0)])),F(0x4,a[_0x5df410(0x291)](Ke[_0x5df410(0x1f4)]))],exports[_0x5df410(0x311)]);var jt=Object[_0x5df410(0x12c)],kt=(_0x4f278a,_0x1aec81,_0x2ab10a,_0x121e63)=>{const _0x53220f=_0x5df410;for(var _0x42944a=_0x121e63>0x1?void 0x0:_0x121e63?jt(_0x1aec81,_0x2ab10a):_0x1aec81,_0x2c5766=_0x4f278a[_0x53220f(0x270)]-0x1,_0x173ca1;_0x2c5766>=0x0;_0x2c5766--)(_0x173ca1=_0x4f278a[_0x2c5766])&&(_0x42944a=_0x173ca1(_0x42944a)||_0x42944a);return _0x42944a;},ce=(_0x5396e4,_0x4ce3fb)=>(_0xfa735f,_0x7d90f8)=>_0x4ce3fb(_0xfa735f,_0x7d90f8,_0x5396e4);let z=class{constructor(_0x5d41f2,_0x7ff642,_0x43971b){const _0x5b23fc=_0x5df410;this['_injector']=_0x5d41f2,this[_0x5b23fc(0x15f)]=_0x7ff642,this[_0x5b23fc(0x1a9)]=_0x43971b;}[_0x5df410(0xfd)](_0x2b33b5){const _0xf3a8e4=_0x5df410;this[_0xf3a8e4(0x19a)](_0x2b33b5),this[_0xf3a8e4(0xfa)](_0x2b33b5);}[_0x5df410(0x27c)](_0x4fedc0){const _0x208e4d=_0x5df410,{unitID:_0x581a25}=_0x4fedc0,_0x4cb4c0=this[_0x208e4d(0x1a9)][_0x208e4d(0x19e)](_0x581a25)[_0x208e4d(0xae)](E[_0x208e4d(0x239)]),{redoCache:_0x32bf03}=_0x4cb4c0[_0x208e4d(0x1b5)]();if(_0x32bf03[_0x208e4d(0x270)]===0x0)return _0x4fedc0;let _0x2a1bbe=a['Tools'][_0x208e4d(0xbe)](_0x4fedc0[_0x208e4d(0x159)][0x0]);for(let _0x24c52e=0x0;_0x24c52e<_0x32bf03[_0x208e4d(0x270)];_0x24c52e++){const _0x171afa={'id':_0x208e4d(0x307),'params':{..._0x32bf03[_0x24c52e]}},_0xdb03f2=this[_0x208e4d(0x15f)][_0x208e4d(0x25a)](_0x2a1bbe,_0x171afa,!0x1);if(m[_0x208e4d(0x295)](_0xdb03f2))throw _0xdb03f2[_0x208e4d(0x2e9)];_0x2a1bbe=_0xdb03f2[_0x208e4d(0x22d)];}return{...a[_0x208e4d(0x261)][_0x208e4d(0xbe)](_0x4fedc0),'mutations':[_0x2a1bbe]};}[_0x5df410(0x19a)](_0x280220){const _0xb71c39=_0x5df410,{unitID:_0xaca03e}=_0x280220,_0x1f5923=this[_0xb71c39(0x1a9)][_0xb71c39(0x19e)](_0xaca03e)['with'](E[_0xb71c39(0x239)]),{undoCache:_0x546e96,redoCache:_0xe9152}=_0x1f5923[_0xb71c39(0x1b5)]();if(_0x546e96[_0xb71c39(0x270)]===0x0||_0xe9152[_0xb71c39(0x270)]===0x0)return;const _0xbaea08=[],_0x19f2f2=[];let _0xc6565d=a['Tools']['deepClone'](_0x280220[_0xb71c39(0x159)][0x0]),_0x8d00eb=a['Tools'][_0xb71c39(0xbe)](_0x280220[_0xb71c39(0x159)][0x0]);for(let _0x5c83fb=_0x546e96[_0xb71c39(0x270)]-0x1;_0x5c83fb>=0x0;_0x5c83fb--){const _0x4d9d08={'id':'doc.mutation.rich-text-editing','params':{..._0x546e96[_0x5c83fb]}},_0x27ed53={'id':_0xb71c39(0x307),'params':{..._0xe9152[_0x5c83fb]}},_0x22af0a=this[_0xb71c39(0x15f)][_0xb71c39(0x25a)](_0xc6565d,_0x4d9d08,!0x1),_0x3329e9=this['_transformService'][_0xb71c39(0x25a)](_0x8d00eb,_0x27ed53,!0x1);if(m[_0xb71c39(0x295)](_0x22af0a))throw _0x22af0a['error'];if(m[_0xb71c39(0x295)](_0x3329e9))throw _0x3329e9['error'];_0xbaea08[_0xb71c39(0x26f)](_0x22af0a['m2Prime'][_0xb71c39(0x24e)]),_0x19f2f2[_0xb71c39(0x26f)](_0x3329e9['m2Prime'][_0xb71c39(0x24e)]),_0xc6565d=_0x22af0a[_0xb71c39(0x22d)],_0x8d00eb=_0x3329e9[_0xb71c39(0x22d)];}_0x1f5923[_0xb71c39(0x205)]({'undoCache':_0xbaea08,'redoCache':_0x19f2f2});}[_0x5df410(0xfa)](_0x2c9024){const _0x1e883f=_0x5df410,{unitID:_0x35a522}=_0x2c9024,_0x1e4da7=this[_0x1e883f(0x1a9)][_0x1e883f(0x19e)](_0x35a522)['with'](E[_0x1e883f(0x239)]),_0x15c8a0=_0x1e4da7[_0x1e883f(0x1a5)]();if(_0x15c8a0==null)return;const _0x50a26a=[{'id':_0x1e883f(0x307),'params':{'unitId':_0x2c9024[_0x1e883f(0xd2)],'actions':null,'textRanges':[_0x15c8a0]}}],_0x1bba92=this['_transformService'][_0x1e883f(0x287)](_0x2c9024,_0x50a26a);if(!m[_0x1e883f(0x24b)](_0x1bba92))throw _0x1bba92['error'];const _0x18f162=_0x1bba92[_0x1e883f(0xec)][0x0][_0x1e883f(0x24e)][_0x1e883f(0x2b8)];Array[_0x1e883f(0x142)](_0x18f162)&&_0x18f162['length']&&_0x1e4da7[_0x1e883f(0x1f2)](_0x18f162[0x0]);}};z=kt([ce(0x0,a[_0x5df410(0x2b6)](a[_0x5df410(0x2a9)])),ce(0x1,m[_0x5df410(0x198)]),ce(0x2,p[_0x5df410(0x1b3)])],z);var Ft=Object[_0x5df410(0x12c)],Ht=(_0x41f790,_0x11418c,_0x1fa0d9,_0x53cbd8)=>{for(var _0x22725c=_0x53cbd8>0x1?void 0x0:_0x53cbd8?Ft(_0x11418c,_0x1fa0d9):_0x11418c,_0x195e4a=_0x41f790['length']-0x1,_0xc35ff7;_0x195e4a>=0x0;_0x195e4a--)(_0xc35ff7=_0x41f790[_0x195e4a])&&(_0x22725c=_0xc35ff7(_0x22725c)||_0x22725c);return _0x22725c;},le=(_0x568efb,_0x15b95a)=>(_0x35ea01,_0x4125d6)=>_0x15b95a(_0x35ea01,_0x4125d6,_0x568efb);let J=class{constructor(_0x54e3e1,_0x48e46f,_0x4e886f){const _0x63c8fb=_0x5df410;this[_0x63c8fb(0x265)]=_0x54e3e1,this[_0x63c8fb(0x15f)]=_0x48e46f,this[_0x63c8fb(0x18f)]=_0x4e886f;}['transformStateCache'](_0x116c79){const _0x5c2db4=_0x5df410;this[_0x5c2db4(0x20a)](_0x116c79);}[_0x5df410(0x27c)](_0x10e8b7){const _0x3bdaca=_0x5df410,{unitID:_0x1ca164}=_0x10e8b7,{collaboration:_0x5a9405}=this[_0x3bdaca(0x18f)][_0x3bdaca(0x2c3)](_0x1ca164);if(_0x5a9405[_0x3bdaca(0x270)]===0x0)return _0x10e8b7;let _0x35013f=a[_0x3bdaca(0x261)]['deepClone'](_0x10e8b7['mutations'][0x0]);for(let _0x2b57ee=0x0;_0x2b57ee<_0x5a9405[_0x3bdaca(0x270)];_0x2b57ee++){const _0x2d2ac3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5a9405[_0x2b57ee][_0x3bdaca(0xb1)],..._0x5a9405[_0x2b57ee][_0x3bdaca(0x25d)]}},_0x271223=this[_0x3bdaca(0x15f)][_0x3bdaca(0x25a)](_0x35013f,_0x2d2ac3,!0x1);if(m[_0x3bdaca(0x295)](_0x271223))throw _0x271223[_0x3bdaca(0x2e9)];_0x35013f=_0x271223[_0x3bdaca(0x22d)];}return{...a[_0x3bdaca(0x261)][_0x3bdaca(0xbe)](_0x10e8b7),'mutations':[_0x35013f]};}['_transformHistoryAndStateStack'](_0x44bb55){const _0x1fe2ce=_0x5df410,{unitID:_0x2ec8af}=_0x44bb55,{history:_0x149b4d,collaboration:_0x5043e6}=this[_0x1fe2ce(0x18f)]['getStateCache'](_0x2ec8af);if(_0x149b4d[_0x1fe2ce(0x270)]===0x0&&_0x5043e6['length']===0x0)return;const _0x304abe=[],_0x45dd4d=[];let _0x1a8b1f=a['Tools'][_0x1fe2ce(0xbe)](_0x44bb55[_0x1fe2ce(0x159)][0x0]),_0x5cc869=a[_0x1fe2ce(0x261)][_0x1fe2ce(0xbe)](_0x44bb55[_0x1fe2ce(0x159)][0x0]);for(let _0x6640c2=_0x149b4d[_0x1fe2ce(0x270)]-0x1;_0x6640c2>=0x0;_0x6640c2--){const _0x50c8a0={'id':_0x1fe2ce(0x307),'params':{'unitId':_0x149b4d[_0x6640c2]['unitId'],..._0x149b4d[_0x6640c2][_0x1fe2ce(0x229)]}},_0x396315={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x149b4d[_0x6640c2][_0x1fe2ce(0xb1)],..._0x149b4d[_0x6640c2][_0x1fe2ce(0x25d)]}},_0x5acfad=this[_0x1fe2ce(0x15f)]['transformMutation'](_0x1a8b1f,_0x50c8a0,!0x1),_0x4490dd=this[_0x1fe2ce(0x15f)]['transformMutation'](_0x5cc869,_0x396315,!0x1);if(m[_0x1fe2ce(0x295)](_0x5acfad))throw _0x5acfad[_0x1fe2ce(0x2e9)];if(m[_0x1fe2ce(0x295)](_0x4490dd))throw _0x4490dd[_0x1fe2ce(0x2e9)];_0x304abe[_0x1fe2ce(0x26f)]({..._0x149b4d[_0x6640c2],'undoState':_0x5acfad[_0x1fe2ce(0xec)]['params'],'redoState':_0x4490dd[_0x1fe2ce(0xec)][_0x1fe2ce(0x24e)]}),_0x1a8b1f=_0x5acfad[_0x1fe2ce(0x22d)],_0x5cc869=_0x4490dd[_0x1fe2ce(0x22d)];}_0x1a8b1f=a[_0x1fe2ce(0x261)][_0x1fe2ce(0xbe)](_0x44bb55[_0x1fe2ce(0x159)][0x0]),_0x5cc869=a[_0x1fe2ce(0x261)][_0x1fe2ce(0xbe)](_0x44bb55['mutations'][0x0]);for(let _0x200e85=_0x5043e6[_0x1fe2ce(0x270)]-0x1;_0x200e85>=0x0;_0x200e85--){const _0x3a0d7f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5043e6[_0x200e85][_0x1fe2ce(0xb1)],..._0x5043e6[_0x200e85][_0x1fe2ce(0x229)]}},_0x302608={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5043e6[_0x200e85]['unitId'],..._0x5043e6[_0x200e85][_0x1fe2ce(0x25d)]}},_0x1646c7=this[_0x1fe2ce(0x15f)][_0x1fe2ce(0x25a)](_0x1a8b1f,_0x3a0d7f,!0x1),_0x2f8d7c=this[_0x1fe2ce(0x15f)][_0x1fe2ce(0x25a)](_0x5cc869,_0x302608,!0x1);if(m[_0x1fe2ce(0x295)](_0x1646c7))throw _0x1646c7['error'];if(m['isTransformMutationFailure'](_0x2f8d7c))throw _0x2f8d7c['error'];_0x45dd4d[_0x1fe2ce(0x26f)]({..._0x5043e6[_0x200e85],'undoState':_0x1646c7['m2Prime'][_0x1fe2ce(0x24e)],'redoState':_0x2f8d7c[_0x1fe2ce(0xec)][_0x1fe2ce(0x24e)]}),_0x1a8b1f=_0x1646c7[_0x1fe2ce(0x22d)],_0x5cc869=_0x2f8d7c[_0x1fe2ce(0x22d)];}this[_0x1fe2ce(0x18f)]['setStateCache'](_0x2ec8af,{'history':_0x304abe,'collaboration':_0x45dd4d});}};J=Ht([le(0x0,a[_0x5df410(0x2b6)](a[_0x5df410(0x2a9)])),le(0x1,m['ITransformService']),le(0x2,a[_0x5df410(0x2b6)](E[_0x5df410(0x148)]))],J);var Yt=Object[_0x5df410(0x12c)],Wt=(_0x32d90b,_0x41ce9c,_0x13df4d,_0x12defd)=>{const _0x15044f=_0x5df410;for(var _0x3bd36c=_0x12defd>0x1?void 0x0:_0x12defd?Yt(_0x41ce9c,_0x13df4d):_0x41ce9c,_0xbdcb11=_0x32d90b[_0x15044f(0x270)]-0x1,_0x2684ef;_0xbdcb11>=0x0;_0xbdcb11--)(_0x2684ef=_0x32d90b[_0xbdcb11])&&(_0x3bd36c=_0x2684ef(_0x3bd36c)||_0x3bd36c);return _0x3bd36c;},Ne=(_0x2edf76,_0xff6706)=>(_0x1f3691,_0x194af8)=>_0xff6706(_0x1f3691,_0x194af8,_0x2edf76);let Z=class{constructor(_0x4d65e1,_0x345201){const _0x1dcc2c=_0x5df410;this[_0x1dcc2c(0x265)]=_0x4d65e1,this[_0x1dcc2c(0x15f)]=_0x345201;}[_0x5df410(0xa9)](_0x2d3aa6){const _0x17f95=_0x5df410;var _0x12e2b7;const _0x811d19=this['_injector']['get'](Y['DocSelectionManagerService']),_0x1488b5=(_0x12e2b7=_0x811d19[_0x17f95(0x2ef)]())!=null?_0x12e2b7:[];if(_0x1488b5[_0x17f95(0x270)]===0x0)return;const _0x431874=_0x2d3aa6[_0x17f95(0xd2)],_0x5afee1=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x431874,'actions':null,'textRanges':_0x1488b5}}],_0x409ff5=this[_0x17f95(0x15f)][_0x17f95(0x287)](_0x2d3aa6,_0x5afee1);if(!m[_0x17f95(0x24b)](_0x409ff5))throw _0x409ff5['error'];const _0x1e1e4f=_0x409ff5[_0x17f95(0xec)][0x0]['params'][_0x17f95(0x2b8)];Array['isArray'](_0x1e1e4f)&&_0x1e1e4f[_0x17f95(0x270)]&&_0x811d19[_0x17f95(0xe6)](_0x1e1e4f,{'unitId':_0x431874,'subUnitId':_0x431874},!0x1);}};Z=Wt([Ne(0x0,a[_0x5df410(0x2b6)](a['Injector'])),Ne(0x1,m[_0x5df410(0x198)])],Z);var Vt=Object[_0x5df410(0x12c)],Xt=(_0x3451c5,_0x511df4,_0x5b5c05,_0x1e49c4)=>{for(var _0x4a97ba=_0x1e49c4>0x1?void 0x0:_0x1e49c4?Vt(_0x511df4,_0x5b5c05):_0x511df4,_0x1e35af=_0x3451c5['length']-0x1,_0x322d8c;_0x1e35af>=0x0;_0x1e35af--)(_0x322d8c=_0x3451c5[_0x1e35af])&&(_0x4a97ba=_0x322d8c(_0x4a97ba)||_0x4a97ba);return _0x4a97ba;},N=(_0x21e992,_0x327e75)=>(_0x2b72fc,_0x5fbbf0)=>_0x327e75(_0x2b72fc,_0x5fbbf0,_0x21e992);let Q=class extends a[_0x5df410(0xf8)]{constructor(_0x125ee4,_0x4c4572,_0x2d345b,_0x3c3293,_0xc477e5,_0x2d44dd,_0x5f8fba,_0x1cbe6d){const _0x15a918=_0x5df410;super(),h(this,_0x15a918(0x17c),new d[(_0x15a918(0x204))](u[_0x15a918(0x1aa)][_0x15a918(0x268)])),(this['_docStateChangeManagerService']=_0x125ee4,this[_0x15a918(0x22f)]=_0x4c4572,this[_0x15a918(0x244)]=_0x2d345b,this[_0x15a918(0x152)]=_0x3c3293,this[_0x15a918(0x2d7)]=_0xc477e5,this[_0x15a918(0x308)]=_0x2d44dd,this[_0x15a918(0x23a)]=_0x5f8fba,this[_0x15a918(0x310)]=_0x1cbe6d,this['_initEntityListener']());}['_initEntityListener'](){const _0x53be19=_0x5df410;this[_0x53be19(0x14b)](this['_collaborationController'][_0x53be19(0x250)][_0x53be19(0xb6)](_0x28cd86=>{const _0x392640=_0x53be19,_0x4ddd65=this[_0x392640(0x18f)]['docStateChange$']['subscribe'](_0x388197=>{const _0x57caa1=_0x392640;if(_0x388197==null)return;const {unitId:_0x418430,redoState:_0x250b6d,commandId:_0x20bcbc}=_0x388197;if(_0x418430!==_0x28cd86[_0x57caa1(0xd2)])return;const _0x484d1a={'id':_0x20bcbc,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x418430,'actions':_0x250b6d['actions'],'textRanges':null}};_0x28cd86[_0x57caa1(0x214)](_0x484d1a);});if(_0x28cd86[_0x392640(0x14b)](_0x4ddd65),_0x28cd86 instanceof u[_0x392640(0x17e)]){const _0x369971={'onTransformIME':_0x22899b=>this['_docTransformIMECacheService'][_0x392640(0xfd)](_0x22899b),'onTransformState':_0x427f0a=>this[_0x392640(0x152)][_0x392640(0x112)](_0x427f0a),'onTransformSelections':_0x4cfbb2=>this[_0x392640(0x2d7)][_0x392640(0xa9)](_0x4cfbb2),'onSyncEditingCollabCursor':_0x1ecb03=>this[_0x392640(0x308)][_0x392640(0x116)](_0x1ecb03),'onTransformRemoteChangesetByIMECache':_0x198038=>this['_docTransformIMECacheService'][_0x392640(0x27c)](_0x198038),'onTransformRemoteChangesetByStateCache':_0x3b54b2=>this[_0x392640(0x152)][_0x392640(0x27c)](_0x3b54b2)};_0x28cd86[_0x392640(0x29d)](_0x369971);}}));}};Q=Xt([N(0x0,a[_0x5df410(0x2b6)](E['DocStateChangeManagerService'])),N(0x1,a[_0x5df410(0x2b6)](u['CollaborationController'])),N(0x2,a[_0x5df410(0x2b6)](z)),N(0x3,a[_0x5df410(0x2b6)](J)),N(0x4,a[_0x5df410(0x2b6)](Z)),N(0x5,a[_0x5df410(0x2b6)](Ce)),N(0x6,O[_0x5df410(0xdd)]),N(0x7,a[_0x5df410(0x2b6)](a['LocaleService']))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x381080,_0x3cc7d5,_0x2338ba,_0x2e4b0d)=>{const _0x5c4ef2=_0x5df410;for(var _0x7da31f=_0x2e4b0d>0x1?void 0x0:_0x2e4b0d?Gt(_0x3cc7d5,_0x2338ba):_0x3cc7d5,_0x4d81c9=_0x381080[_0x5c4ef2(0x270)]-0x1,_0x238bd9;_0x4d81c9>=0x0;_0x4d81c9--)(_0x238bd9=_0x381080[_0x4d81c9])&&(_0x7da31f=_0x238bd9(_0x7da31f)||_0x7da31f);return _0x7da31f;},_e=(_0x4e8a83,_0x506c57)=>(_0x494006,_0x5c1a89)=>_0x506c57(_0x494006,_0x5c1a89,_0x4e8a83);let ge=class extends a[_0x5df410(0xf8)]{constructor(_0x50c495,_0x23b306,_0x16c383){const _0x5c9ccf=_0x5df410;super(),h(this,_0x5c9ccf(0x312),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x5c9ccf(0xd3),!0x1),(this[_0x5c9ccf(0x269)]=_0x50c495,this[_0x5c9ccf(0x23d)]=_0x23b306,this[_0x5c9ccf(0x121)]=_0x16c383);}[_0x5df410(0x11f)](){this['_disabled']=!0x0;}[_0x5df410(0x245)](){this['_disabled']=!0x1;}get[_0x5df410(0xcc)](){const _0x15e040=_0x5df410;return this[_0x15e040(0x1e2)];}['dispose'](){const _0x3de672=_0x5df410;this[_0x3de672(0xf3)]()[_0x3de672(0x303)](()=>super['dispose']());}async[_0x5df410(0x2de)](_0x2e2b76){const _0x138d79=_0x5df410;return this[_0x138d79(0xd3)]?null:this[_0x138d79(0x23d)][_0x138d79(0xfe)](u[_0x138d79(0x114)](_0x2e2b76));}async[_0x5df410(0x272)](_0x1508e1,_0x1efd8e){const _0x42c350=_0x5df410;return!!this[_0x42c350(0x23d)][_0x42c350(0x1a8)](_0x1508e1,_0x1efd8e);}[_0x5df410(0x1ca)](_0x443e75,_0x55f24a,_0x2c45af,_0x204321){const _0x5ed0c3=_0x5df410,_0x2abf09=this['_revisionService'][_0x5ed0c3(0x27b)](_0x443e75);this[_0x5ed0c3(0x312)][_0x5ed0c3(0xe8)](_0x443e75,{'unitID':_0x443e75,'type':_0x55f24a,'awaitingChangeset':_0x2c45af,'mutations':_0x204321,'rev':_0x2abf09}),this[_0x5ed0c3(0x1e2)][_0x5ed0c3(0x19d)](_0x443e75)||this['_scheduleSaving'](_0x443e75);}[_0x5df410(0x18a)](_0x46bfaf){const _0x4d83b6=_0x5df410,_0x53f240=this[_0x4d83b6(0x28c)]();_0x53f240===0x0?this[_0x4d83b6(0x208)](_0x46bfaf):this[_0x4d83b6(0x1e2)][_0x4d83b6(0xe8)](_0x46bfaf,setTimeout(()=>this[_0x4d83b6(0x208)](_0x46bfaf),_0x53f240));}[_0x5df410(0x28c)](){const _0x5404f9=_0x5df410;var _0xae1d64;return(_0xae1d64=this[_0x5404f9(0x269)]['getConfig'](u[_0x5404f9(0x1e4)]))!=null?_0xae1d64:u[_0x5404f9(0x24f)];}['_saveCache'](_0x4305f2){const _0x12a9dc=_0x5df410,_0x32f9ca=this[_0x12a9dc(0x1e2)][_0x12a9dc(0x1eb)](_0x4305f2);return _0x32f9ca!==void 0x0&&window['clearTimeout'](_0x32f9ca),this[_0x12a9dc(0x23d)][_0x12a9dc(0x1a8)](u['getLocalCacheKey'](_0x4305f2),this[_0x12a9dc(0x312)][_0x12a9dc(0x1eb)](_0x4305f2))[_0x12a9dc(0x303)](()=>this[_0x12a9dc(0x1e2)]['delete'](_0x4305f2));}async[_0x5df410(0xf3)](){const _0x120bd4=_0x5df410,_0x20f186=[];this[_0x120bd4(0x1e2)][_0x120bd4(0x1f5)]((_0xdfab17,_0x166764)=>{const _0x592096=_0x120bd4;window['clearTimeout'](_0xdfab17),_0x20f186[_0x592096(0x1a7)](this[_0x592096(0x208)](_0x166764)['then'](()=>{const _0x201dd1=_0x592096;this[_0x201dd1(0x1e2)][_0x201dd1(0x2dd)](_0x166764);}));}),await Promise['all'](_0x20f186);}};ge=Kt([_e(0x0,a[_0x5df410(0x2d3)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x5df410(0x2b6)](m[_0x5df410(0x257)]))],ge);class Be extends a['RxDisposable']{constructor(){const _0x43c807=_0x5df410;super(),h(this,'urlChange$'),this['urlChange$']=d['fromEvent'](window,'popstate')[_0x43c807(0x1d7)](d[_0x43c807(0x1fe)](this['dispose$']),d['shareReplay'](0x1),d[_0x43c807(0x120)](void 0x0));}[_0x5df410(0x2ed)](_0x22a67f,_0xefeec1,_0x22c48a=!0x1){const _0x9a38f4=_0x5df410,_0x171788=new URL(window[_0x9a38f4(0x227)][_0x9a38f4(0x2ea)]);_0x171788[_0x9a38f4(0xab)]['set'](_0x22a67f,_0xefeec1),_0x22c48a?window[_0x9a38f4(0x2e1)]['replaceState']('','',_0x171788[_0x9a38f4(0x2e7)]()):window[_0x9a38f4(0x2e1)][_0x9a38f4(0x2f2)]('','',_0x171788['toString']());}[_0x5df410(0x108)](_0x2cfbef,_0x579a4e=!0x1){const _0x481a5e=_0x5df410,_0x3b6e80=new URL(window[_0x481a5e(0x227)][_0x481a5e(0x2ea)]);_0x3b6e80[_0x481a5e(0xab)]['delete'](_0x2cfbef),_0x579a4e?window['history'][_0x481a5e(0xc6)]('','',_0x3b6e80['toString']()):window[_0x481a5e(0x2e1)][_0x481a5e(0x2f2)]('','',_0x3b6e80['toString']());}['getParam'](_0x552446){const _0x45e51c=_0x5df410;var _0xe775c5;return(_0xe775c5=new URL(window['location'][_0x45e51c(0x2ea)])['searchParams'][_0x45e51c(0x1eb)](_0x552446))!=null?_0xe775c5:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x5df410(0x12c)],Jt=(_0x51e0c1,_0x322af5,_0x3c2d51)=>_0x322af5 in _0x51e0c1?qt(_0x51e0c1,_0x322af5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c2d51}):_0x51e0c1[_0x322af5]=_0x3c2d51,Zt=(_0x34fc47,_0x2ac8e3,_0x356945,_0x481e99)=>{const _0xa0c285=_0x5df410;for(var _0x4ddb80=_0x481e99>0x1?void 0x0:_0x481e99?zt(_0x2ac8e3,_0x356945):_0x2ac8e3,_0x2d5c48=_0x34fc47[_0xa0c285(0x270)]-0x1,_0x3abf9e;_0x2d5c48>=0x0;_0x2d5c48--)(_0x3abf9e=_0x34fc47[_0x2d5c48])&&(_0x4ddb80=_0x3abf9e(_0x4ddb80)||_0x4ddb80);return _0x4ddb80;},he=(_0x5c7c46,_0x1350d1)=>(_0x479ffb,_0x1cebce)=>_0x1350d1(_0x479ffb,_0x1cebce,_0x5c7c46),Qt=(_0x51c673,_0x2d85c9,_0x3afa3c)=>Jt(_0x51c673,_0x2d85c9+'',_0x3afa3c);const es=_0x5df410(0x1dd);exports[_0x5df410(0x302)]=class extends a[_0x5df410(0x30e)]{constructor(_0x528ca5=Ue,_0x16ccab,_0x4eb09c,_0x30a832){const _0x3cca6b=_0x5df410;super(),this['_config']=_0x528ca5,this['_renderManagerService']=_0x16ccab,this[_0x3cca6b(0x265)]=_0x4eb09c,this[_0x3cca6b(0x269)]=_0x30a832;const {..._0x1629f1}=a[_0x3cca6b(0x228)]({},Ue,this[_0x3cca6b(0x164)]);this[_0x3cca6b(0x269)]['setConfig']($t,_0x1629f1);}[_0x5df410(0x1ae)](){const _0x586128=_0x5df410;this[_0x586128(0x23c)](),this[_0x586128(0x1ec)]();}[_0x5df410(0x1d2)](){const _0x4c5876=_0x5df410;this[_0x4c5876(0x113)]();}[_0x5df410(0x23c)](){const _0x433309=_0x5df410;var _0x2c9130;const _0x4944ec=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':Be}],[G[_0x433309(0x1ac)],{'useClass':G[_0x433309(0x1b7)]}],[u[_0x433309(0x304)],{'useClass':ge}],[exports[_0x433309(0x28d)]],[Q],[q],[x],[de],[exports[_0x433309(0x311)]]];a[_0x433309(0x15a)](this[_0x433309(0x265)],a[_0x433309(0x280)](_0x4944ec,(_0x2c9130=this['_config'])==null?void 0x0:_0x2c9130['override']));}[_0x5df410(0x113)](){const _0x31644c=_0x5df410;this[_0x31644c(0x14b)](this[_0x31644c(0x1a9)][_0x31644c(0xc7)](a['UniverInstanceType'][_0x31644c(0xd0)],[fe])),this['disposeWithMe'](this[_0x31644c(0x1a9)]['registerRenderModule'](a[_0x31644c(0xe9)][_0x31644c(0x199)],[ve]));}[_0x5df410(0x1ec)](){const _0x24456a=_0x5df410;a['touchDependencies'](this[_0x24456a(0x265)],[[x],[exports[_0x24456a(0x28d)]],[Q],[q],[exports[_0x24456a(0x311)]]]);}},Qt(exports[_0x5df410(0x302)],'pluginName',es),exports[_0x5df410(0x302)]=Zt([a['DependentOn'](u[_0x5df410(0xc9)]),he(0x1,p[_0x5df410(0x1b3)]),he(0x2,a['Inject'](a[_0x5df410(0x2a9)])),he(0x3,a[_0x5df410(0x2d3)])],exports[_0x5df410(0x302)]);var ts=Object[_0x5df410(0x12c)],ss=(_0x4c5fbd,_0x2d009e,_0x3f0cf3,_0x4ce652)=>{const _0x32838c=_0x5df410;for(var _0x56d83a=_0x4ce652>0x1?void 0x0:_0x4ce652?ts(_0x2d009e,_0x3f0cf3):_0x2d009e,_0x46ddef=_0x4c5fbd[_0x32838c(0x270)]-0x1,_0x59ac9e;_0x46ddef>=0x0;_0x46ddef--)(_0x59ac9e=_0x4c5fbd[_0x46ddef])&&(_0x56d83a=_0x59ac9e(_0x56d83a)||_0x56d83a);return _0x56d83a;},H=(_0x1fd850,_0x25bbef)=>(_0x578929,_0x2a1675)=>_0x25bbef(_0x578929,_0x2a1675,_0x1fd850);exports['BrowserCollaborationSocketService']=class extends u[_0x5df410(0xb2)]{constructor(_0x223375,_0x342f4f,_0x3eaeca,_0x517a06,_0x79923d){super(_0x223375,_0x342f4f,_0x3eaeca,_0x517a06,_0x79923d);}async[_0x5df410(0x104)](_0x5be327){const _0x19e450=_0x5df410,_0x567e66=await this[_0x19e450(0xe4)](),_0x8679ef=this[_0x19e450(0x127)](_0x5be327,_0x567e66);return this[_0x19e450(0xc2)](_0x8679ef);}['_createSocketURL'](_0x3a5c66,_0x57b7d9){const _0x35a08a=_0x5df410,_0x1acfa8=typeof window>'u'?new URL(_0x3a5c66):new URL(_0x3a5c66,window[_0x35a08a(0x227)]['origin']);_0x1acfa8[_0x35a08a(0xab)]['set'](_0x35a08a(0x11c),_0x57b7d9);const _0x2a550c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x35a08a(0x227)][_0x35a08a(0x2d8)]);return _0x2a550c[_0x35a08a(0x1eb)]('runId')&&_0x1acfa8[_0x35a08a(0xab)][_0x35a08a(0xe8)]('runId',_0x2a550c[_0x35a08a(0x1eb)](_0x35a08a(0x10e))),_0x1acfa8[_0x35a08a(0x2e7)]();}async[_0x5df410(0xe4)](){const _0x5440cc=_0x5df410;var _0x426cf6,_0x4a97e1,_0x59c13e;const _0x2fcb09=this[_0x5440cc(0x269)][_0x5440cc(0x128)](u[_0x5440cc(0x201)]),_0x1daafd=(_0x426cf6=_0x2fcb09==null?void 0x0:_0x2fcb09['wsSessionTicketUrl'])!=null?_0x426cf6:u[_0x5440cc(0x14d)];return(_0x59c13e=(_0x4a97e1=(await this[_0x5440cc(0x1b4)][_0x5440cc(0x1eb)](_0x1daafd,{'headers':{'Content-Type':_0x5440cc(0xf5)}}))[_0x5440cc(0x316)])==null?void 0x0:_0x4a97e1[_0x5440cc(0x294)])!=null?_0x59c13e:'';}},exports[_0x5df410(0x2e3)]=ss([H(0x0,a[_0x5df410(0x2b6)](a[_0x5df410(0x2a9)])),H(0x1,a[_0x5df410(0x2b6)](G[_0x5df410(0xa8)])),H(0x2,a[_0x5df410(0x2d3)]),H(0x3,a[_0x5df410(0x1ab)]),H(0x4,m[_0x5df410(0xe1)])],exports[_0x5df410(0x2e3)]);const Me=0x7530,Le=_0x5df410(0x27e);class is extends a['Disposable']{constructor(){const _0x4abbfe=_0x5df410;super(),h(this,_0x4abbfe(0x21c),a[_0x4abbfe(0x167)]()),h(this,_0x4abbfe(0x1b0),new Set()),h(this,_0x4abbfe(0x110),new Map()),h(this,_0x4abbfe(0x30c),null),h(this,_0x4abbfe(0x158),new Map()),h(this,_0x4abbfe(0xc8),new Map()),this[_0x4abbfe(0x1ff)]();}[_0x5df410(0x299)](){const _0x3a8fc9=_0x5df410;super['dispose'](),this[_0x3a8fc9(0x158)][_0x3a8fc9(0x1f5)]((_0x3fba6b,_0x3f0b36)=>this[_0x3a8fc9(0x27d)](_0x3f0b36)),this[_0x3a8fc9(0x30c)]&&window[_0x3a8fc9(0x160)](this[_0x3a8fc9(0x30c)]);}['getUnitStatus$'](_0x576068){const _0x492e05=_0x5df410;return this[_0x492e05(0x147)](_0x576068)[_0x492e05(0x1d7)](d['distinctUntilChanged']());}[_0x5df410(0x29e)](_0x44da15){const _0x3147b7=_0x5df410;this[_0x3147b7(0x1b0)]['size']===0x0&&this[_0x3147b7(0x237)](),this['_selfUnitIDs'][_0x3147b7(0x17d)](_0x44da15),this[_0x3147b7(0x25e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x44da15],'isForwarded':!0x1});}[_0x5df410(0x20d)](_0x142144){const _0x4aa942=_0x5df410;this['_selfUnitIDs'][_0x4aa942(0x2dd)](_0x142144),this[_0x4aa942(0x1b0)]['size']===0x0&&this[_0x4aa942(0x30c)]&&window[_0x4aa942(0x160)](this[_0x4aa942(0x30c)]);}[_0x5df410(0x1ff)](){const _0x1ba354=_0x5df410;this[_0x1ba354(0x14b)](a[_0x1ba354(0x1d4)](d[_0x1ba354(0xf2)](window,_0x1ba354(0x1d8))[_0x1ba354(0xb6)](_0x3e43ee=>{const _0x160eae=_0x1ba354;if(_0x3e43ee['key']!==Le||!_0x3e43ee[_0x160eae(0x21e)])return;const _0x3c5215=JSON['parse'](_0x3e43ee[_0x160eae(0x21e)]);this['_handleEvent'](_0x3c5215);}))),window[_0x1ba354(0x15b)](_0x1ba354(0x180),()=>this[_0x1ba354(0x25e)]({'type':0x1,'memberID':this[_0x1ba354(0x21c)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x2fe607){const _0x124b72=_0x5df410;switch(_0x2fe607[_0x124b72(0x2e2)]){case 0x0:this[_0x124b72(0x16b)](_0x2fe607);break;case 0x1:this[_0x124b72(0x1da)](_0x2fe607);break;case 0x2:this['_handleHeartbeatEvent'](_0x2fe607);break;}}[_0x5df410(0x16b)](_0x52d547){const _0x384f26=_0x5df410,{unitIDs:_0x570bb3,memberID:_0x47a9f1,isForwarded:_0x3a9f7c}=_0x52d547;_0x570bb3[_0x384f26(0x1f5)](_0x51f7e6=>{const _0x504f72=_0x384f26;if(!_0x3a9f7c&&this[_0x504f72(0x110)][_0x504f72(0x19d)](_0x51f7e6)&&this[_0x504f72(0x147)](_0x51f7e6)[_0x504f72(0x24c)](u[_0x504f72(0x182)][_0x504f72(0x23b)]),!this[_0x504f72(0x110)][_0x504f72(0x19d)](_0x51f7e6)||!this[_0x504f72(0x110)][_0x504f72(0x1eb)](_0x51f7e6)[_0x504f72(0x19d)](_0x47a9f1)){const _0x2371bc=this[_0x504f72(0x110)]['get'](_0x51f7e6)||new Set();_0x2371bc[_0x504f72(0x17d)](_0x47a9f1),this[_0x504f72(0x110)]['set'](_0x51f7e6,_0x2371bc),this[_0x504f72(0x2b1)](_0x47a9f1);}}),_0x3a9f7c||this[_0x384f26(0x25e)]({'type':0x0,'memberID':this[_0x384f26(0x21c)],'unitIDs':[...this[_0x384f26(0x1b0)]],'isForwarded':!0x0});}[_0x5df410(0x2b1)](_0x273ef5){const _0x237099=_0x5df410;this[_0x237099(0x27d)](_0x273ef5);const _0x6be9a6=window[_0x237099(0x202)](()=>{const _0x401347=_0x237099;this[_0x401347(0x110)][_0x401347(0x1f5)](_0x5642ff=>{_0x5642ff['delete'](_0x273ef5);});},Me*0x2);this[_0x237099(0x158)][_0x237099(0xe8)](_0x273ef5,_0x6be9a6);}[_0x5df410(0x27d)](_0x1c6c47){const _0x1579d6=_0x5df410;if(this[_0x1579d6(0x158)][_0x1579d6(0x19d)](_0x1c6c47)){const _0x31dd66=this['_clearOtherTimers'][_0x1579d6(0x1eb)](_0x1c6c47);_0x31dd66&&window['clearTimeout'](_0x31dd66),this[_0x1579d6(0x158)]['set'](_0x1c6c47,null);}}['_handleLeaveEvent'](_0x3c78fe){const _0x1ebcda=_0x5df410,{memberID:_0x14f130,unitIDs:_0xd27584}=_0x3c78fe;_0xd27584[_0x1ebcda(0x1f5)](_0x3dc1c9=>{const _0x455395=_0x1ebcda;var _0x22a7bc;const _0x43e202=this[_0x455395(0x110)][_0x455395(0x1eb)](_0x3dc1c9);_0x43e202&&(_0x43e202[_0x455395(0x2dd)](_0x14f130),(_0x22a7bc=this['_ensureSubject'](_0x3dc1c9))==null||_0x22a7bc[_0x455395(0x24c)](_0x43e202[_0x455395(0xa2)]===0x0?u[_0x455395(0x182)]['NO_OTHER_CLIENTS_EDITING']:u[_0x455395(0x182)][_0x455395(0x23b)]));}),this[_0x1ebcda(0x27d)](_0x14f130);}['_handleHeartbeatEvent'](_0x372595){const _0xac8914=_0x5df410;this[_0xac8914(0x2b1)](_0x372595[_0xac8914(0x184)]);}['_send'](_0x11fa23){const _0x56ab41=_0x5df410;localStorage[_0x56ab41(0x1a8)](Le,JSON[_0x56ab41(0x2b2)](_0x11fa23));}['_scheduleHeartbeat'](){const _0x1aeed9=_0x5df410;this[_0x1aeed9(0x30c)]=window['setInterval'](()=>{const _0x4bb3d1=_0x1aeed9;this[_0x4bb3d1(0x25e)]({'type':0x2,'memberID':this[_0x4bb3d1(0x21c)]});},Me);}[_0x5df410(0x147)](_0x188dac){const _0xbebd43=_0x5df410;return this[_0xbebd43(0xc8)]['has'](_0x188dac)||this[_0xbebd43(0xc8)][_0xbebd43(0xe8)](_0x188dac,new d[(_0xbebd43(0x204))](u[_0xbebd43(0x182)][_0xbebd43(0xce)])),this[_0xbebd43(0xc8)][_0xbebd43(0x1eb)](_0x188dac);}}var je=(_0x378700=>(_0x378700[_0x378700[_0x5df410(0x26b)]=0x0]=_0x5df410(0x26b),_0x378700[_0x378700['OK']=0x1]='OK',_0x378700[_0x378700['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x378700[_0x378700[_0x5df410(0x255)]=0x3]='PERMISSION_DENIED',_0x378700[_0x378700[_0x5df410(0x18b)]=0x4]=_0x5df410(0x18b),_0x378700[_0x378700[_0x5df410(0x13f)]=0x5]=_0x5df410(0x13f),_0x378700[_0x378700['ALREADY_EXISTS']=0x6]=_0x5df410(0x1ee),_0x378700[_0x378700[_0x5df410(0x11a)]=0x7]='INVALID_ARGUMENT',_0x378700[_0x378700[_0x5df410(0x18c)]=0x8]='TOO_MANY_REQUESTS',_0x378700[_0x378700[_0x5df410(0x206)]=0x9]='COMPLETION_FINISHED',_0x378700[_0x378700[_0x5df410(0xa3)]=0xa]=_0x5df410(0xa3),_0x378700[_0x378700[_0x5df410(0x226)]=0xb]=_0x5df410(0x226),_0x378700[_0x378700[_0x5df410(0x2a5)]=0xc]=_0x5df410(0x2a5),_0x378700[_0x378700[_0x5df410(0xf4)]=0xd]=_0x5df410(0xf4),_0x378700[_0x378700[_0x5df410(0x173)]=0xe]=_0x5df410(0x173),_0x378700[_0x378700[_0x5df410(0x24d)]=0x1389]=_0x5df410(0x24d),_0x378700[_0x378700[_0x5df410(0x2d6)]=0x1771]=_0x5df410(0x2d6),_0x378700[_0x378700[_0x5df410(0x174)]=0x1772]=_0x5df410(0x174),_0x378700[_0x378700[_0x5df410(0x2c7)]=0x1773]=_0x5df410(0x2c7),_0x378700[_0x378700[_0x5df410(0x101)]=0x1b59]=_0x5df410(0x101),_0x378700[_0x378700['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5df410(0x2cd),_0x378700[_0x378700[_0x5df410(0x17a)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x378700[_0x378700[_0x5df410(0x151)]=0x1b5c]=_0x5df410(0x151),_0x378700[_0x378700[_0x5df410(0xd7)]=0x1b5d]=_0x5df410(0xd7),_0x378700[_0x378700[_0x5df410(0x293)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x378700[_0x378700[_0x5df410(0x1e9)]=0x2329]=_0x5df410(0x1e9),_0x378700[_0x378700[_0x5df410(0xed)]=0x232a]=_0x5df410(0xed),_0x378700[_0x378700[_0x5df410(0xfb)]=0x232b]=_0x5df410(0xfb),_0x378700[_0x378700[_0x5df410(0x212)]=0x232c]=_0x5df410(0x212),_0x378700[_0x378700['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5df410(0x28f),_0x378700[_0x378700[_0x5df410(0x179)]=0x2711]=_0x5df410(0x179),_0x378700[_0x378700[_0x5df410(0xc1)]=0x2712]=_0x5df410(0xc1),_0x378700[_0x378700[_0x5df410(0x2ba)]=0x2713]=_0x5df410(0x2ba),_0x378700[_0x378700['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5df410(0x21f),_0x378700[_0x378700['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x5df410(0x2b4),_0x378700[_0x378700[_0x5df410(0x313)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x378700[_0x378700['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x5df410(0xde),_0x378700[_0x378700[_0x5df410(0xa4)]=0x271d]=_0x5df410(0xa4),_0x378700[_0x378700['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x378700[_0x378700[_0x5df410(0x1f3)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x378700[_0x378700[_0x5df410(0x2b5)]=0x2720]=_0x5df410(0x2b5),_0x378700[_0x378700['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x378700[_0x378700[_0x5df410(0x137)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x378700[_0x378700[_0x5df410(0x26a)]=0x2ee2]=_0x5df410(0x26a),_0x378700[_0x378700[_0x5df410(0x1c6)]=0x2ee3]=_0x5df410(0x1c6),_0x378700[_0x378700[_0x5df410(0x2bd)]=0x2ee4]=_0x5df410(0x2bd),_0x378700[_0x378700['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5df410(0x2f8),_0x378700[_0x378700['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x378700[_0x378700['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x5df410(0x275),_0x378700[_0x378700['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x5df410(0x1b9),_0x378700[_0x378700[_0x5df410(0x25b)]=-0x1]=_0x5df410(0x25b),_0x378700))(je||{}),ns=Object[_0x5df410(0x12c)],rs=(_0x3f78d0,_0x5a876d,_0x4ab8d1,_0x1c67c8)=>{const _0x76b65=_0x5df410;for(var _0x4c5bb4=_0x1c67c8>0x1?void 0x0:_0x1c67c8?ns(_0x5a876d,_0x4ab8d1):_0x5a876d,_0x1050e3=_0x3f78d0[_0x76b65(0x270)]-0x1,_0x21b925;_0x1050e3>=0x0;_0x1050e3--)(_0x21b925=_0x3f78d0[_0x1050e3])&&(_0x4c5bb4=_0x21b925(_0x4c5bb4)||_0x4c5bb4);return _0x4c5bb4;},ue=(_0x5578ea,_0x5cfe95)=>(_0x29e29f,_0x2cd28a)=>_0x5cfe95(_0x29e29f,_0x2cd28a,_0x5578ea);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0xab371c,_0xa2ba96,_0x42d204){const _0xfb01f9=_0x5df410;super(),this[_0xfb01f9(0x10c)]=_0xab371c,this[_0xfb01f9(0x1b4)]=_0xa2ba96,this[_0xfb01f9(0x269)]=_0x42d204;}async[_0x5df410(0xea)](_0xc87129,_0x129c3a,_0x13f66c,..._0x377c9b){const _0x46086b=_0x5df410;var _0x2bfc14,_0x156d64,_0x2aa761,_0xa6c32a;const _0x556ebc=this[_0x46086b(0x10c)]['getFocusedUnit']();if(!_0x556ebc)throw new Error(_0x46086b(0x298));const _0x3a00b4=((_0x2bfc14=this[_0x46086b(0x269)]['getConfig'](u[_0x46086b(0x1d0)]))!=null?_0x2bfc14:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0xc87129+_0x46086b(0xe0)+_0x129c3a,_0x3976d0=new URL(window[_0x46086b(0x227)]['href']),_0x44fa5a={'scriptId':_0xc87129,'runId':(_0x156d64=_0x3976d0[_0x46086b(0xab)][_0x46086b(0x1eb)](_0x46086b(0x10e)))!=null?_0x156d64:'','function':_0x129c3a,'unitId':_0x556ebc[_0x46086b(0x320)](),'argsOfFunction':JSON[_0x46086b(0x2b2)](_0x377c9b),'invokeId':(_0x2aa761=_0x13f66c[_0x46086b(0xb9)])!=null?_0x2aa761:'','executionId':(_0xa6c32a=_0x13f66c[_0x46086b(0x31a)])!=null?_0xa6c32a:''};try{const _0x53bc1e=await this[_0x46086b(0x1b4)]['post'](_0x3a00b4,{'body':_0x44fa5a});return _0x53bc1e[_0x46086b(0x316)][_0x46086b(0x2e9)]&&_0x53bc1e[_0x46086b(0x316)][_0x46086b(0x2e9)][_0x46086b(0x1f0)]!==je['OK']?'Failed':_0x53bc1e[_0x46086b(0x316)][_0x46086b(0x267)];}catch{return'Failed';}}},exports[_0x5df410(0x258)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x5df410(0x2b6)](G['HTTPService'])),ue(0x2,a[_0x5df410(0x2d3)])],exports[_0x5df410(0x258)]),exports[_0x5df410(0x109)]=xe,exports['IURLService']=Ee,exports[_0x5df410(0x274)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=Be;
|
|
1
|
+
'use strict';const _0x5586cb=_0x13cb;(function(_0x1de0aa,_0x5afa3b){const _0x2f0c15=_0x13cb,_0x2e521d=_0x1de0aa();while(!![]){try{const _0x35ae93=-parseInt(_0x2f0c15(0xf1))/0x1*(parseInt(_0x2f0c15(0x263))/0x2)+-parseInt(_0x2f0c15(0x2c3))/0x3*(parseInt(_0x2f0c15(0x113))/0x4)+parseInt(_0x2f0c15(0xe6))/0x5*(parseInt(_0x2f0c15(0xe5))/0x6)+parseInt(_0x2f0c15(0x1ca))/0x7*(-parseInt(_0x2f0c15(0x22c))/0x8)+-parseInt(_0x2f0c15(0x2c8))/0x9*(-parseInt(_0x2f0c15(0xc2))/0xa)+-parseInt(_0x2f0c15(0x11b))/0xb*(-parseInt(_0x2f0c15(0xa2))/0xc)+-parseInt(_0x2f0c15(0x9e))/0xd*(parseInt(_0x2f0c15(0x28b))/0xe);if(_0x35ae93===_0x5afa3b)break;else _0x2e521d['push'](_0x2e521d['shift']());}catch(_0x3ff7bb){_0x2e521d['push'](_0x2e521d['shift']());}}}(_0x5245,0xda065));var We=Object['defineProperty'],Ve=(_0x321e8c,_0x32c978,_0x6215bc)=>_0x32c978 in _0x321e8c?We(_0x321e8c,_0x32c978,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6215bc}):_0x321e8c[_0x32c978]=_0x6215bc,h=(_0x164455,_0x5cde16,_0x47907f)=>Ve(_0x164455,typeof _0x5cde16!='symbol'?_0x5cde16+'':_0x5cde16,_0x47907f);Object[_0x5586cb(0x2d3)](exports,Symbol[_0x5586cb(0x164)],{'value':_0x5586cb(0xfb)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Xe=require('@univerjs/drawing'),d=require('rxjs'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),be=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require('@univerjs/sheets-ui'),P=require('react/jsx-runtime'),O=require('@univerjs/ui'),D=require('@univerjs/design'),M=require('react'),Ge=require('@univerjs/rpc');var Ke=Object[_0x5586cb(0x84)],qe=(_0x1d9e02,_0x1389c2,_0x12ef0c,_0x4f10a9)=>{const _0x5a0db4=_0x5586cb;for(var _0x3ffcf1=_0x4f10a9>0x1?void 0x0:_0x4f10a9?Ke(_0x1389c2,_0x12ef0c):_0x1389c2,_0x11f07c=_0x1d9e02[_0x5a0db4(0x99)]-0x1,_0x534eaa;_0x11f07c>=0x0;_0x11f07c--)(_0x534eaa=_0x1d9e02[_0x11f07c])&&(_0x3ffcf1=_0x534eaa(_0x3ffcf1)||_0x3ffcf1);return _0x3ffcf1;},Oe=(_0xe557f2,_0x45d60c)=>(_0x1c38a2,_0x5f37c9)=>_0x45d60c(_0x1c38a2,_0x5f37c9,_0xe557f2);let de=class extends a[_0x5586cb(0x2bc)]{constructor(_0x3ed304,_0x5c5544){const _0x7d40cc=_0x5586cb;super(),this[_0x7d40cc(0xe4)]=_0x3ed304,this[_0x7d40cc(0x108)]=_0x5c5544,this['_init']();}[_0x5586cb(0x17f)](){const _0x42aeff=_0x5586cb,_0x4380cc=this;this[_0x42aeff(0x142)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x1c7609=>{const _0x581450=_0x42aeff,_0x3f3e5d=await _0x4380cc[_0x581450(0x108)][_0x581450(0x2d9)](_0x1c7609);return _0x3f3e5d?{'source':_0x3f3e5d['source'],'imageSourceType':_0x3f3e5d[_0x581450(0x19f)]}:null;}}));}};de=qe([Oe(0x0,E[_0x5586cb(0x213)]),Oe(0x1,Xe['IImageIoService'])],de);const Te=['purple.300',_0x5586cb(0x11a),_0x5586cb(0x1cc),_0x5586cb(0x14d),_0x5586cb(0x279),'yellow.400'];class me extends a[_0x5586cb(0x160)]{constructor(){const _0x2a30a9=_0x5586cb;super(...arguments),h(this,_0x2a30a9(0x2c0),new Map()),h(this,'_colorIndex',0x0);}[_0x5586cb(0x1be)](_0x471b0a){const _0x12ff76=_0x5586cb;if(this[_0x12ff76(0x2c0)][_0x12ff76(0xdc)](_0x471b0a))return this[_0x12ff76(0x2c0)][_0x12ff76(0x2ec)](_0x471b0a);const _0x348697=Te[this[_0x12ff76(0x153)]];return this[_0x12ff76(0x153)]=(this['_colorIndex']+0x1)%Te['length'],this['_assignedColors'][_0x12ff76(0xf4)](_0x471b0a,_0x348697),_0x348697;}}function Pe(_0xd0ab19){const _0xef1b7f=_0x5586cb;let _0x52ad6d='';for(const _0x226552 of _0xd0ab19){const {startOffset:_0x924d61,endOffset:_0x1a2173,isActive:_0x510b8e,rangeType:_0x389b5c,segmentId:_0x228d13,segmentPage:_0x313132}=_0x226552;_0x52ad6d[_0xef1b7f(0x99)]&&(_0x52ad6d+=','),_0x52ad6d+=_0x924d61+':'+_0x1a2173+':'+(_0x510b8e?'1':'0')+':'+_0x389b5c+':'+_0x228d13+':'+_0x313132;}return _0x52ad6d;}function ze(_0x3ffcd9){const _0x120674=_0x5586cb,_0x1e3f2c=_0x3ffcd9[_0x120674(0x1d9)](','),_0x5f0681=[];for(const _0xd3bd83 of _0x1e3f2c){const [_0x4790bd,_0x406a3c,_0xcca727,_0x1e56a8,_0x2e3a7f,_0x494c5b]=_0xd3bd83[_0x120674(0x1d9)](':');_0x5f0681[_0x120674(0x1e2)]({'startOffset':Number(_0x4790bd),'endOffset':Number(_0x406a3c),'collapsed':_0x4790bd===_0x406a3c,'isActive':_0xcca727==='1','rangeType':_0x1e56a8===a[_0x120674(0x121)][_0x120674(0xe9)]?a[_0x120674(0x121)][_0x120674(0xe9)]:a[_0x120674(0x121)]['RECT'],'segmentId':typeof _0x2e3a7f==_0x120674(0x87)?String(_0x2e3a7f):'','segmentPage':Number(_0x494c5b!=null?_0x494c5b:-0x1)});}return _0x5f0681[_0x120674(0x27a)](_0x148fe6=>_0x148fe6[_0x120674(0x1ce)])||(_0x5f0681[0x0][_0x120674(0x1ce)]=!0x0),_0x5f0681;}class Ce extends a['RxDisposable']{constructor(){const _0x14957c=_0x5586cb;super(...arguments),h(this,'_collabCursorState$',new d[(_0x14957c(0x2dc))](null)),h(this,_0x14957c(0x2b3),this[_0x14957c(0x17a)]['asObservable']());}[_0x5586cb(0xa7)](_0x53de79){const {unitID:_0x1b9abc,memberID:_0x27b24b,textRanges:_0x215d8e}=_0x53de79,_0x3f6f37=Pe(_0x215d8e);if(_0x3f6f37==='')return;const _0x5619d6={'unitID':_0x1b9abc,'memberID':_0x27b24b,'selection':_0x3f6f37};this['_collabCursorState$']['next'](_0x5619d6);}}var Je=Object[_0x5586cb(0x84)],Ze=(_0x2617a5,_0xc0d0a5,_0x50af97,_0x3b2385)=>{const _0x16ee21=_0x5586cb;for(var _0x4838f1=_0x3b2385>0x1?void 0x0:_0x3b2385?Je(_0xc0d0a5,_0x50af97):_0xc0d0a5,_0x5e5e7f=_0x2617a5[_0x16ee21(0x99)]-0x1,_0x298060;_0x5e5e7f>=0x0;_0x5e5e7f--)(_0x298060=_0x2617a5[_0x5e5e7f])&&(_0x4838f1=_0x298060(_0x4838f1)||_0x4838f1);return _0x4838f1;},L=(_0x558fe7,_0xca5618)=>(_0x298c2b,_0x148d14)=>_0xca5618(_0x298c2b,_0x148d14,_0x558fe7);const Qe=0x12c,et=0x64;let Ie=class extends a[_0x5586cb(0x2bc)]{constructor(_0x3ce2b3,_0x563b4d,_0x220cec,_0x9515e3,_0x24c3bd,_0x1fdadf,_0x46461b,_0x583dd1,_0x4065d1){const _0x3e72ce=_0x5586cb;super(),h(this,_0x3e72ce(0x18c),!0x1),h(this,_0x3e72ce(0x17f),!0x1),h(this,'_cursorInfo$',new d[(_0x3e72ce(0x2dc))](new Map())),h(this,'cursorInfo$',this[_0x3e72ce(0x103)]['asObservable']()),h(this,_0x3e72ce(0x9f),new d[(_0x3e72ce(0x2dc))]([])),h(this,_0x3e72ce(0x78),this[_0x3e72ce(0x9f)][_0x3e72ce(0x162)](d[_0x3e72ce(0x2d2)](Qe))),h(this,_0x3e72ce(0xe0),a[_0x3e72ce(0x1a5)](_0x1e5217=>{const _0x2e23e8=_0x3e72ce,_0x81805e={'eventID':m['CollaborationEvent'][_0x2e23e8(0xc3)],'data':{'unitID':this[_0x2e23e8(0x1c0)],'memberID':this[_0x2e23e8(0x249)]['getMemberID'](),'selection':Pe(_0x1e5217)}};this[_0x2e23e8(0x249)]['send'](_0x81805e,this[_0x2e23e8(0x1c0)]);},et)),(this[_0x3e72ce(0x1c0)]=_0x3ce2b3,this['_session']=_0x563b4d,this[_0x3e72ce(0x277)]=_0x220cec,this[_0x3e72ce(0x2b2)]=_0x9515e3,this['_memberService']=_0x24c3bd,this['_syncEditingCollabCursorService']=_0x1fdadf,this['_transformService']=_0x46461b,this['_univerInstanceService']=_0x583dd1,this[_0x3e72ce(0x28d)]=_0x4065d1);}get[_0x5586cb(0x110)](){const _0xc2ea4a=_0x5586cb;return this[_0xc2ea4a(0x103)][_0xc2ea4a(0x7a)]();}get[_0x5586cb(0x1c3)](){const _0x29f697=_0x5586cb;return this[_0x29f697(0x9f)][_0x29f697(0x7a)]();}[_0x5586cb(0x24a)](){const _0x1cea89=_0x5586cb;super[_0x1cea89(0x24a)](),this[_0x1cea89(0x103)][_0x1cea89(0x229)](new Map()),this[_0x1cea89(0x103)]['complete'](),this[_0x1cea89(0x9f)]['next']([]),this[_0x1cea89(0x9f)][_0x1cea89(0x284)]();}[_0x5586cb(0x2c7)](){const _0x32d3ca=_0x5586cb;this[_0x32d3ca(0x17f)]||(this[_0x32d3ca(0x17f)]=!0x0,this[_0x32d3ca(0x249)][_0x32d3ca(0x105)]['pipe'](d['takeUntil'](this[_0x32d3ca(0x1dd)]))[_0x32d3ca(0x2a2)](_0x51682e=>{const _0x3069d7=_0x32d3ca;_0x51682e===u[_0x3069d7(0x1f3)][_0x3069d7(0x15a)]?this['_toggleOnline']():this[_0x3069d7(0xb8)]();}),this[_0x32d3ca(0x249)][_0x32d3ca(0x268)][_0x32d3ca(0x162)](d[_0x32d3ca(0xed)](this[_0x32d3ca(0x1dd)]))[_0x32d3ca(0x2a2)](_0x2a64ac=>{const _0x4a8e20=_0x32d3ca,_0x1d37b2=_0x2a64ac['eventID'];_0x1d37b2===m[_0x4a8e20(0x137)][_0x4a8e20(0xc3)]&&this['_onCursorUpdate'](_0x2a64ac),_0x1d37b2===m['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x2a64ac);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x135ed5=>{const _0x54cf7d=_0x32d3ca,_0x1f1e56=_0x135ed5[_0x54cf7d(0x2ac)];_0x1f1e56!=null&&this[_0x54cf7d(0x18c)]&&_0x135ed5['id']===Y['SetTextSelectionsOperation']['id']&&_0x1f1e56[_0x54cf7d(0x115)]===this['unitID']&&_0x1f1e56[_0x54cf7d(0x1eb)]===!0x1&&_0x1f1e56[_0x54cf7d(0x208)][_0x54cf7d(0x99)]>0x0&&this['_updateLocalCursor'](_0x1f1e56[_0x54cf7d(0x208)]);})),this[_0x32d3ca(0x186)][_0x32d3ca(0x2b3)][_0x32d3ca(0x162)](d[_0x32d3ca(0xed)](this[_0x32d3ca(0x1dd)]))['subscribe'](_0x21098d=>{const _0x51b807=_0x32d3ca;if((_0x21098d==null?void 0x0:_0x21098d['unitID'])!==this[_0x51b807(0x1c0)])return;const _0xf2a71a={'eventID':m[_0x51b807(0x137)]['UPDATE_CURSOR'],'data':_0x21098d};this['_onCursorUpdate'](_0xf2a71a);}),this['disposeWithMe'](this[_0x32d3ca(0x28d)][_0x32d3ca(0x1cb)](_0x206c6b=>{const _0x4aefb8=_0x32d3ca;if(_0x206c6b['params']==null)return;const _0x5cf8ff=_0x206c6b[_0x4aefb8(0x2ac)];if(_0x206c6b['id']!==Y[_0x4aefb8(0x1fe)]['id']||_0x5cf8ff['unitId']!==this[_0x4aefb8(0x1c0)])return;const _0x367386={'id':_0x4aefb8(0x278),'params':_0x5cf8ff},_0x34d060=this[_0x4aefb8(0x110)];for(const [_0x2ad38c,_0x1be8bb]of _0x34d060){const _0x57ff7a={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x4aefb8(0x1c0)],'actions':null,'textRanges':_0x1be8bb[_0x4aefb8(0x208)]}},_0x35df73=this[_0x4aefb8(0xb4)][_0x4aefb8(0xdb)](_0x367386,_0x57ff7a,!0x1);if(m['isTransformMutationFailure'](_0x35df73))throw _0x35df73[_0x4aefb8(0xf8)];_0x34d060['set'](_0x2ad38c,{..._0x1be8bb,'ranges':_0x35df73[_0x4aefb8(0x252)][_0x4aefb8(0x2ac)][_0x4aefb8(0x20e)]});}queueMicrotask(()=>{const _0x2c85bf=_0x4aefb8;this[_0x2c85bf(0x103)]['next'](_0x34d060);});})));}[_0x5586cb(0xb2)](_0x4f8c2c){const _0x401437=_0x5586cb;var _0xcae034,_0x1cdc17;const {memberID:_0x14cdef,selection:_0xe52859}=_0x4f8c2c[_0x401437(0xb9)],_0xc7f3ea=ze(_0xe52859),_0x5b7bf8=(_0x1cdc17=(_0xcae034=this[_0x401437(0x85)][_0x401437(0x15e)](this['unitID'],_0x14cdef))==null?void 0x0:_0xcae034[_0x401437(0x26d)])!=null?_0x1cdc17:_0x401437(0xbf),_0x424f79={'color':this['_colorAssignService'][_0x401437(0x1be)](_0x14cdef),'name':_0x5b7bf8,'ranges':_0xc7f3ea},_0x3ef65f=this[_0x401437(0x110)];_0x3ef65f[_0x401437(0xf4)](_0x14cdef,_0x424f79),this[_0x401437(0x103)][_0x401437(0x229)](_0x3ef65f);}['_onCursorDelete'](_0x147e07){const _0x2c800d=_0x5586cb,{memberID:_0x534302}=_0x147e07['data'],_0xc5226f=this[_0x2c800d(0x110)];_0xc5226f[_0x2c800d(0x181)](_0x534302),this['_cursorInfo$']['next'](_0xc5226f);}[_0x5586cb(0x1ba)](){const _0x36b4a5=_0x5586cb;var _0x14ce0c;if(this['_online']=!0x0,((_0x14ce0c=this['_univerInstanceService'][_0x36b4a5(0x158)]())==null?void 0x0:_0x14ce0c[_0x36b4a5(0x109)]())!==this[_0x36b4a5(0x1c0)])return;const _0x50371b=this[_0x36b4a5(0x277)][_0x36b4a5(0x2ec)](Y[_0x36b4a5(0x1a3)])['getDocRanges']();Array[_0x36b4a5(0x26f)](_0x50371b)&&_0x50371b[_0x36b4a5(0x99)]>0x0&&this[_0x36b4a5(0xe0)](_0x50371b);}[_0x5586cb(0xb8)](){const _0x214033=_0x5586cb;this[_0x214033(0x18c)]=!0x1;}};Ie=Ze([L(0x2,a['Inject'](a[_0x5586cb(0x144)])),L(0x3,a[_0x5586cb(0x187)](me)),L(0x4,a[_0x5586cb(0x187)](u['MemberService'])),L(0x5,a[_0x5586cb(0x187)](Ce)),L(0x6,m[_0x5586cb(0x12c)]),L(0x7,a[_0x5586cb(0x270)]),L(0x8,a['ICommandService'])],Ie);var tt=Object[_0x5586cb(0x84)],st=(_0x580004,_0x564b09,_0x534e07,_0x269ed1)=>{const _0x1fe9a2=_0x5586cb;for(var _0x3d100d=_0x269ed1>0x1?void 0x0:_0x269ed1?tt(_0x564b09,_0x534e07):_0x564b09,_0x1d379e=_0x580004[_0x1fe9a2(0x99)]-0x1,_0x4a4075;_0x1d379e>=0x0;_0x1d379e--)(_0x4a4075=_0x580004[_0x1d379e])&&(_0x3d100d=_0x4a4075(_0x3d100d)||_0x3d100d);return _0x3d100d;},A=(_0x7841a8,_0x4bf1ac)=>(_0x1509ef,_0x2dc9ea)=>_0x4bf1ac(_0x1509ef,_0x2dc9ea,_0x7841a8);const it=0x12c,nt=0x64,rt=()=>{let _0x12cc75=[],_0x3733af=!0x1;return _0x11246f=>{const _0x4d2e4f=_0x13cb;_0x12cc75[_0x4d2e4f(0x1e2)](_0x11246f),_0x3733af||(_0x3733af=!0x0,setTimeout(()=>{const _0x38855f=_0x4d2e4f;_0x12cc75[_0x38855f(0x1de)](_0x4f1494=>_0x4f1494()),_0x12cc75=[],_0x3733af=!0x1;}));};};let Se=class extends a[_0x5586cb(0x2bc)]{constructor(_0x461d7a,_0x4e4a20,_0x1e2d7c,_0x122892,_0x88435a,_0x47dc25,_0x5011a0,_0x34df61){const _0x564b59=_0x5586cb;super(),h(this,_0x564b59(0x18c),!0x1),h(this,'_init',!0x1),h(this,_0x564b59(0x103),new d[(_0x564b59(0x2dc))](new Map())),h(this,_0x564b59(0x221),this['_cursorInfo$'][_0x564b59(0x13b)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,_0x564b59(0x78),this[_0x564b59(0x9f)]['pipe'](d[_0x564b59(0x2d2)](it))),h(this,_0x564b59(0xe0),a[_0x564b59(0x1a5)]((_0x1339da,_0x3bad9d)=>{const _0x5f25e5=_0x564b59,_0x557008={'eventID':m[_0x5f25e5(0x137)][_0x5f25e5(0xc3)],'data':{'unitID':this[_0x5f25e5(0x1c0)],'memberID':this['_session'][_0x5f25e5(0x2ba)](),'selection':be[_0x5f25e5(0x194)](_0x1339da,_0x3bad9d[_0x5f25e5(0x101)])}};this[_0x5f25e5(0x249)][_0x5f25e5(0xc0)](_0x557008,this[_0x5f25e5(0x1c0)]);},nt)),(this[_0x564b59(0x1c0)]=_0x461d7a,this[_0x564b59(0x249)]=_0x4e4a20,this[_0x564b59(0x277)]=_0x1e2d7c,this[_0x564b59(0x2b2)]=_0x122892,this[_0x564b59(0x85)]=_0x88435a,this[_0x564b59(0x1bc)]=_0x47dc25,this[_0x564b59(0x28d)]=_0x5011a0,this[_0x564b59(0x219)]=_0x34df61);}get[_0x5586cb(0x110)](){return this['_cursorInfo$']['getValue']();}get[_0x5586cb(0x1c3)](){const _0x183e6d=_0x5586cb;return this[_0x183e6d(0x9f)][_0x183e6d(0x7a)]();}[_0x5586cb(0x24a)](){const _0x5babc5=_0x5586cb;super[_0x5babc5(0x24a)](),this['_cursorInfo$'][_0x5babc5(0x229)](new Map()),this['_cursorInfo$'][_0x5babc5(0x284)](),this['_roomMembers$']['next']([]),this[_0x5babc5(0x9f)]['complete']();}['init'](){const _0x49bac0=_0x5586cb;this['_init']||(this[_0x49bac0(0x17f)]=!0x0,this[_0x49bac0(0x249)][_0x49bac0(0x105)][_0x49bac0(0x162)](d[_0x49bac0(0xed)](this[_0x49bac0(0x1dd)]))['subscribe'](_0x482d07=>{const _0x233846=_0x49bac0;_0x482d07===u[_0x233846(0x1f3)][_0x233846(0x15a)]?this[_0x233846(0x1ba)]():this[_0x233846(0xb8)]();}),this[_0x49bac0(0x249)]['event$'][_0x49bac0(0x162)](d[_0x49bac0(0xed)](this[_0x49bac0(0x1dd)]))[_0x49bac0(0x2a2)](_0x466797=>{const _0x291e08=_0x49bac0,_0x4ee33f=_0x466797[_0x291e08(0x23f)];_0x4ee33f===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x291e08(0xb2)](_0x466797),_0x4ee33f===m[_0x291e08(0x137)][_0x291e08(0x1b9)]&&this[_0x291e08(0x2ca)](_0x466797);}),this[_0x49bac0(0x248)](),this[_0x49bac0(0x142)](this['_commandService'][_0x49bac0(0x1cb)](_0x28f76f=>{const _0x16c50d=_0x49bac0;if(this['_online']&&_0x28f76f['id']===g['SetSelectionsOperation']['id']&&_0x28f76f[_0x16c50d(0x2ac)][_0x16c50d(0x115)]===this[_0x16c50d(0x1c0)]){const _0x8f31df=_0x28f76f['params'];this['_updateLocalCursor'](_0x8f31df[_0x16c50d(0x2ee)],_0x8f31df[_0x16c50d(0x107)][0x0]);}})));}[_0x5586cb(0xb2)](_0x2e42df){const _0xc94bda=_0x5586cb;var _0x54cbff,_0x5e2285;const {memberID:_0x5b6b1e,selection:_0x56deed}=_0x2e42df[_0xc94bda(0xb9)],{sheetName:_0x4b60b6,range:_0x38b052}=be[_0xc94bda(0x8e)](_0x56deed),_0xe63fe5={'name':(_0x5e2285=(_0x54cbff=this[_0xc94bda(0x85)]['getMember'](this[_0xc94bda(0x1c0)],_0x5b6b1e))==null?void 0x0:_0x54cbff[_0xc94bda(0x26d)])!=null?_0x5e2285:'Unknown\x20user','range':this[_0xc94bda(0x1b7)](_0x4b60b6,_0x38b052),'sheetID':_0x4b60b6,'color':this[_0xc94bda(0x2b2)][_0xc94bda(0x1be)](_0x5b6b1e),'selection':_0x56deed},_0x5ecec8=this[_0xc94bda(0x110)];_0x5ecec8[_0xc94bda(0xf4)](_0x5b6b1e,_0xe63fe5),this['_cursorInfo$']['next'](_0x5ecec8);}[_0x5586cb(0x2ca)](_0x368931){const _0x53aff5=_0x5586cb,{memberID:_0x792328}=_0x368931['data'],_0x32fb46=this['cursorInfo'];_0x32fb46['delete'](_0x792328),this[_0x53aff5(0x103)][_0x53aff5(0x229)](_0x32fb46);}[_0x5586cb(0x1b7)](_0x34b911,_0x2f485a){const _0x4c5bf1=_0x5586cb;var _0x476f83,_0x56a7c2;const _0x4e1327=(_0x56a7c2=(_0x476f83=this[_0x4c5bf1(0x1bc)][_0x4c5bf1(0x151)](this['unitID']))==null?void 0x0:_0x476f83[_0x4c5bf1(0xfa)](_0x34b911))==null?void 0x0:_0x56a7c2['getMergeData']();return(_0x4e1327==null?void 0x0:_0x4e1327[_0x4c5bf1(0x1ea)](_0xe3048=>a['Rectangle'][_0x4c5bf1(0xa6)](_0xe3048,_0x2f485a)))||_0x2f485a;}[_0x5586cb(0x248)](){const _0x16aa1c=_0x5586cb,_0x326714=new a[(_0x16aa1c(0x1e5))](),_0x15acf=rt(),_0x45aca3=()=>{const _0x1e99ee=_0x16aa1c;_0x326714[_0x1e99ee(0x24a)]();const _0xd1d937=(_0x1cf588,_0x5239a8,_0x555192,_0x1ecb35)=>{const _0x1d7984=_0x1e99ee;let _0x55b04b=[];switch(_0x1cf588['id']){case g[_0x1d7984(0x22d)][_0x1d7984(0xfe)]:{_0x55b04b=g[_0x1d7984(0x2c1)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x19c)]:{_0x55b04b=g[_0x1d7984(0x1d3)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x1bb)]:{_0x55b04b=g[_0x1d7984(0x12f)](_0x1cf588,_0x1ecb35);break;}case g['EffectRefRangId'][_0x1d7984(0x1cf)]:{_0x55b04b=g[_0x1d7984(0x1f4)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x254)]:{_0x55b04b=g[_0x1d7984(0x147)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x210)]:{_0x55b04b=g[_0x1d7984(0x201)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x24d)]:{_0x55b04b=g['handleMoveRange'](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)][_0x1d7984(0x241)]:{_0x55b04b=g[_0x1d7984(0x22e)](_0x1cf588,_0x1ecb35);break;}case g[_0x1d7984(0x22d)]['RemoveRowCommandId']:{_0x55b04b=g[_0x1d7984(0xf2)](_0x1cf588,_0x1ecb35);break;}}const _0x1d0138=g['runRefRangeMutations'](_0x55b04b,_0x1ecb35),_0x2b62d9=this[_0x1d7984(0x110)]['get'](_0x5239a8);if(_0x2b62d9&&_0x1d0138){const _0x471a97={..._0x2b62d9,'range':_0x1d0138};this[_0x1d7984(0x110)][_0x1d7984(0xf4)](_0x5239a8,_0x471a97),_0x15acf(()=>{const _0x19d2c7=_0x1d7984,_0x258e1e=this[_0x19d2c7(0x219)]['registerRefRange'](_0x1d0138,_0x1adb17=>(_0x258e1e['dispose'](),_0xd1d937(_0x1adb17,_0x5239a8,_0x555192,_0x1d0138)));_0x326714['add'](_0x258e1e);});}return{'redos':[],'undos':[]};};this[_0x1e99ee(0x110)][_0x1e99ee(0x1de)]((_0x2a51f5,_0x11ba5)=>{const _0xee9222=_0x1e99ee,{range:_0x108d08,sheetID:_0x2b5745}=_0x2a51f5,_0x2811b9=this[_0xee9222(0x219)][_0xee9222(0x1d4)](_0x108d08,_0x1168b8=>(_0x2811b9['dispose'](),_0xd1d937(_0x1168b8,_0x11ba5,_0x2b5745,_0x108d08)));_0x326714[_0xee9222(0x143)](_0x2811b9);});};this['disposeWithMe'](a[_0x16aa1c(0x9a)](this['_cursorInfo$']['subscribe'](()=>{_0x45aca3();})));}[_0x5586cb(0x1ba)](){const _0x4e11a1=_0x5586cb;var _0x58fc6c,_0x2aef53;if(this[_0x4e11a1(0x18c)]=!0x0,((_0x58fc6c=this[_0x4e11a1(0x1bc)][_0x4e11a1(0x158)]())==null?void 0x0:_0x58fc6c[_0x4e11a1(0x109)]())!==this[_0x4e11a1(0x1c0)])return;const _0x5a150a=(_0x2aef53=this['_injector']['get'](g[_0x4e11a1(0x262)])[_0x4e11a1(0x7e)]())==null?void 0x0:_0x2aef53[0x0],_0x2db5a2=this[_0x4e11a1(0x1bc)]['getCurrentUnitForType'](a[_0x4e11a1(0xdd)][_0x4e11a1(0x83)])[_0x4e11a1(0xeb)]();_0x5a150a&&_0x2db5a2&&this['_updateLocalCursor'](_0x2db5a2[_0x4e11a1(0x196)](),_0x5a150a);}[_0x5586cb(0xb8)](){const _0x4bdd9e=_0x5586cb;this[_0x4bdd9e(0x18c)]=!0x1;}};Se=st([A(0x2,a[_0x5586cb(0x187)](a['Injector'])),A(0x3,a[_0x5586cb(0x187)](me)),A(0x4,a['Inject'](u[_0x5586cb(0xc6)])),A(0x5,a[_0x5586cb(0x270)]),A(0x6,a['ICommandService']),A(0x7,a[_0x5586cb(0x187)](g['RefRangeService']))],Se);var ot=Object[_0x5586cb(0x84)],at=(_0x1c6717,_0x31fa51,_0x212cdc,_0x2c3011)=>{const _0x138688=_0x5586cb;for(var _0x1ed06f=_0x2c3011>0x1?void 0x0:_0x2c3011?ot(_0x31fa51,_0x212cdc):_0x31fa51,_0x8ddad4=_0x1c6717[_0x138688(0x99)]-0x1,_0x5ee324;_0x8ddad4>=0x0;_0x8ddad4--)(_0x5ee324=_0x1c6717[_0x8ddad4])&&(_0x1ed06f=_0x5ee324(_0x1ed06f)||_0x1ed06f);return _0x1ed06f;},ie=(_0x2bdd7c,_0x4828f2)=>(_0x389e70,_0x24101a)=>_0x4828f2(_0x389e70,_0x24101a,_0x2bdd7c);function _0x13cb(_0x53b34f,_0x3386cc){const _0x524533=_0x5245();return _0x13cb=function(_0x13cb40,_0x2eafa2){_0x13cb40=_0x13cb40-0x77;let _0x2e1045=_0x524533[_0x13cb40];return _0x2e1045;},_0x13cb(_0x53b34f,_0x3386cc);}let x=class extends a[_0x5586cb(0x2bc)]{constructor(_0xb1e220,_0x55ffab,_0xb6da62){const _0x5119b6=_0x5586cb;super(),h(this,_0x5119b6(0x168),new Map()),h(this,_0x5119b6(0x1ef),new d['Subject']()),(this[_0x5119b6(0x1bc)]=_0xb1e220,this[_0x5119b6(0x277)]=_0x55ffab,this[_0x5119b6(0x261)]=_0xb6da62,this['_init']());}[_0x5586cb(0x24a)](){const _0x2f99d9=_0x5586cb;super[_0x2f99d9(0x24a)](),this['_entityInit$']['complete'](),this[_0x2f99d9(0x168)]['forEach'](_0x3d28a7=>_0x3d28a7[_0x2f99d9(0x24a)]());}[_0x5586cb(0x7f)](_0x271234){const _0x5cdc69=_0x5586cb;return this['_entities']['has'](_0x271234)?this[_0x5cdc69(0x168)]['get'](_0x271234)[_0x5cdc69(0x221)]:this[_0x5cdc69(0x1ef)][_0x5cdc69(0x162)](d[_0x5cdc69(0x114)](_0x1f4e90=>_0x1f4e90[_0x5cdc69(0x1c0)]===_0x271234),d['switchMap'](_0x5ec149=>_0x5ec149[_0x5cdc69(0x221)]));}['_init'](){const _0x645cbe=_0x5586cb;this[_0x645cbe(0x1bc)][_0x645cbe(0x2d0)](a[_0x645cbe(0xdd)][_0x645cbe(0x83)])[_0x645cbe(0x162)](d[_0x645cbe(0xed)](this[_0x645cbe(0x1dd)]))[_0x645cbe(0x2a2)](async _0x492246=>{const _0x4ddd47=_0x645cbe,_0x5490c4=_0x492246['getUnitId'](),_0x20fbdb=await this['_startSheetCollabCursor'](_0x5490c4);this[_0x4ddd47(0x1ef)][_0x4ddd47(0x229)](_0x20fbdb),this[_0x4ddd47(0x168)][_0x4ddd47(0xf4)](_0x5490c4,_0x20fbdb);}),this['_univerInstanceService'][_0x645cbe(0x2d0)](a[_0x645cbe(0xdd)][_0x645cbe(0x225)])[_0x645cbe(0x162)](d[_0x645cbe(0xed)](this[_0x645cbe(0x1dd)]))[_0x645cbe(0x162)](d[_0x645cbe(0x114)](_0x44eac3=>!_0x44eac3['getUnitId']()[_0x645cbe(0x12b)]('__')))['subscribe'](async _0x232aac=>{const _0x20f6b1=_0x645cbe,_0x3d37b7=_0x232aac['getUnitId'](),_0xca0f83=await this['_startDocCollabCursor'](_0x3d37b7);this[_0x20f6b1(0x1ef)]['next'](_0xca0f83),this[_0x20f6b1(0x168)]['set'](_0x3d37b7,_0xca0f83);}),d[_0x645cbe(0x22b)](this[_0x645cbe(0x1bc)][_0x645cbe(0x1ee)](a[_0x645cbe(0xdd)]['UNIVER_DOC']),this[_0x645cbe(0x1bc)][_0x645cbe(0x1ee)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](d[_0x645cbe(0xed)](this[_0x645cbe(0x1dd)]))[_0x645cbe(0x2a2)](_0x273859=>{const _0x3b769f=_0x645cbe,_0x224daf=_0x273859[_0x3b769f(0x109)](),_0x3574c2=this[_0x3b769f(0x168)][_0x3b769f(0x2ec)](_0x224daf);_0x3574c2&&(_0x3574c2[_0x3b769f(0x24a)](),this[_0x3b769f(0x168)][_0x3b769f(0x181)](_0x224daf));});}async[_0x5586cb(0x1a7)](_0x31861d){const _0x4edf6b=_0x5586cb,_0x4238fe=await this[_0x4edf6b(0x261)][_0x4edf6b(0x17b)](_0x31861d),_0x2d21d3=this['_injector'][_0x4edf6b(0x2a5)](Se,_0x31861d,_0x4238fe);return _0x2d21d3[_0x4edf6b(0x2c7)](),_0x2d21d3;}async[_0x5586cb(0x29b)](_0x3aa892){const _0x2297d6=_0x5586cb,_0x1b6686=await this[_0x2297d6(0x261)]['requireSession'](_0x3aa892),_0x2ccca1=this['_injector'][_0x2297d6(0x2a5)](Ie,_0x3aa892,_0x1b6686);return _0x2ccca1[_0x2297d6(0x2c7)](),_0x2ccca1;}};x=at([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x5586cb(0x187)](a[_0x5586cb(0x144)])),ie(0x2,a['Inject'](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,ct=0x5;function lt(_0x5a98d2,_0x1a9c1b){const _0x19702c=_0x5586cb;let {radius:_0x419ea3,width:_0x601f83,height:_0x2acbea}=_0x1a9c1b;_0x419ea3=_0x419ea3!=null?_0x419ea3:0x0,_0x601f83=_0x601f83!=null?_0x601f83:0x1e,_0x2acbea=_0x2acbea!=null?_0x2acbea:0x1e;let _0x1e14ce=0x0,_0x440f38=0x0,_0x1b0ac0=0x0;_0x1e14ce=_0x440f38=_0x1b0ac0=Math['min'](_0x419ea3,_0x601f83/0x2,_0x2acbea/0x2),_0x5a98d2[_0x19702c(0x125)](),_0x5a98d2[_0x19702c(0x16b)](_0x1e14ce,0x0),_0x5a98d2[_0x19702c(0x169)](_0x601f83-_0x440f38,0x0),_0x5a98d2['arc'](_0x601f83-_0x440f38,_0x440f38,_0x440f38,Math['PI']*0x3/0x2,0x0,!0x1),_0x5a98d2[_0x19702c(0x169)](_0x601f83,_0x2acbea-_0x1b0ac0),_0x5a98d2[_0x19702c(0x1a8)](_0x601f83-_0x1b0ac0,_0x2acbea-_0x1b0ac0,_0x1b0ac0,0x0,Math['PI']/0x2,!0x1),_0x5a98d2[_0x19702c(0x169)](0x0,_0x2acbea),_0x5a98d2[_0x19702c(0x169)](0x0,_0x1e14ce),_0x5a98d2[_0x19702c(0x1a8)](_0x1e14ce,_0x1e14ce,_0x1e14ce,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5a98d2[_0x19702c(0x10d)](),_0x1a9c1b['fill']&&(_0x5a98d2['save'](),_0x5a98d2['fillStyle']=_0x1a9c1b['fill'],_0x1a9c1b[_0x19702c(0x82)]===_0x19702c(0x1aa)?_0x5a98d2['fill'](_0x19702c(0x1aa)):_0x5a98d2[_0x19702c(0x14a)](),_0x5a98d2['restore']());}class ee extends p[_0x5586cb(0x124)]{constructor(_0x540fee,_0x425ac2){const _0x285055=_0x5586cb;super(_0x540fee,_0x425ac2),h(this,_0x285055(0x182)),h(this,'text'),(this[_0x285055(0x182)]=_0x425ac2==null?void 0x0:_0x425ac2[_0x285055(0x182)],this[_0x285055(0x1d8)]=_0x425ac2==null?void 0x0:_0x425ac2[_0x285055(0x1d8)]);}static[_0x5586cb(0x27f)](_0x326cc0,_0x53f310){const _0x2062da=_0x5586cb,{text:_0x3d3319,color:_0x439c11}=_0x53f310;_0x326cc0[_0x2062da(0x299)](),_0x326cc0[_0x2062da(0x11e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x30fa33=_0x326cc0[_0x2062da(0x245)](_0x3d3319)['width'],_0x54cf18=Math[_0x2062da(0x297)](_0x30fa33+0x2*ne,Re);lt(_0x326cc0,{'height':K,'radius':0x4,'width':_0x54cf18,'fill':_0x439c11}),_0x326cc0[_0x2062da(0x29a)]='#FFF';const _0x268234=ne,_0x184313=K-ct,_0x16c051=Re-0x2*ne;if(_0x30fa33>_0x16c051){let _0x45c85b='',_0x38a2b7=0x0;for(const _0x2851c6 of _0x3d3319){const _0x35d508=_0x326cc0[_0x2062da(0x245)](_0x2851c6)[_0x2062da(0x1e4)];if(_0x38a2b7+_0x35d508<=_0x16c051-_0x326cc0[_0x2062da(0x245)](_0x2062da(0x2a7))['width'])_0x45c85b+=_0x2851c6,_0x38a2b7+=_0x35d508;else{_0x45c85b+=_0x2062da(0x2a7);break;}}_0x326cc0['fillText'](_0x45c85b,_0x268234,_0x184313);}else _0x326cc0[_0x2062da(0x174)](_0x3d3319,_0x268234,_0x184313);_0x326cc0['restore']();}[_0x5586cb(0x157)](_0x4d387f){const _0x26a380=_0x5586cb;ee[_0x26a380(0x27f)](_0x4d387f,this);}}const re=_0x5586cb(0x2be),_t='collab-text-range-',ht='collab-rect-range-',k=0x6,ut=1.5,oe=0x4,dt=1.5,It=_0x5586cb(0x136);class De{constructor(_0x275949,_0x369772,_0x296e09,_0x5f499a){const _0x33ba4f=_0x5586cb;h(this,_0x33ba4f(0x16d),[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,'_eventUnsubscribe',null),(this['_cursor']=_0x275949,this[_0x33ba4f(0x199)]=_0x369772,this['_docSkeleton']=_0x296e09,this[_0x33ba4f(0x2e7)]=_0x5f499a,this[_0x33ba4f(0x16c)]());}set[_0x5586cb(0x28f)](_0x20281b){const _0x2e61ba=_0x5586cb;_0x20281b?(this['_anchorDot']&&this[_0x2e61ba(0x16a)][_0x2e61ba(0x2e2)](),this[_0x2e61ba(0x289)]&&this[_0x2e61ba(0x289)][_0x2e61ba(0x100)]()):(this['_anchorDot']&&this['_anchorDot'][_0x2e61ba(0x100)](),this[_0x2e61ba(0x289)]&&this[_0x2e61ba(0x289)][_0x2e61ba(0x2e2)]());}[_0x5586cb(0x24a)](){const _0x444119=_0x5586cb;for(const _0x4b2eb0 of this['_shapes'])_0x4b2eb0[_0x444119(0x24a)]();this['_textBubble']&&this[_0x444119(0x289)][_0x444119(0x24a)](),this[_0x444119(0x16a)]&&this[_0x444119(0x16a)][_0x444119(0x24a)](),this['_anchor']&&this[_0x444119(0x295)][_0x444119(0x24a)](),this['_eventUnsubscribe']&&this[_0x444119(0x1a1)]();}[_0x5586cb(0x16c)](){const _0x101460=_0x5586cb;var _0x4fe717;const {_docSkeleton:_0x223499,_document:_0x5e1917}=this,{color:_0x576a7c,name:_0x212d0f,ranges:_0x400bf7}=this['_cursor'],_0x4198df=_0x5e1917[_0x101460(0xb6)](),{docsLeft:_0x583fcb,docsTop:_0x4ecc19}=_0x4198df,_0x463156=new E[(_0x101460(0x79))](_0x4198df,_0x223499);for(const {startOffset:_0x5083eb,endOffset:_0x31fb32,rangeType:_0x38485f,segmentId:_0x1e43b5,segmentPage:_0x18813e,collapsed:_0x17323b,isActive:_0x501ca0}of _0x400bf7){const _0x3ac2b1=_0x223499['findNodePositionByCharIndex'](_0x5083eb,!0x0,_0x1e43b5,_0x18813e);let _0x4afe5f=_0x223499['findNodePositionByCharIndex'](_0x31fb32,!0x0,_0x1e43b5,_0x18813e);if(_0x4afe5f==null&&(_0x4afe5f=_0x223499['findNodePositionByCharIndex'](_0x31fb32-0x1,!0x1,_0x1e43b5,_0x18813e)),_0x501ca0){const {contentBoxPointGroup:_0x4219ff}=_0x463156[_0x101460(0x2a3)](_0x4afe5f,_0x4afe5f);if(_0x4219ff[_0x101460(0x99)]===0x0)continue;this['_drawAnchor'](_0x576a7c,_0x4219ff,_0x583fcb,_0x4ecc19,_0x212d0f),this['_eventUnsubscribe']=this[_0x101460(0x2eb)]();}if(_0x3ac2b1&&_0x4afe5f){if(_0x38485f===a[_0x101460(0x121)]['RECT']){const _0x2884e=new E[(_0x101460(0xe3))](_0x4198df,_0x223499),{pointGroup:_0x52e381}=(_0x4fe717=_0x2884e[_0x101460(0x2a3)](_0x3ac2b1,_0x4afe5f))!=null?_0x4fe717:{};if(_0x52e381==null||_0x52e381['length']===0x0)continue;this[_0x101460(0x222)](_0x576a7c,_0x52e381,_0x583fcb,_0x4ecc19);}else{if(!_0x17323b){const {borderBoxPointGroup:_0x10e4f1}=_0x463156[_0x101460(0x2a3)](_0x3ac2b1,_0x4afe5f);if(_0x10e4f1[_0x101460(0x99)]===0x0)continue;this[_0x101460(0x14e)](_0x576a7c,_0x10e4f1,_0x583fcb,_0x4ecc19);}}}}}['_drawAnchor'](_0x161289,_0x5e8117,_0x919bdb,_0x45cdd1,_0x507e14){const _0xdbde5b=_0x5586cb,_0x19d690=this[_0xdbde5b(0x29d)](_0x5e8117),{left:_0x431da4,top:_0x43b98b,height:_0x13004a}=_0x19d690,_0xa4cd5e=this[_0xdbde5b(0x244)](),_0x2dab63=dt/_0xa4cd5e,_0x532e12=new p[(_0xdbde5b(0xab))](re+a[_0xdbde5b(0x171)](k),{'left':_0x431da4+_0x919bdb-_0x2dab63,'top':_0x43b98b+_0x45cdd1,'height':_0x13004a,'width':ut,'fill':_0x161289||p[_0xdbde5b(0x1ec)](a[_0xdbde5b(0x8a)][_0xdbde5b(0x2cc)],0x0),'strokeWidth':_0x2dab63,'stroke':It,'evented':!0x0});this[_0xdbde5b(0x295)]=_0x532e12,this[_0xdbde5b(0x199)]['addObject'](_0x532e12,E[_0xdbde5b(0x1af)]);const _0x26dc57=new p['Rect'](re+a['generateRandomId'](k),{'left':_0x431da4+_0x919bdb-_0x2dab63,'top':_0x43b98b+_0x45cdd1-oe/0x2,'height':oe,'width':oe,'fill':_0x161289||p[_0xdbde5b(0x1ec)](a[_0xdbde5b(0x8a)][_0xdbde5b(0x2cc)],0x0),'strokeWidth':0x0,'stroke':_0x161289||p['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0xdbde5b(0x16a)]=_0x26dc57,this['_scene']['addObject'](_0x26dc57,E['TEXT_RANGE_LAYER_INDEX']);const _0x132d4c=new ee(re+a[_0xdbde5b(0x171)](k),{'left':_0x431da4+_0x919bdb-_0x2dab63,'top':_0x43b98b+_0x45cdd1-K,'text':_0x507e14,'color':_0x161289});this[_0xdbde5b(0x289)]=_0x132d4c,this['_scene']['addObject'](_0x132d4c,E[_0xdbde5b(0x1af)]),this[_0xdbde5b(0x28f)]=!0x1;}[_0x5586cb(0x2eb)](){const _0x588b88=_0x5586cb,_0xe0e2a9=this[_0x588b88(0x295)][_0x588b88(0x298)][_0x588b88(0x1d0)](()=>{const _0x2e617d=_0x588b88;this[_0x2e617d(0x28f)]=!0x0;}),_0x287d9e=this[_0x588b88(0x295)][_0x588b88(0x15b)][_0x588b88(0x1d0)](()=>{const _0x1a508e=_0x588b88;this['_hideTimer']&&clearTimeout(this[_0x1a508e(0x193)]),this[_0x1a508e(0x193)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xc84930=_0x588b88;_0xe0e2a9[_0xc84930(0x204)](),_0x287d9e[_0xc84930(0x204)]();};}[_0x5586cb(0x14e)](_0x16eb8e,_0xaaa334,_0x4d0462,_0x1f93a3){const _0x2a36da=_0x5586cb,_0x182f59=new a['ColorKit'](_0x16eb8e)['setAlpha'](0.2)[_0x2a36da(0x118)](),_0x541f08=new p[(_0x2a36da(0x21d))](_t+a[_0x2a36da(0x171)](k),{'pointsGroup':_0xaaa334,'fill':_0x182f59||p['getColor'](a[_0x2a36da(0x8a)][_0x2a36da(0x2cc)],0.2),'left':_0x4d0462,'top':_0x1f93a3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a36da(0x16d)][_0x2a36da(0x1e2)](_0x541f08),this[_0x2a36da(0x199)]['addObject'](_0x541f08,E[_0x2a36da(0x1af)]);}[_0x5586cb(0x222)](_0x2d7611,_0x21100c,_0x10f5e6,_0x5d675e){const _0x473b0c=_0x5586cb,_0x2a031e=new a[(_0x473b0c(0x198))](_0x2d7611)[_0x473b0c(0x15c)](0.2)['toRgbString'](),_0x588bea=new p['RegularPolygon'](ht+a['generateRandomId'](k),{'pointsGroup':_0x21100c,'fill':_0x2a031e||p['getColor'](a['COLORS']['black'],0.2),'left':_0x10f5e6,'top':_0x5d675e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x473b0c(0x16d)][_0x473b0c(0x1e2)](_0x588bea),this[_0x473b0c(0x199)][_0x473b0c(0x280)](_0x588bea,E[_0x473b0c(0x1af)]);}['_getAnchorBounding'](_0x300e48){const _0x4f5f49=_0x300e48[0x0],_0x2f73e0=_0x4f5f49[0x0],_0x2f0112=_0x4f5f49[0x2],{x:_0x2cbfa2,y:_0x292a60}=_0x2f73e0,{x:_0xfa55f5,y:_0x4f1bb6}=_0x2f0112;return{'left':_0x2cbfa2,'top':_0x292a60,'width':_0xfa55f5-_0x2cbfa2,'height':_0x4f1bb6-_0x292a60};}[_0x5586cb(0x244)](){const _0x42d1fc=_0x5586cb,{scaleX:_0x1d360b,scaleY:_0x467886}=this[_0x42d1fc(0x199)][_0x42d1fc(0xcc)]();return Math[_0x42d1fc(0x106)](_0x1d360b,_0x467886);}}var St=Object[_0x5586cb(0x84)],ft=(_0x3a1fb0,_0x504e73,_0x3308b5,_0x39cd19)=>{const _0x2fd699=_0x5586cb;for(var _0x19b0df=_0x39cd19>0x1?void 0x0:_0x39cd19?St(_0x504e73,_0x3308b5):_0x504e73,_0x1f701e=_0x3a1fb0[_0x2fd699(0x99)]-0x1,_0x5551d8;_0x1f701e>=0x0;_0x1f701e--)(_0x5551d8=_0x3a1fb0[_0x1f701e])&&(_0x19b0df=_0x5551d8(_0x19b0df)||_0x19b0df);return _0x19b0df;},W=(_0x58ba37,_0x5d7a66)=>(_0x31d985,_0x5e82fe)=>_0x5d7a66(_0x31d985,_0x5e82fe,_0x58ba37);let fe=class extends a[_0x5586cb(0x2bc)]{constructor(_0x29f82d,_0x4781e7,_0x4972ae,_0x8bcd85,_0x569069){const _0x1197de=_0x5586cb;super(),h(this,'_cursorShapes',[]),h(this,_0x1197de(0x1db),[]),(this[_0x1197de(0x10f)]=_0x29f82d,this[_0x1197de(0x1da)]=_0x4781e7,this['_collabCursorController']=_0x4972ae,this[_0x1197de(0x28d)]=_0x8bcd85,this[_0x1197de(0x1e9)]=_0x569069,this[_0x1197de(0x17f)]());}[_0x5586cb(0x17f)](){const _0x12414e=_0x5586cb,_0x3c7bca=this[_0x12414e(0x10f)][_0x12414e(0x115)],_0x26a0e8=this[_0x12414e(0x1da)];this[_0x12414e(0x142)](d['combineLatest']([this['_collabCursorController'][_0x12414e(0x7f)](_0x3c7bca),this[_0x12414e(0x1e9)][_0x12414e(0x227)]])[_0x12414e(0x162)]($[_0x12414e(0x1c4)](([_0x566da9,_0xe6ce5c])=>({'skeleton':_0x26a0e8['getSkeleton'](),'cursors':[..._0x566da9['values']()][_0x12414e(0x1d1)](_0x50f70b=>({..._0x50f70b,'color':this[_0x12414e(0x1e9)][_0x12414e(0x1d6)](_0x50f70b[_0x12414e(0x182)])}))})))[_0x12414e(0x2a2)](_0x3d3fe0=>{const _0x2159bc=_0x12414e;if(this[_0x2159bc(0x19d)](),_0x3d3fe0){const {skeleton:_0x4591ed,cursors:_0x1812ef}=_0x3d3fe0;this[_0x2159bc(0x17c)](_0x4591ed,_0x1812ef);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x5586cb(0x17c)](_0x2ef871,_0x443c83){const _0x48a6d8=_0x5586cb,{scene:_0x3293df,mainComponent:_0x44f718}=this[_0x48a6d8(0x10f)],_0x381e01=_0x443c83[_0x48a6d8(0x1c4)](_0x3b6208=>new De(_0x3b6208,_0x3293df,_0x2ef871,_0x44f718));this[_0x48a6d8(0x239)]=_0x381e01,this[_0x48a6d8(0x1db)]=_0x443c83;}[_0x5586cb(0x1f8)](){const _0x4011c4=_0x5586cb;this[_0x4011c4(0x19d)]();const {scene:_0x24591f,mainComponent:_0x3ec12e}=this['_context'],_0x353f1a=this['_docSkeletonManagerService']['getSkeleton'](),_0x39850d=this[_0x4011c4(0x1db)][_0x4011c4(0x1c4)](_0x14078d=>new De(_0x14078d,_0x24591f,_0x353f1a,_0x3ec12e));this[_0x4011c4(0x239)]=_0x39850d;}[_0x5586cb(0x19d)](){const _0xa09a21=_0x5586cb;this[_0xa09a21(0x239)][_0xa09a21(0x1de)](_0x5807e5=>_0x5807e5[_0xa09a21(0x24a)]()),this[_0xa09a21(0x239)]=[];}[_0x5586cb(0x25f)](){const _0x5c0c36=_0x5586cb,_0xdbf68=[E['SetDocZoomRatioOperation']['id']];this[_0x5c0c36(0x142)](this[_0x5c0c36(0x28d)][_0x5c0c36(0x1cb)](_0x36ad8f=>{const _0x14c8ab=_0x5c0c36;_0xdbf68[_0x14c8ab(0x97)](_0x36ad8f['id'])&&_0x36ad8f[_0x14c8ab(0x2ac)][_0x14c8ab(0x115)]===this[_0x14c8ab(0x10f)][_0x14c8ab(0x115)]&&this[_0x14c8ab(0x1f8)]();}));}[_0x5586cb(0xd6)](){const _0x125bf4=_0x5586cb;this[_0x125bf4(0x142)](a[_0x125bf4(0x250)](this['_context']['engine'][_0x125bf4(0x29e)])[_0x125bf4(0x162)]($[_0x125bf4(0x114)](_0x3f88f8=>_0x3f88f8[_0x125bf4(0xa9)]===p[_0x125bf4(0x1cd)][_0x125bf4(0x287)]),$[_0x125bf4(0x2a4)](0x10))['subscribe'](()=>{const _0x57997c=_0x125bf4;this[_0x57997c(0x1f8)]();}));}};fe=ft([W(0x1,a[_0x5586cb(0x187)](Y[_0x5586cb(0xcd)])),W(0x2,a[_0x5586cb(0x187)](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x5586cb(0x187)](a[_0x5586cb(0x156)]))],fe);const vt=0x1,gt=1.5;class we extends p[_0x5586cb(0x124)]{constructor(_0x5626f8,_0x477dcb){const _0x9cdc64=_0x5586cb;super(_0x5626f8,_0x477dcb),h(this,_0x9cdc64(0x23d)),h(this,_0x9cdc64(0x11c),!0x1),h(this,_0x9cdc64(0x12e)),h(this,_0x9cdc64(0x27d),''),h(this,_0x9cdc64(0x1e6),_0x9cdc64(0x21f)),h(this,_0x9cdc64(0xd0)),(_0x477dcb&&this[_0x9cdc64(0x281)](_0x477dcb),this[_0x9cdc64(0x298)][_0x9cdc64(0x1d0)](()=>this[_0x9cdc64(0x281)]({'hovered':!0x0})),this[_0x9cdc64(0x15b)][_0x9cdc64(0x1d0)](()=>this[_0x9cdc64(0x281)]({'hovered':!0x1})));}[_0x5586cb(0x281)](_0x482b44){const _0x4d048=_0x5586cb;var _0x23aad9,_0x41d12a,_0x605aa7,_0x34041a,_0x32db92,_0xfc44a0;this['_color']=(_0x23aad9=_0x482b44[_0x4d048(0x182)])!=null?_0x23aad9:this[_0x4d048(0x23d)],this[_0x4d048(0x11c)]=(_0x41d12a=_0x482b44[_0x4d048(0x1f0)])!=null?_0x41d12a:this[_0x4d048(0x11c)],this['_range']=(_0x605aa7=_0x482b44[_0x4d048(0x101)])!=null?_0x605aa7:this[_0x4d048(0x12e)],this[_0x4d048(0x27d)]=(_0x34041a=_0x482b44['name'])!=null?_0x34041a:this[_0x4d048(0x27d)],this['_labelPosition']=(_0x32db92=_0x482b44[_0x4d048(0x26c)])!=null?_0x32db92:this[_0x4d048(0x1e6)],this[_0x4d048(0xd0)]=(_0xfc44a0=_0x482b44[_0x4d048(0x176)])!=null?_0xfc44a0:this['_backgroundColor'],this[_0x4d048(0x2e4)]({'width':_0x482b44['width'],'height':_0x482b44[_0x4d048(0x20d)]});}[_0x5586cb(0x10c)](_0x35df60){const _0x403370=_0x5586cb,{row:_0x367af9,column:_0x17fabc}=_0x35df60;if(_0x367af9>=this[_0x403370(0x12e)][_0x403370(0x127)]&&_0x367af9<=this[_0x403370(0x12e)]['endRow']&&_0x17fabc>=this[_0x403370(0x12e)][_0x403370(0x1b8)]&&_0x17fabc<=this[_0x403370(0x12e)][_0x403370(0x230)]){this[_0x403370(0x281)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5586cb(0xae)](_0x5a94db){return!0x1;}['_draw'](_0x2f0621){const _0x20400a=_0x5586cb;p[_0x20400a(0xab)][_0x20400a(0x27f)](_0x2f0621,{'width':this[_0x20400a(0x1e4)],'height':this['height'],'strokeWidth':gt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x20400a(0xd0)]}),this[_0x20400a(0x11c)]&&(_0x2f0621[_0x20400a(0x299)](),_0x2f0621[_0x20400a(0x11d)](0x1,0x0,0x0,0x1,this[_0x20400a(0x1e4)],this[_0x20400a(0x1e6)]===_0x20400a(0xc9)?0x0:-0x14),ee['drawWith'](_0x2f0621,{'text':this[_0x20400a(0x27d)],'color':this['_color']}),_0x2f0621[_0x20400a(0x13a)]());}}var mt=Object[_0x5586cb(0x84)],Ct=(_0x34e0d9,_0x3e32a2,_0x152da0,_0x5304ad)=>{const _0x4ed1c3=_0x5586cb;for(var _0x5b736f=_0x5304ad>0x1?void 0x0:_0x5304ad?mt(_0x3e32a2,_0x152da0):_0x3e32a2,_0x35763d=_0x34e0d9[_0x4ed1c3(0x99)]-0x1,_0x5f10a1;_0x35763d>=0x0;_0x35763d--)(_0x5f10a1=_0x34e0d9[_0x35763d])&&(_0x5b736f=_0x5f10a1(_0x5b736f)||_0x5b736f);return _0x5b736f;},ae=(_0x281af7,_0x55e865)=>(_0x384b32,_0x1a9707)=>_0x55e865(_0x384b32,_0x1a9707,_0x281af7);const pt=0x1389;let ve=class extends a[_0x5586cb(0x2bc)]{constructor(_0xd52f9b,_0x3a9d77,_0x5ebceb,_0x361e0f){const _0x3ad134=_0x5586cb;super(),h(this,'_cursors',new Set()),h(this,'_lastPointer',null),(this[_0x3ad134(0x10f)]=_0xd52f9b,this[_0x3ad134(0x218)]=_0x3a9d77,this[_0x3ad134(0x132)]=_0x5ebceb,this[_0x3ad134(0x1e9)]=_0x361e0f,this['_init']());}[_0x5586cb(0x17f)](){const _0x29fd72=_0x5586cb;this[_0x29fd72(0x218)][_0x29fd72(0x1e3)]['pipe']($['takeUntil'](this['dispose$']),$['switchMap'](_0x411c60=>{const _0x3fd28b=_0x29fd72;if(_0x411c60){const _0x18aa82=_0x411c60[_0x3fd28b(0x1e8)];return d[_0x3fd28b(0xa5)](this[_0x3fd28b(0x132)][_0x3fd28b(0x7f)](this[_0x3fd28b(0x10f)][_0x3fd28b(0x115)]),this[_0x3fd28b(0x1e9)][_0x3fd28b(0x227)])['pipe']($['map'](([_0x163507,_0x2352bb])=>{const _0x4c2eed=_0x3fd28b,_0x26dc97=new Map();return _0x163507[_0x4c2eed(0x1de)]((_0xdedca6,_0xdd4c02)=>{const _0x960008=_0x4c2eed;if(_0xdedca6[_0x960008(0xd2)]===_0x18aa82){const _0x2dba41={..._0xdedca6};_0x2dba41[_0x960008(0x182)]=this['_themeService'][_0x960008(0x1d6)](_0xdedca6['color']),_0x26dc97[_0x960008(0xf4)](_0xdd4c02,_0x2dba41);}}),{'skeleton':_0x411c60,'cursors':_0x26dc97};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x29fd72(0x2a2)](({skeleton:_0x15789d,cursors:_0x3ae5f0})=>{const _0x523444=_0x29fd72;this[_0x523444(0x19d)](),_0x15789d&&this[_0x523444(0x17c)](_0x15789d,_0x3ae5f0);}),this[_0x29fd72(0x218)][_0x29fd72(0x1e3)][_0x29fd72(0x2a2)](_0xba2356=>{const _0x5b4292=_0x29fd72;if(_0xba2356==null)return;const {skeleton:_0x236967}=_0xba2356,{scene:_0x30ab33}=this[_0x5b4292(0x10f)];_0x30ab33[_0x5b4292(0x23b)][_0x5b4292(0x1d0)](a[_0x5b4292(0x1a5)](_0x2523c0=>{const _0x26129b=_0x5b4292;var _0x23b3f2,_0x27d444;const {offsetX:_0x59af3f,offsetY:_0x3f7aff}=_0x2523c0,{x:_0x41406e,y:_0x42372a}=_0x30ab33[_0x26129b(0x2ab)](p['Vector2'][_0x26129b(0x112)]([_0x59af3f,_0x3f7aff])),{scaleX:_0x271f8c,scaleY:_0x2d0968}=_0x30ab33[_0x26129b(0xcc)](),_0x555bdd=_0x30ab33[_0x26129b(0xaa)](p[_0x26129b(0x216)][_0x26129b(0x296)]),_0xa91428=_0x30ab33[_0x26129b(0x226)](p[_0x26129b(0xb5)][_0x26129b(0x112)]([_0x41406e,_0x42372a]),_0x555bdd),_0x50f6d0=_0x236967[_0x26129b(0x288)](_0x59af3f,_0x3f7aff,_0x271f8c,_0x2d0968,_0xa91428);((_0x23b3f2=this[_0x26129b(0x24f)])==null?void 0x0:_0x23b3f2[_0x26129b(0x28a)])===_0x50f6d0[_0x26129b(0x28a)]&&((_0x27d444=this['_lastPointer'])==null?void 0x0:_0x27d444['row'])===_0x50f6d0['row']||this[_0x26129b(0x1db)]['forEach'](_0x4165bf=>{const _0x4c48c0=_0x26129b;_0x4165bf[_0x4c48c0(0x10c)](_0x50f6d0);});},0x64));});}['_updateCollabCursors'](_0x2610f2,_0x258156){const _0x4c6a63=_0x5586cb;var _0x5485c9;const _0x1e9ae7=(_0x5485c9=this[_0x4c6a63(0x218)][_0x4c6a63(0x2e8)]())==null?void 0x0:_0x5485c9[_0x4c6a63(0x1c9)];if(!_0x1e9ae7)return;const _0x453998=this[_0x4c6a63(0xd1)]();if(!_0x453998)return;this['_cursors']['forEach'](_0x4d7261=>{const _0x2ea702=_0x4c6a63;_0x4d7261[_0x2ea702(0xce)]();});const {scene:_0x5103ca}=_0x453998,_0x45b041=Et(Array[_0x4c6a63(0x1fc)](_0x258156[_0x4c6a63(0x14c)]()))[_0x4c6a63(0x1c4)](_0x34a5d6=>{const _0x5a2de9=_0x4c6a63,{color:_0x59a0d2,range:_0x1d094e,name:_0x11d03b,selection:_0xbfe358,sheetID:_0x2a23de}=_0x34a5d6,{startColumn:_0x68e76f,startRow:_0x164b96,endColumn:_0x4d287b,endRow:_0x101a11}=_0x1d094e,_0x712b1e=X[_0x5a2de9(0x2f0)](_0x164b96,_0x68e76f,_0x5103ca,_0x1e9ae7),_0x4bcdd3=X['getCoordByCell'](_0x101a11,_0x4d287b,_0x5103ca,_0x1e9ae7),{columnHeaderHeightAndMarginTop:_0xa7cce9}=_0x1e9ae7,{startX:_0x174754,startY:_0x218b6c}=_0x712b1e,{endX:_0x1dc2d2,endY:_0x559d1a}=_0x4bcdd3,_0x3be9ed=_0x1dc2d2-_0x174754,_0x339497=_0x559d1a-_0x218b6c,_0x3eb0b8={'labelPosition':_0x218b6c-_0xa7cce9>=K?_0x5a2de9(0x21f):_0x5a2de9(0xc9),'sheetID':_0x2a23de,'range':_0x1d094e,'color':_0x59a0d2,'name':_0x11d03b,'selection':_0xbfe358,'left':_0x174754,'top':_0x218b6c,'width':_0x3be9ed,'height':_0x339497,'evented':!0x1,'zIndex':pt};return new we(_0x11d03b,_0x3eb0b8);});_0x5103ca[_0x4c6a63(0x23c)](_0x45b041,vt),this[_0x4c6a63(0x1db)]=new Set(_0x45b041);}[_0x5586cb(0x19d)](){const _0xb5cd07=_0x5586cb;var _0x1b227b;(_0x1b227b=this[_0xb5cd07(0x1db)])==null||_0x1b227b['forEach'](_0x39d0bc=>_0x39d0bc[_0xb5cd07(0x24a)]());}['_getSheetObject'](){const _0xcc004a=_0x5586cb;return X['getSheetObject'](this[_0xcc004a(0x10f)][_0xcc004a(0x1b0)],this[_0xcc004a(0x10f)]);}};ve=Ct([ae(0x1,a[_0x5586cb(0x187)](X[_0x5586cb(0x2c5)])),ae(0x2,a[_0x5586cb(0x187)](x)),ae(0x3,a[_0x5586cb(0x187)](a['ThemeService']))],ve);function Et(_0xd4c675){const _0x242b0d=_0x5586cb,_0x4a9677=new Map();return _0xd4c675[_0x242b0d(0x1de)](_0x29ac62=>{const _0x270dd5=_0x242b0d;if(_0x4a9677[_0x270dd5(0xdc)](_0x29ac62[_0x270dd5(0x1c1)])){const _0x4d6604=_0x4a9677[_0x270dd5(0x2ec)](_0x29ac62['selection']);_0x4d6604[_0x270dd5(0x26d)]+=',\x20'+_0x29ac62[_0x270dd5(0x26d)];}else _0x4a9677[_0x270dd5(0xf4)](_0x29ac62['selection'],_0x29ac62);}),Array[_0x242b0d(0x1fc)](_0x4a9677['values']());}var b=function(){const _0x6a8f68=_0x5586cb;return b=Object[_0x6a8f68(0x21c)]||function(_0x2ab608){const _0xe7f87f=_0x6a8f68;for(var _0xa9ce81,_0x3bc38a=0x1,_0xd12e5=arguments[_0xe7f87f(0x99)];_0x3bc38a<_0xd12e5;_0x3bc38a++){_0xa9ce81=arguments[_0x3bc38a];for(var _0x50c8c7 in _0xa9ce81)Object['prototype'][_0xe7f87f(0x2bf)][_0xe7f87f(0x253)](_0xa9ce81,_0x50c8c7)&&(_0x2ab608[_0x50c8c7]=_0xa9ce81[_0x50c8c7]);}return _0x2ab608;},b[_0x6a8f68(0x2db)](this,arguments);},bt=function(_0x5699b8,_0x9943d9){const _0x27a260=_0x5586cb;var _0x3ac76b={};for(var _0x2541b3 in _0x5699b8)Object[_0x27a260(0x25e)][_0x27a260(0x2bf)][_0x27a260(0x253)](_0x5699b8,_0x2541b3)&&_0x9943d9['indexOf'](_0x2541b3)<0x0&&(_0x3ac76b[_0x2541b3]=_0x5699b8[_0x2541b3]);if(_0x5699b8!=null&&typeof Object[_0x27a260(0x77)]==_0x27a260(0xad)){for(var _0x4e7008=0x0,_0x2541b3=Object[_0x27a260(0x77)](_0x5699b8);_0x4e7008<_0x2541b3[_0x27a260(0x99)];_0x4e7008++)_0x9943d9[_0x27a260(0x9c)](_0x2541b3[_0x4e7008])<0x0&&Object[_0x27a260(0x25e)][_0x27a260(0x2b9)][_0x27a260(0x253)](_0x5699b8,_0x2541b3[_0x4e7008])&&(_0x3ac76b[_0x2541b3[_0x4e7008]]=_0x5699b8[_0x2541b3[_0x4e7008]]);}return _0x3ac76b;},pe=M['forwardRef'](function(_0x2ac105,_0x31a205){const _0x4f0034=_0x5586cb;var _0x35367d=_0x2ac105['icon'],_0x2285f5=_0x2ac105['id'],_0x34f0d7=_0x2ac105['className'],_0x4d9b75=_0x2ac105[_0x4f0034(0x257)],_0x5e783d=bt(_0x2ac105,[_0x4f0034(0x1ab),'id',_0x4f0034(0x20a),'extend']),_0x3ea28d=_0x4f0034(0x2af)[_0x4f0034(0x2a0)](_0x2285f5,'\x20')['concat'](_0x34f0d7||'')[_0x4f0034(0x2b8)](),_0x1b3401=M[_0x4f0034(0x211)]('_'[_0x4f0034(0x2a0)](Rt()));return Ae(_0x35367d,''[_0x4f0034(0x2a0)](_0x2285f5),{'defIds':_0x35367d['defIds'],'idSuffix':_0x1b3401[_0x4f0034(0x8f)]},b({'ref':_0x31a205,'className':_0x3ea28d},_0x5e783d),_0x4d9b75);});function Ae(_0x4a0f70,_0x33f02b,_0x351d31,_0x54af1e,_0x4fd9be){const _0x54e47b=_0x5586cb;return M[_0x54e47b(0x8b)](_0x4a0f70[_0x54e47b(0x80)],b(b({'key':_0x33f02b},Ot(_0x4a0f70,_0x351d31,_0x4fd9be)),_0x54af1e),(Tt(_0x4a0f70,_0x351d31)[_0x54e47b(0x251)]||[])[_0x54e47b(0x1c4)](function(_0x16b47d,_0x2d1a65){const _0x13c64c=_0x54e47b;return Ae(_0x16b47d,''[_0x13c64c(0x2a0)](_0x33f02b,'-')[_0x13c64c(0x2a0)](_0x4a0f70['tag'],'-')[_0x13c64c(0x2a0)](_0x2d1a65),_0x351d31,void 0x0,_0x4fd9be);}));}function Ot(_0x193aab,_0x2d87e7,_0x30b1f2){const _0x2df714=_0x5586cb;var _0x5e4f76=b({},_0x193aab[_0x2df714(0x1a2)]);_0x30b1f2!=null&&_0x30b1f2[_0x2df714(0x1fb)]&&_0x5e4f76[_0x2df714(0x14a)]==='colorChannel1'&&(_0x5e4f76['fill']=_0x30b1f2[_0x2df714(0x1fb)]),_0x193aab['tag']==='mask'&&_0x5e4f76['id']&&(_0x5e4f76['id']=_0x5e4f76['id']+_0x2d87e7[_0x2df714(0x2b7)]),Object[_0x2df714(0xdf)](_0x5e4f76)[_0x2df714(0x1de)](function(_0x4098f7){const _0x11faf2=_0x2df714;var _0x426668=_0x4098f7[0x0],_0x15b26b=_0x4098f7[0x1];_0x426668===_0x11faf2(0x192)&&typeof _0x15b26b==_0x11faf2(0x87)&&(_0x5e4f76[_0x426668]=_0x15b26b[_0x11faf2(0x12a)](/url\(#(.*)\)/,_0x11faf2(0x23e)['concat'](_0x2d87e7['idSuffix'],')')));});var _0x4bc0f0=_0x2d87e7[_0x2df714(0x2a1)];return!_0x4bc0f0||_0x4bc0f0[_0x2df714(0x99)]===0x0||(_0x193aab['tag']===_0x2df714(0xd4)&&_0x5e4f76['xlink:href']&&(_0x5e4f76[_0x2df714(0x2ae)]=_0x5e4f76['xlink:href']+_0x2d87e7[_0x2df714(0x2b7)]),Object[_0x2df714(0xdf)](_0x5e4f76)[_0x2df714(0x1de)](function(_0x572058){const _0x3886aa=_0x2df714;var _0xef2664=_0x572058[0x0],_0x590b19=_0x572058[0x1];typeof _0x590b19==_0x3886aa(0x87)&&(_0x5e4f76[_0xef2664]=_0x590b19[_0x3886aa(0x12a)](/url\(#(.*)\)/,_0x3886aa(0x23e)[_0x3886aa(0x2a0)](_0x2d87e7['idSuffix'],')')));})),_0x5e4f76;}function Tt(_0x3a9e9d,_0x4cabf9){const _0x2ff455=_0x5586cb;var _0x3ed2a1,_0x296c2c=_0x4cabf9['defIds'];return!_0x296c2c||_0x296c2c[_0x2ff455(0x99)]===0x0?_0x3a9e9d:_0x3a9e9d[_0x2ff455(0x80)]==='defs'&&(!((_0x3ed2a1=_0x3a9e9d['children'])===null||_0x3ed2a1===void 0x0)&&_0x3ed2a1[_0x2ff455(0x99)])?b(b({},_0x3a9e9d),{'children':_0x3a9e9d[_0x2ff455(0x251)][_0x2ff455(0x1c4)](function(_0x1519df){const _0x231318=_0x2ff455;return typeof _0x1519df[_0x231318(0x1a2)]['id']==_0x231318(0x87)&&_0x296c2c&&_0x296c2c['includes'](_0x1519df[_0x231318(0x1a2)]['id'])?b(b({},_0x1519df),{'attrs':b(b({},_0x1519df[_0x231318(0x1a2)]),{'id':_0x1519df[_0x231318(0x1a2)]['id']+_0x4cabf9[_0x231318(0x2b7)]})}):_0x1519df;})}):_0x3a9e9d;}function Rt(){const _0x267355=_0x5586cb;return Math[_0x267355(0x10b)]()[_0x267355(0x9b)](0x24)[_0x267355(0x1fa)](0x2,0x8);}pe[_0x5586cb(0x17d)]='UniverIcon';var Dt={'tag':_0x5586cb(0x1bf),'attrs':{'xmlns':_0x5586cb(0xda),'fill':_0x5586cb(0x223),'viewBox':'0\x200\x2016\x2016','width':_0x5586cb(0x13f),'height':_0x5586cb(0x13f)},'children':[{'tag':'g','attrs':{'clipPath':_0x5586cb(0x15f)},'children':[{'tag':_0x5586cb(0x172),'attrs':{'stroke':_0x5586cb(0x22f),'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':_0x5586cb(0x117),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5586cb(0xaf),'attrs':{},'children':[{'tag':_0x5586cb(0x11f),'attrs':{'id':_0x5586cb(0x185)},'children':[{'tag':_0x5586cb(0x172),'attrs':{'fill':_0x5586cb(0x175),'d':_0x5586cb(0x20b)}}]}]}],'defIds':[_0x5586cb(0x185)]},ye=M[_0x5586cb(0x1f5)](function(_0xd4271a,_0x5e7e94){const _0x4053c2=_0x5586cb;return M['createElement'](pe,Object[_0x4053c2(0x21c)]({},_0xd4271a,{'id':_0x4053c2(0x128),'ref':_0x5e7e94,'icon':Dt}));});ye['displayName']=_0x5586cb(0x1e7);var Ut={'tag':_0x5586cb(0x1bf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5586cb(0x223),'viewBox':_0x5586cb(0x16f),'width':_0x5586cb(0x13f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5586cb(0x228)},'children':[{'tag':'path','attrs':{'stroke':_0x5586cb(0x22f),'d':_0x5586cb(0x246),'strokeLinecap':'round','strokeLinejoin':_0x5586cb(0x117),'strokeWidth':1.2}}]},{'tag':_0x5586cb(0xaf),'attrs':{},'children':[{'tag':_0x5586cb(0x11f),'attrs':{'id':_0x5586cb(0x283)},'children':[{'tag':_0x5586cb(0x172),'attrs':{'fill':_0x5586cb(0x175),'d':_0x5586cb(0x20b),'transform':_0x5586cb(0x293)}}]}]}],'defIds':[_0x5586cb(0x283)]},$e=M[_0x5586cb(0x1f5)](function(_0x52362b,_0x2b7cc8){const _0x370772=_0x5586cb;return M[_0x370772(0x8b)](pe,Object['assign']({},_0x52362b,{'id':_0x370772(0xbd),'ref':_0x2b7cc8,'icon':Ut}));});$e[_0x5586cb(0x17d)]='OnLineIcon';function Nt(_0x16da98){const _0x3afa1d=_0x5586cb;switch(_0x16da98){case u[_0x3afa1d(0x2f1)][_0x3afa1d(0x178)]:return _0x3afa1d(0xde);case u[_0x3afa1d(0x2f1)]['CONFLICT']:return _0x3afa1d(0xf3);case u[_0x3afa1d(0x2f1)]['FETCH_MISS']:return _0x3afa1d(0x258);case u['CollaborationStatus'][_0x3afa1d(0x1d5)]:return _0x3afa1d(0x2d6);case u[_0x3afa1d(0x2f1)][_0x3afa1d(0x25c)]:case u[_0x3afa1d(0x2f1)][_0x3afa1d(0x233)]:return'collabStatus.syncing';case u[_0x3afa1d(0x2f1)][_0x3afa1d(0x150)]:case u['CollaborationStatus'][_0x3afa1d(0x165)]:return _0x3afa1d(0x273);}}function Mt(_0x24f730){const _0x1da24c=_0x5586cb,{status$:_0x403d53}=_0x24f730,_0x32570b=O['useObservable'](_0x403d53,u[_0x1da24c(0x2f1)][_0x1da24c(0x1d5)]),_0x1bad05=O['useDependency'](a[_0x1da24c(0x1e1)]),_0x204acb=O['useDependency'](u[_0x1da24c(0x19e)]),_0x5e8316=_0x32570b!==u[_0x1da24c(0x2f1)][_0x1da24c(0x178)],_0x41f604=_0x1bad05['t'](Nt(_0x32570b)),_0x145acf=_0x5e8316?P[_0x1da24c(0x1bd)]($e,{}):P['jsx'](ye,{}),_0x1cac51=M[_0x1da24c(0x212)](()=>{const _0x32d801=_0x1da24c;_0x5e8316||_0x204acb[_0x32d801(0x2bd)]();},[_0x5e8316,_0x204acb]);function _0x12af5f(){const _0x33ada4=_0x1da24c;return P['jsxs'](_0x33ada4(0x98),{'className':_0x33ada4(0x1b6),'onClick':_0x1cac51,'children':[P[_0x33ada4(0x1bd)](_0x33ada4(0x98),{'className':D[_0x33ada4(0x17e)](_0x33ada4(0x217),{'univer-text-green-500':_0x5e8316,'univer-text-red-500':!_0x5e8316}),'children':_0x145acf}),P[_0x33ada4(0x1bd)](_0x33ada4(0x98),{'className':_0x33ada4(0xa8),'children':_0x41f604})]});}return _0x5e8316?_0x12af5f():P['jsx'](D[_0x1da24c(0x86)],{'title':_0x1bad05['t'](_0x1da24c(0x152)),'children':_0x12af5f()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x521145,_0x34e9c4,_0x99e39f,_0x747e19)=>{const _0x53a9e0=_0x5586cb;for(var _0x41f8ba=_0x747e19>0x1?void 0x0:_0x747e19?Lt(_0x34e9c4,_0x99e39f):_0x34e9c4,_0x187741=_0x521145[_0x53a9e0(0x99)]-0x1,_0x5d1c03;_0x187741>=0x0;_0x187741--)(_0x5d1c03=_0x521145[_0x187741])&&(_0x41f8ba=_0x5d1c03(_0x41f8ba)||_0x41f8ba);return _0x41f8ba;},V=(_0x5ec30a,_0x4c0f13)=>(_0x17637f,_0x46c5bd)=>_0x4c0f13(_0x17637f,_0x46c5bd,_0x5ec30a);exports[_0x5586cb(0xe1)]=class extends a[_0x5586cb(0x160)]{constructor(_0x41d48c,_0xe81508,_0x599918,_0x37637d){const _0x56720a=_0x5586cb;super(),h(this,_0x56720a(0x1dc),new d[(_0x56720a(0x2dc))](u[_0x56720a(0x2f1)][_0x56720a(0x1d5)])),(this[_0x56720a(0x1bc)]=_0x41d48c,this[_0x56720a(0x277)]=_0xe81508,this[_0x56720a(0x205)]=_0x599918,this[_0x56720a(0x220)]=_0x37637d,this[_0x56720a(0x163)](),this[_0x56720a(0x134)]());}['_initStatusListener'](){const _0x191fcd=_0x5586cb;this['disposeWithMe'](this[_0x191fcd(0x1bc)][_0x191fcd(0x286)][_0x191fcd(0x162)](d['switchMap'](()=>{const _0x4ba486=_0x191fcd,_0x54460f=this[_0x4ba486(0x1bc)][_0x4ba486(0x158)]();return _0x54460f?this[_0x4ba486(0x205)][_0x4ba486(0x18e)](_0x54460f[_0x4ba486(0x109)]()):d['of'](null);}),d[_0x191fcd(0x2c2)](_0x2e07bb=>_0x2e07bb?_0x2e07bb[_0x191fcd(0x285)]:d['of'](u['CollaborationStatus'][_0x191fcd(0x1d5)])))['subscribe'](_0x58246b=>{const _0x43e785=_0x191fcd;this['_status$'][_0x43e785(0x229)](_0x58246b);}));}['_initStatusComponent'](){const _0x24daf4=_0x5586cb;this[_0x24daf4(0x142)](this[_0x24daf4(0x220)][_0x24daf4(0x274)](O['BuiltInUIPart']['HEADER_MENU'],()=>O[_0x24daf4(0x23a)](wt({'status$':this[_0x24daf4(0x1dc)][_0x24daf4(0x13b)]()}),this[_0x24daf4(0x277)])));}},exports[_0x5586cb(0xe1)]=Pt([V(0x0,a[_0x5586cb(0x270)]),V(0x1,a[_0x5586cb(0x187)](a[_0x5586cb(0x144)])),V(0x2,a[_0x5586cb(0x187)](u['CollaborationController'])),V(0x3,O[_0x5586cb(0x190)])],exports[_0x5586cb(0xe1)]);function wt(_0xbf4046){const {status$:_0xe38514}=_0xbf4046;return function(){return P['jsx'](Mt,{'status$':_0xe38514});};}var At=Object[_0x5586cb(0x84)],yt=(_0x3110b9,_0x238e65,_0x1888c7,_0x132ac4)=>{const _0x333431=_0x5586cb;for(var _0x10b5a9=_0x132ac4>0x1?void 0x0:_0x132ac4?At(_0x238e65,_0x1888c7):_0x238e65,_0x14bc9a=_0x3110b9[_0x333431(0x99)]-0x1,_0x574fa2;_0x14bc9a>=0x0;_0x14bc9a--)(_0x574fa2=_0x3110b9[_0x14bc9a])&&(_0x10b5a9=_0x574fa2(_0x10b5a9)||_0x10b5a9);return _0x10b5a9;},y=(_0x2f5500,_0x1d2255)=>(_0x13d640,_0x305cef)=>_0x1d2255(_0x13d640,_0x305cef,_0x2f5500);let q=class extends a[_0x5586cb(0x160)]{constructor(_0x342e4f,_0x2de94f,_0x2ab3cf,_0x488d9f,_0x190c85,_0x30e206){const _0x4bb4bd=_0x5586cb;super(),this[_0x4bb4bd(0x146)]=_0x342e4f,this[_0x4bb4bd(0x256)]=_0x2de94f,this['_collaborationUIEventService']=_0x2ab3cf,this[_0x4bb4bd(0x93)]=_0x488d9f,this['_notificationService']=_0x190c85,this[_0x4bb4bd(0x173)]=_0x30e206,this[_0x4bb4bd(0x130)](),this[_0x4bb4bd(0x133)]();}[_0x5586cb(0x130)](){const _0x507873=_0x5586cb;this[_0x507873(0x142)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x253e37=_0x507873;if(this[_0x253e37(0x256)][_0x253e37(0x1ad)][_0x253e37(0x242)])return this[_0x253e37(0x173)]['t'](_0x253e37(0x267));}));}[_0x5586cb(0x133)](){const _0x9463ae=_0x5586cb;this[_0x9463ae(0x142)](this[_0x9463ae(0x1b2)][_0x9463ae(0x268)][_0x9463ae(0x2a2)](_0x3b1531=>{const _0x2a0fc3=_0x9463ae;_0x3b1531['id']===u[_0x2a0fc3(0x179)]['OTHER_CLIENT_EDITING']&&this[_0x2a0fc3(0x93)][_0x2a0fc3(0x100)]({'type':D[_0x2a0fc3(0xc1)][_0x2a0fc3(0x141)],'content':this[_0x2a0fc3(0x173)]['t'](_0x2a0fc3(0x21b))}),_0x3b1531['id']===u[_0x2a0fc3(0x179)]['CLOSE_ROOM']&&this[_0x2a0fc3(0x93)]['show']({'type':D[_0x2a0fc3(0xc1)][_0x2a0fc3(0x141)],'content':this[_0x2a0fc3(0x173)]['t']('collaboration.closeRoom')}),_0x3b1531['id']===u[_0x2a0fc3(0x179)][_0x2a0fc3(0x126)]&&this['_notificationService'][_0x2a0fc3(0x100)]({'title':this[_0x2a0fc3(0x173)]['t']('permission.title'),'content':this[_0x2a0fc3(0x173)]['t'](_0x2a0fc3(0x119)),'type':'error','duration':0x0}),_0x3b1531['id']===u[_0x2a0fc3(0x179)][_0x2a0fc3(0x180)]&&this[_0x2a0fc3(0x93)][_0x2a0fc3(0x100)]({'type':D['MessageType'][_0x2a0fc3(0x135)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x3b1531['data']+')'}),_0x3b1531['id']===u['CollaborationUIEventId'][_0x2a0fc3(0x95)]&&this[_0x2a0fc3(0x93)][_0x2a0fc3(0x100)]({'type':D[_0x2a0fc3(0xc1)][_0x2a0fc3(0x141)],'content':this[_0x2a0fc3(0x173)]['t'](_0x3b1531['data']||'')}),_0x3b1531['id']===u[_0x2a0fc3(0x179)][_0x2a0fc3(0xe2)]&&this['_messageService']['show']({'type':D['MessageType'][_0x2a0fc3(0x141)],'content':this[_0x2a0fc3(0x173)]['t'](_0x2a0fc3(0x92))}),_0x3b1531['id']===u[_0x2a0fc3(0x179)][_0x2a0fc3(0x28e)]&&this['_messageService'][_0x2a0fc3(0x100)]({'type':D[_0x2a0fc3(0xc1)]['Error'],'content':this[_0x2a0fc3(0x173)]['t']('session.connection-failed')}),_0x3b1531['id']===u['CollaborationUIEventId'][_0x2a0fc3(0x96)]&&this['_messageService'][_0x2a0fc3(0x100)]({'type':D[_0x2a0fc3(0xc1)][_0x2a0fc3(0x135)],'content':this[_0x2a0fc3(0x173)]['t'](_0x2a0fc3(0x2d1))});}));}};q=yt([y(0x0,O[_0x5586cb(0x2df)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x5586cb(0x187)](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O[_0x5586cb(0x10a)]),y(0x5,a[_0x5586cb(0x187)](a['LocaleService']))],q);const $t=_0x5586cb(0xea),Ue={},Ee=a[_0x5586cb(0xa3)]('uni.network.url-service');var xt=Object[_0x5586cb(0x84)],Bt=(_0x384beb,_0x314124,_0x368f8a,_0x353649)=>{const _0x108324=_0x5586cb;for(var _0x31b3ed=_0x353649>0x1?void 0x0:_0x353649?xt(_0x314124,_0x368f8a):_0x314124,_0x141f40=_0x384beb[_0x108324(0x99)]-0x1,_0x5d19a0;_0x141f40>=0x0;_0x141f40--)(_0x5d19a0=_0x384beb[_0x141f40])&&(_0x31b3ed=_0x5d19a0(_0x31b3ed)||_0x31b3ed);return _0x31b3ed;},F=(_0x4a0153,_0x9ca32e)=>(_0x1f1a6d,_0x26be51)=>_0x9ca32e(_0x1f1a6d,_0x26be51,_0x4a0153);exports[_0x5586cb(0x2ea)]=class extends a[_0x5586cb(0x2bc)]{constructor(_0x13a2b2,_0xe339ec,_0x139edf,_0x180a63,_0x85e36f){const _0x29d779=_0x5586cb;super(),this[_0x29d779(0xf9)]=_0x13a2b2,this[_0x29d779(0xf7)]=_0xe339ec,this[_0x29d779(0x28d)]=_0x139edf,this[_0x29d779(0x206)]=_0x180a63,_0x85e36f?_0x85e36f==null||_0x85e36f['whenReady']()[_0x29d779(0x9d)](()=>this['_init']()):(this['_logService']['debug'](_0x29d779(0x2a6),_0x29d779(0x195)),this['_init']());}async[_0x5586cb(0x17f)](){const _0x3510d3=_0x5586cb,_0x343cc9=this[_0x3510d3(0xf9)]['getParam']('unit'),_0x2ff0d5=this[_0x3510d3(0xf9)][_0x3510d3(0x236)](_0x3510d3(0xa9)),_0x4777c4=this[_0x3510d3(0xf9)]['getParam'](_0x3510d3(0xbe));if(!_0x343cc9||!_0x2ff0d5){this[_0x3510d3(0xf7)][_0x3510d3(0x27e)](_0x3510d3(0x2a6),_0x3510d3(0x188));return;}const _0x47104e=await this[_0x3510d3(0x206)]['loadUnit'](_0x343cc9,Number(_0x2ff0d5),_0x4777c4);_0x47104e&&_0x47104e instanceof a[_0x3510d3(0x224)]&&this[_0x3510d3(0x269)](_0x47104e);}async[_0x5586cb(0x269)](_0x1084c0){const _0x214050=_0x5586cb;await this[_0x214050(0x25d)](_0x1084c0),_0x1084c0[_0x214050(0x2c4)][_0x214050(0x162)](d[_0x214050(0xed)](this[_0x214050(0x1dd)]))[_0x214050(0x2a2)](_0x1e6c6e=>{const _0x898bc=_0x214050;_0x1e6c6e&&this[_0x898bc(0x1ac)](_0x1e6c6e);}),this[_0x214050(0xf9)][_0x214050(0xff)][_0x214050(0x162)](d[_0x214050(0xed)](this[_0x214050(0x1dd)]))[_0x214050(0x2a2)](()=>this[_0x214050(0x25d)](_0x1084c0));}[_0x5586cb(0x1ac)](_0x517859,_0x5b815d=!0x1){const _0x89fc0=_0x5586cb,_0x5abdf5=this[_0x89fc0(0xf9)][_0x89fc0(0x236)]('subunit');_0x517859[_0x89fc0(0x196)]()!==_0x5abdf5&&this[_0x89fc0(0xf9)][_0x89fc0(0x1c6)](_0x89fc0(0xbe),_0x517859[_0x89fc0(0x196)](),_0x5b815d);}async[_0x5586cb(0x25d)](_0x5ef39b){const _0x2eb5ed=_0x5586cb;var _0x535f5b;const _0x220c34=this['_urlService'][_0x2eb5ed(0x236)]('subunit');if(!_0x220c34||!_0x5ef39b[_0x2eb5ed(0xfa)](_0x220c34)){const _0x30e2c6=_0x5ef39b[_0x2eb5ed(0x232)]()[0x0],_0xdf734d=_0x5ef39b['getSheetBySheetId'](_0x30e2c6);if(!_0xdf734d)return;this[_0x2eb5ed(0x1ac)](_0xdf734d,!0x0),await this[_0x2eb5ed(0x28d)][_0x2eb5ed(0x2e9)](g[_0x2eb5ed(0x145)]['id'],{'unitId':_0x5ef39b[_0x2eb5ed(0x109)](),'subUnitId':_0x30e2c6});return;}((_0x535f5b=_0x5ef39b['getActiveSheet']())==null?void 0x0:_0x535f5b[_0x2eb5ed(0x196)]())!==_0x220c34&&await this['_commandService'][_0x2eb5ed(0x2e9)](g[_0x2eb5ed(0x145)]['id'],{'unitId':_0x5ef39b[_0x2eb5ed(0x109)](),'subUnitId':_0x220c34});}},exports[_0x5586cb(0x2ea)]=Bt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a[_0x5586cb(0x1c5)]),F(0x3,a[_0x5586cb(0x187)](u[_0x5586cb(0xef)])),F(0x4,a[_0x5586cb(0x116)](Ge[_0x5586cb(0x1fd)]))],exports['CollaborationDataLoaderController']);var jt=Object[_0x5586cb(0x84)],kt=(_0x452f76,_0x1de880,_0x182a58,_0x1b1d86)=>{for(var _0x5e8c3f=_0x1b1d86>0x1?void 0x0:_0x1b1d86?jt(_0x1de880,_0x182a58):_0x1de880,_0x4a8f81=_0x452f76['length']-0x1,_0x188a05;_0x4a8f81>=0x0;_0x4a8f81--)(_0x188a05=_0x452f76[_0x4a8f81])&&(_0x5e8c3f=_0x188a05(_0x5e8c3f)||_0x5e8c3f);return _0x5e8c3f;},ce=(_0x29322f,_0x4185dd)=>(_0x133228,_0xddf1cb)=>_0x4185dd(_0x133228,_0xddf1cb,_0x29322f);let z=class{constructor(_0x12282f,_0x4af6dc,_0x434e8e){const _0x55818c=_0x5586cb;this['_injector']=_0x12282f,this[_0x55818c(0xb4)]=_0x4af6dc,this[_0x55818c(0x240)]=_0x434e8e;}['transformIMECache'](_0x337dce){const _0x1f425d=_0x5586cb;this[_0x1f425d(0x1f2)](_0x337dce),this[_0x1f425d(0x123)](_0x337dce);}[_0x5586cb(0x2e1)](_0x322c4c){const _0x48b384=_0x5586cb,{unitID:_0x34bf9e}=_0x322c4c,_0x247bd3=this[_0x48b384(0x240)][_0x48b384(0x2ed)](_0x34bf9e)[_0x48b384(0xfd)](E[_0x48b384(0x18b)]),{redoCache:_0x3407ad}=_0x247bd3[_0x48b384(0x1b5)]();if(_0x3407ad['length']===0x0)return _0x322c4c;let _0x5b2910=a[_0x48b384(0x2e5)]['deepClone'](_0x322c4c[_0x48b384(0x91)][0x0]);for(let _0x310d28=0x0;_0x310d28<_0x3407ad[_0x48b384(0x99)];_0x310d28++){const _0x2329f9={'id':'doc.mutation.rich-text-editing','params':{..._0x3407ad[_0x310d28]}},_0x49f046=this[_0x48b384(0xb4)]['transformMutation'](_0x5b2910,_0x2329f9,!0x1);if(m[_0x48b384(0x1ed)](_0x49f046))throw _0x49f046[_0x48b384(0xf8)];_0x5b2910=_0x49f046[_0x48b384(0x140)];}return{...a[_0x48b384(0x2e5)]['deepClone'](_0x322c4c),'mutations':[_0x5b2910]};}[_0x5586cb(0x1f2)](_0x5521c0){const _0x4cf3c3=_0x5586cb,{unitID:_0x16f2ee}=_0x5521c0,_0x2e71d8=this[_0x4cf3c3(0x240)][_0x4cf3c3(0x2ed)](_0x16f2ee)[_0x4cf3c3(0xfd)](E[_0x4cf3c3(0x18b)]),{undoCache:_0x33df3a,redoCache:_0x1650eb}=_0x2e71d8['getUndoRedoMutationParamsCache']();if(_0x33df3a[_0x4cf3c3(0x99)]===0x0||_0x1650eb['length']===0x0)return;const _0x48ecfb=[],_0x1f8f8a=[];let _0x32024d=a['Tools']['deepClone'](_0x5521c0['mutations'][0x0]),_0x302366=a[_0x4cf3c3(0x2e5)][_0x4cf3c3(0x1f7)](_0x5521c0[_0x4cf3c3(0x91)][0x0]);for(let _0x1d7635=_0x33df3a[_0x4cf3c3(0x99)]-0x1;_0x1d7635>=0x0;_0x1d7635--){const _0x4bace8={'id':_0x4cf3c3(0x278),'params':{..._0x33df3a[_0x1d7635]}},_0x28f42e={'id':'doc.mutation.rich-text-editing','params':{..._0x1650eb[_0x1d7635]}},_0x519fdb=this[_0x4cf3c3(0xb4)]['transformMutation'](_0x32024d,_0x4bace8,!0x1),_0x5b3453=this[_0x4cf3c3(0xb4)][_0x4cf3c3(0xdb)](_0x302366,_0x28f42e,!0x1);if(m['isTransformMutationFailure'](_0x519fdb))throw _0x519fdb[_0x4cf3c3(0xf8)];if(m[_0x4cf3c3(0x1ed)](_0x5b3453))throw _0x5b3453[_0x4cf3c3(0xf8)];_0x48ecfb[_0x4cf3c3(0x2e3)](_0x519fdb[_0x4cf3c3(0x252)]['params']),_0x1f8f8a['unshift'](_0x5b3453[_0x4cf3c3(0x252)][_0x4cf3c3(0x2ac)]),_0x32024d=_0x519fdb['m1Prime'],_0x302366=_0x5b3453[_0x4cf3c3(0x140)];}_0x2e71d8[_0x4cf3c3(0x1f9)]({'undoCache':_0x48ecfb,'redoCache':_0x1f8f8a});}[_0x5586cb(0x123)](_0x5699b9){const _0x7bfedd=_0x5586cb,{unitID:_0x4db954}=_0x5699b9,_0x51f1b9=this[_0x7bfedd(0x240)][_0x7bfedd(0x2ed)](_0x4db954)['with'](E[_0x7bfedd(0x18b)]),_0x3af454=_0x51f1b9['getActiveRange']();if(_0x3af454==null)return;const _0x1c7316=[{'id':_0x7bfedd(0x278),'params':{'unitId':_0x5699b9[_0x7bfedd(0x1c0)],'actions':null,'textRanges':[_0x3af454]}}],_0x1bacb0=this[_0x7bfedd(0xb4)][_0x7bfedd(0xb7)](_0x5699b9,_0x1c7316);if(!m['isTransformMutationsWithChangesetSuccess'](_0x1bacb0))throw _0x1bacb0[_0x7bfedd(0xf8)];const _0x4855af=_0x1bacb0[_0x7bfedd(0x252)][0x0][_0x7bfedd(0x2ac)][_0x7bfedd(0x20e)];Array[_0x7bfedd(0x26f)](_0x4855af)&&_0x4855af[_0x7bfedd(0x99)]&&_0x51f1b9['setActiveRange'](_0x4855af[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x5586cb(0x144)])),ce(0x1,m[_0x5586cb(0x12c)]),ce(0x2,p['IRenderManagerService'])],z);var Ft=Object[_0x5586cb(0x84)],Ht=(_0x3d33f9,_0x56331a,_0x39ffec,_0xe1e07)=>{const _0x398a15=_0x5586cb;for(var _0x3cb0f7=_0xe1e07>0x1?void 0x0:_0xe1e07?Ft(_0x56331a,_0x39ffec):_0x56331a,_0x472675=_0x3d33f9[_0x398a15(0x99)]-0x1,_0x19a7a8;_0x472675>=0x0;_0x472675--)(_0x19a7a8=_0x3d33f9[_0x472675])&&(_0x3cb0f7=_0x19a7a8(_0x3cb0f7)||_0x3cb0f7);return _0x3cb0f7;},le=(_0x1d4ec4,_0x1e1697)=>(_0xf97675,_0x5d3fa4)=>_0x1e1697(_0xf97675,_0x5d3fa4,_0x1d4ec4);let J=class{constructor(_0x4e8187,_0x15541f,_0x54edd0){const _0x156b96=_0x5586cb;this['_injector']=_0x4e8187,this[_0x156b96(0xb4)]=_0x15541f,this[_0x156b96(0xa0)]=_0x54edd0;}[_0x5586cb(0x235)](_0x1620b4){this['_transformHistoryAndStateStack'](_0x1620b4);}['transformRemoteChangeset'](_0x4e36cd){const _0x2ccdee=_0x5586cb,{unitID:_0x2671f9}=_0x4e36cd,{collaboration:_0x23038e}=this['_docStateChangeManagerService'][_0x2ccdee(0x15d)](_0x2671f9);if(_0x23038e[_0x2ccdee(0x99)]===0x0)return _0x4e36cd;let _0x1d6741=a['Tools'][_0x2ccdee(0x1f7)](_0x4e36cd[_0x2ccdee(0x91)][0x0]);for(let _0x490907=0x0;_0x490907<_0x23038e[_0x2ccdee(0x99)];_0x490907++){const _0x48d764={'id':_0x2ccdee(0x278),'params':{'unitId':_0x23038e[_0x490907][_0x2ccdee(0x115)],..._0x23038e[_0x490907][_0x2ccdee(0x20f)]}},_0x418e1e=this['_transformService']['transformMutation'](_0x1d6741,_0x48d764,!0x1);if(m[_0x2ccdee(0x1ed)](_0x418e1e))throw _0x418e1e['error'];_0x1d6741=_0x418e1e[_0x2ccdee(0x140)];}return{...a[_0x2ccdee(0x2e5)][_0x2ccdee(0x1f7)](_0x4e36cd),'mutations':[_0x1d6741]};}[_0x5586cb(0x191)](_0x158e7a){const _0x3024fb=_0x5586cb,{unitID:_0x4352ba}=_0x158e7a,{history:_0x50a660,collaboration:_0x2f8d24}=this[_0x3024fb(0xa0)][_0x3024fb(0x15d)](_0x4352ba);if(_0x50a660[_0x3024fb(0x99)]===0x0&&_0x2f8d24[_0x3024fb(0x99)]===0x0)return;const _0x20f3b9=[],_0x2e658b=[];let _0x32366f=a[_0x3024fb(0x2e5)][_0x3024fb(0x1f7)](_0x158e7a['mutations'][0x0]),_0xbf6332=a[_0x3024fb(0x2e5)][_0x3024fb(0x1f7)](_0x158e7a['mutations'][0x0]);for(let _0x304bdd=_0x50a660[_0x3024fb(0x99)]-0x1;_0x304bdd>=0x0;_0x304bdd--){const _0x22fe9a={'id':_0x3024fb(0x278),'params':{'unitId':_0x50a660[_0x304bdd][_0x3024fb(0x115)],..._0x50a660[_0x304bdd][_0x3024fb(0xd5)]}},_0x36b479={'id':_0x3024fb(0x278),'params':{'unitId':_0x50a660[_0x304bdd][_0x3024fb(0x115)],..._0x50a660[_0x304bdd][_0x3024fb(0x20f)]}},_0x38f2d8=this['_transformService'][_0x3024fb(0xdb)](_0x32366f,_0x22fe9a,!0x1),_0x2ebc0d=this[_0x3024fb(0xb4)]['transformMutation'](_0xbf6332,_0x36b479,!0x1);if(m[_0x3024fb(0x1ed)](_0x38f2d8))throw _0x38f2d8[_0x3024fb(0xf8)];if(m[_0x3024fb(0x1ed)](_0x2ebc0d))throw _0x2ebc0d[_0x3024fb(0xf8)];_0x20f3b9[_0x3024fb(0x2e3)]({..._0x50a660[_0x304bdd],'undoState':_0x38f2d8[_0x3024fb(0x252)]['params'],'redoState':_0x2ebc0d[_0x3024fb(0x252)][_0x3024fb(0x2ac)]}),_0x32366f=_0x38f2d8[_0x3024fb(0x140)],_0xbf6332=_0x2ebc0d[_0x3024fb(0x140)];}_0x32366f=a[_0x3024fb(0x2e5)]['deepClone'](_0x158e7a[_0x3024fb(0x91)][0x0]),_0xbf6332=a['Tools'][_0x3024fb(0x1f7)](_0x158e7a['mutations'][0x0]);for(let _0x3f39c6=_0x2f8d24[_0x3024fb(0x99)]-0x1;_0x3f39c6>=0x0;_0x3f39c6--){const _0x57e5f3={'id':_0x3024fb(0x278),'params':{'unitId':_0x2f8d24[_0x3f39c6][_0x3024fb(0x115)],..._0x2f8d24[_0x3f39c6][_0x3024fb(0xd5)]}},_0xd6462f={'id':_0x3024fb(0x278),'params':{'unitId':_0x2f8d24[_0x3f39c6][_0x3024fb(0x115)],..._0x2f8d24[_0x3f39c6][_0x3024fb(0x20f)]}},_0x35fd06=this[_0x3024fb(0xb4)][_0x3024fb(0xdb)](_0x32366f,_0x57e5f3,!0x1),_0x3e615e=this[_0x3024fb(0xb4)][_0x3024fb(0xdb)](_0xbf6332,_0xd6462f,!0x1);if(m[_0x3024fb(0x1ed)](_0x35fd06))throw _0x35fd06[_0x3024fb(0xf8)];if(m[_0x3024fb(0x1ed)](_0x3e615e))throw _0x3e615e['error'];_0x2e658b[_0x3024fb(0x2e3)]({..._0x2f8d24[_0x3f39c6],'undoState':_0x35fd06[_0x3024fb(0x252)]['params'],'redoState':_0x3e615e[_0x3024fb(0x252)][_0x3024fb(0x2ac)]}),_0x32366f=_0x35fd06['m1Prime'],_0xbf6332=_0x3e615e['m1Prime'];}this[_0x3024fb(0xa0)]['setStateCache'](_0x4352ba,{'history':_0x20f3b9,'collaboration':_0x2e658b});}};J=Ht([le(0x0,a['Inject'](a[_0x5586cb(0x144)])),le(0x1,m[_0x5586cb(0x12c)]),le(0x2,a[_0x5586cb(0x187)](E[_0x5586cb(0x16e)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0xdaf074,_0x1fc293,_0xbb850d,_0x3b38fe)=>{const _0x23a674=_0x5586cb;for(var _0x24aa38=_0x3b38fe>0x1?void 0x0:_0x3b38fe?Yt(_0x1fc293,_0xbb850d):_0x1fc293,_0x249e6b=_0xdaf074[_0x23a674(0x99)]-0x1,_0x43e883;_0x249e6b>=0x0;_0x249e6b--)(_0x43e883=_0xdaf074[_0x249e6b])&&(_0x24aa38=_0x43e883(_0x24aa38)||_0x24aa38);return _0x24aa38;},Ne=(_0x3edb06,_0x420f66)=>(_0x55df38,_0x254dfb)=>_0x420f66(_0x55df38,_0x254dfb,_0x3edb06);function _0x5245(){const _0x151368=['none','Workbook','UNIVER_DOC','getVpScrollXYInfoByPosToVp','currentTheme$','url(#on-line-icon_clip0_910_349)','next','RemoteUniscriptService','merge','1014712zCLWNb','EffectRefRangId','handleIRemoveCol','currentColor','endColumn','newValue','getUnhiddenWorksheets','AWAITING_WITH_PENDING','UniverCollaborationClientPlugin','transformStateCache','getParam','YUUMI_CONNECTOR_URL_NOT_FOUND','_scheduleHeartbeat','_cursorShapes','connectInjector','onPointerMove$','addObjects','_color','url(#$1','eventID','_renderManagerService','RemoveColCommandId','size','editingUnit','_getScale','measureText','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','getUnitStatus$','_onRefRangeChange','_session','dispose','body','setItem','MoveRangeCommandId','_getSessionTicket','_lastPointer','fromEventSubject','children','m2Prime','call','InsertRangeMoveRightCommandId','WebSocketService','_localCacheService','extend','collabStatus.fetchMiss','runOnServer','_id','getCurrentRevOfUnit','AWAITING','_updateSubUnitFromURLParams','prototype','_initCommandExecutedListener','sessionTicket','_collabSessionService','SheetsSelectionsService','2ILnLqG','BrowserCollaborationSocketService','_doCreateSocket','APPLY_DUPLICATED','collaboration-client.offline-data-not-saved','event$','_setupSubUnitSync','UNDEFINED','getConfig','labelPosition','name','_disabled','isArray','IUniverInstanceService','history','TOO_MANY_REQUESTS','collabStatus.synced','registerComponent','Failed','ENSURE_SNAPSHOT_EXECUTION','_injector','doc.mutation.rich-text-editing','blue.400','some','SNAPSHOT_INVALID_SNAPSHOT','MUTATION','_name','debug','drawWith','addObject','setShapeProps','getItem','on-line-icon_clip0_910_349','complete','status$','focused$','resize','getCellPositionByOffset','_textBubble','column','5052446GnhqCw','_docSyncEditingCollabCursorService','_commandService','SOCKET_FAILED','_hover','APPLY_PERMISSION_DENIED','onLocalMutation','EMAIL_HAS_BEEN_BOUND','translate(.97)','result','_anchor','VIEW_MAIN','min','onPointerEnter$','save','fillStyle','_startDocCollabCursor','ACTIVE_UNIT_EVENT_CHANNEL','_getAnchorBounding','onTransformChange$','CONNECTOR_DATA_TOO_LARGE','concat','defIds','subscribe','getRangePointData','throttleTime','createInstance','[CollaborationDataLoaderController]','...','_instanceService','_cachedData','_docTransformIMECacheService','getRelativeToViewportCoord','params','setConfig','xlink:href','univerjs-icon\x20univerjs-icon-','search','NOT_FOUND','_colorAssignService','collabCursorState$','code','_config','all','idSuffix','trim','propertyIsEnumerable','getMemberID','pushState','RxDisposable','reconnect','collab-text-anchor-','hasOwnProperty','_assignedColors','handleDeleteRangeMoveLeft','switchMap','111KIOqFN','activeSheet$','SheetSkeletonManagerService','_scheduleSaving','init','15374547cwiKWi','IMessageService','_onCursorDelete','invokeId','black','[RemoteUniscriptService]:\x20no\x20focused\x20unit','DocCollaborationEntity','storage','getTypeOfUnitAdded$','session.collaboration-timeout','debounceTime','defineProperty','clearTimeout','YUUMI_RATE_OVER_LIMIT','collabStatus.notCollab','/run/','setTimeout','saveImage','_scheduleClearOtherTimer','apply','BehaviorSubject','OTHER_CLIENTS_EDITING','updateOfflineData','IBeforeCloseService','_httpService','transformRemoteChangeset','hide','unshift','transformByState','Tools','registerRenderModule','_document','getCurrent','executeCommand','CollaborationDataLoaderController','_handleHover','get','getRenderById','subUnitId','LICENSE_EXPORT_SIZE_EXCEEDED','getCoordByCell','CollaborationStatus','getOwnPropertySymbols','roomMembers$','NodePositionConvertToCursor','getValue','WECHAT_HAS_BEEN_BOUND','_createSocketURL','_selfUnitIDs','getCurrentSelections','getCollabCursors$','tag','_unitStatus','fillRule','UNIVER_SHEET','getOwnPropertyDescriptor','_memberService','Tooltip','string','_ensureSubject','transformSelections','COLORS','createElement','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','exhaustSavingTask','deserializeRangeWithSheet','current','pluginName','mutations','session.will-retry','_messageService','saveOfflineData','JOIN_ROOM_FAILED','SUBMIT_CHANGESET_TIMEOUT','includes','div','length','toDisposable','toString','indexOf','then','13enGHuC','_roomMembers$','_docStateChangeManagerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','16908amDVzM','createIdentifier','origin','combineLatest','contains','syncEditingCollabCursor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','type','getViewport','Rect','getLocalCacheKey','function','triggerDblclick','defs','YUUMI_ALL_TABLES_IS_INVALID','clearInterval','_onCursorUpdate','YUUMI_UNABLE_LOAD_URL','_transformService','Vector2','getOffsetConfig','transformMutationsWithChangeset','_toggleOffline','data','runId','ALREADY_EXISTS','transformIMECache','on-line-icon','subunit','Unknown\x20user','send','MessageType','10MYuOMB','UPDATE_CURSOR','UniverCollaborationClientUIPlugin','ISocketService','MemberService','replaceState','DEFAULT_WS_SESSION_TICKET_URL','bottom','ILocalStorageService','ILocalCacheService','getAncestorScale','DocSkeletonManagerService','makeDirty','createSocket','_backgroundColor','_getSheetObject','sheetID','addEventListener','use','undoState','_initResize','mapTo','CommandType','CollaborationController','http://www.w3.org/2000/svg','transformMutation','has','UniverInstanceType','collabStatus.offline','entries','_updateLocalCursor','DesktopCollaborationStatusDisplayController','SOCKET_FAILED_RETRY','NodePositionConvertToRectRange','_docClipboardService','48TSYTAy','994255CeebHl','href','_registerDependencies','TEXT','collaboration-client-ui.config','getActiveSheet','fromEvent','takeUntil','INVALID_INVITE_CODE','DataLoaderService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','266942lliLHQ','handleIRemoveRow','collabStatus.conflict','set','loadOfflineData','RevisionService','_logService','error','_urlService','getSheetBySheetId','Module','stringify','with','DeleteRangeMoveLeftCommandId','urlChange$','show','range','_saveCache','_cursorInfo$','IURLService','sessionStatus$','max','selections','_imageIoService','getUnitId','INotificationService','random','onMouseMove','closePath','USER_NOT_INVITED_CODE','_context','cursorInfo','_saveTaskMap','FromArray','160396lXIfAs','filter','unitId','Optional','round','toRgbString','permission.content','jiqing.500','671QMLmTL','_hovered','transform','font','clipPath','_handleEvent','DOC_RANGE_TYPE','CollaborationSocketService','_transformPreviousActiveRange','Shape','beginPath','PERMISSION_DENIED','startRow','off-line-icon','YUUMI_TABLE_NOT_FOUND_IN_UNIT','replace','startsWith','ITransformService','_clearOtherTimers','_range','handleInsertCol','_setupBeforeClosingHandler','_removeClearOtherTimer','_collabCursorController','_initEvent','_initStatusListener','Error','rgba(255,\x20255,\x20255,\x200.01)','CollaborationEvent','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','INVITE_CODE_HAS_BEEN_UES','restore','asObservable','_heartbeatTimer','LICENSE_IMPORT_SIZE_EXCEEDED','location','1em','m1Prime','Warning','disposeWithMe','add','Injector','SetWorksheetActivateCommand','_beforeCloseService','handleInsertRangeMoveRight','ISnapshotServerService','UNRECOGNIZED','fill','replaceDocRanges','values','red.300','_drawTextRange','registerDependencies','SYNCED','getUniverSheetInstance','collab-client.tooltip.reconnect','_colorIndex','_unitOnClients','_docTransformStateCacheService','ThemeService','_draw','getFocusedUnit','_registerRenderDependencies','ONLINE','onPointerLeave$','setAlpha','getStateCache','getMember','url(#off-line-icon_clip0_910_343)','Disposable','_localStorageService','pipe','_initStatusComponent','toStringTag','PENDING','_configService','EMAIL_VERIFY_CODE_MISMATCH','_entities','lineTo','_anchorDot','moveTo','_render','_shapes','DocStateChangeManagerService','0\x200\x2017\x2016','IConfigService','generateRandomId','path','_localeService','fillText','white','backgroundColor','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','OFFLINE','CollaborationUIEventId','_collabCursorState$','requireSession','_updateCollabCursors','displayName','clsx','_init','CONFLICT','delete','color','PY_RUNTIME_SCRIPT_ERROR','shareReplay','off-line-icon_clip0_910_343','_syncEditingCollabCursorService','Inject','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initDependencies','_docTransformSelectionsService','DocIMEInputManagerService','_online','unload','getCollabEntity$','YUUMI_ASYNCIO_CANCELLED','IUIPartsService','_transformHistoryAndStateStack','mask','_hideTimer','serializeRangeWithSheet','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getSheetId','disposeUnit','ColorKit','_scene','IRenderManagerService','YUUMI_NO_CUBOID_FOR_QUESTION','DeleteRangeMoveUpCommandId','_removeCollabCursors','CollaborationSessionService','imageSourceType','UnitStatus','_eventUnsubscribe','attrs','DocSelectionManagerService','APPLY_NON_SEQUENTIAL_REVISION','debounce','YUUMI_AI_RUN_FAILED','_startSheetCollabCursor','arc','key','evenodd','icon','_updateURLWithCurrentState','saveTaskMap','HTTPService','TEXT_RANGE_LAYER_INDEX','unit','onRendered','_collaborationUIEventService','SheetCollabCursorShape','LICENSE_DISTRO_REJECTED','getUndoRedoMutationParamsCache','univer-flex\x20univer-items-center','_getMergeRange','startColumn','USERS_LEAVE','_toggleOnline','InsertColCommandId','_univerInstanceService','jsx','assignAColorForMemberID','svg','unitID','selection','NO_OTHER_CLIENTS_EDITING','roomMembers','map','ICommandService','setParam','CHANGESET_REVISION_CONFILICT','APPLY_REJECT','skeleton','21RjTyQF','onCommandExecuted','green.600','TRANSFORM_CHANGE_OBSERVABLE_TYPE','isActive','InsertRangeMoveDownCommandId','subscribeEvent','flatMap','UNAUTHENTICATED','handleDeleteRangeMoveUp','registerRefRange','NOT_COLLAB','getColorFromTheme','Plugin','text','split','_docSkeletonManagerService','_cursors','_status$','dispose$','forEach','ticket','_revisionService','LocaleService','push','currentSkeleton$','width','DisposableCollection','_labelPosition','OffLineIcon','sheetId','_themeService','find','isEditing','getColor','isTransformMutationFailure','getTypeOfUnitDisposed$','_entityInit$','hovered','_send','_transformUndoRedoStack','SessionStatus','handleInsertRangeMoveDown','forwardRef','actions','deepClone','_refreshCollabCursors','setUndoRedoMutationParamsCache','substring','colorChannel1','from','IRemoteInstanceService','RichTextEditingMutation','_handleJoinEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','handleInsertRow','_initEntityListener','searchParams','unsubscribe','_collaborationController','_dataLoaderService','post','ranges','mergeOverrideWithDependencies','className','M0\x200H16V16H0z','addHandlerCallback','height','textRanges','redoState','InsertRowCommandId','useRef','useCallback','IDocClipboardService','_getSaveTimeout','_handleHeartbeatEvent','SHEET_VIEWPORT_KEY','univer-mr-2\x20univer-flex\x20univer-text-xl','_sheetSkeletonManagerService','_refRangeService','DependentOn','collaboration.single-unit.warning','assign','RegularPolygon','WebBrowserSingleActiveUnitService','top','_uiPartsService','cursorInfo$','_drawRectRange'];_0x5245=function(){return _0x151368;};return _0x5245();}let Z=class{constructor(_0x2a47d6,_0x3d772d){const _0x25f66f=_0x5586cb;this[_0x25f66f(0x277)]=_0x2a47d6,this[_0x25f66f(0xb4)]=_0x3d772d;}[_0x5586cb(0x89)](_0x33dccf){const _0x24cb01=_0x5586cb;var _0x284937;const _0x5c6007=this[_0x24cb01(0x277)]['get'](Y[_0x24cb01(0x1a3)]),_0x162536=(_0x284937=_0x5c6007['getDocRanges']())!=null?_0x284937:[];if(_0x162536[_0x24cb01(0x99)]===0x0)return;const _0x482f01=_0x33dccf[_0x24cb01(0x1c0)],_0x2be960=[{'id':_0x24cb01(0x278),'params':{'unitId':_0x482f01,'actions':null,'textRanges':_0x162536}}],_0x566139=this[_0x24cb01(0xb4)][_0x24cb01(0xb7)](_0x33dccf,_0x2be960);if(!m['isTransformMutationsWithChangesetSuccess'](_0x566139))throw _0x566139[_0x24cb01(0xf8)];const _0x5e36c2=_0x566139[_0x24cb01(0x252)][0x0][_0x24cb01(0x2ac)][_0x24cb01(0x20e)];Array[_0x24cb01(0x26f)](_0x5e36c2)&&_0x5e36c2[_0x24cb01(0x99)]&&_0x5c6007[_0x24cb01(0x14b)](_0x5e36c2,{'unitId':_0x482f01,'subUnitId':_0x482f01},!0x1);}};Z=Wt([Ne(0x0,a[_0x5586cb(0x187)](a['Injector'])),Ne(0x1,m[_0x5586cb(0x12c)])],Z);var Vt=Object[_0x5586cb(0x84)],Xt=(_0xe22c71,_0x1790ad,_0x51ddac,_0x48f9e3)=>{const _0x25eff5=_0x5586cb;for(var _0x11b1fb=_0x48f9e3>0x1?void 0x0:_0x48f9e3?Vt(_0x1790ad,_0x51ddac):_0x1790ad,_0x1cbedf=_0xe22c71[_0x25eff5(0x99)]-0x1,_0x44f946;_0x1cbedf>=0x0;_0x1cbedf--)(_0x44f946=_0xe22c71[_0x1cbedf])&&(_0x11b1fb=_0x44f946(_0x11b1fb)||_0x11b1fb);return _0x11b1fb;},N=(_0x3e4183,_0x2ab3eb)=>(_0x224b82,_0x27e3a9)=>_0x2ab3eb(_0x224b82,_0x27e3a9,_0x3e4183);let Q=class extends a['Disposable']{constructor(_0x1b89fd,_0x1f1937,_0x37f529,_0x505e78,_0x11c8df,_0x40724f,_0x499461,_0x2362fc){const _0x1a20ad=_0x5586cb;super(),h(this,_0x1a20ad(0x1dc),new d[(_0x1a20ad(0x2dc))](u[_0x1a20ad(0x2f1)][_0x1a20ad(0x1d5)])),(this[_0x1a20ad(0xa0)]=_0x1b89fd,this[_0x1a20ad(0x205)]=_0x1f1937,this[_0x1a20ad(0x2aa)]=_0x37f529,this[_0x1a20ad(0x155)]=_0x505e78,this[_0x1a20ad(0x18a)]=_0x11c8df,this[_0x1a20ad(0x28c)]=_0x40724f,this['_messageService']=_0x499461,this[_0x1a20ad(0x173)]=_0x2362fc,this[_0x1a20ad(0x202)]());}[_0x5586cb(0x202)](){const _0x4c4bc2=_0x5586cb;this['disposeWithMe'](this[_0x4c4bc2(0x205)]['entityInit$'][_0x4c4bc2(0x2a2)](_0x5236ac=>{const _0x209913=_0x4c4bc2,_0x2d690a=this[_0x209913(0xa0)]['docStateChange$'][_0x209913(0x2a2)](_0x4ca924=>{const _0x2da835=_0x209913;if(_0x4ca924==null)return;const {unitId:_0x926f91,redoState:_0x40d85f,commandId:_0x333d88}=_0x4ca924;if(_0x926f91!==_0x5236ac[_0x2da835(0x1c0)])return;const _0x174786={'id':_0x333d88,'type':a[_0x2da835(0xd8)][_0x2da835(0x27c)],'params':{'unitId':_0x926f91,'actions':_0x40d85f[_0x2da835(0x1f6)],'textRanges':null}};_0x5236ac[_0x2da835(0x291)](_0x174786);});if(_0x5236ac[_0x209913(0x142)](_0x2d690a),_0x5236ac instanceof u[_0x209913(0x2ce)]){const _0x60406c={'onTransformIME':_0x515a55=>this['_docTransformIMECacheService'][_0x209913(0xbc)](_0x515a55),'onTransformState':_0x546e13=>this[_0x209913(0x155)][_0x209913(0x235)](_0x546e13),'onTransformSelections':_0x1d5ddf=>this[_0x209913(0x18a)]['transformSelections'](_0x1d5ddf),'onSyncEditingCollabCursor':_0x188249=>this[_0x209913(0x28c)]['syncEditingCollabCursor'](_0x188249),'onTransformRemoteChangesetByIMECache':_0x11c538=>this[_0x209913(0x2aa)][_0x209913(0x2e1)](_0x11c538),'onTransformRemoteChangesetByStateCache':_0x1cbaf8=>this[_0x209913(0x155)][_0x209913(0x2e1)](_0x1cbaf8)};_0x5236ac[_0x209913(0x20c)](_0x60406c);}}));}};Q=Xt([N(0x0,a[_0x5586cb(0x187)](E[_0x5586cb(0x16e)])),N(0x1,a[_0x5586cb(0x187)](u[_0x5586cb(0xd9)])),N(0x2,a[_0x5586cb(0x187)](z)),N(0x3,a[_0x5586cb(0x187)](J)),N(0x4,a[_0x5586cb(0x187)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,O[_0x5586cb(0x2c9)]),N(0x7,a[_0x5586cb(0x187)](a[_0x5586cb(0x1e1)]))],Q);var Gt=Object[_0x5586cb(0x84)],Kt=(_0x17525d,_0x464302,_0x39e601,_0x2e9fc7)=>{for(var _0x4b41fd=_0x2e9fc7>0x1?void 0x0:_0x2e9fc7?Gt(_0x464302,_0x39e601):_0x464302,_0x4c8bae=_0x17525d['length']-0x1,_0x37c91f;_0x4c8bae>=0x0;_0x4c8bae--)(_0x37c91f=_0x17525d[_0x4c8bae])&&(_0x4b41fd=_0x37c91f(_0x4b41fd)||_0x4b41fd);return _0x4b41fd;},_e=(_0xa022ec,_0x402e2a)=>(_0x598f49,_0x5627a3)=>_0x402e2a(_0x598f49,_0x5627a3,_0xa022ec);let ge=class extends a[_0x5586cb(0x160)]{constructor(_0x395a1c,_0x60faa4,_0x481265){const _0x57c40e=_0x5586cb;super(),h(this,_0x57c40e(0x2a9),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x57c40e(0x26e),!0x1),(this[_0x57c40e(0x166)]=_0x395a1c,this[_0x57c40e(0x161)]=_0x60faa4,this[_0x57c40e(0x1e0)]=_0x481265);}['disableLocalCache'](){const _0x2b78ab=_0x5586cb;this[_0x2b78ab(0x26e)]=!0x0;}['enableLocalCache'](){const _0x3dc0c9=_0x5586cb;this[_0x3dc0c9(0x26e)]=!0x1;}get[_0x5586cb(0x1ad)](){const _0x54a707=_0x5586cb;return this[_0x54a707(0x111)];}[_0x5586cb(0x24a)](){const _0xda1a9e=_0x5586cb;this[_0xda1a9e(0x8d)]()['then'](()=>super['dispose']());}async[_0x5586cb(0xf5)](_0x37e4e9){const _0x57a302=_0x5586cb;return this[_0x57a302(0x26e)]?null:this['_localStorageService'][_0x57a302(0x282)](u[_0x57a302(0xac)](_0x37e4e9));}async[_0x5586cb(0x94)](_0x469252,_0x11c7fa){const _0x58a87c=_0x5586cb;return!!this[_0x58a87c(0x161)][_0x58a87c(0x24c)](_0x469252,_0x11c7fa);}[_0x5586cb(0x2de)](_0xdb82af,_0x370dfe,_0x480650,_0x63927c){const _0x283329=_0x5586cb,_0x2a7a2b=this[_0x283329(0x1e0)][_0x283329(0x25b)](_0xdb82af);this[_0x283329(0x2a9)]['set'](_0xdb82af,{'unitID':_0xdb82af,'type':_0x370dfe,'awaitingChangeset':_0x480650,'mutations':_0x63927c,'rev':_0x2a7a2b}),this['_saveTaskMap']['has'](_0xdb82af)||this[_0x283329(0x2c6)](_0xdb82af);}[_0x5586cb(0x2c6)](_0x6d45cd){const _0x47c70c=_0x5586cb,_0x1b7425=this[_0x47c70c(0x214)]();_0x1b7425===0x0?this[_0x47c70c(0x102)](_0x6d45cd):this[_0x47c70c(0x111)][_0x47c70c(0xf4)](_0x6d45cd,setTimeout(()=>this[_0x47c70c(0x102)](_0x6d45cd),_0x1b7425));}[_0x5586cb(0x214)](){var _0x336a18;return(_0x336a18=this['_configService']['getConfig'](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x336a18:u['LOCAL_CACHE_INTERVAL'];}[_0x5586cb(0x102)](_0x528826){const _0x2e0454=_0x5586cb,_0x491243=this[_0x2e0454(0x111)][_0x2e0454(0x2ec)](_0x528826);return _0x491243!==void 0x0&&window[_0x2e0454(0x2d4)](_0x491243),this['_localStorageService'][_0x2e0454(0x24c)](u[_0x2e0454(0xac)](_0x528826),this[_0x2e0454(0x2a9)]['get'](_0x528826))[_0x2e0454(0x9d)](()=>this[_0x2e0454(0x111)][_0x2e0454(0x181)](_0x528826));}async['exhaustSavingTask'](){const _0x23c257=_0x5586cb,_0x70182a=[];this[_0x23c257(0x111)][_0x23c257(0x1de)]((_0x2000cc,_0x2cb5c)=>{const _0x27140d=_0x23c257;window[_0x27140d(0x2d4)](_0x2000cc),_0x70182a['push'](this['_saveCache'](_0x2cb5c)[_0x27140d(0x9d)](()=>{const _0x3dca1b=_0x27140d;this[_0x3dca1b(0x111)]['delete'](_0x2cb5c);}));}),await Promise[_0x23c257(0x2b6)](_0x70182a);}};ge=Kt([_e(0x0,a[_0x5586cb(0x170)]),_e(0x1,a[_0x5586cb(0xca)]),_e(0x2,a[_0x5586cb(0x187)](m[_0x5586cb(0xf6)]))],ge);class xe extends a['RxDisposable']{constructor(){const _0x15e161=_0x5586cb;super(),h(this,_0x15e161(0xff)),this[_0x15e161(0xff)]=d[_0x15e161(0xec)](window,'popstate')[_0x15e161(0x162)](d[_0x15e161(0xed)](this[_0x15e161(0x1dd)]),d[_0x15e161(0x184)](0x1),d[_0x15e161(0xd7)](void 0x0));}[_0x5586cb(0x1c6)](_0x3680e7,_0x51186a,_0xbb4336=!0x1){const _0x2153c1=_0x5586cb,_0x1580f2=new URL(window[_0x2153c1(0x13e)][_0x2153c1(0xe7)]);_0x1580f2['searchParams'][_0x2153c1(0xf4)](_0x3680e7,_0x51186a),_0xbb4336?window[_0x2153c1(0x271)][_0x2153c1(0xc7)]('','',_0x1580f2[_0x2153c1(0x9b)]()):window[_0x2153c1(0x271)]['pushState']('','',_0x1580f2['toString']());}['removeParam'](_0x30d4b3,_0x4b8970=!0x1){const _0x2081ed=_0x5586cb,_0x547416=new URL(window['location'][_0x2081ed(0xe7)]);_0x547416[_0x2081ed(0x203)]['delete'](_0x30d4b3),_0x4b8970?window[_0x2081ed(0x271)][_0x2081ed(0xc7)]('','',_0x547416[_0x2081ed(0x9b)]()):window['history'][_0x2081ed(0x2bb)]('','',_0x547416[_0x2081ed(0x9b)]());}[_0x5586cb(0x236)](_0x39dd79){const _0x1c5ff0=_0x5586cb;var _0x38404b;return(_0x38404b=new URL(window['location'][_0x1c5ff0(0xe7)])[_0x1c5ff0(0x203)][_0x1c5ff0(0x2ec)](_0x39dd79))!=null?_0x38404b:void 0x0;}}var qt=Object[_0x5586cb(0x2d3)],zt=Object[_0x5586cb(0x84)],Jt=(_0x15ffc5,_0x3ae444,_0x5da298)=>_0x3ae444 in _0x15ffc5?qt(_0x15ffc5,_0x3ae444,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5da298}):_0x15ffc5[_0x3ae444]=_0x5da298,Zt=(_0x45242f,_0x4f3a36,_0x2f20a,_0x18ef69)=>{for(var _0x165855=_0x18ef69>0x1?void 0x0:_0x18ef69?zt(_0x4f3a36,_0x2f20a):_0x4f3a36,_0x3b75fa=_0x45242f['length']-0x1,_0x5a8251;_0x3b75fa>=0x0;_0x3b75fa--)(_0x5a8251=_0x45242f[_0x3b75fa])&&(_0x165855=_0x5a8251(_0x165855)||_0x165855);return _0x165855;},he=(_0x16e1d3,_0x10ad38)=>(_0x57fa86,_0x495523)=>_0x10ad38(_0x57fa86,_0x495523,_0x16e1d3),Qt=(_0xd10e14,_0x233633,_0x3096b3)=>Jt(_0xd10e14,_0x233633+'',_0x3096b3);const es=_0x5586cb(0x177);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5586cb(0x1d7)]{constructor(_0x307e2f=Ue,_0x5cf972,_0x408adf,_0x3516f9){const _0x4cbc91=_0x5586cb;super(),this[_0x4cbc91(0x2b5)]=_0x307e2f,this[_0x4cbc91(0x240)]=_0x5cf972,this['_injector']=_0x408adf,this[_0x4cbc91(0x166)]=_0x3516f9;const {..._0x3f9d68}=a['merge']({},Ue,this['_config']);this[_0x4cbc91(0x166)][_0x4cbc91(0x2ad)]($t,_0x3f9d68);}['onStarting'](){const _0x47133c=_0x5586cb;this[_0x47133c(0xe8)](),this[_0x47133c(0x189)]();}[_0x5586cb(0x1b1)](){this['_registerRenderDependencies']();}[_0x5586cb(0xe8)](){const _0x52b32d=_0x5586cb;var _0x32a21c;const _0x4ef69=[[me],[Z],[z],[J],[Ce],[Ee,{'useClass':xe}],[G[_0x52b32d(0xc5)],{'useClass':G[_0x52b32d(0x255)]}],[u[_0x52b32d(0xcb)],{'useClass':ge}],[exports[_0x52b32d(0xe1)]],[Q],[q],[x],[de],[exports[_0x52b32d(0x2ea)]]];a[_0x52b32d(0x14f)](this[_0x52b32d(0x277)],a[_0x52b32d(0x209)](_0x4ef69,(_0x32a21c=this[_0x52b32d(0x2b5)])==null?void 0x0:_0x32a21c['override']));}[_0x5586cb(0x159)](){const _0x3330dd=_0x5586cb;this[_0x3330dd(0x142)](this[_0x3330dd(0x240)][_0x3330dd(0x2e6)](a[_0x3330dd(0xdd)][_0x3330dd(0x225)],[fe])),this[_0x3330dd(0x142)](this['_renderManagerService']['registerRenderModule'](a[_0x3330dd(0xdd)]['UNIVER_SHEET'],[ve]));}[_0x5586cb(0x189)](){const _0x5a7dce=_0x5586cb;a['touchDependencies'](this['_injector'],[[x],[exports[_0x5a7dce(0xe1)]],[Q],[q],[exports[_0x5a7dce(0x2ea)]]]);}},Qt(exports[_0x5586cb(0xc4)],_0x5586cb(0x90),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x5586cb(0x21a)](u[_0x5586cb(0x234)]),he(0x1,p[_0x5586cb(0x19a)]),he(0x2,a[_0x5586cb(0x187)](a[_0x5586cb(0x144)])),he(0x3,a['IConfigService'])],exports[_0x5586cb(0xc4)]);var ts=Object[_0x5586cb(0x84)],ss=(_0x370d13,_0xbcf573,_0x410955,_0x5635d6)=>{for(var _0x84a8ac=_0x5635d6>0x1?void 0x0:_0x5635d6?ts(_0xbcf573,_0x410955):_0xbcf573,_0x5c8bb8=_0x370d13['length']-0x1,_0x3d0a8f;_0x5c8bb8>=0x0;_0x5c8bb8--)(_0x3d0a8f=_0x370d13[_0x5c8bb8])&&(_0x84a8ac=_0x3d0a8f(_0x84a8ac)||_0x84a8ac);return _0x84a8ac;},H=(_0x59c783,_0x3134fa)=>(_0x360bc8,_0x446510)=>_0x3134fa(_0x360bc8,_0x446510,_0x59c783);exports[_0x5586cb(0x264)]=class extends u[_0x5586cb(0x122)]{constructor(_0x3ea09f,_0xf147bb,_0x4fc84a,_0x4cf62a,_0x497a9e){super(_0x3ea09f,_0xf147bb,_0x4fc84a,_0x4cf62a,_0x497a9e);}async[_0x5586cb(0xcf)](_0x5ea7d2){const _0x1ba11c=_0x5586cb,_0x14c86a=await this['_getSessionTicket'](),_0xc93073=this[_0x1ba11c(0x7c)](_0x5ea7d2,_0x14c86a);return this[_0x1ba11c(0x265)](_0xc93073);}['_createSocketURL'](_0x1c51d4,_0xc709f){const _0x472933=_0x5586cb,_0x3f8195=typeof window>'u'?new URL(_0x1c51d4):new URL(_0x1c51d4,window['location'][_0x472933(0xa4)]);_0x3f8195[_0x472933(0x203)][_0x472933(0xf4)](_0x472933(0x260),_0xc709f);const _0x2b2d3b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x472933(0x13e)][_0x472933(0x2b0)]);return _0x2b2d3b['get'](_0x472933(0xba))&&_0x3f8195['searchParams']['set'](_0x472933(0xba),_0x2b2d3b[_0x472933(0x2ec)](_0x472933(0xba))),_0x3f8195[_0x472933(0x9b)]();}async[_0x5586cb(0x24e)](){const _0x48a471=_0x5586cb;var _0x4cba83,_0x22aa8e,_0x92da72;const _0x2dda6c=this[_0x48a471(0x166)][_0x48a471(0x26b)](u[_0x48a471(0xf0)]),_0x19e7fb=(_0x4cba83=_0x2dda6c==null?void 0x0:_0x2dda6c['wsSessionTicketUrl'])!=null?_0x4cba83:u[_0x48a471(0xc8)];return(_0x92da72=(_0x22aa8e=(await this[_0x48a471(0x2e0)]['get'](_0x19e7fb,{'headers':{'Content-Type':'application/json'}}))[_0x48a471(0x24b)])==null?void 0x0:_0x22aa8e[_0x48a471(0x1df)])!=null?_0x92da72:'';}},exports['BrowserCollaborationSocketService']=ss([H(0x0,a[_0x5586cb(0x187)](a[_0x5586cb(0x144)])),H(0x1,a[_0x5586cb(0x187)](G['HTTPService'])),H(0x2,a['IConfigService']),H(0x3,a['ILogService']),H(0x4,m[_0x5586cb(0x148)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x5586cb(0x29c);class is extends a[_0x5586cb(0x160)]{constructor(){const _0x1ea9a8=_0x5586cb;super(),h(this,'_id',a[_0x1ea9a8(0x171)]()),h(this,_0x1ea9a8(0x7d),new Set()),h(this,_0x1ea9a8(0x154),new Map()),h(this,_0x1ea9a8(0x13c),null),h(this,_0x1ea9a8(0x12d),new Map()),h(this,_0x1ea9a8(0x81),new Map()),this[_0x1ea9a8(0x17f)]();}[_0x5586cb(0x24a)](){const _0x54458e=_0x5586cb;super[_0x54458e(0x24a)](),this[_0x54458e(0x12d)][_0x54458e(0x1de)]((_0x36d442,_0x1a1e41)=>this[_0x54458e(0x131)](_0x1a1e41)),this[_0x54458e(0x13c)]&&window[_0x54458e(0xb1)](this[_0x54458e(0x13c)]);}[_0x5586cb(0x247)](_0x1c15ac){const _0x144db3=_0x5586cb;return this[_0x144db3(0x88)](_0x1c15ac)[_0x144db3(0x162)](d['distinctUntilChanged']());}[_0x5586cb(0x243)](_0x345bec){const _0x507f6b=_0x5586cb;this[_0x507f6b(0x7d)][_0x507f6b(0x242)]===0x0&&this[_0x507f6b(0x238)](),this['_selfUnitIDs'][_0x507f6b(0x143)](_0x345bec),this[_0x507f6b(0x1f1)]({'type':0x0,'memberID':this[_0x507f6b(0x25a)],'unitIDs':[_0x345bec],'isForwarded':!0x1});}[_0x5586cb(0x197)](_0x127312){const _0x5917e5=_0x5586cb;this[_0x5917e5(0x7d)]['delete'](_0x127312),this[_0x5917e5(0x7d)]['size']===0x0&&this[_0x5917e5(0x13c)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x5586cb(0x17f)](){const _0x5c4b2e=_0x5586cb;this[_0x5c4b2e(0x142)](a[_0x5c4b2e(0x9a)](d[_0x5c4b2e(0xec)](window,_0x5c4b2e(0x2cf))[_0x5c4b2e(0x2a2)](_0x54dfb3=>{const _0xe4c05a=_0x5c4b2e;if(_0x54dfb3[_0xe4c05a(0x1a9)]!==Le||!_0x54dfb3[_0xe4c05a(0x231)])return;const _0x4c3f68=JSON['parse'](_0x54dfb3[_0xe4c05a(0x231)]);this['_handleEvent'](_0x4c3f68);}))),window[_0x5c4b2e(0xd3)](_0x5c4b2e(0x18d),()=>this[_0x5c4b2e(0x1f1)]({'type':0x1,'memberID':this[_0x5c4b2e(0x25a)],'unitIDs':Array[_0x5c4b2e(0x1fc)](this[_0x5c4b2e(0x7d)])}));}[_0x5586cb(0x120)](_0x2b5f72){const _0x13cf4c=_0x5586cb;switch(_0x2b5f72[_0x13cf4c(0xa9)]){case 0x0:this['_handleJoinEvent'](_0x2b5f72);break;case 0x1:this['_handleLeaveEvent'](_0x2b5f72);break;case 0x2:this[_0x13cf4c(0x215)](_0x2b5f72);break;}}[_0x5586cb(0x1ff)](_0x292d24){const _0x29a231=_0x5586cb,{unitIDs:_0x104d5d,memberID:_0x2d76db,isForwarded:_0x14ffeb}=_0x292d24;_0x104d5d['forEach'](_0x980b88=>{const _0xd60571=_0x13cb;if(!_0x14ffeb&&this[_0xd60571(0x154)]['has'](_0x980b88)&&this[_0xd60571(0x88)](_0x980b88)['next'](u['UnitStatus'][_0xd60571(0x2dd)]),!this[_0xd60571(0x154)][_0xd60571(0xdc)](_0x980b88)||!this[_0xd60571(0x154)][_0xd60571(0x2ec)](_0x980b88)['has'](_0x2d76db)){const _0x152ab6=this[_0xd60571(0x154)]['get'](_0x980b88)||new Set();_0x152ab6[_0xd60571(0x143)](_0x2d76db),this[_0xd60571(0x154)][_0xd60571(0xf4)](_0x980b88,_0x152ab6),this[_0xd60571(0x2da)](_0x2d76db);}}),_0x14ffeb||this['_send']({'type':0x0,'memberID':this[_0x29a231(0x25a)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x5586cb(0x2da)](_0x5b6759){const _0x21eedf=_0x5586cb;this['_removeClearOtherTimer'](_0x5b6759);const _0x26fd9f=window[_0x21eedf(0x2d8)](()=>{const _0x58194e=_0x21eedf;this[_0x58194e(0x154)][_0x58194e(0x1de)](_0x95d791=>{const _0x43296b=_0x58194e;_0x95d791[_0x43296b(0x181)](_0x5b6759);});},Me*0x2);this[_0x21eedf(0x12d)][_0x21eedf(0xf4)](_0x5b6759,_0x26fd9f);}[_0x5586cb(0x131)](_0x3d5946){const _0x1393ae=_0x5586cb;if(this[_0x1393ae(0x12d)]['has'](_0x3d5946)){const _0x5af238=this[_0x1393ae(0x12d)][_0x1393ae(0x2ec)](_0x3d5946);_0x5af238&&window[_0x1393ae(0x2d4)](_0x5af238),this['_clearOtherTimers']['set'](_0x3d5946,null);}}['_handleLeaveEvent'](_0x4cc759){const _0x1068d2=_0x5586cb,{memberID:_0x508592,unitIDs:_0x1bd086}=_0x4cc759;_0x1bd086[_0x1068d2(0x1de)](_0x556d49=>{const _0x13d063=_0x1068d2;var _0x2420bd;const _0x2174e4=this[_0x13d063(0x154)]['get'](_0x556d49);_0x2174e4&&(_0x2174e4[_0x13d063(0x181)](_0x508592),(_0x2420bd=this['_ensureSubject'](_0x556d49))==null||_0x2420bd[_0x13d063(0x229)](_0x2174e4[_0x13d063(0x242)]===0x0?u['UnitStatus'][_0x13d063(0x1c2)]:u[_0x13d063(0x1a0)][_0x13d063(0x2dd)]));}),this[_0x1068d2(0x131)](_0x508592);}[_0x5586cb(0x215)](_0x3d6772){const _0x1fa76f=_0x5586cb;this[_0x1fa76f(0x2da)](_0x3d6772['memberID']);}['_send'](_0x48bbf0){const _0x12f7df=_0x5586cb;localStorage[_0x12f7df(0x24c)](Le,JSON['stringify'](_0x48bbf0));}[_0x5586cb(0x238)](){const _0xc9d8fe=_0x5586cb;this[_0xc9d8fe(0x13c)]=window['setInterval'](()=>{const _0x99fd70=_0xc9d8fe;this[_0x99fd70(0x1f1)]({'type':0x2,'memberID':this[_0x99fd70(0x25a)]});},Me);}[_0x5586cb(0x88)](_0x462856){const _0x23bf51=_0x5586cb;return this[_0x23bf51(0x81)][_0x23bf51(0xdc)](_0x462856)||this['_unitStatus'][_0x23bf51(0xf4)](_0x462856,new d[(_0x23bf51(0x2dc))](u['UnitStatus'][_0x23bf51(0x1c2)])),this[_0x23bf51(0x81)]['get'](_0x462856);}}var Be=(_0x5bcc86=>(_0x5bcc86[_0x5bcc86[_0x5586cb(0x26a)]=0x0]='UNDEFINED',_0x5bcc86[_0x5bcc86['OK']=0x1]='OK',_0x5bcc86[_0x5bcc86['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x5bcc86[_0x5bcc86[_0x5586cb(0x126)]=0x3]='PERMISSION_DENIED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x2b1)]=0x4]=_0x5586cb(0x2b1),_0x5bcc86[_0x5bcc86[_0x5586cb(0x1d2)]=0x5]=_0x5586cb(0x1d2),_0x5bcc86[_0x5bcc86[_0x5586cb(0xbb)]=0x6]='ALREADY_EXISTS',_0x5bcc86[_0x5bcc86['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x5bcc86[_0x5bcc86[_0x5586cb(0x272)]=0x8]=_0x5586cb(0x272),_0x5bcc86[_0x5bcc86['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5bcc86[_0x5bcc86['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x5bcc86[_0x5bcc86['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x5bcc86[_0x5bcc86['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x167)]=0xd]=_0x5586cb(0x167),_0x5bcc86[_0x5bcc86[_0x5586cb(0x138)]=0xe]=_0x5586cb(0x138),_0x5bcc86[_0x5bcc86[_0x5586cb(0x1c7)]=0x1389]=_0x5586cb(0x1c7),_0x5bcc86[_0x5bcc86['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x5586cb(0x27b),_0x5bcc86[_0x5bcc86['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x276)]=0x1773]=_0x5586cb(0x276),_0x5bcc86[_0x5bcc86['APPLY_REJECT']=0x1b59]=_0x5586cb(0x1c8),_0x5bcc86[_0x5bcc86['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5586cb(0x1a4),_0x5bcc86[_0x5bcc86['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5bcc86[_0x5bcc86['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x5586cb(0x290),_0x5bcc86[_0x5bcc86[_0x5586cb(0x266)]=0x1b5d]=_0x5586cb(0x266),_0x5bcc86[_0x5bcc86[_0x5586cb(0x29f)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5bcc86[_0x5bcc86['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5bcc86[_0x5bcc86['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5586cb(0xa1),_0x5bcc86[_0x5bcc86[_0x5586cb(0x13d)]=0x232b]=_0x5586cb(0x13d),_0x5bcc86[_0x5bcc86[_0x5586cb(0x2ef)]=0x232c]=_0x5586cb(0x2ef),_0x5bcc86[_0x5bcc86[_0x5586cb(0x1b4)]=0x232d]=_0x5586cb(0x1b4),_0x5bcc86[_0x5bcc86[_0x5586cb(0xb3)]=0x2711]=_0x5586cb(0xb3),_0x5bcc86[_0x5bcc86['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5bcc86[_0x5bcc86[_0x5586cb(0x2d5)]=0x2713]=_0x5586cb(0x2d5),_0x5bcc86[_0x5bcc86[_0x5586cb(0x200)]=0x2714]=_0x5586cb(0x200),_0x5bcc86[_0x5bcc86[_0x5586cb(0x19b)]=0x271a]=_0x5586cb(0x19b),_0x5bcc86[_0x5bcc86[_0x5586cb(0x18f)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x129)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x5bcc86[_0x5bcc86[_0x5586cb(0xb0)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5bcc86[_0x5bcc86['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x5586cb(0x8c),_0x5bcc86[_0x5bcc86[_0x5586cb(0x1a6)]=0x271f]=_0x5586cb(0x1a6),_0x5bcc86[_0x5bcc86['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x5586cb(0x237),_0x5bcc86[_0x5bcc86[_0x5586cb(0x183)]=0x2af9]=_0x5586cb(0x183),_0x5bcc86[_0x5bcc86[_0x5586cb(0x139)]=0x2ee1]=_0x5586cb(0x139),_0x5bcc86[_0x5bcc86[_0x5586cb(0xee)]=0x2ee2]=_0x5586cb(0xee),_0x5bcc86[_0x5bcc86['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x5bcc86[_0x5bcc86[_0x5586cb(0x10e)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5bcc86[_0x5bcc86['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5bcc86[_0x5bcc86[_0x5586cb(0x7b)]=0x32c9]=_0x5586cb(0x7b),_0x5bcc86[_0x5bcc86['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5bcc86[_0x5bcc86[_0x5586cb(0x292)]=0x32cb]=_0x5586cb(0x292),_0x5bcc86[_0x5bcc86[_0x5586cb(0x149)]=-0x1]=_0x5586cb(0x149),_0x5bcc86))(Be||{}),ns=Object[_0x5586cb(0x84)],rs=(_0x5a87ec,_0x39272b,_0x1df097,_0x2ecfac)=>{const _0x29d84a=_0x5586cb;for(var _0x159235=_0x2ecfac>0x1?void 0x0:_0x2ecfac?ns(_0x39272b,_0x1df097):_0x39272b,_0x272408=_0x5a87ec[_0x29d84a(0x99)]-0x1,_0x36e3de;_0x272408>=0x0;_0x272408--)(_0x36e3de=_0x5a87ec[_0x272408])&&(_0x159235=_0x36e3de(_0x159235)||_0x159235);return _0x159235;},ue=(_0x5c6f3b,_0x8da3bd)=>(_0x466b5a,_0x5611e9)=>_0x8da3bd(_0x466b5a,_0x5611e9,_0x5c6f3b);exports[_0x5586cb(0x22a)]=class extends a[_0x5586cb(0x160)]{constructor(_0x640eb8,_0x1cb504,_0x308e6e){const _0xbc1440=_0x5586cb;super(),this[_0xbc1440(0x2a8)]=_0x640eb8,this[_0xbc1440(0x2e0)]=_0x1cb504,this['_configService']=_0x308e6e;}async[_0x5586cb(0x259)](_0x16b323,_0x37efc3,_0x491d70,..._0x337f9e){const _0x4a2ffb=_0x5586cb;var _0x207d65,_0x4c68e5,_0x26767c,_0x3bcdaa;const _0x42f086=this[_0x4a2ffb(0x2a8)][_0x4a2ffb(0x158)]();if(!_0x42f086)throw new Error(_0x4a2ffb(0x2cd));const _0x418b4d=((_0x207d65=this[_0x4a2ffb(0x166)][_0x4a2ffb(0x26b)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x207d65:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x16b323+_0x4a2ffb(0x2d7)+_0x37efc3,_0x45e61b=new URL(window[_0x4a2ffb(0x13e)][_0x4a2ffb(0xe7)]),_0x27900d={'scriptId':_0x16b323,'runId':(_0x4c68e5=_0x45e61b[_0x4a2ffb(0x203)][_0x4a2ffb(0x2ec)](_0x4a2ffb(0xba)))!=null?_0x4c68e5:'','function':_0x37efc3,'unitId':_0x42f086[_0x4a2ffb(0x109)](),'argsOfFunction':JSON[_0x4a2ffb(0xfc)](_0x337f9e),'invokeId':(_0x26767c=_0x491d70[_0x4a2ffb(0x2cb)])!=null?_0x26767c:'','executionId':(_0x3bcdaa=_0x491d70['executionId'])!=null?_0x3bcdaa:''};try{const _0x5e343a=await this[_0x4a2ffb(0x2e0)][_0x4a2ffb(0x207)](_0x418b4d,{'body':_0x27900d});return _0x5e343a[_0x4a2ffb(0x24b)]['error']&&_0x5e343a[_0x4a2ffb(0x24b)][_0x4a2ffb(0xf8)][_0x4a2ffb(0x2b4)]!==Be['OK']?_0x4a2ffb(0x275):_0x5e343a[_0x4a2ffb(0x24b)][_0x4a2ffb(0x294)];}catch{return'Failed';}}},exports[_0x5586cb(0x22a)]=rs([ue(0x0,a[_0x5586cb(0x270)]),ue(0x1,a[_0x5586cb(0x187)](G[_0x5586cb(0x1ae)])),ue(0x2,a[_0x5586cb(0x170)])],exports[_0x5586cb(0x22a)]),exports[_0x5586cb(0x104)]=Ee,exports[_0x5586cb(0x1b3)]=we,exports[_0x5586cb(0x21e)]=is,exports['WebURLService']=xe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x210e3f=_0x1e11;(function(_0x212ec2,_0x4eefd9){const _0x4e8918=_0x1e11,_0x5dc06d=_0x212ec2();while(!![]){try{const _0x40d2d4=parseInt(_0x4e8918(0x17e))/0x1*(parseInt(_0x4e8918(0x175))/0x2)+-parseInt(_0x4e8918(0x174))/0x3*(parseInt(_0x4e8918(0x184))/0x4)+parseInt(_0x4e8918(0x182))/0x5*(parseInt(_0x4e8918(0x17f))/0x6)+-parseInt(_0x4e8918(0x185))/0x7*(parseInt(_0x4e8918(0x171))/0x8)+parseInt(_0x4e8918(0x176))/0x9*(-parseInt(_0x4e8918(0x180))/0xa)+-parseInt(_0x4e8918(0x187))/0xb*(parseInt(_0x4e8918(0x17c))/0xc)+-parseInt(_0x4e8918(0x173))/0xd*(-parseInt(_0x4e8918(0x178))/0xe);if(_0x40d2d4===_0x4eefd9)break;else _0x5dc06d['push'](_0x5dc06d['shift']());}catch(_0x2bced7){_0x5dc06d['push'](_0x5dc06d['shift']());}}}(_0x2050,0x6e3c2));function _0x2050(){const _0x4a0cfb=['Edit\x20conflicts','56518IFpqyK','Local\x20file','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Collaboration\x20Conflict','48xAHWWL','Syncing\x20server\x20data...','2PmTXqo','60rSKHaK','2620CBbcLP','Connection\x20failed,\x20please\x20check\x20your\x20network.','268495rkDnoN','exports','140144aBUyMV','4762695Gdwlso','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1666115kpHDuY','Authentication\x20Error','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','8TUwYxS','Click\x20to\x20Reconnect','4303pyxFBC','9TmIABh','398270DsXbUR','14724HVtSZf'];_0x2050=function(){return _0x4a0cfb;};return _0x2050();}function _0x1e11(_0x3c36e,_0x158783){const _0x2050c4=_0x2050();return _0x1e11=function(_0x1e113b,_0x457ec5){_0x1e113b=_0x1e113b-0x16f;let _0x39952e=_0x2050c4[_0x1e113b];return _0x39952e;},_0x1e11(_0x3c36e,_0x158783);}const e={'collab-client':{'tooltip':{'reconnect':_0x210e3f(0x172)}},'collabStatus':{'fetchMiss':_0x210e3f(0x17d),'conflict':_0x210e3f(0x177),'notCollab':_0x210e3f(0x179),'synced':'Synced','syncing':'Syncing...','offline':_0x210e3f(0x170)},'session':{'connection-failed':_0x210e3f(0x181),'will-retry':_0x210e3f(0x17a),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x210e3f(0x17b),'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':_0x210e3f(0x188),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x210e3f(0x186)},'closeRoom':_0x210e3f(0x16f)},'auth':{'needGotoLoginAlert':_0x210e3f(0x189)}},o=e;module[_0x210e3f(0x183)]=o;
|