@univerjs-pro/collaboration-client-ui 0.8.1-nightly.202506151606 → 0.8.1-nightly.202506171607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1aa2ca=_0xf197;(function(_0x29baa8,_0x4ad8fa){const _0xf8a973=_0xf197,_0x85c992=_0x29baa8();while(!![]){try{const _0x1059b8=-parseInt(_0xf8a973(0x73))/0x1*(parseInt(_0xf8a973(0x75))/0x2)+-parseInt(_0xf8a973(0x7a))/0x3*(-parseInt(_0xf8a973(0x72))/0x4)+-parseInt(_0xf8a973(0x74))/0x5*(parseInt(_0xf8a973(0x7c))/0x6)+-parseInt(_0xf8a973(0x7b))/0x7+parseInt(_0xf8a973(0x6e))/0x8*(-parseInt(_0xf8a973(0x70))/0x9)+-parseInt(_0xf8a973(0x77))/0xa+parseInt(_0xf8a973(0x79))/0xb*(parseInt(_0xf8a973(0x6d))/0xc);if(_0x1059b8===_0x4ad8fa)break;else _0x85c992['push'](_0x85c992['shift']());}catch(_0x43e562){_0x85c992['push'](_0x85c992['shift']());}}}(_0x4dfd,0x6b6bf));function _0xf197(_0x502b18,_0x15d40d){const _0x4dfd66=_0x4dfd();return _0xf197=function(_0xf197eb,_0x93d4f5){_0xf197eb=_0xf197eb-0x6d;let _0xbaeaa9=_0x4dfd66[_0xf197eb];return _0xbaeaa9;},_0xf197(_0x502b18,_0x15d40d);}const t=require(_0x1aa2ca(0x6f)),e=require(_0x1aa2ca(0x7f));class c extends e[_0x1aa2ca(0x76)]{[_0x1aa2ca(0x71)](_0xed90f4,_0x2d0e6b,..._0x49f6f0){const _0x373d15=_0x1aa2ca;return this[_0x373d15(0x80)][_0x373d15(0x78)](t[_0x373d15(0x7e)])['runOnServer'](_0xed90f4,_0x2d0e6b,{},..._0x49f6f0);}}function _0x4dfd(){const _0x32ce70=['runOnServer','1793608zDIJFh','119517TcrLNX','55wDdyeK','14PGutoa','FUniver','432910YtRmWE','get','12868724ogaDub','3IpZZHX','2617797zvJqWE','166554PhBgiz','extend','RemoteUniscriptService','@univerjs/core/facade','_injector','24qqakVt','8gdBJWV','@univerjs-pro/collaboration-client-ui','7100469GqsIze'];_0x4dfd=function(){return _0x32ce70;};return _0x4dfd();}e[_0x1aa2ca(0x76)][_0x1aa2ca(0x7d)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4ba9c1=_0x167f;(function(_0x7552a5,_0x4881ff){const _0x3f4220=_0x167f,_0x3aee04=_0x7552a5();while(!![]){try{const _0x39bacf=-parseInt(_0x3f4220(0x13c))/0x1*(-parseInt(_0x3f4220(0x1a8))/0x2)+-parseInt(_0x3f4220(0x21e))/0x3*(-parseInt(_0x3f4220(0x17d))/0x4)+parseInt(_0x3f4220(0x17e))/0x5+parseInt(_0x3f4220(0x28f))/0x6+parseInt(_0x3f4220(0x1ff))/0x7+-parseInt(_0x3f4220(0x206))/0x8+-parseInt(_0x3f4220(0x2a3))/0x9;if(_0x39bacf===_0x4881ff)break;else _0x3aee04['push'](_0x3aee04['shift']());}catch(_0x4f0839){_0x3aee04['push'](_0x3aee04['shift']());}}}(_0x2196,0x370c0));var Ve=Object[_0x4ba9c1(0x1cd)],Xe=(_0x18b4ba,_0x3c7b52,_0x1b83ad)=>_0x3c7b52 in _0x18b4ba?Ve(_0x18b4ba,_0x3c7b52,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b83ad}):_0x18b4ba[_0x3c7b52]=_0x1b83ad,h=(_0xca1d55,_0x4ab472,_0x38bdd3)=>Xe(_0xca1d55,typeof _0x4ab472!=_0x4ba9c1(0x2d6)?_0x4ab472+'':_0x4ab472,_0x38bdd3);function _0x2196(){const _0xa70edc=['_removeCollabCursors','_commandService','IRemoteInstanceService','propertyIsEnumerable','redoState','closePath','beginPath','_getScale','setUndoRedoMutationParamsCache','CollaborationStatus','NOT_COLLAB','Unknown\x20user','enableLocalCache','isTransformMutationsWithChangesetSuccess','Injector','_createSocketURL','toDisposable','_render','indexOf','touchDependencies','unshift','_selfUnitIDs','searchParams','div','complete','apply','from','Disposable','evenodd','CONNECTOR_DATA_TOO_LARGE','_configService','Workbook','_cursorInfo$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_cachedData','subunit','_memberService','Tools','_collaborationUIEventService','VIEW_MAIN','updateOfflineData','getCurrentRevOfUnit','_updateLocalCursor','435cZDLOj','_initStatusListener','_revisionService','@univerjs/sheets','getActiveSheet','getValue','random','setActiveRange','CHANGESET_REVISION_CONFILICT','USERS_LEAVE','_name','USER_NOT_INVITED_CODE','_setupSubUnitSync','collab-rect-range-','transformStateCache','setTimeout','CollaborationController','@univerjs/ui','IConfigService','arc','_sheetSkeletonManagerService','getCurrentSelections','removeParam','all','getColor','registerBeforeClose','JOIN_ROOM_FAILED','@univerjs/core','translate(.97)','concat','toString','onCommandExecuted','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','data','SUBMIT_CHANGESET_TIMEOUT','YUUMI_URL_COL_OUT_OF_RANGE','/run/','params','collaboration-client.offline-data-not-saved','COLORS','_localStorageService','_collabCursorState$','InsertColCommandId','getCurrent','then','startColumn','ticket','entityInit$','transformSelections','SOCKET_FAILED','getUndoRedoMutationParamsCache','replaceDocRanges','unsubscribe','_unitStatus','sessionStatus$','collaboration.single-unit.warning','YUUMI_NO_CUBOID_FOR_QUESTION','deepClone','moveTo','_transformService','toRgbString','getLocalCacheKey','DocCollaborationEntity','get','_getAnchorBounding','17568HVUWfl','553185tVjQnw','unitId','YUUMI_AI_RUN_FAILED','white','onPointerEnter$','_hover','_lastPointer','_drawRectRange','Module','_backgroundColor','popstate','handleInsertRow','colorChannel1','SheetsSelectionsService','getViewport','focused$','currentSkeleton$','_assignedColors','width','getCollabCursors$','collab-text-anchor-','save','_cursors','dispose','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','setParam','@univerjs-pro/collaboration','tag','Rectangle','column','merge','_startSheetCollabCursor','black','SetTextSelectionsOperation','exhaustSavingTask','_updateCollabCursors','session.collaboration-timeout','_send','subscribe','[CollaborationDataLoaderController]','_docSkeletonManagerService','_logService','352AivgkZ','DocSkeletonManagerService','debug','_shapes','handleInsertCol','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_MAX_UNITS_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','HTTPService','IRenderManagerService','clearTimeout','INVITE_CODE_REQUIRED','_onCursorUpdate','off-line-icon_clip0_910_343','_injector','setStateCache','RxDisposable','_transformPreviousActiveRange','RemoveColCommandId','UNIVER_SHEET','path','OffLineIcon','getParam','off-line-icon','find','_docSkeleton','handleInsertRangeMoveDown','getTypeOfUnitDisposed$','M0\x200H16V16H0z','SNAPSHOT_INVALID_SNAPSHOT','cursorInfo$','DesktopCollaborationStatusDisplayController','collabStatus.fetchMiss','#FFF','INVALID_INVITE_CODE','handleIRemoveCol','_renderManagerService','defineProperty','clearInterval','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_collaborationController','YUUMI_RATE_OVER_LIMIT','_instanceService','getSheetId','row','clipPath','APPLY_REJECT','mapTo','onRendered','_initDependencies','length','purple.300','saveTaskMap','unload','pluginName','DocIMEInputManagerService','string','loadOfflineData','uni.network.url-service','xlink:href','onTransformChange$','_eventUnsubscribe','_toggleOffline','collabStatus.syncing','LocaleService','textRanges','CollaborationUIEventId','PERMISSION_DENIED','BehaviorSubject','ALREADY_EXISTS','jsxs','_collabSessionService','handleInsertRangeMoveRight','fillStyle','_getSaveTimeout','fromEventSubject','LICENSE_DISTRO_REJECTED','DisposableCollection','handleMoveRange','_handleHover','1em','Inject','none','_entityInit$','status$','TEXT','selection','234038ECgLRx','_beforeCloseService','_unitOnClients','SYNCED','on-line-icon','_imageIoService','ISnapshotServerService','2428624fmkNlp','_scheduleClearOtherTimer','univer-mr-2\x20univer-flex\x20univer-text-xl','_initStatusComponent','_docStateChangeManagerService','Tooltip','actions','UniverCollaborationClientUIPlugin','push','defIds','wsSessionTicketUrl','_refRangeService','registerRefRange','size','transformMutation','handleIRemoveRow','red.300','error','ONLINE','DeleteRangeMoveLeftCommandId','editingUnit','unit','LOCAL_CACHE_INTERVAL','urlChange$','171wQONsq','IImageIoService','toStringTag','createIdentifier','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','_textBubble','_docTransformIMECacheService','roomMembers$','text','getAncestorScale','replaceState','docStateChange$','_initEvent','handleDeleteRangeMoveLeft','SetSelectionsOperation','getRenderById','_updateSubUnitFromURLParams','EffectRefRangId','addHandlerCallback','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','delete','IUIPartsService','switchMap','createSocket','entries','_removeClearOtherTimer','_colorAssignService','startRow','InsertRangeMoveRightCommandId','_updateURLWithCurrentState','NodePositionConvertToRectRange','_anchorDot','getOwnPropertyDescriptor','_startDocCollabCursor','executeCommand','CLOSE_ROOM','subscribeEvent','height','rgba(255,\x20255,\x20255,\x200.01)','show','getMemberID','IUniverInstanceService','serializeRangeWithSheet','runRefRangeMutations','_doCreateSocket','getUnitStatus$','collabStatus.offline','BrowserCollaborationSocketService','_univerInstanceService','skeleton','mask','transformMutationsWithChangeset','url(#on-line-icon_clip0_910_349)','imageSourceType','use','blue.400','IBeforeCloseService','triggerDblclick','RichTextEditingMutation','UNAUTHENTICATED','SetWorksheetActivateCommand','INotificationService','svg','replace','call','_refreshCollabCursors','fill','UnitStatus','SNAPSHOT_HAS_BEEN_REMOVED','WebSocketService','hasOwnProperty','ranges','UniverCollaborationClientPlugin','OFFLINE','_docClipboardService','setAlpha','type','round','_transformUndoRedoStack','getFocusedUnit','source','MOBILE_HAS_BEEN_BOUND','mutations','_colorIndex','_color','ILogService','generateRandomId','override','FromArray','_context','ILocalStorageService','YUUMI_ALL_TABLES_IS_INVALID','getDocRanges','_registerRenderDependencies','onLocalMutation','fromEvent','drawWith','session.connection-failed','YUUMI_ASYNCIO_CANCELLED','_saveTaskMap','YUUMI_TABLE_NOT_FOUND_IN_UNIT','APPLY_DUPLICATED','@univerjs/network','ColorKit','DOC_RANGE_TYPE','setItem','FETCH_MISS','0\x200\x2016\x2016','saveImage','_handleHeartbeatEvent','font','@univerjs-pro/collaboration-client','@univerjs/sheets-ui','1475844ZfmIFz','_uiPartsService','useCallback','currentTheme$','transformIMECache','eventID','fillRule','_docTransformSelectionsService','ENSURE_SNAPSHOT_EXECUTION','DataLoaderService','jiqing.500','flatMap','CollaborationEvent','EMAIL_HAS_BEEN_BOUND','disableLocalCache','hovered','LOGIN_FAILED','collaboration.closeRoom','displayName','_roomMembers$','1691091FQLFTK','undoState','takeUntil','send','_handleJoinEvent','measureText','isArray','Vector2','onPointerMove$','some','_handleLeaveEvent','UNIVER_DOC','transformRemoteChangeset','_status$','isActive','getOffsetConfig','collab-client.tooltip.reconnect','href','MemberService','_online','react','INVITE_CODE_HAS_BEEN_UES','onStarting','http://www.w3.org/2000/svg','Error','@univerjs/engine-render','onPointerLeave$','_transformHistoryAndStateStack','WECHAT_HAS_BEEN_BOUND','reconnect','_entities','top','IURLService','_init','CollaborationStatusDisplay','OnLineIcon','_draw','_scheduleHeartbeat','registerDependencies','useDependency','INTERNAL_ERROR','isTransformMutationFailure','permission.title','rxjs','_disabled','bottom','_scene','backgroundColor','getStateCache','OTHER_CLIENTS_EDITING','getConfig','symbol','includes','getItem','loadUnit','split','disposeWithMe','IMessageService','_hovered','Plugin','Failed','_docTransformStateCacheService','clsx','_initEntityListener','_range','_saveCache','_anchor','on-line-icon_clip0_910_349','UniverInstanceType','storage','_ensureSubject','YUUMI_SUBSCRIPTION_NOT_FOUND','disposeUnit','unitID','ILocalCacheService','pushState','debounce','parse','setShapeProps','_notificationService','with','Shape','getOwnPropertySymbols','session.will-retry','map','_getSheetObject','application/json','ACTIVE_UNIT_EVENT_CHANNEL','_labelPosition','attrs','NOT_FOUND','_scheduleSaving','sessionTicket','_document','values','_setupBeforeClosingHandler','addEventListener','UniverIcon','pipe','color','setConfig','_config','doc.mutation.rich-text-editing','roomMembers','INVITE_CODE_ALREADY_BOUND','_urlService','_drawTextRange','transform','m1Prime','throttleTime','getSheetBySheetId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','set','_getMergeRange','_themeService','className','executionId','body','RegularPolygon','getMember','_clearOtherTimers','substring','_httpService','findNodePositionByCharIndex','PY_RUNTIME_SCRIPT_ERROR','RECT','LOCAL_CACHE_INTERVAL_KEY','getMergeData','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','LICENSE_EXPORT_SIZE_EXCEEDED','jsx','_initCommandExecutedListener','_id','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','@univerjs/docs-ui','icon','createElement','dispose$','react/jsx-runtime','history','cursorInfo','newValue','runId','ThemeService','CollaborationDataLoaderController','location','UNDEFINED','DependentOn','registerComponent','restore','subUnitId','TOO_MANY_REQUESTS','stringify','_cursorShapes','endColumn','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MUTATION','forwardRef','_docSyncEditingCollabCursorService','_toggleOnline','next','ICommandService','getTypeOfUnitAdded$','_collabCursorController','RevisionService','m2Prime','startsWith','TEXT_RANGE_LAYER_INDEX','_heartbeatTimer','addObject','_hideTimer','DocStateChangeManagerService','hide','getRangePointData','getSheetObject','Rect','UPDATE_CURSOR','event$','getCoordByCell','useObservable','url(#off-line-icon_clip0_910_343)','prototype','makeDirty','idSuffix','...','addObjects','activeSheet$','function','_registerDependencies','_messageService','APPLY_PERMISSION_DENIED','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','name','_handleEvent','defs','currentColor','getUnitId','getSkeleton','_session','YUUMI_UNABLE_LOAD_URL','RemoteUniscriptService','SheetSkeletonManagerService','origin','filter','registerRenderModule','ITransformService','_syncEditingCollabCursorService','_getSessionTicket','_onCursorDelete','assign','collabCursorState$','WebBrowserSingleActiveUnitService','SheetCollabCursorShape','CONFLICT','PENDING','debounceTime','lineTo','_onRefRangeChange','asObservable','DocSelectionManagerService','collabStatus.conflict','contains','_localeService','getUnhiddenWorksheets','current','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','labelPosition','CommandType','add','0\x200\x2017\x2016','forEach','MessageType','MoveRangeCommandId','getCurrentUnitForType','combineLatest','UNRECOGNIZED','@univerjs/drawing','SHEET_VIEWPORT_KEY','init','extend','_drawAnchor','APPLY_REVISION_CONFILICT','COMPLETION_FINISHED','InsertRangeMoveDownCommandId','search','memberID','SessionStatus','Warning','code','has','requireSession','_cursor','result','children','assignAColorForMemberID'];_0x2196=function(){return _0xa70edc;};return _0x2196();}Object[_0x4ba9c1(0x1cd)](exports,Symbol[_0x4ba9c1(0x220)],{'value':_0x4ba9c1(0x186)});const u=require(_0x4ba9c1(0x28d)),a=require(_0x4ba9c1(0x157)),p=require(_0x4ba9c1(0x2bc)),G=require(_0x4ba9c1(0x284)),b=require(_0x4ba9c1(0x98)),Ge=require(_0x4ba9c1(0xfe)),d=require(_0x4ba9c1(0x2ce)),Y=require('@univerjs/docs'),m=require(_0x4ba9c1(0x198)),Ee=require('@univerjs/engine-formula'),g=require(_0x4ba9c1(0x13f)),$=require('rxjs/operators'),X=require(_0x4ba9c1(0x28e)),w=require(_0x4ba9c1(0x9c)),T=require(_0x4ba9c1(0x14d)),D=require('@univerjs/design'),M=require(_0x4ba9c1(0x2b7)),Ke=require('@univerjs/rpc');var qe=Object['getOwnPropertyDescriptor'],ze=(_0xe7c3a6,_0xa57694,_0x4f0653,_0x75bdd2)=>{const _0x118171=_0x4ba9c1;for(var _0x204c11=_0x75bdd2>0x1?void 0x0:_0x75bdd2?qe(_0xa57694,_0x4f0653):_0xa57694,_0x13c02a=_0xe7c3a6[_0x118171(0x1da)]-0x1,_0x274da4;_0x13c02a>=0x0;_0x13c02a--)(_0x274da4=_0xe7c3a6[_0x13c02a])&&(_0x204c11=_0x274da4(_0x204c11)||_0x204c11);return _0x204c11;},Te=(_0x223b16,_0x5d62af)=>(_0x1a13db,_0x36c470)=>_0x5d62af(_0x1a13db,_0x36c470,_0x223b16);let de=class extends a['RxDisposable']{constructor(_0xa470c1,_0x2cb921){const _0x54acce=_0x4ba9c1;super(),this[_0x54acce(0x268)]=_0xa470c1,this[_0x54acce(0x204)]=_0x2cb921,this['_init']();}[_0x4ba9c1(0x2c4)](){const _0xd05303=this;this['disposeWithMe'](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x4e4013=>{const _0x598e84=_0x167f,_0x53b510=await _0xd05303[_0x598e84(0x204)][_0x598e84(0x28a)](_0x4e4013);return _0x53b510?{'source':_0x53b510[_0x598e84(0x26e)],'imageSourceType':_0x53b510[_0x598e84(0x253)]}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge[_0x4ba9c1(0x21f)])],de);const Oe=[_0x4ba9c1(0x1db),_0x4ba9c1(0x299),'green.600',_0x4ba9c1(0x216),_0x4ba9c1(0x255),'yellow.400'];class me extends a[_0x4ba9c1(0x12c)]{constructor(){const _0x2312b6=_0x4ba9c1;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x2312b6(0x271),0x0);}[_0x4ba9c1(0x110)](_0x88d7f5){const _0x2fa58f=_0x4ba9c1;if(this[_0x2fa58f(0x18f)]['has'](_0x88d7f5))return this[_0x2fa58f(0x18f)][_0x2fa58f(0x17b)](_0x88d7f5);const _0x45458b=Oe[this[_0x2fa58f(0x271)]];return this[_0x2fa58f(0x271)]=(this[_0x2fa58f(0x271)]+0x1)%Oe[_0x2fa58f(0x1da)],this['_assignedColors'][_0x2fa58f(0x82)](_0x88d7f5,_0x45458b),_0x45458b;}}function we(_0x1de779){const _0x20535d=_0x4ba9c1;let _0x187950='';for(const _0x304af6 of _0x1de779){const {startOffset:_0x44987a,endOffset:_0x21dd4e,isActive:_0x2f412d,rangeType:_0x1db814,segmentId:_0x9339a8,segmentPage:_0x30825a}=_0x304af6;_0x187950[_0x20535d(0x1da)]&&(_0x187950+=','),_0x187950+=_0x44987a+':'+_0x21dd4e+':'+(_0x2f412d?'1':'0')+':'+_0x1db814+':'+_0x9339a8+':'+_0x30825a;}return _0x187950;}function Je(_0xfd17ac){const _0x16eda3=_0x4ba9c1,_0x230927=_0xfd17ac[_0x16eda3(0x2da)](','),_0x2927b8=[];for(const _0x1d6697 of _0x230927){const [_0x1d9a13,_0x2f2be6,_0x1c02b3,_0x423d9e,_0x5b9baa,_0xa3f466]=_0x1d6697[_0x16eda3(0x2da)](':');_0x2927b8[_0x16eda3(0x20e)]({'startOffset':Number(_0x1d9a13),'endOffset':Number(_0x2f2be6),'collapsed':_0x1d9a13===_0x2f2be6,'isActive':_0x1c02b3==='1','rangeType':_0x423d9e===a['DOC_RANGE_TYPE'][_0x16eda3(0x1fd)]?a[_0x16eda3(0x286)][_0x16eda3(0x1fd)]:a[_0x16eda3(0x286)][_0x16eda3(0x8f)],'segmentId':typeof _0x5b9baa==_0x16eda3(0x1e0)?String(_0x5b9baa):'','segmentPage':Number(_0xa3f466!=null?_0xa3f466:-0x1)});}return _0x2927b8[_0x16eda3(0x2ac)](_0x172fb0=>_0x172fb0[_0x16eda3(0x2b1)])||(_0x2927b8[0x0]['isActive']=!0x0),_0x2927b8;}class Ce extends a[_0x4ba9c1(0x1b8)]{constructor(){const _0x5da369=_0x4ba9c1;super(...arguments),h(this,_0x5da369(0x165),new d[(_0x5da369(0x1ec))](null)),h(this,_0x5da369(0xe4),this[_0x5da369(0x165)][_0x5da369(0xec)]());}['syncEditingCollabCursor'](_0x32f261){const _0x5c8e8a=_0x4ba9c1,{unitID:_0x46f6f4,memberID:_0x151c69,textRanges:_0x4b0bcf}=_0x32f261,_0x13c4a6=we(_0x4b0bcf);if(_0x13c4a6==='')return;const _0x10ac8a={'unitID':_0x46f6f4,'memberID':_0x151c69,'selection':_0x13c4a6};this[_0x5c8e8a(0x165)]['next'](_0x10ac8a);}}var Ze=Object[_0x4ba9c1(0x23e)],Qe=(_0x6c78cd,_0x8884cf,_0x495dbb,_0x230f89)=>{const _0x9c11ec=_0x4ba9c1;for(var _0x57849d=_0x230f89>0x1?void 0x0:_0x230f89?Ze(_0x8884cf,_0x495dbb):_0x8884cf,_0x482dac=_0x6c78cd[_0x9c11ec(0x1da)]-0x1,_0x2e119d;_0x482dac>=0x0;_0x482dac--)(_0x2e119d=_0x6c78cd[_0x482dac])&&(_0x57849d=_0x2e119d(_0x57849d)||_0x57849d);return _0x57849d;},L=(_0x3d9821,_0x2173de)=>(_0x4e1c09,_0x2e7ab4)=>_0x2173de(_0x4e1c09,_0x2e7ab4,_0x3d9821);const et=0x12c,tt=0x64;let fe=class extends a[_0x4ba9c1(0x1b8)]{constructor(_0x22b6ff,_0x43465b,_0x25f1e8,_0xfd6d51,_0x57614f,_0x8d937a,_0xc28633,_0x1c4195,_0x3e4d5e){const _0x20a03a=_0x4ba9c1;super(),h(this,_0x20a03a(0x2b6),!0x1),h(this,_0x20a03a(0x2c4),!0x1),h(this,_0x20a03a(0x131),new d[(_0x20a03a(0x1ec))](new Map())),h(this,_0x20a03a(0x1c6),this['_cursorInfo$']['asObservable']()),h(this,_0x20a03a(0x2a2),new d['BehaviorSubject']([])),h(this,_0x20a03a(0x225),this[_0x20a03a(0x2a2)]['pipe'](d[_0x20a03a(0xe9)](et))),h(this,_0x20a03a(0x13b),a[_0x20a03a(0x2ef)](_0x3d8ebf=>{const _0x558214=_0x20a03a,_0x1e6d1e={'eventID':m[_0x558214(0x29b)][_0x558214(0xc2)],'data':{'unitID':this[_0x558214(0x2ec)],'memberID':this[_0x558214(0xd8)][_0x558214(0x246)](),'selection':we(_0x3d8ebf)}};this[_0x558214(0xd8)][_0x558214(0x2a6)](_0x1e6d1e,this[_0x558214(0x2ec)]);},tt)),(this['unitID']=_0x22b6ff,this[_0x20a03a(0xd8)]=_0x43465b,this['_injector']=_0x25f1e8,this[_0x20a03a(0x238)]=_0xfd6d51,this[_0x20a03a(0x135)]=_0x57614f,this[_0x20a03a(0xe0)]=_0x8d937a,this['_transformService']=_0xc28633,this[_0x20a03a(0x24e)]=_0x1c4195,this[_0x20a03a(0x112)]=_0x3e4d5e);}get[_0x4ba9c1(0x9e)](){const _0x408a50=_0x4ba9c1;return this['_cursorInfo$'][_0x408a50(0x141)]();}get['roomMembers'](){const _0x4d6904=_0x4ba9c1;return this[_0x4d6904(0x2a2)]['getValue']();}[_0x4ba9c1(0x195)](){const _0x1fe029=_0x4ba9c1;super['dispose'](),this['_cursorInfo$'][_0x1fe029(0xb2)](new Map()),this[_0x1fe029(0x131)][_0x1fe029(0x129)](),this[_0x1fe029(0x2a2)]['next']([]),this['_roomMembers$'][_0x1fe029(0x129)]();}[_0x4ba9c1(0x100)](){const _0x4cf101=_0x4ba9c1;this[_0x4cf101(0x2c4)]||(this[_0x4cf101(0x2c4)]=!0x0,this[_0x4cf101(0xd8)][_0x4cf101(0x172)][_0x4cf101(0x74)](d['takeUntil'](this['dispose$']))[_0x4cf101(0x1a4)](_0x181db1=>{const _0x39791f=_0x4cf101;_0x181db1===u[_0x39791f(0x108)][_0x39791f(0x218)]?this[_0x39791f(0xb1)]():this[_0x39791f(0x1e6)]();}),this[_0x4cf101(0xd8)]['event$'][_0x4cf101(0x74)](d[_0x4cf101(0x2a5)](this[_0x4cf101(0x9b)]))['subscribe'](_0x2751be=>{const _0x9e1fb8=_0x4cf101,_0x4e0ade=_0x2751be[_0x9e1fb8(0x294)];_0x4e0ade===m[_0x9e1fb8(0x29b)][_0x9e1fb8(0xc2)]&&this[_0x9e1fb8(0x1b4)](_0x2751be),_0x4e0ade===m[_0x9e1fb8(0x29b)][_0x9e1fb8(0x145)]&&this[_0x9e1fb8(0xe2)](_0x2751be);}),this[_0x4cf101(0x2db)](this[_0x4cf101(0x112)][_0x4cf101(0x15b)](_0x14dd83=>{const _0x1b25f3=_0x4cf101,_0x2c2aef=_0x14dd83[_0x1b25f3(0x161)];_0x2c2aef!=null&&this[_0x1b25f3(0x2b6)]&&_0x14dd83['id']===Y[_0x1b25f3(0x19f)]['id']&&_0x2c2aef[_0x1b25f3(0x17f)]===this[_0x1b25f3(0x2ec)]&&_0x2c2aef['isEditing']===!0x1&&_0x2c2aef['ranges'][_0x1b25f3(0x1da)]>0x0&&this['_updateLocalCursor'](_0x2c2aef[_0x1b25f3(0x265)]);})),this[_0x4cf101(0xe0)][_0x4cf101(0xe4)][_0x4cf101(0x74)](d[_0x4cf101(0x2a5)](this[_0x4cf101(0x9b)]))[_0x4cf101(0x1a4)](_0x363e0d=>{const _0x5d94bd=_0x4cf101;if((_0x363e0d==null?void 0x0:_0x363e0d[_0x5d94bd(0x2ec)])!==this[_0x5d94bd(0x2ec)])return;const _0x26b68e={'eventID':m[_0x5d94bd(0x29b)][_0x5d94bd(0xc2)],'data':_0x363e0d};this[_0x5d94bd(0x1b4)](_0x26b68e);}),this[_0x4cf101(0x2db)](this[_0x4cf101(0x112)][_0x4cf101(0x15b)](_0xcda379=>{const _0x20b806=_0x4cf101;if(_0xcda379[_0x20b806(0x161)]==null)return;const _0xdb66b=_0xcda379[_0x20b806(0x161)];if(_0xcda379['id']!==Y[_0x20b806(0x258)]['id']||_0xdb66b['unitId']!==this[_0x20b806(0x2ec)])return;const _0x1bdf56={'id':'doc.mutation.rich-text-editing','params':_0xdb66b},_0x3c86a2=this[_0x20b806(0x9e)];for(const [_0x16e731,_0x389632]of _0x3c86a2){const _0x328900={'id':_0x20b806(0x78),'params':{'unitId':this[_0x20b806(0x2ec)],'actions':null,'textRanges':_0x389632[_0x20b806(0x265)]}},_0x19505d=this['_transformService']['transformMutation'](_0x1bdf56,_0x328900,!0x1);if(m[_0x20b806(0x2cc)](_0x19505d))throw _0x19505d[_0x20b806(0x217)];_0x3c86a2[_0x20b806(0x82)](_0x16e731,{..._0x389632,'ranges':_0x19505d[_0x20b806(0xb7)]['params'][_0x20b806(0x1e9)]});}queueMicrotask(()=>{const _0x89b47e=_0x20b806;this[_0x89b47e(0x131)][_0x89b47e(0xb2)](_0x3c86a2);});})));}['_onCursorUpdate'](_0x28eef0){const _0x57415c=_0x4ba9c1;var _0x77c2a5,_0xdd5785;const {memberID:_0x17fe2b,selection:_0x228747}=_0x28eef0['data'],_0x57f2c0=Je(_0x228747),_0x482bd2=(_0xdd5785=(_0x77c2a5=this['_memberService'][_0x57415c(0x89)](this[_0x57415c(0x2ec)],_0x17fe2b))==null?void 0x0:_0x77c2a5[_0x57415c(0xd2)])!=null?_0xdd5785:_0x57415c(0x11c),_0x1d64c2={'color':this[_0x57415c(0x238)]['assignAColorForMemberID'](_0x17fe2b),'name':_0x482bd2,'ranges':_0x57f2c0},_0x5abd99=this[_0x57415c(0x9e)];_0x5abd99['set'](_0x17fe2b,_0x1d64c2),this['_cursorInfo$'][_0x57415c(0xb2)](_0x5abd99);}[_0x4ba9c1(0xe2)](_0x2f9355){const _0x2d972e=_0x4ba9c1,{memberID:_0x321062}=_0x2f9355['data'],_0x4b230b=this[_0x2d972e(0x9e)];_0x4b230b[_0x2d972e(0x232)](_0x321062),this['_cursorInfo$'][_0x2d972e(0xb2)](_0x4b230b);}[_0x4ba9c1(0xb1)](){const _0x2c3a22=_0x4ba9c1;var _0xe0b72e;if(this[_0x2c3a22(0x2b6)]=!0x0,((_0xe0b72e=this[_0x2c3a22(0x24e)][_0x2c3a22(0x26d)]())==null?void 0x0:_0xe0b72e[_0x2c3a22(0xd6)]())!==this['unitID'])return;const _0x5ad9b8=this['_injector'][_0x2c3a22(0x17b)](Y[_0x2c3a22(0xed)])[_0x2c3a22(0x27a)]();Array[_0x2c3a22(0x2a9)](_0x5ad9b8)&&_0x5ad9b8[_0x2c3a22(0x1da)]>0x0&&this['_updateLocalCursor'](_0x5ad9b8);}[_0x4ba9c1(0x1e6)](){const _0x505357=_0x4ba9c1;this[_0x505357(0x2b6)]=!0x1;}};fe=Qe([L(0x2,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0x11f)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x4ba9c1(0x1f9)](u[_0x4ba9c1(0x2b5)])),L(0x5,a[_0x4ba9c1(0x1f9)](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a['ICommandService'])],fe);var st=Object[_0x4ba9c1(0x23e)],it=(_0x539ee3,_0x11fab1,_0x524dbc,_0xfe4795)=>{const _0x257f7f=_0x4ba9c1;for(var _0x2e9509=_0xfe4795>0x1?void 0x0:_0xfe4795?st(_0x11fab1,_0x524dbc):_0x11fab1,_0x55cf01=_0x539ee3[_0x257f7f(0x1da)]-0x1,_0x35a9c5;_0x55cf01>=0x0;_0x55cf01--)(_0x35a9c5=_0x539ee3[_0x55cf01])&&(_0x2e9509=_0x35a9c5(_0x2e9509)||_0x2e9509);return _0x2e9509;},A=(_0x497836,_0x263412)=>(_0x34db7d,_0x5045c7)=>_0x263412(_0x34db7d,_0x5045c7,_0x497836);const nt=0x12c,rt=0x64,ot=()=>{let _0x8cf0e2=[],_0x1215af=!0x1;return _0x37d379=>{const _0x5e24af=_0x167f;_0x8cf0e2[_0x5e24af(0x20e)](_0x37d379),_0x1215af||(_0x1215af=!0x0,setTimeout(()=>{_0x8cf0e2['forEach'](_0x2cf886=>_0x2cf886()),_0x8cf0e2=[],_0x1215af=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x36cbb7,_0x5b99d3,_0x5a0a5,_0x3c24fa,_0x3b5211,_0x172adf,_0x2954d8,_0x1f1ba6){const _0x3701cf=_0x4ba9c1;super(),h(this,_0x3701cf(0x2b6),!0x1),h(this,_0x3701cf(0x2c4),!0x1),h(this,_0x3701cf(0x131),new d['BehaviorSubject'](new Map())),h(this,_0x3701cf(0x1c6),this[_0x3701cf(0x131)]['asObservable']()),h(this,_0x3701cf(0x2a2),new d[(_0x3701cf(0x1ec))]([])),h(this,_0x3701cf(0x225),this[_0x3701cf(0x2a2)][_0x3701cf(0x74)](d[_0x3701cf(0xe9)](nt))),h(this,'_updateLocalCursor',a[_0x3701cf(0x2ef)]((_0x5900c1,_0x5d2025)=>{const _0x4eb5b1=_0x3701cf,_0x80f280={'eventID':m[_0x4eb5b1(0x29b)][_0x4eb5b1(0xc2)],'data':{'unitID':this[_0x4eb5b1(0x2ec)],'memberID':this[_0x4eb5b1(0xd8)][_0x4eb5b1(0x246)](),'selection':Ee[_0x4eb5b1(0x248)](_0x5900c1,_0x5d2025['range'])}};this['_session'][_0x4eb5b1(0x2a6)](_0x80f280,this[_0x4eb5b1(0x2ec)]);},rt)),(this[_0x3701cf(0x2ec)]=_0x36cbb7,this[_0x3701cf(0xd8)]=_0x5b99d3,this[_0x3701cf(0x1b6)]=_0x5a0a5,this['_colorAssignService']=_0x3c24fa,this[_0x3701cf(0x135)]=_0x3b5211,this['_univerInstanceService']=_0x172adf,this[_0x3701cf(0x112)]=_0x2954d8,this['_refRangeService']=_0x1f1ba6);}get[_0x4ba9c1(0x9e)](){return this['_cursorInfo$']['getValue']();}get[_0x4ba9c1(0x79)](){const _0x2ea22b=_0x4ba9c1;return this[_0x2ea22b(0x2a2)][_0x2ea22b(0x141)]();}['dispose'](){const _0x5228da=_0x4ba9c1;super[_0x5228da(0x195)](),this['_cursorInfo$'][_0x5228da(0xb2)](new Map()),this[_0x5228da(0x131)][_0x5228da(0x129)](),this[_0x5228da(0x2a2)]['next']([]),this['_roomMembers$'][_0x5228da(0x129)]();}[_0x4ba9c1(0x100)](){const _0x4c5e40=_0x4ba9c1;this[_0x4c5e40(0x2c4)]||(this['_init']=!0x0,this[_0x4c5e40(0xd8)][_0x4c5e40(0x172)][_0x4c5e40(0x74)](d[_0x4c5e40(0x2a5)](this[_0x4c5e40(0x9b)]))[_0x4c5e40(0x1a4)](_0x4f6327=>{const _0x480da4=_0x4c5e40;_0x4f6327===u[_0x480da4(0x108)][_0x480da4(0x218)]?this['_toggleOnline']():this[_0x480da4(0x1e6)]();}),this['_session'][_0x4c5e40(0xc3)][_0x4c5e40(0x74)](d['takeUntil'](this[_0x4c5e40(0x9b)]))[_0x4c5e40(0x1a4)](_0x1fefd8=>{const _0x25749b=_0x4c5e40,_0x4bc0e1=_0x1fefd8[_0x25749b(0x294)];_0x4bc0e1===m[_0x25749b(0x29b)][_0x25749b(0xc2)]&&this['_onCursorUpdate'](_0x1fefd8),_0x4bc0e1===m[_0x25749b(0x29b)][_0x25749b(0x145)]&&this[_0x25749b(0xe2)](_0x1fefd8);}),this[_0x4c5e40(0xeb)](),this[_0x4c5e40(0x2db)](this[_0x4c5e40(0x112)]['onCommandExecuted'](_0x1a9203=>{const _0x38cbe8=_0x4c5e40;if(this[_0x38cbe8(0x2b6)]&&_0x1a9203['id']===g[_0x38cbe8(0x22c)]['id']&&_0x1a9203[_0x38cbe8(0x161)]['unitId']===this['unitID']){const _0x3446f8=_0x1a9203[_0x38cbe8(0x161)];this[_0x38cbe8(0x13b)](_0x3446f8[_0x38cbe8(0xa8)],_0x3446f8['selections'][0x0]);}})));}[_0x4ba9c1(0x1b4)](_0x540408){const _0xed1e9b=_0x4ba9c1;var _0x18b2d7,_0x391404;const {memberID:_0x5952bb,selection:_0x2fc897}=_0x540408[_0xed1e9b(0x15d)],{sheetName:_0xc4f5a5,range:_0x6c7e98}=Ee['deserializeRangeWithSheet'](_0x2fc897),_0x4aa56c={'name':(_0x391404=(_0x18b2d7=this[_0xed1e9b(0x135)][_0xed1e9b(0x89)](this['unitID'],_0x5952bb))==null?void 0x0:_0x18b2d7['name'])!=null?_0x391404:_0xed1e9b(0x11c),'range':this[_0xed1e9b(0x83)](_0xc4f5a5,_0x6c7e98),'sheetID':_0xc4f5a5,'color':this[_0xed1e9b(0x238)][_0xed1e9b(0x110)](_0x5952bb),'selection':_0x2fc897},_0x573a08=this[_0xed1e9b(0x9e)];_0x573a08[_0xed1e9b(0x82)](_0x5952bb,_0x4aa56c),this[_0xed1e9b(0x131)][_0xed1e9b(0xb2)](_0x573a08);}[_0x4ba9c1(0xe2)](_0x425f2c){const _0x390084=_0x4ba9c1,{memberID:_0x798606}=_0x425f2c[_0x390084(0x15d)],_0x43c34b=this[_0x390084(0x9e)];_0x43c34b[_0x390084(0x232)](_0x798606),this['_cursorInfo$'][_0x390084(0xb2)](_0x43c34b);}[_0x4ba9c1(0x83)](_0xbeee2a,_0x20886a){const _0x6427d1=_0x4ba9c1;var _0x35af47,_0x5440f3;const _0x48badc=(_0x5440f3=(_0x35af47=this[_0x6427d1(0x24e)]['getUniverSheetInstance'](this[_0x6427d1(0x2ec)]))==null?void 0x0:_0x35af47['getSheetBySheetId'](_0xbeee2a))==null?void 0x0:_0x5440f3[_0x6427d1(0x91)]();return(_0x48badc==null?void 0x0:_0x48badc[_0x6427d1(0x1c0)](_0x237a97=>a[_0x6427d1(0x19a)][_0x6427d1(0xef)](_0x237a97,_0x20886a)))||_0x20886a;}[_0x4ba9c1(0xeb)](){const _0x5d7605=_0x4ba9c1,_0x426282=new a[(_0x5d7605(0x1f5))](),_0x503dc8=ot(),_0x21c887=()=>{const _0x552e6c=_0x5d7605;_0x426282[_0x552e6c(0x195)]();const _0x3c362a=(_0x529727,_0x2375ff,_0x12d488,_0x22326a)=>{const _0x24019e=_0x552e6c;let _0x1a1e48=[];switch(_0x529727['id']){case g[_0x24019e(0x22f)][_0x24019e(0x219)]:{_0x1a1e48=g[_0x24019e(0x22b)](_0x529727,_0x22326a);break;}case g['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x1a1e48=g['handleDeleteRangeMoveUp'](_0x529727,_0x22326a);break;}case g[_0x24019e(0x22f)][_0x24019e(0x166)]:{_0x1a1e48=g[_0x24019e(0x1ac)](_0x529727,_0x22326a);break;}case g['EffectRefRangId'][_0x24019e(0x105)]:{_0x1a1e48=g[_0x24019e(0x1c2)](_0x529727,_0x22326a);break;}case g['EffectRefRangId'][_0x24019e(0x23a)]:{_0x1a1e48=g[_0x24019e(0x1f0)](_0x529727,_0x22326a);break;}case g[_0x24019e(0x22f)]['InsertRowCommandId']:{_0x1a1e48=g[_0x24019e(0x189)](_0x529727,_0x22326a);break;}case g['EffectRefRangId'][_0x24019e(0xfa)]:{_0x1a1e48=g[_0x24019e(0x1f6)](_0x529727,_0x22326a);break;}case g['EffectRefRangId'][_0x24019e(0x1ba)]:{_0x1a1e48=g[_0x24019e(0x1cb)](_0x529727,_0x22326a);break;}case g[_0x24019e(0x22f)]['RemoveRowCommandId']:{_0x1a1e48=g[_0x24019e(0x215)](_0x529727,_0x22326a);break;}}const _0x107fba=g[_0x24019e(0x249)](_0x1a1e48,_0x22326a),_0x1c2803=this[_0x24019e(0x9e)][_0x24019e(0x17b)](_0x2375ff);if(_0x1c2803&&_0x107fba){const _0x59b5cc={..._0x1c2803,'range':_0x107fba};this[_0x24019e(0x9e)][_0x24019e(0x82)](_0x2375ff,_0x59b5cc),_0x503dc8(()=>{const _0x4bf503=_0x24019e,_0x5f2d13=this[_0x4bf503(0x211)][_0x4bf503(0x212)](_0x107fba,_0x34bb56=>(_0x5f2d13[_0x4bf503(0x195)](),_0x3c362a(_0x34bb56,_0x2375ff,_0x12d488,_0x107fba)));_0x426282[_0x4bf503(0xf6)](_0x5f2d13);});}return{'redos':[],'undos':[]};};this[_0x552e6c(0x9e)][_0x552e6c(0xf8)]((_0x18aa56,_0x594c37)=>{const _0x4f8144=_0x552e6c,{range:_0x2a358d,sheetID:_0x160f28}=_0x18aa56,_0x1890e9=this['_refRangeService'][_0x4f8144(0x212)](_0x2a358d,_0x33cb80=>(_0x1890e9[_0x4f8144(0x195)](),_0x3c362a(_0x33cb80,_0x594c37,_0x160f28,_0x2a358d)));_0x426282['add'](_0x1890e9);});};this['disposeWithMe'](a[_0x5d7605(0x121)](this[_0x5d7605(0x131)][_0x5d7605(0x1a4)](()=>{_0x21c887();})));}[_0x4ba9c1(0xb1)](){const _0x57523f=_0x4ba9c1;var _0x2f469b,_0xe89fbd;if(this[_0x57523f(0x2b6)]=!0x0,((_0x2f469b=this[_0x57523f(0x24e)][_0x57523f(0x26d)]())==null?void 0x0:_0x2f469b[_0x57523f(0xd6)]())!==this[_0x57523f(0x2ec)])return;const _0x464421=(_0xe89fbd=this[_0x57523f(0x1b6)][_0x57523f(0x17b)](g[_0x57523f(0x18b)])[_0x57523f(0x151)]())==null?void 0x0:_0xe89fbd[0x0],_0x2f0e14=this[_0x57523f(0x24e)][_0x57523f(0xfb)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x57523f(0x140)]();_0x464421&&_0x2f0e14&&this[_0x57523f(0x13b)](_0x2f0e14[_0x57523f(0x1d3)](),_0x464421);}[_0x4ba9c1(0x1e6)](){const _0x13de16=_0x4ba9c1;this[_0x13de16(0x2b6)]=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x4ba9c1(0x11f)])),A(0x3,a[_0x4ba9c1(0x1f9)](me)),A(0x4,a[_0x4ba9c1(0x1f9)](u[_0x4ba9c1(0x2b5)])),A(0x5,a[_0x4ba9c1(0x247)]),A(0x6,a[_0x4ba9c1(0xb3)]),A(0x7,a[_0x4ba9c1(0x1f9)](g['RefRangeService']))],Se);var at=Object[_0x4ba9c1(0x23e)],ct=(_0x2ac852,_0x4e8a76,_0x3cd342,_0x1f94eb)=>{const _0xbeb252=_0x4ba9c1;for(var _0x3d32f5=_0x1f94eb>0x1?void 0x0:_0x1f94eb?at(_0x4e8a76,_0x3cd342):_0x4e8a76,_0x132a4a=_0x2ac852[_0xbeb252(0x1da)]-0x1,_0x3cd2fe;_0x132a4a>=0x0;_0x132a4a--)(_0x3cd2fe=_0x2ac852[_0x132a4a])&&(_0x3d32f5=_0x3cd2fe(_0x3d32f5)||_0x3d32f5);return _0x3d32f5;},ie=(_0x34685f,_0x4729c6)=>(_0x285217,_0x7dd37e)=>_0x4729c6(_0x285217,_0x7dd37e,_0x34685f);let x=class extends a[_0x4ba9c1(0x1b8)]{constructor(_0x471043,_0xa03e08,_0x7e44a8){const _0x1b4805=_0x4ba9c1;super(),h(this,_0x1b4805(0x2c1),new Map()),h(this,'_entityInit$',new d['Subject']()),(this[_0x1b4805(0x24e)]=_0x471043,this[_0x1b4805(0x1b6)]=_0xa03e08,this[_0x1b4805(0x1ef)]=_0x7e44a8,this[_0x1b4805(0x2c4)]());}[_0x4ba9c1(0x195)](){const _0x39c243=_0x4ba9c1;super[_0x39c243(0x195)](),this[_0x39c243(0x1fb)][_0x39c243(0x129)](),this[_0x39c243(0x2c1)][_0x39c243(0xf8)](_0x1391b=>_0x1391b[_0x39c243(0x195)]());}['getCollabCursors$'](_0x50ddea){const _0x3fc493=_0x4ba9c1;return this[_0x3fc493(0x2c1)]['has'](_0x50ddea)?this[_0x3fc493(0x2c1)]['get'](_0x50ddea)[_0x3fc493(0x1c6)]:this[_0x3fc493(0x1fb)][_0x3fc493(0x74)](d[_0x3fc493(0xdd)](_0x2ecca5=>_0x2ecca5[_0x3fc493(0x2ec)]===_0x50ddea),d[_0x3fc493(0x234)](_0x50adfe=>_0x50adfe[_0x3fc493(0x1c6)]));}[_0x4ba9c1(0x2c4)](){const _0x57d1db=_0x4ba9c1;this[_0x57d1db(0x24e)][_0x57d1db(0xb4)](a[_0x57d1db(0x2e7)][_0x57d1db(0x1bb)])[_0x57d1db(0x74)](d[_0x57d1db(0x2a5)](this[_0x57d1db(0x9b)]))[_0x57d1db(0x1a4)](async _0x58b750=>{const _0x278869=_0x57d1db,_0x547449=_0x58b750[_0x278869(0xd6)](),_0x556871=await this[_0x278869(0x19d)](_0x547449);this[_0x278869(0x1fb)][_0x278869(0xb2)](_0x556871),this[_0x278869(0x2c1)][_0x278869(0x82)](_0x547449,_0x556871);}),this[_0x57d1db(0x24e)]['getTypeOfUnitAdded$'](a[_0x57d1db(0x2e7)][_0x57d1db(0x2ae)])[_0x57d1db(0x74)](d[_0x57d1db(0x2a5)](this[_0x57d1db(0x9b)]))['pipe'](d[_0x57d1db(0xdd)](_0x54e133=>!_0x54e133[_0x57d1db(0xd6)]()[_0x57d1db(0xb8)]('__')))['subscribe'](async _0x3cf694=>{const _0x43de3e=_0x57d1db,_0x3b29f5=_0x3cf694[_0x43de3e(0xd6)](),_0x55516d=await this['_startDocCollabCursor'](_0x3b29f5);this['_entityInit$'][_0x43de3e(0xb2)](_0x55516d),this[_0x43de3e(0x2c1)][_0x43de3e(0x82)](_0x3b29f5,_0x55516d);}),d[_0x57d1db(0x19c)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x57d1db(0x2e7)]['UNIVER_DOC']),this['_univerInstanceService'][_0x57d1db(0x1c3)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](d[_0x57d1db(0x2a5)](this[_0x57d1db(0x9b)]))['subscribe'](_0x55acc3=>{const _0x4a42fa=_0x57d1db,_0x1f0c2e=_0x55acc3[_0x4a42fa(0xd6)](),_0x30e6f5=this['_entities'][_0x4a42fa(0x17b)](_0x1f0c2e);_0x30e6f5&&(_0x30e6f5[_0x4a42fa(0x195)](),this[_0x4a42fa(0x2c1)][_0x4a42fa(0x232)](_0x1f0c2e));});}async[_0x4ba9c1(0x19d)](_0x311204){const _0x4a97a4=_0x4ba9c1,_0x395088=await this[_0x4a97a4(0x1ef)]['requireSession'](_0x311204),_0x1369f6=this[_0x4a97a4(0x1b6)]['createInstance'](Se,_0x311204,_0x395088);return _0x1369f6[_0x4a97a4(0x100)](),_0x1369f6;}async[_0x4ba9c1(0x23f)](_0xcebbfa){const _0x150750=_0x4ba9c1,_0x5d385e=await this[_0x150750(0x1ef)][_0x150750(0x10c)](_0xcebbfa),_0x83e1d5=this['_injector']['createInstance'](fe,_0xcebbfa,_0x5d385e);return _0x83e1d5['init'](),_0x83e1d5;}};x=ct([ie(0x0,a[_0x4ba9c1(0x247)]),ie(0x1,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0x11f)])),ie(0x2,a[_0x4ba9c1(0x1f9)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x5015ea,_0x535ae1){const _0x34139f=_0x4ba9c1;let {radius:_0x1b4e7e,width:_0x296a80,height:_0x2b2b71}=_0x535ae1;_0x1b4e7e=_0x1b4e7e!=null?_0x1b4e7e:0x0,_0x296a80=_0x296a80!=null?_0x296a80:0x1e,_0x2b2b71=_0x2b2b71!=null?_0x2b2b71:0x1e;let _0x2d5c84=0x0,_0x266a42=0x0,_0xae7982=0x0;_0x2d5c84=_0x266a42=_0xae7982=Math['min'](_0x1b4e7e,_0x296a80/0x2,_0x2b2b71/0x2),_0x5015ea[_0x34139f(0x117)](),_0x5015ea[_0x34139f(0x176)](_0x2d5c84,0x0),_0x5015ea[_0x34139f(0xea)](_0x296a80-_0x266a42,0x0),_0x5015ea[_0x34139f(0x14f)](_0x296a80-_0x266a42,_0x266a42,_0x266a42,Math['PI']*0x3/0x2,0x0,!0x1),_0x5015ea[_0x34139f(0xea)](_0x296a80,_0x2b2b71-_0xae7982),_0x5015ea[_0x34139f(0x14f)](_0x296a80-_0xae7982,_0x2b2b71-_0xae7982,_0xae7982,0x0,Math['PI']/0x2,!0x1),_0x5015ea[_0x34139f(0xea)](0x0,_0x2b2b71),_0x5015ea[_0x34139f(0xea)](0x0,_0x2d5c84),_0x5015ea[_0x34139f(0x14f)](_0x2d5c84,_0x2d5c84,_0x2d5c84,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5015ea[_0x34139f(0x116)](),_0x535ae1[_0x34139f(0x260)]&&(_0x5015ea[_0x34139f(0x193)](),_0x5015ea[_0x34139f(0x1f1)]=_0x535ae1[_0x34139f(0x260)],_0x535ae1[_0x34139f(0x295)]===_0x34139f(0x12d)?_0x5015ea['fill'](_0x34139f(0x12d)):_0x5015ea[_0x34139f(0x260)](),_0x5015ea[_0x34139f(0xa7)]());}class ee extends p[_0x4ba9c1(0x2f4)]{constructor(_0x578644,_0x245296){const _0x6bc70b=_0x4ba9c1;super(_0x578644,_0x245296),h(this,_0x6bc70b(0x75)),h(this,_0x6bc70b(0x226)),(this[_0x6bc70b(0x75)]=_0x245296==null?void 0x0:_0x245296['color'],this[_0x6bc70b(0x226)]=_0x245296==null?void 0x0:_0x245296[_0x6bc70b(0x226)]);}static[_0x4ba9c1(0x27e)](_0x1df356,_0x303c2e){const _0x33fb33=_0x4ba9c1,{text:_0x3b0f21,color:_0x5a9943}=_0x303c2e;_0x1df356['save'](),_0x1df356[_0x33fb33(0x28c)]=_0x33fb33(0x92);const _0x152497=_0x1df356[_0x33fb33(0x2a8)](_0x3b0f21)[_0x33fb33(0x190)],_0x464419=Math['min'](_0x152497+0x2*ne,Re);_t(_0x1df356,{'height':K,'radius':0x4,'width':_0x464419,'fill':_0x5a9943}),_0x1df356['fillStyle']=_0x33fb33(0x1c9);const _0x42921c=ne,_0x5de67d=K-lt,_0x296537=Re-0x2*ne;if(_0x152497>_0x296537){let _0x5b1b1='',_0x5e9a79=0x0;for(const _0x597b00 of _0x3b0f21){const _0x151ec2=_0x1df356[_0x33fb33(0x2a8)](_0x597b00)[_0x33fb33(0x190)];if(_0x5e9a79+_0x151ec2<=_0x296537-_0x1df356[_0x33fb33(0x2a8)](_0x33fb33(0xca))[_0x33fb33(0x190)])_0x5b1b1+=_0x597b00,_0x5e9a79+=_0x151ec2;else{_0x5b1b1+=_0x33fb33(0xca);break;}}_0x1df356['fillText'](_0x5b1b1,_0x42921c,_0x5de67d);}else _0x1df356['fillText'](_0x3b0f21,_0x42921c,_0x5de67d);_0x1df356['restore']();}['_draw'](_0x2ce506){const _0x2b5fea=_0x4ba9c1;ee[_0x2b5fea(0x27e)](_0x2ce506,this);}}const re=_0x4ba9c1(0x192),ht='collab-text-range-',ut=_0x4ba9c1(0x149),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x4ba9c1(0x244);class De{constructor(_0x2a97a2,_0x3bf856,_0x44d81b,_0x3218bc){const _0x242be1=_0x4ba9c1;h(this,_0x242be1(0x1ab),[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,_0x242be1(0x23d),null),h(this,_0x242be1(0xbc),null),h(this,_0x242be1(0x1e5),null),(this[_0x242be1(0x10d)]=_0x2a97a2,this[_0x242be1(0x2d1)]=_0x3bf856,this[_0x242be1(0x1c1)]=_0x44d81b,this[_0x242be1(0x6f)]=_0x3218bc,this[_0x242be1(0x122)]());}set[_0x4ba9c1(0x183)](_0xfafbb6){const _0x2f6382=_0x4ba9c1;_0xfafbb6?(this[_0x2f6382(0x23d)]&&this['_anchorDot']['hide'](),this['_textBubble']&&this[_0x2f6382(0x223)][_0x2f6382(0x245)]()):(this['_anchorDot']&&this[_0x2f6382(0x23d)][_0x2f6382(0x245)](),this[_0x2f6382(0x223)]&&this[_0x2f6382(0x223)][_0x2f6382(0xbe)]());}['dispose'](){const _0x23ddf2=_0x4ba9c1;for(const _0x3f6178 of this[_0x23ddf2(0x1ab)])_0x3f6178[_0x23ddf2(0x195)]();this[_0x23ddf2(0x223)]&&this[_0x23ddf2(0x223)][_0x23ddf2(0x195)](),this[_0x23ddf2(0x23d)]&&this['_anchorDot'][_0x23ddf2(0x195)](),this[_0x23ddf2(0x2e5)]&&this[_0x23ddf2(0x2e5)][_0x23ddf2(0x195)](),this[_0x23ddf2(0x1e5)]&&this[_0x23ddf2(0x1e5)]();}['_render'](){const _0x23d7e3=_0x4ba9c1;var _0x2f45da;const {_docSkeleton:_0x179da8,_document:_0x5c9679}=this,{color:_0x4cff32,name:_0x1e867b,ranges:_0x4ed5fb}=this['_cursor'],_0x517a73=_0x5c9679[_0x23d7e3(0x2b2)](),{docsLeft:_0xe31945,docsTop:_0x278a7e}=_0x517a73,_0x62ce7e=new b['NodePositionConvertToCursor'](_0x517a73,_0x179da8);for(const {startOffset:_0x4a67af,endOffset:_0x4a561e,rangeType:_0xc1a404,segmentId:_0x313b88,segmentPage:_0x3f3a09,collapsed:_0x56df9b,isActive:_0x3591a3}of _0x4ed5fb){const _0x31b4c0=_0x179da8[_0x23d7e3(0x8d)](_0x4a67af,!0x0,_0x313b88,_0x3f3a09);let _0x583332=_0x179da8[_0x23d7e3(0x8d)](_0x4a561e,!0x0,_0x313b88,_0x3f3a09);if(_0x583332==null&&(_0x583332=_0x179da8[_0x23d7e3(0x8d)](_0x4a561e-0x1,!0x1,_0x313b88,_0x3f3a09)),_0x3591a3){const {contentBoxPointGroup:_0x26e4e5}=_0x62ce7e[_0x23d7e3(0xbf)](_0x583332,_0x583332);if(_0x26e4e5[_0x23d7e3(0x1da)]===0x0)continue;this[_0x23d7e3(0x102)](_0x4cff32,_0x26e4e5,_0xe31945,_0x278a7e,_0x1e867b),this[_0x23d7e3(0x1e5)]=this[_0x23d7e3(0x1f7)]();}if(_0x31b4c0&&_0x583332){if(_0xc1a404===a[_0x23d7e3(0x286)][_0x23d7e3(0x8f)]){const _0x4dee00=new b[(_0x23d7e3(0x23c))](_0x517a73,_0x179da8),{pointGroup:_0x75b1d4}=(_0x2f45da=_0x4dee00[_0x23d7e3(0xbf)](_0x31b4c0,_0x583332))!=null?_0x2f45da:{};if(_0x75b1d4==null||_0x75b1d4[_0x23d7e3(0x1da)]===0x0)continue;this[_0x23d7e3(0x185)](_0x4cff32,_0x75b1d4,_0xe31945,_0x278a7e);}else{if(!_0x56df9b){const {borderBoxPointGroup:_0x496d2f}=_0x62ce7e[_0x23d7e3(0xbf)](_0x31b4c0,_0x583332);if(_0x496d2f[_0x23d7e3(0x1da)]===0x0)continue;this[_0x23d7e3(0x7c)](_0x4cff32,_0x496d2f,_0xe31945,_0x278a7e);}}}}}[_0x4ba9c1(0x102)](_0x3c47,_0x2577dc,_0xc620ac,_0x3365c9,_0x170b4b){const _0x13d679=_0x4ba9c1,_0x17a632=this[_0x13d679(0x17c)](_0x2577dc),{left:_0x5f3326,top:_0x4a8b7a,height:_0xfeb5d8}=_0x17a632,_0xa930d2=this[_0x13d679(0x118)](),_0x277c18=ft/_0xa930d2,_0x5420b2=new p[(_0x13d679(0xc1))](re+a['Tools'][_0x13d679(0x274)](k),{'left':_0x5f3326+_0xc620ac-_0x277c18,'top':_0x4a8b7a+_0x3365c9,'height':_0xfeb5d8,'width':dt,'fill':_0x3c47||p[_0x13d679(0x154)](a[_0x13d679(0x163)]['black'],0x0),'strokeWidth':_0x277c18,'stroke':St,'evented':!0x0});this[_0x13d679(0x2e5)]=_0x5420b2,this['_scene'][_0x13d679(0xbb)](_0x5420b2,b[_0x13d679(0xb9)]);const _0x16ef1b=new p[(_0x13d679(0xc1))](re+a['Tools']['generateRandomId'](k),{'left':_0x5f3326+_0xc620ac-_0x277c18,'top':_0x4a8b7a+_0x3365c9-oe/0x2,'height':oe,'width':oe,'fill':_0x3c47||p['getColor'](a[_0x13d679(0x163)][_0x13d679(0x19e)],0x0),'strokeWidth':0x0,'stroke':_0x3c47||p[_0x13d679(0x154)](a[_0x13d679(0x163)][_0x13d679(0x19e)],0x0),'evented':!0x1});this[_0x13d679(0x23d)]=_0x16ef1b,this[_0x13d679(0x2d1)][_0x13d679(0xbb)](_0x16ef1b,b[_0x13d679(0xb9)]);const _0x53c6f4=new ee(re+a[_0x13d679(0x136)][_0x13d679(0x274)](k),{'left':_0x5f3326+_0xc620ac-_0x277c18,'top':_0x4a8b7a+_0x3365c9-K,'text':_0x170b4b,'color':_0x3c47});this['_textBubble']=_0x53c6f4,this[_0x13d679(0x2d1)]['addObject'](_0x53c6f4,b['TEXT_RANGE_LAYER_INDEX']),this[_0x13d679(0x183)]=!0x1;}[_0x4ba9c1(0x1f7)](){const _0x5b2914=_0x4ba9c1,_0x2708aa=this[_0x5b2914(0x2e5)]['onPointerEnter$'][_0x5b2914(0x242)](()=>{const _0x26620b=_0x5b2914;this[_0x26620b(0x183)]=!0x0;}),_0x15500d=this['_anchor'][_0x5b2914(0x2bd)][_0x5b2914(0x242)](()=>{const _0x4859cb=_0x5b2914;this[_0x4859cb(0xbc)]&&clearTimeout(this[_0x4859cb(0xbc)]),this[_0x4859cb(0xbc)]=setTimeout(()=>{const _0xd3aa60=_0x4859cb;this[_0xd3aa60(0x183)]=!0x1;},0x7d0);});return()=>{const _0x2ddce2=_0x5b2914;_0x2708aa[_0x2ddce2(0x170)](),_0x15500d[_0x2ddce2(0x170)]();};}[_0x4ba9c1(0x7c)](_0x49560e,_0x2b259e,_0x3775aa,_0x3b0d9e){const _0x1fd245=_0x4ba9c1,_0x12ebb2=new a['ColorKit'](_0x49560e)[_0x1fd245(0x269)](0.2)['toRgbString'](),_0x120dac=new p[(_0x1fd245(0x88))](ht+a[_0x1fd245(0x136)][_0x1fd245(0x274)](k),{'pointsGroup':_0x2b259e,'fill':_0x12ebb2||p[_0x1fd245(0x154)](a[_0x1fd245(0x163)][_0x1fd245(0x19e)],0.2),'left':_0x3775aa,'top':_0x3b0d9e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1fd245(0x20e)](_0x120dac),this['_scene'][_0x1fd245(0xbb)](_0x120dac,b[_0x1fd245(0xb9)]);}[_0x4ba9c1(0x185)](_0xb5123f,_0x1a8e99,_0x7502a5,_0x4851ce){const _0x451d0b=_0x4ba9c1,_0x16a408=new a[(_0x451d0b(0x285))](_0xb5123f)[_0x451d0b(0x269)](0.2)[_0x451d0b(0x178)](),_0x3897ef=new p[(_0x451d0b(0x88))](ut+a[_0x451d0b(0x136)][_0x451d0b(0x274)](k),{'pointsGroup':_0x1a8e99,'fill':_0x16a408||p['getColor'](a[_0x451d0b(0x163)][_0x451d0b(0x19e)],0.2),'left':_0x7502a5,'top':_0x4851ce,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x451d0b(0x20e)](_0x3897ef),this['_scene'][_0x451d0b(0xbb)](_0x3897ef,b[_0x451d0b(0xb9)]);}[_0x4ba9c1(0x17c)](_0x3c2728){const _0x503fdf=_0x3c2728[0x0],_0x447d97=_0x503fdf[0x0],_0x35cbdc=_0x503fdf[0x2],{x:_0x23aab2,y:_0x239f15}=_0x447d97,{x:_0x2fa9c0,y:_0x20a147}=_0x35cbdc;return{'left':_0x23aab2,'top':_0x239f15,'width':_0x2fa9c0-_0x23aab2,'height':_0x20a147-_0x239f15};}['_getScale'](){const _0x5f05e3=_0x4ba9c1,{scaleX:_0x35ade6,scaleY:_0x43265}=this['_scene'][_0x5f05e3(0x227)]();return Math['max'](_0x35ade6,_0x43265);}}var It=Object[_0x4ba9c1(0x23e)],vt=(_0x3845f7,_0x598dce,_0x3daee6,_0x40d931)=>{const _0x22483a=_0x4ba9c1;for(var _0x27f54a=_0x40d931>0x1?void 0x0:_0x40d931?It(_0x598dce,_0x3daee6):_0x598dce,_0xc5890f=_0x3845f7[_0x22483a(0x1da)]-0x1,_0x58e3ec;_0xc5890f>=0x0;_0xc5890f--)(_0x58e3ec=_0x3845f7[_0xc5890f])&&(_0x27f54a=_0x58e3ec(_0x27f54a)||_0x27f54a);return _0x27f54a;},W=(_0x522524,_0x3888dd)=>(_0x314db5,_0x4a7026)=>_0x3888dd(_0x314db5,_0x4a7026,_0x522524);let Ie=class extends a[_0x4ba9c1(0x1b8)]{constructor(_0x43e6fa,_0x369eec,_0x1d04c1,_0x3b9b6a,_0x45ce57){const _0x3df863=_0x4ba9c1;super(),h(this,_0x3df863(0xab),[]),h(this,_0x3df863(0x194),[]),(this[_0x3df863(0x277)]=_0x43e6fa,this['_docSkeletonManagerService']=_0x369eec,this['_collabCursorController']=_0x1d04c1,this['_commandService']=_0x3b9b6a,this['_themeService']=_0x45ce57,this[_0x3df863(0x2c4)]());}[_0x4ba9c1(0x2c4)](){const _0x10e420=_0x4ba9c1,_0x1b2981=this[_0x10e420(0x277)][_0x10e420(0x17f)],_0x3705c8=this[_0x10e420(0x1a6)];this[_0x10e420(0x2db)](d[_0x10e420(0xfc)]([this[_0x10e420(0xb5)][_0x10e420(0x191)](_0x1b2981),this[_0x10e420(0x84)][_0x10e420(0x292)]])['pipe']($[_0x10e420(0x2f7)](([_0x36d3b9,_0xd3d607])=>({'skeleton':_0x3705c8[_0x10e420(0xd7)](),'cursors':[..._0x36d3b9['values']()][_0x10e420(0x29a)](_0xcd5693=>({..._0xcd5693,'color':this[_0x10e420(0x84)]['getColorFromTheme'](_0xcd5693['color'])}))})))[_0x10e420(0x1a4)](_0x25d87d=>{const _0x190844=_0x10e420;if(this[_0x190844(0x111)](),_0x25d87d){const {skeleton:_0x310199,cursors:_0x211692}=_0x25d87d;this[_0x190844(0x1a1)](_0x310199,_0x211692);}})),this['_initResize'](),this[_0x10e420(0x95)]();}[_0x4ba9c1(0x1a1)](_0x216aed,_0x5ca3a4){const _0x4ad6ff=_0x4ba9c1,{scene:_0x538f6d,mainComponent:_0x319dca}=this[_0x4ad6ff(0x277)],_0x19d1f1=_0x5ca3a4['map'](_0x50c838=>new De(_0x50c838,_0x538f6d,_0x216aed,_0x319dca));this[_0x4ad6ff(0xab)]=_0x19d1f1,this[_0x4ad6ff(0x194)]=_0x5ca3a4;}[_0x4ba9c1(0x25f)](){const _0x4810d4=_0x4ba9c1;this[_0x4810d4(0x111)]();const {scene:_0x1fbe94,mainComponent:_0x1800da}=this[_0x4810d4(0x277)],_0x308000=this[_0x4810d4(0x1a6)][_0x4810d4(0xd7)](),_0x45caab=this[_0x4810d4(0x194)]['map'](_0x34983d=>new De(_0x34983d,_0x1fbe94,_0x308000,_0x1800da));this['_cursorShapes']=_0x45caab;}['_removeCollabCursors'](){const _0x404d3d=_0x4ba9c1;this['_cursorShapes'][_0x404d3d(0xf8)](_0x11449b=>_0x11449b[_0x404d3d(0x195)]()),this[_0x404d3d(0xab)]=[];}[_0x4ba9c1(0x95)](){const _0x20571f=_0x4ba9c1,_0x48b8b1=[b['SetDocZoomRatioOperation']['id']];this[_0x20571f(0x2db)](this[_0x20571f(0x112)][_0x20571f(0x15b)](_0x26a82f=>{const _0x12bc0b=_0x20571f;_0x48b8b1[_0x12bc0b(0x2d7)](_0x26a82f['id'])&&_0x26a82f['params']['unitId']===this[_0x12bc0b(0x277)][_0x12bc0b(0x17f)]&&this[_0x12bc0b(0x25f)]();}));}['_initResize'](){const _0x1c6b3b=_0x4ba9c1;this[_0x1c6b3b(0x2db)](a[_0x1c6b3b(0x1f3)](this[_0x1c6b3b(0x277)]['engine'][_0x1c6b3b(0x1e4)])['pipe']($[_0x1c6b3b(0xdd)](_0xe258d4=>_0xe258d4['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x1c6b3b(0x7f)](0x10))[_0x1c6b3b(0x1a4)](()=>{const _0x341a7a=_0x1c6b3b;this[_0x341a7a(0x25f)]();}));}};Ie=vt([W(0x1,a[_0x4ba9c1(0x1f9)](Y[_0x4ba9c1(0x1a9)])),W(0x2,a[_0x4ba9c1(0x1f9)](x)),W(0x3,a[_0x4ba9c1(0xb3)]),W(0x4,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0xa1)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x4ba9c1(0x2f4)]{constructor(_0x52aa26,_0x15921c){const _0x160f00=_0x4ba9c1;super(_0x52aa26,_0x15921c),h(this,_0x160f00(0x272)),h(this,_0x160f00(0x2dd),!0x1),h(this,_0x160f00(0x2e3)),h(this,_0x160f00(0x146),''),h(this,_0x160f00(0x2fb),_0x160f00(0x2c2)),h(this,'_backgroundColor'),(_0x15921c&&this[_0x160f00(0x2f1)](_0x15921c),this[_0x160f00(0x182)][_0x160f00(0x242)](()=>this[_0x160f00(0x2f1)]({'hovered':!0x0})),this[_0x160f00(0x2bd)][_0x160f00(0x242)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4ba9c1(0x2f1)](_0x48ae4b){const _0x1ac769=_0x4ba9c1;var _0x10754d,_0x329b0d,_0x32141d,_0x4d744b,_0x4cfe6b,_0x871447;this[_0x1ac769(0x272)]=(_0x10754d=_0x48ae4b['color'])!=null?_0x10754d:this[_0x1ac769(0x272)],this['_hovered']=(_0x329b0d=_0x48ae4b[_0x1ac769(0x29e)])!=null?_0x329b0d:this[_0x1ac769(0x2dd)],this['_range']=(_0x32141d=_0x48ae4b['range'])!=null?_0x32141d:this['_range'],this[_0x1ac769(0x146)]=(_0x4d744b=_0x48ae4b[_0x1ac769(0xd2)])!=null?_0x4d744b:this['_name'],this['_labelPosition']=(_0x4cfe6b=_0x48ae4b[_0x1ac769(0xf4)])!=null?_0x4cfe6b:this[_0x1ac769(0x2fb)],this[_0x1ac769(0x187)]=(_0x871447=_0x48ae4b[_0x1ac769(0x2d2)])!=null?_0x871447:this['_backgroundColor'],this['transformByState']({'width':_0x48ae4b[_0x1ac769(0x190)],'height':_0x48ae4b['height']});}['onMouseMove'](_0x459d26){const _0x564d16=_0x4ba9c1,{row:_0x3c610c,column:_0x236023}=_0x459d26;if(_0x3c610c>=this[_0x564d16(0x2e3)][_0x564d16(0x239)]&&_0x3c610c<=this[_0x564d16(0x2e3)]['endRow']&&_0x236023>=this[_0x564d16(0x2e3)][_0x564d16(0x169)]&&_0x236023<=this[_0x564d16(0x2e3)][_0x564d16(0xac)]){this[_0x564d16(0x2f1)]({'hovered':!0x0});return;}this[_0x564d16(0x2f1)]({'hovered':!0x1});}[_0x4ba9c1(0x257)](_0xf8f0d0){return!0x1;}[_0x4ba9c1(0x2c7)](_0x480e21){const _0x271a01=_0x4ba9c1;p[_0x271a01(0xc1)][_0x271a01(0x27e)](_0x480e21,{'width':this[_0x271a01(0x190)],'height':this[_0x271a01(0x243)],'strokeWidth':mt,'stroke':this[_0x271a01(0x272)],'evented':!0x1,'fill':this[_0x271a01(0x187)]}),this[_0x271a01(0x2dd)]&&(_0x480e21[_0x271a01(0x193)](),_0x480e21[_0x271a01(0x7d)](0x1,0x0,0x0,0x1,this[_0x271a01(0x190)],this[_0x271a01(0x2fb)]===_0x271a01(0x2d0)?0x0:-0x14),ee['drawWith'](_0x480e21,{'text':this['_name'],'color':this[_0x271a01(0x272)]}),_0x480e21[_0x271a01(0xa7)]());}}var Ct=Object[_0x4ba9c1(0x23e)],pt=(_0x178d38,_0x12c273,_0xfb65cb,_0x5d4402)=>{const _0x24e0d9=_0x4ba9c1;for(var _0x331dde=_0x5d4402>0x1?void 0x0:_0x5d4402?Ct(_0x12c273,_0xfb65cb):_0x12c273,_0x411d6d=_0x178d38[_0x24e0d9(0x1da)]-0x1,_0x1d6ae4;_0x411d6d>=0x0;_0x411d6d--)(_0x1d6ae4=_0x178d38[_0x411d6d])&&(_0x331dde=_0x1d6ae4(_0x331dde)||_0x331dde);return _0x331dde;},ae=(_0x50dfc3,_0x42326b)=>(_0xb5b4fa,_0x40f776)=>_0x42326b(_0xb5b4fa,_0x40f776,_0x50dfc3);const bt=0x1389;let ve=class extends a[_0x4ba9c1(0x1b8)]{constructor(_0x465e11,_0x277fe4,_0x278226,_0x55b2c0){const _0x4ceff8=_0x4ba9c1;super(),h(this,_0x4ceff8(0x194),new Set()),h(this,_0x4ceff8(0x184),null),(this[_0x4ceff8(0x277)]=_0x465e11,this['_sheetSkeletonManagerService']=_0x277fe4,this[_0x4ceff8(0xb5)]=_0x278226,this['_themeService']=_0x55b2c0,this[_0x4ceff8(0x2c4)]());}['_init'](){const _0x45bf6a=_0x4ba9c1;this[_0x45bf6a(0x150)][_0x45bf6a(0x18e)][_0x45bf6a(0x74)]($[_0x45bf6a(0x2a5)](this[_0x45bf6a(0x9b)]),$[_0x45bf6a(0x234)](_0xe8f776=>{const _0x5dd1c6=_0x45bf6a;if(_0xe8f776){const _0x3145aa=_0xe8f776['sheetId'];return d[_0x5dd1c6(0xfc)](this['_collabCursorController'][_0x5dd1c6(0x191)](this[_0x5dd1c6(0x277)][_0x5dd1c6(0x17f)]),this['_themeService'][_0x5dd1c6(0x292)])[_0x5dd1c6(0x74)]($[_0x5dd1c6(0x2f7)](([_0x4d0a31,_0x1e704e])=>{const _0x40143d=_0x5dd1c6,_0x2a5805=new Map();return _0x4d0a31[_0x40143d(0xf8)]((_0x53df9d,_0x51e406)=>{const _0x147a9d=_0x40143d;if(_0x53df9d['sheetID']===_0x3145aa){const _0x2ccf07={..._0x53df9d};_0x2ccf07[_0x147a9d(0x75)]=this['_themeService']['getColorFromTheme'](_0x53df9d[_0x147a9d(0x75)]),_0x2a5805[_0x147a9d(0x82)](_0x51e406,_0x2ccf07);}}),{'skeleton':_0xe8f776,'cursors':_0x2a5805};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x45bf6a(0x1a4)](({skeleton:_0x4e6eb4,cursors:_0x23566e})=>{const _0x1540d7=_0x45bf6a;this['_removeCollabCursors'](),_0x4e6eb4&&this[_0x1540d7(0x1a1)](_0x4e6eb4,_0x23566e);}),this[_0x45bf6a(0x150)][_0x45bf6a(0x18e)][_0x45bf6a(0x1a4)](_0x47e491=>{const _0x576ecc=_0x45bf6a;if(_0x47e491==null)return;const {skeleton:_0x35566c}=_0x47e491,{scene:_0x289a3d}=this[_0x576ecc(0x277)];_0x289a3d[_0x576ecc(0x2ab)][_0x576ecc(0x242)](a[_0x576ecc(0x2ef)](_0x39f3cb=>{const _0x366e9d=_0x576ecc;var _0x31cddc,_0x14ff6d;const {offsetX:_0x3d6a42,offsetY:_0x4d320d}=_0x39f3cb,{x:_0x4785b8,y:_0x4794ff}=_0x289a3d['getRelativeToViewportCoord'](p[_0x366e9d(0x2aa)]['FromArray']([_0x3d6a42,_0x4d320d])),{scaleX:_0x240cec,scaleY:_0x125d06}=_0x289a3d[_0x366e9d(0x227)](),_0x34dd11=_0x289a3d[_0x366e9d(0x18c)](p[_0x366e9d(0xff)][_0x366e9d(0x138)]),_0x464680=_0x289a3d['getVpScrollXYInfoByPosToVp'](p[_0x366e9d(0x2aa)][_0x366e9d(0x276)]([_0x4785b8,_0x4794ff]),_0x34dd11),_0x40625a=_0x35566c['getCellPositionByOffset'](_0x3d6a42,_0x4d320d,_0x240cec,_0x125d06,_0x464680);((_0x31cddc=this['_lastPointer'])==null?void 0x0:_0x31cddc[_0x366e9d(0x19b)])===_0x40625a[_0x366e9d(0x19b)]&&((_0x14ff6d=this[_0x366e9d(0x184)])==null?void 0x0:_0x14ff6d[_0x366e9d(0x1d4)])===_0x40625a[_0x366e9d(0x1d4)]||this[_0x366e9d(0x194)][_0x366e9d(0xf8)](_0x833a8b=>{_0x833a8b['onMouseMove'](_0x40625a);});},0x64));});}[_0x4ba9c1(0x1a1)](_0x2c3e9c,_0x4075cd){const _0x5203e1=_0x4ba9c1;var _0x5eb361;const _0x25feac=(_0x5eb361=this[_0x5203e1(0x150)][_0x5203e1(0x167)]())==null?void 0x0:_0x5eb361[_0x5203e1(0x24f)];if(!_0x25feac)return;const _0x168d36=this[_0x5203e1(0x2f8)]();if(!_0x168d36)return;this[_0x5203e1(0x194)]['forEach'](_0x42c1fe=>{const _0xff628a=_0x5203e1;_0x42c1fe[_0xff628a(0xc8)]();});const {scene:_0x33bc44}=_0x168d36,_0x52d06b=Et(Array['from'](_0x4075cd[_0x5203e1(0x70)]()))[_0x5203e1(0x2f7)](_0x4d5e5b=>{const _0x12c8d0=_0x5203e1,{color:_0x88b553,range:_0x10f691,name:_0x3085cb,selection:_0x3e2452,sheetID:_0x1de7e6}=_0x4d5e5b,{startColumn:_0x7b2567,startRow:_0x12e4b1,endColumn:_0xfc9430,endRow:_0x1b985b}=_0x10f691,_0x2a665f=X[_0x12c8d0(0xc4)](_0x12e4b1,_0x7b2567,_0x33bc44,_0x25feac),_0x9a3eb5=X['getCoordByCell'](_0x1b985b,_0xfc9430,_0x33bc44,_0x25feac),{columnHeaderHeightAndMarginTop:_0x49ae76}=_0x25feac,{startX:_0x230a7c,startY:_0x7b8856}=_0x2a665f,{endX:_0x153ce2,endY:_0x3e08c6}=_0x9a3eb5,_0x52d3b6=_0x153ce2-_0x230a7c,_0x154eac=_0x3e08c6-_0x7b8856,_0x5f3b98={'labelPosition':_0x7b8856-_0x49ae76>=K?_0x12c8d0(0x2c2):_0x12c8d0(0x2d0),'sheetID':_0x1de7e6,'range':_0x10f691,'color':_0x88b553,'name':_0x3085cb,'selection':_0x3e2452,'left':_0x230a7c,'top':_0x7b8856,'width':_0x52d3b6,'height':_0x154eac,'evented':!0x1,'zIndex':bt};return new Pe(_0x3085cb,_0x5f3b98);});_0x33bc44[_0x5203e1(0xcb)](_0x52d06b,gt),this[_0x5203e1(0x194)]=new Set(_0x52d06b);}[_0x4ba9c1(0x111)](){const _0x2a6a66=_0x4ba9c1;var _0x255ecd;(_0x255ecd=this[_0x2a6a66(0x194)])==null||_0x255ecd[_0x2a6a66(0xf8)](_0x4d29f0=>_0x4d29f0[_0x2a6a66(0x195)]());}[_0x4ba9c1(0x2f8)](){const _0x27a17a=_0x4ba9c1;return X[_0x27a17a(0xc0)](this[_0x27a17a(0x277)][_0x27a17a(0x21b)],this['_context']);}};ve=pt([ae(0x1,a['Inject'](X[_0x4ba9c1(0xdb)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0xa1)]))],ve);function Et(_0x13c95b){const _0x254fd6=_0x4ba9c1,_0x3abe94=new Map();return _0x13c95b[_0x254fd6(0xf8)](_0x47f794=>{const _0x5adf55=_0x254fd6;if(_0x3abe94['has'](_0x47f794[_0x5adf55(0x1fe)])){const _0x1bf2bc=_0x3abe94[_0x5adf55(0x17b)](_0x47f794[_0x5adf55(0x1fe)]);_0x1bf2bc['name']+=',\x20'+_0x47f794[_0x5adf55(0xd2)];}else _0x3abe94[_0x5adf55(0x82)](_0x47f794['selection'],_0x47f794);}),Array[_0x254fd6(0x12b)](_0x3abe94[_0x254fd6(0x70)]());}var E=function(){const _0x3e78b7=_0x4ba9c1;return E=Object['assign']||function(_0x495af3){const _0x55ed5a=_0x167f;for(var _0x30cfe4,_0x4f4e17=0x1,_0x1db6df=arguments[_0x55ed5a(0x1da)];_0x4f4e17<_0x1db6df;_0x4f4e17++){_0x30cfe4=arguments[_0x4f4e17];for(var _0x66fa58 in _0x30cfe4)Object[_0x55ed5a(0xc7)]['hasOwnProperty']['call'](_0x30cfe4,_0x66fa58)&&(_0x495af3[_0x66fa58]=_0x30cfe4[_0x66fa58]);}return _0x495af3;},E[_0x3e78b7(0x12a)](this,arguments);},Tt=function(_0x7d3095,_0x28bbc0){const _0x54c4ce=_0x4ba9c1;var _0x56f6b1={};for(var _0x2370ae in _0x7d3095)Object[_0x54c4ce(0xc7)][_0x54c4ce(0x264)][_0x54c4ce(0x25e)](_0x7d3095,_0x2370ae)&&_0x28bbc0[_0x54c4ce(0x123)](_0x2370ae)<0x0&&(_0x56f6b1[_0x2370ae]=_0x7d3095[_0x2370ae]);if(_0x7d3095!=null&&typeof Object[_0x54c4ce(0x2f5)]==_0x54c4ce(0xcd)){for(var _0x41185f=0x0,_0x2370ae=Object[_0x54c4ce(0x2f5)](_0x7d3095);_0x41185f<_0x2370ae[_0x54c4ce(0x1da)];_0x41185f++)_0x28bbc0[_0x54c4ce(0x123)](_0x2370ae[_0x41185f])<0x0&&Object[_0x54c4ce(0xc7)][_0x54c4ce(0x114)][_0x54c4ce(0x25e)](_0x7d3095,_0x2370ae[_0x41185f])&&(_0x56f6b1[_0x2370ae[_0x41185f]]=_0x7d3095[_0x2370ae[_0x41185f]]);}return _0x56f6b1;},pe=M['forwardRef'](function(_0x4ea17c,_0x51c7f1){const _0x17ad62=_0x4ba9c1;var _0x39ba52=_0x4ea17c['icon'],_0x444666=_0x4ea17c['id'],_0x23af0e=_0x4ea17c[_0x17ad62(0x85)],_0x466151=_0x4ea17c[_0x17ad62(0x101)],_0x2daca9=Tt(_0x4ea17c,[_0x17ad62(0x99),'id','className',_0x17ad62(0x101)]),_0x3c4f00='univerjs-icon\x20univerjs-icon-'[_0x17ad62(0x159)](_0x444666,'\x20')[_0x17ad62(0x159)](_0x23af0e||'')['trim'](),_0x35dd20=M['useRef']('_'[_0x17ad62(0x159)](Dt()));return Ae(_0x39ba52,''[_0x17ad62(0x159)](_0x444666),{'defIds':_0x39ba52['defIds'],'idSuffix':_0x35dd20[_0x17ad62(0xf2)]},E({'ref':_0x51c7f1,'className':_0x3c4f00},_0x2daca9),_0x466151);});function Ae(_0x9d6af4,_0xda508c,_0x1cbb61,_0x36715b,_0x1b7ad6){const _0x55a30f=_0x4ba9c1;return M[_0x55a30f(0x9a)](_0x9d6af4[_0x55a30f(0x199)],E(E({'key':_0xda508c},Ot(_0x9d6af4,_0x1cbb61,_0x1b7ad6)),_0x36715b),(Rt(_0x9d6af4,_0x1cbb61)[_0x55a30f(0x10f)]||[])[_0x55a30f(0x2f7)](function(_0x285b09,_0x4b7684){const _0x15017d=_0x55a30f;return Ae(_0x285b09,''[_0x15017d(0x159)](_0xda508c,'-')[_0x15017d(0x159)](_0x9d6af4[_0x15017d(0x199)],'-')[_0x15017d(0x159)](_0x4b7684),_0x1cbb61,void 0x0,_0x1b7ad6);}));}function Ot(_0x2607e9,_0x3b66bc,_0x5090c6){const _0x3d9f8f=_0x4ba9c1;var _0x162e43=E({},_0x2607e9[_0x3d9f8f(0x2fc)]);_0x5090c6!=null&&_0x5090c6[_0x3d9f8f(0x18a)]&&_0x162e43['fill']===_0x3d9f8f(0x18a)&&(_0x162e43[_0x3d9f8f(0x260)]=_0x5090c6[_0x3d9f8f(0x18a)]),_0x2607e9[_0x3d9f8f(0x199)]===_0x3d9f8f(0x250)&&_0x162e43['id']&&(_0x162e43['id']=_0x162e43['id']+_0x3b66bc[_0x3d9f8f(0xc9)]),Object[_0x3d9f8f(0x236)](_0x162e43)[_0x3d9f8f(0xf8)](function(_0x51f4b1){const _0x1b654e=_0x3d9f8f;var _0x271722=_0x51f4b1[0x0],_0x55778c=_0x51f4b1[0x1];_0x271722===_0x1b654e(0x250)&&typeof _0x55778c==_0x1b654e(0x1e0)&&(_0x162e43[_0x271722]=_0x55778c[_0x1b654e(0x25d)](/url\(#(.*)\)/,'url(#$1'[_0x1b654e(0x159)](_0x3b66bc[_0x1b654e(0xc9)],')')));});var _0x2c22b6=_0x3b66bc[_0x3d9f8f(0x20f)];return!_0x2c22b6||_0x2c22b6[_0x3d9f8f(0x1da)]===0x0||(_0x2607e9[_0x3d9f8f(0x199)]===_0x3d9f8f(0x254)&&_0x162e43[_0x3d9f8f(0x1e3)]&&(_0x162e43[_0x3d9f8f(0x1e3)]=_0x162e43['xlink:href']+_0x3b66bc[_0x3d9f8f(0xc9)]),Object['entries'](_0x162e43)[_0x3d9f8f(0xf8)](function(_0x1defa3){const _0x233bf2=_0x3d9f8f;var _0x51a30d=_0x1defa3[0x0],_0x21ba86=_0x1defa3[0x1];typeof _0x21ba86==_0x233bf2(0x1e0)&&(_0x162e43[_0x51a30d]=_0x21ba86[_0x233bf2(0x25d)](/url\(#(.*)\)/,'url(#$1'[_0x233bf2(0x159)](_0x3b66bc['idSuffix'],')')));})),_0x162e43;}function Rt(_0x1775da,_0x37b2bb){const _0x5d0c2d=_0x4ba9c1;var _0x1d8b14,_0x4afdd9=_0x37b2bb[_0x5d0c2d(0x20f)];return!_0x4afdd9||_0x4afdd9[_0x5d0c2d(0x1da)]===0x0?_0x1775da:_0x1775da['tag']===_0x5d0c2d(0xd4)&&(!((_0x1d8b14=_0x1775da['children'])===null||_0x1d8b14===void 0x0)&&_0x1d8b14['length'])?E(E({},_0x1775da),{'children':_0x1775da[_0x5d0c2d(0x10f)][_0x5d0c2d(0x2f7)](function(_0x5f4e1a){const _0xa5d1ea=_0x5d0c2d;return typeof _0x5f4e1a[_0xa5d1ea(0x2fc)]['id']=='string'&&_0x4afdd9&&_0x4afdd9[_0xa5d1ea(0x2d7)](_0x5f4e1a['attrs']['id'])?E(E({},_0x5f4e1a),{'attrs':E(E({},_0x5f4e1a[_0xa5d1ea(0x2fc)]),{'id':_0x5f4e1a['attrs']['id']+_0x37b2bb[_0xa5d1ea(0xc9)]})}):_0x5f4e1a;})}):_0x1775da;}function Dt(){const _0x22c222=_0x4ba9c1;return Math[_0x22c222(0x142)]()['toString'](0x24)[_0x22c222(0x8b)](0x2,0x8);}pe[_0x4ba9c1(0x2a1)]=_0x4ba9c1(0x73);var Ut={'tag':_0x4ba9c1(0x25c),'attrs':{'xmlns':_0x4ba9c1(0x2ba),'fill':'none','viewBox':_0x4ba9c1(0x289),'width':_0x4ba9c1(0x1f8),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4ba9c1(0xc6)},'children':[{'tag':_0x4ba9c1(0x1bc),'attrs':{'stroke':_0x4ba9c1(0xd5),'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':_0x4ba9c1(0x26b),'strokeLinejoin':_0x4ba9c1(0x26b),'strokeWidth':1.2}}]},{'tag':_0x4ba9c1(0xd4),'attrs':{},'children':[{'tag':_0x4ba9c1(0x1d5),'attrs':{'id':_0x4ba9c1(0x1b5)},'children':[{'tag':_0x4ba9c1(0x1bc),'attrs':{'fill':'white','d':_0x4ba9c1(0x1c4)}}]}]}],'defIds':[_0x4ba9c1(0x1b5)]},ye=M[_0x4ba9c1(0xaf)](function(_0x2ed682,_0x478b25){const _0x211538=_0x4ba9c1;return M[_0x211538(0x9a)](pe,Object[_0x211538(0xe3)]({},_0x2ed682,{'id':_0x211538(0x1bf),'ref':_0x478b25,'icon':Ut}));});ye['displayName']=_0x4ba9c1(0x1bd);var Nt={'tag':_0x4ba9c1(0x25c),'attrs':{'xmlns':_0x4ba9c1(0x2ba),'fill':_0x4ba9c1(0x1fa),'viewBox':_0x4ba9c1(0xf7),'width':'1em','height':_0x4ba9c1(0x1f8)},'children':[{'tag':'g','attrs':{'clipPath':_0x4ba9c1(0x252)},'children':[{'tag':_0x4ba9c1(0x1bc),'attrs':{'stroke':_0x4ba9c1(0xd5),'d':_0x4ba9c1(0x222),'strokeLinecap':'round','strokeLinejoin':_0x4ba9c1(0x26b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4ba9c1(0x1d5),'attrs':{'id':_0x4ba9c1(0x2e6)},'children':[{'tag':_0x4ba9c1(0x1bc),'attrs':{'fill':_0x4ba9c1(0x181),'d':_0x4ba9c1(0x1c4),'transform':_0x4ba9c1(0x158)}}]}]}],'defIds':[_0x4ba9c1(0x2e6)]},$e=M[_0x4ba9c1(0xaf)](function(_0x163bcb,_0xa5ac75){const _0x3e325f=_0x4ba9c1;return M[_0x3e325f(0x9a)](pe,Object[_0x3e325f(0xe3)]({},_0x163bcb,{'id':_0x3e325f(0x203),'ref':_0xa5ac75,'icon':Nt}));});$e[_0x4ba9c1(0x2a1)]=_0x4ba9c1(0x2c6);function Mt(_0x5a33fb){const _0x1a6a46=_0x4ba9c1;switch(_0x5a33fb){case u[_0x1a6a46(0x11a)][_0x1a6a46(0x267)]:return _0x1a6a46(0x24c);case u['CollaborationStatus'][_0x1a6a46(0xe7)]:return _0x1a6a46(0xee);case u[_0x1a6a46(0x11a)][_0x1a6a46(0x288)]:return _0x1a6a46(0x1c8);case u[_0x1a6a46(0x11a)][_0x1a6a46(0x11b)]:return'collabStatus.notCollab';case u['CollaborationStatus']['AWAITING']:case u[_0x1a6a46(0x11a)]['AWAITING_WITH_PENDING']:return _0x1a6a46(0x1e7);case u[_0x1a6a46(0x11a)][_0x1a6a46(0x202)]:case u[_0x1a6a46(0x11a)][_0x1a6a46(0xe8)]:return'collabStatus.synced';}}function xe(_0x350422){const _0x385d5a=_0x4ba9c1,{status$:_0x5563a4}=_0x350422,_0x2602f5=T[_0x385d5a(0xc5)](_0x5563a4,u[_0x385d5a(0x11a)][_0x385d5a(0x11b)]),_0x175581=T[_0x385d5a(0x2ca)](a['LocaleService']),_0x264f48=T[_0x385d5a(0x2ca)](u['CollaborationSessionService']),_0x8bb659=_0x2602f5!==u[_0x385d5a(0x11a)][_0x385d5a(0x267)],_0x22b645=_0x175581['t'](Mt(_0x2602f5)),_0x2cd301=_0x8bb659?w[_0x385d5a(0x94)]($e,{}):w[_0x385d5a(0x94)](ye,{}),_0x572046=M[_0x385d5a(0x291)](()=>{const _0x401c5e=_0x385d5a;_0x8bb659||_0x264f48[_0x401c5e(0x2c0)]();},[_0x8bb659,_0x264f48]);function _0x304e3b(){const _0x10e3f5=_0x385d5a;return w[_0x10e3f5(0x1ee)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x572046,'children':[w['jsx']('div',{'className':D[_0x10e3f5(0x2e1)](_0x10e3f5(0x208),{'univer-text-green-500':_0x8bb659,'univer-text-red-500':!_0x8bb659}),'children':_0x2cd301}),w['jsx'](_0x10e3f5(0x128),{'className':_0x10e3f5(0xad),'children':_0x22b645})]});}return _0x8bb659?_0x304e3b():w[_0x385d5a(0x94)](D[_0x385d5a(0x20b)],{'title':_0x175581['t'](_0x385d5a(0x2b3)),'children':_0x304e3b()});}var Lt=Object[_0x4ba9c1(0x23e)],wt=(_0x9484a6,_0x4e6b89,_0x23db8a,_0x743a86)=>{for(var _0xe2e690=_0x743a86>0x1?void 0x0:_0x743a86?Lt(_0x4e6b89,_0x23db8a):_0x4e6b89,_0x5eaf2c=_0x9484a6['length']-0x1,_0x18b8da;_0x5eaf2c>=0x0;_0x5eaf2c--)(_0x18b8da=_0x9484a6[_0x5eaf2c])&&(_0xe2e690=_0x18b8da(_0xe2e690)||_0xe2e690);return _0xe2e690;},V=(_0x35160e,_0x1aabc9)=>(_0x4fe340,_0xf56765)=>_0x1aabc9(_0x4fe340,_0xf56765,_0x35160e);exports[_0x4ba9c1(0x1c7)]=class extends a[_0x4ba9c1(0x12c)]{constructor(_0x28b608,_0x24a636,_0x5b9891,_0x469bcb){const _0x5dafa0=_0x4ba9c1;super(),h(this,'_status$',new d['BehaviorSubject'](u[_0x5dafa0(0x11a)][_0x5dafa0(0x11b)])),(this['_univerInstanceService']=_0x28b608,this[_0x5dafa0(0x1b6)]=_0x24a636,this['_collaborationController']=_0x5b9891,this['_uiPartsService']=_0x469bcb,this[_0x5dafa0(0x209)](),this['_initStatusListener']());}[_0x4ba9c1(0x13d)](){const _0x55dd75=_0x4ba9c1;this['disposeWithMe'](this['_univerInstanceService'][_0x55dd75(0x18d)]['pipe'](d['switchMap'](()=>{const _0x43b5de=_0x55dd75,_0x330540=this[_0x43b5de(0x24e)][_0x43b5de(0x26d)]();return _0x330540?this[_0x43b5de(0x1d0)]['getCollabEntity$'](_0x330540['getUnitId']()):d['of'](null);}),d[_0x55dd75(0x234)](_0x86af55=>_0x86af55?_0x86af55[_0x55dd75(0x1fc)]:d['of'](u['CollaborationStatus'][_0x55dd75(0x11b)])))[_0x55dd75(0x1a4)](_0x468b28=>{const _0x2ff44a=_0x55dd75;this[_0x2ff44a(0x2b0)]['next'](_0x468b28);}));}[_0x4ba9c1(0x209)](){const _0x3b7665=_0x4ba9c1;this[_0x3b7665(0x2db)](this[_0x3b7665(0x290)][_0x3b7665(0xa6)](T['BuiltInUIPart']['HEADER_MENU'],()=>T['connectInjector'](Pt({'status$':this[_0x3b7665(0x2b0)]['asObservable']()}),this['_injector'])));}},exports[_0x4ba9c1(0x1c7)]=wt([V(0x0,a[_0x4ba9c1(0x247)]),V(0x1,a['Inject'](a[_0x4ba9c1(0x11f)])),V(0x2,a[_0x4ba9c1(0x1f9)](u['CollaborationController'])),V(0x3,T[_0x4ba9c1(0x233)])],exports[_0x4ba9c1(0x1c7)]);function Pt(_0x5304a9){const {status$:_0x2c99c1}=_0x5304a9;return function(){const _0x5cd51e=_0x167f;return w[_0x5cd51e(0x94)](xe,{'status$':_0x2c99c1});};}var At=Object[_0x4ba9c1(0x23e)],yt=(_0x28e782,_0x5384c0,_0x154528,_0x4129de)=>{for(var _0x1750dd=_0x4129de>0x1?void 0x0:_0x4129de?At(_0x5384c0,_0x154528):_0x5384c0,_0x507878=_0x28e782['length']-0x1,_0x3f3b6b;_0x507878>=0x0;_0x507878--)(_0x3f3b6b=_0x28e782[_0x507878])&&(_0x1750dd=_0x3f3b6b(_0x1750dd)||_0x1750dd);return _0x1750dd;},y=(_0x4bb016,_0x1306ec)=>(_0x3efa71,_0x1f9558)=>_0x1306ec(_0x3efa71,_0x1f9558,_0x4bb016);let q=class extends a[_0x4ba9c1(0x12c)]{constructor(_0x3a3a09,_0xbfda10,_0x15d3db,_0x4d6587,_0x3cfd69,_0x100c77){const _0x9afa79=_0x4ba9c1;super(),this[_0x9afa79(0x200)]=_0x3a3a09,this['_localCacheService']=_0xbfda10,this[_0x9afa79(0x137)]=_0x15d3db,this[_0x9afa79(0xcf)]=_0x4d6587,this[_0x9afa79(0x2f2)]=_0x3cfd69,this[_0x9afa79(0xf0)]=_0x100c77,this[_0x9afa79(0x71)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x2cabe8=_0x4ba9c1;this['disposeWithMe'](this['_beforeCloseService'][_0x2cabe8(0x155)](()=>{const _0x34e5e2=_0x2cabe8;if(this['_localCacheService'][_0x34e5e2(0x1dc)][_0x34e5e2(0x213)])return this[_0x34e5e2(0xf0)]['t'](_0x34e5e2(0x162));}));}[_0x4ba9c1(0x22a)](){const _0x201c1c=_0x4ba9c1;this[_0x201c1c(0x2db)](this[_0x201c1c(0x137)][_0x201c1c(0xc3)]['subscribe'](_0x4e2204=>{const _0x7be3de=_0x201c1c;_0x4e2204['id']===u[_0x7be3de(0x1ea)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x7be3de(0x245)]({'type':D['MessageType'][_0x7be3de(0x109)],'content':this[_0x7be3de(0xf0)]['t'](_0x7be3de(0x173))}),_0x4e2204['id']===u[_0x7be3de(0x1ea)][_0x7be3de(0x241)]&&this['_messageService'][_0x7be3de(0x245)]({'type':D[_0x7be3de(0xf9)][_0x7be3de(0x109)],'content':this[_0x7be3de(0xf0)]['t'](_0x7be3de(0x2a0))}),_0x4e2204['id']===u[_0x7be3de(0x1ea)][_0x7be3de(0x1eb)]&&this[_0x7be3de(0x2f2)][_0x7be3de(0x245)]({'title':this[_0x7be3de(0xf0)]['t'](_0x7be3de(0x2cd)),'content':this[_0x7be3de(0xf0)]['t']('permission.content'),'type':_0x7be3de(0x217),'duration':0x0}),_0x4e2204['id']===u[_0x7be3de(0x1ea)][_0x7be3de(0xe7)]&&this[_0x7be3de(0xcf)]['show']({'type':D[_0x7be3de(0xf9)][_0x7be3de(0x2bb)],'content':this[_0x7be3de(0xf0)]['t'](_0x7be3de(0x2a0))+'('+_0x4e2204['data']+')'}),_0x4e2204['id']===u['CollaborationUIEventId'][_0x7be3de(0x156)]&&this[_0x7be3de(0xcf)][_0x7be3de(0x245)]({'type':D[_0x7be3de(0xf9)][_0x7be3de(0x109)],'content':this['_localeService']['t'](_0x4e2204['data']||'')}),_0x4e2204['id']===u[_0x7be3de(0x1ea)]['SOCKET_FAILED_RETRY']&&this[_0x7be3de(0xcf)]['show']({'type':D['MessageType'][_0x7be3de(0x109)],'content':this['_localeService']['t'](_0x7be3de(0x2f6))}),_0x4e2204['id']===u['CollaborationUIEventId'][_0x7be3de(0x16d)]&&this['_messageService'][_0x7be3de(0x245)]({'type':D['MessageType'][_0x7be3de(0x2bb)],'content':this[_0x7be3de(0xf0)]['t'](_0x7be3de(0x27f))}),_0x4e2204['id']===u[_0x7be3de(0x1ea)][_0x7be3de(0x15e)]&&this['_messageService']['show']({'type':D[_0x7be3de(0xf9)]['Error'],'content':this['_localeService']['t'](_0x7be3de(0x1a2))});}));}};q=yt([y(0x0,T[_0x4ba9c1(0x256)]),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,T[_0x4ba9c1(0x2dc)]),y(0x4,T[_0x4ba9c1(0x25b)]),y(0x5,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0x1e8)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a[_0x4ba9c1(0x221)](_0x4ba9c1(0x1e2));var xt=Object[_0x4ba9c1(0x23e)],jt=(_0x4e693c,_0x57efad,_0x95cfb5,_0x5029c8)=>{const _0x401d39=_0x4ba9c1;for(var _0x1d6468=_0x5029c8>0x1?void 0x0:_0x5029c8?xt(_0x57efad,_0x95cfb5):_0x57efad,_0x18a419=_0x4e693c[_0x401d39(0x1da)]-0x1,_0x25587e;_0x18a419>=0x0;_0x18a419--)(_0x25587e=_0x4e693c[_0x18a419])&&(_0x1d6468=_0x25587e(_0x1d6468)||_0x1d6468);return _0x1d6468;},H=(_0x55f34b,_0x4dec2e)=>(_0x50fc94,_0x580d05)=>_0x4dec2e(_0x50fc94,_0x580d05,_0x55f34b);exports[_0x4ba9c1(0xa2)]=class extends a[_0x4ba9c1(0x1b8)]{constructor(_0x46efd5,_0x1982c4,_0x325ebb,_0x31ec8e,_0xcbd3cb){const _0x9c710e=_0x4ba9c1;super(),this[_0x9c710e(0x7b)]=_0x46efd5,this[_0x9c710e(0x1a7)]=_0x1982c4,this['_commandService']=_0x325ebb,this['_dataLoaderService']=_0x31ec8e,_0xcbd3cb?_0xcbd3cb==null||_0xcbd3cb['whenReady']()['then'](()=>this[_0x9c710e(0x2c4)]()):(this[_0x9c710e(0x1a7)][_0x9c710e(0x1aa)](_0x9c710e(0x1a5),_0x9c710e(0x1cf)),this['_init']());}async[_0x4ba9c1(0x2c4)](){const _0x5a5ff4=_0x4ba9c1,_0x57451a=this[_0x5a5ff4(0x7b)][_0x5a5ff4(0x1be)](_0x5a5ff4(0x21b)),_0x599b7f=this[_0x5a5ff4(0x7b)][_0x5a5ff4(0x1be)](_0x5a5ff4(0x26a)),_0x42f3e4=this[_0x5a5ff4(0x7b)]['getParam'](_0x5a5ff4(0x134));if(!_0x57451a||!_0x599b7f){this[_0x5a5ff4(0x1a7)][_0x5a5ff4(0x1aa)](_0x5a5ff4(0x1a5),_0x5a5ff4(0x15c));return;}const _0x4a0216=await this['_dataLoaderService'][_0x5a5ff4(0x2d9)](_0x57451a,Number(_0x599b7f),_0x42f3e4);_0x4a0216&&_0x4a0216 instanceof a[_0x5a5ff4(0x130)]&&this['_setupSubUnitSync'](_0x4a0216);}async[_0x4ba9c1(0x148)](_0x9d8424){const _0x20c296=_0x4ba9c1;await this[_0x20c296(0x22e)](_0x9d8424),_0x9d8424[_0x20c296(0xcc)][_0x20c296(0x74)](d[_0x20c296(0x2a5)](this[_0x20c296(0x9b)]))[_0x20c296(0x1a4)](_0x5a22e6=>{const _0x159a38=_0x20c296;_0x5a22e6&&this[_0x159a38(0x23b)](_0x5a22e6);}),this[_0x20c296(0x7b)][_0x20c296(0x21d)][_0x20c296(0x74)](d[_0x20c296(0x2a5)](this[_0x20c296(0x9b)]))[_0x20c296(0x1a4)](()=>this[_0x20c296(0x22e)](_0x9d8424));}[_0x4ba9c1(0x23b)](_0x1312a2,_0x2ef90e=!0x1){const _0x1ffdbd=_0x4ba9c1,_0x3f728f=this[_0x1ffdbd(0x7b)][_0x1ffdbd(0x1be)](_0x1ffdbd(0x134));_0x1312a2[_0x1ffdbd(0x1d3)]()!==_0x3f728f&&this['_urlService']['setParam'](_0x1ffdbd(0x134),_0x1312a2[_0x1ffdbd(0x1d3)](),_0x2ef90e);}async[_0x4ba9c1(0x22e)](_0x3d4edf){const _0x5e6ed6=_0x4ba9c1;var _0x4ed5e6;const _0x481f3b=this[_0x5e6ed6(0x7b)][_0x5e6ed6(0x1be)](_0x5e6ed6(0x134));if(!_0x481f3b||!_0x3d4edf[_0x5e6ed6(0x80)](_0x481f3b)){const _0x1b022c=_0x3d4edf[_0x5e6ed6(0xf1)]()[0x0],_0x866606=_0x3d4edf['getSheetBySheetId'](_0x1b022c);if(!_0x866606)return;this[_0x5e6ed6(0x23b)](_0x866606,!0x0),await this[_0x5e6ed6(0x112)][_0x5e6ed6(0x240)](g[_0x5e6ed6(0x25a)]['id'],{'unitId':_0x3d4edf[_0x5e6ed6(0xd6)](),'subUnitId':_0x1b022c});return;}((_0x4ed5e6=_0x3d4edf[_0x5e6ed6(0x140)]())==null?void 0x0:_0x4ed5e6[_0x5e6ed6(0x1d3)]())!==_0x481f3b&&await this[_0x5e6ed6(0x112)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x3d4edf[_0x5e6ed6(0xd6)](),'subUnitId':_0x481f3b});}},exports[_0x4ba9c1(0xa2)]=jt([H(0x0,be),H(0x1,a[_0x4ba9c1(0x273)]),H(0x2,a['ICommandService']),H(0x3,a[_0x4ba9c1(0x1f9)](u[_0x4ba9c1(0x298)])),H(0x4,a['Optional'](Ke[_0x4ba9c1(0x113)]))],exports['CollaborationDataLoaderController']);var Bt=Object[_0x4ba9c1(0x23e)],kt=(_0x5ca5a4,_0x8ccfc2,_0x34f52a,_0x4e11d2)=>{const _0x33b4bc=_0x4ba9c1;for(var _0x3aa72a=_0x4e11d2>0x1?void 0x0:_0x4e11d2?Bt(_0x8ccfc2,_0x34f52a):_0x8ccfc2,_0x3468e5=_0x5ca5a4[_0x33b4bc(0x1da)]-0x1,_0x2377c0;_0x3468e5>=0x0;_0x3468e5--)(_0x2377c0=_0x5ca5a4[_0x3468e5])&&(_0x3aa72a=_0x2377c0(_0x3aa72a)||_0x3aa72a);return _0x3aa72a;},ce=(_0x2e7512,_0x146993)=>(_0x1490ea,_0xe9707)=>_0x146993(_0x1490ea,_0xe9707,_0x2e7512);let z=class{constructor(_0x4c6933,_0x1647c7,_0x54587a){const _0x15e852=_0x4ba9c1;this[_0x15e852(0x1b6)]=_0x4c6933,this['_transformService']=_0x1647c7,this[_0x15e852(0x1cc)]=_0x54587a;}[_0x4ba9c1(0x293)](_0x4faf2e){const _0x15f645=_0x4ba9c1;this['_transformUndoRedoStack'](_0x4faf2e),this[_0x15f645(0x1b9)](_0x4faf2e);}['transformRemoteChangeset'](_0xae1928){const _0x4ab971=_0x4ba9c1,{unitID:_0x5ee537}=_0xae1928,_0x54e04a=this['_renderManagerService'][_0x4ab971(0x22d)](_0x5ee537)[_0x4ab971(0x2f3)](b['DocIMEInputManagerService']),{redoCache:_0xfc69e2}=_0x54e04a[_0x4ab971(0x16e)]();if(_0xfc69e2[_0x4ab971(0x1da)]===0x0)return _0xae1928;let _0x3c65ac=a[_0x4ab971(0x136)][_0x4ab971(0x175)](_0xae1928['mutations'][0x0]);for(let _0x2e1a91=0x0;_0x2e1a91<_0xfc69e2[_0x4ab971(0x1da)];_0x2e1a91++){const _0x29d4e9={'id':'doc.mutation.rich-text-editing','params':{..._0xfc69e2[_0x2e1a91]}},_0x22f94b=this[_0x4ab971(0x177)]['transformMutation'](_0x3c65ac,_0x29d4e9,!0x1);if(m[_0x4ab971(0x2cc)](_0x22f94b))throw _0x22f94b[_0x4ab971(0x217)];_0x3c65ac=_0x22f94b[_0x4ab971(0x7e)];}return{...a['Tools']['deepClone'](_0xae1928),'mutations':[_0x3c65ac]};}[_0x4ba9c1(0x26c)](_0x14ef2a){const _0xe34a55=_0x4ba9c1,{unitID:_0x15f0ed}=_0x14ef2a,_0x289d77=this['_renderManagerService'][_0xe34a55(0x22d)](_0x15f0ed)[_0xe34a55(0x2f3)](b[_0xe34a55(0x1df)]),{undoCache:_0x1b61ba,redoCache:_0x422988}=_0x289d77['getUndoRedoMutationParamsCache']();if(_0x1b61ba['length']===0x0||_0x422988[_0xe34a55(0x1da)]===0x0)return;const _0x20e2c7=[],_0x279de9=[];let _0x293266=a[_0xe34a55(0x136)][_0xe34a55(0x175)](_0x14ef2a[_0xe34a55(0x270)][0x0]),_0x123b67=a['Tools'][_0xe34a55(0x175)](_0x14ef2a[_0xe34a55(0x270)][0x0]);for(let _0x4d016f=_0x1b61ba[_0xe34a55(0x1da)]-0x1;_0x4d016f>=0x0;_0x4d016f--){const _0x133ad8={'id':_0xe34a55(0x78),'params':{..._0x1b61ba[_0x4d016f]}},_0x245cac={'id':_0xe34a55(0x78),'params':{..._0x422988[_0x4d016f]}},_0x3941ff=this[_0xe34a55(0x177)][_0xe34a55(0x214)](_0x293266,_0x133ad8,!0x1),_0x1849dc=this[_0xe34a55(0x177)][_0xe34a55(0x214)](_0x123b67,_0x245cac,!0x1);if(m[_0xe34a55(0x2cc)](_0x3941ff))throw _0x3941ff['error'];if(m['isTransformMutationFailure'](_0x1849dc))throw _0x1849dc['error'];_0x20e2c7[_0xe34a55(0x125)](_0x3941ff[_0xe34a55(0xb7)][_0xe34a55(0x161)]),_0x279de9[_0xe34a55(0x125)](_0x1849dc[_0xe34a55(0xb7)][_0xe34a55(0x161)]),_0x293266=_0x3941ff[_0xe34a55(0x7e)],_0x123b67=_0x1849dc[_0xe34a55(0x7e)];}_0x289d77[_0xe34a55(0x119)]({'undoCache':_0x20e2c7,'redoCache':_0x279de9});}[_0x4ba9c1(0x1b9)](_0x197e50){const _0x4ce785=_0x4ba9c1,{unitID:_0x141c42}=_0x197e50,_0x67f4df=this[_0x4ce785(0x1cc)][_0x4ce785(0x22d)](_0x141c42)[_0x4ce785(0x2f3)](b['DocIMEInputManagerService']),_0x58bf48=_0x67f4df['getActiveRange']();if(_0x58bf48==null)return;const _0x2eb330=[{'id':_0x4ce785(0x78),'params':{'unitId':_0x197e50['unitID'],'actions':null,'textRanges':[_0x58bf48]}}],_0x186b7f=this[_0x4ce785(0x177)][_0x4ce785(0x251)](_0x197e50,_0x2eb330);if(!m[_0x4ce785(0x11e)](_0x186b7f))throw _0x186b7f[_0x4ce785(0x217)];const _0x3a8edd=_0x186b7f[_0x4ce785(0xb7)][0x0][_0x4ce785(0x161)][_0x4ce785(0x1e9)];Array[_0x4ce785(0x2a9)](_0x3a8edd)&&_0x3a8edd[_0x4ce785(0x1da)]&&_0x67f4df[_0x4ce785(0x143)](_0x3a8edd[0x0]);}};function _0x167f(_0x3b0aaf,_0x174c7c){const _0x2196b8=_0x2196();return _0x167f=function(_0x167f7f,_0x33127f){_0x167f7f=_0x167f7f-0x6d;let _0x3b79ba=_0x2196b8[_0x167f7f];return _0x3b79ba;},_0x167f(_0x3b0aaf,_0x174c7c);}z=kt([ce(0x0,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0x11f)])),ce(0x1,m[_0x4ba9c1(0xdf)]),ce(0x2,p[_0x4ba9c1(0x1b1)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x90f1be,_0x183c35,_0x1ffa00,_0x5b4438)=>{for(var _0x5d59ae=_0x5b4438>0x1?void 0x0:_0x5b4438?Ht(_0x183c35,_0x1ffa00):_0x183c35,_0x44d6fe=_0x90f1be['length']-0x1,_0x3e4ec4;_0x44d6fe>=0x0;_0x44d6fe--)(_0x3e4ec4=_0x90f1be[_0x44d6fe])&&(_0x5d59ae=_0x3e4ec4(_0x5d59ae)||_0x5d59ae);return _0x5d59ae;},le=(_0x15ac88,_0x20504b)=>(_0x22d998,_0x4ef9ed)=>_0x20504b(_0x22d998,_0x4ef9ed,_0x15ac88);let J=class{constructor(_0x5de088,_0x17b40f,_0x58deac){const _0x15ebb1=_0x4ba9c1;this[_0x15ebb1(0x1b6)]=_0x5de088,this[_0x15ebb1(0x177)]=_0x17b40f,this[_0x15ebb1(0x20a)]=_0x58deac;}[_0x4ba9c1(0x14a)](_0x5ad599){const _0x504d38=_0x4ba9c1;this[_0x504d38(0x2be)](_0x5ad599);}[_0x4ba9c1(0x2af)](_0x18ab30){const _0xf97001=_0x4ba9c1,{unitID:_0x2b3885}=_0x18ab30,{collaboration:_0x14d9a7}=this['_docStateChangeManagerService']['getStateCache'](_0x2b3885);if(_0x14d9a7['length']===0x0)return _0x18ab30;let _0x103d94=a[_0xf97001(0x136)][_0xf97001(0x175)](_0x18ab30[_0xf97001(0x270)][0x0]);for(let _0x4f0b58=0x0;_0x4f0b58<_0x14d9a7[_0xf97001(0x1da)];_0x4f0b58++){const _0x813833={'id':_0xf97001(0x78),'params':{'unitId':_0x14d9a7[_0x4f0b58][_0xf97001(0x17f)],..._0x14d9a7[_0x4f0b58][_0xf97001(0x115)]}},_0x55ffbb=this[_0xf97001(0x177)][_0xf97001(0x214)](_0x103d94,_0x813833,!0x1);if(m[_0xf97001(0x2cc)](_0x55ffbb))throw _0x55ffbb[_0xf97001(0x217)];_0x103d94=_0x55ffbb[_0xf97001(0x7e)];}return{...a[_0xf97001(0x136)][_0xf97001(0x175)](_0x18ab30),'mutations':[_0x103d94]};}[_0x4ba9c1(0x2be)](_0x58e879){const _0x46fc41=_0x4ba9c1,{unitID:_0x1f0bf7}=_0x58e879,{history:_0x21a3f7,collaboration:_0x2ae3e3}=this['_docStateChangeManagerService'][_0x46fc41(0x2d3)](_0x1f0bf7);if(_0x21a3f7[_0x46fc41(0x1da)]===0x0&&_0x2ae3e3['length']===0x0)return;const _0x4f3c94=[],_0x33c429=[];let _0x13d3bc=a[_0x46fc41(0x136)][_0x46fc41(0x175)](_0x58e879[_0x46fc41(0x270)][0x0]),_0x3c8b94=a[_0x46fc41(0x136)][_0x46fc41(0x175)](_0x58e879[_0x46fc41(0x270)][0x0]);for(let _0x53f21a=_0x21a3f7[_0x46fc41(0x1da)]-0x1;_0x53f21a>=0x0;_0x53f21a--){const _0x1ff433={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x21a3f7[_0x53f21a][_0x46fc41(0x17f)],..._0x21a3f7[_0x53f21a][_0x46fc41(0x2a4)]}},_0x117b94={'id':_0x46fc41(0x78),'params':{'unitId':_0x21a3f7[_0x53f21a]['unitId'],..._0x21a3f7[_0x53f21a]['redoState']}},_0x40e140=this[_0x46fc41(0x177)]['transformMutation'](_0x13d3bc,_0x1ff433,!0x1),_0x53baa7=this[_0x46fc41(0x177)]['transformMutation'](_0x3c8b94,_0x117b94,!0x1);if(m[_0x46fc41(0x2cc)](_0x40e140))throw _0x40e140[_0x46fc41(0x217)];if(m[_0x46fc41(0x2cc)](_0x53baa7))throw _0x53baa7['error'];_0x4f3c94[_0x46fc41(0x125)]({..._0x21a3f7[_0x53f21a],'undoState':_0x40e140[_0x46fc41(0xb7)][_0x46fc41(0x161)],'redoState':_0x53baa7[_0x46fc41(0xb7)]['params']}),_0x13d3bc=_0x40e140[_0x46fc41(0x7e)],_0x3c8b94=_0x53baa7[_0x46fc41(0x7e)];}_0x13d3bc=a[_0x46fc41(0x136)]['deepClone'](_0x58e879[_0x46fc41(0x270)][0x0]),_0x3c8b94=a[_0x46fc41(0x136)]['deepClone'](_0x58e879['mutations'][0x0]);for(let _0x862e91=_0x2ae3e3[_0x46fc41(0x1da)]-0x1;_0x862e91>=0x0;_0x862e91--){const _0x419984={'id':_0x46fc41(0x78),'params':{'unitId':_0x2ae3e3[_0x862e91][_0x46fc41(0x17f)],..._0x2ae3e3[_0x862e91]['undoState']}},_0x22d773={'id':_0x46fc41(0x78),'params':{'unitId':_0x2ae3e3[_0x862e91][_0x46fc41(0x17f)],..._0x2ae3e3[_0x862e91][_0x46fc41(0x115)]}},_0x25aad3=this[_0x46fc41(0x177)][_0x46fc41(0x214)](_0x13d3bc,_0x419984,!0x1),_0x50f705=this['_transformService']['transformMutation'](_0x3c8b94,_0x22d773,!0x1);if(m[_0x46fc41(0x2cc)](_0x25aad3))throw _0x25aad3[_0x46fc41(0x217)];if(m['isTransformMutationFailure'](_0x50f705))throw _0x50f705[_0x46fc41(0x217)];_0x33c429[_0x46fc41(0x125)]({..._0x2ae3e3[_0x862e91],'undoState':_0x25aad3[_0x46fc41(0xb7)][_0x46fc41(0x161)],'redoState':_0x50f705['m2Prime'][_0x46fc41(0x161)]}),_0x13d3bc=_0x25aad3[_0x46fc41(0x7e)],_0x3c8b94=_0x50f705['m1Prime'];}this[_0x46fc41(0x20a)][_0x46fc41(0x1b7)](_0x1f0bf7,{'history':_0x4f3c94,'collaboration':_0x33c429});}};J=Ft([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x4ba9c1(0xdf)]),le(0x2,a[_0x4ba9c1(0x1f9)](b[_0x4ba9c1(0xbd)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x6a06d9,_0x288de3,_0x17d948,_0x26927e)=>{const _0x5b71ed=_0x4ba9c1;for(var _0x40221c=_0x26927e>0x1?void 0x0:_0x26927e?Yt(_0x288de3,_0x17d948):_0x288de3,_0x2f07a3=_0x6a06d9[_0x5b71ed(0x1da)]-0x1,_0x1d096d;_0x2f07a3>=0x0;_0x2f07a3--)(_0x1d096d=_0x6a06d9[_0x2f07a3])&&(_0x40221c=_0x1d096d(_0x40221c)||_0x40221c);return _0x40221c;},Ne=(_0x2f5033,_0x263e48)=>(_0x1f3381,_0x5f009c)=>_0x263e48(_0x1f3381,_0x5f009c,_0x2f5033);let Z=class{constructor(_0x690035,_0x2a3fdc){const _0x1eb7d7=_0x4ba9c1;this[_0x1eb7d7(0x1b6)]=_0x690035,this['_transformService']=_0x2a3fdc;}[_0x4ba9c1(0x16c)](_0x439d6e){const _0xa8ad7f=_0x4ba9c1;var _0x591c1d;const _0x1f10c6=this[_0xa8ad7f(0x1b6)][_0xa8ad7f(0x17b)](Y[_0xa8ad7f(0xed)]),_0x48fd82=(_0x591c1d=_0x1f10c6[_0xa8ad7f(0x27a)]())!=null?_0x591c1d:[];if(_0x48fd82['length']===0x0)return;const _0x48f24b=_0x439d6e[_0xa8ad7f(0x2ec)],_0x3dcb3a=[{'id':_0xa8ad7f(0x78),'params':{'unitId':_0x48f24b,'actions':null,'textRanges':_0x48fd82}}],_0x9d76c6=this[_0xa8ad7f(0x177)][_0xa8ad7f(0x251)](_0x439d6e,_0x3dcb3a);if(!m['isTransformMutationsWithChangesetSuccess'](_0x9d76c6))throw _0x9d76c6['error'];const _0x8ff57a=_0x9d76c6[_0xa8ad7f(0xb7)][0x0][_0xa8ad7f(0x161)]['textRanges'];Array[_0xa8ad7f(0x2a9)](_0x8ff57a)&&_0x8ff57a[_0xa8ad7f(0x1da)]&&_0x1f10c6[_0xa8ad7f(0x16f)](_0x8ff57a,{'unitId':_0x48f24b,'subUnitId':_0x48f24b},!0x1);}};Z=Wt([Ne(0x0,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0x11f)])),Ne(0x1,m[_0x4ba9c1(0xdf)])],Z);var Vt=Object[_0x4ba9c1(0x23e)],Xt=(_0x4cc41b,_0x5ec61b,_0x409d14,_0x1d2bb2)=>{for(var _0x1547a2=_0x1d2bb2>0x1?void 0x0:_0x1d2bb2?Vt(_0x5ec61b,_0x409d14):_0x5ec61b,_0x5049b0=_0x4cc41b['length']-0x1,_0x187a06;_0x5049b0>=0x0;_0x5049b0--)(_0x187a06=_0x4cc41b[_0x5049b0])&&(_0x1547a2=_0x187a06(_0x1547a2)||_0x1547a2);return _0x1547a2;},N=(_0x31949a,_0x28814f)=>(_0x5b95a3,_0x3ba7c0)=>_0x28814f(_0x5b95a3,_0x3ba7c0,_0x31949a);let Q=class extends a[_0x4ba9c1(0x12c)]{constructor(_0x2d6f25,_0x5c518b,_0x2c17fc,_0x2ee51a,_0x48f3fe,_0x319a39,_0x291f2e,_0x190091){const _0x5bcadd=_0x4ba9c1;super(),h(this,'_status$',new d[(_0x5bcadd(0x1ec))](u[_0x5bcadd(0x11a)]['NOT_COLLAB'])),(this[_0x5bcadd(0x20a)]=_0x2d6f25,this['_collaborationController']=_0x5c518b,this[_0x5bcadd(0x224)]=_0x2c17fc,this['_docTransformStateCacheService']=_0x2ee51a,this[_0x5bcadd(0x296)]=_0x48f3fe,this[_0x5bcadd(0xb0)]=_0x319a39,this[_0x5bcadd(0xcf)]=_0x291f2e,this[_0x5bcadd(0xf0)]=_0x190091,this['_initEntityListener']());}[_0x4ba9c1(0x2e2)](){const _0x2a7822=_0x4ba9c1;this[_0x2a7822(0x2db)](this['_collaborationController'][_0x2a7822(0x16b)][_0x2a7822(0x1a4)](_0x1eeca2=>{const _0x1ba520=_0x2a7822,_0x47a67f=this['_docStateChangeManagerService'][_0x1ba520(0x229)][_0x1ba520(0x1a4)](_0x80ff37=>{const _0x1bb766=_0x1ba520;if(_0x80ff37==null)return;const {unitId:_0x2b6fe4,redoState:_0x283ad3,commandId:_0x121f83}=_0x80ff37;if(_0x2b6fe4!==_0x1eeca2[_0x1bb766(0x2ec)])return;const _0x3f3317={'id':_0x121f83,'type':a[_0x1bb766(0xf5)][_0x1bb766(0xae)],'params':{'unitId':_0x2b6fe4,'actions':_0x283ad3[_0x1bb766(0x20c)],'textRanges':null}};_0x1eeca2[_0x1bb766(0x27c)](_0x3f3317);});if(_0x1eeca2['disposeWithMe'](_0x47a67f),_0x1eeca2 instanceof u[_0x1ba520(0x17a)]){const _0x3ad5ed={'onTransformIME':_0x1a5efb=>this['_docTransformIMECacheService'][_0x1ba520(0x293)](_0x1a5efb),'onTransformState':_0x2e5754=>this[_0x1ba520(0x2e0)][_0x1ba520(0x14a)](_0x2e5754),'onTransformSelections':_0x5c649a=>this['_docTransformSelectionsService']['transformSelections'](_0x5c649a),'onSyncEditingCollabCursor':_0x4af3e4=>this[_0x1ba520(0xb0)]['syncEditingCollabCursor'](_0x4af3e4),'onTransformRemoteChangesetByIMECache':_0x5dad7f=>this[_0x1ba520(0x224)][_0x1ba520(0x2af)](_0x5dad7f),'onTransformRemoteChangesetByStateCache':_0x4c721e=>this['_docTransformStateCacheService'][_0x1ba520(0x2af)](_0x4c721e)};_0x1eeca2[_0x1ba520(0x230)](_0x3ad5ed);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x4ba9c1(0xbd)])),N(0x1,a[_0x4ba9c1(0x1f9)](u[_0x4ba9c1(0x14c)])),N(0x2,a[_0x4ba9c1(0x1f9)](z)),N(0x3,a[_0x4ba9c1(0x1f9)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x4ba9c1(0x1f9)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0x1e8)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x2fe3c0,_0x3752ef,_0x538ce8,_0x7fdc1)=>{const _0xf92d4=_0x4ba9c1;for(var _0x27646e=_0x7fdc1>0x1?void 0x0:_0x7fdc1?Gt(_0x3752ef,_0x538ce8):_0x3752ef,_0x203c19=_0x2fe3c0[_0xf92d4(0x1da)]-0x1,_0x190a33;_0x203c19>=0x0;_0x203c19--)(_0x190a33=_0x2fe3c0[_0x203c19])&&(_0x27646e=_0x190a33(_0x27646e)||_0x27646e);return _0x27646e;},_e=(_0x2fdec2,_0x225359)=>(_0x5d5bee,_0x53ce6e)=>_0x225359(_0x5d5bee,_0x53ce6e,_0x2fdec2);let ge=class extends a[_0x4ba9c1(0x12c)]{constructor(_0x42e456,_0x281f68,_0x858a9a){const _0x555a39=_0x4ba9c1;super(),h(this,_0x555a39(0x133),new Map()),h(this,_0x555a39(0x281),new Map()),h(this,_0x555a39(0x2cf),!0x1),(this[_0x555a39(0x12f)]=_0x42e456,this[_0x555a39(0x164)]=_0x281f68,this[_0x555a39(0x13e)]=_0x858a9a);}[_0x4ba9c1(0x29d)](){this['_disabled']=!0x0;}[_0x4ba9c1(0x11d)](){this['_disabled']=!0x1;}get[_0x4ba9c1(0x1dc)](){const _0xd09eeb=_0x4ba9c1;return this[_0xd09eeb(0x281)];}[_0x4ba9c1(0x195)](){const _0x373a0d=_0x4ba9c1;this[_0x373a0d(0x1a0)]()[_0x373a0d(0x168)](()=>super[_0x373a0d(0x195)]());}async[_0x4ba9c1(0x1e1)](_0x99d800){const _0x58c7af=_0x4ba9c1;return this[_0x58c7af(0x2cf)]?null:this[_0x58c7af(0x164)][_0x58c7af(0x2d8)](u[_0x58c7af(0x179)](_0x99d800));}async['saveOfflineData'](_0x50a0e3,_0x3798bb){const _0x2f3217=_0x4ba9c1;return!!this[_0x2f3217(0x164)][_0x2f3217(0x287)](_0x50a0e3,_0x3798bb);}[_0x4ba9c1(0x139)](_0x5ee015,_0x4f3cfc,_0xb6d32,_0x10311e){const _0x5e01ca=_0x4ba9c1,_0x570d00=this[_0x5e01ca(0x13e)][_0x5e01ca(0x13a)](_0x5ee015);this[_0x5e01ca(0x133)][_0x5e01ca(0x82)](_0x5ee015,{'unitID':_0x5ee015,'type':_0x4f3cfc,'awaitingChangeset':_0xb6d32,'mutations':_0x10311e,'rev':_0x570d00}),this[_0x5e01ca(0x281)]['has'](_0x5ee015)||this[_0x5e01ca(0x6d)](_0x5ee015);}[_0x4ba9c1(0x6d)](_0x572167){const _0xe47e0c=_0x4ba9c1,_0x219b35=this[_0xe47e0c(0x1f2)]();_0x219b35===0x0?this[_0xe47e0c(0x2e4)](_0x572167):this[_0xe47e0c(0x281)]['set'](_0x572167,setTimeout(()=>this[_0xe47e0c(0x2e4)](_0x572167),_0x219b35));}[_0x4ba9c1(0x1f2)](){const _0x8d64e6=_0x4ba9c1;var _0x2aac55;return(_0x2aac55=this[_0x8d64e6(0x12f)][_0x8d64e6(0x2d5)](u[_0x8d64e6(0x90)]))!=null?_0x2aac55:u[_0x8d64e6(0x21c)];}['_saveCache'](_0x37c60c){const _0x379c63=_0x4ba9c1,_0x1f1ddc=this[_0x379c63(0x281)]['get'](_0x37c60c);return _0x1f1ddc!==void 0x0&&window['clearTimeout'](_0x1f1ddc),this[_0x379c63(0x164)][_0x379c63(0x287)](u['getLocalCacheKey'](_0x37c60c),this[_0x379c63(0x133)][_0x379c63(0x17b)](_0x37c60c))[_0x379c63(0x168)](()=>this[_0x379c63(0x281)]['delete'](_0x37c60c));}async['exhaustSavingTask'](){const _0x120f2c=_0x4ba9c1,_0x143bd4=[];this[_0x120f2c(0x281)][_0x120f2c(0xf8)]((_0x22b150,_0x4cd51e)=>{const _0x483eff=_0x120f2c;window['clearTimeout'](_0x22b150),_0x143bd4[_0x483eff(0x20e)](this[_0x483eff(0x2e4)](_0x4cd51e)[_0x483eff(0x168)](()=>{const _0x598118=_0x483eff;this[_0x598118(0x281)][_0x598118(0x232)](_0x4cd51e);}));}),await Promise[_0x120f2c(0x153)](_0x143bd4);}};ge=Kt([_e(0x0,a[_0x4ba9c1(0x14e)]),_e(0x1,a[_0x4ba9c1(0x278)]),_e(0x2,a[_0x4ba9c1(0x1f9)](m[_0x4ba9c1(0xb6)]))],ge);class je extends a[_0x4ba9c1(0x1b8)]{constructor(){const _0x456b71=_0x4ba9c1;super(),h(this,_0x456b71(0x21d)),this[_0x456b71(0x21d)]=d[_0x456b71(0x27d)](window,_0x456b71(0x188))[_0x456b71(0x74)](d[_0x456b71(0x2a5)](this['dispose$']),d['shareReplay'](0x1),d[_0x456b71(0x1d7)](void 0x0));}[_0x4ba9c1(0x197)](_0x1c2581,_0x42f8a4,_0x50a838=!0x1){const _0x5f3204=_0x4ba9c1,_0x9eacdb=new URL(window[_0x5f3204(0xa3)]['href']);_0x9eacdb[_0x5f3204(0x127)][_0x5f3204(0x82)](_0x1c2581,_0x42f8a4),_0x50a838?window[_0x5f3204(0x9d)][_0x5f3204(0x228)]('','',_0x9eacdb[_0x5f3204(0x15a)]()):window['history'][_0x5f3204(0x2ee)]('','',_0x9eacdb[_0x5f3204(0x15a)]());}[_0x4ba9c1(0x152)](_0x250d67,_0x5d68a5=!0x1){const _0x1875d9=_0x4ba9c1,_0x36e1ca=new URL(window['location'][_0x1875d9(0x2b4)]);_0x36e1ca[_0x1875d9(0x127)][_0x1875d9(0x232)](_0x250d67),_0x5d68a5?window[_0x1875d9(0x9d)][_0x1875d9(0x228)]('','',_0x36e1ca['toString']()):window['history'][_0x1875d9(0x2ee)]('','',_0x36e1ca[_0x1875d9(0x15a)]());}[_0x4ba9c1(0x1be)](_0x419ee1){const _0x516e51=_0x4ba9c1;var _0x7de7df;return(_0x7de7df=new URL(window[_0x516e51(0xa3)]['href'])[_0x516e51(0x127)][_0x516e51(0x17b)](_0x419ee1))!=null?_0x7de7df:void 0x0;}}var qt=Object[_0x4ba9c1(0x1cd)],zt=Object[_0x4ba9c1(0x23e)],Jt=(_0x4c2b59,_0x2ac201,_0x5434d7)=>_0x2ac201 in _0x4c2b59?qt(_0x4c2b59,_0x2ac201,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5434d7}):_0x4c2b59[_0x2ac201]=_0x5434d7,Zt=(_0x448de6,_0x4a0c3b,_0x426ab9,_0x5ddabe)=>{const _0x3b630f=_0x4ba9c1;for(var _0x5c35a6=_0x5ddabe>0x1?void 0x0:_0x5ddabe?zt(_0x4a0c3b,_0x426ab9):_0x4a0c3b,_0x3b13cf=_0x448de6[_0x3b630f(0x1da)]-0x1,_0x623fa3;_0x3b13cf>=0x0;_0x3b13cf--)(_0x623fa3=_0x448de6[_0x3b13cf])&&(_0x5c35a6=_0x623fa3(_0x5c35a6)||_0x5c35a6);return _0x5c35a6;},he=(_0x40be02,_0x4c1a18)=>(_0x21ab7b,_0x529ea5)=>_0x4c1a18(_0x21ab7b,_0x529ea5,_0x40be02),Qt=(_0x61cc85,_0x563ffe,_0x40ad43)=>Jt(_0x61cc85,_0x563ffe+'',_0x40ad43);const es=_0x4ba9c1(0x81);exports[_0x4ba9c1(0x20d)]=class extends a[_0x4ba9c1(0x2de)]{constructor(_0x4268f0=Ue,_0x26504e,_0xdbdf3e,_0x301d09){const _0x23fe69=_0x4ba9c1;super(),this['_config']=_0x4268f0,this['_renderManagerService']=_0x26504e,this['_injector']=_0xdbdf3e,this[_0x23fe69(0x12f)]=_0x301d09;const {..._0x28e2df}=a[_0x23fe69(0x19c)]({},Ue,this[_0x23fe69(0x77)]);this['_configService'][_0x23fe69(0x76)]($t,_0x28e2df);}[_0x4ba9c1(0x2b9)](){const _0x3afa25=_0x4ba9c1;this['_registerDependencies'](),this[_0x3afa25(0x1d9)]();}[_0x4ba9c1(0x1d8)](){const _0x22da82=_0x4ba9c1;this[_0x22da82(0x27b)]();}[_0x4ba9c1(0xce)](){const _0x143ee8=_0x4ba9c1;var _0x1ac8f4;const _0x5ef9ad=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G['ISocketService'],{'useClass':G[_0x143ee8(0x263)]}],[u[_0x143ee8(0x2ed)],{'useClass':ge}],[exports[_0x143ee8(0x1c7)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x143ee8(0x2c9)](this[_0x143ee8(0x1b6)],a['mergeOverrideWithDependencies'](_0x5ef9ad,(_0x1ac8f4=this['_config'])==null?void 0x0:_0x1ac8f4[_0x143ee8(0x275)]));}[_0x4ba9c1(0x27b)](){const _0x186b21=_0x4ba9c1;this[_0x186b21(0x2db)](this[_0x186b21(0x1cc)][_0x186b21(0xde)](a[_0x186b21(0x2e7)][_0x186b21(0x2ae)],[Ie])),this[_0x186b21(0x2db)](this[_0x186b21(0x1cc)]['registerRenderModule'](a[_0x186b21(0x2e7)]['UNIVER_SHEET'],[ve]));}[_0x4ba9c1(0x1d9)](){const _0x4f6197=_0x4ba9c1;a[_0x4f6197(0x124)](this[_0x4f6197(0x1b6)],[[x],[exports[_0x4f6197(0x1c7)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x4ba9c1(0x1de),es),exports[_0x4ba9c1(0x20d)]=Zt([a[_0x4ba9c1(0xa5)](u[_0x4ba9c1(0x266)]),he(0x1,p[_0x4ba9c1(0x1b1)]),he(0x2,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0x11f)])),he(0x3,a[_0x4ba9c1(0x14e)])],exports[_0x4ba9c1(0x20d)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x4e5f1b,_0x4c9a6a,_0x20c899,_0x5e4aef)=>{const _0x5d4911=_0x4ba9c1;for(var _0xc8897d=_0x5e4aef>0x1?void 0x0:_0x5e4aef?ts(_0x4c9a6a,_0x20c899):_0x4c9a6a,_0x103a3f=_0x4e5f1b[_0x5d4911(0x1da)]-0x1,_0x2bd96f;_0x103a3f>=0x0;_0x103a3f--)(_0x2bd96f=_0x4e5f1b[_0x103a3f])&&(_0xc8897d=_0x2bd96f(_0xc8897d)||_0xc8897d);return _0xc8897d;},F=(_0x3fc7d3,_0x4b7d34)=>(_0x4fcc99,_0x5e2722)=>_0x4b7d34(_0x4fcc99,_0x5e2722,_0x3fc7d3);exports[_0x4ba9c1(0x24d)]=class extends u['CollaborationSocketService']{constructor(_0x49b491,_0x250f59,_0x13a23a,_0x309294,_0x4c43d2){super(_0x49b491,_0x250f59,_0x13a23a,_0x309294,_0x4c43d2);}async[_0x4ba9c1(0x235)](_0x31ecca){const _0x46c081=_0x4ba9c1,_0x42bd9e=await this[_0x46c081(0xe1)](),_0x2cca54=this[_0x46c081(0x120)](_0x31ecca,_0x42bd9e);return this[_0x46c081(0x24a)](_0x2cca54);}[_0x4ba9c1(0x120)](_0x1b9633,_0xa3616c){const _0x50265c=_0x4ba9c1,_0x2169ad=typeof window>'u'?new URL(_0x1b9633):new URL(_0x1b9633,window['location'][_0x50265c(0xdc)]);_0x2169ad['searchParams'][_0x50265c(0x82)](_0x50265c(0x6e),_0xa3616c);const _0xf57b2=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x50265c(0xa3)][_0x50265c(0x106)]);return _0xf57b2['get'](_0x50265c(0xa0))&&_0x2169ad['searchParams']['set']('runId',_0xf57b2[_0x50265c(0x17b)](_0x50265c(0xa0))),_0x2169ad[_0x50265c(0x15a)]();}async['_getSessionTicket'](){const _0x1372ae=_0x4ba9c1;var _0x2ef9ae,_0x113965,_0xe44f74;const _0x3ecdf4=this[_0x1372ae(0x12f)][_0x1372ae(0x2d5)](u[_0x1372ae(0xd1)]),_0x1bed8c=(_0x2ef9ae=_0x3ecdf4==null?void 0x0:_0x3ecdf4[_0x1372ae(0x210)])!=null?_0x2ef9ae:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0xe44f74=(_0x113965=(await this['_httpService'][_0x1372ae(0x17b)](_0x1bed8c,{'headers':{'Content-Type':_0x1372ae(0x2f9)}}))['body'])==null?void 0x0:_0x113965[_0x1372ae(0x16a)])!=null?_0xe44f74:'';}},exports[_0x4ba9c1(0x24d)]=ss([F(0x0,a[_0x4ba9c1(0x1f9)](a[_0x4ba9c1(0x11f)])),F(0x1,a[_0x4ba9c1(0x1f9)](G[_0x4ba9c1(0x1b0)])),F(0x2,a[_0x4ba9c1(0x14e)]),F(0x3,a[_0x4ba9c1(0x273)]),F(0x4,m[_0x4ba9c1(0x205)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le=_0x4ba9c1(0x2fa);class is extends a[_0x4ba9c1(0x12c)]{constructor(){const _0x464263=_0x4ba9c1;super(),h(this,'_id',a[_0x464263(0x274)]()),h(this,_0x464263(0x126),new Set()),h(this,_0x464263(0x201),new Map()),h(this,_0x464263(0xba),null),h(this,_0x464263(0x8a),new Map()),h(this,_0x464263(0x171),new Map()),this[_0x464263(0x2c4)]();}[_0x4ba9c1(0x195)](){const _0x58b59f=_0x4ba9c1;super['dispose'](),this[_0x58b59f(0x8a)][_0x58b59f(0xf8)]((_0x879838,_0x2aff77)=>this['_removeClearOtherTimer'](_0x2aff77)),this[_0x58b59f(0xba)]&&window[_0x58b59f(0x1ce)](this['_heartbeatTimer']);}[_0x4ba9c1(0x24b)](_0x1ce86f){const _0x35b8d2=_0x4ba9c1;return this['_ensureSubject'](_0x1ce86f)[_0x35b8d2(0x74)](d['distinctUntilChanged']());}[_0x4ba9c1(0x21a)](_0x324b4e){const _0xa3bccf=_0x4ba9c1;this[_0xa3bccf(0x126)][_0xa3bccf(0x213)]===0x0&&this[_0xa3bccf(0x2c8)](),this[_0xa3bccf(0x126)][_0xa3bccf(0xf6)](_0x324b4e),this[_0xa3bccf(0x1a3)]({'type':0x0,'memberID':this[_0xa3bccf(0x96)],'unitIDs':[_0x324b4e],'isForwarded':!0x1});}[_0x4ba9c1(0x2eb)](_0x1e2666){const _0xf11506=_0x4ba9c1;this[_0xf11506(0x126)]['delete'](_0x1e2666),this[_0xf11506(0x126)][_0xf11506(0x213)]===0x0&&this[_0xf11506(0xba)]&&window[_0xf11506(0x1ce)](this[_0xf11506(0xba)]);}[_0x4ba9c1(0x2c4)](){const _0x3e3037=_0x4ba9c1;this[_0x3e3037(0x2db)](a[_0x3e3037(0x121)](d[_0x3e3037(0x27d)](window,_0x3e3037(0x2e8))[_0x3e3037(0x1a4)](_0x18d2c0=>{const _0x3ac425=_0x3e3037;if(_0x18d2c0['key']!==Le||!_0x18d2c0[_0x3ac425(0x9f)])return;const _0xc8349a=JSON[_0x3ac425(0x2f0)](_0x18d2c0[_0x3ac425(0x9f)]);this[_0x3ac425(0xd3)](_0xc8349a);}))),window[_0x3e3037(0x72)](_0x3e3037(0x1dd),()=>this[_0x3e3037(0x1a3)]({'type':0x1,'memberID':this[_0x3e3037(0x96)],'unitIDs':Array[_0x3e3037(0x12b)](this[_0x3e3037(0x126)])}));}['_handleEvent'](_0x529171){const _0x2c0b07=_0x4ba9c1;switch(_0x529171[_0x2c0b07(0x26a)]){case 0x0:this[_0x2c0b07(0x2a7)](_0x529171);break;case 0x1:this[_0x2c0b07(0x2ad)](_0x529171);break;case 0x2:this[_0x2c0b07(0x28b)](_0x529171);break;}}[_0x4ba9c1(0x2a7)](_0x3f01dd){const _0x547a94=_0x4ba9c1,{unitIDs:_0x261719,memberID:_0x5778be,isForwarded:_0x1ee605}=_0x3f01dd;_0x261719['forEach'](_0x13b7b2=>{const _0x4a9eb4=_0x167f;if(!_0x1ee605&&this[_0x4a9eb4(0x201)][_0x4a9eb4(0x10b)](_0x13b7b2)&&this[_0x4a9eb4(0x2e9)](_0x13b7b2)['next'](u['UnitStatus'][_0x4a9eb4(0x2d4)]),!this[_0x4a9eb4(0x201)][_0x4a9eb4(0x10b)](_0x13b7b2)||!this[_0x4a9eb4(0x201)][_0x4a9eb4(0x17b)](_0x13b7b2)['has'](_0x5778be)){const _0x2cbc59=this[_0x4a9eb4(0x201)][_0x4a9eb4(0x17b)](_0x13b7b2)||new Set();_0x2cbc59[_0x4a9eb4(0xf6)](_0x5778be),this[_0x4a9eb4(0x201)][_0x4a9eb4(0x82)](_0x13b7b2,_0x2cbc59),this[_0x4a9eb4(0x207)](_0x5778be);}}),_0x1ee605||this['_send']({'type':0x0,'memberID':this[_0x547a94(0x96)],'unitIDs':[...this[_0x547a94(0x126)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x43daba){const _0x2a5c9d=_0x4ba9c1;this[_0x2a5c9d(0x237)](_0x43daba);const _0x3e71f3=window[_0x2a5c9d(0x14b)](()=>{const _0x20910d=_0x2a5c9d;this['_unitOnClients'][_0x20910d(0xf8)](_0x7660c1=>{const _0x6fdb8c=_0x20910d;_0x7660c1[_0x6fdb8c(0x232)](_0x43daba);});},Me*0x2);this[_0x2a5c9d(0x8a)]['set'](_0x43daba,_0x3e71f3);}['_removeClearOtherTimer'](_0x5a108c){const _0x2f04e1=_0x4ba9c1;if(this[_0x2f04e1(0x8a)]['has'](_0x5a108c)){const _0x1c5297=this[_0x2f04e1(0x8a)][_0x2f04e1(0x17b)](_0x5a108c);_0x1c5297&&window[_0x2f04e1(0x1b2)](_0x1c5297),this[_0x2f04e1(0x8a)][_0x2f04e1(0x82)](_0x5a108c,null);}}[_0x4ba9c1(0x2ad)](_0x224e95){const _0x509ecc=_0x4ba9c1,{memberID:_0x49c73f,unitIDs:_0x3692ff}=_0x224e95;_0x3692ff[_0x509ecc(0xf8)](_0x1abd95=>{const _0x478d11=_0x509ecc;var _0x2e4729;const _0x3cd76e=this['_unitOnClients']['get'](_0x1abd95);_0x3cd76e&&(_0x3cd76e[_0x478d11(0x232)](_0x49c73f),(_0x2e4729=this[_0x478d11(0x2e9)](_0x1abd95))==null||_0x2e4729['next'](_0x3cd76e[_0x478d11(0x213)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x478d11(0x2d4)]));}),this[_0x509ecc(0x237)](_0x49c73f);}[_0x4ba9c1(0x28b)](_0x3dd555){const _0x50fd71=_0x4ba9c1;this[_0x50fd71(0x207)](_0x3dd555[_0x50fd71(0x107)]);}[_0x4ba9c1(0x1a3)](_0x1f20db){const _0x33ba7e=_0x4ba9c1;localStorage[_0x33ba7e(0x287)](Le,JSON['stringify'](_0x1f20db));}[_0x4ba9c1(0x2c8)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x4762c2=_0x167f;this[_0x4762c2(0x1a3)]({'type':0x2,'memberID':this['_id']});},Me);}[_0x4ba9c1(0x2e9)](_0x4a591a){const _0x1b8642=_0x4ba9c1;return this[_0x1b8642(0x171)][_0x1b8642(0x10b)](_0x4a591a)||this['_unitStatus'][_0x1b8642(0x82)](_0x4a591a,new d[(_0x1b8642(0x1ec))](u[_0x1b8642(0x261)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x1b8642(0x17b)](_0x4a591a);}}var Be=(_0xc6879d=>(_0xc6879d[_0xc6879d[_0x4ba9c1(0xa4)]=0x0]='UNDEFINED',_0xc6879d[_0xc6879d['OK']=0x1]='OK',_0xc6879d[_0xc6879d[_0x4ba9c1(0x2cb)]=0x2]=_0x4ba9c1(0x2cb),_0xc6879d[_0xc6879d[_0x4ba9c1(0x1eb)]=0x3]=_0x4ba9c1(0x1eb),_0xc6879d[_0xc6879d[_0x4ba9c1(0x2fd)]=0x4]=_0x4ba9c1(0x2fd),_0xc6879d[_0xc6879d[_0x4ba9c1(0x259)]=0x5]=_0x4ba9c1(0x259),_0xc6879d[_0xc6879d[_0x4ba9c1(0x1ed)]=0x6]=_0x4ba9c1(0x1ed),_0xc6879d[_0xc6879d['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0xc6879d[_0xc6879d[_0x4ba9c1(0xa9)]=0x8]='TOO_MANY_REQUESTS',_0xc6879d[_0xc6879d['COMPLETION_FINISHED']=0x9]=_0x4ba9c1(0x104),_0xc6879d[_0xc6879d[_0x4ba9c1(0x29f)]=0xa]='LOGIN_FAILED',_0xc6879d[_0xc6879d[_0x4ba9c1(0x144)]=0x1389]=_0x4ba9c1(0x144),_0xc6879d[_0xc6879d[_0x4ba9c1(0x1c5)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xc6879d[_0xc6879d[_0x4ba9c1(0x262)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xc6879d[_0xc6879d[_0x4ba9c1(0x297)]=0x1773]=_0x4ba9c1(0x297),_0xc6879d[_0xc6879d[_0x4ba9c1(0x1d6)]=0x1b59]='APPLY_REJECT',_0xc6879d[_0xc6879d[_0x4ba9c1(0x1ad)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xc6879d[_0xc6879d[_0x4ba9c1(0x103)]=0x1b5b]=_0x4ba9c1(0x103),_0xc6879d[_0xc6879d[_0x4ba9c1(0xd0)]=0x1b5c]=_0x4ba9c1(0xd0),_0xc6879d[_0xc6879d[_0x4ba9c1(0x283)]=0x1b5d]='APPLY_DUPLICATED',_0xc6879d[_0xc6879d[_0x4ba9c1(0x12e)]=0x1f41]=_0x4ba9c1(0x12e),_0xc6879d[_0xc6879d[_0x4ba9c1(0x1ae)]=0x2329]=_0x4ba9c1(0x1ae),_0xc6879d[_0xc6879d[_0x4ba9c1(0x196)]=0x232a]=_0x4ba9c1(0x196),_0xc6879d[_0xc6879d[_0x4ba9c1(0x1af)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xc6879d[_0xc6879d['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4ba9c1(0x93),_0xc6879d[_0xc6879d[_0x4ba9c1(0x1f4)]=0x232d]=_0x4ba9c1(0x1f4),_0xc6879d[_0xc6879d[_0x4ba9c1(0xd9)]=0x2711]=_0x4ba9c1(0xd9),_0xc6879d[_0xc6879d[_0x4ba9c1(0x15f)]=0x2712]=_0x4ba9c1(0x15f),_0xc6879d[_0xc6879d[_0x4ba9c1(0x1d1)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0xc6879d[_0xc6879d['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x4ba9c1(0x2ea),_0xc6879d[_0xc6879d[_0x4ba9c1(0x174)]=0x271a]=_0x4ba9c1(0x174),_0xc6879d[_0xc6879d[_0x4ba9c1(0x280)]=0x271b]=_0x4ba9c1(0x280),_0xc6879d[_0xc6879d[_0x4ba9c1(0x282)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0xc6879d[_0xc6879d[_0x4ba9c1(0x279)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0xc6879d[_0xc6879d[_0x4ba9c1(0xf3)]=0x271e]=_0x4ba9c1(0xf3),_0xc6879d[_0xc6879d[_0x4ba9c1(0x180)]=0x271f]=_0x4ba9c1(0x180),_0xc6879d[_0xc6879d[_0x4ba9c1(0x8e)]=0x2af9]=_0x4ba9c1(0x8e),_0xc6879d[_0xc6879d[_0x4ba9c1(0x2b8)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0xc6879d[_0xc6879d[_0x4ba9c1(0x1ca)]=0x2ee2]=_0x4ba9c1(0x1ca),_0xc6879d[_0xc6879d['INVITE_CODE_REQUIRED']=0x2ee3]=_0x4ba9c1(0x1b3),_0xc6879d[_0xc6879d['USER_NOT_INVITED_CODE']=0x2ee4]=_0x4ba9c1(0x147),_0xc6879d[_0xc6879d[_0x4ba9c1(0x7a)]=0x2ee5]=_0x4ba9c1(0x7a),_0xc6879d[_0xc6879d[_0x4ba9c1(0x2bf)]=0x32c9]=_0x4ba9c1(0x2bf),_0xc6879d[_0xc6879d[_0x4ba9c1(0x26f)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0xc6879d[_0xc6879d[_0x4ba9c1(0x29c)]=0x32cb]=_0x4ba9c1(0x29c),_0xc6879d[_0xc6879d['UNRECOGNIZED']=-0x1]=_0x4ba9c1(0xfd),_0xc6879d))(Be||{}),ns=Object[_0x4ba9c1(0x23e)],rs=(_0x275ba0,_0x2e676a,_0x16d943,_0x519cd7)=>{const _0x27f92f=_0x4ba9c1;for(var _0x125a66=_0x519cd7>0x1?void 0x0:_0x519cd7?ns(_0x2e676a,_0x16d943):_0x2e676a,_0xa2f845=_0x275ba0[_0x27f92f(0x1da)]-0x1,_0x22c72c;_0xa2f845>=0x0;_0xa2f845--)(_0x22c72c=_0x275ba0[_0xa2f845])&&(_0x125a66=_0x22c72c(_0x125a66)||_0x125a66);return _0x125a66;},ue=(_0x4229ce,_0x273d49)=>(_0x1dc4c9,_0x814876)=>_0x273d49(_0x1dc4c9,_0x814876,_0x4229ce);exports['RemoteUniscriptService']=class extends a['Disposable']{constructor(_0x118c2d,_0x1cd1f3,_0x46516c){const _0x4e2ae1=_0x4ba9c1;super(),this['_instanceService']=_0x118c2d,this[_0x4e2ae1(0x8c)]=_0x1cd1f3,this[_0x4e2ae1(0x12f)]=_0x46516c;}async['runOnServer'](_0x41cce0,_0x2177ba,_0xd14dac,..._0x54918e){const _0x14e3a5=_0x4ba9c1;var _0x5434f6,_0x44e6ef,_0x3b104a,_0x10aa44;const _0x3cc289=this[_0x14e3a5(0x1d2)][_0x14e3a5(0x26d)]();if(!_0x3cc289)throw new Error(_0x14e3a5(0x132));const _0x23ba03=((_0x5434f6=this[_0x14e3a5(0x12f)]['getConfig'](u[_0x14e3a5(0x231)]))!=null?_0x5434f6:u[_0x14e3a5(0x97)])+'/'+_0x41cce0+_0x14e3a5(0x160)+_0x2177ba,_0x34ac78=new URL(window[_0x14e3a5(0xa3)][_0x14e3a5(0x2b4)]),_0x5a39c0={'scriptId':_0x41cce0,'runId':(_0x44e6ef=_0x34ac78[_0x14e3a5(0x127)][_0x14e3a5(0x17b)]('runId'))!=null?_0x44e6ef:'','function':_0x2177ba,'unitId':_0x3cc289[_0x14e3a5(0xd6)](),'argsOfFunction':JSON[_0x14e3a5(0xaa)](_0x54918e),'invokeId':(_0x3b104a=_0xd14dac['invokeId'])!=null?_0x3b104a:'','executionId':(_0x10aa44=_0xd14dac[_0x14e3a5(0x86)])!=null?_0x10aa44:''};try{const _0x4d5f5b=await this['_httpService']['post'](_0x23ba03,{'body':_0x5a39c0});return _0x4d5f5b[_0x14e3a5(0x87)][_0x14e3a5(0x217)]&&_0x4d5f5b[_0x14e3a5(0x87)][_0x14e3a5(0x217)][_0x14e3a5(0x10a)]!==Be['OK']?_0x14e3a5(0x2df):_0x4d5f5b[_0x14e3a5(0x87)][_0x14e3a5(0x10e)];}catch{return'Failed';}}},exports[_0x4ba9c1(0xda)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x4ba9c1(0x1f9)](G[_0x4ba9c1(0x1b0)])),ue(0x2,a[_0x4ba9c1(0x14e)])],exports['RemoteUniscriptService']),exports[_0x4ba9c1(0x2c5)]=xe,exports[_0x4ba9c1(0x2c3)]=be,exports[_0x4ba9c1(0xe6)]=Pe,exports[_0x4ba9c1(0xe5)]=is,exports['WebURLService']=je;
|
|
1
|
+
'use strict';const _0x338f9d=_0xe86e;(function(_0x454f54,_0x109f19){const _0x53932f=_0xe86e,_0x5bada8=_0x454f54();while(!![]){try{const _0x46a589=parseInt(_0x53932f(0x32d))/0x1+parseInt(_0x53932f(0x295))/0x2*(-parseInt(_0x53932f(0x225))/0x3)+-parseInt(_0x53932f(0x2ba))/0x4+parseInt(_0x53932f(0x203))/0x5*(parseInt(_0x53932f(0x323))/0x6)+-parseInt(_0x53932f(0x300))/0x7*(-parseInt(_0x53932f(0x2f8))/0x8)+-parseInt(_0x53932f(0x2dd))/0x9*(-parseInt(_0x53932f(0x417))/0xa)+parseInt(_0x53932f(0x385))/0xb*(-parseInt(_0x53932f(0x2c3))/0xc);if(_0x46a589===_0x109f19)break;else _0x5bada8['push'](_0x5bada8['shift']());}catch(_0x47b9ce){_0x5bada8['push'](_0x5bada8['shift']());}}}(_0x2859,0x53349));var Ve=Object[_0x338f9d(0x1af)],Xe=(_0x46110a,_0x458f95,_0x4ef676)=>_0x458f95 in _0x46110a?Ve(_0x46110a,_0x458f95,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef676}):_0x46110a[_0x458f95]=_0x4ef676,h=(_0x4ca74b,_0x1d65c0,_0x5b6add)=>Xe(_0x4ca74b,typeof _0x1d65c0!=_0x338f9d(0x19b)?_0x1d65c0+'':_0x1d65c0,_0x5b6add);Object[_0x338f9d(0x1af)](exports,Symbol[_0x338f9d(0x384)],{'value':_0x338f9d(0x1ac)});const u=require(_0x338f9d(0x3a9)),a=require('@univerjs/core'),p=require(_0x338f9d(0x30b)),G=require('@univerjs/network'),b=require(_0x338f9d(0x2c2)),Ge=require(_0x338f9d(0x22b)),d=require('rxjs'),Y=require(_0x338f9d(0x220)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x338f9d(0x3c0)),g=require(_0x338f9d(0x1b8)),$=require(_0x338f9d(0x31e)),X=require(_0x338f9d(0x1b7)),w=require(_0x338f9d(0x1a3)),T=require('@univerjs/ui'),D=require(_0x338f9d(0x207)),M=require(_0x338f9d(0x1ea)),Ke=require(_0x338f9d(0x41f));var qe=Object[_0x338f9d(0x20f)],ze=(_0x538028,_0x353190,_0x521312,_0x1e2fb0)=>{const _0x110d13=_0x338f9d;for(var _0x498ac9=_0x1e2fb0>0x1?void 0x0:_0x1e2fb0?qe(_0x353190,_0x521312):_0x353190,_0xee62da=_0x538028[_0x110d13(0x29d)]-0x1,_0x4b1ab8;_0xee62da>=0x0;_0xee62da--)(_0x4b1ab8=_0x538028[_0xee62da])&&(_0x498ac9=_0x4b1ab8(_0x498ac9)||_0x498ac9);return _0x498ac9;},Te=(_0x2316fe,_0x3cc705)=>(_0xec7879,_0x5dc2fb)=>_0x3cc705(_0xec7879,_0x5dc2fb,_0x2316fe);function _0xe86e(_0x59709f,_0xd64265){const _0x2859e9=_0x2859();return _0xe86e=function(_0xe86ecd,_0x47009d){_0xe86ecd=_0xe86ecd-0x198;let _0x5b9c7b=_0x2859e9[_0xe86ecd];return _0x5b9c7b;},_0xe86e(_0x59709f,_0xd64265);}let de=class extends a[_0x338f9d(0x1c2)]{constructor(_0x32433f,_0x133285){const _0x27e874=_0x338f9d;super(),this[_0x27e874(0x3f1)]=_0x32433f,this[_0x27e874(0x304)]=_0x133285,this[_0x27e874(0x219)]();}[_0x338f9d(0x219)](){const _0x1b05a3=_0x338f9d,_0x4a7f22=this;this[_0x1b05a3(0x3df)](this[_0x1b05a3(0x3f1)][_0x1b05a3(0x3e2)]({'onBeforePasteImage':async _0x24212f=>{const _0x5bcf92=_0x1b05a3,_0x576f75=await _0x4a7f22['_imageIoService']['saveImage'](_0x24212f);return _0x576f75?{'source':_0x576f75[_0x5bcf92(0x1c6)],'imageSourceType':_0x576f75[_0x5bcf92(0x412)]}:null;}}));}};de=ze([Te(0x0,b[_0x338f9d(0x3af)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x338f9d(0x33a),_0x338f9d(0x28e),'green.600',_0x338f9d(0x369),_0x338f9d(0x3f9),_0x338f9d(0x339)];class me extends a[_0x338f9d(0x40d)]{constructor(){const _0x5cba88=_0x338f9d;super(...arguments),h(this,_0x5cba88(0x3e7),new Map()),h(this,_0x5cba88(0x3ef),0x0);}[_0x338f9d(0x235)](_0x3c71a8){const _0x35f2d7=_0x338f9d;if(this[_0x35f2d7(0x3e7)]['has'](_0x3c71a8))return this['_assignedColors'][_0x35f2d7(0x34c)](_0x3c71a8);const _0x48f447=Oe[this[_0x35f2d7(0x3ef)]];return this[_0x35f2d7(0x3ef)]=(this[_0x35f2d7(0x3ef)]+0x1)%Oe[_0x35f2d7(0x29d)],this['_assignedColors'][_0x35f2d7(0x208)](_0x3c71a8,_0x48f447),_0x48f447;}}function we(_0x15a658){let _0x58eb47='';for(const _0x5eaa07 of _0x15a658){const {startOffset:_0x1db10f,endOffset:_0x49df88,isActive:_0x4d83fd,rangeType:_0x43c291,segmentId:_0x2d5de7,segmentPage:_0x43e47a}=_0x5eaa07;_0x58eb47['length']&&(_0x58eb47+=','),_0x58eb47+=_0x1db10f+':'+_0x49df88+':'+(_0x4d83fd?'1':'0')+':'+_0x43c291+':'+_0x2d5de7+':'+_0x43e47a;}return _0x58eb47;}function Je(_0x246981){const _0x4fddfa=_0x338f9d,_0x517d65=_0x246981[_0x4fddfa(0x320)](','),_0x27eaa8=[];for(const _0x52f680 of _0x517d65){const [_0x3708e3,_0x253d89,_0x54732a,_0x577b05,_0x51401f,_0x1e5ed8]=_0x52f680[_0x4fddfa(0x320)](':');_0x27eaa8[_0x4fddfa(0x3db)]({'startOffset':Number(_0x3708e3),'endOffset':Number(_0x253d89),'collapsed':_0x3708e3===_0x253d89,'isActive':_0x54732a==='1','rangeType':_0x577b05===a['DOC_RANGE_TYPE'][_0x4fddfa(0x266)]?a[_0x4fddfa(0x35d)][_0x4fddfa(0x266)]:a[_0x4fddfa(0x35d)][_0x4fddfa(0x342)],'segmentId':typeof _0x51401f==_0x4fddfa(0x319)?String(_0x51401f):'','segmentPage':Number(_0x1e5ed8!=null?_0x1e5ed8:-0x1)});}return _0x27eaa8[_0x4fddfa(0x3fc)](_0x9a9fdd=>_0x9a9fdd[_0x4fddfa(0x1c8)])||(_0x27eaa8[0x0]['isActive']=!0x0),_0x27eaa8;}class Ce extends a[_0x338f9d(0x1c2)]{constructor(){const _0x413d7a=_0x338f9d;super(...arguments),h(this,'_collabCursorState$',new d[(_0x413d7a(0x3ac))](null)),h(this,_0x413d7a(0x24d),this[_0x413d7a(0x283)]['asObservable']());}['syncEditingCollabCursor'](_0x254150){const _0x3fb4f9=_0x338f9d,{unitID:_0x3f9f8f,memberID:_0x5bdf55,textRanges:_0x1fa7ce}=_0x254150,_0x3a8473=we(_0x1fa7ce);if(_0x3a8473==='')return;const _0x13e4db={'unitID':_0x3f9f8f,'memberID':_0x5bdf55,'selection':_0x3a8473};this[_0x3fb4f9(0x283)][_0x3fb4f9(0x346)](_0x13e4db);}}var Ze=Object[_0x338f9d(0x20f)],Qe=(_0xb56d89,_0xd09792,_0x3e8b94,_0x3bbc9f)=>{const _0x203798=_0x338f9d;for(var _0x3aae9c=_0x3bbc9f>0x1?void 0x0:_0x3bbc9f?Ze(_0xd09792,_0x3e8b94):_0xd09792,_0x336268=_0xb56d89[_0x203798(0x29d)]-0x1,_0x209f68;_0x336268>=0x0;_0x336268--)(_0x209f68=_0xb56d89[_0x336268])&&(_0x3aae9c=_0x209f68(_0x3aae9c)||_0x3aae9c);return _0x3aae9c;},L=(_0x4da3ed,_0x36f09c)=>(_0x5c050d,_0x547391)=>_0x36f09c(_0x5c050d,_0x547391,_0x4da3ed);const et=0x12c,tt=0x64;let fe=class extends a[_0x338f9d(0x1c2)]{constructor(_0x12bff3,_0x176c9b,_0x3f3283,_0x21fbe9,_0x33af7e,_0x25dd93,_0x9b9c5c,_0x48dbd2,_0x22c577){const _0x543ebb=_0x338f9d;super(),h(this,_0x543ebb(0x282),!0x1),h(this,_0x543ebb(0x219),!0x1),h(this,_0x543ebb(0x23d),new d[(_0x543ebb(0x3ac))](new Map())),h(this,_0x543ebb(0x25e),this[_0x543ebb(0x23d)][_0x543ebb(0x3fe)]()),h(this,_0x543ebb(0x3f8),new d[(_0x543ebb(0x3ac))]([])),h(this,_0x543ebb(0x3b7),this['_roomMembers$'][_0x543ebb(0x349)](d[_0x543ebb(0x261)](et))),h(this,'_updateLocalCursor',a['debounce'](_0x8e7f72=>{const _0x37539d=_0x543ebb,_0x546a92={'eventID':m['CollaborationEvent'][_0x37539d(0x1db)],'data':{'unitID':this[_0x37539d(0x29a)],'memberID':this[_0x37539d(0x1e7)]['getMemberID'](),'selection':we(_0x8e7f72)}};this['_session'][_0x37539d(0x1f0)](_0x546a92,this['unitID']);},tt)),(this[_0x543ebb(0x29a)]=_0x12bff3,this[_0x543ebb(0x1e7)]=_0x176c9b,this[_0x543ebb(0x278)]=_0x3f3283,this[_0x543ebb(0x1fd)]=_0x21fbe9,this[_0x543ebb(0x289)]=_0x33af7e,this[_0x543ebb(0x3fa)]=_0x25dd93,this[_0x543ebb(0x272)]=_0x9b9c5c,this[_0x543ebb(0x24c)]=_0x48dbd2,this[_0x543ebb(0x3e0)]=_0x22c577);}get[_0x338f9d(0x1cb)](){const _0x136ddd=_0x338f9d;return this[_0x136ddd(0x23d)]['getValue']();}get['roomMembers'](){const _0x572cf9=_0x338f9d;return this[_0x572cf9(0x3f8)]['getValue']();}['dispose'](){const _0xf3fc53=_0x338f9d;super[_0xf3fc53(0x361)](),this[_0xf3fc53(0x23d)][_0xf3fc53(0x346)](new Map()),this['_cursorInfo$'][_0xf3fc53(0x2c6)](),this['_roomMembers$'][_0xf3fc53(0x346)]([]),this['_roomMembers$']['complete']();}[_0x338f9d(0x390)](){const _0x3ff462=_0x338f9d;this['_init']||(this[_0x3ff462(0x219)]=!0x0,this[_0x3ff462(0x1e7)][_0x3ff462(0x274)][_0x3ff462(0x349)](d[_0x3ff462(0x36f)](this[_0x3ff462(0x42b)]))['subscribe'](_0x12bca8=>{const _0x2eb0e3=_0x3ff462;_0x12bca8===u[_0x2eb0e3(0x22f)]['ONLINE']?this[_0x2eb0e3(0x297)]():this[_0x2eb0e3(0x3f3)]();}),this[_0x3ff462(0x1e7)]['event$']['pipe'](d[_0x3ff462(0x36f)](this['dispose$']))[_0x3ff462(0x239)](_0x443485=>{const _0x2ac419=_0x3ff462,_0x25481a=_0x443485[_0x2ac419(0x31c)];_0x25481a===m[_0x2ac419(0x1ba)][_0x2ac419(0x1db)]&&this[_0x2ac419(0x374)](_0x443485),_0x25481a===m[_0x2ac419(0x1ba)][_0x2ac419(0x211)]&&this['_onCursorDelete'](_0x443485);}),this[_0x3ff462(0x3df)](this[_0x3ff462(0x3e0)][_0x3ff462(0x386)](_0x48eae2=>{const _0x217a5b=_0x3ff462,_0x3080af=_0x48eae2[_0x217a5b(0x214)];_0x3080af!=null&&this[_0x217a5b(0x282)]&&_0x48eae2['id']===Y[_0x217a5b(0x36a)]['id']&&_0x3080af['unitId']===this[_0x217a5b(0x29a)]&&_0x3080af[_0x217a5b(0x205)]===!0x1&&_0x3080af[_0x217a5b(0x198)][_0x217a5b(0x29d)]>0x0&&this['_updateLocalCursor'](_0x3080af[_0x217a5b(0x198)]);})),this[_0x3ff462(0x3fa)]['collabCursorState$'][_0x3ff462(0x349)](d['takeUntil'](this[_0x3ff462(0x42b)]))[_0x3ff462(0x239)](_0x50fe04=>{const _0x1634e1=_0x3ff462;if((_0x50fe04==null?void 0x0:_0x50fe04[_0x1634e1(0x29a)])!==this[_0x1634e1(0x29a)])return;const _0x42456b={'eventID':m['CollaborationEvent'][_0x1634e1(0x1db)],'data':_0x50fe04};this['_onCursorUpdate'](_0x42456b);}),this['disposeWithMe'](this[_0x3ff462(0x3e0)]['onCommandExecuted'](_0x2ce9ea=>{const _0x1ada4f=_0x3ff462;if(_0x2ce9ea[_0x1ada4f(0x214)]==null)return;const _0x1a6876=_0x2ce9ea[_0x1ada4f(0x214)];if(_0x2ce9ea['id']!==Y[_0x1ada4f(0x24f)]['id']||_0x1a6876[_0x1ada4f(0x20d)]!==this[_0x1ada4f(0x29a)])return;const _0x2fd707={'id':_0x1ada4f(0x3e8),'params':_0x1a6876},_0x3b73e0=this[_0x1ada4f(0x1cb)];for(const [_0x1ab763,_0x588b23]of _0x3b73e0){const _0x3a8689={'id':_0x1ada4f(0x3e8),'params':{'unitId':this[_0x1ada4f(0x29a)],'actions':null,'textRanges':_0x588b23[_0x1ada4f(0x198)]}},_0x2f5f6a=this[_0x1ada4f(0x272)][_0x1ada4f(0x24e)](_0x2fd707,_0x3a8689,!0x1);if(m['isTransformMutationFailure'](_0x2f5f6a))throw _0x2f5f6a[_0x1ada4f(0x1d9)];_0x3b73e0[_0x1ada4f(0x208)](_0x1ab763,{..._0x588b23,'ranges':_0x2f5f6a[_0x1ada4f(0x34e)]['params'][_0x1ada4f(0x288)]});}queueMicrotask(()=>{const _0x3abef5=_0x1ada4f;this[_0x3abef5(0x23d)][_0x3abef5(0x346)](_0x3b73e0);});})));}[_0x338f9d(0x374)](_0x5c0d81){const _0x49ff5e=_0x338f9d;var _0x145dc3,_0x441098;const {memberID:_0x526b10,selection:_0x3f1105}=_0x5c0d81[_0x49ff5e(0x3c1)],_0x3bdcc7=Je(_0x3f1105),_0x29a576=(_0x441098=(_0x145dc3=this[_0x49ff5e(0x289)]['getMember'](this[_0x49ff5e(0x29a)],_0x526b10))==null?void 0x0:_0x145dc3['name'])!=null?_0x441098:_0x49ff5e(0x28d),_0x5662c5={'color':this[_0x49ff5e(0x1fd)][_0x49ff5e(0x235)](_0x526b10),'name':_0x29a576,'ranges':_0x3bdcc7},_0x2b49dc=this['cursorInfo'];_0x2b49dc[_0x49ff5e(0x208)](_0x526b10,_0x5662c5),this[_0x49ff5e(0x23d)][_0x49ff5e(0x346)](_0x2b49dc);}[_0x338f9d(0x3d4)](_0x32f733){const _0x15d627=_0x338f9d,{memberID:_0x18e1c7}=_0x32f733[_0x15d627(0x3c1)],_0x5235de=this[_0x15d627(0x1cb)];_0x5235de[_0x15d627(0x308)](_0x18e1c7),this['_cursorInfo$'][_0x15d627(0x346)](_0x5235de);}[_0x338f9d(0x297)](){const _0x2e13c1=_0x338f9d;var _0x13353b;if(this[_0x2e13c1(0x282)]=!0x0,((_0x13353b=this[_0x2e13c1(0x24c)]['getFocusedUnit']())==null?void 0x0:_0x13353b[_0x2e13c1(0x2cb)]())!==this[_0x2e13c1(0x29a)])return;const _0x5059e4=this[_0x2e13c1(0x278)][_0x2e13c1(0x34c)](Y[_0x2e13c1(0x2f6)])[_0x2e13c1(0x360)]();Array['isArray'](_0x5059e4)&&_0x5059e4[_0x2e13c1(0x29d)]>0x0&&this[_0x2e13c1(0x3ee)](_0x5059e4);}['_toggleOffline'](){const _0x29f816=_0x338f9d;this[_0x29f816(0x282)]=!0x1;}};fe=Qe([L(0x2,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),L(0x3,a[_0x338f9d(0x388)](me)),L(0x4,a['Inject'](u[_0x338f9d(0x2fb)])),L(0x5,a[_0x338f9d(0x388)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x338f9d(0x2d1)]),L(0x8,a[_0x338f9d(0x1d1)])],fe);var st=Object[_0x338f9d(0x20f)],it=(_0x578c55,_0x1a6d3c,_0xc87d7d,_0x5aa869)=>{for(var _0xa502f2=_0x5aa869>0x1?void 0x0:_0x5aa869?st(_0x1a6d3c,_0xc87d7d):_0x1a6d3c,_0x1415a7=_0x578c55['length']-0x1,_0x1740c4;_0x1415a7>=0x0;_0x1415a7--)(_0x1740c4=_0x578c55[_0x1415a7])&&(_0xa502f2=_0x1740c4(_0xa502f2)||_0xa502f2);return _0xa502f2;},A=(_0x3dcc3a,_0x246264)=>(_0x35ee55,_0x54c0ce)=>_0x246264(_0x35ee55,_0x54c0ce,_0x3dcc3a);const nt=0x12c,rt=0x64,ot=()=>{let _0x34ba0f=[],_0xa4b384=!0x1;return _0x4c06e7=>{const _0x510537=_0xe86e;_0x34ba0f[_0x510537(0x3db)](_0x4c06e7),_0xa4b384||(_0xa4b384=!0x0,setTimeout(()=>{const _0x1323e2=_0x510537;_0x34ba0f[_0x1323e2(0x2d6)](_0x10d9ff=>_0x10d9ff()),_0x34ba0f=[],_0xa4b384=!0x1;}));};};let Se=class extends a[_0x338f9d(0x1c2)]{constructor(_0x42be2b,_0xb843ae,_0x363bf2,_0x272eb9,_0x2bf617,_0x32c6d9,_0x3acb4b,_0x50fd18){const _0x3893bd=_0x338f9d;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d[(_0x3893bd(0x3ac))](new Map())),h(this,'cursorInfo$',this[_0x3893bd(0x23d)][_0x3893bd(0x3fe)]()),h(this,_0x3893bd(0x3f8),new d[(_0x3893bd(0x3ac))]([])),h(this,_0x3893bd(0x3b7),this[_0x3893bd(0x3f8)]['pipe'](d[_0x3893bd(0x261)](nt))),h(this,'_updateLocalCursor',a['debounce']((_0x4c5567,_0x4d8ef4)=>{const _0x4dcfa1=_0x3893bd,_0x281f72={'eventID':m[_0x4dcfa1(0x1ba)][_0x4dcfa1(0x1db)],'data':{'unitID':this[_0x4dcfa1(0x29a)],'memberID':this[_0x4dcfa1(0x1e7)][_0x4dcfa1(0x3cd)](),'selection':Ee['serializeRangeWithSheet'](_0x4c5567,_0x4d8ef4[_0x4dcfa1(0x352)])}};this['_session']['send'](_0x281f72,this['unitID']);},rt)),(this[_0x3893bd(0x29a)]=_0x42be2b,this[_0x3893bd(0x1e7)]=_0xb843ae,this[_0x3893bd(0x278)]=_0x363bf2,this[_0x3893bd(0x1fd)]=_0x272eb9,this['_memberService']=_0x2bf617,this['_univerInstanceService']=_0x32c6d9,this['_commandService']=_0x3acb4b,this['_refRangeService']=_0x50fd18);}get[_0x338f9d(0x1cb)](){const _0x22a66b=_0x338f9d;return this['_cursorInfo$'][_0x22a66b(0x327)]();}get[_0x338f9d(0x1c5)](){const _0x40d397=_0x338f9d;return this['_roomMembers$'][_0x40d397(0x327)]();}['dispose'](){const _0x54efd5=_0x338f9d;super[_0x54efd5(0x361)](),this[_0x54efd5(0x23d)][_0x54efd5(0x346)](new Map()),this['_cursorInfo$'][_0x54efd5(0x2c6)](),this[_0x54efd5(0x3f8)][_0x54efd5(0x346)]([]),this[_0x54efd5(0x3f8)]['complete']();}[_0x338f9d(0x390)](){const _0x304313=_0x338f9d;this[_0x304313(0x219)]||(this['_init']=!0x0,this[_0x304313(0x1e7)]['sessionStatus$']['pipe'](d[_0x304313(0x36f)](this['dispose$']))['subscribe'](_0x1d1100=>{const _0x4ad9c6=_0x304313;_0x1d1100===u['SessionStatus']['ONLINE']?this[_0x4ad9c6(0x297)]():this[_0x4ad9c6(0x3f3)]();}),this['_session'][_0x304313(0x33f)][_0x304313(0x349)](d[_0x304313(0x36f)](this[_0x304313(0x42b)]))[_0x304313(0x239)](_0x26dc64=>{const _0x138c42=_0x304313,_0x3c0753=_0x26dc64[_0x138c42(0x31c)];_0x3c0753===m['CollaborationEvent'][_0x138c42(0x1db)]&&this['_onCursorUpdate'](_0x26dc64),_0x3c0753===m[_0x138c42(0x1ba)]['USERS_LEAVE']&&this[_0x138c42(0x3d4)](_0x26dc64);}),this['_onRefRangeChange'](),this[_0x304313(0x3df)](this[_0x304313(0x3e0)][_0x304313(0x386)](_0x596621=>{const _0x212fa7=_0x304313;if(this['_online']&&_0x596621['id']===g[_0x212fa7(0x353)]['id']&&_0x596621[_0x212fa7(0x214)][_0x212fa7(0x20d)]===this[_0x212fa7(0x29a)]){const _0x354ba4=_0x596621['params'];this['_updateLocalCursor'](_0x354ba4[_0x212fa7(0x1f8)],_0x354ba4[_0x212fa7(0x36b)][0x0]);}})));}[_0x338f9d(0x374)](_0x504128){const _0x347225=_0x338f9d;var _0x5b18c0,_0x5a5ca3;const {memberID:_0x514664,selection:_0x29e44d}=_0x504128['data'],{sheetName:_0x3d1e3,range:_0x26f073}=Ee['deserializeRangeWithSheet'](_0x29e44d),_0x1f5bdb={'name':(_0x5a5ca3=(_0x5b18c0=this[_0x347225(0x289)][_0x347225(0x210)](this[_0x347225(0x29a)],_0x514664))==null?void 0x0:_0x5b18c0[_0x347225(0x31b)])!=null?_0x5a5ca3:_0x347225(0x28d),'range':this[_0x347225(0x305)](_0x3d1e3,_0x26f073),'sheetID':_0x3d1e3,'color':this[_0x347225(0x1fd)][_0x347225(0x235)](_0x514664),'selection':_0x29e44d},_0x1126cf=this['cursorInfo'];_0x1126cf['set'](_0x514664,_0x1f5bdb),this['_cursorInfo$'][_0x347225(0x346)](_0x1126cf);}[_0x338f9d(0x3d4)](_0xe73560){const _0x306041=_0x338f9d,{memberID:_0x521847}=_0xe73560['data'],_0x1b74cc=this[_0x306041(0x1cb)];_0x1b74cc[_0x306041(0x308)](_0x521847),this[_0x306041(0x23d)][_0x306041(0x346)](_0x1b74cc);}[_0x338f9d(0x305)](_0x3a3c8d,_0x570b33){const _0x3465e2=_0x338f9d;var _0x58616d,_0x1ea617;const _0x1c9063=(_0x1ea617=(_0x58616d=this[_0x3465e2(0x24c)][_0x3465e2(0x28f)](this[_0x3465e2(0x29a)]))==null?void 0x0:_0x58616d[_0x3465e2(0x270)](_0x3a3c8d))==null?void 0x0:_0x1ea617['getMergeData']();return(_0x1c9063==null?void 0x0:_0x1c9063[_0x3465e2(0x1b1)](_0x13de97=>a[_0x3465e2(0x2b4)]['contains'](_0x13de97,_0x570b33)))||_0x570b33;}[_0x338f9d(0x25a)](){const _0xfc2b96=_0x338f9d,_0x2d8a1b=new a[(_0xfc2b96(0x26b))](),_0x2bcc80=ot(),_0x25eaf8=()=>{const _0x9d439e=_0xfc2b96;_0x2d8a1b[_0x9d439e(0x361)]();const _0x55f89c=(_0x41c061,_0x59f419,_0x1f5660,_0x3d52f2)=>{const _0x44c117=_0x9d439e;let _0xb4450b=[];switch(_0x41c061['id']){case g[_0x44c117(0x2c5)][_0x44c117(0x3da)]:{_0xb4450b=g[_0x44c117(0x1ff)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x1f4)]:{_0xb4450b=g[_0x44c117(0x1bb)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x400)]:{_0xb4450b=g[_0x44c117(0x2b7)](_0x41c061,_0x3d52f2);break;}case g['EffectRefRangId'][_0x44c117(0x334)]:{_0xb4450b=g[_0x44c117(0x285)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)]['InsertRangeMoveRightCommandId']:{_0xb4450b=g[_0x44c117(0x36d)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x3d7)]:{_0xb4450b=g[_0x44c117(0x233)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x41c)]:{_0xb4450b=g['handleMoveRange'](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)][_0x44c117(0x19a)]:{_0xb4450b=g[_0x44c117(0x39a)](_0x41c061,_0x3d52f2);break;}case g[_0x44c117(0x2c5)]['RemoveRowCommandId']:{_0xb4450b=g[_0x44c117(0x2f7)](_0x41c061,_0x3d52f2);break;}}const _0x4c122f=g[_0x44c117(0x21a)](_0xb4450b,_0x3d52f2),_0x5d2b15=this[_0x44c117(0x1cb)][_0x44c117(0x34c)](_0x59f419);if(_0x5d2b15&&_0x4c122f){const _0x5ea068={..._0x5d2b15,'range':_0x4c122f};this[_0x44c117(0x1cb)][_0x44c117(0x208)](_0x59f419,_0x5ea068),_0x2bcc80(()=>{const _0x1de9c3=_0x44c117,_0x23d4ea=this[_0x1de9c3(0x3e1)]['registerRefRange'](_0x4c122f,_0x97b4b0=>(_0x23d4ea[_0x1de9c3(0x361)](),_0x55f89c(_0x97b4b0,_0x59f419,_0x1f5660,_0x4c122f)));_0x2d8a1b[_0x1de9c3(0x271)](_0x23d4ea);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x9d439e(0x2d6)]((_0x59666a,_0x158463)=>{const _0x332fe7=_0x9d439e,{range:_0x325b25,sheetID:_0x86232c}=_0x59666a,_0x4291f1=this[_0x332fe7(0x3e1)][_0x332fe7(0x30f)](_0x325b25,_0x44ebf3=>(_0x4291f1[_0x332fe7(0x361)](),_0x55f89c(_0x44ebf3,_0x158463,_0x86232c,_0x325b25)));_0x2d8a1b[_0x332fe7(0x271)](_0x4291f1);});};this['disposeWithMe'](a[_0xfc2b96(0x1a9)](this[_0xfc2b96(0x23d)][_0xfc2b96(0x239)](()=>{_0x25eaf8();})));}[_0x338f9d(0x297)](){const _0x849fba=_0x338f9d;var _0xd92b21,_0x5af4b7;if(this[_0x849fba(0x282)]=!0x0,((_0xd92b21=this[_0x849fba(0x24c)][_0x849fba(0x20a)]())==null?void 0x0:_0xd92b21[_0x849fba(0x2cb)]())!==this[_0x849fba(0x29a)])return;const _0x3b29e4=(_0x5af4b7=this[_0x849fba(0x278)][_0x849fba(0x34c)](g[_0x849fba(0x292)])['getCurrentSelections']())==null?void 0x0:_0x5af4b7[0x0],_0x2eb3d5=this[_0x849fba(0x24c)][_0x849fba(0x35f)](a[_0x849fba(0x2d9)][_0x849fba(0x263)])[_0x849fba(0x1e2)]();_0x3b29e4&&_0x2eb3d5&&this[_0x849fba(0x3ee)](_0x2eb3d5['getSheetId'](),_0x3b29e4);}[_0x338f9d(0x3f3)](){const _0x1d5d56=_0x338f9d;this[_0x1d5d56(0x282)]=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x338f9d(0x302)])),A(0x3,a[_0x338f9d(0x388)](me)),A(0x4,a[_0x338f9d(0x388)](u[_0x338f9d(0x2fb)])),A(0x5,a[_0x338f9d(0x2d1)]),A(0x6,a['ICommandService']),A(0x7,a[_0x338f9d(0x388)](g[_0x338f9d(0x313)]))],Se);var at=Object[_0x338f9d(0x20f)],ct=(_0x566a4b,_0x2f56cb,_0x5422bc,_0x5bad70)=>{const _0x26e616=_0x338f9d;for(var _0x37d0b8=_0x5bad70>0x1?void 0x0:_0x5bad70?at(_0x2f56cb,_0x5422bc):_0x2f56cb,_0x34d36b=_0x566a4b[_0x26e616(0x29d)]-0x1,_0x597274;_0x34d36b>=0x0;_0x34d36b--)(_0x597274=_0x566a4b[_0x34d36b])&&(_0x37d0b8=_0x597274(_0x37d0b8)||_0x37d0b8);return _0x37d0b8;},ie=(_0x1762d1,_0x11963a)=>(_0x27bffa,_0x2cb328)=>_0x11963a(_0x27bffa,_0x2cb328,_0x1762d1);let x=class extends a[_0x338f9d(0x1c2)]{constructor(_0x10df31,_0x1d48f3,_0x3b0077){const _0x5ea70f=_0x338f9d;super(),h(this,_0x5ea70f(0x2c1),new Map()),h(this,_0x5ea70f(0x237),new d[(_0x5ea70f(0x3b6))]()),(this['_univerInstanceService']=_0x10df31,this[_0x5ea70f(0x278)]=_0x1d48f3,this['_collabSessionService']=_0x3b0077,this[_0x5ea70f(0x219)]());}[_0x338f9d(0x361)](){const _0x4e4380=_0x338f9d;super[_0x4e4380(0x361)](),this[_0x4e4380(0x237)][_0x4e4380(0x2c6)](),this['_entities'][_0x4e4380(0x2d6)](_0xfaed6=>_0xfaed6[_0x4e4380(0x361)]());}[_0x338f9d(0x2e9)](_0xf091eb){const _0x2cccec=_0x338f9d;return this[_0x2cccec(0x2c1)][_0x2cccec(0x3ed)](_0xf091eb)?this[_0x2cccec(0x2c1)][_0x2cccec(0x34c)](_0xf091eb)[_0x2cccec(0x25e)]:this['_entityInit$']['pipe'](d[_0x2cccec(0x251)](_0xdb0aaa=>_0xdb0aaa['unitID']===_0xf091eb),d[_0x2cccec(0x2ce)](_0x39bd78=>_0x39bd78[_0x2cccec(0x25e)]));}[_0x338f9d(0x219)](){const _0xbaa8ed=_0x338f9d;this[_0xbaa8ed(0x24c)][_0xbaa8ed(0x422)](a[_0xbaa8ed(0x2d9)][_0xbaa8ed(0x263)])['pipe'](d[_0xbaa8ed(0x36f)](this[_0xbaa8ed(0x42b)]))[_0xbaa8ed(0x239)](async _0xb8d3f4=>{const _0xe2d3bf=_0xbaa8ed,_0x386e4e=_0xb8d3f4[_0xe2d3bf(0x2cb)](),_0x2bacb7=await this[_0xe2d3bf(0x27b)](_0x386e4e);this[_0xe2d3bf(0x237)][_0xe2d3bf(0x346)](_0x2bacb7),this['_entities'][_0xe2d3bf(0x208)](_0x386e4e,_0x2bacb7);}),this[_0xbaa8ed(0x24c)][_0xbaa8ed(0x422)](a[_0xbaa8ed(0x2d9)][_0xbaa8ed(0x2e3)])[_0xbaa8ed(0x349)](d[_0xbaa8ed(0x36f)](this[_0xbaa8ed(0x42b)]))[_0xbaa8ed(0x349)](d[_0xbaa8ed(0x251)](_0x4456e8=>!_0x4456e8[_0xbaa8ed(0x2cb)]()[_0xbaa8ed(0x223)]('__')))[_0xbaa8ed(0x239)](async _0x648fbc=>{const _0x11c968=_0xbaa8ed,_0x3c2af4=_0x648fbc[_0x11c968(0x2cb)](),_0x30423a=await this[_0x11c968(0x284)](_0x3c2af4);this[_0x11c968(0x237)][_0x11c968(0x346)](_0x30423a),this[_0x11c968(0x2c1)][_0x11c968(0x208)](_0x3c2af4,_0x30423a);}),d[_0xbaa8ed(0x395)](this[_0xbaa8ed(0x24c)][_0xbaa8ed(0x3c5)](a['UniverInstanceType'][_0xbaa8ed(0x2e3)]),this[_0xbaa8ed(0x24c)][_0xbaa8ed(0x3c5)](a['UniverInstanceType'][_0xbaa8ed(0x263)]))[_0xbaa8ed(0x349)](d[_0xbaa8ed(0x36f)](this[_0xbaa8ed(0x42b)]))['subscribe'](_0x2860a1=>{const _0x418fdf=_0xbaa8ed,_0x49d5ef=_0x2860a1[_0x418fdf(0x2cb)](),_0xea5c61=this['_entities'][_0x418fdf(0x34c)](_0x49d5ef);_0xea5c61&&(_0xea5c61[_0x418fdf(0x361)](),this[_0x418fdf(0x2c1)][_0x418fdf(0x308)](_0x49d5ef));});}async[_0x338f9d(0x27b)](_0x5cc505){const _0x3bb6b8=_0x338f9d,_0x2024f2=await this[_0x3bb6b8(0x407)][_0x3bb6b8(0x354)](_0x5cc505),_0x13b7a3=this[_0x3bb6b8(0x278)]['createInstance'](Se,_0x5cc505,_0x2024f2);return _0x13b7a3[_0x3bb6b8(0x390)](),_0x13b7a3;}async[_0x338f9d(0x284)](_0x4f7bde){const _0xbd7ba4=_0x338f9d,_0x42055a=await this['_collabSessionService'][_0xbd7ba4(0x354)](_0x4f7bde),_0x5026da=this[_0xbd7ba4(0x278)]['createInstance'](fe,_0x4f7bde,_0x42055a);return _0x5026da[_0xbd7ba4(0x390)](),_0x5026da;}};x=ct([ie(0x0,a[_0x338f9d(0x2d1)]),ie(0x1,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),ie(0x2,a[_0x338f9d(0x388)](u[_0x338f9d(0x262)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x14cb8e,_0x526364){const _0x38d6f4=_0x338f9d;let {radius:_0x4f2ec7,width:_0x3484c7,height:_0x325fd5}=_0x526364;_0x4f2ec7=_0x4f2ec7!=null?_0x4f2ec7:0x0,_0x3484c7=_0x3484c7!=null?_0x3484c7:0x1e,_0x325fd5=_0x325fd5!=null?_0x325fd5:0x1e;let _0x226c09=0x0,_0xb4370f=0x0,_0x3d5bed=0x0;_0x226c09=_0xb4370f=_0x3d5bed=Math[_0x38d6f4(0x3bb)](_0x4f2ec7,_0x3484c7/0x2,_0x325fd5/0x2),_0x14cb8e[_0x38d6f4(0x298)](),_0x14cb8e[_0x38d6f4(0x254)](_0x226c09,0x0),_0x14cb8e['lineTo'](_0x3484c7-_0xb4370f,0x0),_0x14cb8e['arc'](_0x3484c7-_0xb4370f,_0xb4370f,_0xb4370f,Math['PI']*0x3/0x2,0x0,!0x1),_0x14cb8e[_0x38d6f4(0x2e0)](_0x3484c7,_0x325fd5-_0x3d5bed),_0x14cb8e[_0x38d6f4(0x26e)](_0x3484c7-_0x3d5bed,_0x325fd5-_0x3d5bed,_0x3d5bed,0x0,Math['PI']/0x2,!0x1),_0x14cb8e[_0x38d6f4(0x2e0)](0x0,_0x325fd5),_0x14cb8e[_0x38d6f4(0x2e0)](0x0,_0x226c09),_0x14cb8e['arc'](_0x226c09,_0x226c09,_0x226c09,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x14cb8e[_0x38d6f4(0x1e8)](),_0x526364['fill']&&(_0x14cb8e['save'](),_0x14cb8e['fillStyle']=_0x526364[_0x38d6f4(0x280)],_0x526364[_0x38d6f4(0x22e)]==='evenodd'?_0x14cb8e['fill'](_0x38d6f4(0x2f5)):_0x14cb8e[_0x38d6f4(0x280)](),_0x14cb8e[_0x38d6f4(0x238)]());}class ee extends p[_0x338f9d(0x396)]{constructor(_0x4c49b8,_0x13c1f1){const _0x636560=_0x338f9d;super(_0x4c49b8,_0x13c1f1),h(this,_0x636560(0x325)),h(this,_0x636560(0x2df)),(this[_0x636560(0x325)]=_0x13c1f1==null?void 0x0:_0x13c1f1[_0x636560(0x325)],this[_0x636560(0x2df)]=_0x13c1f1==null?void 0x0:_0x13c1f1['text']);}static['drawWith'](_0x3a8f6c,_0x38c0c4){const _0x3c9b65=_0x338f9d,{text:_0xcf2991,color:_0x4fdd26}=_0x38c0c4;_0x3a8f6c[_0x3c9b65(0x410)](),_0x3a8f6c['font']=_0x3c9b65(0x1a8);const _0xde6ed7=_0x3a8f6c['measureText'](_0xcf2991)[_0x3c9b65(0x35b)],_0x16bba7=Math[_0x3c9b65(0x3bb)](_0xde6ed7+0x2*ne,Re);_t(_0x3a8f6c,{'height':K,'radius':0x4,'width':_0x16bba7,'fill':_0x4fdd26}),_0x3a8f6c[_0x3c9b65(0x2aa)]=_0x3c9b65(0x1c3);const _0x5c4699=ne,_0x15c77a=K-lt,_0x35e83c=Re-0x2*ne;if(_0xde6ed7>_0x35e83c){let _0x2d6bff='',_0x43703c=0x0;for(const _0x167872 of _0xcf2991){const _0x4673ce=_0x3a8f6c[_0x3c9b65(0x255)](_0x167872)[_0x3c9b65(0x35b)];if(_0x43703c+_0x4673ce<=_0x35e83c-_0x3a8f6c[_0x3c9b65(0x255)](_0x3c9b65(0x38a))['width'])_0x2d6bff+=_0x167872,_0x43703c+=_0x4673ce;else{_0x2d6bff+='...';break;}}_0x3a8f6c[_0x3c9b65(0x2be)](_0x2d6bff,_0x5c4699,_0x15c77a);}else _0x3a8f6c[_0x3c9b65(0x2be)](_0xcf2991,_0x5c4699,_0x15c77a);_0x3a8f6c[_0x3c9b65(0x238)]();}['_draw'](_0x2589fa){const _0x4c9a7f=_0x338f9d;ee[_0x4c9a7f(0x277)](_0x2589fa,this);}}const re=_0x338f9d(0x3b0),ht=_0x338f9d(0x1ca),ut=_0x338f9d(0x382),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x338f9d(0x248);class De{constructor(_0x5a1662,_0x116b8a,_0x47aa71,_0x4c686c){const _0xbf68b8=_0x338f9d;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,_0xbf68b8(0x2f9),null),h(this,_0xbf68b8(0x217),null),h(this,_0xbf68b8(0x40c),null),(this[_0xbf68b8(0x21c)]=_0x5a1662,this[_0xbf68b8(0x338)]=_0x116b8a,this[_0xbf68b8(0x242)]=_0x47aa71,this[_0xbf68b8(0x2bc)]=_0x4c686c,this[_0xbf68b8(0x30c)]());}set[_0x338f9d(0x42d)](_0x42fe89){const _0x1e126f=_0x338f9d;_0x42fe89?(this['_anchorDot']&&this[_0x1e126f(0x2f9)][_0x1e126f(0x2ab)](),this[_0x1e126f(0x246)]&&this[_0x1e126f(0x246)][_0x1e126f(0x1e4)]()):(this[_0x1e126f(0x2f9)]&&this[_0x1e126f(0x2f9)][_0x1e126f(0x1e4)](),this[_0x1e126f(0x246)]&&this['_textBubble'][_0x1e126f(0x2ab)]());}[_0x338f9d(0x361)](){const _0x5d541d=_0x338f9d;for(const _0x231839 of this[_0x5d541d(0x421)])_0x231839[_0x5d541d(0x361)]();this['_textBubble']&&this[_0x5d541d(0x246)][_0x5d541d(0x361)](),this['_anchorDot']&&this[_0x5d541d(0x2f9)][_0x5d541d(0x361)](),this[_0x5d541d(0x378)]&&this[_0x5d541d(0x378)][_0x5d541d(0x361)](),this[_0x5d541d(0x40c)]&&this['_eventUnsubscribe']();}[_0x338f9d(0x30c)](){const _0x13e0fb=_0x338f9d;var _0x5dfe56;const {_docSkeleton:_0x3e8fb5,_document:_0x429f7c}=this,{color:_0x5eaf0f,name:_0x75437f,ranges:_0x474cca}=this[_0x13e0fb(0x21c)],_0x3b7d05=_0x429f7c[_0x13e0fb(0x1fa)](),{docsLeft:_0x1de41c,docsTop:_0x5715de}=_0x3b7d05,_0x3abe35=new b[(_0x13e0fb(0x264))](_0x3b7d05,_0x3e8fb5);for(const {startOffset:_0x390e7d,endOffset:_0x3fcba4,rangeType:_0x2023bd,segmentId:_0x21e28a,segmentPage:_0x57d910,collapsed:_0x4ebed5,isActive:_0x10b8ed}of _0x474cca){const _0x26c942=_0x3e8fb5[_0x13e0fb(0x268)](_0x390e7d,!0x0,_0x21e28a,_0x57d910);let _0x1e6a8d=_0x3e8fb5['findNodePositionByCharIndex'](_0x3fcba4,!0x0,_0x21e28a,_0x57d910);if(_0x1e6a8d==null&&(_0x1e6a8d=_0x3e8fb5['findNodePositionByCharIndex'](_0x3fcba4-0x1,!0x1,_0x21e28a,_0x57d910)),_0x10b8ed){const {contentBoxPointGroup:_0x2c403a}=_0x3abe35['getRangePointData'](_0x1e6a8d,_0x1e6a8d);if(_0x2c403a[_0x13e0fb(0x29d)]===0x0)continue;this[_0x13e0fb(0x1b0)](_0x5eaf0f,_0x2c403a,_0x1de41c,_0x5715de,_0x75437f),this['_eventUnsubscribe']=this[_0x13e0fb(0x326)]();}if(_0x26c942&&_0x1e6a8d){if(_0x2023bd===a[_0x13e0fb(0x35d)]['RECT']){const _0x5e4154=new b[(_0x13e0fb(0x1c1))](_0x3b7d05,_0x3e8fb5),{pointGroup:_0x200242}=(_0x5dfe56=_0x5e4154['getRangePointData'](_0x26c942,_0x1e6a8d))!=null?_0x5dfe56:{};if(_0x200242==null||_0x200242[_0x13e0fb(0x29d)]===0x0)continue;this['_drawRectRange'](_0x5eaf0f,_0x200242,_0x1de41c,_0x5715de);}else{if(!_0x4ebed5){const {borderBoxPointGroup:_0x19a2ad}=_0x3abe35[_0x13e0fb(0x2a0)](_0x26c942,_0x1e6a8d);if(_0x19a2ad[_0x13e0fb(0x29d)]===0x0)continue;this['_drawTextRange'](_0x5eaf0f,_0x19a2ad,_0x1de41c,_0x5715de);}}}}}['_drawAnchor'](_0x3c53cc,_0x2ce0e8,_0x53896a,_0x561c90,_0x209e2b){const _0x4cd40a=_0x338f9d,_0x1e3ed1=this[_0x4cd40a(0x232)](_0x2ce0e8),{left:_0x3f0432,top:_0x5d5a09,height:_0x4664f5}=_0x1e3ed1,_0x4d11b2=this['_getScale'](),_0x4c2b66=ft/_0x4d11b2,_0x1e0442=new p['Rect'](re+a[_0x4cd40a(0x265)][_0x4cd40a(0x416)](k),{'left':_0x3f0432+_0x53896a-_0x4c2b66,'top':_0x5d5a09+_0x561c90,'height':_0x4664f5,'width':dt,'fill':_0x3c53cc||p[_0x4cd40a(0x39e)](a[_0x4cd40a(0x2b3)]['black'],0x0),'strokeWidth':_0x4c2b66,'stroke':St,'evented':!0x0});this['_anchor']=_0x1e0442,this[_0x4cd40a(0x338)][_0x4cd40a(0x287)](_0x1e0442,b[_0x4cd40a(0x2a8)]);const _0x30f1ae=new p[(_0x4cd40a(0x2d3))](re+a[_0x4cd40a(0x265)][_0x4cd40a(0x416)](k),{'left':_0x3f0432+_0x53896a-_0x4c2b66,'top':_0x5d5a09+_0x561c90-oe/0x2,'height':oe,'width':oe,'fill':_0x3c53cc||p['getColor'](a[_0x4cd40a(0x2b3)][_0x4cd40a(0x3c6)],0x0),'strokeWidth':0x0,'stroke':_0x3c53cc||p[_0x4cd40a(0x39e)](a[_0x4cd40a(0x2b3)][_0x4cd40a(0x3c6)],0x0),'evented':!0x1});this[_0x4cd40a(0x2f9)]=_0x30f1ae,this['_scene']['addObject'](_0x30f1ae,b['TEXT_RANGE_LAYER_INDEX']);const _0x5496f5=new ee(re+a[_0x4cd40a(0x265)][_0x4cd40a(0x416)](k),{'left':_0x3f0432+_0x53896a-_0x4c2b66,'top':_0x5d5a09+_0x561c90-K,'text':_0x209e2b,'color':_0x3c53cc});this[_0x4cd40a(0x246)]=_0x5496f5,this[_0x4cd40a(0x338)][_0x4cd40a(0x287)](_0x5496f5,b[_0x4cd40a(0x2a8)]),this[_0x4cd40a(0x42d)]=!0x1;}[_0x338f9d(0x326)](){const _0x14a1cf=_0x338f9d,_0x964fa1=this[_0x14a1cf(0x378)]['onPointerEnter$'][_0x14a1cf(0x227)](()=>{this['_hover']=!0x0;}),_0xfbebbb=this['_anchor'][_0x14a1cf(0x1bc)][_0x14a1cf(0x227)](()=>{const _0x1ec77f=_0x14a1cf;this[_0x1ec77f(0x217)]&&clearTimeout(this[_0x1ec77f(0x217)]),this[_0x1ec77f(0x217)]=setTimeout(()=>{const _0xb909dd=_0x1ec77f;this[_0xb909dd(0x42d)]=!0x1;},0x7d0);});return()=>{const _0x4983ca=_0x14a1cf;_0x964fa1[_0x4983ca(0x3a4)](),_0xfbebbb[_0x4983ca(0x3a4)]();};}[_0x338f9d(0x42a)](_0x5aa75c,_0x2c081e,_0x51b90e,_0x21cca3){const _0x5cc4d8=_0x338f9d,_0x47de29=new a[(_0x5cc4d8(0x1bf))](_0x5aa75c)['setAlpha'](0.2)['toRgbString'](),_0x15f90a=new p['RegularPolygon'](ht+a[_0x5cc4d8(0x265)]['generateRandomId'](k),{'pointsGroup':_0x2c081e,'fill':_0x47de29||p[_0x5cc4d8(0x39e)](a[_0x5cc4d8(0x2b3)][_0x5cc4d8(0x3c6)],0.2),'left':_0x51b90e,'top':_0x21cca3,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5cc4d8(0x3db)](_0x15f90a),this[_0x5cc4d8(0x338)][_0x5cc4d8(0x287)](_0x15f90a,b['TEXT_RANGE_LAYER_INDEX']);}[_0x338f9d(0x34f)](_0x5b0d54,_0x3a5382,_0x8a9157,_0x3b99cf){const _0x3f4696=_0x338f9d,_0xf4f58e=new a[(_0x3f4696(0x1bf))](_0x5b0d54)[_0x3f4696(0x3c9)](0.2)['toRgbString'](),_0x294ea8=new p[(_0x3f4696(0x2d0))](ut+a[_0x3f4696(0x265)]['generateRandomId'](k),{'pointsGroup':_0x3a5382,'fill':_0xf4f58e||p[_0x3f4696(0x39e)](a[_0x3f4696(0x2b3)][_0x3f4696(0x3c6)],0.2),'left':_0x8a9157,'top':_0x3b99cf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f4696(0x421)][_0x3f4696(0x3db)](_0x294ea8),this[_0x3f4696(0x338)][_0x3f4696(0x287)](_0x294ea8,b['TEXT_RANGE_LAYER_INDEX']);}[_0x338f9d(0x232)](_0x27c124){const _0xb73e14=_0x27c124[0x0],_0x23c662=_0xb73e14[0x0],_0x52482a=_0xb73e14[0x2],{x:_0x2e7810,y:_0x19c9a7}=_0x23c662,{x:_0x1cdefc,y:_0x1a1e3a}=_0x52482a;return{'left':_0x2e7810,'top':_0x19c9a7,'width':_0x1cdefc-_0x2e7810,'height':_0x1a1e3a-_0x19c9a7};}['_getScale'](){const _0xaa0c3a=_0x338f9d,{scaleX:_0x1e2742,scaleY:_0x44583f}=this[_0xaa0c3a(0x338)]['getAncestorScale']();return Math[_0xaa0c3a(0x231)](_0x1e2742,_0x44583f);}}var It=Object[_0x338f9d(0x20f)],vt=(_0x123d8d,_0x4be0fa,_0x253797,_0x1469cd)=>{for(var _0x50ae31=_0x1469cd>0x1?void 0x0:_0x1469cd?It(_0x4be0fa,_0x253797):_0x4be0fa,_0x1a3233=_0x123d8d['length']-0x1,_0x21965a;_0x1a3233>=0x0;_0x1a3233--)(_0x21965a=_0x123d8d[_0x1a3233])&&(_0x50ae31=_0x21965a(_0x50ae31)||_0x50ae31);return _0x50ae31;},W=(_0x4ec622,_0x55f959)=>(_0x257c84,_0x2c524a)=>_0x55f959(_0x257c84,_0x2c524a,_0x4ec622);let Ie=class extends a[_0x338f9d(0x1c2)]{constructor(_0x256033,_0x4da5aa,_0x163cfd,_0x1b61a8,_0x5a3f65){const _0xa88423=_0x338f9d;super(),h(this,'_cursorShapes',[]),h(this,'_cursors',[]),(this['_context']=_0x256033,this['_docSkeletonManagerService']=_0x4da5aa,this[_0xa88423(0x321)]=_0x163cfd,this[_0xa88423(0x3e0)]=_0x1b61a8,this[_0xa88423(0x1b5)]=_0x5a3f65,this[_0xa88423(0x219)]());}[_0x338f9d(0x219)](){const _0x296892=_0x338f9d,_0x22b733=this[_0x296892(0x310)][_0x296892(0x20d)],_0x2e6e58=this[_0x296892(0x28a)];this[_0x296892(0x3df)](d[_0x296892(0x363)]([this['_collabCursorController']['getCollabCursors$'](_0x22b733),this[_0x296892(0x1b5)][_0x296892(0x3be)]])[_0x296892(0x349)]($[_0x296892(0x1f7)](([_0x517904,_0x3e1343])=>({'skeleton':_0x2e6e58[_0x296892(0x347)](),'cursors':[..._0x517904[_0x296892(0x30a)]()][_0x296892(0x37a)](_0x4d5a87=>({..._0x4d5a87,'color':this[_0x296892(0x1b5)][_0x296892(0x2cd)](_0x4d5a87['color'])}))})))[_0x296892(0x239)](_0x589058=>{const _0x239151=_0x296892;if(this[_0x239151(0x423)](),_0x589058){const {skeleton:_0x2c2242,cursors:_0x244767}=_0x589058;this['_updateCollabCursors'](_0x2c2242,_0x244767);}})),this[_0x296892(0x2af)](),this[_0x296892(0x2ff)]();}['_updateCollabCursors'](_0x8bb401,_0x5e9e51){const _0x128355=_0x338f9d,{scene:_0x218cc8,mainComponent:_0x5e305f}=this['_context'],_0x4f6951=_0x5e9e51[_0x128355(0x1f7)](_0x4e73bb=>new De(_0x4e73bb,_0x218cc8,_0x8bb401,_0x5e305f));this[_0x128355(0x21d)]=_0x4f6951,this[_0x128355(0x226)]=_0x5e9e51;}[_0x338f9d(0x3d8)](){const _0x520717=_0x338f9d;this[_0x520717(0x423)]();const {scene:_0x20afaa,mainComponent:_0x5bd4fa}=this[_0x520717(0x310)],_0x200818=this[_0x520717(0x28a)]['getSkeleton'](),_0x3c6940=this[_0x520717(0x226)][_0x520717(0x1f7)](_0x258ef7=>new De(_0x258ef7,_0x20afaa,_0x200818,_0x5bd4fa));this[_0x520717(0x21d)]=_0x3c6940;}[_0x338f9d(0x423)](){const _0x2e276e=_0x338f9d;this[_0x2e276e(0x21d)][_0x2e276e(0x2d6)](_0x71094e=>_0x71094e['dispose']()),this[_0x2e276e(0x21d)]=[];}['_initCommandExecutedListener'](){const _0x29b0ea=_0x338f9d,_0x4359e0=[b['SetDocZoomRatioOperation']['id']];this[_0x29b0ea(0x3df)](this[_0x29b0ea(0x3e0)][_0x29b0ea(0x386)](_0x5d4f5e=>{const _0x254116=_0x29b0ea;_0x4359e0[_0x254116(0x350)](_0x5d4f5e['id'])&&_0x5d4f5e[_0x254116(0x214)][_0x254116(0x20d)]===this[_0x254116(0x310)][_0x254116(0x20d)]&&this['_refreshCollabCursors']();}));}[_0x338f9d(0x2af)](){const _0x3df0bf=_0x338f9d;this['disposeWithMe'](a[_0x3df0bf(0x2f1)](this[_0x3df0bf(0x310)][_0x3df0bf(0x209)][_0x3df0bf(0x276)])[_0x3df0bf(0x349)]($['filter'](_0x4902f5=>_0x4902f5['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x3df0bf(0x340)]),$[_0x3df0bf(0x38b)](0x10))[_0x3df0bf(0x239)](()=>{const _0x503e88=_0x3df0bf;this[_0x503e88(0x3d8)]();}));}};Ie=vt([W(0x1,a[_0x338f9d(0x388)](Y[_0x338f9d(0x218)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x338f9d(0x388)](a[_0x338f9d(0x2de)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x338f9d(0x396)]{constructor(_0x1b1c03,_0x1f9cc7){const _0x40b1de=_0x338f9d;super(_0x1b1c03,_0x1f9cc7),h(this,_0x40b1de(0x267)),h(this,'_hovered',!0x1),h(this,'_range'),h(this,_0x40b1de(0x432),''),h(this,_0x40b1de(0x3dc),_0x40b1de(0x3a1)),h(this,_0x40b1de(0x336)),(_0x1f9cc7&&this[_0x40b1de(0x2da)](_0x1f9cc7),this[_0x40b1de(0x3d2)][_0x40b1de(0x227)](()=>this[_0x40b1de(0x2da)]({'hovered':!0x0})),this[_0x40b1de(0x1bc)]['subscribeEvent'](()=>this[_0x40b1de(0x2da)]({'hovered':!0x1})));}[_0x338f9d(0x2da)](_0x48040e){const _0x30b7f1=_0x338f9d;var _0x571116,_0x2feacc,_0x318f4a,_0x2a1491,_0xae6f2d,_0x278201;this[_0x30b7f1(0x267)]=(_0x571116=_0x48040e[_0x30b7f1(0x325)])!=null?_0x571116:this['_color'],this[_0x30b7f1(0x200)]=(_0x2feacc=_0x48040e[_0x30b7f1(0x429)])!=null?_0x2feacc:this['_hovered'],this[_0x30b7f1(0x1a4)]=(_0x318f4a=_0x48040e[_0x30b7f1(0x352)])!=null?_0x318f4a:this[_0x30b7f1(0x1a4)],this['_name']=(_0x2a1491=_0x48040e['name'])!=null?_0x2a1491:this[_0x30b7f1(0x432)],this['_labelPosition']=(_0xae6f2d=_0x48040e[_0x30b7f1(0x32c)])!=null?_0xae6f2d:this[_0x30b7f1(0x3dc)],this[_0x30b7f1(0x336)]=(_0x278201=_0x48040e[_0x30b7f1(0x3a7)])!=null?_0x278201:this[_0x30b7f1(0x336)],this[_0x30b7f1(0x27d)]({'width':_0x48040e[_0x30b7f1(0x35b)],'height':_0x48040e[_0x30b7f1(0x26a)]});}[_0x338f9d(0x2f4)](_0x307677){const _0x219eeb=_0x338f9d,{row:_0x4b55cb,column:_0x4419e3}=_0x307677;if(_0x4b55cb>=this[_0x219eeb(0x1a4)][_0x219eeb(0x38e)]&&_0x4b55cb<=this[_0x219eeb(0x1a4)]['endRow']&&_0x4419e3>=this[_0x219eeb(0x1a4)][_0x219eeb(0x3b3)]&&_0x4419e3<=this[_0x219eeb(0x1a4)][_0x219eeb(0x234)]){this[_0x219eeb(0x2da)]({'hovered':!0x0});return;}this[_0x219eeb(0x2da)]({'hovered':!0x1});}[_0x338f9d(0x428)](_0x122b37){return!0x1;}[_0x338f9d(0x1ae)](_0x179d5f){const _0xcae9e0=_0x338f9d;p[_0xcae9e0(0x2d3)]['drawWith'](_0x179d5f,{'width':this[_0xcae9e0(0x35b)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0xcae9e0(0x267)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0xcae9e0(0x200)]&&(_0x179d5f[_0xcae9e0(0x410)](),_0x179d5f[_0xcae9e0(0x1d2)](0x1,0x0,0x0,0x1,this[_0xcae9e0(0x35b)],this['_labelPosition']==='bottom'?0x0:-0x14),ee['drawWith'](_0x179d5f,{'text':this[_0xcae9e0(0x432)],'color':this[_0xcae9e0(0x267)]}),_0x179d5f[_0xcae9e0(0x238)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x5f5c49,_0x27b13c,_0x2c650f,_0x113920)=>{const _0x2a4482=_0x338f9d;for(var _0x5c1f0e=_0x113920>0x1?void 0x0:_0x113920?Ct(_0x27b13c,_0x2c650f):_0x27b13c,_0x4f7938=_0x5f5c49[_0x2a4482(0x29d)]-0x1,_0x2ad159;_0x4f7938>=0x0;_0x4f7938--)(_0x2ad159=_0x5f5c49[_0x4f7938])&&(_0x5c1f0e=_0x2ad159(_0x5c1f0e)||_0x5c1f0e);return _0x5c1f0e;},ae=(_0x17be93,_0x3feb82)=>(_0x585faf,_0x5edf18)=>_0x3feb82(_0x585faf,_0x5edf18,_0x17be93);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x5a7aa4,_0x6e55f7,_0x429f55,_0x114ab0){const _0x2daadc=_0x338f9d;super(),h(this,_0x2daadc(0x226),new Set()),h(this,_0x2daadc(0x409),null),(this[_0x2daadc(0x310)]=_0x5a7aa4,this['_sheetSkeletonManagerService']=_0x6e55f7,this['_collabCursorController']=_0x429f55,this[_0x2daadc(0x1b5)]=_0x114ab0,this['_init']());}['_init'](){const _0x31a44e=_0x338f9d;this['_sheetSkeletonManagerService'][_0x31a44e(0x3e6)][_0x31a44e(0x349)]($[_0x31a44e(0x36f)](this[_0x31a44e(0x42b)]),$['switchMap'](_0x1f53b3=>{const _0x4098f1=_0x31a44e;if(_0x1f53b3){const _0x5cb279=_0x1f53b3[_0x4098f1(0x41b)];return d[_0x4098f1(0x363)](this[_0x4098f1(0x321)][_0x4098f1(0x2e9)](this[_0x4098f1(0x310)][_0x4098f1(0x20d)]),this['_themeService'][_0x4098f1(0x3be)])[_0x4098f1(0x349)]($[_0x4098f1(0x1f7)](([_0xba11f6,_0x3c00ec])=>{const _0x2cf9cf=new Map();return _0xba11f6['forEach']((_0x36ac73,_0x314c72)=>{const _0x4ae7a9=_0xe86e;if(_0x36ac73[_0x4ae7a9(0x3bc)]===_0x5cb279){const _0x15d081={..._0x36ac73};_0x15d081[_0x4ae7a9(0x325)]=this[_0x4ae7a9(0x1b5)][_0x4ae7a9(0x2cd)](_0x36ac73[_0x4ae7a9(0x325)]),_0x2cf9cf[_0x4ae7a9(0x208)](_0x314c72,_0x15d081);}}),{'skeleton':_0x1f53b3,'cursors':_0x2cf9cf};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x31a44e(0x239)](({skeleton:_0x15c487,cursors:_0x5ce824})=>{const _0x29f34e=_0x31a44e;this[_0x29f34e(0x423)](),_0x15c487&&this[_0x29f34e(0x329)](_0x15c487,_0x5ce824);}),this['_sheetSkeletonManagerService'][_0x31a44e(0x3e6)]['subscribe'](_0x57bdad=>{const _0x2cf40f=_0x31a44e;if(_0x57bdad==null)return;const {skeleton:_0x50037c}=_0x57bdad,{scene:_0x1e9b95}=this[_0x2cf40f(0x310)];_0x1e9b95['onPointerMove$']['subscribeEvent'](a[_0x2cf40f(0x42c)](_0x4ed465=>{const _0x4ec328=_0x2cf40f;var _0x54b60f,_0x279597;const {offsetX:_0x37d725,offsetY:_0x3932c5}=_0x4ed465,{x:_0x193bf4,y:_0x49b548}=_0x1e9b95[_0x4ec328(0x224)](p[_0x4ec328(0x2b2)][_0x4ec328(0x3d9)]([_0x37d725,_0x3932c5])),{scaleX:_0x3e06bf,scaleY:_0x19795f}=_0x1e9b95['getAncestorScale'](),_0x4b253b=_0x1e9b95['getViewport'](p[_0x4ec328(0x2e7)][_0x4ec328(0x39b)]),_0x58c27c=_0x1e9b95[_0x4ec328(0x269)](p[_0x4ec328(0x2b2)][_0x4ec328(0x3d9)]([_0x193bf4,_0x49b548]),_0x4b253b),_0x280528=_0x50037c['getCellPositionByOffset'](_0x37d725,_0x3932c5,_0x3e06bf,_0x19795f,_0x58c27c);((_0x54b60f=this[_0x4ec328(0x409)])==null?void 0x0:_0x54b60f[_0x4ec328(0x2ef)])===_0x280528[_0x4ec328(0x2ef)]&&((_0x279597=this[_0x4ec328(0x409)])==null?void 0x0:_0x279597[_0x4ec328(0x215)])===_0x280528[_0x4ec328(0x215)]||this['_cursors'][_0x4ec328(0x2d6)](_0xe38d4d=>{const _0x33e0cf=_0x4ec328;_0xe38d4d[_0x33e0cf(0x2f4)](_0x280528);});},0x64));});}[_0x338f9d(0x329)](_0x5533f4,_0x2d20aa){const _0x3b0b13=_0x338f9d;var _0x12bb50;const _0x2ed09b=(_0x12bb50=this[_0x3b0b13(0x1aa)][_0x3b0b13(0x35a)]())==null?void 0x0:_0x12bb50['skeleton'];if(!_0x2ed09b)return;const _0xc5196d=this['_getSheetObject']();if(!_0xc5196d)return;this['_cursors'][_0x3b0b13(0x2d6)](_0x2c5392=>{const _0xf2578a=_0x3b0b13;_0x2c5392[_0xf2578a(0x397)]();});const {scene:_0x5140d}=_0xc5196d,_0x47431d=Et(Array['from'](_0x2d20aa[_0x3b0b13(0x30a)]()))['map'](_0x286f02=>{const _0x33640e=_0x3b0b13,{color:_0x1763b9,range:_0x4a21dc,name:_0x44aa63,selection:_0x741a61,sheetID:_0x5c9d1d}=_0x286f02,{startColumn:_0x348c9e,startRow:_0x5a573c,endColumn:_0x38aad8,endRow:_0x43cf79}=_0x4a21dc,_0x2e9932=X[_0x33640e(0x293)](_0x5a573c,_0x348c9e,_0x5140d,_0x2ed09b),_0x30a934=X[_0x33640e(0x293)](_0x43cf79,_0x38aad8,_0x5140d,_0x2ed09b),{columnHeaderHeightAndMarginTop:_0x5a18c2}=_0x2ed09b,{startX:_0xc0f54a,startY:_0x488b36}=_0x2e9932,{endX:_0x3b39ca,endY:_0x283547}=_0x30a934,_0xb4ba83=_0x3b39ca-_0xc0f54a,_0x22a78c=_0x283547-_0x488b36,_0x5b938a={'labelPosition':_0x488b36-_0x5a18c2>=K?_0x33640e(0x3a1):_0x33640e(0x2db),'sheetID':_0x5c9d1d,'range':_0x4a21dc,'color':_0x1763b9,'name':_0x44aa63,'selection':_0x741a61,'left':_0xc0f54a,'top':_0x488b36,'width':_0xb4ba83,'height':_0x22a78c,'evented':!0x1,'zIndex':bt};return new Pe(_0x44aa63,_0x5b938a);});_0x5140d[_0x3b0b13(0x1ef)](_0x47431d,gt),this[_0x3b0b13(0x226)]=new Set(_0x47431d);}['_removeCollabCursors'](){const _0x18a2ec=_0x338f9d;var _0x1b3c87;(_0x1b3c87=this[_0x18a2ec(0x226)])==null||_0x1b3c87[_0x18a2ec(0x2d6)](_0x4f521e=>_0x4f521e[_0x18a2ec(0x361)]());}[_0x338f9d(0x20c)](){const _0xa96b63=_0x338f9d;return X[_0xa96b63(0x372)](this[_0xa96b63(0x310)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x338f9d(0x388)](X[_0x338f9d(0x229)])),ae(0x2,a[_0x338f9d(0x388)](x)),ae(0x3,a['Inject'](a['ThemeService']))],ve);function Et(_0x3b21e8){const _0x449b0d=new Map();return _0x3b21e8['forEach'](_0x2973d3=>{const _0x375a12=_0xe86e;if(_0x449b0d[_0x375a12(0x3ed)](_0x2973d3['selection'])){const _0x58f48d=_0x449b0d['get'](_0x2973d3[_0x375a12(0x23a)]);_0x58f48d['name']+=',\x20'+_0x2973d3[_0x375a12(0x31b)];}else _0x449b0d[_0x375a12(0x208)](_0x2973d3[_0x375a12(0x23a)],_0x2973d3);}),Array['from'](_0x449b0d['values']());}var E=function(){const _0x29f83e=_0x338f9d;return E=Object[_0x29f83e(0x236)]||function(_0x33a5ae){const _0x228f99=_0x29f83e;for(var _0x32e3ba,_0x5bbfe3=0x1,_0x28949f=arguments[_0x228f99(0x29d)];_0x5bbfe3<_0x28949f;_0x5bbfe3++){_0x32e3ba=arguments[_0x5bbfe3];for(var _0x3530d6 in _0x32e3ba)Object['prototype'][_0x228f99(0x1eb)][_0x228f99(0x39d)](_0x32e3ba,_0x3530d6)&&(_0x33a5ae[_0x3530d6]=_0x32e3ba[_0x3530d6]);}return _0x33a5ae;},E[_0x29f83e(0x1a1)](this,arguments);},Tt=function(_0x26d7c4,_0x5efe51){const _0x96dcb8=_0x338f9d;var _0x5525a8={};for(var _0x10567e in _0x26d7c4)Object[_0x96dcb8(0x309)][_0x96dcb8(0x1eb)][_0x96dcb8(0x39d)](_0x26d7c4,_0x10567e)&&_0x5efe51[_0x96dcb8(0x1e9)](_0x10567e)<0x0&&(_0x5525a8[_0x10567e]=_0x26d7c4[_0x10567e]);if(_0x26d7c4!=null&&typeof Object[_0x96dcb8(0x1be)]==_0x96dcb8(0x2c0)){for(var _0x1987b0=0x0,_0x10567e=Object[_0x96dcb8(0x1be)](_0x26d7c4);_0x1987b0<_0x10567e['length'];_0x1987b0++)_0x5efe51['indexOf'](_0x10567e[_0x1987b0])<0x0&&Object['prototype'][_0x96dcb8(0x3e5)][_0x96dcb8(0x39d)](_0x26d7c4,_0x10567e[_0x1987b0])&&(_0x5525a8[_0x10567e[_0x1987b0]]=_0x26d7c4[_0x10567e[_0x1987b0]]);}return _0x5525a8;},pe=M['forwardRef'](function(_0xe03370,_0x43e53c){const _0x697e2b=_0x338f9d;var _0x9c68bf=_0xe03370[_0x697e2b(0x2fc)],_0x486f81=_0xe03370['id'],_0x33bc87=_0xe03370['className'],_0x2ab4cf=_0xe03370[_0x697e2b(0x1dc)],_0x2ae037=Tt(_0xe03370,['icon','id','className','extend']),_0x5b0886=_0x697e2b(0x2e2)[_0x697e2b(0x2dc)](_0x486f81,'\x20')[_0x697e2b(0x2dc)](_0x33bc87||'')[_0x697e2b(0x311)](),_0x5945d1=M[_0x697e2b(0x358)]('_'['concat'](Dt()));return Ae(_0x9c68bf,''['concat'](_0x486f81),{'defIds':_0x9c68bf[_0x697e2b(0x2a9)],'idSuffix':_0x5945d1[_0x697e2b(0x389)]},E({'ref':_0x43e53c,'className':_0x5b0886},_0x2ae037),_0x2ab4cf);});function Ae(_0x335cdf,_0x1e6a9f,_0x136178,_0x1db9da,_0x3e2685){const _0x85fe37=_0x338f9d;return M[_0x85fe37(0x35c)](_0x335cdf['tag'],E(E({'key':_0x1e6a9f},Ot(_0x335cdf,_0x136178,_0x3e2685)),_0x1db9da),(Rt(_0x335cdf,_0x136178)['children']||[])[_0x85fe37(0x1f7)](function(_0x58183a,_0x2c8568){const _0x483ec1=_0x85fe37;return Ae(_0x58183a,''[_0x483ec1(0x2dc)](_0x1e6a9f,'-')[_0x483ec1(0x2dc)](_0x335cdf[_0x483ec1(0x371)],'-')[_0x483ec1(0x2dc)](_0x2c8568),_0x136178,void 0x0,_0x3e2685);}));}function Ot(_0x540213,_0x3861fe,_0x2ccef6){const _0x41d08d=_0x338f9d;var _0xf7d066=E({},_0x540213[_0x41d08d(0x2c9)]);_0x2ccef6!=null&&_0x2ccef6[_0x41d08d(0x351)]&&_0xf7d066[_0x41d08d(0x280)]==='colorChannel1'&&(_0xf7d066['fill']=_0x2ccef6[_0x41d08d(0x351)]),_0x540213[_0x41d08d(0x371)]===_0x41d08d(0x32a)&&_0xf7d066['id']&&(_0xf7d066['id']=_0xf7d066['id']+_0x3861fe[_0x41d08d(0x34a)]),Object['entries'](_0xf7d066)[_0x41d08d(0x2d6)](function(_0x4c5446){const _0x3ed844=_0x41d08d;var _0x45ad61=_0x4c5446[0x0],_0x23e5c5=_0x4c5446[0x1];_0x45ad61===_0x3ed844(0x32a)&&typeof _0x23e5c5==_0x3ed844(0x319)&&(_0xf7d066[_0x45ad61]=_0x23e5c5[_0x3ed844(0x434)](/url\(#(.*)\)/,_0x3ed844(0x2f2)[_0x3ed844(0x2dc)](_0x3861fe['idSuffix'],')')));});var _0x41b83e=_0x3861fe['defIds'];return!_0x41b83e||_0x41b83e[_0x41d08d(0x29d)]===0x0||(_0x540213['tag']==='use'&&_0xf7d066[_0x41d08d(0x1c0)]&&(_0xf7d066['xlink:href']=_0xf7d066[_0x41d08d(0x1c0)]+_0x3861fe[_0x41d08d(0x34a)]),Object['entries'](_0xf7d066)[_0x41d08d(0x2d6)](function(_0x2dbdec){const _0x142d88=_0x41d08d;var _0x1d6a8c=_0x2dbdec[0x0],_0xe5c4e9=_0x2dbdec[0x1];typeof _0xe5c4e9==_0x142d88(0x319)&&(_0xf7d066[_0x1d6a8c]=_0xe5c4e9[_0x142d88(0x434)](/url\(#(.*)\)/,_0x142d88(0x2f2)[_0x142d88(0x2dc)](_0x3861fe['idSuffix'],')')));})),_0xf7d066;}function Rt(_0x3dbd1b,_0x354b4e){const _0x38b080=_0x338f9d;var _0x1b83b5,_0x69bc75=_0x354b4e[_0x38b080(0x2a9)];return!_0x69bc75||_0x69bc75['length']===0x0?_0x3dbd1b:_0x3dbd1b['tag']===_0x38b080(0x22d)&&(!((_0x1b83b5=_0x3dbd1b[_0x38b080(0x303)])===null||_0x1b83b5===void 0x0)&&_0x1b83b5[_0x38b080(0x29d)])?E(E({},_0x3dbd1b),{'children':_0x3dbd1b[_0x38b080(0x303)][_0x38b080(0x1f7)](function(_0x42f364){const _0x29b50f=_0x38b080;return typeof _0x42f364[_0x29b50f(0x2c9)]['id']=='string'&&_0x69bc75&&_0x69bc75[_0x29b50f(0x350)](_0x42f364[_0x29b50f(0x2c9)]['id'])?E(E({},_0x42f364),{'attrs':E(E({},_0x42f364[_0x29b50f(0x2c9)]),{'id':_0x42f364['attrs']['id']+_0x354b4e[_0x29b50f(0x34a)]})}):_0x42f364;})}):_0x3dbd1b;}function Dt(){const _0x3f4daa=_0x338f9d;return Math[_0x3f4daa(0x1e1)]()[_0x3f4daa(0x40b)](0x24)[_0x3f4daa(0x2cc)](0x2,0x8);}pe[_0x338f9d(0x199)]=_0x338f9d(0x1cf);var Ut={'tag':'svg','attrs':{'xmlns':_0x338f9d(0x243),'fill':'none','viewBox':_0x338f9d(0x26d),'width':_0x338f9d(0x2c7),'height':_0x338f9d(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x338f9d(0x3d6)},'children':[{'tag':'path','attrs':{'stroke':_0x338f9d(0x25c),'d':_0x338f9d(0x1d0),'strokeLinecap':_0x338f9d(0x2ee),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x338f9d(0x22d),'attrs':{},'children':[{'tag':_0x338f9d(0x21f),'attrs':{'id':_0x338f9d(0x368)},'children':[{'tag':_0x338f9d(0x3c3),'attrs':{'fill':_0x338f9d(0x221),'d':_0x338f9d(0x317)}}]}]}],'defIds':[_0x338f9d(0x368)]},ye=M[_0x338f9d(0x399)](function(_0x5d6143,_0x5d74fd){const _0x5efe5b=_0x338f9d;return M[_0x5efe5b(0x35c)](pe,Object[_0x5efe5b(0x236)]({},_0x5d6143,{'id':'off-line-icon','ref':_0x5d74fd,'icon':Ut}));});ye[_0x338f9d(0x199)]=_0x338f9d(0x1d3);var Nt={'tag':'svg','attrs':{'xmlns':_0x338f9d(0x243),'fill':'none','viewBox':_0x338f9d(0x373),'width':'1em','height':_0x338f9d(0x2c7)},'children':[{'tag':'g','attrs':{'clipPath':_0x338f9d(0x356)},'children':[{'tag':'path','attrs':{'stroke':_0x338f9d(0x25c),'d':_0x338f9d(0x37e),'strokeLinecap':_0x338f9d(0x2ee),'strokeLinejoin':_0x338f9d(0x2ee),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x338f9d(0x375)},'children':[{'tag':_0x338f9d(0x3c3),'attrs':{'fill':_0x338f9d(0x221),'d':_0x338f9d(0x317),'transform':_0x338f9d(0x3e4)}}]}]}],'defIds':[_0x338f9d(0x375)]},$e=M['forwardRef'](function(_0x1b0518,_0x19a928){const _0x1b6a80=_0x338f9d;return M[_0x1b6a80(0x35c)](pe,Object['assign']({},_0x1b0518,{'id':_0x1b6a80(0x1d4),'ref':_0x19a928,'icon':Nt}));});$e[_0x338f9d(0x199)]=_0x338f9d(0x435);function Mt(_0x489c2a){const _0x62677d=_0x338f9d;switch(_0x489c2a){case u[_0x62677d(0x31d)][_0x62677d(0x212)]:return _0x62677d(0x28c);case u[_0x62677d(0x31d)][_0x62677d(0x40a)]:return'collabStatus.conflict';case u[_0x62677d(0x31d)][_0x62677d(0x32e)]:return _0x62677d(0x376);case u[_0x62677d(0x31d)]['NOT_COLLAB']:return _0x62677d(0x2e5);case u['CollaborationStatus'][_0x62677d(0x25b)]:case u[_0x62677d(0x31d)]['AWAITING_WITH_PENDING']:return _0x62677d(0x398);case u[_0x62677d(0x31d)]['SYNCED']:case u[_0x62677d(0x31d)][_0x62677d(0x344)]:return'collabStatus.synced';}}function xe(_0x5dbc44){const _0x3afe09=_0x338f9d,{status$:_0x53f6ab}=_0x5dbc44,_0x4f58fa=T[_0x3afe09(0x314)](_0x53f6ab,u[_0x3afe09(0x31d)]['NOT_COLLAB']),_0x45aae3=T[_0x3afe09(0x27f)](a[_0x3afe09(0x249)]),_0xa22443=T[_0x3afe09(0x27f)](u[_0x3afe09(0x262)]),_0x1d2fcb=_0x4f58fa!==u[_0x3afe09(0x31d)][_0x3afe09(0x212)],_0x292ed9=_0x45aae3['t'](Mt(_0x4f58fa)),_0x2932cc=_0x1d2fcb?w[_0x3afe09(0x23f)]($e,{}):w[_0x3afe09(0x23f)](ye,{}),_0x3154f5=M['useCallback'](()=>{const _0x36d1b2=_0x3afe09;_0x1d2fcb||_0xa22443[_0x36d1b2(0x3f2)]();},[_0x1d2fcb,_0xa22443]);function _0x45917c(){const _0x241d8a=_0x3afe09;return w[_0x241d8a(0x2a6)]('div',{'className':_0x241d8a(0x3a6),'onClick':_0x3154f5,'children':[w[_0x241d8a(0x23f)](_0x241d8a(0x2a2),{'className':D['clsx'](_0x241d8a(0x1df),{'univer-text-green-500':_0x1d2fcb,'univer-text-red-500':!_0x1d2fcb}),'children':_0x2932cc}),w[_0x241d8a(0x23f)]('div',{'className':_0x241d8a(0x216),'children':_0x292ed9})]});}return _0x1d2fcb?_0x45917c():w[_0x3afe09(0x23f)](D[_0x3afe09(0x42e)],{'title':_0x45aae3['t'](_0x3afe09(0x20b)),'children':_0x45917c()});}var Lt=Object[_0x338f9d(0x20f)],wt=(_0x201e53,_0x2e892e,_0x2f6df0,_0x2bfdaa)=>{const _0x4d1f3a=_0x338f9d;for(var _0x1315f9=_0x2bfdaa>0x1?void 0x0:_0x2bfdaa?Lt(_0x2e892e,_0x2f6df0):_0x2e892e,_0x48b3d9=_0x201e53[_0x4d1f3a(0x29d)]-0x1,_0x510992;_0x48b3d9>=0x0;_0x48b3d9--)(_0x510992=_0x201e53[_0x48b3d9])&&(_0x1315f9=_0x510992(_0x1315f9)||_0x1315f9);return _0x1315f9;},V=(_0x25df8b,_0x39ea20)=>(_0x3e438d,_0x16c912)=>_0x39ea20(_0x3e438d,_0x16c912,_0x25df8b);exports[_0x338f9d(0x332)]=class extends a[_0x338f9d(0x40d)]{constructor(_0x2cd25d,_0xa77bf2,_0x1bf8d3,_0x5ceb5b){const _0x21bf90=_0x338f9d;super(),h(this,'_status$',new d[(_0x21bf90(0x3ac))](u[_0x21bf90(0x31d)][_0x21bf90(0x230)])),(this['_univerInstanceService']=_0x2cd25d,this[_0x21bf90(0x278)]=_0xa77bf2,this[_0x21bf90(0x1e6)]=_0x1bf8d3,this[_0x21bf90(0x27a)]=_0x5ceb5b,this[_0x21bf90(0x252)](),this[_0x21bf90(0x306)]());}[_0x338f9d(0x306)](){const _0x4abed4=_0x338f9d;this[_0x4abed4(0x3df)](this[_0x4abed4(0x24c)][_0x4abed4(0x1ab)][_0x4abed4(0x349)](d[_0x4abed4(0x2ce)](()=>{const _0x3eb051=_0x4abed4,_0x4514fe=this[_0x3eb051(0x24c)][_0x3eb051(0x20a)]();return _0x4514fe?this[_0x3eb051(0x1e6)][_0x3eb051(0x3a0)](_0x4514fe['getUnitId']()):d['of'](null);}),d['switchMap'](_0xad0ec9=>_0xad0ec9?_0xad0ec9[_0x4abed4(0x1d7)]:d['of'](u[_0x4abed4(0x31d)][_0x4abed4(0x230)])))[_0x4abed4(0x239)](_0x241a0c=>{const _0x4ae153=_0x4abed4;this[_0x4ae153(0x2a7)][_0x4ae153(0x346)](_0x241a0c);}));}[_0x338f9d(0x252)](){const _0x1e4876=_0x338f9d;this[_0x1e4876(0x3df)](this[_0x1e4876(0x27a)][_0x1e4876(0x1a0)](T[_0x1e4876(0x2ea)]['HEADER_MENU'],()=>T[_0x1e4876(0x2ac)](Pt({'status$':this['_status$'][_0x1e4876(0x3fe)]()}),this[_0x1e4876(0x278)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a['IUniverInstanceService']),V(0x1,a[_0x338f9d(0x388)](a['Injector'])),V(0x2,a['Inject'](u[_0x338f9d(0x3ec)])),V(0x3,T[_0x338f9d(0x19d)])],exports['DesktopCollaborationStatusDisplayController']);function Pt(_0x17fac8){const {status$:_0x20cba5}=_0x17fac8;return function(){const _0xb2a28c=_0xe86e;return w[_0xb2a28c(0x23f)](xe,{'status$':_0x20cba5});};}var At=Object['getOwnPropertyDescriptor'],yt=(_0x30ac1e,_0x231e6f,_0x4c202e,_0x3d8adc)=>{const _0x3c71cc=_0x338f9d;for(var _0x483293=_0x3d8adc>0x1?void 0x0:_0x3d8adc?At(_0x231e6f,_0x4c202e):_0x231e6f,_0x52d497=_0x30ac1e[_0x3c71cc(0x29d)]-0x1,_0x400c36;_0x52d497>=0x0;_0x52d497--)(_0x400c36=_0x30ac1e[_0x52d497])&&(_0x483293=_0x400c36(_0x483293)||_0x483293);return _0x483293;},y=(_0xe3b4e5,_0x393be9)=>(_0x322402,_0x5e5ed0)=>_0x393be9(_0x322402,_0x5e5ed0,_0xe3b4e5);let q=class extends a[_0x338f9d(0x40d)]{constructor(_0x2c0c49,_0x1e3783,_0x48fad6,_0x546979,_0x393761,_0x1f804f){const _0x3ab8bc=_0x338f9d;super(),this[_0x3ab8bc(0x365)]=_0x2c0c49,this[_0x3ab8bc(0x2bf)]=_0x1e3783,this[_0x3ab8bc(0x1ee)]=_0x48fad6,this[_0x3ab8bc(0x3bd)]=_0x546979,this[_0x3ab8bc(0x33e)]=_0x393761,this[_0x3ab8bc(0x333)]=_0x1f804f,this[_0x3ab8bc(0x367)](),this[_0x3ab8bc(0x379)]();}[_0x338f9d(0x367)](){const _0x4efed2=_0x338f9d;this[_0x4efed2(0x3df)](this[_0x4efed2(0x365)][_0x4efed2(0x3c2)](()=>{const _0x5aa1ec=_0x4efed2;if(this[_0x5aa1ec(0x2bf)][_0x5aa1ec(0x3ca)][_0x5aa1ec(0x1f2)])return this[_0x5aa1ec(0x333)]['t'](_0x5aa1ec(0x42f));}));}[_0x338f9d(0x379)](){const _0xceec5a=_0x338f9d;this[_0xceec5a(0x3df)](this['_collaborationUIEventService'][_0xceec5a(0x33f)][_0xceec5a(0x239)](_0x285f74=>{const _0x30c003=_0xceec5a;_0x285f74['id']===u[_0x30c003(0x1f1)]['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':D[_0x30c003(0x1c4)][_0x30c003(0x3f5)],'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x403))}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x1ce)]&&this[_0x30c003(0x3bd)][_0x30c003(0x1e4)]({'type':D['MessageType'][_0x30c003(0x3f5)],'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x3de))}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x312)]&&this[_0x30c003(0x33e)]['show']({'title':this['_localeService']['t'](_0x30c003(0x3e9)),'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x2c8)),'type':_0x30c003(0x1d9),'duration':0x0}),_0x285f74['id']===u[_0x30c003(0x1f1)]['CONFLICT']&&this['_messageService']['show']({'type':D[_0x30c003(0x1c4)][_0x30c003(0x307)],'content':this['_localeService']['t'](_0x30c003(0x3de))+'('+_0x285f74[_0x30c003(0x3c1)]+')'}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x2fd)]&&this[_0x30c003(0x3bd)][_0x30c003(0x1e4)]({'type':D[_0x30c003(0x1c4)][_0x30c003(0x3f5)],'content':this[_0x30c003(0x333)]['t'](_0x285f74[_0x30c003(0x3c1)]||'')}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x318)]&&this[_0x30c003(0x3bd)][_0x30c003(0x1e4)]({'type':D[_0x30c003(0x1c4)]['Warning'],'content':this[_0x30c003(0x333)]['t']('session.will-retry')}),_0x285f74['id']===u[_0x30c003(0x1f1)][_0x30c003(0x418)]&&this[_0x30c003(0x3bd)][_0x30c003(0x1e4)]({'type':D[_0x30c003(0x1c4)]['Error'],'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x257))}),_0x285f74['id']===u[_0x30c003(0x1f1)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x30c003(0x3bd)]['show']({'type':D[_0x30c003(0x1c4)][_0x30c003(0x307)],'content':this[_0x30c003(0x333)]['t'](_0x30c003(0x414))});}));}};q=yt([y(0x0,T[_0x338f9d(0x3aa)]),y(0x1,u[_0x338f9d(0x2a3)]),y(0x2,a[_0x338f9d(0x388)](u[_0x338f9d(0x3fb)])),y(0x3,T[_0x338f9d(0x290)]),y(0x4,T['INotificationService']),y(0x5,a['Inject'](a[_0x338f9d(0x249)]))],q);const $t='collaboration-client-ui.config',Ue={},be=a['createIdentifier']('uni.network.url-service');var xt=Object['getOwnPropertyDescriptor'],jt=(_0x1af8c0,_0x1fff99,_0x510d0a,_0x546954)=>{const _0x4bb4cb=_0x338f9d;for(var _0x204ef1=_0x546954>0x1?void 0x0:_0x546954?xt(_0x1fff99,_0x510d0a):_0x1fff99,_0x10fb58=_0x1af8c0[_0x4bb4cb(0x29d)]-0x1,_0x763ba9;_0x10fb58>=0x0;_0x10fb58--)(_0x763ba9=_0x1af8c0[_0x10fb58])&&(_0x204ef1=_0x763ba9(_0x204ef1)||_0x204ef1);return _0x204ef1;},H=(_0x5a26af,_0x1dcc89)=>(_0x92ff0c,_0x3c5a2d)=>_0x1dcc89(_0x92ff0c,_0x3c5a2d,_0x5a26af);exports[_0x338f9d(0x1ec)]=class extends a[_0x338f9d(0x1c2)]{constructor(_0x8b5f63,_0x2156ec,_0x3f0603,_0x19c9e1,_0x486847){const _0x54e1a3=_0x338f9d;super(),this['_urlService']=_0x8b5f63,this['_logService']=_0x2156ec,this[_0x54e1a3(0x3e0)]=_0x3f0603,this[_0x54e1a3(0x1a7)]=_0x19c9e1,_0x486847?_0x486847==null||_0x486847['whenReady']()[_0x54e1a3(0x1f5)](()=>this[_0x54e1a3(0x219)]()):(this[_0x54e1a3(0x281)][_0x54e1a3(0x436)](_0x54e1a3(0x2ca),_0x54e1a3(0x3ea)),this[_0x54e1a3(0x219)]());}async['_init'](){const _0x2ee1c2=_0x338f9d,_0x44a314=this['_urlService'][_0x2ee1c2(0x348)](_0x2ee1c2(0x2e8)),_0x14e03b=this[_0x2ee1c2(0x36c)]['getParam'](_0x2ee1c2(0x425)),_0x3612a8=this[_0x2ee1c2(0x36c)][_0x2ee1c2(0x348)]('subunit');if(!_0x44a314||!_0x14e03b){this['_logService'][_0x2ee1c2(0x436)](_0x2ee1c2(0x2ca),_0x2ee1c2(0x3e3));return;}const _0xbff8f9=await this[_0x2ee1c2(0x1a7)][_0x2ee1c2(0x402)](_0x44a314,Number(_0x14e03b),_0x3612a8);_0xbff8f9&&_0xbff8f9 instanceof a[_0x2ee1c2(0x26c)]&&this['_setupSubUnitSync'](_0xbff8f9);}async[_0x338f9d(0x40e)](_0x3d2c87){const _0x3712ef=_0x338f9d;await this[_0x3712ef(0x1c9)](_0x3d2c87),_0x3d2c87['activeSheet$'][_0x3712ef(0x349)](d[_0x3712ef(0x36f)](this['dispose$']))[_0x3712ef(0x239)](_0xa46165=>{const _0x3973e1=_0x3712ef;_0xa46165&&this[_0x3973e1(0x2ed)](_0xa46165);}),this[_0x3712ef(0x36c)][_0x3712ef(0x1fb)][_0x3712ef(0x349)](d[_0x3712ef(0x36f)](this[_0x3712ef(0x42b)]))[_0x3712ef(0x239)](()=>this[_0x3712ef(0x1c9)](_0x3d2c87));}[_0x338f9d(0x2ed)](_0x12ffd7,_0x27c630=!0x1){const _0xb1b1fb=_0x338f9d,_0x171da7=this[_0xb1b1fb(0x36c)][_0xb1b1fb(0x348)](_0xb1b1fb(0x3ad));_0x12ffd7[_0xb1b1fb(0x202)]()!==_0x171da7&&this[_0xb1b1fb(0x36c)][_0xb1b1fb(0x2d8)](_0xb1b1fb(0x3ad),_0x12ffd7[_0xb1b1fb(0x202)](),_0x27c630);}async[_0x338f9d(0x1c9)](_0x9eafc2){const _0x43f915=_0x338f9d;var _0x1d208e;const _0x321ed3=this[_0x43f915(0x36c)][_0x43f915(0x348)](_0x43f915(0x3ad));if(!_0x321ed3||!_0x9eafc2[_0x43f915(0x270)](_0x321ed3)){const _0x1ffc15=_0x9eafc2[_0x43f915(0x3cc)]()[0x0],_0x1419e8=_0x9eafc2[_0x43f915(0x270)](_0x1ffc15);if(!_0x1419e8)return;this[_0x43f915(0x2ed)](_0x1419e8,!0x0),await this[_0x43f915(0x3e0)][_0x43f915(0x30d)](g[_0x43f915(0x2b5)]['id'],{'unitId':_0x9eafc2[_0x43f915(0x2cb)](),'subUnitId':_0x1ffc15});return;}((_0x1d208e=_0x9eafc2['getActiveSheet']())==null?void 0x0:_0x1d208e[_0x43f915(0x202)]())!==_0x321ed3&&await this[_0x43f915(0x3e0)][_0x43f915(0x30d)](g[_0x43f915(0x2b5)]['id'],{'unitId':_0x9eafc2[_0x43f915(0x2cb)](),'subUnitId':_0x321ed3});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x338f9d(0x3d0)]),H(0x2,a[_0x338f9d(0x1d1)]),H(0x3,a['Inject'](u[_0x338f9d(0x206)])),H(0x4,a[_0x338f9d(0x426)](Ke[_0x338f9d(0x3a8)]))],exports['CollaborationDataLoaderController']);function _0x2859(){const _0x4099eb=['_startDocCollabCursor','handleInsertRangeMoveDown','_getSessionTicket','addObject','textRanges','_memberService','_docSkeletonManagerService','DocStateChangeManagerService','collabStatus.offline','Unknown\x20user','jiqing.500','getUniverSheetInstance','IMessageService','EMAIL_HAS_BEEN_BOUND','SheetsSelectionsService','getCoordByCell','MOBILE_HAS_BEEN_BOUND','254gpGrak','SNAPSHOT_HAS_BEEN_REMOVED','_toggleOnline','beginPath','PY_RUNTIME_SCRIPT_ERROR','unitID','searchParams','runOnServer','length','NO_OTHER_CLIENTS_EDITING','YUUMI_SUBSCRIPTION_NOT_FOUND','getRangePointData','UniverCollaborationClientUIPlugin','div','ILocalCacheService','ITransformService','LICENSE_MAX_UNITS_EXCEEDED','jsxs','_status$','TEXT_RANGE_LAYER_INDEX','defIds','fillStyle','hide','connectInjector','_httpService','stringify','_initResize','RemoteUniscriptService','LOGIN_FAILED','Vector2','COLORS','Rectangle','SetWorksheetActivateCommand','registerDependencies','handleInsertCol','_registerDependencies','_saveCache','2633972WMMhoj','setTimeout','_document','setConfig','fillText','_localCacheService','function','_entities','@univerjs/docs-ui','48MAZDpa','saveOfflineData','EffectRefRangId','complete','1em','permission.content','attrs','[CollaborationDataLoaderController]','getUnitId','substring','getColorFromTheme','switchMap','_disabled','RegularPolygon','IUniverInstanceService','INVALID_ARGUMENT','Rect','BrowserCollaborationSocketService','_scheduleClearOtherTimer','forEach','getUnitStatus$','setParam','UniverInstanceType','setShapeProps','bottom','concat','4724262prabdU','ThemeService','text','lineTo','_scheduleHeartbeat','univerjs-icon\x20univerjs-icon-','UNIVER_DOC','_revisionService','collabStatus.notCollab','Plugin','SHEET_VIEWPORT_KEY','unit','getCollabCursors$','BuiltInUIPart','replaceState','/run/','_updateURLWithCurrentState','round','column','IConfigService','fromEventSubject','url(#$1','shareReplay','onMouseMove','evenodd','DocSelectionManagerService','handleIRemoveRow','429592wuGxBk','_anchorDot','replaceDocRanges','MemberService','icon','JOIN_ROOM_FAILED','_handleHeartbeatEvent','_initCommandExecutedListener','7HubUmN','_unitOnClients','Injector','children','_imageIoService','_getMergeRange','_initStatusListener','Error','delete','prototype','values','@univerjs/engine-render','_render','executeCommand','addEventListener','registerRefRange','_context','trim','PERMISSION_DENIED','RefRangeService','useObservable','MUTATION','_ensureSubject','M0\x200H16V16H0z','SOCKET_FAILED_RETRY','string','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','name','eventID','CollaborationStatus','rxjs/operators','touchDependencies','split','_collabCursorController','DependentOn','4022070uYmXcs','USER_NOT_INVITED_CODE','color','_handleHover','getValue','newValue','_updateCollabCursors','mask','memberID','labelPosition','373143ESPxIo','FETCH_MISS','_saveTaskMap','IRenderManagerService','LICENSE_IMPORT_SIZE_EXCEEDED','DesktopCollaborationStatusDisplayController','_localeService','InsertRangeMoveDownCommandId','m1Prime','_backgroundColor','SheetCollabCursorShape','_scene','yellow.400','purple.300','unload','_docTransformSelectionsService','_registerRenderDependencies','_notificationService','event$','resize','onRendered','RECT','_initDependencies','PENDING','NOT_FOUND','next','getSkeleton','getParam','pipe','idSuffix','_transformHistoryAndStateStack','get','APPLY_PERMISSION_DENIED','m2Prime','_drawRectRange','includes','colorChannel1','range','SetSelectionsOperation','requireSession','code','url(#on-line-icon_clip0_910_349)','fromEvent','useRef','isArray','getCurrent','width','createElement','DOC_RANGE_TYPE','INTERNAL_ERROR','getCurrentUnitForType','getDocRanges','dispose','getItem','combineLatest','SNAPSHOT_INVALID_SNAPSHOT','_beforeCloseService','CONNECTOR_DATA_TOO_LARGE','_setupBeforeClosingHandler','off-line-icon_clip0_910_343','red.300','SetTextSelectionsOperation','selections','_urlService','handleInsertRangeMoveRight','Failed','takeUntil','clearTimeout','tag','getSheetObject','0\x200\x2017\x2016','_onCursorUpdate','on-line-icon_clip0_910_349','collabStatus.fetchMiss','transformMutationsWithChangeset','_anchor','_initEvent','flatMap','APPLY_REVISION_CONFILICT','ISnapshotServerService','history','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','clearInterval','_removeClearOtherTimer','_instanceService','collab-rect-range-','_transformUndoRedoStack','toStringTag','1553101FcUBYl','onCommandExecuted','YUUMI_URL_COL_OUT_OF_RANGE','Inject','current','...','throttleTime','invokeId','_unitStatus','startRow','createSocket','init','onLocalMutation','OTHER_CLIENTS_EDITING','_id','_docTransformIMECacheService','merge','Shape','makeDirty','collabStatus.syncing','forwardRef','handleIRemoveCol','VIEW_MAIN','_send','call','getColor','getCurrentRevOfUnit','getCollabEntity$','top','[RemoteUniscriptService]:\x20no\x20focused\x20unit','body','unsubscribe','_initEntityListener','univer-flex\x20univer-items-center','backgroundColor','IRemoteInstanceService','@univerjs-pro/collaboration-client','IBeforeCloseService','YUUMI_AI_RUN_FAILED','BehaviorSubject','subunit','YUUMI_ASYNCIO_CANCELLED','IDocClipboardService','collab-text-anchor-','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','startColumn','IURLService','setInterval','Subject','roomMembers$','application/json','UnitStatus','setActiveRange','min','sheetID','_messageService','currentTheme$','origin','@univerjs/engine-formula','data','registerBeforeClose','path','mutations','getTypeOfUnitDisposed$','black','location','ticket','setAlpha','saveTaskMap','pluginName','getUnhiddenWorksheets','getMemberID','getStateCache','redoState','ILogService','transformStateCache','onPointerEnter$','getRenderById','_onCursorDelete','_getSaveTimeout','url(#off-line-icon_clip0_910_343)','InsertRowCommandId','_refreshCollabCursors','FromArray','DeleteRangeMoveLeftCommandId','push','_labelPosition','_renderManagerService','collaboration.closeRoom','disposeWithMe','_commandService','_refRangeService','addClipboardHook','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','translate(.97)','propertyIsEnumerable','currentSkeleton$','_assignedColors','doc.mutation.rich-text-editing','permission.title','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','href','CollaborationController','has','_updateLocalCursor','_colorIndex','LICENSE_EXPORT_SIZE_EXCEEDED','_docClipboardService','reconnect','_toggleOffline','runId','Warning','CHANGESET_REVISION_CONFILICT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_roomMembers$','blue.400','_syncEditingCollabCursorService','CollaborationUIEventService','some','_clearOtherTimers','asObservable','_selfUnitIDs','InsertColCommandId','enableLocalCache','loadUnit','collaboration.single-unit.warning','_handleJoinEvent','_createSocketURL','ALREADY_EXISTS','_collabSessionService','mergeOverrideWithDependencies','_lastPointer','CONFLICT','toString','_eventUnsubscribe','Disposable','_setupSubUnitSync','_transformPreviousActiveRange','save','_configService','imageSourceType','YUUMI_RATE_OVER_LIMIT','session.collaboration-timeout','_heartbeatTimer','generateRandomId','10IBoqsH','SOCKET_FAILED','getConfig','CollaborationSocketService','sheetId','MoveRangeCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','entityInit$','@univerjs/rpc','ENSURE_SNAPSHOT_EXECUTION','_shapes','getTypeOfUnitAdded$','_removeCollabCursors','post','type','Optional','from','triggerDblclick','hovered','_drawTextRange','dispose$','debounce','_hover','Tooltip','collaboration-client.offline-data-not-saved','executionId','_localStorageService','_name','_docTransformStateCacheService','replace','OnLineIcon','debug','ranges','displayName','RemoveColCommandId','symbol','HTTPService','IUIPartsService','popstate','WECHAT_HAS_BEEN_BOUND','registerComponent','apply','wsSessionTicketUrl','react/jsx-runtime','_range','parse','INVITE_CODE_REQUIRED','_dataLoaderService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','toDisposable','_sheetSkeletonManagerService','focused$','Module','UNAUTHENTICATED','_draw','defineProperty','_drawAnchor','find','updateOfflineData','syncEditingCollabCursor','setItem','_themeService','COMPLETION_FINISHED','@univerjs/sheets-ui','@univerjs/sheets','isTransformMutationFailure','CollaborationEvent','handleDeleteRangeMoveUp','onPointerLeave$','RevisionService','getOwnPropertySymbols','ColorKit','xlink:href','NodePositionConvertToRectRange','RxDisposable','#FFF','MessageType','roomMembers','source','editingUnit','isActive','_updateSubUnitFromURLParams','collab-text-range-','cursorInfo','WebSocketService','UniverCollaborationClientPlugin','CLOSE_ROOM','UniverIcon','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','ICommandService','transform','OffLineIcon','on-line-icon','YUUMI_NO_CUBOID_FOR_QUESTION','addHandlerCallback','status$','ISocketService','error','YUUMI_UNABLE_LOAD_URL','UPDATE_CURSOR','extend','getUndoRedoMutationParamsCache','INVITE_CODE_ALREADY_BOUND','univer-mr-2\x20univer-flex\x20univer-text-xl','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','random','getActiveSheet','transformRemoteChangeset','show','sessionTicket','_collaborationController','_session','closePath','indexOf','react','hasOwnProperty','CollaborationDataLoaderController','actions','_collaborationUIEventService','addObjects','send','CollaborationUIEventId','size','_handleLeaveEvent','DeleteRangeMoveUpCommandId','then','LOCAL_CACHE_INTERVAL_KEY','map','subUnitId','WebURLService','getOffsetConfig','urlChange$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_colorAssignService','APPLY_DUPLICATED','handleDeleteRangeMoveLeft','_hovered','APPLY_REJECT','getSheetId','5wlMoUL','onStarting','isEditing','DataLoaderService','@univerjs/design','set','engine','getFocusedUnit','collab-client.tooltip.reconnect','_getSheetObject','unitId','key','getOwnPropertyDescriptor','getMember','USERS_LEAVE','OFFLINE','UNDEFINED','params','row','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_hideTimer','DocSkeletonManagerService','_init','runRefRangeMutations','loadOfflineData','_cursor','_cursorShapes','search','clipPath','@univerjs/docs','white','INVITE_CODE_HAS_BEEN_UES','startsWith','getRelativeToViewportCoord','1371RLipts','_cursors','subscribeEvent','WebBrowserSingleActiveUnitService','SheetSkeletonManagerService','deepClone','@univerjs/drawing','removeParam','defs','fillRule','SessionStatus','NOT_COLLAB','max','_getAnchorBounding','handleInsertRow','endColumn','assignAColorForMemberID','assign','_entityInit$','restore','subscribe','selection','docStateChange$','unshift','_cursorInfo$','DocIMEInputManagerService','jsx','result','CollaborationStatusDisplay','_docSkeleton','http://www.w3.org/2000/svg','_cachedData','ILocalStorageService','_textBubble','transformSelections','rgba(255,\x20255,\x20255,\x200.01)','LocaleService','getActiveRange','UNRECOGNIZED','_univerInstanceService','collabCursorState$','transformMutation','RichTextEditingMutation','exhaustSavingTask','filter','_initStatusComponent','undoState','moveTo','measureText','_docSyncEditingCollabCursorService','session.connection-failed','_config','DocCollaborationEntity','_onRefRangeChange','AWAITING','currentColor','mapTo','cursorInfo$','with','setUndoRedoMutationParamsCache','debounceTime','CollaborationSessionService','UNIVER_SHEET','NodePositionConvertToCursor','Tools','TEXT','_color','findNodePositionByCharIndex','getVpScrollXYInfoByPosToVp','height','DisposableCollection','Workbook','0\x200\x2016\x2016','arc','LICENSE_DISTRO_REJECTED','getSheetBySheetId','add','_transformService','transformIMECache','sessionStatus$','INVALID_INVITE_CODE','onTransformChange$','drawWith','_injector','_scheduleSaving','_uiPartsService','_startSheetCollabCursor','_docStateChangeManagerService','transformByState','TOO_MANY_REQUESTS','useDependency','fill','_logService','_online','_collabCursorState$'];_0x2859=function(){return _0x4099eb;};return _0x2859();}var Bt=Object[_0x338f9d(0x20f)],kt=(_0x4e30bb,_0x34d4ad,_0x35e83f,_0x344652)=>{for(var _0x578da6=_0x344652>0x1?void 0x0:_0x344652?Bt(_0x34d4ad,_0x35e83f):_0x34d4ad,_0x57e1b5=_0x4e30bb['length']-0x1,_0x44b02a;_0x57e1b5>=0x0;_0x57e1b5--)(_0x44b02a=_0x4e30bb[_0x57e1b5])&&(_0x578da6=_0x44b02a(_0x578da6)||_0x578da6);return _0x578da6;},ce=(_0x2a9840,_0x964cd0)=>(_0x1c4e58,_0x5347c2)=>_0x964cd0(_0x1c4e58,_0x5347c2,_0x2a9840);let z=class{constructor(_0x5ee218,_0x4e3762,_0x103b44){const _0x13b39d=_0x338f9d;this[_0x13b39d(0x278)]=_0x5ee218,this[_0x13b39d(0x272)]=_0x4e3762,this['_renderManagerService']=_0x103b44;}[_0x338f9d(0x273)](_0x89a234){const _0x2d57bb=_0x338f9d;this[_0x2d57bb(0x383)](_0x89a234),this[_0x2d57bb(0x40f)](_0x89a234);}[_0x338f9d(0x1e3)](_0x4b9999){const _0x278265=_0x338f9d,{unitID:_0x492488}=_0x4b9999,_0x5b9fd9=this[_0x278265(0x3dd)][_0x278265(0x3d3)](_0x492488)['with'](b[_0x278265(0x23e)]),{redoCache:_0x16dd0f}=_0x5b9fd9[_0x278265(0x1dd)]();if(_0x16dd0f[_0x278265(0x29d)]===0x0)return _0x4b9999;let _0x4c212a=a[_0x278265(0x265)]['deepClone'](_0x4b9999[_0x278265(0x3c4)][0x0]);for(let _0x4ca78d=0x0;_0x4ca78d<_0x16dd0f[_0x278265(0x29d)];_0x4ca78d++){const _0x302bdc={'id':_0x278265(0x3e8),'params':{..._0x16dd0f[_0x4ca78d]}},_0xd1c6e1=this[_0x278265(0x272)][_0x278265(0x24e)](_0x4c212a,_0x302bdc,!0x1);if(m['isTransformMutationFailure'](_0xd1c6e1))throw _0xd1c6e1[_0x278265(0x1d9)];_0x4c212a=_0xd1c6e1[_0x278265(0x335)];}return{...a[_0x278265(0x265)]['deepClone'](_0x4b9999),'mutations':[_0x4c212a]};}[_0x338f9d(0x383)](_0x5a11c5){const _0x173f90=_0x338f9d,{unitID:_0x2ec52b}=_0x5a11c5,_0x113133=this['_renderManagerService'][_0x173f90(0x3d3)](_0x2ec52b)[_0x173f90(0x25f)](b['DocIMEInputManagerService']),{undoCache:_0x407dc6,redoCache:_0x561b45}=_0x113133['getUndoRedoMutationParamsCache']();if(_0x407dc6['length']===0x0||_0x561b45[_0x173f90(0x29d)]===0x0)return;const _0x3a7b36=[],_0x5406af=[];let _0x232db3=a[_0x173f90(0x265)][_0x173f90(0x22a)](_0x5a11c5[_0x173f90(0x3c4)][0x0]),_0x1c471e=a['Tools'][_0x173f90(0x22a)](_0x5a11c5[_0x173f90(0x3c4)][0x0]);for(let _0x5c85ef=_0x407dc6['length']-0x1;_0x5c85ef>=0x0;_0x5c85ef--){const _0x3b88d2={'id':_0x173f90(0x3e8),'params':{..._0x407dc6[_0x5c85ef]}},_0x337bf1={'id':_0x173f90(0x3e8),'params':{..._0x561b45[_0x5c85ef]}},_0x1ef39c=this['_transformService'][_0x173f90(0x24e)](_0x232db3,_0x3b88d2,!0x1),_0x134b2f=this[_0x173f90(0x272)][_0x173f90(0x24e)](_0x1c471e,_0x337bf1,!0x1);if(m[_0x173f90(0x1b9)](_0x1ef39c))throw _0x1ef39c[_0x173f90(0x1d9)];if(m[_0x173f90(0x1b9)](_0x134b2f))throw _0x134b2f[_0x173f90(0x1d9)];_0x3a7b36['unshift'](_0x1ef39c[_0x173f90(0x34e)][_0x173f90(0x214)]),_0x5406af[_0x173f90(0x23c)](_0x134b2f[_0x173f90(0x34e)][_0x173f90(0x214)]),_0x232db3=_0x1ef39c[_0x173f90(0x335)],_0x1c471e=_0x134b2f['m1Prime'];}_0x113133[_0x173f90(0x260)]({'undoCache':_0x3a7b36,'redoCache':_0x5406af});}[_0x338f9d(0x40f)](_0x59c088){const _0x2ff4b6=_0x338f9d,{unitID:_0x1bc19f}=_0x59c088,_0x37df31=this['_renderManagerService']['getRenderById'](_0x1bc19f)[_0x2ff4b6(0x25f)](b['DocIMEInputManagerService']),_0x5af29e=_0x37df31[_0x2ff4b6(0x24a)]();if(_0x5af29e==null)return;const _0x16c78a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x59c088['unitID'],'actions':null,'textRanges':[_0x5af29e]}}],_0x204db9=this[_0x2ff4b6(0x272)][_0x2ff4b6(0x377)](_0x59c088,_0x16c78a);if(!m['isTransformMutationsWithChangesetSuccess'](_0x204db9))throw _0x204db9[_0x2ff4b6(0x1d9)];const _0x11a8cb=_0x204db9[_0x2ff4b6(0x34e)][0x0]['params'][_0x2ff4b6(0x288)];Array['isArray'](_0x11a8cb)&&_0x11a8cb[_0x2ff4b6(0x29d)]&&_0x37df31[_0x2ff4b6(0x3ba)](_0x11a8cb[0x0]);}};z=kt([ce(0x0,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),ce(0x1,m[_0x338f9d(0x2a4)]),ce(0x2,p[_0x338f9d(0x330)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x3dcf04,_0x1444bd,_0x1b5f30,_0x10a29c)=>{const _0x386d8f=_0x338f9d;for(var _0x27700d=_0x10a29c>0x1?void 0x0:_0x10a29c?Ht(_0x1444bd,_0x1b5f30):_0x1444bd,_0x4b2350=_0x3dcf04[_0x386d8f(0x29d)]-0x1,_0x5e55d3;_0x4b2350>=0x0;_0x4b2350--)(_0x5e55d3=_0x3dcf04[_0x4b2350])&&(_0x27700d=_0x5e55d3(_0x27700d)||_0x27700d);return _0x27700d;},le=(_0x4adbef,_0x10ee96)=>(_0x23f9e1,_0x2be684)=>_0x10ee96(_0x23f9e1,_0x2be684,_0x4adbef);let J=class{constructor(_0x5ba4a5,_0x405684,_0x5cb84b){const _0x3fe1fd=_0x338f9d;this[_0x3fe1fd(0x278)]=_0x5ba4a5,this[_0x3fe1fd(0x272)]=_0x405684,this[_0x3fe1fd(0x27c)]=_0x5cb84b;}['transformStateCache'](_0x3b2bda){const _0x3bba40=_0x338f9d;this[_0x3bba40(0x34b)](_0x3b2bda);}[_0x338f9d(0x1e3)](_0x6826f9){const _0x471df3=_0x338f9d,{unitID:_0x5a44f5}=_0x6826f9,{collaboration:_0x4a2aa9}=this['_docStateChangeManagerService'][_0x471df3(0x3ce)](_0x5a44f5);if(_0x4a2aa9[_0x471df3(0x29d)]===0x0)return _0x6826f9;let _0x29f0d6=a[_0x471df3(0x265)][_0x471df3(0x22a)](_0x6826f9[_0x471df3(0x3c4)][0x0]);for(let _0x522935=0x0;_0x522935<_0x4a2aa9[_0x471df3(0x29d)];_0x522935++){const _0x12ff5f={'id':_0x471df3(0x3e8),'params':{'unitId':_0x4a2aa9[_0x522935][_0x471df3(0x20d)],..._0x4a2aa9[_0x522935][_0x471df3(0x3cf)]}},_0x587989=this[_0x471df3(0x272)][_0x471df3(0x24e)](_0x29f0d6,_0x12ff5f,!0x1);if(m[_0x471df3(0x1b9)](_0x587989))throw _0x587989[_0x471df3(0x1d9)];_0x29f0d6=_0x587989['m1Prime'];}return{...a['Tools'][_0x471df3(0x22a)](_0x6826f9),'mutations':[_0x29f0d6]};}[_0x338f9d(0x34b)](_0x186fb7){const _0x962f5=_0x338f9d,{unitID:_0x59b49c}=_0x186fb7,{history:_0x119fb1,collaboration:_0x17db9f}=this[_0x962f5(0x27c)]['getStateCache'](_0x59b49c);if(_0x119fb1['length']===0x0&&_0x17db9f[_0x962f5(0x29d)]===0x0)return;const _0x3b0a18=[],_0x3fc777=[];let _0x2cabb2=a[_0x962f5(0x265)][_0x962f5(0x22a)](_0x186fb7[_0x962f5(0x3c4)][0x0]),_0x554a7d=a[_0x962f5(0x265)][_0x962f5(0x22a)](_0x186fb7[_0x962f5(0x3c4)][0x0]);for(let _0x51ba20=_0x119fb1['length']-0x1;_0x51ba20>=0x0;_0x51ba20--){const _0x31695e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x119fb1[_0x51ba20][_0x962f5(0x20d)],..._0x119fb1[_0x51ba20][_0x962f5(0x253)]}},_0x9ea732={'id':_0x962f5(0x3e8),'params':{'unitId':_0x119fb1[_0x51ba20][_0x962f5(0x20d)],..._0x119fb1[_0x51ba20][_0x962f5(0x3cf)]}},_0x46ba2f=this[_0x962f5(0x272)]['transformMutation'](_0x2cabb2,_0x31695e,!0x1),_0x3fb2de=this[_0x962f5(0x272)][_0x962f5(0x24e)](_0x554a7d,_0x9ea732,!0x1);if(m[_0x962f5(0x1b9)](_0x46ba2f))throw _0x46ba2f[_0x962f5(0x1d9)];if(m[_0x962f5(0x1b9)](_0x3fb2de))throw _0x3fb2de[_0x962f5(0x1d9)];_0x3b0a18['unshift']({..._0x119fb1[_0x51ba20],'undoState':_0x46ba2f['m2Prime']['params'],'redoState':_0x3fb2de[_0x962f5(0x34e)]['params']}),_0x2cabb2=_0x46ba2f['m1Prime'],_0x554a7d=_0x3fb2de[_0x962f5(0x335)];}_0x2cabb2=a[_0x962f5(0x265)][_0x962f5(0x22a)](_0x186fb7[_0x962f5(0x3c4)][0x0]),_0x554a7d=a['Tools'][_0x962f5(0x22a)](_0x186fb7[_0x962f5(0x3c4)][0x0]);for(let _0x327e0a=_0x17db9f[_0x962f5(0x29d)]-0x1;_0x327e0a>=0x0;_0x327e0a--){const _0x1ba1ae={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x17db9f[_0x327e0a][_0x962f5(0x20d)],..._0x17db9f[_0x327e0a]['undoState']}},_0x30cc8b={'id':_0x962f5(0x3e8),'params':{'unitId':_0x17db9f[_0x327e0a][_0x962f5(0x20d)],..._0x17db9f[_0x327e0a][_0x962f5(0x3cf)]}},_0x56a452=this[_0x962f5(0x272)][_0x962f5(0x24e)](_0x2cabb2,_0x1ba1ae,!0x1),_0x5e3105=this[_0x962f5(0x272)][_0x962f5(0x24e)](_0x554a7d,_0x30cc8b,!0x1);if(m[_0x962f5(0x1b9)](_0x56a452))throw _0x56a452[_0x962f5(0x1d9)];if(m[_0x962f5(0x1b9)](_0x5e3105))throw _0x5e3105[_0x962f5(0x1d9)];_0x3fc777[_0x962f5(0x23c)]({..._0x17db9f[_0x327e0a],'undoState':_0x56a452[_0x962f5(0x34e)][_0x962f5(0x214)],'redoState':_0x5e3105['m2Prime'][_0x962f5(0x214)]}),_0x2cabb2=_0x56a452['m1Prime'],_0x554a7d=_0x5e3105[_0x962f5(0x335)];}this['_docStateChangeManagerService']['setStateCache'](_0x59b49c,{'history':_0x3b0a18,'collaboration':_0x3fc777});}};J=Ft([le(0x0,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),le(0x1,m['ITransformService']),le(0x2,a[_0x338f9d(0x388)](b[_0x338f9d(0x28b)]))],J);var Yt=Object[_0x338f9d(0x20f)],Wt=(_0x540a5c,_0x31749f,_0x114c84,_0x32fa04)=>{const _0xde3f2b=_0x338f9d;for(var _0x5c0988=_0x32fa04>0x1?void 0x0:_0x32fa04?Yt(_0x31749f,_0x114c84):_0x31749f,_0x2d34e8=_0x540a5c[_0xde3f2b(0x29d)]-0x1,_0x4e004c;_0x2d34e8>=0x0;_0x2d34e8--)(_0x4e004c=_0x540a5c[_0x2d34e8])&&(_0x5c0988=_0x4e004c(_0x5c0988)||_0x5c0988);return _0x5c0988;},Ne=(_0x5c969d,_0x3b143d)=>(_0x1453dc,_0x4399f5)=>_0x3b143d(_0x1453dc,_0x4399f5,_0x5c969d);let Z=class{constructor(_0x2657a0,_0x2c5a48){const _0x493928=_0x338f9d;this[_0x493928(0x278)]=_0x2657a0,this['_transformService']=_0x2c5a48;}[_0x338f9d(0x247)](_0x19f211){const _0x579062=_0x338f9d;var _0x1f2148;const _0x6b86e8=this[_0x579062(0x278)][_0x579062(0x34c)](Y['DocSelectionManagerService']),_0xf0ba=(_0x1f2148=_0x6b86e8[_0x579062(0x360)]())!=null?_0x1f2148:[];if(_0xf0ba[_0x579062(0x29d)]===0x0)return;const _0x4e5cb3=_0x19f211['unitID'],_0x2a8025=[{'id':_0x579062(0x3e8),'params':{'unitId':_0x4e5cb3,'actions':null,'textRanges':_0xf0ba}}],_0xa774f=this[_0x579062(0x272)][_0x579062(0x377)](_0x19f211,_0x2a8025);if(!m['isTransformMutationsWithChangesetSuccess'](_0xa774f))throw _0xa774f['error'];const _0x4a3af0=_0xa774f[_0x579062(0x34e)][0x0]['params'][_0x579062(0x288)];Array[_0x579062(0x359)](_0x4a3af0)&&_0x4a3af0[_0x579062(0x29d)]&&_0x6b86e8[_0x579062(0x2fa)](_0x4a3af0,{'unitId':_0x4e5cb3,'subUnitId':_0x4e5cb3},!0x1);}};Z=Wt([Ne(0x0,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x338f9d(0x20f)],Xt=(_0x40ee5f,_0x52c1ec,_0x994f66,_0x5466fb)=>{const _0x2ffea5=_0x338f9d;for(var _0x4a1cf9=_0x5466fb>0x1?void 0x0:_0x5466fb?Vt(_0x52c1ec,_0x994f66):_0x52c1ec,_0x5c5bf0=_0x40ee5f[_0x2ffea5(0x29d)]-0x1,_0x366dc7;_0x5c5bf0>=0x0;_0x5c5bf0--)(_0x366dc7=_0x40ee5f[_0x5c5bf0])&&(_0x4a1cf9=_0x366dc7(_0x4a1cf9)||_0x4a1cf9);return _0x4a1cf9;},N=(_0x413a0c,_0x566ddf)=>(_0x4b79d6,_0x17c836)=>_0x566ddf(_0x4b79d6,_0x17c836,_0x413a0c);let Q=class extends a[_0x338f9d(0x40d)]{constructor(_0x3005ca,_0x47e68a,_0x30534d,_0x5a2960,_0xa1eeda,_0x5d19ad,_0x4cc3f5,_0x5aee0d){const _0x348c08=_0x338f9d;super(),h(this,'_status$',new d[(_0x348c08(0x3ac))](u[_0x348c08(0x31d)][_0x348c08(0x230)])),(this['_docStateChangeManagerService']=_0x3005ca,this[_0x348c08(0x1e6)]=_0x47e68a,this[_0x348c08(0x394)]=_0x30534d,this[_0x348c08(0x433)]=_0x5a2960,this['_docTransformSelectionsService']=_0xa1eeda,this[_0x348c08(0x256)]=_0x5d19ad,this['_messageService']=_0x4cc3f5,this[_0x348c08(0x333)]=_0x5aee0d,this[_0x348c08(0x3a5)]());}[_0x338f9d(0x3a5)](){const _0xae9b1f=_0x338f9d;this[_0xae9b1f(0x3df)](this[_0xae9b1f(0x1e6)][_0xae9b1f(0x41e)][_0xae9b1f(0x239)](_0x32eb6f=>{const _0x4c4898=_0xae9b1f,_0xe2809f=this[_0x4c4898(0x27c)][_0x4c4898(0x23b)][_0x4c4898(0x239)](_0x25e1d6=>{const _0x2ef1a6=_0x4c4898;if(_0x25e1d6==null)return;const {unitId:_0x2ec50c,redoState:_0x51c3f0,commandId:_0x57b771}=_0x25e1d6;if(_0x2ec50c!==_0x32eb6f[_0x2ef1a6(0x29a)])return;const _0x56760e={'id':_0x57b771,'type':a['CommandType'][_0x2ef1a6(0x315)],'params':{'unitId':_0x2ec50c,'actions':_0x51c3f0[_0x2ef1a6(0x1ed)],'textRanges':null}};_0x32eb6f[_0x2ef1a6(0x391)](_0x56760e);});if(_0x32eb6f[_0x4c4898(0x3df)](_0xe2809f),_0x32eb6f instanceof u[_0x4c4898(0x259)]){const _0x182fdb={'onTransformIME':_0x480d6c=>this[_0x4c4898(0x394)]['transformIMECache'](_0x480d6c),'onTransformState':_0x215ffc=>this['_docTransformStateCacheService'][_0x4c4898(0x3d1)](_0x215ffc),'onTransformSelections':_0xb418cb=>this[_0x4c4898(0x33c)][_0x4c4898(0x247)](_0xb418cb),'onSyncEditingCollabCursor':_0x55bd79=>this[_0x4c4898(0x256)][_0x4c4898(0x1b3)](_0x55bd79),'onTransformRemoteChangesetByIMECache':_0x513ea7=>this[_0x4c4898(0x394)]['transformRemoteChangeset'](_0x513ea7),'onTransformRemoteChangesetByStateCache':_0x4fbb01=>this[_0x4c4898(0x433)]['transformRemoteChangeset'](_0x4fbb01)};_0x32eb6f[_0x4c4898(0x1d6)](_0x182fdb);}}));}};Q=Xt([N(0x0,a[_0x338f9d(0x388)](b[_0x338f9d(0x28b)])),N(0x1,a[_0x338f9d(0x388)](u['CollaborationController'])),N(0x2,a[_0x338f9d(0x388)](z)),N(0x3,a['Inject'](J)),N(0x4,a[_0x338f9d(0x388)](Z)),N(0x5,a[_0x338f9d(0x388)](Ce)),N(0x6,T['IMessageService']),N(0x7,a[_0x338f9d(0x388)](a[_0x338f9d(0x249)]))],Q);var Gt=Object[_0x338f9d(0x20f)],Kt=(_0x49c26f,_0x2ab846,_0x397cdd,_0x30aa05)=>{const _0x196705=_0x338f9d;for(var _0x354b43=_0x30aa05>0x1?void 0x0:_0x30aa05?Gt(_0x2ab846,_0x397cdd):_0x2ab846,_0x59476b=_0x49c26f[_0x196705(0x29d)]-0x1,_0x45aeaa;_0x59476b>=0x0;_0x59476b--)(_0x45aeaa=_0x49c26f[_0x59476b])&&(_0x354b43=_0x45aeaa(_0x354b43)||_0x354b43);return _0x354b43;},_e=(_0x19f364,_0x3c1204)=>(_0x38f45b,_0x31ac50)=>_0x3c1204(_0x38f45b,_0x31ac50,_0x19f364);let ge=class extends a[_0x338f9d(0x40d)]{constructor(_0x47f2f5,_0x212e46,_0x46cdef){const _0x2d7c77=_0x338f9d;super(),h(this,_0x2d7c77(0x244),new Map()),h(this,_0x2d7c77(0x32f),new Map()),h(this,_0x2d7c77(0x2cf),!0x1),(this[_0x2d7c77(0x411)]=_0x47f2f5,this[_0x2d7c77(0x431)]=_0x212e46,this['_revisionService']=_0x46cdef);}['disableLocalCache'](){const _0x4185f1=_0x338f9d;this[_0x4185f1(0x2cf)]=!0x0;}[_0x338f9d(0x401)](){this['_disabled']=!0x1;}get[_0x338f9d(0x3ca)](){const _0x172b85=_0x338f9d;return this[_0x172b85(0x32f)];}[_0x338f9d(0x361)](){const _0x2fd81f=_0x338f9d;this[_0x2fd81f(0x250)]()[_0x2fd81f(0x1f5)](()=>super['dispose']());}async[_0x338f9d(0x21b)](_0x3db70b){const _0x5dac0c=_0x338f9d;return this[_0x5dac0c(0x2cf)]?null:this[_0x5dac0c(0x431)][_0x5dac0c(0x362)](u['getLocalCacheKey'](_0x3db70b));}async[_0x338f9d(0x2c4)](_0x27a952,_0x436300){const _0x161635=_0x338f9d;return!!this[_0x161635(0x431)][_0x161635(0x1b4)](_0x27a952,_0x436300);}[_0x338f9d(0x1b2)](_0x933497,_0x5d0493,_0x98f03f,_0x43463f){const _0x444244=_0x338f9d,_0x2297b2=this[_0x444244(0x2e4)][_0x444244(0x39f)](_0x933497);this['_cachedData'][_0x444244(0x208)](_0x933497,{'unitID':_0x933497,'type':_0x5d0493,'awaitingChangeset':_0x98f03f,'mutations':_0x43463f,'rev':_0x2297b2}),this[_0x444244(0x32f)]['has'](_0x933497)||this[_0x444244(0x279)](_0x933497);}[_0x338f9d(0x279)](_0x335871){const _0x30e73d=_0x338f9d,_0x5f2b13=this[_0x30e73d(0x3d5)]();_0x5f2b13===0x0?this[_0x30e73d(0x2b9)](_0x335871):this['_saveTaskMap'][_0x30e73d(0x208)](_0x335871,setTimeout(()=>this[_0x30e73d(0x2b9)](_0x335871),_0x5f2b13));}[_0x338f9d(0x3d5)](){const _0x5dd900=_0x338f9d;var _0x3b663a;return(_0x3b663a=this[_0x5dd900(0x411)][_0x5dd900(0x419)](u[_0x5dd900(0x1f6)]))!=null?_0x3b663a:u['LOCAL_CACHE_INTERVAL'];}[_0x338f9d(0x2b9)](_0x19582f){const _0x2e5a50=_0x338f9d,_0x1d35ee=this[_0x2e5a50(0x32f)]['get'](_0x19582f);return _0x1d35ee!==void 0x0&&window[_0x2e5a50(0x370)](_0x1d35ee),this[_0x2e5a50(0x431)][_0x2e5a50(0x1b4)](u['getLocalCacheKey'](_0x19582f),this[_0x2e5a50(0x244)]['get'](_0x19582f))[_0x2e5a50(0x1f5)](()=>this['_saveTaskMap'][_0x2e5a50(0x308)](_0x19582f));}async[_0x338f9d(0x250)](){const _0x5d2166=_0x338f9d,_0x39c2e5=[];this[_0x5d2166(0x32f)][_0x5d2166(0x2d6)]((_0x2046db,_0x5c5472)=>{const _0xc1220a=_0x5d2166;window['clearTimeout'](_0x2046db),_0x39c2e5['push'](this['_saveCache'](_0x5c5472)[_0xc1220a(0x1f5)](()=>{const _0x556f3c=_0xc1220a;this[_0x556f3c(0x32f)][_0x556f3c(0x308)](_0x5c5472);}));}),await Promise['all'](_0x39c2e5);}};ge=Kt([_e(0x0,a[_0x338f9d(0x2f0)]),_e(0x1,a[_0x338f9d(0x245)]),_e(0x2,a[_0x338f9d(0x388)](m[_0x338f9d(0x1bd)]))],ge);class je extends a[_0x338f9d(0x1c2)]{constructor(){const _0x473878=_0x338f9d;super(),h(this,'urlChange$'),this[_0x473878(0x1fb)]=d[_0x473878(0x357)](window,_0x473878(0x19e))[_0x473878(0x349)](d[_0x473878(0x36f)](this[_0x473878(0x42b)]),d[_0x473878(0x2f3)](0x1),d[_0x473878(0x25d)](void 0x0));}[_0x338f9d(0x2d8)](_0x33e14f,_0x5cd64f,_0x567f87=!0x1){const _0x4e09de=_0x338f9d,_0x40cfbc=new URL(window['location'][_0x4e09de(0x3eb)]);_0x40cfbc[_0x4e09de(0x29b)][_0x4e09de(0x208)](_0x33e14f,_0x5cd64f),_0x567f87?window['history']['replaceState']('','',_0x40cfbc[_0x4e09de(0x40b)]()):window[_0x4e09de(0x37d)]['pushState']('','',_0x40cfbc[_0x4e09de(0x40b)]());}[_0x338f9d(0x22c)](_0x25de69,_0x193267=!0x1){const _0x3f1884=_0x338f9d,_0x291cac=new URL(window['location'][_0x3f1884(0x3eb)]);_0x291cac['searchParams']['delete'](_0x25de69),_0x193267?window['history'][_0x3f1884(0x2eb)]('','',_0x291cac[_0x3f1884(0x40b)]()):window['history']['pushState']('','',_0x291cac['toString']());}[_0x338f9d(0x348)](_0x1f3351){const _0x3d202c=_0x338f9d;var _0xe4c26e;return(_0xe4c26e=new URL(window[_0x3d202c(0x3c7)][_0x3d202c(0x3eb)])[_0x3d202c(0x29b)][_0x3d202c(0x34c)](_0x1f3351))!=null?_0xe4c26e:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x338f9d(0x20f)],Jt=(_0x5ae183,_0x4eff83,_0x49759f)=>_0x4eff83 in _0x5ae183?qt(_0x5ae183,_0x4eff83,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49759f}):_0x5ae183[_0x4eff83]=_0x49759f,Zt=(_0x120c72,_0x4cb54e,_0x18f3a3,_0x3cf610)=>{for(var _0x4a399b=_0x3cf610>0x1?void 0x0:_0x3cf610?zt(_0x4cb54e,_0x18f3a3):_0x4cb54e,_0x553fdf=_0x120c72['length']-0x1,_0xfd865b;_0x553fdf>=0x0;_0x553fdf--)(_0xfd865b=_0x120c72[_0x553fdf])&&(_0x4a399b=_0xfd865b(_0x4a399b)||_0x4a399b);return _0x4a399b;},he=(_0x2e5e37,_0xd63431)=>(_0x2998a2,_0x4a2964)=>_0xd63431(_0x2998a2,_0x4a2964,_0x2e5e37),Qt=(_0x2384ae,_0x59f73f,_0x20595d)=>Jt(_0x2384ae,_0x59f73f+'',_0x20595d);const es=_0x338f9d(0x1e0);exports[_0x338f9d(0x2a1)]=class extends a[_0x338f9d(0x2e6)]{constructor(_0x313ee8=Ue,_0x5de010,_0x3f69af,_0x882f25){const _0x237617=_0x338f9d;super(),this[_0x237617(0x258)]=_0x313ee8,this[_0x237617(0x3dd)]=_0x5de010,this['_injector']=_0x3f69af,this['_configService']=_0x882f25;const {..._0x3fa9ac}=a[_0x237617(0x395)]({},Ue,this['_config']);this[_0x237617(0x411)][_0x237617(0x2bd)]($t,_0x3fa9ac);}[_0x338f9d(0x204)](){const _0x9af8a3=_0x338f9d;this[_0x9af8a3(0x2b8)](),this['_initDependencies']();}[_0x338f9d(0x341)](){const _0x455543=_0x338f9d;this[_0x455543(0x33d)]();}[_0x338f9d(0x2b8)](){const _0x348616=_0x338f9d;var _0x328ff1;const _0x3e51e5=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x348616(0x1d8)],{'useClass':G[_0x348616(0x1cc)]}],[u[_0x348616(0x2a3)],{'useClass':ge}],[exports[_0x348616(0x332)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x348616(0x2b6)](this['_injector'],a[_0x348616(0x408)](_0x3e51e5,(_0x328ff1=this[_0x348616(0x258)])==null?void 0x0:_0x328ff1['override']));}[_0x338f9d(0x33d)](){const _0x509333=_0x338f9d;this['disposeWithMe'](this[_0x509333(0x3dd)]['registerRenderModule'](a['UniverInstanceType'][_0x509333(0x2e3)],[Ie])),this[_0x509333(0x3df)](this[_0x509333(0x3dd)]['registerRenderModule'](a['UniverInstanceType'][_0x509333(0x263)],[ve]));}[_0x338f9d(0x343)](){const _0x59ac33=_0x338f9d;a[_0x59ac33(0x31f)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x59ac33(0x1ec)]]]);}},Qt(exports[_0x338f9d(0x2a1)],_0x338f9d(0x3cb),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x338f9d(0x322)](u[_0x338f9d(0x1cd)]),he(0x1,p[_0x338f9d(0x330)]),he(0x2,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),he(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x338f9d(0x20f)],ss=(_0x529783,_0x24ba27,_0x405c00,_0x2627e6)=>{for(var _0x3285b0=_0x2627e6>0x1?void 0x0:_0x2627e6?ts(_0x24ba27,_0x405c00):_0x24ba27,_0x3204c3=_0x529783['length']-0x1,_0x40a92f;_0x3204c3>=0x0;_0x3204c3--)(_0x40a92f=_0x529783[_0x3204c3])&&(_0x3285b0=_0x40a92f(_0x3285b0)||_0x3285b0);return _0x3285b0;},F=(_0x5232a6,_0x4fdf8d)=>(_0x5c94cd,_0x2df7ab)=>_0x4fdf8d(_0x5c94cd,_0x2df7ab,_0x5232a6);exports[_0x338f9d(0x2d4)]=class extends u[_0x338f9d(0x41a)]{constructor(_0x294df1,_0x403216,_0x31d1e6,_0x32681f,_0x4b7f9c){super(_0x294df1,_0x403216,_0x31d1e6,_0x32681f,_0x4b7f9c);}async[_0x338f9d(0x38f)](_0x8b3f14){const _0x8dbccf=_0x338f9d,_0x465a1b=await this['_getSessionTicket'](),_0x1fc7c5=this[_0x8dbccf(0x405)](_0x8b3f14,_0x465a1b);return this['_doCreateSocket'](_0x1fc7c5);}[_0x338f9d(0x405)](_0x184880,_0x2ccb72){const _0x48272f=_0x338f9d,_0x4b9b3a=typeof window>'u'?new URL(_0x184880):new URL(_0x184880,window['location'][_0x48272f(0x3bf)]);_0x4b9b3a[_0x48272f(0x29b)][_0x48272f(0x208)](_0x48272f(0x1e5),_0x2ccb72);const _0x4350b4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x48272f(0x21e)]);return _0x4350b4[_0x48272f(0x34c)](_0x48272f(0x3f4))&&_0x4b9b3a['searchParams'][_0x48272f(0x208)](_0x48272f(0x3f4),_0x4350b4[_0x48272f(0x34c)](_0x48272f(0x3f4))),_0x4b9b3a[_0x48272f(0x40b)]();}async[_0x338f9d(0x286)](){const _0x22a746=_0x338f9d;var _0x2c977b,_0x361d35,_0x241402;const _0x22a353=this[_0x22a746(0x411)]['getConfig'](u[_0x22a746(0x41d)]),_0x59497f=(_0x2c977b=_0x22a353==null?void 0x0:_0x22a353[_0x22a746(0x1a2)])!=null?_0x2c977b:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x241402=(_0x361d35=(await this[_0x22a746(0x2ad)][_0x22a746(0x34c)](_0x59497f,{'headers':{'Content-Type':_0x22a746(0x3b8)}}))['body'])==null?void 0x0:_0x361d35[_0x22a746(0x3c8)])!=null?_0x241402:'';}},exports[_0x338f9d(0x2d4)]=ss([F(0x0,a[_0x338f9d(0x388)](a[_0x338f9d(0x302)])),F(0x1,a['Inject'](G[_0x338f9d(0x19c)])),F(0x2,a[_0x338f9d(0x2f0)]),F(0x3,a[_0x338f9d(0x3d0)]),F(0x4,m[_0x338f9d(0x37c)])],exports[_0x338f9d(0x2d4)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a['Disposable']{constructor(){const _0x197cd8=_0x338f9d;super(),h(this,_0x197cd8(0x393),a[_0x197cd8(0x416)]()),h(this,_0x197cd8(0x3ff),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x197cd8(0x415),null),h(this,_0x197cd8(0x3fd),new Map()),h(this,_0x197cd8(0x38d),new Map()),this['_init']();}[_0x338f9d(0x361)](){const _0x17356d=_0x338f9d;super[_0x17356d(0x361)](),this[_0x17356d(0x3fd)][_0x17356d(0x2d6)]((_0x3c0c4b,_0x3b9cb5)=>this[_0x17356d(0x380)](_0x3b9cb5)),this[_0x17356d(0x415)]&&window[_0x17356d(0x37f)](this[_0x17356d(0x415)]);}[_0x338f9d(0x2d7)](_0x27e5fa){const _0x5ea815=_0x338f9d;return this['_ensureSubject'](_0x27e5fa)[_0x5ea815(0x349)](d['distinctUntilChanged']());}[_0x338f9d(0x1c7)](_0x3157b9){const _0x51313d=_0x338f9d;this[_0x51313d(0x3ff)][_0x51313d(0x1f2)]===0x0&&this[_0x51313d(0x2e1)](),this[_0x51313d(0x3ff)]['add'](_0x3157b9),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3157b9],'isForwarded':!0x1});}['disposeUnit'](_0x2e30d2){const _0x8b3663=_0x338f9d;this[_0x8b3663(0x3ff)][_0x8b3663(0x308)](_0x2e30d2),this['_selfUnitIDs']['size']===0x0&&this[_0x8b3663(0x415)]&&window[_0x8b3663(0x37f)](this[_0x8b3663(0x415)]);}[_0x338f9d(0x219)](){const _0x4a7c2d=_0x338f9d;this[_0x4a7c2d(0x3df)](a[_0x4a7c2d(0x1a9)](d[_0x4a7c2d(0x357)](window,'storage')[_0x4a7c2d(0x239)](_0x1dff00=>{const _0x559592=_0x4a7c2d;if(_0x1dff00[_0x559592(0x20e)]!==Le||!_0x1dff00['newValue'])return;const _0x5799c1=JSON[_0x559592(0x1a5)](_0x1dff00[_0x559592(0x328)]);this['_handleEvent'](_0x5799c1);}))),window[_0x4a7c2d(0x30e)](_0x4a7c2d(0x33b),()=>this[_0x4a7c2d(0x39c)]({'type':0x1,'memberID':this[_0x4a7c2d(0x393)],'unitIDs':Array[_0x4a7c2d(0x427)](this[_0x4a7c2d(0x3ff)])}));}['_handleEvent'](_0xd50aab){const _0x1b2644=_0x338f9d;switch(_0xd50aab['type']){case 0x0:this[_0x1b2644(0x404)](_0xd50aab);break;case 0x1:this[_0x1b2644(0x1f3)](_0xd50aab);break;case 0x2:this[_0x1b2644(0x2fe)](_0xd50aab);break;}}[_0x338f9d(0x404)](_0x190ea6){const _0x3c6aa1=_0x338f9d,{unitIDs:_0x4991a6,memberID:_0x760ac3,isForwarded:_0x42d992}=_0x190ea6;_0x4991a6[_0x3c6aa1(0x2d6)](_0xfb1580=>{const _0x2d51ff=_0x3c6aa1;if(!_0x42d992&&this[_0x2d51ff(0x301)][_0x2d51ff(0x3ed)](_0xfb1580)&&this[_0x2d51ff(0x316)](_0xfb1580)[_0x2d51ff(0x346)](u[_0x2d51ff(0x3b9)][_0x2d51ff(0x392)]),!this[_0x2d51ff(0x301)]['has'](_0xfb1580)||!this[_0x2d51ff(0x301)][_0x2d51ff(0x34c)](_0xfb1580)[_0x2d51ff(0x3ed)](_0x760ac3)){const _0x5a9915=this[_0x2d51ff(0x301)][_0x2d51ff(0x34c)](_0xfb1580)||new Set();_0x5a9915[_0x2d51ff(0x271)](_0x760ac3),this[_0x2d51ff(0x301)][_0x2d51ff(0x208)](_0xfb1580,_0x5a9915),this[_0x2d51ff(0x2d5)](_0x760ac3);}}),_0x42d992||this[_0x3c6aa1(0x39c)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3c6aa1(0x3ff)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3dd445){const _0x567ebd=_0x338f9d;this[_0x567ebd(0x380)](_0x3dd445);const _0x19f109=window[_0x567ebd(0x2bb)](()=>{const _0x15aa35=_0x567ebd;this[_0x15aa35(0x301)]['forEach'](_0x1d5416=>{const _0xc48b04=_0x15aa35;_0x1d5416[_0xc48b04(0x308)](_0x3dd445);});},Me*0x2);this[_0x567ebd(0x3fd)][_0x567ebd(0x208)](_0x3dd445,_0x19f109);}['_removeClearOtherTimer'](_0x1b147b){const _0x3f7044=_0x338f9d;if(this[_0x3f7044(0x3fd)][_0x3f7044(0x3ed)](_0x1b147b)){const _0x205685=this[_0x3f7044(0x3fd)]['get'](_0x1b147b);_0x205685&&window[_0x3f7044(0x370)](_0x205685),this[_0x3f7044(0x3fd)][_0x3f7044(0x208)](_0x1b147b,null);}}[_0x338f9d(0x1f3)](_0x38329c){const _0x1f56a8=_0x338f9d,{memberID:_0x35efa2,unitIDs:_0x247c45}=_0x38329c;_0x247c45[_0x1f56a8(0x2d6)](_0x448541=>{const _0x483cec=_0x1f56a8;var _0x5a4746;const _0x159fa8=this[_0x483cec(0x301)]['get'](_0x448541);_0x159fa8&&(_0x159fa8[_0x483cec(0x308)](_0x35efa2),(_0x5a4746=this['_ensureSubject'](_0x448541))==null||_0x5a4746[_0x483cec(0x346)](_0x159fa8[_0x483cec(0x1f2)]===0x0?u['UnitStatus'][_0x483cec(0x29e)]:u['UnitStatus'][_0x483cec(0x392)]));}),this[_0x1f56a8(0x380)](_0x35efa2);}['_handleHeartbeatEvent'](_0x153160){const _0x5f28e9=_0x338f9d;this[_0x5f28e9(0x2d5)](_0x153160[_0x5f28e9(0x32b)]);}[_0x338f9d(0x39c)](_0x5ee15c){const _0x56392a=_0x338f9d;localStorage[_0x56392a(0x1b4)](Le,JSON[_0x56392a(0x2ae)](_0x5ee15c));}[_0x338f9d(0x2e1)](){const _0x5ab647=_0x338f9d;this[_0x5ab647(0x415)]=window[_0x5ab647(0x3b5)](()=>{const _0x40e096=_0x5ab647;this['_send']({'type':0x2,'memberID':this[_0x40e096(0x393)]});},Me);}['_ensureSubject'](_0x4ec3ac){const _0xf94f8f=_0x338f9d;return this[_0xf94f8f(0x38d)][_0xf94f8f(0x3ed)](_0x4ec3ac)||this[_0xf94f8f(0x38d)]['set'](_0x4ec3ac,new d['BehaviorSubject'](u[_0xf94f8f(0x3b9)][_0xf94f8f(0x29e)])),this[_0xf94f8f(0x38d)][_0xf94f8f(0x34c)](_0x4ec3ac);}}var Be=(_0x1c3b33=>(_0x1c3b33[_0x1c3b33[_0x338f9d(0x213)]=0x0]=_0x338f9d(0x213),_0x1c3b33[_0x1c3b33['OK']=0x1]='OK',_0x1c3b33[_0x1c3b33[_0x338f9d(0x35e)]=0x2]=_0x338f9d(0x35e),_0x1c3b33[_0x1c3b33[_0x338f9d(0x312)]=0x3]='PERMISSION_DENIED',_0x1c3b33[_0x1c3b33['NOT_FOUND']=0x4]=_0x338f9d(0x345),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1ad)]=0x5]=_0x338f9d(0x1ad),_0x1c3b33[_0x1c3b33[_0x338f9d(0x406)]=0x6]=_0x338f9d(0x406),_0x1c3b33[_0x1c3b33[_0x338f9d(0x2d2)]=0x7]='INVALID_ARGUMENT',_0x1c3b33[_0x1c3b33[_0x338f9d(0x27e)]=0x8]='TOO_MANY_REQUESTS',_0x1c3b33[_0x1c3b33['COMPLETION_FINISHED']=0x9]=_0x338f9d(0x1b6),_0x1c3b33[_0x1c3b33[_0x338f9d(0x2b1)]=0xa]=_0x338f9d(0x2b1),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3f6)]=0x1389]=_0x338f9d(0x3f6),_0x1c3b33[_0x1c3b33['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x338f9d(0x364),_0x1c3b33[_0x1c3b33[_0x338f9d(0x296)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1c3b33[_0x1c3b33[_0x338f9d(0x420)]=0x1773]=_0x338f9d(0x420),_0x1c3b33[_0x1c3b33[_0x338f9d(0x201)]=0x1b59]=_0x338f9d(0x201),_0x1c3b33[_0x1c3b33['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x338f9d(0x3b1),_0x1c3b33[_0x1c3b33[_0x338f9d(0x37b)]=0x1b5b]=_0x338f9d(0x37b),_0x1c3b33[_0x1c3b33[_0x338f9d(0x34d)]=0x1b5c]=_0x338f9d(0x34d),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1fe)]=0x1b5d]=_0x338f9d(0x1fe),_0x1c3b33[_0x1c3b33[_0x338f9d(0x366)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1c3b33[_0x1c3b33[_0x338f9d(0x2a5)]=0x2329]=_0x338f9d(0x2a5),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3b2)]=0x232a]=_0x338f9d(0x3b2),_0x1c3b33[_0x1c3b33[_0x338f9d(0x331)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x1c3b33[_0x1c3b33[_0x338f9d(0x3f0)]=0x232c]=_0x338f9d(0x3f0),_0x1c3b33[_0x1c3b33[_0x338f9d(0x26f)]=0x232d]=_0x338f9d(0x26f),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1da)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1c3b33[_0x1c3b33[_0x338f9d(0x387)]=0x2712]=_0x338f9d(0x387),_0x1c3b33[_0x1c3b33[_0x338f9d(0x413)]=0x2713]=_0x338f9d(0x413),_0x1c3b33[_0x1c3b33[_0x338f9d(0x29f)]=0x2714]=_0x338f9d(0x29f),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1d5)]=0x271a]=_0x338f9d(0x1d5),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3ae)]=0x271b]=_0x338f9d(0x3ae),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3f7)]=0x271c]=_0x338f9d(0x3f7),_0x1c3b33[_0x1c3b33['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x1c3b33[_0x1c3b33[_0x338f9d(0x1fc)]=0x271e]=_0x338f9d(0x1fc),_0x1c3b33[_0x1c3b33[_0x338f9d(0x3ab)]=0x271f]=_0x338f9d(0x3ab),_0x1c3b33[_0x1c3b33[_0x338f9d(0x299)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x1c3b33[_0x1c3b33[_0x338f9d(0x222)]=0x2ee1]=_0x338f9d(0x222),_0x1c3b33[_0x1c3b33[_0x338f9d(0x275)]=0x2ee2]=_0x338f9d(0x275),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1a6)]=0x2ee3]=_0x338f9d(0x1a6),_0x1c3b33[_0x1c3b33[_0x338f9d(0x324)]=0x2ee4]=_0x338f9d(0x324),_0x1c3b33[_0x1c3b33[_0x338f9d(0x1de)]=0x2ee5]=_0x338f9d(0x1de),_0x1c3b33[_0x1c3b33[_0x338f9d(0x19f)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1c3b33[_0x1c3b33['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x338f9d(0x294),_0x1c3b33[_0x1c3b33[_0x338f9d(0x291)]=0x32cb]=_0x338f9d(0x291),_0x1c3b33[_0x1c3b33[_0x338f9d(0x24b)]=-0x1]=_0x338f9d(0x24b),_0x1c3b33))(Be||{}),ns=Object[_0x338f9d(0x20f)],rs=(_0x3ef405,_0xa4cd57,_0x287c52,_0xf575d0)=>{const _0x556783=_0x338f9d;for(var _0x48f99b=_0xf575d0>0x1?void 0x0:_0xf575d0?ns(_0xa4cd57,_0x287c52):_0xa4cd57,_0x2fa277=_0x3ef405[_0x556783(0x29d)]-0x1,_0x175afa;_0x2fa277>=0x0;_0x2fa277--)(_0x175afa=_0x3ef405[_0x2fa277])&&(_0x48f99b=_0x175afa(_0x48f99b)||_0x48f99b);return _0x48f99b;},ue=(_0x338a80,_0x3d6b29)=>(_0x5be7dc,_0x1d6a7d)=>_0x3d6b29(_0x5be7dc,_0x1d6a7d,_0x338a80);exports[_0x338f9d(0x2b0)]=class extends a[_0x338f9d(0x40d)]{constructor(_0x353b08,_0x1747b2,_0x326ed3){const _0xc908c8=_0x338f9d;super(),this[_0xc908c8(0x381)]=_0x353b08,this['_httpService']=_0x1747b2,this['_configService']=_0x326ed3;}async[_0x338f9d(0x29c)](_0x46fc20,_0x5cdbea,_0x449aa4,..._0x4f7354){const _0x8babc0=_0x338f9d;var _0x42e7e7,_0x233e15,_0x1de0e9,_0x182521;const _0x5a32ab=this[_0x8babc0(0x381)]['getFocusedUnit']();if(!_0x5a32ab)throw new Error(_0x8babc0(0x3a2));const _0x1082e8=((_0x42e7e7=this['_configService'][_0x8babc0(0x419)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x42e7e7:u[_0x8babc0(0x31a)])+'/'+_0x46fc20+_0x8babc0(0x2ec)+_0x5cdbea,_0x518086=new URL(window[_0x8babc0(0x3c7)][_0x8babc0(0x3eb)]),_0x3757b1={'scriptId':_0x46fc20,'runId':(_0x233e15=_0x518086[_0x8babc0(0x29b)][_0x8babc0(0x34c)](_0x8babc0(0x3f4)))!=null?_0x233e15:'','function':_0x5cdbea,'unitId':_0x5a32ab['getUnitId'](),'argsOfFunction':JSON[_0x8babc0(0x2ae)](_0x4f7354),'invokeId':(_0x1de0e9=_0x449aa4[_0x8babc0(0x38c)])!=null?_0x1de0e9:'','executionId':(_0x182521=_0x449aa4[_0x8babc0(0x430)])!=null?_0x182521:''};try{const _0x55fb79=await this['_httpService'][_0x8babc0(0x424)](_0x1082e8,{'body':_0x3757b1});return _0x55fb79[_0x8babc0(0x3a3)]['error']&&_0x55fb79[_0x8babc0(0x3a3)]['error'][_0x8babc0(0x355)]!==Be['OK']?_0x8babc0(0x36e):_0x55fb79[_0x8babc0(0x3a3)][_0x8babc0(0x240)];}catch{return _0x8babc0(0x36e);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x338f9d(0x2d1)]),ue(0x1,a[_0x338f9d(0x388)](G[_0x338f9d(0x19c)])),ue(0x2,a[_0x338f9d(0x2f0)])],exports[_0x338f9d(0x2b0)]),exports[_0x338f9d(0x241)]=xe,exports[_0x338f9d(0x3b4)]=be,exports[_0x338f9d(0x337)]=Pe,exports[_0x338f9d(0x228)]=is,exports[_0x338f9d(0x1f9)]=je;
|