@univerjs-pro/collaboration-client-ui 0.12.1-nightly.202511221011 → 0.12.1

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 (53) 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/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +15 -15
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1bab67=_0x4050;(function(_0x1011b,_0x3908fa){const _0x410ebc=_0x4050,_0x5d27ff=_0x1011b();while(!![]){try{const _0x4a1eef=parseInt(_0x410ebc(0x3e3))/0x1*(-parseInt(_0x410ebc(0x317))/0x2)+-parseInt(_0x410ebc(0x234))/0x3+-parseInt(_0x410ebc(0x331))/0x4+-parseInt(_0x410ebc(0x1e9))/0x5+-parseInt(_0x410ebc(0x1de))/0x6*(-parseInt(_0x410ebc(0x3a5))/0x7)+-parseInt(_0x410ebc(0x368))/0x8*(parseInt(_0x410ebc(0x392))/0x9)+parseInt(_0x410ebc(0x208))/0xa;if(_0x4a1eef===_0x3908fa)break;else _0x5d27ff['push'](_0x5d27ff['shift']());}catch(_0x4758be){_0x5d27ff['push'](_0x5d27ff['shift']());}}}(_0x2e9d,0xbb006));var Yt=Object['defineProperty'],Wt=(_0x482695,_0x18a159,_0x4abdc0)=>_0x18a159 in _0x482695?Yt(_0x482695,_0x18a159,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4abdc0}):_0x482695[_0x18a159]=_0x4abdc0,_=(_0x3253da,_0x267ec8,_0x2ad90d)=>Wt(_0x3253da,typeof _0x267ec8!=_0x1bab67(0x391)?_0x267ec8+'':_0x267ec8,_0x2ad90d);import{jsx as _0x2b343a,jsxs as _0x548497}from'react/jsx-runtime';import{CollaborationStatus as _0x1db3c4,CollaborationSessionService as _0x5b8361,CollaborationController as _0x519a49,DataLoaderService as _0x403737,MemberService as _0x4b1a14,SessionStatus as _0x407a80,ILocalCacheService as _0x47e6d9,CollaborationUIEventService as _0x1cc67e,CollaborationUIEventId as _0x4fffd5,DocCollaborationEntity as _0x1d8428,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4f0d33,getLocalCacheKey as _0x35f275,LOCAL_CACHE_INTERVAL as _0x389196,LOCAL_CACHE_INTERVAL_KEY as _0x295962,UniverCollaborationClientPlugin as _0x306f7d,CollaborationSocketService as _0x5160fc,DEFAULT_WS_SESSION_TICKET_URL as _0x38397b,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x48ebf0,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x21d34e,UnitStatus as _0x1daf11}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x358b52,IUniverInstanceService as _0x3b2157,Inject as _0x5a79e2,Injector as _0x41a636,Disposable as _0x570ab2,createIdentifier as _0x2fa984,ILogService as _0xf1ee96,ICommandService as _0x34fc9a,Optional as _0x173b7e,RxDisposable as _0xb8eb03,Workbook as _0x456127,DOC_RANGE_TYPE as _0x4c6b17,debounce as _0x3dabb7,Rectangle as _0x3f41b8,DisposableCollection as _0x59db6f,toDisposable as _0x2b2711,UniverInstanceType as _0x547011,generateRandomId as _0x2679ea,COLORS as _0xee8009,ColorKit as _0x55dc10,ThemeService as _0x3c6cac,fromEventSubject as _0x525fe4,Tools as _0x3b1d01,CommandType as _0x5d535e,IConfigService as _0x52bdc7,CanceledError as _0x419811,isFormulaString as _0x9c35a0,isFormulaId as _0x28c56f,ILocalStorageService as _0x5852d4,DependentOn as _0x32854b,Plugin as _0x26861e,merge as _0x2b8749,registerDependencies as _0x28fdc0,mergeOverrideWithDependencies as _0x7f7db3,touchDependencies as _0x4c947a}from'@univerjs/core';import{useObservable as _0x26e909,useDependency as _0xe6eb82,IUIPartsService as _0xc64278,BuiltInUIPart as _0x20bf22,connectInjector as _0x25cd97,IBeforeCloseService as _0x912558,IMessageService as _0x116021,INotificationService as _0x259113}from'@univerjs/ui';import{BehaviorSubject as _0x42c9f3,switchMap as _0x404b1e,of as _0x147589,takeUntil as _0x4cbc42,debounceTime as _0x48e44d,Subject as _0xbe2b9d,filter as _0x22f5b1,merge as _0x33fea5,combineLatest as _0x188334,fromEvent as _0x5af89f,shareReplay as _0x3b24b5,mapTo as _0x50b777,distinctUntilChanged as _0x7cced5}from'rxjs';import{Tooltip as _0x4a0b9c,clsx as _0x37fe69,MessageType as _0x5d27fe}from'@univerjs/design';import{useRef as _0x1a4b64,createElement as _0x375bb9,forwardRef as _0x4314be,useCallback as _0xb36e2e}from'react';import{IRemoteInstanceService as _0xee83ea}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x4822bc,RefRangeService as _0x474d9d,SetSelectionsOperation as _0x22809a,SheetsSelectionsService as _0x4ae7c3,EffectRefRangId as _0x59c1c3,handleIRemoveRow as _0x581694,handleIRemoveCol as _0x3c8f15,handleMoveRange as _0x2e1057,handleInsertRow as _0x43caa4,handleInsertRangeMoveRight as _0x2041ff,handleInsertRangeMoveDown as _0x5b3cb2,handleInsertCol as _0x922e73,handleDeleteRangeMoveUp as _0x54b924,handleDeleteRangeMoveLeft as _0x25bf2f,runRefRangeMutations as _0x57870a}from'@univerjs/sheets';import{Shape as _0x2d6f87,Rect as _0x17d777,getColor as _0x59e896,RegularPolygon as _0x232ebe,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x30d333,Vector2 as _0x380b35,SHEET_VIEWPORT_KEY as _0x3d4c73,IRenderManagerService as _0x1eaf53}from'@univerjs/engine-render';import{HTTPService as _0x1fe289,ISocketService as _0xc715c1,WebSocketService as _0x1b48bb}from'@univerjs/network';import{IDocClipboardService as _0x372b4b,NodePositionConvertToCursor as _0x267305,NodePositionConvertToRectRange as _0x48404a,TEXT_RANGE_LAYER_INDEX as _0x4adf9c,SetDocZoomRatioOperation as _0x2e1434,DocIMEInputManagerService as _0x38083a,DocStateChangeManagerService as _0x242de7}from'@univerjs/docs-ui';import{IImageIoService as _0x3ee77e}from'@univerjs/drawing';import{ITransformService as _0x1b61b0,CollaborationEvent as _0x4ec7f0,isTransformMutationFailure as _0x571730,isTransformMutationsWithChangesetSuccess as _0x29ce50,RevisionService as _0x10ef4a,ISnapshotServerService as _0x24fc69}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5817ee,RichTextEditingMutation as _0x435618,DocSelectionManagerService as _0xd5f03f,DocSkeletonManagerService as _0x210e2e}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x374d74,serializeRangeWithSheet as _0x44242a,FormulaExecuteStageType as _0x1a0570,FormulaExecutedStateType as _0x16d1f3,SetFormulaCalculationStartMutation as _0x3a24d4,SetFormulaCalculationNotificationMutation as _0x3d0d88}from'@univerjs/engine-formula';import{map as _0xa7eefa,filter as _0x2df3db,throttleTime as _0x5454da,takeUntil as _0x33be30,switchMap as _0x42a06f}from'rxjs/operators';import{SheetSkeletonManagerService as _0x1576bc,getCoordByCell as _0xa911b5,getSheetObject as _0x11d02e}from'@univerjs/sheets-ui';function Ge({ref:_0x4f7920,..._0x184ce1}){const _0x22ceaf=_0x1bab67,{icon:_0x31a156,id:_0x31aca9,className:_0x13fd09,extend:_0x59705a,..._0x5f2d73}=_0x184ce1,_0x4d443b=(_0x22ceaf(0x3fb)+_0x31aca9+'\x20'+(_0x13fd09||''))['trim'](),_0x3792bd=_0x1a4b64('_'+Ei());return At(_0x31a156,''+_0x31aca9,{'defIds':_0x31a156['defIds'],'idSuffix':_0x3792bd[_0x22ceaf(0x3d4)]},{'ref':_0x4f7920,'className':_0x4d443b,..._0x5f2d73},_0x59705a);}function At(_0x2b36ef,_0x599b5e,_0x3ca6a2,_0x523fc6,_0x38df25){const _0x162b0c=_0x1bab67;return _0x375bb9(_0x2b36ef[_0x162b0c(0x348)],{'key':_0x599b5e,...gi(_0x2b36ef,_0x3ca6a2,_0x38df25),..._0x523fc6},(vi(_0x2b36ef,_0x3ca6a2)[_0x162b0c(0x2d8)]||[])['map']((_0x383912,_0x503a3c)=>At(_0x383912,_0x599b5e+'-'+_0x2b36ef[_0x162b0c(0x348)]+'-'+_0x503a3c,_0x3ca6a2,void 0x0,_0x38df25)));}function gi(_0x2c1159,_0x2411c5,_0x3c8bb5){const _0x2e726d=_0x1bab67,_0x347056={..._0x2c1159[_0x2e726d(0x2b6)]};_0x3c8bb5!=null&&_0x3c8bb5[_0x2e726d(0x374)]&&_0x347056['fill']===_0x2e726d(0x374)&&(_0x347056[_0x2e726d(0x367)]=_0x3c8bb5[_0x2e726d(0x374)]),_0x2c1159[_0x2e726d(0x348)]===_0x2e726d(0x286)&&_0x347056['id']&&(_0x347056['id']=_0x347056['id']+_0x2411c5[_0x2e726d(0x1ea)]),Object[_0x2e726d(0x41c)](_0x347056)[_0x2e726d(0x36c)](([_0x517bd4,_0x4778e6])=>{const _0x276f70=_0x2e726d;_0x517bd4===_0x276f70(0x286)&&typeof _0x4778e6==_0x276f70(0x1e6)&&(_0x347056[_0x517bd4]=_0x4778e6['replace'](/url\(#(.*)\)/,_0x276f70(0x274)+_0x2411c5[_0x276f70(0x1ea)]+')'));});const {defIds:_0x307800}=_0x2411c5;return!_0x307800||_0x307800[_0x2e726d(0x30a)]===0x0||(_0x2c1159['tag']==='use'&&_0x347056[_0x2e726d(0x27d)]&&(_0x347056[_0x2e726d(0x27d)]=_0x347056[_0x2e726d(0x27d)]+_0x2411c5[_0x2e726d(0x1ea)]),Object[_0x2e726d(0x41c)](_0x347056)[_0x2e726d(0x36c)](([_0x237790,_0x1f085b])=>{const _0x27282d=_0x2e726d;typeof _0x1f085b==_0x27282d(0x1e6)&&(_0x347056[_0x237790]=_0x1f085b[_0x27282d(0x400)](/url\(#(.*)\)/,_0x27282d(0x274)+_0x2411c5[_0x27282d(0x1ea)]+')'));})),_0x347056;}function vi(_0xcafa7a,_0x4da834){const _0x531acb=_0x1bab67;var _0x50e806;const {defIds:_0x2803b3}=_0x4da834;return!_0x2803b3||_0x2803b3[_0x531acb(0x30a)]===0x0?_0xcafa7a:_0xcafa7a[_0x531acb(0x348)]==='defs'&&((_0x50e806=_0xcafa7a[_0x531acb(0x2d8)])!=null&&_0x50e806[_0x531acb(0x30a)])?{..._0xcafa7a,'children':_0xcafa7a[_0x531acb(0x2d8)]['map'](_0x21316e=>typeof _0x21316e['attrs']['id']==_0x531acb(0x1e6)&&_0x2803b3&&_0x2803b3[_0x531acb(0x2de)](_0x21316e[_0x531acb(0x2b6)]['id'])?{..._0x21316e,'attrs':{..._0x21316e[_0x531acb(0x2b6)],'id':_0x21316e[_0x531acb(0x2b6)]['id']+_0x4da834[_0x531acb(0x1ea)]}}:_0x21316e)}:_0xcafa7a;}function Ei(){const _0x529ba7=_0x1bab67;return Math[_0x529ba7(0x38d)]()[_0x529ba7(0x1dd)](0x24)[_0x529ba7(0x31b)](0x2,0x8);}Ge['displayName']=_0x1bab67(0x3e0);const pi={'tag':_0x1bab67(0x1db),'attrs':{'xmlns':_0x1bab67(0x2a1),'fill':'none','viewBox':_0x1bab67(0x244),'width':_0x1bab67(0x341),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1bab67(0x42b)},'children':[{'tag':_0x1bab67(0x2a6),'attrs':{'stroke':_0x1bab67(0x280),'d':_0x1bab67(0x293),'strokeLinecap':'round','strokeLinejoin':_0x1bab67(0x3a3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x1bab67(0x2a6),'attrs':{'fill':_0x1bab67(0x3ba),'d':_0x1bab67(0x226)}}]}]}],'defIds':[_0x1bab67(0x1f2)]},Pt=_0x4314be(function(_0x31de6b,_0x207e7e){const _0x527011=_0x1bab67;return _0x375bb9(Ge,Object[_0x527011(0x422)]({},_0x31de6b,{'id':'off-line-icon','ref':_0x207e7e,'icon':pi}));});Pt[_0x1bab67(0x3be)]=_0x1bab67(0x20c);const Oi={'tag':_0x1bab67(0x1db),'attrs':{'xmlns':_0x1bab67(0x2a1),'fill':_0x1bab67(0x27f),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x1bab67(0x341)},'children':[{'tag':'g','attrs':{'clipPath':_0x1bab67(0x1da)},'children':[{'tag':_0x1bab67(0x2a6),'attrs':{'stroke':_0x1bab67(0x280),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x1bab67(0x3a3),'strokeLinejoin':_0x1bab67(0x3a3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1bab67(0x220),'attrs':{'id':_0x1bab67(0x409)},'children':[{'tag':'path','attrs':{'fill':_0x1bab67(0x3ba),'d':'M0\x200H16V16H0z','transform':_0x1bab67(0x28e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x4314be(function(_0x4c31f6,_0x5b144e){const _0x12090f=_0x1bab67;return _0x375bb9(Ge,Object['assign']({},_0x4c31f6,{'id':_0x12090f(0x32d),'ref':_0x5b144e,'icon':Oi}));});wt[_0x1bab67(0x3be)]=_0x1bab67(0x245);function Ti(_0x12e919){const _0x101f9a=_0x1bab67;switch(_0x12e919){case _0x1db3c4[_0x101f9a(0x33b)]:return _0x101f9a(0x3c8);case _0x1db3c4[_0x101f9a(0x338)]:return _0x101f9a(0x32e);case _0x1db3c4[_0x101f9a(0x285)]:return _0x101f9a(0x1f6);case _0x1db3c4[_0x101f9a(0x3cb)]:return _0x101f9a(0x1f1);case _0x1db3c4['AWAITING']:case _0x1db3c4['AWAITING_WITH_PENDING']:return _0x101f9a(0x2ad);case _0x1db3c4[_0x101f9a(0x346)]:case _0x1db3c4[_0x101f9a(0x23b)]:return _0x101f9a(0x395);}}function Ci(_0x17f1a0){const _0xa7e9ff=_0x1bab67,{status$:_0x32a3b4}=_0x17f1a0,_0x5be08f=_0x26e909(_0x32a3b4,_0x1db3c4[_0xa7e9ff(0x3cb)]),_0x14b7c4=_0xe6eb82(_0x358b52),_0x66fb56=_0xe6eb82(_0x5b8361),_0x55a9e9=_0x5be08f!==_0x1db3c4[_0xa7e9ff(0x33b)],_0x46a4ac=_0x14b7c4['t'](Ti(_0x5be08f)),_0x393589=_0x55a9e9?_0x2b343a(wt,{}):_0x2b343a(Pt,{}),_0x5b8f1f=_0xb36e2e(()=>{const _0x419129=_0xa7e9ff;_0x55a9e9||_0x66fb56[_0x419129(0x36e)]();},[_0x55a9e9,_0x66fb56]);function _0x1d2ba5(){const _0x53ff73=_0xa7e9ff;return _0x548497(_0x53ff73(0x362),{'className':_0x53ff73(0x3f2),'onClick':_0x5b8f1f,'children':[_0x2b343a(_0x53ff73(0x362),{'className':_0x37fe69(_0x53ff73(0x361),{'univer-text-green-500':_0x55a9e9,'univer-text-red-500':!_0x55a9e9}),'children':_0x393589}),_0x2b343a(_0x53ff73(0x362),{'className':_0x53ff73(0x2c2),'children':_0x46a4ac})]});}return _0x55a9e9?_0x1d2ba5():_0x2b343a(_0x4a0b9c,{'title':_0x14b7c4['t'](_0xa7e9ff(0x2bc)),'children':_0x1d2ba5()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x1a0ef3,_0x38cd82,_0x410d15,_0x460c24)=>{for(var _0x397a78=_0x460c24>0x1?void 0x0:_0x460c24?Ri(_0x38cd82,_0x410d15):_0x38cd82,_0x2201c3=_0x1a0ef3['length']-0x1,_0x341e55;_0x2201c3>=0x0;_0x2201c3--)(_0x341e55=_0x1a0ef3[_0x2201c3])&&(_0x397a78=_0x341e55(_0x397a78)||_0x397a78);return _0x397a78;},se=(_0x720f64,_0x413b7b)=>(_0x312fb0,_0x47e189)=>_0x413b7b(_0x312fb0,_0x47e189,_0x720f64);let ae=class extends _0x570ab2{constructor(_0x2acafa,_0x5e9693,_0x2499f7,_0x3be39e){const _0x470a4e=_0x1bab67;super(),_(this,'_status$',new _0x42c9f3(_0x1db3c4[_0x470a4e(0x3cb)])),(this[_0x470a4e(0x3aa)]=_0x2acafa,this[_0x470a4e(0x428)]=_0x5e9693,this[_0x470a4e(0x22e)]=_0x2499f7,this[_0x470a4e(0x38b)]=_0x3be39e,this[_0x470a4e(0x2b5)](),this[_0x470a4e(0x36f)]());}[_0x1bab67(0x36f)](){const _0x29311e=_0x1bab67;this[_0x29311e(0x24d)](this[_0x29311e(0x3aa)][_0x29311e(0x2bb)][_0x29311e(0x3e7)](_0x404b1e(()=>{const _0x1b27fe=_0x29311e,_0x559f2c=this[_0x1b27fe(0x3aa)][_0x1b27fe(0x3cc)]();return _0x559f2c?this[_0x1b27fe(0x22e)][_0x1b27fe(0x42a)](_0x559f2c['getUnitId']()):_0x147589(null);}),_0x404b1e(_0x5be286=>_0x5be286?_0x5be286[_0x29311e(0x2a5)]:_0x147589(_0x1db3c4[_0x29311e(0x3cb)])))[_0x29311e(0x401)](_0x54daee=>{const _0x90323c=_0x29311e;this[_0x90323c(0x2af)][_0x90323c(0x419)](_0x54daee);}));}['_initStatusComponent'](){const _0x595833=_0x1bab67;this['disposeWithMe'](this[_0x595833(0x38b)][_0x595833(0x291)](_0x20bf22[_0x595833(0x399)],()=>_0x25cd97(bi({'status$':this[_0x595833(0x2af)][_0x595833(0x239)]()}),this[_0x595833(0x428)])));}};ae=Di([se(0x0,_0x3b2157),se(0x1,_0x5a79e2(_0x41a636)),se(0x2,_0x5a79e2(_0x519a49)),se(0x3,_0xc64278)],ae);function bi(_0x5de85f){const {status$:_0x2aa82b}=_0x5de85f;return function(){return _0x2b343a(Ci,{'status$':_0x2aa82b});};}const yt=_0x2fa984(_0x1bab67(0x339));var Ni=Object[_0x1bab67(0x32a)],Li=(_0x1fece0,_0x2f5542,_0x23adaf,_0xa91c26)=>{const _0x210358=_0x1bab67;for(var _0x526db8=_0xa91c26>0x1?void 0x0:_0xa91c26?Ni(_0x2f5542,_0x23adaf):_0x2f5542,_0x219c28=_0x1fece0[_0x210358(0x30a)]-0x1,_0x381cd6;_0x219c28>=0x0;_0x219c28--)(_0x381cd6=_0x1fece0[_0x219c28])&&(_0x526db8=_0x381cd6(_0x526db8)||_0x526db8);return _0x526db8;},K=(_0x3f8b93,_0x4339dc)=>(_0x5d6139,_0x49c7c8)=>_0x4339dc(_0x5d6139,_0x49c7c8,_0x3f8b93);let ce=class extends _0xb8eb03{constructor(_0x58024e,_0x360812,_0x594564,_0x22bc43,_0x3a9c32){const _0x39204d=_0x1bab67;super(),this[_0x39204d(0x28f)]=_0x58024e,this[_0x39204d(0x2b2)]=_0x360812,this[_0x39204d(0x22c)]=_0x594564,this['_dataLoaderService']=_0x22bc43,_0x3a9c32?_0x3a9c32==null||_0x3a9c32['whenReady']()[_0x39204d(0x1f3)](()=>this[_0x39204d(0x38f)]()):(this[_0x39204d(0x2b2)][_0x39204d(0x376)](_0x39204d(0x417),_0x39204d(0x2a4)),this[_0x39204d(0x38f)]());}async['_init'](){const _0x5050d7=_0x1bab67,_0x5a0d55=this[_0x5050d7(0x28f)][_0x5050d7(0x34d)](_0x5050d7(0x1fd)),_0x370267=this[_0x5050d7(0x28f)][_0x5050d7(0x34d)]('type'),_0x284d09=this[_0x5050d7(0x28f)][_0x5050d7(0x34d)]('subunit');if(!_0x5a0d55||!_0x370267){this['_logService'][_0x5050d7(0x376)]('[CollaborationDataLoaderController]',_0x5050d7(0x363));return;}const _0x4e98fb=await this[_0x5050d7(0x3ab)][_0x5050d7(0x25e)](_0x5a0d55,Number(_0x370267),_0x284d09);_0x4e98fb&&_0x4e98fb instanceof _0x456127&&this['_setupSubUnitSync'](_0x4e98fb);}async[_0x1bab67(0x24a)](_0x4d9c42){const _0x1f95e6=_0x1bab67;await this[_0x1f95e6(0x262)](_0x4d9c42),_0x4d9c42['activeSheet$'][_0x1f95e6(0x3e7)](_0x4cbc42(this[_0x1f95e6(0x297)]))[_0x1f95e6(0x401)](_0x548bf6=>{const _0x56d703=_0x1f95e6;_0x548bf6&&this[_0x56d703(0x381)](_0x548bf6);}),this['_urlService'][_0x1f95e6(0x204)][_0x1f95e6(0x3e7)](_0x4cbc42(this[_0x1f95e6(0x297)]))[_0x1f95e6(0x401)](()=>this[_0x1f95e6(0x262)](_0x4d9c42));}[_0x1bab67(0x381)](_0x1295a9,_0x517aff=!0x1){const _0x367f2d=_0x1bab67,_0x38d818=this[_0x367f2d(0x28f)][_0x367f2d(0x34d)](_0x367f2d(0x29f));_0x1295a9[_0x367f2d(0x1fa)]()!==_0x38d818&&this[_0x367f2d(0x28f)][_0x367f2d(0x326)](_0x367f2d(0x29f),_0x1295a9[_0x367f2d(0x1fa)](),_0x517aff);}async[_0x1bab67(0x262)](_0x4505e8){const _0xe90f56=_0x1bab67;var _0x2ddf3a;const _0x3b982d=this[_0xe90f56(0x28f)][_0xe90f56(0x34d)]('subunit');if(!_0x3b982d||!_0x4505e8[_0xe90f56(0x26b)](_0x3b982d)){const _0x73e2f0=_0x4505e8[_0xe90f56(0x25c)]()[0x0],_0x2d617e=_0x4505e8['getSheetBySheetId'](_0x73e2f0);if(!_0x2d617e)return;this[_0xe90f56(0x381)](_0x2d617e,!0x0),await this['_commandService'][_0xe90f56(0x271)](_0x4822bc['id'],{'unitId':_0x4505e8[_0xe90f56(0x3e6)](),'subUnitId':_0x73e2f0});return;}((_0x2ddf3a=_0x4505e8[_0xe90f56(0x1ff)]())==null?void 0x0:_0x2ddf3a['getSheetId']())!==_0x3b982d&&await this['_commandService']['executeCommand'](_0x4822bc['id'],{'unitId':_0x4505e8['getUnitId'](),'subUnitId':_0x3b982d});}};ce=Li([K(0x0,yt),K(0x1,_0xf1ee96),K(0x2,_0x34fc9a),K(0x3,_0x5a79e2(_0x403737)),K(0x4,_0x173b7e(_0xee83ea))],ce);var Ui=Object[_0x1bab67(0x32a)],Mi=(_0x2ee822,_0x443797,_0x53526d,_0x21edee)=>{const _0x22065d=_0x1bab67;for(var _0x3da9e4=_0x21edee>0x1?void 0x0:_0x21edee?Ui(_0x443797,_0x53526d):_0x443797,_0x23ec6f=_0x2ee822[_0x22065d(0x30a)]-0x1,_0x232280;_0x23ec6f>=0x0;_0x23ec6f--)(_0x232280=_0x2ee822[_0x23ec6f])&&(_0x3da9e4=_0x232280(_0x3da9e4)||_0x3da9e4);return _0x3da9e4;},rt=(_0x16969a,_0x1ddef9)=>(_0x48a164,_0x3b5354)=>_0x1ddef9(_0x48a164,_0x3b5354,_0x16969a);let $e=class extends _0xb8eb03{constructor(_0x2d784d,_0xba3c3b){const _0x502212=_0x1bab67;super(),this[_0x502212(0x242)]=_0x2d784d,this[_0x502212(0x320)]=_0xba3c3b,this[_0x502212(0x38f)]();}[_0x1bab67(0x38f)](){const _0x4e8bf5=_0x1bab67,_0x1fd8d3=this;this[_0x4e8bf5(0x24d)](this[_0x4e8bf5(0x242)][_0x4e8bf5(0x243)]({'onBeforePasteImage':async _0x59b1c3=>{const _0x58e88c=_0x4e8bf5,_0x47ac9a=await _0x1fd8d3[_0x58e88c(0x320)][_0x58e88c(0x3e1)](_0x59b1c3);return _0x47ac9a?{'source':_0x47ac9a[_0x58e88c(0x364)],'imageSourceType':_0x47ac9a[_0x58e88c(0x279)]}:null;}}));}};$e=Mi([rt(0x0,_0x372b4b),rt(0x1,_0x3ee77e)],$e);const ot=[_0x1bab67(0x201),_0x1bab67(0x32f),_0x1bab67(0x26e),'red.300','blue.400',_0x1bab67(0x30f)];class Ke extends _0x570ab2{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x39b47c){const _0x38633c=_0x1bab67;if(this[_0x38633c(0x413)][_0x38633c(0x1f7)](_0x39b47c))return this[_0x38633c(0x413)]['get'](_0x39b47c);const _0x3223a4=ot[this[_0x38633c(0x3de)]];return this[_0x38633c(0x3de)]=(this[_0x38633c(0x3de)]+0x1)%ot['length'],this[_0x38633c(0x413)][_0x38633c(0x25f)](_0x39b47c,_0x3223a4),_0x3223a4;}}function _0x2e9d(){const _0x5db5ca=['InsertColCommandId','includes','_getSaveTimeout','endRow','INVITE_CODE_ALREADY_BOUND','stringify','stage','_docSkeletonManagerService','isActive','getActiveRange','Loading','arc','onStarting','isEditing','DeleteRangeMoveLeftCommandId','docStateChange$','transformMutation','...','join','_transformHistoryAndStateStack','_cursorInfo$','message','onMouseMove','searchParams','maxFormulaLimit','_textBubble','_httpService','USER_NOT_INVITED_CODE','getCurrentSelections','getRelativeToViewportCoord','loadOfflineData','_uploadLog','min','send','_toggleOffline','eventID','_applyCommand','_eventUnsubscribe','name','INVALID_INVITE_CODE','_beforeCloseService','COMPLETION_FINISHED','_monkeyPatchLogService','assignAColorForMemberID','MoveRangeCommandId','length','_unitStatus','INVITE_CODE_HAS_BEEN_UES','UNDEFINED','transformStateCache','yellow.400','_hideTimer','_labelPosition','requireSession','_messageService','_registerDependencies','APPLY_NON_SEQUENTIAL_REVISION','collab-text-anchor-','6wCWZqT','SNAPSHOT_INVALID_SNAPSHOT','ENTITLE_REPORT_LIMIT_EXCEED','onPointerMove$','substring','setInterval','_docTransformSelectionsService','result','RemoveColCommandId','_imageIoService','values','getStateCache','replaceDocRanges','_unitOnClients','TEXT','setParam','_drawRectRange','editingUnit','top','getOwnPropertyDescriptor','YUUMI_ALL_TABLES_IS_INVALID','_docTransformIMECacheService','on-line-icon','collabStatus.conflict','jiqing.500','ENTITLE_INSUFFICIENT_QUOTA','3959336rqhcUs','roomMembers','_hasFormulaInDirtyRanges','all','_handleHeartbeatEvent','actions','_transformUndoRedoStack','CONFLICT','uni.network.url-service','_revisionService','OFFLINE','code','backgroundColor','engine','ONLINE','APPLY_REJECT','1em','_notificationService','_range','_transformPreviousActiveRange','isArray','SYNCED','_anchor','tag','_pollingInterval','complete','storage','_localeService','getParam','REDEMPTION_USER_NOT_ELIGIBLE','_instanceService','clearTimeout','_getSheetObject','_online','_refreshCollabCursors','_collaborationUIEventService','sheetId','unsubscribe','origin','onCommandExecuted','unload','endColumn','LICENSE_EXPORT_SIZE_EXCEEDED','params','sessionStatus$','Unknown\x20user','pushState','range','univer-mr-2\x20univer-flex\x20univer-text-xl','div','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','source','registerRefRange','triggerDblclick','fill','16hXnSNL','setAlpha','onLocalMutation','/universer-api/frontend/logs','forEach','stageInfo','reconnect','_initStatusListener','font','roomMembers$','session.will-retry','getTypeOfUnitAdded$','colorChannel1','_startCalculationLimit','debug','setItem','_docSkeleton','currentTheme$','m2Prime','OTHER_CLIENT_EDITING','_disabled','location','onTransformChange$','ACTIVE_UNIT_EVENT_CHANNEL','href','_updateURLWithCurrentState','cursorInfo','catch','colno','[LogService\x20Error]:\x20','_hovered','setActiveRange','_shapes','width','_onCursorUpdate','_uiPartsService','reason','random','saveTaskMap','_init','_handleEvent','symbol','1683513dNXsUE','collaboration-client.offline-data-not-saved','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collabStatus.synced','now','_getSessionTicket','getTypeOfUnitDisposed$','HEADER_MENU','exhaustSavingTask','UNIVER_SHEET','removeParam','_sheetSkeletonManagerService','startsWith','fillText','startColumn','runId','pluginName','round','wsSessionTicketUrl','7RhDFug','_heartbeatTimer','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_clearPolling','formula.calculation.started','_univerInstanceService','_dataLoaderService','_anchorDot','transformRemoteChangeset','delete','collab-text-range-','getOffsetConfig','_draw','getCurrent','key','evenodd','_docStateChangeManagerService','dirtyRanges','_cursorShapes','[Unhandled\x20Rejection]:\x20','_name','white','_releaseCalculationLimit','/universer-api/license/formula/limit/status','getMemberID','displayName','unitID','disableLocalCache','YUUMI_UNABLE_LOAD_URL','YUUMI_URL_COL_OUT_OF_RANGE','YUUMI_AI_RUN_FAILED','ENTITLE_DUP_SUBSCRIPTION','START_CALCULATION','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','fillStyle','collabStatus.offline','PAYMENT_CHANNEL_NOT_SUPPORT','_checkCalculationAvailable','NOT_COLLAB','getFocusedUnit','with','getAncestorScale','currentSkeleton$','selection','_docTransformStateCacheService','addObject','subscribeEvent','current','ENTITLE_CHAT_LIMIT_EXCEED','closePath','_themeService','dispose','INVALID_ARGUMENT','YUUMI_TABLE_NOT_FOUND_IN_UNIT','MOBILE_VERIFY_CODE_MISMATCH','_selfUnitIDs','_showGuardMessage','_colorIndex','\x20at\x20','UniverIcon','saveImage','_memberID','9173oPAORA','USER_IS_ANONYMOUS','UNAUTHENTICATED','getUnitId','pipe','_saveTaskMap','getRangePointData','split','collab-rect-range-','setTimeout','add','_startSheetCollabCursor','black','labelPosition','getformulaLimitStatusUrl','univer-flex\x20univer-items-center','ENTITLE_CAN_NOT_BUY_LOWER_OTP','RemoveRowCommandId','fillRule','_getAnchorBounding','AUTHORIZE_CODE_ILLEGAL','InsertRangeMoveDownCommandId','replaceState','drawWith','univerjs-icon\x20univerjs-icon-','_colorAssignService','invokeId','_removeCollabCursors','_handleLeaveEvent','replace','subscribe','toRgbString','push','INVITE_CODE_REQUIRED','formula.calculation.unable','ERROR_AGAIN','LICENSE_DISTRO_REJECTED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','on-line-icon_clip0_910_349','size','show','_getMergeRange','lineTo','_setupBeforeClosingHandler','stack','collabCursorState$','_send','enableLocalCache','_assignedColors','text','_id','REDEMPTION_CODE_NOT_STARTED','[CollaborationDataLoaderController]','_initDependencies','next','_removeClearOtherTimer','_color','entries','_collaborationSessionService','addEventListener','InsertRowCommandId','onPointerEnter$','InsertRangeMoveRightCommandId','assign','selections','_docSyncEditingCollabCursorService','_backgroundColor','Warning','save','_injector','APPLY_REVISION_CONFILICT','getCollabEntity$','url(#off-line-icon_clip0_910_343)','MOBILE_HAS_BEEN_BOUND','redoState','_initCommandExecutedListener','YUUMI_ASYNCIO_CANCELLED','syncEditingCollabCursor','url(#on-line-icon_clip0_910_349)','svg','_clearOtherTimers','toString','7167378qZeTnt','filename','_getScale','_registerRenderDependencies','PERMISSION_DENIED','get','_entityInit$','findNodePositionByCharIndex','string','_document','_initEvent','6520705STjPib','idSuffix','YUUMI_RATE_OVER_LIMIT','Error','formula.calculation.waiting','EMAIL_HAS_BEEN_BOUND','_cursor','_refRangeService','collabStatus.notCollab','off-line-icon_clip0_910_343','then','_lastPointer','post','collabStatus.fetchMiss','has','getColorFromTheme','transformMutationsWithChangeset','getSheetId','DeleteRangeMoveUpCommandId','beginPath','unit','disposeUnit','getActiveSheet','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','purple.300','_collabCursorState$','LOGIN_TOKEN_PROCESSING_FAILED','urlChange$','socket$','lineno','_initUnhandledRejectionListener','22910200cHysTn','_initUserListener','_initWindowErrorListener','_scheduleSaving','OffLineIcon','_context','JOIN_ROOM_FAILED','collaboration.single-unit.warning','column','onRendered','_cursors','releaseFormulaLimitUrl','functionsExecutedState','getUnitStatus$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','UPDATE_CURSOR','_updateCollabCursors','REDEMPTION_CODE_HAS_BEEN_CREATED','unshift','_renderManagerService','addObjects','clearInterval','updateOfflineData','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','clipPath','_scene','RECT','application/json','_scheduleClearOtherTimer','newValue','M0\x200H16V16H0z','type','REDEMPTION_CODE_INACTIVE','FromArray','find','_drawAnchor','_commandService','setStateCache','_collaborationController','mutations','_doCreateSocket','height','session.connection-failed','startFormulaLimitUrl','72051biZGrc','cursorInfo$','max','OTHER_CLIENTS_EDITING','_taskIds','asObservable','bind','PENDING','setConfig','getCurrentRevOfUnit','/universer-api/license/formula/limit/done','doc.mutation.rich-text-editing','/universer-api/license/formula/limit/start','ENSURE_SNAPSHOT_EXECUTION','_docClipboardService','addClipboardHook','0\x200\x2016\x2016','OnLineIcon','getVpScrollXYInfoByPosToVp','NO_OTHER_CLIENTS_EDITING','history','NOT_FOUND','_setupSubUnitSync','USER_NOT_FOUND','_cachedData','disposeWithMe','_toggleOnline','ENTITLE_NEED_BILLING_ADDRESS','Failed','setShapeProps','collaboration.closeRoom','error','getRenderById','_handleHover','_currentUsage','_initCommandInterceptor','getItem','Success','_session','restore','getUnhiddenWorksheets','LOGIN_FAILED','loadUnit','set','ticket','_transformService','_updateSubUnitFromURLParams','deepClone','row','UNIVER_DOC','SNAPSHOT_HAS_BEEN_REMOVED','_updateLocalCursor','currentUsage','_lastResponseTimestamp','_entities','getSheetBySheetId','body','REDEMPTION_CODE_FULLY_REDEEMED','green.600','moveTo','event$','executeCommand','undoState','_maxFormulaLimit','url(#$1','getMember','DATA_SOURCE_TOO_LARGE','init','_hover','imageSourceType','getUnit','getValue','popstate','xlink:href','removeEventListener','none','currentColor','m1Prime','_collabCursorController','enableFrontendLog','_syncEditingCollabCursorService','FETCH_MISS','mask','CURRENT_STATUS_CANNOT_OPERATE','_roomMembers$','some','_configService','parse','_getFormulaLimitStatus','_handleJoinEvent','translate(.97)','_urlService','_render','registerComponent','_config','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_ensureSubject','_scheduleHeartbeat','limitInfo','dispose$','_checkAndWaitForCalculationPermission','APPLY_DUPLICATED','_localCacheService','textRanges','_collabSessionService','measureText','/run/','subunit','_createSocketURL','http://www.w3.org/2000/svg','skeleton','parseInt','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','status$','path','SOCKET_FAILED','from','_memberService','session.collaboration-timeout','_onCursorDelete','shift','collabStatus.syncing','ranges','_status$','[Window\x20Error]:\x20','APPLY_PERMISSION_DENIED','_logService','data','startRow','_initStatusComponent','attrs','_initResize','UNRECOGNIZED','bottom','CHANGESET_REVISION_CONFILICT','focused$','collab-client.tooltip.reconnect','EMAIL_VERIFY_CODE_MISMATCH','getCurrentUnitForType','_localStorageService','onPointerLeave$','map','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','executionId','registerRenderModule','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_CONNECTOR_URL_NOT_FOUND','color','getDocRanges','_onRefRangeChange','flatMap','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','WECHAT_HAS_BEEN_BOUND','SUBMIT_CHANGESET_TIMEOUT','getSkeleton','_setFormulaLimitStatus','_saveCache','getConfig','INTERNAL_ERROR','unitId','runOnServer','USERS_LEAVE','createSocket','getCollabCursors$','children','REDEMPTION_INVALID_CODE','transformIMECache','[RemoteUniscriptService]:\x20no\x20focused\x20unit','LICENSE_MAX_UNITS_EXCEEDED'];_0x2e9d=function(){return _0x5db5ca;};return _0x2e9d();}function _0x4050(_0x33e86a,_0x16ba9d){const _0x2e9dfe=_0x2e9d();return _0x4050=function(_0x40508e,_0x2ab5fb){_0x40508e=_0x40508e-0x1da;let _0x5ddaca=_0x2e9dfe[_0x40508e];return _0x5ddaca;},_0x4050(_0x33e86a,_0x16ba9d);}function $t(_0x118b38){const _0x52e724=_0x1bab67;let _0x28f92c='';for(const _0x3fdf64 of _0x118b38){const {startOffset:_0x47acc0,endOffset:_0x42f66e,isActive:_0xcb52eb,rangeType:_0x157b0f,segmentId:_0x49bca8,segmentPage:_0x5b5d91}=_0x3fdf64;_0x28f92c[_0x52e724(0x30a)]&&(_0x28f92c+=','),_0x28f92c+=_0x47acc0+':'+_0x42f66e+':'+(_0xcb52eb?'1':'0')+':'+_0x157b0f+':'+_0x49bca8+':'+_0x5b5d91;}return _0x28f92c;}function Ai(_0x388dcd){const _0x3b422b=_0x1bab67,_0x11bc14=_0x388dcd[_0x3b422b(0x3ea)](','),_0x49b18e=[];for(const _0x53783c of _0x11bc14){const [_0x95358b,_0x25c31b,_0x305007,_0x47b6ba,_0x256109,_0x492a93]=_0x53783c[_0x3b422b(0x3ea)](':');_0x49b18e[_0x3b422b(0x403)]({'startOffset':Number(_0x95358b),'endOffset':Number(_0x25c31b),'collapsed':_0x95358b===_0x25c31b,'isActive':_0x305007==='1','rangeType':_0x47b6ba===_0x4c6b17[_0x3b422b(0x325)]?_0x4c6b17[_0x3b422b(0x325)]:_0x4c6b17[_0x3b422b(0x222)],'segmentId':typeof _0x256109==_0x3b422b(0x1e6)?String(_0x256109):'','segmentPage':Number(_0x492a93!=null?_0x492a93:-0x1)});}return _0x49b18e[_0x3b422b(0x289)](_0x5e7346=>_0x5e7346[_0x3b422b(0x2e5)])||(_0x49b18e[0x0][_0x3b422b(0x2e5)]=!0x0),_0x49b18e;}class ze extends _0xb8eb03{constructor(){const _0x1be5e7=_0x1bab67;super(...arguments),_(this,_0x1be5e7(0x202),new _0x42c9f3(null)),_(this,_0x1be5e7(0x410),this['_collabCursorState$'][_0x1be5e7(0x239)]());}[_0x1bab67(0x430)](_0x206d47){const _0x32380c=_0x1bab67,{unitID:_0x21aa26,memberID:_0x10a199,textRanges:_0x3f0b89}=_0x206d47,_0xa32e66=$t(_0x3f0b89);if(_0xa32e66==='')return;const _0xcbc59a={'unitID':_0x21aa26,'memberID':_0x10a199,'selection':_0xa32e66};this[_0x32380c(0x202)]['next'](_0xcbc59a);}}var Pi=Object[_0x1bab67(0x32a)],wi=(_0x4744d7,_0x41355d,_0x1862b7,_0x5b48cb)=>{const _0x186e56=_0x1bab67;for(var _0x48bddd=_0x5b48cb>0x1?void 0x0:_0x5b48cb?Pi(_0x41355d,_0x1862b7):_0x41355d,_0x4397ed=_0x4744d7[_0x186e56(0x30a)]-0x1,_0x178dce;_0x4397ed>=0x0;_0x4397ed--)(_0x178dce=_0x4744d7[_0x4397ed])&&(_0x48bddd=_0x178dce(_0x48bddd)||_0x48bddd);return _0x48bddd;},A=(_0x413cdf,_0x21cd16)=>(_0x542c94,_0x53c47d)=>_0x21cd16(_0x542c94,_0x53c47d,_0x413cdf);const yi=0x12c,$i=0x64;let xe=class extends _0xb8eb03{constructor(_0x2cc6ba,_0x97313f,_0x5ec303,_0x209907,_0x30de5a,_0x7ebdcf,_0x4ddff1,_0x21d128,_0x2bd437){const _0xc537d4=_0x1bab67;super(),_(this,_0xc537d4(0x352),!0x1),_(this,_0xc537d4(0x38f),!0x1),_(this,_0xc537d4(0x2f1),new _0x42c9f3(new Map())),_(this,_0xc537d4(0x235),this[_0xc537d4(0x2f1)][_0xc537d4(0x239)]()),_(this,_0xc537d4(0x288),new _0x42c9f3([])),_(this,_0xc537d4(0x371),this['_roomMembers$'][_0xc537d4(0x3e7)](_0x48e44d(yi))),_(this,'_updateLocalCursor',_0x3dabb7(_0xf92d62=>{const _0x5ba6c3=_0xc537d4,_0x36eefa={'eventID':_0x4ec7f0[_0x5ba6c3(0x217)],'data':{'unitID':this[_0x5ba6c3(0x3bf)],'memberID':this['_session']['getMemberID'](),'selection':$t(_0xf92d62)}};this[_0x5ba6c3(0x25a)][_0x5ba6c3(0x2fe)](_0x36eefa,this[_0x5ba6c3(0x3bf)]);},$i)),(this['unitID']=_0x2cc6ba,this[_0xc537d4(0x25a)]=_0x97313f,this['_injector']=_0x5ec303,this[_0xc537d4(0x3fc)]=_0x209907,this['_memberService']=_0x30de5a,this[_0xc537d4(0x284)]=_0x7ebdcf,this[_0xc537d4(0x261)]=_0x4ddff1,this['_univerInstanceService']=_0x21d128,this[_0xc537d4(0x22c)]=_0x2bd437);}get[_0x1bab67(0x382)](){const _0x30e132=_0x1bab67;return this[_0x30e132(0x2f1)][_0x30e132(0x27b)]();}get[_0x1bab67(0x332)](){const _0x48be76=_0x1bab67;return this[_0x48be76(0x288)][_0x48be76(0x27b)]();}['dispose'](){const _0x20ac2c=_0x1bab67;super[_0x20ac2c(0x3d8)](),this[_0x20ac2c(0x2f1)][_0x20ac2c(0x419)](new Map()),this[_0x20ac2c(0x2f1)][_0x20ac2c(0x34a)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x20ac2c(0x34a)]();}['init'](){const _0x209e6f=_0x1bab67;this[_0x209e6f(0x38f)]||(this['_init']=!0x0,this['_session'][_0x209e6f(0x35d)][_0x209e6f(0x3e7)](_0x4cbc42(this[_0x209e6f(0x297)]))[_0x209e6f(0x401)](_0x28ce6e=>{const _0x32d859=_0x209e6f;_0x28ce6e===_0x407a80[_0x32d859(0x33f)]?this[_0x32d859(0x24e)]():this[_0x32d859(0x2ff)]();}),this[_0x209e6f(0x25a)]['event$']['pipe'](_0x4cbc42(this[_0x209e6f(0x297)]))[_0x209e6f(0x401)](_0x38d642=>{const _0x4cd99e=_0x209e6f,_0x578474=_0x38d642['eventID'];_0x578474===_0x4ec7f0[_0x4cd99e(0x217)]&&this[_0x4cd99e(0x38a)](_0x38d642),_0x578474===_0x4ec7f0[_0x4cd99e(0x2d5)]&&this[_0x4cd99e(0x2ab)](_0x38d642);}),this['disposeWithMe'](this[_0x209e6f(0x22c)][_0x209e6f(0x358)](_0x4f7fa8=>{const _0x46a6c3=_0x209e6f,_0x4795bf=_0x4f7fa8['params'];_0x4795bf!=null&&this[_0x46a6c3(0x352)]&&_0x4f7fa8['id']===_0x5817ee['id']&&_0x4795bf['unitId']===this[_0x46a6c3(0x3bf)]&&_0x4795bf[_0x46a6c3(0x2ea)]===!0x1&&_0x4795bf['ranges']['length']>0x0&&this[_0x46a6c3(0x267)](_0x4795bf['ranges']);})),this[_0x209e6f(0x284)][_0x209e6f(0x410)]['pipe'](_0x4cbc42(this[_0x209e6f(0x297)]))[_0x209e6f(0x401)](_0x2cd82e=>{const _0x2579e8=_0x209e6f;if((_0x2cd82e==null?void 0x0:_0x2cd82e[_0x2579e8(0x3bf)])!==this['unitID'])return;const _0x24ac30={'eventID':_0x4ec7f0[_0x2579e8(0x217)],'data':_0x2cd82e};this[_0x2579e8(0x38a)](_0x24ac30);}),this['disposeWithMe'](this[_0x209e6f(0x22c)]['onCommandExecuted'](_0x1a984c=>{const _0x43c3fe=_0x209e6f;if(_0x1a984c[_0x43c3fe(0x35c)]==null)return;const _0x2b286c=_0x1a984c[_0x43c3fe(0x35c)];if(_0x1a984c['id']!==_0x435618['id']||_0x2b286c['unitId']!==this[_0x43c3fe(0x3bf)])return;const _0x57ee92={'id':_0x43c3fe(0x23f),'params':_0x2b286c},_0x53614f=this[_0x43c3fe(0x382)];for(const [_0x172403,_0x2ce6e2]of _0x53614f){const _0x526717={'id':_0x43c3fe(0x23f),'params':{'unitId':this[_0x43c3fe(0x3bf)],'actions':null,'textRanges':_0x2ce6e2[_0x43c3fe(0x2ae)]}},_0x41c021=this[_0x43c3fe(0x261)][_0x43c3fe(0x2ed)](_0x57ee92,_0x526717,!0x1);if(_0x571730(_0x41c021))throw _0x41c021[_0x43c3fe(0x253)];_0x53614f[_0x43c3fe(0x25f)](_0x172403,{..._0x2ce6e2,'ranges':_0x41c021[_0x43c3fe(0x37a)][_0x43c3fe(0x35c)]['textRanges']});}queueMicrotask(()=>{const _0x35780f=_0x43c3fe;this[_0x35780f(0x2f1)]['next'](_0x53614f);});})));}[_0x1bab67(0x38a)](_0x2ba568){const _0x4e02f1=_0x1bab67;var _0x1bbe31,_0x240616;const {memberID:_0x590621,selection:_0x1630af}=_0x2ba568['data'],_0x3ac75c=Ai(_0x1630af),_0x2348ae=(_0x240616=(_0x1bbe31=this[_0x4e02f1(0x2a9)]['getMember'](this[_0x4e02f1(0x3bf)],_0x590621))==null?void 0x0:_0x1bbe31[_0x4e02f1(0x303)])!=null?_0x240616:_0x4e02f1(0x35e),_0x4dcf64={'color':this[_0x4e02f1(0x3fc)][_0x4e02f1(0x308)](_0x590621),'name':_0x2348ae,'ranges':_0x3ac75c},_0x471202=this[_0x4e02f1(0x382)];_0x471202[_0x4e02f1(0x25f)](_0x590621,_0x4dcf64),this[_0x4e02f1(0x2f1)][_0x4e02f1(0x419)](_0x471202);}[_0x1bab67(0x2ab)](_0x5339ba){const _0x332e13=_0x1bab67,{memberID:_0x33e030}=_0x5339ba[_0x332e13(0x2b3)],_0x112f20=this[_0x332e13(0x382)];_0x112f20['delete'](_0x33e030),this[_0x332e13(0x2f1)]['next'](_0x112f20);}['_toggleOnline'](){const _0x32ef7b=_0x1bab67;var _0x2673d0;if(this[_0x32ef7b(0x352)]=!0x0,((_0x2673d0=this[_0x32ef7b(0x3aa)][_0x32ef7b(0x3cc)]())==null?void 0x0:_0x2673d0[_0x32ef7b(0x3e6)]())!==this[_0x32ef7b(0x3bf)])return;const _0xecd3f1=this[_0x32ef7b(0x428)][_0x32ef7b(0x1e3)](_0xd5f03f)[_0x32ef7b(0x2c8)]();Array['isArray'](_0xecd3f1)&&_0xecd3f1[_0x32ef7b(0x30a)]>0x0&&this[_0x32ef7b(0x267)](_0xecd3f1);}[_0x1bab67(0x2ff)](){const _0x389f77=_0x1bab67;this[_0x389f77(0x352)]=!0x1;}};xe=wi([A(0x2,_0x5a79e2(_0x41a636)),A(0x3,_0x5a79e2(Ke)),A(0x4,_0x5a79e2(_0x4b1a14)),A(0x5,_0x5a79e2(ze)),A(0x6,_0x1b61b0),A(0x7,_0x3b2157),A(0x8,_0x34fc9a)],xe);var xi=Object[_0x1bab67(0x32a)],Bi=(_0xac4c3,_0x32e5cf,_0x10bf03,_0x52eb7f)=>{const _0xfde1e3=_0x1bab67;for(var _0x25811b=_0x52eb7f>0x1?void 0x0:_0x52eb7f?xi(_0x32e5cf,_0x10bf03):_0x32e5cf,_0x30e0c6=_0xac4c3[_0xfde1e3(0x30a)]-0x1,_0xc79a2;_0x30e0c6>=0x0;_0x30e0c6--)(_0xc79a2=_0xac4c3[_0x30e0c6])&&(_0x25811b=_0xc79a2(_0x25811b)||_0x25811b);return _0x25811b;},B=(_0x2738ba,_0x193353)=>(_0x44e12f,_0x364eb2)=>_0x193353(_0x44e12f,_0x364eb2,_0x2738ba);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x154648=[],_0x146645=!0x1;return _0x35e7b3=>{const _0x4109c4=_0x4050;_0x154648[_0x4109c4(0x403)](_0x35e7b3),_0x146645||(_0x146645=!0x0,setTimeout(()=>{_0x154648['forEach'](_0x303db8=>_0x303db8()),_0x154648=[],_0x146645=!0x1;}));};};let Be=class extends _0xb8eb03{constructor(_0x332386,_0x58c3f7,_0x51df86,_0x363c0b,_0xe23248,_0xa8011b,_0x481e6e,_0x1ecd3b){const _0x1476c0=_0x1bab67;super(),_(this,_0x1476c0(0x352),!0x1),_(this,_0x1476c0(0x38f),!0x1),_(this,'_cursorInfo$',new _0x42c9f3(new Map())),_(this,_0x1476c0(0x235),this['_cursorInfo$']['asObservable']()),_(this,_0x1476c0(0x288),new _0x42c9f3([])),_(this,'roomMembers$',this[_0x1476c0(0x288)][_0x1476c0(0x3e7)](_0x48e44d(Fi))),_(this,'_updateLocalCursor',_0x3dabb7((_0xa2c941,_0x46eff0)=>{const _0x49ffe6=_0x1476c0,_0x54f159={'eventID':_0x4ec7f0[_0x49ffe6(0x217)],'data':{'unitID':this[_0x49ffe6(0x3bf)],'memberID':this[_0x49ffe6(0x25a)][_0x49ffe6(0x3bd)](),'selection':_0x44242a(_0xa2c941,_0x46eff0[_0x49ffe6(0x360)])}};this[_0x49ffe6(0x25a)][_0x49ffe6(0x2fe)](_0x54f159,this['unitID']);},ki)),(this[_0x1476c0(0x3bf)]=_0x332386,this[_0x1476c0(0x25a)]=_0x58c3f7,this['_injector']=_0x51df86,this[_0x1476c0(0x3fc)]=_0x363c0b,this['_memberService']=_0xe23248,this[_0x1476c0(0x3aa)]=_0xa8011b,this[_0x1476c0(0x22c)]=_0x481e6e,this[_0x1476c0(0x1f0)]=_0x1ecd3b);}get[_0x1bab67(0x382)](){const _0x3a5cef=_0x1bab67;return this[_0x3a5cef(0x2f1)][_0x3a5cef(0x27b)]();}get[_0x1bab67(0x332)](){const _0x29e0eb=_0x1bab67;return this[_0x29e0eb(0x288)][_0x29e0eb(0x27b)]();}[_0x1bab67(0x3d8)](){const _0xd12a52=_0x1bab67;super[_0xd12a52(0x3d8)](),this['_cursorInfo$'][_0xd12a52(0x419)](new Map()),this['_cursorInfo$'][_0xd12a52(0x34a)](),this[_0xd12a52(0x288)]['next']([]),this['_roomMembers$']['complete']();}[_0x1bab67(0x277)](){const _0x20c187=_0x1bab67;this[_0x20c187(0x38f)]||(this[_0x20c187(0x38f)]=!0x0,this[_0x20c187(0x25a)][_0x20c187(0x35d)]['pipe'](_0x4cbc42(this[_0x20c187(0x297)]))[_0x20c187(0x401)](_0x3d331d=>{const _0x302f24=_0x20c187;_0x3d331d===_0x407a80[_0x302f24(0x33f)]?this[_0x302f24(0x24e)]():this['_toggleOffline']();}),this[_0x20c187(0x25a)][_0x20c187(0x270)]['pipe'](_0x4cbc42(this['dispose$']))[_0x20c187(0x401)](_0x31375e=>{const _0x419f04=_0x20c187,_0x4880c1=_0x31375e[_0x419f04(0x300)];_0x4880c1===_0x4ec7f0[_0x419f04(0x217)]&&this[_0x419f04(0x38a)](_0x31375e),_0x4880c1===_0x4ec7f0[_0x419f04(0x2d5)]&&this['_onCursorDelete'](_0x31375e);}),this[_0x20c187(0x2c9)](),this[_0x20c187(0x24d)](this[_0x20c187(0x22c)][_0x20c187(0x358)](_0x6715af=>{const _0x3dc817=_0x20c187;if(this[_0x3dc817(0x352)]&&_0x6715af['id']===_0x22809a['id']&&_0x6715af['params'][_0x3dc817(0x2d3)]===this['unitID']){const _0x54b755=_0x6715af['params'];this[_0x3dc817(0x267)](_0x54b755['subUnitId'],_0x54b755[_0x3dc817(0x423)][0x0]);}})));}[_0x1bab67(0x38a)](_0x1950f6){const _0xf67bce=_0x1bab67;var _0x1cb8df,_0x324fb2;const {memberID:_0x50683e,selection:_0x4ac511}=_0x1950f6[_0xf67bce(0x2b3)],{sheetName:_0x25d928,range:_0x41de96}=_0x374d74(_0x4ac511),_0x1f7c9e={'name':(_0x324fb2=(_0x1cb8df=this[_0xf67bce(0x2a9)][_0xf67bce(0x275)](this[_0xf67bce(0x3bf)],_0x50683e))==null?void 0x0:_0x1cb8df[_0xf67bce(0x303)])!=null?_0x324fb2:'Unknown\x20user','range':this['_getMergeRange'](_0x25d928,_0x41de96),'sheetID':_0x25d928,'color':this[_0xf67bce(0x3fc)][_0xf67bce(0x308)](_0x50683e),'selection':_0x4ac511},_0x46f238=this[_0xf67bce(0x382)];_0x46f238['set'](_0x50683e,_0x1f7c9e),this[_0xf67bce(0x2f1)]['next'](_0x46f238);}[_0x1bab67(0x2ab)](_0x28fa8d){const _0x18d9ca=_0x1bab67,{memberID:_0x48726b}=_0x28fa8d[_0x18d9ca(0x2b3)],_0x5a372e=this['cursorInfo'];_0x5a372e[_0x18d9ca(0x3ae)](_0x48726b),this[_0x18d9ca(0x2f1)][_0x18d9ca(0x419)](_0x5a372e);}[_0x1bab67(0x40c)](_0x3c2bed,_0x330147){const _0x2d1e6e=_0x1bab67;var _0x1890e2,_0xfc31d9;const _0x817d41=(_0xfc31d9=(_0x1890e2=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x2d1e6e(0x3bf)]))==null?void 0x0:_0x1890e2[_0x2d1e6e(0x26b)](_0x3c2bed))==null?void 0x0:_0xfc31d9['getMergeData']();return(_0x817d41==null?void 0x0:_0x817d41[_0x2d1e6e(0x22a)](_0x33c289=>_0x3f41b8['contains'](_0x33c289,_0x330147)))||_0x330147;}[_0x1bab67(0x2c9)](){const _0x268731=_0x1bab67,_0x816bf0=new _0x59db6f(),_0x25db48=Hi(),_0x361251=()=>{const _0x3054b1=_0x4050;_0x816bf0['dispose']();const _0x1d67db=(_0x473132,_0x119c72,_0x33fe0c,_0x48d8e5)=>{const _0x2bb777=_0x4050;let _0x52c7f6=[];switch(_0x473132['id']){case _0x59c1c3[_0x2bb777(0x2eb)]:{_0x52c7f6=_0x25bf2f(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x1fb)]:{_0x52c7f6=_0x54b924(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x2dd)]:{_0x52c7f6=_0x922e73(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x3f8)]:{_0x52c7f6=_0x5b3cb2(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x421)]:{_0x52c7f6=_0x2041ff(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x41f)]:{_0x52c7f6=_0x43caa4(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x309)]:{_0x52c7f6=_0x2e1057(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x31f)]:{_0x52c7f6=_0x3c8f15(_0x473132,_0x48d8e5);break;}case _0x59c1c3[_0x2bb777(0x3f4)]:{_0x52c7f6=_0x581694(_0x473132,_0x48d8e5);break;}}const _0x15e98e=_0x57870a(_0x52c7f6,_0x48d8e5),_0x237d32=this['cursorInfo']['get'](_0x119c72);if(_0x237d32&&_0x15e98e){const _0x5b21eb={..._0x237d32,'range':_0x15e98e};this[_0x2bb777(0x382)]['set'](_0x119c72,_0x5b21eb),_0x25db48(()=>{const _0x4ba6e7=_0x2bb777,_0x2f5d86=this['_refRangeService'][_0x4ba6e7(0x365)](_0x15e98e,_0x4697e0=>(_0x2f5d86[_0x4ba6e7(0x3d8)](),_0x1d67db(_0x4697e0,_0x119c72,_0x33fe0c,_0x15e98e)));_0x816bf0['add'](_0x2f5d86);});}return{'redos':[],'undos':[]};};this[_0x3054b1(0x382)][_0x3054b1(0x36c)]((_0x910bd8,_0x24506b)=>{const _0x4a14b5=_0x3054b1,{range:_0x475436,sheetID:_0x5c44c0}=_0x910bd8,_0x58c18c=this[_0x4a14b5(0x1f0)]['registerRefRange'](_0x475436,_0x39a82f=>(_0x58c18c[_0x4a14b5(0x3d8)](),_0x1d67db(_0x39a82f,_0x24506b,_0x5c44c0,_0x475436)));_0x816bf0[_0x4a14b5(0x3ed)](_0x58c18c);});};this[_0x268731(0x24d)](_0x2b2711(this[_0x268731(0x2f1)][_0x268731(0x401)](()=>{_0x361251();})));}['_toggleOnline'](){const _0x4def66=_0x1bab67;var _0x5edce7,_0x454ffd;if(this[_0x4def66(0x352)]=!0x0,((_0x5edce7=this[_0x4def66(0x3aa)][_0x4def66(0x3cc)]())==null?void 0x0:_0x5edce7[_0x4def66(0x3e6)]())!==this[_0x4def66(0x3bf)])return;const _0x13446e=(_0x454ffd=this[_0x4def66(0x428)][_0x4def66(0x1e3)](_0x4ae7c3)[_0x4def66(0x2f9)]())==null?void 0x0:_0x454ffd[0x0],_0x53becd=this['_univerInstanceService'][_0x4def66(0x2be)](_0x547011[_0x4def66(0x39b)])['getActiveSheet']();_0x13446e&&_0x53becd&&this[_0x4def66(0x267)](_0x53becd[_0x4def66(0x1fa)](),_0x13446e);}[_0x1bab67(0x2ff)](){const _0x232326=_0x1bab67;this[_0x232326(0x352)]=!0x1;}};Be=Bi([B(0x2,_0x5a79e2(_0x41a636)),B(0x3,_0x5a79e2(Ke)),B(0x4,_0x5a79e2(_0x4b1a14)),B(0x5,_0x3b2157),B(0x6,_0x34fc9a),B(0x7,_0x5a79e2(_0x474d9d))],Be);var Yi=Object[_0x1bab67(0x32a)],Wi=(_0x3e0a85,_0x5189a6,_0x3ff1db,_0x51c07d)=>{const _0x1066eb=_0x1bab67;for(var _0x55330e=_0x51c07d>0x1?void 0x0:_0x51c07d?Yi(_0x5189a6,_0x3ff1db):_0x5189a6,_0x644fcb=_0x3e0a85[_0x1066eb(0x30a)]-0x1,_0x393ab2;_0x644fcb>=0x0;_0x644fcb--)(_0x393ab2=_0x3e0a85[_0x644fcb])&&(_0x55330e=_0x393ab2(_0x55330e)||_0x55330e);return _0x55330e;},Ce=(_0x223de9,_0x24b3f3)=>(_0x56355c,_0xee9af2)=>_0x24b3f3(_0x56355c,_0xee9af2,_0x223de9);let H=class extends _0xb8eb03{constructor(_0x7bc3a4,_0x4331ed,_0x1f8c29){const _0x4c6b36=_0x1bab67;super(),_(this,'_entities',new Map()),_(this,_0x4c6b36(0x1e4),new _0xbe2b9d()),(this[_0x4c6b36(0x3aa)]=_0x7bc3a4,this[_0x4c6b36(0x428)]=_0x4331ed,this[_0x4c6b36(0x29c)]=_0x1f8c29,this[_0x4c6b36(0x38f)]());}['dispose'](){const _0x1a8ab7=_0x1bab67;super[_0x1a8ab7(0x3d8)](),this[_0x1a8ab7(0x1e4)][_0x1a8ab7(0x34a)](),this[_0x1a8ab7(0x26a)][_0x1a8ab7(0x36c)](_0x1f977f=>_0x1f977f[_0x1a8ab7(0x3d8)]());}['getCollabCursors$'](_0x2bf058){const _0x2c97f6=_0x1bab67;return this[_0x2c97f6(0x26a)][_0x2c97f6(0x1f7)](_0x2bf058)?this['_entities'][_0x2c97f6(0x1e3)](_0x2bf058)[_0x2c97f6(0x235)]:this['_entityInit$'][_0x2c97f6(0x3e7)](_0x22f5b1(_0xfab95=>_0xfab95[_0x2c97f6(0x3bf)]===_0x2bf058),_0x404b1e(_0x57cc0d=>_0x57cc0d['cursorInfo$']));}[_0x1bab67(0x38f)](){const _0x429eaf=_0x1bab67;this[_0x429eaf(0x3aa)][_0x429eaf(0x373)](_0x547011[_0x429eaf(0x39b)])[_0x429eaf(0x3e7)](_0x4cbc42(this['dispose$']))[_0x429eaf(0x401)](async _0x1cfdc6=>{const _0x4f9742=_0x429eaf,_0x38d183=_0x1cfdc6[_0x4f9742(0x3e6)](),_0x252792=await this[_0x4f9742(0x3ee)](_0x38d183);this[_0x4f9742(0x1e4)][_0x4f9742(0x419)](_0x252792),this[_0x4f9742(0x26a)][_0x4f9742(0x25f)](_0x38d183,_0x252792);}),this[_0x429eaf(0x3aa)]['getTypeOfUnitAdded$'](_0x547011['UNIVER_DOC'])[_0x429eaf(0x3e7)](_0x4cbc42(this[_0x429eaf(0x297)]))[_0x429eaf(0x3e7)](_0x22f5b1(_0x2e11f6=>!_0x2e11f6['getUnitId']()[_0x429eaf(0x39e)]('__')))['subscribe'](async _0x1aaea4=>{const _0xe1adc3=_0x429eaf,_0x55cc06=_0x1aaea4[_0xe1adc3(0x3e6)](),_0x423f68=await this['_startDocCollabCursor'](_0x55cc06);this[_0xe1adc3(0x1e4)][_0xe1adc3(0x419)](_0x423f68),this[_0xe1adc3(0x26a)][_0xe1adc3(0x25f)](_0x55cc06,_0x423f68);}),_0x33fea5(this['_univerInstanceService'][_0x429eaf(0x398)](_0x547011[_0x429eaf(0x265)]),this['_univerInstanceService'][_0x429eaf(0x398)](_0x547011['UNIVER_SHEET']))[_0x429eaf(0x3e7)](_0x4cbc42(this[_0x429eaf(0x297)]))[_0x429eaf(0x401)](_0x6d11e5=>{const _0x48a371=_0x429eaf,_0x2091bf=_0x6d11e5[_0x48a371(0x3e6)](),_0x4b452f=this[_0x48a371(0x26a)]['get'](_0x2091bf);_0x4b452f&&(_0x4b452f[_0x48a371(0x3d8)](),this[_0x48a371(0x26a)][_0x48a371(0x3ae)](_0x2091bf));});}async[_0x1bab67(0x3ee)](_0x4084cb){const _0x2e4336=_0x1bab67,_0x424803=await this[_0x2e4336(0x29c)][_0x2e4336(0x312)](_0x4084cb),_0x3ca671=this[_0x2e4336(0x428)]['createInstance'](Be,_0x4084cb,_0x424803);return _0x3ca671[_0x2e4336(0x277)](),_0x3ca671;}async['_startDocCollabCursor'](_0x556ce0){const _0x1a6d11=_0x1bab67,_0xa67d9f=await this[_0x1a6d11(0x29c)][_0x1a6d11(0x312)](_0x556ce0),_0x485a3e=this[_0x1a6d11(0x428)]['createInstance'](xe,_0x556ce0,_0xa67d9f);return _0x485a3e[_0x1a6d11(0x277)](),_0x485a3e;}};H=Wi([Ce(0x0,_0x3b2157),Ce(0x1,_0x5a79e2(_0x41a636)),Ce(0x2,_0x5a79e2(_0x5b8361))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x2ed9dc,_0x22b7c2){const _0x16c6c4=_0x1bab67;let {radius:_0x199139,width:_0x9c5e95,height:_0x2b88cb}=_0x22b7c2;_0x199139=_0x199139!=null?_0x199139:0x0,_0x9c5e95=_0x9c5e95!=null?_0x9c5e95:0x1e,_0x2b88cb=_0x2b88cb!=null?_0x2b88cb:0x1e;let _0x30faaa=0x0,_0x418bac=0x0,_0x3b7346=0x0;_0x30faaa=_0x418bac=_0x3b7346=Math[_0x16c6c4(0x2fd)](_0x199139,_0x9c5e95/0x2,_0x2b88cb/0x2),_0x2ed9dc[_0x16c6c4(0x1fc)](),_0x2ed9dc[_0x16c6c4(0x26f)](_0x30faaa,0x0),_0x2ed9dc['lineTo'](_0x9c5e95-_0x418bac,0x0),_0x2ed9dc['arc'](_0x9c5e95-_0x418bac,_0x418bac,_0x418bac,Math['PI']*0x3/0x2,0x0,!0x1),_0x2ed9dc[_0x16c6c4(0x40d)](_0x9c5e95,_0x2b88cb-_0x3b7346),_0x2ed9dc[_0x16c6c4(0x2e8)](_0x9c5e95-_0x3b7346,_0x2b88cb-_0x3b7346,_0x3b7346,0x0,Math['PI']/0x2,!0x1),_0x2ed9dc[_0x16c6c4(0x40d)](0x0,_0x2b88cb),_0x2ed9dc['lineTo'](0x0,_0x30faaa),_0x2ed9dc['arc'](_0x30faaa,_0x30faaa,_0x30faaa,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2ed9dc[_0x16c6c4(0x3d6)](),_0x22b7c2['fill']&&(_0x2ed9dc[_0x16c6c4(0x427)](),_0x2ed9dc[_0x16c6c4(0x3c7)]=_0x22b7c2[_0x16c6c4(0x367)],_0x22b7c2[_0x16c6c4(0x3f5)]===_0x16c6c4(0x3b4)?_0x2ed9dc[_0x16c6c4(0x367)](_0x16c6c4(0x3b4)):_0x2ed9dc[_0x16c6c4(0x367)](),_0x2ed9dc['restore']());}class Ee extends _0x2d6f87{constructor(_0x37dc14,_0x1665ac){const _0x410001=_0x1bab67;super(_0x37dc14,_0x1665ac),_(this,_0x410001(0x2c7)),_(this,_0x410001(0x414)),(this[_0x410001(0x2c7)]=_0x1665ac==null?void 0x0:_0x1665ac['color'],this[_0x410001(0x414)]=_0x1665ac==null?void 0x0:_0x1665ac[_0x410001(0x414)]);}static[_0x1bab67(0x3fa)](_0x2f4077,_0x36b00d){const _0x36524c=_0x1bab67,{text:_0x15bf5c,color:_0x193dca}=_0x36b00d;_0x2f4077[_0x36524c(0x427)](),_0x2f4077[_0x36524c(0x370)]=_0x36524c(0x200);const _0xf8a9dd=_0x2f4077['measureText'](_0x15bf5c)[_0x36524c(0x389)],_0x16d201=Math[_0x36524c(0x2fd)](_0xf8a9dd+0x2*Re,at);Vi(_0x2f4077,{'height':Q,'radius':0x4,'width':_0x16d201,'fill':_0x193dca}),_0x2f4077[_0x36524c(0x3c7)]='#FFF';const _0x1bb07f=Re,_0x5dc167=Q-ji,_0x3b7c0d=at-0x2*Re;if(_0xf8a9dd>_0x3b7c0d){let _0x66d3f6='',_0x5cca07=0x0;for(const _0x286f33 of _0x15bf5c){const _0x1b70bf=_0x2f4077[_0x36524c(0x29d)](_0x286f33)[_0x36524c(0x389)];if(_0x5cca07+_0x1b70bf<=_0x3b7c0d-_0x2f4077[_0x36524c(0x29d)](_0x36524c(0x2ee))[_0x36524c(0x389)])_0x66d3f6+=_0x286f33,_0x5cca07+=_0x1b70bf;else{_0x66d3f6+=_0x36524c(0x2ee);break;}}_0x2f4077[_0x36524c(0x39f)](_0x66d3f6,_0x1bb07f,_0x5dc167);}else _0x2f4077[_0x36524c(0x39f)](_0x15bf5c,_0x1bb07f,_0x5dc167);_0x2f4077[_0x36524c(0x25b)]();}[_0x1bab67(0x3b1)](_0x3ffa06){const _0x2f4ba7=_0x1bab67;Ee[_0x2f4ba7(0x3fa)](_0x3ffa06,this);}}const De=_0x1bab67(0x316),Xi=_0x1bab67(0x3af),Gi=_0x1bab67(0x3eb),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x34246f,_0x28e6af,_0x590b1e,_0xc2fae8){const _0x5509ba=_0x1bab67;_(this,'_shapes',[]),_(this,_0x5509ba(0x347),null),_(this,_0x5509ba(0x2f6),null),_(this,_0x5509ba(0x3ac),null),_(this,_0x5509ba(0x310),null),_(this,_0x5509ba(0x302),null),(this[_0x5509ba(0x1ef)]=_0x34246f,this['_scene']=_0x28e6af,this[_0x5509ba(0x378)]=_0x590b1e,this[_0x5509ba(0x1e7)]=_0xc2fae8,this[_0x5509ba(0x290)]());}set[_0x1bab67(0x278)](_0x35123a){const _0x55b355=_0x1bab67;_0x35123a?(this['_anchorDot']&&this[_0x55b355(0x3ac)]['hide'](),this['_textBubble']&&this['_textBubble']['show']()):(this['_anchorDot']&&this[_0x55b355(0x3ac)][_0x55b355(0x40b)](),this[_0x55b355(0x2f6)]&&this[_0x55b355(0x2f6)]['hide']());}[_0x1bab67(0x3d8)](){const _0x5345ed=_0x1bab67;for(const _0x111cd9 of this['_shapes'])_0x111cd9[_0x5345ed(0x3d8)]();this[_0x5345ed(0x2f6)]&&this[_0x5345ed(0x2f6)][_0x5345ed(0x3d8)](),this[_0x5345ed(0x3ac)]&&this[_0x5345ed(0x3ac)][_0x5345ed(0x3d8)](),this[_0x5345ed(0x347)]&&this[_0x5345ed(0x347)][_0x5345ed(0x3d8)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x57d489=_0x1bab67;var _0x351098;const {_docSkeleton:_0x50e0ac,_document:_0xe3e00e}=this,{color:_0x195c9b,name:_0x30b5f1,ranges:_0xbb3eee}=this[_0x57d489(0x1ef)],_0x188535=_0xe3e00e[_0x57d489(0x3b0)](),{docsLeft:_0x485e45,docsTop:_0x4524cd}=_0x188535,_0xc63472=new _0x267305(_0x188535,_0x50e0ac);for(const {startOffset:_0x5c5174,endOffset:_0x296b02,rangeType:_0x3fdc38,segmentId:_0x4b5d57,segmentPage:_0x20b7ab,collapsed:_0x2da7c7,isActive:_0x9e50f4}of _0xbb3eee){const _0x4767b5=_0x50e0ac[_0x57d489(0x1e5)](_0x5c5174,!0x0,_0x4b5d57,_0x20b7ab);let _0x5dfc1f=_0x50e0ac[_0x57d489(0x1e5)](_0x296b02,!0x0,_0x4b5d57,_0x20b7ab);if(_0x5dfc1f==null&&(_0x5dfc1f=_0x50e0ac[_0x57d489(0x1e5)](_0x296b02-0x1,!0x1,_0x4b5d57,_0x20b7ab)),_0x9e50f4){const {contentBoxPointGroup:_0x3e7209}=_0xc63472[_0x57d489(0x3e9)](_0x5dfc1f,_0x5dfc1f);if(_0x3e7209[_0x57d489(0x30a)]===0x0)continue;this['_drawAnchor'](_0x195c9b,_0x3e7209,_0x485e45,_0x4524cd,_0x30b5f1),this[_0x57d489(0x302)]=this[_0x57d489(0x255)]();}if(_0x4767b5&&_0x5dfc1f){if(_0x3fdc38===_0x4c6b17[_0x57d489(0x222)]){const _0xdc662e=new _0x48404a(_0x188535,_0x50e0ac),{pointGroup:_0x4a0b48}=(_0x351098=_0xdc662e['getRangePointData'](_0x4767b5,_0x5dfc1f))!=null?_0x351098:{};if(_0x4a0b48==null||_0x4a0b48[_0x57d489(0x30a)]===0x0)continue;this['_drawRectRange'](_0x195c9b,_0x4a0b48,_0x485e45,_0x4524cd);}else{if(!_0x2da7c7){const {borderBoxPointGroup:_0x15fe20}=_0xc63472[_0x57d489(0x3e9)](_0x4767b5,_0x5dfc1f);if(_0x15fe20[_0x57d489(0x30a)]===0x0)continue;this['_drawTextRange'](_0x195c9b,_0x15fe20,_0x485e45,_0x4524cd);}}}}}[_0x1bab67(0x22b)](_0x1a489b,_0x1b4455,_0x438e56,_0x440686,_0x4a10a1){const _0x1861ce=_0x1bab67,_0x36b0b0=this[_0x1861ce(0x3f6)](_0x1b4455),{left:_0x442971,top:_0x5e9aa0,height:_0x596658}=_0x36b0b0,_0x44fe62=this['_getScale'](),_0x14dd35=zi/_0x44fe62,_0x1d7760=new _0x17d777(De+_0x2679ea(z),{'left':_0x442971+_0x438e56-_0x14dd35,'top':_0x5e9aa0+_0x440686,'height':_0x596658,'width':Ki,'fill':_0x1a489b||_0x59e896(_0xee8009[_0x1861ce(0x3ef)],0x0),'strokeWidth':_0x14dd35,'stroke':Ji,'evented':!0x0});this[_0x1861ce(0x347)]=_0x1d7760,this[_0x1861ce(0x221)][_0x1861ce(0x3d2)](_0x1d7760,_0x4adf9c);const _0x12804f=new _0x17d777(De+_0x2679ea(z),{'left':_0x442971+_0x438e56-_0x14dd35,'top':_0x5e9aa0+_0x440686-be/0x2,'height':be,'width':be,'fill':_0x1a489b||_0x59e896(_0xee8009['black'],0x0),'strokeWidth':0x0,'stroke':_0x1a489b||_0x59e896(_0xee8009['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x12804f,this[_0x1861ce(0x221)][_0x1861ce(0x3d2)](_0x12804f,_0x4adf9c);const _0x450c14=new Ee(De+_0x2679ea(z),{'left':_0x442971+_0x438e56-_0x14dd35,'top':_0x5e9aa0+_0x440686-Q,'text':_0x4a10a1,'color':_0x1a489b});this['_textBubble']=_0x450c14,this[_0x1861ce(0x221)][_0x1861ce(0x3d2)](_0x450c14,_0x4adf9c),this['_hover']=!0x1;}[_0x1bab67(0x255)](){const _0x132ba5=_0x1bab67,_0x597758=this['_anchor'][_0x132ba5(0x420)][_0x132ba5(0x3d3)](()=>{const _0x511e8f=_0x132ba5;this[_0x511e8f(0x278)]=!0x0;}),_0x11ffcf=this[_0x132ba5(0x347)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x58c0ff=_0x132ba5;this[_0x58c0ff(0x310)]&&clearTimeout(this[_0x58c0ff(0x310)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xc9ed=_0x132ba5;_0x597758[_0xc9ed(0x356)](),_0x11ffcf[_0xc9ed(0x356)]();};}['_drawTextRange'](_0x5991de,_0x5476a1,_0x420da3,_0x1fdcf7){const _0x431a17=_0x1bab67,_0x5d7175=new _0x55dc10(_0x5991de)[_0x431a17(0x369)](0.2)[_0x431a17(0x402)](),_0x1cf60b=new _0x232ebe(Xi+_0x2679ea(z),{'pointsGroup':_0x5476a1,'fill':_0x5d7175||_0x59e896(_0xee8009[_0x431a17(0x3ef)],0.2),'left':_0x420da3,'top':_0x1fdcf7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x431a17(0x388)][_0x431a17(0x403)](_0x1cf60b),this[_0x431a17(0x221)][_0x431a17(0x3d2)](_0x1cf60b,_0x4adf9c);}[_0x1bab67(0x327)](_0x135bdc,_0x1d0d00,_0xb0ad51,_0x305280){const _0x1a2a38=_0x1bab67,_0xafb77a=new _0x55dc10(_0x135bdc)['setAlpha'](0.2)['toRgbString'](),_0x154bcb=new _0x232ebe(Gi+_0x2679ea(z),{'pointsGroup':_0x1d0d00,'fill':_0xafb77a||_0x59e896(_0xee8009['black'],0.2),'left':_0xb0ad51,'top':_0x305280,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a2a38(0x388)]['push'](_0x154bcb),this[_0x1a2a38(0x221)][_0x1a2a38(0x3d2)](_0x154bcb,_0x4adf9c);}[_0x1bab67(0x3f6)](_0x26854a){const _0x545479=_0x26854a[0x0],_0x512448=_0x545479[0x0],_0x2c0612=_0x545479[0x2],{x:_0x4365ac,y:_0xbf9f94}=_0x512448,{x:_0x2f93ce,y:_0x33004b}=_0x2c0612;return{'left':_0x4365ac,'top':_0xbf9f94,'width':_0x2f93ce-_0x4365ac,'height':_0x33004b-_0xbf9f94};}[_0x1bab67(0x1e0)](){const _0x44d4ae=_0x1bab67,{scaleX:_0xa75073,scaleY:_0xae521e}=this[_0x44d4ae(0x221)][_0x44d4ae(0x3ce)]();return Math[_0x44d4ae(0x236)](_0xa75073,_0xae521e);}}var Zi=Object[_0x1bab67(0x32a)],Qi=(_0x14e6a2,_0x449847,_0x12098e,_0x32be15)=>{const _0xf9e188=_0x1bab67;for(var _0x3e7c48=_0x32be15>0x1?void 0x0:_0x32be15?Zi(_0x449847,_0x12098e):_0x449847,_0x2b85ec=_0x14e6a2[_0xf9e188(0x30a)]-0x1,_0x406600;_0x2b85ec>=0x0;_0x2b85ec--)(_0x406600=_0x14e6a2[_0x2b85ec])&&(_0x3e7c48=_0x406600(_0x3e7c48)||_0x3e7c48);return _0x3e7c48;},ie=(_0x13f61c,_0x30a4a4)=>(_0x49dfd0,_0x3cdcfe)=>_0x30a4a4(_0x49dfd0,_0x3cdcfe,_0x13f61c);let Fe=class extends _0xb8eb03{constructor(_0x4c59c7,_0xbcc34c,_0x202c7d,_0x4ab9a0,_0x58584f){const _0x5040e9=_0x1bab67;super(),_(this,_0x5040e9(0x3b7),[]),_(this,_0x5040e9(0x212),[]),(this[_0x5040e9(0x20d)]=_0x4c59c7,this[_0x5040e9(0x2e4)]=_0xbcc34c,this[_0x5040e9(0x282)]=_0x202c7d,this[_0x5040e9(0x22c)]=_0x4ab9a0,this[_0x5040e9(0x3d7)]=_0x58584f,this['_init']());}[_0x1bab67(0x38f)](){const _0xa55c62=_0x1bab67,_0x3e3552=this[_0xa55c62(0x20d)][_0xa55c62(0x2d3)],_0x20e7e3=this[_0xa55c62(0x2e4)];this['disposeWithMe'](_0x188334([this[_0xa55c62(0x282)][_0xa55c62(0x2d7)](_0x3e3552),this[_0xa55c62(0x3d7)][_0xa55c62(0x379)]])[_0xa55c62(0x3e7)](_0xa7eefa(([_0x1aec03,_0x260f97])=>({'skeleton':_0x20e7e3[_0xa55c62(0x2ce)](),'cursors':[..._0x1aec03[_0xa55c62(0x321)]()][_0xa55c62(0x2ca)](_0x1e66f7=>({..._0x1e66f7,'color':this[_0xa55c62(0x3d7)]['getColorFromTheme'](_0x1e66f7['color'])}))})))['subscribe'](_0x55cae5=>{const _0x4ccb31=_0xa55c62;if(this['_removeCollabCursors'](),_0x55cae5){const {skeleton:_0x289adb,cursors:_0x20a01b}=_0x55cae5;this[_0x4ccb31(0x218)](_0x289adb,_0x20a01b);}})),this[_0xa55c62(0x2b7)](),this[_0xa55c62(0x42e)]();}[_0x1bab67(0x218)](_0x17eff5,_0x546485){const _0x39a0d8=_0x1bab67,{scene:_0x2da384,mainComponent:_0x1023d0}=this[_0x39a0d8(0x20d)],_0xe88525=_0x546485['map'](_0x5936e3=>new ct(_0x5936e3,_0x2da384,_0x17eff5,_0x1023d0));this[_0x39a0d8(0x3b7)]=_0xe88525,this[_0x39a0d8(0x212)]=_0x546485;}[_0x1bab67(0x353)](){const _0x4165e0=_0x1bab67;this[_0x4165e0(0x3fe)]();const {scene:_0x8017a4,mainComponent:_0x41f8ac}=this[_0x4165e0(0x20d)],_0x270b88=this[_0x4165e0(0x2e4)]['getSkeleton'](),_0x53f6e6=this[_0x4165e0(0x212)]['map'](_0x59e6fb=>new ct(_0x59e6fb,_0x8017a4,_0x270b88,_0x41f8ac));this[_0x4165e0(0x3b7)]=_0x53f6e6;}[_0x1bab67(0x3fe)](){const _0x3fc7d6=_0x1bab67;this[_0x3fc7d6(0x3b7)]['forEach'](_0x765013=>_0x765013[_0x3fc7d6(0x3d8)]()),this[_0x3fc7d6(0x3b7)]=[];}[_0x1bab67(0x42e)](){const _0x54ba46=_0x1bab67,_0x54ec4d=[_0x2e1434['id']];this[_0x54ba46(0x24d)](this[_0x54ba46(0x22c)]['onCommandExecuted'](_0x2687c5=>{const _0x494919=_0x54ba46;_0x54ec4d[_0x494919(0x2de)](_0x2687c5['id'])&&_0x2687c5[_0x494919(0x35c)][_0x494919(0x2d3)]===this[_0x494919(0x20d)][_0x494919(0x2d3)]&&this[_0x494919(0x353)]();}));}['_initResize'](){const _0x15420a=_0x1bab67;this[_0x15420a(0x24d)](_0x525fe4(this['_context'][_0x15420a(0x33e)][_0x15420a(0x37e)])[_0x15420a(0x3e7)](_0x2df3db(_0x4b7603=>_0x4b7603[_0x15420a(0x227)]===_0x30d333['resize']),_0x5454da(0x10))[_0x15420a(0x401)](()=>{const _0x4047ad=_0x15420a;this[_0x4047ad(0x353)]();}));}};Fe=Qi([ie(0x1,_0x5a79e2(_0x210e2e)),ie(0x2,_0x5a79e2(H)),ie(0x3,_0x34fc9a),ie(0x4,_0x5a79e2(_0x3c6cac))],Fe);const qi=0x1,en=1.5;class tn extends _0x2d6f87{constructor(_0x5e6409,_0x3180de){const _0xe3612f=_0x1bab67;super(_0x5e6409,_0x3180de),_(this,_0xe3612f(0x41b)),_(this,_0xe3612f(0x386),!0x1),_(this,_0xe3612f(0x343)),_(this,_0xe3612f(0x3b9),''),_(this,_0xe3612f(0x311),'top'),_(this,_0xe3612f(0x425)),(_0x3180de&&this[_0xe3612f(0x251)](_0x3180de),this[_0xe3612f(0x420)][_0xe3612f(0x3d3)](()=>this[_0xe3612f(0x251)]({'hovered':!0x0})),this[_0xe3612f(0x2c0)][_0xe3612f(0x3d3)](()=>this[_0xe3612f(0x251)]({'hovered':!0x1})));}[_0x1bab67(0x251)](_0x6b03c7){const _0x3bcbc3=_0x1bab67;var _0x4498ae,_0x8fa3b5,_0x5f72b7,_0x29e33d,_0x336189,_0x417d38;this['_color']=(_0x4498ae=_0x6b03c7[_0x3bcbc3(0x2c7)])!=null?_0x4498ae:this[_0x3bcbc3(0x41b)],this[_0x3bcbc3(0x386)]=(_0x8fa3b5=_0x6b03c7['hovered'])!=null?_0x8fa3b5:this[_0x3bcbc3(0x386)],this[_0x3bcbc3(0x343)]=(_0x5f72b7=_0x6b03c7['range'])!=null?_0x5f72b7:this[_0x3bcbc3(0x343)],this[_0x3bcbc3(0x3b9)]=(_0x29e33d=_0x6b03c7[_0x3bcbc3(0x303)])!=null?_0x29e33d:this['_name'],this['_labelPosition']=(_0x336189=_0x6b03c7[_0x3bcbc3(0x3f0)])!=null?_0x336189:this['_labelPosition'],this['_backgroundColor']=(_0x417d38=_0x6b03c7[_0x3bcbc3(0x33d)])!=null?_0x417d38:this[_0x3bcbc3(0x425)],this['transformByState']({'width':_0x6b03c7[_0x3bcbc3(0x389)],'height':_0x6b03c7[_0x3bcbc3(0x231)]});}[_0x1bab67(0x2f3)](_0xe689b3){const _0x5b8869=_0x1bab67,{row:_0x1ff9d2,column:_0x1142ff}=_0xe689b3;if(_0x1ff9d2>=this['_range'][_0x5b8869(0x2b4)]&&_0x1ff9d2<=this[_0x5b8869(0x343)][_0x5b8869(0x2e0)]&&_0x1142ff>=this[_0x5b8869(0x343)][_0x5b8869(0x3a0)]&&_0x1142ff<=this[_0x5b8869(0x343)]['endColumn']){this[_0x5b8869(0x251)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x1bab67(0x366)](_0x360417){return!0x1;}['_draw'](_0x175f9b){const _0x2ea097=_0x1bab67;_0x17d777[_0x2ea097(0x3fa)](_0x175f9b,{'width':this[_0x2ea097(0x389)],'height':this[_0x2ea097(0x231)],'strokeWidth':en,'stroke':this[_0x2ea097(0x41b)],'evented':!0x1,'fill':this[_0x2ea097(0x425)]}),this[_0x2ea097(0x386)]&&(_0x175f9b[_0x2ea097(0x427)](),_0x175f9b['transform'](0x1,0x0,0x0,0x1,this[_0x2ea097(0x389)],this[_0x2ea097(0x311)]===_0x2ea097(0x2b9)?0x0:-Q),Ee['drawWith'](_0x175f9b,{'text':this['_name'],'color':this['_color']}),_0x175f9b[_0x2ea097(0x25b)]());}}var sn=Object[_0x1bab67(0x32a)],nn=(_0x4b9642,_0xf5cfeb,_0x2773a7,_0x564345)=>{for(var _0x5e7239=_0x564345>0x1?void 0x0:_0x564345?sn(_0xf5cfeb,_0x2773a7):_0xf5cfeb,_0x5e32b5=_0x4b9642['length']-0x1,_0x171eb2;_0x5e32b5>=0x0;_0x5e32b5--)(_0x171eb2=_0x4b9642[_0x5e32b5])&&(_0x5e7239=_0x171eb2(_0x5e7239)||_0x5e7239);return _0x5e7239;},Ne=(_0x3c57d7,_0x9996c8)=>(_0x4f59e8,_0x2d2aa6)=>_0x9996c8(_0x4f59e8,_0x2d2aa6,_0x3c57d7);const rn=0x1389;let ke=class extends _0xb8eb03{constructor(_0x3c2fad,_0x153c3f,_0x19738a,_0x3adad0){const _0x1faa58=_0x1bab67;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x3c2fad,this['_sheetSkeletonManagerService']=_0x153c3f,this[_0x1faa58(0x282)]=_0x19738a,this[_0x1faa58(0x3d7)]=_0x3adad0,this[_0x1faa58(0x38f)]());}['_init'](){const _0x1d43cc=_0x1bab67;this[_0x1d43cc(0x39d)][_0x1d43cc(0x3cf)][_0x1d43cc(0x3e7)](_0x33be30(this['dispose$']),_0x42a06f(_0x4df927=>{const _0x1c0a1d=_0x1d43cc;if(_0x4df927){const _0x34ba2a=_0x4df927[_0x1c0a1d(0x355)];return _0x188334(this['_collabCursorController'][_0x1c0a1d(0x2d7)](this[_0x1c0a1d(0x20d)][_0x1c0a1d(0x2d3)]),this[_0x1c0a1d(0x3d7)][_0x1c0a1d(0x379)])[_0x1c0a1d(0x3e7)](_0xa7eefa(([_0x469270,_0x1b4770])=>{const _0x21c471=_0x1c0a1d,_0x29ead3=new Map();return _0x469270[_0x21c471(0x36c)]((_0x28f587,_0x4f8c99)=>{const _0x40f6a7=_0x21c471;if(_0x28f587['sheetID']===_0x34ba2a){const _0x1a0e14={..._0x28f587};_0x1a0e14[_0x40f6a7(0x2c7)]=this['_themeService'][_0x40f6a7(0x1f8)](_0x28f587[_0x40f6a7(0x2c7)]),_0x29ead3[_0x40f6a7(0x25f)](_0x4f8c99,_0x1a0e14);}}),{'skeleton':_0x4df927,'cursors':_0x29ead3};}));}return _0x147589({'skeleton':null,'cursors':new Map()});}))[_0x1d43cc(0x401)](({skeleton:_0x36020f,cursors:_0x52c56a})=>{const _0x8ec66e=_0x1d43cc;this[_0x8ec66e(0x3fe)](),_0x36020f&&this[_0x8ec66e(0x218)](_0x36020f,_0x52c56a);}),this[_0x1d43cc(0x39d)][_0x1d43cc(0x3cf)][_0x1d43cc(0x401)](_0x80c981=>{const _0x81a85f=_0x1d43cc;if(_0x80c981==null)return;const {skeleton:_0x3ead5f}=_0x80c981,{scene:_0x4b0a5c}=this[_0x81a85f(0x20d)];_0x4b0a5c[_0x81a85f(0x31a)][_0x81a85f(0x3d3)](_0x3dabb7(_0x5aa040=>{const _0x79d623=_0x81a85f;var _0x4424cd,_0x13f85a;const {offsetX:_0x46da65,offsetY:_0x383e5c}=_0x5aa040,{x:_0x1f05ad,y:_0xcd8795}=_0x4b0a5c[_0x79d623(0x2fa)](_0x380b35[_0x79d623(0x229)]([_0x46da65,_0x383e5c])),{scaleX:_0x56bd2f,scaleY:_0x5a1c38}=_0x4b0a5c[_0x79d623(0x3ce)](),_0x2615e5=_0x4b0a5c['getViewport'](_0x3d4c73['VIEW_MAIN']),_0x1414f6=_0x4b0a5c[_0x79d623(0x246)](_0x380b35[_0x79d623(0x229)]([_0x1f05ad,_0xcd8795]),_0x2615e5),_0xe7dbd4=_0x3ead5f['getCellPositionByOffset'](_0x46da65,_0x383e5c,_0x56bd2f,_0x5a1c38,_0x1414f6);((_0x4424cd=this[_0x79d623(0x1f4)])==null?void 0x0:_0x4424cd[_0x79d623(0x210)])===_0xe7dbd4['column']&&((_0x13f85a=this['_lastPointer'])==null?void 0x0:_0x13f85a[_0x79d623(0x264)])===_0xe7dbd4[_0x79d623(0x264)]||this['_cursors'][_0x79d623(0x36c)](_0x605f7b=>{const _0x3cd157=_0x79d623;_0x605f7b[_0x3cd157(0x2f3)](_0xe7dbd4);});},0x64));});}[_0x1bab67(0x218)](_0x2e08ec,_0x1e9d0a){const _0x2b75b1=_0x1bab67;var _0x35fece;const _0x1832e7=(_0x35fece=this[_0x2b75b1(0x39d)][_0x2b75b1(0x3b2)]())==null?void 0x0:_0x35fece[_0x2b75b1(0x2a2)];if(!_0x1832e7)return;const _0x4653e3=this[_0x2b75b1(0x351)]();if(!_0x4653e3)return;this['_cursors'][_0x2b75b1(0x36c)](_0x8bab99=>{_0x8bab99['makeDirty']();});const {scene:_0x2d8e29}=_0x4653e3,_0x3901ea=on(Array['from'](_0x1e9d0a[_0x2b75b1(0x321)]()))[_0x2b75b1(0x2c1)](_0x158ef9=>{const _0x2c3422=_0x2b75b1,{color:_0x1a370a,range:_0xb4c76c,name:_0x45e6b8,selection:_0x13b15f,sheetID:_0x207f7d}=_0x158ef9,{startColumn:_0x9efde,startRow:_0x3d538d,endColumn:_0x5b5d47,endRow:_0x3b8edd}=_0xb4c76c,_0x151490=_0xa911b5(_0x3d538d,_0x9efde,_0x2d8e29,_0x1832e7),_0x124ca8=_0xa911b5(_0x3b8edd,_0x5b5d47,_0x2d8e29,_0x1832e7),{columnHeaderHeightAndMarginTop:_0x17f47c}=_0x1832e7,{startX:_0x223683,startY:_0x4e8661}=_0x151490,{endX:_0x467e38,endY:_0x266c35}=_0x124ca8,_0x4de627=_0x467e38-_0x223683,_0x44cc54=_0x266c35-_0x4e8661,_0x5aecf3={'labelPosition':_0x4e8661-_0x17f47c>=Q?_0x2c3422(0x329):_0x2c3422(0x2b9),'sheetID':_0x207f7d,'range':_0xb4c76c,'color':_0x1a370a,'name':_0x45e6b8,'selection':_0x13b15f,'left':_0x223683,'top':_0x4e8661,'width':_0x4de627,'height':_0x44cc54,'evented':!0x1,'zIndex':rn};return new tn(_0x45e6b8,_0x5aecf3);});_0x2d8e29[_0x2b75b1(0x21c)](_0x3901ea,qi),this[_0x2b75b1(0x212)]=new Set(_0x3901ea);}['_removeCollabCursors'](){const _0x5264c2=_0x1bab67;var _0x260683;(_0x260683=this[_0x5264c2(0x212)])==null||_0x260683['forEach'](_0x5c6d47=>_0x5c6d47['dispose']());}[_0x1bab67(0x351)](){const _0x304d4f=_0x1bab67;return _0x11d02e(this['_context'][_0x304d4f(0x1fd)],this[_0x304d4f(0x20d)]);}};ke=nn([Ne(0x1,_0x5a79e2(_0x1576bc)),Ne(0x2,_0x5a79e2(H)),Ne(0x3,_0x5a79e2(_0x3c6cac))],ke);function on(_0x24f41e){const _0x2ff8e9=_0x1bab67,_0x516600=new Map();return _0x24f41e[_0x2ff8e9(0x36c)](_0x4a00b7=>{const _0x2e0e4c=_0x2ff8e9;if(_0x516600[_0x2e0e4c(0x1f7)](_0x4a00b7[_0x2e0e4c(0x3d0)])){const _0x36eb20=_0x516600[_0x2e0e4c(0x1e3)](_0x4a00b7[_0x2e0e4c(0x3d0)]);_0x36eb20[_0x2e0e4c(0x303)]+=',\x20'+_0x4a00b7['name'];}else _0x516600[_0x2e0e4c(0x25f)](_0x4a00b7[_0x2e0e4c(0x3d0)],_0x4a00b7);}),Array[_0x2ff8e9(0x2a8)](_0x516600[_0x2ff8e9(0x321)]());}var an=Object[_0x1bab67(0x32a)],cn=(_0x7b29b8,_0x1cf500,_0x54e7be,_0x4bdb50)=>{const _0x280f8f=_0x1bab67;for(var _0x41b697=_0x4bdb50>0x1?void 0x0:_0x4bdb50?an(_0x1cf500,_0x54e7be):_0x1cf500,_0x11f348=_0x7b29b8[_0x280f8f(0x30a)]-0x1,_0x4b9ed1;_0x11f348>=0x0;_0x11f348--)(_0x4b9ed1=_0x7b29b8[_0x11f348])&&(_0x41b697=_0x4b9ed1(_0x41b697)||_0x41b697);return _0x41b697;},F=(_0x3e8ae4,_0x508206)=>(_0x552e5c,_0x3ba337)=>_0x508206(_0x552e5c,_0x3ba337,_0x3e8ae4);let _e=class extends _0x570ab2{constructor(_0x6140cb,_0x4111d5,_0x3676e9,_0x4f2df8,_0x709ba4,_0x10bb00){const _0xe9056e=_0x1bab67;super(),this[_0xe9056e(0x305)]=_0x6140cb,this[_0xe9056e(0x29a)]=_0x4111d5,this[_0xe9056e(0x354)]=_0x3676e9,this[_0xe9056e(0x313)]=_0x4f2df8,this[_0xe9056e(0x342)]=_0x709ba4,this['_localeService']=_0x10bb00,this['_setupBeforeClosingHandler'](),this[_0xe9056e(0x1e8)]();}[_0x1bab67(0x40e)](){const _0x2da9a0=_0x1bab67;this[_0x2da9a0(0x24d)](this[_0x2da9a0(0x305)]['registerBeforeClose'](()=>{const _0x231897=_0x2da9a0;if(this[_0x231897(0x29a)][_0x231897(0x38e)][_0x231897(0x40a)])return this['_localeService']['t'](_0x231897(0x393));}));}[_0x1bab67(0x1e8)](){const _0x15870b=_0x1bab67;this[_0x15870b(0x24d)](this['_collaborationUIEventService'][_0x15870b(0x270)][_0x15870b(0x401)](_0xf22be4=>{const _0x33fa42=_0x15870b;_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x37b)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe['Warning'],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x20f))}),_0xf22be4['id']===_0x4fffd5['CLOSE_ROOM']&&this[_0x33fa42(0x313)]['show']({'type':_0x5d27fe['Warning'],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x252))}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x1e2)]&&this['_notificationService']['show']({'title':this[_0x33fa42(0x34c)]['t']('permission.title'),'content':this[_0x33fa42(0x34c)]['t']('permission.content'),'type':_0x33fa42(0x253),'duration':0x0}),_0xf22be4['id']===_0x4fffd5['CONFLICT']&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe[_0x33fa42(0x1ec)],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x252))+'('+_0xf22be4[_0x33fa42(0x2b3)]+')'}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x20e)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe[_0x33fa42(0x426)],'content':this['_localeService']['t'](_0xf22be4[_0x33fa42(0x2b3)]||'')}),_0xf22be4['id']===_0x4fffd5['SOCKET_FAILED_RETRY']&&this['_messageService']['show']({'type':_0x5d27fe[_0x33fa42(0x426)],'content':this[_0x33fa42(0x34c)]['t'](_0x33fa42(0x372))}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x2a7)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe[_0x33fa42(0x1ec)],'content':this['_localeService']['t'](_0x33fa42(0x232))}),_0xf22be4['id']===_0x4fffd5[_0x33fa42(0x2cd)]&&this[_0x33fa42(0x313)][_0x33fa42(0x40b)]({'type':_0x5d27fe['Error'],'content':this['_localeService']['t'](_0x33fa42(0x2aa))});}));}};_e=cn([F(0x0,_0x912558),F(0x1,_0x47e6d9),F(0x2,_0x5a79e2(_0x1cc67e)),F(0x3,_0x116021),F(0x4,_0x259113),F(0x5,_0x5a79e2(_0x358b52))],_e);var _n=Object[_0x1bab67(0x32a)],ln=(_0x587c60,_0x469b60,_0x3fc423,_0x4f7681)=>{const _0x40493e=_0x1bab67;for(var _0x196a82=_0x4f7681>0x1?void 0x0:_0x4f7681?_n(_0x469b60,_0x3fc423):_0x469b60,_0x5dcd92=_0x587c60[_0x40493e(0x30a)]-0x1,_0x40b55f;_0x5dcd92>=0x0;_0x5dcd92--)(_0x40b55f=_0x587c60[_0x5dcd92])&&(_0x196a82=_0x40b55f(_0x196a82)||_0x196a82);return _0x196a82;},ne=(_0x58aad6,_0x54dcac)=>(_0x3ba565,_0x530bec)=>_0x54dcac(_0x3ba565,_0x530bec,_0x58aad6);let le=class extends _0x570ab2{constructor(_0x5e732d,_0x4d5605,_0x4720b5,_0x12abd3){const _0x29af06=_0x1bab67;super(),_(this,_0x29af06(0x3e2)),(this[_0x29af06(0x428)]=_0x5e732d,this[_0x29af06(0x2f7)]=_0x4d5605,this[_0x29af06(0x2b2)]=_0x4720b5,this[_0x29af06(0x41d)]=_0x12abd3,this['_init']());}[_0x1bab67(0x38f)](){const _0x26b2a3=_0x1bab67;this[_0x26b2a3(0x20a)](),this[_0x26b2a3(0x207)](),this['_monkeyPatchLogService'](),this[_0x26b2a3(0x209)]();}[_0x1bab67(0x209)](){const _0x2af938=_0x1bab67;this[_0x2af938(0x24d)](this[_0x2af938(0x41d)][_0x2af938(0x205)][_0x2af938(0x401)](_0x479674=>{const _0x55fa0f=_0x2af938;this[_0x55fa0f(0x3e2)]=_0x479674==null?void 0x0:_0x479674['memberID'];}));}[_0x1bab67(0x20a)](){const _0x2a6afa=_0x1bab67,_0x1e4495=_0x1cdeaa=>{const _0x2a5ad1=_0x4050;var _0x3fb0ea;this['_uploadLog'](_0x2a5ad1(0x253),_0x2a5ad1(0x2b0)+_0x1cdeaa['message']+_0x2a5ad1(0x3df)+_0x1cdeaa[_0x2a5ad1(0x1df)]+':'+_0x1cdeaa[_0x2a5ad1(0x206)]+':'+_0x1cdeaa[_0x2a5ad1(0x384)]+'\x0a'+(((_0x3fb0ea=_0x1cdeaa[_0x2a5ad1(0x253)])==null?void 0x0:_0x3fb0ea['stack'])||''));};window[_0x2a6afa(0x41e)](_0x2a6afa(0x253),_0x1e4495),this['disposeWithMe'](()=>{const _0x690d0d=_0x2a6afa;window[_0x690d0d(0x27e)](_0x690d0d(0x253),_0x1e4495);});}[_0x1bab67(0x207)](){const _0x2880fa=_0x1bab67,_0x31e0f6=_0x53d1f7=>{const _0x39c27f=_0x4050;this[_0x39c27f(0x2fc)](_0x39c27f(0x253),_0x39c27f(0x3b8)+_0x53d1f7[_0x39c27f(0x38c)]);};window[_0x2880fa(0x41e)]('unhandledrejection',_0x31e0f6),this[_0x2880fa(0x24d)](()=>{const _0x357c27=_0x2880fa;window[_0x357c27(0x27e)]('unhandledrejection',_0x31e0f6);});}[_0x1bab67(0x307)](){const _0x34d657=_0x1bab67,_0x59d517=this[_0x34d657(0x2b2)][_0x34d657(0x253)][_0x34d657(0x23a)](this[_0x34d657(0x2b2)]);this[_0x34d657(0x2b2)][_0x34d657(0x253)]=(..._0x37e2be)=>{const _0x56f6ef=_0x34d657,_0x138d5=_0x37e2be[_0x56f6ef(0x2c1)](_0x199a85=>_0x199a85 instanceof Error?_0x199a85[_0x56f6ef(0x2f2)]+'\x0a'+_0x199a85[_0x56f6ef(0x40f)]:String(_0x199a85))[_0x56f6ef(0x2ef)]('\x20');this[_0x56f6ef(0x2fc)](_0x56f6ef(0x253),_0x56f6ef(0x385)+_0x138d5),_0x59d517(..._0x37e2be);},this[_0x34d657(0x24d)](()=>{const _0xb9af66=_0x34d657;this['_logService'][_0xb9af66(0x253)]=_0x59d517;});}[_0x1bab67(0x2fc)](_0x238ada,_0x2847db){const _0x3a5176=_0x1bab67;try{const _0x34b56b={'userId':this[_0x3a5176(0x3e2)],'logLabel':_0x238ada,'content':_0x2847db};this['_httpService']['post'](_0x3a5176(0x36b),{'body':_0x34b56b})[_0x3a5176(0x383)](()=>{});}catch{}}};le=ln([ne(0x0,_0x5a79e2(_0x41a636)),ne(0x1,_0x5a79e2(_0x1fe289)),ne(0x2,_0xf1ee96),ne(0x3,_0x5a79e2(_0x5b8361))],le);const hn='collaboration-client-ui.config',_t={};var un=Object[_0x1bab67(0x32a)],dn=(_0x449281,_0x5ed2fb,_0x22bcd9,_0x6b0232)=>{const _0x196800=_0x1bab67;for(var _0x5b3c9a=_0x6b0232>0x1?void 0x0:_0x6b0232?un(_0x5ed2fb,_0x22bcd9):_0x5ed2fb,_0x1beb85=_0x449281[_0x196800(0x30a)]-0x1,_0x2b73d6;_0x1beb85>=0x0;_0x1beb85--)(_0x2b73d6=_0x449281[_0x1beb85])&&(_0x5b3c9a=_0x2b73d6(_0x5b3c9a)||_0x5b3c9a);return _0x5b3c9a;},lt=(_0x1467c1,_0x4d4ef0)=>(_0x40d358,_0x11e9f6)=>_0x4d4ef0(_0x40d358,_0x11e9f6,_0x1467c1);let he=class{constructor(_0x21f33e,_0x2b0519){const _0x2c26c6=_0x1bab67;this[_0x2c26c6(0x261)]=_0x21f33e,this[_0x2c26c6(0x21b)]=_0x2b0519;}[_0x1bab67(0x2da)](_0xe81aa3){const _0x1f67db=_0x1bab67;this[_0x1f67db(0x337)](_0xe81aa3),this[_0x1f67db(0x344)](_0xe81aa3);}[_0x1bab67(0x3ad)](_0x4ed8b9){const _0x262365=_0x1bab67,{unitID:_0x3026e0}=_0x4ed8b9,_0x533884=this[_0x262365(0x21b)][_0x262365(0x254)](_0x3026e0)['with'](_0x38083a),{redoCache:_0x5332de}=_0x533884['getUndoRedoMutationParamsCache']();if(_0x5332de[_0x262365(0x30a)]===0x0)return _0x4ed8b9;let _0x190b86=_0x3b1d01[_0x262365(0x263)](_0x4ed8b9[_0x262365(0x22f)][0x0]);for(let _0x4ac063=0x0;_0x4ac063<_0x5332de[_0x262365(0x30a)];_0x4ac063++){const _0x59a29a={'id':'doc.mutation.rich-text-editing','params':{..._0x5332de[_0x4ac063]}},_0x35bf25=this['_transformService'][_0x262365(0x2ed)](_0x190b86,_0x59a29a,!0x1);if(_0x571730(_0x35bf25))throw _0x35bf25['error'];_0x190b86=_0x35bf25[_0x262365(0x281)];}return{..._0x3b1d01['deepClone'](_0x4ed8b9),'mutations':[_0x190b86]};}[_0x1bab67(0x337)](_0x4ca3f2){const _0x2b0e95=_0x1bab67,{unitID:_0x1328a4}=_0x4ca3f2,_0x221fe0=this['_renderManagerService'][_0x2b0e95(0x254)](_0x1328a4)[_0x2b0e95(0x3cd)](_0x38083a),{undoCache:_0x33b009,redoCache:_0x2a6466}=_0x221fe0['getUndoRedoMutationParamsCache']();if(_0x33b009[_0x2b0e95(0x30a)]===0x0||_0x2a6466['length']===0x0)return;const _0x591735=[],_0xf7a6c=[];let _0x119bb6=_0x3b1d01['deepClone'](_0x4ca3f2[_0x2b0e95(0x22f)][0x0]),_0x12612b=_0x3b1d01[_0x2b0e95(0x263)](_0x4ca3f2[_0x2b0e95(0x22f)][0x0]);for(let _0x26a38d=_0x33b009[_0x2b0e95(0x30a)]-0x1;_0x26a38d>=0x0;_0x26a38d--){const _0x5bbe94={'id':_0x2b0e95(0x23f),'params':{..._0x33b009[_0x26a38d]}},_0x51d778={'id':'doc.mutation.rich-text-editing','params':{..._0x2a6466[_0x26a38d]}},_0x3e56af=this[_0x2b0e95(0x261)][_0x2b0e95(0x2ed)](_0x119bb6,_0x5bbe94,!0x1),_0x1bcea0=this['_transformService'][_0x2b0e95(0x2ed)](_0x12612b,_0x51d778,!0x1);if(_0x571730(_0x3e56af))throw _0x3e56af[_0x2b0e95(0x253)];if(_0x571730(_0x1bcea0))throw _0x1bcea0['error'];_0x591735['unshift'](_0x3e56af['m2Prime'][_0x2b0e95(0x35c)]),_0xf7a6c[_0x2b0e95(0x21a)](_0x1bcea0[_0x2b0e95(0x37a)][_0x2b0e95(0x35c)]),_0x119bb6=_0x3e56af[_0x2b0e95(0x281)],_0x12612b=_0x1bcea0[_0x2b0e95(0x281)];}_0x221fe0['setUndoRedoMutationParamsCache']({'undoCache':_0x591735,'redoCache':_0xf7a6c});}[_0x1bab67(0x344)](_0x3bed7f){const _0x20e33b=_0x1bab67,{unitID:_0x4301db}=_0x3bed7f,_0x4f8dcf=this[_0x20e33b(0x21b)][_0x20e33b(0x254)](_0x4301db)['with'](_0x38083a),_0x3bd0c4=_0x4f8dcf[_0x20e33b(0x2e6)]();if(_0x3bd0c4==null)return;const _0x3a1551=[{'id':_0x20e33b(0x23f),'params':{'unitId':_0x3bed7f[_0x20e33b(0x3bf)],'actions':null,'textRanges':[_0x3bd0c4]}}],_0x1c8e49=this[_0x20e33b(0x261)]['transformMutationsWithChangeset'](_0x3bed7f,_0x3a1551);if(!_0x29ce50(_0x1c8e49))throw _0x1c8e49[_0x20e33b(0x253)];const _0x687798=_0x1c8e49[_0x20e33b(0x37a)][0x0][_0x20e33b(0x35c)][_0x20e33b(0x29b)];Array[_0x20e33b(0x345)](_0x687798)&&_0x687798[_0x20e33b(0x30a)]&&_0x4f8dcf[_0x20e33b(0x387)](_0x687798[0x0]);}};he=dn([lt(0x0,_0x1b61b0),lt(0x1,_0x1eaf53)],he);var Sn=Object[_0x1bab67(0x32a)],mn=(_0x475c79,_0x1d8a97,_0x3ca817,_0x417591)=>{for(var _0x26df80=_0x417591>0x1?void 0x0:_0x417591?Sn(_0x1d8a97,_0x3ca817):_0x1d8a97,_0x397112=_0x475c79['length']-0x1,_0x2d3dd2;_0x397112>=0x0;_0x397112--)(_0x2d3dd2=_0x475c79[_0x397112])&&(_0x26df80=_0x2d3dd2(_0x26df80)||_0x26df80);return _0x26df80;},Le=(_0x562dc0,_0xe87811)=>(_0x6da949,_0xc80a91)=>_0xe87811(_0x6da949,_0xc80a91,_0x562dc0);let ue=class{constructor(_0x16ed82,_0x41a794,_0x303cad){const _0x3df110=_0x1bab67;this[_0x3df110(0x428)]=_0x16ed82,this[_0x3df110(0x261)]=_0x41a794,this['_docStateChangeManagerService']=_0x303cad;}[_0x1bab67(0x30e)](_0x15fe4e){const _0x151367=_0x1bab67;this[_0x151367(0x2f0)](_0x15fe4e);}[_0x1bab67(0x3ad)](_0x1d4868){const _0x4556e4=_0x1bab67,{unitID:_0x1848b2}=_0x1d4868,{collaboration:_0x408f42}=this['_docStateChangeManagerService']['getStateCache'](_0x1848b2);if(_0x408f42[_0x4556e4(0x30a)]===0x0)return _0x1d4868;let _0x54a82f=_0x3b1d01[_0x4556e4(0x263)](_0x1d4868[_0x4556e4(0x22f)][0x0]);for(let _0x3bfcd3=0x0;_0x3bfcd3<_0x408f42['length'];_0x3bfcd3++){const _0x19a2e3={'id':_0x4556e4(0x23f),'params':{'unitId':_0x408f42[_0x3bfcd3]['unitId'],..._0x408f42[_0x3bfcd3]['redoState']}},_0x33373a=this[_0x4556e4(0x261)][_0x4556e4(0x2ed)](_0x54a82f,_0x19a2e3,!0x1);if(_0x571730(_0x33373a))throw _0x33373a[_0x4556e4(0x253)];_0x54a82f=_0x33373a[_0x4556e4(0x281)];}return{..._0x3b1d01[_0x4556e4(0x263)](_0x1d4868),'mutations':[_0x54a82f]};}[_0x1bab67(0x2f0)](_0x50b34f){const _0x505d5d=_0x1bab67,{unitID:_0x286dea}=_0x50b34f,{history:_0x32e9c1,collaboration:_0x296a87}=this[_0x505d5d(0x3b5)][_0x505d5d(0x322)](_0x286dea);if(_0x32e9c1[_0x505d5d(0x30a)]===0x0&&_0x296a87['length']===0x0)return;const _0x18fd7c=[],_0x1e04e8=[];let _0x35b257=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f[_0x505d5d(0x22f)][0x0]),_0x5a3182=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f['mutations'][0x0]);for(let _0x20511a=_0x32e9c1[_0x505d5d(0x30a)]-0x1;_0x20511a>=0x0;_0x20511a--){const _0x18b3fb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x32e9c1[_0x20511a][_0x505d5d(0x2d3)],..._0x32e9c1[_0x20511a][_0x505d5d(0x272)]}},_0x75222={'id':_0x505d5d(0x23f),'params':{'unitId':_0x32e9c1[_0x20511a]['unitId'],..._0x32e9c1[_0x20511a]['redoState']}},_0x3aeffd=this['_transformService']['transformMutation'](_0x35b257,_0x18b3fb,!0x1),_0x33e2b4=this[_0x505d5d(0x261)][_0x505d5d(0x2ed)](_0x5a3182,_0x75222,!0x1);if(_0x571730(_0x3aeffd))throw _0x3aeffd[_0x505d5d(0x253)];if(_0x571730(_0x33e2b4))throw _0x33e2b4['error'];_0x18fd7c[_0x505d5d(0x21a)]({..._0x32e9c1[_0x20511a],'undoState':_0x3aeffd[_0x505d5d(0x37a)][_0x505d5d(0x35c)],'redoState':_0x33e2b4[_0x505d5d(0x37a)]['params']}),_0x35b257=_0x3aeffd[_0x505d5d(0x281)],_0x5a3182=_0x33e2b4['m1Prime'];}_0x35b257=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f['mutations'][0x0]),_0x5a3182=_0x3b1d01[_0x505d5d(0x263)](_0x50b34f[_0x505d5d(0x22f)][0x0]);for(let _0x4fc97e=_0x296a87[_0x505d5d(0x30a)]-0x1;_0x4fc97e>=0x0;_0x4fc97e--){const _0xe7561a={'id':_0x505d5d(0x23f),'params':{'unitId':_0x296a87[_0x4fc97e]['unitId'],..._0x296a87[_0x4fc97e][_0x505d5d(0x272)]}},_0x316b77={'id':_0x505d5d(0x23f),'params':{'unitId':_0x296a87[_0x4fc97e][_0x505d5d(0x2d3)],..._0x296a87[_0x4fc97e][_0x505d5d(0x42d)]}},_0x1e4a48=this[_0x505d5d(0x261)]['transformMutation'](_0x35b257,_0xe7561a,!0x1),_0x4d7a74=this[_0x505d5d(0x261)]['transformMutation'](_0x5a3182,_0x316b77,!0x1);if(_0x571730(_0x1e4a48))throw _0x1e4a48[_0x505d5d(0x253)];if(_0x571730(_0x4d7a74))throw _0x4d7a74[_0x505d5d(0x253)];_0x1e04e8[_0x505d5d(0x21a)]({..._0x296a87[_0x4fc97e],'undoState':_0x1e4a48[_0x505d5d(0x37a)][_0x505d5d(0x35c)],'redoState':_0x4d7a74[_0x505d5d(0x37a)][_0x505d5d(0x35c)]}),_0x35b257=_0x1e4a48['m1Prime'],_0x5a3182=_0x4d7a74[_0x505d5d(0x281)];}this[_0x505d5d(0x3b5)][_0x505d5d(0x22d)](_0x286dea,{'history':_0x18fd7c,'collaboration':_0x1e04e8});}};ue=mn([Le(0x0,_0x5a79e2(_0x41a636)),Le(0x1,_0x1b61b0),Le(0x2,_0x5a79e2(_0x242de7))],ue);var In=Object[_0x1bab67(0x32a)],fn=(_0x1712df,_0x3d3ddd,_0x21c2aa,_0x31834b)=>{const _0x4e0686=_0x1bab67;for(var _0x5ed9ea=_0x31834b>0x1?void 0x0:_0x31834b?In(_0x3d3ddd,_0x21c2aa):_0x3d3ddd,_0x4cd9ec=_0x1712df[_0x4e0686(0x30a)]-0x1,_0x51f53b;_0x4cd9ec>=0x0;_0x4cd9ec--)(_0x51f53b=_0x1712df[_0x4cd9ec])&&(_0x5ed9ea=_0x51f53b(_0x5ed9ea)||_0x5ed9ea);return _0x5ed9ea;},ht=(_0x280123,_0x393ac5)=>(_0x174f8a,_0x50cd2e)=>_0x393ac5(_0x174f8a,_0x50cd2e,_0x280123);let de=class{constructor(_0x39d525,_0x2b38ec){const _0x206f1b=_0x1bab67;this[_0x206f1b(0x428)]=_0x39d525,this[_0x206f1b(0x261)]=_0x2b38ec;}['transformSelections'](_0x24f68e){const _0x37f41b=_0x1bab67;var _0x36bc82;const _0x1ca88d=this['_injector'][_0x37f41b(0x1e3)](_0xd5f03f),_0x39fba8=(_0x36bc82=_0x1ca88d[_0x37f41b(0x2c8)]())!=null?_0x36bc82:[];if(_0x39fba8['length']===0x0)return;const _0x98984c=_0x24f68e['unitID'],_0x53aca3=[{'id':_0x37f41b(0x23f),'params':{'unitId':_0x98984c,'actions':null,'textRanges':_0x39fba8}}],_0x12f6d5=this[_0x37f41b(0x261)][_0x37f41b(0x1f9)](_0x24f68e,_0x53aca3);if(!_0x29ce50(_0x12f6d5))throw _0x12f6d5['error'];const _0x4f302d=_0x12f6d5['m2Prime'][0x0][_0x37f41b(0x35c)][_0x37f41b(0x29b)];Array['isArray'](_0x4f302d)&&_0x4f302d[_0x37f41b(0x30a)]&&_0x1ca88d[_0x37f41b(0x323)](_0x4f302d,{'unitId':_0x98984c,'subUnitId':_0x98984c},!0x1);}};de=fn([ht(0x0,_0x5a79e2(_0x41a636)),ht(0x1,_0x1b61b0)],de);var gn=Object[_0x1bab67(0x32a)],vn=(_0x5149b2,_0x1d6e7b,_0x2b3116,_0x85f2b7)=>{const _0x7844bd=_0x1bab67;for(var _0x50ae93=_0x85f2b7>0x1?void 0x0:_0x85f2b7?gn(_0x1d6e7b,_0x2b3116):_0x1d6e7b,_0x40da5f=_0x5149b2[_0x7844bd(0x30a)]-0x1,_0x332fcd;_0x40da5f>=0x0;_0x40da5f--)(_0x332fcd=_0x5149b2[_0x40da5f])&&(_0x50ae93=_0x332fcd(_0x50ae93)||_0x50ae93);return _0x50ae93;},U=(_0x29803f,_0x114c74)=>(_0x56576f,_0x550f74)=>_0x114c74(_0x56576f,_0x550f74,_0x29803f);let Se=class extends _0x570ab2{constructor(_0x237883,_0x5e5561,_0x59d54a,_0x57c2ee,_0x40580d,_0x433ded,_0xb45169,_0x27020e){const _0x423c91=_0x1bab67;super(),_(this,_0x423c91(0x2af),new _0x42c9f3(_0x1db3c4['NOT_COLLAB'])),(this[_0x423c91(0x3b5)]=_0x237883,this[_0x423c91(0x22e)]=_0x5e5561,this[_0x423c91(0x32c)]=_0x59d54a,this[_0x423c91(0x3d1)]=_0x57c2ee,this[_0x423c91(0x31d)]=_0x40580d,this[_0x423c91(0x424)]=_0x433ded,this[_0x423c91(0x313)]=_0xb45169,this[_0x423c91(0x34c)]=_0x27020e,this['_initEntityListener']());}['_initEntityListener'](){const _0xc5d3a6=_0x1bab67;this[_0xc5d3a6(0x24d)](this[_0xc5d3a6(0x22e)]['entityInit$'][_0xc5d3a6(0x401)](_0xa501e3=>{const _0x5779b0=_0xc5d3a6,_0x495f0d=this[_0x5779b0(0x3b5)][_0x5779b0(0x2ec)][_0x5779b0(0x401)](_0x600483=>{const _0x5f1906=_0x5779b0;if(_0x600483==null)return;const {unitId:_0x29d715,redoState:_0x4cfb57,commandId:_0x3e0bc4}=_0x600483;if(_0x29d715!==_0xa501e3[_0x5f1906(0x3bf)])return;const _0x1ad292={'id':_0x3e0bc4,'type':_0x5d535e['MUTATION'],'params':{'unitId':_0x29d715,'actions':_0x4cfb57[_0x5f1906(0x336)],'textRanges':null}};_0xa501e3[_0x5f1906(0x36a)](_0x1ad292);});if(_0xa501e3['disposeWithMe'](_0x495f0d),_0xa501e3 instanceof _0x1d8428){const _0x41be48={'onTransformIME':_0x11b248=>this['_docTransformIMECacheService']['transformIMECache'](_0x11b248),'onTransformState':_0x445f08=>this[_0x5779b0(0x3d1)][_0x5779b0(0x30e)](_0x445f08),'onTransformSelections':_0x6880eb=>this[_0x5779b0(0x31d)]['transformSelections'](_0x6880eb),'onSyncEditingCollabCursor':_0x316a39=>this[_0x5779b0(0x424)]['syncEditingCollabCursor'](_0x316a39),'onTransformRemoteChangesetByIMECache':_0x459a97=>this[_0x5779b0(0x32c)][_0x5779b0(0x3ad)](_0x459a97),'onTransformRemoteChangesetByStateCache':_0x5b13ea=>this[_0x5779b0(0x3d1)][_0x5779b0(0x3ad)](_0x5b13ea)};_0xa501e3['addHandlerCallback'](_0x41be48);}}));}};Se=vn([U(0x0,_0x5a79e2(_0x242de7)),U(0x1,_0x5a79e2(_0x519a49)),U(0x2,_0x5a79e2(he)),U(0x3,_0x5a79e2(ue)),U(0x4,_0x5a79e2(de)),U(0x5,_0x5a79e2(ze)),U(0x6,_0x116021),U(0x7,_0x5a79e2(_0x358b52))],Se);var Z=(_0xcea129=>(_0xcea129[_0xcea129['UNDEFINED']=0x0]=_0x1bab67(0x30d),_0xcea129[_0xcea129['OK']=0x1]='OK',_0xcea129[_0xcea129[_0x1bab67(0x2d2)]=0x2]='INTERNAL_ERROR',_0xcea129[_0xcea129[_0x1bab67(0x1e2)]=0x3]='PERMISSION_DENIED',_0xcea129[_0xcea129[_0x1bab67(0x249)]=0x4]='NOT_FOUND',_0xcea129[_0xcea129['UNAUTHENTICATED']=0x5]=_0x1bab67(0x3e5),_0xcea129[_0xcea129['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0xcea129[_0xcea129[_0x1bab67(0x3d9)]=0x7]=_0x1bab67(0x3d9),_0xcea129[_0xcea129['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0xcea129[_0xcea129[_0x1bab67(0x306)]=0x9]=_0x1bab67(0x306),_0xcea129[_0xcea129[_0x1bab67(0x25d)]=0xa]=_0x1bab67(0x25d),_0xcea129[_0xcea129[_0x1bab67(0x3db)]=0xb]=_0x1bab67(0x3db),_0xcea129[_0xcea129['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x1bab67(0x408),_0xcea129[_0xcea129[_0x1bab67(0x2bd)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0xcea129[_0xcea129[_0x1bab67(0x2cb)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0xcea129[_0xcea129[_0x1bab67(0x3f7)]=0xf]=_0x1bab67(0x3f7),_0xcea129[_0xcea129[_0x1bab67(0x203)]=0x10]=_0x1bab67(0x203),_0xcea129[_0xcea129[_0x1bab67(0x287)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0xcea129[_0xcea129[_0x1bab67(0x406)]=0x65]=_0x1bab67(0x406),_0xcea129[_0xcea129[_0x1bab67(0x24b)]=0xc9]=_0x1bab67(0x24b),_0xcea129[_0xcea129[_0x1bab67(0x3e4)]=0xca]=_0x1bab67(0x3e4),_0xcea129[_0xcea129['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x1bab67(0x2ba),_0xcea129[_0xcea129['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x1bab67(0x318),_0xcea129[_0xcea129[_0x1bab67(0x266)]=0x1772]=_0x1bab67(0x266),_0xcea129[_0xcea129[_0x1bab67(0x241)]=0x1773]=_0x1bab67(0x241),_0xcea129[_0xcea129['APPLY_REJECT']=0x1b59]=_0x1bab67(0x340),_0xcea129[_0xcea129[_0x1bab67(0x315)]=0x1b5a]=_0x1bab67(0x315),_0xcea129[_0xcea129['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x1bab67(0x429),_0xcea129[_0xcea129[_0x1bab67(0x2b1)]=0x1b5c]=_0x1bab67(0x2b1),_0xcea129[_0xcea129['APPLY_DUPLICATED']=0x1b5d]=_0x1bab67(0x299),_0xcea129[_0xcea129['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xcea129[_0xcea129[_0x1bab67(0x2dc)]=0x2329]=_0x1bab67(0x2dc),_0xcea129[_0xcea129[_0x1bab67(0x21f)]=0x232a]=_0x1bab67(0x21f),_0xcea129[_0xcea129[_0x1bab67(0x2c5)]=0x232b]=_0x1bab67(0x2c5),_0xcea129[_0xcea129[_0x1bab67(0x35b)]=0x232c]=_0x1bab67(0x35b),_0xcea129[_0xcea129[_0x1bab67(0x407)]=0x232d]=_0x1bab67(0x407),_0xcea129[_0xcea129[_0x1bab67(0x3c1)]=0x2711]=_0x1bab67(0x3c1),_0xcea129[_0xcea129[_0x1bab67(0x3c2)]=0x2712]=_0x1bab67(0x3c2),_0xcea129[_0xcea129[_0x1bab67(0x1eb)]=0x2713]=_0x1bab67(0x1eb),_0xcea129[_0xcea129['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xcea129[_0xcea129['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xcea129[_0xcea129[_0x1bab67(0x42f)]=0x271b]=_0x1bab67(0x42f),_0xcea129[_0xcea129[_0x1bab67(0x3da)]=0x271c]=_0x1bab67(0x3da),_0xcea129[_0xcea129[_0x1bab67(0x32b)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0xcea129[_0xcea129[_0x1bab67(0x3a7)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0xcea129[_0xcea129['YUUMI_AI_RUN_FAILED']=0x271f]=_0x1bab67(0x3c3),_0xcea129[_0xcea129[_0x1bab67(0x2c6)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0xcea129[_0xcea129['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xcea129[_0xcea129[_0x1bab67(0x30c)]=0x2ee1]=_0x1bab67(0x30c),_0xcea129[_0xcea129[_0x1bab67(0x304)]=0x2ee2]=_0x1bab67(0x304),_0xcea129[_0xcea129[_0x1bab67(0x404)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xcea129[_0xcea129[_0x1bab67(0x2f8)]=0x2ee4]=_0x1bab67(0x2f8),_0xcea129[_0xcea129[_0x1bab67(0x2e1)]=0x2ee5]=_0x1bab67(0x2e1),_0xcea129[_0xcea129[_0x1bab67(0x2cc)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xcea129[_0xcea129['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x1bab67(0x42c),_0xcea129[_0xcea129['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x1bab67(0x1ee),_0xcea129[_0xcea129[_0x1bab67(0x3f3)]=0x36b1]=_0x1bab67(0x3f3),_0xcea129[_0xcea129[_0x1bab67(0x3c6)]=0x36b2]=_0x1bab67(0x3c6),_0xcea129[_0xcea129[_0x1bab67(0x3c4)]=0x36b3]=_0x1bab67(0x3c4),_0xcea129[_0xcea129[_0x1bab67(0x3c9)]=0x36b4]=_0x1bab67(0x3c9),_0xcea129[_0xcea129['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x1bab67(0x3d5),_0xcea129[_0xcea129[_0x1bab67(0x319)]=0x3716]=_0x1bab67(0x319),_0xcea129[_0xcea129[_0x1bab67(0x330)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0xcea129[_0xcea129[_0x1bab67(0x24f)]=0x37dd]=_0x1bab67(0x24f),_0xcea129[_0xcea129['REDEMPTION_INVALID_CODE']=0x3a99]=_0x1bab67(0x2d9),_0xcea129[_0xcea129[_0x1bab67(0x228)]=0x3a9a]=_0x1bab67(0x228),_0xcea129[_0xcea129[_0x1bab67(0x26d)]=0x3a9b]=_0x1bab67(0x26d),_0xcea129[_0xcea129['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x1bab67(0x416),_0xcea129[_0xcea129[_0x1bab67(0x34e)]=0x3a9d]=_0x1bab67(0x34e),_0xcea129[_0xcea129['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x1bab67(0x216),_0xcea129[_0xcea129['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x1bab67(0x219),_0xcea129[_0xcea129[_0x1bab67(0x276)]=0x3e81]=_0x1bab67(0x276),_0xcea129[_0xcea129[_0x1bab67(0x2b8)]=-0x1]='UNRECOGNIZED',_0xcea129))(Z||{});function En(_0xd2d6a3){const _0x33e377=_0x1bab67;var _0x1fd039,_0x2043e7;const _0x735954=(_0x1fd039=_0xd2d6a3['stageInfo'])==null?void 0x0:_0x1fd039[_0x33e377(0x2e3)],_0x39d30e=((_0x2043e7=_0xd2d6a3[_0x33e377(0x36d)])==null?void 0x0:_0x2043e7['totalFormulasToCalculate'])||0x0;return _0x735954===_0x1a0570[_0x33e377(0x3c5)]&&_0x39d30e>0x0;}function pn(_0x185905){const _0x458d8b=_0x1bab67;return _0x185905[_0x458d8b(0x214)]===_0x16d1f3['SUCCESS'];}var On=Object[_0x1bab67(0x32a)],Tn=(_0x50557e,_0x3c72df,_0x4cbeb7,_0x2c3357)=>{const _0x281125=_0x1bab67;for(var _0xfed756=_0x2c3357>0x1?void 0x0:_0x2c3357?On(_0x3c72df,_0x4cbeb7):_0x3c72df,_0x5dcf20=_0x50557e[_0x281125(0x30a)]-0x1,_0x17e89d;_0x5dcf20>=0x0;_0x5dcf20--)(_0x17e89d=_0x50557e[_0x5dcf20])&&(_0xfed756=_0x17e89d(_0xfed756)||_0xfed756);return _0xfed756;},P=(_0x201b27,_0x50dd81)=>(_0x5f4358,_0x152c3a)=>_0x50dd81(_0x5f4358,_0x152c3a,_0x201b27);const Cn=_0x1bab67(0x3bc),Rn=_0x1bab67(0x240),Dn=_0x1bab67(0x23e);let me=class extends _0x570ab2{constructor(_0x5eb79b,_0x523b7b,_0x4b97e3,_0x37e275,_0x42bfbb,_0x47d393,_0x274f5a){const _0x2a5134=_0x1bab67;super(),_(this,_0x2a5134(0x349),null),_(this,_0x2a5134(0x273),0x0),_(this,_0x2a5134(0x256),0x0),_(this,_0x2a5134(0x238),[]),_(this,_0x2a5134(0x269),0x0),(this[_0x2a5134(0x313)]=_0x5eb79b,this[_0x2a5134(0x22c)]=_0x523b7b,this[_0x2a5134(0x28a)]=_0x4b97e3,this[_0x2a5134(0x2f7)]=_0x37e275,this[_0x2a5134(0x3aa)]=_0x42bfbb,this[_0x2a5134(0x2b2)]=_0x47d393,this[_0x2a5134(0x34c)]=_0x274f5a,this[_0x2a5134(0x257)]());}[_0x1bab67(0x257)](){const _0x7db0dd=_0x1bab67;this[_0x7db0dd(0x24d)](this[_0x7db0dd(0x22c)]['beforeCommandExecuted']((_0x3df36e,_0x3abe07)=>{const _0x15bdca=_0x7db0dd;var _0x328ac8;if(_0x3df36e['id']!==_0x3a24d4['id'])return;const _0xfc4eb=_0x3df36e['params'];if(!this[_0x15bdca(0x333)]((_0x328ac8=_0xfc4eb[_0x15bdca(0x3b6)])!=null?_0x328ac8:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x15bdca(0x298)](_0x3df36e,_0x3abe07),this[_0x15bdca(0x3dd)](),new _0x419811();})),this['disposeWithMe'](this['_commandService'][_0x7db0dd(0x358)]((_0xed3937,_0x661733)=>{const _0x20a785=_0x7db0dd;if(_0xed3937['id']!==_0x3d0d88['id'])return;const _0x15da0e=_0xed3937['params'];if(En(_0x15da0e)){const _0x18ef86=_0x2679ea();this[_0x20a785(0x238)][_0x20a785(0x403)](_0x18ef86),this[_0x20a785(0x375)](_0x18ef86);}else{if(pn(_0x15da0e)&&this[_0x20a785(0x238)]['length']>0x0){const _0x52a0dd=this[_0x20a785(0x238)][_0x20a785(0x2ac)]();this[_0x20a785(0x3bb)](_0x52a0dd);}}}));}[_0x1bab67(0x3d8)](){const _0x3a1715=_0x1bab67;super[_0x3a1715(0x3d8)](),this[_0x3a1715(0x3a8)](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x3a1715(0x273)]=0x0,this[_0x3a1715(0x269)]=0x0;}async[_0x1bab67(0x298)](_0xeb36a2,_0x51314a){const _0x144e70=_0x1bab67;for(let _0x241dbf=0x0;_0x241dbf<0x1e;_0x241dbf++)try{if(await this[_0x144e70(0x28c)](),this['_checkCalculationAvailable']()){this[_0x144e70(0x301)](_0xeb36a2,_0x51314a),this['_messageService'][_0x144e70(0x40b)]({'content':this['_localeService']['t'](_0x144e70(0x3a9)),'type':_0x5d27fe[_0x144e70(0x259)]});return;}await new Promise(_0x13d3f2=>{const _0x2ccfcf=_0x144e70;this[_0x2ccfcf(0x349)]=window[_0x2ccfcf(0x3ec)](_0x13d3f2,0x3e8);});}catch(_0x22ba7b){this[_0x144e70(0x2b2)][_0x144e70(0x253)](_0x22ba7b);}this['_messageService']['show']({'content':this[_0x144e70(0x34c)]['t'](_0x144e70(0x405)),'type':_0x5d27fe['Error']});}[_0x1bab67(0x301)](_0x3e94fe,_0x1d1d7b){const _0x22d9ef=_0x1bab67;try{this[_0x22d9ef(0x22c)][_0x22d9ef(0x271)](_0x3e94fe['id'],_0x3e94fe[_0x22d9ef(0x35c)],_0x1d1d7b);}catch(_0x233f7c){this['_logService'][_0x22d9ef(0x253)](_0x233f7c);}}[_0x1bab67(0x2cf)](_0x482c7f,_0x452890){const _0x74f5f1=_0x1bab67;_0x452890<this[_0x74f5f1(0x269)]||(this['_lastResponseTimestamp']=_0x452890,this[_0x74f5f1(0x273)]=Number[_0x74f5f1(0x2a3)](_0x482c7f[_0x74f5f1(0x2f5)]),this[_0x74f5f1(0x256)]=Number[_0x74f5f1(0x2a3)](_0x482c7f[_0x74f5f1(0x268)]));}async['_startCalculationLimit'](_0x56fea8){const _0x2d3efd=_0x1bab67;var _0xb6dfad,_0x4c3107;const _0x5a210d=Date[_0x2d3efd(0x396)]();try{const _0x5e30b8=((_0xb6dfad=this[_0x2d3efd(0x28a)][_0x2d3efd(0x2d1)](_0x4f0d33))==null?void 0x0:_0xb6dfad[_0x2d3efd(0x233)])||Rn,_0x423d7b=(await this[_0x2d3efd(0x2f7)]['post'](_0x5e30b8,{'body':JSON[_0x2d3efd(0x2e2)]({'taskId':_0x56fea8})}))['body'];if(((_0x4c3107=_0x423d7b['error'])==null?void 0x0:_0x4c3107['code'])!==Z['OK'])return;this[_0x2d3efd(0x2cf)](_0x423d7b['limitInfo'],_0x5a210d);}catch(_0x4746c9){this[_0x2d3efd(0x2b2)][_0x2d3efd(0x253)](_0x4746c9);}}async[_0x1bab67(0x28c)](_0x5abeec){const _0x10666e=_0x1bab67;var _0x16e5cc,_0xf259e7;const _0xff73b1=Date['now']();try{const _0x1d1d32=((_0x16e5cc=this['_configService'][_0x10666e(0x2d1)](_0x4f0d33))==null?void 0x0:_0x16e5cc[_0x10666e(0x3f1)])||Cn,_0x177a49=_0x5abeec?_0x1d1d32+'?taskId='+encodeURIComponent(_0x5abeec):_0x1d1d32,_0x311917=(await this['_httpService'][_0x10666e(0x1e3)](_0x177a49))['body'];if(((_0xf259e7=_0x311917[_0x10666e(0x253)])==null?void 0x0:_0xf259e7[_0x10666e(0x33c)])!==Z['OK'])return;this[_0x10666e(0x2cf)](_0x311917[_0x10666e(0x296)],_0xff73b1);}catch(_0x4e1067){this[_0x10666e(0x2b2)]['error'](_0x4e1067);}}async['_releaseCalculationLimit'](_0x243122){const _0x530cfc=_0x1bab67;var _0x2af619,_0x36f190;const _0x2daa80=Date[_0x530cfc(0x396)]();try{const _0x326d85=((_0x2af619=this[_0x530cfc(0x28a)]['getConfig'](_0x4f0d33))==null?void 0x0:_0x2af619[_0x530cfc(0x213)])||Dn,_0x18a485=(await this[_0x530cfc(0x2f7)][_0x530cfc(0x1f5)](_0x326d85,{'body':JSON[_0x530cfc(0x2e2)]({'taskId':_0x243122})}))[_0x530cfc(0x26c)];if(((_0x36f190=_0x18a485[_0x530cfc(0x253)])==null?void 0x0:_0x36f190[_0x530cfc(0x33c)])!==Z['OK'])return;this[_0x530cfc(0x2cf)](_0x18a485[_0x530cfc(0x296)],_0x2daa80);}catch(_0x28d8e3){this[_0x530cfc(0x2b2)][_0x530cfc(0x253)](_0x28d8e3);}}[_0x1bab67(0x3ca)](){const _0x2766fa=_0x1bab67;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x2766fa(0x273)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x54a23f=_0x1bab67;this[_0x54a23f(0x349)]&&(clearTimeout(this[_0x54a23f(0x349)]),this[_0x54a23f(0x349)]=null);}[_0x1bab67(0x3dd)](){const _0x22673c=_0x1bab67;this[_0x22673c(0x313)][_0x22673c(0x40b)]({'content':this[_0x22673c(0x34c)]['t'](_0x22673c(0x1ed)),'type':_0x5d27fe[_0x22673c(0x2e7)]});}[_0x1bab67(0x333)](_0x52cfc7){const _0x55ac19=_0x1bab67;for(const _0xd0616c of _0x52cfc7){const {unitId:_0x325c2f,sheetId:_0x7e3f22,range:_0xd5bae3}=_0xd0616c,_0x2d0433=this[_0x55ac19(0x3aa)][_0x55ac19(0x27a)](_0x325c2f);if(!_0x2d0433)continue;const _0x3d282b=_0x2d0433[_0x55ac19(0x26b)](_0x7e3f22);if(!_0x3d282b)continue;const _0x532673=_0x3d282b['getCellMatrix']();for(let _0x58ad56=_0xd5bae3['startRow'];_0x58ad56<=_0xd5bae3[_0x55ac19(0x2e0)];_0x58ad56++)for(let _0x47f615=_0xd5bae3[_0x55ac19(0x3a0)];_0x47f615<=_0xd5bae3[_0x55ac19(0x35a)];_0x47f615++){const _0x4623ec=_0x532673['getValue'](_0x58ad56,_0x47f615);if(_0x4623ec&&(_0x9c35a0(_0x4623ec['f'])||_0x28c56f(_0x4623ec['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x5a79e2(_0x116021)),P(0x1,_0x34fc9a),P(0x2,_0x52bdc7),P(0x3,_0x5a79e2(_0x1fe289)),P(0x4,_0x3b2157),P(0x5,_0xf1ee96),P(0x6,_0x5a79e2(_0x358b52))],me);var bn=Object['getOwnPropertyDescriptor'],Nn=(_0x4e5161,_0x3eed0f,_0x47f487,_0x247012)=>{const _0xc59411=_0x1bab67;for(var _0x802283=_0x247012>0x1?void 0x0:_0x247012?bn(_0x3eed0f,_0x47f487):_0x3eed0f,_0xd08554=_0x4e5161[_0xc59411(0x30a)]-0x1,_0x1f32c8;_0xd08554>=0x0;_0xd08554--)(_0x1f32c8=_0x4e5161[_0xd08554])&&(_0x802283=_0x1f32c8(_0x802283)||_0x802283);return _0x802283;},Ue=(_0x27b5db,_0x228ee8)=>(_0x100801,_0x4e3d9a)=>_0x228ee8(_0x100801,_0x4e3d9a,_0x27b5db);let He=class extends _0x570ab2{constructor(_0x22ca60,_0x4f645e,_0x4457e7){const _0x295577=_0x1bab67;super(),_(this,_0x295577(0x24c),new Map()),_(this,_0x295577(0x3e8),new Map()),_(this,_0x295577(0x37c),!0x1),(this[_0x295577(0x28a)]=_0x22ca60,this[_0x295577(0x2bf)]=_0x4f645e,this[_0x295577(0x33a)]=_0x4457e7);}[_0x1bab67(0x3c0)](){const _0x103abf=_0x1bab67;this[_0x103abf(0x37c)]=!0x0;}[_0x1bab67(0x412)](){const _0x44c9ad=_0x1bab67;this[_0x44c9ad(0x37c)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x1bab67(0x3d8)](){const _0x295e8e=_0x1bab67;this[_0x295e8e(0x39a)]()[_0x295e8e(0x1f3)](()=>super[_0x295e8e(0x3d8)]());}async[_0x1bab67(0x2fb)](_0x395bfa){const _0xde58a4=_0x1bab67;return this[_0xde58a4(0x37c)]?null:this[_0xde58a4(0x2bf)][_0xde58a4(0x258)](_0x35f275(_0x395bfa));}async['saveOfflineData'](_0x439c51,_0x5ae5ea){const _0x3d69dc=_0x1bab67;return!!this[_0x3d69dc(0x2bf)]['setItem'](_0x439c51,_0x5ae5ea);}[_0x1bab67(0x21e)](_0x111f29,_0x46792c,_0x174c4d,_0x52e134){const _0x2c35a7=_0x1bab67,_0x59a5a1=this['_revisionService'][_0x2c35a7(0x23d)](_0x111f29);this[_0x2c35a7(0x24c)][_0x2c35a7(0x25f)](_0x111f29,{'unitID':_0x111f29,'type':_0x46792c,'awaitingChangeset':_0x174c4d,'mutations':_0x52e134,'rev':_0x59a5a1}),this['_saveTaskMap']['has'](_0x111f29)||this[_0x2c35a7(0x20b)](_0x111f29);}[_0x1bab67(0x20b)](_0x3cd427){const _0x1a1477=_0x1bab67,_0x4aee2b=this[_0x1a1477(0x2df)]();_0x4aee2b===0x0?this[_0x1a1477(0x2d0)](_0x3cd427):this[_0x1a1477(0x3e8)]['set'](_0x3cd427,setTimeout(()=>this['_saveCache'](_0x3cd427),_0x4aee2b));}['_getSaveTimeout'](){var _0xad11c5;return(_0xad11c5=this['_configService']['getConfig'](_0x295962))!=null?_0xad11c5:_0x389196;}[_0x1bab67(0x2d0)](_0x47085a){const _0x35b8f5=_0x1bab67,_0x3fbe48=this[_0x35b8f5(0x3e8)][_0x35b8f5(0x1e3)](_0x47085a);return _0x3fbe48!==void 0x0&&window[_0x35b8f5(0x350)](_0x3fbe48),this[_0x35b8f5(0x2bf)][_0x35b8f5(0x377)](_0x35f275(_0x47085a),this['_cachedData'][_0x35b8f5(0x1e3)](_0x47085a))['then'](()=>this[_0x35b8f5(0x3e8)][_0x35b8f5(0x3ae)](_0x47085a));}async[_0x1bab67(0x39a)](){const _0x925981=_0x1bab67,_0x47de7f=[];this[_0x925981(0x3e8)][_0x925981(0x36c)]((_0x50ea1c,_0x2652ac)=>{const _0x5a85df=_0x925981;window['clearTimeout'](_0x50ea1c),_0x47de7f[_0x5a85df(0x403)](this['_saveCache'](_0x2652ac)['then'](()=>{const _0x5df51b=_0x5a85df;this['_saveTaskMap'][_0x5df51b(0x3ae)](_0x2652ac);}));}),await Promise[_0x925981(0x334)](_0x47de7f);}};He=Nn([Ue(0x0,_0x52bdc7),Ue(0x1,_0x5852d4),Ue(0x2,_0x5a79e2(_0x10ef4a))],He);class Ln extends _0xb8eb03{constructor(){const _0x66c0e1=_0x1bab67;super(),_(this,_0x66c0e1(0x204)),this['urlChange$']=_0x5af89f(window,_0x66c0e1(0x27c))['pipe'](_0x4cbc42(this[_0x66c0e1(0x297)]),_0x3b24b5(0x1),_0x50b777(void 0x0));}[_0x1bab67(0x326)](_0x3cd443,_0x275a8e,_0x40451d=!0x1){const _0x419f64=_0x1bab67,_0x39b0e7=new URL(window['location']['href']);_0x39b0e7[_0x419f64(0x2f4)][_0x419f64(0x25f)](_0x3cd443,_0x275a8e),_0x40451d?window[_0x419f64(0x248)][_0x419f64(0x3f9)]('','',_0x39b0e7['toString']()):window[_0x419f64(0x248)][_0x419f64(0x35f)]('','',_0x39b0e7[_0x419f64(0x1dd)]());}[_0x1bab67(0x39c)](_0x5603c7,_0x351953=!0x1){const _0x12b9cf=_0x1bab67,_0x1cc1be=new URL(window[_0x12b9cf(0x37d)]['href']);_0x1cc1be['searchParams'][_0x12b9cf(0x3ae)](_0x5603c7),_0x351953?window[_0x12b9cf(0x248)][_0x12b9cf(0x3f9)]('','',_0x1cc1be[_0x12b9cf(0x1dd)]()):window['history'][_0x12b9cf(0x35f)]('','',_0x1cc1be[_0x12b9cf(0x1dd)]());}['getParam'](_0x2eeb49){const _0x411ad8=_0x1bab67;var _0x1aacf4;return(_0x1aacf4=new URL(window[_0x411ad8(0x37d)][_0x411ad8(0x380)])[_0x411ad8(0x2f4)][_0x411ad8(0x1e3)](_0x2eeb49))!=null?_0x1aacf4:void 0x0;}}var Un=Object['defineProperty'],Mn=Object[_0x1bab67(0x32a)],An=(_0x541a78,_0x3a5997,_0x16973b)=>_0x3a5997 in _0x541a78?Un(_0x541a78,_0x3a5997,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16973b}):_0x541a78[_0x3a5997]=_0x16973b,Pn=(_0x5cdc82,_0x3dbb8c,_0x28a760,_0x241a83)=>{const _0x402c74=_0x1bab67;for(var _0x25ef7b=_0x241a83>0x1?void 0x0:_0x241a83?Mn(_0x3dbb8c,_0x28a760):_0x3dbb8c,_0x290f4c=_0x5cdc82[_0x402c74(0x30a)]-0x1,_0x162106;_0x290f4c>=0x0;_0x290f4c--)(_0x162106=_0x5cdc82[_0x290f4c])&&(_0x25ef7b=_0x162106(_0x25ef7b)||_0x25ef7b);return _0x25ef7b;},Me=(_0x518f37,_0x368680)=>(_0x26db83,_0x35e957)=>_0x368680(_0x26db83,_0x35e957,_0x518f37),wn=(_0x3dde04,_0x5ba1be,_0x5a95c5)=>An(_0x3dde04,_0x5ba1be+'',_0x5a95c5);const yn=_0x1bab67(0x394);let Ye=class extends _0x26861e{constructor(_0x294979=_t,_0x491ea2,_0xd321fd,_0x413208){const _0x170122=_0x1bab67;super(),this[_0x170122(0x292)]=_0x294979,this[_0x170122(0x21b)]=_0x491ea2,this[_0x170122(0x428)]=_0xd321fd,this[_0x170122(0x28a)]=_0x413208;const {..._0x329984}=_0x2b8749({},_t,this[_0x170122(0x292)]);this[_0x170122(0x28a)][_0x170122(0x23c)](hn,_0x329984);}[_0x1bab67(0x2e9)](){const _0x1688af=_0x1bab67;this[_0x1688af(0x314)](),this[_0x1688af(0x418)]();}[_0x1bab67(0x211)](){const _0x39638c=_0x1bab67;this[_0x39638c(0x1e1)]();}[_0x1bab67(0x314)](){const _0x2dc4d0=_0x1bab67;var _0x22b2e6;const _0xe7b362=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0xc715c1,{'useClass':_0x1b48bb}],[_0x47e6d9,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x2dc4d0(0x292)][_0x2dc4d0(0x283)]&&_0xe7b362[_0x2dc4d0(0x403)]([le]),_0x28fdc0(this[_0x2dc4d0(0x428)],_0x7f7db3(_0xe7b362,(_0x22b2e6=this['_config'])==null?void 0x0:_0x22b2e6['override']));}[_0x1bab67(0x1e1)](){const _0x3a2776=_0x1bab67;this[_0x3a2776(0x24d)](this[_0x3a2776(0x21b)][_0x3a2776(0x2c4)](_0x547011[_0x3a2776(0x265)],[Fe])),this[_0x3a2776(0x24d)](this['_renderManagerService']['registerRenderModule'](_0x547011[_0x3a2776(0x39b)],[ke]));}[_0x1bab67(0x418)](){const _0x15d570=_0x1bab67;_0x4c947a(this[_0x15d570(0x428)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x15d570(0x292)][_0x15d570(0x283)]&&_0x4c947a(this[_0x15d570(0x428)],[[le]]);}};wn(Ye,_0x1bab67(0x3a2),yn),Ye=Pn([_0x32854b(_0x306f7d),Me(0x1,_0x1eaf53),Me(0x2,_0x5a79e2(_0x41a636)),Me(0x3,_0x52bdc7)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x4299c9,_0x1a1e5f,_0xd2c2eb,_0xe755f2)=>{const _0x3b9a43=_0x1bab67;for(var _0x42afda=_0xe755f2>0x1?void 0x0:_0xe755f2?$n(_0x1a1e5f,_0xd2c2eb):_0x1a1e5f,_0x162506=_0x4299c9[_0x3b9a43(0x30a)]-0x1,_0x388fca;_0x162506>=0x0;_0x162506--)(_0x388fca=_0x4299c9[_0x162506])&&(_0x42afda=_0x388fca(_0x42afda)||_0x42afda);return _0x42afda;},J=(_0x2f816a,_0x2a0e6f)=>(_0x26c6f4,_0x5edc9b)=>_0x2a0e6f(_0x26c6f4,_0x5edc9b,_0x2f816a);let ut=class extends _0x5160fc{constructor(_0x3fc811,_0xe2461c,_0x439fc9,_0x4c9bf9,_0x5966b6){super(_0x3fc811,_0xe2461c,_0x439fc9,_0x4c9bf9,_0x5966b6);}async[_0x1bab67(0x2d6)](_0xb9cf7c){const _0x456625=_0x1bab67,_0x26e8d2=await this[_0x456625(0x397)](),_0x37e9c2=this['_createSocketURL'](_0xb9cf7c,_0x26e8d2);return this[_0x456625(0x230)](_0x37e9c2);}[_0x1bab67(0x2a0)](_0xe07cd9,_0x2f05f6){const _0x431bc7=_0x1bab67,_0x4672a8=typeof window>'u'?new URL(_0xe07cd9):new URL(_0xe07cd9,window[_0x431bc7(0x37d)][_0x431bc7(0x357)]);_0x4672a8[_0x431bc7(0x2f4)][_0x431bc7(0x25f)]('sessionTicket',_0x2f05f6);const _0xa03114=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0xa03114[_0x431bc7(0x1e3)](_0x431bc7(0x3a1))&&_0x4672a8['searchParams']['set'](_0x431bc7(0x3a1),_0xa03114[_0x431bc7(0x1e3)](_0x431bc7(0x3a1))),_0x4672a8[_0x431bc7(0x1dd)]();}async[_0x1bab67(0x397)](){const _0x49be66=_0x1bab67;var _0x4745cd,_0x21c98f,_0x58b638;const _0x45a2a5=this['_configService'][_0x49be66(0x2d1)](_0x4f0d33),_0x2fcc0f=(_0x4745cd=_0x45a2a5==null?void 0x0:_0x45a2a5[_0x49be66(0x3a4)])!=null?_0x4745cd:_0x38397b;return(_0x58b638=(_0x21c98f=(await this[_0x49be66(0x2f7)]['get'](_0x2fcc0f,{'headers':{'Content-Type':_0x49be66(0x223)}}))[_0x49be66(0x26c)])==null?void 0x0:_0x21c98f[_0x49be66(0x260)])!=null?_0x58b638:'';}};ut=xn([J(0x0,_0x5a79e2(_0x41a636)),J(0x1,_0x5a79e2(_0x1fe289)),J(0x2,_0x52bdc7),J(0x3,_0xf1ee96),J(0x4,_0x24fc69)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x42bf5a,_0x577365,_0x24ccc5,_0x47968e)=>{for(var _0x4d7045=_0x47968e>0x1?void 0x0:_0x47968e?Bn(_0x577365,_0x24ccc5):_0x577365,_0x2f532e=_0x42bf5a['length']-0x1,_0x10d435;_0x2f532e>=0x0;_0x2f532e--)(_0x10d435=_0x42bf5a[_0x2f532e])&&(_0x4d7045=_0x10d435(_0x4d7045)||_0x4d7045);return _0x4d7045;},Ae=(_0x233cb5,_0x34c186)=>(_0x4c4e71,_0x5478f9)=>_0x34c186(_0x4c4e71,_0x5478f9,_0x233cb5);let dt=class extends _0x570ab2{constructor(_0x3f9285,_0x1119b0,_0x41e95c){const _0x26bc03=_0x1bab67;super(),this[_0x26bc03(0x34f)]=_0x3f9285,this['_httpService']=_0x1119b0,this[_0x26bc03(0x28a)]=_0x41e95c;}async[_0x1bab67(0x2d4)](_0x6d7b95,_0x226768,_0x5a14c9,..._0x6c9a18){const _0x896c2=_0x1bab67;var _0x2435a6,_0x4bf95d,_0x399121,_0x4310e4;const _0x2b7947=this[_0x896c2(0x34f)][_0x896c2(0x3cc)]();if(!_0x2b7947)throw new Error(_0x896c2(0x2db));const _0x42f36c=((_0x2435a6=this[_0x896c2(0x28a)][_0x896c2(0x2d1)](_0x48ebf0))!=null?_0x2435a6:_0x21d34e)+'/'+_0x6d7b95+_0x896c2(0x29e)+_0x226768,_0x314af8=new URL(window[_0x896c2(0x37d)]['href']),_0x57d8f5={'scriptId':_0x6d7b95,'runId':(_0x4bf95d=_0x314af8['searchParams'][_0x896c2(0x1e3)](_0x896c2(0x3a1)))!=null?_0x4bf95d:'','function':_0x226768,'unitId':_0x2b7947[_0x896c2(0x3e6)](),'argsOfFunction':JSON[_0x896c2(0x2e2)](_0x6c9a18),'invokeId':(_0x399121=_0x5a14c9[_0x896c2(0x3fd)])!=null?_0x399121:'','executionId':(_0x4310e4=_0x5a14c9[_0x896c2(0x2c3)])!=null?_0x4310e4:''};try{const _0x121db4=await this['_httpService'][_0x896c2(0x1f5)](_0x42f36c,{'body':_0x57d8f5});return _0x121db4[_0x896c2(0x26c)][_0x896c2(0x253)]&&_0x121db4[_0x896c2(0x26c)][_0x896c2(0x253)][_0x896c2(0x33c)]!==Z['OK']?_0x896c2(0x250):_0x121db4[_0x896c2(0x26c)][_0x896c2(0x31e)];}catch{return _0x896c2(0x250);}}};dt=Fn([Ae(0x0,_0x3b2157),Ae(0x1,_0x5a79e2(_0x1fe289)),Ae(0x2,_0x52bdc7)],dt);const St=0x7530,mt=_0x1bab67(0x37f);class rr extends _0x570ab2{constructor(){const _0x4f9369=_0x1bab67;super(),_(this,_0x4f9369(0x415),_0x2679ea()),_(this,_0x4f9369(0x3dc),new Set()),_(this,_0x4f9369(0x324),new Map()),_(this,_0x4f9369(0x3a6),null),_(this,_0x4f9369(0x1dc),new Map()),_(this,'_unitStatus',new Map()),this[_0x4f9369(0x38f)]();}[_0x1bab67(0x3d8)](){const _0x2ff711=_0x1bab67;super[_0x2ff711(0x3d8)](),this[_0x2ff711(0x1dc)][_0x2ff711(0x36c)]((_0x9c32a1,_0x3998e0)=>this[_0x2ff711(0x41a)](_0x3998e0)),this[_0x2ff711(0x3a6)]&&window[_0x2ff711(0x21d)](this[_0x2ff711(0x3a6)]);}[_0x1bab67(0x215)](_0x2ae0c){const _0x57545d=_0x1bab67;return this['_ensureSubject'](_0x2ae0c)[_0x57545d(0x3e7)](_0x7cced5());}[_0x1bab67(0x328)](_0x5e27fb){const _0x30b8ce=_0x1bab67;this[_0x30b8ce(0x3dc)][_0x30b8ce(0x40a)]===0x0&&this[_0x30b8ce(0x295)](),this[_0x30b8ce(0x3dc)]['add'](_0x5e27fb),this[_0x30b8ce(0x411)]({'type':0x0,'memberID':this[_0x30b8ce(0x415)],'unitIDs':[_0x5e27fb],'isForwarded':!0x1});}[_0x1bab67(0x1fe)](_0xae58f9){const _0x26ca78=_0x1bab67;this[_0x26ca78(0x3dc)][_0x26ca78(0x3ae)](_0xae58f9),this[_0x26ca78(0x3dc)][_0x26ca78(0x40a)]===0x0&&this[_0x26ca78(0x3a6)]&&window[_0x26ca78(0x21d)](this[_0x26ca78(0x3a6)]);}[_0x1bab67(0x38f)](){const _0x36383b=_0x1bab67;this[_0x36383b(0x24d)](_0x2b2711(_0x5af89f(window,_0x36383b(0x34b))[_0x36383b(0x401)](_0x4b7dda=>{const _0x57c1f7=_0x36383b;if(_0x4b7dda[_0x57c1f7(0x3b3)]!==mt||!_0x4b7dda[_0x57c1f7(0x225)])return;const _0xf642a6=JSON[_0x57c1f7(0x28b)](_0x4b7dda[_0x57c1f7(0x225)]);this[_0x57c1f7(0x390)](_0xf642a6);}))),window['addEventListener'](_0x36383b(0x359),()=>this[_0x36383b(0x411)]({'type':0x1,'memberID':this[_0x36383b(0x415)],'unitIDs':Array['from'](this[_0x36383b(0x3dc)])}));}['_handleEvent'](_0x28f950){const _0x4f36da=_0x1bab67;switch(_0x28f950[_0x4f36da(0x227)]){case 0x0:this[_0x4f36da(0x28d)](_0x28f950);break;case 0x1:this[_0x4f36da(0x3ff)](_0x28f950);break;case 0x2:this[_0x4f36da(0x335)](_0x28f950);break;}}[_0x1bab67(0x28d)](_0x2d1056){const _0x348798=_0x1bab67,{unitIDs:_0x820e6e,memberID:_0x181e2c,isForwarded:_0x38ad17}=_0x2d1056;_0x820e6e[_0x348798(0x36c)](_0x5b45fa=>{const _0x3250ae=_0x348798;if(!_0x38ad17&&this[_0x3250ae(0x324)][_0x3250ae(0x1f7)](_0x5b45fa)&&this[_0x3250ae(0x294)](_0x5b45fa)[_0x3250ae(0x419)](_0x1daf11[_0x3250ae(0x237)]),!this['_unitOnClients'][_0x3250ae(0x1f7)](_0x5b45fa)||!this[_0x3250ae(0x324)][_0x3250ae(0x1e3)](_0x5b45fa)[_0x3250ae(0x1f7)](_0x181e2c)){const _0x35945d=this['_unitOnClients'][_0x3250ae(0x1e3)](_0x5b45fa)||new Set();_0x35945d['add'](_0x181e2c),this[_0x3250ae(0x324)][_0x3250ae(0x25f)](_0x5b45fa,_0x35945d),this['_scheduleClearOtherTimer'](_0x181e2c);}}),_0x38ad17||this['_send']({'type':0x0,'memberID':this[_0x348798(0x415)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x1bab67(0x224)](_0x436036){const _0x36c947=_0x1bab67;this[_0x36c947(0x41a)](_0x436036);const _0x105532=window['setTimeout'](()=>{const _0x467531=_0x36c947;this[_0x467531(0x324)][_0x467531(0x36c)](_0x753a77=>{const _0x567aca=_0x467531;_0x753a77[_0x567aca(0x3ae)](_0x436036);});},St*0x2);this[_0x36c947(0x1dc)][_0x36c947(0x25f)](_0x436036,_0x105532);}[_0x1bab67(0x41a)](_0x43200c){const _0x2598a1=_0x1bab67;if(this[_0x2598a1(0x1dc)][_0x2598a1(0x1f7)](_0x43200c)){const _0x2e6a57=this[_0x2598a1(0x1dc)]['get'](_0x43200c);_0x2e6a57&&window['clearTimeout'](_0x2e6a57),this['_clearOtherTimers'][_0x2598a1(0x25f)](_0x43200c,null);}}[_0x1bab67(0x3ff)](_0x3c2cce){const _0x23b7a4=_0x1bab67,{memberID:_0x169865,unitIDs:_0x221d6f}=_0x3c2cce;_0x221d6f['forEach'](_0x21eae4=>{const _0x2e5c67=_0x4050;var _0x4f8f3d;const _0x55d67b=this['_unitOnClients'][_0x2e5c67(0x1e3)](_0x21eae4);_0x55d67b&&(_0x55d67b['delete'](_0x169865),(_0x4f8f3d=this['_ensureSubject'](_0x21eae4))==null||_0x4f8f3d[_0x2e5c67(0x419)](_0x55d67b[_0x2e5c67(0x40a)]===0x0?_0x1daf11[_0x2e5c67(0x247)]:_0x1daf11[_0x2e5c67(0x237)]));}),this[_0x23b7a4(0x41a)](_0x169865);}[_0x1bab67(0x335)](_0x5aba59){const _0x48cb28=_0x1bab67;this[_0x48cb28(0x224)](_0x5aba59['memberID']);}['_send'](_0xdaa409){const _0x309643=_0x1bab67;localStorage[_0x309643(0x377)](mt,JSON[_0x309643(0x2e2)](_0xdaa409));}[_0x1bab67(0x295)](){const _0x5e399d=_0x1bab67;this[_0x5e399d(0x3a6)]=window[_0x5e399d(0x31c)](()=>{const _0x1c980f=_0x5e399d;this[_0x1c980f(0x411)]({'type':0x2,'memberID':this['_id']});},St);}[_0x1bab67(0x294)](_0x426075){const _0x3b0d42=_0x1bab67;return this[_0x3b0d42(0x30b)][_0x3b0d42(0x1f7)](_0x426075)||this['_unitStatus'][_0x3b0d42(0x25f)](_0x426075,new _0x42c9f3(_0x1daf11['NO_OTHER_CLIENTS_EDITING'])),this[_0x3b0d42(0x30b)][_0x3b0d42(0x1e3)](_0x426075);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x10cc18=_0x58c2;(function(_0x1b9ca3,_0x4cf5b1){const _0x461f6f=_0x58c2,_0x5953cf=_0x1b9ca3();while(!![]){try{const _0x3c3633=parseInt(_0x461f6f(0x319))/0x1*(parseInt(_0x461f6f(0x329))/0x2)+parseInt(_0x461f6f(0x236))/0x3+-parseInt(_0x461f6f(0x224))/0x4*(-parseInt(_0x461f6f(0x166))/0x5)+-parseInt(_0x461f6f(0x247))/0x6*(parseInt(_0x461f6f(0x129))/0x7)+parseInt(_0x461f6f(0x235))/0x8*(-parseInt(_0x461f6f(0x15a))/0x9)+parseInt(_0x461f6f(0x19b))/0xa+-parseInt(_0x461f6f(0x266))/0xb*(-parseInt(_0x461f6f(0x314))/0xc);if(_0x3c3633===_0x4cf5b1)break;else _0x5953cf['push'](_0x5953cf['shift']());}catch(_0x316892){_0x5953cf['push'](_0x5953cf['shift']());}}}(_0x270e,0x97fac));var Yt=Object[_0x10cc18(0x1e4)],Wt=(_0x3cb592,_0x8679c5,_0x23aa55)=>_0x8679c5 in _0x3cb592?Yt(_0x3cb592,_0x8679c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23aa55}):_0x3cb592[_0x8679c5]=_0x23aa55,_=(_0x2af420,_0x2e0d11,_0x43dedb)=>Wt(_0x2af420,typeof _0x2e0d11!=_0x10cc18(0x2de)?_0x2e0d11+'':_0x2e0d11,_0x43dedb);import{jsx as _0xccee15,jsxs as _0xc66364}from'react/jsx-runtime';import{CollaborationStatus as _0x3d84ba,CollaborationSessionService as _0x1abc06,CollaborationController as _0x69ed9c,DataLoaderService as _0x382568,MemberService as _0xf95f76,SessionStatus as _0x756bff,ILocalCacheService as _0x3a4f5a,CollaborationUIEventService as _0x32b243,CollaborationUIEventId as _0x5e0b6b,DocCollaborationEntity as _0x59b116,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x209e63,getLocalCacheKey as _0x59f688,LOCAL_CACHE_INTERVAL as _0x4a9fea,LOCAL_CACHE_INTERVAL_KEY as _0x24dd1f,UniverCollaborationClientPlugin as _0x4c184a,CollaborationSocketService as _0x4e6c96,DEFAULT_WS_SESSION_TICKET_URL as _0x45c098,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2d33ca,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x550c3a,UnitStatus as _0x4078f0}from'@univerjs-pro/collaboration-client';import{LocaleService as _0xefd7ba,IUniverInstanceService as _0x631d26,Inject as _0x2c9f2f,Injector as _0x3955fb,Disposable as _0x3e748e,createIdentifier as _0x5d6f8c,ILogService as _0x1368e3,ICommandService as _0x526fee,Optional as _0x2f165a,RxDisposable as _0x460db8,Workbook as _0x18daa7,DOC_RANGE_TYPE as _0x22acc,debounce as _0x51b589,Rectangle as _0x40c7c0,DisposableCollection as _0x5a6462,toDisposable as _0x555679,UniverInstanceType as _0x5045e8,generateRandomId as _0x5236ab,COLORS as _0x10fc5a,ColorKit as _0x1a8ee3,ThemeService as _0x31d312,fromEventSubject as _0x2b51fa,Tools as _0x4984ae,CommandType as _0x3e471d,IConfigService as _0x56b98d,CanceledError as _0x20efe7,isFormulaString as _0x5b53ca,isFormulaId as _0x3e9eba,ILocalStorageService as _0x2ba981,DependentOn as _0x5aa65c,Plugin as _0x5ba41c,merge as _0x5c3498,registerDependencies as _0x4b4f71,mergeOverrideWithDependencies as _0x436173,touchDependencies as _0x569f6e}from'@univerjs/core';import{useObservable as _0x3a1844,useDependency as _0x22da28,IUIPartsService as _0x25683e,BuiltInUIPart as _0x4ec0d2,connectInjector as _0x3832e5,IBeforeCloseService as _0x4d68ed,IMessageService as _0x41d342,INotificationService as _0x3c2d52}from'@univerjs/ui';import{BehaviorSubject as _0x1ced39,switchMap as _0x5e120f,of as _0x281440,takeUntil as _0x55bd62,debounceTime as _0x3be16c,Subject as _0x495c27,filter as _0x12a7d2,merge as _0x153e90,combineLatest as _0x5c05c1,fromEvent as _0x5171f8,shareReplay as _0x1b1b8c,mapTo as _0x5a5b3d,distinctUntilChanged as _0x34b2d2}from'rxjs';import{Tooltip as _0x556043,clsx as _0x25975e,MessageType as _0x22c147}from'@univerjs/design';import{useRef as _0x13a3f9,createElement as _0x2bc3c8,forwardRef as _0x21f1d1,useCallback as _0x3ffd3d}from'react';import{IRemoteInstanceService as _0x2cc7be}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3e1701,RefRangeService as _0x4afbe7,SetSelectionsOperation as _0x3c2d3f,SheetsSelectionsService as _0xc9e973,EffectRefRangId as _0xe50d17,handleIRemoveRow as _0x11bbdd,handleIRemoveCol as _0x27e994,handleMoveRange as _0x379eb2,handleInsertRow as _0x524712,handleInsertRangeMoveRight as _0x1916d7,handleInsertRangeMoveDown as _0x3177b4,handleInsertCol as _0x3b58f5,handleDeleteRangeMoveUp as _0x3a245f,handleDeleteRangeMoveLeft as _0xc34664,runRefRangeMutations as _0x178978}from'@univerjs/sheets';import{Shape as _0x28bace,Rect as _0x2dfad6,getColor as _0x44dbc,RegularPolygon as _0x2a7a95,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4c9c8a,Vector2 as _0x4b7404,SHEET_VIEWPORT_KEY as _0x32c43e,IRenderManagerService as _0x20cff4}from'@univerjs/engine-render';import{HTTPService as _0x47ffcb,ISocketService as _0x2befe2,WebSocketService as _0x21a377}from'@univerjs/network';import{IDocClipboardService as _0x401c42,NodePositionConvertToCursor as _0x3f6a22,NodePositionConvertToRectRange as _0x4973b1,TEXT_RANGE_LAYER_INDEX as _0x531506,SetDocZoomRatioOperation as _0x198811,DocIMEInputManagerService as _0x10cfe8,DocStateChangeManagerService as _0x58cfb8}from'@univerjs/docs-ui';import{IImageIoService as _0x3ef8ac}from'@univerjs/drawing';function _0x270e(){const _0x15d413=['hovered','_collabCursorState$','push','OnLineIcon','transform','_renderManagerService','result','ENTITLE_CAN_NOT_BUY_LOWER_OTP','[Unhandled\x20Rejection]:\x20','...','getTypeOfUnitDisposed$','MOBILE_VERIFY_CODE_MISMATCH','UNIVER_SHEET','_status$','_unitOnClients','history','href','resize','sheetID','shift','addHandlerCallback','_toggleOnline','RemoveColCommandId','engine','_uiPartsService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','translate(.97)','mutations','_initCommandExecutedListener','_entities','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_heartbeatTimer','size','filename','onRendered','transformByState','dispose$','clearTimeout','save','YUUMI_ASYNCIO_CANCELLED','_color','black','limitInfo','InsertColCommandId','fillStyle','body','none','on-line-icon_clip0_910_349','_scheduleClearOtherTimer','subUnitId','getSheetBySheetId','m2Prime','_roomMembers$','ALREADY_EXISTS','LICENSE_MAX_UNITS_EXCEEDED','_initUserListener','_registerRenderDependencies','4HZDXFn','init','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','exhaustSavingTask','MUTATION','setActiveRange','getViewport','_initEvent','setStateCache','location','1em','_updateLocalCursor','actions','includes','_handleHover','dispose','addObjects','405616igWxeR','567468NDgWAp','moveTo','UNIVER_DOC','set','path','find','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_startSheetCollabCursor','REDEMPTION_USER_NOT_ELIGIBLE','code','min','fillText','subunit','REDEMPTION_CODE_HAS_BEEN_CREATED','[CollaborationDataLoaderController]','[RemoteUniscriptService]:\x20no\x20focused\x20unit','labelPosition','5616xnmQJA','now','unitID','ticket','UPDATE_CURSOR','REDEMPTION_INVALID_CODE','_getFormulaLimitStatus','getActiveSheet','_initResize','_initWindowErrorListener','removeEventListener','_docStateChangeManagerService','getConfig','_shapes','onPointerMove$','beforeCommandExecuted','deepClone','getCollabEntity$','_document','getUnitId','stack','_clearPolling','defs','_init','_hovered','transformMutation','_draw','getMemberID','_beforeCloseService','delete','currentTheme$','550737xzoXGk','LOGIN_FAILED','searchParams','blue.400','JOIN_ROOM_FAILED','OTHER_CLIENTS_EDITING','key','_sheetSkeletonManagerService','onPointerLeave$','setTimeout','collabStatus.offline','_revisionService','_cursorShapes','runOnServer','_range','ENTITLE_CHAT_LIMIT_EXCEED','_httpService','eventID','_name','_messageService','name','REDEMPTION_USER_REDEEM_TIMES_EXCEED','PY_RUNTIME_SCRIPT_ERROR','pluginName','Unknown\x20user','getValue','startColumn','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','registerRenderModule','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','OFFLINE','drawWith','loadOfflineData','_onCursorDelete','subscribe','_drawAnchor','formula.calculation.waiting','hide','transformMutationsWithChangeset','_transformUndoRedoStack','_onCursorUpdate','executionId','_taskIds','idSuffix','_collaborationSessionService','VIEW_MAIN','tag','getUnitStatus$','endRow','pipe','UniverIcon','top','USER_NOT_FOUND','PENDING','_commandService','url(#on-line-icon_clip0_910_349)','transformSelections','evenodd','_hasFormulaInDirtyRanges','collab-text-anchor-','isActive','setAlpha','sessionTicket','_hover','entries','_memberService','ENTITLE_NEED_BILLING_ADDRESS','_docTransformSelectionsService','m1Prime','collaboration.closeRoom','/run/','SNAPSHOT_HAS_BEEN_REMOVED','/universer-api/license/formula/limit/start','FETCH_MISS','getColorFromTheme','WECHAT_HAS_BEEN_BOUND','/universer-api/license/formula/limit/status','_labelPosition','LICENSE_DISTRO_REJECTED','xlink:href','_online','ENSURE_SNAPSHOT_EXECUTION','PERMISSION_DENIED','YUUMI_RATE_OVER_LIMIT','RemoveRowCommandId','cursorInfo$','message','has','disposeUnit','http://www.w3.org/2000/svg','column','_currentUsage','_initCommandInterceptor','univer-mr-2\x20univer-flex\x20univer-text-xl','subscribeEvent','_docClipboardService','currentSkeleton$','getMergeData','Warning','formula.calculation.unable','children','random','YUUMI_AI_RUN_FAILED','_applyCommand','_backgroundColor','_updateURLWithCurrentState','newValue','isArray','_handleEvent','use','trim','_initDependencies','/universer-api/frontend/logs','_updateCollabCursors','PAYMENT_CHANNEL_NOT_SUPPORT','mask','DeleteRangeMoveUpCommandId','measureText','univer-flex\x20univer-items-center','?taskId=','symbol','onPointerEnter$','TEXT','getVpScrollXYInfoByPosToVp','memberID','asObservable','_handleLeaveEvent','LICENSE_IMPORT_SIZE_EXCEEDED','_docTransformIMECacheService','YUUMI_NO_CUBOID_FOR_QUESTION','requireSession','_cursors','source','YUUMI_URL_COL_OUT_OF_RANGE','docStateChange$','replace','_localStorageService','from','_saveCache','parse','INVALID_ARGUMENT','TOO_MANY_REQUESTS','font','getTypeOfUnitAdded$','div','_monkeyPatchLogService','_startDocCollabCursor','_cachedData','InsertRangeMoveDownCommandId','map','M0\x200H16V16H0z','unsubscribe','_cursor','setInterval','white','_univerInstanceService','displayName','_localeService','setConfig','clipPath','disableLocalCache','redoState','_maxFormulaLimit','complete','FromArray','getUnit','ONLINE','getCurrentUnitForType','getCellPositionByOffset','collabStatus.conflict','onMouseMove','_memberID','_lastPointer','runId','204kgQtTX','range','toRgbString','HEADER_MENU','collabStatus.syncing','627xEuMYm','lineTo','_send','_startCalculationLimit','transformIMECache','APPLY_REJECT','unhandledrejection','width','APPLY_REVISION_CONFILICT','currentColor','REDEMPTION_CODE_NOT_STARTED','transformRemoteChangeset','addEventListener','yellow.400','getSheetId','_cursorInfo$','578uTxvgC','YUUMI_SUBSCRIPTION_NOT_FOUND','#FFF','status$','_config','restore','_handleJoinEvent','_assignedColors','_collaborationUIEventService','addClipboardHook','_refreshCollabCursors','editingUnit','show','cursorInfo','roomMembers$','_textBubble','_syncEditingCollabCursorService','enableFrontendLog','closePath','SUBMIT_CHANGESET_TIMEOUT','_scheduleHeartbeat','_injector','fillRule','round','CHANGESET_REVISION_CONFILICT','stageInfo','off-line-icon_clip0_910_343','_collabSessionService','startRow','getUndoRedoMutationParamsCache','length','flatMap','_toggleOffline','session.connection-failed','REDEMPTION_CODE_INACTIVE','executeCommand','add','CONNECTOR_DATA_TOO_LARGE','ENTITLE_REPORT_LIMIT_EXCEED','onLocalMutation','imageSourceType','with','getRenderById','doc.mutation.rich-text-editing','selection','backgroundColor','undoState','NOT_COLLAB','_docSkeletonManagerService','_releaseCalculationLimit','_removeCollabCursors','assign','_transformHistoryAndStateStack','getRangePointData','_createSocketURL','_pollingInterval','_saveTaskMap','maxFormulaLimit','_initUnhandledRejectionListener','_removeClearOtherTimer','text','_disabled','getSkeleton','collabStatus.synced','split','_showGuardMessage','ranges','APPLY_PERMISSION_DENIED','_themeService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','permission.content','setShapeProps','_initEntityListener','on-line-icon','getCurrentRevOfUnit','skeleton','get','_localCacheService','7427NdRSZD','INTERNAL_ERROR','string','forEach','registerComponent','collab-text-range-','Success','fill','colorChannel1','INVALID_INVITE_CODE','_drawRectRange','colno','_getSaveTimeout','INVITE_CODE_ALREADY_BOUND','socket$','_initStatusListener','off-line-icon','debug','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','getUniverSheetInstance','_getAnchorBounding','transformStateCache','assignAColorForMemberID','_clearOtherTimers','_setupSubUnitSync','current','NO_OTHER_CLIENTS_EDITING','activeSheet$','_docTransformStateCacheService','REDEMPTION_CODE_FULLY_REDEEMED','svg','session.will-retry','_entityInit$','parseInt','UNRECOGNIZED','addObject','_uploadLog','collab-rect-range-','url(#$1','reconnect','params','YUUMI_TABLE_NOT_FOUND_IN_UNIT','Error','createInstance','_scene','urlChange$','getAncestorScale','APPLY_NON_SEQUENTIAL_REVISION','selections','45PQlhKh','send','DeleteRangeMoveLeftCommandId','override','replaceState','endColumn','USER_NOT_INVITED_CODE','storage','application/json','registerBeforeClose','onCommandExecuted','invokeId','1185875zrVCWH','getFocusedUnit','USERS_LEAVE','origin','unitId','arc','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_transformService','_eventUnsubscribe','stringify','onStarting','setParam','YUUMI_CONNECTOR_URL_NOT_FOUND','contains','UNAUTHENTICATED','join','_drawTextRange','_colorAssignService','popstate','ENTITLE_DUP_SUBSCRIPTION','height','SOCKET_FAILED_RETRY','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_session','_checkCalculationAvailable','_transformPreviousActiveRange','Failed','url(#off-line-icon_clip0_910_343)','_selfUnitIDs','getItem','_onRefRangeChange','getStateCache','totalFormulasToCalculate','_context','rgba(255,\x20255,\x20255,\x200.01)','getCollabCursors$','sheetId','_handleHeartbeatEvent','AWAITING_WITH_PENDING','_dataLoaderService','_imageIoService','_hideTimer','_logService','collabStatus.fetchMiss','_scheduleSaving','_id','collaboration.single-unit.warning','_refRangeService','COMPLETION_FINISHED','_ensureSubject','USER_IS_ANONYMOUS','syncEditingCollabCursor','YUUMI_ALL_TABLES_IS_INVALID','4104410cyGPRQ','_instanceService','_updateSubUnitFromURLParams','getParam','findNodePositionByCharIndex','LICENSE_EXPORT_SIZE_EXCEEDED','_colorIndex','textRanges','_urlService','_docSyncEditingCollabCursorService','setItem','UNDEFINED','_getSessionTicket','SNAPSHOT_INVALID_SNAPSHOT','sessionStatus$','red.300','_setFormulaLimitStatus','error','clearInterval','CONFLICT','then','OTHER_CLIENT_EDITING','uni.network.url-service','purple.300','LOGIN_TOKEN_PROCESSING_FAILED','setUndoRedoMutationParamsCache','unshift','START_CALCULATION','_anchor','_anchorDot','some','NOT_FOUND','INVITE_CODE_HAS_BEEN_UES','disposeWithMe','triggerDblclick','MOBILE_HAS_BEEN_BOUND','AUTHORIZE_CODE_ILLEGAL','MoveRangeCommandId','catch','collab-client.tooltip.reconnect','RECT','getOffsetConfig','event$','collabCursorState$','bottom','_unitStatus','_collaborationController','_configService','DATA_SOURCE_TOO_LARGE','toString','collaboration-client-ui.config','type','EMAIL_HAS_BEEN_BOUND','formula.calculation.started','attrs','_collabCursorController','getCurrent','_setupBeforeClosingHandler','EMAIL_VERIFY_CODE_MISMATCH','_checkAndWaitForCalculationPermission','getActiveRange','getDocRanges','0\x200\x2016\x2016','lineno','_lastResponseTimestamp','currentUsage','ERROR_AGAIN','registerRefRange','saveTaskMap','data','next','_render','post','defineProperty','color','SUCCESS','isEditing','collabStatus.notCollab','getUnhiddenWorksheets','getOwnPropertyDescriptor'];_0x270e=function(){return _0x15d413;};return _0x270e();}import{ITransformService as _0x447d81,CollaborationEvent as _0x56f5f5,isTransformMutationFailure as _0x3ff0c5,isTransformMutationsWithChangesetSuccess as _0x4e8f7d,RevisionService as _0x6cec3d,ISnapshotServerService as _0x4a0d66}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x359fd6,RichTextEditingMutation as _0x15c2de,DocSelectionManagerService as _0x196312,DocSkeletonManagerService as _0x9d459b}from'@univerjs/docs';import{deserializeRangeWithSheet as _0xaa972c,serializeRangeWithSheet as _0x5ebf47,FormulaExecuteStageType as _0x915ac4,FormulaExecutedStateType as _0x4723a6,SetFormulaCalculationStartMutation as _0x19bce6,SetFormulaCalculationNotificationMutation as _0x391c35}from'@univerjs/engine-formula';import{map as _0x47b623,filter as _0x3cb932,throttleTime as _0x5756a9,takeUntil as _0x2ea52d,switchMap as _0x33a13a}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2cb62f,getCoordByCell as _0x2094e3,getSheetObject as _0x32f0c0}from'@univerjs/sheets-ui';function Ge({ref:_0x1032b1,..._0x1693ed}){const _0x16917e=_0x10cc18,{icon:_0x470a1d,id:_0x55b0fb,className:_0x5634a5,extend:_0x57258d,..._0xff030d}=_0x1693ed,_0xdc16de=('univerjs-icon\x20univerjs-icon-'+_0x55b0fb+'\x20'+(_0x5634a5||''))[_0x16917e(0x2d4)](),_0x29fe6a=_0x13a3f9('_'+Ei());return At(_0x470a1d,''+_0x55b0fb,{'defIds':_0x470a1d['defIds'],'idSuffix':_0x29fe6a[_0x16917e(0x142)]},{'ref':_0x1032b1,'className':_0xdc16de,..._0xff030d},_0x57258d);}function At(_0x1a7b41,_0x5b6a2d,_0x28ca18,_0x381858,_0x234f54){const _0x1f4b57=_0x10cc18;return _0x2bc3c8(_0x1a7b41[_0x1f4b57(0x294)],{'key':_0x5b6a2d,...gi(_0x1a7b41,_0x28ca18,_0x234f54),..._0x381858},(vi(_0x1a7b41,_0x28ca18)[_0x1f4b57(0x2ca)]||[])['map']((_0x31805a,_0x229cc7)=>At(_0x31805a,_0x5b6a2d+'-'+_0x1a7b41[_0x1f4b57(0x294)]+'-'+_0x229cc7,_0x28ca18,void 0x0,_0x234f54)));}function gi(_0x39d7f2,_0xa8b9d5,_0x37679f){const _0x43dd0e=_0x10cc18,_0x535db8={..._0x39d7f2[_0x43dd0e(0x1d1)]};_0x37679f!=null&&_0x37679f[_0x43dd0e(0x131)]&&_0x535db8[_0x43dd0e(0x130)]===_0x43dd0e(0x131)&&(_0x535db8[_0x43dd0e(0x130)]=_0x37679f[_0x43dd0e(0x131)]),_0x39d7f2['tag']===_0x43dd0e(0x2d9)&&_0x535db8['id']&&(_0x535db8['id']=_0x535db8['id']+_0xa8b9d5[_0x43dd0e(0x291)]),Object[_0x43dd0e(0x2a6)](_0x535db8)[_0x43dd0e(0x12c)](([_0x1f9a06,_0x8b6b6e])=>{const _0x68dbf3=_0x43dd0e;_0x1f9a06==='mask'&&typeof _0x8b6b6e==_0x68dbf3(0x12b)&&(_0x535db8[_0x1f9a06]=_0x8b6b6e[_0x68dbf3(0x2ed)](/url\(#(.*)\)/,'url(#$1'+_0xa8b9d5['idSuffix']+')'));});const {defIds:_0x470cfc}=_0xa8b9d5;return!_0x470cfc||_0x470cfc[_0x43dd0e(0xf9)]===0x0||(_0x39d7f2[_0x43dd0e(0x294)]===_0x43dd0e(0x2d3)&&_0x535db8['xlink:href']&&(_0x535db8[_0x43dd0e(0x2b5)]=_0x535db8[_0x43dd0e(0x2b5)]+_0xa8b9d5['idSuffix']),Object[_0x43dd0e(0x2a6)](_0x535db8)[_0x43dd0e(0x12c)](([_0x532c0e,_0x2a7f81])=>{const _0x4d13f6=_0x43dd0e;typeof _0x2a7f81=='string'&&(_0x535db8[_0x532c0e]=_0x2a7f81['replace'](/url\(#(.*)\)/,_0x4d13f6(0x14f)+_0xa8b9d5[_0x4d13f6(0x291)]+')'));})),_0x535db8;}function vi(_0x311d5e,_0x1fe83c){const _0x2b0b30=_0x10cc18;var _0x19b777;const {defIds:_0x23b623}=_0x1fe83c;return!_0x23b623||_0x23b623[_0x2b0b30(0xf9)]===0x0?_0x311d5e:_0x311d5e['tag']===_0x2b0b30(0x25d)&&((_0x19b777=_0x311d5e['children'])!=null&&_0x19b777[_0x2b0b30(0xf9)])?{..._0x311d5e,'children':_0x311d5e[_0x2b0b30(0x2ca)][_0x2b0b30(0x2fb)](_0x27cb71=>typeof _0x27cb71[_0x2b0b30(0x1d1)]['id']==_0x2b0b30(0x12b)&&_0x23b623&&_0x23b623[_0x2b0b30(0x231)](_0x27cb71[_0x2b0b30(0x1d1)]['id'])?{..._0x27cb71,'attrs':{..._0x27cb71[_0x2b0b30(0x1d1)],'id':_0x27cb71[_0x2b0b30(0x1d1)]['id']+_0x1fe83c['idSuffix']}}:_0x27cb71)}:_0x311d5e;}function Ei(){const _0x47e230=_0x10cc18;return Math[_0x47e230(0x2cb)]()[_0x47e230(0x1cc)](0x24)['substring'](0x2,0x8);}Ge['displayName']=_0x10cc18(0x298);const pi={'tag':_0x10cc18(0x147),'attrs':{'xmlns':_0x10cc18(0x2bf),'fill':_0x10cc18(0x219),'viewBox':_0x10cc18(0x1d9),'width':_0x10cc18(0x22e),'height':_0x10cc18(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x10cc18(0x181)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'stroke':_0x10cc18(0x322),'d':_0x10cc18(0x281),'strokeLinecap':_0x10cc18(0xf2),'strokeLinejoin':_0x10cc18(0xf2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10cc18(0x305),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'fill':_0x10cc18(0x300),'d':_0x10cc18(0x2fc)}}]}]}],'defIds':[_0x10cc18(0xf5)]},Pt=_0x21f1d1(function(_0x50745c,_0x510198){const _0x41abfd=_0x10cc18;return _0x2bc3c8(Ge,Object['assign']({},_0x50745c,{'id':_0x41abfd(0x139),'ref':_0x510198,'icon':pi}));});Pt[_0x10cc18(0x302)]='OffLineIcon';const Oi={'tag':_0x10cc18(0x147),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x10cc18(0x22e),'height':_0x10cc18(0x22e)},'children':[{'tag':'g','attrs':{'clipPath':_0x10cc18(0x29d)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'stroke':_0x10cc18(0x322),'d':_0x10cc18(0x13b),'strokeLinecap':_0x10cc18(0xf2),'strokeLinejoin':_0x10cc18(0xf2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x10cc18(0x305),'attrs':{'id':_0x10cc18(0x21a)},'children':[{'tag':_0x10cc18(0x23a),'attrs':{'fill':'white','d':_0x10cc18(0x2fc),'transform':_0x10cc18(0x205)}}]}]}],'defIds':[_0x10cc18(0x21a)]},wt=_0x21f1d1(function(_0x35ba9f,_0x555f66){const _0x9e3689=_0x10cc18;return _0x2bc3c8(Ge,Object[_0x9e3689(0x10e)]({},_0x35ba9f,{'id':_0x9e3689(0x124),'ref':_0x555f66,'icon':Oi}));});wt[_0x10cc18(0x302)]=_0x10cc18(0x1ee);function Ti(_0x2f3e4f){const _0x102c38=_0x10cc18;switch(_0x2f3e4f){case _0x3d84ba['OFFLINE']:return _0x102c38(0x270);case _0x3d84ba[_0x102c38(0x1ae)]:return _0x102c38(0x30f);case _0x3d84ba[_0x102c38(0x2af)]:return _0x102c38(0x191);case _0x3d84ba[_0x102c38(0x10a)]:return _0x102c38(0x1e8);case _0x3d84ba['AWAITING']:case _0x3d84ba[_0x102c38(0x18c)]:return _0x102c38(0x318);case _0x3d84ba['SYNCED']:case _0x3d84ba[_0x102c38(0x29b)]:return _0x102c38(0x11a);}}function Ci(_0x51055a){const _0x3e490c=_0x10cc18,{status$:_0x563f5d}=_0x51055a,_0x30171e=_0x3a1844(_0x563f5d,_0x3d84ba[_0x3e490c(0x10a)]),_0xc78957=_0x22da28(_0xefd7ba),_0x2e8536=_0x22da28(_0x1abc06),_0x376bba=_0x30171e!==_0x3d84ba[_0x3e490c(0x284)],_0x407a7b=_0xc78957['t'](Ti(_0x30171e)),_0x4ca82a=_0x376bba?_0xccee15(wt,{}):_0xccee15(Pt,{}),_0x27694d=_0x3ffd3d(()=>{const _0x373b99=_0x3e490c;_0x376bba||_0x2e8536[_0x373b99(0x150)]();},[_0x376bba,_0x2e8536]);function _0x4eda0f(){const _0x18540f=_0x3e490c;return _0xc66364(_0x18540f(0x2f6),{'className':_0x18540f(0x2dc),'onClick':_0x27694d,'children':[_0xccee15(_0x18540f(0x2f6),{'className':_0x25975e(_0x18540f(0x2c3),{'univer-text-green-500':_0x376bba,'univer-text-red-500':!_0x376bba}),'children':_0x4ca82a}),_0xccee15('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x407a7b})]});}return _0x376bba?_0x4eda0f():_0xccee15(_0x556043,{'title':_0xc78957['t'](_0x3e490c(0x1c2)),'children':_0x4eda0f()});}var Ri=Object[_0x10cc18(0x1ea)],Di=(_0x16ece6,_0x440bf3,_0x544c52,_0x12d08c)=>{const _0x29e1c9=_0x10cc18;for(var _0x16574f=_0x12d08c>0x1?void 0x0:_0x12d08c?Ri(_0x440bf3,_0x544c52):_0x440bf3,_0x22b78e=_0x16ece6[_0x29e1c9(0xf9)]-0x1,_0x4358c1;_0x22b78e>=0x0;_0x22b78e--)(_0x4358c1=_0x16ece6[_0x22b78e])&&(_0x16574f=_0x4358c1(_0x16574f)||_0x16574f);return _0x16574f;},se=(_0x33b795,_0x5dda09)=>(_0xa9a24,_0x46ea2e)=>_0x5dda09(_0xa9a24,_0x46ea2e,_0x33b795);let ae=class extends _0x3e748e{constructor(_0x142d47,_0x29b506,_0x426a23,_0x32b696){const _0x15b32f=_0x10cc18;super(),_(this,_0x15b32f(0x1f8),new _0x1ced39(_0x3d84ba[_0x15b32f(0x10a)])),(this[_0x15b32f(0x301)]=_0x142d47,this[_0x15b32f(0xf0)]=_0x29b506,this[_0x15b32f(0x1c9)]=_0x426a23,this[_0x15b32f(0x203)]=_0x32b696,this['_initStatusComponent'](),this[_0x15b32f(0x138)]());}[_0x10cc18(0x138)](){const _0x30ab7d=_0x10cc18;this[_0x30ab7d(0x1bc)](this[_0x30ab7d(0x301)]['focused$'][_0x30ab7d(0x297)](_0x5e120f(()=>{const _0x229351=_0x30ab7d,_0x1a70b9=this['_univerInstanceService'][_0x229351(0x167)]();return _0x1a70b9?this[_0x229351(0x1c9)][_0x229351(0x258)](_0x1a70b9[_0x229351(0x25a)]()):_0x281440(null);}),_0x5e120f(_0x448f90=>_0x448f90?_0x448f90[_0x30ab7d(0x32c)]:_0x281440(_0x3d84ba['NOT_COLLAB'])))[_0x30ab7d(0x288)](_0x571140=>{const _0x2393d1=_0x30ab7d;this[_0x2393d1(0x1f8)][_0x2393d1(0x1e1)](_0x571140);}));}['_initStatusComponent'](){const _0xa63959=_0x10cc18;this[_0xa63959(0x1bc)](this[_0xa63959(0x203)][_0xa63959(0x12d)](_0x4ec0d2[_0xa63959(0x317)],()=>_0x3832e5(bi({'status$':this[_0xa63959(0x1f8)][_0xa63959(0x2e3)]()}),this[_0xa63959(0xf0)])));}};ae=Di([se(0x0,_0x631d26),se(0x1,_0x2c9f2f(_0x3955fb)),se(0x2,_0x2c9f2f(_0x69ed9c)),se(0x3,_0x25683e)],ae);function bi(_0x2d7b45){const {status$:_0x4b6af7}=_0x2d7b45;return function(){return _0xccee15(Ci,{'status$':_0x4b6af7});};}const yt=_0x5d6f8c(_0x10cc18(0x1b1));var Ni=Object[_0x10cc18(0x1ea)],Li=(_0x352138,_0x3ca791,_0x452907,_0x28f9ea)=>{const _0x351152=_0x10cc18;for(var _0x7f6ef1=_0x28f9ea>0x1?void 0x0:_0x28f9ea?Ni(_0x3ca791,_0x452907):_0x3ca791,_0x473383=_0x352138[_0x351152(0xf9)]-0x1,_0x211654;_0x473383>=0x0;_0x473383--)(_0x211654=_0x352138[_0x473383])&&(_0x7f6ef1=_0x211654(_0x7f6ef1)||_0x7f6ef1);return _0x7f6ef1;},K=(_0x446e29,_0x2cc895)=>(_0x2c5901,_0x180b87)=>_0x2cc895(_0x2c5901,_0x180b87,_0x446e29);let ce=class extends _0x460db8{constructor(_0x5a6037,_0x12276a,_0x8dd6c5,_0x3eb531,_0x140903){const _0x20f48c=_0x10cc18;super(),this[_0x20f48c(0x1a3)]=_0x5a6037,this[_0x20f48c(0x190)]=_0x12276a,this[_0x20f48c(0x29c)]=_0x8dd6c5,this[_0x20f48c(0x18d)]=_0x3eb531,_0x140903?_0x140903==null||_0x140903['whenReady']()['then'](()=>this['_init']()):(this[_0x20f48c(0x190)][_0x20f48c(0x13a)](_0x20f48c(0x244),_0x20f48c(0x204)),this[_0x20f48c(0x25e)]());}async[_0x10cc18(0x25e)](){const _0x54663a=_0x10cc18,_0x2a413f=this[_0x54663a(0x1a3)]['getParam']('unit'),_0x2abe4f=this['_urlService'][_0x54663a(0x19e)](_0x54663a(0x1ce)),_0xb594=this['_urlService'][_0x54663a(0x19e)](_0x54663a(0x242));if(!_0x2a413f||!_0x2abe4f){this['_logService']['debug'](_0x54663a(0x244),_0x54663a(0x120));return;}const _0x20f581=await this[_0x54663a(0x18d)]['loadUnit'](_0x2a413f,Number(_0x2abe4f),_0xb594);_0x20f581&&_0x20f581 instanceof _0x18daa7&&this[_0x54663a(0x141)](_0x20f581);}async['_setupSubUnitSync'](_0x289528){const _0x33760c=_0x10cc18;await this[_0x33760c(0x19d)](_0x289528),_0x289528[_0x33760c(0x144)][_0x33760c(0x297)](_0x55bd62(this[_0x33760c(0x20f)]))[_0x33760c(0x288)](_0x361d2c=>{const _0x5e0566=_0x33760c;_0x361d2c&&this[_0x5e0566(0x2cf)](_0x361d2c);}),this[_0x33760c(0x1a3)][_0x33760c(0x156)][_0x33760c(0x297)](_0x55bd62(this[_0x33760c(0x20f)]))[_0x33760c(0x288)](()=>this[_0x33760c(0x19d)](_0x289528));}[_0x10cc18(0x2cf)](_0x339860,_0x3a918e=!0x1){const _0x1c53ca=_0x10cc18,_0x45d35c=this[_0x1c53ca(0x1a3)][_0x1c53ca(0x19e)](_0x1c53ca(0x242));_0x339860[_0x1c53ca(0x327)]()!==_0x45d35c&&this['_urlService'][_0x1c53ca(0x171)](_0x1c53ca(0x242),_0x339860['getSheetId'](),_0x3a918e);}async['_updateSubUnitFromURLParams'](_0x38ceaa){const _0x520efa=_0x10cc18;var _0x416d6e;const _0xdd34f6=this[_0x520efa(0x1a3)][_0x520efa(0x19e)]('subunit');if(!_0xdd34f6||!_0x38ceaa[_0x520efa(0x21d)](_0xdd34f6)){const _0x5d46a2=_0x38ceaa[_0x520efa(0x1e9)]()[0x0],_0x234bf3=_0x38ceaa[_0x520efa(0x21d)](_0x5d46a2);if(!_0x234bf3)return;this[_0x520efa(0x2cf)](_0x234bf3,!0x0),await this[_0x520efa(0x29c)][_0x520efa(0xfe)](_0x3e1701['id'],{'unitId':_0x38ceaa[_0x520efa(0x25a)](),'subUnitId':_0x5d46a2});return;}((_0x416d6e=_0x38ceaa['getActiveSheet']())==null?void 0x0:_0x416d6e[_0x520efa(0x327)]())!==_0xdd34f6&&await this[_0x520efa(0x29c)][_0x520efa(0xfe)](_0x3e1701['id'],{'unitId':_0x38ceaa['getUnitId'](),'subUnitId':_0xdd34f6});}};ce=Li([K(0x0,yt),K(0x1,_0x1368e3),K(0x2,_0x526fee),K(0x3,_0x2c9f2f(_0x382568)),K(0x4,_0x2f165a(_0x2cc7be))],ce);var Ui=Object[_0x10cc18(0x1ea)],Mi=(_0x53ebfe,_0x226c43,_0x5edeae,_0x4bdceb)=>{const _0x2de856=_0x10cc18;for(var _0x161e26=_0x4bdceb>0x1?void 0x0:_0x4bdceb?Ui(_0x226c43,_0x5edeae):_0x226c43,_0x326c9c=_0x53ebfe[_0x2de856(0xf9)]-0x1,_0x456145;_0x326c9c>=0x0;_0x326c9c--)(_0x456145=_0x53ebfe[_0x326c9c])&&(_0x161e26=_0x456145(_0x161e26)||_0x161e26);return _0x161e26;},rt=(_0x103aa0,_0x4b5860)=>(_0x32747d,_0x2dd917)=>_0x4b5860(_0x32747d,_0x2dd917,_0x103aa0);let $e=class extends _0x460db8{constructor(_0x372838,_0x4863dc){const _0x178895=_0x10cc18;super(),this[_0x178895(0x2c5)]=_0x372838,this[_0x178895(0x18e)]=_0x4863dc,this[_0x178895(0x25e)]();}[_0x10cc18(0x25e)](){const _0x59501c=_0x10cc18,_0x5638b1=this;this['disposeWithMe'](this['_docClipboardService'][_0x59501c(0xe4)]({'onBeforePasteImage':async _0x67b28f=>{const _0x5dc87b=_0x59501c,_0x3784ed=await _0x5638b1['_imageIoService']['saveImage'](_0x67b28f);return _0x3784ed?{'source':_0x3784ed[_0x5dc87b(0x2ea)],'imageSourceType':_0x3784ed[_0x5dc87b(0x103)]}:null;}}));}};$e=Mi([rt(0x0,_0x401c42),rt(0x1,_0x3ef8ac)],$e);const ot=[_0x10cc18(0x1b2),'jiqing.500','green.600',_0x10cc18(0x1aa),_0x10cc18(0x269),_0x10cc18(0x326)];class Ke extends _0x3e748e{constructor(){const _0x1011c7=_0x10cc18;super(...arguments),_(this,_0x1011c7(0x330),new Map()),_(this,'_colorIndex',0x0);}[_0x10cc18(0x13f)](_0x50d88e){const _0x4e67a=_0x10cc18;if(this[_0x4e67a(0x330)][_0x4e67a(0x2bd)](_0x50d88e))return this[_0x4e67a(0x330)][_0x4e67a(0x127)](_0x50d88e);const _0x1aeb1b=ot[this[_0x4e67a(0x1a1)]];return this[_0x4e67a(0x1a1)]=(this[_0x4e67a(0x1a1)]+0x1)%ot['length'],this['_assignedColors'][_0x4e67a(0x239)](_0x50d88e,_0x1aeb1b),_0x1aeb1b;}}function $t(_0x447243){const _0x473212=_0x10cc18;let _0x207293='';for(const _0x39304a of _0x447243){const {startOffset:_0x43f161,endOffset:_0x387e89,isActive:_0x4092b6,rangeType:_0x39cd79,segmentId:_0x3b7693,segmentPage:_0x2c721b}=_0x39304a;_0x207293[_0x473212(0xf9)]&&(_0x207293+=','),_0x207293+=_0x43f161+':'+_0x387e89+':'+(_0x4092b6?'1':'0')+':'+_0x39cd79+':'+_0x3b7693+':'+_0x2c721b;}return _0x207293;}function Ai(_0x500333){const _0x2e32ee=_0x10cc18,_0x49f486=_0x500333[_0x2e32ee(0x11b)](','),_0x5ab4ca=[];for(const _0x1eec39 of _0x49f486){const [_0x2107f5,_0x4c31ad,_0x3b535c,_0x34ad93,_0x2e8347,_0x3792e0]=_0x1eec39[_0x2e32ee(0x11b)](':');_0x5ab4ca['push']({'startOffset':Number(_0x2107f5),'endOffset':Number(_0x4c31ad),'collapsed':_0x2107f5===_0x4c31ad,'isActive':_0x3b535c==='1','rangeType':_0x34ad93===_0x22acc[_0x2e32ee(0x2e0)]?_0x22acc[_0x2e32ee(0x2e0)]:_0x22acc[_0x2e32ee(0x1c3)],'segmentId':typeof _0x2e8347==_0x2e32ee(0x12b)?String(_0x2e8347):'','segmentPage':Number(_0x3792e0!=null?_0x3792e0:-0x1)});}return _0x5ab4ca[_0x2e32ee(0x1b9)](_0x5d734f=>_0x5d734f['isActive'])||(_0x5ab4ca[0x0][_0x2e32ee(0x2a2)]=!0x0),_0x5ab4ca;}class ze extends _0x460db8{constructor(){const _0x4d52f5=_0x10cc18;super(...arguments),_(this,_0x4d52f5(0x1ec),new _0x1ced39(null)),_(this,_0x4d52f5(0x1c6),this['_collabCursorState$'][_0x4d52f5(0x2e3)]());}['syncEditingCollabCursor'](_0x399ca6){const _0x500aa2=_0x10cc18,{unitID:_0x4bc344,memberID:_0x562a20,textRanges:_0x80a8a9}=_0x399ca6,_0x457985=$t(_0x80a8a9);if(_0x457985==='')return;const _0x292a3d={'unitID':_0x4bc344,'memberID':_0x562a20,'selection':_0x457985};this[_0x500aa2(0x1ec)]['next'](_0x292a3d);}}var Pi=Object[_0x10cc18(0x1ea)],wi=(_0x204151,_0x29aef1,_0x36b5c7,_0x28796c)=>{for(var _0x491c57=_0x28796c>0x1?void 0x0:_0x28796c?Pi(_0x29aef1,_0x36b5c7):_0x29aef1,_0x534438=_0x204151['length']-0x1,_0x1f528a;_0x534438>=0x0;_0x534438--)(_0x1f528a=_0x204151[_0x534438])&&(_0x491c57=_0x1f528a(_0x491c57)||_0x491c57);return _0x491c57;},A=(_0x3476c8,_0x4ae80f)=>(_0x5d7a3d,_0x1b036e)=>_0x4ae80f(_0x5d7a3d,_0x1b036e,_0x3476c8);const yi=0x12c,$i=0x64;let xe=class extends _0x460db8{constructor(_0x109e1b,_0x451678,_0x267e22,_0x9a37e6,_0x443438,_0x440f75,_0x442ea9,_0x10a945,_0x48caf7){const _0xc31378=_0x10cc18;super(),_(this,_0xc31378(0x2b6),!0x1),_(this,_0xc31378(0x25e),!0x1),_(this,_0xc31378(0x328),new _0x1ced39(new Map())),_(this,_0xc31378(0x2bb),this['_cursorInfo$'][_0xc31378(0x2e3)]()),_(this,_0xc31378(0x21f),new _0x1ced39([])),_(this,'roomMembers$',this['_roomMembers$'][_0xc31378(0x297)](_0x3be16c(yi))),_(this,_0xc31378(0x22f),_0x51b589(_0x2024a9=>{const _0x56204e=_0xc31378,_0x55ce9c={'eventID':_0x56f5f5[_0x56204e(0x24b)],'data':{'unitID':this[_0x56204e(0x249)],'memberID':this[_0x56204e(0x17d)][_0x56204e(0x262)](),'selection':$t(_0x2024a9)}};this[_0x56204e(0x17d)][_0x56204e(0x15b)](_0x55ce9c,this[_0x56204e(0x249)]);},$i)),(this['unitID']=_0x109e1b,this[_0xc31378(0x17d)]=_0x451678,this[_0xc31378(0xf0)]=_0x267e22,this['_colorAssignService']=_0x9a37e6,this[_0xc31378(0x2a7)]=_0x443438,this[_0xc31378(0xeb)]=_0x440f75,this['_transformService']=_0x442ea9,this[_0xc31378(0x301)]=_0x10a945,this[_0xc31378(0x29c)]=_0x48caf7);}get[_0x10cc18(0xe8)](){const _0x43f1cf=_0x10cc18;return this[_0x43f1cf(0x328)][_0x43f1cf(0x27f)]();}get['roomMembers'](){const _0x46e6eb=_0x10cc18;return this[_0x46e6eb(0x21f)][_0x46e6eb(0x27f)]();}[_0x10cc18(0x233)](){const _0x2041b4=_0x10cc18;super[_0x2041b4(0x233)](),this[_0x2041b4(0x328)][_0x2041b4(0x1e1)](new Map()),this[_0x2041b4(0x328)][_0x2041b4(0x309)](),this[_0x2041b4(0x21f)][_0x2041b4(0x1e1)]([]),this[_0x2041b4(0x21f)][_0x2041b4(0x309)]();}['init'](){const _0x7cfb6c=_0x10cc18;this['_init']||(this['_init']=!0x0,this[_0x7cfb6c(0x17d)][_0x7cfb6c(0x1a9)][_0x7cfb6c(0x297)](_0x55bd62(this['dispose$']))[_0x7cfb6c(0x288)](_0x9c9a5=>{const _0x1909b5=_0x7cfb6c;_0x9c9a5===_0x756bff[_0x1909b5(0x30c)]?this[_0x1909b5(0x200)]():this['_toggleOffline']();}),this[_0x7cfb6c(0x17d)][_0x7cfb6c(0x1c5)][_0x7cfb6c(0x297)](_0x55bd62(this[_0x7cfb6c(0x20f)]))[_0x7cfb6c(0x288)](_0x499ab4=>{const _0x5c9b77=_0x7cfb6c,_0x1a8ab2=_0x499ab4['eventID'];_0x1a8ab2===_0x56f5f5['UPDATE_CURSOR']&&this[_0x5c9b77(0x28e)](_0x499ab4),_0x1a8ab2===_0x56f5f5[_0x5c9b77(0x168)]&&this[_0x5c9b77(0x287)](_0x499ab4);}),this[_0x7cfb6c(0x1bc)](this['_commandService'][_0x7cfb6c(0x164)](_0x4013f5=>{const _0x232632=_0x7cfb6c,_0x312db3=_0x4013f5[_0x232632(0x151)];_0x312db3!=null&&this[_0x232632(0x2b6)]&&_0x4013f5['id']===_0x359fd6['id']&&_0x312db3['unitId']===this[_0x232632(0x249)]&&_0x312db3[_0x232632(0x1e7)]===!0x1&&_0x312db3[_0x232632(0x11d)]['length']>0x0&&this[_0x232632(0x22f)](_0x312db3['ranges']);})),this[_0x7cfb6c(0xeb)][_0x7cfb6c(0x1c6)][_0x7cfb6c(0x297)](_0x55bd62(this['dispose$']))[_0x7cfb6c(0x288)](_0x2e5867=>{const _0xd89f4d=_0x7cfb6c;if((_0x2e5867==null?void 0x0:_0x2e5867['unitID'])!==this['unitID'])return;const _0x277e3e={'eventID':_0x56f5f5[_0xd89f4d(0x24b)],'data':_0x2e5867};this[_0xd89f4d(0x28e)](_0x277e3e);}),this['disposeWithMe'](this[_0x7cfb6c(0x29c)][_0x7cfb6c(0x164)](_0x1cd532=>{const _0x2640e4=_0x7cfb6c;if(_0x1cd532[_0x2640e4(0x151)]==null)return;const _0xf6a80b=_0x1cd532[_0x2640e4(0x151)];if(_0x1cd532['id']!==_0x15c2de['id']||_0xf6a80b[_0x2640e4(0x16a)]!==this[_0x2640e4(0x249)])return;const _0x3f6d4d={'id':_0x2640e4(0x106),'params':_0xf6a80b},_0x1ddfbb=this['cursorInfo'];for(const [_0x3b503e,_0x1f5ced]of _0x1ddfbb){const _0x341f0a={'id':_0x2640e4(0x106),'params':{'unitId':this[_0x2640e4(0x249)],'actions':null,'textRanges':_0x1f5ced[_0x2640e4(0x11d)]}},_0x3e99b7=this[_0x2640e4(0x16d)][_0x2640e4(0x260)](_0x3f6d4d,_0x341f0a,!0x1);if(_0x3ff0c5(_0x3e99b7))throw _0x3e99b7['error'];_0x1ddfbb[_0x2640e4(0x239)](_0x3b503e,{..._0x1f5ced,'ranges':_0x3e99b7[_0x2640e4(0x21e)]['params'][_0x2640e4(0x1a2)]});}queueMicrotask(()=>{const _0x4f84f5=_0x2640e4;this['_cursorInfo$'][_0x4f84f5(0x1e1)](_0x1ddfbb);});})));}['_onCursorUpdate'](_0x291b15){const _0x1960bf=_0x10cc18;var _0x59eb20,_0x5e0340;const {memberID:_0x3787d6,selection:_0x33307f}=_0x291b15[_0x1960bf(0x1e0)],_0x4774bc=Ai(_0x33307f),_0x1ff1e5=(_0x5e0340=(_0x59eb20=this[_0x1960bf(0x2a7)]['getMember'](this[_0x1960bf(0x249)],_0x3787d6))==null?void 0x0:_0x59eb20[_0x1960bf(0x27a)])!=null?_0x5e0340:_0x1960bf(0x27e),_0x5dcc5f={'color':this[_0x1960bf(0x177)][_0x1960bf(0x13f)](_0x3787d6),'name':_0x1ff1e5,'ranges':_0x4774bc},_0x210b0a=this[_0x1960bf(0xe8)];_0x210b0a['set'](_0x3787d6,_0x5dcc5f),this[_0x1960bf(0x328)][_0x1960bf(0x1e1)](_0x210b0a);}[_0x10cc18(0x287)](_0x185a96){const _0x5a5fe4=_0x10cc18,{memberID:_0x645ff0}=_0x185a96['data'],_0x2c9e8a=this[_0x5a5fe4(0xe8)];_0x2c9e8a['delete'](_0x645ff0),this[_0x5a5fe4(0x328)]['next'](_0x2c9e8a);}['_toggleOnline'](){const _0x3128f1=_0x10cc18;var _0x2210fa;if(this[_0x3128f1(0x2b6)]=!0x0,((_0x2210fa=this['_univerInstanceService'][_0x3128f1(0x167)]())==null?void 0x0:_0x2210fa[_0x3128f1(0x25a)]())!==this[_0x3128f1(0x249)])return;const _0x5dc587=this[_0x3128f1(0xf0)][_0x3128f1(0x127)](_0x196312)[_0x3128f1(0x1d8)]();Array[_0x3128f1(0x2d1)](_0x5dc587)&&_0x5dc587[_0x3128f1(0xf9)]>0x0&&this[_0x3128f1(0x22f)](_0x5dc587);}[_0x10cc18(0xfb)](){const _0xd10f4d=_0x10cc18;this[_0xd10f4d(0x2b6)]=!0x1;}};xe=wi([A(0x2,_0x2c9f2f(_0x3955fb)),A(0x3,_0x2c9f2f(Ke)),A(0x4,_0x2c9f2f(_0xf95f76)),A(0x5,_0x2c9f2f(ze)),A(0x6,_0x447d81),A(0x7,_0x631d26),A(0x8,_0x526fee)],xe);var xi=Object[_0x10cc18(0x1ea)],Bi=(_0x5a1623,_0x1bc5bc,_0x43a4e5,_0x4b2a5d)=>{const _0x56f50c=_0x10cc18;for(var _0x228745=_0x4b2a5d>0x1?void 0x0:_0x4b2a5d?xi(_0x1bc5bc,_0x43a4e5):_0x1bc5bc,_0x3c21fb=_0x5a1623[_0x56f50c(0xf9)]-0x1,_0x5a56de;_0x3c21fb>=0x0;_0x3c21fb--)(_0x5a56de=_0x5a1623[_0x3c21fb])&&(_0x228745=_0x5a56de(_0x228745)||_0x228745);return _0x228745;},B=(_0x3c6228,_0x584fb6)=>(_0x4dfb40,_0x178084)=>_0x584fb6(_0x4dfb40,_0x178084,_0x3c6228);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x34d026=[],_0x473893=!0x1;return _0x599f40=>{_0x34d026['push'](_0x599f40),_0x473893||(_0x473893=!0x0,setTimeout(()=>{const _0x577561=_0x58c2;_0x34d026[_0x577561(0x12c)](_0x40ec8b=>_0x40ec8b()),_0x34d026=[],_0x473893=!0x1;}));};};let Be=class extends _0x460db8{constructor(_0x4bb8ba,_0x1d4859,_0x4ed454,_0x1a77ce,_0x33fa68,_0x53caa0,_0x5161f8,_0x15b078){const _0x202a8f=_0x10cc18;super(),_(this,_0x202a8f(0x2b6),!0x1),_(this,_0x202a8f(0x25e),!0x1),_(this,'_cursorInfo$',new _0x1ced39(new Map())),_(this,'cursorInfo$',this[_0x202a8f(0x328)]['asObservable']()),_(this,_0x202a8f(0x21f),new _0x1ced39([])),_(this,_0x202a8f(0xe9),this[_0x202a8f(0x21f)]['pipe'](_0x3be16c(Fi))),_(this,'_updateLocalCursor',_0x51b589((_0x5b18f9,_0x37cd3f)=>{const _0x1c9449=_0x202a8f,_0xc51dd5={'eventID':_0x56f5f5[_0x1c9449(0x24b)],'data':{'unitID':this[_0x1c9449(0x249)],'memberID':this[_0x1c9449(0x17d)]['getMemberID'](),'selection':_0x5ebf47(_0x5b18f9,_0x37cd3f[_0x1c9449(0x315)])}};this[_0x1c9449(0x17d)][_0x1c9449(0x15b)](_0xc51dd5,this[_0x1c9449(0x249)]);},ki)),(this[_0x202a8f(0x249)]=_0x4bb8ba,this['_session']=_0x1d4859,this[_0x202a8f(0xf0)]=_0x4ed454,this['_colorAssignService']=_0x1a77ce,this[_0x202a8f(0x2a7)]=_0x33fa68,this[_0x202a8f(0x301)]=_0x53caa0,this[_0x202a8f(0x29c)]=_0x5161f8,this[_0x202a8f(0x195)]=_0x15b078);}get[_0x10cc18(0xe8)](){const _0x13f51b=_0x10cc18;return this['_cursorInfo$'][_0x13f51b(0x27f)]();}get['roomMembers'](){const _0x444e87=_0x10cc18;return this[_0x444e87(0x21f)][_0x444e87(0x27f)]();}[_0x10cc18(0x233)](){const _0x2de668=_0x10cc18;super[_0x2de668(0x233)](),this[_0x2de668(0x328)][_0x2de668(0x1e1)](new Map()),this[_0x2de668(0x328)][_0x2de668(0x309)](),this[_0x2de668(0x21f)]['next']([]),this[_0x2de668(0x21f)][_0x2de668(0x309)]();}[_0x10cc18(0x225)](){const _0x361300=_0x10cc18;this[_0x361300(0x25e)]||(this[_0x361300(0x25e)]=!0x0,this[_0x361300(0x17d)][_0x361300(0x1a9)][_0x361300(0x297)](_0x55bd62(this[_0x361300(0x20f)]))[_0x361300(0x288)](_0x180585=>{const _0x56de3e=_0x361300;_0x180585===_0x756bff['ONLINE']?this[_0x56de3e(0x200)]():this[_0x56de3e(0xfb)]();}),this['_session']['event$'][_0x361300(0x297)](_0x55bd62(this['dispose$']))[_0x361300(0x288)](_0x2f1e85=>{const _0x299aaa=_0x361300,_0x3e9688=_0x2f1e85[_0x299aaa(0x277)];_0x3e9688===_0x56f5f5[_0x299aaa(0x24b)]&&this[_0x299aaa(0x28e)](_0x2f1e85),_0x3e9688===_0x56f5f5['USERS_LEAVE']&&this[_0x299aaa(0x287)](_0x2f1e85);}),this['_onRefRangeChange'](),this[_0x361300(0x1bc)](this['_commandService'][_0x361300(0x164)](_0x420df2=>{const _0x1d6cef=_0x361300;if(this[_0x1d6cef(0x2b6)]&&_0x420df2['id']===_0x3c2d3f['id']&&_0x420df2[_0x1d6cef(0x151)][_0x1d6cef(0x16a)]===this[_0x1d6cef(0x249)]){const _0x5e5a81=_0x420df2[_0x1d6cef(0x151)];this[_0x1d6cef(0x22f)](_0x5e5a81[_0x1d6cef(0x21c)],_0x5e5a81[_0x1d6cef(0x159)][0x0]);}})));}[_0x10cc18(0x28e)](_0x16bfca){const _0x323d8b=_0x10cc18;var _0x280eab,_0x357285;const {memberID:_0x292f39,selection:_0x58f555}=_0x16bfca[_0x323d8b(0x1e0)],{sheetName:_0x60f871,range:_0xe6d72f}=_0xaa972c(_0x58f555),_0x32eb1b={'name':(_0x357285=(_0x280eab=this[_0x323d8b(0x2a7)]['getMember'](this['unitID'],_0x292f39))==null?void 0x0:_0x280eab[_0x323d8b(0x27a)])!=null?_0x357285:_0x323d8b(0x27e),'range':this['_getMergeRange'](_0x60f871,_0xe6d72f),'sheetID':_0x60f871,'color':this[_0x323d8b(0x177)]['assignAColorForMemberID'](_0x292f39),'selection':_0x58f555},_0x304fc5=this['cursorInfo'];_0x304fc5[_0x323d8b(0x239)](_0x292f39,_0x32eb1b),this[_0x323d8b(0x328)][_0x323d8b(0x1e1)](_0x304fc5);}['_onCursorDelete'](_0x1f7364){const _0x46cc1e=_0x10cc18,{memberID:_0x5b2b06}=_0x1f7364[_0x46cc1e(0x1e0)],_0x3f0e5e=this[_0x46cc1e(0xe8)];_0x3f0e5e['delete'](_0x5b2b06),this['_cursorInfo$'][_0x46cc1e(0x1e1)](_0x3f0e5e);}['_getMergeRange'](_0x24646d,_0x278fc8){const _0x19ee48=_0x10cc18;var _0x538625,_0x5587dd;const _0x31395e=(_0x5587dd=(_0x538625=this[_0x19ee48(0x301)][_0x19ee48(0x13c)](this['unitID']))==null?void 0x0:_0x538625[_0x19ee48(0x21d)](_0x24646d))==null?void 0x0:_0x5587dd[_0x19ee48(0x2c7)]();return(_0x31395e==null?void 0x0:_0x31395e[_0x19ee48(0x23b)](_0x21d6a9=>_0x40c7c0[_0x19ee48(0x173)](_0x21d6a9,_0x278fc8)))||_0x278fc8;}[_0x10cc18(0x184)](){const _0x365a09=_0x10cc18,_0x24b7a9=new _0x5a6462(),_0x5c8193=Hi(),_0x2b16fa=()=>{const _0x1bc005=_0x58c2;_0x24b7a9[_0x1bc005(0x233)]();const _0x492bc7=(_0x3c9cb0,_0x452062,_0x5ced80,_0x8865e6)=>{const _0x106601=_0x1bc005;let _0x1f1946=[];switch(_0x3c9cb0['id']){case _0xe50d17[_0x106601(0x15c)]:{_0x1f1946=_0xc34664(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2da)]:{_0x1f1946=_0x3a245f(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x216)]:{_0x1f1946=_0x3b58f5(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2fa)]:{_0x1f1946=_0x3177b4(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17['InsertRangeMoveRightCommandId']:{_0x1f1946=_0x1916d7(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17['InsertRowCommandId']:{_0x1f1946=_0x524712(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x1c0)]:{_0x1f1946=_0x379eb2(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x201)]:{_0x1f1946=_0x27e994(_0x3c9cb0,_0x8865e6);break;}case _0xe50d17[_0x106601(0x2ba)]:{_0x1f1946=_0x11bbdd(_0x3c9cb0,_0x8865e6);break;}}const _0x556490=_0x178978(_0x1f1946,_0x8865e6),_0x5328fa=this['cursorInfo'][_0x106601(0x127)](_0x452062);if(_0x5328fa&&_0x556490){const _0x14f963={..._0x5328fa,'range':_0x556490};this[_0x106601(0xe8)][_0x106601(0x239)](_0x452062,_0x14f963),_0x5c8193(()=>{const _0xe2da53=_0x106601,_0x40455b=this['_refRangeService'][_0xe2da53(0x1de)](_0x556490,_0x511074=>(_0x40455b[_0xe2da53(0x233)](),_0x492bc7(_0x511074,_0x452062,_0x5ced80,_0x556490)));_0x24b7a9[_0xe2da53(0xff)](_0x40455b);});}return{'redos':[],'undos':[]};};this[_0x1bc005(0xe8)][_0x1bc005(0x12c)]((_0x5e41a6,_0x1fee50)=>{const _0x457200=_0x1bc005,{range:_0x335f35,sheetID:_0x4d85d0}=_0x5e41a6,_0xc863b8=this[_0x457200(0x195)][_0x457200(0x1de)](_0x335f35,_0x132be=>(_0xc863b8[_0x457200(0x233)](),_0x492bc7(_0x132be,_0x1fee50,_0x4d85d0,_0x335f35)));_0x24b7a9[_0x457200(0xff)](_0xc863b8);});};this[_0x365a09(0x1bc)](_0x555679(this[_0x365a09(0x328)]['subscribe'](()=>{_0x2b16fa();})));}[_0x10cc18(0x200)](){const _0x50cd6f=_0x10cc18;var _0x3ca18e,_0x2a0a1e;if(this[_0x50cd6f(0x2b6)]=!0x0,((_0x3ca18e=this['_univerInstanceService'][_0x50cd6f(0x167)]())==null?void 0x0:_0x3ca18e[_0x50cd6f(0x25a)]())!==this[_0x50cd6f(0x249)])return;const _0x3b781c=(_0x2a0a1e=this[_0x50cd6f(0xf0)][_0x50cd6f(0x127)](_0xc9e973)['getCurrentSelections']())==null?void 0x0:_0x2a0a1e[0x0],_0x3383c1=this[_0x50cd6f(0x301)][_0x50cd6f(0x30d)](_0x5045e8['UNIVER_SHEET'])[_0x50cd6f(0x24e)]();_0x3b781c&&_0x3383c1&&this['_updateLocalCursor'](_0x3383c1[_0x50cd6f(0x327)](),_0x3b781c);}[_0x10cc18(0xfb)](){const _0xd05f8d=_0x10cc18;this[_0xd05f8d(0x2b6)]=!0x1;}};Be=Bi([B(0x2,_0x2c9f2f(_0x3955fb)),B(0x3,_0x2c9f2f(Ke)),B(0x4,_0x2c9f2f(_0xf95f76)),B(0x5,_0x631d26),B(0x6,_0x526fee),B(0x7,_0x2c9f2f(_0x4afbe7))],Be);var Yi=Object[_0x10cc18(0x1ea)],Wi=(_0x2bc50a,_0x1f21cd,_0x350947,_0x4f2b27)=>{for(var _0x16e86c=_0x4f2b27>0x1?void 0x0:_0x4f2b27?Yi(_0x1f21cd,_0x350947):_0x1f21cd,_0x55ceeb=_0x2bc50a['length']-0x1,_0x479cb9;_0x55ceeb>=0x0;_0x55ceeb--)(_0x479cb9=_0x2bc50a[_0x55ceeb])&&(_0x16e86c=_0x479cb9(_0x16e86c)||_0x16e86c);return _0x16e86c;},Ce=(_0x57bc08,_0x5cc3ee)=>(_0x542fc7,_0x1a1848)=>_0x5cc3ee(_0x542fc7,_0x1a1848,_0x57bc08);let H=class extends _0x460db8{constructor(_0xa3c911,_0x7ea805,_0x297687){const _0x37e8e3=_0x10cc18;super(),_(this,_0x37e8e3(0x208),new Map()),_(this,_0x37e8e3(0x149),new _0x495c27()),(this[_0x37e8e3(0x301)]=_0xa3c911,this['_injector']=_0x7ea805,this[_0x37e8e3(0xf6)]=_0x297687,this['_init']());}['dispose'](){const _0x33184d=_0x10cc18;super[_0x33184d(0x233)](),this[_0x33184d(0x149)][_0x33184d(0x309)](),this[_0x33184d(0x208)][_0x33184d(0x12c)](_0x5d2c38=>_0x5d2c38[_0x33184d(0x233)]());}['getCollabCursors$'](_0x28fb90){const _0x73c0ea=_0x10cc18;return this[_0x73c0ea(0x208)][_0x73c0ea(0x2bd)](_0x28fb90)?this[_0x73c0ea(0x208)][_0x73c0ea(0x127)](_0x28fb90)[_0x73c0ea(0x2bb)]:this[_0x73c0ea(0x149)]['pipe'](_0x12a7d2(_0x4f3f82=>_0x4f3f82['unitID']===_0x28fb90),_0x5e120f(_0x418ba0=>_0x418ba0['cursorInfo$']));}['_init'](){const _0x565a96=_0x10cc18;this[_0x565a96(0x301)][_0x565a96(0x2f5)](_0x5045e8[_0x565a96(0x1f7)])['pipe'](_0x55bd62(this[_0x565a96(0x20f)]))[_0x565a96(0x288)](async _0x3918db=>{const _0x4c8128=_0x565a96,_0x27d827=_0x3918db[_0x4c8128(0x25a)](),_0x5a6bda=await this[_0x4c8128(0x23d)](_0x27d827);this[_0x4c8128(0x149)][_0x4c8128(0x1e1)](_0x5a6bda),this[_0x4c8128(0x208)]['set'](_0x27d827,_0x5a6bda);}),this[_0x565a96(0x301)][_0x565a96(0x2f5)](_0x5045e8['UNIVER_DOC'])[_0x565a96(0x297)](_0x55bd62(this[_0x565a96(0x20f)]))[_0x565a96(0x297)](_0x12a7d2(_0x5ef585=>!_0x5ef585[_0x565a96(0x25a)]()['startsWith']('__')))[_0x565a96(0x288)](async _0x5aa716=>{const _0x186b9e=_0x565a96,_0x3695e1=_0x5aa716[_0x186b9e(0x25a)](),_0x11ceec=await this[_0x186b9e(0x2f8)](_0x3695e1);this[_0x186b9e(0x149)][_0x186b9e(0x1e1)](_0x11ceec),this[_0x186b9e(0x208)][_0x186b9e(0x239)](_0x3695e1,_0x11ceec);}),_0x153e90(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5045e8['UNIVER_DOC']),this[_0x565a96(0x301)][_0x565a96(0x1f5)](_0x5045e8['UNIVER_SHEET']))['pipe'](_0x55bd62(this[_0x565a96(0x20f)]))['subscribe'](_0x390ced=>{const _0x230285=_0x565a96,_0x499d10=_0x390ced[_0x230285(0x25a)](),_0x588299=this[_0x230285(0x208)][_0x230285(0x127)](_0x499d10);_0x588299&&(_0x588299[_0x230285(0x233)](),this[_0x230285(0x208)][_0x230285(0x264)](_0x499d10));});}async[_0x10cc18(0x23d)](_0x3bc658){const _0x355154=_0x10cc18,_0x11b944=await this[_0x355154(0xf6)][_0x355154(0x2e8)](_0x3bc658),_0x77159d=this[_0x355154(0xf0)]['createInstance'](Be,_0x3bc658,_0x11b944);return _0x77159d[_0x355154(0x225)](),_0x77159d;}async[_0x10cc18(0x2f8)](_0x383db6){const _0x242c7b=_0x10cc18,_0x9a005=await this[_0x242c7b(0xf6)][_0x242c7b(0x2e8)](_0x383db6),_0x93bcd=this[_0x242c7b(0xf0)][_0x242c7b(0x154)](xe,_0x383db6,_0x9a005);return _0x93bcd[_0x242c7b(0x225)](),_0x93bcd;}};H=Wi([Ce(0x0,_0x631d26),Ce(0x1,_0x2c9f2f(_0x3955fb)),Ce(0x2,_0x2c9f2f(_0x1abc06))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x5c043e,_0xa0f5d6){const _0x599c63=_0x10cc18;let {radius:_0x897ebc,width:_0x8c4328,height:_0x142d15}=_0xa0f5d6;_0x897ebc=_0x897ebc!=null?_0x897ebc:0x0,_0x8c4328=_0x8c4328!=null?_0x8c4328:0x1e,_0x142d15=_0x142d15!=null?_0x142d15:0x1e;let _0x3aa4de=0x0,_0x5ae3cb=0x0,_0x3ea7a2=0x0;_0x3aa4de=_0x5ae3cb=_0x3ea7a2=Math[_0x599c63(0x240)](_0x897ebc,_0x8c4328/0x2,_0x142d15/0x2),_0x5c043e['beginPath'](),_0x5c043e[_0x599c63(0x237)](_0x3aa4de,0x0),_0x5c043e[_0x599c63(0x31a)](_0x8c4328-_0x5ae3cb,0x0),_0x5c043e['arc'](_0x8c4328-_0x5ae3cb,_0x5ae3cb,_0x5ae3cb,Math['PI']*0x3/0x2,0x0,!0x1),_0x5c043e[_0x599c63(0x31a)](_0x8c4328,_0x142d15-_0x3ea7a2),_0x5c043e[_0x599c63(0x16b)](_0x8c4328-_0x3ea7a2,_0x142d15-_0x3ea7a2,_0x3ea7a2,0x0,Math['PI']/0x2,!0x1),_0x5c043e[_0x599c63(0x31a)](0x0,_0x142d15),_0x5c043e['lineTo'](0x0,_0x3aa4de),_0x5c043e[_0x599c63(0x16b)](_0x3aa4de,_0x3aa4de,_0x3aa4de,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5c043e[_0x599c63(0xed)](),_0xa0f5d6['fill']&&(_0x5c043e[_0x599c63(0x211)](),_0x5c043e['fillStyle']=_0xa0f5d6['fill'],_0xa0f5d6[_0x599c63(0xf1)]===_0x599c63(0x29f)?_0x5c043e[_0x599c63(0x130)](_0x599c63(0x29f)):_0x5c043e[_0x599c63(0x130)](),_0x5c043e[_0x599c63(0x32e)]());}class Ee extends _0x28bace{constructor(_0x552ba7,_0x224522){const _0x7fc531=_0x10cc18;super(_0x552ba7,_0x224522),_(this,_0x7fc531(0x1e5)),_(this,'text'),(this[_0x7fc531(0x1e5)]=_0x224522==null?void 0x0:_0x224522['color'],this[_0x7fc531(0x117)]=_0x224522==null?void 0x0:_0x224522[_0x7fc531(0x117)]);}static[_0x10cc18(0x285)](_0x761801,_0x45fddc){const _0x22d59f=_0x10cc18,{text:_0x1232c7,color:_0x241547}=_0x45fddc;_0x761801[_0x22d59f(0x211)](),_0x761801[_0x22d59f(0x2f4)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x806c61=_0x761801[_0x22d59f(0x2db)](_0x1232c7)['width'],_0x111ac9=Math[_0x22d59f(0x240)](_0x806c61+0x2*Re,at);Vi(_0x761801,{'height':Q,'radius':0x4,'width':_0x111ac9,'fill':_0x241547}),_0x761801[_0x22d59f(0x217)]=_0x22d59f(0x32b);const _0xcf3420=Re,_0x492173=Q-ji,_0x164288=at-0x2*Re;if(_0x806c61>_0x164288){let _0x3b1e32='',_0x33f493=0x0;for(const _0x4dd338 of _0x1232c7){const _0x2cb55f=_0x761801[_0x22d59f(0x2db)](_0x4dd338)[_0x22d59f(0x320)];if(_0x33f493+_0x2cb55f<=_0x164288-_0x761801[_0x22d59f(0x2db)](_0x22d59f(0x1f4))[_0x22d59f(0x320)])_0x3b1e32+=_0x4dd338,_0x33f493+=_0x2cb55f;else{_0x3b1e32+='...';break;}}_0x761801[_0x22d59f(0x241)](_0x3b1e32,_0xcf3420,_0x492173);}else _0x761801[_0x22d59f(0x241)](_0x1232c7,_0xcf3420,_0x492173);_0x761801[_0x22d59f(0x32e)]();}[_0x10cc18(0x261)](_0x467208){Ee['drawWith'](_0x467208,this);}}const De=_0x10cc18(0x2a1),Xi=_0x10cc18(0x12e),Gi=_0x10cc18(0x14e),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x10cc18(0x188);class ct{constructor(_0x32714c,_0x4e4490,_0xea590d,_0x55f794){const _0x36f487=_0x10cc18;_(this,_0x36f487(0x254),[]),_(this,'_anchor',null),_(this,_0x36f487(0xea),null),_(this,_0x36f487(0x1b8),null),_(this,'_hideTimer',null),_(this,_0x36f487(0x16e),null),(this[_0x36f487(0x2fe)]=_0x32714c,this[_0x36f487(0x155)]=_0x4e4490,this['_docSkeleton']=_0xea590d,this[_0x36f487(0x259)]=_0x55f794,this['_render']());}set[_0x10cc18(0x2a5)](_0x5f13b6){const _0x2b6943=_0x10cc18;_0x5f13b6?(this[_0x2b6943(0x1b8)]&&this['_anchorDot'][_0x2b6943(0x28b)](),this[_0x2b6943(0xea)]&&this[_0x2b6943(0xea)]['show']()):(this[_0x2b6943(0x1b8)]&&this[_0x2b6943(0x1b8)]['show'](),this[_0x2b6943(0xea)]&&this[_0x2b6943(0xea)][_0x2b6943(0x28b)]());}[_0x10cc18(0x233)](){const _0x422e6a=_0x10cc18;for(const _0x5a6e12 of this[_0x422e6a(0x254)])_0x5a6e12['dispose']();this[_0x422e6a(0xea)]&&this['_textBubble'][_0x422e6a(0x233)](),this[_0x422e6a(0x1b8)]&&this[_0x422e6a(0x1b8)]['dispose'](),this[_0x422e6a(0x1b7)]&&this[_0x422e6a(0x1b7)][_0x422e6a(0x233)](),this['_eventUnsubscribe']&&this[_0x422e6a(0x16e)]();}[_0x10cc18(0x1e2)](){const _0x1eb34d=_0x10cc18;var _0x14a0db;const {_docSkeleton:_0x146965,_document:_0x2bdef0}=this,{color:_0x41c1d9,name:_0x2c821a,ranges:_0x2f4f30}=this['_cursor'],_0x74b5e0=_0x2bdef0[_0x1eb34d(0x1c4)](),{docsLeft:_0x410c3e,docsTop:_0x166715}=_0x74b5e0,_0xbdf07=new _0x3f6a22(_0x74b5e0,_0x146965);for(const {startOffset:_0x7a5156,endOffset:_0x1dc063,rangeType:_0x120223,segmentId:_0x4dd1ae,segmentPage:_0x4d085c,collapsed:_0x32cb2c,isActive:_0x3c23a1}of _0x2f4f30){const _0x4c0c36=_0x146965['findNodePositionByCharIndex'](_0x7a5156,!0x0,_0x4dd1ae,_0x4d085c);let _0x45b6e5=_0x146965[_0x1eb34d(0x19f)](_0x1dc063,!0x0,_0x4dd1ae,_0x4d085c);if(_0x45b6e5==null&&(_0x45b6e5=_0x146965[_0x1eb34d(0x19f)](_0x1dc063-0x1,!0x1,_0x4dd1ae,_0x4d085c)),_0x3c23a1){const {contentBoxPointGroup:_0x44f803}=_0xbdf07[_0x1eb34d(0x110)](_0x45b6e5,_0x45b6e5);if(_0x44f803[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x289)](_0x41c1d9,_0x44f803,_0x410c3e,_0x166715,_0x2c821a),this[_0x1eb34d(0x16e)]=this[_0x1eb34d(0x232)]();}if(_0x4c0c36&&_0x45b6e5){if(_0x120223===_0x22acc['RECT']){const _0x4fca71=new _0x4973b1(_0x74b5e0,_0x146965),{pointGroup:_0x3cbc59}=(_0x14a0db=_0x4fca71[_0x1eb34d(0x110)](_0x4c0c36,_0x45b6e5))!=null?_0x14a0db:{};if(_0x3cbc59==null||_0x3cbc59[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x133)](_0x41c1d9,_0x3cbc59,_0x410c3e,_0x166715);}else{if(!_0x32cb2c){const {borderBoxPointGroup:_0xc0056d}=_0xbdf07['getRangePointData'](_0x4c0c36,_0x45b6e5);if(_0xc0056d[_0x1eb34d(0xf9)]===0x0)continue;this[_0x1eb34d(0x176)](_0x41c1d9,_0xc0056d,_0x410c3e,_0x166715);}}}}}[_0x10cc18(0x289)](_0xe8b98d,_0x57f570,_0x4e8479,_0xbeaf50,_0x1e99a6){const _0x3c9161=_0x10cc18,_0x12c95c=this[_0x3c9161(0x13d)](_0x57f570),{left:_0x4fa335,top:_0x4875c0,height:_0x177b51}=_0x12c95c,_0x400bd7=this['_getScale'](),_0x178504=zi/_0x400bd7,_0x336a9d=new _0x2dfad6(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50,'height':_0x177b51,'width':Ki,'fill':_0xe8b98d||_0x44dbc(_0x10fc5a[_0x3c9161(0x214)],0x0),'strokeWidth':_0x178504,'stroke':Ji,'evented':!0x0});this[_0x3c9161(0x1b7)]=_0x336a9d,this[_0x3c9161(0x155)]['addObject'](_0x336a9d,_0x531506);const _0x47a627=new _0x2dfad6(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50-be/0x2,'height':be,'width':be,'fill':_0xe8b98d||_0x44dbc(_0x10fc5a['black'],0x0),'strokeWidth':0x0,'stroke':_0xe8b98d||_0x44dbc(_0x10fc5a['black'],0x0),'evented':!0x1});this[_0x3c9161(0x1b8)]=_0x47a627,this[_0x3c9161(0x155)][_0x3c9161(0x14c)](_0x47a627,_0x531506);const _0x5d09f3=new Ee(De+_0x5236ab(z),{'left':_0x4fa335+_0x4e8479-_0x178504,'top':_0x4875c0+_0xbeaf50-Q,'text':_0x1e99a6,'color':_0xe8b98d});this[_0x3c9161(0xea)]=_0x5d09f3,this[_0x3c9161(0x155)][_0x3c9161(0x14c)](_0x5d09f3,_0x531506),this['_hover']=!0x1;}['_handleHover'](){const _0x3dd158=_0x10cc18,_0x4d490e=this[_0x3dd158(0x1b7)][_0x3dd158(0x2df)][_0x3dd158(0x2c4)](()=>{const _0x5b7c11=_0x3dd158;this[_0x5b7c11(0x2a5)]=!0x0;}),_0x13be7e=this[_0x3dd158(0x1b7)][_0x3dd158(0x26e)][_0x3dd158(0x2c4)](()=>{const _0x57145d=_0x3dd158;this[_0x57145d(0x18f)]&&clearTimeout(this[_0x57145d(0x18f)]),this[_0x57145d(0x18f)]=setTimeout(()=>{const _0x9ed6bd=_0x57145d;this[_0x9ed6bd(0x2a5)]=!0x1;},0x7d0);});return()=>{const _0x9a2a5c=_0x3dd158;_0x4d490e[_0x9a2a5c(0x2fd)](),_0x13be7e[_0x9a2a5c(0x2fd)]();};}['_drawTextRange'](_0x55556f,_0x3d5fdf,_0x16f1ca,_0x1417b8){const _0x4856dc=_0x10cc18,_0x2b6374=new _0x1a8ee3(_0x55556f)['setAlpha'](0.2)[_0x4856dc(0x316)](),_0x169ec0=new _0x2a7a95(Xi+_0x5236ab(z),{'pointsGroup':_0x3d5fdf,'fill':_0x2b6374||_0x44dbc(_0x10fc5a[_0x4856dc(0x214)],0.2),'left':_0x16f1ca,'top':_0x1417b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4856dc(0x254)]['push'](_0x169ec0),this[_0x4856dc(0x155)]['addObject'](_0x169ec0,_0x531506);}['_drawRectRange'](_0x458807,_0x1244ce,_0x406ad8,_0x37c77f){const _0x397297=_0x10cc18,_0x2bba6d=new _0x1a8ee3(_0x458807)[_0x397297(0x2a3)](0.2)[_0x397297(0x316)](),_0x4fb0b3=new _0x2a7a95(Gi+_0x5236ab(z),{'pointsGroup':_0x1244ce,'fill':_0x2bba6d||_0x44dbc(_0x10fc5a[_0x397297(0x214)],0.2),'left':_0x406ad8,'top':_0x37c77f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x397297(0x254)][_0x397297(0x1ed)](_0x4fb0b3),this['_scene'][_0x397297(0x14c)](_0x4fb0b3,_0x531506);}[_0x10cc18(0x13d)](_0x1fec42){const _0x165c78=_0x1fec42[0x0],_0x610946=_0x165c78[0x0],_0x4e56ac=_0x165c78[0x2],{x:_0x24a990,y:_0x3acee6}=_0x610946,{x:_0x5bfb35,y:_0x5c1bc9}=_0x4e56ac;return{'left':_0x24a990,'top':_0x3acee6,'width':_0x5bfb35-_0x24a990,'height':_0x5c1bc9-_0x3acee6};}['_getScale'](){const _0x373f93=_0x10cc18,{scaleX:_0x3cf3ac,scaleY:_0x15eb97}=this[_0x373f93(0x155)][_0x373f93(0x157)]();return Math['max'](_0x3cf3ac,_0x15eb97);}}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x3302e9,_0x27faca,_0x5cbdc7,_0x2912c3)=>{const _0xced644=_0x10cc18;for(var _0x2594f2=_0x2912c3>0x1?void 0x0:_0x2912c3?Zi(_0x27faca,_0x5cbdc7):_0x27faca,_0x39b844=_0x3302e9[_0xced644(0xf9)]-0x1,_0x4add4d;_0x39b844>=0x0;_0x39b844--)(_0x4add4d=_0x3302e9[_0x39b844])&&(_0x2594f2=_0x4add4d(_0x2594f2)||_0x2594f2);return _0x2594f2;},ie=(_0xa1a12a,_0x2bdbc0)=>(_0x3d4e3b,_0x38f83d)=>_0x2bdbc0(_0x3d4e3b,_0x38f83d,_0xa1a12a);let Fe=class extends _0x460db8{constructor(_0x8fde48,_0x810d11,_0x265390,_0x43256d,_0xd822fb){const _0x5f1e4b=_0x10cc18;super(),_(this,_0x5f1e4b(0x272),[]),_(this,'_cursors',[]),(this[_0x5f1e4b(0x187)]=_0x8fde48,this[_0x5f1e4b(0x10b)]=_0x810d11,this['_collabCursorController']=_0x265390,this[_0x5f1e4b(0x29c)]=_0x43256d,this[_0x5f1e4b(0x11f)]=_0xd822fb,this[_0x5f1e4b(0x25e)]());}['_init'](){const _0x3dac2f=_0x10cc18,_0x4f6aff=this[_0x3dac2f(0x187)][_0x3dac2f(0x16a)],_0x2ef8e9=this[_0x3dac2f(0x10b)];this[_0x3dac2f(0x1bc)](_0x5c05c1([this[_0x3dac2f(0x1d2)][_0x3dac2f(0x189)](_0x4f6aff),this[_0x3dac2f(0x11f)]['currentTheme$']])[_0x3dac2f(0x297)](_0x47b623(([_0x4a02cd,_0x194490])=>({'skeleton':_0x2ef8e9[_0x3dac2f(0x119)](),'cursors':[..._0x4a02cd['values']()][_0x3dac2f(0xfa)](_0x100a2a=>({..._0x100a2a,'color':this[_0x3dac2f(0x11f)][_0x3dac2f(0x2b0)](_0x100a2a[_0x3dac2f(0x1e5)])}))})))[_0x3dac2f(0x288)](_0x28a8c5=>{const _0x52a3f0=_0x3dac2f;if(this[_0x52a3f0(0x10d)](),_0x28a8c5){const {skeleton:_0x3edfb5,cursors:_0x5c3ca1}=_0x28a8c5;this[_0x52a3f0(0x2d7)](_0x3edfb5,_0x5c3ca1);}})),this[_0x3dac2f(0x24f)](),this[_0x3dac2f(0x207)]();}[_0x10cc18(0x2d7)](_0x9a82b6,_0x3f18db){const _0x2d7862=_0x10cc18,{scene:_0x64ffb6,mainComponent:_0x505401}=this[_0x2d7862(0x187)],_0x4e5207=_0x3f18db[_0x2d7862(0x2fb)](_0x2c7ddc=>new ct(_0x2c7ddc,_0x64ffb6,_0x9a82b6,_0x505401));this[_0x2d7862(0x272)]=_0x4e5207,this[_0x2d7862(0x2e9)]=_0x3f18db;}[_0x10cc18(0xe5)](){const _0x28a722=_0x10cc18;this['_removeCollabCursors']();const {scene:_0x58b5c5,mainComponent:_0x5c2be1}=this[_0x28a722(0x187)],_0x39859f=this[_0x28a722(0x10b)][_0x28a722(0x119)](),_0x5818a3=this['_cursors'][_0x28a722(0x2fb)](_0x690e53=>new ct(_0x690e53,_0x58b5c5,_0x39859f,_0x5c2be1));this[_0x28a722(0x272)]=_0x5818a3;}[_0x10cc18(0x10d)](){const _0x26e20e=_0x10cc18;this['_cursorShapes'][_0x26e20e(0x12c)](_0x1f0114=>_0x1f0114[_0x26e20e(0x233)]()),this['_cursorShapes']=[];}[_0x10cc18(0x207)](){const _0x51dab9=_0x10cc18,_0x4dec36=[_0x198811['id']];this[_0x51dab9(0x1bc)](this[_0x51dab9(0x29c)][_0x51dab9(0x164)](_0x20a7ec=>{const _0x224ba8=_0x51dab9;_0x4dec36[_0x224ba8(0x231)](_0x20a7ec['id'])&&_0x20a7ec['params']['unitId']===this[_0x224ba8(0x187)][_0x224ba8(0x16a)]&&this[_0x224ba8(0xe5)]();}));}[_0x10cc18(0x24f)](){const _0x2c14f7=_0x10cc18;this[_0x2c14f7(0x1bc)](_0x2b51fa(this[_0x2c14f7(0x187)][_0x2c14f7(0x202)]['onTransformChange$'])[_0x2c14f7(0x297)](_0x3cb932(_0x160482=>_0x160482[_0x2c14f7(0x1ce)]===_0x4c9c8a[_0x2c14f7(0x1fc)]),_0x5756a9(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x2c9f2f(_0x9d459b)),ie(0x2,_0x2c9f2f(H)),ie(0x3,_0x526fee),ie(0x4,_0x2c9f2f(_0x31d312))],Fe);const qi=0x1,en=1.5;class tn extends _0x28bace{constructor(_0x14037f,_0x6a4e50){const _0x224016=_0x10cc18;super(_0x14037f,_0x6a4e50),_(this,_0x224016(0x213)),_(this,_0x224016(0x25f),!0x1),_(this,_0x224016(0x274)),_(this,_0x224016(0x278),''),_(this,_0x224016(0x2b3),_0x224016(0x299)),_(this,_0x224016(0x2ce)),(_0x6a4e50&&this[_0x224016(0x122)](_0x6a4e50),this['onPointerEnter$'][_0x224016(0x2c4)](()=>this[_0x224016(0x122)]({'hovered':!0x0})),this[_0x224016(0x26e)][_0x224016(0x2c4)](()=>this[_0x224016(0x122)]({'hovered':!0x1})));}[_0x10cc18(0x122)](_0x2d086f){const _0x554365=_0x10cc18;var _0x5bc9fc,_0xa9aedd,_0x420879,_0x309937,_0x258cba,_0x59dfc4;this['_color']=(_0x5bc9fc=_0x2d086f[_0x554365(0x1e5)])!=null?_0x5bc9fc:this[_0x554365(0x213)],this[_0x554365(0x25f)]=(_0xa9aedd=_0x2d086f[_0x554365(0x1eb)])!=null?_0xa9aedd:this['_hovered'],this['_range']=(_0x420879=_0x2d086f['range'])!=null?_0x420879:this[_0x554365(0x274)],this[_0x554365(0x278)]=(_0x309937=_0x2d086f[_0x554365(0x27a)])!=null?_0x309937:this['_name'],this[_0x554365(0x2b3)]=(_0x258cba=_0x2d086f[_0x554365(0x246)])!=null?_0x258cba:this['_labelPosition'],this[_0x554365(0x2ce)]=(_0x59dfc4=_0x2d086f[_0x554365(0x108)])!=null?_0x59dfc4:this[_0x554365(0x2ce)],this[_0x554365(0x20e)]({'width':_0x2d086f[_0x554365(0x320)],'height':_0x2d086f['height']});}[_0x10cc18(0x310)](_0x53a791){const _0xf43080=_0x10cc18,{row:_0x44ffb8,column:_0x509269}=_0x53a791;if(_0x44ffb8>=this[_0xf43080(0x274)][_0xf43080(0xf7)]&&_0x44ffb8<=this['_range'][_0xf43080(0x296)]&&_0x509269>=this[_0xf43080(0x274)][_0xf43080(0x280)]&&_0x509269<=this[_0xf43080(0x274)][_0xf43080(0x15f)]){this[_0xf43080(0x122)]({'hovered':!0x0});return;}this[_0xf43080(0x122)]({'hovered':!0x1});}[_0x10cc18(0x1bd)](_0x4f04f4){return!0x1;}[_0x10cc18(0x261)](_0x4cc091){const _0x52a3ff=_0x10cc18;_0x2dfad6[_0x52a3ff(0x285)](_0x4cc091,{'width':this[_0x52a3ff(0x320)],'height':this[_0x52a3ff(0x17a)],'strokeWidth':en,'stroke':this[_0x52a3ff(0x213)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x4cc091[_0x52a3ff(0x211)](),_0x4cc091[_0x52a3ff(0x1ef)](0x1,0x0,0x0,0x1,this[_0x52a3ff(0x320)],this[_0x52a3ff(0x2b3)]==='bottom'?0x0:-Q),Ee[_0x52a3ff(0x285)](_0x4cc091,{'text':this[_0x52a3ff(0x278)],'color':this['_color']}),_0x4cc091[_0x52a3ff(0x32e)]());}}var sn=Object[_0x10cc18(0x1ea)],nn=(_0x3a883b,_0x3ff8e9,_0x17202e,_0x329391)=>{const _0x418071=_0x10cc18;for(var _0x3fe8a5=_0x329391>0x1?void 0x0:_0x329391?sn(_0x3ff8e9,_0x17202e):_0x3ff8e9,_0x1014ed=_0x3a883b[_0x418071(0xf9)]-0x1,_0x1d8579;_0x1014ed>=0x0;_0x1014ed--)(_0x1d8579=_0x3a883b[_0x1014ed])&&(_0x3fe8a5=_0x1d8579(_0x3fe8a5)||_0x3fe8a5);return _0x3fe8a5;},Ne=(_0x503935,_0x1ea326)=>(_0x4b8e5d,_0x4e404c)=>_0x1ea326(_0x4b8e5d,_0x4e404c,_0x503935);const rn=0x1389;let ke=class extends _0x460db8{constructor(_0x9d1720,_0x53187c,_0x3bc7c,_0x103db0){const _0x297507=_0x10cc18;super(),_(this,_0x297507(0x2e9),new Set()),_(this,_0x297507(0x312),null),(this[_0x297507(0x187)]=_0x9d1720,this['_sheetSkeletonManagerService']=_0x53187c,this[_0x297507(0x1d2)]=_0x3bc7c,this[_0x297507(0x11f)]=_0x103db0,this['_init']());}[_0x10cc18(0x25e)](){const _0x358e93=_0x10cc18;this[_0x358e93(0x26d)][_0x358e93(0x2c6)][_0x358e93(0x297)](_0x2ea52d(this[_0x358e93(0x20f)]),_0x33a13a(_0x3786f1=>{const _0x5e49a7=_0x358e93;if(_0x3786f1){const _0x57cc08=_0x3786f1[_0x5e49a7(0x18a)];return _0x5c05c1(this[_0x5e49a7(0x1d2)][_0x5e49a7(0x189)](this[_0x5e49a7(0x187)]['unitId']),this[_0x5e49a7(0x11f)][_0x5e49a7(0x265)])[_0x5e49a7(0x297)](_0x47b623(([_0x5e4721,_0x1d058e])=>{const _0xafe4b1=_0x5e49a7,_0x26ce0b=new Map();return _0x5e4721[_0xafe4b1(0x12c)]((_0x2039a8,_0x507d1f)=>{const _0x1360fb=_0xafe4b1;if(_0x2039a8[_0x1360fb(0x1fd)]===_0x57cc08){const _0x379bca={..._0x2039a8};_0x379bca[_0x1360fb(0x1e5)]=this[_0x1360fb(0x11f)][_0x1360fb(0x2b0)](_0x2039a8[_0x1360fb(0x1e5)]),_0x26ce0b['set'](_0x507d1f,_0x379bca);}}),{'skeleton':_0x3786f1,'cursors':_0x26ce0b};}));}return _0x281440({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x56a350,cursors:_0x34125d})=>{const _0x39c58b=_0x358e93;this[_0x39c58b(0x10d)](),_0x56a350&&this[_0x39c58b(0x2d7)](_0x56a350,_0x34125d);}),this[_0x358e93(0x26d)][_0x358e93(0x2c6)][_0x358e93(0x288)](_0xd2c59c=>{const _0x9f3589=_0x358e93;if(_0xd2c59c==null)return;const {skeleton:_0x23ae51}=_0xd2c59c,{scene:_0x5044e5}=this[_0x9f3589(0x187)];_0x5044e5[_0x9f3589(0x255)][_0x9f3589(0x2c4)](_0x51b589(_0x1263ac=>{const _0x12055b=_0x9f3589;var _0x12db83,_0x181477;const {offsetX:_0x26ee5c,offsetY:_0x3a6003}=_0x1263ac,{x:_0x8fdd29,y:_0x3d666d}=_0x5044e5['getRelativeToViewportCoord'](_0x4b7404[_0x12055b(0x30a)]([_0x26ee5c,_0x3a6003])),{scaleX:_0x44fb37,scaleY:_0x188103}=_0x5044e5[_0x12055b(0x157)](),_0x2c0a89=_0x5044e5[_0x12055b(0x22a)](_0x32c43e[_0x12055b(0x293)]),_0xc8f162=_0x5044e5[_0x12055b(0x2e1)](_0x4b7404[_0x12055b(0x30a)]([_0x8fdd29,_0x3d666d]),_0x2c0a89),_0x58272c=_0x23ae51[_0x12055b(0x30e)](_0x26ee5c,_0x3a6003,_0x44fb37,_0x188103,_0xc8f162);((_0x12db83=this[_0x12055b(0x312)])==null?void 0x0:_0x12db83[_0x12055b(0x2c0)])===_0x58272c[_0x12055b(0x2c0)]&&((_0x181477=this[_0x12055b(0x312)])==null?void 0x0:_0x181477['row'])===_0x58272c['row']||this[_0x12055b(0x2e9)][_0x12055b(0x12c)](_0x4e8385=>{const _0x16affd=_0x12055b;_0x4e8385[_0x16affd(0x310)](_0x58272c);});},0x64));});}[_0x10cc18(0x2d7)](_0x204b77,_0xda0728){const _0x515e90=_0x10cc18;var _0x312c29;const _0x59a503=(_0x312c29=this[_0x515e90(0x26d)][_0x515e90(0x1d3)]())==null?void 0x0:_0x312c29[_0x515e90(0x126)];if(!_0x59a503)return;const _0x13bbde=this['_getSheetObject']();if(!_0x13bbde)return;this[_0x515e90(0x2e9)][_0x515e90(0x12c)](_0x58d37b=>{_0x58d37b['makeDirty']();});const {scene:_0x5efa8c}=_0x13bbde,_0x141f09=on(Array['from'](_0xda0728['values']()))[_0x515e90(0x2fb)](_0xc0f61f=>{const _0x5ea3e2=_0x515e90,{color:_0x36b2ce,range:_0x929e7c,name:_0x2734ed,selection:_0x3e45e4,sheetID:_0x2d1435}=_0xc0f61f,{startColumn:_0x576b6c,startRow:_0x500a1b,endColumn:_0x22f339,endRow:_0x38bb72}=_0x929e7c,_0x3790f2=_0x2094e3(_0x500a1b,_0x576b6c,_0x5efa8c,_0x59a503),_0x430db7=_0x2094e3(_0x38bb72,_0x22f339,_0x5efa8c,_0x59a503),{columnHeaderHeightAndMarginTop:_0x386d5b}=_0x59a503,{startX:_0x166b2c,startY:_0x3c6201}=_0x3790f2,{endX:_0xb37cb6,endY:_0x241798}=_0x430db7,_0x1bb7c2=_0xb37cb6-_0x166b2c,_0x3ee683=_0x241798-_0x3c6201,_0x5a5e92={'labelPosition':_0x3c6201-_0x386d5b>=Q?_0x5ea3e2(0x299):_0x5ea3e2(0x1c7),'sheetID':_0x2d1435,'range':_0x929e7c,'color':_0x36b2ce,'name':_0x2734ed,'selection':_0x3e45e4,'left':_0x166b2c,'top':_0x3c6201,'width':_0x1bb7c2,'height':_0x3ee683,'evented':!0x1,'zIndex':rn};return new tn(_0x2734ed,_0x5a5e92);});_0x5efa8c[_0x515e90(0x234)](_0x141f09,qi),this[_0x515e90(0x2e9)]=new Set(_0x141f09);}['_removeCollabCursors'](){const _0x3a2492=_0x10cc18;var _0x51c7a7;(_0x51c7a7=this[_0x3a2492(0x2e9)])==null||_0x51c7a7[_0x3a2492(0x12c)](_0x4be8e1=>_0x4be8e1[_0x3a2492(0x233)]());}['_getSheetObject'](){const _0x5e2722=_0x10cc18;return _0x32f0c0(this[_0x5e2722(0x187)]['unit'],this['_context']);}};ke=nn([Ne(0x1,_0x2c9f2f(_0x2cb62f)),Ne(0x2,_0x2c9f2f(H)),Ne(0x3,_0x2c9f2f(_0x31d312))],ke);function on(_0x2e25dc){const _0x41b685=_0x10cc18,_0x3981c2=new Map();return _0x2e25dc[_0x41b685(0x12c)](_0xca24a9=>{const _0x2c4c04=_0x41b685;if(_0x3981c2[_0x2c4c04(0x2bd)](_0xca24a9[_0x2c4c04(0x107)])){const _0x503722=_0x3981c2[_0x2c4c04(0x127)](_0xca24a9[_0x2c4c04(0x107)]);_0x503722[_0x2c4c04(0x27a)]+=',\x20'+_0xca24a9[_0x2c4c04(0x27a)];}else _0x3981c2[_0x2c4c04(0x239)](_0xca24a9['selection'],_0xca24a9);}),Array['from'](_0x3981c2['values']());}function _0x58c2(_0x1ab2b1,_0x39d731){const _0x270efc=_0x270e();return _0x58c2=function(_0x58c22a,_0x4188ba){_0x58c22a=_0x58c22a-0xe4;let _0xc3c535=_0x270efc[_0x58c22a];return _0xc3c535;},_0x58c2(_0x1ab2b1,_0x39d731);}var an=Object[_0x10cc18(0x1ea)],cn=(_0x1c75eb,_0xfdd4d8,_0x9389de,_0x28ae0a)=>{const _0x5cc2cd=_0x10cc18;for(var _0x1dda77=_0x28ae0a>0x1?void 0x0:_0x28ae0a?an(_0xfdd4d8,_0x9389de):_0xfdd4d8,_0x527467=_0x1c75eb[_0x5cc2cd(0xf9)]-0x1,_0x4b383c;_0x527467>=0x0;_0x527467--)(_0x4b383c=_0x1c75eb[_0x527467])&&(_0x1dda77=_0x4b383c(_0x1dda77)||_0x1dda77);return _0x1dda77;},F=(_0x4d0cf7,_0x565d54)=>(_0x330465,_0x25a67b)=>_0x565d54(_0x330465,_0x25a67b,_0x4d0cf7);let _e=class extends _0x3e748e{constructor(_0x4d5f76,_0x3cd275,_0x232be5,_0xfd79f3,_0x2bfebd,_0xb5f199){const _0x1f3029=_0x10cc18;super(),this[_0x1f3029(0x263)]=_0x4d5f76,this[_0x1f3029(0x128)]=_0x3cd275,this[_0x1f3029(0x331)]=_0x232be5,this[_0x1f3029(0x279)]=_0xfd79f3,this['_notificationService']=_0x2bfebd,this[_0x1f3029(0x303)]=_0xb5f199,this[_0x1f3029(0x1d4)](),this[_0x1f3029(0x22b)]();}[_0x10cc18(0x1d4)](){const _0x75c75a=_0x10cc18;this['disposeWithMe'](this[_0x75c75a(0x263)][_0x75c75a(0x163)](()=>{const _0x196a53=_0x75c75a;if(this[_0x196a53(0x128)][_0x196a53(0x1df)][_0x196a53(0x20b)])return this[_0x196a53(0x303)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x10cc18(0x22b)](){const _0x5132eb=_0x10cc18;this[_0x5132eb(0x1bc)](this[_0x5132eb(0x331)][_0x5132eb(0x1c5)][_0x5132eb(0x288)](_0x15a3de=>{const _0x410494=_0x5132eb;_0x15a3de['id']===_0x5e0b6b[_0x410494(0x1b0)]&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147['Warning'],'content':this[_0x410494(0x303)]['t'](_0x410494(0x194))}),_0x15a3de['id']===_0x5e0b6b['CLOSE_ROOM']&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x2c8)],'content':this['_localeService']['t'](_0x410494(0x2ab))}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x2b8)]&&this['_notificationService'][_0x410494(0xe7)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x410494(0x303)]['t'](_0x410494(0x121)),'type':_0x410494(0x1ac),'duration':0x0}),_0x15a3de['id']===_0x5e0b6b['CONFLICT']&&this['_messageService'][_0x410494(0xe7)]({'type':_0x22c147['Error'],'content':this[_0x410494(0x303)]['t'](_0x410494(0x2ab))+'('+_0x15a3de[_0x410494(0x1e0)]+')'}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x26a)]&&this[_0x410494(0x279)]['show']({'type':_0x22c147[_0x410494(0x2c8)],'content':this[_0x410494(0x303)]['t'](_0x15a3de['data']||'')}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0x17b)]&&this['_messageService'][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x2c8)],'content':this[_0x410494(0x303)]['t'](_0x410494(0x148))}),_0x15a3de['id']===_0x5e0b6b['SOCKET_FAILED']&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x153)],'content':this['_localeService']['t'](_0x410494(0xfc))}),_0x15a3de['id']===_0x5e0b6b[_0x410494(0xee)]&&this[_0x410494(0x279)][_0x410494(0xe7)]({'type':_0x22c147[_0x410494(0x153)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x4d68ed),F(0x1,_0x3a4f5a),F(0x2,_0x2c9f2f(_0x32b243)),F(0x3,_0x41d342),F(0x4,_0x3c2d52),F(0x5,_0x2c9f2f(_0xefd7ba))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x239ad6,_0x4e12a5,_0xd103a9,_0x2256da)=>{for(var _0x1ebdb5=_0x2256da>0x1?void 0x0:_0x2256da?_n(_0x4e12a5,_0xd103a9):_0x4e12a5,_0x3c41c7=_0x239ad6['length']-0x1,_0x3f1378;_0x3c41c7>=0x0;_0x3c41c7--)(_0x3f1378=_0x239ad6[_0x3c41c7])&&(_0x1ebdb5=_0x3f1378(_0x1ebdb5)||_0x1ebdb5);return _0x1ebdb5;},ne=(_0x55032a,_0x3c8d61)=>(_0x31ed82,_0x58a613)=>_0x3c8d61(_0x31ed82,_0x58a613,_0x55032a);let le=class extends _0x3e748e{constructor(_0x2f4959,_0x506dbb,_0x5cd175,_0x159810){const _0xa5353f=_0x10cc18;super(),_(this,'_memberID'),(this['_injector']=_0x2f4959,this[_0xa5353f(0x276)]=_0x506dbb,this['_logService']=_0x5cd175,this['_collaborationSessionService']=_0x159810,this['_init']());}[_0x10cc18(0x25e)](){const _0x2ebc47=_0x10cc18;this[_0x2ebc47(0x250)](),this['_initUnhandledRejectionListener'](),this[_0x2ebc47(0x2f7)](),this[_0x2ebc47(0x222)]();}[_0x10cc18(0x222)](){const _0x4b80a7=_0x10cc18;this['disposeWithMe'](this[_0x4b80a7(0x292)][_0x4b80a7(0x137)][_0x4b80a7(0x288)](_0x5c302b=>{this['_memberID']=_0x5c302b==null?void 0x0:_0x5c302b['memberID'];}));}[_0x10cc18(0x250)](){const _0x204d12=_0x10cc18,_0x447b60=_0x5e777b=>{const _0x1ad90c=_0x58c2;var _0x6c6291;this[_0x1ad90c(0x14d)](_0x1ad90c(0x1ac),'[Window\x20Error]:\x20'+_0x5e777b['message']+'\x20at\x20'+_0x5e777b[_0x1ad90c(0x20c)]+':'+_0x5e777b[_0x1ad90c(0x1da)]+':'+_0x5e777b[_0x1ad90c(0x134)]+'\x0a'+(((_0x6c6291=_0x5e777b[_0x1ad90c(0x1ac)])==null?void 0x0:_0x6c6291[_0x1ad90c(0x25b)])||''));};window[_0x204d12(0x325)](_0x204d12(0x1ac),_0x447b60),this[_0x204d12(0x1bc)](()=>{const _0x4877b5=_0x204d12;window[_0x4877b5(0x251)](_0x4877b5(0x1ac),_0x447b60);});}[_0x10cc18(0x115)](){const _0x8b2f99=_0x10cc18,_0x183213=_0x1c6e99=>{const _0x329052=_0x58c2;this[_0x329052(0x14d)](_0x329052(0x1ac),_0x329052(0x1f3)+_0x1c6e99['reason']);};window[_0x8b2f99(0x325)](_0x8b2f99(0x31f),_0x183213),this[_0x8b2f99(0x1bc)](()=>{const _0x143a93=_0x8b2f99;window[_0x143a93(0x251)]('unhandledrejection',_0x183213);});}[_0x10cc18(0x2f7)](){const _0x4f7c40=_0x10cc18,_0x195ac2=this[_0x4f7c40(0x190)][_0x4f7c40(0x1ac)]['bind'](this[_0x4f7c40(0x190)]);this[_0x4f7c40(0x190)][_0x4f7c40(0x1ac)]=(..._0x44ab1e)=>{const _0x264ede=_0x4f7c40,_0x374341=_0x44ab1e[_0x264ede(0x2fb)](_0x18554c=>_0x18554c instanceof Error?_0x18554c[_0x264ede(0x2bc)]+'\x0a'+_0x18554c['stack']:String(_0x18554c))[_0x264ede(0x175)]('\x20');this['_uploadLog']('error','[LogService\x20Error]:\x20'+_0x374341),_0x195ac2(..._0x44ab1e);},this['disposeWithMe'](()=>{const _0x512447=_0x4f7c40;this[_0x512447(0x190)][_0x512447(0x1ac)]=_0x195ac2;});}[_0x10cc18(0x14d)](_0x130334,_0x41781b){const _0x53081c=_0x10cc18;try{const _0x5c6fd1={'userId':this[_0x53081c(0x311)],'logLabel':_0x130334,'content':_0x41781b};this['_httpService']['post'](_0x53081c(0x2d6),{'body':_0x5c6fd1})[_0x53081c(0x1c1)](()=>{});}catch{}}};le=ln([ne(0x0,_0x2c9f2f(_0x3955fb)),ne(0x1,_0x2c9f2f(_0x47ffcb)),ne(0x2,_0x1368e3),ne(0x3,_0x2c9f2f(_0x1abc06))],le);const hn=_0x10cc18(0x1cd),_t={};var un=Object[_0x10cc18(0x1ea)],dn=(_0x1a4275,_0x34d69d,_0x3d2f91,_0x3e50e6)=>{const _0x106de8=_0x10cc18;for(var _0x2ff2b2=_0x3e50e6>0x1?void 0x0:_0x3e50e6?un(_0x34d69d,_0x3d2f91):_0x34d69d,_0x3f53c6=_0x1a4275[_0x106de8(0xf9)]-0x1,_0x2a8361;_0x3f53c6>=0x0;_0x3f53c6--)(_0x2a8361=_0x1a4275[_0x3f53c6])&&(_0x2ff2b2=_0x2a8361(_0x2ff2b2)||_0x2ff2b2);return _0x2ff2b2;},lt=(_0x45250e,_0x19f61d)=>(_0x28be00,_0x45e56d)=>_0x19f61d(_0x28be00,_0x45e56d,_0x45250e);let he=class{constructor(_0x453437,_0x4a39f3){const _0x1fe490=_0x10cc18;this[_0x1fe490(0x16d)]=_0x453437,this[_0x1fe490(0x1f0)]=_0x4a39f3;}[_0x10cc18(0x31d)](_0x4c8e55){const _0x553d2e=_0x10cc18;this[_0x553d2e(0x28d)](_0x4c8e55),this[_0x553d2e(0x17f)](_0x4c8e55);}[_0x10cc18(0x324)](_0x3e2eca){const _0x2138b4=_0x10cc18,{unitID:_0x2b3adb}=_0x3e2eca,_0x54eee6=this[_0x2138b4(0x1f0)][_0x2138b4(0x105)](_0x2b3adb)['with'](_0x10cfe8),{redoCache:_0x2fc7fc}=_0x54eee6['getUndoRedoMutationParamsCache']();if(_0x2fc7fc['length']===0x0)return _0x3e2eca;let _0x4ceb1d=_0x4984ae[_0x2138b4(0x257)](_0x3e2eca[_0x2138b4(0x206)][0x0]);for(let _0x42a7dc=0x0;_0x42a7dc<_0x2fc7fc[_0x2138b4(0xf9)];_0x42a7dc++){const _0x1f7be6={'id':_0x2138b4(0x106),'params':{..._0x2fc7fc[_0x42a7dc]}},_0x5a9468=this[_0x2138b4(0x16d)][_0x2138b4(0x260)](_0x4ceb1d,_0x1f7be6,!0x1);if(_0x3ff0c5(_0x5a9468))throw _0x5a9468[_0x2138b4(0x1ac)];_0x4ceb1d=_0x5a9468[_0x2138b4(0x2aa)];}return{..._0x4984ae['deepClone'](_0x3e2eca),'mutations':[_0x4ceb1d]};}[_0x10cc18(0x28d)](_0x49ccb4){const _0x55b193=_0x10cc18,{unitID:_0x3d2929}=_0x49ccb4,_0x28da71=this[_0x55b193(0x1f0)]['getRenderById'](_0x3d2929)[_0x55b193(0x104)](_0x10cfe8),{undoCache:_0x248e4c,redoCache:_0x49f272}=_0x28da71[_0x55b193(0xf8)]();if(_0x248e4c['length']===0x0||_0x49f272['length']===0x0)return;const _0x207a6c=[],_0x250641=[];let _0x4b7507=_0x4984ae[_0x55b193(0x257)](_0x49ccb4[_0x55b193(0x206)][0x0]),_0x4a72cd=_0x4984ae[_0x55b193(0x257)](_0x49ccb4[_0x55b193(0x206)][0x0]);for(let _0x40c2c1=_0x248e4c[_0x55b193(0xf9)]-0x1;_0x40c2c1>=0x0;_0x40c2c1--){const _0xc4d525={'id':_0x55b193(0x106),'params':{..._0x248e4c[_0x40c2c1]}},_0x1b466d={'id':_0x55b193(0x106),'params':{..._0x49f272[_0x40c2c1]}},_0x5adc51=this[_0x55b193(0x16d)][_0x55b193(0x260)](_0x4b7507,_0xc4d525,!0x1),_0xcb3f84=this['_transformService']['transformMutation'](_0x4a72cd,_0x1b466d,!0x1);if(_0x3ff0c5(_0x5adc51))throw _0x5adc51[_0x55b193(0x1ac)];if(_0x3ff0c5(_0xcb3f84))throw _0xcb3f84['error'];_0x207a6c[_0x55b193(0x1b5)](_0x5adc51[_0x55b193(0x21e)][_0x55b193(0x151)]),_0x250641[_0x55b193(0x1b5)](_0xcb3f84[_0x55b193(0x21e)][_0x55b193(0x151)]),_0x4b7507=_0x5adc51['m1Prime'],_0x4a72cd=_0xcb3f84['m1Prime'];}_0x28da71[_0x55b193(0x1b4)]({'undoCache':_0x207a6c,'redoCache':_0x250641});}['_transformPreviousActiveRange'](_0x4126d3){const _0x397984=_0x10cc18,{unitID:_0x484b5e}=_0x4126d3,_0x52eae8=this[_0x397984(0x1f0)][_0x397984(0x105)](_0x484b5e)[_0x397984(0x104)](_0x10cfe8),_0x2c48eb=_0x52eae8[_0x397984(0x1d7)]();if(_0x2c48eb==null)return;const _0x3dfb56=[{'id':_0x397984(0x106),'params':{'unitId':_0x4126d3[_0x397984(0x249)],'actions':null,'textRanges':[_0x2c48eb]}}],_0x2bf1b9=this[_0x397984(0x16d)][_0x397984(0x28c)](_0x4126d3,_0x3dfb56);if(!_0x4e8f7d(_0x2bf1b9))throw _0x2bf1b9[_0x397984(0x1ac)];const _0x10553d=_0x2bf1b9['m2Prime'][0x0][_0x397984(0x151)]['textRanges'];Array['isArray'](_0x10553d)&&_0x10553d[_0x397984(0xf9)]&&_0x52eae8[_0x397984(0x229)](_0x10553d[0x0]);}};he=dn([lt(0x0,_0x447d81),lt(0x1,_0x20cff4)],he);var Sn=Object[_0x10cc18(0x1ea)],mn=(_0x21a8ce,_0x285d38,_0x1a8836,_0x26e98b)=>{const _0x2860a6=_0x10cc18;for(var _0x24007f=_0x26e98b>0x1?void 0x0:_0x26e98b?Sn(_0x285d38,_0x1a8836):_0x285d38,_0x592092=_0x21a8ce[_0x2860a6(0xf9)]-0x1,_0x59e972;_0x592092>=0x0;_0x592092--)(_0x59e972=_0x21a8ce[_0x592092])&&(_0x24007f=_0x59e972(_0x24007f)||_0x24007f);return _0x24007f;},Le=(_0x16e17a,_0x4b1f4f)=>(_0xf3f0b1,_0x5f2651)=>_0x4b1f4f(_0xf3f0b1,_0x5f2651,_0x16e17a);let ue=class{constructor(_0x520da4,_0x9473e2,_0x40dc1f){const _0x30331f=_0x10cc18;this['_injector']=_0x520da4,this[_0x30331f(0x16d)]=_0x9473e2,this['_docStateChangeManagerService']=_0x40dc1f;}[_0x10cc18(0x13e)](_0x128609){const _0x4306a9=_0x10cc18;this[_0x4306a9(0x10f)](_0x128609);}[_0x10cc18(0x324)](_0x2171e1){const _0x44447a=_0x10cc18,{unitID:_0x36eb05}=_0x2171e1,{collaboration:_0x4016e3}=this[_0x44447a(0x252)]['getStateCache'](_0x36eb05);if(_0x4016e3[_0x44447a(0xf9)]===0x0)return _0x2171e1;let _0x4613f2=_0x4984ae[_0x44447a(0x257)](_0x2171e1['mutations'][0x0]);for(let _0x5a606b=0x0;_0x5a606b<_0x4016e3[_0x44447a(0xf9)];_0x5a606b++){const _0x55e158={'id':_0x44447a(0x106),'params':{'unitId':_0x4016e3[_0x5a606b][_0x44447a(0x16a)],..._0x4016e3[_0x5a606b][_0x44447a(0x307)]}},_0x2a9e0c=this['_transformService'][_0x44447a(0x260)](_0x4613f2,_0x55e158,!0x1);if(_0x3ff0c5(_0x2a9e0c))throw _0x2a9e0c[_0x44447a(0x1ac)];_0x4613f2=_0x2a9e0c['m1Prime'];}return{..._0x4984ae[_0x44447a(0x257)](_0x2171e1),'mutations':[_0x4613f2]};}[_0x10cc18(0x10f)](_0x9ef506){const _0x54986f=_0x10cc18,{unitID:_0x3d55b2}=_0x9ef506,{history:_0x620009,collaboration:_0x4b6721}=this[_0x54986f(0x252)][_0x54986f(0x185)](_0x3d55b2);if(_0x620009[_0x54986f(0xf9)]===0x0&&_0x4b6721[_0x54986f(0xf9)]===0x0)return;const _0x460992=[],_0x56d0ce=[];let _0x494900=_0x4984ae['deepClone'](_0x9ef506[_0x54986f(0x206)][0x0]),_0x4a20fa=_0x4984ae[_0x54986f(0x257)](_0x9ef506['mutations'][0x0]);for(let _0x1320a7=_0x620009[_0x54986f(0xf9)]-0x1;_0x1320a7>=0x0;_0x1320a7--){const _0x33513e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x620009[_0x1320a7][_0x54986f(0x16a)],..._0x620009[_0x1320a7][_0x54986f(0x109)]}},_0x192a10={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x620009[_0x1320a7]['unitId'],..._0x620009[_0x1320a7]['redoState']}},_0xd1f02b=this['_transformService']['transformMutation'](_0x494900,_0x33513e,!0x1),_0x5821dc=this[_0x54986f(0x16d)]['transformMutation'](_0x4a20fa,_0x192a10,!0x1);if(_0x3ff0c5(_0xd1f02b))throw _0xd1f02b[_0x54986f(0x1ac)];if(_0x3ff0c5(_0x5821dc))throw _0x5821dc[_0x54986f(0x1ac)];_0x460992[_0x54986f(0x1b5)]({..._0x620009[_0x1320a7],'undoState':_0xd1f02b['m2Prime'][_0x54986f(0x151)],'redoState':_0x5821dc[_0x54986f(0x21e)]['params']}),_0x494900=_0xd1f02b[_0x54986f(0x2aa)],_0x4a20fa=_0x5821dc['m1Prime'];}_0x494900=_0x4984ae[_0x54986f(0x257)](_0x9ef506[_0x54986f(0x206)][0x0]),_0x4a20fa=_0x4984ae[_0x54986f(0x257)](_0x9ef506['mutations'][0x0]);for(let _0x252832=_0x4b6721[_0x54986f(0xf9)]-0x1;_0x252832>=0x0;_0x252832--){const _0x85f924={'id':_0x54986f(0x106),'params':{'unitId':_0x4b6721[_0x252832][_0x54986f(0x16a)],..._0x4b6721[_0x252832][_0x54986f(0x109)]}},_0x13e0fa={'id':_0x54986f(0x106),'params':{'unitId':_0x4b6721[_0x252832][_0x54986f(0x16a)],..._0x4b6721[_0x252832][_0x54986f(0x307)]}},_0x4a5a3c=this['_transformService'][_0x54986f(0x260)](_0x494900,_0x85f924,!0x1),_0x2d8042=this['_transformService'][_0x54986f(0x260)](_0x4a20fa,_0x13e0fa,!0x1);if(_0x3ff0c5(_0x4a5a3c))throw _0x4a5a3c[_0x54986f(0x1ac)];if(_0x3ff0c5(_0x2d8042))throw _0x2d8042['error'];_0x56d0ce[_0x54986f(0x1b5)]({..._0x4b6721[_0x252832],'undoState':_0x4a5a3c[_0x54986f(0x21e)][_0x54986f(0x151)],'redoState':_0x2d8042['m2Prime']['params']}),_0x494900=_0x4a5a3c[_0x54986f(0x2aa)],_0x4a20fa=_0x2d8042[_0x54986f(0x2aa)];}this[_0x54986f(0x252)][_0x54986f(0x22c)](_0x3d55b2,{'history':_0x460992,'collaboration':_0x56d0ce});}};ue=mn([Le(0x0,_0x2c9f2f(_0x3955fb)),Le(0x1,_0x447d81),Le(0x2,_0x2c9f2f(_0x58cfb8))],ue);var In=Object[_0x10cc18(0x1ea)],fn=(_0x50f8f6,_0x25b639,_0x52f4ed,_0xe87461)=>{for(var _0x148cca=_0xe87461>0x1?void 0x0:_0xe87461?In(_0x25b639,_0x52f4ed):_0x25b639,_0x7f7a08=_0x50f8f6['length']-0x1,_0x2904c3;_0x7f7a08>=0x0;_0x7f7a08--)(_0x2904c3=_0x50f8f6[_0x7f7a08])&&(_0x148cca=_0x2904c3(_0x148cca)||_0x148cca);return _0x148cca;},ht=(_0xb998d8,_0x44ceed)=>(_0x5818ad,_0x1cacb8)=>_0x44ceed(_0x5818ad,_0x1cacb8,_0xb998d8);let de=class{constructor(_0x309edc,_0x44d1ad){const _0x43b9d3=_0x10cc18;this[_0x43b9d3(0xf0)]=_0x309edc,this[_0x43b9d3(0x16d)]=_0x44d1ad;}['transformSelections'](_0x598361){const _0xef872e=_0x10cc18;var _0x37cbae;const _0x4dc4e6=this[_0xef872e(0xf0)][_0xef872e(0x127)](_0x196312),_0x8dcbf0=(_0x37cbae=_0x4dc4e6[_0xef872e(0x1d8)]())!=null?_0x37cbae:[];if(_0x8dcbf0[_0xef872e(0xf9)]===0x0)return;const _0x490675=_0x598361[_0xef872e(0x249)],_0x2a67f5=[{'id':_0xef872e(0x106),'params':{'unitId':_0x490675,'actions':null,'textRanges':_0x8dcbf0}}],_0x2430f8=this[_0xef872e(0x16d)][_0xef872e(0x28c)](_0x598361,_0x2a67f5);if(!_0x4e8f7d(_0x2430f8))throw _0x2430f8[_0xef872e(0x1ac)];const _0x50439a=_0x2430f8[_0xef872e(0x21e)][0x0][_0xef872e(0x151)][_0xef872e(0x1a2)];Array[_0xef872e(0x2d1)](_0x50439a)&&_0x50439a[_0xef872e(0xf9)]&&_0x4dc4e6['replaceDocRanges'](_0x50439a,{'unitId':_0x490675,'subUnitId':_0x490675},!0x1);}};de=fn([ht(0x0,_0x2c9f2f(_0x3955fb)),ht(0x1,_0x447d81)],de);var gn=Object['getOwnPropertyDescriptor'],vn=(_0x464b87,_0x2647aa,_0x3e4df8,_0x23a408)=>{const _0x5d2288=_0x10cc18;for(var _0xc1784c=_0x23a408>0x1?void 0x0:_0x23a408?gn(_0x2647aa,_0x3e4df8):_0x2647aa,_0x11304a=_0x464b87[_0x5d2288(0xf9)]-0x1,_0x8b6e8f;_0x11304a>=0x0;_0x11304a--)(_0x8b6e8f=_0x464b87[_0x11304a])&&(_0xc1784c=_0x8b6e8f(_0xc1784c)||_0xc1784c);return _0xc1784c;},U=(_0xcadf04,_0x305096)=>(_0xf4f47a,_0x28f1bd)=>_0x305096(_0xf4f47a,_0x28f1bd,_0xcadf04);let Se=class extends _0x3e748e{constructor(_0x1e18af,_0x25be45,_0x480daf,_0x2c6318,_0x30caa3,_0x447c82,_0x42a86a,_0x159519){const _0x195893=_0x10cc18;super(),_(this,_0x195893(0x1f8),new _0x1ced39(_0x3d84ba['NOT_COLLAB'])),(this[_0x195893(0x252)]=_0x1e18af,this[_0x195893(0x1c9)]=_0x25be45,this['_docTransformIMECacheService']=_0x480daf,this[_0x195893(0x145)]=_0x2c6318,this[_0x195893(0x2a9)]=_0x30caa3,this['_docSyncEditingCollabCursorService']=_0x447c82,this[_0x195893(0x279)]=_0x42a86a,this[_0x195893(0x303)]=_0x159519,this[_0x195893(0x123)]());}[_0x10cc18(0x123)](){const _0x267b2e=_0x10cc18;this['disposeWithMe'](this[_0x267b2e(0x1c9)]['entityInit$']['subscribe'](_0x536905=>{const _0x5a481f=_0x267b2e,_0x52c5c0=this['_docStateChangeManagerService'][_0x5a481f(0x2ec)]['subscribe'](_0x6cce2e=>{const _0x35e53f=_0x5a481f;if(_0x6cce2e==null)return;const {unitId:_0x34650a,redoState:_0x372c23,commandId:_0x3f4612}=_0x6cce2e;if(_0x34650a!==_0x536905[_0x35e53f(0x249)])return;const _0x33b1f8={'id':_0x3f4612,'type':_0x3e471d[_0x35e53f(0x228)],'params':{'unitId':_0x34650a,'actions':_0x372c23[_0x35e53f(0x230)],'textRanges':null}};_0x536905[_0x35e53f(0x102)](_0x33b1f8);});if(_0x536905[_0x5a481f(0x1bc)](_0x52c5c0),_0x536905 instanceof _0x59b116){const _0x404b56={'onTransformIME':_0x3fd6a5=>this[_0x5a481f(0x2e6)][_0x5a481f(0x31d)](_0x3fd6a5),'onTransformState':_0x534a90=>this['_docTransformStateCacheService'][_0x5a481f(0x13e)](_0x534a90),'onTransformSelections':_0x59dfc9=>this[_0x5a481f(0x2a9)][_0x5a481f(0x29e)](_0x59dfc9),'onSyncEditingCollabCursor':_0x102a84=>this[_0x5a481f(0x1a4)][_0x5a481f(0x199)](_0x102a84),'onTransformRemoteChangesetByIMECache':_0x3bc2ec=>this[_0x5a481f(0x2e6)][_0x5a481f(0x324)](_0x3bc2ec),'onTransformRemoteChangesetByStateCache':_0x178f40=>this[_0x5a481f(0x145)][_0x5a481f(0x324)](_0x178f40)};_0x536905[_0x5a481f(0x1ff)](_0x404b56);}}));}};Se=vn([U(0x0,_0x2c9f2f(_0x58cfb8)),U(0x1,_0x2c9f2f(_0x69ed9c)),U(0x2,_0x2c9f2f(he)),U(0x3,_0x2c9f2f(ue)),U(0x4,_0x2c9f2f(de)),U(0x5,_0x2c9f2f(ze)),U(0x6,_0x41d342),U(0x7,_0x2c9f2f(_0xefd7ba))],Se);var Z=(_0x2988cf=>(_0x2988cf[_0x2988cf[_0x10cc18(0x1a6)]=0x0]=_0x10cc18(0x1a6),_0x2988cf[_0x2988cf['OK']=0x1]='OK',_0x2988cf[_0x2988cf[_0x10cc18(0x12a)]=0x2]=_0x10cc18(0x12a),_0x2988cf[_0x2988cf[_0x10cc18(0x2b8)]=0x3]=_0x10cc18(0x2b8),_0x2988cf[_0x2988cf[_0x10cc18(0x1ba)]=0x4]=_0x10cc18(0x1ba),_0x2988cf[_0x2988cf[_0x10cc18(0x174)]=0x5]='UNAUTHENTICATED',_0x2988cf[_0x2988cf[_0x10cc18(0x220)]=0x6]=_0x10cc18(0x220),_0x2988cf[_0x2988cf[_0x10cc18(0x2f2)]=0x7]=_0x10cc18(0x2f2),_0x2988cf[_0x2988cf['TOO_MANY_REQUESTS']=0x8]=_0x10cc18(0x2f3),_0x2988cf[_0x2988cf[_0x10cc18(0x196)]=0x9]=_0x10cc18(0x196),_0x2988cf[_0x2988cf['LOGIN_FAILED']=0xa]=_0x10cc18(0x267),_0x2988cf[_0x2988cf[_0x10cc18(0x1f6)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x2988cf[_0x2988cf[_0x10cc18(0x17c)]=0xc]=_0x10cc18(0x17c),_0x2988cf[_0x2988cf[_0x10cc18(0x1d5)]=0xd]=_0x10cc18(0x1d5),_0x2988cf[_0x2988cf[_0x10cc18(0x283)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2988cf[_0x2988cf[_0x10cc18(0x1bf)]=0xf]=_0x10cc18(0x1bf),_0x2988cf[_0x2988cf[_0x10cc18(0x1b3)]=0x10]=_0x10cc18(0x1b3),_0x2988cf[_0x2988cf['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2988cf[_0x2988cf['ERROR_AGAIN']=0x65]=_0x10cc18(0x1dd),_0x2988cf[_0x2988cf[_0x10cc18(0x29a)]=0xc9]=_0x10cc18(0x29a),_0x2988cf[_0x2988cf[_0x10cc18(0x198)]=0xca]='USER_IS_ANONYMOUS',_0x2988cf[_0x2988cf[_0x10cc18(0xf3)]=0x1389]=_0x10cc18(0xf3),_0x2988cf[_0x2988cf[_0x10cc18(0x1a8)]=0x1771]=_0x10cc18(0x1a8),_0x2988cf[_0x2988cf[_0x10cc18(0x2ad)]=0x1772]=_0x10cc18(0x2ad),_0x2988cf[_0x2988cf['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x10cc18(0x2b7),_0x2988cf[_0x2988cf[_0x10cc18(0x31e)]=0x1b59]=_0x10cc18(0x31e),_0x2988cf[_0x2988cf['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x10cc18(0x158),_0x2988cf[_0x2988cf[_0x10cc18(0x321)]=0x1b5b]=_0x10cc18(0x321),_0x2988cf[_0x2988cf[_0x10cc18(0x11e)]=0x1b5c]=_0x10cc18(0x11e),_0x2988cf[_0x2988cf['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2988cf[_0x2988cf[_0x10cc18(0x100)]=0x1f41]=_0x10cc18(0x100),_0x2988cf[_0x2988cf['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x10cc18(0x221),_0x2988cf[_0x2988cf[_0x10cc18(0x226)]=0x232a]=_0x10cc18(0x226),_0x2988cf[_0x2988cf[_0x10cc18(0x2e5)]=0x232b]=_0x10cc18(0x2e5),_0x2988cf[_0x2988cf['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x10cc18(0x1a0),_0x2988cf[_0x2988cf[_0x10cc18(0x2b4)]=0x232d]=_0x10cc18(0x2b4),_0x2988cf[_0x2988cf['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2988cf[_0x2988cf[_0x10cc18(0x2eb)]=0x2712]=_0x10cc18(0x2eb),_0x2988cf[_0x2988cf['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x10cc18(0x2b9),_0x2988cf[_0x2988cf[_0x10cc18(0x32a)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2988cf[_0x2988cf[_0x10cc18(0x2e7)]=0x271a]=_0x10cc18(0x2e7),_0x2988cf[_0x2988cf[_0x10cc18(0x212)]=0x271b]=_0x10cc18(0x212),_0x2988cf[_0x2988cf[_0x10cc18(0x152)]=0x271c]=_0x10cc18(0x152),_0x2988cf[_0x2988cf[_0x10cc18(0x19a)]=0x271d]=_0x10cc18(0x19a),_0x2988cf[_0x2988cf[_0x10cc18(0x209)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2988cf[_0x2988cf[_0x10cc18(0x2cc)]=0x271f]=_0x10cc18(0x2cc),_0x2988cf[_0x2988cf['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x10cc18(0x172),_0x2988cf[_0x2988cf[_0x10cc18(0x27c)]=0x2af9]=_0x10cc18(0x27c),_0x2988cf[_0x2988cf['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x10cc18(0x1bb),_0x2988cf[_0x2988cf[_0x10cc18(0x132)]=0x2ee2]='INVALID_INVITE_CODE',_0x2988cf[_0x2988cf['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x2988cf[_0x2988cf[_0x10cc18(0x160)]=0x2ee4]=_0x10cc18(0x160),_0x2988cf[_0x2988cf[_0x10cc18(0x136)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x2988cf[_0x2988cf['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x10cc18(0x2b1),_0x2988cf[_0x2988cf['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x10cc18(0x1be),_0x2988cf[_0x2988cf[_0x10cc18(0x1cf)]=0x32cb]=_0x10cc18(0x1cf),_0x2988cf[_0x2988cf[_0x10cc18(0x1f2)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2988cf[_0x2988cf[_0x10cc18(0x16c)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x2988cf[_0x2988cf[_0x10cc18(0x179)]=0x36b3]=_0x10cc18(0x179),_0x2988cf[_0x2988cf[_0x10cc18(0x2d8)]=0x36b4]=_0x10cc18(0x2d8),_0x2988cf[_0x2988cf[_0x10cc18(0x275)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2988cf[_0x2988cf[_0x10cc18(0x101)]=0x3716]=_0x10cc18(0x101),_0x2988cf[_0x2988cf['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2988cf[_0x2988cf['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x10cc18(0x2a8),_0x2988cf[_0x2988cf[_0x10cc18(0x24c)]=0x3a99]=_0x10cc18(0x24c),_0x2988cf[_0x2988cf['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x10cc18(0xfd),_0x2988cf[_0x2988cf['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x10cc18(0x146),_0x2988cf[_0x2988cf[_0x10cc18(0x323)]=0x3a9c]=_0x10cc18(0x323),_0x2988cf[_0x2988cf[_0x10cc18(0x23e)]=0x3a9d]=_0x10cc18(0x23e),_0x2988cf[_0x2988cf['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x10cc18(0x27b),_0x2988cf[_0x2988cf[_0x10cc18(0x243)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x2988cf[_0x2988cf[_0x10cc18(0x1cb)]=0x3e81]=_0x10cc18(0x1cb),_0x2988cf[_0x2988cf[_0x10cc18(0x14b)]=-0x1]=_0x10cc18(0x14b),_0x2988cf))(Z||{});function En(_0x588148){const _0x339717=_0x10cc18;var _0xa58ff5,_0x492ba2;const _0x7da222=(_0xa58ff5=_0x588148[_0x339717(0xf4)])==null?void 0x0:_0xa58ff5['stage'],_0x8765a0=((_0x492ba2=_0x588148[_0x339717(0xf4)])==null?void 0x0:_0x492ba2[_0x339717(0x186)])||0x0;return _0x7da222===_0x915ac4[_0x339717(0x1b6)]&&_0x8765a0>0x0;}function pn(_0x59f19e){const _0x239b97=_0x10cc18;return _0x59f19e['functionsExecutedState']===_0x4723a6[_0x239b97(0x1e6)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4c2b13,_0x59b739,_0x4ca5b0,_0x50983a)=>{const _0x4be405=_0x10cc18;for(var _0x4d320c=_0x50983a>0x1?void 0x0:_0x50983a?On(_0x59b739,_0x4ca5b0):_0x59b739,_0x35f12a=_0x4c2b13[_0x4be405(0xf9)]-0x1,_0x492216;_0x35f12a>=0x0;_0x35f12a--)(_0x492216=_0x4c2b13[_0x35f12a])&&(_0x4d320c=_0x492216(_0x4d320c)||_0x4d320c);return _0x4d320c;},P=(_0x5b3396,_0x36bccc)=>(_0x3cc557,_0x5ab87c)=>_0x36bccc(_0x3cc557,_0x5ab87c,_0x5b3396);const Cn=_0x10cc18(0x2b2),Rn=_0x10cc18(0x2ae),Dn='/universer-api/license/formula/limit/done';let me=class extends _0x3e748e{constructor(_0x4dec20,_0x2d442e,_0x5d9dee,_0x879938,_0x15f059,_0x2be7f6,_0xc84276){const _0x34b80b=_0x10cc18;super(),_(this,'_pollingInterval',null),_(this,_0x34b80b(0x308),0x0),_(this,'_currentUsage',0x0),_(this,_0x34b80b(0x290),[]),_(this,_0x34b80b(0x1db),0x0),(this[_0x34b80b(0x279)]=_0x4dec20,this[_0x34b80b(0x29c)]=_0x2d442e,this['_configService']=_0x5d9dee,this['_httpService']=_0x879938,this[_0x34b80b(0x301)]=_0x15f059,this[_0x34b80b(0x190)]=_0x2be7f6,this[_0x34b80b(0x303)]=_0xc84276,this[_0x34b80b(0x2c2)]());}['_initCommandInterceptor'](){const _0x3f36cf=_0x10cc18;this[_0x3f36cf(0x1bc)](this['_commandService'][_0x3f36cf(0x256)]((_0x55a370,_0x5bf829)=>{const _0x44fd3f=_0x3f36cf;var _0x302426;if(_0x55a370['id']!==_0x19bce6['id'])return;const _0x504c6b=_0x55a370[_0x44fd3f(0x151)];if(!this[_0x44fd3f(0x2a0)]((_0x302426=_0x504c6b['dirtyRanges'])!=null?_0x302426:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x44fd3f(0x1d6)](_0x55a370,_0x5bf829),this[_0x44fd3f(0x11c)](),new _0x20efe7();})),this['disposeWithMe'](this[_0x3f36cf(0x29c)][_0x3f36cf(0x164)]((_0x380da4,_0x26e2a8)=>{const _0x5725e6=_0x3f36cf;if(_0x380da4['id']!==_0x391c35['id'])return;const _0x46873d=_0x380da4[_0x5725e6(0x151)];if(En(_0x46873d)){const _0x17041a=_0x5236ab();this[_0x5725e6(0x290)][_0x5725e6(0x1ed)](_0x17041a),this[_0x5725e6(0x31c)](_0x17041a);}else{if(pn(_0x46873d)&&this[_0x5725e6(0x290)][_0x5725e6(0xf9)]>0x0){const _0x2489cb=this[_0x5725e6(0x290)][_0x5725e6(0x1fe)]();this[_0x5725e6(0x10c)](_0x2489cb);}}}));}[_0x10cc18(0x233)](){const _0x3d5236=_0x10cc18;super[_0x3d5236(0x233)](),this[_0x3d5236(0x25c)](),this[_0x3d5236(0x290)]=[],this[_0x3d5236(0x2c1)]=0x0,this[_0x3d5236(0x308)]=0x0,this[_0x3d5236(0x1db)]=0x0;}async[_0x10cc18(0x1d6)](_0x4fac1e,_0x15977b){const _0x132adc=_0x10cc18;for(let _0x435a35=0x0;_0x435a35<0x1e;_0x435a35++)try{if(await this[_0x132adc(0x24d)](),this['_checkCalculationAvailable']()){this[_0x132adc(0x2cd)](_0x4fac1e,_0x15977b),this['_messageService'][_0x132adc(0xe7)]({'content':this[_0x132adc(0x303)]['t'](_0x132adc(0x1d0)),'type':_0x22c147[_0x132adc(0x12f)]});return;}await new Promise(_0x13c1b8=>{const _0x216f7a=_0x132adc;this[_0x216f7a(0x112)]=window[_0x216f7a(0x26f)](_0x13c1b8,0x3e8);});}catch(_0x5d560b){this[_0x132adc(0x190)][_0x132adc(0x1ac)](_0x5d560b);}this[_0x132adc(0x279)][_0x132adc(0xe7)]({'content':this[_0x132adc(0x303)]['t'](_0x132adc(0x2c9)),'type':_0x22c147[_0x132adc(0x153)]});}[_0x10cc18(0x2cd)](_0x1ebad2,_0x2feae3){const _0x48e03b=_0x10cc18;try{this[_0x48e03b(0x29c)][_0x48e03b(0xfe)](_0x1ebad2['id'],_0x1ebad2['params'],_0x2feae3);}catch(_0x408758){this[_0x48e03b(0x190)][_0x48e03b(0x1ac)](_0x408758);}}[_0x10cc18(0x1ab)](_0x239057,_0x2a137d){const _0x19bdab=_0x10cc18;_0x2a137d<this['_lastResponseTimestamp']||(this[_0x19bdab(0x1db)]=_0x2a137d,this[_0x19bdab(0x308)]=Number[_0x19bdab(0x14a)](_0x239057[_0x19bdab(0x114)]),this['_currentUsage']=Number[_0x19bdab(0x14a)](_0x239057[_0x19bdab(0x1dc)]));}async[_0x10cc18(0x31c)](_0x40757c){const _0x177391=_0x10cc18;var _0x43ae04,_0x1eacac;const _0x48cdda=Date['now']();try{const _0x75aa=((_0x43ae04=this[_0x177391(0x1ca)][_0x177391(0x253)](_0x209e63))==null?void 0x0:_0x43ae04['startFormulaLimitUrl'])||Rn,_0xf07c7c=(await this['_httpService'][_0x177391(0x1e3)](_0x75aa,{'body':JSON[_0x177391(0x16f)]({'taskId':_0x40757c})}))[_0x177391(0x218)];if(((_0x1eacac=_0xf07c7c['error'])==null?void 0x0:_0x1eacac[_0x177391(0x23f)])!==Z['OK'])return;this[_0x177391(0x1ab)](_0xf07c7c['limitInfo'],_0x48cdda);}catch(_0x10e490){this[_0x177391(0x190)][_0x177391(0x1ac)](_0x10e490);}}async[_0x10cc18(0x24d)](_0x5b693e){const _0x3d6cf1=_0x10cc18;var _0x4bb7fc,_0xf0ca8c;const _0x31774c=Date[_0x3d6cf1(0x248)]();try{const _0x5c9066=((_0x4bb7fc=this[_0x3d6cf1(0x1ca)][_0x3d6cf1(0x253)](_0x209e63))==null?void 0x0:_0x4bb7fc['getformulaLimitStatusUrl'])||Cn,_0x426c71=_0x5b693e?_0x5c9066+_0x3d6cf1(0x2dd)+encodeURIComponent(_0x5b693e):_0x5c9066,_0xa02a4e=(await this['_httpService'][_0x3d6cf1(0x127)](_0x426c71))[_0x3d6cf1(0x218)];if(((_0xf0ca8c=_0xa02a4e[_0x3d6cf1(0x1ac)])==null?void 0x0:_0xf0ca8c[_0x3d6cf1(0x23f)])!==Z['OK'])return;this[_0x3d6cf1(0x1ab)](_0xa02a4e[_0x3d6cf1(0x215)],_0x31774c);}catch(_0x526784){this[_0x3d6cf1(0x190)]['error'](_0x526784);}}async[_0x10cc18(0x10c)](_0x54fa31){const _0x4999f7=_0x10cc18;var _0x39846e,_0x1acce6;const _0x524c8f=Date[_0x4999f7(0x248)]();try{const _0x54ec01=((_0x39846e=this[_0x4999f7(0x1ca)][_0x4999f7(0x253)](_0x209e63))==null?void 0x0:_0x39846e['releaseFormulaLimitUrl'])||Dn,_0x58f0e4=(await this[_0x4999f7(0x276)][_0x4999f7(0x1e3)](_0x54ec01,{'body':JSON[_0x4999f7(0x16f)]({'taskId':_0x54fa31})}))[_0x4999f7(0x218)];if(((_0x1acce6=_0x58f0e4[_0x4999f7(0x1ac)])==null?void 0x0:_0x1acce6[_0x4999f7(0x23f)])!==Z['OK'])return;this[_0x4999f7(0x1ab)](_0x58f0e4[_0x4999f7(0x215)],_0x524c8f);}catch(_0x26ac90){this[_0x4999f7(0x190)][_0x4999f7(0x1ac)](_0x26ac90);}}[_0x10cc18(0x17e)](){const _0x486023=_0x10cc18;return this[_0x486023(0x308)]===0x0?!0x0:this[_0x486023(0x308)]-this[_0x486023(0x2c1)]>0x0;}['_clearPolling'](){const _0x5f5061=_0x10cc18;this[_0x5f5061(0x112)]&&(clearTimeout(this[_0x5f5061(0x112)]),this[_0x5f5061(0x112)]=null);}[_0x10cc18(0x11c)](){const _0x3fc532=_0x10cc18;this['_messageService']['show']({'content':this['_localeService']['t'](_0x3fc532(0x28a)),'type':_0x22c147['Loading']});}['_hasFormulaInDirtyRanges'](_0x4d703e){const _0x5400d9=_0x10cc18;for(const _0xa31837 of _0x4d703e){const {unitId:_0x58189d,sheetId:_0x42ae4a,range:_0x3f34ae}=_0xa31837,_0x22ad5e=this['_univerInstanceService'][_0x5400d9(0x30b)](_0x58189d);if(!_0x22ad5e)continue;const _0x3ecccb=_0x22ad5e[_0x5400d9(0x21d)](_0x42ae4a);if(!_0x3ecccb)continue;const _0xa9be59=_0x3ecccb['getCellMatrix']();for(let _0x131aca=_0x3f34ae['startRow'];_0x131aca<=_0x3f34ae[_0x5400d9(0x296)];_0x131aca++)for(let _0x3be568=_0x3f34ae[_0x5400d9(0x280)];_0x3be568<=_0x3f34ae[_0x5400d9(0x15f)];_0x3be568++){const _0x970438=_0xa9be59[_0x5400d9(0x27f)](_0x131aca,_0x3be568);if(_0x970438&&(_0x5b53ca(_0x970438['f'])||_0x3e9eba(_0x970438['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x2c9f2f(_0x41d342)),P(0x1,_0x526fee),P(0x2,_0x56b98d),P(0x3,_0x2c9f2f(_0x47ffcb)),P(0x4,_0x631d26),P(0x5,_0x1368e3),P(0x6,_0x2c9f2f(_0xefd7ba))],me);var bn=Object[_0x10cc18(0x1ea)],Nn=(_0x319729,_0x5f370c,_0x5c45fd,_0x2926dc)=>{const _0x4eaab6=_0x10cc18;for(var _0x15db89=_0x2926dc>0x1?void 0x0:_0x2926dc?bn(_0x5f370c,_0x5c45fd):_0x5f370c,_0x4ac0c5=_0x319729[_0x4eaab6(0xf9)]-0x1,_0x17ddaf;_0x4ac0c5>=0x0;_0x4ac0c5--)(_0x17ddaf=_0x319729[_0x4ac0c5])&&(_0x15db89=_0x17ddaf(_0x15db89)||_0x15db89);return _0x15db89;},Ue=(_0x73662f,_0x465a86)=>(_0x1d7436,_0x453bf6)=>_0x465a86(_0x1d7436,_0x453bf6,_0x73662f);let He=class extends _0x3e748e{constructor(_0x3aab84,_0x5cc44c,_0x4579e9){const _0x77a84d=_0x10cc18;super(),_(this,_0x77a84d(0x2f9),new Map()),_(this,_0x77a84d(0x113),new Map()),_(this,_0x77a84d(0x118),!0x1),(this[_0x77a84d(0x1ca)]=_0x3aab84,this[_0x77a84d(0x2ee)]=_0x5cc44c,this['_revisionService']=_0x4579e9);}[_0x10cc18(0x306)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x2ef407=_0x10cc18;this[_0x2ef407(0x118)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}['dispose'](){const _0x2aa743=_0x10cc18;this[_0x2aa743(0x227)]()[_0x2aa743(0x1af)](()=>super[_0x2aa743(0x233)]());}async[_0x10cc18(0x286)](_0x12a3db){const _0x59febf=_0x10cc18;return this[_0x59febf(0x118)]?null:this[_0x59febf(0x2ee)][_0x59febf(0x183)](_0x59f688(_0x12a3db));}async['saveOfflineData'](_0x10c72f,_0x26ed98){const _0x448d62=_0x10cc18;return!!this[_0x448d62(0x2ee)][_0x448d62(0x1a5)](_0x10c72f,_0x26ed98);}['updateOfflineData'](_0x5f7ebf,_0x38a9d8,_0x26dea1,_0x9fcaa0){const _0x3186d6=_0x10cc18,_0x2c4d2f=this[_0x3186d6(0x271)][_0x3186d6(0x125)](_0x5f7ebf);this[_0x3186d6(0x2f9)][_0x3186d6(0x239)](_0x5f7ebf,{'unitID':_0x5f7ebf,'type':_0x38a9d8,'awaitingChangeset':_0x26dea1,'mutations':_0x9fcaa0,'rev':_0x2c4d2f}),this['_saveTaskMap'][_0x3186d6(0x2bd)](_0x5f7ebf)||this['_scheduleSaving'](_0x5f7ebf);}[_0x10cc18(0x192)](_0x4d405a){const _0x1739ea=_0x10cc18,_0xaa4964=this['_getSaveTimeout']();_0xaa4964===0x0?this[_0x1739ea(0x2f0)](_0x4d405a):this[_0x1739ea(0x113)]['set'](_0x4d405a,setTimeout(()=>this[_0x1739ea(0x2f0)](_0x4d405a),_0xaa4964));}[_0x10cc18(0x135)](){const _0x40f0a2=_0x10cc18;var _0x3ea499;return(_0x3ea499=this[_0x40f0a2(0x1ca)][_0x40f0a2(0x253)](_0x24dd1f))!=null?_0x3ea499:_0x4a9fea;}[_0x10cc18(0x2f0)](_0x5829f3){const _0x5476f8=_0x10cc18,_0x551406=this[_0x5476f8(0x113)]['get'](_0x5829f3);return _0x551406!==void 0x0&&window['clearTimeout'](_0x551406),this[_0x5476f8(0x2ee)]['setItem'](_0x59f688(_0x5829f3),this[_0x5476f8(0x2f9)][_0x5476f8(0x127)](_0x5829f3))[_0x5476f8(0x1af)](()=>this[_0x5476f8(0x113)]['delete'](_0x5829f3));}async[_0x10cc18(0x227)](){const _0x54606a=_0x10cc18,_0x2c46d0=[];this[_0x54606a(0x113)][_0x54606a(0x12c)]((_0x5a8c95,_0x4d6886)=>{const _0x2f714e=_0x54606a;window[_0x2f714e(0x210)](_0x5a8c95),_0x2c46d0[_0x2f714e(0x1ed)](this[_0x2f714e(0x2f0)](_0x4d6886)['then'](()=>{const _0x419443=_0x2f714e;this['_saveTaskMap'][_0x419443(0x264)](_0x4d6886);}));}),await Promise['all'](_0x2c46d0);}};He=Nn([Ue(0x0,_0x56b98d),Ue(0x1,_0x2ba981),Ue(0x2,_0x2c9f2f(_0x6cec3d))],He);class Ln extends _0x460db8{constructor(){const _0x968c34=_0x10cc18;super(),_(this,_0x968c34(0x156)),this['urlChange$']=_0x5171f8(window,_0x968c34(0x178))[_0x968c34(0x297)](_0x55bd62(this[_0x968c34(0x20f)]),_0x1b1b8c(0x1),_0x5a5b3d(void 0x0));}['setParam'](_0xbb5dc2,_0x57483e,_0x7da0e4=!0x1){const _0x38b1d0=_0x10cc18,_0x2f8841=new URL(window[_0x38b1d0(0x22d)]['href']);_0x2f8841['searchParams'][_0x38b1d0(0x239)](_0xbb5dc2,_0x57483e),_0x7da0e4?window['history']['replaceState']('','',_0x2f8841['toString']()):window[_0x38b1d0(0x1fa)]['pushState']('','',_0x2f8841[_0x38b1d0(0x1cc)]());}['removeParam'](_0x2c0bb9,_0x1c06cc=!0x1){const _0x3e1cdc=_0x10cc18,_0x110853=new URL(window[_0x3e1cdc(0x22d)][_0x3e1cdc(0x1fb)]);_0x110853['searchParams'][_0x3e1cdc(0x264)](_0x2c0bb9),_0x1c06cc?window[_0x3e1cdc(0x1fa)][_0x3e1cdc(0x15e)]('','',_0x110853[_0x3e1cdc(0x1cc)]()):window[_0x3e1cdc(0x1fa)]['pushState']('','',_0x110853[_0x3e1cdc(0x1cc)]());}[_0x10cc18(0x19e)](_0x21d338){const _0x424f34=_0x10cc18;var _0x2b79eb;return(_0x2b79eb=new URL(window['location'][_0x424f34(0x1fb)])[_0x424f34(0x268)][_0x424f34(0x127)](_0x21d338))!=null?_0x2b79eb:void 0x0;}}var Un=Object[_0x10cc18(0x1e4)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x91efb5,_0x36a199,_0x58275f)=>_0x36a199 in _0x91efb5?Un(_0x91efb5,_0x36a199,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58275f}):_0x91efb5[_0x36a199]=_0x58275f,Pn=(_0x4cb136,_0x255336,_0x271932,_0x37d324)=>{const _0x2f0fe3=_0x10cc18;for(var _0x318a6a=_0x37d324>0x1?void 0x0:_0x37d324?Mn(_0x255336,_0x271932):_0x255336,_0x2be757=_0x4cb136[_0x2f0fe3(0xf9)]-0x1,_0x1d9d1d;_0x2be757>=0x0;_0x2be757--)(_0x1d9d1d=_0x4cb136[_0x2be757])&&(_0x318a6a=_0x1d9d1d(_0x318a6a)||_0x318a6a);return _0x318a6a;},Me=(_0x1bb5fe,_0x2b4022)=>(_0x37b692,_0x5db2ac)=>_0x2b4022(_0x37b692,_0x5db2ac,_0x1bb5fe),wn=(_0x1a0a10,_0x832b9d,_0x4495ca)=>An(_0x1a0a10,_0x832b9d+'',_0x4495ca);const yn=_0x10cc18(0x23c);let Ye=class extends _0x5ba41c{constructor(_0x4ff199=_t,_0x101755,_0x52d32c,_0x15e84e){const _0x9994fb=_0x10cc18;super(),this[_0x9994fb(0x32d)]=_0x4ff199,this[_0x9994fb(0x1f0)]=_0x101755,this[_0x9994fb(0xf0)]=_0x52d32c,this[_0x9994fb(0x1ca)]=_0x15e84e;const {..._0x3fd4c3}=_0x5c3498({},_t,this[_0x9994fb(0x32d)]);this[_0x9994fb(0x1ca)][_0x9994fb(0x304)](hn,_0x3fd4c3);}[_0x10cc18(0x170)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x10cc18(0x20d)](){const _0x5eacef=_0x10cc18;this[_0x5eacef(0x223)]();}['_registerDependencies'](){const _0x5c6086=_0x10cc18;var _0x1300f6;const _0x43486e=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2befe2,{'useClass':_0x21a377}],[_0x3a4f5a,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x5c6086(0x32d)][_0x5c6086(0xec)]&&_0x43486e[_0x5c6086(0x1ed)]([le]),_0x4b4f71(this[_0x5c6086(0xf0)],_0x436173(_0x43486e,(_0x1300f6=this[_0x5c6086(0x32d)])==null?void 0x0:_0x1300f6[_0x5c6086(0x15d)]));}[_0x10cc18(0x223)](){const _0x143203=_0x10cc18;this[_0x143203(0x1bc)](this[_0x143203(0x1f0)]['registerRenderModule'](_0x5045e8[_0x143203(0x238)],[Fe])),this[_0x143203(0x1bc)](this['_renderManagerService'][_0x143203(0x282)](_0x5045e8[_0x143203(0x1f7)],[ke]));}[_0x10cc18(0x2d5)](){const _0x20bf6c=_0x10cc18;_0x569f6e(this['_injector'],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x20bf6c(0x32d)][_0x20bf6c(0xec)]&&_0x569f6e(this[_0x20bf6c(0xf0)],[[le]]);}};wn(Ye,_0x10cc18(0x27d),yn),Ye=Pn([_0x5aa65c(_0x4c184a),Me(0x1,_0x20cff4),Me(0x2,_0x2c9f2f(_0x3955fb)),Me(0x3,_0x56b98d)],Ye);var $n=Object[_0x10cc18(0x1ea)],xn=(_0x2cda49,_0x2a7bb9,_0x264cab,_0x353d96)=>{for(var _0x199d1b=_0x353d96>0x1?void 0x0:_0x353d96?$n(_0x2a7bb9,_0x264cab):_0x2a7bb9,_0x2a9cc7=_0x2cda49['length']-0x1,_0x547287;_0x2a9cc7>=0x0;_0x2a9cc7--)(_0x547287=_0x2cda49[_0x2a9cc7])&&(_0x199d1b=_0x547287(_0x199d1b)||_0x199d1b);return _0x199d1b;},J=(_0x37f494,_0x345cb0)=>(_0x2302d9,_0x1a8027)=>_0x345cb0(_0x2302d9,_0x1a8027,_0x37f494);let ut=class extends _0x4e6c96{constructor(_0x51a5ff,_0x357894,_0x58dd81,_0xc7c605,_0x16f00e){super(_0x51a5ff,_0x357894,_0x58dd81,_0xc7c605,_0x16f00e);}async['createSocket'](_0x114931){const _0xff6cf4=_0x10cc18,_0x53ad48=await this[_0xff6cf4(0x1a7)](),_0x50eb7d=this[_0xff6cf4(0x111)](_0x114931,_0x53ad48);return this['_doCreateSocket'](_0x50eb7d);}[_0x10cc18(0x111)](_0x38f540,_0x398c04){const _0x62bedd=_0x10cc18,_0x1857a4=typeof window>'u'?new URL(_0x38f540):new URL(_0x38f540,window[_0x62bedd(0x22d)][_0x62bedd(0x169)]);_0x1857a4['searchParams'][_0x62bedd(0x239)](_0x62bedd(0x2a4),_0x398c04);const _0x187d87=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x62bedd(0x22d)]['search']);return _0x187d87[_0x62bedd(0x127)]('runId')&&_0x1857a4[_0x62bedd(0x268)][_0x62bedd(0x239)](_0x62bedd(0x313),_0x187d87[_0x62bedd(0x127)](_0x62bedd(0x313))),_0x1857a4[_0x62bedd(0x1cc)]();}async[_0x10cc18(0x1a7)](){const _0x2eddaa=_0x10cc18;var _0xaacdb,_0x9d68d9,_0x3d4511;const _0x199628=this[_0x2eddaa(0x1ca)]['getConfig'](_0x209e63),_0x2b7053=(_0xaacdb=_0x199628==null?void 0x0:_0x199628['wsSessionTicketUrl'])!=null?_0xaacdb:_0x45c098;return(_0x3d4511=(_0x9d68d9=(await this[_0x2eddaa(0x276)]['get'](_0x2b7053,{'headers':{'Content-Type':_0x2eddaa(0x162)}}))[_0x2eddaa(0x218)])==null?void 0x0:_0x9d68d9[_0x2eddaa(0x24a)])!=null?_0x3d4511:'';}};ut=xn([J(0x0,_0x2c9f2f(_0x3955fb)),J(0x1,_0x2c9f2f(_0x47ffcb)),J(0x2,_0x56b98d),J(0x3,_0x1368e3),J(0x4,_0x4a0d66)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x3af744,_0x2d80a9,_0x2f82ce,_0x56e808)=>{for(var _0x3b51bf=_0x56e808>0x1?void 0x0:_0x56e808?Bn(_0x2d80a9,_0x2f82ce):_0x2d80a9,_0x56b40c=_0x3af744['length']-0x1,_0x20fa39;_0x56b40c>=0x0;_0x56b40c--)(_0x20fa39=_0x3af744[_0x56b40c])&&(_0x3b51bf=_0x20fa39(_0x3b51bf)||_0x3b51bf);return _0x3b51bf;},Ae=(_0x4ef56f,_0x33b4c1)=>(_0x1ce0eb,_0x29052b)=>_0x33b4c1(_0x1ce0eb,_0x29052b,_0x4ef56f);let dt=class extends _0x3e748e{constructor(_0x1f5809,_0x26244d,_0xef789e){const _0x3ee5ff=_0x10cc18;super(),this[_0x3ee5ff(0x19c)]=_0x1f5809,this[_0x3ee5ff(0x276)]=_0x26244d,this[_0x3ee5ff(0x1ca)]=_0xef789e;}async[_0x10cc18(0x273)](_0x5a2c86,_0x2b267c,_0x46e808,..._0x18d2ce){const _0x313f05=_0x10cc18;var _0x468ed3,_0x579cd8,_0x2d6080,_0x2f834a;const _0x2db994=this[_0x313f05(0x19c)][_0x313f05(0x167)]();if(!_0x2db994)throw new Error(_0x313f05(0x245));const _0x81eb29=((_0x468ed3=this['_configService'][_0x313f05(0x253)](_0x2d33ca))!=null?_0x468ed3:_0x550c3a)+'/'+_0x5a2c86+_0x313f05(0x2ac)+_0x2b267c,_0x543ad3=new URL(window[_0x313f05(0x22d)][_0x313f05(0x1fb)]),_0x8a8c19={'scriptId':_0x5a2c86,'runId':(_0x579cd8=_0x543ad3[_0x313f05(0x268)][_0x313f05(0x127)](_0x313f05(0x313)))!=null?_0x579cd8:'','function':_0x2b267c,'unitId':_0x2db994[_0x313f05(0x25a)](),'argsOfFunction':JSON[_0x313f05(0x16f)](_0x18d2ce),'invokeId':(_0x2d6080=_0x46e808[_0x313f05(0x165)])!=null?_0x2d6080:'','executionId':(_0x2f834a=_0x46e808[_0x313f05(0x28f)])!=null?_0x2f834a:''};try{const _0x21fdb2=await this['_httpService'][_0x313f05(0x1e3)](_0x81eb29,{'body':_0x8a8c19});return _0x21fdb2[_0x313f05(0x218)][_0x313f05(0x1ac)]&&_0x21fdb2['body'][_0x313f05(0x1ac)][_0x313f05(0x23f)]!==Z['OK']?_0x313f05(0x180):_0x21fdb2['body'][_0x313f05(0x1f1)];}catch{return _0x313f05(0x180);}}};dt=Fn([Ae(0x0,_0x631d26),Ae(0x1,_0x2c9f2f(_0x47ffcb)),Ae(0x2,_0x56b98d)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x3e748e{constructor(){const _0x22a3f0=_0x10cc18;super(),_(this,_0x22a3f0(0x193),_0x5236ab()),_(this,_0x22a3f0(0x182),new Set()),_(this,_0x22a3f0(0x1f9),new Map()),_(this,_0x22a3f0(0x20a),null),_(this,_0x22a3f0(0x140),new Map()),_(this,_0x22a3f0(0x1c8),new Map()),this[_0x22a3f0(0x25e)]();}[_0x10cc18(0x233)](){const _0x379395=_0x10cc18;super[_0x379395(0x233)](),this['_clearOtherTimers'][_0x379395(0x12c)]((_0x24c887,_0x5d6e06)=>this[_0x379395(0x116)](_0x5d6e06)),this['_heartbeatTimer']&&window[_0x379395(0x1ad)](this[_0x379395(0x20a)]);}[_0x10cc18(0x295)](_0x234293){const _0x57ea34=_0x10cc18;return this['_ensureSubject'](_0x234293)[_0x57ea34(0x297)](_0x34b2d2());}[_0x10cc18(0xe6)](_0x36c3e2){const _0x543cf3=_0x10cc18;this[_0x543cf3(0x182)][_0x543cf3(0x20b)]===0x0&&this[_0x543cf3(0xef)](),this[_0x543cf3(0x182)][_0x543cf3(0xff)](_0x36c3e2),this[_0x543cf3(0x31b)]({'type':0x0,'memberID':this[_0x543cf3(0x193)],'unitIDs':[_0x36c3e2],'isForwarded':!0x1});}[_0x10cc18(0x2be)](_0x4dd8e7){const _0x143b7b=_0x10cc18;this[_0x143b7b(0x182)][_0x143b7b(0x264)](_0x4dd8e7),this['_selfUnitIDs'][_0x143b7b(0x20b)]===0x0&&this[_0x143b7b(0x20a)]&&window[_0x143b7b(0x1ad)](this[_0x143b7b(0x20a)]);}['_init'](){const _0x11f171=_0x10cc18;this[_0x11f171(0x1bc)](_0x555679(_0x5171f8(window,_0x11f171(0x161))[_0x11f171(0x288)](_0x25825a=>{const _0x3daa5a=_0x11f171;if(_0x25825a[_0x3daa5a(0x26c)]!==mt||!_0x25825a[_0x3daa5a(0x2d0)])return;const _0x531686=JSON[_0x3daa5a(0x2f1)](_0x25825a[_0x3daa5a(0x2d0)]);this[_0x3daa5a(0x2d2)](_0x531686);}))),window['addEventListener']('unload',()=>this[_0x11f171(0x31b)]({'type':0x1,'memberID':this[_0x11f171(0x193)],'unitIDs':Array[_0x11f171(0x2ef)](this[_0x11f171(0x182)])}));}[_0x10cc18(0x2d2)](_0x441807){const _0x2789bb=_0x10cc18;switch(_0x441807['type']){case 0x0:this['_handleJoinEvent'](_0x441807);break;case 0x1:this['_handleLeaveEvent'](_0x441807);break;case 0x2:this[_0x2789bb(0x18b)](_0x441807);break;}}[_0x10cc18(0x32f)](_0xa26ff4){const {unitIDs:_0x2f5912,memberID:_0x17e488,isForwarded:_0x5e820f}=_0xa26ff4;_0x2f5912['forEach'](_0x3a5e9e=>{const _0x52d019=_0x58c2;if(!_0x5e820f&&this[_0x52d019(0x1f9)][_0x52d019(0x2bd)](_0x3a5e9e)&&this['_ensureSubject'](_0x3a5e9e)[_0x52d019(0x1e1)](_0x4078f0[_0x52d019(0x26b)]),!this[_0x52d019(0x1f9)]['has'](_0x3a5e9e)||!this[_0x52d019(0x1f9)]['get'](_0x3a5e9e)[_0x52d019(0x2bd)](_0x17e488)){const _0xa7913d=this[_0x52d019(0x1f9)][_0x52d019(0x127)](_0x3a5e9e)||new Set();_0xa7913d['add'](_0x17e488),this[_0x52d019(0x1f9)][_0x52d019(0x239)](_0x3a5e9e,_0xa7913d),this[_0x52d019(0x21b)](_0x17e488);}}),_0x5e820f||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x10cc18(0x21b)](_0x33cb75){const _0x15136a=_0x10cc18;this[_0x15136a(0x116)](_0x33cb75);const _0x4737d9=window[_0x15136a(0x26f)](()=>{this['_unitOnClients']['forEach'](_0x4864ff=>{const _0x5a0c73=_0x58c2;_0x4864ff[_0x5a0c73(0x264)](_0x33cb75);});},St*0x2);this[_0x15136a(0x140)]['set'](_0x33cb75,_0x4737d9);}[_0x10cc18(0x116)](_0x252d8d){const _0x2dacad=_0x10cc18;if(this[_0x2dacad(0x140)][_0x2dacad(0x2bd)](_0x252d8d)){const _0x406672=this[_0x2dacad(0x140)][_0x2dacad(0x127)](_0x252d8d);_0x406672&&window[_0x2dacad(0x210)](_0x406672),this[_0x2dacad(0x140)][_0x2dacad(0x239)](_0x252d8d,null);}}[_0x10cc18(0x2e4)](_0x40e046){const _0x154c8f=_0x10cc18,{memberID:_0x3e7fa7,unitIDs:_0x4ac60b}=_0x40e046;_0x4ac60b[_0x154c8f(0x12c)](_0x5984ee=>{const _0x4ac451=_0x154c8f;var _0x1c66e0;const _0x502ec6=this[_0x4ac451(0x1f9)][_0x4ac451(0x127)](_0x5984ee);_0x502ec6&&(_0x502ec6[_0x4ac451(0x264)](_0x3e7fa7),(_0x1c66e0=this[_0x4ac451(0x197)](_0x5984ee))==null||_0x1c66e0[_0x4ac451(0x1e1)](_0x502ec6[_0x4ac451(0x20b)]===0x0?_0x4078f0[_0x4ac451(0x143)]:_0x4078f0[_0x4ac451(0x26b)]));}),this['_removeClearOtherTimer'](_0x3e7fa7);}['_handleHeartbeatEvent'](_0x31b9ea){const _0x3d5b5d=_0x10cc18;this[_0x3d5b5d(0x21b)](_0x31b9ea[_0x3d5b5d(0x2e2)]);}[_0x10cc18(0x31b)](_0x5167f7){const _0x44c52d=_0x10cc18;localStorage['setItem'](mt,JSON[_0x44c52d(0x16f)](_0x5167f7));}[_0x10cc18(0xef)](){const _0xb654e6=_0x10cc18;this[_0xb654e6(0x20a)]=window[_0xb654e6(0x2ff)](()=>{const _0x52e312=_0xb654e6;this[_0x52e312(0x31b)]({'type':0x2,'memberID':this['_id']});},St);}[_0x10cc18(0x197)](_0x2c9fdb){const _0x4c26e8=_0x10cc18;return this[_0x4c26e8(0x1c8)][_0x4c26e8(0x2bd)](_0x2c9fdb)||this[_0x4c26e8(0x1c8)]['set'](_0x2c9fdb,new _0x1ced39(_0x4078f0[_0x4c26e8(0x143)])),this['_unitStatus'][_0x4c26e8(0x127)](_0x2c9fdb);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};