@univerjs-pro/collaboration-client-ui 0.12.2-experimental.20251202-45172c6 → 0.12.2-experimental.20251202-7f1a98f

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 _0x267084=_0x1936;(function(_0x4c33f2,_0x3c5448){const _0x4a54e5=_0x1936,_0x2a7533=_0x4c33f2();while(!![]){try{const _0x699d11=parseInt(_0x4a54e5(0xf8))/0x1+-parseInt(_0x4a54e5(0x19f))/0x2*(-parseInt(_0x4a54e5(0x19d))/0x3)+-parseInt(_0x4a54e5(0x195))/0x4*(-parseInt(_0x4a54e5(0x20f))/0x5)+parseInt(_0x4a54e5(0x2a1))/0x6*(-parseInt(_0x4a54e5(0x266))/0x7)+-parseInt(_0x4a54e5(0x126))/0x8+parseInt(_0x4a54e5(0xbc))/0x9*(parseInt(_0x4a54e5(0x79))/0xa)+-parseInt(_0x4a54e5(0xb0))/0xb;if(_0x699d11===_0x3c5448)break;else _0x2a7533['push'](_0x2a7533['shift']());}catch(_0x3299bc){_0x2a7533['push'](_0x2a7533['shift']());}}}(_0x3029,0x430d2));var Yt=Object[_0x267084(0x28e)],Wt=(_0x3463fc,_0x27ac20,_0x4fd150)=>_0x27ac20 in _0x3463fc?Yt(_0x3463fc,_0x27ac20,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fd150}):_0x3463fc[_0x27ac20]=_0x4fd150,_=(_0x4e7798,_0x4fd5ce,_0x1e30d7)=>Wt(_0x4e7798,typeof _0x4fd5ce!=_0x267084(0x27c)?_0x4fd5ce+'':_0x4fd5ce,_0x1e30d7);import{jsx as _0x3c1405,jsxs as _0x2c67c9}from'react/jsx-runtime';import{CollaborationStatus as _0x393e49,CollaborationSessionService as _0x30d8be,CollaborationController as _0x20f9ac,DataLoaderService as _0x21f2b2,MemberService as _0x277671,SessionStatus as _0x2f3a8a,ILocalCacheService as _0x1d4097,CollaborationUIEventService as _0x463587,CollaborationUIEventId as _0x13accd,DocCollaborationEntity as _0xbad4e5,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x58fdc2,getLocalCacheKey as _0x3df3e5,LOCAL_CACHE_INTERVAL as _0x3119b9,LOCAL_CACHE_INTERVAL_KEY as _0x5a7b94,UniverCollaborationClientPlugin as _0x32160c,CollaborationSocketService as _0x120512,DEFAULT_WS_SESSION_TICKET_URL as _0x366c2b,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x4ce834,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x20cc7b,UnitStatus as _0x2d4d54}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x392a0b,IUniverInstanceService as _0x121c1a,Inject as _0x19d3ff,Injector as _0x4ab7f8,Disposable as _0x15b4c2,createIdentifier as _0xd018ef,ILogService as _0x35d33d,ICommandService as _0x1da808,Optional as _0x4cc534,RxDisposable as _0x2699b6,Workbook as _0x28d654,DOC_RANGE_TYPE as _0x324e87,debounce as _0x1dbae4,Rectangle as _0x24337c,DisposableCollection as _0x5466e2,toDisposable as _0x490c7d,UniverInstanceType as _0x24166e,generateRandomId as _0x3add1d,COLORS as _0x3d6b49,ColorKit as _0x51eb2d,ThemeService as _0x51cb02,fromEventSubject as _0x690a46,Tools as _0x23f5dc,CommandType as _0x3a3187,IConfigService as _0x5d7afb,CanceledError as _0x53987c,isFormulaString as _0x39dc69,isFormulaId as _0x3789a8,ILocalStorageService as _0x5e6485,DependentOn as _0x508d08,Plugin as _0x75b443,merge as _0x4bef96,registerDependencies as _0x52fbf5,mergeOverrideWithDependencies as _0x1b8195,touchDependencies as _0x1253a5}from'@univerjs/core';import{useObservable as _0x4194bc,useDependency as _0x5d77ed,IUIPartsService as _0x4fa1c4,BuiltInUIPart as _0x4d93d1,connectInjector as _0x4a2cb2,IBeforeCloseService as _0x53993a,IMessageService as _0x238f17,INotificationService as _0x2018e3}from'@univerjs/ui';import{BehaviorSubject as _0x1c42a0,switchMap as _0x481021,of as _0x243860,takeUntil as _0xae10c0,debounceTime as _0x1f60ae,Subject as _0x47c8c8,filter as _0x54fc49,merge as _0xe0d349,combineLatest as _0x5901e,fromEvent as _0x46507c,shareReplay as _0x546268,mapTo as _0x2ff921,distinctUntilChanged as _0x366b6a}from'rxjs';import{Tooltip as _0x3bf2de,clsx as _0xc7cc86,MessageType as _0x3d9040}from'@univerjs/design';import{useRef as _0xee1e17,createElement as _0x6f96fd,forwardRef as _0x487948,useCallback as _0x124f12}from'react';import{IRemoteInstanceService as _0x236c30}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3a9ae4,RefRangeService as _0x550286,SetSelectionsOperation as _0x471d36,SheetsSelectionsService as _0x308ea6,EffectRefRangId as _0x4f3975,handleIRemoveRow as _0x440e43,handleIRemoveCol as _0x2189b3,handleMoveRange as _0x4ff5db,handleInsertRow as _0x599989,handleInsertRangeMoveRight as _0x4156ba,handleInsertRangeMoveDown as _0x4c1240,handleInsertCol as _0x123e0e,handleDeleteRangeMoveUp as _0x471afe,handleDeleteRangeMoveLeft as _0x1876c5,runRefRangeMutations as _0x485055}from'@univerjs/sheets';import{Shape as _0x48592f,Rect as _0x3692f4,getColor as _0x16f499,RegularPolygon as _0x328f70,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x390bb6,Vector2 as _0x2f462d,SHEET_VIEWPORT_KEY as _0x37de76,IRenderManagerService as _0x16532d}from'@univerjs/engine-render';import{HTTPService as _0x3d2675,ISocketService as _0x516427,WebSocketService as _0x29fc86}from'@univerjs/network';import{IDocClipboardService as _0x22e109,NodePositionConvertToCursor as _0x49e5c6,NodePositionConvertToRectRange as _0x307f3d,TEXT_RANGE_LAYER_INDEX as _0x314e8b,SetDocZoomRatioOperation as _0x2d6594,DocIMEInputManagerService as _0x4f8e82,DocStateChangeManagerService as _0x52621e}from'@univerjs/docs-ui';import{IImageIoService as _0x5e00b7}from'@univerjs/drawing';import{ITransformService as _0xe0c62a,CollaborationEvent as _0x11a4ac,isTransformMutationFailure as _0x3d1fb0,isTransformMutationsWithChangesetSuccess as _0x10901e,RevisionService as _0x1e9c45,ISnapshotServerService as _0x5e2acb}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4e5c0b,RichTextEditingMutation as _0xd50203,DocSelectionManagerService as _0x22e39b,DocSkeletonManagerService as _0x437e0f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3813d3,serializeRangeWithSheet as _0x104646,FormulaExecuteStageType as _0x5d4131,FormulaExecutedStateType as _0x1d84bd,SetFormulaCalculationStartMutation as _0xce794f,SetFormulaCalculationNotificationMutation as _0x15b422}from'@univerjs/engine-formula';import{map as _0x53e19c,filter as _0x42660b,throttleTime as _0x1e846c,takeUntil as _0xf7d2a1,switchMap as _0x4c118e}from'rxjs/operators';import{SheetSkeletonManagerService as _0x42940b,getCoordByCell as _0x6cc202,getSheetObject as _0x1c44a6}from'@univerjs/sheets-ui';function Ge({ref:_0x1601aa,..._0x20948f}){const _0x2e62a8=_0x267084,{icon:_0x21b1b7,id:_0xe65bcf,className:_0x2569e8,extend:_0x2d5dc7,..._0x515962}=_0x20948f,_0x48f63f=('univerjs-icon\x20univerjs-icon-'+_0xe65bcf+'\x20'+(_0x2569e8||''))[_0x2e62a8(0x24d)](),_0x20853d=_0xee1e17('_'+Ei());return At(_0x21b1b7,''+_0xe65bcf,{'defIds':_0x21b1b7['defIds'],'idSuffix':_0x20853d['current']},{'ref':_0x1601aa,'className':_0x48f63f,..._0x515962},_0x2d5dc7);}function At(_0x597d6a,_0x137edd,_0x4ed2f8,_0x2d593a,_0xfa652b){const _0x3c0b33=_0x267084;return _0x6f96fd(_0x597d6a[_0x3c0b33(0x122)],{'key':_0x137edd,...gi(_0x597d6a,_0x4ed2f8,_0xfa652b),..._0x2d593a},(vi(_0x597d6a,_0x4ed2f8)['children']||[])[_0x3c0b33(0x21b)]((_0x3033de,_0x1f0e98)=>At(_0x3033de,_0x137edd+'-'+_0x597d6a[_0x3c0b33(0x122)]+'-'+_0x1f0e98,_0x4ed2f8,void 0x0,_0xfa652b)));}function gi(_0x2bfb83,_0x51d7e8,_0x436791){const _0x146b71=_0x267084,_0x4da206={..._0x2bfb83[_0x146b71(0x1ba)]};_0x436791!=null&&_0x436791['colorChannel1']&&_0x4da206[_0x146b71(0x1f8)]===_0x146b71(0x121)&&(_0x4da206[_0x146b71(0x1f8)]=_0x436791[_0x146b71(0x121)]),_0x2bfb83[_0x146b71(0x122)]==='mask'&&_0x4da206['id']&&(_0x4da206['id']=_0x4da206['id']+_0x51d7e8['idSuffix']),Object[_0x146b71(0x16e)](_0x4da206)[_0x146b71(0x236)](([_0x5b4f9a,_0x143967])=>{const _0x18a095=_0x146b71;_0x5b4f9a===_0x18a095(0x244)&&typeof _0x143967=='string'&&(_0x4da206[_0x5b4f9a]=_0x143967[_0x18a095(0x1b9)](/url\(#(.*)\)/,_0x18a095(0x119)+_0x51d7e8[_0x18a095(0x28d)]+')'));});const {defIds:_0x58d5bc}=_0x51d7e8;return!_0x58d5bc||_0x58d5bc[_0x146b71(0xb1)]===0x0||(_0x2bfb83[_0x146b71(0x122)]===_0x146b71(0x2ad)&&_0x4da206[_0x146b71(0x124)]&&(_0x4da206[_0x146b71(0x124)]=_0x4da206[_0x146b71(0x124)]+_0x51d7e8[_0x146b71(0x28d)]),Object[_0x146b71(0x16e)](_0x4da206)[_0x146b71(0x236)](([_0x28287d,_0x549239])=>{const _0x57eab5=_0x146b71;typeof _0x549239==_0x57eab5(0x1fc)&&(_0x4da206[_0x28287d]=_0x549239[_0x57eab5(0x1b9)](/url\(#(.*)\)/,_0x57eab5(0x119)+_0x51d7e8[_0x57eab5(0x28d)]+')'));})),_0x4da206;}function vi(_0x1cbc50,_0x4f03a2){const _0x4cc346=_0x267084;var _0x5c3b0d;const {defIds:_0x33c4f6}=_0x4f03a2;return!_0x33c4f6||_0x33c4f6[_0x4cc346(0xb1)]===0x0?_0x1cbc50:_0x1cbc50[_0x4cc346(0x122)]===_0x4cc346(0x297)&&((_0x5c3b0d=_0x1cbc50['children'])!=null&&_0x5c3b0d[_0x4cc346(0xb1)])?{..._0x1cbc50,'children':_0x1cbc50[_0x4cc346(0x1d3)]['map'](_0x189f59=>typeof _0x189f59[_0x4cc346(0x1ba)]['id']==_0x4cc346(0x1fc)&&_0x33c4f6&&_0x33c4f6[_0x4cc346(0x1f0)](_0x189f59[_0x4cc346(0x1ba)]['id'])?{..._0x189f59,'attrs':{..._0x189f59[_0x4cc346(0x1ba)],'id':_0x189f59['attrs']['id']+_0x4f03a2['idSuffix']}}:_0x189f59)}:_0x1cbc50;}function Ei(){const _0x16c2e8=_0x267084;return Math['random']()['toString'](0x24)[_0x16c2e8(0x13e)](0x2,0x8);}Ge[_0x267084(0x17c)]=_0x267084(0x282);const pi={'tag':_0x267084(0xe7),'attrs':{'xmlns':_0x267084(0x203),'fill':_0x267084(0x254),'viewBox':_0x267084(0x204),'width':_0x267084(0x292),'height':_0x267084(0x292)},'children':[{'tag':'g','attrs':{'clipPath':_0x267084(0x229)},'children':[{'tag':_0x267084(0xce),'attrs':{'stroke':_0x267084(0x205),'d':_0x267084(0x1dc),'strokeLinecap':_0x267084(0x14e),'strokeLinejoin':_0x267084(0x14e),'strokeWidth':1.2}}]},{'tag':_0x267084(0x297),'attrs':{},'children':[{'tag':_0x267084(0x12a),'attrs':{'id':_0x267084(0x29e)},'children':[{'tag':_0x267084(0xce),'attrs':{'fill':'white','d':_0x267084(0x136)}}]}]}],'defIds':[_0x267084(0x29e)]},Pt=_0x487948(function(_0x151518,_0x46be1f){const _0x394e34=_0x267084;return _0x6f96fd(Ge,Object[_0x394e34(0x173)]({},_0x151518,{'id':_0x394e34(0x1d0),'ref':_0x46be1f,'icon':pi}));});Pt[_0x267084(0x17c)]=_0x267084(0x1e2);const Oi={'tag':_0x267084(0xe7),'attrs':{'xmlns':_0x267084(0x203),'fill':_0x267084(0x254),'viewBox':_0x267084(0xdd),'width':'1em','height':_0x267084(0x292)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x267084(0xce),'attrs':{'stroke':_0x267084(0x205),'d':_0x267084(0xe2),'strokeLinecap':_0x267084(0x14e),'strokeLinejoin':_0x267084(0x14e),'strokeWidth':1.2}}]},{'tag':_0x267084(0x297),'attrs':{},'children':[{'tag':_0x267084(0x12a),'attrs':{'id':_0x267084(0x1b1)},'children':[{'tag':'path','attrs':{'fill':_0x267084(0x1a9),'d':_0x267084(0x136),'transform':_0x267084(0x114)}}]}]}],'defIds':[_0x267084(0x1b1)]},wt=_0x487948(function(_0x759f9d,_0x470d66){const _0x5c6264=_0x267084;return _0x6f96fd(Ge,Object[_0x5c6264(0x173)]({},_0x759f9d,{'id':_0x5c6264(0x10b),'ref':_0x470d66,'icon':Oi}));});wt['displayName']=_0x267084(0x1ad);function Ti(_0x1bd8ba){const _0x1879af=_0x267084;switch(_0x1bd8ba){case _0x393e49[_0x1879af(0x222)]:return _0x1879af(0x12f);case _0x393e49[_0x1879af(0xb6)]:return'collabStatus.conflict';case _0x393e49[_0x1879af(0x8a)]:return'collabStatus.fetchMiss';case _0x393e49[_0x1879af(0x29d)]:return _0x1879af(0x1de);case _0x393e49[_0x1879af(0x193)]:case _0x393e49['AWAITING_WITH_PENDING']:return _0x1879af(0xfc);case _0x393e49[_0x1879af(0xae)]:case _0x393e49[_0x1879af(0xa0)]:return _0x1879af(0xcc);}}function Ci(_0x1cf81a){const _0xe594f0=_0x267084,{status$:_0x292764}=_0x1cf81a,_0x26f4f6=_0x4194bc(_0x292764,_0x393e49[_0xe594f0(0x29d)]),_0x2fce5c=_0x5d77ed(_0x392a0b),_0x5eedd9=_0x5d77ed(_0x30d8be),_0x1b9cb8=_0x26f4f6!==_0x393e49[_0xe594f0(0x222)],_0x4d1238=_0x2fce5c['t'](Ti(_0x26f4f6)),_0x311656=_0x1b9cb8?_0x3c1405(wt,{}):_0x3c1405(Pt,{}),_0x12a15a=_0x124f12(()=>{const _0x4a4349=_0xe594f0;_0x1b9cb8||_0x5eedd9[_0x4a4349(0xfe)]();},[_0x1b9cb8,_0x5eedd9]);function _0x574cc6(){const _0x304cd2=_0xe594f0;return _0x2c67c9(_0x304cd2(0x170),{'className':_0x304cd2(0x25c),'onClick':_0x12a15a,'children':[_0x3c1405(_0x304cd2(0x170),{'className':_0xc7cc86(_0x304cd2(0x283),{'univer-text-green-500':_0x1b9cb8,'univer-text-red-500':!_0x1b9cb8}),'children':_0x311656}),_0x3c1405('div',{'className':_0x304cd2(0x225),'children':_0x4d1238})]});}return _0x1b9cb8?_0x574cc6():_0x3c1405(_0x3bf2de,{'title':_0x2fce5c['t'](_0xe594f0(0xc8)),'children':_0x574cc6()});}var Ri=Object[_0x267084(0x141)],Di=(_0x15b3c7,_0x499f09,_0x12715c,_0x4bb3f7)=>{for(var _0x27645e=_0x4bb3f7>0x1?void 0x0:_0x4bb3f7?Ri(_0x499f09,_0x12715c):_0x499f09,_0x3b288a=_0x15b3c7['length']-0x1,_0x175b91;_0x3b288a>=0x0;_0x3b288a--)(_0x175b91=_0x15b3c7[_0x3b288a])&&(_0x27645e=_0x175b91(_0x27645e)||_0x27645e);return _0x27645e;},se=(_0xbbfe73,_0x38572b)=>(_0x2ee6fc,_0x496f2d)=>_0x38572b(_0x2ee6fc,_0x496f2d,_0xbbfe73);function _0x3029(){const _0x4d26bc=['AWAITING','_applyCommand','4TYWNvw','_render','_monkeyPatchLogService','Error','params','InsertRangeMoveRightCommandId','_setupBeforeClosingHandler','arc','425331akyzke','_updateLocalCursor','2TjHCNd','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_initStatusComponent','jiqing.500','_cursorInfo$','sheetID','text','replaceDocRanges','setUndoRedoMutationParamsCache','collaboration-client-ui.config','white','_saveCache','disableLocalCache','getRangePointData','OnLineIcon','runId','_revisionService','[LogService\x20Error]:\x20','on-line-icon_clip0_910_349','ENTITLE_NEED_BILLING_ADDRESS','VIEW_MAIN','values','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UNIVER_SHEET','hide','_sheetSkeletonManagerService','replace','attrs','_clearOtherTimers','currentTheme$','unshift','whenReady','href','_createSocketURL','registerRenderModule','addEventListener','moveTo','_send','NOT_FOUND','wsSessionTicketUrl','getSheetBySheetId','socket$','fillRule','RECT','stack','getOffsetConfig','subunit','selection','transformIMECache','off-line-icon','REDEMPTION_CODE_FULLY_REDEEMED','toRgbString','children','WECHAT_HAS_BEEN_BOUND','_themeService','_getMergeRange','_clearPolling','getValue','_collabSessionService','_collaborationController','executeCommand','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','onStarting','collabStatus.notCollab','getUnit','eventID','_shapes','OffLineIcon','_roomMembers$','YUUMI_NO_CUBOID_FOR_QUESTION','doc.mutation.rich-text-editing','endColumn','APPLY_NON_SEQUENTIAL_REVISION','getCurrentUnitForType','_startCalculationLimit','transformByState','Warning','width','filename','LICENSE_IMPORT_SIZE_EXCEEDED','dispose$','includes','min','_docTransformIMECacheService','_colorAssignService','ENTITLE_CHAT_LIMIT_EXCEED','getMemberID','APPLY_DUPLICATED','engine','fill','_disabled','INTERNAL_ERROR','DATA_SOURCE_TOO_LARGE','string','JOIN_ROOM_FAILED','m2Prime','docStateChange$','_initEntityListener','TOO_MANY_REQUESTS','_assignedColors','http://www.w3.org/2000/svg','0\x200\x2016\x2016','currentColor','actions','cursorInfo','\x20at\x20','getActiveSheet','OTHER_CLIENT_EDITING','getMergeData','exhaustSavingTask','stringify','range','1831110oWRQOs','beginPath','roomMembers$','set','_docSkeletonManagerService','MUTATION','_hovered','getSkeleton','ERROR_AGAIN','SUCCESS','code','getItem','map','_startDocCollabCursor','deepClone','_localCacheService','setActiveRange','_localeService','clearTimeout','OFFLINE','asObservable','push','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','purple.300','override','isEditing','url(#off-line-icon_clip0_910_343)','enableFrontendLog','_online','UPDATE_CURSOR','evenodd','color','parseInt','_transformHistoryAndStateStack','transformMutationsWithChangeset','_initUnhandledRejectionListener','sheetId','MOBILE_VERIFY_CODE_MISMATCH','search','forEach','SNAPSHOT_INVALID_SNAPSHOT','_initCommandExecutedListener','with','session.connection-failed','getCollabEntity$','toString','YUUMI_RATE_OVER_LIMIT','getformulaLimitStatusUrl','shift','activeSheet$','getFocusedUnit','_name','_removeCollabCursors','mask','textRanges','/universer-api/license/formula/limit/start','syncEditingCollabCursor','lineTo','_saveTaskMap','unhandledrejection','parse','reason','trim','_docStateChangeManagerService','collab-rect-range-','_eventUnsubscribe','_collaborationSessionService','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_uiPartsService','none','data','YUUMI_ALL_TABLES_IS_INVALID','APPLY_PERMISSION_DENIED','_onRefRangeChange','PERMISSION_DENIED','pushState','UNAUTHENTICATED','univer-flex\x20univer-items-center','application/json','size','_initDependencies','Failed','_color','findNodePositionByCharIndex','session.collaboration-timeout','complete','drawWith','7dCwrEy','_status$','_messageService','type','getUnhiddenWorksheets','_cachedData','_currentUsage','ONLINE','_drawAnchor','permission.content','_renderManagerService','getMember','origin','loadOfflineData','debug','OTHER_CLIENTS_EDITING','_docTransformStateCacheService','enableLocalCache','_drawTextRange','_getSessionTicket','limitInfo','isActive','symbol','_scheduleSaving','INVITE_CODE_HAS_BEEN_UES','ENTITLE_CAN_NOT_BUY_LOWER_OTP','FromArray','_hideTimer','UniverIcon','univer-mr-2\x20univer-flex\x20univer-text-xl','_checkAndWaitForCalculationPermission','_docSkeleton','from','ENSURE_SNAPSHOT_EXECUTION','mutations','_univerInstanceService','getCurrentRevOfUnit','setParam','START_CALCULATION','idSuffix','defineProperty','hovered','unsubscribe','currentUsage','1em','APPLY_REJECT','_docSyncEditingCollabCursorService','then','USERS_LEAVE','defs','_injector','getAncestorScale','_scene','_entities','_getScale','NOT_COLLAB','off-line-icon_clip0_910_343','[CollaborationDataLoaderController]','_init','701712frkEcF','TEXT','_setupSubUnitSync','onPointerEnter$','formula.calculation.started','formula.calculation.unable','history','_registerRenderDependencies','split','unitId','_collabCursorState$','APPLY_REVISION_CONFILICT','use','_collabCursorController','send','has','ENTITLE_DUP_SUBSCRIPTION','_startSheetCollabCursor','removeEventListener','_backgroundColor','onRendered','_memberService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_beforeCloseService','transformStateCache','setStateCache','delete','getConfig','_initCommandInterceptor','_cursors','_checkCalculationAvailable','60470eqnwyn','startRow','message','USER_NOT_FOUND','transformSelections','setShapeProps','loadUnit','registerRefRange','_selfUnitIDs','_handleLeaveEvent','Success','_logService','_context','onPointerLeave$','_localStorageService','REDEMPTION_CODE_HAS_BEEN_CREATED','?taskId=','FETCH_MISS','pluginName','newValue','_transformPreviousActiveRange','RemoveRowCommandId','INVITE_CODE_REQUIRED','init','_docTransformSelectionsService','REDEMPTION_CODE_NOT_STARTED','INVALID_INVITE_CODE','executionId','undoState','_urlService','bottom','getCellPositionByOffset','INVITE_CODE_ALREADY_BOUND','_cursorShapes','EMAIL_HAS_BEEN_BOUND','post','PAYMENT_CHANNEL_NOT_SUPPORT','lineno','cursorInfo$','PENDING','_initEvent','_refreshCollabCursors','_getAnchorBounding','m1Prime','_removeClearOtherTimer','catch','ALREADY_EXISTS','_handleJoinEvent','_initResize','_draw','memberID','event$','YUUMI_UNABLE_LOAD_URL','SYNCED','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','10450275zdSSUO','length','updateOfflineData','top','ENTITLE_INSUFFICIENT_QUOTA','_configService','CONFLICT','_getSaveTimeout','totalFormulasToCalculate','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','redoState','getUndoRedoMutationParamsCache','711HYRDXS','imageSourceType','_transformService','height','_pollingInterval','isArray','getCollabCursors$','triggerDblclick','_memberID','_unitStatus','name','labelPosition','collab-client.tooltip.reconnect','startsWith','colno','key','collabStatus.synced','_handleEvent','path','fillText','popstate','/universer-api/license/formula/limit/status','getDocRanges','SNAPSHOT_HAS_BEEN_REMOVED','EMAIL_VERIFY_CODE_MISMATCH','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleClearOtherTimer','getColorFromTheme','dirtyRanges','_uploadLog','stageInfo','subUnitId','next','0\x200\x2017\x2016','onMouseMove','YUUMI_SUBSCRIPTION_NOT_FOUND','_setFormulaLimitStatus','_initUserListener','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','_updateURLWithCurrentState','addObject','saveOfflineData','collab-text-anchor-','svg','entityInit$','_registerDependencies','startColumn','all','_id','RemoveColCommandId','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','LOGIN_FAILED','onCommandExecuted','unitID','unit','_anchor','transformRemoteChangeset','LICENSE_DISTRO_REJECTED','collaboration.closeRoom','get','506101XbvkhZ','_hover','getRenderById','_onCursorUpdate','collabStatus.syncing','ranges','reconnect','ENTITLE_REPORT_LIMIT_EXCEED','some','YUUMI_AI_RUN_FAILED','_entityInit$','_unitOnClients','REDEMPTION_USER_NOT_ELIGIBLE','ticket','_commandService','backgroundColor','_cursor','_httpService','createInstance','on-line-icon','_maxFormulaLimit','_range','_ensureSubject','COMPLETION_FINISHED','setConfig','USER_IS_ANONYMOUS','InsertRangeMoveDownCommandId','status$','translate(.97)','unload','subscribe','_toggleOffline','getParam','url(#$1','_taskIds','fillStyle','currentSkeleton$','setAlpha','subscribeEvent','_textBubble','CONNECTOR_DATA_TOO_LARGE','colorChannel1','tag','location','xlink:href','_refRangeService','1201552ugSZpc','getSheetId','_lastResponseTimestamp','[RemoteUniscriptService]:\x20no\x20focused\x20unit','clipPath','YUUMI_TABLE_NOT_FOUND_IN_UNIT','closePath','roomMembers','getUnitId','collabStatus.offline','HEADER_MENU','sessionStatus$','_initWindowErrorListener','_notificationService','disposeWithMe','invokeId','M0\x200H16V16H0z','_instanceService','_getFormulaLimitStatus','/universer-api/license/formula/limit/done','CLOSE_ROOM','MOBILE_HAS_BEEN_BOUND','stage','_dataLoaderService','substring','_imageIoService','Unknown\x20user','getOwnPropertyDescriptor','...','_labelPosition','_scheduleHeartbeat','error','_onCursorDelete','YUUMI_ASYNCIO_CANCELLED','REDEMPTION_INVALID_CODE','_showGuardMessage','formula.calculation.waiting','endRow','_heartbeatTimer','CHANGESET_REVISION_CONFILICT','round','sessionTicket','bind','makeDirty','urlChange$','yellow.400','InsertRowCommandId','UNRECOGNIZED','SUBMIT_CHANGESET_TIMEOUT','selections','NO_OTHER_CLIENTS_EDITING','DeleteRangeMoveUpCommandId','_getSheetObject','YUUMI_CONNECTOR_URL_NOT_FOUND','save','/universer-api/frontend/logs','_colorIndex','transformMutation','black','setItem','pipe','assignAColorForMemberID','measureText','body','LICENSE_MAX_UNITS_EXCEEDED','saveImage','releaseFormulaLimitUrl','row','show','searchParams','UNDEFINED','getUnitStatus$','entries','_initStatusListener','div','saveTaskMap','getStateCache','assign','requireSession','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_updateCollabCursors','runOnServer','_config','_toggleOnline','_anchorDot','UNIVER_DOC','displayName','_syncEditingCollabCursorService','_lastPointer','getTypeOfUnitAdded$','LOGIN_TOKEN_PROCESSING_FAILED','onTransformChange$','session.will-retry','setTimeout','_updateSubUnitFromURLParams','replaceState','add','_session','getUniverSheetInstance','clearInterval','dispose','LICENSE_EXPORT_SIZE_EXCEEDED','USER_NOT_INVITED_CODE','_drawRectRange','INVALID_ARGUMENT','now','restore','collabCursorState$','setInterval'];_0x3029=function(){return _0x4d26bc;};return _0x3029();}let ae=class extends _0x15b4c2{constructor(_0x35f3d8,_0x23f836,_0x3a42e7,_0x5179a5){const _0x1f99b0=_0x267084;super(),_(this,'_status$',new _0x1c42a0(_0x393e49[_0x1f99b0(0x29d)])),(this[_0x1f99b0(0x289)]=_0x35f3d8,this[_0x1f99b0(0x298)]=_0x23f836,this[_0x1f99b0(0x1da)]=_0x3a42e7,this['_uiPartsService']=_0x5179a5,this[_0x1f99b0(0x1a1)](),this[_0x1f99b0(0x16f)]());}[_0x267084(0x16f)](){const _0x5f4d47=_0x267084;this['disposeWithMe'](this[_0x5f4d47(0x289)]['focused$'][_0x5f4d47(0x162)](_0x481021(()=>{const _0x5a40ae=_0x5f4d47,_0x3ee807=this[_0x5a40ae(0x289)][_0x5a40ae(0x241)]();return _0x3ee807?this[_0x5a40ae(0x1da)][_0x5a40ae(0x23b)](_0x3ee807[_0x5a40ae(0x12e)]()):_0x243860(null);}),_0x481021(_0x37fb1a=>_0x37fb1a?_0x37fb1a[_0x5f4d47(0x113)]:_0x243860(_0x393e49['NOT_COLLAB'])))['subscribe'](_0x23c65a=>{const _0x424c9b=_0x5f4d47;this[_0x424c9b(0x267)][_0x424c9b(0xdc)](_0x23c65a);}));}[_0x267084(0x1a1)](){const _0x2e30c6=_0x267084;this[_0x2e30c6(0x134)](this[_0x2e30c6(0x253)]['registerComponent'](_0x4d93d1[_0x2e30c6(0x130)],()=>_0x4a2cb2(bi({'status$':this[_0x2e30c6(0x267)]['asObservable']()}),this[_0x2e30c6(0x298)])));}};ae=Di([se(0x0,_0x121c1a),se(0x1,_0x19d3ff(_0x4ab7f8)),se(0x2,_0x19d3ff(_0x20f9ac)),se(0x3,_0x4fa1c4)],ae);function bi(_0x321d27){const {status$:_0x1906f4}=_0x321d27;return function(){return _0x3c1405(Ci,{'status$':_0x1906f4});};}const yt=_0xd018ef('uni.network.url-service');var Ni=Object[_0x267084(0x141)],Li=(_0x32fc8f,_0x406a4f,_0x25b224,_0x17677c)=>{for(var _0x40100e=_0x17677c>0x1?void 0x0:_0x17677c?Ni(_0x406a4f,_0x25b224):_0x406a4f,_0x21d3e2=_0x32fc8f['length']-0x1,_0x12a52d;_0x21d3e2>=0x0;_0x21d3e2--)(_0x12a52d=_0x32fc8f[_0x21d3e2])&&(_0x40100e=_0x12a52d(_0x40100e)||_0x40100e);return _0x40100e;},K=(_0xca4601,_0xbd5de)=>(_0x9c3992,_0x3f49b4)=>_0xbd5de(_0x9c3992,_0x3f49b4,_0xca4601);let ce=class extends _0x2699b6{constructor(_0x5151be,_0xb6fa2a,_0x1c62a9,_0x5cae94,_0x51f278){const _0x2bc6eb=_0x267084;super(),this[_0x2bc6eb(0x96)]=_0x5151be,this[_0x2bc6eb(0x84)]=_0xb6fa2a,this['_commandService']=_0x1c62a9,this[_0x2bc6eb(0x13d)]=_0x5cae94,_0x51f278?_0x51f278==null||_0x51f278[_0x2bc6eb(0x1be)]()[_0x2bc6eb(0x295)](()=>this['_init']()):(this[_0x2bc6eb(0x84)][_0x2bc6eb(0x274)](_0x2bc6eb(0x29f),_0x2bc6eb(0x2b7)),this[_0x2bc6eb(0x2a0)]());}async[_0x267084(0x2a0)](){const _0x17c982=_0x267084,_0x5a86f5=this['_urlService']['getParam']('unit'),_0x2a2b6a=this[_0x17c982(0x96)][_0x17c982(0x118)](_0x17c982(0x269)),_0x216ec9=this[_0x17c982(0x96)][_0x17c982(0x118)](_0x17c982(0x1cd));if(!_0x5a86f5||!_0x2a2b6a){this[_0x17c982(0x84)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x210733=await this[_0x17c982(0x13d)][_0x17c982(0x7f)](_0x5a86f5,Number(_0x2a2b6a),_0x216ec9);_0x210733&&_0x210733 instanceof _0x28d654&&this[_0x17c982(0x2a3)](_0x210733);}async[_0x267084(0x2a3)](_0x2bc081){const _0x20b5c0=_0x267084;await this[_0x20b5c0(0x184)](_0x2bc081),_0x2bc081[_0x20b5c0(0x240)][_0x20b5c0(0x162)](_0xae10c0(this[_0x20b5c0(0x1ef)]))['subscribe'](_0x434758=>{const _0x1a9250=_0x20b5c0;_0x434758&&this[_0x1a9250(0xe3)](_0x434758);}),this['_urlService'][_0x20b5c0(0x152)][_0x20b5c0(0x162)](_0xae10c0(this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x2bc081));}[_0x267084(0xe3)](_0x3cc3a9,_0x5a1322=!0x1){const _0x10cf53=_0x267084,_0x368484=this['_urlService'][_0x10cf53(0x118)]('subunit');_0x3cc3a9[_0x10cf53(0x127)]()!==_0x368484&&this[_0x10cf53(0x96)][_0x10cf53(0x28b)](_0x10cf53(0x1cd),_0x3cc3a9[_0x10cf53(0x127)](),_0x5a1322);}async[_0x267084(0x184)](_0x4fdbfe){const _0x631bf8=_0x267084;var _0x449541;const _0x2146de=this[_0x631bf8(0x96)][_0x631bf8(0x118)](_0x631bf8(0x1cd));if(!_0x2146de||!_0x4fdbfe[_0x631bf8(0x1c7)](_0x2146de)){const _0x14290e=_0x4fdbfe[_0x631bf8(0x26a)]()[0x0],_0x46b800=_0x4fdbfe[_0x631bf8(0x1c7)](_0x14290e);if(!_0x46b800)return;this[_0x631bf8(0xe3)](_0x46b800,!0x0),await this[_0x631bf8(0x106)][_0x631bf8(0x1db)](_0x3a9ae4['id'],{'unitId':_0x4fdbfe[_0x631bf8(0x12e)](),'subUnitId':_0x14290e});return;}((_0x449541=_0x4fdbfe[_0x631bf8(0x209)]())==null?void 0x0:_0x449541[_0x631bf8(0x127)]())!==_0x2146de&&await this[_0x631bf8(0x106)][_0x631bf8(0x1db)](_0x3a9ae4['id'],{'unitId':_0x4fdbfe[_0x631bf8(0x12e)](),'subUnitId':_0x2146de});}};ce=Li([K(0x0,yt),K(0x1,_0x35d33d),K(0x2,_0x1da808),K(0x3,_0x19d3ff(_0x21f2b2)),K(0x4,_0x4cc534(_0x236c30))],ce);var Ui=Object[_0x267084(0x141)],Mi=(_0x5c0c3f,_0x5697b,_0x1bed9c,_0x29ce6f)=>{for(var _0x399d7c=_0x29ce6f>0x1?void 0x0:_0x29ce6f?Ui(_0x5697b,_0x1bed9c):_0x5697b,_0x35b2f3=_0x5c0c3f['length']-0x1,_0x56ca1f;_0x35b2f3>=0x0;_0x35b2f3--)(_0x56ca1f=_0x5c0c3f[_0x35b2f3])&&(_0x399d7c=_0x56ca1f(_0x399d7c)||_0x399d7c);return _0x399d7c;},rt=(_0xc72b4a,_0x21d18e)=>(_0x5822d0,_0x251649)=>_0x21d18e(_0x5822d0,_0x251649,_0xc72b4a);function _0x1936(_0x5c3cb9,_0x4f4234){const _0x30296d=_0x3029();return _0x1936=function(_0x19366f,_0x57b570){_0x19366f=_0x19366f-0x71;let _0x441568=_0x30296d[_0x19366f];return _0x441568;},_0x1936(_0x5c3cb9,_0x4f4234);}let $e=class extends _0x2699b6{constructor(_0x158b65,_0x56f887){const _0x2a6273=_0x267084;super(),this['_docClipboardService']=_0x158b65,this[_0x2a6273(0x13f)]=_0x56f887,this[_0x2a6273(0x2a0)]();}[_0x267084(0x2a0)](){const _0x3c0fc3=this;this['disposeWithMe'](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x5bbd42=>{const _0x1caf7f=_0x1936,_0x4c3df8=await _0x3c0fc3[_0x1caf7f(0x13f)][_0x1caf7f(0x167)](_0x5bbd42);return _0x4c3df8?{'source':_0x4c3df8['source'],'imageSourceType':_0x4c3df8[_0x1caf7f(0xbd)]}:null;}}));}};$e=Mi([rt(0x0,_0x22e109),rt(0x1,_0x5e00b7)],$e);const ot=[_0x267084(0x226),_0x267084(0x1a2),'green.600','red.300','blue.400',_0x267084(0x153)];class Ke extends _0x15b4c2{constructor(){const _0x401366=_0x267084;super(...arguments),_(this,_0x401366(0x202),new Map()),_(this,_0x401366(0x15e),0x0);}['assignAColorForMemberID'](_0x3736e1){const _0x2176bd=_0x267084;if(this['_assignedColors'][_0x2176bd(0x2b0)](_0x3736e1))return this[_0x2176bd(0x202)][_0x2176bd(0xf7)](_0x3736e1);const _0x485cf1=ot[this[_0x2176bd(0x15e)]];return this[_0x2176bd(0x15e)]=(this[_0x2176bd(0x15e)]+0x1)%ot[_0x2176bd(0xb1)],this['_assignedColors'][_0x2176bd(0x212)](_0x3736e1,_0x485cf1),_0x485cf1;}}function $t(_0x1ec765){const _0x3723b5=_0x267084;let _0xb5002='';for(const _0x12393e of _0x1ec765){const {startOffset:_0x182ebd,endOffset:_0x58129a,isActive:_0x546974,rangeType:_0x393d35,segmentId:_0x242a5d,segmentPage:_0x3df8f5}=_0x12393e;_0xb5002[_0x3723b5(0xb1)]&&(_0xb5002+=','),_0xb5002+=_0x182ebd+':'+_0x58129a+':'+(_0x546974?'1':'0')+':'+_0x393d35+':'+_0x242a5d+':'+_0x3df8f5;}return _0xb5002;}function Ai(_0x52cf52){const _0x8936c=_0x267084,_0x230db5=_0x52cf52[_0x8936c(0x2a9)](','),_0x558d72=[];for(const _0x2338e0 of _0x230db5){const [_0x5444fb,_0xb8ea6d,_0x25fa30,_0x431614,_0x47db52,_0x1de475]=_0x2338e0[_0x8936c(0x2a9)](':');_0x558d72['push']({'startOffset':Number(_0x5444fb),'endOffset':Number(_0xb8ea6d),'collapsed':_0x5444fb===_0xb8ea6d,'isActive':_0x25fa30==='1','rangeType':_0x431614===_0x324e87[_0x8936c(0x2a2)]?_0x324e87[_0x8936c(0x2a2)]:_0x324e87[_0x8936c(0x1ca)],'segmentId':typeof _0x47db52=='string'?String(_0x47db52):'','segmentPage':Number(_0x1de475!=null?_0x1de475:-0x1)});}return _0x558d72[_0x8936c(0x100)](_0x477c39=>_0x477c39[_0x8936c(0x27b)])||(_0x558d72[0x0][_0x8936c(0x27b)]=!0x0),_0x558d72;}class ze extends _0x2699b6{constructor(){const _0x3c6e89=_0x267084;super(...arguments),_(this,_0x3c6e89(0x2ab),new _0x1c42a0(null)),_(this,_0x3c6e89(0x191),this[_0x3c6e89(0x2ab)][_0x3c6e89(0x223)]());}['syncEditingCollabCursor'](_0x41c126){const _0x42e66a=_0x267084,{unitID:_0xc0c1ae,memberID:_0x2bea24,textRanges:_0x4c80d4}=_0x41c126,_0x53bd74=$t(_0x4c80d4);if(_0x53bd74==='')return;const _0x1526e1={'unitID':_0xc0c1ae,'memberID':_0x2bea24,'selection':_0x53bd74};this[_0x42e66a(0x2ab)]['next'](_0x1526e1);}}var Pi=Object[_0x267084(0x141)],wi=(_0x69d828,_0x66d7f8,_0x4377fe,_0xb70fd0)=>{const _0x6cfad6=_0x267084;for(var _0x3b9fb1=_0xb70fd0>0x1?void 0x0:_0xb70fd0?Pi(_0x66d7f8,_0x4377fe):_0x66d7f8,_0x388245=_0x69d828[_0x6cfad6(0xb1)]-0x1,_0x33cc56;_0x388245>=0x0;_0x388245--)(_0x33cc56=_0x69d828[_0x388245])&&(_0x3b9fb1=_0x33cc56(_0x3b9fb1)||_0x3b9fb1);return _0x3b9fb1;},A=(_0x317f37,_0x442e3a)=>(_0x76075a,_0x19c15c)=>_0x442e3a(_0x76075a,_0x19c15c,_0x317f37);const yi=0x12c,$i=0x64;let xe=class extends _0x2699b6{constructor(_0x40e78b,_0x327384,_0x5b4845,_0x5d5b57,_0x2ac984,_0xafa1a7,_0x3b591b,_0x5e768e,_0x4b17f3){const _0x582073=_0x267084;super(),_(this,_0x582073(0x22b),!0x1),_(this,_0x582073(0x2a0),!0x1),_(this,'_cursorInfo$',new _0x1c42a0(new Map())),_(this,_0x582073(0x9f),this[_0x582073(0x1a3)][_0x582073(0x223)]()),_(this,_0x582073(0x1e3),new _0x1c42a0([])),_(this,_0x582073(0x211),this[_0x582073(0x1e3)][_0x582073(0x162)](_0x1f60ae(yi))),_(this,_0x582073(0x19e),_0x1dbae4(_0x216247=>{const _0x37a596=_0x582073,_0x1b8b77={'eventID':_0x11a4ac['UPDATE_CURSOR'],'data':{'unitID':this[_0x37a596(0xf1)],'memberID':this[_0x37a596(0x187)][_0x37a596(0x1f5)](),'selection':$t(_0x216247)}};this['_session'][_0x37a596(0x2af)](_0x1b8b77,this[_0x37a596(0xf1)]);},$i)),(this[_0x582073(0xf1)]=_0x40e78b,this[_0x582073(0x187)]=_0x327384,this['_injector']=_0x5b4845,this[_0x582073(0x1f3)]=_0x5d5b57,this[_0x582073(0x2b6)]=_0x2ac984,this[_0x582073(0x17d)]=_0xafa1a7,this['_transformService']=_0x3b591b,this[_0x582073(0x289)]=_0x5e768e,this[_0x582073(0x106)]=_0x4b17f3);}get[_0x267084(0x207)](){return this['_cursorInfo$']['getValue']();}get[_0x267084(0x12d)](){const _0x447872=_0x267084;return this[_0x447872(0x1e3)][_0x447872(0x1d8)]();}[_0x267084(0x18a)](){const _0x576266=_0x267084;super[_0x576266(0x18a)](),this[_0x576266(0x1a3)][_0x576266(0xdc)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$']['next']([]),this[_0x576266(0x1e3)][_0x576266(0x264)]();}[_0x267084(0x90)](){const _0x1eee4f=_0x267084;this[_0x1eee4f(0x2a0)]||(this[_0x1eee4f(0x2a0)]=!0x0,this[_0x1eee4f(0x187)]['sessionStatus$'][_0x1eee4f(0x162)](_0xae10c0(this['dispose$']))['subscribe'](_0x2ce2f1=>{const _0x38b123=_0x1eee4f;_0x2ce2f1===_0x2f3a8a['ONLINE']?this['_toggleOnline']():this[_0x38b123(0x117)]();}),this[_0x1eee4f(0x187)][_0x1eee4f(0xac)]['pipe'](_0xae10c0(this['dispose$']))[_0x1eee4f(0x116)](_0x1475ea=>{const _0x4bc500=_0x1eee4f,_0x59f9a3=_0x1475ea[_0x4bc500(0x1e0)];_0x59f9a3===_0x11a4ac[_0x4bc500(0x22c)]&&this[_0x4bc500(0xfb)](_0x1475ea),_0x59f9a3===_0x11a4ac[_0x4bc500(0x296)]&&this[_0x4bc500(0x146)](_0x1475ea);}),this['disposeWithMe'](this['_commandService'][_0x1eee4f(0xf0)](_0x50fc40=>{const _0x4e581e=_0x1eee4f,_0x3ce890=_0x50fc40['params'];_0x3ce890!=null&&this[_0x4e581e(0x22b)]&&_0x50fc40['id']===_0x4e5c0b['id']&&_0x3ce890[_0x4e581e(0x2aa)]===this[_0x4e581e(0xf1)]&&_0x3ce890[_0x4e581e(0x228)]===!0x1&&_0x3ce890[_0x4e581e(0xfd)][_0x4e581e(0xb1)]>0x0&&this['_updateLocalCursor'](_0x3ce890[_0x4e581e(0xfd)]);})),this[_0x1eee4f(0x17d)]['collabCursorState$'][_0x1eee4f(0x162)](_0xae10c0(this[_0x1eee4f(0x1ef)]))[_0x1eee4f(0x116)](_0x3d7741=>{const _0x5e3edd=_0x1eee4f;if((_0x3d7741==null?void 0x0:_0x3d7741[_0x5e3edd(0xf1)])!==this['unitID'])return;const _0x4df19c={'eventID':_0x11a4ac[_0x5e3edd(0x22c)],'data':_0x3d7741};this[_0x5e3edd(0xfb)](_0x4df19c);}),this['disposeWithMe'](this[_0x1eee4f(0x106)][_0x1eee4f(0xf0)](_0x62a2d9=>{const _0x5330b1=_0x1eee4f;if(_0x62a2d9[_0x5330b1(0x199)]==null)return;const _0x43b648=_0x62a2d9[_0x5330b1(0x199)];if(_0x62a2d9['id']!==_0xd50203['id']||_0x43b648['unitId']!==this[_0x5330b1(0xf1)])return;const _0x47749c={'id':_0x5330b1(0x1e5),'params':_0x43b648},_0xab0741=this[_0x5330b1(0x207)];for(const [_0x2705a3,_0x5b60f8]of _0xab0741){const _0xb7585={'id':_0x5330b1(0x1e5),'params':{'unitId':this[_0x5330b1(0xf1)],'actions':null,'textRanges':_0x5b60f8['ranges']}},_0x4d936c=this['_transformService'][_0x5330b1(0x15f)](_0x47749c,_0xb7585,!0x1);if(_0x3d1fb0(_0x4d936c))throw _0x4d936c[_0x5330b1(0x145)];_0xab0741[_0x5330b1(0x212)](_0x2705a3,{..._0x5b60f8,'ranges':_0x4d936c[_0x5330b1(0x1fe)][_0x5330b1(0x199)][_0x5330b1(0x245)]});}queueMicrotask(()=>{const _0x4311fe=_0x5330b1;this[_0x4311fe(0x1a3)][_0x4311fe(0xdc)](_0xab0741);});})));}[_0x267084(0xfb)](_0x21ae12){const _0x54a098=_0x267084;var _0x3edb74,_0x3cf6c5;const {memberID:_0x372255,selection:_0x25867a}=_0x21ae12['data'],_0x157dd6=Ai(_0x25867a),_0x542362=(_0x3cf6c5=(_0x3edb74=this[_0x54a098(0x2b6)][_0x54a098(0x271)](this['unitID'],_0x372255))==null?void 0x0:_0x3edb74['name'])!=null?_0x3cf6c5:_0x54a098(0x140),_0x1c208b={'color':this['_colorAssignService'][_0x54a098(0x163)](_0x372255),'name':_0x542362,'ranges':_0x157dd6},_0x164796=this[_0x54a098(0x207)];_0x164796[_0x54a098(0x212)](_0x372255,_0x1c208b),this[_0x54a098(0x1a3)]['next'](_0x164796);}[_0x267084(0x146)](_0x540d9e){const _0x8f6a48=_0x267084,{memberID:_0x470742}=_0x540d9e[_0x8f6a48(0x255)],_0x1b9d27=this['cursorInfo'];_0x1b9d27['delete'](_0x470742),this[_0x8f6a48(0x1a3)][_0x8f6a48(0xdc)](_0x1b9d27);}[_0x267084(0x179)](){const _0x3a92e9=_0x267084;var _0x277772;if(this[_0x3a92e9(0x22b)]=!0x0,((_0x277772=this[_0x3a92e9(0x289)]['getFocusedUnit']())==null?void 0x0:_0x277772[_0x3a92e9(0x12e)]())!==this[_0x3a92e9(0xf1)])return;const _0x58c847=this[_0x3a92e9(0x298)][_0x3a92e9(0xf7)](_0x22e39b)[_0x3a92e9(0xd2)]();Array[_0x3a92e9(0xc1)](_0x58c847)&&_0x58c847[_0x3a92e9(0xb1)]>0x0&&this[_0x3a92e9(0x19e)](_0x58c847);}[_0x267084(0x117)](){this['_online']=!0x1;}};xe=wi([A(0x2,_0x19d3ff(_0x4ab7f8)),A(0x3,_0x19d3ff(Ke)),A(0x4,_0x19d3ff(_0x277671)),A(0x5,_0x19d3ff(ze)),A(0x6,_0xe0c62a),A(0x7,_0x121c1a),A(0x8,_0x1da808)],xe);var xi=Object[_0x267084(0x141)],Bi=(_0xdf828c,_0x4cdd4c,_0x46ba61,_0x535361)=>{for(var _0x47abe2=_0x535361>0x1?void 0x0:_0x535361?xi(_0x4cdd4c,_0x46ba61):_0x4cdd4c,_0x483aaf=_0xdf828c['length']-0x1,_0x2e4344;_0x483aaf>=0x0;_0x483aaf--)(_0x2e4344=_0xdf828c[_0x483aaf])&&(_0x47abe2=_0x2e4344(_0x47abe2)||_0x47abe2);return _0x47abe2;},B=(_0x5e2ef8,_0x2988b4)=>(_0x48e1eb,_0x22b1f4)=>_0x2988b4(_0x48e1eb,_0x22b1f4,_0x5e2ef8);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x1c40b8=[],_0xe800ce=!0x1;return _0x362ad7=>{const _0x31cf94=_0x1936;_0x1c40b8[_0x31cf94(0x224)](_0x362ad7),_0xe800ce||(_0xe800ce=!0x0,setTimeout(()=>{const _0x3d0f66=_0x31cf94;_0x1c40b8[_0x3d0f66(0x236)](_0x5dafee=>_0x5dafee()),_0x1c40b8=[],_0xe800ce=!0x1;}));};};let Be=class extends _0x2699b6{constructor(_0x27b868,_0x1a353a,_0x3c24d4,_0x4d225e,_0x59da94,_0x1587fa,_0x198ada,_0x5facd8){const _0x348651=_0x267084;super(),_(this,_0x348651(0x22b),!0x1),_(this,_0x348651(0x2a0),!0x1),_(this,'_cursorInfo$',new _0x1c42a0(new Map())),_(this,_0x348651(0x9f),this[_0x348651(0x1a3)][_0x348651(0x223)]()),_(this,'_roomMembers$',new _0x1c42a0([])),_(this,_0x348651(0x211),this[_0x348651(0x1e3)][_0x348651(0x162)](_0x1f60ae(Fi))),_(this,'_updateLocalCursor',_0x1dbae4((_0x12782f,_0x199cca)=>{const _0x35ccb1=_0x348651,_0x471fd3={'eventID':_0x11a4ac[_0x35ccb1(0x22c)],'data':{'unitID':this[_0x35ccb1(0xf1)],'memberID':this[_0x35ccb1(0x187)]['getMemberID'](),'selection':_0x104646(_0x12782f,_0x199cca[_0x35ccb1(0x20e)])}};this[_0x35ccb1(0x187)][_0x35ccb1(0x2af)](_0x471fd3,this['unitID']);},ki)),(this['unitID']=_0x27b868,this[_0x348651(0x187)]=_0x1a353a,this['_injector']=_0x3c24d4,this[_0x348651(0x1f3)]=_0x4d225e,this[_0x348651(0x2b6)]=_0x59da94,this[_0x348651(0x289)]=_0x1587fa,this[_0x348651(0x106)]=_0x198ada,this['_refRangeService']=_0x5facd8);}get['cursorInfo'](){const _0x3b0399=_0x267084;return this['_cursorInfo$'][_0x3b0399(0x1d8)]();}get[_0x267084(0x12d)](){const _0x161cad=_0x267084;return this[_0x161cad(0x1e3)][_0x161cad(0x1d8)]();}['dispose'](){const _0x10bd0b=_0x267084;super[_0x10bd0b(0x18a)](),this[_0x10bd0b(0x1a3)][_0x10bd0b(0xdc)](new Map()),this['_cursorInfo$']['complete'](),this[_0x10bd0b(0x1e3)][_0x10bd0b(0xdc)]([]),this[_0x10bd0b(0x1e3)][_0x10bd0b(0x264)]();}['init'](){const _0x2caf03=_0x267084;this[_0x2caf03(0x2a0)]||(this['_init']=!0x0,this['_session'][_0x2caf03(0x131)][_0x2caf03(0x162)](_0xae10c0(this['dispose$']))[_0x2caf03(0x116)](_0x5f52fa=>{const _0x1bb4b2=_0x2caf03;_0x5f52fa===_0x2f3a8a[_0x1bb4b2(0x26d)]?this[_0x1bb4b2(0x179)]():this['_toggleOffline']();}),this[_0x2caf03(0x187)][_0x2caf03(0xac)][_0x2caf03(0x162)](_0xae10c0(this[_0x2caf03(0x1ef)]))[_0x2caf03(0x116)](_0x4d2939=>{const _0x19d1fe=_0x2caf03,_0x382a51=_0x4d2939[_0x19d1fe(0x1e0)];_0x382a51===_0x11a4ac[_0x19d1fe(0x22c)]&&this[_0x19d1fe(0xfb)](_0x4d2939),_0x382a51===_0x11a4ac[_0x19d1fe(0x296)]&&this[_0x19d1fe(0x146)](_0x4d2939);}),this['_onRefRangeChange'](),this[_0x2caf03(0x134)](this['_commandService']['onCommandExecuted'](_0x376b95=>{const _0x455276=_0x2caf03;if(this['_online']&&_0x376b95['id']===_0x471d36['id']&&_0x376b95[_0x455276(0x199)]['unitId']===this['unitID']){const _0x2735d4=_0x376b95[_0x455276(0x199)];this[_0x455276(0x19e)](_0x2735d4[_0x455276(0xdb)],_0x2735d4[_0x455276(0x157)][0x0]);}})));}['_onCursorUpdate'](_0xd21314){const _0x51f698=_0x267084;var _0x5e2471,_0x26ed8a;const {memberID:_0x3b68bf,selection:_0x1cceb2}=_0xd21314[_0x51f698(0x255)],{sheetName:_0x24b0e3,range:_0x25c61d}=_0x3813d3(_0x1cceb2),_0x5ef7c7={'name':(_0x26ed8a=(_0x5e2471=this['_memberService'][_0x51f698(0x271)](this[_0x51f698(0xf1)],_0x3b68bf))==null?void 0x0:_0x5e2471[_0x51f698(0xc6)])!=null?_0x26ed8a:'Unknown\x20user','range':this[_0x51f698(0x1d6)](_0x24b0e3,_0x25c61d),'sheetID':_0x24b0e3,'color':this[_0x51f698(0x1f3)][_0x51f698(0x163)](_0x3b68bf),'selection':_0x1cceb2},_0x1db8c1=this['cursorInfo'];_0x1db8c1['set'](_0x3b68bf,_0x5ef7c7),this[_0x51f698(0x1a3)][_0x51f698(0xdc)](_0x1db8c1);}[_0x267084(0x146)](_0x2e65e8){const _0x203d60=_0x267084,{memberID:_0x1ca141}=_0x2e65e8[_0x203d60(0x255)],_0x1ee969=this[_0x203d60(0x207)];_0x1ee969[_0x203d60(0x74)](_0x1ca141),this['_cursorInfo$'][_0x203d60(0xdc)](_0x1ee969);}[_0x267084(0x1d6)](_0x15188c,_0x48ff27){const _0x5dbab0=_0x267084;var _0x42cb4b,_0x2a63f6;const _0x103227=(_0x2a63f6=(_0x42cb4b=this[_0x5dbab0(0x289)][_0x5dbab0(0x188)](this['unitID']))==null?void 0x0:_0x42cb4b[_0x5dbab0(0x1c7)](_0x15188c))==null?void 0x0:_0x2a63f6[_0x5dbab0(0x20b)]();return(_0x103227==null?void 0x0:_0x103227['find'](_0x5cfc61=>_0x24337c['contains'](_0x5cfc61,_0x48ff27)))||_0x48ff27;}[_0x267084(0x258)](){const _0x3f6189=_0x267084,_0x381521=new _0x5466e2(),_0x39dd87=Hi(),_0x3c0c08=()=>{const _0x5d41e0=_0x1936;_0x381521['dispose']();const _0x47171e=(_0x11880b,_0x18d6a7,_0x17f6ee,_0x52f54d)=>{const _0x3f0af5=_0x1936;let _0x4eb1c1=[];switch(_0x11880b['id']){case _0x4f3975['DeleteRangeMoveLeftCommandId']:{_0x4eb1c1=_0x1876c5(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x159)]:{_0x4eb1c1=_0x471afe(_0x11880b,_0x52f54d);break;}case _0x4f3975['InsertColCommandId']:{_0x4eb1c1=_0x123e0e(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x112)]:{_0x4eb1c1=_0x4c1240(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x19a)]:{_0x4eb1c1=_0x4156ba(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x154)]:{_0x4eb1c1=_0x599989(_0x11880b,_0x52f54d);break;}case _0x4f3975['MoveRangeCommandId']:{_0x4eb1c1=_0x4ff5db(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0xed)]:{_0x4eb1c1=_0x2189b3(_0x11880b,_0x52f54d);break;}case _0x4f3975[_0x3f0af5(0x8e)]:{_0x4eb1c1=_0x440e43(_0x11880b,_0x52f54d);break;}}const _0x1e264e=_0x485055(_0x4eb1c1,_0x52f54d),_0x1b2367=this[_0x3f0af5(0x207)][_0x3f0af5(0xf7)](_0x18d6a7);if(_0x1b2367&&_0x1e264e){const _0x48cd17={..._0x1b2367,'range':_0x1e264e};this['cursorInfo']['set'](_0x18d6a7,_0x48cd17),_0x39dd87(()=>{const _0x474162=_0x3f0af5,_0x7bd18a=this[_0x474162(0x125)][_0x474162(0x80)](_0x1e264e,_0x9aa033=>(_0x7bd18a[_0x474162(0x18a)](),_0x47171e(_0x9aa033,_0x18d6a7,_0x17f6ee,_0x1e264e)));_0x381521[_0x474162(0x186)](_0x7bd18a);});}return{'redos':[],'undos':[]};};this[_0x5d41e0(0x207)][_0x5d41e0(0x236)]((_0x433447,_0x3e8791)=>{const _0x482d50=_0x5d41e0,{range:_0x32c74d,sheetID:_0x5706c9}=_0x433447,_0x3b2be0=this['_refRangeService'][_0x482d50(0x80)](_0x32c74d,_0x37d47c=>(_0x3b2be0['dispose'](),_0x47171e(_0x37d47c,_0x3e8791,_0x5706c9,_0x32c74d)));_0x381521[_0x482d50(0x186)](_0x3b2be0);});};this[_0x3f6189(0x134)](_0x490c7d(this['_cursorInfo$'][_0x3f6189(0x116)](()=>{_0x3c0c08();})));}['_toggleOnline'](){const _0x2ba0f9=_0x267084;var _0x11141b,_0x3220b5;if(this[_0x2ba0f9(0x22b)]=!0x0,((_0x11141b=this[_0x2ba0f9(0x289)][_0x2ba0f9(0x241)]())==null?void 0x0:_0x11141b[_0x2ba0f9(0x12e)]())!==this[_0x2ba0f9(0xf1)])return;const _0x4f17c7=(_0x3220b5=this[_0x2ba0f9(0x298)]['get'](_0x308ea6)['getCurrentSelections']())==null?void 0x0:_0x3220b5[0x0],_0x477380=this[_0x2ba0f9(0x289)][_0x2ba0f9(0x1e8)](_0x24166e[_0x2ba0f9(0x1b6)])[_0x2ba0f9(0x209)]();_0x4f17c7&&_0x477380&&this[_0x2ba0f9(0x19e)](_0x477380[_0x2ba0f9(0x127)](),_0x4f17c7);}[_0x267084(0x117)](){const _0x2d4cae=_0x267084;this[_0x2d4cae(0x22b)]=!0x1;}};Be=Bi([B(0x2,_0x19d3ff(_0x4ab7f8)),B(0x3,_0x19d3ff(Ke)),B(0x4,_0x19d3ff(_0x277671)),B(0x5,_0x121c1a),B(0x6,_0x1da808),B(0x7,_0x19d3ff(_0x550286))],Be);var Yi=Object[_0x267084(0x141)],Wi=(_0x5916a7,_0x15035b,_0x5cd033,_0x17e319)=>{const _0x26812f=_0x267084;for(var _0x196038=_0x17e319>0x1?void 0x0:_0x17e319?Yi(_0x15035b,_0x5cd033):_0x15035b,_0x1282a2=_0x5916a7[_0x26812f(0xb1)]-0x1,_0x814497;_0x1282a2>=0x0;_0x1282a2--)(_0x814497=_0x5916a7[_0x1282a2])&&(_0x196038=_0x814497(_0x196038)||_0x196038);return _0x196038;},Ce=(_0x80c51f,_0x335090)=>(_0x597d3e,_0x5c5c72)=>_0x335090(_0x597d3e,_0x5c5c72,_0x80c51f);let H=class extends _0x2699b6{constructor(_0x1eb740,_0x54b29f,_0x4dc46f){const _0x49de54=_0x267084;super(),_(this,_0x49de54(0x29b),new Map()),_(this,'_entityInit$',new _0x47c8c8()),(this[_0x49de54(0x289)]=_0x1eb740,this[_0x49de54(0x298)]=_0x54b29f,this['_collabSessionService']=_0x4dc46f,this['_init']());}[_0x267084(0x18a)](){const _0x3593d4=_0x267084;super['dispose'](),this[_0x3593d4(0x102)][_0x3593d4(0x264)](),this[_0x3593d4(0x29b)][_0x3593d4(0x236)](_0x2fe218=>_0x2fe218[_0x3593d4(0x18a)]());}[_0x267084(0xc2)](_0x54f275){const _0x258bee=_0x267084;return this[_0x258bee(0x29b)]['has'](_0x54f275)?this[_0x258bee(0x29b)]['get'](_0x54f275)['cursorInfo$']:this['_entityInit$'][_0x258bee(0x162)](_0x54fc49(_0x705e4f=>_0x705e4f[_0x258bee(0xf1)]===_0x54f275),_0x481021(_0x100e93=>_0x100e93[_0x258bee(0x9f)]));}['_init'](){const _0x56bd16=_0x267084;this['_univerInstanceService'][_0x56bd16(0x17f)](_0x24166e[_0x56bd16(0x1b6)])[_0x56bd16(0x162)](_0xae10c0(this[_0x56bd16(0x1ef)]))[_0x56bd16(0x116)](async _0x527beb=>{const _0x392391=_0x56bd16,_0x2641a4=_0x527beb[_0x392391(0x12e)](),_0x466fd3=await this[_0x392391(0x2b2)](_0x2641a4);this['_entityInit$'][_0x392391(0xdc)](_0x466fd3),this['_entities'][_0x392391(0x212)](_0x2641a4,_0x466fd3);}),this[_0x56bd16(0x289)][_0x56bd16(0x17f)](_0x24166e[_0x56bd16(0x17b)])[_0x56bd16(0x162)](_0xae10c0(this[_0x56bd16(0x1ef)]))[_0x56bd16(0x162)](_0x54fc49(_0xf87ebb=>!_0xf87ebb['getUnitId']()[_0x56bd16(0xc9)]('__')))[_0x56bd16(0x116)](async _0x5a2a8c=>{const _0x446624=_0x56bd16,_0x54a7b8=_0x5a2a8c[_0x446624(0x12e)](),_0x42f17d=await this['_startDocCollabCursor'](_0x54a7b8);this[_0x446624(0x102)]['next'](_0x42f17d),this[_0x446624(0x29b)]['set'](_0x54a7b8,_0x42f17d);}),_0xe0d349(this[_0x56bd16(0x289)]['getTypeOfUnitDisposed$'](_0x24166e[_0x56bd16(0x17b)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x24166e[_0x56bd16(0x1b6)]))[_0x56bd16(0x162)](_0xae10c0(this[_0x56bd16(0x1ef)]))[_0x56bd16(0x116)](_0x531652=>{const _0x4522ef=_0x56bd16,_0x402393=_0x531652[_0x4522ef(0x12e)](),_0x220ebb=this[_0x4522ef(0x29b)][_0x4522ef(0xf7)](_0x402393);_0x220ebb&&(_0x220ebb[_0x4522ef(0x18a)](),this[_0x4522ef(0x29b)][_0x4522ef(0x74)](_0x402393));});}async['_startSheetCollabCursor'](_0x3f702e){const _0x4315d8=_0x267084,_0x3a3954=await this[_0x4315d8(0x1d9)]['requireSession'](_0x3f702e),_0xc7ab35=this['_injector'][_0x4315d8(0x10a)](Be,_0x3f702e,_0x3a3954);return _0xc7ab35[_0x4315d8(0x90)](),_0xc7ab35;}async[_0x267084(0x21c)](_0x35f262){const _0x32aaf5=_0x267084,_0x2d643b=await this[_0x32aaf5(0x1d9)][_0x32aaf5(0x174)](_0x35f262),_0x96b79=this[_0x32aaf5(0x298)][_0x32aaf5(0x10a)](xe,_0x35f262,_0x2d643b);return _0x96b79[_0x32aaf5(0x90)](),_0x96b79;}};H=Wi([Ce(0x0,_0x121c1a),Ce(0x1,_0x19d3ff(_0x4ab7f8)),Ce(0x2,_0x19d3ff(_0x30d8be))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x292bf8,_0x2f1c35){const _0x4adfcb=_0x267084;let {radius:_0x3e5ff0,width:_0x4e6683,height:_0x2bfaf4}=_0x2f1c35;_0x3e5ff0=_0x3e5ff0!=null?_0x3e5ff0:0x0,_0x4e6683=_0x4e6683!=null?_0x4e6683:0x1e,_0x2bfaf4=_0x2bfaf4!=null?_0x2bfaf4:0x1e;let _0x5b8b07=0x0,_0x5d5b9a=0x0,_0x57d6e6=0x0;_0x5b8b07=_0x5d5b9a=_0x57d6e6=Math['min'](_0x3e5ff0,_0x4e6683/0x2,_0x2bfaf4/0x2),_0x292bf8[_0x4adfcb(0x210)](),_0x292bf8[_0x4adfcb(0x1c3)](_0x5b8b07,0x0),_0x292bf8[_0x4adfcb(0x248)](_0x4e6683-_0x5d5b9a,0x0),_0x292bf8['arc'](_0x4e6683-_0x5d5b9a,_0x5d5b9a,_0x5d5b9a,Math['PI']*0x3/0x2,0x0,!0x1),_0x292bf8['lineTo'](_0x4e6683,_0x2bfaf4-_0x57d6e6),_0x292bf8[_0x4adfcb(0x19c)](_0x4e6683-_0x57d6e6,_0x2bfaf4-_0x57d6e6,_0x57d6e6,0x0,Math['PI']/0x2,!0x1),_0x292bf8[_0x4adfcb(0x248)](0x0,_0x2bfaf4),_0x292bf8['lineTo'](0x0,_0x5b8b07),_0x292bf8[_0x4adfcb(0x19c)](_0x5b8b07,_0x5b8b07,_0x5b8b07,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x292bf8[_0x4adfcb(0x12c)](),_0x2f1c35[_0x4adfcb(0x1f8)]&&(_0x292bf8['save'](),_0x292bf8[_0x4adfcb(0x11b)]=_0x2f1c35[_0x4adfcb(0x1f8)],_0x2f1c35[_0x4adfcb(0x1c9)]===_0x4adfcb(0x22d)?_0x292bf8['fill'](_0x4adfcb(0x22d)):_0x292bf8[_0x4adfcb(0x1f8)](),_0x292bf8[_0x4adfcb(0x190)]());}class Ee extends _0x48592f{constructor(_0x359010,_0x1a1644){const _0x38760e=_0x267084;super(_0x359010,_0x1a1644),_(this,'color'),_(this,_0x38760e(0x1a5)),(this[_0x38760e(0x22e)]=_0x1a1644==null?void 0x0:_0x1a1644[_0x38760e(0x22e)],this['text']=_0x1a1644==null?void 0x0:_0x1a1644[_0x38760e(0x1a5)]);}static[_0x267084(0x265)](_0x3e2a7f,_0x5214d1){const _0x13f29c=_0x267084,{text:_0x5eb804,color:_0x1d8d1f}=_0x5214d1;_0x3e2a7f['save'](),_0x3e2a7f['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2f82fc=_0x3e2a7f[_0x13f29c(0x164)](_0x5eb804)[_0x13f29c(0x1ec)],_0x5a3cb2=Math[_0x13f29c(0x1f1)](_0x2f82fc+0x2*Re,at);Vi(_0x3e2a7f,{'height':Q,'radius':0x4,'width':_0x5a3cb2,'fill':_0x1d8d1f}),_0x3e2a7f[_0x13f29c(0x11b)]='#FFF';const _0x403d0e=Re,_0xbbf2b4=Q-ji,_0x233787=at-0x2*Re;if(_0x2f82fc>_0x233787){let _0x3f92eb='',_0xf1f2e5=0x0;for(const _0x213ab7 of _0x5eb804){const _0x238215=_0x3e2a7f[_0x13f29c(0x164)](_0x213ab7)[_0x13f29c(0x1ec)];if(_0xf1f2e5+_0x238215<=_0x233787-_0x3e2a7f[_0x13f29c(0x164)](_0x13f29c(0x142))[_0x13f29c(0x1ec)])_0x3f92eb+=_0x213ab7,_0xf1f2e5+=_0x238215;else{_0x3f92eb+='...';break;}}_0x3e2a7f[_0x13f29c(0xcf)](_0x3f92eb,_0x403d0e,_0xbbf2b4);}else _0x3e2a7f[_0x13f29c(0xcf)](_0x5eb804,_0x403d0e,_0xbbf2b4);_0x3e2a7f[_0x13f29c(0x190)]();}[_0x267084(0xaa)](_0x3af75e){Ee['drawWith'](_0x3af75e,this);}}const De=_0x267084(0xe6),Xi='collab-text-range-',Gi=_0x267084(0x24f),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ct{constructor(_0x502b85,_0x19154b,_0x158dfd,_0x2a5818){const _0x17719e=_0x267084;_(this,_0x17719e(0x1e1),[]),_(this,_0x17719e(0xf3),null),_(this,_0x17719e(0x11f),null),_(this,'_anchorDot',null),_(this,_0x17719e(0x281),null),_(this,_0x17719e(0x250),null),(this[_0x17719e(0x108)]=_0x502b85,this[_0x17719e(0x29a)]=_0x19154b,this[_0x17719e(0x285)]=_0x158dfd,this['_document']=_0x2a5818,this['_render']());}set['_hover'](_0x1d4228){const _0x213338=_0x267084;_0x1d4228?(this[_0x213338(0x17a)]&&this['_anchorDot'][_0x213338(0x1b7)](),this[_0x213338(0x11f)]&&this['_textBubble'][_0x213338(0x16a)]()):(this[_0x213338(0x17a)]&&this[_0x213338(0x17a)]['show'](),this[_0x213338(0x11f)]&&this[_0x213338(0x11f)][_0x213338(0x1b7)]());}[_0x267084(0x18a)](){const _0x3afba7=_0x267084;for(const _0x440d60 of this[_0x3afba7(0x1e1)])_0x440d60['dispose']();this[_0x3afba7(0x11f)]&&this['_textBubble']['dispose'](),this[_0x3afba7(0x17a)]&&this[_0x3afba7(0x17a)][_0x3afba7(0x18a)](),this[_0x3afba7(0xf3)]&&this[_0x3afba7(0xf3)][_0x3afba7(0x18a)](),this[_0x3afba7(0x250)]&&this[_0x3afba7(0x250)]();}[_0x267084(0x196)](){const _0x558aa1=_0x267084;var _0x456691;const {_docSkeleton:_0x3f6578,_document:_0x6d578a}=this,{color:_0x690d63,name:_0x40eaec,ranges:_0x506017}=this['_cursor'],_0x2fb572=_0x6d578a[_0x558aa1(0x1cc)](),{docsLeft:_0x2c088a,docsTop:_0x381b76}=_0x2fb572,_0xb8f0f3=new _0x49e5c6(_0x2fb572,_0x3f6578);for(const {startOffset:_0x9dd2e7,endOffset:_0x2c0fab,rangeType:_0x6da89c,segmentId:_0x1aad84,segmentPage:_0x513922,collapsed:_0x3e379b,isActive:_0x4df96d}of _0x506017){const _0x588cba=_0x3f6578[_0x558aa1(0x262)](_0x9dd2e7,!0x0,_0x1aad84,_0x513922);let _0x48edcc=_0x3f6578[_0x558aa1(0x262)](_0x2c0fab,!0x0,_0x1aad84,_0x513922);if(_0x48edcc==null&&(_0x48edcc=_0x3f6578['findNodePositionByCharIndex'](_0x2c0fab-0x1,!0x1,_0x1aad84,_0x513922)),_0x4df96d){const {contentBoxPointGroup:_0x575d20}=_0xb8f0f3[_0x558aa1(0x1ac)](_0x48edcc,_0x48edcc);if(_0x575d20['length']===0x0)continue;this[_0x558aa1(0x26e)](_0x690d63,_0x575d20,_0x2c088a,_0x381b76,_0x40eaec),this[_0x558aa1(0x250)]=this['_handleHover']();}if(_0x588cba&&_0x48edcc){if(_0x6da89c===_0x324e87['RECT']){const _0xaf9a38=new _0x307f3d(_0x2fb572,_0x3f6578),{pointGroup:_0x137c4a}=(_0x456691=_0xaf9a38[_0x558aa1(0x1ac)](_0x588cba,_0x48edcc))!=null?_0x456691:{};if(_0x137c4a==null||_0x137c4a[_0x558aa1(0xb1)]===0x0)continue;this[_0x558aa1(0x18d)](_0x690d63,_0x137c4a,_0x2c088a,_0x381b76);}else{if(!_0x3e379b){const {borderBoxPointGroup:_0x24ca21}=_0xb8f0f3['getRangePointData'](_0x588cba,_0x48edcc);if(_0x24ca21[_0x558aa1(0xb1)]===0x0)continue;this[_0x558aa1(0x278)](_0x690d63,_0x24ca21,_0x2c088a,_0x381b76);}}}}}[_0x267084(0x26e)](_0x52f927,_0xfd8b38,_0x102c65,_0x143613,_0x5619ed){const _0x344c26=_0x267084,_0x9c010d=this[_0x344c26(0xa3)](_0xfd8b38),{left:_0x2d98ab,top:_0x16c299,height:_0x210f19}=_0x9c010d,_0x5a7779=this[_0x344c26(0x29c)](),_0x1e58b4=zi/_0x5a7779,_0x162b22=new _0x3692f4(De+_0x3add1d(z),{'left':_0x2d98ab+_0x102c65-_0x1e58b4,'top':_0x16c299+_0x143613,'height':_0x210f19,'width':Ki,'fill':_0x52f927||_0x16f499(_0x3d6b49[_0x344c26(0x160)],0x0),'strokeWidth':_0x1e58b4,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x162b22,this[_0x344c26(0x29a)]['addObject'](_0x162b22,_0x314e8b);const _0x26e616=new _0x3692f4(De+_0x3add1d(z),{'left':_0x2d98ab+_0x102c65-_0x1e58b4,'top':_0x16c299+_0x143613-be/0x2,'height':be,'width':be,'fill':_0x52f927||_0x16f499(_0x3d6b49[_0x344c26(0x160)],0x0),'strokeWidth':0x0,'stroke':_0x52f927||_0x16f499(_0x3d6b49[_0x344c26(0x160)],0x0),'evented':!0x1});this[_0x344c26(0x17a)]=_0x26e616,this['_scene'][_0x344c26(0xe4)](_0x26e616,_0x314e8b);const _0xa0f762=new Ee(De+_0x3add1d(z),{'left':_0x2d98ab+_0x102c65-_0x1e58b4,'top':_0x16c299+_0x143613-Q,'text':_0x5619ed,'color':_0x52f927});this[_0x344c26(0x11f)]=_0xa0f762,this[_0x344c26(0x29a)][_0x344c26(0xe4)](_0xa0f762,_0x314e8b),this['_hover']=!0x1;}['_handleHover'](){const _0x7162c0=_0x267084,_0x1eac02=this[_0x7162c0(0xf3)][_0x7162c0(0x2a4)][_0x7162c0(0x11e)](()=>{const _0x7d88ca=_0x7162c0;this[_0x7d88ca(0xf9)]=!0x0;}),_0x421b02=this[_0x7162c0(0xf3)][_0x7162c0(0x86)][_0x7162c0(0x11e)](()=>{const _0x23d5a0=_0x7162c0;this[_0x23d5a0(0x281)]&&clearTimeout(this[_0x23d5a0(0x281)]),this[_0x23d5a0(0x281)]=setTimeout(()=>{const _0x5ef7ad=_0x23d5a0;this[_0x5ef7ad(0xf9)]=!0x1;},0x7d0);});return()=>{const _0x24a26e=_0x7162c0;_0x1eac02['unsubscribe'](),_0x421b02[_0x24a26e(0x290)]();};}['_drawTextRange'](_0x23564f,_0x62a168,_0x4a8965,_0x1ea100){const _0x1f4376=_0x267084,_0x3aaf02=new _0x51eb2d(_0x23564f)[_0x1f4376(0x11d)](0.2)[_0x1f4376(0x1d2)](),_0x107382=new _0x328f70(Xi+_0x3add1d(z),{'pointsGroup':_0x62a168,'fill':_0x3aaf02||_0x16f499(_0x3d6b49[_0x1f4376(0x160)],0.2),'left':_0x4a8965,'top':_0x1ea100,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1f4376(0x224)](_0x107382),this[_0x1f4376(0x29a)][_0x1f4376(0xe4)](_0x107382,_0x314e8b);}[_0x267084(0x18d)](_0x16641d,_0x4432a8,_0x4569e3,_0x4b59fd){const _0x43fa61=_0x267084,_0x299ca0=new _0x51eb2d(_0x16641d)[_0x43fa61(0x11d)](0.2)[_0x43fa61(0x1d2)](),_0x4a648a=new _0x328f70(Gi+_0x3add1d(z),{'pointsGroup':_0x4432a8,'fill':_0x299ca0||_0x16f499(_0x3d6b49[_0x43fa61(0x160)],0.2),'left':_0x4569e3,'top':_0x4b59fd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x43fa61(0x1e1)][_0x43fa61(0x224)](_0x4a648a),this[_0x43fa61(0x29a)][_0x43fa61(0xe4)](_0x4a648a,_0x314e8b);}[_0x267084(0xa3)](_0x5b650c){const _0x5746ea=_0x5b650c[0x0],_0x4e7de5=_0x5746ea[0x0],_0x4f0374=_0x5746ea[0x2],{x:_0x2972c1,y:_0x114508}=_0x4e7de5,{x:_0x2cddc0,y:_0x364333}=_0x4f0374;return{'left':_0x2972c1,'top':_0x114508,'width':_0x2cddc0-_0x2972c1,'height':_0x364333-_0x114508};}[_0x267084(0x29c)](){const _0x5b8f5b=_0x267084,{scaleX:_0x36dcc2,scaleY:_0x30b148}=this[_0x5b8f5b(0x29a)][_0x5b8f5b(0x299)]();return Math['max'](_0x36dcc2,_0x30b148);}}var Zi=Object[_0x267084(0x141)],Qi=(_0x39971e,_0x1d6e56,_0x39e332,_0x3e463c)=>{for(var _0x18c98f=_0x3e463c>0x1?void 0x0:_0x3e463c?Zi(_0x1d6e56,_0x39e332):_0x1d6e56,_0x3c86cb=_0x39971e['length']-0x1,_0x14158e;_0x3c86cb>=0x0;_0x3c86cb--)(_0x14158e=_0x39971e[_0x3c86cb])&&(_0x18c98f=_0x14158e(_0x18c98f)||_0x18c98f);return _0x18c98f;},ie=(_0x40b140,_0x47d3fd)=>(_0x5e14f1,_0x43084e)=>_0x47d3fd(_0x5e14f1,_0x43084e,_0x40b140);let Fe=class extends _0x2699b6{constructor(_0x5cfdd9,_0x250d67,_0x23206b,_0x2a0848,_0x74b51e){const _0x3d5305=_0x267084;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x3d5305(0x85)]=_0x5cfdd9,this[_0x3d5305(0x213)]=_0x250d67,this['_collabCursorController']=_0x23206b,this[_0x3d5305(0x106)]=_0x2a0848,this[_0x3d5305(0x1d5)]=_0x74b51e,this[_0x3d5305(0x2a0)]());}[_0x267084(0x2a0)](){const _0x39f772=_0x267084,_0x3daca9=this[_0x39f772(0x85)]['unitId'],_0x13564b=this[_0x39f772(0x213)];this[_0x39f772(0x134)](_0x5901e([this['_collabCursorController']['getCollabCursors$'](_0x3daca9),this['_themeService']['currentTheme$']])['pipe'](_0x53e19c(([_0xd0e83d,_0x2a7a70])=>({'skeleton':_0x13564b['getSkeleton'](),'cursors':[..._0xd0e83d['values']()]['flatMap'](_0x17a754=>({..._0x17a754,'color':this[_0x39f772(0x1d5)][_0x39f772(0xd7)](_0x17a754[_0x39f772(0x22e)])}))})))[_0x39f772(0x116)](_0x3a586c=>{const _0x213084=_0x39f772;if(this[_0x213084(0x243)](),_0x3a586c){const {skeleton:_0x46de6f,cursors:_0x34c424}=_0x3a586c;this['_updateCollabCursors'](_0x46de6f,_0x34c424);}})),this[_0x39f772(0xa9)](),this[_0x39f772(0x238)]();}[_0x267084(0x176)](_0x4561da,_0x5aae22){const _0x5bb21f=_0x267084,{scene:_0x14179f,mainComponent:_0x5c0bb9}=this[_0x5bb21f(0x85)],_0x2ea809=_0x5aae22['map'](_0x3d0287=>new ct(_0x3d0287,_0x14179f,_0x4561da,_0x5c0bb9));this[_0x5bb21f(0x9a)]=_0x2ea809,this[_0x5bb21f(0x77)]=_0x5aae22;}[_0x267084(0xa2)](){const _0xa41f60=_0x267084;this[_0xa41f60(0x243)]();const {scene:_0x493b9e,mainComponent:_0x51468c}=this['_context'],_0x5b3b57=this['_docSkeletonManagerService'][_0xa41f60(0x216)](),_0x38d452=this[_0xa41f60(0x77)]['map'](_0x436ee5=>new ct(_0x436ee5,_0x493b9e,_0x5b3b57,_0x51468c));this[_0xa41f60(0x9a)]=_0x38d452;}[_0x267084(0x243)](){const _0x2d5e5d=_0x267084;this['_cursorShapes'][_0x2d5e5d(0x236)](_0x58ac32=>_0x58ac32['dispose']()),this[_0x2d5e5d(0x9a)]=[];}[_0x267084(0x238)](){const _0x43dbec=_0x267084,_0x5d7cfa=[_0x2d6594['id']];this[_0x43dbec(0x134)](this['_commandService']['onCommandExecuted'](_0x2391bc=>{const _0x24c57b=_0x43dbec;_0x5d7cfa[_0x24c57b(0x1f0)](_0x2391bc['id'])&&_0x2391bc[_0x24c57b(0x199)][_0x24c57b(0x2aa)]===this[_0x24c57b(0x85)][_0x24c57b(0x2aa)]&&this[_0x24c57b(0xa2)]();}));}[_0x267084(0xa9)](){const _0x275422=_0x267084;this[_0x275422(0x134)](_0x690a46(this[_0x275422(0x85)][_0x275422(0x1f7)][_0x275422(0x181)])['pipe'](_0x42660b(_0x2c74b1=>_0x2c74b1[_0x275422(0x269)]===_0x390bb6['resize']),_0x1e846c(0x10))[_0x275422(0x116)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x19d3ff(_0x437e0f)),ie(0x2,_0x19d3ff(H)),ie(0x3,_0x1da808),ie(0x4,_0x19d3ff(_0x51cb02))],Fe);const qi=0x1,en=1.5;class tn extends _0x48592f{constructor(_0x39d591,_0x429ed0){const _0x25486f=_0x267084;super(_0x39d591,_0x429ed0),_(this,_0x25486f(0x261)),_(this,_0x25486f(0x215),!0x1),_(this,_0x25486f(0x10d)),_(this,'_name',''),_(this,_0x25486f(0x143),_0x25486f(0xb3)),_(this,_0x25486f(0x2b4)),(_0x429ed0&&this[_0x25486f(0x7e)](_0x429ed0),this[_0x25486f(0x2a4)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x25486f(0x86)][_0x25486f(0x11e)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x267084(0x7e)](_0x3fed3f){const _0x321690=_0x267084;var _0x150929,_0x12a6ac,_0x12c318,_0xe8e8a8,_0x1f8d00,_0x3f7ea2;this[_0x321690(0x261)]=(_0x150929=_0x3fed3f[_0x321690(0x22e)])!=null?_0x150929:this[_0x321690(0x261)],this['_hovered']=(_0x12a6ac=_0x3fed3f[_0x321690(0x28f)])!=null?_0x12a6ac:this[_0x321690(0x215)],this[_0x321690(0x10d)]=(_0x12c318=_0x3fed3f[_0x321690(0x20e)])!=null?_0x12c318:this[_0x321690(0x10d)],this[_0x321690(0x242)]=(_0xe8e8a8=_0x3fed3f[_0x321690(0xc6)])!=null?_0xe8e8a8:this[_0x321690(0x242)],this[_0x321690(0x143)]=(_0x1f8d00=_0x3fed3f[_0x321690(0xc7)])!=null?_0x1f8d00:this[_0x321690(0x143)],this['_backgroundColor']=(_0x3f7ea2=_0x3fed3f[_0x321690(0x107)])!=null?_0x3f7ea2:this[_0x321690(0x2b4)],this[_0x321690(0x1ea)]({'width':_0x3fed3f[_0x321690(0x1ec)],'height':_0x3fed3f[_0x321690(0xbf)]});}['onMouseMove'](_0xb17744){const _0x33759e=_0x267084,{row:_0x55e813,column:_0x4c9708}=_0xb17744;if(_0x55e813>=this[_0x33759e(0x10d)][_0x33759e(0x7a)]&&_0x55e813<=this[_0x33759e(0x10d)][_0x33759e(0x14b)]&&_0x4c9708>=this[_0x33759e(0x10d)][_0x33759e(0xea)]&&_0x4c9708<=this[_0x33759e(0x10d)][_0x33759e(0x1e6)]){this[_0x33759e(0x7e)]({'hovered':!0x0});return;}this[_0x33759e(0x7e)]({'hovered':!0x1});}[_0x267084(0xc3)](_0x3399d3){return!0x1;}['_draw'](_0x1ca675){const _0x47b2fc=_0x267084;_0x3692f4[_0x47b2fc(0x265)](_0x1ca675,{'width':this['width'],'height':this[_0x47b2fc(0xbf)],'strokeWidth':en,'stroke':this[_0x47b2fc(0x261)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x47b2fc(0x215)]&&(_0x1ca675[_0x47b2fc(0x15c)](),_0x1ca675['transform'](0x1,0x0,0x0,0x1,this[_0x47b2fc(0x1ec)],this[_0x47b2fc(0x143)]===_0x47b2fc(0x97)?0x0:-Q),Ee[_0x47b2fc(0x265)](_0x1ca675,{'text':this[_0x47b2fc(0x242)],'color':this[_0x47b2fc(0x261)]}),_0x1ca675[_0x47b2fc(0x190)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x1097eb,_0x56762f,_0x105a29,_0x21414b)=>{const _0x4a15ae=_0x267084;for(var _0x448a5a=_0x21414b>0x1?void 0x0:_0x21414b?sn(_0x56762f,_0x105a29):_0x56762f,_0x447f1a=_0x1097eb[_0x4a15ae(0xb1)]-0x1,_0x51b10f;_0x447f1a>=0x0;_0x447f1a--)(_0x51b10f=_0x1097eb[_0x447f1a])&&(_0x448a5a=_0x51b10f(_0x448a5a)||_0x448a5a);return _0x448a5a;},Ne=(_0x129892,_0x189ca5)=>(_0x334e4b,_0xe066df)=>_0x189ca5(_0x334e4b,_0xe066df,_0x129892);const rn=0x1389;let ke=class extends _0x2699b6{constructor(_0x188818,_0x4d5ffc,_0xeb2f96,_0x5adbcd){const _0x2d5211=_0x267084;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x188818,this[_0x2d5211(0x1b8)]=_0x4d5ffc,this['_collabCursorController']=_0xeb2f96,this[_0x2d5211(0x1d5)]=_0x5adbcd,this[_0x2d5211(0x2a0)]());}[_0x267084(0x2a0)](){const _0x3b1708=_0x267084;this[_0x3b1708(0x1b8)][_0x3b1708(0x11c)][_0x3b1708(0x162)](_0xf7d2a1(this['dispose$']),_0x4c118e(_0x111a3e=>{const _0x52ead9=_0x3b1708;if(_0x111a3e){const _0x292b79=_0x111a3e[_0x52ead9(0x233)];return _0x5901e(this[_0x52ead9(0x2ae)]['getCollabCursors$'](this[_0x52ead9(0x85)]['unitId']),this['_themeService'][_0x52ead9(0x1bc)])[_0x52ead9(0x162)](_0x53e19c(([_0x10ec1f,_0x4ebda8])=>{const _0x223d0a=new Map();return _0x10ec1f['forEach']((_0x5bd29f,_0xa57243)=>{const _0x14f137=_0x1936;if(_0x5bd29f[_0x14f137(0x1a4)]===_0x292b79){const _0x360d04={..._0x5bd29f};_0x360d04[_0x14f137(0x22e)]=this[_0x14f137(0x1d5)][_0x14f137(0xd7)](_0x5bd29f[_0x14f137(0x22e)]),_0x223d0a[_0x14f137(0x212)](_0xa57243,_0x360d04);}}),{'skeleton':_0x111a3e,'cursors':_0x223d0a};}));}return _0x243860({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0xba8b38,cursors:_0x3e547e})=>{const _0x341fcd=_0x3b1708;this[_0x341fcd(0x243)](),_0xba8b38&&this[_0x341fcd(0x176)](_0xba8b38,_0x3e547e);}),this[_0x3b1708(0x1b8)][_0x3b1708(0x11c)][_0x3b1708(0x116)](_0x34b14a=>{const _0x102504=_0x3b1708;if(_0x34b14a==null)return;const {skeleton:_0x12f040}=_0x34b14a,{scene:_0x4aa252}=this['_context'];_0x4aa252['onPointerMove$'][_0x102504(0x11e)](_0x1dbae4(_0x3f3b8a=>{const _0x21d6e7=_0x102504;var _0x2f3e68,_0x1804f5;const {offsetX:_0x2df7eb,offsetY:_0x1676fd}=_0x3f3b8a,{x:_0x2e7efe,y:_0x116f07}=_0x4aa252['getRelativeToViewportCoord'](_0x2f462d['FromArray']([_0x2df7eb,_0x1676fd])),{scaleX:_0x40bb43,scaleY:_0x4c9db2}=_0x4aa252[_0x21d6e7(0x299)](),_0x383deb=_0x4aa252['getViewport'](_0x37de76[_0x21d6e7(0x1b3)]),_0x202a5b=_0x4aa252['getVpScrollXYInfoByPosToVp'](_0x2f462d[_0x21d6e7(0x280)]([_0x2e7efe,_0x116f07]),_0x383deb),_0x19f66c=_0x12f040[_0x21d6e7(0x98)](_0x2df7eb,_0x1676fd,_0x40bb43,_0x4c9db2,_0x202a5b);((_0x2f3e68=this[_0x21d6e7(0x17e)])==null?void 0x0:_0x2f3e68['column'])===_0x19f66c['column']&&((_0x1804f5=this[_0x21d6e7(0x17e)])==null?void 0x0:_0x1804f5['row'])===_0x19f66c[_0x21d6e7(0x169)]||this[_0x21d6e7(0x77)][_0x21d6e7(0x236)](_0x2ca39f=>{const _0x3995ad=_0x21d6e7;_0x2ca39f[_0x3995ad(0xde)](_0x19f66c);});},0x64));});}[_0x267084(0x176)](_0x98175a,_0x213d90){const _0x5609a6=_0x267084;var _0x3bd1ff;const _0x34fa19=(_0x3bd1ff=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3bd1ff['skeleton'];if(!_0x34fa19)return;const _0x2473ba=this[_0x5609a6(0x15a)]();if(!_0x2473ba)return;this[_0x5609a6(0x77)][_0x5609a6(0x236)](_0xab7b2d=>{const _0x3d5d8a=_0x5609a6;_0xab7b2d[_0x3d5d8a(0x151)]();});const {scene:_0x537ab5}=_0x2473ba,_0x476a35=on(Array[_0x5609a6(0x286)](_0x213d90[_0x5609a6(0x1b4)]()))['map'](_0x562623=>{const _0x2036d9=_0x5609a6,{color:_0x4d1745,range:_0x4279b0,name:_0x395f63,selection:_0xb171de,sheetID:_0x11be79}=_0x562623,{startColumn:_0x4d7a15,startRow:_0x347692,endColumn:_0x20b523,endRow:_0x177fa7}=_0x4279b0,_0x55a5cb=_0x6cc202(_0x347692,_0x4d7a15,_0x537ab5,_0x34fa19),_0x4c885a=_0x6cc202(_0x177fa7,_0x20b523,_0x537ab5,_0x34fa19),{columnHeaderHeightAndMarginTop:_0x5f4d7c}=_0x34fa19,{startX:_0x77578a,startY:_0x3bf2c8}=_0x55a5cb,{endX:_0x2700e8,endY:_0x184680}=_0x4c885a,_0x4e427f=_0x2700e8-_0x77578a,_0x3ef925=_0x184680-_0x3bf2c8,_0x91d96e={'labelPosition':_0x3bf2c8-_0x5f4d7c>=Q?_0x2036d9(0xb3):'bottom','sheetID':_0x11be79,'range':_0x4279b0,'color':_0x4d1745,'name':_0x395f63,'selection':_0xb171de,'left':_0x77578a,'top':_0x3bf2c8,'width':_0x4e427f,'height':_0x3ef925,'evented':!0x1,'zIndex':rn};return new tn(_0x395f63,_0x91d96e);});_0x537ab5['addObjects'](_0x476a35,qi),this[_0x5609a6(0x77)]=new Set(_0x476a35);}[_0x267084(0x243)](){const _0x806f8=_0x267084;var _0x5c84a2;(_0x5c84a2=this['_cursors'])==null||_0x5c84a2[_0x806f8(0x236)](_0x19bf0b=>_0x19bf0b[_0x806f8(0x18a)]());}[_0x267084(0x15a)](){const _0x53d39b=_0x267084;return _0x1c44a6(this['_context'][_0x53d39b(0xf2)],this['_context']);}};ke=nn([Ne(0x1,_0x19d3ff(_0x42940b)),Ne(0x2,_0x19d3ff(H)),Ne(0x3,_0x19d3ff(_0x51cb02))],ke);function on(_0x2cef67){const _0x3c60a9=_0x267084,_0x339a00=new Map();return _0x2cef67[_0x3c60a9(0x236)](_0x197539=>{const _0x4fa08a=_0x3c60a9;if(_0x339a00[_0x4fa08a(0x2b0)](_0x197539[_0x4fa08a(0x1ce)])){const _0x58dbd5=_0x339a00[_0x4fa08a(0xf7)](_0x197539[_0x4fa08a(0x1ce)]);_0x58dbd5[_0x4fa08a(0xc6)]+=',\x20'+_0x197539[_0x4fa08a(0xc6)];}else _0x339a00['set'](_0x197539[_0x4fa08a(0x1ce)],_0x197539);}),Array['from'](_0x339a00[_0x3c60a9(0x1b4)]());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x1a29db,_0x2cf9f9,_0x508c43,_0x59c9d2)=>{for(var _0x5421c4=_0x59c9d2>0x1?void 0x0:_0x59c9d2?an(_0x2cf9f9,_0x508c43):_0x2cf9f9,_0x5cfe1d=_0x1a29db['length']-0x1,_0x4fffd3;_0x5cfe1d>=0x0;_0x5cfe1d--)(_0x4fffd3=_0x1a29db[_0x5cfe1d])&&(_0x5421c4=_0x4fffd3(_0x5421c4)||_0x5421c4);return _0x5421c4;},F=(_0x279eaa,_0x423595)=>(_0x1d712f,_0x17bf18)=>_0x423595(_0x1d712f,_0x17bf18,_0x279eaa);let _e=class extends _0x15b4c2{constructor(_0x23ac01,_0x1b09cf,_0x414f1f,_0x716c1a,_0x1f0cdf,_0x54617e){const _0x38f6f3=_0x267084;super(),this[_0x38f6f3(0x71)]=_0x23ac01,this['_localCacheService']=_0x1b09cf,this['_collaborationUIEventService']=_0x414f1f,this[_0x38f6f3(0x268)]=_0x716c1a,this[_0x38f6f3(0x133)]=_0x1f0cdf,this[_0x38f6f3(0x220)]=_0x54617e,this[_0x38f6f3(0x19b)](),this[_0x38f6f3(0xa1)]();}[_0x267084(0x19b)](){const _0x4af583=_0x267084;this[_0x4af583(0x134)](this[_0x4af583(0x71)]['registerBeforeClose'](()=>{const _0x4ff142=_0x4af583;if(this[_0x4ff142(0x21e)][_0x4ff142(0x171)][_0x4ff142(0x25e)])return this[_0x4ff142(0x220)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x267084(0xa1)](){const _0x132c6f=_0x267084;this[_0x132c6f(0x134)](this['_collaborationUIEventService'][_0x132c6f(0xac)][_0x132c6f(0x116)](_0x309bed=>{const _0x30fbf9=_0x132c6f;_0x309bed['id']===_0x13accd[_0x30fbf9(0x20a)]&&this['_messageService'][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this[_0x30fbf9(0x220)]['t']('collaboration.single-unit.warning')}),_0x309bed['id']===_0x13accd[_0x30fbf9(0x13a)]&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this['_localeService']['t'](_0x30fbf9(0xf6))}),_0x309bed['id']===_0x13accd['PERMISSION_DENIED']&&this[_0x30fbf9(0x133)][_0x30fbf9(0x16a)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x30fbf9(0x26f)),'type':_0x30fbf9(0x145),'duration':0x0}),_0x309bed['id']===_0x13accd['CONFLICT']&&this['_messageService'][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x198)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x309bed['data']+')'}),_0x309bed['id']===_0x13accd[_0x30fbf9(0x1fd)]&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this[_0x30fbf9(0x220)]['t'](_0x309bed[_0x30fbf9(0x255)]||'')}),_0x309bed['id']===_0x13accd['SOCKET_FAILED_RETRY']&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x1eb)],'content':this[_0x30fbf9(0x220)]['t'](_0x30fbf9(0x182))}),_0x309bed['id']===_0x13accd['SOCKET_FAILED']&&this['_messageService']['show']({'type':_0x3d9040[_0x30fbf9(0x198)],'content':this[_0x30fbf9(0x220)]['t'](_0x30fbf9(0x23a))}),_0x309bed['id']===_0x13accd[_0x30fbf9(0x156)]&&this[_0x30fbf9(0x268)][_0x30fbf9(0x16a)]({'type':_0x3d9040[_0x30fbf9(0x198)],'content':this[_0x30fbf9(0x220)]['t'](_0x30fbf9(0x263))});}));}};_e=cn([F(0x0,_0x53993a),F(0x1,_0x1d4097),F(0x2,_0x19d3ff(_0x463587)),F(0x3,_0x238f17),F(0x4,_0x2018e3),F(0x5,_0x19d3ff(_0x392a0b))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x276bb2,_0x4710c9,_0x506166,_0x33f516)=>{const _0x4bd070=_0x267084;for(var _0x12a995=_0x33f516>0x1?void 0x0:_0x33f516?_n(_0x4710c9,_0x506166):_0x4710c9,_0x2bf810=_0x276bb2[_0x4bd070(0xb1)]-0x1,_0x45cdec;_0x2bf810>=0x0;_0x2bf810--)(_0x45cdec=_0x276bb2[_0x2bf810])&&(_0x12a995=_0x45cdec(_0x12a995)||_0x12a995);return _0x12a995;},ne=(_0x4ee54d,_0x2a56f0)=>(_0x168fc8,_0x17ae2b)=>_0x2a56f0(_0x168fc8,_0x17ae2b,_0x4ee54d);let le=class extends _0x15b4c2{constructor(_0x239ab5,_0x86b2f3,_0x5e0fb2,_0x5d3498){const _0x2cecb7=_0x267084;super(),_(this,_0x2cecb7(0xc4)),(this[_0x2cecb7(0x298)]=_0x239ab5,this[_0x2cecb7(0x109)]=_0x86b2f3,this[_0x2cecb7(0x84)]=_0x5e0fb2,this[_0x2cecb7(0x251)]=_0x5d3498,this[_0x2cecb7(0x2a0)]());}['_init'](){const _0x23ea6b=_0x267084;this[_0x23ea6b(0x132)](),this[_0x23ea6b(0x232)](),this[_0x23ea6b(0x197)](),this['_initUserListener']();}[_0x267084(0xe1)](){const _0x3fc44a=_0x267084;this[_0x3fc44a(0x134)](this[_0x3fc44a(0x251)][_0x3fc44a(0x1c8)]['subscribe'](_0x188fcf=>{const _0x5e1fa7=_0x3fc44a;this['_memberID']=_0x188fcf==null?void 0x0:_0x188fcf[_0x5e1fa7(0xab)];}));}['_initWindowErrorListener'](){const _0x30efa7=_0x267084,_0x78debb=_0x3ddaae=>{const _0x3cef8=_0x1936;var _0x4b2b51;this[_0x3cef8(0xd9)](_0x3cef8(0x145),'[Window\x20Error]:\x20'+_0x3ddaae[_0x3cef8(0x7b)]+_0x3cef8(0x208)+_0x3ddaae[_0x3cef8(0x1ed)]+':'+_0x3ddaae[_0x3cef8(0x9e)]+':'+_0x3ddaae[_0x3cef8(0xca)]+'\x0a'+(((_0x4b2b51=_0x3ddaae['error'])==null?void 0x0:_0x4b2b51[_0x3cef8(0x1cb)])||''));};window[_0x30efa7(0x1c2)](_0x30efa7(0x145),_0x78debb),this[_0x30efa7(0x134)](()=>{const _0x533fd6=_0x30efa7;window[_0x533fd6(0x2b3)]('error',_0x78debb);});}['_initUnhandledRejectionListener'](){const _0x257ce0=_0x267084,_0x4db052=_0x5f0f58=>{const _0x5a97ac=_0x1936;this[_0x5a97ac(0xd9)](_0x5a97ac(0x145),'[Unhandled\x20Rejection]:\x20'+_0x5f0f58[_0x5a97ac(0x24c)]);};window['addEventListener'](_0x257ce0(0x24a),_0x4db052),this['disposeWithMe'](()=>{const _0x4535de=_0x257ce0;window['removeEventListener'](_0x4535de(0x24a),_0x4db052);});}[_0x267084(0x197)](){const _0x146582=_0x267084,_0x58d62c=this[_0x146582(0x84)][_0x146582(0x145)][_0x146582(0x150)](this[_0x146582(0x84)]);this[_0x146582(0x84)][_0x146582(0x145)]=(..._0x5e0c0f)=>{const _0x345117=_0x146582,_0x5e0dd9=_0x5e0c0f[_0x345117(0x21b)](_0x35e0a3=>_0x35e0a3 instanceof Error?_0x35e0a3[_0x345117(0x7b)]+'\x0a'+_0x35e0a3['stack']:String(_0x35e0a3))['join']('\x20');this[_0x345117(0xd9)]('error',_0x345117(0x1b0)+_0x5e0dd9),_0x58d62c(..._0x5e0c0f);},this[_0x146582(0x134)](()=>{const _0x598c17=_0x146582;this[_0x598c17(0x84)]['error']=_0x58d62c;});}[_0x267084(0xd9)](_0x55bb7f,_0x7afafc){const _0x200d46=_0x267084;try{const _0x5c83dc={'userId':this[_0x200d46(0xc4)],'logLabel':_0x55bb7f,'content':_0x7afafc};this[_0x200d46(0x109)][_0x200d46(0x9c)](_0x200d46(0x15d),{'body':_0x5c83dc})[_0x200d46(0xa6)](()=>{});}catch{}}};le=ln([ne(0x0,_0x19d3ff(_0x4ab7f8)),ne(0x1,_0x19d3ff(_0x3d2675)),ne(0x2,_0x35d33d),ne(0x3,_0x19d3ff(_0x30d8be))],le);const hn=_0x267084(0x1a8),_t={};var un=Object[_0x267084(0x141)],dn=(_0x1f9e97,_0x364059,_0xdb1341,_0x8cc19c)=>{const _0x332e6d=_0x267084;for(var _0x45e8f8=_0x8cc19c>0x1?void 0x0:_0x8cc19c?un(_0x364059,_0xdb1341):_0x364059,_0xf63e0d=_0x1f9e97[_0x332e6d(0xb1)]-0x1,_0x3c8801;_0xf63e0d>=0x0;_0xf63e0d--)(_0x3c8801=_0x1f9e97[_0xf63e0d])&&(_0x45e8f8=_0x3c8801(_0x45e8f8)||_0x45e8f8);return _0x45e8f8;},lt=(_0xa54d15,_0x3bde57)=>(_0x2f1bb3,_0xa9ce8e)=>_0x3bde57(_0x2f1bb3,_0xa9ce8e,_0xa54d15);let he=class{constructor(_0x591635,_0x2a9ac5){const _0x51236d=_0x267084;this[_0x51236d(0xbe)]=_0x591635,this[_0x51236d(0x270)]=_0x2a9ac5;}[_0x267084(0x1cf)](_0x7f75a2){const _0x27fe75=_0x267084;this['_transformUndoRedoStack'](_0x7f75a2),this[_0x27fe75(0x8d)](_0x7f75a2);}[_0x267084(0xf4)](_0x4e6a96){const _0x24d9a7=_0x267084,{unitID:_0x544001}=_0x4e6a96,_0x5f1714=this['_renderManagerService'][_0x24d9a7(0xfa)](_0x544001)[_0x24d9a7(0x239)](_0x4f8e82),{redoCache:_0x3b1a90}=_0x5f1714[_0x24d9a7(0xbb)]();if(_0x3b1a90[_0x24d9a7(0xb1)]===0x0)return _0x4e6a96;let _0x289468=_0x23f5dc[_0x24d9a7(0x21d)](_0x4e6a96[_0x24d9a7(0x288)][0x0]);for(let _0x510ba7=0x0;_0x510ba7<_0x3b1a90[_0x24d9a7(0xb1)];_0x510ba7++){const _0x9c9428={'id':_0x24d9a7(0x1e5),'params':{..._0x3b1a90[_0x510ba7]}},_0x264705=this[_0x24d9a7(0xbe)][_0x24d9a7(0x15f)](_0x289468,_0x9c9428,!0x1);if(_0x3d1fb0(_0x264705))throw _0x264705[_0x24d9a7(0x145)];_0x289468=_0x264705['m1Prime'];}return{..._0x23f5dc['deepClone'](_0x4e6a96),'mutations':[_0x289468]};}['_transformUndoRedoStack'](_0x9fe53f){const _0x53e855=_0x267084,{unitID:_0x5ef880}=_0x9fe53f,_0xaf286e=this[_0x53e855(0x270)][_0x53e855(0xfa)](_0x5ef880)['with'](_0x4f8e82),{undoCache:_0x3c7854,redoCache:_0x3ac69d}=_0xaf286e[_0x53e855(0xbb)]();if(_0x3c7854[_0x53e855(0xb1)]===0x0||_0x3ac69d['length']===0x0)return;const _0x1c3d0c=[],_0x1f3ae1=[];let _0x2d1b53=_0x23f5dc[_0x53e855(0x21d)](_0x9fe53f[_0x53e855(0x288)][0x0]),_0x25e692=_0x23f5dc[_0x53e855(0x21d)](_0x9fe53f['mutations'][0x0]);for(let _0x442cf3=_0x3c7854[_0x53e855(0xb1)]-0x1;_0x442cf3>=0x0;_0x442cf3--){const _0xc2313c={'id':_0x53e855(0x1e5),'params':{..._0x3c7854[_0x442cf3]}},_0x6a3616={'id':_0x53e855(0x1e5),'params':{..._0x3ac69d[_0x442cf3]}},_0x422856=this[_0x53e855(0xbe)]['transformMutation'](_0x2d1b53,_0xc2313c,!0x1),_0x5d855e=this[_0x53e855(0xbe)]['transformMutation'](_0x25e692,_0x6a3616,!0x1);if(_0x3d1fb0(_0x422856))throw _0x422856[_0x53e855(0x145)];if(_0x3d1fb0(_0x5d855e))throw _0x5d855e[_0x53e855(0x145)];_0x1c3d0c[_0x53e855(0x1bd)](_0x422856['m2Prime']['params']),_0x1f3ae1[_0x53e855(0x1bd)](_0x5d855e[_0x53e855(0x1fe)][_0x53e855(0x199)]),_0x2d1b53=_0x422856['m1Prime'],_0x25e692=_0x5d855e['m1Prime'];}_0xaf286e[_0x53e855(0x1a7)]({'undoCache':_0x1c3d0c,'redoCache':_0x1f3ae1});}[_0x267084(0x8d)](_0x30a692){const _0x4fd93c=_0x267084,{unitID:_0x100cf5}=_0x30a692,_0x13127f=this[_0x4fd93c(0x270)]['getRenderById'](_0x100cf5)[_0x4fd93c(0x239)](_0x4f8e82),_0x38f20a=_0x13127f['getActiveRange']();if(_0x38f20a==null)return;const _0x176782=[{'id':_0x4fd93c(0x1e5),'params':{'unitId':_0x30a692['unitID'],'actions':null,'textRanges':[_0x38f20a]}}],_0xcdd1a0=this['_transformService'][_0x4fd93c(0x231)](_0x30a692,_0x176782);if(!_0x10901e(_0xcdd1a0))throw _0xcdd1a0[_0x4fd93c(0x145)];const _0x1e3d75=_0xcdd1a0[_0x4fd93c(0x1fe)][0x0][_0x4fd93c(0x199)][_0x4fd93c(0x245)];Array[_0x4fd93c(0xc1)](_0x1e3d75)&&_0x1e3d75[_0x4fd93c(0xb1)]&&_0x13127f[_0x4fd93c(0x21f)](_0x1e3d75[0x0]);}};he=dn([lt(0x0,_0xe0c62a),lt(0x1,_0x16532d)],he);var Sn=Object['getOwnPropertyDescriptor'],mn=(_0x4108c7,_0x22b32a,_0x500762,_0x8b372e)=>{const _0x163d8b=_0x267084;for(var _0x4727b7=_0x8b372e>0x1?void 0x0:_0x8b372e?Sn(_0x22b32a,_0x500762):_0x22b32a,_0x127ae9=_0x4108c7[_0x163d8b(0xb1)]-0x1,_0x1f71d4;_0x127ae9>=0x0;_0x127ae9--)(_0x1f71d4=_0x4108c7[_0x127ae9])&&(_0x4727b7=_0x1f71d4(_0x4727b7)||_0x4727b7);return _0x4727b7;},Le=(_0x43ec71,_0x2e66df)=>(_0x2c5f72,_0x23b080)=>_0x2e66df(_0x2c5f72,_0x23b080,_0x43ec71);let ue=class{constructor(_0x5a1e46,_0x4f1fd5,_0x57b2f8){const _0x5233cf=_0x267084;this[_0x5233cf(0x298)]=_0x5a1e46,this[_0x5233cf(0xbe)]=_0x4f1fd5,this[_0x5233cf(0x24e)]=_0x57b2f8;}[_0x267084(0x72)](_0x1aac05){this['_transformHistoryAndStateStack'](_0x1aac05);}[_0x267084(0xf4)](_0x5d0322){const _0x4d3e8c=_0x267084,{unitID:_0x2e9522}=_0x5d0322,{collaboration:_0x5e3555}=this['_docStateChangeManagerService'][_0x4d3e8c(0x172)](_0x2e9522);if(_0x5e3555['length']===0x0)return _0x5d0322;let _0x31ef93=_0x23f5dc[_0x4d3e8c(0x21d)](_0x5d0322['mutations'][0x0]);for(let _0x53b2a9=0x0;_0x53b2a9<_0x5e3555[_0x4d3e8c(0xb1)];_0x53b2a9++){const _0x4b6675={'id':_0x4d3e8c(0x1e5),'params':{'unitId':_0x5e3555[_0x53b2a9][_0x4d3e8c(0x2aa)],..._0x5e3555[_0x53b2a9][_0x4d3e8c(0xba)]}},_0x50e888=this[_0x4d3e8c(0xbe)][_0x4d3e8c(0x15f)](_0x31ef93,_0x4b6675,!0x1);if(_0x3d1fb0(_0x50e888))throw _0x50e888[_0x4d3e8c(0x145)];_0x31ef93=_0x50e888['m1Prime'];}return{..._0x23f5dc[_0x4d3e8c(0x21d)](_0x5d0322),'mutations':[_0x31ef93]};}[_0x267084(0x230)](_0x232fbd){const _0x48b075=_0x267084,{unitID:_0x3ebd65}=_0x232fbd,{history:_0x27020f,collaboration:_0x2b6e7b}=this[_0x48b075(0x24e)]['getStateCache'](_0x3ebd65);if(_0x27020f[_0x48b075(0xb1)]===0x0&&_0x2b6e7b[_0x48b075(0xb1)]===0x0)return;const _0x52c7c1=[],_0x2ffaeb=[];let _0x653713=_0x23f5dc[_0x48b075(0x21d)](_0x232fbd[_0x48b075(0x288)][0x0]),_0x2a2830=_0x23f5dc[_0x48b075(0x21d)](_0x232fbd[_0x48b075(0x288)][0x0]);for(let _0x577f7d=_0x27020f[_0x48b075(0xb1)]-0x1;_0x577f7d>=0x0;_0x577f7d--){const _0x16e1b5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x27020f[_0x577f7d]['unitId'],..._0x27020f[_0x577f7d][_0x48b075(0x95)]}},_0x23c52c={'id':_0x48b075(0x1e5),'params':{'unitId':_0x27020f[_0x577f7d][_0x48b075(0x2aa)],..._0x27020f[_0x577f7d][_0x48b075(0xba)]}},_0x6d5e1b=this[_0x48b075(0xbe)][_0x48b075(0x15f)](_0x653713,_0x16e1b5,!0x1),_0x24ceb8=this[_0x48b075(0xbe)][_0x48b075(0x15f)](_0x2a2830,_0x23c52c,!0x1);if(_0x3d1fb0(_0x6d5e1b))throw _0x6d5e1b[_0x48b075(0x145)];if(_0x3d1fb0(_0x24ceb8))throw _0x24ceb8[_0x48b075(0x145)];_0x52c7c1[_0x48b075(0x1bd)]({..._0x27020f[_0x577f7d],'undoState':_0x6d5e1b[_0x48b075(0x1fe)][_0x48b075(0x199)],'redoState':_0x24ceb8['m2Prime'][_0x48b075(0x199)]}),_0x653713=_0x6d5e1b[_0x48b075(0xa4)],_0x2a2830=_0x24ceb8[_0x48b075(0xa4)];}_0x653713=_0x23f5dc[_0x48b075(0x21d)](_0x232fbd[_0x48b075(0x288)][0x0]),_0x2a2830=_0x23f5dc['deepClone'](_0x232fbd['mutations'][0x0]);for(let _0x444454=_0x2b6e7b[_0x48b075(0xb1)]-0x1;_0x444454>=0x0;_0x444454--){const _0x173abb={'id':_0x48b075(0x1e5),'params':{'unitId':_0x2b6e7b[_0x444454][_0x48b075(0x2aa)],..._0x2b6e7b[_0x444454][_0x48b075(0x95)]}},_0x40fda0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2b6e7b[_0x444454][_0x48b075(0x2aa)],..._0x2b6e7b[_0x444454][_0x48b075(0xba)]}},_0x4cccc2=this[_0x48b075(0xbe)][_0x48b075(0x15f)](_0x653713,_0x173abb,!0x1),_0x190679=this[_0x48b075(0xbe)]['transformMutation'](_0x2a2830,_0x40fda0,!0x1);if(_0x3d1fb0(_0x4cccc2))throw _0x4cccc2[_0x48b075(0x145)];if(_0x3d1fb0(_0x190679))throw _0x190679[_0x48b075(0x145)];_0x2ffaeb[_0x48b075(0x1bd)]({..._0x2b6e7b[_0x444454],'undoState':_0x4cccc2[_0x48b075(0x1fe)]['params'],'redoState':_0x190679[_0x48b075(0x1fe)][_0x48b075(0x199)]}),_0x653713=_0x4cccc2['m1Prime'],_0x2a2830=_0x190679['m1Prime'];}this[_0x48b075(0x24e)][_0x48b075(0x73)](_0x3ebd65,{'history':_0x52c7c1,'collaboration':_0x2ffaeb});}};ue=mn([Le(0x0,_0x19d3ff(_0x4ab7f8)),Le(0x1,_0xe0c62a),Le(0x2,_0x19d3ff(_0x52621e))],ue);var In=Object[_0x267084(0x141)],fn=(_0x281ab6,_0x280f65,_0x31de4d,_0x553bbb)=>{const _0x30b8c6=_0x267084;for(var _0x21a524=_0x553bbb>0x1?void 0x0:_0x553bbb?In(_0x280f65,_0x31de4d):_0x280f65,_0x4fca47=_0x281ab6[_0x30b8c6(0xb1)]-0x1,_0x3e45dc;_0x4fca47>=0x0;_0x4fca47--)(_0x3e45dc=_0x281ab6[_0x4fca47])&&(_0x21a524=_0x3e45dc(_0x21a524)||_0x21a524);return _0x21a524;},ht=(_0x1275a3,_0x15b24b)=>(_0xf31a0a,_0xe655fd)=>_0x15b24b(_0xf31a0a,_0xe655fd,_0x1275a3);let de=class{constructor(_0x330aab,_0x33cfc9){const _0x417d38=_0x267084;this[_0x417d38(0x298)]=_0x330aab,this['_transformService']=_0x33cfc9;}['transformSelections'](_0x456795){const _0x4c40d0=_0x267084;var _0x8c6a6a;const _0x51de3d=this[_0x4c40d0(0x298)]['get'](_0x22e39b),_0x2982e2=(_0x8c6a6a=_0x51de3d[_0x4c40d0(0xd2)]())!=null?_0x8c6a6a:[];if(_0x2982e2['length']===0x0)return;const _0x7ec051=_0x456795[_0x4c40d0(0xf1)],_0x3ba17a=[{'id':_0x4c40d0(0x1e5),'params':{'unitId':_0x7ec051,'actions':null,'textRanges':_0x2982e2}}],_0x2c8244=this[_0x4c40d0(0xbe)]['transformMutationsWithChangeset'](_0x456795,_0x3ba17a);if(!_0x10901e(_0x2c8244))throw _0x2c8244[_0x4c40d0(0x145)];const _0x4663ba=_0x2c8244[_0x4c40d0(0x1fe)][0x0][_0x4c40d0(0x199)][_0x4c40d0(0x245)];Array[_0x4c40d0(0xc1)](_0x4663ba)&&_0x4663ba[_0x4c40d0(0xb1)]&&_0x51de3d[_0x4c40d0(0x1a6)](_0x4663ba,{'unitId':_0x7ec051,'subUnitId':_0x7ec051},!0x1);}};de=fn([ht(0x0,_0x19d3ff(_0x4ab7f8)),ht(0x1,_0xe0c62a)],de);var gn=Object['getOwnPropertyDescriptor'],vn=(_0x1844b4,_0x48d7d8,_0x8b91c,_0x5b059a)=>{for(var _0x521ce4=_0x5b059a>0x1?void 0x0:_0x5b059a?gn(_0x48d7d8,_0x8b91c):_0x48d7d8,_0x3c012=_0x1844b4['length']-0x1,_0x44be6e;_0x3c012>=0x0;_0x3c012--)(_0x44be6e=_0x1844b4[_0x3c012])&&(_0x521ce4=_0x44be6e(_0x521ce4)||_0x521ce4);return _0x521ce4;},U=(_0x41ef16,_0x1130ca)=>(_0x5d7da3,_0x32e702)=>_0x1130ca(_0x5d7da3,_0x32e702,_0x41ef16);let Se=class extends _0x15b4c2{constructor(_0x187c71,_0x3d35b0,_0x4cf69f,_0xf0241c,_0x2820ac,_0x2776c2,_0x4a0ee0,_0x406f61){const _0x3557d9=_0x267084;super(),_(this,_0x3557d9(0x267),new _0x1c42a0(_0x393e49['NOT_COLLAB'])),(this[_0x3557d9(0x24e)]=_0x187c71,this['_collaborationController']=_0x3d35b0,this[_0x3557d9(0x1f2)]=_0x4cf69f,this[_0x3557d9(0x276)]=_0xf0241c,this[_0x3557d9(0x91)]=_0x2820ac,this[_0x3557d9(0x294)]=_0x2776c2,this[_0x3557d9(0x268)]=_0x4a0ee0,this[_0x3557d9(0x220)]=_0x406f61,this[_0x3557d9(0x200)]());}['_initEntityListener'](){const _0x4dc1a3=_0x267084;this[_0x4dc1a3(0x134)](this[_0x4dc1a3(0x1da)][_0x4dc1a3(0xe8)][_0x4dc1a3(0x116)](_0x55a40d=>{const _0x5e475e=_0x4dc1a3,_0x1c0fa5=this[_0x5e475e(0x24e)][_0x5e475e(0x1ff)]['subscribe'](_0x17c137=>{const _0x4540bb=_0x5e475e;if(_0x17c137==null)return;const {unitId:_0x584d3f,redoState:_0x4a3ad4,commandId:_0x3b08ad}=_0x17c137;if(_0x584d3f!==_0x55a40d[_0x4540bb(0xf1)])return;const _0x496a19={'id':_0x3b08ad,'type':_0x3a3187[_0x4540bb(0x214)],'params':{'unitId':_0x584d3f,'actions':_0x4a3ad4[_0x4540bb(0x206)],'textRanges':null}};_0x55a40d['onLocalMutation'](_0x496a19);});if(_0x55a40d[_0x5e475e(0x134)](_0x1c0fa5),_0x55a40d instanceof _0xbad4e5){const _0x5702e0={'onTransformIME':_0x346249=>this[_0x5e475e(0x1f2)][_0x5e475e(0x1cf)](_0x346249),'onTransformState':_0x4dd410=>this[_0x5e475e(0x276)][_0x5e475e(0x72)](_0x4dd410),'onTransformSelections':_0x139034=>this[_0x5e475e(0x91)][_0x5e475e(0x7d)](_0x139034),'onSyncEditingCollabCursor':_0x55ed8b=>this[_0x5e475e(0x294)][_0x5e475e(0x247)](_0x55ed8b),'onTransformRemoteChangesetByIMECache':_0x243763=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x243763),'onTransformRemoteChangesetByStateCache':_0x2981c4=>this[_0x5e475e(0x276)][_0x5e475e(0xf4)](_0x2981c4)};_0x55a40d['addHandlerCallback'](_0x5702e0);}}));}};Se=vn([U(0x0,_0x19d3ff(_0x52621e)),U(0x1,_0x19d3ff(_0x20f9ac)),U(0x2,_0x19d3ff(he)),U(0x3,_0x19d3ff(ue)),U(0x4,_0x19d3ff(de)),U(0x5,_0x19d3ff(ze)),U(0x6,_0x238f17),U(0x7,_0x19d3ff(_0x392a0b))],Se);var Z=(_0x255dd1=>(_0x255dd1[_0x255dd1[_0x267084(0x16c)]=0x0]=_0x267084(0x16c),_0x255dd1[_0x255dd1['OK']=0x1]='OK',_0x255dd1[_0x255dd1[_0x267084(0x1fa)]=0x2]=_0x267084(0x1fa),_0x255dd1[_0x255dd1[_0x267084(0x259)]=0x3]=_0x267084(0x259),_0x255dd1[_0x255dd1[_0x267084(0x1c5)]=0x4]=_0x267084(0x1c5),_0x255dd1[_0x255dd1[_0x267084(0x25b)]=0x5]=_0x267084(0x25b),_0x255dd1[_0x255dd1[_0x267084(0xa7)]=0x6]=_0x267084(0xa7),_0x255dd1[_0x255dd1[_0x267084(0x18e)]=0x7]='INVALID_ARGUMENT',_0x255dd1[_0x255dd1[_0x267084(0x201)]=0x8]=_0x267084(0x201),_0x255dd1[_0x255dd1[_0x267084(0x10f)]=0x9]=_0x267084(0x10f),_0x255dd1[_0x255dd1[_0x267084(0xef)]=0xa]=_0x267084(0xef),_0x255dd1[_0x255dd1[_0x267084(0x234)]=0xb]=_0x267084(0x234),_0x255dd1[_0x255dd1[_0x267084(0x1b5)]=0xc]=_0x267084(0x1b5),_0x255dd1[_0x255dd1[_0x267084(0xd4)]=0xd]=_0x267084(0xd4),_0x255dd1[_0x255dd1[_0x267084(0xb9)]=0xe]=_0x267084(0xb9),_0x255dd1[_0x255dd1['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x255dd1[_0x255dd1[_0x267084(0x180)]=0x10]=_0x267084(0x180),_0x255dd1[_0x255dd1['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x255dd1[_0x255dd1[_0x267084(0x217)]=0x65]='ERROR_AGAIN',_0x255dd1[_0x255dd1[_0x267084(0x7c)]=0xc9]='USER_NOT_FOUND',_0x255dd1[_0x255dd1[_0x267084(0x111)]=0xca]=_0x267084(0x111),_0x255dd1[_0x255dd1['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x267084(0x14d),_0x255dd1[_0x255dd1[_0x267084(0x237)]=0x1771]=_0x267084(0x237),_0x255dd1[_0x255dd1[_0x267084(0xd3)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x255dd1[_0x255dd1['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x267084(0x287),_0x255dd1[_0x255dd1[_0x267084(0x293)]=0x1b59]='APPLY_REJECT',_0x255dd1[_0x255dd1[_0x267084(0x1e7)]=0x1b5a]=_0x267084(0x1e7),_0x255dd1[_0x255dd1[_0x267084(0x2ac)]=0x1b5b]=_0x267084(0x2ac),_0x255dd1[_0x255dd1[_0x267084(0x257)]=0x1b5c]=_0x267084(0x257),_0x255dd1[_0x255dd1['APPLY_DUPLICATED']=0x1b5d]=_0x267084(0x1f6),_0x255dd1[_0x255dd1[_0x267084(0x120)]=0x1f41]=_0x267084(0x120),_0x255dd1[_0x255dd1[_0x267084(0x166)]=0x2329]=_0x267084(0x166),_0x255dd1[_0x255dd1['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x267084(0xaf),_0x255dd1[_0x255dd1[_0x267084(0x1ee)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x255dd1[_0x255dd1[_0x267084(0x18b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x255dd1[_0x255dd1[_0x267084(0xf5)]=0x232d]=_0x267084(0xf5),_0x255dd1[_0x255dd1[_0x267084(0xad)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x255dd1[_0x255dd1[_0x267084(0xd5)]=0x2712]=_0x267084(0xd5),_0x255dd1[_0x255dd1['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x267084(0x23d),_0x255dd1[_0x255dd1[_0x267084(0xdf)]=0x2714]=_0x267084(0xdf),_0x255dd1[_0x255dd1[_0x267084(0x1e4)]=0x271a]=_0x267084(0x1e4),_0x255dd1[_0x255dd1[_0x267084(0x147)]=0x271b]=_0x267084(0x147),_0x255dd1[_0x255dd1[_0x267084(0x12b)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x255dd1[_0x255dd1['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x267084(0x256),_0x255dd1[_0x255dd1['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x267084(0x175),_0x255dd1[_0x255dd1[_0x267084(0x101)]=0x271f]=_0x267084(0x101),_0x255dd1[_0x255dd1[_0x267084(0x15b)]=0x2720]=_0x267084(0x15b),_0x255dd1[_0x255dd1['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x255dd1[_0x255dd1['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x267084(0x27e),_0x255dd1[_0x255dd1[_0x267084(0x93)]=0x2ee2]=_0x267084(0x93),_0x255dd1[_0x255dd1[_0x267084(0x8f)]=0x2ee3]=_0x267084(0x8f),_0x255dd1[_0x255dd1[_0x267084(0x18c)]=0x2ee4]=_0x267084(0x18c),_0x255dd1[_0x255dd1[_0x267084(0x99)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x255dd1[_0x255dd1['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x267084(0x1d4),_0x255dd1[_0x255dd1[_0x267084(0x13b)]=0x32ca]=_0x267084(0x13b),_0x255dd1[_0x255dd1['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x267084(0x9b),_0x255dd1[_0x255dd1[_0x267084(0x27f)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x255dd1[_0x255dd1[_0x267084(0xee)]=0x36b2]=_0x267084(0xee),_0x255dd1[_0x255dd1[_0x267084(0x2b1)]=0x36b3]=_0x267084(0x2b1),_0x255dd1[_0x255dd1[_0x267084(0x9d)]=0x36b4]=_0x267084(0x9d),_0x255dd1[_0x255dd1[_0x267084(0x1f4)]=0x3715]=_0x267084(0x1f4),_0x255dd1[_0x255dd1[_0x267084(0xff)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x255dd1[_0x255dd1[_0x267084(0xb4)]=0x3717]=_0x267084(0xb4),_0x255dd1[_0x255dd1[_0x267084(0x1b2)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x255dd1[_0x255dd1[_0x267084(0x148)]=0x3a99]=_0x267084(0x148),_0x255dd1[_0x255dd1['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x255dd1[_0x255dd1[_0x267084(0x1d1)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x255dd1[_0x255dd1[_0x267084(0x92)]=0x3a9c]=_0x267084(0x92),_0x255dd1[_0x255dd1[_0x267084(0x104)]=0x3a9d]=_0x267084(0x104),_0x255dd1[_0x255dd1[_0x267084(0x252)]=0x3a9e]=_0x267084(0x252),_0x255dd1[_0x255dd1[_0x267084(0x88)]=0x3a9f]=_0x267084(0x88),_0x255dd1[_0x255dd1[_0x267084(0x1fb)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x255dd1[_0x255dd1[_0x267084(0x155)]=-0x1]='UNRECOGNIZED',_0x255dd1))(Z||{});function En(_0x5139fe){const _0x38e943=_0x267084;var _0x531ca7,_0x4e9f1c;const _0x18c78b=(_0x531ca7=_0x5139fe[_0x38e943(0xda)])==null?void 0x0:_0x531ca7[_0x38e943(0x13c)],_0x5d1514=((_0x4e9f1c=_0x5139fe[_0x38e943(0xda)])==null?void 0x0:_0x4e9f1c[_0x38e943(0xb8)])||0x0;return _0x18c78b===_0x5d4131[_0x38e943(0x28c)]&&_0x5d1514>0x0;}function pn(_0x34a91f){const _0x4fdb6a=_0x267084;return _0x34a91f['functionsExecutedState']===_0x1d84bd[_0x4fdb6a(0x218)];}var On=Object[_0x267084(0x141)],Tn=(_0x2b7050,_0x447dc3,_0x4bb580,_0x4f39d8)=>{const _0x710fb9=_0x267084;for(var _0x4620f2=_0x4f39d8>0x1?void 0x0:_0x4f39d8?On(_0x447dc3,_0x4bb580):_0x447dc3,_0x266ef9=_0x2b7050[_0x710fb9(0xb1)]-0x1,_0x271375;_0x266ef9>=0x0;_0x266ef9--)(_0x271375=_0x2b7050[_0x266ef9])&&(_0x4620f2=_0x271375(_0x4620f2)||_0x4620f2);return _0x4620f2;},P=(_0x3f3386,_0x2a3493)=>(_0x12724a,_0x57313f)=>_0x2a3493(_0x12724a,_0x57313f,_0x3f3386);const Cn=_0x267084(0xd1),Rn=_0x267084(0x246),Dn=_0x267084(0x139);let me=class extends _0x15b4c2{constructor(_0x10d67f,_0x4d4f88,_0x3186e7,_0x280f21,_0x2a1090,_0x588a66,_0xbd9835){const _0x21d4ca=_0x267084;super(),_(this,_0x21d4ca(0xc0),null),_(this,_0x21d4ca(0x10c),0x0),_(this,_0x21d4ca(0x26c),0x0),_(this,_0x21d4ca(0x11a),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x21d4ca(0x268)]=_0x10d67f,this[_0x21d4ca(0x106)]=_0x4d4f88,this[_0x21d4ca(0xb5)]=_0x3186e7,this[_0x21d4ca(0x109)]=_0x280f21,this['_univerInstanceService']=_0x2a1090,this['_logService']=_0x588a66,this[_0x21d4ca(0x220)]=_0xbd9835,this['_initCommandInterceptor']());}[_0x267084(0x76)](){const _0x16dac9=_0x267084;this[_0x16dac9(0x134)](this[_0x16dac9(0x106)]['beforeCommandExecuted']((_0x3f44ec,_0x2a5a90)=>{const _0x358a32=_0x16dac9;var _0x539a24;if(_0x3f44ec['id']!==_0xce794f['id'])return;const _0xfda5d=_0x3f44ec[_0x358a32(0x199)];if(!this['_hasFormulaInDirtyRanges']((_0x539a24=_0xfda5d[_0x358a32(0xd8)])!=null?_0x539a24:[]))return;if(!this[_0x358a32(0x78)]())throw this[_0x358a32(0x284)](_0x3f44ec,_0x2a5a90),this[_0x358a32(0x149)](),new _0x53987c();})),this[_0x16dac9(0x134)](this[_0x16dac9(0x106)][_0x16dac9(0xf0)]((_0x4bda64,_0x439c92)=>{const _0x421750=_0x16dac9;if(_0x4bda64['id']!==_0x15b422['id'])return;const _0x4e2b84=_0x4bda64[_0x421750(0x199)];if(En(_0x4e2b84)){const _0x5546e7=_0x3add1d();this['_taskIds']['push'](_0x5546e7),this[_0x421750(0x1e9)](_0x5546e7);}else{if(pn(_0x4e2b84)&&this['_taskIds'][_0x421750(0xb1)]>0x0){const _0x55602c=this[_0x421750(0x11a)][_0x421750(0x23f)]();this['_releaseCalculationLimit'](_0x55602c);}}}));}[_0x267084(0x18a)](){const _0x1fbb8c=_0x267084;super['dispose'](),this[_0x1fbb8c(0x1d7)](),this[_0x1fbb8c(0x11a)]=[],this[_0x1fbb8c(0x26c)]=0x0,this[_0x1fbb8c(0x10c)]=0x0,this[_0x1fbb8c(0x128)]=0x0;}async[_0x267084(0x284)](_0x348ccb,_0x386b74){const _0x339dec=_0x267084;for(let _0x1ede38=0x0;_0x1ede38<0x1e;_0x1ede38++)try{if(await this[_0x339dec(0x138)](),this['_checkCalculationAvailable']()){this[_0x339dec(0x194)](_0x348ccb,_0x386b74),this[_0x339dec(0x268)][_0x339dec(0x16a)]({'content':this[_0x339dec(0x220)]['t'](_0x339dec(0x2a5)),'type':_0x3d9040[_0x339dec(0x83)]});return;}await new Promise(_0x5b15da=>{const _0x10ff8d=_0x339dec;this[_0x10ff8d(0xc0)]=window[_0x10ff8d(0x183)](_0x5b15da,0x3e8);});}catch(_0x3f4ee5){this[_0x339dec(0x84)][_0x339dec(0x145)](_0x3f4ee5);}this['_messageService'][_0x339dec(0x16a)]({'content':this['_localeService']['t'](_0x339dec(0x2a6)),'type':_0x3d9040[_0x339dec(0x198)]});}['_applyCommand'](_0x4bd23e,_0x17068c){const _0x2bf613=_0x267084;try{this[_0x2bf613(0x106)][_0x2bf613(0x1db)](_0x4bd23e['id'],_0x4bd23e['params'],_0x17068c);}catch(_0x585455){this[_0x2bf613(0x84)][_0x2bf613(0x145)](_0x585455);}}[_0x267084(0xe0)](_0x169953,_0x24f730){const _0x4fc658=_0x267084;_0x24f730<this[_0x4fc658(0x128)]||(this[_0x4fc658(0x128)]=_0x24f730,this[_0x4fc658(0x10c)]=Number[_0x4fc658(0x22f)](_0x169953['maxFormulaLimit']),this[_0x4fc658(0x26c)]=Number[_0x4fc658(0x22f)](_0x169953[_0x4fc658(0x291)]));}async[_0x267084(0x1e9)](_0x4986a3){const _0x476952=_0x267084;var _0x33caef,_0x2223ad;const _0x2194ca=Date[_0x476952(0x18f)]();try{const _0x3968dc=((_0x33caef=this[_0x476952(0xb5)][_0x476952(0x75)](_0x58fdc2))==null?void 0x0:_0x33caef['startFormulaLimitUrl'])||Rn,_0x167f5d=(await this['_httpService'][_0x476952(0x9c)](_0x3968dc,{'body':JSON[_0x476952(0x20d)]({'taskId':_0x4986a3})}))[_0x476952(0x165)];if(((_0x2223ad=_0x167f5d[_0x476952(0x145)])==null?void 0x0:_0x2223ad[_0x476952(0x219)])!==Z['OK'])return;this[_0x476952(0xe0)](_0x167f5d['limitInfo'],_0x2194ca);}catch(_0x1bec0a){this[_0x476952(0x84)][_0x476952(0x145)](_0x1bec0a);}}async[_0x267084(0x138)](_0x5c9d89){const _0x4f1901=_0x267084;var _0x5bf9fc,_0x2190fb;const _0x28aadf=Date['now']();try{const _0x508418=((_0x5bf9fc=this['_configService']['getConfig'](_0x58fdc2))==null?void 0x0:_0x5bf9fc[_0x4f1901(0x23e)])||Cn,_0x712098=_0x5c9d89?_0x508418+_0x4f1901(0x89)+encodeURIComponent(_0x5c9d89):_0x508418,_0x298f1c=(await this[_0x4f1901(0x109)]['get'](_0x712098))[_0x4f1901(0x165)];if(((_0x2190fb=_0x298f1c['error'])==null?void 0x0:_0x2190fb[_0x4f1901(0x219)])!==Z['OK'])return;this[_0x4f1901(0xe0)](_0x298f1c['limitInfo'],_0x28aadf);}catch(_0x5b94e1){this[_0x4f1901(0x84)][_0x4f1901(0x145)](_0x5b94e1);}}async['_releaseCalculationLimit'](_0x1ba483){const _0x26f6a8=_0x267084;var _0xa41230,_0x389d02;const _0x2de188=Date[_0x26f6a8(0x18f)]();try{const _0x7c11e7=((_0xa41230=this[_0x26f6a8(0xb5)]['getConfig'](_0x58fdc2))==null?void 0x0:_0xa41230[_0x26f6a8(0x168)])||Dn,_0x4139cd=(await this['_httpService'][_0x26f6a8(0x9c)](_0x7c11e7,{'body':JSON[_0x26f6a8(0x20d)]({'taskId':_0x1ba483})}))[_0x26f6a8(0x165)];if(((_0x389d02=_0x4139cd[_0x26f6a8(0x145)])==null?void 0x0:_0x389d02['code'])!==Z['OK'])return;this[_0x26f6a8(0xe0)](_0x4139cd[_0x26f6a8(0x27a)],_0x2de188);}catch(_0x2ee36c){this[_0x26f6a8(0x84)]['error'](_0x2ee36c);}}[_0x267084(0x78)](){const _0x13e220=_0x267084;return this[_0x13e220(0x10c)]===0x0?!0x0:this[_0x13e220(0x10c)]-this['_currentUsage']>0x0;}[_0x267084(0x1d7)](){const _0x2cb845=_0x267084;this[_0x2cb845(0xc0)]&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x267084(0x149)](){const _0x295066=_0x267084;this[_0x295066(0x268)][_0x295066(0x16a)]({'content':this[_0x295066(0x220)]['t'](_0x295066(0x14a)),'type':_0x3d9040['Loading']});}['_hasFormulaInDirtyRanges'](_0x53cd57){const _0x2ae532=_0x267084;for(const _0x289b42 of _0x53cd57){const {unitId:_0x1b359d,sheetId:_0x4d3b33,range:_0x3db8a6}=_0x289b42,_0x3a8f9f=this[_0x2ae532(0x289)][_0x2ae532(0x1df)](_0x1b359d);if(!_0x3a8f9f)continue;const _0x3aaf20=_0x3a8f9f[_0x2ae532(0x1c7)](_0x4d3b33);if(!_0x3aaf20)continue;const _0x44d970=_0x3aaf20['getCellMatrix']();for(let _0x7aefb9=_0x3db8a6[_0x2ae532(0x7a)];_0x7aefb9<=_0x3db8a6['endRow'];_0x7aefb9++)for(let _0x2d2e85=_0x3db8a6[_0x2ae532(0xea)];_0x2d2e85<=_0x3db8a6[_0x2ae532(0x1e6)];_0x2d2e85++){const _0x4c2a83=_0x44d970[_0x2ae532(0x1d8)](_0x7aefb9,_0x2d2e85);if(_0x4c2a83&&(_0x39dc69(_0x4c2a83['f'])||_0x3789a8(_0x4c2a83['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x19d3ff(_0x238f17)),P(0x1,_0x1da808),P(0x2,_0x5d7afb),P(0x3,_0x19d3ff(_0x3d2675)),P(0x4,_0x121c1a),P(0x5,_0x35d33d),P(0x6,_0x19d3ff(_0x392a0b))],me);var bn=Object[_0x267084(0x141)],Nn=(_0x40d782,_0x330fca,_0x3b634b,_0x367a35)=>{const _0x3533d5=_0x267084;for(var _0x4d40fb=_0x367a35>0x1?void 0x0:_0x367a35?bn(_0x330fca,_0x3b634b):_0x330fca,_0x125b64=_0x40d782[_0x3533d5(0xb1)]-0x1,_0x59fd8f;_0x125b64>=0x0;_0x125b64--)(_0x59fd8f=_0x40d782[_0x125b64])&&(_0x4d40fb=_0x59fd8f(_0x4d40fb)||_0x4d40fb);return _0x4d40fb;},Ue=(_0x30ee86,_0x4f240c)=>(_0x46b97b,_0x3b684e)=>_0x4f240c(_0x46b97b,_0x3b684e,_0x30ee86);let He=class extends _0x15b4c2{constructor(_0x4f52ba,_0x5c792a,_0x5c32c1){const _0x18b7e4=_0x267084;super(),_(this,'_cachedData',new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x18b7e4(0x1f9),!0x1),(this[_0x18b7e4(0xb5)]=_0x4f52ba,this[_0x18b7e4(0x87)]=_0x5c792a,this[_0x18b7e4(0x1af)]=_0x5c32c1);}[_0x267084(0x1ab)](){const _0x146748=_0x267084;this[_0x146748(0x1f9)]=!0x0;}[_0x267084(0x277)](){this['_disabled']=!0x1;}get[_0x267084(0x171)](){const _0x48580a=_0x267084;return this[_0x48580a(0x249)];}[_0x267084(0x18a)](){const _0x22ae06=_0x267084;this[_0x22ae06(0x20c)]()[_0x22ae06(0x295)](()=>super[_0x22ae06(0x18a)]());}async[_0x267084(0x273)](_0x36374a){const _0x5a2777=_0x267084;return this[_0x5a2777(0x1f9)]?null:this['_localStorageService'][_0x5a2777(0x21a)](_0x3df3e5(_0x36374a));}async[_0x267084(0xe5)](_0x340615,_0x185ea5){const _0x13fc40=_0x267084;return!!this[_0x13fc40(0x87)]['setItem'](_0x340615,_0x185ea5);}[_0x267084(0xb2)](_0x2cc243,_0x5ebe30,_0x36ca12,_0x3481e5){const _0x269258=_0x267084,_0x2eb710=this['_revisionService'][_0x269258(0x28a)](_0x2cc243);this[_0x269258(0x26b)][_0x269258(0x212)](_0x2cc243,{'unitID':_0x2cc243,'type':_0x5ebe30,'awaitingChangeset':_0x36ca12,'mutations':_0x3481e5,'rev':_0x2eb710}),this[_0x269258(0x249)][_0x269258(0x2b0)](_0x2cc243)||this['_scheduleSaving'](_0x2cc243);}[_0x267084(0x27d)](_0x28741f){const _0x2edd70=_0x267084,_0x3aba8e=this[_0x2edd70(0xb7)]();_0x3aba8e===0x0?this['_saveCache'](_0x28741f):this['_saveTaskMap'][_0x2edd70(0x212)](_0x28741f,setTimeout(()=>this[_0x2edd70(0x1aa)](_0x28741f),_0x3aba8e));}[_0x267084(0xb7)](){const _0x1e7049=_0x267084;var _0x1b95ba;return(_0x1b95ba=this[_0x1e7049(0xb5)][_0x1e7049(0x75)](_0x5a7b94))!=null?_0x1b95ba:_0x3119b9;}['_saveCache'](_0x1fb147){const _0x4816bd=_0x267084,_0x8dbd91=this[_0x4816bd(0x249)][_0x4816bd(0xf7)](_0x1fb147);return _0x8dbd91!==void 0x0&&window[_0x4816bd(0x221)](_0x8dbd91),this[_0x4816bd(0x87)][_0x4816bd(0x161)](_0x3df3e5(_0x1fb147),this[_0x4816bd(0x26b)][_0x4816bd(0xf7)](_0x1fb147))['then'](()=>this['_saveTaskMap'][_0x4816bd(0x74)](_0x1fb147));}async[_0x267084(0x20c)](){const _0x14e84b=_0x267084,_0x2a9e2e=[];this[_0x14e84b(0x249)]['forEach']((_0x5eaf8f,_0x280558)=>{const _0x1f1eb3=_0x14e84b;window[_0x1f1eb3(0x221)](_0x5eaf8f),_0x2a9e2e['push'](this[_0x1f1eb3(0x1aa)](_0x280558)['then'](()=>{const _0x3a9168=_0x1f1eb3;this[_0x3a9168(0x249)][_0x3a9168(0x74)](_0x280558);}));}),await Promise[_0x14e84b(0xeb)](_0x2a9e2e);}};He=Nn([Ue(0x0,_0x5d7afb),Ue(0x1,_0x5e6485),Ue(0x2,_0x19d3ff(_0x1e9c45))],He);class Ln extends _0x2699b6{constructor(){const _0x16518c=_0x267084;super(),_(this,'urlChange$'),this[_0x16518c(0x152)]=_0x46507c(window,_0x16518c(0xd0))[_0x16518c(0x162)](_0xae10c0(this[_0x16518c(0x1ef)]),_0x546268(0x1),_0x2ff921(void 0x0));}[_0x267084(0x28b)](_0x59799f,_0x1c3eab,_0x59376e=!0x1){const _0x26c508=_0x267084,_0x3c282f=new URL(window[_0x26c508(0x123)][_0x26c508(0x1bf)]);_0x3c282f['searchParams']['set'](_0x59799f,_0x1c3eab),_0x59376e?window[_0x26c508(0x2a7)][_0x26c508(0x185)]('','',_0x3c282f['toString']()):window['history'][_0x26c508(0x25a)]('','',_0x3c282f[_0x26c508(0x23c)]());}['removeParam'](_0x4da2be,_0x5cc3af=!0x1){const _0x2d7878=_0x267084,_0x1ed892=new URL(window[_0x2d7878(0x123)][_0x2d7878(0x1bf)]);_0x1ed892[_0x2d7878(0x16b)][_0x2d7878(0x74)](_0x4da2be),_0x5cc3af?window[_0x2d7878(0x2a7)][_0x2d7878(0x185)]('','',_0x1ed892[_0x2d7878(0x23c)]()):window[_0x2d7878(0x2a7)]['pushState']('','',_0x1ed892[_0x2d7878(0x23c)]());}[_0x267084(0x118)](_0x127478){const _0x132f49=_0x267084;var _0xdac0de;return(_0xdac0de=new URL(window[_0x132f49(0x123)][_0x132f49(0x1bf)])[_0x132f49(0x16b)][_0x132f49(0xf7)](_0x127478))!=null?_0xdac0de:void 0x0;}}var Un=Object[_0x267084(0x28e)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x596ec0,_0x28f231,_0x4c7af6)=>_0x28f231 in _0x596ec0?Un(_0x596ec0,_0x28f231,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c7af6}):_0x596ec0[_0x28f231]=_0x4c7af6,Pn=(_0x55caf4,_0x54ced,_0x51c024,_0x50d7cb)=>{const _0x5b994f=_0x267084;for(var _0x48449b=_0x50d7cb>0x1?void 0x0:_0x50d7cb?Mn(_0x54ced,_0x51c024):_0x54ced,_0x2a5ab2=_0x55caf4[_0x5b994f(0xb1)]-0x1,_0x2704b1;_0x2a5ab2>=0x0;_0x2a5ab2--)(_0x2704b1=_0x55caf4[_0x2a5ab2])&&(_0x48449b=_0x2704b1(_0x48449b)||_0x48449b);return _0x48449b;},Me=(_0x1b6bad,_0x56b453)=>(_0x33780e,_0x1be7c5)=>_0x56b453(_0x33780e,_0x1be7c5,_0x1b6bad),wn=(_0x24a577,_0x5c2682,_0x26aabc)=>An(_0x24a577,_0x5c2682+'',_0x26aabc);const yn=_0x267084(0x1a0);let Ye=class extends _0x75b443{constructor(_0xdde3dc=_t,_0x552611,_0x32bd92,_0x5eb31f){const _0x4f7ca9=_0x267084;super(),this[_0x4f7ca9(0x178)]=_0xdde3dc,this[_0x4f7ca9(0x270)]=_0x552611,this['_injector']=_0x32bd92,this[_0x4f7ca9(0xb5)]=_0x5eb31f;const {..._0x25c7d0}=_0x4bef96({},_t,this[_0x4f7ca9(0x178)]);this[_0x4f7ca9(0xb5)][_0x4f7ca9(0x110)](hn,_0x25c7d0);}[_0x267084(0x1dd)](){const _0x13de5a=_0x267084;this['_registerDependencies'](),this[_0x13de5a(0x25f)]();}[_0x267084(0x2b5)](){this['_registerRenderDependencies']();}[_0x267084(0xe9)](){const _0x3a669c=_0x267084;var _0x152379;const _0x31d814=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x516427,{'useClass':_0x29fc86}],[_0x1d4097,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x3a669c(0x178)][_0x3a669c(0x22a)]&&_0x31d814[_0x3a669c(0x224)]([le]),_0x52fbf5(this[_0x3a669c(0x298)],_0x1b8195(_0x31d814,(_0x152379=this['_config'])==null?void 0x0:_0x152379[_0x3a669c(0x227)]));}[_0x267084(0x2a8)](){const _0x4c8465=_0x267084;this[_0x4c8465(0x134)](this[_0x4c8465(0x270)][_0x4c8465(0x1c1)](_0x24166e[_0x4c8465(0x17b)],[Fe])),this[_0x4c8465(0x134)](this[_0x4c8465(0x270)][_0x4c8465(0x1c1)](_0x24166e['UNIVER_SHEET'],[ke]));}['_initDependencies'](){const _0x31fb8f=_0x267084;_0x1253a5(this[_0x31fb8f(0x298)],[[H],[ae],[Se],[_e],[ce],[me]]),this['_config']['enableFrontendLog']&&_0x1253a5(this[_0x31fb8f(0x298)],[[le]]);}};wn(Ye,_0x267084(0x8b),yn),Ye=Pn([_0x508d08(_0x32160c),Me(0x1,_0x16532d),Me(0x2,_0x19d3ff(_0x4ab7f8)),Me(0x3,_0x5d7afb)],Ye);var $n=Object[_0x267084(0x141)],xn=(_0x21fc68,_0x258c24,_0x329845,_0x3e16e1)=>{const _0x3878f5=_0x267084;for(var _0x1b4af3=_0x3e16e1>0x1?void 0x0:_0x3e16e1?$n(_0x258c24,_0x329845):_0x258c24,_0x2ec3bf=_0x21fc68[_0x3878f5(0xb1)]-0x1,_0x509a89;_0x2ec3bf>=0x0;_0x2ec3bf--)(_0x509a89=_0x21fc68[_0x2ec3bf])&&(_0x1b4af3=_0x509a89(_0x1b4af3)||_0x1b4af3);return _0x1b4af3;},J=(_0x4b43a8,_0xa07a40)=>(_0xa7d930,_0x5e17b7)=>_0xa07a40(_0xa7d930,_0x5e17b7,_0x4b43a8);let ut=class extends _0x120512{constructor(_0x1908e4,_0x2212d7,_0x568ee7,_0x53113c,_0x35fcb8){super(_0x1908e4,_0x2212d7,_0x568ee7,_0x53113c,_0x35fcb8);}async['createSocket'](_0x39db82){const _0xe85f29=_0x267084,_0x3dbc54=await this[_0xe85f29(0x279)](),_0xcf2599=this[_0xe85f29(0x1c0)](_0x39db82,_0x3dbc54);return this['_doCreateSocket'](_0xcf2599);}[_0x267084(0x1c0)](_0x1bea57,_0x3fb7d7){const _0x8700f=_0x267084,_0x463cb4=typeof window>'u'?new URL(_0x1bea57):new URL(_0x1bea57,window['location'][_0x8700f(0x272)]);_0x463cb4[_0x8700f(0x16b)][_0x8700f(0x212)](_0x8700f(0x14f),_0x3fb7d7);const _0x27eb02=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8700f(0x123)][_0x8700f(0x235)]);return _0x27eb02[_0x8700f(0xf7)](_0x8700f(0x1ae))&&_0x463cb4[_0x8700f(0x16b)]['set'](_0x8700f(0x1ae),_0x27eb02[_0x8700f(0xf7)](_0x8700f(0x1ae))),_0x463cb4[_0x8700f(0x23c)]();}async[_0x267084(0x279)](){const _0x502eaf=_0x267084;var _0x1eeabc,_0xef155e,_0x24d67e;const _0x63cf1a=this[_0x502eaf(0xb5)][_0x502eaf(0x75)](_0x58fdc2),_0x3be159=(_0x1eeabc=_0x63cf1a==null?void 0x0:_0x63cf1a[_0x502eaf(0x1c6)])!=null?_0x1eeabc:_0x366c2b;return(_0x24d67e=(_0xef155e=(await this[_0x502eaf(0x109)][_0x502eaf(0xf7)](_0x3be159,{'headers':{'Content-Type':_0x502eaf(0x25d)}}))[_0x502eaf(0x165)])==null?void 0x0:_0xef155e[_0x502eaf(0x105)])!=null?_0x24d67e:'';}};ut=xn([J(0x0,_0x19d3ff(_0x4ab7f8)),J(0x1,_0x19d3ff(_0x3d2675)),J(0x2,_0x5d7afb),J(0x3,_0x35d33d),J(0x4,_0x5e2acb)],ut);var Bn=Object[_0x267084(0x141)],Fn=(_0x54ee36,_0x2a71b7,_0x29e43c,_0x187f03)=>{const _0x5299da=_0x267084;for(var _0x3056c7=_0x187f03>0x1?void 0x0:_0x187f03?Bn(_0x2a71b7,_0x29e43c):_0x2a71b7,_0x33f015=_0x54ee36[_0x5299da(0xb1)]-0x1,_0x42a5a9;_0x33f015>=0x0;_0x33f015--)(_0x42a5a9=_0x54ee36[_0x33f015])&&(_0x3056c7=_0x42a5a9(_0x3056c7)||_0x3056c7);return _0x3056c7;},Ae=(_0x247fcb,_0x1e979f)=>(_0x3dfd2a,_0x69794)=>_0x1e979f(_0x3dfd2a,_0x69794,_0x247fcb);let dt=class extends _0x15b4c2{constructor(_0xe50115,_0x3cc441,_0x7d9aa5){const _0x5932c7=_0x267084;super(),this[_0x5932c7(0x137)]=_0xe50115,this[_0x5932c7(0x109)]=_0x3cc441,this[_0x5932c7(0xb5)]=_0x7d9aa5;}async[_0x267084(0x177)](_0x3a2f68,_0x44d437,_0x698bf0,..._0x5a68a9){const _0x26142d=_0x267084;var _0x5845b0,_0x3a9624,_0x407bb2,_0x373278;const _0x18a410=this[_0x26142d(0x137)][_0x26142d(0x241)]();if(!_0x18a410)throw new Error(_0x26142d(0x129));const _0x20a88e=((_0x5845b0=this[_0x26142d(0xb5)][_0x26142d(0x75)](_0x4ce834))!=null?_0x5845b0:_0x20cc7b)+'/'+_0x3a2f68+'/run/'+_0x44d437,_0x216744=new URL(window['location'][_0x26142d(0x1bf)]),_0x25b2bc={'scriptId':_0x3a2f68,'runId':(_0x3a9624=_0x216744[_0x26142d(0x16b)][_0x26142d(0xf7)](_0x26142d(0x1ae)))!=null?_0x3a9624:'','function':_0x44d437,'unitId':_0x18a410[_0x26142d(0x12e)](),'argsOfFunction':JSON[_0x26142d(0x20d)](_0x5a68a9),'invokeId':(_0x407bb2=_0x698bf0[_0x26142d(0x135)])!=null?_0x407bb2:'','executionId':(_0x373278=_0x698bf0[_0x26142d(0x94)])!=null?_0x373278:''};try{const _0x39099b=await this[_0x26142d(0x109)][_0x26142d(0x9c)](_0x20a88e,{'body':_0x25b2bc});return _0x39099b[_0x26142d(0x165)][_0x26142d(0x145)]&&_0x39099b['body'][_0x26142d(0x145)][_0x26142d(0x219)]!==Z['OK']?_0x26142d(0x260):_0x39099b[_0x26142d(0x165)]['result'];}catch{return _0x26142d(0x260);}}};dt=Fn([Ae(0x0,_0x121c1a),Ae(0x1,_0x19d3ff(_0x3d2675)),Ae(0x2,_0x5d7afb)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x15b4c2{constructor(){const _0x39a861=_0x267084;super(),_(this,'_id',_0x3add1d()),_(this,_0x39a861(0x81),new Set()),_(this,_0x39a861(0x103),new Map()),_(this,_0x39a861(0x14c),null),_(this,_0x39a861(0x1bb),new Map()),_(this,_0x39a861(0xc5),new Map()),this[_0x39a861(0x2a0)]();}[_0x267084(0x18a)](){const _0x36d973=_0x267084;super['dispose'](),this[_0x36d973(0x1bb)][_0x36d973(0x236)]((_0x295251,_0x433ae2)=>this[_0x36d973(0xa5)](_0x433ae2)),this[_0x36d973(0x14c)]&&window[_0x36d973(0x189)](this[_0x36d973(0x14c)]);}[_0x267084(0x16d)](_0x468108){const _0x70aff7=_0x267084;return this[_0x70aff7(0x10e)](_0x468108)[_0x70aff7(0x162)](_0x366b6a());}['editingUnit'](_0x17ad6f){const _0x31068a=_0x267084;this[_0x31068a(0x81)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x31068a(0x81)][_0x31068a(0x186)](_0x17ad6f),this['_send']({'type':0x0,'memberID':this[_0x31068a(0xec)],'unitIDs':[_0x17ad6f],'isForwarded':!0x1});}['disposeUnit'](_0x4c40bb){const _0x2cc7d0=_0x267084;this['_selfUnitIDs']['delete'](_0x4c40bb),this['_selfUnitIDs']['size']===0x0&&this[_0x2cc7d0(0x14c)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x267084(0x2a0)](){const _0x1aef4c=_0x267084;this['disposeWithMe'](_0x490c7d(_0x46507c(window,'storage')['subscribe'](_0x42a1b8=>{const _0x4600ec=_0x1936;if(_0x42a1b8[_0x4600ec(0xcb)]!==mt||!_0x42a1b8[_0x4600ec(0x8c)])return;const _0xf14699=JSON[_0x4600ec(0x24b)](_0x42a1b8[_0x4600ec(0x8c)]);this['_handleEvent'](_0xf14699);}))),window['addEventListener'](_0x1aef4c(0x115),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1aef4c(0x81)])}));}[_0x267084(0xcd)](_0x3f0771){const _0x3c2f58=_0x267084;switch(_0x3f0771['type']){case 0x0:this[_0x3c2f58(0xa8)](_0x3f0771);break;case 0x1:this[_0x3c2f58(0x82)](_0x3f0771);break;case 0x2:this['_handleHeartbeatEvent'](_0x3f0771);break;}}[_0x267084(0xa8)](_0x51f1f7){const _0x3209d6=_0x267084,{unitIDs:_0x49e274,memberID:_0x106ac9,isForwarded:_0x54153c}=_0x51f1f7;_0x49e274['forEach'](_0x3dbc99=>{const _0x228a59=_0x1936;if(!_0x54153c&&this[_0x228a59(0x103)][_0x228a59(0x2b0)](_0x3dbc99)&&this[_0x228a59(0x10e)](_0x3dbc99)['next'](_0x2d4d54[_0x228a59(0x275)]),!this[_0x228a59(0x103)][_0x228a59(0x2b0)](_0x3dbc99)||!this[_0x228a59(0x103)][_0x228a59(0xf7)](_0x3dbc99)[_0x228a59(0x2b0)](_0x106ac9)){const _0x53e220=this[_0x228a59(0x103)][_0x228a59(0xf7)](_0x3dbc99)||new Set();_0x53e220[_0x228a59(0x186)](_0x106ac9),this[_0x228a59(0x103)]['set'](_0x3dbc99,_0x53e220),this[_0x228a59(0xd6)](_0x106ac9);}}),_0x54153c||this[_0x3209d6(0x1c4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3209d6(0x81)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4b4c26){const _0x247347=_0x267084;this[_0x247347(0xa5)](_0x4b4c26);const _0x5df167=window[_0x247347(0x183)](()=>{const _0x5470c1=_0x247347;this[_0x5470c1(0x103)][_0x5470c1(0x236)](_0x4150f6=>{const _0x10d950=_0x5470c1;_0x4150f6[_0x10d950(0x74)](_0x4b4c26);});},St*0x2);this[_0x247347(0x1bb)][_0x247347(0x212)](_0x4b4c26,_0x5df167);}[_0x267084(0xa5)](_0x2a1013){const _0x240933=_0x267084;if(this['_clearOtherTimers']['has'](_0x2a1013)){const _0x1dd5e1=this[_0x240933(0x1bb)][_0x240933(0xf7)](_0x2a1013);_0x1dd5e1&&window[_0x240933(0x221)](_0x1dd5e1),this['_clearOtherTimers'][_0x240933(0x212)](_0x2a1013,null);}}[_0x267084(0x82)](_0x5f3afa){const _0x13bb78=_0x267084,{memberID:_0x1db643,unitIDs:_0x31fe5d}=_0x5f3afa;_0x31fe5d[_0x13bb78(0x236)](_0x8f216f=>{const _0x2c3456=_0x13bb78;var _0x35466e;const _0x70a6fc=this[_0x2c3456(0x103)]['get'](_0x8f216f);_0x70a6fc&&(_0x70a6fc['delete'](_0x1db643),(_0x35466e=this[_0x2c3456(0x10e)](_0x8f216f))==null||_0x35466e[_0x2c3456(0xdc)](_0x70a6fc['size']===0x0?_0x2d4d54[_0x2c3456(0x158)]:_0x2d4d54[_0x2c3456(0x275)]));}),this[_0x13bb78(0xa5)](_0x1db643);}['_handleHeartbeatEvent'](_0x2c99e4){const _0x19d352=_0x267084;this['_scheduleClearOtherTimer'](_0x2c99e4[_0x19d352(0xab)]);}['_send'](_0x102e01){const _0x246aa9=_0x267084;localStorage[_0x246aa9(0x161)](mt,JSON[_0x246aa9(0x20d)](_0x102e01));}[_0x267084(0x144)](){const _0x2dd22b=_0x267084;this[_0x2dd22b(0x14c)]=window[_0x2dd22b(0x192)](()=>{const _0xf27954=_0x2dd22b;this[_0xf27954(0x1c4)]({'type':0x2,'memberID':this[_0xf27954(0xec)]});},St);}[_0x267084(0x10e)](_0x16a6c6){const _0x2f2434=_0x267084;return this['_unitStatus'][_0x2f2434(0x2b0)](_0x16a6c6)||this['_unitStatus'][_0x2f2434(0x212)](_0x16a6c6,new _0x1c42a0(_0x2d4d54[_0x2f2434(0x158)])),this[_0x2f2434(0xc5)][_0x2f2434(0xf7)](_0x16a6c6);}}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 _0x2ad37e=_0x56fb;(function(_0x5b9cce,_0x3f6088){const _0x29cac1=_0x56fb,_0x4d72e5=_0x5b9cce();while(!![]){try{const _0x896847=parseInt(_0x29cac1(0x37b))/0x1*(-parseInt(_0x29cac1(0x25d))/0x2)+parseInt(_0x29cac1(0x262))/0x3+parseInt(_0x29cac1(0x285))/0x4*(-parseInt(_0x29cac1(0x372))/0x5)+-parseInt(_0x29cac1(0x1da))/0x6+parseInt(_0x29cac1(0x216))/0x7*(-parseInt(_0x29cac1(0x217))/0x8)+parseInt(_0x29cac1(0x3ba))/0x9*(parseInt(_0x29cac1(0x320))/0xa)+parseInt(_0x29cac1(0x2b6))/0xb;if(_0x896847===_0x3f6088)break;else _0x4d72e5['push'](_0x4d72e5['shift']());}catch(_0x19ed9f){_0x4d72e5['push'](_0x4d72e5['shift']());}}}(_0x4774,0x45a23));var Yt=Object[_0x2ad37e(0x294)],Wt=(_0x26cd45,_0x2c255e,_0x3399db)=>_0x2c255e in _0x26cd45?Yt(_0x26cd45,_0x2c255e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3399db}):_0x26cd45[_0x2c255e]=_0x3399db,_=(_0x394c39,_0x461006,_0x524e87)=>Wt(_0x394c39,typeof _0x461006!=_0x2ad37e(0x1cd)?_0x461006+'':_0x461006,_0x524e87);import{jsx as _0x4d84b9,jsxs as _0x392043}from'react/jsx-runtime';import{CollaborationStatus as _0x373053,CollaborationSessionService as _0x3ad90a,CollaborationController as _0x5c7c70,DataLoaderService as _0x3c78c6,MemberService as _0x434c4a,SessionStatus as _0x5418e6,ILocalCacheService as _0x2a978f,CollaborationUIEventService as _0x33dbbb,CollaborationUIEventId as _0x3406a2,DocCollaborationEntity as _0x2a90b3,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x23d3a9,getLocalCacheKey as _0x4e4c76,LOCAL_CACHE_INTERVAL as _0x5bf8d6,LOCAL_CACHE_INTERVAL_KEY as _0x347fdf,UniverCollaborationClientPlugin as _0x5dd9d5,CollaborationSocketService as _0x18048a,DEFAULT_WS_SESSION_TICKET_URL as _0xbf9fd3,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x735800,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x8521de,UnitStatus as _0x10d504}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x18b100,IUniverInstanceService as _0x2505af,Inject as _0x17dbc2,Injector as _0x7e98bc,Disposable as _0x58948b,createIdentifier as _0x3b129e,ILogService as _0x114287,ICommandService as _0xc8122f,Optional as _0x1b5d84,RxDisposable as _0x101452,Workbook as _0x49d5f8,DOC_RANGE_TYPE as _0x3daaca,debounce as _0x453269,Rectangle as _0x37e805,DisposableCollection as _0x37de77,toDisposable as _0x48616d,UniverInstanceType as _0x463f4d,generateRandomId as _0x27bf30,COLORS as _0x280995,ColorKit as _0xd09052,ThemeService as _0x209982,fromEventSubject as _0x50f12c,Tools as _0x1b7cfb,CommandType as _0x433e00,IConfigService as _0x1c36ce,CanceledError as _0x54ba8d,isFormulaString as _0x12e729,isFormulaId as _0x1d4d85,ILocalStorageService as _0x3a22b4,DependentOn as _0x454c73,Plugin as _0x4d2b42,merge as _0x5a335a,registerDependencies as _0x2880b8,mergeOverrideWithDependencies as _0x3a2996,touchDependencies as _0x2ff3d6}from'@univerjs/core';import{useObservable as _0x2ff056,useDependency as _0x3f166b,IUIPartsService as _0x2aad7d,BuiltInUIPart as _0x34a2e1,connectInjector as _0x22d687,IBeforeCloseService as _0x55bc43,IMessageService as _0x464b74,INotificationService as _0x574ce0}from'@univerjs/ui';import{BehaviorSubject as _0x434037,switchMap as _0x57d107,of as _0x49bed0,takeUntil as _0x59c3be,debounceTime as _0x3b4f5b,Subject as _0x1752ef,filter as _0x13b02b,merge as _0x53ab81,combineLatest as _0x118445,fromEvent as _0x50e66d,shareReplay as _0xe8cb63,mapTo as _0x35871a,distinctUntilChanged as _0x103a9e}from'rxjs';import{Tooltip as _0x29cbb3,clsx as _0x856ad9,MessageType as _0x1bf3a5}from'@univerjs/design';import{useRef as _0xb66a33,createElement as _0x12d4ed,forwardRef as _0x2b6e6d,useCallback as _0xa40c5}from'react';import{IRemoteInstanceService as _0x3cff9a}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0xddd81c,RefRangeService as _0x437973,SetSelectionsOperation as _0x197801,SheetsSelectionsService as _0x527ccf,EffectRefRangId as _0x20b6c0,handleIRemoveRow as _0x1c997f,handleIRemoveCol as _0xdecc37,handleMoveRange as _0x7447ca,handleInsertRow as _0x1b2504,handleInsertRangeMoveRight as _0x4152b3,handleInsertRangeMoveDown as _0x2dad90,handleInsertCol as _0x508d53,handleDeleteRangeMoveUp as _0x27814a,handleDeleteRangeMoveLeft as _0x36d26f,runRefRangeMutations as _0x2f12ed}from'@univerjs/sheets';import{Shape as _0x3194ac,Rect as _0x4d98e9,getColor as _0x51f4f8,RegularPolygon as _0x298b35,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1f11cc,Vector2 as _0x294ab2,SHEET_VIEWPORT_KEY as _0xacfd79,IRenderManagerService as _0x1b9e7e}from'@univerjs/engine-render';import{HTTPService as _0x3670ce,ISocketService as _0x2307e5,WebSocketService as _0x4d7622}from'@univerjs/network';import{IDocClipboardService as _0x59dde8,NodePositionConvertToCursor as _0x491b18,NodePositionConvertToRectRange as _0x1d8b30,TEXT_RANGE_LAYER_INDEX as _0x186da9,SetDocZoomRatioOperation as _0x2828f2,DocIMEInputManagerService as _0x1d477d,DocStateChangeManagerService as _0x4fdde9}from'@univerjs/docs-ui';import{IImageIoService as _0x28b867}from'@univerjs/drawing';import{ITransformService as _0x185243,CollaborationEvent as _0x2c62a7,isTransformMutationFailure as _0x27b05a,isTransformMutationsWithChangesetSuccess as _0x4a4a43,RevisionService as _0x55b6bd,ISnapshotServerService as _0x4c3aa1}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5648c6,RichTextEditingMutation as _0xf76e73,DocSelectionManagerService as _0x10a29a,DocSkeletonManagerService as _0x4b0954}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x5c13ea,serializeRangeWithSheet as _0xceab2,FormulaExecuteStageType as _0xb1e08d,FormulaExecutedStateType as _0x4fa3c4,SetFormulaCalculationStartMutation as _0x218f50,SetFormulaCalculationNotificationMutation as _0x30668b}from'@univerjs/engine-formula';import{map as _0x4c7446,filter as _0x44c16b,throttleTime as _0x4f3700,takeUntil as _0x21fa26,switchMap as _0x1c1fbe}from'rxjs/operators';import{SheetSkeletonManagerService as _0x1b317e,getCoordByCell as _0x3bb5c5,getSheetObject as _0x4f5a02}from'@univerjs/sheets-ui';function Ge({ref:_0x366002,..._0x5a4bd8}){const _0x381ca5=_0x2ad37e,{icon:_0x25a2b8,id:_0x224cc4,className:_0x423986,extend:_0x10f19c,..._0x509165}=_0x5a4bd8,_0x2e36f1=('univerjs-icon\x20univerjs-icon-'+_0x224cc4+'\x20'+(_0x423986||''))['trim'](),_0x18eaa6=_0xb66a33('_'+Ei());return At(_0x25a2b8,''+_0x224cc4,{'defIds':_0x25a2b8[_0x381ca5(0x24f)],'idSuffix':_0x18eaa6[_0x381ca5(0x188)]},{'ref':_0x366002,'className':_0x2e36f1,..._0x509165},_0x10f19c);}function At(_0x5e05b8,_0x1067ba,_0x4729d9,_0x13d7c1,_0x53d012){const _0x542173=_0x2ad37e;return _0x12d4ed(_0x5e05b8[_0x542173(0x245)],{'key':_0x1067ba,...gi(_0x5e05b8,_0x4729d9,_0x53d012),..._0x13d7c1},(vi(_0x5e05b8,_0x4729d9)[_0x542173(0x209)]||[])[_0x542173(0x2db)]((_0xf235f9,_0x450e37)=>At(_0xf235f9,_0x1067ba+'-'+_0x5e05b8['tag']+'-'+_0x450e37,_0x4729d9,void 0x0,_0x53d012)));}function gi(_0x2e7a8e,_0x5e7155,_0x3117bf){const _0x497b50=_0x2ad37e,_0x418131={..._0x2e7a8e[_0x497b50(0x29d)]};_0x3117bf!=null&&_0x3117bf[_0x497b50(0x252)]&&_0x418131['fill']==='colorChannel1'&&(_0x418131[_0x497b50(0x34f)]=_0x3117bf[_0x497b50(0x252)]),_0x2e7a8e[_0x497b50(0x245)]===_0x497b50(0x28a)&&_0x418131['id']&&(_0x418131['id']=_0x418131['id']+_0x5e7155['idSuffix']),Object[_0x497b50(0x1af)](_0x418131)[_0x497b50(0x3bd)](([_0x3a2e0c,_0xb1b1f2])=>{const _0x351a45=_0x497b50;_0x3a2e0c===_0x351a45(0x28a)&&typeof _0xb1b1f2==_0x351a45(0x1dc)&&(_0x418131[_0x3a2e0c]=_0xb1b1f2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5e7155[_0x351a45(0x23f)]+')'));});const {defIds:_0x7ffa04}=_0x5e7155;return!_0x7ffa04||_0x7ffa04[_0x497b50(0x309)]===0x0||(_0x2e7a8e[_0x497b50(0x245)]===_0x497b50(0x1b4)&&_0x418131['xlink:href']&&(_0x418131[_0x497b50(0x23e)]=_0x418131[_0x497b50(0x23e)]+_0x5e7155[_0x497b50(0x23f)]),Object[_0x497b50(0x1af)](_0x418131)[_0x497b50(0x3bd)](([_0x12097e,_0x468c15])=>{const _0x53930e=_0x497b50;typeof _0x468c15==_0x53930e(0x1dc)&&(_0x418131[_0x12097e]=_0x468c15[_0x53930e(0x1ee)](/url\(#(.*)\)/,'url(#$1'+_0x5e7155['idSuffix']+')'));})),_0x418131;}function vi(_0x5d8dba,_0x25937d){const _0x3a34d4=_0x2ad37e;var _0xc95cff;const {defIds:_0x5d70d2}=_0x25937d;return!_0x5d70d2||_0x5d70d2[_0x3a34d4(0x309)]===0x0?_0x5d8dba:_0x5d8dba[_0x3a34d4(0x245)]===_0x3a34d4(0x1b2)&&((_0xc95cff=_0x5d8dba['children'])!=null&&_0xc95cff[_0x3a34d4(0x309)])?{..._0x5d8dba,'children':_0x5d8dba[_0x3a34d4(0x209)][_0x3a34d4(0x2db)](_0x12523f=>typeof _0x12523f[_0x3a34d4(0x29d)]['id']=='string'&&_0x5d70d2&&_0x5d70d2[_0x3a34d4(0x181)](_0x12523f['attrs']['id'])?{..._0x12523f,'attrs':{..._0x12523f[_0x3a34d4(0x29d)],'id':_0x12523f['attrs']['id']+_0x25937d['idSuffix']}}:_0x12523f)}:_0x5d8dba;}function Ei(){const _0x21a6c8=_0x2ad37e;return Math[_0x21a6c8(0x3b3)]()[_0x21a6c8(0x20b)](0x24)[_0x21a6c8(0x2bf)](0x2,0x8);}Ge[_0x2ad37e(0x38c)]=_0x2ad37e(0x3b2);const pi={'tag':'svg','attrs':{'xmlns':_0x2ad37e(0x27e),'fill':_0x2ad37e(0x348),'viewBox':_0x2ad37e(0x1cb),'width':_0x2ad37e(0x39e),'height':_0x2ad37e(0x39e)},'children':[{'tag':'g','attrs':{'clipPath':_0x2ad37e(0x180)},'children':[{'tag':'path','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':_0x2ad37e(0x184),'strokeLinejoin':_0x2ad37e(0x184),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2ad37e(0x2f9),'attrs':{'id':_0x2ad37e(0x2b8)},'children':[{'tag':_0x2ad37e(0x385),'attrs':{'fill':'white','d':_0x2ad37e(0x3ca)}}]}]}],'defIds':[_0x2ad37e(0x2b8)]},Pt=_0x2b6e6d(function(_0x37db97,_0x2e5de2){const _0x5d02fd=_0x2ad37e;return _0x12d4ed(Ge,Object['assign']({},_0x37db97,{'id':_0x5d02fd(0x392),'ref':_0x2e5de2,'icon':pi}));});Pt['displayName']='OffLineIcon';const Oi={'tag':_0x2ad37e(0x397),'attrs':{'xmlns':_0x2ad37e(0x27e),'fill':_0x2ad37e(0x348),'viewBox':_0x2ad37e(0x187),'width':_0x2ad37e(0x39e),'height':_0x2ad37e(0x39e)},'children':[{'tag':'g','attrs':{'clipPath':_0x2ad37e(0x28b)},'children':[{'tag':_0x2ad37e(0x385),'attrs':{'stroke':'currentColor','d':_0x2ad37e(0x241),'strokeLinecap':_0x2ad37e(0x184),'strokeLinejoin':_0x2ad37e(0x184),'strokeWidth':1.2}}]},{'tag':_0x2ad37e(0x1b2),'attrs':{},'children':[{'tag':_0x2ad37e(0x2f9),'attrs':{'id':_0x2ad37e(0x213)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2ad37e(0x3ca),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x2b6e6d(function(_0x4c5dc4,_0x5b3e10){const _0x5c2d7f=_0x2ad37e;return _0x12d4ed(Ge,Object[_0x5c2d7f(0x234)]({},_0x4c5dc4,{'id':_0x5c2d7f(0x253),'ref':_0x5b3e10,'icon':Oi}));});wt[_0x2ad37e(0x38c)]='OnLineIcon';function Ti(_0x264c0e){const _0x4308ad=_0x2ad37e;switch(_0x264c0e){case _0x373053[_0x4308ad(0x35e)]:return _0x4308ad(0x35a);case _0x373053[_0x4308ad(0x378)]:return _0x4308ad(0x2e2);case _0x373053[_0x4308ad(0x3c4)]:return _0x4308ad(0x1a1);case _0x373053['NOT_COLLAB']:return _0x4308ad(0x19b);case _0x373053[_0x4308ad(0x3bb)]:case _0x373053[_0x4308ad(0x30f)]:return'collabStatus.syncing';case _0x373053['SYNCED']:case _0x373053['PENDING']:return _0x4308ad(0x21f);}}function Ci(_0x41d6b8){const _0x1c305e=_0x2ad37e,{status$:_0x53c7ea}=_0x41d6b8,_0x25c1f4=_0x2ff056(_0x53c7ea,_0x373053[_0x1c305e(0x32b)]),_0x2fbf8e=_0x3f166b(_0x18b100),_0x9341c3=_0x3f166b(_0x3ad90a),_0x25339e=_0x25c1f4!==_0x373053[_0x1c305e(0x35e)],_0x4964a7=_0x2fbf8e['t'](Ti(_0x25c1f4)),_0x2ece69=_0x25339e?_0x4d84b9(wt,{}):_0x4d84b9(Pt,{}),_0x4ae6b1=_0xa40c5(()=>{const _0x2b3968=_0x1c305e;_0x25339e||_0x9341c3[_0x2b3968(0x2b2)]();},[_0x25339e,_0x9341c3]);function _0x506f53(){const _0x13f753=_0x1c305e;return _0x392043(_0x13f753(0x2e5),{'className':_0x13f753(0x1d7),'onClick':_0x4ae6b1,'children':[_0x4d84b9(_0x13f753(0x2e5),{'className':_0x856ad9('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x25339e,'univer-text-red-500':!_0x25339e}),'children':_0x2ece69}),_0x4d84b9(_0x13f753(0x2e5),{'className':_0x13f753(0x3b8),'children':_0x4964a7})]});}return _0x25339e?_0x506f53():_0x4d84b9(_0x29cbb3,{'title':_0x2fbf8e['t'](_0x1c305e(0x2c3)),'children':_0x506f53()});}var Ri=Object[_0x2ad37e(0x316)],Di=(_0x54dcaf,_0x890fdd,_0x456997,_0x3fa06d)=>{const _0x145de3=_0x2ad37e;for(var _0x1f88d6=_0x3fa06d>0x1?void 0x0:_0x3fa06d?Ri(_0x890fdd,_0x456997):_0x890fdd,_0x5f19a8=_0x54dcaf[_0x145de3(0x309)]-0x1,_0x357f51;_0x5f19a8>=0x0;_0x5f19a8--)(_0x357f51=_0x54dcaf[_0x5f19a8])&&(_0x1f88d6=_0x357f51(_0x1f88d6)||_0x1f88d6);return _0x1f88d6;},se=(_0x54a9bd,_0x495f66)=>(_0x405f50,_0x299326)=>_0x495f66(_0x405f50,_0x299326,_0x54a9bd);let ae=class extends _0x58948b{constructor(_0x1f4235,_0x2e3106,_0x21a0dc,_0x31d5c4){const _0x3d3bb1=_0x2ad37e;super(),_(this,_0x3d3bb1(0x393),new _0x434037(_0x373053[_0x3d3bb1(0x32b)])),(this[_0x3d3bb1(0x22d)]=_0x1f4235,this[_0x3d3bb1(0x291)]=_0x2e3106,this[_0x3d3bb1(0x1c1)]=_0x21a0dc,this['_uiPartsService']=_0x31d5c4,this[_0x3d3bb1(0x27a)](),this[_0x3d3bb1(0x1db)]());}['_initStatusListener'](){const _0x525ca0=_0x2ad37e;this[_0x525ca0(0x3a8)](this[_0x525ca0(0x22d)]['focused$'][_0x525ca0(0x2cc)](_0x57d107(()=>{const _0x51c26f=_0x525ca0,_0x184713=this[_0x51c26f(0x22d)]['getFocusedUnit']();return _0x184713?this[_0x51c26f(0x1c1)][_0x51c26f(0x1d5)](_0x184713[_0x51c26f(0x30c)]()):_0x49bed0(null);}),_0x57d107(_0x386652=>_0x386652?_0x386652[_0x525ca0(0x2ad)]:_0x49bed0(_0x373053[_0x525ca0(0x32b)])))['subscribe'](_0x5ec494=>{const _0x143dc4=_0x525ca0;this[_0x143dc4(0x393)]['next'](_0x5ec494);}));}[_0x2ad37e(0x27a)](){const _0x3ba0d3=_0x2ad37e;this['disposeWithMe'](this[_0x3ba0d3(0x36e)][_0x3ba0d3(0x3c8)](_0x34a2e1[_0x3ba0d3(0x337)],()=>_0x22d687(bi({'status$':this['_status$'][_0x3ba0d3(0x32f)]()}),this[_0x3ba0d3(0x291)])));}};ae=Di([se(0x0,_0x2505af),se(0x1,_0x17dbc2(_0x7e98bc)),se(0x2,_0x17dbc2(_0x5c7c70)),se(0x3,_0x2aad7d)],ae);function _0x56fb(_0x28168d,_0x81d9cb){const _0x477499=_0x4774();return _0x56fb=function(_0x56fbb7,_0xe1b4ac){_0x56fbb7=_0x56fbb7-0x180;let _0x968c5d=_0x477499[_0x56fbb7];return _0x968c5d;},_0x56fb(_0x28168d,_0x81d9cb);}function bi(_0x4f50d6){const {status$:_0x65be53}=_0x4f50d6;return function(){return _0x4d84b9(Ci,{'status$':_0x65be53});};}const yt=_0x3b129e(_0x2ad37e(0x22f));var Ni=Object[_0x2ad37e(0x316)],Li=(_0x3bc851,_0x34b4cc,_0x4522f8,_0x351800)=>{const _0x3ef327=_0x2ad37e;for(var _0x3d691a=_0x351800>0x1?void 0x0:_0x351800?Ni(_0x34b4cc,_0x4522f8):_0x34b4cc,_0xe820a=_0x3bc851[_0x3ef327(0x309)]-0x1,_0x3a65ae;_0xe820a>=0x0;_0xe820a--)(_0x3a65ae=_0x3bc851[_0xe820a])&&(_0x3d691a=_0x3a65ae(_0x3d691a)||_0x3d691a);return _0x3d691a;},K=(_0x35cabc,_0x2fb731)=>(_0x53f933,_0x521eff)=>_0x2fb731(_0x53f933,_0x521eff,_0x35cabc);let ce=class extends _0x101452{constructor(_0x2d93f7,_0x250de9,_0x1790f6,_0x4ad423,_0x38b716){const _0x521384=_0x2ad37e;super(),this[_0x521384(0x2ee)]=_0x2d93f7,this['_logService']=_0x250de9,this[_0x521384(0x19e)]=_0x1790f6,this[_0x521384(0x1f3)]=_0x4ad423,_0x38b716?_0x38b716==null||_0x38b716['whenReady']()[_0x521384(0x383)](()=>this[_0x521384(0x3ad)]()):(this[_0x521384(0x191)][_0x521384(0x1a6)](_0x521384(0x387),_0x521384(0x2ea)),this[_0x521384(0x3ad)]());}async['_init'](){const _0x24032f=_0x2ad37e,_0x37abf7=this[_0x24032f(0x2ee)][_0x24032f(0x1d3)](_0x24032f(0x2b7)),_0x4541df=this[_0x24032f(0x2ee)][_0x24032f(0x1d3)](_0x24032f(0x212)),_0xd03e63=this['_urlService'][_0x24032f(0x1d3)]('subunit');if(!_0x37abf7||!_0x4541df){this[_0x24032f(0x191)][_0x24032f(0x1a6)](_0x24032f(0x387),_0x24032f(0x247));return;}const _0x53527=await this[_0x24032f(0x1f3)]['loadUnit'](_0x37abf7,Number(_0x4541df),_0xd03e63);_0x53527&&_0x53527 instanceof _0x49d5f8&&this['_setupSubUnitSync'](_0x53527);}async['_setupSubUnitSync'](_0x3130a0){const _0x4beb77=_0x2ad37e;await this[_0x4beb77(0x264)](_0x3130a0),_0x3130a0[_0x4beb77(0x29e)][_0x4beb77(0x2cc)](_0x59c3be(this['dispose$']))['subscribe'](_0x3fe9d8=>{_0x3fe9d8&&this['_updateURLWithCurrentState'](_0x3fe9d8);}),this[_0x4beb77(0x2ee)][_0x4beb77(0x31b)][_0x4beb77(0x2cc)](_0x59c3be(this[_0x4beb77(0x23b)]))['subscribe'](()=>this[_0x4beb77(0x264)](_0x3130a0));}[_0x2ad37e(0x25b)](_0x345158,_0x2d2819=!0x1){const _0x8124e9=_0x2ad37e,_0x2193ae=this[_0x8124e9(0x2ee)][_0x8124e9(0x1d3)](_0x8124e9(0x3a4));_0x345158['getSheetId']()!==_0x2193ae&&this['_urlService']['setParam'](_0x8124e9(0x3a4),_0x345158[_0x8124e9(0x236)](),_0x2d2819);}async[_0x2ad37e(0x264)](_0x40e486){const _0x54eba=_0x2ad37e;var _0x37b37b;const _0x3a83ab=this[_0x54eba(0x2ee)][_0x54eba(0x1d3)](_0x54eba(0x3a4));if(!_0x3a83ab||!_0x40e486[_0x54eba(0x26d)](_0x3a83ab)){const _0x5c4e14=_0x40e486[_0x54eba(0x359)]()[0x0],_0x13f4d9=_0x40e486[_0x54eba(0x26d)](_0x5c4e14);if(!_0x13f4d9)return;this[_0x54eba(0x25b)](_0x13f4d9,!0x0),await this['_commandService'][_0x54eba(0x263)](_0xddd81c['id'],{'unitId':_0x40e486[_0x54eba(0x30c)](),'subUnitId':_0x5c4e14});return;}((_0x37b37b=_0x40e486[_0x54eba(0x1ab)]())==null?void 0x0:_0x37b37b[_0x54eba(0x236)]())!==_0x3a83ab&&await this[_0x54eba(0x19e)][_0x54eba(0x263)](_0xddd81c['id'],{'unitId':_0x40e486[_0x54eba(0x30c)](),'subUnitId':_0x3a83ab});}};ce=Li([K(0x0,yt),K(0x1,_0x114287),K(0x2,_0xc8122f),K(0x3,_0x17dbc2(_0x3c78c6)),K(0x4,_0x1b5d84(_0x3cff9a))],ce);var Ui=Object[_0x2ad37e(0x316)],Mi=(_0x228925,_0x523f43,_0x11286f,_0x1dd29c)=>{const _0x56ed81=_0x2ad37e;for(var _0x399529=_0x1dd29c>0x1?void 0x0:_0x1dd29c?Ui(_0x523f43,_0x11286f):_0x523f43,_0x276699=_0x228925[_0x56ed81(0x309)]-0x1,_0x42ba57;_0x276699>=0x0;_0x276699--)(_0x42ba57=_0x228925[_0x276699])&&(_0x399529=_0x42ba57(_0x399529)||_0x399529);return _0x399529;},rt=(_0x1a2f84,_0x161d19)=>(_0x47e94f,_0x4d4fb8)=>_0x161d19(_0x47e94f,_0x4d4fb8,_0x1a2f84);let $e=class extends _0x101452{constructor(_0x668df6,_0x18a6c0){const _0x517ff0=_0x2ad37e;super(),this[_0x517ff0(0x1f5)]=_0x668df6,this[_0x517ff0(0x22c)]=_0x18a6c0,this[_0x517ff0(0x3ad)]();}[_0x2ad37e(0x3ad)](){const _0x44541f=_0x2ad37e,_0x4f62ae=this;this[_0x44541f(0x3a8)](this[_0x44541f(0x1f5)][_0x44541f(0x305)]({'onBeforePasteImage':async _0x57db6e=>{const _0x13fd64=_0x44541f,_0x4eb4f7=await _0x4f62ae[_0x13fd64(0x22c)][_0x13fd64(0x358)](_0x57db6e);return _0x4eb4f7?{'source':_0x4eb4f7[_0x13fd64(0x3c3)],'imageSourceType':_0x4eb4f7[_0x13fd64(0x394)]}:null;}}));}};$e=Mi([rt(0x0,_0x59dde8),rt(0x1,_0x28b867)],$e);const ot=['purple.300',_0x2ad37e(0x2a7),_0x2ad37e(0x30d),_0x2ad37e(0x2c4),_0x2ad37e(0x38e),_0x2ad37e(0x2da)];class Ke extends _0x58948b{constructor(){const _0x354c98=_0x2ad37e;super(...arguments),_(this,_0x354c98(0x1fb),new Map()),_(this,'_colorIndex',0x0);}[_0x2ad37e(0x366)](_0x2a0223){const _0x9d313a=_0x2ad37e;if(this['_assignedColors'][_0x9d313a(0x21a)](_0x2a0223))return this['_assignedColors'][_0x9d313a(0x1b6)](_0x2a0223);const _0x827967=ot[this[_0x9d313a(0x1b0)]];return this[_0x9d313a(0x1b0)]=(this['_colorIndex']+0x1)%ot[_0x9d313a(0x309)],this['_assignedColors'][_0x9d313a(0x2fc)](_0x2a0223,_0x827967),_0x827967;}}function $t(_0x430019){const _0x3d6e83=_0x2ad37e;let _0x4e9953='';for(const _0x3afcfe of _0x430019){const {startOffset:_0x2ed13e,endOffset:_0x4dc6a9,isActive:_0x514768,rangeType:_0x46dcdd,segmentId:_0x32aa76,segmentPage:_0x58fb04}=_0x3afcfe;_0x4e9953[_0x3d6e83(0x309)]&&(_0x4e9953+=','),_0x4e9953+=_0x2ed13e+':'+_0x4dc6a9+':'+(_0x514768?'1':'0')+':'+_0x46dcdd+':'+_0x32aa76+':'+_0x58fb04;}return _0x4e9953;}function Ai(_0x321802){const _0xbcf7ac=_0x2ad37e,_0x295b82=_0x321802[_0xbcf7ac(0x1a5)](','),_0x5f1743=[];for(const _0x4f673c of _0x295b82){const [_0x1e6839,_0x58b14d,_0x20de34,_0x31c986,_0x485002,_0x17da3b]=_0x4f673c[_0xbcf7ac(0x1a5)](':');_0x5f1743['push']({'startOffset':Number(_0x1e6839),'endOffset':Number(_0x58b14d),'collapsed':_0x1e6839===_0x58b14d,'isActive':_0x20de34==='1','rangeType':_0x31c986===_0x3daaca[_0xbcf7ac(0x399)]?_0x3daaca[_0xbcf7ac(0x399)]:_0x3daaca[_0xbcf7ac(0x32a)],'segmentId':typeof _0x485002==_0xbcf7ac(0x1dc)?String(_0x485002):'','segmentPage':Number(_0x17da3b!=null?_0x17da3b:-0x1)});}return _0x5f1743[_0xbcf7ac(0x36b)](_0x2bbf00=>_0x2bbf00[_0xbcf7ac(0x308)])||(_0x5f1743[0x0]['isActive']=!0x0),_0x5f1743;}class ze extends _0x101452{constructor(){const _0x5918ec=_0x2ad37e;super(...arguments),_(this,_0x5918ec(0x2d7),new _0x434037(null)),_(this,'collabCursorState$',this[_0x5918ec(0x2d7)][_0x5918ec(0x32f)]());}[_0x2ad37e(0x210)](_0x58929b){const _0x204456=_0x2ad37e,{unitID:_0x48e0bb,memberID:_0x411104,textRanges:_0x3bb969}=_0x58929b,_0x4ab1e0=$t(_0x3bb969);if(_0x4ab1e0==='')return;const _0x1b32ad={'unitID':_0x48e0bb,'memberID':_0x411104,'selection':_0x4ab1e0};this[_0x204456(0x2d7)][_0x204456(0x229)](_0x1b32ad);}}var Pi=Object[_0x2ad37e(0x316)],wi=(_0x6c9f4b,_0x495c15,_0x4fd43c,_0x3dec26)=>{const _0x41d0da=_0x2ad37e;for(var _0x31ce58=_0x3dec26>0x1?void 0x0:_0x3dec26?Pi(_0x495c15,_0x4fd43c):_0x495c15,_0xb95cc0=_0x6c9f4b[_0x41d0da(0x309)]-0x1,_0x486870;_0xb95cc0>=0x0;_0xb95cc0--)(_0x486870=_0x6c9f4b[_0xb95cc0])&&(_0x31ce58=_0x486870(_0x31ce58)||_0x31ce58);return _0x31ce58;},A=(_0x473607,_0x5bdf24)=>(_0x37084b,_0xcec6e)=>_0x5bdf24(_0x37084b,_0xcec6e,_0x473607);const yi=0x12c,$i=0x64;let xe=class extends _0x101452{constructor(_0x4840cd,_0x59bebb,_0x3e00a8,_0x2981de,_0x2ddcc7,_0x1e3a51,_0x35e5a5,_0x557ccb,_0x18e3fd){const _0x2d4cda=_0x2ad37e;super(),_(this,_0x2d4cda(0x1f2),!0x1),_(this,_0x2d4cda(0x3ad),!0x1),_(this,_0x2d4cda(0x219),new _0x434037(new Map())),_(this,_0x2d4cda(0x330),this[_0x2d4cda(0x219)][_0x2d4cda(0x32f)]()),_(this,'_roomMembers$',new _0x434037([])),_(this,_0x2d4cda(0x192),this[_0x2d4cda(0x30e)][_0x2d4cda(0x2cc)](_0x3b4f5b(yi))),_(this,_0x2d4cda(0x3a1),_0x453269(_0x35c756=>{const _0x4eb1e0=_0x2d4cda,_0xbf142a={'eventID':_0x2c62a7['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x4eb1e0(0x391)][_0x4eb1e0(0x2fd)](),'selection':$t(_0x35c756)}};this[_0x4eb1e0(0x391)][_0x4eb1e0(0x1b7)](_0xbf142a,this[_0x4eb1e0(0x345)]);},$i)),(this[_0x2d4cda(0x345)]=_0x4840cd,this[_0x2d4cda(0x391)]=_0x59bebb,this[_0x2d4cda(0x291)]=_0x3e00a8,this[_0x2d4cda(0x3c9)]=_0x2981de,this['_memberService']=_0x2ddcc7,this['_syncEditingCollabCursorService']=_0x1e3a51,this[_0x2d4cda(0x25f)]=_0x35e5a5,this[_0x2d4cda(0x22d)]=_0x557ccb,this[_0x2d4cda(0x19e)]=_0x18e3fd);}get[_0x2ad37e(0x1f7)](){const _0x530cf3=_0x2ad37e;return this[_0x530cf3(0x219)][_0x530cf3(0x20a)]();}get[_0x2ad37e(0x26c)](){const _0x1cc0b4=_0x2ad37e;return this[_0x1cc0b4(0x30e)][_0x1cc0b4(0x20a)]();}[_0x2ad37e(0x382)](){const _0x112a00=_0x2ad37e;super[_0x112a00(0x382)](),this[_0x112a00(0x219)][_0x112a00(0x229)](new Map()),this['_cursorInfo$'][_0x112a00(0x1bd)](),this['_roomMembers$']['next']([]),this[_0x112a00(0x30e)][_0x112a00(0x1bd)]();}[_0x2ad37e(0x3d0)](){const _0x5c63c0=_0x2ad37e;this[_0x5c63c0(0x3ad)]||(this['_init']=!0x0,this['_session'][_0x5c63c0(0x298)]['pipe'](_0x59c3be(this[_0x5c63c0(0x23b)]))[_0x5c63c0(0x215)](_0x505430=>{const _0x5e1a9d=_0x5c63c0;_0x505430===_0x5418e6[_0x5e1a9d(0x3bf)]?this[_0x5e1a9d(0x2d6)]():this[_0x5e1a9d(0x1e8)]();}),this[_0x5c63c0(0x391)][_0x5c63c0(0x371)][_0x5c63c0(0x2cc)](_0x59c3be(this[_0x5c63c0(0x23b)]))[_0x5c63c0(0x215)](_0x22ce66=>{const _0x13bf2d=_0x5c63c0,_0x1c62b6=_0x22ce66[_0x13bf2d(0x1e4)];_0x1c62b6===_0x2c62a7['UPDATE_CURSOR']&&this[_0x13bf2d(0x1bb)](_0x22ce66),_0x1c62b6===_0x2c62a7[_0x13bf2d(0x2f3)]&&this[_0x13bf2d(0x39b)](_0x22ce66);}),this[_0x5c63c0(0x3a8)](this[_0x5c63c0(0x19e)][_0x5c63c0(0x23d)](_0x2fcf67=>{const _0x269ab0=_0x5c63c0,_0x5da908=_0x2fcf67['params'];_0x5da908!=null&&this[_0x269ab0(0x1f2)]&&_0x2fcf67['id']===_0x5648c6['id']&&_0x5da908[_0x269ab0(0x1d8)]===this['unitID']&&_0x5da908[_0x269ab0(0x315)]===!0x1&&_0x5da908[_0x269ab0(0x22a)]['length']>0x0&&this[_0x269ab0(0x3a1)](_0x5da908['ranges']);})),this[_0x5c63c0(0x373)]['collabCursorState$']['pipe'](_0x59c3be(this[_0x5c63c0(0x23b)]))[_0x5c63c0(0x215)](_0x322826=>{const _0x2712cb=_0x5c63c0;if((_0x322826==null?void 0x0:_0x322826[_0x2712cb(0x345)])!==this['unitID'])return;const _0x377ee0={'eventID':_0x2c62a7[_0x2712cb(0x389)],'data':_0x322826};this[_0x2712cb(0x1bb)](_0x377ee0);}),this[_0x5c63c0(0x3a8)](this[_0x5c63c0(0x19e)][_0x5c63c0(0x23d)](_0x3debd7=>{const _0xe83a1d=_0x5c63c0;if(_0x3debd7['params']==null)return;const _0x51a60f=_0x3debd7['params'];if(_0x3debd7['id']!==_0xf76e73['id']||_0x51a60f['unitId']!==this[_0xe83a1d(0x345)])return;const _0x3593a1={'id':_0xe83a1d(0x2f6),'params':_0x51a60f},_0x3d4099=this['cursorInfo'];for(const [_0x58f865,_0x46853f]of _0x3d4099){const _0x3cf42f={'id':_0xe83a1d(0x2f6),'params':{'unitId':this[_0xe83a1d(0x345)],'actions':null,'textRanges':_0x46853f[_0xe83a1d(0x22a)]}},_0xa6c724=this[_0xe83a1d(0x25f)][_0xe83a1d(0x286)](_0x3593a1,_0x3cf42f,!0x1);if(_0x27b05a(_0xa6c724))throw _0xa6c724[_0xe83a1d(0x231)];_0x3d4099[_0xe83a1d(0x2fc)](_0x58f865,{..._0x46853f,'ranges':_0xa6c724[_0xe83a1d(0x1fa)][_0xe83a1d(0x2d1)][_0xe83a1d(0x36f)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x3d4099);});})));}[_0x2ad37e(0x1bb)](_0x5686e0){const _0x597083=_0x2ad37e;var _0x8b7849,_0x325ce5;const {memberID:_0x53fc45,selection:_0x16b30a}=_0x5686e0[_0x597083(0x206)],_0x4e6c5a=Ai(_0x16b30a),_0x4ac578=(_0x325ce5=(_0x8b7849=this[_0x597083(0x2d8)][_0x597083(0x1e1)](this[_0x597083(0x345)],_0x53fc45))==null?void 0x0:_0x8b7849[_0x597083(0x272)])!=null?_0x325ce5:'Unknown\x20user',_0x27a25c={'color':this[_0x597083(0x3c9)]['assignAColorForMemberID'](_0x53fc45),'name':_0x4ac578,'ranges':_0x4e6c5a},_0x26349b=this['cursorInfo'];_0x26349b[_0x597083(0x2fc)](_0x53fc45,_0x27a25c),this[_0x597083(0x219)]['next'](_0x26349b);}[_0x2ad37e(0x39b)](_0x269a39){const _0x1cd803=_0x2ad37e,{memberID:_0x3dda0b}=_0x269a39[_0x1cd803(0x206)],_0x1b1f4f=this[_0x1cd803(0x1f7)];_0x1b1f4f[_0x1cd803(0x258)](_0x3dda0b),this['_cursorInfo$'][_0x1cd803(0x229)](_0x1b1f4f);}[_0x2ad37e(0x2d6)](){const _0x55dbd7=_0x2ad37e;var _0x37469f;if(this[_0x55dbd7(0x1f2)]=!0x0,((_0x37469f=this[_0x55dbd7(0x22d)]['getFocusedUnit']())==null?void 0x0:_0x37469f[_0x55dbd7(0x30c)]())!==this['unitID'])return;const _0x4167ab=this['_injector'][_0x55dbd7(0x1b6)](_0x10a29a)[_0x55dbd7(0x277)]();Array[_0x55dbd7(0x3b6)](_0x4167ab)&&_0x4167ab[_0x55dbd7(0x309)]>0x0&&this[_0x55dbd7(0x3a1)](_0x4167ab);}[_0x2ad37e(0x1e8)](){const _0x234c88=_0x2ad37e;this[_0x234c88(0x1f2)]=!0x1;}};xe=wi([A(0x2,_0x17dbc2(_0x7e98bc)),A(0x3,_0x17dbc2(Ke)),A(0x4,_0x17dbc2(_0x434c4a)),A(0x5,_0x17dbc2(ze)),A(0x6,_0x185243),A(0x7,_0x2505af),A(0x8,_0xc8122f)],xe);var xi=Object[_0x2ad37e(0x316)],Bi=(_0x429f35,_0x5af433,_0xf10ed1,_0x488111)=>{const _0x2a46a4=_0x2ad37e;for(var _0x321413=_0x488111>0x1?void 0x0:_0x488111?xi(_0x5af433,_0xf10ed1):_0x5af433,_0x480695=_0x429f35[_0x2a46a4(0x309)]-0x1,_0x5a87ff;_0x480695>=0x0;_0x480695--)(_0x5a87ff=_0x429f35[_0x480695])&&(_0x321413=_0x5a87ff(_0x321413)||_0x321413);return _0x321413;},B=(_0x3714a1,_0x2a05a1)=>(_0x1ee9ed,_0x54f9e5)=>_0x2a05a1(_0x1ee9ed,_0x54f9e5,_0x3714a1);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x31f9fd=[],_0x3acc1b=!0x1;return _0x554721=>{const _0x2c3070=_0x56fb;_0x31f9fd[_0x2c3070(0x1c2)](_0x554721),_0x3acc1b||(_0x3acc1b=!0x0,setTimeout(()=>{const _0xa6f2c6=_0x2c3070;_0x31f9fd[_0xa6f2c6(0x3bd)](_0x398b42=>_0x398b42()),_0x31f9fd=[],_0x3acc1b=!0x1;}));};};let Be=class extends _0x101452{constructor(_0x11e5e8,_0x3fa342,_0xbc5f34,_0x466423,_0xa9f4d7,_0x15d57a,_0x455864,_0x905c44){const _0x5f3fc9=_0x2ad37e;super(),_(this,_0x5f3fc9(0x1f2),!0x1),_(this,_0x5f3fc9(0x3ad),!0x1),_(this,_0x5f3fc9(0x219),new _0x434037(new Map())),_(this,_0x5f3fc9(0x330),this[_0x5f3fc9(0x219)]['asObservable']()),_(this,_0x5f3fc9(0x30e),new _0x434037([])),_(this,_0x5f3fc9(0x192),this[_0x5f3fc9(0x30e)][_0x5f3fc9(0x2cc)](_0x3b4f5b(Fi))),_(this,_0x5f3fc9(0x3a1),_0x453269((_0x35cfbc,_0x1b8c8d)=>{const _0x1331ec=_0x5f3fc9,_0xc4ddb3={'eventID':_0x2c62a7[_0x1331ec(0x389)],'data':{'unitID':this[_0x1331ec(0x345)],'memberID':this[_0x1331ec(0x391)][_0x1331ec(0x2fd)](),'selection':_0xceab2(_0x35cfbc,_0x1b8c8d[_0x1331ec(0x196)])}};this[_0x1331ec(0x391)][_0x1331ec(0x1b7)](_0xc4ddb3,this[_0x1331ec(0x345)]);},ki)),(this[_0x5f3fc9(0x345)]=_0x11e5e8,this[_0x5f3fc9(0x391)]=_0x3fa342,this[_0x5f3fc9(0x291)]=_0xbc5f34,this[_0x5f3fc9(0x3c9)]=_0x466423,this[_0x5f3fc9(0x2d8)]=_0xa9f4d7,this[_0x5f3fc9(0x22d)]=_0x15d57a,this[_0x5f3fc9(0x19e)]=_0x455864,this['_refRangeService']=_0x905c44);}get[_0x2ad37e(0x1f7)](){return this['_cursorInfo$']['getValue']();}get[_0x2ad37e(0x26c)](){return this['_roomMembers$']['getValue']();}[_0x2ad37e(0x382)](){const _0x3e38ae=_0x2ad37e;super[_0x3e38ae(0x382)](),this['_cursorInfo$']['next'](new Map()),this[_0x3e38ae(0x219)]['complete'](),this[_0x3e38ae(0x30e)][_0x3e38ae(0x229)]([]),this[_0x3e38ae(0x30e)]['complete']();}[_0x2ad37e(0x3d0)](){const _0x5eb888=_0x2ad37e;this[_0x5eb888(0x3ad)]||(this['_init']=!0x0,this['_session'][_0x5eb888(0x298)][_0x5eb888(0x2cc)](_0x59c3be(this['dispose$']))[_0x5eb888(0x215)](_0x394fdc=>{const _0x772659=_0x5eb888;_0x394fdc===_0x5418e6[_0x772659(0x3bf)]?this[_0x772659(0x2d6)]():this['_toggleOffline']();}),this['_session']['event$'][_0x5eb888(0x2cc)](_0x59c3be(this[_0x5eb888(0x23b)]))[_0x5eb888(0x215)](_0x1f96e6=>{const _0x5dddf4=_0x5eb888,_0xe86e40=_0x1f96e6['eventID'];_0xe86e40===_0x2c62a7[_0x5dddf4(0x389)]&&this['_onCursorUpdate'](_0x1f96e6),_0xe86e40===_0x2c62a7['USERS_LEAVE']&&this[_0x5dddf4(0x39b)](_0x1f96e6);}),this['_onRefRangeChange'](),this['disposeWithMe'](this['_commandService'][_0x5eb888(0x23d)](_0x1304ab=>{const _0x21add4=_0x5eb888;if(this[_0x21add4(0x1f2)]&&_0x1304ab['id']===_0x197801['id']&&_0x1304ab['params'][_0x21add4(0x1d8)]===this['unitID']){const _0x1e4206=_0x1304ab[_0x21add4(0x2d1)];this[_0x21add4(0x3a1)](_0x1e4206[_0x21add4(0x1e0)],_0x1e4206['selections'][0x0]);}})));}[_0x2ad37e(0x1bb)](_0x49ece7){const _0xc3735e=_0x2ad37e;var _0x2fa3d6,_0x577d43;const {memberID:_0x6e4743,selection:_0x3b07db}=_0x49ece7['data'],{sheetName:_0x2598a9,range:_0x27e8a1}=_0x5c13ea(_0x3b07db),_0x53f960={'name':(_0x577d43=(_0x2fa3d6=this['_memberService']['getMember'](this[_0xc3735e(0x345)],_0x6e4743))==null?void 0x0:_0x2fa3d6[_0xc3735e(0x272)])!=null?_0x577d43:_0xc3735e(0x3a2),'range':this[_0xc3735e(0x1b3)](_0x2598a9,_0x27e8a1),'sheetID':_0x2598a9,'color':this[_0xc3735e(0x3c9)]['assignAColorForMemberID'](_0x6e4743),'selection':_0x3b07db},_0x2620a8=this['cursorInfo'];_0x2620a8[_0xc3735e(0x2fc)](_0x6e4743,_0x53f960),this[_0xc3735e(0x219)][_0xc3735e(0x229)](_0x2620a8);}['_onCursorDelete'](_0x52eb3f){const _0xbaa417=_0x2ad37e,{memberID:_0xdd3142}=_0x52eb3f[_0xbaa417(0x206)],_0x34a5dd=this[_0xbaa417(0x1f7)];_0x34a5dd[_0xbaa417(0x258)](_0xdd3142),this[_0xbaa417(0x219)][_0xbaa417(0x229)](_0x34a5dd);}[_0x2ad37e(0x1b3)](_0x376ebb,_0x44e335){const _0x24b14f=_0x2ad37e;var _0x232f78,_0x1f9599;const _0x5c49bd=(_0x1f9599=(_0x232f78=this[_0x24b14f(0x22d)][_0x24b14f(0x349)](this[_0x24b14f(0x345)]))==null?void 0x0:_0x232f78[_0x24b14f(0x26d)](_0x376ebb))==null?void 0x0:_0x1f9599[_0x24b14f(0x1d2)]();return(_0x5c49bd==null?void 0x0:_0x5c49bd['find'](_0x3b0489=>_0x37e805['contains'](_0x3b0489,_0x44e335)))||_0x44e335;}[_0x2ad37e(0x1c9)](){const _0x3ac922=_0x2ad37e,_0x2cda3d=new _0x37de77(),_0x341f87=Hi(),_0xe41c32=()=>{const _0x43f1d5=_0x56fb;_0x2cda3d[_0x43f1d5(0x382)]();const _0x32ad36=(_0x7a8be3,_0x175607,_0x1cb2a7,_0x4fd9a7)=>{const _0x279486=_0x43f1d5;let _0x2f49bf=[];switch(_0x7a8be3['id']){case _0x20b6c0[_0x279486(0x3b0)]:{_0x2f49bf=_0x36d26f(_0x7a8be3,_0x4fd9a7);break;}case _0x20b6c0[_0x279486(0x328)]:{_0x2f49bf=_0x27814a(_0x7a8be3,_0x4fd9a7);break;}case _0x20b6c0[_0x279486(0x3ae)]:{_0x2f49bf=_0x508d53(_0x7a8be3,_0x4fd9a7);break;}case _0x20b6c0[_0x279486(0x32c)]:{_0x2f49bf=_0x2dad90(_0x7a8be3,_0x4fd9a7);break;}case _0x20b6c0[_0x279486(0x356)]:{_0x2f49bf=_0x4152b3(_0x7a8be3,_0x4fd9a7);break;}case _0x20b6c0[_0x279486(0x28c)]:{_0x2f49bf=_0x1b2504(_0x7a8be3,_0x4fd9a7);break;}case _0x20b6c0['MoveRangeCommandId']:{_0x2f49bf=_0x7447ca(_0x7a8be3,_0x4fd9a7);break;}case _0x20b6c0[_0x279486(0x2ed)]:{_0x2f49bf=_0xdecc37(_0x7a8be3,_0x4fd9a7);break;}case _0x20b6c0['RemoveRowCommandId']:{_0x2f49bf=_0x1c997f(_0x7a8be3,_0x4fd9a7);break;}}const _0x1605aa=_0x2f12ed(_0x2f49bf,_0x4fd9a7),_0xa999ab=this[_0x279486(0x1f7)][_0x279486(0x1b6)](_0x175607);if(_0xa999ab&&_0x1605aa){const _0x3af35b={..._0xa999ab,'range':_0x1605aa};this[_0x279486(0x1f7)][_0x279486(0x2fc)](_0x175607,_0x3af35b),_0x341f87(()=>{const _0x32f89e=_0x279486,_0x5bf098=this['_refRangeService'][_0x32f89e(0x1ad)](_0x1605aa,_0xe7440f=>(_0x5bf098[_0x32f89e(0x382)](),_0x32ad36(_0xe7440f,_0x175607,_0x1cb2a7,_0x1605aa)));_0x2cda3d['add'](_0x5bf098);});}return{'redos':[],'undos':[]};};this[_0x43f1d5(0x1f7)][_0x43f1d5(0x3bd)]((_0x5f5535,_0x2fe8be)=>{const _0x1946bb=_0x43f1d5,{range:_0x437716,sheetID:_0x1f638c}=_0x5f5535,_0x4f6592=this[_0x1946bb(0x18d)][_0x1946bb(0x1ad)](_0x437716,_0x53784b=>(_0x4f6592[_0x1946bb(0x382)](),_0x32ad36(_0x53784b,_0x2fe8be,_0x1f638c,_0x437716)));_0x2cda3d['add'](_0x4f6592);});};this[_0x3ac922(0x3a8)](_0x48616d(this[_0x3ac922(0x219)][_0x3ac922(0x215)](()=>{_0xe41c32();})));}['_toggleOnline'](){const _0x1171a8=_0x2ad37e;var _0x1173ac,_0x5c5f27;if(this['_online']=!0x0,((_0x1173ac=this[_0x1171a8(0x22d)]['getFocusedUnit']())==null?void 0x0:_0x1173ac[_0x1171a8(0x30c)]())!==this['unitID'])return;const _0x56b385=(_0x5c5f27=this[_0x1171a8(0x291)][_0x1171a8(0x1b6)](_0x527ccf)[_0x1171a8(0x28d)]())==null?void 0x0:_0x5c5f27[0x0],_0x309def=this[_0x1171a8(0x22d)][_0x1171a8(0x2f0)](_0x463f4d['UNIVER_SHEET'])[_0x1171a8(0x1ab)]();_0x56b385&&_0x309def&&this['_updateLocalCursor'](_0x309def[_0x1171a8(0x236)](),_0x56b385);}[_0x2ad37e(0x1e8)](){const _0x53d5ca=_0x2ad37e;this[_0x53d5ca(0x1f2)]=!0x1;}};Be=Bi([B(0x2,_0x17dbc2(_0x7e98bc)),B(0x3,_0x17dbc2(Ke)),B(0x4,_0x17dbc2(_0x434c4a)),B(0x5,_0x2505af),B(0x6,_0xc8122f),B(0x7,_0x17dbc2(_0x437973))],Be);var Yi=Object[_0x2ad37e(0x316)],Wi=(_0x5c454d,_0x5781e8,_0x5719da,_0x37aa50)=>{const _0x827aa8=_0x2ad37e;for(var _0x17e268=_0x37aa50>0x1?void 0x0:_0x37aa50?Yi(_0x5781e8,_0x5719da):_0x5781e8,_0x3abf6a=_0x5c454d[_0x827aa8(0x309)]-0x1,_0x47e51b;_0x3abf6a>=0x0;_0x3abf6a--)(_0x47e51b=_0x5c454d[_0x3abf6a])&&(_0x17e268=_0x47e51b(_0x17e268)||_0x17e268);return _0x17e268;},Ce=(_0xcdc2f4,_0x213882)=>(_0x2f5a00,_0x5489e6)=>_0x213882(_0x2f5a00,_0x5489e6,_0xcdc2f4);let H=class extends _0x101452{constructor(_0x2d51c4,_0x11d579,_0x18ce1){const _0x45ccb4=_0x2ad37e;super(),_(this,_0x45ccb4(0x1cf),new Map()),_(this,_0x45ccb4(0x208),new _0x1752ef()),(this[_0x45ccb4(0x22d)]=_0x2d51c4,this[_0x45ccb4(0x291)]=_0x11d579,this[_0x45ccb4(0x198)]=_0x18ce1,this['_init']());}[_0x2ad37e(0x382)](){const _0x5a4c29=_0x2ad37e;super[_0x5a4c29(0x382)](),this['_entityInit$']['complete'](),this[_0x5a4c29(0x1cf)][_0x5a4c29(0x3bd)](_0x53af7f=>_0x53af7f['dispose']());}[_0x2ad37e(0x21d)](_0x135a50){const _0x606044=_0x2ad37e;return this['_entities'][_0x606044(0x21a)](_0x135a50)?this[_0x606044(0x1cf)][_0x606044(0x1b6)](_0x135a50)['cursorInfo$']:this[_0x606044(0x208)][_0x606044(0x2cc)](_0x13b02b(_0x337957=>_0x337957[_0x606044(0x345)]===_0x135a50),_0x57d107(_0x2ae0db=>_0x2ae0db['cursorInfo$']));}['_init'](){const _0x18d87=_0x2ad37e;this[_0x18d87(0x22d)][_0x18d87(0x2ef)](_0x463f4d['UNIVER_SHEET'])['pipe'](_0x59c3be(this[_0x18d87(0x23b)]))[_0x18d87(0x215)](async _0x1257fe=>{const _0x354973=_0x18d87,_0x4151f4=_0x1257fe[_0x354973(0x30c)](),_0x136101=await this['_startSheetCollabCursor'](_0x4151f4);this['_entityInit$'][_0x354973(0x229)](_0x136101),this[_0x354973(0x1cf)][_0x354973(0x2fc)](_0x4151f4,_0x136101);}),this[_0x18d87(0x22d)]['getTypeOfUnitAdded$'](_0x463f4d[_0x18d87(0x1fd)])['pipe'](_0x59c3be(this[_0x18d87(0x23b)]))['pipe'](_0x13b02b(_0x5af423=>!_0x5af423[_0x18d87(0x30c)]()[_0x18d87(0x295)]('__')))[_0x18d87(0x215)](async _0x59600c=>{const _0x4aa2d9=_0x18d87,_0x1ebf63=_0x59600c[_0x4aa2d9(0x30c)](),_0x37f8c0=await this[_0x4aa2d9(0x31f)](_0x1ebf63);this[_0x4aa2d9(0x208)][_0x4aa2d9(0x229)](_0x37f8c0),this[_0x4aa2d9(0x1cf)][_0x4aa2d9(0x2fc)](_0x1ebf63,_0x37f8c0);}),_0x53ab81(this[_0x18d87(0x22d)][_0x18d87(0x251)](_0x463f4d[_0x18d87(0x1fd)]),this[_0x18d87(0x22d)][_0x18d87(0x251)](_0x463f4d[_0x18d87(0x218)]))[_0x18d87(0x2cc)](_0x59c3be(this[_0x18d87(0x23b)]))['subscribe'](_0x5313cf=>{const _0x3a41b7=_0x18d87,_0x4cc327=_0x5313cf[_0x3a41b7(0x30c)](),_0x333222=this[_0x3a41b7(0x1cf)]['get'](_0x4cc327);_0x333222&&(_0x333222[_0x3a41b7(0x382)](),this[_0x3a41b7(0x1cf)][_0x3a41b7(0x258)](_0x4cc327));});}async[_0x2ad37e(0x3cf)](_0x343871){const _0x24dcae=_0x2ad37e,_0x4a2768=await this['_collabSessionService'][_0x24dcae(0x186)](_0x343871),_0x1f4d9c=this[_0x24dcae(0x291)][_0x24dcae(0x287)](Be,_0x343871,_0x4a2768);return _0x1f4d9c[_0x24dcae(0x3d0)](),_0x1f4d9c;}async[_0x2ad37e(0x31f)](_0x4d101f){const _0x5c735d=_0x2ad37e,_0x8d32a7=await this[_0x5c735d(0x198)][_0x5c735d(0x186)](_0x4d101f),_0x45a523=this[_0x5c735d(0x291)]['createInstance'](xe,_0x4d101f,_0x8d32a7);return _0x45a523['init'](),_0x45a523;}};H=Wi([Ce(0x0,_0x2505af),Ce(0x1,_0x17dbc2(_0x7e98bc)),Ce(0x2,_0x17dbc2(_0x3ad90a))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x4aa70e,_0x53f321){const _0x28fd8b=_0x2ad37e;let {radius:_0x4a6ec7,width:_0x120f07,height:_0xea970c}=_0x53f321;_0x4a6ec7=_0x4a6ec7!=null?_0x4a6ec7:0x0,_0x120f07=_0x120f07!=null?_0x120f07:0x1e,_0xea970c=_0xea970c!=null?_0xea970c:0x1e;let _0x19ee8f=0x0,_0x575616=0x0,_0x141247=0x0;_0x19ee8f=_0x575616=_0x141247=Math[_0x28fd8b(0x365)](_0x4a6ec7,_0x120f07/0x2,_0xea970c/0x2),_0x4aa70e[_0x28fd8b(0x34e)](),_0x4aa70e[_0x28fd8b(0x311)](_0x19ee8f,0x0),_0x4aa70e[_0x28fd8b(0x321)](_0x120f07-_0x575616,0x0),_0x4aa70e[_0x28fd8b(0x1a0)](_0x120f07-_0x575616,_0x575616,_0x575616,Math['PI']*0x3/0x2,0x0,!0x1),_0x4aa70e[_0x28fd8b(0x321)](_0x120f07,_0xea970c-_0x141247),_0x4aa70e[_0x28fd8b(0x1a0)](_0x120f07-_0x141247,_0xea970c-_0x141247,_0x141247,0x0,Math['PI']/0x2,!0x1),_0x4aa70e[_0x28fd8b(0x321)](0x0,_0xea970c),_0x4aa70e[_0x28fd8b(0x321)](0x0,_0x19ee8f),_0x4aa70e[_0x28fd8b(0x1a0)](_0x19ee8f,_0x19ee8f,_0x19ee8f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4aa70e['closePath'](),_0x53f321['fill']&&(_0x4aa70e[_0x28fd8b(0x1f8)](),_0x4aa70e[_0x28fd8b(0x281)]=_0x53f321['fill'],_0x53f321[_0x28fd8b(0x2a1)]===_0x28fd8b(0x33e)?_0x4aa70e[_0x28fd8b(0x34f)](_0x28fd8b(0x33e)):_0x4aa70e['fill'](),_0x4aa70e['restore']());}class Ee extends _0x3194ac{constructor(_0x213ec3,_0xf21067){const _0x564702=_0x2ad37e;super(_0x213ec3,_0xf21067),_(this,_0x564702(0x18b)),_(this,_0x564702(0x243)),(this['color']=_0xf21067==null?void 0x0:_0xf21067['color'],this[_0x564702(0x243)]=_0xf21067==null?void 0x0:_0xf21067[_0x564702(0x243)]);}static[_0x2ad37e(0x24d)](_0x5d8d62,_0x37f5f9){const _0x179ea3=_0x2ad37e,{text:_0x35df21,color:_0x388a09}=_0x37f5f9;_0x5d8d62[_0x179ea3(0x1f8)](),_0x5d8d62[_0x179ea3(0x37a)]=_0x179ea3(0x1ba);const _0xb1a992=_0x5d8d62[_0x179ea3(0x30b)](_0x35df21)['width'],_0x559d9e=Math[_0x179ea3(0x365)](_0xb1a992+0x2*Re,at);Vi(_0x5d8d62,{'height':Q,'radius':0x4,'width':_0x559d9e,'fill':_0x388a09}),_0x5d8d62[_0x179ea3(0x281)]=_0x179ea3(0x226);const _0x1d3ff5=Re,_0x351886=Q-ji,_0x27ce26=at-0x2*Re;if(_0xb1a992>_0x27ce26){let _0x11f5a9='',_0x1da797=0x0;for(const _0x5b0e0c of _0x35df21){const _0x4d7cba=_0x5d8d62[_0x179ea3(0x30b)](_0x5b0e0c)[_0x179ea3(0x1c6)];if(_0x1da797+_0x4d7cba<=_0x27ce26-_0x5d8d62[_0x179ea3(0x30b)]('...')[_0x179ea3(0x1c6)])_0x11f5a9+=_0x5b0e0c,_0x1da797+=_0x4d7cba;else{_0x11f5a9+=_0x179ea3(0x276);break;}}_0x5d8d62['fillText'](_0x11f5a9,_0x1d3ff5,_0x351886);}else _0x5d8d62[_0x179ea3(0x37e)](_0x35df21,_0x1d3ff5,_0x351886);_0x5d8d62[_0x179ea3(0x288)]();}[_0x2ad37e(0x2bb)](_0x598d56){const _0xac7208=_0x2ad37e;Ee[_0xac7208(0x24d)](_0x598d56,this);}}const De='collab-text-anchor-',Xi=_0x2ad37e(0x368),Gi=_0x2ad37e(0x230),z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x2ad37e(0x200);class ct{constructor(_0xf288ec,_0xd4b88f,_0x4d4bee,_0x1c91af){const _0xc25d19=_0x2ad37e;_(this,_0xc25d19(0x2a4),[]),_(this,_0xc25d19(0x3b1),null),_(this,_0xc25d19(0x221),null),_(this,_0xc25d19(0x240),null),_(this,_0xc25d19(0x3ce),null),_(this,_0xc25d19(0x246),null),(this['_cursor']=_0xf288ec,this[_0xc25d19(0x363)]=_0xd4b88f,this[_0xc25d19(0x18f)]=_0x4d4bee,this[_0xc25d19(0x20f)]=_0x1c91af,this[_0xc25d19(0x1ea)]());}set[_0x2ad37e(0x203)](_0x33a37e){const _0x28af14=_0x2ad37e;_0x33a37e?(this[_0x28af14(0x240)]&&this[_0x28af14(0x240)][_0x28af14(0x25c)](),this[_0x28af14(0x221)]&&this[_0x28af14(0x221)][_0x28af14(0x2c7)]()):(this[_0x28af14(0x240)]&&this[_0x28af14(0x240)][_0x28af14(0x2c7)](),this[_0x28af14(0x221)]&&this[_0x28af14(0x221)][_0x28af14(0x25c)]());}['dispose'](){const _0x36b80f=_0x2ad37e;for(const _0x252a75 of this[_0x36b80f(0x2a4)])_0x252a75[_0x36b80f(0x382)]();this[_0x36b80f(0x221)]&&this['_textBubble'][_0x36b80f(0x382)](),this[_0x36b80f(0x240)]&&this['_anchorDot']['dispose'](),this[_0x36b80f(0x3b1)]&&this[_0x36b80f(0x3b1)][_0x36b80f(0x382)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x2ad37e(0x1ea)](){const _0x5aef40=_0x2ad37e;var _0x33ba7f;const {_docSkeleton:_0x4f5904,_document:_0x6b4b45}=this,{color:_0x4cb491,name:_0x3c7a45,ranges:_0x5422cd}=this[_0x5aef40(0x20d)],_0x2bae65=_0x6b4b45[_0x5aef40(0x346)](),{docsLeft:_0x1d385f,docsTop:_0x9680cd}=_0x2bae65,_0x25f807=new _0x491b18(_0x2bae65,_0x4f5904);for(const {startOffset:_0x55a7d6,endOffset:_0x59c670,rangeType:_0xc45de0,segmentId:_0x5b4c79,segmentPage:_0x10f5a7,collapsed:_0x2ed735,isActive:_0x4ea665}of _0x5422cd){const _0xc765e9=_0x4f5904[_0x5aef40(0x1fe)](_0x55a7d6,!0x0,_0x5b4c79,_0x10f5a7);let _0x5a2774=_0x4f5904[_0x5aef40(0x1fe)](_0x59c670,!0x0,_0x5b4c79,_0x10f5a7);if(_0x5a2774==null&&(_0x5a2774=_0x4f5904[_0x5aef40(0x1fe)](_0x59c670-0x1,!0x1,_0x5b4c79,_0x10f5a7)),_0x4ea665){const {contentBoxPointGroup:_0x1819be}=_0x25f807[_0x5aef40(0x1c7)](_0x5a2774,_0x5a2774);if(_0x1819be[_0x5aef40(0x309)]===0x0)continue;this[_0x5aef40(0x3bc)](_0x4cb491,_0x1819be,_0x1d385f,_0x9680cd,_0x3c7a45),this[_0x5aef40(0x246)]=this[_0x5aef40(0x2fb)]();}if(_0xc765e9&&_0x5a2774){if(_0xc45de0===_0x3daaca[_0x5aef40(0x32a)]){const _0x583142=new _0x1d8b30(_0x2bae65,_0x4f5904),{pointGroup:_0x950c8b}=(_0x33ba7f=_0x583142[_0x5aef40(0x1c7)](_0xc765e9,_0x5a2774))!=null?_0x33ba7f:{};if(_0x950c8b==null||_0x950c8b[_0x5aef40(0x309)]===0x0)continue;this[_0x5aef40(0x395)](_0x4cb491,_0x950c8b,_0x1d385f,_0x9680cd);}else{if(!_0x2ed735){const {borderBoxPointGroup:_0x2f7930}=_0x25f807['getRangePointData'](_0xc765e9,_0x5a2774);if(_0x2f7930[_0x5aef40(0x309)]===0x0)continue;this[_0x5aef40(0x2af)](_0x4cb491,_0x2f7930,_0x1d385f,_0x9680cd);}}}}}['_drawAnchor'](_0x48a800,_0x2076b1,_0x13c790,_0x5c6253,_0x3313ba){const _0xb5896c=_0x2ad37e,_0x3f1f58=this[_0xb5896c(0x255)](_0x2076b1),{left:_0xc6d0c5,top:_0x5b505e,height:_0x434bf6}=_0x3f1f58,_0x31a795=this[_0xb5896c(0x355)](),_0xd83a9d=zi/_0x31a795,_0x38f63b=new _0x4d98e9(De+_0x27bf30(z),{'left':_0xc6d0c5+_0x13c790-_0xd83a9d,'top':_0x5b505e+_0x5c6253,'height':_0x434bf6,'width':Ki,'fill':_0x48a800||_0x51f4f8(_0x280995[_0xb5896c(0x380)],0x0),'strokeWidth':_0xd83a9d,'stroke':Ji,'evented':!0x0});this[_0xb5896c(0x3b1)]=_0x38f63b,this['_scene'][_0xb5896c(0x34a)](_0x38f63b,_0x186da9);const _0x9cc70f=new _0x4d98e9(De+_0x27bf30(z),{'left':_0xc6d0c5+_0x13c790-_0xd83a9d,'top':_0x5b505e+_0x5c6253-be/0x2,'height':be,'width':be,'fill':_0x48a800||_0x51f4f8(_0x280995['black'],0x0),'strokeWidth':0x0,'stroke':_0x48a800||_0x51f4f8(_0x280995['black'],0x0),'evented':!0x1});this[_0xb5896c(0x240)]=_0x9cc70f,this[_0xb5896c(0x363)][_0xb5896c(0x34a)](_0x9cc70f,_0x186da9);const _0x2a3143=new Ee(De+_0x27bf30(z),{'left':_0xc6d0c5+_0x13c790-_0xd83a9d,'top':_0x5b505e+_0x5c6253-Q,'text':_0x3313ba,'color':_0x48a800});this[_0xb5896c(0x221)]=_0x2a3143,this[_0xb5896c(0x363)]['addObject'](_0x2a3143,_0x186da9),this['_hover']=!0x1;}['_handleHover'](){const _0xe1ade6=_0x2ad37e,_0x40a038=this['_anchor']['onPointerEnter$'][_0xe1ade6(0x31d)](()=>{const _0x23aac3=_0xe1ade6;this[_0x23aac3(0x203)]=!0x0;}),_0x2f6744=this[_0xe1ade6(0x3b1)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x18a92b=_0xe1ade6;this[_0x18a92b(0x3ce)]&&clearTimeout(this[_0x18a92b(0x3ce)]),this[_0x18a92b(0x3ce)]=setTimeout(()=>{const _0x4e2725=_0x18a92b;this[_0x4e2725(0x203)]=!0x1;},0x7d0);});return()=>{const _0x588abf=_0xe1ade6;_0x40a038[_0x588abf(0x2a3)](),_0x2f6744[_0x588abf(0x2a3)]();};}[_0x2ad37e(0x2af)](_0x2fa3df,_0x390025,_0x2f4e2d,_0x2958ca){const _0x3f52d6=_0x2ad37e,_0x4ddaee=new _0xd09052(_0x2fa3df)[_0x3f52d6(0x2ac)](0.2)[_0x3f52d6(0x23c)](),_0x52f1e1=new _0x298b35(Xi+_0x27bf30(z),{'pointsGroup':_0x390025,'fill':_0x4ddaee||_0x51f4f8(_0x280995[_0x3f52d6(0x380)],0.2),'left':_0x2f4e2d,'top':_0x2958ca,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f52d6(0x2a4)][_0x3f52d6(0x1c2)](_0x52f1e1),this[_0x3f52d6(0x363)][_0x3f52d6(0x34a)](_0x52f1e1,_0x186da9);}[_0x2ad37e(0x395)](_0x418fd9,_0x175432,_0x189942,_0x43bdee){const _0x10bc62=_0x2ad37e,_0x28dce3=new _0xd09052(_0x418fd9)[_0x10bc62(0x2ac)](0.2)[_0x10bc62(0x23c)](),_0x387259=new _0x298b35(Gi+_0x27bf30(z),{'pointsGroup':_0x175432,'fill':_0x28dce3||_0x51f4f8(_0x280995['black'],0.2),'left':_0x189942,'top':_0x43bdee,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x10bc62(0x1c2)](_0x387259),this[_0x10bc62(0x363)][_0x10bc62(0x34a)](_0x387259,_0x186da9);}[_0x2ad37e(0x255)](_0x49933a){const _0x2a9cdd=_0x49933a[0x0],_0x41f0b5=_0x2a9cdd[0x0],_0x53b1f8=_0x2a9cdd[0x2],{x:_0x31dc5a,y:_0x1559cd}=_0x41f0b5,{x:_0x58e4a6,y:_0x5f2de6}=_0x53b1f8;return{'left':_0x31dc5a,'top':_0x1559cd,'width':_0x58e4a6-_0x31dc5a,'height':_0x5f2de6-_0x1559cd};}[_0x2ad37e(0x355)](){const {scaleX:_0x1326f9,scaleY:_0x5c387e}=this['_scene']['getAncestorScale']();return Math['max'](_0x1326f9,_0x5c387e);}}var Zi=Object[_0x2ad37e(0x316)],Qi=(_0x2493da,_0x3d3a33,_0x182230,_0x4d9cfd)=>{const _0x81897d=_0x2ad37e;for(var _0x16df30=_0x4d9cfd>0x1?void 0x0:_0x4d9cfd?Zi(_0x3d3a33,_0x182230):_0x3d3a33,_0x42d3f6=_0x2493da[_0x81897d(0x309)]-0x1,_0x23eff7;_0x42d3f6>=0x0;_0x42d3f6--)(_0x23eff7=_0x2493da[_0x42d3f6])&&(_0x16df30=_0x23eff7(_0x16df30)||_0x16df30);return _0x16df30;},ie=(_0x4b0dcb,_0x375b60)=>(_0x248594,_0x23f030)=>_0x375b60(_0x248594,_0x23f030,_0x4b0dcb);let Fe=class extends _0x101452{constructor(_0x5c9b9c,_0x1b7052,_0x7fdaa9,_0x3af945,_0x13f8d4){const _0x6476c4=_0x2ad37e;super(),_(this,_0x6476c4(0x37d),[]),_(this,_0x6476c4(0x27d),[]),(this['_context']=_0x5c9b9c,this[_0x6476c4(0x31c)]=_0x1b7052,this['_collabCursorController']=_0x7fdaa9,this['_commandService']=_0x3af945,this['_themeService']=_0x13f8d4,this[_0x6476c4(0x3ad)]());}[_0x2ad37e(0x3ad)](){const _0x31d6fe=_0x2ad37e,_0x200742=this[_0x31d6fe(0x36a)]['unitId'],_0x1a9bfe=this['_docSkeletonManagerService'];this[_0x31d6fe(0x3a8)](_0x118445([this[_0x31d6fe(0x1fc)]['getCollabCursors$'](_0x200742),this[_0x31d6fe(0x327)][_0x31d6fe(0x339)]])[_0x31d6fe(0x2cc)](_0x4c7446(([_0x13bd01,_0x51abae])=>({'skeleton':_0x1a9bfe['getSkeleton'](),'cursors':[..._0x13bd01[_0x31d6fe(0x336)]()][_0x31d6fe(0x20c)](_0x380407=>({..._0x380407,'color':this[_0x31d6fe(0x327)][_0x31d6fe(0x354)](_0x380407[_0x31d6fe(0x18b)])}))})))[_0x31d6fe(0x215)](_0x13519c=>{const _0x490490=_0x31d6fe;if(this[_0x490490(0x3ac)](),_0x13519c){const {skeleton:_0x2507ee,cursors:_0x2a1a84}=_0x13519c;this[_0x490490(0x194)](_0x2507ee,_0x2a1a84);}})),this[_0x31d6fe(0x3be)](),this[_0x31d6fe(0x34b)]();}[_0x2ad37e(0x194)](_0x53bdd8,_0x43588b){const _0x326387=_0x2ad37e,{scene:_0x5a4aad,mainComponent:_0x8693f}=this[_0x326387(0x36a)],_0x278ca7=_0x43588b['map'](_0xbbd40e=>new ct(_0xbbd40e,_0x5a4aad,_0x53bdd8,_0x8693f));this['_cursorShapes']=_0x278ca7,this[_0x326387(0x27d)]=_0x43588b;}[_0x2ad37e(0x1ff)](){const _0x31d5dc=_0x2ad37e;this['_removeCollabCursors']();const {scene:_0x5c7507,mainComponent:_0x14aab5}=this[_0x31d5dc(0x36a)],_0x1690b5=this[_0x31d5dc(0x31c)][_0x31d5dc(0x2fe)](),_0x45f6c0=this[_0x31d5dc(0x27d)]['map'](_0x3f62d0=>new ct(_0x3f62d0,_0x5c7507,_0x1690b5,_0x14aab5));this[_0x31d5dc(0x37d)]=_0x45f6c0;}['_removeCollabCursors'](){const _0x3c6178=_0x2ad37e;this[_0x3c6178(0x37d)][_0x3c6178(0x3bd)](_0x4d70c3=>_0x4d70c3[_0x3c6178(0x382)]()),this[_0x3c6178(0x37d)]=[];}[_0x2ad37e(0x34b)](){const _0x17a16a=_0x2ad37e,_0x55b6ac=[_0x2828f2['id']];this[_0x17a16a(0x3a8)](this['_commandService']['onCommandExecuted'](_0x4e0a91=>{const _0x3fa42a=_0x17a16a;_0x55b6ac[_0x3fa42a(0x181)](_0x4e0a91['id'])&&_0x4e0a91[_0x3fa42a(0x2d1)][_0x3fa42a(0x1d8)]===this[_0x3fa42a(0x36a)]['unitId']&&this[_0x3fa42a(0x1ff)]();}));}[_0x2ad37e(0x3be)](){const _0x2810f9=_0x2ad37e;this['disposeWithMe'](_0x50f12c(this[_0x2810f9(0x36a)][_0x2810f9(0x2c6)]['onTransformChange$'])[_0x2810f9(0x2cc)](_0x44c16b(_0x142df7=>_0x142df7[_0x2810f9(0x212)]===_0x1f11cc[_0x2810f9(0x31a)]),_0x4f3700(0x10))[_0x2810f9(0x215)](()=>{const _0x1cbda7=_0x2810f9;this[_0x1cbda7(0x1ff)]();}));}};Fe=Qi([ie(0x1,_0x17dbc2(_0x4b0954)),ie(0x2,_0x17dbc2(H)),ie(0x3,_0xc8122f),ie(0x4,_0x17dbc2(_0x209982))],Fe);const qi=0x1,en=1.5;class tn extends _0x3194ac{constructor(_0x1c69de,_0x2f9ea6){const _0x465093=_0x2ad37e;super(_0x1c69de,_0x2f9ea6),_(this,'_color'),_(this,_0x465093(0x1b5),!0x1),_(this,_0x465093(0x33a)),_(this,_0x465093(0x2d3),''),_(this,_0x465093(0x260),'top'),_(this,_0x465093(0x2a6)),(_0x2f9ea6&&this['setShapeProps'](_0x2f9ea6),this[_0x465093(0x2b0)]['subscribeEvent'](()=>this[_0x465093(0x1e2)]({'hovered':!0x0})),this['onPointerLeave$'][_0x465093(0x31d)](()=>this[_0x465093(0x1e2)]({'hovered':!0x1})));}[_0x2ad37e(0x1e2)](_0x5a9954){const _0x335451=_0x2ad37e;var _0x55a5bd,_0x2ed205,_0x27c259,_0x415aba,_0x324db9,_0x181054;this[_0x335451(0x3c2)]=(_0x55a5bd=_0x5a9954['color'])!=null?_0x55a5bd:this[_0x335451(0x3c2)],this[_0x335451(0x1b5)]=(_0x2ed205=_0x5a9954['hovered'])!=null?_0x2ed205:this[_0x335451(0x1b5)],this[_0x335451(0x33a)]=(_0x27c259=_0x5a9954[_0x335451(0x196)])!=null?_0x27c259:this[_0x335451(0x33a)],this[_0x335451(0x2d3)]=(_0x415aba=_0x5a9954[_0x335451(0x272)])!=null?_0x415aba:this[_0x335451(0x2d3)],this['_labelPosition']=(_0x324db9=_0x5a9954[_0x335451(0x225)])!=null?_0x324db9:this[_0x335451(0x260)],this[_0x335451(0x2a6)]=(_0x181054=_0x5a9954[_0x335451(0x3cd)])!=null?_0x181054:this['_backgroundColor'],this[_0x335451(0x3c6)]({'width':_0x5a9954[_0x335451(0x1c6)],'height':_0x5a9954[_0x335451(0x304)]});}['onMouseMove'](_0x1ca9ec){const _0x374e75=_0x2ad37e,{row:_0x3a6220,column:_0x5dc903}=_0x1ca9ec;if(_0x3a6220>=this[_0x374e75(0x33a)]['startRow']&&_0x3a6220<=this[_0x374e75(0x33a)][_0x374e75(0x2c1)]&&_0x5dc903>=this[_0x374e75(0x33a)][_0x374e75(0x329)]&&_0x5dc903<=this['_range'][_0x374e75(0x36d)]){this[_0x374e75(0x1e2)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2ad37e(0x1df)](_0xa23dff){return!0x1;}[_0x2ad37e(0x2bb)](_0x2678b7){const _0x30ad75=_0x2ad37e;_0x4d98e9[_0x30ad75(0x24d)](_0x2678b7,{'width':this[_0x30ad75(0x1c6)],'height':this[_0x30ad75(0x304)],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x30ad75(0x2a6)]}),this[_0x30ad75(0x1b5)]&&(_0x2678b7['save'](),_0x2678b7[_0x30ad75(0x30a)](0x1,0x0,0x0,0x1,this[_0x30ad75(0x1c6)],this[_0x30ad75(0x260)]==='bottom'?0x0:-Q),Ee[_0x30ad75(0x24d)](_0x2678b7,{'text':this[_0x30ad75(0x2d3)],'color':this[_0x30ad75(0x3c2)]}),_0x2678b7[_0x30ad75(0x288)]());}}var sn=Object['getOwnPropertyDescriptor'],nn=(_0x3a8a00,_0x5a10c3,_0x81fc42,_0x24c8ea)=>{const _0x19cba8=_0x2ad37e;for(var _0x575f96=_0x24c8ea>0x1?void 0x0:_0x24c8ea?sn(_0x5a10c3,_0x81fc42):_0x5a10c3,_0x143b0b=_0x3a8a00[_0x19cba8(0x309)]-0x1,_0x3189c1;_0x143b0b>=0x0;_0x143b0b--)(_0x3189c1=_0x3a8a00[_0x143b0b])&&(_0x575f96=_0x3189c1(_0x575f96)||_0x575f96);return _0x575f96;},Ne=(_0x3da464,_0x1a61ab)=>(_0x8e686b,_0x21073b)=>_0x1a61ab(_0x8e686b,_0x21073b,_0x3da464);const rn=0x1389;let ke=class extends _0x101452{constructor(_0x2b5735,_0x156509,_0x3550ce,_0x5df282){const _0x3051d1=_0x2ad37e;super(),_(this,_0x3051d1(0x27d),new Set()),_(this,_0x3051d1(0x197),null),(this[_0x3051d1(0x36a)]=_0x2b5735,this[_0x3051d1(0x2f7)]=_0x156509,this['_collabCursorController']=_0x3550ce,this[_0x3051d1(0x327)]=_0x5df282,this['_init']());}[_0x2ad37e(0x3ad)](){const _0x51cdbb=_0x2ad37e;this['_sheetSkeletonManagerService'][_0x51cdbb(0x2a2)][_0x51cdbb(0x2cc)](_0x21fa26(this[_0x51cdbb(0x23b)]),_0x1c1fbe(_0x240daa=>{const _0xa29f8c=_0x51cdbb;if(_0x240daa){const _0x30f874=_0x240daa['sheetId'];return _0x118445(this['_collabCursorController'][_0xa29f8c(0x21d)](this['_context'][_0xa29f8c(0x1d8)]),this['_themeService'][_0xa29f8c(0x339)])['pipe'](_0x4c7446(([_0xbf8f6b,_0x4c4373])=>{const _0x347d7c=new Map();return _0xbf8f6b['forEach']((_0x146787,_0x26a5b5)=>{const _0x4f8392=_0x56fb;if(_0x146787[_0x4f8392(0x341)]===_0x30f874){const _0x12bf2e={..._0x146787};_0x12bf2e[_0x4f8392(0x18b)]=this[_0x4f8392(0x327)]['getColorFromTheme'](_0x146787[_0x4f8392(0x18b)]),_0x347d7c['set'](_0x26a5b5,_0x12bf2e);}}),{'skeleton':_0x240daa,'cursors':_0x347d7c};}));}return _0x49bed0({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3a41f8,cursors:_0x5a9156})=>{const _0x3b047b=_0x51cdbb;this['_removeCollabCursors'](),_0x3a41f8&&this[_0x3b047b(0x194)](_0x3a41f8,_0x5a9156);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x51cdbb(0x215)](_0x72aecd=>{const _0x575f0=_0x51cdbb;if(_0x72aecd==null)return;const {skeleton:_0x1e98e1}=_0x72aecd,{scene:_0x38139b}=this['_context'];_0x38139b[_0x575f0(0x22b)][_0x575f0(0x31d)](_0x453269(_0x177395=>{const _0x6caae1=_0x575f0;var _0x361427,_0x404c94;const {offsetX:_0x3d88f1,offsetY:_0xff3b74}=_0x177395,{x:_0x2fc40d,y:_0x2bf5f1}=_0x38139b[_0x6caae1(0x310)](_0x294ab2[_0x6caae1(0x1d1)]([_0x3d88f1,_0xff3b74])),{scaleX:_0x5d514e,scaleY:_0x59017f}=_0x38139b[_0x6caae1(0x357)](),_0x3ea531=_0x38139b[_0x6caae1(0x2d0)](_0xacfd79[_0x6caae1(0x2c8)]),_0x3e186f=_0x38139b[_0x6caae1(0x29b)](_0x294ab2[_0x6caae1(0x1d1)]([_0x2fc40d,_0x2bf5f1]),_0x3ea531),_0x29d2a7=_0x1e98e1['getCellPositionByOffset'](_0x3d88f1,_0xff3b74,_0x5d514e,_0x59017f,_0x3e186f);((_0x361427=this[_0x6caae1(0x197)])==null?void 0x0:_0x361427[_0x6caae1(0x1ac)])===_0x29d2a7['column']&&((_0x404c94=this[_0x6caae1(0x197)])==null?void 0x0:_0x404c94[_0x6caae1(0x284)])===_0x29d2a7[_0x6caae1(0x284)]||this[_0x6caae1(0x27d)]['forEach'](_0x5e0db9=>{const _0x56305d=_0x6caae1;_0x5e0db9[_0x56305d(0x189)](_0x29d2a7);});},0x64));});}['_updateCollabCursors'](_0x5735b4,_0x1fabc3){const _0x59a45a=_0x2ad37e;var _0x345686;const _0x23e60e=(_0x345686=this[_0x59a45a(0x2f7)][_0x59a45a(0x250)]())==null?void 0x0:_0x345686['skeleton'];if(!_0x23e60e)return;const _0x8821d3=this[_0x59a45a(0x297)]();if(!_0x8821d3)return;this[_0x59a45a(0x27d)][_0x59a45a(0x3bd)](_0x4be541=>{const _0x1b0418=_0x59a45a;_0x4be541[_0x1b0418(0x19d)]();});const {scene:_0xf8afe4}=_0x8821d3,_0x9e5d6c=on(Array[_0x59a45a(0x237)](_0x1fabc3['values']()))[_0x59a45a(0x2db)](_0x2e2609=>{const _0x3b51e5=_0x59a45a,{color:_0x554f3e,range:_0x389b0f,name:_0x441cea,selection:_0x444f5b,sheetID:_0x943255}=_0x2e2609,{startColumn:_0x29476f,startRow:_0x5565e5,endColumn:_0x697e41,endRow:_0x245cc7}=_0x389b0f,_0x11a81d=_0x3bb5c5(_0x5565e5,_0x29476f,_0xf8afe4,_0x23e60e),_0x3e1c4b=_0x3bb5c5(_0x245cc7,_0x697e41,_0xf8afe4,_0x23e60e),{columnHeaderHeightAndMarginTop:_0x4d99b7}=_0x23e60e,{startX:_0x11926a,startY:_0xdd11da}=_0x11a81d,{endX:_0x342ca3,endY:_0x17fb77}=_0x3e1c4b,_0x26940f=_0x342ca3-_0x11926a,_0x28066a=_0x17fb77-_0xdd11da,_0x17212d={'labelPosition':_0xdd11da-_0x4d99b7>=Q?_0x3b51e5(0x248):_0x3b51e5(0x323),'sheetID':_0x943255,'range':_0x389b0f,'color':_0x554f3e,'name':_0x441cea,'selection':_0x444f5b,'left':_0x11926a,'top':_0xdd11da,'width':_0x26940f,'height':_0x28066a,'evented':!0x1,'zIndex':rn};return new tn(_0x441cea,_0x17212d);});_0xf8afe4[_0x59a45a(0x362)](_0x9e5d6c,qi),this['_cursors']=new Set(_0x9e5d6c);}['_removeCollabCursors'](){const _0x1e4505=_0x2ad37e;var _0x4cd566;(_0x4cd566=this['_cursors'])==null||_0x4cd566['forEach'](_0x4f0af1=>_0x4f0af1[_0x1e4505(0x382)]());}['_getSheetObject'](){const _0x8c10e7=_0x2ad37e;return _0x4f5a02(this[_0x8c10e7(0x36a)][_0x8c10e7(0x2b7)],this[_0x8c10e7(0x36a)]);}};ke=nn([Ne(0x1,_0x17dbc2(_0x1b317e)),Ne(0x2,_0x17dbc2(H)),Ne(0x3,_0x17dbc2(_0x209982))],ke);function on(_0x29355f){const _0xa9ee40=_0x2ad37e,_0x1e37fb=new Map();return _0x29355f[_0xa9ee40(0x3bd)](_0x42a1a9=>{const _0x224a9b=_0xa9ee40;if(_0x1e37fb[_0x224a9b(0x21a)](_0x42a1a9[_0x224a9b(0x314)])){const _0x457f5f=_0x1e37fb['get'](_0x42a1a9['selection']);_0x457f5f[_0x224a9b(0x272)]+=',\x20'+_0x42a1a9[_0x224a9b(0x272)];}else _0x1e37fb['set'](_0x42a1a9[_0x224a9b(0x314)],_0x42a1a9);}),Array[_0xa9ee40(0x237)](_0x1e37fb[_0xa9ee40(0x336)]());}var an=Object[_0x2ad37e(0x316)],cn=(_0x3c87f0,_0x13ea2a,_0x25e24b,_0x2fe6d4)=>{const _0x3ce62e=_0x2ad37e;for(var _0x4afed0=_0x2fe6d4>0x1?void 0x0:_0x2fe6d4?an(_0x13ea2a,_0x25e24b):_0x13ea2a,_0x5d8494=_0x3c87f0[_0x3ce62e(0x309)]-0x1,_0xcfd9a8;_0x5d8494>=0x0;_0x5d8494--)(_0xcfd9a8=_0x3c87f0[_0x5d8494])&&(_0x4afed0=_0xcfd9a8(_0x4afed0)||_0x4afed0);return _0x4afed0;},F=(_0x5e2b08,_0x3a9e78)=>(_0x26cf86,_0x4c7b86)=>_0x3a9e78(_0x26cf86,_0x4c7b86,_0x5e2b08);let _e=class extends _0x58948b{constructor(_0x2c26fd,_0x330321,_0xd098ea,_0x55dd6c,_0x2e4b37,_0x398b0d){const _0x2d0119=_0x2ad37e;super(),this[_0x2d0119(0x377)]=_0x2c26fd,this[_0x2d0119(0x334)]=_0x330321,this[_0x2d0119(0x1a8)]=_0xd098ea,this[_0x2d0119(0x344)]=_0x55dd6c,this[_0x2d0119(0x273)]=_0x2e4b37,this['_localeService']=_0x398b0d,this[_0x2d0119(0x1d9)](),this[_0x2d0119(0x283)]();}[_0x2ad37e(0x1d9)](){const _0x14b1fb=_0x2ad37e;this[_0x14b1fb(0x3a8)](this[_0x14b1fb(0x377)][_0x14b1fb(0x3a9)](()=>{const _0x20defa=_0x14b1fb;if(this[_0x20defa(0x334)]['saveTaskMap'][_0x20defa(0x228)])return this[_0x20defa(0x396)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x2ad37e(0x283)](){const _0x1987be=_0x2ad37e;this['disposeWithMe'](this[_0x1987be(0x1a8)][_0x1987be(0x371)][_0x1987be(0x215)](_0x3d298e=>{const _0x10a3d6=_0x1987be;_0x3d298e['id']===_0x3406a2[_0x10a3d6(0x317)]&&this['_messageService'][_0x10a3d6(0x2c7)]({'type':_0x1bf3a5['Warning'],'content':this[_0x10a3d6(0x396)]['t'](_0x10a3d6(0x38d))}),_0x3d298e['id']===_0x3406a2[_0x10a3d6(0x214)]&&this[_0x10a3d6(0x344)]['show']({'type':_0x1bf3a5[_0x10a3d6(0x39c)],'content':this[_0x10a3d6(0x396)]['t']('collaboration.closeRoom')}),_0x3d298e['id']===_0x3406a2[_0x10a3d6(0x333)]&&this[_0x10a3d6(0x273)][_0x10a3d6(0x2c7)]({'title':this[_0x10a3d6(0x396)]['t'](_0x10a3d6(0x205)),'content':this['_localeService']['t'](_0x10a3d6(0x2aa)),'type':_0x10a3d6(0x231),'duration':0x0}),_0x3d298e['id']===_0x3406a2[_0x10a3d6(0x378)]&&this[_0x10a3d6(0x344)][_0x10a3d6(0x2c7)]({'type':_0x1bf3a5[_0x10a3d6(0x2bd)],'content':this['_localeService']['t'](_0x10a3d6(0x35b))+'('+_0x3d298e['data']+')'}),_0x3d298e['id']===_0x3406a2[_0x10a3d6(0x182)]&&this[_0x10a3d6(0x344)]['show']({'type':_0x1bf3a5['Warning'],'content':this[_0x10a3d6(0x396)]['t'](_0x3d298e[_0x10a3d6(0x206)]||'')}),_0x3d298e['id']===_0x3406a2[_0x10a3d6(0x1c5)]&&this[_0x10a3d6(0x344)]['show']({'type':_0x1bf3a5[_0x10a3d6(0x39c)],'content':this[_0x10a3d6(0x396)]['t'](_0x10a3d6(0x1a9))}),_0x3d298e['id']===_0x3406a2[_0x10a3d6(0x1be)]&&this[_0x10a3d6(0x344)][_0x10a3d6(0x2c7)]({'type':_0x1bf3a5[_0x10a3d6(0x2bd)],'content':this[_0x10a3d6(0x396)]['t'](_0x10a3d6(0x29f))}),_0x3d298e['id']===_0x3406a2['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x10a3d6(0x344)][_0x10a3d6(0x2c7)]({'type':_0x1bf3a5['Error'],'content':this[_0x10a3d6(0x396)]['t'](_0x10a3d6(0x35c))});}));}};_e=cn([F(0x0,_0x55bc43),F(0x1,_0x2a978f),F(0x2,_0x17dbc2(_0x33dbbb)),F(0x3,_0x464b74),F(0x4,_0x574ce0),F(0x5,_0x17dbc2(_0x18b100))],_e);var _n=Object[_0x2ad37e(0x316)],ln=(_0xdc9e1c,_0x51de54,_0x29b0d9,_0xd2c016)=>{const _0x1597dc=_0x2ad37e;for(var _0x19ecd9=_0xd2c016>0x1?void 0x0:_0xd2c016?_n(_0x51de54,_0x29b0d9):_0x51de54,_0x141484=_0xdc9e1c[_0x1597dc(0x309)]-0x1,_0x5c0924;_0x141484>=0x0;_0x141484--)(_0x5c0924=_0xdc9e1c[_0x141484])&&(_0x19ecd9=_0x5c0924(_0x19ecd9)||_0x19ecd9);return _0x19ecd9;},ne=(_0x1e0cc2,_0x222cdd)=>(_0x269c94,_0x7d52f9)=>_0x222cdd(_0x269c94,_0x7d52f9,_0x1e0cc2);let le=class extends _0x58948b{constructor(_0x5a365f,_0x3c75fb,_0x3f6799,_0x43fe37){const _0x5ea394=_0x2ad37e;super(),_(this,_0x5ea394(0x2d5)),(this[_0x5ea394(0x291)]=_0x5a365f,this[_0x5ea394(0x367)]=_0x3c75fb,this[_0x5ea394(0x191)]=_0x3f6799,this['_collaborationSessionService']=_0x43fe37,this[_0x5ea394(0x3ad)]());}[_0x2ad37e(0x3ad)](){const _0x50711e=_0x2ad37e;this['_initWindowErrorListener'](),this[_0x50711e(0x1f0)](),this[_0x50711e(0x18a)](),this[_0x50711e(0x352)]();}['_initUserListener'](){const _0x25e51b=_0x2ad37e;this[_0x25e51b(0x3a8)](this['_collaborationSessionService'][_0x25e51b(0x244)][_0x25e51b(0x215)](_0x391956=>{const _0x466da8=_0x25e51b;this['_memberID']=_0x391956==null?void 0x0:_0x391956[_0x466da8(0x302)];}));}['_initWindowErrorListener'](){const _0x5a15dd=_0x2ad37e,_0x353f5b=_0x8d6dda=>{const _0x185b27=_0x56fb;var _0x5cb558;this[_0x185b27(0x20e)]('error','[Window\x20Error]:\x20'+_0x8d6dda['message']+'\x20at\x20'+_0x8d6dda[_0x185b27(0x3c5)]+':'+_0x8d6dda[_0x185b27(0x376)]+':'+_0x8d6dda[_0x185b27(0x1e6)]+'\x0a'+(((_0x5cb558=_0x8d6dda[_0x185b27(0x231)])==null?void 0x0:_0x5cb558[_0x185b27(0x3aa)])||''));};window['addEventListener'](_0x5a15dd(0x231),_0x353f5b),this[_0x5a15dd(0x3a8)](()=>{const _0x42604e=_0x5a15dd;window[_0x42604e(0x207)]('error',_0x353f5b);});}[_0x2ad37e(0x1f0)](){const _0xc40416=_0x2ad37e,_0x1ef9e7=_0x1b6928=>{const _0x1587be=_0x56fb;this['_uploadLog'](_0x1587be(0x231),'[Unhandled\x20Rejection]:\x20'+_0x1b6928[_0x1587be(0x24a)]);};window[_0xc40416(0x19a)](_0xc40416(0x2e0),_0x1ef9e7),this[_0xc40416(0x3a8)](()=>{const _0x5e6920=_0xc40416;window[_0x5e6920(0x207)](_0x5e6920(0x2e0),_0x1ef9e7);});}[_0x2ad37e(0x18a)](){const _0x35cb9e=_0x2ad37e,_0x569cab=this[_0x35cb9e(0x191)][_0x35cb9e(0x231)][_0x35cb9e(0x271)](this['_logService']);this[_0x35cb9e(0x191)][_0x35cb9e(0x231)]=(..._0x5f09e8)=>{const _0x5cd472=_0x35cb9e,_0x3e6f20=_0x5f09e8[_0x5cd472(0x2db)](_0x441852=>_0x441852 instanceof Error?_0x441852['message']+'\x0a'+_0x441852[_0x5cd472(0x3aa)]:String(_0x441852))['join']('\x20');this[_0x5cd472(0x20e)](_0x5cd472(0x231),_0x5cd472(0x26a)+_0x3e6f20),_0x569cab(..._0x5f09e8);},this[_0x35cb9e(0x3a8)](()=>{const _0x2be7cf=_0x35cb9e;this[_0x2be7cf(0x191)]['error']=_0x569cab;});}['_uploadLog'](_0xcc5bcb,_0x1c3c7e){const _0x6d049=_0x2ad37e;try{const _0x52c1eb={'userId':this[_0x6d049(0x2d5)],'logLabel':_0xcc5bcb,'content':_0x1c3c7e};this['_httpService'][_0x6d049(0x1a7)](_0x6d049(0x26f),{'body':_0x52c1eb})[_0x6d049(0x1d6)](()=>{});}catch{}}};le=ln([ne(0x0,_0x17dbc2(_0x7e98bc)),ne(0x1,_0x17dbc2(_0x3670ce)),ne(0x2,_0x114287),ne(0x3,_0x17dbc2(_0x3ad90a))],le);const hn=_0x2ad37e(0x360),_t={};var un=Object[_0x2ad37e(0x316)],dn=(_0x2e7233,_0x3b8dce,_0x32a7c9,_0x2d0ecf)=>{const _0x59c4b7=_0x2ad37e;for(var _0x4b12da=_0x2d0ecf>0x1?void 0x0:_0x2d0ecf?un(_0x3b8dce,_0x32a7c9):_0x3b8dce,_0x3559fb=_0x2e7233[_0x59c4b7(0x309)]-0x1,_0x14a14c;_0x3559fb>=0x0;_0x3559fb--)(_0x14a14c=_0x2e7233[_0x3559fb])&&(_0x4b12da=_0x14a14c(_0x4b12da)||_0x4b12da);return _0x4b12da;},lt=(_0x38180b,_0x57c0c1)=>(_0x1f4e67,_0x58c321)=>_0x57c0c1(_0x1f4e67,_0x58c321,_0x38180b);let he=class{constructor(_0xfab0bc,_0x150cfd){const _0x235e0c=_0x2ad37e;this['_transformService']=_0xfab0bc,this[_0x235e0c(0x3ab)]=_0x150cfd;}['transformIMECache'](_0x1667f0){const _0x308411=_0x2ad37e;this['_transformUndoRedoStack'](_0x1667f0),this[_0x308411(0x388)](_0x1667f0);}['transformRemoteChangeset'](_0x71eb14){const _0x22dbde=_0x2ad37e,{unitID:_0x41549a}=_0x71eb14,_0x5aed7d=this[_0x22dbde(0x3ab)]['getRenderById'](_0x41549a)[_0x22dbde(0x269)](_0x1d477d),{redoCache:_0x499128}=_0x5aed7d[_0x22dbde(0x375)]();if(_0x499128['length']===0x0)return _0x71eb14;let _0x3163d7=_0x1b7cfb[_0x22dbde(0x1c0)](_0x71eb14['mutations'][0x0]);for(let _0x2fa4d1=0x0;_0x2fa4d1<_0x499128[_0x22dbde(0x309)];_0x2fa4d1++){const _0x1d89d6={'id':'doc.mutation.rich-text-editing','params':{..._0x499128[_0x2fa4d1]}},_0x31720c=this[_0x22dbde(0x25f)][_0x22dbde(0x286)](_0x3163d7,_0x1d89d6,!0x1);if(_0x27b05a(_0x31720c))throw _0x31720c[_0x22dbde(0x231)];_0x3163d7=_0x31720c[_0x22dbde(0x3a6)];}return{..._0x1b7cfb[_0x22dbde(0x1c0)](_0x71eb14),'mutations':[_0x3163d7]};}['_transformUndoRedoStack'](_0x3562af){const _0x885475=_0x2ad37e,{unitID:_0x3941b6}=_0x3562af,_0x11ba95=this[_0x885475(0x3ab)][_0x885475(0x18c)](_0x3941b6)[_0x885475(0x269)](_0x1d477d),{undoCache:_0x4c4a94,redoCache:_0x2dba92}=_0x11ba95['getUndoRedoMutationParamsCache']();if(_0x4c4a94[_0x885475(0x309)]===0x0||_0x2dba92[_0x885475(0x309)]===0x0)return;const _0x561ac0=[],_0x52e6ef=[];let _0x3c5685=_0x1b7cfb[_0x885475(0x1c0)](_0x3562af[_0x885475(0x29a)][0x0]),_0x1283eb=_0x1b7cfb[_0x885475(0x1c0)](_0x3562af['mutations'][0x0]);for(let _0x54ea36=_0x4c4a94['length']-0x1;_0x54ea36>=0x0;_0x54ea36--){const _0x471cdf={'id':_0x885475(0x2f6),'params':{..._0x4c4a94[_0x54ea36]}},_0x5663c4={'id':_0x885475(0x2f6),'params':{..._0x2dba92[_0x54ea36]}},_0x2c288f=this[_0x885475(0x25f)]['transformMutation'](_0x3c5685,_0x471cdf,!0x1),_0x470696=this[_0x885475(0x25f)][_0x885475(0x286)](_0x1283eb,_0x5663c4,!0x1);if(_0x27b05a(_0x2c288f))throw _0x2c288f[_0x885475(0x231)];if(_0x27b05a(_0x470696))throw _0x470696[_0x885475(0x231)];_0x561ac0['unshift'](_0x2c288f['m2Prime'][_0x885475(0x2d1)]),_0x52e6ef[_0x885475(0x33b)](_0x470696[_0x885475(0x1fa)]['params']),_0x3c5685=_0x2c288f[_0x885475(0x3a6)],_0x1283eb=_0x470696['m1Prime'];}_0x11ba95[_0x885475(0x3b4)]({'undoCache':_0x561ac0,'redoCache':_0x52e6ef});}['_transformPreviousActiveRange'](_0x470aa9){const _0x551013=_0x2ad37e,{unitID:_0xb70b56}=_0x470aa9,_0x5a865d=this[_0x551013(0x3ab)]['getRenderById'](_0xb70b56)['with'](_0x1d477d),_0x162b11=_0x5a865d[_0x551013(0x2b5)]();if(_0x162b11==null)return;const _0x5f3dbe=[{'id':_0x551013(0x2f6),'params':{'unitId':_0x470aa9[_0x551013(0x345)],'actions':null,'textRanges':[_0x162b11]}}],_0x5dfa26=this['_transformService']['transformMutationsWithChangeset'](_0x470aa9,_0x5f3dbe);if(!_0x4a4a43(_0x5dfa26))throw _0x5dfa26[_0x551013(0x231)];const _0x571952=_0x5dfa26['m2Prime'][0x0]['params'][_0x551013(0x36f)];Array[_0x551013(0x3b6)](_0x571952)&&_0x571952[_0x551013(0x309)]&&_0x5a865d[_0x551013(0x2cb)](_0x571952[0x0]);}};he=dn([lt(0x0,_0x185243),lt(0x1,_0x1b9e7e)],he);var Sn=Object[_0x2ad37e(0x316)],mn=(_0x58ac8e,_0x17944b,_0x1e27bb,_0x50ad87)=>{const _0x5968ed=_0x2ad37e;for(var _0x18d27c=_0x50ad87>0x1?void 0x0:_0x50ad87?Sn(_0x17944b,_0x1e27bb):_0x17944b,_0x47ea71=_0x58ac8e[_0x5968ed(0x309)]-0x1,_0x5ab787;_0x47ea71>=0x0;_0x47ea71--)(_0x5ab787=_0x58ac8e[_0x47ea71])&&(_0x18d27c=_0x5ab787(_0x18d27c)||_0x18d27c);return _0x18d27c;},Le=(_0x56c365,_0x508dcf)=>(_0x402fa5,_0x37571d)=>_0x508dcf(_0x402fa5,_0x37571d,_0x56c365);let ue=class{constructor(_0x3b3e97,_0x166322,_0x4a6b69){const _0x28e40f=_0x2ad37e;this[_0x28e40f(0x291)]=_0x3b3e97,this[_0x28e40f(0x25f)]=_0x166322,this['_docStateChangeManagerService']=_0x4a6b69;}[_0x2ad37e(0x2b9)](_0x1fd203){const _0x1a6650=_0x2ad37e;this[_0x1a6650(0x1c4)](_0x1fd203);}[_0x2ad37e(0x318)](_0x2635c3){const _0x270909=_0x2ad37e,{unitID:_0x5db2d5}=_0x2635c3,{collaboration:_0x5e2a0c}=this[_0x270909(0x3a3)]['getStateCache'](_0x5db2d5);if(_0x5e2a0c['length']===0x0)return _0x2635c3;let _0x4f540d=_0x1b7cfb[_0x270909(0x1c0)](_0x2635c3[_0x270909(0x29a)][0x0]);for(let _0x4eef88=0x0;_0x4eef88<_0x5e2a0c[_0x270909(0x309)];_0x4eef88++){const _0x421b48={'id':_0x270909(0x2f6),'params':{'unitId':_0x5e2a0c[_0x4eef88][_0x270909(0x1d8)],..._0x5e2a0c[_0x4eef88][_0x270909(0x19f)]}},_0x42865c=this[_0x270909(0x25f)][_0x270909(0x286)](_0x4f540d,_0x421b48,!0x1);if(_0x27b05a(_0x42865c))throw _0x42865c[_0x270909(0x231)];_0x4f540d=_0x42865c[_0x270909(0x3a6)];}return{..._0x1b7cfb[_0x270909(0x1c0)](_0x2635c3),'mutations':[_0x4f540d]};}[_0x2ad37e(0x1c4)](_0x510e6d){const _0x3966fd=_0x2ad37e,{unitID:_0x3fd51f}=_0x510e6d,{history:_0x3f8056,collaboration:_0xfe3e32}=this['_docStateChangeManagerService']['getStateCache'](_0x3fd51f);if(_0x3f8056[_0x3966fd(0x309)]===0x0&&_0xfe3e32[_0x3966fd(0x309)]===0x0)return;const _0x38174c=[],_0xf8a3ad=[];let _0x1047fe=_0x1b7cfb[_0x3966fd(0x1c0)](_0x510e6d['mutations'][0x0]),_0x450d13=_0x1b7cfb[_0x3966fd(0x1c0)](_0x510e6d['mutations'][0x0]);for(let _0x1e8fcd=_0x3f8056[_0x3966fd(0x309)]-0x1;_0x1e8fcd>=0x0;_0x1e8fcd--){const _0xd0e677={'id':_0x3966fd(0x2f6),'params':{'unitId':_0x3f8056[_0x1e8fcd][_0x3966fd(0x1d8)],..._0x3f8056[_0x1e8fcd]['undoState']}},_0x16eca0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3f8056[_0x1e8fcd][_0x3966fd(0x1d8)],..._0x3f8056[_0x1e8fcd][_0x3966fd(0x19f)]}},_0x1f2e35=this['_transformService']['transformMutation'](_0x1047fe,_0xd0e677,!0x1),_0x128123=this[_0x3966fd(0x25f)]['transformMutation'](_0x450d13,_0x16eca0,!0x1);if(_0x27b05a(_0x1f2e35))throw _0x1f2e35[_0x3966fd(0x231)];if(_0x27b05a(_0x128123))throw _0x128123['error'];_0x38174c[_0x3966fd(0x33b)]({..._0x3f8056[_0x1e8fcd],'undoState':_0x1f2e35['m2Prime'][_0x3966fd(0x2d1)],'redoState':_0x128123['m2Prime'][_0x3966fd(0x2d1)]}),_0x1047fe=_0x1f2e35['m1Prime'],_0x450d13=_0x128123[_0x3966fd(0x3a6)];}_0x1047fe=_0x1b7cfb['deepClone'](_0x510e6d[_0x3966fd(0x29a)][0x0]),_0x450d13=_0x1b7cfb[_0x3966fd(0x1c0)](_0x510e6d['mutations'][0x0]);for(let _0x3ea233=_0xfe3e32[_0x3966fd(0x309)]-0x1;_0x3ea233>=0x0;_0x3ea233--){const _0x401d7f={'id':_0x3966fd(0x2f6),'params':{'unitId':_0xfe3e32[_0x3ea233][_0x3966fd(0x1d8)],..._0xfe3e32[_0x3ea233]['undoState']}},_0x5d4991={'id':_0x3966fd(0x2f6),'params':{'unitId':_0xfe3e32[_0x3ea233]['unitId'],..._0xfe3e32[_0x3ea233][_0x3966fd(0x19f)]}},_0xf41864=this['_transformService'][_0x3966fd(0x286)](_0x1047fe,_0x401d7f,!0x1),_0x33c9ec=this[_0x3966fd(0x25f)][_0x3966fd(0x286)](_0x450d13,_0x5d4991,!0x1);if(_0x27b05a(_0xf41864))throw _0xf41864[_0x3966fd(0x231)];if(_0x27b05a(_0x33c9ec))throw _0x33c9ec[_0x3966fd(0x231)];_0xf8a3ad[_0x3966fd(0x33b)]({..._0xfe3e32[_0x3ea233],'undoState':_0xf41864[_0x3966fd(0x1fa)]['params'],'redoState':_0x33c9ec[_0x3966fd(0x1fa)][_0x3966fd(0x2d1)]}),_0x1047fe=_0xf41864[_0x3966fd(0x3a6)],_0x450d13=_0x33c9ec[_0x3966fd(0x3a6)];}this['_docStateChangeManagerService']['setStateCache'](_0x3fd51f,{'history':_0x38174c,'collaboration':_0xf8a3ad});}};ue=mn([Le(0x0,_0x17dbc2(_0x7e98bc)),Le(0x1,_0x185243),Le(0x2,_0x17dbc2(_0x4fdde9))],ue);var In=Object[_0x2ad37e(0x316)],fn=(_0x19f946,_0x2b85e8,_0x59f30b,_0xbcfc83)=>{const _0x393484=_0x2ad37e;for(var _0xc3aad8=_0xbcfc83>0x1?void 0x0:_0xbcfc83?In(_0x2b85e8,_0x59f30b):_0x2b85e8,_0x297b32=_0x19f946[_0x393484(0x309)]-0x1,_0xdc3243;_0x297b32>=0x0;_0x297b32--)(_0xdc3243=_0x19f946[_0x297b32])&&(_0xc3aad8=_0xdc3243(_0xc3aad8)||_0xc3aad8);return _0xc3aad8;},ht=(_0x274147,_0x36e25f)=>(_0x4a91bd,_0x598aef)=>_0x36e25f(_0x4a91bd,_0x598aef,_0x274147);let de=class{constructor(_0x16040c,_0x34433d){const _0x54a56e=_0x2ad37e;this[_0x54a56e(0x291)]=_0x16040c,this[_0x54a56e(0x25f)]=_0x34433d;}[_0x2ad37e(0x28e)](_0x2e942b){const _0x5c2088=_0x2ad37e;var _0x3fc519;const _0xfea581=this[_0x5c2088(0x291)]['get'](_0x10a29a),_0x49cc8c=(_0x3fc519=_0xfea581['getDocRanges']())!=null?_0x3fc519:[];if(_0x49cc8c[_0x5c2088(0x309)]===0x0)return;const _0x1dd2b8=_0x2e942b[_0x5c2088(0x345)],_0x5ddf9c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1dd2b8,'actions':null,'textRanges':_0x49cc8c}}],_0x3ba19c=this['_transformService']['transformMutationsWithChangeset'](_0x2e942b,_0x5ddf9c);if(!_0x4a4a43(_0x3ba19c))throw _0x3ba19c[_0x5c2088(0x231)];const _0x898fbb=_0x3ba19c['m2Prime'][0x0][_0x5c2088(0x2d1)][_0x5c2088(0x36f)];Array['isArray'](_0x898fbb)&&_0x898fbb['length']&&_0xfea581[_0x5c2088(0x3b9)](_0x898fbb,{'unitId':_0x1dd2b8,'subUnitId':_0x1dd2b8},!0x1);}};de=fn([ht(0x0,_0x17dbc2(_0x7e98bc)),ht(0x1,_0x185243)],de);var gn=Object['getOwnPropertyDescriptor'],vn=(_0x48a077,_0x17c795,_0x167cdf,_0x35b6fd)=>{for(var _0xb5db7d=_0x35b6fd>0x1?void 0x0:_0x35b6fd?gn(_0x17c795,_0x167cdf):_0x17c795,_0x3ab154=_0x48a077['length']-0x1,_0x25b433;_0x3ab154>=0x0;_0x3ab154--)(_0x25b433=_0x48a077[_0x3ab154])&&(_0xb5db7d=_0x25b433(_0xb5db7d)||_0xb5db7d);return _0xb5db7d;},U=(_0x5923c5,_0x127e4d)=>(_0x1a94ef,_0x4940af)=>_0x127e4d(_0x1a94ef,_0x4940af,_0x5923c5);let Se=class extends _0x58948b{constructor(_0xd09ee3,_0x6612ad,_0xd5ed9f,_0x2968e7,_0x4af1cc,_0x12ccd9,_0x58f39d,_0x4feff4){const _0x59e048=_0x2ad37e;super(),_(this,_0x59e048(0x393),new _0x434037(_0x373053[_0x59e048(0x32b)])),(this[_0x59e048(0x3a3)]=_0xd09ee3,this[_0x59e048(0x1c1)]=_0x6612ad,this[_0x59e048(0x1e3)]=_0xd5ed9f,this[_0x59e048(0x325)]=_0x2968e7,this['_docTransformSelectionsService']=_0x4af1cc,this[_0x59e048(0x1ae)]=_0x12ccd9,this[_0x59e048(0x344)]=_0x58f39d,this[_0x59e048(0x396)]=_0x4feff4,this[_0x59e048(0x3c7)]());}[_0x2ad37e(0x3c7)](){const _0x15c53c=_0x2ad37e;this['disposeWithMe'](this[_0x15c53c(0x1c1)]['entityInit$'][_0x15c53c(0x215)](_0x34d618=>{const _0x142d80=_0x15c53c,_0x913fa7=this['_docStateChangeManagerService'][_0x142d80(0x3b7)][_0x142d80(0x215)](_0x423c52=>{const _0x44a173=_0x142d80;if(_0x423c52==null)return;const {unitId:_0x407e91,redoState:_0x530662,commandId:_0x5b7f8a}=_0x423c52;if(_0x407e91!==_0x34d618[_0x44a173(0x345)])return;const _0x3b0587={'id':_0x5b7f8a,'type':_0x433e00[_0x44a173(0x326)],'params':{'unitId':_0x407e91,'actions':_0x530662[_0x44a173(0x384)],'textRanges':null}};_0x34d618[_0x44a173(0x369)](_0x3b0587);});if(_0x34d618['disposeWithMe'](_0x913fa7),_0x34d618 instanceof _0x2a90b3){const _0x4b694b={'onTransformIME':_0x55b560=>this[_0x142d80(0x1e3)]['transformIMECache'](_0x55b560),'onTransformState':_0x3ff788=>this['_docTransformStateCacheService'][_0x142d80(0x2b9)](_0x3ff788),'onTransformSelections':_0x4e4185=>this[_0x142d80(0x2f1)][_0x142d80(0x28e)](_0x4e4185),'onSyncEditingCollabCursor':_0x4897f0=>this['_docSyncEditingCollabCursorService'][_0x142d80(0x210)](_0x4897f0),'onTransformRemoteChangesetByIMECache':_0x73d20d=>this[_0x142d80(0x1e3)][_0x142d80(0x318)](_0x73d20d),'onTransformRemoteChangesetByStateCache':_0x574084=>this[_0x142d80(0x325)]['transformRemoteChangeset'](_0x574084)};_0x34d618['addHandlerCallback'](_0x4b694b);}}));}};Se=vn([U(0x0,_0x17dbc2(_0x4fdde9)),U(0x1,_0x17dbc2(_0x5c7c70)),U(0x2,_0x17dbc2(he)),U(0x3,_0x17dbc2(ue)),U(0x4,_0x17dbc2(de)),U(0x5,_0x17dbc2(ze)),U(0x6,_0x464b74),U(0x7,_0x17dbc2(_0x18b100))],Se);var Z=(_0x4edb2a=>(_0x4edb2a[_0x4edb2a[_0x2ad37e(0x25e)]=0x0]=_0x2ad37e(0x25e),_0x4edb2a[_0x4edb2a['OK']=0x1]='OK',_0x4edb2a[_0x4edb2a['INTERNAL_ERROR']=0x2]=_0x2ad37e(0x18e),_0x4edb2a[_0x4edb2a['PERMISSION_DENIED']=0x3]=_0x2ad37e(0x333),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x3a0)]=0x4]=_0x2ad37e(0x3a0),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x1aa)]=0x5]='UNAUTHENTICATED',_0x4edb2a[_0x4edb2a['ALREADY_EXISTS']=0x6]=_0x2ad37e(0x249),_0x4edb2a[_0x4edb2a['INVALID_ARGUMENT']=0x7]=_0x2ad37e(0x374),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x21e)]=0x8]=_0x2ad37e(0x21e),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x398)]=0x9]=_0x2ad37e(0x398),_0x4edb2a[_0x4edb2a['LOGIN_FAILED']=0xa]=_0x2ad37e(0x300),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x33f)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x364)]=0xc]=_0x2ad37e(0x364),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x2a9)]=0xd]=_0x2ad37e(0x2a9),_0x4edb2a[_0x4edb2a['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x2ad37e(0x2a5),_0x4edb2a[_0x4edb2a['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x2ad37e(0x195),_0x4edb2a[_0x4edb2a['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x2ad37e(0x319),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x38b)]=0x64]=_0x2ad37e(0x38b),_0x4edb2a[_0x4edb2a['ERROR_AGAIN']=0x65]=_0x2ad37e(0x279),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x324)]=0xc9]=_0x2ad37e(0x324),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x235)]=0xca]='USER_IS_ANONYMOUS',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x1c3)]=0x1389]=_0x2ad37e(0x1c3),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x275)]=0x1771]=_0x2ad37e(0x275),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x3a7)]=0x1772]=_0x2ad37e(0x3a7),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x1c8)]=0x1773]=_0x2ad37e(0x1c8),_0x4edb2a[_0x4edb2a['APPLY_REJECT']=0x1b59]=_0x2ad37e(0x1a4),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x2c2)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x2e4)]=0x1b5b]=_0x2ad37e(0x2e4),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x254)]=0x1b5c]=_0x2ad37e(0x254),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x2f4)]=0x1b5d]='APPLY_DUPLICATED',_0x4edb2a[_0x4edb2a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2ad37e(0x2ba),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x1b9)]=0x2329]=_0x2ad37e(0x1b9),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x211)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x1e5)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x379)]=0x232c]=_0x2ad37e(0x379),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x343)]=0x232d]=_0x2ad37e(0x343),_0x4edb2a[_0x4edb2a['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x386)]=0x2712]=_0x2ad37e(0x386),_0x4edb2a[_0x4edb2a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2ad37e(0x306),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x2f2)]=0x2714]=_0x2ad37e(0x2f2),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x347)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x35d)]=0x271b]=_0x2ad37e(0x35d),_0x4edb2a[_0x4edb2a['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x2ad37e(0x223),_0x4edb2a[_0x4edb2a['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x2ad37e(0x38f),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x185)]=0x271e]=_0x2ad37e(0x185),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x2ab)]=0x271f]=_0x2ad37e(0x2ab),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x289)]=0x2720]=_0x2ad37e(0x289),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x3c0)]=0x2af9]=_0x2ad37e(0x3c0),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x232)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x25a)]=0x2ee2]=_0x2ad37e(0x25a),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x361)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x239)]=0x2ee4]=_0x2ad37e(0x239),_0x4edb2a[_0x4edb2a['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x2ad37e(0x202),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x32e)]=0x32c9]=_0x2ad37e(0x32e),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x1bc)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x33d)]=0x32cb]=_0x2ad37e(0x33d),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x2e7)]=0x36b1]=_0x2ad37e(0x2e7),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x220)]=0x36b2]=_0x2ad37e(0x220),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x190)]=0x36b3]=_0x2ad37e(0x190),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x1de)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x4edb2a[_0x4edb2a['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x2ad37e(0x193),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x312)]=0x3716]=_0x2ad37e(0x312),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x1dd)]=0x3717]=_0x2ad37e(0x1dd),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x24c)]=0x37dd]=_0x2ad37e(0x24c),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x1ce)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x39d)]=0x3a9a]=_0x2ad37e(0x39d),_0x4edb2a[_0x4edb2a['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x2ad37e(0x268),_0x4edb2a[_0x4edb2a['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x2ad37e(0x307),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x280)]=0x3a9d]=_0x2ad37e(0x280),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x2a0)]=0x3a9e]=_0x2ad37e(0x2a0),_0x4edb2a[_0x4edb2a['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x2ad37e(0x2df),_0x4edb2a[_0x4edb2a[_0x2ad37e(0x274)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x4edb2a[_0x4edb2a[_0x2ad37e(0x342)]=-0x1]='UNRECOGNIZED',_0x4edb2a))(Z||{});function En(_0x2ea188){const _0x269a47=_0x2ad37e;var _0x2421a6,_0x5f50f1;const _0xe55b6d=(_0x2421a6=_0x2ea188[_0x269a47(0x2eb)])==null?void 0x0:_0x2421a6[_0x269a47(0x2c0)],_0x36a88b=((_0x5f50f1=_0x2ea188[_0x269a47(0x2eb)])==null?void 0x0:_0x5f50f1[_0x269a47(0x2ec)])||0x0;return _0xe55b6d===_0xb1e08d[_0x269a47(0x21c)]&&_0x36a88b>0x0;}function pn(_0x182119){const _0xddb224=_0x2ad37e;return _0x182119[_0xddb224(0x26b)]===_0x4fa3c4[_0xddb224(0x2b3)];}var On=Object[_0x2ad37e(0x316)],Tn=(_0x38fe94,_0x2d989a,_0x7bae52,_0x5c9dbd)=>{const _0x246a19=_0x2ad37e;for(var _0x4461d5=_0x5c9dbd>0x1?void 0x0:_0x5c9dbd?On(_0x2d989a,_0x7bae52):_0x2d989a,_0x4a101e=_0x38fe94[_0x246a19(0x309)]-0x1,_0x2881f1;_0x4a101e>=0x0;_0x4a101e--)(_0x2881f1=_0x38fe94[_0x4a101e])&&(_0x4461d5=_0x2881f1(_0x4461d5)||_0x4461d5);return _0x4461d5;},P=(_0x4e0e35,_0x286d39)=>(_0x39518e,_0x46796f)=>_0x286d39(_0x39518e,_0x46796f,_0x4e0e35);const Cn=_0x2ad37e(0x1ca),Rn=_0x2ad37e(0x2cd),Dn=_0x2ad37e(0x256);let me=class extends _0x58948b{constructor(_0x38bd91,_0x48ea73,_0xb79bb8,_0x265f3d,_0x3ac3c3,_0x3fe235,_0xbceddc){const _0x27c3e2=_0x2ad37e;super(),_(this,_0x27c3e2(0x2e1),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x27c3e2(0x340),0x0),_(this,_0x27c3e2(0x39a),[]),_(this,'_lastResponseTimestamp',0x0),(this['_messageService']=_0x38bd91,this[_0x27c3e2(0x19e)]=_0x48ea73,this[_0x27c3e2(0x238)]=_0xb79bb8,this[_0x27c3e2(0x367)]=_0x265f3d,this[_0x27c3e2(0x22d)]=_0x3ac3c3,this[_0x27c3e2(0x191)]=_0x3fe235,this['_localeService']=_0xbceddc,this[_0x27c3e2(0x27b)]());}[_0x2ad37e(0x27b)](){const _0x55b37a=_0x2ad37e;this[_0x55b37a(0x3a8)](this[_0x55b37a(0x19e)]['beforeCommandExecuted']((_0x5f43a2,_0xa0db2f)=>{const _0x119c48=_0x55b37a;var _0x584e8e;if(_0x5f43a2['id']!==_0x218f50['id'])return;const _0x50fbca=_0x5f43a2['params'];if(!this[_0x119c48(0x2e6)]((_0x584e8e=_0x50fbca[_0x119c48(0x37f)])!=null?_0x584e8e:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x119c48(0x3a5)](_0x5f43a2,_0xa0db2f),this[_0x119c48(0x2ae)](),new _0x54ba8d();})),this[_0x55b37a(0x3a8)](this[_0x55b37a(0x19e)][_0x55b37a(0x23d)]((_0x57875e,_0x303ee2)=>{const _0x5aff1d=_0x55b37a;if(_0x57875e['id']!==_0x30668b['id'])return;const _0x11ccf4=_0x57875e['params'];if(En(_0x11ccf4)){const _0x46bb35=_0x27bf30();this[_0x5aff1d(0x39a)]['push'](_0x46bb35),this[_0x5aff1d(0x24b)](_0x46bb35);}else{if(pn(_0x11ccf4)&&this[_0x5aff1d(0x39a)][_0x5aff1d(0x309)]>0x0){const _0x424cb4=this[_0x5aff1d(0x39a)][_0x5aff1d(0x299)]();this['_releaseCalculationLimit'](_0x424cb4);}}}));}[_0x2ad37e(0x382)](){const _0x1cd02d=_0x2ad37e;super[_0x1cd02d(0x382)](),this[_0x1cd02d(0x27c)](),this[_0x1cd02d(0x39a)]=[],this[_0x1cd02d(0x340)]=0x0,this[_0x1cd02d(0x2ca)]=0x0,this[_0x1cd02d(0x332)]=0x0;}async[_0x2ad37e(0x3a5)](_0x10958c,_0x592275){const _0xbc053=_0x2ad37e;for(let _0x4cdd37=0x0;_0x4cdd37<0x1e;_0x4cdd37++)try{if(await this[_0xbc053(0x270)](),this['_checkCalculationAvailable']()){this[_0xbc053(0x1a2)](_0x10958c,_0x592275),this[_0xbc053(0x344)]['show']({'content':this[_0xbc053(0x396)]['t'](_0xbc053(0x23a)),'type':_0x1bf3a5[_0xbc053(0x242)]});return;}await new Promise(_0x10b7fb=>{const _0x6091b0=_0xbc053;this['_pollingInterval']=window[_0x6091b0(0x1b1)](_0x10b7fb,0x3e8);});}catch(_0x5046b3){this[_0xbc053(0x191)][_0xbc053(0x231)](_0x5046b3);}this['_messageService'][_0xbc053(0x2c7)]({'content':this['_localeService']['t'](_0xbc053(0x370)),'type':_0x1bf3a5[_0xbc053(0x2bd)]});}[_0x2ad37e(0x1a2)](_0x391332,_0x4fe048){const _0x40f30b=_0x2ad37e;try{this['_commandService'][_0x40f30b(0x263)](_0x391332['id'],_0x391332[_0x40f30b(0x2d1)],_0x4fe048);}catch(_0x429faf){this[_0x40f30b(0x191)][_0x40f30b(0x231)](_0x429faf);}}[_0x2ad37e(0x2de)](_0x2ac78f,_0x526578){const _0x59c8b1=_0x2ad37e;_0x526578<this['_lastResponseTimestamp']||(this[_0x59c8b1(0x332)]=_0x526578,this[_0x59c8b1(0x2ca)]=Number[_0x59c8b1(0x335)](_0x2ac78f['maxFormulaLimit']),this['_currentUsage']=Number['parseInt'](_0x2ac78f[_0x59c8b1(0x1ed)]));}async[_0x2ad37e(0x24b)](_0x5c4694){const _0xf9ac03=_0x2ad37e;var _0x578544,_0x110d9c;const _0x2d9b57=Date['now']();try{const _0x247371=((_0x578544=this[_0xf9ac03(0x238)][_0xf9ac03(0x290)](_0x23d3a9))==null?void 0x0:_0x578544[_0xf9ac03(0x265)])||Rn,_0x38df69=(await this[_0xf9ac03(0x367)][_0xf9ac03(0x1a7)](_0x247371,{'body':JSON[_0xf9ac03(0x36c)]({'taskId':_0x5c4694})}))[_0xf9ac03(0x2bc)];if(((_0x110d9c=_0x38df69['error'])==null?void 0x0:_0x110d9c[_0xf9ac03(0x2e8)])!==Z['OK'])return;this[_0xf9ac03(0x2de)](_0x38df69[_0xf9ac03(0x199)],_0x2d9b57);}catch(_0x315022){this[_0xf9ac03(0x191)][_0xf9ac03(0x231)](_0x315022);}}async[_0x2ad37e(0x270)](_0x43abbd){const _0x344260=_0x2ad37e;var _0x19b16f,_0x1557ef;const _0x3c7b87=Date[_0x344260(0x278)]();try{const _0x239597=((_0x19b16f=this[_0x344260(0x238)][_0x344260(0x290)](_0x23d3a9))==null?void 0x0:_0x19b16f[_0x344260(0x2ff)])||Cn,_0x23f1a9=_0x43abbd?_0x239597+_0x344260(0x2c5)+encodeURIComponent(_0x43abbd):_0x239597,_0x5ab55b=(await this[_0x344260(0x367)][_0x344260(0x1b6)](_0x23f1a9))[_0x344260(0x2bc)];if(((_0x1557ef=_0x5ab55b[_0x344260(0x231)])==null?void 0x0:_0x1557ef['code'])!==Z['OK'])return;this[_0x344260(0x2de)](_0x5ab55b[_0x344260(0x199)],_0x3c7b87);}catch(_0x3b525e){this[_0x344260(0x191)][_0x344260(0x231)](_0x3b525e);}}async[_0x2ad37e(0x2ce)](_0x2a3f1a){const _0x4d3d70=_0x2ad37e;var _0x47d685,_0xaac131;const _0x2a99c2=Date[_0x4d3d70(0x278)]();try{const _0x5f5cc7=((_0x47d685=this[_0x4d3d70(0x238)][_0x4d3d70(0x290)](_0x23d3a9))==null?void 0x0:_0x47d685[_0x4d3d70(0x1ec)])||Dn,_0x15d53b=(await this[_0x4d3d70(0x367)][_0x4d3d70(0x1a7)](_0x5f5cc7,{'body':JSON[_0x4d3d70(0x36c)]({'taskId':_0x2a3f1a})}))[_0x4d3d70(0x2bc)];if(((_0xaac131=_0x15d53b['error'])==null?void 0x0:_0xaac131[_0x4d3d70(0x2e8)])!==Z['OK'])return;this[_0x4d3d70(0x2de)](_0x15d53b['limitInfo'],_0x2a99c2);}catch(_0x2874be){this[_0x4d3d70(0x191)][_0x4d3d70(0x231)](_0x2874be);}}[_0x2ad37e(0x33c)](){const _0xafe145=_0x2ad37e;return this[_0xafe145(0x2ca)]===0x0?!0x0:this[_0xafe145(0x2ca)]-this[_0xafe145(0x340)]>0x0;}[_0x2ad37e(0x27c)](){const _0x257d9c=_0x2ad37e;this[_0x257d9c(0x2e1)]&&(clearTimeout(this[_0x257d9c(0x2e1)]),this['_pollingInterval']=null);}[_0x2ad37e(0x2ae)](){const _0x2bbf88=_0x2ad37e;this['_messageService']['show']({'content':this[_0x2bbf88(0x396)]['t']('formula.calculation.waiting'),'type':_0x1bf3a5[_0x2bbf88(0x204)]});}['_hasFormulaInDirtyRanges'](_0x14a508){const _0xc70ed5=_0x2ad37e;for(const _0xdc291d of _0x14a508){const {unitId:_0x3fa60c,sheetId:_0x489ff2,range:_0x467b32}=_0xdc291d,_0x2ae443=this[_0xc70ed5(0x22d)][_0xc70ed5(0x2e3)](_0x3fa60c);if(!_0x2ae443)continue;const _0x57fdb6=_0x2ae443[_0xc70ed5(0x26d)](_0x489ff2);if(!_0x57fdb6)continue;const _0x5e4815=_0x57fdb6[_0xc70ed5(0x1f4)]();for(let _0x1e35a5=_0x467b32[_0xc70ed5(0x26e)];_0x1e35a5<=_0x467b32['endRow'];_0x1e35a5++)for(let _0x2019fe=_0x467b32[_0xc70ed5(0x329)];_0x2019fe<=_0x467b32[_0xc70ed5(0x36d)];_0x2019fe++){const _0x47596c=_0x5e4815[_0xc70ed5(0x20a)](_0x1e35a5,_0x2019fe);if(_0x47596c&&(_0x12e729(_0x47596c['f'])||_0x1d4d85(_0x47596c['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x17dbc2(_0x464b74)),P(0x1,_0xc8122f),P(0x2,_0x1c36ce),P(0x3,_0x17dbc2(_0x3670ce)),P(0x4,_0x2505af),P(0x5,_0x114287),P(0x6,_0x17dbc2(_0x18b100))],me);var bn=Object[_0x2ad37e(0x316)],Nn=(_0x3c7d7e,_0x5a6a4c,_0x371c0b,_0xcac74c)=>{for(var _0x4127d7=_0xcac74c>0x1?void 0x0:_0xcac74c?bn(_0x5a6a4c,_0x371c0b):_0x5a6a4c,_0xe2533=_0x3c7d7e['length']-0x1,_0x3b6718;_0xe2533>=0x0;_0xe2533--)(_0x3b6718=_0x3c7d7e[_0xe2533])&&(_0x4127d7=_0x3b6718(_0x4127d7)||_0x4127d7);return _0x4127d7;},Ue=(_0x180393,_0x2144fb)=>(_0x189cbd,_0x4f60b8)=>_0x2144fb(_0x189cbd,_0x4f60b8,_0x180393);let He=class extends _0x58948b{constructor(_0xc83638,_0x4f2041,_0x2f921d){const _0x2a1839=_0x2ad37e;super(),_(this,_0x2a1839(0x1eb),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x2a1839(0x1bf),!0x1),(this[_0x2a1839(0x238)]=_0xc83638,this[_0x2a1839(0x2f8)]=_0x4f2041,this['_revisionService']=_0x2f921d);}['disableLocalCache'](){const _0x2843c2=_0x2ad37e;this[_0x2843c2(0x1bf)]=!0x0;}[_0x2ad37e(0x2b4)](){const _0x555657=_0x2ad37e;this[_0x555657(0x1bf)]=!0x1;}get['saveTaskMap'](){const _0xf9d52=_0x2ad37e;return this[_0xf9d52(0x35f)];}[_0x2ad37e(0x382)](){const _0xf59f1f=_0x2ad37e;this[_0xf59f1f(0x201)]()[_0xf59f1f(0x383)](()=>super[_0xf59f1f(0x382)]());}async['loadOfflineData'](_0x41f948){const _0x45ef5e=_0x2ad37e;return this[_0x45ef5e(0x1bf)]?null:this[_0x45ef5e(0x2f8)][_0x45ef5e(0x2dc)](_0x4e4c76(_0x41f948));}async[_0x2ad37e(0x292)](_0x1af399,_0x2d2365){const _0x680c7c=_0x2ad37e;return!!this[_0x680c7c(0x2f8)][_0x680c7c(0x259)](_0x1af399,_0x2d2365);}[_0x2ad37e(0x3b5)](_0x3e557d,_0x291d44,_0x3087c7,_0x31b77c){const _0x4bdbf1=_0x2ad37e,_0x3cf84f=this[_0x4bdbf1(0x2be)][_0x4bdbf1(0x222)](_0x3e557d);this['_cachedData']['set'](_0x3e557d,{'unitID':_0x3e557d,'type':_0x291d44,'awaitingChangeset':_0x3087c7,'mutations':_0x31b77c,'rev':_0x3cf84f}),this['_saveTaskMap'][_0x4bdbf1(0x21a)](_0x3e557d)||this[_0x4bdbf1(0x34c)](_0x3e557d);}[_0x2ad37e(0x34c)](_0x422f36){const _0x3df4b0=_0x2ad37e,_0x262f90=this['_getSaveTimeout']();_0x262f90===0x0?this[_0x3df4b0(0x267)](_0x422f36):this[_0x3df4b0(0x35f)][_0x3df4b0(0x2fc)](_0x422f36,setTimeout(()=>this['_saveCache'](_0x422f36),_0x262f90));}[_0x2ad37e(0x322)](){const _0x43e3b5=_0x2ad37e;var _0x3b0faf;return(_0x3b0faf=this[_0x43e3b5(0x238)]['getConfig'](_0x347fdf))!=null?_0x3b0faf:_0x5bf8d6;}[_0x2ad37e(0x267)](_0x9a8c5b){const _0x270be6=_0x2ad37e,_0x2c499f=this[_0x270be6(0x35f)]['get'](_0x9a8c5b);return _0x2c499f!==void 0x0&&window['clearTimeout'](_0x2c499f),this[_0x270be6(0x2f8)][_0x270be6(0x259)](_0x4e4c76(_0x9a8c5b),this[_0x270be6(0x1eb)][_0x270be6(0x1b6)](_0x9a8c5b))[_0x270be6(0x383)](()=>this[_0x270be6(0x35f)][_0x270be6(0x258)](_0x9a8c5b));}async[_0x2ad37e(0x201)](){const _0x2ba0bb=_0x2ad37e,_0x15ff2b=[];this[_0x2ba0bb(0x35f)][_0x2ba0bb(0x3bd)]((_0x5f3f0e,_0xfd19db)=>{const _0x39d657=_0x2ba0bb;window[_0x39d657(0x38a)](_0x5f3f0e),_0x15ff2b['push'](this[_0x39d657(0x267)](_0xfd19db)[_0x39d657(0x383)](()=>{const _0x29fb27=_0x39d657;this[_0x29fb27(0x35f)]['delete'](_0xfd19db);}));}),await Promise[_0x2ba0bb(0x2a8)](_0x15ff2b);}};He=Nn([Ue(0x0,_0x1c36ce),Ue(0x1,_0x3a22b4),Ue(0x2,_0x17dbc2(_0x55b6bd))],He);class Ln extends _0x101452{constructor(){const _0x29b5a7=_0x2ad37e;super(),_(this,_0x29b5a7(0x31b)),this[_0x29b5a7(0x31b)]=_0x50e66d(window,'popstate')[_0x29b5a7(0x2cc)](_0x59c3be(this['dispose$']),_0xe8cb63(0x1),_0x35871a(void 0x0));}[_0x2ad37e(0x1f1)](_0x1b7a9d,_0x31db7,_0x4c2fa9=!0x1){const _0x130552=_0x2ad37e,_0x53564e=new URL(window[_0x130552(0x282)][_0x130552(0x2d2)]);_0x53564e['searchParams'][_0x130552(0x2fc)](_0x1b7a9d,_0x31db7),_0x4c2fa9?window[_0x130552(0x331)][_0x130552(0x37c)]('','',_0x53564e[_0x130552(0x20b)]()):window['history'][_0x130552(0x1d4)]('','',_0x53564e[_0x130552(0x20b)]());}[_0x2ad37e(0x257)](_0x43a1c1,_0x3d78d0=!0x1){const _0x778b4d=_0x2ad37e,_0x4bead1=new URL(window[_0x778b4d(0x282)]['href']);_0x4bead1[_0x778b4d(0x2fa)][_0x778b4d(0x258)](_0x43a1c1),_0x3d78d0?window['history'][_0x778b4d(0x37c)]('','',_0x4bead1[_0x778b4d(0x20b)]()):window['history'][_0x778b4d(0x1d4)]('','',_0x4bead1[_0x778b4d(0x20b)]());}[_0x2ad37e(0x1d3)](_0xdbb906){const _0x8a00b2=_0x2ad37e;var _0x179bd1;return(_0x179bd1=new URL(window[_0x8a00b2(0x282)]['href'])['searchParams'][_0x8a00b2(0x1b6)](_0xdbb906))!=null?_0x179bd1:void 0x0;}}var Un=Object[_0x2ad37e(0x294)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x3011de,_0x53b401,_0x1ddb73)=>_0x53b401 in _0x3011de?Un(_0x3011de,_0x53b401,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ddb73}):_0x3011de[_0x53b401]=_0x1ddb73,Pn=(_0x11b593,_0x1b1837,_0x4f77d6,_0x17c3ef)=>{const _0x3f1d9b=_0x2ad37e;for(var _0x185310=_0x17c3ef>0x1?void 0x0:_0x17c3ef?Mn(_0x1b1837,_0x4f77d6):_0x1b1837,_0x26a5f0=_0x11b593[_0x3f1d9b(0x309)]-0x1,_0x2a942b;_0x26a5f0>=0x0;_0x26a5f0--)(_0x2a942b=_0x11b593[_0x26a5f0])&&(_0x185310=_0x2a942b(_0x185310)||_0x185310);return _0x185310;},Me=(_0x57ce40,_0x30c750)=>(_0x517ce5,_0x2e99ac)=>_0x30c750(_0x517ce5,_0x2e99ac,_0x57ce40),wn=(_0x393a2f,_0x342a37,_0x366264)=>An(_0x393a2f,_0x342a37+'',_0x366264);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x4d2b42{constructor(_0x1b6a7e=_t,_0x23225a,_0x4f4a7d,_0x1e0c16){const _0x196851=_0x2ad37e;super(),this['_config']=_0x1b6a7e,this[_0x196851(0x3ab)]=_0x23225a,this[_0x196851(0x291)]=_0x4f4a7d,this['_configService']=_0x1e0c16;const {..._0x21bf10}=_0x5a335a({},_t,this[_0x196851(0x1a3)]);this[_0x196851(0x238)][_0x196851(0x1b8)](hn,_0x21bf10);}[_0x2ad37e(0x1cc)](){const _0x4f9a67=_0x2ad37e;this[_0x4f9a67(0x1ef)](),this['_initDependencies']();}[_0x2ad37e(0x3cb)](){this['_registerRenderDependencies']();}[_0x2ad37e(0x1ef)](){const _0xc606e8=_0x2ad37e;var _0x15357d;const _0x28ebbd=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2307e5,{'useClass':_0x4d7622}],[_0x2a978f,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0xc606e8(0x1a3)]['enableFrontendLog']&&_0x28ebbd['push']([le]),_0x2880b8(this[_0xc606e8(0x291)],_0x3a2996(_0x28ebbd,(_0x15357d=this[_0xc606e8(0x1a3)])==null?void 0x0:_0x15357d[_0xc606e8(0x28f)]));}[_0x2ad37e(0x233)](){const _0x384a08=_0x2ad37e;this[_0x384a08(0x3a8)](this['_renderManagerService'][_0x384a08(0x3cc)](_0x463f4d[_0x384a08(0x1fd)],[Fe])),this[_0x384a08(0x3a8)](this[_0x384a08(0x3ab)][_0x384a08(0x3cc)](_0x463f4d[_0x384a08(0x218)],[ke]));}[_0x2ad37e(0x224)](){const _0xe99e8=_0x2ad37e;_0x2ff3d6(this[_0xe99e8(0x291)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0xe99e8(0x1a3)]['enableFrontendLog']&&_0x2ff3d6(this[_0xe99e8(0x291)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x454c73(_0x5dd9d5),Me(0x1,_0x1b9e7e),Me(0x2,_0x17dbc2(_0x7e98bc)),Me(0x3,_0x1c36ce)],Ye);var $n=Object[_0x2ad37e(0x316)],xn=(_0x4f8667,_0x5abb5f,_0x4f9ea6,_0x57601a)=>{const _0x52a654=_0x2ad37e;for(var _0x5a8987=_0x57601a>0x1?void 0x0:_0x57601a?$n(_0x5abb5f,_0x4f9ea6):_0x5abb5f,_0x499e99=_0x4f8667[_0x52a654(0x309)]-0x1,_0xca5efa;_0x499e99>=0x0;_0x499e99--)(_0xca5efa=_0x4f8667[_0x499e99])&&(_0x5a8987=_0xca5efa(_0x5a8987)||_0x5a8987);return _0x5a8987;},J=(_0x51dcf7,_0x3dfd5c)=>(_0x5598ec,_0x1f2840)=>_0x3dfd5c(_0x5598ec,_0x1f2840,_0x51dcf7);let ut=class extends _0x18048a{constructor(_0x57c339,_0x1dab25,_0x3f072e,_0x254b96,_0x5d5616){super(_0x57c339,_0x1dab25,_0x3f072e,_0x254b96,_0x5d5616);}async[_0x2ad37e(0x227)](_0x23ca9b){const _0x563828=_0x2ad37e,_0x24fb82=await this[_0x563828(0x1e9)](),_0x135b69=this['_createSocketURL'](_0x23ca9b,_0x24fb82);return this[_0x563828(0x29c)](_0x135b69);}[_0x2ad37e(0x2f5)](_0x2760a6,_0x5542d5){const _0x51bce7=_0x2ad37e,_0x4697a9=typeof window>'u'?new URL(_0x2760a6):new URL(_0x2760a6,window['location'][_0x51bce7(0x27f)]);_0x4697a9[_0x51bce7(0x2fa)][_0x51bce7(0x2fc)]('sessionTicket',_0x5542d5);const _0x2bddcc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x51bce7(0x282)][_0x51bce7(0x2c9)]);return _0x2bddcc[_0x51bce7(0x1b6)]('runId')&&_0x4697a9[_0x51bce7(0x2fa)][_0x51bce7(0x2fc)]('runId',_0x2bddcc[_0x51bce7(0x1b6)](_0x51bce7(0x3af))),_0x4697a9[_0x51bce7(0x20b)]();}async['_getSessionTicket'](){const _0x176d6d=_0x2ad37e;var _0x51bbd1,_0x52a1cd,_0x2e442e;const _0x8b9e8d=this[_0x176d6d(0x238)][_0x176d6d(0x290)](_0x23d3a9),_0x36f167=(_0x51bbd1=_0x8b9e8d==null?void 0x0:_0x8b9e8d['wsSessionTicketUrl'])!=null?_0x51bbd1:_0xbf9fd3;return(_0x2e442e=(_0x52a1cd=(await this[_0x176d6d(0x367)][_0x176d6d(0x1b6)](_0x36f167,{'headers':{'Content-Type':'application/json'}}))[_0x176d6d(0x2bc)])==null?void 0x0:_0x52a1cd[_0x176d6d(0x261)])!=null?_0x2e442e:'';}};ut=xn([J(0x0,_0x17dbc2(_0x7e98bc)),J(0x1,_0x17dbc2(_0x3670ce)),J(0x2,_0x1c36ce),J(0x3,_0x114287),J(0x4,_0x4c3aa1)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x4fe1a2,_0x5dbc0b,_0x1d454d,_0x5c424b)=>{for(var _0x5bef52=_0x5c424b>0x1?void 0x0:_0x5c424b?Bn(_0x5dbc0b,_0x1d454d):_0x5dbc0b,_0x2966a3=_0x4fe1a2['length']-0x1,_0x4f7a2c;_0x2966a3>=0x0;_0x2966a3--)(_0x4f7a2c=_0x4fe1a2[_0x2966a3])&&(_0x5bef52=_0x4f7a2c(_0x5bef52)||_0x5bef52);return _0x5bef52;},Ae=(_0x2cb4cc,_0x206065)=>(_0x36d109,_0x3a9e01)=>_0x206065(_0x36d109,_0x3a9e01,_0x2cb4cc);let dt=class extends _0x58948b{constructor(_0x2ebbad,_0x250c78,_0x209352){const _0x11a65c=_0x2ad37e;super(),this['_instanceService']=_0x2ebbad,this[_0x11a65c(0x367)]=_0x250c78,this[_0x11a65c(0x238)]=_0x209352;}async[_0x2ad37e(0x296)](_0x3f571a,_0x443245,_0x49b243,..._0x457098){const _0x2c851c=_0x2ad37e;var _0x497a4a,_0x73f6d4,_0x24cbdc,_0x20af4a;const _0x3b6c30=this[_0x2c851c(0x351)][_0x2c851c(0x3c1)]();if(!_0x3b6c30)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x82f1=((_0x497a4a=this[_0x2c851c(0x238)][_0x2c851c(0x290)](_0x735800))!=null?_0x497a4a:_0x8521de)+'/'+_0x3f571a+_0x2c851c(0x24e)+_0x443245,_0xf9a6bf=new URL(window['location'][_0x2c851c(0x2d2)]),_0x1a6cfb={'scriptId':_0x3f571a,'runId':(_0x73f6d4=_0xf9a6bf[_0x2c851c(0x2fa)]['get'](_0x2c851c(0x3af)))!=null?_0x73f6d4:'','function':_0x443245,'unitId':_0x3b6c30[_0x2c851c(0x30c)](),'argsOfFunction':JSON['stringify'](_0x457098),'invokeId':(_0x24cbdc=_0x49b243['invokeId'])!=null?_0x24cbdc:'','executionId':(_0x20af4a=_0x49b243[_0x2c851c(0x2d9)])!=null?_0x20af4a:''};try{const _0x3a238e=await this[_0x2c851c(0x367)][_0x2c851c(0x1a7)](_0x82f1,{'body':_0x1a6cfb});return _0x3a238e['body'][_0x2c851c(0x231)]&&_0x3a238e['body'][_0x2c851c(0x231)][_0x2c851c(0x2e8)]!==Z['OK']?'Failed':_0x3a238e[_0x2c851c(0x2bc)][_0x2c851c(0x183)];}catch{return'Failed';}}};function _0x4774(){const _0x13a107=['Success','text','socket$','tag','_eventUnsubscribe','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','top','ALREADY_EXISTS','reason','_startCalculationLimit','ENTITLE_NEED_BILLING_ADDRESS','drawWith','/run/','defIds','getCurrent','getTypeOfUnitDisposed$','colorChannel1','on-line-icon','APPLY_PERMISSION_DENIED','_getAnchorBounding','/universer-api/license/formula/limit/done','removeParam','delete','setItem','INVALID_INVITE_CODE','_updateURLWithCurrentState','hide','78QocWvr','UNDEFINED','_transformService','_labelPosition','ticket','1710450zIdphM','executeCommand','_updateSubUnitFromURLParams','startFormulaLimitUrl','_handleHeartbeatEvent','_saveCache','REDEMPTION_CODE_FULLY_REDEEMED','with','[LogService\x20Error]:\x20','functionsExecutedState','roomMembers','getSheetBySheetId','startRow','/universer-api/frontend/logs','_getFormulaLimitStatus','bind','name','_notificationService','DATA_SOURCE_TOO_LARGE','SNAPSHOT_INVALID_SNAPSHOT','...','getDocRanges','now','ERROR_AGAIN','_initStatusComponent','_initCommandInterceptor','_clearPolling','_cursors','http://www.w3.org/2000/svg','origin','REDEMPTION_USER_NOT_ELIGIBLE','fillStyle','location','_initEvent','row','36SPPLdK','transformMutation','createInstance','restore','YUUMI_CONNECTOR_URL_NOT_FOUND','mask','url(#on-line-icon_clip0_910_349)','InsertRowCommandId','getCurrentSelections','transformSelections','override','getConfig','_injector','saveOfflineData','_handleJoinEvent','defineProperty','startsWith','runOnServer','_getSheetObject','sessionStatus$','shift','mutations','getVpScrollXYInfoByPosToVp','_doCreateSocket','attrs','activeSheet$','session.connection-failed','REDEMPTION_USER_REDEEM_TIMES_EXCEED','fillRule','currentSkeleton$','unsubscribe','_shapes','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_backgroundColor','jiqing.500','all','EMAIL_VERIFY_CODE_MISMATCH','permission.content','YUUMI_AI_RUN_FAILED','setAlpha','status$','_showGuardMessage','_drawTextRange','onPointerEnter$','_clearOtherTimers','reconnect','SUCCESS','enableLocalCache','getActiveRange','4293234JWAjUL','unit','off-line-icon_clip0_910_343','transformStateCache','CONNECTOR_DATA_TOO_LARGE','_draw','body','Error','_revisionService','substring','stage','endRow','APPLY_NON_SEQUENTIAL_REVISION','collab-client.tooltip.reconnect','red.300','?taskId=','engine','show','VIEW_MAIN','search','_maxFormulaLimit','setActiveRange','pipe','/universer-api/license/formula/limit/start','_releaseCalculationLimit','newValue','getViewport','params','href','_name','storage','_memberID','_toggleOnline','_collabCursorState$','_memberService','executionId','yellow.400','map','getItem','_id','_setFormulaLimitStatus','REDEMPTION_CODE_HAS_BEEN_CREATED','unhandledrejection','_pollingInterval','collabStatus.conflict','getUnit','APPLY_REVISION_CONFILICT','div','_hasFormulaInDirtyRanges','ENTITLE_CAN_NOT_BUY_LOWER_OTP','code','NO_OTHER_CLIENTS_EDITING','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','stageInfo','totalFormulasToCalculate','RemoveColCommandId','_urlService','getTypeOfUnitAdded$','getCurrentUnitForType','_docTransformSelectionsService','YUUMI_SUBSCRIPTION_NOT_FOUND','USERS_LEAVE','APPLY_DUPLICATED','_createSocketURL','doc.mutation.rich-text-editing','_sheetSkeletonManagerService','_localStorageService','clipPath','searchParams','_handleHover','set','getMemberID','getSkeleton','getformulaLimitStatusUrl','LOGIN_FAILED','_removeClearOtherTimer','memberID','OTHER_CLIENTS_EDITING','height','addClipboardHook','YUUMI_RATE_OVER_LIMIT','REDEMPTION_CODE_NOT_STARTED','isActive','length','transform','measureText','getUnitId','green.600','_roomMembers$','AWAITING_WITH_PENDING','getRelativeToViewportCoord','moveTo','ENTITLE_REPORT_LIMIT_EXCEED','_send','selection','isEditing','getOwnPropertyDescriptor','OTHER_CLIENT_EDITING','transformRemoteChangeset','LOGIN_TOKEN_PROCESSING_FAILED','resize','urlChange$','_docSkeletonManagerService','subscribeEvent','disposeUnit','_startDocCollabCursor','10HRUyMU','lineTo','_getSaveTimeout','bottom','USER_NOT_FOUND','_docTransformStateCacheService','MUTATION','_themeService','DeleteRangeMoveUpCommandId','startColumn','RECT','NOT_COLLAB','InsertRangeMoveDownCommandId','_unitOnClients','WECHAT_HAS_BEEN_BOUND','asObservable','cursorInfo$','history','_lastResponseTimestamp','PERMISSION_DENIED','_localCacheService','parseInt','values','HEADER_MENU','_handleLeaveEvent','currentTheme$','_range','unshift','_checkCalculationAvailable','EMAIL_HAS_BEEN_BOUND','evenodd','MOBILE_VERIFY_CODE_MISMATCH','_currentUsage','sheetID','UNRECOGNIZED','LICENSE_DISTRO_REJECTED','_messageService','unitID','getOffsetConfig','YUUMI_NO_CUBOID_FOR_QUESTION','none','getUniverSheetInstance','addObject','_initCommandExecutedListener','_scheduleSaving','key','beginPath','fill','add','_instanceService','_initUserListener','_ensureSubject','getColorFromTheme','_getScale','InsertRangeMoveRightCommandId','getAncestorScale','saveImage','getUnhiddenWorksheets','collabStatus.offline','collaboration.closeRoom','session.collaboration-timeout','YUUMI_ASYNCIO_CANCELLED','OFFLINE','_saveTaskMap','collaboration-client-ui.config','INVITE_CODE_REQUIRED','addObjects','_scene','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','min','assignAColorForMemberID','_httpService','collab-text-range-','onLocalMutation','_context','some','stringify','endColumn','_uiPartsService','textRanges','formula.calculation.unable','event$','197305LmvEHv','_syncEditingCollabCursorService','INVALID_ARGUMENT','getUndoRedoMutationParamsCache','lineno','_beforeCloseService','CONFLICT','LICENSE_EXPORT_SIZE_EXCEEDED','font','3946imxbDm','replaceState','_cursorShapes','fillText','dirtyRanges','black','_unitStatus','dispose','then','actions','path','YUUMI_URL_COL_OUT_OF_RANGE','[CollaborationDataLoaderController]','_transformPreviousActiveRange','UPDATE_CURSOR','clearTimeout','CURRENT_STATUS_CANNOT_OPERATE','displayName','collaboration.single-unit.warning','blue.400','YUUMI_ALL_TABLES_IS_INVALID','_handleEvent','_session','off-line-icon','_status$','imageSourceType','_drawRectRange','_localeService','svg','COMPLETION_FINISHED','TEXT','_taskIds','_onCursorDelete','Warning','REDEMPTION_CODE_INACTIVE','1em','ACTIVE_UNIT_EVENT_CHANNEL','NOT_FOUND','_updateLocalCursor','Unknown\x20user','_docStateChangeManagerService','subunit','_checkAndWaitForCalculationPermission','m1Prime','SNAPSHOT_HAS_BEEN_REMOVED','disposeWithMe','registerBeforeClose','stack','_renderManagerService','_removeCollabCursors','_init','InsertColCommandId','runId','DeleteRangeMoveLeftCommandId','_anchor','UniverIcon','random','setUndoRedoMutationParamsCache','updateOfflineData','isArray','docStateChange$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','replaceDocRanges','891747aWNEcm','AWAITING','_drawAnchor','forEach','_initResize','ONLINE','PY_RUNTIME_SCRIPT_ERROR','getFocusedUnit','_color','source','FETCH_MISS','filename','transformByState','_initEntityListener','registerComponent','_colorAssignService','M0\x200H16V16H0z','onRendered','registerRenderModule','backgroundColor','_hideTimer','_startSheetCollabCursor','init','url(#off-line-icon_clip0_910_343)','includes','JOIN_ROOM_FAILED','result','round','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','requireSession','0\x200\x2017\x2016','current','onMouseMove','_monkeyPatchLogService','color','getRenderById','_refRangeService','INTERNAL_ERROR','_docSkeleton','ENTITLE_DUP_SUBSCRIPTION','_logService','roomMembers$','ENTITLE_CHAT_LIMIT_EXCEED','_updateCollabCursors','AUTHORIZE_CODE_ILLEGAL','range','_lastPointer','_collabSessionService','limitInfo','addEventListener','collabStatus.notCollab','clearInterval','makeDirty','_commandService','redoState','arc','collabStatus.fetchMiss','_applyCommand','_config','APPLY_REJECT','split','debug','post','_collaborationUIEventService','session.will-retry','UNAUTHENTICATED','getActiveSheet','column','registerRefRange','_docSyncEditingCollabCursorService','entries','_colorIndex','setTimeout','defs','_getMergeRange','use','_hovered','get','send','setConfig','LICENSE_MAX_UNITS_EXCEEDED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_onCursorUpdate','MOBILE_HAS_BEEN_BOUND','complete','SOCKET_FAILED','_disabled','deepClone','_collaborationController','push','CHANGESET_REVISION_CONFILICT','_transformHistoryAndStateStack','SOCKET_FAILED_RETRY','width','getRangePointData','ENSURE_SNAPSHOT_EXECUTION','_onRefRangeChange','/universer-api/license/formula/limit/status','0\x200\x2016\x2016','onStarting','symbol','REDEMPTION_INVALID_CODE','_entities','_heartbeatTimer','FromArray','getMergeData','getParam','pushState','getCollabEntity$','catch','univer-flex\x20univer-items-center','unitId','_setupBeforeClosingHandler','428256lUWHyt','_initStatusListener','string','ENTITLE_INSUFFICIENT_QUOTA','PAYMENT_CHANNEL_NOT_SUPPORT','triggerDblclick','subUnitId','getMember','setShapeProps','_docTransformIMECacheService','eventID','LICENSE_IMPORT_SIZE_EXCEEDED','colno','parse','_toggleOffline','_getSessionTicket','_render','_cachedData','releaseFormulaLimitUrl','currentUsage','replace','_registerDependencies','_initUnhandledRejectionListener','setParam','_online','_dataLoaderService','getCellMatrix','_docClipboardService','unload','cursorInfo','save','_selfUnitIDs','m2Prime','_assignedColors','_collabCursorController','UNIVER_DOC','findNodePositionByCharIndex','_refreshCollabCursors','rgba(255,\x20255,\x20255,\x200.01)','exhaustSavingTask','INVITE_CODE_ALREADY_BOUND','_hover','Loading','permission.title','data','removeEventListener','_entityInit$','children','getValue','toString','flatMap','_cursor','_uploadLog','_document','syncEditingCollabCursor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','type','on-line-icon_clip0_910_349','CLOSE_ROOM','subscribe','1357223IXvtvD','8fdqMyO','UNIVER_SHEET','_cursorInfo$','has','_scheduleClearOtherTimer','START_CALCULATION','getCollabCursors$','TOO_MANY_REQUESTS','collabStatus.synced','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_textBubble','getCurrentRevOfUnit','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_initDependencies','labelPosition','#FFF','createSocket','size','next','ranges','onPointerMove$','_imageIoService','_univerInstanceService','getUnitStatus$','uni.network.url-service','collab-rect-range-','error','INVITE_CODE_HAS_BEEN_UES','_registerRenderDependencies','assign','USER_IS_ANONYMOUS','getSheetId','from','_configService','USER_NOT_INVITED_CODE','formula.calculation.started','dispose$','toRgbString','onCommandExecuted','xlink:href','idSuffix','_anchorDot','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'];_0x4774=function(){return _0x13a107;};return _0x4774();}dt=Fn([Ae(0x0,_0x2505af),Ae(0x1,_0x17dbc2(_0x3670ce)),Ae(0x2,_0x1c36ce)],dt);const St=0x7530,mt=_0x2ad37e(0x39f);class rr extends _0x58948b{constructor(){const _0x2c794a=_0x2ad37e;super(),_(this,_0x2c794a(0x2dd),_0x27bf30()),_(this,_0x2c794a(0x1f9),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x2c794a(0x1d0),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x2c794a(0x381),new Map()),this[_0x2c794a(0x3ad)]();}['dispose'](){const _0x1ce7d7=_0x2ad37e;super[_0x1ce7d7(0x382)](),this[_0x1ce7d7(0x2b1)][_0x1ce7d7(0x3bd)]((_0x40ad6d,_0x40419f)=>this[_0x1ce7d7(0x301)](_0x40419f)),this['_heartbeatTimer']&&window[_0x1ce7d7(0x19c)](this[_0x1ce7d7(0x1d0)]);}[_0x2ad37e(0x22e)](_0xe7225e){const _0x31d9cc=_0x2ad37e;return this[_0x31d9cc(0x353)](_0xe7225e)[_0x31d9cc(0x2cc)](_0x103a9e());}['editingUnit'](_0x441d93){const _0x3b1d72=_0x2ad37e;this['_selfUnitIDs'][_0x3b1d72(0x228)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3b1d72(0x1f9)][_0x3b1d72(0x350)](_0x441d93),this[_0x3b1d72(0x313)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x441d93],'isForwarded':!0x1});}[_0x2ad37e(0x31e)](_0x35b0a7){const _0x19646e=_0x2ad37e;this[_0x19646e(0x1f9)]['delete'](_0x35b0a7),this[_0x19646e(0x1f9)][_0x19646e(0x228)]===0x0&&this[_0x19646e(0x1d0)]&&window[_0x19646e(0x19c)](this[_0x19646e(0x1d0)]);}[_0x2ad37e(0x3ad)](){const _0x439ca0=_0x2ad37e;this['disposeWithMe'](_0x48616d(_0x50e66d(window,_0x439ca0(0x2d4))[_0x439ca0(0x215)](_0x41613b=>{const _0x27d923=_0x439ca0;if(_0x41613b[_0x27d923(0x34d)]!==mt||!_0x41613b[_0x27d923(0x2cf)])return;const _0x213764=JSON[_0x27d923(0x1e7)](_0x41613b[_0x27d923(0x2cf)]);this['_handleEvent'](_0x213764);}))),window[_0x439ca0(0x19a)](_0x439ca0(0x1f6),()=>this[_0x439ca0(0x313)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x439ca0(0x237)](this[_0x439ca0(0x1f9)])}));}[_0x2ad37e(0x390)](_0x615957){const _0x49c531=_0x2ad37e;switch(_0x615957['type']){case 0x0:this[_0x49c531(0x293)](_0x615957);break;case 0x1:this[_0x49c531(0x338)](_0x615957);break;case 0x2:this['_handleHeartbeatEvent'](_0x615957);break;}}[_0x2ad37e(0x293)](_0x377af8){const _0x4dc379=_0x2ad37e,{unitIDs:_0x1b6cae,memberID:_0xae0796,isForwarded:_0x2aa1f8}=_0x377af8;_0x1b6cae['forEach'](_0x27f847=>{const _0x2b17ef=_0x56fb;if(!_0x2aa1f8&&this[_0x2b17ef(0x32d)]['has'](_0x27f847)&&this[_0x2b17ef(0x353)](_0x27f847)['next'](_0x10d504[_0x2b17ef(0x303)]),!this[_0x2b17ef(0x32d)][_0x2b17ef(0x21a)](_0x27f847)||!this[_0x2b17ef(0x32d)][_0x2b17ef(0x1b6)](_0x27f847)[_0x2b17ef(0x21a)](_0xae0796)){const _0x43b537=this[_0x2b17ef(0x32d)][_0x2b17ef(0x1b6)](_0x27f847)||new Set();_0x43b537[_0x2b17ef(0x350)](_0xae0796),this[_0x2b17ef(0x32d)][_0x2b17ef(0x2fc)](_0x27f847,_0x43b537),this['_scheduleClearOtherTimer'](_0xae0796);}}),_0x2aa1f8||this[_0x4dc379(0x313)]({'type':0x0,'memberID':this[_0x4dc379(0x2dd)],'unitIDs':[...this[_0x4dc379(0x1f9)]],'isForwarded':!0x0});}[_0x2ad37e(0x21b)](_0x116df1){const _0x215199=_0x2ad37e;this[_0x215199(0x301)](_0x116df1);const _0x5d439d=window[_0x215199(0x1b1)](()=>{const _0x3750dc=_0x215199;this[_0x3750dc(0x32d)][_0x3750dc(0x3bd)](_0x45a15b=>{const _0x53a487=_0x3750dc;_0x45a15b[_0x53a487(0x258)](_0x116df1);});},St*0x2);this['_clearOtherTimers'][_0x215199(0x2fc)](_0x116df1,_0x5d439d);}[_0x2ad37e(0x301)](_0x518a1a){const _0x1573b6=_0x2ad37e;if(this[_0x1573b6(0x2b1)][_0x1573b6(0x21a)](_0x518a1a)){const _0x3bbf3a=this[_0x1573b6(0x2b1)]['get'](_0x518a1a);_0x3bbf3a&&window[_0x1573b6(0x38a)](_0x3bbf3a),this[_0x1573b6(0x2b1)]['set'](_0x518a1a,null);}}[_0x2ad37e(0x338)](_0x143e48){const _0x489680=_0x2ad37e,{memberID:_0x4ed51c,unitIDs:_0x43cc7c}=_0x143e48;_0x43cc7c['forEach'](_0x445f59=>{const _0x548a0b=_0x56fb;var _0x408aee;const _0x571980=this[_0x548a0b(0x32d)][_0x548a0b(0x1b6)](_0x445f59);_0x571980&&(_0x571980['delete'](_0x4ed51c),(_0x408aee=this[_0x548a0b(0x353)](_0x445f59))==null||_0x408aee[_0x548a0b(0x229)](_0x571980[_0x548a0b(0x228)]===0x0?_0x10d504[_0x548a0b(0x2e9)]:_0x10d504[_0x548a0b(0x303)]));}),this[_0x489680(0x301)](_0x4ed51c);}[_0x2ad37e(0x266)](_0x44be2d){const _0x2dda6a=_0x2ad37e;this[_0x2dda6a(0x21b)](_0x44be2d['memberID']);}['_send'](_0x43df4f){const _0xa2092a=_0x2ad37e;localStorage[_0xa2092a(0x259)](mt,JSON['stringify'](_0x43df4f));}['_scheduleHeartbeat'](){const _0x105ed9=_0x2ad37e;this[_0x105ed9(0x1d0)]=window['setInterval'](()=>{const _0x61d803=_0x105ed9;this[_0x61d803(0x313)]({'type':0x2,'memberID':this['_id']});},St);}[_0x2ad37e(0x353)](_0x396ef3){const _0x248a8c=_0x2ad37e;return this['_unitStatus'][_0x248a8c(0x21a)](_0x396ef3)||this[_0x248a8c(0x381)]['set'](_0x396ef3,new _0x434037(_0x10d504[_0x248a8c(0x2e9)])),this[_0x248a8c(0x381)][_0x248a8c(0x1b6)](_0x396ef3);}}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};