@univerjs-pro/collaboration-client-ui 1.0.2 → 1.0.4
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.css +37 -0
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +32 -0
- package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +21 -0
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +35 -0
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +21 -0
- package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +38 -0
- package/lib/types/services/formula-calculation-guard/util.d.ts +11 -0
- package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +15 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x247c5a=_0x2e9b;(function(_0x5ac71f,_0x4cc541){const _0x3a3105=_0x2e9b,_0x1ae49c=_0x5ac71f();while(!![]){try{const _0x5da43f=-parseInt(_0x3a3105(0x1ec))/0x1*(parseInt(_0x3a3105(0x20c))/0x2)+parseInt(_0x3a3105(0x1d3))/0x3*(parseInt(_0x3a3105(0x3d6))/0x4)+parseInt(_0x3a3105(0x2fb))/0x5+-parseInt(_0x3a3105(0x2b6))/0x6+parseInt(_0x3a3105(0x3ba))/0x7*(-parseInt(_0x3a3105(0x33c))/0x8)+parseInt(_0x3a3105(0x332))/0x9+parseInt(_0x3a3105(0x1b9))/0xa*(parseInt(_0x3a3105(0x1d2))/0xb);if(_0x5da43f===_0x4cc541)break;else _0x1ae49c['push'](_0x1ae49c['shift']());}catch(_0x120bb2){_0x1ae49c['push'](_0x1ae49c['shift']());}}}(_0x29c9,0x2065c));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xc7ece1,CollaborationController as _0x501041,CollaborationSessionService as _0xed7c81,CollaborationSocketService as _0x25c99b,CollaborationStatus as _0x5c157a,CollaborationUIEventId as _0x2b0b3d,CollaborationUIEventService as _0x1327e3,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x41c70c,DEFAULT_WS_SESSION_TICKET_URL as _0x3a4d7e,DataLoaderService as _0x51e8bf,DocCollaborationEntity as _0x4a9a22,ILocalCacheService as _0x1974ac,LOCAL_CACHE_INTERVAL as _0x56be35,LOCAL_CACHE_INTERVAL_KEY as _0x39f139,MemberService as _0x405f4a,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1db53f,SessionStatus as _0x511a18,UnitStatus as _0x258828,UniverCollaborationClientPlugin as _0x1116a6,getLocalCacheKey as _0x98c216}from'@univerjs-pro/collaboration-client';import{COLORS as _0xf528d4,ColorKit as _0x2ac9a9,CommandType as _0x54dfe6,DOC_RANGE_TYPE as _0x26a332,DependentOn as _0x3e9939,Disposable as _0x50ca1f,DisposableCollection as _0x469794,ICommandService as _0x3fa174,IConfigService as _0xdca818,IImageIoService as _0x173c5c,ILocalStorageService as _0x24200d,ILogService as _0x583b3f,IUniverInstanceService as _0x3fd3c3,Inject as _0x3b8ccc,Injector as _0x5c9bca,LocaleService as _0x5a18da,Plugin as _0x50441f,Rectangle as _0x12eda0,RxDisposable as _0x3318cc,ThemeService as _0xbb7758,Tools as _0x55db4d,UniverInstanceType as _0x98e284,Workbook as _0x16e1e6,createIdentifier as _0x44855e,debounce as _0x5bd974,fromEventSubject as _0x56e033,generateRandomId as _0x4a2001,isInternalEditorID as _0x543c0f,merge as _0x1ee81d,mergeOverrideWithDependencies as _0x47a538,registerDependencies as _0x3b0029,toDisposable as _0x265f18,touchDependencies as _0x327d6b}from'@univerjs/core';import{BuiltInUIPart as _0x4fb6b8,IBeforeCloseService as _0x1b0f9c,IMessageService as _0x4a0381,INotificationService as _0x502777,IUIPartsService as _0x4bd601,IUnitPresenceUIAdapterRegistry as _0x5a5714,connectInjector as _0x107421,useDependency as _0x28e5e2,useObservable as _0x47ef38}from'@univerjs/ui';import{BehaviorSubject as _0x24b100,Subject as _0x5896e4,combineLatest as _0x3e4240,debounceTime as _0x166d03,distinctUntilChanged as _0xc32d41,filter as _0x48c179,fromEvent as _0x1412e7,mapTo as _0x13e54e,merge as _0x424375,of as _0x2a2751,shareReplay as _0x28413a,switchMap as _0x34977b,takeUntil as _0x3fa56b,throttle as _0x14b9f0,timer as _0x22ec2d}from'rxjs';import{distinctUntilChanged as _0x5403c2,filter as _0x240473,map as _0x328767,switchMap as _0x51e718,takeUntil as _0x1a5f96,throttleTime as _0x596cdc}from'rxjs/operators';import{Button as _0x58172d,MessageType as _0x2f977e,Tooltip as _0x4a1448,clsx as _0x4a14d0}from'@univerjs/design';import{LoadingMultiIcon as _0x169f56,OffLineIcon as _0x49cce6,OnLineIcon as _0x57556d,WarningIcon as _0x14cc8f}from'@univerjs/icons';import{createElement as _0x30be06,useCallback as _0x6c1b82,useMemo as _0x540e69}from'react';import{jsx as _0x5b3a46,jsxs as _0x10ab35}from'react/jsx-runtime';import{CollaborationEvent as _0x6181db,ISnapshotServerService as _0x3b6c27,ITransformService as _0x2ebb05,RevisionService as _0x49db3a,SnapshotLoadStage as _0x338f29,SnapshotLoadingService as _0x1a827f,UniverCollaborationPlugin as _0x1724e3,isTransformMutationFailure as _0x2be4e3,isTransformMutationsWithChangesetSuccess as _0x10ddcf}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x3df221}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x16bdd0,DocSkeletonManagerService as _0x585056,DocStateChangeManagerService as _0x56aa2a,RichTextEditingMutation as _0x759f54,SetTextSelectionsOperation as _0x4e121a,UniverDocsPlugin as _0x2f83a4}from'@univerjs/docs';import{DocIMEInputManagerService as _0x5beedc,IDocClipboardService as _0x3088c8,NodePositionConvertToCursor as _0x36c330,NodePositionConvertToRectRange as _0x1095f0,SetDocZoomRatioOperation as _0x4186fd,TEXT_RANGE_LAYER_INDEX as _0x7badc3,UniverDocsUIPlugin as _0x74c715}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x52e84a,IRenderManagerService as _0x34d5fc,Rect as _0x52bc18,RegularPolygon as _0x31acbf,SHEET_VIEWPORT_KEY as _0x4bb69c,Shape as _0x522a01,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3f0e13,UniverRenderEnginePlugin as _0x5161e3,Vector2 as _0x3adc07,getColor as _0x2949e8,getDocumentSkeletonColumnPagePathInfo as _0x336b78}from'@univerjs/engine-render';import{HTTPService as _0x47169a,ISocketService as _0x4b4083,UniverNetworkPlugin as _0x3bb077,WebSocketService as _0x3c7443}from'@univerjs/network';import{deserializeRangeWithSheet as _0x264f50,serializeRangeWithSheet as _0x1e4d3b}from'@univerjs/engine-formula';import{EffectRefRangId as _0x4934af,RefRangeService as _0x4485d1,SetSelectionsOperation as _0x21c51f,SetWorksheetActivateCommand as _0x211d66,SheetsSelectionsService as _0x157274,handleDeleteRangeMoveLeft as _0x48fd4e,handleDeleteRangeMoveUp as _0x378cdc,handleIRemoveCol as _0x4f79ac,handleIRemoveRow as _0x3f2774,handleInsertCol as _0xff97dd,handleInsertRangeMoveDown as _0x5cf38c,handleInsertRangeMoveRight as _0x5239d4,handleInsertRow as _0x447949,handleMoveRange as _0x3a5cbb,runRefRangeMutations as _0x25ff6b}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0xfb8c7d,getCoordByCell as _0x3bf5c4,getSheetObject as _0x12b1af}from'@univerjs/sheets-ui';import{ErrorCode as _0x530575}from'@univerjs/protocol';function rn(_0x18854f){const _0x230362=_0x2e9b;switch(_0x18854f){case _0x5c157a[_0x230362(0x315)]:return{'icon':_0x5b3a46(_0x49cce6,{}),'colorClass':_0x230362(0x2ce),'i18nKey':_0x230362(0x23d),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x230362(0x2b8)};case _0x5c157a[_0x230362(0x1b0)]:return{'icon':_0x5b3a46(_0x49cce6,{}),'colorClass':_0x230362(0x3c8),'i18nKey':_0x230362(0x39b),'clickable':!0x1,'indicator':_0x230362(0x2b8)};case _0x5c157a['FETCH_MISS']:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':_0x230362(0x264),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x288)]:return{'icon':_0x5b3a46(_0x57556d,{}),'colorClass':_0x230362(0x2dd),'i18nKey':_0x230362(0x1d6),'clickable':!0x1,'indicator':'static'};case _0x5c157a[_0x230362(0x2a6)]:case _0x5c157a['AWAITING_WITH_PENDING']:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':_0x230362(0x264),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x1f2)]:return{'icon':_0x5b3a46(_0x169f56,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x230362(0x225),'clickable':!0x1,'indicator':_0x230362(0x366)};case _0x5c157a[_0x230362(0x35d)]:return{'icon':_0x5b3a46(_0x57556d,{}),'colorClass':'univer-text-green-500','i18nKey':_0x230362(0x403),'clickable':!0x1,'indicator':_0x230362(0x2b8)};}}function an(_0x4027f4){const _0x4a4509=_0x2e9b;let {status$:_0x5f12c6}=_0x4027f4,_0x1cc1d7=_0x47ef38(_0x5f12c6,_0x5c157a['NOT_COLLAB']),_0x1b2efc=_0x28e5e2(_0x5a18da),_0x482770=_0x28e5e2(_0xed7c81),_0x2fa76d=_0x540e69(()=>rn(_0x1cc1d7),[_0x1cc1d7]),_0x3ada52=_0x1cc1d7!==_0x5c157a['OFFLINE'],_0x2dd196=_0x1b2efc['t'](_0x2fa76d['i18nKey']),_0x377037=_0x2fa76d['tooltipKey']?_0x1b2efc['t'](_0x2fa76d[_0x4a4509(0x1b1)]):_0x2dd196,_0x51651b=_0x6c1b82(()=>{const _0x31cab4=_0x4a4509;_0x3ada52||_0x482770[_0x31cab4(0x22e)]();},[_0x3ada52,_0x482770]),_0x4e0250=_0x6c1b82(_0x144d1a=>{const _0x25b03f=_0x4a4509;!_0x3ada52&&(_0x144d1a[_0x25b03f(0x2f6)]===_0x25b03f(0x21d)||_0x144d1a[_0x25b03f(0x2f6)]==='\x20')&&(_0x144d1a['preventDefault'](),_0x482770[_0x25b03f(0x22e)]());},[_0x3ada52,_0x482770]),_0x14d84c=_0x5b3a46(_0x4a4509(0x1bd),{'className':_0x4a14d0(_0x4a4509(0x1e5),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x2fa76d[_0x4a4509(0x2f9)],{'univer-animate-spin':_0x2fa76d[_0x4a4509(0x221)]===_0x4a4509(0x366),'univer-animate-pulse':_0x2fa76d[_0x4a4509(0x221)]===_0x4a4509(0x40a)}),'aria-hidden':_0x4a4509(0x285),'children':_0x2fa76d[_0x4a4509(0x2ad)]}),_0x18039e=_0x5b3a46(_0x4a4509(0x1bd),{'className':_0x4a14d0('univer-flex\x20univer-items-center\x20univer-justify-center',_0x4a4509(0x2ec),_0x4a4509(0x2d7),_0x4a4509(0x31d),_0x4a4509(0x3b9),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x2fa76d[_0x4a4509(0x270)],'univer-cursor-default':!_0x2fa76d['clickable']}),'children':_0x14d84c});return _0x2fa76d[_0x4a4509(0x270)]?_0x5b3a46(_0x4a1448,{'title':_0x377037,'placement':_0x4a4509(0x381),'children':_0x5b3a46('button',{'type':'button','onClick':_0x51651b,'onKeyDown':_0x4e0250,'className':_0x4a14d0(_0x4a4509(0x38a),_0x4a4509(0x2bd),_0x4a4509(0x1ae),'univer-appearance-none'),'aria-label':_0x2dd196+_0x4a4509(0x2a7)+_0x377037,'role':_0x4a4509(0x1bf),'aria-live':_0x4a4509(0x1bc),'aria-atomic':'true','children':_0x18039e})}):_0x5b3a46(_0x4a1448,{'title':_0x377037,'placement':'bottom','children':_0x5b3a46(_0x4a4509(0x202),{'className':_0x4a14d0('univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-border-none\x20univer-bg-transparent',_0x4a4509(0x1ae)),'aria-label':_0x2dd196,'role':'status','aria-live':'polite','aria-atomic':_0x4a4509(0x285),'children':_0x18039e})});}function W(_0x1ab00b){'@babel/helpers - typeof';const _0xd006ab=_0x2e9b;return W=typeof Symbol==_0xd006ab(0x3cc)&&typeof Symbol['iterator']==_0xd006ab(0x1e8)?function(_0x32f72c){return typeof _0x32f72c;}:function(_0x74068a){const _0x331131=_0xd006ab;return _0x74068a&&typeof Symbol==_0x331131(0x3cc)&&_0x74068a[_0x331131(0x299)]===Symbol&&_0x74068a!==Symbol[_0x331131(0x260)]?_0x331131(0x1e8):typeof _0x74068a;},W(_0x1ab00b);}function on(_0x146b02,_0x37e985){const _0x208f9f=_0x2e9b;if(W(_0x146b02)!=_0x208f9f(0x300)||!_0x146b02)return _0x146b02;var _0x1c5760=_0x146b02[Symbol['toPrimitive']];if(_0x1c5760!==void 0x0){var _0x2212ac=_0x1c5760[_0x208f9f(0x331)](_0x146b02,_0x37e985||_0x208f9f(0x362));if(W(_0x2212ac)!='object')return _0x2212ac;throw TypeError(_0x208f9f(0x290));}return(_0x37e985==='string'?String:Number)(_0x146b02);}function sn(_0x31c5a7){var _0x5188de=on(_0x31c5a7,'string');return W(_0x5188de)=='symbol'?_0x5188de:_0x5188de+'';}function G(_0x1e31a2,_0x3c0390,_0x1d63a8){const _0x19c6a5=_0x2e9b;return(_0x3c0390=sn(_0x3c0390))in _0x1e31a2?Object[_0x19c6a5(0x1fb)](_0x1e31a2,_0x3c0390,{'value':_0x1d63a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e31a2[_0x3c0390]=_0x1d63a8,_0x1e31a2;}function K(_0x5eeaef,_0x54d1e9){return function(_0x5cd856,_0x3995fd){_0x54d1e9(_0x5cd856,_0x3995fd,_0x5eeaef);};}function q(_0x358a09,_0x2422a7,_0x1e0f79,_0x351ff4){const _0x2cbdc7=_0x2e9b;var _0x1c8c2d=arguments['length'],_0x4dc4d6=_0x1c8c2d<0x3?_0x2422a7:_0x351ff4===null?_0x351ff4=Object[_0x2cbdc7(0x334)](_0x2422a7,_0x1e0f79):_0x351ff4,_0x29708e;if(typeof Reflect==_0x2cbdc7(0x300)&&typeof Reflect[_0x2cbdc7(0x1b3)]==_0x2cbdc7(0x3cc))_0x4dc4d6=Reflect[_0x2cbdc7(0x1b3)](_0x358a09,_0x2422a7,_0x1e0f79,_0x351ff4);else{for(var _0x372b42=_0x358a09[_0x2cbdc7(0x23e)]-0x1;_0x372b42>=0x0;_0x372b42--)(_0x29708e=_0x358a09[_0x372b42])&&(_0x4dc4d6=(_0x1c8c2d<0x3?_0x29708e(_0x4dc4d6):_0x1c8c2d>0x3?_0x29708e(_0x2422a7,_0x1e0f79,_0x4dc4d6):_0x29708e(_0x2422a7,_0x1e0f79))||_0x4dc4d6);}return _0x1c8c2d>0x3&&_0x4dc4d6&&Object[_0x2cbdc7(0x1fb)](_0x2422a7,_0x1e0f79,_0x4dc4d6),_0x4dc4d6;}let J=class extends _0x50ca1f{constructor(_0x29ae91,_0x5cfda4,_0x417e42,_0x5d59c5,_0x1ab7ae){const _0x380625=_0x2e9b;super(),this[_0x380625(0x390)]=_0x29ae91,this[_0x380625(0x325)]=_0x5cfda4,this[_0x380625(0x2cd)]=_0x417e42,this[_0x380625(0x3fe)]=_0x5d59c5,this['_presenceAdapterRegistry']=_0x1ab7ae,G(this,_0x380625(0x227),new _0x24b100(_0x5c157a[_0x380625(0x288)])),G(this,'_presenceStatusRegistrations',new Map()),this[_0x380625(0x392)](),this['_initStatusListener'](),this['_initPresenceStatusComponents']();}[_0x247c5a(0x204)](){const _0xcdb968=_0x247c5a;this[_0xcdb968(0x2bb)]['forEach'](_0x15f778=>_0x15f778['dispose']()),this['_presenceStatusRegistrations']['clear'](),this[_0xcdb968(0x227)]['complete'](),super[_0xcdb968(0x204)]();}[_0x247c5a(0x2ee)](){const _0x516566=_0x247c5a;this[_0x516566(0x3a7)](_0x424375(this[_0x516566(0x390)][_0x516566(0x40e)],this[_0x516566(0x390)][_0x516566(0x271)](_0x98e284[_0x516566(0x3b2)]),this['_univerInstanceService'][_0x516566(0x271)](_0x98e284[_0x516566(0x3bd)]))[_0x516566(0x2cc)](_0x328767(()=>cn(this['_univerInstanceService'])),_0x5403c2(),_0x34977b(_0x1bfd08=>_0x1bfd08?this[_0x516566(0x2cd)][_0x516566(0x224)](_0x1bfd08):_0x2a2751(null)),_0x34977b(_0x128ed1=>_0x128ed1?_0x128ed1['status$']:_0x2a2751(_0x5c157a[_0x516566(0x288)])))['subscribe'](_0x30a361=>{const _0x90e5e=_0x516566;this['_status$'][_0x90e5e(0x1c0)](_0x30a361);}));}[_0x247c5a(0x392)](){const _0xb0b112=_0x247c5a;this['disposeWithMe'](this[_0xb0b112(0x3fe)]['registerComponent'](_0x4fb6b8['HEADER_MENU'],()=>_0x107421(ln({'status$':this[_0xb0b112(0x227)]['asObservable']()}),this[_0xb0b112(0x325)])));}[_0x247c5a(0x347)](){const _0x2d9a41=_0x247c5a;let _0x2479c0=this['_presenceAdapterRegistry']['adapters$'][_0x2d9a41(0x2d5)](_0x2e7165=>{const _0x2502e0=_0x2d9a41;this[_0x2502e0(0x1dc)](_0x2e7165);});this[_0x2d9a41(0x3a7)](_0x265f18(()=>_0x2479c0[_0x2d9a41(0x1f6)]()));}[_0x247c5a(0x1dc)](_0x3cbf73){const _0x1eb840=_0x247c5a;let _0x1f6156=new Map(_0x3cbf73['filter'](_0x1a90a7=>_0x1a90a7[_0x1eb840(0x1ff)]!=null)[_0x1eb840(0x1f3)](_0x6de11f=>[_0x6de11f[_0x1eb840(0x2a1)],_0x6de11f]));this[_0x1eb840(0x2bb)]['forEach']((_0x22c0f8,_0x4664fe)=>{const _0x3f4277=_0x1eb840;_0x1f6156[_0x3f4277(0x2ed)](_0x4664fe)||(_0x22c0f8[_0x3f4277(0x204)](),this[_0x3f4277(0x2bb)][_0x3f4277(0x2ea)](_0x4664fe));}),_0x1f6156['forEach']((_0x45d443,_0x4bdb25)=>{const _0x55700e=_0x1eb840;this[_0x55700e(0x2bb)][_0x55700e(0x2ed)](_0x4bdb25)||this[_0x55700e(0x320)](_0x45d443);});}[_0x247c5a(0x320)](_0x1c54a9){const _0x45cbea=_0x247c5a;let _0x1bf75f=_0x1c54a9[_0x45cbea(0x1ff)];if(!_0x1bf75f)return;let _0x1a385a=new _0x469794(),_0x55fc10=new _0x24b100(_0x5c157a[_0x45cbea(0x288)]);_0x1a385a[_0x45cbea(0x23b)](_0x265f18(()=>_0x55fc10['complete']())),_0x1a385a[_0x45cbea(0x23b)](this[_0x45cbea(0x3fe)]['registerComponent'](_0x1bf75f,()=>_0x107421(ln({'status$':_0x55fc10[_0x45cbea(0x3d8)]()}),this[_0x45cbea(0x325)])));let _0xb3c88b=this[_0x45cbea(0x390)]['getCurrentTypeOfUnit$'](_0x1c54a9[_0x45cbea(0x2a1)])[_0x45cbea(0x2cc)](_0x328767(_0x485d6a=>(_0x485d6a==null?void 0x0:_0x485d6a[_0x45cbea(0x308)]())??null),_0x5403c2(),_0x34977b(_0x326ad3=>_0x326ad3?this[_0x45cbea(0x2cd)][_0x45cbea(0x224)](_0x326ad3):_0x2a2751(null)),_0x34977b(_0x156046=>(_0x156046==null?void 0x0:_0x156046['status$'])??_0x2a2751(_0x5c157a['NOT_COLLAB'])))[_0x45cbea(0x2d5)](_0x4fae01=>_0x55fc10['next'](_0x4fae01));_0x1a385a[_0x45cbea(0x23b)](_0x265f18(()=>_0xb3c88b[_0x45cbea(0x1f6)]())),this['_presenceStatusRegistrations']['set'](_0x1c54a9[_0x45cbea(0x2a1)],_0x1a385a);}};J=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0x501041)),K(0x3,_0x4bd601),K(0x4,_0x3b8ccc(_0x5a5714))],J);function cn(_0x38b39d){const _0x35a0dc=_0x247c5a;let _0x3258ce=_0x38b39d['getFocusedUnit'](),_0x2da903=_0x3258ce==null?void 0x0:_0x3258ce[_0x35a0dc(0x308)]();if(_0x2da903&&!_0x543c0f(_0x2da903))return _0x2da903;let _0x4da35b=_0x38b39d['getCurrentUnitOfType'](_0x98e284[_0x35a0dc(0x3b2)]),_0xd56070=_0x4da35b==null?void 0x0:_0x4da35b[_0x35a0dc(0x308)]();if(_0xd56070&&!_0x543c0f(_0xd56070))return _0xd56070;let _0xbd7e69=_0x38b39d['getCurrentUnitOfType'](_0x98e284[_0x35a0dc(0x3bd)]);if(_0xbd7e69)return _0xbd7e69[_0x35a0dc(0x308)]();let _0xf5018e=_0x38b39d[_0x35a0dc(0x250)](_0x98e284[_0x35a0dc(0x3b2)])[_0x35a0dc(0x310)](_0x1859d5=>!_0x543c0f(_0x1859d5[_0x35a0dc(0x308)]()));return _0xf5018e?_0xf5018e['getUnitId']():null;}function ln(_0x1e6c59){let {status$:_0x28526b}=_0x1e6c59;return function(){return _0x5b3a46(an,{'status$':_0x28526b});};}var un=_0x247c5a(0x342),dn=_0x247c5a(0x27b);const Y={'id':_0x247c5a(0x2d6),'type':_0x54dfe6[_0x247c5a(0x28a)],'handler':(_0x246684,_0x3c9a58)=>{const _0x5288fe=_0x247c5a;let _0x4968eb=_0x246684[_0x5288fe(0x211)](_0x5a5714)['get'](_0x3c9a58[_0x5288fe(0x2a1)]);if(!_0x4968eb)return!0x1;switch(_0x3c9a58[_0x5288fe(0x3fa)]['type']){case _0x5288fe(0x21f):return _0x4968eb[_0x5288fe(0x3f8)](_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x394)]),!0x0;case'remove':return _0x4968eb[_0x5288fe(0x1df)](_0x3c9a58[_0x5288fe(0x3fa)]['unitId'],_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x28d)]),!0x0;case'clear':return _0x4968eb['clearRemotePresences'](_0x3c9a58[_0x5288fe(0x3fa)][_0x5288fe(0x399)]),!0x0;default:return!0x1;}}},fn={};let X=class extends _0x3318cc{constructor(_0x2108c4,_0x156fed){const _0x1113d4=_0x247c5a;super(),this[_0x1113d4(0x203)]=_0x2108c4,this['_imageIoService']=_0x156fed,this[_0x1113d4(0x302)]();}['_init'](){const _0x81963e=_0x247c5a;let _0x6ba2=this;this['disposeWithMe'](this['_docClipboardService'][_0x81963e(0x335)]({'onBeforePasteImage':async _0x54935d=>{const _0x53621a=_0x81963e;let _0x16716e=await _0x6ba2[_0x53621a(0x385)][_0x53621a(0x2d0)](_0x54935d);return _0x16716e?{'source':_0x16716e[_0x53621a(0x3aa)],'imageSourceType':_0x16716e[_0x53621a(0x2c4)]}:null;}}));}};X=q([K(0x0,_0x3088c8),K(0x1,_0x173c5c)],X);const pn=['purple.300','jiqing.500','green.600',_0x247c5a(0x380),_0x247c5a(0x28c),_0x247c5a(0x30e)];var mn=class extends _0x50ca1f{constructor(..._0x5c5e2f){const _0xce57a0=_0x247c5a;super(..._0x5c5e2f),G(this,_0xce57a0(0x350),new Map()),G(this,'_colorIndex',0x0);}[_0x247c5a(0x1d4)](_0x20c7d6){const _0x708835=_0x247c5a;if(this[_0x708835(0x350)][_0x708835(0x2ed)](_0x20c7d6))return this[_0x708835(0x350)][_0x708835(0x211)](_0x20c7d6);let _0x13acdd=pn[this[_0x708835(0x243)]];return this[_0x708835(0x243)]=(this[_0x708835(0x243)]+0x1)%pn['length'],this[_0x708835(0x350)]['set'](_0x20c7d6,_0x13acdd),_0x13acdd;}};function hn(_0x144092){const _0x4ec872=_0x247c5a;let _0x408dce='';for(let _0x447492 of _0x144092){let {startOffset:_0x2daa4a,endOffset:_0x5e6df5,isActive:_0x27d49f,rangeType:_0x3e4524,segmentId:_0x11c205,segmentPage:_0x1d0a57}=_0x447492;_0x408dce[_0x4ec872(0x23e)]&&(_0x408dce+=','),_0x408dce+=_0x2daa4a+':'+_0x5e6df5+':'+(_0x27d49f?'1':'0')+':'+_0x3e4524+':'+_0x11c205+':'+_0x1d0a57;}return _0x408dce;}function gn(_0x260cca){const _0x47f3d3=_0x247c5a;let _0x3e3381=_0x260cca[_0x47f3d3(0x2cf)](','),_0x32929d=[];for(let _0x27abfd of _0x3e3381){let [_0x2764b5,_0x1e3f32,_0x29a1ad,_0x316e77,_0x592903,_0x2fd3a4]=_0x27abfd[_0x47f3d3(0x2cf)](':');_0x32929d[_0x47f3d3(0x319)]({'startOffset':Number(_0x2764b5),'endOffset':Number(_0x1e3f32),'collapsed':_0x2764b5===_0x1e3f32,'isActive':_0x29a1ad==='1','rangeType':_0x316e77===_0x26a332[_0x47f3d3(0x393)]?_0x26a332[_0x47f3d3(0x393)]:_0x26a332[_0x47f3d3(0x1fd)],'segmentId':typeof _0x592903=='string'?String(_0x592903):'','segmentPage':Number(_0x2fd3a4??-0x1)});}return _0x32929d[_0x47f3d3(0x2b4)](_0x444fcb=>_0x444fcb[_0x47f3d3(0x3f3)])||(_0x32929d[0x0][_0x47f3d3(0x3f3)]=!0x0),_0x32929d;}var _n=class extends _0x3318cc{constructor(..._0x556a6f){const _0x19225c=_0x247c5a;super(..._0x556a6f),G(this,_0x19225c(0x3cf),new _0x24b100(null)),G(this,_0x19225c(0x312),this[_0x19225c(0x3cf)][_0x19225c(0x3d8)]());}[_0x247c5a(0x26b)](_0x571a8f){const _0x529132=_0x247c5a;let {unitID:_0x3d63f4,memberID:_0x278829,textRanges:_0x38f1f6}=_0x571a8f,_0x330786=hn(_0x38f1f6);if(_0x330786==='')return;let _0x115e0d={'unitID':_0x3d63f4,'memberID':_0x278829,'selection':_0x330786};this['_collabCursorState$'][_0x529132(0x1c0)](_0x115e0d);}};let vn=class extends _0x3318cc{get[_0x247c5a(0x1ba)](){const _0x89892f=_0x247c5a;return this['_cursorInfo$'][_0x89892f(0x379)]();}get[_0x247c5a(0x235)](){const _0x20d153=_0x247c5a;return this['_roomMembers$'][_0x20d153(0x379)]();}constructor(_0x147bf0,_0x4753ef,_0xf0157e,_0x2bc259,_0x1abd58,_0x265150,_0x131f36,_0x25bcfe,_0x2bf14a){const _0x52878d=_0x247c5a;super(),this['unitID']=_0x147bf0,this[_0x52878d(0x29d)]=_0x4753ef,this[_0x52878d(0x325)]=_0xf0157e,this[_0x52878d(0x246)]=_0x2bc259,this['_memberService']=_0x1abd58,this[_0x52878d(0x1e7)]=_0x265150,this[_0x52878d(0x30d)]=_0x131f36,this[_0x52878d(0x390)]=_0x25bcfe,this[_0x52878d(0x3fb)]=_0x2bf14a,G(this,'_online',!0x1),G(this,_0x52878d(0x302),!0x1),G(this,'_cursorInfo$',new _0x24b100(new Map())),G(this,_0x52878d(0x22f),this[_0x52878d(0x212)]['asObservable']()),G(this,'_roomMembers$',new _0x24b100([])),G(this,'roomMembers$',this[_0x52878d(0x30c)][_0x52878d(0x2cc)](_0x166d03(0x12c))),G(this,_0x52878d(0x205),_0x5bd974(_0x2e6d26=>{const _0x480f4b=_0x52878d;let _0x1d314f={'eventID':_0x6181db[_0x480f4b(0x3f6)],'data':{'unitID':this[_0x480f4b(0x29c)],'memberID':this[_0x480f4b(0x29d)][_0x480f4b(0x360)](),'selection':hn(_0x2e6d26)}};this[_0x480f4b(0x29d)][_0x480f4b(0x3e1)](_0x1d314f,this[_0x480f4b(0x29c)]);},0x64));}[_0x247c5a(0x204)](){const _0x4d8468=_0x247c5a;super[_0x4d8468(0x204)](),this[_0x4d8468(0x212)]['next'](new Map()),this[_0x4d8468(0x212)][_0x4d8468(0x36f)](),this[_0x4d8468(0x30c)]['next']([]),this['_roomMembers$']['complete']();}[_0x247c5a(0x284)](){const _0x2b6a1e=_0x247c5a;this[_0x2b6a1e(0x302)]||(this['_init']=!0x0,this['_session'][_0x2b6a1e(0x304)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))['subscribe'](_0x5473e2=>{const _0x144479=_0x2b6a1e;_0x5473e2===_0x511a18['ONLINE']?this[_0x144479(0x1e4)]():this[_0x144479(0x3a8)]();}),this[_0x2b6a1e(0x29d)][_0x2b6a1e(0x382)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))[_0x2b6a1e(0x2d5)](_0x535ea1=>{const _0x44572c=_0x2b6a1e;let _0x4498aa=_0x535ea1[_0x44572c(0x37d)];_0x4498aa===_0x6181db[_0x44572c(0x3f6)]&&this[_0x44572c(0x22d)](_0x535ea1),_0x4498aa===_0x6181db[_0x44572c(0x3db)]&&this[_0x44572c(0x3da)](_0x535ea1);}),this[_0x2b6a1e(0x3a7)](this[_0x2b6a1e(0x3fb)]['onCommandExecuted'](_0x10c9b9=>{const _0x3c2b2c=_0x2b6a1e;let _0x56d536=_0x10c9b9[_0x3c2b2c(0x37c)];_0x56d536!=null&&this[_0x3c2b2c(0x412)]&&_0x10c9b9['id']===_0x4e121a['id']&&_0x56d536[_0x3c2b2c(0x399)]===this[_0x3c2b2c(0x29c)]&&_0x56d536[_0x3c2b2c(0x1ed)]===!0x1&&_0x56d536[_0x3c2b2c(0x3a9)]['length']>0x0&&this['_updateLocalCursor'](_0x56d536[_0x3c2b2c(0x3a9)]);})),this['_syncEditingCollabCursorService'][_0x2b6a1e(0x312)][_0x2b6a1e(0x2cc)](_0x3fa56b(this[_0x2b6a1e(0x40c)]))[_0x2b6a1e(0x2d5)](_0x181ada=>{const _0x1d0c6a=_0x2b6a1e;if((_0x181ada==null?void 0x0:_0x181ada[_0x1d0c6a(0x29c)])!==this['unitID'])return;let _0x595a32={'eventID':_0x6181db[_0x1d0c6a(0x3f6)],'data':_0x181ada};this[_0x1d0c6a(0x22d)](_0x595a32);}),this['disposeWithMe'](this[_0x2b6a1e(0x3fb)][_0x2b6a1e(0x3ce)](_0x452ed0=>{const _0x3048d9=_0x2b6a1e;if(_0x452ed0[_0x3048d9(0x37c)]==null)return;let _0x2ba9c3=_0x452ed0[_0x3048d9(0x37c)];if(_0x452ed0['id']!==_0x759f54['id']||_0x2ba9c3[_0x3048d9(0x399)]!==this[_0x3048d9(0x29c)])return;let _0x33714e={'id':_0x3048d9(0x242),'params':_0x2ba9c3},_0x69f943=this['cursorInfo'];for(let [_0x253c82,_0x15af9c]of _0x69f943){let _0x1e00af={'id':_0x3048d9(0x242),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15af9c[_0x3048d9(0x3a9)]}},_0x542248=this['_transformService'][_0x3048d9(0x3ed)](_0x33714e,_0x1e00af,!0x1);if(_0x2be4e3(_0x542248))throw _0x542248['error'];_0x69f943[_0x3048d9(0x21f)](_0x253c82,{..._0x15af9c,'ranges':_0x542248[_0x3048d9(0x24b)][_0x3048d9(0x37c)]['textRanges']});}queueMicrotask(()=>{const _0x52fb8c=_0x3048d9;this[_0x52fb8c(0x212)][_0x52fb8c(0x1c0)](_0x69f943);});})));}[_0x247c5a(0x22d)](_0x4c732f){const _0x1c4048=_0x247c5a;var _0x33321d;let {memberID:_0x14ba7d,selection:_0x56161c}=_0x4c732f['data'],_0x191d60=gn(_0x56161c),_0x4e4940=((_0x33321d=this[_0x1c4048(0x3f7)][_0x1c4048(0x265)](this[_0x1c4048(0x29c)],_0x14ba7d))==null?void 0x0:_0x33321d['name'])??_0x1c4048(0x352),_0x463d9f={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x14ba7d),'name':_0x4e4940,'ranges':_0x191d60},_0x45d374=this[_0x1c4048(0x1ba)];_0x45d374[_0x1c4048(0x21f)](_0x14ba7d,_0x463d9f),this[_0x1c4048(0x212)][_0x1c4048(0x1c0)](_0x45d374);}[_0x247c5a(0x3da)](_0x193a03){const _0x41ce7b=_0x247c5a;let {memberID:_0x4fbdf9}=_0x193a03['data'],_0x35c858=this[_0x41ce7b(0x1ba)];_0x35c858[_0x41ce7b(0x2ea)](_0x4fbdf9),this[_0x41ce7b(0x212)][_0x41ce7b(0x1c0)](_0x35c858);}[_0x247c5a(0x1e4)](){const _0x495e08=_0x247c5a;var _0xc18e90;if(this[_0x495e08(0x412)]=!0x0,((_0xc18e90=this['_univerInstanceService'][_0x495e08(0x200)]())==null?void 0x0:_0xc18e90[_0x495e08(0x308)]())!==this[_0x495e08(0x29c)])return;let _0x498d5b=this[_0x495e08(0x325)]['get'](_0x16bdd0)[_0x495e08(0x372)]();Array[_0x495e08(0x3ca)](_0x498d5b)&&_0x498d5b[_0x495e08(0x23e)]>0x0&&this[_0x495e08(0x205)](_0x498d5b);}[_0x247c5a(0x3a8)](){const _0xbea32e=_0x247c5a;this[_0xbea32e(0x412)]=!0x1;}};vn=q([K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3b8ccc(_n)),K(0x6,_0x2ebb05),K(0x7,_0x3fd3c3),K(0x8,_0x3fa174)],vn);const yn=()=>{let _0x424796=[],_0x18626b=!0x1;return _0xd11596=>{const _0x5e5438=_0x2e9b;_0x424796[_0x5e5438(0x319)](_0xd11596),_0x18626b||(_0x18626b=!0x0,setTimeout(()=>{const _0x1256f9=_0x5e5438;_0x424796[_0x1256f9(0x409)](_0x2f37b1=>_0x2f37b1()),_0x424796=[],_0x18626b=!0x1;}));};};let bn=class extends _0x3318cc{get[_0x247c5a(0x1ba)](){const _0x52adc8=_0x247c5a;return this[_0x52adc8(0x212)][_0x52adc8(0x379)]();}get['roomMembers'](){const _0x3f08a4=_0x247c5a;return this[_0x3f08a4(0x30c)][_0x3f08a4(0x379)]();}constructor(_0x444a59,_0x29c83f,_0x337ebb,_0x18968c,_0x3414d2,_0x5b47c7,_0x5bc5e8,_0x39845f){const _0x84fbb=_0x247c5a;super(),this[_0x84fbb(0x29c)]=_0x444a59,this[_0x84fbb(0x29d)]=_0x29c83f,this[_0x84fbb(0x325)]=_0x337ebb,this[_0x84fbb(0x246)]=_0x18968c,this[_0x84fbb(0x3f7)]=_0x3414d2,this[_0x84fbb(0x390)]=_0x5b47c7,this[_0x84fbb(0x3fb)]=_0x5bc5e8,this[_0x84fbb(0x2a8)]=_0x39845f,G(this,_0x84fbb(0x412),!0x1),G(this,_0x84fbb(0x302),!0x1),G(this,'_cursorInfo$',new _0x24b100(new Map())),G(this,_0x84fbb(0x22f),this['_cursorInfo$'][_0x84fbb(0x3d8)]()),G(this,_0x84fbb(0x30c),new _0x24b100([])),G(this,_0x84fbb(0x24f),this[_0x84fbb(0x30c)]['pipe'](_0x166d03(0x12c))),G(this,_0x84fbb(0x205),_0x5bd974((_0x3fb7f6,_0x4e9072)=>{const _0x37f0dd=_0x84fbb;let _0x2d0f2d={'eventID':_0x6181db[_0x37f0dd(0x3f6)],'data':{'unitID':this['unitID'],'memberID':this[_0x37f0dd(0x29d)][_0x37f0dd(0x360)](),'selection':_0x1e4d3b(_0x3fb7f6,_0x4e9072[_0x37f0dd(0x2e5)])}};this[_0x37f0dd(0x29d)][_0x37f0dd(0x3e1)](_0x2d0f2d,this[_0x37f0dd(0x29c)]);},0x64));}[_0x247c5a(0x204)](){const _0x543bb1=_0x247c5a;super[_0x543bb1(0x204)](),this[_0x543bb1(0x212)][_0x543bb1(0x1c0)](new Map()),this[_0x543bb1(0x212)][_0x543bb1(0x36f)](),this['_roomMembers$']['next']([]),this[_0x543bb1(0x30c)][_0x543bb1(0x36f)]();}[_0x247c5a(0x284)](){const _0x5f0b6a=_0x247c5a;this['_init']||(this[_0x5f0b6a(0x302)]=!0x0,this['_session'][_0x5f0b6a(0x304)][_0x5f0b6a(0x2cc)](_0x3fa56b(this['dispose$']))[_0x5f0b6a(0x2d5)](_0xda02b5=>{const _0x328485=_0x5f0b6a;_0xda02b5===_0x511a18[_0x328485(0x410)]?this[_0x328485(0x1e4)]():this[_0x328485(0x3a8)]();}),this[_0x5f0b6a(0x29d)]['event$'][_0x5f0b6a(0x2cc)](_0x3fa56b(this[_0x5f0b6a(0x40c)]))[_0x5f0b6a(0x2d5)](_0x7b87e7=>{const _0x2f1c2c=_0x5f0b6a;let _0x5bc778=_0x7b87e7[_0x2f1c2c(0x37d)];_0x5bc778===_0x6181db[_0x2f1c2c(0x3f6)]&&this['_onCursorUpdate'](_0x7b87e7),_0x5bc778===_0x6181db[_0x2f1c2c(0x3db)]&&this['_onCursorDelete'](_0x7b87e7);}),this[_0x5f0b6a(0x387)](),this[_0x5f0b6a(0x3a7)](this['_commandService'][_0x5f0b6a(0x3ce)](_0x31f857=>{const _0x539351=_0x5f0b6a;if(this['_online']&&_0x31f857['id']===_0x21c51f['id']&&_0x31f857[_0x539351(0x37c)][_0x539351(0x399)]===this[_0x539351(0x29c)]){let _0x4654ba=_0x31f857[_0x539351(0x37c)];this[_0x539351(0x205)](_0x4654ba['subUnitId'],_0x4654ba['selections'][0x0]);}})));}['_onCursorUpdate'](_0x516419){const _0x574b67=_0x247c5a;var _0x5cb2a2;let {memberID:_0x142310,selection:_0x3773fb}=_0x516419[_0x574b67(0x231)],{sheetName:_0x1982d3,range:_0x51fe72}=_0x264f50(_0x3773fb),_0xeaea86={'name':((_0x5cb2a2=this[_0x574b67(0x3f7)][_0x574b67(0x265)](this[_0x574b67(0x29c)],_0x142310))==null?void 0x0:_0x5cb2a2[_0x574b67(0x261)])??_0x574b67(0x352),'range':this[_0x574b67(0x307)](_0x1982d3,_0x51fe72),'sheetID':_0x1982d3,'color':this[_0x574b67(0x246)][_0x574b67(0x1d4)](_0x142310),'selection':_0x3773fb},_0x469f34=this[_0x574b67(0x1ba)];_0x469f34[_0x574b67(0x21f)](_0x142310,_0xeaea86),this['_cursorInfo$']['next'](_0x469f34);}[_0x247c5a(0x3da)](_0x394137){const _0x18c0be=_0x247c5a;let {memberID:_0x4c39e8}=_0x394137[_0x18c0be(0x231)],_0x200933=this[_0x18c0be(0x1ba)];_0x200933[_0x18c0be(0x2ea)](_0x4c39e8),this[_0x18c0be(0x212)][_0x18c0be(0x1c0)](_0x200933);}['_getMergeRange'](_0x1577cf,_0x4f33a9){const _0x6f7127=_0x247c5a;var _0x3a9c2c;let _0x5dde5e=(_0x3a9c2c=this['_univerInstanceService']['getUnit'](this[_0x6f7127(0x29c)],_0x98e284[_0x6f7127(0x3bd)]))==null||(_0x3a9c2c=_0x3a9c2c['getSheetBySheetId'](_0x1577cf))==null?void 0x0:_0x3a9c2c[_0x6f7127(0x33d)]();return(_0x5dde5e==null?void 0x0:_0x5dde5e[_0x6f7127(0x310)](_0x30ad20=>_0x12eda0['contains'](_0x30ad20,_0x4f33a9)))||_0x4f33a9;}['_onRefRangeChange'](){const _0x43a1e4=_0x247c5a;let _0x10605b=new _0x469794(),_0x33cfee=yn(),_0x13c74f=()=>{const _0x42442f=_0x2e9b;_0x10605b[_0x42442f(0x204)]();let _0x5e0681=(_0x135432,_0x61cad8,_0x19fa32,_0x2575b4)=>{const _0x4392f0=_0x42442f;let _0xa37fbd=[];switch(_0x135432['id']){case _0x4934af[_0x4392f0(0x305)]:_0xa37fbd=_0x48fd4e(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x1f7)]:_0xa37fbd=_0x378cdc(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x3e2)]:_0xa37fbd=_0xff97dd(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x35f)]:_0xa37fbd=_0x5cf38c(_0x135432,_0x2575b4);break;case _0x4934af['InsertRangeMoveRightCommandId']:_0xa37fbd=_0x5239d4(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x39e)]:_0xa37fbd=_0x447949(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x29a)]:_0xa37fbd=_0x3a5cbb(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x1ca)]:_0xa37fbd=_0x4f79ac(_0x135432,_0x2575b4);break;case _0x4934af[_0x4392f0(0x2f7)]:_0xa37fbd=_0x3f2774(_0x135432,_0x2575b4);}let _0x5f00f5=_0x25ff6b(_0xa37fbd,_0x2575b4),_0xfb56b0=this[_0x4392f0(0x1ba)][_0x4392f0(0x211)](_0x61cad8);if(_0xfb56b0&&_0x5f00f5){let _0x101b6e={..._0xfb56b0,'range':_0x5f00f5};this[_0x4392f0(0x1ba)]['set'](_0x61cad8,_0x101b6e),_0x33cfee(()=>{const _0x18f2e3=_0x4392f0;let _0x166182=this[_0x18f2e3(0x2a8)]['registerRefRange'](_0x5f00f5,_0x2838a5=>(_0x166182['dispose'](),_0x5e0681(_0x2838a5,_0x61cad8,_0x19fa32,_0x5f00f5)));_0x10605b['add'](_0x166182);});}return{'redos':[],'undos':[]};};this[_0x42442f(0x1ba)][_0x42442f(0x409)]((_0x1850d4,_0x44d433)=>{const _0x15fa2e=_0x42442f;let {range:_0x389e51,sheetID:_0x546434}=_0x1850d4,_0x287984=this[_0x15fa2e(0x2a8)][_0x15fa2e(0x34f)](_0x389e51,_0x1ed5bb=>(_0x287984[_0x15fa2e(0x204)](),_0x5e0681(_0x1ed5bb,_0x44d433,_0x546434,_0x389e51)));_0x10605b[_0x15fa2e(0x23b)](_0x287984);});};this[_0x43a1e4(0x3a7)](_0x265f18(this[_0x43a1e4(0x212)][_0x43a1e4(0x2d5)](()=>{_0x13c74f();})));}[_0x247c5a(0x1e4)](){const _0x45253f=_0x247c5a;var _0x551ac6,_0x99df90;if(this[_0x45253f(0x412)]=!0x0,((_0x551ac6=this[_0x45253f(0x390)][_0x45253f(0x200)]())==null?void 0x0:_0x551ac6[_0x45253f(0x308)]())!==this['unitID'])return;let _0x22c05e=(_0x99df90=this[_0x45253f(0x325)][_0x45253f(0x211)](_0x157274)[_0x45253f(0x39a)]())==null?void 0x0:_0x99df90[0x0],_0x1ca859=this[_0x45253f(0x390)][_0x45253f(0x367)](_0x98e284[_0x45253f(0x3bd)])[_0x45253f(0x268)]();_0x22c05e&&_0x1ca859&&this['_updateLocalCursor'](_0x1ca859[_0x45253f(0x411)](),_0x22c05e);}['_toggleOffline'](){this['_online']=!0x1;}};function _0x2e9b(_0x39927a,_0x488fe8){_0x39927a=_0x39927a-0x1a9;const _0x29c94f=_0x29c9();let _0x2e9b70=_0x29c94f[_0x39927a];return _0x2e9b70;}bn=q([K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3fd3c3),K(0x6,_0x3fa174),K(0x7,_0x3b8ccc(_0x4485d1))],bn);let Z=class extends _0x3318cc{constructor(_0x2796bd,_0x2275fa,_0x43a956){const _0x5eb3f8=_0x247c5a;super(),this[_0x5eb3f8(0x390)]=_0x2796bd,this[_0x5eb3f8(0x325)]=_0x2275fa,this[_0x5eb3f8(0x337)]=_0x43a956,G(this,_0x5eb3f8(0x1c7),new Map()),G(this,_0x5eb3f8(0x40f),new _0x5896e4()),this[_0x5eb3f8(0x302)]();}[_0x247c5a(0x204)](){const _0x2b24e1=_0x247c5a;super[_0x2b24e1(0x204)](),this['_entityInit$'][_0x2b24e1(0x36f)](),this[_0x2b24e1(0x1c7)]['forEach'](_0xf2b225=>_0xf2b225[_0x2b24e1(0x204)]());}[_0x247c5a(0x33b)](_0xc3ca58){const _0x590ed9=_0x247c5a;let _0x44455f=this[_0x590ed9(0x1c7)][_0x590ed9(0x211)](_0xc3ca58);return _0x44455f?_0x44455f[_0x590ed9(0x22f)]:this[_0x590ed9(0x40f)][_0x590ed9(0x2cc)](_0x48c179(_0x5a33e5=>_0x5a33e5[_0x590ed9(0x29c)]===_0xc3ca58),_0x34977b(_0x3a6455=>_0x3a6455[_0x590ed9(0x22f)]));}[_0x247c5a(0x302)](){const _0x52bc2b=_0x247c5a;this[_0x52bc2b(0x390)]['getTypeOfUnitAdded$'](_0x98e284[_0x52bc2b(0x3bd)])[_0x52bc2b(0x2cc)](_0x3fa56b(this[_0x52bc2b(0x40c)]))['subscribe'](async _0x281020=>{const _0x1721e3=_0x52bc2b;let _0x277c45=_0x281020[_0x1721e3(0x400)][_0x1721e3(0x308)](),_0xb34516=await this['_startSheetCollabCursor'](_0x277c45);this['_entityInit$'][_0x1721e3(0x1c0)](_0xb34516),this[_0x1721e3(0x1c7)][_0x1721e3(0x21f)](_0x277c45,_0xb34516);}),this[_0x52bc2b(0x390)][_0x52bc2b(0x2a0)](_0x98e284[_0x52bc2b(0x3b2)])[_0x52bc2b(0x2cc)](_0x3fa56b(this[_0x52bc2b(0x40c)]))['pipe'](_0x48c179(_0x4f6100=>!_0x4f6100['unit']['getUnitId']()[_0x52bc2b(0x244)]('__')))['subscribe'](async _0x5650db=>{const _0x513109=_0x52bc2b;let {unit:_0x3ce160}=_0x5650db,_0x5d251d=_0x3ce160[_0x513109(0x308)](),_0x2d7c68=await this[_0x513109(0x301)](_0x5d251d);this[_0x513109(0x40f)][_0x513109(0x1c0)](_0x2d7c68),this['_entities'][_0x513109(0x21f)](_0x5d251d,_0x2d7c68);}),_0x424375(this[_0x52bc2b(0x390)][_0x52bc2b(0x251)](_0x98e284[_0x52bc2b(0x3b2)]),this[_0x52bc2b(0x390)][_0x52bc2b(0x251)](_0x98e284[_0x52bc2b(0x3bd)]))['pipe'](_0x3fa56b(this[_0x52bc2b(0x40c)]))['subscribe'](_0x1616dd=>{const _0x56a954=_0x52bc2b;let _0x1ba324=_0x1616dd[_0x56a954(0x308)](),_0x1a9e7e=this['_entities'][_0x56a954(0x211)](_0x1ba324);_0x1a9e7e&&(_0x1a9e7e[_0x56a954(0x204)](),this['_entities'][_0x56a954(0x2ea)](_0x1ba324));});}async[_0x247c5a(0x23a)](_0x548765){const _0x4c4448=_0x247c5a;let _0xf51c21=await this[_0x4c4448(0x337)][_0x4c4448(0x2bf)](_0x548765),_0x1cc78f=this[_0x4c4448(0x325)][_0x4c4448(0x21a)](bn,_0x548765,_0xf51c21);return _0x1cc78f[_0x4c4448(0x284)](),_0x1cc78f;}async['_startDocCollabCursor'](_0x19996a){const _0x3fde21=_0x247c5a;let _0x4db3f7=await this[_0x3fde21(0x337)]['requireSession'](_0x19996a),_0x3d6305=this[_0x3fde21(0x325)][_0x3fde21(0x21a)](vn,_0x19996a,_0x4db3f7);return _0x3d6305[_0x3fde21(0x284)](),_0x3d6305;}};Z=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0xed7c81))],Z);function xn(_0x3f39da,_0x5bfcc8){const _0x535b87=_0x247c5a;_0x3f39da['save'](),_0x3f39da['font']=_0x535b87(0x384);let _0x21d25e=_0x3f39da[_0x535b87(0x2d2)](_0x5bfcc8)[_0x535b87(0x375)];return _0x3f39da['restore'](),Math[_0x535b87(0x34a)](_0x21d25e+0x8,0xc8);}function Sn(_0x1fa308,_0x4b6ab8){const _0x10c4f9=_0x247c5a;let {radius:_0x4444f5,width:_0x33fdbe,height:_0x318539}=_0x4b6ab8;_0x4444f5??=0x0,_0x33fdbe??=0x1e,_0x318539??=0x1e;let _0x60e587=0x0,_0xf07747=0x0,_0x2aa74b=0x0;_0x60e587=_0xf07747=_0x2aa74b=Math['min'](_0x4444f5,_0x33fdbe/0x2,_0x318539/0x2),_0x1fa308['beginPath'](),_0x1fa308[_0x10c4f9(0x33e)](_0x60e587,0x0),_0x1fa308[_0x10c4f9(0x217)](_0x33fdbe-_0xf07747,0x0),_0x1fa308[_0x10c4f9(0x1b4)](_0x33fdbe-_0xf07747,_0xf07747,_0xf07747,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fa308['lineTo'](_0x33fdbe,_0x318539-_0x2aa74b),_0x1fa308[_0x10c4f9(0x1b4)](_0x33fdbe-_0x2aa74b,_0x318539-_0x2aa74b,_0x2aa74b,0x0,Math['PI']/0x2,!0x1),_0x1fa308[_0x10c4f9(0x217)](0x0,_0x318539),_0x1fa308[_0x10c4f9(0x217)](0x0,_0x60e587),_0x1fa308[_0x10c4f9(0x1b4)](_0x60e587,_0x60e587,_0x60e587,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fa308[_0x10c4f9(0x1f8)](),_0x4b6ab8[_0x10c4f9(0x345)]&&(_0x1fa308[_0x10c4f9(0x286)](),_0x1fa308['fillStyle']=_0x4b6ab8[_0x10c4f9(0x345)],_0x4b6ab8[_0x10c4f9(0x266)]===_0x10c4f9(0x3c6)?_0x1fa308[_0x10c4f9(0x345)](_0x10c4f9(0x3c6)):_0x1fa308[_0x10c4f9(0x345)](),_0x1fa308[_0x10c4f9(0x25b)]());}var Cn=class e extends _0x522a01{constructor(_0x2581ae,_0x397df1){const _0x114f57=_0x247c5a;super(_0x2581ae,_0x397df1),G(this,_0x114f57(0x3b1),void 0x0),G(this,_0x114f57(0x358),void 0x0),this[_0x114f57(0x3b1)]=_0x397df1==null?void 0x0:_0x397df1[_0x114f57(0x3b1)],this[_0x114f57(0x358)]=_0x397df1==null?void 0x0:_0x397df1['text'];}static['drawWith'](_0x2d7e9f,_0x4ea7d1){const _0xf95c35=_0x247c5a;let {text:_0x477af6,color:_0x26ce65}=_0x4ea7d1;_0x2d7e9f[_0xf95c35(0x286)](),_0x2d7e9f['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x4d8f35=_0x2d7e9f[_0xf95c35(0x2d2)](_0x477af6)['width'];if(Sn(_0x2d7e9f,{'height':0x14,'radius':0x4,'width':xn(_0x2d7e9f,_0x477af6),'fill':_0x26ce65,'evented':!0x1}),_0x2d7e9f['fillStyle']=_0xf95c35(0x1c9),_0x4d8f35>0xc0){let _0x22fc76='',_0x1eed1e=0x0;for(let _0x3f3d21 of _0x477af6){let _0x468e58=_0x2d7e9f['measureText'](_0x3f3d21)[_0xf95c35(0x375)];if(_0x1eed1e+_0x468e58<=0xc0-_0x2d7e9f['measureText'](_0xf95c35(0x1f0))[_0xf95c35(0x375)])_0x22fc76+=_0x3f3d21,_0x1eed1e+=_0x468e58;else{_0x22fc76+=_0xf95c35(0x1f0);break;}}_0x2d7e9f[_0xf95c35(0x1d8)](_0x22fc76,0x4,0xf);}else _0x2d7e9f[_0xf95c35(0x1d8)](_0x477af6,0x4,0xf);_0x2d7e9f[_0xf95c35(0x25b)]();}[_0x247c5a(0x2ef)](_0x6e8bd5){e['drawWith'](_0x6e8bd5,this);}};const wn=_0x247c5a(0x3bf);var Tn=class{constructor(_0x17aa4a,_0x3988b1,_0x3c7ba3,_0x44c47d){const _0x556232=_0x247c5a;this[_0x556232(0x1e1)]=_0x17aa4a,this['_scene']=_0x3988b1,this['_docSkeleton']=_0x3c7ba3,this[_0x556232(0x38f)]=_0x44c47d,G(this,'_shapes',[]),G(this,'_anchor',null),G(this,_0x556232(0x32c),null),G(this,_0x556232(0x2f8),null),G(this,_0x556232(0x35a),null),G(this,'_eventUnsubscribe',null),this[_0x556232(0x1ad)]();}set[_0x247c5a(0x1eb)](_0x4061f3){const _0x129ac5=_0x247c5a;_0x4061f3?(this['_anchorDot']&&this[_0x129ac5(0x2f8)][_0x129ac5(0x3b5)](),this[_0x129ac5(0x32c)]&&this[_0x129ac5(0x32c)][_0x129ac5(0x30a)]()):(this['_anchorDot']&&this[_0x129ac5(0x2f8)][_0x129ac5(0x30a)](),this['_textBubble']&&this[_0x129ac5(0x32c)][_0x129ac5(0x3b5)]());}[_0x247c5a(0x204)](){const _0x2f1e97=_0x247c5a;for(let _0x3a528a of this[_0x2f1e97(0x365)])_0x3a528a[_0x2f1e97(0x204)]();this['_textBubble']&&this['_textBubble'][_0x2f1e97(0x204)](),this[_0x2f1e97(0x2f8)]&&this['_anchorDot'][_0x2f1e97(0x204)](),this[_0x2f1e97(0x2c1)]&&this['_anchor']['dispose'](),this[_0x2f1e97(0x3c5)]&&this[_0x2f1e97(0x3c5)]();}[_0x247c5a(0x1ad)](){const _0x46dcc4=_0x247c5a;let {_docSkeleton:_0x552c41,_document:_0x190e01}=this,{color:_0x592a50,name:_0x19ff33,ranges:_0x1e8cd4}=this[_0x46dcc4(0x1e1)],_0x26174e=_0x190e01['getOffsetConfig'](),{docsLeft:_0x4550e4,docsTop:_0x556317}=_0x26174e,_0x196d4c=new _0x36c330(_0x26174e,_0x552c41);for(let {startOffset:_0x1395b5,endOffset:_0x2dfc33,rangeType:_0xec8895,segmentId:_0x29b22f,segmentPage:_0x1586ed,collapsed:_0x2b9e6f,isActive:_0x1b340c}of _0x1e8cd4){let _0x8c59c8=_0x552c41[_0x46dcc4(0x3eb)](_0x1395b5,!0x0,_0x29b22f,_0x1586ed),_0x445d24=_0x552c41[_0x46dcc4(0x3eb)](_0x2dfc33,!0x0,_0x29b22f,_0x1586ed);_0x445d24??=_0x552c41[_0x46dcc4(0x3eb)](_0x2dfc33-0x1,!0x1,_0x29b22f,_0x1586ed);let _0x45c6bf=En(_0x8c59c8,_0x445d24);if(_0x1b340c&&_0x45c6bf['canRenderAnchor']){let {contentBoxPointGroup:_0xf1b6d8}=_0x196d4c[_0x46dcc4(0x37a)](_0x445d24,_0x445d24);if(_0xf1b6d8[_0x46dcc4(0x23e)]===0x0)continue;this[_0x46dcc4(0x237)](_0x592a50,_0xf1b6d8,_0x4550e4,_0x556317,_0x19ff33),this['_eventUnsubscribe']=this[_0x46dcc4(0x282)]();}if(_0x8c59c8&&_0x445d24){if(_0xec8895===_0x26a332[_0x46dcc4(0x1fd)]){let {pointGroup:_0x5d44f6}=new _0x1095f0(_0x26174e,_0x552c41)[_0x46dcc4(0x37a)](_0x8c59c8,_0x445d24)??{};if(_0x5d44f6==null||_0x5d44f6[_0x46dcc4(0x23e)]===0x0)continue;this[_0x46dcc4(0x292)](_0x592a50,_0x5d44f6,_0x4550e4,_0x556317);}else{if(!_0x2b9e6f&&_0x45c6bf[_0x46dcc4(0x29e)]){let {borderBoxPointGroup:_0x24dcbd}=_0x196d4c[_0x46dcc4(0x37a)](_0x8c59c8,_0x445d24);if(_0x24dcbd['length']===0x0)continue;this[_0x46dcc4(0x31f)](_0x592a50,_0x24dcbd,_0x4550e4,_0x556317);}}}}}['_drawAnchor'](_0x381a06,_0x1dfda5,_0x319729,_0x52439e,_0x57b5aa){const _0x1435f6=_0x247c5a;let {left:_0x54c62e,top:_0x5d967a,height:_0x2bffa3}=this[_0x1435f6(0x3df)](_0x1dfda5),_0x1de0a2=1.5/this['_getScale'](),_0x27a757=new _0x52bc18(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e,'height':_0x2bffa3,'width':1.5,'fill':_0x381a06||_0x2949e8(_0xf528d4[_0x1435f6(0x373)],0x0),'strokeWidth':_0x1de0a2,'stroke':_0x1435f6(0x27a),'evented':!0x0});this[_0x1435f6(0x2c1)]=_0x27a757,this['_scene'][_0x1435f6(0x207)](_0x27a757,_0x7badc3);let _0x376cdb=new _0x52bc18(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e-0x2,'height':0x4,'width':0x4,'fill':_0x381a06||_0x2949e8(_0xf528d4[_0x1435f6(0x373)],0x0),'strokeWidth':0x0,'stroke':_0x381a06||_0x2949e8(_0xf528d4['black'],0x0),'evented':!0x1});this[_0x1435f6(0x2f8)]=_0x376cdb,this[_0x1435f6(0x40b)][_0x1435f6(0x207)](_0x376cdb,_0x7badc3);let _0x2c0f44=new Cn(wn+_0x4a2001(0x6),{'left':_0x54c62e+_0x319729-_0x1de0a2,'top':_0x5d967a+_0x52439e-0x14,'text':_0x57b5aa,'color':_0x381a06});this[_0x1435f6(0x32c)]=_0x2c0f44,this[_0x1435f6(0x40b)][_0x1435f6(0x207)](_0x2c0f44,_0x7badc3),this[_0x1435f6(0x1eb)]=!0x1;}[_0x247c5a(0x282)](){const _0x5604fb=_0x247c5a;let _0x29e84a=this[_0x5604fb(0x2c1)]['onPointerEnter$'][_0x5604fb(0x2af)](()=>{const _0x5e0140=_0x5604fb;this[_0x5e0140(0x1eb)]=!0x0;}),_0x30bd89=this[_0x5604fb(0x2c1)][_0x5604fb(0x2ae)]['subscribeEvent'](()=>{const _0x2b4f28=_0x5604fb;this[_0x2b4f28(0x35a)]&&clearTimeout(this[_0x2b4f28(0x35a)]),this[_0x2b4f28(0x35a)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x224578=_0x5604fb;_0x29e84a[_0x224578(0x1f6)](),_0x30bd89[_0x224578(0x1f6)]();};}[_0x247c5a(0x31f)](_0x3c07e1,_0x4667e5,_0x89f4c3,_0x16f3ea){const _0x2f63fa=_0x247c5a;let _0x51ce6b=0.2,_0xb12a9a=new _0x2ac9a9(_0x3c07e1)[_0x2f63fa(0x1ea)](_0x51ce6b)['toRgbString'](),_0x2c49da=new _0x31acbf(_0x2f63fa(0x34e)+_0x4a2001(0x6),{'pointsGroup':_0x4667e5,'fill':_0xb12a9a||_0x2949e8(_0xf528d4['black'],_0x51ce6b),'left':_0x89f4c3,'top':_0x16f3ea,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f63fa(0x365)][_0x2f63fa(0x319)](_0x2c49da),this['_scene'][_0x2f63fa(0x207)](_0x2c49da,_0x7badc3);}[_0x247c5a(0x292)](_0xc5f8a4,_0x3c5c6e,_0x32fd28,_0x5297b8){const _0x3507a4=_0x247c5a;let _0x4af16f=0.2,_0x260784=new _0x2ac9a9(_0xc5f8a4)[_0x3507a4(0x1ea)](_0x4af16f)['toRgbString'](),_0x168966=new _0x31acbf(_0x3507a4(0x1f5)+_0x4a2001(0x6),{'pointsGroup':_0x3c5c6e,'fill':_0x260784||_0x2949e8(_0xf528d4['black'],_0x4af16f),'left':_0x32fd28,'top':_0x5297b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3507a4(0x365)][_0x3507a4(0x319)](_0x168966),this[_0x3507a4(0x40b)]['addObject'](_0x168966,_0x7badc3);}[_0x247c5a(0x3df)](_0x47c90d){let _0x5f4326=_0x47c90d[0x0],_0x3229b9=_0x5f4326[0x0],_0x315f32=_0x5f4326[0x2],{x:_0x3d93cf,y:_0xc25aca}=_0x3229b9,{x:_0x1ac5cf,y:_0xe12db0}=_0x315f32;return{'left':_0x3d93cf,'top':_0xc25aca,'width':_0x1ac5cf-_0x3d93cf,'height':_0xe12db0-_0xc25aca};}['_getScale'](){const _0x21aa61=_0x247c5a;let {scaleX:_0x9a3dc4,scaleY:_0x1b8199}=this[_0x21aa61(0x40b)][_0x21aa61(0x3c7)]();return Math['max'](_0x9a3dc4,_0x1b8199);}};function En(_0x276376,_0x4250fb){const _0x12c994=_0x247c5a;if(!_0x4250fb)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x276376||_0x276376[_0x12c994(0x24e)]!==_0x4250fb[_0x12c994(0x24e)]||(_0x276376['pageType']===_0x52e84a[_0x12c994(0x405)]||_0x276376[_0x12c994(0x24e)]===_0x52e84a[_0x12c994(0x29b)])&&_0x276376[_0x12c994(0x336)]!==_0x4250fb[_0x12c994(0x336)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x2f269b=_0x336b78(_0x276376),_0x41023c=_0x336b78(_0x4250fb);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x2f269b==null||_0x41023c==null?_0x2f269b==null&&_0x41023c==null:_0x2f269b[_0x12c994(0x3dc)]===_0x41023c['pageIndex']&&_0x2f269b['columnGroupId']===_0x41023c[_0x12c994(0x311)]&&_0x2f269b[_0x12c994(0x1dd)]===_0x41023c[_0x12c994(0x1dd)]};}let Dn=class extends _0x3318cc{constructor(_0xa074cc,_0x266782,_0x5989eb,_0x50587c,_0x1b0069){const _0x2b8441=_0x247c5a;super(),this[_0x2b8441(0x31e)]=_0xa074cc,this['_docSkeletonManagerService']=_0x266782,this[_0x2b8441(0x2b1)]=_0x5989eb,this[_0x2b8441(0x3fb)]=_0x50587c,this['_themeService']=_0x1b0069,G(this,_0x2b8441(0x24d),[]),G(this,_0x2b8441(0x313),[]),this[_0x2b8441(0x302)]();}[_0x247c5a(0x302)](){const _0x4165e0=_0x247c5a;let _0x51d622=this[_0x4165e0(0x31e)][_0x4165e0(0x399)],_0x15a508=this[_0x4165e0(0x1c1)];this[_0x4165e0(0x3a7)](_0x3e4240([this[_0x4165e0(0x2b1)][_0x4165e0(0x33b)](_0x51d622),this[_0x4165e0(0x306)][_0x4165e0(0x3b3)]])[_0x4165e0(0x2cc)](_0x328767(([_0x1413ea,_0x1fd8d7])=>({'skeleton':_0x15a508[_0x4165e0(0x329)](),'cursors':[..._0x1413ea[_0x4165e0(0x35e)]()][_0x4165e0(0x27e)](_0x3f111d=>({..._0x3f111d,'color':this[_0x4165e0(0x306)]['getColorFromTheme'](_0x3f111d[_0x4165e0(0x3b1)])}))})))[_0x4165e0(0x2d5)](_0x1463ed=>{const _0x3bf38f=_0x4165e0;if(this[_0x3bf38f(0x363)](),_0x1463ed){let {skeleton:_0x4083a4,cursors:_0xbf333b}=_0x1463ed;this[_0x3bf38f(0x1ab)](_0x4083a4,_0xbf333b);}})),this['_initResize'](),this[_0x4165e0(0x1e0)]();}[_0x247c5a(0x1ab)](_0x3038ab,_0x514fb6){const _0x29a192=_0x247c5a;let {scene:_0x1b0391,mainComponent:_0x4a4e11}=this[_0x29a192(0x31e)],_0x391af6=_0x514fb6['map'](_0xc65482=>new Tn(_0xc65482,_0x1b0391,_0x3038ab,_0x4a4e11));this[_0x29a192(0x24d)]=_0x391af6,this[_0x29a192(0x313)]=_0x514fb6;}[_0x247c5a(0x3e0)](){const _0x2ce561=_0x247c5a;this[_0x2ce561(0x363)]();let {scene:_0x4239b5,mainComponent:_0x26ce47}=this[_0x2ce561(0x31e)],_0x3601db=this['_docSkeletonManagerService']['getSkeleton'](),_0x423d52=this['_cursors'][_0x2ce561(0x1f3)](_0x308761=>new Tn(_0x308761,_0x4239b5,_0x3601db,_0x26ce47));this[_0x2ce561(0x24d)]=_0x423d52;}['_removeCollabCursors'](){const _0x453616=_0x247c5a;this['_cursorShapes'][_0x453616(0x409)](_0x2f40ae=>_0x2f40ae[_0x453616(0x204)]()),this[_0x453616(0x24d)]=[];}[_0x247c5a(0x1e0)](){const _0x5c5ca9=_0x247c5a;let _0x460335=[_0x4186fd['id']];this['disposeWithMe'](this['_commandService'][_0x5c5ca9(0x3ce)](_0xe2e71c=>{const _0x3c2dbc=_0x5c5ca9;_0x460335[_0x3c2dbc(0x2f4)](_0xe2e71c['id'])&&_0xe2e71c[_0x3c2dbc(0x37c)][_0x3c2dbc(0x399)]===this[_0x3c2dbc(0x31e)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x247c5a(0x3ad)](){const _0x447a35=_0x247c5a;this[_0x447a35(0x3a7)](_0x56e033(this[_0x447a35(0x31e)]['engine'][_0x447a35(0x259)])[_0x447a35(0x2cc)](_0x240473(_0x45ad23=>_0x45ad23[_0x447a35(0x2d8)]===_0x3f0e13[_0x447a35(0x31a)]),_0x596cdc(0x10))[_0x447a35(0x2d5)](()=>{const _0x34edb6=_0x447a35;this[_0x34edb6(0x3e0)]();}));}};Dn=q([K(0x1,_0x3b8ccc(_0x585056)),K(0x2,_0x3b8ccc(Z)),K(0x3,_0x3fa174),K(0x4,_0x3b8ccc(_0xbb7758))],Dn);var On=class extends _0x522a01{constructor(_0x5de9d7,_0x483e87){const _0x462381=_0x247c5a;super(_0x5de9d7,_0x483e87),G(this,_0x462381(0x339),void 0x0),G(this,_0x462381(0x34d),!0x1),G(this,_0x462381(0x2f3),void 0x0),G(this,_0x462381(0x1de),''),G(this,_0x462381(0x26f),_0x462381(0x2ac)),G(this,_0x462381(0x2a3),void 0x0),G(this,'_showText',void 0x0),G(this,'_highlight',void 0x0),G(this,'_highlightSecond',0x4),G(this,'_blinkTimer',void 0x0),G(this,_0x462381(0x1b8),void 0x0),G(this,_0x462381(0x3ac),!0x0),G(this,'_offsetY',0x0),G(this,_0x462381(0x254),_0x462381(0x2cb)),_0x483e87&&(this[_0x462381(0x3e8)](_0x483e87),_0x483e87[_0x462381(0x32e)]&&(_0x483e87['highlightSecond']??this[_0x462381(0x2a9)])&&this['_startBlinking'](_0x483e87[_0x462381(0x263)]??this[_0x462381(0x2a9)])),this[_0x462381(0x258)][_0x462381(0x2af)](()=>this[_0x462381(0x3e8)]({'hovered':!0x0})),this[_0x462381(0x2ae)][_0x462381(0x2af)](()=>this[_0x462381(0x3e8)]({'hovered':!0x1}));}[_0x247c5a(0x348)](_0x2d51dd){this['_offsetY']=_0x2d51dd;}[_0x247c5a(0x3e8)](_0x127ee2){const _0x2f958a=_0x247c5a;this[_0x2f958a(0x339)]=_0x127ee2[_0x2f958a(0x3b1)]??this[_0x2f958a(0x339)],this['_hovered']=_0x127ee2[_0x2f958a(0x1d9)]??this[_0x2f958a(0x34d)],this[_0x2f958a(0x2f3)]=_0x127ee2[_0x2f958a(0x2e5)]??this['_range'],this['_name']=_0x127ee2['name']??this[_0x2f958a(0x1de)],this[_0x2f958a(0x26f)]=_0x127ee2[_0x2f958a(0x25c)]??this['_labelPosition'],this['_backgroundColor']=_0x127ee2[_0x2f958a(0x3ef)]??this['_backgroundColor'],this[_0x2f958a(0x3f0)]=_0x127ee2['showText']??this[_0x2f958a(0x3f0)],this[_0x2f958a(0x254)]=_0x127ee2[_0x2f958a(0x3c0)]??this[_0x2f958a(0x254)],_0x127ee2[_0x2f958a(0x263)]!==void 0x0&&(this[_0x2f958a(0x2a9)]=_0x127ee2[_0x2f958a(0x263)]),_0x127ee2[_0x2f958a(0x32e)]!==void 0x0&&(this['_highlight']=_0x127ee2['highlight']),_0x127ee2[_0x2f958a(0x228)]!==void 0x0&&(this[_0x2f958a(0x3dd)]=_0x127ee2[_0x2f958a(0x228)]),this[_0x2f958a(0x402)]({'width':_0x127ee2[_0x2f958a(0x375)],'height':_0x127ee2['height']});}[_0x247c5a(0x2e9)](_0x2e4866){const _0x188870=_0x247c5a;let {row:_0x23ef0e,column:_0x5bd6e0}=_0x2e4866;if(_0x23ef0e>=this[_0x188870(0x2f3)][_0x188870(0x1da)]&&_0x23ef0e<=this[_0x188870(0x2f3)][_0x188870(0x3ee)]&&_0x5bd6e0>=this[_0x188870(0x2f3)][_0x188870(0x321)]&&_0x5bd6e0<=this[_0x188870(0x2f3)][_0x188870(0x1be)]){this[_0x188870(0x3e8)]({'hovered':!0x0});return;}this[_0x188870(0x3e8)]({'hovered':!0x1});}['_startBlinking'](_0x5e5611){const _0x181fdb=_0x247c5a;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this[_0x181fdb(0x1b8)]=window['setInterval'](()=>{const _0x490a5a=_0x181fdb;this['_isBlinkVisible']=!this[_0x490a5a(0x3ac)],this[_0x490a5a(0x220)](!0x0);},0x1f4),this[_0x181fdb(0x353)]=window[_0x181fdb(0x1c8)](()=>{const _0x36fb99=_0x181fdb;this[_0x36fb99(0x3d1)](),this[_0x36fb99(0x3ac)]=!0x0,this[_0x36fb99(0x220)](!0x0);},_0x5e5611*0x3e8);}[_0x247c5a(0x3d1)](){const _0x464823=_0x247c5a;this[_0x464823(0x1b8)]&&=(window[_0x464823(0x2d4)](this[_0x464823(0x1b8)]),void 0x0),this[_0x464823(0x353)]&&=(window[_0x464823(0x249)](this[_0x464823(0x353)]),void 0x0);}['triggerDblclick'](_0x328afd){return!0x1;}['dispose'](){const _0xf2e5d6=_0x247c5a;this[_0xf2e5d6(0x3d1)](),super[_0xf2e5d6(0x204)]();}[_0x247c5a(0x2ef)](_0x2de793){const _0x1c4220=_0x247c5a;let _0x4c5383=this[_0x1c4220(0x339)],_0xb96973=this[_0x1c4220(0x2a3)];if(this[_0x1c4220(0x2ca)]&&!this[_0x1c4220(0x3ac)]&&(_0x4c5383=this[_0x1c4220(0x341)](this[_0x1c4220(0x339)]),_0xb96973=this['_backgroundColor']?this['_getLighterColor'](this[_0x1c4220(0x2a3)]):void 0x0),_0x52bc18[_0x1c4220(0x374)](_0x2de793,{'width':this[_0x1c4220(0x375)],'height':this[_0x1c4220(0x247)],'strokeWidth':this[_0x1c4220(0x413)]||1.5,'stroke':_0x4c5383,'evented':!0x1,'fill':_0xb96973}),this[_0x1c4220(0x34d)]||this[_0x1c4220(0x3f0)]){_0x2de793[_0x1c4220(0x286)]();let _0x213025=this[_0x1c4220(0x254)]===_0x1c4220(0x240)?-xn(_0x2de793,this['_name']):this[_0x1c4220(0x375)];_0x2de793[_0x1c4220(0x3e3)](0x1,0x0,0x0,0x1,_0x213025,(this[_0x1c4220(0x26f)]===_0x1c4220(0x381)?0x0:-0x14)+(this[_0x1c4220(0x3dd)]??0x0)),Cn[_0x1c4220(0x374)](_0x2de793,{'text':this[_0x1c4220(0x1de)],'color':_0x4c5383}),_0x2de793[_0x1c4220(0x25b)]();}}['_getLighterColor'](_0x5ab84e){const _0x4a361d=_0x247c5a;return _0x5ab84e[_0x4a361d(0x244)]('#')?'rgba('+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x1,0x3),0x10)+',\x20'+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x3,0x5),0x10)+',\x20'+Number[_0x4a361d(0x2c7)](_0x5ab84e[_0x4a361d(0x3af)](0x5,0x7),0x10)+_0x4a361d(0x1e9):_0x5ab84e[_0x4a361d(0x244)]('rgba')?_0x5ab84e[_0x4a361d(0x322)](/[\d.]+\)$/g,_0x4a361d(0x248)):_0x5ab84e[_0x4a361d(0x244)]('rgb')?_0x5ab84e[_0x4a361d(0x322)]('rgb',_0x4a361d(0x406))[_0x4a361d(0x322)](')',_0x4a361d(0x1e9)):_0x5ab84e;}};let kn=class extends _0x3318cc{constructor(_0x37efa2,_0x2954c6,_0x174170,_0x54ce55){const _0xc92138=_0x247c5a;super(),this[_0xc92138(0x31e)]=_0x37efa2,this['_sheetSkeletonManagerService']=_0x2954c6,this[_0xc92138(0x2b1)]=_0x174170,this[_0xc92138(0x306)]=_0x54ce55,G(this,_0xc92138(0x313),new Set()),G(this,'_lastPointer',null),G(this,_0xc92138(0x291),null),this[_0xc92138(0x302)]();}[_0x247c5a(0x302)](){const _0x2a4188=_0x247c5a;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2a4188(0x2cc)](_0x1a5f96(this[_0x2a4188(0x40c)]),_0x51e718(_0x12868b=>{const _0x1996a5=_0x2a4188;if(_0x12868b){let _0x4bf54e=_0x12868b[_0x1996a5(0x229)];return _0x3e4240(this[_0x1996a5(0x2b1)][_0x1996a5(0x33b)](this['_context'][_0x1996a5(0x399)]),this[_0x1996a5(0x306)]['currentTheme$'])[_0x1996a5(0x2cc)](_0x328767(([_0x14c7af,_0x2ddb14])=>{let _0x183e4e=new Map();return _0x14c7af['forEach']((_0x490126,_0x45c88d)=>{const _0x10017b=_0x2e9b;if(_0x490126['sheetID']===_0x4bf54e){let _0x944228={..._0x490126};_0x944228[_0x10017b(0x3b1)]=this['_themeService'][_0x10017b(0x26a)](_0x490126['color']),_0x183e4e[_0x10017b(0x21f)](_0x45c88d,_0x944228);}}),{'skeleton':_0x12868b,'cursors':_0x183e4e};}));}return _0x2a2751({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5bbacf,cursors:_0x3d6275})=>{const _0x5cca3d=_0x2a4188;this[_0x5cca3d(0x363)](),_0x5bbacf&&this['_updateCollabCursors'](_0x5bbacf,_0x3d6275);}),this[_0x2a4188(0x3a7)](this['_sheetSkeletonManagerService'][_0x2a4188(0x236)][_0x2a4188(0x2cc)](_0x1a5f96(this['dispose$']))['subscribe'](_0x30538c=>{const _0x586a7a=_0x2a4188;var _0x25d60e;if(_0x30538c==null)return;(_0x25d60e=this[_0x586a7a(0x291)])==null||_0x25d60e[_0x586a7a(0x1f6)](),this[_0x586a7a(0x291)]=null;let {skeleton:_0x50a801}=_0x30538c,{scene:_0x1c3bf9}=this['_context'];this[_0x586a7a(0x291)]=_0x1c3bf9[_0x586a7a(0x226)]['subscribeEvent'](_0x5bd974(_0x3bb3f2=>{const _0x5a1879=_0x586a7a;var _0x494e55,_0x2ad3c7;let {offsetX:_0x3c25d4,offsetY:_0x4d2afb}=_0x3bb3f2,{x:_0x3e3024,y:_0xa03481}=_0x1c3bf9[_0x5a1879(0x283)](_0x3adc07[_0x5a1879(0x3b8)]([_0x3c25d4,_0x4d2afb])),{scaleX:_0x64c65f,scaleY:_0x13c4e0}=_0x1c3bf9[_0x5a1879(0x3c7)](),_0x2216fc=_0x1c3bf9['getViewport'](_0x4bb69c[_0x5a1879(0x22a)]),_0x26f004=_0x1c3bf9[_0x5a1879(0x21e)](_0x3adc07['FromArray']([_0x3e3024,_0xa03481]),_0x2216fc),_0x4939a5=_0x50a801[_0x5a1879(0x26e)](_0x3c25d4,_0x4d2afb,_0x64c65f,_0x13c4e0,_0x26f004);(((_0x494e55=this['_lastPointer'])==null?void 0x0:_0x494e55[_0x5a1879(0x3e4)])!==_0x4939a5[_0x5a1879(0x3e4)]||((_0x2ad3c7=this['_lastPointer'])==null?void 0x0:_0x2ad3c7[_0x5a1879(0x25d)])!==_0x4939a5[_0x5a1879(0x25d)])&&this[_0x5a1879(0x313)][_0x5a1879(0x409)](_0x5dd453=>{const _0x51e5eb=_0x5a1879;_0x5dd453[_0x51e5eb(0x2e9)](_0x4939a5);});},0x64));})),this[_0x2a4188(0x3a7)](_0x265f18(()=>{const _0x138713=_0x2a4188;var _0x2e8bfa;(_0x2e8bfa=this[_0x138713(0x291)])==null||_0x2e8bfa[_0x138713(0x1f6)](),this[_0x138713(0x291)]=null;}));}[_0x247c5a(0x1ab)](_0x2d25cb,_0x4bb140){const _0x1db468=_0x247c5a;let _0x154aa4=this['_sheetSkeletonManagerService'][_0x1db468(0x355)]();if(!_0x154aa4)return;let _0x5d732c=this[_0x1db468(0x1fa)]();if(!_0x5d732c)return;this[_0x1db468(0x313)][_0x1db468(0x409)](_0xbaf683=>{_0xbaf683['makeDirty']();});let {scene:_0x1d0ed8}=_0x5d732c,_0x5b8077=An(Array[_0x1db468(0x287)](_0x4bb140[_0x1db468(0x35e)]()))[_0x1db468(0x1f3)](_0x4b1f92=>{const _0x438684=_0x1db468;let {color:_0x3936fd,range:_0x53c1b9,name:_0x1ec014,selection:_0x507243,sheetID:_0x1ea6a7}=_0x4b1f92,{startColumn:_0x4302ed,startRow:_0x3e3d60,endColumn:_0x4691f4,endRow:_0x2547e2}=_0x53c1b9,_0x1eb38d=_0x3bf5c4(_0x3e3d60,_0x4302ed,_0x1d0ed8,_0x154aa4),_0x1033dc=_0x3bf5c4(_0x2547e2,_0x4691f4,_0x1d0ed8,_0x154aa4),{columnHeaderHeightAndMarginTop:_0x4b2138}=_0x154aa4,{startX:_0x4c5f5e,startY:_0x3ed746}=_0x1eb38d,{endX:_0x54ea30,endY:_0x29d855}=_0x1033dc,_0x3c03b0=_0x54ea30-_0x4c5f5e,_0xe5a76f=_0x29d855-_0x3ed746;return new On(_0x1ec014,{'labelPosition':_0x3ed746-_0x4b2138>=0x14?_0x438684(0x2ac):_0x438684(0x381),'sheetID':_0x1ea6a7,'range':_0x53c1b9,'color':_0x3936fd,'name':_0x1ec014,'selection':_0x507243,'left':_0x4c5f5e,'top':_0x3ed746,'width':_0x3c03b0,'height':_0xe5a76f,'evented':!0x1,'zIndex':0x1389});});_0x1d0ed8[_0x1db468(0x33a)](_0x5b8077,0x1),this[_0x1db468(0x313)]=new Set(_0x5b8077);}[_0x247c5a(0x363)](){const _0x41d511=_0x247c5a;var _0xbc6d9f;(_0xbc6d9f=this[_0x41d511(0x313)])==null||_0xbc6d9f['forEach'](_0x4a1ea3=>_0x4a1ea3[_0x41d511(0x204)]());}['_getSheetObject'](){const _0x13f64e=_0x247c5a;return _0x12b1af(this[_0x13f64e(0x31e)][_0x13f64e(0x400)],this['_context']);}};kn=q([K(0x1,_0x3b8ccc(_0xfb8c7d)),K(0x2,_0x3b8ccc(Z)),K(0x3,_0x3b8ccc(_0xbb7758))],kn);function An(_0x148bcb){const _0x1cc211=_0x247c5a;let _0x486b01=new Map();return _0x148bcb[_0x1cc211(0x409)](_0x4fda54=>{const _0x536c64=_0x1cc211;if(_0x486b01[_0x536c64(0x2ed)](_0x4fda54[_0x536c64(0x275)])){let _0x18f781=_0x486b01['get'](_0x4fda54['selection']);_0x18f781[_0x536c64(0x261)]+=',\x20'+_0x4fda54['name'];}else _0x486b01[_0x536c64(0x21f)](_0x4fda54['selection'],_0x4fda54);}),Array[_0x1cc211(0x287)](_0x486b01[_0x1cc211(0x35e)]());}function jn(_0x57b943){const _0x4b9ad=_0x247c5a;return typeof _0x57b943==_0x4b9ad(0x300)&&!!_0x57b943;}function Mn(_0x4257f4){const _0x429398=_0x247c5a;return _0x4257f4['eventID']===_0x6181db['UPDATE_CURSOR']&&'data'in _0x4257f4&&jn(_0x4257f4[_0x429398(0x231)])&&typeof _0x4257f4[_0x429398(0x231)][_0x429398(0x2f2)]==_0x429398(0x3f9)&&typeof _0x4257f4['data']['selection']==_0x429398(0x3f9);}function Nn(_0x1d53f7){const _0x4658d2=_0x247c5a;return _0x1d53f7['eventID']===_0x6181db[_0x4658d2(0x3db)]&&_0x4658d2(0x231)in _0x1d53f7&&jn(_0x1d53f7[_0x4658d2(0x231)])&&typeof _0x1d53f7[_0x4658d2(0x231)][_0x4658d2(0x2f2)]=='string';}function Pn(_0x4fd3b2,_0x33f8d9){const _0x5adbc5=_0x247c5a;let _0x529335;try{_0x529335=JSON[_0x5adbc5(0x3f1)](_0x4fd3b2);}catch{return null;}if(!jn(_0x529335)||typeof _0x529335[_0x5adbc5(0x20b)]!=_0x5adbc5(0x3f9)||typeof _0x529335['unitId']!='string'||typeof _0x529335[_0x5adbc5(0x326)]!=_0x5adbc5(0x3f9))return null;let _0xf420e9=typeof _0x529335[_0x5adbc5(0x2a1)]==_0x5adbc5(0x3fd)?_0x529335[_0x5adbc5(0x2a1)]:_0x33f8d9;if(_0xf420e9==null)return null;let _0x1de210=jn(_0x529335[_0x5adbc5(0x377)])&&typeof _0x529335[_0x5adbc5(0x377)]['x']=='number'&&Number['isFinite'](_0x529335[_0x5adbc5(0x377)]['x'])&&typeof _0x529335['pointer']['y']==_0x5adbc5(0x3fd)&&Number[_0x5adbc5(0x36e)](_0x529335[_0x5adbc5(0x377)]['y'])?{'x':_0x529335[_0x5adbc5(0x377)]['x'],'y':_0x529335[_0x5adbc5(0x377)]['y']}:null;return{'kind':_0x529335[_0x5adbc5(0x20b)],'unitType':_0xf420e9,'unitId':_0x529335[_0x5adbc5(0x399)],'subUnitId':_0x529335[_0x5adbc5(0x326)],'selectedIds':Array['isArray'](_0x529335[_0x5adbc5(0x238)])?_0x529335[_0x5adbc5(0x238)][_0x5adbc5(0x351)](_0x4a2c00=>typeof _0x4a2c00==_0x5adbc5(0x3f9)):[],'focusedId':typeof _0x529335[_0x5adbc5(0x2a5)]=='string'?_0x529335[_0x5adbc5(0x2a5)]:null,'pointer':_0x1de210};}function Fn(_0x589ea1,_0x45d0b2,_0x1856f5){const _0x3cc074=_0x247c5a;return{'kind':_0x45d0b2,'unitType':_0x589ea1,'unitId':_0x1856f5[_0x3cc074(0x399)],'subUnitId':_0x1856f5[_0x3cc074(0x326)],'selectedIds':Array['from'](_0x1856f5[_0x3cc074(0x238)]),'focusedId':_0x1856f5[_0x3cc074(0x2a5)],'pointer':_0x1856f5[_0x3cc074(0x377)]?{..._0x1856f5[_0x3cc074(0x377)]}:null};}let In=class extends _0x3318cc{constructor(_0x198409,_0x1797e2,_0x7f942c,_0xb0bf13,_0x24e30f,_0x2c5d25){const _0x538a66=_0x247c5a;super(),this['unitId']=_0x198409,this[_0x538a66(0x29d)]=_0x1797e2,this[_0x538a66(0x1cc)]=_0x7f942c,this[_0x538a66(0x246)]=_0xb0bf13,this[_0x538a66(0x3f7)]=_0x24e30f,this[_0x538a66(0x3fb)]=_0x2c5d25,G(this,_0x538a66(0x412),!0x1),G(this,_0x538a66(0x2b7),!0x1);}get[_0x247c5a(0x2a1)](){const _0x32f2fa=_0x247c5a;return this['_adapter'][_0x32f2fa(0x2a1)];}[_0x247c5a(0x204)](){const _0xfd9dee=_0x247c5a;this[_0xfd9dee(0x24c)](),super[_0xfd9dee(0x204)]();}[_0x247c5a(0x284)](){const _0x2272eb=_0x247c5a;this[_0x2272eb(0x2b7)]||(this['_initialized']=!0x0,this[_0x2272eb(0x29d)][_0x2272eb(0x304)][_0x2272eb(0x2cc)](_0x3fa56b(this[_0x2272eb(0x40c)]))[_0x2272eb(0x2d5)](_0xffd9a3=>{const _0x113d6c=_0x2272eb;if(_0xffd9a3===_0x511a18[_0x113d6c(0x410)]){this['_online']=!0x0;let _0x109a62=this[_0x113d6c(0x1cc)][_0x113d6c(0x343)](this[_0x113d6c(0x399)]);_0x109a62&&this[_0x113d6c(0x3c1)](_0x109a62);return;}this[_0x113d6c(0x412)]=!0x1,this['_clearRemotePresences']();}),this[_0x2272eb(0x29d)]['event$'][_0x2272eb(0x2cc)](_0x3fa56b(this[_0x2272eb(0x40c)]))[_0x2272eb(0x2d5)](_0x354815=>{const _0xee9632=_0x2272eb;Mn(_0x354815)?this[_0xee9632(0x2a4)](_0x354815):Nn(_0x354815)&&this[_0xee9632(0x38b)](_0x354815[_0xee9632(0x231)][_0xee9632(0x2f2)]);}),this[_0x2272eb(0x1cc)][_0x2272eb(0x369)][_0x2272eb(0x2cc)](_0x48c179(_0x5998a0=>this['_online']&&_0x5998a0[_0x2272eb(0x399)]===this['unitId']),_0x14b9f0(_0x2cf5ea=>_0x22ec2d(_0x2cf5ea[_0x2272eb(0x346)]),{'leading':!0x0,'trailing':!0x0}),_0x3fa56b(this[_0x2272eb(0x40c)]))['subscribe'](_0x1d73e1=>this[_0x2272eb(0x3c1)](_0x1d73e1)));}[_0x247c5a(0x3c1)](_0x1301b1){const _0x449225=_0x247c5a;let _0x514a2f=this[_0x449225(0x29d)][_0x449225(0x360)]();if(!_0x514a2f||!this[_0x449225(0x412)])return;let _0x16519a={'eventID':_0x6181db['UPDATE_CURSOR'],'data':{'unitID':this[_0x449225(0x399)],'memberID':_0x514a2f,'selection':JSON[_0x449225(0x257)](Fn(this[_0x449225(0x2a1)],this[_0x449225(0x1cc)]['presenceKind'],_0x1301b1))}};this[_0x449225(0x29d)][_0x449225(0x3e1)](_0x16519a,this[_0x449225(0x399)])[_0x449225(0x1ac)](()=>void 0x0);}[_0x247c5a(0x2a4)](_0x1b837e){const _0xe0fea8=_0x247c5a;let {memberID:_0x51ca45,selection:_0x4c3c06}=_0x1b837e[_0xe0fea8(0x231)];if(_0x51ca45===this['_session']['getMemberID']())return;let _0x3072ce=Pn(_0x4c3c06,this[_0xe0fea8(0x2a1)]);if(!_0x3072ce||_0x3072ce['kind']!==this['_adapter'][_0xe0fea8(0x296)]||_0x3072ce[_0xe0fea8(0x2a1)]!==this['unitType']||_0x3072ce['unitId']!==this[_0xe0fea8(0x399)])return;let _0x2fd95b=this['_memberService'][_0xe0fea8(0x265)](this[_0xe0fea8(0x399)],_0x51ca45),_0x19ca14={'unitId':_0x3072ce[_0xe0fea8(0x399)],'subUnitId':_0x3072ce[_0xe0fea8(0x326)],'selectedIds':_0x3072ce[_0xe0fea8(0x238)],'focusedId':_0x3072ce[_0xe0fea8(0x2a5)],'pointer':_0x3072ce[_0xe0fea8(0x377)],'memberId':_0x51ca45,'color':this[_0xe0fea8(0x246)][_0xe0fea8(0x1d4)](_0x51ca45),'name':(_0x2fd95b==null?void 0x0:_0x2fd95b[_0xe0fea8(0x261)])??_0x51ca45};this[_0xe0fea8(0x3fb)]['executeCommand'](Y['id'],{'unitType':this[_0xe0fea8(0x2a1)],'update':{'type':'set','state':_0x19ca14}})[_0xe0fea8(0x1ac)](()=>void 0x0);}[_0x247c5a(0x38b)](_0x2f0cee){const _0x4f4ad2=_0x247c5a;this[_0x4f4ad2(0x3fb)]['executeCommand'](Y['id'],{'unitType':this[_0x4f4ad2(0x2a1)],'update':{'type':_0x4f4ad2(0x3bc),'unitId':this[_0x4f4ad2(0x399)],'memberId':_0x2f0cee}})[_0x4f4ad2(0x1ac)](()=>void 0x0);}['_clearRemotePresences'](){const _0x22daba=_0x247c5a;this[_0x22daba(0x3fb)][_0x22daba(0x3f4)](Y['id'],{'unitType':this[_0x22daba(0x2a1)],'update':{'type':_0x22daba(0x3cd),'unitId':this['unitId']}})['catch'](()=>void 0x0);}};In=q([K(0x3,_0x3b8ccc(mn)),K(0x4,_0x3b8ccc(_0x405f4a)),K(0x5,_0x3b8ccc(_0x3fa174))],In);let Q=class extends _0x3318cc{constructor(_0x30dc3d,_0x14245f,_0x1ea05e,_0x463684){const _0xfbd8cc=_0x247c5a;super(),this[_0xfbd8cc(0x390)]=_0x30dc3d,this[_0xfbd8cc(0x325)]=_0x14245f,this[_0xfbd8cc(0x337)]=_0x1ea05e,this['_adapterRegistry']=_0x463684,G(this,_0xfbd8cc(0x277),!0x1),G(this,_0xfbd8cc(0x1c7),new Map()),G(this,_0xfbd8cc(0x338),new Map()),G(this,'_adapterDisposables',new Map()),this[_0xfbd8cc(0x302)]();}[_0x247c5a(0x204)](){const _0x450f4e=_0x247c5a;this[_0x450f4e(0x277)]=!0x0,this['_adapterDisposables']['forEach'](_0x2735d9=>_0x2735d9['dispose']()),this[_0x450f4e(0x27d)][_0x450f4e(0x3cd)](),this[_0x450f4e(0x1c7)]['forEach'](_0x3120b0=>_0x3120b0[_0x450f4e(0x204)]()),this[_0x450f4e(0x1c7)]['clear'](),this[_0x450f4e(0x338)]['clear'](),super[_0x450f4e(0x204)]();}[_0x247c5a(0x302)](){const _0x474253=_0x247c5a;this['_adapterRegistry'][_0x474253(0x1d1)][_0x474253(0x2cc)](_0x3fa56b(this[_0x474253(0x40c)]))[_0x474253(0x2d5)](_0x444450=>this[_0x474253(0x3c9)](_0x444450));}[_0x247c5a(0x3c9)](_0x5e7b95){const _0x5ef8af=_0x247c5a;let _0x1e5a93=new Set(_0x5e7b95[_0x5ef8af(0x1f3)](_0x5ec4b3=>_0x5ec4b3[_0x5ef8af(0x2a1)]));this['_adapterDisposables'][_0x5ef8af(0x409)]((_0x49145a,_0x46adf9)=>{const _0x26476b=_0x5ef8af;_0x1e5a93[_0x26476b(0x2ed)](_0x46adf9)||(_0x49145a[_0x26476b(0x204)](),this[_0x26476b(0x27d)][_0x26476b(0x2ea)](_0x46adf9),this[_0x26476b(0x35c)](_0x46adf9));}),_0x5e7b95[_0x5ef8af(0x409)](_0x444545=>{const _0x51e2bf=_0x5ef8af;this[_0x51e2bf(0x27d)][_0x51e2bf(0x2ed)](_0x444545[_0x51e2bf(0x2a1)])||this[_0x51e2bf(0x28e)](_0x444545);});}[_0x247c5a(0x28e)](_0x4416db){const _0x4ee753=_0x247c5a;let _0x3ec667=new _0x469794();this[_0x4ee753(0x27d)][_0x4ee753(0x21f)](_0x4416db[_0x4ee753(0x2a1)],_0x3ec667),_0x3ec667[_0x4ee753(0x23b)](_0x4416db['activate']()),this['_univerInstanceService'][_0x4ee753(0x250)](_0x4416db[_0x4ee753(0x2a1)])[_0x4ee753(0x409)](_0x2177da=>this[_0x4ee753(0x398)](_0x2177da[_0x4ee753(0x308)](),_0x4416db)[_0x4ee753(0x1ac)](()=>void 0x0));let _0x2d5ffe=this['_univerInstanceService'][_0x4ee753(0x2a0)](_0x4416db['unitType'])[_0x4ee753(0x2d5)](({unit:_0x415d2a})=>this[_0x4ee753(0x398)](_0x415d2a[_0x4ee753(0x308)](),_0x4416db)['catch'](()=>void 0x0));_0x3ec667[_0x4ee753(0x23b)](_0x265f18(()=>_0x2d5ffe[_0x4ee753(0x1f6)]()));let _0x2021e9=this[_0x4ee753(0x390)][_0x4ee753(0x251)](_0x4416db[_0x4ee753(0x2a1)])['subscribe'](_0x44449a=>this[_0x4ee753(0x371)](_0x44449a[_0x4ee753(0x308)]()));_0x3ec667['add'](_0x265f18(()=>_0x2021e9[_0x4ee753(0x1f6)]()));}async[_0x247c5a(0x398)](_0x33c861,_0x4b519c){const _0x213d19=_0x247c5a;if(this[_0x213d19(0x1c7)][_0x213d19(0x2ed)](_0x33c861)||this[_0x213d19(0x338)]['has'](_0x33c861))return;let _0x3c9771={};this[_0x213d19(0x338)][_0x213d19(0x21f)](_0x33c861,_0x3c9771);let _0x2879a6=await this[_0x213d19(0x337)]['requireSession'](_0x33c861)[_0x213d19(0x1ac)](_0x364109=>{const _0x12dc3d=_0x213d19;throw this['_pendingEntities']['get'](_0x33c861)===_0x3c9771&&this[_0x12dc3d(0x338)][_0x12dc3d(0x2ea)](_0x33c861),_0x364109;});if(this[_0x213d19(0x277)]||this[_0x213d19(0x338)][_0x213d19(0x211)](_0x33c861)!==_0x3c9771||this[_0x213d19(0x26d)][_0x213d19(0x211)](_0x4b519c['unitType'])!==_0x4b519c){this['_pendingEntities'][_0x213d19(0x211)](_0x33c861)===_0x3c9771&&this[_0x213d19(0x338)]['delete'](_0x33c861);return;}let _0x25a02d=this[_0x213d19(0x325)][_0x213d19(0x21a)](In,_0x33c861,_0x2879a6,_0x4b519c);_0x25a02d['init'](),this[_0x213d19(0x338)][_0x213d19(0x2ea)](_0x33c861),this[_0x213d19(0x1c7)][_0x213d19(0x21f)](_0x33c861,_0x25a02d);}[_0x247c5a(0x371)](_0x591128){const _0x1f41f8=_0x247c5a;this[_0x1f41f8(0x338)][_0x1f41f8(0x2ea)](_0x591128);let _0x2a3914=this[_0x1f41f8(0x1c7)][_0x1f41f8(0x211)](_0x591128);_0x2a3914&&(_0x2a3914['dispose'](),this[_0x1f41f8(0x1c7)][_0x1f41f8(0x2ea)](_0x591128));}[_0x247c5a(0x35c)](_0x32e61){const _0x280af7=_0x247c5a;this['_univerInstanceService']['getAllUnitsForType'](_0x32e61)[_0x280af7(0x409)](_0x1ef457=>this[_0x280af7(0x338)]['delete'](_0x1ef457[_0x280af7(0x308)]())),Array[_0x280af7(0x287)](this[_0x280af7(0x1c7)]['entries']())[_0x280af7(0x409)](([_0x11cffc,_0x43aad4])=>{const _0x25992d=_0x280af7;_0x43aad4[_0x25992d(0x2a1)]===_0x32e61&&this[_0x25992d(0x371)](_0x11cffc);});}};Q=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x5c9bca)),K(0x2,_0x3b8ccc(_0xed7c81)),K(0x3,_0x3b8ccc(_0x5a5714))],Q);let Ln=class extends _0x50ca1f{constructor(_0x9fef84,_0xee2880,_0x151c6e,_0x19db78,_0x43c8cb,_0x5f410a){const _0x9a5b58=_0x247c5a;super(),this[_0x9a5b58(0x239)]=_0x9fef84,this[_0x9a5b58(0x2e7)]=_0xee2880,this['_collaborationUIEventService']=_0x151c6e,this[_0x9a5b58(0x1b7)]=_0x19db78,this['_notificationService']=_0x43c8cb,this['_localeService']=_0x5f410a,G(this,_0x9a5b58(0x25e),null),G(this,_0x9a5b58(0x1b5),new Set()),this[_0x9a5b58(0x1ce)](),this[_0x9a5b58(0x2de)]();}[_0x247c5a(0x204)](){const _0x41f367=_0x247c5a;var _0x3b165e;(_0x3b165e=this['_conflictNotification'])==null||_0x3b165e[_0x41f367(0x204)](),this[_0x41f367(0x25e)]=null,super[_0x41f367(0x204)]();}[_0x247c5a(0x1ce)](){const _0x1f4e2f=_0x247c5a;this[_0x1f4e2f(0x3a7)](this['_beforeCloseService'][_0x1f4e2f(0x1f1)](()=>{const _0x2e66ad=_0x1f4e2f;if(this['_localCacheService']['saveTaskMap']['size'])return this[_0x2e66ad(0x3e6)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x247c5a(0x2de)](){const _0x3524eb=_0x247c5a;this[_0x3524eb(0x3a7)](this[_0x3524eb(0x3f5)]['event$'][_0x3524eb(0x2d5)](_0x5b2189=>{const _0x47e23c=_0x3524eb;_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x2c6)]&&this['_messageService']['show']({'type':_0x2f977e[_0x47e23c(0x1ef)],'content':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x223)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e['Warning'],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3cb))}),_0x5b2189['id']===_0x2b0b3d['PERMISSION_DENIED']&&this[_0x47e23c(0x276)]({'title':this['_localeService']['t'](_0x47e23c(0x316)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x47e23c(0x3f2),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x47e23c(0x1c4)),'onClick':_0xd51d7b=>{const _0x39e9df=_0x47e23c;_0xd51d7b[_0x39e9df(0x2dc)](),window[_0x39e9df(0x274)][_0x39e9df(0x26c)]();}}}),_0x5b2189['id']===_0x2b0b3d['CONFLICT_PROCESSING']&&this[_0x47e23c(0x1f9)](),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x309)]&&_0x5b2189[_0x47e23c(0x29c)]&&this['_showConflictCacheClearFailedNotification'](_0x5b2189[_0x47e23c(0x29c)]),_0x5b2189['id']===_0x2b0b3d['CONFLICT']&&this[_0x47e23c(0x276)]({'title':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3de)),'content':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.conflict.content'),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this[_0x47e23c(0x3e6)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x99abef=>{const _0x4bcad8=_0x47e23c;_0x99abef[_0x4bcad8(0x2dc)](),window['location'][_0x4bcad8(0x26c)]();}}}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x24a)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e['Warning'],'content':this['_localeService']['t'](_0x5b2189['data']||'')}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x2fd)]&&this[_0x47e23c(0x1b7)]['show']({'type':_0x2f977e[_0x47e23c(0x1ef)],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x3b0))}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x333)]&&this[_0x47e23c(0x1b7)][_0x47e23c(0x30a)]({'type':_0x2f977e[_0x47e23c(0x3d2)],'content':this['_localeService']['t'](_0x47e23c(0x3ea))}),_0x5b2189['id']===_0x2b0b3d[_0x47e23c(0x404)]&&this[_0x47e23c(0x1b7)]['show']({'type':_0x2f977e[_0x47e23c(0x3d2)],'content':this[_0x47e23c(0x3e6)]['t'](_0x47e23c(0x206))});}));}['_showConflictProcessingNotification'](){const _0x473cf5=_0x247c5a;this['_replaceConflictNotification']({'title':this[_0x473cf5(0x3e6)]['t'](_0x473cf5(0x3de)),'content':this[_0x473cf5(0x3e6)]['t'](_0x473cf5(0x2b3)),'type':_0x473cf5(0x38d),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}['_showConflictCacheClearFailedNotification'](_0x52411d){const _0x548085=_0x247c5a;this[_0x548085(0x276)]({'title':this[_0x548085(0x3e6)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x548085(0x3e6)]['t'](_0x548085(0x295)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'action':{'label':this['_localeService']['t'](_0x548085(0x2eb)),'onClick':_0x337102=>{const _0x207b5e=_0x548085;_0x337102[_0x207b5e(0x2dc)](),this['_retryConflictCacheClear'](_0x52411d);}}});}[_0x247c5a(0x297)](_0x5b1ed2){const _0x2a90f3=_0x247c5a;this['_retryingConflictCacheUnitIDs']['has'](_0x5b1ed2)||(this[_0x2a90f3(0x1b5)][_0x2a90f3(0x23b)](_0x5b1ed2),this[_0x2a90f3(0x1f9)](),this[_0x2a90f3(0x2e7)][_0x2a90f3(0x22c)](_0x5b1ed2)['then'](()=>window[_0x2a90f3(0x274)]['reload']())['catch'](()=>this[_0x2a90f3(0x33f)](_0x5b1ed2))[_0x2a90f3(0x2a2)](()=>this[_0x2a90f3(0x1b5)][_0x2a90f3(0x2ea)](_0x5b1ed2)));}['_replaceConflictNotification'](_0x5cdc90){const _0xb2b6dd=_0x247c5a;var _0x26c52d;(_0x26c52d=this['_conflictNotification'])==null||_0x26c52d['dispose'](),this[_0xb2b6dd(0x25e)]=this['_notificationService'][_0xb2b6dd(0x30a)](_0x5cdc90);}};Ln=q([K(0x0,_0x1b0f9c),K(0x1,_0x1974ac),K(0x2,_0x3b8ccc(_0x1327e3)),K(0x3,_0x4a0381),K(0x4,_0x502777),K(0x5,_0x3b8ccc(_0x5a18da))],Ln);const Rn=_0x44855e(_0x247c5a(0x32f));let zn=class extends _0x3318cc{constructor(_0xf749be,_0xd86437,_0x45e5da,_0x255798){const _0x2e75e6=_0x247c5a;super(),this[_0x2e75e6(0x1b6)]=_0xf749be,this[_0x2e75e6(0x2be)]=_0xd86437,this[_0x2e75e6(0x3fb)]=_0x45e5da,this[_0x2e75e6(0x3be)]=_0x255798,this[_0x2e75e6(0x302)]()['catch'](_0x27c6b0=>this[_0x2e75e6(0x2be)][_0x2e75e6(0x3f2)](_0x2e75e6(0x2ff),_0x27c6b0));}async[_0x247c5a(0x302)](){const _0x402715=_0x247c5a;let _0x55d4a9=this[_0x402715(0x1b6)][_0x402715(0x20d)](_0x402715(0x400)),_0x20a4b3=this['_urlService'][_0x402715(0x20d)](_0x402715(0x2d8)),_0x384fd3=this[_0x402715(0x1b6)][_0x402715(0x20d)]('subunit');if(!_0x55d4a9||!_0x20a4b3){this[_0x402715(0x2be)][_0x402715(0x281)](_0x402715(0x2ff),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1386c9=await this[_0x402715(0x3be)]['loadUnit'](_0x55d4a9,Number(_0x20a4b3),_0x384fd3);this['_disposed']||_0x1386c9&&_0x1386c9 instanceof _0x16e1e6&&await this[_0x402715(0x1e6)](_0x1386c9);}async['_setupSubUnitSync'](_0x2767f8){const _0x5f5d74=_0x247c5a;await this['_updateSubUnitFromURLParams'](_0x2767f8,!0x0),!this[_0x5f5d74(0x408)]&&(_0x2767f8[_0x5f5d74(0x317)][_0x5f5d74(0x2cc)](_0x3fa56b(this[_0x5f5d74(0x40c)]))[_0x5f5d74(0x2d5)](_0x43914a=>{const _0x435c05=_0x5f5d74;_0x43914a&&this[_0x435c05(0x34b)](_0x43914a);}),this[_0x5f5d74(0x1b6)][_0x5f5d74(0x210)][_0x5f5d74(0x2cc)](_0x3fa56b(this[_0x5f5d74(0x40c)]))[_0x5f5d74(0x2d5)](()=>{const _0x43c1f0=_0x5f5d74;this['_updateSubUnitFromURLParams'](_0x2767f8)[_0x43c1f0(0x1ac)](_0x48936f=>this[_0x43c1f0(0x2be)][_0x43c1f0(0x3f2)](_0x43c1f0(0x2ff),_0x48936f));}));}['_updateURLWithCurrentState'](_0x352d84,_0x7c1313=!0x1){const _0x4443b2=_0x247c5a;let _0x354aa8=this[_0x4443b2(0x1b6)]['getParam']('subunit');_0x352d84[_0x4443b2(0x411)]()!==_0x354aa8&&this[_0x4443b2(0x1b6)][_0x4443b2(0x3b4)](_0x4443b2(0x3ff),_0x352d84[_0x4443b2(0x411)](),_0x7c1313);}async[_0x247c5a(0x3e9)](_0x83be18,_0x4fd00a=!0x1){const _0x4f7b90=_0x247c5a;var _0x1eb76e;let _0x5190ca=this['_urlService']['getParam'](_0x4f7b90(0x3ff));if(!_0x5190ca||!_0x83be18[_0x4f7b90(0x294)](_0x5190ca)){let _0x31fc7a=_0x83be18[_0x4f7b90(0x1c6)]()[0x0],_0x2a4074=_0x83be18[_0x4f7b90(0x294)](_0x31fc7a);if(!_0x2a4074||(this['_updateURLWithCurrentState'](_0x2a4074,!0x0),this[_0x4f7b90(0x408)]))return;await this['_commandService'][_0x4f7b90(0x3f4)](_0x211d66['id'],{'unitId':_0x83be18[_0x4f7b90(0x308)](),'subUnitId':_0x31fc7a});return;}(_0x4fd00a||((_0x1eb76e=_0x83be18[_0x4f7b90(0x268)]())==null?void 0x0:_0x1eb76e[_0x4f7b90(0x411)]())!==_0x5190ca)&&await this[_0x4f7b90(0x3fb)][_0x4f7b90(0x3f4)](_0x211d66['id'],{'unitId':_0x83be18[_0x4f7b90(0x308)](),'subUnitId':_0x5190ca});}};zn=q([K(0x0,Rn),K(0x1,_0x583b3f),K(0x2,_0x3fa174),K(0x3,_0x3b8ccc(_0x51e8bf))],zn);let Bn=class{constructor(_0x58d822,_0x5d74ba){const _0x358355=_0x247c5a;this['_transformService']=_0x58d822,this[_0x358355(0x37f)]=_0x5d74ba;}[_0x247c5a(0x3ec)](_0x3be5c6){const _0x52dee4=_0x247c5a;this['_transformUndoRedoStack'](_0x3be5c6),this[_0x52dee4(0x314)](_0x3be5c6);}[_0x247c5a(0x31c)](_0x127c1d){const _0x428b21=_0x247c5a;let {unitID:_0x1e966b}=_0x127c1d,{redoCache:_0x236037}=this[_0x428b21(0x37f)]['getRenderUnitById'](_0x1e966b)[_0x428b21(0x267)](_0x5beedc)[_0x428b21(0x3b6)]();if(_0x236037[_0x428b21(0x23e)]===0x0)return _0x127c1d;let _0x4bb135=_0x55db4d['deepClone'](_0x127c1d['mutations'][0x0]);for(let _0x3a8736=0x0;_0x3a8736<_0x236037[_0x428b21(0x23e)];_0x3a8736++){let _0x47d94e={'id':_0x428b21(0x242),'params':{..._0x236037[_0x3a8736]}},_0x5b1a3a=this[_0x428b21(0x30d)][_0x428b21(0x3ed)](_0x4bb135,_0x47d94e,!0x1);if(_0x2be4e3(_0x5b1a3a))throw _0x5b1a3a[_0x428b21(0x3f2)];_0x4bb135=_0x5b1a3a[_0x428b21(0x2c0)];}return{..._0x55db4d[_0x428b21(0x2e6)](_0x127c1d),'mutations':[_0x4bb135]};}['_transformUndoRedoStack'](_0x2a406e){const _0xafeac6=_0x247c5a;let {unitID:_0x1efc2a}=_0x2a406e,_0x4ec9f2=this['_renderManagerService'][_0xafeac6(0x1a9)](_0x1efc2a)[_0xafeac6(0x267)](_0x5beedc),{undoCache:_0x11b12c,redoCache:_0x2fb9af}=_0x4ec9f2[_0xafeac6(0x3b6)]();if(_0x11b12c[_0xafeac6(0x23e)]===0x0||_0x2fb9af[_0xafeac6(0x23e)]===0x0)return;let _0x498e59=[],_0x4f187c=[],_0x4cf8c3=_0x55db4d[_0xafeac6(0x2e6)](_0x2a406e['mutations'][0x0]),_0x38c5c3=_0x55db4d[_0xafeac6(0x2e6)](_0x2a406e['mutations'][0x0]);for(let _0x47cedf=_0x11b12c['length']-0x1;_0x47cedf>=0x0;_0x47cedf--){let _0x554aaa={'id':'doc.mutation.rich-text-editing','params':{..._0x11b12c[_0x47cedf]}},_0x3df78e={'id':_0xafeac6(0x242),'params':{..._0x2fb9af[_0x47cedf]}},_0x13c869=this[_0xafeac6(0x30d)][_0xafeac6(0x3ed)](_0x4cf8c3,_0x554aaa,!0x1),_0x335b86=this[_0xafeac6(0x30d)]['transformMutation'](_0x38c5c3,_0x3df78e,!0x1);if(_0x2be4e3(_0x13c869))throw _0x13c869[_0xafeac6(0x3f2)];if(_0x2be4e3(_0x335b86))throw _0x335b86[_0xafeac6(0x3f2)];_0x498e59['unshift'](_0x13c869[_0xafeac6(0x24b)][_0xafeac6(0x37c)]),_0x4f187c[_0xafeac6(0x38e)](_0x335b86['m2Prime'][_0xafeac6(0x37c)]),_0x4cf8c3=_0x13c869['m1Prime'],_0x38c5c3=_0x335b86[_0xafeac6(0x2c0)];}_0x4ec9f2[_0xafeac6(0x273)]({'undoCache':_0x498e59,'redoCache':_0x4f187c});}[_0x247c5a(0x314)](_0x1b0999){const _0x21fabc=_0x247c5a;let {unitID:_0x24f9da}=_0x1b0999,_0x46103b=this[_0x21fabc(0x37f)][_0x21fabc(0x1a9)](_0x24f9da)['with'](_0x5beedc),_0x50af7b=_0x46103b['getActiveRange']();if(_0x50af7b==null)return;let _0x5e3251=[{'id':_0x21fabc(0x242),'params':{'unitId':_0x1b0999[_0x21fabc(0x29c)],'actions':null,'textRanges':[_0x50af7b]}}],_0x2b9118=this[_0x21fabc(0x30d)][_0x21fabc(0x213)](_0x1b0999,_0x5e3251);if(!_0x10ddcf(_0x2b9118))throw _0x2b9118[_0x21fabc(0x3f2)];let _0x1f220f=_0x2b9118[_0x21fabc(0x24b)][0x0][_0x21fabc(0x37c)]['textRanges'];Array[_0x21fabc(0x3ca)](_0x1f220f)&&_0x1f220f[_0x21fabc(0x23e)]&&_0x46103b[_0x21fabc(0x272)](_0x1f220f[0x0]);}};function _0x29c9(){const _0x2af8a0=['find','columnGroupId','collabCursorState$','_cursors','_transformPreviousActiveRange','OFFLINE','collaboration-client-ui.permission.title','activeSheet$','_registerDependencies','push','resize','_initDependencies','transformRemoteChangeset','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_context','_drawTextRange','_registerPresenceStatusComponent','startColumn','replace','getCurrentRevOfUnit','registerComponent','_injector','subUnitId','wsSessionTicketUrl','startOffset','getSkeleton','executionId','backupOfflineData','_textBubble','_collaborationSessionService','highlight','uni.network.url-service','[Unhandled\x20Rejection]:\x20','call','557928vMSmFr','SOCKET_FAILED','getOwnPropertyDescriptor','addClipboardHook','segmentPage','_collabSessionService','_pendingEntities','_color','addObjects','getCollabCursors$','8yuEvFo','getMergeData','moveTo','_showConflictCacheClearFailedNotification','collaboration-client-ui.config','_getLighterColor','@univerjs-pro/collaboration-client-ui','getLocalPresence','tableSource','fill','shareInterval','_initPresenceStatusComponents','setOffsetY','setItem','min','_updateURLWithCurrentState','replaceState','_hovered','collab-text-range-','registerRefRange','_assignedColors','filter','Unknown\x20user','_blinkTimer','registerRenderModule','getCurrentSkeleton','timeoutState$','_scheduleHeartbeat','text','_messageIds','_hideTimer','enableDocumentCollaborationUI','_disposeEntitiesForType','SYNCED','values','InsertRangeMoveDownCommandId','getMemberID','options','default','_removeCollabCursors','mutations','_shapes','spin','getCurrentUnitOfType','_initWindowErrorListener','localPresence$','_unitStatus','lineno','_updateMessage','[RemoteUniscriptService]:\x20no\x20focused\x20unit','isFinite','complete','sessionTicket','_disposeEntity','getDocRanges','black','drawWith','width','_send','pointer','_docTransformStateCacheService','getValue','getRangePointData','collaboration-client-ui.snapshotLoading.timeout','params','eventID','application/json','_renderManagerService','red.300','bottom','event$','unload','bold\x2013px\x20Arial,\x20sans-serif','_imageIoService','_blockProgressWatches','_onRefRangeChange','undoState','toISOString','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_removeRemotePresence','exhaustSavingTask','loading','unshift','_document','_univerInstanceService','textRanges','_initStatusComponent','TEXT','state','setInterval','onRendered','tableId','_startEntity','unitId','getCurrentSelections','collaboration-client-ui.collabStatus.conflict','getUnitStatus$','getItem','InsertRowCommandId','replaceSelectionInfoWithoutRefresh','updateOfflineData','_docStateChangeManagerService','transformStateCache','_config','_handleHeartbeatEvent','_watchBlockProgress','getSelectionInfo','disposeWithMe','_toggleOffline','ranges','source','timeoutId','_isBlinkVisible','_initResize','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','slice','collaboration-client-ui.session.will-retry','color','UNIVER_DOC','currentTheme$','setParam','hide','getUndoRedoMutationParamsCache','_cachedData','FromArray','dark:focus:!univer-ring-offset-gray-800','716597AcidHZ','snapshot-loading-timeout','remove','UNIVER_SHEET','_dataLoaderService','collab-text-anchor-','labelHorizontalPosition','_sendLocalPresence','_docSyncEditingCollabCursorService','all','version','_eventUnsubscribe','evenodd','getAncestorScale','univer-text-orange-500','_syncAdapters','isArray','collaboration-client-ui.collaboration.closeRoom','function','clear','onCommandExecuted','_collabCursorState$','removeItem','_stopBlinking','Error','LOADING_BLOCKS','Failed','_isVisibleUnit','2896nGVAYD','_heartbeatTimer','asObservable','origin','_onCursorDelete','USERS_LEAVE','pageIndex','_offsetY','collaboration-client-ui.conflict.title','_getAnchorBounding','_refreshCollabCursors','send','InsertColCommandId','transform','column','_configService','_localeService','setConfig','setShapeProps','_updateSubUnitFromURLParams','collaboration-client-ui.session.connection-failed','findNodePositionByCharIndex','transformIMECache','transformMutation','endRow','backgroundColor','_showText','parse','error','isActive','executeCommand','_collaborationUIEventService','UPDATE_CURSOR','_memberService','setRemotePresence','string','update','_commandService','_id','number','_uiPartsService','subunit','unit','popstate','transformByState','collaboration-client-ui.collabStatus.synced','SUBMIT_CHANGESET_TIMEOUT','HEADER','rgba','runOnServer','_disposed','forEach','pulse','_scene','dispose$','_latestStates','focused$','_entityInit$','ONLINE','getSheetId','_online','strokeWidth','getRenderUnitById','setStateCache','_updateCollabCursors','catch','_render','univer-m-0\x20univer-p-0','_transformHistoryAndStateStack','CONFLICT','tooltipKey','_saveTaskMap','decorate','arc','_retryingConflictCacheUnitIDs','_urlService','_messageService','_blinkIntervalTimer','530xTuwWm','cursorInfo','removeEventListener','polite','span','endColumn','status','next','_docSkeletonManagerService','ERROR','addHandlerCallback','collaboration-client-ui.snapshotLoading.refresh','[Window\x20Error]:\x20','getUnhiddenWorksheets','_entities','setTimeout','#FFF','RemoveColCommandId','_revisionService','_adapter','timedOut','_setupBeforeClosingHandler','_docTransformIMECacheService','_ensureSubject','adapters$','39457zMlllf','405xPnJkZ','assignAColorForMemberID','_docTransformSelectionsService','collaboration-client-ui.collabStatus.notCollab','_activeSaveTaskMap','fillText','hovered','startRow','onStarting','_syncPresenceStatusComponents','columnIndex','_name','removeRemotePresence','_initCommandExecutedListener','_cursor','reason','_httpService','_toggleOnline','univer-flex\x20univer-items-center\x20univer-justify-center','_setupSubUnitSync','_syncEditingCollabCursorService','symbol',',\x200.2)','setAlpha','_hover','292pUgGlV','isEditing','_scheduleSaving','Warning','...','registerBeforeClose','PENDING','map','_initUserListener','collab-rect-range-','unsubscribe','DeleteRangeMoveUpCommandId','closePath','_showConflictProcessingNotification','_getSheetObject','defineProperty','then','RECT','_clearBlockProgressWatch','statusUIPart','getFocusedUnit','_registerRenderDependencies','div','_docClipboardService','dispose','_updateLocalCursor','collaboration-client-ui.session.collaboration-timeout','addObject','toString','history','_removeClearOtherTimer','kind','376GRkfJZ','getParam','post','_handleEvent','urlChange$','get','_cursorInfo$','transformMutationsWithChangeset','_initUnhandledRejectionListener','editingUnit','_docSelectionManagerService','lineTo','now','_instanceService','createInstance','createSocket','packageName','Enter','getScrollXYInfoByViewport','set','makeDirty','indicator','result','CLOSE_ROOM','getCollabEntity$','collaboration-client-ui.collabStatus.syncing','onPointerMove$','_status$','offsetY','sheetId','VIEW_MAIN','small','clearOfflineData','_onCursorUpdate','reconnect','cursorInfo$','content','data','totalBlocks','stack','invokeId','roomMembers','currentSkeleton$','_drawAnchor','selectedIds','_beforeCloseService','_startSheetCollabCursor','add','snapshot-loading-','collaboration-client-ui.collabStatus.offline','length','_scheduleClearOtherTimer','left','/universer-api/frontend/logs','doc.mutation.rich-text-editing','_colorIndex','startsWith','pluginName','_colorAssignService','height','0.2)','clearTimeout','JOIN_ROOM_FAILED','m2Prime','_clearRemotePresences','_cursorShapes','pageType','roomMembers$','getAllUnitsForType','getTypeOfUnitDisposed$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_handleJoinEvent','_labelHorizontalPosition','_getSaveTimeout','size','stringify','onPointerEnter$','onTransformChange$','_monkeyPatchLogService','restore','labelPosition','row','_conflictNotification','disposeUnit','prototype','name','[LogService\x20Error]:\x20','highlightSecond','univer-text-blue-500','getMember','fillRule','with','getActiveSheet','_clearTimeoutState','getColorFromTheme','syncEditingCollabCursor','reload','_adapterRegistry','getCellIndexByOffset','_labelPosition','clickable','getCurrentTypeOfUnit$','setActiveRange','setUndoRedoMutationParamsCache','location','selection','_replaceConflictNotification','_isDisposed','NO_OTHER_CLIENTS_EDITING','unhandledrejection','rgba(255,\x20255,\x20255,\x200.01)','1.0.2','every','_adapterDisposables','flatMap','_snapshotLoadingService','/run/','debug','_handleHover','getCoordRelativeToViewport','init','true','save','from','NOT_COLLAB','_unitOnClients','OPERATION','redoState','blue.400','memberId','_bindAdapter','bind','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_pointerMoveDisposable','_drawRectRange','_localStorageService','getSheetBySheetId','collaboration-client-ui.conflict.clearFailed','presenceKind','_retryConflictCacheClear','COMPLETE','constructor','MoveRangeCommandId','FOOTER','unitID','_session','canRenderSelection','getConfig','getTypeOfUnitAdded$','unitType','finally','_backgroundColor','_handleCursorUpdate','focusedId','AWAITING','\x20-\x20','_refRangeService','_highlightSecond','registerCommand','_disabled','top','icon','onPointerLeave$','subscribeEvent','_memberID','_collabCursorController','code','collaboration-client-ui.conflict.processing','some','join','1149012laMCRC','_initialized','static','_trackActiveSaveTask','entityInit$','_presenceStatusRegistrations','loadOfflineData','univer-border-none\x20univer-bg-transparent','_logService','requireSession','m1Prime','_anchor','_clearOtherTimers','href','imageSourceType','_uploadLog','OTHER_CLIENT_EDITING','parseInt','override','socket$','_highlight','right','pipe','_collaborationController','univer-text-red-500','split','saveImage','pushState','measureText','runId','clearInterval','subscribe','collaboration-client-ui.operation.update-remote-unit-presence','univer-transition-all\x20univer-duration-200','type','body','_getSessionTicket','_selfUnitIDs','preventDefault','univer-text-gray-400','_initEvent','prepareTransformSelections','stage','search','loadedBlocks','addEventListener',':backup:','range','deepClone','_localCacheService','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','onMouseMove','delete','collaboration-client-ui.conflict.retry','univer-h-8\x20univer-w-8\x20univer-rounded-lg','has','_initStatusListener','_draw','_timeoutState$','searchParams','memberID','_range','includes','_saveCache','key','RemoveRowCommandId','_anchorDot','colorClass','_handleLeaveEvent','658130Lyrknj','removeParam','SOCKET_FAILED_RETRY','primary','[CollaborationDataLoaderController]','object','_startDocCollabCursor','_init','_createSocketURL','sessionStatus$','DeleteRangeMoveLeftCommandId','_themeService','_getMergeRange','getUnitId','CONFLICT_CACHE_CLEAR_FAILED','show','saveTaskMap','_roomMembers$','_transformService','yellow.400','getStateCache'];_0x29c9=function(){return _0x2af8a0;};return _0x29c9();}Bn=q([K(0x0,_0x2ebb05),K(0x1,_0x34d5fc)],Bn);let Vn=class{constructor(_0xf13f6e,_0xfefa7c,_0x9ffcfa){const _0x1d7355=_0x247c5a;this[_0x1d7355(0x325)]=_0xf13f6e,this[_0x1d7355(0x30d)]=_0xfefa7c,this['_docStateChangeManagerService']=_0x9ffcfa;}[_0x247c5a(0x3a2)](_0x3cb5f3){const _0x4710fa=_0x247c5a;this[_0x4710fa(0x1af)](_0x3cb5f3);}['transformRemoteChangeset'](_0x2aa4d4){const _0x29817d=_0x247c5a;let {unitID:_0x32d79e}=_0x2aa4d4,{collaboration:_0x3b1a4}=this['_docStateChangeManagerService']['getStateCache'](_0x32d79e);if(_0x3b1a4[_0x29817d(0x23e)]===0x0)return _0x2aa4d4;let _0x412e73=_0x55db4d['deepClone'](_0x2aa4d4[_0x29817d(0x364)][0x0]);for(let _0x48c9a4=0x0;_0x48c9a4<_0x3b1a4[_0x29817d(0x23e)];_0x48c9a4++){let _0x57a793={'id':_0x29817d(0x242),'params':{'unitId':_0x3b1a4[_0x48c9a4]['unitId'],..._0x3b1a4[_0x48c9a4][_0x29817d(0x28b)]}},_0x47b3dd=this[_0x29817d(0x30d)][_0x29817d(0x3ed)](_0x412e73,_0x57a793,!0x1);if(_0x2be4e3(_0x47b3dd))throw _0x47b3dd[_0x29817d(0x3f2)];_0x412e73=_0x47b3dd['m1Prime'];}return{..._0x55db4d[_0x29817d(0x2e6)](_0x2aa4d4),'mutations':[_0x412e73]};}[_0x247c5a(0x1af)](_0x1530e2){const _0x496af4=_0x247c5a;let {unitID:_0x13b9d7}=_0x1530e2,{history:_0x1b37ee,collaboration:_0x2e65ab}=this[_0x496af4(0x3a1)][_0x496af4(0x30f)](_0x13b9d7);if(_0x1b37ee[_0x496af4(0x23e)]===0x0&&_0x2e65ab[_0x496af4(0x23e)]===0x0)return;let _0x47938e=[],_0x122c42=[],_0x267c36=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]),_0x5e8829=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]);for(let _0x4a02d6=_0x1b37ee[_0x496af4(0x23e)]-0x1;_0x4a02d6>=0x0;_0x4a02d6--){let _0xf5367c={'id':_0x496af4(0x242),'params':{'unitId':_0x1b37ee[_0x4a02d6][_0x496af4(0x399)],..._0x1b37ee[_0x4a02d6][_0x496af4(0x388)]}},_0x21a5ec={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b37ee[_0x4a02d6]['unitId'],..._0x1b37ee[_0x4a02d6][_0x496af4(0x28b)]}},_0x1449e2=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x267c36,_0xf5367c,!0x1),_0xdbbc81=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x5e8829,_0x21a5ec,!0x1);if(_0x2be4e3(_0x1449e2))throw _0x1449e2[_0x496af4(0x3f2)];if(_0x2be4e3(_0xdbbc81))throw _0xdbbc81[_0x496af4(0x3f2)];_0x47938e[_0x496af4(0x38e)]({..._0x1b37ee[_0x4a02d6],'undoState':_0x1449e2['m2Prime'][_0x496af4(0x37c)],'redoState':_0xdbbc81[_0x496af4(0x24b)]['params']}),_0x267c36=_0x1449e2[_0x496af4(0x2c0)],_0x5e8829=_0xdbbc81['m1Prime'];}_0x267c36=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]),_0x5e8829=_0x55db4d[_0x496af4(0x2e6)](_0x1530e2[_0x496af4(0x364)][0x0]);for(let _0x5b7620=_0x2e65ab[_0x496af4(0x23e)]-0x1;_0x5b7620>=0x0;_0x5b7620--){let _0x22b2af={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2e65ab[_0x5b7620][_0x496af4(0x399)],..._0x2e65ab[_0x5b7620]['undoState']}},_0xf23f99={'id':_0x496af4(0x242),'params':{'unitId':_0x2e65ab[_0x5b7620][_0x496af4(0x399)],..._0x2e65ab[_0x5b7620]['redoState']}},_0x1d39d8=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x267c36,_0x22b2af,!0x1),_0x2c71e9=this[_0x496af4(0x30d)][_0x496af4(0x3ed)](_0x5e8829,_0xf23f99,!0x1);if(_0x2be4e3(_0x1d39d8))throw _0x1d39d8[_0x496af4(0x3f2)];if(_0x2be4e3(_0x2c71e9))throw _0x2c71e9[_0x496af4(0x3f2)];_0x122c42[_0x496af4(0x38e)]({..._0x2e65ab[_0x5b7620],'undoState':_0x1d39d8[_0x496af4(0x24b)][_0x496af4(0x37c)],'redoState':_0x2c71e9[_0x496af4(0x24b)]['params']}),_0x267c36=_0x1d39d8[_0x496af4(0x2c0)],_0x5e8829=_0x2c71e9[_0x496af4(0x2c0)];}this[_0x496af4(0x3a1)][_0x496af4(0x1aa)](_0x13b9d7,{'history':_0x47938e,'collaboration':_0x122c42});}};Vn=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x2ebb05),K(0x2,_0x3b8ccc(_0x56aa2a))],Vn);let Hn=class{constructor(_0x5acca6,_0xf42fd7){const _0x405230=_0x247c5a;this[_0x405230(0x216)]=_0x5acca6,this[_0x405230(0x30d)]=_0xf42fd7;}[_0x247c5a(0x2df)](_0x23f339){const _0x247ade=_0x247c5a;var _0x13cb3a;let _0x5c1781=this[_0x247ade(0x216)][_0x247ade(0x372)]()??[],_0x15458a=this['_docSelectionManagerService'][_0x247ade(0x3a6)]();if(_0x5c1781[_0x247ade(0x23e)]===0x0||_0x15458a==null)return null;let _0x3a0dee=_0x23f339[_0x247ade(0x29c)],_0x24fc96=[{'id':_0x247ade(0x242),'params':{'unitId':_0x3a0dee,'actions':null,'textRanges':_0x5c1781}}],_0xfe2ae7=this['_transformService'][_0x247ade(0x213)](_0x23f339,_0x24fc96);if(!_0x10ddcf(_0xfe2ae7))throw _0xfe2ae7[_0x247ade(0x3f2)];let _0x33c4fd=(_0x13cb3a=_0xfe2ae7[_0x247ade(0x24b)][0x0])==null?void 0x0:_0x13cb3a[_0x247ade(0x37c)],_0x1e1dd8=_0x33c4fd&&typeof _0x33c4fd==_0x247ade(0x300)&&_0x247ade(0x391)in _0x33c4fd?_0x33c4fd['textRanges']:null;if(!Gn(_0x1e1dd8))return null;let _0x4956dc=Un(_0x23f339[_0x247ade(0x364)][_0x247ade(0x2b4)](_0x3ce6c4=>Kn(_0x3ce6c4[_0x247ade(0x37c)]))?_0x1e1dd8['filter'](_0x31bfc5=>!(_0x247ade(0x397)in _0x31bfc5)):_0x1e1dd8,{..._0x15458a,'options':_0x15458a[_0x247ade(0x361)]?{..._0x15458a[_0x247ade(0x361)],'wholeDocument':!0x1}:void 0x0}),_0x4d18d2={'unitId':_0x3a0dee,'subUnitId':_0x3a0dee};this[_0x247ade(0x216)]['replaceSelectionInfoWithoutRefresh'](_0x4956dc,_0x4d18d2);let _0x23a76f=!0x0;return{'commit':()=>{_0x23a76f=!0x1;},'rollback':()=>{const _0x5b8027=_0x247ade;_0x23a76f&&(_0x23a76f=!0x1,this[_0x5b8027(0x216)][_0x5b8027(0x39f)](_0x15458a,_0x4d18d2));}};}};Hn=q([K(0x0,_0x3b8ccc(_0x16bdd0)),K(0x1,_0x2ebb05)],Hn);function Un(_0x5b3c93,_0x238954){let _0x2292cb=[],_0x507f2f=[];for(let _0x4ffe1e of _0x5b3c93)Wn(_0x4ffe1e)?_0x507f2f['push'](_0x4ffe1e):_0x2292cb['push'](_0x4ffe1e);return{..._0x238954,'textRanges':_0x2292cb,'rectRanges':_0x507f2f};}function Wn(_0x2b644b){return'tableId'in _0x2b644b;}function Gn(_0x2f8436){const _0xa010e=_0x247c5a;return Array[_0xa010e(0x3ca)](_0x2f8436)&&_0x2f8436[_0xa010e(0x27c)](_0x595253=>typeof _0x595253==_0xa010e(0x300)&&!!_0x595253&&_0xa010e(0x328)in _0x595253&&'endOffset'in _0x595253);}function Kn(_0x55ec95){const _0x4d8033=_0x247c5a;return _0x55ec95===_0x4d8033(0x344)?!0x0:Array[_0x4d8033(0x3ca)](_0x55ec95)?_0x55ec95[_0x4d8033(0x2b4)](_0x535e77=>Kn(_0x535e77)):!_0x55ec95||typeof _0x55ec95!='object'?!0x1:Object[_0x4d8033(0x35e)](_0x55ec95)[_0x4d8033(0x2b4)](_0x3653b8=>Kn(_0x3653b8));}let qn=class extends _0x50ca1f{constructor(_0x428ca9,_0x26882d,_0x1f1d4b,_0x1c65b6,_0x1adee4,_0x7af276,_0x19f924){const _0x1d469d=_0x247c5a;super(),this[_0x1d469d(0x2cd)]=_0x428ca9,this[_0x1d469d(0x1cf)]=_0x26882d,this[_0x1d469d(0x378)]=_0x1f1d4b,this[_0x1d469d(0x1d5)]=_0x1c65b6,this[_0x1d469d(0x3c2)]=_0x1adee4,this[_0x1d469d(0x1b7)]=_0x7af276,this[_0x1d469d(0x3e6)]=_0x19f924,G(this,'_status$',new _0x24b100(_0x5c157a['NOT_COLLAB'])),this['_initEntityListener']();}['_initEntityListener'](){const _0x1cff04=_0x247c5a;this[_0x1cff04(0x3a7)](this[_0x1cff04(0x2cd)][_0x1cff04(0x2ba)]['subscribe'](_0x39592c=>{const _0x5a006d=_0x1cff04;_0x39592c instanceof _0x4a9a22&&_0x39592c[_0x5a006d(0x1c3)]({'onTransformIME':_0x30649e=>this[_0x5a006d(0x1cf)][_0x5a006d(0x3ec)](_0x30649e),'onTransformState':_0x5d0468=>this[_0x5a006d(0x378)][_0x5a006d(0x3a2)](_0x5d0468),'onPrepareTransformSelections':_0x5a9845=>this[_0x5a006d(0x1d5)][_0x5a006d(0x2df)](_0x5a9845),'onSyncEditingCollabCursor':_0x1a59bf=>this[_0x5a006d(0x3c2)][_0x5a006d(0x26b)](_0x1a59bf),'onTransformRemoteChangesetByIMECache':_0x12f915=>this[_0x5a006d(0x1cf)][_0x5a006d(0x31c)](_0x12f915),'onTransformRemoteChangesetByStateCache':_0x16385d=>this[_0x5a006d(0x378)][_0x5a006d(0x31c)](_0x16385d)});}));}};qn=q([K(0x0,_0x3b8ccc(_0x501041)),K(0x1,_0x3b8ccc(Bn)),K(0x2,_0x3b8ccc(Vn)),K(0x3,_0x3b8ccc(Hn)),K(0x4,_0x3b8ccc(_n)),K(0x5,_0x4a0381),K(0x6,_0x3b8ccc(_0x5a18da))],qn);let Jn=class extends _0x50ca1f{constructor(_0x1ced60,_0x849185,_0x27d891,_0x22cdc0){const _0x2e4046=_0x247c5a;super(),this[_0x2e4046(0x325)]=_0x1ced60,this['_httpService']=_0x849185,this[_0x2e4046(0x2be)]=_0x27d891,this[_0x2e4046(0x32d)]=_0x22cdc0,G(this,_0x2e4046(0x2b0),void 0x0),this[_0x2e4046(0x302)]();}['_init'](){const _0x3f7c60=_0x247c5a;this[_0x3f7c60(0x368)](),this[_0x3f7c60(0x214)](),this[_0x3f7c60(0x25a)](),this[_0x3f7c60(0x1f4)]();}[_0x247c5a(0x1f4)](){const _0xaed843=_0x247c5a;this[_0xaed843(0x3a7)](this['_collaborationSessionService'][_0xaed843(0x2c9)]['subscribe'](_0x2ff9dc=>{const _0x5aaddc=_0xaed843;this['_memberID']=_0x2ff9dc==null?void 0x0:_0x2ff9dc[_0x5aaddc(0x2f2)];}));}['_initWindowErrorListener'](){const _0xa51d3f=_0x247c5a;let _0xf0731f=_0x5c2978=>{const _0x18bac6=_0x2e9b;var _0x23a357;this['_uploadLog'](_0x18bac6(0x3f2),_0x18bac6(0x1c5)+_0x5c2978['message']+'\x20at\x20'+_0x5c2978['filename']+':'+_0x5c2978[_0x18bac6(0x36b)]+':'+_0x5c2978['colno']+'\x0a'+(((_0x23a357=_0x5c2978[_0x18bac6(0x3f2)])==null?void 0x0:_0x23a357[_0x18bac6(0x233)])||''));};window[_0xa51d3f(0x2e3)]('error',_0xf0731f),this[_0xa51d3f(0x3a7)](()=>{const _0x5ae89b=_0xa51d3f;window[_0x5ae89b(0x1bb)](_0x5ae89b(0x3f2),_0xf0731f);});}[_0x247c5a(0x214)](){const _0x26c911=_0x247c5a;let _0x3a4935=_0x4215e6=>{const _0x173ab8=_0x2e9b;this[_0x173ab8(0x2c5)](_0x173ab8(0x3f2),_0x173ab8(0x330)+_0x4215e6[_0x173ab8(0x1e2)]);};window['addEventListener'](_0x26c911(0x279),_0x3a4935),this[_0x26c911(0x3a7)](()=>{const _0x39e540=_0x26c911;window['removeEventListener'](_0x39e540(0x279),_0x3a4935);});}[_0x247c5a(0x25a)](){const _0x59c6cd=_0x247c5a;let _0x14af05=this[_0x59c6cd(0x2be)][_0x59c6cd(0x3f2)][_0x59c6cd(0x28f)](this[_0x59c6cd(0x2be)]);this[_0x59c6cd(0x2be)][_0x59c6cd(0x3f2)]=(..._0x3bffe3)=>{const _0x36b003=_0x59c6cd;let _0x1b586b=_0x3bffe3['map'](_0x44af4d=>_0x44af4d instanceof Error?_0x44af4d['message']+'\x0a'+_0x44af4d[_0x36b003(0x233)]:String(_0x44af4d))[_0x36b003(0x2b5)]('\x20');this[_0x36b003(0x2c5)]('error',_0x36b003(0x262)+_0x1b586b),_0x14af05(..._0x3bffe3);},this[_0x59c6cd(0x3a7)](()=>{const _0x1a1733=_0x59c6cd;this[_0x1a1733(0x2be)][_0x1a1733(0x3f2)]=_0x14af05;});}[_0x247c5a(0x2c5)](_0x518b63,_0x577a4a){const _0x2b25b6=_0x247c5a;try{let _0x78853f={'userId':this[_0x2b25b6(0x2b0)],'logLabel':_0x518b63,'content':_0x577a4a};this[_0x2b25b6(0x1e3)][_0x2b25b6(0x20e)](_0x2b25b6(0x241),{'body':_0x78853f})[_0x2b25b6(0x1ac)](()=>{});}catch{}}};Jn=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0x583b3f),K(0x3,_0x3b8ccc(_0xed7c81))],Jn);function Yn({state$:_0x27a554}){const _0x48ab3a=_0x247c5a;let _0x19b206=_0x47ef38(_0x27a554,null,!0x0);return _0x19b206?_0x10ab35(_0x48ab3a(0x202),{'data-u-comp':_0x48ab3a(0x3bb),'role':'alert','className':_0x48ab3a(0x3ae),'children':[_0x5b3a46(_0x14cc8f,{'className':_0x48ab3a(0x2e8)}),_0x5b3a46(_0x48ab3a(0x1bd),{'children':_0x19b206[_0x48ab3a(0x230)]}),_0x5b3a46(_0x58172d,{'size':_0x48ab3a(0x22b),'variant':_0x48ab3a(0x2fe),'onClick':()=>window['location'][_0x48ab3a(0x26c)](),'children':_0x19b206['refreshLabel']})]}):null;}const Xn=_0x247c5a(0x23c);let Zn=class extends _0x50ca1f{constructor(_0x54df5d,_0x4f8120,_0x227b49,_0x38e097,_0x255e53,_0x53f511){const _0x845fa1=_0x247c5a;super(),this[_0x845fa1(0x27f)]=_0x54df5d,this[_0x845fa1(0x1b7)]=_0x4f8120,this[_0x845fa1(0x3e6)]=_0x227b49,this[_0x845fa1(0x325)]=_0x38e097,this[_0x845fa1(0x1b6)]=_0x53f511,G(this,_0x845fa1(0x2f0),new _0x24b100(null)),G(this,_0x845fa1(0x359),new Set()),G(this,'_blockProgressWatches',new Map()),G(this,'_latestStates',new Map()),G(this,'timeoutState$',this[_0x845fa1(0x2f0)][_0x845fa1(0x3d8)]());let _0x3fa948=()=>_0x30be06(Yn,{'state$':this[_0x845fa1(0x356)]});this[_0x845fa1(0x3a7)](_0x255e53[_0x845fa1(0x324)](_0x4fb6b8['GLOBAL'],()=>_0x107421(_0x3fa948,this[_0x845fa1(0x325)]))),this[_0x845fa1(0x3a7)](this[_0x845fa1(0x27f)]['state$'][_0x845fa1(0x2d5)](_0x1964c2=>{const _0x116575=_0x845fa1;this[_0x116575(0x40d)]=_0x1964c2,_0x1964c2[_0x116575(0x409)](_0x50ff66=>this[_0x116575(0x36c)](_0x50ff66));})),this[_0x845fa1(0x3a7)](this[_0x845fa1(0x1b6)]['urlChange$']['subscribe'](()=>{const _0x4f26af=_0x845fa1;this['_latestStates'][_0x4f26af(0x409)](_0x49e33a=>this[_0x4f26af(0x36c)](_0x49e33a));}));}['dispose'](){const _0x5e2115=_0x247c5a;this[_0x5e2115(0x359)][_0x5e2115(0x409)](_0x57a539=>this['_messageService'][_0x5e2115(0x3bc)](_0x57a539)),this['_messageIds']['clear'](),this[_0x5e2115(0x386)][_0x5e2115(0x409)](({timeoutId:_0x1b3b89})=>clearTimeout(_0x1b3b89)),this[_0x5e2115(0x386)][_0x5e2115(0x3cd)](),this[_0x5e2115(0x2f0)][_0x5e2115(0x36f)](),super[_0x5e2115(0x204)]();}[_0x247c5a(0x36c)](_0x37b893){const _0x5388df=_0x247c5a;let _0xcdac66=''+Xn+_0x37b893[_0x5388df(0x399)];if(_0x37b893['stage']===_0x338f29[_0x5388df(0x298)]){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this['_clearTimeoutState'](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)]['delete'](_0xcdac66);return;}if(!this[_0x5388df(0x3d5)](_0x37b893[_0x5388df(0x399)])){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x269)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)][_0x5388df(0x2ea)](_0xcdac66);return;}if(_0x37b893['stage']===_0x338f29[_0x5388df(0x1c2)]){this[_0x5388df(0x1fe)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x269)](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x30a)]({'id':_0xcdac66,'type':_0x2f977e[_0x5388df(0x3d2)],'content':this[_0x5388df(0x3e6)]['t'](_0x5388df(0x3ea))}),this[_0x5388df(0x359)][_0x5388df(0x2ea)](_0xcdac66);return;}if(_0x37b893[_0x5388df(0x2e0)]!==_0x338f29[_0x5388df(0x3d3)]||_0x37b893[_0x5388df(0x232)]<=0xa){this['_clearBlockProgressWatch'](_0x37b893[_0x5388df(0x399)]),this[_0x5388df(0x1b7)][_0x5388df(0x3bc)](_0xcdac66),this[_0x5388df(0x359)]['delete'](_0xcdac66);return;}this[_0x5388df(0x3a5)](_0x37b893)||(this[_0x5388df(0x1b7)][_0x5388df(0x30a)]({'id':_0xcdac66,'type':_0x2f977e['Loading'],'duration':0x1/0x0,'content':this['_localeService']['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0x37b893[_0x5388df(0x2e2)]+'/'+_0x37b893['totalBlocks']}),this['_messageIds'][_0x5388df(0x23b)](_0xcdac66));}[_0x247c5a(0x3a5)](_0x4026a4){const _0x47ae6b=_0x247c5a;let _0x10b9df=this['_blockProgressWatches'][_0x47ae6b(0x211)](_0x4026a4['unitId']);if((_0x10b9df==null?void 0x0:_0x10b9df[_0x47ae6b(0x2e2)])===_0x4026a4[_0x47ae6b(0x2e2)])return _0x10b9df['timedOut'];this[_0x47ae6b(0x1fe)](_0x4026a4[_0x47ae6b(0x399)]);let _0x1b8faa=setTimeout(()=>{const _0x433ef1=_0x47ae6b;let _0x413a88=this[_0x433ef1(0x386)][_0x433ef1(0x211)](_0x4026a4[_0x433ef1(0x399)]);if(!_0x413a88||_0x413a88[_0x433ef1(0x3ab)]!==_0x1b8faa)return;_0x413a88[_0x433ef1(0x1cd)]=!0x0;let _0x750331=''+Xn+_0x4026a4[_0x433ef1(0x399)];this['_messageService'][_0x433ef1(0x3bc)](_0x750331),this[_0x433ef1(0x359)][_0x433ef1(0x2ea)](_0x750331),this['_timeoutState$'][_0x433ef1(0x1c0)]({'unitId':_0x4026a4['unitId'],'content':this['_localeService']['t'](_0x433ef1(0x37b),String(_0x4026a4[_0x433ef1(0x2e2)]),String(_0x4026a4[_0x433ef1(0x232)])),'refreshLabel':this[_0x433ef1(0x3e6)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this['_blockProgressWatches'][_0x47ae6b(0x21f)](_0x4026a4[_0x47ae6b(0x399)],{'loadedBlocks':_0x4026a4['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x1b8faa}),!0x1;}[_0x247c5a(0x1fe)](_0x425717){const _0x2016de=_0x247c5a;let _0x17b122=this[_0x2016de(0x386)][_0x2016de(0x211)](_0x425717);_0x17b122&&(clearTimeout(_0x17b122[_0x2016de(0x3ab)]),this[_0x2016de(0x386)]['delete'](_0x425717),this[_0x2016de(0x269)](_0x425717));}[_0x247c5a(0x269)](_0x1eb87e){const _0x3cd55e=_0x247c5a;var _0x538374;((_0x538374=this[_0x3cd55e(0x2f0)]['value'])==null?void 0x0:_0x538374[_0x3cd55e(0x399)])===_0x1eb87e&&this[_0x3cd55e(0x2f0)][_0x3cd55e(0x1c0)](null);}[_0x247c5a(0x3d5)](_0x35135a){const _0x23e918=_0x247c5a;let _0x5dbb68=this[_0x23e918(0x1b6)][_0x23e918(0x20d)](_0x23e918(0x400));return!_0x5dbb68||_0x5dbb68===_0x35135a;}};Zn=q([K(0x0,_0x3b8ccc(_0x1a827f)),K(0x1,_0x4a0381),K(0x2,_0x3b8ccc(_0x5a18da)),K(0x3,_0x3b8ccc(_0x5c9bca)),K(0x4,_0x4bd601),K(0x5,Rn)],Zn);let Qn=class extends _0x50ca1f{constructor(_0x2f9409,_0x18e921,_0x22d518){const _0x10f3a1=_0x247c5a;super(),this[_0x10f3a1(0x3e5)]=_0x2f9409,this[_0x10f3a1(0x293)]=_0x18e921,this[_0x10f3a1(0x1cb)]=_0x22d518,G(this,'_cachedData',new Map()),G(this,_0x10f3a1(0x1b2),new Map()),G(this,_0x10f3a1(0x1d7),new Map()),G(this,_0x10f3a1(0x2ab),!0x1);}['disableLocalCache'](){const _0x3ac10a=_0x247c5a;this[_0x3ac10a(0x2ab)]=!0x0;}['enableLocalCache'](){const _0x2eb60e=_0x247c5a;this[_0x2eb60e(0x2ab)]=!0x1;}get[_0x247c5a(0x30b)](){const _0x71825c=_0x247c5a;return this[_0x71825c(0x1b2)];}[_0x247c5a(0x204)](){const _0x153a8f=_0x247c5a;this[_0x153a8f(0x38c)]()[_0x153a8f(0x1fc)](()=>super['dispose']());}async[_0x247c5a(0x2bc)](_0x279398){const _0x156b34=_0x247c5a;return this[_0x156b34(0x2ab)]?null:this[_0x156b34(0x293)][_0x156b34(0x39d)](_0x98c216(_0x279398));}async['saveOfflineData'](_0x182fbf,_0x172f28){const _0x21ba6d=_0x247c5a;let _0x103e49=this[_0x21ba6d(0x293)][_0x21ba6d(0x349)](_0x98c216(_0x182fbf),_0x172f28);return this['_trackActiveSaveTask'](_0x182fbf,_0x103e49),!!await _0x103e49;}async[_0x247c5a(0x32b)](_0x87b3e6,_0xe7e973){const _0x292594=_0x247c5a;let _0x5682bb=this[_0x292594(0x3b7)][_0x292594(0x211)](_0x87b3e6)??await this[_0x292594(0x293)][_0x292594(0x39d)](_0x98c216(_0x87b3e6));if(!_0x5682bb)return;let _0x212d3e=Date[_0x292594(0x218)](),_0x169637=new Date(_0x212d3e)[_0x292594(0x389)]();await this[_0x292594(0x293)][_0x292594(0x349)](_0x98c216(_0x87b3e6)+_0x292594(0x2e4)+_0x212d3e,{'reason':_0xe7e973,'createdAt':_0x169637,'data':_0x5682bb});}async[_0x247c5a(0x22c)](_0x4130ed){const _0x295c38=_0x247c5a;let _0x24af77=this['_saveTaskMap'][_0x295c38(0x211)](_0x4130ed);_0x24af77!==void 0x0&&(window['clearTimeout'](_0x24af77),this['_saveTaskMap'][_0x295c38(0x2ea)](_0x4130ed));let _0xb15de6=this[_0x295c38(0x1d7)]['get'](_0x4130ed);_0xb15de6&&await Promise['allSettled'](_0xb15de6),this[_0x295c38(0x3b7)][_0x295c38(0x2ea)](_0x4130ed),await this['_localStorageService'][_0x295c38(0x3d0)](_0x98c216(_0x4130ed));}[_0x247c5a(0x3a0)](_0x2f447f,_0x3897ef,_0x348ea6,_0x3db9ad){const _0x26f30d=_0x247c5a;let _0x54f46a=this[_0x26f30d(0x1cb)][_0x26f30d(0x323)](_0x2f447f);this[_0x26f30d(0x3b7)][_0x26f30d(0x21f)](_0x2f447f,{'unitID':_0x2f447f,'type':_0x3897ef,'awaitingChangeset':_0x348ea6,'mutations':_0x3db9ad,'rev':_0x54f46a}),this['_saveTaskMap'][_0x26f30d(0x2ed)](_0x2f447f)||this[_0x26f30d(0x1ee)](_0x2f447f);}[_0x247c5a(0x1ee)](_0xcb3263){const _0x1b6275=_0x247c5a;let _0x5b9dcb=this[_0x1b6275(0x255)]();_0x5b9dcb===0x0?this[_0x1b6275(0x2f5)](_0xcb3263):this[_0x1b6275(0x1b2)]['set'](_0xcb3263,window[_0x1b6275(0x1c8)](()=>this[_0x1b6275(0x2f5)](_0xcb3263),_0x5b9dcb));}[_0x247c5a(0x255)](){const _0x284986=_0x247c5a;return this['_configService'][_0x284986(0x29f)](_0x39f139)??_0x56be35;}[_0x247c5a(0x2f5)](_0x2e4c87){const _0x5b7f85=_0x247c5a;let _0x44bd02=this['_saveTaskMap'][_0x5b7f85(0x211)](_0x2e4c87);_0x44bd02!==void 0x0&&window[_0x5b7f85(0x249)](_0x44bd02);let _0x3be44d=this[_0x5b7f85(0x293)][_0x5b7f85(0x349)](_0x98c216(_0x2e4c87),this['_cachedData']['get'](_0x2e4c87))[_0x5b7f85(0x1fc)](()=>this[_0x5b7f85(0x1b2)][_0x5b7f85(0x2ea)](_0x2e4c87));return this[_0x5b7f85(0x2b9)](_0x2e4c87,_0x3be44d),_0x3be44d;}['_trackActiveSaveTask'](_0x471151,_0x47e927){const _0x506a1f=_0x247c5a;let _0x5a7d87=this['_activeSaveTaskMap'][_0x506a1f(0x211)](_0x471151);_0x5a7d87||(_0x5a7d87=new Set(),this['_activeSaveTaskMap'][_0x506a1f(0x21f)](_0x471151,_0x5a7d87)),_0x5a7d87[_0x506a1f(0x23b)](_0x47e927);let _0x1025ed=()=>{const _0x45000b=_0x506a1f;_0x5a7d87['delete'](_0x47e927),_0x5a7d87[_0x45000b(0x256)]===0x0&&this['_activeSaveTaskMap'][_0x45000b(0x2ea)](_0x471151);};_0x47e927[_0x506a1f(0x1fc)](_0x1025ed,_0x1025ed);}async['exhaustSavingTask'](){const _0x1c5535=_0x247c5a;let _0xf09a33=[];this[_0x1c5535(0x1b2)]['forEach']((_0x3f341c,_0x335a7d)=>{const _0x436ed0=_0x1c5535;window[_0x436ed0(0x249)](_0x3f341c),_0xf09a33['push'](this[_0x436ed0(0x2f5)](_0x335a7d)['then'](()=>{const _0x4af67c=_0x436ed0;this[_0x4af67c(0x1b2)][_0x4af67c(0x2ea)](_0x335a7d);}));}),await Promise[_0x1c5535(0x3c3)](_0xf09a33);}};Qn=q([K(0x0,_0xdca818),K(0x1,_0x24200d),K(0x2,_0x3b8ccc(_0x49db3a))],Qn);var $n=class extends _0x3318cc{constructor(){const _0x38e8a6=_0x247c5a;super(),G(this,_0x38e8a6(0x210),void 0x0),this[_0x38e8a6(0x210)]=_0x1412e7(window,_0x38e8a6(0x401))['pipe'](_0x3fa56b(this[_0x38e8a6(0x40c)]),_0x28413a({'bufferSize':0x1,'refCount':!0x0}),_0x13e54e(void 0x0));}[_0x247c5a(0x3b4)](_0x1eb4e0,_0x495fed,_0x11c354=!0x1){const _0x492b3f=_0x247c5a;let _0x1a50a6=new URL(window['location']['href']);_0x1a50a6[_0x492b3f(0x2f1)]['set'](_0x1eb4e0,_0x495fed),_0x11c354?window['history'][_0x492b3f(0x34c)]('','',_0x1a50a6[_0x492b3f(0x208)]()):window['history'][_0x492b3f(0x2d1)]('','',_0x1a50a6[_0x492b3f(0x208)]());}[_0x247c5a(0x2fc)](_0x4395b0,_0x45ddf7=!0x1){const _0x3d988e=_0x247c5a;let _0x3c6eb1=new URL(window[_0x3d988e(0x274)][_0x3d988e(0x2c3)]);_0x3c6eb1[_0x3d988e(0x2f1)][_0x3d988e(0x2ea)](_0x4395b0),_0x45ddf7?window[_0x3d988e(0x209)]['replaceState']('','',_0x3c6eb1[_0x3d988e(0x208)]()):window[_0x3d988e(0x209)][_0x3d988e(0x2d1)]('','',_0x3c6eb1['toString']());}[_0x247c5a(0x20d)](_0x18ef73){const _0x58e690=_0x247c5a;return new URL(window['location'][_0x58e690(0x2c3)])[_0x58e690(0x2f1)][_0x58e690(0x211)](_0x18ef73)??void 0x0;}};let $=class extends _0x50441f{constructor(_0x29d422=fn,_0x48aca5,_0x817941,_0x53644a,_0x52c8f6){const _0x19fa3d=_0x247c5a;super(),this[_0x19fa3d(0x3a3)]=_0x29d422,this[_0x19fa3d(0x37f)]=_0x48aca5,this[_0x19fa3d(0x325)]=_0x817941,this[_0x19fa3d(0x3e5)]=_0x53644a,this[_0x19fa3d(0x3fb)]=_0x52c8f6;let {..._0x170623}=_0x1ee81d({},fn,this[_0x19fa3d(0x3a3)]);this[_0x19fa3d(0x3e5)][_0x19fa3d(0x3e7)](_0x19fa3d(0x340),_0x170623);}[_0x247c5a(0x1db)](){const _0x18ac4b=_0x247c5a;this[_0x18ac4b(0x318)](),this[_0x18ac4b(0x3a7)](this[_0x18ac4b(0x3fb)][_0x18ac4b(0x2aa)](Y)),this[_0x18ac4b(0x31b)]();}[_0x247c5a(0x396)](){const _0x32414c=_0x247c5a;this[_0x32414c(0x201)]();}[_0x247c5a(0x318)](){const _0x16538e=_0x247c5a;var _0x266dbe;let _0x4fd978=[[mn],[Rn,{'useClass':$n}],[_0x4b4083,{'useClass':_0x3c7443}],[_0x1974ac,{'useClass':Qn}],[J],[Ln],[Z],[Q],[zn],[Zn]];this[_0x16538e(0x3a3)][_0x16538e(0x35b)]!==!0x1&&_0x4fd978[_0x16538e(0x319)]([Hn],[Bn],[Vn],[_n],[qn],[X]),this[_0x16538e(0x3a3)]['enableFrontendLog']&&_0x4fd978[_0x16538e(0x319)]([Jn]),_0x3b0029(this[_0x16538e(0x325)],_0x47a538(_0x4fd978,(_0x266dbe=this[_0x16538e(0x3a3)])==null?void 0x0:_0x266dbe[_0x16538e(0x2c8)]));}['_registerRenderDependencies'](){const _0x438067=_0x247c5a;this[_0x438067(0x3a3)][_0x438067(0x35b)]!==!0x1&&this[_0x438067(0x3a7)](this['_renderManagerService'][_0x438067(0x354)](_0x98e284[_0x438067(0x3b2)],[Dn])),this[_0x438067(0x3a7)](this[_0x438067(0x37f)][_0x438067(0x354)](_0x98e284[_0x438067(0x3bd)],[kn]));}[_0x247c5a(0x31b)](){const _0xeefa4=_0x247c5a;_0x327d6b(this[_0xeefa4(0x325)],[[Z],[Q],[J],[Ln],[zn],[Zn]]),this[_0xeefa4(0x3a3)]['enableDocumentCollaborationUI']!==!0x1&&_0x327d6b(this[_0xeefa4(0x325)],[[qn],[X]]),this['_config']['enableFrontendLog']&&_0x327d6b(this[_0xeefa4(0x325)],[[Jn]]);}};G($,_0x247c5a(0x245),_0x247c5a(0x252)),G($,_0x247c5a(0x21c),un),G($,_0x247c5a(0x3c4),dn),$=q([_0x3e9939(_0x3df221,_0x2f83a4,_0x5161e3,_0x3bb077,_0x1724e3,_0x74c715,_0x1116a6),K(0x1,_0x34d5fc),K(0x2,_0x3b8ccc(_0x5c9bca)),K(0x3,_0xdca818),K(0x4,_0x3fa174)],$);let er=class extends _0x25c99b{constructor(_0x21d2e5,_0x42d501,_0x42a6e2,_0x188707,_0x227805){super(_0x21d2e5,_0x42d501,_0x42a6e2,_0x188707,_0x227805);}async[_0x247c5a(0x21b)](_0x5a929d){const _0x1ba774=_0x247c5a;let _0x4200cf=await this[_0x1ba774(0x2da)](),_0x43f348=this[_0x1ba774(0x303)](_0x5a929d,_0x4200cf);return this['_doCreateSocket'](_0x43f348);}[_0x247c5a(0x303)](_0x2d6eca,_0x14d649){const _0x5357ea=_0x247c5a;let _0x26c1cd=typeof window>'u'?new URL(_0x2d6eca):new URL(_0x2d6eca,window[_0x5357ea(0x274)][_0x5357ea(0x3d9)]);_0x26c1cd[_0x5357ea(0x2f1)][_0x5357ea(0x21f)](_0x5357ea(0x370),_0x14d649);let _0x3106c4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5357ea(0x274)][_0x5357ea(0x2e1)]);return _0x3106c4[_0x5357ea(0x211)]('runId')&&_0x26c1cd[_0x5357ea(0x2f1)][_0x5357ea(0x21f)](_0x5357ea(0x2d3),_0x3106c4[_0x5357ea(0x211)]('runId')),_0x26c1cd[_0x5357ea(0x208)]();}async[_0x247c5a(0x2da)](){const _0x6b9947=_0x247c5a;var _0x74a968;let _0x97e070=this['_configService'][_0x6b9947(0x29f)](_0xc7ece1),_0x25bf22=(_0x97e070==null?void 0x0:_0x97e070[_0x6b9947(0x327)])??_0x3a4d7e;return((_0x74a968=(await this[_0x6b9947(0x1e3)][_0x6b9947(0x211)](_0x25bf22,{'headers':{'Content-Type':_0x6b9947(0x37e)}}))[_0x6b9947(0x2d9)])==null?void 0x0:_0x74a968['ticket'])??'';}};er=q([K(0x0,_0x3b8ccc(_0x5c9bca)),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0xdca818),K(0x3,_0x583b3f),K(0x4,_0x3b6c27)],er);let tr=class extends _0x50ca1f{constructor(_0x430ed6,_0x2c8633,_0x2c8c28){const _0x4ba7db=_0x247c5a;super(),this[_0x4ba7db(0x219)]=_0x430ed6,this['_httpService']=_0x2c8633,this['_configService']=_0x2c8c28;}async[_0x247c5a(0x407)](_0x411377,_0x2eaa87,_0x594aa3,..._0x51f2ce){const _0x568ad3=_0x247c5a;let _0x15ec09=this[_0x568ad3(0x219)]['getFocusedUnit']();if(!_0x15ec09)throw Error(_0x568ad3(0x36d));let _0x800198=(this[_0x568ad3(0x3e5)][_0x568ad3(0x29f)](_0x1db53f)??_0x41c70c)+'/'+_0x411377+_0x568ad3(0x280)+_0x2eaa87,_0x57d1bd={'scriptId':_0x411377,'runId':new URL(window[_0x568ad3(0x274)]['href'])[_0x568ad3(0x2f1)][_0x568ad3(0x211)]('runId')??'','function':_0x2eaa87,'unitId':_0x15ec09[_0x568ad3(0x308)](),'argsOfFunction':JSON[_0x568ad3(0x257)](_0x51f2ce),'invokeId':_0x594aa3[_0x568ad3(0x234)]??'','executionId':_0x594aa3[_0x568ad3(0x32a)]??''};try{let _0x5cefc6=await this[_0x568ad3(0x1e3)][_0x568ad3(0x20e)](_0x800198,{'body':_0x57d1bd});return _0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x3f2)]&&_0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x3f2)][_0x568ad3(0x2b2)]!==_0x530575['OK']?_0x568ad3(0x3d4):_0x5cefc6[_0x568ad3(0x2d9)][_0x568ad3(0x222)];}catch{return _0x568ad3(0x3d4);}}};tr=q([K(0x0,_0x3fd3c3),K(0x1,_0x3b8ccc(_0x47169a)),K(0x2,_0xdca818)],tr);const nr=0x7530,rr='ACTIVE_UNIT_EVENT_CHANNEL';var ir=class extends _0x50ca1f{constructor(){const _0x13bb30=_0x247c5a;super(),G(this,_0x13bb30(0x3fc),_0x4a2001()),G(this,'_selfUnitIDs',new Set()),G(this,'_unitOnClients',new Map()),G(this,_0x13bb30(0x3d7),null),G(this,'_clearOtherTimers',new Map()),G(this,'_unitStatus',new Map()),this[_0x13bb30(0x302)]();}[_0x247c5a(0x204)](){const _0x4432b1=_0x247c5a;super[_0x4432b1(0x204)](),this[_0x4432b1(0x2c2)][_0x4432b1(0x409)]((_0x5910de,_0x4cb8f6)=>this[_0x4432b1(0x20a)](_0x4cb8f6)),this[_0x4432b1(0x3d7)]&&window[_0x4432b1(0x2d4)](this[_0x4432b1(0x3d7)]);}[_0x247c5a(0x39c)](_0x3e114e){const _0x2fc8d5=_0x247c5a;return this[_0x2fc8d5(0x1d0)](_0x3e114e)['pipe'](_0xc32d41());}[_0x247c5a(0x215)](_0x41c769){const _0x1eaf40=_0x247c5a;this[_0x1eaf40(0x2db)]['size']===0x0&&this[_0x1eaf40(0x357)](),this[_0x1eaf40(0x2db)]['add'](_0x41c769),this['_send']({'type':0x0,'memberID':this[_0x1eaf40(0x3fc)],'unitIDs':[_0x41c769],'isForwarded':!0x1});}[_0x247c5a(0x25f)](_0x12dbec){const _0x3045b9=_0x247c5a;this[_0x3045b9(0x2db)][_0x3045b9(0x2ea)](_0x12dbec),this['_selfUnitIDs']['size']===0x0&&this[_0x3045b9(0x3d7)]&&window[_0x3045b9(0x2d4)](this['_heartbeatTimer']);}[_0x247c5a(0x302)](){const _0x39ebbe=_0x247c5a;this[_0x39ebbe(0x3a7)](_0x265f18(_0x1412e7(window,'storage')[_0x39ebbe(0x2d5)](_0x3c97cd=>{const _0xc85310=_0x39ebbe;if(_0x3c97cd[_0xc85310(0x2f6)]!==rr||!_0x3c97cd['newValue'])return;let _0x1020b7=JSON['parse'](_0x3c97cd['newValue']);this[_0xc85310(0x20f)](_0x1020b7);}))),window['addEventListener'](_0x39ebbe(0x383),()=>this['_send']({'type':0x1,'memberID':this[_0x39ebbe(0x3fc)],'unitIDs':Array[_0x39ebbe(0x287)](this[_0x39ebbe(0x2db)])}));}[_0x247c5a(0x20f)](_0x4bc15a){const _0x357dfe=_0x247c5a;switch(_0x4bc15a[_0x357dfe(0x2d8)]){case 0x0:this[_0x357dfe(0x253)](_0x4bc15a);break;case 0x1:this[_0x357dfe(0x2fa)](_0x4bc15a);break;case 0x2:this[_0x357dfe(0x3a4)](_0x4bc15a);}}[_0x247c5a(0x253)](_0x55f4ca){const _0x43ec82=_0x247c5a;let {unitIDs:_0x57d578,memberID:_0x53eb6f,isForwarded:_0x220ba8}=_0x55f4ca;_0x57d578[_0x43ec82(0x409)](_0x4fae80=>{const _0x5d51db=_0x43ec82;if(!_0x220ba8&&this[_0x5d51db(0x289)][_0x5d51db(0x2ed)](_0x4fae80)&&this[_0x5d51db(0x1d0)](_0x4fae80)[_0x5d51db(0x1c0)](_0x258828['OTHER_CLIENTS_EDITING']),!this[_0x5d51db(0x289)][_0x5d51db(0x2ed)](_0x4fae80)||!this[_0x5d51db(0x289)][_0x5d51db(0x211)](_0x4fae80)[_0x5d51db(0x2ed)](_0x53eb6f)){let _0x319dfd=this['_unitOnClients'][_0x5d51db(0x211)](_0x4fae80)||new Set();_0x319dfd['add'](_0x53eb6f),this[_0x5d51db(0x289)][_0x5d51db(0x21f)](_0x4fae80,_0x319dfd),this['_scheduleClearOtherTimer'](_0x53eb6f);}}),_0x220ba8||this[_0x43ec82(0x376)]({'type':0x0,'memberID':this[_0x43ec82(0x3fc)],'unitIDs':[...this[_0x43ec82(0x2db)]],'isForwarded':!0x0});}[_0x247c5a(0x23f)](_0xc5478a){const _0x4b8469=_0x247c5a;this['_removeClearOtherTimer'](_0xc5478a);let _0x3854bf=window[_0x4b8469(0x1c8)](()=>{const _0x57d16b=_0x4b8469;this[_0x57d16b(0x289)]['forEach'](_0x5a3311=>{const _0x17b116=_0x57d16b;_0x5a3311[_0x17b116(0x2ea)](_0xc5478a);});},nr*0x2);this[_0x4b8469(0x2c2)]['set'](_0xc5478a,_0x3854bf);}[_0x247c5a(0x20a)](_0x2bab7d){const _0x61cb3=_0x247c5a;if(this[_0x61cb3(0x2c2)][_0x61cb3(0x2ed)](_0x2bab7d)){let _0x22723f=this[_0x61cb3(0x2c2)][_0x61cb3(0x211)](_0x2bab7d);_0x22723f&&window['clearTimeout'](_0x22723f),this[_0x61cb3(0x2c2)][_0x61cb3(0x21f)](_0x2bab7d,null);}}[_0x247c5a(0x2fa)](_0x538da5){const _0x2a9c6d=_0x247c5a;let {memberID:_0x40cee5,unitIDs:_0x5dda0b}=_0x538da5;_0x5dda0b[_0x2a9c6d(0x409)](_0x351c62=>{const _0x55af1f=_0x2a9c6d;var _0x5cf7e5;let _0x5e9d84=this['_unitOnClients'][_0x55af1f(0x211)](_0x351c62);_0x5e9d84&&(_0x5e9d84['delete'](_0x40cee5),(_0x5cf7e5=this['_ensureSubject'](_0x351c62))==null||_0x5cf7e5[_0x55af1f(0x1c0)](_0x5e9d84[_0x55af1f(0x256)]===0x0?_0x258828[_0x55af1f(0x278)]:_0x258828['OTHER_CLIENTS_EDITING']));}),this[_0x2a9c6d(0x20a)](_0x40cee5);}[_0x247c5a(0x3a4)](_0x49e9d8){const _0x7ac323=_0x247c5a;this[_0x7ac323(0x23f)](_0x49e9d8[_0x7ac323(0x2f2)]);}[_0x247c5a(0x376)](_0x25b7bd){const _0xc7dfe4=_0x247c5a;localStorage[_0xc7dfe4(0x349)](rr,JSON[_0xc7dfe4(0x257)](_0x25b7bd));}['_scheduleHeartbeat'](){const _0x311fe1=_0x247c5a;this['_heartbeatTimer']=window[_0x311fe1(0x395)](()=>{const _0x38ec09=_0x311fe1;this[_0x38ec09(0x376)]({'type':0x2,'memberID':this[_0x38ec09(0x3fc)]});},nr);}['_ensureSubject'](_0x426355){const _0x414cb5=_0x247c5a;return this['_unitStatus']['has'](_0x426355)||this[_0x414cb5(0x36a)][_0x414cb5(0x21f)](_0x426355,new _0x24b100(_0x258828[_0x414cb5(0x278)])),this[_0x414cb5(0x36a)][_0x414cb5(0x211)](_0x426355);}};export{er as BrowserCollaborationSocketService,J as DesktopCollaborationStatusDisplayController,Rn as IURLService,tr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService};
|
|
1
|
+
const _0x87a36c=_0x3abf;(function(_0x3b3096,_0x34c36f){const _0x5abc23=_0x3abf,_0x179cc4=_0x3b3096();while(!![]){try{const _0x61375e=-parseInt(_0x5abc23(0x2ec))/0x1*(parseInt(_0x5abc23(0x1e6))/0x2)+-parseInt(_0x5abc23(0x1f5))/0x3*(parseInt(_0x5abc23(0x1a6))/0x4)+parseInt(_0x5abc23(0x15f))/0x5*(-parseInt(_0x5abc23(0x2b3))/0x6)+-parseInt(_0x5abc23(0x19a))/0x7*(-parseInt(_0x5abc23(0x23b))/0x8)+parseInt(_0x5abc23(0x27a))/0x9*(-parseInt(_0x5abc23(0x363))/0xa)+parseInt(_0x5abc23(0x259))/0xb*(parseInt(_0x5abc23(0x3c4))/0xc)+parseInt(_0x5abc23(0x37f))/0xd*(parseInt(_0x5abc23(0x2c4))/0xe);if(_0x61375e===_0x34c36f)break;else _0x179cc4['push'](_0x179cc4['shift']());}catch(_0x22a374){_0x179cc4['push'](_0x179cc4['shift']());}}}(_0x3528,0x93911));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d37d6,CollaborationController as _0x371568,CollaborationSessionService as _0x538451,CollaborationSocketService as _0x25b19d,CollaborationStatus as _0x38d232,CollaborationUIEventId as _0x401512,CollaborationUIEventService as _0x36f4e2,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x50ff59,DEFAULT_WS_SESSION_TICKET_URL as _0x12f021,DataLoaderService as _0x25c527,DocCollaborationEntity as _0x3ca928,ILocalCacheService as _0xd043a9,LOCAL_CACHE_INTERVAL as _0x201675,LOCAL_CACHE_INTERVAL_KEY as _0x12dffe,MemberService as _0x207680,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1ab0d2,SessionStatus as _0x3e1a2e,UnitStatus as _0x4fd19e,UniverCollaborationClientPlugin as _0x273b5d,getLocalCacheKey as _0x35b96f}from'@univerjs-pro/collaboration-client';import{COLORS as _0x316398,ColorKit as _0xa89cfc,CommandType as _0x238d83,DOC_RANGE_TYPE as _0x24d643,DependentOn as _0x4cbe11,Disposable as _0x2e1ec0,DisposableCollection as _0x2a6524,ICommandService as _0x204dc2,IConfigService as _0x1b95f3,IImageIoService as _0x2234ec,ILocalStorageService as _0x2bdb10,ILogService as _0x31aa30,IUniverInstanceService as _0x5b5bb5,Inject as _0x27756b,Injector as _0x25c197,LocaleService as _0x19f7e2,Plugin as _0x8bb285,Rectangle as _0x150667,RxDisposable as _0x172cd9,ThemeService as _0x1b3092,Tools as _0x3690a5,UniverInstanceType as _0x5efd3b,Workbook as _0x3af08a,createIdentifier as _0x1fdd4b,debounce as _0x29a649,fromEventSubject as _0x101fb9,generateRandomId as _0x5692c3,isInternalEditorID as _0x510849,merge as _0x2a1758,mergeOverrideWithDependencies as _0x224fc9,registerDependencies as _0x180690,toDisposable as _0x32283a,touchDependencies as _0x23c5a9}from'@univerjs/core';import{BuiltInUIPart as _0x3be819,IBeforeCloseService as _0x3cca16,IMessageService as _0x1ffcd0,INotificationService as _0x3b3c46,IUIPartsService as _0xf04e95,IUnitPresenceUIAdapterRegistry as _0x29e494,connectInjector as _0x5a61f2,useDependency as _0x2a3511,useObservable as _0xb500c9}from'@univerjs/ui';import{BehaviorSubject as _0x400c7b,Subject as _0x2e6913,combineLatest as _0xaca8c8,debounceTime as _0x428eca,distinctUntilChanged as _0x4f92af,filter as _0x2cbae3,fromEvent as _0x3bd2b7,mapTo as _0x27c19b,merge as _0x5acddf,of as _0x4ee3c4,shareReplay as _0x2d9815,switchMap as _0x145491,takeUntil as _0xefeb1b,throttle as _0x10cb6c,timer as _0x3d8b9a}from'rxjs';import{distinctUntilChanged as _0x48f1f2,filter as _0x1b2d75,map as _0x53ab17,switchMap as _0x32f945,takeUntil as _0x3cebbf,throttleTime as _0x3a2db6}from'rxjs/operators';import{Button as _0x382e18,MessageType as _0x106a5c,Tooltip as _0x168639,clsx as _0xd70463}from'@univerjs/design';import{LoadingMultiIcon as _0x50d91a,OffLineIcon as _0x2b58f0,OnLineIcon as _0x1f64b4,WarningIcon as _0x158935}from'@univerjs/icons';import{createElement as _0x52bd92,useCallback as _0x2655dd,useMemo as _0x343f08}from'react';import{jsx as _0x51b6a5,jsxs as _0x1a1d5a}from'react/jsx-runtime';import{CollaborationEvent as _0x13a1ec,ISnapshotServerService as _0x407610,ITransformService as _0x366b2a,RevisionService as _0x4edc47,SnapshotLoadStage as _0x5e9641,SnapshotLoadingService as _0x11bb00,UniverCollaborationPlugin as _0x4447fd,isTransformMutationFailure as _0x474f1b,isTransformMutationsWithChangesetSuccess as _0x1fe03b}from'@univerjs-pro/collaboration';import{UniverLicensePlugin as _0x3f124e}from'@univerjs-pro/license';import{DocSelectionManagerService as _0x275ee4,DocSkeletonManagerService as _0x4322ff,DocStateChangeManagerService as _0x41ba99,RichTextEditingMutation as _0x1297ac,SetTextSelectionsOperation as _0x1534b1,UniverDocsPlugin as _0x42f7f9}from'@univerjs/docs';import{DocIMEInputManagerService as _0x195603,IDocClipboardService as _0x2c3127,NodePositionConvertToCursor as _0x4a6d90,NodePositionConvertToRectRange as _0x44ac00,SetDocZoomRatioOperation as _0x276a72,TEXT_RANGE_LAYER_INDEX as _0x27bcf9,UniverDocsUIPlugin as _0x8d1833}from'@univerjs/docs-ui';import{DocumentSkeletonPageType as _0x2f929c,IRenderManagerService as _0xc67b4e,Rect as _0x420f50,RegularPolygon as _0x46a4f9,SHEET_VIEWPORT_KEY as _0x23960d,Shape as _0x3a8676,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0xebf1f6,UniverRenderEnginePlugin as _0xb81a5b,Vector2 as _0x43f019,getColor as _0x31c3dd,getDocumentSkeletonColumnPagePathInfo as _0x24e369}from'@univerjs/engine-render';import{HTTPService as _0x88c090,ISocketService as _0x2a939f,UniverNetworkPlugin as _0xadda08,WebSocketService as _0x36ccf0}from'@univerjs/network';import{deserializeRangeWithSheet as _0x209ded,serializeRangeWithSheet as _0x509b5d}from'@univerjs/engine-formula';import{EffectRefRangId as _0x128c29,RefRangeService as _0x421726,SetSelectionsOperation as _0x50434e,SetWorksheetActivateCommand as _0x5b26c0,SheetsSelectionsService as _0x4fa6ca,handleDeleteRangeMoveLeft as _0x39c1ad,handleDeleteRangeMoveUp as _0x2655d3,handleIRemoveCol as _0x179292,handleIRemoveRow as _0x5760a7,handleInsertCol as _0x5b0786,handleInsertRangeMoveDown as _0xb7c7fb,handleInsertRangeMoveRight as _0x15a794,handleInsertRow as _0x374e31,handleMoveRange as _0x41b139,runRefRangeMutations as _0x1f9050}from'@univerjs/sheets';import{SheetSkeletonManagerService as _0x51769a,getCoordByCell as _0x5e5b67,getSheetObject as _0x71dc0e}from'@univerjs/sheets-ui';import{ErrorCode as _0x4c32fa}from'@univerjs/protocol';function nn(_0x20771b){const _0x5290b5=_0x3abf;switch(_0x20771b){case _0x38d232['OFFLINE']:return{'icon':_0x51b6a5(_0x2b58f0,{}),'colorClass':'univer-text-red-500','i18nKey':_0x5290b5(0x395),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x5290b5(0x350)};case _0x38d232[_0x5290b5(0x162)]:return{'icon':_0x51b6a5(_0x2b58f0,{}),'colorClass':'univer-text-orange-500','i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':'static'};case _0x38d232[_0x5290b5(0x26b)]:return{'icon':_0x51b6a5(_0x50d91a,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x5290b5(0x2ce),'clickable':!0x1,'indicator':_0x5290b5(0x165)};case _0x38d232[_0x5290b5(0x28a)]:return{'icon':_0x51b6a5(_0x1f64b4,{}),'colorClass':_0x5290b5(0x2a2),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x5290b5(0x350)};case _0x38d232['AWAITING']:case _0x38d232[_0x5290b5(0x35a)]:return{'icon':_0x51b6a5(_0x50d91a,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x5290b5(0x16f),'clickable':!0x1,'indicator':_0x5290b5(0x165)};case _0x38d232['PENDING']:return{'icon':_0x51b6a5(_0x50d91a,{}),'colorClass':_0x5290b5(0x237),'i18nKey':_0x5290b5(0x16f),'clickable':!0x1,'indicator':'spin'};case _0x38d232[_0x5290b5(0x1c2)]:return{'icon':_0x51b6a5(_0x1f64b4,{}),'colorClass':_0x5290b5(0x35b),'i18nKey':_0x5290b5(0x211),'clickable':!0x1,'indicator':'static'};}}function rn(_0x16f751){const _0x2050c0=_0x3abf;let {status$:_0x33578a}=_0x16f751,_0x135286=_0xb500c9(_0x33578a,_0x38d232[_0x2050c0(0x28a)]),_0x26bcd4=_0x2a3511(_0x19f7e2),_0x3c8fee=_0x2a3511(_0x538451),_0x4533f3=_0x343f08(()=>nn(_0x135286),[_0x135286]),_0x252b70=_0x135286!==_0x38d232[_0x2050c0(0x1ef)],_0x2936ea=_0x26bcd4['t'](_0x4533f3[_0x2050c0(0x24c)]),_0x562032=_0x4533f3[_0x2050c0(0x399)]?_0x26bcd4['t'](_0x4533f3[_0x2050c0(0x399)]):_0x2936ea,_0x8ed0ec=_0x2655dd(()=>{const _0x2107d4=_0x2050c0;_0x252b70||_0x3c8fee[_0x2107d4(0x1fb)]();},[_0x252b70,_0x3c8fee]),_0x2472ea=_0x2655dd(_0x22acdb=>{const _0x156435=_0x2050c0;!_0x252b70&&(_0x22acdb[_0x156435(0x2c9)]===_0x156435(0x321)||_0x22acdb['key']==='\x20')&&(_0x22acdb[_0x156435(0x32c)](),_0x3c8fee[_0x156435(0x1fb)]());},[_0x252b70,_0x3c8fee]),_0x3e4ff9=_0x51b6a5(_0x2050c0(0x352),{'className':_0xd70463(_0x2050c0(0x3cf),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x4533f3[_0x2050c0(0x17e)],{'univer-animate-spin':_0x4533f3[_0x2050c0(0x29f)]==='spin','univer-animate-pulse':_0x4533f3['indicator']==='pulse'}),'aria-hidden':_0x2050c0(0x34a),'children':_0x4533f3[_0x2050c0(0x33b)]}),_0xaf3be8=_0x51b6a5('span',{'className':_0xd70463(_0x2050c0(0x3cf),_0x2050c0(0x187),_0x2050c0(0x23d),_0x2050c0(0x224),_0x2050c0(0x3bf),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x4533f3[_0x2050c0(0x1ec)],'univer-cursor-default':!_0x4533f3[_0x2050c0(0x1ec)]}),'children':_0x3e4ff9});return _0x4533f3['clickable']?_0x51b6a5(_0x168639,{'title':_0x562032,'placement':_0x2050c0(0x388),'children':_0x51b6a5(_0x2050c0(0x34d),{'type':_0x2050c0(0x34d),'onClick':_0x8ed0ec,'onKeyDown':_0x2472ea,'className':_0xd70463('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x2050c0(0x2c7),_0x2050c0(0x378),_0x2050c0(0x1ed)),'aria-label':_0x2936ea+_0x2050c0(0x3a1)+_0x562032,'role':_0x2050c0(0x2a1),'aria-live':_0x2050c0(0x277),'aria-atomic':_0x2050c0(0x34a),'children':_0xaf3be8})}):_0x51b6a5(_0x168639,{'title':_0x562032,'placement':_0x2050c0(0x388),'children':_0x51b6a5(_0x2050c0(0x308),{'className':_0xd70463(_0x2050c0(0x2e0),'univer-border-none\x20univer-bg-transparent',_0x2050c0(0x378)),'aria-label':_0x2936ea,'role':_0x2050c0(0x2a1),'aria-live':_0x2050c0(0x277),'aria-atomic':_0x2050c0(0x34a),'children':_0xaf3be8})});}function G(_0x5ae65c){'@babel/helpers - typeof';const _0x2e5716=_0x3abf;return G=typeof Symbol==_0x2e5716(0x3c2)&&typeof Symbol['iterator']==_0x2e5716(0x19d)?function(_0x5bf163){return typeof _0x5bf163;}:function(_0x169ae6){const _0x55c4fc=_0x2e5716;return _0x169ae6&&typeof Symbol==_0x55c4fc(0x3c2)&&_0x169ae6['constructor']===Symbol&&_0x169ae6!==Symbol[_0x55c4fc(0x3c7)]?'symbol':typeof _0x169ae6;},G(_0x5ae65c);}function an(_0x3a13a0,_0x4b07b3){const _0x317fce=_0x3abf;if(G(_0x3a13a0)!='object'||!_0x3a13a0)return _0x3a13a0;var _0x2a6425=_0x3a13a0[Symbol[_0x317fce(0x385)]];if(_0x2a6425!==void 0x0){var _0x1df5f7=_0x2a6425[_0x317fce(0x3cd)](_0x3a13a0,_0x4b07b3||_0x317fce(0x2fc));if(G(_0x1df5f7)!=_0x317fce(0x37e))return _0x1df5f7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b07b3===_0x317fce(0x1fe)?String:Number)(_0x3a13a0);}function on(_0x1eacc8){const _0x119174=_0x3abf;var _0x31aeb4=an(_0x1eacc8,'string');return G(_0x31aeb4)==_0x119174(0x19d)?_0x31aeb4:_0x31aeb4+'';}function K(_0x52e201,_0xb4cae,_0x16e307){return(_0xb4cae=on(_0xb4cae))in _0x52e201?Object['defineProperty'](_0x52e201,_0xb4cae,{'value':_0x16e307,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52e201[_0xb4cae]=_0x16e307,_0x52e201;}function q(_0x1b3f4f,_0xcd146b){return function(_0x25d9f5,_0x214608){_0xcd146b(_0x25d9f5,_0x214608,_0x1b3f4f);};}function J(_0x398210,_0x3d7f6a,_0x159ce1,_0x4e7cea){const _0x5d004a=_0x3abf;var _0x4aac74=arguments[_0x5d004a(0x2f5)],_0x15848b=_0x4aac74<0x3?_0x3d7f6a:_0x4e7cea===null?_0x4e7cea=Object['getOwnPropertyDescriptor'](_0x3d7f6a,_0x159ce1):_0x4e7cea,_0xc08a56;if(typeof Reflect==_0x5d004a(0x37e)&&typeof Reflect[_0x5d004a(0x396)]==_0x5d004a(0x3c2))_0x15848b=Reflect[_0x5d004a(0x396)](_0x398210,_0x3d7f6a,_0x159ce1,_0x4e7cea);else{for(var _0x49a3ab=_0x398210[_0x5d004a(0x2f5)]-0x1;_0x49a3ab>=0x0;_0x49a3ab--)(_0xc08a56=_0x398210[_0x49a3ab])&&(_0x15848b=(_0x4aac74<0x3?_0xc08a56(_0x15848b):_0x4aac74>0x3?_0xc08a56(_0x3d7f6a,_0x159ce1,_0x15848b):_0xc08a56(_0x3d7f6a,_0x159ce1))||_0x15848b);}return _0x4aac74>0x3&&_0x15848b&&Object[_0x5d004a(0x1b2)](_0x3d7f6a,_0x159ce1,_0x15848b),_0x15848b;}let Y=class extends _0x2e1ec0{constructor(_0x580866,_0x5a5f13,_0x2fadbe,_0x4e7c23,_0x20a965){const _0x1fb0ab=_0x3abf;super(),this[_0x1fb0ab(0x369)]=_0x580866,this[_0x1fb0ab(0x31d)]=_0x5a5f13,this['_collaborationController']=_0x2fadbe,this[_0x1fb0ab(0x2a9)]=_0x4e7c23,this[_0x1fb0ab(0x31b)]=_0x20a965,K(this,_0x1fb0ab(0x38d),new _0x400c7b(_0x38d232[_0x1fb0ab(0x28a)])),K(this,_0x1fb0ab(0x275),new Map()),this['_initStatusComponent'](),this['_initStatusListener'](),this['_initPresenceStatusComponents']();}[_0x87a36c(0x1b1)](){const _0x208205=_0x87a36c;this[_0x208205(0x275)][_0x208205(0x1e2)](_0x10cd05=>_0x10cd05[_0x208205(0x1b1)]()),this[_0x208205(0x275)]['clear'](),this[_0x208205(0x38d)]['complete'](),super[_0x208205(0x1b1)]();}[_0x87a36c(0x248)](){const _0x3b868f=_0x87a36c;this[_0x3b868f(0x35d)](_0x5acddf(this[_0x3b868f(0x369)][_0x3b868f(0x306)],this[_0x3b868f(0x369)][_0x3b868f(0x20a)](_0x5efd3b['UNIVER_DOC']),this[_0x3b868f(0x369)][_0x3b868f(0x20a)](_0x5efd3b['UNIVER_SHEET']))[_0x3b868f(0x1a8)](_0x53ab17(()=>sn(this[_0x3b868f(0x369)])),_0x48f1f2(),_0x145491(_0x55e6bd=>_0x55e6bd?this[_0x3b868f(0x273)]['getCollabEntity$'](_0x55e6bd):_0x4ee3c4(null)),_0x145491(_0x1ed158=>_0x1ed158?_0x1ed158[_0x3b868f(0x29c)]:_0x4ee3c4(_0x38d232['NOT_COLLAB'])))[_0x3b868f(0x310)](_0x1494a1=>{const _0x2b43cc=_0x3b868f;this[_0x2b43cc(0x38d)][_0x2b43cc(0x1b3)](_0x1494a1);}));}[_0x87a36c(0x27c)](){const _0xf24ef5=_0x87a36c;this['disposeWithMe'](this[_0xf24ef5(0x2a9)]['registerComponent'](_0x3be819[_0xf24ef5(0x1e9)],()=>_0x5a61f2(cn({'status$':this[_0xf24ef5(0x38d)]['asObservable']()}),this['_injector'])));}['_initPresenceStatusComponents'](){const _0x5db53c=_0x87a36c;let _0x2b8735=this[_0x5db53c(0x31b)][_0x5db53c(0x184)][_0x5db53c(0x310)](_0x386b01=>{this['_syncPresenceStatusComponents'](_0x386b01);});this['disposeWithMe'](_0x32283a(()=>_0x2b8735['unsubscribe']()));}[_0x87a36c(0x23c)](_0x3d43fa){const _0x23a692=_0x87a36c;let _0x1da5bc=new Map(_0x3d43fa[_0x23a692(0x26a)](_0x23466d=>_0x23466d['statusUIPart']!=null)[_0x23a692(0x284)](_0x5f39c2=>[_0x5f39c2['unitType'],_0x5f39c2]));this[_0x23a692(0x275)]['forEach']((_0x5cb17b,_0x237d30)=>{const _0x4e0eec=_0x23a692;_0x1da5bc[_0x4e0eec(0x364)](_0x237d30)||(_0x5cb17b[_0x4e0eec(0x1b1)](),this[_0x4e0eec(0x275)][_0x4e0eec(0x2d8)](_0x237d30));}),_0x1da5bc[_0x23a692(0x1e2)]((_0x4ffee3,_0x4efa97)=>{const _0x5c46c7=_0x23a692;this[_0x5c46c7(0x275)][_0x5c46c7(0x364)](_0x4efa97)||this[_0x5c46c7(0x32e)](_0x4ffee3);});}[_0x87a36c(0x32e)](_0x32fe3f){const _0x5bedd0=_0x87a36c;let _0x541aa5=_0x32fe3f[_0x5bedd0(0x31c)];if(!_0x541aa5)return;let _0x1fc796=new _0x2a6524(),_0x1db9f0=new _0x400c7b(_0x38d232[_0x5bedd0(0x28a)]);_0x1fc796[_0x5bedd0(0x38c)](_0x32283a(()=>_0x1db9f0[_0x5bedd0(0x29b)]())),_0x1fc796['add'](this['_uiPartsService']['registerComponent'](_0x541aa5,()=>_0x5a61f2(cn({'status$':_0x1db9f0[_0x5bedd0(0x1d9)]()}),this[_0x5bedd0(0x31d)])));let _0x1bd6e6=this[_0x5bedd0(0x369)][_0x5bedd0(0x20a)](_0x32fe3f[_0x5bedd0(0x340)])[_0x5bedd0(0x1a8)](_0x53ab17(_0x4e563b=>(_0x4e563b==null?void 0x0:_0x4e563b[_0x5bedd0(0x181)]())??null),_0x48f1f2(),_0x145491(_0x148891=>_0x148891?this[_0x5bedd0(0x273)][_0x5bedd0(0x3aa)](_0x148891):_0x4ee3c4(null)),_0x145491(_0x15ce88=>(_0x15ce88==null?void 0x0:_0x15ce88[_0x5bedd0(0x29c)])??_0x4ee3c4(_0x38d232['NOT_COLLAB'])))[_0x5bedd0(0x310)](_0x37aaa0=>_0x1db9f0[_0x5bedd0(0x1b3)](_0x37aaa0));_0x1fc796[_0x5bedd0(0x38c)](_0x32283a(()=>_0x1bd6e6[_0x5bedd0(0x1cf)]())),this['_presenceStatusRegistrations']['set'](_0x32fe3f[_0x5bedd0(0x340)],_0x1fc796);}};Y=J([q(0x0,_0x5b5bb5),q(0x1,_0x27756b(_0x25c197)),q(0x2,_0x27756b(_0x371568)),q(0x3,_0xf04e95),q(0x4,_0x27756b(_0x29e494))],Y);function sn(_0x537311){const _0x339139=_0x87a36c;let _0x5b0bae=_0x537311[_0x339139(0x35e)](),_0x8446cd=_0x5b0bae==null?void 0x0:_0x5b0bae[_0x339139(0x181)]();if(_0x8446cd&&!_0x510849(_0x8446cd))return _0x8446cd;let _0x45a2f7=_0x537311['getCurrentUnitOfType'](_0x5efd3b[_0x339139(0x398)]),_0x6680fa=_0x45a2f7==null?void 0x0:_0x45a2f7['getUnitId']();if(_0x6680fa&&!_0x510849(_0x6680fa))return _0x6680fa;let _0x508b23=_0x537311[_0x339139(0x21b)](_0x5efd3b[_0x339139(0x163)]);if(_0x508b23)return _0x508b23[_0x339139(0x181)]();let _0xc76a14=_0x537311[_0x339139(0x3ae)](_0x5efd3b[_0x339139(0x398)])['find'](_0x2ff75d=>!_0x510849(_0x2ff75d[_0x339139(0x181)]()));return _0xc76a14?_0xc76a14['getUnitId']():null;}function cn(_0x15ae3f){let {status$:_0x4947a7}=_0x15ae3f;return function(){return _0x51b6a5(rn,{'status$':_0x4947a7});};}var ln=_0x87a36c(0x307),un='1.0.4';const X={'id':_0x87a36c(0x295),'type':_0x238d83[_0x87a36c(0x2e3)],'handler':(_0x596709,_0x583e25)=>{const _0x4c52c0=_0x87a36c;let _0x4d2049=_0x596709['get'](_0x29e494)[_0x4c52c0(0x20c)](_0x583e25[_0x4c52c0(0x340)]);if(!_0x4d2049)return!0x1;switch(_0x583e25['update'][_0x4c52c0(0x2c2)]){case'set':return _0x4d2049[_0x4c52c0(0x281)](_0x583e25[_0x4c52c0(0x241)][_0x4c52c0(0x2ad)]),!0x0;case _0x4c52c0(0x355):return _0x4d2049[_0x4c52c0(0x286)](_0x583e25['update'][_0x4c52c0(0x25f)],_0x583e25[_0x4c52c0(0x241)]['memberId']),!0x0;case'clear':return _0x4d2049[_0x4c52c0(0x317)](_0x583e25[_0x4c52c0(0x241)][_0x4c52c0(0x25f)]),!0x0;default:return!0x1;}}},dn={};let fn=class extends _0x172cd9{constructor(_0x30db86,_0x459b45){const _0x3cf77d=_0x87a36c;super(),this[_0x3cf77d(0x1d1)]=_0x30db86,this[_0x3cf77d(0x1f1)]=_0x459b45,this['_init']();}[_0x87a36c(0x25d)](){const _0x1db7ad=_0x87a36c;let _0x2bcd7a=this;this[_0x1db7ad(0x35d)](this[_0x1db7ad(0x1d1)][_0x1db7ad(0x159)]({'onBeforePasteImage':async _0x3aca77=>{const _0x3e6d07=_0x1db7ad;let _0x10e7c1=await _0x2bcd7a[_0x3e6d07(0x1f1)][_0x3e6d07(0x28b)](_0x3aca77);return _0x10e7c1?{'source':_0x10e7c1['source'],'imageSourceType':_0x10e7c1[_0x3e6d07(0x3b1)]}:null;}}));}};fn=J([q(0x0,_0x2c3127),q(0x1,_0x2234ec)],fn);const pn=[_0x87a36c(0x26d),'jiqing.500',_0x87a36c(0x343),'red.300',_0x87a36c(0x251),_0x87a36c(0x2fe)];var mn=class extends _0x2e1ec0{constructor(..._0x26e339){const _0x1e4180=_0x87a36c;super(..._0x26e339),K(this,_0x1e4180(0x239),new Map()),K(this,_0x1e4180(0x257),0x0);}[_0x87a36c(0x205)](_0xfce708){const _0x3abd57=_0x87a36c;if(this[_0x3abd57(0x239)]['has'](_0xfce708))return this[_0x3abd57(0x239)][_0x3abd57(0x20c)](_0xfce708);let _0x3d759c=pn[this[_0x3abd57(0x257)]];return this[_0x3abd57(0x257)]=(this['_colorIndex']+0x1)%pn['length'],this['_assignedColors'][_0x3abd57(0x19c)](_0xfce708,_0x3d759c),_0x3d759c;}};function hn(_0x3e4f72){const _0x3959fb=_0x87a36c;let _0x58eee4='';for(let _0x150fbd of _0x3e4f72){let {startOffset:_0x2aaa19,endOffset:_0x3c8605,isActive:_0x16156b,rangeType:_0x462c69,segmentId:_0x328fa1,segmentPage:_0x17471f}=_0x150fbd;_0x58eee4[_0x3959fb(0x2f5)]&&(_0x58eee4+=','),_0x58eee4+=_0x2aaa19+':'+_0x3c8605+':'+(_0x16156b?'1':'0')+':'+_0x462c69+':'+_0x328fa1+':'+_0x17471f;}return _0x58eee4;}function gn(_0x1ccaf0){const _0x31a5ce=_0x87a36c;let _0x340695=_0x1ccaf0[_0x31a5ce(0x1c8)](','),_0x539960=[];for(let _0x221950 of _0x340695){let [_0x277fbb,_0x1862a1,_0x4fd64c,_0x480e1a,_0x13cc3a,_0x64a76d]=_0x221950[_0x31a5ce(0x1c8)](':');_0x539960[_0x31a5ce(0x21d)]({'startOffset':Number(_0x277fbb),'endOffset':Number(_0x1862a1),'collapsed':_0x277fbb===_0x1862a1,'isActive':_0x4fd64c==='1','rangeType':_0x480e1a===_0x24d643[_0x31a5ce(0x2ab)]?_0x24d643[_0x31a5ce(0x2ab)]:_0x24d643[_0x31a5ce(0x2a4)],'segmentId':typeof _0x13cc3a==_0x31a5ce(0x1fe)?String(_0x13cc3a):'','segmentPage':Number(_0x64a76d??-0x1)});}return _0x539960[_0x31a5ce(0x19f)](_0x234f8f=>_0x234f8f[_0x31a5ce(0x2a0)])||(_0x539960[0x0][_0x31a5ce(0x2a0)]=!0x0),_0x539960;}var _n=class extends _0x172cd9{constructor(..._0x3b6d10){const _0x3ea1db=_0x87a36c;super(..._0x3b6d10),K(this,'_collabCursorState$',new _0x400c7b(null)),K(this,_0x3ea1db(0x276),this[_0x3ea1db(0x283)][_0x3ea1db(0x1d9)]());}['syncEditingCollabCursor'](_0x5ea8c1){let {unitID:_0x50ea78,memberID:_0x52d938,textRanges:_0x55c397}=_0x5ea8c1,_0x5195e4=hn(_0x55c397);if(_0x5195e4==='')return;let _0x5011af={'unitID':_0x50ea78,'memberID':_0x52d938,'selection':_0x5195e4};this['_collabCursorState$']['next'](_0x5011af);}};let vn=class extends _0x172cd9{get['cursorInfo'](){const _0x45d916=_0x87a36c;return this[_0x45d916(0x2d3)][_0x45d916(0x2ee)]();}get[_0x87a36c(0x36a)](){const _0x665aa4=_0x87a36c;return this[_0x665aa4(0x15d)]['getValue']();}constructor(_0x4841ee,_0x5eebdf,_0x3b1d93,_0x3c95ea,_0x231940,_0x1c3a1e,_0x4e5a84,_0xad43dc,_0x2f3f86){const _0x456d38=_0x87a36c;super(),this[_0x456d38(0x2f3)]=_0x4841ee,this[_0x456d38(0x3b5)]=_0x5eebdf,this['_injector']=_0x3b1d93,this[_0x456d38(0x1d4)]=_0x3c95ea,this[_0x456d38(0x1a4)]=_0x231940,this[_0x456d38(0x2ca)]=_0x1c3a1e,this[_0x456d38(0x203)]=_0x4e5a84,this[_0x456d38(0x369)]=_0xad43dc,this[_0x456d38(0x30e)]=_0x2f3f86,K(this,_0x456d38(0x348),!0x1),K(this,_0x456d38(0x25d),!0x1),K(this,_0x456d38(0x2d3),new _0x400c7b(new Map())),K(this,_0x456d38(0x386),this[_0x456d38(0x2d3)][_0x456d38(0x1d9)]()),K(this,_0x456d38(0x15d),new _0x400c7b([])),K(this,'roomMembers$',this[_0x456d38(0x15d)][_0x456d38(0x1a8)](_0x428eca(0x12c))),K(this,_0x456d38(0x318),_0x29a649(_0x2c0720=>{const _0x1ae961=_0x456d38;let _0x1dca13={'eventID':_0x13a1ec[_0x1ae961(0x3b6)],'data':{'unitID':this[_0x1ae961(0x2f3)],'memberID':this[_0x1ae961(0x3b5)][_0x1ae961(0x172)](),'selection':hn(_0x2c0720)}};this['_session'][_0x1ae961(0x2e9)](_0x1dca13,this['unitID']);},0x64));}[_0x87a36c(0x1b1)](){const _0xb0f55c=_0x87a36c;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0xb0f55c(0x2d3)][_0xb0f55c(0x29b)](),this[_0xb0f55c(0x15d)][_0xb0f55c(0x1b3)]([]),this[_0xb0f55c(0x15d)]['complete']();}['init'](){const _0x3b3540=_0x87a36c;this['_init']||(this[_0x3b3540(0x25d)]=!0x0,this[_0x3b3540(0x3b5)][_0x3b3540(0x359)]['pipe'](_0xefeb1b(this['dispose$']))[_0x3b3540(0x310)](_0x102657=>{const _0x13c192=_0x3b3540;_0x102657===_0x3e1a2e[_0x13c192(0x208)]?this['_toggleOnline']():this[_0x13c192(0x389)]();}),this[_0x3b3540(0x3b5)][_0x3b3540(0x24f)][_0x3b3540(0x1a8)](_0xefeb1b(this['dispose$']))[_0x3b3540(0x310)](_0x688bc7=>{const _0xca6b3b=_0x3b3540;let _0xe3d25c=_0x688bc7[_0xca6b3b(0x39c)];_0xe3d25c===_0x13a1ec[_0xca6b3b(0x3b6)]&&this[_0xca6b3b(0x210)](_0x688bc7),_0xe3d25c===_0x13a1ec['USERS_LEAVE']&&this['_onCursorDelete'](_0x688bc7);}),this[_0x3b3540(0x35d)](this['_commandService'][_0x3b3540(0x1c4)](_0x467f13=>{const _0x2e7ab4=_0x3b3540;let _0x8d8c78=_0x467f13[_0x2e7ab4(0x1e0)];_0x8d8c78!=null&&this['_online']&&_0x467f13['id']===_0x1534b1['id']&&_0x8d8c78['unitId']===this['unitID']&&_0x8d8c78['isEditing']===!0x1&&_0x8d8c78['ranges'][_0x2e7ab4(0x2f5)]>0x0&&this['_updateLocalCursor'](_0x8d8c78[_0x2e7ab4(0x188)]);})),this['_syncEditingCollabCursorService'][_0x3b3540(0x276)]['pipe'](_0xefeb1b(this[_0x3b3540(0x198)]))[_0x3b3540(0x310)](_0x2f2538=>{const _0x742964=_0x3b3540;if((_0x2f2538==null?void 0x0:_0x2f2538[_0x742964(0x2f3)])!==this[_0x742964(0x2f3)])return;let _0x569bfa={'eventID':_0x13a1ec[_0x742964(0x3b6)],'data':_0x2f2538};this['_onCursorUpdate'](_0x569bfa);}),this[_0x3b3540(0x35d)](this[_0x3b3540(0x30e)][_0x3b3540(0x1c4)](_0x203aff=>{const _0x242681=_0x3b3540;if(_0x203aff[_0x242681(0x1e0)]==null)return;let _0x2fa134=_0x203aff[_0x242681(0x1e0)];if(_0x203aff['id']!==_0x1297ac['id']||_0x2fa134[_0x242681(0x25f)]!==this[_0x242681(0x2f3)])return;let _0x2351d0={'id':_0x242681(0x279),'params':_0x2fa134},_0x34b118=this[_0x242681(0x285)];for(let [_0x21b667,_0x21dacc]of _0x34b118){let _0x2cef88={'id':_0x242681(0x279),'params':{'unitId':this[_0x242681(0x2f3)],'actions':null,'textRanges':_0x21dacc[_0x242681(0x188)]}},_0x5e2704=this['_transformService'][_0x242681(0x238)](_0x2351d0,_0x2cef88,!0x1);if(_0x474f1b(_0x5e2704))throw _0x5e2704[_0x242681(0x2ba)];_0x34b118[_0x242681(0x19c)](_0x21b667,{..._0x21dacc,'ranges':_0x5e2704[_0x242681(0x30d)][_0x242681(0x1e0)][_0x242681(0x2fd)]});}queueMicrotask(()=>{const _0x4f41f6=_0x242681;this[_0x4f41f6(0x2d3)][_0x4f41f6(0x1b3)](_0x34b118);});})));}[_0x87a36c(0x210)](_0x33f51c){const _0x3b535d=_0x87a36c;var _0x37ed6b;let {memberID:_0x99e836,selection:_0x484b0c}=_0x33f51c[_0x3b535d(0x25e)],_0x434617=gn(_0x484b0c),_0x3269ec=((_0x37ed6b=this['_memberService'][_0x3b535d(0x342)](this[_0x3b535d(0x2f3)],_0x99e836))==null?void 0x0:_0x37ed6b['name'])??_0x3b535d(0x1b5),_0x693e6f={'color':this[_0x3b535d(0x1d4)][_0x3b535d(0x205)](_0x99e836),'name':_0x3269ec,'ranges':_0x434617},_0x577663=this[_0x3b535d(0x285)];_0x577663[_0x3b535d(0x19c)](_0x99e836,_0x693e6f),this[_0x3b535d(0x2d3)][_0x3b535d(0x1b3)](_0x577663);}[_0x87a36c(0x384)](_0x4390df){const _0x5ed4be=_0x87a36c;let {memberID:_0x29db57}=_0x4390df[_0x5ed4be(0x25e)],_0x56132f=this[_0x5ed4be(0x285)];_0x56132f[_0x5ed4be(0x2d8)](_0x29db57),this[_0x5ed4be(0x2d3)][_0x5ed4be(0x1b3)](_0x56132f);}[_0x87a36c(0x1ce)](){const _0x6f5f9a=_0x87a36c;var _0x55131c;if(this[_0x6f5f9a(0x348)]=!0x0,((_0x55131c=this['_univerInstanceService'][_0x6f5f9a(0x35e)]())==null?void 0x0:_0x55131c[_0x6f5f9a(0x181)]())!==this[_0x6f5f9a(0x2f3)])return;let _0x358f3e=this[_0x6f5f9a(0x31d)]['get'](_0x275ee4)[_0x6f5f9a(0x247)]();Array[_0x6f5f9a(0x3ce)](_0x358f3e)&&_0x358f3e[_0x6f5f9a(0x2f5)]>0x0&&this[_0x6f5f9a(0x318)](_0x358f3e);}[_0x87a36c(0x389)](){const _0x1866fc=_0x87a36c;this[_0x1866fc(0x348)]=!0x1;}};vn=J([q(0x2,_0x27756b(_0x25c197)),q(0x3,_0x27756b(mn)),q(0x4,_0x27756b(_0x207680)),q(0x5,_0x27756b(_n)),q(0x6,_0x366b2a),q(0x7,_0x5b5bb5),q(0x8,_0x204dc2)],vn);const yn=()=>{let _0x272593=[],_0x4b0a99=!0x1;return _0x70286b=>{const _0x401571=_0x3abf;_0x272593[_0x401571(0x21d)](_0x70286b),_0x4b0a99||(_0x4b0a99=!0x0,setTimeout(()=>{const _0x41552f=_0x401571;_0x272593[_0x41552f(0x1e2)](_0x200dc8=>_0x200dc8()),_0x272593=[],_0x4b0a99=!0x1;}));};};let bn=class extends _0x172cd9{get[_0x87a36c(0x285)](){const _0x596306=_0x87a36c;return this[_0x596306(0x2d3)][_0x596306(0x2ee)]();}get[_0x87a36c(0x36a)](){const _0x4dcf97=_0x87a36c;return this['_roomMembers$'][_0x4dcf97(0x2ee)]();}constructor(_0x4238b5,_0x48feb4,_0x204c63,_0x356e6f,_0x492cdc,_0x3eaee1,_0x1b8ef2,_0x458fa1){const _0x21e762=_0x87a36c;super(),this[_0x21e762(0x2f3)]=_0x4238b5,this['_session']=_0x48feb4,this[_0x21e762(0x31d)]=_0x204c63,this['_colorAssignService']=_0x356e6f,this[_0x21e762(0x1a4)]=_0x492cdc,this['_univerInstanceService']=_0x3eaee1,this[_0x21e762(0x30e)]=_0x1b8ef2,this[_0x21e762(0x38b)]=_0x458fa1,K(this,'_online',!0x1),K(this,_0x21e762(0x25d),!0x1),K(this,_0x21e762(0x2d3),new _0x400c7b(new Map())),K(this,_0x21e762(0x386),this[_0x21e762(0x2d3)][_0x21e762(0x1d9)]()),K(this,'_roomMembers$',new _0x400c7b([])),K(this,_0x21e762(0x3c6),this[_0x21e762(0x15d)][_0x21e762(0x1a8)](_0x428eca(0x12c))),K(this,_0x21e762(0x318),_0x29a649((_0x12ee90,_0x3a5b90)=>{const _0x4118b2=_0x21e762;let _0x29c608={'eventID':_0x13a1ec[_0x4118b2(0x3b6)],'data':{'unitID':this[_0x4118b2(0x2f3)],'memberID':this[_0x4118b2(0x3b5)]['getMemberID'](),'selection':_0x509b5d(_0x12ee90,_0x3a5b90['range'])}};this['_session'][_0x4118b2(0x2e9)](_0x29c608,this[_0x4118b2(0x2f3)]);},0x64));}['dispose'](){const _0x2ef2df=_0x87a36c;super[_0x2ef2df(0x1b1)](),this[_0x2ef2df(0x2d3)][_0x2ef2df(0x1b3)](new Map()),this[_0x2ef2df(0x2d3)]['complete'](),this[_0x2ef2df(0x15d)][_0x2ef2df(0x1b3)]([]),this[_0x2ef2df(0x15d)][_0x2ef2df(0x29b)]();}['init'](){const _0x4ff875=_0x87a36c;this['_init']||(this[_0x4ff875(0x25d)]=!0x0,this[_0x4ff875(0x3b5)][_0x4ff875(0x359)][_0x4ff875(0x1a8)](_0xefeb1b(this[_0x4ff875(0x198)]))['subscribe'](_0x9d93f9=>{const _0x5a131d=_0x4ff875;_0x9d93f9===_0x3e1a2e[_0x5a131d(0x208)]?this[_0x5a131d(0x1ce)]():this[_0x5a131d(0x389)]();}),this['_session'][_0x4ff875(0x24f)]['pipe'](_0xefeb1b(this[_0x4ff875(0x198)]))[_0x4ff875(0x310)](_0x1a713b=>{const _0x240135=_0x4ff875;let _0x688c6e=_0x1a713b['eventID'];_0x688c6e===_0x13a1ec[_0x240135(0x3b6)]&&this[_0x240135(0x210)](_0x1a713b),_0x688c6e===_0x13a1ec[_0x240135(0x212)]&&this[_0x240135(0x384)](_0x1a713b);}),this[_0x4ff875(0x1c1)](),this[_0x4ff875(0x35d)](this[_0x4ff875(0x30e)]['onCommandExecuted'](_0x41c901=>{const _0x194d5c=_0x4ff875;if(this[_0x194d5c(0x348)]&&_0x41c901['id']===_0x50434e['id']&&_0x41c901['params'][_0x194d5c(0x25f)]===this[_0x194d5c(0x2f3)]){let _0x27d39e=_0x41c901[_0x194d5c(0x1e0)];this['_updateLocalCursor'](_0x27d39e[_0x194d5c(0x20f)],_0x27d39e[_0x194d5c(0x2d6)][0x0]);}})));}['_onCursorUpdate'](_0x225613){const _0x12fd80=_0x87a36c;var _0x16868c;let {memberID:_0x142ffc,selection:_0x2ca42e}=_0x225613[_0x12fd80(0x25e)],{sheetName:_0x26bb4c,range:_0x983883}=_0x209ded(_0x2ca42e),_0x9b3182={'name':((_0x16868c=this[_0x12fd80(0x1a4)][_0x12fd80(0x342)](this[_0x12fd80(0x2f3)],_0x142ffc))==null?void 0x0:_0x16868c['name'])??_0x12fd80(0x1b5),'range':this[_0x12fd80(0x3d1)](_0x26bb4c,_0x983883),'sheetID':_0x26bb4c,'color':this['_colorAssignService'][_0x12fd80(0x205)](_0x142ffc),'selection':_0x2ca42e},_0x3f2f76=this['cursorInfo'];_0x3f2f76[_0x12fd80(0x19c)](_0x142ffc,_0x9b3182),this['_cursorInfo$']['next'](_0x3f2f76);}['_onCursorDelete'](_0x5d15a4){const _0x757407=_0x87a36c;let {memberID:_0x14ede4}=_0x5d15a4['data'],_0x303340=this['cursorInfo'];_0x303340['delete'](_0x14ede4),this[_0x757407(0x2d3)][_0x757407(0x1b3)](_0x303340);}[_0x87a36c(0x3d1)](_0x5d0746,_0x44db9c){const _0x57d9d0=_0x87a36c;var _0x40537f;let _0x3d2fc0=(_0x40537f=this['_univerInstanceService'][_0x57d9d0(0x2ac)](this[_0x57d9d0(0x2f3)],_0x5efd3b[_0x57d9d0(0x163)]))==null||(_0x40537f=_0x40537f[_0x57d9d0(0x2df)](_0x5d0746))==null?void 0x0:_0x40537f[_0x57d9d0(0x1ba)]();return(_0x3d2fc0==null?void 0x0:_0x3d2fc0[_0x57d9d0(0x1d6)](_0x368f99=>_0x150667[_0x57d9d0(0x25a)](_0x368f99,_0x44db9c)))||_0x44db9c;}[_0x87a36c(0x1c1)](){const _0x22e86d=_0x87a36c;let _0x2275a1=new _0x2a6524(),_0x37eea4=yn(),_0x57e327=()=>{const _0x23603d=_0x3abf;_0x2275a1[_0x23603d(0x1b1)]();let _0x3b730f=(_0x410779,_0x50002b,_0x237b68,_0x194fa8)=>{const _0x52504d=_0x23603d;let _0xd702d=[];switch(_0x410779['id']){case _0x128c29['DeleteRangeMoveLeftCommandId']:_0xd702d=_0x39c1ad(_0x410779,_0x194fa8);break;case _0x128c29[_0x52504d(0x1f2)]:_0xd702d=_0x2655d3(_0x410779,_0x194fa8);break;case _0x128c29[_0x52504d(0x1d8)]:_0xd702d=_0x5b0786(_0x410779,_0x194fa8);break;case _0x128c29['InsertRangeMoveDownCommandId']:_0xd702d=_0xb7c7fb(_0x410779,_0x194fa8);break;case _0x128c29['InsertRangeMoveRightCommandId']:_0xd702d=_0x15a794(_0x410779,_0x194fa8);break;case _0x128c29['InsertRowCommandId']:_0xd702d=_0x374e31(_0x410779,_0x194fa8);break;case _0x128c29['MoveRangeCommandId']:_0xd702d=_0x41b139(_0x410779,_0x194fa8);break;case _0x128c29['RemoveColCommandId']:_0xd702d=_0x179292(_0x410779,_0x194fa8);break;case _0x128c29[_0x52504d(0x2e2)]:_0xd702d=_0x5760a7(_0x410779,_0x194fa8);}let _0x2c0d8e=_0x1f9050(_0xd702d,_0x194fa8),_0x377d22=this[_0x52504d(0x285)][_0x52504d(0x20c)](_0x50002b);if(_0x377d22&&_0x2c0d8e){let _0x18bffe={..._0x377d22,'range':_0x2c0d8e};this[_0x52504d(0x285)][_0x52504d(0x19c)](_0x50002b,_0x18bffe),_0x37eea4(()=>{const _0x390b8e=_0x52504d;let _0x45da3c=this[_0x390b8e(0x38b)][_0x390b8e(0x37b)](_0x2c0d8e,_0x372eaa=>(_0x45da3c[_0x390b8e(0x1b1)](),_0x3b730f(_0x372eaa,_0x50002b,_0x237b68,_0x2c0d8e)));_0x2275a1[_0x390b8e(0x38c)](_0x45da3c);});}return{'redos':[],'undos':[]};};this[_0x23603d(0x285)]['forEach']((_0x547a16,_0x4255c7)=>{const _0x4c4392=_0x23603d;let {range:_0x25c62a,sheetID:_0x182afe}=_0x547a16,_0x531477=this[_0x4c4392(0x38b)][_0x4c4392(0x37b)](_0x25c62a,_0x18a3c2=>(_0x531477[_0x4c4392(0x1b1)](),_0x3b730f(_0x18a3c2,_0x4255c7,_0x182afe,_0x25c62a)));_0x2275a1[_0x4c4392(0x38c)](_0x531477);});};this[_0x22e86d(0x35d)](_0x32283a(this[_0x22e86d(0x2d3)][_0x22e86d(0x310)](()=>{_0x57e327();})));}[_0x87a36c(0x1ce)](){const _0x435962=_0x87a36c;var _0x109170,_0x49aa5c;if(this[_0x435962(0x348)]=!0x0,((_0x109170=this[_0x435962(0x369)][_0x435962(0x35e)]())==null?void 0x0:_0x109170[_0x435962(0x181)]())!==this[_0x435962(0x2f3)])return;let _0x482c56=(_0x49aa5c=this[_0x435962(0x31d)]['get'](_0x4fa6ca)[_0x435962(0x2de)]())==null?void 0x0:_0x49aa5c[0x0],_0x252f08=this[_0x435962(0x369)]['getCurrentUnitOfType'](_0x5efd3b[_0x435962(0x163)])[_0x435962(0x362)]();_0x482c56&&_0x252f08&&this[_0x435962(0x318)](_0x252f08[_0x435962(0x30c)](),_0x482c56);}[_0x87a36c(0x389)](){this['_online']=!0x1;}};bn=J([q(0x2,_0x27756b(_0x25c197)),q(0x3,_0x27756b(mn)),q(0x4,_0x27756b(_0x207680)),q(0x5,_0x5b5bb5),q(0x6,_0x204dc2),q(0x7,_0x27756b(_0x421726))],bn);let Z=class extends _0x172cd9{constructor(_0xb051e,_0x182af8,_0x3ad659){const _0x65c060=_0x87a36c;super(),this[_0x65c060(0x369)]=_0xb051e,this[_0x65c060(0x31d)]=_0x182af8,this['_collabSessionService']=_0x3ad659,K(this,_0x65c060(0x1e4),new Map()),K(this,'_entityInit$',new _0x2e6913()),this[_0x65c060(0x25d)]();}['dispose'](){const _0x137021=_0x87a36c;super[_0x137021(0x1b1)](),this[_0x137021(0x201)][_0x137021(0x29b)](),this[_0x137021(0x1e4)][_0x137021(0x1e2)](_0x521563=>_0x521563[_0x137021(0x1b1)]());}['getCollabCursors$'](_0x4cb0d1){const _0x48632d=_0x87a36c;let _0x4c5cfd=this['_entities'][_0x48632d(0x20c)](_0x4cb0d1);return _0x4c5cfd?_0x4c5cfd[_0x48632d(0x386)]:this[_0x48632d(0x201)][_0x48632d(0x1a8)](_0x2cbae3(_0x252900=>_0x252900['unitID']===_0x4cb0d1),_0x145491(_0x12ba88=>_0x12ba88['cursorInfo$']));}[_0x87a36c(0x25d)](){const _0x5dd8f1=_0x87a36c;this[_0x5dd8f1(0x369)][_0x5dd8f1(0x1e1)](_0x5efd3b[_0x5dd8f1(0x163)])[_0x5dd8f1(0x1a8)](_0xefeb1b(this[_0x5dd8f1(0x198)]))[_0x5dd8f1(0x310)](async _0x2c3cde=>{const _0x425c04=_0x5dd8f1;let _0x4a82a9=_0x2c3cde[_0x425c04(0x1fc)][_0x425c04(0x181)](),_0x50dd1e=await this['_startSheetCollabCursor'](_0x4a82a9);this[_0x425c04(0x201)]['next'](_0x50dd1e),this[_0x425c04(0x1e4)][_0x425c04(0x19c)](_0x4a82a9,_0x50dd1e);}),this['_univerInstanceService'][_0x5dd8f1(0x1e1)](_0x5efd3b[_0x5dd8f1(0x398)])[_0x5dd8f1(0x1a8)](_0xefeb1b(this[_0x5dd8f1(0x198)]))['pipe'](_0x2cbae3(_0x4d2b0f=>!_0x4d2b0f[_0x5dd8f1(0x1fc)][_0x5dd8f1(0x181)]()[_0x5dd8f1(0x336)]('__')))['subscribe'](async _0x597ef2=>{const _0x207aa9=_0x5dd8f1;let {unit:_0x460d7c}=_0x597ef2,_0x305dce=_0x460d7c[_0x207aa9(0x181)](),_0x237c4e=await this['_startDocCollabCursor'](_0x305dce);this[_0x207aa9(0x201)][_0x207aa9(0x1b3)](_0x237c4e),this[_0x207aa9(0x1e4)][_0x207aa9(0x19c)](_0x305dce,_0x237c4e);}),_0x5acddf(this[_0x5dd8f1(0x369)][_0x5dd8f1(0x290)](_0x5efd3b[_0x5dd8f1(0x398)]),this['_univerInstanceService'][_0x5dd8f1(0x290)](_0x5efd3b[_0x5dd8f1(0x163)]))[_0x5dd8f1(0x1a8)](_0xefeb1b(this[_0x5dd8f1(0x198)]))[_0x5dd8f1(0x310)](_0x8c0bc6=>{const _0x3fd3d2=_0x5dd8f1;let _0x310313=_0x8c0bc6['getUnitId'](),_0x2cd2d4=this[_0x3fd3d2(0x1e4)][_0x3fd3d2(0x20c)](_0x310313);_0x2cd2d4&&(_0x2cd2d4[_0x3fd3d2(0x1b1)](),this[_0x3fd3d2(0x1e4)][_0x3fd3d2(0x2d8)](_0x310313));});}async[_0x87a36c(0x38a)](_0x56919b){const _0x1d3688=_0x87a36c;let _0x635be3=await this[_0x1d3688(0x334)][_0x1d3688(0x346)](_0x56919b),_0xccbf36=this['_injector'][_0x1d3688(0x34c)](bn,_0x56919b,_0x635be3);return _0xccbf36[_0x1d3688(0x1c5)](),_0xccbf36;}async[_0x87a36c(0x3a6)](_0x4b8c7d){const _0x5ec321=_0x87a36c;let _0x5e3eff=await this[_0x5ec321(0x334)][_0x5ec321(0x346)](_0x4b8c7d),_0x18fcc5=this[_0x5ec321(0x31d)][_0x5ec321(0x34c)](vn,_0x4b8c7d,_0x5e3eff);return _0x18fcc5['init'](),_0x18fcc5;}};Z=J([q(0x0,_0x5b5bb5),q(0x1,_0x27756b(_0x25c197)),q(0x2,_0x27756b(_0x538451))],Z);function xn(_0x31c8c2,_0x264ea1){const _0x3689c5=_0x87a36c;_0x31c8c2[_0x3689c5(0x17c)](),_0x31c8c2[_0x3689c5(0x2f7)]=_0x3689c5(0x3d0);let _0x527a09=_0x31c8c2['measureText'](_0x264ea1)[_0x3689c5(0x217)];return _0x31c8c2[_0x3689c5(0x18a)](),Math['min'](_0x527a09+0x8,0xc8);}function Sn(_0x25cab1,_0x5ed035){const _0x3b73ff=_0x87a36c;let {radius:_0x4867e6,width:_0x2887cb,height:_0x2d13c6}=_0x5ed035;_0x4867e6??=0x0,_0x2887cb??=0x1e,_0x2d13c6??=0x1e;let _0x3cf45b=0x0,_0x5d745f=0x0,_0x1081f2=0x0;_0x3cf45b=_0x5d745f=_0x1081f2=Math[_0x3b73ff(0x366)](_0x4867e6,_0x2887cb/0x2,_0x2d13c6/0x2),_0x25cab1[_0x3b73ff(0x1e7)](),_0x25cab1[_0x3b73ff(0x326)](_0x3cf45b,0x0),_0x25cab1[_0x3b73ff(0x1b7)](_0x2887cb-_0x5d745f,0x0),_0x25cab1[_0x3b73ff(0x21a)](_0x2887cb-_0x5d745f,_0x5d745f,_0x5d745f,Math['PI']*0x3/0x2,0x0,!0x1),_0x25cab1['lineTo'](_0x2887cb,_0x2d13c6-_0x1081f2),_0x25cab1[_0x3b73ff(0x21a)](_0x2887cb-_0x1081f2,_0x2d13c6-_0x1081f2,_0x1081f2,0x0,Math['PI']/0x2,!0x1),_0x25cab1[_0x3b73ff(0x1b7)](0x0,_0x2d13c6),_0x25cab1[_0x3b73ff(0x1b7)](0x0,_0x3cf45b),_0x25cab1[_0x3b73ff(0x21a)](_0x3cf45b,_0x3cf45b,_0x3cf45b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x25cab1['closePath'](),_0x5ed035[_0x3b73ff(0x323)]&&(_0x25cab1[_0x3b73ff(0x17c)](),_0x25cab1[_0x3b73ff(0x1c7)]=_0x5ed035[_0x3b73ff(0x323)],_0x5ed035['fillRule']===_0x3b73ff(0x353)?_0x25cab1[_0x3b73ff(0x323)](_0x3b73ff(0x353)):_0x25cab1[_0x3b73ff(0x323)](),_0x25cab1[_0x3b73ff(0x18a)]());}var Cn=class e extends _0x3a8676{constructor(_0x1f3b38,_0x6dba3f){const _0x435975=_0x87a36c;super(_0x1f3b38,_0x6dba3f),K(this,'color',void 0x0),K(this,_0x435975(0x206),void 0x0),this['color']=_0x6dba3f==null?void 0x0:_0x6dba3f[_0x435975(0x2d2)],this[_0x435975(0x206)]=_0x6dba3f==null?void 0x0:_0x6dba3f[_0x435975(0x206)];}static[_0x87a36c(0x39b)](_0x2d2e79,_0x5a0995){const _0x327f47=_0x87a36c;let {text:_0x4b9758,color:_0x1b2ad6}=_0x5a0995;_0x2d2e79[_0x327f47(0x17c)](),_0x2d2e79['font']=_0x327f47(0x2e5);let _0x261618=_0x2d2e79[_0x327f47(0x339)](_0x4b9758)['width'];if(Sn(_0x2d2e79,{'height':0x14,'radius':0x4,'width':xn(_0x2d2e79,_0x4b9758),'fill':_0x1b2ad6,'evented':!0x1}),_0x2d2e79[_0x327f47(0x1c7)]=_0x327f47(0x322),_0x261618>0xc0){let _0x4251fa='',_0x37ad32=0x0;for(let _0xac94ab of _0x4b9758){let _0x4b8d72=_0x2d2e79[_0x327f47(0x339)](_0xac94ab)[_0x327f47(0x217)];if(_0x37ad32+_0x4b8d72<=0xc0-_0x2d2e79['measureText'](_0x327f47(0x296))[_0x327f47(0x217)])_0x4251fa+=_0xac94ab,_0x37ad32+=_0x4b8d72;else{_0x4251fa+=_0x327f47(0x296);break;}}_0x2d2e79[_0x327f47(0x15e)](_0x4251fa,0x4,0xf);}else _0x2d2e79[_0x327f47(0x15e)](_0x4b9758,0x4,0xf);_0x2d2e79['restore']();}['_draw'](_0x5498d3){const _0x58c555=_0x87a36c;e[_0x58c555(0x39b)](_0x5498d3,this);}};const wn=_0x87a36c(0x2af);var Tn=class{constructor(_0x1c237c,_0x418ebf,_0x4dff5c,_0x38b9e3){const _0x530860=_0x87a36c;this[_0x530860(0x215)]=_0x1c237c,this[_0x530860(0x195)]=_0x418ebf,this[_0x530860(0x2a3)]=_0x4dff5c,this[_0x530860(0x392)]=_0x38b9e3,K(this,_0x530860(0x391),[]),K(this,_0x530860(0x35c),null),K(this,_0x530860(0x3b0),null),K(this,_0x530860(0x311),null),K(this,_0x530860(0x250),null),K(this,_0x530860(0x2bb),null),this[_0x530860(0x1bc)]();}set[_0x87a36c(0x28c)](_0x37853a){const _0x7225e0=_0x87a36c;_0x37853a?(this[_0x7225e0(0x311)]&&this[_0x7225e0(0x311)]['hide'](),this['_textBubble']&&this[_0x7225e0(0x3b0)][_0x7225e0(0x345)]()):(this[_0x7225e0(0x311)]&&this[_0x7225e0(0x311)]['show'](),this['_textBubble']&&this[_0x7225e0(0x3b0)][_0x7225e0(0x3ba)]());}[_0x87a36c(0x1b1)](){const _0x4329d1=_0x87a36c;for(let _0x15ff91 of this[_0x4329d1(0x391)])_0x15ff91[_0x4329d1(0x1b1)]();this[_0x4329d1(0x3b0)]&&this['_textBubble']['dispose'](),this[_0x4329d1(0x311)]&&this[_0x4329d1(0x311)][_0x4329d1(0x1b1)](),this['_anchor']&&this[_0x4329d1(0x35c)][_0x4329d1(0x1b1)](),this[_0x4329d1(0x2bb)]&&this['_eventUnsubscribe']();}[_0x87a36c(0x1bc)](){const _0x2eeea9=_0x87a36c;let {_docSkeleton:_0x22d876,_document:_0x4f8dee}=this,{color:_0x1a0b3a,name:_0x4a7ddd,ranges:_0x15a6ed}=this[_0x2eeea9(0x215)],_0x47982d=_0x4f8dee['getOffsetConfig'](),{docsLeft:_0x4e05f7,docsTop:_0x5c8dc9}=_0x47982d,_0x4855e3=new _0x4a6d90(_0x47982d,_0x22d876);for(let {startOffset:_0x42e01b,endOffset:_0x2cc403,rangeType:_0x45a61e,segmentId:_0x23c3fc,segmentPage:_0x22f965,collapsed:_0x5796af,isActive:_0x321352}of _0x15a6ed){let _0x42ba32=_0x22d876[_0x2eeea9(0x16a)](_0x42e01b,!0x0,_0x23c3fc,_0x22f965),_0x415418=_0x22d876[_0x2eeea9(0x16a)](_0x2cc403,!0x0,_0x23c3fc,_0x22f965);_0x415418??=_0x22d876[_0x2eeea9(0x16a)](_0x2cc403-0x1,!0x1,_0x23c3fc,_0x22f965);let _0x506c90=En(_0x42ba32,_0x415418);if(_0x321352&&_0x506c90[_0x2eeea9(0x3a4)]){let {contentBoxPointGroup:_0x22fa09}=_0x4855e3[_0x2eeea9(0x313)](_0x415418,_0x415418);if(_0x22fa09[_0x2eeea9(0x2f5)]===0x0)continue;this[_0x2eeea9(0x305)](_0x1a0b3a,_0x22fa09,_0x4e05f7,_0x5c8dc9,_0x4a7ddd),this[_0x2eeea9(0x2bb)]=this[_0x2eeea9(0x2f8)]();}if(_0x42ba32&&_0x415418){if(_0x45a61e===_0x24d643[_0x2eeea9(0x2a4)]){let {pointGroup:_0x100971}=new _0x44ac00(_0x47982d,_0x22d876)[_0x2eeea9(0x313)](_0x42ba32,_0x415418)??{};if(_0x100971==null||_0x100971[_0x2eeea9(0x2f5)]===0x0)continue;this[_0x2eeea9(0x1bd)](_0x1a0b3a,_0x100971,_0x4e05f7,_0x5c8dc9);}else{if(!_0x5796af&&_0x506c90['canRenderSelection']){let {borderBoxPointGroup:_0xdf4c1b}=_0x4855e3['getRangePointData'](_0x42ba32,_0x415418);if(_0xdf4c1b[_0x2eeea9(0x2f5)]===0x0)continue;this[_0x2eeea9(0x2f6)](_0x1a0b3a,_0xdf4c1b,_0x4e05f7,_0x5c8dc9);}}}}}[_0x87a36c(0x305)](_0x24fb34,_0x4efbf5,_0x5d2830,_0xe54c31,_0x57aad5){const _0x22b009=_0x87a36c;let {left:_0x2f3cb8,top:_0x173838,height:_0xdf1617}=this['_getAnchorBounding'](_0x4efbf5),_0x171786=1.5/this[_0x22b009(0x397)](),_0x4c2178=new _0x420f50(wn+_0x5692c3(0x6),{'left':_0x2f3cb8+_0x5d2830-_0x171786,'top':_0x173838+_0xe54c31,'height':_0xdf1617,'width':1.5,'fill':_0x24fb34||_0x31c3dd(_0x316398[_0x22b009(0x267)],0x0),'strokeWidth':_0x171786,'stroke':_0x22b009(0x316),'evented':!0x0});this[_0x22b009(0x35c)]=_0x4c2178,this[_0x22b009(0x195)]['addObject'](_0x4c2178,_0x27bcf9);let _0x22d6b8=new _0x420f50(wn+_0x5692c3(0x6),{'left':_0x2f3cb8+_0x5d2830-_0x171786,'top':_0x173838+_0xe54c31-0x2,'height':0x4,'width':0x4,'fill':_0x24fb34||_0x31c3dd(_0x316398[_0x22b009(0x267)],0x0),'strokeWidth':0x0,'stroke':_0x24fb34||_0x31c3dd(_0x316398[_0x22b009(0x267)],0x0),'evented':!0x1});this[_0x22b009(0x311)]=_0x22d6b8,this[_0x22b009(0x195)]['addObject'](_0x22d6b8,_0x27bcf9);let _0x53d87c=new Cn(wn+_0x5692c3(0x6),{'left':_0x2f3cb8+_0x5d2830-_0x171786,'top':_0x173838+_0xe54c31-0x14,'text':_0x57aad5,'color':_0x24fb34});this[_0x22b009(0x3b0)]=_0x53d87c,this[_0x22b009(0x195)][_0x22b009(0x223)](_0x53d87c,_0x27bcf9),this[_0x22b009(0x28c)]=!0x1;}[_0x87a36c(0x2f8)](){const _0x355eb5=_0x87a36c;let _0x3a7c31=this[_0x355eb5(0x35c)][_0x355eb5(0x3b8)][_0x355eb5(0x32f)](()=>{const _0x549e88=_0x355eb5;this[_0x549e88(0x28c)]=!0x0;}),_0x4d170e=this[_0x355eb5(0x35c)][_0x355eb5(0x175)]['subscribeEvent'](()=>{const _0xb7ee0e=_0x355eb5;this[_0xb7ee0e(0x250)]&&clearTimeout(this[_0xb7ee0e(0x250)]),this[_0xb7ee0e(0x250)]=setTimeout(()=>{const _0x4d27af=_0xb7ee0e;this[_0x4d27af(0x28c)]=!0x1;},0x7d0);});return()=>{const _0x3c48cd=_0x355eb5;_0x3a7c31['unsubscribe'](),_0x4d170e[_0x3c48cd(0x1cf)]();};}[_0x87a36c(0x2f6)](_0x3eedab,_0x6f6697,_0x20106b,_0xc616d3){const _0x5fc01a=_0x87a36c;let _0x5ef823=0.2,_0x7d5c86=new _0xa89cfc(_0x3eedab)[_0x5fc01a(0x337)](_0x5ef823)[_0x5fc01a(0x192)](),_0x33dcb0=new _0x46a4f9(_0x5fc01a(0x178)+_0x5692c3(0x6),{'pointsGroup':_0x6f6697,'fill':_0x7d5c86||_0x31c3dd(_0x316398[_0x5fc01a(0x267)],_0x5ef823),'left':_0x20106b,'top':_0xc616d3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5fc01a(0x391)][_0x5fc01a(0x21d)](_0x33dcb0),this[_0x5fc01a(0x195)][_0x5fc01a(0x223)](_0x33dcb0,_0x27bcf9);}[_0x87a36c(0x1bd)](_0x19d102,_0x40d699,_0x417f3e,_0x59ebcf){const _0x3c629c=_0x87a36c;let _0x591df2=0.2,_0x2cc578=new _0xa89cfc(_0x19d102)[_0x3c629c(0x337)](_0x591df2)['toRgbString'](),_0x1c27e0=new _0x46a4f9(_0x3c629c(0x22c)+_0x5692c3(0x6),{'pointsGroup':_0x40d699,'fill':_0x2cc578||_0x31c3dd(_0x316398['black'],_0x591df2),'left':_0x417f3e,'top':_0x59ebcf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3c629c(0x391)][_0x3c629c(0x21d)](_0x1c27e0),this['_scene']['addObject'](_0x1c27e0,_0x27bcf9);}[_0x87a36c(0x2c3)](_0x3e6d20){let _0x77afd1=_0x3e6d20[0x0],_0x3e5a3a=_0x77afd1[0x0],_0x9c0d1b=_0x77afd1[0x2],{x:_0x3b89d6,y:_0x4e8ae9}=_0x3e5a3a,{x:_0x5854c1,y:_0x3128d3}=_0x9c0d1b;return{'left':_0x3b89d6,'top':_0x4e8ae9,'width':_0x5854c1-_0x3b89d6,'height':_0x3128d3-_0x4e8ae9};}[_0x87a36c(0x397)](){const _0x466091=_0x87a36c;let {scaleX:_0xff23a,scaleY:_0x322867}=this['_scene'][_0x466091(0x240)]();return Math[_0x466091(0x26e)](_0xff23a,_0x322867);}};function En(_0x17ebf4,_0x5816c5){const _0x153a23=_0x87a36c;if(!_0x5816c5)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x17ebf4||_0x17ebf4[_0x153a23(0x233)]!==_0x5816c5[_0x153a23(0x233)]||(_0x17ebf4[_0x153a23(0x233)]===_0x2f929c[_0x153a23(0x280)]||_0x17ebf4[_0x153a23(0x233)]===_0x2f929c[_0x153a23(0x1ff)])&&_0x17ebf4[_0x153a23(0x2e6)]!==_0x5816c5[_0x153a23(0x2e6)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x185ad6=_0x24e369(_0x17ebf4),_0x4ac828=_0x24e369(_0x5816c5);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x185ad6==null||_0x4ac828==null?_0x185ad6==null&&_0x4ac828==null:_0x185ad6[_0x153a23(0x252)]===_0x4ac828[_0x153a23(0x252)]&&_0x185ad6[_0x153a23(0x22d)]===_0x4ac828[_0x153a23(0x22d)]&&_0x185ad6[_0x153a23(0x194)]===_0x4ac828[_0x153a23(0x194)]};}let Dn=class extends _0x172cd9{constructor(_0x43fe6d,_0x3afa68,_0x4ed523,_0x46ff58,_0x11d5b5){const _0x33482e=_0x87a36c;super(),this[_0x33482e(0x2f1)]=_0x43fe6d,this['_docSkeletonManagerService']=_0x3afa68,this[_0x33482e(0x1dd)]=_0x4ed523,this[_0x33482e(0x30e)]=_0x46ff58,this['_themeService']=_0x11d5b5,K(this,_0x33482e(0x235),[]),K(this,_0x33482e(0x3ca),[]),this['_init']();}['_init'](){const _0x1c306c=_0x87a36c;let _0x108fd0=this[_0x1c306c(0x2f1)][_0x1c306c(0x25f)],_0x458378=this[_0x1c306c(0x18d)];this[_0x1c306c(0x35d)](_0xaca8c8([this[_0x1c306c(0x1dd)][_0x1c306c(0x376)](_0x108fd0),this[_0x1c306c(0x3a0)][_0x1c306c(0x1f3)]])[_0x1c306c(0x1a8)](_0x53ab17(([_0x3da8b0,_0xbd8e82])=>({'skeleton':_0x458378[_0x1c306c(0x183)](),'cursors':[..._0x3da8b0[_0x1c306c(0x209)]()][_0x1c306c(0x3b9)](_0x26ed13=>({..._0x26ed13,'color':this[_0x1c306c(0x3a0)]['getColorFromTheme'](_0x26ed13[_0x1c306c(0x2d2)])}))})))[_0x1c306c(0x310)](_0x463425=>{const _0x59aa80=_0x1c306c;if(this[_0x59aa80(0x2bf)](),_0x463425){let {skeleton:_0x2b165f,cursors:_0x344f53}=_0x463425;this[_0x59aa80(0x266)](_0x2b165f,_0x344f53);}})),this['_initResize'](),this[_0x1c306c(0x174)]();}['_updateCollabCursors'](_0x56a30a,_0x2e9780){const _0x15a328=_0x87a36c;let {scene:_0x2ff362,mainComponent:_0x294298}=this['_context'],_0x10becd=_0x2e9780[_0x15a328(0x284)](_0x414d5d=>new Tn(_0x414d5d,_0x2ff362,_0x56a30a,_0x294298));this['_cursorShapes']=_0x10becd,this[_0x15a328(0x3ca)]=_0x2e9780;}[_0x87a36c(0x236)](){const _0x24aa43=_0x87a36c;this[_0x24aa43(0x2bf)]();let {scene:_0x3e1b5c,mainComponent:_0x4ec0c7}=this[_0x24aa43(0x2f1)],_0x5f4eed=this[_0x24aa43(0x18d)][_0x24aa43(0x183)](),_0x6ae608=this[_0x24aa43(0x3ca)]['map'](_0x3a0253=>new Tn(_0x3a0253,_0x3e1b5c,_0x5f4eed,_0x4ec0c7));this[_0x24aa43(0x235)]=_0x6ae608;}[_0x87a36c(0x2bf)](){const _0x11ef25=_0x87a36c;this[_0x11ef25(0x235)][_0x11ef25(0x1e2)](_0x45c57a=>_0x45c57a[_0x11ef25(0x1b1)]()),this[_0x11ef25(0x235)]=[];}[_0x87a36c(0x174)](){const _0x359472=_0x87a36c;let _0x2e52c9=[_0x276a72['id']];this[_0x359472(0x35d)](this[_0x359472(0x30e)][_0x359472(0x1c4)](_0x5b2d59=>{const _0x39ff2c=_0x359472;_0x2e52c9[_0x39ff2c(0x38e)](_0x5b2d59['id'])&&_0x5b2d59['params']['unitId']===this[_0x39ff2c(0x2f1)][_0x39ff2c(0x25f)]&&this[_0x39ff2c(0x236)]();}));}[_0x87a36c(0x179)](){const _0x23aae8=_0x87a36c;this[_0x23aae8(0x35d)](_0x101fb9(this[_0x23aae8(0x2f1)][_0x23aae8(0x3a8)][_0x23aae8(0x1d7)])[_0x23aae8(0x1a8)](_0x1b2d75(_0x378694=>_0x378694[_0x23aae8(0x2c2)]===_0xebf1f6[_0x23aae8(0x16c)]),_0x3a2db6(0x10))['subscribe'](()=>{const _0x193cc6=_0x23aae8;this[_0x193cc6(0x236)]();}));}};Dn=J([q(0x1,_0x27756b(_0x4322ff)),q(0x2,_0x27756b(Z)),q(0x3,_0x204dc2),q(0x4,_0x27756b(_0x1b3092))],Dn);var On=class extends _0x3a8676{constructor(_0x3f51f2,_0x1c9266){const _0x224ce3=_0x87a36c;super(_0x3f51f2,_0x1c9266),K(this,_0x224ce3(0x1ee),void 0x0),K(this,_0x224ce3(0x1bb),!0x1),K(this,'_range',void 0x0),K(this,'_name',''),K(this,_0x224ce3(0x2d1),_0x224ce3(0x2b4)),K(this,_0x224ce3(0x2c0),void 0x0),K(this,_0x224ce3(0x249),void 0x0),K(this,_0x224ce3(0x1f8),void 0x0),K(this,_0x224ce3(0x222),0x4),K(this,_0x224ce3(0x1de),void 0x0),K(this,'_blinkIntervalTimer',void 0x0),K(this,_0x224ce3(0x2a7),!0x0),K(this,_0x224ce3(0x242),0x0),K(this,'_labelHorizontalPosition','right'),_0x1c9266&&(this['setShapeProps'](_0x1c9266),_0x1c9266[_0x224ce3(0x1ca)]&&(_0x1c9266['highlightSecond']??this[_0x224ce3(0x222)])&&this[_0x224ce3(0x1eb)](_0x1c9266[_0x224ce3(0x3bb)]??this[_0x224ce3(0x222)])),this['onPointerEnter$'][_0x224ce3(0x32f)](()=>this[_0x224ce3(0x2f0)]({'hovered':!0x0})),this['onPointerLeave$'][_0x224ce3(0x32f)](()=>this[_0x224ce3(0x2f0)]({'hovered':!0x1}));}[_0x87a36c(0x157)](_0xad800){const _0x34882c=_0x87a36c;this[_0x34882c(0x242)]=_0xad800;}['setShapeProps'](_0x53ab9f){const _0x1350e2=_0x87a36c;this[_0x1350e2(0x1ee)]=_0x53ab9f[_0x1350e2(0x2d2)]??this[_0x1350e2(0x1ee)],this['_hovered']=_0x53ab9f[_0x1350e2(0x168)]??this[_0x1350e2(0x1bb)],this[_0x1350e2(0x1d3)]=_0x53ab9f['range']??this[_0x1350e2(0x1d3)],this[_0x1350e2(0x25c)]=_0x53ab9f[_0x1350e2(0x33e)]??this[_0x1350e2(0x25c)],this['_labelPosition']=_0x53ab9f[_0x1350e2(0x22e)]??this[_0x1350e2(0x2d1)],this['_backgroundColor']=_0x53ab9f[_0x1350e2(0x1d5)]??this[_0x1350e2(0x2c0)],this[_0x1350e2(0x249)]=_0x53ab9f[_0x1350e2(0x29d)]??this['_showText'],this[_0x1350e2(0x30f)]=_0x53ab9f['labelHorizontalPosition']??this[_0x1350e2(0x30f)],_0x53ab9f[_0x1350e2(0x3bb)]!==void 0x0&&(this[_0x1350e2(0x222)]=_0x53ab9f[_0x1350e2(0x3bb)]),_0x53ab9f[_0x1350e2(0x1ca)]!==void 0x0&&(this['_highlight']=_0x53ab9f[_0x1350e2(0x1ca)]),_0x53ab9f[_0x1350e2(0x1a5)]!==void 0x0&&(this['_offsetY']=_0x53ab9f['offsetY']),this[_0x1350e2(0x34b)]({'width':_0x53ab9f[_0x1350e2(0x217)],'height':_0x53ab9f[_0x1350e2(0x33f)]});}[_0x87a36c(0x16e)](_0x599e51){const _0x587ad3=_0x87a36c;let {row:_0x562168,column:_0x4cb3f0}=_0x599e51;if(_0x562168>=this[_0x587ad3(0x1d3)][_0x587ad3(0x357)]&&_0x562168<=this[_0x587ad3(0x1d3)][_0x587ad3(0x36f)]&&_0x4cb3f0>=this[_0x587ad3(0x1d3)][_0x587ad3(0x331)]&&_0x4cb3f0<=this['_range'][_0x587ad3(0x23e)]){this[_0x587ad3(0x2f0)]({'hovered':!0x0});return;}this[_0x587ad3(0x2f0)]({'hovered':!0x1});}[_0x87a36c(0x1eb)](_0x4ff8d6){const _0x495925=_0x87a36c;this['_stopBlinking'](),this[_0x495925(0x2a7)]=!0x0,this[_0x495925(0x1b8)]=window[_0x495925(0x3b2)](()=>{const _0x56ccab=_0x495925;this[_0x56ccab(0x2a7)]=!this[_0x56ccab(0x2a7)],this[_0x56ccab(0x2dd)](!0x0);},0x1f4),this[_0x495925(0x1de)]=window[_0x495925(0x1f4)](()=>{const _0x29e851=_0x495925;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this[_0x29e851(0x2dd)](!0x0);},_0x4ff8d6*0x3e8);}[_0x87a36c(0x1c6)](){const _0xfd62b1=_0x87a36c;this['_blinkIntervalTimer']&&=(window['clearInterval'](this[_0xfd62b1(0x1b8)]),void 0x0),this[_0xfd62b1(0x1de)]&&=(window['clearTimeout'](this['_blinkTimer']),void 0x0);}[_0x87a36c(0x1db)](_0x2f3453){return!0x1;}[_0x87a36c(0x1b1)](){const _0x5d9e98=_0x87a36c;this[_0x5d9e98(0x1c6)](),super[_0x5d9e98(0x1b1)]();}[_0x87a36c(0x27b)](_0x80df97){const _0x4b52d=_0x87a36c;let _0x523c13=this[_0x4b52d(0x1ee)],_0x8fde2c=this[_0x4b52d(0x2c0)];if(this[_0x4b52d(0x1f8)]&&!this[_0x4b52d(0x2a7)]&&(_0x523c13=this[_0x4b52d(0x164)](this[_0x4b52d(0x1ee)]),_0x8fde2c=this[_0x4b52d(0x2c0)]?this[_0x4b52d(0x164)](this[_0x4b52d(0x2c0)]):void 0x0),_0x420f50[_0x4b52d(0x39b)](_0x80df97,{'width':this[_0x4b52d(0x217)],'height':this[_0x4b52d(0x33f)],'strokeWidth':this[_0x4b52d(0x29e)]||1.5,'stroke':_0x523c13,'evented':!0x1,'fill':_0x8fde2c}),this[_0x4b52d(0x1bb)]||this['_showText']){_0x80df97[_0x4b52d(0x17c)]();let _0x1c1319=this[_0x4b52d(0x30f)]==='left'?-xn(_0x80df97,this[_0x4b52d(0x25c)]):this[_0x4b52d(0x217)];_0x80df97['transform'](0x1,0x0,0x0,0x1,_0x1c1319,(this[_0x4b52d(0x2d1)]===_0x4b52d(0x388)?0x0:-0x14)+(this[_0x4b52d(0x242)]??0x0)),Cn[_0x4b52d(0x39b)](_0x80df97,{'text':this['_name'],'color':_0x523c13}),_0x80df97[_0x4b52d(0x18a)]();}}['_getLighterColor'](_0x3ba77e){const _0x107816=_0x87a36c;return _0x3ba77e[_0x107816(0x336)]('#')?_0x107816(0x226)+Number[_0x107816(0x1b9)](_0x3ba77e[_0x107816(0x2f9)](0x1,0x3),0x10)+',\x20'+Number[_0x107816(0x1b9)](_0x3ba77e[_0x107816(0x2f9)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x3ba77e['slice'](0x5,0x7),0x10)+_0x107816(0x2b8):_0x3ba77e[_0x107816(0x336)]('rgba')?_0x3ba77e['replace'](/[\d.]+\)$/g,_0x107816(0x361)):_0x3ba77e[_0x107816(0x336)]('rgb')?_0x3ba77e['replace'](_0x107816(0x379),_0x107816(0x312))['replace'](')',_0x107816(0x2b8)):_0x3ba77e;}};let kn=class extends _0x172cd9{constructor(_0x7f14f9,_0x1f535a,_0x2f51c2,_0x253cd6){const _0x58f615=_0x87a36c;super(),this[_0x58f615(0x2f1)]=_0x7f14f9,this[_0x58f615(0x1c3)]=_0x1f535a,this[_0x58f615(0x1dd)]=_0x2f51c2,this[_0x58f615(0x3a0)]=_0x253cd6,K(this,'_cursors',new Set()),K(this,_0x58f615(0x1a0),null),K(this,_0x58f615(0x3a7),null),this[_0x58f615(0x25d)]();}[_0x87a36c(0x25d)](){const _0x222d04=_0x87a36c;this[_0x222d04(0x1c3)][_0x222d04(0x2cf)]['pipe'](_0x3cebbf(this[_0x222d04(0x198)]),_0x32f945(_0x30aa27=>{const _0x39f3bb=_0x222d04;if(_0x30aa27){let _0x445a01=_0x30aa27[_0x39f3bb(0x218)];return _0xaca8c8(this['_collabCursorController'][_0x39f3bb(0x376)](this[_0x39f3bb(0x2f1)][_0x39f3bb(0x25f)]),this[_0x39f3bb(0x3a0)][_0x39f3bb(0x1f3)])[_0x39f3bb(0x1a8)](_0x53ab17(([_0xa4541,_0x4bf719])=>{const _0x2108d1=_0x39f3bb;let _0x182b2c=new Map();return _0xa4541[_0x2108d1(0x1e2)]((_0x55dcfd,_0xb955b)=>{const _0x2d0655=_0x2108d1;if(_0x55dcfd['sheetID']===_0x445a01){let _0x35a82a={..._0x55dcfd};_0x35a82a[_0x2d0655(0x2d2)]=this[_0x2d0655(0x3a0)][_0x2d0655(0x37a)](_0x55dcfd[_0x2d0655(0x2d2)]),_0x182b2c[_0x2d0655(0x19c)](_0xb955b,_0x35a82a);}}),{'skeleton':_0x30aa27,'cursors':_0x182b2c};}));}return _0x4ee3c4({'skeleton':null,'cursors':new Map()});}))[_0x222d04(0x310)](({skeleton:_0x91da67,cursors:_0x742e1e})=>{const _0x205181=_0x222d04;this['_removeCollabCursors'](),_0x91da67&&this[_0x205181(0x266)](_0x91da67,_0x742e1e);}),this['disposeWithMe'](this[_0x222d04(0x1c3)]['currentSkeleton$']['pipe'](_0x3cebbf(this[_0x222d04(0x198)]))[_0x222d04(0x310)](_0x1056d6=>{const _0x115da1=_0x222d04;var _0x1375bf;if(_0x1056d6==null)return;(_0x1375bf=this['_pointerMoveDisposable'])==null||_0x1375bf[_0x115da1(0x1cf)](),this['_pointerMoveDisposable']=null;let {skeleton:_0x2e3078}=_0x1056d6,{scene:_0x271df7}=this['_context'];this['_pointerMoveDisposable']=_0x271df7[_0x115da1(0x2d9)][_0x115da1(0x32f)](_0x29a649(_0x4b6f3f=>{const _0x5398d9=_0x115da1;var _0x5a3d56,_0x3b589e;let {offsetX:_0xf186a6,offsetY:_0x36212d}=_0x4b6f3f,{x:_0x20d9f2,y:_0xede29c}=_0x271df7[_0x5398d9(0x282)](_0x43f019[_0x5398d9(0x230)]([_0xf186a6,_0x36212d])),{scaleX:_0x2b220c,scaleY:_0x25228f}=_0x271df7['getAncestorScale'](),_0x130fce=_0x271df7['getViewport'](_0x23960d['VIEW_MAIN']),_0x144468=_0x271df7[_0x5398d9(0x180)](_0x43f019[_0x5398d9(0x230)]([_0x20d9f2,_0xede29c]),_0x130fce),_0x1db9d5=_0x2e3078[_0x5398d9(0x31a)](_0xf186a6,_0x36212d,_0x2b220c,_0x25228f,_0x144468);(((_0x5a3d56=this[_0x5398d9(0x1a0)])==null?void 0x0:_0x5a3d56[_0x5398d9(0x2ea)])!==_0x1db9d5['column']||((_0x3b589e=this[_0x5398d9(0x1a0)])==null?void 0x0:_0x3b589e[_0x5398d9(0x25b)])!==_0x1db9d5[_0x5398d9(0x25b)])&&this[_0x5398d9(0x3ca)][_0x5398d9(0x1e2)](_0x381792=>{const _0x260e7e=_0x5398d9;_0x381792[_0x260e7e(0x16e)](_0x1db9d5);});},0x64));})),this[_0x222d04(0x35d)](_0x32283a(()=>{const _0xc94dd0=_0x222d04;var _0xb36eaf;(_0xb36eaf=this['_pointerMoveDisposable'])==null||_0xb36eaf['unsubscribe'](),this[_0xc94dd0(0x3a7)]=null;}));}['_updateCollabCursors'](_0x328733,_0x99c087){const _0x5e07aa=_0x87a36c;let _0x4069cb=this['_sheetSkeletonManagerService'][_0x5e07aa(0x169)]();if(!_0x4069cb)return;let _0x4533c1=this[_0x5e07aa(0x3af)]();if(!_0x4533c1)return;this[_0x5e07aa(0x3ca)]['forEach'](_0x873f42=>{const _0x57d94a=_0x5e07aa;_0x873f42[_0x57d94a(0x2dd)]();});let {scene:_0x11ae43}=_0x4533c1,_0x59e643=An(Array[_0x5e07aa(0x20e)](_0x99c087[_0x5e07aa(0x209)]()))[_0x5e07aa(0x284)](_0x524753=>{let {color:_0x304134,range:_0x524bf4,name:_0x53760d,selection:_0x38d634,sheetID:_0x1dd1cb}=_0x524753,{startColumn:_0x2f7aaf,startRow:_0x12a93b,endColumn:_0x16ce42,endRow:_0x2733a1}=_0x524bf4,_0x508afa=_0x5e5b67(_0x12a93b,_0x2f7aaf,_0x11ae43,_0x4069cb),_0x2fb141=_0x5e5b67(_0x2733a1,_0x16ce42,_0x11ae43,_0x4069cb),{columnHeaderHeightAndMarginTop:_0x55ba44}=_0x4069cb,{startX:_0x15ad56,startY:_0x2d3e54}=_0x508afa,{endX:_0x34840c,endY:_0xe6c314}=_0x2fb141,_0x434ea8=_0x34840c-_0x15ad56,_0x24d85d=_0xe6c314-_0x2d3e54;return new On(_0x53760d,{'labelPosition':_0x2d3e54-_0x55ba44>=0x14?'top':'bottom','sheetID':_0x1dd1cb,'range':_0x524bf4,'color':_0x304134,'name':_0x53760d,'selection':_0x38d634,'left':_0x15ad56,'top':_0x2d3e54,'width':_0x434ea8,'height':_0x24d85d,'evented':!0x1,'zIndex':0x1389});});_0x11ae43[_0x5e07aa(0x1cd)](_0x59e643,0x1),this[_0x5e07aa(0x3ca)]=new Set(_0x59e643);}[_0x87a36c(0x2bf)](){const _0x3b2719=_0x87a36c;var _0x53864b;(_0x53864b=this[_0x3b2719(0x3ca)])==null||_0x53864b['forEach'](_0x33c1d1=>_0x33c1d1[_0x3b2719(0x1b1)]());}[_0x87a36c(0x3af)](){const _0x1dc90c=_0x87a36c;return _0x71dc0e(this['_context'][_0x1dc90c(0x1fc)],this[_0x1dc90c(0x2f1)]);}};kn=J([q(0x1,_0x27756b(_0x51769a)),q(0x2,_0x27756b(Z)),q(0x3,_0x27756b(_0x1b3092))],kn);function An(_0x5e2915){const _0x2a39a0=_0x87a36c;let _0x1f54d3=new Map();return _0x5e2915[_0x2a39a0(0x1e2)](_0x43fee1=>{const _0x171ba9=_0x2a39a0;if(_0x1f54d3[_0x171ba9(0x364)](_0x43fee1[_0x171ba9(0x2d0)])){let _0x2619b5=_0x1f54d3[_0x171ba9(0x20c)](_0x43fee1['selection']);_0x2619b5[_0x171ba9(0x33e)]+=',\x20'+_0x43fee1[_0x171ba9(0x33e)];}else _0x1f54d3['set'](_0x43fee1[_0x171ba9(0x2d0)],_0x43fee1);}),Array['from'](_0x1f54d3[_0x2a39a0(0x209)]());}function jn(_0x3646a9){const _0x226b10=_0x87a36c;return typeof _0x3646a9==_0x226b10(0x37e)&&!!_0x3646a9;}function Mn(_0x4616ee){const _0xbe0099=_0x87a36c;return _0x4616ee[_0xbe0099(0x39c)]===_0x13a1ec['UPDATE_CURSOR']&&'data'in _0x4616ee&&jn(_0x4616ee[_0xbe0099(0x25e)])&&typeof _0x4616ee[_0xbe0099(0x25e)][_0xbe0099(0x158)]==_0xbe0099(0x1fe)&&typeof _0x4616ee['data'][_0xbe0099(0x2d0)]=='string';}function Nn(_0x4308f5){const _0x218806=_0x87a36c;return _0x4308f5[_0x218806(0x39c)]===_0x13a1ec[_0x218806(0x212)]&&_0x218806(0x25e)in _0x4308f5&&jn(_0x4308f5[_0x218806(0x25e)])&&typeof _0x4308f5[_0x218806(0x25e)][_0x218806(0x158)]==_0x218806(0x1fe);}function _0x3abf(_0x226c53,_0x458b9c){_0x226c53=_0x226c53-0x157;const _0x352807=_0x3528();let _0x3abf8d=_0x352807[_0x226c53];return _0x3abf8d;}function Pn(_0x5d7a04,_0x13dc1b){const _0x46aaa2=_0x87a36c;let _0x1ee28d;try{_0x1ee28d=JSON['parse'](_0x5d7a04);}catch{return null;}if(!jn(_0x1ee28d)||typeof _0x1ee28d[_0x46aaa2(0x1ab)]!='string'||typeof _0x1ee28d[_0x46aaa2(0x25f)]!=_0x46aaa2(0x1fe)||typeof _0x1ee28d[_0x46aaa2(0x20f)]!=_0x46aaa2(0x1fe))return null;let _0x4d591b=typeof _0x1ee28d['unitType']==_0x46aaa2(0x393)?_0x1ee28d['unitType']:_0x13dc1b;if(_0x4d591b==null)return null;let _0x190827=jn(_0x1ee28d[_0x46aaa2(0x173)])&&typeof _0x1ee28d[_0x46aaa2(0x173)]['x']==_0x46aaa2(0x393)&&Number[_0x46aaa2(0x246)](_0x1ee28d[_0x46aaa2(0x173)]['x'])&&typeof _0x1ee28d[_0x46aaa2(0x173)]['y']==_0x46aaa2(0x393)&&Number[_0x46aaa2(0x246)](_0x1ee28d[_0x46aaa2(0x173)]['y'])?{'x':_0x1ee28d[_0x46aaa2(0x173)]['x'],'y':_0x1ee28d[_0x46aaa2(0x173)]['y']}:null;return{'kind':_0x1ee28d[_0x46aaa2(0x1ab)],'unitType':_0x4d591b,'unitId':_0x1ee28d[_0x46aaa2(0x25f)],'subUnitId':_0x1ee28d[_0x46aaa2(0x20f)],'selectedIds':Array['isArray'](_0x1ee28d[_0x46aaa2(0x287)])?_0x1ee28d[_0x46aaa2(0x287)]['filter'](_0xdda233=>typeof _0xdda233==_0x46aaa2(0x1fe)):[],'focusedId':typeof _0x1ee28d[_0x46aaa2(0x193)]=='string'?_0x1ee28d['focusedId']:null,'pointer':_0x190827};}function Fn(_0x393978,_0x4ddbd5,_0x643924){const _0x107f6a=_0x87a36c;return{'kind':_0x4ddbd5,'unitType':_0x393978,'unitId':_0x643924[_0x107f6a(0x25f)],'subUnitId':_0x643924[_0x107f6a(0x20f)],'selectedIds':Array[_0x107f6a(0x20e)](_0x643924['selectedIds']),'focusedId':_0x643924[_0x107f6a(0x193)],'pointer':_0x643924[_0x107f6a(0x173)]?{..._0x643924['pointer']}:null};}let In=class extends _0x172cd9{constructor(_0xa6e0db,_0x20116f,_0x107e75,_0x3855d7,_0x21655a,_0x17f3e1){const _0x245b46=_0x87a36c;super(),this[_0x245b46(0x25f)]=_0xa6e0db,this['_session']=_0x20116f,this[_0x245b46(0x38f)]=_0x107e75,this[_0x245b46(0x1d4)]=_0x3855d7,this[_0x245b46(0x1a4)]=_0x21655a,this[_0x245b46(0x30e)]=_0x17f3e1,K(this,'_online',!0x1),K(this,_0x245b46(0x330),!0x1);}get[_0x87a36c(0x340)](){return this['_adapter']['unitType'];}[_0x87a36c(0x1b1)](){const _0x3e2532=_0x87a36c;this[_0x3e2532(0x1bf)](),super[_0x3e2532(0x1b1)]();}[_0x87a36c(0x1c5)](){const _0x3e32b7=_0x87a36c;this[_0x3e32b7(0x330)]||(this['_initialized']=!0x0,this['_session'][_0x3e32b7(0x359)]['pipe'](_0xefeb1b(this[_0x3e32b7(0x198)]))[_0x3e32b7(0x310)](_0x5f43e9=>{const _0x17db07=_0x3e32b7;if(_0x5f43e9===_0x3e1a2e[_0x17db07(0x208)]){this[_0x17db07(0x348)]=!0x0;let _0x555dc9=this[_0x17db07(0x38f)]['getLocalPresence'](this[_0x17db07(0x25f)]);_0x555dc9&&this['_sendLocalPresence'](_0x555dc9);return;}this[_0x17db07(0x348)]=!0x1,this[_0x17db07(0x1bf)]();}),this[_0x3e32b7(0x3b5)][_0x3e32b7(0x24f)][_0x3e32b7(0x1a8)](_0xefeb1b(this[_0x3e32b7(0x198)]))[_0x3e32b7(0x310)](_0x21fca5=>{const _0x2a7238=_0x3e32b7;Mn(_0x21fca5)?this[_0x2a7238(0x380)](_0x21fca5):Nn(_0x21fca5)&&this[_0x2a7238(0x17b)](_0x21fca5['data'][_0x2a7238(0x158)]);}),this[_0x3e32b7(0x38f)][_0x3e32b7(0x3c0)][_0x3e32b7(0x1a8)](_0x2cbae3(_0x36a666=>this[_0x3e32b7(0x348)]&&_0x36a666['unitId']===this['unitId']),_0x10cb6c(_0x758915=>_0x3d8b9a(_0x758915[_0x3e32b7(0x3c8)]),{'leading':!0x0,'trailing':!0x0}),_0xefeb1b(this[_0x3e32b7(0x198)]))[_0x3e32b7(0x310)](_0x1b91b3=>this['_sendLocalPresence'](_0x1b91b3)));}[_0x87a36c(0x18c)](_0x5a1c2e){const _0x359167=_0x87a36c;let _0x203d23=this['_session']['getMemberID']();if(!_0x203d23||!this['_online'])return;let _0x2ce220={'eventID':_0x13a1ec[_0x359167(0x3b6)],'data':{'unitID':this[_0x359167(0x25f)],'memberID':_0x203d23,'selection':JSON[_0x359167(0x261)](Fn(this['unitType'],this[_0x359167(0x38f)][_0x359167(0x377)],_0x5a1c2e))}};this['_session'][_0x359167(0x2e9)](_0x2ce220,this['unitId'])['catch'](()=>void 0x0);}[_0x87a36c(0x380)](_0x342f84){const _0x58267d=_0x87a36c;let {memberID:_0x2fe38f,selection:_0x4094bb}=_0x342f84[_0x58267d(0x25e)];if(_0x2fe38f===this[_0x58267d(0x3b5)][_0x58267d(0x172)]())return;let _0x76b8f0=Pn(_0x4094bb,this[_0x58267d(0x340)]);if(!_0x76b8f0||_0x76b8f0[_0x58267d(0x1ab)]!==this['_adapter'][_0x58267d(0x377)]||_0x76b8f0[_0x58267d(0x340)]!==this[_0x58267d(0x340)]||_0x76b8f0[_0x58267d(0x25f)]!==this[_0x58267d(0x25f)])return;let _0x4b8826=this[_0x58267d(0x1a4)]['getMember'](this[_0x58267d(0x25f)],_0x2fe38f),_0x7de319={'unitId':_0x76b8f0[_0x58267d(0x25f)],'subUnitId':_0x76b8f0['subUnitId'],'selectedIds':_0x76b8f0[_0x58267d(0x287)],'focusedId':_0x76b8f0[_0x58267d(0x193)],'pointer':_0x76b8f0[_0x58267d(0x173)],'memberId':_0x2fe38f,'color':this[_0x58267d(0x1d4)]['assignAColorForMemberID'](_0x2fe38f),'name':(_0x4b8826==null?void 0x0:_0x4b8826['name'])??_0x2fe38f};this[_0x58267d(0x30e)][_0x58267d(0x166)](X['id'],{'unitType':this[_0x58267d(0x340)],'update':{'type':'set','state':_0x7de319}})['catch'](()=>void 0x0);}['_removeRemotePresence'](_0x4f9c05){const _0x12ddc6=_0x87a36c;this[_0x12ddc6(0x30e)]['executeCommand'](X['id'],{'unitType':this['unitType'],'update':{'type':_0x12ddc6(0x355),'unitId':this['unitId'],'memberId':_0x4f9c05}})[_0x12ddc6(0x2ed)](()=>void 0x0);}['_clearRemotePresences'](){const _0x9dbd65=_0x87a36c;this[_0x9dbd65(0x30e)][_0x9dbd65(0x166)](X['id'],{'unitType':this[_0x9dbd65(0x340)],'update':{'type':_0x9dbd65(0x2eb),'unitId':this[_0x9dbd65(0x25f)]}})[_0x9dbd65(0x2ed)](()=>void 0x0);}};In=J([q(0x3,_0x27756b(mn)),q(0x4,_0x27756b(_0x207680)),q(0x5,_0x27756b(_0x204dc2))],In);let Ln=class extends _0x172cd9{constructor(_0x330405,_0x27f3c5,_0x315355,_0x94619){const _0xcba327=_0x87a36c;super(),this[_0xcba327(0x369)]=_0x330405,this['_injector']=_0x27f3c5,this[_0xcba327(0x334)]=_0x315355,this['_adapterRegistry']=_0x94619,K(this,_0xcba327(0x229),!0x1),K(this,_0xcba327(0x1e4),new Map()),K(this,_0xcba327(0x167),new Map()),K(this,_0xcba327(0x2d7),new Map()),this[_0xcba327(0x25d)]();}[_0x87a36c(0x1b1)](){const _0x474558=_0x87a36c;this['_isDisposed']=!0x0,this[_0x474558(0x2d7)][_0x474558(0x1e2)](_0x5bd889=>_0x5bd889['dispose']()),this[_0x474558(0x2d7)]['clear'](),this['_entities'][_0x474558(0x1e2)](_0x7c749c=>_0x7c749c[_0x474558(0x1b1)]()),this[_0x474558(0x1e4)]['clear'](),this[_0x474558(0x167)][_0x474558(0x2eb)](),super[_0x474558(0x1b1)]();}[_0x87a36c(0x25d)](){const _0xaa088e=_0x87a36c;this[_0xaa088e(0x27e)][_0xaa088e(0x184)][_0xaa088e(0x1a8)](_0xefeb1b(this[_0xaa088e(0x198)]))[_0xaa088e(0x310)](_0x3bec45=>this[_0xaa088e(0x2b0)](_0x3bec45));}['_syncAdapters'](_0x2c0f42){const _0x115dc8=_0x87a36c;let _0x4ca028=new Set(_0x2c0f42[_0x115dc8(0x284)](_0x31d0f6=>_0x31d0f6[_0x115dc8(0x340)]));this[_0x115dc8(0x2d7)][_0x115dc8(0x1e2)]((_0x355c32,_0x35b76b)=>{const _0x7be539=_0x115dc8;_0x4ca028[_0x7be539(0x364)](_0x35b76b)||(_0x355c32[_0x7be539(0x1b1)](),this['_adapterDisposables']['delete'](_0x35b76b),this[_0x7be539(0x2db)](_0x35b76b));}),_0x2c0f42[_0x115dc8(0x1e2)](_0xeaebee=>{const _0x10b762=_0x115dc8;this[_0x10b762(0x2d7)][_0x10b762(0x364)](_0xeaebee[_0x10b762(0x340)])||this[_0x10b762(0x28d)](_0xeaebee);});}['_bindAdapter'](_0x36e18f){const _0x1028ce=_0x87a36c;let _0x531e1b=new _0x2a6524();this[_0x1028ce(0x2d7)][_0x1028ce(0x19c)](_0x36e18f[_0x1028ce(0x340)],_0x531e1b),_0x531e1b[_0x1028ce(0x38c)](_0x36e18f[_0x1028ce(0x213)]()),this[_0x1028ce(0x369)][_0x1028ce(0x3ae)](_0x36e18f[_0x1028ce(0x340)])[_0x1028ce(0x1e2)](_0x1b10af=>this['_startEntity'](_0x1b10af[_0x1028ce(0x181)](),_0x36e18f)[_0x1028ce(0x2ed)](()=>void 0x0));let _0x4528f4=this['_univerInstanceService'][_0x1028ce(0x1e1)](_0x36e18f[_0x1028ce(0x340)])[_0x1028ce(0x310)](({unit:_0x5149cc})=>this[_0x1028ce(0x262)](_0x5149cc[_0x1028ce(0x181)](),_0x36e18f)[_0x1028ce(0x2ed)](()=>void 0x0));_0x531e1b[_0x1028ce(0x38c)](_0x32283a(()=>_0x4528f4[_0x1028ce(0x1cf)]()));let _0x44d288=this[_0x1028ce(0x369)][_0x1028ce(0x290)](_0x36e18f[_0x1028ce(0x340)])[_0x1028ce(0x310)](_0x49300d=>this[_0x1028ce(0x22a)](_0x49300d[_0x1028ce(0x181)]()));_0x531e1b['add'](_0x32283a(()=>_0x44d288[_0x1028ce(0x1cf)]()));}async[_0x87a36c(0x262)](_0x22258f,_0x2488a2){const _0x5fcfad=_0x87a36c;if(this[_0x5fcfad(0x1e4)][_0x5fcfad(0x364)](_0x22258f)||this['_pendingEntities'][_0x5fcfad(0x364)](_0x22258f))return;let _0xd50742={};this[_0x5fcfad(0x167)]['set'](_0x22258f,_0xd50742);let _0x1f1a6a=await this[_0x5fcfad(0x334)][_0x5fcfad(0x346)](_0x22258f)[_0x5fcfad(0x2ed)](_0x3b5cf5=>{const _0x107d14=_0x5fcfad;throw this['_pendingEntities'][_0x107d14(0x20c)](_0x22258f)===_0xd50742&&this[_0x107d14(0x167)][_0x107d14(0x2d8)](_0x22258f),_0x3b5cf5;});if(this['_isDisposed']||this[_0x5fcfad(0x167)][_0x5fcfad(0x20c)](_0x22258f)!==_0xd50742||this['_adapterRegistry'][_0x5fcfad(0x20c)](_0x2488a2['unitType'])!==_0x2488a2){this['_pendingEntities'][_0x5fcfad(0x20c)](_0x22258f)===_0xd50742&&this[_0x5fcfad(0x167)]['delete'](_0x22258f);return;}let _0x35a0d3=this[_0x5fcfad(0x31d)][_0x5fcfad(0x34c)](In,_0x22258f,_0x1f1a6a,_0x2488a2);_0x35a0d3['init'](),this[_0x5fcfad(0x167)]['delete'](_0x22258f),this[_0x5fcfad(0x1e4)][_0x5fcfad(0x19c)](_0x22258f,_0x35a0d3);}[_0x87a36c(0x22a)](_0x189838){const _0x5091fc=_0x87a36c;this[_0x5091fc(0x167)][_0x5091fc(0x2d8)](_0x189838);let _0x1263f9=this[_0x5091fc(0x1e4)][_0x5091fc(0x20c)](_0x189838);_0x1263f9&&(_0x1263f9[_0x5091fc(0x1b1)](),this[_0x5091fc(0x1e4)][_0x5091fc(0x2d8)](_0x189838));}[_0x87a36c(0x2db)](_0xaa53bf){const _0x241e33=_0x87a36c;this[_0x241e33(0x369)][_0x241e33(0x3ae)](_0xaa53bf)['forEach'](_0x269a2f=>this['_pendingEntities'][_0x241e33(0x2d8)](_0x269a2f[_0x241e33(0x181)]())),Array[_0x241e33(0x20e)](this[_0x241e33(0x1e4)]['entries']())[_0x241e33(0x1e2)](([_0x4c063a,_0x4cad61])=>{const _0x5c497c=_0x241e33;_0x4cad61[_0x5c497c(0x340)]===_0xaa53bf&&this[_0x5c497c(0x22a)](_0x4c063a);});}};Ln=J([q(0x0,_0x5b5bb5),q(0x1,_0x27756b(_0x25c197)),q(0x2,_0x27756b(_0x538451)),q(0x3,_0x27756b(_0x29e494))],Ln);const Rn={'toast':_0x87a36c(0x3d2),'actionButton':_0x87a36c(0x2b2)};let zn=class extends _0x2e1ec0{constructor(_0x39f25d,_0x3ae959,_0x3e7d9a,_0x537545,_0x31d37e,_0x4d0d4d){const _0x314c2e=_0x87a36c;super(),this[_0x314c2e(0x199)]=_0x39f25d,this[_0x314c2e(0x347)]=_0x3ae959,this[_0x314c2e(0x351)]=_0x3e7d9a,this['_messageService']=_0x537545,this[_0x314c2e(0x383)]=_0x31d37e,this[_0x314c2e(0x3bc)]=_0x4d0d4d,K(this,'_conflictNotification',null),K(this,_0x314c2e(0x1cc),new Set()),this[_0x314c2e(0x1e3)](),this[_0x314c2e(0x289)]();}[_0x87a36c(0x1b1)](){const _0x220453=_0x87a36c;var _0x33d42c;(_0x33d42c=this['_conflictNotification'])==null||_0x33d42c[_0x220453(0x1b1)](),this[_0x220453(0x329)]=null,super[_0x220453(0x1b1)]();}['_setupBeforeClosingHandler'](){const _0x13e18a=_0x87a36c;this[_0x13e18a(0x35d)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x14b55f=_0x13e18a;if(this[_0x14b55f(0x347)][_0x14b55f(0x2c8)]['size'])return this[_0x14b55f(0x3bc)]['t'](_0x14b55f(0x367));}));}[_0x87a36c(0x289)](){const _0x172b1c=_0x87a36c;this['disposeWithMe'](this[_0x172b1c(0x351)]['event$'][_0x172b1c(0x310)](_0x18a5cd=>{const _0x46755c=_0x172b1c;_0x18a5cd['id']===_0x401512[_0x46755c(0x314)]&&this[_0x46755c(0x309)]['show']({'type':_0x106a5c[_0x46755c(0x2c1)],'content':this[_0x46755c(0x3bc)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x18a5cd['id']===_0x401512['CLOSE_ROOM']&&this[_0x46755c(0x309)][_0x46755c(0x345)]({'type':_0x106a5c[_0x46755c(0x2c1)],'content':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x190))}),_0x18a5cd['id']===_0x401512[_0x46755c(0x232)]&&this['_replaceConflictNotification']({'title':this[_0x46755c(0x3bc)]['t']('collaboration-client-ui.permission.title'),'content':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x207)),'type':_0x46755c(0x2ba),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x33d)),'onClick':_0x2b191=>{const _0x5487b1=_0x46755c;_0x2b191[_0x5487b1(0x32c)](),window['location'][_0x5487b1(0x34e)]();}}}),_0x18a5cd['id']===_0x401512[_0x46755c(0x332)]&&this[_0x46755c(0x3ab)](),_0x18a5cd['id']===_0x401512[_0x46755c(0x2d4)]&&_0x18a5cd[_0x46755c(0x2f3)]&&this[_0x46755c(0x3c5)](_0x18a5cd['unitID']),_0x18a5cd['id']===_0x401512[_0x46755c(0x162)]&&this['_replaceConflictNotification']({'title':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x36d)),'content':this[_0x46755c(0x3bc)]['t']('collaboration-client-ui.conflict.content'),'type':_0x46755c(0x2ba),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this['_localeService']['t'](_0x46755c(0x33d)),'onClick':_0x526679=>{const _0x22d6fd=_0x46755c;_0x526679[_0x22d6fd(0x32c)](),window[_0x22d6fd(0x2a8)][_0x22d6fd(0x34e)]();}}}),_0x18a5cd['id']===_0x401512[_0x46755c(0x1a7)]&&this[_0x46755c(0x309)][_0x46755c(0x345)]({'type':_0x106a5c[_0x46755c(0x2c1)],'content':this[_0x46755c(0x3bc)]['t'](_0x18a5cd['data']||'')}),_0x18a5cd['id']===_0x401512[_0x46755c(0x23a)]&&this[_0x46755c(0x309)][_0x46755c(0x345)]({'type':_0x106a5c[_0x46755c(0x2c1)],'content':this['_localeService']['t'](_0x46755c(0x2cd))}),_0x18a5cd['id']===_0x401512[_0x46755c(0x161)]&&this[_0x46755c(0x309)]['show']({'type':_0x106a5c[_0x46755c(0x196)],'content':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x227))}),_0x18a5cd['id']===_0x401512[_0x46755c(0x32a)]&&this[_0x46755c(0x309)][_0x46755c(0x345)]({'type':_0x106a5c[_0x46755c(0x196)],'content':this[_0x46755c(0x3bc)]['t'](_0x46755c(0x2cb))});}));}[_0x87a36c(0x3ab)](){const _0x3a5060=_0x87a36c;this[_0x3a5060(0x2b9)]({'title':this[_0x3a5060(0x3bc)]['t'](_0x3a5060(0x36d)),'content':this['_localeService']['t'](_0x3a5060(0x291)),'type':_0x3a5060(0x21e),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x87a36c(0x3c5)](_0x4a4da1){const _0x3d8cf7=_0x87a36c;this[_0x3d8cf7(0x2b9)]({'title':this['_localeService']['t'](_0x3d8cf7(0x36d)),'content':this['_localeService']['t'](_0x3d8cf7(0x373)),'type':_0x3d8cf7(0x2ba),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':Rn,'action':{'label':this['_localeService']['t'](_0x3d8cf7(0x244)),'onClick':_0x28739e=>{const _0x9f4e85=_0x3d8cf7;_0x28739e[_0x9f4e85(0x32c)](),this['_retryConflictCacheClear'](_0x4a4da1);}}});}['_retryConflictCacheClear'](_0x4c6420){const _0x4da6a8=_0x87a36c;this[_0x4da6a8(0x1cc)][_0x4da6a8(0x364)](_0x4c6420)||(this[_0x4da6a8(0x1cc)][_0x4da6a8(0x38c)](_0x4c6420),this[_0x4da6a8(0x3ab)](),this[_0x4da6a8(0x347)]['clearOfflineData'](_0x4c6420)[_0x4da6a8(0x30a)](()=>window[_0x4da6a8(0x2a8)][_0x4da6a8(0x34e)]())[_0x4da6a8(0x2ed)](()=>this[_0x4da6a8(0x3c5)](_0x4c6420))[_0x4da6a8(0x1f9)](()=>this[_0x4da6a8(0x1cc)][_0x4da6a8(0x2d8)](_0x4c6420)));}[_0x87a36c(0x2b9)](_0x5d94a2){const _0x18810b=_0x87a36c;var _0x2e8314;(_0x2e8314=this['_conflictNotification'])==null||_0x2e8314['dispose'](),this[_0x18810b(0x329)]=this['_notificationService'][_0x18810b(0x345)](_0x5d94a2);}};zn=J([q(0x0,_0x3cca16),q(0x1,_0xd043a9),q(0x2,_0x27756b(_0x36f4e2)),q(0x3,_0x1ffcd0),q(0x4,_0x3b3c46),q(0x5,_0x27756b(_0x19f7e2))],zn);const Q=_0x1fdd4b(_0x87a36c(0x3c3));let Bn=class extends _0x172cd9{constructor(_0x574df9,_0x2800e1,_0x377b38,_0x505ad5){const _0x56633b=_0x87a36c;super(),this[_0x56633b(0x214)]=_0x574df9,this[_0x56633b(0x1ac)]=_0x2800e1,this['_commandService']=_0x377b38,this[_0x56633b(0x20d)]=_0x505ad5,this[_0x56633b(0x25d)]()['catch'](_0x2a793e=>this['_logService'][_0x56633b(0x2ba)](_0x56633b(0x19e),_0x2a793e));}async['_init'](){const _0x4721d0=_0x87a36c;let _0x4ebf5f=this[_0x4721d0(0x214)][_0x4721d0(0x390)]('unit'),_0x846466=this[_0x4721d0(0x214)][_0x4721d0(0x390)](_0x4721d0(0x2c2)),_0x4d0d10=this['_urlService'][_0x4721d0(0x390)]('subunit');if(!_0x4ebf5f||!_0x846466){this['_logService'][_0x4721d0(0x260)](_0x4721d0(0x19e),_0x4721d0(0x2b5));return;}let _0x1a8f87=await this[_0x4721d0(0x20d)][_0x4721d0(0x2b7)](_0x4ebf5f,Number(_0x846466),_0x4d0d10);this[_0x4721d0(0x31f)]||_0x1a8f87&&_0x1a8f87 instanceof _0x3af08a&&await this[_0x4721d0(0x263)](_0x1a8f87);}async[_0x87a36c(0x263)](_0x50af29){const _0x1c7bf8=_0x87a36c;await this['_updateSubUnitFromURLParams'](_0x50af29,!0x0),!this['_disposed']&&(_0x50af29[_0x1c7bf8(0x182)][_0x1c7bf8(0x1a8)](_0xefeb1b(this['dispose$']))[_0x1c7bf8(0x310)](_0x3c84cd=>{_0x3c84cd&&this['_updateURLWithCurrentState'](_0x3c84cd);}),this[_0x1c7bf8(0x214)][_0x1c7bf8(0x30b)][_0x1c7bf8(0x1a8)](_0xefeb1b(this[_0x1c7bf8(0x198)]))[_0x1c7bf8(0x310)](()=>{const _0x1c3b8c=_0x1c7bf8;this[_0x1c3b8c(0x327)](_0x50af29)['catch'](_0x22c292=>this[_0x1c3b8c(0x1ac)]['error'](_0x1c3b8c(0x19e),_0x22c292));}));}[_0x87a36c(0x28f)](_0x7ad82f,_0x21df9b=!0x1){const _0x1cbda7=_0x87a36c;let _0x20a40d=this[_0x1cbda7(0x214)][_0x1cbda7(0x390)](_0x1cbda7(0x1f7));_0x7ad82f[_0x1cbda7(0x30c)]()!==_0x20a40d&&this[_0x1cbda7(0x214)][_0x1cbda7(0x320)]('subunit',_0x7ad82f['getSheetId'](),_0x21df9b);}async[_0x87a36c(0x327)](_0x31863b,_0x2116cf=!0x1){const _0x5706d2=_0x87a36c;var _0x905cc1;let _0x3e123e=this['_urlService']['getParam'](_0x5706d2(0x1f7));if(!_0x3e123e||!_0x31863b[_0x5706d2(0x2df)](_0x3e123e)){let _0x595278=_0x31863b[_0x5706d2(0x278)]()[0x0],_0x1121e1=_0x31863b['getSheetBySheetId'](_0x595278);if(!_0x1121e1||(this[_0x5706d2(0x28f)](_0x1121e1,!0x0),this[_0x5706d2(0x31f)]))return;await this[_0x5706d2(0x30e)][_0x5706d2(0x166)](_0x5b26c0['id'],{'unitId':_0x31863b[_0x5706d2(0x181)](),'subUnitId':_0x595278});return;}(_0x2116cf||((_0x905cc1=_0x31863b[_0x5706d2(0x362)]())==null?void 0x0:_0x905cc1['getSheetId']())!==_0x3e123e)&&await this[_0x5706d2(0x30e)]['executeCommand'](_0x5b26c0['id'],{'unitId':_0x31863b[_0x5706d2(0x181)](),'subUnitId':_0x3e123e});}};Bn=J([q(0x0,Q),q(0x1,_0x31aa30),q(0x2,_0x204dc2),q(0x3,_0x27756b(_0x25c527))],Bn);let Vn=class{constructor(_0x19ec46,_0x463ddf){const _0xe75825=_0x87a36c;this[_0xe75825(0x203)]=_0x19ec46,this[_0xe75825(0x221)]=_0x463ddf;}[_0x87a36c(0x2ff)](_0x4d2d20){const _0x485a3c=_0x87a36c;this[_0x485a3c(0x1dc)](_0x4d2d20),this[_0x485a3c(0x258)](_0x4d2d20);}['transformRemoteChangeset'](_0x4efba9){const _0xe3feeb=_0x87a36c;let {unitID:_0xf78925}=_0x4efba9,{redoCache:_0x51e862}=this[_0xe3feeb(0x221)]['getRenderUnitById'](_0xf78925)[_0xe3feeb(0x2cc)](_0x195603)['getUndoRedoMutationParamsCache']();if(_0x51e862[_0xe3feeb(0x2f5)]===0x0)return _0x4efba9;let _0x40ffda=_0x3690a5['deepClone'](_0x4efba9[_0xe3feeb(0x341)][0x0]);for(let _0x4dbe0d=0x0;_0x4dbe0d<_0x51e862[_0xe3feeb(0x2f5)];_0x4dbe0d++){let _0x287e06={'id':_0xe3feeb(0x279),'params':{..._0x51e862[_0x4dbe0d]}},_0x462710=this['_transformService']['transformMutation'](_0x40ffda,_0x287e06,!0x1);if(_0x474f1b(_0x462710))throw _0x462710['error'];_0x40ffda=_0x462710['m1Prime'];}return{..._0x3690a5[_0xe3feeb(0x32d)](_0x4efba9),'mutations':[_0x40ffda]};}['_transformUndoRedoStack'](_0x3b39df){const _0x270c88=_0x87a36c;let {unitID:_0x21e245}=_0x3b39df,_0x412b9e=this[_0x270c88(0x221)][_0x270c88(0x3be)](_0x21e245)[_0x270c88(0x2cc)](_0x195603),{undoCache:_0x28dfdd,redoCache:_0x3e637d}=_0x412b9e[_0x270c88(0x1f6)]();if(_0x28dfdd[_0x270c88(0x2f5)]===0x0||_0x3e637d[_0x270c88(0x2f5)]===0x0)return;let _0x5016e6=[],_0x493802=[],_0xe43a6c=_0x3690a5['deepClone'](_0x3b39df[_0x270c88(0x341)][0x0]),_0x6a0496=_0x3690a5['deepClone'](_0x3b39df['mutations'][0x0]);for(let _0x3c74e6=_0x28dfdd['length']-0x1;_0x3c74e6>=0x0;_0x3c74e6--){let _0xe606d1={'id':_0x270c88(0x279),'params':{..._0x28dfdd[_0x3c74e6]}},_0x3cae55={'id':_0x270c88(0x279),'params':{..._0x3e637d[_0x3c74e6]}},_0x35226d=this[_0x270c88(0x203)][_0x270c88(0x238)](_0xe43a6c,_0xe606d1,!0x1),_0x610a3e=this[_0x270c88(0x203)]['transformMutation'](_0x6a0496,_0x3cae55,!0x1);if(_0x474f1b(_0x35226d))throw _0x35226d[_0x270c88(0x2ba)];if(_0x474f1b(_0x610a3e))throw _0x610a3e['error'];_0x5016e6[_0x270c88(0x354)](_0x35226d[_0x270c88(0x30d)][_0x270c88(0x1e0)]),_0x493802[_0x270c88(0x354)](_0x610a3e[_0x270c88(0x30d)][_0x270c88(0x1e0)]),_0xe43a6c=_0x35226d['m1Prime'],_0x6a0496=_0x610a3e[_0x270c88(0x254)];}_0x412b9e['setUndoRedoMutationParamsCache']({'undoCache':_0x5016e6,'redoCache':_0x493802});}[_0x87a36c(0x258)](_0x2c7494){const _0x3494f8=_0x87a36c;let {unitID:_0x308782}=_0x2c7494,_0x443bf8=this[_0x3494f8(0x221)][_0x3494f8(0x3be)](_0x308782)[_0x3494f8(0x2cc)](_0x195603),_0xcfc617=_0x443bf8[_0x3494f8(0x358)]();if(_0xcfc617==null)return;let _0xc647c0=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2c7494[_0x3494f8(0x2f3)],'actions':null,'textRanges':[_0xcfc617]}}],_0x3d6706=this['_transformService'][_0x3494f8(0x303)](_0x2c7494,_0xc647c0);if(!_0x1fe03b(_0x3d6706))throw _0x3d6706['error'];let _0x5e8908=_0x3d6706[_0x3494f8(0x30d)][0x0][_0x3494f8(0x1e0)]['textRanges'];Array[_0x3494f8(0x3ce)](_0x5e8908)&&_0x5e8908['length']&&_0x443bf8['setActiveRange'](_0x5e8908[0x0]);}};Vn=J([q(0x0,_0x366b2a),q(0x1,_0xc67b4e)],Vn);let Hn=class{constructor(_0x225c5a,_0x4796a7,_0x55e2b5){const _0x22c43e=_0x87a36c;this[_0x22c43e(0x31d)]=_0x225c5a,this[_0x22c43e(0x203)]=_0x4796a7,this[_0x22c43e(0x170)]=_0x55e2b5;}[_0x87a36c(0x292)](_0x3eb9a2){this['_transformHistoryAndStateStack'](_0x3eb9a2);}[_0x87a36c(0x3b3)](_0x3b6d71){const _0x864cc9=_0x87a36c;let {unitID:_0x1fda69}=_0x3b6d71,{collaboration:_0x2a6fb1}=this['_docStateChangeManagerService']['getStateCache'](_0x1fda69);if(_0x2a6fb1[_0x864cc9(0x2f5)]===0x0)return _0x3b6d71;let _0x27f334=_0x3690a5[_0x864cc9(0x32d)](_0x3b6d71[_0x864cc9(0x341)][0x0]);for(let _0x2259eb=0x0;_0x2259eb<_0x2a6fb1[_0x864cc9(0x2f5)];_0x2259eb++){let _0x10f30b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2a6fb1[_0x2259eb][_0x864cc9(0x25f)],..._0x2a6fb1[_0x2259eb][_0x864cc9(0x15a)]}},_0x52e132=this[_0x864cc9(0x203)][_0x864cc9(0x238)](_0x27f334,_0x10f30b,!0x1);if(_0x474f1b(_0x52e132))throw _0x52e132[_0x864cc9(0x2ba)];_0x27f334=_0x52e132[_0x864cc9(0x254)];}return{..._0x3690a5['deepClone'](_0x3b6d71),'mutations':[_0x27f334]};}['_transformHistoryAndStateStack'](_0xe81dcf){const _0x3b75ba=_0x87a36c;let {unitID:_0x340aa7}=_0xe81dcf,{history:_0x3bc613,collaboration:_0x559d4d}=this[_0x3b75ba(0x170)][_0x3b75ba(0x344)](_0x340aa7);if(_0x3bc613[_0x3b75ba(0x2f5)]===0x0&&_0x559d4d[_0x3b75ba(0x2f5)]===0x0)return;let _0x2128cd=[],_0x3de3e6=[],_0x4f7469=_0x3690a5['deepClone'](_0xe81dcf[_0x3b75ba(0x341)][0x0]),_0x28d63e=_0x3690a5[_0x3b75ba(0x32d)](_0xe81dcf[_0x3b75ba(0x341)][0x0]);for(let _0xab3694=_0x3bc613[_0x3b75ba(0x2f5)]-0x1;_0xab3694>=0x0;_0xab3694--){let _0x5ee2b9={'id':_0x3b75ba(0x279),'params':{'unitId':_0x3bc613[_0xab3694]['unitId'],..._0x3bc613[_0xab3694][_0x3b75ba(0x1e5)]}},_0x521d08={'id':_0x3b75ba(0x279),'params':{'unitId':_0x3bc613[_0xab3694][_0x3b75ba(0x25f)],..._0x3bc613[_0xab3694][_0x3b75ba(0x15a)]}},_0x118915=this[_0x3b75ba(0x203)][_0x3b75ba(0x238)](_0x4f7469,_0x5ee2b9,!0x1),_0x527aab=this['_transformService'][_0x3b75ba(0x238)](_0x28d63e,_0x521d08,!0x1);if(_0x474f1b(_0x118915))throw _0x118915[_0x3b75ba(0x2ba)];if(_0x474f1b(_0x527aab))throw _0x527aab[_0x3b75ba(0x2ba)];_0x2128cd[_0x3b75ba(0x354)]({..._0x3bc613[_0xab3694],'undoState':_0x118915[_0x3b75ba(0x30d)][_0x3b75ba(0x1e0)],'redoState':_0x527aab[_0x3b75ba(0x30d)][_0x3b75ba(0x1e0)]}),_0x4f7469=_0x118915[_0x3b75ba(0x254)],_0x28d63e=_0x527aab[_0x3b75ba(0x254)];}_0x4f7469=_0x3690a5[_0x3b75ba(0x32d)](_0xe81dcf[_0x3b75ba(0x341)][0x0]),_0x28d63e=_0x3690a5[_0x3b75ba(0x32d)](_0xe81dcf[_0x3b75ba(0x341)][0x0]);for(let _0x3178ad=_0x559d4d['length']-0x1;_0x3178ad>=0x0;_0x3178ad--){let _0x411f21={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x559d4d[_0x3178ad][_0x3b75ba(0x25f)],..._0x559d4d[_0x3178ad][_0x3b75ba(0x1e5)]}},_0x35494a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x559d4d[_0x3178ad]['unitId'],..._0x559d4d[_0x3178ad][_0x3b75ba(0x15a)]}},_0x3396f1=this[_0x3b75ba(0x203)][_0x3b75ba(0x238)](_0x4f7469,_0x411f21,!0x1),_0x266457=this[_0x3b75ba(0x203)][_0x3b75ba(0x238)](_0x28d63e,_0x35494a,!0x1);if(_0x474f1b(_0x3396f1))throw _0x3396f1[_0x3b75ba(0x2ba)];if(_0x474f1b(_0x266457))throw _0x266457[_0x3b75ba(0x2ba)];_0x3de3e6[_0x3b75ba(0x354)]({..._0x559d4d[_0x3178ad],'undoState':_0x3396f1[_0x3b75ba(0x30d)]['params'],'redoState':_0x266457[_0x3b75ba(0x30d)][_0x3b75ba(0x1e0)]}),_0x4f7469=_0x3396f1['m1Prime'],_0x28d63e=_0x266457[_0x3b75ba(0x254)];}this['_docStateChangeManagerService'][_0x3b75ba(0x264)](_0x340aa7,{'history':_0x2128cd,'collaboration':_0x3de3e6});}};Hn=J([q(0x0,_0x27756b(_0x25c197)),q(0x1,_0x366b2a),q(0x2,_0x27756b(_0x41ba99))],Hn);let Un=class{constructor(_0x23e9e9,_0x15d9fe){const _0x331351=_0x87a36c;this[_0x331351(0x333)]=_0x23e9e9,this[_0x331351(0x203)]=_0x15d9fe;}['prepareTransformSelections'](_0x438144){const _0x5dbf8a=_0x87a36c;var _0x2066bc;let _0x378041=this[_0x5dbf8a(0x333)][_0x5dbf8a(0x247)]()??[],_0xc29cfc=this[_0x5dbf8a(0x333)][_0x5dbf8a(0x360)]();if(_0x378041[_0x5dbf8a(0x2f5)]===0x0||_0xc29cfc==null)return null;let _0x27022a=_0x438144[_0x5dbf8a(0x2f3)],_0x1b5b55=[{'id':_0x5dbf8a(0x279),'params':{'unitId':_0x27022a,'actions':null,'textRanges':_0x378041}}],_0x44169b=this[_0x5dbf8a(0x203)][_0x5dbf8a(0x303)](_0x438144,_0x1b5b55);if(!_0x1fe03b(_0x44169b))throw _0x44169b[_0x5dbf8a(0x2ba)];let _0x23ce6b=(_0x2066bc=_0x44169b[_0x5dbf8a(0x30d)][0x0])==null?void 0x0:_0x2066bc['params'],_0x25b028=_0x23ce6b&&typeof _0x23ce6b==_0x5dbf8a(0x37e)&&_0x5dbf8a(0x2fd)in _0x23ce6b?_0x23ce6b[_0x5dbf8a(0x2fd)]:null;if(!Kn(_0x25b028))return null;let _0x45741e=Wn(_0x438144[_0x5dbf8a(0x341)]['some'](_0x136fde=>qn(_0x136fde[_0x5dbf8a(0x1e0)]))?_0x25b028['filter'](_0x5f18ca=>!('tableId'in _0x5f18ca)):_0x25b028,{..._0xc29cfc,'options':_0xc29cfc['options']?{..._0xc29cfc['options'],'wholeDocument':!0x1}:void 0x0}),_0x301815={'unitId':_0x27022a,'subUnitId':_0x27022a};this[_0x5dbf8a(0x333)][_0x5dbf8a(0x3ac)](_0x45741e,_0x301815);let _0x385e71=!0x0;return{'commit':()=>{_0x385e71=!0x1;},'rollback':()=>{_0x385e71&&(_0x385e71=!0x1,this['_docSelectionManagerService']['replaceSelectionInfoWithoutRefresh'](_0xc29cfc,_0x301815));}};}};Un=J([q(0x0,_0x27756b(_0x275ee4)),q(0x1,_0x366b2a)],Un);function Wn(_0x169de0,_0x1489c2){const _0x58427a=_0x87a36c;let _0x449444=[],_0x5ade7c=[];for(let _0x307c9a of _0x169de0)Gn(_0x307c9a)?_0x5ade7c['push'](_0x307c9a):_0x449444[_0x58427a(0x21d)](_0x307c9a);return{..._0x1489c2,'textRanges':_0x449444,'rectRanges':_0x5ade7c};}function Gn(_0x5050f5){return'tableId'in _0x5050f5;}function Kn(_0x25c74d){const _0x7793f0=_0x87a36c;return Array[_0x7793f0(0x3ce)](_0x25c74d)&&_0x25c74d['every'](_0xd9a388=>typeof _0xd9a388=='object'&&!!_0xd9a388&&_0x7793f0(0x204)in _0xd9a388&&_0x7793f0(0x1b6)in _0xd9a388);}function qn(_0x20b414){const _0x366cd6=_0x87a36c;return _0x20b414===_0x366cd6(0x271)?!0x0:Array[_0x366cd6(0x3ce)](_0x20b414)?_0x20b414[_0x366cd6(0x19f)](_0xb40662=>qn(_0xb40662)):!_0x20b414||typeof _0x20b414!=_0x366cd6(0x37e)?!0x1:Object['values'](_0x20b414)[_0x366cd6(0x19f)](_0x502633=>qn(_0x502633));}let Jn=class extends _0x2e1ec0{constructor(_0x290c67,_0x1d01f0,_0x27a95e,_0x1ff5f3,_0x2106a1,_0x179eed,_0x3bce5f){const _0x49b48e=_0x87a36c;super(),this[_0x49b48e(0x273)]=_0x290c67,this['_docTransformIMECacheService']=_0x1d01f0,this['_docTransformStateCacheService']=_0x27a95e,this['_docTransformSelectionsService']=_0x1ff5f3,this[_0x49b48e(0x39d)]=_0x2106a1,this[_0x49b48e(0x309)]=_0x179eed,this['_localeService']=_0x3bce5f,K(this,_0x49b48e(0x38d),new _0x400c7b(_0x38d232[_0x49b48e(0x28a)])),this['_initEntityListener']();}[_0x87a36c(0x1c0)](){const _0x54e1a6=_0x87a36c;this['disposeWithMe'](this[_0x54e1a6(0x273)][_0x54e1a6(0x1c9)][_0x54e1a6(0x310)](_0x1cee3b=>{const _0x5cfa51=_0x54e1a6;_0x1cee3b instanceof _0x3ca928&&_0x1cee3b[_0x5cfa51(0x177)]({'onTransformIME':_0x176787=>this['_docTransformIMECacheService'][_0x5cfa51(0x2ff)](_0x176787),'onTransformState':_0x5970f0=>this[_0x5cfa51(0x2fb)][_0x5cfa51(0x292)](_0x5970f0),'onPrepareTransformSelections':_0x5070fc=>this[_0x5cfa51(0x394)][_0x5cfa51(0x365)](_0x5070fc),'onSyncEditingCollabCursor':_0x46cfb5=>this[_0x5cfa51(0x39d)][_0x5cfa51(0x2da)](_0x46cfb5),'onTransformRemoteChangesetByIMECache':_0x484e4a=>this[_0x5cfa51(0x37d)][_0x5cfa51(0x3b3)](_0x484e4a),'onTransformRemoteChangesetByStateCache':_0x12e117=>this[_0x5cfa51(0x2fb)][_0x5cfa51(0x3b3)](_0x12e117)});}));}};Jn=J([q(0x0,_0x27756b(_0x371568)),q(0x1,_0x27756b(Vn)),q(0x2,_0x27756b(Hn)),q(0x3,_0x27756b(Un)),q(0x4,_0x27756b(_n)),q(0x5,_0x1ffcd0),q(0x6,_0x27756b(_0x19f7e2))],Jn);let Yn=class extends _0x2e1ec0{constructor(_0x2e1d92,_0x3f0acd,_0x30127d,_0x4a6a41){const _0x2fd115=_0x87a36c;super(),this['_injector']=_0x2e1d92,this['_httpService']=_0x3f0acd,this['_logService']=_0x30127d,this[_0x2fd115(0x288)]=_0x4a6a41,K(this,_0x2fd115(0x1d2),void 0x0),this['_init']();}[_0x87a36c(0x25d)](){const _0x507f3f=_0x87a36c;this[_0x507f3f(0x16d)](),this[_0x507f3f(0x2a5)](),this['_monkeyPatchLogService'](),this['_initUserListener']();}[_0x87a36c(0x36b)](){const _0x3bd717=_0x87a36c;this['disposeWithMe'](this[_0x3bd717(0x288)][_0x3bd717(0x1a3)][_0x3bd717(0x310)](_0x2a861a=>{const _0x51e641=_0x3bd717;this['_memberID']=_0x2a861a==null?void 0x0:_0x2a861a[_0x51e641(0x158)];}));}[_0x87a36c(0x16d)](){const _0x1ce16f=_0x87a36c;let _0x3b79bc=_0x239b3f=>{const _0x4fd91d=_0x3abf;var _0x44fd0d;this['_uploadLog']('error',_0x4fd91d(0x171)+_0x239b3f[_0x4fd91d(0x387)]+_0x4fd91d(0x28e)+_0x239b3f['filename']+':'+_0x239b3f[_0x4fd91d(0x1f0)]+':'+_0x239b3f['colno']+'\x0a'+(((_0x44fd0d=_0x239b3f[_0x4fd91d(0x2ba)])==null?void 0x0:_0x44fd0d[_0x4fd91d(0x299)])||''));};window['addEventListener'](_0x1ce16f(0x2ba),_0x3b79bc),this[_0x1ce16f(0x35d)](()=>{const _0x372afb=_0x1ce16f;window[_0x372afb(0x20b)](_0x372afb(0x2ba),_0x3b79bc);});}['_initUnhandledRejectionListener'](){const _0x274ffe=_0x87a36c;let _0x1df0c5=_0x2c9893=>{const _0xe11c12=_0x3abf;this[_0xe11c12(0x2f2)](_0xe11c12(0x2ba),'[Unhandled\x20Rejection]:\x20'+_0x2c9893['reason']);};window[_0x274ffe(0x3ad)](_0x274ffe(0x375),_0x1df0c5),this[_0x274ffe(0x35d)](()=>{const _0x1623ff=_0x274ffe;window[_0x1623ff(0x20b)](_0x1623ff(0x375),_0x1df0c5);});}[_0x87a36c(0x3c9)](){const _0x1d282a=_0x87a36c;let _0x30825f=this[_0x1d282a(0x1ac)][_0x1d282a(0x2ba)][_0x1d282a(0x3a3)](this[_0x1d282a(0x1ac)]);this[_0x1d282a(0x1ac)][_0x1d282a(0x2ba)]=(..._0x240997)=>{const _0x1ee6dc=_0x1d282a;let _0x14c44c=_0x240997[_0x1ee6dc(0x284)](_0x5d41f2=>_0x5d41f2 instanceof Error?_0x5d41f2[_0x1ee6dc(0x387)]+'\x0a'+_0x5d41f2['stack']:String(_0x5d41f2))[_0x1ee6dc(0x24b)]('\x20');this[_0x1ee6dc(0x2f2)]('error',_0x1ee6dc(0x2d5)+_0x14c44c),_0x30825f(..._0x240997);},this['disposeWithMe'](()=>{const _0x52f35c=_0x1d282a;this['_logService'][_0x52f35c(0x2ba)]=_0x30825f;});}[_0x87a36c(0x2f2)](_0x232d54,_0x1f6752){const _0x1cbe24=_0x87a36c;try{let _0x31a4d1={'userId':this[_0x1cbe24(0x1d2)],'logLabel':_0x232d54,'content':_0x1f6752};this[_0x1cbe24(0x1cb)][_0x1cbe24(0x37c)](_0x1cbe24(0x243),{'body':_0x31a4d1})[_0x1cbe24(0x2ed)](()=>{});}catch{}}};Yn=J([q(0x0,_0x27756b(_0x25c197)),q(0x1,_0x27756b(_0x88c090)),q(0x2,_0x31aa30),q(0x3,_0x27756b(_0x538451))],Yn);function Xn({state$:_0x15e839}){const _0x209b45=_0x87a36c;let _0x133edd=_0xb500c9(_0x15e839,null,!0x0);return _0x133edd?_0x1a1d5a(_0x209b45(0x308),{'data-u-comp':_0x209b45(0x39e),'role':_0x209b45(0x293),'className':_0x209b45(0x234),'children':[_0x51b6a5(_0x158935,{'className':_0x209b45(0x2a6)}),_0x51b6a5(_0x209b45(0x352),{'children':_0x133edd[_0x209b45(0x2bd)]}),_0x51b6a5(_0x382e18,{'size':_0x209b45(0x27f),'variant':_0x209b45(0x1df),'onClick':()=>window[_0x209b45(0x2a8)]['reload'](),'children':_0x133edd[_0x209b45(0x2ae)]})]}):null;}const Zn=_0x87a36c(0x2e8);let Qn=class extends _0x2e1ec0{constructor(_0x1ec924,_0x407ca9,_0x2db069,_0x4ccd8d,_0x1c9b58,_0x390ec3){const _0x2468b0=_0x87a36c;super(),this[_0x2468b0(0x19b)]=_0x1ec924,this['_messageService']=_0x407ca9,this[_0x2468b0(0x3bc)]=_0x2db069,this['_injector']=_0x4ccd8d,this[_0x2468b0(0x214)]=_0x390ec3,K(this,'_timeoutState$',new _0x400c7b(null)),K(this,_0x2468b0(0x17a),new Set()),K(this,_0x2468b0(0x3cc),new Map()),K(this,_0x2468b0(0x368),new Map()),K(this,'timeoutState$',this[_0x2468b0(0x3c1)]['asObservable']());let _0x170b75=()=>_0x52bd92(Xn,{'state$':this[_0x2468b0(0x36c)]});this['disposeWithMe'](_0x1c9b58[_0x2468b0(0x3bd)](_0x3be819[_0x2468b0(0x245)],()=>_0x5a61f2(_0x170b75,this[_0x2468b0(0x31d)]))),this[_0x2468b0(0x35d)](this[_0x2468b0(0x19b)][_0x2468b0(0x202)]['subscribe'](_0x443fce=>{const _0x2db1db=_0x2468b0;this[_0x2db1db(0x368)]=_0x443fce,_0x443fce['forEach'](_0x3cc54b=>this['_updateMessage'](_0x3cc54b));})),this[_0x2468b0(0x35d)](this[_0x2468b0(0x214)][_0x2468b0(0x30b)][_0x2468b0(0x310)](()=>{const _0x2e1d7a=_0x2468b0;this[_0x2e1d7a(0x368)][_0x2e1d7a(0x1e2)](_0x2b7107=>this[_0x2e1d7a(0x21c)](_0x2b7107));}));}[_0x87a36c(0x1b1)](){const _0x2a3eb5=_0x87a36c;this[_0x2a3eb5(0x17a)][_0x2a3eb5(0x1e2)](_0x29f0cb=>this[_0x2a3eb5(0x309)][_0x2a3eb5(0x355)](_0x29f0cb)),this['_messageIds'][_0x2a3eb5(0x2eb)](),this[_0x2a3eb5(0x3cc)][_0x2a3eb5(0x1e2)](({timeoutId:_0x3d935d})=>clearTimeout(_0x3d935d)),this[_0x2a3eb5(0x3cc)][_0x2a3eb5(0x2eb)](),this['_timeoutState$']['complete'](),super[_0x2a3eb5(0x1b1)]();}[_0x87a36c(0x21c)](_0x5c7107){const _0x435708=_0x87a36c;let _0x24153a=''+Zn+_0x5c7107['unitId'];if(_0x5c7107[_0x435708(0x1b4)]===_0x5e9641[_0x435708(0x3a5)]){this[_0x435708(0x21f)](_0x5c7107['unitId']),this[_0x435708(0x2bc)](_0x5c7107[_0x435708(0x25f)]),this[_0x435708(0x309)][_0x435708(0x355)](_0x24153a),this['_messageIds'][_0x435708(0x2d8)](_0x24153a);return;}if(!this[_0x435708(0x16b)](_0x5c7107[_0x435708(0x25f)])){this[_0x435708(0x21f)](_0x5c7107[_0x435708(0x25f)]),this['_clearTimeoutState'](_0x5c7107['unitId']),this[_0x435708(0x309)][_0x435708(0x355)](_0x24153a),this['_messageIds'][_0x435708(0x2d8)](_0x24153a);return;}if(_0x5c7107['stage']===_0x5e9641[_0x435708(0x3b7)]){this[_0x435708(0x21f)](_0x5c7107[_0x435708(0x25f)]),this[_0x435708(0x2bc)](_0x5c7107[_0x435708(0x25f)]),this[_0x435708(0x309)][_0x435708(0x345)]({'id':_0x24153a,'type':_0x106a5c[_0x435708(0x196)],'content':this[_0x435708(0x3bc)]['t']('collaboration-client-ui.session.connection-failed')}),this[_0x435708(0x17a)]['delete'](_0x24153a);return;}if(_0x5c7107[_0x435708(0x1b4)]!==_0x5e9641[_0x435708(0x18b)]||_0x5c7107[_0x435708(0x18f)]<=0xa){this[_0x435708(0x21f)](_0x5c7107[_0x435708(0x25f)]),this[_0x435708(0x309)][_0x435708(0x355)](_0x24153a),this[_0x435708(0x17a)]['delete'](_0x24153a);return;}this[_0x435708(0x26c)](_0x5c7107)||(this[_0x435708(0x309)][_0x435708(0x345)]({'id':_0x24153a,'type':_0x106a5c[_0x435708(0x189)],'duration':0x1/0x0,'content':this[_0x435708(0x3bc)]['t'](_0x435708(0x2ce))+'\x20'+_0x5c7107[_0x435708(0x1fd)]+'/'+_0x5c7107[_0x435708(0x18f)]}),this['_messageIds'][_0x435708(0x38c)](_0x24153a));}[_0x87a36c(0x26c)](_0x17996d){const _0x177525=_0x87a36c;let _0x19d70b=this[_0x177525(0x3cc)][_0x177525(0x20c)](_0x17996d[_0x177525(0x25f)]);if((_0x19d70b==null?void 0x0:_0x19d70b['loadedBlocks'])===_0x17996d[_0x177525(0x1fd)])return _0x19d70b[_0x177525(0x1a2)];this[_0x177525(0x21f)](_0x17996d[_0x177525(0x25f)]);let _0x24fba6=setTimeout(()=>{const _0x31d0c=_0x177525;let _0x147870=this[_0x31d0c(0x3cc)][_0x31d0c(0x20c)](_0x17996d['unitId']);if(!_0x147870||_0x147870[_0x31d0c(0x1a1)]!==_0x24fba6)return;_0x147870[_0x31d0c(0x1a2)]=!0x0;let _0x3516a7=''+Zn+_0x17996d['unitId'];this[_0x31d0c(0x309)]['remove'](_0x3516a7),this[_0x31d0c(0x17a)][_0x31d0c(0x2d8)](_0x3516a7),this[_0x31d0c(0x3c1)][_0x31d0c(0x1b3)]({'unitId':_0x17996d[_0x31d0c(0x25f)],'content':this[_0x31d0c(0x3bc)]['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x17996d['loadedBlocks']),String(_0x17996d[_0x31d0c(0x18f)])),'refreshLabel':this[_0x31d0c(0x3bc)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this[_0x177525(0x3cc)]['set'](_0x17996d['unitId'],{'loadedBlocks':_0x17996d['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x24fba6}),!0x1;}['_clearBlockProgressWatch'](_0x12672a){const _0xff2dd2=_0x87a36c;let _0x309ae5=this['_blockProgressWatches']['get'](_0x12672a);_0x309ae5&&(clearTimeout(_0x309ae5[_0xff2dd2(0x1a1)]),this[_0xff2dd2(0x3cc)]['delete'](_0x12672a),this['_clearTimeoutState'](_0x12672a));}[_0x87a36c(0x2bc)](_0x3d1b52){const _0x19854f=_0x87a36c;var _0x3a18d2;((_0x3a18d2=this[_0x19854f(0x3c1)][_0x19854f(0x3a2)])==null?void 0x0:_0x3a18d2[_0x19854f(0x25f)])===_0x3d1b52&&this['_timeoutState$'][_0x19854f(0x1b3)](null);}[_0x87a36c(0x16b)](_0x4d76e8){const _0x245f99=_0x87a36c;let _0x1a8fc1=this[_0x245f99(0x214)]['getParam'](_0x245f99(0x1fc));return!_0x1a8fc1||_0x1a8fc1===_0x4d76e8;}};Qn=J([q(0x0,_0x27756b(_0x11bb00)),q(0x1,_0x1ffcd0),q(0x2,_0x27756b(_0x19f7e2)),q(0x3,_0x27756b(_0x25c197)),q(0x4,_0xf04e95),q(0x5,Q)],Qn);let $n=class extends _0x2e1ec0{constructor(_0x2b6d63,_0x4e43be,_0xf85501){const _0x56d0d5=_0x87a36c;var _0x5f3f7b;super(),this['_configService']=_0x2b6d63,this[_0x56d0d5(0x2b6)]=_0x4e43be,this[_0x56d0d5(0x39f)]=_0xf85501,K(this,_0x56d0d5(0x1da),new Map()),K(this,_0x56d0d5(0x2f4),new Map()),K(this,'_activeSaveTaskMap',new Map()),K(this,_0x56d0d5(0x2fa),!0x1),this[_0x56d0d5(0x2fa)]=!((_0x5f3f7b=this['_configService'][_0x56d0d5(0x2c6)](_0x1d37d6))!=null&&_0x5f3f7b[_0x56d0d5(0x1af)]);}[_0x87a36c(0x1ae)](){this['_disabled']=!0x0;}[_0x87a36c(0x219)](){const _0x2755bc=_0x87a36c;this[_0x2755bc(0x2fa)]=!0x1;}get['saveTaskMap'](){const _0x1f5f8d=_0x87a36c;return this[_0x1f5f8d(0x2f4)];}['dispose'](){const _0x145332=_0x87a36c;this[_0x145332(0x2ef)]()[_0x145332(0x30a)](()=>super['dispose']());}async[_0x87a36c(0x228)](_0x4386c1){const _0x670ee5=_0x87a36c;return this[_0x670ee5(0x2fa)]?null:this[_0x670ee5(0x2b6)]['getItem'](_0x35b96f(_0x4386c1));}async[_0x87a36c(0x294)](_0x30a021,_0x36e7ba){const _0x4e66b8=_0x87a36c;let _0x323ec1=this[_0x4e66b8(0x2b6)][_0x4e66b8(0x22b)](_0x35b96f(_0x30a021),_0x36e7ba);return this[_0x4e66b8(0x17d)](_0x30a021,_0x323ec1),!!await _0x323ec1;}async[_0x87a36c(0x186)](_0x3eb896,_0x892d){const _0x54cd69=_0x87a36c;let _0x15a2fb=this['_cachedData'][_0x54cd69(0x20c)](_0x3eb896)??await this['_localStorageService'][_0x54cd69(0x26f)](_0x35b96f(_0x3eb896));if(!_0x15a2fb)return;let _0x1cbd91=Date[_0x54cd69(0x2e1)](),_0x42ba73=new Date(_0x1cbd91)[_0x54cd69(0x24d)]();await this[_0x54cd69(0x2b6)][_0x54cd69(0x22b)](_0x35b96f(_0x3eb896)+_0x54cd69(0x2c5)+_0x1cbd91,{'reason':_0x892d,'createdAt':_0x42ba73,'data':_0x15a2fb});}async['clearOfflineData'](_0x1dc43f){const _0x3afdc4=_0x87a36c;let _0x2e0781=this['_saveTaskMap'][_0x3afdc4(0x20c)](_0x1dc43f);_0x2e0781!==void 0x0&&(window[_0x3afdc4(0x2e7)](_0x2e0781),this[_0x3afdc4(0x2f4)][_0x3afdc4(0x2d8)](_0x1dc43f));let _0x295b5a=this[_0x3afdc4(0x32b)]['get'](_0x1dc43f);_0x295b5a&&await Promise[_0x3afdc4(0x31e)](_0x295b5a),this[_0x3afdc4(0x1da)][_0x3afdc4(0x2d8)](_0x1dc43f),await this[_0x3afdc4(0x2b6)][_0x3afdc4(0x15b)](_0x35b96f(_0x1dc43f));}[_0x87a36c(0x23f)](_0x3e9701,_0x3b71b1,_0x1104cf,_0x2fc57a){const _0x462815=_0x87a36c;let _0x527909=this[_0x462815(0x39f)][_0x462815(0x1b0)](_0x3e9701);this['_cachedData']['set'](_0x3e9701,{'unitID':_0x3e9701,'type':_0x3b71b1,'awaitingChangeset':_0x1104cf,'mutations':_0x2fc57a,'rev':_0x527909}),this['_saveTaskMap'][_0x462815(0x364)](_0x3e9701)||this[_0x462815(0x1be)](_0x3e9701);}[_0x87a36c(0x1be)](_0x2a6397){const _0x436185=_0x87a36c;let _0x5236f0=this[_0x436185(0x231)]();_0x5236f0===0x0?this['_saveCache'](_0x2a6397):this[_0x436185(0x2f4)][_0x436185(0x19c)](_0x2a6397,window[_0x436185(0x1f4)](()=>this[_0x436185(0x328)](_0x2a6397),_0x5236f0));}[_0x87a36c(0x231)](){const _0x2692a8=_0x87a36c;return this[_0x2692a8(0x272)]['getConfig'](_0x12dffe)??_0x201675;}['_saveCache'](_0x47bd9c){const _0x13d8c2=_0x87a36c;let _0x3f44ad=this[_0x13d8c2(0x2f4)][_0x13d8c2(0x20c)](_0x47bd9c);_0x3f44ad!==void 0x0&&window[_0x13d8c2(0x2e7)](_0x3f44ad);let _0x6c7f4b=this[_0x13d8c2(0x2b6)]['setItem'](_0x35b96f(_0x47bd9c),this[_0x13d8c2(0x1da)]['get'](_0x47bd9c))[_0x13d8c2(0x30a)](()=>this[_0x13d8c2(0x2f4)]['delete'](_0x47bd9c));return this['_trackActiveSaveTask'](_0x47bd9c,_0x6c7f4b),_0x6c7f4b;}[_0x87a36c(0x17d)](_0x270d0d,_0x45dead){const _0x34977d=_0x87a36c;let _0x463458=this[_0x34977d(0x32b)]['get'](_0x270d0d);_0x463458||(_0x463458=new Set(),this[_0x34977d(0x32b)][_0x34977d(0x19c)](_0x270d0d,_0x463458)),_0x463458['add'](_0x45dead);let _0x2dca77=()=>{const _0x41fa2f=_0x34977d;_0x463458['delete'](_0x45dead),_0x463458[_0x41fa2f(0x270)]===0x0&&this['_activeSaveTaskMap']['delete'](_0x270d0d);};_0x45dead['then'](_0x2dca77,_0x2dca77);}async[_0x87a36c(0x2ef)](){const _0x5573e0=_0x87a36c;let _0x5b8d48=[];this[_0x5573e0(0x2f4)][_0x5573e0(0x1e2)]((_0x355994,_0xeeabb2)=>{const _0x3ce070=_0x5573e0;window[_0x3ce070(0x2e7)](_0x355994),_0x5b8d48[_0x3ce070(0x21d)](this[_0x3ce070(0x328)](_0xeeabb2)[_0x3ce070(0x30a)](()=>{const _0x1b4639=_0x3ce070;this[_0x1b4639(0x2f4)][_0x1b4639(0x2d8)](_0xeeabb2);}));}),await Promise[_0x5573e0(0x1a9)](_0x5b8d48);}};$n=J([q(0x0,_0x1b95f3),q(0x1,_0x2bdb10),q(0x2,_0x27756b(_0x4edc47))],$n);var er=class extends _0x172cd9{constructor(){const _0x508883=_0x87a36c;super(),K(this,_0x508883(0x30b),void 0x0),this[_0x508883(0x30b)]=_0x3bd2b7(window,_0x508883(0x371))[_0x508883(0x1a8)](_0xefeb1b(this[_0x508883(0x198)]),_0x2d9815({'bufferSize':0x1,'refCount':!0x0}),_0x27c19b(void 0x0));}[_0x87a36c(0x320)](_0x4d0cd7,_0x19e00f,_0x41304c=!0x1){const _0x5416bf=_0x87a36c;let _0xe1bee8=new URL(window['location'][_0x5416bf(0x200)]);_0xe1bee8[_0x5416bf(0x29a)][_0x5416bf(0x19c)](_0x4d0cd7,_0x19e00f),_0x41304c?window[_0x5416bf(0x302)][_0x5416bf(0x256)]('','',_0xe1bee8['toString']()):window[_0x5416bf(0x302)][_0x5416bf(0x216)]('','',_0xe1bee8[_0x5416bf(0x24e)]());}['removeParam'](_0x4d6f84,_0x58693f=!0x1){const _0x15a8ea=_0x87a36c;let _0x312358=new URL(window[_0x15a8ea(0x2a8)][_0x15a8ea(0x200)]);_0x312358[_0x15a8ea(0x29a)]['delete'](_0x4d6f84),_0x58693f?window['history'][_0x15a8ea(0x256)]('','',_0x312358[_0x15a8ea(0x24e)]()):window['history']['pushState']('','',_0x312358[_0x15a8ea(0x24e)]());}['getParam'](_0x1709d4){const _0x1cfd7b=_0x87a36c;return new URL(window[_0x1cfd7b(0x2a8)][_0x1cfd7b(0x200)])[_0x1cfd7b(0x29a)][_0x1cfd7b(0x20c)](_0x1709d4)??void 0x0;}};let $=class extends _0x8bb285{constructor(_0x5c044a=dn,_0x1df231,_0x7348d7,_0x53ed91,_0x5a19cf){const _0x566fea=_0x87a36c;super(),this[_0x566fea(0x39a)]=_0x5c044a,this['_renderManagerService']=_0x1df231,this['_injector']=_0x7348d7,this[_0x566fea(0x272)]=_0x53ed91,this['_commandService']=_0x5a19cf;let {..._0x29eb16}=_0x2a1758({},dn,this[_0x566fea(0x39a)]);this['_configService'][_0x566fea(0x1fa)](_0x566fea(0x370),_0x29eb16);}[_0x87a36c(0x253)](){const _0x2ebf84=_0x87a36c;this['_registerDependencies'](),this[_0x2ebf84(0x35d)](this['_commandService'][_0x2ebf84(0x2b1)](X)),this[_0x2ebf84(0x324)]();}[_0x87a36c(0x3b4)](){const _0x5cabf4=_0x87a36c;this[_0x5cabf4(0x1aa)]();}[_0x87a36c(0x33a)](){const _0x42078c=_0x87a36c;var _0x1a6919;let _0x2e9ed0=[[mn],[Q,{'useClass':er}],[_0x2a939f,{'useClass':_0x36ccf0}],[_0xd043a9,{'useClass':$n}],[Y],[zn],[Z],[Ln],[Bn],[Qn]];this[_0x42078c(0x39a)][_0x42078c(0x356)]!==!0x1&&_0x2e9ed0['push']([Un],[Vn],[Hn],[_n],[Jn],[fn]),this[_0x42078c(0x39a)]['enableFrontendLog']&&_0x2e9ed0[_0x42078c(0x21d)]([Yn]),_0x180690(this[_0x42078c(0x31d)],_0x224fc9(_0x2e9ed0,(_0x1a6919=this[_0x42078c(0x39a)])==null?void 0x0:_0x1a6919[_0x42078c(0x298)]));}['_registerRenderDependencies'](){const _0x10c9d8=_0x87a36c;this[_0x10c9d8(0x39a)]['enableDocumentCollaborationUI']!==!0x1&&this['disposeWithMe'](this['_renderManagerService'][_0x10c9d8(0x255)](_0x5efd3b[_0x10c9d8(0x398)],[Dn])),this[_0x10c9d8(0x35d)](this['_renderManagerService'][_0x10c9d8(0x255)](_0x5efd3b['UNIVER_SHEET'],[kn]));}[_0x87a36c(0x324)](){const _0x5728f6=_0x87a36c;_0x23c5a9(this[_0x5728f6(0x31d)],[[Z],[Ln],[Y],[zn],[Bn],[Qn]]),this[_0x5728f6(0x39a)][_0x5728f6(0x356)]!==!0x1&&_0x23c5a9(this['_injector'],[[Jn],[fn]]),this[_0x5728f6(0x39a)]['enableFrontendLog']&&_0x23c5a9(this['_injector'],[[Yn]]);}};K($,'pluginName',_0x87a36c(0x33c)),K($,'packageName',ln),K($,_0x87a36c(0x35f),un),$=J([_0x4cbe11(_0x3f124e,_0x42f7f9,_0xb81a5b,_0xadda08,_0x4447fd,_0x8d1833,_0x273b5d),q(0x1,_0xc67b4e),q(0x2,_0x27756b(_0x25c197)),q(0x3,_0x1b95f3),q(0x4,_0x204dc2)],$);let tr=class extends _0x25b19d{constructor(_0x3b9ec7,_0x1df9cb,_0x375e78,_0x14a768,_0x29a32e){super(_0x3b9ec7,_0x1df9cb,_0x375e78,_0x14a768,_0x29a32e);}async[_0x87a36c(0x36e)](_0x99830e){const _0x2f46d7=_0x87a36c;let _0x3200bd=await this[_0x2f46d7(0x24a)](),_0x41df34=this['_createSocketURL'](_0x99830e,_0x3200bd);return this[_0x2f46d7(0x15c)](_0x41df34);}[_0x87a36c(0x220)](_0x13a48b,_0x543b51){const _0x3797c6=_0x87a36c;let _0x3de5de=typeof window>'u'?new URL(_0x13a48b):new URL(_0x13a48b,window[_0x3797c6(0x2a8)][_0x3797c6(0x191)]);_0x3de5de['searchParams'][_0x3797c6(0x19c)](_0x3797c6(0x269),_0x543b51);let _0x49bdaa=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x3797c6(0x304)]);return _0x49bdaa[_0x3797c6(0x20c)]('runId')&&_0x3de5de[_0x3797c6(0x29a)][_0x3797c6(0x19c)](_0x3797c6(0x382),_0x49bdaa[_0x3797c6(0x20c)]('runId')),_0x3de5de[_0x3797c6(0x24e)]();}async['_getSessionTicket'](){const _0x2796da=_0x87a36c;var _0x4e0a25;let _0x371cff=this[_0x2796da(0x272)][_0x2796da(0x2c6)](_0x1d37d6),_0x5e711b=(_0x371cff==null?void 0x0:_0x371cff[_0x2796da(0x2dc)])??_0x12f021;return((_0x4e0a25=(await this[_0x2796da(0x1cb)]['get'](_0x5e711b,{'headers':{'Content-Type':_0x2796da(0x374)}}))[_0x2796da(0x300)])==null?void 0x0:_0x4e0a25[_0x2796da(0x381)])??'';}};tr=J([q(0x0,_0x27756b(_0x25c197)),q(0x1,_0x27756b(_0x88c090)),q(0x2,_0x1b95f3),q(0x3,_0x31aa30),q(0x4,_0x407610)],tr);let nr=class extends _0x2e1ec0{constructor(_0x4adba4,_0x542bc6,_0x4528cb){const _0x4384ff=_0x87a36c;super(),this[_0x4384ff(0x349)]=_0x4adba4,this[_0x4384ff(0x1cb)]=_0x542bc6,this['_configService']=_0x4528cb;}async[_0x87a36c(0x274)](_0x217f5c,_0x5bbd2d,_0x1a6df7,..._0x1fac5f){const _0x1e0aa4=_0x87a36c;let _0x5a92f2=this['_instanceService']['getFocusedUnit']();if(!_0x5a92f2)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x135d8b=(this[_0x1e0aa4(0x272)][_0x1e0aa4(0x2c6)](_0x1ab0d2)??_0x50ff59)+'/'+_0x217f5c+_0x1e0aa4(0x185)+_0x5bbd2d,_0x4e114d={'scriptId':_0x217f5c,'runId':new URL(window[_0x1e0aa4(0x2a8)][_0x1e0aa4(0x200)])[_0x1e0aa4(0x29a)]['get'](_0x1e0aa4(0x382))??'','function':_0x5bbd2d,'unitId':_0x5a92f2[_0x1e0aa4(0x181)](),'argsOfFunction':JSON['stringify'](_0x1fac5f),'invokeId':_0x1a6df7[_0x1e0aa4(0x319)]??'','executionId':_0x1a6df7[_0x1e0aa4(0x197)]??''};try{let _0x35fe15=await this[_0x1e0aa4(0x1cb)]['post'](_0x135d8b,{'body':_0x4e114d});return _0x35fe15['body']['error']&&_0x35fe15[_0x1e0aa4(0x300)][_0x1e0aa4(0x2ba)][_0x1e0aa4(0x3a9)]!==_0x4c32fa['OK']?'Failed':_0x35fe15[_0x1e0aa4(0x300)][_0x1e0aa4(0x27d)];}catch{return _0x1e0aa4(0x268);}}};nr=J([q(0x0,_0x5b5bb5),q(0x1,_0x27756b(_0x88c090)),q(0x2,_0x1b95f3)],nr);const rr=0x7530,ir=_0x87a36c(0x2aa);function _0x3528(){const _0x25e128=['assignAColorForMemberID','text','collaboration-client-ui.permission.content','ONLINE','values','getCurrentTypeOfUnit$','removeEventListener','get','_dataLoaderService','from','subUnitId','_onCursorUpdate','collaboration-client-ui.collabStatus.synced','USERS_LEAVE','activate','_urlService','_cursor','pushState','width','sheetId','enableLocalCache','arc','getCurrentUnitOfType','_updateMessage','push','loading','_clearBlockProgressWatch','_createSocketURL','_renderManagerService','_highlightSecond','addObject','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_heartbeatTimer','rgba(','collaboration-client-ui.session.connection-failed','loadOfflineData','_isDisposed','_disposeEntity','setItem','collab-rect-range-','columnGroupId','labelPosition','_handleJoinEvent','FromArray','_getSaveTimeout','PERMISSION_DENIED','pageType','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','_cursorShapes','_refreshCollabCursors','univer-text-blue-500','transformMutation','_assignedColors','SOCKET_FAILED_RETRY','848Pbwhjm','_syncPresenceStatusComponents','univer-transition-all\x20univer-duration-200','endColumn','updateOfflineData','getAncestorScale','update','_offsetY','/universer-api/frontend/logs','collaboration-client-ui.conflict.retry','GLOBAL','isFinite','getDocRanges','_initStatusListener','_showText','_getSessionTicket','join','i18nKey','toISOString','toString','event$','_hideTimer','blue.400','pageIndex','onStarting','m1Prime','registerRenderModule','replaceState','_colorIndex','_transformPreviousActiveRange','351527sflIGt','contains','row','_name','_init','data','unitId','debug','stringify','_startEntity','_setupSubUnitSync','setStateCache','_removeClearOtherTimer','_updateCollabCursors','black','Failed','sessionTicket','filter','FETCH_MISS','_watchBlockProgress','purple.300','max','getItem','size','tableSource','_configService','_collaborationController','runOnServer','_presenceStatusRegistrations','collabCursorState$','polite','getUnhiddenWorksheets','doc.mutation.rich-text-editing','9GxyPyT','_draw','_initStatusComponent','result','_adapterRegistry','small','HEADER','setRemotePresence','getCoordRelativeToViewport','_collabCursorState$','map','cursorInfo','removeRemotePresence','selectedIds','_collaborationSessionService','_initEvent','NOT_COLLAB','saveImage','_hover','_bindAdapter','\x20at\x20','_updateURLWithCurrentState','getTypeOfUnitDisposed$','collaboration-client-ui.conflict.processing','transformStateCache','alert','saveOfflineData','collaboration-client-ui.operation.update-remote-unit-presence','...','_selfUnitIDs','override','stack','searchParams','complete','status$','showText','strokeWidth','indicator','isActive','status','univer-text-gray-400','_docSkeleton','RECT','_initUnhandledRejectionListener','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_isBlinkVisible','location','_uiPartsService','ACTIVE_UNIT_EVENT_CHANNEL','TEXT','getUnit','state','refreshLabel','collab-text-anchor-','_syncAdapters','registerCommand','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','77490kDmxkn','top','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_localStorageService','loadUnit',',\x200.2)','_replaceConflictNotification','error','_eventUnsubscribe','_clearTimeoutState','content','OTHER_CLIENTS_EDITING','_removeCollabCursors','_backgroundColor','Warning','type','_getAnchorBounding','14rMvxog',':backup:','getConfig','univer-border-none\x20univer-bg-transparent','saveTaskMap','key','_syncEditingCollabCursorService','collaboration-client-ui.session.collaboration-timeout','with','collaboration-client-ui.session.will-retry','collaboration-client-ui.collabStatus.fetchMiss','currentSkeleton$','selection','_labelPosition','color','_cursorInfo$','CONFLICT_CACHE_CLEAR_FAILED','[LogService\x20Error]:\x20','selections','_adapterDisposables','delete','onPointerMove$','syncEditingCollabCursor','_disposeEntitiesForType','wsSessionTicketUrl','makeDirty','getCurrentSelections','getSheetBySheetId','univer-inline-flex\x20univer-items-center\x20univer-justify-center','now','RemoveRowCommandId','OPERATION','clearInterval','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','segmentPage','clearTimeout','snapshot-loading-','send','column','clear','513728DzSsGf','catch','getValue','exhaustSavingTask','setShapeProps','_context','_uploadLog','unitID','_saveTaskMap','length','_drawTextRange','font','_handleHover','slice','_disabled','_docTransformStateCacheService','default','textRanges','yellow.400','transformIMECache','body','_handleLeaveEvent','history','transformMutationsWithChangeset','search','_drawAnchor','focused$','@univerjs-pro/collaboration-client-ui','div','_messageService','then','urlChange$','getSheetId','m2Prime','_commandService','_labelHorizontalPosition','subscribe','_anchorDot','rgba','getRangePointData','OTHER_CLIENT_EDITING','_unitStatus','rgba(255,\x20255,\x20255,\x200.01)','clearRemotePresences','_updateLocalCursor','invokeId','getCellIndexByOffset','_presenceAdapterRegistry','statusUIPart','_injector','allSettled','_disposed','setParam','Enter','#FFF','fill','_initDependencies','disposeUnit','moveTo','_updateSubUnitFromURLParams','_saveCache','_conflictNotification','SUBMIT_CHANGESET_TIMEOUT','_activeSaveTaskMap','preventDefault','deepClone','_registerPresenceStatusComponent','subscribeEvent','_initialized','startColumn','CONFLICT_PROCESSING','_docSelectionManagerService','_collabSessionService','editingUnit','startsWith','setAlpha','NO_OTHER_CLIENTS_EDITING','measureText','_registerDependencies','icon','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collaboration-client-ui.snapshotLoading.refresh','name','height','unitType','mutations','getMember','green.600','getStateCache','show','requireSession','_localCacheService','_online','_instanceService','true','transformByState','createInstance','button','reload','_scheduleClearOtherTimer','static','_collaborationUIEventService','span','evenodd','unshift','remove','enableDocumentCollaborationUI','startRow','getActiveRange','sessionStatus$','AWAITING_WITH_PENDING','univer-text-green-500','_anchor','disposeWithMe','getFocusedUnit','version','getSelectionInfo','0.2)','getActiveSheet','10982140HUxPft','has','prepareTransformSelections','min','collaboration-client-ui.collaboration.offline-data-not-saved','_latestStates','_univerInstanceService','roomMembers','_initUserListener','timeoutState$','collaboration-client-ui.conflict.title','createSocket','endRow','collaboration-client-ui.config','popstate','storage','collaboration-client-ui.conflict.clearFailed','application/json','unhandledrejection','getCollabCursors$','presenceKind','univer-m-0\x20univer-p-0','rgb','getColorFromTheme','registerRefRange','post','_docTransformIMECacheService','object','35182069KhFIcE','_handleCursorUpdate','ticket','runId','_notificationService','_onCursorDelete','toPrimitive','cursorInfo$','message','bottom','_toggleOffline','_startSheetCollabCursor','_refRangeService','add','_status$','includes','_adapter','getParam','_shapes','_document','number','_docTransformSelectionsService','collaboration-client-ui.collabStatus.offline','decorate','_getScale','UNIVER_DOC','tooltipKey','_config','drawWith','eventID','_docSyncEditingCollabCursorService','snapshot-loading-timeout','_revisionService','_themeService','\x20-\x20','value','bind','canRenderAnchor','COMPLETE','_startDocCollabCursor','_pointerMoveDisposable','engine','code','getCollabEntity$','_showConflictProcessingNotification','replaceSelectionInfoWithoutRefresh','addEventListener','getAllUnitsForType','_getSheetObject','_textBubble','imageSourceType','setInterval','transformRemoteChangeset','onRendered','_session','UPDATE_CURSOR','ERROR','onPointerEnter$','flatMap','hide','highlightSecond','_localeService','registerComponent','getRenderUnitById','dark:focus:!univer-ring-offset-gray-800','localPresence$','_timeoutState$','function','uni.network.url-service','240Ljpzyn','_showConflictCacheClearFailedNotification','roomMembers$','prototype','shareInterval','_monkeyPatchLogService','_cursors','_handleEvent','_blockProgressWatches','call','isArray','univer-flex\x20univer-items-center\x20univer-justify-center','bold\x2013px\x20Arial,\x20sans-serif','_getMergeRange','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','setOffsetY','memberID','addClipboardHook','redoState','removeItem','_doCreateSocket','_roomMembers$','fillText','60lNxDuz','_scheduleHeartbeat','SOCKET_FAILED','CONFLICT','UNIVER_SHEET','_getLighterColor','spin','executeCommand','_pendingEntities','hovered','getCurrentSkeleton','findNodePositionByCharIndex','_isVisibleUnit','resize','_initWindowErrorListener','onMouseMove','collaboration-client-ui.collabStatus.syncing','_docStateChangeManagerService','[Window\x20Error]:\x20','getMemberID','pointer','_initCommandExecutedListener','onPointerLeave$','_id','addHandlerCallback','collab-text-range-','_initResize','_messageIds','_removeRemotePresence','save','_trackActiveSaveTask','colorClass','_handleHeartbeatEvent','getScrollXYInfoByViewport','getUnitId','activeSheet$','getSkeleton','adapters$','/run/','backupOfflineData','univer-h-8\x20univer-w-8\x20univer-rounded-lg','ranges','Loading','restore','LOADING_BLOCKS','_sendLocalPresence','_docSkeletonManagerService','_ensureSubject','totalBlocks','collaboration-client-ui.collaboration.closeRoom','origin','toRgbString','focusedId','columnIndex','_scene','Error','executionId','dispose$','_beforeCloseService','5971qIhpzi','_snapshotLoadingService','set','symbol','[CollaborationDataLoaderController]','some','_lastPointer','timeoutId','timedOut','socket$','_memberService','offsetY','4WBxsFT','JOIN_ROOM_FAILED','pipe','all','_registerRenderDependencies','kind','_logService','_unitOnClients','disableLocalCache','enableOfflineEditing','getCurrentRevOfUnit','dispose','defineProperty','next','stage','Unknown\x20user','endOffset','lineTo','_blinkIntervalTimer','parseInt','getMergeData','_hovered','_render','_drawRectRange','_scheduleSaving','_clearRemotePresences','_initEntityListener','_onRefRangeChange','SYNCED','_sheetSkeletonManagerService','onCommandExecuted','init','_stopBlinking','fillStyle','split','entityInit$','highlight','_httpService','_retryingConflictCacheUnitIDs','addObjects','_toggleOnline','unsubscribe','_send','_docClipboardService','_memberID','_range','_colorAssignService','backgroundColor','find','onTransformChange$','InsertColCommandId','asObservable','_cachedData','triggerDblclick','_transformUndoRedoStack','_collabCursorController','_blinkTimer','primary','params','getTypeOfUnitAdded$','forEach','_setupBeforeClosingHandler','_entities','undoState','2QOtyiq','beginPath','_clearOtherTimers','HEADER_MENU','newValue','_startBlinking','clickable','univer-appearance-none','_color','OFFLINE','lineno','_imageIoService','DeleteRangeMoveUpCommandId','currentTheme$','setTimeout','3193548JyAPVe','getUndoRedoMutationParamsCache','subunit','_highlight','finally','setConfig','reconnect','unit','loadedBlocks','string','FOOTER','href','_entityInit$','state$','_transformService','startOffset'];_0x3528=function(){return _0x25e128;};return _0x3528();}var ar=class extends _0x2e1ec0{constructor(){const _0x3e79a7=_0x87a36c;super(),K(this,_0x3e79a7(0x176),_0x5692c3()),K(this,_0x3e79a7(0x297),new Set()),K(this,_0x3e79a7(0x1ad),new Map()),K(this,_0x3e79a7(0x225),null),K(this,'_clearOtherTimers',new Map()),K(this,_0x3e79a7(0x315),new Map()),this[_0x3e79a7(0x25d)]();}[_0x87a36c(0x1b1)](){const _0x3ec5cc=_0x87a36c;super[_0x3ec5cc(0x1b1)](),this['_clearOtherTimers'][_0x3ec5cc(0x1e2)]((_0x258b80,_0x1ab057)=>this['_removeClearOtherTimer'](_0x1ab057)),this[_0x3ec5cc(0x225)]&&window[_0x3ec5cc(0x2e4)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x5894e3){const _0x1ea48d=_0x87a36c;return this[_0x1ea48d(0x18e)](_0x5894e3)[_0x1ea48d(0x1a8)](_0x4f92af());}[_0x87a36c(0x335)](_0x1a3d26){const _0x4bf489=_0x87a36c;this[_0x4bf489(0x297)][_0x4bf489(0x270)]===0x0&&this[_0x4bf489(0x160)](),this[_0x4bf489(0x297)][_0x4bf489(0x38c)](_0x1a3d26),this[_0x4bf489(0x1d0)]({'type':0x0,'memberID':this[_0x4bf489(0x176)],'unitIDs':[_0x1a3d26],'isForwarded':!0x1});}[_0x87a36c(0x325)](_0x5bf64a){const _0x12e874=_0x87a36c;this[_0x12e874(0x297)][_0x12e874(0x2d8)](_0x5bf64a),this[_0x12e874(0x297)][_0x12e874(0x270)]===0x0&&this[_0x12e874(0x225)]&&window[_0x12e874(0x2e4)](this[_0x12e874(0x225)]);}[_0x87a36c(0x25d)](){const _0x8e56ad=_0x87a36c;this['disposeWithMe'](_0x32283a(_0x3bd2b7(window,_0x8e56ad(0x372))[_0x8e56ad(0x310)](_0x8301be=>{const _0x3eea73=_0x8e56ad;if(_0x8301be[_0x3eea73(0x2c9)]!==ir||!_0x8301be['newValue'])return;let _0xb3c6fe=JSON['parse'](_0x8301be[_0x3eea73(0x1ea)]);this[_0x3eea73(0x3cb)](_0xb3c6fe);}))),window[_0x8e56ad(0x3ad)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x8e56ad(0x20e)](this[_0x8e56ad(0x297)])}));}[_0x87a36c(0x3cb)](_0x1155f6){const _0x4a2273=_0x87a36c;switch(_0x1155f6[_0x4a2273(0x2c2)]){case 0x0:this[_0x4a2273(0x22f)](_0x1155f6);break;case 0x1:this[_0x4a2273(0x301)](_0x1155f6);break;case 0x2:this[_0x4a2273(0x17f)](_0x1155f6);}}[_0x87a36c(0x22f)](_0x56130d){let {unitIDs:_0x326cf9,memberID:_0x2ed856,isForwarded:_0x17e995}=_0x56130d;_0x326cf9['forEach'](_0x5cd4f9=>{const _0x50b72b=_0x3abf;if(!_0x17e995&&this['_unitOnClients'][_0x50b72b(0x364)](_0x5cd4f9)&&this[_0x50b72b(0x18e)](_0x5cd4f9)[_0x50b72b(0x1b3)](_0x4fd19e[_0x50b72b(0x2be)]),!this[_0x50b72b(0x1ad)]['has'](_0x5cd4f9)||!this[_0x50b72b(0x1ad)]['get'](_0x5cd4f9)[_0x50b72b(0x364)](_0x2ed856)){let _0x9d7747=this[_0x50b72b(0x1ad)][_0x50b72b(0x20c)](_0x5cd4f9)||new Set();_0x9d7747[_0x50b72b(0x38c)](_0x2ed856),this[_0x50b72b(0x1ad)][_0x50b72b(0x19c)](_0x5cd4f9,_0x9d7747),this[_0x50b72b(0x34f)](_0x2ed856);}}),_0x17e995||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x87a36c(0x34f)](_0x23b166){const _0x29400e=_0x87a36c;this[_0x29400e(0x265)](_0x23b166);let _0x41e1c1=window[_0x29400e(0x1f4)](()=>{const _0x8468e2=_0x29400e;this['_unitOnClients'][_0x8468e2(0x1e2)](_0x19e321=>{const _0x48c2f7=_0x8468e2;_0x19e321[_0x48c2f7(0x2d8)](_0x23b166);});},rr*0x2);this[_0x29400e(0x1e8)]['set'](_0x23b166,_0x41e1c1);}[_0x87a36c(0x265)](_0x168a5c){const _0xca928f=_0x87a36c;if(this[_0xca928f(0x1e8)][_0xca928f(0x364)](_0x168a5c)){let _0x4a7833=this[_0xca928f(0x1e8)]['get'](_0x168a5c);_0x4a7833&&window[_0xca928f(0x2e7)](_0x4a7833),this['_clearOtherTimers'][_0xca928f(0x19c)](_0x168a5c,null);}}[_0x87a36c(0x301)](_0x27f0c8){const _0x39830f=_0x87a36c;let {memberID:_0x3b794f,unitIDs:_0x6c059c}=_0x27f0c8;_0x6c059c[_0x39830f(0x1e2)](_0x274f84=>{const _0x1d4475=_0x39830f;var _0x3db582;let _0x588fee=this[_0x1d4475(0x1ad)][_0x1d4475(0x20c)](_0x274f84);_0x588fee&&(_0x588fee[_0x1d4475(0x2d8)](_0x3b794f),(_0x3db582=this[_0x1d4475(0x18e)](_0x274f84))==null||_0x3db582[_0x1d4475(0x1b3)](_0x588fee['size']===0x0?_0x4fd19e[_0x1d4475(0x338)]:_0x4fd19e['OTHER_CLIENTS_EDITING']));}),this[_0x39830f(0x265)](_0x3b794f);}['_handleHeartbeatEvent'](_0x37f617){const _0x341978=_0x87a36c;this[_0x341978(0x34f)](_0x37f617[_0x341978(0x158)]);}[_0x87a36c(0x1d0)](_0x5341cf){const _0x1b5f08=_0x87a36c;localStorage[_0x1b5f08(0x22b)](ir,JSON['stringify'](_0x5341cf));}[_0x87a36c(0x160)](){const _0x265cc6=_0x87a36c;this[_0x265cc6(0x225)]=window[_0x265cc6(0x3b2)](()=>{const _0x42ad5a=_0x265cc6;this[_0x42ad5a(0x1d0)]({'type':0x2,'memberID':this[_0x42ad5a(0x176)]});},rr);}[_0x87a36c(0x18e)](_0x3ee0d2){const _0x35d363=_0x87a36c;return this[_0x35d363(0x315)][_0x35d363(0x364)](_0x3ee0d2)||this[_0x35d363(0x315)][_0x35d363(0x19c)](_0x3ee0d2,new _0x400c7b(_0x4fd19e[_0x35d363(0x338)])),this['_unitStatus']['get'](_0x3ee0d2);}};export{tr as BrowserCollaborationSocketService,Y as DesktopCollaborationStatusDisplayController,Q as IURLService,nr as RemoteUniscriptService,On as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,ar as WebBrowserSingleActiveUnitService};
|