@univerjs-pro/collaboration-client-ui 1.0.0-alpha.4 → 1.0.0-alpha.5
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.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/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 +20 -20
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x12e69f=_0x2051;(function(_0x1c31a3,_0xc645be){const _0x7b30ae=_0x2051,_0x2b6df7=_0x1c31a3();while(!![]){try{const _0x55d468=-parseInt(_0x7b30ae(0x3b7))/0x1*(parseInt(_0x7b30ae(0x33c))/0x2)+parseInt(_0x7b30ae(0x3c2))/0x3*(-parseInt(_0x7b30ae(0x3ea))/0x4)+-parseInt(_0x7b30ae(0x365))/0x5+parseInt(_0x7b30ae(0x32f))/0x6+parseInt(_0x7b30ae(0x276))/0x7*(parseInt(_0x7b30ae(0x383))/0x8)+parseInt(_0x7b30ae(0x26e))/0x9+-parseInt(_0x7b30ae(0x377))/0xa*(parseInt(_0x7b30ae(0x280))/0xb);if(_0x55d468===_0xc645be)break;else _0x2b6df7['push'](_0x2b6df7['shift']());}catch(_0x251c21){_0x2b6df7['push'](_0x2b6df7['shift']());}}}(_0x4f58,0xcb3ba));import{BOARD_TOP_RIGHT_MENU_LEADING_PART as _0x4011a1,IBoardElementStateService as _0x4a3364,getBoardElementRenderObjectKey as _0x11cb05}from'@univerjs-pro/boards-ui';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x23c907,CollaborationController as _0x1d7a8d,CollaborationSessionService as _0x1d6a95,CollaborationSocketService as _0x1f148e,CollaborationStatus as _0x1c9bbb,CollaborationUIEventId as _0x4cf333,CollaborationUIEventService as _0x5278e7,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5ba05e,DEFAULT_WS_SESSION_TICKET_URL as _0x41f306,DataLoaderService as _0x178936,DocCollaborationEntity as _0x50ee06,ILocalCacheService as _0x45f1ab,LOCAL_CACHE_INTERVAL as _0x4daf82,LOCAL_CACHE_INTERVAL_KEY as _0x4615ba,MemberService as _0x2d22bc,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4a15cd,SessionStatus as _0x37ed25,UnitStatus as _0x394b28,UniverCollaborationClientPlugin as _0x2da37d,getLocalCacheKey as _0x2cfa0f}from'@univerjs-pro/collaboration-client';import{COLORS as _0x273955,CanceledError as _0x213df0,ColorKit as _0x40b9da,DOC_RANGE_TYPE as _0x4faa88,DependentOn as _0x4cb9ac,Disposable as _0xfa11d4,DisposableCollection as _0x2345c4,ICommandService as _0x41da16,IConfigService as _0x188328,IImageIoService as _0x39b136,ILocalStorageService as _0x3ccd1f,ILogService as _0x2a73d7,IUniverInstanceService as _0x1ff84b,Inject as _0x54edce,Injector as _0x485f8c,LocaleService as _0x1d0344,Optional as _0x11f330,Plugin as _0x4a4c3f,PluginService as _0x1d7db8,Rectangle as _0x340c32,RxDisposable as _0x3b482a,ThemeService as _0x247f8e,Tools as _0x19cd3e,UniverInstanceType as _0x4cc843,Workbook as _0x1b67c9,createIdentifier as _0x2017fb,debounce as _0x56de04,fromEventSubject as _0x51bac9,generateRandomId as _0x19564d,isFormulaId as _0x1028c8,isFormulaString as _0x2ca7e7,isInternalEditorID as _0x374dc1,merge as _0x6668,mergeOverrideWithDependencies as _0x303e42,registerDependencies as _0x385b63,toDisposable as _0x242400,touchDependencies as _0x18d115}from'@univerjs/core';import{BuiltInUIPart as _0x40f600,IBeforeCloseService as _0x136d6a,IMessageService as _0x52b70e,INotificationService as _0x594c15,IShortcutService as _0x1aec99,IUIPartsService as _0x50e845,connectInjector as _0x48f813,useDependency as _0x90eb44,useObservable as _0x2fbf7f}from'@univerjs/ui';import{BehaviorSubject as _0x2c5746,Subject as _0x231ec5,combineLatest as _0x5dac58,debounceTime as _0x4e72f8,distinctUntilChanged as _0x1e393b,filter as _0x20934b,fromEvent as _0x3103d7,mapTo as _0x36e8ac,merge as _0x3dfb9c,of as _0x204fbb,shareReplay as _0x377286,switchMap as _0x5553f3,takeUntil as _0x58f4bb}from'rxjs';import{distinctUntilChanged as _0x24baad,filter as _0x44f6d5,map as _0x52dc5c,switchMap as _0x68db4a,takeUntil as _0x328b4e,throttleTime as _0x130eb1}from'rxjs/operators';import{Button as _0x5460ba,MessageType as _0x47e927,Tooltip as _0x2712e2,clsx as _0x2ea6fa}from'@univerjs/design';import{LoadingMultiIcon as _0x52f27c,OffLineIcon as _0x188502,OnLineIcon as _0x3812bd,WarningIcon as _0x4022c3}from'@univerjs/icons';import{createElement as _0x806860,useCallback as _0x4aaf57,useMemo as _0x2d9e86}from'react';import{Fragment as _0x5d5880,jsx as _0x320080,jsxs as _0x1f600f}from'react/jsx-runtime';import{IRenderManagerService as _0x40ac66,Rect as _0x4f817e,RegularPolygon as _0x46dad0,SHEET_VIEWPORT_KEY as _0x3b2eff,Shape as _0x58652d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x6ac21c,Vector2 as _0x3441b4,getColor as _0x5dfff7}from'@univerjs/engine-render';import{HTTPService as _0x42f426,ISocketService as _0x2c3cce,WebSocketService as _0x2a1a15}from'@univerjs/network';import{DocIMEInputManagerService as _0x453bb4,IDocClipboardService as _0x312ec9,NodePositionConvertToCursor as _0x1af3ac,NodePositionConvertToRectRange as _0x500cff,SetDocZoomRatioOperation as _0x3828d4,TEXT_RANGE_LAYER_INDEX as _0x26b07b}from'@univerjs/docs-ui';import{CollaborationEvent as _0x46afd7,ISnapshotServerService as _0x5cab37,ITransformService as _0x3e9679,RevisionService as _0x55f15e,SnapshotLoadStage as _0x87101c,SnapshotLoadingService as _0x3698f2,isTransformMutationFailure as _0x2e286f,isTransformMutationsWithChangesetSuccess as _0x551289}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x371c99,DocSkeletonManagerService as _0x45419b,DocStateChangeManagerService as _0x3d031b,RichTextEditingMutation as _0xb0fffe,SetTextSelectionsOperation as _0x8f0ef5}from'@univerjs/docs';import{FormulaExecuteStageType as _0x1335c1,FormulaExecutedStateType as _0x7eb4c2,SetFormulaCalculationNotificationMutation as _0x5cd13c,SetFormulaCalculationStartMutation as _0x36b508,deserializeRangeWithSheet as _0x15299e,serializeRangeWithSheet as _0x2b4dbe}from'@univerjs/engine-formula';import{EffectRefRangId as _0x151937,RefRangeService as _0x12441a,SetSelectionsOperation as _0x3da58d,SetWorksheetActivateCommand as _0x30a663,SheetsSelectionsService as _0x30f08d,handleDeleteRangeMoveLeft as _0x3b3afb,handleDeleteRangeMoveUp as _0x430272,handleIRemoveCol as _0x2b2c47,handleIRemoveRow as _0x1d4a15,handleInsertCol as _0x1fcd50,handleInsertRangeMoveDown as _0x346f88,handleInsertRangeMoveRight as _0x549884,handleInsertRow as _0x4157cc,handleMoveRange as _0x4e548d,runRefRangeMutations as _0x56ec96}from'@univerjs/sheets';import{ISlideDrawingStateService as _0x44faab,buildDrawingOKey as _0x5bff4b}from'@univerjs-pro/slides-ui';import{ISheetLoadingRenderService as _0x28517d,SheetSkeletonManagerService as _0x348097,getCoordByCell as _0x2079da,getSheetObject as _0x4be76a}from'@univerjs/sheets-ui';import{IRemoteInstanceService as _0x2dcad5}from'@univerjs/rpc';import{ErrorCode as _0x38087c}from'@univerjs/protocol';function cn(_0x2704ab){const _0x5626ff=_0x2051;switch(_0x2704ab){case _0x1c9bbb[_0x5626ff(0x34c)]:return{'icon':_0x320080(_0x188502,{}),'colorClass':_0x5626ff(0x2cf),'i18nKey':_0x5626ff(0x2e3),'tooltipKey':_0x5626ff(0x277),'clickable':!0x0,'indicator':'static'};case _0x1c9bbb[_0x5626ff(0x41e)]:return{'icon':_0x320080(_0x188502,{}),'colorClass':'univer-text-orange-500','i18nKey':_0x5626ff(0x3e0),'clickable':!0x1,'indicator':_0x5626ff(0x301)};case _0x1c9bbb['FETCH_MISS']:return{'icon':_0x320080(_0x52f27c,{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x5626ff(0x270)};case _0x1c9bbb[_0x5626ff(0x3cb)]:return{'icon':_0x320080(_0x3812bd,{}),'colorClass':_0x5626ff(0x1ef),'i18nKey':_0x5626ff(0x458),'clickable':!0x1,'indicator':_0x5626ff(0x301)};case _0x1c9bbb['AWAITING']:case _0x1c9bbb['AWAITING_WITH_PENDING']:return{'icon':_0x320080(_0x52f27c,{}),'colorClass':_0x5626ff(0x245),'i18nKey':_0x5626ff(0x408),'clickable':!0x1,'indicator':'spin'};case _0x1c9bbb[_0x5626ff(0x2fb)]:return{'icon':_0x320080(_0x52f27c,{}),'colorClass':_0x5626ff(0x245),'i18nKey':_0x5626ff(0x408),'clickable':!0x1,'indicator':'spin'};case _0x1c9bbb['SYNCED']:return{'icon':_0x320080(_0x3812bd,{}),'colorClass':'univer-text-green-500','i18nKey':'collaboration-client-ui.collabStatus.synced','clickable':!0x1,'indicator':_0x5626ff(0x301)};}}function ln(_0x267b6d){const _0x9677e5=_0x2051;let {status$:_0x5f38be}=_0x267b6d,_0x43df9d=_0x2fbf7f(_0x5f38be,_0x1c9bbb['NOT_COLLAB']),_0x53d6ee=_0x90eb44(_0x1d0344),_0x210cff=_0x90eb44(_0x1d6a95),_0x2d1882=_0x2d9e86(()=>cn(_0x43df9d),[_0x43df9d]),_0x1da23b=_0x43df9d!==_0x1c9bbb[_0x9677e5(0x34c)],_0x2cd921=_0x53d6ee['t'](_0x2d1882['i18nKey']),_0x2f3232=_0x2d1882[_0x9677e5(0x324)]?_0x53d6ee['t'](_0x2d1882[_0x9677e5(0x324)]):_0x2cd921,_0x426eca=_0x4aaf57(()=>{_0x1da23b||_0x210cff['reconnect']();},[_0x1da23b,_0x210cff]),_0x2e5682=_0x4aaf57(_0x5f335a=>{const _0x313f56=_0x9677e5;!_0x1da23b&&(_0x5f335a[_0x313f56(0x318)]===_0x313f56(0x3e4)||_0x5f335a[_0x313f56(0x318)]==='\x20')&&(_0x5f335a['preventDefault'](),_0x210cff[_0x313f56(0x267)]());},[_0x1da23b,_0x210cff]),_0x4fd281=_0x320080(_0x9677e5(0x357),{'className':_0x2ea6fa(_0x9677e5(0x37d),_0x9677e5(0x330),_0x2d1882[_0x9677e5(0x1fc)],{'univer-animate-spin':_0x2d1882[_0x9677e5(0x42f)]===_0x9677e5(0x270),'univer-animate-pulse':_0x2d1882[_0x9677e5(0x42f)]===_0x9677e5(0x2fc)}),'aria-hidden':_0x9677e5(0x31e),'children':_0x2d1882['icon']}),_0x43b616=_0x320080(_0x9677e5(0x357),{'className':_0x2ea6fa(_0x9677e5(0x37d),_0x9677e5(0x3e9),'univer-transition-all\x20univer-duration-200','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x9677e5(0x264),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x2d1882[_0x9677e5(0x2c9)],'univer-cursor-default':!_0x2d1882[_0x9677e5(0x2c9)]}),'children':_0x4fd281});return _0x2d1882['clickable']?_0x320080(_0x2712e2,{'title':_0x2f3232,'placement':'bottom','children':_0x320080(_0x9677e5(0x380),{'type':_0x9677e5(0x380),'onClick':_0x426eca,'onKeyDown':_0x2e5682,'className':_0x2ea6fa(_0x9677e5(0x266),_0x9677e5(0x23a),_0x9677e5(0x229),_0x9677e5(0x446)),'aria-label':_0x2cd921+'\x20-\x20'+_0x2f3232,'role':_0x9677e5(0x461),'aria-live':_0x9677e5(0x33f),'aria-atomic':_0x9677e5(0x31e),'children':_0x43b616})}):_0x320080(_0x2712e2,{'title':_0x2f3232,'placement':_0x9677e5(0x2be),'children':_0x320080(_0x9677e5(0x2ae),{'className':_0x2ea6fa('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x9677e5(0x23a),_0x9677e5(0x229)),'aria-label':_0x2cd921,'role':'status','aria-live':_0x9677e5(0x33f),'aria-atomic':'true','children':_0x43b616})});}function K(_0x5b9977){'@babel/helpers - typeof';const _0x574d6b=_0x2051;return K=typeof Symbol==_0x574d6b(0x257)&&typeof Symbol[_0x574d6b(0x2b9)]==_0x574d6b(0x218)?function(_0x1ecbdb){return typeof _0x1ecbdb;}:function(_0x13e48e){const _0x12d471=_0x574d6b;return _0x13e48e&&typeof Symbol=='function'&&_0x13e48e[_0x12d471(0x2f3)]===Symbol&&_0x13e48e!==Symbol[_0x12d471(0x3df)]?_0x12d471(0x218):typeof _0x13e48e;},K(_0x5b9977);}function un(_0x26d52c,_0x3c07d1){const _0x1b729a=_0x2051;if(K(_0x26d52c)!=_0x1b729a(0x33b)||!_0x26d52c)return _0x26d52c;var _0x2510d6=_0x26d52c[Symbol[_0x1b729a(0x2b2)]];if(_0x2510d6!==void 0x0){var _0x4d9c3f=_0x2510d6['call'](_0x26d52c,_0x3c07d1||'default');if(K(_0x4d9c3f)!=_0x1b729a(0x33b))return _0x4d9c3f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3c07d1==='string'?String:Number)(_0x26d52c);}function dn(_0x5eb2d4){const _0x4801e5=_0x2051;var _0x1a3cfb=un(_0x5eb2d4,_0x4801e5(0x269));return K(_0x1a3cfb)=='symbol'?_0x1a3cfb:_0x1a3cfb+'';}function q(_0x2095f0,_0x4d41d4,_0xa967f4){const _0x35b92e=_0x2051;return(_0x4d41d4=dn(_0x4d41d4))in _0x2095f0?Object[_0x35b92e(0x282)](_0x2095f0,_0x4d41d4,{'value':_0xa967f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2095f0[_0x4d41d4]=_0xa967f4,_0x2095f0;}function J(_0x57321b,_0x33e9b3){return function(_0x5ea1ba,_0x4bcf9e){_0x33e9b3(_0x5ea1ba,_0x4bcf9e,_0x57321b);};}function Y(_0xaf245c,_0x44326a,_0x1646dd,_0x3a9559){const _0x1db6b9=_0x2051;var _0x185f50=arguments['length'],_0x626491=_0x185f50<0x3?_0x44326a:_0x3a9559===null?_0x3a9559=Object['getOwnPropertyDescriptor'](_0x44326a,_0x1646dd):_0x3a9559,_0x151fe8;if(typeof Reflect=='object'&&typeof Reflect[_0x1db6b9(0x35f)]=='function')_0x626491=Reflect[_0x1db6b9(0x35f)](_0xaf245c,_0x44326a,_0x1646dd,_0x3a9559);else{for(var _0x394bc7=_0xaf245c['length']-0x1;_0x394bc7>=0x0;_0x394bc7--)(_0x151fe8=_0xaf245c[_0x394bc7])&&(_0x626491=(_0x185f50<0x3?_0x151fe8(_0x626491):_0x185f50>0x3?_0x151fe8(_0x44326a,_0x1646dd,_0x626491):_0x151fe8(_0x44326a,_0x1646dd))||_0x626491);}return _0x185f50>0x3&&_0x626491&&Object[_0x1db6b9(0x282)](_0x44326a,_0x1646dd,_0x626491),_0x626491;}let X=class extends _0xfa11d4{constructor(_0x11ca67,_0x196cf4,_0x13c54b,_0x30a0cf){const _0x190b6a=_0x2051;super(),this[_0x190b6a(0x1f8)]=_0x11ca67,this[_0x190b6a(0x39c)]=_0x196cf4,this[_0x190b6a(0x42c)]=_0x13c54b,this[_0x190b6a(0x243)]=_0x30a0cf,q(this,_0x190b6a(0x43d),new _0x2c5746(_0x1c9bbb['NOT_COLLAB'])),this[_0x190b6a(0x31a)](),this[_0x190b6a(0x41b)]();}[_0x12e69f(0x41b)](){const _0x1811cf=_0x12e69f;this['disposeWithMe'](_0x3dfb9c(this['_univerInstanceService']['focused$'],this[_0x1811cf(0x1f8)][_0x1811cf(0x251)](_0x4cc843[_0x1811cf(0x409)]),this[_0x1811cf(0x1f8)][_0x1811cf(0x251)](_0x4cc843['UNIVER_SHEET']))[_0x1811cf(0x3b0)](_0x52dc5c(()=>pn(this['_univerInstanceService'])),_0x24baad(),_0x5553f3(_0x3acda4=>_0x3acda4?this[_0x1811cf(0x42c)]['getCollabEntity$'](_0x3acda4):_0x204fbb(null)),_0x5553f3(_0x4d8f3a=>_0x4d8f3a?_0x4d8f3a['status$']:_0x204fbb(_0x1c9bbb[_0x1811cf(0x3cb)])))[_0x1811cf(0x23c)](_0x56d75c=>{const _0x3d0f23=_0x1811cf;this[_0x3d0f23(0x43d)][_0x3d0f23(0x2f7)](_0x56d75c);}));}[_0x12e69f(0x31a)](){const _0x46c737=_0x12e69f;this['disposeWithMe'](this[_0x46c737(0x243)][_0x46c737(0x386)](_0x40f600[_0x46c737(0x263)],()=>_0x48f813(hn({'status$':this[_0x46c737(0x43d)][_0x46c737(0x22c)]()}),this[_0x46c737(0x39c)])));}};X=Y([J(0x0,_0x1ff84b),J(0x1,_0x54edce(_0x485f8c)),J(0x2,_0x54edce(_0x1d7a8d)),J(0x3,_0x50e845)],X);let fn=class extends _0xfa11d4{constructor(_0x158eb1,_0x17720f,_0x3663bd,_0x1f64f3){const _0x32d871=_0x12e69f;super(),this[_0x32d871(0x1f8)]=_0x158eb1,this[_0x32d871(0x39c)]=_0x17720f,this[_0x32d871(0x42c)]=_0x3663bd,this[_0x32d871(0x243)]=_0x1f64f3,q(this,_0x32d871(0x43d),new _0x2c5746(_0x1c9bbb['NOT_COLLAB'])),this[_0x32d871(0x31a)](),this['_initStatusListener']();}[_0x12e69f(0x41b)](){const _0xb7045=_0x12e69f;this[_0xb7045(0x432)](_0x3dfb9c(_0x204fbb(null),this[_0xb7045(0x1f8)][_0xb7045(0x251)](_0x4cc843['UNIVER_BOARD']))['pipe'](_0x52dc5c(()=>mn(this[_0xb7045(0x1f8)])),_0x24baad(),_0x5553f3(_0x2e2525=>_0x2e2525?this[_0xb7045(0x42c)][_0xb7045(0x462)](_0x2e2525):_0x204fbb(null)),_0x5553f3(_0x31e42d=>_0x31e42d?_0x31e42d[_0xb7045(0x3fa)]:_0x204fbb(_0x1c9bbb[_0xb7045(0x3cb)])))[_0xb7045(0x23c)](_0x409e78=>{const _0x5e8c86=_0xb7045;this[_0x5e8c86(0x43d)][_0x5e8c86(0x2f7)](_0x409e78);}));}[_0x12e69f(0x31a)](){const _0x1ddc0c=_0x12e69f;this[_0x1ddc0c(0x432)](this[_0x1ddc0c(0x243)]['registerComponent'](_0x4011a1,()=>_0x48f813(hn({'status$':this[_0x1ddc0c(0x43d)][_0x1ddc0c(0x22c)]()}),this['_injector'])));}};fn=Y([J(0x0,_0x1ff84b),J(0x1,_0x54edce(_0x485f8c)),J(0x2,_0x54edce(_0x1d7a8d)),J(0x3,_0x50e845)],fn);function pn(_0x37654f){const _0x4df541=_0x12e69f;let _0x2c2b6c=_0x37654f[_0x4df541(0x43f)](),_0xfb8b5=_0x2c2b6c==null?void 0x0:_0x2c2b6c[_0x4df541(0x2e7)]();if(_0xfb8b5&&!_0x374dc1(_0xfb8b5))return _0xfb8b5;let _0x5c6d3c=_0x37654f[_0x4df541(0x2cd)](_0x4cc843[_0x4df541(0x409)]),_0x3b5283=_0x5c6d3c==null?void 0x0:_0x5c6d3c[_0x4df541(0x2e7)]();if(_0x3b5283&&!_0x374dc1(_0x3b5283))return _0x3b5283;let _0x2561cc=_0x37654f[_0x4df541(0x2cd)](_0x4cc843[_0x4df541(0x314)]);if(_0x2561cc)return _0x2561cc['getUnitId']();let _0x4de657=_0x37654f[_0x4df541(0x2e2)](_0x4cc843[_0x4df541(0x409)])[_0x4df541(0x244)](_0x3db22f=>!_0x374dc1(_0x3db22f['getUnitId']()));return _0x4de657?_0x4de657[_0x4df541(0x2e7)]():null;}function mn(_0x658279){const _0x27a1bb=_0x12e69f;var _0x4ffcd0;let _0x17bb58=_0x658279[_0x27a1bb(0x2cd)](_0x4cc843[_0x27a1bb(0x41f)]);return(_0x4ffcd0=_0x17bb58==null?void 0x0:_0x17bb58[_0x27a1bb(0x2e7)]())==null?null:_0x4ffcd0;}function hn(_0x51ee86){let {status$:_0x1f9cee}=_0x51ee86;return function(){return _0x320080(ln,{'status$':_0x1f9cee});};}var gn='@univerjs-pro/collaboration-client-ui',_n='1.0.0-alpha.4';const vn={};let yn=class extends _0x3b482a{constructor(_0x1399a5,_0x256304){const _0x4c647f=_0x12e69f;super(),this[_0x4c647f(0x352)]=_0x1399a5,this[_0x4c647f(0x231)]=_0x256304,this[_0x4c647f(0x40e)]();}[_0x12e69f(0x40e)](){const _0x326add=_0x12e69f;let _0x21f067=this;this[_0x326add(0x432)](this[_0x326add(0x352)][_0x326add(0x3fb)]({'onBeforePasteImage':async _0x2a34db=>{const _0x3d56ae=_0x326add;let _0x2a587f=await _0x21f067['_imageIoService'][_0x3d56ae(0x28d)](_0x2a34db);return _0x2a587f?{'source':_0x2a587f[_0x3d56ae(0x3b3)],'imageSourceType':_0x2a587f[_0x3d56ae(0x430)]}:null;}}));}};yn=Y([J(0x0,_0x312ec9),J(0x1,_0x39b136)],yn);function bn(_0x428633,_0x51ffad){const _0x4a2cc8=_0x12e69f;_0x428633[_0x4a2cc8(0x38e)](),_0x428633[_0x4a2cc8(0x2d7)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x247645=_0x428633['measureText'](_0x51ffad)[_0x4a2cc8(0x1fa)];return _0x428633['restore'](),Math[_0x4a2cc8(0x3ee)](_0x247645+0x8,0xc8);}function xn(_0xffb0b2,_0xc5a946){const _0x19a022=_0x12e69f;var _0x50f8e2,_0x50a76d,_0x381d2f;let {radius:_0x406788,width:_0x100cb0,height:_0x4a8b17}=_0xc5a946;_0x406788=(_0x50f8e2=_0x406788)==null?0x0:_0x50f8e2,_0x100cb0=(_0x50a76d=_0x100cb0)==null?0x1e:_0x50a76d,_0x4a8b17=(_0x381d2f=_0x4a8b17)==null?0x1e:_0x381d2f;let _0x5a281b=0x0,_0x382037=0x0,_0x6df66e=0x0;_0x5a281b=_0x382037=_0x6df66e=Math[_0x19a022(0x3ee)](_0x406788,_0x100cb0/0x2,_0x4a8b17/0x2),_0xffb0b2[_0x19a022(0x449)](),_0xffb0b2[_0x19a022(0x3f3)](_0x5a281b,0x0),_0xffb0b2['lineTo'](_0x100cb0-_0x382037,0x0),_0xffb0b2[_0x19a022(0x303)](_0x100cb0-_0x382037,_0x382037,_0x382037,Math['PI']*0x3/0x2,0x0,!0x1),_0xffb0b2[_0x19a022(0x311)](_0x100cb0,_0x4a8b17-_0x6df66e),_0xffb0b2[_0x19a022(0x303)](_0x100cb0-_0x6df66e,_0x4a8b17-_0x6df66e,_0x6df66e,0x0,Math['PI']/0x2,!0x1),_0xffb0b2[_0x19a022(0x311)](0x0,_0x4a8b17),_0xffb0b2[_0x19a022(0x311)](0x0,_0x5a281b),_0xffb0b2['arc'](_0x5a281b,_0x5a281b,_0x5a281b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xffb0b2[_0x19a022(0x337)](),_0xc5a946[_0x19a022(0x3f0)]&&(_0xffb0b2[_0x19a022(0x38e)](),_0xffb0b2[_0x19a022(0x290)]=_0xc5a946[_0x19a022(0x3f0)],_0xc5a946[_0x19a022(0x3a3)]==='evenodd'?_0xffb0b2['fill'](_0x19a022(0x3ba)):_0xffb0b2[_0x19a022(0x3f0)](),_0xffb0b2[_0x19a022(0x210)]());}var Sn=class e extends _0x58652d{constructor(_0x34ea16,_0x24c524){const _0x551ecc=_0x12e69f;super(_0x34ea16,_0x24c524),q(this,_0x551ecc(0x1f4),void 0x0),q(this,_0x551ecc(0x402),void 0x0),this[_0x551ecc(0x1f4)]=_0x24c524==null?void 0x0:_0x24c524[_0x551ecc(0x1f4)],this['text']=_0x24c524==null?void 0x0:_0x24c524[_0x551ecc(0x402)];}static[_0x12e69f(0x24e)](_0x1cb139,_0x231d2b){const _0x441bc9=_0x12e69f;let {text:_0x55b776,color:_0x5580ea}=_0x231d2b;_0x1cb139[_0x441bc9(0x38e)](),_0x1cb139[_0x441bc9(0x2d7)]=_0x441bc9(0x20e);let _0x3ead86=_0x1cb139[_0x441bc9(0x254)](_0x55b776)[_0x441bc9(0x1fa)];if(xn(_0x1cb139,{'height':0x14,'radius':0x4,'width':bn(_0x1cb139,_0x55b776),'fill':_0x5580ea,'evented':!0x1}),_0x1cb139[_0x441bc9(0x290)]=_0x441bc9(0x37c),_0x3ead86>0xc0){let _0x1c982b='',_0xeb9ce=0x0;for(let _0x543440 of _0x55b776){let _0x5e00d4=_0x1cb139[_0x441bc9(0x254)](_0x543440)[_0x441bc9(0x1fa)];if(_0xeb9ce+_0x5e00d4<=0xc0-_0x1cb139[_0x441bc9(0x254)](_0x441bc9(0x2a8))[_0x441bc9(0x1fa)])_0x1c982b+=_0x543440,_0xeb9ce+=_0x5e00d4;else{_0x1c982b+=_0x441bc9(0x2a8);break;}}_0x1cb139['fillText'](_0x1c982b,0x4,0xf);}else _0x1cb139[_0x441bc9(0x2b4)](_0x55b776,0x4,0xf);_0x1cb139[_0x441bc9(0x210)]();}[_0x12e69f(0x2ce)](_0x1ee94d){const _0x1d6f8d=_0x12e69f;e[_0x1d6f8d(0x24e)](_0x1ee94d,this);}};const Cn=0x138a;var wn=class extends _0x58652d{constructor(_0x3ec654,_0x10ad92){const _0x3960e6=_0x12e69f;super(_0x3ec654,{..._0x10ad92,'evented':!0x1}),q(this,_0x3960e6(0x457),_0x3960e6(0x1f7)),q(this,_0x3960e6(0x3bb),''),q(this,_0x3960e6(0x240),!0x0),_0x10ad92&&this['setShapeProps'](_0x10ad92);}[_0x12e69f(0x26d)](_0x3fa236){const _0x17c721=_0x12e69f;var _0x106b4e,_0x4953da,_0x8f1460,_0x26b500,_0x2a9ab1,_0x3d66b0,_0x5aa732,_0x33b338;this['_color']=(_0x106b4e=_0x3fa236[_0x17c721(0x1f4)])==null?this[_0x17c721(0x457)]:_0x106b4e,this[_0x17c721(0x3bb)]=(_0x4953da=_0x3fa236[_0x17c721(0x227)])==null?this['_name']:_0x4953da,this[_0x17c721(0x240)]=(_0x8f1460=_0x3fa236[_0x17c721(0x213)])==null?this[_0x17c721(0x240)]:_0x8f1460,this[_0x17c721(0x1f0)]=!0x1,this[_0x17c721(0x279)]({'left':(_0x26b500=_0x3fa236[_0x17c721(0x29c)])==null?this[_0x17c721(0x29c)]:_0x26b500,'top':(_0x2a9ab1=_0x3fa236[_0x17c721(0x3b1)])==null?this['top']:_0x2a9ab1,'width':(_0x3d66b0=_0x3fa236[_0x17c721(0x1fa)])==null?this[_0x17c721(0x1fa)]:_0x3d66b0,'height':(_0x5aa732=_0x3fa236['height'])==null?this['height']:_0x5aa732,'angle':(_0x33b338=_0x3fa236['angle'])==null?this[_0x17c721(0x390)]:_0x33b338});}[_0x12e69f(0x2ce)](_0x5b2082){const _0x2a96f7=_0x12e69f;_0x5b2082[_0x2a96f7(0x38e)](),_0x5b2082[_0x2a96f7(0x43e)]=this[_0x2a96f7(0x457)],_0x5b2082['lineWidth']=this[_0x2a96f7(0x21a)]||1.5,_0x5b2082['setLineDash']([0x6,0x4]),_0x5b2082['strokeRect'](0x0,0x0,this[_0x2a96f7(0x1fa)],this[_0x2a96f7(0x387)]),_0x5b2082[_0x2a96f7(0x210)](),this['_showText']&&(_0x5b2082[_0x2a96f7(0x38e)](),_0x5b2082[_0x2a96f7(0x27f)](0x1,0x0,0x0,0x1,this[_0x2a96f7(0x1fa)],-0x14),Sn['drawWith'](_0x5b2082,{'text':this[_0x2a96f7(0x3bb)],'color':this[_0x2a96f7(0x457)]}),_0x5b2082[_0x2a96f7(0x210)]());}};const Tn=['purple.300',_0x12e69f(0x3bf),_0x12e69f(0x374),_0x12e69f(0x407),'blue.400',_0x12e69f(0x26a)];var Z=class extends _0xfa11d4{constructor(..._0x54df84){super(..._0x54df84),q(this,'_assignedColors',new Map()),q(this,'_colorIndex',0x0);}[_0x12e69f(0x283)](_0x19b8cc){const _0x5ad062=_0x12e69f;if(this[_0x5ad062(0x3ac)][_0x5ad062(0x2b5)](_0x19b8cc))return this[_0x5ad062(0x3ac)][_0x5ad062(0x3f2)](_0x19b8cc);let _0x155048=Tn[this[_0x5ad062(0x3bc)]];return this[_0x5ad062(0x3bc)]=(this[_0x5ad062(0x3bc)]+0x1)%Tn[_0x5ad062(0x3c4)],this[_0x5ad062(0x3ac)][_0x5ad062(0x32b)](_0x19b8cc,_0x155048),_0x155048;}};function En(_0x175b1d){const _0x2980f2=_0x12e69f;let _0x2308bf;try{_0x2308bf=JSON[_0x2980f2(0x42d)](_0x175b1d);}catch{return null;}if(typeof _0x2308bf!=_0x2980f2(0x33b)||!_0x2308bf)return null;let _0x4a99bd=_0x2308bf;if(_0x4a99bd[_0x2980f2(0x3c8)]!=='board-element-selection'||typeof _0x4a99bd['unitId']!=_0x2980f2(0x269)||typeof _0x4a99bd[_0x2980f2(0x223)]!='string')return null;let _0x2a7492=Array[_0x2980f2(0x20b)](_0x4a99bd[_0x2980f2(0x3d0)])?_0x4a99bd[_0x2980f2(0x3d0)][_0x2980f2(0x382)](_0x3752af=>typeof _0x3752af==_0x2980f2(0x269)):[],_0x304a53=typeof _0x4a99bd['focusedId']==_0x2980f2(0x269)?_0x4a99bd[_0x2980f2(0x351)]:null;return{'kind':_0x2980f2(0x34b),'unitId':_0x4a99bd['unitId'],'subUnitId':_0x4a99bd['subUnitId'],'selectedIds':_0x2a7492,'focusedId':_0x304a53};}let Dn=class extends _0x3b482a{get['cursorInfo'](){const _0x242879=_0x12e69f;return this['_cursorInfo$'][_0x242879(0x36e)]();}get['roomMembers'](){const _0x5b8b3a=_0x12e69f;return this[_0x5b8b3a(0x435)][_0x5b8b3a(0x36e)]();}constructor(_0x39e9e1,_0x3bde89,_0xbe23fc,_0xb6222d,_0xdaf2b){const _0x4f1a90=_0x12e69f;super(),this[_0x4f1a90(0x204)]=_0x39e9e1,this[_0x4f1a90(0x421)]=_0x3bde89,this['_colorAssignService']=_0xbe23fc,this[_0x4f1a90(0x46b)]=_0xb6222d,this[_0x4f1a90(0x25c)]=_0xdaf2b,q(this,_0x4f1a90(0x2c5),!0x1),q(this,'_init',!0x1),q(this,_0x4f1a90(0x2c1),new _0x2c5746(new Map())),q(this,_0x4f1a90(0x35d),this[_0x4f1a90(0x2c1)]['asObservable']()),q(this,'_roomMembers$',new _0x2c5746([])),q(this,_0x4f1a90(0x25a),this['_roomMembers$'][_0x4f1a90(0x3b0)](_0x4e72f8(0x12c))),q(this,_0x4f1a90(0x260),_0x56de04(_0x162945=>{const _0xdcca16=_0x4f1a90;let _0xdc5ee2=_0x162945[_0xdcca16(0x342)];if(!_0xdc5ee2||_0xdc5ee2[_0xdcca16(0x2ad)]!==this[_0xdcca16(0x204)])return;let _0x2a4bf7={'kind':'board-element-selection','unitId':_0xdc5ee2[_0xdcca16(0x2ad)],'subUnitId':_0xdc5ee2[_0xdcca16(0x223)],'selectedIds':_0x162945[_0xdcca16(0x3d0)][_0xdcca16(0x382)](_0x2851ea=>typeof _0x2851ea==_0xdcca16(0x269)),'focusedId':_0x162945[_0xdcca16(0x351)]},_0x549c42={'eventID':_0x46afd7[_0xdcca16(0x33e)],'data':{'unitID':this['unitID'],'memberID':this[_0xdcca16(0x421)][_0xdcca16(0x469)](),'selection':JSON[_0xdcca16(0x453)](_0x2a4bf7)}};this['_session'][_0xdcca16(0x20c)](_0x549c42,this[_0xdcca16(0x204)]);},0x64));}[_0x12e69f(0x3cc)](){const _0x5ba702=_0x12e69f;super[_0x5ba702(0x3cc)](),this[_0x5ba702(0x2c1)][_0x5ba702(0x2f7)](new Map()),this['_cursorInfo$']['complete'](),this[_0x5ba702(0x435)][_0x5ba702(0x2f7)]([]),this[_0x5ba702(0x435)]['complete']();}['init'](){const _0x857344=_0x12e69f;this[_0x857344(0x40e)]||(this[_0x857344(0x40e)]=!0x0,this[_0x857344(0x421)][_0x857344(0x332)][_0x857344(0x3b0)](_0x58f4bb(this[_0x857344(0x200)]))[_0x857344(0x23c)](_0x462b08=>{const _0x36d2f1=_0x857344;_0x462b08===_0x37ed25[_0x36d2f1(0x31c)]?this[_0x36d2f1(0x2f8)]():this[_0x36d2f1(0x247)]();}),this[_0x857344(0x421)][_0x857344(0x228)][_0x857344(0x3b0)](_0x58f4bb(this['dispose$']))[_0x857344(0x23c)](_0x3bec0e=>{const _0x336973=_0x857344;let _0x4ef709=_0x3bec0e['eventID'];_0x4ef709===_0x46afd7['UPDATE_CURSOR']&&this[_0x336973(0x2a3)](_0x3bec0e),_0x4ef709===_0x46afd7[_0x336973(0x275)]&&this[_0x336973(0x2de)](_0x3bec0e);}),this[_0x857344(0x25c)][_0x857344(0x2f4)][_0x857344(0x3b0)](_0x58f4bb(this[_0x857344(0x200)]))[_0x857344(0x23c)](_0x38f088=>{const _0x34a01a=_0x857344;this[_0x34a01a(0x2c5)]&&this[_0x34a01a(0x260)](_0x38f088);}));}[_0x12e69f(0x2a3)](_0x42e0ae){const _0x205cde=_0x12e69f;var _0x523c91,_0x2fe06d,_0x445988,_0x222967;let {memberID:_0x3f3a5c,selection:_0x34c2d0}=_0x42e0ae[_0x205cde(0x2d8)];if(_0x3f3a5c===((_0x523c91=(_0x2fe06d=this[_0x205cde(0x421)])[_0x205cde(0x469)])==null?void 0x0:_0x523c91[_0x205cde(0x3e6)](_0x2fe06d)))return;let _0x382ca3=En(_0x34c2d0);if(!_0x382ca3||_0x382ca3[_0x205cde(0x2ad)]!==this[_0x205cde(0x204)])return;let _0x163a16=(_0x445988=(_0x222967=this['_memberService'][_0x205cde(0x415)](this[_0x205cde(0x204)],_0x3f3a5c))==null?void 0x0:_0x222967[_0x205cde(0x227)])==null?_0x205cde(0x2ea):_0x445988,_0x5371ad={'color':this['_colorAssignService'][_0x205cde(0x283)](_0x3f3a5c),'name':_0x163a16,'unitId':_0x382ca3[_0x205cde(0x2ad)],'subUnitId':_0x382ca3[_0x205cde(0x223)],'selectedIds':_0x382ca3['selectedIds'],'focusedId':_0x382ca3[_0x205cde(0x351)],'selection':_0x34c2d0},_0xb08bb7=new Map(this['cursorInfo']);_0xb08bb7['set'](_0x3f3a5c,_0x5371ad),this[_0x205cde(0x2c1)][_0x205cde(0x2f7)](_0xb08bb7);}[_0x12e69f(0x2de)](_0xd4d73c){const _0x3b02d5=_0x12e69f;let {memberID:_0x5de87d}=_0xd4d73c[_0x3b02d5(0x2d8)],_0x2d68c4=new Map(this['cursorInfo']);_0x2d68c4[_0x3b02d5(0x28a)](_0x5de87d),this[_0x3b02d5(0x2c1)][_0x3b02d5(0x2f7)](_0x2d68c4);}[_0x12e69f(0x2f8)](){const _0x4fdb20=_0x12e69f;this[_0x4fdb20(0x2c5)]=!0x0,this[_0x4fdb20(0x260)](this[_0x4fdb20(0x25c)][_0x4fdb20(0x3e2)]());}[_0x12e69f(0x247)](){this['_online']=!0x1;}};Dn=Y([J(0x2,_0x54edce(Z)),J(0x3,_0x54edce(_0x2d22bc)),J(0x4,_0x54edce(_0x4a3364))],Dn);function On(_0xcec7f7){const _0x231aa4=_0x12e69f;let _0x4fe48e='';for(let _0x34f4a1 of _0xcec7f7){let {startOffset:_0x29e0e1,endOffset:_0x1f07cf,isActive:_0x1b09a1,rangeType:_0x231a1e,segmentId:_0x31c7ee,segmentPage:_0x332ed0}=_0x34f4a1;_0x4fe48e[_0x231aa4(0x3c4)]&&(_0x4fe48e+=','),_0x4fe48e+=_0x29e0e1+':'+_0x1f07cf+':'+(_0x1b09a1?'1':'0')+':'+_0x231a1e+':'+_0x31c7ee+':'+_0x332ed0;}return _0x4fe48e;}function kn(_0xfd7f43){const _0x1f0c85=_0x12e69f;let _0x1e91ac=_0xfd7f43['split'](','),_0x58dfef=[];for(let _0x286868 of _0x1e91ac){let [_0x4a18d6,_0x6b6e22,_0x336334,_0x4eb6e6,_0x4e3dad,_0x4a4f9d]=_0x286868[_0x1f0c85(0x46a)](':');_0x58dfef['push']({'startOffset':Number(_0x4a18d6),'endOffset':Number(_0x6b6e22),'collapsed':_0x4a18d6===_0x6b6e22,'isActive':_0x336334==='1','rangeType':_0x4eb6e6===_0x4faa88[_0x1f0c85(0x233)]?_0x4faa88['TEXT']:_0x4faa88[_0x1f0c85(0x2ba)],'segmentId':typeof _0x4e3dad=='string'?String(_0x4e3dad):'','segmentPage':Number(_0x4a4f9d==null?-0x1:_0x4a4f9d)});}return _0x58dfef[_0x1f0c85(0x214)](_0x2701a6=>_0x2701a6['isActive'])||(_0x58dfef[0x0][_0x1f0c85(0x302)]=!0x0),_0x58dfef;}var An=class extends _0x3b482a{constructor(..._0x3c388c){const _0x27a669=_0x12e69f;super(..._0x3c388c),q(this,_0x27a669(0x371),new _0x2c5746(null)),q(this,_0x27a669(0x42a),this[_0x27a669(0x371)][_0x27a669(0x22c)]());}[_0x12e69f(0x434)](_0x4fa15b){const _0x499d89=_0x12e69f;let {unitID:_0xb3cb60,memberID:_0x1b0ff8,textRanges:_0x57ae94}=_0x4fa15b,_0x481e93=On(_0x57ae94);if(_0x481e93==='')return;let _0x530871={'unitID':_0xb3cb60,'memberID':_0x1b0ff8,'selection':_0x481e93};this[_0x499d89(0x371)][_0x499d89(0x2f7)](_0x530871);}};let jn=class extends _0x3b482a{get[_0x12e69f(0x460)](){const _0x309b7a=_0x12e69f;return this[_0x309b7a(0x2c1)]['getValue']();}get[_0x12e69f(0x39d)](){const _0x3fc0ab=_0x12e69f;return this[_0x3fc0ab(0x435)][_0x3fc0ab(0x36e)]();}constructor(_0x56f301,_0x5e01b1,_0x3c2b89,_0x29a44e,_0x5b70d6,_0x34ff44,_0x5bfa24,_0x54f5c5,_0x28e37d){const _0x2a4966=_0x12e69f;super(),this[_0x2a4966(0x204)]=_0x56f301,this[_0x2a4966(0x421)]=_0x5e01b1,this['_injector']=_0x3c2b89,this[_0x2a4966(0x284)]=_0x29a44e,this[_0x2a4966(0x46b)]=_0x5b70d6,this[_0x2a4966(0x45e)]=_0x34ff44,this[_0x2a4966(0x274)]=_0x5bfa24,this[_0x2a4966(0x1f8)]=_0x54f5c5,this[_0x2a4966(0x422)]=_0x28e37d,q(this,'_online',!0x1),q(this,_0x2a4966(0x40e),!0x1),q(this,'_cursorInfo$',new _0x2c5746(new Map())),q(this,_0x2a4966(0x35d),this[_0x2a4966(0x2c1)][_0x2a4966(0x22c)]()),q(this,_0x2a4966(0x435),new _0x2c5746([])),q(this,_0x2a4966(0x25a),this['_roomMembers$'][_0x2a4966(0x3b0)](_0x4e72f8(0x12c))),q(this,_0x2a4966(0x260),_0x56de04(_0x3440ab=>{const _0x59aa91=_0x2a4966;let _0x5d10a5={'eventID':_0x46afd7['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x59aa91(0x421)][_0x59aa91(0x469)](),'selection':On(_0x3440ab)}};this[_0x59aa91(0x421)][_0x59aa91(0x20c)](_0x5d10a5,this[_0x59aa91(0x204)]);},0x64));}[_0x12e69f(0x3cc)](){const _0x1e3cc8=_0x12e69f;super[_0x1e3cc8(0x3cc)](),this[_0x1e3cc8(0x2c1)][_0x1e3cc8(0x2f7)](new Map()),this[_0x1e3cc8(0x2c1)][_0x1e3cc8(0x338)](),this[_0x1e3cc8(0x435)]['next']([]),this[_0x1e3cc8(0x435)][_0x1e3cc8(0x338)]();}[_0x12e69f(0x36b)](){const _0x2ca047=_0x12e69f;this[_0x2ca047(0x40e)]||(this[_0x2ca047(0x40e)]=!0x0,this['_session'][_0x2ca047(0x332)][_0x2ca047(0x3b0)](_0x58f4bb(this[_0x2ca047(0x200)]))[_0x2ca047(0x23c)](_0x439a25=>{const _0x1bedcc=_0x2ca047;_0x439a25===_0x37ed25['ONLINE']?this[_0x1bedcc(0x2f8)]():this[_0x1bedcc(0x247)]();}),this['_session'][_0x2ca047(0x228)]['pipe'](_0x58f4bb(this['dispose$']))[_0x2ca047(0x23c)](_0x785296=>{const _0x2dc857=_0x2ca047;let _0x130647=_0x785296[_0x2dc857(0x3ab)];_0x130647===_0x46afd7['UPDATE_CURSOR']&&this[_0x2dc857(0x2a3)](_0x785296),_0x130647===_0x46afd7[_0x2dc857(0x275)]&&this[_0x2dc857(0x2de)](_0x785296);}),this[_0x2ca047(0x432)](this[_0x2ca047(0x422)][_0x2ca047(0x304)](_0x21a525=>{const _0x2aa359=_0x2ca047;let _0x363dde=_0x21a525[_0x2aa359(0x327)];_0x363dde!=null&&this['_online']&&_0x21a525['id']===_0x8f0ef5['id']&&_0x363dde['unitId']===this[_0x2aa359(0x204)]&&_0x363dde[_0x2aa359(0x205)]===!0x1&&_0x363dde[_0x2aa359(0x3c0)]['length']>0x0&&this[_0x2aa359(0x260)](_0x363dde['ranges']);})),this[_0x2ca047(0x45e)][_0x2ca047(0x42a)]['pipe'](_0x58f4bb(this[_0x2ca047(0x200)]))[_0x2ca047(0x23c)](_0x4d6bb0=>{const _0xa90fac=_0x2ca047;if((_0x4d6bb0==null?void 0x0:_0x4d6bb0['unitID'])!==this[_0xa90fac(0x204)])return;let _0x1ef957={'eventID':_0x46afd7['UPDATE_CURSOR'],'data':_0x4d6bb0};this[_0xa90fac(0x2a3)](_0x1ef957);}),this[_0x2ca047(0x432)](this[_0x2ca047(0x422)]['onCommandExecuted'](_0x11df83=>{const _0x5dab89=_0x2ca047;if(_0x11df83[_0x5dab89(0x327)]==null)return;let _0x408585=_0x11df83['params'];if(_0x11df83['id']!==_0xb0fffe['id']||_0x408585[_0x5dab89(0x2ad)]!==this[_0x5dab89(0x204)])return;let _0x3d4e19={'id':'doc.mutation.rich-text-editing','params':_0x408585},_0x3006a8=this['cursorInfo'];for(let [_0x57add9,_0x15c304]of _0x3006a8){let _0x195b6f={'id':_0x5dab89(0x345),'params':{'unitId':this[_0x5dab89(0x204)],'actions':null,'textRanges':_0x15c304[_0x5dab89(0x3c0)]}},_0x2f2513=this[_0x5dab89(0x274)]['transformMutation'](_0x3d4e19,_0x195b6f,!0x1);if(_0x2e286f(_0x2f2513))throw _0x2f2513[_0x5dab89(0x293)];_0x3006a8[_0x5dab89(0x32b)](_0x57add9,{..._0x15c304,'ranges':_0x2f2513[_0x5dab89(0x26b)][_0x5dab89(0x327)][_0x5dab89(0x26c)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x3006a8);});})));}[_0x12e69f(0x2a3)](_0x24dd8a){const _0x436417=_0x12e69f;var _0x4536bb,_0x5a76f7;let {memberID:_0x211b26,selection:_0x2da8d0}=_0x24dd8a[_0x436417(0x2d8)],_0x3f3fdb=kn(_0x2da8d0),_0x400c08=(_0x4536bb=(_0x5a76f7=this[_0x436417(0x46b)][_0x436417(0x415)](this['unitID'],_0x211b26))==null?void 0x0:_0x5a76f7[_0x436417(0x227)])==null?'Unknown\x20user':_0x4536bb,_0x84c981={'color':this[_0x436417(0x284)][_0x436417(0x283)](_0x211b26),'name':_0x400c08,'ranges':_0x3f3fdb},_0x4f660=this[_0x436417(0x460)];_0x4f660[_0x436417(0x32b)](_0x211b26,_0x84c981),this[_0x436417(0x2c1)]['next'](_0x4f660);}[_0x12e69f(0x2de)](_0x4107e4){const _0x2db176=_0x12e69f;let {memberID:_0x79d6a4}=_0x4107e4['data'],_0x52f137=this[_0x2db176(0x460)];_0x52f137['delete'](_0x79d6a4),this[_0x2db176(0x2c1)][_0x2db176(0x2f7)](_0x52f137);}['_toggleOnline'](){const _0x4923f3=_0x12e69f;var _0x1f46cf;if(this[_0x4923f3(0x2c5)]=!0x0,((_0x1f46cf=this[_0x4923f3(0x1f8)]['getFocusedUnit']())==null?void 0x0:_0x1f46cf[_0x4923f3(0x2e7)]())!==this['unitID'])return;let _0x3822c8=this[_0x4923f3(0x39c)][_0x4923f3(0x3f2)](_0x371c99)[_0x4923f3(0x202)]();Array['isArray'](_0x3822c8)&&_0x3822c8[_0x4923f3(0x3c4)]>0x0&&this[_0x4923f3(0x260)](_0x3822c8);}[_0x12e69f(0x247)](){const _0x120caf=_0x12e69f;this[_0x120caf(0x2c5)]=!0x1;}};jn=Y([J(0x2,_0x54edce(_0x485f8c)),J(0x3,_0x54edce(Z)),J(0x4,_0x54edce(_0x2d22bc)),J(0x5,_0x54edce(An)),J(0x6,_0x3e9679),J(0x7,_0x1ff84b),J(0x8,_0x41da16)],jn);const Mn=()=>{let _0x2e8abf=[],_0x507d44=!0x1;return _0x5a3b7d=>{_0x2e8abf['push'](_0x5a3b7d),_0x507d44||(_0x507d44=!0x0,setTimeout(()=>{_0x2e8abf['forEach'](_0x3f67a0=>_0x3f67a0()),_0x2e8abf=[],_0x507d44=!0x1;}));};};let Nn=class extends _0x3b482a{get['cursorInfo'](){const _0x3cc56e=_0x12e69f;return this['_cursorInfo$'][_0x3cc56e(0x36e)]();}get['roomMembers'](){const _0x5ae7b8=_0x12e69f;return this['_roomMembers$'][_0x5ae7b8(0x36e)]();}constructor(_0x268c44,_0x2ac7cc,_0x30ec62,_0x37815e,_0x5a66e7,_0x58183f,_0x58d644,_0x45d1f3){const _0x4d1b16=_0x12e69f;super(),this[_0x4d1b16(0x204)]=_0x268c44,this[_0x4d1b16(0x421)]=_0x2ac7cc,this[_0x4d1b16(0x39c)]=_0x30ec62,this[_0x4d1b16(0x284)]=_0x37815e,this[_0x4d1b16(0x46b)]=_0x5a66e7,this[_0x4d1b16(0x1f8)]=_0x58183f,this[_0x4d1b16(0x422)]=_0x58d644,this[_0x4d1b16(0x3af)]=_0x45d1f3,q(this,'_online',!0x1),q(this,_0x4d1b16(0x40e),!0x1),q(this,'_cursorInfo$',new _0x2c5746(new Map())),q(this,_0x4d1b16(0x35d),this['_cursorInfo$'][_0x4d1b16(0x22c)]()),q(this,_0x4d1b16(0x435),new _0x2c5746([])),q(this,_0x4d1b16(0x25a),this[_0x4d1b16(0x435)][_0x4d1b16(0x3b0)](_0x4e72f8(0x12c))),q(this,_0x4d1b16(0x260),_0x56de04((_0x1b6477,_0x35c02d)=>{const _0x1ed7b9=_0x4d1b16;let _0x43f4bf={'eventID':_0x46afd7[_0x1ed7b9(0x33e)],'data':{'unitID':this['unitID'],'memberID':this[_0x1ed7b9(0x421)][_0x1ed7b9(0x469)](),'selection':_0x2b4dbe(_0x1b6477,_0x35c02d[_0x1ed7b9(0x2a2)])}};this[_0x1ed7b9(0x421)]['send'](_0x43f4bf,this[_0x1ed7b9(0x204)]);},0x64));}['dispose'](){const _0xe5ff97=_0x12e69f;super[_0xe5ff97(0x3cc)](),this[_0xe5ff97(0x2c1)][_0xe5ff97(0x2f7)](new Map()),this[_0xe5ff97(0x2c1)][_0xe5ff97(0x338)](),this[_0xe5ff97(0x435)][_0xe5ff97(0x2f7)]([]),this[_0xe5ff97(0x435)][_0xe5ff97(0x338)]();}[_0x12e69f(0x36b)](){const _0x1fc9d4=_0x12e69f;this['_init']||(this[_0x1fc9d4(0x40e)]=!0x0,this[_0x1fc9d4(0x421)]['sessionStatus$']['pipe'](_0x58f4bb(this[_0x1fc9d4(0x200)]))['subscribe'](_0x2fbde7=>{const _0x5a4d6c=_0x1fc9d4;_0x2fbde7===_0x37ed25[_0x5a4d6c(0x31c)]?this['_toggleOnline']():this[_0x5a4d6c(0x247)]();}),this[_0x1fc9d4(0x421)][_0x1fc9d4(0x228)][_0x1fc9d4(0x3b0)](_0x58f4bb(this['dispose$']))[_0x1fc9d4(0x23c)](_0x186011=>{const _0x995065=_0x1fc9d4;let _0x1e4e9f=_0x186011[_0x995065(0x3ab)];_0x1e4e9f===_0x46afd7[_0x995065(0x33e)]&&this[_0x995065(0x2a3)](_0x186011),_0x1e4e9f===_0x46afd7[_0x995065(0x275)]&&this[_0x995065(0x2de)](_0x186011);}),this[_0x1fc9d4(0x347)](),this[_0x1fc9d4(0x432)](this['_commandService']['onCommandExecuted'](_0x5143df=>{const _0x3951d8=_0x1fc9d4;if(this[_0x3951d8(0x2c5)]&&_0x5143df['id']===_0x3da58d['id']&&_0x5143df[_0x3951d8(0x327)]['unitId']===this[_0x3951d8(0x204)]){let _0x44e774=_0x5143df['params'];this['_updateLocalCursor'](_0x44e774[_0x3951d8(0x223)],_0x44e774[_0x3951d8(0x45f)][0x0]);}})));}['_onCursorUpdate'](_0x210af7){const _0x52fcda=_0x12e69f;var _0x4b62af,_0x3bd59d;let {memberID:_0x1c82c2,selection:_0x5aa2a8}=_0x210af7['data'],{sheetName:_0x2ed7ec,range:_0x225c01}=_0x15299e(_0x5aa2a8),_0x3eba45={'name':(_0x4b62af=(_0x3bd59d=this[_0x52fcda(0x46b)][_0x52fcda(0x415)](this[_0x52fcda(0x204)],_0x1c82c2))==null?void 0x0:_0x3bd59d[_0x52fcda(0x227)])==null?_0x52fcda(0x2ea):_0x4b62af,'range':this[_0x52fcda(0x3c9)](_0x2ed7ec,_0x225c01),'sheetID':_0x2ed7ec,'color':this[_0x52fcda(0x284)][_0x52fcda(0x283)](_0x1c82c2),'selection':_0x5aa2a8},_0x3a19e1=this[_0x52fcda(0x460)];_0x3a19e1['set'](_0x1c82c2,_0x3eba45),this[_0x52fcda(0x2c1)][_0x52fcda(0x2f7)](_0x3a19e1);}[_0x12e69f(0x2de)](_0x56a573){const _0x467e05=_0x12e69f;let {memberID:_0x55a97e}=_0x56a573[_0x467e05(0x2d8)],_0x5d727=this[_0x467e05(0x460)];_0x5d727[_0x467e05(0x28a)](_0x55a97e),this[_0x467e05(0x2c1)][_0x467e05(0x2f7)](_0x5d727);}['_getMergeRange'](_0x5f02c4,_0xf2ac3a){const _0x471c69=_0x12e69f;var _0x43be72;let _0x22d976=(_0x43be72=this[_0x471c69(0x1f8)][_0x471c69(0x2fe)](this['unitID']))==null||(_0x43be72=_0x43be72[_0x471c69(0x3b5)](_0x5f02c4))==null?void 0x0:_0x43be72[_0x471c69(0x2b0)]();return(_0x22d976==null?void 0x0:_0x22d976[_0x471c69(0x244)](_0x5a74f1=>_0x340c32[_0x471c69(0x404)](_0x5a74f1,_0xf2ac3a)))||_0xf2ac3a;}[_0x12e69f(0x347)](){const _0x4a21b6=_0x12e69f;let _0x465750=new _0x2345c4(),_0x3344f6=Mn(),_0xfd5ae8=()=>{const _0x5e3e67=_0x2051;_0x465750[_0x5e3e67(0x3cc)]();let _0x56ba3d=(_0x3a0698,_0x20fdaf,_0x5da894,_0x48bac5)=>{const _0x5f2ad3=_0x5e3e67;let _0x5e4b8e=[];switch(_0x3a0698['id']){case _0x151937[_0x5f2ad3(0x3f5)]:_0x5e4b8e=_0x3b3afb(_0x3a0698,_0x48bac5);break;case _0x151937['DeleteRangeMoveUpCommandId']:_0x5e4b8e=_0x430272(_0x3a0698,_0x48bac5);break;case _0x151937[_0x5f2ad3(0x256)]:_0x5e4b8e=_0x1fcd50(_0x3a0698,_0x48bac5);break;case _0x151937[_0x5f2ad3(0x456)]:_0x5e4b8e=_0x346f88(_0x3a0698,_0x48bac5);break;case _0x151937[_0x5f2ad3(0x252)]:_0x5e4b8e=_0x549884(_0x3a0698,_0x48bac5);break;case _0x151937['InsertRowCommandId']:_0x5e4b8e=_0x4157cc(_0x3a0698,_0x48bac5);break;case _0x151937[_0x5f2ad3(0x3a7)]:_0x5e4b8e=_0x4e548d(_0x3a0698,_0x48bac5);break;case _0x151937[_0x5f2ad3(0x2f9)]:_0x5e4b8e=_0x2b2c47(_0x3a0698,_0x48bac5);break;case _0x151937[_0x5f2ad3(0x44d)]:_0x5e4b8e=_0x1d4a15(_0x3a0698,_0x48bac5);break;}let _0x23eb7f=_0x56ec96(_0x5e4b8e,_0x48bac5),_0x3f2156=this[_0x5f2ad3(0x460)][_0x5f2ad3(0x3f2)](_0x20fdaf);if(_0x3f2156&&_0x23eb7f){let _0x27877d={..._0x3f2156,'range':_0x23eb7f};this[_0x5f2ad3(0x460)]['set'](_0x20fdaf,_0x27877d),_0x3344f6(()=>{const _0x8a7ba6=_0x5f2ad3;let _0xcdf819=this[_0x8a7ba6(0x3af)][_0x8a7ba6(0x3b9)](_0x23eb7f,_0x77d03d=>(_0xcdf819['dispose'](),_0x56ba3d(_0x77d03d,_0x20fdaf,_0x5da894,_0x23eb7f)));_0x465750[_0x8a7ba6(0x31d)](_0xcdf819);});}return{'redos':[],'undos':[]};};this[_0x5e3e67(0x460)]['forEach']((_0x3cbaed,_0x311952)=>{const _0x2fc17e=_0x5e3e67;let {range:_0x2a3dfc,sheetID:_0x281303}=_0x3cbaed,_0x49e3c6=this[_0x2fc17e(0x3af)][_0x2fc17e(0x3b9)](_0x2a3dfc,_0x402b4f=>(_0x49e3c6[_0x2fc17e(0x3cc)](),_0x56ba3d(_0x402b4f,_0x311952,_0x281303,_0x2a3dfc)));_0x465750[_0x2fc17e(0x31d)](_0x49e3c6);});};this[_0x4a21b6(0x432)](_0x242400(this['_cursorInfo$']['subscribe'](()=>{_0xfd5ae8();})));}[_0x12e69f(0x2f8)](){const _0x30c14f=_0x12e69f;var _0x1a7f6b,_0x5426a9;if(this[_0x30c14f(0x2c5)]=!0x0,((_0x1a7f6b=this[_0x30c14f(0x1f8)][_0x30c14f(0x43f)]())==null?void 0x0:_0x1a7f6b[_0x30c14f(0x2e7)]())!==this[_0x30c14f(0x204)])return;let _0x5219da=(_0x5426a9=this[_0x30c14f(0x39c)][_0x30c14f(0x3f2)](_0x30f08d)[_0x30c14f(0x3be)]())==null?void 0x0:_0x5426a9[0x0],_0x263c2f=this['_univerInstanceService'][_0x30c14f(0x2cd)](_0x4cc843[_0x30c14f(0x314)])[_0x30c14f(0x447)]();_0x5219da&&_0x263c2f&&this['_updateLocalCursor'](_0x263c2f['getSheetId'](),_0x5219da);}[_0x12e69f(0x247)](){const _0x2704ed=_0x12e69f;this[_0x2704ed(0x2c5)]=!0x1;}};Nn=Y([J(0x2,_0x54edce(_0x485f8c)),J(0x3,_0x54edce(Z)),J(0x4,_0x54edce(_0x2d22bc)),J(0x5,_0x1ff84b),J(0x6,_0x41da16),J(0x7,_0x54edce(_0x12441a))],Nn);function Pn(_0x285b59){const _0x2efe77=_0x12e69f;let _0x3da448;try{_0x3da448=JSON[_0x2efe77(0x42d)](_0x285b59);}catch{return null;}if(typeof _0x3da448!=_0x2efe77(0x33b)||!_0x3da448)return null;let _0x37dbaa=_0x3da448;if(_0x37dbaa['kind']!=='slide-element-selection'||typeof _0x37dbaa[_0x2efe77(0x2ad)]!=_0x2efe77(0x269)||typeof _0x37dbaa[_0x2efe77(0x223)]!=_0x2efe77(0x269))return null;let _0x324c30=Array[_0x2efe77(0x20b)](_0x37dbaa[_0x2efe77(0x3d0)])?_0x37dbaa[_0x2efe77(0x3d0)][_0x2efe77(0x382)](_0x213ce9=>typeof _0x213ce9==_0x2efe77(0x269)):[],_0x2dd8de=typeof _0x37dbaa['focusedId']==_0x2efe77(0x269)?_0x37dbaa[_0x2efe77(0x351)]:null;return{'kind':_0x2efe77(0x397),'unitId':_0x37dbaa[_0x2efe77(0x2ad)],'subUnitId':_0x37dbaa[_0x2efe77(0x223)],'selectedIds':_0x324c30,'focusedId':_0x2dd8de};}let Fn=class extends _0x3b482a{get['cursorInfo'](){const _0x40a199=_0x12e69f;return this[_0x40a199(0x2c1)][_0x40a199(0x36e)]();}get[_0x12e69f(0x39d)](){const _0x160cbf=_0x12e69f;return this['_roomMembers$'][_0x160cbf(0x36e)]();}constructor(_0x3fd464,_0x21c750,_0x1ee699,_0x4366df,_0x425d4c){const _0x406a54=_0x12e69f;super(),this[_0x406a54(0x204)]=_0x3fd464,this[_0x406a54(0x421)]=_0x21c750,this[_0x406a54(0x284)]=_0x1ee699,this[_0x406a54(0x46b)]=_0x4366df,this[_0x406a54(0x3ce)]=_0x425d4c,q(this,_0x406a54(0x2c5),!0x1),q(this,_0x406a54(0x40e),!0x1),q(this,_0x406a54(0x2c1),new _0x2c5746(new Map())),q(this,_0x406a54(0x35d),this[_0x406a54(0x2c1)][_0x406a54(0x22c)]()),q(this,_0x406a54(0x435),new _0x2c5746([])),q(this,_0x406a54(0x25a),this['_roomMembers$'][_0x406a54(0x3b0)](_0x4e72f8(0x12c))),q(this,_0x406a54(0x260),_0x56de04(_0x52efef=>{const _0x2bf1f1=_0x406a54;let _0x4dc36c=_0x52efef[_0x2bf1f1(0x342)];if(!_0x4dc36c||_0x4dc36c[_0x2bf1f1(0x2ad)]!==this[_0x2bf1f1(0x204)])return;let _0x3ed6ae={'kind':_0x2bf1f1(0x397),'unitId':_0x4dc36c[_0x2bf1f1(0x2ad)],'subUnitId':_0x4dc36c[_0x2bf1f1(0x223)],'selectedIds':_0x52efef[_0x2bf1f1(0x3d0)][_0x2bf1f1(0x382)](_0x633098=>typeof _0x633098==_0x2bf1f1(0x269)),'focusedId':_0x52efef['focusedId']},_0x3a8f48={'eventID':_0x46afd7[_0x2bf1f1(0x33e)],'data':{'unitID':this[_0x2bf1f1(0x204)],'memberID':this['_session'][_0x2bf1f1(0x469)](),'selection':JSON[_0x2bf1f1(0x453)](_0x3ed6ae)}};this[_0x2bf1f1(0x421)]['send'](_0x3a8f48,this['unitID']);},0x64));}[_0x12e69f(0x3cc)](){const _0x5dfa6a=_0x12e69f;super['dispose'](),this['_cursorInfo$'][_0x5dfa6a(0x2f7)](new Map()),this['_cursorInfo$'][_0x5dfa6a(0x338)](),this[_0x5dfa6a(0x435)][_0x5dfa6a(0x2f7)]([]),this['_roomMembers$']['complete']();}[_0x12e69f(0x36b)](){const _0x25d6cb=_0x12e69f;this['_init']||(this[_0x25d6cb(0x40e)]=!0x0,this[_0x25d6cb(0x421)][_0x25d6cb(0x332)][_0x25d6cb(0x3b0)](_0x58f4bb(this[_0x25d6cb(0x200)]))['subscribe'](_0x3cbfb1=>{const _0x4fa9af=_0x25d6cb;_0x3cbfb1===_0x37ed25[_0x4fa9af(0x31c)]?this[_0x4fa9af(0x2f8)]():this[_0x4fa9af(0x247)]();}),this[_0x25d6cb(0x421)]['event$'][_0x25d6cb(0x3b0)](_0x58f4bb(this['dispose$']))[_0x25d6cb(0x23c)](_0x3f4a72=>{const _0xb07c0e=_0x25d6cb;let _0x123f0e=_0x3f4a72['eventID'];_0x123f0e===_0x46afd7[_0xb07c0e(0x33e)]&&this['_onCursorUpdate'](_0x3f4a72),_0x123f0e===_0x46afd7[_0xb07c0e(0x275)]&&this['_onCursorDelete'](_0x3f4a72);}),this[_0x25d6cb(0x3ce)][_0x25d6cb(0x2f4)][_0x25d6cb(0x3b0)](_0x58f4bb(this['dispose$']))[_0x25d6cb(0x23c)](_0x535ff6=>{const _0x56981e=_0x25d6cb;this[_0x56981e(0x2c5)]&&this[_0x56981e(0x260)](_0x535ff6);}));}[_0x12e69f(0x2a3)](_0x5eb0bf){const _0x3296b1=_0x12e69f;var _0x4f5bdd,_0x3e881a,_0x328b95,_0x29c5c5;let {memberID:_0x3d80e5,selection:_0x4c71e2}=_0x5eb0bf[_0x3296b1(0x2d8)];if(_0x3d80e5===((_0x4f5bdd=(_0x3e881a=this[_0x3296b1(0x421)])[_0x3296b1(0x469)])==null?void 0x0:_0x4f5bdd[_0x3296b1(0x3e6)](_0x3e881a)))return;let _0x88e5ac=Pn(_0x4c71e2);if(!_0x88e5ac||_0x88e5ac[_0x3296b1(0x2ad)]!==this[_0x3296b1(0x204)])return;let _0x48d353=(_0x328b95=(_0x29c5c5=this[_0x3296b1(0x46b)][_0x3296b1(0x415)](this['unitID'],_0x3d80e5))==null?void 0x0:_0x29c5c5[_0x3296b1(0x227)])==null?'Unknown\x20user':_0x328b95,_0x35006f={'color':this['_colorAssignService'][_0x3296b1(0x283)](_0x3d80e5),'name':_0x48d353,'unitId':_0x88e5ac[_0x3296b1(0x2ad)],'subUnitId':_0x88e5ac['subUnitId'],'selectedIds':_0x88e5ac[_0x3296b1(0x3d0)],'focusedId':_0x88e5ac[_0x3296b1(0x351)],'selection':_0x4c71e2},_0x42cd16=new Map(this[_0x3296b1(0x460)]);_0x42cd16[_0x3296b1(0x32b)](_0x3d80e5,_0x35006f),this[_0x3296b1(0x2c1)][_0x3296b1(0x2f7)](_0x42cd16);}[_0x12e69f(0x2de)](_0x299b62){const _0x5a7749=_0x12e69f;let {memberID:_0x105f03}=_0x299b62[_0x5a7749(0x2d8)],_0x262384=new Map(this[_0x5a7749(0x460)]);_0x262384['delete'](_0x105f03),this['_cursorInfo$'][_0x5a7749(0x2f7)](_0x262384);}[_0x12e69f(0x2f8)](){const _0x27e91a=_0x12e69f;this[_0x27e91a(0x2c5)]=!0x0,this[_0x27e91a(0x260)](this[_0x27e91a(0x3ce)][_0x27e91a(0x3e2)]());}['_toggleOffline'](){const _0x43cd77=_0x12e69f;this[_0x43cd77(0x2c5)]=!0x1;}};Fn=Y([J(0x2,_0x54edce(Z)),J(0x3,_0x54edce(_0x2d22bc)),J(0x4,_0x54edce(_0x44faab))],Fn);let Q=class extends _0x3b482a{constructor(_0x1aa87b,_0x582663,_0x14ba8e){const _0x343108=_0x12e69f;super(),this['_univerInstanceService']=_0x1aa87b,this[_0x343108(0x39c)]=_0x582663,this['_collabSessionService']=_0x14ba8e,q(this,'_entities',new Map()),q(this,_0x343108(0x2c3),new _0x231ec5()),this['_init']();}['dispose'](){const _0x3b230e=_0x12e69f;super[_0x3b230e(0x3cc)](),this[_0x3b230e(0x2c3)][_0x3b230e(0x338)](),this[_0x3b230e(0x297)][_0x3b230e(0x2cb)](_0x7b8d5b=>_0x7b8d5b[_0x3b230e(0x3cc)]());}['getCollabCursors$'](_0x537cae){const _0x32cd09=_0x12e69f;return this[_0x32cd09(0x297)][_0x32cd09(0x2b5)](_0x537cae)?this['_entities']['get'](_0x537cae)[_0x32cd09(0x35d)]:this[_0x32cd09(0x2c3)][_0x32cd09(0x3b0)](_0x20934b(_0x47dca5=>_0x47dca5[_0x32cd09(0x204)]===_0x537cae),_0x5553f3(_0x4842a1=>_0x4842a1[_0x32cd09(0x35d)]));}[_0x12e69f(0x40e)](){const _0x58c875=_0x12e69f;this[_0x58c875(0x1f8)][_0x58c875(0x452)](_0x4cc843[_0x58c875(0x314)])[_0x58c875(0x3b0)](_0x58f4bb(this['dispose$']))['subscribe'](async _0xabe553=>{const _0x481c60=_0x58c875;let _0xe6b15=_0xabe553[_0x481c60(0x2d5)][_0x481c60(0x2e7)](),_0x501c53=await this[_0x481c60(0x2e9)](_0xe6b15);this[_0x481c60(0x2c3)][_0x481c60(0x2f7)](_0x501c53),this[_0x481c60(0x297)][_0x481c60(0x32b)](_0xe6b15,_0x501c53);}),this[_0x58c875(0x1f8)][_0x58c875(0x452)](_0x4cc843['UNIVER_DOC'])['pipe'](_0x58f4bb(this[_0x58c875(0x200)]))['pipe'](_0x20934b(_0x578411=>!_0x578411[_0x58c875(0x2d5)][_0x58c875(0x2e7)]()['startsWith']('__')))[_0x58c875(0x23c)](async _0xdb2d5c=>{const _0x29192f=_0x58c875;let {unit:_0x553fd1}=_0xdb2d5c,_0x4a9b80=_0x553fd1[_0x29192f(0x2e7)](),_0x52dcac=await this[_0x29192f(0x281)](_0x4a9b80);this[_0x29192f(0x2c3)][_0x29192f(0x2f7)](_0x52dcac),this[_0x29192f(0x297)][_0x29192f(0x32b)](_0x4a9b80,_0x52dcac);}),this[_0x58c875(0x1f8)][_0x58c875(0x452)](_0x4cc843[_0x58c875(0x234)])[_0x58c875(0x3b0)](_0x58f4bb(this[_0x58c875(0x200)]))[_0x58c875(0x23c)](async _0x4319d6=>{const _0xe3bdd5=_0x58c875;let _0x59a6f3=_0x4319d6[_0xe3bdd5(0x2d5)][_0xe3bdd5(0x2e7)](),_0x3295b3=await this[_0xe3bdd5(0x40a)](_0x59a6f3);this[_0xe3bdd5(0x2c3)][_0xe3bdd5(0x2f7)](_0x3295b3),this[_0xe3bdd5(0x297)][_0xe3bdd5(0x32b)](_0x59a6f3,_0x3295b3);}),this[_0x58c875(0x1f8)][_0x58c875(0x452)](_0x4cc843['UNIVER_BOARD'])[_0x58c875(0x3b0)](_0x58f4bb(this['dispose$']))['subscribe'](async _0x2fbbac=>{const _0x46e6a1=_0x58c875;let _0x2738c3=_0x2fbbac[_0x46e6a1(0x2d5)][_0x46e6a1(0x2e7)](),_0x292bdd=await this[_0x46e6a1(0x2f6)](_0x2738c3);this[_0x46e6a1(0x2c3)][_0x46e6a1(0x2f7)](_0x292bdd),this[_0x46e6a1(0x297)][_0x46e6a1(0x32b)](_0x2738c3,_0x292bdd);}),_0x3dfb9c(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4cc843[_0x58c875(0x409)]),this[_0x58c875(0x1f8)][_0x58c875(0x2d1)](_0x4cc843[_0x58c875(0x314)]),this['_univerInstanceService'][_0x58c875(0x2d1)](_0x4cc843[_0x58c875(0x234)]),this[_0x58c875(0x1f8)][_0x58c875(0x2d1)](_0x4cc843[_0x58c875(0x41f)]))['pipe'](_0x58f4bb(this[_0x58c875(0x200)]))[_0x58c875(0x23c)](_0x31bd05=>{const _0x208ced=_0x58c875;let _0x2a0295=_0x31bd05[_0x208ced(0x2e7)](),_0x25b2ba=this['_entities'][_0x208ced(0x3f2)](_0x2a0295);_0x25b2ba&&(_0x25b2ba[_0x208ced(0x3cc)](),this[_0x208ced(0x297)][_0x208ced(0x28a)](_0x2a0295));});}async[_0x12e69f(0x2e9)](_0xb6ac4){const _0x3a3975=_0x12e69f;let _0x21f243=await this[_0x3a3975(0x3f1)][_0x3a3975(0x22e)](_0xb6ac4),_0x3ec208=this[_0x3a3975(0x39c)][_0x3a3975(0x30f)](Nn,_0xb6ac4,_0x21f243);return _0x3ec208[_0x3a3975(0x36b)](),_0x3ec208;}async['_startDocCollabCursor'](_0x37afe1){const _0x254df6=_0x12e69f;let _0x348424=await this[_0x254df6(0x3f1)][_0x254df6(0x22e)](_0x37afe1),_0x52e200=this[_0x254df6(0x39c)]['createInstance'](jn,_0x37afe1,_0x348424);return _0x52e200['init'](),_0x52e200;}async[_0x12e69f(0x40a)](_0x4567cf){const _0xa4cadf=_0x12e69f;let _0x436873=await this['_collabSessionService'][_0xa4cadf(0x22e)](_0x4567cf),_0x3d4f3b=this['_injector']['createInstance'](Fn,_0x4567cf,_0x436873);return _0x3d4f3b[_0xa4cadf(0x36b)](),_0x3d4f3b;}async[_0x12e69f(0x2f6)](_0x3299c0){const _0x381d38=_0x12e69f;let _0x5aa8d5=await this[_0x381d38(0x3f1)]['requireSession'](_0x3299c0),_0x3f07df=this['_injector'][_0x381d38(0x30f)](Dn,_0x3299c0,_0x5aa8d5);return _0x3f07df['init'](),_0x3f07df;}};Q=Y([J(0x0,_0x1ff84b),J(0x1,_0x54edce(_0x485f8c)),J(0x2,_0x54edce(_0x1d6a95))],Q);let In=class extends _0x3b482a{constructor(_0x154947,_0x5027ea,_0x4ab149){const _0x24a3ea=_0x12e69f;super(),this['_context']=_0x154947,this[_0x24a3ea(0x20f)]=_0x5027ea,this['_themeService']=_0x4ab149,q(this,_0x24a3ea(0x2bb),new Set()),q(this,_0x24a3ea(0x42e),!0x1),q(this,_0x24a3ea(0x3db),!0x1),q(this,_0x24a3ea(0x399),new Map()),this[_0x24a3ea(0x40e)]();}[_0x12e69f(0x3cc)](){const _0x593074=_0x12e69f;this['_removeCollabCursors'](),super[_0x593074(0x3cc)]();}[_0x12e69f(0x40e)](){const _0x2d57b0=_0x12e69f;let _0x3675d4=this[_0x2d57b0(0x20f)][_0x2d57b0(0x1fd)](this['_context'][_0x2d57b0(0x2ad)]);this[_0x2d57b0(0x432)](_0x242400(_0x5dac58([_0x3675d4,this['_context'][_0x2d57b0(0x2d5)]['theme$'],this[_0x2d57b0(0x235)][_0x2d57b0(0x24f)]])['pipe'](_0x58f4bb(this[_0x2d57b0(0x200)]))[_0x2d57b0(0x23c)](([_0x20edda])=>{const _0x5033a7=_0x2d57b0;let _0x9ee5f7=this[_0x5033a7(0x32c)][_0x5033a7(0x2d5)][_0x5033a7(0x425)](),_0x2c42a8=new Map();_0x20edda[_0x5033a7(0x2cb)]((_0x28c7c0,_0x145101)=>{const _0x55f637=_0x5033a7;_0x28c7c0[_0x55f637(0x223)]===_0x9ee5f7&&_0x2c42a8['set'](_0x145101,{..._0x28c7c0,'color':this[_0x55f637(0x235)][_0x55f637(0x224)](_0x28c7c0[_0x55f637(0x1f4)])});}),this['_latestCursors']=_0x2c42a8,this[_0x5033a7(0x29b)]();})));let _0x12b91d=this[_0x2d57b0(0x32c)][_0x2d57b0(0x359)];this[_0x2d57b0(0x432)](_0x242400(_0x12b91d[_0x2d57b0(0x21d)][_0x2d57b0(0x3b0)](_0x58f4bb(this[_0x2d57b0(0x200)]))[_0x2d57b0(0x23c)](()=>{const _0x106747=_0x2d57b0;this[_0x106747(0x3db)]||this['_scheduleRender']();})));}[_0x12e69f(0x29b)](){const _0x5937eb=_0x12e69f;this[_0x5937eb(0x42e)]||(this[_0x5937eb(0x42e)]=!0x0,Promise[_0x5937eb(0x206)]()['then'](()=>{const _0x4b5f14=_0x5937eb;this['_renderScheduled']=!0x1,this[_0x4b5f14(0x1ec)]();}));}[_0x12e69f(0x1ec)](){const _0x5c2ddc=_0x12e69f;this[_0x5c2ddc(0x3a5)]();let _0x24cacc=this[_0x5c2ddc(0x32c)][_0x5c2ddc(0x2d5)][_0x5c2ddc(0x425)](),_0x11c28b=[];if(this[_0x5c2ddc(0x399)]['forEach']((_0x4f6e5b,_0x561edc)=>{const _0x3b012a=_0x5c2ddc;_0x4f6e5b[_0x3b012a(0x223)]===_0x24cacc&&_0x4f6e5b[_0x3b012a(0x3d0)][_0x3b012a(0x2cb)](_0x192e78=>{const _0x12cb8e=_0x3b012a;let _0x3c5bc4=_0x11cb05(_0x4f6e5b[_0x12cb8e(0x2ad)],_0x192e78),_0x1e80a4=this[_0x12cb8e(0x2a0)](_0x3c5bc4);if(!_0x1e80a4)return;let _0x513799=this['_getObjectBounds'](_0x1e80a4);_0x11c28b['push'](new wn('board-collab-cursor-'+_0x561edc+'-'+_0x192e78,{..._0x4f6e5b,'left':_0x513799['left'],'top':_0x513799['top'],'width':_0x513799[_0x12cb8e(0x1fa)],'height':_0x513799[_0x12cb8e(0x387)],'angle':_0x1e80a4[_0x12cb8e(0x390)],'evented':!0x1,'zIndex':Cn}));});}),_0x11c28b[_0x5c2ddc(0x3c4)]===0x0){this[_0x5c2ddc(0x32c)][_0x5c2ddc(0x359)]['makeDirty'](!0x0);return;}this['_isApplyingOverlays']=!0x0,this[_0x5c2ddc(0x32c)][_0x5c2ddc(0x359)][_0x5c2ddc(0x3dc)](_0x11c28b,Cn),this[_0x5c2ddc(0x3db)]=!0x1,this['_cursors']=new Set(_0x11c28b),this['_context'][_0x5c2ddc(0x359)][_0x5c2ddc(0x329)](!0x0);}[_0x12e69f(0x3a5)](){const _0x4ac205=_0x12e69f;let _0x47cb1a=Array[_0x4ac205(0x212)](this[_0x4ac205(0x2bb)]);if(_0x47cb1a[_0x4ac205(0x3c4)]===0x0)return;let _0x25b1bf=this['_context'][_0x4ac205(0x359)];_0x4ac205(0x463)in _0x25b1bf&&typeof _0x25b1bf[_0x4ac205(0x463)]=='function'?_0x25b1bf['removeObjects'](_0x47cb1a):_0x47cb1a[_0x4ac205(0x2cb)](_0x459391=>{const _0x5e9c06=_0x4ac205;_0x5e9c06(0x41c)in _0x25b1bf&&typeof _0x25b1bf[_0x5e9c06(0x41c)]==_0x5e9c06(0x257)?_0x25b1bf[_0x5e9c06(0x41c)](_0x459391):_0x459391['dispose']();}),this['_cursors'][_0x4ac205(0x3b4)](),_0x25b1bf[_0x4ac205(0x329)](!0x0);}[_0x12e69f(0x2a0)](_0x49cea6){const _0x22ce2d=_0x12e69f;var _0xcc1647,_0x59acbb,_0x2902f5;let _0x521c60=this['_context'][_0x22ce2d(0x359)];return(_0xcc1647=(_0x59acbb=(_0x2902f5=_0x521c60[_0x22ce2d(0x3d2)])==null?void 0x0:_0x2902f5[_0x22ce2d(0x3e6)](_0x521c60,_0x49cea6))==null?_0x521c60[_0x22ce2d(0x29a)](_0x49cea6):_0x59acbb)==null?null:_0xcc1647;}[_0x12e69f(0x3d8)](_0x3b27f5){const _0x1b045e=_0x12e69f;var _0x1f5bec,_0x2ba8a1;let _0x496af3=_0x3b27f5;return(_0x1f5bec=(_0x2ba8a1=_0x496af3[_0x1b045e(0x3de)])==null?void 0x0:_0x2ba8a1[_0x1b045e(0x3e6)](_0x496af3))==null?{'left':_0x3b27f5[_0x1b045e(0x29c)],'top':_0x3b27f5[_0x1b045e(0x3b1)],'width':_0x3b27f5[_0x1b045e(0x1fa)],'height':_0x3b27f5['height']}:_0x1f5bec;}};In=Y([J(0x1,_0x54edce(Q)),J(0x2,_0x54edce(_0x247f8e))],In);function _0x2051(_0x4abd20,_0x434d97){_0x4abd20=_0x4abd20-0x1ec;const _0x4f58c8=_0x4f58();let _0x20518a=_0x4f58c8[_0x4abd20];return _0x20518a;}const Ln=_0x12e69f(0x3ff);var Rn=class{constructor(_0x42307b,_0xa1a87b,_0x4452f5,_0x261d60){const _0x54497b=_0x12e69f;this[_0x54497b(0x438)]=_0x42307b,this[_0x54497b(0x25d)]=_0xa1a87b,this[_0x54497b(0x350)]=_0x4452f5,this[_0x54497b(0x3a2)]=_0x261d60,q(this,_0x54497b(0x340),[]),q(this,_0x54497b(0x239),null),q(this,_0x54497b(0x346),null),q(this,_0x54497b(0x362),null),q(this,_0x54497b(0x1f3),null),q(this,_0x54497b(0x3c1),null),this[_0x54497b(0x1ec)]();}set[_0x12e69f(0x46e)](_0x4c7387){const _0x44c81b=_0x12e69f;_0x4c7387?(this[_0x44c81b(0x362)]&&this[_0x44c81b(0x362)][_0x44c81b(0x349)](),this[_0x44c81b(0x346)]&&this[_0x44c81b(0x346)][_0x44c81b(0x272)]()):(this[_0x44c81b(0x362)]&&this[_0x44c81b(0x362)]['show'](),this[_0x44c81b(0x346)]&&this['_textBubble']['hide']());}[_0x12e69f(0x3cc)](){const _0x9fbf20=_0x12e69f;for(let _0x2a71f4 of this[_0x9fbf20(0x340)])_0x2a71f4[_0x9fbf20(0x3cc)]();this[_0x9fbf20(0x346)]&&this[_0x9fbf20(0x346)][_0x9fbf20(0x3cc)](),this[_0x9fbf20(0x362)]&&this[_0x9fbf20(0x362)]['dispose'](),this[_0x9fbf20(0x239)]&&this[_0x9fbf20(0x239)][_0x9fbf20(0x3cc)](),this[_0x9fbf20(0x3c1)]&&this[_0x9fbf20(0x3c1)]();}[_0x12e69f(0x1ec)](){const _0xc3238f=_0x12e69f;let {_docSkeleton:_0x1e8460,_document:_0x5824d5}=this,{color:_0x3fbdef,name:_0x45e6b9,ranges:_0x2a4785}=this[_0xc3238f(0x438)],_0x3ba8da=_0x5824d5[_0xc3238f(0x2f1)](),{docsLeft:_0x5cc35e,docsTop:_0x5be4ee}=_0x3ba8da,_0x490b45=new _0x1af3ac(_0x3ba8da,_0x1e8460);for(let {startOffset:_0x19564e,endOffset:_0x168ac6,rangeType:_0x2e88e7,segmentId:_0x1846b4,segmentPage:_0x3746e9,collapsed:_0x54aa80,isActive:_0x1f7c53}of _0x2a4785){let _0x3ac690=_0x1e8460[_0xc3238f(0x455)](_0x19564e,!0x0,_0x1846b4,_0x3746e9),_0x58845f=_0x1e8460[_0xc3238f(0x455)](_0x168ac6,!0x0,_0x1846b4,_0x3746e9);if(_0x58845f==null&&(_0x58845f=_0x1e8460[_0xc3238f(0x455)](_0x168ac6-0x1,!0x1,_0x1846b4,_0x3746e9)),_0x1f7c53){let {contentBoxPointGroup:_0x571b4c}=_0x490b45[_0xc3238f(0x42b)](_0x58845f,_0x58845f);if(_0x571b4c[_0xc3238f(0x3c4)]===0x0)continue;this[_0xc3238f(0x221)](_0x3fbdef,_0x571b4c,_0x5cc35e,_0x5be4ee,_0x45e6b9),this[_0xc3238f(0x3c1)]=this[_0xc3238f(0x307)]();}if(_0x3ac690&&_0x58845f){if(_0x2e88e7===_0x4faa88['RECT']){var _0xa79ccf;let {pointGroup:_0x536bb4}=(_0xa79ccf=new _0x500cff(_0x3ba8da,_0x1e8460)[_0xc3238f(0x42b)](_0x3ac690,_0x58845f))==null?{}:_0xa79ccf;if(_0x536bb4==null||_0x536bb4[_0xc3238f(0x3c4)]===0x0)continue;this[_0xc3238f(0x39a)](_0x3fbdef,_0x536bb4,_0x5cc35e,_0x5be4ee);}else{if(!_0x54aa80){let {borderBoxPointGroup:_0x3089e5}=_0x490b45[_0xc3238f(0x42b)](_0x3ac690,_0x58845f);if(_0x3089e5[_0xc3238f(0x3c4)]===0x0)continue;this[_0xc3238f(0x294)](_0x3fbdef,_0x3089e5,_0x5cc35e,_0x5be4ee);}}}}}[_0x12e69f(0x221)](_0x2946f3,_0x23ac16,_0x8925f6,_0x3bf8f6,_0x138bf8){const _0x167d12=_0x12e69f;let {left:_0x4e0a7b,top:_0x253fc9,height:_0x56d0c8}=this[_0x167d12(0x2b1)](_0x23ac16),_0x55546e=1.5/this['_getScale'](),_0x37b9b=new _0x4f817e(Ln+_0x19564d(0x6),{'left':_0x4e0a7b+_0x8925f6-_0x55546e,'top':_0x253fc9+_0x3bf8f6,'height':_0x56d0c8,'width':1.5,'fill':_0x2946f3||_0x5dfff7(_0x273955[_0x167d12(0x368)],0x0),'strokeWidth':_0x55546e,'stroke':_0x167d12(0x40d),'evented':!0x0});this['_anchor']=_0x37b9b,this[_0x167d12(0x25d)]['addObject'](_0x37b9b,_0x26b07b);let _0x454dc7=new _0x4f817e(Ln+_0x19564d(0x6),{'left':_0x4e0a7b+_0x8925f6-_0x55546e,'top':_0x253fc9+_0x3bf8f6-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x2946f3||_0x5dfff7(_0x273955['black'],0x0),'strokeWidth':0x0,'stroke':_0x2946f3||_0x5dfff7(_0x273955[_0x167d12(0x368)],0x0),'evented':!0x1});this['_anchorDot']=_0x454dc7,this[_0x167d12(0x25d)][_0x167d12(0x328)](_0x454dc7,_0x26b07b);let _0x426d2b=new Sn(Ln+_0x19564d(0x6),{'left':_0x4e0a7b+_0x8925f6-_0x55546e,'top':_0x253fc9+_0x3bf8f6-0x14,'text':_0x138bf8,'color':_0x2946f3});this[_0x167d12(0x346)]=_0x426d2b,this[_0x167d12(0x25d)][_0x167d12(0x328)](_0x426d2b,_0x26b07b),this['_hover']=!0x1;}[_0x12e69f(0x307)](){const _0x1dcfd9=_0x12e69f;let _0x50c8dc=this[_0x1dcfd9(0x239)][_0x1dcfd9(0x3d3)][_0x1dcfd9(0x354)](()=>{const _0x255081=_0x1dcfd9;this[_0x255081(0x46e)]=!0x0;}),_0x17a14c=this[_0x1dcfd9(0x239)][_0x1dcfd9(0x31f)][_0x1dcfd9(0x354)](()=>{const _0x5cea91=_0x1dcfd9;this[_0x5cea91(0x1f3)]&&clearTimeout(this['_hideTimer']),this[_0x5cea91(0x1f3)]=setTimeout(()=>{const _0x1c222d=_0x5cea91;this[_0x1c222d(0x46e)]=!0x1;},0x7d0);});return()=>{const _0x7bf148=_0x1dcfd9;_0x50c8dc[_0x7bf148(0x3c5)](),_0x17a14c[_0x7bf148(0x3c5)]();};}['_drawTextRange'](_0x4289a9,_0x5b619d,_0x449efc,_0x1f787a){const _0x167922=_0x12e69f;let _0x4ab931=0.2,_0x4e1e82=new _0x40b9da(_0x4289a9)[_0x167922(0x41d)](_0x4ab931)[_0x167922(0x2fd)](),_0x5bad6a=new _0x46dad0(_0x167922(0x3f4)+_0x19564d(0x6),{'pointsGroup':_0x5b619d,'fill':_0x4e1e82||_0x5dfff7(_0x273955['black'],_0x4ab931),'left':_0x449efc,'top':_0x1f787a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x167922(0x340)][_0x167922(0x22a)](_0x5bad6a),this[_0x167922(0x25d)][_0x167922(0x328)](_0x5bad6a,_0x26b07b);}[_0x12e69f(0x39a)](_0x2b2d6d,_0x22bf1d,_0x50a78e,_0x5384f2){const _0x9c6063=_0x12e69f;let _0x3adfef=0.2,_0x210be3=new _0x40b9da(_0x2b2d6d)[_0x9c6063(0x41d)](_0x3adfef)[_0x9c6063(0x2fd)](),_0x54b04a=new _0x46dad0(_0x9c6063(0x2f0)+_0x19564d(0x6),{'pointsGroup':_0x22bf1d,'fill':_0x210be3||_0x5dfff7(_0x273955[_0x9c6063(0x368)],_0x3adfef),'left':_0x50a78e,'top':_0x5384f2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9c6063(0x340)][_0x9c6063(0x22a)](_0x54b04a),this['_scene'][_0x9c6063(0x328)](_0x54b04a,_0x26b07b);}['_getAnchorBounding'](_0x30188b){let _0xcfb70f=_0x30188b[0x0],_0x591e5b=_0xcfb70f[0x0],_0x1dc076=_0xcfb70f[0x2],{x:_0x35d8ef,y:_0x56b2b5}=_0x591e5b,{x:_0x355ad7,y:_0x1e672c}=_0x1dc076;return{'left':_0x35d8ef,'top':_0x56b2b5,'width':_0x355ad7-_0x35d8ef,'height':_0x1e672c-_0x56b2b5};}[_0x12e69f(0x37e)](){const _0x53b6c3=_0x12e69f;let {scaleX:_0x35c081,scaleY:_0x509730}=this[_0x53b6c3(0x25d)]['getAncestorScale']();return Math['max'](_0x35c081,_0x509730);}};let zn=class extends _0x3b482a{constructor(_0x421d63,_0x5c2e92,_0x1ca3b0,_0x24944a,_0x47b71e){const _0x266778=_0x12e69f;super(),this[_0x266778(0x32c)]=_0x421d63,this['_docSkeletonManagerService']=_0x5c2e92,this[_0x266778(0x20f)]=_0x1ca3b0,this['_commandService']=_0x24944a,this[_0x266778(0x235)]=_0x47b71e,q(this,_0x266778(0x3dd),[]),q(this,'_cursors',[]),this[_0x266778(0x40e)]();}[_0x12e69f(0x40e)](){const _0x3da884=_0x12e69f;let _0x3be3b2=this[_0x3da884(0x32c)][_0x3da884(0x2ad)],_0x4d46ef=this[_0x3da884(0x44c)];this[_0x3da884(0x432)](_0x5dac58([this[_0x3da884(0x20f)]['getCollabCursors$'](_0x3be3b2),this[_0x3da884(0x235)]['currentTheme$']])[_0x3da884(0x3b0)](_0x52dc5c(([_0x4b82b7,_0x383e1c])=>({'skeleton':_0x4d46ef['getSkeleton'](),'cursors':[..._0x4b82b7[_0x3da884(0x40b)]()]['flatMap'](_0x11c623=>({..._0x11c623,'color':this[_0x3da884(0x235)][_0x3da884(0x224)](_0x11c623[_0x3da884(0x1f4)])}))})))[_0x3da884(0x23c)](_0x2596a4=>{const _0x23ec2e=_0x3da884;if(this[_0x23ec2e(0x3a5)](),_0x2596a4){let {skeleton:_0x3f4f46,cursors:_0x97ba2}=_0x2596a4;this[_0x23ec2e(0x2e6)](_0x3f4f46,_0x97ba2);}})),this[_0x3da884(0x401)](),this[_0x3da884(0x21f)]();}[_0x12e69f(0x2e6)](_0x38fac3,_0x1fb3fc){const _0x198a35=_0x12e69f;let {scene:_0x46aff4,mainComponent:_0x21b937}=this[_0x198a35(0x32c)],_0x1d0da2=_0x1fb3fc[_0x198a35(0x208)](_0x3e5d0e=>new Rn(_0x3e5d0e,_0x46aff4,_0x38fac3,_0x21b937));this['_cursorShapes']=_0x1d0da2,this[_0x198a35(0x2bb)]=_0x1fb3fc;}['_refreshCollabCursors'](){const _0x1facd0=_0x12e69f;this[_0x1facd0(0x3a5)]();let {scene:_0x4ce8f8,mainComponent:_0x285dba}=this['_context'],_0x3ab224=this[_0x1facd0(0x44c)][_0x1facd0(0x225)](),_0x21f8b9=this['_cursors'][_0x1facd0(0x208)](_0x524620=>new Rn(_0x524620,_0x4ce8f8,_0x3ab224,_0x285dba));this['_cursorShapes']=_0x21f8b9;}[_0x12e69f(0x3a5)](){const _0x40095c=_0x12e69f;this['_cursorShapes'][_0x40095c(0x2cb)](_0xd376c4=>_0xd376c4['dispose']()),this[_0x40095c(0x3dd)]=[];}['_initCommandExecutedListener'](){const _0x5f464c=_0x12e69f;let _0x47ebfa=[_0x3828d4['id']];this[_0x5f464c(0x432)](this[_0x5f464c(0x422)]['onCommandExecuted'](_0x54061c=>{const _0x257b9d=_0x5f464c;_0x47ebfa['includes'](_0x54061c['id'])&&_0x54061c['params']['unitId']===this[_0x257b9d(0x32c)]['unitId']&&this[_0x257b9d(0x246)]();}));}[_0x12e69f(0x401)](){const _0x4d80b0=_0x12e69f;this[_0x4d80b0(0x432)](_0x51bac9(this['_context'][_0x4d80b0(0x467)][_0x4d80b0(0x334)])['pipe'](_0x44f6d5(_0x97b727=>_0x97b727[_0x4d80b0(0x376)]===_0x6ac21c[_0x4d80b0(0x216)]),_0x130eb1(0x10))[_0x4d80b0(0x23c)](()=>{const _0x26e352=_0x4d80b0;this[_0x26e352(0x246)]();}));}};zn=Y([J(0x1,_0x54edce(_0x45419b)),J(0x2,_0x54edce(Q)),J(0x3,_0x41da16),J(0x4,_0x54edce(_0x247f8e))],zn);var Bn=class extends _0x58652d{constructor(_0xe4bec2,_0x57a44b){const _0x395907=_0x12e69f;if(super(_0xe4bec2,_0x57a44b),q(this,'_color',void 0x0),q(this,_0x395907(0x2bc),!0x1),q(this,'_range',void 0x0),q(this,_0x395907(0x3bb),''),q(this,_0x395907(0x3a4),'top'),q(this,_0x395907(0x3eb),void 0x0),q(this,_0x395907(0x240),void 0x0),q(this,_0x395907(0x2a1),void 0x0),q(this,'_highlightSecond',0x4),q(this,_0x395907(0x436),void 0x0),q(this,_0x395907(0x23b),void 0x0),q(this,'_isBlinkVisible',!0x0),q(this,_0x395907(0x344),0x0),q(this,'_labelHorizontalPosition','right'),_0x57a44b){var _0x3b6b3a;if(this[_0x395907(0x26d)](_0x57a44b),_0x57a44b[_0x395907(0x341)]&&((_0x3b6b3a=_0x57a44b[_0x395907(0x255)])==null?this[_0x395907(0x315)]:_0x3b6b3a)){var _0x3dfa52;this[_0x395907(0x2fa)]((_0x3dfa52=_0x57a44b['highlightSecond'])==null?this[_0x395907(0x315)]:_0x3dfa52);}}this[_0x395907(0x3d3)][_0x395907(0x354)](()=>this[_0x395907(0x26d)]({'hovered':!0x0})),this[_0x395907(0x31f)][_0x395907(0x354)](()=>this[_0x395907(0x26d)]({'hovered':!0x1}));}['setOffsetY'](_0x45087a){const _0xaceece=_0x12e69f;this[_0xaceece(0x344)]=_0x45087a;}[_0x12e69f(0x26d)](_0x5d001a){const _0x59706b=_0x12e69f;var _0x4e2e86,_0x2d83aa,_0x3dde38,_0x3e8772,_0x358adc,_0x1119f3,_0x1ebc08,_0x399c86;this[_0x59706b(0x457)]=(_0x4e2e86=_0x5d001a[_0x59706b(0x1f4)])==null?this[_0x59706b(0x457)]:_0x4e2e86,this['_hovered']=(_0x2d83aa=_0x5d001a[_0x59706b(0x3b8)])==null?this['_hovered']:_0x2d83aa,this[_0x59706b(0x209)]=(_0x3dde38=_0x5d001a[_0x59706b(0x2a2)])==null?this[_0x59706b(0x209)]:_0x3dde38,this['_name']=(_0x3e8772=_0x5d001a['name'])==null?this[_0x59706b(0x3bb)]:_0x3e8772,this[_0x59706b(0x3a4)]=(_0x358adc=_0x5d001a[_0x59706b(0x39b)])==null?this[_0x59706b(0x3a4)]:_0x358adc,this['_backgroundColor']=(_0x1119f3=_0x5d001a[_0x59706b(0x3ef)])==null?this['_backgroundColor']:_0x1119f3,this[_0x59706b(0x240)]=(_0x1ebc08=_0x5d001a['showText'])==null?this[_0x59706b(0x240)]:_0x1ebc08,this[_0x59706b(0x262)]=(_0x399c86=_0x5d001a[_0x59706b(0x411)])==null?this[_0x59706b(0x262)]:_0x399c86,_0x5d001a[_0x59706b(0x255)]!==void 0x0&&(this[_0x59706b(0x315)]=_0x5d001a[_0x59706b(0x255)]),_0x5d001a[_0x59706b(0x341)]!==void 0x0&&(this[_0x59706b(0x2a1)]=_0x5d001a[_0x59706b(0x341)]),_0x5d001a['offsetY']!==void 0x0&&(this[_0x59706b(0x344)]=_0x5d001a[_0x59706b(0x30b)]),this['transformByState']({'width':_0x5d001a[_0x59706b(0x1fa)],'height':_0x5d001a['height']});}[_0x12e69f(0x21e)](_0x20840f){const _0x123a7a=_0x12e69f;let {row:_0x4344a3,column:_0x4144ab}=_0x20840f;if(_0x4344a3>=this[_0x123a7a(0x209)][_0x123a7a(0x3f7)]&&_0x4344a3<=this[_0x123a7a(0x209)]['endRow']&&_0x4144ab>=this[_0x123a7a(0x209)][_0x123a7a(0x355)]&&_0x4144ab<=this[_0x123a7a(0x209)][_0x123a7a(0x232)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x123a7a(0x26d)]({'hovered':!0x1});}[_0x12e69f(0x2fa)](_0x36e432){const _0x23125d=_0x12e69f;this['_stopBlinking'](),this[_0x23125d(0x22d)]=!0x0,this[_0x23125d(0x23b)]=window[_0x23125d(0x3ad)](()=>{const _0x55fab8=_0x23125d;this['_isBlinkVisible']=!this[_0x55fab8(0x22d)],this[_0x55fab8(0x329)](!0x0);},0x1f4),this[_0x23125d(0x436)]=window['setTimeout'](()=>{const _0x53fd4f=_0x23125d;this[_0x53fd4f(0x292)](),this[_0x53fd4f(0x22d)]=!0x0,this[_0x53fd4f(0x329)](!0x0);},_0x36e432*0x3e8);}[_0x12e69f(0x292)](){const _0x422b45=_0x12e69f;this[_0x422b45(0x23b)]&&(window[_0x422b45(0x22b)](this[_0x422b45(0x23b)]),this[_0x422b45(0x23b)]=void 0x0),this['_blinkTimer']&&(window[_0x422b45(0x466)](this[_0x422b45(0x436)]),this['_blinkTimer']=void 0x0);}['triggerDblclick'](_0x5237db){return!0x1;}['dispose'](){const _0x5edd45=_0x12e69f;this['_stopBlinking'](),super[_0x5edd45(0x3cc)]();}[_0x12e69f(0x2ce)](_0x33bd62){const _0x461627=_0x12e69f;let _0x113206=this[_0x461627(0x457)],_0x1bc552=this[_0x461627(0x3eb)];if(this[_0x461627(0x2a1)]&&!this['_isBlinkVisible']&&(_0x113206=this[_0x461627(0x37b)](this[_0x461627(0x457)]),_0x1bc552=this['_backgroundColor']?this[_0x461627(0x37b)](this['_backgroundColor']):void 0x0),_0x4f817e[_0x461627(0x24e)](_0x33bd62,{'width':this[_0x461627(0x1fa)],'height':this[_0x461627(0x387)],'strokeWidth':this[_0x461627(0x21a)]||1.5,'stroke':_0x113206,'evented':!0x1,'fill':_0x1bc552}),this[_0x461627(0x2bc)]||this[_0x461627(0x240)]){var _0x259a50;_0x33bd62['save']();let _0x20d26b=this[_0x461627(0x262)]===_0x461627(0x29c)?-bn(_0x33bd62,this[_0x461627(0x3bb)]):this[_0x461627(0x1fa)];_0x33bd62[_0x461627(0x27f)](0x1,0x0,0x0,0x1,_0x20d26b,(this['_labelPosition']===_0x461627(0x2be)?0x0:-0x14)+((_0x259a50=this[_0x461627(0x344)])==null?0x0:_0x259a50)),Sn[_0x461627(0x24e)](_0x33bd62,{'text':this[_0x461627(0x3bb)],'color':_0x113206}),_0x33bd62[_0x461627(0x210)]();}}[_0x12e69f(0x37b)](_0x56a8b6){const _0x45e6e7=_0x12e69f;return _0x56a8b6['startsWith']('#')?_0x45e6e7(0x465)+Number['parseInt'](_0x56a8b6['slice'](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x56a8b6[_0x45e6e7(0x326)](0x3,0x5),0x10)+',\x20'+Number[_0x45e6e7(0x3aa)](_0x56a8b6[_0x45e6e7(0x326)](0x5,0x7),0x10)+_0x45e6e7(0x2ee):_0x56a8b6[_0x45e6e7(0x391)](_0x45e6e7(0x3e5))?_0x56a8b6[_0x45e6e7(0x30a)](/[\d.]+\)$/g,_0x45e6e7(0x427)):_0x56a8b6['startsWith']('rgb')?_0x56a8b6['replace'](_0x45e6e7(0x29f),_0x45e6e7(0x3e5))['replace'](')',_0x45e6e7(0x2ee)):_0x56a8b6;}};let Vn=class extends _0x3b482a{constructor(_0x7ef12,_0x3372af,_0x26959e,_0xc6a853){const _0x463cd9=_0x12e69f;super(),this['_context']=_0x7ef12,this['_sheetSkeletonManagerService']=_0x3372af,this[_0x463cd9(0x20f)]=_0x26959e,this['_themeService']=_0xc6a853,q(this,_0x463cd9(0x2bb),new Set()),q(this,_0x463cd9(0x20a),null),q(this,_0x463cd9(0x358),null),this['_init']();}[_0x12e69f(0x40e)](){const _0x176584=_0x12e69f;this[_0x176584(0x36f)][_0x176584(0x451)]['pipe'](_0x328b4e(this['dispose$']),_0x68db4a(_0x5234b7=>{const _0x37ba2a=_0x176584;if(_0x5234b7){let _0x15c805=_0x5234b7[_0x37ba2a(0x27b)];return _0x5dac58(this['_collabCursorController'][_0x37ba2a(0x1fd)](this[_0x37ba2a(0x32c)][_0x37ba2a(0x2ad)]),this[_0x37ba2a(0x235)][_0x37ba2a(0x24f)])[_0x37ba2a(0x3b0)](_0x52dc5c(([_0x3c4bba,_0xafb851])=>{let _0x1ce8e5=new Map();return _0x3c4bba['forEach']((_0x42c3af,_0x8add07)=>{const _0x3e14a3=_0x2051;if(_0x42c3af[_0x3e14a3(0x2c8)]===_0x15c805){let _0x27de11={..._0x42c3af};_0x27de11[_0x3e14a3(0x1f4)]=this[_0x3e14a3(0x235)]['getColorFromTheme'](_0x42c3af['color']),_0x1ce8e5[_0x3e14a3(0x32b)](_0x8add07,_0x27de11);}}),{'skeleton':_0x5234b7,'cursors':_0x1ce8e5};}));}return _0x204fbb({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x163576,cursors:_0x352fa7})=>{const _0x3420e5=_0x176584;this[_0x3420e5(0x3a5)](),_0x163576&&this[_0x3420e5(0x2e6)](_0x163576,_0x352fa7);}),this[_0x176584(0x432)](this[_0x176584(0x36f)][_0x176584(0x451)][_0x176584(0x3b0)](_0x328b4e(this[_0x176584(0x200)]))[_0x176584(0x23c)](_0x33fd46=>{const _0x5d6023=_0x176584;var _0x6e387d;if(_0x33fd46==null)return;(_0x6e387d=this[_0x5d6023(0x358)])==null||_0x6e387d['unsubscribe'](),this['_pointerMoveDisposable']=null;let {skeleton:_0x5e2c98}=_0x33fd46,{scene:_0x6137ce}=this[_0x5d6023(0x32c)];this['_pointerMoveDisposable']=_0x6137ce[_0x5d6023(0x207)][_0x5d6023(0x354)](_0x56de04(_0x2c4ac2=>{const _0x2c6152=_0x5d6023;var _0x17bfdf,_0x1d133e;let {offsetX:_0x23bd4f,offsetY:_0xbcd4a1}=_0x2c4ac2,{x:_0x7cad6d,y:_0x4c9ed7}=_0x6137ce['getRelativeToViewportCoord'](_0x3441b4[_0x2c6152(0x3d9)]([_0x23bd4f,_0xbcd4a1])),{scaleX:_0x1b5e6d,scaleY:_0xf14ae1}=_0x6137ce[_0x2c6152(0x27a)](),_0x192fff=_0x6137ce[_0x2c6152(0x464)](_0x3b2eff[_0x2c6152(0x3b2)]),_0x2f9d9a=_0x6137ce['getVpScrollXYInfoByPosToVp'](_0x3441b4['FromArray']([_0x7cad6d,_0x4c9ed7]),_0x192fff),_0x29ce5f=_0x5e2c98['getCellPositionByOffset'](_0x23bd4f,_0xbcd4a1,_0x1b5e6d,_0xf14ae1,_0x2f9d9a);((_0x17bfdf=this[_0x2c6152(0x20a)])==null?void 0x0:_0x17bfdf[_0x2c6152(0x2d6)])===_0x29ce5f[_0x2c6152(0x2d6)]&&((_0x1d133e=this[_0x2c6152(0x20a)])==null?void 0x0:_0x1d133e[_0x2c6152(0x3e3)])===_0x29ce5f[_0x2c6152(0x3e3)]||this[_0x2c6152(0x2bb)][_0x2c6152(0x2cb)](_0x4f91d8=>{_0x4f91d8['onMouseMove'](_0x29ce5f);});},0x64));})),this[_0x176584(0x432)](_0x242400(()=>{const _0x123965=_0x176584;var _0x6f762b;(_0x6f762b=this[_0x123965(0x358)])==null||_0x6f762b['unsubscribe'](),this[_0x123965(0x358)]=null;}));}['_updateCollabCursors'](_0x595510,_0x38b145){const _0x56b971=_0x12e69f;let _0xb882f2=this[_0x56b971(0x36f)][_0x56b971(0x37f)]();if(!_0xb882f2)return;let _0x27285e=this[_0x56b971(0x24a)]();if(!_0x27285e)return;this[_0x56b971(0x2bb)][_0x56b971(0x2cb)](_0x5d7a99=>{_0x5d7a99['makeDirty']();});let {scene:_0x415b14}=_0x27285e,_0x634401=Hn(Array[_0x56b971(0x212)](_0x38b145['values']()))['map'](_0x1f378e=>{const _0x2dbfa6=_0x56b971;let {color:_0x7a41c5,range:_0x7506a,name:_0x39284b,selection:_0x4bca91,sheetID:_0x5d798c}=_0x1f378e,{startColumn:_0x29e0ac,startRow:_0x24825d,endColumn:_0x460fd2,endRow:_0x39c952}=_0x7506a,_0x44b4e6=_0x2079da(_0x24825d,_0x29e0ac,_0x415b14,_0xb882f2),_0x5013e7=_0x2079da(_0x39c952,_0x460fd2,_0x415b14,_0xb882f2),{columnHeaderHeightAndMarginTop:_0x5d9720}=_0xb882f2,{startX:_0x27935f,startY:_0x5d9782}=_0x44b4e6,{endX:_0x16d8f9,endY:_0x42ca0e}=_0x5013e7,_0xa6ca4b=_0x16d8f9-_0x27935f,_0x12d1b0=_0x42ca0e-_0x5d9782;return new Bn(_0x39284b,{'labelPosition':_0x5d9782-_0x5d9720>=0x14?_0x2dbfa6(0x3b1):'bottom','sheetID':_0x5d798c,'range':_0x7506a,'color':_0x7a41c5,'name':_0x39284b,'selection':_0x4bca91,'left':_0x27935f,'top':_0x5d9782,'width':_0xa6ca4b,'height':_0x12d1b0,'evented':!0x1,'zIndex':0x1389});});_0x415b14[_0x56b971(0x3dc)](_0x634401,0x1),this[_0x56b971(0x2bb)]=new Set(_0x634401);}[_0x12e69f(0x3a5)](){const _0x1e1921=_0x12e69f;var _0x4cce49;(_0x4cce49=this[_0x1e1921(0x2bb)])==null||_0x4cce49[_0x1e1921(0x2cb)](_0x16308c=>_0x16308c[_0x1e1921(0x3cc)]());}['_getSheetObject'](){const _0x2f6769=_0x12e69f;return _0x4be76a(this[_0x2f6769(0x32c)][_0x2f6769(0x2d5)],this[_0x2f6769(0x32c)]);}};Vn=Y([J(0x1,_0x54edce(_0x348097)),J(0x2,_0x54edce(Q)),J(0x3,_0x54edce(_0x247f8e))],Vn);function Hn(_0x2fc586){const _0x360428=_0x12e69f;let _0x5a7012=new Map();return _0x2fc586['forEach'](_0x4a2d37=>{const _0x2bae6b=_0x2051;if(_0x5a7012['has'](_0x4a2d37['selection'])){let _0x41e5ca=_0x5a7012['get'](_0x4a2d37[_0x2bae6b(0x2a6)]);_0x41e5ca[_0x2bae6b(0x227)]+=',\x20'+_0x4a2d37[_0x2bae6b(0x227)];}else _0x5a7012[_0x2bae6b(0x32b)](_0x4a2d37[_0x2bae6b(0x2a6)],_0x4a2d37);}),Array[_0x360428(0x212)](_0x5a7012[_0x360428(0x40b)]());}let Un=class extends _0x3b482a{constructor(_0x276ab2,_0x259abe,_0x424d9e){const _0x14014b=_0x12e69f;super(),this[_0x14014b(0x32c)]=_0x276ab2,this[_0x14014b(0x20f)]=_0x259abe,this[_0x14014b(0x235)]=_0x424d9e,q(this,_0x14014b(0x2bb),new Set()),q(this,'_renderScheduled',!0x1),q(this,'_isApplyingOverlays',!0x1),q(this,_0x14014b(0x399),new Map()),this['_init']();}[_0x12e69f(0x3cc)](){const _0x12557b=_0x12e69f;this[_0x12557b(0x3a5)](),super[_0x12557b(0x3cc)]();}[_0x12e69f(0x40e)](){const _0x116fd2=_0x12e69f;let _0x3e7b5b=this['_context'][_0x116fd2(0x2d5)][_0x116fd2(0x2b3)][_0x116fd2(0x2ef)],_0xac7f67=this[_0x116fd2(0x20f)][_0x116fd2(0x1fd)](this[_0x116fd2(0x32c)][_0x116fd2(0x2ad)]);this['disposeWithMe'](_0x242400(_0x5dac58([_0xac7f67,_0x3e7b5b,this['_themeService'][_0x116fd2(0x24f)]])[_0x116fd2(0x3b0)](_0x58f4bb(this[_0x116fd2(0x200)]))[_0x116fd2(0x23c)](([_0x3d85e9,_0x509e68])=>{const _0x441a87=_0x116fd2;let _0x3a946a=new Map();_0x3d85e9[_0x441a87(0x2cb)]((_0x465f67,_0x5ee158)=>{const _0x5a487b=_0x441a87;_0x465f67[_0x5a487b(0x223)]===_0x509e68&&_0x3a946a[_0x5a487b(0x32b)](_0x5ee158,{..._0x465f67,'color':this[_0x5a487b(0x235)][_0x5a487b(0x224)](_0x465f67[_0x5a487b(0x1f4)])});}),this[_0x441a87(0x399)]=_0x3a946a,this['_scheduleRender']();})));let _0x3f0f72=this[_0x116fd2(0x32c)][_0x116fd2(0x359)];this[_0x116fd2(0x432)](_0x242400(_0x3f0f72['addObject$'][_0x116fd2(0x3b0)](_0x58f4bb(this[_0x116fd2(0x200)]))[_0x116fd2(0x23c)](()=>{const _0x120797=_0x116fd2;this[_0x120797(0x3db)]||this['_scheduleRender']();})));}[_0x12e69f(0x29b)](){const _0x4a4f3e=_0x12e69f;this[_0x4a4f3e(0x42e)]||(this['_renderScheduled']=!0x0,Promise['resolve']()[_0x4a4f3e(0x38b)](()=>{const _0x7080c1=_0x4a4f3e;this['_renderScheduled']=!0x1,this[_0x7080c1(0x1ec)]();}));}[_0x12e69f(0x1ec)](){const _0x21bc90=_0x12e69f;var _0x5e8cad;this[_0x21bc90(0x3a5)]();let _0x4d6f2a=(_0x5e8cad=this[_0x21bc90(0x32c)]['unit'][_0x21bc90(0x2b3)][_0x21bc90(0x38d)]())==null?void 0x0:_0x5e8cad['getId']();if(!_0x4d6f2a)return;let _0x4aabc7=[];if(this[_0x21bc90(0x399)]['forEach']((_0x523dda,_0xbcd634)=>{const _0x31ab98=_0x21bc90;_0x523dda[_0x31ab98(0x223)]===_0x4d6f2a&&_0x523dda['selectedIds']['forEach'](_0x4d6bd4=>{const _0x436e6f=_0x31ab98;let _0x9558fe=_0x5bff4b(_0x523dda[_0x436e6f(0x2ad)],_0x523dda[_0x436e6f(0x223)],_0x4d6bd4),_0xbd4c57=this[_0x436e6f(0x2a0)](_0x9558fe);if(!_0xbd4c57)return;let _0x4f3eee=this[_0x436e6f(0x3d8)](_0xbd4c57);_0x4aabc7[_0x436e6f(0x22a)](new wn('slide-collab-cursor-'+_0xbcd634+'-'+_0x4d6bd4,{..._0x523dda,'left':_0x4f3eee[_0x436e6f(0x29c)],'top':_0x4f3eee[_0x436e6f(0x3b1)],'width':_0x4f3eee[_0x436e6f(0x1fa)],'height':_0x4f3eee['height'],'angle':_0xbd4c57[_0x436e6f(0x390)],'evented':!0x1,'zIndex':Cn}));});}),_0x4aabc7[_0x21bc90(0x3c4)]===0x0){this[_0x21bc90(0x32c)]['scene'][_0x21bc90(0x329)](!0x0);return;}this[_0x21bc90(0x3db)]=!0x0,this['_context']['scene'][_0x21bc90(0x3dc)](_0x4aabc7,Cn),this[_0x21bc90(0x3db)]=!0x1,this[_0x21bc90(0x2bb)]=new Set(_0x4aabc7),this['_context'][_0x21bc90(0x359)][_0x21bc90(0x329)](!0x0);}[_0x12e69f(0x3a5)](){const _0x1d4843=_0x12e69f;let _0x33125a=Array['from'](this[_0x1d4843(0x2bb)]);if(_0x33125a[_0x1d4843(0x3c4)]===0x0)return;let _0x36752e=this[_0x1d4843(0x32c)][_0x1d4843(0x359)];_0x1d4843(0x463)in _0x36752e&&typeof _0x36752e[_0x1d4843(0x463)]==_0x1d4843(0x257)?_0x36752e['removeObjects'](_0x33125a):_0x33125a['forEach'](_0xdf6ec0=>{const _0x437762=_0x1d4843;'removeObject'in _0x36752e&&typeof _0x36752e[_0x437762(0x41c)]==_0x437762(0x257)?_0x36752e['removeObject'](_0xdf6ec0):_0xdf6ec0[_0x437762(0x3cc)]();}),this[_0x1d4843(0x2bb)]['clear'](),_0x36752e[_0x1d4843(0x329)](!0x0);}[_0x12e69f(0x2a0)](_0x49fa53){const _0x218bb1=_0x12e69f;var _0x4e23e0,_0x36f00c,_0x1e4eee;let _0x5095ec=this[_0x218bb1(0x32c)][_0x218bb1(0x359)];return(_0x4e23e0=(_0x36f00c=(_0x1e4eee=_0x5095ec[_0x218bb1(0x3d2)])==null?void 0x0:_0x1e4eee[_0x218bb1(0x3e6)](_0x5095ec,_0x49fa53))==null?_0x5095ec['getObject'](_0x49fa53):_0x36f00c)==null?null:_0x4e23e0;}['_getObjectBounds'](_0x4afb50){const _0x2e7ff2=_0x12e69f;var _0x292091,_0x381317;let _0x429794=_0x4afb50;return(_0x292091=(_0x381317=_0x429794[_0x2e7ff2(0x3de)])==null?void 0x0:_0x381317['call'](_0x429794))==null?{'left':_0x4afb50[_0x2e7ff2(0x29c)],'top':_0x4afb50[_0x2e7ff2(0x3b1)],'width':_0x4afb50['width'],'height':_0x4afb50[_0x2e7ff2(0x387)]}:_0x292091;}};Un=Y([J(0x1,_0x54edce(Q)),J(0x2,_0x54edce(_0x247f8e))],Un);let Wn=class extends _0xfa11d4{constructor(_0x3edc66,_0x52dd66,_0x2daca5,_0x356040,_0xbdcc2f,_0xa54a6){const _0x4c6baf=_0x12e69f;super(),this['_beforeCloseService']=_0x3edc66,this[_0x4c6baf(0x3f8)]=_0x52dd66,this['_collaborationUIEventService']=_0x2daca5,this[_0x4c6baf(0x43a)]=_0x356040,this[_0x4c6baf(0x2af)]=_0xbdcc2f,this[_0x4c6baf(0x428)]=_0xa54a6,this[_0x4c6baf(0x46c)](),this[_0x4c6baf(0x361)]();}[_0x12e69f(0x46c)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x44eaf2=_0x2051;if(this[_0x44eaf2(0x3f8)][_0x44eaf2(0x305)][_0x44eaf2(0x385)])return this[_0x44eaf2(0x428)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x12e69f(0x361)](){const _0x35ba73=_0x12e69f;this[_0x35ba73(0x432)](this[_0x35ba73(0x306)][_0x35ba73(0x228)][_0x35ba73(0x23c)](_0x3cbbed=>{const _0x39b5d1=_0x35ba73;_0x3cbbed['id']===_0x4cf333[_0x39b5d1(0x423)]&&this['_messageService'][_0x39b5d1(0x272)]({'type':_0x47e927[_0x39b5d1(0x3a6)],'content':this[_0x39b5d1(0x428)]['t'](_0x39b5d1(0x25b))}),_0x3cbbed['id']===_0x4cf333[_0x39b5d1(0x381)]&&this[_0x39b5d1(0x43a)]['show']({'type':_0x47e927[_0x39b5d1(0x3a6)],'content':this[_0x39b5d1(0x428)]['t'](_0x39b5d1(0x366))}),_0x3cbbed['id']===_0x4cf333[_0x39b5d1(0x2df)]&&this[_0x39b5d1(0x2af)]['show']({'title':this[_0x39b5d1(0x428)]['t'](_0x39b5d1(0x442)),'content':this[_0x39b5d1(0x428)]['t'](_0x39b5d1(0x211)),'type':_0x39b5d1(0x293),'duration':0x0}),_0x3cbbed['id']===_0x4cf333[_0x39b5d1(0x41e)]&&this['_notificationService']['show']({'title':this[_0x39b5d1(0x428)]['t'](_0x39b5d1(0x1f9)),'content':this[_0x39b5d1(0x428)]['t'](_0x39b5d1(0x300)),'type':_0x39b5d1(0x293),'duration':0x0}),_0x3cbbed['id']===_0x4cf333['JOIN_ROOM_FAILED']&&this[_0x39b5d1(0x43a)][_0x39b5d1(0x272)]({'type':_0x47e927[_0x39b5d1(0x3a6)],'content':this[_0x39b5d1(0x428)]['t'](_0x3cbbed[_0x39b5d1(0x2d8)]||'')}),_0x3cbbed['id']===_0x4cf333[_0x39b5d1(0x394)]&&this[_0x39b5d1(0x43a)]['show']({'type':_0x47e927['Warning'],'content':this[_0x39b5d1(0x428)]['t']('collaboration-client-ui.session.will-retry')}),_0x3cbbed['id']===_0x4cf333[_0x39b5d1(0x379)]&&this[_0x39b5d1(0x43a)][_0x39b5d1(0x272)]({'type':_0x47e927[_0x39b5d1(0x433)],'content':this[_0x39b5d1(0x428)]['t'](_0x39b5d1(0x21c))}),_0x3cbbed['id']===_0x4cf333[_0x39b5d1(0x429)]&&this[_0x39b5d1(0x43a)][_0x39b5d1(0x272)]({'type':_0x47e927[_0x39b5d1(0x433)],'content':this[_0x39b5d1(0x428)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};Wn=Y([J(0x0,_0x136d6a),J(0x1,_0x45f1ab),J(0x2,_0x54edce(_0x5278e7)),J(0x3,_0x52b70e),J(0x4,_0x594c15),J(0x5,_0x54edce(_0x1d0344))],Wn);const Gn=_0x2017fb(_0x12e69f(0x1f2));let Kn=class extends _0x3b482a{constructor(_0x58a23d,_0xb9596,_0x34dcec,_0x17b657,_0x37f87d){const _0x4726e0=_0x12e69f;super(),this[_0x4726e0(0x468)]=_0x58a23d,this[_0x4726e0(0x3c3)]=_0xb9596,this[_0x4726e0(0x422)]=_0x34dcec,this[_0x4726e0(0x238)]=_0x17b657,_0x37f87d?_0x37f87d[_0x4726e0(0x2eb)]()[_0x4726e0(0x38b)](()=>this[_0x4726e0(0x40e)]()):(this['_logService'][_0x4726e0(0x27c)](_0x4726e0(0x287),_0x4726e0(0x27d)),this['_init']());}async[_0x12e69f(0x40e)](){const _0x405dbf=_0x12e69f;let _0x111f7f=this['_urlService'][_0x405dbf(0x3a8)](_0x405dbf(0x2d5)),_0x5b6520=this[_0x405dbf(0x468)][_0x405dbf(0x3a8)]('type'),_0x3df26c=this[_0x405dbf(0x468)][_0x405dbf(0x3a8)](_0x405dbf(0x3da));if(!_0x111f7f||!_0x5b6520){this['_logService']['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x2f9998=await this['_dataLoaderService'][_0x405dbf(0x392)](_0x111f7f,Number(_0x5b6520),_0x3df26c);_0x2f9998&&_0x2f9998 instanceof _0x1b67c9&&this[_0x405dbf(0x2f5)](_0x2f9998);}async[_0x12e69f(0x2f5)](_0x43a04b){const _0x45dcad=_0x12e69f;await this[_0x45dcad(0x444)](_0x43a04b),_0x43a04b[_0x45dcad(0x2e1)][_0x45dcad(0x3b0)](_0x58f4bb(this[_0x45dcad(0x200)]))[_0x45dcad(0x23c)](_0x113706=>{_0x113706&&this['_updateURLWithCurrentState'](_0x113706);}),this[_0x45dcad(0x468)][_0x45dcad(0x288)][_0x45dcad(0x3b0)](_0x58f4bb(this[_0x45dcad(0x200)]))[_0x45dcad(0x23c)](()=>this[_0x45dcad(0x444)](_0x43a04b));}['_updateURLWithCurrentState'](_0x11c709,_0x54782f=!0x1){const _0x356eec=_0x12e69f;let _0xb0c9ac=this['_urlService'][_0x356eec(0x3a8)](_0x356eec(0x3da));_0x11c709[_0x356eec(0x2a4)]()!==_0xb0c9ac&&this[_0x356eec(0x468)]['setParam'](_0x356eec(0x3da),_0x11c709[_0x356eec(0x2a4)](),_0x54782f);}async['_updateSubUnitFromURLParams'](_0x1b6d7d){const _0x2fb030=_0x12e69f;var _0x3aa202;let _0x20447a=this[_0x2fb030(0x468)]['getParam']('subunit');if(!_0x20447a||!_0x1b6d7d['getSheetBySheetId'](_0x20447a)){let _0x4b8446=_0x1b6d7d[_0x2fb030(0x40f)]()[0x0],_0x800603=_0x1b6d7d['getSheetBySheetId'](_0x4b8446);if(!_0x800603)return;this[_0x2fb030(0x3fc)](_0x800603,!0x0),await this[_0x2fb030(0x422)][_0x2fb030(0x309)](_0x30a663['id'],{'unitId':_0x1b6d7d[_0x2fb030(0x2e7)](),'subUnitId':_0x4b8446});return;}((_0x3aa202=_0x1b6d7d['getActiveSheet']())==null?void 0x0:_0x3aa202[_0x2fb030(0x2a4)]())!==_0x20447a&&await this['_commandService'][_0x2fb030(0x309)](_0x30a663['id'],{'unitId':_0x1b6d7d[_0x2fb030(0x2e7)](),'subUnitId':_0x20447a});}};Kn=Y([J(0x0,Gn),J(0x1,_0x2a73d7),J(0x2,_0x41da16),J(0x3,_0x54edce(_0x178936)),J(0x4,_0x11f330(_0x2dcad5))],Kn);let qn=class{constructor(_0x328b61,_0x274530){const _0x44ab96=_0x12e69f;this[_0x44ab96(0x274)]=_0x328b61,this['_renderManagerService']=_0x274530;}[_0x12e69f(0x348)](_0x30501e){const _0x472fd6=_0x12e69f;this[_0x472fd6(0x396)](_0x30501e),this[_0x472fd6(0x2ff)](_0x30501e);}['transformRemoteChangeset'](_0x159816){const _0x194bbb=_0x12e69f;let {unitID:_0x139bae}=_0x159816,{redoCache:_0xcb2950}=this['_renderManagerService'][_0x194bbb(0x32a)](_0x139bae)[_0x194bbb(0x38a)](_0x453bb4)[_0x194bbb(0x2c6)]();if(_0xcb2950[_0x194bbb(0x3c4)]===0x0)return _0x159816;let _0xa64891=_0x19cd3e[_0x194bbb(0x2c4)](_0x159816[_0x194bbb(0x29e)][0x0]);for(let _0x5d3b13=0x0;_0x5d3b13<_0xcb2950[_0x194bbb(0x3c4)];_0x5d3b13++){let _0x5b7f95={'id':_0x194bbb(0x345),'params':{..._0xcb2950[_0x5d3b13]}},_0x285cf9=this[_0x194bbb(0x274)][_0x194bbb(0x36d)](_0xa64891,_0x5b7f95,!0x1);if(_0x2e286f(_0x285cf9))throw _0x285cf9['error'];_0xa64891=_0x285cf9[_0x194bbb(0x1f5)];}return{..._0x19cd3e['deepClone'](_0x159816),'mutations':[_0xa64891]};}[_0x12e69f(0x396)](_0x97c96e){const _0x395268=_0x12e69f;let {unitID:_0x5beb71}=_0x97c96e,_0x126a08=this[_0x395268(0x20d)][_0x395268(0x32a)](_0x5beb71)[_0x395268(0x38a)](_0x453bb4),{undoCache:_0x5c2fe9,redoCache:_0xfe7db}=_0x126a08[_0x395268(0x2c6)]();if(_0x5c2fe9['length']===0x0||_0xfe7db['length']===0x0)return;let _0x4cc097=[],_0x30ac7f=[],_0x62184f=_0x19cd3e['deepClone'](_0x97c96e['mutations'][0x0]),_0x2087fc=_0x19cd3e[_0x395268(0x2c4)](_0x97c96e['mutations'][0x0]);for(let _0x7288eb=_0x5c2fe9[_0x395268(0x3c4)]-0x1;_0x7288eb>=0x0;_0x7288eb--){let _0x29291a={'id':_0x395268(0x345),'params':{..._0x5c2fe9[_0x7288eb]}},_0x4d10bf={'id':_0x395268(0x345),'params':{..._0xfe7db[_0x7288eb]}},_0x22060d=this[_0x395268(0x274)][_0x395268(0x36d)](_0x62184f,_0x29291a,!0x1),_0xa6eb42=this[_0x395268(0x274)][_0x395268(0x36d)](_0x2087fc,_0x4d10bf,!0x1);if(_0x2e286f(_0x22060d))throw _0x22060d[_0x395268(0x293)];if(_0x2e286f(_0xa6eb42))throw _0xa6eb42[_0x395268(0x293)];_0x4cc097[_0x395268(0x249)](_0x22060d[_0x395268(0x26b)]['params']),_0x30ac7f[_0x395268(0x249)](_0xa6eb42[_0x395268(0x26b)]['params']),_0x62184f=_0x22060d[_0x395268(0x1f5)],_0x2087fc=_0xa6eb42[_0x395268(0x1f5)];}_0x126a08['setUndoRedoMutationParamsCache']({'undoCache':_0x4cc097,'redoCache':_0x30ac7f});}[_0x12e69f(0x2ff)](_0x5ce7da){const _0x4a063a=_0x12e69f;let {unitID:_0x37012d}=_0x5ce7da,_0x2188f2=this[_0x4a063a(0x20d)][_0x4a063a(0x32a)](_0x37012d)[_0x4a063a(0x38a)](_0x453bb4),_0x1a655c=_0x2188f2[_0x4a063a(0x34e)]();if(_0x1a655c==null)return;let _0x1c1447=[{'id':_0x4a063a(0x345),'params':{'unitId':_0x5ce7da['unitID'],'actions':null,'textRanges':[_0x1a655c]}}],_0x54e33e=this[_0x4a063a(0x274)]['transformMutationsWithChangeset'](_0x5ce7da,_0x1c1447);if(!_0x551289(_0x54e33e))throw _0x54e33e[_0x4a063a(0x293)];let _0x6c1dda=_0x54e33e[_0x4a063a(0x26b)][0x0][_0x4a063a(0x327)][_0x4a063a(0x26c)];Array['isArray'](_0x6c1dda)&&_0x6c1dda[_0x4a063a(0x3c4)]&&_0x2188f2[_0x4a063a(0x3c7)](_0x6c1dda[0x0]);}};qn=Y([J(0x0,_0x3e9679),J(0x1,_0x40ac66)],qn);let Jn=class{constructor(_0x397db0,_0x2d74ea,_0x4a71ca){const _0xd9213b=_0x12e69f;this[_0xd9213b(0x39c)]=_0x397db0,this[_0xd9213b(0x274)]=_0x2d74ea,this['_docStateChangeManagerService']=_0x4a71ca;}[_0x12e69f(0x416)](_0x330bf7){const _0x345fc6=_0x12e69f;this[_0x345fc6(0x2b8)](_0x330bf7);}[_0x12e69f(0x3f9)](_0x37e479){const _0x1f776e=_0x12e69f;let {unitID:_0x1a0a0e}=_0x37e479,{collaboration:_0x3d6399}=this[_0x1f776e(0x25e)][_0x1f776e(0x2d4)](_0x1a0a0e);if(_0x3d6399['length']===0x0)return _0x37e479;let _0x2b8873=_0x19cd3e['deepClone'](_0x37e479['mutations'][0x0]);for(let _0x16665f=0x0;_0x16665f<_0x3d6399[_0x1f776e(0x3c4)];_0x16665f++){let _0x3a7966={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3d6399[_0x16665f][_0x1f776e(0x2ad)],..._0x3d6399[_0x16665f][_0x1f776e(0x237)]}},_0x29c603=this['_transformService'][_0x1f776e(0x36d)](_0x2b8873,_0x3a7966,!0x1);if(_0x2e286f(_0x29c603))throw _0x29c603['error'];_0x2b8873=_0x29c603[_0x1f776e(0x1f5)];}return{..._0x19cd3e[_0x1f776e(0x2c4)](_0x37e479),'mutations':[_0x2b8873]};}[_0x12e69f(0x2b8)](_0xf98e1b){const _0x3ec6f0=_0x12e69f;let {unitID:_0x309128}=_0xf98e1b,{history:_0x305299,collaboration:_0x3030c9}=this['_docStateChangeManagerService'][_0x3ec6f0(0x2d4)](_0x309128);if(_0x305299[_0x3ec6f0(0x3c4)]===0x0&&_0x3030c9[_0x3ec6f0(0x3c4)]===0x0)return;let _0x336f1b=[],_0x4438d6=[],_0x1392bf=_0x19cd3e['deepClone'](_0xf98e1b['mutations'][0x0]),_0x2b0fc8=_0x19cd3e[_0x3ec6f0(0x2c4)](_0xf98e1b[_0x3ec6f0(0x29e)][0x0]);for(let _0x1f4534=_0x305299[_0x3ec6f0(0x3c4)]-0x1;_0x1f4534>=0x0;_0x1f4534--){let _0x2acf34={'id':_0x3ec6f0(0x345),'params':{'unitId':_0x305299[_0x1f4534][_0x3ec6f0(0x2ad)],..._0x305299[_0x1f4534]['undoState']}},_0x3f7691={'id':_0x3ec6f0(0x345),'params':{'unitId':_0x305299[_0x1f4534][_0x3ec6f0(0x2ad)],..._0x305299[_0x1f4534][_0x3ec6f0(0x237)]}},_0x5f06a2=this[_0x3ec6f0(0x274)]['transformMutation'](_0x1392bf,_0x2acf34,!0x1),_0x5a4882=this['_transformService'][_0x3ec6f0(0x36d)](_0x2b0fc8,_0x3f7691,!0x1);if(_0x2e286f(_0x5f06a2))throw _0x5f06a2[_0x3ec6f0(0x293)];if(_0x2e286f(_0x5a4882))throw _0x5a4882[_0x3ec6f0(0x293)];_0x336f1b[_0x3ec6f0(0x249)]({..._0x305299[_0x1f4534],'undoState':_0x5f06a2[_0x3ec6f0(0x26b)]['params'],'redoState':_0x5a4882['m2Prime'][_0x3ec6f0(0x327)]}),_0x1392bf=_0x5f06a2[_0x3ec6f0(0x1f5)],_0x2b0fc8=_0x5a4882[_0x3ec6f0(0x1f5)];}_0x1392bf=_0x19cd3e[_0x3ec6f0(0x2c4)](_0xf98e1b[_0x3ec6f0(0x29e)][0x0]),_0x2b0fc8=_0x19cd3e[_0x3ec6f0(0x2c4)](_0xf98e1b[_0x3ec6f0(0x29e)][0x0]);for(let _0x43c171=_0x3030c9[_0x3ec6f0(0x3c4)]-0x1;_0x43c171>=0x0;_0x43c171--){let _0x26b0fb={'id':_0x3ec6f0(0x345),'params':{'unitId':_0x3030c9[_0x43c171]['unitId'],..._0x3030c9[_0x43c171][_0x3ec6f0(0x369)]}},_0x2f42ab={'id':_0x3ec6f0(0x345),'params':{'unitId':_0x3030c9[_0x43c171]['unitId'],..._0x3030c9[_0x43c171][_0x3ec6f0(0x237)]}},_0x5cf425=this[_0x3ec6f0(0x274)][_0x3ec6f0(0x36d)](_0x1392bf,_0x26b0fb,!0x1),_0x2530c0=this[_0x3ec6f0(0x274)][_0x3ec6f0(0x36d)](_0x2b0fc8,_0x2f42ab,!0x1);if(_0x2e286f(_0x5cf425))throw _0x5cf425['error'];if(_0x2e286f(_0x2530c0))throw _0x2530c0[_0x3ec6f0(0x293)];_0x4438d6[_0x3ec6f0(0x249)]({..._0x3030c9[_0x43c171],'undoState':_0x5cf425[_0x3ec6f0(0x26b)][_0x3ec6f0(0x327)],'redoState':_0x2530c0[_0x3ec6f0(0x26b)][_0x3ec6f0(0x327)]}),_0x1392bf=_0x5cf425[_0x3ec6f0(0x1f5)],_0x2b0fc8=_0x2530c0['m1Prime'];}this[_0x3ec6f0(0x25e)][_0x3ec6f0(0x3a9)](_0x309128,{'history':_0x336f1b,'collaboration':_0x4438d6});}};Jn=Y([J(0x0,_0x54edce(_0x485f8c)),J(0x1,_0x3e9679),J(0x2,_0x54edce(_0x3d031b))],Jn);let Yn=class{constructor(_0x1a66be,_0x1efe0e){const _0x4a0f84=_0x12e69f;this[_0x4a0f84(0x39c)]=_0x1a66be,this[_0x4a0f84(0x274)]=_0x1efe0e;}[_0x12e69f(0x405)](_0x1b98e2){const _0x4cb21e=_0x12e69f;var _0x2125d9;let _0x355997=this[_0x4cb21e(0x39c)][_0x4cb21e(0x3f2)](_0x371c99),_0x5d3842=(_0x2125d9=_0x355997[_0x4cb21e(0x202)]())==null?[]:_0x2125d9;if(_0x5d3842[_0x4cb21e(0x3c4)]===0x0)return;let _0x107792=_0x1b98e2[_0x4cb21e(0x204)],_0x1c9e4d=[{'id':_0x4cb21e(0x345),'params':{'unitId':_0x107792,'actions':null,'textRanges':_0x5d3842}}],_0x2fd55e=this['_transformService'][_0x4cb21e(0x445)](_0x1b98e2,_0x1c9e4d);if(!_0x551289(_0x2fd55e))throw _0x2fd55e[_0x4cb21e(0x293)];let _0x41c98a=_0x2fd55e[_0x4cb21e(0x26b)][0x0][_0x4cb21e(0x327)][_0x4cb21e(0x26c)];Array[_0x4cb21e(0x20b)](_0x41c98a)&&_0x41c98a[_0x4cb21e(0x3c4)]&&_0x355997[_0x4cb21e(0x410)](_0x41c98a,{'unitId':_0x107792,'subUnitId':_0x107792},!0x1);}};Yn=Y([J(0x0,_0x54edce(_0x485f8c)),J(0x1,_0x3e9679)],Yn);let Xn=class extends _0xfa11d4{constructor(_0x19ee52,_0x3622ee,_0x49e579,_0x3ee9e1,_0x146abd,_0x54841d,_0x2785b8){const _0x4d648a=_0x12e69f;super(),this[_0x4d648a(0x42c)]=_0x19ee52,this[_0x4d648a(0x35b)]=_0x3622ee,this[_0x4d648a(0x43c)]=_0x49e579,this[_0x4d648a(0x450)]=_0x3ee9e1,this[_0x4d648a(0x3ed)]=_0x146abd,this[_0x4d648a(0x43a)]=_0x54841d,this[_0x4d648a(0x428)]=_0x2785b8,q(this,_0x4d648a(0x43d),new _0x2c5746(_0x1c9bbb[_0x4d648a(0x3cb)])),this['_initEntityListener']();}[_0x12e69f(0x44f)](){const _0x3bfcdb=_0x12e69f;this[_0x3bfcdb(0x432)](this[_0x3bfcdb(0x42c)][_0x3bfcdb(0x45c)][_0x3bfcdb(0x23c)](_0x252e53=>{const _0xf81e31=_0x3bfcdb;_0x252e53 instanceof _0x50ee06&&_0x252e53[_0xf81e31(0x44a)]({'onTransformIME':_0xdf32bb=>this[_0xf81e31(0x35b)]['transformIMECache'](_0xdf32bb),'onTransformState':_0x4a2921=>this['_docTransformStateCacheService'][_0xf81e31(0x416)](_0x4a2921),'onTransformSelections':_0x2c1ce2=>this[_0xf81e31(0x450)][_0xf81e31(0x405)](_0x2c1ce2),'onSyncEditingCollabCursor':_0x43b503=>this[_0xf81e31(0x3ed)][_0xf81e31(0x434)](_0x43b503),'onTransformRemoteChangesetByIMECache':_0x45cfd5=>this['_docTransformIMECacheService'][_0xf81e31(0x3f9)](_0x45cfd5),'onTransformRemoteChangesetByStateCache':_0x3a38c2=>this['_docTransformStateCacheService'][_0xf81e31(0x3f9)](_0x3a38c2)});}));}};Xn=Y([J(0x0,_0x54edce(_0x1d7a8d)),J(0x1,_0x54edce(qn)),J(0x2,_0x54edce(Jn)),J(0x3,_0x54edce(Yn)),J(0x4,_0x54edce(An)),J(0x5,_0x52b70e),J(0x6,_0x54edce(_0x1d0344))],Xn);let Zn=class extends _0xfa11d4{constructor(_0x142f83,_0x82bc4a,_0x3d8970,_0x125353){const _0xeed0c5=_0x12e69f;super(),this[_0xeed0c5(0x39c)]=_0x142f83,this['_httpService']=_0x82bc4a,this[_0xeed0c5(0x3c3)]=_0x3d8970,this[_0xeed0c5(0x310)]=_0x125353,q(this,_0xeed0c5(0x317),void 0x0),this[_0xeed0c5(0x40e)]();}['_init'](){const _0x329d3e=_0x12e69f;this[_0x329d3e(0x215)](),this[_0x329d3e(0x414)](),this['_monkeyPatchLogService'](),this[_0x329d3e(0x44e)]();}[_0x12e69f(0x44e)](){const _0x3447e5=_0x12e69f;this['disposeWithMe'](this[_0x3447e5(0x310)]['socket$'][_0x3447e5(0x23c)](_0x23a840=>{const _0x507c22=_0x3447e5;this[_0x507c22(0x317)]=_0x23a840==null?void 0x0:_0x23a840['memberID'];}));}[_0x12e69f(0x215)](){const _0x953972=_0x12e69f;let _0x13eb1f=_0x57f287=>{const _0x121bed=_0x2051;var _0x4ca481;this[_0x121bed(0x419)](_0x121bed(0x293),'[Window\x20Error]:\x20'+_0x57f287['message']+'\x20at\x20'+_0x57f287[_0x121bed(0x459)]+':'+_0x57f287[_0x121bed(0x2a5)]+':'+_0x57f287['colno']+'\x0a'+(((_0x4ca481=_0x57f287[_0x121bed(0x293)])==null?void 0x0:_0x4ca481[_0x121bed(0x259)])||''));};window[_0x953972(0x440)](_0x953972(0x293),_0x13eb1f),this[_0x953972(0x432)](()=>{const _0x4febbf=_0x953972;window[_0x4febbf(0x271)]('error',_0x13eb1f);});}[_0x12e69f(0x414)](){const _0x3eb2fa=_0x12e69f;let _0x374c7d=_0x1da07d=>{const _0x232c61=_0x2051;this['_uploadLog'](_0x232c61(0x293),_0x232c61(0x299)+_0x1da07d[_0x232c61(0x23e)]);};window[_0x3eb2fa(0x440)](_0x3eb2fa(0x36c),_0x374c7d),this[_0x3eb2fa(0x432)](()=>{const _0x4c81cf=_0x3eb2fa;window[_0x4c81cf(0x271)](_0x4c81cf(0x36c),_0x374c7d);});}[_0x12e69f(0x253)](){const _0x8a4de3=_0x12e69f;let _0x2c1ea3=this[_0x8a4de3(0x3c3)][_0x8a4de3(0x293)][_0x8a4de3(0x286)](this['_logService']);this[_0x8a4de3(0x3c3)][_0x8a4de3(0x293)]=(..._0x37b5a6)=>{const _0x120575=_0x8a4de3;let _0x22a9b6=_0x37b5a6[_0x120575(0x208)](_0x2b056b=>_0x2b056b instanceof Error?_0x2b056b['message']+'\x0a'+_0x2b056b[_0x120575(0x259)]:String(_0x2b056b))[_0x120575(0x1fb)]('\x20');this['_uploadLog'](_0x120575(0x293),_0x120575(0x3a1)+_0x22a9b6),_0x2c1ea3(..._0x37b5a6);},this['disposeWithMe'](()=>{const _0x33c341=_0x8a4de3;this[_0x33c341(0x3c3)]['error']=_0x2c1ea3;});}[_0x12e69f(0x419)](_0x3155f6,_0x4944e7){const _0x1e7671=_0x12e69f;try{let _0x35db43={'userId':this[_0x1e7671(0x317)],'logLabel':_0x3155f6,'content':_0x4944e7};this[_0x1e7671(0x46d)][_0x1e7671(0x1f1)]('/universer-api/frontend/logs',{'body':_0x35db43})[_0x1e7671(0x39e)](()=>{});}catch{}}};Zn=Y([J(0x0,_0x54edce(_0x485f8c)),J(0x1,_0x54edce(_0x42f426)),J(0x2,_0x2a73d7),J(0x3,_0x54edce(_0x1d6a95))],Zn);function Qn({state$:_0x25afe0,interactionBlocked$:_0x2f403e}){const _0x456216=_0x12e69f;return _0x1f600f(_0x5d5880,{'children':[_0x2fbf7f(_0x2f403e,!0x1,!0x0)&&_0x320080(_0x456216(0x2ae),{'data-u-comp':_0x456216(0x2da),'aria-hidden':!0x0,'className':'univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait'}),_0x320080($n,{'state$':_0x25afe0})]});}function $n({state$:_0x120adf}){const _0x3b02af=_0x12e69f;let _0x59d825=_0x2fbf7f(_0x120adf,null,!0x0);return _0x59d825?_0x1f600f('div',{'data-u-comp':'snapshot-loading-timeout','role':_0x3b02af(0x39f),'className':_0x3b02af(0x413),'children':[_0x320080(_0x4022c3,{'className':_0x3b02af(0x289)}),_0x320080(_0x3b02af(0x357),{'children':_0x59d825[_0x3b02af(0x320)]}),_0x320080(_0x5460ba,{'size':'small','variant':_0x3b02af(0x40c),'onClick':()=>window[_0x3b02af(0x343)]['reload'](),'children':_0x59d825['refreshLabel']})]}):null;}const er=_0x12e69f(0x2a7);let tr=class extends _0xfa11d4{constructor(_0x1303e3,_0x34b232,_0x404fee,_0x1e3abd,_0x10f3e5,_0x1a89b7,_0xcac0c3,_0x59d2c0){const _0x5852a2=_0x12e69f;super(),this[_0x5852a2(0x26f)]=_0x1303e3,this[_0x5852a2(0x43a)]=_0x34b232,this['_localeService']=_0x404fee,this[_0x5852a2(0x39c)]=_0x1e3abd,this['_pluginService']=_0x10f3e5,this['_shortcutService']=_0xcac0c3,this['_urlService']=_0x59d2c0,q(this,_0x5852a2(0x222),new _0x2c5746(null)),q(this,_0x5852a2(0x30c),new _0x2c5746(!0x1)),q(this,_0x5852a2(0x28b),new Set()),q(this,'_blockProgressWatches',new Map()),q(this,_0x5852a2(0x27e),new Set()),q(this,_0x5852a2(0x219),new Map()),q(this,_0x5852a2(0x325),void 0x0),q(this,_0x5852a2(0x24c),void 0x0),q(this,_0x5852a2(0x296),void 0x0),q(this,_0x5852a2(0x1fe),this['_timeoutState$'][_0x5852a2(0x22c)]());let _0x5abc92=()=>_0x806860(Qn,{'state$':this[_0x5852a2(0x1fe)],'interactionBlocked$':this['_interactionBlocked$']});this['disposeWithMe'](_0x1a89b7[_0x5852a2(0x386)](_0x40f600[_0x5852a2(0x389)],()=>_0x48f813(_0x5abc92,this['_injector']))),this[_0x5852a2(0x432)](this['_snapshotLoadingService'][_0x5852a2(0x2f4)][_0x5852a2(0x23c)](_0x26bcc9=>{const _0x2d2c83=_0x5852a2;this[_0x2d2c83(0x219)]=_0x26bcc9,_0x26bcc9[_0x2d2c83(0x2cb)](_0x2c5dca=>{const _0x34a877=_0x2d2c83;this['_updateMessage'](_0x2c5dca),this[_0x34a877(0x441)](_0x2c5dca);});})),this[_0x5852a2(0x432)](this[_0x5852a2(0x468)]['urlChange$'][_0x5852a2(0x23c)](()=>{const _0x3e6170=_0x5852a2;this[_0x3e6170(0x219)][_0x3e6170(0x2cb)](_0x3171b0=>{const _0x30e65d=_0x3e6170;this[_0x30e65d(0x32d)](_0x3171b0),this[_0x30e65d(0x441)](_0x3171b0);});}));}[_0x12e69f(0x3cc)](){const _0x1c13a6=_0x12e69f;var _0x1b32dc;if(this[_0x1c13a6(0x28b)][_0x1c13a6(0x2cb)](_0x3e4d95=>this[_0x1c13a6(0x43a)][_0x1c13a6(0x44b)](_0x3e4d95)),this[_0x1c13a6(0x28b)][_0x1c13a6(0x3b4)](),this['_previewUnitId']){var _0x36a555;(_0x36a555=this['_sheetLoadingRenderService'])==null||_0x36a555[_0x1c13a6(0x349)](this['_previewUnitId']);}this[_0x1c13a6(0x325)]=void 0x0,this[_0x1c13a6(0x412)]['forEach'](({timeoutId:_0x6591ef})=>clearTimeout(_0x6591ef)),this['_blockProgressWatches'][_0x1c13a6(0x3b4)](),(_0x1b32dc=this[_0x1c13a6(0x24c)])==null||_0x1b32dc['dispose'](),this['_shortcutBlock']=void 0x0,this['_timeoutState$'][_0x1c13a6(0x338)](),this[_0x1c13a6(0x30c)][_0x1c13a6(0x338)](),super[_0x1c13a6(0x3cc)]();}['_updateMessage'](_0xb8be1a){const _0x4cd790=_0x12e69f;let _0xa11f16=''+er+_0xb8be1a['unitId'];if(_0xb8be1a[_0x4cd790(0x248)]===_0x87101c['COMPLETE']){if(this[_0x4cd790(0x3ec)](_0xb8be1a[_0x4cd790(0x2ad)]),this[_0x4cd790(0x268)](_0xb8be1a[_0x4cd790(0x2ad)])&&this[_0x4cd790(0x325)]===_0xb8be1a[_0x4cd790(0x2ad)]){this[_0x4cd790(0x43a)][_0x4cd790(0x272)]({'id':_0xa11f16,'type':_0x47e927[_0x4cd790(0x398)],'duration':0x1/0x0,'content':this['_localeService']['t'](_0x4cd790(0x3f6))}),this[_0x4cd790(0x28b)][_0x4cd790(0x31d)](_0xa11f16);return;}this['_clearTimeoutState'](_0xb8be1a[_0x4cd790(0x2ad)]),this[_0x4cd790(0x43a)]['remove'](_0xa11f16),this['_messageIds'][_0x4cd790(0x28a)](_0xa11f16);return;}if(!this[_0x4cd790(0x268)](_0xb8be1a[_0x4cd790(0x2ad)])){this[_0x4cd790(0x3ec)](_0xb8be1a[_0x4cd790(0x2ad)]),this[_0x4cd790(0x367)](_0xb8be1a[_0x4cd790(0x2ad)]),this[_0x4cd790(0x43a)][_0x4cd790(0x44b)](_0xa11f16),this[_0x4cd790(0x28b)]['delete'](_0xa11f16);return;}if(_0xb8be1a[_0x4cd790(0x248)]===_0x87101c[_0x4cd790(0x298)]){this['_clearBlockProgressWatch'](_0xb8be1a['unitId']),this[_0x4cd790(0x367)](_0xb8be1a['unitId']),this[_0x4cd790(0x43a)][_0x4cd790(0x272)]({'id':_0xa11f16,'type':_0x47e927[_0x4cd790(0x433)],'content':this[_0x4cd790(0x428)]['t'](_0x4cd790(0x21c))}),this[_0x4cd790(0x28b)]['delete'](_0xa11f16);return;}if(_0xb8be1a[_0x4cd790(0x248)]!==_0x87101c['LOADING_BLOCKS']||_0xb8be1a[_0x4cd790(0x2e5)]<=0xa){this[_0x4cd790(0x3ec)](_0xb8be1a[_0x4cd790(0x2ad)]),this[_0x4cd790(0x43a)][_0x4cd790(0x44b)](_0xa11f16),this[_0x4cd790(0x28b)][_0x4cd790(0x28a)](_0xa11f16);return;}this[_0x4cd790(0x2b7)](_0xb8be1a)||(this[_0x4cd790(0x43a)][_0x4cd790(0x272)]({'id':_0xa11f16,'type':_0x47e927['Loading'],'duration':0x1/0x0,'content':this['_localeService']['t']('collaboration-client-ui.collabStatus.fetchMiss')+'\x20'+_0xb8be1a[_0x4cd790(0x25f)]+'/'+_0xb8be1a[_0x4cd790(0x2e5)]}),this[_0x4cd790(0x28b)]['add'](_0xa11f16));}[_0x12e69f(0x2b7)](_0x1afa17){const _0xfe7c60=_0x12e69f;let _0x2d93dd=this['_blockProgressWatches'][_0xfe7c60(0x3f2)](_0x1afa17[_0xfe7c60(0x2ad)]);if((_0x2d93dd==null?void 0x0:_0x2d93dd[_0xfe7c60(0x25f)])===_0x1afa17[_0xfe7c60(0x25f)])return _0x2d93dd['timedOut'];this[_0xfe7c60(0x3ec)](_0x1afa17[_0xfe7c60(0x2ad)]);let _0x3c69df=setTimeout(()=>{const _0x5c53ee=_0xfe7c60;let _0x53b768=this[_0x5c53ee(0x412)][_0x5c53ee(0x3f2)](_0x1afa17[_0x5c53ee(0x2ad)]);if(!_0x53b768||_0x53b768['timeoutId']!==_0x3c69df)return;_0x53b768['timedOut']=!0x0;let _0x4017a0=''+er+_0x1afa17[_0x5c53ee(0x2ad)];this[_0x5c53ee(0x43a)]['remove'](_0x4017a0),this[_0x5c53ee(0x28b)][_0x5c53ee(0x28a)](_0x4017a0),this[_0x5c53ee(0x222)][_0x5c53ee(0x2f7)]({'unitId':_0x1afa17[_0x5c53ee(0x2ad)],'content':this['_localeService']['t'](_0x5c53ee(0x273),String(_0x1afa17[_0x5c53ee(0x25f)]),String(_0x1afa17['totalBlocks'])),'refreshLabel':this['_localeService']['t'](_0x5c53ee(0x335))});},0xea60);return this[_0xfe7c60(0x412)]['set'](_0x1afa17[_0xfe7c60(0x2ad)],{'loadedBlocks':_0x1afa17[_0xfe7c60(0x25f)],'timedOut':!0x1,'timeoutId':_0x3c69df}),!0x1;}[_0x12e69f(0x3ec)](_0x3c127e){const _0x1976cb=_0x12e69f;let _0x148f51=this[_0x1976cb(0x412)]['get'](_0x3c127e);_0x148f51&&(clearTimeout(_0x148f51[_0x1976cb(0x2e0)]),this['_blockProgressWatches'][_0x1976cb(0x28a)](_0x3c127e),this['_clearTimeoutState'](_0x3c127e));}['_clearTimeoutState'](_0x3e4eaa){const _0x2a6b5a=_0x12e69f;var _0x41432b;((_0x41432b=this[_0x2a6b5a(0x222)]['value'])==null?void 0x0:_0x41432b[_0x2a6b5a(0x2ad)])===_0x3e4eaa&&this[_0x2a6b5a(0x222)]['next'](null);}[_0x12e69f(0x441)](_0x2fad8c){const _0x2e8217=_0x12e69f;if(_0x2fad8c[_0x2e8217(0x248)]===_0x87101c[_0x2e8217(0x333)]&&this[_0x2e8217(0x27e)]['delete'](_0x2fad8c[_0x2e8217(0x2ad)]),!this[_0x2e8217(0x268)](_0x2fad8c[_0x2e8217(0x2ad)])){this[_0x2e8217(0x2ab)](_0x2fad8c['unitId']);return;}if(_0x2fad8c['stage']===_0x87101c['ERROR']||_0x2fad8c[_0x2e8217(0x2e5)]<=0xa){this['_hidePreview'](_0x2fad8c[_0x2e8217(0x2ad)]);return;}if(_0x2fad8c[_0x2e8217(0x248)]===_0x87101c[_0x2e8217(0x2bd)]){this[_0x2e8217(0x403)](_0x2fad8c[_0x2e8217(0x2ad)]);return;}if(_0x2fad8c[_0x2e8217(0x248)]===_0x87101c['LOADING_BLOCKS']&&_0x2fad8c[_0x2e8217(0x3fe)]&&_0x2fad8c['activeSheetId']){let _0xca2cd0=this[_0x2e8217(0x2b6)]();if(!_0xca2cd0)return;this[_0x2e8217(0x325)]&&this['_previewUnitId']!==_0x2fad8c[_0x2e8217(0x2ad)]&&this[_0x2e8217(0x2ab)](this[_0x2e8217(0x325)]),_0xca2cd0[_0x2e8217(0x291)](_0x2fad8c[_0x2e8217(0x3fe)],_0x2fad8c[_0x2e8217(0x38f)]),this['_previewUnitId']=_0x2fad8c[_0x2e8217(0x2ad)],this[_0x2e8217(0x2d3)](!0x0),_0x2fad8c[_0x2e8217(0x400)]&&_0xca2cd0[_0x2e8217(0x272)](_0x2fad8c[_0x2e8217(0x3fe)],_0x2fad8c[_0x2e8217(0x38f)],_0x2fad8c[_0x2e8217(0x2f2)]);}}[_0x12e69f(0x403)](_0x4a49b2){const _0x5d98de=_0x12e69f;if(this[_0x5d98de(0x325)]!==_0x4a49b2||this[_0x5d98de(0x27e)][_0x5d98de(0x2b5)](_0x4a49b2))return;let _0x9ee3ba=this[_0x5d98de(0x296)];_0x9ee3ba&&(this[_0x5d98de(0x27e)][_0x5d98de(0x31d)](_0x4a49b2),_0x9ee3ba[_0x5d98de(0x24b)](_0x4a49b2,0x2710)[_0x5d98de(0x38b)](_0x15f278=>{const _0x502bf6=_0x5d98de;if(this[_0x502bf6(0x325)]!==_0x4a49b2)return;if(_0x15f278){let _0x316c63=''+er+_0x4a49b2;this['_messageService'][_0x502bf6(0x44b)](_0x316c63),this[_0x502bf6(0x28b)][_0x502bf6(0x28a)](_0x316c63),this[_0x502bf6(0x325)]=void 0x0,this['_setInteractionBlocked'](!0x1);return;}let _0x4742a3=''+er+_0x4a49b2;this[_0x502bf6(0x43a)][_0x502bf6(0x44b)](_0x4742a3),this['_messageIds'][_0x502bf6(0x28a)](_0x4742a3),this['_timeoutState$'][_0x502bf6(0x2f7)]({'unitId':_0x4a49b2,'content':this['_localeService']['t'](_0x502bf6(0x21c)),'refreshLabel':this[_0x502bf6(0x428)]['t'](_0x502bf6(0x335))});}));}[_0x12e69f(0x2ab)](_0x244e26){const _0x1860b5=_0x12e69f;var _0x22cb82;this['_previewUnitId']===_0x244e26&&((_0x22cb82=this['_sheetLoadingRenderService'])==null||_0x22cb82[_0x1860b5(0x349)](_0x244e26),this[_0x1860b5(0x325)]=void 0x0,this[_0x1860b5(0x2d3)](!0x1));}[_0x12e69f(0x2d3)](_0x41d2e0){const _0x1023c5=_0x12e69f;if(_0x41d2e0!==this[_0x1023c5(0x30c)]['value']){if(_0x41d2e0)this['_shortcutBlock']=this['_shortcutService']['forceDisable']();else{var _0x4755b4;(_0x4755b4=this['_shortcutBlock'])==null||_0x4755b4[_0x1023c5(0x3cc)](),this[_0x1023c5(0x24c)]=void 0x0;}this[_0x1023c5(0x30c)][_0x1023c5(0x2f7)](_0x41d2e0);}}[_0x12e69f(0x268)](_0x434dc7){const _0x4b5e7f=_0x12e69f;let _0x4386af=this[_0x4b5e7f(0x468)][_0x4b5e7f(0x3a8)]('unit');return!_0x4386af||_0x4386af===_0x434dc7;}[_0x12e69f(0x2b6)](){const _0x1a20d6=_0x12e69f;return this[_0x1a20d6(0x296)]?this[_0x1a20d6(0x296)]:(this[_0x1a20d6(0x32e)][_0x1a20d6(0x312)](_0x4cc843[_0x1a20d6(0x314)]),this[_0x1a20d6(0x39c)][_0x1a20d6(0x2b5)](_0x28517d)&&(this[_0x1a20d6(0x296)]=this[_0x1a20d6(0x39c)][_0x1a20d6(0x3f2)](_0x28517d)),this[_0x1a20d6(0x296)]);}};tr=Y([J(0x0,_0x54edce(_0x3698f2)),J(0x1,_0x52b70e),J(0x2,_0x54edce(_0x1d0344)),J(0x3,_0x54edce(_0x485f8c)),J(0x4,_0x54edce(_0x1d7db8)),J(0x5,_0x50e845),J(0x6,_0x1aec99),J(0x7,Gn)],tr);function _0x4f58(){const _0x2c2b4c=['min','backgroundColor','fill','_collabSessionService','get','moveTo','collab-text-range-','DeleteRangeMoveLeftCommandId','collaboration-client-ui.snapshotLoading.loadingSheet','startRow','_localCacheService','transformRemoteChangeset','status$','addClipboardHook','_updateURLWithCurrentState','_handleLeaveEvent','workbookShell','collab-text-anchor-','previewReady','_initResize','text','_handoffPreview','contains','transformSelections','ACTIVE_UNIT_EVENT_CHANNEL','red.300','collaboration-client-ui.collabStatus.syncing','UNIVER_DOC','_startSlideCollabCursor','values','primary','rgba(255,\x20255,\x20255,\x200.01)','_init','getUnhiddenWorksheets','replaceDocRanges','labelHorizontalPosition','_blockProgressWatches','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-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','_initUnhandledRejectionListener','getMember','transformStateCache','memberID','disableLocalCache','_uploadLog','_currentUsage','_initStatusListener','removeObject','setAlpha','CONFLICT','UNIVER_BOARD','ticket','_session','_commandService','OTHER_CLIENT_EDITING','stageInfo','getActivePageId','runOnServer','0.2)','_localeService','SUBMIT_CHANGESET_TIMEOUT','collabCursorState$','getRangePointData','_collaborationController','parse','_renderScheduled','indicator','imageSourceType','searchParams','disposeWithMe','Error','syncEditingCollabCursor','_roomMembers$','_blinkTimer','_maxFormulaLimit','_cursor','now','_messageService','_checkCalculationAvailable','_docTransformStateCacheService','_status$','strokeStyle','getFocusedUnit','addEventListener','_updateSheetPreview','collaboration-client-ui.permission.title','collaboration-client-ui.config','_updateSubUnitFromURLParams','transformMutationsWithChangeset','univer-appearance-none','getActiveSheet','_saveCache','beginPath','addHandlerCallback','remove','_docSkeletonManagerService','RemoveRowCommandId','_initUserListener','_initEntityListener','_docTransformSelectionsService','currentSkeleton$','getTypeOfUnitAdded$','stringify','setItem','findNodePositionByCharIndex','InsertRangeMoveDownCommandId','_color','collaboration-client-ui.collabStatus.notCollab','filename','_getSaveTimeout','[RemoteUniscriptService]:\x20no\x20focused\x20unit','entityInit$','/universer-api/license/formula/limit/done','_syncEditingCollabCursorService','selections','cursorInfo','status','getCollabEntity$','removeObjects','getViewport','rgba(','clearTimeout','engine','_urlService','getMemberID','split','_memberService','_setupBeforeClosingHandler','_httpService','_hover','_render','createSocket','sessionTicket','univer-text-gray-400','evented','post','uni.network.url-service','_hideTimer','color','m1Prime','_saveTaskMap','#4f46e5','_univerInstanceService','collaboration-client-ui.conflict.title','width','join','colorClass','getCollabCursors$','timeoutState$','backupOfflineData','dispose$','_heartbeatTimer','getDocRanges','onRendered','unitID','isEditing','resolve','onPointerMove$','map','_range','_lastPointer','isArray','send','_renderManagerService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_collabCursorController','restore','collaboration-client-ui.permission.content','from','showText','some','_initWindowErrorListener','resize','getUnitStatus$','symbol','_latestStates','strokeWidth','_initCommandInterceptor','collaboration-client-ui.session.connection-failed','addObject$','onMouseMove','_initCommandExecutedListener','setTimeout','_drawAnchor','_timeoutState$','subUnitId','getColorFromTheme','getSkeleton','editingUnit','name','event$','univer-m-0\x20univer-p-0','push','clearInterval','asObservable','_isBlinkVisible','requireSession','loadOfflineData','toString','_imageIoService','endColumn','TEXT','UNIVER_SLIDE','_themeService','pushState','redoState','_dataLoaderService','_anchor','univer-border-none\x20univer-bg-transparent','_blinkIntervalTimer','subscribe','getCurrentRevOfUnit','reason','executionId','_showText','_id','_removeClearOtherTimer','_uiPartsService','find','univer-text-blue-500','_refreshCollabCursors','_toggleOffline','stage','unshift','_getSheetObject','handoff','_shortcutBlock','_handleHeartbeatEvent','drawWith','currentTheme$','_startCalculationLimit','getCurrentTypeOfUnit$','InsertRangeMoveRightCommandId','_monkeyPatchLogService','measureText','highlightSecond','InsertColCommandId','function','enableFrontendLog','stack','roomMembers$','collaboration-client-ui.collaboration.single-unit.warning','_boardElementStateService','_scene','_docStateChangeManagerService','loadedBlocks','_updateLocalCursor','application/json','_labelHorizontalPosition','HEADER_MENU','dark:focus:!univer-ring-offset-gray-800','body','univer-inline-flex\x20univer-items-center\x20univer-justify-center','reconnect','_isVisibleUnit','string','yellow.400','m2Prime','textRanges','setShapeProps','11127420AKpgSb','_snapshotLoadingService','spin','removeEventListener','show','collaboration-client-ui.snapshotLoading.timeout','_transformService','USERS_LEAVE','7JHPkLy','collaboration-client-ui.collabClient.tooltip.reconnect','limitInfo','transformByState','getAncestorScale','sheetId','debug','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_handoffUnitIds','transform','363KpmQAX','_startDocCollabCursor','defineProperty','assignAColorForMemberID','_colorAssignService','collaboration-client-ui.formula.calculation.unable','bind','[CollaborationDataLoaderController]','urlChange$','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','delete','_messageIds','_scheduleHeartbeat','saveImage','getConfig','beforeCommandExecuted','fillStyle','showSkeleton','_stopBlinking','error','_drawTextRange','OTHER_CLIENTS_EDITING','_sheetLoadingRenderService','_entities','ERROR','[Unhandled\x20Rejection]:\x20','getObject','_scheduleRender','left','override','mutations','rgb','_getSceneObjectByKey','_highlight','range','_onCursorUpdate','getSheetId','lineno','selection','snapshot-loading-','...',':backup:','_initDependencies','_hidePreview','search','unitId','div','_notificationService','getMergeData','_getAnchorBounding','toPrimitive','pageManager','fillText','has','_getSheetLoadingRenderService','_watchBlockProgress','_transformHistoryAndStateStack','iterator','RECT','_cursors','_hovered','COMPLETE','bottom','_scheduleSaving','_getSessionTicket','_cursorInfo$','Failed','_entityInit$','deepClone','_online','getUndoRedoMutationParamsCache','enableLocalCache','sheetID','clickable','_hasFormulaInDirtyRanges','forEach','_clearOtherTimers','getCurrentUnitOfType','_draw','univer-text-red-500','all','getTypeOfUnitDisposed$','_lastResponseTimestamp','_setInteractionBlocked','getStateCache','unit','column','font','data','_getFormulaLimitStatus','snapshot-loading-interaction-guard','unload','_pollingInterval','registerRenderModule','_onCursorDelete','PERMISSION_DENIED','timeoutId','activeSheet$','getAllUnitsForType','collaboration-client-ui.collabStatus.offline','_ensureSubject','totalBlocks','_updateCollabCursors','getUnitId','popstate','_startSheetCollabCursor','Unknown\x20user','whenReady','history','updateOfflineData',',\x200.2)','activeSlideId$','collab-rect-range-','getOffsetConfig','previewCellData','constructor','state$','_setupSubUnitSync','_startBoardCollabCursor','next','_toggleOnline','RemoveColCommandId','_startBlinking','PENDING','pulse','toRgbString','getUniverSheetInstance','_transformPreviousActiveRange','collaboration-client-ui.conflict.content','static','isActive','arc','onCommandExecuted','saveTaskMap','_collaborationUIEventService','_handleHover','_disabled','executeCommand','replace','offsetY','_interactionBlocked$','_taskIds','releaseFormulaLimitUrl','createInstance','_collaborationSessionService','lineTo','startPluginsForType','getUnit','UNIVER_SHEET','_highlightSecond','_configService','_memberID','key','href','_initStatusComponent','currentUsage','ONLINE','add','true','onPointerLeave$','content','_cachedData','enableDocumentCollaborationUI','collaboration-client-ui.formula.calculation.started','tooltipKey','_previewUnitId','slice','params','addObject','makeDirty','getRenderById','set','_context','_updateMessage','_pluginService','4861704ogLRLS','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_localStorageService','sessionStatus$','LOADING_SNAPSHOT','onTransformChange$','collaboration-client-ui.snapshotLoading.refresh','_registerRenderDependencies','closePath','complete','removeParam','START_CALCULATION','object','577196KBCynR','result','UPDATE_CURSOR','polite','_shapes','highlight','context','location','_offsetY','doc.mutation.rich-text-editing','_textBubble','_onRefRangeChange','transformIMECache','hide','_handleJoinEvent','board-element-selection','OFFLINE','_checkAndWaitForCalculationPermission','getActiveRange','setConfig','_docSkeleton','focusedId','_docClipboardService','_unitStatus','subscribeEvent','startColumn','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','span','_pointerMoveDisposable','scene','wsSessionTicketUrl','_docTransformIMECacheService','runId','cursorInfo$','maxFormulaLimit','decorate','totalFormulasToCalculate','_initEvent','_anchorDot','setParam','dirtyRanges','4020075Jyrymt','collaboration-client-ui.collaboration.closeRoom','_clearTimeoutState','black','undoState','/universer-api/license/formula/limit/start','init','unhandledrejection','transformMutation','getValue','_sheetSkeletonManagerService','code','_collabCursorState$','functionsExecutedState','getFormulaLimitStatusUrl','green.600','_scheduleClearOtherTimer','type','136410rUsEVF','_unitOnClients','SOCKET_FAILED','_selfUnitIDs','_getLighterColor','#FFF','univer-flex\x20univer-items-center\x20univer-justify-center','_getScale','getCurrentSkeleton','button','CLOSE_ROOM','filter','11594696OKfXYl','_setFormulaLimitStatus','size','registerComponent','height','_showGuardMessage','GLOBAL','with','then','pluginName','getActiveSlide','save','activeSheetId','angle','startsWith','loadUnit','startFormulaLimitUrl','SOCKET_FAILED_RETRY','_handleEvent','_transformUndoRedoStack','slide-element-selection','Loading','_latestCursors','_drawRectRange','labelPosition','_injector','roomMembers','catch','alert','getItem','[LogService\x20Error]:\x20','_document','fillRule','_labelPosition','_removeCollabCursors','Warning','MoveRangeCommandId','getParam','setStateCache','parseInt','eventID','_assignedColors','setInterval','?taskId=','_refRangeService','pipe','top','VIEW_MAIN','source','clear','getSheetBySheetId','disposeUnit','1vdUChR','hovered','registerRefRange','evenodd','_name','_colorIndex','newValue','getCurrentSelections','jiqing.500','ranges','_eventUnsubscribe','3YvAiKM','_logService','length','unsubscribe','/universer-api/license/formula/limit/status','setActiveRange','kind','_getMergeRange','_instanceService','NOT_COLLAB','dispose','_registerDependencies','_slideDrawingStateService','Success','selectedIds','saveOfflineData','getObjectIncludeInGroup','onPointerEnter$','NO_OTHER_CLIENTS_EDITING','replaceState','_createSocketURL','collaboration-client-ui.formula.calculation.waiting','_getObjectBounds','FromArray','subunit','_isApplyingOverlays','addObjects','_cursorShapes','getRealBound','prototype','collaboration-client-ui.collabStatus.conflict','_config','getSnapshot','row','Enter','rgba','call','_send','_clearPolling','univer-h-8\x20univer-w-8\x20univer-rounded-lg','4483172yKtQKN','_backgroundColor','_clearBlockProgressWatch','_docSyncEditingCollabCursorService'];_0x4f58=function(){return _0x2c2b4c;};return _0x4f58();}function nr(_0x31fe06){const _0x2fd786=_0x12e69f;var _0x5b2940,_0x30eb41;let _0x96f735=(_0x5b2940=_0x31fe06[_0x2fd786(0x424)])==null?void 0x0:_0x5b2940['stage'],_0x38d257=((_0x30eb41=_0x31fe06['stageInfo'])==null?void 0x0:_0x30eb41[_0x2fd786(0x360)])||0x0;return _0x96f735===_0x1335c1[_0x2fd786(0x33a)]&&_0x38d257>0x0;}function rr(_0x32b9a4){const _0x49620f=_0x12e69f;return _0x32b9a4[_0x49620f(0x372)]===_0x7eb4c2['SUCCESS'];}let ir=class extends _0xfa11d4{constructor(_0xe3f2c5,_0x1f3c39,_0x2d8635,_0x5cffa4,_0x22c627,_0x2815c4,_0x18120d){const _0x3331f8=_0x12e69f;super(),this['_messageService']=_0xe3f2c5,this[_0x3331f8(0x422)]=_0x1f3c39,this[_0x3331f8(0x316)]=_0x2d8635,this['_httpService']=_0x5cffa4,this['_univerInstanceService']=_0x22c627,this[_0x3331f8(0x3c3)]=_0x2815c4,this[_0x3331f8(0x428)]=_0x18120d,q(this,_0x3331f8(0x2dc),null),q(this,_0x3331f8(0x437),0x0),q(this,_0x3331f8(0x41a),0x0),q(this,_0x3331f8(0x30d),[]),q(this,_0x3331f8(0x2d2),0x0),this[_0x3331f8(0x21b)]();}[_0x12e69f(0x21b)](){const _0x59dd59=_0x12e69f;this['disposeWithMe'](this[_0x59dd59(0x422)][_0x59dd59(0x28f)]((_0xf1cc2d,_0x3edef4)=>{const _0x2656a7=_0x59dd59;var _0x432f93;if(_0xf1cc2d['id']!==_0x36b508['id'])return;let _0x45a04e=_0xf1cc2d[_0x2656a7(0x327)];if(this['_hasFormulaInDirtyRanges']((_0x432f93=_0x45a04e[_0x2656a7(0x364)])==null?[]:_0x432f93)&&!this[_0x2656a7(0x43b)]())throw this[_0x2656a7(0x34d)](_0xf1cc2d,_0x3edef4),this[_0x2656a7(0x388)](),new _0x213df0();})),this['disposeWithMe'](this[_0x59dd59(0x422)]['onCommandExecuted']((_0x2cfeb4,_0x25dbbd)=>{const _0x7bd228=_0x59dd59;if(_0x2cfeb4['id']!==_0x5cd13c['id'])return;let _0x2cc615=_0x2cfeb4[_0x7bd228(0x327)];if(nr(_0x2cc615)){let _0x26786f=_0x19564d();this[_0x7bd228(0x30d)][_0x7bd228(0x22a)](_0x26786f),this[_0x7bd228(0x250)](_0x26786f);}else{if(rr(_0x2cc615)&&this[_0x7bd228(0x30d)][_0x7bd228(0x3c4)]>0x0){let _0x2a2f66=this[_0x7bd228(0x30d)]['shift']();this['_releaseCalculationLimit'](_0x2a2f66);}}}));}[_0x12e69f(0x3cc)](){const _0x3ae086=_0x12e69f;super[_0x3ae086(0x3cc)](),this[_0x3ae086(0x3e8)](),this[_0x3ae086(0x30d)]=[],this[_0x3ae086(0x41a)]=0x0,this[_0x3ae086(0x437)]=0x0,this[_0x3ae086(0x2d2)]=0x0;}async[_0x12e69f(0x34d)](_0x3e8285,_0x192895){const _0x47d936=_0x12e69f;for(let _0x30959d=0x0;_0x30959d<0x1e;_0x30959d++)try{if(await this[_0x47d936(0x2d9)](),this[_0x47d936(0x43b)]()){this['_applyCommand'](_0x3e8285,_0x192895),this[_0x47d936(0x43a)][_0x47d936(0x272)]({'content':this[_0x47d936(0x428)]['t'](_0x47d936(0x323)),'type':_0x47e927[_0x47d936(0x3cf)]});return;}await new Promise(_0x24810d=>{const _0x62e91c=_0x47d936;this[_0x62e91c(0x2dc)]=window[_0x62e91c(0x220)](_0x24810d,0x3e8);});}catch(_0x48457b){this[_0x47d936(0x3c3)][_0x47d936(0x293)](_0x48457b);}this[_0x47d936(0x43a)]['show']({'content':this[_0x47d936(0x428)]['t'](_0x47d936(0x285)),'type':_0x47e927[_0x47d936(0x433)]});}['_applyCommand'](_0x27378e,_0x4200c0){const _0x54964d=_0x12e69f;try{this[_0x54964d(0x422)][_0x54964d(0x309)](_0x27378e['id'],_0x27378e[_0x54964d(0x327)],_0x4200c0);}catch(_0x29ec11){this[_0x54964d(0x3c3)][_0x54964d(0x293)](_0x29ec11);}}[_0x12e69f(0x384)](_0x125be0,_0x518ac5){const _0x5024d5=_0x12e69f;_0x518ac5<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x518ac5,this[_0x5024d5(0x437)]=Number[_0x5024d5(0x3aa)](_0x125be0[_0x5024d5(0x35e)]),this[_0x5024d5(0x41a)]=Number[_0x5024d5(0x3aa)](_0x125be0[_0x5024d5(0x31b)]));}async[_0x12e69f(0x250)](_0x5e1c13){const _0x509422=_0x12e69f;let _0x59e575=Date[_0x509422(0x439)]();try{var _0x57e61f,_0x434dfa;let _0x198875=((_0x57e61f=this[_0x509422(0x316)][_0x509422(0x28e)](_0x23c907))==null?void 0x0:_0x57e61f[_0x509422(0x393)])||_0x509422(0x36a),_0x5123aa=(await this['_httpService'][_0x509422(0x1f1)](_0x198875,{'body':JSON[_0x509422(0x453)]({'taskId':_0x5e1c13})}))[_0x509422(0x265)];if(((_0x434dfa=_0x5123aa[_0x509422(0x293)])==null?void 0x0:_0x434dfa[_0x509422(0x370)])!==_0x38087c['OK'])return;this[_0x509422(0x384)](_0x5123aa['limitInfo'],_0x59e575);}catch(_0x3e4a86){this[_0x509422(0x3c3)][_0x509422(0x293)](_0x3e4a86);}}async[_0x12e69f(0x2d9)](_0x2fcc1d){const _0xe30015=_0x12e69f;let _0x3386e2=Date[_0xe30015(0x439)]();try{var _0x5d4905,_0x35f671;let _0x1d8e2b=((_0x5d4905=this[_0xe30015(0x316)][_0xe30015(0x28e)](_0x23c907))==null?void 0x0:_0x5d4905[_0xe30015(0x373)])||_0xe30015(0x3c6),_0x2586af=_0x2fcc1d?_0x1d8e2b+_0xe30015(0x3ae)+encodeURIComponent(_0x2fcc1d):_0x1d8e2b,_0x2780e8=(await this[_0xe30015(0x46d)][_0xe30015(0x3f2)](_0x2586af))['body'];if(((_0x35f671=_0x2780e8[_0xe30015(0x293)])==null?void 0x0:_0x35f671[_0xe30015(0x370)])!==_0x38087c['OK'])return;this['_setFormulaLimitStatus'](_0x2780e8[_0xe30015(0x278)],_0x3386e2);}catch(_0x5d9613){this[_0xe30015(0x3c3)][_0xe30015(0x293)](_0x5d9613);}}async['_releaseCalculationLimit'](_0x1a6bc1){const _0x3969ea=_0x12e69f;let _0x261a13=Date[_0x3969ea(0x439)]();try{var _0x4bc528,_0x2f17ac;let _0x51396e=((_0x4bc528=this[_0x3969ea(0x316)][_0x3969ea(0x28e)](_0x23c907))==null?void 0x0:_0x4bc528[_0x3969ea(0x30e)])||_0x3969ea(0x45d),_0x319d40=(await this['_httpService'][_0x3969ea(0x1f1)](_0x51396e,{'body':JSON[_0x3969ea(0x453)]({'taskId':_0x1a6bc1})}))[_0x3969ea(0x265)];if(((_0x2f17ac=_0x319d40[_0x3969ea(0x293)])==null?void 0x0:_0x2f17ac[_0x3969ea(0x370)])!==_0x38087c['OK'])return;this[_0x3969ea(0x384)](_0x319d40[_0x3969ea(0x278)],_0x261a13);}catch(_0x670aa3){this['_logService']['error'](_0x670aa3);}}['_checkCalculationAvailable'](){const _0x280cd9=_0x12e69f;return this[_0x280cd9(0x437)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x12e69f(0x3e8)](){const _0x5c962a=_0x12e69f;this[_0x5c962a(0x2dc)]&&(clearTimeout(this[_0x5c962a(0x2dc)]),this['_pollingInterval']=null);}[_0x12e69f(0x388)](){const _0x485b4c=_0x12e69f;this['_messageService'][_0x485b4c(0x272)]({'content':this[_0x485b4c(0x428)]['t'](_0x485b4c(0x3d7)),'type':_0x47e927['Loading']});}[_0x12e69f(0x2ca)](_0x5c8e93){const _0x554496=_0x12e69f;for(let _0x3e0d2e of _0x5c8e93){let {unitId:_0x285cdd,sheetId:_0x3dcac7,range:_0x1c9725}=_0x3e0d2e,_0x37a8dd=this[_0x554496(0x1f8)][_0x554496(0x313)](_0x285cdd);if(!_0x37a8dd)continue;let _0x481c94=_0x37a8dd['getSheetBySheetId'](_0x3dcac7);if(!_0x481c94)continue;let _0x19674d=_0x481c94['getCellMatrix']();for(let _0x2ae91b=_0x1c9725[_0x554496(0x3f7)];_0x2ae91b<=_0x1c9725['endRow'];_0x2ae91b++)for(let _0x5f0677=_0x1c9725[_0x554496(0x355)];_0x5f0677<=_0x1c9725[_0x554496(0x232)];_0x5f0677++){let _0x4a93ef=_0x19674d[_0x554496(0x36e)](_0x2ae91b,_0x5f0677);if(_0x4a93ef&&(_0x2ca7e7(_0x4a93ef['f'])||_0x1028c8(_0x4a93ef['si'])))return!0x0;}}return!0x1;}};ir=Y([J(0x0,_0x54edce(_0x52b70e)),J(0x1,_0x41da16),J(0x2,_0x188328),J(0x3,_0x54edce(_0x42f426)),J(0x4,_0x1ff84b),J(0x5,_0x2a73d7),J(0x6,_0x54edce(_0x1d0344))],ir);let ar=class extends _0xfa11d4{constructor(_0x4a6ad8,_0x395f80,_0x4c45b9){const _0x469271=_0x12e69f;super(),this['_configService']=_0x4a6ad8,this[_0x469271(0x331)]=_0x395f80,this['_revisionService']=_0x4c45b9,q(this,_0x469271(0x321),new Map()),q(this,_0x469271(0x1f6),new Map()),q(this,'_disabled',!0x1);}[_0x12e69f(0x418)](){this['_disabled']=!0x0;}[_0x12e69f(0x2c7)](){const _0x595010=_0x12e69f;this[_0x595010(0x308)]=!0x1;}get[_0x12e69f(0x305)](){return this['_saveTaskMap'];}[_0x12e69f(0x3cc)](){const _0x35fd39=_0x12e69f;this['exhaustSavingTask']()['then'](()=>super[_0x35fd39(0x3cc)]());}async[_0x12e69f(0x22f)](_0x561689){const _0x3878ff=_0x12e69f;return this[_0x3878ff(0x308)]?null:this[_0x3878ff(0x331)][_0x3878ff(0x3a0)](_0x2cfa0f(_0x561689));}async[_0x12e69f(0x3d1)](_0x110061,_0x4ac355){const _0x13e4f4=_0x12e69f;return!!this[_0x13e4f4(0x331)][_0x13e4f4(0x454)](_0x2cfa0f(_0x110061),_0x4ac355);}async[_0x12e69f(0x1ff)](_0x1178a5,_0x37e153){const _0x4483ee=_0x12e69f;var _0x341eab;let _0x2c80a9=(_0x341eab=this[_0x4483ee(0x321)][_0x4483ee(0x3f2)](_0x1178a5))==null?await this['_localStorageService'][_0x4483ee(0x3a0)](_0x2cfa0f(_0x1178a5)):_0x341eab;if(!_0x2c80a9)return;let _0x1d5c93=Date[_0x4483ee(0x439)](),_0x17f427=new Date(_0x1d5c93)['toISOString']();await this[_0x4483ee(0x331)][_0x4483ee(0x454)](_0x2cfa0f(_0x1178a5)+_0x4483ee(0x2a9)+_0x1d5c93,{'reason':_0x37e153,'createdAt':_0x17f427,'data':_0x2c80a9});}[_0x12e69f(0x2ed)](_0x859ce0,_0x3aed77,_0x6938fa,_0x1d419d){const _0x2221b5=_0x12e69f;let _0x4dbfc0=this['_revisionService'][_0x2221b5(0x23d)](_0x859ce0);this[_0x2221b5(0x321)][_0x2221b5(0x32b)](_0x859ce0,{'unitID':_0x859ce0,'type':_0x3aed77,'awaitingChangeset':_0x6938fa,'mutations':_0x1d419d,'rev':_0x4dbfc0}),this[_0x2221b5(0x1f6)][_0x2221b5(0x2b5)](_0x859ce0)||this[_0x2221b5(0x2bf)](_0x859ce0);}['_scheduleSaving'](_0x18b6d5){const _0x528b01=_0x12e69f;let _0x14e55d=this[_0x528b01(0x45a)]();_0x14e55d===0x0?this[_0x528b01(0x448)](_0x18b6d5):this['_saveTaskMap'][_0x528b01(0x32b)](_0x18b6d5,window['setTimeout'](()=>this[_0x528b01(0x448)](_0x18b6d5),_0x14e55d));}['_getSaveTimeout'](){const _0x209db8=_0x12e69f;var _0x3473f0;return(_0x3473f0=this['_configService'][_0x209db8(0x28e)](_0x4615ba))==null?_0x4daf82:_0x3473f0;}[_0x12e69f(0x448)](_0x4f5509){const _0xed225a=_0x12e69f;let _0x188c8e=this[_0xed225a(0x1f6)][_0xed225a(0x3f2)](_0x4f5509);return _0x188c8e!==void 0x0&&window[_0xed225a(0x466)](_0x188c8e),this[_0xed225a(0x331)][_0xed225a(0x454)](_0x2cfa0f(_0x4f5509),this[_0xed225a(0x321)][_0xed225a(0x3f2)](_0x4f5509))[_0xed225a(0x38b)](()=>this[_0xed225a(0x1f6)][_0xed225a(0x28a)](_0x4f5509));}async['exhaustSavingTask'](){const _0xb80fb6=_0x12e69f;let _0x2c7a0f=[];this[_0xb80fb6(0x1f6)]['forEach']((_0x298d2e,_0x32ecde)=>{const _0x32bb60=_0xb80fb6;window[_0x32bb60(0x466)](_0x298d2e),_0x2c7a0f[_0x32bb60(0x22a)](this[_0x32bb60(0x448)](_0x32ecde)['then'](()=>{const _0xb30184=_0x32bb60;this['_saveTaskMap'][_0xb30184(0x28a)](_0x32ecde);}));}),await Promise[_0xb80fb6(0x2d0)](_0x2c7a0f);}};ar=Y([J(0x0,_0x188328),J(0x1,_0x3ccd1f),J(0x2,_0x54edce(_0x55f15e))],ar);var or=class extends _0x3b482a{constructor(){const _0x215fe9=_0x12e69f;super(),q(this,_0x215fe9(0x288),void 0x0),this['urlChange$']=_0x3103d7(window,_0x215fe9(0x2e8))['pipe'](_0x58f4bb(this[_0x215fe9(0x200)]),_0x377286({'bufferSize':0x1,'refCount':!0x0}),_0x36e8ac(void 0x0));}[_0x12e69f(0x363)](_0x20d437,_0x3ca6ea,_0xd41169=!0x1){const _0x40c914=_0x12e69f;let _0x31f0e2=new URL(window[_0x40c914(0x343)][_0x40c914(0x319)]);_0x31f0e2[_0x40c914(0x431)][_0x40c914(0x32b)](_0x20d437,_0x3ca6ea),_0xd41169?window['history'][_0x40c914(0x3d5)]('','',_0x31f0e2[_0x40c914(0x230)]()):window['history'][_0x40c914(0x236)]('','',_0x31f0e2['toString']());}[_0x12e69f(0x339)](_0x528aa4,_0x2549b4=!0x1){const _0x2d053c=_0x12e69f;let _0x1b7875=new URL(window[_0x2d053c(0x343)]['href']);_0x1b7875[_0x2d053c(0x431)][_0x2d053c(0x28a)](_0x528aa4),_0x2549b4?window[_0x2d053c(0x2ec)][_0x2d053c(0x3d5)]('','',_0x1b7875['toString']()):window[_0x2d053c(0x2ec)][_0x2d053c(0x236)]('','',_0x1b7875['toString']());}[_0x12e69f(0x3a8)](_0x196f18){const _0x37515b=_0x12e69f;var _0x4a8218;return(_0x4a8218=new URL(window[_0x37515b(0x343)][_0x37515b(0x319)])['searchParams']['get'](_0x196f18))==null?void 0x0:_0x4a8218;}};let $=class extends _0x4a4c3f{constructor(_0x4d5248=vn,_0x2603dd,_0x51d3d4,_0x7db7cc){const _0x5aee69=_0x12e69f;super(),this[_0x5aee69(0x3e1)]=_0x4d5248,this['_renderManagerService']=_0x2603dd,this['_injector']=_0x51d3d4,this[_0x5aee69(0x316)]=_0x7db7cc;let {..._0x4c884e}=_0x6668({},vn,this[_0x5aee69(0x3e1)]);this['_configService'][_0x5aee69(0x34f)](_0x5aee69(0x443),_0x4c884e);}['onStarting'](){const _0x44b6e7=_0x12e69f;this[_0x44b6e7(0x3cd)](),this[_0x44b6e7(0x2aa)]();}[_0x12e69f(0x203)](){const _0x5d8032=_0x12e69f;this[_0x5d8032(0x336)]();}[_0x12e69f(0x3cd)](){const _0x22c3ed=_0x12e69f;var _0x3eb5f8;let _0x201dd9=[[Z],[ir],[Gn,{'useClass':or}],[_0x2c3cce,{'useClass':_0x2a1a15}],[_0x45f1ab,{'useClass':ar}],[X],[fn],[Wn],[Q],[Kn],[tr]];this[_0x22c3ed(0x3e1)][_0x22c3ed(0x322)]!==!0x1&&_0x201dd9[_0x22c3ed(0x22a)]([Yn],[qn],[Jn],[An],[Xn],[yn]),this[_0x22c3ed(0x3e1)]['enableFrontendLog']&&_0x201dd9[_0x22c3ed(0x22a)]([Zn]),_0x385b63(this[_0x22c3ed(0x39c)],_0x303e42(_0x201dd9,(_0x3eb5f8=this[_0x22c3ed(0x3e1)])==null?void 0x0:_0x3eb5f8[_0x22c3ed(0x29d)]));}[_0x12e69f(0x336)](){const _0x2213f5=_0x12e69f;this[_0x2213f5(0x3e1)][_0x2213f5(0x322)]!==!0x1&&this[_0x2213f5(0x432)](this[_0x2213f5(0x20d)][_0x2213f5(0x2dd)](_0x4cc843[_0x2213f5(0x409)],[zn])),this[_0x2213f5(0x432)](this[_0x2213f5(0x20d)][_0x2213f5(0x2dd)](_0x4cc843[_0x2213f5(0x314)],[Vn])),this[_0x2213f5(0x432)](this['_renderManagerService'][_0x2213f5(0x2dd)](_0x4cc843[_0x2213f5(0x234)],[Un])),this[_0x2213f5(0x432)](this['_renderManagerService'][_0x2213f5(0x2dd)](_0x4cc843['UNIVER_BOARD'],[In]));}[_0x12e69f(0x2aa)](){const _0x5c16d1=_0x12e69f;_0x18d115(this[_0x5c16d1(0x39c)],[[Q],[X],[fn],[Wn],[Kn],[ir],[tr]]),this[_0x5c16d1(0x3e1)]['enableDocumentCollaborationUI']!==!0x1&&_0x18d115(this[_0x5c16d1(0x39c)],[[Xn],[yn]]),this[_0x5c16d1(0x3e1)][_0x5c16d1(0x258)]&&_0x18d115(this[_0x5c16d1(0x39c)],[[Zn]]);}};q($,_0x12e69f(0x38c),_0x12e69f(0x356)),q($,'packageName',gn),q($,'version',_n),$=Y([_0x4cb9ac(_0x2da37d),J(0x1,_0x40ac66),J(0x2,_0x54edce(_0x485f8c)),J(0x3,_0x188328)],$);let sr=class extends _0x1f148e{constructor(_0x28a908,_0x5ab079,_0x403556,_0x2562b4,_0x5e87f8){super(_0x28a908,_0x5ab079,_0x403556,_0x2562b4,_0x5e87f8);}async[_0x12e69f(0x1ed)](_0x4b48cb){const _0x4c3fa0=_0x12e69f;let _0x13acd0=await this['_getSessionTicket'](),_0x1f4951=this[_0x4c3fa0(0x3d6)](_0x4b48cb,_0x13acd0);return this['_doCreateSocket'](_0x1f4951);}[_0x12e69f(0x3d6)](_0x16a591,_0x3f5e60){const _0x2f58e2=_0x12e69f;let _0x1ea35a=typeof window>'u'?new URL(_0x16a591):new URL(_0x16a591,window[_0x2f58e2(0x343)]['origin']);_0x1ea35a[_0x2f58e2(0x431)][_0x2f58e2(0x32b)](_0x2f58e2(0x1ee),_0x3f5e60);let _0x296c24=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2f58e2(0x343)][_0x2f58e2(0x2ac)]);return _0x296c24[_0x2f58e2(0x3f2)](_0x2f58e2(0x35c))&&_0x1ea35a[_0x2f58e2(0x431)][_0x2f58e2(0x32b)](_0x2f58e2(0x35c),_0x296c24[_0x2f58e2(0x3f2)](_0x2f58e2(0x35c))),_0x1ea35a['toString']();}async[_0x12e69f(0x2c0)](){const _0x3e971c=_0x12e69f;var _0x4ff7e9,_0x4bfbf1,_0x419c6c;let _0x463fd5=this[_0x3e971c(0x316)]['getConfig'](_0x23c907),_0x22f825=(_0x4ff7e9=_0x463fd5==null?void 0x0:_0x463fd5[_0x3e971c(0x35a)])==null?_0x41f306:_0x4ff7e9;return(_0x4bfbf1=(_0x419c6c=(await this['_httpService'][_0x3e971c(0x3f2)](_0x22f825,{'headers':{'Content-Type':_0x3e971c(0x261)}}))[_0x3e971c(0x265)])==null?void 0x0:_0x419c6c[_0x3e971c(0x420)])==null?'':_0x4bfbf1;}};sr=Y([J(0x0,_0x54edce(_0x485f8c)),J(0x1,_0x54edce(_0x42f426)),J(0x2,_0x188328),J(0x3,_0x2a73d7),J(0x4,_0x5cab37)],sr);let cr=class extends _0xfa11d4{constructor(_0x4a7e3a,_0x3a24bd,_0xd111be){const _0x323fa0=_0x12e69f;super(),this[_0x323fa0(0x3ca)]=_0x4a7e3a,this['_httpService']=_0x3a24bd,this[_0x323fa0(0x316)]=_0xd111be;}async[_0x12e69f(0x426)](_0x1799d1,_0x1013c9,_0x117b3d,..._0x24595f){const _0x4e48f8=_0x12e69f;var _0x16bfc9,_0x5801ef,_0x221d88,_0x5a5c6c;let _0x15d103=this[_0x4e48f8(0x3ca)][_0x4e48f8(0x43f)]();if(!_0x15d103)throw Error(_0x4e48f8(0x45b));let _0x4602a7=((_0x16bfc9=this[_0x4e48f8(0x316)][_0x4e48f8(0x28e)](_0x4a15cd))==null?_0x5ba05e:_0x16bfc9)+'/'+_0x1799d1+'/run/'+_0x1013c9,_0x204e7b={'scriptId':_0x1799d1,'runId':(_0x5801ef=new URL(window[_0x4e48f8(0x343)][_0x4e48f8(0x319)])[_0x4e48f8(0x431)][_0x4e48f8(0x3f2)](_0x4e48f8(0x35c)))==null?'':_0x5801ef,'function':_0x1013c9,'unitId':_0x15d103[_0x4e48f8(0x2e7)](),'argsOfFunction':JSON[_0x4e48f8(0x453)](_0x24595f),'invokeId':(_0x221d88=_0x117b3d['invokeId'])==null?'':_0x221d88,'executionId':(_0x5a5c6c=_0x117b3d[_0x4e48f8(0x23f)])==null?'':_0x5a5c6c};try{let _0x1d9454=await this[_0x4e48f8(0x46d)][_0x4e48f8(0x1f1)](_0x4602a7,{'body':_0x204e7b});return _0x1d9454[_0x4e48f8(0x265)][_0x4e48f8(0x293)]&&_0x1d9454[_0x4e48f8(0x265)][_0x4e48f8(0x293)]['code']!==_0x38087c['OK']?_0x4e48f8(0x2c2):_0x1d9454['body'][_0x4e48f8(0x33d)];}catch{return _0x4e48f8(0x2c2);}}};cr=Y([J(0x0,_0x1ff84b),J(0x1,_0x54edce(_0x42f426)),J(0x2,_0x188328)],cr);const lr=0x7530,ur=_0x12e69f(0x406);var dr=class extends _0xfa11d4{constructor(){const _0x319803=_0x12e69f;super(),q(this,_0x319803(0x241),_0x19564d()),q(this,_0x319803(0x37a),new Set()),q(this,_0x319803(0x378),new Map()),q(this,_0x319803(0x201),null),q(this,_0x319803(0x2cc),new Map()),q(this,_0x319803(0x353),new Map()),this[_0x319803(0x40e)]();}[_0x12e69f(0x3cc)](){const _0x168ece=_0x12e69f;super[_0x168ece(0x3cc)](),this['_clearOtherTimers']['forEach']((_0x565183,_0x498d68)=>this['_removeClearOtherTimer'](_0x498d68)),this[_0x168ece(0x201)]&&window[_0x168ece(0x22b)](this[_0x168ece(0x201)]);}[_0x12e69f(0x217)](_0x44e8be){const _0x134a8b=_0x12e69f;return this[_0x134a8b(0x2e4)](_0x44e8be)[_0x134a8b(0x3b0)](_0x1e393b());}[_0x12e69f(0x226)](_0x2120e6){const _0x4bfdd9=_0x12e69f;this[_0x4bfdd9(0x37a)][_0x4bfdd9(0x385)]===0x0&&this[_0x4bfdd9(0x28c)](),this[_0x4bfdd9(0x37a)][_0x4bfdd9(0x31d)](_0x2120e6),this[_0x4bfdd9(0x3e7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x2120e6],'isForwarded':!0x1});}[_0x12e69f(0x3b6)](_0x13683a){const _0x31fd87=_0x12e69f;this['_selfUnitIDs']['delete'](_0x13683a),this[_0x31fd87(0x37a)][_0x31fd87(0x385)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x31fd87(0x201)]);}[_0x12e69f(0x40e)](){const _0x306693=_0x12e69f;this[_0x306693(0x432)](_0x242400(_0x3103d7(window,'storage')['subscribe'](_0x4b00cc=>{const _0x530841=_0x306693;if(_0x4b00cc[_0x530841(0x318)]!==ur||!_0x4b00cc[_0x530841(0x3bd)])return;let _0x5e688e=JSON[_0x530841(0x42d)](_0x4b00cc['newValue']);this['_handleEvent'](_0x5e688e);}))),window[_0x306693(0x440)](_0x306693(0x2db),()=>this[_0x306693(0x3e7)]({'type':0x1,'memberID':this[_0x306693(0x241)],'unitIDs':Array[_0x306693(0x212)](this[_0x306693(0x37a)])}));}[_0x12e69f(0x395)](_0x3afd98){const _0x1182dd=_0x12e69f;switch(_0x3afd98['type']){case 0x0:this[_0x1182dd(0x34a)](_0x3afd98);break;case 0x1:this[_0x1182dd(0x3fd)](_0x3afd98);break;case 0x2:this[_0x1182dd(0x24d)](_0x3afd98);break;}}[_0x12e69f(0x34a)](_0x474b08){const _0x4dfd9b=_0x12e69f;let {unitIDs:_0xedb21f,memberID:_0x299118,isForwarded:_0x237d2b}=_0x474b08;_0xedb21f[_0x4dfd9b(0x2cb)](_0x522d11=>{const _0x4ca0d1=_0x4dfd9b;if(!_0x237d2b&&this[_0x4ca0d1(0x378)][_0x4ca0d1(0x2b5)](_0x522d11)&&this[_0x4ca0d1(0x2e4)](_0x522d11)[_0x4ca0d1(0x2f7)](_0x394b28['OTHER_CLIENTS_EDITING']),!this[_0x4ca0d1(0x378)][_0x4ca0d1(0x2b5)](_0x522d11)||!this[_0x4ca0d1(0x378)]['get'](_0x522d11)[_0x4ca0d1(0x2b5)](_0x299118)){let _0x406655=this[_0x4ca0d1(0x378)][_0x4ca0d1(0x3f2)](_0x522d11)||new Set();_0x406655[_0x4ca0d1(0x31d)](_0x299118),this[_0x4ca0d1(0x378)][_0x4ca0d1(0x32b)](_0x522d11,_0x406655),this[_0x4ca0d1(0x375)](_0x299118);}}),_0x237d2b||this[_0x4dfd9b(0x3e7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4dfd9b(0x37a)]],'isForwarded':!0x0});}[_0x12e69f(0x375)](_0x4ebfbf){const _0x132db2=_0x12e69f;this[_0x132db2(0x242)](_0x4ebfbf);let _0x41e310=window['setTimeout'](()=>{const _0x2bda2d=_0x132db2;this[_0x2bda2d(0x378)][_0x2bda2d(0x2cb)](_0x4aeec0=>{_0x4aeec0['delete'](_0x4ebfbf);});},lr*0x2);this[_0x132db2(0x2cc)][_0x132db2(0x32b)](_0x4ebfbf,_0x41e310);}[_0x12e69f(0x242)](_0x35fb0e){const _0x38cb08=_0x12e69f;if(this['_clearOtherTimers'][_0x38cb08(0x2b5)](_0x35fb0e)){let _0x3b7c6f=this[_0x38cb08(0x2cc)][_0x38cb08(0x3f2)](_0x35fb0e);_0x3b7c6f&&window[_0x38cb08(0x466)](_0x3b7c6f),this[_0x38cb08(0x2cc)][_0x38cb08(0x32b)](_0x35fb0e,null);}}[_0x12e69f(0x3fd)](_0x129542){const _0x322f27=_0x12e69f;let {memberID:_0x54a0ee,unitIDs:_0x472398}=_0x129542;_0x472398[_0x322f27(0x2cb)](_0x3f147b=>{const _0x498023=_0x322f27;var _0x14c723;let _0x392437=this[_0x498023(0x378)][_0x498023(0x3f2)](_0x3f147b);_0x392437&&(_0x392437[_0x498023(0x28a)](_0x54a0ee),(_0x14c723=this[_0x498023(0x2e4)](_0x3f147b))==null||_0x14c723['next'](_0x392437[_0x498023(0x385)]===0x0?_0x394b28['NO_OTHER_CLIENTS_EDITING']:_0x394b28[_0x498023(0x295)]));}),this[_0x322f27(0x242)](_0x54a0ee);}[_0x12e69f(0x24d)](_0x20e4c1){const _0x153d7a=_0x12e69f;this['_scheduleClearOtherTimer'](_0x20e4c1[_0x153d7a(0x417)]);}[_0x12e69f(0x3e7)](_0x1701f5){const _0x30bb7f=_0x12e69f;localStorage['setItem'](ur,JSON[_0x30bb7f(0x453)](_0x1701f5));}['_scheduleHeartbeat'](){const _0x133fa0=_0x12e69f;this[_0x133fa0(0x201)]=window[_0x133fa0(0x3ad)](()=>{const _0x505102=_0x133fa0;this[_0x505102(0x3e7)]({'type':0x2,'memberID':this[_0x505102(0x241)]});},lr);}['_ensureSubject'](_0x456e59){const _0x400316=_0x12e69f;return this[_0x400316(0x353)]['has'](_0x456e59)||this[_0x400316(0x353)][_0x400316(0x32b)](_0x456e59,new _0x2c5746(_0x394b28[_0x400316(0x3d4)])),this[_0x400316(0x353)]['get'](_0x456e59);}};export{sr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Gn as IURLService,cr as RemoteUniscriptService,Bn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,dr as WebBrowserSingleActiveUnitService};
|
|
1
|
+
const _0x452ab3=_0x4303;(function(_0x295f32,_0x8f6b10){const _0xd57292=_0x4303,_0x52e06b=_0x295f32();while(!![]){try{const _0x27953c=-parseInt(_0xd57292(0x1da))/0x1+-parseInt(_0xd57292(0x2c5))/0x2+-parseInt(_0xd57292(0x1b1))/0x3+parseInt(_0xd57292(0x143))/0x4*(-parseInt(_0xd57292(0x14c))/0x5)+parseInt(_0xd57292(0x2d8))/0x6*(parseInt(_0xd57292(0x35d))/0x7)+parseInt(_0xd57292(0x248))/0x8+parseInt(_0xd57292(0x32d))/0x9;if(_0x27953c===_0x8f6b10)break;else _0x52e06b['push'](_0x52e06b['shift']());}catch(_0x6f80a3){_0x52e06b['push'](_0x52e06b['shift']());}}}(_0x3153,0x5aedc));import{BOARD_TOP_RIGHT_MENU_LEADING_PART as _0x4bf2fb,IBoardElementStateService as _0x10d370,getBoardElementRenderObjectKey as _0x420347}from'@univerjs-pro/boards-ui';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2cf0af,CollaborationController as _0x2b8461,CollaborationSessionService as _0xb68c6c,CollaborationSocketService as _0x329638,CollaborationStatus as _0x20eda4,CollaborationUIEventId as _0x456bfe,CollaborationUIEventService as _0x48fa63,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x2c5f2e,DEFAULT_WS_SESSION_TICKET_URL as _0x58594e,DataLoaderService as _0x56925a,DocCollaborationEntity as _0x31f9a8,ILocalCacheService as _0x528e3,LOCAL_CACHE_INTERVAL as _0x4316aa,LOCAL_CACHE_INTERVAL_KEY as _0x5c0204,MemberService as _0x21b59f,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x190526,SessionStatus as _0x16bde3,UnitStatus as _0x3151a9,UniverCollaborationClientPlugin as _0x4d0e74,getLocalCacheKey as _0x43d141}from'@univerjs-pro/collaboration-client';import{COLORS as _0x1e5ab0,CanceledError as _0x551878,ColorKit as _0x179c0b,DOC_RANGE_TYPE as _0x322a43,DependentOn as _0x3a9b19,Disposable as _0x948ae6,DisposableCollection as _0x136e2d,ICommandService as _0x394c60,IConfigService as _0x52e5c3,IImageIoService as _0x567ec0,ILocalStorageService as _0x46d274,ILogService as _0x4b7488,IUniverInstanceService as _0x5df53a,Inject as _0x322f48,Injector as _0x560cc2,LocaleService as _0x27fdee,Optional as _0x11517c,Plugin as _0x32bcb0,PluginService as _0x4dcfbc,Rectangle as _0x54ecbe,RxDisposable as _0x4bb5d8,ThemeService as _0x1a4d06,Tools as _0x28669e,UniverInstanceType as _0x2b61c5,Workbook as _0x52cfc6,createIdentifier as _0x240738,debounce as _0x913187,fromEventSubject as _0x47deb5,generateRandomId as _0x1d5fe5,isFormulaId as _0x35a014,isFormulaString as _0x427317,isInternalEditorID as _0x182b1b,merge as _0x3e7795,mergeOverrideWithDependencies as _0x1ff69f,registerDependencies as _0x246227,toDisposable as _0xe9bbd4,touchDependencies as _0x436f7b}from'@univerjs/core';import{BuiltInUIPart as _0x36b06a,IBeforeCloseService as _0x3acd49,IMessageService as _0x193ce1,INotificationService as _0x4225c0,IShortcutService as _0x509e48,IUIPartsService as _0x5237c9,connectInjector as _0x18c981,useDependency as _0x196ad6,useObservable as _0x2fc0e1}from'@univerjs/ui';import{BehaviorSubject as _0xa52b92,Subject as _0x5a021d,combineLatest as _0xfd7d61,debounceTime as _0x18229c,distinctUntilChanged as _0x37c429,filter as _0x37f0ff,fromEvent as _0x23eb4c,mapTo as _0x20d1bb,merge as _0x482fb4,of as _0x40dbc4,shareReplay as _0x20ee6d,switchMap as _0x4362fa,takeUntil as _0x29e831}from'rxjs';function _0x4303(_0x455605,_0x3164e3){_0x455605=_0x455605-0xf4;const _0x3153dc=_0x3153();let _0x430378=_0x3153dc[_0x455605];return _0x430378;}import{distinctUntilChanged as _0x3aaaf9,filter as _0x2d0fd5,map as _0x4283a7,switchMap as _0x47d1c9,takeUntil as _0x3a7f40,throttleTime as _0x4e33e1}from'rxjs/operators';import{Button as _0x4b42bf,MessageType as _0x5c4a9b,Tooltip as _0x591fb8,clsx as _0x38eab6}from'@univerjs/design';import{LoadingMultiIcon as _0x39840d,OffLineIcon as _0x48f8f9,OnLineIcon as _0x5da2a8,WarningIcon as _0x25bf5d}from'@univerjs/icons';import{createElement as _0x324cac,useCallback as _0x3e4c92,useMemo as _0x3e449d}from'react';import{Fragment as _0x108a64,jsx as _0xade9c8,jsxs as _0x37db6f}from'react/jsx-runtime';import{IRenderManagerService as _0x1ad460,Rect as _0x56c250,RegularPolygon as _0x28e5a5,SHEET_VIEWPORT_KEY as _0x1f77ba,Shape as _0x40b7f6,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x423af5,Vector2 as _0x46c9ea,getColor as _0x491c30}from'@univerjs/engine-render';import{HTTPService as _0x321193,ISocketService as _0x5c14d7,WebSocketService as _0x5168cd}from'@univerjs/network';import{DocIMEInputManagerService as _0x2a107e,IDocClipboardService as _0x3716f0,NodePositionConvertToCursor as _0x5a4c20,NodePositionConvertToRectRange as _0x55a77c,SetDocZoomRatioOperation as _0x431f46,TEXT_RANGE_LAYER_INDEX as _0x4ae077}from'@univerjs/docs-ui';import{CollaborationEvent as _0xdd58a5,ISnapshotServerService as _0x3d5e47,ITransformService as _0x444493,RevisionService as _0x39ad27,SnapshotLoadStage as _0x42d031,SnapshotLoadingService as _0x497eef,isTransformMutationFailure as _0x6fcace,isTransformMutationsWithChangesetSuccess as _0xec41cd}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x13fe95,DocSkeletonManagerService as _0x457f3f,DocStateChangeManagerService as _0x2e1781,RichTextEditingMutation as _0xce0151,SetTextSelectionsOperation as _0x56abdc}from'@univerjs/docs';import{FormulaExecuteStageType as _0x383f58,FormulaExecutedStateType as _0x1c71a0,SetFormulaCalculationNotificationMutation as _0x301e59,SetFormulaCalculationStartMutation as _0x5c61d9,deserializeRangeWithSheet as _0x56ef97,serializeRangeWithSheet as _0x520cda}from'@univerjs/engine-formula';import{EffectRefRangId as _0x3d5d65,RefRangeService as _0xfc9140,SetSelectionsOperation as _0x5e5e6b,SetWorksheetActivateCommand as _0x5d481e,SheetsSelectionsService as _0x370005,handleDeleteRangeMoveLeft as _0x1ddea8,handleDeleteRangeMoveUp as _0x565549,handleIRemoveCol as _0x5d1d00,handleIRemoveRow as _0x3f165b,handleInsertCol as _0x4822ad,handleInsertRangeMoveDown as _0x3a98d8,handleInsertRangeMoveRight as _0x532ea1,handleInsertRow as _0x194c9b,handleMoveRange as _0x2edd50,runRefRangeMutations as _0x31b166}from'@univerjs/sheets';import{ISlideDrawingStateService as _0x19cbb5,buildDrawingOKey as _0x19749c}from'@univerjs-pro/slides-ui';import{ISheetLoadingRenderService as _0x1d4a2e,SheetSkeletonManagerService as _0x24ac8d,getCoordByCell as _0x374949,getSheetObject as _0x1b4214}from'@univerjs/sheets-ui';import{IRemoteInstanceService as _0x5dd34e}from'@univerjs/rpc';import{ErrorCode as _0x11291a}from'@univerjs/protocol';function cn(_0x3e4861){const _0x2b8e15=_0x4303;switch(_0x3e4861){case _0x20eda4[_0x2b8e15(0x2f0)]:return{'icon':_0xade9c8(_0x48f8f9,{}),'colorClass':'univer-text-red-500','i18nKey':_0x2b8e15(0x263),'tooltipKey':_0x2b8e15(0x366),'clickable':!0x0,'indicator':_0x2b8e15(0x358)};case _0x20eda4[_0x2b8e15(0x23e)]:return{'icon':_0xade9c8(_0x48f8f9,{}),'colorClass':_0x2b8e15(0x24d),'i18nKey':_0x2b8e15(0x1c5),'clickable':!0x1,'indicator':_0x2b8e15(0x358)};case _0x20eda4[_0x2b8e15(0x23b)]:return{'icon':_0xade9c8(_0x39840d,{}),'colorClass':_0x2b8e15(0x13e),'i18nKey':_0x2b8e15(0x127),'clickable':!0x1,'indicator':'spin'};case _0x20eda4[_0x2b8e15(0x119)]:return{'icon':_0xade9c8(_0x5da2a8,{}),'colorClass':_0x2b8e15(0x310),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x2b8e15(0x358)};case _0x20eda4[_0x2b8e15(0x352)]:case _0x20eda4[_0x2b8e15(0x1b7)]:return{'icon':_0xade9c8(_0x39840d,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x2b8e15(0x326),'clickable':!0x1,'indicator':'spin'};case _0x20eda4[_0x2b8e15(0x2d3)]:return{'icon':_0xade9c8(_0x39840d,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x2b8e15(0x326),'clickable':!0x1,'indicator':_0x2b8e15(0x192)};case _0x20eda4[_0x2b8e15(0x2c8)]:return{'icon':_0xade9c8(_0x5da2a8,{}),'colorClass':_0x2b8e15(0x14a),'i18nKey':_0x2b8e15(0x16a),'clickable':!0x1,'indicator':'static'};}}function ln(_0x4d180a){const _0x4ddd95=_0x4303;let {status$:_0x10ca3b}=_0x4d180a,_0x2ba533=_0x2fc0e1(_0x10ca3b,_0x20eda4[_0x4ddd95(0x119)]),_0x2c3ab6=_0x196ad6(_0x27fdee),_0x18dd41=_0x196ad6(_0xb68c6c),_0x3bef33=_0x3e449d(()=>cn(_0x2ba533),[_0x2ba533]),_0x219408=_0x2ba533!==_0x20eda4['OFFLINE'],_0x30ea98=_0x2c3ab6['t'](_0x3bef33[_0x4ddd95(0x108)]),_0x1b81b8=_0x3bef33[_0x4ddd95(0x152)]?_0x2c3ab6['t'](_0x3bef33[_0x4ddd95(0x152)]):_0x30ea98,_0x4efdec=_0x3e4c92(()=>{const _0x400cec=_0x4ddd95;_0x219408||_0x18dd41[_0x400cec(0x29a)]();},[_0x219408,_0x18dd41]),_0x408fca=_0x3e4c92(_0xc27ddd=>{const _0x53eef1=_0x4ddd95;!_0x219408&&(_0xc27ddd[_0x53eef1(0x1a4)]===_0x53eef1(0x372)||_0xc27ddd[_0x53eef1(0x1a4)]==='\x20')&&(_0xc27ddd[_0x53eef1(0x207)](),_0x18dd41['reconnect']());},[_0x219408,_0x18dd41]),_0x15791e=_0xade9c8('span',{'className':_0x38eab6('univer-flex\x20univer-items-center\x20univer-justify-center',_0x4ddd95(0x323),_0x3bef33['colorClass'],{'univer-animate-spin':_0x3bef33[_0x4ddd95(0x109)]===_0x4ddd95(0x192),'univer-animate-pulse':_0x3bef33[_0x4ddd95(0x109)]===_0x4ddd95(0x16c)}),'aria-hidden':_0x4ddd95(0x1ed),'children':_0x3bef33[_0x4ddd95(0x133)]}),_0x52f158=_0xade9c8('span',{'className':_0x38eab6('univer-flex\x20univer-items-center\x20univer-justify-center',_0x4ddd95(0x31b),_0x4ddd95(0x19b),_0x4ddd95(0x11c),_0x4ddd95(0x226),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x3bef33[_0x4ddd95(0x1d2)],'univer-cursor-default':!_0x3bef33[_0x4ddd95(0x1d2)]}),'children':_0x15791e});return _0x3bef33['clickable']?_0xade9c8(_0x591fb8,{'title':_0x1b81b8,'placement':'bottom','children':_0xade9c8(_0x4ddd95(0x33d),{'type':'button','onClick':_0x4efdec,'onKeyDown':_0x408fca,'className':_0x38eab6(_0x4ddd95(0x2b2),_0x4ddd95(0x2f7),'univer-m-0\x20univer-p-0','univer-appearance-none'),'aria-label':_0x30ea98+_0x4ddd95(0x31d)+_0x1b81b8,'role':_0x4ddd95(0x20b),'aria-live':'polite','aria-atomic':_0x4ddd95(0x1ed),'children':_0x52f158})}):_0xade9c8(_0x591fb8,{'title':_0x1b81b8,'placement':_0x4ddd95(0x368),'children':_0xade9c8(_0x4ddd95(0x1eb),{'className':_0x38eab6(_0x4ddd95(0x2b2),_0x4ddd95(0x2f7),'univer-m-0\x20univer-p-0'),'aria-label':_0x30ea98,'role':_0x4ddd95(0x20b),'aria-live':_0x4ddd95(0x34d),'aria-atomic':_0x4ddd95(0x1ed),'children':_0x52f158})});}function K(_0x243a4e){'@babel/helpers - typeof';const _0x5abf79=_0x4303;return K=typeof Symbol==_0x5abf79(0xf8)&&typeof Symbol['iterator']==_0x5abf79(0x189)?function(_0x36cbab){return typeof _0x36cbab;}:function(_0xcaaf95){const _0x3c0d38=_0x5abf79;return _0xcaaf95&&typeof Symbol=='function'&&_0xcaaf95['constructor']===Symbol&&_0xcaaf95!==Symbol['prototype']?_0x3c0d38(0x189):typeof _0xcaaf95;},K(_0x243a4e);}function un(_0x26e126,_0x1b5bfe){const _0x3dfb37=_0x4303;if(K(_0x26e126)!=_0x3dfb37(0x20e)||!_0x26e126)return _0x26e126;var _0x82546=_0x26e126[Symbol['toPrimitive']];if(_0x82546!==void 0x0){var _0x145599=_0x82546['call'](_0x26e126,_0x1b5bfe||'default');if(K(_0x145599)!=_0x3dfb37(0x20e))return _0x145599;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b5bfe===_0x3dfb37(0x28b)?String:Number)(_0x26e126);}function dn(_0x49ddc6){const _0x5a5a85=_0x4303;var _0xed3b5a=un(_0x49ddc6,'string');return K(_0xed3b5a)==_0x5a5a85(0x189)?_0xed3b5a:_0xed3b5a+'';}function q(_0x25e955,_0x3a1fd9,_0x3d4aec){return(_0x3a1fd9=dn(_0x3a1fd9))in _0x25e955?Object['defineProperty'](_0x25e955,_0x3a1fd9,{'value':_0x3d4aec,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25e955[_0x3a1fd9]=_0x3d4aec,_0x25e955;}function J(_0x45c419,_0x47b292){return function(_0x151c0f,_0xe75f6d){_0x47b292(_0x151c0f,_0xe75f6d,_0x45c419);};}function Y(_0x5bbd26,_0x1df498,_0x3ef48f,_0xdf05e4){const _0x1a1490=_0x4303;var _0x5ef1d7=arguments[_0x1a1490(0x267)],_0x45a781=_0x5ef1d7<0x3?_0x1df498:_0xdf05e4===null?_0xdf05e4=Object[_0x1a1490(0x342)](_0x1df498,_0x3ef48f):_0xdf05e4,_0x552716;if(typeof Reflect==_0x1a1490(0x20e)&&typeof Reflect[_0x1a1490(0x287)]==_0x1a1490(0xf8))_0x45a781=Reflect[_0x1a1490(0x287)](_0x5bbd26,_0x1df498,_0x3ef48f,_0xdf05e4);else{for(var _0x12cc2a=_0x5bbd26['length']-0x1;_0x12cc2a>=0x0;_0x12cc2a--)(_0x552716=_0x5bbd26[_0x12cc2a])&&(_0x45a781=(_0x5ef1d7<0x3?_0x552716(_0x45a781):_0x5ef1d7>0x3?_0x552716(_0x1df498,_0x3ef48f,_0x45a781):_0x552716(_0x1df498,_0x3ef48f))||_0x45a781);}return _0x5ef1d7>0x3&&_0x45a781&&Object[_0x1a1490(0x14e)](_0x1df498,_0x3ef48f,_0x45a781),_0x45a781;}let X=class extends _0x948ae6{constructor(_0x20bd1a,_0x5c2070,_0x32ac35,_0x207abb){const _0x212d4d=_0x4303;super(),this[_0x212d4d(0x1ce)]=_0x20bd1a,this[_0x212d4d(0x34e)]=_0x5c2070,this['_collaborationController']=_0x32ac35,this[_0x212d4d(0x35e)]=_0x207abb,q(this,_0x212d4d(0xf6),new _0xa52b92(_0x20eda4['NOT_COLLAB'])),this[_0x212d4d(0x2d7)](),this[_0x212d4d(0x236)]();}['_initStatusListener'](){const _0x4e77c7=_0x4303;this[_0x4e77c7(0x293)](_0x482fb4(this[_0x4e77c7(0x1ce)][_0x4e77c7(0x297)],this[_0x4e77c7(0x1ce)][_0x4e77c7(0x107)](_0x2b61c5[_0x4e77c7(0x105)]),this[_0x4e77c7(0x1ce)][_0x4e77c7(0x107)](_0x2b61c5[_0x4e77c7(0x1f6)]))[_0x4e77c7(0x327)](_0x4283a7(()=>pn(this[_0x4e77c7(0x1ce)])),_0x3aaaf9(),_0x4362fa(_0x1d7c45=>_0x1d7c45?this[_0x4e77c7(0xf9)][_0x4e77c7(0x2ca)](_0x1d7c45):_0x40dbc4(null)),_0x4362fa(_0xaae904=>_0xaae904?_0xaae904[_0x4e77c7(0x1b5)]:_0x40dbc4(_0x20eda4[_0x4e77c7(0x119)])))['subscribe'](_0x40fb4e=>{const _0x582d02=_0x4e77c7;this[_0x582d02(0xf6)][_0x582d02(0xfb)](_0x40fb4e);}));}[_0x452ab3(0x2d7)](){const _0xb365b0=_0x452ab3;this[_0xb365b0(0x293)](this[_0xb365b0(0x35e)][_0xb365b0(0x2e0)](_0x36b06a[_0xb365b0(0x2b0)],()=>_0x18c981(hn({'status$':this[_0xb365b0(0xf6)]['asObservable']()}),this['_injector'])));}};X=Y([J(0x0,_0x5df53a),J(0x1,_0x322f48(_0x560cc2)),J(0x2,_0x322f48(_0x2b8461)),J(0x3,_0x5237c9)],X);let fn=class extends _0x948ae6{constructor(_0x5d53bb,_0xea19d0,_0x3b8be7,_0x5439f5){const _0x39d8b3=_0x452ab3;super(),this[_0x39d8b3(0x1ce)]=_0x5d53bb,this['_injector']=_0xea19d0,this[_0x39d8b3(0xf9)]=_0x3b8be7,this['_uiPartsService']=_0x5439f5,q(this,_0x39d8b3(0xf6),new _0xa52b92(_0x20eda4[_0x39d8b3(0x119)])),this[_0x39d8b3(0x2d7)](),this[_0x39d8b3(0x236)]();}[_0x452ab3(0x236)](){const _0xa2d9d5=_0x452ab3;this['disposeWithMe'](_0x482fb4(_0x40dbc4(null),this['_univerInstanceService'][_0xa2d9d5(0x107)](_0x2b61c5['UNIVER_BOARD']))['pipe'](_0x4283a7(()=>mn(this[_0xa2d9d5(0x1ce)])),_0x3aaaf9(),_0x4362fa(_0x1069b5=>_0x1069b5?this['_collaborationController'][_0xa2d9d5(0x2ca)](_0x1069b5):_0x40dbc4(null)),_0x4362fa(_0x112373=>_0x112373?_0x112373['status$']:_0x40dbc4(_0x20eda4[_0xa2d9d5(0x119)])))[_0xa2d9d5(0x290)](_0x58a652=>{const _0x46de29=_0xa2d9d5;this['_status$'][_0x46de29(0xfb)](_0x58a652);}));}['_initStatusComponent'](){const _0x36f95f=_0x452ab3;this['disposeWithMe'](this['_uiPartsService'][_0x36f95f(0x2e0)](_0x4bf2fb,()=>_0x18c981(hn({'status$':this[_0x36f95f(0xf6)][_0x36f95f(0x1e0)]()}),this[_0x36f95f(0x34e)])));}};fn=Y([J(0x0,_0x5df53a),J(0x1,_0x322f48(_0x560cc2)),J(0x2,_0x322f48(_0x2b8461)),J(0x3,_0x5237c9)],fn);function pn(_0x33c451){const _0x2bad22=_0x452ab3;let _0x277bbe=_0x33c451[_0x2bad22(0x351)](),_0x1c886f=_0x277bbe==null?void 0x0:_0x277bbe['getUnitId']();if(_0x1c886f&&!_0x182b1b(_0x1c886f))return _0x1c886f;let _0x288c02=_0x33c451[_0x2bad22(0x2f5)](_0x2b61c5[_0x2bad22(0x105)]),_0x1e1303=_0x288c02==null?void 0x0:_0x288c02[_0x2bad22(0x155)]();if(_0x1e1303&&!_0x182b1b(_0x1e1303))return _0x1e1303;let _0x1c760a=_0x33c451[_0x2bad22(0x2f5)](_0x2b61c5[_0x2bad22(0x1f6)]);if(_0x1c760a)return _0x1c760a['getUnitId']();let _0x5a3286=_0x33c451[_0x2bad22(0x36c)](_0x2b61c5[_0x2bad22(0x105)])['find'](_0x19ddac=>!_0x182b1b(_0x19ddac['getUnitId']()));return _0x5a3286?_0x5a3286[_0x2bad22(0x155)]():null;}function mn(_0x358313){var _0x4db190;let _0x416b2c=_0x358313['getCurrentUnitOfType'](_0x2b61c5['UNIVER_BOARD']);return(_0x4db190=_0x416b2c==null?void 0x0:_0x416b2c['getUnitId']())==null?null:_0x4db190;}function hn(_0x4391f2){let {status$:_0x295971}=_0x4391f2;return function(){return _0xade9c8(ln,{'status$':_0x295971});};}var gn=_0x452ab3(0x29d),_n=_0x452ab3(0x2ce);const vn={};let yn=class extends _0x4bb5d8{constructor(_0x2a3305,_0x32f0be){const _0x62830=_0x452ab3;super(),this['_docClipboardService']=_0x2a3305,this[_0x62830(0x2c4)]=_0x32f0be,this[_0x62830(0x1e3)]();}[_0x452ab3(0x1e3)](){const _0x282bb9=_0x452ab3;let _0x350e75=this;this['disposeWithMe'](this[_0x282bb9(0x205)][_0x282bb9(0x17f)]({'onBeforePasteImage':async _0x1c876b=>{const _0x50d341=_0x282bb9;let _0x47d3ab=await _0x350e75['_imageIoService'][_0x50d341(0x254)](_0x1c876b);return _0x47d3ab?{'source':_0x47d3ab[_0x50d341(0x1a6)],'imageSourceType':_0x47d3ab[_0x50d341(0x2a9)]}:null;}}));}};yn=Y([J(0x0,_0x3716f0),J(0x1,_0x567ec0)],yn);function bn(_0x28c207,_0x1c0262){const _0x307c2b=_0x452ab3;_0x28c207[_0x307c2b(0x116)](),_0x28c207[_0x307c2b(0x151)]=_0x307c2b(0x315);let _0x431901=_0x28c207[_0x307c2b(0x170)](_0x1c0262)[_0x307c2b(0x1fa)];return _0x28c207[_0x307c2b(0x134)](),Math[_0x307c2b(0x339)](_0x431901+0x8,0xc8);}function xn(_0x54c829,_0x89e3d9){const _0x35d1bf=_0x452ab3;var _0x352484,_0x58eb55,_0x39ce0b;let {radius:_0x5de3c1,width:_0xadec78,height:_0x5d8854}=_0x89e3d9;_0x5de3c1=(_0x352484=_0x5de3c1)==null?0x0:_0x352484,_0xadec78=(_0x58eb55=_0xadec78)==null?0x1e:_0x58eb55,_0x5d8854=(_0x39ce0b=_0x5d8854)==null?0x1e:_0x39ce0b;let _0x2fc363=0x0,_0x36cf56=0x0,_0x571068=0x0;_0x2fc363=_0x36cf56=_0x571068=Math['min'](_0x5de3c1,_0xadec78/0x2,_0x5d8854/0x2),_0x54c829['beginPath'](),_0x54c829[_0x35d1bf(0x2a8)](_0x2fc363,0x0),_0x54c829[_0x35d1bf(0x162)](_0xadec78-_0x36cf56,0x0),_0x54c829['arc'](_0xadec78-_0x36cf56,_0x36cf56,_0x36cf56,Math['PI']*0x3/0x2,0x0,!0x1),_0x54c829['lineTo'](_0xadec78,_0x5d8854-_0x571068),_0x54c829[_0x35d1bf(0x35b)](_0xadec78-_0x571068,_0x5d8854-_0x571068,_0x571068,0x0,Math['PI']/0x2,!0x1),_0x54c829[_0x35d1bf(0x162)](0x0,_0x5d8854),_0x54c829['lineTo'](0x0,_0x2fc363),_0x54c829[_0x35d1bf(0x35b)](_0x2fc363,_0x2fc363,_0x2fc363,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x54c829['closePath'](),_0x89e3d9[_0x35d1bf(0x14d)]&&(_0x54c829[_0x35d1bf(0x116)](),_0x54c829[_0x35d1bf(0x17e)]=_0x89e3d9[_0x35d1bf(0x14d)],_0x89e3d9[_0x35d1bf(0x334)]==='evenodd'?_0x54c829[_0x35d1bf(0x14d)](_0x35d1bf(0x210)):_0x54c829[_0x35d1bf(0x14d)](),_0x54c829[_0x35d1bf(0x134)]());}var Sn=class e extends _0x40b7f6{constructor(_0x23187b,_0x4d67bc){const _0x481ee2=_0x452ab3;super(_0x23187b,_0x4d67bc),q(this,_0x481ee2(0x238),void 0x0),q(this,_0x481ee2(0x364),void 0x0),this[_0x481ee2(0x238)]=_0x4d67bc==null?void 0x0:_0x4d67bc[_0x481ee2(0x238)],this[_0x481ee2(0x364)]=_0x4d67bc==null?void 0x0:_0x4d67bc['text'];}static['drawWith'](_0xd7e0c,_0x3161dc){const _0x121b88=_0x452ab3;let {text:_0x31bf98,color:_0x245257}=_0x3161dc;_0xd7e0c[_0x121b88(0x116)](),_0xd7e0c[_0x121b88(0x151)]=_0x121b88(0x202);let _0x47ec91=_0xd7e0c['measureText'](_0x31bf98)['width'];if(xn(_0xd7e0c,{'height':0x14,'radius':0x4,'width':bn(_0xd7e0c,_0x31bf98),'fill':_0x245257,'evented':!0x1}),_0xd7e0c[_0x121b88(0x17e)]=_0x121b88(0x363),_0x47ec91>0xc0){let _0x3a7d62='',_0x39036e=0x0;for(let _0x5c43bc of _0x31bf98){let _0xd562ae=_0xd7e0c['measureText'](_0x5c43bc)[_0x121b88(0x1fa)];if(_0x39036e+_0xd562ae<=0xc0-_0xd7e0c[_0x121b88(0x170)](_0x121b88(0x18c))['width'])_0x3a7d62+=_0x5c43bc,_0x39036e+=_0xd562ae;else{_0x3a7d62+=_0x121b88(0x18c);break;}}_0xd7e0c[_0x121b88(0x100)](_0x3a7d62,0x4,0xf);}else _0xd7e0c[_0x121b88(0x100)](_0x31bf98,0x4,0xf);_0xd7e0c[_0x121b88(0x134)]();}[_0x452ab3(0x12d)](_0x89829f){e['drawWith'](_0x89829f,this);}};const Cn=0x138a;var wn=class extends _0x40b7f6{constructor(_0x545ea4,_0x37099d){const _0x209692=_0x452ab3;super(_0x545ea4,{..._0x37099d,'evented':!0x1}),q(this,_0x209692(0x140),_0x209692(0x27e)),q(this,_0x209692(0x245),''),q(this,_0x209692(0x32a),!0x0),_0x37099d&&this['setShapeProps'](_0x37099d);}[_0x452ab3(0x111)](_0x572e3a){const _0x35b8ea=_0x452ab3;var _0x4bbe5d,_0x459965,_0x372fef,_0x286809,_0x4a0285,_0x54ce30,_0x2554e2,_0x52d699;this[_0x35b8ea(0x140)]=(_0x4bbe5d=_0x572e3a[_0x35b8ea(0x238)])==null?this[_0x35b8ea(0x140)]:_0x4bbe5d,this[_0x35b8ea(0x245)]=(_0x459965=_0x572e3a[_0x35b8ea(0x13c)])==null?this[_0x35b8ea(0x245)]:_0x459965,this[_0x35b8ea(0x32a)]=(_0x372fef=_0x572e3a[_0x35b8ea(0x276)])==null?this[_0x35b8ea(0x32a)]:_0x372fef,this[_0x35b8ea(0x115)]=!0x1,this[_0x35b8ea(0x33c)]({'left':(_0x286809=_0x572e3a[_0x35b8ea(0x2a2)])==null?this[_0x35b8ea(0x2a2)]:_0x286809,'top':(_0x4a0285=_0x572e3a[_0x35b8ea(0x28e)])==null?this['top']:_0x4a0285,'width':(_0x54ce30=_0x572e3a['width'])==null?this[_0x35b8ea(0x1fa)]:_0x54ce30,'height':(_0x2554e2=_0x572e3a['height'])==null?this['height']:_0x2554e2,'angle':(_0x52d699=_0x572e3a[_0x35b8ea(0x165)])==null?this[_0x35b8ea(0x165)]:_0x52d699});}[_0x452ab3(0x12d)](_0x33bdff){const _0x9d052e=_0x452ab3;_0x33bdff['save'](),_0x33bdff['strokeStyle']=this[_0x9d052e(0x140)],_0x33bdff[_0x9d052e(0x23f)]=this['strokeWidth']||1.5,_0x33bdff[_0x9d052e(0x2e1)]([0x6,0x4]),_0x33bdff[_0x9d052e(0x23a)](0x0,0x0,this[_0x9d052e(0x1fa)],this[_0x9d052e(0x30e)]),_0x33bdff[_0x9d052e(0x134)](),this['_showText']&&(_0x33bdff['save'](),_0x33bdff[_0x9d052e(0x17d)](0x1,0x0,0x0,0x1,this['width'],-0x14),Sn[_0x9d052e(0x30f)](_0x33bdff,{'text':this[_0x9d052e(0x245)],'color':this['_color']}),_0x33bdff[_0x9d052e(0x134)]());}};const Tn=[_0x452ab3(0x239),_0x452ab3(0x344),_0x452ab3(0x26e),_0x452ab3(0x1ff),_0x452ab3(0x35a),_0x452ab3(0x1fb)];var Z=class extends _0x948ae6{constructor(..._0x1cffb2){const _0x1aba4c=_0x452ab3;super(..._0x1cffb2),q(this,_0x1aba4c(0x260),new Map()),q(this,_0x1aba4c(0x24f),0x0);}[_0x452ab3(0x1fe)](_0x29bf5c){const _0x11ce4a=_0x452ab3;if(this[_0x11ce4a(0x260)][_0x11ce4a(0x1bd)](_0x29bf5c))return this[_0x11ce4a(0x260)][_0x11ce4a(0x379)](_0x29bf5c);let _0x33ae3a=Tn[this[_0x11ce4a(0x24f)]];return this[_0x11ce4a(0x24f)]=(this[_0x11ce4a(0x24f)]+0x1)%Tn[_0x11ce4a(0x267)],this['_assignedColors'][_0x11ce4a(0x2c2)](_0x29bf5c,_0x33ae3a),_0x33ae3a;}};function En(_0x3c7ffc){const _0x53b5ba=_0x452ab3;let _0x39f91c;try{_0x39f91c=JSON['parse'](_0x3c7ffc);}catch{return null;}if(typeof _0x39f91c!=_0x53b5ba(0x20e)||!_0x39f91c)return null;let _0x458a4e=_0x39f91c;if(_0x458a4e[_0x53b5ba(0x283)]!==_0x53b5ba(0x174)||typeof _0x458a4e['unitId']!=_0x53b5ba(0x28b)||typeof _0x458a4e['subUnitId']!=_0x53b5ba(0x28b))return null;let _0x1ad51a=Array['isArray'](_0x458a4e[_0x53b5ba(0x206)])?_0x458a4e[_0x53b5ba(0x206)][_0x53b5ba(0x28c)](_0x20a614=>typeof _0x20a614==_0x53b5ba(0x28b)):[],_0x5383e2=typeof _0x458a4e[_0x53b5ba(0x240)]==_0x53b5ba(0x28b)?_0x458a4e['focusedId']:null;return{'kind':'board-element-selection','unitId':_0x458a4e[_0x53b5ba(0x2a4)],'subUnitId':_0x458a4e['subUnitId'],'selectedIds':_0x1ad51a,'focusedId':_0x5383e2};}let Dn=class extends _0x4bb5d8{get[_0x452ab3(0x177)](){const _0xc53b3a=_0x452ab3;return this[_0xc53b3a(0x113)][_0xc53b3a(0x183)]();}get[_0x452ab3(0x1e4)](){const _0x342ac6=_0x452ab3;return this[_0x342ac6(0x1a1)][_0x342ac6(0x183)]();}constructor(_0x877a33,_0x35be54,_0x3ec8f5,_0x4c5d06,_0x48ed4b){const _0x165a6d=_0x452ab3;super(),this['unitID']=_0x877a33,this[_0x165a6d(0x11b)]=_0x35be54,this[_0x165a6d(0x367)]=_0x3ec8f5,this['_memberService']=_0x4c5d06,this[_0x165a6d(0x30d)]=_0x48ed4b,q(this,'_online',!0x1),q(this,'_init',!0x1),q(this,_0x165a6d(0x113),new _0xa52b92(new Map())),q(this,_0x165a6d(0x22e),this[_0x165a6d(0x113)]['asObservable']()),q(this,'_roomMembers$',new _0xa52b92([])),q(this,_0x165a6d(0x14f),this[_0x165a6d(0x1a1)][_0x165a6d(0x327)](_0x18229c(0x12c))),q(this,'_updateLocalCursor',_0x913187(_0x1703b9=>{const _0x31f76f=_0x165a6d;let _0x5f59e3=_0x1703b9[_0x31f76f(0x271)];if(!_0x5f59e3||_0x5f59e3[_0x31f76f(0x2a4)]!==this['unitID'])return;let _0x164ade={'kind':_0x31f76f(0x174),'unitId':_0x5f59e3['unitId'],'subUnitId':_0x5f59e3['subUnitId'],'selectedIds':_0x1703b9[_0x31f76f(0x206)][_0x31f76f(0x28c)](_0x39aa39=>typeof _0x39aa39==_0x31f76f(0x28b)),'focusedId':_0x1703b9[_0x31f76f(0x240)]},_0x5006de={'eventID':_0xdd58a5['UPDATE_CURSOR'],'data':{'unitID':this[_0x31f76f(0x20f)],'memberID':this[_0x31f76f(0x11b)][_0x31f76f(0x1ad)](),'selection':JSON[_0x31f76f(0x1a2)](_0x164ade)}};this[_0x31f76f(0x11b)]['send'](_0x5006de,this[_0x31f76f(0x20f)]);},0x64));}[_0x452ab3(0x2bc)](){const _0x9df607=_0x452ab3;super['dispose'](),this[_0x9df607(0x113)][_0x9df607(0xfb)](new Map()),this[_0x9df607(0x113)]['complete'](),this[_0x9df607(0x1a1)][_0x9df607(0xfb)]([]),this[_0x9df607(0x1a1)][_0x9df607(0x29f)]();}['init'](){const _0x479cd4=_0x452ab3;this['_init']||(this[_0x479cd4(0x1e3)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x29e831(this[_0x479cd4(0x188)]))[_0x479cd4(0x290)](_0x18c566=>{const _0x213fab=_0x479cd4;_0x18c566===_0x16bde3[_0x213fab(0x15d)]?this[_0x213fab(0x16f)]():this[_0x213fab(0x2f9)]();}),this[_0x479cd4(0x11b)][_0x479cd4(0x172)][_0x479cd4(0x327)](_0x29e831(this[_0x479cd4(0x188)]))[_0x479cd4(0x290)](_0x1acb6c=>{const _0x34568b=_0x479cd4;let _0x57f755=_0x1acb6c['eventID'];_0x57f755===_0xdd58a5[_0x34568b(0x1de)]&&this['_onCursorUpdate'](_0x1acb6c),_0x57f755===_0xdd58a5[_0x34568b(0x343)]&&this[_0x34568b(0x2ff)](_0x1acb6c);}),this[_0x479cd4(0x30d)][_0x479cd4(0x225)][_0x479cd4(0x327)](_0x29e831(this[_0x479cd4(0x188)]))['subscribe'](_0x4e2b4c=>{const _0x9e91e1=_0x479cd4;this[_0x9e91e1(0x15b)]&&this[_0x9e91e1(0x27d)](_0x4e2b4c);}));}[_0x452ab3(0x360)](_0x433c2c){const _0x57c18c=_0x452ab3;var _0x269d02,_0x1ed8bb,_0x55a269,_0x12dcf6;let {memberID:_0x4a7240,selection:_0x711088}=_0x433c2c[_0x57c18c(0x22a)];if(_0x4a7240===((_0x269d02=(_0x1ed8bb=this['_session'])[_0x57c18c(0x1ad)])==null?void 0x0:_0x269d02['call'](_0x1ed8bb)))return;let _0xd67363=En(_0x711088);if(!_0xd67363||_0xd67363[_0x57c18c(0x2a4)]!==this[_0x57c18c(0x20f)])return;let _0x272c28=(_0x55a269=(_0x12dcf6=this['_memberService'][_0x57c18c(0x103)](this['unitID'],_0x4a7240))==null?void 0x0:_0x12dcf6[_0x57c18c(0x13c)])==null?_0x57c18c(0x147):_0x55a269,_0x23328b={'color':this[_0x57c18c(0x367)]['assignAColorForMemberID'](_0x4a7240),'name':_0x272c28,'unitId':_0xd67363[_0x57c18c(0x2a4)],'subUnitId':_0xd67363[_0x57c18c(0x319)],'selectedIds':_0xd67363['selectedIds'],'focusedId':_0xd67363[_0x57c18c(0x240)],'selection':_0x711088},_0x2082d3=new Map(this[_0x57c18c(0x177)]);_0x2082d3[_0x57c18c(0x2c2)](_0x4a7240,_0x23328b),this[_0x57c18c(0x113)][_0x57c18c(0xfb)](_0x2082d3);}[_0x452ab3(0x2ff)](_0x34e554){const _0x598ca6=_0x452ab3;let {memberID:_0x1a5f08}=_0x34e554[_0x598ca6(0x22a)],_0x4eb7a9=new Map(this['cursorInfo']);_0x4eb7a9[_0x598ca6(0x1e8)](_0x1a5f08),this[_0x598ca6(0x113)]['next'](_0x4eb7a9);}[_0x452ab3(0x16f)](){const _0x2220f9=_0x452ab3;this[_0x2220f9(0x15b)]=!0x0,this[_0x2220f9(0x27d)](this[_0x2220f9(0x30d)][_0x2220f9(0x347)]());}[_0x452ab3(0x2f9)](){const _0x1e48ee=_0x452ab3;this[_0x1e48ee(0x15b)]=!0x1;}};Dn=Y([J(0x2,_0x322f48(Z)),J(0x3,_0x322f48(_0x21b59f)),J(0x4,_0x322f48(_0x10d370))],Dn);function On(_0x55ff4c){const _0x539625=_0x452ab3;let _0x140cb5='';for(let _0x25425f of _0x55ff4c){let {startOffset:_0x266a3b,endOffset:_0x3b18ca,isActive:_0x33a108,rangeType:_0x50f191,segmentId:_0x3e18d6,segmentPage:_0x482fb5}=_0x25425f;_0x140cb5[_0x539625(0x267)]&&(_0x140cb5+=','),_0x140cb5+=_0x266a3b+':'+_0x3b18ca+':'+(_0x33a108?'1':'0')+':'+_0x50f191+':'+_0x3e18d6+':'+_0x482fb5;}return _0x140cb5;}function kn(_0x34d5a1){const _0x405cf6=_0x452ab3;let _0x539a70=_0x34d5a1[_0x405cf6(0x29e)](','),_0x4226b0=[];for(let _0x33b83a of _0x539a70){let [_0x9b76f2,_0x136f40,_0x27c284,_0x5b1297,_0x23c925,_0x1e07c4]=_0x33b83a[_0x405cf6(0x29e)](':');_0x4226b0[_0x405cf6(0x2fa)]({'startOffset':Number(_0x9b76f2),'endOffset':Number(_0x136f40),'collapsed':_0x9b76f2===_0x136f40,'isActive':_0x27c284==='1','rangeType':_0x5b1297===_0x322a43[_0x405cf6(0x1ee)]?_0x322a43['TEXT']:_0x322a43['RECT'],'segmentId':typeof _0x23c925==_0x405cf6(0x28b)?String(_0x23c925):'','segmentPage':Number(_0x1e07c4==null?-0x1:_0x1e07c4)});}return _0x4226b0[_0x405cf6(0x102)](_0x53159c=>_0x53159c[_0x405cf6(0x184)])||(_0x4226b0[0x0][_0x405cf6(0x184)]=!0x0),_0x4226b0;}var An=class extends _0x4bb5d8{constructor(..._0x54633e){const _0x31dd71=_0x452ab3;super(..._0x54633e),q(this,_0x31dd71(0x11a),new _0xa52b92(null)),q(this,'collabCursorState$',this['_collabCursorState$'][_0x31dd71(0x1e0)]());}['syncEditingCollabCursor'](_0x4eee50){let {unitID:_0x421f2b,memberID:_0x51eba1,textRanges:_0x3899c3}=_0x4eee50,_0x4fdad2=On(_0x3899c3);if(_0x4fdad2==='')return;let _0x196c79={'unitID':_0x421f2b,'memberID':_0x51eba1,'selection':_0x4fdad2};this['_collabCursorState$']['next'](_0x196c79);}};let jn=class extends _0x4bb5d8{get[_0x452ab3(0x177)](){const _0x1b41bb=_0x452ab3;return this[_0x1b41bb(0x113)][_0x1b41bb(0x183)]();}get[_0x452ab3(0x1e4)](){const _0x299845=_0x452ab3;return this[_0x299845(0x1a1)][_0x299845(0x183)]();}constructor(_0x18eac3,_0x278aab,_0x5f480a,_0x32bc43,_0x2d39d3,_0x216060,_0x339af7,_0x165c9b,_0x55ee9e){const _0x2321fa=_0x452ab3;super(),this[_0x2321fa(0x20f)]=_0x18eac3,this[_0x2321fa(0x11b)]=_0x278aab,this[_0x2321fa(0x34e)]=_0x5f480a,this[_0x2321fa(0x367)]=_0x32bc43,this['_memberService']=_0x2d39d3,this['_syncEditingCollabCursorService']=_0x216060,this['_transformService']=_0x339af7,this[_0x2321fa(0x1ce)]=_0x165c9b,this[_0x2321fa(0x244)]=_0x55ee9e,q(this,_0x2321fa(0x15b),!0x1),q(this,_0x2321fa(0x1e3),!0x1),q(this,_0x2321fa(0x113),new _0xa52b92(new Map())),q(this,'cursorInfo$',this['_cursorInfo$'][_0x2321fa(0x1e0)]()),q(this,_0x2321fa(0x1a1),new _0xa52b92([])),q(this,_0x2321fa(0x14f),this[_0x2321fa(0x1a1)][_0x2321fa(0x327)](_0x18229c(0x12c))),q(this,_0x2321fa(0x27d),_0x913187(_0x33b128=>{const _0x56210c=_0x2321fa;let _0xb34911={'eventID':_0xdd58a5[_0x56210c(0x1de)],'data':{'unitID':this[_0x56210c(0x20f)],'memberID':this['_session'][_0x56210c(0x1ad)](),'selection':On(_0x33b128)}};this[_0x56210c(0x11b)][_0x56210c(0x10a)](_0xb34911,this[_0x56210c(0x20f)]);},0x64));}['dispose'](){const _0xd20483=_0x452ab3;super[_0xd20483(0x2bc)](),this[_0xd20483(0x113)]['next'](new Map()),this[_0xd20483(0x113)]['complete'](),this[_0xd20483(0x1a1)][_0xd20483(0xfb)]([]),this[_0xd20483(0x1a1)][_0xd20483(0x29f)]();}[_0x452ab3(0x114)](){const _0x15c404=_0x452ab3;this['_init']||(this[_0x15c404(0x1e3)]=!0x0,this[_0x15c404(0x11b)]['sessionStatus$'][_0x15c404(0x327)](_0x29e831(this['dispose$']))[_0x15c404(0x290)](_0x39c667=>{const _0x58acfd=_0x15c404;_0x39c667===_0x16bde3[_0x58acfd(0x15d)]?this['_toggleOnline']():this[_0x58acfd(0x2f9)]();}),this['_session'][_0x15c404(0x172)][_0x15c404(0x327)](_0x29e831(this['dispose$']))[_0x15c404(0x290)](_0x1f6eba=>{const _0x537f4f=_0x15c404;let _0x56ab70=_0x1f6eba[_0x537f4f(0x350)];_0x56ab70===_0xdd58a5[_0x537f4f(0x1de)]&&this[_0x537f4f(0x360)](_0x1f6eba),_0x56ab70===_0xdd58a5[_0x537f4f(0x343)]&&this[_0x537f4f(0x2ff)](_0x1f6eba);}),this[_0x15c404(0x293)](this[_0x15c404(0x244)]['onCommandExecuted'](_0x197387=>{const _0x52d840=_0x15c404;let _0x47d482=_0x197387[_0x52d840(0x25f)];_0x47d482!=null&&this[_0x52d840(0x15b)]&&_0x197387['id']===_0x56abdc['id']&&_0x47d482[_0x52d840(0x2a4)]===this[_0x52d840(0x20f)]&&_0x47d482[_0x52d840(0x30a)]===!0x1&&_0x47d482[_0x52d840(0x180)]['length']>0x0&&this['_updateLocalCursor'](_0x47d482['ranges']);})),this[_0x15c404(0x303)][_0x15c404(0x34f)][_0x15c404(0x327)](_0x29e831(this[_0x15c404(0x188)]))[_0x15c404(0x290)](_0x18c09d=>{const _0x389df7=_0x15c404;if((_0x18c09d==null?void 0x0:_0x18c09d[_0x389df7(0x20f)])!==this[_0x389df7(0x20f)])return;let _0x2509e5={'eventID':_0xdd58a5[_0x389df7(0x1de)],'data':_0x18c09d};this[_0x389df7(0x360)](_0x2509e5);}),this[_0x15c404(0x293)](this[_0x15c404(0x244)][_0x15c404(0x35f)](_0x160967=>{const _0x3462bc=_0x15c404;if(_0x160967[_0x3462bc(0x25f)]==null)return;let _0x464a18=_0x160967[_0x3462bc(0x25f)];if(_0x160967['id']!==_0xce0151['id']||_0x464a18[_0x3462bc(0x2a4)]!==this[_0x3462bc(0x20f)])return;let _0x4ae2cd={'id':_0x3462bc(0x2d0),'params':_0x464a18},_0x3586c7=this[_0x3462bc(0x177)];for(let [_0x53b2b2,_0x167d15]of _0x3586c7){let _0x3e5399={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x167d15[_0x3462bc(0x180)]}},_0x2e2ef6=this[_0x3462bc(0x1a3)][_0x3462bc(0x32f)](_0x4ae2cd,_0x3e5399,!0x1);if(_0x6fcace(_0x2e2ef6))throw _0x2e2ef6[_0x3462bc(0x2b7)];_0x3586c7[_0x3462bc(0x2c2)](_0x53b2b2,{..._0x167d15,'ranges':_0x2e2ef6[_0x3462bc(0x32e)][_0x3462bc(0x25f)][_0x3462bc(0x164)]});}queueMicrotask(()=>{const _0x5d08dd=_0x3462bc;this[_0x5d08dd(0x113)][_0x5d08dd(0xfb)](_0x3586c7);});})));}[_0x452ab3(0x360)](_0x88768b){const _0x31f5b3=_0x452ab3;var _0x498218,_0x107398;let {memberID:_0x396849,selection:_0x2d21c5}=_0x88768b['data'],_0x50b11f=kn(_0x2d21c5),_0x21037b=(_0x498218=(_0x107398=this[_0x31f5b3(0x2bd)][_0x31f5b3(0x103)](this[_0x31f5b3(0x20f)],_0x396849))==null?void 0x0:_0x107398[_0x31f5b3(0x13c)])==null?_0x31f5b3(0x147):_0x498218,_0x31b9d9={'color':this['_colorAssignService'][_0x31f5b3(0x1fe)](_0x396849),'name':_0x21037b,'ranges':_0x50b11f},_0x5471da=this[_0x31f5b3(0x177)];_0x5471da[_0x31f5b3(0x2c2)](_0x396849,_0x31b9d9),this[_0x31f5b3(0x113)][_0x31f5b3(0xfb)](_0x5471da);}[_0x452ab3(0x2ff)](_0x1665c3){const _0x21c033=_0x452ab3;let {memberID:_0xcf528f}=_0x1665c3[_0x21c033(0x22a)],_0x4cee23=this[_0x21c033(0x177)];_0x4cee23[_0x21c033(0x1e8)](_0xcf528f),this[_0x21c033(0x113)]['next'](_0x4cee23);}[_0x452ab3(0x16f)](){const _0x2e26c0=_0x452ab3;var _0x3193aa;if(this[_0x2e26c0(0x15b)]=!0x0,((_0x3193aa=this['_univerInstanceService'][_0x2e26c0(0x351)]())==null?void 0x0:_0x3193aa[_0x2e26c0(0x155)]())!==this[_0x2e26c0(0x20f)])return;let _0x3ac7e3=this['_injector'][_0x2e26c0(0x379)](_0x13fe95)[_0x2e26c0(0x292)]();Array[_0x2e26c0(0x2cd)](_0x3ac7e3)&&_0x3ac7e3[_0x2e26c0(0x267)]>0x0&&this['_updateLocalCursor'](_0x3ac7e3);}['_toggleOffline'](){this['_online']=!0x1;}};function _0x3153(){const _0x5187ec=['_updateLocalCursor','#4f46e5','addObject','_clearPolling','_revisionService','MoveRangeCommandId','kind','_collabSessionService','_drawRectRange','values','decorate','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getParam','enableDocumentCollaborationUI','string','filter','getActivePageId','top','_dataLoaderService','subscribe','[Window\x20Error]:\x20','getDocRanges','disposeWithMe','pluginName','_docStateChangeManagerService','ticket','focused$','runId','_registerRenderDependencies','reconnect','_offsetY','newValue','@univerjs-pro/collaboration-client-ui','split','complete','getUniverSheetInstance','getViewport','left','find','unitId','now','getColorFromTheme','enableFrontendLog','moveTo','imageSourceType','socket$','_drawTextRange','getObjectIncludeInGroup','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','_initResize','_scene','HEADER_MENU','sheetID','univer-inline-flex\x20univer-items-center\x20univer-justify-center','theme$','getRealBound','_latestCursors','_hideTimer','error','ACTIVE_UNIT_EVENT_CHANNEL','registerRenderModule','slice','editingUnit','dispose','_memberService','SUBMIT_CHANGESET_TIMEOUT','_timeoutState$','rgb','onStarting','set','stageInfo','_imageIoService','974836QkVpex','subscribeEvent','searchParams','SYNCED','disableLocalCache','getCollabEntity$','OTHER_CLIENT_EDITING','_cursor','isArray','1.0.0-alpha.5','remove','doc.mutation.rich-text-editing','_hovered','_logService','PENDING','_isVisibleUnit','snapshot-loading-timeout','getRangePointData','_initStatusComponent','1038EDjaaN','replaceState','_cachedData','_drawAnchor','_cursorShapes','labelPosition','_removeClearOtherTimer','_startSheetCollabCursor','registerComponent','setLineDash','invokeId','_updateURLWithCurrentState','_releaseCalculationLimit','setOffsetY','getActiveSlide','collaboration-client-ui.formula.calculation.unable','disposeUnit','size','_updateSubUnitFromURLParams','_ensureSubject','_startDocCollabCursor','createInstance','_urlService','type','OFFLINE','_interactionBlocked$','strokeWidth','SOCKET_FAILED','m1Prime','getCurrentUnitOfType','setConfig','univer-border-none\x20univer-bg-transparent','hide','_toggleOffline','push','_anchor','CLOSE_ROOM','_updateMessage','setItem','_onCursorDelete','then','_clearBlockProgressWatch','rgba(','_syncEditingCollabCursorService','activeSheet$','getRelativeToViewportCoord','value','_localCacheService','filename','rgba','isEditing','backgroundColor','setStateCache','_boardElementStateService','height','drawWith','univer-text-gray-400','getSkeleton','collaboration-client-ui.permission.content','_blinkTimer','_scheduleRender','bold\x2013px\x20Arial,\x20sans-serif','range','_updateSheetPreview','collaboration-client-ui.session.collaboration-timeout','subUnitId','_monkeyPatchLogService','univer-h-8\x20univer-w-8\x20univer-rounded-lg','highlight','\x20-\x20','?taskId=','_initEvent','reload','_localeService','_uploadLog','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','setActiveRange','debug','collaboration-client-ui.collabStatus.syncing','pipe','clear','resize','_showText','clearInterval','_refRangeService','6045111FjOiOU','m2Prime','transformMutation','Warning','_disabled','_handleJoinEvent','executionId','fillRule','unsubscribe','location','row','colno','min','_pointerMoveDisposable','_removeCollabCursors','transformByState','button','getObject','transformSelections','_handleLeaveEvent','_transformHistoryAndStateStack','getOwnPropertyDescriptor','USERS_LEAVE','jiqing.500','_initCommandExecutedListener','resolve','getSnapshot','setTimeout','_handoffUnitIds','getCollabCursors$','_startBlinking','onPointerLeave$','polite','_injector','collabCursorState$','eventID','getFocusedUnit','AWAITING','board-collab-cursor-','_saveTaskMap','0.2)','_renderManagerService','handoff','static','collab-rect-range-','blue.400','arc','getAncestorScale','24031JkxuTy','_uiPartsService','onCommandExecuted','_onCursorUpdate',':backup:','_latestStates','#FFF','text','totalFormulasToCalculate','collaboration-client-ui.collabClient.tooltip.reconnect','_colorAssignService','bottom','InsertColCommandId','mutations','_maxFormulaLimit','getAllUnitsForType','parseInt','_context','makeDirty','getConfig','snapshot-loading-','Enter','snapshot-loading-interaction-guard','registerBeforeClose','toString','requireSession','loadOfflineData','LOADING_BLOCKS','get','Failed','setInterval','_onRefRangeChange','updateOfflineData','_startBoardCollabCursor','_id','_getSaveTimeout','collaboration-client-ui.snapshotLoading.timeout','join','_unitOnClients','toRgbString','_scheduleSaving','_status$','onRendered','function','_collaborationController','_sheetSkeletonManagerService','next','startPluginsForType','findNodePositionByCharIndex','rgba(255,\x20255,\x20255,\x200.01)','removeEventListener','fillText','SUCCESS','some','getMember','search','UNIVER_DOC','_initCommandInterceptor','getCurrentTypeOfUnit$','i18nKey','indicator','send','pageManager','dirtyRanges','COMPLETE','[Unhandled\x20Rejection]:\x20','_getSheetObject','deepClone','setShapeProps','maxFormulaLimit','_cursorInfo$','init','evented','save','scene','_config','NOT_COLLAB','_collabCursorState$','_session','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_eventUnsubscribe','_getMergeRange','version','_doCreateSocket','activeSheetId','collaboration-client-ui.collaboration.offline-data-not-saved','getTypeOfUnitDisposed$','unshift','_transformPreviousActiveRange','history','collaboration-client-ui.collabStatus.fetchMiss','_backgroundColor','[LogService\x20Error]:\x20','_renderScheduled','_docTransformStateCacheService','map','_draw','startRow','_httpService','transformStateCache','clearTimeout','subunit','icon','restore','_anchorDot','previewCellData','UNIVER_SLIDE','_sheetLoadingRenderService','Loading','getVpScrollXYInfoByPosToVp','onTransformChange$','name','UNIVER_BOARD','univer-text-blue-500','setParam','_color','_docTransformSelectionsService','_getAnchorBounding','3324MrZxhL','highlightSecond','/run/','_setFormulaLimitStatus','Unknown\x20user','_textBubble','slide-element-selection','univer-text-green-500','_send','1460PwnJqj','fill','defineProperty','roomMembers$','_getSceneObjectByKey','font','tooltipKey','_clearOtherTimers','storage','getUnitId','_handoffPreview','addHandlerCallback','_clearTimeoutState',',\x200.2)','getCurrentRevOfUnit','_online','getRenderById','ONLINE','transformIMECache','_setupBeforeClosingHandler','_pluginService','_render','lineTo','_memberID','textRanges','angle','_collabCursorController','column','pushState','uni.network.url-service','collaboration-client-ui.collabStatus.synced','addObject$','pulse','Error','_showGuardMessage','_toggleOnline','measureText','getUnhiddenWorksheets','event$','urlChange$','board-element-selection','_getScale','_range','cursorInfo','origin','selection','override','add','_currentUsage','transform','fillStyle','addClipboardHook','ranges','collaboration-client-ui.session.connection-failed','_snapshotLoadingService','getValue','isActive','_scheduleHeartbeat','_updateCollabCursors','PERMISSION_DENIED','dispose$','symbol','_labelHorizontalPosition','_hasFormulaInDirtyRanges','...','registerRefRange','OTHER_CLIENTS_EDITING','code','collaboration-client-ui.formula.calculation.started','_heartbeatTimer','spin','collaboration-client-ui.permission.title','_watchBlockProgress','endColumn','_handleHover','includes','runOnServer','memberID','timeoutState$','univer-transition-all\x20univer-duration-200','unhandledrejection','functionsExecutedState','VIEW_MAIN','_getLighterColor','ERROR','_roomMembers$','stringify','_transformService','key','collaboration-client-ui.session.will-retry','source','activeSlideId$','href','_cursors','unit','engine','getMergeData','getMemberID','_initUnhandledRejectionListener','_blinkIntervalTimer','_checkAndWaitForCalculationPermission','643728PxNvKF','removeObjects','NO_OTHER_CLIENTS_EDITING','catch','status$','selections','AWAITING_WITH_PENDING','labelHorizontalPosition','offsetY','_isApplyingOverlays','beforeCommandExecuted','_docTransformIMECacheService','has','executeCommand','/universer-api/license/formula/limit/status','_transformUndoRedoStack','collaboration-client-ui.formula.calculation.waiting','_highlight','_applyCommand','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboration-client-ui.collabStatus.conflict','collaboration-client-ui.collaboration.closeRoom','_entities','_scheduleClearOtherTimer','stage','addObjects','right','_setupSubUnitSync','post','_univerInstanceService','_getObjectBounds','_startCalculationLimit','_initEntityListener','clickable','black','from','[RemoteUniscriptService]:\x20no\x20focused\x20unit','transformRemoteChangeset','RECT','_highlightSecond','previewReady','44860BWMxwz','getUnitStatus$','loadedBlocks','getStateCache','UPDATE_CURSOR','with','asObservable','lineno','currentSkeleton$','_init','roomMembers','refreshLabel','_setInteractionBlocked','exhaustSavingTask','delete','onPointerEnter$','undoState','div','call','true','TEXT','getSheetBySheetId','_selfUnitIDs','forEach','_getSessionTicket','currentTheme$','_labelPosition','getSheetId','UNIVER_SHEET','primary','parse','addEventListener','width','yellow.400','InsertRangeMoveRightCommandId','startColumn','assignAColorForMemberID','red.300','[CollaborationDataLoaderController]','_previewUnitId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','whenReady','getTypeOfUnitAdded$','_docClipboardService','selectedIds','preventDefault','_collaborationUIEventService','triggerDblclick','/universer-api/license/formula/limit/start','status','RemoveColCommandId','show','object','unitID','evenodd','getUndoRedoMutationParamsCache','result','workbookShell','_messageIds','timeoutId','_messageService','collaboration-client-ui.snapshotLoading.refresh','loadUnit','_notificationService','_saveCache','GLOBAL','_handleEvent','limitInfo','wsSessionTicketUrl','_refreshCollabCursors','getId','timedOut','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-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','_pollingInterval','endRow','state$','dark:focus:!univer-ring-offset-gray-800','_localStorageService','onMouseMove','_startSlideCollabCursor','data','content','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_registerDependencies','cursorInfo$','collab-text-anchor-','_slideDrawingStateService','_initDependencies','collaboration-client-ui.conflict.title','removeObject','_stopBlinking','replace','_initStatusListener','collaboration-client-ui.config','color','purple.300','strokeRect','FETCH_MISS','_docSkeletonManagerService','_taskIds','CONFLICT','lineWidth','focusedId','_isBlinkVisible','_themeService','popstate','_commandService','_name','FromArray','_getSheetLoadingRenderService','770896rWqAzw','startsWith','saveTaskMap','startFormulaLimitUrl','getItem','univer-text-orange-500','sessionTicket','_colorIndex','_entityInit$','saveOfflineData','stack','message','saveImage','getActiveSheet','shift','_configService','_getFormulaLimitStatus','syncEditingCollabCursor','_beforeCloseService','/universer-api/frontend/logs','_docSyncEditingCollabCursorService','_hover','application/json','params','_assignedColors','packageName','body','collaboration-client-ui.collabStatus.offline','_shapes','_initWindowErrorListener','_checkCalculationAvailable','length','getActiveRange','_unitStatus','_shortcutService','sessionStatus$','_lastResponseTimestamp','transformMutationsWithChangeset','green.600','_lastPointer','START_CALCULATION','context','DeleteRangeMoveUpCommandId','_initUserListener','redoState','SOCKET_FAILED_RETRY','showText','_shortcutBlock','_blockProgressWatches','totalBlocks','\x20at\x20','hovered','_hidePreview'];_0x3153=function(){return _0x5187ec;};return _0x3153();}jn=Y([J(0x2,_0x322f48(_0x560cc2)),J(0x3,_0x322f48(Z)),J(0x4,_0x322f48(_0x21b59f)),J(0x5,_0x322f48(An)),J(0x6,_0x444493),J(0x7,_0x5df53a),J(0x8,_0x394c60)],jn);const Mn=()=>{let _0x29a01a=[],_0x56cf4=!0x1;return _0x129d36=>{const _0x1b37b0=_0x4303;_0x29a01a[_0x1b37b0(0x2fa)](_0x129d36),_0x56cf4||(_0x56cf4=!0x0,setTimeout(()=>{_0x29a01a['forEach'](_0x4dee3a=>_0x4dee3a()),_0x29a01a=[],_0x56cf4=!0x1;}));};};let Nn=class extends _0x4bb5d8{get[_0x452ab3(0x177)](){const _0x156fa9=_0x452ab3;return this['_cursorInfo$'][_0x156fa9(0x183)]();}get[_0x452ab3(0x1e4)](){const _0xe05a63=_0x452ab3;return this[_0xe05a63(0x1a1)][_0xe05a63(0x183)]();}constructor(_0x3ceff7,_0x43468a,_0x5c7cdf,_0x3c3f94,_0x1a65c6,_0x3d2645,_0x16bac9,_0x44cf7d){const _0x9a44b2=_0x452ab3;super(),this[_0x9a44b2(0x20f)]=_0x3ceff7,this[_0x9a44b2(0x11b)]=_0x43468a,this[_0x9a44b2(0x34e)]=_0x5c7cdf,this[_0x9a44b2(0x367)]=_0x3c3f94,this[_0x9a44b2(0x2bd)]=_0x1a65c6,this[_0x9a44b2(0x1ce)]=_0x3d2645,this[_0x9a44b2(0x244)]=_0x16bac9,this[_0x9a44b2(0x32c)]=_0x44cf7d,q(this,_0x9a44b2(0x15b),!0x1),q(this,_0x9a44b2(0x1e3),!0x1),q(this,_0x9a44b2(0x113),new _0xa52b92(new Map())),q(this,_0x9a44b2(0x22e),this[_0x9a44b2(0x113)]['asObservable']()),q(this,_0x9a44b2(0x1a1),new _0xa52b92([])),q(this,_0x9a44b2(0x14f),this[_0x9a44b2(0x1a1)][_0x9a44b2(0x327)](_0x18229c(0x12c))),q(this,_0x9a44b2(0x27d),_0x913187((_0x4e253b,_0x4f9927)=>{const _0x971f0a=_0x9a44b2;let _0x5493c1={'eventID':_0xdd58a5[_0x971f0a(0x1de)],'data':{'unitID':this[_0x971f0a(0x20f)],'memberID':this[_0x971f0a(0x11b)]['getMemberID'](),'selection':_0x520cda(_0x4e253b,_0x4f9927[_0x971f0a(0x316)])}};this[_0x971f0a(0x11b)][_0x971f0a(0x10a)](_0x5493c1,this[_0x971f0a(0x20f)]);},0x64));}[_0x452ab3(0x2bc)](){const _0xc7cdcb=_0x452ab3;super[_0xc7cdcb(0x2bc)](),this[_0xc7cdcb(0x113)][_0xc7cdcb(0xfb)](new Map()),this['_cursorInfo$'][_0xc7cdcb(0x29f)](),this[_0xc7cdcb(0x1a1)][_0xc7cdcb(0xfb)]([]),this['_roomMembers$'][_0xc7cdcb(0x29f)]();}['init'](){const _0x2c13d4=_0x452ab3;this['_init']||(this[_0x2c13d4(0x1e3)]=!0x0,this[_0x2c13d4(0x11b)][_0x2c13d4(0x26b)][_0x2c13d4(0x327)](_0x29e831(this[_0x2c13d4(0x188)]))['subscribe'](_0x1bd722=>{const _0x3dbe42=_0x2c13d4;_0x1bd722===_0x16bde3[_0x3dbe42(0x15d)]?this[_0x3dbe42(0x16f)]():this[_0x3dbe42(0x2f9)]();}),this['_session'][_0x2c13d4(0x172)][_0x2c13d4(0x327)](_0x29e831(this[_0x2c13d4(0x188)]))[_0x2c13d4(0x290)](_0x1a5790=>{const _0xabdc0e=_0x2c13d4;let _0x970681=_0x1a5790['eventID'];_0x970681===_0xdd58a5[_0xabdc0e(0x1de)]&&this['_onCursorUpdate'](_0x1a5790),_0x970681===_0xdd58a5[_0xabdc0e(0x343)]&&this[_0xabdc0e(0x2ff)](_0x1a5790);}),this['_onRefRangeChange'](),this[_0x2c13d4(0x293)](this[_0x2c13d4(0x244)][_0x2c13d4(0x35f)](_0x2c0324=>{const _0x3a1b1d=_0x2c13d4;if(this[_0x3a1b1d(0x15b)]&&_0x2c0324['id']===_0x5e5e6b['id']&&_0x2c0324[_0x3a1b1d(0x25f)][_0x3a1b1d(0x2a4)]===this[_0x3a1b1d(0x20f)]){let _0x17fe2b=_0x2c0324[_0x3a1b1d(0x25f)];this['_updateLocalCursor'](_0x17fe2b[_0x3a1b1d(0x319)],_0x17fe2b[_0x3a1b1d(0x1b6)][0x0]);}})));}['_onCursorUpdate'](_0x10eb3a){const _0x4e4ab8=_0x452ab3;var _0x1c06cc,_0x10a5e3;let {memberID:_0x5e3f87,selection:_0x4c6cf9}=_0x10eb3a[_0x4e4ab8(0x22a)],{sheetName:_0x43bb2c,range:_0x11d90f}=_0x56ef97(_0x4c6cf9),_0x51d9de={'name':(_0x1c06cc=(_0x10a5e3=this[_0x4e4ab8(0x2bd)][_0x4e4ab8(0x103)](this[_0x4e4ab8(0x20f)],_0x5e3f87))==null?void 0x0:_0x10a5e3['name'])==null?_0x4e4ab8(0x147):_0x1c06cc,'range':this[_0x4e4ab8(0x11e)](_0x43bb2c,_0x11d90f),'sheetID':_0x43bb2c,'color':this[_0x4e4ab8(0x367)][_0x4e4ab8(0x1fe)](_0x5e3f87),'selection':_0x4c6cf9},_0x12305f=this[_0x4e4ab8(0x177)];_0x12305f[_0x4e4ab8(0x2c2)](_0x5e3f87,_0x51d9de),this[_0x4e4ab8(0x113)][_0x4e4ab8(0xfb)](_0x12305f);}['_onCursorDelete'](_0x340629){const _0x282e09=_0x452ab3;let {memberID:_0x21d0e8}=_0x340629['data'],_0x1c2eb4=this['cursorInfo'];_0x1c2eb4[_0x282e09(0x1e8)](_0x21d0e8),this[_0x282e09(0x113)][_0x282e09(0xfb)](_0x1c2eb4);}[_0x452ab3(0x11e)](_0x2d1a44,_0xcbd118){const _0x259094=_0x452ab3;var _0x42e80a;let _0x4681f7=(_0x42e80a=this[_0x259094(0x1ce)][_0x259094(0x2a0)](this[_0x259094(0x20f)]))==null||(_0x42e80a=_0x42e80a[_0x259094(0x1ef)](_0x2d1a44))==null?void 0x0:_0x42e80a[_0x259094(0x1ac)]();return(_0x4681f7==null?void 0x0:_0x4681f7[_0x259094(0x2a3)](_0x3c0b79=>_0x54ecbe['contains'](_0x3c0b79,_0xcbd118)))||_0xcbd118;}[_0x452ab3(0x37c)](){const _0x379ee2=_0x452ab3;let _0x407950=new _0x136e2d(),_0x57f6d2=Mn(),_0x19209a=()=>{const _0x4449f6=_0x4303;_0x407950[_0x4449f6(0x2bc)]();let _0x402d21=(_0x3c7cf3,_0x139573,_0x5f137d,_0x20bde0)=>{const _0x263108=_0x4449f6;let _0x35a5de=[];switch(_0x3c7cf3['id']){case _0x3d5d65['DeleteRangeMoveLeftCommandId']:_0x35a5de=_0x1ddea8(_0x3c7cf3,_0x20bde0);break;case _0x3d5d65[_0x263108(0x272)]:_0x35a5de=_0x565549(_0x3c7cf3,_0x20bde0);break;case _0x3d5d65[_0x263108(0x369)]:_0x35a5de=_0x4822ad(_0x3c7cf3,_0x20bde0);break;case _0x3d5d65['InsertRangeMoveDownCommandId']:_0x35a5de=_0x3a98d8(_0x3c7cf3,_0x20bde0);break;case _0x3d5d65[_0x263108(0x1fc)]:_0x35a5de=_0x532ea1(_0x3c7cf3,_0x20bde0);break;case _0x3d5d65['InsertRowCommandId']:_0x35a5de=_0x194c9b(_0x3c7cf3,_0x20bde0);break;case _0x3d5d65[_0x263108(0x282)]:_0x35a5de=_0x2edd50(_0x3c7cf3,_0x20bde0);break;case _0x3d5d65[_0x263108(0x20c)]:_0x35a5de=_0x5d1d00(_0x3c7cf3,_0x20bde0);break;case _0x3d5d65['RemoveRowCommandId']:_0x35a5de=_0x3f165b(_0x3c7cf3,_0x20bde0);break;}let _0x214846=_0x31b166(_0x35a5de,_0x20bde0),_0x256ba8=this[_0x263108(0x177)]['get'](_0x139573);if(_0x256ba8&&_0x214846){let _0x378542={..._0x256ba8,'range':_0x214846};this[_0x263108(0x177)][_0x263108(0x2c2)](_0x139573,_0x378542),_0x57f6d2(()=>{const _0x2e20d2=_0x263108;let _0x478188=this['_refRangeService'][_0x2e20d2(0x18d)](_0x214846,_0x17cb85=>(_0x478188[_0x2e20d2(0x2bc)](),_0x402d21(_0x17cb85,_0x139573,_0x5f137d,_0x214846)));_0x407950[_0x2e20d2(0x17b)](_0x478188);});}return{'redos':[],'undos':[]};};this[_0x4449f6(0x177)][_0x4449f6(0x1f1)]((_0xffb257,_0x102d6e)=>{const _0x3e9082=_0x4449f6;let {range:_0x1171ee,sheetID:_0x9e8f04}=_0xffb257,_0x18afce=this[_0x3e9082(0x32c)]['registerRefRange'](_0x1171ee,_0xb000fc=>(_0x18afce['dispose'](),_0x402d21(_0xb000fc,_0x102d6e,_0x9e8f04,_0x1171ee)));_0x407950[_0x3e9082(0x17b)](_0x18afce);});};this[_0x379ee2(0x293)](_0xe9bbd4(this[_0x379ee2(0x113)]['subscribe'](()=>{_0x19209a();})));}['_toggleOnline'](){const _0x305677=_0x452ab3;var _0x5d3d17,_0x55ab59;if(this['_online']=!0x0,((_0x5d3d17=this[_0x305677(0x1ce)]['getFocusedUnit']())==null?void 0x0:_0x5d3d17[_0x305677(0x155)]())!==this[_0x305677(0x20f)])return;let _0x36484a=(_0x55ab59=this[_0x305677(0x34e)][_0x305677(0x379)](_0x370005)['getCurrentSelections']())==null?void 0x0:_0x55ab59[0x0],_0x132101=this[_0x305677(0x1ce)][_0x305677(0x2f5)](_0x2b61c5[_0x305677(0x1f6)])[_0x305677(0x255)]();_0x36484a&&_0x132101&&this[_0x305677(0x27d)](_0x132101[_0x305677(0x1f5)](),_0x36484a);}[_0x452ab3(0x2f9)](){this['_online']=!0x1;}};Nn=Y([J(0x2,_0x322f48(_0x560cc2)),J(0x3,_0x322f48(Z)),J(0x4,_0x322f48(_0x21b59f)),J(0x5,_0x5df53a),J(0x6,_0x394c60),J(0x7,_0x322f48(_0xfc9140))],Nn);function Pn(_0x38910b){const _0x1f511b=_0x452ab3;let _0x5e107d;try{_0x5e107d=JSON[_0x1f511b(0x1f8)](_0x38910b);}catch{return null;}if(typeof _0x5e107d!='object'||!_0x5e107d)return null;let _0x4393c8=_0x5e107d;if(_0x4393c8[_0x1f511b(0x283)]!=='slide-element-selection'||typeof _0x4393c8[_0x1f511b(0x2a4)]!=_0x1f511b(0x28b)||typeof _0x4393c8['subUnitId']!=_0x1f511b(0x28b))return null;let _0x3ed9bd=Array[_0x1f511b(0x2cd)](_0x4393c8['selectedIds'])?_0x4393c8[_0x1f511b(0x206)]['filter'](_0x259a68=>typeof _0x259a68==_0x1f511b(0x28b)):[],_0x913dab=typeof _0x4393c8[_0x1f511b(0x240)]=='string'?_0x4393c8[_0x1f511b(0x240)]:null;return{'kind':_0x1f511b(0x149),'unitId':_0x4393c8[_0x1f511b(0x2a4)],'subUnitId':_0x4393c8[_0x1f511b(0x319)],'selectedIds':_0x3ed9bd,'focusedId':_0x913dab};}let Fn=class extends _0x4bb5d8{get['cursorInfo'](){const _0x3fee23=_0x452ab3;return this['_cursorInfo$'][_0x3fee23(0x183)]();}get['roomMembers'](){const _0x3e76e2=_0x452ab3;return this[_0x3e76e2(0x1a1)][_0x3e76e2(0x183)]();}constructor(_0x23be95,_0x163f58,_0x2ccaf3,_0x4b6fc6,_0x4f721c){const _0x22c6ae=_0x452ab3;super(),this[_0x22c6ae(0x20f)]=_0x23be95,this[_0x22c6ae(0x11b)]=_0x163f58,this[_0x22c6ae(0x367)]=_0x2ccaf3,this[_0x22c6ae(0x2bd)]=_0x4b6fc6,this[_0x22c6ae(0x230)]=_0x4f721c,q(this,_0x22c6ae(0x15b),!0x1),q(this,'_init',!0x1),q(this,_0x22c6ae(0x113),new _0xa52b92(new Map())),q(this,_0x22c6ae(0x22e),this[_0x22c6ae(0x113)][_0x22c6ae(0x1e0)]()),q(this,_0x22c6ae(0x1a1),new _0xa52b92([])),q(this,_0x22c6ae(0x14f),this[_0x22c6ae(0x1a1)]['pipe'](_0x18229c(0x12c))),q(this,'_updateLocalCursor',_0x913187(_0x23779e=>{const _0x45e06c=_0x22c6ae;let _0x1dbdab=_0x23779e['context'];if(!_0x1dbdab||_0x1dbdab['unitId']!==this[_0x45e06c(0x20f)])return;let _0x2946e1={'kind':_0x45e06c(0x149),'unitId':_0x1dbdab[_0x45e06c(0x2a4)],'subUnitId':_0x1dbdab[_0x45e06c(0x319)],'selectedIds':_0x23779e['selectedIds'][_0x45e06c(0x28c)](_0xb7a45f=>typeof _0xb7a45f==_0x45e06c(0x28b)),'focusedId':_0x23779e['focusedId']},_0x56b867={'eventID':_0xdd58a5[_0x45e06c(0x1de)],'data':{'unitID':this['unitID'],'memberID':this[_0x45e06c(0x11b)][_0x45e06c(0x1ad)](),'selection':JSON[_0x45e06c(0x1a2)](_0x2946e1)}};this['_session'][_0x45e06c(0x10a)](_0x56b867,this[_0x45e06c(0x20f)]);},0x64));}[_0x452ab3(0x2bc)](){const _0x47b3b3=_0x452ab3;super[_0x47b3b3(0x2bc)](),this[_0x47b3b3(0x113)][_0x47b3b3(0xfb)](new Map()),this[_0x47b3b3(0x113)][_0x47b3b3(0x29f)](),this['_roomMembers$'][_0x47b3b3(0xfb)]([]),this[_0x47b3b3(0x1a1)][_0x47b3b3(0x29f)]();}[_0x452ab3(0x114)](){const _0x10ebe7=_0x452ab3;this[_0x10ebe7(0x1e3)]||(this[_0x10ebe7(0x1e3)]=!0x0,this[_0x10ebe7(0x11b)]['sessionStatus$']['pipe'](_0x29e831(this[_0x10ebe7(0x188)]))[_0x10ebe7(0x290)](_0x5d89bc=>{const _0x29746a=_0x10ebe7;_0x5d89bc===_0x16bde3[_0x29746a(0x15d)]?this['_toggleOnline']():this[_0x29746a(0x2f9)]();}),this['_session'][_0x10ebe7(0x172)][_0x10ebe7(0x327)](_0x29e831(this[_0x10ebe7(0x188)]))[_0x10ebe7(0x290)](_0x49f37d=>{const _0x25e8f4=_0x10ebe7;let _0x1a841b=_0x49f37d['eventID'];_0x1a841b===_0xdd58a5['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x49f37d),_0x1a841b===_0xdd58a5[_0x25e8f4(0x343)]&&this[_0x25e8f4(0x2ff)](_0x49f37d);}),this['_slideDrawingStateService'][_0x10ebe7(0x225)][_0x10ebe7(0x327)](_0x29e831(this[_0x10ebe7(0x188)]))['subscribe'](_0x35a707=>{const _0x36f470=_0x10ebe7;this[_0x36f470(0x15b)]&&this[_0x36f470(0x27d)](_0x35a707);}));}['_onCursorUpdate'](_0x327c15){const _0x5b2853=_0x452ab3;var _0x5ee1cd,_0x1f8605,_0x24c371,_0x1a0615;let {memberID:_0x4d75ee,selection:_0x348859}=_0x327c15[_0x5b2853(0x22a)];if(_0x4d75ee===((_0x5ee1cd=(_0x1f8605=this[_0x5b2853(0x11b)])[_0x5b2853(0x1ad)])==null?void 0x0:_0x5ee1cd[_0x5b2853(0x1ec)](_0x1f8605)))return;let _0x2f02fc=Pn(_0x348859);if(!_0x2f02fc||_0x2f02fc['unitId']!==this[_0x5b2853(0x20f)])return;let _0x5e14c1=(_0x24c371=(_0x1a0615=this[_0x5b2853(0x2bd)][_0x5b2853(0x103)](this[_0x5b2853(0x20f)],_0x4d75ee))==null?void 0x0:_0x1a0615['name'])==null?_0x5b2853(0x147):_0x24c371,_0x4d3575={'color':this[_0x5b2853(0x367)][_0x5b2853(0x1fe)](_0x4d75ee),'name':_0x5e14c1,'unitId':_0x2f02fc['unitId'],'subUnitId':_0x2f02fc[_0x5b2853(0x319)],'selectedIds':_0x2f02fc[_0x5b2853(0x206)],'focusedId':_0x2f02fc['focusedId'],'selection':_0x348859},_0xb2528f=new Map(this['cursorInfo']);_0xb2528f['set'](_0x4d75ee,_0x4d3575),this[_0x5b2853(0x113)][_0x5b2853(0xfb)](_0xb2528f);}[_0x452ab3(0x2ff)](_0x5f563f){const _0x83eb18=_0x452ab3;let {memberID:_0x3853c6}=_0x5f563f[_0x83eb18(0x22a)],_0x7c1e1c=new Map(this[_0x83eb18(0x177)]);_0x7c1e1c[_0x83eb18(0x1e8)](_0x3853c6),this[_0x83eb18(0x113)][_0x83eb18(0xfb)](_0x7c1e1c);}[_0x452ab3(0x16f)](){const _0x28b08d=_0x452ab3;this[_0x28b08d(0x15b)]=!0x0,this[_0x28b08d(0x27d)](this[_0x28b08d(0x230)][_0x28b08d(0x347)]());}['_toggleOffline'](){const _0x16bd97=_0x452ab3;this[_0x16bd97(0x15b)]=!0x1;}};Fn=Y([J(0x2,_0x322f48(Z)),J(0x3,_0x322f48(_0x21b59f)),J(0x4,_0x322f48(_0x19cbb5))],Fn);let Q=class extends _0x4bb5d8{constructor(_0x2418bb,_0x55f07d,_0x3d863e){const _0x300681=_0x452ab3;super(),this[_0x300681(0x1ce)]=_0x2418bb,this['_injector']=_0x55f07d,this[_0x300681(0x284)]=_0x3d863e,q(this,_0x300681(0x1c7),new Map()),q(this,_0x300681(0x250),new _0x5a021d()),this[_0x300681(0x1e3)]();}[_0x452ab3(0x2bc)](){const _0x1dcde6=_0x452ab3;super[_0x1dcde6(0x2bc)](),this[_0x1dcde6(0x250)][_0x1dcde6(0x29f)](),this[_0x1dcde6(0x1c7)]['forEach'](_0x5c5082=>_0x5c5082[_0x1dcde6(0x2bc)]());}['getCollabCursors$'](_0x49688a){const _0x4c778e=_0x452ab3;return this[_0x4c778e(0x1c7)][_0x4c778e(0x1bd)](_0x49688a)?this[_0x4c778e(0x1c7)][_0x4c778e(0x379)](_0x49688a)[_0x4c778e(0x22e)]:this[_0x4c778e(0x250)][_0x4c778e(0x327)](_0x37f0ff(_0x52c98b=>_0x52c98b[_0x4c778e(0x20f)]===_0x49688a),_0x4362fa(_0x226c18=>_0x226c18[_0x4c778e(0x22e)]));}[_0x452ab3(0x1e3)](){const _0x403e7e=_0x452ab3;this[_0x403e7e(0x1ce)]['getTypeOfUnitAdded$'](_0x2b61c5[_0x403e7e(0x1f6)])[_0x403e7e(0x327)](_0x29e831(this[_0x403e7e(0x188)]))['subscribe'](async _0x4f7345=>{const _0x3361a2=_0x403e7e;let _0x4ebec7=_0x4f7345[_0x3361a2(0x1aa)][_0x3361a2(0x155)](),_0x20d93c=await this[_0x3361a2(0x2df)](_0x4ebec7);this[_0x3361a2(0x250)][_0x3361a2(0xfb)](_0x20d93c),this[_0x3361a2(0x1c7)][_0x3361a2(0x2c2)](_0x4ebec7,_0x20d93c);}),this['_univerInstanceService'][_0x403e7e(0x204)](_0x2b61c5[_0x403e7e(0x105)])[_0x403e7e(0x327)](_0x29e831(this[_0x403e7e(0x188)]))[_0x403e7e(0x327)](_0x37f0ff(_0x2b68f1=>!_0x2b68f1[_0x403e7e(0x1aa)]['getUnitId']()[_0x403e7e(0x249)]('__')))[_0x403e7e(0x290)](async _0x37ea7d=>{const _0x797b85=_0x403e7e;let {unit:_0x4f73e2}=_0x37ea7d,_0x4b509a=_0x4f73e2[_0x797b85(0x155)](),_0x2af3c3=await this[_0x797b85(0x2ec)](_0x4b509a);this['_entityInit$'][_0x797b85(0xfb)](_0x2af3c3),this[_0x797b85(0x1c7)][_0x797b85(0x2c2)](_0x4b509a,_0x2af3c3);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2b61c5[_0x403e7e(0x137)])[_0x403e7e(0x327)](_0x29e831(this['dispose$']))[_0x403e7e(0x290)](async _0x18c700=>{const _0x2cc817=_0x403e7e;let _0xc06391=_0x18c700[_0x2cc817(0x1aa)][_0x2cc817(0x155)](),_0x37a8b1=await this[_0x2cc817(0x229)](_0xc06391);this[_0x2cc817(0x250)][_0x2cc817(0xfb)](_0x37a8b1),this[_0x2cc817(0x1c7)]['set'](_0xc06391,_0x37a8b1);}),this[_0x403e7e(0x1ce)][_0x403e7e(0x204)](_0x2b61c5['UNIVER_BOARD'])[_0x403e7e(0x327)](_0x29e831(this['dispose$']))[_0x403e7e(0x290)](async _0x1fa76f=>{const _0x505d8b=_0x403e7e;let _0x431d82=_0x1fa76f[_0x505d8b(0x1aa)][_0x505d8b(0x155)](),_0x5069bf=await this[_0x505d8b(0x37e)](_0x431d82);this['_entityInit$'][_0x505d8b(0xfb)](_0x5069bf),this[_0x505d8b(0x1c7)][_0x505d8b(0x2c2)](_0x431d82,_0x5069bf);}),_0x482fb4(this[_0x403e7e(0x1ce)][_0x403e7e(0x123)](_0x2b61c5[_0x403e7e(0x105)]),this[_0x403e7e(0x1ce)][_0x403e7e(0x123)](_0x2b61c5[_0x403e7e(0x1f6)]),this['_univerInstanceService'][_0x403e7e(0x123)](_0x2b61c5[_0x403e7e(0x137)]),this[_0x403e7e(0x1ce)][_0x403e7e(0x123)](_0x2b61c5[_0x403e7e(0x13d)]))[_0x403e7e(0x327)](_0x29e831(this[_0x403e7e(0x188)]))[_0x403e7e(0x290)](_0x7826b5=>{const _0x1119d4=_0x403e7e;let _0x4ef948=_0x7826b5[_0x1119d4(0x155)](),_0x1d066c=this[_0x1119d4(0x1c7)][_0x1119d4(0x379)](_0x4ef948);_0x1d066c&&(_0x1d066c[_0x1119d4(0x2bc)](),this[_0x1119d4(0x1c7)][_0x1119d4(0x1e8)](_0x4ef948));});}async[_0x452ab3(0x2df)](_0x2ba04a){const _0x5d0098=_0x452ab3;let _0x45eead=await this[_0x5d0098(0x284)][_0x5d0098(0x376)](_0x2ba04a),_0xb3feab=this[_0x5d0098(0x34e)][_0x5d0098(0x2ed)](Nn,_0x2ba04a,_0x45eead);return _0xb3feab['init'](),_0xb3feab;}async[_0x452ab3(0x2ec)](_0xddfcf0){const _0xd2f6d0=_0x452ab3;let _0x1872b3=await this[_0xd2f6d0(0x284)][_0xd2f6d0(0x376)](_0xddfcf0),_0x4306e0=this[_0xd2f6d0(0x34e)]['createInstance'](jn,_0xddfcf0,_0x1872b3);return _0x4306e0[_0xd2f6d0(0x114)](),_0x4306e0;}async[_0x452ab3(0x229)](_0x4efa24){const _0x398b06=_0x452ab3;let _0x437b5a=await this['_collabSessionService'][_0x398b06(0x376)](_0x4efa24),_0x1258e4=this['_injector'][_0x398b06(0x2ed)](Fn,_0x4efa24,_0x437b5a);return _0x1258e4[_0x398b06(0x114)](),_0x1258e4;}async[_0x452ab3(0x37e)](_0x31ff27){const _0x3f444b=_0x452ab3;let _0x519533=await this[_0x3f444b(0x284)][_0x3f444b(0x376)](_0x31ff27),_0x35b539=this[_0x3f444b(0x34e)]['createInstance'](Dn,_0x31ff27,_0x519533);return _0x35b539[_0x3f444b(0x114)](),_0x35b539;}};Q=Y([J(0x0,_0x5df53a),J(0x1,_0x322f48(_0x560cc2)),J(0x2,_0x322f48(_0xb68c6c))],Q);let In=class extends _0x4bb5d8{constructor(_0x8706f3,_0x1d1e09,_0x364f81){const _0x36f364=_0x452ab3;super(),this[_0x36f364(0x36e)]=_0x8706f3,this[_0x36f364(0x166)]=_0x1d1e09,this[_0x36f364(0x242)]=_0x364f81,q(this,_0x36f364(0x1a9),new Set()),q(this,'_renderScheduled',!0x1),q(this,_0x36f364(0x1ba),!0x1),q(this,'_latestCursors',new Map()),this[_0x36f364(0x1e3)]();}[_0x452ab3(0x2bc)](){const _0x2fa4fe=_0x452ab3;this[_0x2fa4fe(0x33b)](),super[_0x2fa4fe(0x2bc)]();}[_0x452ab3(0x1e3)](){const _0x1445bc=_0x452ab3;let _0x5574ed=this['_collabCursorController'][_0x1445bc(0x34a)](this[_0x1445bc(0x36e)]['unitId']);this[_0x1445bc(0x293)](_0xe9bbd4(_0xfd7d61([_0x5574ed,this[_0x1445bc(0x36e)][_0x1445bc(0x1aa)][_0x1445bc(0x2b3)],this['_themeService'][_0x1445bc(0x1f3)]])['pipe'](_0x29e831(this[_0x1445bc(0x188)]))[_0x1445bc(0x290)](([_0x41da5b])=>{const _0x1e3512=_0x1445bc;let _0x24a840=this[_0x1e3512(0x36e)][_0x1e3512(0x1aa)][_0x1e3512(0x28d)](),_0x3aed93=new Map();_0x41da5b[_0x1e3512(0x1f1)]((_0x396bda,_0x425a0c)=>{const _0x1517c3=_0x1e3512;_0x396bda[_0x1517c3(0x319)]===_0x24a840&&_0x3aed93['set'](_0x425a0c,{..._0x396bda,'color':this[_0x1517c3(0x242)]['getColorFromTheme'](_0x396bda[_0x1517c3(0x238)])});}),this[_0x1e3512(0x2b5)]=_0x3aed93,this['_scheduleRender']();})));let _0x19e61d=this['_context'][_0x1445bc(0x117)];this[_0x1445bc(0x293)](_0xe9bbd4(_0x19e61d[_0x1445bc(0x16b)][_0x1445bc(0x327)](_0x29e831(this['dispose$']))[_0x1445bc(0x290)](()=>{const _0x5b5bc0=_0x1445bc;this[_0x5b5bc0(0x1ba)]||this[_0x5b5bc0(0x314)]();})));}[_0x452ab3(0x314)](){const _0x427ce2=_0x452ab3;this[_0x427ce2(0x12a)]||(this[_0x427ce2(0x12a)]=!0x0,Promise[_0x427ce2(0x346)]()[_0x427ce2(0x300)](()=>{const _0x5b844e=_0x427ce2;this[_0x5b844e(0x12a)]=!0x1,this[_0x5b844e(0x161)]();}));}[_0x452ab3(0x161)](){const _0x26ad13=_0x452ab3;this[_0x26ad13(0x33b)]();let _0xd2919a=this[_0x26ad13(0x36e)][_0x26ad13(0x1aa)]['getActivePageId'](),_0x2a2839=[];if(this[_0x26ad13(0x2b5)][_0x26ad13(0x1f1)]((_0x215c56,_0x561243)=>{const _0x197eb6=_0x26ad13;_0x215c56[_0x197eb6(0x319)]===_0xd2919a&&_0x215c56['selectedIds'][_0x197eb6(0x1f1)](_0x5ef266=>{const _0x571a28=_0x197eb6;let _0x406ccf=_0x420347(_0x215c56[_0x571a28(0x2a4)],_0x5ef266),_0x1be9a8=this['_getSceneObjectByKey'](_0x406ccf);if(!_0x1be9a8)return;let _0x38666c=this[_0x571a28(0x1cf)](_0x1be9a8);_0x2a2839['push'](new wn(_0x571a28(0x353)+_0x561243+'-'+_0x5ef266,{..._0x215c56,'left':_0x38666c[_0x571a28(0x2a2)],'top':_0x38666c['top'],'width':_0x38666c['width'],'height':_0x38666c[_0x571a28(0x30e)],'angle':_0x1be9a8[_0x571a28(0x165)],'evented':!0x1,'zIndex':Cn}));});}),_0x2a2839[_0x26ad13(0x267)]===0x0){this[_0x26ad13(0x36e)][_0x26ad13(0x117)][_0x26ad13(0x36f)](!0x0);return;}this[_0x26ad13(0x1ba)]=!0x0,this[_0x26ad13(0x36e)][_0x26ad13(0x117)][_0x26ad13(0x1ca)](_0x2a2839,Cn),this[_0x26ad13(0x1ba)]=!0x1,this[_0x26ad13(0x1a9)]=new Set(_0x2a2839),this[_0x26ad13(0x36e)]['scene'][_0x26ad13(0x36f)](!0x0);}[_0x452ab3(0x33b)](){const _0x4064d9=_0x452ab3;let _0x2300e5=Array[_0x4064d9(0x1d4)](this[_0x4064d9(0x1a9)]);if(_0x2300e5['length']===0x0)return;let _0x3e5a44=this['_context'][_0x4064d9(0x117)];_0x4064d9(0x1b2)in _0x3e5a44&&typeof _0x3e5a44[_0x4064d9(0x1b2)]==_0x4064d9(0xf8)?_0x3e5a44[_0x4064d9(0x1b2)](_0x2300e5):_0x2300e5[_0x4064d9(0x1f1)](_0xf172dc=>{const _0x46c377=_0x4064d9;_0x46c377(0x233)in _0x3e5a44&&typeof _0x3e5a44[_0x46c377(0x233)]=='function'?_0x3e5a44[_0x46c377(0x233)](_0xf172dc):_0xf172dc[_0x46c377(0x2bc)]();}),this[_0x4064d9(0x1a9)]['clear'](),_0x3e5a44['makeDirty'](!0x0);}[_0x452ab3(0x150)](_0x5cc2df){const _0x42eea3=_0x452ab3;var _0x3512a1,_0x16d9bf,_0x4f0633;let _0x181c58=this[_0x42eea3(0x36e)][_0x42eea3(0x117)];return(_0x3512a1=(_0x16d9bf=(_0x4f0633=_0x181c58[_0x42eea3(0x2ac)])==null?void 0x0:_0x4f0633[_0x42eea3(0x1ec)](_0x181c58,_0x5cc2df))==null?_0x181c58[_0x42eea3(0x33e)](_0x5cc2df):_0x16d9bf)==null?null:_0x3512a1;}['_getObjectBounds'](_0x15e8aa){const _0x4a8d42=_0x452ab3;var _0x5bb200,_0x45beb1;let _0x236556=_0x15e8aa;return(_0x5bb200=(_0x45beb1=_0x236556[_0x4a8d42(0x2b4)])==null?void 0x0:_0x45beb1['call'](_0x236556))==null?{'left':_0x15e8aa[_0x4a8d42(0x2a2)],'top':_0x15e8aa['top'],'width':_0x15e8aa[_0x4a8d42(0x1fa)],'height':_0x15e8aa[_0x4a8d42(0x30e)]}:_0x5bb200;}};In=Y([J(0x1,_0x322f48(Q)),J(0x2,_0x322f48(_0x1a4d06))],In);const Ln=_0x452ab3(0x22f);var Rn=class{constructor(_0x17a9be,_0x4c64b0,_0x1606f3,_0x62295c){const _0x1b25f1=_0x452ab3;this[_0x1b25f1(0x2cc)]=_0x17a9be,this[_0x1b25f1(0x2af)]=_0x4c64b0,this['_docSkeleton']=_0x1606f3,this['_document']=_0x62295c,q(this,'_shapes',[]),q(this,_0x1b25f1(0x2fb),null),q(this,'_textBubble',null),q(this,_0x1b25f1(0x135),null),q(this,'_hideTimer',null),q(this,_0x1b25f1(0x11d),null),this[_0x1b25f1(0x161)]();}set[_0x452ab3(0x25d)](_0x8c938b){const _0x56e4d4=_0x452ab3;_0x8c938b?(this['_anchorDot']&&this[_0x56e4d4(0x135)]['hide'](),this[_0x56e4d4(0x148)]&&this[_0x56e4d4(0x148)][_0x56e4d4(0x20d)]()):(this[_0x56e4d4(0x135)]&&this[_0x56e4d4(0x135)][_0x56e4d4(0x20d)](),this[_0x56e4d4(0x148)]&&this[_0x56e4d4(0x148)][_0x56e4d4(0x2f8)]());}[_0x452ab3(0x2bc)](){const _0x329aab=_0x452ab3;for(let _0x19dc6e of this[_0x329aab(0x264)])_0x19dc6e[_0x329aab(0x2bc)]();this['_textBubble']&&this[_0x329aab(0x148)][_0x329aab(0x2bc)](),this[_0x329aab(0x135)]&&this['_anchorDot'][_0x329aab(0x2bc)](),this[_0x329aab(0x2fb)]&&this[_0x329aab(0x2fb)][_0x329aab(0x2bc)](),this[_0x329aab(0x11d)]&&this[_0x329aab(0x11d)]();}['_render'](){const _0x492395=_0x452ab3;let {_docSkeleton:_0x591992,_document:_0x469597}=this,{color:_0x50db84,name:_0xf2fc59,ranges:_0x499246}=this[_0x492395(0x2cc)],_0xfc49d6=_0x469597['getOffsetConfig'](),{docsLeft:_0x1c9c5d,docsTop:_0xe2142d}=_0xfc49d6,_0x7bb64e=new _0x5a4c20(_0xfc49d6,_0x591992);for(let {startOffset:_0x569e26,endOffset:_0x556eb4,rangeType:_0x3961fd,segmentId:_0x5ecac4,segmentPage:_0x9e98d8,collapsed:_0x27cc81,isActive:_0x548a52}of _0x499246){let _0x59cb70=_0x591992['findNodePositionByCharIndex'](_0x569e26,!0x0,_0x5ecac4,_0x9e98d8),_0x3fdd1f=_0x591992[_0x492395(0xfd)](_0x556eb4,!0x0,_0x5ecac4,_0x9e98d8);if(_0x3fdd1f==null&&(_0x3fdd1f=_0x591992[_0x492395(0xfd)](_0x556eb4-0x1,!0x1,_0x5ecac4,_0x9e98d8)),_0x548a52){let {contentBoxPointGroup:_0x3ee3e3}=_0x7bb64e[_0x492395(0x2d6)](_0x3fdd1f,_0x3fdd1f);if(_0x3ee3e3[_0x492395(0x267)]===0x0)continue;this['_drawAnchor'](_0x50db84,_0x3ee3e3,_0x1c9c5d,_0xe2142d,_0xf2fc59),this[_0x492395(0x11d)]=this[_0x492395(0x196)]();}if(_0x59cb70&&_0x3fdd1f){if(_0x3961fd===_0x322a43[_0x492395(0x1d7)]){var _0x5bb3e4;let {pointGroup:_0x3ea30f}=(_0x5bb3e4=new _0x55a77c(_0xfc49d6,_0x591992)['getRangePointData'](_0x59cb70,_0x3fdd1f))==null?{}:_0x5bb3e4;if(_0x3ea30f==null||_0x3ea30f[_0x492395(0x267)]===0x0)continue;this[_0x492395(0x285)](_0x50db84,_0x3ea30f,_0x1c9c5d,_0xe2142d);}else{if(!_0x27cc81){let {borderBoxPointGroup:_0x8b58bf}=_0x7bb64e[_0x492395(0x2d6)](_0x59cb70,_0x3fdd1f);if(_0x8b58bf['length']===0x0)continue;this[_0x492395(0x2ab)](_0x50db84,_0x8b58bf,_0x1c9c5d,_0xe2142d);}}}}}[_0x452ab3(0x2db)](_0x3ea5ad,_0x48b36c,_0x20d3ec,_0x559f4c,_0xd2551a){const _0x4b44db=_0x452ab3;let {left:_0x5defe6,top:_0x5e9074,height:_0x52ca2b}=this[_0x4b44db(0x142)](_0x48b36c),_0x437d09=1.5/this[_0x4b44db(0x175)](),_0x321083=new _0x56c250(Ln+_0x1d5fe5(0x6),{'left':_0x5defe6+_0x20d3ec-_0x437d09,'top':_0x5e9074+_0x559f4c,'height':_0x52ca2b,'width':1.5,'fill':_0x3ea5ad||_0x491c30(_0x1e5ab0['black'],0x0),'strokeWidth':_0x437d09,'stroke':_0x4b44db(0xfe),'evented':!0x0});this[_0x4b44db(0x2fb)]=_0x321083,this[_0x4b44db(0x2af)]['addObject'](_0x321083,_0x4ae077);let _0x524ad0=new _0x56c250(Ln+_0x1d5fe5(0x6),{'left':_0x5defe6+_0x20d3ec-_0x437d09,'top':_0x5e9074+_0x559f4c-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x3ea5ad||_0x491c30(_0x1e5ab0[_0x4b44db(0x1d3)],0x0),'strokeWidth':0x0,'stroke':_0x3ea5ad||_0x491c30(_0x1e5ab0[_0x4b44db(0x1d3)],0x0),'evented':!0x1});this[_0x4b44db(0x135)]=_0x524ad0,this[_0x4b44db(0x2af)][_0x4b44db(0x27f)](_0x524ad0,_0x4ae077);let _0x93f60c=new Sn(Ln+_0x1d5fe5(0x6),{'left':_0x5defe6+_0x20d3ec-_0x437d09,'top':_0x5e9074+_0x559f4c-0x14,'text':_0xd2551a,'color':_0x3ea5ad});this['_textBubble']=_0x93f60c,this[_0x4b44db(0x2af)][_0x4b44db(0x27f)](_0x93f60c,_0x4ae077),this[_0x4b44db(0x25d)]=!0x1;}[_0x452ab3(0x196)](){const _0x1461cd=_0x452ab3;let _0x1687cd=this['_anchor'][_0x1461cd(0x1e9)][_0x1461cd(0x2c6)](()=>{const _0x271214=_0x1461cd;this[_0x271214(0x25d)]=!0x0;}),_0x581d37=this['_anchor'][_0x1461cd(0x34c)][_0x1461cd(0x2c6)](()=>{const _0x1ec8f2=_0x1461cd;this['_hideTimer']&&clearTimeout(this[_0x1ec8f2(0x2b6)]),this[_0x1ec8f2(0x2b6)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x555217=_0x1461cd;_0x1687cd[_0x555217(0x335)](),_0x581d37[_0x555217(0x335)]();};}[_0x452ab3(0x2ab)](_0x16a62b,_0x1fe015,_0x45b265,_0x26a92d){const _0xd938fd=_0x452ab3;let _0x12ba60=0.2,_0x350097=new _0x179c0b(_0x16a62b)['setAlpha'](_0x12ba60)[_0xd938fd(0xf4)](),_0x488177=new _0x28e5a5('collab-text-range-'+_0x1d5fe5(0x6),{'pointsGroup':_0x1fe015,'fill':_0x350097||_0x491c30(_0x1e5ab0[_0xd938fd(0x1d3)],_0x12ba60),'left':_0x45b265,'top':_0x26a92d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xd938fd(0x264)][_0xd938fd(0x2fa)](_0x488177),this[_0xd938fd(0x2af)][_0xd938fd(0x27f)](_0x488177,_0x4ae077);}['_drawRectRange'](_0x30a016,_0x4c3010,_0x530cf9,_0x4b831a){const _0x21fb33=_0x452ab3;let _0x282d38=0.2,_0x498f5e=new _0x179c0b(_0x30a016)['setAlpha'](_0x282d38)[_0x21fb33(0xf4)](),_0x3168e7=new _0x28e5a5(_0x21fb33(0x359)+_0x1d5fe5(0x6),{'pointsGroup':_0x4c3010,'fill':_0x498f5e||_0x491c30(_0x1e5ab0[_0x21fb33(0x1d3)],_0x282d38),'left':_0x530cf9,'top':_0x4b831a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x3168e7),this[_0x21fb33(0x2af)]['addObject'](_0x3168e7,_0x4ae077);}['_getAnchorBounding'](_0x1095fa){let _0x585e55=_0x1095fa[0x0],_0xdd1c8a=_0x585e55[0x0],_0x330057=_0x585e55[0x2],{x:_0x1afaa6,y:_0x261e2f}=_0xdd1c8a,{x:_0x1617f8,y:_0x337806}=_0x330057;return{'left':_0x1afaa6,'top':_0x261e2f,'width':_0x1617f8-_0x1afaa6,'height':_0x337806-_0x261e2f};}['_getScale'](){const _0x144326=_0x452ab3;let {scaleX:_0x351225,scaleY:_0x487d13}=this[_0x144326(0x2af)][_0x144326(0x35c)]();return Math['max'](_0x351225,_0x487d13);}};let zn=class extends _0x4bb5d8{constructor(_0x35cbb0,_0x19eb2f,_0x1d3a91,_0x529793,_0x2ce167){const _0x3e9c8e=_0x452ab3;super(),this[_0x3e9c8e(0x36e)]=_0x35cbb0,this[_0x3e9c8e(0x23c)]=_0x19eb2f,this['_collabCursorController']=_0x1d3a91,this['_commandService']=_0x529793,this[_0x3e9c8e(0x242)]=_0x2ce167,q(this,_0x3e9c8e(0x2dc),[]),q(this,_0x3e9c8e(0x1a9),[]),this[_0x3e9c8e(0x1e3)]();}[_0x452ab3(0x1e3)](){const _0x2415ab=_0x452ab3;let _0x2bd12d=this[_0x2415ab(0x36e)][_0x2415ab(0x2a4)],_0x2c3e46=this[_0x2415ab(0x23c)];this[_0x2415ab(0x293)](_0xfd7d61([this[_0x2415ab(0x166)][_0x2415ab(0x34a)](_0x2bd12d),this[_0x2415ab(0x242)][_0x2415ab(0x1f3)]])[_0x2415ab(0x327)](_0x4283a7(([_0x198389,_0x3f24df])=>({'skeleton':_0x2c3e46['getSkeleton'](),'cursors':[..._0x198389[_0x2415ab(0x286)]()]['flatMap'](_0x4f3ce7=>({..._0x4f3ce7,'color':this['_themeService'][_0x2415ab(0x2a6)](_0x4f3ce7[_0x2415ab(0x238)])}))})))['subscribe'](_0x580f93=>{const _0x9110f0=_0x2415ab;if(this[_0x9110f0(0x33b)](),_0x580f93){let {skeleton:_0xa9ae3,cursors:_0x2a2bb8}=_0x580f93;this[_0x9110f0(0x186)](_0xa9ae3,_0x2a2bb8);}})),this[_0x2415ab(0x2ae)](),this[_0x2415ab(0x345)]();}[_0x452ab3(0x186)](_0x567abb,_0x4e4d50){const _0x289c4b=_0x452ab3;let {scene:_0x7b1a30,mainComponent:_0x12ff93}=this[_0x289c4b(0x36e)],_0x37861d=_0x4e4d50[_0x289c4b(0x12c)](_0x4e7715=>new Rn(_0x4e7715,_0x7b1a30,_0x567abb,_0x12ff93));this[_0x289c4b(0x2dc)]=_0x37861d,this[_0x289c4b(0x1a9)]=_0x4e4d50;}[_0x452ab3(0x21f)](){const _0x523d12=_0x452ab3;this[_0x523d12(0x33b)]();let {scene:_0x887179,mainComponent:_0xd31f06}=this['_context'],_0x33b3aa=this[_0x523d12(0x23c)][_0x523d12(0x311)](),_0x1c9d48=this[_0x523d12(0x1a9)][_0x523d12(0x12c)](_0xc71f9=>new Rn(_0xc71f9,_0x887179,_0x33b3aa,_0xd31f06));this[_0x523d12(0x2dc)]=_0x1c9d48;}[_0x452ab3(0x33b)](){const _0x260c17=_0x452ab3;this[_0x260c17(0x2dc)][_0x260c17(0x1f1)](_0x449955=>_0x449955[_0x260c17(0x2bc)]()),this[_0x260c17(0x2dc)]=[];}['_initCommandExecutedListener'](){const _0x119819=_0x452ab3;let _0x4ae883=[_0x431f46['id']];this['disposeWithMe'](this[_0x119819(0x244)][_0x119819(0x35f)](_0x244ef9=>{const _0x476175=_0x119819;_0x4ae883[_0x476175(0x197)](_0x244ef9['id'])&&_0x244ef9[_0x476175(0x25f)][_0x476175(0x2a4)]===this[_0x476175(0x36e)][_0x476175(0x2a4)]&&this[_0x476175(0x21f)]();}));}[_0x452ab3(0x2ae)](){const _0x1ae8b6=_0x452ab3;this[_0x1ae8b6(0x293)](_0x47deb5(this[_0x1ae8b6(0x36e)][_0x1ae8b6(0x1ab)][_0x1ae8b6(0x13b)])[_0x1ae8b6(0x327)](_0x2d0fd5(_0x14c41d=>_0x14c41d[_0x1ae8b6(0x2ef)]===_0x423af5[_0x1ae8b6(0x329)]),_0x4e33e1(0x10))[_0x1ae8b6(0x290)](()=>{this['_refreshCollabCursors']();}));}};zn=Y([J(0x1,_0x322f48(_0x457f3f)),J(0x2,_0x322f48(Q)),J(0x3,_0x394c60),J(0x4,_0x322f48(_0x1a4d06))],zn);var Bn=class extends _0x40b7f6{constructor(_0x36b14b,_0x9745a5){const _0xc609ee=_0x452ab3;if(super(_0x36b14b,_0x9745a5),q(this,_0xc609ee(0x140),void 0x0),q(this,_0xc609ee(0x2d1),!0x1),q(this,_0xc609ee(0x176),void 0x0),q(this,_0xc609ee(0x245),''),q(this,'_labelPosition',_0xc609ee(0x28e)),q(this,_0xc609ee(0x128),void 0x0),q(this,_0xc609ee(0x32a),void 0x0),q(this,'_highlight',void 0x0),q(this,_0xc609ee(0x1d8),0x4),q(this,_0xc609ee(0x313),void 0x0),q(this,'_blinkIntervalTimer',void 0x0),q(this,'_isBlinkVisible',!0x0),q(this,_0xc609ee(0x29b),0x0),q(this,'_labelHorizontalPosition',_0xc609ee(0x1cb)),_0x9745a5){var _0x550f16;if(this[_0xc609ee(0x111)](_0x9745a5),_0x9745a5[_0xc609ee(0x31c)]&&((_0x550f16=_0x9745a5['highlightSecond'])==null?this[_0xc609ee(0x1d8)]:_0x550f16)){var _0x3634aa;this[_0xc609ee(0x34b)]((_0x3634aa=_0x9745a5[_0xc609ee(0x144)])==null?this[_0xc609ee(0x1d8)]:_0x3634aa);}}this[_0xc609ee(0x1e9)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0xc609ee(0x2c6)](()=>this[_0xc609ee(0x111)]({'hovered':!0x1}));}[_0x452ab3(0x2e5)](_0x465961){this['_offsetY']=_0x465961;}[_0x452ab3(0x111)](_0x3aa7ff){const _0x598755=_0x452ab3;var _0x35eef1,_0xd9c889,_0x1820ce,_0x1e4c28,_0x57a9f5,_0x338b3e,_0x456c78,_0x377ae8;this['_color']=(_0x35eef1=_0x3aa7ff[_0x598755(0x238)])==null?this[_0x598755(0x140)]:_0x35eef1,this[_0x598755(0x2d1)]=(_0xd9c889=_0x3aa7ff[_0x598755(0x27b)])==null?this[_0x598755(0x2d1)]:_0xd9c889,this[_0x598755(0x176)]=(_0x1820ce=_0x3aa7ff['range'])==null?this[_0x598755(0x176)]:_0x1820ce,this[_0x598755(0x245)]=(_0x1e4c28=_0x3aa7ff[_0x598755(0x13c)])==null?this[_0x598755(0x245)]:_0x1e4c28,this[_0x598755(0x1f4)]=(_0x57a9f5=_0x3aa7ff[_0x598755(0x2dd)])==null?this['_labelPosition']:_0x57a9f5,this[_0x598755(0x128)]=(_0x338b3e=_0x3aa7ff[_0x598755(0x30b)])==null?this['_backgroundColor']:_0x338b3e,this['_showText']=(_0x456c78=_0x3aa7ff[_0x598755(0x276)])==null?this['_showText']:_0x456c78,this['_labelHorizontalPosition']=(_0x377ae8=_0x3aa7ff[_0x598755(0x1b8)])==null?this[_0x598755(0x18a)]:_0x377ae8,_0x3aa7ff[_0x598755(0x144)]!==void 0x0&&(this[_0x598755(0x1d8)]=_0x3aa7ff[_0x598755(0x144)]),_0x3aa7ff[_0x598755(0x31c)]!==void 0x0&&(this[_0x598755(0x1c2)]=_0x3aa7ff[_0x598755(0x31c)]),_0x3aa7ff[_0x598755(0x1b9)]!==void 0x0&&(this[_0x598755(0x29b)]=_0x3aa7ff[_0x598755(0x1b9)]),this[_0x598755(0x33c)]({'width':_0x3aa7ff['width'],'height':_0x3aa7ff['height']});}[_0x452ab3(0x228)](_0x290a7f){const _0x1630b8=_0x452ab3;let {row:_0x38f390,column:_0x5cbfaa}=_0x290a7f;if(_0x38f390>=this[_0x1630b8(0x176)][_0x1630b8(0x12e)]&&_0x38f390<=this[_0x1630b8(0x176)][_0x1630b8(0x224)]&&_0x5cbfaa>=this['_range'][_0x1630b8(0x1fd)]&&_0x5cbfaa<=this[_0x1630b8(0x176)][_0x1630b8(0x195)]){this[_0x1630b8(0x111)]({'hovered':!0x0});return;}this[_0x1630b8(0x111)]({'hovered':!0x1});}[_0x452ab3(0x34b)](_0x396f39){const _0x5ae3cb=_0x452ab3;this['_stopBlinking'](),this[_0x5ae3cb(0x241)]=!0x0,this[_0x5ae3cb(0x1af)]=window[_0x5ae3cb(0x37b)](()=>{const _0x1a8f01=_0x5ae3cb;this[_0x1a8f01(0x241)]=!this['_isBlinkVisible'],this[_0x1a8f01(0x36f)](!0x0);},0x1f4),this[_0x5ae3cb(0x313)]=window[_0x5ae3cb(0x348)](()=>{const _0x354f6b=_0x5ae3cb;this[_0x354f6b(0x234)](),this[_0x354f6b(0x241)]=!0x0,this[_0x354f6b(0x36f)](!0x0);},_0x396f39*0x3e8);}[_0x452ab3(0x234)](){const _0x57a7c5=_0x452ab3;this[_0x57a7c5(0x1af)]&&(window[_0x57a7c5(0x32b)](this['_blinkIntervalTimer']),this[_0x57a7c5(0x1af)]=void 0x0),this[_0x57a7c5(0x313)]&&(window[_0x57a7c5(0x131)](this[_0x57a7c5(0x313)]),this[_0x57a7c5(0x313)]=void 0x0);}[_0x452ab3(0x209)](_0x3a624a){return!0x1;}['dispose'](){const _0x300588=_0x452ab3;this[_0x300588(0x234)](),super[_0x300588(0x2bc)]();}[_0x452ab3(0x12d)](_0x2b50cb){const _0x4ac7a7=_0x452ab3;let _0x4ba9d0=this['_color'],_0x50d5aa=this[_0x4ac7a7(0x128)];if(this['_highlight']&&!this['_isBlinkVisible']&&(_0x4ba9d0=this[_0x4ac7a7(0x19f)](this[_0x4ac7a7(0x140)]),_0x50d5aa=this['_backgroundColor']?this['_getLighterColor'](this['_backgroundColor']):void 0x0),_0x56c250[_0x4ac7a7(0x30f)](_0x2b50cb,{'width':this[_0x4ac7a7(0x1fa)],'height':this[_0x4ac7a7(0x30e)],'strokeWidth':this[_0x4ac7a7(0x2f2)]||1.5,'stroke':_0x4ba9d0,'evented':!0x1,'fill':_0x50d5aa}),this[_0x4ac7a7(0x2d1)]||this['_showText']){var _0x5bec07;_0x2b50cb[_0x4ac7a7(0x116)]();let _0x505832=this[_0x4ac7a7(0x18a)]==='left'?-bn(_0x2b50cb,this[_0x4ac7a7(0x245)]):this[_0x4ac7a7(0x1fa)];_0x2b50cb[_0x4ac7a7(0x17d)](0x1,0x0,0x0,0x1,_0x505832,(this[_0x4ac7a7(0x1f4)]===_0x4ac7a7(0x368)?0x0:-0x14)+((_0x5bec07=this[_0x4ac7a7(0x29b)])==null?0x0:_0x5bec07)),Sn['drawWith'](_0x2b50cb,{'text':this[_0x4ac7a7(0x245)],'color':_0x4ba9d0}),_0x2b50cb[_0x4ac7a7(0x134)]();}}[_0x452ab3(0x19f)](_0x17745a){const _0x251ae5=_0x452ab3;return _0x17745a[_0x251ae5(0x249)]('#')?_0x251ae5(0x302)+Number[_0x251ae5(0x36d)](_0x17745a[_0x251ae5(0x2ba)](0x1,0x3),0x10)+',\x20'+Number[_0x251ae5(0x36d)](_0x17745a['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x251ae5(0x36d)](_0x17745a['slice'](0x5,0x7),0x10)+',\x200.2)':_0x17745a['startsWith'](_0x251ae5(0x309))?_0x17745a[_0x251ae5(0x235)](/[\d.]+\)$/g,_0x251ae5(0x355)):_0x17745a['startsWith'](_0x251ae5(0x2c0))?_0x17745a[_0x251ae5(0x235)]('rgb',_0x251ae5(0x309))[_0x251ae5(0x235)](')',_0x251ae5(0x159)):_0x17745a;}};let Vn=class extends _0x4bb5d8{constructor(_0x4235cb,_0x992037,_0x589972,_0x21f0bf){const _0x5cb4ad=_0x452ab3;super(),this['_context']=_0x4235cb,this[_0x5cb4ad(0xfa)]=_0x992037,this['_collabCursorController']=_0x589972,this['_themeService']=_0x21f0bf,q(this,_0x5cb4ad(0x1a9),new Set()),q(this,_0x5cb4ad(0x26f),null),q(this,_0x5cb4ad(0x33a),null),this['_init']();}[_0x452ab3(0x1e3)](){const _0x326302=_0x452ab3;this[_0x326302(0xfa)][_0x326302(0x1e2)]['pipe'](_0x3a7f40(this[_0x326302(0x188)]),_0x47d1c9(_0x2bc831=>{const _0x56eed0=_0x326302;if(_0x2bc831){let _0x49bfe7=_0x2bc831['sheetId'];return _0xfd7d61(this['_collabCursorController'][_0x56eed0(0x34a)](this[_0x56eed0(0x36e)]['unitId']),this[_0x56eed0(0x242)]['currentTheme$'])[_0x56eed0(0x327)](_0x4283a7(([_0x3469b8,_0x298c3d])=>{const _0x24fdef=_0x56eed0;let _0x8f5d6=new Map();return _0x3469b8[_0x24fdef(0x1f1)]((_0x211fa6,_0x344050)=>{const _0x381a26=_0x24fdef;if(_0x211fa6[_0x381a26(0x2b1)]===_0x49bfe7){let _0x3bbbd0={..._0x211fa6};_0x3bbbd0['color']=this[_0x381a26(0x242)][_0x381a26(0x2a6)](_0x211fa6[_0x381a26(0x238)]),_0x8f5d6[_0x381a26(0x2c2)](_0x344050,_0x3bbbd0);}}),{'skeleton':_0x2bc831,'cursors':_0x8f5d6};}));}return _0x40dbc4({'skeleton':null,'cursors':new Map()});}))[_0x326302(0x290)](({skeleton:_0x51cb7f,cursors:_0x348a08})=>{const _0x4ab31f=_0x326302;this[_0x4ab31f(0x33b)](),_0x51cb7f&&this[_0x4ab31f(0x186)](_0x51cb7f,_0x348a08);}),this[_0x326302(0x293)](this[_0x326302(0xfa)][_0x326302(0x1e2)]['pipe'](_0x3a7f40(this[_0x326302(0x188)]))[_0x326302(0x290)](_0x2b4a7d=>{const _0x2068dd=_0x326302;var _0x37a67f;if(_0x2b4a7d==null)return;(_0x37a67f=this[_0x2068dd(0x33a)])==null||_0x37a67f[_0x2068dd(0x335)](),this[_0x2068dd(0x33a)]=null;let {skeleton:_0x2ff8c7}=_0x2b4a7d,{scene:_0x2092a7}=this['_context'];this[_0x2068dd(0x33a)]=_0x2092a7['onPointerMove$']['subscribeEvent'](_0x913187(_0x4ed375=>{const _0x21781d=_0x2068dd;var _0x954869,_0x46fd8c;let {offsetX:_0x4d903c,offsetY:_0x56d591}=_0x4ed375,{x:_0x3e9fa4,y:_0x379e01}=_0x2092a7[_0x21781d(0x305)](_0x46c9ea[_0x21781d(0x246)]([_0x4d903c,_0x56d591])),{scaleX:_0x175f08,scaleY:_0xe54192}=_0x2092a7['getAncestorScale'](),_0x531b12=_0x2092a7[_0x21781d(0x2a1)](_0x1f77ba[_0x21781d(0x19e)]),_0x237de4=_0x2092a7[_0x21781d(0x13a)](_0x46c9ea['FromArray']([_0x3e9fa4,_0x379e01]),_0x531b12),_0xbcb419=_0x2ff8c7['getCellPositionByOffset'](_0x4d903c,_0x56d591,_0x175f08,_0xe54192,_0x237de4);((_0x954869=this['_lastPointer'])==null?void 0x0:_0x954869[_0x21781d(0x167)])===_0xbcb419['column']&&((_0x46fd8c=this['_lastPointer'])==null?void 0x0:_0x46fd8c['row'])===_0xbcb419[_0x21781d(0x337)]||this[_0x21781d(0x1a9)][_0x21781d(0x1f1)](_0x46867d=>{const _0xc9a743=_0x21781d;_0x46867d[_0xc9a743(0x228)](_0xbcb419);});},0x64));})),this[_0x326302(0x293)](_0xe9bbd4(()=>{const _0x32a93b=_0x326302;var _0x277153;(_0x277153=this[_0x32a93b(0x33a)])==null||_0x277153[_0x32a93b(0x335)](),this[_0x32a93b(0x33a)]=null;}));}['_updateCollabCursors'](_0x49951f,_0x51e6b8){const _0x1d5bbe=_0x452ab3;let _0x2f56c9=this[_0x1d5bbe(0xfa)]['getCurrentSkeleton']();if(!_0x2f56c9)return;let _0xa7be45=this[_0x1d5bbe(0x10f)]();if(!_0xa7be45)return;this[_0x1d5bbe(0x1a9)][_0x1d5bbe(0x1f1)](_0x5862fb=>{_0x5862fb['makeDirty']();});let {scene:_0x38f3fc}=_0xa7be45,_0xfd3f71=Hn(Array['from'](_0x51e6b8[_0x1d5bbe(0x286)]()))[_0x1d5bbe(0x12c)](_0x2d5506=>{const _0xb51f1c=_0x1d5bbe;let {color:_0x5b2c37,range:_0x1c6819,name:_0x499f83,selection:_0x4d96ee,sheetID:_0x5910fc}=_0x2d5506,{startColumn:_0x3e8b58,startRow:_0x5651b3,endColumn:_0x3d5093,endRow:_0x3be266}=_0x1c6819,_0xcf38f=_0x374949(_0x5651b3,_0x3e8b58,_0x38f3fc,_0x2f56c9),_0x21ed6a=_0x374949(_0x3be266,_0x3d5093,_0x38f3fc,_0x2f56c9),{columnHeaderHeightAndMarginTop:_0x432419}=_0x2f56c9,{startX:_0x17e533,startY:_0x2e5728}=_0xcf38f,{endX:_0xa873a2,endY:_0x3a748a}=_0x21ed6a,_0x57d90e=_0xa873a2-_0x17e533,_0x3e7400=_0x3a748a-_0x2e5728;return new Bn(_0x499f83,{'labelPosition':_0x2e5728-_0x432419>=0x14?_0xb51f1c(0x28e):'bottom','sheetID':_0x5910fc,'range':_0x1c6819,'color':_0x5b2c37,'name':_0x499f83,'selection':_0x4d96ee,'left':_0x17e533,'top':_0x2e5728,'width':_0x57d90e,'height':_0x3e7400,'evented':!0x1,'zIndex':0x1389});});_0x38f3fc[_0x1d5bbe(0x1ca)](_0xfd3f71,0x1),this[_0x1d5bbe(0x1a9)]=new Set(_0xfd3f71);}['_removeCollabCursors'](){const _0x38721a=_0x452ab3;var _0x37f116;(_0x37f116=this[_0x38721a(0x1a9)])==null||_0x37f116[_0x38721a(0x1f1)](_0x2f2b10=>_0x2f2b10['dispose']());}['_getSheetObject'](){const _0x231ee5=_0x452ab3;return _0x1b4214(this[_0x231ee5(0x36e)][_0x231ee5(0x1aa)],this['_context']);}};Vn=Y([J(0x1,_0x322f48(_0x24ac8d)),J(0x2,_0x322f48(Q)),J(0x3,_0x322f48(_0x1a4d06))],Vn);function Hn(_0x53597e){const _0x3e525c=_0x452ab3;let _0x154e72=new Map();return _0x53597e[_0x3e525c(0x1f1)](_0x4c6eff=>{const _0x3006a3=_0x3e525c;if(_0x154e72['has'](_0x4c6eff[_0x3006a3(0x179)])){let _0x17e91a=_0x154e72[_0x3006a3(0x379)](_0x4c6eff[_0x3006a3(0x179)]);_0x17e91a['name']+=',\x20'+_0x4c6eff[_0x3006a3(0x13c)];}else _0x154e72[_0x3006a3(0x2c2)](_0x4c6eff[_0x3006a3(0x179)],_0x4c6eff);}),Array[_0x3e525c(0x1d4)](_0x154e72['values']());}let Un=class extends _0x4bb5d8{constructor(_0x342a19,_0x14d8f9,_0x62614e){const _0x51a0c1=_0x452ab3;super(),this[_0x51a0c1(0x36e)]=_0x342a19,this[_0x51a0c1(0x166)]=_0x14d8f9,this['_themeService']=_0x62614e,q(this,_0x51a0c1(0x1a9),new Set()),q(this,_0x51a0c1(0x12a),!0x1),q(this,_0x51a0c1(0x1ba),!0x1),q(this,'_latestCursors',new Map()),this[_0x51a0c1(0x1e3)]();}[_0x452ab3(0x2bc)](){const _0x5f2023=_0x452ab3;this[_0x5f2023(0x33b)](),super[_0x5f2023(0x2bc)]();}[_0x452ab3(0x1e3)](){const _0x90b9fb=_0x452ab3;let _0x56b5e7=this[_0x90b9fb(0x36e)][_0x90b9fb(0x1aa)][_0x90b9fb(0x10b)][_0x90b9fb(0x1a7)],_0x5ee486=this[_0x90b9fb(0x166)][_0x90b9fb(0x34a)](this['_context'][_0x90b9fb(0x2a4)]);this[_0x90b9fb(0x293)](_0xe9bbd4(_0xfd7d61([_0x5ee486,_0x56b5e7,this[_0x90b9fb(0x242)][_0x90b9fb(0x1f3)]])[_0x90b9fb(0x327)](_0x29e831(this['dispose$']))[_0x90b9fb(0x290)](([_0x4e7cfb,_0x2586ad])=>{const _0x171740=_0x90b9fb;let _0x4bcd3e=new Map();_0x4e7cfb['forEach']((_0x345b55,_0x50c0de)=>{const _0x520758=_0x4303;_0x345b55[_0x520758(0x319)]===_0x2586ad&&_0x4bcd3e['set'](_0x50c0de,{..._0x345b55,'color':this[_0x520758(0x242)][_0x520758(0x2a6)](_0x345b55[_0x520758(0x238)])});}),this['_latestCursors']=_0x4bcd3e,this[_0x171740(0x314)]();})));let _0x544be7=this[_0x90b9fb(0x36e)][_0x90b9fb(0x117)];this['disposeWithMe'](_0xe9bbd4(_0x544be7[_0x90b9fb(0x16b)][_0x90b9fb(0x327)](_0x29e831(this[_0x90b9fb(0x188)]))[_0x90b9fb(0x290)](()=>{const _0x3d380c=_0x90b9fb;this[_0x3d380c(0x1ba)]||this['_scheduleRender']();})));}[_0x452ab3(0x314)](){const _0x48bde6=_0x452ab3;this[_0x48bde6(0x12a)]||(this[_0x48bde6(0x12a)]=!0x0,Promise[_0x48bde6(0x346)]()[_0x48bde6(0x300)](()=>{const _0x499de8=_0x48bde6;this[_0x499de8(0x12a)]=!0x1,this['_render']();}));}[_0x452ab3(0x161)](){const _0x29cc40=_0x452ab3;var _0x53304d;this[_0x29cc40(0x33b)]();let _0x469d7f=(_0x53304d=this['_context'][_0x29cc40(0x1aa)][_0x29cc40(0x10b)][_0x29cc40(0x2e6)]())==null?void 0x0:_0x53304d[_0x29cc40(0x220)]();if(!_0x469d7f)return;let _0x490528=[];if(this[_0x29cc40(0x2b5)]['forEach']((_0x8d65e8,_0x53eed7)=>{const _0x2f76f1=_0x29cc40;_0x8d65e8[_0x2f76f1(0x319)]===_0x469d7f&&_0x8d65e8['selectedIds']['forEach'](_0x1710c2=>{const _0x172175=_0x2f76f1;let _0x3991e7=_0x19749c(_0x8d65e8[_0x172175(0x2a4)],_0x8d65e8['subUnitId'],_0x1710c2),_0x39a13c=this[_0x172175(0x150)](_0x3991e7);if(!_0x39a13c)return;let _0x271177=this[_0x172175(0x1cf)](_0x39a13c);_0x490528['push'](new wn('slide-collab-cursor-'+_0x53eed7+'-'+_0x1710c2,{..._0x8d65e8,'left':_0x271177[_0x172175(0x2a2)],'top':_0x271177['top'],'width':_0x271177[_0x172175(0x1fa)],'height':_0x271177[_0x172175(0x30e)],'angle':_0x39a13c[_0x172175(0x165)],'evented':!0x1,'zIndex':Cn}));});}),_0x490528[_0x29cc40(0x267)]===0x0){this[_0x29cc40(0x36e)][_0x29cc40(0x117)]['makeDirty'](!0x0);return;}this[_0x29cc40(0x1ba)]=!0x0,this[_0x29cc40(0x36e)][_0x29cc40(0x117)][_0x29cc40(0x1ca)](_0x490528,Cn),this[_0x29cc40(0x1ba)]=!0x1,this[_0x29cc40(0x1a9)]=new Set(_0x490528),this[_0x29cc40(0x36e)]['scene'][_0x29cc40(0x36f)](!0x0);}[_0x452ab3(0x33b)](){const _0x141356=_0x452ab3;let _0x31958c=Array[_0x141356(0x1d4)](this[_0x141356(0x1a9)]);if(_0x31958c[_0x141356(0x267)]===0x0)return;let _0x3f7380=this[_0x141356(0x36e)][_0x141356(0x117)];_0x141356(0x1b2)in _0x3f7380&&typeof _0x3f7380[_0x141356(0x1b2)]==_0x141356(0xf8)?_0x3f7380[_0x141356(0x1b2)](_0x31958c):_0x31958c[_0x141356(0x1f1)](_0x51d25d=>{const _0x49f66b=_0x141356;_0x49f66b(0x233)in _0x3f7380&&typeof _0x3f7380[_0x49f66b(0x233)]==_0x49f66b(0xf8)?_0x3f7380[_0x49f66b(0x233)](_0x51d25d):_0x51d25d['dispose']();}),this[_0x141356(0x1a9)][_0x141356(0x328)](),_0x3f7380[_0x141356(0x36f)](!0x0);}['_getSceneObjectByKey'](_0xd0fc49){const _0x297c2a=_0x452ab3;var _0x195d41,_0x2527cf,_0x135ca2;let _0x5442eb=this['_context'][_0x297c2a(0x117)];return(_0x195d41=(_0x2527cf=(_0x135ca2=_0x5442eb[_0x297c2a(0x2ac)])==null?void 0x0:_0x135ca2[_0x297c2a(0x1ec)](_0x5442eb,_0xd0fc49))==null?_0x5442eb[_0x297c2a(0x33e)](_0xd0fc49):_0x2527cf)==null?null:_0x195d41;}[_0x452ab3(0x1cf)](_0x5d26a3){const _0x440982=_0x452ab3;var _0x4fec5c,_0x1f27ff;let _0x2bb2f5=_0x5d26a3;return(_0x4fec5c=(_0x1f27ff=_0x2bb2f5[_0x440982(0x2b4)])==null?void 0x0:_0x1f27ff['call'](_0x2bb2f5))==null?{'left':_0x5d26a3[_0x440982(0x2a2)],'top':_0x5d26a3[_0x440982(0x28e)],'width':_0x5d26a3[_0x440982(0x1fa)],'height':_0x5d26a3['height']}:_0x4fec5c;}};Un=Y([J(0x1,_0x322f48(Q)),J(0x2,_0x322f48(_0x1a4d06))],Un);let Wn=class extends _0x948ae6{constructor(_0x8e4a5f,_0x11d5af,_0x14144c,_0x50cce4,_0x329321,_0x44e014){const _0x356bad=_0x452ab3;super(),this[_0x356bad(0x25a)]=_0x8e4a5f,this[_0x356bad(0x307)]=_0x11d5af,this[_0x356bad(0x208)]=_0x14144c,this[_0x356bad(0x216)]=_0x50cce4,this['_notificationService']=_0x329321,this[_0x356bad(0x321)]=_0x44e014,this['_setupBeforeClosingHandler'](),this[_0x356bad(0x31f)]();}[_0x452ab3(0x15f)](){const _0x240ef4=_0x452ab3;this[_0x240ef4(0x293)](this[_0x240ef4(0x25a)][_0x240ef4(0x374)](()=>{const _0x2da7bd=_0x240ef4;if(this['_localCacheService']['saveTaskMap'][_0x2da7bd(0x2e9)])return this[_0x2da7bd(0x321)]['t'](_0x2da7bd(0x122));}));}['_initEvent'](){const _0x2ca76b=_0x452ab3;this['disposeWithMe'](this[_0x2ca76b(0x208)][_0x2ca76b(0x172)][_0x2ca76b(0x290)](_0x222448=>{const _0x1cc704=_0x2ca76b;_0x222448['id']===_0x456bfe[_0x1cc704(0x2cb)]&&this[_0x1cc704(0x216)][_0x1cc704(0x20d)]({'type':_0x5c4a9b[_0x1cc704(0x330)],'content':this[_0x1cc704(0x321)]['t']('collaboration-client-ui.collaboration.single-unit.warning')}),_0x222448['id']===_0x456bfe[_0x1cc704(0x2fc)]&&this[_0x1cc704(0x216)][_0x1cc704(0x20d)]({'type':_0x5c4a9b['Warning'],'content':this[_0x1cc704(0x321)]['t'](_0x1cc704(0x1c6))}),_0x222448['id']===_0x456bfe[_0x1cc704(0x187)]&&this[_0x1cc704(0x219)][_0x1cc704(0x20d)]({'title':this['_localeService']['t'](_0x1cc704(0x193)),'content':this[_0x1cc704(0x321)]['t'](_0x1cc704(0x312)),'type':_0x1cc704(0x2b7),'duration':0x0}),_0x222448['id']===_0x456bfe[_0x1cc704(0x23e)]&&this[_0x1cc704(0x219)][_0x1cc704(0x20d)]({'title':this['_localeService']['t'](_0x1cc704(0x232)),'content':this['_localeService']['t']('collaboration-client-ui.conflict.content'),'type':_0x1cc704(0x2b7),'duration':0x0}),_0x222448['id']===_0x456bfe['JOIN_ROOM_FAILED']&&this[_0x1cc704(0x216)][_0x1cc704(0x20d)]({'type':_0x5c4a9b['Warning'],'content':this[_0x1cc704(0x321)]['t'](_0x222448[_0x1cc704(0x22a)]||'')}),_0x222448['id']===_0x456bfe[_0x1cc704(0x275)]&&this[_0x1cc704(0x216)][_0x1cc704(0x20d)]({'type':_0x5c4a9b[_0x1cc704(0x330)],'content':this[_0x1cc704(0x321)]['t'](_0x1cc704(0x1a5))}),_0x222448['id']===_0x456bfe[_0x1cc704(0x2f3)]&&this[_0x1cc704(0x216)][_0x1cc704(0x20d)]({'type':_0x5c4a9b[_0x1cc704(0x16d)],'content':this[_0x1cc704(0x321)]['t']('collaboration-client-ui.session.connection-failed')}),_0x222448['id']===_0x456bfe[_0x1cc704(0x2be)]&&this[_0x1cc704(0x216)][_0x1cc704(0x20d)]({'type':_0x5c4a9b[_0x1cc704(0x16d)],'content':this[_0x1cc704(0x321)]['t'](_0x1cc704(0x318))});}));}};Wn=Y([J(0x0,_0x3acd49),J(0x1,_0x528e3),J(0x2,_0x322f48(_0x48fa63)),J(0x3,_0x193ce1),J(0x4,_0x4225c0),J(0x5,_0x322f48(_0x27fdee))],Wn);const Gn=_0x240738(_0x452ab3(0x169));let Kn=class extends _0x4bb5d8{constructor(_0x513be2,_0x40fadb,_0x2eeda6,_0x30cdbb,_0x3df20e){const _0x365792=_0x452ab3;super(),this['_urlService']=_0x513be2,this[_0x365792(0x2d2)]=_0x40fadb,this[_0x365792(0x244)]=_0x2eeda6,this[_0x365792(0x28f)]=_0x30cdbb,_0x3df20e?_0x3df20e[_0x365792(0x203)]()[_0x365792(0x300)](()=>this['_init']()):(this[_0x365792(0x2d2)]['debug'](_0x365792(0x200),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x365792(0x1e3)]());}async[_0x452ab3(0x1e3)](){const _0x215247=_0x452ab3;let _0x418920=this[_0x215247(0x2ee)][_0x215247(0x289)](_0x215247(0x1aa)),_0x2320d9=this[_0x215247(0x2ee)][_0x215247(0x289)](_0x215247(0x2ef)),_0x2dfc29=this[_0x215247(0x2ee)][_0x215247(0x289)](_0x215247(0x132));if(!_0x418920||!_0x2320d9){this[_0x215247(0x2d2)][_0x215247(0x325)]('[CollaborationDataLoaderController]',_0x215247(0x1c4));return;}let _0x379dfa=await this[_0x215247(0x28f)][_0x215247(0x218)](_0x418920,Number(_0x2320d9),_0x2dfc29);_0x379dfa&&_0x379dfa instanceof _0x52cfc6&&this[_0x215247(0x1cc)](_0x379dfa);}async[_0x452ab3(0x1cc)](_0x4e86f3){const _0x5bf519=_0x452ab3;await this[_0x5bf519(0x2ea)](_0x4e86f3),_0x4e86f3[_0x5bf519(0x304)][_0x5bf519(0x327)](_0x29e831(this[_0x5bf519(0x188)]))[_0x5bf519(0x290)](_0x1e1ba0=>{const _0xeff888=_0x5bf519;_0x1e1ba0&&this[_0xeff888(0x2e3)](_0x1e1ba0);}),this['_urlService'][_0x5bf519(0x173)][_0x5bf519(0x327)](_0x29e831(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x4e86f3));}['_updateURLWithCurrentState'](_0x275c8c,_0x74a06=!0x1){const _0x3c8840=_0x452ab3;let _0x499ea5=this[_0x3c8840(0x2ee)][_0x3c8840(0x289)](_0x3c8840(0x132));_0x275c8c[_0x3c8840(0x1f5)]()!==_0x499ea5&&this[_0x3c8840(0x2ee)][_0x3c8840(0x13f)](_0x3c8840(0x132),_0x275c8c[_0x3c8840(0x1f5)](),_0x74a06);}async['_updateSubUnitFromURLParams'](_0x157b94){const _0x29229c=_0x452ab3;var _0xf5fe6;let _0x1b281d=this[_0x29229c(0x2ee)][_0x29229c(0x289)]('subunit');if(!_0x1b281d||!_0x157b94[_0x29229c(0x1ef)](_0x1b281d)){let _0x5d9232=_0x157b94[_0x29229c(0x171)]()[0x0],_0x5737ee=_0x157b94[_0x29229c(0x1ef)](_0x5d9232);if(!_0x5737ee)return;this[_0x29229c(0x2e3)](_0x5737ee,!0x0),await this[_0x29229c(0x244)][_0x29229c(0x1be)](_0x5d481e['id'],{'unitId':_0x157b94[_0x29229c(0x155)](),'subUnitId':_0x5d9232});return;}((_0xf5fe6=_0x157b94[_0x29229c(0x255)]())==null?void 0x0:_0xf5fe6[_0x29229c(0x1f5)]())!==_0x1b281d&&await this['_commandService']['executeCommand'](_0x5d481e['id'],{'unitId':_0x157b94[_0x29229c(0x155)](),'subUnitId':_0x1b281d});}};Kn=Y([J(0x0,Gn),J(0x1,_0x4b7488),J(0x2,_0x394c60),J(0x3,_0x322f48(_0x56925a)),J(0x4,_0x11517c(_0x5dd34e))],Kn);let qn=class{constructor(_0x27bb2a,_0x2c8322){const _0x1b2cd3=_0x452ab3;this[_0x1b2cd3(0x1a3)]=_0x27bb2a,this[_0x1b2cd3(0x356)]=_0x2c8322;}[_0x452ab3(0x15e)](_0x32ef2a){const _0x172ec9=_0x452ab3;this[_0x172ec9(0x1c0)](_0x32ef2a),this[_0x172ec9(0x125)](_0x32ef2a);}[_0x452ab3(0x1d6)](_0xf2fa4c){const _0x15818a=_0x452ab3;let {unitID:_0x1db1f2}=_0xf2fa4c,{redoCache:_0x35d429}=this['_renderManagerService'][_0x15818a(0x15c)](_0x1db1f2)[_0x15818a(0x1df)](_0x2a107e)[_0x15818a(0x211)]();if(_0x35d429['length']===0x0)return _0xf2fa4c;let _0x2372c0=_0x28669e[_0x15818a(0x110)](_0xf2fa4c[_0x15818a(0x36a)][0x0]);for(let _0x118497=0x0;_0x118497<_0x35d429[_0x15818a(0x267)];_0x118497++){let _0x171324={'id':_0x15818a(0x2d0),'params':{..._0x35d429[_0x118497]}},_0x3ad77d=this[_0x15818a(0x1a3)][_0x15818a(0x32f)](_0x2372c0,_0x171324,!0x1);if(_0x6fcace(_0x3ad77d))throw _0x3ad77d[_0x15818a(0x2b7)];_0x2372c0=_0x3ad77d[_0x15818a(0x2f4)];}return{..._0x28669e[_0x15818a(0x110)](_0xf2fa4c),'mutations':[_0x2372c0]};}['_transformUndoRedoStack'](_0x50b270){const _0x3013b4=_0x452ab3;let {unitID:_0x1a5a38}=_0x50b270,_0xaf9ad9=this[_0x3013b4(0x356)][_0x3013b4(0x15c)](_0x1a5a38)[_0x3013b4(0x1df)](_0x2a107e),{undoCache:_0x3cd0f2,redoCache:_0x4fa50d}=_0xaf9ad9[_0x3013b4(0x211)]();if(_0x3cd0f2[_0x3013b4(0x267)]===0x0||_0x4fa50d[_0x3013b4(0x267)]===0x0)return;let _0x50d553=[],_0x3b4679=[],_0xb46cb3=_0x28669e['deepClone'](_0x50b270['mutations'][0x0]),_0x3cacd2=_0x28669e[_0x3013b4(0x110)](_0x50b270[_0x3013b4(0x36a)][0x0]);for(let _0xa55e22=_0x3cd0f2[_0x3013b4(0x267)]-0x1;_0xa55e22>=0x0;_0xa55e22--){let _0x2b5217={'id':_0x3013b4(0x2d0),'params':{..._0x3cd0f2[_0xa55e22]}},_0x3808d0={'id':_0x3013b4(0x2d0),'params':{..._0x4fa50d[_0xa55e22]}},_0x8fb97e=this[_0x3013b4(0x1a3)][_0x3013b4(0x32f)](_0xb46cb3,_0x2b5217,!0x1),_0x19cbc3=this[_0x3013b4(0x1a3)]['transformMutation'](_0x3cacd2,_0x3808d0,!0x1);if(_0x6fcace(_0x8fb97e))throw _0x8fb97e[_0x3013b4(0x2b7)];if(_0x6fcace(_0x19cbc3))throw _0x19cbc3['error'];_0x50d553[_0x3013b4(0x124)](_0x8fb97e['m2Prime'][_0x3013b4(0x25f)]),_0x3b4679[_0x3013b4(0x124)](_0x19cbc3[_0x3013b4(0x32e)][_0x3013b4(0x25f)]),_0xb46cb3=_0x8fb97e[_0x3013b4(0x2f4)],_0x3cacd2=_0x19cbc3[_0x3013b4(0x2f4)];}_0xaf9ad9['setUndoRedoMutationParamsCache']({'undoCache':_0x50d553,'redoCache':_0x3b4679});}['_transformPreviousActiveRange'](_0x530f56){const _0x5ace43=_0x452ab3;let {unitID:_0x386988}=_0x530f56,_0x30f4b3=this['_renderManagerService']['getRenderById'](_0x386988)[_0x5ace43(0x1df)](_0x2a107e),_0x3c9e71=_0x30f4b3[_0x5ace43(0x268)]();if(_0x3c9e71==null)return;let _0xf1d3b5=[{'id':_0x5ace43(0x2d0),'params':{'unitId':_0x530f56[_0x5ace43(0x20f)],'actions':null,'textRanges':[_0x3c9e71]}}],_0x2d4393=this[_0x5ace43(0x1a3)][_0x5ace43(0x26d)](_0x530f56,_0xf1d3b5);if(!_0xec41cd(_0x2d4393))throw _0x2d4393[_0x5ace43(0x2b7)];let _0x560319=_0x2d4393[_0x5ace43(0x32e)][0x0][_0x5ace43(0x25f)][_0x5ace43(0x164)];Array[_0x5ace43(0x2cd)](_0x560319)&&_0x560319['length']&&_0x30f4b3[_0x5ace43(0x324)](_0x560319[0x0]);}};qn=Y([J(0x0,_0x444493),J(0x1,_0x1ad460)],qn);let Jn=class{constructor(_0x3f652d,_0x379a65,_0x1edc46){const _0x387480=_0x452ab3;this[_0x387480(0x34e)]=_0x3f652d,this[_0x387480(0x1a3)]=_0x379a65,this['_docStateChangeManagerService']=_0x1edc46;}['transformStateCache'](_0x4ab006){const _0x524cbf=_0x452ab3;this[_0x524cbf(0x341)](_0x4ab006);}[_0x452ab3(0x1d6)](_0x212f09){const _0x216651=_0x452ab3;let {unitID:_0xe90f46}=_0x212f09,{collaboration:_0x284f85}=this[_0x216651(0x295)][_0x216651(0x1dd)](_0xe90f46);if(_0x284f85[_0x216651(0x267)]===0x0)return _0x212f09;let _0x5a92ed=_0x28669e[_0x216651(0x110)](_0x212f09[_0x216651(0x36a)][0x0]);for(let _0xad6aca=0x0;_0xad6aca<_0x284f85[_0x216651(0x267)];_0xad6aca++){let _0x1684db={'id':_0x216651(0x2d0),'params':{'unitId':_0x284f85[_0xad6aca]['unitId'],..._0x284f85[_0xad6aca][_0x216651(0x274)]}},_0x16da90=this[_0x216651(0x1a3)][_0x216651(0x32f)](_0x5a92ed,_0x1684db,!0x1);if(_0x6fcace(_0x16da90))throw _0x16da90[_0x216651(0x2b7)];_0x5a92ed=_0x16da90[_0x216651(0x2f4)];}return{..._0x28669e[_0x216651(0x110)](_0x212f09),'mutations':[_0x5a92ed]};}['_transformHistoryAndStateStack'](_0x254f3b){const _0x50d64a=_0x452ab3;let {unitID:_0x45230e}=_0x254f3b,{history:_0x10710a,collaboration:_0x344612}=this['_docStateChangeManagerService'][_0x50d64a(0x1dd)](_0x45230e);if(_0x10710a[_0x50d64a(0x267)]===0x0&&_0x344612[_0x50d64a(0x267)]===0x0)return;let _0x9af5cd=[],_0x2543d5=[],_0x63b964=_0x28669e['deepClone'](_0x254f3b[_0x50d64a(0x36a)][0x0]),_0x14b1da=_0x28669e[_0x50d64a(0x110)](_0x254f3b['mutations'][0x0]);for(let _0x2ceab3=_0x10710a['length']-0x1;_0x2ceab3>=0x0;_0x2ceab3--){let _0x4caa13={'id':_0x50d64a(0x2d0),'params':{'unitId':_0x10710a[_0x2ceab3][_0x50d64a(0x2a4)],..._0x10710a[_0x2ceab3][_0x50d64a(0x1ea)]}},_0x5bb6f5={'id':_0x50d64a(0x2d0),'params':{'unitId':_0x10710a[_0x2ceab3]['unitId'],..._0x10710a[_0x2ceab3][_0x50d64a(0x274)]}},_0x43a57b=this[_0x50d64a(0x1a3)][_0x50d64a(0x32f)](_0x63b964,_0x4caa13,!0x1),_0x23fefe=this['_transformService'][_0x50d64a(0x32f)](_0x14b1da,_0x5bb6f5,!0x1);if(_0x6fcace(_0x43a57b))throw _0x43a57b[_0x50d64a(0x2b7)];if(_0x6fcace(_0x23fefe))throw _0x23fefe[_0x50d64a(0x2b7)];_0x9af5cd[_0x50d64a(0x124)]({..._0x10710a[_0x2ceab3],'undoState':_0x43a57b[_0x50d64a(0x32e)][_0x50d64a(0x25f)],'redoState':_0x23fefe[_0x50d64a(0x32e)][_0x50d64a(0x25f)]}),_0x63b964=_0x43a57b['m1Prime'],_0x14b1da=_0x23fefe['m1Prime'];}_0x63b964=_0x28669e['deepClone'](_0x254f3b[_0x50d64a(0x36a)][0x0]),_0x14b1da=_0x28669e[_0x50d64a(0x110)](_0x254f3b['mutations'][0x0]);for(let _0x1cc659=_0x344612['length']-0x1;_0x1cc659>=0x0;_0x1cc659--){let _0x4dec43={'id':_0x50d64a(0x2d0),'params':{'unitId':_0x344612[_0x1cc659][_0x50d64a(0x2a4)],..._0x344612[_0x1cc659][_0x50d64a(0x1ea)]}},_0xa5fdf5={'id':_0x50d64a(0x2d0),'params':{'unitId':_0x344612[_0x1cc659]['unitId'],..._0x344612[_0x1cc659][_0x50d64a(0x274)]}},_0x6dabf8=this['_transformService'][_0x50d64a(0x32f)](_0x63b964,_0x4dec43,!0x1),_0x1a63bc=this[_0x50d64a(0x1a3)][_0x50d64a(0x32f)](_0x14b1da,_0xa5fdf5,!0x1);if(_0x6fcace(_0x6dabf8))throw _0x6dabf8[_0x50d64a(0x2b7)];if(_0x6fcace(_0x1a63bc))throw _0x1a63bc['error'];_0x2543d5[_0x50d64a(0x124)]({..._0x344612[_0x1cc659],'undoState':_0x6dabf8[_0x50d64a(0x32e)]['params'],'redoState':_0x1a63bc[_0x50d64a(0x32e)][_0x50d64a(0x25f)]}),_0x63b964=_0x6dabf8[_0x50d64a(0x2f4)],_0x14b1da=_0x1a63bc[_0x50d64a(0x2f4)];}this[_0x50d64a(0x295)][_0x50d64a(0x30c)](_0x45230e,{'history':_0x9af5cd,'collaboration':_0x2543d5});}};Jn=Y([J(0x0,_0x322f48(_0x560cc2)),J(0x1,_0x444493),J(0x2,_0x322f48(_0x2e1781))],Jn);let Yn=class{constructor(_0x590ee4,_0x35ae7c){const _0x490c4b=_0x452ab3;this[_0x490c4b(0x34e)]=_0x590ee4,this[_0x490c4b(0x1a3)]=_0x35ae7c;}[_0x452ab3(0x33f)](_0x52d6c3){const _0x4c78a1=_0x452ab3;var _0xcf0057;let _0x2f239d=this['_injector'][_0x4c78a1(0x379)](_0x13fe95),_0x29089d=(_0xcf0057=_0x2f239d[_0x4c78a1(0x292)]())==null?[]:_0xcf0057;if(_0x29089d[_0x4c78a1(0x267)]===0x0)return;let _0x3153ff=_0x52d6c3[_0x4c78a1(0x20f)],_0x2d121e=[{'id':_0x4c78a1(0x2d0),'params':{'unitId':_0x3153ff,'actions':null,'textRanges':_0x29089d}}],_0x55e823=this['_transformService'][_0x4c78a1(0x26d)](_0x52d6c3,_0x2d121e);if(!_0xec41cd(_0x55e823))throw _0x55e823['error'];let _0x10ccd3=_0x55e823[_0x4c78a1(0x32e)][0x0][_0x4c78a1(0x25f)]['textRanges'];Array[_0x4c78a1(0x2cd)](_0x10ccd3)&&_0x10ccd3[_0x4c78a1(0x267)]&&_0x2f239d['replaceDocRanges'](_0x10ccd3,{'unitId':_0x3153ff,'subUnitId':_0x3153ff},!0x1);}};Yn=Y([J(0x0,_0x322f48(_0x560cc2)),J(0x1,_0x444493)],Yn);let Xn=class extends _0x948ae6{constructor(_0x539e62,_0x28e8fa,_0x4ee338,_0x21a067,_0x214621,_0x36952e,_0x4716b6){const _0x3ce751=_0x452ab3;super(),this[_0x3ce751(0xf9)]=_0x539e62,this[_0x3ce751(0x1bc)]=_0x28e8fa,this[_0x3ce751(0x12b)]=_0x4ee338,this[_0x3ce751(0x141)]=_0x21a067,this[_0x3ce751(0x25c)]=_0x214621,this[_0x3ce751(0x216)]=_0x36952e,this[_0x3ce751(0x321)]=_0x4716b6,q(this,'_status$',new _0xa52b92(_0x20eda4[_0x3ce751(0x119)])),this[_0x3ce751(0x1d1)]();}[_0x452ab3(0x1d1)](){const _0x264222=_0x452ab3;this[_0x264222(0x293)](this[_0x264222(0xf9)]['entityInit$'][_0x264222(0x290)](_0x596c7a=>{const _0xc7d55e=_0x264222;_0x596c7a instanceof _0x31f9a8&&_0x596c7a[_0xc7d55e(0x157)]({'onTransformIME':_0x43b949=>this[_0xc7d55e(0x1bc)]['transformIMECache'](_0x43b949),'onTransformState':_0x4c37a1=>this[_0xc7d55e(0x12b)][_0xc7d55e(0x130)](_0x4c37a1),'onTransformSelections':_0x1008ea=>this['_docTransformSelectionsService'][_0xc7d55e(0x33f)](_0x1008ea),'onSyncEditingCollabCursor':_0x288d22=>this[_0xc7d55e(0x25c)][_0xc7d55e(0x259)](_0x288d22),'onTransformRemoteChangesetByIMECache':_0x1a748d=>this['_docTransformIMECacheService'][_0xc7d55e(0x1d6)](_0x1a748d),'onTransformRemoteChangesetByStateCache':_0x510111=>this[_0xc7d55e(0x12b)][_0xc7d55e(0x1d6)](_0x510111)});}));}};Xn=Y([J(0x0,_0x322f48(_0x2b8461)),J(0x1,_0x322f48(qn)),J(0x2,_0x322f48(Jn)),J(0x3,_0x322f48(Yn)),J(0x4,_0x322f48(An)),J(0x5,_0x193ce1),J(0x6,_0x322f48(_0x27fdee))],Xn);let Zn=class extends _0x948ae6{constructor(_0x53e871,_0x27406a,_0x590ac9,_0x1fc6f1){const _0x350d83=_0x452ab3;super(),this[_0x350d83(0x34e)]=_0x53e871,this['_httpService']=_0x27406a,this[_0x350d83(0x2d2)]=_0x590ac9,this['_collaborationSessionService']=_0x1fc6f1,q(this,_0x350d83(0x163),void 0x0),this[_0x350d83(0x1e3)]();}[_0x452ab3(0x1e3)](){const _0x576634=_0x452ab3;this[_0x576634(0x265)](),this[_0x576634(0x1ae)](),this[_0x576634(0x31a)](),this[_0x576634(0x273)]();}[_0x452ab3(0x273)](){const _0x4a766b=_0x452ab3;this[_0x4a766b(0x293)](this['_collaborationSessionService'][_0x4a766b(0x2aa)][_0x4a766b(0x290)](_0x42122b=>{const _0x1849f9=_0x4a766b;this['_memberID']=_0x42122b==null?void 0x0:_0x42122b[_0x1849f9(0x199)];}));}[_0x452ab3(0x265)](){const _0x144cb3=_0x452ab3;let _0x5e6579=_0x4ba8d4=>{const _0x4e8114=_0x4303;var _0x2df30e;this[_0x4e8114(0x322)]('error',_0x4e8114(0x291)+_0x4ba8d4[_0x4e8114(0x253)]+_0x4e8114(0x27a)+_0x4ba8d4[_0x4e8114(0x308)]+':'+_0x4ba8d4[_0x4e8114(0x1e1)]+':'+_0x4ba8d4[_0x4e8114(0x338)]+'\x0a'+(((_0x2df30e=_0x4ba8d4[_0x4e8114(0x2b7)])==null?void 0x0:_0x2df30e[_0x4e8114(0x252)])||''));};window['addEventListener'](_0x144cb3(0x2b7),_0x5e6579),this[_0x144cb3(0x293)](()=>{const _0x51e571=_0x144cb3;window[_0x51e571(0xff)](_0x51e571(0x2b7),_0x5e6579);});}[_0x452ab3(0x1ae)](){const _0x32f0aa=_0x452ab3;let _0x2c466d=_0x455aa0=>{const _0x189945=_0x4303;this[_0x189945(0x322)](_0x189945(0x2b7),_0x189945(0x10e)+_0x455aa0['reason']);};window[_0x32f0aa(0x1f9)](_0x32f0aa(0x19c),_0x2c466d),this['disposeWithMe'](()=>{const _0x4a2b86=_0x32f0aa;window['removeEventListener'](_0x4a2b86(0x19c),_0x2c466d);});}[_0x452ab3(0x31a)](){const _0x1cd27c=_0x452ab3;let _0x5a03bc=this[_0x1cd27c(0x2d2)][_0x1cd27c(0x2b7)]['bind'](this[_0x1cd27c(0x2d2)]);this['_logService'][_0x1cd27c(0x2b7)]=(..._0x1571b2)=>{const _0x154802=_0x1cd27c;let _0x3085a3=_0x1571b2[_0x154802(0x12c)](_0x22ed4c=>_0x22ed4c instanceof Error?_0x22ed4c[_0x154802(0x253)]+'\x0a'+_0x22ed4c[_0x154802(0x252)]:String(_0x22ed4c))[_0x154802(0x382)]('\x20');this[_0x154802(0x322)](_0x154802(0x2b7),_0x154802(0x129)+_0x3085a3),_0x5a03bc(..._0x1571b2);},this['disposeWithMe'](()=>{const _0x14617a=_0x1cd27c;this[_0x14617a(0x2d2)][_0x14617a(0x2b7)]=_0x5a03bc;});}['_uploadLog'](_0x32e7dc,_0x4d8634){const _0x35c11c=_0x452ab3;try{let _0x629f3f={'userId':this[_0x35c11c(0x163)],'logLabel':_0x32e7dc,'content':_0x4d8634};this[_0x35c11c(0x12f)][_0x35c11c(0x1cd)](_0x35c11c(0x25b),{'body':_0x629f3f})[_0x35c11c(0x1b4)](()=>{});}catch{}}};Zn=Y([J(0x0,_0x322f48(_0x560cc2)),J(0x1,_0x322f48(_0x321193)),J(0x2,_0x4b7488),J(0x3,_0x322f48(_0xb68c6c))],Zn);function Qn({state$:_0x2828d4,interactionBlocked$:_0x5b9745}){const _0x105e17=_0x452ab3;return _0x37db6f(_0x108a64,{'children':[_0x2fc0e1(_0x5b9745,!0x1,!0x0)&&_0xade9c8(_0x105e17(0x1eb),{'data-u-comp':_0x105e17(0x373),'aria-hidden':!0x0,'className':_0x105e17(0x2ad)}),_0xade9c8($n,{'state$':_0x2828d4})]});}function $n({state$:_0xe2eeb7}){const _0x2a54f9=_0x452ab3;let _0x2ec496=_0x2fc0e1(_0xe2eeb7,null,!0x0);return _0x2ec496?_0x37db6f('div',{'data-u-comp':_0x2a54f9(0x2d5),'role':'alert','className':_0x2a54f9(0x222),'children':[_0xade9c8(_0x25bf5d,{'className':_0x2a54f9(0x22c)}),_0xade9c8('span',{'children':_0x2ec496[_0x2a54f9(0x22b)]}),_0xade9c8(_0x4b42bf,{'size':'small','variant':_0x2a54f9(0x1f7),'onClick':()=>window[_0x2a54f9(0x336)][_0x2a54f9(0x320)](),'children':_0x2ec496[_0x2a54f9(0x1e5)]})]}):null;}const er=_0x452ab3(0x371);let tr=class extends _0x948ae6{constructor(_0x52f8ad,_0x1d63b2,_0x278da0,_0x1daad3,_0x5cc897,_0x5a4ebb,_0x15af30,_0x55b970){const _0x175bfb=_0x452ab3;super(),this[_0x175bfb(0x182)]=_0x52f8ad,this[_0x175bfb(0x216)]=_0x1d63b2,this[_0x175bfb(0x321)]=_0x278da0,this[_0x175bfb(0x34e)]=_0x1daad3,this[_0x175bfb(0x160)]=_0x5cc897,this[_0x175bfb(0x26a)]=_0x15af30,this['_urlService']=_0x55b970,q(this,_0x175bfb(0x2bf),new _0xa52b92(null)),q(this,_0x175bfb(0x2f1),new _0xa52b92(!0x1)),q(this,_0x175bfb(0x214),new Set()),q(this,_0x175bfb(0x278),new Map()),q(this,_0x175bfb(0x349),new Set()),q(this,_0x175bfb(0x362),new Map()),q(this,_0x175bfb(0x201),void 0x0),q(this,_0x175bfb(0x277),void 0x0),q(this,_0x175bfb(0x138),void 0x0),q(this,_0x175bfb(0x19a),this[_0x175bfb(0x2bf)]['asObservable']());let _0xa66393=()=>_0x324cac(Qn,{'state$':this['timeoutState$'],'interactionBlocked$':this[_0x175bfb(0x2f1)]});this[_0x175bfb(0x293)](_0x5a4ebb[_0x175bfb(0x2e0)](_0x36b06a[_0x175bfb(0x21b)],()=>_0x18c981(_0xa66393,this[_0x175bfb(0x34e)]))),this['disposeWithMe'](this[_0x175bfb(0x182)][_0x175bfb(0x225)][_0x175bfb(0x290)](_0x114bb5=>{const _0x1a10cf=_0x175bfb;this['_latestStates']=_0x114bb5,_0x114bb5[_0x1a10cf(0x1f1)](_0x2a84c8=>{const _0x1748ab=_0x1a10cf;this['_updateMessage'](_0x2a84c8),this[_0x1748ab(0x317)](_0x2a84c8);});})),this[_0x175bfb(0x293)](this['_urlService'][_0x175bfb(0x173)][_0x175bfb(0x290)](()=>{const _0x4bb5f8=_0x175bfb;this[_0x4bb5f8(0x362)][_0x4bb5f8(0x1f1)](_0x3e9922=>{const _0x1e9e20=_0x4bb5f8;this[_0x1e9e20(0x2fd)](_0x3e9922),this[_0x1e9e20(0x317)](_0x3e9922);});}));}['dispose'](){const _0x14f5cd=_0x452ab3;var _0x31db51;if(this[_0x14f5cd(0x214)][_0x14f5cd(0x1f1)](_0x45851f=>this[_0x14f5cd(0x216)][_0x14f5cd(0x2cf)](_0x45851f)),this[_0x14f5cd(0x214)][_0x14f5cd(0x328)](),this[_0x14f5cd(0x201)]){var _0x21e50e;(_0x21e50e=this[_0x14f5cd(0x138)])==null||_0x21e50e[_0x14f5cd(0x2f8)](this['_previewUnitId']);}this[_0x14f5cd(0x201)]=void 0x0,this[_0x14f5cd(0x278)][_0x14f5cd(0x1f1)](({timeoutId:_0x23c6f6})=>clearTimeout(_0x23c6f6)),this[_0x14f5cd(0x278)][_0x14f5cd(0x328)](),(_0x31db51=this[_0x14f5cd(0x277)])==null||_0x31db51[_0x14f5cd(0x2bc)](),this['_shortcutBlock']=void 0x0,this[_0x14f5cd(0x2bf)][_0x14f5cd(0x29f)](),this[_0x14f5cd(0x2f1)][_0x14f5cd(0x29f)](),super[_0x14f5cd(0x2bc)]();}[_0x452ab3(0x2fd)](_0x1350c6){const _0x9213ce=_0x452ab3;let _0x570020=''+er+_0x1350c6[_0x9213ce(0x2a4)];if(_0x1350c6[_0x9213ce(0x1c9)]===_0x42d031[_0x9213ce(0x10d)]){if(this['_clearBlockProgressWatch'](_0x1350c6[_0x9213ce(0x2a4)]),this[_0x9213ce(0x2d4)](_0x1350c6[_0x9213ce(0x2a4)])&&this[_0x9213ce(0x201)]===_0x1350c6[_0x9213ce(0x2a4)]){this[_0x9213ce(0x216)]['show']({'id':_0x570020,'type':_0x5c4a9b[_0x9213ce(0x139)],'duration':0x1/0x0,'content':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.loadingSheet')}),this[_0x9213ce(0x214)]['add'](_0x570020);return;}this['_clearTimeoutState'](_0x1350c6['unitId']),this[_0x9213ce(0x216)][_0x9213ce(0x2cf)](_0x570020),this[_0x9213ce(0x214)]['delete'](_0x570020);return;}if(!this[_0x9213ce(0x2d4)](_0x1350c6[_0x9213ce(0x2a4)])){this[_0x9213ce(0x301)](_0x1350c6[_0x9213ce(0x2a4)]),this[_0x9213ce(0x158)](_0x1350c6[_0x9213ce(0x2a4)]),this[_0x9213ce(0x216)]['remove'](_0x570020),this[_0x9213ce(0x214)]['delete'](_0x570020);return;}if(_0x1350c6[_0x9213ce(0x1c9)]===_0x42d031['ERROR']){this[_0x9213ce(0x301)](_0x1350c6[_0x9213ce(0x2a4)]),this[_0x9213ce(0x158)](_0x1350c6['unitId']),this[_0x9213ce(0x216)]['show']({'id':_0x570020,'type':_0x5c4a9b[_0x9213ce(0x16d)],'content':this[_0x9213ce(0x321)]['t'](_0x9213ce(0x181))}),this[_0x9213ce(0x214)][_0x9213ce(0x1e8)](_0x570020);return;}if(_0x1350c6[_0x9213ce(0x1c9)]!==_0x42d031[_0x9213ce(0x378)]||_0x1350c6[_0x9213ce(0x279)]<=0xa){this[_0x9213ce(0x301)](_0x1350c6['unitId']),this[_0x9213ce(0x216)][_0x9213ce(0x2cf)](_0x570020),this[_0x9213ce(0x214)][_0x9213ce(0x1e8)](_0x570020);return;}this[_0x9213ce(0x194)](_0x1350c6)||(this[_0x9213ce(0x216)][_0x9213ce(0x20d)]({'id':_0x570020,'type':_0x5c4a9b[_0x9213ce(0x139)],'duration':0x1/0x0,'content':this[_0x9213ce(0x321)]['t'](_0x9213ce(0x127))+'\x20'+_0x1350c6['loadedBlocks']+'/'+_0x1350c6[_0x9213ce(0x279)]}),this[_0x9213ce(0x214)][_0x9213ce(0x17b)](_0x570020));}[_0x452ab3(0x194)](_0x2f612e){const _0x2e5e96=_0x452ab3;let _0x2c1d7c=this['_blockProgressWatches'][_0x2e5e96(0x379)](_0x2f612e[_0x2e5e96(0x2a4)]);if((_0x2c1d7c==null?void 0x0:_0x2c1d7c[_0x2e5e96(0x1dc)])===_0x2f612e[_0x2e5e96(0x1dc)])return _0x2c1d7c['timedOut'];this[_0x2e5e96(0x301)](_0x2f612e[_0x2e5e96(0x2a4)]);let _0x4207d7=setTimeout(()=>{const _0x384a8c=_0x2e5e96;let _0x501577=this[_0x384a8c(0x278)][_0x384a8c(0x379)](_0x2f612e[_0x384a8c(0x2a4)]);if(!_0x501577||_0x501577[_0x384a8c(0x215)]!==_0x4207d7)return;_0x501577[_0x384a8c(0x221)]=!0x0;let _0x77a528=''+er+_0x2f612e[_0x384a8c(0x2a4)];this[_0x384a8c(0x216)][_0x384a8c(0x2cf)](_0x77a528),this[_0x384a8c(0x214)][_0x384a8c(0x1e8)](_0x77a528),this[_0x384a8c(0x2bf)][_0x384a8c(0xfb)]({'unitId':_0x2f612e['unitId'],'content':this['_localeService']['t'](_0x384a8c(0x381),String(_0x2f612e[_0x384a8c(0x1dc)]),String(_0x2f612e[_0x384a8c(0x279)])),'refreshLabel':this[_0x384a8c(0x321)]['t'](_0x384a8c(0x217))});},0xea60);return this[_0x2e5e96(0x278)][_0x2e5e96(0x2c2)](_0x2f612e[_0x2e5e96(0x2a4)],{'loadedBlocks':_0x2f612e['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x4207d7}),!0x1;}['_clearBlockProgressWatch'](_0x420fdc){const _0x52c1d2=_0x452ab3;let _0x1f21f4=this[_0x52c1d2(0x278)][_0x52c1d2(0x379)](_0x420fdc);_0x1f21f4&&(clearTimeout(_0x1f21f4['timeoutId']),this['_blockProgressWatches'][_0x52c1d2(0x1e8)](_0x420fdc),this[_0x52c1d2(0x158)](_0x420fdc));}[_0x452ab3(0x158)](_0x5dc148){const _0x48624a=_0x452ab3;var _0x31a179;((_0x31a179=this[_0x48624a(0x2bf)]['value'])==null?void 0x0:_0x31a179[_0x48624a(0x2a4)])===_0x5dc148&&this[_0x48624a(0x2bf)][_0x48624a(0xfb)](null);}['_updateSheetPreview'](_0x4254a3){const _0x17388f=_0x452ab3;if(_0x4254a3['stage']===_0x42d031['LOADING_SNAPSHOT']&&this[_0x17388f(0x349)][_0x17388f(0x1e8)](_0x4254a3[_0x17388f(0x2a4)]),!this[_0x17388f(0x2d4)](_0x4254a3[_0x17388f(0x2a4)])){this[_0x17388f(0x27c)](_0x4254a3[_0x17388f(0x2a4)]);return;}if(_0x4254a3[_0x17388f(0x1c9)]===_0x42d031[_0x17388f(0x1a0)]||_0x4254a3[_0x17388f(0x279)]<=0xa){this[_0x17388f(0x27c)](_0x4254a3[_0x17388f(0x2a4)]);return;}if(_0x4254a3[_0x17388f(0x1c9)]===_0x42d031[_0x17388f(0x10d)]){this[_0x17388f(0x156)](_0x4254a3[_0x17388f(0x2a4)]);return;}if(_0x4254a3[_0x17388f(0x1c9)]===_0x42d031[_0x17388f(0x378)]&&_0x4254a3['workbookShell']&&_0x4254a3[_0x17388f(0x121)]){let _0x3512ca=this[_0x17388f(0x247)]();if(!_0x3512ca)return;this[_0x17388f(0x201)]&&this[_0x17388f(0x201)]!==_0x4254a3[_0x17388f(0x2a4)]&&this['_hidePreview'](this[_0x17388f(0x201)]),_0x3512ca['showSkeleton'](_0x4254a3[_0x17388f(0x213)],_0x4254a3[_0x17388f(0x121)]),this[_0x17388f(0x201)]=_0x4254a3['unitId'],this['_setInteractionBlocked'](!0x0),_0x4254a3[_0x17388f(0x1d9)]&&_0x3512ca[_0x17388f(0x20d)](_0x4254a3[_0x17388f(0x213)],_0x4254a3['activeSheetId'],_0x4254a3[_0x17388f(0x136)]);}}[_0x452ab3(0x156)](_0x403ce8){const _0x2ba850=_0x452ab3;if(this[_0x2ba850(0x201)]!==_0x403ce8||this[_0x2ba850(0x349)]['has'](_0x403ce8))return;let _0x3b7150=this[_0x2ba850(0x138)];_0x3b7150&&(this[_0x2ba850(0x349)][_0x2ba850(0x17b)](_0x403ce8),_0x3b7150[_0x2ba850(0x357)](_0x403ce8,0x2710)[_0x2ba850(0x300)](_0x4c826b=>{const _0x1e803=_0x2ba850;if(this[_0x1e803(0x201)]!==_0x403ce8)return;if(_0x4c826b){let _0x2babd7=''+er+_0x403ce8;this[_0x1e803(0x216)][_0x1e803(0x2cf)](_0x2babd7),this['_messageIds'][_0x1e803(0x1e8)](_0x2babd7),this['_previewUnitId']=void 0x0,this['_setInteractionBlocked'](!0x1);return;}let _0x266a92=''+er+_0x403ce8;this[_0x1e803(0x216)]['remove'](_0x266a92),this['_messageIds'][_0x1e803(0x1e8)](_0x266a92),this[_0x1e803(0x2bf)][_0x1e803(0xfb)]({'unitId':_0x403ce8,'content':this[_0x1e803(0x321)]['t'](_0x1e803(0x181)),'refreshLabel':this[_0x1e803(0x321)]['t'](_0x1e803(0x217))});}));}['_hidePreview'](_0x156689){const _0x11d512=_0x452ab3;var _0x2047de;this['_previewUnitId']===_0x156689&&((_0x2047de=this['_sheetLoadingRenderService'])==null||_0x2047de[_0x11d512(0x2f8)](_0x156689),this['_previewUnitId']=void 0x0,this[_0x11d512(0x1e6)](!0x1));}[_0x452ab3(0x1e6)](_0x57c503){const _0xaf8cd7=_0x452ab3;if(_0x57c503!==this['_interactionBlocked$'][_0xaf8cd7(0x306)]){if(_0x57c503)this[_0xaf8cd7(0x277)]=this[_0xaf8cd7(0x26a)]['forceDisable']();else{var _0xcde3a5;(_0xcde3a5=this[_0xaf8cd7(0x277)])==null||_0xcde3a5[_0xaf8cd7(0x2bc)](),this['_shortcutBlock']=void 0x0;}this[_0xaf8cd7(0x2f1)][_0xaf8cd7(0xfb)](_0x57c503);}}[_0x452ab3(0x2d4)](_0x136433){const _0x340d9a=_0x452ab3;let _0x17ba77=this[_0x340d9a(0x2ee)][_0x340d9a(0x289)](_0x340d9a(0x1aa));return!_0x17ba77||_0x17ba77===_0x136433;}[_0x452ab3(0x247)](){const _0x26476c=_0x452ab3;return this[_0x26476c(0x138)]?this['_sheetLoadingRenderService']:(this[_0x26476c(0x160)][_0x26476c(0xfc)](_0x2b61c5['UNIVER_SHEET']),this[_0x26476c(0x34e)]['has'](_0x1d4a2e)&&(this[_0x26476c(0x138)]=this[_0x26476c(0x34e)][_0x26476c(0x379)](_0x1d4a2e)),this[_0x26476c(0x138)]);}};tr=Y([J(0x0,_0x322f48(_0x497eef)),J(0x1,_0x193ce1),J(0x2,_0x322f48(_0x27fdee)),J(0x3,_0x322f48(_0x560cc2)),J(0x4,_0x322f48(_0x4dcfbc)),J(0x5,_0x5237c9),J(0x6,_0x509e48),J(0x7,Gn)],tr);function nr(_0x134925){const _0x48f347=_0x452ab3;var _0x1edec8,_0x5ff23a;let _0x21cc54=(_0x1edec8=_0x134925[_0x48f347(0x2c3)])==null?void 0x0:_0x1edec8[_0x48f347(0x1c9)],_0x5454a3=((_0x5ff23a=_0x134925[_0x48f347(0x2c3)])==null?void 0x0:_0x5ff23a[_0x48f347(0x365)])||0x0;return _0x21cc54===_0x383f58[_0x48f347(0x270)]&&_0x5454a3>0x0;}function rr(_0x531ad9){const _0x459a92=_0x452ab3;return _0x531ad9[_0x459a92(0x19d)]===_0x1c71a0[_0x459a92(0x101)];}let ir=class extends _0x948ae6{constructor(_0x160df5,_0xe5930b,_0x4f5167,_0x2c2eaa,_0x573253,_0x5c8f9f,_0xd25ea4){const _0x51d880=_0x452ab3;super(),this['_messageService']=_0x160df5,this[_0x51d880(0x244)]=_0xe5930b,this['_configService']=_0x4f5167,this['_httpService']=_0x2c2eaa,this[_0x51d880(0x1ce)]=_0x573253,this[_0x51d880(0x2d2)]=_0x5c8f9f,this[_0x51d880(0x321)]=_0xd25ea4,q(this,'_pollingInterval',null),q(this,_0x51d880(0x36b),0x0),q(this,_0x51d880(0x17c),0x0),q(this,'_taskIds',[]),q(this,_0x51d880(0x26c),0x0),this[_0x51d880(0x106)]();}['_initCommandInterceptor'](){const _0x10e84b=_0x452ab3;this[_0x10e84b(0x293)](this[_0x10e84b(0x244)][_0x10e84b(0x1bb)]((_0xc97e04,_0x187d82)=>{const _0x178999=_0x10e84b;var _0x46bda6;if(_0xc97e04['id']!==_0x5c61d9['id'])return;let _0x38893e=_0xc97e04[_0x178999(0x25f)];if(this[_0x178999(0x18b)]((_0x46bda6=_0x38893e[_0x178999(0x10c)])==null?[]:_0x46bda6)&&!this[_0x178999(0x266)]())throw this[_0x178999(0x1b0)](_0xc97e04,_0x187d82),this[_0x178999(0x16e)](),new _0x551878();})),this[_0x10e84b(0x293)](this[_0x10e84b(0x244)][_0x10e84b(0x35f)]((_0x542e35,_0x2828fd)=>{const _0x2df1b8=_0x10e84b;if(_0x542e35['id']!==_0x301e59['id'])return;let _0x67702=_0x542e35[_0x2df1b8(0x25f)];if(nr(_0x67702)){let _0x8a1033=_0x1d5fe5();this['_taskIds'][_0x2df1b8(0x2fa)](_0x8a1033),this[_0x2df1b8(0x1d0)](_0x8a1033);}else{if(rr(_0x67702)&&this['_taskIds'][_0x2df1b8(0x267)]>0x0){let _0x554edf=this['_taskIds'][_0x2df1b8(0x256)]();this[_0x2df1b8(0x2e4)](_0x554edf);}}}));}['dispose'](){const _0x5f3695=_0x452ab3;super[_0x5f3695(0x2bc)](),this[_0x5f3695(0x280)](),this[_0x5f3695(0x23d)]=[],this[_0x5f3695(0x17c)]=0x0,this[_0x5f3695(0x36b)]=0x0,this[_0x5f3695(0x26c)]=0x0;}async[_0x452ab3(0x1b0)](_0x56254c,_0x4414f0){const _0x220026=_0x452ab3;for(let _0x27e2e4=0x0;_0x27e2e4<0x1e;_0x27e2e4++)try{if(await this[_0x220026(0x258)](),this[_0x220026(0x266)]()){this[_0x220026(0x1c3)](_0x56254c,_0x4414f0),this[_0x220026(0x216)][_0x220026(0x20d)]({'content':this[_0x220026(0x321)]['t'](_0x220026(0x190)),'type':_0x5c4a9b['Success']});return;}await new Promise(_0x19460a=>{const _0x2a5f31=_0x220026;this['_pollingInterval']=window[_0x2a5f31(0x348)](_0x19460a,0x3e8);});}catch(_0x30bd88){this[_0x220026(0x2d2)][_0x220026(0x2b7)](_0x30bd88);}this['_messageService'][_0x220026(0x20d)]({'content':this['_localeService']['t'](_0x220026(0x2e7)),'type':_0x5c4a9b[_0x220026(0x16d)]});}[_0x452ab3(0x1c3)](_0x3bd108,_0x918ade){const _0x128cb6=_0x452ab3;try{this[_0x128cb6(0x244)]['executeCommand'](_0x3bd108['id'],_0x3bd108['params'],_0x918ade);}catch(_0x2b2a35){this[_0x128cb6(0x2d2)][_0x128cb6(0x2b7)](_0x2b2a35);}}[_0x452ab3(0x146)](_0x2e9394,_0x4938de){const _0x56247c=_0x452ab3;_0x4938de<this[_0x56247c(0x26c)]||(this[_0x56247c(0x26c)]=_0x4938de,this[_0x56247c(0x36b)]=Number['parseInt'](_0x2e9394[_0x56247c(0x112)]),this[_0x56247c(0x17c)]=Number[_0x56247c(0x36d)](_0x2e9394['currentUsage']));}async[_0x452ab3(0x1d0)](_0x3f39ff){const _0x4db840=_0x452ab3;let _0x79ae10=Date[_0x4db840(0x2a5)]();try{var _0x46ddbd,_0xa5e741;let _0x45ef13=((_0x46ddbd=this[_0x4db840(0x257)][_0x4db840(0x370)](_0x2cf0af))==null?void 0x0:_0x46ddbd[_0x4db840(0x24b)])||_0x4db840(0x20a),_0x5b4a4d=(await this[_0x4db840(0x12f)][_0x4db840(0x1cd)](_0x45ef13,{'body':JSON[_0x4db840(0x1a2)]({'taskId':_0x3f39ff})}))['body'];if(((_0xa5e741=_0x5b4a4d['error'])==null?void 0x0:_0xa5e741[_0x4db840(0x18f)])!==_0x11291a['OK'])return;this['_setFormulaLimitStatus'](_0x5b4a4d[_0x4db840(0x21d)],_0x79ae10);}catch(_0x897d83){this[_0x4db840(0x2d2)][_0x4db840(0x2b7)](_0x897d83);}}async[_0x452ab3(0x258)](_0x29be51){const _0x176760=_0x452ab3;let _0xd18d0f=Date['now']();try{var _0xbba282,_0x20954d;let _0x11c53d=((_0xbba282=this['_configService'][_0x176760(0x370)](_0x2cf0af))==null?void 0x0:_0xbba282['getFormulaLimitStatusUrl'])||_0x176760(0x1bf),_0x4ca6b9=_0x29be51?_0x11c53d+_0x176760(0x31e)+encodeURIComponent(_0x29be51):_0x11c53d,_0x3f4108=(await this[_0x176760(0x12f)][_0x176760(0x379)](_0x4ca6b9))['body'];if(((_0x20954d=_0x3f4108[_0x176760(0x2b7)])==null?void 0x0:_0x20954d[_0x176760(0x18f)])!==_0x11291a['OK'])return;this[_0x176760(0x146)](_0x3f4108[_0x176760(0x21d)],_0xd18d0f);}catch(_0x677072){this[_0x176760(0x2d2)][_0x176760(0x2b7)](_0x677072);}}async[_0x452ab3(0x2e4)](_0xa56854){const _0x34d58e=_0x452ab3;let _0x34ca05=Date['now']();try{var _0x1ba8f7,_0x290ee7;let _0x151b0c=((_0x1ba8f7=this[_0x34d58e(0x257)][_0x34d58e(0x370)](_0x2cf0af))==null?void 0x0:_0x1ba8f7['releaseFormulaLimitUrl'])||'/universer-api/license/formula/limit/done',_0x3bd662=(await this['_httpService'][_0x34d58e(0x1cd)](_0x151b0c,{'body':JSON[_0x34d58e(0x1a2)]({'taskId':_0xa56854})}))['body'];if(((_0x290ee7=_0x3bd662['error'])==null?void 0x0:_0x290ee7['code'])!==_0x11291a['OK'])return;this['_setFormulaLimitStatus'](_0x3bd662['limitInfo'],_0x34ca05);}catch(_0x188fa3){this[_0x34d58e(0x2d2)][_0x34d58e(0x2b7)](_0x188fa3);}}[_0x452ab3(0x266)](){const _0x533a85=_0x452ab3;return this[_0x533a85(0x36b)]===0x0?!0x0:this[_0x533a85(0x36b)]-this[_0x533a85(0x17c)]>0x0;}[_0x452ab3(0x280)](){const _0x40c0f1=_0x452ab3;this[_0x40c0f1(0x223)]&&(clearTimeout(this[_0x40c0f1(0x223)]),this[_0x40c0f1(0x223)]=null);}[_0x452ab3(0x16e)](){const _0x3e9cbe=_0x452ab3;this[_0x3e9cbe(0x216)]['show']({'content':this[_0x3e9cbe(0x321)]['t'](_0x3e9cbe(0x1c1)),'type':_0x5c4a9b[_0x3e9cbe(0x139)]});}[_0x452ab3(0x18b)](_0x292b80){const _0x11dbf8=_0x452ab3;for(let _0x388ece of _0x292b80){let {unitId:_0x544b6d,sheetId:_0xabe12a,range:_0x306ba4}=_0x388ece,_0x5e8f19=this[_0x11dbf8(0x1ce)]['getUnit'](_0x544b6d);if(!_0x5e8f19)continue;let _0xcb1d2=_0x5e8f19['getSheetBySheetId'](_0xabe12a);if(!_0xcb1d2)continue;let _0x15f043=_0xcb1d2['getCellMatrix']();for(let _0x237899=_0x306ba4[_0x11dbf8(0x12e)];_0x237899<=_0x306ba4[_0x11dbf8(0x224)];_0x237899++)for(let _0x2fd226=_0x306ba4[_0x11dbf8(0x1fd)];_0x2fd226<=_0x306ba4[_0x11dbf8(0x195)];_0x2fd226++){let _0x4aaa8e=_0x15f043['getValue'](_0x237899,_0x2fd226);if(_0x4aaa8e&&(_0x427317(_0x4aaa8e['f'])||_0x35a014(_0x4aaa8e['si'])))return!0x0;}}return!0x1;}};ir=Y([J(0x0,_0x322f48(_0x193ce1)),J(0x1,_0x394c60),J(0x2,_0x52e5c3),J(0x3,_0x322f48(_0x321193)),J(0x4,_0x5df53a),J(0x5,_0x4b7488),J(0x6,_0x322f48(_0x27fdee))],ir);let ar=class extends _0x948ae6{constructor(_0x3da5a2,_0x4650e3,_0x2d0cfd){const _0x1f133f=_0x452ab3;super(),this[_0x1f133f(0x257)]=_0x3da5a2,this['_localStorageService']=_0x4650e3,this[_0x1f133f(0x281)]=_0x2d0cfd,q(this,_0x1f133f(0x2da),new Map()),q(this,_0x1f133f(0x354),new Map()),q(this,'_disabled',!0x1);}[_0x452ab3(0x2c9)](){const _0x156fbf=_0x452ab3;this[_0x156fbf(0x331)]=!0x0;}['enableLocalCache'](){const _0x1439a0=_0x452ab3;this[_0x1439a0(0x331)]=!0x1;}get[_0x452ab3(0x24a)](){const _0x352e87=_0x452ab3;return this[_0x352e87(0x354)];}[_0x452ab3(0x2bc)](){const _0x5f224b=_0x452ab3;this[_0x5f224b(0x1e7)]()['then'](()=>super[_0x5f224b(0x2bc)]());}async[_0x452ab3(0x377)](_0x5b3239){const _0xb3e704=_0x452ab3;return this[_0xb3e704(0x331)]?null:this[_0xb3e704(0x227)][_0xb3e704(0x24c)](_0x43d141(_0x5b3239));}async[_0x452ab3(0x251)](_0xc144aa,_0x4104e5){const _0x5601cf=_0x452ab3;return!!this[_0x5601cf(0x227)][_0x5601cf(0x2fe)](_0x43d141(_0xc144aa),_0x4104e5);}async['backupOfflineData'](_0x312b29,_0x5c1a57){const _0x3ccda3=_0x452ab3;var _0x240b88;let _0xbebbff=(_0x240b88=this[_0x3ccda3(0x2da)][_0x3ccda3(0x379)](_0x312b29))==null?await this[_0x3ccda3(0x227)][_0x3ccda3(0x24c)](_0x43d141(_0x312b29)):_0x240b88;if(!_0xbebbff)return;let _0x19d220=Date['now'](),_0x5d7ffb=new Date(_0x19d220)['toISOString']();await this[_0x3ccda3(0x227)][_0x3ccda3(0x2fe)](_0x43d141(_0x312b29)+_0x3ccda3(0x361)+_0x19d220,{'reason':_0x5c1a57,'createdAt':_0x5d7ffb,'data':_0xbebbff});}[_0x452ab3(0x37d)](_0x212bcf,_0xaa3dc3,_0x1c5cda,_0x4b32c6){const _0x206de0=_0x452ab3;let _0xb9f646=this[_0x206de0(0x281)][_0x206de0(0x15a)](_0x212bcf);this[_0x206de0(0x2da)][_0x206de0(0x2c2)](_0x212bcf,{'unitID':_0x212bcf,'type':_0xaa3dc3,'awaitingChangeset':_0x1c5cda,'mutations':_0x4b32c6,'rev':_0xb9f646}),this[_0x206de0(0x354)]['has'](_0x212bcf)||this[_0x206de0(0xf5)](_0x212bcf);}['_scheduleSaving'](_0x315d75){const _0x195092=_0x452ab3;let _0x567cb8=this[_0x195092(0x380)]();_0x567cb8===0x0?this[_0x195092(0x21a)](_0x315d75):this[_0x195092(0x354)][_0x195092(0x2c2)](_0x315d75,window[_0x195092(0x348)](()=>this[_0x195092(0x21a)](_0x315d75),_0x567cb8));}[_0x452ab3(0x380)](){const _0x120d7a=_0x452ab3;var _0x34c8fd;return(_0x34c8fd=this['_configService'][_0x120d7a(0x370)](_0x5c0204))==null?_0x4316aa:_0x34c8fd;}['_saveCache'](_0x5ae7f7){const _0x103e43=_0x452ab3;let _0x43650b=this[_0x103e43(0x354)][_0x103e43(0x379)](_0x5ae7f7);return _0x43650b!==void 0x0&&window[_0x103e43(0x131)](_0x43650b),this['_localStorageService'][_0x103e43(0x2fe)](_0x43d141(_0x5ae7f7),this['_cachedData'][_0x103e43(0x379)](_0x5ae7f7))['then'](()=>this['_saveTaskMap'][_0x103e43(0x1e8)](_0x5ae7f7));}async[_0x452ab3(0x1e7)](){const _0x194083=_0x452ab3;let _0xdd018e=[];this[_0x194083(0x354)]['forEach']((_0xa5d4f4,_0x34b609)=>{const _0x1de84e=_0x194083;window[_0x1de84e(0x131)](_0xa5d4f4),_0xdd018e[_0x1de84e(0x2fa)](this['_saveCache'](_0x34b609)['then'](()=>{const _0x30114b=_0x1de84e;this[_0x30114b(0x354)][_0x30114b(0x1e8)](_0x34b609);}));}),await Promise['all'](_0xdd018e);}};ar=Y([J(0x0,_0x52e5c3),J(0x1,_0x46d274),J(0x2,_0x322f48(_0x39ad27))],ar);var or=class extends _0x4bb5d8{constructor(){const _0x2989b6=_0x452ab3;super(),q(this,_0x2989b6(0x173),void 0x0),this['urlChange$']=_0x23eb4c(window,_0x2989b6(0x243))[_0x2989b6(0x327)](_0x29e831(this[_0x2989b6(0x188)]),_0x20ee6d({'bufferSize':0x1,'refCount':!0x0}),_0x20d1bb(void 0x0));}['setParam'](_0x14ca69,_0x19bc76,_0x280fbc=!0x1){const _0x527642=_0x452ab3;let _0x595f14=new URL(window[_0x527642(0x336)][_0x527642(0x1a8)]);_0x595f14['searchParams'][_0x527642(0x2c2)](_0x14ca69,_0x19bc76),_0x280fbc?window[_0x527642(0x126)][_0x527642(0x2d9)]('','',_0x595f14[_0x527642(0x375)]()):window[_0x527642(0x126)][_0x527642(0x168)]('','',_0x595f14['toString']());}['removeParam'](_0x344b64,_0x4516b8=!0x1){const _0x34e750=_0x452ab3;let _0x46d61e=new URL(window[_0x34e750(0x336)][_0x34e750(0x1a8)]);_0x46d61e[_0x34e750(0x2c7)][_0x34e750(0x1e8)](_0x344b64),_0x4516b8?window['history'][_0x34e750(0x2d9)]('','',_0x46d61e[_0x34e750(0x375)]()):window[_0x34e750(0x126)][_0x34e750(0x168)]('','',_0x46d61e[_0x34e750(0x375)]());}['getParam'](_0x28c463){const _0x3569cd=_0x452ab3;var _0x55c1ed;return(_0x55c1ed=new URL(window[_0x3569cd(0x336)][_0x3569cd(0x1a8)])[_0x3569cd(0x2c7)][_0x3569cd(0x379)](_0x28c463))==null?void 0x0:_0x55c1ed;}};let $=class extends _0x32bcb0{constructor(_0x37126a=vn,_0x37e6ce,_0xe5e02a,_0x14c609){const _0xaf620e=_0x452ab3;super(),this[_0xaf620e(0x118)]=_0x37126a,this[_0xaf620e(0x356)]=_0x37e6ce,this[_0xaf620e(0x34e)]=_0xe5e02a,this['_configService']=_0x14c609;let {..._0x585a24}=_0x3e7795({},vn,this[_0xaf620e(0x118)]);this[_0xaf620e(0x257)][_0xaf620e(0x2f6)](_0xaf620e(0x237),_0x585a24);}[_0x452ab3(0x2c1)](){const _0x1d4712=_0x452ab3;this[_0x1d4712(0x22d)](),this[_0x1d4712(0x231)]();}[_0x452ab3(0xf7)](){const _0x372bca=_0x452ab3;this[_0x372bca(0x299)]();}[_0x452ab3(0x22d)](){const _0x5c62fc=_0x452ab3;var _0x577456;let _0xb78b78=[[Z],[ir],[Gn,{'useClass':or}],[_0x5c14d7,{'useClass':_0x5168cd}],[_0x528e3,{'useClass':ar}],[X],[fn],[Wn],[Q],[Kn],[tr]];this[_0x5c62fc(0x118)][_0x5c62fc(0x28a)]!==!0x1&&_0xb78b78['push']([Yn],[qn],[Jn],[An],[Xn],[yn]),this[_0x5c62fc(0x118)]['enableFrontendLog']&&_0xb78b78[_0x5c62fc(0x2fa)]([Zn]),_0x246227(this[_0x5c62fc(0x34e)],_0x1ff69f(_0xb78b78,(_0x577456=this[_0x5c62fc(0x118)])==null?void 0x0:_0x577456[_0x5c62fc(0x17a)]));}[_0x452ab3(0x299)](){const _0x4f9fd5=_0x452ab3;this[_0x4f9fd5(0x118)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x4f9fd5(0x293)](this[_0x4f9fd5(0x356)][_0x4f9fd5(0x2b9)](_0x2b61c5[_0x4f9fd5(0x105)],[zn])),this['disposeWithMe'](this[_0x4f9fd5(0x356)][_0x4f9fd5(0x2b9)](_0x2b61c5[_0x4f9fd5(0x1f6)],[Vn])),this[_0x4f9fd5(0x293)](this[_0x4f9fd5(0x356)][_0x4f9fd5(0x2b9)](_0x2b61c5[_0x4f9fd5(0x137)],[Un])),this['disposeWithMe'](this[_0x4f9fd5(0x356)]['registerRenderModule'](_0x2b61c5['UNIVER_BOARD'],[In]));}[_0x452ab3(0x231)](){const _0xbbeb0e=_0x452ab3;_0x436f7b(this[_0xbbeb0e(0x34e)],[[Q],[X],[fn],[Wn],[Kn],[ir],[tr]]),this['_config'][_0xbbeb0e(0x28a)]!==!0x1&&_0x436f7b(this[_0xbbeb0e(0x34e)],[[Xn],[yn]]),this[_0xbbeb0e(0x118)][_0xbbeb0e(0x2a7)]&&_0x436f7b(this[_0xbbeb0e(0x34e)],[[Zn]]);}};q($,_0x452ab3(0x294),_0x452ab3(0x288)),q($,_0x452ab3(0x261),gn),q($,_0x452ab3(0x11f),_n),$=Y([_0x3a9b19(_0x4d0e74),J(0x1,_0x1ad460),J(0x2,_0x322f48(_0x560cc2)),J(0x3,_0x52e5c3)],$);let sr=class extends _0x329638{constructor(_0x2a31c1,_0x363b82,_0x5436a6,_0xf6886b,_0x4790cf){super(_0x2a31c1,_0x363b82,_0x5436a6,_0xf6886b,_0x4790cf);}async['createSocket'](_0x3eabbd){const _0x18de64=_0x452ab3;let _0x1adbb0=await this[_0x18de64(0x1f2)](),_0x27797c=this['_createSocketURL'](_0x3eabbd,_0x1adbb0);return this[_0x18de64(0x120)](_0x27797c);}['_createSocketURL'](_0x5b18a4,_0xd9f0f2){const _0x2758ab=_0x452ab3;let _0x14729a=typeof window>'u'?new URL(_0x5b18a4):new URL(_0x5b18a4,window[_0x2758ab(0x336)][_0x2758ab(0x178)]);_0x14729a['searchParams'][_0x2758ab(0x2c2)](_0x2758ab(0x24e),_0xd9f0f2);let _0x52b508=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x2758ab(0x104)]);return _0x52b508[_0x2758ab(0x379)](_0x2758ab(0x298))&&_0x14729a['searchParams'][_0x2758ab(0x2c2)]('runId',_0x52b508['get'](_0x2758ab(0x298))),_0x14729a['toString']();}async[_0x452ab3(0x1f2)](){const _0x993eb6=_0x452ab3;var _0x59a2a5,_0x46f818,_0x123867;let _0x3e9651=this[_0x993eb6(0x257)]['getConfig'](_0x2cf0af),_0x5c13e5=(_0x59a2a5=_0x3e9651==null?void 0x0:_0x3e9651[_0x993eb6(0x21e)])==null?_0x58594e:_0x59a2a5;return(_0x46f818=(_0x123867=(await this[_0x993eb6(0x12f)][_0x993eb6(0x379)](_0x5c13e5,{'headers':{'Content-Type':_0x993eb6(0x25e)}}))[_0x993eb6(0x262)])==null?void 0x0:_0x123867[_0x993eb6(0x296)])==null?'':_0x46f818;}};sr=Y([J(0x0,_0x322f48(_0x560cc2)),J(0x1,_0x322f48(_0x321193)),J(0x2,_0x52e5c3),J(0x3,_0x4b7488),J(0x4,_0x3d5e47)],sr);let cr=class extends _0x948ae6{constructor(_0x27ce71,_0xbeffd8,_0x342304){const _0x34f762=_0x452ab3;super(),this['_instanceService']=_0x27ce71,this['_httpService']=_0xbeffd8,this[_0x34f762(0x257)]=_0x342304;}async[_0x452ab3(0x198)](_0x2930a8,_0x239c6b,_0x325914,..._0x5b458e){const _0x4c9bfb=_0x452ab3;var _0x5714f8,_0x13897a,_0x4c7980,_0x10e5ec;let _0x2fa8d3=this['_instanceService'][_0x4c9bfb(0x351)]();if(!_0x2fa8d3)throw Error(_0x4c9bfb(0x1d5));let _0x107cfe=((_0x5714f8=this[_0x4c9bfb(0x257)][_0x4c9bfb(0x370)](_0x190526))==null?_0x2c5f2e:_0x5714f8)+'/'+_0x2930a8+_0x4c9bfb(0x145)+_0x239c6b,_0x5c863a={'scriptId':_0x2930a8,'runId':(_0x13897a=new URL(window[_0x4c9bfb(0x336)][_0x4c9bfb(0x1a8)])[_0x4c9bfb(0x2c7)]['get'](_0x4c9bfb(0x298)))==null?'':_0x13897a,'function':_0x239c6b,'unitId':_0x2fa8d3[_0x4c9bfb(0x155)](),'argsOfFunction':JSON[_0x4c9bfb(0x1a2)](_0x5b458e),'invokeId':(_0x4c7980=_0x325914[_0x4c9bfb(0x2e2)])==null?'':_0x4c7980,'executionId':(_0x10e5ec=_0x325914[_0x4c9bfb(0x333)])==null?'':_0x10e5ec};try{let _0x1fb77d=await this[_0x4c9bfb(0x12f)]['post'](_0x107cfe,{'body':_0x5c863a});return _0x1fb77d[_0x4c9bfb(0x262)][_0x4c9bfb(0x2b7)]&&_0x1fb77d[_0x4c9bfb(0x262)][_0x4c9bfb(0x2b7)][_0x4c9bfb(0x18f)]!==_0x11291a['OK']?_0x4c9bfb(0x37a):_0x1fb77d[_0x4c9bfb(0x262)][_0x4c9bfb(0x212)];}catch{return _0x4c9bfb(0x37a);}}};cr=Y([J(0x0,_0x5df53a),J(0x1,_0x322f48(_0x321193)),J(0x2,_0x52e5c3)],cr);const lr=0x7530,ur=_0x452ab3(0x2b8);var dr=class extends _0x948ae6{constructor(){const _0x2d0b3d=_0x452ab3;super(),q(this,_0x2d0b3d(0x37f),_0x1d5fe5()),q(this,_0x2d0b3d(0x1f0),new Set()),q(this,_0x2d0b3d(0x383),new Map()),q(this,_0x2d0b3d(0x191),null),q(this,_0x2d0b3d(0x153),new Map()),q(this,'_unitStatus',new Map()),this[_0x2d0b3d(0x1e3)]();}['dispose'](){const _0xf6d262=_0x452ab3;super[_0xf6d262(0x2bc)](),this[_0xf6d262(0x153)][_0xf6d262(0x1f1)]((_0x3c3d2e,_0x2a884a)=>this[_0xf6d262(0x2de)](_0x2a884a)),this[_0xf6d262(0x191)]&&window[_0xf6d262(0x32b)](this[_0xf6d262(0x191)]);}[_0x452ab3(0x1db)](_0x2dbd8d){const _0x4be153=_0x452ab3;return this[_0x4be153(0x2eb)](_0x2dbd8d)['pipe'](_0x37c429());}[_0x452ab3(0x2bb)](_0x4edcf8){const _0x4ebafc=_0x452ab3;this['_selfUnitIDs'][_0x4ebafc(0x2e9)]===0x0&&this[_0x4ebafc(0x185)](),this[_0x4ebafc(0x1f0)][_0x4ebafc(0x17b)](_0x4edcf8),this[_0x4ebafc(0x14b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x4edcf8],'isForwarded':!0x1});}[_0x452ab3(0x2e8)](_0x38b81f){const _0x2c87d4=_0x452ab3;this[_0x2c87d4(0x1f0)]['delete'](_0x38b81f),this[_0x2c87d4(0x1f0)][_0x2c87d4(0x2e9)]===0x0&&this['_heartbeatTimer']&&window[_0x2c87d4(0x32b)](this[_0x2c87d4(0x191)]);}[_0x452ab3(0x1e3)](){const _0x4c4030=_0x452ab3;this[_0x4c4030(0x293)](_0xe9bbd4(_0x23eb4c(window,_0x4c4030(0x154))[_0x4c4030(0x290)](_0xabc4cb=>{const _0x1580b9=_0x4c4030;if(_0xabc4cb[_0x1580b9(0x1a4)]!==ur||!_0xabc4cb['newValue'])return;let _0x20e81e=JSON[_0x1580b9(0x1f8)](_0xabc4cb[_0x1580b9(0x29c)]);this['_handleEvent'](_0x20e81e);}))),window[_0x4c4030(0x1f9)]('unload',()=>this[_0x4c4030(0x14b)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4c4030(0x1d4)](this['_selfUnitIDs'])}));}[_0x452ab3(0x21c)](_0x4794d6){const _0x4d8883=_0x452ab3;switch(_0x4794d6['type']){case 0x0:this[_0x4d8883(0x332)](_0x4794d6);break;case 0x1:this[_0x4d8883(0x340)](_0x4794d6);break;case 0x2:this['_handleHeartbeatEvent'](_0x4794d6);break;}}[_0x452ab3(0x332)](_0x5708a4){const _0x3b86b0=_0x452ab3;let {unitIDs:_0x45c792,memberID:_0x34a6a1,isForwarded:_0x1e0fda}=_0x5708a4;_0x45c792[_0x3b86b0(0x1f1)](_0x5e2098=>{const _0x2bb178=_0x3b86b0;if(!_0x1e0fda&&this['_unitOnClients'][_0x2bb178(0x1bd)](_0x5e2098)&&this['_ensureSubject'](_0x5e2098)[_0x2bb178(0xfb)](_0x3151a9[_0x2bb178(0x18e)]),!this[_0x2bb178(0x383)][_0x2bb178(0x1bd)](_0x5e2098)||!this[_0x2bb178(0x383)]['get'](_0x5e2098)[_0x2bb178(0x1bd)](_0x34a6a1)){let _0x30f753=this[_0x2bb178(0x383)][_0x2bb178(0x379)](_0x5e2098)||new Set();_0x30f753['add'](_0x34a6a1),this[_0x2bb178(0x383)][_0x2bb178(0x2c2)](_0x5e2098,_0x30f753),this[_0x2bb178(0x1c8)](_0x34a6a1);}}),_0x1e0fda||this[_0x3b86b0(0x14b)]({'type':0x0,'memberID':this[_0x3b86b0(0x37f)],'unitIDs':[...this[_0x3b86b0(0x1f0)]],'isForwarded':!0x0});}[_0x452ab3(0x1c8)](_0x363735){const _0x3f2d3c=_0x452ab3;this[_0x3f2d3c(0x2de)](_0x363735);let _0x287280=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0xe4e254=>{_0xe4e254['delete'](_0x363735);});},lr*0x2);this['_clearOtherTimers'][_0x3f2d3c(0x2c2)](_0x363735,_0x287280);}['_removeClearOtherTimer'](_0x30e356){const _0x135048=_0x452ab3;if(this[_0x135048(0x153)][_0x135048(0x1bd)](_0x30e356)){let _0x1dace5=this['_clearOtherTimers'][_0x135048(0x379)](_0x30e356);_0x1dace5&&window['clearTimeout'](_0x1dace5),this['_clearOtherTimers']['set'](_0x30e356,null);}}[_0x452ab3(0x340)](_0x47273c){const _0x3a44f5=_0x452ab3;let {memberID:_0xefbedb,unitIDs:_0x150a2f}=_0x47273c;_0x150a2f[_0x3a44f5(0x1f1)](_0x1d21f9=>{const _0x7100eb=_0x3a44f5;var _0x16ee80;let _0x38b2f4=this[_0x7100eb(0x383)][_0x7100eb(0x379)](_0x1d21f9);_0x38b2f4&&(_0x38b2f4[_0x7100eb(0x1e8)](_0xefbedb),(_0x16ee80=this[_0x7100eb(0x2eb)](_0x1d21f9))==null||_0x16ee80[_0x7100eb(0xfb)](_0x38b2f4['size']===0x0?_0x3151a9[_0x7100eb(0x1b3)]:_0x3151a9[_0x7100eb(0x18e)]));}),this[_0x3a44f5(0x2de)](_0xefbedb);}['_handleHeartbeatEvent'](_0x22bde0){const _0x2322d9=_0x452ab3;this[_0x2322d9(0x1c8)](_0x22bde0[_0x2322d9(0x199)]);}[_0x452ab3(0x14b)](_0x5f68a6){const _0x2b3e79=_0x452ab3;localStorage[_0x2b3e79(0x2fe)](ur,JSON['stringify'](_0x5f68a6));}[_0x452ab3(0x185)](){const _0x44f0e9=_0x452ab3;this[_0x44f0e9(0x191)]=window[_0x44f0e9(0x37b)](()=>{const _0x487882=_0x44f0e9;this[_0x487882(0x14b)]({'type':0x2,'memberID':this[_0x487882(0x37f)]});},lr);}[_0x452ab3(0x2eb)](_0x5029c6){const _0x385722=_0x452ab3;return this[_0x385722(0x269)]['has'](_0x5029c6)||this['_unitStatus'][_0x385722(0x2c2)](_0x5029c6,new _0xa52b92(_0x3151a9[_0x385722(0x1b3)])),this[_0x385722(0x269)]['get'](_0x5029c6);}};export{sr as BrowserCollaborationSocketService,X as DesktopCollaborationStatusDisplayController,Gn as IURLService,cr as RemoteUniscriptService,Bn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,dr as WebBrowserSingleActiveUnitService};
|