@univerjs-pro/collaboration-client-ui 0.20.1 → 0.21.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 (61) 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.css +157 -6
  31. package/lib/index.js +1 -1
  32. package/lib/locale/ca-ES.js +1 -1
  33. package/lib/locale/en-US.js +1 -1
  34. package/lib/locale/es-ES.js +1 -1
  35. package/lib/locale/fa-IR.js +1 -1
  36. package/lib/locale/fr-FR.js +1 -1
  37. package/lib/locale/ja-JP.js +1 -1
  38. package/lib/locale/ko-KR.js +1 -1
  39. package/lib/locale/ru-RU.js +1 -1
  40. package/lib/locale/sk-SK.js +1 -1
  41. package/lib/locale/vi-VN.js +1 -1
  42. package/lib/locale/zh-CN.js +1 -1
  43. package/lib/locale/zh-TW.js +1 -1
  44. package/lib/types/services/local-cache/web-local-cache.service.d.ts +2 -3
  45. package/lib/types/views/components/CollabStatus.d.ts +11 -0
  46. package/lib/types/views/components/CollabStatus.stories.d.ts +10 -4
  47. package/lib/umd/facade.js +1 -1
  48. package/lib/umd/index.js +1 -1
  49. package/lib/umd/locale/ca-ES.js +1 -1
  50. package/lib/umd/locale/en-US.js +1 -1
  51. package/lib/umd/locale/es-ES.js +1 -1
  52. package/lib/umd/locale/fa-IR.js +1 -1
  53. package/lib/umd/locale/fr-FR.js +1 -1
  54. package/lib/umd/locale/ja-JP.js +1 -1
  55. package/lib/umd/locale/ko-KR.js +1 -1
  56. package/lib/umd/locale/ru-RU.js +1 -1
  57. package/lib/umd/locale/sk-SK.js +1 -1
  58. package/lib/umd/locale/vi-VN.js +1 -1
  59. package/lib/umd/locale/zh-CN.js +1 -1
  60. package/lib/umd/locale/zh-TW.js +1 -1
  61. package/package.json +20 -22
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1eca44=_0x19c3;(function(_0x13df56,_0x52f96d){const _0x3b2d12=_0x19c3,_0x2aa35f=_0x13df56();while(!![]){try{const _0x9281c=-parseInt(_0x3b2d12(0x1e4))/0x1+parseInt(_0x3b2d12(0x1a6))/0x2+-parseInt(_0x3b2d12(0x129))/0x3+parseInt(_0x3b2d12(0x13c))/0x4*(parseInt(_0x3b2d12(0x19c))/0x5)+-parseInt(_0x3b2d12(0xff))/0x6+parseInt(_0x3b2d12(0x18c))/0x7*(parseInt(_0x3b2d12(0x240))/0x8)+parseInt(_0x3b2d12(0x17c))/0x9;if(_0x9281c===_0x52f96d)break;else _0x2aa35f['push'](_0x2aa35f['shift']());}catch(_0x554ecc){_0x2aa35f['push'](_0x2aa35f['shift']());}}}(_0x328f,0x200ca));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3d4bc4,CollaborationController as _0x57dd55,CollaborationSessionService as _0x51eb0a,CollaborationSocketService as _0x2dace2,CollaborationStatus as _0x2acd42,CollaborationUIEventId as _0x333b5a,CollaborationUIEventService as _0x304db6,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x185eaa,DEFAULT_WS_SESSION_TICKET_URL as _0x5b99d0,DataLoaderService as _0x40ca15,DocCollaborationEntity as _0x36cb37,ILocalCacheService as _0x1bf19f,LOCAL_CACHE_INTERVAL as _0x5300ae,LOCAL_CACHE_INTERVAL_KEY as _0x44227e,MemberService as _0x4afc39,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x7bd53f,SessionStatus as _0x514b06,UnitStatus as _0x22c9c1,UniverCollaborationClientPlugin as _0x4043ed,getLocalCacheKey as _0x213961}from'@univerjs-pro/collaboration-client';import{COLORS as _0x47a087,CanceledError as _0x275cf3,ColorKit as _0x39e834,CommandType as _0x5f57eb,DOC_RANGE_TYPE as _0x57d0c7,DependentOn as _0x3b8f72,Disposable as _0x44d99f,DisposableCollection as _0x4c0b32,ICommandService as _0x18bfb0,IConfigService as _0x143a5c,ILocalStorageService as _0x1dba92,ILogService as _0x59b49c,IUniverInstanceService as _0x3c294b,Inject as _0x4cb926,Injector as _0x581843,LocaleService as _0x467932,Optional as _0x2a8f64,Plugin as _0x63e95e,Rectangle as _0x39a267,RxDisposable as _0x1dedae,ThemeService as _0x41ea9c,Tools as _0x28db1c,UniverInstanceType as _0x1e8dc0,Workbook as _0x102510,createIdentifier as _0x8191a4,debounce as _0x2675b8,fromEventSubject as _0x2a5ecd,generateRandomId as _0x15ca60,isFormulaId as _0x577334,isFormulaString as _0x49e83d,merge as _0x98878e,mergeOverrideWithDependencies as _0x2d73fc,registerDependencies as _0x199c88,toDisposable as _0x144479,touchDependencies as _0x342fbe}from'@univerjs/core';import{BuiltInUIPart as _0x139e71,IBeforeCloseService as _0x34b99c,IMessageService as _0x4b0519,INotificationService as _0x3041f1,IUIPartsService as _0x328710,connectInjector as _0x122c3e,useDependency as _0x16c29a,useObservable as _0x1f082b}from'@univerjs/ui';import{BehaviorSubject as _0x307ead,Subject as _0x2dd4af,combineLatest as _0x60199c,debounceTime as _0x40b863,distinctUntilChanged as _0x53c2ac,filter as _0x3071ef,fromEvent as _0x3dbcf5,mapTo as _0x383e17,merge as _0x5c00ec,of as _0x2d9831,shareReplay as _0x3015db,switchMap as _0xac7634,takeUntil as _0xdaeaff}from'rxjs';import{MessageType as _0x50fdca,Tooltip as _0x31e0bd,clsx as _0x3d8c30}from'@univerjs/design';import{OffLineIcon as _0x4cfc19,OnLineIcon as _0x33a85b}from'@univerjs/icons';import{useCallback as _0xb279a0}from'react';import{jsx as _0x1f0636,jsxs as _0x494827}from'react/jsx-runtime';import{IRemoteInstanceService as _0x39a763}from'@univerjs/rpc';import{EffectRefRangId as _0xc4e8d5,RefRangeService as _0x5d6170,SetSelectionsOperation as _0x22d7b7,SetWorksheetActivateCommand as _0x5cb38e,SheetsSelectionsService as _0x256d11,handleDeleteRangeMoveLeft as _0x48fd43,handleDeleteRangeMoveUp as _0x249e88,handleIRemoveCol as _0x1dc246,handleIRemoveRow as _0x11b3a7,handleInsertCol as _0x143e62,handleInsertRangeMoveDown as _0x18eaaf,handleInsertRangeMoveRight as _0x53abe6,handleInsertRow as _0xf10c85,handleMoveRange as _0x90aec0,runRefRangeMutations as _0x515cff}from'@univerjs/sheets';import{IRenderManagerService as _0x5b5070,Rect as _0x11e14e,RegularPolygon as _0x37a772,SHEET_VIEWPORT_KEY as _0x5886ed,Shape as _0x17fdd5,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x324566,Vector2 as _0x1fd942,getColor as _0x5b14b3}from'@univerjs/engine-render';import{HTTPService as _0x249751,ISocketService as _0x2878b7,WebSocketService as _0x2a8f63}from'@univerjs/network';import{DocIMEInputManagerService as _0x1e57d7,DocStateChangeManagerService as _0x3dbe1b,IDocClipboardService as _0x37f8b6,NodePositionConvertToCursor as _0x2cced5,NodePositionConvertToRectRange as _0xf9e6d3,SetDocZoomRatioOperation as _0x3cddad,TEXT_RANGE_LAYER_INDEX as _0x27d651}from'@univerjs/docs-ui';import{IImageIoService as _0x1f1a36}from'@univerjs/drawing';import{CollaborationEvent as _0x5875c4,ISnapshotServerService as _0x558147,ITransformService as _0x1e2e82,RevisionService as _0x29c2bb,isTransformMutationFailure as _0x122d06,isTransformMutationsWithChangesetSuccess as _0x2cae59}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x464bb0,DocSkeletonManagerService as _0x52b6a4,RichTextEditingMutation as _0x37c2c5,SetTextSelectionsOperation as _0x3cba00}from'@univerjs/docs';import{FormulaExecuteStageType as _0x390aba,FormulaExecutedStateType as _0x3061ab,SetFormulaCalculationNotificationMutation as _0x43d082,SetFormulaCalculationStartMutation as _0x568d42,deserializeRangeWithSheet as _0x1462bc,serializeRangeWithSheet as _0x33546a}from'@univerjs/engine-formula';import{filter as _0x531717,map as _0x7b7dc,switchMap as _0x3001c3,takeUntil as _0x4ccfa0,throttleTime as _0x118f5d}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3f9d2e,getCoordByCell as _0x5d9131,getSheetObject as _0x3b060c}from'@univerjs/sheets-ui';import{ErrorCode as _0x1c66e2}from'@univerjs/protocol';function qt(_0x3f354d){const _0x4705c9=_0x19c3;switch(_0x3f354d){case _0x2acd42[_0x4705c9(0x1cf)]:return'collabStatus.offline';case _0x2acd42[_0x4705c9(0x1a9)]:return'collabStatus.conflict';case _0x2acd42['FETCH_MISS']:return _0x4705c9(0x258);case _0x2acd42[_0x4705c9(0x25b)]:return'collabStatus.notCollab';case _0x2acd42[_0x4705c9(0x2d2)]:case _0x2acd42[_0x4705c9(0x267)]:return'collabStatus.syncing';case _0x2acd42[_0x4705c9(0x23c)]:case _0x2acd42[_0x4705c9(0x2d5)]:return _0x4705c9(0x27e);}}function Jt(_0x5e28e){const _0x1b3e6e=_0x19c3;let {status$:_0xeafe0d}=_0x5e28e,_0x593203=_0x1f082b(_0xeafe0d,_0x2acd42[_0x1b3e6e(0x25b)]),_0x5a1bca=_0x16c29a(_0x467932),_0x1b0201=_0x16c29a(_0x51eb0a),_0x246dd3=_0x593203!==_0x2acd42['OFFLINE'],_0x460f89=_0x5a1bca['t'](qt(_0x593203)),_0x42ce01=_0x1f0636(_0x246dd3?_0x33a85b:_0x4cfc19,{}),_0x5b5d4d=_0xb279a0(()=>{const _0x2a6922=_0x1b3e6e;_0x246dd3||_0x1b0201[_0x2a6922(0x1d3)]();},[_0x246dd3,_0x1b0201]);function _0x202687(){const _0x2c1ad9=_0x1b3e6e;return _0x494827(_0x2c1ad9(0x1bd),{'className':'univer-flex\x20univer-items-center','onClick':_0x5b5d4d,'children':[_0x1f0636('div',{'className':_0x3d8c30(_0x2c1ad9(0x227),{'univer-text-green-500':_0x246dd3,'univer-text-red-500':!_0x246dd3}),'children':_0x42ce01}),_0x1f0636(_0x2c1ad9(0x1bd),{'className':_0x2c1ad9(0x103),'children':_0x460f89})]});}return _0x246dd3?_0x202687():_0x1f0636(_0x31e0bd,{'title':_0x5a1bca['t'](_0x1b3e6e(0x118)),'children':_0x202687()});}function U(_0x5bde9e){'@babel/helpers - typeof';const _0x35870c=_0x19c3;return U=typeof Symbol=='function'&&typeof Symbol[_0x35870c(0x242)]==_0x35870c(0x1a2)?function(_0x42902e){return typeof _0x42902e;}:function(_0x4b55d0){const _0x244f73=_0x35870c;return _0x4b55d0&&typeof Symbol==_0x244f73(0x265)&&_0x4b55d0[_0x244f73(0x1ec)]===Symbol&&_0x4b55d0!==Symbol['prototype']?'symbol':typeof _0x4b55d0;},U(_0x5bde9e);}function Yt(_0x43a94f,_0x3dedbd){const _0x55a58f=_0x19c3;if(U(_0x43a94f)!=_0x55a58f(0x1aa)||!_0x43a94f)return _0x43a94f;var _0x47ee39=_0x43a94f[Symbol['toPrimitive']];if(_0x47ee39!==void 0x0){var _0x1139f9=_0x47ee39[_0x55a58f(0x2ce)](_0x43a94f,_0x3dedbd||_0x55a58f(0x275));if(U(_0x1139f9)!=_0x55a58f(0x1aa))return _0x1139f9;throw TypeError(_0x55a58f(0x2de));}return(_0x3dedbd===_0x55a58f(0x231)?String:Number)(_0x43a94f);}function Xt(_0x2b4775){const _0x127fdf=_0x19c3;var _0xa42aa8=Yt(_0x2b4775,'string');return U(_0xa42aa8)==_0x127fdf(0x1a2)?_0xa42aa8:_0xa42aa8+'';}function W(_0x24bcd7,_0xc69e77,_0x392882){return(_0xc69e77=Xt(_0xc69e77))in _0x24bcd7?Object['defineProperty'](_0x24bcd7,_0xc69e77,{'value':_0x392882,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24bcd7[_0xc69e77]=_0x392882,_0x24bcd7;}function G(_0x17a523,_0x1593dd){return function(_0x46d6ef,_0x321d5a){_0x1593dd(_0x46d6ef,_0x321d5a,_0x17a523);};}function K(_0x1b3d23,_0x26144b,_0xfd34b4,_0x4c3d35){const _0x211b4a=_0x19c3;var _0x1c56d3=arguments['length'],_0x414d46=_0x1c56d3<0x3?_0x26144b:_0x4c3d35===null?_0x4c3d35=Object['getOwnPropertyDescriptor'](_0x26144b,_0xfd34b4):_0x4c3d35,_0x5de8ed;if(typeof Reflect==_0x211b4a(0x1aa)&&typeof Reflect[_0x211b4a(0xf6)]==_0x211b4a(0x265))_0x414d46=Reflect[_0x211b4a(0xf6)](_0x1b3d23,_0x26144b,_0xfd34b4,_0x4c3d35);else{for(var _0x512586=_0x1b3d23['length']-0x1;_0x512586>=0x0;_0x512586--)(_0x5de8ed=_0x1b3d23[_0x512586])&&(_0x414d46=(_0x1c56d3<0x3?_0x5de8ed(_0x414d46):_0x1c56d3>0x3?_0x5de8ed(_0x26144b,_0xfd34b4,_0x414d46):_0x5de8ed(_0x26144b,_0xfd34b4))||_0x414d46);}return _0x1c56d3>0x3&&_0x414d46&&Object[_0x211b4a(0x2a5)](_0x26144b,_0xfd34b4,_0x414d46),_0x414d46;}let q=class extends _0x44d99f{constructor(_0x57a44f,_0x2d60cf,_0xbc27bb,_0x599e9a){const _0xfd416a=_0x19c3;super(),this[_0xfd416a(0x261)]=_0x57a44f,this[_0xfd416a(0x194)]=_0x2d60cf,this[_0xfd416a(0x277)]=_0xbc27bb,this[_0xfd416a(0x291)]=_0x599e9a,W(this,_0xfd416a(0x1de),new _0x307ead(_0x2acd42['NOT_COLLAB'])),this[_0xfd416a(0x22b)](),this['_initStatusListener']();}['_initStatusListener'](){const _0x53f508=_0x19c3;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x53f508(0xf2)](_0xac7634(()=>{const _0x527e30=_0x53f508;let _0x8632e4=this[_0x527e30(0x261)][_0x527e30(0x263)]();return _0x8632e4?this[_0x527e30(0x277)][_0x527e30(0x13d)](_0x8632e4[_0x527e30(0x187)]()):_0x2d9831(null);}),_0xac7634(_0x3a7564=>_0x3a7564?_0x3a7564[_0x53f508(0x114)]:_0x2d9831(_0x2acd42['NOT_COLLAB'])))[_0x53f508(0x181)](_0xfb1f45=>{const _0x2fdf57=_0x53f508;this[_0x2fdf57(0x1de)][_0x2fdf57(0x246)](_0xfb1f45);}));}['_initStatusComponent'](){const _0x2df43e=_0x19c3;this['disposeWithMe'](this[_0x2df43e(0x291)][_0x2df43e(0x1d0)](_0x139e71['HEADER_MENU'],()=>_0x122c3e(Zt({'status$':this[_0x2df43e(0x1de)][_0x2df43e(0x170)]()}),this[_0x2df43e(0x194)])));}};q=K([G(0x0,_0x3c294b),G(0x1,_0x4cb926(_0x581843)),G(0x2,_0x4cb926(_0x57dd55)),G(0x3,_0x328710)],q);function Zt(_0xa8d9){let {status$:_0x3677ac}=_0xa8d9;return function(){return _0x1f0636(Jt,{'status$':_0x3677ac});};}const Qt=_0x8191a4('uni.network.url-service');let J=class extends _0x1dedae{constructor(_0x30bb7a,_0x3cd04d,_0x40325,_0x7391d,_0x422043){const _0x480863=_0x19c3;super(),this['_urlService']=_0x30bb7a,this[_0x480863(0x2c0)]=_0x3cd04d,this[_0x480863(0x138)]=_0x40325,this[_0x480863(0x1cd)]=_0x7391d,_0x422043?_0x422043==null||_0x422043[_0x480863(0x293)]()[_0x480863(0x225)](()=>this[_0x480863(0x172)]()):(this[_0x480863(0x2c0)][_0x480863(0x120)](_0x480863(0x1a8),_0x480863(0x222)),this[_0x480863(0x172)]());}async['_init'](){const _0xb80448=_0x19c3;let _0x52c272=this[_0xb80448(0x228)]['getParam'](_0xb80448(0xf7)),_0x544198=this[_0xb80448(0x228)][_0xb80448(0xe9)](_0xb80448(0x24b)),_0x4355f4=this['_urlService'][_0xb80448(0xe9)]('subunit');if(!_0x52c272||!_0x544198){this['_logService'][_0xb80448(0x120)](_0xb80448(0x1a8),_0xb80448(0x22c));return;}let _0x39baee=await this[_0xb80448(0x1cd)][_0xb80448(0x282)](_0x52c272,Number(_0x544198),_0x4355f4);_0x39baee&&_0x39baee instanceof _0x102510&&this[_0xb80448(0x24a)](_0x39baee);}async[_0x1eca44(0x24a)](_0x1cd6d1){const _0x38011e=_0x1eca44;await this[_0x38011e(0x14f)](_0x1cd6d1),_0x1cd6d1['activeSheet$'][_0x38011e(0xf2)](_0xdaeaff(this[_0x38011e(0x21e)]))[_0x38011e(0x181)](_0x3ca6ad=>{_0x3ca6ad&&this['_updateURLWithCurrentState'](_0x3ca6ad);}),this[_0x38011e(0x228)][_0x38011e(0x2d0)][_0x38011e(0xf2)](_0xdaeaff(this[_0x38011e(0x21e)]))[_0x38011e(0x181)](()=>this[_0x38011e(0x14f)](_0x1cd6d1));}[_0x1eca44(0x2db)](_0x51b067,_0x20c7e7=!0x1){const _0x6dab6d=_0x1eca44;let _0x1f2203=this[_0x6dab6d(0x228)][_0x6dab6d(0xe9)](_0x6dab6d(0x24f));_0x51b067[_0x6dab6d(0x127)]()!==_0x1f2203&&this[_0x6dab6d(0x228)][_0x6dab6d(0x2af)]('subunit',_0x51b067['getSheetId'](),_0x20c7e7);}async[_0x1eca44(0x14f)](_0x42a8ab){const _0x2ba558=_0x1eca44;var _0x35f282;let _0x446d5e=this[_0x2ba558(0x228)]['getParam'](_0x2ba558(0x24f));if(!_0x446d5e||!_0x42a8ab['getSheetBySheetId'](_0x446d5e)){let _0x24b5a8=_0x42a8ab['getUnhiddenWorksheets']()[0x0],_0xc7a4fb=_0x42a8ab[_0x2ba558(0x149)](_0x24b5a8);if(!_0xc7a4fb)return;this['_updateURLWithCurrentState'](_0xc7a4fb,!0x0),await this['_commandService'][_0x2ba558(0x124)](_0x5cb38e['id'],{'unitId':_0x42a8ab['getUnitId'](),'subUnitId':_0x24b5a8});return;}((_0x35f282=_0x42a8ab[_0x2ba558(0x113)]())==null?void 0x0:_0x35f282[_0x2ba558(0x127)]())!==_0x446d5e&&await this[_0x2ba558(0x138)][_0x2ba558(0x124)](_0x5cb38e['id'],{'unitId':_0x42a8ab[_0x2ba558(0x187)](),'subUnitId':_0x446d5e});}};J=K([G(0x0,Qt),G(0x1,_0x59b49c),G(0x2,_0x18bfb0),G(0x3,_0x4cb926(_0x40ca15)),G(0x4,_0x2a8f64(_0x39a763))],J);var $t='@univerjs-pro/collaboration-client-ui',en=_0x1eca44(0x20d);let tn=class extends _0x1dedae{constructor(_0x1e9dc5,_0xe7db37){const _0x269e22=_0x1eca44;super(),this[_0x269e22(0x11c)]=_0x1e9dc5,this[_0x269e22(0x173)]=_0xe7db37,this[_0x269e22(0x172)]();}['_init'](){const _0x356d8d=_0x1eca44;let _0x3d176f=this;this['disposeWithMe'](this[_0x356d8d(0x11c)][_0x356d8d(0x123)]({'onBeforePasteImage':async _0x453aef=>{const _0x2fa3af=_0x356d8d;let _0x1f0d10=await _0x3d176f[_0x2fa3af(0x173)][_0x2fa3af(0x1fb)](_0x453aef);return _0x1f0d10?{'source':_0x1f0d10[_0x2fa3af(0x106)],'imageSourceType':_0x1f0d10[_0x2fa3af(0x116)]}:null;}}));}};tn=K([G(0x0,_0x37f8b6),G(0x1,_0x1f1a36)],tn);const nn=[_0x1eca44(0x1d5),'jiqing.500',_0x1eca44(0x167),_0x1eca44(0x128),_0x1eca44(0x166),_0x1eca44(0x17e)];var rn=class extends _0x44d99f{constructor(..._0x1fc83c){const _0x30c1bc=_0x1eca44;super(..._0x1fc83c),W(this,_0x30c1bc(0x12a),new Map()),W(this,_0x30c1bc(0x27b),0x0);}[_0x1eca44(0x20e)](_0x15e452){const _0x14ceb4=_0x1eca44;if(this[_0x14ceb4(0x12a)][_0x14ceb4(0x148)](_0x15e452))return this['_assignedColors']['get'](_0x15e452);let _0x1144dc=nn[this[_0x14ceb4(0x27b)]];return this[_0x14ceb4(0x27b)]=(this[_0x14ceb4(0x27b)]+0x1)%nn[_0x14ceb4(0x1e7)],this[_0x14ceb4(0x12a)][_0x14ceb4(0x191)](_0x15e452,_0x1144dc),_0x1144dc;}},an=function(_0x4442e6){const _0x1005ea=_0x1eca44;return _0x4442e6[_0x1005ea(0x110)]='1',_0x4442e6[_0x1005ea(0x1c5)]='0',_0x4442e6;}(an||{});function on(_0x515a24){const _0x32d9dd=_0x1eca44;let _0x25731f='';for(let _0x252875 of _0x515a24){let {startOffset:_0x1575c6,endOffset:_0xba13e9,isActive:_0x419b88,rangeType:_0x1687ad,segmentId:_0x24d0e0,segmentPage:_0x25de3d}=_0x252875;_0x25731f[_0x32d9dd(0x1e7)]&&(_0x25731f+=','),_0x25731f+=_0x1575c6+':'+_0xba13e9+':'+(_0x419b88?an[_0x32d9dd(0x110)]:an['Inactive'])+':'+_0x1687ad+':'+_0x24d0e0+':'+_0x25de3d;}return _0x25731f;}function sn(_0x1be833){const _0x53ed44=_0x1eca44;let _0x492bda=_0x1be833[_0x53ed44(0x1bb)](','),_0x10fb52=[];for(let _0x2bd649 of _0x492bda){let [_0x49196f,_0x492e72,_0x3a0408,_0x1f7ac2,_0x2e9f24,_0x3ac46f]=_0x2bd649['split'](':');_0x10fb52['push']({'startOffset':Number(_0x49196f),'endOffset':Number(_0x492e72),'collapsed':_0x49196f===_0x492e72,'isActive':_0x3a0408===an[_0x53ed44(0x110)],'rangeType':_0x1f7ac2===_0x57d0c7[_0x53ed44(0x25f)]?_0x57d0c7['TEXT']:_0x57d0c7[_0x53ed44(0x155)],'segmentId':typeof _0x2e9f24=='string'?String(_0x2e9f24):'','segmentPage':Number(_0x3ac46f==null?-0x1:_0x3ac46f)});}return _0x10fb52[_0x53ed44(0x102)](_0x12b7ea=>_0x12b7ea['isActive'])||(_0x10fb52[0x0]['isActive']=!0x0),_0x10fb52;}var cn=class extends _0x1dedae{constructor(..._0x48442a){const _0x43ce7d=_0x1eca44;super(..._0x48442a),W(this,_0x43ce7d(0x185),new _0x307ead(null)),W(this,_0x43ce7d(0x13b),this[_0x43ce7d(0x185)]['asObservable']());}['syncEditingCollabCursor'](_0x252aae){const _0x550665=_0x1eca44;let {unitID:_0x5188e3,memberID:_0x3d34b1,textRanges:_0x6b3e05}=_0x252aae,_0x2416dd=on(_0x6b3e05);if(_0x2416dd==='')return;let _0x17f7db={'unitID':_0x5188e3,'memberID':_0x3d34b1,'selection':_0x2416dd};this[_0x550665(0x185)]['next'](_0x17f7db);}};let ln=class extends _0x1dedae{get['cursorInfo'](){const _0x548261=_0x1eca44;return this[_0x548261(0x208)][_0x548261(0x24c)]();}get['roomMembers'](){const _0x2c9d7d=_0x1eca44;return this['_roomMembers$'][_0x2c9d7d(0x24c)]();}constructor(_0x4fba6e,_0x124dc8,_0x3df862,_0x3502a8,_0x37bece,_0x51f7ed,_0x2ac7fb,_0x18c510,_0x262f45){const _0x178524=_0x1eca44;super(),this[_0x178524(0x2bf)]=_0x4fba6e,this['_session']=_0x124dc8,this['_injector']=_0x3df862,this[_0x178524(0x2a1)]=_0x3502a8,this['_memberService']=_0x37bece,this[_0x178524(0x216)]=_0x51f7ed,this[_0x178524(0x11d)]=_0x2ac7fb,this[_0x178524(0x261)]=_0x18c510,this[_0x178524(0x138)]=_0x262f45,W(this,'_online',!0x1),W(this,_0x178524(0x172),!0x1),W(this,_0x178524(0x208),new _0x307ead(new Map())),W(this,_0x178524(0x163),this['_cursorInfo$'][_0x178524(0x170)]()),W(this,_0x178524(0x2e0),new _0x307ead([])),W(this,_0x178524(0x184),this[_0x178524(0x2e0)][_0x178524(0xf2)](_0x40b863(0x12c))),W(this,_0x178524(0x150),_0x2675b8(_0x20a441=>{const _0x345047=_0x178524;let _0x4dcd2b={'eventID':_0x5875c4[_0x345047(0x19a)],'data':{'unitID':this[_0x345047(0x2bf)],'memberID':this[_0x345047(0x154)][_0x345047(0x273)](),'selection':on(_0x20a441)}};this[_0x345047(0x154)]['send'](_0x4dcd2b,this[_0x345047(0x2bf)]);},0x64));}['dispose'](){const _0x3520a5=_0x1eca44;super[_0x3520a5(0x17d)](),this[_0x3520a5(0x208)][_0x3520a5(0x246)](new Map()),this[_0x3520a5(0x208)][_0x3520a5(0xe5)](),this[_0x3520a5(0x2e0)][_0x3520a5(0x246)]([]),this[_0x3520a5(0x2e0)][_0x3520a5(0xe5)]();}[_0x1eca44(0x2c4)](){const _0x2183a0=_0x1eca44;this[_0x2183a0(0x172)]||(this[_0x2183a0(0x172)]=!0x0,this['_session'][_0x2183a0(0x212)][_0x2183a0(0xf2)](_0xdaeaff(this[_0x2183a0(0x21e)]))[_0x2183a0(0x181)](_0x43b17a=>{_0x43b17a===_0x514b06['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x2183a0(0x154)][_0x2183a0(0x247)]['pipe'](_0xdaeaff(this['dispose$']))[_0x2183a0(0x181)](_0x16c5fc=>{const _0x15197b=_0x2183a0;let _0x56dbd3=_0x16c5fc['eventID'];_0x56dbd3===_0x5875c4['UPDATE_CURSOR']&&this[_0x15197b(0x2cf)](_0x16c5fc),_0x56dbd3===_0x5875c4[_0x15197b(0x204)]&&this[_0x15197b(0x1d7)](_0x16c5fc);}),this[_0x2183a0(0x164)](this[_0x2183a0(0x138)][_0x2183a0(0x10b)](_0x59547b=>{const _0x18678c=_0x2183a0;let _0x42ac82=_0x59547b[_0x18678c(0x115)];_0x42ac82!=null&&this[_0x18678c(0x196)]&&_0x59547b['id']===_0x3cba00['id']&&_0x42ac82[_0x18678c(0x2b7)]===this[_0x18678c(0x2bf)]&&_0x42ac82[_0x18678c(0x20a)]===!0x1&&_0x42ac82[_0x18678c(0x27f)][_0x18678c(0x1e7)]>0x0&&this[_0x18678c(0x150)](_0x42ac82[_0x18678c(0x27f)]);})),this[_0x2183a0(0x216)][_0x2183a0(0x13b)][_0x2183a0(0xf2)](_0xdaeaff(this[_0x2183a0(0x21e)]))[_0x2183a0(0x181)](_0x5214d5=>{const _0x230eb1=_0x2183a0;if((_0x5214d5==null?void 0x0:_0x5214d5[_0x230eb1(0x2bf)])!==this[_0x230eb1(0x2bf)])return;let _0x5e9d10={'eventID':_0x5875c4['UPDATE_CURSOR'],'data':_0x5214d5};this[_0x230eb1(0x2cf)](_0x5e9d10);}),this[_0x2183a0(0x164)](this[_0x2183a0(0x138)]['onCommandExecuted'](_0x3ae7a0=>{const _0x4e6d9c=_0x2183a0;if(_0x3ae7a0[_0x4e6d9c(0x115)]==null)return;let _0x5a15d1=_0x3ae7a0[_0x4e6d9c(0x115)];if(_0x3ae7a0['id']!==_0x37c2c5['id']||_0x5a15d1[_0x4e6d9c(0x2b7)]!==this['unitID'])return;let _0x2bc12f={'id':_0x4e6d9c(0x203),'params':_0x5a15d1},_0x8148cc=this[_0x4e6d9c(0x1b7)];for(let [_0x264480,_0x53b720]of _0x8148cc){let _0x2146c3={'id':_0x4e6d9c(0x203),'params':{'unitId':this[_0x4e6d9c(0x2bf)],'actions':null,'textRanges':_0x53b720[_0x4e6d9c(0x27f)]}},_0x4a2792=this[_0x4e6d9c(0x11d)]['transformMutation'](_0x2bc12f,_0x2146c3,!0x1);if(_0x122d06(_0x4a2792))throw _0x4a2792[_0x4e6d9c(0x2ac)];_0x8148cc[_0x4e6d9c(0x191)](_0x264480,{..._0x53b720,'ranges':_0x4a2792[_0x4e6d9c(0x151)][_0x4e6d9c(0x115)][_0x4e6d9c(0x198)]});}queueMicrotask(()=>{const _0x14c41c=_0x4e6d9c;this[_0x14c41c(0x208)]['next'](_0x8148cc);});})));}[_0x1eca44(0x2cf)](_0x3647ca){const _0x15d96b=_0x1eca44;var _0x93dd45,_0x4c1ec9;let {memberID:_0x54cb88,selection:_0x3321d4}=_0x3647ca[_0x15d96b(0x2c1)],_0x54ca2a=sn(_0x3321d4),_0x27d547=(_0x93dd45=(_0x4c1ec9=this[_0x15d96b(0x17f)][_0x15d96b(0xe4)](this[_0x15d96b(0x2bf)],_0x54cb88))==null?void 0x0:_0x4c1ec9[_0x15d96b(0x136)])==null?'Unknown\x20user':_0x93dd45,_0x5368eb={'color':this[_0x15d96b(0x2a1)]['assignAColorForMemberID'](_0x54cb88),'name':_0x27d547,'ranges':_0x54ca2a},_0x1b22f6=this[_0x15d96b(0x1b7)];_0x1b22f6[_0x15d96b(0x191)](_0x54cb88,_0x5368eb),this[_0x15d96b(0x208)]['next'](_0x1b22f6);}[_0x1eca44(0x1d7)](_0x511b22){const _0x4c76eb=_0x1eca44;let {memberID:_0x30b30}=_0x511b22[_0x4c76eb(0x2c1)],_0x4ebb59=this[_0x4c76eb(0x1b7)];_0x4ebb59['delete'](_0x30b30),this[_0x4c76eb(0x208)]['next'](_0x4ebb59);}[_0x1eca44(0x26c)](){const _0x53313c=_0x1eca44;var _0x403879;if(this[_0x53313c(0x196)]=!0x0,((_0x403879=this[_0x53313c(0x261)]['getFocusedUnit']())==null?void 0x0:_0x403879['getUnitId']())!==this['unitID'])return;let _0x7d74=this['_injector'][_0x53313c(0xe1)](_0x464bb0)[_0x53313c(0x296)]();Array[_0x53313c(0x2dd)](_0x7d74)&&_0x7d74[_0x53313c(0x1e7)]>0x0&&this[_0x53313c(0x150)](_0x7d74);}[_0x1eca44(0x1d2)](){const _0x9d863b=_0x1eca44;this[_0x9d863b(0x196)]=!0x1;}};ln=K([G(0x2,_0x4cb926(_0x581843)),G(0x3,_0x4cb926(rn)),G(0x4,_0x4cb926(_0x4afc39)),G(0x5,_0x4cb926(cn)),G(0x6,_0x1e2e82),G(0x7,_0x3c294b),G(0x8,_0x18bfb0)],ln);const un=()=>{let _0x47199d=[],_0x2c3bb4=!0x1;return _0xf3ed7b=>{_0x47199d['push'](_0xf3ed7b),_0x2c3bb4||(_0x2c3bb4=!0x0,setTimeout(()=>{const _0x271e7d=_0x19c3;_0x47199d[_0x271e7d(0x1f9)](_0x1dd977=>_0x1dd977()),_0x47199d=[],_0x2c3bb4=!0x1;}));};};let dn=class extends _0x1dedae{get['cursorInfo'](){const _0x3e615b=_0x1eca44;return this['_cursorInfo$'][_0x3e615b(0x24c)]();}get[_0x1eca44(0x257)](){const _0x463ad7=_0x1eca44;return this[_0x463ad7(0x2e0)]['getValue']();}constructor(_0x5b37fe,_0x219863,_0x50ffaa,_0x532a36,_0x13842d,_0x58541f,_0x448d70,_0x3d8d2a){const _0x3d372d=_0x1eca44;super(),this['unitID']=_0x5b37fe,this[_0x3d372d(0x154)]=_0x219863,this[_0x3d372d(0x194)]=_0x50ffaa,this[_0x3d372d(0x2a1)]=_0x532a36,this[_0x3d372d(0x17f)]=_0x13842d,this[_0x3d372d(0x261)]=_0x58541f,this[_0x3d372d(0x138)]=_0x448d70,this[_0x3d372d(0x2df)]=_0x3d8d2a,W(this,_0x3d372d(0x196),!0x1),W(this,_0x3d372d(0x172),!0x1),W(this,_0x3d372d(0x208),new _0x307ead(new Map())),W(this,_0x3d372d(0x163),this['_cursorInfo$'][_0x3d372d(0x170)]()),W(this,_0x3d372d(0x2e0),new _0x307ead([])),W(this,'roomMembers$',this[_0x3d372d(0x2e0)][_0x3d372d(0xf2)](_0x40b863(0x12c))),W(this,_0x3d372d(0x150),_0x2675b8((_0x26265c,_0x2f28bc)=>{const _0x2a21ca=_0x3d372d;let _0x18ef98={'eventID':_0x5875c4[_0x2a21ca(0x19a)],'data':{'unitID':this[_0x2a21ca(0x2bf)],'memberID':this[_0x2a21ca(0x154)][_0x2a21ca(0x273)](),'selection':_0x33546a(_0x26265c,_0x2f28bc[_0x2a21ca(0x29f)])}};this[_0x2a21ca(0x154)][_0x2a21ca(0x280)](_0x18ef98,this[_0x2a21ca(0x2bf)]);},0x64));}[_0x1eca44(0x17d)](){const _0x9be8a9=_0x1eca44;super['dispose'](),this[_0x9be8a9(0x208)][_0x9be8a9(0x246)](new Map()),this['_cursorInfo$'][_0x9be8a9(0xe5)](),this['_roomMembers$'][_0x9be8a9(0x246)]([]),this['_roomMembers$'][_0x9be8a9(0xe5)]();}['init'](){const _0x28f3d5=_0x1eca44;this[_0x28f3d5(0x172)]||(this[_0x28f3d5(0x172)]=!0x0,this[_0x28f3d5(0x154)]['sessionStatus$'][_0x28f3d5(0xf2)](_0xdaeaff(this[_0x28f3d5(0x21e)]))['subscribe'](_0x360b6b=>{const _0x5931f2=_0x28f3d5;_0x360b6b===_0x514b06[_0x5931f2(0x11b)]?this[_0x5931f2(0x26c)]():this[_0x5931f2(0x1d2)]();}),this[_0x28f3d5(0x154)][_0x28f3d5(0x247)][_0x28f3d5(0xf2)](_0xdaeaff(this[_0x28f3d5(0x21e)]))[_0x28f3d5(0x181)](_0x43716c=>{const _0xf68500=_0x28f3d5;let _0x3ff3fa=_0x43716c[_0xf68500(0x159)];_0x3ff3fa===_0x5875c4[_0xf68500(0x19a)]&&this[_0xf68500(0x2cf)](_0x43716c),_0x3ff3fa===_0x5875c4[_0xf68500(0x204)]&&this[_0xf68500(0x1d7)](_0x43716c);}),this[_0x28f3d5(0x1ee)](),this[_0x28f3d5(0x164)](this[_0x28f3d5(0x138)][_0x28f3d5(0x10b)](_0x5870bd=>{const _0x2c4850=_0x28f3d5;if(this[_0x2c4850(0x196)]&&_0x5870bd['id']===_0x22d7b7['id']&&_0x5870bd[_0x2c4850(0x115)][_0x2c4850(0x2b7)]===this[_0x2c4850(0x2bf)]){let _0x140e50=_0x5870bd[_0x2c4850(0x115)];this['_updateLocalCursor'](_0x140e50[_0x2c4850(0x1df)],_0x140e50[_0x2c4850(0x259)][0x0]);}})));}[_0x1eca44(0x2cf)](_0x3f6a48){const _0x18da22=_0x1eca44;var _0x381595,_0x5e6039;let {memberID:_0x18ec17,selection:_0x56582a}=_0x3f6a48[_0x18da22(0x2c1)],{sheetName:_0x539c85,range:_0x274629}=_0x1462bc(_0x56582a),_0x5e5104={'name':(_0x381595=(_0x5e6039=this[_0x18da22(0x17f)][_0x18da22(0xe4)](this['unitID'],_0x18ec17))==null?void 0x0:_0x5e6039[_0x18da22(0x136)])==null?'Unknown\x20user':_0x381595,'range':this['_getMergeRange'](_0x539c85,_0x274629),'sheetID':_0x539c85,'color':this[_0x18da22(0x2a1)]['assignAColorForMemberID'](_0x18ec17),'selection':_0x56582a},_0x1e57d8=this[_0x18da22(0x1b7)];_0x1e57d8[_0x18da22(0x191)](_0x18ec17,_0x5e5104),this[_0x18da22(0x208)][_0x18da22(0x246)](_0x1e57d8);}[_0x1eca44(0x1d7)](_0xd4e1a4){const _0x55e071=_0x1eca44;let {memberID:_0x133f84}=_0xd4e1a4[_0x55e071(0x2c1)],_0x29400d=this[_0x55e071(0x1b7)];_0x29400d['delete'](_0x133f84),this['_cursorInfo$']['next'](_0x29400d);}[_0x1eca44(0x188)](_0x44fe66,_0x7da219){const _0x28640a=_0x1eca44;var _0x485202;let _0x2f6071=(_0x485202=this[_0x28640a(0x261)][_0x28640a(0x295)](this[_0x28640a(0x2bf)]))==null||(_0x485202=_0x485202[_0x28640a(0x149)](_0x44fe66))==null?void 0x0:_0x485202['getMergeData']();return(_0x2f6071==null?void 0x0:_0x2f6071[_0x28640a(0x1e6)](_0x588ece=>_0x39a267[_0x28640a(0xf8)](_0x588ece,_0x7da219)))||_0x7da219;}[_0x1eca44(0x1ee)](){const _0x40a50a=_0x1eca44;let _0x2c2641=new _0x4c0b32(),_0x581076=un(),_0x4297d6=()=>{const _0x24ae26=_0x19c3;_0x2c2641['dispose']();let _0x1088d9=(_0x2803c3,_0x478ac1,_0x2171a2,_0x2d1074)=>{const _0x150578=_0x19c3;let _0x1c4cc3=[];switch(_0x2803c3['id']){case _0xc4e8d5[_0x150578(0x27a)]:_0x1c4cc3=_0x48fd43(_0x2803c3,_0x2d1074);break;case _0xc4e8d5[_0x150578(0x285)]:_0x1c4cc3=_0x249e88(_0x2803c3,_0x2d1074);break;case _0xc4e8d5[_0x150578(0xeb)]:_0x1c4cc3=_0x143e62(_0x2803c3,_0x2d1074);break;case _0xc4e8d5[_0x150578(0x220)]:_0x1c4cc3=_0x18eaaf(_0x2803c3,_0x2d1074);break;case _0xc4e8d5[_0x150578(0x1f8)]:_0x1c4cc3=_0x53abe6(_0x2803c3,_0x2d1074);break;case _0xc4e8d5['InsertRowCommandId']:_0x1c4cc3=_0xf10c85(_0x2803c3,_0x2d1074);break;case _0xc4e8d5[_0x150578(0x2e1)]:_0x1c4cc3=_0x90aec0(_0x2803c3,_0x2d1074);break;case _0xc4e8d5['RemoveColCommandId']:_0x1c4cc3=_0x1dc246(_0x2803c3,_0x2d1074);break;case _0xc4e8d5[_0x150578(0x14c)]:_0x1c4cc3=_0x11b3a7(_0x2803c3,_0x2d1074);break;}let _0x5a7a46=_0x515cff(_0x1c4cc3,_0x2d1074),_0xb3c279=this['cursorInfo'][_0x150578(0xe1)](_0x478ac1);if(_0xb3c279&&_0x5a7a46){let _0x2a8e7a={..._0xb3c279,'range':_0x5a7a46};this[_0x150578(0x1b7)]['set'](_0x478ac1,_0x2a8e7a),_0x581076(()=>{const _0x10de7f=_0x150578;let _0x880644=this[_0x10de7f(0x2df)][_0x10de7f(0x25c)](_0x5a7a46,_0x40ad46=>(_0x880644[_0x10de7f(0x17d)](),_0x1088d9(_0x40ad46,_0x478ac1,_0x2171a2,_0x5a7a46)));_0x2c2641['add'](_0x880644);});}return{'redos':[],'undos':[]};};this[_0x24ae26(0x1b7)][_0x24ae26(0x1f9)]((_0x8a41e4,_0x4f0c4b)=>{const _0x2c43ad=_0x24ae26;let {range:_0x948b9d,sheetID:_0x223935}=_0x8a41e4,_0x24ab8f=this[_0x2c43ad(0x2df)][_0x2c43ad(0x25c)](_0x948b9d,_0x289ad7=>(_0x24ab8f[_0x2c43ad(0x17d)](),_0x1088d9(_0x289ad7,_0x4f0c4b,_0x223935,_0x948b9d)));_0x2c2641[_0x2c43ad(0x122)](_0x24ab8f);});};this[_0x40a50a(0x164)](_0x144479(this['_cursorInfo$']['subscribe'](()=>{_0x4297d6();})));}['_toggleOnline'](){const _0x4c7de9=_0x1eca44;var _0x25bc32,_0x5e7547;if(this[_0x4c7de9(0x196)]=!0x0,((_0x25bc32=this[_0x4c7de9(0x261)][_0x4c7de9(0x263)]())==null?void 0x0:_0x25bc32[_0x4c7de9(0x187)]())!==this[_0x4c7de9(0x2bf)])return;let _0x1b818f=(_0x5e7547=this[_0x4c7de9(0x194)]['get'](_0x256d11)['getCurrentSelections']())==null?void 0x0:_0x5e7547[0x0],_0x5aa4c2=this[_0x4c7de9(0x261)][_0x4c7de9(0x1cb)](_0x1e8dc0['UNIVER_SHEET'])[_0x4c7de9(0x113)]();_0x1b818f&&_0x5aa4c2&&this[_0x4c7de9(0x150)](_0x5aa4c2[_0x4c7de9(0x127)](),_0x1b818f);}[_0x1eca44(0x1d2)](){const _0x5836a7=_0x1eca44;this[_0x5836a7(0x196)]=!0x1;}};dn=K([G(0x2,_0x4cb926(_0x581843)),G(0x3,_0x4cb926(rn)),G(0x4,_0x4cb926(_0x4afc39)),G(0x5,_0x3c294b),G(0x6,_0x18bfb0),G(0x7,_0x4cb926(_0x5d6170))],dn);let Y=class extends _0x1dedae{constructor(_0x30ff5d,_0x236a5c,_0x4b4a06){const _0xcd8929=_0x1eca44;super(),this[_0xcd8929(0x261)]=_0x30ff5d,this[_0xcd8929(0x194)]=_0x236a5c,this['_collabSessionService']=_0x4b4a06,W(this,_0xcd8929(0x111),new Map()),W(this,_0xcd8929(0x18a),new _0x2dd4af()),this['_init']();}[_0x1eca44(0x17d)](){const _0x2d6029=_0x1eca44;super[_0x2d6029(0x17d)](),this['_entityInit$'][_0x2d6029(0xe5)](),this['_entities'][_0x2d6029(0x1f9)](_0x522f70=>_0x522f70[_0x2d6029(0x17d)]());}[_0x1eca44(0x199)](_0x6f51ba){const _0xa93cb7=_0x1eca44;return this[_0xa93cb7(0x111)][_0xa93cb7(0x148)](_0x6f51ba)?this[_0xa93cb7(0x111)]['get'](_0x6f51ba)[_0xa93cb7(0x163)]:this[_0xa93cb7(0x18a)][_0xa93cb7(0xf2)](_0x3071ef(_0x1a0c8=>_0x1a0c8['unitID']===_0x6f51ba),_0xac7634(_0x5a8c9f=>_0x5a8c9f[_0xa93cb7(0x163)]));}[_0x1eca44(0x172)](){const _0x4ebf76=_0x1eca44;this[_0x4ebf76(0x261)][_0x4ebf76(0x109)](_0x1e8dc0['UNIVER_SHEET'])[_0x4ebf76(0xf2)](_0xdaeaff(this['dispose$']))[_0x4ebf76(0x181)](async _0x44e3e6=>{const _0x2eee15=_0x4ebf76;let _0x359676=_0x44e3e6[_0x2eee15(0x187)](),_0x40ea41=await this[_0x2eee15(0x1c4)](_0x359676);this[_0x2eee15(0x18a)][_0x2eee15(0x246)](_0x40ea41),this[_0x2eee15(0x111)]['set'](_0x359676,_0x40ea41);}),this['_univerInstanceService'][_0x4ebf76(0x109)](_0x1e8dc0[_0x4ebf76(0x236)])[_0x4ebf76(0xf2)](_0xdaeaff(this['dispose$']))['pipe'](_0x3071ef(_0x1f378a=>!_0x1f378a[_0x4ebf76(0x187)]()[_0x4ebf76(0x2d4)]('__')))['subscribe'](async _0x2cc76e=>{const _0x38f2f0=_0x4ebf76;let _0x243f73=_0x2cc76e[_0x38f2f0(0x187)](),_0x29180c=await this[_0x38f2f0(0x10f)](_0x243f73);this[_0x38f2f0(0x18a)][_0x38f2f0(0x246)](_0x29180c),this[_0x38f2f0(0x111)][_0x38f2f0(0x191)](_0x243f73,_0x29180c);}),_0x5c00ec(this[_0x4ebf76(0x261)][_0x4ebf76(0x1a4)](_0x1e8dc0['UNIVER_DOC']),this[_0x4ebf76(0x261)][_0x4ebf76(0x1a4)](_0x1e8dc0[_0x4ebf76(0xe8)]))[_0x4ebf76(0xf2)](_0xdaeaff(this[_0x4ebf76(0x21e)]))[_0x4ebf76(0x181)](_0x4cb4d2=>{const _0x2b0245=_0x4ebf76;let _0x4ffee6=_0x4cb4d2[_0x2b0245(0x187)](),_0x2a89f0=this[_0x2b0245(0x111)][_0x2b0245(0xe1)](_0x4ffee6);_0x2a89f0&&(_0x2a89f0['dispose'](),this[_0x2b0245(0x111)]['delete'](_0x4ffee6));});}async[_0x1eca44(0x1c4)](_0x36edc9){const _0xb20343=_0x1eca44;let _0x39ccb2=await this[_0xb20343(0x24d)]['requireSession'](_0x36edc9),_0xbd9b4d=this[_0xb20343(0x194)]['createInstance'](dn,_0x36edc9,_0x39ccb2);return _0xbd9b4d[_0xb20343(0x2c4)](),_0xbd9b4d;}async[_0x1eca44(0x10f)](_0x16983b){const _0x36dcb9=_0x1eca44;let _0x2d95b4=await this[_0x36dcb9(0x24d)]['requireSession'](_0x16983b),_0x59f917=this['_injector']['createInstance'](ln,_0x16983b,_0x2d95b4);return _0x59f917['init'](),_0x59f917;}};Y=K([G(0x0,_0x3c294b),G(0x1,_0x4cb926(_0x581843)),G(0x2,_0x4cb926(_0x51eb0a))],Y);function fn(_0x34d03f,_0x1ad5da){const _0x3d79b0=_0x1eca44;var _0x33a171,_0xaf998,_0x1cac8f;let {radius:_0x2ad551,width:_0x34b546,height:_0x119000}=_0x1ad5da;_0x2ad551=(_0x33a171=_0x2ad551)==null?0x0:_0x33a171,_0x34b546=(_0xaf998=_0x34b546)==null?0x1e:_0xaf998,_0x119000=(_0x1cac8f=_0x119000)==null?0x1e:_0x1cac8f;let _0x232309=0x0,_0x4b509e=0x0,_0x5b0230=0x0;_0x232309=_0x4b509e=_0x5b0230=Math[_0x3d79b0(0x14e)](_0x2ad551,_0x34b546/0x2,_0x119000/0x2),_0x34d03f['beginPath'](),_0x34d03f[_0x3d79b0(0x1cc)](_0x232309,0x0),_0x34d03f[_0x3d79b0(0x202)](_0x34b546-_0x4b509e,0x0),_0x34d03f[_0x3d79b0(0x1d9)](_0x34b546-_0x4b509e,_0x4b509e,_0x4b509e,Math['PI']*0x3/0x2,0x0,!0x1),_0x34d03f[_0x3d79b0(0x202)](_0x34b546,_0x119000-_0x5b0230),_0x34d03f[_0x3d79b0(0x1d9)](_0x34b546-_0x5b0230,_0x119000-_0x5b0230,_0x5b0230,0x0,Math['PI']/0x2,!0x1),_0x34d03f[_0x3d79b0(0x202)](0x0,_0x119000),_0x34d03f[_0x3d79b0(0x202)](0x0,_0x232309),_0x34d03f[_0x3d79b0(0x1d9)](_0x232309,_0x232309,_0x232309,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x34d03f[_0x3d79b0(0x2c9)](),_0x1ad5da['fill']&&(_0x34d03f['save'](),_0x34d03f[_0x3d79b0(0xf4)]=_0x1ad5da[_0x3d79b0(0x2ae)],_0x1ad5da[_0x3d79b0(0x1bc)]==='evenodd'?_0x34d03f['fill'](_0x3d79b0(0x237)):_0x34d03f[_0x3d79b0(0x2ae)](),_0x34d03f[_0x3d79b0(0x1e5)]());}var pn=class e extends _0x17fdd5{constructor(_0x1f970a,_0x10a83c){const _0x203e21=_0x1eca44;super(_0x1f970a,_0x10a83c),W(this,_0x203e21(0x1dc),void 0x0),W(this,_0x203e21(0x24e),void 0x0),this['color']=_0x10a83c==null?void 0x0:_0x10a83c[_0x203e21(0x1dc)],this[_0x203e21(0x24e)]=_0x10a83c==null?void 0x0:_0x10a83c['text'];}static[_0x1eca44(0x19b)](_0x4410c0,_0x497743){const _0x4b3f6c=_0x1eca44;let {text:_0x221f37,color:_0x1dbc8e}=_0x497743;_0x4410c0[_0x4b3f6c(0x299)](),_0x4410c0[_0x4b3f6c(0x180)]=_0x4b3f6c(0x2c6);let _0x313412=_0x4410c0['measureText'](_0x221f37)[_0x4b3f6c(0x134)];if(fn(_0x4410c0,{'height':0x14,'radius':0x4,'width':Math[_0x4b3f6c(0x14e)](_0x313412+0x8,0xc8),'fill':_0x1dbc8e,'evented':!0x1}),_0x4410c0['fillStyle']=_0x4b3f6c(0x119),_0x313412>0xc0){let _0x391f77='',_0x147ee2=0x0;for(let _0xb931f1 of _0x221f37){let _0x4c62cc=_0x4410c0[_0x4b3f6c(0x260)](_0xb931f1)[_0x4b3f6c(0x134)];if(_0x147ee2+_0x4c62cc<=0xc0-_0x4410c0[_0x4b3f6c(0x260)](_0x4b3f6c(0xfd))[_0x4b3f6c(0x134)])_0x391f77+=_0xb931f1,_0x147ee2+=_0x4c62cc;else{_0x391f77+=_0x4b3f6c(0xfd);break;}}_0x4410c0[_0x4b3f6c(0x133)](_0x391f77,0x4,0xf);}else _0x4410c0[_0x4b3f6c(0x133)](_0x221f37,0x4,0xf);_0x4410c0[_0x4b3f6c(0x1e5)]();}[_0x1eca44(0xfa)](_0x201dae){e['drawWith'](_0x201dae,this);}};const mn=_0x1eca44(0x10a);var hn=class{constructor(_0xbdc72,_0x1a2a22,_0x42cedf,_0x21785f){const _0x424c66=_0x1eca44;this[_0x424c66(0x205)]=_0xbdc72,this[_0x424c66(0x218)]=_0x1a2a22,this['_docSkeleton']=_0x42cedf,this['_document']=_0x21785f,W(this,_0x424c66(0x1a0),[]),W(this,_0x424c66(0xe3),null),W(this,_0x424c66(0x1dd),null),W(this,_0x424c66(0x2cb),null),W(this,'_hideTimer',null),W(this,_0x424c66(0x1c9),null),this[_0x424c66(0x241)]();}set[_0x1eca44(0x1a3)](_0x349bf7){const _0x1b4c63=_0x1eca44;_0x349bf7?(this['_anchorDot']&&this[_0x1b4c63(0x2cb)]['hide'](),this[_0x1b4c63(0x1dd)]&&this[_0x1b4c63(0x1dd)][_0x1b4c63(0x11f)]()):(this[_0x1b4c63(0x2cb)]&&this[_0x1b4c63(0x2cb)]['show'](),this[_0x1b4c63(0x1dd)]&&this[_0x1b4c63(0x1dd)][_0x1b4c63(0x18e)]());}['dispose'](){const _0x56f3ce=_0x1eca44;for(let _0x545430 of this[_0x56f3ce(0x1a0)])_0x545430[_0x56f3ce(0x17d)]();this['_textBubble']&&this[_0x56f3ce(0x1dd)][_0x56f3ce(0x17d)](),this[_0x56f3ce(0x2cb)]&&this[_0x56f3ce(0x2cb)][_0x56f3ce(0x17d)](),this['_anchor']&&this['_anchor'][_0x56f3ce(0x17d)](),this[_0x56f3ce(0x1c9)]&&this['_eventUnsubscribe']();}['_render'](){const _0x419998=_0x1eca44;let {_docSkeleton:_0x4f5e16,_document:_0x2bcf60}=this,{color:_0x49011b,name:_0x2f25b2,ranges:_0x311f1b}=this[_0x419998(0x205)],_0x2ea4cf=_0x2bcf60['getOffsetConfig'](),{docsLeft:_0x18a877,docsTop:_0xa35bc4}=_0x2ea4cf,_0x3f38d8=new _0x2cced5(_0x2ea4cf,_0x4f5e16);for(let {startOffset:_0x287b41,endOffset:_0x213abd,rangeType:_0x11ef4e,segmentId:_0x5ca5ea,segmentPage:_0xdf9054,collapsed:_0x39a937,isActive:_0x3eed2d}of _0x311f1b){let _0x31d5d9=_0x4f5e16['findNodePositionByCharIndex'](_0x287b41,!0x0,_0x5ca5ea,_0xdf9054),_0x2c07b1=_0x4f5e16[_0x419998(0x141)](_0x213abd,!0x0,_0x5ca5ea,_0xdf9054);if(_0x2c07b1==null&&(_0x2c07b1=_0x4f5e16[_0x419998(0x141)](_0x213abd-0x1,!0x1,_0x5ca5ea,_0xdf9054)),_0x3eed2d){let {contentBoxPointGroup:_0x4a2521}=_0x3f38d8[_0x419998(0x2b6)](_0x2c07b1,_0x2c07b1);if(_0x4a2521[_0x419998(0x1e7)]===0x0)continue;this['_drawAnchor'](_0x49011b,_0x4a2521,_0x18a877,_0xa35bc4,_0x2f25b2),this[_0x419998(0x1c9)]=this[_0x419998(0x23b)]();}if(_0x31d5d9&&_0x2c07b1){if(_0x11ef4e===_0x57d0c7[_0x419998(0x155)]){var _0x37ca07;let {pointGroup:_0x3c000f}=(_0x37ca07=new _0xf9e6d3(_0x2ea4cf,_0x4f5e16)[_0x419998(0x2b6)](_0x31d5d9,_0x2c07b1))==null?{}:_0x37ca07;if(_0x3c000f==null||_0x3c000f[_0x419998(0x1e7)]===0x0)continue;this[_0x419998(0xef)](_0x49011b,_0x3c000f,_0x18a877,_0xa35bc4);}else{if(!_0x39a937){let {borderBoxPointGroup:_0x230adb}=_0x3f38d8[_0x419998(0x2b6)](_0x31d5d9,_0x2c07b1);if(_0x230adb[_0x419998(0x1e7)]===0x0)continue;this[_0x419998(0xe7)](_0x49011b,_0x230adb,_0x18a877,_0xa35bc4);}}}}}['_drawAnchor'](_0x16efa2,_0x1ad31e,_0xe4bdda,_0x51ace8,_0x479da2){const _0x752b78=_0x1eca44;let {left:_0x11a0f5,top:_0x31e4d1,height:_0x5c5bf8}=this[_0x752b78(0x244)](_0x1ad31e),_0x4a0195=1.5/this[_0x752b78(0xfe)](),_0x278225=new _0x11e14e(mn+_0x15ca60(0x6),{'left':_0x11a0f5+_0xe4bdda-_0x4a0195,'top':_0x31e4d1+_0x51ace8,'height':_0x5c5bf8,'width':1.5,'fill':_0x16efa2||_0x5b14b3(_0x47a087[_0x752b78(0x130)],0x0),'strokeWidth':_0x4a0195,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this['_anchor']=_0x278225,this[_0x752b78(0x218)][_0x752b78(0x1a5)](_0x278225,_0x27d651);let _0x20d8ca=new _0x11e14e(mn+_0x15ca60(0x6),{'left':_0x11a0f5+_0xe4bdda-_0x4a0195,'top':_0x31e4d1+_0x51ace8-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x16efa2||_0x5b14b3(_0x47a087[_0x752b78(0x130)],0x0),'strokeWidth':0x0,'stroke':_0x16efa2||_0x5b14b3(_0x47a087[_0x752b78(0x130)],0x0),'evented':!0x1});this[_0x752b78(0x2cb)]=_0x20d8ca,this[_0x752b78(0x218)][_0x752b78(0x1a5)](_0x20d8ca,_0x27d651);let _0x13e0df=new pn(mn+_0x15ca60(0x6),{'left':_0x11a0f5+_0xe4bdda-_0x4a0195,'top':_0x31e4d1+_0x51ace8-0x14,'text':_0x479da2,'color':_0x16efa2});this[_0x752b78(0x1dd)]=_0x13e0df,this[_0x752b78(0x218)]['addObject'](_0x13e0df,_0x27d651),this['_hover']=!0x1;}[_0x1eca44(0x23b)](){const _0x103453=_0x1eca44;let _0x37e1ec=this[_0x103453(0xe3)][_0x103453(0x143)]['subscribeEvent'](()=>{const _0x404037=_0x103453;this[_0x404037(0x1a3)]=!0x0;}),_0x1a2213=this[_0x103453(0xe3)][_0x103453(0x157)][_0x103453(0x177)](()=>{const _0x130578=_0x103453;this[_0x130578(0x1c2)]&&clearTimeout(this[_0x130578(0x1c2)]),this[_0x130578(0x1c2)]=setTimeout(()=>{const _0x3f5be3=_0x130578;this[_0x3f5be3(0x1a3)]=!0x1;},0x7d0);});return()=>{const _0x3031dc=_0x103453;_0x37e1ec[_0x3031dc(0x174)](),_0x1a2213[_0x3031dc(0x174)]();};}['_drawTextRange'](_0x473582,_0x4dcd55,_0x1296be,_0x5a7a04){const _0x2ccc0b=_0x1eca44;let _0x2f2326=0.2,_0x167c0f=new _0x39e834(_0x473582)[_0x2ccc0b(0x2bd)](_0x2f2326)[_0x2ccc0b(0xfc)](),_0x478d39=new _0x37a772('collab-text-range-'+_0x15ca60(0x6),{'pointsGroup':_0x4dcd55,'fill':_0x167c0f||_0x5b14b3(_0x47a087[_0x2ccc0b(0x130)],_0x2f2326),'left':_0x1296be,'top':_0x5a7a04,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2ccc0b(0x1a0)]['push'](_0x478d39),this[_0x2ccc0b(0x218)][_0x2ccc0b(0x1a5)](_0x478d39,_0x27d651);}[_0x1eca44(0xef)](_0x2b6af5,_0x129c83,_0x18338e,_0x24593f){const _0x4b322d=_0x1eca44;let _0x4cc5c0=0.2,_0x2eeb6d=new _0x39e834(_0x2b6af5)[_0x4b322d(0x2bd)](_0x4cc5c0)['toRgbString'](),_0x23d325=new _0x37a772(_0x4b322d(0x15a)+_0x15ca60(0x6),{'pointsGroup':_0x129c83,'fill':_0x2eeb6d||_0x5b14b3(_0x47a087[_0x4b322d(0x130)],_0x4cc5c0),'left':_0x18338e,'top':_0x24593f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4b322d(0x1a0)][_0x4b322d(0x168)](_0x23d325),this['_scene'][_0x4b322d(0x1a5)](_0x23d325,_0x27d651);}[_0x1eca44(0x244)](_0x566043){let _0x3009fc=_0x566043[0x0],_0x226ecd=_0x3009fc[0x0],_0x36f181=_0x3009fc[0x2],{x:_0x266469,y:_0x262aaa}=_0x226ecd,{x:_0x2716dc,y:_0x589ba3}=_0x36f181;return{'left':_0x266469,'top':_0x262aaa,'width':_0x2716dc-_0x266469,'height':_0x589ba3-_0x262aaa};}[_0x1eca44(0xfe)](){const _0x34916b=_0x1eca44;let {scaleX:_0xbce0e7,scaleY:_0x1e235c}=this[_0x34916b(0x218)][_0x34916b(0x271)]();return Math[_0x34916b(0x16a)](_0xbce0e7,_0x1e235c);}};let gn=class extends _0x1dedae{constructor(_0x39dbff,_0x516ea3,_0x384c4a,_0x491e2d,_0x504ba5){const _0x45a4d4=_0x1eca44;super(),this[_0x45a4d4(0xec)]=_0x39dbff,this[_0x45a4d4(0x23a)]=_0x516ea3,this[_0x45a4d4(0x195)]=_0x384c4a,this['_commandService']=_0x491e2d,this[_0x45a4d4(0x2bb)]=_0x504ba5,W(this,_0x45a4d4(0x17b),[]),W(this,_0x45a4d4(0x2dc),[]),this[_0x45a4d4(0x172)]();}['_init'](){const _0x23e284=_0x1eca44;let _0x59c57f=this['_context']['unitId'],_0x42b57f=this[_0x23e284(0x23a)];this[_0x23e284(0x164)](_0x60199c([this[_0x23e284(0x195)][_0x23e284(0x199)](_0x59c57f),this['_themeService'][_0x23e284(0x1b2)]])['pipe'](_0x7b7dc(([_0x5ce068,_0x44a4d5])=>({'skeleton':_0x42b57f['getSkeleton'](),'cursors':[..._0x5ce068['values']()][_0x23e284(0x26d)](_0x1437cf=>({..._0x1437cf,'color':this[_0x23e284(0x2bb)][_0x23e284(0x1f1)](_0x1437cf['color'])}))})))[_0x23e284(0x181)](_0x1441a1=>{const _0x380555=_0x23e284;if(this[_0x380555(0x2cc)](),_0x1441a1){let {skeleton:_0x76fd2b,cursors:_0x52741d}=_0x1441a1;this[_0x380555(0x217)](_0x76fd2b,_0x52741d);}})),this[_0x23e284(0x112)](),this['_initCommandExecutedListener']();}[_0x1eca44(0x217)](_0xf6280f,_0x3fc76a){const _0x3ed5b3=_0x1eca44;let {scene:_0x11ba8d,mainComponent:_0x4d17c2}=this['_context'];this['_cursorShapes']=_0x3fc76a['map'](_0xe2f0b0=>new hn(_0xe2f0b0,_0x11ba8d,_0xf6280f,_0x4d17c2)),this[_0x3ed5b3(0x2dc)]=_0x3fc76a;}[_0x1eca44(0x2bc)](){const _0x35aa75=_0x1eca44;this['_removeCollabCursors']();let {scene:_0x296eb9,mainComponent:_0x5b019a}=this[_0x35aa75(0xec)],_0x59770b=this['_docSkeletonManagerService'][_0x35aa75(0x1c3)]();this[_0x35aa75(0x17b)]=this[_0x35aa75(0x2dc)][_0x35aa75(0x25e)](_0x2c2b28=>new hn(_0x2c2b28,_0x296eb9,_0x59770b,_0x5b019a));}[_0x1eca44(0x2cc)](){const _0x58bec7=_0x1eca44;this[_0x58bec7(0x17b)][_0x58bec7(0x1f9)](_0x4ec599=>_0x4ec599[_0x58bec7(0x17d)]()),this[_0x58bec7(0x17b)]=[];}['_initCommandExecutedListener'](){const _0x515787=_0x1eca44;let _0x377caa=[_0x3cddad['id']];this[_0x515787(0x164)](this[_0x515787(0x138)][_0x515787(0x10b)](_0x52f4d3=>{const _0x2aa3b3=_0x515787;_0x377caa[_0x2aa3b3(0x193)](_0x52f4d3['id'])&&_0x52f4d3[_0x2aa3b3(0x115)][_0x2aa3b3(0x2b7)]===this[_0x2aa3b3(0xec)][_0x2aa3b3(0x2b7)]&&this[_0x2aa3b3(0x2bc)]();}));}['_initResize'](){const _0xed3e06=_0x1eca44;this['disposeWithMe'](_0x2a5ecd(this['_context']['engine'][_0xed3e06(0x1ba)])[_0xed3e06(0xf2)](_0x531717(_0x1ac81d=>_0x1ac81d['type']===_0x324566[_0xed3e06(0x15f)]),_0x118f5d(0x10))[_0xed3e06(0x181)](()=>{this['_refreshCollabCursors']();}));}};gn=K([G(0x1,_0x4cb926(_0x52b6a4)),G(0x2,_0x4cb926(Y)),G(0x3,_0x18bfb0),G(0x4,_0x4cb926(_0x41ea9c))],gn);var _n=class extends _0x17fdd5{constructor(_0x24fa97,_0x47fa89){const _0x1224eb=_0x1eca44;if(super(_0x24fa97,_0x47fa89),W(this,'_color',void 0x0),W(this,_0x1224eb(0x146),!0x1),W(this,_0x1224eb(0x2b2),void 0x0),W(this,_0x1224eb(0x287),''),W(this,_0x1224eb(0x1e0),_0x1224eb(0x233)),W(this,_0x1224eb(0x2d7),void 0x0),W(this,_0x1224eb(0x2ab),void 0x0),W(this,_0x1224eb(0x165),void 0x0),W(this,'_highlightSecond',0x4),W(this,_0x1224eb(0x12e),void 0x0),W(this,_0x1224eb(0x253),void 0x0),W(this,_0x1224eb(0x221),!0x0),W(this,'_offsetY',0x0),_0x47fa89){var _0x568e51;if(this['setShapeProps'](_0x47fa89),_0x47fa89[_0x1224eb(0x2aa)]&&((_0x568e51=_0x47fa89[_0x1224eb(0x189)])==null?this['_highlightSecond']:_0x568e51)){var _0x4604bd;this[_0x1224eb(0x12d)]((_0x4604bd=_0x47fa89[_0x1224eb(0x189)])==null?this['_highlightSecond']:_0x4604bd);}}this['onPointerEnter$'][_0x1224eb(0x177)](()=>this[_0x1224eb(0x21c)]({'hovered':!0x0})),this['onPointerLeave$'][_0x1224eb(0x177)](()=>this['setShapeProps']({'hovered':!0x1}));}['setOffsetY'](_0x24cd3a){const _0x35c32b=_0x1eca44;this[_0x35c32b(0x1f6)]=_0x24cd3a;}[_0x1eca44(0x21c)](_0x4120cc){const _0x1b4b98=_0x1eca44;var _0x7e85f3,_0x58337a,_0x1434da,_0x513a8c,_0x3df273,_0x34173f,_0x4f0965;this[_0x1b4b98(0x14b)]=(_0x7e85f3=_0x4120cc[_0x1b4b98(0x1dc)])==null?this[_0x1b4b98(0x14b)]:_0x7e85f3,this[_0x1b4b98(0x146)]=(_0x58337a=_0x4120cc[_0x1b4b98(0x29c)])==null?this[_0x1b4b98(0x146)]:_0x58337a,this['_range']=(_0x1434da=_0x4120cc['range'])==null?this[_0x1b4b98(0x2b2)]:_0x1434da,this[_0x1b4b98(0x287)]=(_0x513a8c=_0x4120cc['name'])==null?this['_name']:_0x513a8c,this['_labelPosition']=(_0x3df273=_0x4120cc['labelPosition'])==null?this[_0x1b4b98(0x1e0)]:_0x3df273,this[_0x1b4b98(0x2d7)]=(_0x34173f=_0x4120cc[_0x1b4b98(0x243)])==null?this[_0x1b4b98(0x2d7)]:_0x34173f,this[_0x1b4b98(0x2ab)]=(_0x4f0965=_0x4120cc['showText'])==null?this['_showText']:_0x4f0965,_0x4120cc[_0x1b4b98(0x189)]!==void 0x0&&(this[_0x1b4b98(0xe0)]=_0x4120cc[_0x1b4b98(0x189)]),_0x4120cc[_0x1b4b98(0x2aa)]!==void 0x0&&(this[_0x1b4b98(0x165)]=_0x4120cc[_0x1b4b98(0x2aa)]),_0x4120cc['offsetY']!==void 0x0&&(this[_0x1b4b98(0x1f6)]=_0x4120cc[_0x1b4b98(0x22d)]),this[_0x1b4b98(0x131)]({'width':_0x4120cc[_0x1b4b98(0x134)],'height':_0x4120cc['height']});}['onMouseMove'](_0x11b8b6){const _0x386b50=_0x1eca44;let {row:_0x2321c8,column:_0xfa034e}=_0x11b8b6;if(_0x2321c8>=this[_0x386b50(0x2b2)]['startRow']&&_0x2321c8<=this[_0x386b50(0x2b2)][_0x386b50(0x226)]&&_0xfa034e>=this[_0x386b50(0x2b2)][_0x386b50(0x16b)]&&_0xfa034e<=this[_0x386b50(0x2b2)][_0x386b50(0x2ba)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x267c35){const _0x46e75f=_0x1eca44;this[_0x46e75f(0xea)](),this[_0x46e75f(0x221)]=!0x0,this[_0x46e75f(0x253)]=window['setInterval'](()=>{const _0x103d9d=_0x46e75f;this[_0x103d9d(0x221)]=!this[_0x103d9d(0x221)],this[_0x103d9d(0x2a6)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x46e75f(0x298)](()=>{const _0x2fb574=_0x46e75f;this[_0x2fb574(0xea)](),this['_isBlinkVisible']=!0x0,this[_0x2fb574(0x2a6)](!0x0);},_0x267c35*0x3e8);}['_stopBlinking'](){const _0x4b3cd9=_0x1eca44;this[_0x4b3cd9(0x253)]&&(window[_0x4b3cd9(0x10e)](this[_0x4b3cd9(0x253)]),this[_0x4b3cd9(0x253)]=void 0x0),this[_0x4b3cd9(0x12e)]&&(window[_0x4b3cd9(0x14a)](this['_blinkTimer']),this[_0x4b3cd9(0x12e)]=void 0x0);}['triggerDblclick'](_0x3214a4){return!0x1;}[_0x1eca44(0x17d)](){const _0x24d627=_0x1eca44;this['_stopBlinking'](),super[_0x24d627(0x17d)]();}[_0x1eca44(0xfa)](_0x257c47){const _0x1f4e09=_0x1eca44;var _0x520824;let _0xac7a07=this[_0x1f4e09(0x14b)],_0x1009ef=this[_0x1f4e09(0x2d7)];if(this['_highlight']&&!this[_0x1f4e09(0x221)]&&(_0xac7a07=this['_getLighterColor'](this[_0x1f4e09(0x14b)]),_0x1009ef=this[_0x1f4e09(0x2d7)]?this[_0x1f4e09(0x11a)](this[_0x1f4e09(0x2d7)]):void 0x0),_0x11e14e[_0x1f4e09(0x19b)](_0x257c47,{'width':this['width'],'height':this[_0x1f4e09(0xe6)],'strokeWidth':(_0x520824=this[_0x1f4e09(0x13e)])==null?1.5:_0x520824,'stroke':_0xac7a07,'evented':!0x1,'fill':_0x1009ef}),this[_0x1f4e09(0x146)]||this[_0x1f4e09(0x2ab)]){var _0x4add4d;_0x257c47[_0x1f4e09(0x299)](),_0x257c47['transform'](0x1,0x0,0x0,0x1,this[_0x1f4e09(0x134)],(this['_labelPosition']==='bottom'?0x0:-0x14)+((_0x4add4d=this[_0x1f4e09(0x1f6)])==null?0x0:_0x4add4d)),pn[_0x1f4e09(0x19b)](_0x257c47,{'text':this[_0x1f4e09(0x287)],'color':_0xac7a07}),_0x257c47['restore']();}}['_getLighterColor'](_0x237c9f){const _0x43c098=_0x1eca44;return _0x237c9f['startsWith']('#')?_0x43c098(0x1b1)+Number[_0x43c098(0x28d)](_0x237c9f[_0x43c098(0x28e)](0x1,0x3),0x10)+',\x20'+Number[_0x43c098(0x28d)](_0x237c9f[_0x43c098(0x28e)](0x3,0x5),0x10)+',\x20'+Number[_0x43c098(0x28d)](_0x237c9f['slice'](0x5,0x7),0x10)+',\x200.2)':_0x237c9f[_0x43c098(0x2d4)](_0x43c098(0x1eb))?_0x237c9f[_0x43c098(0x1db)](/[\d.]+\)$/g,_0x43c098(0xf5)):_0x237c9f[_0x43c098(0x2d4)]('rgb')?_0x237c9f[_0x43c098(0x1db)](_0x43c098(0x156),_0x43c098(0x1eb))[_0x43c098(0x1db)](')',',\x200.2)'):_0x237c9f;}};let vn=class extends _0x1dedae{constructor(_0xd0cb47,_0x473810,_0x3ef4d1,_0xe53524){const _0x2938c4=_0x1eca44;super(),this[_0x2938c4(0xec)]=_0xd0cb47,this['_sheetSkeletonManagerService']=_0x473810,this['_collabCursorController']=_0x3ef4d1,this['_themeService']=_0xe53524,W(this,_0x2938c4(0x2dc),new Set()),W(this,'_lastPointer',null),this[_0x2938c4(0x172)]();}['_init'](){const _0x3d2151=_0x1eca44;this[_0x3d2151(0x262)][_0x3d2151(0x27c)][_0x3d2151(0xf2)](_0x4ccfa0(this['dispose$']),_0x3001c3(_0x51d349=>{const _0x42a648=_0x3d2151;if(_0x51d349){let _0x25b70a=_0x51d349[_0x42a648(0x2a4)];return _0x60199c(this['_collabCursorController'][_0x42a648(0x199)](this[_0x42a648(0xec)][_0x42a648(0x2b7)]),this[_0x42a648(0x2bb)][_0x42a648(0x1b2)])[_0x42a648(0xf2)](_0x7b7dc(([_0x329df1,_0x3172d3])=>{let _0x3700d6=new Map();return _0x329df1['forEach']((_0x5c08b7,_0x201e4a)=>{const _0x1bd129=_0x19c3;if(_0x5c08b7[_0x1bd129(0x125)]===_0x25b70a){let _0x41edce={..._0x5c08b7};_0x41edce[_0x1bd129(0x1dc)]=this[_0x1bd129(0x2bb)][_0x1bd129(0x1f1)](_0x5c08b7['color']),_0x3700d6[_0x1bd129(0x191)](_0x201e4a,_0x41edce);}}),{'skeleton':_0x51d349,'cursors':_0x3700d6};}));}return _0x2d9831({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5c584e,cursors:_0x4847f6})=>{const _0x5d0db5=_0x3d2151;this[_0x5d0db5(0x2cc)](),_0x5c584e&&this[_0x5d0db5(0x217)](_0x5c584e,_0x4847f6);}),this[_0x3d2151(0x262)]['currentSkeleton$'][_0x3d2151(0x181)](_0x2c38d2=>{const _0x1e7710=_0x3d2151;if(_0x2c38d2==null)return;let {skeleton:_0x2f1c10}=_0x2c38d2,{scene:_0x1fcffc}=this[_0x1e7710(0xec)];_0x1fcffc[_0x1e7710(0x230)]['subscribeEvent'](_0x2675b8(_0x1ca5fe=>{const _0x1b7c8b=_0x1e7710;var _0x7e2cff,_0x340ca0;let {offsetX:_0x249635,offsetY:_0x1b091f}=_0x1ca5fe,{x:_0x25bcd4,y:_0xbc0e47}=_0x1fcffc[_0x1b7c8b(0x245)](_0x1fd942[_0x1b7c8b(0x179)]([_0x249635,_0x1b091f])),{scaleX:_0xd18d43,scaleY:_0x427db9}=_0x1fcffc['getAncestorScale'](),_0x7859cc=_0x1fcffc[_0x1b7c8b(0x219)](_0x5886ed['VIEW_MAIN']),_0x20c4fc=_0x1fcffc[_0x1b7c8b(0x21f)](_0x1fd942[_0x1b7c8b(0x179)]([_0x25bcd4,_0xbc0e47]),_0x7859cc),_0xc67e64=_0x2f1c10[_0x1b7c8b(0x2c7)](_0x249635,_0x1b091f,_0xd18d43,_0x427db9,_0x20c4fc);((_0x7e2cff=this[_0x1b7c8b(0x23d)])==null?void 0x0:_0x7e2cff[_0x1b7c8b(0x19f)])===_0xc67e64[_0x1b7c8b(0x19f)]&&((_0x340ca0=this['_lastPointer'])==null?void 0x0:_0x340ca0[_0x1b7c8b(0x239)])===_0xc67e64[_0x1b7c8b(0x239)]||this[_0x1b7c8b(0x2dc)][_0x1b7c8b(0x1f9)](_0x5571df=>{const _0xfab4fd=_0x1b7c8b;_0x5571df[_0xfab4fd(0x274)](_0xc67e64);});},0x64));});}[_0x1eca44(0x217)](_0x3ccb5e,_0x5c7e07){const _0x22b787=_0x1eca44;let _0x5ed650=this[_0x22b787(0x262)][_0x22b787(0x22f)]();if(!_0x5ed650)return;let _0x5914b2=this['_getSheetObject']();if(!_0x5914b2)return;this[_0x22b787(0x2dc)][_0x22b787(0x1f9)](_0x5f53bc=>{const _0x55dd3f=_0x22b787;_0x5f53bc[_0x55dd3f(0x2a6)]();});let {scene:_0x49c121}=_0x5914b2,_0x5ed7d5=yn(Array[_0x22b787(0x1fe)](_0x5c7e07[_0x22b787(0x210)]()))['map'](_0x1c83e0=>{const _0x3752fe=_0x22b787;let {color:_0x8d22be,range:_0x24d7ae,name:_0xcb0ce0,selection:_0x3d4104,sheetID:_0x50b11e}=_0x1c83e0,{startColumn:_0x536359,startRow:_0x1a9e38,endColumn:_0x5e066b,endRow:_0x1eb4f0}=_0x24d7ae,_0x595038=_0x5d9131(_0x1a9e38,_0x536359,_0x49c121,_0x5ed650),_0x2b3c9c=_0x5d9131(_0x1eb4f0,_0x5e066b,_0x49c121,_0x5ed650),{columnHeaderHeightAndMarginTop:_0x50a80f}=_0x5ed650,{startX:_0x413586,startY:_0x19527a}=_0x595038,{endX:_0x143881,endY:_0x4a7940}=_0x2b3c9c,_0x2af380=_0x143881-_0x413586,_0x3f829f=_0x4a7940-_0x19527a;return new _n(_0xcb0ce0,{'labelPosition':_0x19527a-_0x50a80f>=0x14?_0x3752fe(0x233):_0x3752fe(0x206),'sheetID':_0x50b11e,'range':_0x24d7ae,'color':_0x8d22be,'name':_0xcb0ce0,'selection':_0x3d4104,'left':_0x413586,'top':_0x19527a,'width':_0x2af380,'height':_0x3f829f,'evented':!0x1,'zIndex':0x1389});});_0x49c121[_0x22b787(0x1ac)](_0x5ed7d5,0x1),this['_cursors']=new Set(_0x5ed7d5);}[_0x1eca44(0x2cc)](){const _0x45377f=_0x1eca44;var _0x2b59c4;(_0x2b59c4=this[_0x45377f(0x2dc)])==null||_0x2b59c4[_0x45377f(0x1f9)](_0x5de810=>_0x5de810[_0x45377f(0x17d)]());}['_getSheetObject'](){const _0x4f7e04=_0x1eca44;return _0x3b060c(this[_0x4f7e04(0xec)]['unit'],this[_0x4f7e04(0xec)]);}};vn=K([G(0x1,_0x4cb926(_0x3f9d2e)),G(0x2,_0x4cb926(Y)),G(0x3,_0x4cb926(_0x41ea9c))],vn);function yn(_0x535d9b){const _0x500d23=_0x1eca44;let _0x39944a=new Map();return _0x535d9b[_0x500d23(0x1f9)](_0x13d913=>{const _0x28a479=_0x500d23;if(_0x39944a[_0x28a479(0x148)](_0x13d913[_0x28a479(0x2b8)])){let _0x263673=_0x39944a['get'](_0x13d913[_0x28a479(0x2b8)]);_0x263673[_0x28a479(0x136)]+=',\x20'+_0x13d913[_0x28a479(0x136)];}else _0x39944a[_0x28a479(0x191)](_0x13d913['selection'],_0x13d913);}),Array[_0x500d23(0x1fe)](_0x39944a[_0x500d23(0x210)]());}let bn=class extends _0x44d99f{constructor(_0x1b2487,_0x3383c5,_0x4f0c32,_0x308e60,_0x217a6e,_0x112cb5){const _0x456e67=_0x1eca44;super(),this[_0x456e67(0x2b9)]=_0x1b2487,this['_localCacheService']=_0x3383c5,this[_0x456e67(0x182)]=_0x4f0c32,this[_0x456e67(0x15c)]=_0x308e60,this[_0x456e67(0xee)]=_0x217a6e,this[_0x456e67(0x107)]=_0x112cb5,this[_0x456e67(0x108)](),this[_0x456e67(0x1bf)]();}[_0x1eca44(0x108)](){const _0x180966=_0x1eca44;this[_0x180966(0x164)](this[_0x180966(0x2b9)][_0x180966(0x209)](()=>{const _0x1bb597=_0x180966;if(this[_0x1bb597(0x22a)]['saveTaskMap'][_0x1bb597(0x104)])return this[_0x1bb597(0x107)]['t'](_0x1bb597(0x1f7));}));}[_0x1eca44(0x1bf)](){const _0x3945ab=_0x1eca44;this['disposeWithMe'](this[_0x3945ab(0x182)][_0x3945ab(0x247)][_0x3945ab(0x181)](_0x4117bb=>{const _0xc7cdaa=_0x3945ab;_0x4117bb['id']===_0x333b5a[_0xc7cdaa(0x26a)]&&this['_messageService'][_0xc7cdaa(0x11f)]({'type':_0x50fdca[_0xc7cdaa(0x29d)],'content':this[_0xc7cdaa(0x107)]['t'](_0xc7cdaa(0x1e9))}),_0x4117bb['id']===_0x333b5a[_0xc7cdaa(0x1d6)]&&this[_0xc7cdaa(0x15c)]['show']({'type':_0x50fdca[_0xc7cdaa(0x29d)],'content':this[_0xc7cdaa(0x107)]['t'](_0xc7cdaa(0x249))}),_0x4117bb['id']===_0x333b5a[_0xc7cdaa(0x16d)]&&this[_0xc7cdaa(0xee)][_0xc7cdaa(0x11f)]({'title':this[_0xc7cdaa(0x107)]['t'](_0xc7cdaa(0x2a8)),'content':this[_0xc7cdaa(0x107)]['t'](_0xc7cdaa(0x139)),'type':_0xc7cdaa(0x2ac),'duration':0x0}),_0x4117bb['id']===_0x333b5a[_0xc7cdaa(0x1a9)]&&this['_messageService'][_0xc7cdaa(0x11f)]({'type':_0x50fdca[_0xc7cdaa(0x152)],'content':this[_0xc7cdaa(0x107)]['t'](_0xc7cdaa(0x249))+'('+_0x4117bb[_0xc7cdaa(0x2c1)]+')'}),_0x4117bb['id']===_0x333b5a[_0xc7cdaa(0x10c)]&&this[_0xc7cdaa(0x15c)][_0xc7cdaa(0x11f)]({'type':_0x50fdca[_0xc7cdaa(0x29d)],'content':this['_localeService']['t'](_0x4117bb[_0xc7cdaa(0x2c1)]||'')}),_0x4117bb['id']===_0x333b5a[_0xc7cdaa(0x12b)]&&this['_messageService'][_0xc7cdaa(0x11f)]({'type':_0x50fdca[_0xc7cdaa(0x29d)],'content':this[_0xc7cdaa(0x107)]['t']('session.will-retry')}),_0x4117bb['id']===_0x333b5a['SOCKET_FAILED']&&this[_0xc7cdaa(0x15c)][_0xc7cdaa(0x11f)]({'type':_0x50fdca[_0xc7cdaa(0x152)],'content':this[_0xc7cdaa(0x107)]['t'](_0xc7cdaa(0x201))}),_0x4117bb['id']===_0x333b5a[_0xc7cdaa(0x11e)]&&this[_0xc7cdaa(0x15c)]['show']({'type':_0x50fdca[_0xc7cdaa(0x152)],'content':this['_localeService']['t'](_0xc7cdaa(0x2a9))});}));}};bn=K([G(0x0,_0x34b99c),G(0x1,_0x1bf19f),G(0x2,_0x4cb926(_0x304db6)),G(0x3,_0x4b0519),G(0x4,_0x3041f1),G(0x5,_0x4cb926(_0x467932))],bn);const xn=_0x1eca44(0x200);Symbol(xn);const Sn={};let X=class{constructor(_0x25a09e,_0x2eb24c){const _0x115918=_0x1eca44;this[_0x115918(0x11d)]=_0x25a09e,this[_0x115918(0x1ad)]=_0x2eb24c;}[_0x1eca44(0x100)](_0x3cc9dc){const _0x18fe88=_0x1eca44;this[_0x18fe88(0x2ca)](_0x3cc9dc),this['_transformPreviousActiveRange'](_0x3cc9dc);}[_0x1eca44(0x1c6)](_0x16ae5a){const _0x5d365a=_0x1eca44;let {unitID:_0xe0cf3f}=_0x16ae5a,{redoCache:_0x3f0646}=this[_0x5d365a(0x1ad)][_0x5d365a(0x281)](_0xe0cf3f)['with'](_0x1e57d7)[_0x5d365a(0x2cd)]();if(_0x3f0646[_0x5d365a(0x1e7)]===0x0)return _0x16ae5a;let _0xea6f65=_0x28db1c[_0x5d365a(0x229)](_0x16ae5a[_0x5d365a(0x20c)][0x0]);for(let _0x33134f=0x0;_0x33134f<_0x3f0646[_0x5d365a(0x1e7)];_0x33134f++){let _0x145964={'id':'doc.mutation.rich-text-editing','params':{..._0x3f0646[_0x33134f]}},_0x3a13a8=this[_0x5d365a(0x11d)][_0x5d365a(0x192)](_0xea6f65,_0x145964,!0x1);if(_0x122d06(_0x3a13a8))throw _0x3a13a8[_0x5d365a(0x2ac)];_0xea6f65=_0x3a13a8[_0x5d365a(0x1e2)];}return{..._0x28db1c[_0x5d365a(0x229)](_0x16ae5a),'mutations':[_0xea6f65]};}[_0x1eca44(0x2ca)](_0x551f90){const _0x1ab333=_0x1eca44;let {unitID:_0x42dadb}=_0x551f90,_0x3414bb=this[_0x1ab333(0x1ad)]['getRenderById'](_0x42dadb)['with'](_0x1e57d7),{undoCache:_0x5e3045,redoCache:_0x384384}=_0x3414bb[_0x1ab333(0x2cd)]();if(_0x5e3045[_0x1ab333(0x1e7)]===0x0||_0x384384[_0x1ab333(0x1e7)]===0x0)return;let _0x13304e=[],_0x59f92d=[],_0x49812f=_0x28db1c[_0x1ab333(0x229)](_0x551f90[_0x1ab333(0x20c)][0x0]),_0x354439=_0x28db1c['deepClone'](_0x551f90[_0x1ab333(0x20c)][0x0]);for(let _0x3ccb26=_0x5e3045[_0x1ab333(0x1e7)]-0x1;_0x3ccb26>=0x0;_0x3ccb26--){let _0x2ff4f2={'id':_0x1ab333(0x203),'params':{..._0x5e3045[_0x3ccb26]}},_0x470889={'id':_0x1ab333(0x203),'params':{..._0x384384[_0x3ccb26]}},_0x5cdfe7=this['_transformService']['transformMutation'](_0x49812f,_0x2ff4f2,!0x1),_0x44d1b1=this[_0x1ab333(0x11d)][_0x1ab333(0x192)](_0x354439,_0x470889,!0x1);if(_0x122d06(_0x5cdfe7))throw _0x5cdfe7[_0x1ab333(0x2ac)];if(_0x122d06(_0x44d1b1))throw _0x44d1b1['error'];_0x13304e['unshift'](_0x5cdfe7['m2Prime']['params']),_0x59f92d['unshift'](_0x44d1b1[_0x1ab333(0x151)]['params']),_0x49812f=_0x5cdfe7['m1Prime'],_0x354439=_0x44d1b1[_0x1ab333(0x1e2)];}_0x3414bb[_0x1ab333(0x234)]({'undoCache':_0x13304e,'redoCache':_0x59f92d});}[_0x1eca44(0x269)](_0x2ea146){const _0xf19448=_0x1eca44;let {unitID:_0x4825f5}=_0x2ea146,_0x153478=this['_renderManagerService']['getRenderById'](_0x4825f5)[_0xf19448(0x26e)](_0x1e57d7),_0x2b2b6a=_0x153478[_0xf19448(0x20f)]();if(_0x2b2b6a==null)return;let _0x11d65a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ea146[_0xf19448(0x2bf)],'actions':null,'textRanges':[_0x2b2b6a]}}],_0x3d0569=this[_0xf19448(0x11d)][_0xf19448(0x223)](_0x2ea146,_0x11d65a);if(!_0x2cae59(_0x3d0569))throw _0x3d0569[_0xf19448(0x2ac)];let _0x49638d=_0x3d0569[_0xf19448(0x151)][0x0][_0xf19448(0x115)][_0xf19448(0x198)];Array[_0xf19448(0x2dd)](_0x49638d)&&_0x49638d[_0xf19448(0x1e7)]&&_0x153478[_0xf19448(0xed)](_0x49638d[0x0]);}};function _0x19c3(_0x394853,_0x5a1669){_0x394853=_0x394853-0xdf;const _0x328f4d=_0x328f();let _0x19c363=_0x328f4d[_0x394853];return _0x19c363;}X=K([G(0x0,_0x1e2e82),G(0x1,_0x5b5070)],X);let Cn=class{constructor(_0x4f79b2,_0x3115d4,_0x4c320a){this['_injector']=_0x4f79b2,this['_transformService']=_0x3115d4,this['_docStateChangeManagerService']=_0x4c320a;}[_0x1eca44(0x2d9)](_0x1fb5c7){const _0x2c8e41=_0x1eca44;this[_0x2c8e41(0x18b)](_0x1fb5c7);}['transformRemoteChangeset'](_0x8a92ee){const _0x53f58f=_0x1eca44;let {unitID:_0x4db12f}=_0x8a92ee,{collaboration:_0x48dd88}=this[_0x53f58f(0x268)][_0x53f58f(0x16e)](_0x4db12f);if(_0x48dd88[_0x53f58f(0x1e7)]===0x0)return _0x8a92ee;let _0x331acc=_0x28db1c[_0x53f58f(0x229)](_0x8a92ee[_0x53f58f(0x20c)][0x0]);for(let _0x31b98f=0x0;_0x31b98f<_0x48dd88[_0x53f58f(0x1e7)];_0x31b98f++){let _0x29168f={'id':_0x53f58f(0x203),'params':{'unitId':_0x48dd88[_0x31b98f][_0x53f58f(0x2b7)],..._0x48dd88[_0x31b98f][_0x53f58f(0x279)]}},_0x34ba0b=this[_0x53f58f(0x11d)][_0x53f58f(0x192)](_0x331acc,_0x29168f,!0x1);if(_0x122d06(_0x34ba0b))throw _0x34ba0b['error'];_0x331acc=_0x34ba0b[_0x53f58f(0x1e2)];}return{..._0x28db1c['deepClone'](_0x8a92ee),'mutations':[_0x331acc]};}['_transformHistoryAndStateStack'](_0x54abbc){const _0x58a307=_0x1eca44;let {unitID:_0x1981ac}=_0x54abbc,{history:_0xed2978,collaboration:_0x1ef053}=this['_docStateChangeManagerService'][_0x58a307(0x16e)](_0x1981ac);if(_0xed2978['length']===0x0&&_0x1ef053[_0x58a307(0x1e7)]===0x0)return;let _0x99e762=[],_0x8a6946=[],_0x2c754c=_0x28db1c[_0x58a307(0x229)](_0x54abbc['mutations'][0x0]),_0x4a1fd5=_0x28db1c[_0x58a307(0x229)](_0x54abbc[_0x58a307(0x20c)][0x0]);for(let _0x5da496=_0xed2978[_0x58a307(0x1e7)]-0x1;_0x5da496>=0x0;_0x5da496--){let _0x1748ba={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xed2978[_0x5da496]['unitId'],..._0xed2978[_0x5da496][_0x58a307(0x1e1)]}},_0x443434={'id':_0x58a307(0x203),'params':{'unitId':_0xed2978[_0x5da496][_0x58a307(0x2b7)],..._0xed2978[_0x5da496][_0x58a307(0x279)]}},_0x2ba37e=this[_0x58a307(0x11d)][_0x58a307(0x192)](_0x2c754c,_0x1748ba,!0x1),_0x2fa386=this['_transformService'][_0x58a307(0x192)](_0x4a1fd5,_0x443434,!0x1);if(_0x122d06(_0x2ba37e))throw _0x2ba37e['error'];if(_0x122d06(_0x2fa386))throw _0x2fa386['error'];_0x99e762[_0x58a307(0x1e3)]({..._0xed2978[_0x5da496],'undoState':_0x2ba37e['m2Prime'][_0x58a307(0x115)],'redoState':_0x2fa386[_0x58a307(0x151)]['params']}),_0x2c754c=_0x2ba37e[_0x58a307(0x1e2)],_0x4a1fd5=_0x2fa386[_0x58a307(0x1e2)];}_0x2c754c=_0x28db1c[_0x58a307(0x229)](_0x54abbc[_0x58a307(0x20c)][0x0]),_0x4a1fd5=_0x28db1c[_0x58a307(0x229)](_0x54abbc[_0x58a307(0x20c)][0x0]);for(let _0x51d2d1=_0x1ef053[_0x58a307(0x1e7)]-0x1;_0x51d2d1>=0x0;_0x51d2d1--){let _0x49642a={'id':_0x58a307(0x203),'params':{'unitId':_0x1ef053[_0x51d2d1][_0x58a307(0x2b7)],..._0x1ef053[_0x51d2d1][_0x58a307(0x1e1)]}},_0x4a9530={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ef053[_0x51d2d1][_0x58a307(0x2b7)],..._0x1ef053[_0x51d2d1][_0x58a307(0x279)]}},_0x149516=this[_0x58a307(0x11d)][_0x58a307(0x192)](_0x2c754c,_0x49642a,!0x1),_0x5e918d=this[_0x58a307(0x11d)][_0x58a307(0x192)](_0x4a1fd5,_0x4a9530,!0x1);if(_0x122d06(_0x149516))throw _0x149516[_0x58a307(0x2ac)];if(_0x122d06(_0x5e918d))throw _0x5e918d[_0x58a307(0x2ac)];_0x8a6946[_0x58a307(0x1e3)]({..._0x1ef053[_0x51d2d1],'undoState':_0x149516[_0x58a307(0x151)][_0x58a307(0x115)],'redoState':_0x5e918d[_0x58a307(0x151)]['params']}),_0x2c754c=_0x149516[_0x58a307(0x1e2)],_0x4a1fd5=_0x5e918d['m1Prime'];}this[_0x58a307(0x268)][_0x58a307(0x10d)](_0x1981ac,{'history':_0x99e762,'collaboration':_0x8a6946});}};Cn=K([G(0x0,_0x4cb926(_0x581843)),G(0x1,_0x1e2e82),G(0x2,_0x4cb926(_0x3dbe1b))],Cn);let wn=class{constructor(_0xab816b,_0x459efe){const _0x405354=_0x1eca44;this['_injector']=_0xab816b,this[_0x405354(0x11d)]=_0x459efe;}['transformSelections'](_0x22dafd){const _0x1041cb=_0x1eca44;var _0x40c42b;let _0x4dd68d=this['_injector'][_0x1041cb(0xe1)](_0x464bb0),_0xef5688=(_0x40c42b=_0x4dd68d['getDocRanges']())==null?[]:_0x40c42b;if(_0xef5688[_0x1041cb(0x1e7)]===0x0)return;let _0x433fd1=_0x22dafd[_0x1041cb(0x2bf)],_0x6a551c=[{'id':_0x1041cb(0x203),'params':{'unitId':_0x433fd1,'actions':null,'textRanges':_0xef5688}}],_0x215a6f=this[_0x1041cb(0x11d)][_0x1041cb(0x223)](_0x22dafd,_0x6a551c);if(!_0x2cae59(_0x215a6f))throw _0x215a6f[_0x1041cb(0x2ac)];let _0x423693=_0x215a6f[_0x1041cb(0x151)][0x0][_0x1041cb(0x115)][_0x1041cb(0x198)];Array['isArray'](_0x423693)&&_0x423693['length']&&_0x4dd68d[_0x1041cb(0x2be)](_0x423693,{'unitId':_0x433fd1,'subUnitId':_0x433fd1},!0x1);}};wn=K([G(0x0,_0x4cb926(_0x581843)),G(0x1,_0x1e2e82)],wn);let Tn=class extends _0x44d99f{constructor(_0xaa35cd,_0xc0a003,_0x57cf71,_0xdb14b1,_0x388d60,_0x80a280,_0x30b0a2,_0x4f6d91){const _0x3e67c3=_0x1eca44;super(),this[_0x3e67c3(0x268)]=_0xaa35cd,this[_0x3e67c3(0x277)]=_0xc0a003,this[_0x3e67c3(0x290)]=_0x57cf71,this[_0x3e67c3(0x21d)]=_0xdb14b1,this['_docTransformSelectionsService']=_0x388d60,this[_0x3e67c3(0x27d)]=_0x80a280,this[_0x3e67c3(0x15c)]=_0x30b0a2,this[_0x3e67c3(0x107)]=_0x4f6d91,W(this,_0x3e67c3(0x1de),new _0x307ead(_0x2acd42['NOT_COLLAB'])),this[_0x3e67c3(0x1ce)]();}[_0x1eca44(0x1ce)](){const _0x36b6b3=_0x1eca44;this[_0x36b6b3(0x164)](this[_0x36b6b3(0x277)][_0x36b6b3(0x21b)][_0x36b6b3(0x181)](_0x240fa6=>{const _0x2b50a5=_0x36b6b3;let _0xdf712a=this[_0x2b50a5(0x268)]['docStateChange$']['subscribe'](_0x1d696e=>{const _0x3c9e69=_0x2b50a5;if(_0x1d696e==null)return;let {unitId:_0x2ab0a1,redoState:_0x15b032,commandId:_0x42d3a6}=_0x1d696e;if(_0x2ab0a1!==_0x240fa6[_0x3c9e69(0x2bf)])return;let _0xbd3ff3={'id':_0x42d3a6,'type':_0x5f57eb['MUTATION'],'params':{'unitId':_0x2ab0a1,'actions':_0x15b032[_0x3c9e69(0x2a3)],'textRanges':null}};_0x240fa6[_0x3c9e69(0x1c0)](_0xbd3ff3);});_0x240fa6[_0x2b50a5(0x164)](_0xdf712a),_0x240fa6 instanceof _0x36cb37&&_0x240fa6[_0x2b50a5(0x28f)]({'onTransformIME':_0x1f1789=>this[_0x2b50a5(0x290)][_0x2b50a5(0x100)](_0x1f1789),'onTransformState':_0x223e55=>this['_docTransformStateCacheService'][_0x2b50a5(0x2d9)](_0x223e55),'onTransformSelections':_0x21395c=>this[_0x2b50a5(0x28c)]['transformSelections'](_0x21395c),'onSyncEditingCollabCursor':_0x1b007d=>this[_0x2b50a5(0x27d)][_0x2b50a5(0xf1)](_0x1b007d),'onTransformRemoteChangesetByIMECache':_0x3961b5=>this[_0x2b50a5(0x290)][_0x2b50a5(0x1c6)](_0x3961b5),'onTransformRemoteChangesetByStateCache':_0x3d5560=>this[_0x2b50a5(0x21d)][_0x2b50a5(0x1c6)](_0x3d5560)});}));}};Tn=K([G(0x0,_0x4cb926(_0x3dbe1b)),G(0x1,_0x4cb926(_0x57dd55)),G(0x2,_0x4cb926(X)),G(0x3,_0x4cb926(Cn)),G(0x4,_0x4cb926(wn)),G(0x5,_0x4cb926(cn)),G(0x6,_0x4b0519),G(0x7,_0x4cb926(_0x467932))],Tn);let En=class extends _0x44d99f{constructor(_0x34aa3b,_0x1d25df,_0x5c25fb,_0x4ef1a8){const _0x1bd04f=_0x1eca44;super(),this[_0x1bd04f(0x194)]=_0x34aa3b,this[_0x1bd04f(0x25d)]=_0x1d25df,this[_0x1bd04f(0x2c0)]=_0x5c25fb,this['_collaborationSessionService']=_0x4ef1a8,W(this,_0x1bd04f(0x2c5),void 0x0),this[_0x1bd04f(0x172)]();}['_init'](){const _0x3b42a7=_0x1eca44;this[_0x3b42a7(0x2b4)](),this[_0x3b42a7(0x16c)](),this[_0x3b42a7(0x29e)](),this[_0x3b42a7(0x19e)]();}['_initUserListener'](){const _0x2f9a02=_0x1eca44;this[_0x2f9a02(0x164)](this[_0x2f9a02(0x250)][_0x2f9a02(0x29a)][_0x2f9a02(0x181)](_0x5ee075=>{const _0x14e9c1=_0x2f9a02;this[_0x14e9c1(0x2c5)]=_0x5ee075==null?void 0x0:_0x5ee075['memberID'];}));}[_0x1eca44(0x2b4)](){const _0x3c3bd0=_0x1eca44;let _0xbf3c2b=_0x3b77fc=>{const _0x4a966a=_0x19c3;var _0x3d1903;this[_0x4a966a(0x297)]('error',_0x4a966a(0x2c8)+_0x3b77fc[_0x4a966a(0x25a)]+_0x4a966a(0x255)+_0x3b77fc[_0x4a966a(0x2d6)]+':'+_0x3b77fc[_0x4a966a(0xdf)]+':'+_0x3b77fc[_0x4a966a(0x224)]+'\x0a'+(((_0x3d1903=_0x3b77fc[_0x4a966a(0x2ac)])==null?void 0x0:_0x3d1903[_0x4a966a(0x235)])||''));};window['addEventListener'](_0x3c3bd0(0x2ac),_0xbf3c2b),this[_0x3c3bd0(0x164)](()=>{const _0x49d7f9=_0x3c3bd0;window[_0x49d7f9(0x132)]('error',_0xbf3c2b);});}[_0x1eca44(0x16c)](){const _0x16ae04=_0x1eca44;let _0x49c49=_0x4da19e=>{const _0x5257e1=_0x19c3;this[_0x5257e1(0x297)]('error',_0x5257e1(0x190)+_0x4da19e['reason']);};window[_0x16ae04(0x1d8)](_0x16ae04(0x207),_0x49c49),this['disposeWithMe'](()=>{const _0x46261c=_0x16ae04;window[_0x46261c(0x132)](_0x46261c(0x207),_0x49c49);});}[_0x1eca44(0x29e)](){const _0x192c45=_0x1eca44;let _0x3e27a7=this[_0x192c45(0x2c0)][_0x192c45(0x2ac)][_0x192c45(0x232)](this[_0x192c45(0x2c0)]);this['_logService'][_0x192c45(0x2ac)]=(..._0x57898a)=>{const _0x9768b9=_0x192c45;let _0x2aaedd=_0x57898a[_0x9768b9(0x25e)](_0xb5db4a=>_0xb5db4a instanceof Error?_0xb5db4a[_0x9768b9(0x25a)]+'\x0a'+_0xb5db4a[_0x9768b9(0x235)]:String(_0xb5db4a))[_0x9768b9(0x183)]('\x20');this[_0x9768b9(0x297)]('error',_0x9768b9(0x1ea)+_0x2aaedd),_0x3e27a7(..._0x57898a);},this[_0x192c45(0x164)](()=>{const _0x37a33e=_0x192c45;this[_0x37a33e(0x2c0)][_0x37a33e(0x2ac)]=_0x3e27a7;});}[_0x1eca44(0x297)](_0x3da3a5,_0x2550ba){const _0x2282a4=_0x1eca44;try{let _0x55a836={'userId':this['_memberID'],'logLabel':_0x3da3a5,'content':_0x2550ba};this[_0x2282a4(0x25d)][_0x2282a4(0x161)](_0x2282a4(0x1d1),{'body':_0x55a836})[_0x2282a4(0x1b9)](()=>{});}catch{}}};En=K([G(0x0,_0x4cb926(_0x581843)),G(0x1,_0x4cb926(_0x249751)),G(0x2,_0x59b49c),G(0x3,_0x4cb926(_0x51eb0a))],En);function Dn(_0x55c193){const _0xdf9e3=_0x1eca44;var _0x43a638,_0x1d86a7;let _0x5ac60d=(_0x43a638=_0x55c193[_0xdf9e3(0x276)])==null?void 0x0:_0x43a638['stage'],_0x2583ce=((_0x1d86a7=_0x55c193['stageInfo'])==null?void 0x0:_0x1d86a7[_0xdf9e3(0x292)])||0x0;return _0x5ac60d===_0x390aba[_0xdf9e3(0x21a)]&&_0x2583ce>0x0;}function On(_0x41dd52){const _0x25e49f=_0x1eca44;return _0x41dd52[_0x25e49f(0x169)]===_0x3061ab['SUCCESS'];}function _0x328f(){const _0x4aea89=['status$','params','imageSourceType','_releaseCalculationLimit','collab-client.tooltip.reconnect','#FFF','_getLighterColor','ONLINE','_docClipboardService','_transformService','SUBMIT_CHANGESET_TIMEOUT','show','debug','disableLocalCache','add','addClipboardHook','executeCommand','sheetID','ACTIVE_UNIT_EVENT_CHANNEL','getSheetId','red.300','777255tUWIFk','_assignedColors','SOCKET_FAILED_RETRY','Failed','_startBlinking','_blinkTimer','updateOfflineData','black','transformByState','removeEventListener','fillText','width','_selfUnitIDs','name','HEARTBEAT','_commandService','permission.content','_registerRenderDependencies','collabCursorState$','1940XqRbIW','getCollabEntity$','strokeWidth','_initDependencies','_send','findNodePositionByCharIndex','registerRenderModule','onPointerEnter$','_config','formula.calculation.started','_hovered','override','has','getSheetBySheetId','clearTimeout','_color','RemoveRowCommandId','_createSocketURL','min','_updateSubUnitFromURLParams','_updateLocalCursor','m2Prime','Error','_pollingInterval','_session','RECT','rgb','onPointerLeave$','shift','eventID','collab-rect-range-','getUnit','_messageService','maxFormulaLimit','JOIN','resize','OTHER_CLIENTS_EDITING','post','saveOfflineData','cursorInfo$','disposeWithMe','_highlight','blue.400','green.600','push','functionsExecutedState','max','startColumn','_initUnhandledRejectionListener','PERMISSION_DENIED','getStateCache','_setFormulaLimitStatus','asObservable','getUnitStatus$','_init','_imageIoService','unsubscribe','delete','parse','subscribeEvent','_instanceService','FromArray','startFormulaLimitUrl','_cursorShapes','424620KDffAs','dispose','yellow.400','_memberService','font','subscribe','_collaborationUIEventService','join','roomMembers$','_collabCursorState$','_handleLeaveEvent','getUnitId','_getMergeRange','highlightSecond','_entityInit$','_transformHistoryAndStateStack','562583WaiTQf','_configService','hide','_getSessionTicket','[Unhandled\x20Rejection]:\x20','set','transformMutation','includes','_injector','_collabCursorController','_online','code','textRanges','getCollabCursors$','UPDATE_CURSOR','drawWith','1315MdTGRN','setItem','_initUserListener','column','_shapes','packageName','symbol','_hover','getTypeOfUnitDisposed$','addObject','273654xLMEWY','dirtyRanges','[CollaborationDataLoaderController]','CONFLICT','object','NO_OTHER_CLIENTS_EDITING','addObjects','_renderManagerService','setInterval','_removeClearOtherTimer','_handleJoinEvent','rgba(','currentTheme$','_unitStatus','_applyCommand','currentUsage','_maxFormulaLimit','cursorInfo','_clearPolling','catch','onTransformChange$','split','fillRule','div','unload','_initEvent','onLocalMutation','exhaustSavingTask','_hideTimer','getSkeleton','_startSheetCollabCursor','Inactive','transformRemoteChangeset','pluginName','_unitOnClients','_eventUnsubscribe','pushState','getCurrentUnitForType','moveTo','_dataLoaderService','_initEntityListener','OFFLINE','registerComponent','/universer-api/frontend/logs','_toggleOffline','reconnect','_handleEvent','purple.300','CLOSE_ROOM','_onCursorDelete','addEventListener','arc','onRendered','replace','color','_textBubble','_status$','subUnitId','_labelPosition','undoState','m1Prime','unshift','139717oQasvr','restore','find','length','_scheduleClearOtherTimer','collaboration.single-unit.warning','[LogService\x20Error]:\x20','rgba','constructor','_scheduleSaving','_onRefRangeChange','?taskId=','toString','getColorFromTheme','_disabled','_checkCalculationAvailable','_doCreateSocket','replaceState','_offsetY','collaboration.offline-data-not-saved','InsertRangeMoveRightCommandId','forEach','searchParams','saveImage','_heartbeatTimer','_saveCache','from','_taskIds','collaboration-client-ui.config','session.connection-failed','lineTo','doc.mutation.rich-text-editing','USERS_LEAVE','_cursor','bottom','unhandledrejection','_cursorInfo$','registerBeforeClose','isEditing','runOnServer','mutations','0.20.1','assignAColorForMemberID','getActiveRange','values','_localStorageService','sessionStatus$','enableFrontendLog','stringify','sessionTicket','_syncEditingCollabCursorService','_updateCollabCursors','_scene','getViewport','START_CALCULATION','entityInit$','setShapeProps','_docTransformStateCacheService','dispose$','getVpScrollXYInfoByPosToVp','InsertRangeMoveDownCommandId','_isBlinkVisible','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','transformMutationsWithChangeset','colno','then','endRow','univer-mr-2\x20univer-flex\x20univer-text-xl','_urlService','deepClone','_localCacheService','_initStatusComponent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','offsetY','body','getCurrentSkeleton','onPointerMove$','string','bind','top','setUndoRedoMutationParamsCache','stack','UNIVER_DOC','evenodd','[RemoteUniscriptService]:\x20no\x20focused\x20unit','row','_docSkeletonManagerService','_handleHover','SYNCED','_lastPointer','_handleHeartbeatEvent','createSocket','24uuKcjK','_render','iterator','backgroundColor','_getAnchorBounding','getRelativeToViewportCoord','next','event$','/universer-api/license/formula/limit/status','collaboration.closeRoom','_setupSubUnitSync','type','getValue','_collabSessionService','text','subunit','_collaborationSessionService','executionId','search','_blinkIntervalTimer','history','\x20at\x20','_clearOtherTimers','roomMembers','collabStatus.fetchMiss','selections','message','NOT_COLLAB','registerRefRange','_httpService','map','TEXT','measureText','_univerInstanceService','_sheetSkeletonManagerService','getFocusedUnit','_ensureSubject','function','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','AWAITING_WITH_PENDING','_docStateChangeManagerService','_transformPreviousActiveRange','OTHER_CLIENT_EDITING','_lastResponseTimestamp','_toggleOnline','flatMap','with','getCurrentRevOfUnit','_revisionService','getAncestorScale','href','getMemberID','onMouseMove','default','stageInfo','_collaborationController','disposeUnit','redoState','DeleteRangeMoveLeftCommandId','_colorIndex','currentSkeleton$','_docSyncEditingCollabCursorService','collabStatus.synced','ranges','send','getRenderById','loadUnit','invokeId','_getSaveTimeout','DeleteRangeMoveUpCommandId','_currentUsage','_name','_cachedData','getConfig','startRow','location','_docTransformSelectionsService','parseInt','slice','addHandlerCallback','_docTransformIMECacheService','_uiPartsService','totalFormulasToCalculate','whenReady','_startCalculationLimit','getUniverSheetInstance','getDocRanges','_uploadLog','setTimeout','save','socket$','setConfig','hovered','Warning','_monkeyPatchLogService','range','limitInfo','_colorAssignService','_saveTaskMap','actions','sheetId','defineProperty','makeDirty','_checkAndWaitForCalculationPermission','permission.title','session.collaboration-timeout','highlight','_showText','error','_scheduleHeartbeat','fill','setParam','storage','_registerDependencies','_range','origin','_initWindowErrorListener','/universer-api/license/formula/limit/done','getRangePointData','unitId','selection','_beforeCloseService','endColumn','_themeService','_refreshCollabCursors','setAlpha','replaceDocRanges','unitID','_logService','data','now','formula.calculation.unable','init','_memberID','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getCellPositionByOffset','[Window\x20Error]:\x20','closePath','_transformUndoRedoStack','_anchorDot','_removeCollabCursors','getUndoRedoMutationParamsCache','call','_onCursorUpdate','urlChange$','Loading','AWAITING','_showGuardMessage','startsWith','PENDING','filename','_backgroundColor','newValue','transformStateCache','removeParam','_updateURLWithCurrentState','_cursors','isArray','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_refRangeService','_roomMembers$','MoveRangeCommandId','lineno','_highlightSecond','get','_id','_anchor','getMember','complete','height','_drawTextRange','UNIVER_SHEET','getParam','_stopBlinking','InsertColCommandId','_context','setActiveRange','_notificationService','_drawRectRange','formula.calculation.waiting','syncEditingCollabCursor','pipe','_getFormulaLimitStatus','fillStyle','0.2)','decorate','unit','contains','LEAVE','_draw','_initCommandInterceptor','toRgbString','...','_getScale','135558LQNXhM','transformIMECache','runId','some','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','size','result','source','_localeService','_setupBeforeClosingHandler','getTypeOfUnitAdded$','collab-text-anchor-','onCommandExecuted','JOIN_ROOM_FAILED','setStateCache','clearInterval','_startDocCollabCursor','Active','_entities','_initResize','getActiveSheet'];_0x328f=function(){return _0x4aea89;};return _0x328f();}let Z=class extends _0x44d99f{constructor(_0xd02ebd,_0x28999b,_0x297932,_0x4210b3,_0x5af578,_0x5a025b,_0x368f84){const _0x5e9567=_0x1eca44;super(),this[_0x5e9567(0x15c)]=_0xd02ebd,this[_0x5e9567(0x138)]=_0x28999b,this[_0x5e9567(0x18d)]=_0x297932,this[_0x5e9567(0x25d)]=_0x4210b3,this['_univerInstanceService']=_0x5af578,this[_0x5e9567(0x2c0)]=_0x5a025b,this['_localeService']=_0x368f84,W(this,_0x5e9567(0x153),null),W(this,_0x5e9567(0x1b6),0x0),W(this,'_currentUsage',0x0),W(this,'_taskIds',[]),W(this,_0x5e9567(0x26b),0x0),this[_0x5e9567(0xfb)]();}[_0x1eca44(0xfb)](){const _0x2834ec=_0x1eca44;this['disposeWithMe'](this['_commandService']['beforeCommandExecuted']((_0x8f17e9,_0x8a628d)=>{const _0xb8879e=_0x19c3;var _0x582ba2;if(_0x8f17e9['id']!==_0x568d42['id'])return;let _0x34f182=_0x8f17e9[_0xb8879e(0x115)];if(this['_hasFormulaInDirtyRanges']((_0x582ba2=_0x34f182[_0xb8879e(0x1a7)])==null?[]:_0x582ba2)&&!this[_0xb8879e(0x1f3)]())throw this[_0xb8879e(0x2a7)](_0x8f17e9,_0x8a628d),this[_0xb8879e(0x2d3)](),new _0x275cf3();})),this[_0x2834ec(0x164)](this[_0x2834ec(0x138)]['onCommandExecuted']((_0x121f61,_0x4e8f81)=>{const _0x13be35=_0x2834ec;if(_0x121f61['id']!==_0x43d082['id'])return;let _0xf31015=_0x121f61[_0x13be35(0x115)];if(Dn(_0xf31015)){let _0x21ccbe=_0x15ca60();this[_0x13be35(0x1ff)][_0x13be35(0x168)](_0x21ccbe),this[_0x13be35(0x294)](_0x21ccbe);}else{if(On(_0xf31015)&&this['_taskIds'][_0x13be35(0x1e7)]>0x0){let _0x2989ee=this[_0x13be35(0x1ff)][_0x13be35(0x158)]();this['_releaseCalculationLimit'](_0x2989ee);}}}));}['dispose'](){const _0x5df627=_0x1eca44;super[_0x5df627(0x17d)](),this[_0x5df627(0x1b8)](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x5df627(0x1b6)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x1eca44(0x2a7)](_0x5574ef,_0xd0312e){const _0x4a7776=_0x1eca44;for(let _0x35d763=0x0;_0x35d763<0x1e;_0x35d763++)try{if(await this[_0x4a7776(0xf3)](),this[_0x4a7776(0x1f3)]()){this[_0x4a7776(0x1b4)](_0x5574ef,_0xd0312e),this[_0x4a7776(0x15c)]['show']({'content':this[_0x4a7776(0x107)]['t'](_0x4a7776(0x145)),'type':_0x50fdca['Success']});return;}await new Promise(_0x4eab17=>{const _0x31ef7d=_0x4a7776;this[_0x31ef7d(0x153)]=window[_0x31ef7d(0x298)](_0x4eab17,0x3e8);});}catch(_0x213c6e){this['_logService'][_0x4a7776(0x2ac)](_0x213c6e);}this[_0x4a7776(0x15c)][_0x4a7776(0x11f)]({'content':this[_0x4a7776(0x107)]['t'](_0x4a7776(0x2c3)),'type':_0x50fdca[_0x4a7776(0x152)]});}[_0x1eca44(0x1b4)](_0x56cb45,_0x1615e8){const _0x2bdb9f=_0x1eca44;try{this['_commandService']['executeCommand'](_0x56cb45['id'],_0x56cb45[_0x2bdb9f(0x115)],_0x1615e8);}catch(_0xc97c3e){this[_0x2bdb9f(0x2c0)]['error'](_0xc97c3e);}}['_setFormulaLimitStatus'](_0x3d08d2,_0x4875da){const _0x44a7f6=_0x1eca44;_0x4875da<this[_0x44a7f6(0x26b)]||(this['_lastResponseTimestamp']=_0x4875da,this[_0x44a7f6(0x1b6)]=Number[_0x44a7f6(0x28d)](_0x3d08d2[_0x44a7f6(0x15d)]),this[_0x44a7f6(0x286)]=Number[_0x44a7f6(0x28d)](_0x3d08d2[_0x44a7f6(0x1b5)]));}async[_0x1eca44(0x294)](_0x16ec08){const _0x3a5fc3=_0x1eca44;let _0x960ca6=Date[_0x3a5fc3(0x2c2)]();try{var _0x38cf89,_0x4c94e9;let _0x293368=((_0x38cf89=this[_0x3a5fc3(0x18d)]['getConfig'](_0x3d4bc4))==null?void 0x0:_0x38cf89[_0x3a5fc3(0x17a)])||'/universer-api/license/formula/limit/start',_0x108652=(await this['_httpService'][_0x3a5fc3(0x161)](_0x293368,{'body':JSON[_0x3a5fc3(0x214)]({'taskId':_0x16ec08})}))[_0x3a5fc3(0x22e)];if(((_0x4c94e9=_0x108652[_0x3a5fc3(0x2ac)])==null?void 0x0:_0x4c94e9[_0x3a5fc3(0x197)])!==_0x1c66e2['OK'])return;this[_0x3a5fc3(0x16f)](_0x108652[_0x3a5fc3(0x2a0)],_0x960ca6);}catch(_0x352bc5){this[_0x3a5fc3(0x2c0)]['error'](_0x352bc5);}}async[_0x1eca44(0xf3)](_0xf9634a){const _0x1d6dbb=_0x1eca44;let _0x26cd65=Date[_0x1d6dbb(0x2c2)]();try{var _0x57cf66,_0x45c997;let _0x166ccd=((_0x57cf66=this[_0x1d6dbb(0x18d)]['getConfig'](_0x3d4bc4))==null?void 0x0:_0x57cf66['getFormulaLimitStatusUrl'])||_0x1d6dbb(0x248),_0x419692=_0xf9634a?_0x166ccd+_0x1d6dbb(0x1ef)+encodeURIComponent(_0xf9634a):_0x166ccd,_0xa177a0=(await this[_0x1d6dbb(0x25d)][_0x1d6dbb(0xe1)](_0x419692))[_0x1d6dbb(0x22e)];if(((_0x45c997=_0xa177a0[_0x1d6dbb(0x2ac)])==null?void 0x0:_0x45c997[_0x1d6dbb(0x197)])!==_0x1c66e2['OK'])return;this[_0x1d6dbb(0x16f)](_0xa177a0['limitInfo'],_0x26cd65);}catch(_0x1b3ad8){this['_logService']['error'](_0x1b3ad8);}}async[_0x1eca44(0x117)](_0x326c1b){const _0x4eb696=_0x1eca44;let _0x122096=Date[_0x4eb696(0x2c2)]();try{var _0x5ccd6e,_0x22a1ab;let _0x54afc9=((_0x5ccd6e=this[_0x4eb696(0x18d)][_0x4eb696(0x289)](_0x3d4bc4))==null?void 0x0:_0x5ccd6e['releaseFormulaLimitUrl'])||_0x4eb696(0x2b5),_0x5d99da=(await this[_0x4eb696(0x25d)][_0x4eb696(0x161)](_0x54afc9,{'body':JSON[_0x4eb696(0x214)]({'taskId':_0x326c1b})}))['body'];if(((_0x22a1ab=_0x5d99da[_0x4eb696(0x2ac)])==null?void 0x0:_0x22a1ab[_0x4eb696(0x197)])!==_0x1c66e2['OK'])return;this[_0x4eb696(0x16f)](_0x5d99da[_0x4eb696(0x2a0)],_0x122096);}catch(_0x5b3409){this[_0x4eb696(0x2c0)][_0x4eb696(0x2ac)](_0x5b3409);}}[_0x1eca44(0x1f3)](){const _0x2662c9=_0x1eca44;return this[_0x2662c9(0x1b6)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x1eca44(0x1b8)](){const _0x53aca8=_0x1eca44;this[_0x53aca8(0x153)]&&(clearTimeout(this[_0x53aca8(0x153)]),this[_0x53aca8(0x153)]=null);}[_0x1eca44(0x2d3)](){const _0x2894ba=_0x1eca44;this[_0x2894ba(0x15c)][_0x2894ba(0x11f)]({'content':this[_0x2894ba(0x107)]['t'](_0x2894ba(0xf0)),'type':_0x50fdca[_0x2894ba(0x2d1)]});}['_hasFormulaInDirtyRanges'](_0xf55b69){const _0x3dbb42=_0x1eca44;for(let _0x42b009 of _0xf55b69){let {unitId:_0x414ec0,sheetId:_0x327547,range:_0x2ba3c4}=_0x42b009,_0xe63753=this[_0x3dbb42(0x261)][_0x3dbb42(0x15b)](_0x414ec0);if(!_0xe63753)continue;let _0x37cb3d=_0xe63753[_0x3dbb42(0x149)](_0x327547);if(!_0x37cb3d)continue;let _0x496a0d=_0x37cb3d['getCellMatrix']();for(let _0x6ae19e=_0x2ba3c4[_0x3dbb42(0x28a)];_0x6ae19e<=_0x2ba3c4[_0x3dbb42(0x226)];_0x6ae19e++)for(let _0x1fac4c=_0x2ba3c4[_0x3dbb42(0x16b)];_0x1fac4c<=_0x2ba3c4['endColumn'];_0x1fac4c++){let _0x171905=_0x496a0d[_0x3dbb42(0x24c)](_0x6ae19e,_0x1fac4c);if(_0x171905&&(_0x49e83d(_0x171905['f'])||_0x577334(_0x171905['si'])))return!0x0;}}return!0x1;}};Z=K([G(0x0,_0x4cb926(_0x4b0519)),G(0x1,_0x18bfb0),G(0x2,_0x143a5c),G(0x3,_0x4cb926(_0x249751)),G(0x4,_0x3c294b),G(0x5,_0x59b49c),G(0x6,_0x4cb926(_0x467932))],Z);let kn=class extends _0x44d99f{constructor(_0x1fa9c6,_0x597b54,_0x5e8a16){const _0xad4d6d=_0x1eca44;super(),this[_0xad4d6d(0x18d)]=_0x1fa9c6,this[_0xad4d6d(0x211)]=_0x597b54,this[_0xad4d6d(0x270)]=_0x5e8a16,W(this,_0xad4d6d(0x288),new Map()),W(this,_0xad4d6d(0x2a2),new Map()),W(this,_0xad4d6d(0x1f2),!0x1);}[_0x1eca44(0x121)](){const _0x2073e4=_0x1eca44;this[_0x2073e4(0x1f2)]=!0x0;}['enableLocalCache'](){const _0x6616d5=_0x1eca44;this[_0x6616d5(0x1f2)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x1eca44(0x17d)](){const _0x25b708=_0x1eca44;this[_0x25b708(0x1c1)]()['then'](()=>super[_0x25b708(0x17d)]());}async['loadOfflineData'](_0x520e80){const _0x5c5e63=_0x1eca44;return this[_0x5c5e63(0x1f2)]?null:this[_0x5c5e63(0x211)]['getItem'](_0x213961(_0x520e80));}async[_0x1eca44(0x162)](_0x5d8e18,_0x22aa71){const _0x43ef8e=_0x1eca44;return!!this[_0x43ef8e(0x211)][_0x43ef8e(0x19d)](_0x5d8e18,_0x22aa71);}[_0x1eca44(0x12f)](_0x26b361,_0x58b34d,_0x24071c,_0x560972){const _0x5f0dbf=_0x1eca44;let _0x711526=this[_0x5f0dbf(0x270)][_0x5f0dbf(0x26f)](_0x26b361);this[_0x5f0dbf(0x288)]['set'](_0x26b361,{'unitID':_0x26b361,'type':_0x58b34d,'awaitingChangeset':_0x24071c,'mutations':_0x560972,'rev':_0x711526}),this[_0x5f0dbf(0x2a2)]['has'](_0x26b361)||this[_0x5f0dbf(0x1ed)](_0x26b361);}[_0x1eca44(0x1ed)](_0x2e76f0){const _0x35ad85=_0x1eca44;let _0x1999f2=this['_getSaveTimeout']();_0x1999f2===0x0?this[_0x35ad85(0x1fd)](_0x2e76f0):this['_saveTaskMap'][_0x35ad85(0x191)](_0x2e76f0,setTimeout(()=>this[_0x35ad85(0x1fd)](_0x2e76f0),_0x1999f2));}[_0x1eca44(0x284)](){const _0x184a73=_0x1eca44;var _0x231dcb;return(_0x231dcb=this[_0x184a73(0x18d)]['getConfig'](_0x44227e))==null?_0x5300ae:_0x231dcb;}[_0x1eca44(0x1fd)](_0x2e1db9){const _0x3c6fa3=_0x1eca44;let _0x11876d=this[_0x3c6fa3(0x2a2)][_0x3c6fa3(0xe1)](_0x2e1db9);return _0x11876d!==void 0x0&&window['clearTimeout'](_0x11876d),this['_localStorageService'][_0x3c6fa3(0x19d)](_0x213961(_0x2e1db9),this[_0x3c6fa3(0x288)][_0x3c6fa3(0xe1)](_0x2e1db9))['then'](()=>this[_0x3c6fa3(0x2a2)][_0x3c6fa3(0x175)](_0x2e1db9));}async[_0x1eca44(0x1c1)](){const _0x238a1c=_0x1eca44;let _0x377e49=[];this['_saveTaskMap'][_0x238a1c(0x1f9)]((_0x264882,_0x5d82bf)=>{const _0x2f42dc=_0x238a1c;window[_0x2f42dc(0x14a)](_0x264882),_0x377e49['push'](this['_saveCache'](_0x5d82bf)[_0x2f42dc(0x225)](()=>{const _0x10f700=_0x2f42dc;this[_0x10f700(0x2a2)][_0x10f700(0x175)](_0x5d82bf);}));}),await Promise['all'](_0x377e49);}};kn=K([G(0x0,_0x143a5c),G(0x1,_0x1dba92),G(0x2,_0x4cb926(_0x29c2bb))],kn);var An=class extends _0x1dedae{constructor(){const _0x9ee168=_0x1eca44;super(),W(this,'urlChange$',void 0x0),this[_0x9ee168(0x2d0)]=_0x3dbcf5(window,'popstate')[_0x9ee168(0xf2)](_0xdaeaff(this[_0x9ee168(0x21e)]),_0x3015db(0x1),_0x383e17(void 0x0));}['setParam'](_0x48dfbb,_0x5cba1d,_0x2fabbd=!0x1){const _0x4d9a22=_0x1eca44;let _0x213660=new URL(window[_0x4d9a22(0x28b)][_0x4d9a22(0x272)]);_0x213660[_0x4d9a22(0x1fa)][_0x4d9a22(0x191)](_0x48dfbb,_0x5cba1d),_0x2fabbd?window[_0x4d9a22(0x254)][_0x4d9a22(0x1f5)]('','',_0x213660[_0x4d9a22(0x1f0)]()):window[_0x4d9a22(0x254)][_0x4d9a22(0x1ca)]('','',_0x213660[_0x4d9a22(0x1f0)]());}[_0x1eca44(0x2da)](_0x4f9956,_0x56bd56=!0x1){const _0x9b207a=_0x1eca44;let _0x15d86c=new URL(window[_0x9b207a(0x28b)][_0x9b207a(0x272)]);_0x15d86c[_0x9b207a(0x1fa)][_0x9b207a(0x175)](_0x4f9956),_0x56bd56?window[_0x9b207a(0x254)][_0x9b207a(0x1f5)]('','',_0x15d86c[_0x9b207a(0x1f0)]()):window[_0x9b207a(0x254)]['pushState']('','',_0x15d86c['toString']());}[_0x1eca44(0xe9)](_0x15fb8b){const _0x5e4b1f=_0x1eca44;var _0x2ec423;return(_0x2ec423=new URL(window[_0x5e4b1f(0x28b)]['href'])[_0x5e4b1f(0x1fa)][_0x5e4b1f(0xe1)](_0x15fb8b))==null?void 0x0:_0x2ec423;}};let Q=class extends _0x63e95e{constructor(_0x4df1dd=Sn,_0x59edf3,_0x2f59e6,_0x3087ba){const _0x47bbcc=_0x1eca44;super(),this[_0x47bbcc(0x144)]=_0x4df1dd,this['_renderManagerService']=_0x59edf3,this[_0x47bbcc(0x194)]=_0x2f59e6,this[_0x47bbcc(0x18d)]=_0x3087ba;let {..._0x96a75f}=_0x98878e({},Sn,this[_0x47bbcc(0x144)]);this[_0x47bbcc(0x18d)][_0x47bbcc(0x29b)](xn,_0x96a75f);}['onStarting'](){const _0x193ca0=_0x1eca44;this[_0x193ca0(0x2b1)](),this[_0x193ca0(0x13f)]();}[_0x1eca44(0x1da)](){const _0xc307b3=_0x1eca44;this[_0xc307b3(0x13a)]();}[_0x1eca44(0x2b1)](){const _0xbd86a4=_0x1eca44;var _0x5b8a9b;let _0x53f41b=[[rn],[Z],[wn],[X],[Cn],[cn],[Qt,{'useClass':An}],[_0x2878b7,{'useClass':_0x2a8f63}],[_0x1bf19f,{'useClass':kn}],[q],[Tn],[bn],[Y],[tn],[J]];this[_0xbd86a4(0x144)][_0xbd86a4(0x213)]&&_0x53f41b[_0xbd86a4(0x168)]([En]),_0x199c88(this[_0xbd86a4(0x194)],_0x2d73fc(_0x53f41b,(_0x5b8a9b=this[_0xbd86a4(0x144)])==null?void 0x0:_0x5b8a9b[_0xbd86a4(0x147)]));}['_registerRenderDependencies'](){const _0x3d5f6e=_0x1eca44;this[_0x3d5f6e(0x164)](this['_renderManagerService'][_0x3d5f6e(0x142)](_0x1e8dc0[_0x3d5f6e(0x236)],[gn])),this[_0x3d5f6e(0x164)](this[_0x3d5f6e(0x1ad)][_0x3d5f6e(0x142)](_0x1e8dc0[_0x3d5f6e(0xe8)],[vn]));}['_initDependencies'](){const _0x5188be=_0x1eca44;_0x342fbe(this['_injector'],[[Y],[q],[Tn],[bn],[J],[Z]]),this[_0x5188be(0x144)]['enableFrontendLog']&&_0x342fbe(this[_0x5188be(0x194)],[[En]]);}};W(Q,_0x1eca44(0x1c7),_0x1eca44(0x266)),W(Q,_0x1eca44(0x1a1),$t),W(Q,'version',en),Q=K([_0x3b8f72(_0x4043ed),G(0x1,_0x5b5070),G(0x2,_0x4cb926(_0x581843)),G(0x3,_0x143a5c)],Q);let jn=class extends _0x2dace2{constructor(_0x41b8e8,_0x60c24a,_0x343bbc,_0x591b73,_0xe45dc7){super(_0x41b8e8,_0x60c24a,_0x343bbc,_0x591b73,_0xe45dc7);}async[_0x1eca44(0x23f)](_0x4b5d24){const _0x5025f6=_0x1eca44;let _0x5bd0fa=await this[_0x5025f6(0x18f)](),_0x10710f=this[_0x5025f6(0x14d)](_0x4b5d24,_0x5bd0fa);return this[_0x5025f6(0x1f4)](_0x10710f);}[_0x1eca44(0x14d)](_0x2f8c5a,_0x54752a){const _0xbe8219=_0x1eca44;let _0x37b64a=typeof window>'u'?new URL(_0x2f8c5a):new URL(_0x2f8c5a,window[_0xbe8219(0x28b)][_0xbe8219(0x2b3)]);_0x37b64a[_0xbe8219(0x1fa)][_0xbe8219(0x191)](_0xbe8219(0x215),_0x54752a);let _0x465ee6=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xbe8219(0x28b)][_0xbe8219(0x252)]);return _0x465ee6[_0xbe8219(0xe1)](_0xbe8219(0x101))&&_0x37b64a[_0xbe8219(0x1fa)][_0xbe8219(0x191)](_0xbe8219(0x101),_0x465ee6[_0xbe8219(0xe1)](_0xbe8219(0x101))),_0x37b64a[_0xbe8219(0x1f0)]();}async[_0x1eca44(0x18f)](){const _0x1ed291=_0x1eca44;var _0x35be33,_0x4584f0,_0x560fe4;let _0x51c15a=this[_0x1ed291(0x18d)][_0x1ed291(0x289)](_0x3d4bc4),_0x6a3181=(_0x35be33=_0x51c15a==null?void 0x0:_0x51c15a['wsSessionTicketUrl'])==null?_0x5b99d0:_0x35be33;return(_0x4584f0=(_0x560fe4=(await this[_0x1ed291(0x25d)][_0x1ed291(0xe1)](_0x6a3181,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x560fe4['ticket'])==null?'':_0x4584f0;}};jn=K([G(0x0,_0x4cb926(_0x581843)),G(0x1,_0x4cb926(_0x249751)),G(0x2,_0x143a5c),G(0x3,_0x59b49c),G(0x4,_0x558147)],jn);let Mn=class extends _0x44d99f{constructor(_0x30623f,_0x1da260,_0x5eb596){const _0x235839=_0x1eca44;super(),this[_0x235839(0x178)]=_0x30623f,this['_httpService']=_0x1da260,this[_0x235839(0x18d)]=_0x5eb596;}async[_0x1eca44(0x20b)](_0x59885e,_0x254c89,_0x5567c5,..._0x486286){const _0x2c9d20=_0x1eca44;var _0x23a7b8,_0x263b5a,_0x475b76,_0x368852;let _0x5df58f=this[_0x2c9d20(0x178)][_0x2c9d20(0x263)]();if(!_0x5df58f)throw Error(_0x2c9d20(0x238));let _0x5633d0=((_0x23a7b8=this[_0x2c9d20(0x18d)]['getConfig'](_0x7bd53f))==null?_0x185eaa:_0x23a7b8)+'/'+_0x59885e+'/run/'+_0x254c89,_0x217510={'scriptId':_0x59885e,'runId':(_0x263b5a=new URL(window['location']['href'])[_0x2c9d20(0x1fa)]['get'](_0x2c9d20(0x101)))==null?'':_0x263b5a,'function':_0x254c89,'unitId':_0x5df58f[_0x2c9d20(0x187)](),'argsOfFunction':JSON['stringify'](_0x486286),'invokeId':(_0x475b76=_0x5567c5[_0x2c9d20(0x283)])==null?'':_0x475b76,'executionId':(_0x368852=_0x5567c5[_0x2c9d20(0x251)])==null?'':_0x368852};try{let _0x3eb74e=await this[_0x2c9d20(0x25d)]['post'](_0x5633d0,{'body':_0x217510});return _0x3eb74e['body'][_0x2c9d20(0x2ac)]&&_0x3eb74e[_0x2c9d20(0x22e)][_0x2c9d20(0x2ac)][_0x2c9d20(0x197)]!==_0x1c66e2['OK']?'Failed':_0x3eb74e[_0x2c9d20(0x22e)][_0x2c9d20(0x105)];}catch{return _0x2c9d20(0x12c);}}};Mn=K([G(0x0,_0x3c294b),G(0x1,_0x4cb926(_0x249751)),G(0x2,_0x143a5c)],Mn);var $=function(_0x420a2f){const _0x4c4da2=_0x1eca44;return _0x420a2f[_0x420a2f[_0x4c4da2(0x15e)]=0x0]=_0x4c4da2(0x15e),_0x420a2f[_0x420a2f[_0x4c4da2(0xf9)]=0x1]=_0x4c4da2(0xf9),_0x420a2f[_0x420a2f[_0x4c4da2(0x137)]=0x2]=_0x4c4da2(0x137),_0x420a2f;}($||{});const Nn=0x7530,Pn=_0x1eca44(0x126);var Fn=class extends _0x44d99f{constructor(){const _0x1151c9=_0x1eca44;super(),W(this,'_id',_0x15ca60()),W(this,'_selfUnitIDs',new Set()),W(this,'_unitOnClients',new Map()),W(this,'_heartbeatTimer',null),W(this,_0x1151c9(0x256),new Map()),W(this,_0x1151c9(0x1b3),new Map()),this[_0x1151c9(0x172)]();}[_0x1eca44(0x17d)](){const _0x16f981=_0x1eca44;super[_0x16f981(0x17d)](),this[_0x16f981(0x256)][_0x16f981(0x1f9)]((_0x4360c3,_0x5f087c)=>this[_0x16f981(0x1af)](_0x5f087c)),this[_0x16f981(0x1fc)]&&window['clearInterval'](this[_0x16f981(0x1fc)]);}[_0x1eca44(0x171)](_0x111c08){return this['_ensureSubject'](_0x111c08)['pipe'](_0x53c2ac());}['editingUnit'](_0xb0b83e){const _0x39e254=_0x1eca44;this[_0x39e254(0x135)]['size']===0x0&&this[_0x39e254(0x2ad)](),this[_0x39e254(0x135)][_0x39e254(0x122)](_0xb0b83e),this[_0x39e254(0x140)]({'type':$['JOIN'],'memberID':this['_id'],'unitIDs':[_0xb0b83e],'isForwarded':!0x1});}[_0x1eca44(0x278)](_0x254c6a){const _0x2a92a4=_0x1eca44;this[_0x2a92a4(0x135)][_0x2a92a4(0x175)](_0x254c6a),this['_selfUnitIDs'][_0x2a92a4(0x104)]===0x0&&this['_heartbeatTimer']&&window[_0x2a92a4(0x10e)](this[_0x2a92a4(0x1fc)]);}['_init'](){const _0x3308c9=_0x1eca44;this[_0x3308c9(0x164)](_0x144479(_0x3dbcf5(window,_0x3308c9(0x2b0))['subscribe'](_0x1889f2=>{const _0x370198=_0x3308c9;if(_0x1889f2['key']!==Pn||!_0x1889f2[_0x370198(0x2d8)])return;let _0x22c9aa=JSON[_0x370198(0x176)](_0x1889f2[_0x370198(0x2d8)]);this[_0x370198(0x1d4)](_0x22c9aa);}))),window[_0x3308c9(0x1d8)](_0x3308c9(0x1be),()=>this[_0x3308c9(0x140)]({'type':$[_0x3308c9(0xf9)],'memberID':this['_id'],'unitIDs':Array[_0x3308c9(0x1fe)](this['_selfUnitIDs'])}));}[_0x1eca44(0x1d4)](_0x429e67){const _0x237cec=_0x1eca44;switch(_0x429e67[_0x237cec(0x24b)]){case $[_0x237cec(0x15e)]:this[_0x237cec(0x1b0)](_0x429e67);break;case $['LEAVE']:this['_handleLeaveEvent'](_0x429e67);break;case $['HEARTBEAT']:this['_handleHeartbeatEvent'](_0x429e67);break;}}[_0x1eca44(0x1b0)](_0x348018){const _0x4b25bf=_0x1eca44;let {unitIDs:_0x140174,memberID:_0x3a8fae,isForwarded:_0x2c3fa5}=_0x348018;_0x140174['forEach'](_0x24014e=>{const _0x41c6a9=_0x19c3;if(!_0x2c3fa5&&this['_unitOnClients']['has'](_0x24014e)&&this[_0x41c6a9(0x264)](_0x24014e)['next'](_0x22c9c1[_0x41c6a9(0x160)]),!this[_0x41c6a9(0x1c8)][_0x41c6a9(0x148)](_0x24014e)||!this[_0x41c6a9(0x1c8)][_0x41c6a9(0xe1)](_0x24014e)[_0x41c6a9(0x148)](_0x3a8fae)){let _0x502ee0=this['_unitOnClients']['get'](_0x24014e)||new Set();_0x502ee0['add'](_0x3a8fae),this[_0x41c6a9(0x1c8)][_0x41c6a9(0x191)](_0x24014e,_0x502ee0),this[_0x41c6a9(0x1e8)](_0x3a8fae);}}),_0x2c3fa5||this[_0x4b25bf(0x140)]({'type':$['JOIN'],'memberID':this[_0x4b25bf(0xe2)],'unitIDs':[...this[_0x4b25bf(0x135)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2fb5d7){const _0x5734bb=_0x1eca44;this[_0x5734bb(0x1af)](_0x2fb5d7);let _0x10774e=window[_0x5734bb(0x298)](()=>{const _0x363268=_0x5734bb;this[_0x363268(0x1c8)]['forEach'](_0x16cc4e=>{_0x16cc4e['delete'](_0x2fb5d7);});},Nn*0x2);this[_0x5734bb(0x256)][_0x5734bb(0x191)](_0x2fb5d7,_0x10774e);}[_0x1eca44(0x1af)](_0x47bdc7){const _0xd2d4e2=_0x1eca44;if(this['_clearOtherTimers'][_0xd2d4e2(0x148)](_0x47bdc7)){let _0x2e4750=this['_clearOtherTimers']['get'](_0x47bdc7);_0x2e4750&&window[_0xd2d4e2(0x14a)](_0x2e4750),this['_clearOtherTimers'][_0xd2d4e2(0x191)](_0x47bdc7,null);}}[_0x1eca44(0x186)](_0x4c3cf9){const _0xe2aa5f=_0x1eca44;let {memberID:_0xc74039,unitIDs:_0x58781a}=_0x4c3cf9;_0x58781a[_0xe2aa5f(0x1f9)](_0x5b651a=>{const _0x312245=_0xe2aa5f;var _0x43cfe3;let _0x3149df=this[_0x312245(0x1c8)][_0x312245(0xe1)](_0x5b651a);_0x3149df&&(_0x3149df[_0x312245(0x175)](_0xc74039),(_0x43cfe3=this['_ensureSubject'](_0x5b651a))==null||_0x43cfe3[_0x312245(0x246)](_0x3149df[_0x312245(0x104)]===0x0?_0x22c9c1[_0x312245(0x1ab)]:_0x22c9c1[_0x312245(0x160)]));}),this['_removeClearOtherTimer'](_0xc74039);}[_0x1eca44(0x23e)](_0x20a345){const _0x3e660d=_0x1eca44;this[_0x3e660d(0x1e8)](_0x20a345['memberID']);}[_0x1eca44(0x140)](_0x1bb9dc){const _0x1351fd=_0x1eca44;localStorage[_0x1351fd(0x19d)](Pn,JSON['stringify'](_0x1bb9dc));}[_0x1eca44(0x2ad)](){const _0x48abaf=_0x1eca44;this['_heartbeatTimer']=window[_0x48abaf(0x1ae)](()=>{const _0x588002=_0x48abaf;this[_0x588002(0x140)]({'type':$[_0x588002(0x137)],'memberID':this['_id']});},Nn);}[_0x1eca44(0x264)](_0x1618a6){const _0x1decec=_0x1eca44;return this[_0x1decec(0x1b3)][_0x1decec(0x148)](_0x1618a6)||this[_0x1decec(0x1b3)][_0x1decec(0x191)](_0x1618a6,new _0x307ead(_0x22c9c1[_0x1decec(0x1ab)])),this[_0x1decec(0x1b3)][_0x1decec(0xe1)](_0x1618a6);}};export{jn as BrowserCollaborationSocketService,J as CollaborationDataLoaderController,q as DesktopCollaborationStatusDisplayController,Qt as IURLService,Mn as RemoteUniscriptService,_n as SheetCollabCursorShape,Q as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,An as WebURLService};
1
+ const _0x17a902=_0x155c;(function(_0x4b0805,_0x24ee2e){const _0x157dea=_0x155c,_0x17820b=_0x4b0805();while(!![]){try{const _0x47d2ee=parseInt(_0x157dea(0x2ba))/0x1*(parseInt(_0x157dea(0x298))/0x2)+parseInt(_0x157dea(0x1f3))/0x3+parseInt(_0x157dea(0x34b))/0x4*(-parseInt(_0x157dea(0x36c))/0x5)+parseInt(_0x157dea(0x3c8))/0x6*(-parseInt(_0x157dea(0x303))/0x7)+-parseInt(_0x157dea(0x397))/0x8*(parseInt(_0x157dea(0x218))/0x9)+-parseInt(_0x157dea(0x36d))/0xa+parseInt(_0x157dea(0x367))/0xb;if(_0x47d2ee===_0x24ee2e)break;else _0x17820b['push'](_0x17820b['shift']());}catch(_0x1b7ced){_0x17820b['push'](_0x17820b['shift']());}}}(_0x5695,0x19171));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';function _0x5695(){const _0x186411=['getViewport','_id','map','_draw','stringify','_setupBeforeClosingHandler','string','showText','catch','NOT_COLLAB','getUndoRedoMutationParamsCache','activeSheet$','pushState','name','sheetID','_handleJoinEvent','_scheduleHeartbeat','roomMembers$','_cursorShapes','83979RWJGKT','tooltipKey','disposeUnit','setAlpha','getActiveRange','_urlService','_injector','transformIMECache','_color','_setupSubUnitSync','/run/','_init','set','_transformHistoryAndStateStack','forEach','collab-rect-range-','clearInterval','_handleHeartbeatEvent','decorate','UNIVER_SHEET','reconnect','maxFormulaLimit','startFormulaLimitUrl','/universer-api/license/formula/limit/done','_render','replaceDocRanges','hovered','JOIN','clearTimeout','_docSyncEditingCollabCursorService','_hideTimer','getItem','_textBubble','OFFLINE','_backgroundColor','rgb','top','[RemoteUniscriptService]:\x20no\x20focused\x20unit','error','_initCommandInterceptor','_entities','unshift','UPDATE_CURSOR','_colorIndex','getOffsetConfig','_cursors','_getLighterColor','default','_blinkIntervalTimer','offsetY','getUniverSheetInstance','urlChange$','addObjects','_getSheetObject','univer-text-blue-500','getMemberID','onPointerLeave$','executeCommand','fill','defineProperty','unitId','ACTIVE_UNIT_EVENT_CHANNEL','registerComponent','rgba','flatMap','_lastPointer','_dataLoaderService','registerRenderModule','measureText','clickable','moveTo','_startBlinking','_uploadLog','session.collaboration-timeout','transformRemoteChangeset','_cachedData','currentSkeleton$','Loading','column','_releaseCalculationLimit','_saveCache','_assignedColors','evenodd','_scheduleSaving','from','body','whenReady','triggerDblclick','complete','_configService','univer-flex\x20univer-items-center\x20univer-justify-center','_localCacheService','_offsetY','InsertRangeMoveDownCommandId','collabStatus.conflict','selections','isActive','storage','_getScale','transformMutation','delete','RemoveRowCommandId','_heartbeatTimer','onMouseMove','icon','_docSkeletonManagerService','dark:focus:univer-ring-offset-gray-800','_config','getOwnPropertyDescriptor','ranges','blue.400','then','univer-m-0\x20univer-p-0','onCommandExecuted','collaboration.closeRoom','getUnit','endColumn','actions','unload','_registerDependencies','polite','_clearPolling','_cursorInfo$','beginPath','find','black','_httpService','_initStatusListener','4LqidxG','_getSaveTimeout','_context','lineTo','getVpScrollXYInfoByPosToVp','_online','transformStateCache','_unitStatus','rgba(255,\x20255,\x20255,\x200.01)','[LogService\x20Error]:\x20','0.21.0','OTHER_CLIENTS_EDITING','show','event$','_shapes','function','setTimeout','color','FromArray','setInterval','_initUnhandledRejectionListener','_themeService','m2Prime','getTypeOfUnitDisposed$','ticket','send','cursorInfo','saveImage','_monkeyPatchLogService','HEADER_MENU','highlight','PERMISSION_DENIED','loadOfflineData','data','7478cdJUmk','getActiveSheet','_startDocCollabCursor','_highlightSecond','_name','socket$','call','TEXT','pulse','next','size','history','static','selection','unhandledrejection','univer-text-orange-500','_initEntityListener','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_collabCursorState$','permission.content','LEAVE','_eventUnsubscribe','getCellPositionByOffset','univer-text-gray-400','preventDefault','disposeWithMe','getCollabEntity$','_collabCursorController','_status$','InsertColCommandId','getUnitId','univer-text-red-500','green.600','Enter','collaboration-client-ui.config','drawWith','_messageService','_collabSessionService','registerBeforeClose','_imageIoService','symbol','Success','unitID','height','dispose','getCollabCursors$','length','filename','_initWindowErrorListener','_blinkTimer','_entityInit$','width','_setFormulaLimitStatus','_initStatusComponent','toPrimitive','onLocalMutation','#FFF','collab-client.tooltip.reconnect','executionId','true','CONFLICT','iterator','colorClass','univer-appearance-none','colno','href','arc','with','_handleEvent','Warning','params','collabCursorState$','textRanges','149317BFNOCS','OTHER_CLIENT_EDITING','getSkeleton','onStarting','AWAITING_WITH_PENDING','_localStorageService','_document','_disabled','status$','popstate','MUTATION','mutations','univer-transition-all\x20univer-duration-200','_refRangeService','purple.300','runOnServer','search','entityInit$','_labelPosition','key','_anchorDot','now','engine','enableFrontendLog','sessionStatus$','getUnhiddenWorksheets','_currentUsage','_taskIds','?taskId=','status','transformMutationsWithChangeset','result','dispose$','_doCreateSocket','/universer-api/license/formula/limit/status','RECT','subscribeEvent','InsertRangeMoveRightCommandId','rgba(','RemoveColCommandId','getMember','stageInfo','version','_unitOnClients','subUnitId','getStateCache','join','code','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','application/json','replace','setItem','_updateURLWithCurrentState','Failed','_docTransformStateCacheService','_getAnchorBounding','_updateLocalCursor','requireSession','redoState','yellow.400','editingUnit','m1Prime','[Unhandled\x20Rejection]:\x20','_memberService','_uiPartsService','formula.calculation.unable','source','_syncEditingCollabCursorService','_handleHover','all','_instanceService','_collaborationSessionService','2516wlHsfM','_transformUndoRedoStack','getRangePointData','object','_collaborationController','_hovered','findNodePositionByCharIndex','runId','_initResize','jiqing.500','Active','_initDependencies','values','univer-inline-flex\x20univer-items-center\x20univer-justify-center','getTypeOfUnitAdded$','i18nKey','beforeCommandExecuted','some','_maxFormulaLimit','undefined','_sheetSkeletonManagerService','totalFormulasToCalculate','_startSheetCollabCursor','_notificationService','_checkCalculationAvailable','eventID','session.will-retry','HEARTBEAT','2779810SShejb','Error','startColumn','push','invokeId','65vWUpju','164600yNbNBE','parse','memberID','highlightSecond','getColorFromTheme','@univerjs-pro/collaboration-client-ui','transform','origin','_hasFormulaInDirtyRanges','stack','PENDING','_scene','unit','_updateSubUnitFromURLParams','DeleteRangeMoveUpCommandId','parseInt','undoState','getMergeData','endRow','_lastResponseTimestamp','_refreshCollabCursors','_scheduleClearOtherTimer','cursorInfo$','_getSessionTicket','message','startRow','Inactive','univer-border-none\x20univer-bg-transparent','asObservable','getValue','shift','_checkAndWaitForCalculationPermission','_highlight','getFocusedUnit','_initEvent','getCurrentRevOfUnit','type','hide','getSheetBySheetId','spin','setShapeProps','split','120DaHCVJ','_docTransformSelectionsService','DeleteRangeMoveLeftCommandId',',\x200.2)','slice','_logService','_revisionService','resize','_beforeCloseService','_saveTaskMap','saveOfflineData','location','_send','_univerInstanceService','text','...','collabStatus.offline','currentUsage','dirtyRanges','_showText','add','fillRule','limitInfo','post','sheetId','createInstance','deepClone','_commandService','_onCursorUpdate','_renderManagerService','getParam','getDocRanges','_onCursorDelete','_collaborationUIEventService','debug','SUCCESS','getSheetId','transformSelections','setActiveRange','bind','_getMergeRange','range','ONLINE','Unknown\x20user','doc.mutation.rich-text-editing','_getFormulaLimitStatus','fillText','getRenderById','toRgbString','6WnDJCs','backgroundColor','UNIVER_DOC','_session','pluginName','formula.calculation.started','toString','indicator','_drawAnchor','SOCKET_FAILED_RETRY','_drawRectRange','reason','span','_showGuardMessage','_localeService','makeDirty','START_CALCULATION','_removeCollabCursors','univer-text-green-500','setConfig','collab-text-anchor-','[CollaborationDataLoaderController]','_clearOtherTimers','SUBMIT_CHANGESET_TIMEOUT','init','_ensureSubject','_cursor','addObject','_stopBlinking','searchParams','_roomMembers$','onPointerEnter$','getConfig','addClipboardHook','/universer-api/frontend/logs','enableLocalCache','has','JOIN_ROOM_FAILED','_onRefRangeChange','_isBlinkVisible','restore','fillStyle','addEventListener','get','_hover','saveTaskMap','row','setUndoRedoMutationParamsCache','subscribe','registerRefRange','_range','_registerRenderDependencies','_applyCommand','setParam','_transformService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','button','_colorAssignService','pipe','_toggleOffline','_docTransformIMECacheService','bottom','updateOfflineData','/universer-api/license/formula/limit/start','CLOSE_ROOM','AWAITING','syncEditingCollabCursor','NO_OTHER_CLIENTS_EDITING','roomMembers','wsSessionTicketUrl','replaceState','_anchor','unsubscribe','_startCalculationLimit','_drawTextRange','startsWith','0.2)','disableLocalCache','assignAColorForMemberID','63108VPtBQr','createSocket','newValue','_selfUnitIDs','_updateCollabCursors','_removeClearOtherTimer','isArray','_initUserListener','_pollingInterval','subunit','getAncestorScale','override','_createSocketURL','save','[Window\x20Error]:\x20','_docStateChangeManagerService','stage','_toggleOnline'];_0x5695=function(){return _0x186411;};return _0x5695();}import{BuiltInUIPart,IBeforeCloseService,IMessageService,INotificationService,IUIPartsService,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{BehaviorSubject,Subject,combineLatest,debounceTime,distinctUntilChanged,filter,fromEvent,mapTo,merge as _0x576c72,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 _0x47643b,map,switchMap as _0x28391a,takeUntil as _0x3842e6,throttleTime}from'rxjs/operators';import{SheetSkeletonManagerService,getCoordByCell,getSheetObject}from'@univerjs/sheets-ui';import{ErrorCode}from'@univerjs/protocol';function getStatusConfig(_0x394122){const _0x582132=_0x155c;switch(_0x394122){case CollaborationStatus[_0x582132(0x239)]:return{'icon':jsx(OffLineIcon,{}),'colorClass':_0x582132(0x2d9),'i18nKey':_0x582132(0x3a7),'tooltipKey':_0x582132(0x2f3),'clickable':!![],'indicator':_0x582132(0x2c6)};case CollaborationStatus[_0x582132(0x2f6)]:return{'icon':jsx(OffLineIcon,{}),'colorClass':_0x582132(0x2c9),'i18nKey':_0x582132(0x276),'clickable':![],'indicator':_0x582132(0x2c6)};case CollaborationStatus['FETCH_MISS']:return{'icon':jsx(LoadingMultiIcon,{}),'colorClass':_0x582132(0x24e),'i18nKey':'collabStatus.fetchMiss','clickable':![],'indicator':'spin'};case CollaborationStatus[_0x582132(0x20e)]:return{'icon':jsx(OnLineIcon,{}),'colorClass':_0x582132(0x2d1),'i18nKey':'collabStatus.notCollab','clickable':![],'indicator':_0x582132(0x2c6)};case CollaborationStatus[_0x582132(0x1e5)]:case CollaborationStatus[_0x582132(0x307)]:return{'icon':jsx(LoadingMultiIcon,{}),'colorClass':'univer-text-blue-500','i18nKey':'collabStatus.syncing','clickable':![],'indicator':'spin'};case CollaborationStatus['SYNCED']:case CollaborationStatus[_0x582132(0x377)]:return{'icon':jsx(OnLineIcon,{}),'colorClass':_0x582132(0x1b6),'i18nKey':'collabStatus.synced','clickable':![],'indicator':_0x582132(0x2c6)};}}function _0x155c(_0x17a3e0,_0xd47fd3){_0x17a3e0=_0x17a3e0-0x1a5;const _0x56954b=_0x5695();let _0x155cb2=_0x56954b[_0x17a3e0];return _0x155cb2;}function CollaborationStatusDisplay(_0x4aa715){const _0x382355=_0x155c,{status$:_0x2f603b}=_0x4aa715,_0x4b9399=useObservable(_0x2f603b,CollaborationStatus[_0x382355(0x20e)]),_0x15ae48=useDependency(LocaleService),_0x50e0e0=useDependency(CollaborationSessionService),_0x2f0f51=useMemo(()=>getStatusConfig(_0x4b9399),[_0x4b9399]),_0x524d0c=_0x4b9399!==CollaborationStatus[_0x382355(0x239)],_0x2a1d94=_0x15ae48['t'](_0x2f0f51[_0x382355(0x35a)]),_0x24b291=_0x2f0f51[_0x382355(0x219)]?_0x15ae48['t'](_0x2f0f51[_0x382355(0x219)]):_0x2a1d94,_0x4c4d39=useCallback(()=>{const _0x5ba779=_0x382355;if(!_0x524d0c)_0x50e0e0[_0x5ba779(0x22c)]();},[_0x524d0c,_0x50e0e0]),_0x18430b=useCallback(_0x35b5f0=>{const _0x5108e0=_0x382355;!_0x524d0c&&(_0x35b5f0[_0x5108e0(0x316)]===_0x5108e0(0x2db)||_0x35b5f0[_0x5108e0(0x316)]==='\x20')&&(_0x35b5f0[_0x5108e0(0x2d2)](),_0x50e0e0[_0x5108e0(0x22c)]());},[_0x524d0c,_0x50e0e0]),_0xd38726=jsx(_0x382355(0x1b0),{'className':clsx(_0x382355(0x272),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x2f0f51[_0x382355(0x2f8)],{'univer-animate-spin':_0x2f0f51[_0x382355(0x1ab)]===_0x382355(0x394),'univer-animate-pulse':_0x2f0f51[_0x382355(0x1ab)]===_0x382355(0x2c2)}),'aria-hidden':_0x382355(0x2f5),'children':_0x2f0f51[_0x382355(0x280)]}),_0x324172=jsx('span',{'className':clsx(_0x382355(0x272),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x382355(0x30f),_0x382355(0x2cb),_0x382355(0x282),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x2f0f51[_0x382355(0x25d)],'univer-cursor-default':!_0x2f0f51[_0x382355(0x25d)]}),'children':_0xd38726});if(_0x2f0f51[_0x382355(0x25d)])return jsx(Tooltip,{'title':_0x24b291,'placement':_0x382355(0x1e1),'children':jsx('button',{'type':_0x382355(0x1dc),'onClick':_0x4c4d39,'onKeyDown':_0x18430b,'className':clsx('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x382355(0x388),_0x382355(0x288),_0x382355(0x2f9)),'aria-label':_0x2a1d94+'\x20-\x20'+_0x24b291,'role':_0x382355(0x320),'aria-live':_0x382355(0x290),'aria-atomic':'true','children':_0x324172})});return jsx(Tooltip,{'title':_0x24b291,'placement':_0x382355(0x1e1),'children':jsx('div',{'className':clsx(_0x382355(0x358),_0x382355(0x388),_0x382355(0x288)),'aria-label':_0x2a1d94,'role':'status','aria-live':_0x382355(0x290),'aria-atomic':_0x382355(0x2f5),'children':_0x324172})});}function _typeof(_0x499498){'@babel/helpers - typeof';const _0x5e88c4=_0x155c;return _typeof=_0x5e88c4(0x2a7)==typeof Symbol&&_0x5e88c4(0x2e2)==typeof Symbol[_0x5e88c4(0x2f7)]?function(_0x13429c){return typeof _0x13429c;}:function(_0x4edd52){const _0x5120a2=_0x5e88c4;return _0x4edd52&&_0x5120a2(0x2a7)==typeof Symbol&&_0x4edd52['constructor']===Symbol&&_0x4edd52!==Symbol['prototype']?'symbol':typeof _0x4edd52;},_typeof(_0x499498);}function toPrimitive(_0x1fed64,_0xe631e5){const _0x41d585=_0x155c;if(_0x41d585(0x34e)!=_typeof(_0x1fed64)||!_0x1fed64)return _0x1fed64;var _0x106f0a=_0x1fed64[Symbol[_0x41d585(0x2f0)]];if(void 0x0!==_0x106f0a){var _0x23a784=_0x106f0a[_0x41d585(0x2c0)](_0x1fed64,_0xe631e5||_0x41d585(0x247));if('object'!=_typeof(_0x23a784))return _0x23a784;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x41d585(0x20b)===_0xe631e5?String:Number)(_0x1fed64);}function toPropertyKey(_0x3ef18b){const _0x5842d7=_0x155c;var _0x2a9a58=toPrimitive(_0x3ef18b,'string');return _0x5842d7(0x2e2)==_typeof(_0x2a9a58)?_0x2a9a58:_0x2a9a58+'';}function _defineProperty(_0x377174,_0x26ab9e,_0x4c1561){return(_0x26ab9e=toPropertyKey(_0x26ab9e))in _0x377174?Object['defineProperty'](_0x377174,_0x26ab9e,{'value':_0x4c1561,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x377174[_0x26ab9e]=_0x4c1561,_0x377174;}function __decorateParam(_0x37d76f,_0x3a902f){return function(_0x3b3823,_0x33c0c1){_0x3a902f(_0x3b3823,_0x33c0c1,_0x37d76f);};}function __decorate(_0x25de28,_0x14f354,_0x7bca84,_0x39f0c9){const _0x18cc2e=_0x155c;var _0x26fd4c=arguments[_0x18cc2e(0x2e8)],_0x2aff77=_0x26fd4c<0x3?_0x14f354:_0x39f0c9===null?_0x39f0c9=Object[_0x18cc2e(0x284)](_0x14f354,_0x7bca84):_0x39f0c9,_0x15cbc5;if(typeof Reflect===_0x18cc2e(0x34e)&&typeof Reflect[_0x18cc2e(0x22a)]==='function')_0x2aff77=Reflect['decorate'](_0x25de28,_0x14f354,_0x7bca84,_0x39f0c9);else{for(var _0x26957a=_0x25de28[_0x18cc2e(0x2e8)]-0x1;_0x26957a>=0x0;_0x26957a--)if(_0x15cbc5=_0x25de28[_0x26957a])_0x2aff77=(_0x26fd4c<0x3?_0x15cbc5(_0x2aff77):_0x26fd4c>0x3?_0x15cbc5(_0x14f354,_0x7bca84,_0x2aff77):_0x15cbc5(_0x14f354,_0x7bca84))||_0x2aff77;}return _0x26fd4c>0x3&&_0x2aff77&&Object[_0x18cc2e(0x253)](_0x14f354,_0x7bca84,_0x2aff77),_0x2aff77;}let DesktopCollaborationStatusDisplayController=class DesktopCollaborationStatusDisplayController extends Disposable{constructor(_0x874ec5,_0x1ea6d7,_0x372fa9,_0x493a64){const _0x4fce44=_0x155c;super(),this[_0x4fce44(0x3a4)]=_0x874ec5,this['_injector']=_0x1ea6d7,this[_0x4fce44(0x34f)]=_0x372fa9,this[_0x4fce44(0x343)]=_0x493a64,_defineProperty(this,_0x4fce44(0x2d6),new BehaviorSubject(CollaborationStatus[_0x4fce44(0x20e)])),this[_0x4fce44(0x2ef)](),this[_0x4fce44(0x297)]();}[_0x17a902(0x297)](){const _0x26bb45=_0x17a902;this[_0x26bb45(0x2d3)](this[_0x26bb45(0x3a4)]['focused$'][_0x26bb45(0x1de)](switchMap(()=>{const _0x3286f6=_0x26bb45,_0x5537ad=this[_0x3286f6(0x3a4)][_0x3286f6(0x38e)]();if(_0x5537ad)return this[_0x3286f6(0x34f)][_0x3286f6(0x2d4)](_0x5537ad[_0x3286f6(0x2d8)]());return of(null);}),switchMap(_0x49fc45=>{const _0x467ecd=_0x26bb45;if(_0x49fc45)return _0x49fc45[_0x467ecd(0x30b)];return of(CollaborationStatus[_0x467ecd(0x20e)]);}))[_0x26bb45(0x1d4)](_0x14f6a7=>{const _0x4fbdfb=_0x26bb45;this[_0x4fbdfb(0x2d6)]['next'](_0x14f6a7);}));}['_initStatusComponent'](){const _0x45b13c=_0x17a902;this[_0x45b13c(0x2d3)](this['_uiPartsService'][_0x45b13c(0x256)](BuiltInUIPart[_0x45b13c(0x2b5)],()=>connectInjector(passProps({'status$':this['_status$'][_0x45b13c(0x389)]()}),this[_0x45b13c(0x21e)])));}};DesktopCollaborationStatusDisplayController=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,Inject(CollaborationController)),__decorateParam(0x3,IUIPartsService)],DesktopCollaborationStatusDisplayController);function passProps(_0x8c3448){const {status$:_0x2c8151}=_0x8c3448;return function _0x1c5fe2(){return jsx(CollaborationStatusDisplay,{'status$':_0x2c8151});};}const IURLService=createIdentifier('uni.network.url-service');let CollaborationDataLoaderController=class CollaborationDataLoaderController extends RxDisposable{constructor(_0x717cf7,_0x5dbcdf,_0x3619f2,_0x28b780,_0xd34653){const _0x1776c1=_0x17a902;super(),this[_0x1776c1(0x21d)]=_0x717cf7,this[_0x1776c1(0x39c)]=_0x5dbcdf,this[_0x1776c1(0x3b2)]=_0x3619f2,this[_0x1776c1(0x25a)]=_0x28b780;if(_0xd34653)_0xd34653===null||_0xd34653===void 0x0||_0xd34653[_0x1776c1(0x26e)]()[_0x1776c1(0x287)](()=>this['_init']());else this[_0x1776c1(0x39c)]['debug'](_0x1776c1(0x1b9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x1776c1(0x223)]();}async[_0x17a902(0x223)](){const _0x2bbb6d=_0x17a902,_0x538a07=this['_urlService']['getParam']('unit'),_0x4c4426=this[_0x2bbb6d(0x21d)]['getParam']('type'),_0x563861=this['_urlService'][_0x2bbb6d(0x3b5)](_0x2bbb6d(0x1fc));if(!_0x538a07||!_0x4c4426){this[_0x2bbb6d(0x39c)][_0x2bbb6d(0x3b9)]('[CollaborationDataLoaderController]',_0x2bbb6d(0x1db));return;}const _0x591ff4=await this[_0x2bbb6d(0x25a)]['loadUnit'](_0x538a07,Number(_0x4c4426),_0x563861);if(_0x591ff4&&_0x591ff4 instanceof Workbook)this['_setupSubUnitSync'](_0x591ff4);}async[_0x17a902(0x221)](_0x3fd7e9){const _0x19a887=_0x17a902;await this[_0x19a887(0x37a)](_0x3fd7e9),_0x3fd7e9[_0x19a887(0x210)][_0x19a887(0x1de)](takeUntil(this[_0x19a887(0x323)]))['subscribe'](_0x53543b=>{const _0x11d4ca=_0x19a887;if(_0x53543b)this[_0x11d4ca(0x337)](_0x53543b);}),this['_urlService']['urlChange$']['pipe'](takeUntil(this[_0x19a887(0x323)]))[_0x19a887(0x1d4)](()=>this['_updateSubUnitFromURLParams'](_0x3fd7e9));}[_0x17a902(0x337)](_0xcee45e,_0x3cc58b=![]){const _0x1cd1c9=_0x17a902,_0x4309d1=this[_0x1cd1c9(0x21d)][_0x1cd1c9(0x3b5)]('subunit');if(_0xcee45e['getSheetId']()!==_0x4309d1)this[_0x1cd1c9(0x21d)][_0x1cd1c9(0x1d9)](_0x1cd1c9(0x1fc),_0xcee45e[_0x1cd1c9(0x3bb)](),_0x3cc58b);}async[_0x17a902(0x37a)](_0x344984){const _0x25085f=_0x17a902;var _0x3bc384;const _0x46c535=this[_0x25085f(0x21d)][_0x25085f(0x3b5)](_0x25085f(0x1fc));if(!_0x46c535||!_0x344984[_0x25085f(0x393)](_0x46c535)){const _0x4453ba=_0x344984[_0x25085f(0x31c)]()[0x0],_0x495c32=_0x344984[_0x25085f(0x393)](_0x4453ba);if(!_0x495c32)return;this[_0x25085f(0x337)](_0x495c32,!![]),await this[_0x25085f(0x3b2)][_0x25085f(0x251)](SetWorksheetActivateCommand['id'],{'unitId':_0x344984[_0x25085f(0x2d8)](),'subUnitId':_0x4453ba});return;}if(((_0x3bc384=_0x344984[_0x25085f(0x2bb)]())===null||_0x3bc384===void 0x0?void 0x0:_0x3bc384['getSheetId']())===_0x46c535)return;await this[_0x25085f(0x3b2)][_0x25085f(0x251)](SetWorksheetActivateCommand['id'],{'unitId':_0x344984['getUnitId'](),'subUnitId':_0x46c535});}};CollaborationDataLoaderController=__decorate([__decorateParam(0x0,IURLService),__decorateParam(0x1,ILogService),__decorateParam(0x2,ICommandService),__decorateParam(0x3,Inject(DataLoaderService)),__decorateParam(0x4,Optional(IRemoteInstanceService))],CollaborationDataLoaderController);var name=_0x17a902(0x372),version=_0x17a902(0x2a2);let ImagePasteController=class ImagePasteController extends RxDisposable{constructor(_0x1c1e76,_0x3263cf){const _0x15f8a9=_0x17a902;super(),this['_docClipboardService']=_0x1c1e76,this[_0x15f8a9(0x2e1)]=_0x3263cf,this[_0x15f8a9(0x223)]();}[_0x17a902(0x223)](){const _0x30f262=_0x17a902,_0x7770b2=this;this[_0x30f262(0x2d3)](this['_docClipboardService'][_0x30f262(0x1c5)]({'onBeforePasteImage':async _0x510e3e=>{const _0x11a02d=_0x30f262,_0x27102e=await _0x7770b2[_0x11a02d(0x2e1)][_0x11a02d(0x2b3)](_0x510e3e);if(_0x27102e)return{'source':_0x27102e[_0x11a02d(0x345)],'imageSourceType':_0x27102e['imageSourceType']};return null;}}));}};ImagePasteController=__decorate([__decorateParam(0x0,IDocClipboardService),__decorateParam(0x1,IImageIoService)],ImagePasteController);const BACKGROUND_TOKENS=[_0x17a902(0x311),_0x17a902(0x354),_0x17a902(0x2da),'red.300',_0x17a902(0x286),_0x17a902(0x33e)];var ColorAssignService=class extends Disposable{constructor(..._0x57d97){const _0x27442e=_0x17a902;super(..._0x57d97),_defineProperty(this,_0x27442e(0x269),new Map()),_defineProperty(this,_0x27442e(0x243),0x0);}[_0x17a902(0x1f2)](_0x37f3ae){const _0x1d723a=_0x17a902;if(this[_0x1d723a(0x269)][_0x1d723a(0x1c8)](_0x37f3ae))return this[_0x1d723a(0x269)][_0x1d723a(0x1cf)](_0x37f3ae);const _0x25e062=BACKGROUND_TOKENS[this[_0x1d723a(0x243)]];return this['_colorIndex']=(this[_0x1d723a(0x243)]+0x1)%BACKGROUND_TOKENS[_0x1d723a(0x2e8)],this[_0x1d723a(0x269)][_0x1d723a(0x224)](_0x37f3ae,_0x25e062),_0x25e062;}},TextRangeActiveStatus=function(_0x11942a){const _0x264de2=_0x17a902;return _0x11942a[_0x264de2(0x355)]='1',_0x11942a['Inactive']='0',_0x11942a;}(TextRangeActiveStatus||{});function serializeDocTextRanges(_0x43cfb0){const _0x3f074d=_0x17a902;let _0x593afc='';for(const _0x3a14a5 of _0x43cfb0){const {startOffset:_0x42f386,endOffset:_0x37256f,isActive:_0x471fd6,rangeType:_0x37b0cd,segmentId:_0x1e99e6,segmentPage:_0x55b5a3}=_0x3a14a5;if(_0x593afc[_0x3f074d(0x2e8)])_0x593afc+=',';_0x593afc+=_0x42f386+':'+_0x37256f+':'+(_0x471fd6?TextRangeActiveStatus['Active']:TextRangeActiveStatus[_0x3f074d(0x387)])+':'+_0x37b0cd+':'+_0x1e99e6+':'+_0x55b5a3;}return _0x593afc;}function deserializeDocTextRanges(_0x512289){const _0x20ac9a=_0x17a902,_0x595837=_0x512289[_0x20ac9a(0x396)](','),_0x187785=[];for(const _0x2ec0d1 of _0x595837){const [_0x58ecc2,_0x351c79,_0x37d262,_0xc79720,_0x2190b0,_0x32768f]=_0x2ec0d1[_0x20ac9a(0x396)](':');_0x187785[_0x20ac9a(0x36a)]({'startOffset':Number(_0x58ecc2),'endOffset':Number(_0x351c79),'collapsed':_0x58ecc2===_0x351c79,'isActive':_0x37d262===TextRangeActiveStatus[_0x20ac9a(0x355)],'rangeType':_0xc79720===DOC_RANGE_TYPE[_0x20ac9a(0x2c1)]?DOC_RANGE_TYPE['TEXT']:DOC_RANGE_TYPE[_0x20ac9a(0x326)],'segmentId':typeof _0x2190b0===_0x20ac9a(0x20b)?String(_0x2190b0):'','segmentPage':Number(_0x32768f!==null&&_0x32768f!==void 0x0?_0x32768f:-0x1)});}if(!_0x187785[_0x20ac9a(0x35c)](_0x3f6b96=>_0x3f6b96['isActive']))_0x187785[0x0][_0x20ac9a(0x278)]=!![];return _0x187785;}var DocSyncEditingCollabCursorService=class extends RxDisposable{constructor(..._0x284539){const _0x2fe4b4=_0x17a902;super(..._0x284539),_defineProperty(this,_0x2fe4b4(0x2cc),new BehaviorSubject(null)),_defineProperty(this,'collabCursorState$',this[_0x2fe4b4(0x2cc)][_0x2fe4b4(0x389)]());}[_0x17a902(0x1e6)](_0x52c0d4){const _0x255680=_0x17a902,{unitID:_0x42a1cf,memberID:_0xc94f1,textRanges:_0x51e5d5}=_0x52c0d4,_0x256da6=serializeDocTextRanges(_0x51e5d5);if(_0x256da6==='')return;const _0x506723={'unitID':_0x42a1cf,'memberID':_0xc94f1,'selection':_0x256da6};this[_0x255680(0x2cc)]['next'](_0x506723);}};const DEBOUNCE_TIME$1=0x12c,SHARE_LOCAL_DEBOUNCE_TIME$1=0x64;let DocCollabCursorEntity=class DocCollabCursorEntity extends RxDisposable{get['cursorInfo'](){const _0x114dbf=_0x17a902;return this[_0x114dbf(0x292)]['getValue']();}get[_0x17a902(0x1e8)](){const _0x5be234=_0x17a902;return this[_0x5be234(0x1c2)]['getValue']();}constructor(_0x1abba4,_0x45e020,_0x251268,_0x5747d0,_0x58a7d9,_0xade34c,_0x43c9ae,_0xcd6259,_0xdf9a2c){const _0x455496=_0x17a902;super(),this[_0x455496(0x2e4)]=_0x1abba4,this['_session']=_0x45e020,this[_0x455496(0x21e)]=_0x251268,this[_0x455496(0x1dd)]=_0x5747d0,this['_memberService']=_0x58a7d9,this['_syncEditingCollabCursorService']=_0xade34c,this[_0x455496(0x1da)]=_0x43c9ae,this['_univerInstanceService']=_0xcd6259,this[_0x455496(0x3b2)]=_0xdf9a2c,_defineProperty(this,_0x455496(0x29d),![]),_defineProperty(this,_0x455496(0x223),![]),_defineProperty(this,_0x455496(0x292),new BehaviorSubject(new Map())),_defineProperty(this,_0x455496(0x383),this[_0x455496(0x292)][_0x455496(0x389)]()),_defineProperty(this,_0x455496(0x1c2),new BehaviorSubject([])),_defineProperty(this,_0x455496(0x216),this[_0x455496(0x1c2)][_0x455496(0x1de)](debounceTime(DEBOUNCE_TIME$1))),_defineProperty(this,_0x455496(0x33b),debounce(_0x36bdd2=>{const _0x4cab3d=_0x455496,_0x187128={'eventID':CollaborationEvent[_0x4cab3d(0x242)],'data':{'unitID':this[_0x4cab3d(0x2e4)],'memberID':this[_0x4cab3d(0x1a7)]['getMemberID'](),'selection':serializeDocTextRanges(_0x36bdd2)}};this[_0x4cab3d(0x1a7)]['send'](_0x187128,this[_0x4cab3d(0x2e4)]);},SHARE_LOCAL_DEBOUNCE_TIME$1));}[_0x17a902(0x2e6)](){const _0x4a5f19=_0x17a902;super[_0x4a5f19(0x2e6)](),this[_0x4a5f19(0x292)][_0x4a5f19(0x2c3)](new Map()),this[_0x4a5f19(0x292)][_0x4a5f19(0x270)](),this[_0x4a5f19(0x1c2)][_0x4a5f19(0x2c3)]([]),this[_0x4a5f19(0x1c2)][_0x4a5f19(0x270)]();}[_0x17a902(0x1bc)](){const _0x31ce08=_0x17a902;if(this[_0x31ce08(0x223)])return;this[_0x31ce08(0x223)]=!![],this[_0x31ce08(0x1a7)][_0x31ce08(0x31b)][_0x31ce08(0x1de)](takeUntil(this[_0x31ce08(0x323)]))[_0x31ce08(0x1d4)](_0x364808=>{const _0x599e5c=_0x31ce08;if(_0x364808===SessionStatus['ONLINE'])this[_0x599e5c(0x204)]();else this[_0x599e5c(0x1df)]();}),this['_session'][_0x31ce08(0x2a5)]['pipe'](takeUntil(this['dispose$']))[_0x31ce08(0x1d4)](_0x338382=>{const _0x1c7a7b=_0x31ce08,_0x15ebc0=_0x338382[_0x1c7a7b(0x364)];if(_0x15ebc0===CollaborationEvent['UPDATE_CURSOR'])this['_onCursorUpdate'](_0x338382);if(_0x15ebc0===CollaborationEvent['USERS_LEAVE'])this['_onCursorDelete'](_0x338382);}),this[_0x31ce08(0x2d3)](this[_0x31ce08(0x3b2)]['onCommandExecuted'](_0x3dfca0=>{const _0x3c98d2=_0x31ce08,_0x30cae5=_0x3dfca0[_0x3c98d2(0x300)];if(_0x30cae5==null)return;if(this[_0x3c98d2(0x29d)]&&_0x3dfca0['id']===SetTextSelectionsOperation['id']&&_0x30cae5[_0x3c98d2(0x254)]===this[_0x3c98d2(0x2e4)]&&_0x30cae5['isEditing']===![]&&_0x30cae5['ranges'][_0x3c98d2(0x2e8)]>0x0)this[_0x3c98d2(0x33b)](_0x30cae5[_0x3c98d2(0x285)]);})),this[_0x31ce08(0x346)][_0x31ce08(0x301)][_0x31ce08(0x1de)](takeUntil(this[_0x31ce08(0x323)]))['subscribe'](_0x46a2e7=>{const _0xe275c=_0x31ce08;if((_0x46a2e7===null||_0x46a2e7===void 0x0?void 0x0:_0x46a2e7['unitID'])!==this[_0xe275c(0x2e4)])return;const _0x5c50cb={'eventID':CollaborationEvent['UPDATE_CURSOR'],'data':_0x46a2e7};this[_0xe275c(0x3b3)](_0x5c50cb);}),this[_0x31ce08(0x2d3)](this[_0x31ce08(0x3b2)][_0x31ce08(0x289)](_0x532880=>{const _0x5272ca=_0x31ce08;if(_0x532880[_0x5272ca(0x300)]==null)return;const _0x48a901=_0x532880[_0x5272ca(0x300)];if(_0x532880['id']!==RichTextEditingMutation['id']||_0x48a901['unitId']!==this[_0x5272ca(0x2e4)])return;const _0x337891={'id':_0x5272ca(0x3c3),'params':_0x48a901},_0x52729e=this[_0x5272ca(0x2b2)];for(const [_0x3156d6,_0x3e5bf6]of _0x52729e){const _0xf64a41={'id':_0x5272ca(0x3c3),'params':{'unitId':this[_0x5272ca(0x2e4)],'actions':null,'textRanges':_0x3e5bf6[_0x5272ca(0x285)]}},_0x18804c=this['_transformService'][_0x5272ca(0x27b)](_0x337891,_0xf64a41,![]);if(isTransformMutationFailure(_0x18804c))throw _0x18804c[_0x5272ca(0x23e)];_0x52729e[_0x5272ca(0x224)](_0x3156d6,{..._0x3e5bf6,'ranges':_0x18804c[_0x5272ca(0x2ae)][_0x5272ca(0x300)]['textRanges']});}queueMicrotask(()=>{const _0x2ee105=_0x5272ca;this[_0x2ee105(0x292)][_0x2ee105(0x2c3)](_0x52729e);});}));}[_0x17a902(0x3b3)](_0x5215dd){const _0x19ed2f=_0x17a902;var _0x10672f,_0x1daa76;const {memberID:_0x287b69,selection:_0x320341}=_0x5215dd['data'],_0x25e4ce=deserializeDocTextRanges(_0x320341),_0x50b228=(_0x10672f=(_0x1daa76=this['_memberService'][_0x19ed2f(0x32b)](this['unitID'],_0x287b69))===null||_0x1daa76===void 0x0?void 0x0:_0x1daa76[_0x19ed2f(0x212)])!==null&&_0x10672f!==void 0x0?_0x10672f:_0x19ed2f(0x3c2),_0x2dcc4c={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x287b69),'name':_0x50b228,'ranges':_0x25e4ce},_0x2a5ed3=this[_0x19ed2f(0x2b2)];_0x2a5ed3['set'](_0x287b69,_0x2dcc4c),this[_0x19ed2f(0x292)][_0x19ed2f(0x2c3)](_0x2a5ed3);}[_0x17a902(0x3b7)](_0x528ad1){const _0x264e14=_0x17a902,{memberID:_0x26cc91}=_0x528ad1['data'],_0x2ad7c1=this[_0x264e14(0x2b2)];_0x2ad7c1[_0x264e14(0x27c)](_0x26cc91),this[_0x264e14(0x292)]['next'](_0x2ad7c1);}['_toggleOnline'](){const _0x52d977=_0x17a902;var _0x2a5125;this['_online']=!![];if(((_0x2a5125=this[_0x52d977(0x3a4)][_0x52d977(0x38e)]())===null||_0x2a5125===void 0x0?void 0x0:_0x2a5125[_0x52d977(0x2d8)]())!==this[_0x52d977(0x2e4)])return;const _0x4a5df6=this[_0x52d977(0x21e)]['get'](DocSelectionManagerService)['getDocRanges']();if(Array[_0x52d977(0x1f9)](_0x4a5df6)&&_0x4a5df6[_0x52d977(0x2e8)]>0x0)this[_0x52d977(0x33b)](_0x4a5df6);}['_toggleOffline'](){this['_online']=![];}};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 _0x594365=[],_0x506a43=![];return _0x78559f=>{const _0x21db53=_0x155c;_0x594365[_0x21db53(0x36a)](_0x78559f),!_0x506a43&&(_0x506a43=!![],setTimeout(()=>{const _0x3f1a58=_0x21db53;_0x594365[_0x3f1a58(0x226)](_0x13ccee=>_0x13ccee()),_0x594365=[],_0x506a43=![];}));};};let SheetCollabCursorEntity=class SheetCollabCursorEntity extends RxDisposable{get[_0x17a902(0x2b2)](){const _0x33b85a=_0x17a902;return this[_0x33b85a(0x292)]['getValue']();}get[_0x17a902(0x1e8)](){const _0x14d44a=_0x17a902;return this['_roomMembers$'][_0x14d44a(0x38a)]();}constructor(_0x151cbb,_0x4ffce8,_0x53d403,_0x52dd4d,_0x171280,_0x30e7c2,_0x2de434,_0x5eacb1){const _0x47af71=_0x17a902;super(),this[_0x47af71(0x2e4)]=_0x151cbb,this['_session']=_0x4ffce8,this[_0x47af71(0x21e)]=_0x53d403,this[_0x47af71(0x1dd)]=_0x52dd4d,this[_0x47af71(0x342)]=_0x171280,this[_0x47af71(0x3a4)]=_0x30e7c2,this[_0x47af71(0x3b2)]=_0x2de434,this[_0x47af71(0x310)]=_0x5eacb1,_defineProperty(this,_0x47af71(0x29d),![]),_defineProperty(this,_0x47af71(0x223),![]),_defineProperty(this,_0x47af71(0x292),new BehaviorSubject(new Map())),_defineProperty(this,_0x47af71(0x383),this[_0x47af71(0x292)]['asObservable']()),_defineProperty(this,_0x47af71(0x1c2),new BehaviorSubject([])),_defineProperty(this,_0x47af71(0x216),this[_0x47af71(0x1c2)][_0x47af71(0x1de)](debounceTime(DEBOUNCE_TIME))),_defineProperty(this,'_updateLocalCursor',debounce((_0x41c1ba,_0x16bfa3)=>{const _0x197e07=_0x47af71,_0x588369={'eventID':CollaborationEvent['UPDATE_CURSOR'],'data':{'unitID':this[_0x197e07(0x2e4)],'memberID':this[_0x197e07(0x1a7)][_0x197e07(0x24f)](),'selection':serializeRangeWithSheet(_0x41c1ba,_0x16bfa3[_0x197e07(0x3c0)])}};this[_0x197e07(0x1a7)][_0x197e07(0x2b1)](_0x588369,this[_0x197e07(0x2e4)]);},SHARE_LOCAL_DEBOUNCE_TIME));}[_0x17a902(0x2e6)](){const _0x15e4d5=_0x17a902;super[_0x15e4d5(0x2e6)](),this[_0x15e4d5(0x292)][_0x15e4d5(0x2c3)](new Map()),this[_0x15e4d5(0x292)][_0x15e4d5(0x270)](),this[_0x15e4d5(0x1c2)][_0x15e4d5(0x2c3)]([]),this[_0x15e4d5(0x1c2)]['complete']();}[_0x17a902(0x1bc)](){const _0x4795b=_0x17a902;if(this[_0x4795b(0x223)])return;this['_init']=!![],this[_0x4795b(0x1a7)][_0x4795b(0x31b)]['pipe'](takeUntil(this[_0x4795b(0x323)]))[_0x4795b(0x1d4)](_0x4bc220=>{const _0xffc17=_0x4795b;if(_0x4bc220===SessionStatus[_0xffc17(0x3c1)])this['_toggleOnline']();else this[_0xffc17(0x1df)]();}),this[_0x4795b(0x1a7)][_0x4795b(0x2a5)][_0x4795b(0x1de)](takeUntil(this[_0x4795b(0x323)]))[_0x4795b(0x1d4)](_0x218b75=>{const _0x4af70b=_0x4795b,_0x5d2ee7=_0x218b75[_0x4af70b(0x364)];if(_0x5d2ee7===CollaborationEvent[_0x4af70b(0x242)])this['_onCursorUpdate'](_0x218b75);if(_0x5d2ee7===CollaborationEvent['USERS_LEAVE'])this[_0x4af70b(0x3b7)](_0x218b75);}),this[_0x4795b(0x1ca)](),this[_0x4795b(0x2d3)](this[_0x4795b(0x3b2)][_0x4795b(0x289)](_0x95fc22=>{const _0x2948df=_0x4795b;if(this['_online']&&_0x95fc22['id']===SetSelectionsOperation['id']&&_0x95fc22[_0x2948df(0x300)][_0x2948df(0x254)]===this[_0x2948df(0x2e4)]){const _0x5524b4=_0x95fc22[_0x2948df(0x300)];this[_0x2948df(0x33b)](_0x5524b4[_0x2948df(0x32f)],_0x5524b4[_0x2948df(0x277)][0x0]);}}));}[_0x17a902(0x3b3)](_0xd23409){const _0x17343c=_0x17a902;var _0x16d90a,_0xbba9a3;const {memberID:_0x3ae663,selection:_0x9cdaf8}=_0xd23409[_0x17343c(0x2b9)],{sheetName:_0x4034e8,range:_0x281bb6}=deserializeRangeWithSheet(_0x9cdaf8),_0x2664f9={'name':(_0x16d90a=(_0xbba9a3=this[_0x17343c(0x342)]['getMember'](this[_0x17343c(0x2e4)],_0x3ae663))===null||_0xbba9a3===void 0x0?void 0x0:_0xbba9a3['name'])!==null&&_0x16d90a!==void 0x0?_0x16d90a:'Unknown\x20user','range':this[_0x17343c(0x3bf)](_0x4034e8,_0x281bb6),'sheetID':_0x4034e8,'color':this[_0x17343c(0x1dd)]['assignAColorForMemberID'](_0x3ae663),'selection':_0x9cdaf8},_0x27eca2=this[_0x17343c(0x2b2)];_0x27eca2[_0x17343c(0x224)](_0x3ae663,_0x2664f9),this[_0x17343c(0x292)]['next'](_0x27eca2);}[_0x17a902(0x3b7)](_0x6ba131){const _0x48ff0a=_0x17a902,{memberID:_0x2ef93c}=_0x6ba131['data'],_0x4907b8=this[_0x48ff0a(0x2b2)];_0x4907b8['delete'](_0x2ef93c),this[_0x48ff0a(0x292)][_0x48ff0a(0x2c3)](_0x4907b8);}['_getMergeRange'](_0x200db7,_0xd263a3){const _0x9538d3=_0x17a902;var _0x11596a;const _0x1e5dfa=(_0x11596a=this[_0x9538d3(0x3a4)][_0x9538d3(0x24a)](this[_0x9538d3(0x2e4)]))===null||_0x11596a===void 0x0||(_0x11596a=_0x11596a[_0x9538d3(0x393)](_0x200db7))===null||_0x11596a===void 0x0?void 0x0:_0x11596a[_0x9538d3(0x37e)]();return(_0x1e5dfa===null||_0x1e5dfa===void 0x0?void 0x0:_0x1e5dfa[_0x9538d3(0x294)](_0x5b6568=>Rectangle['contains'](_0x5b6568,_0xd263a3)))||_0xd263a3;}[_0x17a902(0x1ca)](){const _0x4ba357=_0x17a902,_0x2a2d79=new DisposableCollection(),_0x5a8dfc=createNextTick(),_0x531b03=()=>{const _0x1788da=_0x155c;_0x2a2d79['dispose']();const _0x4d2509=(_0x4302a4,_0x583909,_0x4240c4,_0x231200)=>{const _0x3c0a03=_0x155c;let _0x39904e=[];switch(_0x4302a4['id']){case EffectRefRangId[_0x3c0a03(0x399)]:_0x39904e=handleDeleteRangeMoveLeft(_0x4302a4,_0x231200);break;case EffectRefRangId[_0x3c0a03(0x37b)]:_0x39904e=handleDeleteRangeMoveUp(_0x4302a4,_0x231200);break;case EffectRefRangId[_0x3c0a03(0x2d7)]:_0x39904e=handleInsertCol(_0x4302a4,_0x231200);break;case EffectRefRangId[_0x3c0a03(0x275)]:_0x39904e=handleInsertRangeMoveDown(_0x4302a4,_0x231200);break;case EffectRefRangId[_0x3c0a03(0x328)]:_0x39904e=handleInsertRangeMoveRight(_0x4302a4,_0x231200);break;case EffectRefRangId['InsertRowCommandId']:_0x39904e=handleInsertRow(_0x4302a4,_0x231200);break;case EffectRefRangId['MoveRangeCommandId']:_0x39904e=handleMoveRange(_0x4302a4,_0x231200);break;case EffectRefRangId[_0x3c0a03(0x32a)]:_0x39904e=handleIRemoveCol(_0x4302a4,_0x231200);break;case EffectRefRangId[_0x3c0a03(0x27d)]:_0x39904e=handleIRemoveRow(_0x4302a4,_0x231200);break;}const _0x52fb52=runRefRangeMutations(_0x39904e,_0x231200),_0x192600=this[_0x3c0a03(0x2b2)][_0x3c0a03(0x1cf)](_0x583909);if(_0x192600&&_0x52fb52){const _0x4e6080={..._0x192600,'range':_0x52fb52};this[_0x3c0a03(0x2b2)]['set'](_0x583909,_0x4e6080),_0x5a8dfc(()=>{const _0x88c573=_0x3c0a03,_0x229fbb=this[_0x88c573(0x310)][_0x88c573(0x1d5)](_0x52fb52,_0x323a38=>{const _0x53fdaa=_0x88c573;return _0x229fbb[_0x53fdaa(0x2e6)](),_0x4d2509(_0x323a38,_0x583909,_0x4240c4,_0x52fb52);});_0x2a2d79[_0x88c573(0x3ab)](_0x229fbb);});}return{'redos':[],'undos':[]};};this[_0x1788da(0x2b2)][_0x1788da(0x226)]((_0x442351,_0x49c94b)=>{const _0x269c69=_0x1788da,{range:_0x4d35ea,sheetID:_0x5a60c4}=_0x442351,_0x5b4fb5=this[_0x269c69(0x310)][_0x269c69(0x1d5)](_0x4d35ea,_0x21d8ad=>{return _0x5b4fb5['dispose'](),_0x4d2509(_0x21d8ad,_0x49c94b,_0x5a60c4,_0x4d35ea);});_0x2a2d79[_0x269c69(0x3ab)](_0x5b4fb5);});};this[_0x4ba357(0x2d3)](toDisposable(this[_0x4ba357(0x292)]['subscribe'](()=>{_0x531b03();})));}[_0x17a902(0x204)](){const _0x3c4d6f=_0x17a902;var _0x25062b,_0x2936b3;this[_0x3c4d6f(0x29d)]=!![];if(((_0x25062b=this[_0x3c4d6f(0x3a4)][_0x3c4d6f(0x38e)]())===null||_0x25062b===void 0x0?void 0x0:_0x25062b[_0x3c4d6f(0x2d8)]())!==this[_0x3c4d6f(0x2e4)])return;const _0x420a8c=(_0x2936b3=this[_0x3c4d6f(0x21e)][_0x3c4d6f(0x1cf)](SheetsSelectionsService)['getCurrentSelections']())===null||_0x2936b3===void 0x0?void 0x0:_0x2936b3[0x0],_0x3ed922=this[_0x3c4d6f(0x3a4)]['getCurrentUnitForType'](UniverInstanceType[_0x3c4d6f(0x22b)])[_0x3c4d6f(0x2bb)]();if(_0x420a8c&&_0x3ed922)this[_0x3c4d6f(0x33b)](_0x3ed922[_0x3c4d6f(0x3bb)](),_0x420a8c);}[_0x17a902(0x1df)](){const _0x5c9faa=_0x17a902;this[_0x5c9faa(0x29d)]=![];}};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(_0x2b7d91,_0x21c8d6,_0x54da32){const _0x3db3aa=_0x17a902;super(),this['_univerInstanceService']=_0x2b7d91,this[_0x3db3aa(0x21e)]=_0x21c8d6,this[_0x3db3aa(0x2df)]=_0x54da32,_defineProperty(this,_0x3db3aa(0x240),new Map()),_defineProperty(this,_0x3db3aa(0x2ec),new Subject()),this[_0x3db3aa(0x223)]();}[_0x17a902(0x2e6)](){const _0x490b7d=_0x17a902;super[_0x490b7d(0x2e6)](),this['_entityInit$']['complete'](),this[_0x490b7d(0x240)][_0x490b7d(0x226)](_0x5d7ecf=>_0x5d7ecf['dispose']());}[_0x17a902(0x2e7)](_0x39ea57){const _0x3d62a6=_0x17a902;if(this[_0x3d62a6(0x240)]['has'](_0x39ea57))return this[_0x3d62a6(0x240)][_0x3d62a6(0x1cf)](_0x39ea57)['cursorInfo$'];return this[_0x3d62a6(0x2ec)][_0x3d62a6(0x1de)](filter(_0x278383=>_0x278383[_0x3d62a6(0x2e4)]===_0x39ea57),switchMap(_0x342df7=>_0x342df7[_0x3d62a6(0x383)]));}[_0x17a902(0x223)](){const _0x5c9ea4=_0x17a902;this[_0x5c9ea4(0x3a4)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x5c9ea4(0x22b)])[_0x5c9ea4(0x1de)](takeUntil(this[_0x5c9ea4(0x323)]))[_0x5c9ea4(0x1d4)](async _0x2a8148=>{const _0x375770=_0x5c9ea4,_0x2bc948=_0x2a8148['getUnitId'](),_0x46f531=await this[_0x375770(0x361)](_0x2bc948);this[_0x375770(0x2ec)][_0x375770(0x2c3)](_0x46f531),this[_0x375770(0x240)][_0x375770(0x224)](_0x2bc948,_0x46f531);}),this[_0x5c9ea4(0x3a4)][_0x5c9ea4(0x359)](UniverInstanceType['UNIVER_DOC'])['pipe'](takeUntil(this[_0x5c9ea4(0x323)]))[_0x5c9ea4(0x1de)](filter(_0xaeaf3=>{const _0x3f20ee=_0x5c9ea4;return!_0xaeaf3[_0x3f20ee(0x2d8)]()[_0x3f20ee(0x1ef)]('__');}))['subscribe'](async _0x18cd59=>{const _0x4152b6=_0x5c9ea4,_0x55bcba=_0x18cd59[_0x4152b6(0x2d8)](),_0x1359ba=await this[_0x4152b6(0x2bc)](_0x55bcba);this[_0x4152b6(0x2ec)]['next'](_0x1359ba),this[_0x4152b6(0x240)]['set'](_0x55bcba,_0x1359ba);}),_0x576c72(this[_0x5c9ea4(0x3a4)][_0x5c9ea4(0x2af)](UniverInstanceType[_0x5c9ea4(0x1a6)]),this[_0x5c9ea4(0x3a4)][_0x5c9ea4(0x2af)](UniverInstanceType[_0x5c9ea4(0x22b)]))[_0x5c9ea4(0x1de)](takeUntil(this[_0x5c9ea4(0x323)]))[_0x5c9ea4(0x1d4)](_0x249ef4=>{const _0x25002c=_0x5c9ea4,_0x5a5cfc=_0x249ef4[_0x25002c(0x2d8)](),_0x2db1d4=this[_0x25002c(0x240)]['get'](_0x5a5cfc);_0x2db1d4&&(_0x2db1d4[_0x25002c(0x2e6)](),this[_0x25002c(0x240)][_0x25002c(0x27c)](_0x5a5cfc));});}async[_0x17a902(0x361)](_0x5707ff){const _0xa9ef5=_0x17a902,_0x490ae2=await this[_0xa9ef5(0x2df)]['requireSession'](_0x5707ff),_0x7b67c1=this[_0xa9ef5(0x21e)]['createInstance'](SheetCollabCursorEntity,_0x5707ff,_0x490ae2);return _0x7b67c1[_0xa9ef5(0x1bc)](),_0x7b67c1;}async['_startDocCollabCursor'](_0xa7b89b){const _0x46ab5b=_0x17a902,_0x45abaa=await this[_0x46ab5b(0x2df)][_0x46ab5b(0x33c)](_0xa7b89b),_0x4c8898=this[_0x46ab5b(0x21e)][_0x46ab5b(0x3b0)](DocCollabCursorEntity,_0xa7b89b,_0x45abaa);return _0x4c8898[_0x46ab5b(0x1bc)](),_0x4c8898;}};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(_0x3cd7d1,_0x274245){const _0x1b121d=_0x17a902;var _0x4902f4,_0x16ebc2,_0x548b7a;let {radius:_0x1d1ff8,width:_0x556452,height:_0xbcdd19}=_0x274245;_0x1d1ff8=(_0x4902f4=_0x1d1ff8)!==null&&_0x4902f4!==void 0x0?_0x4902f4:0x0,_0x556452=(_0x16ebc2=_0x556452)!==null&&_0x16ebc2!==void 0x0?_0x16ebc2:0x1e,_0xbcdd19=(_0x548b7a=_0xbcdd19)!==null&&_0x548b7a!==void 0x0?_0x548b7a:0x1e;let _0x5ca81d=0x0,_0x502dbb=0x0,_0x51aed9=0x0;_0x5ca81d=_0x502dbb=_0x51aed9=Math['min'](_0x1d1ff8,_0x556452/0x2,_0xbcdd19/0x2),_0x3cd7d1[_0x1b121d(0x293)](),_0x3cd7d1[_0x1b121d(0x25e)](_0x5ca81d,0x0),_0x3cd7d1[_0x1b121d(0x29b)](_0x556452-_0x502dbb,0x0),_0x3cd7d1[_0x1b121d(0x2fc)](_0x556452-_0x502dbb,_0x502dbb,_0x502dbb,Math['PI']*0x3/0x2,0x0,![]),_0x3cd7d1['lineTo'](_0x556452,_0xbcdd19-_0x51aed9),_0x3cd7d1[_0x1b121d(0x2fc)](_0x556452-_0x51aed9,_0xbcdd19-_0x51aed9,_0x51aed9,0x0,Math['PI']/0x2,![]),_0x3cd7d1[_0x1b121d(0x29b)](0x0,_0xbcdd19),_0x3cd7d1['lineTo'](0x0,_0x5ca81d),_0x3cd7d1[_0x1b121d(0x2fc)](_0x5ca81d,_0x5ca81d,_0x5ca81d,Math['PI'],Math['PI']*0x3/0x2,![]),_0x3cd7d1['closePath']();if(_0x274245[_0x1b121d(0x252)]){_0x3cd7d1[_0x1b121d(0x200)](),_0x3cd7d1['fillStyle']=_0x274245['fill'];if(_0x274245[_0x1b121d(0x3ac)]===_0x1b121d(0x26a))_0x3cd7d1['fill'](_0x1b121d(0x26a));else _0x3cd7d1[_0x1b121d(0x252)]();_0x3cd7d1[_0x1b121d(0x1cc)]();}}var TextBubbleShape=class TextBubbleShape extends Shape{constructor(_0x1aa773,_0x3af5b1){const _0xbff852=_0x17a902;super(_0x1aa773,_0x3af5b1),_defineProperty(this,_0xbff852(0x2a9),void 0x0),_defineProperty(this,_0xbff852(0x3a5),void 0x0),this[_0xbff852(0x2a9)]=_0x3af5b1===null||_0x3af5b1===void 0x0?void 0x0:_0x3af5b1[_0xbff852(0x2a9)],this['text']=_0x3af5b1===null||_0x3af5b1===void 0x0?void 0x0:_0x3af5b1[_0xbff852(0x3a5)];}static[_0x17a902(0x2dd)](_0x4c6798,_0x4ee9f8){const _0x1f1c19=_0x17a902,{text:_0x13bbf1,color:_0x37a506}=_0x4ee9f8;_0x4c6798[_0x1f1c19(0x200)](),_0x4c6798['font']=_0x1f1c19(0x333);const _0x496d18=_0x4c6798[_0x1f1c19(0x25c)](_0x13bbf1)[_0x1f1c19(0x2ed)];drawBubble(_0x4c6798,{'height':0x14,'radius':0x4,'width':Math['min'](_0x496d18+0x2*0x4,0xc8),'fill':_0x37a506,'evented':![]}),_0x4c6798[_0x1f1c19(0x1cd)]=_0x1f1c19(0x2f2);const _0x2637d1=0x4,_0x14cf04=0x14-0x5,_0xdb4bf2=0xc8-0x2*0x4;if(_0x496d18>_0xdb4bf2){let _0xe7cac5='',_0xe2b7b5=0x0;for(const _0x306f79 of _0x13bbf1){const _0x1bad1c=_0x4c6798[_0x1f1c19(0x25c)](_0x306f79)[_0x1f1c19(0x2ed)];if(_0xe2b7b5+_0x1bad1c<=_0xdb4bf2-_0x4c6798['measureText'](_0x1f1c19(0x3a6))[_0x1f1c19(0x2ed)])_0xe7cac5+=_0x306f79,_0xe2b7b5+=_0x1bad1c;else{_0xe7cac5+='...';break;}}_0x4c6798[_0x1f1c19(0x3c5)](_0xe7cac5,_0x2637d1,_0x14cf04);}else _0x4c6798[_0x1f1c19(0x3c5)](_0x13bbf1,_0x2637d1,_0x14cf04);_0x4c6798[_0x1f1c19(0x1cc)]();}['_draw'](_0x294c2b){const _0x5bdae7=_0x17a902;TextBubbleShape[_0x5bdae7(0x2dd)](_0x294c2b,this);}};const COLLAB_TEXT_ANCHOR_KEY_PREFIX=_0x17a902(0x1b8),COLLAB_TEXT_RANGE_KEY_PREFIX='collab-text-range-',COLLAB_RECT_RANGE_KEY_PREFIX=_0x17a902(0x227),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=_0x17a902(0x2a0);var DocCollabCursor=class{constructor(_0x196369,_0x13971b,_0x53b2eb,_0x4681b5){const _0x5134fe=_0x17a902;this[_0x5134fe(0x1be)]=_0x196369,this[_0x5134fe(0x378)]=_0x13971b,this['_docSkeleton']=_0x53b2eb,this[_0x5134fe(0x309)]=_0x4681b5,_defineProperty(this,_0x5134fe(0x2a6),[]),_defineProperty(this,_0x5134fe(0x1eb),null),_defineProperty(this,_0x5134fe(0x238),null),_defineProperty(this,_0x5134fe(0x317),null),_defineProperty(this,_0x5134fe(0x236),null),_defineProperty(this,'_eventUnsubscribe',null),this[_0x5134fe(0x230)]();}set[_0x17a902(0x1d0)](_0x10d76f){const _0x1c4aa2=_0x17a902;_0x10d76f?(this['_anchorDot']&&this[_0x1c4aa2(0x317)][_0x1c4aa2(0x392)](),this[_0x1c4aa2(0x238)]&&this[_0x1c4aa2(0x238)][_0x1c4aa2(0x2a4)]()):(this[_0x1c4aa2(0x317)]&&this[_0x1c4aa2(0x317)][_0x1c4aa2(0x2a4)](),this[_0x1c4aa2(0x238)]&&this['_textBubble']['hide']());}[_0x17a902(0x2e6)](){const _0x3fcc1f=_0x17a902;for(const _0x10ba77 of this[_0x3fcc1f(0x2a6)])_0x10ba77[_0x3fcc1f(0x2e6)]();if(this['_textBubble'])this[_0x3fcc1f(0x238)][_0x3fcc1f(0x2e6)]();if(this[_0x3fcc1f(0x317)])this[_0x3fcc1f(0x317)][_0x3fcc1f(0x2e6)]();if(this['_anchor'])this[_0x3fcc1f(0x1eb)][_0x3fcc1f(0x2e6)]();if(this[_0x3fcc1f(0x2cf)])this[_0x3fcc1f(0x2cf)]();}[_0x17a902(0x230)](){const _0x297ac0=_0x17a902,{_docSkeleton:_0x209401,_document:_0x877506}=this,{color:_0x2117ec,name:_0x5054b6,ranges:_0x164d59}=this[_0x297ac0(0x1be)],_0x53952b=_0x877506[_0x297ac0(0x244)](),{docsLeft:_0x43f2eb,docsTop:_0x4ba85e}=_0x53952b,_0x24ca04=new NodePositionConvertToCursor(_0x53952b,_0x209401);for(const {startOffset:_0x4b5627,endOffset:_0x3b8fe4,rangeType:_0x1681b3,segmentId:_0x237327,segmentPage:_0x5a23f8,collapsed:_0x177080,isActive:_0x52f35e}of _0x164d59){const _0x5e01b2=_0x209401[_0x297ac0(0x351)](_0x4b5627,!![],_0x237327,_0x5a23f8);let _0x2a328f=_0x209401[_0x297ac0(0x351)](_0x3b8fe4,!![],_0x237327,_0x5a23f8);if(_0x2a328f==null)_0x2a328f=_0x209401['findNodePositionByCharIndex'](_0x3b8fe4-0x1,![],_0x237327,_0x5a23f8);if(_0x52f35e){const {contentBoxPointGroup:_0x4d5068}=_0x24ca04['getRangePointData'](_0x2a328f,_0x2a328f);if(_0x4d5068[_0x297ac0(0x2e8)]===0x0)continue;this[_0x297ac0(0x1ac)](_0x2117ec,_0x4d5068,_0x43f2eb,_0x4ba85e,_0x5054b6),this['_eventUnsubscribe']=this[_0x297ac0(0x347)]();}if(_0x5e01b2&&_0x2a328f){if(_0x1681b3===DOC_RANGE_TYPE[_0x297ac0(0x326)]){var _0x2b4a4f;const {pointGroup:_0x792307}=(_0x2b4a4f=new NodePositionConvertToRectRange(_0x53952b,_0x209401)[_0x297ac0(0x34d)](_0x5e01b2,_0x2a328f))!==null&&_0x2b4a4f!==void 0x0?_0x2b4a4f:{};if(_0x792307==null||_0x792307[_0x297ac0(0x2e8)]===0x0)continue;this[_0x297ac0(0x1ae)](_0x2117ec,_0x792307,_0x43f2eb,_0x4ba85e);}else{if(!_0x177080){const {borderBoxPointGroup:_0x2f4206}=_0x24ca04[_0x297ac0(0x34d)](_0x5e01b2,_0x2a328f);if(_0x2f4206['length']===0x0)continue;this[_0x297ac0(0x1ee)](_0x2117ec,_0x2f4206,_0x43f2eb,_0x4ba85e);}}}}}['_drawAnchor'](_0x3496c9,_0x1b2647,_0x11e0be,_0x59d86e,_0x4be19c){const _0xc61bed=_0x17a902,{left:_0x494503,top:_0x59909a,height:_0x320164}=this['_getAnchorBounding'](_0x1b2647),_0x4abcf0=SELECTION_CONTROL_BORDER_BUFFER_WIDTH/this[_0xc61bed(0x27a)](),_0x275817=new Rect(COLLAB_TEXT_ANCHOR_KEY_PREFIX+generateRandomId(ID_LENGTH),{'left':_0x494503+_0x11e0be-_0x4abcf0,'top':_0x59909a+_0x59d86e,'height':_0x320164,'width':COLLAB_TEXT_ANCHOR_WIDTH,'fill':_0x3496c9||getColor(COLORS[_0xc61bed(0x295)],0x0),'strokeWidth':_0x4abcf0,'stroke':SELECTION_CONTROL_BORDER_BUFFER_COLOR,'evented':!![]});this['_anchor']=_0x275817,this[_0xc61bed(0x378)][_0xc61bed(0x1bf)](_0x275817,TEXT_RANGE_LAYER_INDEX);const _0x554a45=new Rect(COLLAB_TEXT_ANCHOR_KEY_PREFIX+generateRandomId(ID_LENGTH),{'left':_0x494503+_0x11e0be-_0x4abcf0,'top':_0x59909a+_0x59d86e-COLLAB_TEXT_ANCHOR_DOT_WIDTH/0x2,'height':COLLAB_TEXT_ANCHOR_DOT_WIDTH,'width':COLLAB_TEXT_ANCHOR_DOT_WIDTH,'fill':_0x3496c9||getColor(COLORS[_0xc61bed(0x295)],0x0),'strokeWidth':0x0,'stroke':_0x3496c9||getColor(COLORS[_0xc61bed(0x295)],0x0),'evented':![]});this['_anchorDot']=_0x554a45,this[_0xc61bed(0x378)][_0xc61bed(0x1bf)](_0x554a45,TEXT_RANGE_LAYER_INDEX);const _0xcbb23c=new TextBubbleShape(COLLAB_TEXT_ANCHOR_KEY_PREFIX+generateRandomId(ID_LENGTH),{'left':_0x494503+_0x11e0be-_0x4abcf0,'top':_0x59909a+_0x59d86e-0x14,'text':_0x4be19c,'color':_0x3496c9});this[_0xc61bed(0x238)]=_0xcbb23c,this[_0xc61bed(0x378)][_0xc61bed(0x1bf)](_0xcbb23c,TEXT_RANGE_LAYER_INDEX),this['_hover']=![];}[_0x17a902(0x347)](){const _0x1b5f2f=_0x17a902,_0x158edf=this['_anchor'][_0x1b5f2f(0x1c3)][_0x1b5f2f(0x327)](()=>{this['_hover']=!![];}),_0x32577b=this[_0x1b5f2f(0x1eb)][_0x1b5f2f(0x250)][_0x1b5f2f(0x327)](()=>{const _0x39702f=_0x1b5f2f;if(this[_0x39702f(0x236)])clearTimeout(this[_0x39702f(0x236)]);this[_0x39702f(0x236)]=setTimeout(()=>{this['_hover']=![];},0x7d0);});return()=>{const _0x3ce2f0=_0x1b5f2f;_0x158edf[_0x3ce2f0(0x1ec)](),_0x32577b['unsubscribe']();};}['_drawTextRange'](_0x29d7c3,_0x1149ea,_0x1ed9b1,_0x1658e4){const _0x210885=_0x17a902,_0x9d6b7c=0.2,_0x2dddf2=new ColorKit(_0x29d7c3)[_0x210885(0x21b)](_0x9d6b7c)[_0x210885(0x3c7)](),_0x529f59=new RegularPolygon(COLLAB_TEXT_RANGE_KEY_PREFIX+generateRandomId(ID_LENGTH),{'pointsGroup':_0x1149ea,'fill':_0x2dddf2||getColor(COLORS['black'],_0x9d6b7c),'left':_0x1ed9b1,'top':_0x1658e4,'evented':![],'debounceParentDirty':![]});this[_0x210885(0x2a6)][_0x210885(0x36a)](_0x529f59),this['_scene'][_0x210885(0x1bf)](_0x529f59,TEXT_RANGE_LAYER_INDEX);}[_0x17a902(0x1ae)](_0x4f9c48,_0x2d15d6,_0xf26ae8,_0x27f6f3){const _0x588281=_0x17a902,_0x590aa5=0.2,_0x4074a0=new ColorKit(_0x4f9c48)['setAlpha'](_0x590aa5)[_0x588281(0x3c7)](),_0x138cab=new RegularPolygon(COLLAB_RECT_RANGE_KEY_PREFIX+generateRandomId(ID_LENGTH),{'pointsGroup':_0x2d15d6,'fill':_0x4074a0||getColor(COLORS['black'],_0x590aa5),'left':_0xf26ae8,'top':_0x27f6f3,'evented':![],'debounceParentDirty':![]});this['_shapes'][_0x588281(0x36a)](_0x138cab),this['_scene'][_0x588281(0x1bf)](_0x138cab,TEXT_RANGE_LAYER_INDEX);}[_0x17a902(0x33a)](_0x52a813){const _0x4faf6f=_0x52a813[0x0],_0x10ef76=_0x4faf6f[0x0],_0xa0ecab=_0x4faf6f[0x2],{x:_0x9e494d,y:_0x2853b5}=_0x10ef76,{x:_0x5715b3,y:_0x3ecc8b}=_0xa0ecab;return{'left':_0x9e494d,'top':_0x2853b5,'width':_0x5715b3-_0x9e494d,'height':_0x3ecc8b-_0x2853b5};}[_0x17a902(0x27a)](){const _0x234fdb=_0x17a902,{scaleX:_0x36cd8e,scaleY:_0x4bbe81}=this['_scene'][_0x234fdb(0x1fd)]();return Math['max'](_0x36cd8e,_0x4bbe81);}};let DocCollabCursorRenderController=class DocCollabCursorRenderController extends RxDisposable{constructor(_0x2d78bd,_0x2fe189,_0x13dcb8,_0x50e4cb,_0x2a9be0){const _0x2b88aa=_0x17a902;super(),this['_context']=_0x2d78bd,this['_docSkeletonManagerService']=_0x2fe189,this[_0x2b88aa(0x2d5)]=_0x13dcb8,this[_0x2b88aa(0x3b2)]=_0x50e4cb,this['_themeService']=_0x2a9be0,_defineProperty(this,'_cursorShapes',[]),_defineProperty(this,'_cursors',[]),this[_0x2b88aa(0x223)]();}['_init'](){const _0x50d7ab=_0x17a902,_0x443546=this['_context'][_0x50d7ab(0x254)],_0x4cd243=this[_0x50d7ab(0x281)];this['disposeWithMe'](combineLatest([this[_0x50d7ab(0x2d5)]['getCollabCursors$'](_0x443546),this['_themeService']['currentTheme$']])[_0x50d7ab(0x1de)](map(([_0x544d86,_0xe06086])=>({'skeleton':_0x4cd243['getSkeleton'](),'cursors':[..._0x544d86[_0x50d7ab(0x357)]()][_0x50d7ab(0x258)](_0x461a4c=>({..._0x461a4c,'color':this[_0x50d7ab(0x2ad)][_0x50d7ab(0x371)](_0x461a4c[_0x50d7ab(0x2a9)])}))})))[_0x50d7ab(0x1d4)](_0x5be45c=>{const _0x5157a8=_0x50d7ab;this[_0x5157a8(0x1b5)]();if(_0x5be45c){const {skeleton:_0x131380,cursors:_0x652655}=_0x5be45c;this[_0x5157a8(0x1f7)](_0x131380,_0x652655);}})),this[_0x50d7ab(0x353)](),this['_initCommandExecutedListener']();}[_0x17a902(0x1f7)](_0x5d8568,_0x11516a){const _0x42c0b0=_0x17a902,{scene:_0x285526,mainComponent:_0x132d0f}=this['_context'];this['_cursorShapes']=_0x11516a[_0x42c0b0(0x207)](_0x4c0c90=>new DocCollabCursor(_0x4c0c90,_0x285526,_0x5d8568,_0x132d0f)),this[_0x42c0b0(0x245)]=_0x11516a;}[_0x17a902(0x381)](){const _0x190b29=_0x17a902;this[_0x190b29(0x1b5)]();const {scene:_0x50d71a,mainComponent:_0x38805d}=this['_context'],_0x269b1f=this[_0x190b29(0x281)][_0x190b29(0x305)]();this[_0x190b29(0x217)]=this[_0x190b29(0x245)]['map'](_0x112421=>new DocCollabCursor(_0x112421,_0x50d71a,_0x269b1f,_0x38805d));}[_0x17a902(0x1b5)](){const _0x14a2e9=_0x17a902;this[_0x14a2e9(0x217)]['forEach'](_0x3a703f=>_0x3a703f['dispose']()),this[_0x14a2e9(0x217)]=[];}['_initCommandExecutedListener'](){const _0x41078a=_0x17a902,_0x51d162=[SetDocZoomRatioOperation['id']];this['disposeWithMe'](this[_0x41078a(0x3b2)][_0x41078a(0x289)](_0x4028b9=>{const _0x5b107f=_0x41078a;if(_0x51d162['includes'](_0x4028b9['id'])&&_0x4028b9[_0x5b107f(0x300)][_0x5b107f(0x254)]===this[_0x5b107f(0x29a)][_0x5b107f(0x254)])this[_0x5b107f(0x381)]();}));}[_0x17a902(0x353)](){const _0x48ae9d=_0x17a902;this[_0x48ae9d(0x2d3)](fromEventSubject(this[_0x48ae9d(0x29a)][_0x48ae9d(0x319)]['onTransformChange$'])['pipe'](_0x47643b(_0x1e419a=>_0x1e419a[_0x48ae9d(0x391)]===TRANSFORM_CHANGE_OBSERVABLE_TYPE[_0x48ae9d(0x39e)]),throttleTime(0x10))['subscribe'](()=>{const _0x181547=_0x48ae9d;this[_0x181547(0x381)]();}));}};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(_0x14e9d3,_0xcf6a62){const _0x30de47=_0x17a902;super(_0x14e9d3,_0xcf6a62),_defineProperty(this,_0x30de47(0x220),void 0x0),_defineProperty(this,_0x30de47(0x350),![]),_defineProperty(this,_0x30de47(0x1d6),void 0x0),_defineProperty(this,_0x30de47(0x2be),''),_defineProperty(this,_0x30de47(0x315),_0x30de47(0x23c)),_defineProperty(this,_0x30de47(0x23a),void 0x0),_defineProperty(this,'_showText',void 0x0),_defineProperty(this,_0x30de47(0x38d),void 0x0),_defineProperty(this,'_highlightSecond',0x4),_defineProperty(this,_0x30de47(0x2eb),void 0x0),_defineProperty(this,'_blinkIntervalTimer',void 0x0),_defineProperty(this,'_isBlinkVisible',!![]),_defineProperty(this,_0x30de47(0x274),0x0);if(_0xcf6a62){var _0x5837d0;this[_0x30de47(0x395)](_0xcf6a62);if(_0xcf6a62[_0x30de47(0x2b6)]&&((_0x5837d0=_0xcf6a62[_0x30de47(0x370)])!==null&&_0x5837d0!==void 0x0?_0x5837d0:this[_0x30de47(0x2bd)])){var _0x3864a1;this[_0x30de47(0x25f)]((_0x3864a1=_0xcf6a62[_0x30de47(0x370)])!==null&&_0x3864a1!==void 0x0?_0x3864a1:this[_0x30de47(0x2bd)]);}}this[_0x30de47(0x1c3)]['subscribeEvent'](()=>this[_0x30de47(0x395)]({'hovered':!![]})),this['onPointerLeave$'][_0x30de47(0x327)](()=>this[_0x30de47(0x395)]({'hovered':![]}));}['setOffsetY'](_0x2261d0){const _0x1afcec=_0x17a902;this[_0x1afcec(0x274)]=_0x2261d0;}[_0x17a902(0x395)](_0xf227b){const _0x4196f8=_0x17a902;var _0xee9320,_0x485c6f,_0x3295f9,_0x1a52f4,_0x252be4,_0x5a847d,_0x4a6e2a;this['_color']=(_0xee9320=_0xf227b[_0x4196f8(0x2a9)])!==null&&_0xee9320!==void 0x0?_0xee9320:this[_0x4196f8(0x220)],this[_0x4196f8(0x350)]=(_0x485c6f=_0xf227b[_0x4196f8(0x232)])!==null&&_0x485c6f!==void 0x0?_0x485c6f:this[_0x4196f8(0x350)],this[_0x4196f8(0x1d6)]=(_0x3295f9=_0xf227b[_0x4196f8(0x3c0)])!==null&&_0x3295f9!==void 0x0?_0x3295f9:this[_0x4196f8(0x1d6)],this[_0x4196f8(0x2be)]=(_0x1a52f4=_0xf227b[_0x4196f8(0x212)])!==null&&_0x1a52f4!==void 0x0?_0x1a52f4:this[_0x4196f8(0x2be)],this['_labelPosition']=(_0x252be4=_0xf227b['labelPosition'])!==null&&_0x252be4!==void 0x0?_0x252be4:this[_0x4196f8(0x315)],this[_0x4196f8(0x23a)]=(_0x5a847d=_0xf227b[_0x4196f8(0x1a5)])!==null&&_0x5a847d!==void 0x0?_0x5a847d:this['_backgroundColor'],this[_0x4196f8(0x3aa)]=(_0x4a6e2a=_0xf227b[_0x4196f8(0x20c)])!==null&&_0x4a6e2a!==void 0x0?_0x4a6e2a:this[_0x4196f8(0x3aa)];if(_0xf227b[_0x4196f8(0x370)]!==void 0x0)this['_highlightSecond']=_0xf227b[_0x4196f8(0x370)];if(_0xf227b[_0x4196f8(0x2b6)]!==void 0x0)this['_highlight']=_0xf227b[_0x4196f8(0x2b6)];if(_0xf227b[_0x4196f8(0x249)]!==void 0x0)this[_0x4196f8(0x274)]=_0xf227b[_0x4196f8(0x249)];this['transformByState']({'width':_0xf227b[_0x4196f8(0x2ed)],'height':_0xf227b[_0x4196f8(0x2e5)]});}[_0x17a902(0x27f)](_0x1207db){const _0x59c46c=_0x17a902,{row:_0x20c874,column:_0x4c788d}=_0x1207db;if(_0x20c874>=this[_0x59c46c(0x1d6)][_0x59c46c(0x386)]&&_0x20c874<=this[_0x59c46c(0x1d6)][_0x59c46c(0x37f)]&&_0x4c788d>=this[_0x59c46c(0x1d6)][_0x59c46c(0x369)]&&_0x4c788d<=this[_0x59c46c(0x1d6)][_0x59c46c(0x28c)]){this[_0x59c46c(0x395)]({'hovered':!![]});return;}this[_0x59c46c(0x395)]({'hovered':![]});}['_startBlinking'](_0x212cc3){const _0x33ee3e=_0x17a902;this[_0x33ee3e(0x1c0)](),this[_0x33ee3e(0x1cb)]=!![],this['_blinkIntervalTimer']=window[_0x33ee3e(0x2ab)](()=>{const _0x39e0e7=_0x33ee3e;this[_0x39e0e7(0x1cb)]=!this[_0x39e0e7(0x1cb)],this[_0x39e0e7(0x1b3)](!![]);},0x1f4),this['_blinkTimer']=window[_0x33ee3e(0x2a8)](()=>{const _0x1bfff4=_0x33ee3e;this[_0x1bfff4(0x1c0)](),this[_0x1bfff4(0x1cb)]=!![],this[_0x1bfff4(0x1b3)](!![]);},_0x212cc3*0x3e8);}['_stopBlinking'](){const _0x33f74e=_0x17a902;this['_blinkIntervalTimer']&&(window[_0x33f74e(0x228)](this['_blinkIntervalTimer']),this[_0x33f74e(0x248)]=void 0x0),this['_blinkTimer']&&(window[_0x33f74e(0x234)](this[_0x33f74e(0x2eb)]),this[_0x33f74e(0x2eb)]=void 0x0);}[_0x17a902(0x26f)](_0x24bbcc){return![];}[_0x17a902(0x2e6)](){const _0x461dcf=_0x17a902;this[_0x461dcf(0x1c0)](),super['dispose']();}[_0x17a902(0x208)](_0x34f8c7){const _0x5d3004=_0x17a902;var _0x4bb97e;let _0x5846fb=this['_color'],_0x3971aa=this[_0x5d3004(0x23a)];this['_highlight']&&!this[_0x5d3004(0x1cb)]&&(_0x5846fb=this[_0x5d3004(0x246)](this[_0x5d3004(0x220)]),_0x3971aa=this[_0x5d3004(0x23a)]?this[_0x5d3004(0x246)](this['_backgroundColor']):void 0x0);Rect[_0x5d3004(0x2dd)](_0x34f8c7,{'width':this[_0x5d3004(0x2ed)],'height':this[_0x5d3004(0x2e5)],'strokeWidth':(_0x4bb97e=this['strokeWidth'])!==null&&_0x4bb97e!==void 0x0?_0x4bb97e:SHEET_COLLAB_CURSOR_BORDER_WIDTH,'stroke':_0x5846fb,'evented':![],'fill':_0x3971aa});if(this['_hovered']||this['_showText']){var _0x2f79b3;_0x34f8c7[_0x5d3004(0x200)](),_0x34f8c7[_0x5d3004(0x373)](0x1,0x0,0x0,0x1,this[_0x5d3004(0x2ed)],(this[_0x5d3004(0x315)]==='bottom'?0x0:-0x14)+((_0x2f79b3=this[_0x5d3004(0x274)])!==null&&_0x2f79b3!==void 0x0?_0x2f79b3:0x0)),TextBubbleShape[_0x5d3004(0x2dd)](_0x34f8c7,{'text':this['_name'],'color':_0x5846fb}),_0x34f8c7['restore']();}}[_0x17a902(0x246)](_0x541826){const _0x4ccdb0=_0x17a902;if(_0x541826[_0x4ccdb0(0x1ef)]('#'))return _0x4ccdb0(0x329)+Number['parseInt'](_0x541826['slice'](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x541826[_0x4ccdb0(0x39b)](0x3,0x5),0x10)+',\x20'+Number[_0x4ccdb0(0x37c)](_0x541826[_0x4ccdb0(0x39b)](0x5,0x7),0x10)+_0x4ccdb0(0x39a);if(_0x541826[_0x4ccdb0(0x1ef)](_0x4ccdb0(0x257)))return _0x541826[_0x4ccdb0(0x335)](/[\d.]+\)$/g,_0x4ccdb0(0x1f0));if(_0x541826['startsWith'](_0x4ccdb0(0x23b)))return _0x541826[_0x4ccdb0(0x335)]('rgb',_0x4ccdb0(0x257))['replace'](')',_0x4ccdb0(0x39a));return _0x541826;}};const SHEETS_COLLABORATION_CURSOR_Z_INDEX=0x1389;let SheetCollabCursorRenderController=class SheetCollabCursorRenderController extends RxDisposable{constructor(_0x5ae1ba,_0x49e23a,_0x234a89,_0x89990e){const _0x5ce274=_0x17a902;super(),this[_0x5ce274(0x29a)]=_0x5ae1ba,this[_0x5ce274(0x35f)]=_0x49e23a,this[_0x5ce274(0x2d5)]=_0x234a89,this[_0x5ce274(0x2ad)]=_0x89990e,_defineProperty(this,_0x5ce274(0x245),new Set()),_defineProperty(this,_0x5ce274(0x259),null),this[_0x5ce274(0x223)]();}['_init'](){const _0x5499ea=_0x17a902;this[_0x5499ea(0x35f)][_0x5499ea(0x264)][_0x5499ea(0x1de)](_0x3842e6(this[_0x5499ea(0x323)]),_0x28391a(_0x383594=>{const _0x4d1d90=_0x5499ea;if(_0x383594){const _0x5b766e=_0x383594[_0x4d1d90(0x3af)];return combineLatest(this[_0x4d1d90(0x2d5)][_0x4d1d90(0x2e7)](this['_context']['unitId']),this[_0x4d1d90(0x2ad)]['currentTheme$'])['pipe'](map(([_0x4aa576,_0x49087c])=>{const _0x79ccd1=_0x4d1d90,_0x33b2be=new Map();return _0x4aa576[_0x79ccd1(0x226)]((_0x1084e7,_0x35e129)=>{const _0x173628=_0x79ccd1;if(_0x1084e7[_0x173628(0x213)]===_0x5b766e){const _0x4df363={..._0x1084e7};_0x4df363[_0x173628(0x2a9)]=this[_0x173628(0x2ad)][_0x173628(0x371)](_0x1084e7[_0x173628(0x2a9)]),_0x33b2be['set'](_0x35e129,_0x4df363);}}),{'skeleton':_0x383594,'cursors':_0x33b2be};}));}return of({'skeleton':null,'cursors':new Map()});}))[_0x5499ea(0x1d4)](({skeleton:_0x1af36e,cursors:_0x54ab8a})=>{const _0x2abc05=_0x5499ea;this['_removeCollabCursors']();if(_0x1af36e)this[_0x2abc05(0x1f7)](_0x1af36e,_0x54ab8a);}),this[_0x5499ea(0x35f)][_0x5499ea(0x264)][_0x5499ea(0x1d4)](_0x3d6c90=>{const _0x3df715=_0x5499ea;if(_0x3d6c90==null)return;const {skeleton:_0x449367}=_0x3d6c90,{scene:_0x222bfb}=this[_0x3df715(0x29a)];_0x222bfb['onPointerMove$']['subscribeEvent'](debounce(_0x3e2f2d=>{const _0x39c39c=_0x3df715;var _0x308c74,_0xd89a0c;const {offsetX:_0x377702,offsetY:_0x1812fc}=_0x3e2f2d,{x:_0x1ec130,y:_0xecec40}=_0x222bfb['getRelativeToViewportCoord'](Vector2[_0x39c39c(0x2aa)]([_0x377702,_0x1812fc])),{scaleX:_0x492da5,scaleY:_0x46c3ae}=_0x222bfb[_0x39c39c(0x1fd)](),_0x62bf3b=_0x222bfb[_0x39c39c(0x205)](SHEET_VIEWPORT_KEY['VIEW_MAIN']),_0x390910=_0x222bfb[_0x39c39c(0x29c)](Vector2[_0x39c39c(0x2aa)]([_0x1ec130,_0xecec40]),_0x62bf3b),_0x25733d=_0x449367[_0x39c39c(0x2d0)](_0x377702,_0x1812fc,_0x492da5,_0x46c3ae,_0x390910);if(((_0x308c74=this[_0x39c39c(0x259)])===null||_0x308c74===void 0x0?void 0x0:_0x308c74[_0x39c39c(0x266)])===_0x25733d[_0x39c39c(0x266)]&&((_0xd89a0c=this[_0x39c39c(0x259)])===null||_0xd89a0c===void 0x0?void 0x0:_0xd89a0c['row'])===_0x25733d[_0x39c39c(0x1d2)])return;this['_cursors'][_0x39c39c(0x226)](_0x5654ad=>{_0x5654ad['onMouseMove'](_0x25733d);});},0x64));});}['_updateCollabCursors'](_0x40bbf8,_0x533d6a){const _0x2145ba=_0x17a902,_0x2669a7=this[_0x2145ba(0x35f)]['getCurrentSkeleton']();if(!_0x2669a7)return;const _0x8bc239=this[_0x2145ba(0x24d)]();if(!_0x8bc239)return;this[_0x2145ba(0x245)]['forEach'](_0x56a45b=>{const _0x43839e=_0x2145ba;_0x56a45b[_0x43839e(0x1b3)]();});const {scene:_0x5383fd}=_0x8bc239,_0x215740=mergeCollabCursors(Array[_0x2145ba(0x26c)](_0x533d6a[_0x2145ba(0x357)]()))[_0x2145ba(0x207)](_0x34f85d=>{const _0x2e9367=_0x2145ba,{color:_0x5a06b3,range:_0x3ec640,name:_0x5e19e1,selection:_0x2707f1,sheetID:_0x5333e8}=_0x34f85d,{startColumn:_0x7ea070,startRow:_0x186853,endColumn:_0x22a79b,endRow:_0x5dcc7a}=_0x3ec640,_0x183496=getCoordByCell(_0x186853,_0x7ea070,_0x5383fd,_0x2669a7),_0x556aed=getCoordByCell(_0x5dcc7a,_0x22a79b,_0x5383fd,_0x2669a7),{columnHeaderHeightAndMarginTop:_0x48363d}=_0x2669a7,{startX:_0x224db4,startY:_0x53cd1c}=_0x183496,{endX:_0x5e277d,endY:_0x363772}=_0x556aed,_0x45bfa2=_0x5e277d-_0x224db4,_0xf003a9=_0x363772-_0x53cd1c;return new SheetCollabCursorShape(_0x5e19e1,{'labelPosition':_0x53cd1c-_0x48363d>=0x14?_0x2e9367(0x23c):_0x2e9367(0x1e1),'sheetID':_0x5333e8,'range':_0x3ec640,'color':_0x5a06b3,'name':_0x5e19e1,'selection':_0x2707f1,'left':_0x224db4,'top':_0x53cd1c,'width':_0x45bfa2,'height':_0xf003a9,'evented':![],'zIndex':SHEETS_COLLABORATION_CURSOR_Z_INDEX});});_0x5383fd[_0x2145ba(0x24c)](_0x215740,0x1),this[_0x2145ba(0x245)]=new Set(_0x215740);}['_removeCollabCursors'](){const _0x453bb5=_0x17a902;var _0x1fa73a;(_0x1fa73a=this[_0x453bb5(0x245)])===null||_0x1fa73a===void 0x0||_0x1fa73a[_0x453bb5(0x226)](_0x43d312=>_0x43d312[_0x453bb5(0x2e6)]());}[_0x17a902(0x24d)](){const _0x1ee38f=_0x17a902;return getSheetObject(this['_context'][_0x1ee38f(0x379)],this[_0x1ee38f(0x29a)]);}};SheetCollabCursorRenderController=__decorate([__decorateParam(0x1,Inject(SheetSkeletonManagerService)),__decorateParam(0x2,Inject(CollabCursorController)),__decorateParam(0x3,Inject(ThemeService))],SheetCollabCursorRenderController);function mergeCollabCursors(_0x50937a){const _0x143761=_0x17a902,_0x2bedc9=new Map();return _0x50937a['forEach'](_0x931e01=>{const _0x203743=_0x155c;if(_0x2bedc9[_0x203743(0x1c8)](_0x931e01[_0x203743(0x2c7)])){const _0x2e74d4=_0x2bedc9[_0x203743(0x1cf)](_0x931e01[_0x203743(0x2c7)]);_0x2e74d4[_0x203743(0x212)]+=',\x20'+_0x931e01['name'];}else _0x2bedc9[_0x203743(0x224)](_0x931e01[_0x203743(0x2c7)],_0x931e01);}),Array['from'](_0x2bedc9[_0x143761(0x357)]());}let CollaborationClientUIController=class CollaborationClientUIController extends Disposable{constructor(_0x3f54dc,_0x2e149c,_0x2d81cb,_0x5206a5,_0x4fceca,_0x3466b2){const _0x49c60f=_0x17a902;super(),this[_0x49c60f(0x39f)]=_0x3f54dc,this[_0x49c60f(0x273)]=_0x2e149c,this[_0x49c60f(0x3b8)]=_0x2d81cb,this[_0x49c60f(0x2de)]=_0x5206a5,this[_0x49c60f(0x362)]=_0x4fceca,this[_0x49c60f(0x1b2)]=_0x3466b2,this[_0x49c60f(0x20a)](),this[_0x49c60f(0x38f)]();}['_setupBeforeClosingHandler'](){const _0x17e336=_0x17a902;this['disposeWithMe'](this[_0x17e336(0x39f)][_0x17e336(0x2e0)](()=>{const _0x21a1ce=_0x17e336;if(this[_0x21a1ce(0x273)][_0x21a1ce(0x1d1)]['size'])return this[_0x21a1ce(0x1b2)]['t']('collaboration.offline-data-not-saved');}));}[_0x17a902(0x38f)](){const _0x525025=_0x17a902;this[_0x525025(0x2d3)](this[_0x525025(0x3b8)][_0x525025(0x2a5)][_0x525025(0x1d4)](_0x39d627=>{const _0x6b91d4=_0x525025;if(_0x39d627['id']===CollaborationUIEventId[_0x6b91d4(0x304)])this[_0x6b91d4(0x2de)][_0x6b91d4(0x2a4)]({'type':MessageType[_0x6b91d4(0x2ff)],'content':this['_localeService']['t']('collaboration.single-unit.warning')});if(_0x39d627['id']===CollaborationUIEventId[_0x6b91d4(0x1e4)])this[_0x6b91d4(0x2de)][_0x6b91d4(0x2a4)]({'type':MessageType['Warning'],'content':this['_localeService']['t'](_0x6b91d4(0x28a))});if(_0x39d627['id']===CollaborationUIEventId[_0x6b91d4(0x2b7)])this['_notificationService'][_0x6b91d4(0x2a4)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x6b91d4(0x1b2)]['t'](_0x6b91d4(0x2cd)),'type':'error','duration':0x0});if(_0x39d627['id']===CollaborationUIEventId[_0x6b91d4(0x2f6)])this['_messageService'][_0x6b91d4(0x2a4)]({'type':MessageType[_0x6b91d4(0x368)],'content':this[_0x6b91d4(0x1b2)]['t']('collaboration.closeRoom')+'('+_0x39d627[_0x6b91d4(0x2b9)]+')'});if(_0x39d627['id']===CollaborationUIEventId[_0x6b91d4(0x1c9)])this['_messageService'][_0x6b91d4(0x2a4)]({'type':MessageType[_0x6b91d4(0x2ff)],'content':this[_0x6b91d4(0x1b2)]['t'](_0x39d627[_0x6b91d4(0x2b9)]||'')});if(_0x39d627['id']===CollaborationUIEventId[_0x6b91d4(0x1ad)])this[_0x6b91d4(0x2de)][_0x6b91d4(0x2a4)]({'type':MessageType[_0x6b91d4(0x2ff)],'content':this[_0x6b91d4(0x1b2)]['t'](_0x6b91d4(0x365))});if(_0x39d627['id']===CollaborationUIEventId['SOCKET_FAILED'])this[_0x6b91d4(0x2de)]['show']({'type':MessageType[_0x6b91d4(0x368)],'content':this[_0x6b91d4(0x1b2)]['t']('session.connection-failed')});if(_0x39d627['id']===CollaborationUIEventId[_0x6b91d4(0x1bb)])this[_0x6b91d4(0x2de)][_0x6b91d4(0x2a4)]({'type':MessageType[_0x6b91d4(0x368)],'content':this[_0x6b91d4(0x1b2)]['t'](_0x6b91d4(0x261))});}));}};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=_0x17a902(0x2dc),configSymbol=Symbol(PLUGIN_CONFIG_KEY),defaultPluginConfig={};let DocTransformIMECacheService=class DocTransformIMECacheService{constructor(_0x2bb280,_0x5dcab2){const _0x20a241=_0x17a902;this[_0x20a241(0x1da)]=_0x2bb280,this[_0x20a241(0x3b4)]=_0x5dcab2;}['transformIMECache'](_0x428dda){const _0x5b3bc8=_0x17a902;this[_0x5b3bc8(0x34c)](_0x428dda),this['_transformPreviousActiveRange'](_0x428dda);}['transformRemoteChangeset'](_0x2e6c62){const _0x220dcf=_0x17a902,{unitID:_0x1e8bb1}=_0x2e6c62,{redoCache:_0x30b4dc}=this[_0x220dcf(0x3b4)]['getRenderById'](_0x1e8bb1)[_0x220dcf(0x2fd)](DocIMEInputManagerService)[_0x220dcf(0x20f)]();if(_0x30b4dc[_0x220dcf(0x2e8)]===0x0)return _0x2e6c62;let _0x16dad7=Tools['deepClone'](_0x2e6c62[_0x220dcf(0x30e)][0x0]);for(let _0x21f3e2=0x0;_0x21f3e2<_0x30b4dc[_0x220dcf(0x2e8)];_0x21f3e2++){const _0x3f4d97={'id':_0x220dcf(0x3c3),'params':{..._0x30b4dc[_0x21f3e2]}},_0x41117e=this[_0x220dcf(0x1da)][_0x220dcf(0x27b)](_0x16dad7,_0x3f4d97,![]);if(isTransformMutationFailure(_0x41117e))throw _0x41117e[_0x220dcf(0x23e)];_0x16dad7=_0x41117e[_0x220dcf(0x340)];}return{...Tools[_0x220dcf(0x3b1)](_0x2e6c62),'mutations':[_0x16dad7]};}[_0x17a902(0x34c)](_0x3815be){const _0x8330ad=_0x17a902,{unitID:_0x1fa429}=_0x3815be,_0x13f3f7=this[_0x8330ad(0x3b4)][_0x8330ad(0x3c6)](_0x1fa429)[_0x8330ad(0x2fd)](DocIMEInputManagerService),{undoCache:_0x176dba,redoCache:_0x58b9b5}=_0x13f3f7[_0x8330ad(0x20f)]();if(_0x176dba[_0x8330ad(0x2e8)]===0x0||_0x58b9b5[_0x8330ad(0x2e8)]===0x0)return;const _0x412794=[],_0x3d0919=[];let _0x506337=Tools['deepClone'](_0x3815be[_0x8330ad(0x30e)][0x0]),_0x472de4=Tools[_0x8330ad(0x3b1)](_0x3815be[_0x8330ad(0x30e)][0x0]);for(let _0x12361d=_0x176dba['length']-0x1;_0x12361d>=0x0;_0x12361d--){const _0x33bd8c={'id':_0x8330ad(0x3c3),'params':{..._0x176dba[_0x12361d]}},_0xece310={'id':_0x8330ad(0x3c3),'params':{..._0x58b9b5[_0x12361d]}},_0x41374a=this[_0x8330ad(0x1da)][_0x8330ad(0x27b)](_0x506337,_0x33bd8c,![]),_0x4c315a=this[_0x8330ad(0x1da)]['transformMutation'](_0x472de4,_0xece310,![]);if(isTransformMutationFailure(_0x41374a))throw _0x41374a[_0x8330ad(0x23e)];if(isTransformMutationFailure(_0x4c315a))throw _0x4c315a[_0x8330ad(0x23e)];_0x412794[_0x8330ad(0x241)](_0x41374a[_0x8330ad(0x2ae)][_0x8330ad(0x300)]),_0x3d0919[_0x8330ad(0x241)](_0x4c315a[_0x8330ad(0x2ae)][_0x8330ad(0x300)]),_0x506337=_0x41374a['m1Prime'],_0x472de4=_0x4c315a[_0x8330ad(0x340)];}_0x13f3f7[_0x8330ad(0x1d3)]({'undoCache':_0x412794,'redoCache':_0x3d0919});}['_transformPreviousActiveRange'](_0x370f98){const _0x1b0ae4=_0x17a902,{unitID:_0x2de7d5}=_0x370f98,_0x49572d=this[_0x1b0ae4(0x3b4)]['getRenderById'](_0x2de7d5)[_0x1b0ae4(0x2fd)](DocIMEInputManagerService),_0x5e37fd=_0x49572d[_0x1b0ae4(0x21c)]();if(_0x5e37fd==null)return;const _0x401dd8=[{'id':_0x1b0ae4(0x3c3),'params':{'unitId':_0x370f98['unitID'],'actions':null,'textRanges':[_0x5e37fd]}}],_0xddbb1e=this[_0x1b0ae4(0x1da)][_0x1b0ae4(0x321)](_0x370f98,_0x401dd8);if(!isTransformMutationsWithChangesetSuccess(_0xddbb1e))throw _0xddbb1e['error'];const _0x3009d6=_0xddbb1e[_0x1b0ae4(0x2ae)][0x0][_0x1b0ae4(0x300)]['textRanges'];if(Array[_0x1b0ae4(0x1f9)](_0x3009d6)&&_0x3009d6[_0x1b0ae4(0x2e8)])_0x49572d[_0x1b0ae4(0x3bd)](_0x3009d6[0x0]);}};DocTransformIMECacheService=__decorate([__decorateParam(0x0,ITransformService),__decorateParam(0x1,IRenderManagerService)],DocTransformIMECacheService);let DocTransformStateCacheService=class DocTransformStateCacheService{constructor(_0x50877e,_0x14d3f4,_0x150eb0){const _0x3cc139=_0x17a902;this[_0x3cc139(0x21e)]=_0x50877e,this[_0x3cc139(0x1da)]=_0x14d3f4,this[_0x3cc139(0x202)]=_0x150eb0;}['transformStateCache'](_0x1657b5){const _0x5cf817=_0x17a902;this[_0x5cf817(0x225)](_0x1657b5);}[_0x17a902(0x262)](_0x1f6ca8){const _0x189439=_0x17a902,{unitID:_0x93167f}=_0x1f6ca8,{collaboration:_0x19dfa3}=this[_0x189439(0x202)]['getStateCache'](_0x93167f);if(_0x19dfa3[_0x189439(0x2e8)]===0x0)return _0x1f6ca8;let _0x351a71=Tools[_0x189439(0x3b1)](_0x1f6ca8[_0x189439(0x30e)][0x0]);for(let _0x2e9ab3=0x0;_0x2e9ab3<_0x19dfa3[_0x189439(0x2e8)];_0x2e9ab3++){const _0x3d67a9={'id':_0x189439(0x3c3),'params':{'unitId':_0x19dfa3[_0x2e9ab3][_0x189439(0x254)],..._0x19dfa3[_0x2e9ab3]['redoState']}},_0x4c13aa=this[_0x189439(0x1da)][_0x189439(0x27b)](_0x351a71,_0x3d67a9,![]);if(isTransformMutationFailure(_0x4c13aa))throw _0x4c13aa[_0x189439(0x23e)];_0x351a71=_0x4c13aa[_0x189439(0x340)];}return{...Tools[_0x189439(0x3b1)](_0x1f6ca8),'mutations':[_0x351a71]};}[_0x17a902(0x225)](_0x14296b){const _0x514f85=_0x17a902,{unitID:_0x174b05}=_0x14296b,{history:_0x458596,collaboration:_0x29775d}=this[_0x514f85(0x202)][_0x514f85(0x330)](_0x174b05);if(_0x458596[_0x514f85(0x2e8)]===0x0&&_0x29775d[_0x514f85(0x2e8)]===0x0)return;const _0x3b6486=[],_0x409343=[];let _0x256246=Tools['deepClone'](_0x14296b['mutations'][0x0]),_0x24d5a1=Tools[_0x514f85(0x3b1)](_0x14296b[_0x514f85(0x30e)][0x0]);for(let _0x230ab2=_0x458596[_0x514f85(0x2e8)]-0x1;_0x230ab2>=0x0;_0x230ab2--){const _0x26b5f3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x458596[_0x230ab2]['unitId'],..._0x458596[_0x230ab2][_0x514f85(0x37d)]}},_0x51f4a6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x458596[_0x230ab2][_0x514f85(0x254)],..._0x458596[_0x230ab2][_0x514f85(0x33d)]}},_0x20778a=this[_0x514f85(0x1da)][_0x514f85(0x27b)](_0x256246,_0x26b5f3,![]),_0x28806c=this[_0x514f85(0x1da)][_0x514f85(0x27b)](_0x24d5a1,_0x51f4a6,![]);if(isTransformMutationFailure(_0x20778a))throw _0x20778a[_0x514f85(0x23e)];if(isTransformMutationFailure(_0x28806c))throw _0x28806c['error'];_0x3b6486[_0x514f85(0x241)]({..._0x458596[_0x230ab2],'undoState':_0x20778a[_0x514f85(0x2ae)][_0x514f85(0x300)],'redoState':_0x28806c[_0x514f85(0x2ae)][_0x514f85(0x300)]}),_0x256246=_0x20778a['m1Prime'],_0x24d5a1=_0x28806c[_0x514f85(0x340)];}_0x256246=Tools['deepClone'](_0x14296b[_0x514f85(0x30e)][0x0]),_0x24d5a1=Tools[_0x514f85(0x3b1)](_0x14296b['mutations'][0x0]);for(let _0x1ae84d=_0x29775d[_0x514f85(0x2e8)]-0x1;_0x1ae84d>=0x0;_0x1ae84d--){const _0x21dff1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x29775d[_0x1ae84d][_0x514f85(0x254)],..._0x29775d[_0x1ae84d][_0x514f85(0x37d)]}},_0x5764d2={'id':_0x514f85(0x3c3),'params':{'unitId':_0x29775d[_0x1ae84d][_0x514f85(0x254)],..._0x29775d[_0x1ae84d]['redoState']}},_0x4eeab5=this['_transformService'][_0x514f85(0x27b)](_0x256246,_0x21dff1,![]),_0x261607=this[_0x514f85(0x1da)]['transformMutation'](_0x24d5a1,_0x5764d2,![]);if(isTransformMutationFailure(_0x4eeab5))throw _0x4eeab5[_0x514f85(0x23e)];if(isTransformMutationFailure(_0x261607))throw _0x261607[_0x514f85(0x23e)];_0x409343['unshift']({..._0x29775d[_0x1ae84d],'undoState':_0x4eeab5['m2Prime'][_0x514f85(0x300)],'redoState':_0x261607[_0x514f85(0x2ae)]['params']}),_0x256246=_0x4eeab5[_0x514f85(0x340)],_0x24d5a1=_0x261607[_0x514f85(0x340)];}this[_0x514f85(0x202)]['setStateCache'](_0x174b05,{'history':_0x3b6486,'collaboration':_0x409343});}};DocTransformStateCacheService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,ITransformService),__decorateParam(0x2,Inject(DocStateChangeManagerService))],DocTransformStateCacheService);let DocTransformSelectionsService=class DocTransformSelectionsService{constructor(_0xb468de,_0x5b3907){const _0x3f70e4=_0x17a902;this[_0x3f70e4(0x21e)]=_0xb468de,this['_transformService']=_0x5b3907;}[_0x17a902(0x3bc)](_0x5bd842){const _0x3690a2=_0x17a902;var _0x4407d3;const _0x1cd1df=this[_0x3690a2(0x21e)][_0x3690a2(0x1cf)](DocSelectionManagerService),_0x30c0ac=(_0x4407d3=_0x1cd1df[_0x3690a2(0x3b6)]())!==null&&_0x4407d3!==void 0x0?_0x4407d3:[];if(_0x30c0ac[_0x3690a2(0x2e8)]===0x0)return;const _0x176044=_0x5bd842[_0x3690a2(0x2e4)],_0x3175f4=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x176044,'actions':null,'textRanges':_0x30c0ac}}],_0x5aab10=this[_0x3690a2(0x1da)]['transformMutationsWithChangeset'](_0x5bd842,_0x3175f4);if(!isTransformMutationsWithChangesetSuccess(_0x5aab10))throw _0x5aab10[_0x3690a2(0x23e)];const _0x1ebfb9=_0x5aab10[_0x3690a2(0x2ae)][0x0][_0x3690a2(0x300)][_0x3690a2(0x302)];if(Array[_0x3690a2(0x1f9)](_0x1ebfb9)&&_0x1ebfb9[_0x3690a2(0x2e8)])_0x1cd1df[_0x3690a2(0x231)](_0x1ebfb9,{'unitId':_0x176044,'subUnitId':_0x176044},![]);}};DocTransformSelectionsService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,ITransformService)],DocTransformSelectionsService);let CollaborationEntityUIController=class CollaborationEntityUIController extends Disposable{constructor(_0x2e5d51,_0x4e5fb4,_0x4a4a11,_0x41360f,_0x28a9d9,_0x5112ee,_0xa6f7c1,_0x3beff0){const _0x212ddc=_0x17a902;super(),this['_docStateChangeManagerService']=_0x2e5d51,this[_0x212ddc(0x34f)]=_0x4e5fb4,this[_0x212ddc(0x1e0)]=_0x4a4a11,this[_0x212ddc(0x339)]=_0x41360f,this[_0x212ddc(0x398)]=_0x28a9d9,this[_0x212ddc(0x235)]=_0x5112ee,this[_0x212ddc(0x2de)]=_0xa6f7c1,this[_0x212ddc(0x1b2)]=_0x3beff0,_defineProperty(this,'_status$',new BehaviorSubject(CollaborationStatus[_0x212ddc(0x20e)])),this[_0x212ddc(0x2ca)]();}[_0x17a902(0x2ca)](){const _0x4c8f11=_0x17a902;this[_0x4c8f11(0x2d3)](this[_0x4c8f11(0x34f)][_0x4c8f11(0x314)]['subscribe'](_0x350e4d=>{const _0x27f2d5=_0x4c8f11,_0x18a6f6=this['_docStateChangeManagerService']['docStateChange$'][_0x27f2d5(0x1d4)](_0x52719d=>{const _0x40ae22=_0x27f2d5;if(_0x52719d==null)return;const {unitId:_0x27e1b1,redoState:_0x503aad,commandId:_0x3be3c4}=_0x52719d;if(_0x27e1b1!==_0x350e4d[_0x40ae22(0x2e4)])return;const _0x54f35a={'id':_0x3be3c4,'type':CommandType[_0x40ae22(0x30d)],'params':{'unitId':_0x27e1b1,'actions':_0x503aad[_0x40ae22(0x28d)],'textRanges':null}};_0x350e4d[_0x40ae22(0x2f1)](_0x54f35a);});_0x350e4d[_0x27f2d5(0x2d3)](_0x18a6f6);if(_0x350e4d instanceof DocCollaborationEntity)_0x350e4d['addHandlerCallback']({'onTransformIME':_0x286e1d=>this[_0x27f2d5(0x1e0)][_0x27f2d5(0x21f)](_0x286e1d),'onTransformState':_0x5a2c07=>this[_0x27f2d5(0x339)][_0x27f2d5(0x29e)](_0x5a2c07),'onTransformSelections':_0x45efb2=>this['_docTransformSelectionsService']['transformSelections'](_0x45efb2),'onSyncEditingCollabCursor':_0x24c0e9=>this[_0x27f2d5(0x235)][_0x27f2d5(0x1e6)](_0x24c0e9),'onTransformRemoteChangesetByIMECache':_0x3b5e6f=>this[_0x27f2d5(0x1e0)][_0x27f2d5(0x262)](_0x3b5e6f),'onTransformRemoteChangesetByStateCache':_0x148d29=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x148d29)});}));}};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(_0x16c0eb,_0x26f320,_0x2e4928,_0x2db4b5){const _0x1ae711=_0x17a902;super(),this[_0x1ae711(0x21e)]=_0x16c0eb,this['_httpService']=_0x26f320,this[_0x1ae711(0x39c)]=_0x2e4928,this[_0x1ae711(0x34a)]=_0x2db4b5,_defineProperty(this,'_memberID',void 0x0),this['_init']();}['_init'](){const _0x99a49=_0x17a902;this[_0x99a49(0x2ea)](),this[_0x99a49(0x2ac)](),this[_0x99a49(0x2b4)](),this[_0x99a49(0x1fa)]();}[_0x17a902(0x1fa)](){const _0x163c73=_0x17a902;this[_0x163c73(0x2d3)](this[_0x163c73(0x34a)][_0x163c73(0x2bf)][_0x163c73(0x1d4)](_0x5c4bd4=>{this['_memberID']=_0x5c4bd4===null||_0x5c4bd4===void 0x0?void 0x0:_0x5c4bd4['memberID'];}));}[_0x17a902(0x2ea)](){const _0x4172=_0x17a902,_0x146569=_0xc65aa8=>{const _0x1e634c=_0x155c;var _0x297bb9;this[_0x1e634c(0x260)]('error',_0x1e634c(0x201)+_0xc65aa8[_0x1e634c(0x385)]+'\x20at\x20'+_0xc65aa8[_0x1e634c(0x2e9)]+':'+_0xc65aa8['lineno']+':'+_0xc65aa8[_0x1e634c(0x2fa)]+'\x0a'+(((_0x297bb9=_0xc65aa8[_0x1e634c(0x23e)])===null||_0x297bb9===void 0x0?void 0x0:_0x297bb9[_0x1e634c(0x376)])||''));};window[_0x4172(0x1ce)](_0x4172(0x23e),_0x146569),this['disposeWithMe'](()=>{const _0x4d6422=_0x4172;window['removeEventListener'](_0x4d6422(0x23e),_0x146569);});}[_0x17a902(0x2ac)](){const _0x37d729=_0x17a902,_0x3b26af=_0x5ceb7=>{const _0x471525=_0x155c;this[_0x471525(0x260)](_0x471525(0x23e),_0x471525(0x341)+_0x5ceb7[_0x471525(0x1af)]);};window[_0x37d729(0x1ce)](_0x37d729(0x2c8),_0x3b26af),this[_0x37d729(0x2d3)](()=>{const _0x4d6020=_0x37d729;window['removeEventListener'](_0x4d6020(0x2c8),_0x3b26af);});}['_monkeyPatchLogService'](){const _0x4470f3=_0x17a902,_0x381849=this[_0x4470f3(0x39c)][_0x4470f3(0x23e)][_0x4470f3(0x3be)](this[_0x4470f3(0x39c)]);this[_0x4470f3(0x39c)][_0x4470f3(0x23e)]=(..._0x471441)=>{const _0x2b494e=_0x4470f3,_0x509764=_0x471441['map'](_0x553ba7=>_0x553ba7 instanceof Error?_0x553ba7[_0x2b494e(0x385)]+'\x0a'+_0x553ba7[_0x2b494e(0x376)]:String(_0x553ba7))[_0x2b494e(0x331)]('\x20');this['_uploadLog'](_0x2b494e(0x23e),_0x2b494e(0x2a1)+_0x509764),_0x381849(..._0x471441);},this[_0x4470f3(0x2d3)](()=>{this['_logService']['error']=_0x381849;});}[_0x17a902(0x260)](_0xb4502f,_0x4b2d97){const _0x4bab9d=_0x17a902;try{const _0x44c4da={'userId':this['_memberID'],'logLabel':_0xb4502f,'content':_0x4b2d97};this[_0x4bab9d(0x296)][_0x4bab9d(0x3ae)](_0x4bab9d(0x1c6),{'body':_0x44c4da})[_0x4bab9d(0x20d)](()=>{});}catch{}}};FrontendLogController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,ILogService),__decorateParam(0x3,Inject(CollaborationSessionService))],FrontendLogController);function isCalculationStart(_0xbc3e5e){const _0x2c0b56=_0x17a902;var _0x3afe43,_0x371a30;const _0x31968e=(_0x3afe43=_0xbc3e5e[_0x2c0b56(0x32c)])===null||_0x3afe43===void 0x0?void 0x0:_0x3afe43[_0x2c0b56(0x203)],_0x1353d1=((_0x371a30=_0xbc3e5e[_0x2c0b56(0x32c)])===null||_0x371a30===void 0x0?void 0x0:_0x371a30[_0x2c0b56(0x360)])||0x0;return _0x31968e===FormulaExecuteStageType[_0x2c0b56(0x1b4)]&&_0x1353d1>0x0;}function isCalculationComplete(_0x387534){const _0x205068=_0x17a902;return _0x387534['functionsExecutedState']===FormulaExecutedStateType[_0x205068(0x3ba)];}const DEFAULT_FORMULA_CALCULATION_LIMIT_STATUS_URL=_0x17a902(0x325),DEFAULT_FORMULA_CALCULATION_LIMIT_START_URL=_0x17a902(0x1e3),DEFAULT_FORMULA_CALCULATION_LIMIT_DONE_URL=_0x17a902(0x22f);let FormulaCalculationGuardService=class FormulaCalculationGuardService extends Disposable{constructor(_0xdcf5e8,_0x4f6de2,_0x1169d9,_0x327ea5,_0xccad3d,_0x58c37e,_0x4f697e){const _0x391f30=_0x17a902;super(),this['_messageService']=_0xdcf5e8,this['_commandService']=_0x4f6de2,this[_0x391f30(0x271)]=_0x1169d9,this[_0x391f30(0x296)]=_0x327ea5,this[_0x391f30(0x3a4)]=_0xccad3d,this['_logService']=_0x58c37e,this[_0x391f30(0x1b2)]=_0x4f697e,_defineProperty(this,'_pollingInterval',null),_defineProperty(this,_0x391f30(0x35d),0x0),_defineProperty(this,_0x391f30(0x31d),0x0),_defineProperty(this,_0x391f30(0x31e),[]),_defineProperty(this,_0x391f30(0x380),0x0),this[_0x391f30(0x23f)]();}[_0x17a902(0x23f)](){const _0x30e28a=_0x17a902;this[_0x30e28a(0x2d3)](this[_0x30e28a(0x3b2)][_0x30e28a(0x35b)]((_0x58c6d3,_0x2a3ede)=>{const _0x2fe8ce=_0x30e28a;var _0x5a2585;if(_0x58c6d3['id']!==SetFormulaCalculationStartMutation['id'])return;const _0x48cd97=_0x58c6d3[_0x2fe8ce(0x300)];if(!this[_0x2fe8ce(0x375)]((_0x5a2585=_0x48cd97[_0x2fe8ce(0x3a9)])!==null&&_0x5a2585!==void 0x0?_0x5a2585:[]))return;if(!this[_0x2fe8ce(0x363)]()){this[_0x2fe8ce(0x38c)](_0x58c6d3,_0x2a3ede),this[_0x2fe8ce(0x1b1)]();throw new CanceledError();}})),this[_0x30e28a(0x2d3)](this[_0x30e28a(0x3b2)][_0x30e28a(0x289)]((_0x4cf982,_0x5752b1)=>{const _0x4a4479=_0x30e28a;if(_0x4cf982['id']!==SetFormulaCalculationNotificationMutation['id'])return;const _0x39a977=_0x4cf982['params'];if(isCalculationStart(_0x39a977)){const _0x128caf=generateRandomId();this[_0x4a4479(0x31e)][_0x4a4479(0x36a)](_0x128caf),this['_startCalculationLimit'](_0x128caf);}else{if(isCalculationComplete(_0x39a977)){if(this['_taskIds']['length']>0x0){const _0x11bac6=this[_0x4a4479(0x31e)][_0x4a4479(0x38b)]();this[_0x4a4479(0x267)](_0x11bac6);}}}}));}['dispose'](){const _0x2d673e=_0x17a902;super[_0x2d673e(0x2e6)](),this[_0x2d673e(0x291)](),this['_taskIds']=[],this[_0x2d673e(0x31d)]=0x0,this[_0x2d673e(0x35d)]=0x0,this[_0x2d673e(0x380)]=0x0;}async[_0x17a902(0x38c)](_0x496b9b,_0x266f1a){const _0x15f21c=_0x17a902,_0x589f24=0x1e,_0x5db10f=0x3e8;for(let _0x10d608=0x0;_0x10d608<_0x589f24;_0x10d608++)try{await this[_0x15f21c(0x3c4)]();if(this['_checkCalculationAvailable']()){this[_0x15f21c(0x1d8)](_0x496b9b,_0x266f1a),this[_0x15f21c(0x2de)]['show']({'content':this[_0x15f21c(0x1b2)]['t'](_0x15f21c(0x1a9)),'type':MessageType[_0x15f21c(0x2e3)]});return;}await new Promise(_0x31f043=>{const _0x5155f3=_0x15f21c;this[_0x5155f3(0x1fb)]=window[_0x5155f3(0x2a8)](_0x31f043,_0x5db10f);});}catch(_0x49af6b){this[_0x15f21c(0x39c)][_0x15f21c(0x23e)](_0x49af6b);}this['_messageService'][_0x15f21c(0x2a4)]({'content':this[_0x15f21c(0x1b2)]['t'](_0x15f21c(0x344)),'type':MessageType[_0x15f21c(0x368)]});}[_0x17a902(0x1d8)](_0x406f15,_0x3022e8){const _0x1761fe=_0x17a902;try{this[_0x1761fe(0x3b2)][_0x1761fe(0x251)](_0x406f15['id'],_0x406f15['params'],_0x3022e8);}catch(_0x41f6e4){this[_0x1761fe(0x39c)][_0x1761fe(0x23e)](_0x41f6e4);}}['_setFormulaLimitStatus'](_0x5c2a1e,_0x528913){const _0x179b4f=_0x17a902;if(_0x528913<this['_lastResponseTimestamp'])return;this['_lastResponseTimestamp']=_0x528913,this[_0x179b4f(0x35d)]=Number[_0x179b4f(0x37c)](_0x5c2a1e[_0x179b4f(0x22d)]),this[_0x179b4f(0x31d)]=Number[_0x179b4f(0x37c)](_0x5c2a1e[_0x179b4f(0x3a8)]);}async[_0x17a902(0x1ed)](_0x57e6a3){const _0xd4e932=_0x17a902,_0x2a9a08=Date[_0xd4e932(0x318)]();try{var _0x1ff6bf,_0xf4505a;const _0x3e1849=((_0x1ff6bf=this[_0xd4e932(0x271)][_0xd4e932(0x1c4)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x1ff6bf===void 0x0?void 0x0:_0x1ff6bf[_0xd4e932(0x22e)])||DEFAULT_FORMULA_CALCULATION_LIMIT_START_URL,_0x56e640=(await this[_0xd4e932(0x296)][_0xd4e932(0x3ae)](_0x3e1849,{'body':JSON[_0xd4e932(0x209)]({'taskId':_0x57e6a3})}))['body'];if(((_0xf4505a=_0x56e640[_0xd4e932(0x23e)])===null||_0xf4505a===void 0x0?void 0x0:_0xf4505a[_0xd4e932(0x332)])!==ErrorCode['OK'])return;this[_0xd4e932(0x2ee)](_0x56e640[_0xd4e932(0x3ad)],_0x2a9a08);}catch(_0x4ab465){this['_logService']['error'](_0x4ab465);}}async[_0x17a902(0x3c4)](_0x33377b){const _0x4897ab=_0x17a902,_0x598f68=Date[_0x4897ab(0x318)]();try{var _0x319f9d,_0x15afe8;const _0x27afd1=((_0x319f9d=this[_0x4897ab(0x271)][_0x4897ab(0x1c4)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0x319f9d===void 0x0?void 0x0:_0x319f9d['getFormulaLimitStatusUrl'])||DEFAULT_FORMULA_CALCULATION_LIMIT_STATUS_URL,_0x17c0e7=_0x33377b?_0x27afd1+_0x4897ab(0x31f)+encodeURIComponent(_0x33377b):_0x27afd1,_0x587191=(await this['_httpService'][_0x4897ab(0x1cf)](_0x17c0e7))['body'];if(((_0x15afe8=_0x587191[_0x4897ab(0x23e)])===null||_0x15afe8===void 0x0?void 0x0:_0x15afe8[_0x4897ab(0x332)])!==ErrorCode['OK'])return;this['_setFormulaLimitStatus'](_0x587191[_0x4897ab(0x3ad)],_0x598f68);}catch(_0x56685f){this['_logService'][_0x4897ab(0x23e)](_0x56685f);}}async[_0x17a902(0x267)](_0x1fe65f){const _0x3c52e1=_0x17a902,_0x588824=Date[_0x3c52e1(0x318)]();try{var _0xe0d1fe,_0x3ccd6c;const _0x3a011f=((_0xe0d1fe=this[_0x3c52e1(0x271)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY))===null||_0xe0d1fe===void 0x0?void 0x0:_0xe0d1fe['releaseFormulaLimitUrl'])||DEFAULT_FORMULA_CALCULATION_LIMIT_DONE_URL,_0x444772=(await this[_0x3c52e1(0x296)][_0x3c52e1(0x3ae)](_0x3a011f,{'body':JSON['stringify']({'taskId':_0x1fe65f})}))[_0x3c52e1(0x26d)];if(((_0x3ccd6c=_0x444772[_0x3c52e1(0x23e)])===null||_0x3ccd6c===void 0x0?void 0x0:_0x3ccd6c[_0x3c52e1(0x332)])!==ErrorCode['OK'])return;this[_0x3c52e1(0x2ee)](_0x444772['limitInfo'],_0x588824);}catch(_0xe86570){this[_0x3c52e1(0x39c)][_0x3c52e1(0x23e)](_0xe86570);}}[_0x17a902(0x363)](){const _0x1edfef=_0x17a902;if(this[_0x1edfef(0x35d)]===0x0)return!![];return this[_0x1edfef(0x35d)]-this[_0x1edfef(0x31d)]>0x0;}[_0x17a902(0x291)](){const _0x3d79e2=_0x17a902;this[_0x3d79e2(0x1fb)]&&(clearTimeout(this[_0x3d79e2(0x1fb)]),this[_0x3d79e2(0x1fb)]=null);}[_0x17a902(0x1b1)](){const _0x1f5d9b=_0x17a902;this[_0x1f5d9b(0x2de)][_0x1f5d9b(0x2a4)]({'content':this[_0x1f5d9b(0x1b2)]['t']('formula.calculation.waiting'),'type':MessageType[_0x1f5d9b(0x265)]});}[_0x17a902(0x375)](_0x226aea){const _0x3c1f9a=_0x17a902;for(const _0x77a741 of _0x226aea){const {unitId:_0xfb9e13,sheetId:_0x338a68,range:_0x45bf6a}=_0x77a741,_0x507774=this['_univerInstanceService'][_0x3c1f9a(0x28b)](_0xfb9e13);if(!_0x507774)continue;const _0x327b38=_0x507774[_0x3c1f9a(0x393)](_0x338a68);if(!_0x327b38)continue;const _0x555ef9=_0x327b38['getCellMatrix']();for(let _0x5cfea7=_0x45bf6a[_0x3c1f9a(0x386)];_0x5cfea7<=_0x45bf6a[_0x3c1f9a(0x37f)];_0x5cfea7++)for(let _0x5eaecc=_0x45bf6a[_0x3c1f9a(0x369)];_0x5eaecc<=_0x45bf6a[_0x3c1f9a(0x28c)];_0x5eaecc++){const _0x4f17f7=_0x555ef9['getValue'](_0x5cfea7,_0x5eaecc);if(_0x4f17f7&&(isFormulaString(_0x4f17f7['f'])||isFormulaId(_0x4f17f7['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(_0x4ad347,_0x2d1ee5,_0x4b9de5){const _0x45e389=_0x17a902;super(),this['_configService']=_0x4ad347,this[_0x45e389(0x308)]=_0x2d1ee5,this['_revisionService']=_0x4b9de5,_defineProperty(this,_0x45e389(0x263),new Map()),_defineProperty(this,'_saveTaskMap',new Map()),_defineProperty(this,_0x45e389(0x30a),![]);}[_0x17a902(0x1f1)](){this['_disabled']=!![];}[_0x17a902(0x1c7)](){this['_disabled']=![];}get[_0x17a902(0x1d1)](){return this['_saveTaskMap'];}['dispose'](){const _0x2d0e75=_0x17a902;this['exhaustSavingTask']()['then'](()=>super[_0x2d0e75(0x2e6)]());}async[_0x17a902(0x2b8)](_0x50b3c2){const _0x350874=_0x17a902;if(this[_0x350874(0x30a)])return null;return this[_0x350874(0x308)][_0x350874(0x237)](getLocalCacheKey(_0x50b3c2));}async[_0x17a902(0x3a1)](_0x11ed8d,_0x5806db){const _0x2891d9=_0x17a902;return!!this[_0x2891d9(0x308)]['setItem'](_0x11ed8d,_0x5806db);}[_0x17a902(0x1e2)](_0x10b6e1,_0x4aed81,_0x4dd802,_0xd949b2){const _0x19cb2b=_0x17a902,_0x912aa8=this[_0x19cb2b(0x39d)][_0x19cb2b(0x390)](_0x10b6e1);this[_0x19cb2b(0x263)][_0x19cb2b(0x224)](_0x10b6e1,{'unitID':_0x10b6e1,'type':_0x4aed81,'awaitingChangeset':_0x4dd802,'mutations':_0xd949b2,'rev':_0x912aa8});if(!this[_0x19cb2b(0x3a0)]['has'](_0x10b6e1))this[_0x19cb2b(0x26b)](_0x10b6e1);}['_scheduleSaving'](_0x4f6549){const _0x2e2de8=_0x17a902,_0x3de37b=this[_0x2e2de8(0x299)]();if(_0x3de37b===0x0)this[_0x2e2de8(0x268)](_0x4f6549);else this[_0x2e2de8(0x3a0)]['set'](_0x4f6549,setTimeout(()=>this['_saveCache'](_0x4f6549),_0x3de37b));}[_0x17a902(0x299)](){const _0x2d108f=_0x17a902;var _0xdd091;return(_0xdd091=this[_0x2d108f(0x271)][_0x2d108f(0x1c4)](LOCAL_CACHE_INTERVAL_KEY))!==null&&_0xdd091!==void 0x0?_0xdd091:LOCAL_CACHE_INTERVAL;}[_0x17a902(0x268)](_0x4940ee){const _0x22b286=_0x17a902,_0x5bcc05=this[_0x22b286(0x3a0)]['get'](_0x4940ee);if(_0x5bcc05!==void 0x0)window[_0x22b286(0x234)](_0x5bcc05);return this[_0x22b286(0x308)][_0x22b286(0x336)](getLocalCacheKey(_0x4940ee),this[_0x22b286(0x263)][_0x22b286(0x1cf)](_0x4940ee))[_0x22b286(0x287)](()=>this[_0x22b286(0x3a0)]['delete'](_0x4940ee));}async['exhaustSavingTask'](){const _0x2592ad=_0x17a902,_0x1982ec=[];this[_0x2592ad(0x3a0)][_0x2592ad(0x226)]((_0x1909f9,_0x27b7eb)=>{const _0x206275=_0x2592ad;window['clearTimeout'](_0x1909f9),_0x1982ec[_0x206275(0x36a)](this[_0x206275(0x268)](_0x27b7eb)['then'](()=>{const _0x51f034=_0x206275;this['_saveTaskMap'][_0x51f034(0x27c)](_0x27b7eb);}));}),await Promise[_0x2592ad(0x348)](_0x1982ec);}};WebLocalCacheService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,ILocalStorageService),__decorateParam(0x2,Inject(RevisionService))],WebLocalCacheService);var WebURLService=class extends RxDisposable{constructor(){const _0x45d615=_0x17a902;super(),_defineProperty(this,_0x45d615(0x24b),void 0x0),this['urlChange$']=fromEvent(window,_0x45d615(0x30c))['pipe'](takeUntil(this[_0x45d615(0x323)]),shareReplay(0x1),mapTo(void 0x0));}[_0x17a902(0x1d9)](_0x39a00c,_0xc3f4f2,_0x36e378=![]){const _0x3099ad=_0x17a902,_0x3d18ce=new URL(window[_0x3099ad(0x3a2)][_0x3099ad(0x2fb)]);_0x3d18ce[_0x3099ad(0x1c1)][_0x3099ad(0x224)](_0x39a00c,_0xc3f4f2);if(_0x36e378)window['history'][_0x3099ad(0x1ea)]('','',_0x3d18ce[_0x3099ad(0x1aa)]());else window[_0x3099ad(0x2c5)][_0x3099ad(0x211)]('','',_0x3d18ce['toString']());}['removeParam'](_0xa64fd2,_0x367807=![]){const _0x4cdd7a=_0x17a902,_0x337c47=new URL(window[_0x4cdd7a(0x3a2)][_0x4cdd7a(0x2fb)]);_0x337c47[_0x4cdd7a(0x1c1)][_0x4cdd7a(0x27c)](_0xa64fd2);if(_0x367807)window['history']['replaceState']('','',_0x337c47[_0x4cdd7a(0x1aa)]());else window[_0x4cdd7a(0x2c5)][_0x4cdd7a(0x211)]('','',_0x337c47[_0x4cdd7a(0x1aa)]());}[_0x17a902(0x3b5)](_0x4e8f5f){const _0x3c9c8e=_0x17a902;var _0x4a5300;return(_0x4a5300=new URL(window[_0x3c9c8e(0x3a2)]['href'])[_0x3c9c8e(0x1c1)][_0x3c9c8e(0x1cf)](_0x4e8f5f))!==null&&_0x4a5300!==void 0x0?_0x4a5300:void 0x0;}};let UniverCollaborationClientUIPlugin=class UniverCollaborationClientUIPlugin extends Plugin{constructor(_0x40745b=defaultPluginConfig,_0x390f46,_0x1f0205,_0x345b45){const _0x12313e=_0x17a902;super(),this[_0x12313e(0x283)]=_0x40745b,this[_0x12313e(0x3b4)]=_0x390f46,this[_0x12313e(0x21e)]=_0x1f0205,this[_0x12313e(0x271)]=_0x345b45;const {..._0x3030d6}=merge({},defaultPluginConfig,this[_0x12313e(0x283)]);this['_configService'][_0x12313e(0x1b7)](PLUGIN_CONFIG_KEY,_0x3030d6);}[_0x17a902(0x306)](){const _0x281082=_0x17a902;this[_0x281082(0x28f)](),this[_0x281082(0x356)]();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x38f837=_0x17a902;var _0x589e86;const _0x11ed5e=[[ColorAssignService],[FormulaCalculationGuardService],[DocTransformSelectionsService],[DocTransformIMECacheService],[DocTransformStateCacheService],[DocSyncEditingCollabCursorService],[IURLService,{'useClass':WebURLService}],[ISocketService,{'useClass':WebSocketService}],[ILocalCacheService,{'useClass':WebLocalCacheService}],[DesktopCollaborationStatusDisplayController],[CollaborationEntityUIController],[CollaborationClientUIController],[CollabCursorController],[ImagePasteController],[CollaborationDataLoaderController]];if(this[_0x38f837(0x283)][_0x38f837(0x31a)])_0x11ed5e[_0x38f837(0x36a)]([FrontendLogController]);registerDependencies(this[_0x38f837(0x21e)],mergeOverrideWithDependencies(_0x11ed5e,(_0x589e86=this[_0x38f837(0x283)])===null||_0x589e86===void 0x0?void 0x0:_0x589e86[_0x38f837(0x1fe)]));}[_0x17a902(0x1d7)](){const _0x4ab2d0=_0x17a902;this[_0x4ab2d0(0x2d3)](this[_0x4ab2d0(0x3b4)][_0x4ab2d0(0x25b)](UniverInstanceType[_0x4ab2d0(0x1a6)],[DocCollabCursorRenderController])),this[_0x4ab2d0(0x2d3)](this[_0x4ab2d0(0x3b4)][_0x4ab2d0(0x25b)](UniverInstanceType[_0x4ab2d0(0x22b)],[SheetCollabCursorRenderController]));}[_0x17a902(0x356)](){const _0x23da25=_0x17a902;touchDependencies(this['_injector'],[[CollabCursorController],[DesktopCollaborationStatusDisplayController],[CollaborationEntityUIController],[CollaborationClientUIController],[CollaborationDataLoaderController],[FormulaCalculationGuardService]]);if(this[_0x23da25(0x283)][_0x23da25(0x31a)])touchDependencies(this[_0x23da25(0x21e)],[[FrontendLogController]]);}};_defineProperty(UniverCollaborationClientUIPlugin,_0x17a902(0x1a8),'UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),_defineProperty(UniverCollaborationClientUIPlugin,'packageName',name),_defineProperty(UniverCollaborationClientUIPlugin,_0x17a902(0x32d),version),UniverCollaborationClientUIPlugin=__decorate([DependentOn(UniverCollaborationClientPlugin),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientUIPlugin);let BrowserCollaborationSocketService=class BrowserCollaborationSocketService extends CollaborationSocketService{constructor(_0x220be7,_0x54579e,_0x912034,_0x4658ad,_0x22dfce){super(_0x220be7,_0x54579e,_0x912034,_0x4658ad,_0x22dfce);}async[_0x17a902(0x1f4)](_0x436b65){const _0x54b776=_0x17a902,_0x450994=await this[_0x54b776(0x384)](),_0x2f4fdc=this[_0x54b776(0x1ff)](_0x436b65,_0x450994);return this[_0x54b776(0x324)](_0x2f4fdc);}[_0x17a902(0x1ff)](_0x578aa8,_0x16655f){const _0x58b114=_0x17a902,_0x2e99da=typeof window===_0x58b114(0x35e)?new URL(_0x578aa8):new URL(_0x578aa8,window[_0x58b114(0x3a2)][_0x58b114(0x374)]);_0x2e99da[_0x58b114(0x1c1)][_0x58b114(0x224)]('sessionTicket',_0x16655f);const _0x14582f=typeof window===_0x58b114(0x35e)?new URLSearchParams():new URLSearchParams(window[_0x58b114(0x3a2)][_0x58b114(0x313)]);return _0x14582f['get'](_0x58b114(0x352))&&_0x2e99da[_0x58b114(0x1c1)]['set'](_0x58b114(0x352),_0x14582f['get'](_0x58b114(0x352))),_0x2e99da[_0x58b114(0x1aa)]();}async[_0x17a902(0x384)](){const _0x2026f8=_0x17a902;var _0x15f666,_0xa52936,_0x15ccc5;const _0x2f3d79=this[_0x2026f8(0x271)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x2c924c=(_0x15f666=_0x2f3d79===null||_0x2f3d79===void 0x0?void 0x0:_0x2f3d79[_0x2026f8(0x1e9)])!==null&&_0x15f666!==void 0x0?_0x15f666:DEFAULT_WS_SESSION_TICKET_URL;return(_0xa52936=(_0x15ccc5=(await this[_0x2026f8(0x296)][_0x2026f8(0x1cf)](_0x2c924c,{'headers':{'Content-Type':_0x2026f8(0x334)}}))[_0x2026f8(0x26d)])===null||_0x15ccc5===void 0x0?void 0x0:_0x15ccc5[_0x2026f8(0x2b0)])!==null&&_0xa52936!==void 0x0?_0xa52936:'';}};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(_0x4bccc4,_0x219b81,_0x252701){const _0x2bf60e=_0x17a902;super(),this[_0x2bf60e(0x349)]=_0x4bccc4,this['_httpService']=_0x219b81,this[_0x2bf60e(0x271)]=_0x252701;}async[_0x17a902(0x312)](_0x347f06,_0xf55437,_0x16de8c,..._0x386e34){const _0xf5adb0=_0x17a902;var _0x5c6b8c,_0x3b7d05,_0x16ff1f,_0x301f3f;const _0x598dbc=this[_0xf5adb0(0x349)][_0xf5adb0(0x38e)]();if(!_0x598dbc)throw new Error(_0xf5adb0(0x23d));const _0x5cbc99=((_0x5c6b8c=this[_0xf5adb0(0x271)][_0xf5adb0(0x1c4)](REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY))!==null&&_0x5c6b8c!==void 0x0?_0x5c6b8c:DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT)+'/'+_0x347f06+_0xf5adb0(0x222)+_0xf55437,_0xa91e19={'scriptId':_0x347f06,'runId':(_0x3b7d05=new URL(window[_0xf5adb0(0x3a2)][_0xf5adb0(0x2fb)])[_0xf5adb0(0x1c1)][_0xf5adb0(0x1cf)]('runId'))!==null&&_0x3b7d05!==void 0x0?_0x3b7d05:'','function':_0xf55437,'unitId':_0x598dbc[_0xf5adb0(0x2d8)](),'argsOfFunction':JSON[_0xf5adb0(0x209)](_0x386e34),'invokeId':(_0x16ff1f=_0x16de8c[_0xf5adb0(0x36b)])!==null&&_0x16ff1f!==void 0x0?_0x16ff1f:'','executionId':(_0x301f3f=_0x16de8c[_0xf5adb0(0x2f4)])!==null&&_0x301f3f!==void 0x0?_0x301f3f:''};try{const _0x3b14d6=await this['_httpService']['post'](_0x5cbc99,{'body':_0xa91e19});if(_0x3b14d6['body'][_0xf5adb0(0x23e)]&&_0x3b14d6['body'][_0xf5adb0(0x23e)][_0xf5adb0(0x332)]!==ErrorCode['OK'])return _0xf5adb0(0x338);return _0x3b14d6[_0xf5adb0(0x26d)][_0xf5adb0(0x322)];}catch{return'Failed';}}};RemoteUniscriptService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService)],RemoteUniscriptService);var SingleActiveUnitEventType=function(_0x311393){const _0x5c77c2=_0x17a902;return _0x311393[_0x311393[_0x5c77c2(0x233)]=0x0]=_0x5c77c2(0x233),_0x311393[_0x311393[_0x5c77c2(0x2ce)]=0x1]=_0x5c77c2(0x2ce),_0x311393[_0x311393[_0x5c77c2(0x366)]=0x2]=_0x5c77c2(0x366),_0x311393;}(SingleActiveUnitEventType||{});const HEARTBEAT_INTERVAL=0x7530,ACTIVE_UNIT_EVENT_CHANNEL=_0x17a902(0x255);var WebBrowserSingleActiveUnitService=class extends Disposable{constructor(){const _0x2aa70b=_0x17a902;super(),_defineProperty(this,_0x2aa70b(0x206),generateRandomId()),_defineProperty(this,'_selfUnitIDs',new Set()),_defineProperty(this,_0x2aa70b(0x32e),new Map()),_defineProperty(this,_0x2aa70b(0x27e),null),_defineProperty(this,_0x2aa70b(0x1ba),new Map()),_defineProperty(this,_0x2aa70b(0x29f),new Map()),this['_init']();}[_0x17a902(0x2e6)](){const _0x53f6a9=_0x17a902;super[_0x53f6a9(0x2e6)](),this[_0x53f6a9(0x1ba)][_0x53f6a9(0x226)]((_0x3e41b5,_0x49cc57)=>this[_0x53f6a9(0x1f8)](_0x49cc57));if(this[_0x53f6a9(0x27e)])window['clearInterval'](this[_0x53f6a9(0x27e)]);}['getUnitStatus$'](_0x345c14){const _0x22b39c=_0x17a902;return this['_ensureSubject'](_0x345c14)[_0x22b39c(0x1de)](distinctUntilChanged());}[_0x17a902(0x33f)](_0x30507d){const _0x36be5e=_0x17a902;if(this['_selfUnitIDs'][_0x36be5e(0x2c4)]===0x0)this[_0x36be5e(0x215)]();this[_0x36be5e(0x1f6)][_0x36be5e(0x3ab)](_0x30507d),this[_0x36be5e(0x3a3)]({'type':SingleActiveUnitEventType[_0x36be5e(0x233)],'memberID':this[_0x36be5e(0x206)],'unitIDs':[_0x30507d],'isForwarded':![]});}[_0x17a902(0x21a)](_0x5061c5){const _0x42e5f6=_0x17a902;this[_0x42e5f6(0x1f6)][_0x42e5f6(0x27c)](_0x5061c5);if(this[_0x42e5f6(0x1f6)][_0x42e5f6(0x2c4)]===0x0&&this[_0x42e5f6(0x27e)])window[_0x42e5f6(0x228)](this['_heartbeatTimer']);}['_init'](){const _0x6fa244=_0x17a902;this[_0x6fa244(0x2d3)](toDisposable(fromEvent(window,_0x6fa244(0x279))[_0x6fa244(0x1d4)](_0x219ff3=>{const _0x5c6d71=_0x6fa244;if(_0x219ff3[_0x5c6d71(0x316)]!==ACTIVE_UNIT_EVENT_CHANNEL||!_0x219ff3[_0x5c6d71(0x1f5)])return;const _0x1cb4a0=JSON[_0x5c6d71(0x36e)](_0x219ff3[_0x5c6d71(0x1f5)]);this[_0x5c6d71(0x2fe)](_0x1cb4a0);}))),window[_0x6fa244(0x1ce)](_0x6fa244(0x28e),()=>this[_0x6fa244(0x3a3)]({'type':SingleActiveUnitEventType[_0x6fa244(0x2ce)],'memberID':this[_0x6fa244(0x206)],'unitIDs':Array[_0x6fa244(0x26c)](this[_0x6fa244(0x1f6)])}));}[_0x17a902(0x2fe)](_0x3ce47f){const _0x2fd009=_0x17a902;switch(_0x3ce47f[_0x2fd009(0x391)]){case SingleActiveUnitEventType['JOIN']:this[_0x2fd009(0x214)](_0x3ce47f);break;case SingleActiveUnitEventType[_0x2fd009(0x2ce)]:this['_handleLeaveEvent'](_0x3ce47f);break;case SingleActiveUnitEventType[_0x2fd009(0x366)]:this['_handleHeartbeatEvent'](_0x3ce47f);break;}}[_0x17a902(0x214)](_0x16797a){const _0x48f5ad=_0x17a902,{unitIDs:_0x5b216a,memberID:_0x56916d,isForwarded:_0x24dd3e}=_0x16797a;_0x5b216a[_0x48f5ad(0x226)](_0x59e1a8=>{const _0x2886c8=_0x48f5ad;if(!_0x24dd3e&&this[_0x2886c8(0x32e)][_0x2886c8(0x1c8)](_0x59e1a8))this['_ensureSubject'](_0x59e1a8)['next'](UnitStatus['OTHER_CLIENTS_EDITING']);if(!this[_0x2886c8(0x32e)][_0x2886c8(0x1c8)](_0x59e1a8)||!this[_0x2886c8(0x32e)]['get'](_0x59e1a8)[_0x2886c8(0x1c8)](_0x56916d)){const _0x1d8f95=this[_0x2886c8(0x32e)][_0x2886c8(0x1cf)](_0x59e1a8)||new Set();_0x1d8f95['add'](_0x56916d),this[_0x2886c8(0x32e)][_0x2886c8(0x224)](_0x59e1a8,_0x1d8f95),this[_0x2886c8(0x382)](_0x56916d);}});if(!_0x24dd3e)this['_send']({'type':SingleActiveUnitEventType[_0x48f5ad(0x233)],'memberID':this['_id'],'unitIDs':[...this[_0x48f5ad(0x1f6)]],'isForwarded':!![]});}[_0x17a902(0x382)](_0x5efd5f){const _0x2c7554=_0x17a902;this[_0x2c7554(0x1f8)](_0x5efd5f);const _0x28ed8c=window[_0x2c7554(0x2a8)](()=>{const _0x16fdb8=_0x2c7554;this['_unitOnClients'][_0x16fdb8(0x226)](_0x35eebd=>{const _0x53d5c6=_0x16fdb8;_0x35eebd[_0x53d5c6(0x27c)](_0x5efd5f);});},HEARTBEAT_INTERVAL*0x2);this[_0x2c7554(0x1ba)][_0x2c7554(0x224)](_0x5efd5f,_0x28ed8c);}[_0x17a902(0x1f8)](_0x156358){const _0x29cc99=_0x17a902;if(this[_0x29cc99(0x1ba)][_0x29cc99(0x1c8)](_0x156358)){const _0x142607=this['_clearOtherTimers'][_0x29cc99(0x1cf)](_0x156358);if(_0x142607)window['clearTimeout'](_0x142607);this['_clearOtherTimers'][_0x29cc99(0x224)](_0x156358,null);}}['_handleLeaveEvent'](_0x17bdc7){const _0x3f288b=_0x17a902,{memberID:_0x16d894,unitIDs:_0x5753b2}=_0x17bdc7;_0x5753b2[_0x3f288b(0x226)](_0x5556ec=>{const _0x1f08cf=_0x3f288b;var _0x437b55;const _0x921eb5=this[_0x1f08cf(0x32e)][_0x1f08cf(0x1cf)](_0x5556ec);if(!_0x921eb5)return;_0x921eb5[_0x1f08cf(0x27c)](_0x16d894),(_0x437b55=this[_0x1f08cf(0x1bd)](_0x5556ec))===null||_0x437b55===void 0x0||_0x437b55['next'](_0x921eb5[_0x1f08cf(0x2c4)]===0x0?UnitStatus[_0x1f08cf(0x1e7)]:UnitStatus[_0x1f08cf(0x2a3)]);}),this[_0x3f288b(0x1f8)](_0x16d894);}[_0x17a902(0x229)](_0x188c70){const _0x2f891d=_0x17a902;this[_0x2f891d(0x382)](_0x188c70[_0x2f891d(0x36f)]);}['_send'](_0x2ec686){const _0xb3079d=_0x17a902;localStorage[_0xb3079d(0x336)](ACTIVE_UNIT_EVENT_CHANNEL,JSON[_0xb3079d(0x209)](_0x2ec686));}['_scheduleHeartbeat'](){const _0x4a09b0=_0x17a902;this[_0x4a09b0(0x27e)]=window['setInterval'](()=>{const _0x4b0406=_0x4a09b0;this['_send']({'type':SingleActiveUnitEventType[_0x4b0406(0x366)],'memberID':this[_0x4b0406(0x206)]});},HEARTBEAT_INTERVAL);}['_ensureSubject'](_0xec0d05){const _0x181e75=_0x17a902;if(!this[_0x181e75(0x29f)][_0x181e75(0x1c8)](_0xec0d05))this[_0x181e75(0x29f)]['set'](_0xec0d05,new BehaviorSubject(UnitStatus[_0x181e75(0x1e7)]));return this[_0x181e75(0x29f)][_0x181e75(0x1cf)](_0xec0d05);}};export{BrowserCollaborationSocketService,CollaborationDataLoaderController,DesktopCollaborationStatusDisplayController,IURLService,RemoteUniscriptService,SheetCollabCursorShape,UniverCollaborationClientUIPlugin,WebBrowserSingleActiveUnitService,WebURLService};
@@ -1 +1 @@
1
- const _0x1d72e9=_0x1328;(function(_0xf1ad77,_0xc1eaa8){const _0x24b110=_0x1328,_0x44ca2c=_0xf1ad77();while(!![]){try{const _0x55c681=parseInt(_0x24b110(0x155))/0x1*(parseInt(_0x24b110(0x152))/0x2)+-parseInt(_0x24b110(0x14d))/0x3+parseInt(_0x24b110(0x154))/0x4+-parseInt(_0x24b110(0x15e))/0x5+-parseInt(_0x24b110(0x15a))/0x6+parseInt(_0x24b110(0x15f))/0x7+parseInt(_0x24b110(0x151))/0x8;if(_0x55c681===_0xc1eaa8)break;else _0x44ca2c['push'](_0x44ca2c['shift']());}catch(_0x5aeece){_0x44ca2c['push'](_0x44ca2c['shift']());}}}(_0x586a,0xf23ce));function _0x1328(_0x5d5ab1,_0x32e5f2){_0x5d5ab1=_0x5d5ab1-0x149;const _0x586a6a=_0x586a();let _0x1328ba=_0x586a6a[_0x5d5ab1];return _0x1328ba;}function _0x586a(){const _0xa33f1f=['Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Collaboration\x20Conflict','Unable\x20to\x20perform\x20formula\x20calculation\x20at\x20this\x20time.\x20Please\x20try\x20again\x20later.','2696145omHSiX','Syncing...','Formula\x20calculation\x20started.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1820656XIayQu','26054hYaqBc','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','999868xFUCXX','139SLAZuk','You\x20have\x20offline\x20edits\x20that\x20have\x20not\x20been\x20saved\x20to\x20the\x20server.\x20Please\x20check\x20your\x20network\x20and\x20try\x20again.','Connection\x20failed,\x20please\x20check\x20your\x20network.','Local\x20file','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','4944624WCrwbT','Edit\x20conflicts','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','4940170zqVauj','9903299xFAute','Formula\x20calculation\x20queue\x20is\x20full,\x20waiting\x20for\x20available\x20slot...'];_0x586a=function(){return _0xa33f1f;};return _0x586a();}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x1d72e9(0x15d),'conflict':_0x1d72e9(0x15b),'notCollab':_0x1d72e9(0x158),'synced':'Synced','syncing':_0x1d72e9(0x14e),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x1d72e9(0x157),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x1d72e9(0x14a),'collaboration-timeout':_0x1d72e9(0x153)},'conflict':{'title':_0x1d72e9(0x14b),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':'Authentication\x20Error','content':_0x1d72e9(0x15c)},'collaboration':{'offline-data-not-saved':_0x1d72e9(0x156),'single-unit':{'warning':_0x1d72e9(0x150)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x1d72e9(0x159)},'formula':{'calculation':{'started':_0x1d72e9(0x14f),'waiting':_0x1d72e9(0x149),'unable':_0x1d72e9(0x14c)}}};export{e as default};
1
+ function _0x1c92(_0x3b35e6,_0x4712a1){_0x3b35e6=_0x3b35e6-0xb3;const _0x57d9fb=_0x57d9();let _0x1c9285=_0x57d9fb[_0x3b35e6];return _0x1c9285;}const _0x720cf=_0x1c92;(function(_0x5145b8,_0x5fa0b4){const _0x17aa7b=_0x1c92,_0x3aedbd=_0x5145b8();while(!![]){try{const _0x4bd774=parseInt(_0x17aa7b(0xcb))/0x1*(parseInt(_0x17aa7b(0xbc))/0x2)+-parseInt(_0x17aa7b(0xc0))/0x3+-parseInt(_0x17aa7b(0xb6))/0x4*(parseInt(_0x17aa7b(0xb3))/0x5)+-parseInt(_0x17aa7b(0xba))/0x6*(-parseInt(_0x17aa7b(0xcd))/0x7)+parseInt(_0x17aa7b(0xbe))/0x8+-parseInt(_0x17aa7b(0xb8))/0x9+-parseInt(_0x17aa7b(0xb4))/0xa*(-parseInt(_0x17aa7b(0xc4))/0xb);if(_0x4bd774===_0x5fa0b4)break;else _0x3aedbd['push'](_0x3aedbd['shift']());}catch(_0x14bc9b){_0x3aedbd['push'](_0x3aedbd['shift']());}}}(_0x57d9,0x742f4));const locale$1={'collab-client':{'tooltip':{'reconnect':_0x720cf(0xb9)}},'collabStatus':{'fetchMiss':_0x720cf(0xc1),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':_0x720cf(0xc2),'syncing':'Syncing...','offline':_0x720cf(0xbb)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x720cf(0xb5),'room-full':_0x720cf(0xc8),'collaboration-timeout':_0x720cf(0xbd)},'conflict':{'title':_0x720cf(0xc5),'content':_0x720cf(0xcc)},'permission':{'title':_0x720cf(0xbf),'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':_0x720cf(0xca)},'closeRoom':_0x720cf(0xc3)},'auth':{'needGotoLoginAlert':_0x720cf(0xb7)},'formula':{'calculation':{'started':_0x720cf(0xc9),'waiting':_0x720cf(0xc6),'unable':_0x720cf(0xc7)}}},locale=locale$1;function _0x57d9(){const _0xf8b632=['Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','15983dgiCSb','Collaboration\x20Conflict','Formula\x20calculation\x20queue\x20is\x20full,\x20waiting\x20for\x20available\x20slot...','Unable\x20to\x20perform\x20formula\x20calculation\x20at\x20this\x20time.\x20Please\x20try\x20again\x20later.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Formula\x20calculation\x20started.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','483603MKkOvt','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.','147EYgXRq','5255yPxFzW','4250frlTKt','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1180VWgKWS','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','3798630ZRuBlD','Click\x20to\x20Reconnect','1758LONhST','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','2PxKlMx','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','1969760VOsVtY','Authentication\x20Error','436482FdIaBN','Syncing\x20server\x20data...','Synced'];_0x57d9=function(){return _0xf8b632;};return _0x57d9();}export{locale as default};