@univerjs-pro/collaboration-client-ui 0.22.1 → 0.23.0

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.
Files changed (57) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/umd/facade.js +1 -1
  44. package/lib/umd/index.js +1 -1
  45. package/lib/umd/locale/ca-ES.js +1 -1
  46. package/lib/umd/locale/en-US.js +1 -1
  47. package/lib/umd/locale/es-ES.js +1 -1
  48. package/lib/umd/locale/fa-IR.js +1 -1
  49. package/lib/umd/locale/fr-FR.js +1 -1
  50. package/lib/umd/locale/ja-JP.js +1 -1
  51. package/lib/umd/locale/ko-KR.js +1 -1
  52. package/lib/umd/locale/ru-RU.js +1 -1
  53. package/lib/umd/locale/sk-SK.js +1 -1
  54. package/lib/umd/locale/vi-VN.js +1 -1
  55. package/lib/umd/locale/zh-CN.js +1 -1
  56. package/lib/umd/locale/zh-TW.js +1 -1
  57. package/package.json +17 -17
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x385291=_0x2feb;(function(_0x541020,_0x35c9ad){const _0x1072d1=_0x2feb,_0x24d1e1=_0x541020();while(!![]){try{const _0x30a057=-parseInt(_0x1072d1(0x3c1))/0x1*(parseInt(_0x1072d1(0x1ee))/0x2)+-parseInt(_0x1072d1(0x293))/0x3+-parseInt(_0x1072d1(0x338))/0x4*(parseInt(_0x1072d1(0x276))/0x5)+-parseInt(_0x1072d1(0x243))/0x6*(-parseInt(_0x1072d1(0x39a))/0x7)+-parseInt(_0x1072d1(0x396))/0x8+-parseInt(_0x1072d1(0x342))/0x9*(parseInt(_0x1072d1(0x24e))/0xa)+parseInt(_0x1072d1(0x2db))/0xb;if(_0x30a057===_0x35c9ad)break;else _0x24d1e1['push'](_0x24d1e1['shift']());}catch(_0xaf8f69){_0x24d1e1['push'](_0x24d1e1['shift']());}}}(_0xdf91,0xb1284));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationController,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DEFAULT_WS_SESSION_TICKET_URL,DataLoaderService,DocCollaborationEntity,ILocalCacheService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,MemberService,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,SessionStatus,UnitStatus,UniverCollaborationClientPlugin,getLocalCacheKey}from'@univerjs-pro/collaboration-client';import{COLORS,CanceledError,ColorKit,CommandType,DOC_RANGE_TYPE,DependentOn,Disposable,DisposableCollection,ICommandService,IConfigService,ILocalStorageService,ILogService,IUniverInstanceService,Inject,Injector,LocaleService,Optional,Plugin,Rectangle,RxDisposable,ThemeService,Tools,UniverInstanceType,Workbook,createIdentifier,debounce,fromEventSubject,generateRandomId,isFormulaId,isFormulaString,merge,mergeOverrideWithDependencies,registerDependencies,toDisposable,touchDependencies}from'@univerjs/core';import{BuiltInUIPart,IBeforeCloseService,IMessageService,INotificationService,IUIPartsService,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{BehaviorSubject,Subject,combineLatest,debounceTime,distinctUntilChanged,filter,fromEvent,mapTo,merge as _0x3c0893,of,shareReplay,switchMap,takeUntil}from'rxjs';import{MessageType,Tooltip,clsx}from'@univerjs/design';import{LoadingMultiIcon,OffLineIcon,OnLineIcon}from'@univerjs/icons';import{useCallback,useMemo}from'react';import{jsx}from'react/jsx-runtime';import{IRemoteInstanceService}from'@univerjs/rpc';import{EffectRefRangId,RefRangeService,SetSelectionsOperation,SetWorksheetActivateCommand,SheetsSelectionsService,handleDeleteRangeMoveLeft,handleDeleteRangeMoveUp,handleIRemoveCol,handleIRemoveRow,handleInsertCol,handleInsertRangeMoveDown,handleInsertRangeMoveRight,handleInsertRow,handleMoveRange,runRefRangeMutations}from'@univerjs/sheets';import{IRenderManagerService,Rect,RegularPolygon,SHEET_VIEWPORT_KEY,Shape,TRANSFORM_CHANGE_OBSERVABLE_TYPE,Vector2,getColor}from'@univerjs/engine-render';import{HTTPService,ISocketService,WebSocketService}from'@univerjs/network';import{DocIMEInputManagerService,DocStateChangeManagerService,IDocClipboardService,NodePositionConvertToCursor,NodePositionConvertToRectRange,SetDocZoomRatioOperation,TEXT_RANGE_LAYER_INDEX}from'@univerjs/docs-ui';import{IImageIoService}from'@univerjs/drawing';import{CollaborationEvent,ISnapshotServerService,ITransformService,RevisionService,isTransformMutationFailure,isTransformMutationsWithChangesetSuccess}from'@univerjs-pro/collaboration';import{DocSelectionManagerService,DocSkeletonManagerService,RichTextEditingMutation,SetTextSelectionsOperation}from'@univerjs/docs';import{FormulaExecuteStageType,FormulaExecutedStateType,SetFormulaCalculationNotificationMutation,SetFormulaCalculationStartMutation,deserializeRangeWithSheet,serializeRangeWithSheet}from'@univerjs/engine-formula';import{filter as _0x38f1c2,map,switchMap as _0x4e4672,takeUntil as _0x3d2c5f,throttleTime}from'rxjs/operators';import{SheetSkeletonManagerService,getCoordByCell,getSheetObject}from'@univerjs/sheets-ui';import{ErrorCode}from'@univerjs/protocol';function getStatusConfig(_0x33577d){const _0x53eb2d=_0x2feb;switch(_0x33577d){case CollaborationStatus[_0x53eb2d(0x237)]:return{'icon':jsx(OffLineIcon,{}),'colorClass':_0x53eb2d(0x317),'i18nKey':'collabStatus.offline','tooltipKey':_0x53eb2d(0x1da),'clickable':!![],'indicator':_0x53eb2d(0x304)};case CollaborationStatus[_0x53eb2d(0x25b)]:return{'icon':jsx(OffLineIcon,{}),'colorClass':_0x53eb2d(0x265),'i18nKey':_0x53eb2d(0x3b0),'clickable':![],'indicator':_0x53eb2d(0x304)};case CollaborationStatus[_0x53eb2d(0x2f5)]:return{'icon':jsx(LoadingMultiIcon,{}),'colorClass':_0x53eb2d(0x1ac),'i18nKey':_0x53eb2d(0x24a),'clickable':![],'indicator':_0x53eb2d(0x29e)};case CollaborationStatus['NOT_COLLAB']:return{'icon':jsx(OnLineIcon,{}),'colorClass':_0x53eb2d(0x380),'i18nKey':_0x53eb2d(0x207),'clickable':![],'indicator':_0x53eb2d(0x304)};case CollaborationStatus['AWAITING']:case CollaborationStatus['AWAITING_WITH_PENDING']:return{'icon':jsx(LoadingMultiIcon,{}),'colorClass':_0x53eb2d(0x1ac),'i18nKey':'collabStatus.syncing','clickable':![],'indicator':_0x53eb2d(0x29e)};case CollaborationStatus[_0x53eb2d(0x3bd)]:case CollaborationStatus[_0x53eb2d(0x231)]:return{'icon':jsx(OnLineIcon,{}),'colorClass':_0x53eb2d(0x36c),'i18nKey':_0x53eb2d(0x209),'clickable':![],'indicator':_0x53eb2d(0x304)};}}function CollaborationStatusDisplay(_0x5e05d2){const _0x31864e=_0x2feb,{status$:_0x397d2e}=_0x5e05d2,_0x5aae8c=useObservable(_0x397d2e,CollaborationStatus['NOT_COLLAB']),_0x5f2f5d=useDependency(LocaleService),_0x3009bb=useDependency(CollaborationSessionService),_0x553589=useMemo(()=>getStatusConfig(_0x5aae8c),[_0x5aae8c]),_0x17eb21=_0x5aae8c!==CollaborationStatus[_0x31864e(0x237)],_0x1ce895=_0x5f2f5d['t'](_0x553589['i18nKey']),_0x28d466=_0x553589['tooltipKey']?_0x5f2f5d['t'](_0x553589[_0x31864e(0x3ba)]):_0x1ce895,_0x537499=useCallback(()=>{const _0xabf2e9=_0x31864e;if(!_0x17eb21)_0x3009bb[_0xabf2e9(0x1b0)]();},[_0x17eb21,_0x3009bb]),_0x32eb69=useCallback(_0x28e150=>{const _0x117980=_0x31864e;!_0x17eb21&&(_0x28e150[_0x117980(0x393)]===_0x117980(0x1ec)||_0x28e150['key']==='\x20')&&(_0x28e150[_0x117980(0x2bc)](),_0x3009bb[_0x117980(0x1b0)]());},[_0x17eb21,_0x3009bb]),_0x12c00a=jsx(_0x31864e(0x37e),{'className':clsx('univer-flex\x20univer-items-center\x20univer-justify-center',_0x31864e(0x1c4),_0x553589[_0x31864e(0x36a)],{'univer-animate-spin':_0x553589[_0x31864e(0x2e0)]===_0x31864e(0x29e),'univer-animate-pulse':_0x553589[_0x31864e(0x2e0)]===_0x31864e(0x1f0)}),'aria-hidden':_0x31864e(0x239),'children':_0x553589[_0x31864e(0x28d)]}),_0x5f246e=jsx(_0x31864e(0x37e),{'className':clsx('univer-flex\x20univer-items-center\x20univer-justify-center',_0x31864e(0x31a),_0x31864e(0x2f4),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x31864e(0x2e8),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x553589[_0x31864e(0x292)],'univer-cursor-default':!_0x553589['clickable']}),'children':_0x12c00a});if(_0x553589[_0x31864e(0x292)])return jsx(Tooltip,{'title':_0x28d466,'placement':_0x31864e(0x30a),'children':jsx(_0x31864e(0x297),{'type':_0x31864e(0x297),'onClick':_0x537499,'onKeyDown':_0x32eb69,'className':clsx(_0x31864e(0x26b),_0x31864e(0x38e),_0x31864e(0x225),_0x31864e(0x2f9)),'aria-label':_0x1ce895+'\x20-\x20'+_0x28d466,'role':_0x31864e(0x371),'aria-live':'polite','aria-atomic':_0x31864e(0x239),'children':_0x5f246e})});return jsx(Tooltip,{'title':_0x28d466,'placement':_0x31864e(0x30a),'children':jsx(_0x31864e(0x2c9),{'className':clsx(_0x31864e(0x26b),_0x31864e(0x38e),_0x31864e(0x225)),'aria-label':_0x1ce895,'role':_0x31864e(0x371),'aria-live':_0x31864e(0x279),'aria-atomic':_0x31864e(0x239),'children':_0x5f246e})});}function _typeof(_0x4622a8){'@babel/helpers - typeof';const _0x882a64=_0x2feb;return _typeof=_0x882a64(0x2b0)==typeof Symbol&&_0x882a64(0x20e)==typeof Symbol[_0x882a64(0x1cf)]?function(_0xe2fad7){return typeof _0xe2fad7;}:function(_0x1a3098){const _0x4d413e=_0x882a64;return _0x1a3098&&'function'==typeof Symbol&&_0x1a3098[_0x4d413e(0x2e6)]===Symbol&&_0x1a3098!==Symbol[_0x4d413e(0x1cd)]?_0x4d413e(0x20e):typeof _0x1a3098;},_typeof(_0x4622a8);}function toPrimitive(_0x326347,_0x207c49){const _0x1c3715=_0x2feb;if(_0x1c3715(0x32e)!=_typeof(_0x326347)||!_0x326347)return _0x326347;var _0xe2f844=_0x326347[Symbol[_0x1c3715(0x228)]];if(void 0x0!==_0xe2f844){var _0x217724=_0xe2f844[_0x1c3715(0x27d)](_0x326347,_0x207c49||_0x1c3715(0x319));if(_0x1c3715(0x32e)!=_typeof(_0x217724))return _0x217724;throw new TypeError(_0x1c3715(0x22f));}return(_0x1c3715(0x30c)===_0x207c49?String:Number)(_0x326347);}function toPropertyKey(_0x402cb8){const _0x2c8447=_0x2feb;var _0xc2d3c9=toPrimitive(_0x402cb8,_0x2c8447(0x30c));return'symbol'==_typeof(_0xc2d3c9)?_0xc2d3c9:_0xc2d3c9+'';}function _defineProperty(_0x5a50bb,_0x592514,_0x5104fa){const _0x4708cc=_0x2feb;return(_0x592514=toPropertyKey(_0x592514))in _0x5a50bb?Object[_0x4708cc(0x1c7)](_0x5a50bb,_0x592514,{'value':_0x5104fa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a50bb[_0x592514]=_0x5104fa,_0x5a50bb;}function __decorateParam(_0x11c70e,_0x5528e8){return function(_0x59535c,_0xf55ac9){_0x5528e8(_0x59535c,_0xf55ac9,_0x11c70e);};}function __decorate(_0x8294e,_0x3bb16f,_0x2c4bc1,_0x5f109c){const _0x45455c=_0x2feb;var _0x4a0c14=arguments[_0x45455c(0x287)],_0xbb74f3=_0x4a0c14<0x3?_0x3bb16f:_0x5f109c===null?_0x5f109c=Object[_0x45455c(0x2b7)](_0x3bb16f,_0x2c4bc1):_0x5f109c,_0x25eca0;if(typeof Reflect===_0x45455c(0x32e)&&typeof Reflect[_0x45455c(0x300)]===_0x45455c(0x2b0))_0xbb74f3=Reflect[_0x45455c(0x300)](_0x8294e,_0x3bb16f,_0x2c4bc1,_0x5f109c);else{for(var _0x33af63=_0x8294e['length']-0x1;_0x33af63>=0x0;_0x33af63--)if(_0x25eca0=_0x8294e[_0x33af63])_0xbb74f3=(_0x4a0c14<0x3?_0x25eca0(_0xbb74f3):_0x4a0c14>0x3?_0x25eca0(_0x3bb16f,_0x2c4bc1,_0xbb74f3):_0x25eca0(_0x3bb16f,_0x2c4bc1))||_0xbb74f3;}return _0x4a0c14>0x3&&_0xbb74f3&&Object[_0x45455c(0x1c7)](_0x3bb16f,_0x2c4bc1,_0xbb74f3),_0xbb74f3;}let DesktopCollaborationStatusDisplayController=class DesktopCollaborationStatusDisplayController extends Disposable{constructor(_0x3c5b88,_0x6a18b6,_0x10364a,_0x485c38){const _0x359074=_0x2feb;super(),this[_0x359074(0x1ed)]=_0x3c5b88,this['_injector']=_0x6a18b6,this[_0x359074(0x3a4)]=_0x10364a,this[_0x359074(0x312)]=_0x485c38,_defineProperty(this,'_status$',new BehaviorSubject(CollaborationStatus[_0x359074(0x340)])),this[_0x359074(0x2c2)](),this[_0x359074(0x238)]();}[_0x385291(0x238)](){const _0x394fe4=_0x385291;this[_0x394fe4(0x21f)](this[_0x394fe4(0x1ed)][_0x394fe4(0x246)][_0x394fe4(0x1e6)](switchMap(()=>{const _0x19c97c=_0x394fe4,_0x52db4e=this['_univerInstanceService'][_0x19c97c(0x1bd)]();if(_0x52db4e)return this[_0x19c97c(0x3a4)][_0x19c97c(0x35a)](_0x52db4e[_0x19c97c(0x1ce)]());return of(null);}),switchMap(_0x42ca5d=>{const _0x481905=_0x394fe4;if(_0x42ca5d)return _0x42ca5d['status$'];return of(CollaborationStatus[_0x481905(0x340)]);}))[_0x394fe4(0x36d)](_0x4c4954=>{const _0x40cf69=_0x394fe4;this[_0x40cf69(0x390)][_0x40cf69(0x1bb)](_0x4c4954);}));}[_0x385291(0x2c2)](){const _0x4ac833=_0x385291;this[_0x4ac833(0x21f)](this[_0x4ac833(0x312)][_0x4ac833(0x2d0)](BuiltInUIPart[_0x4ac833(0x247)],()=>connectInjector(passProps({'status$':this[_0x4ac833(0x390)]['asObservable']()}),this[_0x4ac833(0x1b9)])));}};DesktopCollaborationStatusDisplayController=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,Inject(CollaborationController)),__decorateParam(0x3,IUIPartsService)],DesktopCollaborationStatusDisplayController);function passProps(_0x45a09e){const {status$:_0x56ce7c}=_0x45a09e;return function _0x10bfa7(){return jsx(CollaborationStatusDisplay,{'status$':_0x56ce7c});};}const IURLService=createIdentifier(_0x385291(0x2ba));let CollaborationDataLoaderController=class CollaborationDataLoaderController extends RxDisposable{constructor(_0x2f7e17,_0x4980db,_0x5dfc23,_0x634fdb,_0x54fd99){const _0x583fbd=_0x385291;super(),this['_urlService']=_0x2f7e17,this['_logService']=_0x4980db,this[_0x583fbd(0x2cc)]=_0x5dfc23,this[_0x583fbd(0x382)]=_0x634fdb;if(_0x54fd99)_0x54fd99===null||_0x54fd99===void 0x0||_0x54fd99['whenReady']()[_0x583fbd(0x2e1)](()=>this[_0x583fbd(0x1d2)]());else this[_0x583fbd(0x21a)]['debug'](_0x583fbd(0x213),_0x583fbd(0x1e7)),this[_0x583fbd(0x1d2)]();}async[_0x385291(0x1d2)](){const _0x130370=_0x385291,_0x34bd83=this[_0x130370(0x2f8)][_0x130370(0x384)](_0x130370(0x233)),_0x12f3e7=this[_0x130370(0x2f8)]['getParam'](_0x130370(0x3c9)),_0x1a7c30=this['_urlService'][_0x130370(0x384)]('subunit');if(!_0x34bd83||!_0x12f3e7){this['_logService'][_0x130370(0x29c)](_0x130370(0x213),_0x130370(0x298));return;}const _0x3eb1de=await this['_dataLoaderService'][_0x130370(0x3b4)](_0x34bd83,Number(_0x12f3e7),_0x1a7c30);if(_0x3eb1de&&_0x3eb1de instanceof Workbook)this[_0x130370(0x36b)](_0x3eb1de);}async[_0x385291(0x36b)](_0x2adaf1){const _0x21bc5e=_0x385291;await this[_0x21bc5e(0x278)](_0x2adaf1),_0x2adaf1[_0x21bc5e(0x3af)][_0x21bc5e(0x1e6)](takeUntil(this['dispose$']))[_0x21bc5e(0x36d)](_0x502bf7=>{if(_0x502bf7)this['_updateURLWithCurrentState'](_0x502bf7);}),this[_0x21bc5e(0x2f8)][_0x21bc5e(0x311)][_0x21bc5e(0x1e6)](takeUntil(this[_0x21bc5e(0x2d2)]))[_0x21bc5e(0x36d)](()=>this[_0x21bc5e(0x278)](_0x2adaf1));}['_updateURLWithCurrentState'](_0x37e51c,_0x46892c=![]){const _0x4a982a=_0x385291,_0x2312f4=this[_0x4a982a(0x2f8)][_0x4a982a(0x384)](_0x4a982a(0x2e7));if(_0x37e51c[_0x4a982a(0x2b8)]()!==_0x2312f4)this[_0x4a982a(0x2f8)][_0x4a982a(0x358)](_0x4a982a(0x2e7),_0x37e51c[_0x4a982a(0x2b8)](),_0x46892c);}async[_0x385291(0x278)](_0x2ecd71){const _0x24e864=_0x385291;var _0x4a7532;const _0x296e74=this[_0x24e864(0x2f8)][_0x24e864(0x384)](_0x24e864(0x2e7));if(!_0x296e74||!_0x2ecd71[_0x24e864(0x241)](_0x296e74)){const _0x1e41df=_0x2ecd71['getUnhiddenWorksheets']()[0x0],_0x28c179=_0x2ecd71[_0x24e864(0x241)](_0x1e41df);if(!_0x28c179)return;this[_0x24e864(0x320)](_0x28c179,!![]),await this[_0x24e864(0x2cc)][_0x24e864(0x224)](SetWorksheetActivateCommand['id'],{'unitId':_0x2ecd71[_0x24e864(0x1ce)](),'subUnitId':_0x1e41df});return;}if(((_0x4a7532=_0x2ecd71['getActiveSheet']())===null||_0x4a7532===void 0x0?void 0x0:_0x4a7532[_0x24e864(0x2b8)]())===_0x296e74)return;await this['_commandService'][_0x24e864(0x224)](SetWorksheetActivateCommand['id'],{'unitId':_0x2ecd71[_0x24e864(0x1ce)](),'subUnitId':_0x296e74});}};CollaborationDataLoaderController=__decorate([__decorateParam(0x0,IURLService),__decorateParam(0x1,ILogService),__decorateParam(0x2,ICommandService),__decorateParam(0x3,Inject(DataLoaderService)),__decorateParam(0x4,Optional(IRemoteInstanceService))],CollaborationDataLoaderController);var name=_0x385291(0x296),version=_0x385291(0x214);let ImagePasteController=class ImagePasteController extends RxDisposable{constructor(_0xb7fa6b,_0x1a146d){const _0x1b7402=_0x385291;super(),this[_0x1b7402(0x37b)]=_0xb7fa6b,this[_0x1b7402(0x1ff)]=_0x1a146d,this[_0x1b7402(0x1d2)]();}[_0x385291(0x1d2)](){const _0x48dba2=_0x385291,_0x13390b=this;this[_0x48dba2(0x21f)](this[_0x48dba2(0x37b)][_0x48dba2(0x3a5)]({'onBeforePasteImage':async _0x3a8fb4=>{const _0x11e7bd=_0x48dba2,_0x32e6d0=await _0x13390b[_0x11e7bd(0x1ff)]['saveImage'](_0x3a8fb4);if(_0x32e6d0)return{'source':_0x32e6d0['source'],'imageSourceType':_0x32e6d0['imageSourceType']};return null;}}));}};ImagePasteController=__decorate([__decorateParam(0x0,IDocClipboardService),__decorateParam(0x1,IImageIoService)],ImagePasteController);function _0x2feb(_0x430f45,_0x295e1c){_0x430f45=_0x430f45-0x1a6;const _0xdf9198=_0xdf91();let _0x2febbd=_0xdf9198[_0x430f45];return _0x2febbd;}const BACKGROUND_TOKENS=[_0x385291(0x1c0),_0x385291(0x2b3),_0x385291(0x230),_0x385291(0x2cd),_0x385291(0x1df),'yellow.400'];var ColorAssignService=class extends Disposable{constructor(..._0x4d7379){const _0x44fda3=_0x385291;super(..._0x4d7379),_defineProperty(this,_0x44fda3(0x1b7),new Map()),_defineProperty(this,_0x44fda3(0x2fa),0x0);}[_0x385291(0x262)](_0x974b83){const _0x34c5f3=_0x385291;if(this[_0x34c5f3(0x1b7)][_0x34c5f3(0x333)](_0x974b83))return this[_0x34c5f3(0x1b7)][_0x34c5f3(0x212)](_0x974b83);const _0x32e8e5=BACKGROUND_TOKENS[this['_colorIndex']];return this[_0x34c5f3(0x2fa)]=(this[_0x34c5f3(0x2fa)]+0x1)%BACKGROUND_TOKENS['length'],this['_assignedColors'][_0x34c5f3(0x222)](_0x974b83,_0x32e8e5),_0x32e8e5;}};function serializeDocTextRanges(_0x30e952){let _0x40f180='';for(const _0x2028f2 of _0x30e952){const {startOffset:_0x2320b6,endOffset:_0x52adef,isActive:_0x4e1b1c,rangeType:_0x137c7d,segmentId:_0x12c574,segmentPage:_0x16611a}=_0x2028f2;if(_0x40f180['length'])_0x40f180+=',';_0x40f180+=_0x2320b6+':'+_0x52adef+':'+(_0x4e1b1c?'1':'0')+':'+_0x137c7d+':'+_0x12c574+':'+_0x16611a;}return _0x40f180;}function deserializeDocTextRanges(_0x990428){const _0xa86e22=_0x385291,_0x231524=_0x990428[_0xa86e22(0x38d)](','),_0x5a8f1d=[];for(const _0x363529 of _0x231524){const [_0x4be82e,_0x371db7,_0x56e150,_0x3ccbab,_0x5818da,_0x536bab]=_0x363529[_0xa86e22(0x38d)](':');_0x5a8f1d[_0xa86e22(0x1fb)]({'startOffset':Number(_0x4be82e),'endOffset':Number(_0x371db7),'collapsed':_0x4be82e===_0x371db7,'isActive':_0x56e150==='1','rangeType':_0x3ccbab===DOC_RANGE_TYPE[_0xa86e22(0x383)]?DOC_RANGE_TYPE[_0xa86e22(0x383)]:DOC_RANGE_TYPE[_0xa86e22(0x35b)],'segmentId':typeof _0x5818da==='string'?String(_0x5818da):'','segmentPage':Number(_0x536bab!==null&&_0x536bab!==void 0x0?_0x536bab:-0x1)});}if(!_0x5a8f1d[_0xa86e22(0x305)](_0x3d3814=>_0x3d3814[_0xa86e22(0x25d)]))_0x5a8f1d[0x0][_0xa86e22(0x25d)]=!![];return _0x5a8f1d;}var DocSyncEditingCollabCursorService=class extends RxDisposable{constructor(..._0x4f26c7){const _0x390680=_0x385291;super(..._0x4f26c7),_defineProperty(this,'_collabCursorState$',new BehaviorSubject(null)),_defineProperty(this,_0x390680(0x386),this[_0x390680(0x352)][_0x390680(0x2d3)]());}[_0x385291(0x321)](_0xdd6d33){const _0x3fb6a6=_0x385291,{unitID:_0x5d6615,memberID:_0x7a3515,textRanges:_0x344e9a}=_0xdd6d33,_0x2e22a2=serializeDocTextRanges(_0x344e9a);if(_0x2e22a2==='')return;const _0x5e84b1={'unitID':_0x5d6615,'memberID':_0x7a3515,'selection':_0x2e22a2};this[_0x3fb6a6(0x352)][_0x3fb6a6(0x1bb)](_0x5e84b1);}};const DEBOUNCE_TIME$1=0x12c,SHARE_LOCAL_DEBOUNCE_TIME$1=0x64;let DocCollabCursorEntity=class DocCollabCursorEntity extends RxDisposable{get[_0x385291(0x1bf)](){const _0x146084=_0x385291;return this[_0x146084(0x23c)][_0x146084(0x323)]();}get[_0x385291(0x353)](){const _0x15a27b=_0x385291;return this['_roomMembers$'][_0x15a27b(0x323)]();}constructor(_0x25c9a3,_0x31f519,_0x1cb4cf,_0x305af0,_0x5918e2,_0x4af974,_0x444bf7,_0x587783,_0x29366f){const _0x24a185=_0x385291;super(),this['unitID']=_0x25c9a3,this['_session']=_0x31f519,this['_injector']=_0x1cb4cf,this[_0x24a185(0x21c)]=_0x305af0,this[_0x24a185(0x270)]=_0x5918e2,this['_syncEditingCollabCursorService']=_0x4af974,this[_0x24a185(0x23f)]=_0x444bf7,this['_univerInstanceService']=_0x587783,this['_commandService']=_0x29366f,_defineProperty(this,'_online',![]),_defineProperty(this,_0x24a185(0x1d2),![]),_defineProperty(this,_0x24a185(0x23c),new BehaviorSubject(new Map())),_defineProperty(this,_0x24a185(0x29a),this[_0x24a185(0x23c)][_0x24a185(0x2d3)]()),_defineProperty(this,_0x24a185(0x2de),new BehaviorSubject([])),_defineProperty(this,_0x24a185(0x1cb),this[_0x24a185(0x2de)][_0x24a185(0x1e6)](debounceTime(DEBOUNCE_TIME$1))),_defineProperty(this,_0x24a185(0x20d),debounce(_0x2f25c4=>{const _0x5ab62d=_0x24a185,_0x15fcef={'eventID':CollaborationEvent[_0x5ab62d(0x2ce)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x5ab62d(0x1f8)](),'selection':serializeDocTextRanges(_0x2f25c4)}};this[_0x5ab62d(0x1a7)][_0x5ab62d(0x329)](_0x15fcef,this[_0x5ab62d(0x2e4)]);},SHARE_LOCAL_DEBOUNCE_TIME$1));}[_0x385291(0x272)](){const _0xd8d481=_0x385291;super[_0xd8d481(0x272)](),this[_0xd8d481(0x23c)][_0xd8d481(0x1bb)](new Map()),this[_0xd8d481(0x23c)]['complete'](),this[_0xd8d481(0x2de)][_0xd8d481(0x1bb)]([]),this[_0xd8d481(0x2de)][_0xd8d481(0x37c)]();}[_0x385291(0x1d1)](){const _0x1bb7bb=_0x385291;if(this[_0x1bb7bb(0x1d2)])return;this[_0x1bb7bb(0x1d2)]=!![],this[_0x1bb7bb(0x1a7)]['sessionStatus$'][_0x1bb7bb(0x1e6)](takeUntil(this[_0x1bb7bb(0x2d2)]))[_0x1bb7bb(0x36d)](_0x27b65e=>{const _0x4eb549=_0x1bb7bb;if(_0x27b65e===SessionStatus['ONLINE'])this[_0x4eb549(0x24d)]();else this[_0x4eb549(0x336)]();}),this[_0x1bb7bb(0x1a7)][_0x1bb7bb(0x251)][_0x1bb7bb(0x1e6)](takeUntil(this[_0x1bb7bb(0x2d2)]))[_0x1bb7bb(0x36d)](_0x4f5991=>{const _0x1ee627=_0x1bb7bb,_0x493949=_0x4f5991['eventID'];if(_0x493949===CollaborationEvent[_0x1ee627(0x2ce)])this[_0x1ee627(0x2fe)](_0x4f5991);if(_0x493949===CollaborationEvent[_0x1ee627(0x1b3)])this['_onCursorDelete'](_0x4f5991);}),this[_0x1bb7bb(0x21f)](this[_0x1bb7bb(0x2cc)][_0x1bb7bb(0x295)](_0x101852=>{const _0x4a9925=_0x1bb7bb,_0x52e85e=_0x101852[_0x4a9925(0x1db)];if(_0x52e85e==null)return;if(this[_0x4a9925(0x269)]&&_0x101852['id']===SetTextSelectionsOperation['id']&&_0x52e85e[_0x4a9925(0x34d)]===this[_0x4a9925(0x2e4)]&&_0x52e85e[_0x4a9925(0x2b9)]===![]&&_0x52e85e[_0x4a9925(0x32f)]['length']>0x0)this['_updateLocalCursor'](_0x52e85e[_0x4a9925(0x32f)]);})),this[_0x1bb7bb(0x2d8)]['collabCursorState$'][_0x1bb7bb(0x1e6)](takeUntil(this[_0x1bb7bb(0x2d2)]))[_0x1bb7bb(0x36d)](_0x5d822a=>{const _0x3ec3c3=_0x1bb7bb;if((_0x5d822a===null||_0x5d822a===void 0x0?void 0x0:_0x5d822a['unitID'])!==this[_0x3ec3c3(0x2e4)])return;const _0x36a650={'eventID':CollaborationEvent[_0x3ec3c3(0x2ce)],'data':_0x5d822a};this[_0x3ec3c3(0x2fe)](_0x36a650);}),this[_0x1bb7bb(0x21f)](this['_commandService'][_0x1bb7bb(0x295)](_0xf72523=>{const _0x2518a2=_0x1bb7bb;if(_0xf72523['params']==null)return;const _0x2cc7c9=_0xf72523['params'];if(_0xf72523['id']!==RichTextEditingMutation['id']||_0x2cc7c9['unitId']!==this[_0x2518a2(0x2e4)])return;const _0x373afc={'id':_0x2518a2(0x2be),'params':_0x2cc7c9},_0x247301=this[_0x2518a2(0x1bf)];for(const [_0x8d7ccb,_0xf4ac1b]of _0x247301){const _0x287f51={'id':_0x2518a2(0x2be),'params':{'unitId':this[_0x2518a2(0x2e4)],'actions':null,'textRanges':_0xf4ac1b[_0x2518a2(0x32f)]}},_0x59e957=this[_0x2518a2(0x23f)][_0x2518a2(0x226)](_0x373afc,_0x287f51,![]);if(isTransformMutationFailure(_0x59e957))throw _0x59e957[_0x2518a2(0x32c)];_0x247301['set'](_0x8d7ccb,{..._0xf4ac1b,'ranges':_0x59e957[_0x2518a2(0x3b8)][_0x2518a2(0x1db)][_0x2518a2(0x1c5)]});}queueMicrotask(()=>{const _0x5375a9=_0x2518a2;this[_0x5375a9(0x23c)]['next'](_0x247301);});}));}['_onCursorUpdate'](_0x7fdbd1){const _0x2f3189=_0x385291;var _0x3de0cc,_0x49acfd;const {memberID:_0x7739d7,selection:_0x2529d3}=_0x7fdbd1[_0x2f3189(0x1e5)],_0x300331=deserializeDocTextRanges(_0x2529d3),_0x1d6003=(_0x3de0cc=(_0x49acfd=this['_memberService'][_0x2f3189(0x2a7)](this[_0x2f3189(0x2e4)],_0x7739d7))===null||_0x49acfd===void 0x0?void 0x0:_0x49acfd[_0x2f3189(0x2ed)])!==null&&_0x3de0cc!==void 0x0?_0x3de0cc:_0x2f3189(0x318),_0x269b0d={'color':this['_colorAssignService'][_0x2f3189(0x262)](_0x7739d7),'name':_0x1d6003,'ranges':_0x300331},_0x5354cd=this[_0x2f3189(0x1bf)];_0x5354cd['set'](_0x7739d7,_0x269b0d),this[_0x2f3189(0x23c)][_0x2f3189(0x1bb)](_0x5354cd);}[_0x385291(0x399)](_0x2b88bb){const _0x5886ec=_0x385291,{memberID:_0x367a74}=_0x2b88bb[_0x5886ec(0x1e5)],_0x127f39=this[_0x5886ec(0x1bf)];_0x127f39[_0x5886ec(0x282)](_0x367a74),this['_cursorInfo$'][_0x5886ec(0x1bb)](_0x127f39);}['_toggleOnline'](){const _0x80420f=_0x385291;var _0x328cf1;this[_0x80420f(0x269)]=!![];if(((_0x328cf1=this[_0x80420f(0x1ed)][_0x80420f(0x1bd)]())===null||_0x328cf1===void 0x0?void 0x0:_0x328cf1[_0x80420f(0x1ce)]())!==this[_0x80420f(0x2e4)])return;const _0x5df627=this[_0x80420f(0x1b9)]['get'](DocSelectionManagerService)[_0x80420f(0x391)]();if(Array['isArray'](_0x5df627)&&_0x5df627[_0x80420f(0x287)]>0x0)this[_0x80420f(0x20d)](_0x5df627);}[_0x385291(0x336)](){const _0xf29857=_0x385291;this[_0xf29857(0x269)]=![];}};DocCollabCursorEntity=__decorate([__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,Inject(ColorAssignService)),__decorateParam(0x4,Inject(MemberService)),__decorateParam(0x5,Inject(DocSyncEditingCollabCursorService)),__decorateParam(0x6,ITransformService),__decorateParam(0x7,IUniverInstanceService),__decorateParam(0x8,ICommandService)],DocCollabCursorEntity);const DEBOUNCE_TIME=0x12c,SHARE_LOCAL_DEBOUNCE_TIME=0x64,createNextTick=()=>{let _0x944105=[],_0x358582=![];return _0x15b9f4=>{const _0x3fc65d=_0x2feb;_0x944105[_0x3fc65d(0x1fb)](_0x15b9f4),!_0x358582&&(_0x358582=!![],setTimeout(()=>{const _0x373dd9=_0x3fc65d;_0x944105[_0x373dd9(0x1ef)](_0x2b1e44=>_0x2b1e44()),_0x944105=[],_0x358582=![];}));};};let SheetCollabCursorEntity=class SheetCollabCursorEntity extends RxDisposable{get[_0x385291(0x1bf)](){const _0x57d123=_0x385291;return this[_0x57d123(0x23c)][_0x57d123(0x323)]();}get['roomMembers'](){const _0x48568d=_0x385291;return this[_0x48568d(0x2de)][_0x48568d(0x323)]();}constructor(_0x216067,_0xc3d70,_0x2bbe0d,_0xa53b81,_0x3f6aff,_0xbbbe4,_0x6216ee,_0x3c426a){const _0x42cd4d=_0x385291;super(),this[_0x42cd4d(0x2e4)]=_0x216067,this[_0x42cd4d(0x1a7)]=_0xc3d70,this['_injector']=_0x2bbe0d,this[_0x42cd4d(0x21c)]=_0xa53b81,this[_0x42cd4d(0x270)]=_0x3f6aff,this[_0x42cd4d(0x1ed)]=_0xbbbe4,this[_0x42cd4d(0x2cc)]=_0x6216ee,this[_0x42cd4d(0x2e2)]=_0x3c426a,_defineProperty(this,_0x42cd4d(0x269),![]),_defineProperty(this,'_init',![]),_defineProperty(this,_0x42cd4d(0x23c),new BehaviorSubject(new Map())),_defineProperty(this,'cursorInfo$',this['_cursorInfo$'][_0x42cd4d(0x2d3)]()),_defineProperty(this,_0x42cd4d(0x2de),new BehaviorSubject([])),_defineProperty(this,_0x42cd4d(0x1cb),this[_0x42cd4d(0x2de)][_0x42cd4d(0x1e6)](debounceTime(DEBOUNCE_TIME))),_defineProperty(this,_0x42cd4d(0x20d),debounce((_0x31ff11,_0x1fabc2)=>{const _0x2e8a8c=_0x42cd4d,_0xe1c21={'eventID':CollaborationEvent[_0x2e8a8c(0x2ce)],'data':{'unitID':this[_0x2e8a8c(0x2e4)],'memberID':this[_0x2e8a8c(0x1a7)][_0x2e8a8c(0x1f8)](),'selection':serializeRangeWithSheet(_0x31ff11,_0x1fabc2['range'])}};this['_session'][_0x2e8a8c(0x329)](_0xe1c21,this[_0x2e8a8c(0x2e4)]);},SHARE_LOCAL_DEBOUNCE_TIME));}[_0x385291(0x272)](){const _0x41c996=_0x385291;super[_0x41c996(0x272)](),this['_cursorInfo$'][_0x41c996(0x1bb)](new Map()),this['_cursorInfo$'][_0x41c996(0x37c)](),this[_0x41c996(0x2de)][_0x41c996(0x1bb)]([]),this[_0x41c996(0x2de)][_0x41c996(0x37c)]();}[_0x385291(0x1d1)](){const _0x320b21=_0x385291;if(this['_init'])return;this['_init']=!![],this['_session']['sessionStatus$'][_0x320b21(0x1e6)](takeUntil(this[_0x320b21(0x2d2)]))[_0x320b21(0x36d)](_0x516255=>{const _0x426557=_0x320b21;if(_0x516255===SessionStatus[_0x426557(0x2b2)])this['_toggleOnline']();else this[_0x426557(0x336)]();}),this['_session'][_0x320b21(0x251)][_0x320b21(0x1e6)](takeUntil(this[_0x320b21(0x2d2)]))['subscribe'](_0x17e076=>{const _0x4ab437=_0x320b21,_0x132e0=_0x17e076['eventID'];if(_0x132e0===CollaborationEvent['UPDATE_CURSOR'])this[_0x4ab437(0x2fe)](_0x17e076);if(_0x132e0===CollaborationEvent[_0x4ab437(0x1b3)])this['_onCursorDelete'](_0x17e076);}),this['_onRefRangeChange'](),this[_0x320b21(0x21f)](this[_0x320b21(0x2cc)]['onCommandExecuted'](_0x304737=>{const _0x44fbd1=_0x320b21;if(this['_online']&&_0x304737['id']===SetSelectionsOperation['id']&&_0x304737[_0x44fbd1(0x1db)][_0x44fbd1(0x34d)]===this[_0x44fbd1(0x2e4)]){const _0x46d808=_0x304737[_0x44fbd1(0x1db)];this[_0x44fbd1(0x20d)](_0x46d808['subUnitId'],_0x46d808[_0x44fbd1(0x284)][0x0]);}}));}[_0x385291(0x2fe)](_0x160ace){const _0x3521a2=_0x385291;var _0xaff412,_0x335393;const {memberID:_0x14ec1b,selection:_0x9daf52}=_0x160ace[_0x3521a2(0x1e5)],{sheetName:_0x448845,range:_0x516bfd}=deserializeRangeWithSheet(_0x9daf52),_0x50a89b={'name':(_0xaff412=(_0x335393=this[_0x3521a2(0x270)][_0x3521a2(0x2a7)](this[_0x3521a2(0x2e4)],_0x14ec1b))===null||_0x335393===void 0x0?void 0x0:_0x335393[_0x3521a2(0x2ed)])!==null&&_0xaff412!==void 0x0?_0xaff412:'Unknown\x20user','range':this[_0x3521a2(0x335)](_0x448845,_0x516bfd),'sheetID':_0x448845,'color':this[_0x3521a2(0x21c)][_0x3521a2(0x262)](_0x14ec1b),'selection':_0x9daf52},_0x4afb82=this['cursorInfo'];_0x4afb82[_0x3521a2(0x222)](_0x14ec1b,_0x50a89b),this[_0x3521a2(0x23c)]['next'](_0x4afb82);}[_0x385291(0x399)](_0x55c812){const _0x1367f0=_0x385291,{memberID:_0x5a43e1}=_0x55c812[_0x1367f0(0x1e5)],_0x2bff40=this[_0x1367f0(0x1bf)];_0x2bff40[_0x1367f0(0x282)](_0x5a43e1),this[_0x1367f0(0x23c)]['next'](_0x2bff40);}[_0x385291(0x335)](_0x4fd953,_0x245985){const _0x48c884=_0x385291;var _0x3ce108;const _0x350a39=(_0x3ce108=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x48c884(0x2e4)]))===null||_0x3ce108===void 0x0||(_0x3ce108=_0x3ce108[_0x48c884(0x241)](_0x4fd953))===null||_0x3ce108===void 0x0?void 0x0:_0x3ce108[_0x48c884(0x1c1)]();return(_0x350a39===null||_0x350a39===void 0x0?void 0x0:_0x350a39['find'](_0x5a1c6e=>Rectangle['contains'](_0x5a1c6e,_0x245985)))||_0x245985;}[_0x385291(0x39e)](){const _0x4a6a13=_0x385291,_0x1f55d1=new DisposableCollection(),_0x2ba155=createNextTick(),_0x111d49=()=>{const _0x432cd6=_0x2feb;_0x1f55d1[_0x432cd6(0x272)]();const _0x1f1867=(_0x2c10fc,_0x186160,_0x318385,_0xb7645f)=>{const _0x577a5e=_0x432cd6;let _0x5df8e0=[];switch(_0x2c10fc['id']){case EffectRefRangId[_0x577a5e(0x31f)]:_0x5df8e0=handleDeleteRangeMoveLeft(_0x2c10fc,_0xb7645f);break;case EffectRefRangId[_0x577a5e(0x1d4)]:_0x5df8e0=handleDeleteRangeMoveUp(_0x2c10fc,_0xb7645f);break;case EffectRefRangId[_0x577a5e(0x2c4)]:_0x5df8e0=handleInsertCol(_0x2c10fc,_0xb7645f);break;case EffectRefRangId[_0x577a5e(0x359)]:_0x5df8e0=handleInsertRangeMoveDown(_0x2c10fc,_0xb7645f);break;case EffectRefRangId[_0x577a5e(0x1de)]:_0x5df8e0=handleInsertRangeMoveRight(_0x2c10fc,_0xb7645f);break;case EffectRefRangId[_0x577a5e(0x260)]:_0x5df8e0=handleInsertRow(_0x2c10fc,_0xb7645f);break;case EffectRefRangId[_0x577a5e(0x1d9)]:_0x5df8e0=handleMoveRange(_0x2c10fc,_0xb7645f);break;case EffectRefRangId[_0x577a5e(0x379)]:_0x5df8e0=handleIRemoveCol(_0x2c10fc,_0xb7645f);break;case EffectRefRangId['RemoveRowCommandId']:_0x5df8e0=handleIRemoveRow(_0x2c10fc,_0xb7645f);break;}const _0xea137a=runRefRangeMutations(_0x5df8e0,_0xb7645f),_0x57d700=this['cursorInfo'][_0x577a5e(0x212)](_0x186160);if(_0x57d700&&_0xea137a){const _0x58d4a7={..._0x57d700,'range':_0xea137a};this[_0x577a5e(0x1bf)]['set'](_0x186160,_0x58d4a7),_0x2ba155(()=>{const _0x4a2488=_0x577a5e,_0x4b8469=this[_0x4a2488(0x2e2)][_0x4a2488(0x1f2)](_0xea137a,_0x1df839=>{const _0x3e2403=_0x4a2488;return _0x4b8469[_0x3e2403(0x272)](),_0x1f1867(_0x1df839,_0x186160,_0x318385,_0xea137a);});_0x1f55d1[_0x4a2488(0x26a)](_0x4b8469);});}return{'redos':[],'undos':[]};};this[_0x432cd6(0x1bf)][_0x432cd6(0x1ef)]((_0x14c0ae,_0x563eed)=>{const _0x2fd379=_0x432cd6,{range:_0x590d9b,sheetID:_0x39bf9a}=_0x14c0ae,_0x2d655c=this[_0x2fd379(0x2e2)][_0x2fd379(0x1f2)](_0x590d9b,_0x723555=>{return _0x2d655c['dispose'](),_0x1f1867(_0x723555,_0x563eed,_0x39bf9a,_0x590d9b);});_0x1f55d1[_0x2fd379(0x26a)](_0x2d655c);});};this['disposeWithMe'](toDisposable(this['_cursorInfo$'][_0x4a6a13(0x36d)](()=>{_0x111d49();})));}['_toggleOnline'](){const _0x4d128f=_0x385291;var _0x20d7ae,_0xea2dff;this[_0x4d128f(0x269)]=!![];if(((_0x20d7ae=this['_univerInstanceService'][_0x4d128f(0x1bd)]())===null||_0x20d7ae===void 0x0?void 0x0:_0x20d7ae[_0x4d128f(0x1ce)]())!==this['unitID'])return;const _0x5c8f53=(_0xea2dff=this[_0x4d128f(0x1b9)][_0x4d128f(0x212)](SheetsSelectionsService)[_0x4d128f(0x2e5)]())===null||_0xea2dff===void 0x0?void 0x0:_0xea2dff[0x0],_0xb8b309=this[_0x4d128f(0x1ed)][_0x4d128f(0x1bc)](UniverInstanceType[_0x4d128f(0x36e)])[_0x4d128f(0x376)]();if(_0x5c8f53&&_0xb8b309)this[_0x4d128f(0x20d)](_0xb8b309['getSheetId'](),_0x5c8f53);}[_0x385291(0x336)](){const _0x2a7f6c=_0x385291;this[_0x2a7f6c(0x269)]=![];}};SheetCollabCursorEntity=__decorate([__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,Inject(ColorAssignService)),__decorateParam(0x4,Inject(MemberService)),__decorateParam(0x5,IUniverInstanceService),__decorateParam(0x6,ICommandService),__decorateParam(0x7,Inject(RefRangeService))],SheetCollabCursorEntity);let CollabCursorController=class CollabCursorController extends RxDisposable{constructor(_0xbb103,_0x362473,_0x46324c){const _0x2f03d5=_0x385291;super(),this['_univerInstanceService']=_0xbb103,this['_injector']=_0x362473,this['_collabSessionService']=_0x46324c,_defineProperty(this,'_entities',new Map()),_defineProperty(this,'_entityInit$',new Subject()),this[_0x2f03d5(0x1d2)]();}[_0x385291(0x272)](){const _0xcccd0b=_0x385291;super[_0xcccd0b(0x272)](),this[_0xcccd0b(0x331)][_0xcccd0b(0x37c)](),this['_entities'][_0xcccd0b(0x1ef)](_0x1a6505=>_0x1a6505[_0xcccd0b(0x272)]());}[_0x385291(0x244)](_0x5c6aa5){const _0x30e2fa=_0x385291;if(this[_0x30e2fa(0x3ab)][_0x30e2fa(0x333)](_0x5c6aa5))return this['_entities'][_0x30e2fa(0x212)](_0x5c6aa5)[_0x30e2fa(0x29a)];return this[_0x30e2fa(0x331)][_0x30e2fa(0x1e6)](filter(_0x4f4e4e=>_0x4f4e4e[_0x30e2fa(0x2e4)]===_0x5c6aa5),switchMap(_0x287b86=>_0x287b86[_0x30e2fa(0x29a)]));}[_0x385291(0x1d2)](){const _0x64c95f=_0x385291;this[_0x64c95f(0x1ed)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x64c95f(0x36e)])['pipe'](takeUntil(this[_0x64c95f(0x2d2)]))[_0x64c95f(0x36d)](async _0x4917d3=>{const _0x29b4f0=_0x64c95f,_0x2f765b=_0x4917d3[_0x29b4f0(0x233)]['getUnitId'](),_0xd256a7=await this['_startSheetCollabCursor'](_0x2f765b);this[_0x29b4f0(0x331)]['next'](_0xd256a7),this[_0x29b4f0(0x3ab)]['set'](_0x2f765b,_0xd256a7);}),this[_0x64c95f(0x1ed)][_0x64c95f(0x23b)](UniverInstanceType[_0x64c95f(0x294)])[_0x64c95f(0x1e6)](takeUntil(this['dispose$']))[_0x64c95f(0x1e6)](filter(_0x557586=>{const _0x161768=_0x64c95f;return!_0x557586[_0x161768(0x233)]['getUnitId']()[_0x161768(0x220)]('__');}))[_0x64c95f(0x36d)](async _0xb26907=>{const _0x255cee=_0x64c95f,{unit:_0xfe88b7}=_0xb26907,_0x306bf1=_0xfe88b7[_0x255cee(0x1ce)](),_0x4d4799=await this[_0x255cee(0x3aa)](_0x306bf1);this[_0x255cee(0x331)][_0x255cee(0x1bb)](_0x4d4799),this[_0x255cee(0x3ab)]['set'](_0x306bf1,_0x4d4799);}),_0x3c0893(this[_0x64c95f(0x1ed)][_0x64c95f(0x31e)](UniverInstanceType[_0x64c95f(0x294)]),this[_0x64c95f(0x1ed)][_0x64c95f(0x31e)](UniverInstanceType[_0x64c95f(0x36e)]))[_0x64c95f(0x1e6)](takeUntil(this[_0x64c95f(0x2d2)]))[_0x64c95f(0x36d)](_0x5ef996=>{const _0x229842=_0x64c95f,_0x19eb97=_0x5ef996[_0x229842(0x1ce)](),_0x2a1431=this[_0x229842(0x3ab)]['get'](_0x19eb97);_0x2a1431&&(_0x2a1431[_0x229842(0x272)](),this[_0x229842(0x3ab)][_0x229842(0x282)](_0x19eb97));});}async[_0x385291(0x395)](_0x2bcec4){const _0x3c31f6=_0x385291,_0x90487e=await this[_0x3c31f6(0x1fa)][_0x3c31f6(0x1b4)](_0x2bcec4),_0x13558c=this[_0x3c31f6(0x1b9)][_0x3c31f6(0x33c)](SheetCollabCursorEntity,_0x2bcec4,_0x90487e);return _0x13558c['init'](),_0x13558c;}async[_0x385291(0x3aa)](_0x2f590a){const _0x4d66a4=_0x385291,_0x2f9cb5=await this[_0x4d66a4(0x1fa)][_0x4d66a4(0x1b4)](_0x2f590a),_0x21f835=this['_injector'][_0x4d66a4(0x33c)](DocCollabCursorEntity,_0x2f590a,_0x2f9cb5);return _0x21f835[_0x4d66a4(0x1d1)](),_0x21f835;}};CollabCursorController=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,Inject(CollaborationSessionService))],CollabCursorController);const COLLAB_CURSOR_LABEL_HEIGHT=0x14,COLLAB_CURSOR_LABEL_MAX_WIDTH=0xc8,COLLAB_CURSOR_LABEL_TEXT_PADDING_LR=0x4,COLLAB_CURSOR_LABEL_TEXT_PADDING_TB=0x5;function drawBubble(_0x5df04a,_0x4232f6){const _0x1b2a54=_0x385291;var _0xd6b3e4,_0x2d5ae6,_0x229cb9;let {radius:_0x2ee3fc,width:_0x5098cf,height:_0x3e6e9b}=_0x4232f6;_0x2ee3fc=(_0xd6b3e4=_0x2ee3fc)!==null&&_0xd6b3e4!==void 0x0?_0xd6b3e4:0x0,_0x5098cf=(_0x2d5ae6=_0x5098cf)!==null&&_0x2d5ae6!==void 0x0?_0x2d5ae6:0x1e,_0x3e6e9b=(_0x229cb9=_0x3e6e9b)!==null&&_0x229cb9!==void 0x0?_0x229cb9:0x1e;let _0x5a112a=0x0,_0x4816e6=0x0,_0x172540=0x0;_0x5a112a=_0x4816e6=_0x172540=Math[_0x1b2a54(0x29d)](_0x2ee3fc,_0x5098cf/0x2,_0x3e6e9b/0x2),_0x5df04a['beginPath'](),_0x5df04a[_0x1b2a54(0x3c7)](_0x5a112a,0x0),_0x5df04a['lineTo'](_0x5098cf-_0x4816e6,0x0),_0x5df04a[_0x1b2a54(0x39b)](_0x5098cf-_0x4816e6,_0x4816e6,_0x4816e6,Math['PI']*0x3/0x2,0x0,![]),_0x5df04a[_0x1b2a54(0x26f)](_0x5098cf,_0x3e6e9b-_0x172540),_0x5df04a['arc'](_0x5098cf-_0x172540,_0x3e6e9b-_0x172540,_0x172540,0x0,Math['PI']/0x2,![]),_0x5df04a[_0x1b2a54(0x26f)](0x0,_0x3e6e9b),_0x5df04a['lineTo'](0x0,_0x5a112a),_0x5df04a[_0x1b2a54(0x39b)](_0x5a112a,_0x5a112a,_0x5a112a,Math['PI'],Math['PI']*0x3/0x2,![]),_0x5df04a[_0x1b2a54(0x27a)]();if(_0x4232f6[_0x1b2a54(0x2f3)]){_0x5df04a[_0x1b2a54(0x36f)](),_0x5df04a[_0x1b2a54(0x1e0)]=_0x4232f6['fill'];if(_0x4232f6['fillRule']==='evenodd')_0x5df04a[_0x1b2a54(0x2f3)](_0x1b2a54(0x2ee));else _0x5df04a[_0x1b2a54(0x2f3)]();_0x5df04a[_0x1b2a54(0x22a)]();}}var TextBubbleShape=class TextBubbleShape extends Shape{constructor(_0x38b5c1,_0x14e3da){const _0x1a5ceb=_0x385291;super(_0x38b5c1,_0x14e3da),_defineProperty(this,_0x1a5ceb(0x252),void 0x0),_defineProperty(this,'text',void 0x0),this[_0x1a5ceb(0x252)]=_0x14e3da===null||_0x14e3da===void 0x0?void 0x0:_0x14e3da[_0x1a5ceb(0x252)],this['text']=_0x14e3da===null||_0x14e3da===void 0x0?void 0x0:_0x14e3da['text'];}static['drawWith'](_0x322817,_0x4857cc){const _0x4cc909=_0x385291,{text:_0x47db16,color:_0x342f10}=_0x4857cc;_0x322817[_0x4cc909(0x36f)](),_0x322817[_0x4cc909(0x33d)]=_0x4cc909(0x2ca);const _0x3c9833=_0x322817[_0x4cc909(0x3a3)](_0x47db16)[_0x4cc909(0x286)];drawBubble(_0x322817,{'height':0x14,'radius':0x4,'width':Math[_0x4cc909(0x29d)](_0x3c9833+0x2*0x4,0xc8),'fill':_0x342f10,'evented':![]}),_0x322817[_0x4cc909(0x1e0)]=_0x4cc909(0x277);const _0x1564a8=0x4,_0x5b7294=0x14-0x5,_0x1bff9f=0xc8-0x2*0x4;if(_0x3c9833>_0x1bff9f){let _0x51b278='',_0x3564ad=0x0;for(const _0x3707e9 of _0x47db16){const _0x2cfb6f=_0x322817['measureText'](_0x3707e9)['width'];if(_0x3564ad+_0x2cfb6f<=_0x1bff9f-_0x322817[_0x4cc909(0x3a3)](_0x4cc909(0x2dc))['width'])_0x51b278+=_0x3707e9,_0x3564ad+=_0x2cfb6f;else{_0x51b278+='...';break;}}_0x322817[_0x4cc909(0x324)](_0x51b278,_0x1564a8,_0x5b7294);}else _0x322817[_0x4cc909(0x324)](_0x47db16,_0x1564a8,_0x5b7294);_0x322817[_0x4cc909(0x22a)]();}['_draw'](_0x35742e){const _0x4bf97b=_0x385291;TextBubbleShape[_0x4bf97b(0x2bf)](_0x35742e,this);}};const COLLAB_TEXT_ANCHOR_KEY_PREFIX=_0x385291(0x3a9),COLLAB_TEXT_RANGE_KEY_PREFIX=_0x385291(0x33b),COLLAB_RECT_RANGE_KEY_PREFIX='collab-rect-range-',ID_LENGTH=0x6,COLLAB_TEXT_ANCHOR_WIDTH=1.5,COLLAB_TEXT_ANCHOR_DOT_WIDTH=0x4,SELECTION_CONTROL_BORDER_BUFFER_WIDTH=1.5,SELECTION_CONTROL_BORDER_BUFFER_COLOR='rgba(255,\x20255,\x20255,\x200.01)';var DocCollabCursor=class{constructor(_0xc17547,_0x638505,_0x561a35,_0x29e4d0){const _0x2c94ab=_0x385291;this[_0x2c94ab(0x216)]=_0xc17547,this[_0x2c94ab(0x1fc)]=_0x638505,this[_0x2c94ab(0x219)]=_0x561a35,this[_0x2c94ab(0x349)]=_0x29e4d0,_defineProperty(this,'_shapes',[]),_defineProperty(this,'_anchor',null),_defineProperty(this,'_textBubble',null),_defineProperty(this,_0x2c94ab(0x3b7),null),_defineProperty(this,_0x2c94ab(0x236),null),_defineProperty(this,'_eventUnsubscribe',null),this[_0x2c94ab(0x301)]();}set['_hover'](_0x9ca6f4){const _0x305d82=_0x385291;_0x9ca6f4?(this['_anchorDot']&&this[_0x305d82(0x3b7)][_0x305d82(0x350)](),this[_0x305d82(0x25e)]&&this[_0x305d82(0x25e)]['show']()):(this['_anchorDot']&&this[_0x305d82(0x3b7)]['show'](),this[_0x305d82(0x25e)]&&this['_textBubble'][_0x305d82(0x350)]());}[_0x385291(0x272)](){const _0x3755dc=_0x385291;for(const _0x171c26 of this[_0x3755dc(0x339)])_0x171c26['dispose']();if(this[_0x3755dc(0x25e)])this['_textBubble']['dispose']();if(this[_0x3755dc(0x3b7)])this[_0x3755dc(0x3b7)]['dispose']();if(this[_0x3755dc(0x2fb)])this[_0x3755dc(0x2fb)][_0x3755dc(0x272)]();if(this['_eventUnsubscribe'])this[_0x3755dc(0x3c4)]();}[_0x385291(0x301)](){const _0x2df18b=_0x385291,{_docSkeleton:_0xca1818,_document:_0x38d04c}=this,{color:_0x2cd706,name:_0x52e10f,ranges:_0x4fd14c}=this['_cursor'],_0x21d571=_0x38d04c[_0x2df18b(0x378)](),{docsLeft:_0x18f86a,docsTop:_0x49c6a6}=_0x21d571,_0x17486e=new NodePositionConvertToCursor(_0x21d571,_0xca1818);for(const {startOffset:_0x336ceb,endOffset:_0x1c068f,rangeType:_0x1ca6aa,segmentId:_0x255c62,segmentPage:_0x122bf9,collapsed:_0x1d2655,isActive:_0x244f32}of _0x4fd14c){const _0x2a69fc=_0xca1818[_0x2df18b(0x1b2)](_0x336ceb,!![],_0x255c62,_0x122bf9);let _0x14ba19=_0xca1818[_0x2df18b(0x1b2)](_0x1c068f,!![],_0x255c62,_0x122bf9);if(_0x14ba19==null)_0x14ba19=_0xca1818[_0x2df18b(0x1b2)](_0x1c068f-0x1,![],_0x255c62,_0x122bf9);if(_0x244f32){const {contentBoxPointGroup:_0x16b0a9}=_0x17486e['getRangePointData'](_0x14ba19,_0x14ba19);if(_0x16b0a9[_0x2df18b(0x287)]===0x0)continue;this[_0x2df18b(0x1dd)](_0x2cd706,_0x16b0a9,_0x18f86a,_0x49c6a6,_0x52e10f),this[_0x2df18b(0x3c4)]=this[_0x2df18b(0x34a)]();}if(_0x2a69fc&&_0x14ba19){if(_0x1ca6aa===DOC_RANGE_TYPE['RECT']){var _0xf275d0;const {pointGroup:_0x18c865}=(_0xf275d0=new NodePositionConvertToRectRange(_0x21d571,_0xca1818)[_0x2df18b(0x314)](_0x2a69fc,_0x14ba19))!==null&&_0xf275d0!==void 0x0?_0xf275d0:{};if(_0x18c865==null||_0x18c865[_0x2df18b(0x287)]===0x0)continue;this[_0x2df18b(0x375)](_0x2cd706,_0x18c865,_0x18f86a,_0x49c6a6);}else{if(!_0x1d2655){const {borderBoxPointGroup:_0x187df6}=_0x17486e['getRangePointData'](_0x2a69fc,_0x14ba19);if(_0x187df6['length']===0x0)continue;this[_0x2df18b(0x307)](_0x2cd706,_0x187df6,_0x18f86a,_0x49c6a6);}}}}}[_0x385291(0x1dd)](_0x3d09f2,_0x44fd12,_0x36b6d6,_0x5b2e1e,_0x14c7bc){const _0x1bdab1=_0x385291,{left:_0x5867ed,top:_0x3c8594,height:_0x5b8735}=this[_0x1bdab1(0x366)](_0x44fd12),_0xfbcaad=SELECTION_CONTROL_BORDER_BUFFER_WIDTH/this[_0x1bdab1(0x259)](),_0x229234=new Rect(COLLAB_TEXT_ANCHOR_KEY_PREFIX+generateRandomId(ID_LENGTH),{'left':_0x5867ed+_0x36b6d6-_0xfbcaad,'top':_0x3c8594+_0x5b2e1e,'height':_0x5b8735,'width':COLLAB_TEXT_ANCHOR_WIDTH,'fill':_0x3d09f2||getColor(COLORS['black'],0x0),'strokeWidth':_0xfbcaad,'stroke':SELECTION_CONTROL_BORDER_BUFFER_COLOR,'evented':!![]});this[_0x1bdab1(0x2fb)]=_0x229234,this[_0x1bdab1(0x1fc)][_0x1bdab1(0x3cc)](_0x229234,TEXT_RANGE_LAYER_INDEX);const _0x4c9b44=new Rect(COLLAB_TEXT_ANCHOR_KEY_PREFIX+generateRandomId(ID_LENGTH),{'left':_0x5867ed+_0x36b6d6-_0xfbcaad,'top':_0x3c8594+_0x5b2e1e-COLLAB_TEXT_ANCHOR_DOT_WIDTH/0x2,'height':COLLAB_TEXT_ANCHOR_DOT_WIDTH,'width':COLLAB_TEXT_ANCHOR_DOT_WIDTH,'fill':_0x3d09f2||getColor(COLORS[_0x1bdab1(0x2dd)],0x0),'strokeWidth':0x0,'stroke':_0x3d09f2||getColor(COLORS['black'],0x0),'evented':![]});this[_0x1bdab1(0x3b7)]=_0x4c9b44,this['_scene'][_0x1bdab1(0x3cc)](_0x4c9b44,TEXT_RANGE_LAYER_INDEX);const _0x2af18e=new TextBubbleShape(COLLAB_TEXT_ANCHOR_KEY_PREFIX+generateRandomId(ID_LENGTH),{'left':_0x5867ed+_0x36b6d6-_0xfbcaad,'top':_0x3c8594+_0x5b2e1e-0x14,'text':_0x14c7bc,'color':_0x3d09f2});this['_textBubble']=_0x2af18e,this[_0x1bdab1(0x1fc)]['addObject'](_0x2af18e,TEXT_RANGE_LAYER_INDEX),this[_0x1bdab1(0x308)]=![];}[_0x385291(0x34a)](){const _0xe5fc08=_0x385291,_0x1b9c4f=this[_0xe5fc08(0x2fb)][_0xe5fc08(0x3ad)][_0xe5fc08(0x275)](()=>{const _0x45f074=_0xe5fc08;this[_0x45f074(0x308)]=!![];}),_0x2fc846=this['_anchor']['onPointerLeave$'][_0xe5fc08(0x275)](()=>{const _0xc7fb2=_0xe5fc08;if(this[_0xc7fb2(0x236)])clearTimeout(this[_0xc7fb2(0x236)]);this[_0xc7fb2(0x236)]=setTimeout(()=>{this['_hover']=![];},0x7d0);});return()=>{const _0x2ef363=_0xe5fc08;_0x1b9c4f[_0x2ef363(0x2a5)](),_0x2fc846[_0x2ef363(0x2a5)]();};}['_drawTextRange'](_0x1c0f2f,_0x306d0d,_0x130b30,_0x4a74b7){const _0x2006b4=_0x385291,_0x1633aa=0.2,_0x40c0ed=new ColorKit(_0x1c0f2f)[_0x2006b4(0x3a0)](_0x1633aa)['toRgbString'](),_0x52b791=new RegularPolygon(COLLAB_TEXT_RANGE_KEY_PREFIX+generateRandomId(ID_LENGTH),{'pointsGroup':_0x306d0d,'fill':_0x40c0ed||getColor(COLORS[_0x2006b4(0x2dd)],_0x1633aa),'left':_0x130b30,'top':_0x4a74b7,'evented':![],'debounceParentDirty':![]});this[_0x2006b4(0x339)]['push'](_0x52b791),this['_scene'][_0x2006b4(0x3cc)](_0x52b791,TEXT_RANGE_LAYER_INDEX);}[_0x385291(0x375)](_0x19283f,_0x3fc6a0,_0x2e8125,_0x4bc067){const _0x5129fa=_0x385291,_0x1a79c1=0.2,_0x399341=new ColorKit(_0x19283f)['setAlpha'](_0x1a79c1)['toRgbString'](),_0x54787c=new RegularPolygon(COLLAB_RECT_RANGE_KEY_PREFIX+generateRandomId(ID_LENGTH),{'pointsGroup':_0x3fc6a0,'fill':_0x399341||getColor(COLORS[_0x5129fa(0x2dd)],_0x1a79c1),'left':_0x2e8125,'top':_0x4bc067,'evented':![],'debounceParentDirty':![]});this[_0x5129fa(0x339)][_0x5129fa(0x1fb)](_0x54787c),this[_0x5129fa(0x1fc)]['addObject'](_0x54787c,TEXT_RANGE_LAYER_INDEX);}['_getAnchorBounding'](_0x56c966){const _0x41b331=_0x56c966[0x0],_0x452b05=_0x41b331[0x0],_0x583ac1=_0x41b331[0x2],{x:_0x5acf3a,y:_0x36ee11}=_0x452b05,{x:_0x7c584f,y:_0x5989ff}=_0x583ac1;return{'left':_0x5acf3a,'top':_0x36ee11,'width':_0x7c584f-_0x5acf3a,'height':_0x5989ff-_0x36ee11};}[_0x385291(0x259)](){const _0x228f2d=_0x385291,{scaleX:_0x62b403,scaleY:_0x3e888a}=this[_0x228f2d(0x1fc)][_0x228f2d(0x26e)]();return Math[_0x228f2d(0x20b)](_0x62b403,_0x3e888a);}};let DocCollabCursorRenderController=class DocCollabCursorRenderController extends RxDisposable{constructor(_0x54366a,_0x5a390c,_0x5bd3e5,_0x45bc8e,_0x5a7157){const _0x3f9f0a=_0x385291;super(),this['_context']=_0x54366a,this[_0x3f9f0a(0x35f)]=_0x5a390c,this[_0x3f9f0a(0x35e)]=_0x5bd3e5,this[_0x3f9f0a(0x2cc)]=_0x45bc8e,this[_0x3f9f0a(0x3a6)]=_0x5a7157,_defineProperty(this,_0x3f9f0a(0x2d9),[]),_defineProperty(this,_0x3f9f0a(0x385),[]),this[_0x3f9f0a(0x1d2)]();}['_init'](){const _0x532737=_0x385291,_0x3d266d=this[_0x532737(0x347)][_0x532737(0x34d)],_0x3a92df=this[_0x532737(0x35f)];this['disposeWithMe'](combineLatest([this[_0x532737(0x35e)]['getCollabCursors$'](_0x3d266d),this[_0x532737(0x3a6)]['currentTheme$']])['pipe'](map(([_0x30ff03,_0xacc696])=>({'skeleton':_0x3a92df[_0x532737(0x289)](),'cursors':[..._0x30ff03[_0x532737(0x38b)]()][_0x532737(0x3b9)](_0x5207ca=>({..._0x5207ca,'color':this[_0x532737(0x3a6)][_0x532737(0x257)](_0x5207ca[_0x532737(0x252)])}))})))['subscribe'](_0x28bea8=>{const _0x1960cb=_0x532737;this['_removeCollabCursors']();if(_0x28bea8){const {skeleton:_0x5613ee,cursors:_0x3e1401}=_0x28bea8;this[_0x1960cb(0x32d)](_0x5613ee,_0x3e1401);}})),this[_0x532737(0x1c2)](),this[_0x532737(0x2f6)]();}[_0x385291(0x32d)](_0x4f9006,_0x55d147){const _0x2545cc=_0x385291,{scene:_0x417530,mainComponent:_0x45f3c0}=this[_0x2545cc(0x347)],_0x4f8d93=_0x55d147[_0x2545cc(0x24f)](_0x3232db=>new DocCollabCursor(_0x3232db,_0x417530,_0x4f9006,_0x45f3c0));this['_cursorShapes']=_0x4f8d93,this[_0x2545cc(0x385)]=_0x55d147;}[_0x385291(0x354)](){const _0x6c750d=_0x385291;this[_0x6c750d(0x397)]();const {scene:_0x533227,mainComponent:_0x3db5a1}=this['_context'],_0x22eb58=this[_0x6c750d(0x35f)][_0x6c750d(0x289)](),_0x4c1dbe=this[_0x6c750d(0x385)][_0x6c750d(0x24f)](_0x204f03=>new DocCollabCursor(_0x204f03,_0x533227,_0x22eb58,_0x3db5a1));this[_0x6c750d(0x2d9)]=_0x4c1dbe;}[_0x385291(0x397)](){const _0x24052c=_0x385291;this[_0x24052c(0x2d9)][_0x24052c(0x1ef)](_0xa867f1=>_0xa867f1[_0x24052c(0x272)]()),this['_cursorShapes']=[];}[_0x385291(0x2f6)](){const _0x18ad3d=_0x385291,_0x29efd7=[SetDocZoomRatioOperation['id']];this[_0x18ad3d(0x21f)](this['_commandService']['onCommandExecuted'](_0x1409b3=>{const _0x541973=_0x18ad3d;if(_0x29efd7[_0x541973(0x27b)](_0x1409b3['id'])&&_0x1409b3[_0x541973(0x1db)]['unitId']===this[_0x541973(0x347)][_0x541973(0x34d)])this[_0x541973(0x354)]();}));}[_0x385291(0x1c2)](){const _0x2fb2c6=_0x385291;this[_0x2fb2c6(0x21f)](fromEventSubject(this['_context'][_0x2fb2c6(0x1f1)][_0x2fb2c6(0x39c)])[_0x2fb2c6(0x1e6)](_0x38f1c2(_0x1e3fd6=>_0x1e3fd6['type']===TRANSFORM_CHANGE_OBSERVABLE_TYPE[_0x2fb2c6(0x30f)]),throttleTime(0x10))['subscribe'](()=>{const _0x132dad=_0x2fb2c6;this[_0x132dad(0x354)]();}));}};DocCollabCursorRenderController=__decorate([__decorateParam(0x1,Inject(DocSkeletonManagerService)),__decorateParam(0x2,Inject(CollabCursorController)),__decorateParam(0x3,ICommandService),__decorateParam(0x4,Inject(ThemeService))],DocCollabCursorRenderController);const SHEET_COLLAB_CURSOR_BORDER_WIDTH=1.5;var SheetCollabCursorShape=class extends Shape{constructor(_0x337f12,_0x39b1ef){const _0x32feee=_0x385291;super(_0x337f12,_0x39b1ef),_defineProperty(this,'_color',void 0x0),_defineProperty(this,_0x32feee(0x3b5),![]),_defineProperty(this,_0x32feee(0x316),void 0x0),_defineProperty(this,_0x32feee(0x38a),''),_defineProperty(this,'_labelPosition','top'),_defineProperty(this,_0x32feee(0x2a2),void 0x0),_defineProperty(this,_0x32feee(0x2d1),void 0x0),_defineProperty(this,_0x32feee(0x242),void 0x0),_defineProperty(this,_0x32feee(0x2b5),0x4),_defineProperty(this,_0x32feee(0x20a),void 0x0),_defineProperty(this,'_blinkIntervalTimer',void 0x0),_defineProperty(this,_0x32feee(0x263),!![]),_defineProperty(this,_0x32feee(0x327),0x0);if(_0x39b1ef){var _0x39af0f;this[_0x32feee(0x345)](_0x39b1ef);if(_0x39b1ef['highlight']&&((_0x39af0f=_0x39b1ef[_0x32feee(0x34b)])!==null&&_0x39af0f!==void 0x0?_0x39af0f:this[_0x32feee(0x2b5)])){var _0x3e485e;this['_startBlinking']((_0x3e485e=_0x39b1ef[_0x32feee(0x34b)])!==null&&_0x3e485e!==void 0x0?_0x3e485e:this[_0x32feee(0x2b5)]);}}this[_0x32feee(0x3ad)][_0x32feee(0x275)](()=>this[_0x32feee(0x345)]({'hovered':!![]})),this[_0x32feee(0x328)]['subscribeEvent'](()=>this[_0x32feee(0x345)]({'hovered':![]}));}[_0x385291(0x2f2)](_0x516604){const _0x541a79=_0x385291;this[_0x541a79(0x327)]=_0x516604;}['setShapeProps'](_0x4c7be2){const _0x259379=_0x385291;var _0x544a6d,_0x6b4c5e,_0x14830f,_0x187f35,_0x2b2035,_0x4eb01a,_0x56066c;this[_0x259379(0x3a7)]=(_0x544a6d=_0x4c7be2[_0x259379(0x252)])!==null&&_0x544a6d!==void 0x0?_0x544a6d:this[_0x259379(0x3a7)],this[_0x259379(0x3b5)]=(_0x6b4c5e=_0x4c7be2[_0x259379(0x223)])!==null&&_0x6b4c5e!==void 0x0?_0x6b4c5e:this[_0x259379(0x3b5)],this[_0x259379(0x316)]=(_0x14830f=_0x4c7be2[_0x259379(0x23e)])!==null&&_0x14830f!==void 0x0?_0x14830f:this['_range'],this['_name']=(_0x187f35=_0x4c7be2[_0x259379(0x2ed)])!==null&&_0x187f35!==void 0x0?_0x187f35:this[_0x259379(0x38a)],this[_0x259379(0x280)]=(_0x2b2035=_0x4c7be2[_0x259379(0x274)])!==null&&_0x2b2035!==void 0x0?_0x2b2035:this['_labelPosition'],this[_0x259379(0x2a2)]=(_0x4eb01a=_0x4c7be2['backgroundColor'])!==null&&_0x4eb01a!==void 0x0?_0x4eb01a:this[_0x259379(0x2a2)],this[_0x259379(0x2d1)]=(_0x56066c=_0x4c7be2[_0x259379(0x3ac)])!==null&&_0x56066c!==void 0x0?_0x56066c:this[_0x259379(0x2d1)];if(_0x4c7be2[_0x259379(0x34b)]!==void 0x0)this[_0x259379(0x2b5)]=_0x4c7be2['highlightSecond'];if(_0x4c7be2['highlight']!==void 0x0)this[_0x259379(0x242)]=_0x4c7be2[_0x259379(0x2ea)];if(_0x4c7be2[_0x259379(0x268)]!==void 0x0)this[_0x259379(0x327)]=_0x4c7be2['offsetY'];this[_0x259379(0x355)]({'width':_0x4c7be2['width'],'height':_0x4c7be2[_0x259379(0x31c)]});}[_0x385291(0x2ac)](_0x178929){const _0x1d75b9=_0x385291,{row:_0x116785,column:_0x429c4d}=_0x178929;if(_0x116785>=this[_0x1d75b9(0x316)][_0x1d75b9(0x23d)]&&_0x116785<=this['_range']['endRow']&&_0x429c4d>=this[_0x1d75b9(0x316)][_0x1d75b9(0x2e3)]&&_0x429c4d<=this[_0x1d75b9(0x316)][_0x1d75b9(0x248)]){this[_0x1d75b9(0x345)]({'hovered':!![]});return;}this['setShapeProps']({'hovered':![]});}[_0x385291(0x21d)](_0x2c728e){const _0x14388a=_0x385291;this[_0x14388a(0x234)](),this[_0x14388a(0x263)]=!![],this[_0x14388a(0x28b)]=window[_0x14388a(0x273)](()=>{const _0x24122c=_0x14388a;this[_0x24122c(0x263)]=!this[_0x24122c(0x263)],this[_0x24122c(0x1dc)](!![]);},0x1f4),this['_blinkTimer']=window[_0x14388a(0x1b8)](()=>{const _0xf01b4a=_0x14388a;this[_0xf01b4a(0x234)](),this[_0xf01b4a(0x263)]=!![],this['makeDirty'](!![]);},_0x2c728e*0x3e8);}[_0x385291(0x234)](){const _0x5790c0=_0x385291;this['_blinkIntervalTimer']&&(window[_0x5790c0(0x3c3)](this[_0x5790c0(0x28b)]),this[_0x5790c0(0x28b)]=void 0x0),this[_0x5790c0(0x20a)]&&(window[_0x5790c0(0x2cf)](this[_0x5790c0(0x20a)]),this[_0x5790c0(0x20a)]=void 0x0);}[_0x385291(0x283)](_0x2dc1fe){return![];}[_0x385291(0x272)](){const _0x6c26d1=_0x385291;this[_0x6c26d1(0x234)](),super['dispose']();}[_0x385291(0x37f)](_0x3e9b2f){const _0x1ad36e=_0x385291;let _0x1a2c18=this['_color'],_0x55b112=this['_backgroundColor'];this[_0x1ad36e(0x242)]&&!this[_0x1ad36e(0x263)]&&(_0x1a2c18=this[_0x1ad36e(0x330)](this[_0x1ad36e(0x3a7)]),_0x55b112=this[_0x1ad36e(0x2a2)]?this[_0x1ad36e(0x330)](this[_0x1ad36e(0x2a2)]):void 0x0);Rect[_0x1ad36e(0x2bf)](_0x3e9b2f,{'width':this[_0x1ad36e(0x286)],'height':this[_0x1ad36e(0x31c)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x1a2c18,'evented':![],'fill':_0x55b112});if(this[_0x1ad36e(0x3b5)]||this[_0x1ad36e(0x2d1)]){var _0x238a3d;_0x3e9b2f[_0x1ad36e(0x36f)](),_0x3e9b2f[_0x1ad36e(0x2a6)](0x1,0x0,0x0,0x1,this[_0x1ad36e(0x286)],(this[_0x1ad36e(0x280)]===_0x1ad36e(0x30a)?0x0:-0x14)+((_0x238a3d=this[_0x1ad36e(0x327)])!==null&&_0x238a3d!==void 0x0?_0x238a3d:0x0)),TextBubbleShape[_0x1ad36e(0x2bf)](_0x3e9b2f,{'text':this[_0x1ad36e(0x38a)],'color':_0x1a2c18}),_0x3e9b2f[_0x1ad36e(0x22a)]();}}['_getLighterColor'](_0x19a503){const _0x2d33d9=_0x385291;if(_0x19a503[_0x2d33d9(0x220)]('#'))return _0x2d33d9(0x25c)+Number[_0x2d33d9(0x1ad)](_0x19a503['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x2d33d9(0x1ad)](_0x19a503[_0x2d33d9(0x28e)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x19a503[_0x2d33d9(0x28e)](0x5,0x7),0x10)+_0x2d33d9(0x3c8);if(_0x19a503[_0x2d33d9(0x220)](_0x2d33d9(0x27e)))return _0x19a503['replace'](/[\d.]+\)$/g,_0x2d33d9(0x229));if(_0x19a503[_0x2d33d9(0x220)](_0x2d33d9(0x343)))return _0x19a503[_0x2d33d9(0x1eb)]('rgb','rgba')['replace'](')',_0x2d33d9(0x3c8));return _0x19a503;}};const SHEETS_COLLABORATION_CURSOR_Z_INDEX=0x1389;let SheetCollabCursorRenderController=class SheetCollabCursorRenderController extends RxDisposable{constructor(_0x587b99,_0x1f0dd6,_0x472134,_0x11b3c1){const _0x276ff6=_0x385291;super(),this['_context']=_0x587b99,this[_0x276ff6(0x1d8)]=_0x1f0dd6,this[_0x276ff6(0x35e)]=_0x472134,this[_0x276ff6(0x3a6)]=_0x11b3c1,_defineProperty(this,_0x276ff6(0x385),new Set()),_defineProperty(this,_0x276ff6(0x264),null),this[_0x276ff6(0x1d2)]();}[_0x385291(0x1d2)](){const _0x274edc=_0x385291;this['_sheetSkeletonManagerService'][_0x274edc(0x1ca)][_0x274edc(0x1e6)](_0x3d2c5f(this['dispose$']),_0x4e4672(_0x487bde=>{const _0x5bfcec=_0x274edc;if(_0x487bde){const _0x42812e=_0x487bde['sheetId'];return combineLatest(this[_0x5bfcec(0x35e)][_0x5bfcec(0x244)](this['_context'][_0x5bfcec(0x34d)]),this[_0x5bfcec(0x3a6)][_0x5bfcec(0x1d5)])[_0x5bfcec(0x1e6)](map(([_0x2fefab,_0x44fcda])=>{const _0x428e7d=new Map();return _0x2fefab['forEach']((_0x3d929f,_0x242bfa)=>{const _0x180831=_0x2feb;if(_0x3d929f[_0x180831(0x337)]===_0x42812e){const _0x149dca={..._0x3d929f};_0x149dca[_0x180831(0x252)]=this[_0x180831(0x3a6)][_0x180831(0x257)](_0x3d929f[_0x180831(0x252)]),_0x428e7d[_0x180831(0x222)](_0x242bfa,_0x149dca);}}),{'skeleton':_0x487bde,'cursors':_0x428e7d};}));}return of({'skeleton':null,'cursors':new Map()});}))[_0x274edc(0x36d)](({skeleton:_0x8bc4ab,cursors:_0x4155c4})=>{const _0x1a76ca=_0x274edc;this[_0x1a76ca(0x397)]();if(_0x8bc4ab)this['_updateCollabCursors'](_0x8bc4ab,_0x4155c4);}),this[_0x274edc(0x1d8)][_0x274edc(0x1ca)][_0x274edc(0x36d)](_0x333a2b=>{const _0x5676c1=_0x274edc;if(_0x333a2b==null)return;const {skeleton:_0x5d911f}=_0x333a2b,{scene:_0x213aad}=this[_0x5676c1(0x347)];_0x213aad['onPointerMove$'][_0x5676c1(0x275)](debounce(_0x21132d=>{const _0x41e462=_0x5676c1;var _0x632915,_0x578ac0;const {offsetX:_0xa1a9ba,offsetY:_0x3f7a0f}=_0x21132d,{x:_0x334d4c,y:_0x3fa057}=_0x213aad[_0x41e462(0x2cb)](Vector2[_0x41e462(0x368)]([_0xa1a9ba,_0x3f7a0f])),{scaleX:_0x3e4617,scaleY:_0x50c07c}=_0x213aad[_0x41e462(0x26e)](),_0x55cdaf=_0x213aad['getViewport'](SHEET_VIEWPORT_KEY[_0x41e462(0x290)]),_0x40d8c4=_0x213aad[_0x41e462(0x249)](Vector2[_0x41e462(0x368)]([_0x334d4c,_0x3fa057]),_0x55cdaf),_0x26de79=_0x5d911f['getCellPositionByOffset'](_0xa1a9ba,_0x3f7a0f,_0x3e4617,_0x50c07c,_0x40d8c4);if(((_0x632915=this[_0x41e462(0x264)])===null||_0x632915===void 0x0?void 0x0:_0x632915[_0x41e462(0x1f9)])===_0x26de79[_0x41e462(0x1f9)]&&((_0x578ac0=this[_0x41e462(0x264)])===null||_0x578ac0===void 0x0?void 0x0:_0x578ac0[_0x41e462(0x313)])===_0x26de79[_0x41e462(0x313)])return;this['_cursors']['forEach'](_0x110328=>{const _0x54141b=_0x41e462;_0x110328[_0x54141b(0x2ac)](_0x26de79);});},0x64));});}['_updateCollabCursors'](_0x3d7375,_0x571cf5){const _0x282ab8=_0x385291,_0xae31c8=this[_0x282ab8(0x1d8)][_0x282ab8(0x205)]();if(!_0xae31c8)return;const _0x212e35=this[_0x282ab8(0x1be)]();if(!_0x212e35)return;this[_0x282ab8(0x385)][_0x282ab8(0x1ef)](_0x40db75=>{const _0x1a11db=_0x282ab8;_0x40db75[_0x1a11db(0x1dc)]();});const {scene:_0x3fe85c}=_0x212e35,_0x5ea701=mergeCollabCursors(Array[_0x282ab8(0x210)](_0x571cf5[_0x282ab8(0x38b)]()))[_0x282ab8(0x24f)](_0x400f2c=>{const _0x41fb16=_0x282ab8,{color:_0x2ff65b,range:_0x50e09c,name:_0x11d24a,selection:_0x5e5fc1,sheetID:_0x156ff1}=_0x400f2c,{startColumn:_0x58a29e,startRow:_0x32ffdc,endColumn:_0x527869,endRow:_0x169d96}=_0x50e09c,_0x1e3915=getCoordByCell(_0x32ffdc,_0x58a29e,_0x3fe85c,_0xae31c8),_0x5cf4e3=getCoordByCell(_0x169d96,_0x527869,_0x3fe85c,_0xae31c8),{columnHeaderHeightAndMarginTop:_0x5f04d0}=_0xae31c8,{startX:_0x222422,startY:_0x454792}=_0x1e3915,{endX:_0x231865,endY:_0x3ff280}=_0x5cf4e3,_0x31fd8d=_0x231865-_0x222422,_0x13d02a=_0x3ff280-_0x454792;return new SheetCollabCursorShape(_0x11d24a,{'labelPosition':_0x454792-_0x5f04d0>=0x14?_0x41fb16(0x3c5):_0x41fb16(0x30a),'sheetID':_0x156ff1,'range':_0x50e09c,'color':_0x2ff65b,'name':_0x11d24a,'selection':_0x5e5fc1,'left':_0x222422,'top':_0x454792,'width':_0x31fd8d,'height':_0x13d02a,'evented':![],'zIndex':SHEETS_COLLABORATION_CURSOR_Z_INDEX});});_0x3fe85c[_0x282ab8(0x1e2)](_0x5ea701,0x1),this[_0x282ab8(0x385)]=new Set(_0x5ea701);}[_0x385291(0x397)](){const _0x19630b=_0x385291;var _0x9c5a12;(_0x9c5a12=this[_0x19630b(0x385)])===null||_0x9c5a12===void 0x0||_0x9c5a12[_0x19630b(0x1ef)](_0x58fc28=>_0x58fc28['dispose']());}[_0x385291(0x1be)](){const _0x1f2ce7=_0x385291;return getSheetObject(this[_0x1f2ce7(0x347)][_0x1f2ce7(0x233)],this[_0x1f2ce7(0x347)]);}};SheetCollabCursorRenderController=__decorate([__decorateParam(0x1,Inject(SheetSkeletonManagerService)),__decorateParam(0x2,Inject(CollabCursorController)),__decorateParam(0x3,Inject(ThemeService))],SheetCollabCursorRenderController);function mergeCollabCursors(_0x4eb937){const _0x3d3a14=_0x385291,_0x1e5cb9=new Map();return _0x4eb937[_0x3d3a14(0x1ef)](_0x29ef2f=>{const _0x351475=_0x3d3a14;if(_0x1e5cb9[_0x351475(0x333)](_0x29ef2f['selection'])){const _0x37e9d1=_0x1e5cb9['get'](_0x29ef2f[_0x351475(0x1b1)]);_0x37e9d1[_0x351475(0x2ed)]+=',\x20'+_0x29ef2f[_0x351475(0x2ed)];}else _0x1e5cb9[_0x351475(0x222)](_0x29ef2f[_0x351475(0x1b1)],_0x29ef2f);}),Array[_0x3d3a14(0x210)](_0x1e5cb9[_0x3d3a14(0x38b)]());}let CollaborationClientUIController=class CollaborationClientUIController extends Disposable{constructor(_0x571883,_0x3067bf,_0x19740e,_0x177512,_0x40cfd3,_0x525ac5){const _0x295431=_0x385291;super(),this[_0x295431(0x3c0)]=_0x571883,this[_0x295431(0x3cb)]=_0x3067bf,this[_0x295431(0x1d3)]=_0x19740e,this[_0x295431(0x1af)]=_0x177512,this['_notificationService']=_0x40cfd3,this[_0x295431(0x1fd)]=_0x525ac5,this['_setupBeforeClosingHandler'](),this[_0x295431(0x22d)]();}['_setupBeforeClosingHandler'](){const _0x280223=_0x385291;this[_0x280223(0x21f)](this[_0x280223(0x3c0)][_0x280223(0x25a)](()=>{const _0x12f565=_0x280223;if(this[_0x12f565(0x3cb)][_0x12f565(0x369)]['size'])return this[_0x12f565(0x1fd)]['t'](_0x12f565(0x28f));}));}['_initEvent'](){const _0x4b58de=_0x385291;this[_0x4b58de(0x21f)](this['_collaborationUIEventService'][_0x4b58de(0x251)][_0x4b58de(0x36d)](_0x781573=>{const _0x3c9b7b=_0x4b58de;if(_0x781573['id']===CollaborationUIEventId[_0x3c9b7b(0x360)])this[_0x3c9b7b(0x1af)]['show']({'type':MessageType['Warning'],'content':this[_0x3c9b7b(0x1fd)]['t'](_0x3c9b7b(0x3b6))});if(_0x781573['id']===CollaborationUIEventId[_0x3c9b7b(0x2ad)])this[_0x3c9b7b(0x1af)][_0x3c9b7b(0x34c)]({'type':MessageType['Warning'],'content':this['_localeService']['t'](_0x3c9b7b(0x3c6))});if(_0x781573['id']===CollaborationUIEventId[_0x3c9b7b(0x332)])this['_notificationService'][_0x3c9b7b(0x34c)]({'title':this['_localeService']['t'](_0x3c9b7b(0x32b)),'content':this[_0x3c9b7b(0x1fd)]['t']('permission.content'),'type':'error','duration':0x0});if(_0x781573['id']===CollaborationUIEventId['CONFLICT'])this[_0x3c9b7b(0x1af)][_0x3c9b7b(0x34c)]({'type':MessageType[_0x3c9b7b(0x1a6)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x781573['data']+')'});if(_0x781573['id']===CollaborationUIEventId[_0x3c9b7b(0x29b)])this[_0x3c9b7b(0x1af)][_0x3c9b7b(0x34c)]({'type':MessageType[_0x3c9b7b(0x3ae)],'content':this[_0x3c9b7b(0x1fd)]['t'](_0x781573[_0x3c9b7b(0x1e5)]||'')});if(_0x781573['id']===CollaborationUIEventId[_0x3c9b7b(0x253)])this[_0x3c9b7b(0x1af)][_0x3c9b7b(0x34c)]({'type':MessageType[_0x3c9b7b(0x3ae)],'content':this[_0x3c9b7b(0x1fd)]['t'](_0x3c9b7b(0x2ab))});if(_0x781573['id']===CollaborationUIEventId['SOCKET_FAILED'])this[_0x3c9b7b(0x1af)]['show']({'type':MessageType[_0x3c9b7b(0x1a6)],'content':this[_0x3c9b7b(0x1fd)]['t'](_0x3c9b7b(0x30b))});if(_0x781573['id']===CollaborationUIEventId[_0x3c9b7b(0x1e9)])this[_0x3c9b7b(0x1af)][_0x3c9b7b(0x34c)]({'type':MessageType['Error'],'content':this[_0x3c9b7b(0x1fd)]['t']('session.collaboration-timeout')});}));}};CollaborationClientUIController=__decorate([__decorateParam(0x0,IBeforeCloseService),__decorateParam(0x1,ILocalCacheService),__decorateParam(0x2,Inject(CollaborationUIEventService)),__decorateParam(0x3,IMessageService),__decorateParam(0x4,INotificationService),__decorateParam(0x5,Inject(LocaleService))],CollaborationClientUIController);const PLUGIN_CONFIG_KEY=_0x385291(0x389),configSymbol=Symbol(PLUGIN_CONFIG_KEY),defaultPluginConfig={};let DocTransformIMECacheService=class DocTransformIMECacheService{constructor(_0x4838c9,_0x3e855a){const _0x29b79b=_0x385291;this['_transformService']=_0x4838c9,this[_0x29b79b(0x211)]=_0x3e855a;}[_0x385291(0x1d0)](_0x19988e){const _0x497df0=_0x385291;this[_0x497df0(0x35c)](_0x19988e),this[_0x497df0(0x302)](_0x19988e);}[_0x385291(0x392)](_0xd4f6ae){const _0x3ab1f8=_0x385291,{unitID:_0x51a02c}=_0xd4f6ae,{redoCache:_0x3649e3}=this['_renderManagerService'][_0x3ab1f8(0x2ff)](_0x51a02c)[_0x3ab1f8(0x2d6)](DocIMEInputManagerService)[_0x3ab1f8(0x39f)]();if(_0x3649e3[_0x3ab1f8(0x287)]===0x0)return _0xd4f6ae;let _0x818ee=Tools['deepClone'](_0xd4f6ae[_0x3ab1f8(0x218)][0x0]);for(let _0x1c95a7=0x0;_0x1c95a7<_0x3649e3[_0x3ab1f8(0x287)];_0x1c95a7++){const _0x2ade71={'id':_0x3ab1f8(0x2be),'params':{..._0x3649e3[_0x1c95a7]}},_0x352735=this[_0x3ab1f8(0x23f)][_0x3ab1f8(0x226)](_0x818ee,_0x2ade71,![]);if(isTransformMutationFailure(_0x352735))throw _0x352735[_0x3ab1f8(0x32c)];_0x818ee=_0x352735[_0x3ab1f8(0x2eb)];}return{...Tools[_0x3ab1f8(0x346)](_0xd4f6ae),'mutations':[_0x818ee]};}[_0x385291(0x35c)](_0x5b2af0){const _0x50d041=_0x385291,{unitID:_0x13fdfd}=_0x5b2af0,_0x5a23b3=this[_0x50d041(0x211)][_0x50d041(0x2ff)](_0x13fdfd)['with'](DocIMEInputManagerService),{undoCache:_0x122b11,redoCache:_0xa871f3}=_0x5a23b3[_0x50d041(0x39f)]();if(_0x122b11['length']===0x0||_0xa871f3[_0x50d041(0x287)]===0x0)return;const _0x35c06e=[],_0x1fe5e2=[];let _0xa53397=Tools[_0x50d041(0x346)](_0x5b2af0['mutations'][0x0]),_0x4fe42d=Tools[_0x50d041(0x346)](_0x5b2af0[_0x50d041(0x218)][0x0]);for(let _0x4fa54e=_0x122b11['length']-0x1;_0x4fa54e>=0x0;_0x4fa54e--){const _0x27529c={'id':_0x50d041(0x2be),'params':{..._0x122b11[_0x4fa54e]}},_0x25cec2={'id':'doc.mutation.rich-text-editing','params':{..._0xa871f3[_0x4fa54e]}},_0x401bee=this[_0x50d041(0x23f)][_0x50d041(0x226)](_0xa53397,_0x27529c,![]),_0x272f4c=this['_transformService'][_0x50d041(0x226)](_0x4fe42d,_0x25cec2,![]);if(isTransformMutationFailure(_0x401bee))throw _0x401bee['error'];if(isTransformMutationFailure(_0x272f4c))throw _0x272f4c[_0x50d041(0x32c)];_0x35c06e[_0x50d041(0x200)](_0x401bee['m2Prime'][_0x50d041(0x1db)]),_0x1fe5e2[_0x50d041(0x200)](_0x272f4c[_0x50d041(0x3b8)][_0x50d041(0x1db)]),_0xa53397=_0x401bee['m1Prime'],_0x4fe42d=_0x272f4c['m1Prime'];}_0x5a23b3[_0x50d041(0x2ae)]({'undoCache':_0x35c06e,'redoCache':_0x1fe5e2});}[_0x385291(0x302)](_0x3c7624){const _0x2704be=_0x385291,{unitID:_0x33e95a}=_0x3c7624,_0x521727=this[_0x2704be(0x211)][_0x2704be(0x2ff)](_0x33e95a)['with'](DocIMEInputManagerService),_0x357390=_0x521727[_0x2704be(0x26d)]();if(_0x357390==null)return;const _0xc2b422=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3c7624[_0x2704be(0x2e4)],'actions':null,'textRanges':[_0x357390]}}],_0x571d5e=this[_0x2704be(0x23f)][_0x2704be(0x341)](_0x3c7624,_0xc2b422);if(!isTransformMutationsWithChangesetSuccess(_0x571d5e))throw _0x571d5e[_0x2704be(0x32c)];const _0x29ae76=_0x571d5e[_0x2704be(0x3b8)][0x0][_0x2704be(0x1db)][_0x2704be(0x1c5)];if(Array[_0x2704be(0x2af)](_0x29ae76)&&_0x29ae76[_0x2704be(0x287)])_0x521727['setActiveRange'](_0x29ae76[0x0]);}};DocTransformIMECacheService=__decorate([__decorateParam(0x0,ITransformService),__decorateParam(0x1,IRenderManagerService)],DocTransformIMECacheService);let DocTransformStateCacheService=class DocTransformStateCacheService{constructor(_0x169263,_0x4a9917,_0x27d6ed){const _0x3b49d0=_0x385291;this[_0x3b49d0(0x1b9)]=_0x169263,this[_0x3b49d0(0x23f)]=_0x4a9917,this[_0x3b49d0(0x322)]=_0x27d6ed;}['transformStateCache'](_0x50eda7){this['_transformHistoryAndStateStack'](_0x50eda7);}[_0x385291(0x392)](_0x1d7d7d){const _0x228c7b=_0x385291,{unitID:_0x23cc12}=_0x1d7d7d,{collaboration:_0xaa4f21}=this[_0x228c7b(0x322)]['getStateCache'](_0x23cc12);if(_0xaa4f21[_0x228c7b(0x287)]===0x0)return _0x1d7d7d;let _0x5229cc=Tools[_0x228c7b(0x346)](_0x1d7d7d['mutations'][0x0]);for(let _0x9d4c6f=0x0;_0x9d4c6f<_0xaa4f21[_0x228c7b(0x287)];_0x9d4c6f++){const _0x6c9fa9={'id':_0x228c7b(0x2be),'params':{'unitId':_0xaa4f21[_0x9d4c6f][_0x228c7b(0x34d)],..._0xaa4f21[_0x9d4c6f][_0x228c7b(0x38f)]}},_0x593d20=this['_transformService']['transformMutation'](_0x5229cc,_0x6c9fa9,![]);if(isTransformMutationFailure(_0x593d20))throw _0x593d20[_0x228c7b(0x32c)];_0x5229cc=_0x593d20['m1Prime'];}return{...Tools[_0x228c7b(0x346)](_0x1d7d7d),'mutations':[_0x5229cc]};}[_0x385291(0x3b1)](_0x50c5d1){const _0x110b13=_0x385291,{unitID:_0x1239f0}=_0x50c5d1,{history:_0x34061d,collaboration:_0x69c309}=this[_0x110b13(0x322)][_0x110b13(0x21b)](_0x1239f0);if(_0x34061d[_0x110b13(0x287)]===0x0&&_0x69c309[_0x110b13(0x287)]===0x0)return;const _0x553d09=[],_0x13a6e4=[];let _0x528105=Tools[_0x110b13(0x346)](_0x50c5d1['mutations'][0x0]),_0x470440=Tools['deepClone'](_0x50c5d1[_0x110b13(0x218)][0x0]);for(let _0x589db3=_0x34061d[_0x110b13(0x287)]-0x1;_0x589db3>=0x0;_0x589db3--){const _0x39165d={'id':_0x110b13(0x2be),'params':{'unitId':_0x34061d[_0x589db3][_0x110b13(0x34d)],..._0x34061d[_0x589db3]['undoState']}},_0x5a1b68={'id':_0x110b13(0x2be),'params':{'unitId':_0x34061d[_0x589db3][_0x110b13(0x34d)],..._0x34061d[_0x589db3]['redoState']}},_0x3d3516=this[_0x110b13(0x23f)][_0x110b13(0x226)](_0x528105,_0x39165d,![]),_0x2a3898=this['_transformService'][_0x110b13(0x226)](_0x470440,_0x5a1b68,![]);if(isTransformMutationFailure(_0x3d3516))throw _0x3d3516[_0x110b13(0x32c)];if(isTransformMutationFailure(_0x2a3898))throw _0x2a3898['error'];_0x553d09[_0x110b13(0x200)]({..._0x34061d[_0x589db3],'undoState':_0x3d3516['m2Prime'][_0x110b13(0x1db)],'redoState':_0x2a3898[_0x110b13(0x3b8)]['params']}),_0x528105=_0x3d3516[_0x110b13(0x2eb)],_0x470440=_0x2a3898[_0x110b13(0x2eb)];}_0x528105=Tools[_0x110b13(0x346)](_0x50c5d1[_0x110b13(0x218)][0x0]),_0x470440=Tools[_0x110b13(0x346)](_0x50c5d1[_0x110b13(0x218)][0x0]);for(let _0x479bd0=_0x69c309[_0x110b13(0x287)]-0x1;_0x479bd0>=0x0;_0x479bd0--){const _0x3fe9dd={'id':_0x110b13(0x2be),'params':{'unitId':_0x69c309[_0x479bd0][_0x110b13(0x34d)],..._0x69c309[_0x479bd0][_0x110b13(0x3c2)]}},_0x312036={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x69c309[_0x479bd0][_0x110b13(0x34d)],..._0x69c309[_0x479bd0][_0x110b13(0x38f)]}},_0x3a5680=this[_0x110b13(0x23f)][_0x110b13(0x226)](_0x528105,_0x3fe9dd,![]),_0x13bd83=this[_0x110b13(0x23f)][_0x110b13(0x226)](_0x470440,_0x312036,![]);if(isTransformMutationFailure(_0x3a5680))throw _0x3a5680[_0x110b13(0x32c)];if(isTransformMutationFailure(_0x13bd83))throw _0x13bd83['error'];_0x13a6e4[_0x110b13(0x200)]({..._0x69c309[_0x479bd0],'undoState':_0x3a5680[_0x110b13(0x3b8)]['params'],'redoState':_0x13bd83[_0x110b13(0x3b8)][_0x110b13(0x1db)]}),_0x528105=_0x3a5680[_0x110b13(0x2eb)],_0x470440=_0x13bd83[_0x110b13(0x2eb)];}this[_0x110b13(0x322)][_0x110b13(0x202)](_0x1239f0,{'history':_0x553d09,'collaboration':_0x13a6e4});}};DocTransformStateCacheService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,ITransformService),__decorateParam(0x2,Inject(DocStateChangeManagerService))],DocTransformStateCacheService);let DocTransformSelectionsService=class DocTransformSelectionsService{constructor(_0x439e71,_0x1ce5a7){const _0x348d48=_0x385291;this[_0x348d48(0x1b9)]=_0x439e71,this['_transformService']=_0x1ce5a7;}['transformSelections'](_0x1b80bf){const _0x385c5d=_0x385291;var _0x487a5f;const _0x59bd94=this[_0x385c5d(0x1b9)][_0x385c5d(0x212)](DocSelectionManagerService),_0x283f44=(_0x487a5f=_0x59bd94['getDocRanges']())!==null&&_0x487a5f!==void 0x0?_0x487a5f:[];if(_0x283f44[_0x385c5d(0x287)]===0x0)return;const _0x5a2eaa=_0x1b80bf[_0x385c5d(0x2e4)],_0x2d577d=[{'id':_0x385c5d(0x2be),'params':{'unitId':_0x5a2eaa,'actions':null,'textRanges':_0x283f44}}],_0x3c3236=this['_transformService'][_0x385c5d(0x341)](_0x1b80bf,_0x2d577d);if(!isTransformMutationsWithChangesetSuccess(_0x3c3236))throw _0x3c3236['error'];const _0x517ce7=_0x3c3236[_0x385c5d(0x3b8)][0x0][_0x385c5d(0x1db)][_0x385c5d(0x1c5)];if(Array[_0x385c5d(0x2af)](_0x517ce7)&&_0x517ce7[_0x385c5d(0x287)])_0x59bd94[_0x385c5d(0x325)](_0x517ce7,{'unitId':_0x5a2eaa,'subUnitId':_0x5a2eaa},![]);}};DocTransformSelectionsService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,ITransformService)],DocTransformSelectionsService);let CollaborationEntityUIController=class CollaborationEntityUIController extends Disposable{constructor(_0x1ac2c3,_0x3cc92e,_0x1e4977,_0x13da8b,_0xe94ec4,_0x53cd20,_0x1a2bdc,_0x444ddf){const _0x57ed3f=_0x385291;super(),this[_0x57ed3f(0x322)]=_0x1ac2c3,this[_0x57ed3f(0x3a4)]=_0x3cc92e,this[_0x57ed3f(0x364)]=_0x1e4977,this[_0x57ed3f(0x365)]=_0x13da8b,this['_docTransformSelectionsService']=_0xe94ec4,this[_0x57ed3f(0x2fd)]=_0x53cd20,this[_0x57ed3f(0x1af)]=_0x1a2bdc,this['_localeService']=_0x444ddf,_defineProperty(this,_0x57ed3f(0x390),new BehaviorSubject(CollaborationStatus[_0x57ed3f(0x340)])),this[_0x57ed3f(0x2d5)]();}[_0x385291(0x2d5)](){const _0x2074b2=_0x385291;this[_0x2074b2(0x21f)](this[_0x2074b2(0x3a4)][_0x2074b2(0x266)][_0x2074b2(0x36d)](_0x54b879=>{const _0x102496=_0x2074b2,_0x56eff3=this[_0x102496(0x322)][_0x102496(0x2a8)]['subscribe'](_0x63d5e6=>{const _0x4b1a7f=_0x102496;if(_0x63d5e6==null)return;const {unitId:_0x656c23,redoState:_0x44fb8c,commandId:_0x1f899a}=_0x63d5e6;if(_0x656c23!==_0x54b879[_0x4b1a7f(0x2e4)])return;const _0x2fc59d={'id':_0x1f899a,'type':CommandType[_0x4b1a7f(0x2a4)],'params':{'unitId':_0x656c23,'actions':_0x44fb8c[_0x4b1a7f(0x398)],'textRanges':null}};_0x54b879[_0x4b1a7f(0x2c7)](_0x2fc59d);});_0x54b879['disposeWithMe'](_0x56eff3);if(_0x54b879 instanceof DocCollaborationEntity)_0x54b879[_0x102496(0x261)]({'onTransformIME':_0x25e5c5=>this[_0x102496(0x364)]['transformIMECache'](_0x25e5c5),'onTransformState':_0x52605d=>this['_docTransformStateCacheService'][_0x102496(0x1b6)](_0x52605d),'onTransformSelections':_0x23f4ad=>this[_0x102496(0x1c6)][_0x102496(0x35d)](_0x23f4ad),'onSyncEditingCollabCursor':_0x55a5ce=>this[_0x102496(0x2fd)][_0x102496(0x321)](_0x55a5ce),'onTransformRemoteChangesetByIMECache':_0x3747a5=>this[_0x102496(0x364)][_0x102496(0x392)](_0x3747a5),'onTransformRemoteChangesetByStateCache':_0x2ec79d=>this[_0x102496(0x365)][_0x102496(0x392)](_0x2ec79d)});}));}};CollaborationEntityUIController=__decorate([__decorateParam(0x0,Inject(DocStateChangeManagerService)),__decorateParam(0x1,Inject(CollaborationController)),__decorateParam(0x2,Inject(DocTransformIMECacheService)),__decorateParam(0x3,Inject(DocTransformStateCacheService)),__decorateParam(0x4,Inject(DocTransformSelectionsService)),__decorateParam(0x5,Inject(DocSyncEditingCollabCursorService)),__decorateParam(0x6,IMessageService),__decorateParam(0x7,Inject(LocaleService))],CollaborationEntityUIController);let FrontendLogController=class FrontendLogController extends Disposable{constructor(_0x103d78,_0x3938ce,_0x2f69a9,_0x5c1dc6){const _0x36c88e=_0x385291;super(),this[_0x36c88e(0x1b9)]=_0x103d78,this[_0x36c88e(0x2a9)]=_0x3938ce,this['_logService']=_0x2f69a9,this[_0x36c88e(0x2ef)]=_0x5c1dc6,_defineProperty(this,_0x36c88e(0x388),void 0x0),this[_0x36c88e(0x1d2)]();}[_0x385291(0x1d2)](){const _0x2b3e52=_0x385291;this['_initWindowErrorListener'](),this[_0x2b3e52(0x299)](),this['_monkeyPatchLogService'](),this[_0x2b3e52(0x1e1)]();}[_0x385291(0x1e1)](){const _0x45d00e=_0x385291;this[_0x45d00e(0x21f)](this['_collaborationSessionService'][_0x45d00e(0x309)][_0x45d00e(0x36d)](_0x35327d=>{const _0x2a6517=_0x45d00e;this[_0x2a6517(0x388)]=_0x35327d===null||_0x35327d===void 0x0?void 0x0:_0x35327d['memberID'];}));}[_0x385291(0x2b4)](){const _0x4a26f4=_0x385291,_0x25f7e0=_0x1bf21b=>{const _0x35d164=_0x2feb;var _0x319c7f;this[_0x35d164(0x38c)](_0x35d164(0x32c),'[Window\x20Error]:\x20'+_0x1bf21b[_0x35d164(0x281)]+_0x35d164(0x363)+_0x1bf21b[_0x35d164(0x201)]+':'+_0x1bf21b[_0x35d164(0x1e4)]+':'+_0x1bf21b[_0x35d164(0x21e)]+'\x0a'+(((_0x319c7f=_0x1bf21b[_0x35d164(0x32c)])===null||_0x319c7f===void 0x0?void 0x0:_0x319c7f['stack'])||''));};window[_0x4a26f4(0x1f3)](_0x4a26f4(0x32c),_0x25f7e0),this['disposeWithMe'](()=>{const _0x32e215=_0x4a26f4;window['removeEventListener'](_0x32e215(0x32c),_0x25f7e0);});}['_initUnhandledRejectionListener'](){const _0x632f8f=_0x385291,_0x1af4e2=_0x429232=>{const _0x74eb37=_0x2feb;this[_0x74eb37(0x38c)](_0x74eb37(0x32c),_0x74eb37(0x245)+_0x429232[_0x74eb37(0x227)]);};window['addEventListener'](_0x632f8f(0x387),_0x1af4e2),this[_0x632f8f(0x21f)](()=>{const _0x4dfde8=_0x632f8f;window[_0x4dfde8(0x370)](_0x4dfde8(0x387),_0x1af4e2);});}[_0x385291(0x372)](){const _0x3f524b=_0x385291,_0x302974=this['_logService'][_0x3f524b(0x32c)][_0x3f524b(0x3be)](this[_0x3f524b(0x21a)]);this[_0x3f524b(0x21a)][_0x3f524b(0x32c)]=(..._0x33a0dd)=>{const _0x43a649=_0x3f524b,_0x8940d=_0x33a0dd[_0x43a649(0x24f)](_0x404991=>_0x404991 instanceof Error?_0x404991[_0x43a649(0x281)]+'\x0a'+_0x404991[_0x43a649(0x2f7)]:String(_0x404991))['join']('\x20');this[_0x43a649(0x38c)](_0x43a649(0x32c),_0x43a649(0x361)+_0x8940d),_0x302974(..._0x33a0dd);},this[_0x3f524b(0x21f)](()=>{this['_logService']['error']=_0x302974;});}[_0x385291(0x38c)](_0x24616a,_0x2417ab){const _0x43b259=_0x385291;try{const _0x3a717e={'userId':this[_0x43b259(0x388)],'logLabel':_0x24616a,'content':_0x2417ab};this[_0x43b259(0x2a9)][_0x43b259(0x1ea)](_0x43b259(0x28c),{'body':_0x3a717e})[_0x43b259(0x1e3)](()=>{});}catch{}}};FrontendLogController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,ILogService),__decorateParam(0x3,Inject(CollaborationSessionService))],FrontendLogController);function isCalculationStart(_0x4ea05e){const _0x47deac=_0x385291;var _0x1563a5,_0xc2f578;const _0x54824b=(_0x1563a5=_0x4ea05e[_0x47deac(0x215)])===null||_0x1563a5===void 0x0?void 0x0:_0x1563a5[_0x47deac(0x288)],_0x22a960=((_0xc2f578=_0x4ea05e['stageInfo'])===null||_0xc2f578===void 0x0?void 0x0:_0xc2f578[_0x47deac(0x334)])||0x0;return _0x54824b===FormulaExecuteStageType['START_CALCULATION']&&_0x22a960>0x0;}function isCalculationComplete(_0x2f103f){const _0x9eb409=_0x385291;return _0x2f103f['functionsExecutedState']===FormulaExecutedStateType[_0x9eb409(0x1ba)];}const DEFAULT_FORMULA_CALCULATION_LIMIT_STATUS_URL=_0x385291(0x217),DEFAULT_FORMULA_CALCULATION_LIMIT_START_URL=_0x385291(0x28a),DEFAULT_FORMULA_CALCULATION_LIMIT_DONE_URL='/universer-api/license/formula/limit/done';let FormulaCalculationGuardService=class FormulaCalculationGuardService extends Disposable{constructor(_0x1f415a,_0x278f06,_0x3fa49c,_0x49e3d8,_0x5c583b,_0x581433,_0x11bc2f){const _0x59f61f=_0x385291;super(),this[_0x59f61f(0x1af)]=_0x1f415a,this[_0x59f61f(0x2cc)]=_0x278f06,this[_0x59f61f(0x1f5)]=_0x3fa49c,this['_httpService']=_0x49e3d8,this[_0x59f61f(0x1ed)]=_0x5c583b,this[_0x59f61f(0x21a)]=_0x581433,this[_0x59f61f(0x1fd)]=_0x11bc2f,_defineProperty(this,_0x59f61f(0x2c8),null),_defineProperty(this,_0x59f61f(0x3b2),0x0),_defineProperty(this,_0x59f61f(0x2f1),0x0),_defineProperty(this,_0x59f61f(0x285),[]),_defineProperty(this,_0x59f61f(0x2aa),0x0),this[_0x59f61f(0x373)]();}[_0x385291(0x373)](){const _0x3a4b42=_0x385291;this[_0x3a4b42(0x21f)](this[_0x3a4b42(0x2cc)][_0x3a4b42(0x3a8)]((_0x2c42a8,_0x1cc695)=>{const _0x44003c=_0x3a4b42;var _0x1949c3;if(_0x2c42a8['id']!==SetFormulaCalculationStartMutation['id'])return;const _0xf5bb7f=_0x2c42a8['params'];if(!this['_hasFormulaInDirtyRanges']((_0x1949c3=_0xf5bb7f['dirtyRanges'])!==null&&_0x1949c3!==void 0x0?_0x1949c3:[]))return;if(!this[_0x44003c(0x2df)]()){this[_0x44003c(0x204)](_0x2c42a8,_0x1cc695),this['_showGuardMessage']();throw new CanceledError();}})),this['disposeWithMe'](this[_0x3a4b42(0x2cc)][_0x3a4b42(0x295)]((_0x516aa0,_0x6bcf25)=>{const _0x5cea75=_0x3a4b42;if(_0x516aa0['id']!==SetFormulaCalculationNotificationMutation['id'])return;const _0x939256=_0x516aa0[_0x5cea75(0x1db)];if(isCalculationStart(_0x939256)){const _0x4432be=generateRandomId();this[_0x5cea75(0x285)]['push'](_0x4432be),this[_0x5cea75(0x37d)](_0x4432be);}else{if(isCalculationComplete(_0x939256)){if(this['_taskIds']['length']>0x0){const _0x2209e6=this[_0x5cea75(0x285)]['shift']();this[_0x5cea75(0x374)](_0x2209e6);}}}}));}[_0x385291(0x272)](){const _0x1ae32e=_0x385291;super[_0x1ae32e(0x272)](),this[_0x1ae32e(0x20c)](),this[_0x1ae32e(0x285)]=[],this['_currentUsage']=0x0,this[_0x1ae32e(0x3b2)]=0x0,this[_0x1ae32e(0x2aa)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x34b0fc,_0x33d38b){const _0x5df14e=_0x385291,_0x73e5d6=0x1e,_0x2562bb=0x3e8;for(let _0x4380b3=0x0;_0x4380b3<_0x73e5d6;_0x4380b3++)try{await this[_0x5df14e(0x221)]();if(this[_0x5df14e(0x2df)]()){this[_0x5df14e(0x30e)](_0x34b0fc,_0x33d38b),this['_messageService'][_0x5df14e(0x34c)]({'content':this[_0x5df14e(0x1fd)]['t'](_0x5df14e(0x2b1)),'type':MessageType['Success']});return;}await new Promise(_0x5e647c=>{const _0x5eec2c=_0x5df14e;this[_0x5eec2c(0x2c8)]=window[_0x5eec2c(0x1b8)](_0x5e647c,_0x2562bb);});}catch(_0x177ec1){this[_0x5df14e(0x21a)]['error'](_0x177ec1);}this['_messageService'][_0x5df14e(0x34c)]({'content':this[_0x5df14e(0x1fd)]['t'](_0x5df14e(0x2a3)),'type':MessageType[_0x5df14e(0x1a6)]});}['_applyCommand'](_0x3b279e,_0x43d24a){const _0xc92ae9=_0x385291;try{this[_0xc92ae9(0x2cc)]['executeCommand'](_0x3b279e['id'],_0x3b279e['params'],_0x43d24a);}catch(_0x5c8f4c){this[_0xc92ae9(0x21a)][_0xc92ae9(0x32c)](_0x5c8f4c);}}[_0x385291(0x306)](_0xcae8ed,_0xddbfe4){const _0x53a62b=_0x385291;if(_0xddbfe4<this['_lastResponseTimestamp'])return;this['_lastResponseTimestamp']=_0xddbfe4,this[_0x53a62b(0x3b2)]=Number[_0x53a62b(0x1ad)](_0xcae8ed['maxFormulaLimit']),this['_currentUsage']=Number[_0x53a62b(0x1ad)](_0xcae8ed['currentUsage']);}async[_0x385291(0x37d)](_0x368536){const _0x37cac3=_0x385291,_0x2db021=Date['now']();try{var _0x21a866,_0x371dd3;const _0x33a15f=((_0x21a866=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x21a866===void 0x0?void 0x0:_0x21a866[_0x37cac3(0x357)])||DEFAULT_FORMULA_CALCULATION_LIMIT_START_URL,_0x19e9b5=(await this['_httpService'][_0x37cac3(0x1ea)](_0x33a15f,{'body':JSON['stringify']({'taskId':_0x368536})}))['body'];if(((_0x371dd3=_0x19e9b5[_0x37cac3(0x32c)])===null||_0x371dd3===void 0x0?void 0x0:_0x371dd3['code'])!==ErrorCode['OK'])return;this[_0x37cac3(0x306)](_0x19e9b5['limitInfo'],_0x2db021);}catch(_0xffb286){this[_0x37cac3(0x21a)]['error'](_0xffb286);}}async['_getFormulaLimitStatus'](_0x444d6c){const _0x43b4d0=_0x385291,_0x22d9b5=Date[_0x43b4d0(0x3bf)]();try{var _0x52025f,_0x3366e9;const _0x1c2c42=((_0x52025f=this[_0x43b4d0(0x1f5)][_0x43b4d0(0x2c6)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x52025f===void 0x0?void 0x0:_0x52025f['getFormulaLimitStatusUrl'])||DEFAULT_FORMULA_CALCULATION_LIMIT_STATUS_URL,_0x1a58f1=_0x444d6c?_0x1c2c42+_0x43b4d0(0x31d)+encodeURIComponent(_0x444d6c):_0x1c2c42,_0x5dfcbd=(await this[_0x43b4d0(0x2a9)][_0x43b4d0(0x212)](_0x1a58f1))[_0x43b4d0(0x1e8)];if(((_0x3366e9=_0x5dfcbd[_0x43b4d0(0x32c)])===null||_0x3366e9===void 0x0?void 0x0:_0x3366e9[_0x43b4d0(0x22b)])!==ErrorCode['OK'])return;this[_0x43b4d0(0x306)](_0x5dfcbd[_0x43b4d0(0x2a0)],_0x22d9b5);}catch(_0x5c75fa){this[_0x43b4d0(0x21a)][_0x43b4d0(0x32c)](_0x5c75fa);}}async['_releaseCalculationLimit'](_0x241e78){const _0x55c7c6=_0x385291,_0x45845e=Date[_0x55c7c6(0x3bf)]();try{var _0x28268f,_0x44b362;const _0x35ceb4=((_0x28268f=this[_0x55c7c6(0x1f5)][_0x55c7c6(0x2c6)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x28268f===void 0x0?void 0x0:_0x28268f['releaseFormulaLimitUrl'])||DEFAULT_FORMULA_CALCULATION_LIMIT_DONE_URL,_0x2d547e=(await this[_0x55c7c6(0x2a9)][_0x55c7c6(0x1ea)](_0x35ceb4,{'body':JSON[_0x55c7c6(0x2c0)]({'taskId':_0x241e78})}))[_0x55c7c6(0x1e8)];if(((_0x44b362=_0x2d547e[_0x55c7c6(0x32c)])===null||_0x44b362===void 0x0?void 0x0:_0x44b362['code'])!==ErrorCode['OK'])return;this['_setFormulaLimitStatus'](_0x2d547e[_0x55c7c6(0x2a0)],_0x45845e);}catch(_0x402364){this[_0x55c7c6(0x21a)][_0x55c7c6(0x32c)](_0x402364);}}[_0x385291(0x2df)](){const _0x124cf8=_0x385291;if(this[_0x124cf8(0x3b2)]===0x0)return!![];return this[_0x124cf8(0x3b2)]-this[_0x124cf8(0x2f1)]>0x0;}[_0x385291(0x20c)](){const _0x18749b=_0x385291;this[_0x18749b(0x2c8)]&&(clearTimeout(this[_0x18749b(0x2c8)]),this['_pollingInterval']=null);}[_0x385291(0x2ec)](){const _0x730af4=_0x385291;this[_0x730af4(0x1af)]['show']({'content':this[_0x730af4(0x1fd)]['t'](_0x730af4(0x24b)),'type':MessageType[_0x730af4(0x27f)]});}['_hasFormulaInDirtyRanges'](_0x1e29ce){const _0x1cabf8=_0x385291;for(const _0x4cdb3a of _0x1e29ce){const {unitId:_0x248a74,sheetId:_0x5a4c32,range:_0x14d57f}=_0x4cdb3a,_0x2155d0=this[_0x1cabf8(0x1ed)][_0x1cabf8(0x3a1)](_0x248a74);if(!_0x2155d0)continue;const _0x58f4f7=_0x2155d0[_0x1cabf8(0x241)](_0x5a4c32);if(!_0x58f4f7)continue;const _0x1d27e8=_0x58f4f7[_0x1cabf8(0x3bb)]();for(let _0x2fc350=_0x14d57f[_0x1cabf8(0x23d)];_0x2fc350<=_0x14d57f['endRow'];_0x2fc350++)for(let _0x240230=_0x14d57f['startColumn'];_0x240230<=_0x14d57f[_0x1cabf8(0x248)];_0x240230++){const _0x3dd445=_0x1d27e8[_0x1cabf8(0x323)](_0x2fc350,_0x240230);if(_0x3dd445&&(isFormulaString(_0x3dd445['f'])||isFormulaId(_0x3dd445['si'])))return!![];}}return![];}};FormulaCalculationGuardService=__decorate([__decorateParam(0x0,Inject(IMessageService)),__decorateParam(0x1,ICommandService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,Inject(HTTPService)),__decorateParam(0x4,IUniverInstanceService),__decorateParam(0x5,ILogService),__decorateParam(0x6,Inject(LocaleService))],FormulaCalculationGuardService);let WebLocalCacheService=class WebLocalCacheService extends Disposable{constructor(_0x5e1c2f,_0x571967,_0x2f9c75){const _0x16d385=_0x385291;super(),this[_0x16d385(0x1f5)]=_0x5e1c2f,this[_0x16d385(0x2c1)]=_0x571967,this[_0x16d385(0x2a1)]=_0x2f9c75,_defineProperty(this,_0x16d385(0x255),new Map()),_defineProperty(this,_0x16d385(0x33f),new Map()),_defineProperty(this,_0x16d385(0x1fe),![]);}[_0x385291(0x2bd)](){this['_disabled']=!![];}[_0x385291(0x258)](){this['_disabled']=![];}get[_0x385291(0x369)](){const _0xc1eeba=_0x385291;return this[_0xc1eeba(0x33f)];}[_0x385291(0x272)](){const _0x139bab=_0x385291;this[_0x139bab(0x208)]()[_0x139bab(0x2e1)](()=>super['dispose']());}async[_0x385291(0x2fc)](_0x2d5a1e){const _0x5d22e4=_0x385291;if(this[_0x5d22e4(0x1fe)])return null;return this[_0x5d22e4(0x2c1)]['getItem'](getLocalCacheKey(_0x2d5a1e));}async[_0x385291(0x351)](_0x458503,_0xd7391d){const _0x561b8d=_0x385291;return!!this[_0x561b8d(0x2c1)][_0x561b8d(0x2b6)](_0x458503,_0xd7391d);}['updateOfflineData'](_0x3ad582,_0x35cf50,_0x3aed46,_0x23a909){const _0x10286=_0x385291,_0x2f39af=this[_0x10286(0x2a1)][_0x10286(0x250)](_0x3ad582);this['_cachedData']['set'](_0x3ad582,{'unitID':_0x3ad582,'type':_0x35cf50,'awaitingChangeset':_0x3aed46,'mutations':_0x23a909,'rev':_0x2f39af});if(!this[_0x10286(0x33f)]['has'](_0x3ad582))this[_0x10286(0x1c3)](_0x3ad582);}[_0x385291(0x1c3)](_0x4cece1){const _0x3b2554=_0x385291,_0x10e70e=this[_0x3b2554(0x315)]();if(_0x10e70e===0x0)this[_0x3b2554(0x24c)](_0x4cece1);else this[_0x3b2554(0x33f)][_0x3b2554(0x222)](_0x4cece1,setTimeout(()=>this[_0x3b2554(0x24c)](_0x4cece1),_0x10e70e));}[_0x385291(0x315)](){const _0xb67787=_0x385291;var _0x4a3fe8;return(_0x4a3fe8=this[_0xb67787(0x1f5)][_0xb67787(0x2c6)](LOCAL_CACHE_INTERVAL_KEY))!==null&&_0x4a3fe8!==void 0x0?_0x4a3fe8:LOCAL_CACHE_INTERVAL;}['_saveCache'](_0x3b1706){const _0x1883a3=_0x385291,_0xdc8879=this['_saveTaskMap'][_0x1883a3(0x212)](_0x3b1706);if(_0xdc8879!==void 0x0)window[_0x1883a3(0x2cf)](_0xdc8879);return this['_localStorageService'][_0x1883a3(0x2b6)](getLocalCacheKey(_0x3b1706),this[_0x1883a3(0x255)][_0x1883a3(0x212)](_0x3b1706))[_0x1883a3(0x2e1)](()=>this[_0x1883a3(0x33f)]['delete'](_0x3b1706));}async[_0x385291(0x208)](){const _0x49a8d3=_0x385291,_0x33d475=[];this[_0x49a8d3(0x33f)]['forEach']((_0x1210c0,_0xce3471)=>{const _0x5f9a35=_0x49a8d3;window[_0x5f9a35(0x2cf)](_0x1210c0),_0x33d475[_0x5f9a35(0x1fb)](this[_0x5f9a35(0x24c)](_0xce3471)[_0x5f9a35(0x2e1)](()=>{const _0x35370a=_0x5f9a35;this[_0x35370a(0x33f)][_0x35370a(0x282)](_0xce3471);}));}),await Promise[_0x49a8d3(0x2e9)](_0x33d475);}};WebLocalCacheService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,ILocalStorageService),__decorateParam(0x2,Inject(RevisionService))],WebLocalCacheService);var WebURLService=class extends RxDisposable{constructor(){const _0x3bd52c=_0x385291;super(),_defineProperty(this,_0x3bd52c(0x311),void 0x0),this[_0x3bd52c(0x311)]=fromEvent(window,_0x3bd52c(0x3bc))[_0x3bd52c(0x1e6)](takeUntil(this[_0x3bd52c(0x2d2)]),shareReplay(0x1),mapTo(void 0x0));}[_0x385291(0x358)](_0x4d6e54,_0x5f0088,_0x2bd7d4=![]){const _0x2d330c=_0x385291,_0x17235e=new URL(window[_0x2d330c(0x2da)]['href']);_0x17235e['searchParams'][_0x2d330c(0x222)](_0x4d6e54,_0x5f0088);if(_0x2bd7d4)window[_0x2d330c(0x1aa)][_0x2d330c(0x2d7)]('','',_0x17235e[_0x2d330c(0x362)]());else window[_0x2d330c(0x1aa)]['pushState']('','',_0x17235e[_0x2d330c(0x362)]());}[_0x385291(0x348)](_0x56bef2,_0x540200=![]){const _0x58fedd=_0x385291,_0x15ce32=new URL(window[_0x58fedd(0x2da)]['href']);_0x15ce32[_0x58fedd(0x1d7)][_0x58fedd(0x282)](_0x56bef2);if(_0x540200)window[_0x58fedd(0x1aa)][_0x58fedd(0x2d7)]('','',_0x15ce32[_0x58fedd(0x362)]());else window[_0x58fedd(0x1aa)][_0x58fedd(0x267)]('','',_0x15ce32[_0x58fedd(0x362)]());}[_0x385291(0x384)](_0x453d77){const _0x149929=_0x385291;var _0x3e0d44;return(_0x3e0d44=new URL(window[_0x149929(0x2da)][_0x149929(0x1d6)])[_0x149929(0x1d7)][_0x149929(0x212)](_0x453d77))!==null&&_0x3e0d44!==void 0x0?_0x3e0d44:void 0x0;}};let UniverCollaborationClientUIPlugin=class UniverCollaborationClientUIPlugin extends Plugin{constructor(_0xf1688e=defaultPluginConfig,_0x47dcba,_0x34ef80,_0x4b63e2){const _0x1fbcd4=_0x385291;super(),this[_0x1fbcd4(0x367)]=_0xf1688e,this[_0x1fbcd4(0x211)]=_0x47dcba,this['_injector']=_0x34ef80,this[_0x1fbcd4(0x1f5)]=_0x4b63e2;const {..._0x4c532e}=merge({},defaultPluginConfig,this[_0x1fbcd4(0x367)]);this['_configService'][_0x1fbcd4(0x291)](PLUGIN_CONFIG_KEY,_0x4c532e);}[_0x385291(0x326)](){const _0x183f99=_0x385291;this[_0x183f99(0x271)](),this[_0x183f99(0x30d)]();}[_0x385291(0x235)](){this['_registerRenderDependencies']();}[_0x385291(0x271)](){const _0x2c60ab=_0x385291;var _0x39a6fa;const _0xbe930e=[[ColorAssignService],[FormulaCalculationGuardService],[DocTransformSelectionsService],[DocTransformIMECacheService],[DocTransformStateCacheService],[DocSyncEditingCollabCursorService],[IURLService,{'useClass':WebURLService}],[ISocketService,{'useClass':WebSocketService}],[ILocalCacheService,{'useClass':WebLocalCacheService}],[DesktopCollaborationStatusDisplayController],[CollaborationEntityUIController],[CollaborationClientUIController],[CollabCursorController],[ImagePasteController],[CollaborationDataLoaderController]];if(this[_0x2c60ab(0x367)][_0x2c60ab(0x344)])_0xbe930e[_0x2c60ab(0x1fb)]([FrontendLogController]);registerDependencies(this[_0x2c60ab(0x1b9)],mergeOverrideWithDependencies(_0xbe930e,(_0x39a6fa=this[_0x2c60ab(0x367)])===null||_0x39a6fa===void 0x0?void 0x0:_0x39a6fa['override']));}[_0x385291(0x310)](){const _0x358632=_0x385291;this[_0x358632(0x21f)](this[_0x358632(0x211)][_0x358632(0x1ab)](UniverInstanceType[_0x358632(0x294)],[DocCollabCursorRenderController])),this[_0x358632(0x21f)](this[_0x358632(0x211)][_0x358632(0x1ab)](UniverInstanceType['UNIVER_SHEET'],[SheetCollabCursorRenderController]));}[_0x385291(0x30d)](){const _0x28c5b7=_0x385291;touchDependencies(this[_0x28c5b7(0x1b9)],[[CollabCursorController],[DesktopCollaborationStatusDisplayController],[CollaborationEntityUIController],[CollaborationClientUIController],[CollaborationDataLoaderController],[FormulaCalculationGuardService]]);if(this[_0x28c5b7(0x367)]['enableFrontendLog'])touchDependencies(this[_0x28c5b7(0x1b9)],[[FrontendLogController]]);}};function _0xdf91(){const _0x213071=['?taskId=','getTypeOfUnitDisposed$','DeleteRangeMoveLeftCommandId','_updateURLWithCurrentState','syncEditingCollabCursor','_docStateChangeManagerService','getValue','fillText','replaceDocRanges','onStarting','_offsetY','onPointerLeave$','send','_unitOnClients','permission.title','error','_updateCollabCursors','object','ranges','_getLighterColor','_entityInit$','PERMISSION_DENIED','has','totalFormulasToCalculate','_getMergeRange','_toggleOffline','sheetID','1348JFuvXo','_shapes','_handleJoinEvent','collab-text-range-','createInstance','font','_handleLeaveEvent','_saveTaskMap','NOT_COLLAB','transformMutationsWithChangeset','2755197mByQvj','rgb','enableFrontendLog','setShapeProps','deepClone','_context','removeParam','_document','_handleHover','highlightSecond','show','unitId','invokeId','_handleEvent','hide','saveOfflineData','_collabCursorState$','roomMembers','_refreshCollabCursors','transformByState','search','startFormulaLimitUrl','setParam','InsertRangeMoveDownCommandId','getCollabEntity$','RECT','_transformUndoRedoStack','transformSelections','_collabCursorController','_docSkeletonManagerService','OTHER_CLIENT_EDITING','[LogService\x20Error]:\x20','toString','\x20at\x20','_docTransformIMECacheService','_docTransformStateCacheService','_getAnchorBounding','_config','FromArray','saveTaskMap','colorClass','_setupSubUnitSync','univer-text-green-500','subscribe','UNIVER_SHEET','save','removeEventListener','status','_monkeyPatchLogService','_initCommandInterceptor','_releaseCalculationLimit','_drawRectRange','getActiveSheet','parse','getOffsetConfig','RemoveColCommandId','_scheduleHeartbeat','_docClipboardService','complete','_startCalculationLimit','span','_draw','univer-text-gray-400','undefined','_dataLoaderService','TEXT','getParam','_cursors','collabCursorState$','unhandledrejection','_memberID','collaboration-client-ui.config','_name','values','_uploadLog','split','univer-border-none\x20univer-bg-transparent','redoState','_status$','getDocRanges','transformRemoteChangeset','key','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_startSheetCollabCursor','10852360ennsdq','_removeCollabCursors','actions','_onCursorDelete','668612rePoZR','arc','onTransformChange$','_unitStatus','_onRefRangeChange','getUndoRedoMutationParamsCache','setAlpha','getUnit','_clearOtherTimers','measureText','_collaborationController','addClipboardHook','_themeService','_color','beforeCommandExecuted','collab-text-anchor-','_startDocCollabCursor','_entities','showText','onPointerEnter$','Warning','activeSheet$','collabStatus.conflict','_transformHistoryAndStateStack','_maxFormulaLimit','_removeClearOtherTimer','loadUnit','_hovered','collaboration.single-unit.warning','_anchorDot','m2Prime','flatMap','tooltipKey','getCellMatrix','popstate','SYNCED','bind','now','_beforeCloseService','197881krNKIt','undoState','clearInterval','_eventUnsubscribe','top','collaboration.closeRoom','moveTo',',\x200.2)','type','storage','_localCacheService','addObject','Error','_session','createSocket','_heartbeatTimer','history','registerRenderModule','univer-text-blue-500','parseInt','ticket','_messageService','reconnect','selection','findNodePositionByCharIndex','USERS_LEAVE','requireSession','Failed','transformStateCache','_assignedColors','setTimeout','_injector','SUCCESS','next','getCurrentUnitForType','getFocusedUnit','_getSheetObject','cursorInfo','purple.300','getMergeData','_initResize','_scheduleSaving','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','textRanges','_docTransformSelectionsService','defineProperty','sessionTicket','_ensureSubject','currentSkeleton$','roomMembers$','size','prototype','getUnitId','iterator','transformIMECache','init','_init','_collaborationUIEventService','DeleteRangeMoveUpCommandId','currentTheme$','href','searchParams','_sheetSkeletonManagerService','MoveRangeCommandId','collab-client.tooltip.reconnect','params','makeDirty','_drawAnchor','InsertRangeMoveRightCommandId','blue.400','fillStyle','_initUserListener','addObjects','catch','lineno','data','pipe','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','body','SUBMIT_CHANGESET_TIMEOUT','post','replace','Enter','_univerInstanceService','10XIknmP','forEach','pulse','engine','registerRefRange','addEventListener','_selfUnitIDs','_configService','_createSocketURL','editingUnit','getMemberID','column','_collabSessionService','push','_scene','_localeService','_disabled','_imageIoService','unshift','filename','setStateCache','_instanceService','_checkAndWaitForCalculationPermission','getCurrentSkeleton','memberID','collabStatus.notCollab','exhaustSavingTask','collabStatus.synced','_blinkTimer','max','_clearPolling','_updateLocalCursor','symbol','/run/','from','_renderManagerService','get','[CollaborationDataLoaderController]','0.22.1','stageInfo','_cursor','/universer-api/license/formula/limit/status','mutations','_docSkeleton','_logService','getStateCache','_colorAssignService','_startBlinking','colno','disposeWithMe','startsWith','_getFormulaLimitStatus','set','hovered','executeCommand','univer-m-0\x20univer-p-0','transformMutation','reason','toPrimitive','0.2)','restore','code','_scheduleClearOtherTimer','_initEvent','unload','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','green.600','PENDING','origin','unit','_stopBlinking','onRendered','_hideTimer','OFFLINE','_initStatusListener','true','result','getTypeOfUnitAdded$','_cursorInfo$','startRow','range','_transformService','_doCreateSocket','getSheetBySheetId','_highlight','30BAfYwB','getCollabCursors$','[Unhandled\x20Rejection]:\x20','focused$','HEADER_MENU','endColumn','getVpScrollXYInfoByPosToVp','collabStatus.fetchMiss','formula.calculation.waiting','_saveCache','_toggleOnline','10loQqkY','map','getCurrentRevOfUnit','event$','color','SOCKET_FAILED_RETRY','application/json','_cachedData','runOnServer','getColorFromTheme','enableLocalCache','_getScale','registerBeforeClose','CONFLICT','rgba(','isActive','_textBubble','NO_OTHER_CLIENTS_EDITING','InsertRowCommandId','addHandlerCallback','assignAColorForMemberID','_isBlinkVisible','_lastPointer','univer-text-orange-500','entityInit$','pushState','offsetY','_online','add','univer-inline-flex\x20univer-items-center\x20univer-justify-center','ACTIVE_UNIT_EVENT_CHANNEL','getActiveRange','getAncestorScale','lineTo','_memberService','_registerDependencies','dispose','setInterval','labelPosition','subscribeEvent','2135BoNHAM','#FFF','_updateSubUnitFromURLParams','polite','closePath','includes','_id','call','rgba','Loading','_labelPosition','message','delete','triggerDblclick','selections','_taskIds','width','length','stage','getSkeleton','/universer-api/license/formula/limit/start','_blinkIntervalTimer','/universer-api/frontend/logs','icon','slice','collaboration.offline-data-not-saved','VIEW_MAIN','setConfig','clickable','2899443BqYzPR','UNIVER_DOC','onCommandExecuted','@univerjs-pro/collaboration-client-ui','button','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initUnhandledRejectionListener','cursorInfo$','JOIN_ROOM_FAILED','debug','min','spin','OTHER_CLIENTS_EDITING','limitInfo','_revisionService','_backgroundColor','formula.calculation.unable','MUTATION','unsubscribe','transform','getMember','docStateChange$','_httpService','_lastResponseTimestamp','session.will-retry','onMouseMove','CLOSE_ROOM','setUndoRedoMutationParamsCache','isArray','function','formula.calculation.started','ONLINE','jiqing.500','_initWindowErrorListener','_highlightSecond','setItem','getOwnPropertyDescriptor','getSheetId','isEditing','uni.network.url-service','_getSessionTicket','preventDefault','disableLocalCache','doc.mutation.rich-text-editing','drawWith','stringify','_localStorageService','_initStatusComponent','_send','InsertColCommandId','executionId','getConfig','onLocalMutation','_pollingInterval','div','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getRelativeToViewportCoord','_commandService','red.300','UPDATE_CURSOR','clearTimeout','registerComponent','_showText','dispose$','asObservable','packageName','_initEntityListener','with','replaceState','_syncEditingCollabCursorService','_cursorShapes','location','44115709NeDQmt','...','black','_roomMembers$','_checkCalculationAvailable','indicator','then','_refRangeService','startColumn','unitID','getCurrentSelections','constructor','subunit','dark:focus:univer-ring-offset-gray-800','all','highlight','m1Prime','_showGuardMessage','name','evenodd','_collaborationSessionService','runId','_currentUsage','setOffsetY','fill','univer-transition-all\x20univer-duration-200','FETCH_MISS','_initCommandExecutedListener','stack','_urlService','univer-appearance-none','_colorIndex','_anchor','loadOfflineData','_docSyncEditingCollabCursorService','_onCursorUpdate','getRenderById','decorate','_render','_transformPreviousActiveRange','wsSessionTicketUrl','static','some','_setFormulaLimitStatus','_drawTextRange','_hover','socket$','bottom','session.connection-failed','string','_initDependencies','_applyCommand','resize','_registerRenderDependencies','urlChange$','_uiPartsService','row','getRangePointData','_getSaveTimeout','_range','univer-text-red-500','Unknown\x20user','default','univer-h-8\x20univer-w-8\x20univer-rounded-lg','newValue','height'];_0xdf91=function(){return _0x213071;};return _0xdf91();}_defineProperty(UniverCollaborationClientUIPlugin,'pluginName',_0x385291(0x394)),_defineProperty(UniverCollaborationClientUIPlugin,_0x385291(0x2d4),name),_defineProperty(UniverCollaborationClientUIPlugin,'version',version),UniverCollaborationClientUIPlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientUIPlugin);let BrowserCollaborationSocketService=class BrowserCollaborationSocketService extends CollaborationSocketService{constructor(_0x2419dc,_0x4dc481,_0x274c62,_0xe78bb2,_0x2f0abf){super(_0x2419dc,_0x4dc481,_0x274c62,_0xe78bb2,_0x2f0abf);}async[_0x385291(0x1a8)](_0x55a464){const _0x2016a8=_0x385291,_0x94d33=await this[_0x2016a8(0x2bb)](),_0x584703=this[_0x2016a8(0x1f6)](_0x55a464,_0x94d33);return this[_0x2016a8(0x240)](_0x584703);}[_0x385291(0x1f6)](_0x1f7931,_0x4eb4da){const _0x4540df=_0x385291,_0x52dac5=typeof window==='undefined'?new URL(_0x1f7931):new URL(_0x1f7931,window[_0x4540df(0x2da)][_0x4540df(0x232)]);_0x52dac5[_0x4540df(0x1d7)]['set'](_0x4540df(0x1c8),_0x4eb4da);const _0x54aedc=typeof window===_0x4540df(0x381)?new URLSearchParams():new URLSearchParams(window['location'][_0x4540df(0x356)]);return _0x54aedc[_0x4540df(0x212)](_0x4540df(0x2f0))&&_0x52dac5[_0x4540df(0x1d7)][_0x4540df(0x222)](_0x4540df(0x2f0),_0x54aedc['get'](_0x4540df(0x2f0))),_0x52dac5['toString']();}async[_0x385291(0x2bb)](){const _0x256011=_0x385291;var _0x566cf3,_0x447508,_0x45c813;const _0x2f8bf9=this[_0x256011(0x1f5)][_0x256011(0x2c6)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x21324f=(_0x566cf3=_0x2f8bf9===null||_0x2f8bf9===void 0x0?void 0x0:_0x2f8bf9[_0x256011(0x303)])!==null&&_0x566cf3!==void 0x0?_0x566cf3:DEFAULT_WS_SESSION_TICKET_URL;return(_0x447508=(_0x45c813=(await this['_httpService'][_0x256011(0x212)](_0x21324f,{'headers':{'Content-Type':_0x256011(0x254)}}))['body'])===null||_0x45c813===void 0x0?void 0x0:_0x45c813[_0x256011(0x1ae)])!==null&&_0x447508!==void 0x0?_0x447508:'';}};BrowserCollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],BrowserCollaborationSocketService);let RemoteUniscriptService=class RemoteUniscriptService extends Disposable{constructor(_0x2fd4bd,_0x5debfe,_0x3c8525){const _0x1083d7=_0x385291;super(),this[_0x1083d7(0x203)]=_0x2fd4bd,this[_0x1083d7(0x2a9)]=_0x5debfe,this[_0x1083d7(0x1f5)]=_0x3c8525;}async[_0x385291(0x256)](_0x3f0974,_0xb66dcc,_0x183463,..._0x348727){const _0x21962e=_0x385291;var _0xb52164,_0x1e71a0,_0x944e63,_0x3045ad;const _0x1f64d6=this['_instanceService']['getFocusedUnit']();if(!_0x1f64d6)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0xd8e036=((_0xb52164=this[_0x21962e(0x1f5)][_0x21962e(0x2c6)](REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY))!==null&&_0xb52164!==void 0x0?_0xb52164:DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT)+'/'+_0x3f0974+_0x21962e(0x20f)+_0xb66dcc,_0x3722a3={'scriptId':_0x3f0974,'runId':(_0x1e71a0=new URL(window[_0x21962e(0x2da)][_0x21962e(0x1d6)])[_0x21962e(0x1d7)][_0x21962e(0x212)]('runId'))!==null&&_0x1e71a0!==void 0x0?_0x1e71a0:'','function':_0xb66dcc,'unitId':_0x1f64d6[_0x21962e(0x1ce)](),'argsOfFunction':JSON[_0x21962e(0x2c0)](_0x348727),'invokeId':(_0x944e63=_0x183463[_0x21962e(0x34e)])!==null&&_0x944e63!==void 0x0?_0x944e63:'','executionId':(_0x3045ad=_0x183463[_0x21962e(0x2c5)])!==null&&_0x3045ad!==void 0x0?_0x3045ad:''};try{const _0x5d765a=await this[_0x21962e(0x2a9)][_0x21962e(0x1ea)](_0xd8e036,{'body':_0x3722a3});if(_0x5d765a[_0x21962e(0x1e8)]['error']&&_0x5d765a[_0x21962e(0x1e8)][_0x21962e(0x32c)][_0x21962e(0x22b)]!==ErrorCode['OK'])return _0x21962e(0x1b5);return _0x5d765a[_0x21962e(0x1e8)][_0x21962e(0x23a)];}catch{return _0x21962e(0x1b5);}}};RemoteUniscriptService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService)],RemoteUniscriptService);const HEARTBEAT_INTERVAL=0x7530,ACTIVE_UNIT_EVENT_CHANNEL=_0x385291(0x26c);var WebBrowserSingleActiveUnitService=class extends Disposable{constructor(){const _0x5e4876=_0x385291;super(),_defineProperty(this,_0x5e4876(0x27c),generateRandomId()),_defineProperty(this,_0x5e4876(0x1f4),new Set()),_defineProperty(this,'_unitOnClients',new Map()),_defineProperty(this,'_heartbeatTimer',null),_defineProperty(this,_0x5e4876(0x3a2),new Map()),_defineProperty(this,_0x5e4876(0x39d),new Map()),this[_0x5e4876(0x1d2)]();}['dispose'](){const _0x18cf8b=_0x385291;super[_0x18cf8b(0x272)](),this[_0x18cf8b(0x3a2)]['forEach']((_0x2fa712,_0x2f1d2b)=>this['_removeClearOtherTimer'](_0x2f1d2b));if(this['_heartbeatTimer'])window[_0x18cf8b(0x3c3)](this[_0x18cf8b(0x1a9)]);}['getUnitStatus$'](_0x45d96e){const _0x3505fd=_0x385291;return this[_0x3505fd(0x1c9)](_0x45d96e)[_0x3505fd(0x1e6)](distinctUntilChanged());}[_0x385291(0x1f7)](_0x569083){const _0x1f74db=_0x385291;if(this[_0x1f74db(0x1f4)][_0x1f74db(0x1cc)]===0x0)this[_0x1f74db(0x37a)]();this[_0x1f74db(0x1f4)][_0x1f74db(0x26a)](_0x569083),this['_send']({'type':0x0,'memberID':this[_0x1f74db(0x27c)],'unitIDs':[_0x569083],'isForwarded':![]});}['disposeUnit'](_0x37dafa){const _0xe6e85f=_0x385291;this['_selfUnitIDs'][_0xe6e85f(0x282)](_0x37dafa);if(this[_0xe6e85f(0x1f4)]['size']===0x0&&this[_0xe6e85f(0x1a9)])window['clearInterval'](this[_0xe6e85f(0x1a9)]);}['_init'](){const _0x4b6026=_0x385291;this['disposeWithMe'](toDisposable(fromEvent(window,_0x4b6026(0x3ca))[_0x4b6026(0x36d)](_0x4d8318=>{const _0x212628=_0x4b6026;if(_0x4d8318[_0x212628(0x393)]!==ACTIVE_UNIT_EVENT_CHANNEL||!_0x4d8318[_0x212628(0x31b)])return;const _0x1d0fa6=JSON[_0x212628(0x377)](_0x4d8318[_0x212628(0x31b)]);this[_0x212628(0x34f)](_0x1d0fa6);}))),window[_0x4b6026(0x1f3)](_0x4b6026(0x22e),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4b6026(0x210)](this[_0x4b6026(0x1f4)])}));}[_0x385291(0x34f)](_0x229f0e){const _0x1ccc76=_0x385291;switch(_0x229f0e[_0x1ccc76(0x3c9)]){case 0x0:this[_0x1ccc76(0x33a)](_0x229f0e);break;case 0x1:this['_handleLeaveEvent'](_0x229f0e);break;case 0x2:this['_handleHeartbeatEvent'](_0x229f0e);break;}}[_0x385291(0x33a)](_0xcb9066){const _0x459c6f=_0x385291,{unitIDs:_0x5ad1ef,memberID:_0xe03f7a,isForwarded:_0x57835c}=_0xcb9066;_0x5ad1ef[_0x459c6f(0x1ef)](_0x180cb2=>{const _0x413024=_0x459c6f;if(!_0x57835c&&this[_0x413024(0x32a)][_0x413024(0x333)](_0x180cb2))this[_0x413024(0x1c9)](_0x180cb2)[_0x413024(0x1bb)](UnitStatus[_0x413024(0x29f)]);if(!this[_0x413024(0x32a)]['has'](_0x180cb2)||!this[_0x413024(0x32a)][_0x413024(0x212)](_0x180cb2)[_0x413024(0x333)](_0xe03f7a)){const _0x350bdc=this[_0x413024(0x32a)][_0x413024(0x212)](_0x180cb2)||new Set();_0x350bdc[_0x413024(0x26a)](_0xe03f7a),this['_unitOnClients']['set'](_0x180cb2,_0x350bdc),this[_0x413024(0x22c)](_0xe03f7a);}});if(!_0x57835c)this[_0x459c6f(0x2c3)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x459c6f(0x1f4)]],'isForwarded':!![]});}[_0x385291(0x22c)](_0x55ed63){const _0x4b3465=_0x385291;this['_removeClearOtherTimer'](_0x55ed63);const _0x324abd=window[_0x4b3465(0x1b8)](()=>{const _0x429ea9=_0x4b3465;this[_0x429ea9(0x32a)][_0x429ea9(0x1ef)](_0x3444f1=>{const _0x12e9b4=_0x429ea9;_0x3444f1[_0x12e9b4(0x282)](_0x55ed63);});},HEARTBEAT_INTERVAL*0x2);this[_0x4b3465(0x3a2)][_0x4b3465(0x222)](_0x55ed63,_0x324abd);}['_removeClearOtherTimer'](_0x461496){const _0x2fddc2=_0x385291;if(this[_0x2fddc2(0x3a2)][_0x2fddc2(0x333)](_0x461496)){const _0x14d593=this[_0x2fddc2(0x3a2)][_0x2fddc2(0x212)](_0x461496);if(_0x14d593)window[_0x2fddc2(0x2cf)](_0x14d593);this[_0x2fddc2(0x3a2)][_0x2fddc2(0x222)](_0x461496,null);}}[_0x385291(0x33e)](_0x393c3c){const _0x5aed3f=_0x385291,{memberID:_0x4ad407,unitIDs:_0x43c907}=_0x393c3c;_0x43c907[_0x5aed3f(0x1ef)](_0x4a91a1=>{const _0x3e2564=_0x5aed3f;var _0x19d816;const _0x49b9a6=this[_0x3e2564(0x32a)][_0x3e2564(0x212)](_0x4a91a1);if(!_0x49b9a6)return;_0x49b9a6[_0x3e2564(0x282)](_0x4ad407),(_0x19d816=this[_0x3e2564(0x1c9)](_0x4a91a1))===null||_0x19d816===void 0x0||_0x19d816[_0x3e2564(0x1bb)](_0x49b9a6[_0x3e2564(0x1cc)]===0x0?UnitStatus[_0x3e2564(0x25f)]:UnitStatus['OTHER_CLIENTS_EDITING']);}),this[_0x5aed3f(0x3b3)](_0x4ad407);}['_handleHeartbeatEvent'](_0xf59363){const _0x2b61f7=_0x385291;this[_0x2b61f7(0x22c)](_0xf59363[_0x2b61f7(0x206)]);}[_0x385291(0x2c3)](_0x388219){const _0x5b8d4a=_0x385291;localStorage['setItem'](ACTIVE_UNIT_EVENT_CHANNEL,JSON[_0x5b8d4a(0x2c0)](_0x388219));}[_0x385291(0x37a)](){const _0x192709=_0x385291;this['_heartbeatTimer']=window[_0x192709(0x273)](()=>{const _0x4a9a3d=_0x192709;this['_send']({'type':0x2,'memberID':this[_0x4a9a3d(0x27c)]});},HEARTBEAT_INTERVAL);}['_ensureSubject'](_0x4e9f99){const _0x3b8e2b=_0x385291;if(!this[_0x3b8e2b(0x39d)][_0x3b8e2b(0x333)](_0x4e9f99))this[_0x3b8e2b(0x39d)][_0x3b8e2b(0x222)](_0x4e9f99,new BehaviorSubject(UnitStatus[_0x3b8e2b(0x25f)]));return this['_unitStatus']['get'](_0x4e9f99);}};export{BrowserCollaborationSocketService,CollaborationDataLoaderController,DesktopCollaborationStatusDisplayController,IURLService,RemoteUniscriptService,SheetCollabCursorShape,UniverCollaborationClientUIPlugin,WebBrowserSingleActiveUnitService,WebURLService};
1
+ const _0x78f52a=_0x1449;(function(_0x2f5642,_0x576648){const _0xde5d84=_0x1449,_0x1f643c=_0x2f5642();while(!![]){try{const _0x58591a=-parseInt(_0xde5d84(0x391))/0x1*(parseInt(_0xde5d84(0x2aa))/0x2)+parseInt(_0xde5d84(0x29b))/0x3+-parseInt(_0xde5d84(0x1db))/0x4*(parseInt(_0xde5d84(0x201))/0x5)+parseInt(_0xde5d84(0x27c))/0x6+-parseInt(_0xde5d84(0x202))/0x7*(parseInt(_0xde5d84(0x247))/0x8)+parseInt(_0xde5d84(0x207))/0x9+parseInt(_0xde5d84(0x2fc))/0xa*(parseInt(_0xde5d84(0x27e))/0xb);if(_0x58591a===_0x576648)break;else _0x1f643c['push'](_0x1f643c['shift']());}catch(_0x11dc1d){_0x1f643c['push'](_0x1f643c['shift']());}}}(_0x44c5,0xcf131));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2992d2,CollaborationController as _0xc1f731,CollaborationSessionService as _0x285fda,CollaborationSocketService as _0x587544,CollaborationStatus as _0x322e7c,CollaborationUIEventId as _0x391dbd,CollaborationUIEventService as _0x1dbfe7,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5c1f29,DEFAULT_WS_SESSION_TICKET_URL as _0x56aed9,DataLoaderService as _0xfad37e,DocCollaborationEntity as _0x5a2169,ILocalCacheService as _0x10015f,LOCAL_CACHE_INTERVAL as _0x4e7222,LOCAL_CACHE_INTERVAL_KEY as _0x3473b3,MemberService as _0x4ba23c,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x1ee80d,SessionStatus as _0x21a1b1,UnitStatus as _0x5cdfcb,UniverCollaborationClientPlugin as _0x3e38ca,getLocalCacheKey as _0x14365e}from'@univerjs-pro/collaboration-client';import{COLORS as _0x144b37,CanceledError as _0x8737f2,ColorKit as _0x295985,CommandType as _0xc69fa8,DOC_RANGE_TYPE as _0x50f474,DependentOn as _0x34216b,Disposable as _0x5dec83,DisposableCollection as _0x3711b4,ICommandService as _0x5bc785,IConfigService as _0x17d3ae,ILocalStorageService as _0x51921e,ILogService as _0x1a64fb,IUniverInstanceService as _0x1bb177,Inject as _0x471dd1,Injector as _0x521737,LocaleService as _0xe3358c,Optional as _0x524186,Plugin as _0x3db0a4,Rectangle as _0x4b5558,RxDisposable as _0x5ea1f5,ThemeService as _0x36040c,Tools as _0x3886b0,UniverInstanceType as _0x502294,Workbook as _0x17d0e1,createIdentifier as _0x2a83d1,debounce as _0x195eb6,fromEventSubject as _0x1684ee,generateRandomId as _0x91b72,isFormulaId as _0x3c9c43,isFormulaString as _0x2abdc9,merge as _0x4caa17,mergeOverrideWithDependencies as _0x4b741e,registerDependencies as _0x446adf,toDisposable as _0x1c3a83,touchDependencies as _0x1bce04}from'@univerjs/core';import{BuiltInUIPart as _0x29adeb,IBeforeCloseService as _0x134d53,IMessageService as _0x145a0d,INotificationService as _0xab1e9d,IUIPartsService as _0x7b5376,connectInjector as _0x4afafa,useDependency as _0x3a12ec,useObservable as _0x1d1a4a}from'@univerjs/ui';import{BehaviorSubject as _0x1e5306,Subject as _0x4ce640,combineLatest as _0x94f8d2,debounceTime as _0xee5a10,distinctUntilChanged as _0x3b8d37,filter as _0x4b0b9d,fromEvent as _0x39e6ef,mapTo as _0x4fbb5c,merge as _0x56e0d9,of as _0x39a9f8,shareReplay as _0x14d592,switchMap as _0x3e1fd4,takeUntil as _0x3b565d}from'rxjs';import{MessageType as _0x227d7c,Tooltip as _0x57c7dd,clsx as _0x1fa06e}from'@univerjs/design';import{LoadingMultiIcon as _0x2f73cd,OffLineIcon as _0x2fed6d,OnLineIcon as _0x3fb4ca}from'@univerjs/icons';import{useCallback as _0x1e1837,useMemo as _0x1b53b4}from'react';import{jsx as _0x376184}from'react/jsx-runtime';import{IRemoteInstanceService as _0x5f1632}from'@univerjs/rpc';import{EffectRefRangId as _0x18e6fe,RefRangeService as _0x11dcd4,SetSelectionsOperation as _0x301a7f,SetWorksheetActivateCommand as _0x40d432,SheetsSelectionsService as _0x381779,handleDeleteRangeMoveLeft as _0x1ad0db,handleDeleteRangeMoveUp as _0x5ad278,handleIRemoveCol as _0xdb7c69,handleIRemoveRow as _0x14d207,handleInsertCol as _0x494a94,handleInsertRangeMoveDown as _0x1f8107,handleInsertRangeMoveRight as _0xc69b53,handleInsertRow as _0x2ee3c4,handleMoveRange as _0x11f157,runRefRangeMutations as _0x285472}from'@univerjs/sheets';import{IRenderManagerService as _0xe55028,Rect as _0x4dda2e,RegularPolygon as _0x548fb1,SHEET_VIEWPORT_KEY as _0x4b3b34,Shape as _0xd6db75,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x19b3c0,Vector2 as _0x355add,getColor as _0x11c43f}from'@univerjs/engine-render';import{HTTPService as _0x24c586,ISocketService as _0x22cdfd,WebSocketService as _0x5f3953}from'@univerjs/network';import{DocIMEInputManagerService as _0x5d85c0,DocStateChangeManagerService as _0x1355af,IDocClipboardService as _0x1dcd4d,NodePositionConvertToCursor as _0x425637,NodePositionConvertToRectRange as _0x202bbb,SetDocZoomRatioOperation as _0x4ee0d6,TEXT_RANGE_LAYER_INDEX as _0x3fb838}from'@univerjs/docs-ui';import{IImageIoService as _0x8e7d1f}from'@univerjs/drawing';import{CollaborationEvent as _0x5c2377,ISnapshotServerService as _0x2358cb,ITransformService as _0x146812,RevisionService as _0x49781c,isTransformMutationFailure as _0x4f5252,isTransformMutationsWithChangesetSuccess as _0x5cafa8}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x3a7884,DocSkeletonManagerService as _0xf2d3f7,RichTextEditingMutation as _0x2127a2,SetTextSelectionsOperation as _0x99916c}from'@univerjs/docs';import{FormulaExecuteStageType as _0x310fb3,FormulaExecutedStateType as _0x559881,SetFormulaCalculationNotificationMutation as _0x41bc6d,SetFormulaCalculationStartMutation as _0x483b07,deserializeRangeWithSheet as _0x1dabf3,serializeRangeWithSheet as _0x34d8bf}from'@univerjs/engine-formula';import{filter as _0x184655,map as _0x14c126,switchMap as _0x11bfd3,takeUntil as _0x5c62a8,throttleTime as _0x2cc60d}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3eadc1,getCoordByCell as _0x252be7,getSheetObject as _0x47f37e}from'@univerjs/sheets-ui';import{ErrorCode as _0x20e704}from'@univerjs/protocol';function qt(_0x2544d5){const _0x68abf6=_0x1449;switch(_0x2544d5){case _0x322e7c[_0x68abf6(0x372)]:return{'icon':_0x376184(_0x2fed6d,{}),'colorClass':'univer-text-red-500','i18nKey':_0x68abf6(0x2e6),'tooltipKey':'collab-client.tooltip.reconnect','clickable':!0x0,'indicator':_0x68abf6(0x1e7)};case _0x322e7c[_0x68abf6(0x34e)]:return{'icon':_0x376184(_0x2fed6d,{}),'colorClass':_0x68abf6(0x384),'i18nKey':'collabStatus.conflict','clickable':!0x1,'indicator':'static'};case _0x322e7c['FETCH_MISS']:return{'icon':_0x376184(_0x2f73cd,{}),'colorClass':'univer-text-blue-500','i18nKey':'collabStatus.fetchMiss','clickable':!0x1,'indicator':'spin'};case _0x322e7c[_0x68abf6(0x272)]:return{'icon':_0x376184(_0x3fb4ca,{}),'colorClass':_0x68abf6(0x312),'i18nKey':_0x68abf6(0x36c),'clickable':!0x1,'indicator':_0x68abf6(0x1e7)};case _0x322e7c[_0x68abf6(0x1e8)]:case _0x322e7c[_0x68abf6(0x24c)]:return{'icon':_0x376184(_0x2f73cd,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x68abf6(0x240),'clickable':!0x1,'indicator':_0x68abf6(0x298)};case _0x322e7c['SYNCED']:case _0x322e7c[_0x68abf6(0x2e4)]:return{'icon':_0x376184(_0x3fb4ca,{}),'colorClass':_0x68abf6(0x2af),'i18nKey':_0x68abf6(0x2e9),'clickable':!0x1,'indicator':'static'};}}function Jt(_0x92eaf7){const _0x2822f2=_0x1449;let {status$:_0x5c0d56}=_0x92eaf7,_0x5deea6=_0x1d1a4a(_0x5c0d56,_0x322e7c[_0x2822f2(0x272)]),_0x2916fe=_0x3a12ec(_0xe3358c),_0x279ef4=_0x3a12ec(_0x285fda),_0x5bd268=_0x1b53b4(()=>qt(_0x5deea6),[_0x5deea6]),_0x3bedd1=_0x5deea6!==_0x322e7c[_0x2822f2(0x372)],_0x312e55=_0x2916fe['t'](_0x5bd268[_0x2822f2(0x1f8)]),_0x38bb0b=_0x5bd268[_0x2822f2(0x1fd)]?_0x2916fe['t'](_0x5bd268[_0x2822f2(0x1fd)]):_0x312e55,_0x56eab4=_0x1e1837(()=>{_0x3bedd1||_0x279ef4['reconnect']();},[_0x3bedd1,_0x279ef4]),_0x51c87e=_0x1e1837(_0x3cfda7=>{const _0x52d903=_0x2822f2;!_0x3bedd1&&(_0x3cfda7[_0x52d903(0x38b)]===_0x52d903(0x2fe)||_0x3cfda7[_0x52d903(0x38b)]==='\x20')&&(_0x3cfda7[_0x52d903(0x1e6)](),_0x279ef4[_0x52d903(0x214)]());},[_0x3bedd1,_0x279ef4]),_0x4e4ba1=_0x376184(_0x2822f2(0x374),{'className':_0x1fa06e(_0x2822f2(0x2f7),_0x2822f2(0x1d6),_0x5bd268[_0x2822f2(0x236)],{'univer-animate-spin':_0x5bd268[_0x2822f2(0x211)]===_0x2822f2(0x298),'univer-animate-pulse':_0x5bd268[_0x2822f2(0x211)]===_0x2822f2(0x30f)}),'aria-hidden':_0x2822f2(0x37b),'children':_0x5bd268[_0x2822f2(0x321)]}),_0x16d282=_0x376184(_0x2822f2(0x374),{'className':_0x1fa06e(_0x2822f2(0x2f7),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x2822f2(0x2e0),_0x2822f2(0x2c2),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x5bd268[_0x2822f2(0x2bb)],'univer-cursor-default':!_0x5bd268[_0x2822f2(0x2bb)]}),'children':_0x4e4ba1});return _0x5bd268['clickable']?_0x376184(_0x57c7dd,{'title':_0x38bb0b,'placement':_0x2822f2(0x377),'children':_0x376184(_0x2822f2(0x27d),{'type':_0x2822f2(0x27d),'onClick':_0x56eab4,'onKeyDown':_0x51c87e,'className':_0x1fa06e(_0x2822f2(0x24a),_0x2822f2(0x2b1),'univer-m-0\x20univer-p-0','univer-appearance-none'),'aria-label':_0x312e55+'\x20-\x20'+_0x38bb0b,'role':'status','aria-live':_0x2822f2(0x26d),'aria-atomic':'true','children':_0x16d282})}):_0x376184(_0x57c7dd,{'title':_0x38bb0b,'placement':_0x2822f2(0x377),'children':_0x376184(_0x2822f2(0x1ee),{'className':_0x1fa06e(_0x2822f2(0x24a),'univer-border-none\x20univer-bg-transparent','univer-m-0\x20univer-p-0'),'aria-label':_0x312e55,'role':_0x2822f2(0x237),'aria-live':_0x2822f2(0x26d),'aria-atomic':_0x2822f2(0x37b),'children':_0x16d282})});}function W(_0x1817d0){'@babel/helpers - typeof';const _0x428fa9=_0x1449;return W=typeof Symbol==_0x428fa9(0x397)&&typeof Symbol['iterator']==_0x428fa9(0x2ad)?function(_0x56c903){return typeof _0x56c903;}:function(_0x5017e8){const _0x4f76b8=_0x428fa9;return _0x5017e8&&typeof Symbol==_0x4f76b8(0x397)&&_0x5017e8[_0x4f76b8(0x265)]===Symbol&&_0x5017e8!==Symbol[_0x4f76b8(0x1a7)]?_0x4f76b8(0x2ad):typeof _0x5017e8;},W(_0x1817d0);}function Yt(_0x12e40f,_0x4711a8){const _0x5f0d73=_0x1449;if(W(_0x12e40f)!=_0x5f0d73(0x34b)||!_0x12e40f)return _0x12e40f;var _0x1f897d=_0x12e40f[Symbol['toPrimitive']];if(_0x1f897d!==void 0x0){var _0x2eed0f=_0x1f897d[_0x5f0d73(0x38a)](_0x12e40f,_0x4711a8||_0x5f0d73(0x347));if(W(_0x2eed0f)!=_0x5f0d73(0x34b))return _0x2eed0f;throw TypeError(_0x5f0d73(0x196));}return(_0x4711a8===_0x5f0d73(0x31c)?String:Number)(_0x12e40f);}function Xt(_0x2ac1b7){const _0x523916=_0x1449;var _0x33e09e=Yt(_0x2ac1b7,'string');return W(_0x33e09e)==_0x523916(0x2ad)?_0x33e09e:_0x33e09e+'';}function G(_0x3bb6dc,_0xf5c4ab,_0x33d39d){const _0x497269=_0x1449;return(_0xf5c4ab=Xt(_0xf5c4ab))in _0x3bb6dc?Object[_0x497269(0x2d4)](_0x3bb6dc,_0xf5c4ab,{'value':_0x33d39d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3bb6dc[_0xf5c4ab]=_0x33d39d,_0x3bb6dc;}function K(_0x59d516,_0xb7fea4){return function(_0x3b698b,_0x21a2a2){_0xb7fea4(_0x3b698b,_0x21a2a2,_0x59d516);};}function q(_0x2739e4,_0x2ea1de,_0x44bd23,_0x3c9601){const _0x334bb5=_0x1449;var _0x54b2da=arguments[_0x334bb5(0x209)],_0x13b104=_0x54b2da<0x3?_0x2ea1de:_0x3c9601===null?_0x3c9601=Object[_0x334bb5(0x264)](_0x2ea1de,_0x44bd23):_0x3c9601,_0x1c0a73;if(typeof Reflect==_0x334bb5(0x34b)&&typeof Reflect[_0x334bb5(0x18f)]==_0x334bb5(0x397))_0x13b104=Reflect[_0x334bb5(0x18f)](_0x2739e4,_0x2ea1de,_0x44bd23,_0x3c9601);else{for(var _0x54f514=_0x2739e4[_0x334bb5(0x209)]-0x1;_0x54f514>=0x0;_0x54f514--)(_0x1c0a73=_0x2739e4[_0x54f514])&&(_0x13b104=(_0x54b2da<0x3?_0x1c0a73(_0x13b104):_0x54b2da>0x3?_0x1c0a73(_0x2ea1de,_0x44bd23,_0x13b104):_0x1c0a73(_0x2ea1de,_0x44bd23))||_0x13b104);}return _0x54b2da>0x3&&_0x13b104&&Object['defineProperty'](_0x2ea1de,_0x44bd23,_0x13b104),_0x13b104;}let J=class extends _0x5dec83{constructor(_0xeb80b6,_0x522e2d,_0x48877e,_0x56f293){const _0x52d0a5=_0x1449;super(),this['_univerInstanceService']=_0xeb80b6,this[_0x52d0a5(0x1a9)]=_0x522e2d,this['_collaborationController']=_0x48877e,this[_0x52d0a5(0x1ed)]=_0x56f293,G(this,_0x52d0a5(0x359),new _0x1e5306(_0x322e7c[_0x52d0a5(0x272)])),this[_0x52d0a5(0x256)](),this['_initStatusListener']();}[_0x78f52a(0x306)](){const _0x3932b4=_0x78f52a;this[_0x3932b4(0x228)](this[_0x3932b4(0x1c9)][_0x3932b4(0x1c3)][_0x3932b4(0x1ba)](_0x3e1fd4(()=>{const _0x525fa5=_0x3932b4;let _0x59309c=this[_0x525fa5(0x1c9)][_0x525fa5(0x205)]();return _0x59309c?this[_0x525fa5(0x301)][_0x525fa5(0x243)](_0x59309c[_0x525fa5(0x270)]()):_0x39a9f8(null);}),_0x3e1fd4(_0x5d3a87=>_0x5d3a87?_0x5d3a87[_0x3932b4(0x218)]:_0x39a9f8(_0x322e7c[_0x3932b4(0x272)])))[_0x3932b4(0x226)](_0x4a9438=>{const _0x513766=_0x3932b4;this[_0x513766(0x359)][_0x513766(0x2d2)](_0x4a9438);}));}['_initStatusComponent'](){const _0x438830=_0x78f52a;this[_0x438830(0x228)](this['_uiPartsService'][_0x438830(0x195)](_0x29adeb[_0x438830(0x315)],()=>_0x4afafa(Zt({'status$':this[_0x438830(0x359)][_0x438830(0x1e4)]()}),this['_injector'])));}};J=q([K(0x0,_0x1bb177),K(0x1,_0x471dd1(_0x521737)),K(0x2,_0x471dd1(_0xc1f731)),K(0x3,_0x7b5376)],J);function Zt(_0x169028){let {status$:_0x5cfd91}=_0x169028;return function(){return _0x376184(Jt,{'status$':_0x5cfd91});};}const Qt=_0x2a83d1(_0x78f52a(0x2c4));let Y=class extends _0x5ea1f5{constructor(_0x544bd1,_0x172137,_0x51b5ec,_0x923068,_0x288f9f){const _0x1aba83=_0x78f52a;super(),this[_0x1aba83(0x22d)]=_0x544bd1,this[_0x1aba83(0x394)]=_0x172137,this[_0x1aba83(0x253)]=_0x51b5ec,this[_0x1aba83(0x294)]=_0x923068,_0x288f9f?_0x288f9f==null||_0x288f9f[_0x1aba83(0x35e)]()[_0x1aba83(0x275)](()=>this[_0x1aba83(0x2df)]()):(this[_0x1aba83(0x394)][_0x1aba83(0x274)](_0x1aba83(0x367),_0x1aba83(0x208)),this[_0x1aba83(0x2df)]());}async[_0x78f52a(0x2df)](){const _0xf07753=_0x78f52a;let _0x4047db=this[_0xf07753(0x22d)][_0xf07753(0x356)](_0xf07753(0x27b)),_0x14c5da=this['_urlService'][_0xf07753(0x356)](_0xf07753(0x1c4)),_0x498a5a=this[_0xf07753(0x22d)][_0xf07753(0x356)](_0xf07753(0x302));if(!_0x4047db||!_0x14c5da){this['_logService']['debug'](_0xf07753(0x367),_0xf07753(0x317));return;}let _0x2a7ba7=await this['_dataLoaderService']['loadUnit'](_0x4047db,Number(_0x14c5da),_0x498a5a);_0x2a7ba7&&_0x2a7ba7 instanceof _0x17d0e1&&this[_0xf07753(0x2c0)](_0x2a7ba7);}async[_0x78f52a(0x2c0)](_0x11d12f){const _0x3aec41=_0x78f52a;await this[_0x3aec41(0x200)](_0x11d12f),_0x11d12f[_0x3aec41(0x36e)][_0x3aec41(0x1ba)](_0x3b565d(this[_0x3aec41(0x284)]))[_0x3aec41(0x226)](_0x18995f=>{const _0x2c86c3=_0x3aec41;_0x18995f&&this[_0x2c86c3(0x223)](_0x18995f);}),this[_0x3aec41(0x22d)]['urlChange$']['pipe'](_0x3b565d(this['dispose$']))[_0x3aec41(0x226)](()=>this[_0x3aec41(0x200)](_0x11d12f));}['_updateURLWithCurrentState'](_0x293448,_0x33c93e=!0x1){const _0x597c16=_0x78f52a;let _0x41cdf0=this['_urlService']['getParam'](_0x597c16(0x302));_0x293448[_0x597c16(0x37a)]()!==_0x41cdf0&&this[_0x597c16(0x22d)][_0x597c16(0x22f)]('subunit',_0x293448[_0x597c16(0x37a)](),_0x33c93e);}async['_updateSubUnitFromURLParams'](_0x210a60){const _0x413cbe=_0x78f52a;var _0x51fa58;let _0x57b9c7=this[_0x413cbe(0x22d)][_0x413cbe(0x356)](_0x413cbe(0x302));if(!_0x57b9c7||!_0x210a60[_0x413cbe(0x281)](_0x57b9c7)){let _0x7f4494=_0x210a60['getUnhiddenWorksheets']()[0x0],_0x557ef1=_0x210a60[_0x413cbe(0x281)](_0x7f4494);if(!_0x557ef1)return;this['_updateURLWithCurrentState'](_0x557ef1,!0x0),await this[_0x413cbe(0x253)]['executeCommand'](_0x40d432['id'],{'unitId':_0x210a60[_0x413cbe(0x270)](),'subUnitId':_0x7f4494});return;}((_0x51fa58=_0x210a60[_0x413cbe(0x385)]())==null?void 0x0:_0x51fa58[_0x413cbe(0x37a)]())!==_0x57b9c7&&await this[_0x413cbe(0x253)]['executeCommand'](_0x40d432['id'],{'unitId':_0x210a60[_0x413cbe(0x270)](),'subUnitId':_0x57b9c7});}};Y=q([K(0x0,Qt),K(0x1,_0x1a64fb),K(0x2,_0x5bc785),K(0x3,_0x471dd1(_0xfad37e)),K(0x4,_0x524186(_0x5f1632))],Y);function _0x44c5(){const _0x2980e6=['/universer-api/license/formula/limit/done','_handleEvent','_online','setActiveRange','assignAColorForMemberID','univer-flex\x20univer-items-center\x20univer-justify-center','MoveRangeCommandId','_session','_hover','getMemberID','17941850XnAumR','syncEditingCollabCursor','Enter','setInterval','_cursor','_collaborationController','subunit','_syncEditingCollabCursorService','message','_httpService','_initStatusListener','getMergeData','_shapes','rgb','_hovered','_initCommandInterceptor','stage','SUBMIT_CHANGESET_TIMEOUT','code','pulse','socket$','getColorFromTheme','univer-text-gray-400','InsertRangeMoveRightCommandId','highlight','HEADER_MENU','_showText','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_maxFormulaLimit','findNodePositionByCharIndex','UNIVER_DOC','getVpScrollXYInfoByPosToVp','string','_backgroundColor','setItem','onPointerEnter$','unsubscribe','icon','_selfUnitIDs','fillText','setOffsetY','undoState','enableLocalCache','_removeCollabCursors','_roomMembers$','_setFormulaLimitStatus','getTypeOfUnitDisposed$','_startCalculationLimit','_localStorageService','InsertRangeMoveDownCommandId','cursorInfo$','_handleLeaveEvent','yellow.400','_cursorShapes','_getSessionTicket','init','setShapeProps','makeDirty','urlChange$','onLocalMutation','docStateChange$','sessionStatus$','collaboration.offline-data-not-saved','_labelPosition','height','0.23.0','_toggleOffline','isEditing','_id','source','cursorInfo','red.300','session.will-retry','_textBubble','_cursorInfo$','default','UPDATE_CURSOR','fillRule','font','object','_getMergeRange','endRow','CONFLICT','doc.mutation.rich-text-editing','startColumn','catch','FromArray','push','JOIN_ROOM_FAILED','has','getParam','_drawAnchor','purple.300','_status$','transformMutation','endColumn','getRelativeToViewportCoord','_docSyncEditingCollabCursorService','whenReady','Failed','registerBeforeClose','\x20at\x20','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getMember','setTimeout','_checkCalculationAvailable','[LogService\x20Error]:\x20','[CollaborationDataLoaderController]','unitID','_applyCommand','_getScale','unitId','collabStatus.notCollab','data','activeSheet$','_collabSessionService','rgba(255,\x20255,\x20255,\x200.01)','flatMap','OFFLINE','_lastResponseTimestamp','span','getCollabCursors$','href','bottom','transformIMECache','roomMembers','getSheetId','true','getDocRanges','_docTransformStateCacheService','moveTo','event$','onRendered','_renderManagerService','RemoveRowCommandId','_docStateChangeManagerService','univer-text-orange-500','getActiveSheet','clearTimeout','clearInterval','_messageService','restore','call','key','colno','getCellMatrix','jiqing.500','disposeUnit','post','1649866MdMRFH','limitInfo','_config','_logService','_startSheetCollabCursor','_initWindowErrorListener','function','_getFormulaLimitStatus','_context','_colorIndex','_releaseCalculationLimit','pushState','#FFF','_scheduleClearOtherTimer','getRangePointData','get','delete','_onRefRangeChange','_send','saveTaskMap','runId','...','highlightSecond','_docTransformIMECacheService','Success','_heartbeatTimer','body','_memberService','createInstance','decorate','override','labelPosition','invokeId','_assignedColors','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','registerComponent','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onTransformChange$','arc','addObject','engine','searchParams','_notificationService','getFormulaLimitStatusUrl','location','getValue','lineTo','_unitStatus','all','shift','rgba','column','_collabCursorState$','prototype','size','_injector','parse','_localCacheService','UNIVER_SHEET','wsSessionTicketUrl','_instanceService','_unitOnClients','_startBlinking','width','black','stringify','strokeWidth','DeleteRangeMoveUpCommandId','_cachedData','measureText','_getSheetObject','mutations','pipe','_highlightSecond','complete','removeEventListener','enableFrontendLog','_drawRectRange','params','_collabCursorController','runOnServer','focused$','type','RECT','currentTheme$','_anchorDot','m1Prime','_univerInstanceService','_clearOtherTimers','/run/','resize','getAncestorScale','roomMembers$','InsertColCommandId','_collaborationUIEventService','transformSelections','stageInfo','beginPath','collab-text-range-','startsWith','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_configService','_transformUndoRedoStack','getUniverSheetInstance','startRow','111984FknfuS','error','getTypeOfUnitAdded$','_offsetY','session.connection-failed','isArray','m2Prime','_colorAssignService','row','asObservable','USERS_LEAVE','preventDefault','static','AWAITING','getRenderById','backgroundColor','SOCKET_FAILED_RETRY','_document','_uiPartsService','div','dispose','removeParam','InsertRowCommandId','_isBlinkVisible','_onCursorDelete','_registerRenderDependencies','fill','from','_updateCollabCursors','i18nKey','onCommandExecuted','origin','_lastPointer','replaceDocRanges','tooltipKey','addObjects','toRgbString','_updateSubUnitFromURLParams','95EpyqoG','586285DQhdkw','setAlpha','replace','getFocusedUnit','slice','8477631WLQwJA','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','length','_entityInit$','/universer-api/frontend/logs','Warning','_imageIoService','replaceState','_currentUsage','_disabled','indicator','_initEvent','fillStyle','reconnect','_initDependencies','TEXT','top','status$','_memberID','_sheetSkeletonManagerService','_uploadLog','collaboration.closeRoom','_blinkIntervalTimer','_localeService','_toggleOnline','_scheduleSaving','stack','_stopBlinking','_updateURLWithCurrentState',',\x200.2)','parseInt','subscribe','evenodd','disposeWithMe','_name','result','_docTransformSelectionsService','[Window\x20Error]:\x20','_urlService','_handleHeartbeatEvent','setParam','storage','transformMutationsWithChangeset','_handleHover','_draw','_handleJoinEvent','version','colorClass','status','MUTATION','transformRemoteChangeset','ticket','memberID','executionId','values','onPointerLeave$','Error','collabStatus.syncing','addHandlerCallback','_blinkTimer','getCollabEntity$','imageSourceType','_refreshCollabCursors','rgba(','152ALarmy','newValue','_getLighterColor','univer-inline-flex\x20univer-items-center\x20univer-justify-center','totalFormulasToCalculate','AWAITING_WITH_PENDING','getCurrentSelections','_color','min','getUnit','disableLocalCache','forEach','_commandService','hide','subscribeEvent','_initStatusComponent','updateOfflineData','collaboration.single-unit.warning','save','/universer-api/license/formula/limit/start','_saveCache','_initUserListener','color','saveOfflineData','_revisionService','_removeClearOtherTimer','DeleteRangeMoveLeftCommandId','green.600','add','getOwnPropertyDescriptor','constructor','onStarting','_initUnhandledRejectionListener','getCurrentSkeleton','collaboration-client-ui.config','getViewport','popstate','_eventUnsubscribe','polite','name','setConfig','getUnitId','Unknown\x20user','NOT_COLLAB','closePath','debug','then','split','join','_entities','getCellPositionByOffset','_ensureSubject','unit','200856cZMamu','button','22ietTsQ','now','_transformPreviousActiveRange','getSheetBySheetId','sheetId','_highlight','dispose$','textRanges','_taskIds','pluginName','_refRangeService','getStateCache','collab-rect-range-','some','_pollingInterval','_showGuardMessage','[Unhandled\x20Rejection]:\x20','_transformService','show','session.collaboration-timeout','_cursors','deepClone','_dataLoaderService','sheetID','text','send','spin','_startDocCollabCursor','registerRefRange','172521aSvqjX','_saveTaskMap','collabCursorState$','_range','collab-text-anchor-','_docSkeletonManagerService','_transformHistoryAndStateStack','getSkeleton','ranges','requireSession','_hideTimer','ACTIVE_UNIT_EVENT_CHANNEL','subUnitId','hovered','_render','2oIgkEc','CLOSE_ROOM','_initCommandExecutedListener','symbol','_getSaveTimeout','univer-text-green-500','_scene','univer-border-none\x20univer-bg-transparent','formula.calculation.waiting','0.2)','_beforeCloseService','exhaustSavingTask','_updateLocalCursor','_setupBeforeClosingHandler','unhandledrejection','getConfig','_onCursorUpdate','clickable','selections','SOCKET_FAILED','actions','_drawTextRange','_setupSubUnitSync','transformStateCache','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','eventID','uni.network.url-service','getItem','PERMISSION_DENIED','NO_OTHER_CLIENTS_EDITING','addEventListener','_themeService','contains','formula.calculation.started','_getAnchorBounding','_createSocketURL','_anchor','currentSkeleton$','bind','map','next','_initEntityListener','defineProperty','set','_registerDependencies','selection','redoState','offsetY','onMouseMove','with','_docClipboardService','_hasFormulaInDirtyRanges','ONLINE','_init','univer-transition-all\x20univer-duration-200','drawWith','_initResize','lineno','PENDING','toString','collabStatus.offline','blue.400','OTHER_CLIENT_EDITING','collabStatus.synced','_docSkeleton','isActive','search','_monkeyPatchLogService','getUndoRedoMutationParamsCache','OTHER_CLIENTS_EDITING','unshift','history'];_0x44c5=function(){return _0x2980e6;};return _0x44c5();}var $t='@univerjs-pro/collaboration-client-ui',en=_0x78f52a(0x33d);let tn=class extends _0x5ea1f5{constructor(_0x4c8be8,_0x4fee82){const _0x34fbc6=_0x78f52a;super(),this[_0x34fbc6(0x2dc)]=_0x4c8be8,this[_0x34fbc6(0x20d)]=_0x4fee82,this[_0x34fbc6(0x2df)]();}[_0x78f52a(0x2df)](){const _0xaad252=_0x78f52a;let _0x44538e=this;this[_0xaad252(0x228)](this[_0xaad252(0x2dc)]['addClipboardHook']({'onBeforePasteImage':async _0x5ac822=>{const _0xdc34ad=_0xaad252;let _0x375f3b=await _0x44538e[_0xdc34ad(0x20d)]['saveImage'](_0x5ac822);return _0x375f3b?{'source':_0x375f3b[_0xdc34ad(0x341)],'imageSourceType':_0x375f3b[_0xdc34ad(0x244)]}:null;}}));}};tn=q([K(0x0,_0x1dcd4d),K(0x1,_0x8e7d1f)],tn);const nn=[_0x78f52a(0x358),_0x78f52a(0x38e),_0x78f52a(0x262),_0x78f52a(0x343),_0x78f52a(0x2e7),_0x78f52a(0x330)];var rn=class extends _0x5dec83{constructor(..._0x53910d){const _0x488b49=_0x78f52a;super(..._0x53910d),G(this,_0x488b49(0x193),new Map()),G(this,_0x488b49(0x39a),0x0);}[_0x78f52a(0x2f6)](_0x4b3749){const _0x49976b=_0x78f52a;if(this[_0x49976b(0x193)][_0x49976b(0x355)](_0x4b3749))return this[_0x49976b(0x193)][_0x49976b(0x3a0)](_0x4b3749);let _0x364b35=nn[this['_colorIndex']];return this[_0x49976b(0x39a)]=(this[_0x49976b(0x39a)]+0x1)%nn['length'],this[_0x49976b(0x193)]['set'](_0x4b3749,_0x364b35),_0x364b35;}};function an(_0x65c247){let _0x221924='';for(let _0x4f5d07 of _0x65c247){let {startOffset:_0x179ac0,endOffset:_0x57c049,isActive:_0x29dd49,rangeType:_0x46a2a3,segmentId:_0x4e4c91,segmentPage:_0x5156d6}=_0x4f5d07;_0x221924['length']&&(_0x221924+=','),_0x221924+=_0x179ac0+':'+_0x57c049+':'+(_0x29dd49?'1':'0')+':'+_0x46a2a3+':'+_0x4e4c91+':'+_0x5156d6;}return _0x221924;}function on(_0x2d7813){const _0x14b252=_0x78f52a;let _0x4ba518=_0x2d7813[_0x14b252(0x276)](','),_0xf12322=[];for(let _0x25b271 of _0x4ba518){let [_0x520fa0,_0x39869a,_0xb42d02,_0xd1782c,_0x14b62b,_0x2bf513]=_0x25b271[_0x14b252(0x276)](':');_0xf12322[_0x14b252(0x353)]({'startOffset':Number(_0x520fa0),'endOffset':Number(_0x39869a),'collapsed':_0x520fa0===_0x39869a,'isActive':_0xb42d02==='1','rangeType':_0xd1782c===_0x50f474[_0x14b252(0x216)]?_0x50f474['TEXT']:_0x50f474['RECT'],'segmentId':typeof _0x14b62b==_0x14b252(0x31c)?String(_0x14b62b):'','segmentPage':Number(_0x2bf513==null?-0x1:_0x2bf513)});}return _0xf12322[_0x14b252(0x28b)](_0xf85342=>_0xf85342[_0x14b252(0x2eb)])||(_0xf12322[0x0][_0x14b252(0x2eb)]=!0x0),_0xf12322;}var sn=class extends _0x5ea1f5{constructor(..._0x52fd81){const _0x201549=_0x78f52a;super(..._0x52fd81),G(this,_0x201549(0x1a6),new _0x1e5306(null)),G(this,'collabCursorState$',this[_0x201549(0x1a6)][_0x201549(0x1e4)]());}[_0x78f52a(0x2fd)](_0x46ad84){const _0x45a3ff=_0x78f52a;let {unitID:_0x378be3,memberID:_0x187c74,textRanges:_0x332a47}=_0x46ad84,_0x2c75a5=an(_0x332a47);if(_0x2c75a5==='')return;let _0x20d142={'unitID':_0x378be3,'memberID':_0x187c74,'selection':_0x2c75a5};this[_0x45a3ff(0x1a6)][_0x45a3ff(0x2d2)](_0x20d142);}};let cn=class extends _0x5ea1f5{get['cursorInfo'](){const _0x5af363=_0x78f52a;return this[_0x5af363(0x346)][_0x5af363(0x19f)]();}get['roomMembers'](){const _0x32b806=_0x78f52a;return this['_roomMembers$'][_0x32b806(0x19f)]();}constructor(_0x33c38f,_0x31a9e0,_0x1d45a1,_0x28cb2b,_0x32ac7c,_0x1ccd80,_0x7ddaad,_0x49a4fa,_0xb95383){const _0xf02ba0=_0x78f52a;super(),this[_0xf02ba0(0x368)]=_0x33c38f,this[_0xf02ba0(0x2f9)]=_0x31a9e0,this[_0xf02ba0(0x1a9)]=_0x1d45a1,this['_colorAssignService']=_0x28cb2b,this[_0xf02ba0(0x18d)]=_0x32ac7c,this[_0xf02ba0(0x303)]=_0x1ccd80,this['_transformService']=_0x7ddaad,this['_univerInstanceService']=_0x49a4fa,this[_0xf02ba0(0x253)]=_0xb95383,G(this,_0xf02ba0(0x2f4),!0x1),G(this,'_init',!0x1),G(this,_0xf02ba0(0x346),new _0x1e5306(new Map())),G(this,'cursorInfo$',this[_0xf02ba0(0x346)][_0xf02ba0(0x1e4)]()),G(this,_0xf02ba0(0x328),new _0x1e5306([])),G(this,_0xf02ba0(0x1ce),this[_0xf02ba0(0x328)]['pipe'](_0xee5a10(0x12c))),G(this,_0xf02ba0(0x2b6),_0x195eb6(_0x4568cf=>{const _0x1d74dc=_0xf02ba0;let _0x1f56f1={'eventID':_0x5c2377[_0x1d74dc(0x348)],'data':{'unitID':this[_0x1d74dc(0x368)],'memberID':this['_session'][_0x1d74dc(0x2fb)](),'selection':an(_0x4568cf)}};this['_session']['send'](_0x1f56f1,this['unitID']);},0x64));}[_0x78f52a(0x1ef)](){const _0x1d63b6=_0x78f52a;super[_0x1d63b6(0x1ef)](),this[_0x1d63b6(0x346)]['next'](new Map()),this[_0x1d63b6(0x346)][_0x1d63b6(0x1bc)](),this[_0x1d63b6(0x328)][_0x1d63b6(0x2d2)]([]),this[_0x1d63b6(0x328)][_0x1d63b6(0x1bc)]();}['init'](){const _0x4cb101=_0x78f52a;this[_0x4cb101(0x2df)]||(this[_0x4cb101(0x2df)]=!0x0,this['_session']['sessionStatus$'][_0x4cb101(0x1ba)](_0x3b565d(this[_0x4cb101(0x284)]))[_0x4cb101(0x226)](_0x40ccd7=>{const _0x11d1e3=_0x4cb101;_0x40ccd7===_0x21a1b1[_0x11d1e3(0x2de)]?this['_toggleOnline']():this[_0x11d1e3(0x33e)]();}),this[_0x4cb101(0x2f9)]['event$']['pipe'](_0x3b565d(this[_0x4cb101(0x284)]))[_0x4cb101(0x226)](_0x4f5ffc=>{const _0x77e28b=_0x4cb101;let _0x5e552a=_0x4f5ffc[_0x77e28b(0x2c3)];_0x5e552a===_0x5c2377[_0x77e28b(0x348)]&&this[_0x77e28b(0x2ba)](_0x4f5ffc),_0x5e552a===_0x5c2377[_0x77e28b(0x1e5)]&&this['_onCursorDelete'](_0x4f5ffc);}),this['disposeWithMe'](this[_0x4cb101(0x253)][_0x4cb101(0x1f9)](_0x1228b4=>{const _0x44fed3=_0x4cb101;let _0x3ef860=_0x1228b4[_0x44fed3(0x1c0)];_0x3ef860!=null&&this[_0x44fed3(0x2f4)]&&_0x1228b4['id']===_0x99916c['id']&&_0x3ef860[_0x44fed3(0x36b)]===this[_0x44fed3(0x368)]&&_0x3ef860[_0x44fed3(0x33f)]===!0x1&&_0x3ef860[_0x44fed3(0x2a3)]['length']>0x0&&this['_updateLocalCursor'](_0x3ef860[_0x44fed3(0x2a3)]);})),this[_0x4cb101(0x303)][_0x4cb101(0x29d)][_0x4cb101(0x1ba)](_0x3b565d(this[_0x4cb101(0x284)]))['subscribe'](_0x277cff=>{const _0x5c7b4a=_0x4cb101;if((_0x277cff==null?void 0x0:_0x277cff[_0x5c7b4a(0x368)])!==this[_0x5c7b4a(0x368)])return;let _0x477f5e={'eventID':_0x5c2377[_0x5c7b4a(0x348)],'data':_0x277cff};this['_onCursorUpdate'](_0x477f5e);}),this[_0x4cb101(0x228)](this['_commandService']['onCommandExecuted'](_0x57c0c1=>{const _0x22ad9f=_0x4cb101;if(_0x57c0c1[_0x22ad9f(0x1c0)]==null)return;let _0x9d52db=_0x57c0c1[_0x22ad9f(0x1c0)];if(_0x57c0c1['id']!==_0x2127a2['id']||_0x9d52db[_0x22ad9f(0x36b)]!==this[_0x22ad9f(0x368)])return;let _0x2802df={'id':_0x22ad9f(0x34f),'params':_0x9d52db},_0x68d56e=this[_0x22ad9f(0x342)];for(let [_0x378c6a,_0x1b20a2]of _0x68d56e){let _0x314d3f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x22ad9f(0x368)],'actions':null,'textRanges':_0x1b20a2[_0x22ad9f(0x2a3)]}},_0x465aa6=this[_0x22ad9f(0x28f)][_0x22ad9f(0x35a)](_0x2802df,_0x314d3f,!0x1);if(_0x4f5252(_0x465aa6))throw _0x465aa6['error'];_0x68d56e[_0x22ad9f(0x2d5)](_0x378c6a,{..._0x1b20a2,'ranges':_0x465aa6['m2Prime'][_0x22ad9f(0x1c0)][_0x22ad9f(0x285)]});}queueMicrotask(()=>{const _0x551a70=_0x22ad9f;this[_0x551a70(0x346)]['next'](_0x68d56e);});})));}['_onCursorUpdate'](_0x42c8e2){const _0x23d268=_0x78f52a;var _0x5a1cf0,_0x568651;let {memberID:_0x4860c3,selection:_0xb6841c}=_0x42c8e2[_0x23d268(0x36d)],_0x11d257=on(_0xb6841c),_0x3ad8ea=(_0x5a1cf0=(_0x568651=this[_0x23d268(0x18d)]['getMember'](this[_0x23d268(0x368)],_0x4860c3))==null?void 0x0:_0x568651[_0x23d268(0x26e)])==null?_0x23d268(0x271):_0x5a1cf0,_0xb26362={'color':this[_0x23d268(0x1e2)][_0x23d268(0x2f6)](_0x4860c3),'name':_0x3ad8ea,'ranges':_0x11d257},_0x696785=this[_0x23d268(0x342)];_0x696785[_0x23d268(0x2d5)](_0x4860c3,_0xb26362),this['_cursorInfo$'][_0x23d268(0x2d2)](_0x696785);}[_0x78f52a(0x1f3)](_0x18d088){const _0x428686=_0x78f52a;let {memberID:_0x2e690f}=_0x18d088[_0x428686(0x36d)],_0x5a1bed=this[_0x428686(0x342)];_0x5a1bed[_0x428686(0x3a1)](_0x2e690f),this[_0x428686(0x346)][_0x428686(0x2d2)](_0x5a1bed);}[_0x78f52a(0x21f)](){const _0x4318fa=_0x78f52a;var _0x451e66;if(this[_0x4318fa(0x2f4)]=!0x0,((_0x451e66=this[_0x4318fa(0x1c9)]['getFocusedUnit']())==null?void 0x0:_0x451e66[_0x4318fa(0x270)]())!==this[_0x4318fa(0x368)])return;let _0x150d9a=this[_0x4318fa(0x1a9)]['get'](_0x3a7884)['getDocRanges']();Array[_0x4318fa(0x1e0)](_0x150d9a)&&_0x150d9a['length']>0x0&&this[_0x4318fa(0x2b6)](_0x150d9a);}[_0x78f52a(0x33e)](){const _0x55c43e=_0x78f52a;this[_0x55c43e(0x2f4)]=!0x1;}};cn=q([K(0x2,_0x471dd1(_0x521737)),K(0x3,_0x471dd1(rn)),K(0x4,_0x471dd1(_0x4ba23c)),K(0x5,_0x471dd1(sn)),K(0x6,_0x146812),K(0x7,_0x1bb177),K(0x8,_0x5bc785)],cn);const ln=()=>{let _0x220ade=[],_0x17be19=!0x1;return _0x5d9bec=>{const _0x239d6f=_0x1449;_0x220ade[_0x239d6f(0x353)](_0x5d9bec),_0x17be19||(_0x17be19=!0x0,setTimeout(()=>{const _0x274c73=_0x239d6f;_0x220ade[_0x274c73(0x252)](_0xf77a48=>_0xf77a48()),_0x220ade=[],_0x17be19=!0x1;}));};};let un=class extends _0x5ea1f5{get[_0x78f52a(0x342)](){const _0x159af4=_0x78f52a;return this[_0x159af4(0x346)][_0x159af4(0x19f)]();}get[_0x78f52a(0x379)](){const _0x5b5d38=_0x78f52a;return this[_0x5b5d38(0x328)][_0x5b5d38(0x19f)]();}constructor(_0x4e2a67,_0x539d3d,_0x8ca7b8,_0x590c81,_0x12e4a3,_0x2c6094,_0x401b7f,_0x213f6f){const _0x41dfa6=_0x78f52a;super(),this[_0x41dfa6(0x368)]=_0x4e2a67,this[_0x41dfa6(0x2f9)]=_0x539d3d,this['_injector']=_0x8ca7b8,this[_0x41dfa6(0x1e2)]=_0x590c81,this[_0x41dfa6(0x18d)]=_0x12e4a3,this[_0x41dfa6(0x1c9)]=_0x2c6094,this[_0x41dfa6(0x253)]=_0x401b7f,this[_0x41dfa6(0x288)]=_0x213f6f,G(this,'_online',!0x1),G(this,_0x41dfa6(0x2df),!0x1),G(this,_0x41dfa6(0x346),new _0x1e5306(new Map())),G(this,_0x41dfa6(0x32e),this[_0x41dfa6(0x346)][_0x41dfa6(0x1e4)]()),G(this,_0x41dfa6(0x328),new _0x1e5306([])),G(this,'roomMembers$',this[_0x41dfa6(0x328)][_0x41dfa6(0x1ba)](_0xee5a10(0x12c))),G(this,_0x41dfa6(0x2b6),_0x195eb6((_0x332df9,_0x114cec)=>{const _0x498b1b=_0x41dfa6;let _0x78b247={'eventID':_0x5c2377[_0x498b1b(0x348)],'data':{'unitID':this['unitID'],'memberID':this[_0x498b1b(0x2f9)][_0x498b1b(0x2fb)](),'selection':_0x34d8bf(_0x332df9,_0x114cec['range'])}};this[_0x498b1b(0x2f9)][_0x498b1b(0x297)](_0x78b247,this[_0x498b1b(0x368)]);},0x64));}[_0x78f52a(0x1ef)](){const _0x11c1a4=_0x78f52a;super[_0x11c1a4(0x1ef)](),this['_cursorInfo$'][_0x11c1a4(0x2d2)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$'][_0x11c1a4(0x2d2)]([]),this[_0x11c1a4(0x328)][_0x11c1a4(0x1bc)]();}['init'](){const _0x2d5367=_0x78f52a;this['_init']||(this[_0x2d5367(0x2df)]=!0x0,this['_session'][_0x2d5367(0x339)][_0x2d5367(0x1ba)](_0x3b565d(this['dispose$']))[_0x2d5367(0x226)](_0xf24416=>{const _0xefe345=_0x2d5367;_0xf24416===_0x21a1b1[_0xefe345(0x2de)]?this['_toggleOnline']():this[_0xefe345(0x33e)]();}),this['_session'][_0x2d5367(0x37f)][_0x2d5367(0x1ba)](_0x3b565d(this[_0x2d5367(0x284)]))['subscribe'](_0x37cff7=>{const _0x583d94=_0x2d5367;let _0x3f368c=_0x37cff7['eventID'];_0x3f368c===_0x5c2377['UPDATE_CURSOR']&&this[_0x583d94(0x2ba)](_0x37cff7),_0x3f368c===_0x5c2377[_0x583d94(0x1e5)]&&this[_0x583d94(0x1f3)](_0x37cff7);}),this['_onRefRangeChange'](),this[_0x2d5367(0x228)](this['_commandService'][_0x2d5367(0x1f9)](_0x53751a=>{const _0x3a8aba=_0x2d5367;if(this[_0x3a8aba(0x2f4)]&&_0x53751a['id']===_0x301a7f['id']&&_0x53751a['params'][_0x3a8aba(0x36b)]===this['unitID']){let _0x36b7c9=_0x53751a[_0x3a8aba(0x1c0)];this[_0x3a8aba(0x2b6)](_0x36b7c9[_0x3a8aba(0x2a7)],_0x36b7c9[_0x3a8aba(0x2bc)][0x0]);}})));}['_onCursorUpdate'](_0x1672f0){const _0xeb6df4=_0x78f52a;var _0x299265,_0x1c9afc;let {memberID:_0x227aaa,selection:_0x595a11}=_0x1672f0[_0xeb6df4(0x36d)],{sheetName:_0x17db0e,range:_0x1d5f26}=_0x1dabf3(_0x595a11),_0xd402a3={'name':(_0x299265=(_0x1c9afc=this[_0xeb6df4(0x18d)][_0xeb6df4(0x363)](this[_0xeb6df4(0x368)],_0x227aaa))==null?void 0x0:_0x1c9afc[_0xeb6df4(0x26e)])==null?_0xeb6df4(0x271):_0x299265,'range':this[_0xeb6df4(0x34c)](_0x17db0e,_0x1d5f26),'sheetID':_0x17db0e,'color':this[_0xeb6df4(0x1e2)][_0xeb6df4(0x2f6)](_0x227aaa),'selection':_0x595a11},_0x566fb4=this[_0xeb6df4(0x342)];_0x566fb4[_0xeb6df4(0x2d5)](_0x227aaa,_0xd402a3),this[_0xeb6df4(0x346)][_0xeb6df4(0x2d2)](_0x566fb4);}['_onCursorDelete'](_0x16920b){const _0x24dcfc=_0x78f52a;let {memberID:_0x250902}=_0x16920b[_0x24dcfc(0x36d)],_0x19eae1=this['cursorInfo'];_0x19eae1[_0x24dcfc(0x3a1)](_0x250902),this['_cursorInfo$']['next'](_0x19eae1);}[_0x78f52a(0x34c)](_0x4f96c7,_0x4a07ec){const _0x3b3bbd=_0x78f52a;var _0x399672;let _0x59e6b5=(_0x399672=this['_univerInstanceService'][_0x3b3bbd(0x1d9)](this[_0x3b3bbd(0x368)]))==null||(_0x399672=_0x399672[_0x3b3bbd(0x281)](_0x4f96c7))==null?void 0x0:_0x399672[_0x3b3bbd(0x307)]();return(_0x59e6b5==null?void 0x0:_0x59e6b5['find'](_0x1ff14f=>_0x4b5558[_0x3b3bbd(0x2ca)](_0x1ff14f,_0x4a07ec)))||_0x4a07ec;}[_0x78f52a(0x3a2)](){const _0x4978c7=_0x78f52a;let _0x470a00=new _0x3711b4(),_0x25cd17=ln(),_0x34e9a6=()=>{const _0x205937=_0x1449;_0x470a00[_0x205937(0x1ef)]();let _0x3a53ea=(_0x36946a,_0x745b4d,_0x433cbe,_0x183620)=>{const _0x1aa414=_0x205937;let _0x1b8123=[];switch(_0x36946a['id']){case _0x18e6fe[_0x1aa414(0x261)]:_0x1b8123=_0x1ad0db(_0x36946a,_0x183620);break;case _0x18e6fe[_0x1aa414(0x1b5)]:_0x1b8123=_0x5ad278(_0x36946a,_0x183620);break;case _0x18e6fe[_0x1aa414(0x1cf)]:_0x1b8123=_0x494a94(_0x36946a,_0x183620);break;case _0x18e6fe[_0x1aa414(0x32d)]:_0x1b8123=_0x1f8107(_0x36946a,_0x183620);break;case _0x18e6fe[_0x1aa414(0x313)]:_0x1b8123=_0xc69b53(_0x36946a,_0x183620);break;case _0x18e6fe[_0x1aa414(0x1f1)]:_0x1b8123=_0x2ee3c4(_0x36946a,_0x183620);break;case _0x18e6fe[_0x1aa414(0x2f8)]:_0x1b8123=_0x11f157(_0x36946a,_0x183620);break;case _0x18e6fe['RemoveColCommandId']:_0x1b8123=_0xdb7c69(_0x36946a,_0x183620);break;case _0x18e6fe[_0x1aa414(0x382)]:_0x1b8123=_0x14d207(_0x36946a,_0x183620);break;}let _0x58dbf2=_0x285472(_0x1b8123,_0x183620),_0x93e73d=this[_0x1aa414(0x342)][_0x1aa414(0x3a0)](_0x745b4d);if(_0x93e73d&&_0x58dbf2){let _0x395797={..._0x93e73d,'range':_0x58dbf2};this[_0x1aa414(0x342)][_0x1aa414(0x2d5)](_0x745b4d,_0x395797),_0x25cd17(()=>{const _0x3b723b=_0x1aa414;let _0x5e0849=this[_0x3b723b(0x288)][_0x3b723b(0x29a)](_0x58dbf2,_0x334c28=>(_0x5e0849[_0x3b723b(0x1ef)](),_0x3a53ea(_0x334c28,_0x745b4d,_0x433cbe,_0x58dbf2)));_0x470a00[_0x3b723b(0x263)](_0x5e0849);});}return{'redos':[],'undos':[]};};this[_0x205937(0x342)][_0x205937(0x252)]((_0x5246f1,_0x3ccb67)=>{const _0x4ac11c=_0x205937;let {range:_0x1116b5,sheetID:_0x34af11}=_0x5246f1,_0x62aed3=this[_0x4ac11c(0x288)]['registerRefRange'](_0x1116b5,_0x2dc845=>(_0x62aed3['dispose'](),_0x3a53ea(_0x2dc845,_0x3ccb67,_0x34af11,_0x1116b5)));_0x470a00[_0x4ac11c(0x263)](_0x62aed3);});};this[_0x4978c7(0x228)](_0x1c3a83(this[_0x4978c7(0x346)][_0x4978c7(0x226)](()=>{_0x34e9a6();})));}[_0x78f52a(0x21f)](){const _0x538610=_0x78f52a;var _0x38e4d3,_0x3581f0;if(this['_online']=!0x0,((_0x38e4d3=this['_univerInstanceService'][_0x538610(0x205)]())==null?void 0x0:_0x38e4d3['getUnitId']())!==this[_0x538610(0x368)])return;let _0x5e71a5=(_0x3581f0=this['_injector'][_0x538610(0x3a0)](_0x381779)[_0x538610(0x24d)]())==null?void 0x0:_0x3581f0[0x0],_0x476ac1=this['_univerInstanceService']['getCurrentUnitForType'](_0x502294[_0x538610(0x1ac)])[_0x538610(0x385)]();_0x5e71a5&&_0x476ac1&&this[_0x538610(0x2b6)](_0x476ac1[_0x538610(0x37a)](),_0x5e71a5);}[_0x78f52a(0x33e)](){const _0x50173e=_0x78f52a;this[_0x50173e(0x2f4)]=!0x1;}};un=q([K(0x2,_0x471dd1(_0x521737)),K(0x3,_0x471dd1(rn)),K(0x4,_0x471dd1(_0x4ba23c)),K(0x5,_0x1bb177),K(0x6,_0x5bc785),K(0x7,_0x471dd1(_0x11dcd4))],un);let X=class extends _0x5ea1f5{constructor(_0x4da1a3,_0x59b03f,_0xb79443){const _0x1d49c8=_0x78f52a;super(),this[_0x1d49c8(0x1c9)]=_0x4da1a3,this['_injector']=_0x59b03f,this[_0x1d49c8(0x36f)]=_0xb79443,G(this,_0x1d49c8(0x278),new Map()),G(this,_0x1d49c8(0x20a),new _0x4ce640()),this[_0x1d49c8(0x2df)]();}[_0x78f52a(0x1ef)](){const _0x472552=_0x78f52a;super[_0x472552(0x1ef)](),this[_0x472552(0x20a)][_0x472552(0x1bc)](),this[_0x472552(0x278)][_0x472552(0x252)](_0x564e8e=>_0x564e8e[_0x472552(0x1ef)]());}[_0x78f52a(0x375)](_0x73843a){const _0x585fd5=_0x78f52a;return this[_0x585fd5(0x278)][_0x585fd5(0x355)](_0x73843a)?this['_entities'][_0x585fd5(0x3a0)](_0x73843a)['cursorInfo$']:this['_entityInit$']['pipe'](_0x4b0b9d(_0x38d299=>_0x38d299['unitID']===_0x73843a),_0x3e1fd4(_0x26d8ca=>_0x26d8ca[_0x585fd5(0x32e)]));}[_0x78f52a(0x2df)](){const _0x31a14c=_0x78f52a;this['_univerInstanceService'][_0x31a14c(0x1dd)](_0x502294['UNIVER_SHEET'])['pipe'](_0x3b565d(this[_0x31a14c(0x284)]))[_0x31a14c(0x226)](async _0x13b545=>{const _0x27e841=_0x31a14c;let _0x5b48b9=_0x13b545[_0x27e841(0x27b)][_0x27e841(0x270)](),_0x37e9b1=await this[_0x27e841(0x395)](_0x5b48b9);this[_0x27e841(0x20a)][_0x27e841(0x2d2)](_0x37e9b1),this[_0x27e841(0x278)][_0x27e841(0x2d5)](_0x5b48b9,_0x37e9b1);}),this[_0x31a14c(0x1c9)]['getTypeOfUnitAdded$'](_0x502294['UNIVER_DOC'])['pipe'](_0x3b565d(this[_0x31a14c(0x284)]))[_0x31a14c(0x1ba)](_0x4b0b9d(_0x349c11=>!_0x349c11['unit']['getUnitId']()['startsWith']('__')))[_0x31a14c(0x226)](async _0x5593ad=>{const _0x31669a=_0x31a14c;let {unit:_0x1b4a42}=_0x5593ad,_0x18d4be=_0x1b4a42['getUnitId'](),_0x1dc6b1=await this[_0x31669a(0x299)](_0x18d4be);this[_0x31669a(0x20a)][_0x31669a(0x2d2)](_0x1dc6b1),this[_0x31669a(0x278)][_0x31669a(0x2d5)](_0x18d4be,_0x1dc6b1);}),_0x56e0d9(this[_0x31a14c(0x1c9)][_0x31a14c(0x32a)](_0x502294[_0x31a14c(0x31a)]),this[_0x31a14c(0x1c9)][_0x31a14c(0x32a)](_0x502294['UNIVER_SHEET']))[_0x31a14c(0x1ba)](_0x3b565d(this[_0x31a14c(0x284)]))[_0x31a14c(0x226)](_0x1cb14e=>{const _0xcc6f29=_0x31a14c;let _0x1e7277=_0x1cb14e[_0xcc6f29(0x270)](),_0x5de73c=this['_entities'][_0xcc6f29(0x3a0)](_0x1e7277);_0x5de73c&&(_0x5de73c['dispose'](),this[_0xcc6f29(0x278)][_0xcc6f29(0x3a1)](_0x1e7277));});}async[_0x78f52a(0x395)](_0x579cfc){const _0x28d49c=_0x78f52a;let _0x309d4b=await this[_0x28d49c(0x36f)][_0x28d49c(0x2a4)](_0x579cfc),_0x255085=this[_0x28d49c(0x1a9)][_0x28d49c(0x18e)](un,_0x579cfc,_0x309d4b);return _0x255085[_0x28d49c(0x333)](),_0x255085;}async[_0x78f52a(0x299)](_0x419039){const _0x225dd6=_0x78f52a;let _0x563457=await this[_0x225dd6(0x36f)][_0x225dd6(0x2a4)](_0x419039),_0x2edeff=this[_0x225dd6(0x1a9)][_0x225dd6(0x18e)](cn,_0x419039,_0x563457);return _0x2edeff['init'](),_0x2edeff;}};X=q([K(0x0,_0x1bb177),K(0x1,_0x471dd1(_0x521737)),K(0x2,_0x471dd1(_0x285fda))],X);function dn(_0x524338,_0x2663dd){const _0x11ead1=_0x78f52a;var _0x36aa8f,_0x1db27e,_0x25bd87;let {radius:_0x337c50,width:_0x47546a,height:_0x27a54f}=_0x2663dd;_0x337c50=(_0x36aa8f=_0x337c50)==null?0x0:_0x36aa8f,_0x47546a=(_0x1db27e=_0x47546a)==null?0x1e:_0x1db27e,_0x27a54f=(_0x25bd87=_0x27a54f)==null?0x1e:_0x25bd87;let _0x163da9=0x0,_0x431950=0x0,_0x50d535=0x0;_0x163da9=_0x431950=_0x50d535=Math[_0x11ead1(0x24f)](_0x337c50,_0x47546a/0x2,_0x27a54f/0x2),_0x524338[_0x11ead1(0x1d3)](),_0x524338[_0x11ead1(0x37e)](_0x163da9,0x0),_0x524338['lineTo'](_0x47546a-_0x431950,0x0),_0x524338['arc'](_0x47546a-_0x431950,_0x431950,_0x431950,Math['PI']*0x3/0x2,0x0,!0x1),_0x524338[_0x11ead1(0x1a0)](_0x47546a,_0x27a54f-_0x50d535),_0x524338[_0x11ead1(0x198)](_0x47546a-_0x50d535,_0x27a54f-_0x50d535,_0x50d535,0x0,Math['PI']/0x2,!0x1),_0x524338['lineTo'](0x0,_0x27a54f),_0x524338['lineTo'](0x0,_0x163da9),_0x524338[_0x11ead1(0x198)](_0x163da9,_0x163da9,_0x163da9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x524338[_0x11ead1(0x273)](),_0x2663dd[_0x11ead1(0x1f5)]&&(_0x524338[_0x11ead1(0x259)](),_0x524338[_0x11ead1(0x213)]=_0x2663dd[_0x11ead1(0x1f5)],_0x2663dd[_0x11ead1(0x349)]===_0x11ead1(0x227)?_0x524338[_0x11ead1(0x1f5)]('evenodd'):_0x524338[_0x11ead1(0x1f5)](),_0x524338[_0x11ead1(0x389)]());}var fn=class e extends _0xd6db75{constructor(_0x22b17a,_0xfe3fa3){const _0x13b47b=_0x78f52a;super(_0x22b17a,_0xfe3fa3),G(this,_0x13b47b(0x25d),void 0x0),G(this,_0x13b47b(0x296),void 0x0),this[_0x13b47b(0x25d)]=_0xfe3fa3==null?void 0x0:_0xfe3fa3[_0x13b47b(0x25d)],this['text']=_0xfe3fa3==null?void 0x0:_0xfe3fa3[_0x13b47b(0x296)];}static[_0x78f52a(0x2e1)](_0x9aa3e3,_0x1c6a01){const _0x5a50b9=_0x78f52a;let {text:_0xd5dbff,color:_0x4f52c4}=_0x1c6a01;_0x9aa3e3[_0x5a50b9(0x259)](),_0x9aa3e3[_0x5a50b9(0x34a)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x366a32=_0x9aa3e3[_0x5a50b9(0x1b7)](_0xd5dbff)[_0x5a50b9(0x1b1)];if(dn(_0x9aa3e3,{'height':0x14,'radius':0x4,'width':Math[_0x5a50b9(0x24f)](_0x366a32+0x8,0xc8),'fill':_0x4f52c4,'evented':!0x1}),_0x9aa3e3[_0x5a50b9(0x213)]=_0x5a50b9(0x39d),_0x366a32>0xc0){let _0x5c01e0='',_0x5cf799=0x0;for(let _0x1f29c9 of _0xd5dbff){let _0x349491=_0x9aa3e3[_0x5a50b9(0x1b7)](_0x1f29c9)[_0x5a50b9(0x1b1)];if(_0x5cf799+_0x349491<=0xc0-_0x9aa3e3[_0x5a50b9(0x1b7)](_0x5a50b9(0x3a6))[_0x5a50b9(0x1b1)])_0x5c01e0+=_0x1f29c9,_0x5cf799+=_0x349491;else{_0x5c01e0+='...';break;}}_0x9aa3e3[_0x5a50b9(0x323)](_0x5c01e0,0x4,0xf);}else _0x9aa3e3[_0x5a50b9(0x323)](_0xd5dbff,0x4,0xf);_0x9aa3e3[_0x5a50b9(0x389)]();}[_0x78f52a(0x233)](_0x47cfb1){const _0x42917e=_0x78f52a;e[_0x42917e(0x2e1)](_0x47cfb1,this);}};const pn=_0x78f52a(0x29f);var mn=class{constructor(_0x4b9d70,_0x327606,_0x14084d,_0x3b413e){const _0x4c7cfd=_0x78f52a;this[_0x4c7cfd(0x300)]=_0x4b9d70,this['_scene']=_0x327606,this[_0x4c7cfd(0x2ea)]=_0x14084d,this[_0x4c7cfd(0x1ec)]=_0x3b413e,G(this,_0x4c7cfd(0x308),[]),G(this,_0x4c7cfd(0x2ce),null),G(this,_0x4c7cfd(0x345),null),G(this,'_anchorDot',null),G(this,'_hideTimer',null),G(this,'_eventUnsubscribe',null),this['_render']();}set['_hover'](_0x52d32f){const _0xc74b4b=_0x78f52a;_0x52d32f?(this[_0xc74b4b(0x1c7)]&&this[_0xc74b4b(0x1c7)][_0xc74b4b(0x254)](),this[_0xc74b4b(0x345)]&&this[_0xc74b4b(0x345)][_0xc74b4b(0x290)]()):(this[_0xc74b4b(0x1c7)]&&this[_0xc74b4b(0x1c7)]['show'](),this[_0xc74b4b(0x345)]&&this[_0xc74b4b(0x345)][_0xc74b4b(0x254)]());}[_0x78f52a(0x1ef)](){const _0x2ce6df=_0x78f52a;for(let _0x4f08a5 of this['_shapes'])_0x4f08a5[_0x2ce6df(0x1ef)]();this[_0x2ce6df(0x345)]&&this[_0x2ce6df(0x345)][_0x2ce6df(0x1ef)](),this[_0x2ce6df(0x1c7)]&&this[_0x2ce6df(0x1c7)][_0x2ce6df(0x1ef)](),this[_0x2ce6df(0x2ce)]&&this[_0x2ce6df(0x2ce)][_0x2ce6df(0x1ef)](),this[_0x2ce6df(0x26c)]&&this[_0x2ce6df(0x26c)]();}[_0x78f52a(0x2a9)](){const _0x1bc9c4=_0x78f52a;let {_docSkeleton:_0x47a05b,_document:_0x4ae94c}=this,{color:_0x2925b4,name:_0xca2276,ranges:_0x5b35c7}=this['_cursor'],_0x4afb0c=_0x4ae94c['getOffsetConfig'](),{docsLeft:_0x2febc8,docsTop:_0xdccdae}=_0x4afb0c,_0xf1f38b=new _0x425637(_0x4afb0c,_0x47a05b);for(let {startOffset:_0x4f9598,endOffset:_0x5af0c5,rangeType:_0x17dd61,segmentId:_0x43f8b9,segmentPage:_0x170a2e,collapsed:_0x5ce0c7,isActive:_0x565eb9}of _0x5b35c7){let _0x5d0170=_0x47a05b[_0x1bc9c4(0x319)](_0x4f9598,!0x0,_0x43f8b9,_0x170a2e),_0x34630f=_0x47a05b['findNodePositionByCharIndex'](_0x5af0c5,!0x0,_0x43f8b9,_0x170a2e);if(_0x34630f==null&&(_0x34630f=_0x47a05b[_0x1bc9c4(0x319)](_0x5af0c5-0x1,!0x1,_0x43f8b9,_0x170a2e)),_0x565eb9){let {contentBoxPointGroup:_0x4293e2}=_0xf1f38b[_0x1bc9c4(0x39f)](_0x34630f,_0x34630f);if(_0x4293e2['length']===0x0)continue;this[_0x1bc9c4(0x357)](_0x2925b4,_0x4293e2,_0x2febc8,_0xdccdae,_0xca2276),this[_0x1bc9c4(0x26c)]=this[_0x1bc9c4(0x232)]();}if(_0x5d0170&&_0x34630f){if(_0x17dd61===_0x50f474[_0x1bc9c4(0x1c5)]){var _0x1e3495;let {pointGroup:_0x393b49}=(_0x1e3495=new _0x202bbb(_0x4afb0c,_0x47a05b)[_0x1bc9c4(0x39f)](_0x5d0170,_0x34630f))==null?{}:_0x1e3495;if(_0x393b49==null||_0x393b49[_0x1bc9c4(0x209)]===0x0)continue;this[_0x1bc9c4(0x1bf)](_0x2925b4,_0x393b49,_0x2febc8,_0xdccdae);}else{if(!_0x5ce0c7){let {borderBoxPointGroup:_0x43e350}=_0xf1f38b['getRangePointData'](_0x5d0170,_0x34630f);if(_0x43e350[_0x1bc9c4(0x209)]===0x0)continue;this[_0x1bc9c4(0x2bf)](_0x2925b4,_0x43e350,_0x2febc8,_0xdccdae);}}}}}[_0x78f52a(0x357)](_0x56fddc,_0x5f545f,_0x130325,_0x98bedb,_0x5673be){const _0x38fa6f=_0x78f52a;let {left:_0x47d434,top:_0x37f036,height:_0x352b38}=this[_0x38fa6f(0x2cc)](_0x5f545f),_0x253a2a=1.5/this[_0x38fa6f(0x36a)](),_0x22cd12=new _0x4dda2e(pn+_0x91b72(0x6),{'left':_0x47d434+_0x130325-_0x253a2a,'top':_0x37f036+_0x98bedb,'height':_0x352b38,'width':1.5,'fill':_0x56fddc||_0x11c43f(_0x144b37['black'],0x0),'strokeWidth':_0x253a2a,'stroke':_0x38fa6f(0x370),'evented':!0x0});this['_anchor']=_0x22cd12,this[_0x38fa6f(0x2b0)][_0x38fa6f(0x199)](_0x22cd12,_0x3fb838);let _0x2a5298=new _0x4dda2e(pn+_0x91b72(0x6),{'left':_0x47d434+_0x130325-_0x253a2a,'top':_0x37f036+_0x98bedb-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x56fddc||_0x11c43f(_0x144b37[_0x38fa6f(0x1b2)],0x0),'strokeWidth':0x0,'stroke':_0x56fddc||_0x11c43f(_0x144b37[_0x38fa6f(0x1b2)],0x0),'evented':!0x1});this[_0x38fa6f(0x1c7)]=_0x2a5298,this[_0x38fa6f(0x2b0)][_0x38fa6f(0x199)](_0x2a5298,_0x3fb838);let _0x575dfc=new fn(pn+_0x91b72(0x6),{'left':_0x47d434+_0x130325-_0x253a2a,'top':_0x37f036+_0x98bedb-0x14,'text':_0x5673be,'color':_0x56fddc});this[_0x38fa6f(0x345)]=_0x575dfc,this[_0x38fa6f(0x2b0)][_0x38fa6f(0x199)](_0x575dfc,_0x3fb838),this[_0x38fa6f(0x2fa)]=!0x1;}[_0x78f52a(0x232)](){const _0x2d2b72=_0x78f52a;let _0x1090d3=this[_0x2d2b72(0x2ce)]['onPointerEnter$'][_0x2d2b72(0x255)](()=>{const _0x1c642e=_0x2d2b72;this[_0x1c642e(0x2fa)]=!0x0;}),_0x43d0d6=this['_anchor']['onPointerLeave$'][_0x2d2b72(0x255)](()=>{const _0x25680c=_0x2d2b72;this[_0x25680c(0x2a5)]&&clearTimeout(this[_0x25680c(0x2a5)]),this['_hideTimer']=setTimeout(()=>{const _0x4681ee=_0x25680c;this[_0x4681ee(0x2fa)]=!0x1;},0x7d0);});return()=>{const _0x5b03b1=_0x2d2b72;_0x1090d3[_0x5b03b1(0x320)](),_0x43d0d6[_0x5b03b1(0x320)]();};}[_0x78f52a(0x2bf)](_0x154fbe,_0x2888dc,_0xebb684,_0x56266a){const _0x44abc6=_0x78f52a;let _0xfb1e66=0.2,_0x38a36c=new _0x295985(_0x154fbe)[_0x44abc6(0x203)](_0xfb1e66)[_0x44abc6(0x1ff)](),_0x1ff579=new _0x548fb1(_0x44abc6(0x1d4)+_0x91b72(0x6),{'pointsGroup':_0x2888dc,'fill':_0x38a36c||_0x11c43f(_0x144b37['black'],_0xfb1e66),'left':_0xebb684,'top':_0x56266a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x44abc6(0x308)][_0x44abc6(0x353)](_0x1ff579),this[_0x44abc6(0x2b0)][_0x44abc6(0x199)](_0x1ff579,_0x3fb838);}[_0x78f52a(0x1bf)](_0x891aa0,_0x951523,_0x110b23,_0x2ac74f){const _0x1a2a6b=_0x78f52a;let _0x2c133c=0.2,_0x686b3=new _0x295985(_0x891aa0)[_0x1a2a6b(0x203)](_0x2c133c)['toRgbString'](),_0x3cdf61=new _0x548fb1(_0x1a2a6b(0x28a)+_0x91b72(0x6),{'pointsGroup':_0x951523,'fill':_0x686b3||_0x11c43f(_0x144b37[_0x1a2a6b(0x1b2)],_0x2c133c),'left':_0x110b23,'top':_0x2ac74f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a2a6b(0x308)][_0x1a2a6b(0x353)](_0x3cdf61),this[_0x1a2a6b(0x2b0)][_0x1a2a6b(0x199)](_0x3cdf61,_0x3fb838);}[_0x78f52a(0x2cc)](_0x3b9ce9){let _0x97ff50=_0x3b9ce9[0x0],_0x2f68fd=_0x97ff50[0x0],_0x4a2a1d=_0x97ff50[0x2],{x:_0xfb59d,y:_0x487c69}=_0x2f68fd,{x:_0x41e85b,y:_0x5bad64}=_0x4a2a1d;return{'left':_0xfb59d,'top':_0x487c69,'width':_0x41e85b-_0xfb59d,'height':_0x5bad64-_0x487c69};}[_0x78f52a(0x36a)](){const _0x1a0cb8=_0x78f52a;let {scaleX:_0x1ac779,scaleY:_0xe7186d}=this[_0x1a0cb8(0x2b0)][_0x1a0cb8(0x1cd)]();return Math['max'](_0x1ac779,_0xe7186d);}};let hn=class extends _0x5ea1f5{constructor(_0x196793,_0x228234,_0x51eeb8,_0x1cc4d4,_0x36a682){const _0x2deaf6=_0x78f52a;super(),this[_0x2deaf6(0x399)]=_0x196793,this['_docSkeletonManagerService']=_0x228234,this[_0x2deaf6(0x1c1)]=_0x51eeb8,this[_0x2deaf6(0x253)]=_0x1cc4d4,this[_0x2deaf6(0x2c9)]=_0x36a682,G(this,_0x2deaf6(0x331),[]),G(this,_0x2deaf6(0x292),[]),this['_init']();}[_0x78f52a(0x2df)](){const _0x1ef363=_0x78f52a;let _0x16a88f=this[_0x1ef363(0x399)][_0x1ef363(0x36b)],_0x2071d3=this['_docSkeletonManagerService'];this[_0x1ef363(0x228)](_0x94f8d2([this['_collabCursorController'][_0x1ef363(0x375)](_0x16a88f),this[_0x1ef363(0x2c9)][_0x1ef363(0x1c6)]])[_0x1ef363(0x1ba)](_0x14c126(([_0x54a63a,_0x48149d])=>({'skeleton':_0x2071d3['getSkeleton'](),'cursors':[..._0x54a63a[_0x1ef363(0x23d)]()][_0x1ef363(0x371)](_0x1af7ec=>({..._0x1af7ec,'color':this[_0x1ef363(0x2c9)][_0x1ef363(0x311)](_0x1af7ec[_0x1ef363(0x25d)])}))})))[_0x1ef363(0x226)](_0x40810c=>{const _0x2cf206=_0x1ef363;if(this[_0x2cf206(0x327)](),_0x40810c){let {skeleton:_0x522130,cursors:_0x5c76d3}=_0x40810c;this[_0x2cf206(0x1f7)](_0x522130,_0x5c76d3);}})),this['_initResize'](),this[_0x1ef363(0x2ac)]();}[_0x78f52a(0x1f7)](_0xdc4da7,_0xbee263){const _0x19e5d8=_0x78f52a;let {scene:_0x3a862d,mainComponent:_0x30574c}=this[_0x19e5d8(0x399)],_0x1a7ad2=_0xbee263[_0x19e5d8(0x2d1)](_0x288d75=>new mn(_0x288d75,_0x3a862d,_0xdc4da7,_0x30574c));this['_cursorShapes']=_0x1a7ad2,this[_0x19e5d8(0x292)]=_0xbee263;}[_0x78f52a(0x245)](){const _0x14d5ec=_0x78f52a;this[_0x14d5ec(0x327)]();let {scene:_0x266bb5,mainComponent:_0x29e73d}=this[_0x14d5ec(0x399)],_0x7e1859=this[_0x14d5ec(0x2a0)][_0x14d5ec(0x2a2)](),_0x5b8747=this['_cursors']['map'](_0x1089b0=>new mn(_0x1089b0,_0x266bb5,_0x7e1859,_0x29e73d));this[_0x14d5ec(0x331)]=_0x5b8747;}['_removeCollabCursors'](){const _0x585f2b=_0x78f52a;this['_cursorShapes'][_0x585f2b(0x252)](_0x1e0f3f=>_0x1e0f3f[_0x585f2b(0x1ef)]()),this[_0x585f2b(0x331)]=[];}[_0x78f52a(0x2ac)](){const _0x461a0b=_0x78f52a;let _0x2bc936=[_0x4ee0d6['id']];this[_0x461a0b(0x228)](this['_commandService'][_0x461a0b(0x1f9)](_0x28dfbc=>{const _0x58732e=_0x461a0b;_0x2bc936['includes'](_0x28dfbc['id'])&&_0x28dfbc[_0x58732e(0x1c0)][_0x58732e(0x36b)]===this[_0x58732e(0x399)][_0x58732e(0x36b)]&&this[_0x58732e(0x245)]();}));}[_0x78f52a(0x2e2)](){const _0x42f2f5=_0x78f52a;this[_0x42f2f5(0x228)](_0x1684ee(this[_0x42f2f5(0x399)][_0x42f2f5(0x19a)][_0x42f2f5(0x197)])[_0x42f2f5(0x1ba)](_0x184655(_0x1351e5=>_0x1351e5['type']===_0x19b3c0[_0x42f2f5(0x1cc)]),_0x2cc60d(0x10))[_0x42f2f5(0x226)](()=>{this['_refreshCollabCursors']();}));}};hn=q([K(0x1,_0x471dd1(_0xf2d3f7)),K(0x2,_0x471dd1(X)),K(0x3,_0x5bc785),K(0x4,_0x471dd1(_0x36040c))],hn);var gn=class extends _0xd6db75{constructor(_0x278e8a,_0x40ebcb){const _0x2e721e=_0x78f52a;if(super(_0x278e8a,_0x40ebcb),G(this,'_color',void 0x0),G(this,_0x2e721e(0x30a),!0x1),G(this,'_range',void 0x0),G(this,_0x2e721e(0x229),''),G(this,_0x2e721e(0x33b),'top'),G(this,_0x2e721e(0x31d),void 0x0),G(this,'_showText',void 0x0),G(this,_0x2e721e(0x283),void 0x0),G(this,_0x2e721e(0x1bb),0x4),G(this,_0x2e721e(0x242),void 0x0),G(this,_0x2e721e(0x21d),void 0x0),G(this,'_isBlinkVisible',!0x0),G(this,'_offsetY',0x0),_0x40ebcb){var _0x2cd617;if(this[_0x2e721e(0x334)](_0x40ebcb),_0x40ebcb[_0x2e721e(0x314)]&&((_0x2cd617=_0x40ebcb[_0x2e721e(0x188)])==null?this[_0x2e721e(0x1bb)]:_0x2cd617)){var _0x2616da;this[_0x2e721e(0x1b0)]((_0x2616da=_0x40ebcb[_0x2e721e(0x188)])==null?this['_highlightSecond']:_0x2616da);}}this[_0x2e721e(0x31f)][_0x2e721e(0x255)](()=>this[_0x2e721e(0x334)]({'hovered':!0x0})),this[_0x2e721e(0x23e)][_0x2e721e(0x255)](()=>this[_0x2e721e(0x334)]({'hovered':!0x1}));}[_0x78f52a(0x324)](_0x1c1b5f){const _0x2426b3=_0x78f52a;this[_0x2426b3(0x1de)]=_0x1c1b5f;}[_0x78f52a(0x334)](_0xb6686f){const _0x43d133=_0x78f52a;var _0x30c787,_0x5632c7,_0x143074,_0x7dc886,_0x4dc413,_0x2ee1d5,_0xcc3e24;this[_0x43d133(0x24e)]=(_0x30c787=_0xb6686f['color'])==null?this['_color']:_0x30c787,this[_0x43d133(0x30a)]=(_0x5632c7=_0xb6686f[_0x43d133(0x2a8)])==null?this['_hovered']:_0x5632c7,this[_0x43d133(0x29e)]=(_0x143074=_0xb6686f['range'])==null?this[_0x43d133(0x29e)]:_0x143074,this[_0x43d133(0x229)]=(_0x7dc886=_0xb6686f[_0x43d133(0x26e)])==null?this[_0x43d133(0x229)]:_0x7dc886,this[_0x43d133(0x33b)]=(_0x4dc413=_0xb6686f[_0x43d133(0x191)])==null?this['_labelPosition']:_0x4dc413,this[_0x43d133(0x31d)]=(_0x2ee1d5=_0xb6686f[_0x43d133(0x1ea)])==null?this[_0x43d133(0x31d)]:_0x2ee1d5,this[_0x43d133(0x316)]=(_0xcc3e24=_0xb6686f['showText'])==null?this['_showText']:_0xcc3e24,_0xb6686f[_0x43d133(0x188)]!==void 0x0&&(this[_0x43d133(0x1bb)]=_0xb6686f[_0x43d133(0x188)]),_0xb6686f[_0x43d133(0x314)]!==void 0x0&&(this['_highlight']=_0xb6686f[_0x43d133(0x314)]),_0xb6686f[_0x43d133(0x2d9)]!==void 0x0&&(this[_0x43d133(0x1de)]=_0xb6686f['offsetY']),this['transformByState']({'width':_0xb6686f[_0x43d133(0x1b1)],'height':_0xb6686f[_0x43d133(0x33c)]});}['onMouseMove'](_0x2b30e0){const _0x35d012=_0x78f52a;let {row:_0x4f7f8e,column:_0x32883d}=_0x2b30e0;if(_0x4f7f8e>=this[_0x35d012(0x29e)][_0x35d012(0x1da)]&&_0x4f7f8e<=this[_0x35d012(0x29e)][_0x35d012(0x34d)]&&_0x32883d>=this[_0x35d012(0x29e)][_0x35d012(0x350)]&&_0x32883d<=this[_0x35d012(0x29e)][_0x35d012(0x35b)]){this[_0x35d012(0x334)]({'hovered':!0x0});return;}this[_0x35d012(0x334)]({'hovered':!0x1});}[_0x78f52a(0x1b0)](_0x446a33){const _0x123b34=_0x78f52a;this[_0x123b34(0x222)](),this['_isBlinkVisible']=!0x0,this[_0x123b34(0x21d)]=window[_0x123b34(0x2ff)](()=>{const _0x5cd37b=_0x123b34;this[_0x5cd37b(0x1f2)]=!this[_0x5cd37b(0x1f2)],this[_0x5cd37b(0x335)](!0x0);},0x1f4),this[_0x123b34(0x242)]=window[_0x123b34(0x364)](()=>{const _0x286e89=_0x123b34;this[_0x286e89(0x222)](),this[_0x286e89(0x1f2)]=!0x0,this[_0x286e89(0x335)](!0x0);},_0x446a33*0x3e8);}[_0x78f52a(0x222)](){const _0x5867ba=_0x78f52a;this[_0x5867ba(0x21d)]&&(window[_0x5867ba(0x387)](this['_blinkIntervalTimer']),this[_0x5867ba(0x21d)]=void 0x0),this[_0x5867ba(0x242)]&&(window[_0x5867ba(0x386)](this[_0x5867ba(0x242)]),this[_0x5867ba(0x242)]=void 0x0);}['triggerDblclick'](_0x294a68){return!0x1;}['dispose'](){const _0x2a5f81=_0x78f52a;this[_0x2a5f81(0x222)](),super[_0x2a5f81(0x1ef)]();}[_0x78f52a(0x233)](_0x3cedd6){const _0x47c625=_0x78f52a;let _0x284d8d=this[_0x47c625(0x24e)],_0x36d7ff=this[_0x47c625(0x31d)];if(this[_0x47c625(0x283)]&&!this['_isBlinkVisible']&&(_0x284d8d=this[_0x47c625(0x249)](this[_0x47c625(0x24e)]),_0x36d7ff=this[_0x47c625(0x31d)]?this[_0x47c625(0x249)](this['_backgroundColor']):void 0x0),_0x4dda2e[_0x47c625(0x2e1)](_0x3cedd6,{'width':this['width'],'height':this[_0x47c625(0x33c)],'strokeWidth':this[_0x47c625(0x1b4)]||1.5,'stroke':_0x284d8d,'evented':!0x1,'fill':_0x36d7ff}),this[_0x47c625(0x30a)]||this['_showText']){var _0xbc603b;_0x3cedd6['save'](),_0x3cedd6['transform'](0x1,0x0,0x0,0x1,this[_0x47c625(0x1b1)],(this['_labelPosition']==='bottom'?0x0:-0x14)+((_0xbc603b=this[_0x47c625(0x1de)])==null?0x0:_0xbc603b)),fn[_0x47c625(0x2e1)](_0x3cedd6,{'text':this[_0x47c625(0x229)],'color':_0x284d8d}),_0x3cedd6[_0x47c625(0x389)]();}}[_0x78f52a(0x249)](_0x2028f2){const _0x45b16c=_0x78f52a;return _0x2028f2[_0x45b16c(0x1d5)]('#')?_0x45b16c(0x246)+Number[_0x45b16c(0x225)](_0x2028f2['slice'](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x2028f2[_0x45b16c(0x206)](0x3,0x5),0x10)+',\x20'+Number[_0x45b16c(0x225)](_0x2028f2[_0x45b16c(0x206)](0x5,0x7),0x10)+_0x45b16c(0x224):_0x2028f2['startsWith']('rgba')?_0x2028f2['replace'](/[\d.]+\)$/g,_0x45b16c(0x2b3)):_0x2028f2['startsWith'](_0x45b16c(0x309))?_0x2028f2[_0x45b16c(0x204)](_0x45b16c(0x309),_0x45b16c(0x1a4))[_0x45b16c(0x204)](')',_0x45b16c(0x224)):_0x2028f2;}};let _n=class extends _0x5ea1f5{constructor(_0x1980c2,_0x54bf23,_0x4ad1a5,_0x415874){const _0x16e550=_0x78f52a;super(),this[_0x16e550(0x399)]=_0x1980c2,this['_sheetSkeletonManagerService']=_0x54bf23,this[_0x16e550(0x1c1)]=_0x4ad1a5,this[_0x16e550(0x2c9)]=_0x415874,G(this,_0x16e550(0x292),new Set()),G(this,_0x16e550(0x1fb),null),this[_0x16e550(0x2df)]();}[_0x78f52a(0x2df)](){const _0x9c5776=_0x78f52a;this[_0x9c5776(0x21a)][_0x9c5776(0x2cf)][_0x9c5776(0x1ba)](_0x5c62a8(this['dispose$']),_0x11bfd3(_0xc27c34=>{const _0x3acac9=_0x9c5776;if(_0xc27c34){let _0x30aa53=_0xc27c34[_0x3acac9(0x282)];return _0x94f8d2(this[_0x3acac9(0x1c1)]['getCollabCursors$'](this[_0x3acac9(0x399)][_0x3acac9(0x36b)]),this['_themeService'][_0x3acac9(0x1c6)])[_0x3acac9(0x1ba)](_0x14c126(([_0xd6a220,_0x15f128])=>{let _0x1fd490=new Map();return _0xd6a220['forEach']((_0x46b954,_0x318034)=>{const _0x2840f8=_0x1449;if(_0x46b954[_0x2840f8(0x295)]===_0x30aa53){let _0x2c3105={..._0x46b954};_0x2c3105[_0x2840f8(0x25d)]=this[_0x2840f8(0x2c9)][_0x2840f8(0x311)](_0x46b954[_0x2840f8(0x25d)]),_0x1fd490[_0x2840f8(0x2d5)](_0x318034,_0x2c3105);}}),{'skeleton':_0xc27c34,'cursors':_0x1fd490};}));}return _0x39a9f8({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x707286,cursors:_0x3d0273})=>{const _0x5de522=_0x9c5776;this[_0x5de522(0x327)](),_0x707286&&this[_0x5de522(0x1f7)](_0x707286,_0x3d0273);}),this[_0x9c5776(0x21a)][_0x9c5776(0x2cf)][_0x9c5776(0x226)](_0x55739b=>{const _0x5bdeb9=_0x9c5776;if(_0x55739b==null)return;let {skeleton:_0x3a206a}=_0x55739b,{scene:_0x8c2fbe}=this[_0x5bdeb9(0x399)];_0x8c2fbe['onPointerMove$'][_0x5bdeb9(0x255)](_0x195eb6(_0x47696f=>{const _0x4f8dcb=_0x5bdeb9;var _0x5c0200,_0x5e1d7d;let {offsetX:_0x269339,offsetY:_0x2f4d97}=_0x47696f,{x:_0x1ea712,y:_0x367000}=_0x8c2fbe[_0x4f8dcb(0x35c)](_0x355add[_0x4f8dcb(0x352)]([_0x269339,_0x2f4d97])),{scaleX:_0x3cfbed,scaleY:_0x42f895}=_0x8c2fbe['getAncestorScale'](),_0x5ebab1=_0x8c2fbe[_0x4f8dcb(0x26a)](_0x4b3b34['VIEW_MAIN']),_0x4ff59b=_0x8c2fbe[_0x4f8dcb(0x31b)](_0x355add[_0x4f8dcb(0x352)]([_0x1ea712,_0x367000]),_0x5ebab1),_0x11852c=_0x3a206a[_0x4f8dcb(0x279)](_0x269339,_0x2f4d97,_0x3cfbed,_0x42f895,_0x4ff59b);((_0x5c0200=this[_0x4f8dcb(0x1fb)])==null?void 0x0:_0x5c0200[_0x4f8dcb(0x1a5)])===_0x11852c[_0x4f8dcb(0x1a5)]&&((_0x5e1d7d=this[_0x4f8dcb(0x1fb)])==null?void 0x0:_0x5e1d7d[_0x4f8dcb(0x1e3)])===_0x11852c['row']||this[_0x4f8dcb(0x292)][_0x4f8dcb(0x252)](_0x4eb703=>{const _0x14b8b2=_0x4f8dcb;_0x4eb703[_0x14b8b2(0x2da)](_0x11852c);});},0x64));});}[_0x78f52a(0x1f7)](_0x33aba5,_0x1c3fdc){const _0xc04af=_0x78f52a;let _0x3f9eb3=this[_0xc04af(0x21a)][_0xc04af(0x268)]();if(!_0x3f9eb3)return;let _0x326117=this[_0xc04af(0x1b8)]();if(!_0x326117)return;this['_cursors'][_0xc04af(0x252)](_0x323cc4=>{const _0x583481=_0xc04af;_0x323cc4[_0x583481(0x335)]();});let {scene:_0x4a987e}=_0x326117,_0x203e85=vn(Array[_0xc04af(0x1f6)](_0x1c3fdc['values']()))[_0xc04af(0x2d1)](_0xc6d916=>{const _0x44fedc=_0xc04af;let {color:_0x50a22f,range:_0x1683b9,name:_0x476624,selection:_0x4e99f2,sheetID:_0x1cb7e5}=_0xc6d916,{startColumn:_0x565d5d,startRow:_0xc5d195,endColumn:_0x4441ce,endRow:_0xde0508}=_0x1683b9,_0x2d9c4b=_0x252be7(_0xc5d195,_0x565d5d,_0x4a987e,_0x3f9eb3),_0x1f6794=_0x252be7(_0xde0508,_0x4441ce,_0x4a987e,_0x3f9eb3),{columnHeaderHeightAndMarginTop:_0x138a4b}=_0x3f9eb3,{startX:_0x1b4b08,startY:_0x1bb2cf}=_0x2d9c4b,{endX:_0x182ad8,endY:_0x48c2d3}=_0x1f6794,_0x22f4c9=_0x182ad8-_0x1b4b08,_0xdd40a9=_0x48c2d3-_0x1bb2cf;return new gn(_0x476624,{'labelPosition':_0x1bb2cf-_0x138a4b>=0x14?_0x44fedc(0x217):_0x44fedc(0x377),'sheetID':_0x1cb7e5,'range':_0x1683b9,'color':_0x50a22f,'name':_0x476624,'selection':_0x4e99f2,'left':_0x1b4b08,'top':_0x1bb2cf,'width':_0x22f4c9,'height':_0xdd40a9,'evented':!0x1,'zIndex':0x1389});});_0x4a987e[_0xc04af(0x1fe)](_0x203e85,0x1),this[_0xc04af(0x292)]=new Set(_0x203e85);}[_0x78f52a(0x327)](){const _0x53fb24=_0x78f52a;var _0x2fec1b;(_0x2fec1b=this['_cursors'])==null||_0x2fec1b[_0x53fb24(0x252)](_0x173219=>_0x173219[_0x53fb24(0x1ef)]());}[_0x78f52a(0x1b8)](){const _0x1f5883=_0x78f52a;return _0x47f37e(this['_context'][_0x1f5883(0x27b)],this[_0x1f5883(0x399)]);}};_n=q([K(0x1,_0x471dd1(_0x3eadc1)),K(0x2,_0x471dd1(X)),K(0x3,_0x471dd1(_0x36040c))],_n);function vn(_0x362af4){const _0x3e4bfb=_0x78f52a;let _0x17c158=new Map();return _0x362af4[_0x3e4bfb(0x252)](_0xee9eb3=>{const _0x1b8752=_0x3e4bfb;if(_0x17c158['has'](_0xee9eb3[_0x1b8752(0x2d7)])){let _0x537b86=_0x17c158[_0x1b8752(0x3a0)](_0xee9eb3[_0x1b8752(0x2d7)]);_0x537b86['name']+=',\x20'+_0xee9eb3['name'];}else _0x17c158[_0x1b8752(0x2d5)](_0xee9eb3['selection'],_0xee9eb3);}),Array[_0x3e4bfb(0x1f6)](_0x17c158[_0x3e4bfb(0x23d)]());}let yn=class extends _0x5dec83{constructor(_0x557de9,_0x91db1f,_0x33fc54,_0x11d44f,_0x2e3f6b,_0x4ec88f){const _0x3060cb=_0x78f52a;super(),this[_0x3060cb(0x2b4)]=_0x557de9,this['_localCacheService']=_0x91db1f,this[_0x3060cb(0x1d0)]=_0x33fc54,this[_0x3060cb(0x388)]=_0x11d44f,this[_0x3060cb(0x19c)]=_0x2e3f6b,this[_0x3060cb(0x21e)]=_0x4ec88f,this['_setupBeforeClosingHandler'](),this[_0x3060cb(0x212)]();}[_0x78f52a(0x2b7)](){const _0x5c4524=_0x78f52a;this[_0x5c4524(0x228)](this[_0x5c4524(0x2b4)][_0x5c4524(0x360)](()=>{const _0x9a972b=_0x5c4524;if(this[_0x9a972b(0x1ab)]['saveTaskMap'][_0x9a972b(0x1a8)])return this[_0x9a972b(0x21e)]['t'](_0x9a972b(0x33a));}));}[_0x78f52a(0x212)](){const _0x1a731c=_0x78f52a;this[_0x1a731c(0x228)](this[_0x1a731c(0x1d0)][_0x1a731c(0x37f)][_0x1a731c(0x226)](_0x182153=>{const _0x3eeba9=_0x1a731c;_0x182153['id']===_0x391dbd[_0x3eeba9(0x2e8)]&&this['_messageService'][_0x3eeba9(0x290)]({'type':_0x227d7c[_0x3eeba9(0x20c)],'content':this[_0x3eeba9(0x21e)]['t'](_0x3eeba9(0x258))}),_0x182153['id']===_0x391dbd[_0x3eeba9(0x2ab)]&&this['_messageService'][_0x3eeba9(0x290)]({'type':_0x227d7c[_0x3eeba9(0x20c)],'content':this['_localeService']['t'](_0x3eeba9(0x21c))}),_0x182153['id']===_0x391dbd[_0x3eeba9(0x2c6)]&&this[_0x3eeba9(0x19c)][_0x3eeba9(0x290)]({'title':this[_0x3eeba9(0x21e)]['t']('permission.title'),'content':this[_0x3eeba9(0x21e)]['t']('permission.content'),'type':_0x3eeba9(0x1dc),'duration':0x0}),_0x182153['id']===_0x391dbd[_0x3eeba9(0x34e)]&&this[_0x3eeba9(0x388)][_0x3eeba9(0x290)]({'type':_0x227d7c[_0x3eeba9(0x23f)],'content':this[_0x3eeba9(0x21e)]['t'](_0x3eeba9(0x21c))+'('+_0x182153[_0x3eeba9(0x36d)]+')'}),_0x182153['id']===_0x391dbd[_0x3eeba9(0x354)]&&this[_0x3eeba9(0x388)]['show']({'type':_0x227d7c[_0x3eeba9(0x20c)],'content':this[_0x3eeba9(0x21e)]['t'](_0x182153[_0x3eeba9(0x36d)]||'')}),_0x182153['id']===_0x391dbd[_0x3eeba9(0x1eb)]&&this[_0x3eeba9(0x388)][_0x3eeba9(0x290)]({'type':_0x227d7c[_0x3eeba9(0x20c)],'content':this[_0x3eeba9(0x21e)]['t'](_0x3eeba9(0x344))}),_0x182153['id']===_0x391dbd[_0x3eeba9(0x2bd)]&&this['_messageService'][_0x3eeba9(0x290)]({'type':_0x227d7c[_0x3eeba9(0x23f)],'content':this[_0x3eeba9(0x21e)]['t'](_0x3eeba9(0x1df))}),_0x182153['id']===_0x391dbd[_0x3eeba9(0x30d)]&&this[_0x3eeba9(0x388)][_0x3eeba9(0x290)]({'type':_0x227d7c['Error'],'content':this[_0x3eeba9(0x21e)]['t'](_0x3eeba9(0x291))});}));}};yn=q([K(0x0,_0x134d53),K(0x1,_0x10015f),K(0x2,_0x471dd1(_0x1dbfe7)),K(0x3,_0x145a0d),K(0x4,_0xab1e9d),K(0x5,_0x471dd1(_0xe3358c))],yn);const bn=_0x78f52a(0x269);Symbol(bn);const xn={};let Z=class{constructor(_0x2391c3,_0x19f7c4){const _0xed38a8=_0x78f52a;this[_0xed38a8(0x28f)]=_0x2391c3,this[_0xed38a8(0x381)]=_0x19f7c4;}[_0x78f52a(0x378)](_0xa59bc6){const _0x26b320=_0x78f52a;this[_0x26b320(0x1d8)](_0xa59bc6),this[_0x26b320(0x280)](_0xa59bc6);}['transformRemoteChangeset'](_0x1ad21c){const _0x30e34f=_0x78f52a;let {unitID:_0x3adfd7}=_0x1ad21c,{redoCache:_0x16809f}=this['_renderManagerService']['getRenderById'](_0x3adfd7)['with'](_0x5d85c0)[_0x30e34f(0x2ee)]();if(_0x16809f[_0x30e34f(0x209)]===0x0)return _0x1ad21c;let _0x4de7ad=_0x3886b0[_0x30e34f(0x293)](_0x1ad21c[_0x30e34f(0x1b9)][0x0]);for(let _0x119f0a=0x0;_0x119f0a<_0x16809f['length'];_0x119f0a++){let _0x26cb9c={'id':_0x30e34f(0x34f),'params':{..._0x16809f[_0x119f0a]}},_0x4b936e=this['_transformService'][_0x30e34f(0x35a)](_0x4de7ad,_0x26cb9c,!0x1);if(_0x4f5252(_0x4b936e))throw _0x4b936e[_0x30e34f(0x1dc)];_0x4de7ad=_0x4b936e[_0x30e34f(0x1c8)];}return{..._0x3886b0[_0x30e34f(0x293)](_0x1ad21c),'mutations':[_0x4de7ad]};}[_0x78f52a(0x1d8)](_0x3dd873){const _0x3945c8=_0x78f52a;let {unitID:_0x1eb15c}=_0x3dd873,_0x45112d=this[_0x3945c8(0x381)][_0x3945c8(0x1e9)](_0x1eb15c)[_0x3945c8(0x2db)](_0x5d85c0),{undoCache:_0x268f0b,redoCache:_0x2acf00}=_0x45112d[_0x3945c8(0x2ee)]();if(_0x268f0b['length']===0x0||_0x2acf00[_0x3945c8(0x209)]===0x0)return;let _0xd56642=[],_0x2de4fe=[],_0x9f3420=_0x3886b0[_0x3945c8(0x293)](_0x3dd873[_0x3945c8(0x1b9)][0x0]),_0x22d09a=_0x3886b0[_0x3945c8(0x293)](_0x3dd873[_0x3945c8(0x1b9)][0x0]);for(let _0x5cab2f=_0x268f0b['length']-0x1;_0x5cab2f>=0x0;_0x5cab2f--){let _0x39eff8={'id':'doc.mutation.rich-text-editing','params':{..._0x268f0b[_0x5cab2f]}},_0x252f75={'id':'doc.mutation.rich-text-editing','params':{..._0x2acf00[_0x5cab2f]}},_0x17c298=this['_transformService'][_0x3945c8(0x35a)](_0x9f3420,_0x39eff8,!0x1),_0x267352=this[_0x3945c8(0x28f)][_0x3945c8(0x35a)](_0x22d09a,_0x252f75,!0x1);if(_0x4f5252(_0x17c298))throw _0x17c298[_0x3945c8(0x1dc)];if(_0x4f5252(_0x267352))throw _0x267352['error'];_0xd56642['unshift'](_0x17c298['m2Prime']['params']),_0x2de4fe[_0x3945c8(0x2f0)](_0x267352[_0x3945c8(0x1e1)][_0x3945c8(0x1c0)]),_0x9f3420=_0x17c298[_0x3945c8(0x1c8)],_0x22d09a=_0x267352['m1Prime'];}_0x45112d['setUndoRedoMutationParamsCache']({'undoCache':_0xd56642,'redoCache':_0x2de4fe});}[_0x78f52a(0x280)](_0x2ca0c0){const _0x324acd=_0x78f52a;let {unitID:_0xa7bc61}=_0x2ca0c0,_0x4997f3=this[_0x324acd(0x381)][_0x324acd(0x1e9)](_0xa7bc61)[_0x324acd(0x2db)](_0x5d85c0),_0x3f0d22=_0x4997f3['getActiveRange']();if(_0x3f0d22==null)return;let _0x1a51f7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ca0c0[_0x324acd(0x368)],'actions':null,'textRanges':[_0x3f0d22]}}],_0x206e55=this[_0x324acd(0x28f)][_0x324acd(0x231)](_0x2ca0c0,_0x1a51f7);if(!_0x5cafa8(_0x206e55))throw _0x206e55[_0x324acd(0x1dc)];let _0x5a9a4f=_0x206e55['m2Prime'][0x0]['params'][_0x324acd(0x285)];Array[_0x324acd(0x1e0)](_0x5a9a4f)&&_0x5a9a4f[_0x324acd(0x209)]&&_0x4997f3[_0x324acd(0x2f5)](_0x5a9a4f[0x0]);}};Z=q([K(0x0,_0x146812),K(0x1,_0xe55028)],Z);let Sn=class{constructor(_0x273a9d,_0x4fec7d,_0x29a8e6){const _0xc609=_0x78f52a;this['_injector']=_0x273a9d,this[_0xc609(0x28f)]=_0x4fec7d,this[_0xc609(0x383)]=_0x29a8e6;}[_0x78f52a(0x2c1)](_0x4fe044){this['_transformHistoryAndStateStack'](_0x4fe044);}[_0x78f52a(0x239)](_0x1ef8e4){const _0x309207=_0x78f52a;let {unitID:_0x39bb53}=_0x1ef8e4,{collaboration:_0x126619}=this[_0x309207(0x383)][_0x309207(0x289)](_0x39bb53);if(_0x126619['length']===0x0)return _0x1ef8e4;let _0x3c5f85=_0x3886b0[_0x309207(0x293)](_0x1ef8e4['mutations'][0x0]);for(let _0x384aba=0x0;_0x384aba<_0x126619[_0x309207(0x209)];_0x384aba++){let _0x3a08a9={'id':_0x309207(0x34f),'params':{'unitId':_0x126619[_0x384aba]['unitId'],..._0x126619[_0x384aba][_0x309207(0x2d8)]}},_0x49a580=this[_0x309207(0x28f)][_0x309207(0x35a)](_0x3c5f85,_0x3a08a9,!0x1);if(_0x4f5252(_0x49a580))throw _0x49a580[_0x309207(0x1dc)];_0x3c5f85=_0x49a580[_0x309207(0x1c8)];}return{..._0x3886b0['deepClone'](_0x1ef8e4),'mutations':[_0x3c5f85]};}[_0x78f52a(0x2a1)](_0x3b87c8){const _0x38b342=_0x78f52a;let {unitID:_0xf6c53d}=_0x3b87c8,{history:_0x22b183,collaboration:_0x4ebcd5}=this[_0x38b342(0x383)][_0x38b342(0x289)](_0xf6c53d);if(_0x22b183['length']===0x0&&_0x4ebcd5['length']===0x0)return;let _0xe46304=[],_0x3b113e=[],_0x2e9daf=_0x3886b0[_0x38b342(0x293)](_0x3b87c8[_0x38b342(0x1b9)][0x0]),_0x369425=_0x3886b0[_0x38b342(0x293)](_0x3b87c8['mutations'][0x0]);for(let _0x2ac7a5=_0x22b183[_0x38b342(0x209)]-0x1;_0x2ac7a5>=0x0;_0x2ac7a5--){let _0x48767c={'id':_0x38b342(0x34f),'params':{'unitId':_0x22b183[_0x2ac7a5][_0x38b342(0x36b)],..._0x22b183[_0x2ac7a5][_0x38b342(0x325)]}},_0x1ba5fd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x22b183[_0x2ac7a5][_0x38b342(0x36b)],..._0x22b183[_0x2ac7a5][_0x38b342(0x2d8)]}},_0x54a2ab=this[_0x38b342(0x28f)]['transformMutation'](_0x2e9daf,_0x48767c,!0x1),_0x5edb01=this[_0x38b342(0x28f)][_0x38b342(0x35a)](_0x369425,_0x1ba5fd,!0x1);if(_0x4f5252(_0x54a2ab))throw _0x54a2ab['error'];if(_0x4f5252(_0x5edb01))throw _0x5edb01['error'];_0xe46304[_0x38b342(0x2f0)]({..._0x22b183[_0x2ac7a5],'undoState':_0x54a2ab[_0x38b342(0x1e1)][_0x38b342(0x1c0)],'redoState':_0x5edb01[_0x38b342(0x1e1)][_0x38b342(0x1c0)]}),_0x2e9daf=_0x54a2ab[_0x38b342(0x1c8)],_0x369425=_0x5edb01[_0x38b342(0x1c8)];}_0x2e9daf=_0x3886b0[_0x38b342(0x293)](_0x3b87c8[_0x38b342(0x1b9)][0x0]),_0x369425=_0x3886b0[_0x38b342(0x293)](_0x3b87c8[_0x38b342(0x1b9)][0x0]);for(let _0x4b6ddf=_0x4ebcd5[_0x38b342(0x209)]-0x1;_0x4b6ddf>=0x0;_0x4b6ddf--){let _0x3f5898={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ebcd5[_0x4b6ddf][_0x38b342(0x36b)],..._0x4ebcd5[_0x4b6ddf][_0x38b342(0x325)]}},_0x4ab9f9={'id':_0x38b342(0x34f),'params':{'unitId':_0x4ebcd5[_0x4b6ddf][_0x38b342(0x36b)],..._0x4ebcd5[_0x4b6ddf][_0x38b342(0x2d8)]}},_0x5bb719=this[_0x38b342(0x28f)][_0x38b342(0x35a)](_0x2e9daf,_0x3f5898,!0x1),_0xf3e921=this['_transformService'][_0x38b342(0x35a)](_0x369425,_0x4ab9f9,!0x1);if(_0x4f5252(_0x5bb719))throw _0x5bb719['error'];if(_0x4f5252(_0xf3e921))throw _0xf3e921['error'];_0x3b113e[_0x38b342(0x2f0)]({..._0x4ebcd5[_0x4b6ddf],'undoState':_0x5bb719['m2Prime'][_0x38b342(0x1c0)],'redoState':_0xf3e921['m2Prime'][_0x38b342(0x1c0)]}),_0x2e9daf=_0x5bb719['m1Prime'],_0x369425=_0xf3e921[_0x38b342(0x1c8)];}this[_0x38b342(0x383)]['setStateCache'](_0xf6c53d,{'history':_0xe46304,'collaboration':_0x3b113e});}};Sn=q([K(0x0,_0x471dd1(_0x521737)),K(0x1,_0x146812),K(0x2,_0x471dd1(_0x1355af))],Sn);let Cn=class{constructor(_0x576feb,_0x7fe1d3){const _0x5523d3=_0x78f52a;this[_0x5523d3(0x1a9)]=_0x576feb,this[_0x5523d3(0x28f)]=_0x7fe1d3;}[_0x78f52a(0x1d1)](_0x220044){const _0x2b79e9=_0x78f52a;var _0x56ef87;let _0x3b6732=this['_injector'][_0x2b79e9(0x3a0)](_0x3a7884),_0x3dc01d=(_0x56ef87=_0x3b6732[_0x2b79e9(0x37c)]())==null?[]:_0x56ef87;if(_0x3dc01d[_0x2b79e9(0x209)]===0x0)return;let _0x207239=_0x220044['unitID'],_0x4c8e0e=[{'id':_0x2b79e9(0x34f),'params':{'unitId':_0x207239,'actions':null,'textRanges':_0x3dc01d}}],_0x5bdcae=this[_0x2b79e9(0x28f)][_0x2b79e9(0x231)](_0x220044,_0x4c8e0e);if(!_0x5cafa8(_0x5bdcae))throw _0x5bdcae[_0x2b79e9(0x1dc)];let _0x300074=_0x5bdcae[_0x2b79e9(0x1e1)][0x0][_0x2b79e9(0x1c0)][_0x2b79e9(0x285)];Array[_0x2b79e9(0x1e0)](_0x300074)&&_0x300074[_0x2b79e9(0x209)]&&_0x3b6732[_0x2b79e9(0x1fc)](_0x300074,{'unitId':_0x207239,'subUnitId':_0x207239},!0x1);}};Cn=q([K(0x0,_0x471dd1(_0x521737)),K(0x1,_0x146812)],Cn);function _0x1449(_0x4e8805,_0x23de0e){_0x4e8805=_0x4e8805-0x188;const _0x44c5c4=_0x44c5();let _0x14497a=_0x44c5c4[_0x4e8805];return _0x14497a;}let wn=class extends _0x5dec83{constructor(_0x345353,_0x6c1d12,_0x28c7ca,_0x153c16,_0x3cef77,_0x143dff,_0x1b0209,_0x5be6cf){const _0x715386=_0x78f52a;super(),this[_0x715386(0x383)]=_0x345353,this[_0x715386(0x301)]=_0x6c1d12,this[_0x715386(0x189)]=_0x28c7ca,this[_0x715386(0x37d)]=_0x153c16,this[_0x715386(0x22b)]=_0x3cef77,this['_docSyncEditingCollabCursorService']=_0x143dff,this[_0x715386(0x388)]=_0x1b0209,this[_0x715386(0x21e)]=_0x5be6cf,G(this,'_status$',new _0x1e5306(_0x322e7c[_0x715386(0x272)])),this['_initEntityListener']();}[_0x78f52a(0x2d3)](){const _0x357333=_0x78f52a;this[_0x357333(0x228)](this['_collaborationController']['entityInit$'][_0x357333(0x226)](_0x2234d7=>{const _0x37f6ff=_0x357333;let _0x363249=this[_0x37f6ff(0x383)][_0x37f6ff(0x338)]['subscribe'](_0x4abeda=>{const _0x52f62b=_0x37f6ff;if(_0x4abeda==null)return;let {unitId:_0x2afe5b,redoState:_0x3ba3bd,commandId:_0x1844b5}=_0x4abeda;if(_0x2afe5b!==_0x2234d7[_0x52f62b(0x368)])return;let _0x3cd3f0={'id':_0x1844b5,'type':_0xc69fa8[_0x52f62b(0x238)],'params':{'unitId':_0x2afe5b,'actions':_0x3ba3bd[_0x52f62b(0x2be)],'textRanges':null}};_0x2234d7[_0x52f62b(0x337)](_0x3cd3f0);});_0x2234d7[_0x37f6ff(0x228)](_0x363249),_0x2234d7 instanceof _0x5a2169&&_0x2234d7[_0x37f6ff(0x241)]({'onTransformIME':_0x2138d3=>this[_0x37f6ff(0x189)][_0x37f6ff(0x378)](_0x2138d3),'onTransformState':_0x41fe60=>this[_0x37f6ff(0x37d)][_0x37f6ff(0x2c1)](_0x41fe60),'onTransformSelections':_0x5b42cb=>this[_0x37f6ff(0x22b)]['transformSelections'](_0x5b42cb),'onSyncEditingCollabCursor':_0x2b3d94=>this[_0x37f6ff(0x35d)]['syncEditingCollabCursor'](_0x2b3d94),'onTransformRemoteChangesetByIMECache':_0x13e4be=>this['_docTransformIMECacheService'][_0x37f6ff(0x239)](_0x13e4be),'onTransformRemoteChangesetByStateCache':_0x51bbee=>this['_docTransformStateCacheService'][_0x37f6ff(0x239)](_0x51bbee)});}));}};wn=q([K(0x0,_0x471dd1(_0x1355af)),K(0x1,_0x471dd1(_0xc1f731)),K(0x2,_0x471dd1(Z)),K(0x3,_0x471dd1(Sn)),K(0x4,_0x471dd1(Cn)),K(0x5,_0x471dd1(sn)),K(0x6,_0x145a0d),K(0x7,_0x471dd1(_0xe3358c))],wn);let Tn=class extends _0x5dec83{constructor(_0x4961e4,_0x5c3331,_0x43d45a,_0x4d6edf){const _0x4379ee=_0x78f52a;super(),this['_injector']=_0x4961e4,this[_0x4379ee(0x305)]=_0x5c3331,this[_0x4379ee(0x394)]=_0x43d45a,this['_collaborationSessionService']=_0x4d6edf,G(this,'_memberID',void 0x0),this[_0x4379ee(0x2df)]();}[_0x78f52a(0x2df)](){const _0xe6206=_0x78f52a;this['_initWindowErrorListener'](),this[_0xe6206(0x267)](),this['_monkeyPatchLogService'](),this[_0xe6206(0x25c)]();}['_initUserListener'](){const _0x38d995=_0x78f52a;this[_0x38d995(0x228)](this['_collaborationSessionService'][_0x38d995(0x310)][_0x38d995(0x226)](_0x134aad=>{const _0x5d49eb=_0x38d995;this['_memberID']=_0x134aad==null?void 0x0:_0x134aad[_0x5d49eb(0x23b)];}));}[_0x78f52a(0x396)](){const _0x40ee36=_0x78f52a;let _0x491a10=_0x13b659=>{const _0x15d025=_0x1449;var _0x53a72d;this[_0x15d025(0x21b)](_0x15d025(0x1dc),_0x15d025(0x22c)+_0x13b659[_0x15d025(0x304)]+_0x15d025(0x361)+_0x13b659['filename']+':'+_0x13b659[_0x15d025(0x2e3)]+':'+_0x13b659[_0x15d025(0x38c)]+'\x0a'+(((_0x53a72d=_0x13b659[_0x15d025(0x1dc)])==null?void 0x0:_0x53a72d[_0x15d025(0x221)])||''));};window[_0x40ee36(0x2c8)]('error',_0x491a10),this['disposeWithMe'](()=>{window['removeEventListener']('error',_0x491a10);});}[_0x78f52a(0x267)](){const _0x558033=_0x78f52a;let _0xde07a2=_0x533ba2=>{const _0x15a958=_0x1449;this[_0x15a958(0x21b)]('error',_0x15a958(0x28e)+_0x533ba2['reason']);};window[_0x558033(0x2c8)](_0x558033(0x2b8),_0xde07a2),this['disposeWithMe'](()=>{const _0x3b4bdb=_0x558033;window[_0x3b4bdb(0x1bd)](_0x3b4bdb(0x2b8),_0xde07a2);});}[_0x78f52a(0x2ed)](){const _0xe6b409=_0x78f52a;let _0x47d85d=this[_0xe6b409(0x394)]['error'][_0xe6b409(0x2d0)](this[_0xe6b409(0x394)]);this[_0xe6b409(0x394)][_0xe6b409(0x1dc)]=(..._0x3c123b)=>{const _0x51d7d7=_0xe6b409;let _0x3a1bd7=_0x3c123b[_0x51d7d7(0x2d1)](_0x1c172f=>_0x1c172f instanceof Error?_0x1c172f[_0x51d7d7(0x304)]+'\x0a'+_0x1c172f[_0x51d7d7(0x221)]:String(_0x1c172f))[_0x51d7d7(0x277)]('\x20');this['_uploadLog'](_0x51d7d7(0x1dc),_0x51d7d7(0x366)+_0x3a1bd7),_0x47d85d(..._0x3c123b);},this[_0xe6b409(0x228)](()=>{const _0x440f80=_0xe6b409;this[_0x440f80(0x394)][_0x440f80(0x1dc)]=_0x47d85d;});}['_uploadLog'](_0x5e3283,_0x10ddee){const _0x1546e2=_0x78f52a;try{let _0x168737={'userId':this[_0x1546e2(0x219)],'logLabel':_0x5e3283,'content':_0x10ddee};this['_httpService'][_0x1546e2(0x390)](_0x1546e2(0x20b),{'body':_0x168737})[_0x1546e2(0x351)](()=>{});}catch{}}};Tn=q([K(0x0,_0x471dd1(_0x521737)),K(0x1,_0x471dd1(_0x24c586)),K(0x2,_0x1a64fb),K(0x3,_0x471dd1(_0x285fda))],Tn);function En(_0x3ca03f){const _0x50ab8f=_0x78f52a;var _0x31e170,_0x19078c;let _0xd861f2=(_0x31e170=_0x3ca03f[_0x50ab8f(0x1d2)])==null?void 0x0:_0x31e170[_0x50ab8f(0x30c)],_0x22e14f=((_0x19078c=_0x3ca03f[_0x50ab8f(0x1d2)])==null?void 0x0:_0x19078c[_0x50ab8f(0x24b)])||0x0;return _0xd861f2===_0x310fb3['START_CALCULATION']&&_0x22e14f>0x0;}function Dn(_0x3a2b7e){return _0x3a2b7e['functionsExecutedState']===_0x559881['SUCCESS'];}let Q=class extends _0x5dec83{constructor(_0x4a2a71,_0x46839d,_0x5383c3,_0x2ec1bc,_0x238803,_0x44444d,_0x13b187){const _0x100f7e=_0x78f52a;super(),this[_0x100f7e(0x388)]=_0x4a2a71,this[_0x100f7e(0x253)]=_0x46839d,this[_0x100f7e(0x1d7)]=_0x5383c3,this['_httpService']=_0x2ec1bc,this[_0x100f7e(0x1c9)]=_0x238803,this[_0x100f7e(0x394)]=_0x44444d,this[_0x100f7e(0x21e)]=_0x13b187,G(this,_0x100f7e(0x28c),null),G(this,'_maxFormulaLimit',0x0),G(this,'_currentUsage',0x0),G(this,_0x100f7e(0x286),[]),G(this,_0x100f7e(0x373),0x0),this[_0x100f7e(0x30b)]();}[_0x78f52a(0x30b)](){const _0x2d121e=_0x78f52a;this[_0x2d121e(0x228)](this[_0x2d121e(0x253)]['beforeCommandExecuted']((_0x52b67f,_0x371f1a)=>{const _0x9a7b7a=_0x2d121e;var _0x56106b;if(_0x52b67f['id']!==_0x483b07['id'])return;let _0x65c87e=_0x52b67f[_0x9a7b7a(0x1c0)];if(this[_0x9a7b7a(0x2dd)]((_0x56106b=_0x65c87e['dirtyRanges'])==null?[]:_0x56106b)&&!this[_0x9a7b7a(0x365)]())throw this['_checkAndWaitForCalculationPermission'](_0x52b67f,_0x371f1a),this['_showGuardMessage'](),new _0x8737f2();})),this[_0x2d121e(0x228)](this[_0x2d121e(0x253)][_0x2d121e(0x1f9)]((_0x37cc3b,_0x2259a7)=>{const _0xcf9dfa=_0x2d121e;if(_0x37cc3b['id']!==_0x41bc6d['id'])return;let _0x50139e=_0x37cc3b[_0xcf9dfa(0x1c0)];if(En(_0x50139e)){let _0x4a4a62=_0x91b72();this[_0xcf9dfa(0x286)][_0xcf9dfa(0x353)](_0x4a4a62),this['_startCalculationLimit'](_0x4a4a62);}else{if(Dn(_0x50139e)&&this[_0xcf9dfa(0x286)][_0xcf9dfa(0x209)]>0x0){let _0xc99a7=this[_0xcf9dfa(0x286)][_0xcf9dfa(0x1a3)]();this[_0xcf9dfa(0x39b)](_0xc99a7);}}}));}[_0x78f52a(0x1ef)](){const _0x481620=_0x78f52a;super[_0x481620(0x1ef)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x481620(0x20f)]=0x0,this[_0x481620(0x318)]=0x0,this[_0x481620(0x373)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x131d05,_0x50f69b){const _0x453398=_0x78f52a;for(let _0x15c0b5=0x0;_0x15c0b5<0x1e;_0x15c0b5++)try{if(await this[_0x453398(0x398)](),this[_0x453398(0x365)]()){this['_applyCommand'](_0x131d05,_0x50f69b),this['_messageService'][_0x453398(0x290)]({'content':this['_localeService']['t'](_0x453398(0x2cb)),'type':_0x227d7c[_0x453398(0x18a)]});return;}await new Promise(_0xdb18f3=>{const _0x2d4bee=_0x453398;this[_0x2d4bee(0x28c)]=window[_0x2d4bee(0x364)](_0xdb18f3,0x3e8);});}catch(_0x1bd9ab){this[_0x453398(0x394)][_0x453398(0x1dc)](_0x1bd9ab);}this[_0x453398(0x388)][_0x453398(0x290)]({'content':this[_0x453398(0x21e)]['t']('formula.calculation.unable'),'type':_0x227d7c[_0x453398(0x23f)]});}[_0x78f52a(0x369)](_0x579238,_0x272157){const _0x383041=_0x78f52a;try{this['_commandService']['executeCommand'](_0x579238['id'],_0x579238[_0x383041(0x1c0)],_0x272157);}catch(_0x2b2711){this[_0x383041(0x394)][_0x383041(0x1dc)](_0x2b2711);}}[_0x78f52a(0x329)](_0x1781d9,_0x2e5d1b){const _0x1c590c=_0x78f52a;_0x2e5d1b<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x2e5d1b,this[_0x1c590c(0x318)]=Number[_0x1c590c(0x225)](_0x1781d9['maxFormulaLimit']),this[_0x1c590c(0x20f)]=Number[_0x1c590c(0x225)](_0x1781d9['currentUsage']));}async[_0x78f52a(0x32b)](_0xebb054){const _0x5caef5=_0x78f52a;let _0x418033=Date[_0x5caef5(0x27f)]();try{var _0xf25a2a,_0x16e5f6;let _0x2eecd6=((_0xf25a2a=this[_0x5caef5(0x1d7)]['getConfig'](_0x2992d2))==null?void 0x0:_0xf25a2a['startFormulaLimitUrl'])||_0x5caef5(0x25a),_0x4bb6ff=(await this[_0x5caef5(0x305)][_0x5caef5(0x390)](_0x2eecd6,{'body':JSON[_0x5caef5(0x1b3)]({'taskId':_0xebb054})}))[_0x5caef5(0x18c)];if(((_0x16e5f6=_0x4bb6ff[_0x5caef5(0x1dc)])==null?void 0x0:_0x16e5f6[_0x5caef5(0x30e)])!==_0x20e704['OK'])return;this[_0x5caef5(0x329)](_0x4bb6ff[_0x5caef5(0x392)],_0x418033);}catch(_0xaf23bd){this[_0x5caef5(0x394)][_0x5caef5(0x1dc)](_0xaf23bd);}}async[_0x78f52a(0x398)](_0x27e052){const _0x5b807f=_0x78f52a;let _0x8646b9=Date[_0x5b807f(0x27f)]();try{var _0x3c4dda,_0x4bcaa3;let _0x2f458d=((_0x3c4dda=this[_0x5b807f(0x1d7)][_0x5b807f(0x2b9)](_0x2992d2))==null?void 0x0:_0x3c4dda[_0x5b807f(0x19d)])||'/universer-api/license/formula/limit/status',_0x1e4c7c=_0x27e052?_0x2f458d+'?taskId='+encodeURIComponent(_0x27e052):_0x2f458d,_0x21b98c=(await this[_0x5b807f(0x305)][_0x5b807f(0x3a0)](_0x1e4c7c))[_0x5b807f(0x18c)];if(((_0x4bcaa3=_0x21b98c[_0x5b807f(0x1dc)])==null?void 0x0:_0x4bcaa3['code'])!==_0x20e704['OK'])return;this[_0x5b807f(0x329)](_0x21b98c[_0x5b807f(0x392)],_0x8646b9);}catch(_0x573f21){this['_logService']['error'](_0x573f21);}}async[_0x78f52a(0x39b)](_0x4f8491){const _0x3bc91c=_0x78f52a;let _0x394a5a=Date['now']();try{var _0x59c350,_0x440e18;let _0xbbb048=((_0x59c350=this[_0x3bc91c(0x1d7)][_0x3bc91c(0x2b9)](_0x2992d2))==null?void 0x0:_0x59c350['releaseFormulaLimitUrl'])||_0x3bc91c(0x2f2),_0x3fee9a=(await this[_0x3bc91c(0x305)][_0x3bc91c(0x390)](_0xbbb048,{'body':JSON[_0x3bc91c(0x1b3)]({'taskId':_0x4f8491})}))[_0x3bc91c(0x18c)];if(((_0x440e18=_0x3fee9a[_0x3bc91c(0x1dc)])==null?void 0x0:_0x440e18['code'])!==_0x20e704['OK'])return;this[_0x3bc91c(0x329)](_0x3fee9a[_0x3bc91c(0x392)],_0x394a5a);}catch(_0x5dd441){this['_logService']['error'](_0x5dd441);}}[_0x78f52a(0x365)](){const _0x34f355=_0x78f52a;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x34f355(0x20f)]>0x0;}['_clearPolling'](){const _0x39dc7a=_0x78f52a;this[_0x39dc7a(0x28c)]&&(clearTimeout(this[_0x39dc7a(0x28c)]),this['_pollingInterval']=null);}[_0x78f52a(0x28d)](){const _0x2b3b57=_0x78f52a;this[_0x2b3b57(0x388)]['show']({'content':this['_localeService']['t'](_0x2b3b57(0x2b2)),'type':_0x227d7c['Loading']});}['_hasFormulaInDirtyRanges'](_0x466d4c){const _0x1b9b03=_0x78f52a;for(let _0x16f494 of _0x466d4c){let {unitId:_0x187987,sheetId:_0x39a4f1,range:_0x22b0c8}=_0x16f494,_0x17f625=this[_0x1b9b03(0x1c9)][_0x1b9b03(0x250)](_0x187987);if(!_0x17f625)continue;let _0x311a05=_0x17f625[_0x1b9b03(0x281)](_0x39a4f1);if(!_0x311a05)continue;let _0x52dfef=_0x311a05[_0x1b9b03(0x38d)]();for(let _0x5f2fcf=_0x22b0c8[_0x1b9b03(0x1da)];_0x5f2fcf<=_0x22b0c8[_0x1b9b03(0x34d)];_0x5f2fcf++)for(let _0x17afc3=_0x22b0c8[_0x1b9b03(0x350)];_0x17afc3<=_0x22b0c8[_0x1b9b03(0x35b)];_0x17afc3++){let _0x3cb862=_0x52dfef[_0x1b9b03(0x19f)](_0x5f2fcf,_0x17afc3);if(_0x3cb862&&(_0x2abdc9(_0x3cb862['f'])||_0x3c9c43(_0x3cb862['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0x471dd1(_0x145a0d)),K(0x1,_0x5bc785),K(0x2,_0x17d3ae),K(0x3,_0x471dd1(_0x24c586)),K(0x4,_0x1bb177),K(0x5,_0x1a64fb),K(0x6,_0x471dd1(_0xe3358c))],Q);let On=class extends _0x5dec83{constructor(_0x4962b3,_0x16fcbd,_0x3dc488){const _0x39bba8=_0x78f52a;super(),this['_configService']=_0x4962b3,this[_0x39bba8(0x32c)]=_0x16fcbd,this[_0x39bba8(0x25f)]=_0x3dc488,G(this,_0x39bba8(0x1b6),new Map()),G(this,'_saveTaskMap',new Map()),G(this,'_disabled',!0x1);}[_0x78f52a(0x251)](){this['_disabled']=!0x0;}[_0x78f52a(0x326)](){const _0x47203b=_0x78f52a;this[_0x47203b(0x210)]=!0x1;}get[_0x78f52a(0x3a4)](){const _0x3aac08=_0x78f52a;return this[_0x3aac08(0x29c)];}[_0x78f52a(0x1ef)](){const _0x33f75a=_0x78f52a;this['exhaustSavingTask']()[_0x33f75a(0x275)](()=>super[_0x33f75a(0x1ef)]());}async['loadOfflineData'](_0x4d42b0){const _0x237acd=_0x78f52a;return this[_0x237acd(0x210)]?null:this[_0x237acd(0x32c)][_0x237acd(0x2c5)](_0x14365e(_0x4d42b0));}async[_0x78f52a(0x25e)](_0x31e7fe,_0x3bc7d9){const _0x13f9c5=_0x78f52a;return!!this[_0x13f9c5(0x32c)][_0x13f9c5(0x31e)](_0x31e7fe,_0x3bc7d9);}[_0x78f52a(0x257)](_0x2ce638,_0xac06ce,_0x290f31,_0x1631b9){const _0x409f8b=_0x78f52a;let _0x204e3a=this[_0x409f8b(0x25f)]['getCurrentRevOfUnit'](_0x2ce638);this['_cachedData'][_0x409f8b(0x2d5)](_0x2ce638,{'unitID':_0x2ce638,'type':_0xac06ce,'awaitingChangeset':_0x290f31,'mutations':_0x1631b9,'rev':_0x204e3a}),this['_saveTaskMap'][_0x409f8b(0x355)](_0x2ce638)||this[_0x409f8b(0x220)](_0x2ce638);}[_0x78f52a(0x220)](_0x2d5719){const _0x2bfa23=_0x78f52a;let _0x47afcf=this['_getSaveTimeout']();_0x47afcf===0x0?this[_0x2bfa23(0x25b)](_0x2d5719):this[_0x2bfa23(0x29c)][_0x2bfa23(0x2d5)](_0x2d5719,setTimeout(()=>this[_0x2bfa23(0x25b)](_0x2d5719),_0x47afcf));}[_0x78f52a(0x2ae)](){const _0x3baa8a=_0x78f52a;var _0x430b66;return(_0x430b66=this[_0x3baa8a(0x1d7)][_0x3baa8a(0x2b9)](_0x3473b3))==null?_0x4e7222:_0x430b66;}[_0x78f52a(0x25b)](_0x355b0a){const _0x3b4f2f=_0x78f52a;let _0x310ea1=this['_saveTaskMap'][_0x3b4f2f(0x3a0)](_0x355b0a);return _0x310ea1!==void 0x0&&window[_0x3b4f2f(0x386)](_0x310ea1),this['_localStorageService']['setItem'](_0x14365e(_0x355b0a),this['_cachedData'][_0x3b4f2f(0x3a0)](_0x355b0a))[_0x3b4f2f(0x275)](()=>this['_saveTaskMap'][_0x3b4f2f(0x3a1)](_0x355b0a));}async[_0x78f52a(0x2b5)](){const _0x5c9dbf=_0x78f52a;let _0x2b83b0=[];this['_saveTaskMap'][_0x5c9dbf(0x252)]((_0x5465b6,_0x34ca90)=>{const _0xc236f1=_0x5c9dbf;window[_0xc236f1(0x386)](_0x5465b6),_0x2b83b0['push'](this['_saveCache'](_0x34ca90)[_0xc236f1(0x275)](()=>{const _0x551299=_0xc236f1;this['_saveTaskMap'][_0x551299(0x3a1)](_0x34ca90);}));}),await Promise[_0x5c9dbf(0x1a2)](_0x2b83b0);}};On=q([K(0x0,_0x17d3ae),K(0x1,_0x51921e),K(0x2,_0x471dd1(_0x49781c))],On);var kn=class extends _0x5ea1f5{constructor(){const _0x9ec258=_0x78f52a;super(),G(this,_0x9ec258(0x336),void 0x0),this[_0x9ec258(0x336)]=_0x39e6ef(window,_0x9ec258(0x26b))[_0x9ec258(0x1ba)](_0x3b565d(this['dispose$']),_0x14d592(0x1),_0x4fbb5c(void 0x0));}['setParam'](_0xcc738b,_0x3691d1,_0x313b93=!0x1){const _0x7493bb=_0x78f52a;let _0x39b597=new URL(window['location']['href']);_0x39b597['searchParams'][_0x7493bb(0x2d5)](_0xcc738b,_0x3691d1),_0x313b93?window['history'][_0x7493bb(0x20e)]('','',_0x39b597[_0x7493bb(0x2e5)]()):window[_0x7493bb(0x2f1)][_0x7493bb(0x39c)]('','',_0x39b597[_0x7493bb(0x2e5)]());}[_0x78f52a(0x1f0)](_0x260068,_0x480117=!0x1){const _0x38e533=_0x78f52a;let _0x5e179c=new URL(window[_0x38e533(0x19e)][_0x38e533(0x376)]);_0x5e179c[_0x38e533(0x19b)][_0x38e533(0x3a1)](_0x260068),_0x480117?window[_0x38e533(0x2f1)][_0x38e533(0x20e)]('','',_0x5e179c['toString']()):window[_0x38e533(0x2f1)][_0x38e533(0x39c)]('','',_0x5e179c[_0x38e533(0x2e5)]());}[_0x78f52a(0x356)](_0x2f7652){const _0x2ddc1f=_0x78f52a;var _0x302b72;return(_0x302b72=new URL(window[_0x2ddc1f(0x19e)][_0x2ddc1f(0x376)])[_0x2ddc1f(0x19b)][_0x2ddc1f(0x3a0)](_0x2f7652))==null?void 0x0:_0x302b72;}};let $=class extends _0x3db0a4{constructor(_0xd6cf1e=xn,_0x998ec4,_0x32fdef,_0x43c91e){const _0x5ad112=_0x78f52a;super(),this[_0x5ad112(0x393)]=_0xd6cf1e,this[_0x5ad112(0x381)]=_0x998ec4,this[_0x5ad112(0x1a9)]=_0x32fdef,this['_configService']=_0x43c91e;let {..._0x5cef93}=_0x4caa17({},xn,this['_config']);this[_0x5ad112(0x1d7)][_0x5ad112(0x26f)](bn,_0x5cef93);}[_0x78f52a(0x266)](){const _0x1884c2=_0x78f52a;this[_0x1884c2(0x2d6)](),this[_0x1884c2(0x215)]();}[_0x78f52a(0x380)](){const _0x55ce25=_0x78f52a;this[_0x55ce25(0x1f4)]();}[_0x78f52a(0x2d6)](){const _0x23dc7a=_0x78f52a;var _0x3dc779;let _0x91cbf1=[[rn],[Q],[Cn],[Z],[Sn],[sn],[Qt,{'useClass':kn}],[_0x22cdfd,{'useClass':_0x5f3953}],[_0x10015f,{'useClass':On}],[J],[wn],[yn],[X],[tn],[Y]];this[_0x23dc7a(0x393)][_0x23dc7a(0x1be)]&&_0x91cbf1[_0x23dc7a(0x353)]([Tn]),_0x446adf(this['_injector'],_0x4b741e(_0x91cbf1,(_0x3dc779=this[_0x23dc7a(0x393)])==null?void 0x0:_0x3dc779[_0x23dc7a(0x190)]));}[_0x78f52a(0x1f4)](){const _0x415ae5=_0x78f52a;this[_0x415ae5(0x228)](this[_0x415ae5(0x381)]['registerRenderModule'](_0x502294[_0x415ae5(0x31a)],[hn])),this[_0x415ae5(0x228)](this[_0x415ae5(0x381)]['registerRenderModule'](_0x502294['UNIVER_SHEET'],[_n]));}[_0x78f52a(0x215)](){const _0x155167=_0x78f52a;_0x1bce04(this[_0x155167(0x1a9)],[[X],[J],[wn],[yn],[Y],[Q]]),this[_0x155167(0x393)][_0x155167(0x1be)]&&_0x1bce04(this['_injector'],[[Tn]]);}};G($,_0x78f52a(0x287),_0x78f52a(0x194)),G($,'packageName',$t),G($,_0x78f52a(0x235),en),$=q([_0x34216b(_0x3e38ca),K(0x1,_0xe55028),K(0x2,_0x471dd1(_0x521737)),K(0x3,_0x17d3ae)],$);let An=class extends _0x587544{constructor(_0x33c21b,_0x2f1156,_0x83316a,_0x4bb1ff,_0x262835){super(_0x33c21b,_0x2f1156,_0x83316a,_0x4bb1ff,_0x262835);}async['createSocket'](_0x346d18){const _0x439c7e=_0x78f52a;let _0x20134e=await this[_0x439c7e(0x332)](),_0x88eb6c=this[_0x439c7e(0x2cd)](_0x346d18,_0x20134e);return this['_doCreateSocket'](_0x88eb6c);}[_0x78f52a(0x2cd)](_0xdecdbe,_0x2571ca){const _0x3e2fc5=_0x78f52a;let _0x241bb9=typeof window>'u'?new URL(_0xdecdbe):new URL(_0xdecdbe,window[_0x3e2fc5(0x19e)][_0x3e2fc5(0x1fa)]);_0x241bb9[_0x3e2fc5(0x19b)][_0x3e2fc5(0x2d5)]('sessionTicket',_0x2571ca);let _0x42d1f8=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3e2fc5(0x19e)][_0x3e2fc5(0x2ec)]);return _0x42d1f8[_0x3e2fc5(0x3a0)](_0x3e2fc5(0x3a5))&&_0x241bb9[_0x3e2fc5(0x19b)]['set']('runId',_0x42d1f8[_0x3e2fc5(0x3a0)]('runId')),_0x241bb9['toString']();}async[_0x78f52a(0x332)](){const _0x1304d5=_0x78f52a;var _0x383a7a,_0x519329,_0x424c4e;let _0x2ba671=this['_configService'][_0x1304d5(0x2b9)](_0x2992d2),_0x43e9a6=(_0x383a7a=_0x2ba671==null?void 0x0:_0x2ba671[_0x1304d5(0x1ad)])==null?_0x56aed9:_0x383a7a;return(_0x519329=(_0x424c4e=(await this[_0x1304d5(0x305)]['get'](_0x43e9a6,{'headers':{'Content-Type':'application/json'}}))[_0x1304d5(0x18c)])==null?void 0x0:_0x424c4e[_0x1304d5(0x23a)])==null?'':_0x519329;}};An=q([K(0x0,_0x471dd1(_0x521737)),K(0x1,_0x471dd1(_0x24c586)),K(0x2,_0x17d3ae),K(0x3,_0x1a64fb),K(0x4,_0x2358cb)],An);let jn=class extends _0x5dec83{constructor(_0x620057,_0x157c9a,_0x4457e0){const _0x351f8e=_0x78f52a;super(),this[_0x351f8e(0x1ae)]=_0x620057,this[_0x351f8e(0x305)]=_0x157c9a,this['_configService']=_0x4457e0;}async[_0x78f52a(0x1c2)](_0x1a719e,_0xaed4b3,_0x3e9118,..._0x3d60e5){const _0x409034=_0x78f52a;var _0x2f62fb,_0x12b9e6,_0x2b0585,_0x487cd1;let _0x4ea2f1=this['_instanceService'][_0x409034(0x205)]();if(!_0x4ea2f1)throw Error(_0x409034(0x362));let _0x51470e=((_0x2f62fb=this['_configService'][_0x409034(0x2b9)](_0x1ee80d))==null?_0x5c1f29:_0x2f62fb)+'/'+_0x1a719e+_0x409034(0x1cb)+_0xaed4b3,_0x37ebc7={'scriptId':_0x1a719e,'runId':(_0x12b9e6=new URL(window[_0x409034(0x19e)][_0x409034(0x376)])[_0x409034(0x19b)][_0x409034(0x3a0)]('runId'))==null?'':_0x12b9e6,'function':_0xaed4b3,'unitId':_0x4ea2f1[_0x409034(0x270)](),'argsOfFunction':JSON[_0x409034(0x1b3)](_0x3d60e5),'invokeId':(_0x2b0585=_0x3e9118[_0x409034(0x192)])==null?'':_0x2b0585,'executionId':(_0x487cd1=_0x3e9118[_0x409034(0x23c)])==null?'':_0x487cd1};try{let _0x42d4d1=await this[_0x409034(0x305)][_0x409034(0x390)](_0x51470e,{'body':_0x37ebc7});return _0x42d4d1[_0x409034(0x18c)][_0x409034(0x1dc)]&&_0x42d4d1[_0x409034(0x18c)]['error'][_0x409034(0x30e)]!==_0x20e704['OK']?_0x409034(0x35f):_0x42d4d1[_0x409034(0x18c)][_0x409034(0x22a)];}catch{return _0x409034(0x35f);}}};jn=q([K(0x0,_0x1bb177),K(0x1,_0x471dd1(_0x24c586)),K(0x2,_0x17d3ae)],jn);const Mn=0x7530,Nn=_0x78f52a(0x2a6);var Pn=class extends _0x5dec83{constructor(){const _0x272d96=_0x78f52a;super(),G(this,'_id',_0x91b72()),G(this,_0x272d96(0x322),new Set()),G(this,'_unitOnClients',new Map()),G(this,_0x272d96(0x18b),null),G(this,_0x272d96(0x1ca),new Map()),G(this,_0x272d96(0x1a1),new Map()),this[_0x272d96(0x2df)]();}[_0x78f52a(0x1ef)](){const _0x24d86e=_0x78f52a;super['dispose'](),this['_clearOtherTimers'][_0x24d86e(0x252)]((_0x5d095c,_0x3352c0)=>this[_0x24d86e(0x260)](_0x3352c0)),this[_0x24d86e(0x18b)]&&window[_0x24d86e(0x387)](this[_0x24d86e(0x18b)]);}['getUnitStatus$'](_0x288e4e){const _0x5d9c2a=_0x78f52a;return this[_0x5d9c2a(0x27a)](_0x288e4e)[_0x5d9c2a(0x1ba)](_0x3b8d37());}['editingUnit'](_0x5c6d6b){const _0x1660b1=_0x78f52a;this[_0x1660b1(0x322)][_0x1660b1(0x1a8)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x5c6d6b),this[_0x1660b1(0x3a3)]({'type':0x0,'memberID':this[_0x1660b1(0x340)],'unitIDs':[_0x5c6d6b],'isForwarded':!0x1});}[_0x78f52a(0x38f)](_0x7d7fc0){const _0x19f537=_0x78f52a;this[_0x19f537(0x322)][_0x19f537(0x3a1)](_0x7d7fc0),this[_0x19f537(0x322)][_0x19f537(0x1a8)]===0x0&&this['_heartbeatTimer']&&window[_0x19f537(0x387)](this[_0x19f537(0x18b)]);}[_0x78f52a(0x2df)](){const _0x694de2=_0x78f52a;this[_0x694de2(0x228)](_0x1c3a83(_0x39e6ef(window,_0x694de2(0x230))[_0x694de2(0x226)](_0x3a2757=>{const _0x2e7fa8=_0x694de2;if(_0x3a2757[_0x2e7fa8(0x38b)]!==Nn||!_0x3a2757[_0x2e7fa8(0x248)])return;let _0x32bafa=JSON[_0x2e7fa8(0x1aa)](_0x3a2757[_0x2e7fa8(0x248)]);this['_handleEvent'](_0x32bafa);}))),window[_0x694de2(0x2c8)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x694de2(0x340)],'unitIDs':Array[_0x694de2(0x1f6)](this['_selfUnitIDs'])}));}[_0x78f52a(0x2f3)](_0x481815){const _0x514087=_0x78f52a;switch(_0x481815['type']){case 0x0:this[_0x514087(0x234)](_0x481815);break;case 0x1:this['_handleLeaveEvent'](_0x481815);break;case 0x2:this[_0x514087(0x22e)](_0x481815);break;}}[_0x78f52a(0x234)](_0x1a8050){const _0x44cafa=_0x78f52a;let {unitIDs:_0x1e218f,memberID:_0x26f1f6,isForwarded:_0x2c414f}=_0x1a8050;_0x1e218f[_0x44cafa(0x252)](_0x44ff39=>{const _0x4d2970=_0x44cafa;if(!_0x2c414f&&this['_unitOnClients']['has'](_0x44ff39)&&this[_0x4d2970(0x27a)](_0x44ff39)[_0x4d2970(0x2d2)](_0x5cdfcb[_0x4d2970(0x2ef)]),!this[_0x4d2970(0x1af)][_0x4d2970(0x355)](_0x44ff39)||!this['_unitOnClients'][_0x4d2970(0x3a0)](_0x44ff39)[_0x4d2970(0x355)](_0x26f1f6)){let _0x2e8d1e=this[_0x4d2970(0x1af)][_0x4d2970(0x3a0)](_0x44ff39)||new Set();_0x2e8d1e[_0x4d2970(0x263)](_0x26f1f6),this[_0x4d2970(0x1af)][_0x4d2970(0x2d5)](_0x44ff39,_0x2e8d1e),this['_scheduleClearOtherTimer'](_0x26f1f6);}}),_0x2c414f||this[_0x44cafa(0x3a3)]({'type':0x0,'memberID':this[_0x44cafa(0x340)],'unitIDs':[...this[_0x44cafa(0x322)]],'isForwarded':!0x0});}[_0x78f52a(0x39e)](_0x57addb){const _0x461b68=_0x78f52a;this[_0x461b68(0x260)](_0x57addb);let _0x28b600=window[_0x461b68(0x364)](()=>{const _0x1382e5=_0x461b68;this[_0x1382e5(0x1af)]['forEach'](_0x43716d=>{const _0x5bcfc4=_0x1382e5;_0x43716d[_0x5bcfc4(0x3a1)](_0x57addb);});},Mn*0x2);this[_0x461b68(0x1ca)]['set'](_0x57addb,_0x28b600);}['_removeClearOtherTimer'](_0x108bb3){const _0x2c9071=_0x78f52a;if(this[_0x2c9071(0x1ca)][_0x2c9071(0x355)](_0x108bb3)){let _0x5adaf2=this['_clearOtherTimers'][_0x2c9071(0x3a0)](_0x108bb3);_0x5adaf2&&window[_0x2c9071(0x386)](_0x5adaf2),this[_0x2c9071(0x1ca)][_0x2c9071(0x2d5)](_0x108bb3,null);}}[_0x78f52a(0x32f)](_0xecf778){const _0x48dae1=_0x78f52a;let {memberID:_0x419150,unitIDs:_0x2349eb}=_0xecf778;_0x2349eb[_0x48dae1(0x252)](_0x2923c8=>{const _0x5ea70f=_0x48dae1;var _0x1b1fc6;let _0x240aaa=this[_0x5ea70f(0x1af)]['get'](_0x2923c8);_0x240aaa&&(_0x240aaa[_0x5ea70f(0x3a1)](_0x419150),(_0x1b1fc6=this[_0x5ea70f(0x27a)](_0x2923c8))==null||_0x1b1fc6[_0x5ea70f(0x2d2)](_0x240aaa[_0x5ea70f(0x1a8)]===0x0?_0x5cdfcb['NO_OTHER_CLIENTS_EDITING']:_0x5cdfcb[_0x5ea70f(0x2ef)]));}),this[_0x48dae1(0x260)](_0x419150);}[_0x78f52a(0x22e)](_0x59c5d4){const _0x11f885=_0x78f52a;this['_scheduleClearOtherTimer'](_0x59c5d4[_0x11f885(0x23b)]);}[_0x78f52a(0x3a3)](_0x4770dd){const _0x5d801d=_0x78f52a;localStorage[_0x5d801d(0x31e)](Nn,JSON[_0x5d801d(0x1b3)](_0x4770dd));}['_scheduleHeartbeat'](){const _0xf5d339=_0x78f52a;this[_0xf5d339(0x18b)]=window[_0xf5d339(0x2ff)](()=>{const _0x553967=_0xf5d339;this[_0x553967(0x3a3)]({'type':0x2,'memberID':this[_0x553967(0x340)]});},Mn);}[_0x78f52a(0x27a)](_0x2a2d29){const _0x4d3e7f=_0x78f52a;return this['_unitStatus']['has'](_0x2a2d29)||this[_0x4d3e7f(0x1a1)]['set'](_0x2a2d29,new _0x1e5306(_0x5cdfcb[_0x4d3e7f(0x2c7)])),this[_0x4d3e7f(0x1a1)][_0x4d3e7f(0x3a0)](_0x2a2d29);}};export{An as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,Qt as IURLService,jn as RemoteUniscriptService,gn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,Pn as WebBrowserSingleActiveUnitService,kn as WebURLService};
@@ -1 +1 @@
1
- const _0x3b4902=_0x1543;function _0x1543(_0x4bded6,_0x538d46){_0x4bded6=_0x4bded6-0x105;const _0x50c775=_0x50c7();let _0x15438b=_0x50c775[_0x4bded6];return _0x15438b;}(function(_0x2321ab,_0x4639b7){const _0x33c372=_0x1543,_0x18a25a=_0x2321ab();while(!![]){try{const _0x3f2429=parseInt(_0x33c372(0x115))/0x1+-parseInt(_0x33c372(0x107))/0x2+parseInt(_0x33c372(0x10d))/0x3+parseInt(_0x33c372(0x114))/0x4*(parseInt(_0x33c372(0x106))/0x5)+-parseInt(_0x33c372(0x10b))/0x6+parseInt(_0x33c372(0x117))/0x7+-parseInt(_0x33c372(0x10c))/0x8;if(_0x3f2429===_0x4639b7)break;else _0x18a25a['push'](_0x18a25a['shift']());}catch(_0x98ae6e){_0x18a25a['push'](_0x18a25a['shift']());}}}(_0x50c7,0x19b7c));function _0x50c7(){const _0x362a6c=['111957Dtnefj','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Synced','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Syncing...','2716Kxeuym','103344idSvRP','Formula\x20calculation\x20started.','1121897ctfZCe','Unable\x20to\x20perform\x20formula\x20calculation\x20at\x20this\x20time.\x20Please\x20try\x20again\x20later.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Syncing\x20server\x20data...','1285NyOlGc','90612sSqfiq','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Edit\x20conflicts','Formula\x20calculation\x20queue\x20is\x20full,\x20waiting\x20for\x20available\x20slot...','1048194uJmebD','1200736XApyLI'];_0x50c7=function(){return _0x362a6c;};return _0x50c7();}const locale$1={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x3b4902(0x105),'conflict':_0x3b4902(0x109),'notCollab':'Local\x20file','synced':_0x3b4902(0x110),'syncing':_0x3b4902(0x113),'offline':_0x3b4902(0x111)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x3b4902(0x112),'collaboration-timeout':_0x3b4902(0x10e)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x3b4902(0x119)},'permission':{'title':'Authentication\x20Error','content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'offline-data-not-saved':'You\x20have\x20offline\x20edits\x20that\x20have\x20not\x20been\x20saved\x20to\x20the\x20server.\x20Please\x20check\x20your\x20network\x20and\x20try\x20again.','single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x3b4902(0x108)},'auth':{'needGotoLoginAlert':_0x3b4902(0x10f)},'formula':{'calculation':{'started':_0x3b4902(0x116),'waiting':_0x3b4902(0x10a),'unable':_0x3b4902(0x118)}}},locale=locale$1;export{locale as default};
1
+ const _0x2e7d62=_0x25a9;function _0x25a9(_0x33ee0b,_0x8b496d){_0x33ee0b=_0x33ee0b-0x127;const _0x4abfa1=_0x4abf();let _0x25a906=_0x4abfa1[_0x33ee0b];return _0x25a906;}(function(_0x1cdfb9,_0x6d6bc6){const _0x4d8cc7=_0x25a9,_0x21a5df=_0x1cdfb9();while(!![]){try{const _0x5593e7=parseInt(_0x4d8cc7(0x12d))/0x1+-parseInt(_0x4d8cc7(0x133))/0x2+parseInt(_0x4d8cc7(0x136))/0x3+parseInt(_0x4d8cc7(0x135))/0x4+parseInt(_0x4d8cc7(0x12b))/0x5+-parseInt(_0x4d8cc7(0x137))/0x6+parseInt(_0x4d8cc7(0x13d))/0x7;if(_0x5593e7===_0x6d6bc6)break;else _0x21a5df['push'](_0x21a5df['shift']());}catch(_0x18d6ab){_0x21a5df['push'](_0x21a5df['shift']());}}}(_0x4abf,0x90bdd));const e={'collab-client':{'tooltip':{'reconnect':_0x2e7d62(0x12a)}},'collabStatus':{'fetchMiss':_0x2e7d62(0x12e),'conflict':_0x2e7d62(0x13e),'notCollab':_0x2e7d62(0x127),'synced':'Synced','syncing':_0x2e7d62(0x134),'offline':_0x2e7d62(0x138)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x2e7d62(0x13a),'room-full':_0x2e7d62(0x12c),'collaboration-timeout':_0x2e7d62(0x128)},'conflict':{'title':_0x2e7d62(0x131),'content':_0x2e7d62(0x13c)},'permission':{'title':_0x2e7d62(0x129),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'offline-data-not-saved':_0x2e7d62(0x13b),'single-unit':{'warning':_0x2e7d62(0x132)},'closeRoom':_0x2e7d62(0x130)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'},'formula':{'calculation':{'started':_0x2e7d62(0x139),'waiting':_0x2e7d62(0x12f),'unable':'Unable\x20to\x20perform\x20formula\x20calculation\x20at\x20this\x20time.\x20Please\x20try\x20again\x20later.'}}};export{e as default};function _0x4abf(){const _0x5e5651=['1673035KBTHrJ','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','67728dOoeWK','Syncing\x20server\x20data...','Formula\x20calculation\x20queue\x20is\x20full,\x20waiting\x20for\x20available\x20slot...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Collaboration\x20Conflict','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1703898bCHVOj','Syncing...','1071868vBhCvr','3130587APwMxV','6975108ksyjiW','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Formula\x20calculation\x20started.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','You\x20have\x20offline\x20edits\x20that\x20have\x20not\x20been\x20saved\x20to\x20the\x20server.\x20Please\x20check\x20your\x20network\x20and\x20try\x20again.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','6254479tXkBZl','Edit\x20conflicts','Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Authentication\x20Error','Click\x20to\x20Reconnect'];_0x4abf=function(){return _0x5e5651;};return _0x4abf();}