@univerjs-pro/collaboration-client-ui 0.10.11 → 0.10.12-nightly.202510221114

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 (49) 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/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +16 -16
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3504c5=_0x3f6f;(function(_0x4eb697,_0x5a599e){const _0x1146b7=_0x3f6f,_0x477e4c=_0x4eb697();while(!![]){try{const _0x2c5a49=parseInt(_0x1146b7(0x3d3))/0x1*(-parseInt(_0x1146b7(0x323))/0x2)+-parseInt(_0x1146b7(0x3bb))/0x3*(-parseInt(_0x1146b7(0x2a8))/0x4)+parseInt(_0x1146b7(0x275))/0x5+parseInt(_0x1146b7(0x37b))/0x6*(parseInt(_0x1146b7(0x227))/0x7)+-parseInt(_0x1146b7(0x3de))/0x8+-parseInt(_0x1146b7(0x379))/0x9*(parseInt(_0x1146b7(0x1ab))/0xa)+parseInt(_0x1146b7(0x234))/0xb;if(_0x2c5a49===_0x5a599e)break;else _0x477e4c['push'](_0x477e4c['shift']());}catch(_0xae4972){_0x477e4c['push'](_0x477e4c['shift']());}}}(_0x13f0,0x18f32));var kt=Object[_0x3504c5(0x359)],Ht=(_0x482a1c,_0x110a6d,_0x5011bf)=>_0x110a6d in _0x482a1c?kt(_0x482a1c,_0x110a6d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5011bf}):_0x482a1c[_0x110a6d]=_0x5011bf,_=(_0x2ec36f,_0x43f6e1,_0x1b1dfa)=>Ht(_0x2ec36f,typeof _0x43f6e1!=_0x3504c5(0x2f9)?_0x43f6e1+'':_0x43f6e1,_0x1b1dfa);import{jsx as _0x1bf90e,jsxs as _0x4b67ae}from'react/jsx-runtime';import{CollaborationStatus as _0x59f2be,CollaborationSessionService as _0x4e336e,CollaborationController as _0x4e7e15,DataLoaderService as _0x8ec34d,MemberService as _0x4cbb58,SessionStatus as _0x2298f4,ILocalCacheService as _0x55c362,CollaborationUIEventService as _0x291389,CollaborationUIEventId as _0x4435b4,DocCollaborationEntity as _0x4404c6,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3c0423,getLocalCacheKey as _0xb4d1e1,LOCAL_CACHE_INTERVAL as _0x46d03f,LOCAL_CACHE_INTERVAL_KEY as _0x43f6ef,UniverCollaborationClientPlugin as _0x22881b,CollaborationSocketService as _0x3d93bc,DEFAULT_WS_SESSION_TICKET_URL as _0x31c350,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x45cf52,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1e545f,UnitStatus as _0x38048c}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x21a3cc,IUniverInstanceService as _0x437d75,Inject as _0x13fac2,Injector as _0x4da47b,Disposable as _0x44caae,createIdentifier as _0x1db72c,ILogService as _0x3b520f,ICommandService as _0x378028,Optional as _0x20ad22,RxDisposable as _0x4dd7f6,Workbook as _0x172466,DOC_RANGE_TYPE as _0x2ff472,debounce as _0x47926c,Rectangle as _0x2a46cf,DisposableCollection as _0x42029c,toDisposable as _0x2576da,UniverInstanceType as _0x3d4d2c,generateRandomId as _0x144598,COLORS as _0x3312f1,ColorKit as _0x44319d,ThemeService as _0x2f412a,fromEventSubject as _0xc40dd,Tools as _0x267bed,CommandType as _0x441e2b,IConfigService as _0x10aea5,CanceledError as _0x4a6f3c,isFormulaString as _0x1fa515,isFormulaId as _0x315c33,ILocalStorageService as _0x3a9490,DependentOn as _0xc853a6,Plugin as _0xfc0127,merge as _0x27de3f,registerDependencies as _0x22a61d,mergeOverrideWithDependencies as _0x29e569,touchDependencies as _0x1e8471}from'@univerjs/core';import{useObservable as _0xfaff27,useDependency as _0x177251,IUIPartsService as _0x2adcc7,BuiltInUIPart as _0x186598,connectInjector as _0x42d200,IBeforeCloseService as _0x59ea3f,IMessageService as _0x1b730d,INotificationService as _0x540b4a}from'@univerjs/ui';import{BehaviorSubject as _0x1bb082,switchMap as _0x3ba0ae,of as _0x5943a5,takeUntil as _0xb04df5,debounceTime as _0x51621e,Subject as _0x5060b1,filter as _0x1db320,merge as _0x680757,combineLatest as _0x338b00,fromEvent as _0x18c819,shareReplay as _0x72b1f0,mapTo as _0x153ed4,distinctUntilChanged as _0x5a2f65}from'rxjs';import{Tooltip as _0x3a1b92,clsx as _0x1d78fd,MessageType as _0x520d9c}from'@univerjs/design';import{forwardRef as _0x41b5f7,useRef as _0xbc8706,createElement as _0x5593c4,useCallback as _0x4b2735}from'react';import{IRemoteInstanceService as _0x598a96}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x344768,RefRangeService as _0x1d2c90,SetSelectionsOperation as _0x225cd4,SheetsSelectionsService as _0x14ecb3,EffectRefRangId as _0x27ae65,handleIRemoveRow as _0x4a868d,handleIRemoveCol as _0x24566c,handleMoveRange as _0x538c2c,handleInsertRow as _0x8109a7,handleInsertRangeMoveRight as _0x4c8134,handleInsertRangeMoveDown as _0x3285a0,handleInsertCol as _0x204136,handleDeleteRangeMoveUp as _0x2dbc93,handleDeleteRangeMoveLeft as _0x449627,runRefRangeMutations as _0x13bbde}from'@univerjs/sheets';import{Shape as _0x3acd0c,Rect as _0x514da9,getColor as _0x486a87,RegularPolygon as _0x1556b3,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3128aa,Vector2 as _0x3199d6,SHEET_VIEWPORT_KEY as _0xd834fb,IRenderManagerService as _0x5dc693}from'@univerjs/engine-render';import{HTTPService as _0x59d0d5,ISocketService as _0x5af1a8,WebSocketService as _0x476d5f}from'@univerjs/network';import{IDocClipboardService as _0x1cec76,NodePositionConvertToCursor as _0x587060,NodePositionConvertToRectRange as _0x118b5f,TEXT_RANGE_LAYER_INDEX as _0x26f088,SetDocZoomRatioOperation as _0x42495b,DocIMEInputManagerService as _0x23034e,DocStateChangeManagerService as _0x48cc88}from'@univerjs/docs-ui';import{IImageIoService as _0x54d2a8}from'@univerjs/drawing';import{ITransformService as _0x3943ee,CollaborationEvent as _0xbf2684,isTransformMutationFailure as _0x45a2c4,isTransformMutationsWithChangesetSuccess as _0x5d4db3,RevisionService as _0x1fe514,ISnapshotServerService as _0xe8f155}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x5a1d5c,RichTextEditingMutation as _0xd909db,DocSelectionManagerService as _0x259657,DocSkeletonManagerService as _0x516f50}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4f5b3a,serializeRangeWithSheet as _0x48fa02,FormulaExecuteStageType as _0x41b0a9,FormulaExecutedStateType as _0x55b129,SetFormulaCalculationStartMutation as _0x4b0c98,SetFormulaCalculationNotificationMutation as _0x1d37ca}from'@univerjs/engine-formula';import{map as _0x43fad8,filter as _0x18ab68,throttleTime as _0x26bb7e,takeUntil as _0x3d85e9,switchMap as _0x1ed193}from'rxjs/operators';import{SheetSkeletonManagerService as _0x29be31,getCoordByCell as _0x5f53de,getSheetObject as _0x4d2825}from'@univerjs/sheets-ui';var g=function(){const _0x423ebf=_0x3504c5;return g=Object[_0x423ebf(0x1fa)]||function(_0x1b41b5){const _0x427a2c=_0x423ebf;for(var _0x56a127,_0x1b3f16=0x1,_0x2eef63=arguments[_0x427a2c(0x329)];_0x1b3f16<_0x2eef63;_0x1b3f16++){_0x56a127=arguments[_0x1b3f16];for(var _0x868370 in _0x56a127)Object[_0x427a2c(0x33c)][_0x427a2c(0x32a)][_0x427a2c(0x3a5)](_0x56a127,_0x868370)&&(_0x1b41b5[_0x868370]=_0x56a127[_0x868370]);}return _0x1b41b5;},g['apply'](this,arguments);},Ii=function(_0x1d9884,_0x2705b8){const _0x3c408b=_0x3504c5;var _0x9c8385={};for(var _0x55aeac in _0x1d9884)Object[_0x3c408b(0x33c)][_0x3c408b(0x32a)][_0x3c408b(0x3a5)](_0x1d9884,_0x55aeac)&&_0x2705b8[_0x3c408b(0x279)](_0x55aeac)<0x0&&(_0x9c8385[_0x55aeac]=_0x1d9884[_0x55aeac]);if(_0x1d9884!=null&&typeof Object['getOwnPropertySymbols']==_0x3c408b(0x310)){for(var _0x1d396f=0x0,_0x55aeac=Object[_0x3c408b(0x362)](_0x1d9884);_0x1d396f<_0x55aeac['length'];_0x1d396f++)_0x2705b8[_0x3c408b(0x279)](_0x55aeac[_0x1d396f])<0x0&&Object['prototype'][_0x3c408b(0x2dd)][_0x3c408b(0x3a5)](_0x1d9884,_0x55aeac[_0x1d396f])&&(_0x9c8385[_0x55aeac[_0x1d396f]]=_0x1d9884[_0x55aeac[_0x1d396f]]);}return _0x9c8385;},Xe=_0x41b5f7(function(_0x1f8caf,_0x2e246b){const _0x3916fa=_0x3504c5;var _0x679ce0=_0x1f8caf[_0x3916fa(0x3ca)],_0x3308d8=_0x1f8caf['id'],_0x1eb48f=_0x1f8caf['className'],_0x251498=_0x1f8caf[_0x3916fa(0x285)],_0x3e8105=Ii(_0x1f8caf,[_0x3916fa(0x3ca),'id',_0x3916fa(0x31a),_0x3916fa(0x285)]),_0x15e703=_0x3916fa(0x367)[_0x3916fa(0x298)](_0x3308d8,'\x20')[_0x3916fa(0x298)](_0x1eb48f||'')[_0x3916fa(0x1cf)](),_0x3fd528=_0xbc8706('_'[_0x3916fa(0x298)](Ei()));return Lt(_0x679ce0,''['concat'](_0x3308d8),{'defIds':_0x679ce0[_0x3916fa(0x284)],'idSuffix':_0x3fd528[_0x3916fa(0x1f4)]},g({'ref':_0x2e246b,'className':_0x15e703},_0x3e8105),_0x251498);});function Lt(_0xdec6cf,_0x2a1213,_0x308e4c,_0x2fe3ab,_0x4279db){const _0x3bb36e=_0x3504c5;return _0x5593c4(_0xdec6cf['tag'],g(g({'key':_0x2a1213},gi(_0xdec6cf,_0x308e4c,_0x4279db)),_0x2fe3ab),(vi(_0xdec6cf,_0x308e4c)['children']||[])[_0x3bb36e(0x3a8)](function(_0x352d51,_0x29eb7b){const _0x2733f0=_0x3bb36e;return Lt(_0x352d51,''[_0x2733f0(0x298)](_0x2a1213,'-')[_0x2733f0(0x298)](_0xdec6cf[_0x2733f0(0x288)],'-')['concat'](_0x29eb7b),_0x308e4c,void 0x0,_0x4279db);}));}function gi(_0x20d7c9,_0x2f90a5,_0x496ae3){const _0x82d082=_0x3504c5;var _0x595aee=g({},_0x20d7c9['attrs']);_0x496ae3!=null&&_0x496ae3['colorChannel1']&&_0x595aee['fill']===_0x82d082(0x38c)&&(_0x595aee[_0x82d082(0x396)]=_0x496ae3[_0x82d082(0x38c)]),_0x20d7c9[_0x82d082(0x288)]===_0x82d082(0x229)&&_0x595aee['id']&&(_0x595aee['id']=_0x595aee['id']+_0x2f90a5['idSuffix']),Object[_0x82d082(0x1bc)](_0x595aee)['forEach'](function(_0x1193cd){const _0x589163=_0x82d082;var _0x371cb5=_0x1193cd[0x0],_0x1e3669=_0x1193cd[0x1];_0x371cb5==='mask'&&typeof _0x1e3669==_0x589163(0x319)&&(_0x595aee[_0x371cb5]=_0x1e3669[_0x589163(0x1e8)](/url\(#(.*)\)/,'url(#$1'[_0x589163(0x298)](_0x2f90a5['idSuffix'],')')));});var _0x20e831=_0x2f90a5[_0x82d082(0x284)];return!_0x20e831||_0x20e831[_0x82d082(0x329)]===0x0||(_0x20d7c9[_0x82d082(0x288)]===_0x82d082(0x1a0)&&_0x595aee[_0x82d082(0x276)]&&(_0x595aee[_0x82d082(0x276)]=_0x595aee[_0x82d082(0x276)]+_0x2f90a5[_0x82d082(0x26f)]),Object['entries'](_0x595aee)[_0x82d082(0x3c9)](function(_0x2000e0){const _0x275663=_0x82d082;var _0x29c676=_0x2000e0[0x0],_0x594f4a=_0x2000e0[0x1];typeof _0x594f4a=='string'&&(_0x595aee[_0x29c676]=_0x594f4a[_0x275663(0x1e8)](/url\(#(.*)\)/,_0x275663(0x236)[_0x275663(0x298)](_0x2f90a5[_0x275663(0x26f)],')')));})),_0x595aee;}function vi(_0x4792da,_0x1154bf){const _0x314ed3=_0x3504c5;var _0x36b550,_0x4b63a1=_0x1154bf['defIds'];return!_0x4b63a1||_0x4b63a1[_0x314ed3(0x329)]===0x0?_0x4792da:_0x4792da[_0x314ed3(0x288)]===_0x314ed3(0x1f9)&&(!((_0x36b550=_0x4792da[_0x314ed3(0x35d)])===null||_0x36b550===void 0x0)&&_0x36b550[_0x314ed3(0x329)])?g(g({},_0x4792da),{'children':_0x4792da[_0x314ed3(0x35d)][_0x314ed3(0x3a8)](function(_0x57c8a0){const _0x1b021a=_0x314ed3;return typeof _0x57c8a0[_0x1b021a(0x246)]['id']==_0x1b021a(0x319)&&_0x4b63a1&&_0x4b63a1[_0x1b021a(0x240)](_0x57c8a0['attrs']['id'])?g(g({},_0x57c8a0),{'attrs':g(g({},_0x57c8a0[_0x1b021a(0x246)]),{'id':_0x57c8a0[_0x1b021a(0x246)]['id']+_0x1154bf[_0x1b021a(0x26f)]})}):_0x57c8a0;})}):_0x4792da;}function Ei(){const _0x50f1e6=_0x3504c5;return Math[_0x50f1e6(0x218)]()[_0x50f1e6(0x363)](0x24)['substring'](0x2,0x8);}Xe[_0x3504c5(0x1a2)]='UniverIcon';var pi={'tag':_0x3504c5(0x2f2),'attrs':{'xmlns':_0x3504c5(0x3a1),'fill':_0x3504c5(0x3c8),'viewBox':_0x3504c5(0x3b4),'width':_0x3504c5(0x272),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3504c5(0x225)},'children':[{'tag':'path','attrs':{'stroke':_0x3504c5(0x3d0),'d':_0x3504c5(0x1e4),'strokeLinecap':_0x3504c5(0x29e),'strokeLinejoin':_0x3504c5(0x29e),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3504c5(0x239),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x3504c5(0x2c0),'attrs':{'fill':'white','d':_0x3504c5(0x194)}}]}]}],'defIds':[_0x3504c5(0x309)]},Mt=_0x41b5f7(function(_0x31be92,_0x1aed35){const _0xbb10f0=_0x3504c5;return _0x5593c4(Xe,Object[_0xbb10f0(0x1fa)]({},_0x31be92,{'id':_0xbb10f0(0x322),'ref':_0x1aed35,'icon':pi}));});Mt['displayName']=_0x3504c5(0x311);var Oi={'tag':_0x3504c5(0x2f2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3504c5(0x34b),'width':'1em','height':_0x3504c5(0x272)},'children':[{'tag':'g','attrs':{'clipPath':_0x3504c5(0x271)},'children':[{'tag':_0x3504c5(0x2c0),'attrs':{'stroke':_0x3504c5(0x3d0),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x3504c5(0x29e),'strokeLinejoin':_0x3504c5(0x29e),'strokeWidth':1.2}}]},{'tag':_0x3504c5(0x1f9),'attrs':{},'children':[{'tag':_0x3504c5(0x239),'attrs':{'id':_0x3504c5(0x2f1)},'children':[{'tag':_0x3504c5(0x2c0),'attrs':{'fill':_0x3504c5(0x2cc),'d':_0x3504c5(0x194),'transform':_0x3504c5(0x37e)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},At=_0x41b5f7(function(_0xa2c43f,_0x4ed8d9){const _0x4c742a=_0x3504c5;return _0x5593c4(Xe,Object['assign']({},_0xa2c43f,{'id':_0x4c742a(0x21e),'ref':_0x4ed8d9,'icon':Oi}));});At[_0x3504c5(0x1a2)]=_0x3504c5(0x364);function Ti(_0x467b21){const _0x387347=_0x3504c5;switch(_0x467b21){case _0x59f2be[_0x387347(0x1c5)]:return _0x387347(0x1a3);case _0x59f2be[_0x387347(0x2bd)]:return _0x387347(0x27d);case _0x59f2be['FETCH_MISS']:return _0x387347(0x2ca);case _0x59f2be[_0x387347(0x217)]:return'collabStatus.notCollab';case _0x59f2be[_0x387347(0x34f)]:case _0x59f2be[_0x387347(0x2f8)]:return _0x387347(0x1be);case _0x59f2be[_0x387347(0x2b8)]:case _0x59f2be[_0x387347(0x254)]:return _0x387347(0x1e9);}}function Ci(_0x3cc4c4){const _0x4e9e90=_0x3504c5,{status$:_0x2314c0}=_0x3cc4c4,_0x13e13d=_0xfaff27(_0x2314c0,_0x59f2be[_0x4e9e90(0x217)]),_0x234b88=_0x177251(_0x21a3cc),_0x54f507=_0x177251(_0x4e336e),_0x17bd69=_0x13e13d!==_0x59f2be['OFFLINE'],_0x18d22b=_0x234b88['t'](Ti(_0x13e13d)),_0x5b49a5=_0x17bd69?_0x1bf90e(At,{}):_0x1bf90e(Mt,{}),_0x54ae55=_0x4b2735(()=>{_0x17bd69||_0x54f507['reconnect']();},[_0x17bd69,_0x54f507]);function _0x54f1de(){const _0x4c232e=_0x4e9e90;return _0x4b67ae(_0x4c232e(0x231),{'className':_0x4c232e(0x376),'onClick':_0x54ae55,'children':[_0x1bf90e('div',{'className':_0x1d78fd('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x17bd69,'univer-text-red-500':!_0x17bd69}),'children':_0x5b49a5}),_0x1bf90e(_0x4c232e(0x231),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x18d22b})]});}return _0x17bd69?_0x54f1de():_0x1bf90e(_0x3a1b92,{'title':_0x234b88['t'](_0x4e9e90(0x1af)),'children':_0x54f1de()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x5aee52,_0x514c15,_0x3502f3,_0x58a585)=>{const _0x3136f7=_0x3504c5;for(var _0xccf8b1=_0x58a585>0x1?void 0x0:_0x58a585?Ri(_0x514c15,_0x3502f3):_0x514c15,_0x3a39f4=_0x5aee52[_0x3136f7(0x329)]-0x1,_0x3f9414;_0x3a39f4>=0x0;_0x3a39f4--)(_0x3f9414=_0x5aee52[_0x3a39f4])&&(_0xccf8b1=_0x3f9414(_0xccf8b1)||_0xccf8b1);return _0xccf8b1;},ie=(_0x2d8544,_0x3a62cb)=>(_0x29dfa5,_0x417840)=>_0x3a62cb(_0x29dfa5,_0x417840,_0x2d8544);let ae=class extends _0x44caae{constructor(_0x70c5b1,_0x45e6f6,_0x2b8a1b,_0x34e827){const _0x400696=_0x3504c5;super(),_(this,_0x400696(0x2e1),new _0x1bb082(_0x59f2be[_0x400696(0x217)])),(this[_0x400696(0x1a8)]=_0x70c5b1,this['_injector']=_0x45e6f6,this[_0x400696(0x29b)]=_0x2b8a1b,this[_0x400696(0x21b)]=_0x34e827,this[_0x400696(0x1d5)](),this[_0x400696(0x39e)]());}[_0x3504c5(0x39e)](){const _0x209082=_0x3504c5;this[_0x209082(0x2fd)](this[_0x209082(0x1a8)][_0x209082(0x2c1)][_0x209082(0x37f)](_0x3ba0ae(()=>{const _0x4f6e88=_0x209082,_0x4b3d55=this['_univerInstanceService']['getFocusedUnit']();return _0x4b3d55?this['_collaborationController'][_0x4f6e88(0x249)](_0x4b3d55[_0x4f6e88(0x3cc)]()):_0x5943a5(null);}),_0x3ba0ae(_0x457e40=>_0x457e40?_0x457e40[_0x209082(0x1ea)]:_0x5943a5(_0x59f2be[_0x209082(0x217)])))[_0x209082(0x336)](_0x5ecb06=>{const _0x315a5b=_0x209082;this[_0x315a5b(0x2e1)][_0x315a5b(0x25d)](_0x5ecb06);}));}[_0x3504c5(0x1d5)](){const _0x520cf9=_0x3504c5;this[_0x520cf9(0x2fd)](this[_0x520cf9(0x21b)][_0x520cf9(0x3d7)](_0x186598[_0x520cf9(0x26b)],()=>_0x42d200(bi({'status$':this[_0x520cf9(0x2e1)]['asObservable']()}),this[_0x520cf9(0x23b)])));}};ae=Di([ie(0x0,_0x437d75),ie(0x1,_0x13fac2(_0x4da47b)),ie(0x2,_0x13fac2(_0x4e7e15)),ie(0x3,_0x2adcc7)],ae);function bi(_0x24648d){const {status$:_0x269058}=_0x24648d;return function(){return _0x1bf90e(Ci,{'status$':_0x269058});};}const Pt=_0x1db72c('uni.network.url-service');var Ni=Object[_0x3504c5(0x1c3)],Ui=(_0x1d49ae,_0x30a28a,_0x4ac0e6,_0x4ab03b)=>{const _0x4eb293=_0x3504c5;for(var _0x123b08=_0x4ab03b>0x1?void 0x0:_0x4ab03b?Ni(_0x30a28a,_0x4ac0e6):_0x30a28a,_0x553674=_0x1d49ae[_0x4eb293(0x329)]-0x1,_0x4aea4a;_0x553674>=0x0;_0x553674--)(_0x4aea4a=_0x1d49ae[_0x553674])&&(_0x123b08=_0x4aea4a(_0x123b08)||_0x123b08);return _0x123b08;},z=(_0x108d03,_0x267ee2)=>(_0x508aec,_0x32c3b2)=>_0x267ee2(_0x508aec,_0x32c3b2,_0x108d03);let ce=class extends _0x4dd7f6{constructor(_0x2d40bd,_0x579bd5,_0x18f72e,_0x907587,_0x50fde3){const _0x479c00=_0x3504c5;super(),this[_0x479c00(0x3ba)]=_0x2d40bd,this[_0x479c00(0x36b)]=_0x579bd5,this[_0x479c00(0x213)]=_0x18f72e,this[_0x479c00(0x3b7)]=_0x907587,_0x50fde3?_0x50fde3==null||_0x50fde3['whenReady']()['then'](()=>this['_init']()):(this[_0x479c00(0x36b)]['debug'](_0x479c00(0x1db),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x479c00(0x19b)]());}async[_0x3504c5(0x19b)](){const _0x21d1ea=_0x3504c5,_0x26dfef=this[_0x21d1ea(0x3ba)][_0x21d1ea(0x391)](_0x21d1ea(0x2a4)),_0x3797be=this['_urlService'][_0x21d1ea(0x391)](_0x21d1ea(0x201)),_0x2b7653=this['_urlService'][_0x21d1ea(0x391)](_0x21d1ea(0x2a2));if(!_0x26dfef||!_0x3797be){this[_0x21d1ea(0x36b)][_0x21d1ea(0x2f3)]('[CollaborationDataLoaderController]',_0x21d1ea(0x1b2));return;}const _0x4526aa=await this[_0x21d1ea(0x3b7)][_0x21d1ea(0x2aa)](_0x26dfef,Number(_0x3797be),_0x2b7653);_0x4526aa&&_0x4526aa instanceof _0x172466&&this[_0x21d1ea(0x1e2)](_0x4526aa);}async[_0x3504c5(0x1e2)](_0x1a07f3){const _0x3686d7=_0x3504c5;await this[_0x3686d7(0x340)](_0x1a07f3),_0x1a07f3[_0x3686d7(0x283)][_0x3686d7(0x37f)](_0xb04df5(this['dispose$']))[_0x3686d7(0x336)](_0x7c5b00=>{const _0x2b900f=_0x3686d7;_0x7c5b00&&this[_0x2b900f(0x316)](_0x7c5b00);}),this['_urlService'][_0x3686d7(0x220)]['pipe'](_0xb04df5(this['dispose$']))[_0x3686d7(0x336)](()=>this[_0x3686d7(0x340)](_0x1a07f3));}[_0x3504c5(0x316)](_0x99b1db,_0x17bd04=!0x1){const _0x4e481b=_0x3504c5,_0x5e6668=this['_urlService'][_0x4e481b(0x391)](_0x4e481b(0x2a2));_0x99b1db[_0x4e481b(0x25f)]()!==_0x5e6668&&this['_urlService']['setParam'](_0x4e481b(0x2a2),_0x99b1db['getSheetId'](),_0x17bd04);}async[_0x3504c5(0x340)](_0x17c72a){const _0x4834f3=_0x3504c5;var _0x1d4676;const _0x332b28=this['_urlService'][_0x4834f3(0x391)](_0x4834f3(0x2a2));if(!_0x332b28||!_0x17c72a['getSheetBySheetId'](_0x332b28)){const _0x5a7cef=_0x17c72a['getUnhiddenWorksheets']()[0x0],_0x15d7e6=_0x17c72a[_0x4834f3(0x1fd)](_0x5a7cef);if(!_0x15d7e6)return;this[_0x4834f3(0x316)](_0x15d7e6,!0x0),await this[_0x4834f3(0x213)]['executeCommand'](_0x344768['id'],{'unitId':_0x17c72a[_0x4834f3(0x3cc)](),'subUnitId':_0x5a7cef});return;}((_0x1d4676=_0x17c72a[_0x4834f3(0x2a7)]())==null?void 0x0:_0x1d4676[_0x4834f3(0x25f)]())!==_0x332b28&&await this['_commandService'][_0x4834f3(0x3a7)](_0x344768['id'],{'unitId':_0x17c72a[_0x4834f3(0x3cc)](),'subUnitId':_0x332b28});}};ce=Ui([z(0x0,Pt),z(0x1,_0x3b520f),z(0x2,_0x378028),z(0x3,_0x13fac2(_0x8ec34d)),z(0x4,_0x20ad22(_0x598a96))],ce);var Li=Object[_0x3504c5(0x1c3)],Mi=(_0x2e0cfc,_0x14a5d5,_0x1a98f6,_0x33f5ed)=>{const _0x226a2f=_0x3504c5;for(var _0x5b5276=_0x33f5ed>0x1?void 0x0:_0x33f5ed?Li(_0x14a5d5,_0x1a98f6):_0x14a5d5,_0x39a50e=_0x2e0cfc[_0x226a2f(0x329)]-0x1,_0xa6d187;_0x39a50e>=0x0;_0x39a50e--)(_0xa6d187=_0x2e0cfc[_0x39a50e])&&(_0x5b5276=_0xa6d187(_0x5b5276)||_0x5b5276);return _0x5b5276;},it=(_0x5f3dc9,_0x1e3120)=>(_0x23cd96,_0x1b5765)=>_0x1e3120(_0x23cd96,_0x1b5765,_0x5f3dc9);let Pe=class extends _0x4dd7f6{constructor(_0x26e2b8,_0x5bdf4f){const _0x591d8d=_0x3504c5;super(),this[_0x591d8d(0x19e)]=_0x26e2b8,this[_0x591d8d(0x2b1)]=_0x5bdf4f,this[_0x591d8d(0x19b)]();}[_0x3504c5(0x19b)](){const _0x5c908f=_0x3504c5,_0x47dce4=this;this[_0x5c908f(0x2fd)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x23c89c=>{const _0x40056d=_0x5c908f,_0x3fc2b8=await _0x47dce4['_imageIoService'][_0x40056d(0x1d1)](_0x23c89c);return _0x3fc2b8?{'source':_0x3fc2b8[_0x40056d(0x2f6)],'imageSourceType':_0x3fc2b8[_0x40056d(0x3cb)]}:null;}}));}};Pe=Mi([it(0x0,_0x1cec76),it(0x1,_0x54d2a8)],Pe);const nt=[_0x3504c5(0x358),_0x3504c5(0x2fe),_0x3504c5(0x2ac),_0x3504c5(0x386),_0x3504c5(0x38d),'yellow.400'];class Ge extends _0x44caae{constructor(){const _0x276b03=_0x3504c5;super(...arguments),_(this,_0x276b03(0x23d),new Map()),_(this,_0x276b03(0x3df),0x0);}[_0x3504c5(0x2a6)](_0x4cbf50){const _0x24e611=_0x3504c5;if(this[_0x24e611(0x23d)][_0x24e611(0x2db)](_0x4cbf50))return this[_0x24e611(0x23d)][_0x24e611(0x1c0)](_0x4cbf50);const _0x1eb5aa=nt[this[_0x24e611(0x3df)]];return this['_colorIndex']=(this[_0x24e611(0x3df)]+0x1)%nt[_0x24e611(0x329)],this[_0x24e611(0x23d)][_0x24e611(0x32b)](_0x4cbf50,_0x1eb5aa),_0x1eb5aa;}}function wt(_0x12f2ec){const _0x216b1d=_0x3504c5;let _0x576d3e='';for(const _0x5ead06 of _0x12f2ec){const {startOffset:_0x1fee87,endOffset:_0xf08c0d,isActive:_0x225a15,rangeType:_0xc56172,segmentId:_0x551a79,segmentPage:_0x506426}=_0x5ead06;_0x576d3e[_0x216b1d(0x329)]&&(_0x576d3e+=','),_0x576d3e+=_0x1fee87+':'+_0xf08c0d+':'+(_0x225a15?'1':'0')+':'+_0xc56172+':'+_0x551a79+':'+_0x506426;}return _0x576d3e;}function Ai(_0x340a77){const _0xbdc2be=_0x3504c5,_0x45916a=_0x340a77[_0xbdc2be(0x3b3)](','),_0x5ce8de=[];for(const _0x58b5e4 of _0x45916a){const [_0x10486c,_0x4e5170,_0x3993c2,_0x5df737,_0x8bc26,_0x1cbddc]=_0x58b5e4[_0xbdc2be(0x3b3)](':');_0x5ce8de[_0xbdc2be(0x2a3)]({'startOffset':Number(_0x10486c),'endOffset':Number(_0x4e5170),'collapsed':_0x10486c===_0x4e5170,'isActive':_0x3993c2==='1','rangeType':_0x5df737===_0x2ff472[_0xbdc2be(0x32d)]?_0x2ff472['TEXT']:_0x2ff472[_0xbdc2be(0x368)],'segmentId':typeof _0x8bc26==_0xbdc2be(0x319)?String(_0x8bc26):'','segmentPage':Number(_0x1cbddc!=null?_0x1cbddc:-0x1)});}return _0x5ce8de[_0xbdc2be(0x1e7)](_0x34f289=>_0x34f289[_0xbdc2be(0x1f5)])||(_0x5ce8de[0x0]['isActive']=!0x0),_0x5ce8de;}class Ke extends _0x4dd7f6{constructor(){const _0x48cfb4=_0x3504c5;super(...arguments),_(this,_0x48cfb4(0x30e),new _0x1bb082(null)),_(this,_0x48cfb4(0x1ae),this[_0x48cfb4(0x30e)]['asObservable']());}['syncEditingCollabCursor'](_0x8b74b4){const _0x414a8e=_0x3504c5,{unitID:_0x220d1a,memberID:_0x4dd9c0,textRanges:_0x343f62}=_0x8b74b4,_0x20c1b2=wt(_0x343f62);if(_0x20c1b2==='')return;const _0x29cd89={'unitID':_0x220d1a,'memberID':_0x4dd9c0,'selection':_0x20c1b2};this[_0x414a8e(0x30e)][_0x414a8e(0x25d)](_0x29cd89);}}var Pi=Object[_0x3504c5(0x1c3)],wi=(_0x1e8fb3,_0x57b5a5,_0x5c8907,_0x582346)=>{const _0xc07b0=_0x3504c5;for(var _0x136265=_0x582346>0x1?void 0x0:_0x582346?Pi(_0x57b5a5,_0x5c8907):_0x57b5a5,_0x2818ef=_0x1e8fb3[_0xc07b0(0x329)]-0x1,_0x4039cd;_0x2818ef>=0x0;_0x2818ef--)(_0x4039cd=_0x1e8fb3[_0x2818ef])&&(_0x136265=_0x4039cd(_0x136265)||_0x136265);return _0x136265;},P=(_0x46e6da,_0x524e21)=>(_0xf815f9,_0x5718c3)=>_0x524e21(_0xf815f9,_0x5718c3,_0x46e6da);const yi=0x12c,$i=0x64;let we=class extends _0x4dd7f6{constructor(_0x5281b9,_0x4f4f70,_0x259f5d,_0x2cd4f7,_0x1f06d6,_0xe84a8b,_0x53e916,_0xe8bd6e,_0x33ca59){const _0x4bf768=_0x3504c5;super(),_(this,'_online',!0x1),_(this,_0x4bf768(0x19b),!0x1),_(this,_0x4bf768(0x20a),new _0x1bb082(new Map())),_(this,_0x4bf768(0x22a),this[_0x4bf768(0x20a)]['asObservable']()),_(this,_0x4bf768(0x1cc),new _0x1bb082([])),_(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x51621e(yi))),_(this,_0x4bf768(0x195),_0x47926c(_0x1cbe54=>{const _0x33ee07=_0x4bf768,_0x27b953={'eventID':_0xbf2684[_0x33ee07(0x301)],'data':{'unitID':this['unitID'],'memberID':this[_0x33ee07(0x3bf)][_0x33ee07(0x345)](),'selection':wt(_0x1cbe54)}};this['_session']['send'](_0x27b953,this['unitID']);},$i)),(this[_0x4bf768(0x267)]=_0x5281b9,this[_0x4bf768(0x3bf)]=_0x4f4f70,this[_0x4bf768(0x23b)]=_0x259f5d,this[_0x4bf768(0x248)]=_0x2cd4f7,this[_0x4bf768(0x3a2)]=_0x1f06d6,this[_0x4bf768(0x2d1)]=_0xe84a8b,this[_0x4bf768(0x21d)]=_0x53e916,this[_0x4bf768(0x1a8)]=_0xe8bd6e,this[_0x4bf768(0x213)]=_0x33ca59);}get[_0x3504c5(0x38f)](){const _0x28991c=_0x3504c5;return this[_0x28991c(0x20a)]['getValue']();}get['roomMembers'](){const _0x2f7a30=_0x3504c5;return this[_0x2f7a30(0x1cc)][_0x2f7a30(0x320)]();}['dispose'](){const _0x4bc037=_0x3504c5;super[_0x4bc037(0x24a)](),this[_0x4bc037(0x20a)][_0x4bc037(0x25d)](new Map()),this[_0x4bc037(0x20a)][_0x4bc037(0x3c6)](),this[_0x4bc037(0x1cc)][_0x4bc037(0x25d)]([]),this['_roomMembers$'][_0x4bc037(0x3c6)]();}[_0x3504c5(0x2ff)](){const _0x1b41fe=_0x3504c5;this[_0x1b41fe(0x19b)]||(this[_0x1b41fe(0x19b)]=!0x0,this[_0x1b41fe(0x3bf)][_0x1b41fe(0x1d2)][_0x1b41fe(0x37f)](_0xb04df5(this[_0x1b41fe(0x21c)]))[_0x1b41fe(0x336)](_0x5c0d9c=>{const _0x57dd7d=_0x1b41fe;_0x5c0d9c===_0x2298f4['ONLINE']?this[_0x57dd7d(0x2bf)]():this['_toggleOffline']();}),this[_0x1b41fe(0x3bf)][_0x1b41fe(0x206)][_0x1b41fe(0x37f)](_0xb04df5(this[_0x1b41fe(0x21c)]))[_0x1b41fe(0x336)](_0x3a7bd8=>{const _0x3e01a2=_0x1b41fe,_0x5811ab=_0x3a7bd8[_0x3e01a2(0x28f)];_0x5811ab===_0xbf2684[_0x3e01a2(0x301)]&&this[_0x3e01a2(0x1c9)](_0x3a7bd8),_0x5811ab===_0xbf2684[_0x3e01a2(0x3bc)]&&this[_0x3e01a2(0x369)](_0x3a7bd8);}),this['disposeWithMe'](this[_0x1b41fe(0x213)][_0x1b41fe(0x383)](_0x387246=>{const _0xf2115a=_0x1b41fe,_0x59f7ab=_0x387246['params'];_0x59f7ab!=null&&this[_0xf2115a(0x1e5)]&&_0x387246['id']===_0x5a1d5c['id']&&_0x59f7ab[_0xf2115a(0x1f0)]===this['unitID']&&_0x59f7ab[_0xf2115a(0x24d)]===!0x1&&_0x59f7ab[_0xf2115a(0x1ed)][_0xf2115a(0x329)]>0x0&&this[_0xf2115a(0x195)](_0x59f7ab['ranges']);})),this[_0x1b41fe(0x2d1)][_0x1b41fe(0x1ae)][_0x1b41fe(0x37f)](_0xb04df5(this[_0x1b41fe(0x21c)]))[_0x1b41fe(0x336)](_0x241fc4=>{const _0x40cc46=_0x1b41fe;if((_0x241fc4==null?void 0x0:_0x241fc4['unitID'])!==this[_0x40cc46(0x267)])return;const _0x4c1ca9={'eventID':_0xbf2684['UPDATE_CURSOR'],'data':_0x241fc4};this['_onCursorUpdate'](_0x4c1ca9);}),this[_0x1b41fe(0x2fd)](this[_0x1b41fe(0x213)]['onCommandExecuted'](_0x3c57c4=>{const _0x1f57d2=_0x1b41fe;if(_0x3c57c4[_0x1f57d2(0x380)]==null)return;const _0x55807c=_0x3c57c4['params'];if(_0x3c57c4['id']!==_0xd909db['id']||_0x55807c[_0x1f57d2(0x1f0)]!==this[_0x1f57d2(0x267)])return;const _0x515fb8={'id':'doc.mutation.rich-text-editing','params':_0x55807c},_0xb64749=this[_0x1f57d2(0x38f)];for(const [_0x53a28c,_0x469383]of _0xb64749){const _0x3eca29={'id':_0x1f57d2(0x221),'params':{'unitId':this[_0x1f57d2(0x267)],'actions':null,'textRanges':_0x469383[_0x1f57d2(0x1ed)]}},_0x172b98=this[_0x1f57d2(0x21d)]['transformMutation'](_0x515fb8,_0x3eca29,!0x1);if(_0x45a2c4(_0x172b98))throw _0x172b98[_0x1f57d2(0x1b1)];_0xb64749[_0x1f57d2(0x32b)](_0x53a28c,{..._0x469383,'ranges':_0x172b98[_0x1f57d2(0x23e)][_0x1f57d2(0x380)][_0x1f57d2(0x204)]});}queueMicrotask(()=>{const _0x16fadd=_0x1f57d2;this[_0x16fadd(0x20a)][_0x16fadd(0x25d)](_0xb64749);});})));}[_0x3504c5(0x1c9)](_0xbdffcc){const _0x414190=_0x3504c5;var _0x7f42ce,_0x1881ae;const {memberID:_0x4cc056,selection:_0x571636}=_0xbdffcc[_0x414190(0x370)],_0x41e3b4=Ai(_0x571636),_0x521551=(_0x1881ae=(_0x7f42ce=this['_memberService'][_0x414190(0x394)](this[_0x414190(0x267)],_0x4cc056))==null?void 0x0:_0x7f42ce['name'])!=null?_0x1881ae:_0x414190(0x192),_0x558944={'color':this['_colorAssignService'][_0x414190(0x2a6)](_0x4cc056),'name':_0x521551,'ranges':_0x41e3b4},_0x51ffe2=this[_0x414190(0x38f)];_0x51ffe2[_0x414190(0x32b)](_0x4cc056,_0x558944),this[_0x414190(0x20a)][_0x414190(0x25d)](_0x51ffe2);}[_0x3504c5(0x369)](_0x35c98b){const _0x370795=_0x3504c5,{memberID:_0x593ed3}=_0x35c98b[_0x370795(0x370)],_0x35426f=this[_0x370795(0x38f)];_0x35426f[_0x370795(0x312)](_0x593ed3),this[_0x370795(0x20a)][_0x370795(0x25d)](_0x35426f);}['_toggleOnline'](){const _0x18b90c=_0x3504c5;var _0x3b75a9;if(this[_0x18b90c(0x1e5)]=!0x0,((_0x3b75a9=this[_0x18b90c(0x1a8)][_0x18b90c(0x1c4)]())==null?void 0x0:_0x3b75a9[_0x18b90c(0x3cc)]())!==this[_0x18b90c(0x267)])return;const _0x2d207b=this['_injector'][_0x18b90c(0x1c0)](_0x259657)['getDocRanges']();Array[_0x18b90c(0x1d8)](_0x2d207b)&&_0x2d207b[_0x18b90c(0x329)]>0x0&&this[_0x18b90c(0x195)](_0x2d207b);}[_0x3504c5(0x35b)](){const _0x35a763=_0x3504c5;this[_0x35a763(0x1e5)]=!0x1;}};we=wi([P(0x2,_0x13fac2(_0x4da47b)),P(0x3,_0x13fac2(Ge)),P(0x4,_0x13fac2(_0x4cbb58)),P(0x5,_0x13fac2(Ke)),P(0x6,_0x3943ee),P(0x7,_0x437d75),P(0x8,_0x378028)],we);var xi=Object[_0x3504c5(0x1c3)],Bi=(_0x392534,_0x19a127,_0x5be377,_0x3dc1ed)=>{for(var _0x209140=_0x3dc1ed>0x1?void 0x0:_0x3dc1ed?xi(_0x19a127,_0x5be377):_0x19a127,_0x3740fa=_0x392534['length']-0x1,_0x30877a;_0x3740fa>=0x0;_0x3740fa--)(_0x30877a=_0x392534[_0x3740fa])&&(_0x209140=_0x30877a(_0x209140)||_0x209140);return _0x209140;},F=(_0x409f27,_0x3eeeea)=>(_0x556f73,_0x488047)=>_0x3eeeea(_0x556f73,_0x488047,_0x409f27);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x65b8c4=[],_0x19bc0e=!0x1;return _0xa29ae9=>{_0x65b8c4['push'](_0xa29ae9),_0x19bc0e||(_0x19bc0e=!0x0,setTimeout(()=>{const _0x24e74e=_0x3f6f;_0x65b8c4[_0x24e74e(0x3c9)](_0x56a741=>_0x56a741()),_0x65b8c4=[],_0x19bc0e=!0x1;}));};};let ye=class extends _0x4dd7f6{constructor(_0x2088c1,_0xe57155,_0x48cc79,_0x5e5796,_0x4facc5,_0x2a9ef6,_0x55f798,_0x593a60){const _0x4a3ffe=_0x3504c5;super(),_(this,'_online',!0x1),_(this,_0x4a3ffe(0x19b),!0x1),_(this,'_cursorInfo$',new _0x1bb082(new Map())),_(this,_0x4a3ffe(0x22a),this[_0x4a3ffe(0x20a)][_0x4a3ffe(0x395)]()),_(this,_0x4a3ffe(0x1cc),new _0x1bb082([])),_(this,_0x4a3ffe(0x2a9),this[_0x4a3ffe(0x1cc)][_0x4a3ffe(0x37f)](_0x51621e(Fi))),_(this,'_updateLocalCursor',_0x47926c((_0x16742d,_0x1141e5)=>{const _0xaccc=_0x4a3ffe,_0x4ff9b6={'eventID':_0xbf2684[_0xaccc(0x301)],'data':{'unitID':this[_0xaccc(0x267)],'memberID':this[_0xaccc(0x3bf)][_0xaccc(0x345)](),'selection':_0x48fa02(_0x16742d,_0x1141e5[_0xaccc(0x2ce)])}};this[_0xaccc(0x3bf)][_0xaccc(0x3c2)](_0x4ff9b6,this[_0xaccc(0x267)]);},ki)),(this[_0x4a3ffe(0x267)]=_0x2088c1,this[_0x4a3ffe(0x3bf)]=_0xe57155,this['_injector']=_0x48cc79,this[_0x4a3ffe(0x248)]=_0x5e5796,this[_0x4a3ffe(0x3a2)]=_0x4facc5,this[_0x4a3ffe(0x1a8)]=_0x2a9ef6,this[_0x4a3ffe(0x213)]=_0x55f798,this[_0x4a3ffe(0x3ac)]=_0x593a60);}get[_0x3504c5(0x38f)](){const _0x573f32=_0x3504c5;return this['_cursorInfo$'][_0x573f32(0x320)]();}get['roomMembers'](){const _0x45aa05=_0x3504c5;return this[_0x45aa05(0x1cc)][_0x45aa05(0x320)]();}['dispose'](){const _0x3959c0=_0x3504c5;super['dispose'](),this[_0x3959c0(0x20a)]['next'](new Map()),this[_0x3959c0(0x20a)][_0x3959c0(0x3c6)](),this[_0x3959c0(0x1cc)]['next']([]),this['_roomMembers$'][_0x3959c0(0x3c6)]();}[_0x3504c5(0x2ff)](){const _0x229985=_0x3504c5;this[_0x229985(0x19b)]||(this[_0x229985(0x19b)]=!0x0,this['_session']['sessionStatus$'][_0x229985(0x37f)](_0xb04df5(this['dispose$']))[_0x229985(0x336)](_0x32b561=>{const _0x3d0d47=_0x229985;_0x32b561===_0x2298f4[_0x3d0d47(0x243)]?this['_toggleOnline']():this[_0x3d0d47(0x35b)]();}),this['_session'][_0x229985(0x206)][_0x229985(0x37f)](_0xb04df5(this['dispose$']))[_0x229985(0x336)](_0x27ceba=>{const _0x5aa281=_0x229985,_0x44ee05=_0x27ceba[_0x5aa281(0x28f)];_0x44ee05===_0xbf2684[_0x5aa281(0x301)]&&this[_0x5aa281(0x1c9)](_0x27ceba),_0x44ee05===_0xbf2684[_0x5aa281(0x3bc)]&&this[_0x5aa281(0x369)](_0x27ceba);}),this['_onRefRangeChange'](),this[_0x229985(0x2fd)](this[_0x229985(0x213)][_0x229985(0x383)](_0x310212=>{const _0x277c8b=_0x229985;if(this['_online']&&_0x310212['id']===_0x225cd4['id']&&_0x310212[_0x277c8b(0x380)][_0x277c8b(0x1f0)]===this[_0x277c8b(0x267)]){const _0x494c44=_0x310212[_0x277c8b(0x380)];this[_0x277c8b(0x195)](_0x494c44[_0x277c8b(0x3ab)],_0x494c44[_0x277c8b(0x29a)][0x0]);}})));}[_0x3504c5(0x1c9)](_0x225c03){const _0x20b668=_0x3504c5;var _0x378c24,_0x447f68;const {memberID:_0x5e74b1,selection:_0x83216a}=_0x225c03[_0x20b668(0x370)],{sheetName:_0x225b42,range:_0x17ba9f}=_0x4f5b3a(_0x83216a),_0x5e11ba={'name':(_0x447f68=(_0x378c24=this[_0x20b668(0x3a2)][_0x20b668(0x394)](this['unitID'],_0x5e74b1))==null?void 0x0:_0x378c24['name'])!=null?_0x447f68:_0x20b668(0x192),'range':this[_0x20b668(0x2e8)](_0x225b42,_0x17ba9f),'sheetID':_0x225b42,'color':this[_0x20b668(0x248)][_0x20b668(0x2a6)](_0x5e74b1),'selection':_0x83216a},_0x187be9=this[_0x20b668(0x38f)];_0x187be9['set'](_0x5e74b1,_0x5e11ba),this[_0x20b668(0x20a)][_0x20b668(0x25d)](_0x187be9);}['_onCursorDelete'](_0x33a8e3){const _0x37cd07=_0x3504c5,{memberID:_0x1265ca}=_0x33a8e3['data'],_0x2e084c=this[_0x37cd07(0x38f)];_0x2e084c[_0x37cd07(0x312)](_0x1265ca),this['_cursorInfo$'][_0x37cd07(0x25d)](_0x2e084c);}[_0x3504c5(0x2e8)](_0x1628a4,_0x8627ea){const _0x4715f9=_0x3504c5;var _0x1bee4a,_0x2e54ef;const _0x4abbe5=(_0x2e54ef=(_0x1bee4a=this['_univerInstanceService'][_0x4715f9(0x2e5)](this['unitID']))==null?void 0x0:_0x1bee4a[_0x4715f9(0x1fd)](_0x1628a4))==null?void 0x0:_0x2e54ef['getMergeData']();return(_0x4abbe5==null?void 0x0:_0x4abbe5[_0x4715f9(0x1c6)](_0x3ad096=>_0x2a46cf[_0x4715f9(0x202)](_0x3ad096,_0x8627ea)))||_0x8627ea;}[_0x3504c5(0x39c)](){const _0x258843=_0x3504c5,_0x2a539b=new _0x42029c(),_0x3e2a1f=Hi(),_0x2e5bd7=()=>{const _0x30fdca=_0x3f6f;_0x2a539b[_0x30fdca(0x24a)]();const _0x1e70f4=(_0x58fe84,_0x21e9c9,_0x4d1ad3,_0x5aae87)=>{const _0x1a8290=_0x30fdca;let _0x2dda4b=[];switch(_0x58fe84['id']){case _0x27ae65[_0x1a8290(0x1e1)]:{_0x2dda4b=_0x449627(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x2c5)]:{_0x2dda4b=_0x2dbc93(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x3a4)]:{_0x2dda4b=_0x204136(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x2e4)]:{_0x2dda4b=_0x3285a0(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x372)]:{_0x2dda4b=_0x4c8134(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x328)]:{_0x2dda4b=_0x8109a7(_0x58fe84,_0x5aae87);break;}case _0x27ae65[_0x1a8290(0x21f)]:{_0x2dda4b=_0x538c2c(_0x58fe84,_0x5aae87);break;}case _0x27ae65['RemoveColCommandId']:{_0x2dda4b=_0x24566c(_0x58fe84,_0x5aae87);break;}case _0x27ae65['RemoveRowCommandId']:{_0x2dda4b=_0x4a868d(_0x58fe84,_0x5aae87);break;}}const _0x2e6c93=_0x13bbde(_0x2dda4b,_0x5aae87),_0x10231b=this[_0x1a8290(0x38f)][_0x1a8290(0x1c0)](_0x21e9c9);if(_0x10231b&&_0x2e6c93){const _0x27e699={..._0x10231b,'range':_0x2e6c93};this[_0x1a8290(0x38f)][_0x1a8290(0x32b)](_0x21e9c9,_0x27e699),_0x3e2a1f(()=>{const _0x5846d6=_0x1a8290,_0x11742d=this[_0x5846d6(0x3ac)][_0x5846d6(0x375)](_0x2e6c93,_0x294aba=>(_0x11742d[_0x5846d6(0x24a)](),_0x1e70f4(_0x294aba,_0x21e9c9,_0x4d1ad3,_0x2e6c93)));_0x2a539b[_0x5846d6(0x314)](_0x11742d);});}return{'redos':[],'undos':[]};};this[_0x30fdca(0x38f)][_0x30fdca(0x3c9)]((_0xb523c8,_0x444cff)=>{const _0x4e7973=_0x30fdca,{range:_0x495b6a,sheetID:_0x28c3f3}=_0xb523c8,_0x116b14=this['_refRangeService'][_0x4e7973(0x375)](_0x495b6a,_0x329a36=>(_0x116b14[_0x4e7973(0x24a)](),_0x1e70f4(_0x329a36,_0x444cff,_0x28c3f3,_0x495b6a)));_0x2a539b[_0x4e7973(0x314)](_0x116b14);});};this[_0x258843(0x2fd)](_0x2576da(this[_0x258843(0x20a)][_0x258843(0x336)](()=>{_0x2e5bd7();})));}[_0x3504c5(0x2bf)](){const _0x93dc9e=_0x3504c5;var _0x241491,_0xcc41cf;if(this[_0x93dc9e(0x1e5)]=!0x0,((_0x241491=this[_0x93dc9e(0x1a8)]['getFocusedUnit']())==null?void 0x0:_0x241491['getUnitId']())!==this['unitID'])return;const _0x1a4637=(_0xcc41cf=this['_injector'][_0x93dc9e(0x1c0)](_0x14ecb3)[_0x93dc9e(0x216)]())==null?void 0x0:_0xcc41cf[0x0],_0x1c62ee=this[_0x93dc9e(0x1a8)][_0x93dc9e(0x289)](_0x3d4d2c['UNIVER_SHEET'])['getActiveSheet']();_0x1a4637&&_0x1c62ee&&this[_0x93dc9e(0x195)](_0x1c62ee[_0x93dc9e(0x25f)](),_0x1a4637);}['_toggleOffline'](){const _0x29dc39=_0x3504c5;this[_0x29dc39(0x1e5)]=!0x1;}};ye=Bi([F(0x2,_0x13fac2(_0x4da47b)),F(0x3,_0x13fac2(Ge)),F(0x4,_0x13fac2(_0x4cbb58)),F(0x5,_0x437d75),F(0x6,_0x378028),F(0x7,_0x13fac2(_0x1d2c90))],ye);var Yi=Object[_0x3504c5(0x1c3)],Wi=(_0x1d173a,_0x241d7b,_0xeec901,_0x4ca1cb)=>{const _0x414f39=_0x3504c5;for(var _0x21ddde=_0x4ca1cb>0x1?void 0x0:_0x4ca1cb?Yi(_0x241d7b,_0xeec901):_0x241d7b,_0x30ccda=_0x1d173a[_0x414f39(0x329)]-0x1,_0x3b4fb8;_0x30ccda>=0x0;_0x30ccda--)(_0x3b4fb8=_0x1d173a[_0x30ccda])&&(_0x21ddde=_0x3b4fb8(_0x21ddde)||_0x21ddde);return _0x21ddde;},pe=(_0x7be19d,_0x31d240)=>(_0x102ad4,_0xb52865)=>_0x31d240(_0x102ad4,_0xb52865,_0x7be19d);let Y=class extends _0x4dd7f6{constructor(_0xfb5afa,_0x5894f2,_0x1e16ba){const _0x16d380=_0x3504c5;super(),_(this,_0x16d380(0x388),new Map()),_(this,_0x16d380(0x35e),new _0x5060b1()),(this['_univerInstanceService']=_0xfb5afa,this[_0x16d380(0x23b)]=_0x5894f2,this[_0x16d380(0x27e)]=_0x1e16ba,this[_0x16d380(0x19b)]());}[_0x3504c5(0x24a)](){const _0x25025d=_0x3504c5;super[_0x25025d(0x24a)](),this[_0x25025d(0x35e)][_0x25025d(0x3c6)](),this[_0x25025d(0x388)][_0x25025d(0x3c9)](_0x30adb5=>_0x30adb5[_0x25025d(0x24a)]());}[_0x3504c5(0x1f3)](_0x3d3665){const _0x2693c9=_0x3504c5;return this[_0x2693c9(0x388)][_0x2693c9(0x2db)](_0x3d3665)?this[_0x2693c9(0x388)][_0x2693c9(0x1c0)](_0x3d3665)[_0x2693c9(0x22a)]:this[_0x2693c9(0x35e)]['pipe'](_0x1db320(_0x24efd9=>_0x24efd9[_0x2693c9(0x267)]===_0x3d3665),_0x3ba0ae(_0x1af308=>_0x1af308[_0x2693c9(0x22a)]));}[_0x3504c5(0x19b)](){const _0x33461a=_0x3504c5;this[_0x33461a(0x1a8)][_0x33461a(0x35c)](_0x3d4d2c['UNIVER_SHEET'])[_0x33461a(0x37f)](_0xb04df5(this['dispose$']))[_0x33461a(0x336)](async _0x449966=>{const _0x40b923=_0x33461a,_0x50fcf9=_0x449966[_0x40b923(0x3cc)](),_0x249b39=await this['_startSheetCollabCursor'](_0x50fcf9);this[_0x40b923(0x35e)][_0x40b923(0x25d)](_0x249b39),this[_0x40b923(0x388)][_0x40b923(0x32b)](_0x50fcf9,_0x249b39);}),this[_0x33461a(0x1a8)][_0x33461a(0x35c)](_0x3d4d2c[_0x33461a(0x34e)])[_0x33461a(0x37f)](_0xb04df5(this[_0x33461a(0x21c)]))[_0x33461a(0x37f)](_0x1db320(_0x11eabf=>!_0x11eabf[_0x33461a(0x3cc)]()[_0x33461a(0x3c4)]('__')))[_0x33461a(0x336)](async _0x537cf1=>{const _0xc68926=_0x33461a,_0x55d265=_0x537cf1['getUnitId'](),_0x4d972c=await this[_0xc68926(0x297)](_0x55d265);this[_0xc68926(0x35e)][_0xc68926(0x25d)](_0x4d972c),this['_entities'][_0xc68926(0x32b)](_0x55d265,_0x4d972c);}),_0x680757(this[_0x33461a(0x1a8)][_0x33461a(0x1bd)](_0x3d4d2c[_0x33461a(0x34e)]),this[_0x33461a(0x1a8)][_0x33461a(0x1bd)](_0x3d4d2c[_0x33461a(0x3dc)]))[_0x33461a(0x37f)](_0xb04df5(this[_0x33461a(0x21c)]))[_0x33461a(0x336)](_0x589ead=>{const _0x4959e4=_0x33461a,_0x1b851f=_0x589ead[_0x4959e4(0x3cc)](),_0x3798eb=this[_0x4959e4(0x388)]['get'](_0x1b851f);_0x3798eb&&(_0x3798eb[_0x4959e4(0x24a)](),this['_entities'][_0x4959e4(0x312)](_0x1b851f));});}async[_0x3504c5(0x338)](_0x500c30){const _0x39bfde=_0x3504c5,_0x137a12=await this[_0x39bfde(0x27e)][_0x39bfde(0x266)](_0x500c30),_0x19af7e=this[_0x39bfde(0x23b)][_0x39bfde(0x2af)](ye,_0x500c30,_0x137a12);return _0x19af7e[_0x39bfde(0x2ff)](),_0x19af7e;}async['_startDocCollabCursor'](_0x2308b1){const _0x22b8f3=_0x3504c5,_0x199345=await this[_0x22b8f3(0x27e)][_0x22b8f3(0x266)](_0x2308b1),_0x3f9c89=this[_0x22b8f3(0x23b)][_0x22b8f3(0x2af)](we,_0x2308b1,_0x199345);return _0x3f9c89[_0x22b8f3(0x2ff)](),_0x3f9c89;}};Y=Wi([pe(0x0,_0x437d75),pe(0x1,_0x13fac2(_0x4da47b)),pe(0x2,_0x13fac2(_0x4e336e))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x3759f1,_0x305c46){const _0x4ea90e=_0x3504c5;let {radius:_0x22b3bf,width:_0x222433,height:_0xb03249}=_0x305c46;_0x22b3bf=_0x22b3bf!=null?_0x22b3bf:0x0,_0x222433=_0x222433!=null?_0x222433:0x1e,_0xb03249=_0xb03249!=null?_0xb03249:0x1e;let _0x1ddfff=0x0,_0x43049e=0x0,_0x335222=0x0;_0x1ddfff=_0x43049e=_0x335222=Math[_0x4ea90e(0x366)](_0x22b3bf,_0x222433/0x2,_0xb03249/0x2),_0x3759f1[_0x4ea90e(0x2ab)](),_0x3759f1[_0x4ea90e(0x2b4)](_0x1ddfff,0x0),_0x3759f1['lineTo'](_0x222433-_0x43049e,0x0),_0x3759f1['arc'](_0x222433-_0x43049e,_0x43049e,_0x43049e,Math['PI']*0x3/0x2,0x0,!0x1),_0x3759f1[_0x4ea90e(0x350)](_0x222433,_0xb03249-_0x335222),_0x3759f1[_0x4ea90e(0x203)](_0x222433-_0x335222,_0xb03249-_0x335222,_0x335222,0x0,Math['PI']/0x2,!0x1),_0x3759f1[_0x4ea90e(0x350)](0x0,_0xb03249),_0x3759f1[_0x4ea90e(0x350)](0x0,_0x1ddfff),_0x3759f1['arc'](_0x1ddfff,_0x1ddfff,_0x1ddfff,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3759f1[_0x4ea90e(0x365)](),_0x305c46[_0x4ea90e(0x396)]&&(_0x3759f1['save'](),_0x3759f1[_0x4ea90e(0x1d6)]=_0x305c46[_0x4ea90e(0x396)],_0x305c46[_0x4ea90e(0x1ce)]===_0x4ea90e(0x1b5)?_0x3759f1[_0x4ea90e(0x396)](_0x4ea90e(0x1b5)):_0x3759f1[_0x4ea90e(0x396)](),_0x3759f1[_0x4ea90e(0x270)]());}class Ie extends _0x3acd0c{constructor(_0x2f7192,_0x2745b0){const _0x504a20=_0x3504c5;super(_0x2f7192,_0x2745b0),_(this,_0x504a20(0x1d0)),_(this,_0x504a20(0x347)),(this[_0x504a20(0x1d0)]=_0x2745b0==null?void 0x0:_0x2745b0[_0x504a20(0x1d0)],this[_0x504a20(0x347)]=_0x2745b0==null?void 0x0:_0x2745b0[_0x504a20(0x347)]);}static[_0x3504c5(0x2b9)](_0x41c7ff,_0x3c50cd){const _0x207b3f=_0x3504c5,{text:_0x2fb724,color:_0x3b1e81}=_0x3c50cd;_0x41c7ff[_0x207b3f(0x39d)](),_0x41c7ff['font']=_0x207b3f(0x2ea);const _0x165444=_0x41c7ff[_0x207b3f(0x326)](_0x2fb724)[_0x207b3f(0x335)],_0x1d928c=Math[_0x207b3f(0x366)](_0x165444+0x2*Oe,rt);ji(_0x41c7ff,{'height':q,'radius':0x4,'width':_0x1d928c,'fill':_0x3b1e81}),_0x41c7ff[_0x207b3f(0x1d6)]=_0x207b3f(0x241);const _0x7e716a=Oe,_0x3f6d76=q-Vi,_0x23801f=rt-0x2*Oe;if(_0x165444>_0x23801f){let _0x7d31c9='',_0x10b207=0x0;for(const _0x407ddd of _0x2fb724){const _0x3ad7ab=_0x41c7ff[_0x207b3f(0x326)](_0x407ddd)[_0x207b3f(0x335)];if(_0x10b207+_0x3ad7ab<=_0x23801f-_0x41c7ff['measureText']('...')[_0x207b3f(0x335)])_0x7d31c9+=_0x407ddd,_0x10b207+=_0x3ad7ab;else{_0x7d31c9+='...';break;}}_0x41c7ff[_0x207b3f(0x263)](_0x7d31c9,_0x7e716a,_0x3f6d76);}else _0x41c7ff[_0x207b3f(0x263)](_0x2fb724,_0x7e716a,_0x3f6d76);_0x41c7ff[_0x207b3f(0x270)]();}[_0x3504c5(0x2de)](_0x3e2bd8){const _0x10533=_0x3504c5;Ie[_0x10533(0x2b9)](_0x3e2bd8,this);}}const Te=_0x3504c5(0x1ad),Xi='collab-text-range-',Gi=_0x3504c5(0x282),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji=_0x3504c5(0x2df);class ot{constructor(_0x26fda9,_0x97a410,_0x4173eb,_0x30b79f){const _0x2bae7f=_0x3504c5;_(this,_0x2bae7f(0x302),[]),_(this,'_anchor',null),_(this,_0x2bae7f(0x26a),null),_(this,'_anchorDot',null),_(this,_0x2bae7f(0x226),null),_(this,_0x2bae7f(0x1dd),null),(this['_cursor']=_0x26fda9,this[_0x2bae7f(0x34c)]=_0x97a410,this['_docSkeleton']=_0x4173eb,this[_0x2bae7f(0x30b)]=_0x30b79f,this[_0x2bae7f(0x1aa)]());}set['_hover'](_0x29bcc8){const _0x305341=_0x3504c5;_0x29bcc8?(this[_0x305341(0x252)]&&this[_0x305341(0x252)][_0x305341(0x2ba)](),this[_0x305341(0x26a)]&&this[_0x305341(0x26a)]['show']()):(this[_0x305341(0x252)]&&this['_anchorDot'][_0x305341(0x332)](),this['_textBubble']&&this[_0x305341(0x26a)]['hide']());}[_0x3504c5(0x24a)](){const _0x2d0ec7=_0x3504c5;for(const _0x59cda4 of this['_shapes'])_0x59cda4['dispose']();this[_0x2d0ec7(0x26a)]&&this['_textBubble'][_0x2d0ec7(0x24a)](),this[_0x2d0ec7(0x252)]&&this['_anchorDot'][_0x2d0ec7(0x24a)](),this[_0x2d0ec7(0x330)]&&this[_0x2d0ec7(0x330)][_0x2d0ec7(0x24a)](),this[_0x2d0ec7(0x1dd)]&&this[_0x2d0ec7(0x1dd)]();}[_0x3504c5(0x1aa)](){const _0x3f4ee8=_0x3504c5;var _0x3e1112;const {_docSkeleton:_0x1a09af,_document:_0x24adae}=this,{color:_0x2956ca,name:_0x2d659c,ranges:_0x111573}=this[_0x3f4ee8(0x37c)],_0x54ce63=_0x24adae[_0x3f4ee8(0x25b)](),{docsLeft:_0x32ebe0,docsTop:_0x1c3a21}=_0x54ce63,_0x10544e=new _0x587060(_0x54ce63,_0x1a09af);for(const {startOffset:_0x235b5b,endOffset:_0x8249b0,rangeType:_0x4e2554,segmentId:_0x57d7db,segmentPage:_0x544e3b,collapsed:_0x28d1b8,isActive:_0x130c34}of _0x111573){const _0x89459f=_0x1a09af['findNodePositionByCharIndex'](_0x235b5b,!0x0,_0x57d7db,_0x544e3b);let _0x353e4c=_0x1a09af[_0x3f4ee8(0x3ad)](_0x8249b0,!0x0,_0x57d7db,_0x544e3b);if(_0x353e4c==null&&(_0x353e4c=_0x1a09af['findNodePositionByCharIndex'](_0x8249b0-0x1,!0x1,_0x57d7db,_0x544e3b)),_0x130c34){const {contentBoxPointGroup:_0x1460d7}=_0x10544e[_0x3f4ee8(0x361)](_0x353e4c,_0x353e4c);if(_0x1460d7[_0x3f4ee8(0x329)]===0x0)continue;this[_0x3f4ee8(0x2c2)](_0x2956ca,_0x1460d7,_0x32ebe0,_0x1c3a21,_0x2d659c),this[_0x3f4ee8(0x1dd)]=this['_handleHover']();}if(_0x89459f&&_0x353e4c){if(_0x4e2554===_0x2ff472['RECT']){const _0x9cf86e=new _0x118b5f(_0x54ce63,_0x1a09af),{pointGroup:_0x2acdbf}=(_0x3e1112=_0x9cf86e[_0x3f4ee8(0x361)](_0x89459f,_0x353e4c))!=null?_0x3e1112:{};if(_0x2acdbf==null||_0x2acdbf[_0x3f4ee8(0x329)]===0x0)continue;this[_0x3f4ee8(0x3a6)](_0x2956ca,_0x2acdbf,_0x32ebe0,_0x1c3a21);}else{if(!_0x28d1b8){const {borderBoxPointGroup:_0x1f64a8}=_0x10544e[_0x3f4ee8(0x361)](_0x89459f,_0x353e4c);if(_0x1f64a8[_0x3f4ee8(0x329)]===0x0)continue;this[_0x3f4ee8(0x2b2)](_0x2956ca,_0x1f64a8,_0x32ebe0,_0x1c3a21);}}}}}[_0x3504c5(0x2c2)](_0x3f28a0,_0x34ccd5,_0x363e8d,_0x369baf,_0x2c0684){const _0x222a99=_0x3504c5,_0x409b4e=this['_getAnchorBounding'](_0x34ccd5),{left:_0x262bfc,top:_0x1cfa68,height:_0x3cea2d}=_0x409b4e,_0x3c5dca=this['_getScale'](),_0x57e825=zi/_0x3c5dca,_0x32169b=new _0x514da9(Te+_0x144598(J),{'left':_0x262bfc+_0x363e8d-_0x57e825,'top':_0x1cfa68+_0x369baf,'height':_0x3cea2d,'width':Ki,'fill':_0x3f28a0||_0x486a87(_0x3312f1[_0x222a99(0x1b4)],0x0),'strokeWidth':_0x57e825,'stroke':Ji,'evented':!0x0});this['_anchor']=_0x32169b,this[_0x222a99(0x34c)]['addObject'](_0x32169b,_0x26f088);const _0x55d494=new _0x514da9(Te+_0x144598(J),{'left':_0x262bfc+_0x363e8d-_0x57e825,'top':_0x1cfa68+_0x369baf-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x3f28a0||_0x486a87(_0x3312f1[_0x222a99(0x1b4)],0x0),'strokeWidth':0x0,'stroke':_0x3f28a0||_0x486a87(_0x3312f1['black'],0x0),'evented':!0x1});this[_0x222a99(0x252)]=_0x55d494,this['_scene'][_0x222a99(0x2ec)](_0x55d494,_0x26f088);const _0x2ab52e=new Ie(Te+_0x144598(J),{'left':_0x262bfc+_0x363e8d-_0x57e825,'top':_0x1cfa68+_0x369baf-q,'text':_0x2c0684,'color':_0x3f28a0});this[_0x222a99(0x26a)]=_0x2ab52e,this[_0x222a99(0x34c)][_0x222a99(0x2ec)](_0x2ab52e,_0x26f088),this[_0x222a99(0x39a)]=!0x1;}[_0x3504c5(0x1a9)](){const _0x376788=_0x3504c5,_0x10fd4=this['_anchor']['onPointerEnter$'][_0x376788(0x377)](()=>{const _0x4a9cee=_0x376788;this[_0x4a9cee(0x39a)]=!0x0;}),_0x5c617d=this['_anchor'][_0x376788(0x33e)]['subscribeEvent'](()=>{const _0x26ec71=_0x376788;this[_0x26ec71(0x226)]&&clearTimeout(this[_0x26ec71(0x226)]),this[_0x26ec71(0x226)]=setTimeout(()=>{const _0x2c2a90=_0x26ec71;this[_0x2c2a90(0x39a)]=!0x1;},0x7d0);});return()=>{const _0x2ca677=_0x376788;_0x10fd4[_0x2ca677(0x3a9)](),_0x5c617d['unsubscribe']();};}['_drawTextRange'](_0x33b007,_0x2966ce,_0x6b3e5e,_0x13ab6c){const _0x23b5a6=_0x3504c5,_0x49276c=new _0x44319d(_0x33b007)['setAlpha'](0.2)[_0x23b5a6(0x331)](),_0x25ae7a=new _0x1556b3(Xi+_0x144598(J),{'pointsGroup':_0x2966ce,'fill':_0x49276c||_0x486a87(_0x3312f1[_0x23b5a6(0x1b4)],0.2),'left':_0x6b3e5e,'top':_0x13ab6c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x23b5a6(0x302)][_0x23b5a6(0x2a3)](_0x25ae7a),this[_0x23b5a6(0x34c)][_0x23b5a6(0x2ec)](_0x25ae7a,_0x26f088);}['_drawRectRange'](_0x165746,_0x2d04af,_0x58c78b,_0x59a185){const _0x7bb002=_0x3504c5,_0x275d64=new _0x44319d(_0x165746)[_0x7bb002(0x23a)](0.2)[_0x7bb002(0x331)](),_0x145de5=new _0x1556b3(Gi+_0x144598(J),{'pointsGroup':_0x2d04af,'fill':_0x275d64||_0x486a87(_0x3312f1[_0x7bb002(0x1b4)],0.2),'left':_0x58c78b,'top':_0x59a185,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x7bb002(0x2a3)](_0x145de5),this[_0x7bb002(0x34c)][_0x7bb002(0x2ec)](_0x145de5,_0x26f088);}[_0x3504c5(0x1ca)](_0x1735b0){const _0x57b502=_0x1735b0[0x0],_0x27f658=_0x57b502[0x0],_0x37a2d9=_0x57b502[0x2],{x:_0x16a81e,y:_0x4c5e71}=_0x27f658,{x:_0x4447cb,y:_0x1d8c87}=_0x37a2d9;return{'left':_0x16a81e,'top':_0x4c5e71,'width':_0x4447cb-_0x16a81e,'height':_0x1d8c87-_0x4c5e71};}[_0x3504c5(0x33a)](){const _0x4ca918=_0x3504c5,{scaleX:_0x599836,scaleY:_0x32b339}=this[_0x4ca918(0x34c)][_0x4ca918(0x31e)]();return Math[_0x4ca918(0x2ad)](_0x599836,_0x32b339);}}var Zi=Object[_0x3504c5(0x1c3)],Qi=(_0x50a65d,_0x26b7f6,_0x43a8df,_0xbd17e3)=>{const _0xbfaf24=_0x3504c5;for(var _0x45b5ce=_0xbd17e3>0x1?void 0x0:_0xbd17e3?Zi(_0x26b7f6,_0x43a8df):_0x26b7f6,_0x1cb4e9=_0x50a65d[_0xbfaf24(0x329)]-0x1,_0x2768bf;_0x1cb4e9>=0x0;_0x1cb4e9--)(_0x2768bf=_0x50a65d[_0x1cb4e9])&&(_0x45b5ce=_0x2768bf(_0x45b5ce)||_0x45b5ce);return _0x45b5ce;},ne=(_0x5b1372,_0x2f1691)=>(_0x5a3e45,_0x587347)=>_0x2f1691(_0x5a3e45,_0x587347,_0x5b1372);let $e=class extends _0x4dd7f6{constructor(_0x293825,_0x52b680,_0x3db4d5,_0x320297,_0x161c75){const _0x3097e7=_0x3504c5;super(),_(this,_0x3097e7(0x3d8),[]),_(this,_0x3097e7(0x20e),[]),(this[_0x3097e7(0x346)]=_0x293825,this[_0x3097e7(0x355)]=_0x52b680,this[_0x3097e7(0x291)]=_0x3db4d5,this[_0x3097e7(0x213)]=_0x320297,this[_0x3097e7(0x2dc)]=_0x161c75,this[_0x3097e7(0x19b)]());}['_init'](){const _0x26b982=_0x3504c5,_0x16c165=this[_0x26b982(0x346)][_0x26b982(0x1f0)],_0x444428=this[_0x26b982(0x355)];this['disposeWithMe'](_0x338b00([this[_0x26b982(0x291)][_0x26b982(0x1f3)](_0x16c165),this[_0x26b982(0x2dc)][_0x26b982(0x245)]])[_0x26b982(0x37f)](_0x43fad8(([_0x35e3b3,_0x214cad])=>({'skeleton':_0x444428[_0x26b982(0x2d8)](),'cursors':[..._0x35e3b3[_0x26b982(0x387)]()][_0x26b982(0x2fa)](_0xd337b9=>({..._0xd337b9,'color':this[_0x26b982(0x2dc)][_0x26b982(0x1bf)](_0xd337b9[_0x26b982(0x1d0)])}))})))[_0x26b982(0x336)](_0x1537be=>{const _0x2bb060=_0x26b982;if(this[_0x2bb060(0x36e)](),_0x1537be){const {skeleton:_0x3446e5,cursors:_0x208b58}=_0x1537be;this[_0x2bb060(0x299)](_0x3446e5,_0x208b58);}})),this['_initResize'](),this[_0x26b982(0x193)]();}[_0x3504c5(0x299)](_0x4de40d,_0xf047b7){const _0x10ec0f=_0x3504c5,{scene:_0xe8040c,mainComponent:_0x126935}=this['_context'],_0x57548f=_0xf047b7['map'](_0x3d034f=>new ot(_0x3d034f,_0xe8040c,_0x4de40d,_0x126935));this[_0x10ec0f(0x3d8)]=_0x57548f,this[_0x10ec0f(0x20e)]=_0xf047b7;}[_0x3504c5(0x265)](){const _0x57952f=_0x3504c5;this[_0x57952f(0x36e)]();const {scene:_0x262440,mainComponent:_0x3ea0a9}=this[_0x57952f(0x346)],_0x58409d=this[_0x57952f(0x355)][_0x57952f(0x2d8)](),_0x4b25e6=this['_cursors'][_0x57952f(0x3a8)](_0x517306=>new ot(_0x517306,_0x262440,_0x58409d,_0x3ea0a9));this[_0x57952f(0x3d8)]=_0x4b25e6;}[_0x3504c5(0x36e)](){const _0x11f7a4=_0x3504c5;this['_cursorShapes'][_0x11f7a4(0x3c9)](_0x5d8dfa=>_0x5d8dfa[_0x11f7a4(0x24a)]()),this[_0x11f7a4(0x3d8)]=[];}[_0x3504c5(0x193)](){const _0x2054f3=_0x3504c5,_0x3a4635=[_0x42495b['id']];this[_0x2054f3(0x2fd)](this[_0x2054f3(0x213)][_0x2054f3(0x383)](_0x1d8e79=>{const _0x5933c8=_0x2054f3;_0x3a4635[_0x5933c8(0x240)](_0x1d8e79['id'])&&_0x1d8e79[_0x5933c8(0x380)][_0x5933c8(0x1f0)]===this['_context']['unitId']&&this[_0x5933c8(0x265)]();}));}[_0x3504c5(0x2bc)](){const _0x40daa7=_0x3504c5;this[_0x40daa7(0x2fd)](_0xc40dd(this[_0x40daa7(0x346)][_0x40daa7(0x244)][_0x40daa7(0x357)])[_0x40daa7(0x37f)](_0x18ab68(_0xfb00fb=>_0xfb00fb[_0x40daa7(0x201)]===_0x3128aa[_0x40daa7(0x32e)]),_0x26bb7e(0x10))['subscribe'](()=>{const _0x3673ee=_0x40daa7;this[_0x3673ee(0x265)]();}));}};$e=Qi([ne(0x1,_0x13fac2(_0x516f50)),ne(0x2,_0x13fac2(Y)),ne(0x3,_0x378028),ne(0x4,_0x13fac2(_0x2f412a))],$e);const qi=0x1,en=1.5;class tn extends _0x3acd0c{constructor(_0x5e75f3,_0x3882d7){const _0x3d53a0=_0x3504c5;super(_0x5e75f3,_0x3882d7),_(this,'_color'),_(this,_0x3d53a0(0x348),!0x1),_(this,_0x3d53a0(0x306)),_(this,'_name',''),_(this,'_labelPosition',_0x3d53a0(0x3cf)),_(this,_0x3d53a0(0x33b)),(_0x3882d7&&this[_0x3d53a0(0x3d9)](_0x3882d7),this[_0x3d53a0(0x3c0)]['subscribeEvent'](()=>this[_0x3d53a0(0x3d9)]({'hovered':!0x0})),this[_0x3d53a0(0x33e)][_0x3d53a0(0x377)](()=>this[_0x3d53a0(0x3d9)]({'hovered':!0x1})));}[_0x3504c5(0x3d9)](_0x26b9e0){const _0x2d3ffe=_0x3504c5;var _0x37cf08,_0x3aa6b2,_0x241d74,_0x515bab,_0x4b582b,_0x18785a;this[_0x2d3ffe(0x325)]=(_0x37cf08=_0x26b9e0[_0x2d3ffe(0x1d0)])!=null?_0x37cf08:this[_0x2d3ffe(0x325)],this['_hovered']=(_0x3aa6b2=_0x26b9e0[_0x2d3ffe(0x339)])!=null?_0x3aa6b2:this['_hovered'],this[_0x2d3ffe(0x306)]=(_0x241d74=_0x26b9e0[_0x2d3ffe(0x2ce)])!=null?_0x241d74:this[_0x2d3ffe(0x306)],this[_0x2d3ffe(0x253)]=(_0x515bab=_0x26b9e0[_0x2d3ffe(0x238)])!=null?_0x515bab:this[_0x2d3ffe(0x253)],this[_0x2d3ffe(0x3a0)]=(_0x4b582b=_0x26b9e0[_0x2d3ffe(0x290)])!=null?_0x4b582b:this[_0x2d3ffe(0x3a0)],this[_0x2d3ffe(0x33b)]=(_0x18785a=_0x26b9e0[_0x2d3ffe(0x260)])!=null?_0x18785a:this[_0x2d3ffe(0x33b)],this[_0x2d3ffe(0x3be)]({'width':_0x26b9e0[_0x2d3ffe(0x335)],'height':_0x26b9e0['height']});}[_0x3504c5(0x2f0)](_0x597db7){const _0x440a94=_0x3504c5,{row:_0x841981,column:_0x5bfb38}=_0x597db7;if(_0x841981>=this[_0x440a94(0x306)][_0x440a94(0x20b)]&&_0x841981<=this[_0x440a94(0x306)][_0x440a94(0x36c)]&&_0x5bfb38>=this['_range']['startColumn']&&_0x5bfb38<=this['_range']['endColumn']){this[_0x440a94(0x3d9)]({'hovered':!0x0});return;}this[_0x440a94(0x3d9)]({'hovered':!0x1});}['triggerDblclick'](_0x95240a){return!0x1;}[_0x3504c5(0x2de)](_0x4d3944){const _0x8b207d=_0x3504c5;_0x514da9[_0x8b207d(0x2b9)](_0x4d3944,{'width':this[_0x8b207d(0x335)],'height':this[_0x8b207d(0x1cb)],'strokeWidth':en,'stroke':this[_0x8b207d(0x325)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x4d3944[_0x8b207d(0x39d)](),_0x4d3944[_0x8b207d(0x257)](0x1,0x0,0x0,0x1,this[_0x8b207d(0x335)],this['_labelPosition']===_0x8b207d(0x1a6)?0x0:-q),Ie[_0x8b207d(0x2b9)](_0x4d3944,{'text':this['_name'],'color':this[_0x8b207d(0x325)]}),_0x4d3944[_0x8b207d(0x270)]());}}var sn=Object[_0x3504c5(0x1c3)],nn=(_0x24aec0,_0x328036,_0xa8e174,_0x300704)=>{const _0x289a5c=_0x3504c5;for(var _0x3eb809=_0x300704>0x1?void 0x0:_0x300704?sn(_0x328036,_0xa8e174):_0x328036,_0x66bf19=_0x24aec0[_0x289a5c(0x329)]-0x1,_0x8e0e38;_0x66bf19>=0x0;_0x66bf19--)(_0x8e0e38=_0x24aec0[_0x66bf19])&&(_0x3eb809=_0x8e0e38(_0x3eb809)||_0x3eb809);return _0x3eb809;},Re=(_0x2f9053,_0x2a979c)=>(_0x18c97b,_0x224590)=>_0x2a979c(_0x18c97b,_0x224590,_0x2f9053);const rn=0x1389;let xe=class extends _0x4dd7f6{constructor(_0x36f0e2,_0x3c4631,_0x2089a2,_0x391a98){const _0x2be3bd=_0x3504c5;super(),_(this,_0x2be3bd(0x20e),new Set()),_(this,_0x2be3bd(0x333),null),(this['_context']=_0x36f0e2,this['_sheetSkeletonManagerService']=_0x3c4631,this[_0x2be3bd(0x291)]=_0x2089a2,this[_0x2be3bd(0x2dc)]=_0x391a98,this[_0x2be3bd(0x19b)]());}[_0x3504c5(0x19b)](){const _0x5723a5=_0x3504c5;this[_0x5723a5(0x2b0)][_0x5723a5(0x1bb)]['pipe'](_0x3d85e9(this[_0x5723a5(0x21c)]),_0x1ed193(_0x4b74e0=>{const _0x42a1ad=_0x5723a5;if(_0x4b74e0){const _0x9a987f=_0x4b74e0['sheetId'];return _0x338b00(this['_collabCursorController'][_0x42a1ad(0x1f3)](this[_0x42a1ad(0x346)][_0x42a1ad(0x1f0)]),this['_themeService']['currentTheme$'])[_0x42a1ad(0x37f)](_0x43fad8(([_0x1352fe,_0x1c8ac6])=>{const _0x39d9eb=new Map();return _0x1352fe['forEach']((_0x2ff11c,_0x393fb1)=>{const _0x482cd4=_0x3f6f;if(_0x2ff11c[_0x482cd4(0x228)]===_0x9a987f){const _0x40c0b0={..._0x2ff11c};_0x40c0b0[_0x482cd4(0x1d0)]=this[_0x482cd4(0x2dc)][_0x482cd4(0x1bf)](_0x2ff11c[_0x482cd4(0x1d0)]),_0x39d9eb[_0x482cd4(0x32b)](_0x393fb1,_0x40c0b0);}}),{'skeleton':_0x4b74e0,'cursors':_0x39d9eb};}));}return _0x5943a5({'skeleton':null,'cursors':new Map()});}))[_0x5723a5(0x336)](({skeleton:_0x10570a,cursors:_0x4a2779})=>{const _0x4f77fe=_0x5723a5;this[_0x4f77fe(0x36e)](),_0x10570a&&this[_0x4f77fe(0x299)](_0x10570a,_0x4a2779);}),this[_0x5723a5(0x2b0)]['currentSkeleton$'][_0x5723a5(0x336)](_0x4e6e95=>{const _0x4e7e73=_0x5723a5;if(_0x4e6e95==null)return;const {skeleton:_0x376579}=_0x4e6e95,{scene:_0x216d4d}=this[_0x4e7e73(0x346)];_0x216d4d[_0x4e7e73(0x39f)]['subscribeEvent'](_0x47926c(_0x5808cb=>{const _0x1c6b70=_0x4e7e73;var _0x44a504,_0x443136;const {offsetX:_0x40ef06,offsetY:_0x2814bb}=_0x5808cb,{x:_0x246ce5,y:_0x2a8401}=_0x216d4d[_0x1c6b70(0x258)](_0x3199d6[_0x1c6b70(0x24f)]([_0x40ef06,_0x2814bb])),{scaleX:_0x1b2e66,scaleY:_0x3f11a4}=_0x216d4d[_0x1c6b70(0x31e)](),_0x55091f=_0x216d4d[_0x1c6b70(0x29f)](_0xd834fb[_0x1c6b70(0x33d)]),_0x276cc7=_0x216d4d[_0x1c6b70(0x286)](_0x3199d6[_0x1c6b70(0x24f)]([_0x246ce5,_0x2a8401]),_0x55091f),_0x283278=_0x376579[_0x1c6b70(0x2c4)](_0x40ef06,_0x2814bb,_0x1b2e66,_0x3f11a4,_0x276cc7);((_0x44a504=this[_0x1c6b70(0x333)])==null?void 0x0:_0x44a504[_0x1c6b70(0x3ae)])===_0x283278[_0x1c6b70(0x3ae)]&&((_0x443136=this[_0x1c6b70(0x333)])==null?void 0x0:_0x443136[_0x1c6b70(0x212)])===_0x283278['row']||this[_0x1c6b70(0x20e)][_0x1c6b70(0x3c9)](_0x199a67=>{const _0x42a64e=_0x1c6b70;_0x199a67[_0x42a64e(0x2f0)](_0x283278);});},0x64));});}[_0x3504c5(0x299)](_0x52d605,_0x3ed844){const _0x217c54=_0x3504c5;var _0x1b1493;const _0x5b16fb=(_0x1b1493=this[_0x217c54(0x2b0)]['getCurrent']())==null?void 0x0:_0x1b1493[_0x217c54(0x303)];if(!_0x5b16fb)return;const _0x395f68=this[_0x217c54(0x3d2)]();if(!_0x395f68)return;this[_0x217c54(0x20e)]['forEach'](_0x2f2c9b=>{const _0x48dd6b=_0x217c54;_0x2f2c9b[_0x48dd6b(0x1ef)]();});const {scene:_0x3912fd}=_0x395f68,_0x177f64=on(Array[_0x217c54(0x277)](_0x3ed844['values']()))['map'](_0x57e7da=>{const _0x600a79=_0x217c54,{color:_0x536b4c,range:_0x4818b6,name:_0x216207,selection:_0xe9b04e,sheetID:_0x15673b}=_0x57e7da,{startColumn:_0x57a34e,startRow:_0x4e8f85,endColumn:_0x343ca3,endRow:_0x27ff42}=_0x4818b6,_0xb15bed=_0x5f53de(_0x4e8f85,_0x57a34e,_0x3912fd,_0x5b16fb),_0xaff247=_0x5f53de(_0x27ff42,_0x343ca3,_0x3912fd,_0x5b16fb),{columnHeaderHeightAndMarginTop:_0x267d63}=_0x5b16fb,{startX:_0x14e88d,startY:_0x523b46}=_0xb15bed,{endX:_0x1bb8c9,endY:_0xf10868}=_0xaff247,_0x3ae6d4=_0x1bb8c9-_0x14e88d,_0x56ee6a=_0xf10868-_0x523b46,_0x4904f9={'labelPosition':_0x523b46-_0x267d63>=q?'top':_0x600a79(0x1a6),'sheetID':_0x15673b,'range':_0x4818b6,'color':_0x536b4c,'name':_0x216207,'selection':_0xe9b04e,'left':_0x14e88d,'top':_0x523b46,'width':_0x3ae6d4,'height':_0x56ee6a,'evented':!0x1,'zIndex':rn};return new tn(_0x216207,_0x4904f9);});_0x3912fd['addObjects'](_0x177f64,qi),this[_0x217c54(0x20e)]=new Set(_0x177f64);}[_0x3504c5(0x36e)](){const _0x11e69b=_0x3504c5;var _0x2106ad;(_0x2106ad=this[_0x11e69b(0x20e)])==null||_0x2106ad['forEach'](_0x2e960a=>_0x2e960a[_0x11e69b(0x24a)]());}[_0x3504c5(0x3d2)](){const _0x5aac54=_0x3504c5;return _0x4d2825(this[_0x5aac54(0x346)][_0x5aac54(0x2a4)],this['_context']);}};xe=nn([Re(0x1,_0x13fac2(_0x29be31)),Re(0x2,_0x13fac2(Y)),Re(0x3,_0x13fac2(_0x2f412a))],xe);function on(_0x23cc1a){const _0xd6fd55=_0x3504c5,_0x4f3e8a=new Map();return _0x23cc1a['forEach'](_0x216028=>{const _0x1b3a7d=_0x3f6f;if(_0x4f3e8a[_0x1b3a7d(0x2db)](_0x216028[_0x1b3a7d(0x28a)])){const _0x22028b=_0x4f3e8a[_0x1b3a7d(0x1c0)](_0x216028['selection']);_0x22028b[_0x1b3a7d(0x238)]+=',\x20'+_0x216028['name'];}else _0x4f3e8a['set'](_0x216028[_0x1b3a7d(0x28a)],_0x216028);}),Array[_0xd6fd55(0x277)](_0x4f3e8a['values']());}var an=Object[_0x3504c5(0x1c3)],cn=(_0x35fd60,_0xaab3f7,_0x9afe0c,_0x3a34c4)=>{const _0x4180b1=_0x3504c5;for(var _0x4b6506=_0x3a34c4>0x1?void 0x0:_0x3a34c4?an(_0xaab3f7,_0x9afe0c):_0xaab3f7,_0x4b8904=_0x35fd60[_0x4180b1(0x329)]-0x1,_0x48e857;_0x4b8904>=0x0;_0x4b8904--)(_0x48e857=_0x35fd60[_0x4b8904])&&(_0x4b6506=_0x48e857(_0x4b6506)||_0x4b6506);return _0x4b6506;},k=(_0x291958,_0x5b9a98)=>(_0x36bcf8,_0x20225a)=>_0x5b9a98(_0x36bcf8,_0x20225a,_0x291958);let le=class extends _0x44caae{constructor(_0xf5a4a8,_0x5d4095,_0x2f6aa6,_0x4c4b5a,_0x381ee3,_0xf2852e){const _0xc3ae7=_0x3504c5;super(),this[_0xc3ae7(0x38a)]=_0xf5a4a8,this['_localCacheService']=_0x5d4095,this['_collaborationUIEventService']=_0x2f6aa6,this[_0xc3ae7(0x196)]=_0x4c4b5a,this[_0xc3ae7(0x300)]=_0x381ee3,this[_0xc3ae7(0x30a)]=_0xf2852e,this[_0xc3ae7(0x307)](),this[_0xc3ae7(0x3ce)]();}['_setupBeforeClosingHandler'](){const _0x441cac=_0x3504c5;this['disposeWithMe'](this[_0x441cac(0x38a)][_0x441cac(0x2cb)](()=>{const _0x313b3b=_0x441cac;if(this[_0x313b3b(0x2f4)][_0x313b3b(0x36f)][_0x313b3b(0x1fc)])return this[_0x313b3b(0x30a)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x3504c5(0x3ce)](){const _0x5bb584=_0x3504c5;this[_0x5bb584(0x2fd)](this[_0x5bb584(0x1b6)][_0x5bb584(0x206)][_0x5bb584(0x336)](_0x532927=>{const _0x4abb74=_0x5bb584;_0x532927['id']===_0x4435b4[_0x4abb74(0x1ac)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c[_0x4abb74(0x352)],'content':this[_0x4abb74(0x30a)]['t']('collaboration.single-unit.warning')}),_0x532927['id']===_0x4435b4[_0x4abb74(0x3b5)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c[_0x4abb74(0x352)],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1e6))}),_0x532927['id']===_0x4435b4[_0x4abb74(0x223)]&&this[_0x4abb74(0x300)]['show']({'title':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1e0)),'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x342)),'type':_0x4abb74(0x1b1),'duration':0x0}),_0x532927['id']===_0x4435b4['CONFLICT']&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Error'],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1e6))+'('+_0x532927[_0x4abb74(0x370)]+')'}),_0x532927['id']===_0x4435b4[_0x4abb74(0x37d)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Warning'],'content':this['_localeService']['t'](_0x532927[_0x4abb74(0x370)]||'')}),_0x532927['id']===_0x4435b4[_0x4abb74(0x2d7)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Warning'],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x273))}),_0x532927['id']===_0x4435b4['SOCKET_FAILED']&&this['_messageService'][_0x4abb74(0x332)]({'type':_0x520d9c[_0x4abb74(0x230)],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x1dc))}),_0x532927['id']===_0x4435b4[_0x4abb74(0x27b)]&&this[_0x4abb74(0x196)][_0x4abb74(0x332)]({'type':_0x520d9c['Error'],'content':this[_0x4abb74(0x30a)]['t'](_0x4abb74(0x274))});}));}};le=cn([k(0x0,_0x59ea3f),k(0x1,_0x55c362),k(0x2,_0x13fac2(_0x291389)),k(0x3,_0x1b730d),k(0x4,_0x540b4a),k(0x5,_0x13fac2(_0x21a3cc))],le);const ln=_0x3504c5(0x25e),at={};var _n=Object['getOwnPropertyDescriptor'],hn=(_0x3df684,_0x3b2b56,_0x4ef956,_0x24d453)=>{const _0x337940=_0x3504c5;for(var _0x451089=_0x24d453>0x1?void 0x0:_0x24d453?_n(_0x3b2b56,_0x4ef956):_0x3b2b56,_0x5acf47=_0x3df684[_0x337940(0x329)]-0x1,_0x224829;_0x5acf47>=0x0;_0x5acf47--)(_0x224829=_0x3df684[_0x5acf47])&&(_0x451089=_0x224829(_0x451089)||_0x451089);return _0x451089;},ct=(_0x527552,_0x48372b)=>(_0x57c832,_0x3c313d)=>_0x48372b(_0x57c832,_0x3c313d,_0x527552);let _e=class{constructor(_0x5580b2,_0x54b052){const _0x463e47=_0x3504c5;this['_transformService']=_0x5580b2,this[_0x463e47(0x1b8)]=_0x54b052;}[_0x3504c5(0x1c2)](_0xc3b992){const _0xcf6c44=_0x3504c5;this[_0xcf6c44(0x313)](_0xc3b992),this[_0xcf6c44(0x219)](_0xc3b992);}[_0x3504c5(0x35a)](_0x127566){const _0x3a7445=_0x3504c5,{unitID:_0x11ce82}=_0x127566,_0x293901=this[_0x3a7445(0x1b8)][_0x3a7445(0x354)](_0x11ce82)[_0x3a7445(0x24c)](_0x23034e),{redoCache:_0xd12a20}=_0x293901[_0x3a7445(0x296)]();if(_0xd12a20[_0x3a7445(0x329)]===0x0)return _0x127566;let _0x46a8b6=_0x267bed[_0x3a7445(0x214)](_0x127566[_0x3a7445(0x2d3)][0x0]);for(let _0x27eb79=0x0;_0x27eb79<_0xd12a20[_0x3a7445(0x329)];_0x27eb79++){const _0x41f6ca={'id':'doc.mutation.rich-text-editing','params':{..._0xd12a20[_0x27eb79]}},_0x2ece3d=this[_0x3a7445(0x21d)][_0x3a7445(0x341)](_0x46a8b6,_0x41f6ca,!0x1);if(_0x45a2c4(_0x2ece3d))throw _0x2ece3d['error'];_0x46a8b6=_0x2ece3d['m1Prime'];}return{..._0x267bed['deepClone'](_0x127566),'mutations':[_0x46a8b6]};}['_transformUndoRedoStack'](_0x1ef64c){const _0x347b3d=_0x3504c5,{unitID:_0x5954f6}=_0x1ef64c,_0x3e9910=this['_renderManagerService']['getRenderById'](_0x5954f6)[_0x347b3d(0x24c)](_0x23034e),{undoCache:_0xbd98ab,redoCache:_0x2a3b4b}=_0x3e9910['getUndoRedoMutationParamsCache']();if(_0xbd98ab['length']===0x0||_0x2a3b4b['length']===0x0)return;const _0x262a4d=[],_0x5654b8=[];let _0x403eaa=_0x267bed[_0x347b3d(0x214)](_0x1ef64c[_0x347b3d(0x2d3)][0x0]),_0x366cb9=_0x267bed['deepClone'](_0x1ef64c['mutations'][0x0]);for(let _0x2054df=_0xbd98ab[_0x347b3d(0x329)]-0x1;_0x2054df>=0x0;_0x2054df--){const _0x5134c2={'id':_0x347b3d(0x221),'params':{..._0xbd98ab[_0x2054df]}},_0x2608dd={'id':_0x347b3d(0x221),'params':{..._0x2a3b4b[_0x2054df]}},_0x5c3df9=this[_0x347b3d(0x21d)][_0x347b3d(0x341)](_0x403eaa,_0x5134c2,!0x1),_0x93bdb0=this[_0x347b3d(0x21d)][_0x347b3d(0x341)](_0x366cb9,_0x2608dd,!0x1);if(_0x45a2c4(_0x5c3df9))throw _0x5c3df9[_0x347b3d(0x1b1)];if(_0x45a2c4(_0x93bdb0))throw _0x93bdb0[_0x347b3d(0x1b1)];_0x262a4d[_0x347b3d(0x30c)](_0x5c3df9[_0x347b3d(0x23e)]['params']),_0x5654b8[_0x347b3d(0x30c)](_0x93bdb0['m2Prime']['params']),_0x403eaa=_0x5c3df9[_0x347b3d(0x2cd)],_0x366cb9=_0x93bdb0[_0x347b3d(0x2cd)];}_0x3e9910[_0x347b3d(0x3d5)]({'undoCache':_0x262a4d,'redoCache':_0x5654b8});}[_0x3504c5(0x219)](_0x5327b5){const _0x5c0e7b=_0x3504c5,{unitID:_0x2b5957}=_0x5327b5,_0x38a222=this['_renderManagerService'][_0x5c0e7b(0x354)](_0x2b5957)[_0x5c0e7b(0x24c)](_0x23034e),_0x32e6f3=_0x38a222[_0x5c0e7b(0x28e)]();if(_0x32e6f3==null)return;const _0x41438f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5327b5[_0x5c0e7b(0x267)],'actions':null,'textRanges':[_0x32e6f3]}}],_0x55adc2=this[_0x5c0e7b(0x21d)][_0x5c0e7b(0x3b2)](_0x5327b5,_0x41438f);if(!_0x5d4db3(_0x55adc2))throw _0x55adc2[_0x5c0e7b(0x1b1)];const _0x3bca98=_0x55adc2[_0x5c0e7b(0x23e)][0x0][_0x5c0e7b(0x380)][_0x5c0e7b(0x204)];Array[_0x5c0e7b(0x1d8)](_0x3bca98)&&_0x3bca98[_0x5c0e7b(0x329)]&&_0x38a222[_0x5c0e7b(0x294)](_0x3bca98[0x0]);}};_e=hn([ct(0x0,_0x3943ee),ct(0x1,_0x5dc693)],_e);var un=Object['getOwnPropertyDescriptor'],dn=(_0x569f81,_0x3f913e,_0x28e0fc,_0x56c17a)=>{for(var _0x4ca6b8=_0x56c17a>0x1?void 0x0:_0x56c17a?un(_0x3f913e,_0x28e0fc):_0x3f913e,_0x125761=_0x569f81['length']-0x1,_0x129990;_0x125761>=0x0;_0x125761--)(_0x129990=_0x569f81[_0x125761])&&(_0x4ca6b8=_0x129990(_0x4ca6b8)||_0x4ca6b8);return _0x4ca6b8;},De=(_0x2ef500,_0xcdbb81)=>(_0x57caed,_0x4b44ee)=>_0xcdbb81(_0x57caed,_0x4b44ee,_0x2ef500);let he=class{constructor(_0x291f33,_0x559371,_0x1dc7e0){const _0x5b396b=_0x3504c5;this[_0x5b396b(0x23b)]=_0x291f33,this[_0x5b396b(0x21d)]=_0x559371,this[_0x5b396b(0x261)]=_0x1dc7e0;}['transformStateCache'](_0x2d9fe7){this['_transformHistoryAndStateStack'](_0x2d9fe7);}[_0x3504c5(0x35a)](_0x2d24ef){const _0x18b5f5=_0x3504c5,{unitID:_0x1d0950}=_0x2d24ef,{collaboration:_0x59276d}=this[_0x18b5f5(0x261)][_0x18b5f5(0x205)](_0x1d0950);if(_0x59276d[_0x18b5f5(0x329)]===0x0)return _0x2d24ef;let _0x1f03b1=_0x267bed[_0x18b5f5(0x214)](_0x2d24ef[_0x18b5f5(0x2d3)][0x0]);for(let _0x57e089=0x0;_0x57e089<_0x59276d[_0x18b5f5(0x329)];_0x57e089++){const _0x32c84e={'id':_0x18b5f5(0x221),'params':{'unitId':_0x59276d[_0x57e089][_0x18b5f5(0x1f0)],..._0x59276d[_0x57e089]['redoState']}},_0x3a6b22=this[_0x18b5f5(0x21d)][_0x18b5f5(0x341)](_0x1f03b1,_0x32c84e,!0x1);if(_0x45a2c4(_0x3a6b22))throw _0x3a6b22[_0x18b5f5(0x1b1)];_0x1f03b1=_0x3a6b22['m1Prime'];}return{..._0x267bed['deepClone'](_0x2d24ef),'mutations':[_0x1f03b1]};}[_0x3504c5(0x232)](_0x501d31){const _0x4ea30a=_0x3504c5,{unitID:_0x3751d7}=_0x501d31,{history:_0x1e49ef,collaboration:_0x425412}=this[_0x4ea30a(0x261)]['getStateCache'](_0x3751d7);if(_0x1e49ef[_0x4ea30a(0x329)]===0x0&&_0x425412['length']===0x0)return;const _0x4c39cc=[],_0x18c8ef=[];let _0x247640=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]),_0x2b5366=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]);for(let _0x15fc4d=_0x1e49ef[_0x4ea30a(0x329)]-0x1;_0x15fc4d>=0x0;_0x15fc4d--){const _0x4a4d6b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e49ef[_0x15fc4d][_0x4ea30a(0x1f0)],..._0x1e49ef[_0x15fc4d][_0x4ea30a(0x32c)]}},_0xca48a2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1e49ef[_0x15fc4d][_0x4ea30a(0x1f0)],..._0x1e49ef[_0x15fc4d][_0x4ea30a(0x30f)]}},_0x1f4859=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x247640,_0x4a4d6b,!0x1),_0x332740=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x2b5366,_0xca48a2,!0x1);if(_0x45a2c4(_0x1f4859))throw _0x1f4859[_0x4ea30a(0x1b1)];if(_0x45a2c4(_0x332740))throw _0x332740[_0x4ea30a(0x1b1)];_0x4c39cc[_0x4ea30a(0x30c)]({..._0x1e49ef[_0x15fc4d],'undoState':_0x1f4859[_0x4ea30a(0x23e)][_0x4ea30a(0x380)],'redoState':_0x332740[_0x4ea30a(0x23e)][_0x4ea30a(0x380)]}),_0x247640=_0x1f4859[_0x4ea30a(0x2cd)],_0x2b5366=_0x332740['m1Prime'];}_0x247640=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]),_0x2b5366=_0x267bed[_0x4ea30a(0x214)](_0x501d31[_0x4ea30a(0x2d3)][0x0]);for(let _0x4fd246=_0x425412['length']-0x1;_0x4fd246>=0x0;_0x4fd246--){const _0x5048b9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x425412[_0x4fd246][_0x4ea30a(0x1f0)],..._0x425412[_0x4fd246][_0x4ea30a(0x32c)]}},_0x31b760={'id':_0x4ea30a(0x221),'params':{'unitId':_0x425412[_0x4fd246][_0x4ea30a(0x1f0)],..._0x425412[_0x4fd246][_0x4ea30a(0x30f)]}},_0x418a47=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x247640,_0x5048b9,!0x1),_0x43d1f8=this[_0x4ea30a(0x21d)][_0x4ea30a(0x341)](_0x2b5366,_0x31b760,!0x1);if(_0x45a2c4(_0x418a47))throw _0x418a47[_0x4ea30a(0x1b1)];if(_0x45a2c4(_0x43d1f8))throw _0x43d1f8[_0x4ea30a(0x1b1)];_0x18c8ef[_0x4ea30a(0x30c)]({..._0x425412[_0x4fd246],'undoState':_0x418a47['m2Prime'][_0x4ea30a(0x380)],'redoState':_0x43d1f8[_0x4ea30a(0x23e)][_0x4ea30a(0x380)]}),_0x247640=_0x418a47['m1Prime'],_0x2b5366=_0x43d1f8[_0x4ea30a(0x2cd)];}this[_0x4ea30a(0x261)][_0x4ea30a(0x190)](_0x3751d7,{'history':_0x4c39cc,'collaboration':_0x18c8ef});}};he=dn([De(0x0,_0x13fac2(_0x4da47b)),De(0x1,_0x3943ee),De(0x2,_0x13fac2(_0x48cc88))],he);var fn=Object[_0x3504c5(0x1c3)],Sn=(_0x129fd0,_0x5a41ef,_0x517b35,_0x50e062)=>{const _0x16d574=_0x3504c5;for(var _0x157593=_0x50e062>0x1?void 0x0:_0x50e062?fn(_0x5a41ef,_0x517b35):_0x5a41ef,_0x9b2b48=_0x129fd0[_0x16d574(0x329)]-0x1,_0x1b03c8;_0x9b2b48>=0x0;_0x9b2b48--)(_0x1b03c8=_0x129fd0[_0x9b2b48])&&(_0x157593=_0x1b03c8(_0x157593)||_0x157593);return _0x157593;},lt=(_0x3de24a,_0x56f4d5)=>(_0x10f480,_0xbf0be)=>_0x56f4d5(_0x10f480,_0xbf0be,_0x3de24a);let ue=class{constructor(_0x284425,_0x2f5768){const _0x201adb=_0x3504c5;this[_0x201adb(0x23b)]=_0x284425,this['_transformService']=_0x2f5768;}[_0x3504c5(0x31b)](_0x24ae4f){const _0x3c9bbb=_0x3504c5;var _0x5e834f;const _0x57e8a8=this[_0x3c9bbb(0x23b)][_0x3c9bbb(0x1c0)](_0x259657),_0x271aaf=(_0x5e834f=_0x57e8a8['getDocRanges']())!=null?_0x5e834f:[];if(_0x271aaf[_0x3c9bbb(0x329)]===0x0)return;const _0x4f95ad=_0x24ae4f[_0x3c9bbb(0x267)],_0x2f93d9=[{'id':_0x3c9bbb(0x221),'params':{'unitId':_0x4f95ad,'actions':null,'textRanges':_0x271aaf}}],_0x50c6ea=this[_0x3c9bbb(0x21d)][_0x3c9bbb(0x3b2)](_0x24ae4f,_0x2f93d9);if(!_0x5d4db3(_0x50c6ea))throw _0x50c6ea['error'];const _0xea427f=_0x50c6ea[_0x3c9bbb(0x23e)][0x0][_0x3c9bbb(0x380)][_0x3c9bbb(0x204)];Array[_0x3c9bbb(0x1d8)](_0xea427f)&&_0xea427f['length']&&_0x57e8a8[_0x3c9bbb(0x287)](_0xea427f,{'unitId':_0x4f95ad,'subUnitId':_0x4f95ad},!0x1);}};ue=Sn([lt(0x0,_0x13fac2(_0x4da47b)),lt(0x1,_0x3943ee)],ue);var mn=Object['getOwnPropertyDescriptor'],In=(_0x326cfe,_0x4c1f13,_0x2ff73b,_0x3aebb1)=>{for(var _0x18e448=_0x3aebb1>0x1?void 0x0:_0x3aebb1?mn(_0x4c1f13,_0x2ff73b):_0x4c1f13,_0x49b02d=_0x326cfe['length']-0x1,_0x4eb37f;_0x49b02d>=0x0;_0x49b02d--)(_0x4eb37f=_0x326cfe[_0x49b02d])&&(_0x18e448=_0x4eb37f(_0x18e448)||_0x18e448);return _0x18e448;},U=(_0x59bd2a,_0x4416e0)=>(_0x5434c2,_0x7229b0)=>_0x4416e0(_0x5434c2,_0x7229b0,_0x59bd2a);let de=class extends _0x44caae{constructor(_0x5dfcbe,_0x2f4ee9,_0x3a837d,_0x59aeb6,_0x29ae5a,_0x5ac894,_0x548c32,_0x1a1bf2){const _0x4fd34d=_0x3504c5;super(),_(this,_0x4fd34d(0x2e1),new _0x1bb082(_0x59f2be[_0x4fd34d(0x217)])),(this[_0x4fd34d(0x261)]=_0x5dfcbe,this[_0x4fd34d(0x29b)]=_0x2f4ee9,this[_0x4fd34d(0x1ff)]=_0x3a837d,this[_0x4fd34d(0x22b)]=_0x59aeb6,this['_docTransformSelectionsService']=_0x29ae5a,this['_docSyncEditingCollabCursorService']=_0x5ac894,this[_0x4fd34d(0x196)]=_0x548c32,this['_localeService']=_0x1a1bf2,this[_0x4fd34d(0x32f)]());}['_initEntityListener'](){const _0xddccfd=_0x3504c5;this[_0xddccfd(0x2fd)](this[_0xddccfd(0x29b)][_0xddccfd(0x250)][_0xddccfd(0x336)](_0x184e88=>{const _0x245679=_0xddccfd,_0x210e13=this['_docStateChangeManagerService']['docStateChange$']['subscribe'](_0xaa0eca=>{const _0x300de6=_0x3f6f;if(_0xaa0eca==null)return;const {unitId:_0x238bf9,redoState:_0x135c90,commandId:_0x10a838}=_0xaa0eca;if(_0x238bf9!==_0x184e88[_0x300de6(0x267)])return;const _0x20ffcf={'id':_0x10a838,'type':_0x441e2b[_0x300de6(0x38e)],'params':{'unitId':_0x238bf9,'actions':_0x135c90[_0x300de6(0x22e)],'textRanges':null}};_0x184e88[_0x300de6(0x2c8)](_0x20ffcf);});if(_0x184e88['disposeWithMe'](_0x210e13),_0x184e88 instanceof _0x4404c6){const _0x24e621={'onTransformIME':_0x540947=>this[_0x245679(0x1ff)][_0x245679(0x1c2)](_0x540947),'onTransformState':_0x86943=>this[_0x245679(0x22b)][_0x245679(0x26d)](_0x86943),'onTransformSelections':_0x26e9fb=>this[_0x245679(0x3a3)][_0x245679(0x31b)](_0x26e9fb),'onSyncEditingCollabCursor':_0x58be55=>this['_docSyncEditingCollabCursorService'][_0x245679(0x29c)](_0x58be55),'onTransformRemoteChangesetByIMECache':_0xf4e023=>this['_docTransformIMECacheService'][_0x245679(0x35a)](_0xf4e023),'onTransformRemoteChangesetByStateCache':_0x15f20c=>this[_0x245679(0x22b)]['transformRemoteChangeset'](_0x15f20c)};_0x184e88[_0x245679(0x3c1)](_0x24e621);}}));}};de=In([U(0x0,_0x13fac2(_0x48cc88)),U(0x1,_0x13fac2(_0x4e7e15)),U(0x2,_0x13fac2(_e)),U(0x3,_0x13fac2(he)),U(0x4,_0x13fac2(ue)),U(0x5,_0x13fac2(Ke)),U(0x6,_0x1b730d),U(0x7,_0x13fac2(_0x21a3cc))],de);var Q=(_0x2be957=>(_0x2be957[_0x2be957[_0x3504c5(0x35f)]=0x0]=_0x3504c5(0x35f),_0x2be957[_0x2be957['OK']=0x1]='OK',_0x2be957[_0x2be957[_0x3504c5(0x3d4)]=0x2]=_0x3504c5(0x3d4),_0x2be957[_0x2be957[_0x3504c5(0x223)]=0x3]='PERMISSION_DENIED',_0x2be957[_0x2be957['NOT_FOUND']=0x4]=_0x3504c5(0x33f),_0x2be957[_0x2be957['UNAUTHENTICATED']=0x5]=_0x3504c5(0x2d4),_0x2be957[_0x2be957['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2be957[_0x2be957[_0x3504c5(0x1cd)]=0x7]=_0x3504c5(0x1cd),_0x2be957[_0x2be957[_0x3504c5(0x1eb)]=0x8]=_0x3504c5(0x1eb),_0x2be957[_0x2be957[_0x3504c5(0x251)]=0x9]='COMPLETION_FINISHED',_0x2be957[_0x2be957[_0x3504c5(0x36a)]=0xa]='LOGIN_FAILED',_0x2be957[_0x2be957[_0x3504c5(0x222)]=0xb]=_0x3504c5(0x222),_0x2be957[_0x2be957[_0x3504c5(0x374)]=0xc]=_0x3504c5(0x374),_0x2be957[_0x2be957[_0x3504c5(0x2d9)]=0xd]=_0x3504c5(0x2d9),_0x2be957[_0x2be957[_0x3504c5(0x1ba)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x2be957[_0x2be957[_0x3504c5(0x318)]=0xf]=_0x3504c5(0x318),_0x2be957[_0x2be957[_0x3504c5(0x315)]=0x10]=_0x3504c5(0x315),_0x2be957[_0x2be957[_0x3504c5(0x349)]=0x64]=_0x3504c5(0x349),_0x2be957[_0x2be957[_0x3504c5(0x390)]=0x65]=_0x3504c5(0x390),_0x2be957[_0x2be957[_0x3504c5(0x399)]=0xc9]='USER_NOT_FOUND',_0x2be957[_0x2be957['USER_IS_ANONYMOUS']=0xca]=_0x3504c5(0x3d1),_0x2be957[_0x2be957['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2be957[_0x2be957[_0x3504c5(0x384)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2be957[_0x2be957['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x3504c5(0x397),_0x2be957[_0x2be957[_0x3504c5(0x371)]=0x1773]=_0x3504c5(0x371),_0x2be957[_0x2be957['APPLY_REJECT']=0x1b59]=_0x3504c5(0x304),_0x2be957[_0x2be957[_0x3504c5(0x3b8)]=0x1b5a]=_0x3504c5(0x3b8),_0x2be957[_0x2be957['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2be957[_0x2be957[_0x3504c5(0x200)]=0x1b5c]=_0x3504c5(0x200),_0x2be957[_0x2be957[_0x3504c5(0x2c6)]=0x1b5d]=_0x3504c5(0x2c6),_0x2be957[_0x2be957['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2be957[_0x2be957[_0x3504c5(0x27c)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x2be957[_0x2be957[_0x3504c5(0x353)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x2be957[_0x2be957[_0x3504c5(0x3b6)]=0x232b]=_0x3504c5(0x3b6),_0x2be957[_0x2be957[_0x3504c5(0x1d7)]=0x232c]=_0x3504c5(0x1d7),_0x2be957[_0x2be957[_0x3504c5(0x1b3)]=0x232d]=_0x3504c5(0x1b3),_0x2be957[_0x2be957[_0x3504c5(0x198)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2be957[_0x2be957[_0x3504c5(0x393)]=0x2712]=_0x3504c5(0x393),_0x2be957[_0x2be957['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3504c5(0x1b9),_0x2be957[_0x2be957[_0x3504c5(0x20f)]=0x2714]=_0x3504c5(0x20f),_0x2be957[_0x2be957[_0x3504c5(0x3b9)]=0x271a]=_0x3504c5(0x3b9),_0x2be957[_0x2be957[_0x3504c5(0x25a)]=0x271b]=_0x3504c5(0x25a),_0x2be957[_0x2be957[_0x3504c5(0x235)]=0x271c]=_0x3504c5(0x235),_0x2be957[_0x2be957['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x3504c5(0x398),_0x2be957[_0x2be957[_0x3504c5(0x39b)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2be957[_0x2be957[_0x3504c5(0x211)]=0x271f]=_0x3504c5(0x211),_0x2be957[_0x2be957[_0x3504c5(0x19a)]=0x2720]=_0x3504c5(0x19a),_0x2be957[_0x2be957[_0x3504c5(0x1fb)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2be957[_0x2be957['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x3504c5(0x23c),_0x2be957[_0x2be957['INVALID_INVITE_CODE']=0x2ee2]=_0x3504c5(0x29d),_0x2be957[_0x2be957[_0x3504c5(0x34d)]=0x2ee3]=_0x3504c5(0x34d),_0x2be957[_0x2be957[_0x3504c5(0x28c)]=0x2ee4]=_0x3504c5(0x28c),_0x2be957[_0x2be957[_0x3504c5(0x2b7)]=0x2ee5]=_0x3504c5(0x2b7),_0x2be957[_0x2be957[_0x3504c5(0x22d)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x2be957[_0x2be957[_0x3504c5(0x382)]=0x32ca]=_0x3504c5(0x382),_0x2be957[_0x2be957[_0x3504c5(0x268)]=0x32cb]=_0x3504c5(0x268),_0x2be957[_0x2be957['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x2be957[_0x2be957[_0x3504c5(0x1a4)]=0x36b2]=_0x3504c5(0x1a4),_0x2be957[_0x2be957[_0x3504c5(0x24b)]=0x36b3]=_0x3504c5(0x24b),_0x2be957[_0x2be957[_0x3504c5(0x1ee)]=0x36b4]=_0x3504c5(0x1ee),_0x2be957[_0x2be957[_0x3504c5(0x3bd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2be957[_0x2be957['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x3504c5(0x233),_0x2be957[_0x2be957[_0x3504c5(0x23f)]=0x37dd]=_0x3504c5(0x23f),_0x2be957[_0x2be957[_0x3504c5(0x38b)]=0x3a99]=_0x3504c5(0x38b),_0x2be957[_0x2be957[_0x3504c5(0x378)]=0x3a9a]=_0x3504c5(0x378),_0x2be957[_0x2be957[_0x3504c5(0x2ed)]=0x3a9b]=_0x3504c5(0x2ed),_0x2be957[_0x2be957[_0x3504c5(0x2b5)]=0x3a9c]=_0x3504c5(0x2b5),_0x2be957[_0x2be957[_0x3504c5(0x295)]=0x3a9d]=_0x3504c5(0x295),_0x2be957[_0x2be957[_0x3504c5(0x392)]=0x3a9e]=_0x3504c5(0x392),_0x2be957[_0x2be957[_0x3504c5(0x256)]=0x3a9f]=_0x3504c5(0x256),_0x2be957[_0x2be957[_0x3504c5(0x259)]=-0x1]=_0x3504c5(0x259),_0x2be957))(Q||{});function gn(_0x3c1229){const _0x499118=_0x3504c5;var _0x41e163,_0x1acbb6;const _0x40bf97=(_0x41e163=_0x3c1229[_0x499118(0x22f)])==null?void 0x0:_0x41e163['stage'],_0x471a22=((_0x1acbb6=_0x3c1229[_0x499118(0x22f)])==null?void 0x0:_0x1acbb6[_0x499118(0x1a7)])||0x0;return _0x40bf97===_0x41b0a9['START_CALCULATION']&&_0x471a22>0x0;}function vn(_0x427c93){const _0x18626f=_0x3504c5;return _0x427c93[_0x18626f(0x264)]===_0x55b129[_0x18626f(0x2c9)];}var En=Object['getOwnPropertyDescriptor'],pn=(_0x58ea08,_0x2e9625,_0x3d9013,_0x5656f7)=>{const _0x32bc69=_0x3504c5;for(var _0x3ca8e5=_0x5656f7>0x1?void 0x0:_0x5656f7?En(_0x2e9625,_0x3d9013):_0x2e9625,_0x65804a=_0x58ea08[_0x32bc69(0x329)]-0x1,_0x4bb234;_0x65804a>=0x0;_0x65804a--)(_0x4bb234=_0x58ea08[_0x65804a])&&(_0x3ca8e5=_0x4bb234(_0x3ca8e5)||_0x3ca8e5);return _0x3ca8e5;},w=(_0x2ff639,_0xcd24c7)=>(_0xc1b86d,_0x12ee21)=>_0xcd24c7(_0xc1b86d,_0x12ee21,_0x2ff639);const On=_0x3504c5(0x381),Tn=_0x3504c5(0x2eb),Cn=_0x3504c5(0x389);let fe=class extends _0x44caae{constructor(_0x3ad6e1,_0x4896a4,_0x452cec,_0x389876,_0x38ff84,_0x3861b3,_0x2c08a7){const _0x115935=_0x3504c5;super(),_(this,_0x115935(0x31d),null),_(this,_0x115935(0x1df),0x0),_(this,_0x115935(0x20c),0x0),_(this,'_taskIds',[]),_(this,_0x115935(0x317),0x0),(this[_0x115935(0x196)]=_0x3ad6e1,this['_commandService']=_0x4896a4,this[_0x115935(0x305)]=_0x452cec,this[_0x115935(0x327)]=_0x389876,this[_0x115935(0x1a8)]=_0x38ff84,this['_logService']=_0x3861b3,this[_0x115935(0x30a)]=_0x2c08a7,this[_0x115935(0x269)]());}['_initCommandInterceptor'](){const _0xf61f69=_0x3504c5;this[_0xf61f69(0x2fd)](this[_0xf61f69(0x213)][_0xf61f69(0x321)]((_0x50d192,_0x21288c)=>{const _0x27fc42=_0xf61f69;if(_0x50d192['id']!==_0x4b0c98['id'])return;const _0x43b218=_0x50d192[_0x27fc42(0x380)];if(!this[_0x27fc42(0x2e3)](_0x43b218[_0x27fc42(0x1e3)]))return;if(!this[_0x27fc42(0x356)]())throw this[_0x27fc42(0x1fe)](_0x50d192,_0x21288c),this['_showGuardMessage'](),new _0x4a6f3c();})),this['disposeWithMe'](this[_0xf61f69(0x213)][_0xf61f69(0x383)]((_0x5d6f9d,_0x5ee08c)=>{const _0x1121aa=_0xf61f69;if(_0x5d6f9d['id']!==_0x1d37ca['id'])return;const _0x97f3a1=_0x5d6f9d[_0x1121aa(0x380)];if(gn(_0x97f3a1)){const _0xf004fc=_0x144598();this[_0x1121aa(0x19c)][_0x1121aa(0x2a3)](_0xf004fc),this[_0x1121aa(0x31f)](_0xf004fc);}else{if(vn(_0x97f3a1)&&this[_0x1121aa(0x19c)]['length']>0x0){const _0xead3bf=this['_taskIds'][_0x1121aa(0x208)]();this[_0x1121aa(0x1de)](_0xead3bf);}}}));}['dispose'](){const _0x5bd9a9=_0x3504c5;super['dispose'](),this[_0x5bd9a9(0x36d)](),this[_0x5bd9a9(0x19c)]=[],this[_0x5bd9a9(0x20c)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x3504c5(0x1fe)](_0x24aa98,_0x19262f){const _0x3f279e=_0x3504c5;for(let _0x235068=0x0;_0x235068<0x1e;_0x235068++)try{if(await this[_0x3f279e(0x1a5)](),this[_0x3f279e(0x356)]()){this['_applyCommand'](_0x24aa98,_0x19262f),this[_0x3f279e(0x196)][_0x3f279e(0x332)]({'content':this[_0x3f279e(0x30a)]['t'](_0x3f279e(0x37a)),'type':_0x520d9c[_0x3f279e(0x1d9)]});return;}await new Promise(_0x5df684=>{const _0x35f034=_0x3f279e;this[_0x35f034(0x31d)]=window[_0x35f034(0x197)](_0x5df684,0x3e8);});}catch(_0x101ade){this[_0x3f279e(0x36b)][_0x3f279e(0x1b1)](_0x101ade);}this['_messageService'][_0x3f279e(0x332)]({'content':this[_0x3f279e(0x30a)]['t'](_0x3f279e(0x1da)),'type':_0x520d9c[_0x3f279e(0x230)]});}[_0x3504c5(0x3af)](_0xcb10bf,_0x11e3d3){const _0x5a5676=_0x3504c5;try{this['_commandService']['executeCommand'](_0xcb10bf['id'],_0xcb10bf[_0x5a5676(0x380)],_0x11e3d3);}catch(_0x52543e){this[_0x5a5676(0x36b)][_0x5a5676(0x1b1)](_0x52543e);}}['_setFormulaLimitStatus'](_0x2dce3b,_0x4e0991){const _0x3ea387=_0x3504c5;_0x4e0991<this[_0x3ea387(0x317)]||(this['_lastResponseTimestamp']=_0x4e0991,this['_maxFormulaLimit']=Number[_0x3ea387(0x2e9)](_0x2dce3b[_0x3ea387(0x199)]),this['_currentUsage']=Number[_0x3ea387(0x2e9)](_0x2dce3b[_0x3ea387(0x34a)]));}async[_0x3504c5(0x31f)](_0x585d96){const _0x46c403=_0x3504c5;var _0x3cd28b,_0x19921f;const _0x2918c5=Date[_0x46c403(0x3db)]();try{const _0x2eeea8=((_0x3cd28b=this[_0x46c403(0x305)][_0x46c403(0x27f)](_0x3c0423))==null?void 0x0:_0x3cd28b[_0x46c403(0x1f2)])||Tn,_0x1123f4=(await this['_httpService'][_0x46c403(0x3dd)](_0x2eeea8,{'body':JSON[_0x46c403(0x2d6)]({'taskId':_0x585d96})}))[_0x46c403(0x25c)];if(((_0x19921f=_0x1123f4[_0x46c403(0x1b1)])==null?void 0x0:_0x19921f[_0x46c403(0x2c7)])!==Q['OK'])return;this[_0x46c403(0x281)](_0x1123f4[_0x46c403(0x28b)],_0x2918c5);}catch(_0x5a4372){this[_0x46c403(0x36b)][_0x46c403(0x1b1)](_0x5a4372);}}async['_getFormulaLimitStatus'](_0x5413b4){const _0xe90194=_0x3504c5;var _0x1a3db2,_0x212e44;const _0x4f1a33=Date[_0xe90194(0x3db)]();try{const _0xc19b49=((_0x1a3db2=this[_0xe90194(0x305)]['getConfig'](_0x3c0423))==null?void 0x0:_0x1a3db2[_0xe90194(0x2b6)])||On,_0x29e14c=_0x5413b4?_0xc19b49+_0xe90194(0x215)+encodeURIComponent(_0x5413b4):_0xc19b49,_0x164e1e=(await this[_0xe90194(0x327)]['get'](_0x29e14c))[_0xe90194(0x25c)];if(((_0x212e44=_0x164e1e[_0xe90194(0x1b1)])==null?void 0x0:_0x212e44[_0xe90194(0x2c7)])!==Q['OK'])return;this[_0xe90194(0x281)](_0x164e1e[_0xe90194(0x28b)],_0x4f1a33);}catch(_0x50b5ed){this[_0xe90194(0x36b)][_0xe90194(0x1b1)](_0x50b5ed);}}async[_0x3504c5(0x1de)](_0x3c7950){const _0x424376=_0x3504c5;var _0x3aae9b,_0x46e57a;const _0x467975=Date[_0x424376(0x3db)]();try{const _0x3211a1=((_0x3aae9b=this[_0x424376(0x305)][_0x424376(0x27f)](_0x3c0423))==null?void 0x0:_0x3aae9b['releaseFormulaLimitUrl'])||Cn,_0x16d226=(await this[_0x424376(0x327)][_0x424376(0x3dd)](_0x3211a1,{'body':JSON['stringify']({'taskId':_0x3c7950})}))[_0x424376(0x25c)];if(((_0x46e57a=_0x16d226[_0x424376(0x1b1)])==null?void 0x0:_0x46e57a[_0x424376(0x2c7)])!==Q['OK'])return;this[_0x424376(0x281)](_0x16d226[_0x424376(0x28b)],_0x467975);}catch(_0x2a5a3c){this[_0x424376(0x36b)][_0x424376(0x1b1)](_0x2a5a3c);}}['_checkCalculationAvailable'](){const _0x423029=_0x3504c5;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x423029(0x20c)]>0x0;}[_0x3504c5(0x36d)](){const _0x4f5316=_0x3504c5;this[_0x4f5316(0x31d)]&&(clearTimeout(this['_pollingInterval']),this[_0x4f5316(0x31d)]=null);}[_0x3504c5(0x26e)](){const _0x49ca5c=_0x3504c5;this[_0x49ca5c(0x196)][_0x49ca5c(0x332)]({'content':this[_0x49ca5c(0x30a)]['t'](_0x49ca5c(0x31c)),'type':_0x520d9c[_0x49ca5c(0x3b0)]});}[_0x3504c5(0x2e3)](_0x4cff99){const _0x432ff3=_0x3504c5;for(const _0x320506 of _0x4cff99){const {unitId:_0x146f0e,sheetId:_0x3992ab,range:_0x551a6e}=_0x320506,_0x44dd77=this[_0x432ff3(0x1a8)][_0x432ff3(0x3aa)](_0x146f0e);if(!_0x44dd77)continue;const _0x5e973b=_0x44dd77[_0x432ff3(0x1fd)](_0x3992ab);if(!_0x5e973b)continue;const _0x54b341=_0x5e973b['getCellMatrix']();for(let _0x3f6b2d=_0x551a6e['startRow'];_0x3f6b2d<=_0x551a6e[_0x432ff3(0x36c)];_0x3f6b2d++)for(let _0x69779d=_0x551a6e[_0x432ff3(0x1c7)];_0x69779d<=_0x551a6e[_0x432ff3(0x3da)];_0x69779d++){const _0x5ddfef=_0x54b341[_0x432ff3(0x320)](_0x3f6b2d,_0x69779d);if(_0x5ddfef&&(_0x1fa515(_0x5ddfef['f'])||_0x315c33(_0x5ddfef['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x13fac2(_0x1b730d)),w(0x1,_0x378028),w(0x2,_0x10aea5),w(0x3,_0x13fac2(_0x59d0d5)),w(0x4,_0x437d75),w(0x5,_0x3b520f),w(0x6,_0x13fac2(_0x21a3cc))],fe);var Rn=Object[_0x3504c5(0x1c3)],Dn=(_0x54ed40,_0x48668e,_0x65e0b9,_0x2f286a)=>{for(var _0x194014=_0x2f286a>0x1?void 0x0:_0x2f286a?Rn(_0x48668e,_0x65e0b9):_0x48668e,_0xc37238=_0x54ed40['length']-0x1,_0xc92041;_0xc37238>=0x0;_0xc37238--)(_0xc92041=_0x54ed40[_0xc37238])&&(_0x194014=_0xc92041(_0x194014)||_0x194014);return _0x194014;},be=(_0x138f11,_0x22287e)=>(_0x29d246,_0x3e1741)=>_0x22287e(_0x29d246,_0x3e1741,_0x138f11);let Be=class extends _0x44caae{constructor(_0x9086c3,_0x22c6b5,_0x27a2be){const _0x1fcff5=_0x3504c5;super(),_(this,_0x1fcff5(0x2fb),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x1fcff5(0x191),!0x1),(this[_0x1fcff5(0x305)]=_0x9086c3,this[_0x1fcff5(0x19f)]=_0x22c6b5,this[_0x1fcff5(0x2e7)]=_0x27a2be);}[_0x3504c5(0x2a0)](){const _0x27e6e5=_0x3504c5;this[_0x27e6e5(0x191)]=!0x0;}[_0x3504c5(0x2d2)](){this['_disabled']=!0x1;}get[_0x3504c5(0x36f)](){const _0x1fda18=_0x3504c5;return this[_0x1fda18(0x210)];}['dispose'](){const _0x1e36d3=_0x3504c5;this[_0x1e36d3(0x1b0)]()[_0x1e36d3(0x209)](()=>super[_0x1e36d3(0x24a)]());}async[_0x3504c5(0x308)](_0x306f7d){const _0x5467f4=_0x3504c5;return this[_0x5467f4(0x191)]?null:this[_0x5467f4(0x19f)][_0x5467f4(0x2f7)](_0xb4d1e1(_0x306f7d));}async[_0x3504c5(0x1d3)](_0x2b4f87,_0x2c71f6){return!!this['_localStorageService']['setItem'](_0x2b4f87,_0x2c71f6);}[_0x3504c5(0x2e6)](_0x40d8fd,_0x11b564,_0x109817,_0x2e82dd){const _0x54dc64=_0x3504c5,_0x1c8e3c=this[_0x54dc64(0x2e7)][_0x54dc64(0x2e0)](_0x40d8fd);this[_0x54dc64(0x2fb)][_0x54dc64(0x32b)](_0x40d8fd,{'unitID':_0x40d8fd,'type':_0x11b564,'awaitingChangeset':_0x109817,'mutations':_0x2e82dd,'rev':_0x1c8e3c}),this[_0x54dc64(0x210)][_0x54dc64(0x2db)](_0x40d8fd)||this[_0x54dc64(0x1c1)](_0x40d8fd);}[_0x3504c5(0x1c1)](_0x4a383f){const _0x150144=_0x3504c5,_0x3212a5=this['_getSaveTimeout']();_0x3212a5===0x0?this[_0x150144(0x360)](_0x4a383f):this[_0x150144(0x210)][_0x150144(0x32b)](_0x4a383f,setTimeout(()=>this[_0x150144(0x360)](_0x4a383f),_0x3212a5));}[_0x3504c5(0x2d0)](){const _0x378e39=_0x3504c5;var _0x478ca9;return(_0x478ca9=this['_configService'][_0x378e39(0x27f)](_0x43f6ef))!=null?_0x478ca9:_0x46d03f;}[_0x3504c5(0x360)](_0x1c90d4){const _0x3825fd=_0x3504c5,_0x50f445=this[_0x3825fd(0x210)][_0x3825fd(0x1c0)](_0x1c90d4);return _0x50f445!==void 0x0&&window[_0x3825fd(0x2ee)](_0x50f445),this[_0x3825fd(0x19f)][_0x3825fd(0x224)](_0xb4d1e1(_0x1c90d4),this[_0x3825fd(0x2fb)][_0x3825fd(0x1c0)](_0x1c90d4))[_0x3825fd(0x209)](()=>this[_0x3825fd(0x210)]['delete'](_0x1c90d4));}async[_0x3504c5(0x1b0)](){const _0x4d5e1b=_0x3504c5,_0x421af0=[];this['_saveTaskMap'][_0x4d5e1b(0x3c9)]((_0x277ae8,_0x3ca534)=>{const _0x468037=_0x4d5e1b;window['clearTimeout'](_0x277ae8),_0x421af0[_0x468037(0x2a3)](this['_saveCache'](_0x3ca534)[_0x468037(0x209)](()=>{const _0x3519c1=_0x468037;this['_saveTaskMap'][_0x3519c1(0x312)](_0x3ca534);}));}),await Promise[_0x4d5e1b(0x1d4)](_0x421af0);}};Be=Dn([be(0x0,_0x10aea5),be(0x1,_0x3a9490),be(0x2,_0x13fac2(_0x1fe514))],Be);class bn extends _0x4dd7f6{constructor(){const _0x59c5db=_0x3504c5;super(),_(this,_0x59c5db(0x220)),this[_0x59c5db(0x220)]=_0x18c819(window,_0x59c5db(0x1f6))['pipe'](_0xb04df5(this[_0x59c5db(0x21c)]),_0x72b1f0(0x1),_0x153ed4(void 0x0));}[_0x3504c5(0x3c7)](_0x289bcc,_0x499a6a,_0x3fd813=!0x1){const _0x5ad29f=_0x3504c5,_0x29e2f9=new URL(window[_0x5ad29f(0x1f7)]['href']);_0x29e2f9[_0x5ad29f(0x1c8)][_0x5ad29f(0x32b)](_0x289bcc,_0x499a6a),_0x3fd813?window[_0x5ad29f(0x3b1)][_0x5ad29f(0x344)]('','',_0x29e2f9[_0x5ad29f(0x363)]()):window[_0x5ad29f(0x3b1)]['pushState']('','',_0x29e2f9[_0x5ad29f(0x363)]());}[_0x3504c5(0x24e)](_0xbcaa91,_0x31d922=!0x1){const _0x3014d8=_0x3504c5,_0x1136de=new URL(window[_0x3014d8(0x1f7)]['href']);_0x1136de[_0x3014d8(0x1c8)]['delete'](_0xbcaa91),_0x31d922?window[_0x3014d8(0x3b1)][_0x3014d8(0x344)]('','',_0x1136de[_0x3014d8(0x363)]()):window[_0x3014d8(0x3b1)]['pushState']('','',_0x1136de[_0x3014d8(0x363)]());}[_0x3504c5(0x391)](_0x2a25e4){const _0x4f6433=_0x3504c5;var _0x382191;return(_0x382191=new URL(window['location']['href'])['searchParams'][_0x4f6433(0x1c0)](_0x2a25e4))!=null?_0x382191:void 0x0;}}var Nn=Object[_0x3504c5(0x359)],Un=Object[_0x3504c5(0x1c3)],Ln=(_0x41b103,_0x3f0ab3,_0x4ef834)=>_0x3f0ab3 in _0x41b103?Nn(_0x41b103,_0x3f0ab3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef834}):_0x41b103[_0x3f0ab3]=_0x4ef834,Mn=(_0x2fff1b,_0x52b56c,_0xf20daf,_0x22e619)=>{const _0x51b11f=_0x3504c5;for(var _0x5ed359=_0x22e619>0x1?void 0x0:_0x22e619?Un(_0x52b56c,_0xf20daf):_0x52b56c,_0x4472ed=_0x2fff1b[_0x51b11f(0x329)]-0x1,_0x4594d8;_0x4472ed>=0x0;_0x4472ed--)(_0x4594d8=_0x2fff1b[_0x4472ed])&&(_0x5ed359=_0x4594d8(_0x5ed359)||_0x5ed359);return _0x5ed359;},Ne=(_0x1a1dd1,_0xc1fc7d)=>(_0x43721b,_0x223501)=>_0xc1fc7d(_0x43721b,_0x223501,_0x1a1dd1),An=(_0x2a2f54,_0x4c4dec,_0x3d7d11)=>Ln(_0x2a2f54,_0x4c4dec+'',_0x3d7d11);const Pn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Fe=class extends _0xfc0127{constructor(_0x31bb24=at,_0x57f5e5,_0x306d48,_0x406cb3){const _0x2f3dc4=_0x3504c5;super(),this[_0x2f3dc4(0x385)]=_0x31bb24,this[_0x2f3dc4(0x1b8)]=_0x57f5e5,this[_0x2f3dc4(0x23b)]=_0x306d48,this[_0x2f3dc4(0x305)]=_0x406cb3;const {..._0x1e8cc0}=_0x27de3f({},at,this[_0x2f3dc4(0x385)]);this[_0x2f3dc4(0x305)]['setConfig'](ln,_0x1e8cc0);}[_0x3504c5(0x343)](){const _0x398cce=_0x3504c5;this[_0x398cce(0x26c)](),this[_0x398cce(0x2e2)]();}[_0x3504c5(0x334)](){const _0x5127ba=_0x3504c5;this[_0x5127ba(0x3cd)]();}[_0x3504c5(0x26c)](){const _0x1bdb87=_0x3504c5;var _0x2f5052;const _0x42a51f=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x5af1a8,{'useClass':_0x476d5f}],[_0x55c362,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x22a61d(this[_0x1bdb87(0x23b)],_0x29e569(_0x42a51f,(_0x2f5052=this[_0x1bdb87(0x385)])==null?void 0x0:_0x2f5052['override']));}[_0x3504c5(0x3cd)](){const _0x57d811=_0x3504c5;this['disposeWithMe'](this[_0x57d811(0x1b8)]['registerRenderModule'](_0x3d4d2c['UNIVER_DOC'],[$e])),this[_0x57d811(0x2fd)](this[_0x57d811(0x1b8)][_0x57d811(0x2ae)](_0x3d4d2c[_0x57d811(0x3dc)],[xe]));}[_0x3504c5(0x2e2)](){const _0x3f00ed=_0x3504c5;_0x1e8471(this[_0x3f00ed(0x23b)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,_0x3504c5(0x2d5),Pn),Fe=Mn([_0xc853a6(_0x22881b),Ne(0x1,_0x5dc693),Ne(0x2,_0x13fac2(_0x4da47b)),Ne(0x3,_0x10aea5)],Fe);var wn=Object[_0x3504c5(0x1c3)],yn=(_0x4bbbab,_0x4dca54,_0x2db037,_0xdd8df6)=>{const _0x3a4540=_0x3504c5;for(var _0x5a7404=_0xdd8df6>0x1?void 0x0:_0xdd8df6?wn(_0x4dca54,_0x2db037):_0x4dca54,_0x48e5ad=_0x4bbbab[_0x3a4540(0x329)]-0x1,_0x19f987;_0x48e5ad>=0x0;_0x48e5ad--)(_0x19f987=_0x4bbbab[_0x48e5ad])&&(_0x5a7404=_0x19f987(_0x5a7404)||_0x5a7404);return _0x5a7404;},Z=(_0x1d9233,_0x284648)=>(_0x7b0ff6,_0x16dac3)=>_0x284648(_0x7b0ff6,_0x16dac3,_0x1d9233);let _t=class extends _0x3d93bc{constructor(_0xb2b5cd,_0x1b1bdd,_0x3aea59,_0x56c500,_0x2117b5){super(_0xb2b5cd,_0x1b1bdd,_0x3aea59,_0x56c500,_0x2117b5);}async[_0x3504c5(0x2cf)](_0x40b5cb){const _0x956a45=_0x3504c5,_0x2c9ec0=await this['_getSessionTicket'](),_0x1fac83=this[_0x956a45(0x30d)](_0x40b5cb,_0x2c9ec0);return this[_0x956a45(0x22c)](_0x1fac83);}['_createSocketURL'](_0x4f9142,_0x12e88e){const _0x4af201=_0x3504c5,_0x3f8a0e=typeof window>'u'?new URL(_0x4f9142):new URL(_0x4f9142,window[_0x4af201(0x1f7)][_0x4af201(0x262)]);_0x3f8a0e[_0x4af201(0x1c8)]['set'](_0x4af201(0x1a1),_0x12e88e);const _0x5ef722=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4af201(0x1f7)]['search']);return _0x5ef722[_0x4af201(0x1c0)](_0x4af201(0x27a))&&_0x3f8a0e[_0x4af201(0x1c8)]['set'](_0x4af201(0x27a),_0x5ef722[_0x4af201(0x1c0)]('runId')),_0x3f8a0e[_0x4af201(0x363)]();}async[_0x3504c5(0x3c5)](){const _0x14b01b=_0x3504c5;var _0x57fbcf,_0x4c576d,_0x510e89;const _0x24a88f=this[_0x14b01b(0x305)]['getConfig'](_0x3c0423),_0x1267c8=(_0x57fbcf=_0x24a88f==null?void 0x0:_0x24a88f[_0x14b01b(0x237)])!=null?_0x57fbcf:_0x31c350;return(_0x510e89=(_0x4c576d=(await this[_0x14b01b(0x327)][_0x14b01b(0x1c0)](_0x1267c8,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x4c576d[_0x14b01b(0x1f8)])!=null?_0x510e89:'';}};function _0x3f6f(_0x59a2bd,_0x125518){const _0x13f0a3=_0x13f0();return _0x3f6f=function(_0x3f6fd2,_0x548f95){_0x3f6fd2=_0x3f6fd2-0x190;let _0x9d785=_0x13f0a3[_0x3f6fd2];return _0x9d785;},_0x3f6f(_0x59a2bd,_0x125518);}_t=yn([Z(0x0,_0x13fac2(_0x4da47b)),Z(0x1,_0x13fac2(_0x59d0d5)),Z(0x2,_0x10aea5),Z(0x3,_0x3b520f),Z(0x4,_0xe8f155)],_t);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x48f97f,_0x2192f9,_0x532e8f,_0x49f607)=>{const _0x6b53e9=_0x3504c5;for(var _0x5f0c92=_0x49f607>0x1?void 0x0:_0x49f607?$n(_0x2192f9,_0x532e8f):_0x2192f9,_0x28c250=_0x48f97f[_0x6b53e9(0x329)]-0x1,_0x55d2d6;_0x28c250>=0x0;_0x28c250--)(_0x55d2d6=_0x48f97f[_0x28c250])&&(_0x5f0c92=_0x55d2d6(_0x5f0c92)||_0x5f0c92);return _0x5f0c92;},Ue=(_0x464883,_0x1e43a5)=>(_0x1912cf,_0x169223)=>_0x1e43a5(_0x1912cf,_0x169223,_0x464883);let ht=class extends _0x44caae{constructor(_0x31c50a,_0x264346,_0x23b21b){const _0x144bda=_0x3504c5;super(),this[_0x144bda(0x1ec)]=_0x31c50a,this[_0x144bda(0x327)]=_0x264346,this[_0x144bda(0x305)]=_0x23b21b;}async[_0x3504c5(0x1f1)](_0x95222b,_0x2b8224,_0x2c4d1d,..._0x4db176){const _0x46e7dd=_0x3504c5;var _0x525316,_0x22144e,_0x8df527,_0x4a7534;const _0x86d7a4=this[_0x46e7dd(0x1ec)][_0x46e7dd(0x1c4)]();if(!_0x86d7a4)throw new Error(_0x46e7dd(0x28d));const _0x26a59c=((_0x525316=this[_0x46e7dd(0x305)][_0x46e7dd(0x27f)](_0x45cf52))!=null?_0x525316:_0x1e545f)+'/'+_0x95222b+'/run/'+_0x2b8224,_0x108294=new URL(window[_0x46e7dd(0x1f7)][_0x46e7dd(0x19d)]),_0x567f68={'scriptId':_0x95222b,'runId':(_0x22144e=_0x108294['searchParams']['get'](_0x46e7dd(0x27a)))!=null?_0x22144e:'','function':_0x2b8224,'unitId':_0x86d7a4['getUnitId'](),'argsOfFunction':JSON[_0x46e7dd(0x2d6)](_0x4db176),'invokeId':(_0x8df527=_0x2c4d1d['invokeId'])!=null?_0x8df527:'','executionId':(_0x4a7534=_0x2c4d1d[_0x46e7dd(0x2fc)])!=null?_0x4a7534:''};try{const _0x35d02c=await this[_0x46e7dd(0x327)][_0x46e7dd(0x3dd)](_0x26a59c,{'body':_0x567f68});return _0x35d02c[_0x46e7dd(0x25c)][_0x46e7dd(0x1b1)]&&_0x35d02c[_0x46e7dd(0x25c)][_0x46e7dd(0x1b1)][_0x46e7dd(0x2c7)]!==Q['OK']?_0x46e7dd(0x292):_0x35d02c[_0x46e7dd(0x25c)][_0x46e7dd(0x21a)];}catch{return'Failed';}}};ht=xn([Ue(0x0,_0x437d75),Ue(0x1,_0x13fac2(_0x59d0d5)),Ue(0x2,_0x10aea5)],ht);const ut=0x7530,dt=_0x3504c5(0x242);class ir extends _0x44caae{constructor(){const _0x164ead=_0x3504c5;super(),_(this,_0x164ead(0x2b3),_0x144598()),_(this,_0x164ead(0x337),new Set()),_(this,_0x164ead(0x1b7),new Map()),_(this,_0x164ead(0x2be),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x164ead(0x19b)]();}['dispose'](){const _0x20ff4=_0x3504c5;super['dispose'](),this[_0x20ff4(0x351)][_0x20ff4(0x3c9)]((_0x3094a4,_0x4f0928)=>this[_0x20ff4(0x293)](_0x4f0928)),this[_0x20ff4(0x2be)]&&window[_0x20ff4(0x2f5)](this[_0x20ff4(0x2be)]);}[_0x3504c5(0x2c3)](_0x3c4cd4){const _0x4df1ba=_0x3504c5;return this['_ensureSubject'](_0x3c4cd4)[_0x4df1ba(0x37f)](_0x5a2f65());}[_0x3504c5(0x3c3)](_0x296d0c){const _0x2ca5ae=_0x3504c5;this[_0x2ca5ae(0x337)][_0x2ca5ae(0x1fc)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x2ca5ae(0x314)](_0x296d0c),this[_0x2ca5ae(0x2a1)]({'type':0x0,'memberID':this[_0x2ca5ae(0x2b3)],'unitIDs':[_0x296d0c],'isForwarded':!0x1});}[_0x3504c5(0x247)](_0x4a3907){const _0x284116=_0x3504c5;this[_0x284116(0x337)][_0x284116(0x312)](_0x4a3907),this[_0x284116(0x337)][_0x284116(0x1fc)]===0x0&&this[_0x284116(0x2be)]&&window[_0x284116(0x2f5)](this[_0x284116(0x2be)]);}[_0x3504c5(0x19b)](){const _0x2c2106=_0x3504c5;this[_0x2c2106(0x2fd)](_0x2576da(_0x18c819(window,_0x2c2106(0x2ef))[_0x2c2106(0x336)](_0x34bd85=>{if(_0x34bd85['key']!==dt||!_0x34bd85['newValue'])return;const _0x333c1a=JSON['parse'](_0x34bd85['newValue']);this['_handleEvent'](_0x333c1a);}))),window[_0x2c2106(0x2a5)]('unload',()=>this[_0x2c2106(0x2a1)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2c2106(0x277)](this['_selfUnitIDs'])}));}[_0x3504c5(0x255)](_0x22f258){const _0x55defd=_0x3504c5;switch(_0x22f258['type']){case 0x0:this[_0x55defd(0x2da)](_0x22f258);break;case 0x1:this[_0x55defd(0x280)](_0x22f258);break;case 0x2:this[_0x55defd(0x373)](_0x22f258);break;}}[_0x3504c5(0x2da)](_0x5bdf71){const _0x4e4408=_0x3504c5,{unitIDs:_0x1a2583,memberID:_0x5f4686,isForwarded:_0x54ad4c}=_0x5bdf71;_0x1a2583[_0x4e4408(0x3c9)](_0x1903a4=>{const _0x1ff430=_0x4e4408;if(!_0x54ad4c&&this[_0x1ff430(0x1b7)][_0x1ff430(0x2db)](_0x1903a4)&&this[_0x1ff430(0x2bb)](_0x1903a4)[_0x1ff430(0x25d)](_0x38048c[_0x1ff430(0x324)]),!this[_0x1ff430(0x1b7)][_0x1ff430(0x2db)](_0x1903a4)||!this[_0x1ff430(0x1b7)][_0x1ff430(0x1c0)](_0x1903a4)[_0x1ff430(0x2db)](_0x5f4686)){const _0x2499e5=this['_unitOnClients'][_0x1ff430(0x1c0)](_0x1903a4)||new Set();_0x2499e5[_0x1ff430(0x314)](_0x5f4686),this['_unitOnClients'][_0x1ff430(0x32b)](_0x1903a4,_0x2499e5),this[_0x1ff430(0x3d6)](_0x5f4686);}}),_0x54ad4c||this[_0x4e4408(0x2a1)]({'type':0x0,'memberID':this[_0x4e4408(0x2b3)],'unitIDs':[...this[_0x4e4408(0x337)]],'isForwarded':!0x0});}[_0x3504c5(0x3d6)](_0x341125){const _0x3e1473=_0x3504c5;this['_removeClearOtherTimer'](_0x341125);const _0x4b8c11=window[_0x3e1473(0x197)](()=>{const _0x30ab05=_0x3e1473;this[_0x30ab05(0x1b7)][_0x30ab05(0x3c9)](_0x3194e4=>{_0x3194e4['delete'](_0x341125);});},ut*0x2);this[_0x3e1473(0x351)][_0x3e1473(0x32b)](_0x341125,_0x4b8c11);}[_0x3504c5(0x293)](_0x5c7a87){const _0x44eb7d=_0x3504c5;if(this['_clearOtherTimers'][_0x44eb7d(0x2db)](_0x5c7a87)){const _0xc2e681=this[_0x44eb7d(0x351)]['get'](_0x5c7a87);_0xc2e681&&window[_0x44eb7d(0x2ee)](_0xc2e681),this[_0x44eb7d(0x351)]['set'](_0x5c7a87,null);}}[_0x3504c5(0x280)](_0x2179f1){const _0x507a9d=_0x3504c5,{memberID:_0x12df86,unitIDs:_0x35a063}=_0x2179f1;_0x35a063[_0x507a9d(0x3c9)](_0x2219bc=>{const _0x1e518c=_0x507a9d;var _0xd9bed9;const _0x2c8efb=this['_unitOnClients']['get'](_0x2219bc);_0x2c8efb&&(_0x2c8efb[_0x1e518c(0x312)](_0x12df86),(_0xd9bed9=this[_0x1e518c(0x2bb)](_0x2219bc))==null||_0xd9bed9[_0x1e518c(0x25d)](_0x2c8efb[_0x1e518c(0x1fc)]===0x0?_0x38048c['NO_OTHER_CLIENTS_EDITING']:_0x38048c[_0x1e518c(0x324)]));}),this[_0x507a9d(0x293)](_0x12df86);}[_0x3504c5(0x373)](_0x292e32){const _0x180217=_0x3504c5;this[_0x180217(0x3d6)](_0x292e32[_0x180217(0x20d)]);}['_send'](_0x2a8cdf){const _0x5d46c8=_0x3504c5;localStorage[_0x5d46c8(0x224)](dt,JSON[_0x5d46c8(0x2d6)](_0x2a8cdf));}['_scheduleHeartbeat'](){const _0x2b574c=_0x3504c5;this[_0x2b574c(0x2be)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},ut);}[_0x3504c5(0x2bb)](_0x2bcab1){const _0xd4d4a9=_0x3504c5;return this[_0xd4d4a9(0x207)][_0xd4d4a9(0x2db)](_0x2bcab1)||this['_unitStatus'][_0xd4d4a9(0x32b)](_0x2bcab1,new _0x1bb082(_0x38048c[_0xd4d4a9(0x278)])),this['_unitStatus'][_0xd4d4a9(0x1c0)](_0x2bcab1);}}export{_t as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,Pt as IURLService,ht as RemoteUniscriptService,tn as SheetCollabCursorShape,Fe as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService,bn as WebURLService};function _0x13f0(){const _0x15c478=['concat','_updateCollabCursors','selections','_collaborationController','syncEditingCollabCursor','INVALID_INVITE_CODE','round','getViewport','disableLocalCache','_send','subunit','push','unit','addEventListener','assignAColorForMemberID','getActiveSheet','184pTEZph','roomMembers$','loadUnit','beginPath','green.600','max','registerRenderModule','createInstance','_sheetSkeletonManagerService','_imageIoService','_drawTextRange','_id','moveTo','REDEMPTION_CODE_NOT_STARTED','getformulaLimitStatusUrl','INVITE_CODE_ALREADY_BOUND','SYNCED','drawWith','hide','_ensureSubject','_initResize','CONFLICT','_heartbeatTimer','_toggleOnline','path','focused$','_drawAnchor','getUnitStatus$','getCellPositionByOffset','DeleteRangeMoveUpCommandId','APPLY_DUPLICATED','code','onLocalMutation','SUCCESS','collabStatus.fetchMiss','registerBeforeClose','white','m1Prime','range','createSocket','_getSaveTimeout','_syncEditingCollabCursorService','enableLocalCache','mutations','UNAUTHENTICATED','pluginName','stringify','SOCKET_FAILED_RETRY','getSkeleton','EMAIL_VERIFY_CODE_MISMATCH','_handleJoinEvent','has','_themeService','propertyIsEnumerable','_draw','rgba(255,\x20255,\x20255,\x200.01)','getCurrentRevOfUnit','_status$','_initDependencies','_hasFormulaInDirtyRanges','InsertRangeMoveDownCommandId','getUniverSheetInstance','updateOfflineData','_revisionService','_getMergeRange','parseInt','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','/universer-api/license/formula/limit/start','addObject','REDEMPTION_CODE_FULLY_REDEEMED','clearTimeout','storage','onMouseMove','on-line-icon_clip0_910_349','svg','debug','_localCacheService','clearInterval','source','getItem','AWAITING_WITH_PENDING','symbol','flatMap','_cachedData','executionId','disposeWithMe','jiqing.500','init','_notificationService','UPDATE_CURSOR','_shapes','skeleton','APPLY_REJECT','_configService','_range','_setupBeforeClosingHandler','loadOfflineData','off-line-icon_clip0_910_343','_localeService','_document','unshift','_createSocketURL','_collabCursorState$','redoState','function','OffLineIcon','delete','_transformUndoRedoStack','add','LOGIN_TOKEN_PROCESSING_FAILED','_updateURLWithCurrentState','_lastResponseTimestamp','AUTHORIZE_CODE_ILLEGAL','string','className','transformSelections','formula.calculation.waiting','_pollingInterval','getAncestorScale','_startCalculationLimit','getValue','beforeCommandExecuted','off-line-icon','8lNWTaR','OTHER_CLIENTS_EDITING','_color','measureText','_httpService','InsertRowCommandId','length','hasOwnProperty','set','undoState','TEXT','resize','_initEntityListener','_anchor','toRgbString','show','_lastPointer','onRendered','width','subscribe','_selfUnitIDs','_startSheetCollabCursor','hovered','_getScale','_backgroundColor','prototype','VIEW_MAIN','onPointerLeave$','NOT_FOUND','_updateSubUnitFromURLParams','transformMutation','permission.content','onStarting','replaceState','getMemberID','_context','text','_hovered','CURRENT_STATUS_CANNOT_OPERATE','currentUsage','0\x200\x2017\x2016','_scene','INVITE_CODE_REQUIRED','UNIVER_DOC','AWAITING','lineTo','_clearOtherTimers','Warning','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getRenderById','_docSkeletonManagerService','_checkCalculationAvailable','onTransformChange$','purple.300','defineProperty','transformRemoteChangeset','_toggleOffline','getTypeOfUnitAdded$','children','_entityInit$','UNDEFINED','_saveCache','getRangePointData','getOwnPropertySymbols','toString','OnLineIcon','closePath','min','univerjs-icon\x20univerjs-icon-','RECT','_onCursorDelete','LOGIN_FAILED','_logService','endRow','_clearPolling','_removeCollabCursors','saveTaskMap','data','ENSURE_SNAPSHOT_EXECUTION','InsertRangeMoveRightCommandId','_handleHeartbeatEvent','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','registerRefRange','univer-flex\x20univer-items-center','subscribeEvent','REDEMPTION_CODE_INACTIVE','27kgXByT','formula.calculation.started','12PyUkIX','_cursor','JOIN_ROOM_FAILED','translate(.97)','pipe','params','/universer-api/license/formula/limit/status','MOBILE_HAS_BEEN_BOUND','onCommandExecuted','SNAPSHOT_INVALID_SNAPSHOT','_config','red.300','values','_entities','/universer-api/license/formula/limit/done','_beforeCloseService','REDEMPTION_INVALID_CODE','colorChannel1','blue.400','MUTATION','cursorInfo','ERROR_AGAIN','getParam','REDEMPTION_USER_REDEEM_TIMES_EXCEED','YUUMI_URL_COL_OUT_OF_RANGE','getMember','asObservable','fill','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_ALL_TABLES_IS_INVALID','USER_NOT_FOUND','_hover','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_onRefRangeChange','save','_initStatusListener','onPointerMove$','_labelPosition','http://www.w3.org/2000/svg','_memberService','_docTransformSelectionsService','InsertColCommandId','call','_drawRectRange','executeCommand','map','unsubscribe','getUnit','subUnitId','_refRangeService','findNodePositionByCharIndex','column','_applyCommand','Loading','history','transformMutationsWithChangeset','split','0\x200\x2016\x2016','CLOSE_ROOM','LICENSE_IMPORT_SIZE_EXCEEDED','_dataLoaderService','APPLY_NON_SEQUENTIAL_REVISION','YUUMI_NO_CUBOID_FOR_QUESTION','_urlService','9390vQgkPT','USERS_LEAVE','ENTITLE_CHAT_LIMIT_EXCEED','transformByState','_session','onPointerEnter$','addHandlerCallback','send','editingUnit','startsWith','_getSessionTicket','complete','setParam','none','forEach','icon','imageSourceType','getUnitId','_registerRenderDependencies','_initEvent','top','currentColor','USER_IS_ANONYMOUS','_getSheetObject','43672gMbxCM','INTERNAL_ERROR','setUndoRedoMutationParamsCache','_scheduleClearOtherTimer','registerComponent','_cursorShapes','setShapeProps','endColumn','now','UNIVER_SHEET','post','649032lxEGBe','_colorIndex','setStateCache','_disabled','Unknown\x20user','_initCommandExecutedListener','M0\x200H16V16H0z','_updateLocalCursor','_messageService','setTimeout','YUUMI_UNABLE_LOAD_URL','maxFormulaLimit','YUUMI_CONNECTOR_URL_NOT_FOUND','_init','_taskIds','href','_docClipboardService','_localStorageService','use','sessionTicket','displayName','collabStatus.offline','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_getFormulaLimitStatus','bottom','totalFormulasToCalculate','_univerInstanceService','_handleHover','_render','538590wfczri','OTHER_CLIENT_EDITING','collab-text-anchor-','collabCursorState$','collab-client.tooltip.reconnect','exhaustSavingTask','error','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LICENSE_DISTRO_REJECTED','black','evenodd','_collaborationUIEventService','_unitOnClients','_renderManagerService','YUUMI_RATE_OVER_LIMIT','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','currentSkeleton$','entries','getTypeOfUnitDisposed$','collabStatus.syncing','getColorFromTheme','get','_scheduleSaving','transformIMECache','getOwnPropertyDescriptor','getFocusedUnit','OFFLINE','find','startColumn','searchParams','_onCursorUpdate','_getAnchorBounding','height','_roomMembers$','INVALID_ARGUMENT','fillRule','trim','color','saveImage','sessionStatus$','saveOfflineData','all','_initStatusComponent','fillStyle','LICENSE_EXPORT_SIZE_EXCEEDED','isArray','Success','formula.calculation.unable','[CollaborationDataLoaderController]','session.connection-failed','_eventUnsubscribe','_releaseCalculationLimit','_maxFormulaLimit','permission.title','DeleteRangeMoveLeftCommandId','_setupSubUnitSync','dirtyRanges','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','_online','collaboration.closeRoom','some','replace','collabStatus.synced','status$','TOO_MANY_REQUESTS','_instanceService','ranges','PAYMENT_CHANNEL_NOT_SUPPORT','makeDirty','unitId','runOnServer','startFormulaLimitUrl','getCollabCursors$','current','isActive','popstate','location','ticket','defs','assign','PY_RUNTIME_SCRIPT_ERROR','size','getSheetBySheetId','_checkAndWaitForCalculationPermission','_docTransformIMECacheService','APPLY_PERMISSION_DENIED','type','contains','arc','textRanges','getStateCache','event$','_unitStatus','shift','then','_cursorInfo$','startRow','_currentUsage','memberID','_cursors','YUUMI_SUBSCRIPTION_NOT_FOUND','_saveTaskMap','YUUMI_AI_RUN_FAILED','row','_commandService','deepClone','?taskId=','getCurrentSelections','NOT_COLLAB','random','_transformPreviousActiveRange','result','_uiPartsService','dispose$','_transformService','on-line-icon','MoveRangeCommandId','urlChange$','doc.mutation.rich-text-editing','MOBILE_VERIFY_CODE_MISMATCH','PERMISSION_DENIED','setItem','url(#off-line-icon_clip0_910_343)','_hideTimer','31241jpQOjb','sheetID','mask','cursorInfo$','_docTransformStateCacheService','_doCreateSocket','WECHAT_HAS_BEEN_BOUND','actions','stageInfo','Error','div','_transformHistoryAndStateStack','ENTITLE_REPORT_LIMIT_EXCEED','2546412XxETfJ','YUUMI_TABLE_NOT_FOUND_IN_UNIT','url(#$1','wsSessionTicketUrl','name','clipPath','setAlpha','_injector','INVITE_CODE_HAS_BEEN_UES','_assignedColors','m2Prime','ENTITLE_NEED_BILLING_ADDRESS','includes','#FFF','ACTIVE_UNIT_EVENT_CHANNEL','ONLINE','engine','currentTheme$','attrs','disposeUnit','_colorAssignService','getCollabEntity$','dispose','ENTITLE_DUP_SUBSCRIPTION','with','isEditing','removeParam','FromArray','entityInit$','COMPLETION_FINISHED','_anchorDot','_name','PENDING','_handleEvent','REDEMPTION_CODE_HAS_BEEN_CREATED','transform','getRelativeToViewportCoord','UNRECOGNIZED','YUUMI_ASYNCIO_CANCELLED','getOffsetConfig','body','next','collaboration-client-ui.config','getSheetId','backgroundColor','_docStateChangeManagerService','origin','fillText','functionsExecutedState','_refreshCollabCursors','requireSession','unitID','EMAIL_HAS_BEEN_BOUND','_initCommandInterceptor','_textBubble','HEADER_MENU','_registerDependencies','transformStateCache','_showGuardMessage','idSuffix','restore','url(#on-line-icon_clip0_910_349)','1em','session.will-retry','session.collaboration-timeout','675950zIxyDZ','xlink:href','from','NO_OTHER_CLIENTS_EDITING','indexOf','runId','SUBMIT_CHANGESET_TIMEOUT','LICENSE_MAX_UNITS_EXCEEDED','collabStatus.conflict','_collabSessionService','getConfig','_handleLeaveEvent','_setFormulaLimitStatus','collab-rect-range-','activeSheet$','defIds','extend','getVpScrollXYInfoByPosToVp','replaceDocRanges','tag','getCurrentUnitForType','selection','limitInfo','USER_NOT_INVITED_CODE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','getActiveRange','eventID','labelPosition','_collabCursorController','Failed','_removeClearOtherTimer','setActiveRange','REDEMPTION_USER_NOT_ELIGIBLE','getUndoRedoMutationParamsCache','_startDocCollabCursor'];_0x13f0=function(){return _0x15c478;};return _0x13f0();}
1
+ const _0x350772=_0x2f90;(function(_0x5aa551,_0x26c47c){const _0x22e3a4=_0x2f90,_0x5050b2=_0x5aa551();while(!![]){try{const _0x5401e7=-parseInt(_0x22e3a4(0xcf))/0x1+-parseInt(_0x22e3a4(0x1f1))/0x2*(-parseInt(_0x22e3a4(0x21d))/0x3)+-parseInt(_0x22e3a4(0x269))/0x4*(-parseInt(_0x22e3a4(0x21f))/0x5)+-parseInt(_0x22e3a4(0x211))/0x6+parseInt(_0x22e3a4(0x235))/0x7+-parseInt(_0x22e3a4(0x1b7))/0x8*(parseInt(_0x22e3a4(0x1b4))/0x9)+parseInt(_0x22e3a4(0x274))/0xa;if(_0x5401e7===_0x26c47c)break;else _0x5050b2['push'](_0x5050b2['shift']());}catch(_0x18e6d6){_0x5050b2['push'](_0x5050b2['shift']());}}}(_0x30a7,0x3fcf2));var kt=Object[_0x350772(0x14f)],Ht=(_0x36fea1,_0x271928,_0x4f46ca)=>_0x271928 in _0x36fea1?kt(_0x36fea1,_0x271928,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f46ca}):_0x36fea1[_0x271928]=_0x4f46ca,_=(_0x19434d,_0x1995fd,_0x16ab4f)=>Ht(_0x19434d,typeof _0x1995fd!=_0x350772(0x2b9)?_0x1995fd+'':_0x1995fd,_0x16ab4f);import{jsx as _0x246fec,jsxs as _0x5a115a}from'react/jsx-runtime';import{CollaborationStatus as _0x180dd3,CollaborationSessionService as _0x13b5b6,CollaborationController as _0x1e6a4e,DataLoaderService as _0x294538,MemberService as _0x52df85,SessionStatus as _0x1c77d0,ILocalCacheService as _0x5c5358,CollaborationUIEventService as _0x9b1590,CollaborationUIEventId as _0x2b9ee3,DocCollaborationEntity as _0xe5876,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3fa50f,getLocalCacheKey as _0x40a77a,LOCAL_CACHE_INTERVAL as _0x1de824,LOCAL_CACHE_INTERVAL_KEY as _0x251a18,UniverCollaborationClientPlugin as _0x39440b,CollaborationSocketService as _0x569b8c,DEFAULT_WS_SESSION_TICKET_URL as _0x4e1a77,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5e58e4,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xd8680f,UnitStatus as _0x32ac9a}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x57786a,IUniverInstanceService as _0xbcb279,Inject as _0x1ada69,Injector as _0x37163f,Disposable as _0x2d8b34,createIdentifier as _0x1774d0,ILogService as _0x3d4f4a,ICommandService as _0x5df3ab,Optional as _0x38f252,RxDisposable as _0x3e95b8,Workbook as _0xda32c5,DOC_RANGE_TYPE as _0x1fab1a,debounce as _0x54c55d,Rectangle as _0x5acc85,DisposableCollection as _0x182a59,toDisposable as _0x296cd2,UniverInstanceType as _0x2ebb81,generateRandomId as _0x43b449,COLORS as _0x1b0abb,ColorKit as _0x1e2ad1,ThemeService as _0x3617fd,fromEventSubject as _0x2754b0,Tools as _0x2d642b,CommandType as _0x4dffdb,IConfigService as _0x20c298,CanceledError as _0x140840,isFormulaString as _0x1c6988,isFormulaId as _0x392987,ILocalStorageService as _0x48d2fd,DependentOn as _0x418b27,Plugin as _0x47149e,merge as _0x1e3d46,registerDependencies as _0x535a10,mergeOverrideWithDependencies as _0x8250d8,touchDependencies as _0x8549f3}from'@univerjs/core';import{useObservable as _0x416760,useDependency as _0x4af09c,IUIPartsService as _0x5638da,BuiltInUIPart as _0x3c2daa,connectInjector as _0x6134a2,IBeforeCloseService as _0x48b30a,IMessageService as _0x41069b,INotificationService as _0x2b8f27}from'@univerjs/ui';import{BehaviorSubject as _0x1cc040,switchMap as _0x554a5c,of as _0x37bd79,takeUntil as _0x561bd3,debounceTime as _0x4bb6e6,Subject as _0x4e3abd,filter as _0x57538f,merge as _0x42ed05,combineLatest as _0x264ffa,fromEvent as _0x46d8b5,shareReplay as _0x341114,mapTo as _0x477239,distinctUntilChanged as _0x9b68fc}from'rxjs';import{Tooltip as _0x2394d1,clsx as _0x5a546f,MessageType as _0x13949b}from'@univerjs/design';import{forwardRef as _0x56ee26,useRef as _0x83dcd6,createElement as _0x2531c4,useCallback as _0x311ea5}from'react';import{IRemoteInstanceService as _0x5f3fe1}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x20572e,RefRangeService as _0x388961,SetSelectionsOperation as _0x254310,SheetsSelectionsService as _0x51e3a3,EffectRefRangId as _0x216edf,handleIRemoveRow as _0x3e2bf0,handleIRemoveCol as _0x234858,handleMoveRange as _0x557e56,handleInsertRow as _0x3fba3f,handleInsertRangeMoveRight as _0xfc5eb2,handleInsertRangeMoveDown as _0x4f512d,handleInsertCol as _0x49dcc1,handleDeleteRangeMoveUp as _0x437356,handleDeleteRangeMoveLeft as _0x49e285,runRefRangeMutations as _0x10f8a1}from'@univerjs/sheets';import{Shape as _0x316be7,Rect as _0x154153,getColor as _0x4740de,RegularPolygon as _0x5f4a89,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x239e83,Vector2 as _0x53f9d6,SHEET_VIEWPORT_KEY as _0x3d904a,IRenderManagerService as _0xef866a}from'@univerjs/engine-render';import{HTTPService as _0x1def6f,ISocketService as _0x51a87f,WebSocketService as _0x5c837c}from'@univerjs/network';import{IDocClipboardService as _0x426fd6,NodePositionConvertToCursor as _0x23b453,NodePositionConvertToRectRange as _0x4c81a5,TEXT_RANGE_LAYER_INDEX as _0x3d216c,SetDocZoomRatioOperation as _0x49cb7f,DocIMEInputManagerService as _0x10bdfa,DocStateChangeManagerService as _0x25d3bb}from'@univerjs/docs-ui';import{IImageIoService as _0x43cd35}from'@univerjs/drawing';import{ITransformService as _0x3f4e3f,CollaborationEvent as _0x29b382,isTransformMutationFailure as _0x456676,isTransformMutationsWithChangesetSuccess as _0x1d6d36,RevisionService as _0x18b0c3,ISnapshotServerService as _0x5de3db}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x309f97,RichTextEditingMutation as _0x4778c0,DocSelectionManagerService as _0x47440a,DocSkeletonManagerService as _0x107acb}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4ca388,serializeRangeWithSheet as _0x247e4f,FormulaExecuteStageType as _0x33c948,FormulaExecutedStateType as _0x323fe9,SetFormulaCalculationStartMutation as _0x17319b,SetFormulaCalculationNotificationMutation as _0x37a5a7}from'@univerjs/engine-formula';import{map as _0x273082,filter as _0x564fd5,throttleTime as _0xe18dca,takeUntil as _0x140ecf,switchMap as _0xa0b962}from'rxjs/operators';import{SheetSkeletonManagerService as _0x301028,getCoordByCell as _0x26559f,getSheetObject as _0x15f05b}from'@univerjs/sheets-ui';var g=function(){const _0x1df082=_0x350772;return g=Object[_0x1df082(0x2d4)]||function(_0x4332ab){const _0x2a0e78=_0x1df082;for(var _0x5893f5,_0x2d87d4=0x1,_0x2a8600=arguments[_0x2a0e78(0x2e6)];_0x2d87d4<_0x2a8600;_0x2d87d4++){_0x5893f5=arguments[_0x2d87d4];for(var _0xa7dfa8 in _0x5893f5)Object[_0x2a0e78(0x13b)][_0x2a0e78(0x245)][_0x2a0e78(0x2a7)](_0x5893f5,_0xa7dfa8)&&(_0x4332ab[_0xa7dfa8]=_0x5893f5[_0xa7dfa8]);}return _0x4332ab;},g[_0x1df082(0x294)](this,arguments);},Ii=function(_0x214918,_0x4132cc){const _0x12c8d2=_0x350772;var _0x18b8f5={};for(var _0x140bd0 in _0x214918)Object[_0x12c8d2(0x13b)][_0x12c8d2(0x245)][_0x12c8d2(0x2a7)](_0x214918,_0x140bd0)&&_0x4132cc[_0x12c8d2(0x1a3)](_0x140bd0)<0x0&&(_0x18b8f5[_0x140bd0]=_0x214918[_0x140bd0]);if(_0x214918!=null&&typeof Object[_0x12c8d2(0x2ae)]==_0x12c8d2(0x1ae)){for(var _0x1931f4=0x0,_0x140bd0=Object['getOwnPropertySymbols'](_0x214918);_0x1931f4<_0x140bd0[_0x12c8d2(0x2e6)];_0x1931f4++)_0x4132cc['indexOf'](_0x140bd0[_0x1931f4])<0x0&&Object[_0x12c8d2(0x13b)][_0x12c8d2(0x110)][_0x12c8d2(0x2a7)](_0x214918,_0x140bd0[_0x1931f4])&&(_0x18b8f5[_0x140bd0[_0x1931f4]]=_0x214918[_0x140bd0[_0x1931f4]]);}return _0x18b8f5;},Xe=_0x56ee26(function(_0x46b47e,_0xf4ab0d){const _0x296b9e=_0x350772;var _0x1c98d4=_0x46b47e['icon'],_0x4239dd=_0x46b47e['id'],_0x1490e6=_0x46b47e['className'],_0x204072=_0x46b47e[_0x296b9e(0x23a)],_0x3565f0=Ii(_0x46b47e,['icon','id',_0x296b9e(0x1f0),_0x296b9e(0x23a)]),_0x9c36c=_0x296b9e(0xca)[_0x296b9e(0x1b0)](_0x4239dd,'\x20')[_0x296b9e(0x1b0)](_0x1490e6||'')[_0x296b9e(0x11c)](),_0xc84274=_0x83dcd6('_'[_0x296b9e(0x1b0)](Ei()));return Lt(_0x1c98d4,''[_0x296b9e(0x1b0)](_0x4239dd),{'defIds':_0x1c98d4[_0x296b9e(0x1c0)],'idSuffix':_0xc84274['current']},g({'ref':_0xf4ab0d,'className':_0x9c36c},_0x3565f0),_0x204072);});function Lt(_0x580c4a,_0x497fde,_0x1aa7b0,_0x5f3095,_0x393546){const _0x317bbb=_0x350772;return _0x2531c4(_0x580c4a[_0x317bbb(0x127)],g(g({'key':_0x497fde},gi(_0x580c4a,_0x1aa7b0,_0x393546)),_0x5f3095),(vi(_0x580c4a,_0x1aa7b0)[_0x317bbb(0xe0)]||[])[_0x317bbb(0xba)](function(_0x29ba9f,_0x5a4ca0){const _0x1a3ce8=_0x317bbb;return Lt(_0x29ba9f,''[_0x1a3ce8(0x1b0)](_0x497fde,'-')['concat'](_0x580c4a['tag'],'-')[_0x1a3ce8(0x1b0)](_0x5a4ca0),_0x1aa7b0,void 0x0,_0x393546);}));}function gi(_0x4cce85,_0x5f1a27,_0x23dfc3){const _0x599560=_0x350772;var _0x5c6555=g({},_0x4cce85[_0x599560(0x25e)]);_0x23dfc3!=null&&_0x23dfc3['colorChannel1']&&_0x5c6555[_0x599560(0xd9)]==='colorChannel1'&&(_0x5c6555[_0x599560(0xd9)]=_0x23dfc3[_0x599560(0x178)]),_0x4cce85[_0x599560(0x127)]===_0x599560(0x27b)&&_0x5c6555['id']&&(_0x5c6555['id']=_0x5c6555['id']+_0x5f1a27['idSuffix']),Object[_0x599560(0x219)](_0x5c6555)[_0x599560(0x237)](function(_0x368c6c){const _0x2b4066=_0x599560;var _0x32993a=_0x368c6c[0x0],_0x383079=_0x368c6c[0x1];_0x32993a===_0x2b4066(0x27b)&&typeof _0x383079==_0x2b4066(0xa4)&&(_0x5c6555[_0x32993a]=_0x383079[_0x2b4066(0xe3)](/url\(#(.*)\)/,'url(#$1'[_0x2b4066(0x1b0)](_0x5f1a27[_0x2b4066(0xc9)],')')));});var _0x9c3763=_0x5f1a27[_0x599560(0x1c0)];return!_0x9c3763||_0x9c3763[_0x599560(0x2e6)]===0x0||(_0x4cce85[_0x599560(0x127)]===_0x599560(0x12f)&&_0x5c6555['xlink:href']&&(_0x5c6555[_0x599560(0x276)]=_0x5c6555['xlink:href']+_0x5f1a27['idSuffix']),Object['entries'](_0x5c6555)[_0x599560(0x237)](function(_0x46d50a){const _0x135809=_0x599560;var _0x117559=_0x46d50a[0x0],_0x16c2d9=_0x46d50a[0x1];typeof _0x16c2d9==_0x135809(0xa4)&&(_0x5c6555[_0x117559]=_0x16c2d9['replace'](/url\(#(.*)\)/,_0x135809(0x2b3)[_0x135809(0x1b0)](_0x5f1a27['idSuffix'],')')));})),_0x5c6555;}function vi(_0x3ea0dd,_0x1037ce){const _0x10f6b5=_0x350772;var _0xcae98,_0x5356d0=_0x1037ce[_0x10f6b5(0x1c0)];return!_0x5356d0||_0x5356d0['length']===0x0?_0x3ea0dd:_0x3ea0dd[_0x10f6b5(0x127)]===_0x10f6b5(0x27d)&&(!((_0xcae98=_0x3ea0dd[_0x10f6b5(0xe0)])===null||_0xcae98===void 0x0)&&_0xcae98['length'])?g(g({},_0x3ea0dd),{'children':_0x3ea0dd[_0x10f6b5(0xe0)][_0x10f6b5(0xba)](function(_0x2eafcb){const _0x22ac94=_0x10f6b5;return typeof _0x2eafcb[_0x22ac94(0x25e)]['id']==_0x22ac94(0xa4)&&_0x5356d0&&_0x5356d0[_0x22ac94(0x16d)](_0x2eafcb['attrs']['id'])?g(g({},_0x2eafcb),{'attrs':g(g({},_0x2eafcb['attrs']),{'id':_0x2eafcb['attrs']['id']+_0x1037ce[_0x22ac94(0xc9)]})}):_0x2eafcb;})}):_0x3ea0dd;}function Ei(){const _0x3359c=_0x350772;return Math[_0x3359c(0x1e7)]()[_0x3359c(0x207)](0x24)[_0x3359c(0x137)](0x2,0x8);}Xe[_0x350772(0x151)]=_0x350772(0x1d9);var pi={'tag':'svg','attrs':{'xmlns':_0x350772(0x1cd),'fill':_0x350772(0x106),'viewBox':_0x350772(0x21e),'width':_0x350772(0x22b),'height':_0x350772(0x22b)},'children':[{'tag':'g','attrs':{'clipPath':_0x350772(0x27a)},'children':[{'tag':'path','attrs':{'stroke':_0x350772(0x2b4),'d':_0x350772(0xdf),'strokeLinecap':_0x350772(0x1ac),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x350772(0x27d),'attrs':{},'children':[{'tag':_0x350772(0x2d5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x350772(0x1b3)}}]}]}],'defIds':[_0x350772(0xed)]},Mt=_0x56ee26(function(_0x86893a,_0x9d2c9){const _0x55a2c0=_0x350772;return _0x2531c4(Xe,Object[_0x55a2c0(0x2d4)]({},_0x86893a,{'id':_0x55a2c0(0xad),'ref':_0x9d2c9,'icon':pi}));});Mt[_0x350772(0x151)]='OffLineIcon';var Oi={'tag':_0x350772(0x12e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x350772(0x106),'viewBox':'0\x200\x2017\x2016','width':_0x350772(0x22b),'height':_0x350772(0x22b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x350772(0x2c7),'attrs':{'stroke':_0x350772(0x2b4),'d':_0x350772(0x16f),'strokeLinecap':_0x350772(0x1ac),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x350772(0x27d),'attrs':{},'children':[{'tag':_0x350772(0x2d5),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x350772(0x1d0),'d':_0x350772(0x1b3),'transform':_0x350772(0x1ad)}}]}]}],'defIds':[_0x350772(0x163)]},At=_0x56ee26(function(_0xcb49a7,_0x125513){const _0x48b73d=_0x350772;return _0x2531c4(Xe,Object[_0x48b73d(0x2d4)]({},_0xcb49a7,{'id':_0x48b73d(0x2e0),'ref':_0x125513,'icon':Oi}));});At[_0x350772(0x151)]='OnLineIcon';function Ti(_0x3e511b){const _0x3b0c62=_0x350772;switch(_0x3e511b){case _0x180dd3[_0x3b0c62(0x234)]:return _0x3b0c62(0x287);case _0x180dd3[_0x3b0c62(0x2af)]:return _0x3b0c62(0x1f4);case _0x180dd3[_0x3b0c62(0x1ef)]:return'collabStatus.fetchMiss';case _0x180dd3[_0x3b0c62(0x2b5)]:return'collabStatus.notCollab';case _0x180dd3[_0x3b0c62(0xd8)]:case _0x180dd3[_0x3b0c62(0x14e)]:return'collabStatus.syncing';case _0x180dd3[_0x3b0c62(0x1e3)]:case _0x180dd3[_0x3b0c62(0xcc)]:return'collabStatus.synced';}}function Ci(_0x454c74){const _0x3980ed=_0x350772,{status$:_0x4de2eb}=_0x454c74,_0x3b17ee=_0x416760(_0x4de2eb,_0x180dd3[_0x3980ed(0x2b5)]),_0x48b930=_0x4af09c(_0x57786a),_0x335447=_0x4af09c(_0x13b5b6),_0xf16aa0=_0x3b17ee!==_0x180dd3[_0x3980ed(0x234)],_0x5ee512=_0x48b930['t'](Ti(_0x3b17ee)),_0x542a52=_0xf16aa0?_0x246fec(At,{}):_0x246fec(Mt,{}),_0x230419=_0x311ea5(()=>{const _0x1b5ce8=_0x3980ed;_0xf16aa0||_0x335447[_0x1b5ce8(0x199)]();},[_0xf16aa0,_0x335447]);function _0x397100(){const _0xe71412=_0x3980ed;return _0x5a115a('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x230419,'children':[_0x246fec(_0xe71412(0x22e),{'className':_0x5a546f('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0xf16aa0,'univer-text-red-500':!_0xf16aa0}),'children':_0x542a52}),_0x246fec(_0xe71412(0x22e),{'className':_0xe71412(0x11d),'children':_0x5ee512})]});}return _0xf16aa0?_0x397100():_0x246fec(_0x2394d1,{'title':_0x48b930['t']('collab-client.tooltip.reconnect'),'children':_0x397100()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0xd8bb98,_0x41bfe1,_0x2d7181,_0x5f09cd)=>{for(var _0x93c26=_0x5f09cd>0x1?void 0x0:_0x5f09cd?Ri(_0x41bfe1,_0x2d7181):_0x41bfe1,_0x276649=_0xd8bb98['length']-0x1,_0x3bc00c;_0x276649>=0x0;_0x276649--)(_0x3bc00c=_0xd8bb98[_0x276649])&&(_0x93c26=_0x3bc00c(_0x93c26)||_0x93c26);return _0x93c26;},ie=(_0x39fdb7,_0x4eb065)=>(_0xe65408,_0x2b09bd)=>_0x4eb065(_0xe65408,_0x2b09bd,_0x39fdb7);let ae=class extends _0x2d8b34{constructor(_0x3de38f,_0x5c596a,_0x5599c3,_0x14e387){const _0x2a6cd8=_0x350772;super(),_(this,'_status$',new _0x1cc040(_0x180dd3['NOT_COLLAB'])),(this[_0x2a6cd8(0x1b6)]=_0x3de38f,this['_injector']=_0x5c596a,this[_0x2a6cd8(0x2c3)]=_0x5599c3,this[_0x2a6cd8(0x2a3)]=_0x14e387,this[_0x2a6cd8(0xa1)](),this['_initStatusListener']());}[_0x350772(0x24f)](){const _0x41f0e6=_0x350772;this[_0x41f0e6(0x222)](this[_0x41f0e6(0x1b6)][_0x41f0e6(0x212)][_0x41f0e6(0xcb)](_0x554a5c(()=>{const _0x25431f=_0x41f0e6,_0x5d1cd3=this[_0x25431f(0x1b6)]['getFocusedUnit']();return _0x5d1cd3?this[_0x25431f(0x2c3)][_0x25431f(0x182)](_0x5d1cd3[_0x25431f(0x25a)]()):_0x37bd79(null);}),_0x554a5c(_0x79d068=>_0x79d068?_0x79d068[_0x41f0e6(0x14b)]:_0x37bd79(_0x180dd3[_0x41f0e6(0x2b5)])))[_0x41f0e6(0x28a)](_0x59a917=>{const _0x34cb54=_0x41f0e6;this[_0x34cb54(0xea)]['next'](_0x59a917);}));}[_0x350772(0xa1)](){const _0x5b98be=_0x350772;this[_0x5b98be(0x222)](this[_0x5b98be(0x2a3)][_0x5b98be(0xa7)](_0x3c2daa[_0x5b98be(0x205)],()=>_0x6134a2(bi({'status$':this[_0x5b98be(0xea)]['asObservable']()}),this[_0x5b98be(0x12a)])));}};ae=Di([ie(0x0,_0xbcb279),ie(0x1,_0x1ada69(_0x37163f)),ie(0x2,_0x1ada69(_0x1e6a4e)),ie(0x3,_0x5638da)],ae);function bi(_0xd3ba45){const {status$:_0x877af6}=_0xd3ba45;return function(){return _0x246fec(Ci,{'status$':_0x877af6});};}const Pt=_0x1774d0('uni.network.url-service');var Ni=Object[_0x350772(0x2c2)],Ui=(_0x41f02f,_0x1071f4,_0x167760,_0x58d1ac)=>{const _0x1eced8=_0x350772;for(var _0x4ba021=_0x58d1ac>0x1?void 0x0:_0x58d1ac?Ni(_0x1071f4,_0x167760):_0x1071f4,_0x2cd29d=_0x41f02f[_0x1eced8(0x2e6)]-0x1,_0x179c92;_0x2cd29d>=0x0;_0x2cd29d--)(_0x179c92=_0x41f02f[_0x2cd29d])&&(_0x4ba021=_0x179c92(_0x4ba021)||_0x4ba021);return _0x4ba021;},z=(_0xc4ada3,_0x2454b1)=>(_0x4e2dcc,_0x3007f3)=>_0x2454b1(_0x4e2dcc,_0x3007f3,_0xc4ada3);let ce=class extends _0x3e95b8{constructor(_0x47b0cd,_0x406534,_0x304579,_0x24e3fe,_0x3d0e6a){const _0x30fc7b=_0x350772;super(),this[_0x30fc7b(0xbf)]=_0x47b0cd,this[_0x30fc7b(0x1cf)]=_0x406534,this[_0x30fc7b(0xe1)]=_0x304579,this[_0x30fc7b(0x230)]=_0x24e3fe,_0x3d0e6a?_0x3d0e6a==null||_0x3d0e6a[_0x30fc7b(0x165)]()[_0x30fc7b(0x1e9)](()=>this[_0x30fc7b(0x2e4)]()):(this['_logService'][_0x30fc7b(0x2ca)](_0x30fc7b(0x1a8),_0x30fc7b(0x1c9)),this[_0x30fc7b(0x2e4)]());}async[_0x350772(0x2e4)](){const _0x5adb78=_0x350772,_0xb19594=this[_0x5adb78(0xbf)][_0x5adb78(0x1d7)](_0x5adb78(0x298)),_0x46ef2d=this[_0x5adb78(0xbf)][_0x5adb78(0x1d7)](_0x5adb78(0xbd)),_0x17ded5=this[_0x5adb78(0xbf)][_0x5adb78(0x1d7)](_0x5adb78(0x268));if(!_0xb19594||!_0x46ef2d){this[_0x5adb78(0x1cf)][_0x5adb78(0x2ca)](_0x5adb78(0x1a8),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0xca352e=await this['_dataLoaderService'][_0x5adb78(0xef)](_0xb19594,Number(_0x46ef2d),_0x17ded5);_0xca352e&&_0xca352e instanceof _0xda32c5&&this[_0x5adb78(0x10f)](_0xca352e);}async['_setupSubUnitSync'](_0x56e315){const _0x19ee9c=_0x350772;await this[_0x19ee9c(0x115)](_0x56e315),_0x56e315[_0x19ee9c(0x2db)][_0x19ee9c(0xcb)](_0x561bd3(this[_0x19ee9c(0xa8)]))[_0x19ee9c(0x28a)](_0x4279be=>{_0x4279be&&this['_updateURLWithCurrentState'](_0x4279be);}),this['_urlService'][_0x19ee9c(0x26e)][_0x19ee9c(0xcb)](_0x561bd3(this[_0x19ee9c(0xa8)]))[_0x19ee9c(0x28a)](()=>this['_updateSubUnitFromURLParams'](_0x56e315));}['_updateURLWithCurrentState'](_0x16f1d2,_0x1b48c9=!0x1){const _0x476982=_0x350772,_0x4e9401=this[_0x476982(0xbf)]['getParam']('subunit');_0x16f1d2[_0x476982(0xbb)]()!==_0x4e9401&&this[_0x476982(0xbf)][_0x476982(0x117)](_0x476982(0x268),_0x16f1d2[_0x476982(0xbb)](),_0x1b48c9);}async['_updateSubUnitFromURLParams'](_0x1e8676){const _0x3fe9ae=_0x350772;var _0x48f2e3;const _0x4107e7=this[_0x3fe9ae(0xbf)][_0x3fe9ae(0x1d7)](_0x3fe9ae(0x268));if(!_0x4107e7||!_0x1e8676[_0x3fe9ae(0x232)](_0x4107e7)){const _0x4ca4d4=_0x1e8676[_0x3fe9ae(0x2b6)]()[0x0],_0x3eb30b=_0x1e8676[_0x3fe9ae(0x232)](_0x4ca4d4);if(!_0x3eb30b)return;this[_0x3fe9ae(0x1e1)](_0x3eb30b,!0x0),await this[_0x3fe9ae(0xe1)][_0x3fe9ae(0xa0)](_0x20572e['id'],{'unitId':_0x1e8676[_0x3fe9ae(0x25a)](),'subUnitId':_0x4ca4d4});return;}((_0x48f2e3=_0x1e8676[_0x3fe9ae(0x1bc)]())==null?void 0x0:_0x48f2e3[_0x3fe9ae(0xbb)]())!==_0x4107e7&&await this['_commandService'][_0x3fe9ae(0xa0)](_0x20572e['id'],{'unitId':_0x1e8676[_0x3fe9ae(0x25a)](),'subUnitId':_0x4107e7});}};ce=Ui([z(0x0,Pt),z(0x1,_0x3d4f4a),z(0x2,_0x5df3ab),z(0x3,_0x1ada69(_0x294538)),z(0x4,_0x38f252(_0x5f3fe1))],ce);var Li=Object[_0x350772(0x2c2)],Mi=(_0x2aceb1,_0x33c42f,_0x2f2541,_0x13a441)=>{const _0x52f41e=_0x350772;for(var _0x4724d1=_0x13a441>0x1?void 0x0:_0x13a441?Li(_0x33c42f,_0x2f2541):_0x33c42f,_0xf3a6e2=_0x2aceb1[_0x52f41e(0x2e6)]-0x1,_0x19266e;_0xf3a6e2>=0x0;_0xf3a6e2--)(_0x19266e=_0x2aceb1[_0xf3a6e2])&&(_0x4724d1=_0x19266e(_0x4724d1)||_0x4724d1);return _0x4724d1;},it=(_0x50ff52,_0x16f242)=>(_0x1473ca,_0x4cf395)=>_0x16f242(_0x1473ca,_0x4cf395,_0x50ff52);let Pe=class extends _0x3e95b8{constructor(_0x219c44,_0x3c913a){const _0x4ccff1=_0x350772;super(),this[_0x4ccff1(0x11e)]=_0x219c44,this[_0x4ccff1(0x236)]=_0x3c913a,this[_0x4ccff1(0x2e4)]();}['_init'](){const _0x12b8bc=_0x350772,_0x3a58c2=this;this[_0x12b8bc(0x222)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x1619ae=>{const _0x5e96a2=_0x12b8bc,_0x5426d1=await _0x3a58c2[_0x5e96a2(0x236)][_0x5e96a2(0x1a0)](_0x1619ae);return _0x5426d1?{'source':_0x5426d1[_0x5e96a2(0x113)],'imageSourceType':_0x5426d1[_0x5e96a2(0x101)]}:null;}}));}};Pe=Mi([it(0x0,_0x426fd6),it(0x1,_0x43cd35)],Pe);const nt=['purple.300','jiqing.500',_0x350772(0x2a2),'red.300',_0x350772(0x1d4),_0x350772(0x17e)];class Ge extends _0x2d8b34{constructor(){const _0x5f4c03=_0x350772;super(...arguments),_(this,_0x5f4c03(0x1af),new Map()),_(this,'_colorIndex',0x0);}[_0x350772(0x251)](_0x33ddb3){const _0x333ec0=_0x350772;if(this[_0x333ec0(0x1af)]['has'](_0x33ddb3))return this[_0x333ec0(0x1af)][_0x333ec0(0xc6)](_0x33ddb3);const _0x39409f=nt[this[_0x333ec0(0x1b2)]];return this[_0x333ec0(0x1b2)]=(this[_0x333ec0(0x1b2)]+0x1)%nt[_0x333ec0(0x2e6)],this[_0x333ec0(0x1af)][_0x333ec0(0x279)](_0x33ddb3,_0x39409f),_0x39409f;}}function wt(_0x1998c3){const _0x408f8c=_0x350772;let _0xdbb92a='';for(const _0x1c06e6 of _0x1998c3){const {startOffset:_0x10ad2a,endOffset:_0x351acf,isActive:_0x5abfb5,rangeType:_0x341e00,segmentId:_0x14e1b7,segmentPage:_0x192db6}=_0x1c06e6;_0xdbb92a[_0x408f8c(0x2e6)]&&(_0xdbb92a+=','),_0xdbb92a+=_0x10ad2a+':'+_0x351acf+':'+(_0x5abfb5?'1':'0')+':'+_0x341e00+':'+_0x14e1b7+':'+_0x192db6;}return _0xdbb92a;}function Ai(_0x459f81){const _0x1d7c9a=_0x350772,_0x2428be=_0x459f81[_0x1d7c9a(0x201)](','),_0x235344=[];for(const _0x3177bc of _0x2428be){const [_0x30ddf6,_0x1c6d4d,_0x2125d0,_0x561ccc,_0xb01d79,_0x1f52e9]=_0x3177bc[_0x1d7c9a(0x201)](':');_0x235344['push']({'startOffset':Number(_0x30ddf6),'endOffset':Number(_0x1c6d4d),'collapsed':_0x30ddf6===_0x1c6d4d,'isActive':_0x2125d0==='1','rangeType':_0x561ccc===_0x1fab1a[_0x1d7c9a(0x124)]?_0x1fab1a[_0x1d7c9a(0x124)]:_0x1fab1a[_0x1d7c9a(0x120)],'segmentId':typeof _0xb01d79==_0x1d7c9a(0xa4)?String(_0xb01d79):'','segmentPage':Number(_0x1f52e9!=null?_0x1f52e9:-0x1)});}return _0x235344['some'](_0x4c5887=>_0x4c5887[_0x1d7c9a(0xb5)])||(_0x235344[0x0][_0x1d7c9a(0xb5)]=!0x0),_0x235344;}class Ke extends _0x3e95b8{constructor(){const _0x429fae=_0x350772;super(...arguments),_(this,'_collabCursorState$',new _0x1cc040(null)),_(this,'collabCursorState$',this[_0x429fae(0x1b8)]['asObservable']());}[_0x350772(0xc1)](_0x7b3117){const _0x5cf143=_0x350772,{unitID:_0x4cac3f,memberID:_0x1b4adb,textRanges:_0x540b52}=_0x7b3117,_0x1f7193=wt(_0x540b52);if(_0x1f7193==='')return;const _0x2a1f8f={'unitID':_0x4cac3f,'memberID':_0x1b4adb,'selection':_0x1f7193};this[_0x5cf143(0x1b8)][_0x5cf143(0x1c2)](_0x2a1f8f);}}var Pi=Object[_0x350772(0x2c2)],wi=(_0x132612,_0x1f79d7,_0x6f04b3,_0x11a228)=>{for(var _0x5cc152=_0x11a228>0x1?void 0x0:_0x11a228?Pi(_0x1f79d7,_0x6f04b3):_0x1f79d7,_0x48d7fc=_0x132612['length']-0x1,_0x3c472a;_0x48d7fc>=0x0;_0x48d7fc--)(_0x3c472a=_0x132612[_0x48d7fc])&&(_0x5cc152=_0x3c472a(_0x5cc152)||_0x5cc152);return _0x5cc152;},P=(_0x3adb7d,_0x3fb4ba)=>(_0x5dc807,_0x2f06a4)=>_0x3fb4ba(_0x5dc807,_0x2f06a4,_0x3adb7d);const yi=0x12c,$i=0x64;let we=class extends _0x3e95b8{constructor(_0x29c984,_0x204e42,_0x1b3795,_0x43ac95,_0x150a2e,_0x1d34a2,_0x8e0b9e,_0x4af583,_0x3a0d4f){const _0x48979=_0x350772;super(),_(this,_0x48979(0x12d),!0x1),_(this,_0x48979(0x2e4),!0x1),_(this,_0x48979(0x263),new _0x1cc040(new Map())),_(this,_0x48979(0x1fc),this['_cursorInfo$'][_0x48979(0x14a)]()),_(this,'_roomMembers$',new _0x1cc040([])),_(this,'roomMembers$',this['_roomMembers$'][_0x48979(0xcb)](_0x4bb6e6(yi))),_(this,_0x48979(0x1be),_0x54c55d(_0x5ba49d=>{const _0x337b14=_0x48979,_0x285ba8={'eventID':_0x29b382[_0x337b14(0xf2)],'data':{'unitID':this[_0x337b14(0x2cd)],'memberID':this[_0x337b14(0x128)]['getMemberID'](),'selection':wt(_0x5ba49d)}};this['_session']['send'](_0x285ba8,this['unitID']);},$i)),(this[_0x48979(0x2cd)]=_0x29c984,this[_0x48979(0x128)]=_0x204e42,this['_injector']=_0x1b3795,this[_0x48979(0xa6)]=_0x43ac95,this[_0x48979(0x20f)]=_0x150a2e,this[_0x48979(0xe9)]=_0x1d34a2,this[_0x48979(0x2cc)]=_0x8e0b9e,this[_0x48979(0x1b6)]=_0x4af583,this[_0x48979(0xe1)]=_0x3a0d4f);}get['cursorInfo'](){const _0x320885=_0x350772;return this[_0x320885(0x263)][_0x320885(0x10e)]();}get['roomMembers'](){const _0x51baed=_0x350772;return this[_0x51baed(0x15d)][_0x51baed(0x10e)]();}['dispose'](){const _0x3dc310=_0x350772;super[_0x3dc310(0x1e0)](),this['_cursorInfo$']['next'](new Map()),this[_0x3dc310(0x263)][_0x3dc310(0x156)](),this[_0x3dc310(0x15d)][_0x3dc310(0x1c2)]([]),this[_0x3dc310(0x15d)][_0x3dc310(0x156)]();}[_0x350772(0x1c6)](){const _0x21992f=_0x350772;this[_0x21992f(0x2e4)]||(this[_0x21992f(0x2e4)]=!0x0,this[_0x21992f(0x128)]['sessionStatus$'][_0x21992f(0xcb)](_0x561bd3(this['dispose$']))['subscribe'](_0x3ac95d=>{const _0x572956=_0x21992f;_0x3ac95d===_0x1c77d0[_0x572956(0x125)]?this['_toggleOnline']():this[_0x572956(0x1a5)]();}),this[_0x21992f(0x128)][_0x21992f(0x1b9)][_0x21992f(0xcb)](_0x561bd3(this[_0x21992f(0xa8)]))[_0x21992f(0x28a)](_0xc5b2cc=>{const _0x3218eb=_0x21992f,_0x1f9292=_0xc5b2cc[_0x3218eb(0x21b)];_0x1f9292===_0x29b382[_0x3218eb(0xf2)]&&this[_0x3218eb(0xe4)](_0xc5b2cc),_0x1f9292===_0x29b382[_0x3218eb(0x1fa)]&&this[_0x3218eb(0x11a)](_0xc5b2cc);}),this[_0x21992f(0x222)](this[_0x21992f(0xe1)]['onCommandExecuted'](_0x4e146=>{const _0x580730=_0x21992f,_0x298a8b=_0x4e146[_0x580730(0x22f)];_0x298a8b!=null&&this[_0x580730(0x12d)]&&_0x4e146['id']===_0x309f97['id']&&_0x298a8b[_0x580730(0x154)]===this['unitID']&&_0x298a8b['isEditing']===!0x1&&_0x298a8b['ranges']['length']>0x0&&this[_0x580730(0x1be)](_0x298a8b[_0x580730(0x112)]);})),this[_0x21992f(0xe9)][_0x21992f(0x29b)][_0x21992f(0xcb)](_0x561bd3(this['dispose$']))['subscribe'](_0x53e7a2=>{const _0x47829f=_0x21992f;if((_0x53e7a2==null?void 0x0:_0x53e7a2[_0x47829f(0x2cd)])!==this[_0x47829f(0x2cd)])return;const _0x398fd3={'eventID':_0x29b382[_0x47829f(0xf2)],'data':_0x53e7a2};this[_0x47829f(0xe4)](_0x398fd3);}),this[_0x21992f(0x222)](this[_0x21992f(0xe1)][_0x21992f(0x162)](_0x4390b4=>{const _0x45d795=_0x21992f;if(_0x4390b4['params']==null)return;const _0x497fe1=_0x4390b4[_0x45d795(0x22f)];if(_0x4390b4['id']!==_0x4778c0['id']||_0x497fe1['unitId']!==this[_0x45d795(0x2cd)])return;const _0x8bb512={'id':_0x45d795(0xe8),'params':_0x497fe1},_0x558a60=this[_0x45d795(0x2cf)];for(const [_0x30f1c9,_0x134545]of _0x558a60){const _0x30742a={'id':_0x45d795(0xe8),'params':{'unitId':this[_0x45d795(0x2cd)],'actions':null,'textRanges':_0x134545['ranges']}},_0x5374a1=this[_0x45d795(0x2cc)][_0x45d795(0x280)](_0x8bb512,_0x30742a,!0x1);if(_0x456676(_0x5374a1))throw _0x5374a1[_0x45d795(0x246)];_0x558a60[_0x45d795(0x279)](_0x30f1c9,{..._0x134545,'ranges':_0x5374a1['m2Prime'][_0x45d795(0x22f)][_0x45d795(0x102)]});}queueMicrotask(()=>{const _0x4a7157=_0x45d795;this['_cursorInfo$'][_0x4a7157(0x1c2)](_0x558a60);});})));}[_0x350772(0xe4)](_0x336718){const _0xd05263=_0x350772;var _0x5b6daa,_0x565101;const {memberID:_0x2d8ad7,selection:_0x599720}=_0x336718[_0xd05263(0x223)],_0x18aebf=Ai(_0x599720),_0x2c0fab=(_0x565101=(_0x5b6daa=this[_0xd05263(0x20f)]['getMember'](this[_0xd05263(0x2cd)],_0x2d8ad7))==null?void 0x0:_0x5b6daa[_0xd05263(0x2c1)])!=null?_0x565101:_0xd05263(0xa2),_0x4a37c7={'color':this['_colorAssignService'][_0xd05263(0x251)](_0x2d8ad7),'name':_0x2c0fab,'ranges':_0x18aebf},_0x31ca7b=this[_0xd05263(0x2cf)];_0x31ca7b[_0xd05263(0x279)](_0x2d8ad7,_0x4a37c7),this[_0xd05263(0x263)]['next'](_0x31ca7b);}['_onCursorDelete'](_0x335974){const _0x926b36=_0x350772,{memberID:_0x18d175}=_0x335974[_0x926b36(0x223)],_0x47ef29=this['cursorInfo'];_0x47ef29[_0x926b36(0x218)](_0x18d175),this[_0x926b36(0x263)][_0x926b36(0x1c2)](_0x47ef29);}[_0x350772(0x1a6)](){const _0xe24672=_0x350772;var _0x118962;if(this[_0xe24672(0x12d)]=!0x0,((_0x118962=this[_0xe24672(0x1b6)][_0xe24672(0x15f)]())==null?void 0x0:_0x118962[_0xe24672(0x25a)]())!==this[_0xe24672(0x2cd)])return;const _0x3b4bdb=this[_0xe24672(0x12a)][_0xe24672(0xc6)](_0x47440a)['getDocRanges']();Array['isArray'](_0x3b4bdb)&&_0x3b4bdb[_0xe24672(0x2e6)]>0x0&&this[_0xe24672(0x1be)](_0x3b4bdb);}[_0x350772(0x1a5)](){const _0x404294=_0x350772;this[_0x404294(0x12d)]=!0x1;}};we=wi([P(0x2,_0x1ada69(_0x37163f)),P(0x3,_0x1ada69(Ge)),P(0x4,_0x1ada69(_0x52df85)),P(0x5,_0x1ada69(Ke)),P(0x6,_0x3f4e3f),P(0x7,_0xbcb279),P(0x8,_0x5df3ab)],we);var xi=Object[_0x350772(0x2c2)],Bi=(_0x49f80d,_0x518a5c,_0x41925d,_0x5f907c)=>{for(var _0x44022b=_0x5f907c>0x1?void 0x0:_0x5f907c?xi(_0x518a5c,_0x41925d):_0x518a5c,_0x49cd26=_0x49f80d['length']-0x1,_0x3eacac;_0x49cd26>=0x0;_0x49cd26--)(_0x3eacac=_0x49f80d[_0x49cd26])&&(_0x44022b=_0x3eacac(_0x44022b)||_0x44022b);return _0x44022b;},F=(_0x32f87c,_0xde69eb)=>(_0x386c83,_0x3aa8ef)=>_0xde69eb(_0x386c83,_0x3aa8ef,_0x32f87c);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x55725a=[],_0x7e7f54=!0x1;return _0x332625=>{const _0x1814b8=_0x2f90;_0x55725a[_0x1814b8(0x25d)](_0x332625),_0x7e7f54||(_0x7e7f54=!0x0,setTimeout(()=>{const _0x4a6378=_0x1814b8;_0x55725a[_0x4a6378(0x237)](_0x3b1411=>_0x3b1411()),_0x55725a=[],_0x7e7f54=!0x1;}));};};let ye=class extends _0x3e95b8{constructor(_0x2408b3,_0x1112a6,_0x202157,_0x1279de,_0x2694ee,_0x1ac281,_0x1b60f5,_0x5b14bb){const _0x2dcefb=_0x350772;super(),_(this,_0x2dcefb(0x12d),!0x1),_(this,'_init',!0x1),_(this,_0x2dcefb(0x263),new _0x1cc040(new Map())),_(this,'cursorInfo$',this[_0x2dcefb(0x263)][_0x2dcefb(0x14a)]()),_(this,_0x2dcefb(0x15d),new _0x1cc040([])),_(this,'roomMembers$',this[_0x2dcefb(0x15d)]['pipe'](_0x4bb6e6(Fi))),_(this,_0x2dcefb(0x1be),_0x54c55d((_0x3dc373,_0x4cc921)=>{const _0x28ebe1=_0x2dcefb,_0x2d2b73={'eventID':_0x29b382[_0x28ebe1(0xf2)],'data':{'unitID':this[_0x28ebe1(0x2cd)],'memberID':this[_0x28ebe1(0x128)]['getMemberID'](),'selection':_0x247e4f(_0x3dc373,_0x4cc921[_0x28ebe1(0x28c)])}};this[_0x28ebe1(0x128)][_0x28ebe1(0x282)](_0x2d2b73,this[_0x28ebe1(0x2cd)]);},ki)),(this[_0x2dcefb(0x2cd)]=_0x2408b3,this[_0x2dcefb(0x128)]=_0x1112a6,this[_0x2dcefb(0x12a)]=_0x202157,this[_0x2dcefb(0xa6)]=_0x1279de,this[_0x2dcefb(0x20f)]=_0x2694ee,this[_0x2dcefb(0x1b6)]=_0x1ac281,this[_0x2dcefb(0xe1)]=_0x1b60f5,this[_0x2dcefb(0x11b)]=_0x5b14bb);}get[_0x350772(0x2cf)](){const _0x69b776=_0x350772;return this[_0x69b776(0x263)][_0x69b776(0x10e)]();}get['roomMembers'](){const _0x106396=_0x350772;return this[_0x106396(0x15d)][_0x106396(0x10e)]();}['dispose'](){const _0x1d39ff=_0x350772;super['dispose'](),this[_0x1d39ff(0x263)][_0x1d39ff(0x1c2)](new Map()),this[_0x1d39ff(0x263)][_0x1d39ff(0x156)](),this[_0x1d39ff(0x15d)][_0x1d39ff(0x1c2)]([]),this[_0x1d39ff(0x15d)][_0x1d39ff(0x156)]();}['init'](){const _0x37925e=_0x350772;this[_0x37925e(0x2e4)]||(this[_0x37925e(0x2e4)]=!0x0,this[_0x37925e(0x128)][_0x37925e(0x25c)][_0x37925e(0xcb)](_0x561bd3(this[_0x37925e(0xa8)]))[_0x37925e(0x28a)](_0x5ad7af=>{const _0x521cd5=_0x37925e;_0x5ad7af===_0x1c77d0[_0x521cd5(0x125)]?this[_0x521cd5(0x1a6)]():this[_0x521cd5(0x1a5)]();}),this[_0x37925e(0x128)][_0x37925e(0x1b9)][_0x37925e(0xcb)](_0x561bd3(this[_0x37925e(0xa8)]))['subscribe'](_0x1477a2=>{const _0x133a5a=_0x37925e,_0x19edb5=_0x1477a2[_0x133a5a(0x21b)];_0x19edb5===_0x29b382['UPDATE_CURSOR']&&this[_0x133a5a(0xe4)](_0x1477a2),_0x19edb5===_0x29b382[_0x133a5a(0x1fa)]&&this[_0x133a5a(0x11a)](_0x1477a2);}),this[_0x37925e(0xf7)](),this[_0x37925e(0x222)](this['_commandService']['onCommandExecuted'](_0x4fe304=>{const _0x222b6c=_0x37925e;if(this[_0x222b6c(0x12d)]&&_0x4fe304['id']===_0x254310['id']&&_0x4fe304['params'][_0x222b6c(0x154)]===this[_0x222b6c(0x2cd)]){const _0x5b565a=_0x4fe304[_0x222b6c(0x22f)];this[_0x222b6c(0x1be)](_0x5b565a[_0x222b6c(0x291)],_0x5b565a[_0x222b6c(0x158)][0x0]);}})));}[_0x350772(0xe4)](_0x1b32a5){const _0x3cd49c=_0x350772;var _0x5d4abf,_0x24ade9;const {memberID:_0x232c30,selection:_0x564b9a}=_0x1b32a5[_0x3cd49c(0x223)],{sheetName:_0x2f5ab5,range:_0x1bf59b}=_0x4ca388(_0x564b9a),_0x5a92ff={'name':(_0x24ade9=(_0x5d4abf=this[_0x3cd49c(0x20f)][_0x3cd49c(0x1ec)](this[_0x3cd49c(0x2cd)],_0x232c30))==null?void 0x0:_0x5d4abf[_0x3cd49c(0x2c1)])!=null?_0x24ade9:_0x3cd49c(0xa2),'range':this['_getMergeRange'](_0x2f5ab5,_0x1bf59b),'sheetID':_0x2f5ab5,'color':this[_0x3cd49c(0xa6)][_0x3cd49c(0x251)](_0x232c30),'selection':_0x564b9a},_0x220701=this['cursorInfo'];_0x220701[_0x3cd49c(0x279)](_0x232c30,_0x5a92ff),this[_0x3cd49c(0x263)][_0x3cd49c(0x1c2)](_0x220701);}[_0x350772(0x11a)](_0x183df3){const _0x48d9f2=_0x350772,{memberID:_0x7e411e}=_0x183df3['data'],_0x3d6628=this[_0x48d9f2(0x2cf)];_0x3d6628[_0x48d9f2(0x218)](_0x7e411e),this[_0x48d9f2(0x263)][_0x48d9f2(0x1c2)](_0x3d6628);}['_getMergeRange'](_0x2ea29a,_0x3d8c05){const _0x41c772=_0x350772;var _0x54cee2,_0xb528eb;const _0x5b8111=(_0xb528eb=(_0x54cee2=this['_univerInstanceService'][_0x41c772(0x23e)](this[_0x41c772(0x2cd)]))==null?void 0x0:_0x54cee2[_0x41c772(0x232)](_0x2ea29a))==null?void 0x0:_0xb528eb[_0x41c772(0x109)]();return(_0x5b8111==null?void 0x0:_0x5b8111[_0x41c772(0x131)](_0x543aff=>_0x5acc85[_0x41c772(0x2cb)](_0x543aff,_0x3d8c05)))||_0x3d8c05;}['_onRefRangeChange'](){const _0x1d7f1b=_0x350772,_0x1810e2=new _0x182a59(),_0x2ee2b3=Hi(),_0x123da6=()=>{_0x1810e2['dispose']();const _0x389314=(_0x9f7164,_0x121a1a,_0x58299f,_0x35bb0b)=>{const _0xb5854f=_0x2f90;let _0x29caac=[];switch(_0x9f7164['id']){case _0x216edf[_0xb5854f(0x2c9)]:{_0x29caac=_0x49e285(_0x9f7164,_0x35bb0b);break;}case _0x216edf['DeleteRangeMoveUpCommandId']:{_0x29caac=_0x437356(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0xeb)]:{_0x29caac=_0x49dcc1(_0x9f7164,_0x35bb0b);break;}case _0x216edf['InsertRangeMoveDownCommandId']:{_0x29caac=_0x4f512d(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0xcd)]:{_0x29caac=_0xfc5eb2(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0x126)]:{_0x29caac=_0x3fba3f(_0x9f7164,_0x35bb0b);break;}case _0x216edf['MoveRangeCommandId']:{_0x29caac=_0x557e56(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0x147)]:{_0x29caac=_0x234858(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0x140)]:{_0x29caac=_0x3e2bf0(_0x9f7164,_0x35bb0b);break;}}const _0x75762b=_0x10f8a1(_0x29caac,_0x35bb0b),_0x4cb608=this[_0xb5854f(0x2cf)][_0xb5854f(0xc6)](_0x121a1a);if(_0x4cb608&&_0x75762b){const _0x19818a={..._0x4cb608,'range':_0x75762b};this['cursorInfo'][_0xb5854f(0x279)](_0x121a1a,_0x19818a),_0x2ee2b3(()=>{const _0x39bb8b=_0xb5854f,_0x3a7031=this['_refRangeService'][_0x39bb8b(0x1dc)](_0x75762b,_0x2d13db=>(_0x3a7031['dispose'](),_0x389314(_0x2d13db,_0x121a1a,_0x58299f,_0x75762b)));_0x1810e2[_0x39bb8b(0x10c)](_0x3a7031);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x50ea51,_0x491fa8)=>{const _0x2bf275=_0x2f90,{range:_0xabdc3b,sheetID:_0x556e86}=_0x50ea51,_0x28ea39=this[_0x2bf275(0x11b)][_0x2bf275(0x1dc)](_0xabdc3b,_0x561f5d=>(_0x28ea39[_0x2bf275(0x1e0)](),_0x389314(_0x561f5d,_0x491fa8,_0x556e86,_0xabdc3b)));_0x1810e2[_0x2bf275(0x10c)](_0x28ea39);});};this[_0x1d7f1b(0x222)](_0x296cd2(this[_0x1d7f1b(0x263)][_0x1d7f1b(0x28a)](()=>{_0x123da6();})));}[_0x350772(0x1a6)](){const _0x5878fc=_0x350772;var _0xeea8cb,_0x3d5576;if(this[_0x5878fc(0x12d)]=!0x0,((_0xeea8cb=this[_0x5878fc(0x1b6)][_0x5878fc(0x15f)]())==null?void 0x0:_0xeea8cb[_0x5878fc(0x25a)]())!==this[_0x5878fc(0x2cd)])return;const _0x420f50=(_0x3d5576=this[_0x5878fc(0x12a)][_0x5878fc(0xc6)](_0x51e3a3)[_0x5878fc(0x2bf)]())==null?void 0x0:_0x3d5576[0x0],_0x19671c=this[_0x5878fc(0x1b6)][_0x5878fc(0xb3)](_0x2ebb81[_0x5878fc(0xb6)])[_0x5878fc(0x1bc)]();_0x420f50&&_0x19671c&&this[_0x5878fc(0x1be)](_0x19671c[_0x5878fc(0xbb)](),_0x420f50);}['_toggleOffline'](){const _0x542455=_0x350772;this[_0x542455(0x12d)]=!0x1;}};ye=Bi([F(0x2,_0x1ada69(_0x37163f)),F(0x3,_0x1ada69(Ge)),F(0x4,_0x1ada69(_0x52df85)),F(0x5,_0xbcb279),F(0x6,_0x5df3ab),F(0x7,_0x1ada69(_0x388961))],ye);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x1dcf14,_0x3ae2ce,_0xc79822,_0xb248d2)=>{const _0x52d33d=_0x350772;for(var _0x1b13a1=_0xb248d2>0x1?void 0x0:_0xb248d2?Yi(_0x3ae2ce,_0xc79822):_0x3ae2ce,_0x50d875=_0x1dcf14[_0x52d33d(0x2e6)]-0x1,_0x2c64ea;_0x50d875>=0x0;_0x50d875--)(_0x2c64ea=_0x1dcf14[_0x50d875])&&(_0x1b13a1=_0x2c64ea(_0x1b13a1)||_0x1b13a1);return _0x1b13a1;},pe=(_0x4169ad,_0x3b4bbd)=>(_0xf75eb6,_0x444c25)=>_0x3b4bbd(_0xf75eb6,_0x444c25,_0x4169ad);let Y=class extends _0x3e95b8{constructor(_0x1c0b38,_0x430254,_0x49ff14){const _0x5af918=_0x350772;super(),_(this,'_entities',new Map()),_(this,_0x5af918(0x1d2),new _0x4e3abd()),(this[_0x5af918(0x1b6)]=_0x1c0b38,this[_0x5af918(0x12a)]=_0x430254,this[_0x5af918(0x292)]=_0x49ff14,this[_0x5af918(0x2e4)]());}[_0x350772(0x1e0)](){const _0x57f712=_0x350772;super['dispose'](),this[_0x57f712(0x1d2)][_0x57f712(0x156)](),this[_0x57f712(0x1fb)][_0x57f712(0x237)](_0x2dd2dc=>_0x2dd2dc[_0x57f712(0x1e0)]());}[_0x350772(0x286)](_0xa73772){const _0x2e4215=_0x350772;return this[_0x2e4215(0x1fb)][_0x2e4215(0x105)](_0xa73772)?this[_0x2e4215(0x1fb)][_0x2e4215(0xc6)](_0xa73772)[_0x2e4215(0x1fc)]:this[_0x2e4215(0x1d2)]['pipe'](_0x57538f(_0x3a5084=>_0x3a5084[_0x2e4215(0x2cd)]===_0xa73772),_0x554a5c(_0x25eb07=>_0x25eb07[_0x2e4215(0x1fc)]));}[_0x350772(0x2e4)](){const _0x41f953=_0x350772;this['_univerInstanceService'][_0x41f953(0x1bd)](_0x2ebb81[_0x41f953(0xb6)])[_0x41f953(0xcb)](_0x561bd3(this['dispose$']))['subscribe'](async _0x1636fb=>{const _0x2d9d6f=_0x41f953,_0x53dcf1=_0x1636fb[_0x2d9d6f(0x25a)](),_0x24f106=await this[_0x2d9d6f(0x15e)](_0x53dcf1);this[_0x2d9d6f(0x1d2)][_0x2d9d6f(0x1c2)](_0x24f106),this['_entities'][_0x2d9d6f(0x279)](_0x53dcf1,_0x24f106);}),this[_0x41f953(0x1b6)][_0x41f953(0x1bd)](_0x2ebb81[_0x41f953(0x1ed)])[_0x41f953(0xcb)](_0x561bd3(this[_0x41f953(0xa8)]))[_0x41f953(0xcb)](_0x57538f(_0x36e5ef=>!_0x36e5ef[_0x41f953(0x25a)]()[_0x41f953(0x152)]('__')))[_0x41f953(0x28a)](async _0x3c6961=>{const _0x4cec65=_0x41f953,_0x186a8a=_0x3c6961[_0x4cec65(0x25a)](),_0x38c686=await this[_0x4cec65(0x249)](_0x186a8a);this[_0x4cec65(0x1d2)][_0x4cec65(0x1c2)](_0x38c686),this[_0x4cec65(0x1fb)][_0x4cec65(0x279)](_0x186a8a,_0x38c686);}),_0x42ed05(this['_univerInstanceService'][_0x41f953(0x189)](_0x2ebb81['UNIVER_DOC']),this['_univerInstanceService'][_0x41f953(0x189)](_0x2ebb81[_0x41f953(0xb6)]))[_0x41f953(0xcb)](_0x561bd3(this[_0x41f953(0xa8)]))[_0x41f953(0x28a)](_0x3826be=>{const _0x5e17ea=_0x41f953,_0x187819=_0x3826be[_0x5e17ea(0x25a)](),_0x22a9b9=this['_entities'][_0x5e17ea(0xc6)](_0x187819);_0x22a9b9&&(_0x22a9b9[_0x5e17ea(0x1e0)](),this['_entities'][_0x5e17ea(0x218)](_0x187819));});}async['_startSheetCollabCursor'](_0x2dfb73){const _0x345a6f=_0x350772,_0x5d76d5=await this[_0x345a6f(0x292)][_0x345a6f(0xa5)](_0x2dfb73),_0x220e33=this[_0x345a6f(0x12a)][_0x345a6f(0x144)](ye,_0x2dfb73,_0x5d76d5);return _0x220e33[_0x345a6f(0x1c6)](),_0x220e33;}async['_startDocCollabCursor'](_0x377e64){const _0x154a4f=_0x350772,_0x2f90a0=await this['_collabSessionService'][_0x154a4f(0xa5)](_0x377e64),_0x1643a2=this['_injector'][_0x154a4f(0x144)](we,_0x377e64,_0x2f90a0);return _0x1643a2[_0x154a4f(0x1c6)](),_0x1643a2;}};function _0x2f90(_0x592140,_0x53a9b2){const _0x30a7bc=_0x30a7();return _0x2f90=function(_0x2f90cf,_0x5e42b3){_0x2f90cf=_0x2f90cf-0xa0;let _0x5363e5=_0x30a7bc[_0x2f90cf];return _0x5363e5;},_0x2f90(_0x592140,_0x53a9b2);}Y=Wi([pe(0x0,_0xbcb279),pe(0x1,_0x1ada69(_0x37163f)),pe(0x2,_0x1ada69(_0x13b5b6))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x22518c,_0x1916c1){const _0x56e602=_0x350772;let {radius:_0x1be25f,width:_0x1f7946,height:_0x5b93fe}=_0x1916c1;_0x1be25f=_0x1be25f!=null?_0x1be25f:0x0,_0x1f7946=_0x1f7946!=null?_0x1f7946:0x1e,_0x5b93fe=_0x5b93fe!=null?_0x5b93fe:0x1e;let _0x292065=0x0,_0x20b1ce=0x0,_0x378675=0x0;_0x292065=_0x20b1ce=_0x378675=Math[_0x56e602(0x132)](_0x1be25f,_0x1f7946/0x2,_0x5b93fe/0x2),_0x22518c[_0x56e602(0x10b)](),_0x22518c[_0x56e602(0x22a)](_0x292065,0x0),_0x22518c[_0x56e602(0x290)](_0x1f7946-_0x20b1ce,0x0),_0x22518c[_0x56e602(0x281)](_0x1f7946-_0x20b1ce,_0x20b1ce,_0x20b1ce,Math['PI']*0x3/0x2,0x0,!0x1),_0x22518c[_0x56e602(0x290)](_0x1f7946,_0x5b93fe-_0x378675),_0x22518c['arc'](_0x1f7946-_0x378675,_0x5b93fe-_0x378675,_0x378675,0x0,Math['PI']/0x2,!0x1),_0x22518c['lineTo'](0x0,_0x5b93fe),_0x22518c[_0x56e602(0x290)](0x0,_0x292065),_0x22518c['arc'](_0x292065,_0x292065,_0x292065,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22518c[_0x56e602(0x1e8)](),_0x1916c1['fill']&&(_0x22518c[_0x56e602(0x226)](),_0x22518c[_0x56e602(0x206)]=_0x1916c1['fill'],_0x1916c1[_0x56e602(0x259)]===_0x56e602(0x17a)?_0x22518c[_0x56e602(0xd9)](_0x56e602(0x17a)):_0x22518c[_0x56e602(0xd9)](),_0x22518c[_0x56e602(0xee)]());}class Ie extends _0x316be7{constructor(_0x42ef63,_0x2e9d8f){const _0x5c5a5d=_0x350772;super(_0x42ef63,_0x2e9d8f),_(this,_0x5c5a5d(0x231)),_(this,'text'),(this[_0x5c5a5d(0x231)]=_0x2e9d8f==null?void 0x0:_0x2e9d8f['color'],this[_0x5c5a5d(0x17f)]=_0x2e9d8f==null?void 0x0:_0x2e9d8f['text']);}static['drawWith'](_0x545eab,_0x4ce7b7){const _0x3d5b88=_0x350772,{text:_0x1a43e7,color:_0x1f7375}=_0x4ce7b7;_0x545eab['save'](),_0x545eab[_0x3d5b88(0x19d)]=_0x3d5b88(0x2d6);const _0x12d8dc=_0x545eab[_0x3d5b88(0x28f)](_0x1a43e7)[_0x3d5b88(0xa3)],_0x1ab065=Math[_0x3d5b88(0x132)](_0x12d8dc+0x2*Oe,rt);ji(_0x545eab,{'height':q,'radius':0x4,'width':_0x1ab065,'fill':_0x1f7375}),_0x545eab[_0x3d5b88(0x206)]=_0x3d5b88(0xd5);const _0x38f17c=Oe,_0x376d39=q-Vi,_0x5068a2=rt-0x2*Oe;if(_0x12d8dc>_0x5068a2){let _0x2c5976='',_0x3948c3=0x0;for(const _0x4df550 of _0x1a43e7){const _0x1000a1=_0x545eab['measureText'](_0x4df550)[_0x3d5b88(0xa3)];if(_0x3948c3+_0x1000a1<=_0x5068a2-_0x545eab[_0x3d5b88(0x28f)](_0x3d5b88(0xd7))['width'])_0x2c5976+=_0x4df550,_0x3948c3+=_0x1000a1;else{_0x2c5976+=_0x3d5b88(0xd7);break;}}_0x545eab[_0x3d5b88(0x27c)](_0x2c5976,_0x38f17c,_0x376d39);}else _0x545eab[_0x3d5b88(0x27c)](_0x1a43e7,_0x38f17c,_0x376d39);_0x545eab[_0x3d5b88(0xee)]();}[_0x350772(0xd0)](_0x3c39d0){const _0x187d67=_0x350772;Ie[_0x187d67(0x208)](_0x3c39d0,this);}}function _0x30a7(){const _0x25e665=['9rCgeMQ','_docSkeleton','_univerInstanceService','2872328GKlrUU','_collabCursorState$','event$','with','_transformHistoryAndStateStack','getActiveSheet','getTypeOfUnitAdded$','_updateLocalCursor','runOnServer','defIds','code','next','stringify','_cursors','bottom','init','mutations','origin','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getSkeleton','m2Prime','beforeCommandExecuted','http://www.w3.org/2000/svg','_initCommandInterceptor','_logService','white','YUUMI_CONNECTOR_URL_NOT_FOUND','_entityInit$','_handleJoinEvent','blue.400','_releaseCalculationLimit','YUUMI_RATE_OVER_LIMIT','getParam','JOIN_ROOM_FAILED','UniverIcon','APPLY_NON_SEQUENTIAL_REVISION','TOO_MANY_REQUESTS','registerRefRange','PY_RUNTIME_SCRIPT_ERROR','shift','black','dispose','_updateURLWithCurrentState','_updateCollabCursors','SYNCED','Failed','_pollingInterval','searchParams','random','closePath','then','session.will-retry','_saveCache','getMember','UNIVER_DOC','getRangePointData','FETCH_MISS','className','2rHDfrv','INVITE_CODE_REQUIRED','_drawRectRange','collabStatus.conflict','labelPosition','INTERNAL_ERROR','UNDEFINED','onTransformChange$','_anchor','USERS_LEAVE','_entities','cursorInfo$','Success','LICENSE_IMPORT_SIZE_EXCEEDED','_eventUnsubscribe','collaboration.closeRoom','split','transformIMECache','collaboration.single-unit.warning','YUUMI_NO_CUBOID_FOR_QUESTION','HEADER_MENU','fillStyle','toString','drawWith','disposeUnit','REDEMPTION_CODE_FULLY_REDEEMED','addEventListener','ALREADY_EXISTS','_collabCursorController','_name','_memberService','invokeId','1680744gOQIQy','focused$','_document','onLocalMutation','_docTransformStateCacheService','_backgroundColor','findNodePositionByCharIndex','delete','entries','_localCacheService','eventID','_maxFormulaLimit','683922LTDKxg','0\x200\x2016\x2016','214730zsOyIk','START_CALCULATION','_localStorageService','disposeWithMe','data','INVALID_ARGUMENT','_renderManagerService','save','formula.calculation.started','CURRENT_STATUS_CANNOT_OPERATE','_docTransformIMECacheService','moveTo','1em','_httpService','from','div','params','_dataLoaderService','color','getSheetBySheetId','PERMISSION_DENIED','OFFLINE','3343494NEhPDH','_imageIoService','forEach','ticket','location','extend','_hover','memberID','resize','getUniverSheetInstance','ENSURE_SNAPSHOT_EXECUTION','registerRenderModule','key','UNRECOGNIZED','exhaustSavingTask','_scheduleHeartbeat','hasOwnProperty','error','_shapes','transform','_startDocCollabCursor','hovered','runId','_showGuardMessage','_docSyncEditingCollabCursorService','currentTheme$','_initStatusListener','_hovered','assignAColorForMemberID','_localeService','clearTimeout','_startCalculationLimit','getRelativeToViewportCoord','_registerRenderDependencies','INVITE_CODE_HAS_BEEN_UES','endRow','fillRule','getUnitId','CLOSE_ROOM','sessionStatus$','push','attrs','REDEMPTION_CODE_HAS_BEEN_CREATED','USER_NOT_FOUND','getUnit','_heartbeatTimer','_cursorInfo$','_handleHover','selection','_unitOnClients','_initEvent','subunit','12PqfAjQ','CHANGESET_REVISION_CONFILICT','_registerDependencies','_instanceService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','urlChange$','_notificationService','SNAPSHOT_INVALID_SNAPSHOT','_getFormulaLimitStatus','setItem','MOBILE_VERIFY_CODE_MISMATCH','1045750dqVyFm','_selfUnitIDs','xlink:href','_hasFormulaInDirtyRanges','sessionTicket','set','url(#off-line-icon_clip0_910_343)','mask','fillText','defs','LICENSE_EXPORT_SIZE_EXCEEDED','getformulaLimitStatusUrl','transformMutation','arc','send','OTHER_CLIENTS_EDITING','permission.content','stageInfo','getCollabCursors$','collabStatus.offline','_transformUndoRedoStack','_applyCommand','subscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','range','_refreshCollabCursors','startFormulaLimitUrl','measureText','lineTo','subUnitId','_collabSessionService','_getSaveTimeout','apply','_configService','undoState','all','unit','_handleEvent','APPLY_DUPLICATED','collabCursorState$','_themeService','collab-text-anchor-','SUBMIT_CHANGESET_TIMEOUT','_initCommandExecutedListener','transformStateCache','APPLY_PERMISSION_DENIED','green.600','_uiPartsService','EMAIL_VERIFY_CODE_MISMATCH','redoState','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','call','_beforeCloseService','sheetID','_config','ENTITLE_REPORT_LIMIT_EXCEED','LICENSE_DISTRO_REJECTED','height','getOwnPropertySymbols','CONFLICT','_taskIds','values','now','url(#$1','currentColor','NOT_COLLAB','getUnhiddenWorksheets','post','_ensureSubject','symbol','endColumn','_messageService','session.connection-failed','popstate','_handleHeartbeatEvent','getCurrentSelections','actions','name','getOwnPropertyDescriptor','_collaborationController','transformByState','transformMutationsWithChangeset','_setFormulaLimitStatus','path','_send','DeleteRangeMoveLeftCommandId','debug','contains','_transformService','unitID','size','cursorInfo','history','_drawTextRange','unsubscribe','MUTATION','assign','clipPath','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','setUndoRedoMutationParamsCache','dirtyRanges','_collaborationUIEventService','totalFormulasToCalculate','activeSheet$','_cachedData','ENTITLE_DUP_SUBSCRIPTION','getCellMatrix','session.collaboration-timeout','on-line-icon','getDocRanges','_doCreateSocket','NO_OTHER_CLIENTS_EDITING','_init','getCurrentRevOfUnit','length','executeCommand','_initStatusComponent','Unknown\x20user','width','string','requireSession','_colorAssignService','registerComponent','dispose$','_docTransformSelectionsService','permission.title','_setupBeforeClosingHandler','LICENSE_MAX_UNITS_EXCEEDED','off-line-icon','ENTITLE_CHAT_LIMIT_EXCEED','YUUMI_ALL_TABLES_IS_INVALID','SOCKET_FAILED','Warning','registerBeforeClose','getCurrentUnitForType','releaseFormulaLimitUrl','isActive','UNIVER_SHEET','replaceState','deepClone','show','map','getSheetId','YUUMI_ASYNCIO_CANCELLED','type','startColumn','_urlService','REDEMPTION_USER_NOT_ELIGIBLE','syncEditingCollabCursor','_cursor','SNAPSHOT_HAS_BEEN_REMOVED','_createSocketURL','newValue','get','_revisionService','_range','idSuffix','univerjs-icon\x20univerjs-icon-','pipe','PENDING','InsertRangeMoveRightCommandId','_disabled','38502zBqvMo','_draw','_removeCollabCursors','_clearOtherTimers','body','LOGIN_TOKEN_PROCESSING_FAILED','#FFF','_color','...','AWAITING','fill','search','_lastResponseTimestamp','getCurrent','APPLY_REVISION_CONFILICT','backgroundColor','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','children','_commandService','USER_IS_ANONYMOUS','replace','_onCursorUpdate','_scene','_sheetSkeletonManagerService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','doc.mutation.rich-text-editing','_syncEditingCollabCursorService','_status$','InsertColCommandId','onPointerEnter$','off-line-icon_clip0_910_343','restore','loadUnit','skeleton','VIEW_MAIN','UPDATE_CURSOR','functionsExecutedState','setActiveRange','collaboration-client-ui.config','/universer-api/license/formula/limit/status','_onRefRangeChange','onStarting','INVITE_CODE_ALREADY_BOUND','onPointerLeave$','parse','m1Prime','_hideTimer','collab-rect-range-','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_textBubble','imageSourceType','textRanges','collab-text-range-','_initDependencies','has','none','PAYMENT_CHANNEL_NOT_SUPPORT','REDEMPTION_CODE_INACTIVE','getMergeData','_saveTaskMap','beginPath','add','wsSessionTicketUrl','getValue','_setupSubUnitSync','propertyIsEnumerable','COMPLETION_FINISHED','ranges','source','subscribeEvent','_updateSubUnitFromURLParams','APPLY_REJECT','setParam','isArray','setAlpha','_onCursorDelete','_refRangeService','trim','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_docClipboardService','UNAUTHENTICATED','RECT','setConfig','USER_NOT_INVITED_CODE','entityInit$','TEXT','ONLINE','InsertRowCommandId','tag','_session','MOBILE_HAS_BEEN_BOUND','_injector','YUUMI_UNABLE_LOAD_URL','Loading','_online','svg','use','_lastPointer','find','min','onRendered','removeParam','limitInfo','REDEMPTION_USER_REDEEM_TIMES_EXCEED','substring','_render','_initEntityListener','editingUnit','prototype','WECHAT_HAS_BEEN_BOUND','triggerDblclick','_context','currentSkeleton$','RemoveRowCommandId','/universer-api/license/formula/limit/start','NOT_FOUND','_transformPreviousActiveRange','createInstance','_scheduleSaving','getActiveRange','RemoveColCommandId','_getSheetObject','getColorFromTheme','asObservable','status$','hide','EMAIL_HAS_BEEN_BOUND','AWAITING_WITH_PENDING','defineProperty','createSocket','displayName','startsWith','_drawAnchor','unitId','_scheduleClearOtherTimer','complete','_getAnchorBounding','selections','_clearPolling','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','href','onMouseMove','_roomMembers$','_startSheetCollabCursor','getFocusedUnit','_cursorShapes','executionId','onCommandExecuted','on-line-icon_clip0_910_349','getUndoRedoMutationParamsCache','whenReady','getVpScrollXYInfoByPosToVp','INVALID_INVITE_CODE','toRgbString','_docStateChangeManagerService','currentUsage','getItem','top','includes','sheetId','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','YUUMI_AI_RUN_FAILED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_id','YUUMI_SUBSCRIPTION_NOT_FOUND','updateOfflineData','enableLocalCache','_docSkeletonManagerService','docStateChange$','colorChannel1','_getSessionTicket','evenodd','setShapeProps','REDEMPTION_CODE_NOT_STARTED','AUTHORIZE_CODE_ILLEGAL','yellow.400','text','unshift','getConfig','getCollabEntity$','_removeClearOtherTimer','_checkCalculationAvailable','_anchorDot','formula.calculation.unable','onPointerMove$','_getScale','getTypeOfUnitDisposed$','clearInterval','startRow','transformSelections','_currentUsage','parseInt','maxFormulaLimit','column','_initResize','transformRemoteChangeset','unload','addObject','YUUMI_URL_COL_OUT_OF_RANGE','Error','saveTaskMap','getStateCache','reconnect','REDEMPTION_INVALID_CODE','application/json','LOGIN_FAILED','font','_unitStatus','getUnitStatus$','saveImage','setTimeout','FromArray','indexOf','CONNECTOR_DATA_TOO_LARGE','_toggleOffline','_toggleOnline','ERROR_AGAIN','[CollaborationDataLoaderController]','getRenderById','_labelPosition','ENTITLE_NEED_BILLING_ADDRESS','round','translate(.97)','function','_assignedColors','concat','_checkAndWaitForCalculationPermission','_colorIndex','M0\x200H16V16H0z'];_0x30a7=function(){return _0x25e665;};return _0x30a7();}const Te=_0x350772(0x29d),Xi=_0x350772(0x103),Gi=_0x350772(0xfe),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ot{constructor(_0x3e87b3,_0x5dc387,_0x3be03b,_0x3d0b7b){const _0x2f567d=_0x350772;_(this,_0x2f567d(0x247),[]),_(this,_0x2f567d(0x1f9),null),_(this,_0x2f567d(0x100),null),_(this,_0x2f567d(0x185),null),_(this,'_hideTimer',null),_(this,_0x2f567d(0x1ff),null),(this[_0x2f567d(0xc2)]=_0x3e87b3,this[_0x2f567d(0xe5)]=_0x5dc387,this[_0x2f567d(0x1b5)]=_0x3be03b,this[_0x2f567d(0x213)]=_0x3d0b7b,this[_0x2f567d(0x138)]());}set[_0x350772(0x23b)](_0x47260b){const _0x29300c=_0x350772;_0x47260b?(this[_0x29300c(0x185)]&&this[_0x29300c(0x185)]['hide'](),this[_0x29300c(0x100)]&&this['_textBubble']['show']()):(this[_0x29300c(0x185)]&&this[_0x29300c(0x185)][_0x29300c(0xb9)](),this[_0x29300c(0x100)]&&this[_0x29300c(0x100)][_0x29300c(0x14c)]());}[_0x350772(0x1e0)](){const _0x38650e=_0x350772;for(const _0x5484d3 of this['_shapes'])_0x5484d3['dispose']();this[_0x38650e(0x100)]&&this[_0x38650e(0x100)]['dispose'](),this['_anchorDot']&&this[_0x38650e(0x185)][_0x38650e(0x1e0)](),this[_0x38650e(0x1f9)]&&this['_anchor'][_0x38650e(0x1e0)](),this[_0x38650e(0x1ff)]&&this[_0x38650e(0x1ff)]();}[_0x350772(0x138)](){const _0xd41476=_0x350772;var _0x5eab9d;const {_docSkeleton:_0x3e2a69,_document:_0x2312a3}=this,{color:_0x69d254,name:_0x4230d2,ranges:_0x46af6f}=this[_0xd41476(0xc2)],_0x2ae8c9=_0x2312a3['getOffsetConfig'](),{docsLeft:_0x5004fc,docsTop:_0x262c5e}=_0x2ae8c9,_0x347cc1=new _0x23b453(_0x2ae8c9,_0x3e2a69);for(const {startOffset:_0x412daa,endOffset:_0x31d27,rangeType:_0x269e82,segmentId:_0x2b941b,segmentPage:_0x4714f8,collapsed:_0x898014,isActive:_0x54628d}of _0x46af6f){const _0x3fff7d=_0x3e2a69[_0xd41476(0x217)](_0x412daa,!0x0,_0x2b941b,_0x4714f8);let _0x430af7=_0x3e2a69[_0xd41476(0x217)](_0x31d27,!0x0,_0x2b941b,_0x4714f8);if(_0x430af7==null&&(_0x430af7=_0x3e2a69[_0xd41476(0x217)](_0x31d27-0x1,!0x1,_0x2b941b,_0x4714f8)),_0x54628d){const {contentBoxPointGroup:_0x298e44}=_0x347cc1['getRangePointData'](_0x430af7,_0x430af7);if(_0x298e44[_0xd41476(0x2e6)]===0x0)continue;this[_0xd41476(0x153)](_0x69d254,_0x298e44,_0x5004fc,_0x262c5e,_0x4230d2),this[_0xd41476(0x1ff)]=this[_0xd41476(0x264)]();}if(_0x3fff7d&&_0x430af7){if(_0x269e82===_0x1fab1a[_0xd41476(0x120)]){const _0x243ba7=new _0x4c81a5(_0x2ae8c9,_0x3e2a69),{pointGroup:_0xeb353}=(_0x5eab9d=_0x243ba7[_0xd41476(0x1ee)](_0x3fff7d,_0x430af7))!=null?_0x5eab9d:{};if(_0xeb353==null||_0xeb353[_0xd41476(0x2e6)]===0x0)continue;this['_drawRectRange'](_0x69d254,_0xeb353,_0x5004fc,_0x262c5e);}else{if(!_0x898014){const {borderBoxPointGroup:_0x52d6b2}=_0x347cc1[_0xd41476(0x1ee)](_0x3fff7d,_0x430af7);if(_0x52d6b2[_0xd41476(0x2e6)]===0x0)continue;this[_0xd41476(0x2d1)](_0x69d254,_0x52d6b2,_0x5004fc,_0x262c5e);}}}}}[_0x350772(0x153)](_0x12afeb,_0x442130,_0x54c75e,_0x164ea2,_0x3430ee){const _0x319dfe=_0x350772,_0xf1105a=this['_getAnchorBounding'](_0x442130),{left:_0x752be8,top:_0x3a04b0,height:_0x26935b}=_0xf1105a,_0x1a1287=this[_0x319dfe(0x188)](),_0x49616e=zi/_0x1a1287,_0x13e2ce=new _0x154153(Te+_0x43b449(J),{'left':_0x752be8+_0x54c75e-_0x49616e,'top':_0x3a04b0+_0x164ea2,'height':_0x26935b,'width':Ki,'fill':_0x12afeb||_0x4740de(_0x1b0abb[_0x319dfe(0x1df)],0x0),'strokeWidth':_0x49616e,'stroke':Ji,'evented':!0x0});this[_0x319dfe(0x1f9)]=_0x13e2ce,this[_0x319dfe(0xe5)][_0x319dfe(0x194)](_0x13e2ce,_0x3d216c);const _0x5345c0=new _0x154153(Te+_0x43b449(J),{'left':_0x752be8+_0x54c75e-_0x49616e,'top':_0x3a04b0+_0x164ea2-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x12afeb||_0x4740de(_0x1b0abb[_0x319dfe(0x1df)],0x0),'strokeWidth':0x0,'stroke':_0x12afeb||_0x4740de(_0x1b0abb[_0x319dfe(0x1df)],0x0),'evented':!0x1});this[_0x319dfe(0x185)]=_0x5345c0,this[_0x319dfe(0xe5)]['addObject'](_0x5345c0,_0x3d216c);const _0x57b206=new Ie(Te+_0x43b449(J),{'left':_0x752be8+_0x54c75e-_0x49616e,'top':_0x3a04b0+_0x164ea2-q,'text':_0x3430ee,'color':_0x12afeb});this[_0x319dfe(0x100)]=_0x57b206,this[_0x319dfe(0xe5)][_0x319dfe(0x194)](_0x57b206,_0x3d216c),this[_0x319dfe(0x23b)]=!0x1;}[_0x350772(0x264)](){const _0x3d5c37=_0x350772,_0x54f8b1=this[_0x3d5c37(0x1f9)][_0x3d5c37(0xec)][_0x3d5c37(0x114)](()=>{const _0x31ec81=_0x3d5c37;this[_0x31ec81(0x23b)]=!0x0;}),_0x44ed0a=this[_0x3d5c37(0x1f9)][_0x3d5c37(0xfa)][_0x3d5c37(0x114)](()=>{const _0x4071fc=_0x3d5c37;this['_hideTimer']&&clearTimeout(this[_0x4071fc(0xfd)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3db62c=_0x3d5c37;_0x54f8b1[_0x3db62c(0x2d2)](),_0x44ed0a[_0x3db62c(0x2d2)]();};}[_0x350772(0x2d1)](_0x29f96b,_0x2489bc,_0x32e2a9,_0x26e5d0){const _0x3a3d43=_0x350772,_0x452460=new _0x1e2ad1(_0x29f96b)[_0x3a3d43(0x119)](0.2)[_0x3a3d43(0x168)](),_0x39e194=new _0x5f4a89(Xi+_0x43b449(J),{'pointsGroup':_0x2489bc,'fill':_0x452460||_0x4740de(_0x1b0abb['black'],0.2),'left':_0x32e2a9,'top':_0x26e5d0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a3d43(0x247)][_0x3a3d43(0x25d)](_0x39e194),this[_0x3a3d43(0xe5)][_0x3a3d43(0x194)](_0x39e194,_0x3d216c);}[_0x350772(0x1f3)](_0x3dbaef,_0x57f7c9,_0x3fa374,_0x3b6cdc){const _0x2d44e5=_0x350772,_0x535d5e=new _0x1e2ad1(_0x3dbaef)['setAlpha'](0.2)[_0x2d44e5(0x168)](),_0xfd5006=new _0x5f4a89(Gi+_0x43b449(J),{'pointsGroup':_0x57f7c9,'fill':_0x535d5e||_0x4740de(_0x1b0abb[_0x2d44e5(0x1df)],0.2),'left':_0x3fa374,'top':_0x3b6cdc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d44e5(0x247)][_0x2d44e5(0x25d)](_0xfd5006),this[_0x2d44e5(0xe5)]['addObject'](_0xfd5006,_0x3d216c);}[_0x350772(0x157)](_0xa7b47f){const _0x160a35=_0xa7b47f[0x0],_0x55517c=_0x160a35[0x0],_0x3ef9c3=_0x160a35[0x2],{x:_0x5c44a3,y:_0x33605a}=_0x55517c,{x:_0x93e5c1,y:_0x2572df}=_0x3ef9c3;return{'left':_0x5c44a3,'top':_0x33605a,'width':_0x93e5c1-_0x5c44a3,'height':_0x2572df-_0x33605a};}[_0x350772(0x188)](){const _0x5ba415=_0x350772,{scaleX:_0x10dd05,scaleY:_0x511a35}=this[_0x5ba415(0xe5)]['getAncestorScale']();return Math['max'](_0x10dd05,_0x511a35);}}var Zi=Object[_0x350772(0x2c2)],Qi=(_0xd5853c,_0x117cb2,_0xe6c958,_0x56a022)=>{const _0x25f1fe=_0x350772;for(var _0xa1bea1=_0x56a022>0x1?void 0x0:_0x56a022?Zi(_0x117cb2,_0xe6c958):_0x117cb2,_0x5071e5=_0xd5853c[_0x25f1fe(0x2e6)]-0x1,_0x478ec3;_0x5071e5>=0x0;_0x5071e5--)(_0x478ec3=_0xd5853c[_0x5071e5])&&(_0xa1bea1=_0x478ec3(_0xa1bea1)||_0xa1bea1);return _0xa1bea1;},ne=(_0x1d2cb4,_0x35423d)=>(_0x4f653d,_0x57be12)=>_0x35423d(_0x4f653d,_0x57be12,_0x1d2cb4);let $e=class extends _0x3e95b8{constructor(_0x22fcf2,_0x10dd4d,_0x446d3a,_0x36112d,_0x16f469){const _0x4287c8=_0x350772;super(),_(this,_0x4287c8(0x160),[]),_(this,_0x4287c8(0x1c4),[]),(this[_0x4287c8(0x13e)]=_0x22fcf2,this['_docSkeletonManagerService']=_0x10dd4d,this[_0x4287c8(0x20d)]=_0x446d3a,this[_0x4287c8(0xe1)]=_0x36112d,this[_0x4287c8(0x29c)]=_0x16f469,this[_0x4287c8(0x2e4)]());}['_init'](){const _0x2ea7c4=_0x350772,_0x235fa8=this[_0x2ea7c4(0x13e)][_0x2ea7c4(0x154)],_0x6eb27f=this['_docSkeletonManagerService'];this[_0x2ea7c4(0x222)](_0x264ffa([this[_0x2ea7c4(0x20d)][_0x2ea7c4(0x286)](_0x235fa8),this[_0x2ea7c4(0x29c)][_0x2ea7c4(0x24e)]])[_0x2ea7c4(0xcb)](_0x273082(([_0x154c55,_0x218ddc])=>({'skeleton':_0x6eb27f[_0x2ea7c4(0x1ca)](),'cursors':[..._0x154c55[_0x2ea7c4(0x2b1)]()]['flatMap'](_0x58b9dc=>({..._0x58b9dc,'color':this[_0x2ea7c4(0x29c)][_0x2ea7c4(0x149)](_0x58b9dc[_0x2ea7c4(0x231)])}))})))[_0x2ea7c4(0x28a)](_0x39f079=>{const _0x27059f=_0x2ea7c4;if(this['_removeCollabCursors'](),_0x39f079){const {skeleton:_0x5731cf,cursors:_0x16a63f}=_0x39f079;this[_0x27059f(0x1e2)](_0x5731cf,_0x16a63f);}})),this[_0x2ea7c4(0x191)](),this[_0x2ea7c4(0x29f)]();}[_0x350772(0x1e2)](_0x2c5d58,_0x1283f9){const _0xc4a6e5=_0x350772,{scene:_0x2d4f4d,mainComponent:_0x2f916f}=this['_context'],_0x4729a2=_0x1283f9[_0xc4a6e5(0xba)](_0x11017e=>new ot(_0x11017e,_0x2d4f4d,_0x2c5d58,_0x2f916f));this[_0xc4a6e5(0x160)]=_0x4729a2,this[_0xc4a6e5(0x1c4)]=_0x1283f9;}[_0x350772(0x28d)](){const _0x4af1d2=_0x350772;this[_0x4af1d2(0xd1)]();const {scene:_0x24d03e,mainComponent:_0x3991df}=this[_0x4af1d2(0x13e)],_0xdd9993=this[_0x4af1d2(0x176)][_0x4af1d2(0x1ca)](),_0xb44129=this[_0x4af1d2(0x1c4)][_0x4af1d2(0xba)](_0x2ae6ac=>new ot(_0x2ae6ac,_0x24d03e,_0xdd9993,_0x3991df));this[_0x4af1d2(0x160)]=_0xb44129;}[_0x350772(0xd1)](){const _0x59ca1b=_0x350772;this[_0x59ca1b(0x160)][_0x59ca1b(0x237)](_0x47af2c=>_0x47af2c[_0x59ca1b(0x1e0)]()),this[_0x59ca1b(0x160)]=[];}[_0x350772(0x29f)](){const _0x3ea5bd=_0x350772,_0x5c1ec0=[_0x49cb7f['id']];this['disposeWithMe'](this['_commandService'][_0x3ea5bd(0x162)](_0x42c0e9=>{const _0x24e7a8=_0x3ea5bd;_0x5c1ec0[_0x24e7a8(0x16d)](_0x42c0e9['id'])&&_0x42c0e9[_0x24e7a8(0x22f)]['unitId']===this[_0x24e7a8(0x13e)][_0x24e7a8(0x154)]&&this[_0x24e7a8(0x28d)]();}));}[_0x350772(0x191)](){const _0x1386e9=_0x350772;this[_0x1386e9(0x222)](_0x2754b0(this[_0x1386e9(0x13e)]['engine'][_0x1386e9(0x1f8)])[_0x1386e9(0xcb)](_0x564fd5(_0x20a72a=>_0x20a72a[_0x1386e9(0xbd)]===_0x239e83[_0x1386e9(0x23d)]),_0xe18dca(0x10))[_0x1386e9(0x28a)](()=>{const _0x12a312=_0x1386e9;this[_0x12a312(0x28d)]();}));}};$e=Qi([ne(0x1,_0x1ada69(_0x107acb)),ne(0x2,_0x1ada69(Y)),ne(0x3,_0x5df3ab),ne(0x4,_0x1ada69(_0x3617fd))],$e);const qi=0x1,en=1.5;class tn extends _0x316be7{constructor(_0x5359f9,_0x43bfd7){const _0x25e2c3=_0x350772;super(_0x5359f9,_0x43bfd7),_(this,_0x25e2c3(0xd6)),_(this,'_hovered',!0x1),_(this,_0x25e2c3(0xc8)),_(this,_0x25e2c3(0x20e),''),_(this,_0x25e2c3(0x1aa),_0x25e2c3(0x16c)),_(this,'_backgroundColor'),(_0x43bfd7&&this[_0x25e2c3(0x17b)](_0x43bfd7),this['onPointerEnter$'][_0x25e2c3(0x114)](()=>this[_0x25e2c3(0x17b)]({'hovered':!0x0})),this[_0x25e2c3(0xfa)][_0x25e2c3(0x114)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x350772(0x17b)](_0x3af4bc){const _0x1a02c1=_0x350772;var _0x2127e9,_0x329b0e,_0xc91ce8,_0x1edc3f,_0x3403f8,_0x11da2f;this[_0x1a02c1(0xd6)]=(_0x2127e9=_0x3af4bc[_0x1a02c1(0x231)])!=null?_0x2127e9:this['_color'],this[_0x1a02c1(0x250)]=(_0x329b0e=_0x3af4bc[_0x1a02c1(0x24a)])!=null?_0x329b0e:this[_0x1a02c1(0x250)],this[_0x1a02c1(0xc8)]=(_0xc91ce8=_0x3af4bc[_0x1a02c1(0x28c)])!=null?_0xc91ce8:this[_0x1a02c1(0xc8)],this[_0x1a02c1(0x20e)]=(_0x1edc3f=_0x3af4bc[_0x1a02c1(0x2c1)])!=null?_0x1edc3f:this[_0x1a02c1(0x20e)],this[_0x1a02c1(0x1aa)]=(_0x3403f8=_0x3af4bc[_0x1a02c1(0x1f5)])!=null?_0x3403f8:this[_0x1a02c1(0x1aa)],this[_0x1a02c1(0x216)]=(_0x11da2f=_0x3af4bc[_0x1a02c1(0xde)])!=null?_0x11da2f:this[_0x1a02c1(0x216)],this[_0x1a02c1(0x2c4)]({'width':_0x3af4bc[_0x1a02c1(0xa3)],'height':_0x3af4bc[_0x1a02c1(0x2ad)]});}['onMouseMove'](_0x2edc75){const _0x3d0d98=_0x350772,{row:_0x44904f,column:_0x3b8aa7}=_0x2edc75;if(_0x44904f>=this[_0x3d0d98(0xc8)]['startRow']&&_0x44904f<=this['_range'][_0x3d0d98(0x258)]&&_0x3b8aa7>=this['_range'][_0x3d0d98(0xbe)]&&_0x3b8aa7<=this[_0x3d0d98(0xc8)][_0x3d0d98(0x2ba)]){this[_0x3d0d98(0x17b)]({'hovered':!0x0});return;}this[_0x3d0d98(0x17b)]({'hovered':!0x1});}[_0x350772(0x13d)](_0x6dc196){return!0x1;}[_0x350772(0xd0)](_0x20afd5){const _0xfb9ef1=_0x350772;_0x154153[_0xfb9ef1(0x208)](_0x20afd5,{'width':this[_0xfb9ef1(0xa3)],'height':this['height'],'strokeWidth':en,'stroke':this[_0xfb9ef1(0xd6)],'evented':!0x1,'fill':this[_0xfb9ef1(0x216)]}),this[_0xfb9ef1(0x250)]&&(_0x20afd5[_0xfb9ef1(0x226)](),_0x20afd5[_0xfb9ef1(0x248)](0x1,0x0,0x0,0x1,this[_0xfb9ef1(0xa3)],this[_0xfb9ef1(0x1aa)]===_0xfb9ef1(0x1c5)?0x0:-q),Ie[_0xfb9ef1(0x208)](_0x20afd5,{'text':this[_0xfb9ef1(0x20e)],'color':this['_color']}),_0x20afd5[_0xfb9ef1(0xee)]());}}var sn=Object[_0x350772(0x2c2)],nn=(_0x160518,_0x438ea1,_0x4adeef,_0x54026e)=>{const _0xa4e118=_0x350772;for(var _0x366ec0=_0x54026e>0x1?void 0x0:_0x54026e?sn(_0x438ea1,_0x4adeef):_0x438ea1,_0x4fbf1d=_0x160518[_0xa4e118(0x2e6)]-0x1,_0x1cb8dc;_0x4fbf1d>=0x0;_0x4fbf1d--)(_0x1cb8dc=_0x160518[_0x4fbf1d])&&(_0x366ec0=_0x1cb8dc(_0x366ec0)||_0x366ec0);return _0x366ec0;},Re=(_0x27bc3c,_0x198c9b)=>(_0x111d36,_0x271efa)=>_0x198c9b(_0x111d36,_0x271efa,_0x27bc3c);const rn=0x1389;let xe=class extends _0x3e95b8{constructor(_0x3b9e85,_0x469473,_0x33ae47,_0x4c88fa){const _0x480210=_0x350772;super(),_(this,'_cursors',new Set()),_(this,_0x480210(0x130),null),(this[_0x480210(0x13e)]=_0x3b9e85,this[_0x480210(0xe6)]=_0x469473,this[_0x480210(0x20d)]=_0x33ae47,this[_0x480210(0x29c)]=_0x4c88fa,this[_0x480210(0x2e4)]());}[_0x350772(0x2e4)](){const _0x1d28e2=_0x350772;this[_0x1d28e2(0xe6)]['currentSkeleton$'][_0x1d28e2(0xcb)](_0x140ecf(this[_0x1d28e2(0xa8)]),_0xa0b962(_0x24b4ba=>{const _0x362c99=_0x1d28e2;if(_0x24b4ba){const _0xfdbbde=_0x24b4ba[_0x362c99(0x16e)];return _0x264ffa(this['_collabCursorController'][_0x362c99(0x286)](this[_0x362c99(0x13e)]['unitId']),this[_0x362c99(0x29c)][_0x362c99(0x24e)])['pipe'](_0x273082(([_0x561fdc,_0x5f1957])=>{const _0x3f8b11=new Map();return _0x561fdc['forEach']((_0x2bf7b0,_0x2df34d)=>{const _0x52a482=_0x2f90;if(_0x2bf7b0[_0x52a482(0x2a9)]===_0xfdbbde){const _0x3d4e6a={..._0x2bf7b0};_0x3d4e6a[_0x52a482(0x231)]=this[_0x52a482(0x29c)][_0x52a482(0x149)](_0x2bf7b0['color']),_0x3f8b11[_0x52a482(0x279)](_0x2df34d,_0x3d4e6a);}}),{'skeleton':_0x24b4ba,'cursors':_0x3f8b11};}));}return _0x37bd79({'skeleton':null,'cursors':new Map()});}))[_0x1d28e2(0x28a)](({skeleton:_0x1a0aab,cursors:_0x20dbd8})=>{const _0x3eb81c=_0x1d28e2;this[_0x3eb81c(0xd1)](),_0x1a0aab&&this[_0x3eb81c(0x1e2)](_0x1a0aab,_0x20dbd8);}),this[_0x1d28e2(0xe6)][_0x1d28e2(0x13f)][_0x1d28e2(0x28a)](_0x38b86d=>{const _0x5535b9=_0x1d28e2;if(_0x38b86d==null)return;const {skeleton:_0x38ed05}=_0x38b86d,{scene:_0xd819a}=this['_context'];_0xd819a[_0x5535b9(0x187)][_0x5535b9(0x114)](_0x54c55d(_0x390f4c=>{const _0x1bec51=_0x5535b9;var _0x57c6d4,_0x34d60b;const {offsetX:_0x477e73,offsetY:_0x4cea53}=_0x390f4c,{x:_0x38880a,y:_0x5134cf}=_0xd819a[_0x1bec51(0x255)](_0x53f9d6[_0x1bec51(0x1a2)]([_0x477e73,_0x4cea53])),{scaleX:_0x1943c6,scaleY:_0xebeb6a}=_0xd819a['getAncestorScale'](),_0x2b52c9=_0xd819a['getViewport'](_0x3d904a[_0x1bec51(0xf1)]),_0x5a8391=_0xd819a[_0x1bec51(0x166)](_0x53f9d6[_0x1bec51(0x1a2)]([_0x38880a,_0x5134cf]),_0x2b52c9),_0x48b872=_0x38ed05['getCellPositionByOffset'](_0x477e73,_0x4cea53,_0x1943c6,_0xebeb6a,_0x5a8391);((_0x57c6d4=this[_0x1bec51(0x130)])==null?void 0x0:_0x57c6d4['column'])===_0x48b872[_0x1bec51(0x190)]&&((_0x34d60b=this['_lastPointer'])==null?void 0x0:_0x34d60b['row'])===_0x48b872['row']||this['_cursors'][_0x1bec51(0x237)](_0x1bcbad=>{const _0x1d1c57=_0x1bec51;_0x1bcbad[_0x1d1c57(0x15c)](_0x48b872);});},0x64));});}[_0x350772(0x1e2)](_0x372c9e,_0x4fa8cd){const _0x4916f0=_0x350772;var _0x354330;const _0x3d71c6=(_0x354330=this['_sheetSkeletonManagerService'][_0x4916f0(0xdc)]())==null?void 0x0:_0x354330[_0x4916f0(0xf0)];if(!_0x3d71c6)return;const _0x2cdb71=this[_0x4916f0(0x148)]();if(!_0x2cdb71)return;this[_0x4916f0(0x1c4)][_0x4916f0(0x237)](_0x33e0b9=>{_0x33e0b9['makeDirty']();});const {scene:_0x1e5705}=_0x2cdb71,_0x1d0212=on(Array[_0x4916f0(0x22d)](_0x4fa8cd[_0x4916f0(0x2b1)]()))[_0x4916f0(0xba)](_0x4aaf93=>{const _0x297a82=_0x4916f0,{color:_0x44329a,range:_0x3172f0,name:_0x2a8c07,selection:_0x488b1e,sheetID:_0x102717}=_0x4aaf93,{startColumn:_0x4f844b,startRow:_0x332929,endColumn:_0x340d6d,endRow:_0x289b7f}=_0x3172f0,_0x4878bb=_0x26559f(_0x332929,_0x4f844b,_0x1e5705,_0x3d71c6),_0x5d5660=_0x26559f(_0x289b7f,_0x340d6d,_0x1e5705,_0x3d71c6),{columnHeaderHeightAndMarginTop:_0x2f1410}=_0x3d71c6,{startX:_0x4eef3d,startY:_0x58b713}=_0x4878bb,{endX:_0x1c45b1,endY:_0x77ac6e}=_0x5d5660,_0x33ee82=_0x1c45b1-_0x4eef3d,_0x35a5b8=_0x77ac6e-_0x58b713,_0x4d1430={'labelPosition':_0x58b713-_0x2f1410>=q?_0x297a82(0x16c):'bottom','sheetID':_0x102717,'range':_0x3172f0,'color':_0x44329a,'name':_0x2a8c07,'selection':_0x488b1e,'left':_0x4eef3d,'top':_0x58b713,'width':_0x33ee82,'height':_0x35a5b8,'evented':!0x1,'zIndex':rn};return new tn(_0x2a8c07,_0x4d1430);});_0x1e5705['addObjects'](_0x1d0212,qi),this[_0x4916f0(0x1c4)]=new Set(_0x1d0212);}[_0x350772(0xd1)](){const _0x2581d9=_0x350772;var _0x27d0bd;(_0x27d0bd=this['_cursors'])==null||_0x27d0bd['forEach'](_0x56b801=>_0x56b801[_0x2581d9(0x1e0)]());}['_getSheetObject'](){const _0x112333=_0x350772;return _0x15f05b(this[_0x112333(0x13e)][_0x112333(0x298)],this[_0x112333(0x13e)]);}};xe=nn([Re(0x1,_0x1ada69(_0x301028)),Re(0x2,_0x1ada69(Y)),Re(0x3,_0x1ada69(_0x3617fd))],xe);function on(_0x5a5404){const _0x3e076d=_0x350772,_0x1615b1=new Map();return _0x5a5404[_0x3e076d(0x237)](_0x2fb7f2=>{const _0x4da6e0=_0x3e076d;if(_0x1615b1[_0x4da6e0(0x105)](_0x2fb7f2[_0x4da6e0(0x265)])){const _0x35168f=_0x1615b1['get'](_0x2fb7f2[_0x4da6e0(0x265)]);_0x35168f['name']+=',\x20'+_0x2fb7f2[_0x4da6e0(0x2c1)];}else _0x1615b1[_0x4da6e0(0x279)](_0x2fb7f2[_0x4da6e0(0x265)],_0x2fb7f2);}),Array[_0x3e076d(0x22d)](_0x1615b1[_0x3e076d(0x2b1)]());}var an=Object[_0x350772(0x2c2)],cn=(_0x7a321d,_0x1134ca,_0x2c9406,_0x48a62a)=>{for(var _0x566e82=_0x48a62a>0x1?void 0x0:_0x48a62a?an(_0x1134ca,_0x2c9406):_0x1134ca,_0x1dde6f=_0x7a321d['length']-0x1,_0x347611;_0x1dde6f>=0x0;_0x1dde6f--)(_0x347611=_0x7a321d[_0x1dde6f])&&(_0x566e82=_0x347611(_0x566e82)||_0x566e82);return _0x566e82;},k=(_0x47048c,_0x12d366)=>(_0x18363a,_0x9c8a20)=>_0x12d366(_0x18363a,_0x9c8a20,_0x47048c);let le=class extends _0x2d8b34{constructor(_0x53e0c3,_0x4f2014,_0x153d85,_0x23785a,_0x532fec,_0x4c3531){const _0x1bcbcf=_0x350772;super(),this[_0x1bcbcf(0x2a8)]=_0x53e0c3,this[_0x1bcbcf(0x21a)]=_0x4f2014,this[_0x1bcbcf(0x2d9)]=_0x153d85,this['_messageService']=_0x23785a,this[_0x1bcbcf(0x26f)]=_0x532fec,this['_localeService']=_0x4c3531,this['_setupBeforeClosingHandler'](),this[_0x1bcbcf(0x267)]();}[_0x350772(0xab)](){const _0x306564=_0x350772;this[_0x306564(0x222)](this[_0x306564(0x2a8)][_0x306564(0xb2)](()=>{const _0x301a69=_0x306564;if(this['_localCacheService']['saveTaskMap'][_0x301a69(0x2ce)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x35dac8=_0x350772;this[_0x35dac8(0x222)](this[_0x35dac8(0x2d9)][_0x35dac8(0x1b9)]['subscribe'](_0x4b1961=>{const _0x507663=_0x35dac8;_0x4b1961['id']===_0x2b9ee3['OTHER_CLIENT_EDITING']&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b['Warning'],'content':this['_localeService']['t'](_0x507663(0x203))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x25b)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0xb1)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x200))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x233)]&&this[_0x507663(0x26f)][_0x507663(0xb9)]({'title':this['_localeService']['t'](_0x507663(0xaa)),'content':this[_0x507663(0x252)]['t'](_0x507663(0x284)),'type':'error','duration':0x0}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x2af)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0x196)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x200))+'('+_0x4b1961[_0x507663(0x223)]+')'}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x1d8)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0xb1)],'content':this['_localeService']['t'](_0x4b1961['data']||'')}),_0x4b1961['id']===_0x2b9ee3['SOCKET_FAILED_RETRY']&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0xb1)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x1ea))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0xb0)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0x196)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x2bc))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x29e)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0x196)],'content':this['_localeService']['t'](_0x507663(0x2df))});}));}};le=cn([k(0x0,_0x48b30a),k(0x1,_0x5c5358),k(0x2,_0x1ada69(_0x9b1590)),k(0x3,_0x41069b),k(0x4,_0x2b8f27),k(0x5,_0x1ada69(_0x57786a))],le);const ln=_0x350772(0xf5),at={};var _n=Object[_0x350772(0x2c2)],hn=(_0x2e5925,_0x4608dd,_0x2543a8,_0x14e11b)=>{const _0x4378e0=_0x350772;for(var _0x27fd9f=_0x14e11b>0x1?void 0x0:_0x14e11b?_n(_0x4608dd,_0x2543a8):_0x4608dd,_0x31bc40=_0x2e5925[_0x4378e0(0x2e6)]-0x1,_0x26e9ba;_0x31bc40>=0x0;_0x31bc40--)(_0x26e9ba=_0x2e5925[_0x31bc40])&&(_0x27fd9f=_0x26e9ba(_0x27fd9f)||_0x27fd9f);return _0x27fd9f;},ct=(_0x1da711,_0x3ef6f8)=>(_0xe2002f,_0x1e8326)=>_0x3ef6f8(_0xe2002f,_0x1e8326,_0x1da711);let _e=class{constructor(_0x3ff888,_0x4422a0){const _0x1eb2b5=_0x350772;this['_transformService']=_0x3ff888,this[_0x1eb2b5(0x225)]=_0x4422a0;}['transformIMECache'](_0x13e0c8){const _0x4bade9=_0x350772;this[_0x4bade9(0x288)](_0x13e0c8),this[_0x4bade9(0x143)](_0x13e0c8);}['transformRemoteChangeset'](_0xbb41ba){const _0x447e64=_0x350772,{unitID:_0x1304e4}=_0xbb41ba,_0x390546=this[_0x447e64(0x225)][_0x447e64(0x1a9)](_0x1304e4)[_0x447e64(0x1ba)](_0x10bdfa),{redoCache:_0xac8d05}=_0x390546[_0x447e64(0x164)]();if(_0xac8d05[_0x447e64(0x2e6)]===0x0)return _0xbb41ba;let _0x5f050f=_0x2d642b['deepClone'](_0xbb41ba[_0x447e64(0x1c7)][0x0]);for(let _0x561070=0x0;_0x561070<_0xac8d05[_0x447e64(0x2e6)];_0x561070++){const _0x4cf302={'id':_0x447e64(0xe8),'params':{..._0xac8d05[_0x561070]}},_0x203845=this['_transformService'][_0x447e64(0x280)](_0x5f050f,_0x4cf302,!0x1);if(_0x456676(_0x203845))throw _0x203845[_0x447e64(0x246)];_0x5f050f=_0x203845['m1Prime'];}return{..._0x2d642b[_0x447e64(0xb8)](_0xbb41ba),'mutations':[_0x5f050f]};}[_0x350772(0x288)](_0x5f36cb){const _0xa8b578=_0x350772,{unitID:_0x25d9f1}=_0x5f36cb,_0x1877fa=this[_0xa8b578(0x225)]['getRenderById'](_0x25d9f1)[_0xa8b578(0x1ba)](_0x10bdfa),{undoCache:_0x5219cb,redoCache:_0x231030}=_0x1877fa[_0xa8b578(0x164)]();if(_0x5219cb[_0xa8b578(0x2e6)]===0x0||_0x231030['length']===0x0)return;const _0x17493f=[],_0x534ad9=[];let _0x2d7f99=_0x2d642b['deepClone'](_0x5f36cb[_0xa8b578(0x1c7)][0x0]),_0x3dbda4=_0x2d642b['deepClone'](_0x5f36cb[_0xa8b578(0x1c7)][0x0]);for(let _0x3c1098=_0x5219cb[_0xa8b578(0x2e6)]-0x1;_0x3c1098>=0x0;_0x3c1098--){const _0x10eef3={'id':_0xa8b578(0xe8),'params':{..._0x5219cb[_0x3c1098]}},_0x51e5e3={'id':_0xa8b578(0xe8),'params':{..._0x231030[_0x3c1098]}},_0x1b6dfa=this[_0xa8b578(0x2cc)]['transformMutation'](_0x2d7f99,_0x10eef3,!0x1),_0x1b2978=this[_0xa8b578(0x2cc)]['transformMutation'](_0x3dbda4,_0x51e5e3,!0x1);if(_0x456676(_0x1b6dfa))throw _0x1b6dfa[_0xa8b578(0x246)];if(_0x456676(_0x1b2978))throw _0x1b2978['error'];_0x17493f[_0xa8b578(0x180)](_0x1b6dfa[_0xa8b578(0x1cb)][_0xa8b578(0x22f)]),_0x534ad9[_0xa8b578(0x180)](_0x1b2978[_0xa8b578(0x1cb)][_0xa8b578(0x22f)]),_0x2d7f99=_0x1b6dfa['m1Prime'],_0x3dbda4=_0x1b2978[_0xa8b578(0xfc)];}_0x1877fa[_0xa8b578(0x2d7)]({'undoCache':_0x17493f,'redoCache':_0x534ad9});}[_0x350772(0x143)](_0x1c2fb2){const _0x527bb8=_0x350772,{unitID:_0x255da9}=_0x1c2fb2,_0x314b7a=this[_0x527bb8(0x225)][_0x527bb8(0x1a9)](_0x255da9)[_0x527bb8(0x1ba)](_0x10bdfa),_0xca0f1a=_0x314b7a[_0x527bb8(0x146)]();if(_0xca0f1a==null)return;const _0x5f225a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1c2fb2[_0x527bb8(0x2cd)],'actions':null,'textRanges':[_0xca0f1a]}}],_0x2e7288=this[_0x527bb8(0x2cc)][_0x527bb8(0x2c5)](_0x1c2fb2,_0x5f225a);if(!_0x1d6d36(_0x2e7288))throw _0x2e7288[_0x527bb8(0x246)];const _0x4663f4=_0x2e7288['m2Prime'][0x0][_0x527bb8(0x22f)][_0x527bb8(0x102)];Array['isArray'](_0x4663f4)&&_0x4663f4[_0x527bb8(0x2e6)]&&_0x314b7a[_0x527bb8(0xf4)](_0x4663f4[0x0]);}};_e=hn([ct(0x0,_0x3f4e3f),ct(0x1,_0xef866a)],_e);var un=Object['getOwnPropertyDescriptor'],dn=(_0x100a24,_0x3aeb12,_0xe579c1,_0x50327a)=>{const _0x1a95fb=_0x350772;for(var _0x4fa797=_0x50327a>0x1?void 0x0:_0x50327a?un(_0x3aeb12,_0xe579c1):_0x3aeb12,_0x35b718=_0x100a24[_0x1a95fb(0x2e6)]-0x1,_0x6ae35e;_0x35b718>=0x0;_0x35b718--)(_0x6ae35e=_0x100a24[_0x35b718])&&(_0x4fa797=_0x6ae35e(_0x4fa797)||_0x4fa797);return _0x4fa797;},De=(_0x3d1fdd,_0x2c579f)=>(_0x40ccf0,_0x2b0205)=>_0x2c579f(_0x40ccf0,_0x2b0205,_0x3d1fdd);let he=class{constructor(_0x232b5b,_0x4e9a80,_0x265fea){const _0x57d450=_0x350772;this[_0x57d450(0x12a)]=_0x232b5b,this[_0x57d450(0x2cc)]=_0x4e9a80,this['_docStateChangeManagerService']=_0x265fea;}[_0x350772(0x2a0)](_0x406c12){this['_transformHistoryAndStateStack'](_0x406c12);}[_0x350772(0x192)](_0x1b9af1){const _0x309489=_0x350772,{unitID:_0x2ce076}=_0x1b9af1,{collaboration:_0x421dbb}=this[_0x309489(0x169)][_0x309489(0x198)](_0x2ce076);if(_0x421dbb[_0x309489(0x2e6)]===0x0)return _0x1b9af1;let _0x14a0a9=_0x2d642b[_0x309489(0xb8)](_0x1b9af1[_0x309489(0x1c7)][0x0]);for(let _0x4251b8=0x0;_0x4251b8<_0x421dbb[_0x309489(0x2e6)];_0x4251b8++){const _0xac3f30={'id':_0x309489(0xe8),'params':{'unitId':_0x421dbb[_0x4251b8]['unitId'],..._0x421dbb[_0x4251b8][_0x309489(0x2a5)]}},_0x3c3d0a=this[_0x309489(0x2cc)][_0x309489(0x280)](_0x14a0a9,_0xac3f30,!0x1);if(_0x456676(_0x3c3d0a))throw _0x3c3d0a[_0x309489(0x246)];_0x14a0a9=_0x3c3d0a[_0x309489(0xfc)];}return{..._0x2d642b[_0x309489(0xb8)](_0x1b9af1),'mutations':[_0x14a0a9]};}[_0x350772(0x1bb)](_0x35860a){const _0x5cc18f=_0x350772,{unitID:_0x7f25c3}=_0x35860a,{history:_0xe38233,collaboration:_0x5eae92}=this[_0x5cc18f(0x169)][_0x5cc18f(0x198)](_0x7f25c3);if(_0xe38233[_0x5cc18f(0x2e6)]===0x0&&_0x5eae92[_0x5cc18f(0x2e6)]===0x0)return;const _0x55bf9f=[],_0x6c7737=[];let _0x458c25=_0x2d642b['deepClone'](_0x35860a['mutations'][0x0]),_0x57917d=_0x2d642b[_0x5cc18f(0xb8)](_0x35860a[_0x5cc18f(0x1c7)][0x0]);for(let _0x442866=_0xe38233['length']-0x1;_0x442866>=0x0;_0x442866--){const _0x105de2={'id':_0x5cc18f(0xe8),'params':{'unitId':_0xe38233[_0x442866][_0x5cc18f(0x154)],..._0xe38233[_0x442866][_0x5cc18f(0x296)]}},_0xcc926={'id':_0x5cc18f(0xe8),'params':{'unitId':_0xe38233[_0x442866][_0x5cc18f(0x154)],..._0xe38233[_0x442866][_0x5cc18f(0x2a5)]}},_0x4d07ef=this[_0x5cc18f(0x2cc)]['transformMutation'](_0x458c25,_0x105de2,!0x1),_0x218ff5=this['_transformService'][_0x5cc18f(0x280)](_0x57917d,_0xcc926,!0x1);if(_0x456676(_0x4d07ef))throw _0x4d07ef[_0x5cc18f(0x246)];if(_0x456676(_0x218ff5))throw _0x218ff5[_0x5cc18f(0x246)];_0x55bf9f['unshift']({..._0xe38233[_0x442866],'undoState':_0x4d07ef['m2Prime'][_0x5cc18f(0x22f)],'redoState':_0x218ff5['m2Prime'][_0x5cc18f(0x22f)]}),_0x458c25=_0x4d07ef[_0x5cc18f(0xfc)],_0x57917d=_0x218ff5['m1Prime'];}_0x458c25=_0x2d642b[_0x5cc18f(0xb8)](_0x35860a['mutations'][0x0]),_0x57917d=_0x2d642b[_0x5cc18f(0xb8)](_0x35860a[_0x5cc18f(0x1c7)][0x0]);for(let _0x2a7ac5=_0x5eae92[_0x5cc18f(0x2e6)]-0x1;_0x2a7ac5>=0x0;_0x2a7ac5--){const _0x5d6e7b={'id':_0x5cc18f(0xe8),'params':{'unitId':_0x5eae92[_0x2a7ac5][_0x5cc18f(0x154)],..._0x5eae92[_0x2a7ac5][_0x5cc18f(0x296)]}},_0x295bae={'id':_0x5cc18f(0xe8),'params':{'unitId':_0x5eae92[_0x2a7ac5]['unitId'],..._0x5eae92[_0x2a7ac5][_0x5cc18f(0x2a5)]}},_0x5d5c50=this[_0x5cc18f(0x2cc)]['transformMutation'](_0x458c25,_0x5d6e7b,!0x1),_0x4db733=this[_0x5cc18f(0x2cc)]['transformMutation'](_0x57917d,_0x295bae,!0x1);if(_0x456676(_0x5d5c50))throw _0x5d5c50[_0x5cc18f(0x246)];if(_0x456676(_0x4db733))throw _0x4db733[_0x5cc18f(0x246)];_0x6c7737[_0x5cc18f(0x180)]({..._0x5eae92[_0x2a7ac5],'undoState':_0x5d5c50[_0x5cc18f(0x1cb)][_0x5cc18f(0x22f)],'redoState':_0x4db733[_0x5cc18f(0x1cb)][_0x5cc18f(0x22f)]}),_0x458c25=_0x5d5c50[_0x5cc18f(0xfc)],_0x57917d=_0x4db733['m1Prime'];}this[_0x5cc18f(0x169)]['setStateCache'](_0x7f25c3,{'history':_0x55bf9f,'collaboration':_0x6c7737});}};he=dn([De(0x0,_0x1ada69(_0x37163f)),De(0x1,_0x3f4e3f),De(0x2,_0x1ada69(_0x25d3bb))],he);var fn=Object[_0x350772(0x2c2)],Sn=(_0x4baa8c,_0xe2140b,_0x24731b,_0x5bdf1e)=>{for(var _0x18ebcf=_0x5bdf1e>0x1?void 0x0:_0x5bdf1e?fn(_0xe2140b,_0x24731b):_0xe2140b,_0x2c3b69=_0x4baa8c['length']-0x1,_0x94ecc0;_0x2c3b69>=0x0;_0x2c3b69--)(_0x94ecc0=_0x4baa8c[_0x2c3b69])&&(_0x18ebcf=_0x94ecc0(_0x18ebcf)||_0x18ebcf);return _0x18ebcf;},lt=(_0x503192,_0x38217e)=>(_0x708c96,_0x1a1938)=>_0x38217e(_0x708c96,_0x1a1938,_0x503192);let ue=class{constructor(_0x239d06,_0x3ac525){this['_injector']=_0x239d06,this['_transformService']=_0x3ac525;}[_0x350772(0x18c)](_0x1ea133){const _0x1dcb68=_0x350772;var _0x230118;const _0x45f3aa=this[_0x1dcb68(0x12a)]['get'](_0x47440a),_0xb8127a=(_0x230118=_0x45f3aa[_0x1dcb68(0x2e1)]())!=null?_0x230118:[];if(_0xb8127a[_0x1dcb68(0x2e6)]===0x0)return;const _0x19b6de=_0x1ea133[_0x1dcb68(0x2cd)],_0x553cf3=[{'id':_0x1dcb68(0xe8),'params':{'unitId':_0x19b6de,'actions':null,'textRanges':_0xb8127a}}],_0x4c99aa=this[_0x1dcb68(0x2cc)][_0x1dcb68(0x2c5)](_0x1ea133,_0x553cf3);if(!_0x1d6d36(_0x4c99aa))throw _0x4c99aa['error'];const _0xb4fb2b=_0x4c99aa[_0x1dcb68(0x1cb)][0x0][_0x1dcb68(0x22f)][_0x1dcb68(0x102)];Array[_0x1dcb68(0x118)](_0xb4fb2b)&&_0xb4fb2b[_0x1dcb68(0x2e6)]&&_0x45f3aa['replaceDocRanges'](_0xb4fb2b,{'unitId':_0x19b6de,'subUnitId':_0x19b6de},!0x1);}};ue=Sn([lt(0x0,_0x1ada69(_0x37163f)),lt(0x1,_0x3f4e3f)],ue);var mn=Object[_0x350772(0x2c2)],In=(_0x526f7e,_0x4e92ea,_0x317568,_0x49621d)=>{const _0x405fb5=_0x350772;for(var _0x1300d7=_0x49621d>0x1?void 0x0:_0x49621d?mn(_0x4e92ea,_0x317568):_0x4e92ea,_0x3b37d4=_0x526f7e[_0x405fb5(0x2e6)]-0x1,_0x495bcd;_0x3b37d4>=0x0;_0x3b37d4--)(_0x495bcd=_0x526f7e[_0x3b37d4])&&(_0x1300d7=_0x495bcd(_0x1300d7)||_0x1300d7);return _0x1300d7;},U=(_0x1f2886,_0x479193)=>(_0x1c2f80,_0x4af24a)=>_0x479193(_0x1c2f80,_0x4af24a,_0x1f2886);let de=class extends _0x2d8b34{constructor(_0x3a4cd7,_0x22f27a,_0x2ef208,_0x22b67c,_0x4b1f6a,_0x2a413b,_0x52a370,_0x3c855c){const _0x434e7e=_0x350772;super(),_(this,_0x434e7e(0xea),new _0x1cc040(_0x180dd3[_0x434e7e(0x2b5)])),(this[_0x434e7e(0x169)]=_0x3a4cd7,this[_0x434e7e(0x2c3)]=_0x22f27a,this['_docTransformIMECacheService']=_0x2ef208,this[_0x434e7e(0x215)]=_0x22b67c,this[_0x434e7e(0xa9)]=_0x4b1f6a,this[_0x434e7e(0x24d)]=_0x2a413b,this['_messageService']=_0x52a370,this[_0x434e7e(0x252)]=_0x3c855c,this[_0x434e7e(0x139)]());}['_initEntityListener'](){const _0x5d69be=_0x350772;this[_0x5d69be(0x222)](this['_collaborationController'][_0x5d69be(0x123)][_0x5d69be(0x28a)](_0x14d07c=>{const _0x56a681=_0x5d69be,_0x2fddd6=this[_0x56a681(0x169)][_0x56a681(0x177)][_0x56a681(0x28a)](_0x31331c=>{const _0x65db5c=_0x56a681;if(_0x31331c==null)return;const {unitId:_0x5271d8,redoState:_0x3c8db8,commandId:_0x260aae}=_0x31331c;if(_0x5271d8!==_0x14d07c[_0x65db5c(0x2cd)])return;const _0x353e15={'id':_0x260aae,'type':_0x4dffdb[_0x65db5c(0x2d3)],'params':{'unitId':_0x5271d8,'actions':_0x3c8db8[_0x65db5c(0x2c0)],'textRanges':null}};_0x14d07c[_0x65db5c(0x214)](_0x353e15);});if(_0x14d07c['disposeWithMe'](_0x2fddd6),_0x14d07c instanceof _0xe5876){const _0x3af763={'onTransformIME':_0x434304=>this[_0x56a681(0x229)][_0x56a681(0x202)](_0x434304),'onTransformState':_0x10fc50=>this[_0x56a681(0x215)][_0x56a681(0x2a0)](_0x10fc50),'onTransformSelections':_0x5eeecb=>this[_0x56a681(0xa9)]['transformSelections'](_0x5eeecb),'onSyncEditingCollabCursor':_0x5299c3=>this[_0x56a681(0x24d)]['syncEditingCollabCursor'](_0x5299c3),'onTransformRemoteChangesetByIMECache':_0x5aa5ff=>this[_0x56a681(0x229)][_0x56a681(0x192)](_0x5aa5ff),'onTransformRemoteChangesetByStateCache':_0x12b0c8=>this[_0x56a681(0x215)][_0x56a681(0x192)](_0x12b0c8)};_0x14d07c['addHandlerCallback'](_0x3af763);}}));}};de=In([U(0x0,_0x1ada69(_0x25d3bb)),U(0x1,_0x1ada69(_0x1e6a4e)),U(0x2,_0x1ada69(_e)),U(0x3,_0x1ada69(he)),U(0x4,_0x1ada69(ue)),U(0x5,_0x1ada69(Ke)),U(0x6,_0x41069b),U(0x7,_0x1ada69(_0x57786a))],de);var Q=(_0x28ee1b=>(_0x28ee1b[_0x28ee1b[_0x350772(0x1f7)]=0x0]=_0x350772(0x1f7),_0x28ee1b[_0x28ee1b['OK']=0x1]='OK',_0x28ee1b[_0x28ee1b[_0x350772(0x1f6)]=0x2]=_0x350772(0x1f6),_0x28ee1b[_0x28ee1b['PERMISSION_DENIED']=0x3]=_0x350772(0x233),_0x28ee1b[_0x28ee1b[_0x350772(0x142)]=0x4]=_0x350772(0x142),_0x28ee1b[_0x28ee1b[_0x350772(0x11f)]=0x5]=_0x350772(0x11f),_0x28ee1b[_0x28ee1b['ALREADY_EXISTS']=0x6]=_0x350772(0x20c),_0x28ee1b[_0x28ee1b['INVALID_ARGUMENT']=0x7]=_0x350772(0x224),_0x28ee1b[_0x28ee1b[_0x350772(0x1db)]=0x8]=_0x350772(0x1db),_0x28ee1b[_0x28ee1b[_0x350772(0x111)]=0x9]='COMPLETION_FINISHED',_0x28ee1b[_0x28ee1b[_0x350772(0x19c)]=0xa]=_0x350772(0x19c),_0x28ee1b[_0x28ee1b[_0x350772(0x273)]=0xb]=_0x350772(0x273),_0x28ee1b[_0x28ee1b[_0x350772(0x171)]=0xc]=_0x350772(0x171),_0x28ee1b[_0x28ee1b['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x350772(0x2a4),_0x28ee1b[_0x28ee1b['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x350772(0x15a),_0x28ee1b[_0x28ee1b[_0x350772(0x17d)]=0xf]=_0x350772(0x17d),_0x28ee1b[_0x28ee1b['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x350772(0xd4),_0x28ee1b[_0x28ee1b[_0x350772(0x228)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x28ee1b[_0x28ee1b[_0x350772(0x1a7)]=0x65]=_0x350772(0x1a7),_0x28ee1b[_0x28ee1b[_0x350772(0x260)]=0xc9]=_0x350772(0x260),_0x28ee1b[_0x28ee1b['USER_IS_ANONYMOUS']=0xca]=_0x350772(0xe2),_0x28ee1b[_0x28ee1b[_0x350772(0x26a)]=0x1389]=_0x350772(0x26a),_0x28ee1b[_0x28ee1b[_0x350772(0x270)]=0x1771]=_0x350772(0x270),_0x28ee1b[_0x28ee1b[_0x350772(0xc3)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x28ee1b[_0x28ee1b[_0x350772(0x23f)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x28ee1b[_0x28ee1b[_0x350772(0x116)]=0x1b59]=_0x350772(0x116),_0x28ee1b[_0x28ee1b[_0x350772(0x1da)]=0x1b5a]=_0x350772(0x1da),_0x28ee1b[_0x28ee1b[_0x350772(0xdd)]=0x1b5b]=_0x350772(0xdd),_0x28ee1b[_0x28ee1b[_0x350772(0x2a1)]=0x1b5c]=_0x350772(0x2a1),_0x28ee1b[_0x28ee1b[_0x350772(0x29a)]=0x1b5d]=_0x350772(0x29a),_0x28ee1b[_0x28ee1b[_0x350772(0x1a4)]=0x1f41]=_0x350772(0x1a4),_0x28ee1b[_0x28ee1b[_0x350772(0xac)]=0x2329]=_0x350772(0xac),_0x28ee1b[_0x28ee1b[_0x350772(0x28b)]=0x232a]=_0x350772(0x28b),_0x28ee1b[_0x28ee1b[_0x350772(0x1fe)]=0x232b]=_0x350772(0x1fe),_0x28ee1b[_0x28ee1b['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x350772(0x27e),_0x28ee1b[_0x28ee1b[_0x350772(0x2ac)]=0x232d]=_0x350772(0x2ac),_0x28ee1b[_0x28ee1b['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x350772(0x12b),_0x28ee1b[_0x28ee1b[_0x350772(0x195)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x28ee1b[_0x28ee1b[_0x350772(0x1d6)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x28ee1b[_0x28ee1b[_0x350772(0x173)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x28ee1b[_0x28ee1b[_0x350772(0x204)]=0x271a]=_0x350772(0x204),_0x28ee1b[_0x28ee1b[_0x350772(0xbc)]=0x271b]=_0x350772(0xbc),_0x28ee1b[_0x28ee1b['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x350772(0x26d),_0x28ee1b[_0x28ee1b[_0x350772(0xaf)]=0x271d]=_0x350772(0xaf),_0x28ee1b[_0x28ee1b[_0x350772(0xff)]=0x271e]=_0x350772(0xff),_0x28ee1b[_0x28ee1b[_0x350772(0x170)]=0x271f]=_0x350772(0x170),_0x28ee1b[_0x28ee1b[_0x350772(0x1d1)]=0x2720]=_0x350772(0x1d1),_0x28ee1b[_0x28ee1b[_0x350772(0x1dd)]=0x2af9]=_0x350772(0x1dd),_0x28ee1b[_0x28ee1b[_0x350772(0x257)]=0x2ee1]=_0x350772(0x257),_0x28ee1b[_0x28ee1b[_0x350772(0x167)]=0x2ee2]=_0x350772(0x167),_0x28ee1b[_0x28ee1b[_0x350772(0x1f2)]=0x2ee3]=_0x350772(0x1f2),_0x28ee1b[_0x28ee1b[_0x350772(0x122)]=0x2ee4]=_0x350772(0x122),_0x28ee1b[_0x28ee1b[_0x350772(0xf9)]=0x2ee5]=_0x350772(0xf9),_0x28ee1b[_0x28ee1b[_0x350772(0x13c)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x28ee1b[_0x28ee1b['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x350772(0x129),_0x28ee1b[_0x28ee1b[_0x350772(0x14d)]=0x32cb]=_0x350772(0x14d),_0x28ee1b[_0x28ee1b[_0x350772(0xe7)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x28ee1b[_0x28ee1b[_0x350772(0x2a6)]=0x36b2]=_0x350772(0x2a6),_0x28ee1b[_0x28ee1b[_0x350772(0x2dd)]=0x36b3]=_0x350772(0x2dd),_0x28ee1b[_0x28ee1b[_0x350772(0x107)]=0x36b4]=_0x350772(0x107),_0x28ee1b[_0x28ee1b[_0x350772(0xae)]=0x3715]=_0x350772(0xae),_0x28ee1b[_0x28ee1b[_0x350772(0x2ab)]=0x3716]=_0x350772(0x2ab),_0x28ee1b[_0x28ee1b[_0x350772(0x1ab)]=0x37dd]=_0x350772(0x1ab),_0x28ee1b[_0x28ee1b[_0x350772(0x19a)]=0x3a99]=_0x350772(0x19a),_0x28ee1b[_0x28ee1b[_0x350772(0x108)]=0x3a9a]=_0x350772(0x108),_0x28ee1b[_0x28ee1b['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x350772(0x20a),_0x28ee1b[_0x28ee1b[_0x350772(0x17c)]=0x3a9c]=_0x350772(0x17c),_0x28ee1b[_0x28ee1b[_0x350772(0xc0)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x28ee1b[_0x28ee1b[_0x350772(0x136)]=0x3a9e]=_0x350772(0x136),_0x28ee1b[_0x28ee1b[_0x350772(0x25f)]=0x3a9f]=_0x350772(0x25f),_0x28ee1b[_0x28ee1b[_0x350772(0x242)]=-0x1]=_0x350772(0x242),_0x28ee1b))(Q||{});function gn(_0x56dd13){const _0x235e50=_0x350772;var _0x33b6a7,_0x1e9e1a;const _0x2b22aa=(_0x33b6a7=_0x56dd13['stageInfo'])==null?void 0x0:_0x33b6a7['stage'],_0xf77972=((_0x1e9e1a=_0x56dd13[_0x235e50(0x285)])==null?void 0x0:_0x1e9e1a[_0x235e50(0x2da)])||0x0;return _0x2b22aa===_0x33c948[_0x235e50(0x220)]&&_0xf77972>0x0;}function vn(_0x5b54d9){const _0xe9f166=_0x350772;return _0x5b54d9[_0xe9f166(0xf3)]===_0x323fe9['SUCCESS'];}var En=Object[_0x350772(0x2c2)],pn=(_0xd93e7e,_0x149de7,_0x5d415e,_0x50ee24)=>{for(var _0x3223a0=_0x50ee24>0x1?void 0x0:_0x50ee24?En(_0x149de7,_0x5d415e):_0x149de7,_0x3cef2c=_0xd93e7e['length']-0x1,_0x179233;_0x3cef2c>=0x0;_0x3cef2c--)(_0x179233=_0xd93e7e[_0x3cef2c])&&(_0x3223a0=_0x179233(_0x3223a0)||_0x3223a0);return _0x3223a0;},w=(_0x54315f,_0xbc81c4)=>(_0xa67a56,_0x5d0c96)=>_0xbc81c4(_0xa67a56,_0x5d0c96,_0x54315f);const On=_0x350772(0xf6),Tn=_0x350772(0x141),Cn='/universer-api/license/formula/limit/done';let fe=class extends _0x2d8b34{constructor(_0x19abff,_0x144f77,_0x3e6855,_0x1fc45c,_0x57f780,_0x102307,_0x25f477){const _0x598a1f=_0x350772;super(),_(this,_0x598a1f(0x1e5),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x598a1f(0x18d),0x0),_(this,_0x598a1f(0x2b0),[]),_(this,_0x598a1f(0xdb),0x0),(this[_0x598a1f(0x2bb)]=_0x19abff,this['_commandService']=_0x144f77,this[_0x598a1f(0x295)]=_0x3e6855,this['_httpService']=_0x1fc45c,this['_univerInstanceService']=_0x57f780,this['_logService']=_0x102307,this[_0x598a1f(0x252)]=_0x25f477,this[_0x598a1f(0x1ce)]());}[_0x350772(0x1ce)](){const _0x525379=_0x350772;this[_0x525379(0x222)](this[_0x525379(0xe1)][_0x525379(0x1cc)]((_0x47237a,_0x1e3815)=>{const _0x20f660=_0x525379;if(_0x47237a['id']!==_0x17319b['id'])return;const _0x5a5504=_0x47237a[_0x20f660(0x22f)];if(!this[_0x20f660(0x277)](_0x5a5504[_0x20f660(0x2d8)]))return;if(!this[_0x20f660(0x184)]())throw this[_0x20f660(0x1b1)](_0x47237a,_0x1e3815),this['_showGuardMessage'](),new _0x140840();})),this[_0x525379(0x222)](this[_0x525379(0xe1)][_0x525379(0x162)]((_0x30ced5,_0x347ab8)=>{const _0x4df4e2=_0x525379;if(_0x30ced5['id']!==_0x37a5a7['id'])return;const _0x13c5c9=_0x30ced5[_0x4df4e2(0x22f)];if(gn(_0x13c5c9)){const _0x2d85e1=_0x43b449();this[_0x4df4e2(0x2b0)][_0x4df4e2(0x25d)](_0x2d85e1),this[_0x4df4e2(0x254)](_0x2d85e1);}else{if(vn(_0x13c5c9)&&this[_0x4df4e2(0x2b0)][_0x4df4e2(0x2e6)]>0x0){const _0x5a97c3=this[_0x4df4e2(0x2b0)][_0x4df4e2(0x1de)]();this[_0x4df4e2(0x1d5)](_0x5a97c3);}}}));}[_0x350772(0x1e0)](){const _0x2e4d51=_0x350772;super[_0x2e4d51(0x1e0)](),this[_0x2e4d51(0x159)](),this[_0x2e4d51(0x2b0)]=[],this[_0x2e4d51(0x18d)]=0x0,this[_0x2e4d51(0x21c)]=0x0,this[_0x2e4d51(0xdb)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x250bb8,_0x4c3612){const _0x3dfef0=_0x350772;for(let _0x4103d4=0x0;_0x4103d4<0x1e;_0x4103d4++)try{if(await this[_0x3dfef0(0x271)](),this[_0x3dfef0(0x184)]()){this[_0x3dfef0(0x289)](_0x250bb8,_0x4c3612),this['_messageService']['show']({'content':this[_0x3dfef0(0x252)]['t'](_0x3dfef0(0x227)),'type':_0x13949b[_0x3dfef0(0x1fd)]});return;}await new Promise(_0x5b7588=>{const _0x280381=_0x3dfef0;this[_0x280381(0x1e5)]=window['setTimeout'](_0x5b7588,0x3e8);});}catch(_0xf30d98){this['_logService'][_0x3dfef0(0x246)](_0xf30d98);}this[_0x3dfef0(0x2bb)][_0x3dfef0(0xb9)]({'content':this[_0x3dfef0(0x252)]['t'](_0x3dfef0(0x186)),'type':_0x13949b['Error']});}[_0x350772(0x289)](_0x1fdb2d,_0x141322){const _0x5edcfb=_0x350772;try{this[_0x5edcfb(0xe1)]['executeCommand'](_0x1fdb2d['id'],_0x1fdb2d[_0x5edcfb(0x22f)],_0x141322);}catch(_0x4ffe0b){this[_0x5edcfb(0x1cf)][_0x5edcfb(0x246)](_0x4ffe0b);}}[_0x350772(0x2c6)](_0x30a87d,_0x3692c5){const _0x188ce2=_0x350772;_0x3692c5<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x3692c5,this[_0x188ce2(0x21c)]=Number[_0x188ce2(0x18e)](_0x30a87d[_0x188ce2(0x18f)]),this['_currentUsage']=Number[_0x188ce2(0x18e)](_0x30a87d[_0x188ce2(0x16a)]));}async[_0x350772(0x254)](_0x12f5af){const _0x524fbe=_0x350772;var _0x5cdebc,_0x29a51a;const _0x587c01=Date['now']();try{const _0x428be7=((_0x5cdebc=this[_0x524fbe(0x295)]['getConfig'](_0x3fa50f))==null?void 0x0:_0x5cdebc[_0x524fbe(0x28e)])||Tn,_0x5bde05=(await this[_0x524fbe(0x22c)][_0x524fbe(0x2b7)](_0x428be7,{'body':JSON['stringify']({'taskId':_0x12f5af})}))[_0x524fbe(0xd3)];if(((_0x29a51a=_0x5bde05[_0x524fbe(0x246)])==null?void 0x0:_0x29a51a['code'])!==Q['OK'])return;this['_setFormulaLimitStatus'](_0x5bde05[_0x524fbe(0x135)],_0x587c01);}catch(_0x42a495){this[_0x524fbe(0x1cf)]['error'](_0x42a495);}}async[_0x350772(0x271)](_0x1e1f86){const _0x11bd8c=_0x350772;var _0x2a4098,_0x54a063;const _0x3810b7=Date[_0x11bd8c(0x2b2)]();try{const _0x2d3fb7=((_0x2a4098=this[_0x11bd8c(0x295)]['getConfig'](_0x3fa50f))==null?void 0x0:_0x2a4098[_0x11bd8c(0x27f)])||On,_0x5e2e4b=_0x1e1f86?_0x2d3fb7+'?taskId='+encodeURIComponent(_0x1e1f86):_0x2d3fb7,_0x4f578a=(await this[_0x11bd8c(0x22c)][_0x11bd8c(0xc6)](_0x5e2e4b))[_0x11bd8c(0xd3)];if(((_0x54a063=_0x4f578a[_0x11bd8c(0x246)])==null?void 0x0:_0x54a063['code'])!==Q['OK'])return;this['_setFormulaLimitStatus'](_0x4f578a[_0x11bd8c(0x135)],_0x3810b7);}catch(_0x420195){this[_0x11bd8c(0x1cf)]['error'](_0x420195);}}async[_0x350772(0x1d5)](_0x3f9592){const _0x3a8913=_0x350772;var _0x1c7ddb,_0x4c3121;const _0x9c1884=Date[_0x3a8913(0x2b2)]();try{const _0x3630a6=((_0x1c7ddb=this[_0x3a8913(0x295)][_0x3a8913(0x181)](_0x3fa50f))==null?void 0x0:_0x1c7ddb[_0x3a8913(0xb4)])||Cn,_0x293317=(await this[_0x3a8913(0x22c)]['post'](_0x3630a6,{'body':JSON[_0x3a8913(0x1c3)]({'taskId':_0x3f9592})}))[_0x3a8913(0xd3)];if(((_0x4c3121=_0x293317[_0x3a8913(0x246)])==null?void 0x0:_0x4c3121[_0x3a8913(0x1c1)])!==Q['OK'])return;this[_0x3a8913(0x2c6)](_0x293317[_0x3a8913(0x135)],_0x9c1884);}catch(_0x5e4912){this[_0x3a8913(0x1cf)][_0x3a8913(0x246)](_0x5e4912);}}[_0x350772(0x184)](){const _0x2ceb52=_0x350772;return this[_0x2ceb52(0x21c)]===0x0?!0x0:this[_0x2ceb52(0x21c)]-this[_0x2ceb52(0x18d)]>0x0;}[_0x350772(0x159)](){const _0x4e9d58=_0x350772;this[_0x4e9d58(0x1e5)]&&(clearTimeout(this['_pollingInterval']),this[_0x4e9d58(0x1e5)]=null);}[_0x350772(0x24c)](){const _0x1c08f7=_0x350772;this[_0x1c08f7(0x2bb)][_0x1c08f7(0xb9)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x13949b[_0x1c08f7(0x12c)]});}[_0x350772(0x277)](_0x433c3c){const _0x4d0137=_0x350772;for(const _0x438475 of _0x433c3c){const {unitId:_0x537e50,sheetId:_0x36bdf9,range:_0x435626}=_0x438475,_0x32f073=this['_univerInstanceService'][_0x4d0137(0x261)](_0x537e50);if(!_0x32f073)continue;const _0x57cb97=_0x32f073['getSheetBySheetId'](_0x36bdf9);if(!_0x57cb97)continue;const _0x2f6394=_0x57cb97[_0x4d0137(0x2de)]();for(let _0x430249=_0x435626[_0x4d0137(0x18b)];_0x430249<=_0x435626['endRow'];_0x430249++)for(let _0x18499a=_0x435626[_0x4d0137(0xbe)];_0x18499a<=_0x435626[_0x4d0137(0x2ba)];_0x18499a++){const _0x511ddd=_0x2f6394['getValue'](_0x430249,_0x18499a);if(_0x511ddd&&(_0x1c6988(_0x511ddd['f'])||_0x392987(_0x511ddd['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x1ada69(_0x41069b)),w(0x1,_0x5df3ab),w(0x2,_0x20c298),w(0x3,_0x1ada69(_0x1def6f)),w(0x4,_0xbcb279),w(0x5,_0x3d4f4a),w(0x6,_0x1ada69(_0x57786a))],fe);var Rn=Object[_0x350772(0x2c2)],Dn=(_0x57d97c,_0x4e822c,_0x431f11,_0x61d486)=>{const _0x1afa99=_0x350772;for(var _0x4ed2a2=_0x61d486>0x1?void 0x0:_0x61d486?Rn(_0x4e822c,_0x431f11):_0x4e822c,_0x502abb=_0x57d97c[_0x1afa99(0x2e6)]-0x1,_0x593618;_0x502abb>=0x0;_0x502abb--)(_0x593618=_0x57d97c[_0x502abb])&&(_0x4ed2a2=_0x593618(_0x4ed2a2)||_0x4ed2a2);return _0x4ed2a2;},be=(_0x579a40,_0x4a0ec0)=>(_0x14879b,_0x6b36e)=>_0x4a0ec0(_0x14879b,_0x6b36e,_0x579a40);let Be=class extends _0x2d8b34{constructor(_0x271924,_0x1342f0,_0x901ab1){const _0x3e47f2=_0x350772;super(),_(this,_0x3e47f2(0x2dc),new Map()),_(this,_0x3e47f2(0x10a),new Map()),_(this,'_disabled',!0x1),(this[_0x3e47f2(0x295)]=_0x271924,this[_0x3e47f2(0x221)]=_0x1342f0,this[_0x3e47f2(0xc7)]=_0x901ab1);}['disableLocalCache'](){const _0x3c99c4=_0x350772;this[_0x3c99c4(0xce)]=!0x0;}[_0x350772(0x175)](){const _0xd615c2=_0x350772;this[_0xd615c2(0xce)]=!0x1;}get[_0x350772(0x197)](){return this['_saveTaskMap'];}[_0x350772(0x1e0)](){const _0x1eb14d=_0x350772;this[_0x1eb14d(0x243)]()[_0x1eb14d(0x1e9)](()=>super[_0x1eb14d(0x1e0)]());}async['loadOfflineData'](_0x1d7d4a){const _0x5d3a55=_0x350772;return this[_0x5d3a55(0xce)]?null:this[_0x5d3a55(0x221)][_0x5d3a55(0x16b)](_0x40a77a(_0x1d7d4a));}async['saveOfflineData'](_0xac3589,_0x132a45){const _0xb18ab2=_0x350772;return!!this[_0xb18ab2(0x221)]['setItem'](_0xac3589,_0x132a45);}[_0x350772(0x174)](_0x22dc86,_0x6b9fc6,_0x3ce378,_0x563427){const _0x1259eb=_0x350772,_0x21fe34=this[_0x1259eb(0xc7)][_0x1259eb(0x2e5)](_0x22dc86);this[_0x1259eb(0x2dc)][_0x1259eb(0x279)](_0x22dc86,{'unitID':_0x22dc86,'type':_0x6b9fc6,'awaitingChangeset':_0x3ce378,'mutations':_0x563427,'rev':_0x21fe34}),this[_0x1259eb(0x10a)]['has'](_0x22dc86)||this['_scheduleSaving'](_0x22dc86);}[_0x350772(0x145)](_0x1ac191){const _0x4c955c=_0x350772,_0x295b93=this[_0x4c955c(0x293)]();_0x295b93===0x0?this[_0x4c955c(0x1eb)](_0x1ac191):this[_0x4c955c(0x10a)][_0x4c955c(0x279)](_0x1ac191,setTimeout(()=>this[_0x4c955c(0x1eb)](_0x1ac191),_0x295b93));}[_0x350772(0x293)](){const _0x364f2f=_0x350772;var _0x2d7e6a;return(_0x2d7e6a=this[_0x364f2f(0x295)][_0x364f2f(0x181)](_0x251a18))!=null?_0x2d7e6a:_0x1de824;}['_saveCache'](_0x26a02b){const _0xf09020=_0x350772,_0x39f022=this[_0xf09020(0x10a)][_0xf09020(0xc6)](_0x26a02b);return _0x39f022!==void 0x0&&window['clearTimeout'](_0x39f022),this['_localStorageService'][_0xf09020(0x272)](_0x40a77a(_0x26a02b),this[_0xf09020(0x2dc)][_0xf09020(0xc6)](_0x26a02b))[_0xf09020(0x1e9)](()=>this[_0xf09020(0x10a)][_0xf09020(0x218)](_0x26a02b));}async[_0x350772(0x243)](){const _0x345858=_0x350772,_0x133607=[];this[_0x345858(0x10a)][_0x345858(0x237)]((_0x1c9061,_0xe51f53)=>{const _0xc7ded0=_0x345858;window[_0xc7ded0(0x253)](_0x1c9061),_0x133607[_0xc7ded0(0x25d)](this[_0xc7ded0(0x1eb)](_0xe51f53)[_0xc7ded0(0x1e9)](()=>{const _0x1e1523=_0xc7ded0;this['_saveTaskMap'][_0x1e1523(0x218)](_0xe51f53);}));}),await Promise[_0x345858(0x297)](_0x133607);}};Be=Dn([be(0x0,_0x20c298),be(0x1,_0x48d2fd),be(0x2,_0x1ada69(_0x18b0c3))],Be);class bn extends _0x3e95b8{constructor(){const _0x47a822=_0x350772;super(),_(this,_0x47a822(0x26e)),this['urlChange$']=_0x46d8b5(window,_0x47a822(0x2bd))[_0x47a822(0xcb)](_0x561bd3(this[_0x47a822(0xa8)]),_0x341114(0x1),_0x477239(void 0x0));}[_0x350772(0x117)](_0x1f2b96,_0x787749,_0x4acc56=!0x1){const _0x4e36b4=_0x350772,_0x318e2a=new URL(window[_0x4e36b4(0x239)][_0x4e36b4(0x15b)]);_0x318e2a[_0x4e36b4(0x1e6)][_0x4e36b4(0x279)](_0x1f2b96,_0x787749),_0x4acc56?window['history'][_0x4e36b4(0xb7)]('','',_0x318e2a[_0x4e36b4(0x207)]()):window[_0x4e36b4(0x2d0)]['pushState']('','',_0x318e2a[_0x4e36b4(0x207)]());}[_0x350772(0x134)](_0x1ccd0a,_0x53ebff=!0x1){const _0x5904de=_0x350772,_0x49c7a6=new URL(window[_0x5904de(0x239)]['href']);_0x49c7a6[_0x5904de(0x1e6)][_0x5904de(0x218)](_0x1ccd0a),_0x53ebff?window[_0x5904de(0x2d0)][_0x5904de(0xb7)]('','',_0x49c7a6[_0x5904de(0x207)]()):window['history']['pushState']('','',_0x49c7a6[_0x5904de(0x207)]());}[_0x350772(0x1d7)](_0x882bef){const _0x448033=_0x350772;var _0x2250cb;return(_0x2250cb=new URL(window[_0x448033(0x239)]['href'])['searchParams']['get'](_0x882bef))!=null?_0x2250cb:void 0x0;}}var Nn=Object[_0x350772(0x14f)],Un=Object[_0x350772(0x2c2)],Ln=(_0x3871c4,_0x542d8b,_0x3a5f86)=>_0x542d8b in _0x3871c4?Nn(_0x3871c4,_0x542d8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a5f86}):_0x3871c4[_0x542d8b]=_0x3a5f86,Mn=(_0x26aaf9,_0x495e4c,_0x51f001,_0x244dd1)=>{const _0x183879=_0x350772;for(var _0x6e9223=_0x244dd1>0x1?void 0x0:_0x244dd1?Un(_0x495e4c,_0x51f001):_0x495e4c,_0x225b2f=_0x26aaf9[_0x183879(0x2e6)]-0x1,_0x444491;_0x225b2f>=0x0;_0x225b2f--)(_0x444491=_0x26aaf9[_0x225b2f])&&(_0x6e9223=_0x444491(_0x6e9223)||_0x6e9223);return _0x6e9223;},Ne=(_0x1e2aa3,_0x33c8e5)=>(_0x2a56c2,_0x226e80)=>_0x33c8e5(_0x2a56c2,_0x226e80,_0x1e2aa3),An=(_0x23c978,_0x446f7f,_0x1a984b)=>Ln(_0x23c978,_0x446f7f+'',_0x1a984b);const Pn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Fe=class extends _0x47149e{constructor(_0x2bb7b9=at,_0x296926,_0x53504d,_0x4cf8af){const _0x256008=_0x350772;super(),this[_0x256008(0x2aa)]=_0x2bb7b9,this[_0x256008(0x225)]=_0x296926,this[_0x256008(0x12a)]=_0x53504d,this[_0x256008(0x295)]=_0x4cf8af;const {..._0x5bd733}=_0x1e3d46({},at,this[_0x256008(0x2aa)]);this[_0x256008(0x295)][_0x256008(0x121)](ln,_0x5bd733);}[_0x350772(0xf8)](){const _0x5cd576=_0x350772;this[_0x5cd576(0x26b)](),this[_0x5cd576(0x104)]();}[_0x350772(0x133)](){this['_registerRenderDependencies']();}[_0x350772(0x26b)](){const _0x320d2f=_0x350772;var _0x53c479;const _0x3c0f00=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x51a87f,{'useClass':_0x5c837c}],[_0x5c5358,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x535a10(this[_0x320d2f(0x12a)],_0x8250d8(_0x3c0f00,(_0x53c479=this[_0x320d2f(0x2aa)])==null?void 0x0:_0x53c479['override']));}[_0x350772(0x256)](){const _0x4b575e=_0x350772;this[_0x4b575e(0x222)](this[_0x4b575e(0x225)][_0x4b575e(0x240)](_0x2ebb81[_0x4b575e(0x1ed)],[$e])),this['disposeWithMe'](this[_0x4b575e(0x225)]['registerRenderModule'](_0x2ebb81[_0x4b575e(0xb6)],[xe]));}['_initDependencies'](){const _0x5b2c89=_0x350772;_0x8549f3(this[_0x5b2c89(0x12a)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,'pluginName',Pn),Fe=Mn([_0x418b27(_0x39440b),Ne(0x1,_0xef866a),Ne(0x2,_0x1ada69(_0x37163f)),Ne(0x3,_0x20c298)],Fe);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x216aa8,_0x4ae7c6,_0x3d2d41,_0x3da8d5)=>{const _0x345e5a=_0x350772;for(var _0xdd45a0=_0x3da8d5>0x1?void 0x0:_0x3da8d5?wn(_0x4ae7c6,_0x3d2d41):_0x4ae7c6,_0x67900b=_0x216aa8[_0x345e5a(0x2e6)]-0x1,_0x1e91d4;_0x67900b>=0x0;_0x67900b--)(_0x1e91d4=_0x216aa8[_0x67900b])&&(_0xdd45a0=_0x1e91d4(_0xdd45a0)||_0xdd45a0);return _0xdd45a0;},Z=(_0x10b8a7,_0x3625ed)=>(_0x3c0f81,_0x2f2153)=>_0x3625ed(_0x3c0f81,_0x2f2153,_0x10b8a7);let _t=class extends _0x569b8c{constructor(_0x30aa31,_0x3e7a6e,_0x5d67a3,_0x20163a,_0x279767){super(_0x30aa31,_0x3e7a6e,_0x5d67a3,_0x20163a,_0x279767);}async[_0x350772(0x150)](_0x219d70){const _0x432486=_0x350772,_0xf24dea=await this[_0x432486(0x179)](),_0x5d2f65=this[_0x432486(0xc4)](_0x219d70,_0xf24dea);return this[_0x432486(0x2e2)](_0x5d2f65);}[_0x350772(0xc4)](_0x47cf2d,_0x42ccef){const _0x484103=_0x350772,_0x4ff463=typeof window>'u'?new URL(_0x47cf2d):new URL(_0x47cf2d,window[_0x484103(0x239)][_0x484103(0x1c8)]);_0x4ff463['searchParams']['set'](_0x484103(0x278),_0x42ccef);const _0x4922f0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x484103(0x239)][_0x484103(0xda)]);return _0x4922f0['get'](_0x484103(0x24b))&&_0x4ff463['searchParams'][_0x484103(0x279)]('runId',_0x4922f0[_0x484103(0xc6)](_0x484103(0x24b))),_0x4ff463[_0x484103(0x207)]();}async[_0x350772(0x179)](){const _0x4c78a3=_0x350772;var _0x3e3177,_0x2a8cb9,_0x56cec9;const _0x5a5806=this[_0x4c78a3(0x295)][_0x4c78a3(0x181)](_0x3fa50f),_0x35d295=(_0x3e3177=_0x5a5806==null?void 0x0:_0x5a5806[_0x4c78a3(0x10d)])!=null?_0x3e3177:_0x4e1a77;return(_0x56cec9=(_0x2a8cb9=(await this[_0x4c78a3(0x22c)][_0x4c78a3(0xc6)](_0x35d295,{'headers':{'Content-Type':_0x4c78a3(0x19b)}}))['body'])==null?void 0x0:_0x2a8cb9[_0x4c78a3(0x238)])!=null?_0x56cec9:'';}};_t=yn([Z(0x0,_0x1ada69(_0x37163f)),Z(0x1,_0x1ada69(_0x1def6f)),Z(0x2,_0x20c298),Z(0x3,_0x3d4f4a),Z(0x4,_0x5de3db)],_t);var $n=Object[_0x350772(0x2c2)],xn=(_0x2caae6,_0x1ef9d3,_0x29e0a1,_0x3fdc39)=>{const _0x5bbee1=_0x350772;for(var _0x190536=_0x3fdc39>0x1?void 0x0:_0x3fdc39?$n(_0x1ef9d3,_0x29e0a1):_0x1ef9d3,_0x4a9f97=_0x2caae6[_0x5bbee1(0x2e6)]-0x1,_0x5a6de9;_0x4a9f97>=0x0;_0x4a9f97--)(_0x5a6de9=_0x2caae6[_0x4a9f97])&&(_0x190536=_0x5a6de9(_0x190536)||_0x190536);return _0x190536;},Ue=(_0x25c03b,_0x162155)=>(_0xfc5bb9,_0x5cf354)=>_0x162155(_0xfc5bb9,_0x5cf354,_0x25c03b);let ht=class extends _0x2d8b34{constructor(_0x96337,_0xa750de,_0x12ec7e){const _0x483a7b=_0x350772;super(),this[_0x483a7b(0x26c)]=_0x96337,this[_0x483a7b(0x22c)]=_0xa750de,this['_configService']=_0x12ec7e;}async[_0x350772(0x1bf)](_0x3ee9e5,_0x239b51,_0x8aabb1,..._0xa44d64){const _0x35ad1e=_0x350772;var _0x4e34e5,_0xb74e41,_0x441d3b,_0x3f2c5a;const _0x2919c9=this[_0x35ad1e(0x26c)][_0x35ad1e(0x15f)]();if(!_0x2919c9)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5350ad=((_0x4e34e5=this[_0x35ad1e(0x295)]['getConfig'](_0x5e58e4))!=null?_0x4e34e5:_0xd8680f)+'/'+_0x3ee9e5+'/run/'+_0x239b51,_0x4ec7a5=new URL(window[_0x35ad1e(0x239)][_0x35ad1e(0x15b)]),_0x59a71f={'scriptId':_0x3ee9e5,'runId':(_0xb74e41=_0x4ec7a5[_0x35ad1e(0x1e6)][_0x35ad1e(0xc6)](_0x35ad1e(0x24b)))!=null?_0xb74e41:'','function':_0x239b51,'unitId':_0x2919c9[_0x35ad1e(0x25a)](),'argsOfFunction':JSON['stringify'](_0xa44d64),'invokeId':(_0x441d3b=_0x8aabb1[_0x35ad1e(0x210)])!=null?_0x441d3b:'','executionId':(_0x3f2c5a=_0x8aabb1[_0x35ad1e(0x161)])!=null?_0x3f2c5a:''};try{const _0x32749c=await this['_httpService'][_0x35ad1e(0x2b7)](_0x5350ad,{'body':_0x59a71f});return _0x32749c['body'][_0x35ad1e(0x246)]&&_0x32749c[_0x35ad1e(0xd3)][_0x35ad1e(0x246)]['code']!==Q['OK']?'Failed':_0x32749c[_0x35ad1e(0xd3)]['result'];}catch{return _0x35ad1e(0x1e4);}}};ht=xn([Ue(0x0,_0xbcb279),Ue(0x1,_0x1ada69(_0x1def6f)),Ue(0x2,_0x20c298)],ht);const ut=0x7530,dt='ACTIVE_UNIT_EVENT_CHANNEL';class ir extends _0x2d8b34{constructor(){const _0x246539=_0x350772;super(),_(this,_0x246539(0x172),_0x43b449()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x246539(0x262),null),_(this,_0x246539(0xd2),new Map()),_(this,'_unitStatus',new Map()),this[_0x246539(0x2e4)]();}[_0x350772(0x1e0)](){const _0x1575a1=_0x350772;super[_0x1575a1(0x1e0)](),this[_0x1575a1(0xd2)][_0x1575a1(0x237)]((_0x28cdb3,_0x2fa201)=>this[_0x1575a1(0x183)](_0x2fa201)),this[_0x1575a1(0x262)]&&window[_0x1575a1(0x18a)](this[_0x1575a1(0x262)]);}[_0x350772(0x19f)](_0x93c6a3){const _0x3d38e9=_0x350772;return this[_0x3d38e9(0x2b8)](_0x93c6a3)[_0x3d38e9(0xcb)](_0x9b68fc());}[_0x350772(0x13a)](_0x2469d6){const _0x19ab92=_0x350772;this[_0x19ab92(0x275)][_0x19ab92(0x2ce)]===0x0&&this[_0x19ab92(0x244)](),this[_0x19ab92(0x275)][_0x19ab92(0x10c)](_0x2469d6),this[_0x19ab92(0x2c8)]({'type':0x0,'memberID':this[_0x19ab92(0x172)],'unitIDs':[_0x2469d6],'isForwarded':!0x1});}[_0x350772(0x209)](_0x36ef47){const _0x28651a=_0x350772;this[_0x28651a(0x275)][_0x28651a(0x218)](_0x36ef47),this['_selfUnitIDs'][_0x28651a(0x2ce)]===0x0&&this['_heartbeatTimer']&&window[_0x28651a(0x18a)](this[_0x28651a(0x262)]);}[_0x350772(0x2e4)](){const _0x5aa119=_0x350772;this[_0x5aa119(0x222)](_0x296cd2(_0x46d8b5(window,'storage')['subscribe'](_0x12f07c=>{const _0x4bacf6=_0x5aa119;if(_0x12f07c[_0x4bacf6(0x241)]!==dt||!_0x12f07c[_0x4bacf6(0xc5)])return;const _0x6dd894=JSON[_0x4bacf6(0xfb)](_0x12f07c[_0x4bacf6(0xc5)]);this[_0x4bacf6(0x299)](_0x6dd894);}))),window[_0x5aa119(0x20b)](_0x5aa119(0x193),()=>this[_0x5aa119(0x2c8)]({'type':0x1,'memberID':this[_0x5aa119(0x172)],'unitIDs':Array[_0x5aa119(0x22d)](this['_selfUnitIDs'])}));}[_0x350772(0x299)](_0x4d161b){const _0x59f9ac=_0x350772;switch(_0x4d161b[_0x59f9ac(0xbd)]){case 0x0:this[_0x59f9ac(0x1d3)](_0x4d161b);break;case 0x1:this['_handleLeaveEvent'](_0x4d161b);break;case 0x2:this[_0x59f9ac(0x2be)](_0x4d161b);break;}}[_0x350772(0x1d3)](_0x17233d){const _0x29b1d8=_0x350772,{unitIDs:_0x45b63c,memberID:_0x37e38b,isForwarded:_0x191d4f}=_0x17233d;_0x45b63c[_0x29b1d8(0x237)](_0x3533c5=>{const _0x36d2f4=_0x29b1d8;if(!_0x191d4f&&this[_0x36d2f4(0x266)][_0x36d2f4(0x105)](_0x3533c5)&&this['_ensureSubject'](_0x3533c5)[_0x36d2f4(0x1c2)](_0x32ac9a['OTHER_CLIENTS_EDITING']),!this[_0x36d2f4(0x266)][_0x36d2f4(0x105)](_0x3533c5)||!this['_unitOnClients']['get'](_0x3533c5)[_0x36d2f4(0x105)](_0x37e38b)){const _0x22eb39=this[_0x36d2f4(0x266)]['get'](_0x3533c5)||new Set();_0x22eb39[_0x36d2f4(0x10c)](_0x37e38b),this['_unitOnClients'][_0x36d2f4(0x279)](_0x3533c5,_0x22eb39),this['_scheduleClearOtherTimer'](_0x37e38b);}}),_0x191d4f||this[_0x29b1d8(0x2c8)]({'type':0x0,'memberID':this[_0x29b1d8(0x172)],'unitIDs':[...this[_0x29b1d8(0x275)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x30aec6){const _0x15cb77=_0x350772;this[_0x15cb77(0x183)](_0x30aec6);const _0xb9d54f=window[_0x15cb77(0x1a1)](()=>{const _0x7cb53e=_0x15cb77;this[_0x7cb53e(0x266)][_0x7cb53e(0x237)](_0x5d8fcc=>{const _0x314923=_0x7cb53e;_0x5d8fcc[_0x314923(0x218)](_0x30aec6);});},ut*0x2);this[_0x15cb77(0xd2)][_0x15cb77(0x279)](_0x30aec6,_0xb9d54f);}[_0x350772(0x183)](_0x53a716){const _0x2d162d=_0x350772;if(this[_0x2d162d(0xd2)][_0x2d162d(0x105)](_0x53a716)){const _0x3b61e9=this[_0x2d162d(0xd2)][_0x2d162d(0xc6)](_0x53a716);_0x3b61e9&&window['clearTimeout'](_0x3b61e9),this[_0x2d162d(0xd2)][_0x2d162d(0x279)](_0x53a716,null);}}['_handleLeaveEvent'](_0x3983a6){const _0x3d9359=_0x350772,{memberID:_0x5bd389,unitIDs:_0x57dd9a}=_0x3983a6;_0x57dd9a['forEach'](_0x1ef65d=>{const _0x877c43=_0x2f90;var _0x4695e2;const _0x25db66=this['_unitOnClients']['get'](_0x1ef65d);_0x25db66&&(_0x25db66[_0x877c43(0x218)](_0x5bd389),(_0x4695e2=this[_0x877c43(0x2b8)](_0x1ef65d))==null||_0x4695e2[_0x877c43(0x1c2)](_0x25db66[_0x877c43(0x2ce)]===0x0?_0x32ac9a[_0x877c43(0x2e3)]:_0x32ac9a[_0x877c43(0x283)]));}),this[_0x3d9359(0x183)](_0x5bd389);}[_0x350772(0x2be)](_0x4758d3){const _0x1f4075=_0x350772;this[_0x1f4075(0x155)](_0x4758d3[_0x1f4075(0x23c)]);}[_0x350772(0x2c8)](_0x2ea3c6){const _0x21985f=_0x350772;localStorage[_0x21985f(0x272)](dt,JSON[_0x21985f(0x1c3)](_0x2ea3c6));}['_scheduleHeartbeat'](){const _0x189db0=_0x350772;this[_0x189db0(0x262)]=window['setInterval'](()=>{const _0x1c47ae=_0x189db0;this[_0x1c47ae(0x2c8)]({'type':0x2,'memberID':this[_0x1c47ae(0x172)]});},ut);}['_ensureSubject'](_0x3cf479){const _0x58a46a=_0x350772;return this['_unitStatus'][_0x58a46a(0x105)](_0x3cf479)||this[_0x58a46a(0x19e)][_0x58a46a(0x279)](_0x3cf479,new _0x1cc040(_0x32ac9a['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x58a46a(0xc6)](_0x3cf479);}}export{_t as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,Pt as IURLService,ht as RemoteUniscriptService,tn as SheetCollabCursorShape,Fe as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService,bn as WebURLService};