@univerjs-pro/collaboration-client-ui 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260122-b1556b1

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 _0x240916=_0x9124;(function(_0x14df41,_0x392860){const _0x3c8605=_0x9124,_0x5d3b27=_0x14df41();while(!![]){try{const _0x416a3e=parseInt(_0x3c8605(0x197))/0x1+parseInt(_0x3c8605(0x1b8))/0x2+parseInt(_0x3c8605(0x16f))/0x3+-parseInt(_0x3c8605(0x2cc))/0x4+parseInt(_0x3c8605(0xf5))/0x5+-parseInt(_0x3c8605(0x148))/0x6+-parseInt(_0x3c8605(0x17d))/0x7;if(_0x416a3e===_0x392860)break;else _0x5d3b27['push'](_0x5d3b27['shift']());}catch(_0xb31671){_0x5d3b27['push'](_0x5d3b27['shift']());}}}(_0xf9f6,0xbd63b));var Yt=Object[_0x240916(0x10c)],Wt=(_0x753bc5,_0x2f8d89,_0x16cc9d)=>_0x2f8d89 in _0x753bc5?Yt(_0x753bc5,_0x2f8d89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cc9d}):_0x753bc5[_0x2f8d89]=_0x16cc9d,_=(_0x3e7e3f,_0x388dd2,_0x182eec)=>Wt(_0x3e7e3f,typeof _0x388dd2!=_0x240916(0x290)?_0x388dd2+'':_0x388dd2,_0x182eec);function _0x9124(_0x4eef53,_0x4385c1){_0x4eef53=_0x4eef53-0xce;const _0xf9f668=_0xf9f6();let _0x912412=_0xf9f668[_0x4eef53];return _0x912412;}import{jsx as _0xc53f37,jsxs as _0x20f8a2}from'react/jsx-runtime';import{CollaborationStatus as _0x1cb4cc,CollaborationSessionService as _0x27d44b,CollaborationController as _0x4a10bf,DataLoaderService as _0x361d6f,MemberService as _0x11723a,SessionStatus as _0x83b48e,ILocalCacheService as _0x45d2d0,CollaborationUIEventService as _0x1be880,CollaborationUIEventId as _0x892b1e,DocCollaborationEntity as _0x320279,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2941e8,getLocalCacheKey as _0x373961,LOCAL_CACHE_INTERVAL as _0x197b86,LOCAL_CACHE_INTERVAL_KEY as _0x67fadd,UniverCollaborationClientPlugin as _0x3f596b,CollaborationSocketService as _0x5d1c82,DEFAULT_WS_SESSION_TICKET_URL as _0x67f602,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x2b191a,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x50718d,UnitStatus as _0x58c8e7}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x53f064,IUniverInstanceService as _0x81870d,Inject as _0x451de1,Injector as _0x30dac5,Disposable as _0xf771d3,createIdentifier as _0x3cc41a,ILogService as _0x48e521,ICommandService as _0x5e5675,Optional as _0x590a7d,RxDisposable as _0x3122c4,Workbook as _0x8b9ea7,DOC_RANGE_TYPE as _0x3c1574,debounce as _0x17e35b,Rectangle as _0x49f784,DisposableCollection as _0x113270,toDisposable as _0x13afa3,UniverInstanceType as _0x2e1b84,generateRandomId as _0x2664d4,COLORS as _0x2b8935,ColorKit as _0x19d4f9,ThemeService as _0x57f958,fromEventSubject as _0x63123d,Tools as _0x141325,CommandType as _0x445795,IConfigService as _0x1510c1,CanceledError as _0x100082,isFormulaString as _0x53c2f3,isFormulaId as _0x390515,ILocalStorageService as _0x3a4d59,DependentOn as _0x394ca8,Plugin as _0x18025e,merge as _0x3aa68c,registerDependencies as _0x4856aa,mergeOverrideWithDependencies as _0xc1ed92,touchDependencies as _0xa68686}from'@univerjs/core';import{useObservable as _0x2e10a2,useDependency as _0x3d0f09,IUIPartsService as _0x3cadbd,BuiltInUIPart as _0x5ab223,connectInjector as _0x3361c7,IBeforeCloseService as _0x159d32,IMessageService as _0x110574,INotificationService as _0xbbab2c}from'@univerjs/ui';import{BehaviorSubject as _0x37599d,switchMap as _0x38976a,of as _0x4cadb4,takeUntil as _0xb0eea8,debounceTime as _0x18bb22,Subject as _0x16d6c4,filter as _0xa9cd8e,merge as _0x4bce0e,combineLatest as _0x207d2b,fromEvent as _0x572af5,shareReplay as _0x5f297a,mapTo as _0x15fcb9,distinctUntilChanged as _0x57e7da}from'rxjs';import{Tooltip as _0x3726b7,clsx as _0x52ece7,MessageType as _0x24cf21}from'@univerjs/design';import{useRef as _0x4e3cf1,createElement as _0x21c330,forwardRef as _0x3805e3,useCallback as _0x5a6b05}from'react';import{IRemoteInstanceService as _0x6f5dda}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x103b32,RefRangeService as _0x44115d,SetSelectionsOperation as _0x12ebb5,SheetsSelectionsService as _0x368647,EffectRefRangId as _0xab8473,handleIRemoveRow as _0x3ad6e3,handleIRemoveCol as _0x4b51ea,handleMoveRange as _0x133eca,handleInsertRow as _0x209d65,handleInsertRangeMoveRight as _0x20f389,handleInsertRangeMoveDown as _0x3fc51e,handleInsertCol as _0x17c1bf,handleDeleteRangeMoveUp as _0x1d554c,handleDeleteRangeMoveLeft as _0x5940a0,runRefRangeMutations as _0x4fc651}from'@univerjs/sheets';import{Shape as _0xa92bc,Rect as _0x3d2ae1,getColor as _0x525b34,RegularPolygon as _0x542d56,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x97306c,Vector2 as _0x2e233c,SHEET_VIEWPORT_KEY as _0xf0062,IRenderManagerService as _0x4d689b}from'@univerjs/engine-render';import{HTTPService as _0x20e19d,ISocketService as _0x237440,WebSocketService as _0x276479}from'@univerjs/network';import{IDocClipboardService as _0x42c8e5,NodePositionConvertToCursor as _0x150b12,NodePositionConvertToRectRange as _0x19dc65,TEXT_RANGE_LAYER_INDEX as _0x15a21c,SetDocZoomRatioOperation as _0x1a7732,DocIMEInputManagerService as _0x193f11,DocStateChangeManagerService as _0x3199a5}from'@univerjs/docs-ui';import{IImageIoService as _0x152fb2}from'@univerjs/drawing';import{ITransformService as _0x10d68c,CollaborationEvent as _0x761ce2,isTransformMutationFailure as _0x699f6f,isTransformMutationsWithChangesetSuccess as _0x73df74,RevisionService as _0x5092a2,ISnapshotServerService as _0x295e6f}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x43bf97,RichTextEditingMutation as _0x87d6e4,DocSelectionManagerService as _0x5f3a65,DocSkeletonManagerService as _0x1102c9}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1ec9a4,serializeRangeWithSheet as _0x47dbec,FormulaExecuteStageType as _0x39b8f6,FormulaExecutedStateType as _0xb5c3c9,SetFormulaCalculationStartMutation as _0x1971b5,SetFormulaCalculationNotificationMutation as _0x446ee4}from'@univerjs/engine-formula';import{map as _0x58bc15,filter as _0x491785,throttleTime as _0x3118d0,takeUntil as _0x2b4e82,switchMap as _0x1fc78b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x3e7369,getCoordByCell as _0xdb9d86,getSheetObject as _0x453f91}from'@univerjs/sheets-ui';function Ge({ref:_0x30581c,..._0x5c497f}){const _0x409716=_0x240916,{icon:_0x39741f,id:_0x174781,className:_0x56f2b9,extend:_0x1fb941,..._0x5f46b1}=_0x5c497f,_0x8f1960=(_0x409716(0x2f4)+_0x174781+'\x20'+(_0x56f2b9||''))['trim'](),_0x4380c3=_0x4e3cf1('_'+vi());return At(_0x39741f,''+_0x174781,{'defIds':_0x39741f['defIds'],'idSuffix':_0x4380c3[_0x409716(0x131)]},{'ref':_0x30581c,'className':_0x8f1960,..._0x5f46b1},_0x1fb941);}function At(_0x1b83f3,_0x55b0cd,_0x1dd509,_0x2d3344,_0x2e70ff){const _0x471f3c=_0x240916;return _0x21c330(_0x1b83f3[_0x471f3c(0x2c8)],{'key':_0x55b0cd,...gi(_0x1b83f3,_0x1dd509,_0x2e70ff),..._0x2d3344},(Ei(_0x1b83f3,_0x1dd509)[_0x471f3c(0x1af)]||[])[_0x471f3c(0x281)]((_0x53b6b8,_0x29b22c)=>At(_0x53b6b8,_0x55b0cd+'-'+_0x1b83f3[_0x471f3c(0x2c8)]+'-'+_0x29b22c,_0x1dd509,void 0x0,_0x2e70ff)));}function gi(_0x31fca8,_0x1b969b,_0x271c04){const _0x1bc8e6=_0x240916,_0x30e3a2={..._0x31fca8[_0x1bc8e6(0x244)]};_0x271c04!=null&&_0x271c04[_0x1bc8e6(0x195)]&&_0x30e3a2['fill']===_0x1bc8e6(0x195)&&(_0x30e3a2[_0x1bc8e6(0x224)]=_0x271c04['colorChannel1']),_0x31fca8['tag']==='mask'&&_0x30e3a2['id']&&(_0x30e3a2['id']=_0x30e3a2['id']+_0x1b969b[_0x1bc8e6(0x27c)]),Object['entries'](_0x30e3a2)[_0x1bc8e6(0x2e8)](([_0x1461f5,_0xf19524])=>{const _0x3bdbee=_0x1bc8e6;_0x1461f5===_0x3bdbee(0x249)&&typeof _0xf19524==_0x3bdbee(0x19c)&&(_0x30e3a2[_0x1461f5]=_0xf19524['replace'](/url\(#(.*)\)/,_0x3bdbee(0x297)+_0x1b969b['idSuffix']+')'));});const {defIds:_0x195eb6}=_0x1b969b;return!_0x195eb6||_0x195eb6[_0x1bc8e6(0xfb)]===0x0||(_0x31fca8['tag']==='use'&&_0x30e3a2[_0x1bc8e6(0x222)]&&(_0x30e3a2[_0x1bc8e6(0x222)]=_0x30e3a2[_0x1bc8e6(0x222)]+_0x1b969b[_0x1bc8e6(0x27c)]),Object[_0x1bc8e6(0xe9)](_0x30e3a2)[_0x1bc8e6(0x2e8)](([_0x2ad8bf,_0x5a5442])=>{const _0x15e23a=_0x1bc8e6;typeof _0x5a5442==_0x15e23a(0x19c)&&(_0x30e3a2[_0x2ad8bf]=_0x5a5442[_0x15e23a(0x12a)](/url\(#(.*)\)/,'url(#$1'+_0x1b969b['idSuffix']+')'));})),_0x30e3a2;}function Ei(_0x561505,_0x42f9d1){const _0x178cb5=_0x240916;var _0x55f2da;const {defIds:_0x5e7036}=_0x42f9d1;return!_0x5e7036||_0x5e7036[_0x178cb5(0xfb)]===0x0?_0x561505:_0x561505['tag']==='defs'&&((_0x55f2da=_0x561505[_0x178cb5(0x1af)])!=null&&_0x55f2da[_0x178cb5(0xfb)])?{..._0x561505,'children':_0x561505[_0x178cb5(0x1af)][_0x178cb5(0x281)](_0x53a312=>typeof _0x53a312[_0x178cb5(0x244)]['id']=='string'&&_0x5e7036&&_0x5e7036['includes'](_0x53a312['attrs']['id'])?{..._0x53a312,'attrs':{..._0x53a312[_0x178cb5(0x244)],'id':_0x53a312[_0x178cb5(0x244)]['id']+_0x42f9d1['idSuffix']}}:_0x53a312)}:_0x561505;}function vi(){const _0x4a9e19=_0x240916;return Math[_0x4a9e19(0x21d)]()[_0x4a9e19(0x257)](0x24)[_0x4a9e19(0x1ce)](0x2,0x8);}Ge[_0x240916(0x18b)]=_0x240916(0x134);const pi={'tag':_0x240916(0x138),'attrs':{'xmlns':_0x240916(0x25f),'fill':_0x240916(0x319),'viewBox':'0\x200\x2016\x2016','width':_0x240916(0x18d),'height':_0x240916(0x18d)},'children':[{'tag':'g','attrs':{'clipPath':_0x240916(0x204)},'children':[{'tag':_0x240916(0x10a),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x240916(0x229),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x240916(0x196),'attrs':{},'children':[{'tag':_0x240916(0x177),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x240916(0x10a),'attrs':{'fill':_0x240916(0x20b),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x3805e3(function(_0x54d846,_0x4cefd5){const _0xdabca6=_0x240916;return _0x21c330(Ge,Object[_0xdabca6(0x23d)]({},_0x54d846,{'id':_0xdabca6(0x1a7),'ref':_0x4cefd5,'icon':pi}));});Pt['displayName']=_0x240916(0x137);const Oi={'tag':_0x240916(0x138),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x240916(0x319),'viewBox':_0x240916(0x1c6),'width':_0x240916(0x18d),'height':_0x240916(0x18d)},'children':[{'tag':'g','attrs':{'clipPath':_0x240916(0x16b)},'children':[{'tag':_0x240916(0x10a),'attrs':{'stroke':_0x240916(0x2ac),'d':_0x240916(0x140),'strokeLinecap':_0x240916(0x229),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x240916(0x196),'attrs':{},'children':[{'tag':_0x240916(0x177),'attrs':{'id':_0x240916(0x13d)},'children':[{'tag':_0x240916(0x10a),'attrs':{'fill':_0x240916(0x20b),'d':_0x240916(0x135),'transform':_0x240916(0x2c6)}}]}]}],'defIds':[_0x240916(0x13d)]},wt=_0x3805e3(function(_0x108499,_0x4f1ba8){const _0x65eae=_0x240916;return _0x21c330(Ge,Object[_0x65eae(0x23d)]({},_0x108499,{'id':_0x65eae(0x261),'ref':_0x4f1ba8,'icon':Oi}));});wt[_0x240916(0x18b)]=_0x240916(0x252);function Ti(_0x1eee67){const _0x2f0ecb=_0x240916;switch(_0x1eee67){case _0x1cb4cc[_0x2f0ecb(0x147)]:return _0x2f0ecb(0x191);case _0x1cb4cc[_0x2f0ecb(0x279)]:return _0x2f0ecb(0x105);case _0x1cb4cc[_0x2f0ecb(0x1d5)]:return'collabStatus.fetchMiss';case _0x1cb4cc[_0x2f0ecb(0x23c)]:return _0x2f0ecb(0x1eb);case _0x1cb4cc[_0x2f0ecb(0x314)]:case _0x1cb4cc[_0x2f0ecb(0x1ac)]:return _0x2f0ecb(0x17f);case _0x1cb4cc[_0x2f0ecb(0xfd)]:case _0x1cb4cc[_0x2f0ecb(0x25d)]:return _0x2f0ecb(0x146);}}function Ci(_0x45a1c8){const _0x99e4d7=_0x240916,{status$:_0x2543ae}=_0x45a1c8,_0x5948ec=_0x2e10a2(_0x2543ae,_0x1cb4cc[_0x99e4d7(0x23c)]),_0x29514b=_0x3d0f09(_0x53f064),_0x131fcd=_0x3d0f09(_0x27d44b),_0x1a58ed=_0x5948ec!==_0x1cb4cc[_0x99e4d7(0x147)],_0x50d72c=_0x29514b['t'](Ti(_0x5948ec)),_0x21f88b=_0x1a58ed?_0xc53f37(wt,{}):_0xc53f37(Pt,{}),_0x22f74a=_0x5a6b05(()=>{_0x1a58ed||_0x131fcd['reconnect']();},[_0x1a58ed,_0x131fcd]);function _0x31b726(){const _0x1cbbec=_0x99e4d7;return _0x20f8a2(_0x1cbbec(0x17a),{'className':_0x1cbbec(0x287),'onClick':_0x22f74a,'children':[_0xc53f37(_0x1cbbec(0x17a),{'className':_0x52ece7('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x1a58ed,'univer-text-red-500':!_0x1a58ed}),'children':_0x21f88b}),_0xc53f37('div',{'className':_0x1cbbec(0x15b),'children':_0x50d72c})]});}return _0x1a58ed?_0x31b726():_0xc53f37(_0x3726b7,{'title':_0x29514b['t'](_0x99e4d7(0x15f)),'children':_0x31b726()});}var Ri=Object[_0x240916(0x1f8)],Di=(_0x20ee02,_0x11739e,_0x57a343,_0x2e891b)=>{const _0x245bb2=_0x240916;for(var _0x118a0f=_0x2e891b>0x1?void 0x0:_0x2e891b?Ri(_0x11739e,_0x57a343):_0x11739e,_0x121e0f=_0x20ee02[_0x245bb2(0xfb)]-0x1,_0x47c329;_0x121e0f>=0x0;_0x121e0f--)(_0x47c329=_0x20ee02[_0x121e0f])&&(_0x118a0f=_0x47c329(_0x118a0f)||_0x118a0f);return _0x118a0f;},se=(_0x5ded3b,_0xa3023b)=>(_0x2b8802,_0x3b8c3c)=>_0xa3023b(_0x2b8802,_0x3b8c3c,_0x5ded3b);let ae=class extends _0xf771d3{constructor(_0x5b858c,_0x348391,_0x585164,_0x5ddb38){const _0xed6be6=_0x240916;super(),_(this,_0xed6be6(0x2a1),new _0x37599d(_0x1cb4cc[_0xed6be6(0x23c)])),(this['_univerInstanceService']=_0x5b858c,this[_0xed6be6(0x26e)]=_0x348391,this[_0xed6be6(0x114)]=_0x585164,this[_0xed6be6(0x2cd)]=_0x5ddb38,this[_0xed6be6(0x306)](),this['_initStatusListener']());}[_0x240916(0x21e)](){const _0x4272ed=_0x240916;this[_0x4272ed(0xe0)](this['_univerInstanceService'][_0x4272ed(0x1ca)][_0x4272ed(0x1e1)](_0x38976a(()=>{const _0x5a408f=_0x4272ed,_0x3ce369=this[_0x5a408f(0x1d7)]['getFocusedUnit']();return _0x3ce369?this['_collaborationController'][_0x5a408f(0x153)](_0x3ce369[_0x5a408f(0x2a6)]()):_0x4cadb4(null);}),_0x38976a(_0x3850ba=>_0x3850ba?_0x3850ba['status$']:_0x4cadb4(_0x1cb4cc['NOT_COLLAB'])))[_0x4272ed(0x111)](_0x246a8a=>{const _0x2eb6f0=_0x4272ed;this['_status$'][_0x2eb6f0(0x1cc)](_0x246a8a);}));}['_initStatusComponent'](){const _0x4f22f2=_0x240916;this[_0x4f22f2(0xe0)](this[_0x4f22f2(0x2cd)]['registerComponent'](_0x5ab223[_0x4f22f2(0x22f)],()=>_0x3361c7(Ni({'status$':this[_0x4f22f2(0x2a1)][_0x4f22f2(0x24c)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x81870d),se(0x1,_0x451de1(_0x30dac5)),se(0x2,_0x451de1(_0x4a10bf)),se(0x3,_0x3cadbd)],ae);function Ni(_0x1435a4){const {status$:_0xae89cd}=_0x1435a4;return function(){return _0xc53f37(Ci,{'status$':_0xae89cd});};}const yt=_0x3cc41a(_0x240916(0x292));var bi=Object[_0x240916(0x1f8)],Li=(_0x145187,_0x5d48c1,_0x3b4162,_0x4b3d64)=>{const _0x32d37c=_0x240916;for(var _0x3e0fda=_0x4b3d64>0x1?void 0x0:_0x4b3d64?bi(_0x5d48c1,_0x3b4162):_0x5d48c1,_0x395425=_0x145187[_0x32d37c(0xfb)]-0x1,_0x24cb5e;_0x395425>=0x0;_0x395425--)(_0x24cb5e=_0x145187[_0x395425])&&(_0x3e0fda=_0x24cb5e(_0x3e0fda)||_0x3e0fda);return _0x3e0fda;},K=(_0x58b31c,_0xd8e885)=>(_0x3d4475,_0x44ff36)=>_0xd8e885(_0x3d4475,_0x44ff36,_0x58b31c);let ce=class extends _0x3122c4{constructor(_0x42e56c,_0x5bb4bf,_0x2446dc,_0xcd04ee,_0x5e2a60){const _0x22f108=_0x240916;super(),this[_0x22f108(0x13f)]=_0x42e56c,this[_0x22f108(0x26f)]=_0x5bb4bf,this[_0x22f108(0x208)]=_0x2446dc,this[_0x22f108(0x130)]=_0xcd04ee,_0x5e2a60?_0x5e2a60==null||_0x5e2a60[_0x22f108(0x142)]()['then'](()=>this['_init']()):(this[_0x22f108(0x26f)][_0x22f108(0x28c)]('[CollaborationDataLoaderController]',_0x22f108(0x2ba)),this[_0x22f108(0x163)]());}async['_init'](){const _0x38ad3d=_0x240916,_0x10e190=this[_0x38ad3d(0x13f)][_0x38ad3d(0x2ec)](_0x38ad3d(0x262)),_0x19b4fc=this['_urlService'][_0x38ad3d(0x2ec)]('type'),_0x296a39=this['_urlService']['getParam'](_0x38ad3d(0x218));if(!_0x10e190||!_0x19b4fc){this[_0x38ad3d(0x26f)][_0x38ad3d(0x28c)](_0x38ad3d(0x26b),_0x38ad3d(0xee));return;}const _0x529284=await this[_0x38ad3d(0x130)]['loadUnit'](_0x10e190,Number(_0x19b4fc),_0x296a39);_0x529284&&_0x529284 instanceof _0x8b9ea7&&this[_0x38ad3d(0x2e4)](_0x529284);}async[_0x240916(0x2e4)](_0x1b97cf){const _0x41c6bd=_0x240916;await this[_0x41c6bd(0xf6)](_0x1b97cf),_0x1b97cf[_0x41c6bd(0x14f)]['pipe'](_0xb0eea8(this[_0x41c6bd(0x221)]))[_0x41c6bd(0x111)](_0xfb7095=>{_0xfb7095&&this['_updateURLWithCurrentState'](_0xfb7095);}),this[_0x41c6bd(0x13f)]['urlChange$'][_0x41c6bd(0x1e1)](_0xb0eea8(this[_0x41c6bd(0x221)]))['subscribe'](()=>this[_0x41c6bd(0xf6)](_0x1b97cf));}['_updateURLWithCurrentState'](_0x27556e,_0xd4c260=!0x1){const _0x243de2=_0x240916,_0x3f0eb3=this[_0x243de2(0x13f)][_0x243de2(0x2ec)](_0x243de2(0x218));_0x27556e[_0x243de2(0x2c5)]()!==_0x3f0eb3&&this[_0x243de2(0x13f)][_0x243de2(0x277)](_0x243de2(0x218),_0x27556e[_0x243de2(0x2c5)](),_0xd4c260);}async['_updateSubUnitFromURLParams'](_0x1b8671){const _0x2328fd=_0x240916;var _0x605756;const _0xf2d64b=this[_0x2328fd(0x13f)]['getParam'](_0x2328fd(0x218));if(!_0xf2d64b||!_0x1b8671[_0x2328fd(0x12b)](_0xf2d64b)){const _0x2a85df=_0x1b8671[_0x2328fd(0x139)]()[0x0],_0x413455=_0x1b8671[_0x2328fd(0x12b)](_0x2a85df);if(!_0x413455)return;this[_0x2328fd(0x124)](_0x413455,!0x0),await this[_0x2328fd(0x208)][_0x2328fd(0x282)](_0x103b32['id'],{'unitId':_0x1b8671[_0x2328fd(0x2a6)](),'subUnitId':_0x2a85df});return;}((_0x605756=_0x1b8671[_0x2328fd(0x178)]())==null?void 0x0:_0x605756['getSheetId']())!==_0xf2d64b&&await this['_commandService'][_0x2328fd(0x282)](_0x103b32['id'],{'unitId':_0x1b8671[_0x2328fd(0x2a6)](),'subUnitId':_0xf2d64b});}};ce=Li([K(0x0,yt),K(0x1,_0x48e521),K(0x2,_0x5e5675),K(0x3,_0x451de1(_0x361d6f)),K(0x4,_0x590a7d(_0x6f5dda))],ce);var Ui=Object[_0x240916(0x1f8)],Mi=(_0x556df4,_0x3ecdc1,_0x4345ac,_0x1ad4a7)=>{const _0x72320e=_0x240916;for(var _0x338144=_0x1ad4a7>0x1?void 0x0:_0x1ad4a7?Ui(_0x3ecdc1,_0x4345ac):_0x3ecdc1,_0x4199ca=_0x556df4[_0x72320e(0xfb)]-0x1,_0x1acf0b;_0x4199ca>=0x0;_0x4199ca--)(_0x1acf0b=_0x556df4[_0x4199ca])&&(_0x338144=_0x1acf0b(_0x338144)||_0x338144);return _0x338144;},rt=(_0x2212d7,_0x242ba5)=>(_0x3ea308,_0x20cc81)=>_0x242ba5(_0x3ea308,_0x20cc81,_0x2212d7);let $e=class extends _0x3122c4{constructor(_0x4b98e4,_0x7e8656){const _0x25cdf7=_0x240916;super(),this[_0x25cdf7(0x2e7)]=_0x4b98e4,this[_0x25cdf7(0x1e7)]=_0x7e8656,this[_0x25cdf7(0x163)]();}[_0x240916(0x163)](){const _0x49b763=_0x240916,_0x292a22=this;this[_0x49b763(0xe0)](this[_0x49b763(0x2e7)][_0x49b763(0xd6)]({'onBeforePasteImage':async _0x4acd35=>{const _0x2f3850=_0x49b763,_0x194a8f=await _0x292a22[_0x2f3850(0x1e7)][_0x2f3850(0x2b2)](_0x4acd35);return _0x194a8f?{'source':_0x194a8f[_0x2f3850(0x234)],'imageSourceType':_0x194a8f[_0x2f3850(0x27a)]}:null;}}));}};$e=Mi([rt(0x0,_0x42c8e5),rt(0x1,_0x152fb2)],$e);const ot=[_0x240916(0x303),_0x240916(0x2eb),_0x240916(0x186),_0x240916(0x1ef),'blue.400',_0x240916(0x23f)];class Ke extends _0xf771d3{constructor(){const _0x565a37=_0x240916;super(...arguments),_(this,_0x565a37(0xf9),new Map()),_(this,_0x565a37(0x104),0x0);}[_0x240916(0x2e6)](_0x57d481){const _0x31274f=_0x240916;if(this['_assignedColors'][_0x31274f(0x298)](_0x57d481))return this['_assignedColors'][_0x31274f(0x1c7)](_0x57d481);const _0x4a7ff5=ot[this[_0x31274f(0x104)]];return this[_0x31274f(0x104)]=(this['_colorIndex']+0x1)%ot[_0x31274f(0xfb)],this[_0x31274f(0xf9)][_0x31274f(0x26a)](_0x57d481,_0x4a7ff5),_0x4a7ff5;}}function $t(_0x547dfb){const _0x3bf0f9=_0x240916;let _0x48aadc='';for(const _0x5663fd of _0x547dfb){const {startOffset:_0x3e9bcf,endOffset:_0x93db27,isActive:_0x539810,rangeType:_0x4bc5f2,segmentId:_0x2a96dc,segmentPage:_0x2563f1}=_0x5663fd;_0x48aadc[_0x3bf0f9(0xfb)]&&(_0x48aadc+=','),_0x48aadc+=_0x3e9bcf+':'+_0x93db27+':'+(_0x539810?'1':'0')+':'+_0x4bc5f2+':'+_0x2a96dc+':'+_0x2563f1;}return _0x48aadc;}function Ai(_0x28000b){const _0x4fde62=_0x240916,_0x3e2bc1=_0x28000b['split'](','),_0x255663=[];for(const _0x2ab7bc of _0x3e2bc1){const [_0x203358,_0x295579,_0x1599e4,_0x12e04f,_0x385541,_0x4a123a]=_0x2ab7bc['split'](':');_0x255663['push']({'startOffset':Number(_0x203358),'endOffset':Number(_0x295579),'collapsed':_0x203358===_0x295579,'isActive':_0x1599e4==='1','rangeType':_0x12e04f===_0x3c1574[_0x4fde62(0x1dd)]?_0x3c1574[_0x4fde62(0x1dd)]:_0x3c1574[_0x4fde62(0x241)],'segmentId':typeof _0x385541==_0x4fde62(0x19c)?String(_0x385541):'','segmentPage':Number(_0x4a123a!=null?_0x4a123a:-0x1)});}return _0x255663[_0x4fde62(0x2d7)](_0x1e0fce=>_0x1e0fce[_0x4fde62(0x173)])||(_0x255663[0x0][_0x4fde62(0x173)]=!0x0),_0x255663;}class ze extends _0x3122c4{constructor(){const _0x3b9ffd=_0x240916;super(...arguments),_(this,'_collabCursorState$',new _0x37599d(null)),_(this,_0x3b9ffd(0x19e),this[_0x3b9ffd(0x2b0)]['asObservable']());}[_0x240916(0x2f3)](_0x2b5243){const _0x2c0048=_0x240916,{unitID:_0x1ff308,memberID:_0x24f0a7,textRanges:_0x2c2f60}=_0x2b5243,_0x544278=$t(_0x2c2f60);if(_0x544278==='')return;const _0x79ff50={'unitID':_0x1ff308,'memberID':_0x24f0a7,'selection':_0x544278};this['_collabCursorState$'][_0x2c0048(0x1cc)](_0x79ff50);}}var Pi=Object[_0x240916(0x1f8)],wi=(_0x7cc092,_0x108c22,_0x117913,_0x5c82b2)=>{for(var _0x4c1c15=_0x5c82b2>0x1?void 0x0:_0x5c82b2?Pi(_0x108c22,_0x117913):_0x108c22,_0x5610d1=_0x7cc092['length']-0x1,_0x14e828;_0x5610d1>=0x0;_0x5610d1--)(_0x14e828=_0x7cc092[_0x5610d1])&&(_0x4c1c15=_0x14e828(_0x4c1c15)||_0x4c1c15);return _0x4c1c15;},A=(_0x5e9e66,_0xdd2f0d)=>(_0x5673e3,_0x2623b0)=>_0xdd2f0d(_0x5673e3,_0x2623b0,_0x5e9e66);function _0xf9f6(){const _0x183878=['PAYMENT_CHANNEL_NOT_SUPPORT','CONFLICT','imageSourceType','_ensureSubject','idSuffix','WECHAT_HAS_BEEN_BOUND','lineTo','_drawTextRange','moveTo','map','executeCommand','ticket','text','CONNECTOR_DATA_TOO_LARGE','stringify','univer-flex\x20univer-items-center','LICENSE_IMPORT_SIZE_EXCEEDED','_textBubble','cursorInfo','_docTransformSelectionsService','debug','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_selfUnitIDs','_removeClearOtherTimer','symbol','_refreshCollabCursors','uni.network.url-service','application/json','getStateCache','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','pushState','url(#$1','has','_lastPointer','YUUMI_TABLE_NOT_FOUND_IN_UNIT','USER_IS_ANONYMOUS','_heartbeatTimer','_cursorInfo$','_scheduleHeartbeat','_checkAndWaitForCalculationPermission','UNIVER_DOC','_status$','column','_saveCache','_labelPosition','?taskId=','getUnitId','sessionStatus$','ENTITLE_INVALID_COUPON_CODE','ENSURE_SNAPSHOT_EXECUTION','_docSkeletonManagerService','getTypeOfUnitDisposed$','currentColor','code','_memberID','AUTHORIZE_CODE_ILLEGAL','_collabCursorState$','_render','saveImage','arc','_anchor','startsWith','MUTATION','getUnit','_clearOtherTimers','collaboration.single-unit.warning','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','fillStyle','PY_RUNTIME_SCRIPT_ERROR','_doCreateSocket','_onRefRangeChange','_localStorageService','releaseFormulaLimitUrl','_docTransformStateCacheService','permission.title','endRow','getAncestorScale','getSheetId','translate(.97)','_hover','tag','engine','getCollabCursors$','_scheduleSaving','126044AdPoiH','_uiPartsService','ERROR_AGAIN','_beforeCloseService','removeParam','_uploadLog','UPDATE_CURSOR','_handleEvent','_docSkeleton','name','runId','some','lineno','onPointerLeave$','wsSessionTicketUrl','key','backgroundColor','RemoveColCommandId','_config','_draw','_showGuardMessage','setAlpha','YUUMI_SUBSCRIPTION_NOT_FOUND','toRgbString','_setupSubUnitSync','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','assignAColorForMemberID','_docClipboardService','forEach','REDEMPTION_CODE_FULLY_REDEEMED','ENTITLE_COUPON_USED_UP','jiqing.500','getParam','getUndoRedoMutationParamsCache','InsertColCommandId','deepClone','type','_saveTaskMap','_onCursorDelete','syncEditingCollabCursor','univerjs-icon\x20univerjs-icon-','SNAPSHOT_INVALID_SNAPSHOT','popstate','_maxFormulaLimit','_notificationService','rgba(255,\x20255,\x20255,\x200.01)','_sheetSkeletonManagerService','getTypeOfUnitAdded$','executionId','START_CALCULATION','ENTITLE_NEED_BILLING_ADDRESS','_entityInit$','_instanceService','REDEMPTION_USER_NOT_ELIGIBLE','startColumn','purple.300','stageInfo','_getSessionTicket','_initStatusComponent','_setFormulaLimitStatus','cursorInfo$','labelPosition','_docStateChangeManagerService','EMAIL_HAS_BEEN_BOUND','sessionTicket','complete','setInterval','LICENSE_DISTRO_REJECTED','with','_handleHeartbeatEvent','filename','_getSheetObject','AWAITING','InsertRangeMoveRightCommandId','endColumn','_collabCursorController','session.connection-failed','none','_cursors','override','_entities','urlChange$','_transformUndoRedoStack','_themeService','_online','restore','beforeCommandExecuted','addClipboardHook','USER_NOT_FOUND','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','Error','MOBILE_VERIFY_CODE_MISMATCH','clearTimeout','requireSession','flatMap','storage','LICENSE_MAX_UNITS_EXCEEDED','disposeWithMe','ENTITLE_REPORT_LIMIT_EXCEED','black','_updateCollabCursors','size','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_ALL_TABLES_IS_INVALID','_clearPolling','_getMergeRange','entries','event$','_disabled','MoveRangeCommandId','_colorAssignService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/universer-api/license/formula/limit/done','beginPath','getRenderById','ENTITLE_CAN_NOT_BUY_LOWER_OTP','replaceState','Loading','3612635kxkGxK','_updateSubUnitFromURLParams','ONLINE','getFocusedUnit','_assignedColors','setTimeout','length','_session','SYNCED','#FFF','_initCommandExecutedListener','unshift','getDocRanges','top','m2Prime','_colorIndex','collabStatus.conflict','max','onStarting','createInstance','hide','path','transformMutationsWithChangeset','defineProperty','dirtyRanges','session.collaboration-timeout','href','registerRefRange','subscribe','_getScale','m1Prime','_collaborationController','currentUsage','onPointerMove$','_docSyncEditingCollabCursorService','getValue','min','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','drawWith','loadOfflineData','_initCommandInterceptor','_removeCollabCursors','YUUMI_RATE_OVER_LIMIT','clearInterval','_monkeyPatchLogService','catch','addObject','_updateURLWithCurrentState','INVITE_CODE_ALREADY_BOUND','collab-text-range-','result','_transformHistoryAndStateStack','getColorFromTheme','replace','getSheetBySheetId','Unknown\x20user','enableLocalCache','totalFormulasToCalculate','setItem','_dataLoaderService','current','getRangePointData','updateOfflineData','UniverIcon','M0\x200H16V16H0z','_handleJoinEvent','OffLineIcon','svg','getUnhiddenWorksheets','_setupBeforeClosingHandler','CHANGESET_REVISION_CONFILICT','_collaborationSessionService','on-line-icon_clip0_910_349','shift','_urlService','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','redoState','whenReady','memberID','ENTITLE_DUP_SUBSCRIPTION','_lastResponseTimestamp','collabStatus.synced','OFFLINE','4616250iJrskm','REDEMPTION_INVALID_CODE','from','YUUMI_AI_RUN_FAILED','getOffsetConfig','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','now','activeSheet$','Success','entityInit$','NO_OTHER_CLIENTS_EDITING','getCollabEntity$','ALREADY_EXISTS','getCellMatrix','transformSelections','bottom','_startDocCollabCursor','includes','_cursor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','APPLY_DUPLICATED','PERMISSION_DENIED','_name','collab-client.tooltip.reconnect','transform','FromArray','exhaustSavingTask','_init','then','_unitOnClients','transformIMECache','_unitStatus','findNodePositionByCharIndex','onLocalMutation','_checkCalculationAvailable','url(#on-line-icon_clip0_910_349)','textRanges','collaboration-client-ui.config','message','2845146ZXnmoF','MOBILE_HAS_BEEN_BOUND','onCommandExecuted','mutations','isActive','_color','location','formula.calculation.unable','clipPath','getActiveSheet','_drawAnchor','div','transformRemoteChangeset','limitInfo','10707529NtcHBt','REDEMPTION_USER_REDEEM_TIMES_EXCEED','collabStatus.syncing','APPLY_REJECT','/universer-api/license/formula/limit/status','onRendered','transformMutation','registerRenderModule','dispose','green.600','OTHER_CLIENTS_EDITING','_cursorShapes','onTransformChange$','history','displayName','_initUserListener','1em','UNDEFINED','subscribeEvent','_messageService','collabStatus.offline','REDEMPTION_CODE_INACTIVE','currentTheme$','removeEventListener','colorChannel1','defs','143075WOZyfe','_scene','/universer-api/license/formula/limit/start','add','Failed','string','_httpService','collabCursorState$','_backgroundColor','getCurrent','RemoveRowCommandId','_revisionService','_startSheetCollabCursor','SOCKET_FAILED','_docTransformIMECacheService','setActiveRange','off-line-icon','triggerDblclick','createSocket','isEditing','...','AWAITING_WITH_PENDING','_releaseCalculationLimit','getVpScrollXYInfoByPosToVp','children','_toggleOffline','_roomMembers$','_startCalculationLimit','unsubscribe','USERS_LEAVE','doc.mutation.rich-text-editing','send','_shapes','2584576yePTuy','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_toggleOnline','EMAIL_VERIFY_CODE_MISMATCH','_drawRectRange','_getSaveTimeout','origin','_transformService','setConfig','_applyCommand','evenodd','[LogService\x20Error]:\x20','_context','startRow','0\x200\x2017\x2016','get','setUndoRedoMutationParamsCache','measureText','focused$','_taskIds','next','getViewport','substring','getMemberID','_initEvent','getCurrentRevOfUnit','post','YUUMI_CONNECTOR_URL_NOT_FOUND','\x20at\x20','FETCH_MISS','_collabSessionService','_univerInstanceService','params','APPLY_REVISION_CONFILICT','_initDependencies','actions','delete','TEXT','eventID','SOCKET_FAILED_RETRY','push','pipe','getUnitStatus$','_hideTimer','body','_registerRenderDependencies','REDEMPTION_CODE_HAS_BEEN_CREATED','_imageIoService','/universer-api/frontend/logs','row','YUUMI_UNABLE_LOAD_URL','collabStatus.notCollab','_pollingInterval','getCellPositionByOffset','getSkeleton','red.300','_handleHover','parse','_id','CLOSE_ROOM','save','init','setShapeProps','session.will-retry','getOwnPropertyDescriptor','isArray','values','onPointerEnter$','unitId','DATA_SOURCE_TOO_LARGE','_handleLeaveEvent','_transformPreviousActiveRange','transformStateCache','_initResize','functionsExecutedState','YUUMI_URL_COL_OUT_OF_RANGE','url(#off-line-icon_clip0_910_343)','DeleteRangeMoveUpCommandId','APPLY_NON_SEQUENTIAL_REVISION','ENTITLE_COUPON_EXPIRED','_commandService','YUUMI_NO_CUBOID_FOR_QUESTION','error','white','APPLY_PERMISSION_DENIED','disposeUnit','parseInt','_initUnhandledRejectionListener','newValue','searchParams','_renderManagerService','data','getMember','unhandledrejection','addEventListener','runOnServer','subunit','_onCursorUpdate','_cachedData','CURRENT_STATUS_CANNOT_OPERATE','roomMembers','random','_initStatusListener','collaboration.closeRoom','range','dispose$','xlink:href','width','fill','LICENSE_EXPORT_SIZE_EXCEEDED','_hasFormulaInDirtyRanges','_syncEditingCollabCursorService','_anchorDot','round','_initEntityListener','all','unitID','LOGIN_TOKEN_PROCESSING_FAILED','onMouseMove','HEADER_MENU','INVALID_INVITE_CODE','enableFrontendLog','INVALID_ARGUMENT','_registerDependencies','source','INVITE_CODE_REQUIRED','maxFormulaLimit','USER_NOT_INVITED_CODE','_range','_localeService','formula.calculation.started','selections','NOT_COLLAB','assign','_refRangeService','yellow.400','REDEMPTION_CODE_NOT_STARTED','RECT','NOT_FOUND','INTERNAL_ERROR','attrs','_memberService','Warning','setStateCache','search','mask','_scheduleClearOtherTimer','fillText','asObservable','_hovered','UNAUTHENTICATED','_send','color','COMPLETION_FINISHED','OnLineIcon','selection','undoState','TOO_MANY_REQUESTS','transformByState','toString','_collaborationUIEventService','_initWindowErrorListener','[Unhandled\x20Rejection]:\x20','saveTaskMap','UNRECOGNIZED','PENDING','ENTITLE_CHAT_LIMIT_EXCEED','http://www.w3.org/2000/svg','_eventUnsubscribe','on-line-icon','unit','_configService','INVITE_CODE_HAS_BEEN_UES','_getAnchorBounding','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','show','subUnitId','ENTITLE_INSUFFICIENT_QUOTA','set','[CollaborationDataLoaderController]','ranges','_currentUsage','_injector','_logService','LOGIN_FAILED','getConfig','_updateLocalCursor','stage','font','_createSocketURL','UNIVER_SHEET','setParam'];_0xf9f6=function(){return _0x183878;};return _0xf9f6();}const yi=0x12c,$i=0x64;let xe=class extends _0x3122c4{constructor(_0x1efaa2,_0x10bb26,_0x325e5e,_0x2b11f3,_0x426809,_0xfce1f7,_0x4921f2,_0x330c02,_0x1e5e6d){const _0x10e326=_0x240916;super(),_(this,'_online',!0x1),_(this,_0x10e326(0x163),!0x1),_(this,_0x10e326(0x29d),new _0x37599d(new Map())),_(this,_0x10e326(0x308),this[_0x10e326(0x29d)][_0x10e326(0x24c)]()),_(this,_0x10e326(0x1b1),new _0x37599d([])),_(this,'roomMembers$',this[_0x10e326(0x1b1)][_0x10e326(0x1e1)](_0x18bb22(yi))),_(this,_0x10e326(0x272),_0x17e35b(_0x21d156=>{const _0x90fde4=_0x10e326,_0x24db4d={'eventID':_0x761ce2[_0x90fde4(0x2d2)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x90fde4(0x1cf)](),'selection':$t(_0x21d156)}};this[_0x90fde4(0xfc)][_0x90fde4(0x1b6)](_0x24db4d,this[_0x90fde4(0x22c)]);},$i)),(this['unitID']=_0x1efaa2,this['_session']=_0x10bb26,this[_0x10e326(0x26e)]=_0x325e5e,this[_0x10e326(0xed)]=_0x2b11f3,this[_0x10e326(0x245)]=_0x426809,this['_syncEditingCollabCursorService']=_0xfce1f7,this[_0x10e326(0x1bf)]=_0x4921f2,this['_univerInstanceService']=_0x330c02,this[_0x10e326(0x208)]=_0x1e5e6d);}get['cursorInfo'](){const _0x5ef626=_0x240916;return this[_0x5ef626(0x29d)]['getValue']();}get[_0x240916(0x21c)](){const _0x40f811=_0x240916;return this[_0x40f811(0x1b1)][_0x40f811(0x118)]();}['dispose'](){const _0x37c79f=_0x240916;super[_0x37c79f(0x185)](),this[_0x37c79f(0x29d)]['next'](new Map()),this['_cursorInfo$'][_0x37c79f(0x30d)](),this[_0x37c79f(0x1b1)]['next']([]),this[_0x37c79f(0x1b1)][_0x37c79f(0x30d)]();}[_0x240916(0x1f5)](){const _0x391383=_0x240916;this[_0x391383(0x163)]||(this[_0x391383(0x163)]=!0x0,this[_0x391383(0xfc)][_0x391383(0x2a7)][_0x391383(0x1e1)](_0xb0eea8(this['dispose$']))[_0x391383(0x111)](_0x2c3e44=>{const _0x568dcb=_0x391383;_0x2c3e44===_0x83b48e[_0x568dcb(0xf7)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x391383(0xfc)]['event$'][_0x391383(0x1e1)](_0xb0eea8(this['dispose$']))['subscribe'](_0x2a7a4a=>{const _0x42457e=_0x391383,_0xa0b97c=_0x2a7a4a[_0x42457e(0x1de)];_0xa0b97c===_0x761ce2[_0x42457e(0x2d2)]&&this[_0x42457e(0x219)](_0x2a7a4a),_0xa0b97c===_0x761ce2[_0x42457e(0x1b4)]&&this[_0x42457e(0x2f2)](_0x2a7a4a);}),this[_0x391383(0xe0)](this[_0x391383(0x208)][_0x391383(0x171)](_0x2307d3=>{const _0x3ea790=_0x391383,_0x339d0=_0x2307d3[_0x3ea790(0x1d8)];_0x339d0!=null&&this['_online']&&_0x2307d3['id']===_0x43bf97['id']&&_0x339d0[_0x3ea790(0x1fc)]===this[_0x3ea790(0x22c)]&&_0x339d0[_0x3ea790(0x1aa)]===!0x1&&_0x339d0[_0x3ea790(0x26c)]['length']>0x0&&this[_0x3ea790(0x272)](_0x339d0['ranges']);})),this[_0x391383(0x227)][_0x391383(0x19e)][_0x391383(0x1e1)](_0xb0eea8(this[_0x391383(0x221)]))[_0x391383(0x111)](_0x198d77=>{const _0x2c1486=_0x391383;if((_0x198d77==null?void 0x0:_0x198d77['unitID'])!==this[_0x2c1486(0x22c)])return;const _0x417152={'eventID':_0x761ce2[_0x2c1486(0x2d2)],'data':_0x198d77};this['_onCursorUpdate'](_0x417152);}),this['disposeWithMe'](this[_0x391383(0x208)][_0x391383(0x171)](_0x260aca=>{const _0x22a09e=_0x391383;if(_0x260aca[_0x22a09e(0x1d8)]==null)return;const _0x8b8665=_0x260aca['params'];if(_0x260aca['id']!==_0x87d6e4['id']||_0x8b8665[_0x22a09e(0x1fc)]!==this[_0x22a09e(0x22c)])return;const _0x52618f={'id':_0x22a09e(0x1b5),'params':_0x8b8665},_0x328f01=this[_0x22a09e(0x28a)];for(const [_0x4fa251,_0x3ef16b]of _0x328f01){const _0x5421fe={'id':_0x22a09e(0x1b5),'params':{'unitId':this[_0x22a09e(0x22c)],'actions':null,'textRanges':_0x3ef16b[_0x22a09e(0x26c)]}},_0x205a6c=this['_transformService'][_0x22a09e(0x183)](_0x52618f,_0x5421fe,!0x1);if(_0x699f6f(_0x205a6c))throw _0x205a6c[_0x22a09e(0x20a)];_0x328f01[_0x22a09e(0x26a)](_0x4fa251,{..._0x3ef16b,'ranges':_0x205a6c[_0x22a09e(0x103)][_0x22a09e(0x1d8)][_0x22a09e(0x16c)]});}queueMicrotask(()=>{const _0x4745f4=_0x22a09e;this[_0x4745f4(0x29d)][_0x4745f4(0x1cc)](_0x328f01);});})));}[_0x240916(0x219)](_0x3de89a){const _0x1fbdd2=_0x240916;var _0x25e19d,_0x5f0f79;const {memberID:_0x45e83d,selection:_0x55ca5a}=_0x3de89a['data'],_0x2027b8=Ai(_0x55ca5a),_0x55b120=(_0x5f0f79=(_0x25e19d=this[_0x1fbdd2(0x245)][_0x1fbdd2(0x214)](this['unitID'],_0x45e83d))==null?void 0x0:_0x25e19d[_0x1fbdd2(0x2d5)])!=null?_0x5f0f79:_0x1fbdd2(0x12c),_0x42a13d={'color':this[_0x1fbdd2(0xed)][_0x1fbdd2(0x2e6)](_0x45e83d),'name':_0x55b120,'ranges':_0x2027b8},_0x906f52=this[_0x1fbdd2(0x28a)];_0x906f52['set'](_0x45e83d,_0x42a13d),this[_0x1fbdd2(0x29d)][_0x1fbdd2(0x1cc)](_0x906f52);}[_0x240916(0x2f2)](_0x51367b){const _0x12cc3b=_0x240916,{memberID:_0x231da4}=_0x51367b[_0x12cc3b(0x213)],_0x37dcd0=this[_0x12cc3b(0x28a)];_0x37dcd0[_0x12cc3b(0x1dc)](_0x231da4),this[_0x12cc3b(0x29d)][_0x12cc3b(0x1cc)](_0x37dcd0);}[_0x240916(0x1ba)](){const _0x1a66cf=_0x240916;var _0x3a8260;if(this['_online']=!0x0,((_0x3a8260=this[_0x1a66cf(0x1d7)][_0x1a66cf(0xf8)]())==null?void 0x0:_0x3a8260['getUnitId']())!==this[_0x1a66cf(0x22c)])return;const _0x42d303=this[_0x1a66cf(0x26e)][_0x1a66cf(0x1c7)](_0x5f3a65)[_0x1a66cf(0x101)]();Array[_0x1a66cf(0x1f9)](_0x42d303)&&_0x42d303[_0x1a66cf(0xfb)]>0x0&&this[_0x1a66cf(0x272)](_0x42d303);}[_0x240916(0x1b0)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x451de1(_0x30dac5)),A(0x3,_0x451de1(Ke)),A(0x4,_0x451de1(_0x11723a)),A(0x5,_0x451de1(ze)),A(0x6,_0x10d68c),A(0x7,_0x81870d),A(0x8,_0x5e5675)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x1a7520,_0xa7a775,_0x4f4331,_0x25f438)=>{const _0x20f221=_0x240916;for(var _0x51fee=_0x25f438>0x1?void 0x0:_0x25f438?xi(_0xa7a775,_0x4f4331):_0xa7a775,_0x55d6f7=_0x1a7520[_0x20f221(0xfb)]-0x1,_0x1bb836;_0x55d6f7>=0x0;_0x55d6f7--)(_0x1bb836=_0x1a7520[_0x55d6f7])&&(_0x51fee=_0x1bb836(_0x51fee)||_0x51fee);return _0x51fee;},B=(_0x2642a9,_0x5551c9)=>(_0x3d992d,_0x205527)=>_0x5551c9(_0x3d992d,_0x205527,_0x2642a9);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x462ad1=[],_0x1a7b8e=!0x1;return _0x501418=>{const _0x5a474c=_0x9124;_0x462ad1[_0x5a474c(0x1e0)](_0x501418),_0x1a7b8e||(_0x1a7b8e=!0x0,setTimeout(()=>{_0x462ad1['forEach'](_0x3f8117=>_0x3f8117()),_0x462ad1=[],_0x1a7b8e=!0x1;}));};};let Be=class extends _0x3122c4{constructor(_0x43a487,_0x47d308,_0x5ceabd,_0x117fcf,_0x4b6a2d,_0x11a3aa,_0x4e23ae,_0x93ae84){const _0x1b05cd=_0x240916;super(),_(this,_0x1b05cd(0xd3),!0x1),_(this,_0x1b05cd(0x163),!0x1),_(this,_0x1b05cd(0x29d),new _0x37599d(new Map())),_(this,_0x1b05cd(0x308),this['_cursorInfo$'][_0x1b05cd(0x24c)]()),_(this,_0x1b05cd(0x1b1),new _0x37599d([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x18bb22(Fi))),_(this,_0x1b05cd(0x272),_0x17e35b((_0x442360,_0x589a82)=>{const _0x4824d9=_0x1b05cd,_0x8c7e3a={'eventID':_0x761ce2['UPDATE_CURSOR'],'data':{'unitID':this[_0x4824d9(0x22c)],'memberID':this[_0x4824d9(0xfc)][_0x4824d9(0x1cf)](),'selection':_0x47dbec(_0x442360,_0x589a82[_0x4824d9(0x220)])}};this[_0x4824d9(0xfc)][_0x4824d9(0x1b6)](_0x8c7e3a,this['unitID']);},ki)),(this[_0x1b05cd(0x22c)]=_0x43a487,this[_0x1b05cd(0xfc)]=_0x47d308,this[_0x1b05cd(0x26e)]=_0x5ceabd,this[_0x1b05cd(0xed)]=_0x117fcf,this[_0x1b05cd(0x245)]=_0x4b6a2d,this[_0x1b05cd(0x1d7)]=_0x11a3aa,this[_0x1b05cd(0x208)]=_0x4e23ae,this[_0x1b05cd(0x23e)]=_0x93ae84);}get['cursorInfo'](){const _0x451c0a=_0x240916;return this[_0x451c0a(0x29d)]['getValue']();}get['roomMembers'](){const _0x14ee5f=_0x240916;return this[_0x14ee5f(0x1b1)][_0x14ee5f(0x118)]();}[_0x240916(0x185)](){const _0x491a83=_0x240916;super['dispose'](),this[_0x491a83(0x29d)][_0x491a83(0x1cc)](new Map()),this[_0x491a83(0x29d)][_0x491a83(0x30d)](),this['_roomMembers$']['next']([]),this[_0x491a83(0x1b1)][_0x491a83(0x30d)]();}[_0x240916(0x1f5)](){const _0x5bd4d5=_0x240916;this[_0x5bd4d5(0x163)]||(this['_init']=!0x0,this[_0x5bd4d5(0xfc)][_0x5bd4d5(0x2a7)][_0x5bd4d5(0x1e1)](_0xb0eea8(this[_0x5bd4d5(0x221)]))[_0x5bd4d5(0x111)](_0x1e10db=>{const _0x5a2dcd=_0x5bd4d5;_0x1e10db===_0x83b48e['ONLINE']?this[_0x5a2dcd(0x1ba)]():this[_0x5a2dcd(0x1b0)]();}),this[_0x5bd4d5(0xfc)]['event$'][_0x5bd4d5(0x1e1)](_0xb0eea8(this[_0x5bd4d5(0x221)]))[_0x5bd4d5(0x111)](_0x30dbc6=>{const _0x3ecc30=_0x5bd4d5,_0x3c2991=_0x30dbc6[_0x3ecc30(0x1de)];_0x3c2991===_0x761ce2[_0x3ecc30(0x2d2)]&&this[_0x3ecc30(0x219)](_0x30dbc6),_0x3c2991===_0x761ce2[_0x3ecc30(0x1b4)]&&this[_0x3ecc30(0x2f2)](_0x30dbc6);}),this[_0x5bd4d5(0x2be)](),this[_0x5bd4d5(0xe0)](this[_0x5bd4d5(0x208)][_0x5bd4d5(0x171)](_0xd7d660=>{const _0x2ade57=_0x5bd4d5;if(this[_0x2ade57(0xd3)]&&_0xd7d660['id']===_0x12ebb5['id']&&_0xd7d660['params'][_0x2ade57(0x1fc)]===this[_0x2ade57(0x22c)]){const _0x4f0e4c=_0xd7d660['params'];this[_0x2ade57(0x272)](_0x4f0e4c[_0x2ade57(0x268)],_0x4f0e4c[_0x2ade57(0x23b)][0x0]);}})));}['_onCursorUpdate'](_0x55879f){const _0x2a18e7=_0x240916;var _0xa283bb,_0xd9b079;const {memberID:_0xc0a7b7,selection:_0x308f25}=_0x55879f[_0x2a18e7(0x213)],{sheetName:_0x10b014,range:_0x5f0330}=_0x1ec9a4(_0x308f25),_0x4ff4a8={'name':(_0xd9b079=(_0xa283bb=this[_0x2a18e7(0x245)][_0x2a18e7(0x214)](this['unitID'],_0xc0a7b7))==null?void 0x0:_0xa283bb[_0x2a18e7(0x2d5)])!=null?_0xd9b079:'Unknown\x20user','range':this[_0x2a18e7(0xe8)](_0x10b014,_0x5f0330),'sheetID':_0x10b014,'color':this[_0x2a18e7(0xed)][_0x2a18e7(0x2e6)](_0xc0a7b7),'selection':_0x308f25},_0x415345=this[_0x2a18e7(0x28a)];_0x415345[_0x2a18e7(0x26a)](_0xc0a7b7,_0x4ff4a8),this[_0x2a18e7(0x29d)]['next'](_0x415345);}[_0x240916(0x2f2)](_0x4589d1){const _0x20fd33=_0x240916,{memberID:_0x91c7dd}=_0x4589d1['data'],_0x5b1d18=this[_0x20fd33(0x28a)];_0x5b1d18[_0x20fd33(0x1dc)](_0x91c7dd),this['_cursorInfo$'][_0x20fd33(0x1cc)](_0x5b1d18);}[_0x240916(0xe8)](_0x131ad2,_0x561f4c){const _0x1a6760=_0x240916;var _0x426d5b,_0x772c7c;const _0x3fd833=(_0x772c7c=(_0x426d5b=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x1a6760(0x22c)]))==null?void 0x0:_0x426d5b[_0x1a6760(0x12b)](_0x131ad2))==null?void 0x0:_0x772c7c['getMergeData']();return(_0x3fd833==null?void 0x0:_0x3fd833['find'](_0x36cbc2=>_0x49f784['contains'](_0x36cbc2,_0x561f4c)))||_0x561f4c;}[_0x240916(0x2be)](){const _0xec64db=_0x240916,_0x146283=new _0x113270(),_0x59b2f7=Hi(),_0x4f4ac0=()=>{const _0x48ae34=_0x9124;_0x146283['dispose']();const _0x2e8395=(_0x4a11b8,_0xf8af1e,_0x6a1e90,_0x45e915)=>{const _0x49ddb4=_0x9124;let _0x5a3c68=[];switch(_0x4a11b8['id']){case _0xab8473['DeleteRangeMoveLeftCommandId']:{_0x5a3c68=_0x5940a0(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x205)]:{_0x5a3c68=_0x1d554c(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x2ee)]:{_0x5a3c68=_0x17c1bf(_0x4a11b8,_0x45e915);break;}case _0xab8473['InsertRangeMoveDownCommandId']:{_0x5a3c68=_0x3fc51e(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x315)]:{_0x5a3c68=_0x20f389(_0x4a11b8,_0x45e915);break;}case _0xab8473['InsertRowCommandId']:{_0x5a3c68=_0x209d65(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0xec)]:{_0x5a3c68=_0x133eca(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x2dd)]:{_0x5a3c68=_0x4b51ea(_0x4a11b8,_0x45e915);break;}case _0xab8473[_0x49ddb4(0x1a1)]:{_0x5a3c68=_0x3ad6e3(_0x4a11b8,_0x45e915);break;}}const _0x351284=_0x4fc651(_0x5a3c68,_0x45e915),_0x19e380=this[_0x49ddb4(0x28a)][_0x49ddb4(0x1c7)](_0xf8af1e);if(_0x19e380&&_0x351284){const _0x54ca2a={..._0x19e380,'range':_0x351284};this['cursorInfo'][_0x49ddb4(0x26a)](_0xf8af1e,_0x54ca2a),_0x59b2f7(()=>{const _0x4f3a94=_0x49ddb4,_0x164114=this[_0x4f3a94(0x23e)][_0x4f3a94(0x110)](_0x351284,_0xad40eb=>(_0x164114[_0x4f3a94(0x185)](),_0x2e8395(_0xad40eb,_0xf8af1e,_0x6a1e90,_0x351284)));_0x146283[_0x4f3a94(0x19a)](_0x164114);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x48ae34(0x2e8)]((_0x184739,_0x2a6914)=>{const _0x353a01=_0x48ae34,{range:_0x499966,sheetID:_0x575cf6}=_0x184739,_0x26d3fb=this['_refRangeService'][_0x353a01(0x110)](_0x499966,_0x2d12d1=>(_0x26d3fb[_0x353a01(0x185)](),_0x2e8395(_0x2d12d1,_0x2a6914,_0x575cf6,_0x499966)));_0x146283[_0x353a01(0x19a)](_0x26d3fb);});};this[_0xec64db(0xe0)](_0x13afa3(this[_0xec64db(0x29d)]['subscribe'](()=>{_0x4f4ac0();})));}[_0x240916(0x1ba)](){const _0x483673=_0x240916;var _0x3a4a8b,_0x8bb734;if(this[_0x483673(0xd3)]=!0x0,((_0x3a4a8b=this['_univerInstanceService'][_0x483673(0xf8)]())==null?void 0x0:_0x3a4a8b[_0x483673(0x2a6)]())!==this[_0x483673(0x22c)])return;const _0x332edc=(_0x8bb734=this[_0x483673(0x26e)][_0x483673(0x1c7)](_0x368647)['getCurrentSelections']())==null?void 0x0:_0x8bb734[0x0],_0x2841dc=this[_0x483673(0x1d7)]['getCurrentUnitForType'](_0x2e1b84[_0x483673(0x276)])[_0x483673(0x178)]();_0x332edc&&_0x2841dc&&this[_0x483673(0x272)](_0x2841dc['getSheetId'](),_0x332edc);}[_0x240916(0x1b0)](){const _0x1c07ef=_0x240916;this[_0x1c07ef(0xd3)]=!0x1;}};Be=Bi([B(0x2,_0x451de1(_0x30dac5)),B(0x3,_0x451de1(Ke)),B(0x4,_0x451de1(_0x11723a)),B(0x5,_0x81870d),B(0x6,_0x5e5675),B(0x7,_0x451de1(_0x44115d))],Be);var Yi=Object[_0x240916(0x1f8)],Wi=(_0x5ce3a9,_0x577de3,_0x254a40,_0x15b56f)=>{const _0x5844b2=_0x240916;for(var _0xee980d=_0x15b56f>0x1?void 0x0:_0x15b56f?Yi(_0x577de3,_0x254a40):_0x577de3,_0x2f9109=_0x5ce3a9[_0x5844b2(0xfb)]-0x1,_0x203099;_0x2f9109>=0x0;_0x2f9109--)(_0x203099=_0x5ce3a9[_0x2f9109])&&(_0xee980d=_0x203099(_0xee980d)||_0xee980d);return _0xee980d;},Ce=(_0x523b4c,_0x2902ea)=>(_0x5a32eb,_0x5a6ff5)=>_0x2902ea(_0x5a32eb,_0x5a6ff5,_0x523b4c);let H=class extends _0x3122c4{constructor(_0x5a32cf,_0x32ff47,_0x1d062c){const _0x415a72=_0x240916;super(),_(this,_0x415a72(0xcf),new Map()),_(this,_0x415a72(0x2ff),new _0x16d6c4()),(this[_0x415a72(0x1d7)]=_0x5a32cf,this[_0x415a72(0x26e)]=_0x32ff47,this[_0x415a72(0x1d6)]=_0x1d062c,this[_0x415a72(0x163)]());}[_0x240916(0x185)](){const _0x2be10f=_0x240916;super['dispose'](),this['_entityInit$'][_0x2be10f(0x30d)](),this[_0x2be10f(0xcf)][_0x2be10f(0x2e8)](_0x4b0486=>_0x4b0486[_0x2be10f(0x185)]());}[_0x240916(0x2ca)](_0x5eff66){const _0x2c5f43=_0x240916;return this[_0x2c5f43(0xcf)][_0x2c5f43(0x298)](_0x5eff66)?this[_0x2c5f43(0xcf)][_0x2c5f43(0x1c7)](_0x5eff66)[_0x2c5f43(0x308)]:this['_entityInit$'][_0x2c5f43(0x1e1)](_0xa9cd8e(_0x2af836=>_0x2af836[_0x2c5f43(0x22c)]===_0x5eff66),_0x38976a(_0x20de04=>_0x20de04[_0x2c5f43(0x308)]));}[_0x240916(0x163)](){const _0x158362=_0x240916;this[_0x158362(0x1d7)][_0x158362(0x2fb)](_0x2e1b84[_0x158362(0x276)])[_0x158362(0x1e1)](_0xb0eea8(this[_0x158362(0x221)]))['subscribe'](async _0x59cc7d=>{const _0x43c730=_0x158362,_0x19cc9b=_0x59cc7d['getUnitId'](),_0x454588=await this[_0x43c730(0x1a3)](_0x19cc9b);this[_0x43c730(0x2ff)][_0x43c730(0x1cc)](_0x454588),this[_0x43c730(0xcf)][_0x43c730(0x26a)](_0x19cc9b,_0x454588);}),this[_0x158362(0x1d7)][_0x158362(0x2fb)](_0x2e1b84[_0x158362(0x2a0)])[_0x158362(0x1e1)](_0xb0eea8(this['dispose$']))['pipe'](_0xa9cd8e(_0x563204=>!_0x563204[_0x158362(0x2a6)]()[_0x158362(0x2b5)]('__')))['subscribe'](async _0x1d944a=>{const _0x3da00c=_0x158362,_0x3ffcde=_0x1d944a[_0x3da00c(0x2a6)](),_0x1ce568=await this['_startDocCollabCursor'](_0x3ffcde);this[_0x3da00c(0x2ff)][_0x3da00c(0x1cc)](_0x1ce568),this['_entities'][_0x3da00c(0x26a)](_0x3ffcde,_0x1ce568);}),_0x4bce0e(this[_0x158362(0x1d7)][_0x158362(0x2ab)](_0x2e1b84[_0x158362(0x2a0)]),this[_0x158362(0x1d7)][_0x158362(0x2ab)](_0x2e1b84[_0x158362(0x276)]))['pipe'](_0xb0eea8(this[_0x158362(0x221)]))[_0x158362(0x111)](_0x55fde1=>{const _0x5c4c33=_0x158362,_0x3356fc=_0x55fde1[_0x5c4c33(0x2a6)](),_0x1b762d=this['_entities']['get'](_0x3356fc);_0x1b762d&&(_0x1b762d['dispose'](),this[_0x5c4c33(0xcf)][_0x5c4c33(0x1dc)](_0x3356fc));});}async[_0x240916(0x1a3)](_0x200023){const _0x3d1575=_0x240916,_0x356445=await this[_0x3d1575(0x1d6)][_0x3d1575(0xdc)](_0x200023),_0x47a165=this[_0x3d1575(0x26e)][_0x3d1575(0x108)](Be,_0x200023,_0x356445);return _0x47a165[_0x3d1575(0x1f5)](),_0x47a165;}async[_0x240916(0x158)](_0x2fc74b){const _0x5793d8=_0x240916,_0x3e9e25=await this['_collabSessionService'][_0x5793d8(0xdc)](_0x2fc74b),_0x55a0a9=this[_0x5793d8(0x26e)][_0x5793d8(0x108)](xe,_0x2fc74b,_0x3e9e25);return _0x55a0a9[_0x5793d8(0x1f5)](),_0x55a0a9;}};H=Wi([Ce(0x0,_0x81870d),Ce(0x1,_0x451de1(_0x30dac5)),Ce(0x2,_0x451de1(_0x27d44b))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x1407c4,_0x22cad5){const _0x2fc4ac=_0x240916;let {radius:_0x4cc706,width:_0x1983a4,height:_0x1829bd}=_0x22cad5;_0x4cc706=_0x4cc706!=null?_0x4cc706:0x0,_0x1983a4=_0x1983a4!=null?_0x1983a4:0x1e,_0x1829bd=_0x1829bd!=null?_0x1829bd:0x1e;let _0x290748=0x0,_0x439ec5=0x0,_0x25a6c0=0x0;_0x290748=_0x439ec5=_0x25a6c0=Math['min'](_0x4cc706,_0x1983a4/0x2,_0x1829bd/0x2),_0x1407c4[_0x2fc4ac(0xf0)](),_0x1407c4[_0x2fc4ac(0x280)](_0x290748,0x0),_0x1407c4[_0x2fc4ac(0x27e)](_0x1983a4-_0x439ec5,0x0),_0x1407c4[_0x2fc4ac(0x2b3)](_0x1983a4-_0x439ec5,_0x439ec5,_0x439ec5,Math['PI']*0x3/0x2,0x0,!0x1),_0x1407c4['lineTo'](_0x1983a4,_0x1829bd-_0x25a6c0),_0x1407c4[_0x2fc4ac(0x2b3)](_0x1983a4-_0x25a6c0,_0x1829bd-_0x25a6c0,_0x25a6c0,0x0,Math['PI']/0x2,!0x1),_0x1407c4['lineTo'](0x0,_0x1829bd),_0x1407c4[_0x2fc4ac(0x27e)](0x0,_0x290748),_0x1407c4[_0x2fc4ac(0x2b3)](_0x290748,_0x290748,_0x290748,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1407c4['closePath'](),_0x22cad5['fill']&&(_0x1407c4['save'](),_0x1407c4[_0x2fc4ac(0x2bb)]=_0x22cad5[_0x2fc4ac(0x224)],_0x22cad5['fillRule']==='evenodd'?_0x1407c4[_0x2fc4ac(0x224)](_0x2fc4ac(0x1c2)):_0x1407c4['fill'](),_0x1407c4['restore']());}class ve extends _0xa92bc{constructor(_0x56b328,_0x41f904){const _0x34922e=_0x240916;super(_0x56b328,_0x41f904),_(this,_0x34922e(0x250)),_(this,_0x34922e(0x284)),(this[_0x34922e(0x250)]=_0x41f904==null?void 0x0:_0x41f904['color'],this[_0x34922e(0x284)]=_0x41f904==null?void 0x0:_0x41f904['text']);}static[_0x240916(0x11b)](_0x36647a,_0x26513e){const _0x473dd2=_0x240916,{text:_0x1e7275,color:_0x9bd810}=_0x26513e;_0x36647a[_0x473dd2(0x1f4)](),_0x36647a[_0x473dd2(0x274)]=_0x473dd2(0x295);const _0x59d75b=_0x36647a[_0x473dd2(0x1c9)](_0x1e7275)[_0x473dd2(0x223)],_0x548824=Math[_0x473dd2(0x119)](_0x59d75b+0x2*Re,at);ji(_0x36647a,{'height':Q,'radius':0x4,'width':_0x548824,'fill':_0x9bd810}),_0x36647a[_0x473dd2(0x2bb)]=_0x473dd2(0xfe);const _0x38bffa=Re,_0x13f69b=Q-Vi,_0x58e1cf=at-0x2*Re;if(_0x59d75b>_0x58e1cf){let _0x331a39='',_0x354bde=0x0;for(const _0x40a2de of _0x1e7275){const _0x366066=_0x36647a[_0x473dd2(0x1c9)](_0x40a2de)[_0x473dd2(0x223)];if(_0x354bde+_0x366066<=_0x58e1cf-_0x36647a[_0x473dd2(0x1c9)]('...')[_0x473dd2(0x223)])_0x331a39+=_0x40a2de,_0x354bde+=_0x366066;else{_0x331a39+=_0x473dd2(0x1ab);break;}}_0x36647a[_0x473dd2(0x24b)](_0x331a39,_0x38bffa,_0x13f69b);}else _0x36647a[_0x473dd2(0x24b)](_0x1e7275,_0x38bffa,_0x13f69b);_0x36647a[_0x473dd2(0xd4)]();}[_0x240916(0x2df)](_0xf77f03){const _0x4728a7=_0x240916;ve[_0x4728a7(0x11b)](_0xf77f03,this);}}const De='collab-text-anchor-',Xi=_0x240916(0x126),Gi='collab-rect-range-',z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x240916(0x2f9);class ct{constructor(_0x1adc6e,_0x41598c,_0x5b2eb4,_0x20a1c9){const _0x1be779=_0x240916;_(this,'_shapes',[]),_(this,_0x1be779(0x2b4),null),_(this,_0x1be779(0x289),null),_(this,'_anchorDot',null),_(this,_0x1be779(0x1e3),null),_(this,_0x1be779(0x260),null),(this['_cursor']=_0x1adc6e,this['_scene']=_0x41598c,this[_0x1be779(0x2d4)]=_0x5b2eb4,this['_document']=_0x20a1c9,this[_0x1be779(0x2b1)]());}set[_0x240916(0x2c7)](_0x2d2ad1){const _0x23a8d7=_0x240916;_0x2d2ad1?(this[_0x23a8d7(0x228)]&&this['_anchorDot'][_0x23a8d7(0x109)](),this[_0x23a8d7(0x289)]&&this[_0x23a8d7(0x289)]['show']()):(this[_0x23a8d7(0x228)]&&this[_0x23a8d7(0x228)]['show'](),this[_0x23a8d7(0x289)]&&this[_0x23a8d7(0x289)][_0x23a8d7(0x109)]());}[_0x240916(0x185)](){const _0x4d5b17=_0x240916;for(const _0x43c05a of this[_0x4d5b17(0x1b7)])_0x43c05a[_0x4d5b17(0x185)]();this[_0x4d5b17(0x289)]&&this[_0x4d5b17(0x289)][_0x4d5b17(0x185)](),this[_0x4d5b17(0x228)]&&this[_0x4d5b17(0x228)]['dispose'](),this['_anchor']&&this[_0x4d5b17(0x2b4)][_0x4d5b17(0x185)](),this[_0x4d5b17(0x260)]&&this[_0x4d5b17(0x260)]();}[_0x240916(0x2b1)](){const _0x5c1a62=_0x240916;var _0x9fec7;const {_docSkeleton:_0xb9c9b7,_document:_0x1e9064}=this,{color:_0xbba92f,name:_0x35e066,ranges:_0x4c4e68}=this[_0x5c1a62(0x15a)],_0xc42e99=_0x1e9064[_0x5c1a62(0x14c)](),{docsLeft:_0x37ab5b,docsTop:_0x34d10f}=_0xc42e99,_0x4404eb=new _0x150b12(_0xc42e99,_0xb9c9b7);for(const {startOffset:_0x583238,endOffset:_0x55b73c,rangeType:_0x50aac1,segmentId:_0x1a5200,segmentPage:_0x8a29f5,collapsed:_0x1dcb92,isActive:_0x2f13ee}of _0x4c4e68){const _0x26d6c5=_0xb9c9b7[_0x5c1a62(0x168)](_0x583238,!0x0,_0x1a5200,_0x8a29f5);let _0x13f582=_0xb9c9b7[_0x5c1a62(0x168)](_0x55b73c,!0x0,_0x1a5200,_0x8a29f5);if(_0x13f582==null&&(_0x13f582=_0xb9c9b7[_0x5c1a62(0x168)](_0x55b73c-0x1,!0x1,_0x1a5200,_0x8a29f5)),_0x2f13ee){const {contentBoxPointGroup:_0x2787d5}=_0x4404eb[_0x5c1a62(0x132)](_0x13f582,_0x13f582);if(_0x2787d5[_0x5c1a62(0xfb)]===0x0)continue;this['_drawAnchor'](_0xbba92f,_0x2787d5,_0x37ab5b,_0x34d10f,_0x35e066),this[_0x5c1a62(0x260)]=this['_handleHover']();}if(_0x26d6c5&&_0x13f582){if(_0x50aac1===_0x3c1574[_0x5c1a62(0x241)]){const _0x1f32b8=new _0x19dc65(_0xc42e99,_0xb9c9b7),{pointGroup:_0x2a566f}=(_0x9fec7=_0x1f32b8[_0x5c1a62(0x132)](_0x26d6c5,_0x13f582))!=null?_0x9fec7:{};if(_0x2a566f==null||_0x2a566f['length']===0x0)continue;this[_0x5c1a62(0x1bc)](_0xbba92f,_0x2a566f,_0x37ab5b,_0x34d10f);}else{if(!_0x1dcb92){const {borderBoxPointGroup:_0x276745}=_0x4404eb[_0x5c1a62(0x132)](_0x26d6c5,_0x13f582);if(_0x276745[_0x5c1a62(0xfb)]===0x0)continue;this['_drawTextRange'](_0xbba92f,_0x276745,_0x37ab5b,_0x34d10f);}}}}}[_0x240916(0x179)](_0x2200f2,_0xd6150b,_0x17131e,_0x38c76d,_0x257b5f){const _0x138dc7=_0x240916,_0x521691=this[_0x138dc7(0x265)](_0xd6150b),{left:_0x32254e,top:_0x32982a,height:_0x5c09fd}=_0x521691,_0x5cde07=this[_0x138dc7(0x112)](),_0x4d168a=zi/_0x5cde07,_0x1520c1=new _0x3d2ae1(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d,'height':_0x5c09fd,'width':Ki,'fill':_0x2200f2||_0x525b34(_0x2b8935['black'],0x0),'strokeWidth':_0x4d168a,'stroke':Ji,'evented':!0x0});this[_0x138dc7(0x2b4)]=_0x1520c1,this['_scene'][_0x138dc7(0x123)](_0x1520c1,_0x15a21c);const _0x76203=new _0x3d2ae1(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x2200f2||_0x525b34(_0x2b8935[_0x138dc7(0xe2)],0x0),'strokeWidth':0x0,'stroke':_0x2200f2||_0x525b34(_0x2b8935[_0x138dc7(0xe2)],0x0),'evented':!0x1});this[_0x138dc7(0x228)]=_0x76203,this[_0x138dc7(0x198)][_0x138dc7(0x123)](_0x76203,_0x15a21c);const _0x5f2163=new ve(De+_0x2664d4(z),{'left':_0x32254e+_0x17131e-_0x4d168a,'top':_0x32982a+_0x38c76d-Q,'text':_0x257b5f,'color':_0x2200f2});this[_0x138dc7(0x289)]=_0x5f2163,this[_0x138dc7(0x198)]['addObject'](_0x5f2163,_0x15a21c),this[_0x138dc7(0x2c7)]=!0x1;}[_0x240916(0x1f0)](){const _0x350a87=_0x240916,_0x4796f8=this['_anchor'][_0x350a87(0x1fb)][_0x350a87(0x18f)](()=>{const _0x32d309=_0x350a87;this[_0x32d309(0x2c7)]=!0x0;}),_0x2461cf=this['_anchor'][_0x350a87(0x2d9)][_0x350a87(0x18f)](()=>{const _0x2678fb=_0x350a87;this[_0x2678fb(0x1e3)]&&clearTimeout(this[_0x2678fb(0x1e3)]),this[_0x2678fb(0x1e3)]=setTimeout(()=>{const _0xb87003=_0x2678fb;this[_0xb87003(0x2c7)]=!0x1;},0x7d0);});return()=>{const _0x1de2f1=_0x350a87;_0x4796f8[_0x1de2f1(0x1b3)](),_0x2461cf['unsubscribe']();};}[_0x240916(0x27f)](_0x4e10b8,_0x2c7eac,_0x4662a6,_0xf8dad1){const _0x4ea9f6=_0x240916,_0x5526e5=new _0x19d4f9(_0x4e10b8)[_0x4ea9f6(0x2e1)](0.2)['toRgbString'](),_0x25e0f1=new _0x542d56(Xi+_0x2664d4(z),{'pointsGroup':_0x2c7eac,'fill':_0x5526e5||_0x525b34(_0x2b8935[_0x4ea9f6(0xe2)],0.2),'left':_0x4662a6,'top':_0xf8dad1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ea9f6(0x1b7)][_0x4ea9f6(0x1e0)](_0x25e0f1),this[_0x4ea9f6(0x198)][_0x4ea9f6(0x123)](_0x25e0f1,_0x15a21c);}[_0x240916(0x1bc)](_0x248566,_0x199f12,_0x4945e0,_0x3e40fe){const _0x346399=_0x240916,_0x4254c2=new _0x19d4f9(_0x248566)[_0x346399(0x2e1)](0.2)[_0x346399(0x2e3)](),_0x255b9d=new _0x542d56(Gi+_0x2664d4(z),{'pointsGroup':_0x199f12,'fill':_0x4254c2||_0x525b34(_0x2b8935[_0x346399(0xe2)],0.2),'left':_0x4945e0,'top':_0x3e40fe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x346399(0x1b7)][_0x346399(0x1e0)](_0x255b9d),this[_0x346399(0x198)][_0x346399(0x123)](_0x255b9d,_0x15a21c);}[_0x240916(0x265)](_0x85498){const _0x4b9e70=_0x85498[0x0],_0xe280f9=_0x4b9e70[0x0],_0x525513=_0x4b9e70[0x2],{x:_0x5c923f,y:_0x41c112}=_0xe280f9,{x:_0x99ef93,y:_0xd94ad7}=_0x525513;return{'left':_0x5c923f,'top':_0x41c112,'width':_0x99ef93-_0x5c923f,'height':_0xd94ad7-_0x41c112};}['_getScale'](){const _0x40e63b=_0x240916,{scaleX:_0x14ed33,scaleY:_0x7c9859}=this[_0x40e63b(0x198)][_0x40e63b(0x2c4)]();return Math[_0x40e63b(0x106)](_0x14ed33,_0x7c9859);}}var Zi=Object[_0x240916(0x1f8)],Qi=(_0x5af806,_0x5acde5,_0x477e59,_0xc79394)=>{const _0x3df1cc=_0x240916;for(var _0x5f06fc=_0xc79394>0x1?void 0x0:_0xc79394?Zi(_0x5acde5,_0x477e59):_0x5acde5,_0x1115f8=_0x5af806[_0x3df1cc(0xfb)]-0x1,_0xaadfe9;_0x1115f8>=0x0;_0x1115f8--)(_0xaadfe9=_0x5af806[_0x1115f8])&&(_0x5f06fc=_0xaadfe9(_0x5f06fc)||_0x5f06fc);return _0x5f06fc;},ie=(_0x1ae933,_0x507a14)=>(_0x7c1f0f,_0x3196f6)=>_0x507a14(_0x7c1f0f,_0x3196f6,_0x1ae933);let Fe=class extends _0x3122c4{constructor(_0x34a0ee,_0x58cbdc,_0x19bc6a,_0x58ec77,_0x437617){const _0x69d3ab=_0x240916;super(),_(this,'_cursorShapes',[]),_(this,_0x69d3ab(0x31a),[]),(this[_0x69d3ab(0x1c4)]=_0x34a0ee,this[_0x69d3ab(0x2aa)]=_0x58cbdc,this[_0x69d3ab(0x317)]=_0x19bc6a,this[_0x69d3ab(0x208)]=_0x58ec77,this[_0x69d3ab(0xd2)]=_0x437617,this[_0x69d3ab(0x163)]());}[_0x240916(0x163)](){const _0x362ee5=_0x240916,_0x312ab5=this[_0x362ee5(0x1c4)]['unitId'],_0x225a74=this['_docSkeletonManagerService'];this[_0x362ee5(0xe0)](_0x207d2b([this[_0x362ee5(0x317)][_0x362ee5(0x2ca)](_0x312ab5),this[_0x362ee5(0xd2)][_0x362ee5(0x193)]])[_0x362ee5(0x1e1)](_0x58bc15(([_0x591725,_0x49074c])=>({'skeleton':_0x225a74[_0x362ee5(0x1ee)](),'cursors':[..._0x591725['values']()][_0x362ee5(0xdd)](_0x1a23e7=>({..._0x1a23e7,'color':this[_0x362ee5(0xd2)][_0x362ee5(0x129)](_0x1a23e7[_0x362ee5(0x250)])}))})))[_0x362ee5(0x111)](_0x3412e3=>{const _0x543ae7=_0x362ee5;if(this['_removeCollabCursors'](),_0x3412e3){const {skeleton:_0x1cd68e,cursors:_0xf28519}=_0x3412e3;this[_0x543ae7(0xe3)](_0x1cd68e,_0xf28519);}})),this[_0x362ee5(0x201)](),this[_0x362ee5(0xff)]();}[_0x240916(0xe3)](_0x22d342,_0x55859e){const _0x1553d3=_0x240916,{scene:_0x3af709,mainComponent:_0x367c8e}=this['_context'],_0x415975=_0x55859e['map'](_0x889472=>new ct(_0x889472,_0x3af709,_0x22d342,_0x367c8e));this[_0x1553d3(0x188)]=_0x415975,this[_0x1553d3(0x31a)]=_0x55859e;}[_0x240916(0x291)](){const _0x18e24a=_0x240916;this[_0x18e24a(0x11e)]();const {scene:_0x3b78da,mainComponent:_0x3262fb}=this[_0x18e24a(0x1c4)],_0x2e1e69=this[_0x18e24a(0x2aa)][_0x18e24a(0x1ee)](),_0x5982bc=this['_cursors'][_0x18e24a(0x281)](_0x490385=>new ct(_0x490385,_0x3b78da,_0x2e1e69,_0x3262fb));this[_0x18e24a(0x188)]=_0x5982bc;}[_0x240916(0x11e)](){const _0x578f5b=_0x240916;this[_0x578f5b(0x188)][_0x578f5b(0x2e8)](_0x54b7d4=>_0x54b7d4[_0x578f5b(0x185)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1f88b1=_0x240916,_0x3dc3f1=[_0x1a7732['id']];this['disposeWithMe'](this[_0x1f88b1(0x208)][_0x1f88b1(0x171)](_0x4683ea=>{const _0x15fa73=_0x1f88b1;_0x3dc3f1[_0x15fa73(0x159)](_0x4683ea['id'])&&_0x4683ea[_0x15fa73(0x1d8)]['unitId']===this[_0x15fa73(0x1c4)]['unitId']&&this[_0x15fa73(0x291)]();}));}['_initResize'](){const _0x1bf695=_0x240916;this['disposeWithMe'](_0x63123d(this[_0x1bf695(0x1c4)][_0x1bf695(0x2c9)][_0x1bf695(0x189)])['pipe'](_0x491785(_0x3cb363=>_0x3cb363[_0x1bf695(0x2f0)]===_0x97306c['resize']),_0x3118d0(0x10))[_0x1bf695(0x111)](()=>{const _0x149d28=_0x1bf695;this[_0x149d28(0x291)]();}));}};Fe=Qi([ie(0x1,_0x451de1(_0x1102c9)),ie(0x2,_0x451de1(H)),ie(0x3,_0x5e5675),ie(0x4,_0x451de1(_0x57f958))],Fe);const qi=0x1,en=1.5;class tn extends _0xa92bc{constructor(_0x2c4507,_0x1ae1c8){const _0x2ead75=_0x240916;super(_0x2c4507,_0x1ae1c8),_(this,_0x2ead75(0x174)),_(this,_0x2ead75(0x24d),!0x1),_(this,_0x2ead75(0x238)),_(this,_0x2ead75(0x15e),''),_(this,'_labelPosition',_0x2ead75(0x102)),_(this,_0x2ead75(0x19f)),(_0x1ae1c8&&this[_0x2ead75(0x1f6)](_0x1ae1c8),this[_0x2ead75(0x1fb)][_0x2ead75(0x18f)](()=>this[_0x2ead75(0x1f6)]({'hovered':!0x0})),this['onPointerLeave$'][_0x2ead75(0x18f)](()=>this[_0x2ead75(0x1f6)]({'hovered':!0x1})));}[_0x240916(0x1f6)](_0x41095b){const _0x877484=_0x240916;var _0x4326e8,_0x571185,_0x17f9be,_0xf25d83,_0x40fc50,_0x239688;this[_0x877484(0x174)]=(_0x4326e8=_0x41095b['color'])!=null?_0x4326e8:this[_0x877484(0x174)],this[_0x877484(0x24d)]=(_0x571185=_0x41095b['hovered'])!=null?_0x571185:this[_0x877484(0x24d)],this[_0x877484(0x238)]=(_0x17f9be=_0x41095b[_0x877484(0x220)])!=null?_0x17f9be:this[_0x877484(0x238)],this[_0x877484(0x15e)]=(_0xf25d83=_0x41095b[_0x877484(0x2d5)])!=null?_0xf25d83:this['_name'],this[_0x877484(0x2a4)]=(_0x40fc50=_0x41095b[_0x877484(0x309)])!=null?_0x40fc50:this[_0x877484(0x2a4)],this[_0x877484(0x19f)]=(_0x239688=_0x41095b[_0x877484(0x2dc)])!=null?_0x239688:this[_0x877484(0x19f)],this[_0x877484(0x256)]({'width':_0x41095b[_0x877484(0x223)],'height':_0x41095b['height']});}[_0x240916(0x22e)](_0x5043e3){const _0x9acdbf=_0x240916,{row:_0x1f9d59,column:_0x2e5728}=_0x5043e3;if(_0x1f9d59>=this[_0x9acdbf(0x238)][_0x9acdbf(0x1c5)]&&_0x1f9d59<=this[_0x9acdbf(0x238)][_0x9acdbf(0x2c3)]&&_0x2e5728>=this['_range'][_0x9acdbf(0x302)]&&_0x2e5728<=this[_0x9acdbf(0x238)][_0x9acdbf(0x316)]){this[_0x9acdbf(0x1f6)]({'hovered':!0x0});return;}this[_0x9acdbf(0x1f6)]({'hovered':!0x1});}[_0x240916(0x1a8)](_0x391472){return!0x1;}['_draw'](_0x310986){const _0x4daceb=_0x240916;_0x3d2ae1['drawWith'](_0x310986,{'width':this[_0x4daceb(0x223)],'height':this['height'],'strokeWidth':en,'stroke':this[_0x4daceb(0x174)],'evented':!0x1,'fill':this[_0x4daceb(0x19f)]}),this[_0x4daceb(0x24d)]&&(_0x310986[_0x4daceb(0x1f4)](),_0x310986[_0x4daceb(0x160)](0x1,0x0,0x0,0x1,this[_0x4daceb(0x223)],this[_0x4daceb(0x2a4)]===_0x4daceb(0x157)?0x0:-Q),ve['drawWith'](_0x310986,{'text':this[_0x4daceb(0x15e)],'color':this[_0x4daceb(0x174)]}),_0x310986[_0x4daceb(0xd4)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0xc60d0b,_0x5d73b2,_0x156f9a,_0x253061)=>{const _0x1a2fe1=_0x240916;for(var _0x204ab6=_0x253061>0x1?void 0x0:_0x253061?sn(_0x5d73b2,_0x156f9a):_0x5d73b2,_0x126e9e=_0xc60d0b[_0x1a2fe1(0xfb)]-0x1,_0x30c75c;_0x126e9e>=0x0;_0x126e9e--)(_0x30c75c=_0xc60d0b[_0x126e9e])&&(_0x204ab6=_0x30c75c(_0x204ab6)||_0x204ab6);return _0x204ab6;},be=(_0x445e58,_0x444142)=>(_0x316f39,_0x4b0c0a)=>_0x444142(_0x316f39,_0x4b0c0a,_0x445e58);const rn=0x1389;let ke=class extends _0x3122c4{constructor(_0x27075f,_0x2cea59,_0x2ca89b,_0x59d74f){const _0x14c91e=_0x240916;super(),_(this,_0x14c91e(0x31a),new Set()),_(this,'_lastPointer',null),(this[_0x14c91e(0x1c4)]=_0x27075f,this[_0x14c91e(0x2fa)]=_0x2cea59,this[_0x14c91e(0x317)]=_0x2ca89b,this[_0x14c91e(0xd2)]=_0x59d74f,this[_0x14c91e(0x163)]());}[_0x240916(0x163)](){const _0x37055e=_0x240916;this[_0x37055e(0x2fa)]['currentSkeleton$'][_0x37055e(0x1e1)](_0x2b4e82(this[_0x37055e(0x221)]),_0x1fc78b(_0x107b5a=>{const _0xeced1e=_0x37055e;if(_0x107b5a){const _0x6da28b=_0x107b5a['sheetId'];return _0x207d2b(this['_collabCursorController'][_0xeced1e(0x2ca)](this[_0xeced1e(0x1c4)][_0xeced1e(0x1fc)]),this[_0xeced1e(0xd2)][_0xeced1e(0x193)])[_0xeced1e(0x1e1)](_0x58bc15(([_0x50294a,_0x5cf57f])=>{const _0x5f0e0c=_0xeced1e,_0x3b5121=new Map();return _0x50294a[_0x5f0e0c(0x2e8)]((_0x26eff3,_0x1729c8)=>{const _0x95f225=_0x5f0e0c;if(_0x26eff3['sheetID']===_0x6da28b){const _0x2a0c79={..._0x26eff3};_0x2a0c79[_0x95f225(0x250)]=this[_0x95f225(0xd2)][_0x95f225(0x129)](_0x26eff3[_0x95f225(0x250)]),_0x3b5121[_0x95f225(0x26a)](_0x1729c8,_0x2a0c79);}}),{'skeleton':_0x107b5a,'cursors':_0x3b5121};}));}return _0x4cadb4({'skeleton':null,'cursors':new Map()});}))[_0x37055e(0x111)](({skeleton:_0xdfcc3c,cursors:_0x3516c2})=>{const _0x2c87ed=_0x37055e;this[_0x2c87ed(0x11e)](),_0xdfcc3c&&this['_updateCollabCursors'](_0xdfcc3c,_0x3516c2);}),this[_0x37055e(0x2fa)]['currentSkeleton$'][_0x37055e(0x111)](_0x5301ce=>{const _0x24ff51=_0x37055e;if(_0x5301ce==null)return;const {skeleton:_0x3e2b44}=_0x5301ce,{scene:_0x1dc65b}=this[_0x24ff51(0x1c4)];_0x1dc65b[_0x24ff51(0x116)][_0x24ff51(0x18f)](_0x17e35b(_0x4bf2f6=>{const _0x47e836=_0x24ff51;var _0x98366d,_0x33ce0a;const {offsetX:_0x5a5c54,offsetY:_0x98567}=_0x4bf2f6,{x:_0x2df475,y:_0x2d1197}=_0x1dc65b['getRelativeToViewportCoord'](_0x2e233c[_0x47e836(0x161)]([_0x5a5c54,_0x98567])),{scaleX:_0x1a1b8c,scaleY:_0x4f0f66}=_0x1dc65b[_0x47e836(0x2c4)](),_0xbca479=_0x1dc65b[_0x47e836(0x1cd)](_0xf0062['VIEW_MAIN']),_0x1ad4a1=_0x1dc65b[_0x47e836(0x1ae)](_0x2e233c[_0x47e836(0x161)]([_0x2df475,_0x2d1197]),_0xbca479),_0x343601=_0x3e2b44[_0x47e836(0x1ed)](_0x5a5c54,_0x98567,_0x1a1b8c,_0x4f0f66,_0x1ad4a1);((_0x98366d=this[_0x47e836(0x299)])==null?void 0x0:_0x98366d[_0x47e836(0x2a2)])===_0x343601[_0x47e836(0x2a2)]&&((_0x33ce0a=this[_0x47e836(0x299)])==null?void 0x0:_0x33ce0a[_0x47e836(0x1e9)])===_0x343601['row']||this['_cursors'][_0x47e836(0x2e8)](_0x327db7=>{_0x327db7['onMouseMove'](_0x343601);});},0x64));});}['_updateCollabCursors'](_0x39738b,_0x79e0e9){const _0x5b8edf=_0x240916;var _0x234d60;const _0x20bc7e=(_0x234d60=this[_0x5b8edf(0x2fa)][_0x5b8edf(0x1a0)]())==null?void 0x0:_0x234d60['skeleton'];if(!_0x20bc7e)return;const _0x411c03=this[_0x5b8edf(0x313)]();if(!_0x411c03)return;this[_0x5b8edf(0x31a)]['forEach'](_0x30476c=>{_0x30476c['makeDirty']();});const {scene:_0xc1a21}=_0x411c03,_0x3815a3=on(Array[_0x5b8edf(0x14a)](_0x79e0e9[_0x5b8edf(0x1fa)]()))[_0x5b8edf(0x281)](_0x669538=>{const _0x160377=_0x5b8edf,{color:_0x1d467b,range:_0x53746c,name:_0x25f8e1,selection:_0x382c3b,sheetID:_0x2ca7ab}=_0x669538,{startColumn:_0x3a9ad8,startRow:_0x4a775b,endColumn:_0x52662e,endRow:_0x233fe2}=_0x53746c,_0x22222f=_0xdb9d86(_0x4a775b,_0x3a9ad8,_0xc1a21,_0x20bc7e),_0x3b3000=_0xdb9d86(_0x233fe2,_0x52662e,_0xc1a21,_0x20bc7e),{columnHeaderHeightAndMarginTop:_0x223705}=_0x20bc7e,{startX:_0xe064a0,startY:_0x23abbc}=_0x22222f,{endX:_0x32c999,endY:_0x50ea6e}=_0x3b3000,_0x1159a6=_0x32c999-_0xe064a0,_0x52748a=_0x50ea6e-_0x23abbc,_0x26f350={'labelPosition':_0x23abbc-_0x223705>=Q?_0x160377(0x102):_0x160377(0x157),'sheetID':_0x2ca7ab,'range':_0x53746c,'color':_0x1d467b,'name':_0x25f8e1,'selection':_0x382c3b,'left':_0xe064a0,'top':_0x23abbc,'width':_0x1159a6,'height':_0x52748a,'evented':!0x1,'zIndex':rn};return new tn(_0x25f8e1,_0x26f350);});_0xc1a21['addObjects'](_0x3815a3,qi),this[_0x5b8edf(0x31a)]=new Set(_0x3815a3);}[_0x240916(0x11e)](){const _0x3a4afc=_0x240916;var _0x2f143a;(_0x2f143a=this[_0x3a4afc(0x31a)])==null||_0x2f143a['forEach'](_0x27770e=>_0x27770e[_0x3a4afc(0x185)]());}[_0x240916(0x313)](){const _0x12ee01=_0x240916;return _0x453f91(this[_0x12ee01(0x1c4)][_0x12ee01(0x262)],this[_0x12ee01(0x1c4)]);}};ke=nn([be(0x1,_0x451de1(_0x3e7369)),be(0x2,_0x451de1(H)),be(0x3,_0x451de1(_0x57f958))],ke);function on(_0x554328){const _0x3bae7f=_0x240916,_0x837398=new Map();return _0x554328[_0x3bae7f(0x2e8)](_0x314472=>{const _0x5cbb6f=_0x3bae7f;if(_0x837398[_0x5cbb6f(0x298)](_0x314472[_0x5cbb6f(0x253)])){const _0xcd1a9=_0x837398[_0x5cbb6f(0x1c7)](_0x314472[_0x5cbb6f(0x253)]);_0xcd1a9['name']+=',\x20'+_0x314472[_0x5cbb6f(0x2d5)];}else _0x837398[_0x5cbb6f(0x26a)](_0x314472[_0x5cbb6f(0x253)],_0x314472);}),Array[_0x3bae7f(0x14a)](_0x837398[_0x3bae7f(0x1fa)]());}var an=Object[_0x240916(0x1f8)],cn=(_0x2154a7,_0x5b01c7,_0x49dda8,_0x562ada)=>{const _0x1cbc41=_0x240916;for(var _0x461b50=_0x562ada>0x1?void 0x0:_0x562ada?an(_0x5b01c7,_0x49dda8):_0x5b01c7,_0x47db7b=_0x2154a7[_0x1cbc41(0xfb)]-0x1,_0x5419d2;_0x47db7b>=0x0;_0x47db7b--)(_0x5419d2=_0x2154a7[_0x47db7b])&&(_0x461b50=_0x5419d2(_0x461b50)||_0x461b50);return _0x461b50;},F=(_0xd93924,_0x44cf31)=>(_0x518b4b,_0x529b66)=>_0x44cf31(_0x518b4b,_0x529b66,_0xd93924);let _e=class extends _0xf771d3{constructor(_0x448560,_0x5e2d3f,_0x309f0f,_0x86188a,_0x307336,_0x5b866d){const _0x4c29f7=_0x240916;super(),this[_0x4c29f7(0x2cf)]=_0x448560,this['_localCacheService']=_0x5e2d3f,this[_0x4c29f7(0x258)]=_0x309f0f,this[_0x4c29f7(0x190)]=_0x86188a,this['_notificationService']=_0x307336,this[_0x4c29f7(0x239)]=_0x5b866d,this[_0x4c29f7(0x13a)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0xfea1ed=_0x240916;this[_0xfea1ed(0xe0)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0xe88136=_0xfea1ed;if(this['_localCacheService'][_0xe88136(0x25b)][_0xe88136(0xe4)])return this[_0xe88136(0x239)]['t']('collaboration.offline-data-not-saved');}));}[_0x240916(0x1d0)](){const _0x3515ab=_0x240916;this['disposeWithMe'](this['_collaborationUIEventService'][_0x3515ab(0xea)][_0x3515ab(0x111)](_0x273cf8=>{const _0x1736ff=_0x3515ab;_0x273cf8['id']===_0x892b1e['OTHER_CLIENT_EDITING']&&this['_messageService']['show']({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x2b9))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1f3)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x21f))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x15d)]&&this[_0x1736ff(0x2f8)][_0x1736ff(0x267)]({'title':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x2c2)),'content':this[_0x1736ff(0x239)]['t']('permission.content'),'type':'error','duration':0x0}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x279)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this['_localeService']['t'](_0x1736ff(0x21f))+'('+_0x273cf8[_0x1736ff(0x213)]+')'}),_0x273cf8['id']===_0x892b1e['JOIN_ROOM_FAILED']&&this[_0x1736ff(0x190)][_0x1736ff(0x267)]({'type':_0x24cf21['Warning'],'content':this[_0x1736ff(0x239)]['t'](_0x273cf8['data']||'')}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1df)]&&this[_0x1736ff(0x190)][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0x246)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x1f7))}),_0x273cf8['id']===_0x892b1e[_0x1736ff(0x1a4)]&&this['_messageService'][_0x1736ff(0x267)]({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x318))}),_0x273cf8['id']===_0x892b1e['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x24cf21[_0x1736ff(0xd9)],'content':this[_0x1736ff(0x239)]['t'](_0x1736ff(0x10e))});}));}};_e=cn([F(0x0,_0x159d32),F(0x1,_0x45d2d0),F(0x2,_0x451de1(_0x1be880)),F(0x3,_0x110574),F(0x4,_0xbbab2c),F(0x5,_0x451de1(_0x53f064))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x475ba5,_0x25a603,_0xefe9c0,_0x25f98f)=>{const _0x3c0700=_0x240916;for(var _0xcdcc4a=_0x25f98f>0x1?void 0x0:_0x25f98f?_n(_0x25a603,_0xefe9c0):_0x25a603,_0x45c755=_0x475ba5[_0x3c0700(0xfb)]-0x1,_0x1c5df0;_0x45c755>=0x0;_0x45c755--)(_0x1c5df0=_0x475ba5[_0x45c755])&&(_0xcdcc4a=_0x1c5df0(_0xcdcc4a)||_0xcdcc4a);return _0xcdcc4a;},ne=(_0x38d91e,_0x504be8)=>(_0x511dc1,_0x269d64)=>_0x504be8(_0x511dc1,_0x269d64,_0x38d91e);let le=class extends _0xf771d3{constructor(_0x5061a5,_0x269c5e,_0x3fe83a,_0x1271a2){const _0x5ee44d=_0x240916;super(),_(this,_0x5ee44d(0x2ae)),(this['_injector']=_0x5061a5,this[_0x5ee44d(0x19d)]=_0x269c5e,this['_logService']=_0x3fe83a,this[_0x5ee44d(0x13c)]=_0x1271a2,this[_0x5ee44d(0x163)]());}[_0x240916(0x163)](){const _0x6aa67=_0x240916;this[_0x6aa67(0x259)](),this[_0x6aa67(0x20f)](),this[_0x6aa67(0x121)](),this[_0x6aa67(0x18c)]();}[_0x240916(0x18c)](){const _0x16f95b=_0x240916;this[_0x16f95b(0xe0)](this[_0x16f95b(0x13c)]['socket$']['subscribe'](_0x3b89b3=>{const _0x3962e6=_0x16f95b;this[_0x3962e6(0x2ae)]=_0x3b89b3==null?void 0x0:_0x3b89b3[_0x3962e6(0x143)];}));}[_0x240916(0x259)](){const _0x2079c3=_0x240916,_0x2fdfd5=_0x27d535=>{const _0x3dabc6=_0x9124;var _0x289fb7;this['_uploadLog'](_0x3dabc6(0x20a),'[Window\x20Error]:\x20'+_0x27d535[_0x3dabc6(0x16e)]+_0x3dabc6(0x1d4)+_0x27d535[_0x3dabc6(0x312)]+':'+_0x27d535[_0x3dabc6(0x2d8)]+':'+_0x27d535['colno']+'\x0a'+(((_0x289fb7=_0x27d535['error'])==null?void 0x0:_0x289fb7['stack'])||''));};window['addEventListener'](_0x2079c3(0x20a),_0x2fdfd5),this[_0x2079c3(0xe0)](()=>{const _0x5adfc8=_0x2079c3;window[_0x5adfc8(0x194)](_0x5adfc8(0x20a),_0x2fdfd5);});}['_initUnhandledRejectionListener'](){const _0x5e5628=_0x240916,_0x56b26a=_0x4ff2b9=>{const _0x10925f=_0x9124;this[_0x10925f(0x2d1)](_0x10925f(0x20a),_0x10925f(0x25a)+_0x4ff2b9['reason']);};window[_0x5e5628(0x216)](_0x5e5628(0x215),_0x56b26a),this['disposeWithMe'](()=>{const _0x275464=_0x5e5628;window[_0x275464(0x194)](_0x275464(0x215),_0x56b26a);});}['_monkeyPatchLogService'](){const _0x7adff5=_0x240916,_0x1e5e5f=this[_0x7adff5(0x26f)]['error']['bind'](this[_0x7adff5(0x26f)]);this[_0x7adff5(0x26f)][_0x7adff5(0x20a)]=(..._0x25766d)=>{const _0x26e898=_0x7adff5,_0x281665=_0x25766d[_0x26e898(0x281)](_0x532519=>_0x532519 instanceof Error?_0x532519[_0x26e898(0x16e)]+'\x0a'+_0x532519['stack']:String(_0x532519))['join']('\x20');this['_uploadLog'](_0x26e898(0x20a),_0x26e898(0x1c3)+_0x281665),_0x1e5e5f(..._0x25766d);},this[_0x7adff5(0xe0)](()=>{const _0x2b9a72=_0x7adff5;this['_logService'][_0x2b9a72(0x20a)]=_0x1e5e5f;});}['_uploadLog'](_0x9daf5f,_0x2285c5){const _0x3aa0fb=_0x240916;try{const _0x4eded={'userId':this[_0x3aa0fb(0x2ae)],'logLabel':_0x9daf5f,'content':_0x2285c5};this[_0x3aa0fb(0x19d)]['post'](_0x3aa0fb(0x1e8),{'body':_0x4eded})[_0x3aa0fb(0x122)](()=>{});}catch{}}};le=ln([ne(0x0,_0x451de1(_0x30dac5)),ne(0x1,_0x451de1(_0x20e19d)),ne(0x2,_0x48e521),ne(0x3,_0x451de1(_0x27d44b))],le);const hn=_0x240916(0x16d),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0xa9579d,_0x4e6c4b,_0x4026fa,_0x329d51)=>{const _0x40e8c7=_0x240916;for(var _0x1980ac=_0x329d51>0x1?void 0x0:_0x329d51?un(_0x4e6c4b,_0x4026fa):_0x4e6c4b,_0x3c37c4=_0xa9579d[_0x40e8c7(0xfb)]-0x1,_0x484d01;_0x3c37c4>=0x0;_0x3c37c4--)(_0x484d01=_0xa9579d[_0x3c37c4])&&(_0x1980ac=_0x484d01(_0x1980ac)||_0x1980ac);return _0x1980ac;},lt=(_0x23b242,_0x4bfa64)=>(_0x5f3a67,_0x5e5d8e)=>_0x4bfa64(_0x5f3a67,_0x5e5d8e,_0x23b242);let he=class{constructor(_0x5963dc,_0x4cc7bd){const _0x20a291=_0x240916;this[_0x20a291(0x1bf)]=_0x5963dc,this[_0x20a291(0x212)]=_0x4cc7bd;}[_0x240916(0x166)](_0x11654a){const _0x137600=_0x240916;this[_0x137600(0xd1)](_0x11654a),this[_0x137600(0x1ff)](_0x11654a);}[_0x240916(0x17b)](_0x1c91e9){const _0x347e93=_0x240916,{unitID:_0x3b620c}=_0x1c91e9,_0x3ae244=this['_renderManagerService']['getRenderById'](_0x3b620c)['with'](_0x193f11),{redoCache:_0x405741}=_0x3ae244[_0x347e93(0x2ed)]();if(_0x405741[_0x347e93(0xfb)]===0x0)return _0x1c91e9;let _0x4b287c=_0x141325[_0x347e93(0x2ef)](_0x1c91e9[_0x347e93(0x172)][0x0]);for(let _0x54b9a2=0x0;_0x54b9a2<_0x405741[_0x347e93(0xfb)];_0x54b9a2++){const _0x56f263={'id':_0x347e93(0x1b5),'params':{..._0x405741[_0x54b9a2]}},_0x34528d=this['_transformService']['transformMutation'](_0x4b287c,_0x56f263,!0x1);if(_0x699f6f(_0x34528d))throw _0x34528d['error'];_0x4b287c=_0x34528d['m1Prime'];}return{..._0x141325[_0x347e93(0x2ef)](_0x1c91e9),'mutations':[_0x4b287c]};}[_0x240916(0xd1)](_0x3e6132){const _0x33219c=_0x240916,{unitID:_0x56ba71}=_0x3e6132,_0x112bf8=this[_0x33219c(0x212)][_0x33219c(0xf1)](_0x56ba71)[_0x33219c(0x310)](_0x193f11),{undoCache:_0x4e34e9,redoCache:_0x42fac4}=_0x112bf8[_0x33219c(0x2ed)]();if(_0x4e34e9[_0x33219c(0xfb)]===0x0||_0x42fac4[_0x33219c(0xfb)]===0x0)return;const _0x1e42d7=[],_0x45a661=[];let _0x174b6d=_0x141325[_0x33219c(0x2ef)](_0x3e6132[_0x33219c(0x172)][0x0]),_0x4401bd=_0x141325[_0x33219c(0x2ef)](_0x3e6132['mutations'][0x0]);for(let _0x355469=_0x4e34e9[_0x33219c(0xfb)]-0x1;_0x355469>=0x0;_0x355469--){const _0x6ee3a5={'id':_0x33219c(0x1b5),'params':{..._0x4e34e9[_0x355469]}},_0x43e4b4={'id':_0x33219c(0x1b5),'params':{..._0x42fac4[_0x355469]}},_0x5bac09=this['_transformService'][_0x33219c(0x183)](_0x174b6d,_0x6ee3a5,!0x1),_0x1fed99=this['_transformService']['transformMutation'](_0x4401bd,_0x43e4b4,!0x1);if(_0x699f6f(_0x5bac09))throw _0x5bac09[_0x33219c(0x20a)];if(_0x699f6f(_0x1fed99))throw _0x1fed99['error'];_0x1e42d7[_0x33219c(0x100)](_0x5bac09[_0x33219c(0x103)][_0x33219c(0x1d8)]),_0x45a661[_0x33219c(0x100)](_0x1fed99[_0x33219c(0x103)][_0x33219c(0x1d8)]),_0x174b6d=_0x5bac09[_0x33219c(0x113)],_0x4401bd=_0x1fed99['m1Prime'];}_0x112bf8[_0x33219c(0x1c8)]({'undoCache':_0x1e42d7,'redoCache':_0x45a661});}[_0x240916(0x1ff)](_0xbacaa){const _0x3314f2=_0x240916,{unitID:_0x17e38d}=_0xbacaa,_0x150b78=this[_0x3314f2(0x212)]['getRenderById'](_0x17e38d)['with'](_0x193f11),_0x5124d2=_0x150b78['getActiveRange']();if(_0x5124d2==null)return;const _0x1c1d5c=[{'id':_0x3314f2(0x1b5),'params':{'unitId':_0xbacaa['unitID'],'actions':null,'textRanges':[_0x5124d2]}}],_0x402d0e=this['_transformService'][_0x3314f2(0x10b)](_0xbacaa,_0x1c1d5c);if(!_0x73df74(_0x402d0e))throw _0x402d0e[_0x3314f2(0x20a)];const _0x24e6a5=_0x402d0e['m2Prime'][0x0][_0x3314f2(0x1d8)][_0x3314f2(0x16c)];Array[_0x3314f2(0x1f9)](_0x24e6a5)&&_0x24e6a5['length']&&_0x150b78[_0x3314f2(0x1a6)](_0x24e6a5[0x0]);}};he=dn([lt(0x0,_0x10d68c),lt(0x1,_0x4d689b)],he);var Sn=Object[_0x240916(0x1f8)],In=(_0x2fd0c8,_0x54f199,_0x8e7ac0,_0x11a80e)=>{const _0xb3f604=_0x240916;for(var _0x478dbf=_0x11a80e>0x1?void 0x0:_0x11a80e?Sn(_0x54f199,_0x8e7ac0):_0x54f199,_0x49d542=_0x2fd0c8[_0xb3f604(0xfb)]-0x1,_0x70484b;_0x49d542>=0x0;_0x49d542--)(_0x70484b=_0x2fd0c8[_0x49d542])&&(_0x478dbf=_0x70484b(_0x478dbf)||_0x478dbf);return _0x478dbf;},Le=(_0x148580,_0x1556ba)=>(_0x170a0d,_0x19d7db)=>_0x1556ba(_0x170a0d,_0x19d7db,_0x148580);let ue=class{constructor(_0x412af1,_0x5997f0,_0x855e8){const _0x3bd9aa=_0x240916;this['_injector']=_0x412af1,this[_0x3bd9aa(0x1bf)]=_0x5997f0,this[_0x3bd9aa(0x30a)]=_0x855e8;}[_0x240916(0x200)](_0xa8d2b1){this['_transformHistoryAndStateStack'](_0xa8d2b1);}[_0x240916(0x17b)](_0x3b211e){const _0x29de05=_0x240916,{unitID:_0x5148e5}=_0x3b211e,{collaboration:_0x195a6e}=this['_docStateChangeManagerService'][_0x29de05(0x294)](_0x5148e5);if(_0x195a6e['length']===0x0)return _0x3b211e;let _0x5e573e=_0x141325[_0x29de05(0x2ef)](_0x3b211e[_0x29de05(0x172)][0x0]);for(let _0x5f53e2=0x0;_0x5f53e2<_0x195a6e[_0x29de05(0xfb)];_0x5f53e2++){const _0x41e6e5={'id':_0x29de05(0x1b5),'params':{'unitId':_0x195a6e[_0x5f53e2][_0x29de05(0x1fc)],..._0x195a6e[_0x5f53e2]['redoState']}},_0x1d98bc=this[_0x29de05(0x1bf)][_0x29de05(0x183)](_0x5e573e,_0x41e6e5,!0x1);if(_0x699f6f(_0x1d98bc))throw _0x1d98bc['error'];_0x5e573e=_0x1d98bc['m1Prime'];}return{..._0x141325[_0x29de05(0x2ef)](_0x3b211e),'mutations':[_0x5e573e]};}[_0x240916(0x128)](_0x3e0482){const _0x210226=_0x240916,{unitID:_0x333570}=_0x3e0482,{history:_0x4ab5f3,collaboration:_0x599183}=this['_docStateChangeManagerService']['getStateCache'](_0x333570);if(_0x4ab5f3[_0x210226(0xfb)]===0x0&&_0x599183[_0x210226(0xfb)]===0x0)return;const _0x2b0283=[],_0x4592a3=[];let _0x1c2d92=_0x141325['deepClone'](_0x3e0482['mutations'][0x0]),_0x40761a=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]);for(let _0x551ad0=_0x4ab5f3[_0x210226(0xfb)]-0x1;_0x551ad0>=0x0;_0x551ad0--){const _0x30f862={'id':_0x210226(0x1b5),'params':{'unitId':_0x4ab5f3[_0x551ad0]['unitId'],..._0x4ab5f3[_0x551ad0]['undoState']}},_0x178ac4={'id':_0x210226(0x1b5),'params':{'unitId':_0x4ab5f3[_0x551ad0][_0x210226(0x1fc)],..._0x4ab5f3[_0x551ad0][_0x210226(0x141)]}},_0x721352=this[_0x210226(0x1bf)]['transformMutation'](_0x1c2d92,_0x30f862,!0x1),_0x47e73a=this[_0x210226(0x1bf)][_0x210226(0x183)](_0x40761a,_0x178ac4,!0x1);if(_0x699f6f(_0x721352))throw _0x721352[_0x210226(0x20a)];if(_0x699f6f(_0x47e73a))throw _0x47e73a[_0x210226(0x20a)];_0x2b0283[_0x210226(0x100)]({..._0x4ab5f3[_0x551ad0],'undoState':_0x721352['m2Prime']['params'],'redoState':_0x47e73a[_0x210226(0x103)][_0x210226(0x1d8)]}),_0x1c2d92=_0x721352[_0x210226(0x113)],_0x40761a=_0x47e73a['m1Prime'];}_0x1c2d92=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]),_0x40761a=_0x141325[_0x210226(0x2ef)](_0x3e0482[_0x210226(0x172)][0x0]);for(let _0x2d9762=_0x599183['length']-0x1;_0x2d9762>=0x0;_0x2d9762--){const _0x596e7c={'id':_0x210226(0x1b5),'params':{'unitId':_0x599183[_0x2d9762][_0x210226(0x1fc)],..._0x599183[_0x2d9762][_0x210226(0x254)]}},_0x2e60bf={'id':_0x210226(0x1b5),'params':{'unitId':_0x599183[_0x2d9762][_0x210226(0x1fc)],..._0x599183[_0x2d9762][_0x210226(0x141)]}},_0x53455b=this[_0x210226(0x1bf)][_0x210226(0x183)](_0x1c2d92,_0x596e7c,!0x1),_0x4c26b8=this[_0x210226(0x1bf)]['transformMutation'](_0x40761a,_0x2e60bf,!0x1);if(_0x699f6f(_0x53455b))throw _0x53455b[_0x210226(0x20a)];if(_0x699f6f(_0x4c26b8))throw _0x4c26b8[_0x210226(0x20a)];_0x4592a3['unshift']({..._0x599183[_0x2d9762],'undoState':_0x53455b[_0x210226(0x103)][_0x210226(0x1d8)],'redoState':_0x4c26b8[_0x210226(0x103)][_0x210226(0x1d8)]}),_0x1c2d92=_0x53455b[_0x210226(0x113)],_0x40761a=_0x4c26b8[_0x210226(0x113)];}this[_0x210226(0x30a)][_0x210226(0x247)](_0x333570,{'history':_0x2b0283,'collaboration':_0x4592a3});}};ue=In([Le(0x0,_0x451de1(_0x30dac5)),Le(0x1,_0x10d68c),Le(0x2,_0x451de1(_0x3199a5))],ue);var mn=Object[_0x240916(0x1f8)],fn=(_0x257f35,_0x413c7f,_0x48ac66,_0x55e374)=>{const _0x3b8607=_0x240916;for(var _0x47a7b3=_0x55e374>0x1?void 0x0:_0x55e374?mn(_0x413c7f,_0x48ac66):_0x413c7f,_0x20f760=_0x257f35[_0x3b8607(0xfb)]-0x1,_0x546a66;_0x20f760>=0x0;_0x20f760--)(_0x546a66=_0x257f35[_0x20f760])&&(_0x47a7b3=_0x546a66(_0x47a7b3)||_0x47a7b3);return _0x47a7b3;},ht=(_0x12f40e,_0x820533)=>(_0x2f4cb8,_0x1018b0)=>_0x820533(_0x2f4cb8,_0x1018b0,_0x12f40e);let de=class{constructor(_0x3a0aa0,_0xdb1591){const _0x38b822=_0x240916;this[_0x38b822(0x26e)]=_0x3a0aa0,this[_0x38b822(0x1bf)]=_0xdb1591;}[_0x240916(0x156)](_0x47bf24){const _0x5ce377=_0x240916;var _0x2fb8c8;const _0x589126=this[_0x5ce377(0x26e)][_0x5ce377(0x1c7)](_0x5f3a65),_0x6d4b76=(_0x2fb8c8=_0x589126['getDocRanges']())!=null?_0x2fb8c8:[];if(_0x6d4b76[_0x5ce377(0xfb)]===0x0)return;const _0xc6bc96=_0x47bf24[_0x5ce377(0x22c)],_0x41ba8a=[{'id':_0x5ce377(0x1b5),'params':{'unitId':_0xc6bc96,'actions':null,'textRanges':_0x6d4b76}}],_0xcdcdcf=this[_0x5ce377(0x1bf)][_0x5ce377(0x10b)](_0x47bf24,_0x41ba8a);if(!_0x73df74(_0xcdcdcf))throw _0xcdcdcf[_0x5ce377(0x20a)];const _0x2313e5=_0xcdcdcf[_0x5ce377(0x103)][0x0][_0x5ce377(0x1d8)][_0x5ce377(0x16c)];Array[_0x5ce377(0x1f9)](_0x2313e5)&&_0x2313e5[_0x5ce377(0xfb)]&&_0x589126['replaceDocRanges'](_0x2313e5,{'unitId':_0xc6bc96,'subUnitId':_0xc6bc96},!0x1);}};de=fn([ht(0x0,_0x451de1(_0x30dac5)),ht(0x1,_0x10d68c)],de);var gn=Object['getOwnPropertyDescriptor'],En=(_0x159454,_0x415069,_0x2c3b96,_0x231e67)=>{const _0x3af46b=_0x240916;for(var _0x4051f4=_0x231e67>0x1?void 0x0:_0x231e67?gn(_0x415069,_0x2c3b96):_0x415069,_0x5b5621=_0x159454[_0x3af46b(0xfb)]-0x1,_0x47c248;_0x5b5621>=0x0;_0x5b5621--)(_0x47c248=_0x159454[_0x5b5621])&&(_0x4051f4=_0x47c248(_0x4051f4)||_0x4051f4);return _0x4051f4;},U=(_0xacc485,_0x150f58)=>(_0x3ed17a,_0x2d125d)=>_0x150f58(_0x3ed17a,_0x2d125d,_0xacc485);let Se=class extends _0xf771d3{constructor(_0x4533f5,_0x469d56,_0x250d28,_0x14cd8d,_0x40bda4,_0x297283,_0x906908,_0x4b95f6){const _0x33e55c=_0x240916;super(),_(this,_0x33e55c(0x2a1),new _0x37599d(_0x1cb4cc[_0x33e55c(0x23c)])),(this['_docStateChangeManagerService']=_0x4533f5,this[_0x33e55c(0x114)]=_0x469d56,this[_0x33e55c(0x1a5)]=_0x250d28,this[_0x33e55c(0x2c1)]=_0x14cd8d,this[_0x33e55c(0x28b)]=_0x40bda4,this[_0x33e55c(0x117)]=_0x297283,this[_0x33e55c(0x190)]=_0x906908,this[_0x33e55c(0x239)]=_0x4b95f6,this[_0x33e55c(0x22a)]());}[_0x240916(0x22a)](){const _0x3d46a4=_0x240916;this['disposeWithMe'](this[_0x3d46a4(0x114)][_0x3d46a4(0x151)]['subscribe'](_0xefe530=>{const _0x1e389b=_0x3d46a4,_0x383c73=this['_docStateChangeManagerService']['docStateChange$'][_0x1e389b(0x111)](_0x2a2332=>{const _0xd1d0cf=_0x1e389b;if(_0x2a2332==null)return;const {unitId:_0x3281db,redoState:_0x91822f,commandId:_0x18dd0c}=_0x2a2332;if(_0x3281db!==_0xefe530[_0xd1d0cf(0x22c)])return;const _0x4543cd={'id':_0x18dd0c,'type':_0x445795[_0xd1d0cf(0x2b6)],'params':{'unitId':_0x3281db,'actions':_0x91822f[_0xd1d0cf(0x1db)],'textRanges':null}};_0xefe530[_0xd1d0cf(0x169)](_0x4543cd);});if(_0xefe530['disposeWithMe'](_0x383c73),_0xefe530 instanceof _0x320279){const _0x3d1798={'onTransformIME':_0x54361b=>this['_docTransformIMECacheService']['transformIMECache'](_0x54361b),'onTransformState':_0x509e2f=>this['_docTransformStateCacheService']['transformStateCache'](_0x509e2f),'onTransformSelections':_0x58b394=>this[_0x1e389b(0x28b)][_0x1e389b(0x156)](_0x58b394),'onSyncEditingCollabCursor':_0x1ace80=>this[_0x1e389b(0x117)][_0x1e389b(0x2f3)](_0x1ace80),'onTransformRemoteChangesetByIMECache':_0x5e334b=>this[_0x1e389b(0x1a5)][_0x1e389b(0x17b)](_0x5e334b),'onTransformRemoteChangesetByStateCache':_0x70dc82=>this[_0x1e389b(0x2c1)][_0x1e389b(0x17b)](_0x70dc82)};_0xefe530['addHandlerCallback'](_0x3d1798);}}));}};Se=En([U(0x0,_0x451de1(_0x3199a5)),U(0x1,_0x451de1(_0x4a10bf)),U(0x2,_0x451de1(he)),U(0x3,_0x451de1(ue)),U(0x4,_0x451de1(de)),U(0x5,_0x451de1(ze)),U(0x6,_0x110574),U(0x7,_0x451de1(_0x53f064))],Se);var Z=(_0x1d891c=>(_0x1d891c[_0x1d891c[_0x240916(0x18e)]=0x0]='UNDEFINED',_0x1d891c[_0x1d891c['OK']=0x1]='OK',_0x1d891c[_0x1d891c[_0x240916(0x243)]=0x2]=_0x240916(0x243),_0x1d891c[_0x1d891c[_0x240916(0x15d)]=0x3]=_0x240916(0x15d),_0x1d891c[_0x1d891c['NOT_FOUND']=0x4]=_0x240916(0x242),_0x1d891c[_0x1d891c[_0x240916(0x24e)]=0x5]=_0x240916(0x24e),_0x1d891c[_0x1d891c[_0x240916(0x154)]=0x6]=_0x240916(0x154),_0x1d891c[_0x1d891c[_0x240916(0x232)]=0x7]='INVALID_ARGUMENT',_0x1d891c[_0x1d891c[_0x240916(0x255)]=0x8]=_0x240916(0x255),_0x1d891c[_0x1d891c[_0x240916(0x251)]=0x9]='COMPLETION_FINISHED',_0x1d891c[_0x1d891c['LOGIN_FAILED']=0xa]=_0x240916(0x270),_0x1d891c[_0x1d891c[_0x240916(0xda)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x1d891c[_0x1d891c[_0x240916(0x1b9)]=0xc]=_0x240916(0x1b9),_0x1d891c[_0x1d891c[_0x240916(0x1bb)]=0xd]=_0x240916(0x1bb),_0x1d891c[_0x1d891c[_0x240916(0x11a)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x1d891c[_0x1d891c[_0x240916(0x2af)]=0xf]=_0x240916(0x2af),_0x1d891c[_0x1d891c[_0x240916(0x22d)]=0x10]=_0x240916(0x22d),_0x1d891c[_0x1d891c[_0x240916(0x21b)]=0x64]=_0x240916(0x21b),_0x1d891c[_0x1d891c['ERROR_AGAIN']=0x65]=_0x240916(0x2ce),_0x1d891c[_0x1d891c[_0x240916(0xd7)]=0xc9]='USER_NOT_FOUND',_0x1d891c[_0x1d891c[_0x240916(0x29b)]=0xca]=_0x240916(0x29b),_0x1d891c[_0x1d891c[_0x240916(0x13b)]=0x1389]=_0x240916(0x13b),_0x1d891c[_0x1d891c[_0x240916(0x2f5)]=0x1771]=_0x240916(0x2f5),_0x1d891c[_0x1d891c[_0x240916(0xe5)]=0x1772]=_0x240916(0xe5),_0x1d891c[_0x1d891c[_0x240916(0x2a9)]=0x1773]=_0x240916(0x2a9),_0x1d891c[_0x1d891c[_0x240916(0x180)]=0x1b59]=_0x240916(0x180),_0x1d891c[_0x1d891c[_0x240916(0x206)]=0x1b5a]=_0x240916(0x206),_0x1d891c[_0x1d891c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x240916(0x1d9),_0x1d891c[_0x1d891c[_0x240916(0x20c)]=0x1b5c]=_0x240916(0x20c),_0x1d891c[_0x1d891c[_0x240916(0x15c)]=0x1b5d]=_0x240916(0x15c),_0x1d891c[_0x1d891c['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x240916(0x285),_0x1d891c[_0x1d891c['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x240916(0xdf),_0x1d891c[_0x1d891c[_0x240916(0x2e5)]=0x232a]=_0x240916(0x2e5),_0x1d891c[_0x1d891c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x240916(0x288),_0x1d891c[_0x1d891c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x240916(0x225),_0x1d891c[_0x1d891c[_0x240916(0x30f)]=0x232d]=_0x240916(0x30f),_0x1d891c[_0x1d891c[_0x240916(0x1ea)]=0x2711]=_0x240916(0x1ea),_0x1d891c[_0x1d891c[_0x240916(0x203)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1d891c[_0x1d891c[_0x240916(0x11f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1d891c[_0x1d891c[_0x240916(0x2e2)]=0x2714]=_0x240916(0x2e2),_0x1d891c[_0x1d891c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x240916(0x209),_0x1d891c[_0x1d891c['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1d891c[_0x1d891c[_0x240916(0x29a)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x1d891c[_0x1d891c[_0x240916(0xe6)]=0x271d]=_0x240916(0xe6),_0x1d891c[_0x1d891c['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x240916(0xd8),_0x1d891c[_0x1d891c[_0x240916(0x14b)]=0x271f]=_0x240916(0x14b),_0x1d891c[_0x1d891c[_0x240916(0x1d3)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x1d891c[_0x1d891c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x240916(0x2bc),_0x1d891c[_0x1d891c['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x240916(0x264),_0x1d891c[_0x1d891c[_0x240916(0x230)]=0x2ee2]=_0x240916(0x230),_0x1d891c[_0x1d891c[_0x240916(0x235)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x1d891c[_0x1d891c[_0x240916(0x237)]=0x2ee4]=_0x240916(0x237),_0x1d891c[_0x1d891c[_0x240916(0x125)]=0x2ee5]=_0x240916(0x125),_0x1d891c[_0x1d891c[_0x240916(0x27d)]=0x32c9]=_0x240916(0x27d),_0x1d891c[_0x1d891c[_0x240916(0x170)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1d891c[_0x1d891c[_0x240916(0x30b)]=0x32cb]=_0x240916(0x30b),_0x1d891c[_0x1d891c[_0x240916(0xf2)]=0x36b1]=_0x240916(0xf2),_0x1d891c[_0x1d891c[_0x240916(0x14d)]=0x36b2]=_0x240916(0x14d),_0x1d891c[_0x1d891c[_0x240916(0x144)]=0x36b3]=_0x240916(0x144),_0x1d891c[_0x1d891c[_0x240916(0x278)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x1d891c[_0x1d891c[_0x240916(0x2a8)]=0x36b5]=_0x240916(0x2a8),_0x1d891c[_0x1d891c[_0x240916(0x207)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x1d891c[_0x1d891c['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x240916(0x2ea),_0x1d891c[_0x1d891c['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x1d891c[_0x1d891c[_0x240916(0x25e)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x1d891c[_0x1d891c[_0x240916(0xe1)]=0x3716]=_0x240916(0xe1),_0x1d891c[_0x1d891c['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x240916(0x269),_0x1d891c[_0x1d891c[_0x240916(0x2fe)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x1d891c[_0x1d891c[_0x240916(0x149)]=0x3a99]=_0x240916(0x149),_0x1d891c[_0x1d891c[_0x240916(0x192)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x1d891c[_0x1d891c[_0x240916(0x2e9)]=0x3a9b]=_0x240916(0x2e9),_0x1d891c[_0x1d891c[_0x240916(0x240)]=0x3a9c]=_0x240916(0x240),_0x1d891c[_0x1d891c['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x240916(0x301),_0x1d891c[_0x1d891c[_0x240916(0x17e)]=0x3a9e]=_0x240916(0x17e),_0x1d891c[_0x1d891c[_0x240916(0x1e6)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x1d891c[_0x1d891c['DATA_SOURCE_TOO_LARGE']=0x3e81]=_0x240916(0x1fd),_0x1d891c[_0x1d891c[_0x240916(0x25c)]=-0x1]=_0x240916(0x25c),_0x1d891c))(Z||{});function vn(_0x27be7c){const _0x59e115=_0x240916;var _0xe5c215,_0x2c58d2;const _0x5cbf99=(_0xe5c215=_0x27be7c['stageInfo'])==null?void 0x0:_0xe5c215[_0x59e115(0x273)],_0x3e885f=((_0x2c58d2=_0x27be7c[_0x59e115(0x304)])==null?void 0x0:_0x2c58d2[_0x59e115(0x12e)])||0x0;return _0x5cbf99===_0x39b8f6[_0x59e115(0x2fd)]&&_0x3e885f>0x0;}function pn(_0x1f3723){const _0x511ea0=_0x240916;return _0x1f3723[_0x511ea0(0x202)]===_0xb5c3c9['SUCCESS'];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x4f1396,_0x5f4675,_0x5b892a,_0x43ca21)=>{const _0x1d076b=_0x240916;for(var _0x571ac4=_0x43ca21>0x1?void 0x0:_0x43ca21?On(_0x5f4675,_0x5b892a):_0x5f4675,_0x9a4528=_0x4f1396[_0x1d076b(0xfb)]-0x1,_0x4f4cd6;_0x9a4528>=0x0;_0x9a4528--)(_0x4f4cd6=_0x4f1396[_0x9a4528])&&(_0x571ac4=_0x4f4cd6(_0x571ac4)||_0x571ac4);return _0x571ac4;},P=(_0x4a1d68,_0x2c060f)=>(_0x35ea79,_0x2af949)=>_0x2c060f(_0x35ea79,_0x2af949,_0x4a1d68);const Cn=_0x240916(0x181),Rn=_0x240916(0x199),Dn=_0x240916(0xef);let Ie=class extends _0xf771d3{constructor(_0x52c29b,_0x5830b3,_0x518cef,_0x5c75c2,_0x196f90,_0x1e8213,_0x38c548){const _0x31a21f=_0x240916;super(),_(this,_0x31a21f(0x1ec),null),_(this,_0x31a21f(0x2f7),0x0),_(this,'_currentUsage',0x0),_(this,_0x31a21f(0x1cb),[]),_(this,_0x31a21f(0x145),0x0),(this[_0x31a21f(0x190)]=_0x52c29b,this['_commandService']=_0x5830b3,this[_0x31a21f(0x263)]=_0x518cef,this[_0x31a21f(0x19d)]=_0x5c75c2,this[_0x31a21f(0x1d7)]=_0x196f90,this[_0x31a21f(0x26f)]=_0x1e8213,this[_0x31a21f(0x239)]=_0x38c548,this[_0x31a21f(0x11d)]());}[_0x240916(0x11d)](){const _0x34cd14=_0x240916;this[_0x34cd14(0xe0)](this[_0x34cd14(0x208)][_0x34cd14(0xd5)]((_0x34c5cf,_0x283704)=>{const _0x1a3747=_0x34cd14;var _0x2d303a;if(_0x34c5cf['id']!==_0x1971b5['id'])return;const _0x293bd7=_0x34c5cf[_0x1a3747(0x1d8)];if(!this['_hasFormulaInDirtyRanges']((_0x2d303a=_0x293bd7[_0x1a3747(0x10d)])!=null?_0x2d303a:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x1a3747(0x29f)](_0x34c5cf,_0x283704),this[_0x1a3747(0x2e0)](),new _0x100082();})),this[_0x34cd14(0xe0)](this['_commandService'][_0x34cd14(0x171)]((_0x25668d,_0x3102a4)=>{const _0x11c68f=_0x34cd14;if(_0x25668d['id']!==_0x446ee4['id'])return;const _0x2f0dee=_0x25668d[_0x11c68f(0x1d8)];if(vn(_0x2f0dee)){const _0x777358=_0x2664d4();this[_0x11c68f(0x1cb)][_0x11c68f(0x1e0)](_0x777358),this['_startCalculationLimit'](_0x777358);}else{if(pn(_0x2f0dee)&&this[_0x11c68f(0x1cb)][_0x11c68f(0xfb)]>0x0){const _0x21fabb=this['_taskIds'][_0x11c68f(0x13e)]();this['_releaseCalculationLimit'](_0x21fabb);}}}));}[_0x240916(0x185)](){const _0x37d1a7=_0x240916;super[_0x37d1a7(0x185)](),this[_0x37d1a7(0xe7)](),this[_0x37d1a7(0x1cb)]=[],this[_0x37d1a7(0x26d)]=0x0,this[_0x37d1a7(0x2f7)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x240916(0x29f)](_0x4d3fd5,_0x5e2b30){const _0x5525bb=_0x240916;for(let _0x5785be=0x0;_0x5785be<0x1e;_0x5785be++)try{if(await this['_getFormulaLimitStatus'](),this[_0x5525bb(0x16a)]()){this[_0x5525bb(0x1c1)](_0x4d3fd5,_0x5e2b30),this[_0x5525bb(0x190)][_0x5525bb(0x267)]({'content':this[_0x5525bb(0x239)]['t'](_0x5525bb(0x23a)),'type':_0x24cf21[_0x5525bb(0x150)]});return;}await new Promise(_0x2b004b=>{const _0x171f13=_0x5525bb;this[_0x171f13(0x1ec)]=window[_0x171f13(0xfa)](_0x2b004b,0x3e8);});}catch(_0x127fd8){this['_logService']['error'](_0x127fd8);}this[_0x5525bb(0x190)][_0x5525bb(0x267)]({'content':this[_0x5525bb(0x239)]['t'](_0x5525bb(0x176)),'type':_0x24cf21[_0x5525bb(0xd9)]});}[_0x240916(0x1c1)](_0x1e9bc4,_0x5be3ad){const _0x25a098=_0x240916;try{this[_0x25a098(0x208)][_0x25a098(0x282)](_0x1e9bc4['id'],_0x1e9bc4[_0x25a098(0x1d8)],_0x5be3ad);}catch(_0x4631d3){this[_0x25a098(0x26f)][_0x25a098(0x20a)](_0x4631d3);}}[_0x240916(0x307)](_0x38023b,_0x1e8983){const _0x140e8f=_0x240916;_0x1e8983<this[_0x140e8f(0x145)]||(this[_0x140e8f(0x145)]=_0x1e8983,this[_0x140e8f(0x2f7)]=Number[_0x140e8f(0x20e)](_0x38023b[_0x140e8f(0x236)]),this['_currentUsage']=Number['parseInt'](_0x38023b[_0x140e8f(0x115)]));}async[_0x240916(0x1b2)](_0x37965c){const _0x5e9974=_0x240916;var _0x4a3bf1,_0xfee2c6;const _0x57467c=Date[_0x5e9974(0x14e)]();try{const _0x385450=((_0x4a3bf1=this[_0x5e9974(0x263)]['getConfig'](_0x2941e8))==null?void 0x0:_0x4a3bf1['startFormulaLimitUrl'])||Rn,_0x1ea0bb=(await this[_0x5e9974(0x19d)][_0x5e9974(0x1d2)](_0x385450,{'body':JSON['stringify']({'taskId':_0x37965c})}))[_0x5e9974(0x1e4)];if(((_0xfee2c6=_0x1ea0bb[_0x5e9974(0x20a)])==null?void 0x0:_0xfee2c6[_0x5e9974(0x2ad)])!==Z['OK'])return;this[_0x5e9974(0x307)](_0x1ea0bb[_0x5e9974(0x17c)],_0x57467c);}catch(_0x20d104){this[_0x5e9974(0x26f)][_0x5e9974(0x20a)](_0x20d104);}}async['_getFormulaLimitStatus'](_0x1b64a6){const _0x15cc86=_0x240916;var _0x24eb51,_0x3d5b2d;const _0x111b65=Date[_0x15cc86(0x14e)]();try{const _0x3e8b81=((_0x24eb51=this[_0x15cc86(0x263)][_0x15cc86(0x271)](_0x2941e8))==null?void 0x0:_0x24eb51['getformulaLimitStatusUrl'])||Cn,_0x2c8418=_0x1b64a6?_0x3e8b81+_0x15cc86(0x2a5)+encodeURIComponent(_0x1b64a6):_0x3e8b81,_0x433cd2=(await this[_0x15cc86(0x19d)][_0x15cc86(0x1c7)](_0x2c8418))[_0x15cc86(0x1e4)];if(((_0x3d5b2d=_0x433cd2[_0x15cc86(0x20a)])==null?void 0x0:_0x3d5b2d[_0x15cc86(0x2ad)])!==Z['OK'])return;this[_0x15cc86(0x307)](_0x433cd2[_0x15cc86(0x17c)],_0x111b65);}catch(_0x58ea3d){this[_0x15cc86(0x26f)][_0x15cc86(0x20a)](_0x58ea3d);}}async[_0x240916(0x1ad)](_0x5d4a04){const _0x35049f=_0x240916;var _0x33a9a8,_0x12d97a;const _0x61482f=Date[_0x35049f(0x14e)]();try{const _0x41cc6d=((_0x33a9a8=this[_0x35049f(0x263)][_0x35049f(0x271)](_0x2941e8))==null?void 0x0:_0x33a9a8[_0x35049f(0x2c0)])||Dn,_0x1ccc45=(await this[_0x35049f(0x19d)][_0x35049f(0x1d2)](_0x41cc6d,{'body':JSON[_0x35049f(0x286)]({'taskId':_0x5d4a04})}))['body'];if(((_0x12d97a=_0x1ccc45[_0x35049f(0x20a)])==null?void 0x0:_0x12d97a['code'])!==Z['OK'])return;this[_0x35049f(0x307)](_0x1ccc45[_0x35049f(0x17c)],_0x61482f);}catch(_0x1eae34){this['_logService'][_0x35049f(0x20a)](_0x1eae34);}}[_0x240916(0x16a)](){const _0x1efa3e=_0x240916;return this[_0x1efa3e(0x2f7)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x1efa3e(0x26d)]>0x0;}[_0x240916(0xe7)](){const _0x20b54c=_0x240916;this['_pollingInterval']&&(clearTimeout(this[_0x20b54c(0x1ec)]),this[_0x20b54c(0x1ec)]=null);}[_0x240916(0x2e0)](){const _0x5edadb=_0x240916;this['_messageService'][_0x5edadb(0x267)]({'content':this[_0x5edadb(0x239)]['t']('formula.calculation.waiting'),'type':_0x24cf21[_0x5edadb(0xf4)]});}[_0x240916(0x226)](_0x30b86f){const _0x3a097e=_0x240916;for(const _0x28efaf of _0x30b86f){const {unitId:_0x4b0a4f,sheetId:_0x1de772,range:_0x4bc7cf}=_0x28efaf,_0x13760f=this['_univerInstanceService'][_0x3a097e(0x2b7)](_0x4b0a4f);if(!_0x13760f)continue;const _0x417ceb=_0x13760f[_0x3a097e(0x12b)](_0x1de772);if(!_0x417ceb)continue;const _0x28dff1=_0x417ceb[_0x3a097e(0x155)]();for(let _0xdbc18d=_0x4bc7cf['startRow'];_0xdbc18d<=_0x4bc7cf[_0x3a097e(0x2c3)];_0xdbc18d++)for(let _0x22ad76=_0x4bc7cf[_0x3a097e(0x302)];_0x22ad76<=_0x4bc7cf[_0x3a097e(0x316)];_0x22ad76++){const _0x109408=_0x28dff1['getValue'](_0xdbc18d,_0x22ad76);if(_0x109408&&(_0x53c2f3(_0x109408['f'])||_0x390515(_0x109408['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x451de1(_0x110574)),P(0x1,_0x5e5675),P(0x2,_0x1510c1),P(0x3,_0x451de1(_0x20e19d)),P(0x4,_0x81870d),P(0x5,_0x48e521),P(0x6,_0x451de1(_0x53f064))],Ie);var Nn=Object[_0x240916(0x1f8)],bn=(_0x16caaa,_0x27fecd,_0x2f6a2b,_0xa07a3f)=>{const _0x270f42=_0x240916;for(var _0x5d19f0=_0xa07a3f>0x1?void 0x0:_0xa07a3f?Nn(_0x27fecd,_0x2f6a2b):_0x27fecd,_0x2feb93=_0x16caaa[_0x270f42(0xfb)]-0x1,_0x593ff2;_0x2feb93>=0x0;_0x2feb93--)(_0x593ff2=_0x16caaa[_0x2feb93])&&(_0x5d19f0=_0x593ff2(_0x5d19f0)||_0x5d19f0);return _0x5d19f0;},Ue=(_0x16eebe,_0x43e2b7)=>(_0x57a900,_0x3a42d9)=>_0x43e2b7(_0x57a900,_0x3a42d9,_0x16eebe);let He=class extends _0xf771d3{constructor(_0xf17147,_0x15b5b8,_0x2cd838){const _0x15e221=_0x240916;super(),_(this,_0x15e221(0x21a),new Map()),_(this,_0x15e221(0x2f1),new Map()),_(this,_0x15e221(0xeb),!0x1),(this[_0x15e221(0x263)]=_0xf17147,this[_0x15e221(0x2bf)]=_0x15b5b8,this[_0x15e221(0x1a2)]=_0x2cd838);}['disableLocalCache'](){const _0x1795c9=_0x240916;this[_0x1795c9(0xeb)]=!0x0;}[_0x240916(0x12d)](){const _0x5b5564=_0x240916;this[_0x5b5564(0xeb)]=!0x1;}get[_0x240916(0x25b)](){const _0x34be35=_0x240916;return this[_0x34be35(0x2f1)];}[_0x240916(0x185)](){const _0x5a4247=_0x240916;this[_0x5a4247(0x162)]()[_0x5a4247(0x164)](()=>super[_0x5a4247(0x185)]());}async[_0x240916(0x11c)](_0x56c2a8){const _0xc62a80=_0x240916;return this[_0xc62a80(0xeb)]?null:this[_0xc62a80(0x2bf)]['getItem'](_0x373961(_0x56c2a8));}async['saveOfflineData'](_0xbd0006,_0x1e3614){const _0xa6cb1a=_0x240916;return!!this[_0xa6cb1a(0x2bf)]['setItem'](_0xbd0006,_0x1e3614);}[_0x240916(0x133)](_0x4fcd71,_0x24a0cd,_0x2fcdf9,_0x4e8872){const _0x114609=_0x240916,_0x579992=this[_0x114609(0x1a2)][_0x114609(0x1d1)](_0x4fcd71);this['_cachedData']['set'](_0x4fcd71,{'unitID':_0x4fcd71,'type':_0x24a0cd,'awaitingChangeset':_0x2fcdf9,'mutations':_0x4e8872,'rev':_0x579992}),this[_0x114609(0x2f1)][_0x114609(0x298)](_0x4fcd71)||this[_0x114609(0x2cb)](_0x4fcd71);}[_0x240916(0x2cb)](_0x50ec32){const _0x17f6bc=_0x240916,_0x5a566d=this[_0x17f6bc(0x1bd)]();_0x5a566d===0x0?this[_0x17f6bc(0x2a3)](_0x50ec32):this['_saveTaskMap'][_0x17f6bc(0x26a)](_0x50ec32,setTimeout(()=>this[_0x17f6bc(0x2a3)](_0x50ec32),_0x5a566d));}[_0x240916(0x1bd)](){const _0x394b5f=_0x240916;var _0x454119;return(_0x454119=this['_configService'][_0x394b5f(0x271)](_0x67fadd))!=null?_0x454119:_0x197b86;}[_0x240916(0x2a3)](_0xdd3727){const _0x1805ab=_0x240916,_0x1f8f00=this[_0x1805ab(0x2f1)][_0x1805ab(0x1c7)](_0xdd3727);return _0x1f8f00!==void 0x0&&window[_0x1805ab(0xdb)](_0x1f8f00),this[_0x1805ab(0x2bf)][_0x1805ab(0x12f)](_0x373961(_0xdd3727),this[_0x1805ab(0x21a)]['get'](_0xdd3727))[_0x1805ab(0x164)](()=>this[_0x1805ab(0x2f1)]['delete'](_0xdd3727));}async[_0x240916(0x162)](){const _0x5e8620=_0x240916,_0x360b50=[];this[_0x5e8620(0x2f1)][_0x5e8620(0x2e8)]((_0x44e107,_0x3a6ed4)=>{const _0x426479=_0x5e8620;window[_0x426479(0xdb)](_0x44e107),_0x360b50[_0x426479(0x1e0)](this[_0x426479(0x2a3)](_0x3a6ed4)[_0x426479(0x164)](()=>{const _0x2c421d=_0x426479;this[_0x2c421d(0x2f1)]['delete'](_0x3a6ed4);}));}),await Promise[_0x5e8620(0x22b)](_0x360b50);}};He=bn([Ue(0x0,_0x1510c1),Ue(0x1,_0x3a4d59),Ue(0x2,_0x451de1(_0x5092a2))],He);class Ln extends _0x3122c4{constructor(){const _0x47ae80=_0x240916;super(),_(this,'urlChange$'),this[_0x47ae80(0xd0)]=_0x572af5(window,_0x47ae80(0x2f6))['pipe'](_0xb0eea8(this[_0x47ae80(0x221)]),_0x5f297a(0x1),_0x15fcb9(void 0x0));}[_0x240916(0x277)](_0x15ed13,_0x2cb787,_0x4a13f2=!0x1){const _0x233b2f=_0x240916,_0xed3890=new URL(window[_0x233b2f(0x175)]['href']);_0xed3890[_0x233b2f(0x211)][_0x233b2f(0x26a)](_0x15ed13,_0x2cb787),_0x4a13f2?window[_0x233b2f(0x18a)][_0x233b2f(0xf3)]('','',_0xed3890[_0x233b2f(0x257)]()):window['history']['pushState']('','',_0xed3890['toString']());}[_0x240916(0x2d0)](_0x5500cd,_0x325cf2=!0x1){const _0xaa7c31=_0x240916,_0x528d70=new URL(window[_0xaa7c31(0x175)][_0xaa7c31(0x10f)]);_0x528d70[_0xaa7c31(0x211)][_0xaa7c31(0x1dc)](_0x5500cd),_0x325cf2?window[_0xaa7c31(0x18a)][_0xaa7c31(0xf3)]('','',_0x528d70[_0xaa7c31(0x257)]()):window[_0xaa7c31(0x18a)][_0xaa7c31(0x296)]('','',_0x528d70['toString']());}[_0x240916(0x2ec)](_0x38ada4){const _0x2805ab=_0x240916;var _0x12d76a;return(_0x12d76a=new URL(window[_0x2805ab(0x175)][_0x2805ab(0x10f)])[_0x2805ab(0x211)]['get'](_0x38ada4))!=null?_0x12d76a:void 0x0;}}var Un=Object[_0x240916(0x10c)],Mn=Object[_0x240916(0x1f8)],An=(_0x2cee78,_0x2a53b7,_0x2b0ab8)=>_0x2a53b7 in _0x2cee78?Un(_0x2cee78,_0x2a53b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b0ab8}):_0x2cee78[_0x2a53b7]=_0x2b0ab8,Pn=(_0x4bf775,_0x17fc95,_0x5e975f,_0x27601b)=>{const _0x30eb13=_0x240916;for(var _0x3f9399=_0x27601b>0x1?void 0x0:_0x27601b?Mn(_0x17fc95,_0x5e975f):_0x17fc95,_0x96b569=_0x4bf775[_0x30eb13(0xfb)]-0x1,_0x232d18;_0x96b569>=0x0;_0x96b569--)(_0x232d18=_0x4bf775[_0x96b569])&&(_0x3f9399=_0x232d18(_0x3f9399)||_0x3f9399);return _0x3f9399;},Me=(_0x31604e,_0x5ee5a7)=>(_0x34cb48,_0x43a1e4)=>_0x5ee5a7(_0x34cb48,_0x43a1e4,_0x31604e),wn=(_0x227e0f,_0x2b437f,_0x3d4d20)=>An(_0x227e0f,_0x2b437f+'',_0x3d4d20);const yn=_0x240916(0x266);let Ye=class extends _0x18025e{constructor(_0xffe9cd=_t,_0x51f6fc,_0x1f39af,_0x3f7991){const _0x11d9df=_0x240916;super(),this[_0x11d9df(0x2de)]=_0xffe9cd,this[_0x11d9df(0x212)]=_0x51f6fc,this[_0x11d9df(0x26e)]=_0x1f39af,this['_configService']=_0x3f7991;const {..._0x5331df}=_0x3aa68c({},_t,this['_config']);this['_configService'][_0x11d9df(0x1c0)](hn,_0x5331df);}[_0x240916(0x107)](){const _0x2c71fc=_0x240916;this[_0x2c71fc(0x233)](),this[_0x2c71fc(0x1da)]();}[_0x240916(0x182)](){const _0x123ae8=_0x240916;this[_0x123ae8(0x1e5)]();}[_0x240916(0x233)](){const _0x28c10b=_0x240916;var _0x3deb17;const _0x249448=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x237440,{'useClass':_0x276479}],[_0x45d2d0,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x28c10b(0x2de)][_0x28c10b(0x231)]&&_0x249448['push']([le]),_0x4856aa(this[_0x28c10b(0x26e)],_0xc1ed92(_0x249448,(_0x3deb17=this[_0x28c10b(0x2de)])==null?void 0x0:_0x3deb17[_0x28c10b(0xce)]));}[_0x240916(0x1e5)](){const _0x337cd2=_0x240916;this[_0x337cd2(0xe0)](this[_0x337cd2(0x212)][_0x337cd2(0x184)](_0x2e1b84['UNIVER_DOC'],[Fe])),this['disposeWithMe'](this[_0x337cd2(0x212)]['registerRenderModule'](_0x2e1b84['UNIVER_SHEET'],[ke]));}['_initDependencies'](){const _0x232c67=_0x240916;_0xa68686(this[_0x232c67(0x26e)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config'][_0x232c67(0x231)]&&_0xa68686(this[_0x232c67(0x26e)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x394ca8(_0x3f596b),Me(0x1,_0x4d689b),Me(0x2,_0x451de1(_0x30dac5)),Me(0x3,_0x1510c1)],Ye);var $n=Object[_0x240916(0x1f8)],xn=(_0x112283,_0x3381be,_0x19b01f,_0x20bc41)=>{const _0x185cbe=_0x240916;for(var _0x2e91fb=_0x20bc41>0x1?void 0x0:_0x20bc41?$n(_0x3381be,_0x19b01f):_0x3381be,_0x493aa5=_0x112283[_0x185cbe(0xfb)]-0x1,_0x923c34;_0x493aa5>=0x0;_0x493aa5--)(_0x923c34=_0x112283[_0x493aa5])&&(_0x2e91fb=_0x923c34(_0x2e91fb)||_0x2e91fb);return _0x2e91fb;},J=(_0x4cdfb6,_0x24b803)=>(_0x139953,_0x2e1004)=>_0x24b803(_0x139953,_0x2e1004,_0x4cdfb6);let ut=class extends _0x5d1c82{constructor(_0x56f010,_0x5e3f3d,_0x16afdf,_0x36d556,_0x3e2695){super(_0x56f010,_0x5e3f3d,_0x16afdf,_0x36d556,_0x3e2695);}async[_0x240916(0x1a9)](_0x3b1abe){const _0x4ae41f=_0x240916,_0xad87d0=await this[_0x4ae41f(0x305)](),_0x44190b=this[_0x4ae41f(0x275)](_0x3b1abe,_0xad87d0);return this[_0x4ae41f(0x2bd)](_0x44190b);}[_0x240916(0x275)](_0x282c27,_0x1b8bb6){const _0x1cf8d6=_0x240916,_0x3438f6=typeof window>'u'?new URL(_0x282c27):new URL(_0x282c27,window[_0x1cf8d6(0x175)][_0x1cf8d6(0x1be)]);_0x3438f6[_0x1cf8d6(0x211)]['set'](_0x1cf8d6(0x30c),_0x1b8bb6);const _0x4ae457=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1cf8d6(0x248)]);return _0x4ae457[_0x1cf8d6(0x1c7)](_0x1cf8d6(0x2d6))&&_0x3438f6[_0x1cf8d6(0x211)][_0x1cf8d6(0x26a)]('runId',_0x4ae457[_0x1cf8d6(0x1c7)](_0x1cf8d6(0x2d6))),_0x3438f6['toString']();}async[_0x240916(0x305)](){const _0x562d57=_0x240916;var _0x4f3bee,_0xfe27ae,_0x3c3093;const _0x3fb753=this[_0x562d57(0x263)]['getConfig'](_0x2941e8),_0x1c74d0=(_0x4f3bee=_0x3fb753==null?void 0x0:_0x3fb753[_0x562d57(0x2da)])!=null?_0x4f3bee:_0x67f602;return(_0x3c3093=(_0xfe27ae=(await this[_0x562d57(0x19d)]['get'](_0x1c74d0,{'headers':{'Content-Type':_0x562d57(0x293)}}))[_0x562d57(0x1e4)])==null?void 0x0:_0xfe27ae[_0x562d57(0x283)])!=null?_0x3c3093:'';}};ut=xn([J(0x0,_0x451de1(_0x30dac5)),J(0x1,_0x451de1(_0x20e19d)),J(0x2,_0x1510c1),J(0x3,_0x48e521),J(0x4,_0x295e6f)],ut);var Bn=Object[_0x240916(0x1f8)],Fn=(_0x2f3657,_0x596011,_0x5b4065,_0x2f9016)=>{const _0x55de58=_0x240916;for(var _0x5d4022=_0x2f9016>0x1?void 0x0:_0x2f9016?Bn(_0x596011,_0x5b4065):_0x596011,_0x41d0f6=_0x2f3657[_0x55de58(0xfb)]-0x1,_0x537bce;_0x41d0f6>=0x0;_0x41d0f6--)(_0x537bce=_0x2f3657[_0x41d0f6])&&(_0x5d4022=_0x537bce(_0x5d4022)||_0x5d4022);return _0x5d4022;},Ae=(_0x23685a,_0x57233c)=>(_0x5df0aa,_0x560a3c)=>_0x57233c(_0x5df0aa,_0x560a3c,_0x23685a);let dt=class extends _0xf771d3{constructor(_0x51ccea,_0x4a758b,_0x33982a){const _0x6efc03=_0x240916;super(),this[_0x6efc03(0x300)]=_0x51ccea,this[_0x6efc03(0x19d)]=_0x4a758b,this[_0x6efc03(0x263)]=_0x33982a;}async[_0x240916(0x217)](_0x26f5cf,_0x3e742f,_0x3b9d1f,..._0x13932e){const _0x142301=_0x240916;var _0x14873a,_0x26c791,_0x442d30,_0x54e31e;const _0x344cc0=this[_0x142301(0x300)][_0x142301(0xf8)]();if(!_0x344cc0)throw new Error(_0x142301(0x28d));const _0x2e099c=((_0x14873a=this['_configService']['getConfig'](_0x2b191a))!=null?_0x14873a:_0x50718d)+'/'+_0x26f5cf+'/run/'+_0x3e742f,_0x286e05=new URL(window[_0x142301(0x175)]['href']),_0x48a2f9={'scriptId':_0x26f5cf,'runId':(_0x26c791=_0x286e05[_0x142301(0x211)][_0x142301(0x1c7)](_0x142301(0x2d6)))!=null?_0x26c791:'','function':_0x3e742f,'unitId':_0x344cc0[_0x142301(0x2a6)](),'argsOfFunction':JSON[_0x142301(0x286)](_0x13932e),'invokeId':(_0x442d30=_0x3b9d1f['invokeId'])!=null?_0x442d30:'','executionId':(_0x54e31e=_0x3b9d1f[_0x142301(0x2fc)])!=null?_0x54e31e:''};try{const _0x1223d1=await this[_0x142301(0x19d)][_0x142301(0x1d2)](_0x2e099c,{'body':_0x48a2f9});return _0x1223d1[_0x142301(0x1e4)][_0x142301(0x20a)]&&_0x1223d1[_0x142301(0x1e4)][_0x142301(0x20a)][_0x142301(0x2ad)]!==Z['OK']?_0x142301(0x19b):_0x1223d1['body'][_0x142301(0x127)];}catch{return _0x142301(0x19b);}}};dt=Fn([Ae(0x0,_0x81870d),Ae(0x1,_0x451de1(_0x20e19d)),Ae(0x2,_0x1510c1)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0xf771d3{constructor(){const _0x439150=_0x240916;super(),_(this,_0x439150(0x1f2),_0x2664d4()),_(this,'_selfUnitIDs',new Set()),_(this,_0x439150(0x165),new Map()),_(this,_0x439150(0x29c),null),_(this,_0x439150(0x2b8),new Map()),_(this,_0x439150(0x167),new Map()),this[_0x439150(0x163)]();}[_0x240916(0x185)](){const _0xf728fd=_0x240916;super[_0xf728fd(0x185)](),this['_clearOtherTimers'][_0xf728fd(0x2e8)]((_0x4843dc,_0x11fdee)=>this[_0xf728fd(0x28f)](_0x11fdee)),this['_heartbeatTimer']&&window['clearInterval'](this[_0xf728fd(0x29c)]);}[_0x240916(0x1e2)](_0x1ffb8c){const _0x29b232=_0x240916;return this['_ensureSubject'](_0x1ffb8c)[_0x29b232(0x1e1)](_0x57e7da());}['editingUnit'](_0x14fdb1){const _0x1c2439=_0x240916;this[_0x1c2439(0x28e)]['size']===0x0&&this[_0x1c2439(0x29e)](),this[_0x1c2439(0x28e)][_0x1c2439(0x19a)](_0x14fdb1),this[_0x1c2439(0x24f)]({'type':0x0,'memberID':this[_0x1c2439(0x1f2)],'unitIDs':[_0x14fdb1],'isForwarded':!0x1});}[_0x240916(0x20d)](_0x84ea9f){const _0x410cda=_0x240916;this[_0x410cda(0x28e)][_0x410cda(0x1dc)](_0x84ea9f),this[_0x410cda(0x28e)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x410cda(0x120)](this['_heartbeatTimer']);}[_0x240916(0x163)](){const _0x22378f=_0x240916;this[_0x22378f(0xe0)](_0x13afa3(_0x572af5(window,_0x22378f(0xde))[_0x22378f(0x111)](_0x2b7893=>{const _0x1283ab=_0x22378f;if(_0x2b7893[_0x1283ab(0x2db)]!==It||!_0x2b7893[_0x1283ab(0x210)])return;const _0x358698=JSON[_0x1283ab(0x1f1)](_0x2b7893[_0x1283ab(0x210)]);this[_0x1283ab(0x2d3)](_0x358698);}))),window[_0x22378f(0x216)]('unload',()=>this[_0x22378f(0x24f)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x22378f(0x14a)](this[_0x22378f(0x28e)])}));}['_handleEvent'](_0x1e68b5){const _0x116719=_0x240916;switch(_0x1e68b5[_0x116719(0x2f0)]){case 0x0:this[_0x116719(0x136)](_0x1e68b5);break;case 0x1:this[_0x116719(0x1fe)](_0x1e68b5);break;case 0x2:this[_0x116719(0x311)](_0x1e68b5);break;}}['_handleJoinEvent'](_0x25b7f7){const _0x301b67=_0x240916,{unitIDs:_0x2f0a5c,memberID:_0x7afb04,isForwarded:_0x2314bb}=_0x25b7f7;_0x2f0a5c[_0x301b67(0x2e8)](_0x258139=>{const _0x20a8d0=_0x301b67;if(!_0x2314bb&&this[_0x20a8d0(0x165)][_0x20a8d0(0x298)](_0x258139)&&this[_0x20a8d0(0x27b)](_0x258139)[_0x20a8d0(0x1cc)](_0x58c8e7[_0x20a8d0(0x187)]),!this[_0x20a8d0(0x165)][_0x20a8d0(0x298)](_0x258139)||!this[_0x20a8d0(0x165)][_0x20a8d0(0x1c7)](_0x258139)[_0x20a8d0(0x298)](_0x7afb04)){const _0x29690f=this['_unitOnClients'][_0x20a8d0(0x1c7)](_0x258139)||new Set();_0x29690f[_0x20a8d0(0x19a)](_0x7afb04),this[_0x20a8d0(0x165)][_0x20a8d0(0x26a)](_0x258139,_0x29690f),this[_0x20a8d0(0x24a)](_0x7afb04);}}),_0x2314bb||this[_0x301b67(0x24f)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x301b67(0x28e)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xd7ad1b){const _0x5bff4e=_0x240916;this['_removeClearOtherTimer'](_0xd7ad1b);const _0x53689c=window[_0x5bff4e(0xfa)](()=>{const _0x13319c=_0x5bff4e;this[_0x13319c(0x165)][_0x13319c(0x2e8)](_0x1cbbb8=>{const _0x554a39=_0x13319c;_0x1cbbb8[_0x554a39(0x1dc)](_0xd7ad1b);});},St*0x2);this[_0x5bff4e(0x2b8)][_0x5bff4e(0x26a)](_0xd7ad1b,_0x53689c);}[_0x240916(0x28f)](_0x182db1){const _0x1a6d25=_0x240916;if(this[_0x1a6d25(0x2b8)][_0x1a6d25(0x298)](_0x182db1)){const _0x4e9097=this[_0x1a6d25(0x2b8)][_0x1a6d25(0x1c7)](_0x182db1);_0x4e9097&&window['clearTimeout'](_0x4e9097),this[_0x1a6d25(0x2b8)][_0x1a6d25(0x26a)](_0x182db1,null);}}[_0x240916(0x1fe)](_0x513160){const _0x429984=_0x240916,{memberID:_0x55b070,unitIDs:_0x59290a}=_0x513160;_0x59290a[_0x429984(0x2e8)](_0xfe526a=>{const _0x36a53b=_0x429984;var _0x423bd9;const _0x11bb43=this[_0x36a53b(0x165)][_0x36a53b(0x1c7)](_0xfe526a);_0x11bb43&&(_0x11bb43[_0x36a53b(0x1dc)](_0x55b070),(_0x423bd9=this[_0x36a53b(0x27b)](_0xfe526a))==null||_0x423bd9[_0x36a53b(0x1cc)](_0x11bb43[_0x36a53b(0xe4)]===0x0?_0x58c8e7[_0x36a53b(0x152)]:_0x58c8e7[_0x36a53b(0x187)]));}),this[_0x429984(0x28f)](_0x55b070);}[_0x240916(0x311)](_0x15425d){this['_scheduleClearOtherTimer'](_0x15425d['memberID']);}[_0x240916(0x24f)](_0x574c47){const _0x2a8c80=_0x240916;localStorage['setItem'](It,JSON[_0x2a8c80(0x286)](_0x574c47));}[_0x240916(0x29e)](){const _0x6b6044=_0x240916;this[_0x6b6044(0x29c)]=window[_0x6b6044(0x30e)](()=>{const _0x3b1eab=_0x6b6044;this[_0x3b1eab(0x24f)]({'type':0x2,'memberID':this[_0x3b1eab(0x1f2)]});},St);}[_0x240916(0x27b)](_0x43d6ce){const _0x3f939e=_0x240916;return this['_unitStatus'][_0x3f939e(0x298)](_0x43d6ce)||this[_0x3f939e(0x167)][_0x3f939e(0x26a)](_0x43d6ce,new _0x37599d(_0x58c8e7['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x3f939e(0x1c7)](_0x43d6ce);}}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 _0x529b35=_0x1199;(function(_0x5ac1c6,_0x9f42e9){const _0xb4e33a=_0x1199,_0x345782=_0x5ac1c6();while(!![]){try{const _0x361df0=-parseInt(_0xb4e33a(0x1e6))/0x1*(parseInt(_0xb4e33a(0x241))/0x2)+parseInt(_0xb4e33a(0x3a9))/0x3*(-parseInt(_0xb4e33a(0x290))/0x4)+parseInt(_0xb4e33a(0x2a0))/0x5+-parseInt(_0xb4e33a(0x369))/0x6*(parseInt(_0xb4e33a(0x2f9))/0x7)+-parseInt(_0xb4e33a(0x3ad))/0x8+parseInt(_0xb4e33a(0x382))/0x9*(parseInt(_0xb4e33a(0x194))/0xa)+-parseInt(_0xb4e33a(0x26e))/0xb*(-parseInt(_0xb4e33a(0x32c))/0xc);if(_0x361df0===_0x9f42e9)break;else _0x345782['push'](_0x345782['shift']());}catch(_0x391e17){_0x345782['push'](_0x345782['shift']());}}}(_0x138d,0x2cc8a));var Yt=Object[_0x529b35(0x353)],Wt=(_0x43cf38,_0x4f4a5a,_0x39d9aa)=>_0x4f4a5a in _0x43cf38?Yt(_0x43cf38,_0x4f4a5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39d9aa}):_0x43cf38[_0x4f4a5a]=_0x39d9aa,_=(_0x37058d,_0x47e13a,_0x3e320d)=>Wt(_0x37058d,typeof _0x47e13a!='symbol'?_0x47e13a+'':_0x47e13a,_0x3e320d);import{jsx as _0x284c0b,jsxs as _0x575c60}from'react/jsx-runtime';import{CollaborationStatus as _0x4ffad8,CollaborationSessionService as _0x44fd71,CollaborationController as _0x526316,DataLoaderService as _0x425be1,MemberService as _0x1bc28f,SessionStatus as _0x52896e,ILocalCacheService as _0x4c8618,CollaborationUIEventService as _0x362742,CollaborationUIEventId as _0x317a7b,DocCollaborationEntity as _0xf3b1d4,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x407fbe,getLocalCacheKey as _0x7c2f78,LOCAL_CACHE_INTERVAL as _0x58f52e,LOCAL_CACHE_INTERVAL_KEY as _0x10bbd8,UniverCollaborationClientPlugin as _0x29d2b8,CollaborationSocketService as _0x109be7,DEFAULT_WS_SESSION_TICKET_URL as _0x371b13,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x468500,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5bbe2f,UnitStatus as _0x5782e7}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x19089c,IUniverInstanceService as _0x2ef400,Inject as _0x366c94,Injector as _0x348990,Disposable as _0x90a638,createIdentifier as _0x57de39,ILogService as _0x4be52f,ICommandService as _0x18f9ae,Optional as _0x4f0870,RxDisposable as _0x595d15,Workbook as _0x50f944,DOC_RANGE_TYPE as _0x36caad,debounce as _0x2c9ba3,Rectangle as _0x3b8a66,DisposableCollection as _0xb278b1,toDisposable as _0x5b2023,UniverInstanceType as _0x457a5d,generateRandomId as _0x52e82e,COLORS as _0x1918e5,ColorKit as _0x19caf0,ThemeService as _0x518313,fromEventSubject as _0x16e143,Tools as _0x254727,CommandType as _0x41ab4d,IConfigService as _0x59a6d7,CanceledError as _0x177d82,isFormulaString as _0x508809,isFormulaId as _0x4ff3fe,ILocalStorageService as _0x433a9a,DependentOn as _0x223796,Plugin as _0x3800d4,merge as _0x56986c,registerDependencies as _0x518906,mergeOverrideWithDependencies as _0x3a9a0b,touchDependencies as _0x11c487}from'@univerjs/core';function _0x138d(){const _0x323c28=['unsubscribe','_initResize','_updateCollabCursors','_labelPosition','runOnServer','getUnitId','forEach','executeCommand','shift','limitInfo','svg','session.will-retry','findNodePositionByCharIndex','_updateURLWithCurrentState','clearTimeout','removeEventListener','currentUsage','getDocRanges','size','DeleteRangeMoveUpCommandId','getSheetId','_initStatusListener','_initDependencies','setAlpha','_collaborationSessionService','getUnit','permission.title','YUUMI_TABLE_NOT_FOUND_IN_UNIT','11152vkTkca','WECHAT_HAS_BEEN_BOUND','key','_initUnhandledRejectionListener','_render','collab-text-range-','_setupBeforeClosingHandler','subscribe','getParam','_registerDependencies','getOwnPropertyDescriptor','_beforeCloseService','defIds','_uiPartsService','undoState','loadOfflineData','1312295upcyam','/universer-api/license/formula/limit/start','_messageService','row','_initWindowErrorListener','[Unhandled\x20Rejection]:\x20','getSkeleton','LICENSE_EXPORT_SIZE_EXCEEDED','_online','releaseFormulaLimitUrl','[RemoteUniscriptService]:\x20no\x20focused\x20unit','formula.calculation.started','#FFF','wsSessionTicketUrl','saveTaskMap','div','_status$','width','YUUMI_AI_RUN_FAILED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','jiqing.500','round','sessionStatus$','YUUMI_RATE_OVER_LIMIT','subscribeEvent','REDEMPTION_CODE_NOT_STARTED','_unitOnClients','_updateLocalCursor','Loading','_checkAndWaitForCalculationPermission','_docSyncEditingCollabCursorService','contains','url(#on-line-icon_clip0_910_349)','ENTITLE_COUPON_EXPIRED','_currentUsage','INVALID_ARGUMENT','eventID','loadUnit','_revisionService','[CollaborationDataLoaderController]','evenodd','range','_initCommandInterceptor','none','_getSaveTimeout','addObjects','entries','post','editingUnit','LICENSE_DISTRO_REJECTED','_textBubble','OTHER_CLIENTS_EDITING','PY_RUNTIME_SCRIPT_ERROR','UPDATE_CURSOR','SNAPSHOT_INVALID_SNAPSHOT','whenReady','_context','collabCursorState$','ticket','_session','getValue','_cachedData','currentTheme$','functionsExecutedState','from','COMPLETION_FINISHED','YUUMI_UNABLE_LOAD_URL','href','RemoveRowCommandId','registerRenderModule','APPLY_DUPLICATED','onRendered','fillText','_transformUndoRedoStack','includes','syncEditingCollabCursor','USER_NOT_INVITED_CODE','_cursorShapes','UNRECOGNIZED','lineno','split','map','next','push','getTypeOfUnitDisposed$','getConfig','_setFormulaLimitStatus','m2Prime','_uploadLog','2247756eRhplE','ENTITLE_INSUFFICIENT_QUOTA','ENTITLE_DUP_SUBSCRIPTION','subUnitId','Unknown\x20user','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_renderManagerService','_cursorInfo$','_cursor','sheetId','_commandService','YUUMI_NO_CUBOID_FOR_QUESTION','path','_docSkeletonManagerService','textRanges','has','use','RemoveColCommandId','_getAnchorBounding','fillRule','YUUMI_SUBSCRIPTION_NOT_FOUND','red.300','translate(.97)','now','_urlService','_saveTaskMap','getMember','unit','rgba(255,\x20255,\x20255,\x200.01)','1em','_heartbeatTimer','m1Prime','onTransformChange$','onCommandExecuted','min','name','makeDirty','_refRangeService','_shapes','toRgbString','getRangePointData','USERS_LEAVE','_removeCollabCursors','_draw','popstate','collab-rect-range-','OTHER_CLIENT_EDITING','height','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','backgroundColor','_unitStatus','12AeLCiV','DATA_SOURCE_TOO_LARGE','roomMembers','ENTITLE_REPORT_LIMIT_EXCEED','isArray','uni.network.url-service','setStateCache','catch','on-line-icon_clip0_910_349','REDEMPTION_CODE_FULLY_REDEEMED','getItem','_drawTextRange','_anchor','_entities','urlChange$','maxFormulaLimit','_applyCommand','MOBILE_HAS_BEEN_BOUND','createInstance','_memberService','ONLINE','collaboration.closeRoom','_injector','getColorFromTheme','_updateSubUnitFromURLParams','CHANGESET_REVISION_CONFILICT','type','_collaborationController','0\x200\x2016\x2016','REDEMPTION_INVALID_CODE','_onCursorUpdate','startColumn','_lastPointer','getCollabCursors$','unhandledrejection','OFFLINE','white','UNIVER_SHEET','add','defineProperty','_initUserListener','_drawAnchor','stringify','_onCursorDelete','bind','getCollabEntity$','then','univer-mr-2\x20univer-flex\x20univer-text-xl','_localeService','INVITE_CODE_ALREADY_BOUND','_getSheetObject','USER_NOT_FOUND','START_CALCULATION','getFocusedUnit','newValue','selections','onLocalMutation','_hasFormulaInDirtyRanges','_getSessionTicket','restore','_docClipboardService','6PHOeIV','session.collaboration-timeout','_range','blue.400','random','xlink:href','replace','debug','collabStatus.syncing','saveOfflineData','RECT','redoState','_sheetSkeletonManagerService','setShapeProps','M0\x200H16V16H0z','beforeCommandExecuted','ENTITLE_NEED_BILLING_ADDRESS','unshift','engine','actions','_taskIds','_colorAssignService','_getScale','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ERROR_AGAIN','9RSfkFr','_startCalculationLimit','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','collab-text-anchor-','stack','_roomMembers$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','setUndoRedoMutationParamsCache','_instanceService','\x20at\x20','LOGIN_FAILED','disposeWithMe','_handleEvent','ALREADY_EXISTS','stageInfo','session.connection-failed','OffLineIcon','transformMutation','defs','/run/','_docStateChangeManagerService','transformStateCache','pipe','REDEMPTION_CODE_INACTIVE','_hideTimer','parseInt','clearInterval','triggerDblclick','getMergeData','fill','_backgroundColor','_handleLeaveEvent','transformRemoteChangeset','getCellMatrix','_getMergeRange','fillStyle','_initEvent','LOGIN_TOKEN_PROCESSING_FAILED','AUTHORIZE_CODE_ILLEGAL','3IuUyEB','code','idSuffix','collaboration-client-ui.config','2561376TrZWlB','_imageIoService','_handleHover','params','NO_OTHER_CLIENTS_EDITING','startRow','url(#$1','_monkeyPatchLogService','current','EMAIL_VERIFY_CODE_MISMATCH','_initStatusComponent','_collabCursorState$','yellow.400','REDEMPTION_USER_NOT_ELIGIBLE','trim','socket$','DeleteRangeMoveLeftCommandId','complete','attrs','location','_refreshCollabCursors','assignAColorForMemberID','setTimeout','focused$','pluginName','history','Failed','send','_handleJoinEvent','_localCacheService','SUBMIT_CHANGESET_TIMEOUT','colorChannel1','_transformService','sessionTicket','disposeUnit','JOIN_ROOM_FAILED','currentColor','length','REDEMPTION_USER_REDEEM_TIMES_EXCEED','color','_send','AWAITING_WITH_PENDING','registerComponent','_scheduleHeartbeat','drawWith','entityInit$','_clearOtherTimers','INTERNAL_ERROR','setParam','memberID','lineTo','_toggleOffline','green.600','source','UNDEFINED','replaceState','cursorInfo$','updateOfflineData','clipPath','_cursors','registerRefRange','addClipboardHook','column','_transformHistoryAndStateStack','_toggleOnline','bottom','UNAUTHENTICATED','transform','2570490uUHSLp','MUTATION','_lastResponseTimestamp','colno','getFormulaLimitStatusUrl','enableFrontendLog','black','cursorInfo','SNAPSHOT_HAS_BEEN_REMOVED','removeParam','_maxFormulaLimit','InsertRangeMoveRightCommandId','getUnhiddenWorksheets','VIEW_MAIN','_notificationService','univerjs-icon\x20univerjs-icon-','collabStatus.synced','getCellPositionByOffset','getMemberID','Success','join','max','set','_id','setInterval','disableLocalCache','save','toString','ranges','UNIVER_DOC','_doCreateSocket','getStateCache','collabStatus.conflict','stage','mask','_collabSessionService','top','_checkCalculationAvailable','pushState','/universer-api/license/formula/limit/done','endRow','_setupSubUnitSync','_initCommandExecutedListener','_color','_docTransformSelectionsService','data','runId','?taskId=','init','getUniverSheetInstance','_clearPolling','_ensureSubject','getUnitStatus$','_collabCursorController','TOO_MANY_REQUESTS','InsertColCommandId','url(#off-line-icon_clip0_910_343)','_config','_localStorageService','arc','getSheetBySheetId','_pollingInterval','_onRefRangeChange','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_memberID','FromArray','message','getTypeOfUnitAdded$','_selfUnitIDs','flatMap','exhaustSavingTask','_removeClearOtherTimer','USER_IS_ANONYMOUS','measureText','_drawRectRange','TEXT','_init','REDEMPTION_CODE_HAS_BEEN_CREATED','_docTransformIMECacheService','APPLY_NON_SEQUENTIAL_REVISION','MoveRangeCommandId','YUUMI_ASYNCIO_CANCELLED','32GIaIrZ','collaboration.single-unit.warning','hovered','getUndoRedoMutationParamsCache','getRelativeToViewportCoord','reconnect','setConfig','find','purple.300','hide','_logService','_transformPreviousActiveRange','selection','FETCH_MISS','_createSocketURL','getAncestorScale','dispose$','LICENSE_IMPORT_SIZE_EXCEEDED','_dataLoaderService','NOT_COLLAB','text','activeSheet$','[Window\x20Error]:\x20','YUUMI_CONNECTOR_URL_NOT_FOUND','sheetID','createSocket','substring','tag','onPointerMove$','HEADER_MENU','status$','endColumn','_docTransformStateCacheService','_saveCache','SUCCESS','assign','onPointerLeave$','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','string','doc.mutation.rich-text-editing','dirtyRanges','ENTITLE_CHAT_LIMIT_EXCEED','unitId','_name','addObject','_hover','searchParams','APPLY_REVISION_CONFILICT','off-line-icon_clip0_910_343','_getFormulaLimitStatus','formula.calculation.waiting','dispose','show','collabStatus.notCollab','startsWith','_anchorDot','Error','totalFormulasToCalculate','deepClone','onMouseMove','subunit','collab-client.tooltip.reconnect','parse','CONFLICT','YUUMI_ALL_TABLES_IS_INVALID','_eventUnsubscribe','delete','INVALID_INVITE_CODE','NOT_FOUND','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','event$','_registerRenderDependencies','_assignedColors','_collaborationUIEventService','roomMembers$','off-line-icon','displayName','get','_themeService','CURRENT_STATUS_CANNOT_OPERATE','_entityInit$','_colorIndex','mutations','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','InsertRangeMoveDownCommandId','_handleHeartbeatEvent','PERMISSION_DENIED','_httpService','getActiveSheet','override','transformIMECache','18376MKildo','unitID','transformByState','some','_univerInstanceService','transformSelections','Warning','collabStatus.fetchMiss','SOCKET_FAILED_RETRY','setItem','INVITE_CODE_HAS_BEEN_UES','_scheduleClearOtherTimer','addEventListener','getActiveRange','...','http://www.w3.org/2000/svg','_scheduleSaving','addHandlerCallback','/universer-api/license/formula/limit/status','values','_initEntityListener','body','asObservable','_docSkeleton','currentSkeleton$','_disabled','isEditing','YUUMI_URL_COL_OUT_OF_RANGE','registerBeforeClose','_configService','MOBILE_VERIFY_CODE_MISMATCH','onStarting','_scene','children','ENTITLE_COUPON_USED_UP','_startDocCollabCursor','AWAITING','error','with','[LogService\x20Error]:\x20','LICENSE_MAX_UNITS_EXCEEDED','requireSession','reason','transformMutationsWithChangeset','EMAIL_HAS_BEEN_BOUND','6622110DDNDmX','onPointerEnter$','ENSURE_SNAPSHOT_EXECUTION','ACTIVE_UNIT_EVENT_CHANNEL','getRenderById','_hovered'];_0x138d=function(){return _0x323c28;};return _0x138d();}import{useObservable as _0x277ea1,useDependency as _0x453210,IUIPartsService as _0x3077bb,BuiltInUIPart as _0x40f814,connectInjector as _0x1fa57f,IBeforeCloseService as _0x592577,IMessageService as _0x19dd60,INotificationService as _0x706d0c}from'@univerjs/ui';import{BehaviorSubject as _0xf6a4f9,switchMap as _0x456ca9,of as _0x3b6bfd,takeUntil as _0x3ec471,debounceTime as _0x293b8c,Subject as _0x262fdd,filter as _0x3b1d09,merge as _0x484bcd,combineLatest as _0x47088b,fromEvent as _0x3fbf2c,shareReplay as _0x502a1a,mapTo as _0x3a8fbf,distinctUntilChanged as _0x3fde07}from'rxjs';import{Tooltip as _0x78bb97,clsx as _0x19e16c,MessageType as _0x412ff9}from'@univerjs/design';import{useRef as _0x9a50ef,createElement as _0x24c070,forwardRef as _0x110730,useCallback as _0x197730}from'react';import{IRemoteInstanceService as _0x2113b5}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x1a0282,RefRangeService as _0x38ab3f,SetSelectionsOperation as _0x332209,SheetsSelectionsService as _0x12a10e,EffectRefRangId as _0x559705,handleIRemoveRow as _0x3bb1b4,handleIRemoveCol as _0x33b533,handleMoveRange as _0x4983b1,handleInsertRow as _0x3ed598,handleInsertRangeMoveRight as _0x404b87,handleInsertRangeMoveDown as _0x450963,handleInsertCol as _0x8a8ffb,handleDeleteRangeMoveUp as _0x316fb6,handleDeleteRangeMoveLeft as _0x5d7b97,runRefRangeMutations as _0x4fbffc}from'@univerjs/sheets';import{Shape as _0x2216d1,Rect as _0x575e67,getColor as _0x1df59d,RegularPolygon as _0x34a2b3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x29ac9d,Vector2 as _0x5d8980,SHEET_VIEWPORT_KEY as _0xf320e,IRenderManagerService as _0x353e17}from'@univerjs/engine-render';import{HTTPService as _0x4ba75a,ISocketService as _0x136433,WebSocketService as _0x4afaad}from'@univerjs/network';import{IDocClipboardService as _0xa36ab,NodePositionConvertToCursor as _0x3e727e,NodePositionConvertToRectRange as _0x34cd84,TEXT_RANGE_LAYER_INDEX as _0x1fc0ee,SetDocZoomRatioOperation as _0x1cb270,DocIMEInputManagerService as _0x15e99b,DocStateChangeManagerService as _0x2c40ff}from'@univerjs/docs-ui';import{IImageIoService as _0x2acd66}from'@univerjs/drawing';import{ITransformService as _0x55fef0,CollaborationEvent as _0x4382da,isTransformMutationFailure as _0x1b89db,isTransformMutationsWithChangesetSuccess as _0x579d5b,RevisionService as _0x19b3d2,ISnapshotServerService as _0x563dfd}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x39bd86,RichTextEditingMutation as _0x5dffc2,DocSelectionManagerService as _0xcff658,DocSkeletonManagerService as _0x16ba09}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x51bfb4,serializeRangeWithSheet as _0x5a8c0e,FormulaExecuteStageType as _0x17441d,FormulaExecutedStateType as _0x3c73fb,SetFormulaCalculationStartMutation as _0x52d38b,SetFormulaCalculationNotificationMutation as _0x21aa38}from'@univerjs/engine-formula';import{map as _0xf9235d,filter as _0x564306,throttleTime as _0x5e2397,takeUntil as _0x2d5731,switchMap as _0x529580}from'rxjs/operators';function _0x1199(_0x577f71,_0x13e5fa){_0x577f71=_0x577f71-0x16e;const _0x138d6e=_0x138d();let _0x119917=_0x138d6e[_0x577f71];return _0x119917;}import{SheetSkeletonManagerService as _0x658163,getCoordByCell as _0x14957f,getSheetObject as _0x2ee882}from'@univerjs/sheets-ui';function Ge({ref:_0x29f38c,..._0x56d3eb}){const _0x21b975=_0x529b35,{icon:_0x39ff15,id:_0x2aeed5,className:_0x46e0f2,extend:_0x51eb25,..._0x4178ca}=_0x56d3eb,_0x418efd=(_0x21b975(0x1a3)+_0x2aeed5+'\x20'+(_0x46e0f2||''))[_0x21b975(0x3bb)](),_0x23f161=_0x9a50ef('_'+vi());return At(_0x39ff15,''+_0x2aeed5,{'defIds':_0x39ff15[_0x21b975(0x29c)],'idSuffix':_0x23f161[_0x21b975(0x3b5)]},{'ref':_0x29f38c,'className':_0x418efd,..._0x4178ca},_0x51eb25);}function At(_0x3ff8de,_0x56f054,_0x1d725c,_0xf8b41,_0x377253){const _0x90e411=_0x529b35;return _0x24c070(_0x3ff8de[_0x90e411(0x201)],{'key':_0x56f054,...gi(_0x3ff8de,_0x1d725c,_0x377253),..._0xf8b41},(Ei(_0x3ff8de,_0x1d725c)[_0x90e411(0x262)]||[])[_0x90e411(0x2f1)]((_0x3d3ee5,_0x535da8)=>At(_0x3d3ee5,_0x56f054+'-'+_0x3ff8de[_0x90e411(0x201)]+'-'+_0x535da8,_0x1d725c,void 0x0,_0x377253)));}function gi(_0x16b576,_0x4b04fc,_0x44ff82){const _0x1d1216=_0x529b35,_0x27afb9={..._0x16b576['attrs']};_0x44ff82!=null&&_0x44ff82[_0x1d1216(0x16f)]&&_0x27afb9[_0x1d1216(0x39f)]===_0x1d1216(0x16f)&&(_0x27afb9[_0x1d1216(0x39f)]=_0x44ff82['colorChannel1']),_0x16b576['tag']===_0x1d1216(0x1b6)&&_0x27afb9['id']&&(_0x27afb9['id']=_0x27afb9['id']+_0x4b04fc[_0x1d1216(0x3ab)]),Object[_0x1d1216(0x2ce)](_0x27afb9)[_0x1d1216(0x27a)](([_0x839d42,_0x316caf])=>{const _0x5d8fb2=_0x1d1216;_0x839d42===_0x5d8fb2(0x1b6)&&typeof _0x316caf==_0x5d8fb2(0x20c)&&(_0x27afb9[_0x839d42]=_0x316caf[_0x5d8fb2(0x36f)](/url\(#(.*)\)/,'url(#$1'+_0x4b04fc[_0x5d8fb2(0x3ab)]+')'));});const {defIds:_0x389948}=_0x4b04fc;return!_0x389948||_0x389948[_0x1d1216(0x175)]===0x0||(_0x16b576[_0x1d1216(0x201)]===_0x1d1216(0x309)&&_0x27afb9[_0x1d1216(0x36e)]&&(_0x27afb9[_0x1d1216(0x36e)]=_0x27afb9[_0x1d1216(0x36e)]+_0x4b04fc[_0x1d1216(0x3ab)]),Object[_0x1d1216(0x2ce)](_0x27afb9)[_0x1d1216(0x27a)](([_0x188dff,_0x2ecc26])=>{const _0x1af66b=_0x1d1216;typeof _0x2ecc26==_0x1af66b(0x20c)&&(_0x27afb9[_0x188dff]=_0x2ecc26['replace'](/url\(#(.*)\)/,_0x1af66b(0x3b3)+_0x4b04fc[_0x1af66b(0x3ab)]+')'));})),_0x27afb9;}function Ei(_0x2a495a,_0x22c7a0){const _0x286d5b=_0x529b35;var _0x2e02aa;const {defIds:_0x480b75}=_0x22c7a0;return!_0x480b75||_0x480b75['length']===0x0?_0x2a495a:_0x2a495a[_0x286d5b(0x201)]==='defs'&&((_0x2e02aa=_0x2a495a['children'])!=null&&_0x2e02aa[_0x286d5b(0x175)])?{..._0x2a495a,'children':_0x2a495a['children'][_0x286d5b(0x2f1)](_0x22b514=>typeof _0x22b514[_0x286d5b(0x3bf)]['id']=='string'&&_0x480b75&&_0x480b75[_0x286d5b(0x2ea)](_0x22b514[_0x286d5b(0x3bf)]['id'])?{..._0x22b514,'attrs':{..._0x22b514[_0x286d5b(0x3bf)],'id':_0x22b514['attrs']['id']+_0x22c7a0[_0x286d5b(0x3ab)]}}:_0x22b514)}:_0x2a495a;}function vi(){const _0x2c2d33=_0x529b35;return Math[_0x2c2d33(0x36d)]()['toString'](0x24)[_0x2c2d33(0x200)](0x2,0x8);}Ge[_0x529b35(0x232)]='UniverIcon';const pi={'tag':_0x529b35(0x27e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x529b35(0x2cb),'viewBox':_0x529b35(0x348),'width':_0x529b35(0x316),'height':_0x529b35(0x316)},'children':[{'tag':'g','attrs':{'clipPath':_0x529b35(0x1cc)},'children':[{'tag':_0x529b35(0x305),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x529b35(0x2b5),'strokeLinejoin':_0x529b35(0x2b5),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x529b35(0x305),'attrs':{'fill':_0x529b35(0x350),'d':_0x529b35(0x377)}}]}]}],'defIds':[_0x529b35(0x216)]},Pt=_0x110730(function(_0x298c04,_0x5ccd56){const _0x3a870c=_0x529b35;return _0x24c070(Ge,Object[_0x3a870c(0x209)]({},_0x298c04,{'id':_0x3a870c(0x231),'ref':_0x5ccd56,'icon':pi}));});Pt[_0x529b35(0x232)]=_0x529b35(0x392);const Oi={'tag':'svg','attrs':{'xmlns':_0x529b35(0x250),'fill':_0x529b35(0x2cb),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x529b35(0x316)},'children':[{'tag':'g','attrs':{'clipPath':_0x529b35(0x2c0)},'children':[{'tag':'path','attrs':{'stroke':_0x529b35(0x174),'d':_0x529b35(0x329),'strokeLinecap':_0x529b35(0x2b5),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x529b35(0x394),'attrs':{},'children':[{'tag':_0x529b35(0x18a),'attrs':{'id':_0x529b35(0x334)},'children':[{'tag':_0x529b35(0x305),'attrs':{'fill':_0x529b35(0x350),'d':_0x529b35(0x377),'transform':_0x529b35(0x30f)}}]}]}],'defIds':[_0x529b35(0x334)]},wt=_0x110730(function(_0x48ddc8,_0x6e7f5){const _0x3316ff=_0x529b35;return _0x24c070(Ge,Object[_0x3316ff(0x209)]({},_0x48ddc8,{'id':'on-line-icon','ref':_0x6e7f5,'icon':Oi}));});wt[_0x529b35(0x232)]='OnLineIcon';function Ti(_0xd0cee5){const _0x3ac4c0=_0x529b35;switch(_0xd0cee5){case _0x4ffad8[_0x3ac4c0(0x34f)]:return'collabStatus.offline';case _0x4ffad8['CONFLICT']:return _0x3ac4c0(0x1b4);case _0x4ffad8[_0x3ac4c0(0x1f3)]:return _0x3ac4c0(0x248);case _0x4ffad8['NOT_COLLAB']:return _0x3ac4c0(0x21b);case _0x4ffad8[_0x3ac4c0(0x265)]:case _0x4ffad8[_0x3ac4c0(0x179)]:return _0x3ac4c0(0x371);case _0x4ffad8['SYNCED']:case _0x4ffad8['PENDING']:return _0x3ac4c0(0x1a4);}}function Ci(_0x13984c){const _0x1fccf4=_0x529b35,{status$:_0x193040}=_0x13984c,_0x13b878=_0x277ea1(_0x193040,_0x4ffad8[_0x1fccf4(0x1f9)]),_0x1cd652=_0x453210(_0x19089c),_0x2b271a=_0x453210(_0x44fd71),_0x5be29a=_0x13b878!==_0x4ffad8[_0x1fccf4(0x34f)],_0xad43b6=_0x1cd652['t'](Ti(_0x13b878)),_0x5eb47a=_0x5be29a?_0x284c0b(wt,{}):_0x284c0b(Pt,{}),_0x665cef=_0x197730(()=>{const _0x315b2f=_0x1fccf4;_0x5be29a||_0x2b271a[_0x315b2f(0x1eb)]();},[_0x5be29a,_0x2b271a]);function _0x391973(){const _0x58d492=_0x1fccf4;return _0x575c60(_0x58d492(0x2af),{'className':'univer-flex\x20univer-items-center','onClick':_0x665cef,'children':[_0x284c0b(_0x58d492(0x2af),{'className':_0x19e16c(_0x58d492(0x35b),{'univer-text-green-500':_0x5be29a,'univer-text-red-500':!_0x5be29a}),'children':_0x5eb47a}),_0x284c0b(_0x58d492(0x2af),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0xad43b6})]});}return _0x5be29a?_0x391973():_0x284c0b(_0x78bb97,{'title':_0x1cd652['t'](_0x1fccf4(0x223)),'children':_0x391973()});}var Ri=Object[_0x529b35(0x29a)],Di=(_0x495b02,_0xca23e8,_0x178b9a,_0x2a8c1d)=>{const _0x28658a=_0x529b35;for(var _0x361ff7=_0x2a8c1d>0x1?void 0x0:_0x2a8c1d?Ri(_0xca23e8,_0x178b9a):_0xca23e8,_0x20a389=_0x495b02[_0x28658a(0x175)]-0x1,_0xdac397;_0x20a389>=0x0;_0x20a389--)(_0xdac397=_0x495b02[_0x20a389])&&(_0x361ff7=_0xdac397(_0x361ff7)||_0x361ff7);return _0x361ff7;},se=(_0x168e0c,_0x256c14)=>(_0x798c1f,_0x3387ac)=>_0x256c14(_0x798c1f,_0x3387ac,_0x168e0c);let ae=class extends _0x90a638{constructor(_0x53fd80,_0x48e537,_0x1030ee,_0x50c85b){const _0x383592=_0x529b35;super(),_(this,_0x383592(0x2b0),new _0xf6a4f9(_0x4ffad8[_0x383592(0x1f9)])),(this[_0x383592(0x245)]=_0x53fd80,this['_injector']=_0x48e537,this['_collaborationController']=_0x1030ee,this[_0x383592(0x29d)]=_0x50c85b,this[_0x383592(0x3b7)](),this[_0x383592(0x289)]());}[_0x529b35(0x289)](){const _0x5e6075=_0x529b35;this['disposeWithMe'](this['_univerInstanceService'][_0x5e6075(0x3c4)]['pipe'](_0x456ca9(()=>{const _0x2fca57=_0x5e6075,_0x8d405e=this[_0x2fca57(0x245)][_0x2fca57(0x361)]();return _0x8d405e?this['_collaborationController'][_0x2fca57(0x359)](_0x8d405e[_0x2fca57(0x279)]()):_0x3b6bfd(null);}),_0x456ca9(_0x199ca7=>_0x199ca7?_0x199ca7[_0x5e6075(0x204)]:_0x3b6bfd(_0x4ffad8[_0x5e6075(0x1f9)])))[_0x5e6075(0x297)](_0x4971c0=>{const _0x1cc34f=_0x5e6075;this['_status$'][_0x1cc34f(0x2f2)](_0x4971c0);}));}['_initStatusComponent'](){const _0x3a45dd=_0x529b35;this[_0x3a45dd(0x38d)](this[_0x3a45dd(0x29d)][_0x3a45dd(0x17a)](_0x40f814[_0x3a45dd(0x203)],()=>_0x1fa57f(Ni({'status$':this[_0x3a45dd(0x2b0)][_0x3a45dd(0x257)]()}),this[_0x3a45dd(0x342)])));}};ae=Di([se(0x0,_0x2ef400),se(0x1,_0x366c94(_0x348990)),se(0x2,_0x366c94(_0x526316)),se(0x3,_0x3077bb)],ae);function Ni(_0x23e9fd){const {status$:_0x24c1ca}=_0x23e9fd;return function(){return _0x284c0b(Ci,{'status$':_0x24c1ca});};}const yt=_0x57de39(_0x529b35(0x331));var bi=Object[_0x529b35(0x29a)],Li=(_0x56345a,_0xc034f6,_0x491472,_0x201f69)=>{const _0xaaabb2=_0x529b35;for(var _0x377edd=_0x201f69>0x1?void 0x0:_0x201f69?bi(_0xc034f6,_0x491472):_0xc034f6,_0x179fcb=_0x56345a[_0xaaabb2(0x175)]-0x1,_0x4569a5;_0x179fcb>=0x0;_0x179fcb--)(_0x4569a5=_0x56345a[_0x179fcb])&&(_0x377edd=_0x4569a5(_0x377edd)||_0x377edd);return _0x377edd;},K=(_0x53577e,_0x2ef763)=>(_0x3ab0c9,_0x43edff)=>_0x2ef763(_0x3ab0c9,_0x43edff,_0x53577e);let ce=class extends _0x595d15{constructor(_0x192cc1,_0x4dd828,_0x2b674c,_0x1bbb9e,_0x5409a5){const _0x15dc59=_0x529b35;super(),this[_0x15dc59(0x311)]=_0x192cc1,this[_0x15dc59(0x1f0)]=_0x4dd828,this[_0x15dc59(0x303)]=_0x2b674c,this[_0x15dc59(0x1f8)]=_0x1bbb9e,_0x5409a5?_0x5409a5==null||_0x5409a5[_0x15dc59(0x2d7)]()[_0x15dc59(0x35a)](()=>this[_0x15dc59(0x1e0)]()):(this['_logService'][_0x15dc59(0x370)](_0x15dc59(0x2c7),_0x15dc59(0x2b3)),this[_0x15dc59(0x1e0)]());}async[_0x529b35(0x1e0)](){const _0x132ea0=_0x529b35,_0x560694=this[_0x132ea0(0x311)][_0x132ea0(0x298)]('unit'),_0x22054a=this[_0x132ea0(0x311)]['getParam'](_0x132ea0(0x346)),_0x38a7b7=this[_0x132ea0(0x311)]['getParam'](_0x132ea0(0x222));if(!_0x560694||!_0x22054a){this[_0x132ea0(0x1f0)][_0x132ea0(0x370)]('[CollaborationDataLoaderController]',_0x132ea0(0x2fe));return;}const _0xf2f666=await this[_0x132ea0(0x1f8)][_0x132ea0(0x2c5)](_0x560694,Number(_0x22054a),_0x38a7b7);_0xf2f666&&_0xf2f666 instanceof _0x50f944&&this[_0x132ea0(0x1bd)](_0xf2f666);}async['_setupSubUnitSync'](_0x23cf13){const _0x4b8e7b=_0x529b35;await this[_0x4b8e7b(0x344)](_0x23cf13),_0x23cf13[_0x4b8e7b(0x1fb)]['pipe'](_0x3ec471(this[_0x4b8e7b(0x1f6)]))[_0x4b8e7b(0x297)](_0x43536e=>{const _0x1a0c79=_0x4b8e7b;_0x43536e&&this[_0x1a0c79(0x281)](_0x43536e);}),this[_0x4b8e7b(0x311)][_0x4b8e7b(0x33a)][_0x4b8e7b(0x398)](_0x3ec471(this[_0x4b8e7b(0x1f6)]))[_0x4b8e7b(0x297)](()=>this[_0x4b8e7b(0x344)](_0x23cf13));}['_updateURLWithCurrentState'](_0x5228c3,_0x35615c=!0x1){const _0x29176c=_0x529b35,_0x119deb=this[_0x29176c(0x311)][_0x29176c(0x298)](_0x29176c(0x222));_0x5228c3['getSheetId']()!==_0x119deb&&this[_0x29176c(0x311)][_0x29176c(0x180)](_0x29176c(0x222),_0x5228c3['getSheetId'](),_0x35615c);}async['_updateSubUnitFromURLParams'](_0x4fc950){const _0x1f5f28=_0x529b35;var _0x58adde;const _0x4a6ddd=this[_0x1f5f28(0x311)][_0x1f5f28(0x298)]('subunit');if(!_0x4a6ddd||!_0x4fc950[_0x1f5f28(0x1d0)](_0x4a6ddd)){const _0x530602=_0x4fc950[_0x1f5f28(0x1a0)]()[0x0],_0x131d5c=_0x4fc950[_0x1f5f28(0x1d0)](_0x530602);if(!_0x131d5c)return;this[_0x1f5f28(0x281)](_0x131d5c,!0x0),await this['_commandService'][_0x1f5f28(0x27b)](_0x1a0282['id'],{'unitId':_0x4fc950[_0x1f5f28(0x279)](),'subUnitId':_0x530602});return;}((_0x58adde=_0x4fc950[_0x1f5f28(0x23e)]())==null?void 0x0:_0x58adde['getSheetId']())!==_0x4a6ddd&&await this[_0x1f5f28(0x303)]['executeCommand'](_0x1a0282['id'],{'unitId':_0x4fc950[_0x1f5f28(0x279)](),'subUnitId':_0x4a6ddd});}};ce=Li([K(0x0,yt),K(0x1,_0x4be52f),K(0x2,_0x18f9ae),K(0x3,_0x366c94(_0x425be1)),K(0x4,_0x4f0870(_0x2113b5))],ce);var Ui=Object[_0x529b35(0x29a)],Mi=(_0x47c60c,_0x4177d4,_0x5b0897,_0x37ef5a)=>{const _0x37a449=_0x529b35;for(var _0x583eee=_0x37ef5a>0x1?void 0x0:_0x37ef5a?Ui(_0x4177d4,_0x5b0897):_0x4177d4,_0x17faef=_0x47c60c[_0x37a449(0x175)]-0x1,_0x4d7f18;_0x17faef>=0x0;_0x17faef--)(_0x4d7f18=_0x47c60c[_0x17faef])&&(_0x583eee=_0x4d7f18(_0x583eee)||_0x583eee);return _0x583eee;},rt=(_0x4b7a50,_0x136255)=>(_0x5f27bd,_0x17b983)=>_0x136255(_0x5f27bd,_0x17b983,_0x4b7a50);let $e=class extends _0x595d15{constructor(_0x2e4ad9,_0x51ea0d){const _0x34aba1=_0x529b35;super(),this[_0x34aba1(0x368)]=_0x2e4ad9,this['_imageIoService']=_0x51ea0d,this['_init']();}[_0x529b35(0x1e0)](){const _0x5e17b0=_0x529b35,_0x1acfb0=this;this['disposeWithMe'](this[_0x5e17b0(0x368)][_0x5e17b0(0x18d)]({'onBeforePasteImage':async _0x3cc9a6=>{const _0xbda2c=_0x5e17b0,_0x2617f3=await _0x1acfb0[_0xbda2c(0x3ae)]['saveImage'](_0x3cc9a6);return _0x2617f3?{'source':_0x2617f3[_0xbda2c(0x185)],'imageSourceType':_0x2617f3['imageSourceType']}:null;}}));}};$e=Mi([rt(0x0,_0xa36ab),rt(0x1,_0x2acd66)],$e);const ot=[_0x529b35(0x1ee),_0x529b35(0x2b4),_0x529b35(0x184),_0x529b35(0x30e),_0x529b35(0x36c),_0x529b35(0x3b9)];class Ke extends _0x90a638{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x529b35(0x3c2)](_0x560616){const _0x1cb8f6=_0x529b35;if(this[_0x1cb8f6(0x22e)]['has'](_0x560616))return this[_0x1cb8f6(0x22e)][_0x1cb8f6(0x233)](_0x560616);const _0x1762e2=ot[this[_0x1cb8f6(0x237)]];return this[_0x1cb8f6(0x237)]=(this[_0x1cb8f6(0x237)]+0x1)%ot[_0x1cb8f6(0x175)],this['_assignedColors'][_0x1cb8f6(0x1aa)](_0x560616,_0x1762e2),_0x1762e2;}}function $t(_0x144fdc){const _0x5b5400=_0x529b35;let _0x1c3cca='';for(const _0x1e0e24 of _0x144fdc){const {startOffset:_0x5bbd15,endOffset:_0x26e387,isActive:_0x5de528,rangeType:_0x2c5569,segmentId:_0x540c1d,segmentPage:_0x436572}=_0x1e0e24;_0x1c3cca[_0x5b5400(0x175)]&&(_0x1c3cca+=','),_0x1c3cca+=_0x5bbd15+':'+_0x26e387+':'+(_0x5de528?'1':'0')+':'+_0x2c5569+':'+_0x540c1d+':'+_0x436572;}return _0x1c3cca;}function Ai(_0x224fa6){const _0x2a837b=_0x529b35,_0x1c4aee=_0x224fa6[_0x2a837b(0x2f0)](','),_0x1dc001=[];for(const _0xabb340 of _0x1c4aee){const [_0x1c2cf0,_0xe8e722,_0x16b6e9,_0x50b7e5,_0x4fc2cc,_0x41ce6b]=_0xabb340[_0x2a837b(0x2f0)](':');_0x1dc001['push']({'startOffset':Number(_0x1c2cf0),'endOffset':Number(_0xe8e722),'collapsed':_0x1c2cf0===_0xe8e722,'isActive':_0x16b6e9==='1','rangeType':_0x50b7e5===_0x36caad[_0x2a837b(0x1df)]?_0x36caad[_0x2a837b(0x1df)]:_0x36caad[_0x2a837b(0x373)],'segmentId':typeof _0x4fc2cc=='string'?String(_0x4fc2cc):'','segmentPage':Number(_0x41ce6b!=null?_0x41ce6b:-0x1)});}return _0x1dc001[_0x2a837b(0x244)](_0x5cfb5a=>_0x5cfb5a['isActive'])||(_0x1dc001[0x0]['isActive']=!0x0),_0x1dc001;}class ze extends _0x595d15{constructor(){const _0x471446=_0x529b35;super(...arguments),_(this,_0x471446(0x3b8),new _0xf6a4f9(null)),_(this,_0x471446(0x2d9),this[_0x471446(0x3b8)][_0x471446(0x257)]());}['syncEditingCollabCursor'](_0x4a65f3){const _0x191b53=_0x529b35,{unitID:_0x13582d,memberID:_0x336383,textRanges:_0x4f47f8}=_0x4a65f3,_0x2cd33b=$t(_0x4f47f8);if(_0x2cd33b==='')return;const _0x51cef7={'unitID':_0x13582d,'memberID':_0x336383,'selection':_0x2cd33b};this[_0x191b53(0x3b8)][_0x191b53(0x2f2)](_0x51cef7);}}var Pi=Object[_0x529b35(0x29a)],wi=(_0x2315e2,_0x2886e9,_0x46f634,_0x2f5ac6)=>{for(var _0x56445d=_0x2f5ac6>0x1?void 0x0:_0x2f5ac6?Pi(_0x2886e9,_0x46f634):_0x2886e9,_0x5e4072=_0x2315e2['length']-0x1,_0x586696;_0x5e4072>=0x0;_0x5e4072--)(_0x586696=_0x2315e2[_0x5e4072])&&(_0x56445d=_0x586696(_0x56445d)||_0x56445d);return _0x56445d;},A=(_0x5021e1,_0x2535b9)=>(_0x29ccee,_0x273250)=>_0x2535b9(_0x29ccee,_0x273250,_0x5021e1);const yi=0x12c,$i=0x64;let xe=class extends _0x595d15{constructor(_0x16e12a,_0x24c7bf,_0x3fbbb3,_0x50b6c7,_0x47490c,_0x2aa90f,_0x3ade1f,_0x4f71c7,_0x45e5e3){const _0x4f0733=_0x529b35;super(),_(this,_0x4f0733(0x2a8),!0x1),_(this,_0x4f0733(0x1e0),!0x1),_(this,_0x4f0733(0x300),new _0xf6a4f9(new Map())),_(this,'cursorInfo$',this[_0x4f0733(0x300)][_0x4f0733(0x257)]()),_(this,'_roomMembers$',new _0xf6a4f9([])),_(this,_0x4f0733(0x230),this[_0x4f0733(0x387)]['pipe'](_0x293b8c(yi))),_(this,'_updateLocalCursor',_0x2c9ba3(_0x22f354=>{const _0x4bda89=_0x4f0733,_0x32f2d8={'eventID':_0x4382da[_0x4bda89(0x2d5)],'data':{'unitID':this['unitID'],'memberID':this[_0x4bda89(0x2db)]['getMemberID'](),'selection':$t(_0x22f354)}};this[_0x4bda89(0x2db)][_0x4bda89(0x3c8)](_0x32f2d8,this[_0x4bda89(0x242)]);},$i)),(this[_0x4f0733(0x242)]=_0x16e12a,this['_session']=_0x24c7bf,this[_0x4f0733(0x342)]=_0x3fbbb3,this[_0x4f0733(0x37e)]=_0x50b6c7,this['_memberService']=_0x47490c,this['_syncEditingCollabCursorService']=_0x2aa90f,this[_0x4f0733(0x170)]=_0x3ade1f,this[_0x4f0733(0x245)]=_0x4f71c7,this['_commandService']=_0x45e5e3);}get['cursorInfo'](){const _0x3f3a84=_0x529b35;return this[_0x3f3a84(0x300)][_0x3f3a84(0x2dc)]();}get[_0x529b35(0x32e)](){const _0x36360d=_0x529b35;return this[_0x36360d(0x387)][_0x36360d(0x2dc)]();}['dispose'](){const _0x5d0a2a=_0x529b35;super[_0x5d0a2a(0x219)](),this['_cursorInfo$'][_0x5d0a2a(0x2f2)](new Map()),this['_cursorInfo$'][_0x5d0a2a(0x3be)](),this[_0x5d0a2a(0x387)]['next']([]),this['_roomMembers$']['complete']();}[_0x529b35(0x1c4)](){const _0x2cc593=_0x529b35;this['_init']||(this[_0x2cc593(0x1e0)]=!0x0,this[_0x2cc593(0x2db)][_0x2cc593(0x2b6)]['pipe'](_0x3ec471(this[_0x2cc593(0x1f6)]))[_0x2cc593(0x297)](_0x411b52=>{const _0x11cac2=_0x2cc593;_0x411b52===_0x52896e[_0x11cac2(0x340)]?this[_0x11cac2(0x190)]():this['_toggleOffline']();}),this[_0x2cc593(0x2db)]['event$'][_0x2cc593(0x398)](_0x3ec471(this[_0x2cc593(0x1f6)]))['subscribe'](_0x22b630=>{const _0x4fefd3=_0x2cc593,_0x33a0cf=_0x22b630[_0x4fefd3(0x2c4)];_0x33a0cf===_0x4382da[_0x4fefd3(0x2d5)]&&this['_onCursorUpdate'](_0x22b630),_0x33a0cf===_0x4382da[_0x4fefd3(0x322)]&&this[_0x4fefd3(0x357)](_0x22b630);}),this[_0x2cc593(0x38d)](this[_0x2cc593(0x303)][_0x2cc593(0x31a)](_0x37e89f=>{const _0x876574=_0x2cc593,_0x5ae367=_0x37e89f[_0x876574(0x3b0)];_0x5ae367!=null&&this[_0x876574(0x2a8)]&&_0x37e89f['id']===_0x39bd86['id']&&_0x5ae367[_0x876574(0x210)]===this[_0x876574(0x242)]&&_0x5ae367[_0x876574(0x25b)]===!0x1&&_0x5ae367['ranges'][_0x876574(0x175)]>0x0&&this[_0x876574(0x2bb)](_0x5ae367[_0x876574(0x1b0)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x2cc593(0x398)](_0x3ec471(this[_0x2cc593(0x1f6)]))[_0x2cc593(0x297)](_0x143bb9=>{const _0x4ef8c7=_0x2cc593;if((_0x143bb9==null?void 0x0:_0x143bb9[_0x4ef8c7(0x242)])!==this[_0x4ef8c7(0x242)])return;const _0x2165e6={'eventID':_0x4382da[_0x4ef8c7(0x2d5)],'data':_0x143bb9};this['_onCursorUpdate'](_0x2165e6);}),this['disposeWithMe'](this[_0x2cc593(0x303)][_0x2cc593(0x31a)](_0x5dae27=>{const _0x3ce15a=_0x2cc593;if(_0x5dae27[_0x3ce15a(0x3b0)]==null)return;const _0x3bc503=_0x5dae27[_0x3ce15a(0x3b0)];if(_0x5dae27['id']!==_0x5dffc2['id']||_0x3bc503['unitId']!==this[_0x3ce15a(0x242)])return;const _0x1ed392={'id':_0x3ce15a(0x20d),'params':_0x3bc503},_0x9e3c6=this[_0x3ce15a(0x19b)];for(const [_0x310122,_0x40dad8]of _0x9e3c6){const _0xbc3e8e={'id':_0x3ce15a(0x20d),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x40dad8['ranges']}},_0x1e3df7=this[_0x3ce15a(0x170)][_0x3ce15a(0x393)](_0x1ed392,_0xbc3e8e,!0x1);if(_0x1b89db(_0x1e3df7))throw _0x1e3df7[_0x3ce15a(0x266)];_0x9e3c6[_0x3ce15a(0x1aa)](_0x310122,{..._0x40dad8,'ranges':_0x1e3df7[_0x3ce15a(0x2f7)][_0x3ce15a(0x3b0)][_0x3ce15a(0x307)]});}queueMicrotask(()=>{const _0x346b1f=_0x3ce15a;this[_0x346b1f(0x300)][_0x346b1f(0x2f2)](_0x9e3c6);});})));}[_0x529b35(0x34a)](_0x1c1bd5){const _0x1f40a3=_0x529b35;var _0x160c23,_0x265f01;const {memberID:_0x57237b,selection:_0x56205a}=_0x1c1bd5[_0x1f40a3(0x1c1)],_0x2d12aa=Ai(_0x56205a),_0x54241e=(_0x265f01=(_0x160c23=this[_0x1f40a3(0x33f)][_0x1f40a3(0x313)](this[_0x1f40a3(0x242)],_0x57237b))==null?void 0x0:_0x160c23[_0x1f40a3(0x31c)])!=null?_0x265f01:_0x1f40a3(0x2fd),_0x5273c3={'color':this[_0x1f40a3(0x37e)][_0x1f40a3(0x3c2)](_0x57237b),'name':_0x54241e,'ranges':_0x2d12aa},_0x1d709f=this[_0x1f40a3(0x19b)];_0x1d709f[_0x1f40a3(0x1aa)](_0x57237b,_0x5273c3),this[_0x1f40a3(0x300)][_0x1f40a3(0x2f2)](_0x1d709f);}[_0x529b35(0x357)](_0x491036){const _0x1414eb=_0x529b35,{memberID:_0x5bfe94}=_0x491036[_0x1414eb(0x1c1)],_0x1549a3=this[_0x1414eb(0x19b)];_0x1549a3['delete'](_0x5bfe94),this['_cursorInfo$'][_0x1414eb(0x2f2)](_0x1549a3);}[_0x529b35(0x190)](){const _0x3ffef7=_0x529b35;var _0x961158;if(this['_online']=!0x0,((_0x961158=this[_0x3ffef7(0x245)]['getFocusedUnit']())==null?void 0x0:_0x961158[_0x3ffef7(0x279)]())!==this['unitID'])return;const _0x5f03f9=this['_injector']['get'](_0xcff658)[_0x3ffef7(0x285)]();Array[_0x3ffef7(0x330)](_0x5f03f9)&&_0x5f03f9['length']>0x0&&this[_0x3ffef7(0x2bb)](_0x5f03f9);}[_0x529b35(0x183)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x366c94(_0x348990)),A(0x3,_0x366c94(Ke)),A(0x4,_0x366c94(_0x1bc28f)),A(0x5,_0x366c94(ze)),A(0x6,_0x55fef0),A(0x7,_0x2ef400),A(0x8,_0x18f9ae)],xe);var xi=Object[_0x529b35(0x29a)],Bi=(_0x23509f,_0x1bea05,_0x300c7c,_0x3de694)=>{for(var _0x2d638a=_0x3de694>0x1?void 0x0:_0x3de694?xi(_0x1bea05,_0x300c7c):_0x1bea05,_0x1040f1=_0x23509f['length']-0x1,_0x3a2333;_0x1040f1>=0x0;_0x1040f1--)(_0x3a2333=_0x23509f[_0x1040f1])&&(_0x2d638a=_0x3a2333(_0x2d638a)||_0x2d638a);return _0x2d638a;},B=(_0xb660e,_0x105a29)=>(_0x349bbd,_0x3354c5)=>_0x105a29(_0x349bbd,_0x3354c5,_0xb660e);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x14e237=[],_0x23222d=!0x1;return _0x14d0b0=>{const _0x27e23e=_0x1199;_0x14e237[_0x27e23e(0x2f3)](_0x14d0b0),_0x23222d||(_0x23222d=!0x0,setTimeout(()=>{_0x14e237['forEach'](_0x2bdfe5=>_0x2bdfe5()),_0x14e237=[],_0x23222d=!0x1;}));};};let Be=class extends _0x595d15{constructor(_0x464ca7,_0x5173ad,_0xe6ac28,_0x416f73,_0x46c6c3,_0x15cb0d,_0x1da865,_0x58e22b){const _0x2c5cc4=_0x529b35;super(),_(this,_0x2c5cc4(0x2a8),!0x1),_(this,_0x2c5cc4(0x1e0),!0x1),_(this,_0x2c5cc4(0x300),new _0xf6a4f9(new Map())),_(this,_0x2c5cc4(0x188),this[_0x2c5cc4(0x300)]['asObservable']()),_(this,'_roomMembers$',new _0xf6a4f9([])),_(this,'roomMembers$',this[_0x2c5cc4(0x387)][_0x2c5cc4(0x398)](_0x293b8c(Fi))),_(this,_0x2c5cc4(0x2bb),_0x2c9ba3((_0x5e2e80,_0x21fad8)=>{const _0x1eb526=_0x2c5cc4,_0x4f2562={'eventID':_0x4382da['UPDATE_CURSOR'],'data':{'unitID':this[_0x1eb526(0x242)],'memberID':this['_session'][_0x1eb526(0x1a6)](),'selection':_0x5a8c0e(_0x5e2e80,_0x21fad8['range'])}};this[_0x1eb526(0x2db)][_0x1eb526(0x3c8)](_0x4f2562,this[_0x1eb526(0x242)]);},ki)),(this[_0x2c5cc4(0x242)]=_0x464ca7,this['_session']=_0x5173ad,this[_0x2c5cc4(0x342)]=_0xe6ac28,this['_colorAssignService']=_0x416f73,this['_memberService']=_0x46c6c3,this[_0x2c5cc4(0x245)]=_0x15cb0d,this['_commandService']=_0x1da865,this['_refRangeService']=_0x58e22b);}get['cursorInfo'](){const _0x471d1a=_0x529b35;return this['_cursorInfo$'][_0x471d1a(0x2dc)]();}get['roomMembers'](){const _0x56178b=_0x529b35;return this['_roomMembers$'][_0x56178b(0x2dc)]();}['dispose'](){const _0x1ca1cb=_0x529b35;super[_0x1ca1cb(0x219)](),this[_0x1ca1cb(0x300)][_0x1ca1cb(0x2f2)](new Map()),this[_0x1ca1cb(0x300)][_0x1ca1cb(0x3be)](),this['_roomMembers$'][_0x1ca1cb(0x2f2)]([]),this['_roomMembers$'][_0x1ca1cb(0x3be)]();}[_0x529b35(0x1c4)](){const _0x3c2196=_0x529b35;this['_init']||(this[_0x3c2196(0x1e0)]=!0x0,this['_session']['sessionStatus$'][_0x3c2196(0x398)](_0x3ec471(this[_0x3c2196(0x1f6)]))[_0x3c2196(0x297)](_0x1db6b0=>{const _0x5c2018=_0x3c2196;_0x1db6b0===_0x52896e[_0x5c2018(0x340)]?this[_0x5c2018(0x190)]():this[_0x5c2018(0x183)]();}),this[_0x3c2196(0x2db)][_0x3c2196(0x22c)][_0x3c2196(0x398)](_0x3ec471(this[_0x3c2196(0x1f6)]))['subscribe'](_0x3d340b=>{const _0x62272d=_0x3c2196,_0x59ce16=_0x3d340b[_0x62272d(0x2c4)];_0x59ce16===_0x4382da[_0x62272d(0x2d5)]&&this[_0x62272d(0x34a)](_0x3d340b),_0x59ce16===_0x4382da[_0x62272d(0x322)]&&this[_0x62272d(0x357)](_0x3d340b);}),this[_0x3c2196(0x1d2)](),this[_0x3c2196(0x38d)](this[_0x3c2196(0x303)]['onCommandExecuted'](_0x3662e9=>{const _0x404901=_0x3c2196;if(this['_online']&&_0x3662e9['id']===_0x332209['id']&&_0x3662e9['params'][_0x404901(0x210)]===this[_0x404901(0x242)]){const _0x2720d6=_0x3662e9[_0x404901(0x3b0)];this['_updateLocalCursor'](_0x2720d6[_0x404901(0x2fc)],_0x2720d6[_0x404901(0x363)][0x0]);}})));}[_0x529b35(0x34a)](_0x3d9ae2){const _0x24c4a1=_0x529b35;var _0x1100fb,_0x1786b0;const {memberID:_0x1a842c,selection:_0x46c67f}=_0x3d9ae2[_0x24c4a1(0x1c1)],{sheetName:_0xebd2bb,range:_0x11e046}=_0x51bfb4(_0x46c67f),_0x229114={'name':(_0x1786b0=(_0x1100fb=this[_0x24c4a1(0x33f)][_0x24c4a1(0x313)](this[_0x24c4a1(0x242)],_0x1a842c))==null?void 0x0:_0x1100fb['name'])!=null?_0x1786b0:_0x24c4a1(0x2fd),'range':this['_getMergeRange'](_0xebd2bb,_0x11e046),'sheetID':_0xebd2bb,'color':this['_colorAssignService'][_0x24c4a1(0x3c2)](_0x1a842c),'selection':_0x46c67f},_0x157ea6=this[_0x24c4a1(0x19b)];_0x157ea6[_0x24c4a1(0x1aa)](_0x1a842c,_0x229114),this[_0x24c4a1(0x300)][_0x24c4a1(0x2f2)](_0x157ea6);}[_0x529b35(0x357)](_0x5409c7){const _0x4447c0=_0x529b35,{memberID:_0x1978f8}=_0x5409c7[_0x4447c0(0x1c1)],_0x137981=this['cursorInfo'];_0x137981[_0x4447c0(0x228)](_0x1978f8),this[_0x4447c0(0x300)][_0x4447c0(0x2f2)](_0x137981);}[_0x529b35(0x3a4)](_0x370f22,_0x5d45a6){const _0x265929=_0x529b35;var _0x1b075b,_0x11a33f;const _0x4657fe=(_0x11a33f=(_0x1b075b=this[_0x265929(0x245)][_0x265929(0x1c5)](this[_0x265929(0x242)]))==null?void 0x0:_0x1b075b[_0x265929(0x1d0)](_0x370f22))==null?void 0x0:_0x11a33f[_0x265929(0x39e)]();return(_0x4657fe==null?void 0x0:_0x4657fe[_0x265929(0x1ed)](_0x21d44b=>_0x3b8a66[_0x265929(0x2bf)](_0x21d44b,_0x5d45a6)))||_0x5d45a6;}[_0x529b35(0x1d2)](){const _0x3511b1=_0x529b35,_0x1a582d=new _0xb278b1(),_0x1b2565=Hi(),_0x92f738=()=>{const _0x5b4f23=_0x1199;_0x1a582d['dispose']();const _0x471f4a=(_0x18d4ca,_0x506daa,_0x1e6321,_0x42661f)=>{const _0x51522d=_0x1199;let _0x4a052d=[];switch(_0x18d4ca['id']){case _0x559705[_0x51522d(0x3bd)]:{_0x4a052d=_0x5d7b97(_0x18d4ca,_0x42661f);break;}case _0x559705[_0x51522d(0x287)]:{_0x4a052d=_0x316fb6(_0x18d4ca,_0x42661f);break;}case _0x559705[_0x51522d(0x1cb)]:{_0x4a052d=_0x8a8ffb(_0x18d4ca,_0x42661f);break;}case _0x559705[_0x51522d(0x23a)]:{_0x4a052d=_0x450963(_0x18d4ca,_0x42661f);break;}case _0x559705[_0x51522d(0x19f)]:{_0x4a052d=_0x404b87(_0x18d4ca,_0x42661f);break;}case _0x559705['InsertRowCommandId']:{_0x4a052d=_0x3ed598(_0x18d4ca,_0x42661f);break;}case _0x559705[_0x51522d(0x1e4)]:{_0x4a052d=_0x4983b1(_0x18d4ca,_0x42661f);break;}case _0x559705[_0x51522d(0x30a)]:{_0x4a052d=_0x33b533(_0x18d4ca,_0x42661f);break;}case _0x559705[_0x51522d(0x2e4)]:{_0x4a052d=_0x3bb1b4(_0x18d4ca,_0x42661f);break;}}const _0x56bff5=_0x4fbffc(_0x4a052d,_0x42661f),_0x55bcc0=this['cursorInfo'][_0x51522d(0x233)](_0x506daa);if(_0x55bcc0&&_0x56bff5){const _0x202257={..._0x55bcc0,'range':_0x56bff5};this[_0x51522d(0x19b)]['set'](_0x506daa,_0x202257),_0x1b2565(()=>{const _0x3d9233=_0x51522d,_0x40cbb6=this[_0x3d9233(0x31e)][_0x3d9233(0x18c)](_0x56bff5,_0x193047=>(_0x40cbb6[_0x3d9233(0x219)](),_0x471f4a(_0x193047,_0x506daa,_0x1e6321,_0x56bff5)));_0x1a582d[_0x3d9233(0x352)](_0x40cbb6);});}return{'redos':[],'undos':[]};};this[_0x5b4f23(0x19b)][_0x5b4f23(0x27a)]((_0x36c956,_0x20730e)=>{const _0x34c0cf=_0x5b4f23,{range:_0x4444f2,sheetID:_0x2d0603}=_0x36c956,_0x149601=this[_0x34c0cf(0x31e)][_0x34c0cf(0x18c)](_0x4444f2,_0x5891f7=>(_0x149601[_0x34c0cf(0x219)](),_0x471f4a(_0x5891f7,_0x20730e,_0x2d0603,_0x4444f2)));_0x1a582d[_0x34c0cf(0x352)](_0x149601);});};this[_0x3511b1(0x38d)](_0x5b2023(this[_0x3511b1(0x300)]['subscribe'](()=>{_0x92f738();})));}[_0x529b35(0x190)](){const _0x246931=_0x529b35;var _0x23d436,_0x3597c2;if(this[_0x246931(0x2a8)]=!0x0,((_0x23d436=this[_0x246931(0x245)][_0x246931(0x361)]())==null?void 0x0:_0x23d436[_0x246931(0x279)]())!==this['unitID'])return;const _0x1fa93f=(_0x3597c2=this['_injector'][_0x246931(0x233)](_0x12a10e)['getCurrentSelections']())==null?void 0x0:_0x3597c2[0x0],_0x1d8195=this[_0x246931(0x245)]['getCurrentUnitForType'](_0x457a5d[_0x246931(0x351)])['getActiveSheet']();_0x1fa93f&&_0x1d8195&&this[_0x246931(0x2bb)](_0x1d8195[_0x246931(0x288)](),_0x1fa93f);}[_0x529b35(0x183)](){const _0x1d678e=_0x529b35;this[_0x1d678e(0x2a8)]=!0x1;}};Be=Bi([B(0x2,_0x366c94(_0x348990)),B(0x3,_0x366c94(Ke)),B(0x4,_0x366c94(_0x1bc28f)),B(0x5,_0x2ef400),B(0x6,_0x18f9ae),B(0x7,_0x366c94(_0x38ab3f))],Be);var Yi=Object[_0x529b35(0x29a)],Wi=(_0x23abd9,_0x326294,_0x2781d5,_0x3a474c)=>{const _0x42de15=_0x529b35;for(var _0x342806=_0x3a474c>0x1?void 0x0:_0x3a474c?Yi(_0x326294,_0x2781d5):_0x326294,_0x2203f1=_0x23abd9[_0x42de15(0x175)]-0x1,_0x483990;_0x2203f1>=0x0;_0x2203f1--)(_0x483990=_0x23abd9[_0x2203f1])&&(_0x342806=_0x483990(_0x342806)||_0x342806);return _0x342806;},Ce=(_0x180f67,_0x2df973)=>(_0x37f185,_0x350dd2)=>_0x2df973(_0x37f185,_0x350dd2,_0x180f67);let H=class extends _0x595d15{constructor(_0x557bbb,_0x17a176,_0x41a08c){const _0x29df62=_0x529b35;super(),_(this,'_entities',new Map()),_(this,_0x29df62(0x236),new _0x262fdd()),(this['_univerInstanceService']=_0x557bbb,this[_0x29df62(0x342)]=_0x17a176,this[_0x29df62(0x1b7)]=_0x41a08c,this[_0x29df62(0x1e0)]());}[_0x529b35(0x219)](){const _0x258740=_0x529b35;super[_0x258740(0x219)](),this[_0x258740(0x236)]['complete'](),this[_0x258740(0x339)]['forEach'](_0x2cadd1=>_0x2cadd1[_0x258740(0x219)]());}[_0x529b35(0x34d)](_0x5c3f46){const _0x2c8939=_0x529b35;return this['_entities'][_0x2c8939(0x308)](_0x5c3f46)?this['_entities'][_0x2c8939(0x233)](_0x5c3f46)['cursorInfo$']:this['_entityInit$']['pipe'](_0x3b1d09(_0x174a05=>_0x174a05[_0x2c8939(0x242)]===_0x5c3f46),_0x456ca9(_0x5e9f2f=>_0x5e9f2f[_0x2c8939(0x188)]));}[_0x529b35(0x1e0)](){const _0x493e38=_0x529b35;this[_0x493e38(0x245)][_0x493e38(0x1d7)](_0x457a5d[_0x493e38(0x351)])[_0x493e38(0x398)](_0x3ec471(this[_0x493e38(0x1f6)]))[_0x493e38(0x297)](async _0x3c9de5=>{const _0x53b37a=_0x493e38,_0x2b4375=_0x3c9de5[_0x53b37a(0x279)](),_0x14087f=await this['_startSheetCollabCursor'](_0x2b4375);this[_0x53b37a(0x236)][_0x53b37a(0x2f2)](_0x14087f),this[_0x53b37a(0x339)][_0x53b37a(0x1aa)](_0x2b4375,_0x14087f);}),this[_0x493e38(0x245)][_0x493e38(0x1d7)](_0x457a5d[_0x493e38(0x1b1)])[_0x493e38(0x398)](_0x3ec471(this[_0x493e38(0x1f6)]))['pipe'](_0x3b1d09(_0x4cb1ea=>!_0x4cb1ea[_0x493e38(0x279)]()[_0x493e38(0x21c)]('__')))[_0x493e38(0x297)](async _0x2cd174=>{const _0x482f94=_0x493e38,_0x5bd87f=_0x2cd174[_0x482f94(0x279)](),_0xc6db97=await this['_startDocCollabCursor'](_0x5bd87f);this[_0x482f94(0x236)][_0x482f94(0x2f2)](_0xc6db97),this[_0x482f94(0x339)][_0x482f94(0x1aa)](_0x5bd87f,_0xc6db97);}),_0x484bcd(this[_0x493e38(0x245)][_0x493e38(0x2f4)](_0x457a5d[_0x493e38(0x1b1)]),this[_0x493e38(0x245)][_0x493e38(0x2f4)](_0x457a5d[_0x493e38(0x351)]))[_0x493e38(0x398)](_0x3ec471(this['dispose$']))[_0x493e38(0x297)](_0x1249cb=>{const _0x33cdac=_0x493e38,_0x3fb7ae=_0x1249cb[_0x33cdac(0x279)](),_0x3ecebe=this[_0x33cdac(0x339)][_0x33cdac(0x233)](_0x3fb7ae);_0x3ecebe&&(_0x3ecebe[_0x33cdac(0x219)](),this['_entities'][_0x33cdac(0x228)](_0x3fb7ae));});}async['_startSheetCollabCursor'](_0x2d91ad){const _0x52be4f=_0x529b35,_0x9a0314=await this['_collabSessionService'][_0x52be4f(0x26a)](_0x2d91ad),_0x4948a8=this['_injector']['createInstance'](Be,_0x2d91ad,_0x9a0314);return _0x4948a8['init'](),_0x4948a8;}async[_0x529b35(0x264)](_0x6e2bc2){const _0x1163c5=_0x529b35,_0x969e03=await this[_0x1163c5(0x1b7)]['requireSession'](_0x6e2bc2),_0x3e962a=this[_0x1163c5(0x342)][_0x1163c5(0x33e)](xe,_0x6e2bc2,_0x969e03);return _0x3e962a[_0x1163c5(0x1c4)](),_0x3e962a;}};H=Wi([Ce(0x0,_0x2ef400),Ce(0x1,_0x366c94(_0x348990)),Ce(0x2,_0x366c94(_0x44fd71))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x3aad54,_0x1b41ba){const _0x81f4a1=_0x529b35;let {radius:_0x5081f0,width:_0x57ee32,height:_0x410c94}=_0x1b41ba;_0x5081f0=_0x5081f0!=null?_0x5081f0:0x0,_0x57ee32=_0x57ee32!=null?_0x57ee32:0x1e,_0x410c94=_0x410c94!=null?_0x410c94:0x1e;let _0x1112e5=0x0,_0x481d96=0x0,_0x25af32=0x0;_0x1112e5=_0x481d96=_0x25af32=Math['min'](_0x5081f0,_0x57ee32/0x2,_0x410c94/0x2),_0x3aad54['beginPath'](),_0x3aad54['moveTo'](_0x1112e5,0x0),_0x3aad54[_0x81f4a1(0x182)](_0x57ee32-_0x481d96,0x0),_0x3aad54['arc'](_0x57ee32-_0x481d96,_0x481d96,_0x481d96,Math['PI']*0x3/0x2,0x0,!0x1),_0x3aad54[_0x81f4a1(0x182)](_0x57ee32,_0x410c94-_0x25af32),_0x3aad54['arc'](_0x57ee32-_0x25af32,_0x410c94-_0x25af32,_0x25af32,0x0,Math['PI']/0x2,!0x1),_0x3aad54[_0x81f4a1(0x182)](0x0,_0x410c94),_0x3aad54[_0x81f4a1(0x182)](0x0,_0x1112e5),_0x3aad54[_0x81f4a1(0x1cf)](_0x1112e5,_0x1112e5,_0x1112e5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3aad54['closePath'](),_0x1b41ba['fill']&&(_0x3aad54[_0x81f4a1(0x1ae)](),_0x3aad54[_0x81f4a1(0x3a5)]=_0x1b41ba[_0x81f4a1(0x39f)],_0x1b41ba[_0x81f4a1(0x30c)]===_0x81f4a1(0x2c8)?_0x3aad54[_0x81f4a1(0x39f)](_0x81f4a1(0x2c8)):_0x3aad54[_0x81f4a1(0x39f)](),_0x3aad54[_0x81f4a1(0x367)]());}class ve extends _0x2216d1{constructor(_0xb70e79,_0x56e44f){const _0x128324=_0x529b35;super(_0xb70e79,_0x56e44f),_(this,_0x128324(0x177)),_(this,_0x128324(0x1fa)),(this[_0x128324(0x177)]=_0x56e44f==null?void 0x0:_0x56e44f['color'],this[_0x128324(0x1fa)]=_0x56e44f==null?void 0x0:_0x56e44f['text']);}static[_0x529b35(0x17c)](_0x5594d4,_0x4dbc15){const _0x216662=_0x529b35,{text:_0x4a075c,color:_0x5bfb72}=_0x4dbc15;_0x5594d4['save'](),_0x5594d4['font']=_0x216662(0x22b);const _0x34d8ef=_0x5594d4[_0x216662(0x1dd)](_0x4a075c)['width'],_0xa048e3=Math[_0x216662(0x31b)](_0x34d8ef+0x2*Re,at);ji(_0x5594d4,{'height':Q,'radius':0x4,'width':_0xa048e3,'fill':_0x5bfb72}),_0x5594d4[_0x216662(0x3a5)]=_0x216662(0x2ac);const _0x10df01=Re,_0x3455d1=Q-Vi,_0x170b77=at-0x2*Re;if(_0x34d8ef>_0x170b77){let _0x385791='',_0x3f0525=0x0;for(const _0x1817d5 of _0x4a075c){const _0x56b248=_0x5594d4[_0x216662(0x1dd)](_0x1817d5)[_0x216662(0x2b1)];if(_0x3f0525+_0x56b248<=_0x170b77-_0x5594d4['measureText'](_0x216662(0x24f))[_0x216662(0x2b1)])_0x385791+=_0x1817d5,_0x3f0525+=_0x56b248;else{_0x385791+=_0x216662(0x24f);break;}}_0x5594d4[_0x216662(0x2e8)](_0x385791,_0x10df01,_0x3455d1);}else _0x5594d4['fillText'](_0x4a075c,_0x10df01,_0x3455d1);_0x5594d4['restore']();}[_0x529b35(0x324)](_0x5b3cb8){const _0x217260=_0x529b35;ve[_0x217260(0x17c)](_0x5b3cb8,this);}}const De=_0x529b35(0x385),Xi=_0x529b35(0x295),Gi=_0x529b35(0x326),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x529b35(0x315);class ct{constructor(_0x37a01c,_0xbc0039,_0x3c5504,_0x22c776){const _0x512991=_0x529b35;_(this,_0x512991(0x31f),[]),_(this,_0x512991(0x338),null),_(this,_0x512991(0x2d2),null),_(this,_0x512991(0x21d),null),_(this,_0x512991(0x39a),null),_(this,_0x512991(0x227),null),(this[_0x512991(0x301)]=_0x37a01c,this['_scene']=_0xbc0039,this[_0x512991(0x258)]=_0x3c5504,this['_document']=_0x22c776,this[_0x512991(0x294)]());}set[_0x529b35(0x213)](_0x40a2b6){const _0xed8358=_0x529b35;_0x40a2b6?(this[_0xed8358(0x21d)]&&this[_0xed8358(0x21d)][_0xed8358(0x1ef)](),this['_textBubble']&&this[_0xed8358(0x2d2)]['show']()):(this['_anchorDot']&&this[_0xed8358(0x21d)]['show'](),this[_0xed8358(0x2d2)]&&this[_0xed8358(0x2d2)][_0xed8358(0x1ef)]());}[_0x529b35(0x219)](){const _0x3c38b9=_0x529b35;for(const _0x56a632 of this[_0x3c38b9(0x31f)])_0x56a632[_0x3c38b9(0x219)]();this[_0x3c38b9(0x2d2)]&&this[_0x3c38b9(0x2d2)][_0x3c38b9(0x219)](),this[_0x3c38b9(0x21d)]&&this['_anchorDot'][_0x3c38b9(0x219)](),this[_0x3c38b9(0x338)]&&this[_0x3c38b9(0x338)][_0x3c38b9(0x219)](),this[_0x3c38b9(0x227)]&&this[_0x3c38b9(0x227)]();}[_0x529b35(0x294)](){const _0xf32393=_0x529b35;var _0x124319;const {_docSkeleton:_0x3ec71f,_document:_0x58ef07}=this,{color:_0x33cf02,name:_0x37f9ed,ranges:_0x1ed055}=this['_cursor'],_0xffc4be=_0x58ef07['getOffsetConfig'](),{docsLeft:_0x28e739,docsTop:_0x54197e}=_0xffc4be,_0x44dd72=new _0x3e727e(_0xffc4be,_0x3ec71f);for(const {startOffset:_0x3631aa,endOffset:_0x5d50d4,rangeType:_0x3d4c12,segmentId:_0x4123ab,segmentPage:_0x4491e5,collapsed:_0x5ae2c6,isActive:_0x17d5da}of _0x1ed055){const _0x25ab1a=_0x3ec71f[_0xf32393(0x280)](_0x3631aa,!0x0,_0x4123ab,_0x4491e5);let _0x4f3737=_0x3ec71f[_0xf32393(0x280)](_0x5d50d4,!0x0,_0x4123ab,_0x4491e5);if(_0x4f3737==null&&(_0x4f3737=_0x3ec71f[_0xf32393(0x280)](_0x5d50d4-0x1,!0x1,_0x4123ab,_0x4491e5)),_0x17d5da){const {contentBoxPointGroup:_0x2aee8d}=_0x44dd72[_0xf32393(0x321)](_0x4f3737,_0x4f3737);if(_0x2aee8d[_0xf32393(0x175)]===0x0)continue;this[_0xf32393(0x355)](_0x33cf02,_0x2aee8d,_0x28e739,_0x54197e,_0x37f9ed),this[_0xf32393(0x227)]=this[_0xf32393(0x3af)]();}if(_0x25ab1a&&_0x4f3737){if(_0x3d4c12===_0x36caad[_0xf32393(0x373)]){const _0x48e1bb=new _0x34cd84(_0xffc4be,_0x3ec71f),{pointGroup:_0x388ee4}=(_0x124319=_0x48e1bb['getRangePointData'](_0x25ab1a,_0x4f3737))!=null?_0x124319:{};if(_0x388ee4==null||_0x388ee4[_0xf32393(0x175)]===0x0)continue;this[_0xf32393(0x1de)](_0x33cf02,_0x388ee4,_0x28e739,_0x54197e);}else{if(!_0x5ae2c6){const {borderBoxPointGroup:_0x38e810}=_0x44dd72[_0xf32393(0x321)](_0x25ab1a,_0x4f3737);if(_0x38e810[_0xf32393(0x175)]===0x0)continue;this[_0xf32393(0x337)](_0x33cf02,_0x38e810,_0x28e739,_0x54197e);}}}}}[_0x529b35(0x355)](_0x55e596,_0x33e810,_0x5e56de,_0x10a23a,_0x58bfab){const _0x1076f2=_0x529b35,_0x2ecd7c=this[_0x1076f2(0x30b)](_0x33e810),{left:_0x3d093b,top:_0x440fcb,height:_0x22346d}=_0x2ecd7c,_0x55230b=this[_0x1076f2(0x37f)](),_0x5ee915=zi/_0x55230b,_0x2bdc6c=new _0x575e67(De+_0x52e82e(z),{'left':_0x3d093b+_0x5e56de-_0x5ee915,'top':_0x440fcb+_0x10a23a,'height':_0x22346d,'width':Ki,'fill':_0x55e596||_0x1df59d(_0x1918e5[_0x1076f2(0x19a)],0x0),'strokeWidth':_0x5ee915,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x2bdc6c,this[_0x1076f2(0x261)][_0x1076f2(0x212)](_0x2bdc6c,_0x1fc0ee);const _0x5d69c8=new _0x575e67(De+_0x52e82e(z),{'left':_0x3d093b+_0x5e56de-_0x5ee915,'top':_0x440fcb+_0x10a23a-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x55e596||_0x1df59d(_0x1918e5['black'],0x0),'strokeWidth':0x0,'stroke':_0x55e596||_0x1df59d(_0x1918e5[_0x1076f2(0x19a)],0x0),'evented':!0x1});this[_0x1076f2(0x21d)]=_0x5d69c8,this[_0x1076f2(0x261)]['addObject'](_0x5d69c8,_0x1fc0ee);const _0x1675fd=new ve(De+_0x52e82e(z),{'left':_0x3d093b+_0x5e56de-_0x5ee915,'top':_0x440fcb+_0x10a23a-Q,'text':_0x58bfab,'color':_0x55e596});this[_0x1076f2(0x2d2)]=_0x1675fd,this[_0x1076f2(0x261)][_0x1076f2(0x212)](_0x1675fd,_0x1fc0ee),this[_0x1076f2(0x213)]=!0x1;}[_0x529b35(0x3af)](){const _0x49e40a=_0x529b35,_0x30e90c=this[_0x49e40a(0x338)][_0x49e40a(0x26f)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x880fa=this['_anchor'][_0x49e40a(0x20a)][_0x49e40a(0x2b8)](()=>{const _0x1c9446=_0x49e40a;this[_0x1c9446(0x39a)]&&clearTimeout(this['_hideTimer']),this[_0x1c9446(0x39a)]=setTimeout(()=>{const _0x361bee=_0x1c9446;this[_0x361bee(0x213)]=!0x1;},0x7d0);});return()=>{const _0x18abe6=_0x49e40a;_0x30e90c[_0x18abe6(0x274)](),_0x880fa['unsubscribe']();};}[_0x529b35(0x337)](_0x21db75,_0x500137,_0x24f00b,_0x5040ed){const _0x37bc37=_0x529b35,_0x1fc7fd=new _0x19caf0(_0x21db75)[_0x37bc37(0x28b)](0.2)[_0x37bc37(0x320)](),_0x253c44=new _0x34a2b3(Xi+_0x52e82e(z),{'pointsGroup':_0x500137,'fill':_0x1fc7fd||_0x1df59d(_0x1918e5[_0x37bc37(0x19a)],0.2),'left':_0x24f00b,'top':_0x5040ed,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x37bc37(0x2f3)](_0x253c44),this['_scene'][_0x37bc37(0x212)](_0x253c44,_0x1fc0ee);}[_0x529b35(0x1de)](_0x2f722a,_0xdbf99f,_0x329701,_0x4ab040){const _0x34f9e5=_0x529b35,_0x8caa20=new _0x19caf0(_0x2f722a)[_0x34f9e5(0x28b)](0.2)[_0x34f9e5(0x320)](),_0x7fb923=new _0x34a2b3(Gi+_0x52e82e(z),{'pointsGroup':_0xdbf99f,'fill':_0x8caa20||_0x1df59d(_0x1918e5[_0x34f9e5(0x19a)],0.2),'left':_0x329701,'top':_0x4ab040,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x34f9e5(0x31f)][_0x34f9e5(0x2f3)](_0x7fb923),this[_0x34f9e5(0x261)][_0x34f9e5(0x212)](_0x7fb923,_0x1fc0ee);}['_getAnchorBounding'](_0x185486){const _0x37b785=_0x185486[0x0],_0x4e7869=_0x37b785[0x0],_0x25fb29=_0x37b785[0x2],{x:_0x50991c,y:_0x2a68e8}=_0x4e7869,{x:_0x4bf5cd,y:_0x7089b0}=_0x25fb29;return{'left':_0x50991c,'top':_0x2a68e8,'width':_0x4bf5cd-_0x50991c,'height':_0x7089b0-_0x2a68e8};}[_0x529b35(0x37f)](){const _0x3f1a7f=_0x529b35,{scaleX:_0xef261f,scaleY:_0x2bdb5c}=this['_scene'][_0x3f1a7f(0x1f5)]();return Math[_0x3f1a7f(0x1a9)](_0xef261f,_0x2bdb5c);}}var Zi=Object[_0x529b35(0x29a)],Qi=(_0xd2bef9,_0x22db97,_0x3733b3,_0x694c57)=>{const _0x203a3f=_0x529b35;for(var _0x4b7ca2=_0x694c57>0x1?void 0x0:_0x694c57?Zi(_0x22db97,_0x3733b3):_0x22db97,_0x1faaa5=_0xd2bef9[_0x203a3f(0x175)]-0x1,_0x21c97d;_0x1faaa5>=0x0;_0x1faaa5--)(_0x21c97d=_0xd2bef9[_0x1faaa5])&&(_0x4b7ca2=_0x21c97d(_0x4b7ca2)||_0x4b7ca2);return _0x4b7ca2;},ie=(_0x12adcd,_0x2961f0)=>(_0x4eb0d9,_0x46aa1e)=>_0x2961f0(_0x4eb0d9,_0x46aa1e,_0x12adcd);let Fe=class extends _0x595d15{constructor(_0x34fa77,_0x44e45d,_0x3c4497,_0xcd8ca6,_0x2c9da3){const _0x175442=_0x529b35;super(),_(this,_0x175442(0x2ed),[]),_(this,'_cursors',[]),(this[_0x175442(0x2d8)]=_0x34fa77,this['_docSkeletonManagerService']=_0x44e45d,this[_0x175442(0x1c9)]=_0x3c4497,this[_0x175442(0x303)]=_0xcd8ca6,this[_0x175442(0x234)]=_0x2c9da3,this[_0x175442(0x1e0)]());}[_0x529b35(0x1e0)](){const _0x20fc7b=_0x529b35,_0x4a9fb9=this[_0x20fc7b(0x2d8)][_0x20fc7b(0x210)],_0x5d4e56=this[_0x20fc7b(0x306)];this[_0x20fc7b(0x38d)](_0x47088b([this['_collabCursorController'][_0x20fc7b(0x34d)](_0x4a9fb9),this['_themeService']['currentTheme$']])[_0x20fc7b(0x398)](_0xf9235d(([_0x37a530,_0x5c3da3])=>({'skeleton':_0x5d4e56[_0x20fc7b(0x2a6)](),'cursors':[..._0x37a530[_0x20fc7b(0x254)]()][_0x20fc7b(0x1d9)](_0x4eb773=>({..._0x4eb773,'color':this['_themeService'][_0x20fc7b(0x343)](_0x4eb773['color'])}))})))['subscribe'](_0x20e9ee=>{const _0x1b9120=_0x20fc7b;if(this[_0x1b9120(0x323)](),_0x20e9ee){const {skeleton:_0x1dee59,cursors:_0x149a3d}=_0x20e9ee;this['_updateCollabCursors'](_0x1dee59,_0x149a3d);}})),this['_initResize'](),this[_0x20fc7b(0x1be)]();}[_0x529b35(0x276)](_0x4c036e,_0x328bbf){const _0x6cddb7=_0x529b35,{scene:_0x530d23,mainComponent:_0x5df20c}=this[_0x6cddb7(0x2d8)],_0x70bf34=_0x328bbf[_0x6cddb7(0x2f1)](_0x2b46cc=>new ct(_0x2b46cc,_0x530d23,_0x4c036e,_0x5df20c));this[_0x6cddb7(0x2ed)]=_0x70bf34,this[_0x6cddb7(0x18b)]=_0x328bbf;}['_refreshCollabCursors'](){const _0x1098e5=_0x529b35;this[_0x1098e5(0x323)]();const {scene:_0x457980,mainComponent:_0x195b55}=this[_0x1098e5(0x2d8)],_0x2d75ec=this[_0x1098e5(0x306)]['getSkeleton'](),_0x15081d=this[_0x1098e5(0x18b)]['map'](_0x55dd3a=>new ct(_0x55dd3a,_0x457980,_0x2d75ec,_0x195b55));this[_0x1098e5(0x2ed)]=_0x15081d;}[_0x529b35(0x323)](){const _0x29f3db=_0x529b35;this['_cursorShapes']['forEach'](_0x3b25e2=>_0x3b25e2[_0x29f3db(0x219)]()),this[_0x29f3db(0x2ed)]=[];}['_initCommandExecutedListener'](){const _0x11e9ae=_0x529b35,_0x1b4c24=[_0x1cb270['id']];this['disposeWithMe'](this[_0x11e9ae(0x303)][_0x11e9ae(0x31a)](_0x3335a1=>{const _0x39ff2a=_0x11e9ae;_0x1b4c24[_0x39ff2a(0x2ea)](_0x3335a1['id'])&&_0x3335a1['params']['unitId']===this[_0x39ff2a(0x2d8)][_0x39ff2a(0x210)]&&this[_0x39ff2a(0x3c1)]();}));}[_0x529b35(0x275)](){const _0x8a1fef=_0x529b35;this['disposeWithMe'](_0x16e143(this[_0x8a1fef(0x2d8)][_0x8a1fef(0x37b)][_0x8a1fef(0x319)])[_0x8a1fef(0x398)](_0x564306(_0x505f31=>_0x505f31['type']===_0x29ac9d['resize']),_0x5e2397(0x10))[_0x8a1fef(0x297)](()=>{const _0x1af074=_0x8a1fef;this[_0x1af074(0x3c1)]();}));}};Fe=Qi([ie(0x1,_0x366c94(_0x16ba09)),ie(0x2,_0x366c94(H)),ie(0x3,_0x18f9ae),ie(0x4,_0x366c94(_0x518313))],Fe);const qi=0x1,en=1.5;class tn extends _0x2216d1{constructor(_0x1a2888,_0x4e721d){const _0x4af881=_0x529b35;super(_0x1a2888,_0x4e721d),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x4af881(0x36b)),_(this,'_name',''),_(this,_0x4af881(0x277),_0x4af881(0x1b8)),_(this,'_backgroundColor'),(_0x4e721d&&this[_0x4af881(0x376)](_0x4e721d),this[_0x4af881(0x26f)][_0x4af881(0x2b8)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x4af881(0x2b8)](()=>this[_0x4af881(0x376)]({'hovered':!0x1})));}['setShapeProps'](_0x5c15c4){const _0xb24590=_0x529b35;var _0x4f35d3,_0x56e80e,_0x88edc9,_0x54a241,_0x40a455,_0x36781c;this['_color']=(_0x4f35d3=_0x5c15c4['color'])!=null?_0x4f35d3:this['_color'],this[_0xb24590(0x273)]=(_0x56e80e=_0x5c15c4[_0xb24590(0x1e8)])!=null?_0x56e80e:this['_hovered'],this[_0xb24590(0x36b)]=(_0x88edc9=_0x5c15c4[_0xb24590(0x2c9)])!=null?_0x88edc9:this['_range'],this[_0xb24590(0x211)]=(_0x54a241=_0x5c15c4['name'])!=null?_0x54a241:this[_0xb24590(0x211)],this[_0xb24590(0x277)]=(_0x40a455=_0x5c15c4['labelPosition'])!=null?_0x40a455:this[_0xb24590(0x277)],this['_backgroundColor']=(_0x36781c=_0x5c15c4[_0xb24590(0x32a)])!=null?_0x36781c:this[_0xb24590(0x3a0)],this[_0xb24590(0x243)]({'width':_0x5c15c4[_0xb24590(0x2b1)],'height':_0x5c15c4[_0xb24590(0x328)]});}[_0x529b35(0x221)](_0x59a312){const _0x28afe3=_0x529b35,{row:_0x50755b,column:_0x20c6f2}=_0x59a312;if(_0x50755b>=this['_range'][_0x28afe3(0x3b2)]&&_0x50755b<=this['_range']['endRow']&&_0x20c6f2>=this[_0x28afe3(0x36b)]['startColumn']&&_0x20c6f2<=this['_range']['endColumn']){this[_0x28afe3(0x376)]({'hovered':!0x0});return;}this[_0x28afe3(0x376)]({'hovered':!0x1});}[_0x529b35(0x39d)](_0x189819){return!0x1;}[_0x529b35(0x324)](_0x2fefe7){const _0xa6d2fa=_0x529b35;_0x575e67[_0xa6d2fa(0x17c)](_0x2fefe7,{'width':this[_0xa6d2fa(0x2b1)],'height':this['height'],'strokeWidth':en,'stroke':this[_0xa6d2fa(0x1bf)],'evented':!0x1,'fill':this[_0xa6d2fa(0x3a0)]}),this[_0xa6d2fa(0x273)]&&(_0x2fefe7[_0xa6d2fa(0x1ae)](),_0x2fefe7[_0xa6d2fa(0x193)](0x1,0x0,0x0,0x1,this[_0xa6d2fa(0x2b1)],this['_labelPosition']===_0xa6d2fa(0x191)?0x0:-Q),ve['drawWith'](_0x2fefe7,{'text':this[_0xa6d2fa(0x211)],'color':this[_0xa6d2fa(0x1bf)]}),_0x2fefe7[_0xa6d2fa(0x367)]());}}var sn=Object[_0x529b35(0x29a)],nn=(_0x2bd031,_0x4eb6d9,_0x2cfca2,_0x1285f0)=>{for(var _0xdc5eb7=_0x1285f0>0x1?void 0x0:_0x1285f0?sn(_0x4eb6d9,_0x2cfca2):_0x4eb6d9,_0x4278c1=_0x2bd031['length']-0x1,_0x41b2e2;_0x4278c1>=0x0;_0x4278c1--)(_0x41b2e2=_0x2bd031[_0x4278c1])&&(_0xdc5eb7=_0x41b2e2(_0xdc5eb7)||_0xdc5eb7);return _0xdc5eb7;},be=(_0x56e96a,_0x5371e8)=>(_0x5a934f,_0x11a8fe)=>_0x5371e8(_0x5a934f,_0x11a8fe,_0x56e96a);const rn=0x1389;let ke=class extends _0x595d15{constructor(_0x2cd2d0,_0x3479ca,_0x518ac8,_0x376ec3){const _0x125c69=_0x529b35;super(),_(this,'_cursors',new Set()),_(this,_0x125c69(0x34c),null),(this['_context']=_0x2cd2d0,this[_0x125c69(0x375)]=_0x3479ca,this[_0x125c69(0x1c9)]=_0x518ac8,this[_0x125c69(0x234)]=_0x376ec3,this[_0x125c69(0x1e0)]());}['_init'](){const _0x4257a0=_0x529b35;this[_0x4257a0(0x375)][_0x4257a0(0x259)][_0x4257a0(0x398)](_0x2d5731(this[_0x4257a0(0x1f6)]),_0x529580(_0x56ad93=>{const _0x190f37=_0x4257a0;if(_0x56ad93){const _0x1abfea=_0x56ad93[_0x190f37(0x302)];return _0x47088b(this[_0x190f37(0x1c9)][_0x190f37(0x34d)](this[_0x190f37(0x2d8)][_0x190f37(0x210)]),this['_themeService'][_0x190f37(0x2de)])[_0x190f37(0x398)](_0xf9235d(([_0xd12736,_0x45089f])=>{const _0x4f55d9=_0x190f37,_0x3faa10=new Map();return _0xd12736[_0x4f55d9(0x27a)]((_0x1eaac7,_0x265939)=>{const _0x3055f2=_0x4f55d9;if(_0x1eaac7[_0x3055f2(0x1fe)]===_0x1abfea){const _0x37e094={..._0x1eaac7};_0x37e094[_0x3055f2(0x177)]=this[_0x3055f2(0x234)][_0x3055f2(0x343)](_0x1eaac7[_0x3055f2(0x177)]),_0x3faa10[_0x3055f2(0x1aa)](_0x265939,_0x37e094);}}),{'skeleton':_0x56ad93,'cursors':_0x3faa10};}));}return _0x3b6bfd({'skeleton':null,'cursors':new Map()});}))[_0x4257a0(0x297)](({skeleton:_0x48237b,cursors:_0x9dc712})=>{const _0x126d43=_0x4257a0;this[_0x126d43(0x323)](),_0x48237b&&this[_0x126d43(0x276)](_0x48237b,_0x9dc712);}),this[_0x4257a0(0x375)][_0x4257a0(0x259)][_0x4257a0(0x297)](_0x1ee901=>{const _0x36e659=_0x4257a0;if(_0x1ee901==null)return;const {skeleton:_0x418275}=_0x1ee901,{scene:_0x49524b}=this['_context'];_0x49524b[_0x36e659(0x202)][_0x36e659(0x2b8)](_0x2c9ba3(_0x2df050=>{const _0x1e0d45=_0x36e659;var _0x1153a0,_0x3109ed;const {offsetX:_0x2555d7,offsetY:_0x4c55f0}=_0x2df050,{x:_0x3e13fa,y:_0x35f8ef}=_0x49524b[_0x1e0d45(0x1ea)](_0x5d8980[_0x1e0d45(0x1d5)]([_0x2555d7,_0x4c55f0])),{scaleX:_0x258288,scaleY:_0x46adb0}=_0x49524b[_0x1e0d45(0x1f5)](),_0x2798ff=_0x49524b['getViewport'](_0xf320e[_0x1e0d45(0x1a1)]),_0x495087=_0x49524b['getVpScrollXYInfoByPosToVp'](_0x5d8980[_0x1e0d45(0x1d5)]([_0x3e13fa,_0x35f8ef]),_0x2798ff),_0x245809=_0x418275[_0x1e0d45(0x1a5)](_0x2555d7,_0x4c55f0,_0x258288,_0x46adb0,_0x495087);((_0x1153a0=this['_lastPointer'])==null?void 0x0:_0x1153a0[_0x1e0d45(0x18e)])===_0x245809['column']&&((_0x3109ed=this[_0x1e0d45(0x34c)])==null?void 0x0:_0x3109ed[_0x1e0d45(0x2a3)])===_0x245809['row']||this['_cursors'][_0x1e0d45(0x27a)](_0x2f7ddb=>{const _0x1891b5=_0x1e0d45;_0x2f7ddb[_0x1891b5(0x221)](_0x245809);});},0x64));});}[_0x529b35(0x276)](_0x255628,_0x583582){const _0x1d4438=_0x529b35;var _0x5588f5;const _0x4ef870=(_0x5588f5=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x5588f5['skeleton'];if(!_0x4ef870)return;const _0x188a66=this[_0x1d4438(0x35e)]();if(!_0x188a66)return;this[_0x1d4438(0x18b)][_0x1d4438(0x27a)](_0xa1ebd1=>{const _0x3f859a=_0x1d4438;_0xa1ebd1[_0x3f859a(0x31d)]();});const {scene:_0x554c98}=_0x188a66,_0x464200=on(Array['from'](_0x583582['values']()))[_0x1d4438(0x2f1)](_0x17bb84=>{const _0x22aaf1=_0x1d4438,{color:_0x63e827,range:_0x4eb562,name:_0x70e4a6,selection:_0x1f8ece,sheetID:_0x199939}=_0x17bb84,{startColumn:_0x442567,startRow:_0x5c1aa9,endColumn:_0x441dc3,endRow:_0x46c837}=_0x4eb562,_0x2db369=_0x14957f(_0x5c1aa9,_0x442567,_0x554c98,_0x4ef870),_0x4b9733=_0x14957f(_0x46c837,_0x441dc3,_0x554c98,_0x4ef870),{columnHeaderHeightAndMarginTop:_0x4e4b3a}=_0x4ef870,{startX:_0x37212c,startY:_0x3fe87d}=_0x2db369,{endX:_0x225e7b,endY:_0x5ef0cb}=_0x4b9733,_0x1a5897=_0x225e7b-_0x37212c,_0xc348b7=_0x5ef0cb-_0x3fe87d,_0x3c3a65={'labelPosition':_0x3fe87d-_0x4e4b3a>=Q?_0x22aaf1(0x1b8):'bottom','sheetID':_0x199939,'range':_0x4eb562,'color':_0x63e827,'name':_0x70e4a6,'selection':_0x1f8ece,'left':_0x37212c,'top':_0x3fe87d,'width':_0x1a5897,'height':_0xc348b7,'evented':!0x1,'zIndex':rn};return new tn(_0x70e4a6,_0x3c3a65);});_0x554c98[_0x1d4438(0x2cd)](_0x464200,qi),this[_0x1d4438(0x18b)]=new Set(_0x464200);}[_0x529b35(0x323)](){const _0x204857=_0x529b35;var _0x14734d;(_0x14734d=this['_cursors'])==null||_0x14734d['forEach'](_0x26fd58=>_0x26fd58[_0x204857(0x219)]());}[_0x529b35(0x35e)](){const _0x3dcc95=_0x529b35;return _0x2ee882(this['_context'][_0x3dcc95(0x314)],this[_0x3dcc95(0x2d8)]);}};ke=nn([be(0x1,_0x366c94(_0x658163)),be(0x2,_0x366c94(H)),be(0x3,_0x366c94(_0x518313))],ke);function on(_0x436e1b){const _0x4cf60d=_0x529b35,_0x206eff=new Map();return _0x436e1b[_0x4cf60d(0x27a)](_0x1b17b9=>{const _0x52402e=_0x4cf60d;if(_0x206eff[_0x52402e(0x308)](_0x1b17b9[_0x52402e(0x1f2)])){const _0x1a353c=_0x206eff[_0x52402e(0x233)](_0x1b17b9[_0x52402e(0x1f2)]);_0x1a353c['name']+=',\x20'+_0x1b17b9[_0x52402e(0x31c)];}else _0x206eff[_0x52402e(0x1aa)](_0x1b17b9[_0x52402e(0x1f2)],_0x1b17b9);}),Array[_0x4cf60d(0x2e0)](_0x206eff['values']());}var an=Object[_0x529b35(0x29a)],cn=(_0x213469,_0x3bb329,_0x4c10dc,_0x1ac64b)=>{const _0x22da37=_0x529b35;for(var _0x2b7350=_0x1ac64b>0x1?void 0x0:_0x1ac64b?an(_0x3bb329,_0x4c10dc):_0x3bb329,_0x54d60e=_0x213469[_0x22da37(0x175)]-0x1,_0x58c401;_0x54d60e>=0x0;_0x54d60e--)(_0x58c401=_0x213469[_0x54d60e])&&(_0x2b7350=_0x58c401(_0x2b7350)||_0x2b7350);return _0x2b7350;},F=(_0x552472,_0x331d55)=>(_0x5e2dae,_0x52bc86)=>_0x331d55(_0x5e2dae,_0x52bc86,_0x552472);let _e=class extends _0x90a638{constructor(_0x56e3b0,_0x52e39a,_0x395e04,_0xd21732,_0x388671,_0x33dd79){const _0x5e352b=_0x529b35;super(),this[_0x5e352b(0x29b)]=_0x56e3b0,this['_localCacheService']=_0x52e39a,this[_0x5e352b(0x22f)]=_0x395e04,this['_messageService']=_0xd21732,this[_0x5e352b(0x1a2)]=_0x388671,this[_0x5e352b(0x35c)]=_0x33dd79,this[_0x5e352b(0x296)](),this[_0x5e352b(0x3a6)]();}[_0x529b35(0x296)](){const _0x5d1872=_0x529b35;this['disposeWithMe'](this[_0x5d1872(0x29b)][_0x5d1872(0x25d)](()=>{const _0x29aed2=_0x5d1872;if(this[_0x29aed2(0x3ca)][_0x29aed2(0x2ae)]['size'])return this[_0x29aed2(0x35c)]['t']('collaboration.offline-data-not-saved');}));}[_0x529b35(0x3a6)](){const _0x6907b0=_0x529b35;this['disposeWithMe'](this['_collaborationUIEventService'][_0x6907b0(0x22c)][_0x6907b0(0x297)](_0x5d1cab=>{const _0xa19ea0=_0x6907b0;_0x5d1cab['id']===_0x317a7b[_0xa19ea0(0x327)]&&this[_0xa19ea0(0x2a2)][_0xa19ea0(0x21a)]({'type':_0x412ff9[_0xa19ea0(0x247)],'content':this[_0xa19ea0(0x35c)]['t'](_0xa19ea0(0x1e7))}),_0x5d1cab['id']===_0x317a7b['CLOSE_ROOM']&&this[_0xa19ea0(0x2a2)]['show']({'type':_0x412ff9[_0xa19ea0(0x247)],'content':this[_0xa19ea0(0x35c)]['t'](_0xa19ea0(0x341))}),_0x5d1cab['id']===_0x317a7b[_0xa19ea0(0x23c)]&&this[_0xa19ea0(0x1a2)]['show']({'title':this[_0xa19ea0(0x35c)]['t'](_0xa19ea0(0x28e)),'content':this[_0xa19ea0(0x35c)]['t']('permission.content'),'type':_0xa19ea0(0x266),'duration':0x0}),_0x5d1cab['id']===_0x317a7b[_0xa19ea0(0x225)]&&this[_0xa19ea0(0x2a2)][_0xa19ea0(0x21a)]({'type':_0x412ff9['Error'],'content':this[_0xa19ea0(0x35c)]['t'](_0xa19ea0(0x341))+'('+_0x5d1cab['data']+')'}),_0x5d1cab['id']===_0x317a7b[_0xa19ea0(0x173)]&&this['_messageService']['show']({'type':_0x412ff9[_0xa19ea0(0x247)],'content':this[_0xa19ea0(0x35c)]['t'](_0x5d1cab[_0xa19ea0(0x1c1)]||'')}),_0x5d1cab['id']===_0x317a7b[_0xa19ea0(0x249)]&&this[_0xa19ea0(0x2a2)]['show']({'type':_0x412ff9[_0xa19ea0(0x247)],'content':this[_0xa19ea0(0x35c)]['t'](_0xa19ea0(0x27f))}),_0x5d1cab['id']===_0x317a7b['SOCKET_FAILED']&&this['_messageService']['show']({'type':_0x412ff9[_0xa19ea0(0x21e)],'content':this['_localeService']['t'](_0xa19ea0(0x391))}),_0x5d1cab['id']===_0x317a7b[_0xa19ea0(0x16e)]&&this[_0xa19ea0(0x2a2)][_0xa19ea0(0x21a)]({'type':_0x412ff9['Error'],'content':this['_localeService']['t'](_0xa19ea0(0x36a))});}));}};_e=cn([F(0x0,_0x592577),F(0x1,_0x4c8618),F(0x2,_0x366c94(_0x362742)),F(0x3,_0x19dd60),F(0x4,_0x706d0c),F(0x5,_0x366c94(_0x19089c))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x241d23,_0x40b5ec,_0x1b0f03,_0xafaf40)=>{for(var _0x713af=_0xafaf40>0x1?void 0x0:_0xafaf40?_n(_0x40b5ec,_0x1b0f03):_0x40b5ec,_0x2d42ca=_0x241d23['length']-0x1,_0xf690b;_0x2d42ca>=0x0;_0x2d42ca--)(_0xf690b=_0x241d23[_0x2d42ca])&&(_0x713af=_0xf690b(_0x713af)||_0x713af);return _0x713af;},ne=(_0x2b6003,_0x11971e)=>(_0x1c47b6,_0x4290ce)=>_0x11971e(_0x1c47b6,_0x4290ce,_0x2b6003);let le=class extends _0x90a638{constructor(_0x200a15,_0x2d457f,_0x5b0c31,_0x4e71fc){const _0x4cbc6c=_0x529b35;super(),_(this,'_memberID'),(this[_0x4cbc6c(0x342)]=_0x200a15,this[_0x4cbc6c(0x23d)]=_0x2d457f,this['_logService']=_0x5b0c31,this[_0x4cbc6c(0x28c)]=_0x4e71fc,this[_0x4cbc6c(0x1e0)]());}['_init'](){const _0x485523=_0x529b35;this[_0x485523(0x2a4)](),this['_initUnhandledRejectionListener'](),this[_0x485523(0x3b4)](),this[_0x485523(0x354)]();}['_initUserListener'](){const _0x5efa79=_0x529b35;this['disposeWithMe'](this[_0x5efa79(0x28c)][_0x5efa79(0x3bc)][_0x5efa79(0x297)](_0x1e3465=>{const _0x2416f9=_0x5efa79;this[_0x2416f9(0x1d4)]=_0x1e3465==null?void 0x0:_0x1e3465[_0x2416f9(0x181)];}));}[_0x529b35(0x2a4)](){const _0x4c6eeb=_0x529b35,_0x382616=_0x13f990=>{const _0x30eeb4=_0x1199;var _0x237645;this[_0x30eeb4(0x2f8)]('error',_0x30eeb4(0x1fc)+_0x13f990[_0x30eeb4(0x1d6)]+_0x30eeb4(0x38b)+_0x13f990['filename']+':'+_0x13f990[_0x30eeb4(0x2ef)]+':'+_0x13f990[_0x30eeb4(0x197)]+'\x0a'+(((_0x237645=_0x13f990[_0x30eeb4(0x266)])==null?void 0x0:_0x237645['stack'])||''));};window[_0x4c6eeb(0x24d)](_0x4c6eeb(0x266),_0x382616),this[_0x4c6eeb(0x38d)](()=>{const _0x16a482=_0x4c6eeb;window[_0x16a482(0x283)](_0x16a482(0x266),_0x382616);});}[_0x529b35(0x293)](){const _0x308563=_0x529b35,_0x18f1cf=_0x57b6b9=>{const _0x65ad25=_0x1199;this[_0x65ad25(0x2f8)](_0x65ad25(0x266),_0x65ad25(0x2a5)+_0x57b6b9[_0x65ad25(0x26b)]);};window[_0x308563(0x24d)](_0x308563(0x34e),_0x18f1cf),this[_0x308563(0x38d)](()=>{const _0x5884b0=_0x308563;window[_0x5884b0(0x283)](_0x5884b0(0x34e),_0x18f1cf);});}['_monkeyPatchLogService'](){const _0x66097b=_0x529b35,_0x41c2f8=this[_0x66097b(0x1f0)][_0x66097b(0x266)][_0x66097b(0x358)](this[_0x66097b(0x1f0)]);this[_0x66097b(0x1f0)][_0x66097b(0x266)]=(..._0x562c96)=>{const _0x94c196=_0x66097b,_0x408a8d=_0x562c96[_0x94c196(0x2f1)](_0x2c0c55=>_0x2c0c55 instanceof Error?_0x2c0c55[_0x94c196(0x1d6)]+'\x0a'+_0x2c0c55[_0x94c196(0x386)]:String(_0x2c0c55))[_0x94c196(0x1a8)]('\x20');this['_uploadLog'](_0x94c196(0x266),_0x94c196(0x268)+_0x408a8d),_0x41c2f8(..._0x562c96);},this[_0x66097b(0x38d)](()=>{const _0x2e361e=_0x66097b;this[_0x2e361e(0x1f0)][_0x2e361e(0x266)]=_0x41c2f8;});}['_uploadLog'](_0x42ce65,_0x483cb6){const _0x5e8e54=_0x529b35;try{const _0x16aeee={'userId':this[_0x5e8e54(0x1d4)],'logLabel':_0x42ce65,'content':_0x483cb6};this[_0x5e8e54(0x23d)][_0x5e8e54(0x2cf)]('/universer-api/frontend/logs',{'body':_0x16aeee})[_0x5e8e54(0x333)](()=>{});}catch{}}};le=ln([ne(0x0,_0x366c94(_0x348990)),ne(0x1,_0x366c94(_0x4ba75a)),ne(0x2,_0x4be52f),ne(0x3,_0x366c94(_0x44fd71))],le);const hn=_0x529b35(0x3ac),_t={};var un=Object[_0x529b35(0x29a)],dn=(_0xbac48a,_0x2f66a8,_0x45bd78,_0x14afd2)=>{const _0x2f499f=_0x529b35;for(var _0x1670f3=_0x14afd2>0x1?void 0x0:_0x14afd2?un(_0x2f66a8,_0x45bd78):_0x2f66a8,_0xf8e30f=_0xbac48a[_0x2f499f(0x175)]-0x1,_0x156fd1;_0xf8e30f>=0x0;_0xf8e30f--)(_0x156fd1=_0xbac48a[_0xf8e30f])&&(_0x1670f3=_0x156fd1(_0x1670f3)||_0x1670f3);return _0x1670f3;},lt=(_0x355cb1,_0x4f9a38)=>(_0x28aa76,_0x4b994a)=>_0x4f9a38(_0x28aa76,_0x4b994a,_0x355cb1);let he=class{constructor(_0x92db1d,_0x1a1367){const _0x2f8676=_0x529b35;this[_0x2f8676(0x170)]=_0x92db1d,this[_0x2f8676(0x2ff)]=_0x1a1367;}[_0x529b35(0x240)](_0xa1884a){const _0xa290a7=_0x529b35;this[_0xa290a7(0x2e9)](_0xa1884a),this[_0xa290a7(0x1f1)](_0xa1884a);}['transformRemoteChangeset'](_0x2bd5e3){const _0x4bd02d=_0x529b35,{unitID:_0x1d334e}=_0x2bd5e3,_0x470804=this[_0x4bd02d(0x2ff)][_0x4bd02d(0x272)](_0x1d334e)[_0x4bd02d(0x267)](_0x15e99b),{redoCache:_0x263a61}=_0x470804[_0x4bd02d(0x1e9)]();if(_0x263a61[_0x4bd02d(0x175)]===0x0)return _0x2bd5e3;let _0x19087b=_0x254727[_0x4bd02d(0x220)](_0x2bd5e3[_0x4bd02d(0x238)][0x0]);for(let _0x4d303b=0x0;_0x4d303b<_0x263a61['length'];_0x4d303b++){const _0x513e8d={'id':_0x4bd02d(0x20d),'params':{..._0x263a61[_0x4d303b]}},_0x1c448f=this[_0x4bd02d(0x170)][_0x4bd02d(0x393)](_0x19087b,_0x513e8d,!0x1);if(_0x1b89db(_0x1c448f))throw _0x1c448f['error'];_0x19087b=_0x1c448f[_0x4bd02d(0x318)];}return{..._0x254727[_0x4bd02d(0x220)](_0x2bd5e3),'mutations':[_0x19087b]};}[_0x529b35(0x2e9)](_0x1358d1){const _0x53982d=_0x529b35,{unitID:_0x5807e8}=_0x1358d1,_0x382a57=this[_0x53982d(0x2ff)][_0x53982d(0x272)](_0x5807e8)[_0x53982d(0x267)](_0x15e99b),{undoCache:_0x52187b,redoCache:_0x473465}=_0x382a57[_0x53982d(0x1e9)]();if(_0x52187b['length']===0x0||_0x473465[_0x53982d(0x175)]===0x0)return;const _0x60f3ca=[],_0x288c35=[];let _0x58659a=_0x254727['deepClone'](_0x1358d1[_0x53982d(0x238)][0x0]),_0x5bfc91=_0x254727['deepClone'](_0x1358d1[_0x53982d(0x238)][0x0]);for(let _0x1d30b0=_0x52187b[_0x53982d(0x175)]-0x1;_0x1d30b0>=0x0;_0x1d30b0--){const _0x13a969={'id':_0x53982d(0x20d),'params':{..._0x52187b[_0x1d30b0]}},_0x53a282={'id':_0x53982d(0x20d),'params':{..._0x473465[_0x1d30b0]}},_0x3ebbec=this[_0x53982d(0x170)]['transformMutation'](_0x58659a,_0x13a969,!0x1),_0x3abd5=this[_0x53982d(0x170)][_0x53982d(0x393)](_0x5bfc91,_0x53a282,!0x1);if(_0x1b89db(_0x3ebbec))throw _0x3ebbec[_0x53982d(0x266)];if(_0x1b89db(_0x3abd5))throw _0x3abd5[_0x53982d(0x266)];_0x60f3ca[_0x53982d(0x37a)](_0x3ebbec['m2Prime'][_0x53982d(0x3b0)]),_0x288c35['unshift'](_0x3abd5[_0x53982d(0x2f7)][_0x53982d(0x3b0)]),_0x58659a=_0x3ebbec['m1Prime'],_0x5bfc91=_0x3abd5[_0x53982d(0x318)];}_0x382a57[_0x53982d(0x389)]({'undoCache':_0x60f3ca,'redoCache':_0x288c35});}['_transformPreviousActiveRange'](_0x16efc6){const _0x106fd6=_0x529b35,{unitID:_0x15dcf1}=_0x16efc6,_0x146f11=this[_0x106fd6(0x2ff)][_0x106fd6(0x272)](_0x15dcf1)[_0x106fd6(0x267)](_0x15e99b),_0x1f420c=_0x146f11[_0x106fd6(0x24e)]();if(_0x1f420c==null)return;const _0xb625df=[{'id':_0x106fd6(0x20d),'params':{'unitId':_0x16efc6[_0x106fd6(0x242)],'actions':null,'textRanges':[_0x1f420c]}}],_0x4254a9=this['_transformService'][_0x106fd6(0x26c)](_0x16efc6,_0xb625df);if(!_0x579d5b(_0x4254a9))throw _0x4254a9['error'];const _0x2f731b=_0x4254a9['m2Prime'][0x0][_0x106fd6(0x3b0)]['textRanges'];Array[_0x106fd6(0x330)](_0x2f731b)&&_0x2f731b[_0x106fd6(0x175)]&&_0x146f11['setActiveRange'](_0x2f731b[0x0]);}};he=dn([lt(0x0,_0x55fef0),lt(0x1,_0x353e17)],he);var Sn=Object[_0x529b35(0x29a)],In=(_0x522268,_0x214409,_0x364742,_0x368fd9)=>{const _0x42adb5=_0x529b35;for(var _0x53332f=_0x368fd9>0x1?void 0x0:_0x368fd9?Sn(_0x214409,_0x364742):_0x214409,_0x35bb08=_0x522268[_0x42adb5(0x175)]-0x1,_0x4bdd97;_0x35bb08>=0x0;_0x35bb08--)(_0x4bdd97=_0x522268[_0x35bb08])&&(_0x53332f=_0x4bdd97(_0x53332f)||_0x53332f);return _0x53332f;},Le=(_0x5acc7f,_0x1adc16)=>(_0x3df323,_0x3740c5)=>_0x1adc16(_0x3df323,_0x3740c5,_0x5acc7f);let ue=class{constructor(_0x369cfd,_0x4be314,_0x1103e5){const _0x16e952=_0x529b35;this[_0x16e952(0x342)]=_0x369cfd,this[_0x16e952(0x170)]=_0x4be314,this[_0x16e952(0x396)]=_0x1103e5;}[_0x529b35(0x397)](_0x46c9ca){const _0x32c55c=_0x529b35;this[_0x32c55c(0x18f)](_0x46c9ca);}[_0x529b35(0x3a2)](_0x19428b){const _0x49ff59=_0x529b35,{unitID:_0x3f7d46}=_0x19428b,{collaboration:_0x500d96}=this['_docStateChangeManagerService'][_0x49ff59(0x1b3)](_0x3f7d46);if(_0x500d96['length']===0x0)return _0x19428b;let _0x571299=_0x254727[_0x49ff59(0x220)](_0x19428b[_0x49ff59(0x238)][0x0]);for(let _0x349487=0x0;_0x349487<_0x500d96[_0x49ff59(0x175)];_0x349487++){const _0x5c8186={'id':_0x49ff59(0x20d),'params':{'unitId':_0x500d96[_0x349487]['unitId'],..._0x500d96[_0x349487][_0x49ff59(0x374)]}},_0x16e1b7=this[_0x49ff59(0x170)][_0x49ff59(0x393)](_0x571299,_0x5c8186,!0x1);if(_0x1b89db(_0x16e1b7))throw _0x16e1b7[_0x49ff59(0x266)];_0x571299=_0x16e1b7['m1Prime'];}return{..._0x254727[_0x49ff59(0x220)](_0x19428b),'mutations':[_0x571299]};}['_transformHistoryAndStateStack'](_0x1c0b3a){const _0x376f0c=_0x529b35,{unitID:_0x46c70e}=_0x1c0b3a,{history:_0x34f44a,collaboration:_0x4e32ab}=this['_docStateChangeManagerService']['getStateCache'](_0x46c70e);if(_0x34f44a[_0x376f0c(0x175)]===0x0&&_0x4e32ab[_0x376f0c(0x175)]===0x0)return;const _0x1eef48=[],_0x7d08e5=[];let _0x2e63fc=_0x254727['deepClone'](_0x1c0b3a['mutations'][0x0]),_0x38c070=_0x254727[_0x376f0c(0x220)](_0x1c0b3a[_0x376f0c(0x238)][0x0]);for(let _0x642551=_0x34f44a[_0x376f0c(0x175)]-0x1;_0x642551>=0x0;_0x642551--){const _0x4a3231={'id':_0x376f0c(0x20d),'params':{'unitId':_0x34f44a[_0x642551][_0x376f0c(0x210)],..._0x34f44a[_0x642551]['undoState']}},_0x5b4adc={'id':_0x376f0c(0x20d),'params':{'unitId':_0x34f44a[_0x642551][_0x376f0c(0x210)],..._0x34f44a[_0x642551][_0x376f0c(0x374)]}},_0x5bd808=this[_0x376f0c(0x170)][_0x376f0c(0x393)](_0x2e63fc,_0x4a3231,!0x1),_0x2cbe32=this[_0x376f0c(0x170)][_0x376f0c(0x393)](_0x38c070,_0x5b4adc,!0x1);if(_0x1b89db(_0x5bd808))throw _0x5bd808[_0x376f0c(0x266)];if(_0x1b89db(_0x2cbe32))throw _0x2cbe32['error'];_0x1eef48[_0x376f0c(0x37a)]({..._0x34f44a[_0x642551],'undoState':_0x5bd808[_0x376f0c(0x2f7)]['params'],'redoState':_0x2cbe32[_0x376f0c(0x2f7)][_0x376f0c(0x3b0)]}),_0x2e63fc=_0x5bd808[_0x376f0c(0x318)],_0x38c070=_0x2cbe32[_0x376f0c(0x318)];}_0x2e63fc=_0x254727[_0x376f0c(0x220)](_0x1c0b3a[_0x376f0c(0x238)][0x0]),_0x38c070=_0x254727[_0x376f0c(0x220)](_0x1c0b3a[_0x376f0c(0x238)][0x0]);for(let _0x142ec3=_0x4e32ab[_0x376f0c(0x175)]-0x1;_0x142ec3>=0x0;_0x142ec3--){const _0x26e0a5={'id':_0x376f0c(0x20d),'params':{'unitId':_0x4e32ab[_0x142ec3][_0x376f0c(0x210)],..._0x4e32ab[_0x142ec3][_0x376f0c(0x29e)]}},_0x174f83={'id':_0x376f0c(0x20d),'params':{'unitId':_0x4e32ab[_0x142ec3][_0x376f0c(0x210)],..._0x4e32ab[_0x142ec3][_0x376f0c(0x374)]}},_0x321355=this[_0x376f0c(0x170)][_0x376f0c(0x393)](_0x2e63fc,_0x26e0a5,!0x1),_0x28b64b=this[_0x376f0c(0x170)][_0x376f0c(0x393)](_0x38c070,_0x174f83,!0x1);if(_0x1b89db(_0x321355))throw _0x321355[_0x376f0c(0x266)];if(_0x1b89db(_0x28b64b))throw _0x28b64b[_0x376f0c(0x266)];_0x7d08e5[_0x376f0c(0x37a)]({..._0x4e32ab[_0x142ec3],'undoState':_0x321355['m2Prime']['params'],'redoState':_0x28b64b['m2Prime'][_0x376f0c(0x3b0)]}),_0x2e63fc=_0x321355[_0x376f0c(0x318)],_0x38c070=_0x28b64b['m1Prime'];}this['_docStateChangeManagerService'][_0x376f0c(0x332)](_0x46c70e,{'history':_0x1eef48,'collaboration':_0x7d08e5});}};ue=In([Le(0x0,_0x366c94(_0x348990)),Le(0x1,_0x55fef0),Le(0x2,_0x366c94(_0x2c40ff))],ue);var mn=Object[_0x529b35(0x29a)],fn=(_0x45a07d,_0x2a2d47,_0x2c224b,_0x1f0f2e)=>{const _0x167648=_0x529b35;for(var _0xabcaf0=_0x1f0f2e>0x1?void 0x0:_0x1f0f2e?mn(_0x2a2d47,_0x2c224b):_0x2a2d47,_0x561848=_0x45a07d[_0x167648(0x175)]-0x1,_0x51e4e8;_0x561848>=0x0;_0x561848--)(_0x51e4e8=_0x45a07d[_0x561848])&&(_0xabcaf0=_0x51e4e8(_0xabcaf0)||_0xabcaf0);return _0xabcaf0;},ht=(_0x4a2567,_0x269b44)=>(_0xa45904,_0x55f034)=>_0x269b44(_0xa45904,_0x55f034,_0x4a2567);let de=class{constructor(_0x3d3237,_0x4b81e2){const _0x223b93=_0x529b35;this['_injector']=_0x3d3237,this[_0x223b93(0x170)]=_0x4b81e2;}[_0x529b35(0x246)](_0x593719){const _0x5dbc78=_0x529b35;var _0xc34669;const _0x38c51a=this['_injector'][_0x5dbc78(0x233)](_0xcff658),_0x5458e9=(_0xc34669=_0x38c51a[_0x5dbc78(0x285)]())!=null?_0xc34669:[];if(_0x5458e9[_0x5dbc78(0x175)]===0x0)return;const _0x3aef4e=_0x593719[_0x5dbc78(0x242)],_0x3abcb9=[{'id':_0x5dbc78(0x20d),'params':{'unitId':_0x3aef4e,'actions':null,'textRanges':_0x5458e9}}],_0x4b8c4d=this['_transformService'][_0x5dbc78(0x26c)](_0x593719,_0x3abcb9);if(!_0x579d5b(_0x4b8c4d))throw _0x4b8c4d['error'];const _0xfe309a=_0x4b8c4d[_0x5dbc78(0x2f7)][0x0][_0x5dbc78(0x3b0)][_0x5dbc78(0x307)];Array[_0x5dbc78(0x330)](_0xfe309a)&&_0xfe309a['length']&&_0x38c51a['replaceDocRanges'](_0xfe309a,{'unitId':_0x3aef4e,'subUnitId':_0x3aef4e},!0x1);}};de=fn([ht(0x0,_0x366c94(_0x348990)),ht(0x1,_0x55fef0)],de);var gn=Object[_0x529b35(0x29a)],En=(_0x5c8e66,_0x110be3,_0x3f655d,_0x270dde)=>{const _0x33467f=_0x529b35;for(var _0x2da145=_0x270dde>0x1?void 0x0:_0x270dde?gn(_0x110be3,_0x3f655d):_0x110be3,_0xc13956=_0x5c8e66[_0x33467f(0x175)]-0x1,_0x9327f1;_0xc13956>=0x0;_0xc13956--)(_0x9327f1=_0x5c8e66[_0xc13956])&&(_0x2da145=_0x9327f1(_0x2da145)||_0x2da145);return _0x2da145;},U=(_0x55bcb5,_0x5a853e)=>(_0x7d5a27,_0x2ca23a)=>_0x5a853e(_0x7d5a27,_0x2ca23a,_0x55bcb5);let Se=class extends _0x90a638{constructor(_0x6aed8c,_0x4a7005,_0x1dd879,_0x2d11f1,_0x7dd69e,_0x2346c7,_0x141784,_0x18e10e){const _0x438d8b=_0x529b35;super(),_(this,_0x438d8b(0x2b0),new _0xf6a4f9(_0x4ffad8[_0x438d8b(0x1f9)])),(this[_0x438d8b(0x396)]=_0x6aed8c,this[_0x438d8b(0x347)]=_0x4a7005,this['_docTransformIMECacheService']=_0x1dd879,this[_0x438d8b(0x206)]=_0x2d11f1,this[_0x438d8b(0x1c0)]=_0x7dd69e,this['_docSyncEditingCollabCursorService']=_0x2346c7,this[_0x438d8b(0x2a2)]=_0x141784,this[_0x438d8b(0x35c)]=_0x18e10e,this[_0x438d8b(0x255)]());}[_0x529b35(0x255)](){const _0x86b183=_0x529b35;this[_0x86b183(0x38d)](this['_collaborationController'][_0x86b183(0x17d)][_0x86b183(0x297)](_0x1c1b26=>{const _0x201c6f=_0x86b183,_0x42d237=this[_0x201c6f(0x396)]['docStateChange$'][_0x201c6f(0x297)](_0x405acf=>{const _0x3a9b48=_0x201c6f;if(_0x405acf==null)return;const {unitId:_0x3a45f7,redoState:_0x19c4a2,commandId:_0x6bd84b}=_0x405acf;if(_0x3a45f7!==_0x1c1b26['unitID'])return;const _0x3da597={'id':_0x6bd84b,'type':_0x41ab4d[_0x3a9b48(0x195)],'params':{'unitId':_0x3a45f7,'actions':_0x19c4a2[_0x3a9b48(0x37c)],'textRanges':null}};_0x1c1b26[_0x3a9b48(0x364)](_0x3da597);});if(_0x1c1b26[_0x201c6f(0x38d)](_0x42d237),_0x1c1b26 instanceof _0xf3b1d4){const _0x5bd76b={'onTransformIME':_0x4f2f9f=>this[_0x201c6f(0x1e2)][_0x201c6f(0x240)](_0x4f2f9f),'onTransformState':_0x265a65=>this[_0x201c6f(0x206)][_0x201c6f(0x397)](_0x265a65),'onTransformSelections':_0x2220d3=>this[_0x201c6f(0x1c0)][_0x201c6f(0x246)](_0x2220d3),'onSyncEditingCollabCursor':_0x48ee82=>this[_0x201c6f(0x2be)][_0x201c6f(0x2eb)](_0x48ee82),'onTransformRemoteChangesetByIMECache':_0x557566=>this[_0x201c6f(0x1e2)][_0x201c6f(0x3a2)](_0x557566),'onTransformRemoteChangesetByStateCache':_0x556f79=>this[_0x201c6f(0x206)]['transformRemoteChangeset'](_0x556f79)};_0x1c1b26[_0x201c6f(0x252)](_0x5bd76b);}}));}};Se=En([U(0x0,_0x366c94(_0x2c40ff)),U(0x1,_0x366c94(_0x526316)),U(0x2,_0x366c94(he)),U(0x3,_0x366c94(ue)),U(0x4,_0x366c94(de)),U(0x5,_0x366c94(ze)),U(0x6,_0x19dd60),U(0x7,_0x366c94(_0x19089c))],Se);var Z=(_0x245547=>(_0x245547[_0x245547[_0x529b35(0x186)]=0x0]=_0x529b35(0x186),_0x245547[_0x245547['OK']=0x1]='OK',_0x245547[_0x245547['INTERNAL_ERROR']=0x2]=_0x529b35(0x17f),_0x245547[_0x245547[_0x529b35(0x23c)]=0x3]=_0x529b35(0x23c),_0x245547[_0x245547[_0x529b35(0x22a)]=0x4]=_0x529b35(0x22a),_0x245547[_0x245547[_0x529b35(0x192)]=0x5]=_0x529b35(0x192),_0x245547[_0x245547[_0x529b35(0x38f)]=0x6]=_0x529b35(0x38f),_0x245547[_0x245547['INVALID_ARGUMENT']=0x7]=_0x529b35(0x2c3),_0x245547[_0x245547['TOO_MANY_REQUESTS']=0x8]=_0x529b35(0x1ca),_0x245547[_0x245547[_0x529b35(0x2e1)]=0x9]=_0x529b35(0x2e1),_0x245547[_0x245547[_0x529b35(0x38c)]=0xa]=_0x529b35(0x38c),_0x245547[_0x245547[_0x529b35(0x25f)]=0xb]=_0x529b35(0x25f),_0x245547[_0x245547[_0x529b35(0x380)]=0xc]=_0x529b35(0x380),_0x245547[_0x245547[_0x529b35(0x3b6)]=0xd]=_0x529b35(0x3b6),_0x245547[_0x245547['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x529b35(0x384),_0x245547[_0x245547[_0x529b35(0x3a8)]=0xf]=_0x529b35(0x3a8),_0x245547[_0x245547['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x529b35(0x3a7),_0x245547[_0x245547['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x529b35(0x235),_0x245547[_0x245547[_0x529b35(0x381)]=0x65]='ERROR_AGAIN',_0x245547[_0x245547[_0x529b35(0x35f)]=0xc9]=_0x529b35(0x35f),_0x245547[_0x245547[_0x529b35(0x1dc)]=0xca]='USER_IS_ANONYMOUS',_0x245547[_0x245547[_0x529b35(0x345)]=0x1389]=_0x529b35(0x345),_0x245547[_0x245547['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x529b35(0x2d6),_0x245547[_0x245547[_0x529b35(0x19c)]=0x1772]=_0x529b35(0x19c),_0x245547[_0x245547[_0x529b35(0x270)]=0x1773]=_0x529b35(0x270),_0x245547[_0x245547['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x245547[_0x245547[_0x529b35(0x1e3)]=0x1b5a]=_0x529b35(0x1e3),_0x245547[_0x245547[_0x529b35(0x215)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x245547[_0x245547['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x245547[_0x245547[_0x529b35(0x2e6)]=0x1b5d]=_0x529b35(0x2e6),_0x245547[_0x245547['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x245547[_0x245547[_0x529b35(0x269)]=0x2329]=_0x529b35(0x269),_0x245547[_0x245547['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x529b35(0x388),_0x245547[_0x245547['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x529b35(0x1f7),_0x245547[_0x245547[_0x529b35(0x2a7)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x245547[_0x245547[_0x529b35(0x2d1)]=0x232d]=_0x529b35(0x2d1),_0x245547[_0x245547[_0x529b35(0x2e2)]=0x2711]=_0x529b35(0x2e2),_0x245547[_0x245547[_0x529b35(0x25c)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x245547[_0x245547[_0x529b35(0x2b7)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x245547[_0x245547[_0x529b35(0x30d)]=0x2714]=_0x529b35(0x30d),_0x245547[_0x245547['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x529b35(0x304),_0x245547[_0x245547[_0x529b35(0x1e5)]=0x271b]=_0x529b35(0x1e5),_0x245547[_0x245547[_0x529b35(0x28f)]=0x271c]=_0x529b35(0x28f),_0x245547[_0x245547[_0x529b35(0x226)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x245547[_0x245547['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x245547[_0x245547[_0x529b35(0x2b2)]=0x271f]=_0x529b35(0x2b2),_0x245547[_0x245547[_0x529b35(0x1fd)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x245547[_0x245547[_0x529b35(0x2d4)]=0x2af9]=_0x529b35(0x2d4),_0x245547[_0x245547[_0x529b35(0x24b)]=0x2ee1]=_0x529b35(0x24b),_0x245547[_0x245547[_0x529b35(0x229)]=0x2ee2]=_0x529b35(0x229),_0x245547[_0x245547['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x245547[_0x245547[_0x529b35(0x2ec)]=0x2ee4]=_0x529b35(0x2ec),_0x245547[_0x245547[_0x529b35(0x35d)]=0x2ee5]=_0x529b35(0x35d),_0x245547[_0x245547[_0x529b35(0x291)]=0x32c9]=_0x529b35(0x291),_0x245547[_0x245547[_0x529b35(0x33d)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x245547[_0x245547[_0x529b35(0x26d)]=0x32cb]=_0x529b35(0x26d),_0x245547[_0x245547['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x245547[_0x245547[_0x529b35(0x20b)]=0x36b2]=_0x529b35(0x20b),_0x245547[_0x245547[_0x529b35(0x2fb)]=0x36b3]=_0x529b35(0x2fb),_0x245547[_0x245547['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x245547[_0x245547['ENTITLE_INVALID_COUPON_CODE']=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x245547[_0x245547[_0x529b35(0x2c1)]=0x36b6]=_0x529b35(0x2c1),_0x245547[_0x245547[_0x529b35(0x263)]=0x36b7]=_0x529b35(0x263),_0x245547[_0x245547[_0x529b35(0x1d3)]=0x36b8]='ENTITLE_USE_COUPON_NOT_1ST_TRADE',_0x245547[_0x245547[_0x529b35(0x20f)]=0x3715]=_0x529b35(0x20f),_0x245547[_0x245547[_0x529b35(0x32f)]=0x3716]=_0x529b35(0x32f),_0x245547[_0x245547[_0x529b35(0x2fa)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x245547[_0x245547[_0x529b35(0x379)]=0x37dd]=_0x529b35(0x379),_0x245547[_0x245547[_0x529b35(0x349)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x245547[_0x245547[_0x529b35(0x399)]=0x3a9a]=_0x529b35(0x399),_0x245547[_0x245547['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x529b35(0x335),_0x245547[_0x245547[_0x529b35(0x2b9)]=0x3a9c]=_0x529b35(0x2b9),_0x245547[_0x245547[_0x529b35(0x3ba)]=0x3a9d]=_0x529b35(0x3ba),_0x245547[_0x245547[_0x529b35(0x176)]=0x3a9e]=_0x529b35(0x176),_0x245547[_0x245547['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x529b35(0x1e1),_0x245547[_0x245547[_0x529b35(0x32d)]=0x3e81]=_0x529b35(0x32d),_0x245547[_0x245547[_0x529b35(0x2ee)]=-0x1]=_0x529b35(0x2ee),_0x245547))(Z||{});function vn(_0x2655e5){const _0x50edbf=_0x529b35;var _0x5db904,_0x5ca44a;const _0x78e2fa=(_0x5db904=_0x2655e5[_0x50edbf(0x390)])==null?void 0x0:_0x5db904[_0x50edbf(0x1b5)],_0x9820ef=((_0x5ca44a=_0x2655e5[_0x50edbf(0x390)])==null?void 0x0:_0x5ca44a[_0x50edbf(0x21f)])||0x0;return _0x78e2fa===_0x17441d[_0x50edbf(0x360)]&&_0x9820ef>0x0;}function pn(_0x527fef){const _0x125834=_0x529b35;return _0x527fef[_0x125834(0x2df)]===_0x3c73fb[_0x125834(0x208)];}var On=Object[_0x529b35(0x29a)],Tn=(_0x38f816,_0x53636d,_0x75aee4,_0x40c31b)=>{const _0x2cacfd=_0x529b35;for(var _0x2fad79=_0x40c31b>0x1?void 0x0:_0x40c31b?On(_0x53636d,_0x75aee4):_0x53636d,_0x1d469e=_0x38f816[_0x2cacfd(0x175)]-0x1,_0x1f51d0;_0x1d469e>=0x0;_0x1d469e--)(_0x1f51d0=_0x38f816[_0x1d469e])&&(_0x2fad79=_0x1f51d0(_0x2fad79)||_0x2fad79);return _0x2fad79;},P=(_0x44058c,_0x6c0633)=>(_0x2f57ec,_0x23d805)=>_0x6c0633(_0x2f57ec,_0x23d805,_0x44058c);const Cn=_0x529b35(0x253),Rn=_0x529b35(0x2a1),Dn=_0x529b35(0x1bb);let Ie=class extends _0x90a638{constructor(_0x479375,_0x207d29,_0x3b58b9,_0x184ff5,_0x614325,_0x38046b,_0x1f3392){const _0x288308=_0x529b35;super(),_(this,_0x288308(0x1d1),null),_(this,_0x288308(0x19e),0x0),_(this,_0x288308(0x2c2),0x0),_(this,_0x288308(0x37d),[]),_(this,_0x288308(0x196),0x0),(this[_0x288308(0x2a2)]=_0x479375,this[_0x288308(0x303)]=_0x207d29,this['_configService']=_0x3b58b9,this[_0x288308(0x23d)]=_0x184ff5,this[_0x288308(0x245)]=_0x614325,this[_0x288308(0x1f0)]=_0x38046b,this[_0x288308(0x35c)]=_0x1f3392,this[_0x288308(0x2ca)]());}['_initCommandInterceptor'](){const _0x450eff=_0x529b35;this['disposeWithMe'](this['_commandService'][_0x450eff(0x378)]((_0x379723,_0x4ed9eb)=>{const _0x23614f=_0x450eff;var _0x19527d;if(_0x379723['id']!==_0x52d38b['id'])return;const _0x443530=_0x379723[_0x23614f(0x3b0)];if(!this['_hasFormulaInDirtyRanges']((_0x19527d=_0x443530[_0x23614f(0x20e)])!=null?_0x19527d:[]))return;if(!this[_0x23614f(0x1b9)]())throw this[_0x23614f(0x2bd)](_0x379723,_0x4ed9eb),this['_showGuardMessage'](),new _0x177d82();})),this[_0x450eff(0x38d)](this[_0x450eff(0x303)][_0x450eff(0x31a)]((_0x489a35,_0x144b1d)=>{const _0x48b5a9=_0x450eff;if(_0x489a35['id']!==_0x21aa38['id'])return;const _0x22c94e=_0x489a35[_0x48b5a9(0x3b0)];if(vn(_0x22c94e)){const _0x31c558=_0x52e82e();this[_0x48b5a9(0x37d)][_0x48b5a9(0x2f3)](_0x31c558),this[_0x48b5a9(0x383)](_0x31c558);}else{if(pn(_0x22c94e)&&this[_0x48b5a9(0x37d)]['length']>0x0){const _0x22ff0f=this['_taskIds'][_0x48b5a9(0x27c)]();this['_releaseCalculationLimit'](_0x22ff0f);}}}));}[_0x529b35(0x219)](){const _0x1ecf81=_0x529b35;super[_0x1ecf81(0x219)](),this[_0x1ecf81(0x1c6)](),this[_0x1ecf81(0x37d)]=[],this[_0x1ecf81(0x2c2)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x529b35(0x2bd)](_0x392311,_0x398026){const _0xb5eae=_0x529b35;for(let _0x2416cc=0x0;_0x2416cc<0x1e;_0x2416cc++)try{if(await this[_0xb5eae(0x217)](),this[_0xb5eae(0x1b9)]()){this[_0xb5eae(0x33c)](_0x392311,_0x398026),this['_messageService'][_0xb5eae(0x21a)]({'content':this[_0xb5eae(0x35c)]['t'](_0xb5eae(0x2ab)),'type':_0x412ff9[_0xb5eae(0x1a7)]});return;}await new Promise(_0x558852=>{const _0x5cf3b7=_0xb5eae;this[_0x5cf3b7(0x1d1)]=window['setTimeout'](_0x558852,0x3e8);});}catch(_0x5b77fd){this[_0xb5eae(0x1f0)][_0xb5eae(0x266)](_0x5b77fd);}this['_messageService'][_0xb5eae(0x21a)]({'content':this[_0xb5eae(0x35c)]['t']('formula.calculation.unable'),'type':_0x412ff9[_0xb5eae(0x21e)]});}[_0x529b35(0x33c)](_0xafbadd,_0x2fe449){const _0x500931=_0x529b35;try{this[_0x500931(0x303)]['executeCommand'](_0xafbadd['id'],_0xafbadd[_0x500931(0x3b0)],_0x2fe449);}catch(_0x399540){this['_logService'][_0x500931(0x266)](_0x399540);}}[_0x529b35(0x2f6)](_0x392189,_0x3ca134){const _0x2e89ea=_0x529b35;_0x3ca134<this[_0x2e89ea(0x196)]||(this[_0x2e89ea(0x196)]=_0x3ca134,this['_maxFormulaLimit']=Number[_0x2e89ea(0x39b)](_0x392189[_0x2e89ea(0x33b)]),this[_0x2e89ea(0x2c2)]=Number[_0x2e89ea(0x39b)](_0x392189[_0x2e89ea(0x284)]));}async['_startCalculationLimit'](_0x141e4a){const _0x5cd690=_0x529b35;var _0x1b9367,_0x5469d0;const _0x2d05a5=Date[_0x5cd690(0x310)]();try{const _0x875ab8=((_0x1b9367=this[_0x5cd690(0x25e)]['getConfig'](_0x407fbe))==null?void 0x0:_0x1b9367['startFormulaLimitUrl'])||Rn,_0x91f346=(await this['_httpService'][_0x5cd690(0x2cf)](_0x875ab8,{'body':JSON[_0x5cd690(0x356)]({'taskId':_0x141e4a})}))[_0x5cd690(0x256)];if(((_0x5469d0=_0x91f346['error'])==null?void 0x0:_0x5469d0[_0x5cd690(0x3aa)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x91f346[_0x5cd690(0x27d)],_0x2d05a5);}catch(_0x420b21){this[_0x5cd690(0x1f0)]['error'](_0x420b21);}}async[_0x529b35(0x217)](_0x4e4685){const _0x56aaae=_0x529b35;var _0x37fd48,_0x3adfe8;const _0x281c28=Date[_0x56aaae(0x310)]();try{const _0x4ec441=((_0x37fd48=this[_0x56aaae(0x25e)]['getConfig'](_0x407fbe))==null?void 0x0:_0x37fd48[_0x56aaae(0x198)])||Cn,_0x18bb81=_0x4e4685?_0x4ec441+_0x56aaae(0x1c3)+encodeURIComponent(_0x4e4685):_0x4ec441,_0x1e2a7b=(await this[_0x56aaae(0x23d)]['get'](_0x18bb81))[_0x56aaae(0x256)];if(((_0x3adfe8=_0x1e2a7b[_0x56aaae(0x266)])==null?void 0x0:_0x3adfe8[_0x56aaae(0x3aa)])!==Z['OK'])return;this[_0x56aaae(0x2f6)](_0x1e2a7b[_0x56aaae(0x27d)],_0x281c28);}catch(_0x458c14){this[_0x56aaae(0x1f0)]['error'](_0x458c14);}}async['_releaseCalculationLimit'](_0x22f402){const _0x3d59b0=_0x529b35;var _0x5b15cb,_0x5200e8;const _0x1fe21a=Date[_0x3d59b0(0x310)]();try{const _0x3bf481=((_0x5b15cb=this[_0x3d59b0(0x25e)]['getConfig'](_0x407fbe))==null?void 0x0:_0x5b15cb[_0x3d59b0(0x2a9)])||Dn,_0x20a6ff=(await this[_0x3d59b0(0x23d)][_0x3d59b0(0x2cf)](_0x3bf481,{'body':JSON['stringify']({'taskId':_0x22f402})}))[_0x3d59b0(0x256)];if(((_0x5200e8=_0x20a6ff[_0x3d59b0(0x266)])==null?void 0x0:_0x5200e8[_0x3d59b0(0x3aa)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x20a6ff[_0x3d59b0(0x27d)],_0x1fe21a);}catch(_0x2f39cd){this[_0x3d59b0(0x1f0)][_0x3d59b0(0x266)](_0x2f39cd);}}[_0x529b35(0x1b9)](){const _0x1bce1c=_0x529b35;return this[_0x1bce1c(0x19e)]===0x0?!0x0:this[_0x1bce1c(0x19e)]-this['_currentUsage']>0x0;}[_0x529b35(0x1c6)](){const _0x31fe11=_0x529b35;this[_0x31fe11(0x1d1)]&&(clearTimeout(this[_0x31fe11(0x1d1)]),this[_0x31fe11(0x1d1)]=null);}['_showGuardMessage'](){const _0x263df4=_0x529b35;this[_0x263df4(0x2a2)][_0x263df4(0x21a)]({'content':this['_localeService']['t'](_0x263df4(0x218)),'type':_0x412ff9[_0x263df4(0x2bc)]});}[_0x529b35(0x365)](_0x45fc35){const _0x1212f0=_0x529b35;for(const _0xdb235a of _0x45fc35){const {unitId:_0x853fd1,sheetId:_0x9dcae,range:_0x61927a}=_0xdb235a,_0x3b4975=this['_univerInstanceService'][_0x1212f0(0x28d)](_0x853fd1);if(!_0x3b4975)continue;const _0x56cf4a=_0x3b4975[_0x1212f0(0x1d0)](_0x9dcae);if(!_0x56cf4a)continue;const _0x42a0ea=_0x56cf4a[_0x1212f0(0x3a3)]();for(let _0x420605=_0x61927a['startRow'];_0x420605<=_0x61927a[_0x1212f0(0x1bc)];_0x420605++)for(let _0x24123d=_0x61927a[_0x1212f0(0x34b)];_0x24123d<=_0x61927a[_0x1212f0(0x205)];_0x24123d++){const _0x536047=_0x42a0ea[_0x1212f0(0x2dc)](_0x420605,_0x24123d);if(_0x536047&&(_0x508809(_0x536047['f'])||_0x4ff3fe(_0x536047['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x366c94(_0x19dd60)),P(0x1,_0x18f9ae),P(0x2,_0x59a6d7),P(0x3,_0x366c94(_0x4ba75a)),P(0x4,_0x2ef400),P(0x5,_0x4be52f),P(0x6,_0x366c94(_0x19089c))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x31cb71,_0x117461,_0x442f83,_0x13fb03)=>{const _0x24e021=_0x529b35;for(var _0x5d61c9=_0x13fb03>0x1?void 0x0:_0x13fb03?Nn(_0x117461,_0x442f83):_0x117461,_0x164af0=_0x31cb71[_0x24e021(0x175)]-0x1,_0xd1f01c;_0x164af0>=0x0;_0x164af0--)(_0xd1f01c=_0x31cb71[_0x164af0])&&(_0x5d61c9=_0xd1f01c(_0x5d61c9)||_0x5d61c9);return _0x5d61c9;},Ue=(_0x37f847,_0x24f361)=>(_0x13b091,_0x104792)=>_0x24f361(_0x13b091,_0x104792,_0x37f847);let He=class extends _0x90a638{constructor(_0x57be9f,_0x4d1e4e,_0x3f9b4f){const _0x2c6c04=_0x529b35;super(),_(this,_0x2c6c04(0x2dd),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x2c6c04(0x25a),!0x1),(this['_configService']=_0x57be9f,this[_0x2c6c04(0x1ce)]=_0x4d1e4e,this[_0x2c6c04(0x2c6)]=_0x3f9b4f);}[_0x529b35(0x1ad)](){const _0x32bb19=_0x529b35;this[_0x32bb19(0x25a)]=!0x0;}['enableLocalCache'](){const _0x13631f=_0x529b35;this[_0x13631f(0x25a)]=!0x1;}get[_0x529b35(0x2ae)](){const _0xf363b9=_0x529b35;return this[_0xf363b9(0x312)];}[_0x529b35(0x219)](){const _0x471ad2=_0x529b35;this[_0x471ad2(0x1da)]()[_0x471ad2(0x35a)](()=>super[_0x471ad2(0x219)]());}async[_0x529b35(0x29f)](_0x529102){const _0x3d845e=_0x529b35;return this[_0x3d845e(0x25a)]?null:this[_0x3d845e(0x1ce)][_0x3d845e(0x336)](_0x7c2f78(_0x529102));}async[_0x529b35(0x372)](_0x3cb91a,_0x4884aa){const _0x37b7a2=_0x529b35;return!!this[_0x37b7a2(0x1ce)][_0x37b7a2(0x24a)](_0x3cb91a,_0x4884aa);}[_0x529b35(0x189)](_0x1696bf,_0x2be448,_0x26368f,_0x58eb9a){const _0x4c2d2f=_0x529b35,_0x4836c7=this[_0x4c2d2f(0x2c6)]['getCurrentRevOfUnit'](_0x1696bf);this[_0x4c2d2f(0x2dd)][_0x4c2d2f(0x1aa)](_0x1696bf,{'unitID':_0x1696bf,'type':_0x2be448,'awaitingChangeset':_0x26368f,'mutations':_0x58eb9a,'rev':_0x4836c7}),this[_0x4c2d2f(0x312)][_0x4c2d2f(0x308)](_0x1696bf)||this[_0x4c2d2f(0x251)](_0x1696bf);}[_0x529b35(0x251)](_0xc57b9b){const _0x41f6ec=_0x529b35,_0x3f3c2e=this[_0x41f6ec(0x2cc)]();_0x3f3c2e===0x0?this[_0x41f6ec(0x207)](_0xc57b9b):this[_0x41f6ec(0x312)][_0x41f6ec(0x1aa)](_0xc57b9b,setTimeout(()=>this[_0x41f6ec(0x207)](_0xc57b9b),_0x3f3c2e));}[_0x529b35(0x2cc)](){const _0x38cdb6=_0x529b35;var _0x53a819;return(_0x53a819=this[_0x38cdb6(0x25e)][_0x38cdb6(0x2f5)](_0x10bbd8))!=null?_0x53a819:_0x58f52e;}[_0x529b35(0x207)](_0x5779e2){const _0x3f3af6=_0x529b35,_0x34f889=this[_0x3f3af6(0x312)][_0x3f3af6(0x233)](_0x5779e2);return _0x34f889!==void 0x0&&window[_0x3f3af6(0x282)](_0x34f889),this[_0x3f3af6(0x1ce)][_0x3f3af6(0x24a)](_0x7c2f78(_0x5779e2),this[_0x3f3af6(0x2dd)]['get'](_0x5779e2))[_0x3f3af6(0x35a)](()=>this[_0x3f3af6(0x312)]['delete'](_0x5779e2));}async[_0x529b35(0x1da)](){const _0x3d44c5=_0x529b35,_0x3fd6bd=[];this[_0x3d44c5(0x312)][_0x3d44c5(0x27a)]((_0x22846f,_0x4797de)=>{const _0x497cce=_0x3d44c5;window[_0x497cce(0x282)](_0x22846f),_0x3fd6bd[_0x497cce(0x2f3)](this['_saveCache'](_0x4797de)['then'](()=>{const _0x2040bc=_0x497cce;this[_0x2040bc(0x312)][_0x2040bc(0x228)](_0x4797de);}));}),await Promise['all'](_0x3fd6bd);}};He=bn([Ue(0x0,_0x59a6d7),Ue(0x1,_0x433a9a),Ue(0x2,_0x366c94(_0x19b3d2))],He);class Ln extends _0x595d15{constructor(){const _0x25b6c4=_0x529b35;super(),_(this,'urlChange$'),this['urlChange$']=_0x3fbf2c(window,_0x25b6c4(0x325))[_0x25b6c4(0x398)](_0x3ec471(this['dispose$']),_0x502a1a(0x1),_0x3a8fbf(void 0x0));}[_0x529b35(0x180)](_0x2eb976,_0x1ff420,_0x4a89a9=!0x1){const _0xed357e=_0x529b35,_0x4b8fff=new URL(window['location']['href']);_0x4b8fff[_0xed357e(0x214)]['set'](_0x2eb976,_0x1ff420),_0x4a89a9?window['history'][_0xed357e(0x187)]('','',_0x4b8fff[_0xed357e(0x1af)]()):window[_0xed357e(0x3c6)][_0xed357e(0x1ba)]('','',_0x4b8fff[_0xed357e(0x1af)]());}[_0x529b35(0x19d)](_0xd0a236,_0x16896a=!0x1){const _0x292096=_0x529b35,_0x402cce=new URL(window[_0x292096(0x3c0)][_0x292096(0x2e3)]);_0x402cce['searchParams'][_0x292096(0x228)](_0xd0a236),_0x16896a?window[_0x292096(0x3c6)]['replaceState']('','',_0x402cce['toString']()):window[_0x292096(0x3c6)][_0x292096(0x1ba)]('','',_0x402cce['toString']());}[_0x529b35(0x298)](_0x40c6a0){const _0x5f129b=_0x529b35;var _0x53823c;return(_0x53823c=new URL(window['location'][_0x5f129b(0x2e3)])[_0x5f129b(0x214)][_0x5f129b(0x233)](_0x40c6a0))!=null?_0x53823c:void 0x0;}}var Un=Object[_0x529b35(0x353)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x11ed1f,_0x1e99d0,_0x40a88f)=>_0x1e99d0 in _0x11ed1f?Un(_0x11ed1f,_0x1e99d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40a88f}):_0x11ed1f[_0x1e99d0]=_0x40a88f,Pn=(_0x22f6da,_0x35ab40,_0x278531,_0x419f80)=>{const _0x1b96d4=_0x529b35;for(var _0x3265cb=_0x419f80>0x1?void 0x0:_0x419f80?Mn(_0x35ab40,_0x278531):_0x35ab40,_0x309d5b=_0x22f6da[_0x1b96d4(0x175)]-0x1,_0x256691;_0x309d5b>=0x0;_0x309d5b--)(_0x256691=_0x22f6da[_0x309d5b])&&(_0x3265cb=_0x256691(_0x3265cb)||_0x3265cb);return _0x3265cb;},Me=(_0x194ac9,_0x1443cb)=>(_0x347184,_0x1fbb96)=>_0x1443cb(_0x347184,_0x1fbb96,_0x194ac9),wn=(_0x2331b5,_0x1ce894,_0x51fa74)=>An(_0x2331b5,_0x1ce894+'',_0x51fa74);const yn=_0x529b35(0x239);let Ye=class extends _0x3800d4{constructor(_0x32eed1=_t,_0x5a605c,_0x3da5a6,_0x10f594){const _0x5e0aa4=_0x529b35;super(),this[_0x5e0aa4(0x1cd)]=_0x32eed1,this[_0x5e0aa4(0x2ff)]=_0x5a605c,this['_injector']=_0x3da5a6,this[_0x5e0aa4(0x25e)]=_0x10f594;const {..._0x3f32c2}=_0x56986c({},_t,this[_0x5e0aa4(0x1cd)]);this['_configService'][_0x5e0aa4(0x1ec)](hn,_0x3f32c2);}[_0x529b35(0x260)](){const _0x408599=_0x529b35;this[_0x408599(0x299)](),this[_0x408599(0x28a)]();}[_0x529b35(0x2e7)](){const _0x1ccdac=_0x529b35;this[_0x1ccdac(0x22d)]();}[_0x529b35(0x299)](){const _0x1e7220=_0x529b35;var _0x5e4d7e;const _0x1860cd=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x136433,{'useClass':_0x4afaad}],[_0x4c8618,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x1e7220(0x1cd)][_0x1e7220(0x199)]&&_0x1860cd[_0x1e7220(0x2f3)]([le]),_0x518906(this['_injector'],_0x3a9a0b(_0x1860cd,(_0x5e4d7e=this[_0x1e7220(0x1cd)])==null?void 0x0:_0x5e4d7e[_0x1e7220(0x23f)]));}[_0x529b35(0x22d)](){const _0x395b80=_0x529b35;this[_0x395b80(0x38d)](this[_0x395b80(0x2ff)][_0x395b80(0x2e5)](_0x457a5d[_0x395b80(0x1b1)],[Fe])),this[_0x395b80(0x38d)](this[_0x395b80(0x2ff)]['registerRenderModule'](_0x457a5d[_0x395b80(0x351)],[ke]));}[_0x529b35(0x28a)](){const _0x2e94da=_0x529b35;_0x11c487(this[_0x2e94da(0x342)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config']['enableFrontendLog']&&_0x11c487(this['_injector'],[[le]]);}};wn(Ye,_0x529b35(0x3c5),yn),Ye=Pn([_0x223796(_0x29d2b8),Me(0x1,_0x353e17),Me(0x2,_0x366c94(_0x348990)),Me(0x3,_0x59a6d7)],Ye);var $n=Object[_0x529b35(0x29a)],xn=(_0x484a4e,_0x36a92f,_0x1dc870,_0x327c7e)=>{const _0x671e63=_0x529b35;for(var _0x102d5e=_0x327c7e>0x1?void 0x0:_0x327c7e?$n(_0x36a92f,_0x1dc870):_0x36a92f,_0x4a27b2=_0x484a4e[_0x671e63(0x175)]-0x1,_0x434f75;_0x4a27b2>=0x0;_0x4a27b2--)(_0x434f75=_0x484a4e[_0x4a27b2])&&(_0x102d5e=_0x434f75(_0x102d5e)||_0x102d5e);return _0x102d5e;},J=(_0x2de78d,_0x588de3)=>(_0x1c5cee,_0xfa414a)=>_0x588de3(_0x1c5cee,_0xfa414a,_0x2de78d);let ut=class extends _0x109be7{constructor(_0x50366a,_0x26955f,_0x273527,_0x1cdef9,_0x592448){super(_0x50366a,_0x26955f,_0x273527,_0x1cdef9,_0x592448);}async[_0x529b35(0x1ff)](_0x28cecc){const _0x32cb0d=_0x529b35,_0x395721=await this[_0x32cb0d(0x366)](),_0xfa8fbc=this[_0x32cb0d(0x1f4)](_0x28cecc,_0x395721);return this[_0x32cb0d(0x1b2)](_0xfa8fbc);}[_0x529b35(0x1f4)](_0x28253a,_0x3a9a15){const _0x210563=_0x529b35,_0x1fab1d=typeof window>'u'?new URL(_0x28253a):new URL(_0x28253a,window['location']['origin']);_0x1fab1d[_0x210563(0x214)][_0x210563(0x1aa)](_0x210563(0x171),_0x3a9a15);const _0x428347=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x210563(0x3c0)]['search']);return _0x428347[_0x210563(0x233)](_0x210563(0x1c2))&&_0x1fab1d['searchParams'][_0x210563(0x1aa)](_0x210563(0x1c2),_0x428347['get']('runId')),_0x1fab1d[_0x210563(0x1af)]();}async[_0x529b35(0x366)](){const _0x366f55=_0x529b35;var _0x2c7d49,_0x592b25,_0x1f11eb;const _0x26345b=this[_0x366f55(0x25e)][_0x366f55(0x2f5)](_0x407fbe),_0x1be896=(_0x2c7d49=_0x26345b==null?void 0x0:_0x26345b[_0x366f55(0x2ad)])!=null?_0x2c7d49:_0x371b13;return(_0x1f11eb=(_0x592b25=(await this[_0x366f55(0x23d)][_0x366f55(0x233)](_0x1be896,{'headers':{'Content-Type':'application/json'}}))[_0x366f55(0x256)])==null?void 0x0:_0x592b25[_0x366f55(0x2da)])!=null?_0x1f11eb:'';}};ut=xn([J(0x0,_0x366c94(_0x348990)),J(0x1,_0x366c94(_0x4ba75a)),J(0x2,_0x59a6d7),J(0x3,_0x4be52f),J(0x4,_0x563dfd)],ut);var Bn=Object[_0x529b35(0x29a)],Fn=(_0x3b4c19,_0x45d901,_0x19aacf,_0x51400d)=>{for(var _0x2d5ea6=_0x51400d>0x1?void 0x0:_0x51400d?Bn(_0x45d901,_0x19aacf):_0x45d901,_0x48a534=_0x3b4c19['length']-0x1,_0x4051bc;_0x48a534>=0x0;_0x48a534--)(_0x4051bc=_0x3b4c19[_0x48a534])&&(_0x2d5ea6=_0x4051bc(_0x2d5ea6)||_0x2d5ea6);return _0x2d5ea6;},Ae=(_0x582e01,_0x1cdfb1)=>(_0x1a1e83,_0x28654b)=>_0x1cdfb1(_0x1a1e83,_0x28654b,_0x582e01);let dt=class extends _0x90a638{constructor(_0x43b704,_0x2e89d6,_0x3f970d){const _0x5d15e0=_0x529b35;super(),this[_0x5d15e0(0x38a)]=_0x43b704,this[_0x5d15e0(0x23d)]=_0x2e89d6,this['_configService']=_0x3f970d;}async[_0x529b35(0x278)](_0x1d7a60,_0x46ccb4,_0x510ab4,..._0x2c9e00){const _0x4d75d1=_0x529b35;var _0x203cf2,_0x3fd37d,_0x4afefe,_0x3003c0;const _0x4e33b1=this['_instanceService']['getFocusedUnit']();if(!_0x4e33b1)throw new Error(_0x4d75d1(0x2aa));const _0x1427cc=((_0x203cf2=this[_0x4d75d1(0x25e)]['getConfig'](_0x468500))!=null?_0x203cf2:_0x5bbe2f)+'/'+_0x1d7a60+_0x4d75d1(0x395)+_0x46ccb4,_0x40bb72=new URL(window['location'][_0x4d75d1(0x2e3)]),_0x43065f={'scriptId':_0x1d7a60,'runId':(_0x3fd37d=_0x40bb72[_0x4d75d1(0x214)][_0x4d75d1(0x233)](_0x4d75d1(0x1c2)))!=null?_0x3fd37d:'','function':_0x46ccb4,'unitId':_0x4e33b1[_0x4d75d1(0x279)](),'argsOfFunction':JSON[_0x4d75d1(0x356)](_0x2c9e00),'invokeId':(_0x4afefe=_0x510ab4['invokeId'])!=null?_0x4afefe:'','executionId':(_0x3003c0=_0x510ab4['executionId'])!=null?_0x3003c0:''};try{const _0x1af062=await this[_0x4d75d1(0x23d)][_0x4d75d1(0x2cf)](_0x1427cc,{'body':_0x43065f});return _0x1af062[_0x4d75d1(0x256)]['error']&&_0x1af062[_0x4d75d1(0x256)][_0x4d75d1(0x266)][_0x4d75d1(0x3aa)]!==Z['OK']?_0x4d75d1(0x3c7):_0x1af062[_0x4d75d1(0x256)]['result'];}catch{return _0x4d75d1(0x3c7);}}};dt=Fn([Ae(0x0,_0x2ef400),Ae(0x1,_0x366c94(_0x4ba75a)),Ae(0x2,_0x59a6d7)],dt);const St=0x7530,It=_0x529b35(0x271);class rr extends _0x90a638{constructor(){const _0x184383=_0x529b35;super(),_(this,_0x184383(0x1ab),_0x52e82e()),_(this,_0x184383(0x1d8),new Set()),_(this,_0x184383(0x2ba),new Map()),_(this,_0x184383(0x317),null),_(this,_0x184383(0x17e),new Map()),_(this,_0x184383(0x32b),new Map()),this['_init']();}[_0x529b35(0x219)](){const _0x2e1913=_0x529b35;super[_0x2e1913(0x219)](),this[_0x2e1913(0x17e)][_0x2e1913(0x27a)]((_0x27cf64,_0x424607)=>this[_0x2e1913(0x1db)](_0x424607)),this[_0x2e1913(0x317)]&&window['clearInterval'](this[_0x2e1913(0x317)]);}[_0x529b35(0x1c8)](_0x4b7e52){const _0x404861=_0x529b35;return this[_0x404861(0x1c7)](_0x4b7e52)['pipe'](_0x3fde07());}[_0x529b35(0x2d0)](_0x57e23c){const _0x11bd6b=_0x529b35;this[_0x11bd6b(0x1d8)][_0x11bd6b(0x286)]===0x0&&this[_0x11bd6b(0x17b)](),this[_0x11bd6b(0x1d8)][_0x11bd6b(0x352)](_0x57e23c),this['_send']({'type':0x0,'memberID':this[_0x11bd6b(0x1ab)],'unitIDs':[_0x57e23c],'isForwarded':!0x1});}[_0x529b35(0x172)](_0x18c9dc){const _0x4c25b2=_0x529b35;this[_0x4c25b2(0x1d8)]['delete'](_0x18c9dc),this[_0x4c25b2(0x1d8)]['size']===0x0&&this[_0x4c25b2(0x317)]&&window[_0x4c25b2(0x39c)](this['_heartbeatTimer']);}[_0x529b35(0x1e0)](){const _0x3d942e=_0x529b35;this['disposeWithMe'](_0x5b2023(_0x3fbf2c(window,'storage')[_0x3d942e(0x297)](_0x31186d=>{const _0xe9809a=_0x3d942e;if(_0x31186d[_0xe9809a(0x292)]!==It||!_0x31186d[_0xe9809a(0x362)])return;const _0x15222d=JSON[_0xe9809a(0x224)](_0x31186d[_0xe9809a(0x362)]);this[_0xe9809a(0x38e)](_0x15222d);}))),window['addEventListener']('unload',()=>this[_0x3d942e(0x178)]({'type':0x1,'memberID':this[_0x3d942e(0x1ab)],'unitIDs':Array[_0x3d942e(0x2e0)](this[_0x3d942e(0x1d8)])}));}[_0x529b35(0x38e)](_0x3abf66){const _0x369c9e=_0x529b35;switch(_0x3abf66[_0x369c9e(0x346)]){case 0x0:this['_handleJoinEvent'](_0x3abf66);break;case 0x1:this['_handleLeaveEvent'](_0x3abf66);break;case 0x2:this[_0x369c9e(0x23b)](_0x3abf66);break;}}[_0x529b35(0x3c9)](_0x5d87aa){const _0x1754e9=_0x529b35,{unitIDs:_0x1ef12e,memberID:_0x3899be,isForwarded:_0x5e4bfd}=_0x5d87aa;_0x1ef12e[_0x1754e9(0x27a)](_0x194920=>{const _0x518a79=_0x1754e9;if(!_0x5e4bfd&&this[_0x518a79(0x2ba)][_0x518a79(0x308)](_0x194920)&&this[_0x518a79(0x1c7)](_0x194920)[_0x518a79(0x2f2)](_0x5782e7['OTHER_CLIENTS_EDITING']),!this['_unitOnClients']['has'](_0x194920)||!this[_0x518a79(0x2ba)][_0x518a79(0x233)](_0x194920)[_0x518a79(0x308)](_0x3899be)){const _0x18f72c=this[_0x518a79(0x2ba)][_0x518a79(0x233)](_0x194920)||new Set();_0x18f72c[_0x518a79(0x352)](_0x3899be),this['_unitOnClients'][_0x518a79(0x1aa)](_0x194920,_0x18f72c),this[_0x518a79(0x24c)](_0x3899be);}}),_0x5e4bfd||this[_0x1754e9(0x178)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1754e9(0x1d8)]],'isForwarded':!0x0});}[_0x529b35(0x24c)](_0x1f7f92){const _0x4f416e=_0x529b35;this['_removeClearOtherTimer'](_0x1f7f92);const _0x2cf05b=window[_0x4f416e(0x3c3)](()=>{const _0xefb04a=_0x4f416e;this[_0xefb04a(0x2ba)]['forEach'](_0xf778b1=>{const _0x972e0b=_0xefb04a;_0xf778b1[_0x972e0b(0x228)](_0x1f7f92);});},St*0x2);this[_0x4f416e(0x17e)]['set'](_0x1f7f92,_0x2cf05b);}[_0x529b35(0x1db)](_0x4602b8){const _0x341b5c=_0x529b35;if(this[_0x341b5c(0x17e)][_0x341b5c(0x308)](_0x4602b8)){const _0x52bbd6=this['_clearOtherTimers'][_0x341b5c(0x233)](_0x4602b8);_0x52bbd6&&window[_0x341b5c(0x282)](_0x52bbd6),this['_clearOtherTimers'][_0x341b5c(0x1aa)](_0x4602b8,null);}}[_0x529b35(0x3a1)](_0x25a31d){const _0x20f594=_0x529b35,{memberID:_0x22629a,unitIDs:_0x26041a}=_0x25a31d;_0x26041a[_0x20f594(0x27a)](_0x5f6e39=>{const _0x468a33=_0x20f594;var _0x2986d6;const _0x13f4df=this[_0x468a33(0x2ba)][_0x468a33(0x233)](_0x5f6e39);_0x13f4df&&(_0x13f4df[_0x468a33(0x228)](_0x22629a),(_0x2986d6=this['_ensureSubject'](_0x5f6e39))==null||_0x2986d6[_0x468a33(0x2f2)](_0x13f4df[_0x468a33(0x286)]===0x0?_0x5782e7[_0x468a33(0x3b1)]:_0x5782e7[_0x468a33(0x2d3)]));}),this[_0x20f594(0x1db)](_0x22629a);}[_0x529b35(0x23b)](_0x2dce2a){const _0x8fbaf4=_0x529b35;this['_scheduleClearOtherTimer'](_0x2dce2a[_0x8fbaf4(0x181)]);}['_send'](_0xe904c9){const _0x258afb=_0x529b35;localStorage[_0x258afb(0x24a)](It,JSON[_0x258afb(0x356)](_0xe904c9));}['_scheduleHeartbeat'](){const _0x620784=_0x529b35;this[_0x620784(0x317)]=window[_0x620784(0x1ac)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},St);}[_0x529b35(0x1c7)](_0x501bf6){const _0x784ea3=_0x529b35;return this['_unitStatus']['has'](_0x501bf6)||this[_0x784ea3(0x32b)][_0x784ea3(0x1aa)](_0x501bf6,new _0xf6a4f9(_0x5782e7[_0x784ea3(0x3b1)])),this[_0x784ea3(0x32b)][_0x784ea3(0x233)](_0x501bf6);}}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};