@univerjs-pro/collaboration-client-ui 0.10.7 → 0.10.8-nightly.202509200616

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 +17 -17
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x14c74a=_0x3130;(function(_0x3d7953,_0x6ee895){const _0x18d80a=_0x3130,_0x22ad14=_0x3d7953();while(!![]){try{const _0x5a6b5f=parseInt(_0x18d80a(0x305))/0x1+-parseInt(_0x18d80a(0x282))/0x2*(parseInt(_0x18d80a(0x1ef))/0x3)+parseInt(_0x18d80a(0x1af))/0x4*(parseInt(_0x18d80a(0x318))/0x5)+parseInt(_0x18d80a(0x315))/0x6*(-parseInt(_0x18d80a(0x1f2))/0x7)+-parseInt(_0x18d80a(0x278))/0x8+-parseInt(_0x18d80a(0x291))/0x9+parseInt(_0x18d80a(0x1a5))/0xa;if(_0x5a6b5f===_0x6ee895)break;else _0x22ad14['push'](_0x22ad14['shift']());}catch(_0x1649ac){_0x22ad14['push'](_0x22ad14['shift']());}}}(_0x372b,0xb12b1));var xt=Object['defineProperty'],Bt=(_0x336d98,_0x1ae6a8,_0x48f96d)=>_0x1ae6a8 in _0x336d98?xt(_0x336d98,_0x1ae6a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48f96d}):_0x336d98[_0x1ae6a8]=_0x48f96d,_=(_0x3a462f,_0x360aec,_0x1fa235)=>Bt(_0x3a462f,typeof _0x360aec!=_0x14c74a(0x1b2)?_0x360aec+'':_0x360aec,_0x1fa235);import{jsx as _0x4f2853,jsxs as _0x476034}from'react/jsx-runtime';import{CollaborationStatus as _0x1db2c6,CollaborationSessionService as _0xcab9c2,CollaborationController as _0x43ceef,DataLoaderService as _0x29bc51,MemberService as _0x16fd64,SessionStatus as _0x3645c9,ILocalCacheService as _0x51b3f0,CollaborationUIEventService as _0x59464a,CollaborationUIEventId as _0x1cabf7,DocCollaborationEntity as _0x4a7a20,getLocalCacheKey as _0x4eded7,LOCAL_CACHE_INTERVAL as _0x45d479,LOCAL_CACHE_INTERVAL_KEY as _0x5bb4aa,UniverCollaborationClientPlugin as _0x171330,CollaborationSocketService as _0x575702,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1de0bf,DEFAULT_WS_SESSION_TICKET_URL as _0xb62b37,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xf440f5,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5c2877,UnitStatus as _0x325b8e}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5b784e,IUniverInstanceService as _0x185030,Inject as _0x4fff92,Injector as _0x59495a,Disposable as _0xdd38f3,createIdentifier as _0xbf487c,ILogService as _0x57ae13,ICommandService as _0x211890,Optional as _0x2885b5,RxDisposable as _0x270ee7,Workbook as _0x159289,DOC_RANGE_TYPE as _0xc89d24,debounce as _0x30190f,Rectangle as _0x1b1299,DisposableCollection as _0x47f4a6,toDisposable as _0x1799ad,UniverInstanceType as _0x555e27,generateRandomId as _0x4c97f0,COLORS as _0x5138dd,ColorKit as _0x47f5f9,ThemeService as _0x3ea1cc,fromEventSubject as _0x59105d,Tools as _0x4ee51e,CommandType as _0xbff3c6,IConfigService as _0x1b5145,ILocalStorageService as _0xd71f9,DependentOn as _0x4d8f58,Plugin as _0x18e775,merge as _0x31a5b7,registerDependencies as _0x43af18,mergeOverrideWithDependencies as _0xbabb7f,touchDependencies as _0x5c024d}from'@univerjs/core';import{useObservable as _0x1a3427,useDependency as _0xf9c270,IUIPartsService as _0x30838a,BuiltInUIPart as _0x4ccfef,connectInjector as _0x8bda7b,IBeforeCloseService as _0x50fe48,IMessageService as _0x2585ff,INotificationService as _0x3dc479}from'@univerjs/ui';import{BehaviorSubject as _0x1bb8bf,switchMap as _0x1e2746,of as _0xfd46f5,takeUntil as _0x2c2b7e,debounceTime as _0xa5c8bf,Subject as _0x4e6786,filter as _0x246502,merge as _0x579586,combineLatest as _0x1a0445,fromEvent as _0xf30f0,shareReplay as _0x56503d,mapTo as _0x4c898c,distinctUntilChanged as _0x30f71e}from'rxjs';import{Tooltip as _0x3cdb55,clsx as _0x31dc53,MessageType as _0x1b5003}from'@univerjs/design';import{forwardRef as _0x5bf49d,useRef as _0x70e6a1,createElement as _0x578e4d,useCallback as _0x7410c3}from'react';import{IRemoteInstanceService as _0x175921}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x423c46,RefRangeService as _0x533725,SetSelectionsOperation as _0xff015b,SheetsSelectionsService as _0xb3706c,EffectRefRangId as _0x5b3259,handleIRemoveRow as _0x39bf34,handleIRemoveCol as _0x5a28d0,handleMoveRange as _0x3e1128,handleInsertRow as _0x476616,handleInsertRangeMoveRight as _0x52829e,handleInsertRangeMoveDown as _0x14d53a,handleInsertCol as _0x304b25,handleDeleteRangeMoveUp as _0x45a3ca,handleDeleteRangeMoveLeft as _0xafd835,runRefRangeMutations as _0x4ada95}from'@univerjs/sheets';import{Shape as _0x633c93,Rect as _0x3e3c5c,getColor as _0xcb5b1c,RegularPolygon as _0x4fa96d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x8d714e,Vector2 as _0x5e8c29,SHEET_VIEWPORT_KEY as _0x1dc34d,IRenderManagerService as _0x34cabc}from'@univerjs/engine-render';import{ISocketService as _0x5f1b50,WebSocketService as _0x3f2ae3,HTTPService as _0x5ef031}from'@univerjs/network';import{IDocClipboardService as _0x2c3a8b,NodePositionConvertToCursor as _0x143235,NodePositionConvertToRectRange as _0x11a3f2,TEXT_RANGE_LAYER_INDEX as _0x34bfba,SetDocZoomRatioOperation as _0x4a5ce9,DocIMEInputManagerService as _0x25748e,DocStateChangeManagerService as _0x14b757}from'@univerjs/docs-ui';import{IImageIoService as _0x1028a6}from'@univerjs/drawing';import{ITransformService as _0x315634,CollaborationEvent as _0x5ab9e8,isTransformMutationFailure as _0x145735,isTransformMutationsWithChangesetSuccess as _0x20f632,RevisionService as _0x2679d0,ISnapshotServerService as _0xdb2b88}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x4d4726,RichTextEditingMutation as _0x40d5e9,DocSelectionManagerService as _0x18393c,DocSkeletonManagerService as _0x5d68a9}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x1eeaaf,serializeRangeWithSheet as _0x65f635}from'@univerjs/engine-formula';import{map as _0x47d210,filter as _0x4bda57,throttleTime as _0x4de0c1,takeUntil as _0x4aa1ef,switchMap as _0x2f7498}from'rxjs/operators';import{SheetSkeletonManagerService as _0x50e06b,getCoordByCell as _0x233511,getSheetObject as _0x3e250c}from'@univerjs/sheets-ui';var v=function(){const _0xf74fe7=_0x14c74a;return v=Object[_0xf74fe7(0x26f)]||function(_0x3cacab){const _0x5e7965=_0xf74fe7;for(var _0x4af85b,_0x1ef299=0x1,_0x3ccba5=arguments[_0x5e7965(0x2f1)];_0x1ef299<_0x3ccba5;_0x1ef299++){_0x4af85b=arguments[_0x1ef299];for(var _0x41e386 in _0x4af85b)Object['prototype'][_0x5e7965(0x159)][_0x5e7965(0x224)](_0x4af85b,_0x41e386)&&(_0x3cacab[_0x41e386]=_0x4af85b[_0x41e386]);}return _0x3cacab;},v['apply'](this,arguments);},ci=function(_0x8cb128,_0xe748d6){const _0x2b7e8a=_0x14c74a;var _0x31cde9={};for(var _0x11b019 in _0x8cb128)Object[_0x2b7e8a(0x28a)]['hasOwnProperty']['call'](_0x8cb128,_0x11b019)&&_0xe748d6[_0x2b7e8a(0x1b7)](_0x11b019)<0x0&&(_0x31cde9[_0x11b019]=_0x8cb128[_0x11b019]);if(_0x8cb128!=null&&typeof Object[_0x2b7e8a(0x293)]==_0x2b7e8a(0x25d)){for(var _0x598a56=0x0,_0x11b019=Object['getOwnPropertySymbols'](_0x8cb128);_0x598a56<_0x11b019[_0x2b7e8a(0x2f1)];_0x598a56++)_0xe748d6[_0x2b7e8a(0x1b7)](_0x11b019[_0x598a56])<0x0&&Object[_0x2b7e8a(0x28a)][_0x2b7e8a(0x1c5)][_0x2b7e8a(0x224)](_0x8cb128,_0x11b019[_0x598a56])&&(_0x31cde9[_0x11b019[_0x598a56]]=_0x8cb128[_0x11b019[_0x598a56]]);}return _0x31cde9;},ke=_0x5bf49d(function(_0x241ee9,_0x4c59dd){const _0x4ab1cf=_0x14c74a;var _0x16e788=_0x241ee9[_0x4ab1cf(0x35e)],_0xff7ba4=_0x241ee9['id'],_0x33e56a=_0x241ee9['className'],_0x2f32a9=_0x241ee9[_0x4ab1cf(0x172)],_0x43d1f6=ci(_0x241ee9,[_0x4ab1cf(0x35e),'id',_0x4ab1cf(0x252),_0x4ab1cf(0x172)]),_0x1e8c33='univerjs-icon\x20univerjs-icon-'[_0x4ab1cf(0x30a)](_0xff7ba4,'\x20')[_0x4ab1cf(0x30a)](_0x33e56a||'')['trim'](),_0x340ea6=_0x70e6a1('_'[_0x4ab1cf(0x30a)](hi()));return Rt(_0x16e788,''[_0x4ab1cf(0x30a)](_0xff7ba4),{'defIds':_0x16e788['defIds'],'idSuffix':_0x340ea6[_0x4ab1cf(0x1bc)]},v({'ref':_0x4c59dd,'className':_0x1e8c33},_0x43d1f6),_0x2f32a9);});function Rt(_0x49be64,_0x1a9fd9,_0x515bab,_0xab3799,_0x10e377){const _0x49a7c2=_0x14c74a;return _0x578e4d(_0x49be64['tag'],v(v({'key':_0x1a9fd9},li(_0x49be64,_0x515bab,_0x10e377)),_0xab3799),(_i(_0x49be64,_0x515bab)[_0x49a7c2(0x21f)]||[])[_0x49a7c2(0x205)](function(_0x5772e4,_0x566a84){const _0x51d455=_0x49a7c2;return Rt(_0x5772e4,''[_0x51d455(0x30a)](_0x1a9fd9,'-')['concat'](_0x49be64[_0x51d455(0x247)],'-')[_0x51d455(0x30a)](_0x566a84),_0x515bab,void 0x0,_0x10e377);}));}function li(_0xec4000,_0x4044ac,_0x52f488){const _0x284736=_0x14c74a;var _0x34a220=v({},_0xec4000[_0x284736(0x321)]);_0x52f488!=null&&_0x52f488[_0x284736(0x2aa)]&&_0x34a220[_0x284736(0x329)]==='colorChannel1'&&(_0x34a220[_0x284736(0x329)]=_0x52f488[_0x284736(0x2aa)]),_0xec4000[_0x284736(0x247)]===_0x284736(0x29b)&&_0x34a220['id']&&(_0x34a220['id']=_0x34a220['id']+_0x4044ac[_0x284736(0x16c)]),Object['entries'](_0x34a220)[_0x284736(0x280)](function(_0x226356){const _0x24c420=_0x284736;var _0x4873ca=_0x226356[0x0],_0x5836b4=_0x226356[0x1];_0x4873ca===_0x24c420(0x29b)&&typeof _0x5836b4==_0x24c420(0x303)&&(_0x34a220[_0x4873ca]=_0x5836b4[_0x24c420(0x2ba)](/url\(#(.*)\)/,_0x24c420(0x29e)[_0x24c420(0x30a)](_0x4044ac[_0x24c420(0x16c)],')')));});var _0x23e756=_0x4044ac[_0x284736(0x18c)];return!_0x23e756||_0x23e756[_0x284736(0x2f1)]===0x0||(_0xec4000[_0x284736(0x247)]===_0x284736(0x235)&&_0x34a220[_0x284736(0x317)]&&(_0x34a220['xlink:href']=_0x34a220[_0x284736(0x317)]+_0x4044ac[_0x284736(0x16c)]),Object[_0x284736(0x1f6)](_0x34a220)['forEach'](function(_0x36bd19){const _0x55cbfd=_0x284736;var _0x30d9f2=_0x36bd19[0x0],_0x384795=_0x36bd19[0x1];typeof _0x384795=='string'&&(_0x34a220[_0x30d9f2]=_0x384795[_0x55cbfd(0x2ba)](/url\(#(.*)\)/,_0x55cbfd(0x29e)[_0x55cbfd(0x30a)](_0x4044ac[_0x55cbfd(0x16c)],')')));})),_0x34a220;}function _i(_0x119123,_0x2b757e){const _0x81f51a=_0x14c74a;var _0x334f7a,_0x4882a8=_0x2b757e['defIds'];return!_0x4882a8||_0x4882a8[_0x81f51a(0x2f1)]===0x0?_0x119123:_0x119123[_0x81f51a(0x247)]===_0x81f51a(0x25a)&&(!((_0x334f7a=_0x119123[_0x81f51a(0x21f)])===null||_0x334f7a===void 0x0)&&_0x334f7a[_0x81f51a(0x2f1)])?v(v({},_0x119123),{'children':_0x119123[_0x81f51a(0x21f)][_0x81f51a(0x205)](function(_0x19bf3e){const _0x352360=_0x81f51a;return typeof _0x19bf3e[_0x352360(0x321)]['id']==_0x352360(0x303)&&_0x4882a8&&_0x4882a8[_0x352360(0x2c8)](_0x19bf3e[_0x352360(0x321)]['id'])?v(v({},_0x19bf3e),{'attrs':v(v({},_0x19bf3e[_0x352360(0x321)]),{'id':_0x19bf3e['attrs']['id']+_0x2b757e[_0x352360(0x16c)]})}):_0x19bf3e;})}):_0x119123;}function hi(){const _0x8d883a=_0x14c74a;return Math['random']()[_0x8d883a(0x223)](0x24)[_0x8d883a(0x271)](0x2,0x8);}ke[_0x14c74a(0x176)]=_0x14c74a(0x31c);var ui={'tag':_0x14c74a(0x32b),'attrs':{'xmlns':_0x14c74a(0x2c6),'fill':_0x14c74a(0x1f4),'viewBox':_0x14c74a(0x310),'width':_0x14c74a(0x228),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x14c74a(0x204)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x14c74a(0x2a6),'strokeLinecap':_0x14c74a(0x212),'strokeLinejoin':_0x14c74a(0x212),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x14c74a(0x33c),'attrs':{'id':_0x14c74a(0x327)},'children':[{'tag':'path','attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x14c74a(0x327)]},Dt=_0x5bf49d(function(_0x30d412,_0xb3bfa0){const _0x49876d=_0x14c74a;return _0x578e4d(ke,Object[_0x49876d(0x26f)]({},_0x30d412,{'id':'off-line-icon','ref':_0xb3bfa0,'icon':ui}));});Dt[_0x14c74a(0x176)]=_0x14c74a(0x163);var di={'tag':_0x14c74a(0x32b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x14c74a(0x274),'width':_0x14c74a(0x228),'height':_0x14c74a(0x228)},'children':[{'tag':'g','attrs':{'clipPath':_0x14c74a(0x173)},'children':[{'tag':_0x14c74a(0x297),'attrs':{'stroke':_0x14c74a(0x23b),'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':_0x14c74a(0x212),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x14c74a(0x25a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x14c74a(0x297),'attrs':{'fill':_0x14c74a(0x260),'d':_0x14c74a(0x21b),'transform':_0x14c74a(0x2cb)}}]}]}],'defIds':[_0x14c74a(0x2d6)]},Nt=_0x5bf49d(function(_0x269de4,_0x4d5388){const _0x354a86=_0x14c74a;return _0x578e4d(ke,Object[_0x354a86(0x26f)]({},_0x269de4,{'id':_0x354a86(0x337),'ref':_0x4d5388,'icon':di}));});Nt[_0x14c74a(0x176)]=_0x14c74a(0x2bf);function fi(_0x38305f){const _0x2889d6=_0x14c74a;switch(_0x38305f){case _0x1db2c6['OFFLINE']:return'collabStatus.offline';case _0x1db2c6[_0x2889d6(0x1f3)]:return _0x2889d6(0x300);case _0x1db2c6[_0x2889d6(0x358)]:return'collabStatus.fetchMiss';case _0x1db2c6['NOT_COLLAB']:return _0x2889d6(0x325);case _0x1db2c6[_0x2889d6(0x2c1)]:case _0x1db2c6[_0x2889d6(0x31f)]:return _0x2889d6(0x261);case _0x1db2c6['SYNCED']:case _0x1db2c6['PENDING']:return _0x2889d6(0x330);}}function Si(_0x43f5e2){const _0x13fc5e=_0x14c74a,{status$:_0x1c38ba}=_0x43f5e2,_0xdedd48=_0x1a3427(_0x1c38ba,_0x1db2c6['NOT_COLLAB']),_0xeb2d53=_0xf9c270(_0x5b784e),_0x5bc6c5=_0xf9c270(_0xcab9c2),_0x2072e8=_0xdedd48!==_0x1db2c6[_0x13fc5e(0x27a)],_0x5e2a79=_0xeb2d53['t'](fi(_0xdedd48)),_0x52cc80=_0x2072e8?_0x4f2853(Nt,{}):_0x4f2853(Dt,{}),_0x47b1bd=_0x7410c3(()=>{const _0x1b76e4=_0x13fc5e;_0x2072e8||_0x5bc6c5[_0x1b76e4(0x34b)]();},[_0x2072e8,_0x5bc6c5]);function _0x346ce9(){const _0x448456=_0x13fc5e;return _0x476034(_0x448456(0x1ce),{'className':'univer-flex\x20univer-items-center','onClick':_0x47b1bd,'children':[_0x4f2853(_0x448456(0x1ce),{'className':_0x31dc53(_0x448456(0x298),{'univer-text-green-500':_0x2072e8,'univer-text-red-500':!_0x2072e8}),'children':_0x52cc80}),_0x4f2853(_0x448456(0x1ce),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x5e2a79})]});}return _0x2072e8?_0x346ce9():_0x4f2853(_0x3cdb55,{'title':_0xeb2d53['t']('collab-client.tooltip.reconnect'),'children':_0x346ce9()});}var mi=Object['getOwnPropertyDescriptor'],Ii=(_0xc32901,_0x513144,_0x1f6b0f,_0x3fa972)=>{const _0x37e59e=_0x14c74a;for(var _0x10abb6=_0x3fa972>0x1?void 0x0:_0x3fa972?mi(_0x513144,_0x1f6b0f):_0x513144,_0x59d44c=_0xc32901[_0x37e59e(0x2f1)]-0x1,_0x303394;_0x59d44c>=0x0;_0x59d44c--)(_0x303394=_0xc32901[_0x59d44c])&&(_0x10abb6=_0x303394(_0x10abb6)||_0x10abb6);return _0x10abb6;},q=(_0x54231e,_0x2e85fc)=>(_0x5205e7,_0x167ed2)=>_0x2e85fc(_0x5205e7,_0x167ed2,_0x54231e);let se=class extends _0xdd38f3{constructor(_0xa176b7,_0x11a5e4,_0x219b5d,_0x48500e){const _0x18787e=_0x14c74a;super(),_(this,_0x18787e(0x29c),new _0x1bb8bf(_0x1db2c6[_0x18787e(0x1fb)])),(this[_0x18787e(0x250)]=_0xa176b7,this[_0x18787e(0x24c)]=_0x11a5e4,this['_collaborationController']=_0x219b5d,this[_0x18787e(0x1ca)]=_0x48500e,this['_initStatusComponent'](),this[_0x18787e(0x1d4)]());}[_0x14c74a(0x1d4)](){const _0x8b7039=_0x14c74a;this[_0x8b7039(0x2d1)](this[_0x8b7039(0x250)][_0x8b7039(0x2eb)][_0x8b7039(0x184)](_0x1e2746(()=>{const _0xa567b0=_0x8b7039,_0x3be779=this[_0xa567b0(0x250)][_0xa567b0(0x1c7)]();return _0x3be779?this[_0xa567b0(0x1ad)]['getCollabEntity$'](_0x3be779['getUnitId']()):_0xfd46f5(null);}),_0x1e2746(_0x4fd4f1=>_0x4fd4f1?_0x4fd4f1[_0x8b7039(0x16e)]:_0xfd46f5(_0x1db2c6[_0x8b7039(0x1fb)])))['subscribe'](_0x166bd5=>{const _0x238470=_0x8b7039;this[_0x238470(0x29c)][_0x238470(0x31e)](_0x166bd5);}));}[_0x14c74a(0x2cd)](){const _0x1e4a5d=_0x14c74a;this[_0x1e4a5d(0x2d1)](this[_0x1e4a5d(0x1ca)][_0x1e4a5d(0x206)](_0x4ccfef[_0x1e4a5d(0x1ab)],()=>_0x8bda7b(vi({'status$':this[_0x1e4a5d(0x29c)]['asObservable']()}),this[_0x1e4a5d(0x24c)])));}};se=Ii([q(0x0,_0x185030),q(0x1,_0x4fff92(_0x59495a)),q(0x2,_0x4fff92(_0x43ceef)),q(0x3,_0x30838a)],se);function vi(_0x4d8744){const {status$:_0x5dd9b5}=_0x4d8744;return function(){return _0x4f2853(Si,{'status$':_0x5dd9b5});};}const Ut=_0xbf487c('uni.network.url-service');var gi=Object['getOwnPropertyDescriptor'],pi=(_0x27c02e,_0x27edda,_0x1c7332,_0x378fa8)=>{for(var _0xc80a45=_0x378fa8>0x1?void 0x0:_0x378fa8?gi(_0x27edda,_0x1c7332):_0x27edda,_0x2cae5b=_0x27c02e['length']-0x1,_0x3a404c;_0x2cae5b>=0x0;_0x2cae5b--)(_0x3a404c=_0x27c02e[_0x2cae5b])&&(_0xc80a45=_0x3a404c(_0xc80a45)||_0xc80a45);return _0xc80a45;},G=(_0x4e24c7,_0x15bef2)=>(_0x3ab280,_0x218ab7)=>_0x15bef2(_0x3ab280,_0x218ab7,_0x4e24c7);let ie=class extends _0x270ee7{constructor(_0x50ac2c,_0x54896a,_0x2c3729,_0x4cbf66,_0x4ba759){const _0xcfe894=_0x14c74a;super(),this[_0xcfe894(0x33d)]=_0x50ac2c,this[_0xcfe894(0x189)]=_0x54896a,this[_0xcfe894(0x29f)]=_0x2c3729,this[_0xcfe894(0x1e6)]=_0x4cbf66,_0x4ba759?_0x4ba759==null||_0x4ba759[_0xcfe894(0x1e5)]()[_0xcfe894(0x281)](()=>this['_init']()):(this[_0xcfe894(0x189)][_0xcfe894(0x28f)](_0xcfe894(0x289),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x14c74a(0x270)](){const _0x175914=_0x14c74a,_0x446e9c=this[_0x175914(0x33d)][_0x175914(0x16d)](_0x175914(0x1a8)),_0x42c64d=this[_0x175914(0x33d)]['getParam'](_0x175914(0x1eb)),_0x202789=this[_0x175914(0x33d)]['getParam'](_0x175914(0x1d6));if(!_0x446e9c||!_0x42c64d){this[_0x175914(0x189)][_0x175914(0x28f)](_0x175914(0x289),_0x175914(0x20e));return;}const _0x493f1d=await this[_0x175914(0x1e6)][_0x175914(0x211)](_0x446e9c,Number(_0x42c64d),_0x202789);_0x493f1d&&_0x493f1d instanceof _0x159289&&this[_0x175914(0x23c)](_0x493f1d);}async['_setupSubUnitSync'](_0xb8a070){const _0x2974aa=_0x14c74a;await this[_0x2974aa(0x2f5)](_0xb8a070),_0xb8a070[_0x2974aa(0x1f8)]['pipe'](_0x2c2b7e(this[_0x2974aa(0x1bf)]))[_0x2974aa(0x1c9)](_0x37919f=>{const _0x2cda4b=_0x2974aa;_0x37919f&&this[_0x2cda4b(0x1e9)](_0x37919f);}),this[_0x2974aa(0x33d)]['urlChange$'][_0x2974aa(0x184)](_0x2c2b7e(this[_0x2974aa(0x1bf)]))[_0x2974aa(0x1c9)](()=>this['_updateSubUnitFromURLParams'](_0xb8a070));}[_0x14c74a(0x1e9)](_0x420a8e,_0x53312f=!0x1){const _0x436684=_0x14c74a,_0x463498=this[_0x436684(0x33d)][_0x436684(0x16d)](_0x436684(0x1d6));_0x420a8e['getSheetId']()!==_0x463498&&this[_0x436684(0x33d)][_0x436684(0x349)](_0x436684(0x1d6),_0x420a8e[_0x436684(0x2a8)](),_0x53312f);}async[_0x14c74a(0x2f5)](_0x194661){const _0x1dd6d9=_0x14c74a;var _0x254ed2;const _0x2bda24=this[_0x1dd6d9(0x33d)][_0x1dd6d9(0x16d)](_0x1dd6d9(0x1d6));if(!_0x2bda24||!_0x194661[_0x1dd6d9(0x25c)](_0x2bda24)){const _0x2077dd=_0x194661['getUnhiddenWorksheets']()[0x0],_0x5cf7da=_0x194661[_0x1dd6d9(0x25c)](_0x2077dd);if(!_0x5cf7da)return;this['_updateURLWithCurrentState'](_0x5cf7da,!0x0),await this[_0x1dd6d9(0x29f)]['executeCommand'](_0x423c46['id'],{'unitId':_0x194661[_0x1dd6d9(0x20f)](),'subUnitId':_0x2077dd});return;}((_0x254ed2=_0x194661[_0x1dd6d9(0x304)]())==null?void 0x0:_0x254ed2['getSheetId']())!==_0x2bda24&&await this['_commandService'][_0x1dd6d9(0x203)](_0x423c46['id'],{'unitId':_0x194661[_0x1dd6d9(0x20f)](),'subUnitId':_0x2bda24});}};ie=pi([G(0x0,Ut),G(0x1,_0x57ae13),G(0x2,_0x211890),G(0x3,_0x4fff92(_0x29bc51)),G(0x4,_0x2885b5(_0x175921))],ie);var Ci=Object[_0x14c74a(0x192)],Ei=(_0x170cc8,_0x32b756,_0x55c7c7,_0x33db38)=>{const _0x298f29=_0x14c74a;for(var _0x1c2303=_0x33db38>0x1?void 0x0:_0x33db38?Ci(_0x32b756,_0x55c7c7):_0x32b756,_0x4c3c4b=_0x170cc8[_0x298f29(0x2f1)]-0x1,_0x719d7c;_0x4c3c4b>=0x0;_0x4c3c4b--)(_0x719d7c=_0x170cc8[_0x4c3c4b])&&(_0x1c2303=_0x719d7c(_0x1c2303)||_0x1c2303);return _0x1c2303;},Je=(_0x1152f1,_0xf731a7)=>(_0x1c2afa,_0x16e33f)=>_0xf731a7(_0x1c2afa,_0x16e33f,_0x1152f1);let Ne=class extends _0x270ee7{constructor(_0x42368b,_0x104a93){const _0x385348=_0x14c74a;super(),this[_0x385348(0x22c)]=_0x42368b,this[_0x385348(0x2ad)]=_0x104a93,this[_0x385348(0x270)]();}[_0x14c74a(0x270)](){const _0x1c81d4=_0x14c74a,_0x4c2a25=this;this['disposeWithMe'](this[_0x1c81d4(0x22c)][_0x1c81d4(0x1cb)]({'onBeforePasteImage':async _0xbcfc10=>{const _0x2ce23e=_0x1c81d4,_0x1f3f63=await _0x4c2a25[_0x2ce23e(0x2ad)]['saveImage'](_0xbcfc10);return _0x1f3f63?{'source':_0x1f3f63[_0x2ce23e(0x193)],'imageSourceType':_0x1f3f63[_0x2ce23e(0x268)]}:null;}}));}};Ne=Ei([Je(0x0,_0x2c3a8b),Je(0x1,_0x1028a6)],Ne);const Ze=['purple.300',_0x14c74a(0x1d2),'green.600',_0x14c74a(0x19d),_0x14c74a(0x17a),'yellow.400'];class He extends _0xdd38f3{constructor(){const _0x58493c=_0x14c74a;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x58493c(0x302),0x0);}[_0x14c74a(0x2d7)](_0xcf2bd9){const _0x515cd2=_0x14c74a;if(this[_0x515cd2(0x1ac)][_0x515cd2(0x21c)](_0xcf2bd9))return this['_assignedColors'][_0x515cd2(0x352)](_0xcf2bd9);const _0x349834=Ze[this[_0x515cd2(0x302)]];return this[_0x515cd2(0x302)]=(this['_colorIndex']+0x1)%Ze[_0x515cd2(0x2f1)],this['_assignedColors'][_0x515cd2(0x314)](_0xcf2bd9,_0x349834),_0x349834;}}function Mt(_0x2439c4){const _0x3fc98d=_0x14c74a;let _0x99e367='';for(const _0x5b4660 of _0x2439c4){const {startOffset:_0x33ca05,endOffset:_0x4cf322,isActive:_0x1d8c0f,rangeType:_0x3bc3d8,segmentId:_0x1c7d8c,segmentPage:_0x43513b}=_0x5b4660;_0x99e367[_0x3fc98d(0x2f1)]&&(_0x99e367+=','),_0x99e367+=_0x33ca05+':'+_0x4cf322+':'+(_0x1d8c0f?'1':'0')+':'+_0x3bc3d8+':'+_0x1c7d8c+':'+_0x43513b;}return _0x99e367;}function Oi(_0x5ba716){const _0x1871b7=_0x14c74a,_0x35718b=_0x5ba716[_0x1871b7(0x299)](','),_0x6302d0=[];for(const _0xe50c2c of _0x35718b){const [_0x210765,_0x509570,_0x3ccab5,_0x28d734,_0x2ea04d,_0x63956d]=_0xe50c2c[_0x1871b7(0x299)](':');_0x6302d0[_0x1871b7(0x2b7)]({'startOffset':Number(_0x210765),'endOffset':Number(_0x509570),'collapsed':_0x210765===_0x509570,'isActive':_0x3ccab5==='1','rangeType':_0x28d734===_0xc89d24[_0x1871b7(0x2bd)]?_0xc89d24[_0x1871b7(0x2bd)]:_0xc89d24[_0x1871b7(0x22a)],'segmentId':typeof _0x2ea04d==_0x1871b7(0x303)?String(_0x2ea04d):'','segmentPage':Number(_0x63956d!=null?_0x63956d:-0x1)});}return _0x6302d0[_0x1871b7(0x1e7)](_0x381769=>_0x381769['isActive'])||(_0x6302d0[0x0][_0x1871b7(0x27d)]=!0x0),_0x6302d0;}class Fe extends _0x270ee7{constructor(){const _0x4b7392=_0x14c74a;super(...arguments),_(this,_0x4b7392(0x248),new _0x1bb8bf(null)),_(this,_0x4b7392(0x25b),this[_0x4b7392(0x248)][_0x4b7392(0x2fe)]());}[_0x14c74a(0x32c)](_0x51176c){const _0x16938b=_0x14c74a,{unitID:_0x154536,memberID:_0x6c9d56,textRanges:_0x29719a}=_0x51176c,_0x35daf8=Mt(_0x29719a);if(_0x35daf8==='')return;const _0x5b8b1d={'unitID':_0x154536,'memberID':_0x6c9d56,'selection':_0x35daf8};this['_collabCursorState$'][_0x16938b(0x31e)](_0x5b8b1d);}}var bi=Object['getOwnPropertyDescriptor'],Ti=(_0x3e3db6,_0x26f14d,_0x341f37,_0x58f9cc)=>{const _0x5e8c80=_0x14c74a;for(var _0x30fb46=_0x58f9cc>0x1?void 0x0:_0x58f9cc?bi(_0x26f14d,_0x341f37):_0x26f14d,_0x1f4c90=_0x3e3db6[_0x5e8c80(0x2f1)]-0x1,_0x2020be;_0x1f4c90>=0x0;_0x1f4c90--)(_0x2020be=_0x3e3db6[_0x1f4c90])&&(_0x30fb46=_0x2020be(_0x30fb46)||_0x30fb46);return _0x30fb46;},P=(_0x32b811,_0xc7c9ee)=>(_0x105cd8,_0xe7f8a9)=>_0xc7c9ee(_0x105cd8,_0xe7f8a9,_0x32b811);const Ri=0x12c,Di=0x64;let Ue=class extends _0x270ee7{constructor(_0x50e383,_0x2fd96c,_0x45b3fd,_0x54ad7a,_0x3fcd78,_0x370937,_0x4088b9,_0x55ac02,_0x513c82){const _0x4456d6=_0x14c74a;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x1bb8bf(new Map())),_(this,'cursorInfo$',this[_0x4456d6(0x164)][_0x4456d6(0x2fe)]()),_(this,_0x4456d6(0x2f4),new _0x1bb8bf([])),_(this,'roomMembers$',this[_0x4456d6(0x2f4)][_0x4456d6(0x184)](_0xa5c8bf(Ri))),_(this,'_updateLocalCursor',_0x30190f(_0x93025=>{const _0x449464=_0x4456d6,_0x52de18={'eventID':_0x5ab9e8[_0x449464(0x178)],'data':{'unitID':this['unitID'],'memberID':this[_0x449464(0x253)]['getMemberID'](),'selection':Mt(_0x93025)}};this[_0x449464(0x253)][_0x449464(0x2a3)](_0x52de18,this[_0x449464(0x2a2)]);},Di)),(this[_0x4456d6(0x2a2)]=_0x50e383,this['_session']=_0x2fd96c,this['_injector']=_0x45b3fd,this[_0x4456d6(0x166)]=_0x54ad7a,this[_0x4456d6(0x18a)]=_0x3fcd78,this['_syncEditingCollabCursorService']=_0x370937,this[_0x4456d6(0x1ed)]=_0x4088b9,this['_univerInstanceService']=_0x55ac02,this[_0x4456d6(0x29f)]=_0x513c82);}get[_0x14c74a(0x230)](){const _0x5bcbb6=_0x14c74a;return this[_0x5bcbb6(0x164)][_0x5bcbb6(0x1a6)]();}get[_0x14c74a(0x27c)](){const _0x50632b=_0x14c74a;return this[_0x50632b(0x2f4)][_0x50632b(0x1a6)]();}[_0x14c74a(0x26a)](){const _0x499690=_0x14c74a;super['dispose'](),this[_0x499690(0x164)][_0x499690(0x31e)](new Map()),this[_0x499690(0x164)][_0x499690(0x296)](),this[_0x499690(0x2f4)]['next']([]),this['_roomMembers$'][_0x499690(0x296)]();}[_0x14c74a(0x2e5)](){const _0x265f77=_0x14c74a;this['_init']||(this[_0x265f77(0x270)]=!0x0,this[_0x265f77(0x253)]['sessionStatus$']['pipe'](_0x2c2b7e(this[_0x265f77(0x1bf)]))['subscribe'](_0x3c5d75=>{const _0x1be4ac=_0x265f77;_0x3c5d75===_0x3645c9[_0x1be4ac(0x246)]?this['_toggleOnline']():this[_0x1be4ac(0x15f)]();}),this[_0x265f77(0x253)][_0x265f77(0x28b)][_0x265f77(0x184)](_0x2c2b7e(this[_0x265f77(0x1bf)]))[_0x265f77(0x1c9)](_0x5c6949=>{const _0x4a5b01=_0x265f77,_0x8a0f65=_0x5c6949['eventID'];_0x8a0f65===_0x5ab9e8[_0x4a5b01(0x178)]&&this['_onCursorUpdate'](_0x5c6949),_0x8a0f65===_0x5ab9e8[_0x4a5b01(0x1d5)]&&this[_0x4a5b01(0x306)](_0x5c6949);}),this['disposeWithMe'](this[_0x265f77(0x29f)]['onCommandExecuted'](_0x384f4b=>{const _0x4958=_0x265f77,_0x179c8f=_0x384f4b['params'];_0x179c8f!=null&&this[_0x4958(0x2a1)]&&_0x384f4b['id']===_0x4d4726['id']&&_0x179c8f[_0x4958(0x277)]===this[_0x4958(0x2a2)]&&_0x179c8f[_0x4958(0x2e4)]===!0x1&&_0x179c8f[_0x4958(0x24f)][_0x4958(0x2f1)]>0x0&&this[_0x4958(0x2c5)](_0x179c8f[_0x4958(0x24f)]);})),this[_0x265f77(0x265)][_0x265f77(0x25b)]['pipe'](_0x2c2b7e(this['dispose$']))[_0x265f77(0x1c9)](_0xc52465=>{const _0x5972c6=_0x265f77;if((_0xc52465==null?void 0x0:_0xc52465[_0x5972c6(0x2a2)])!==this[_0x5972c6(0x2a2)])return;const _0x50dcd7={'eventID':_0x5ab9e8[_0x5972c6(0x178)],'data':_0xc52465};this[_0x5972c6(0x34f)](_0x50dcd7);}),this[_0x265f77(0x2d1)](this[_0x265f77(0x29f)]['onCommandExecuted'](_0x481911=>{const _0x1a3e55=_0x265f77;if(_0x481911[_0x1a3e55(0x2be)]==null)return;const _0x1535be=_0x481911[_0x1a3e55(0x2be)];if(_0x481911['id']!==_0x40d5e9['id']||_0x1535be['unitId']!==this[_0x1a3e55(0x2a2)])return;const _0x415b91={'id':_0x1a3e55(0x335),'params':_0x1535be},_0x1daa91=this[_0x1a3e55(0x230)];for(const [_0x2c9787,_0xb3d45e]of _0x1daa91){const _0xb25405={'id':_0x1a3e55(0x335),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0xb3d45e[_0x1a3e55(0x24f)]}},_0x277d53=this[_0x1a3e55(0x1ed)][_0x1a3e55(0x197)](_0x415b91,_0xb25405,!0x1);if(_0x145735(_0x277d53))throw _0x277d53[_0x1a3e55(0x170)];_0x1daa91['set'](_0x2c9787,{..._0xb3d45e,'ranges':_0x277d53[_0x1a3e55(0x316)][_0x1a3e55(0x2be)][_0x1a3e55(0x35a)]});}queueMicrotask(()=>{const _0x19df5f=_0x1a3e55;this[_0x19df5f(0x164)]['next'](_0x1daa91);});})));}[_0x14c74a(0x34f)](_0x1981f4){const _0xb93d5b=_0x14c74a;var _0x1a3295,_0xd4a404;const {memberID:_0x44175b,selection:_0x54462e}=_0x1981f4['data'],_0x17ac09=Oi(_0x54462e),_0x229b9f=(_0xd4a404=(_0x1a3295=this[_0xb93d5b(0x18a)]['getMember'](this[_0xb93d5b(0x2a2)],_0x44175b))==null?void 0x0:_0x1a3295[_0xb93d5b(0x1bb)])!=null?_0xd4a404:'Unknown\x20user',_0x45a244={'color':this[_0xb93d5b(0x166)][_0xb93d5b(0x2d7)](_0x44175b),'name':_0x229b9f,'ranges':_0x17ac09},_0x4c0597=this['cursorInfo'];_0x4c0597[_0xb93d5b(0x314)](_0x44175b,_0x45a244),this[_0xb93d5b(0x164)][_0xb93d5b(0x31e)](_0x4c0597);}[_0x14c74a(0x306)](_0x1cc7bb){const _0x212044=_0x14c74a,{memberID:_0xf5e263}=_0x1cc7bb[_0x212044(0x2ff)],_0x359ed1=this['cursorInfo'];_0x359ed1[_0x212044(0x290)](_0xf5e263),this[_0x212044(0x164)][_0x212044(0x31e)](_0x359ed1);}[_0x14c74a(0x160)](){const _0x2cfcc1=_0x14c74a;var _0x333de0;if(this[_0x2cfcc1(0x2a1)]=!0x0,((_0x333de0=this['_univerInstanceService'][_0x2cfcc1(0x1c7)]())==null?void 0x0:_0x333de0[_0x2cfcc1(0x20f)]())!==this[_0x2cfcc1(0x2a2)])return;const _0x402468=this['_injector'][_0x2cfcc1(0x352)](_0x18393c)[_0x2cfcc1(0x347)]();Array[_0x2cfcc1(0x27f)](_0x402468)&&_0x402468[_0x2cfcc1(0x2f1)]>0x0&&this[_0x2cfcc1(0x2c5)](_0x402468);}[_0x14c74a(0x15f)](){const _0x1aa914=_0x14c74a;this[_0x1aa914(0x2a1)]=!0x1;}};Ue=Ti([P(0x2,_0x4fff92(_0x59495a)),P(0x3,_0x4fff92(He)),P(0x4,_0x4fff92(_0x16fd64)),P(0x5,_0x4fff92(Fe)),P(0x6,_0x315634),P(0x7,_0x185030),P(0x8,_0x211890)],Ue);var Ni=Object['getOwnPropertyDescriptor'],Ui=(_0x460b1e,_0x34d7e8,_0x37cd15,_0x74fc0a)=>{const _0x13390a=_0x14c74a;for(var _0x37b8a0=_0x74fc0a>0x1?void 0x0:_0x74fc0a?Ni(_0x34d7e8,_0x37cd15):_0x34d7e8,_0x52fe32=_0x460b1e[_0x13390a(0x2f1)]-0x1,_0x40276a;_0x52fe32>=0x0;_0x52fe32--)(_0x40276a=_0x460b1e[_0x52fe32])&&(_0x37b8a0=_0x40276a(_0x37b8a0)||_0x37b8a0);return _0x37b8a0;},x=(_0x2dc028,_0x1c2932)=>(_0x44f0e9,_0x2c8069)=>_0x1c2932(_0x44f0e9,_0x2c8069,_0x2dc028);const Mi=0x12c,Li=0x64,Pi=()=>{let _0x557ed1=[],_0x252744=!0x1;return _0x4a50ff=>{const _0x59e368=_0x3130;_0x557ed1[_0x59e368(0x2b7)](_0x4a50ff),_0x252744||(_0x252744=!0x0,setTimeout(()=>{_0x557ed1['forEach'](_0x30af5e=>_0x30af5e()),_0x557ed1=[],_0x252744=!0x1;}));};};let Me=class extends _0x270ee7{constructor(_0x9bca25,_0x3d212c,_0x30fb29,_0x224528,_0x538d9f,_0x4fcaf6,_0x5f4f17,_0x489659){const _0x769882=_0x14c74a;super(),_(this,'_online',!0x1),_(this,_0x769882(0x270),!0x1),_(this,_0x769882(0x164),new _0x1bb8bf(new Map())),_(this,_0x769882(0x286),this['_cursorInfo$']['asObservable']()),_(this,_0x769882(0x2f4),new _0x1bb8bf([])),_(this,_0x769882(0x1ae),this[_0x769882(0x2f4)][_0x769882(0x184)](_0xa5c8bf(Mi))),_(this,_0x769882(0x2c5),_0x30190f((_0x2fec2f,_0x5913f2)=>{const _0x5085e3=_0x769882,_0x331f0={'eventID':_0x5ab9e8[_0x5085e3(0x178)],'data':{'unitID':this[_0x5085e3(0x2a2)],'memberID':this[_0x5085e3(0x253)][_0x5085e3(0x1ec)](),'selection':_0x65f635(_0x2fec2f,_0x5913f2['range'])}};this[_0x5085e3(0x253)][_0x5085e3(0x2a3)](_0x331f0,this[_0x5085e3(0x2a2)]);},Li)),(this['unitID']=_0x9bca25,this[_0x769882(0x253)]=_0x3d212c,this[_0x769882(0x24c)]=_0x30fb29,this[_0x769882(0x166)]=_0x224528,this['_memberService']=_0x538d9f,this[_0x769882(0x250)]=_0x4fcaf6,this['_commandService']=_0x5f4f17,this[_0x769882(0x2c3)]=_0x489659);}get[_0x14c74a(0x230)](){const _0x2b96e9=_0x14c74a;return this[_0x2b96e9(0x164)][_0x2b96e9(0x1a6)]();}get[_0x14c74a(0x27c)](){const _0x334d68=_0x14c74a;return this['_roomMembers$'][_0x334d68(0x1a6)]();}[_0x14c74a(0x26a)](){const _0x4948be=_0x14c74a;super[_0x4948be(0x26a)](),this[_0x4948be(0x164)]['next'](new Map()),this[_0x4948be(0x164)][_0x4948be(0x296)](),this[_0x4948be(0x2f4)][_0x4948be(0x31e)]([]),this[_0x4948be(0x2f4)][_0x4948be(0x296)]();}[_0x14c74a(0x2e5)](){const _0x5be270=_0x14c74a;this[_0x5be270(0x270)]||(this[_0x5be270(0x270)]=!0x0,this[_0x5be270(0x253)][_0x5be270(0x32e)][_0x5be270(0x184)](_0x2c2b7e(this[_0x5be270(0x1bf)]))[_0x5be270(0x1c9)](_0x37018b=>{const _0xd0e572=_0x5be270;_0x37018b===_0x3645c9[_0xd0e572(0x246)]?this[_0xd0e572(0x160)]():this[_0xd0e572(0x15f)]();}),this[_0x5be270(0x253)][_0x5be270(0x28b)]['pipe'](_0x2c2b7e(this[_0x5be270(0x1bf)]))[_0x5be270(0x1c9)](_0x5e0212=>{const _0x3ddbd8=_0x5be270,_0x528329=_0x5e0212[_0x3ddbd8(0x210)];_0x528329===_0x5ab9e8['UPDATE_CURSOR']&&this[_0x3ddbd8(0x34f)](_0x5e0212),_0x528329===_0x5ab9e8[_0x3ddbd8(0x1d5)]&&this[_0x3ddbd8(0x306)](_0x5e0212);}),this[_0x5be270(0x2dc)](),this[_0x5be270(0x2d1)](this[_0x5be270(0x29f)][_0x5be270(0x34c)](_0xdfb29e=>{const _0x3b9a38=_0x5be270;if(this[_0x3b9a38(0x2a1)]&&_0xdfb29e['id']===_0xff015b['id']&&_0xdfb29e['params'][_0x3b9a38(0x277)]===this[_0x3b9a38(0x2a2)]){const _0x4b7df5=_0xdfb29e['params'];this[_0x3b9a38(0x2c5)](_0x4b7df5[_0x3b9a38(0x263)],_0x4b7df5[_0x3b9a38(0x22f)][0x0]);}})));}['_onCursorUpdate'](_0x1ea2ff){const _0x46f06c=_0x14c74a;var _0x2b1b6f,_0x21147f;const {memberID:_0x2f804c,selection:_0x16c58a}=_0x1ea2ff[_0x46f06c(0x2ff)],{sheetName:_0xf3aad7,range:_0x44cf59}=_0x1eeaaf(_0x16c58a),_0x2144ed={'name':(_0x21147f=(_0x2b1b6f=this[_0x46f06c(0x18a)][_0x46f06c(0x2b5)](this[_0x46f06c(0x2a2)],_0x2f804c))==null?void 0x0:_0x2b1b6f[_0x46f06c(0x1bb)])!=null?_0x21147f:_0x46f06c(0x294),'range':this['_getMergeRange'](_0xf3aad7,_0x44cf59),'sheetID':_0xf3aad7,'color':this['_colorAssignService'][_0x46f06c(0x2d7)](_0x2f804c),'selection':_0x16c58a},_0x5cb346=this[_0x46f06c(0x230)];_0x5cb346[_0x46f06c(0x314)](_0x2f804c,_0x2144ed),this[_0x46f06c(0x164)][_0x46f06c(0x31e)](_0x5cb346);}[_0x14c74a(0x306)](_0x38ac1c){const _0x2d3c3e=_0x14c74a,{memberID:_0x2ca9ff}=_0x38ac1c[_0x2d3c3e(0x2ff)],_0x5b332f=this['cursorInfo'];_0x5b332f['delete'](_0x2ca9ff),this[_0x2d3c3e(0x164)][_0x2d3c3e(0x31e)](_0x5b332f);}['_getMergeRange'](_0x157667,_0x1bb42f){const _0x40c448=_0x14c74a;var _0x1b4726,_0x34303d;const _0x29d254=(_0x34303d=(_0x1b4726=this[_0x40c448(0x250)][_0x40c448(0x2e3)](this['unitID']))==null?void 0x0:_0x1b4726[_0x40c448(0x25c)](_0x157667))==null?void 0x0:_0x34303d[_0x40c448(0x340)]();return(_0x29d254==null?void 0x0:_0x29d254['find'](_0x1cf116=>_0x1b1299['contains'](_0x1cf116,_0x1bb42f)))||_0x1bb42f;}[_0x14c74a(0x2dc)](){const _0x4cae49=_0x14c74a,_0x23753a=new _0x47f4a6(),_0x54b535=Pi(),_0x10d175=()=>{const _0x2bc7e6=_0x3130;_0x23753a[_0x2bc7e6(0x26a)]();const _0x56b69a=(_0x397c19,_0x4590e1,_0x347840,_0x5f2371)=>{const _0x313d27=_0x2bc7e6;let _0x4bdf85=[];switch(_0x397c19['id']){case _0x5b3259[_0x313d27(0x23f)]:{_0x4bdf85=_0xafd835(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x220)]:{_0x4bdf85=_0x45a3ca(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x207)]:{_0x4bdf85=_0x304b25(_0x397c19,_0x5f2371);break;}case _0x5b3259['InsertRangeMoveDownCommandId']:{_0x4bdf85=_0x14d53a(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x15b)]:{_0x4bdf85=_0x52829e(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x1ee)]:{_0x4bdf85=_0x476616(_0x397c19,_0x5f2371);break;}case _0x5b3259['MoveRangeCommandId']:{_0x4bdf85=_0x3e1128(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x30e)]:{_0x4bdf85=_0x5a28d0(_0x397c19,_0x5f2371);break;}case _0x5b3259[_0x313d27(0x2df)]:{_0x4bdf85=_0x39bf34(_0x397c19,_0x5f2371);break;}}const _0x3f9222=_0x4ada95(_0x4bdf85,_0x5f2371),_0x5b64ea=this[_0x313d27(0x230)][_0x313d27(0x352)](_0x4590e1);if(_0x5b64ea&&_0x3f9222){const _0x359c55={..._0x5b64ea,'range':_0x3f9222};this[_0x313d27(0x230)][_0x313d27(0x314)](_0x4590e1,_0x359c55),_0x54b535(()=>{const _0x48f9db=_0x313d27,_0x2826b2=this['_refRangeService']['registerRefRange'](_0x3f9222,_0x17ea31=>(_0x2826b2[_0x48f9db(0x26a)](),_0x56b69a(_0x17ea31,_0x4590e1,_0x347840,_0x3f9222)));_0x23753a[_0x48f9db(0x356)](_0x2826b2);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2bc7e6(0x280)]((_0x203493,_0x4d1640)=>{const _0xd9e34f=_0x2bc7e6,{range:_0x972cec,sheetID:_0x30978a}=_0x203493,_0xa983ae=this[_0xd9e34f(0x2c3)][_0xd9e34f(0x17b)](_0x972cec,_0x143582=>(_0xa983ae[_0xd9e34f(0x26a)](),_0x56b69a(_0x143582,_0x4d1640,_0x30978a,_0x972cec)));_0x23753a[_0xd9e34f(0x356)](_0xa983ae);});};this[_0x4cae49(0x2d1)](_0x1799ad(this['_cursorInfo$'][_0x4cae49(0x1c9)](()=>{_0x10d175();})));}[_0x14c74a(0x160)](){const _0x3fcfd3=_0x14c74a;var _0x8d060b,_0x17deb3;if(this[_0x3fcfd3(0x2a1)]=!0x0,((_0x8d060b=this['_univerInstanceService'][_0x3fcfd3(0x1c7)]())==null?void 0x0:_0x8d060b[_0x3fcfd3(0x20f)]())!==this[_0x3fcfd3(0x2a2)])return;const _0x4f1f9e=(_0x17deb3=this[_0x3fcfd3(0x24c)]['get'](_0xb3706c)['getCurrentSelections']())==null?void 0x0:_0x17deb3[0x0],_0x3d41fb=this[_0x3fcfd3(0x250)][_0x3fcfd3(0x2ea)](_0x555e27[_0x3fcfd3(0x208)])[_0x3fcfd3(0x304)]();_0x4f1f9e&&_0x3d41fb&&this[_0x3fcfd3(0x2c5)](_0x3d41fb['getSheetId'](),_0x4f1f9e);}[_0x14c74a(0x15f)](){this['_online']=!0x1;}};Me=Ui([x(0x2,_0x4fff92(_0x59495a)),x(0x3,_0x4fff92(He)),x(0x4,_0x4fff92(_0x16fd64)),x(0x5,_0x185030),x(0x6,_0x211890),x(0x7,_0x4fff92(_0x533725))],Me);var wi=Object[_0x14c74a(0x192)],Ai=(_0x3024d6,_0x135bdb,_0xd50eb3,_0x1cfba1)=>{const _0x33de63=_0x14c74a;for(var _0x505293=_0x1cfba1>0x1?void 0x0:_0x1cfba1?wi(_0x135bdb,_0xd50eb3):_0x135bdb,_0x597967=_0x3024d6[_0x33de63(0x2f1)]-0x1,_0x40fb6f;_0x597967>=0x0;_0x597967--)(_0x40fb6f=_0x3024d6[_0x597967])&&(_0x505293=_0x40fb6f(_0x505293)||_0x505293);return _0x505293;},me=(_0x457cbe,_0x3ee8f9)=>(_0x51a02c,_0x5e2f1c)=>_0x3ee8f9(_0x51a02c,_0x5e2f1c,_0x457cbe);let F=class extends _0x270ee7{constructor(_0x2f5620,_0x5e2d9d,_0x1dfdee){const _0x53e211=_0x14c74a;super(),_(this,_0x53e211(0x23a),new Map()),_(this,_0x53e211(0x202),new _0x4e6786()),(this['_univerInstanceService']=_0x2f5620,this[_0x53e211(0x24c)]=_0x5e2d9d,this['_collabSessionService']=_0x1dfdee,this[_0x53e211(0x270)]());}[_0x14c74a(0x26a)](){const _0x45cea5=_0x14c74a;super[_0x45cea5(0x26a)](),this[_0x45cea5(0x202)][_0x45cea5(0x296)](),this[_0x45cea5(0x23a)][_0x45cea5(0x280)](_0xa89c5c=>_0xa89c5c['dispose']());}[_0x14c74a(0x273)](_0xa9a511){const _0x552ab5=_0x14c74a;return this[_0x552ab5(0x23a)]['has'](_0xa9a511)?this[_0x552ab5(0x23a)][_0x552ab5(0x352)](_0xa9a511)[_0x552ab5(0x286)]:this['_entityInit$'][_0x552ab5(0x184)](_0x246502(_0x511d46=>_0x511d46[_0x552ab5(0x2a2)]===_0xa9a511),_0x1e2746(_0x1168d0=>_0x1168d0[_0x552ab5(0x286)]));}[_0x14c74a(0x270)](){const _0x27b9e5=_0x14c74a;this[_0x27b9e5(0x250)][_0x27b9e5(0x1da)](_0x555e27[_0x27b9e5(0x208)])[_0x27b9e5(0x184)](_0x2c2b7e(this[_0x27b9e5(0x1bf)]))['subscribe'](async _0x1a14d8=>{const _0x5dc897=_0x27b9e5,_0x2e1c6c=_0x1a14d8[_0x5dc897(0x20f)](),_0x3e8164=await this[_0x5dc897(0x243)](_0x2e1c6c);this[_0x5dc897(0x202)][_0x5dc897(0x31e)](_0x3e8164),this['_entities']['set'](_0x2e1c6c,_0x3e8164);}),this['_univerInstanceService'][_0x27b9e5(0x1da)](_0x555e27['UNIVER_DOC'])[_0x27b9e5(0x184)](_0x2c2b7e(this['dispose$']))[_0x27b9e5(0x184)](_0x246502(_0x52630f=>!_0x52630f['getUnitId']()['startsWith']('__')))[_0x27b9e5(0x1c9)](async _0x10c6bc=>{const _0x2713d3=_0x27b9e5,_0x200b1f=_0x10c6bc[_0x2713d3(0x20f)](),_0x375dbe=await this[_0x2713d3(0x1d7)](_0x200b1f);this[_0x2713d3(0x202)][_0x2713d3(0x31e)](_0x375dbe),this[_0x2713d3(0x23a)][_0x2713d3(0x314)](_0x200b1f,_0x375dbe);}),_0x579586(this[_0x27b9e5(0x250)][_0x27b9e5(0x333)](_0x555e27[_0x27b9e5(0x1b3)]),this[_0x27b9e5(0x250)][_0x27b9e5(0x333)](_0x555e27['UNIVER_SHEET']))['pipe'](_0x2c2b7e(this[_0x27b9e5(0x1bf)]))[_0x27b9e5(0x1c9)](_0x28256f=>{const _0x2c4435=_0x27b9e5,_0x5843b9=_0x28256f[_0x2c4435(0x20f)](),_0x583273=this['_entities']['get'](_0x5843b9);_0x583273&&(_0x583273[_0x2c4435(0x26a)](),this[_0x2c4435(0x23a)][_0x2c4435(0x290)](_0x5843b9));});}async[_0x14c74a(0x243)](_0x15c320){const _0x11d9d5=_0x14c74a,_0x471d25=await this[_0x11d9d5(0x1e8)]['requireSession'](_0x15c320),_0x3224ed=this['_injector'][_0x11d9d5(0x1b8)](Me,_0x15c320,_0x471d25);return _0x3224ed[_0x11d9d5(0x2e5)](),_0x3224ed;}async[_0x14c74a(0x1d7)](_0x1d640e){const _0x1d707a=_0x14c74a,_0x21e772=await this[_0x1d707a(0x1e8)]['requireSession'](_0x1d640e),_0x55fc85=this[_0x1d707a(0x24c)][_0x1d707a(0x1b8)](Ue,_0x1d640e,_0x21e772);return _0x55fc85[_0x1d707a(0x2e5)](),_0x55fc85;}};F=Ai([me(0x0,_0x185030),me(0x1,_0x4fff92(_0x59495a)),me(0x2,_0x4fff92(_0xcab9c2))],F);const J=0x14,Qe=0xc8,Ie=0x4,yi=0x5;function $i(_0x2862e6,_0x1d08d5){const _0x228165=_0x14c74a;let {radius:_0x25ecad,width:_0x2e923e,height:_0x5db661}=_0x1d08d5;_0x25ecad=_0x25ecad!=null?_0x25ecad:0x0,_0x2e923e=_0x2e923e!=null?_0x2e923e:0x1e,_0x5db661=_0x5db661!=null?_0x5db661:0x1e;let _0x53d696=0x0,_0x2061de=0x0,_0x5f1b55=0x0;_0x53d696=_0x2061de=_0x5f1b55=Math[_0x228165(0x1aa)](_0x25ecad,_0x2e923e/0x2,_0x5db661/0x2),_0x2862e6[_0x228165(0x1e2)](),_0x2862e6[_0x228165(0x348)](_0x53d696,0x0),_0x2862e6['lineTo'](_0x2e923e-_0x2061de,0x0),_0x2862e6[_0x228165(0x336)](_0x2e923e-_0x2061de,_0x2061de,_0x2061de,Math['PI']*0x3/0x2,0x0,!0x1),_0x2862e6[_0x228165(0x1e4)](_0x2e923e,_0x5db661-_0x5f1b55),_0x2862e6['arc'](_0x2e923e-_0x5f1b55,_0x5db661-_0x5f1b55,_0x5f1b55,0x0,Math['PI']/0x2,!0x1),_0x2862e6['lineTo'](0x0,_0x5db661),_0x2862e6[_0x228165(0x1e4)](0x0,_0x53d696),_0x2862e6[_0x228165(0x336)](_0x53d696,_0x53d696,_0x53d696,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2862e6['closePath'](),_0x1d08d5[_0x228165(0x329)]&&(_0x2862e6[_0x228165(0x2da)](),_0x2862e6[_0x228165(0x177)]=_0x1d08d5[_0x228165(0x329)],_0x1d08d5[_0x228165(0x1b0)]===_0x228165(0x2f3)?_0x2862e6[_0x228165(0x329)](_0x228165(0x2f3)):_0x2862e6['fill'](),_0x2862e6[_0x228165(0x2ef)]());}class ue extends _0x633c93{constructor(_0x51a79d,_0x4d6f6f){const _0x4524fd=_0x14c74a;super(_0x51a79d,_0x4d6f6f),_(this,'color'),_(this,'text'),(this[_0x4524fd(0x331)]=_0x4d6f6f==null?void 0x0:_0x4d6f6f[_0x4524fd(0x331)],this[_0x4524fd(0x225)]=_0x4d6f6f==null?void 0x0:_0x4d6f6f[_0x4524fd(0x225)]);}static[_0x14c74a(0x322)](_0x240549,_0xf44c39){const _0x38eb42=_0x14c74a,{text:_0x40cace,color:_0x4b22e5}=_0xf44c39;_0x240549[_0x38eb42(0x2da)](),_0x240549['font']=_0x38eb42(0x285);const _0x6a0fb6=_0x240549[_0x38eb42(0x257)](_0x40cace)[_0x38eb42(0x2a4)],_0x4926eb=Math['min'](_0x6a0fb6+0x2*Ie,Qe);$i(_0x240549,{'height':J,'radius':0x4,'width':_0x4926eb,'fill':_0x4b22e5}),_0x240549[_0x38eb42(0x177)]=_0x38eb42(0x17c);const _0x184fee=Ie,_0x5ac374=J-yi,_0xf3ccf1=Qe-0x2*Ie;if(_0x6a0fb6>_0xf3ccf1){let _0x4c57fd='',_0x315f29=0x0;for(const _0x5855d2 of _0x40cace){const _0x22a8da=_0x240549[_0x38eb42(0x257)](_0x5855d2)[_0x38eb42(0x2a4)];if(_0x315f29+_0x22a8da<=_0xf3ccf1-_0x240549[_0x38eb42(0x257)](_0x38eb42(0x169))[_0x38eb42(0x2a4)])_0x4c57fd+=_0x5855d2,_0x315f29+=_0x22a8da;else{_0x4c57fd+=_0x38eb42(0x169);break;}}_0x240549[_0x38eb42(0x1be)](_0x4c57fd,_0x184fee,_0x5ac374);}else _0x240549[_0x38eb42(0x1be)](_0x40cace,_0x184fee,_0x5ac374);_0x240549[_0x38eb42(0x2ef)]();}[_0x14c74a(0x180)](_0x1a9948){ue['drawWith'](_0x1a9948,this);}}const ve=_0x14c74a(0x251),xi='collab-text-range-',Bi=_0x14c74a(0x2f8),K=0x6,ki=1.5,ge=0x4,Hi=1.5,Fi=_0x14c74a(0x30d);class qe{constructor(_0x5efad1,_0x4e0391,_0x34ae4d,_0x2fb0f6){const _0x1e22fa=_0x14c74a;_(this,_0x1e22fa(0x2c0),[]),_(this,_0x1e22fa(0x194),null),_(this,_0x1e22fa(0x1c8),null),_(this,_0x1e22fa(0x313),null),_(this,_0x1e22fa(0x191),null),_(this,_0x1e22fa(0x19f),null),(this[_0x1e22fa(0x19c)]=_0x5efad1,this[_0x1e22fa(0x269)]=_0x4e0391,this[_0x1e22fa(0x15d)]=_0x34ae4d,this['_document']=_0x2fb0f6,this['_render']());}set[_0x14c74a(0x25f)](_0x1808dc){const _0x5e993d=_0x14c74a;_0x1808dc?(this['_anchorDot']&&this['_anchorDot'][_0x5e993d(0x1cc)](),this[_0x5e993d(0x1c8)]&&this[_0x5e993d(0x1c8)]['show']()):(this[_0x5e993d(0x313)]&&this[_0x5e993d(0x313)][_0x5e993d(0x1ff)](),this[_0x5e993d(0x1c8)]&&this['_textBubble'][_0x5e993d(0x1cc)]());}[_0x14c74a(0x26a)](){const _0x5ada9f=_0x14c74a;for(const _0xedc70f of this[_0x5ada9f(0x2c0)])_0xedc70f['dispose']();this[_0x5ada9f(0x1c8)]&&this[_0x5ada9f(0x1c8)][_0x5ada9f(0x26a)](),this[_0x5ada9f(0x313)]&&this['_anchorDot'][_0x5ada9f(0x26a)](),this['_anchor']&&this[_0x5ada9f(0x194)]['dispose'](),this[_0x5ada9f(0x19f)]&&this[_0x5ada9f(0x19f)]();}['_render'](){const _0x49e206=_0x14c74a;var _0x21d0e6;const {_docSkeleton:_0x223c3b,_document:_0x1b2627}=this,{color:_0x14d45e,name:_0x170387,ranges:_0xde8059}=this['_cursor'],_0x5205db=_0x1b2627['getOffsetConfig'](),{docsLeft:_0x43e0fe,docsTop:_0x4e7b22}=_0x5205db,_0x17d65f=new _0x143235(_0x5205db,_0x223c3b);for(const {startOffset:_0x3237fb,endOffset:_0x13df56,rangeType:_0x5110e4,segmentId:_0xd1848d,segmentPage:_0x41c38a,collapsed:_0x1cab4e,isActive:_0x1f0ff9}of _0xde8059){const _0x378895=_0x223c3b[_0x49e206(0x2e1)](_0x3237fb,!0x0,_0xd1848d,_0x41c38a);let _0x5fc493=_0x223c3b[_0x49e206(0x2e1)](_0x13df56,!0x0,_0xd1848d,_0x41c38a);if(_0x5fc493==null&&(_0x5fc493=_0x223c3b[_0x49e206(0x2e1)](_0x13df56-0x1,!0x1,_0xd1848d,_0x41c38a)),_0x1f0ff9){const {contentBoxPointGroup:_0x470f76}=_0x17d65f['getRangePointData'](_0x5fc493,_0x5fc493);if(_0x470f76[_0x49e206(0x2f1)]===0x0)continue;this[_0x49e206(0x1a4)](_0x14d45e,_0x470f76,_0x43e0fe,_0x4e7b22,_0x170387),this[_0x49e206(0x19f)]=this[_0x49e206(0x357)]();}if(_0x378895&&_0x5fc493){if(_0x5110e4===_0xc89d24['RECT']){const _0x1deceb=new _0x11a3f2(_0x5205db,_0x223c3b),{pointGroup:_0x528251}=(_0x21d0e6=_0x1deceb[_0x49e206(0x18f)](_0x378895,_0x5fc493))!=null?_0x21d0e6:{};if(_0x528251==null||_0x528251[_0x49e206(0x2f1)]===0x0)continue;this[_0x49e206(0x233)](_0x14d45e,_0x528251,_0x43e0fe,_0x4e7b22);}else{if(!_0x1cab4e){const {borderBoxPointGroup:_0x7b6aa}=_0x17d65f[_0x49e206(0x18f)](_0x378895,_0x5fc493);if(_0x7b6aa[_0x49e206(0x2f1)]===0x0)continue;this[_0x49e206(0x171)](_0x14d45e,_0x7b6aa,_0x43e0fe,_0x4e7b22);}}}}}[_0x14c74a(0x1a4)](_0x508baa,_0x558ac8,_0x5213d0,_0x25f3ad,_0x1efaba){const _0x5bce7f=_0x14c74a,_0x271108=this[_0x5bce7f(0x201)](_0x558ac8),{left:_0x20becf,top:_0x345884,height:_0x5ba02d}=_0x271108,_0x2c291b=this[_0x5bce7f(0x2b1)](),_0x16b18b=Hi/_0x2c291b,_0x345057=new _0x3e3c5c(ve+_0x4c97f0(K),{'left':_0x20becf+_0x5213d0-_0x16b18b,'top':_0x345884+_0x25f3ad,'height':_0x5ba02d,'width':ki,'fill':_0x508baa||_0xcb5b1c(_0x5138dd['black'],0x0),'strokeWidth':_0x16b18b,'stroke':Fi,'evented':!0x0});this['_anchor']=_0x345057,this[_0x5bce7f(0x269)][_0x5bce7f(0x334)](_0x345057,_0x34bfba);const _0x3d58f8=new _0x3e3c5c(ve+_0x4c97f0(K),{'left':_0x20becf+_0x5213d0-_0x16b18b,'top':_0x345884+_0x25f3ad-ge/0x2,'height':ge,'width':ge,'fill':_0x508baa||_0xcb5b1c(_0x5138dd[_0x5bce7f(0x2af)],0x0),'strokeWidth':0x0,'stroke':_0x508baa||_0xcb5b1c(_0x5138dd[_0x5bce7f(0x2af)],0x0),'evented':!0x1});this[_0x5bce7f(0x313)]=_0x3d58f8,this[_0x5bce7f(0x269)][_0x5bce7f(0x334)](_0x3d58f8,_0x34bfba);const _0x5765d7=new ue(ve+_0x4c97f0(K),{'left':_0x20becf+_0x5213d0-_0x16b18b,'top':_0x345884+_0x25f3ad-J,'text':_0x1efaba,'color':_0x508baa});this[_0x5bce7f(0x1c8)]=_0x5765d7,this[_0x5bce7f(0x269)][_0x5bce7f(0x334)](_0x5765d7,_0x34bfba),this[_0x5bce7f(0x25f)]=!0x1;}[_0x14c74a(0x357)](){const _0x414cd3=_0x14c74a,_0x2097e2=this[_0x414cd3(0x194)]['onPointerEnter$'][_0x414cd3(0x1c0)](()=>{const _0x286da2=_0x414cd3;this[_0x286da2(0x25f)]=!0x0;}),_0x520558=this[_0x414cd3(0x194)][_0x414cd3(0x28c)]['subscribeEvent'](()=>{const _0x5e7f41=_0x414cd3;this[_0x5e7f41(0x191)]&&clearTimeout(this[_0x5e7f41(0x191)]),this[_0x5e7f41(0x191)]=setTimeout(()=>{const _0x1c772b=_0x5e7f41;this[_0x1c772b(0x25f)]=!0x1;},0x7d0);});return()=>{const _0x4b7e94=_0x414cd3;_0x2097e2[_0x4b7e94(0x2b6)](),_0x520558['unsubscribe']();};}[_0x14c74a(0x171)](_0x2826a0,_0xb80af2,_0x26db25,_0x12139c){const _0x2eddb1=_0x14c74a,_0x4a9107=new _0x47f5f9(_0x2826a0)[_0x2eddb1(0x34e)](0.2)[_0x2eddb1(0x1a2)](),_0x5aed38=new _0x4fa96d(xi+_0x4c97f0(K),{'pointsGroup':_0xb80af2,'fill':_0x4a9107||_0xcb5b1c(_0x5138dd[_0x2eddb1(0x2af)],0.2),'left':_0x26db25,'top':_0x12139c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2eddb1(0x2c0)]['push'](_0x5aed38),this[_0x2eddb1(0x269)]['addObject'](_0x5aed38,_0x34bfba);}[_0x14c74a(0x233)](_0x24de8c,_0x985a6a,_0x3e17e4,_0x2cba7f){const _0x6fe04f=_0x14c74a,_0x45c67d=new _0x47f5f9(_0x24de8c)['setAlpha'](0.2)[_0x6fe04f(0x1a2)](),_0x524b93=new _0x4fa96d(Bi+_0x4c97f0(K),{'pointsGroup':_0x985a6a,'fill':_0x45c67d||_0xcb5b1c(_0x5138dd['black'],0.2),'left':_0x3e17e4,'top':_0x2cba7f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x6fe04f(0x2c0)]['push'](_0x524b93),this[_0x6fe04f(0x269)][_0x6fe04f(0x334)](_0x524b93,_0x34bfba);}[_0x14c74a(0x201)](_0x43feac){const _0x39115b=_0x43feac[0x0],_0x4bc11a=_0x39115b[0x0],_0x23d311=_0x39115b[0x2],{x:_0x54eedd,y:_0x1908ec}=_0x4bc11a,{x:_0x2941a0,y:_0x4f5745}=_0x23d311;return{'left':_0x54eedd,'top':_0x1908ec,'width':_0x2941a0-_0x54eedd,'height':_0x4f5745-_0x1908ec};}[_0x14c74a(0x2b1)](){const _0x15f745=_0x14c74a,{scaleX:_0x58af7c,scaleY:_0x1318e1}=this[_0x15f745(0x269)]['getAncestorScale']();return Math[_0x15f745(0x239)](_0x58af7c,_0x1318e1);}}var Yi=Object[_0x14c74a(0x192)],ji=(_0x3c93e3,_0x206645,_0x4843b4,_0x59b8de)=>{for(var _0x12a840=_0x59b8de>0x1?void 0x0:_0x59b8de?Yi(_0x206645,_0x4843b4):_0x206645,_0x6bd0dc=_0x3c93e3['length']-0x1,_0x2c0d71;_0x6bd0dc>=0x0;_0x6bd0dc--)(_0x2c0d71=_0x3c93e3[_0x6bd0dc])&&(_0x12a840=_0x2c0d71(_0x12a840)||_0x12a840);return _0x12a840;},ee=(_0x10a571,_0x258bd8)=>(_0x2d7b1e,_0x20acca)=>_0x258bd8(_0x2d7b1e,_0x20acca,_0x10a571);let Le=class extends _0x270ee7{constructor(_0x554006,_0xe6efbc,_0x5ed6b8,_0x2cde8c,_0x53aa9a){const _0x34811f=_0x14c74a;super(),_(this,'_cursorShapes',[]),_(this,_0x34811f(0x29d),[]),(this[_0x34811f(0x215)]=_0x554006,this[_0x34811f(0x30b)]=_0xe6efbc,this[_0x34811f(0x29a)]=_0x5ed6b8,this['_commandService']=_0x2cde8c,this['_themeService']=_0x53aa9a,this['_init']());}[_0x14c74a(0x270)](){const _0x23d0e0=_0x14c74a,_0x995b0f=this[_0x23d0e0(0x215)][_0x23d0e0(0x277)],_0x2477c9=this[_0x23d0e0(0x30b)];this[_0x23d0e0(0x2d1)](_0x1a0445([this['_collabCursorController'][_0x23d0e0(0x273)](_0x995b0f),this[_0x23d0e0(0x161)][_0x23d0e0(0x185)]])[_0x23d0e0(0x184)](_0x47d210(([_0x500fbb,_0xc18b10])=>({'skeleton':_0x2477c9[_0x23d0e0(0x1b4)](),'cursors':[..._0x500fbb[_0x23d0e0(0x2b9)]()]['flatMap'](_0x5d2803=>({..._0x5d2803,'color':this[_0x23d0e0(0x161)][_0x23d0e0(0x18d)](_0x5d2803['color'])}))})))[_0x23d0e0(0x1c9)](_0x4ffc4a=>{const _0x100b18=_0x23d0e0;if(this['_removeCollabCursors'](),_0x4ffc4a){const {skeleton:_0x57a9bb,cursors:_0x22dd70}=_0x4ffc4a;this[_0x100b18(0x2cc)](_0x57a9bb,_0x22dd70);}})),this['_initResize'](),this[_0x23d0e0(0x332)]();}[_0x14c74a(0x2cc)](_0x3a66db,_0x4de2c2){const _0x369c1c=_0x14c74a,{scene:_0x3ae8e9,mainComponent:_0x47090f}=this[_0x369c1c(0x215)],_0x31f7ac=_0x4de2c2['map'](_0x483898=>new qe(_0x483898,_0x3ae8e9,_0x3a66db,_0x47090f));this[_0x369c1c(0x1b6)]=_0x31f7ac,this[_0x369c1c(0x29d)]=_0x4de2c2;}[_0x14c74a(0x2a5)](){const _0x343a55=_0x14c74a;this[_0x343a55(0x18e)]();const {scene:_0x26f5bd,mainComponent:_0x10eaf3}=this[_0x343a55(0x215)],_0x5c3703=this['_docSkeletonManagerService'][_0x343a55(0x1b4)](),_0x2e5718=this[_0x343a55(0x29d)][_0x343a55(0x205)](_0x283fff=>new qe(_0x283fff,_0x26f5bd,_0x5c3703,_0x10eaf3));this[_0x343a55(0x1b6)]=_0x2e5718;}[_0x14c74a(0x18e)](){const _0x54c260=_0x14c74a;this[_0x54c260(0x1b6)][_0x54c260(0x280)](_0x327a2d=>_0x327a2d[_0x54c260(0x26a)]()),this[_0x54c260(0x1b6)]=[];}[_0x14c74a(0x332)](){const _0x4b09a3=_0x14c74a,_0x2def14=[_0x4a5ce9['id']];this[_0x4b09a3(0x2d1)](this[_0x4b09a3(0x29f)][_0x4b09a3(0x34c)](_0x154d79=>{const _0x152864=_0x4b09a3;_0x2def14['includes'](_0x154d79['id'])&&_0x154d79['params'][_0x152864(0x277)]===this[_0x152864(0x215)][_0x152864(0x277)]&&this[_0x152864(0x2a5)]();}));}[_0x14c74a(0x339)](){const _0x51070b=_0x14c74a;this[_0x51070b(0x2d1)](_0x59105d(this[_0x51070b(0x215)][_0x51070b(0x2e8)]['onTransformChange$'])['pipe'](_0x4bda57(_0x2fa805=>_0x2fa805[_0x51070b(0x1eb)]===_0x8d714e[_0x51070b(0x198)]),_0x4de0c1(0x10))[_0x51070b(0x1c9)](()=>{this['_refreshCollabCursors']();}));}};Le=ji([ee(0x1,_0x4fff92(_0x5d68a9)),ee(0x2,_0x4fff92(F)),ee(0x3,_0x211890),ee(0x4,_0x4fff92(_0x3ea1cc))],Le);const Vi=0x1,Wi=1.5;class Xi extends _0x633c93{constructor(_0x1bfa0a,_0x5c53f6){const _0x29f4ce=_0x14c74a;super(_0x1bfa0a,_0x5c53f6),_(this,_0x29f4ce(0x1d3)),_(this,_0x29f4ce(0x20a),!0x1),_(this,_0x29f4ce(0x2c9)),_(this,_0x29f4ce(0x31b),''),_(this,'_labelPosition',_0x29f4ce(0x2d3)),_(this,_0x29f4ce(0x2f0)),(_0x5c53f6&&this[_0x29f4ce(0x2d8)](_0x5c53f6),this[_0x29f4ce(0x2c4)][_0x29f4ce(0x1c0)](()=>this[_0x29f4ce(0x2d8)]({'hovered':!0x0})),this[_0x29f4ce(0x28c)][_0x29f4ce(0x1c0)](()=>this[_0x29f4ce(0x2d8)]({'hovered':!0x1})));}[_0x14c74a(0x2d8)](_0x592e84){const _0x51cc73=_0x14c74a;var _0x290d0a,_0x59d5c1,_0x4863b2,_0x22cbc1,_0x5a40b3,_0x2eb454;this['_color']=(_0x290d0a=_0x592e84[_0x51cc73(0x331)])!=null?_0x290d0a:this[_0x51cc73(0x1d3)],this['_hovered']=(_0x59d5c1=_0x592e84[_0x51cc73(0x328)])!=null?_0x59d5c1:this[_0x51cc73(0x20a)],this['_range']=(_0x4863b2=_0x592e84[_0x51cc73(0x23d)])!=null?_0x4863b2:this[_0x51cc73(0x2c9)],this[_0x51cc73(0x31b)]=(_0x22cbc1=_0x592e84[_0x51cc73(0x1bb)])!=null?_0x22cbc1:this['_name'],this['_labelPosition']=(_0x5a40b3=_0x592e84[_0x51cc73(0x255)])!=null?_0x5a40b3:this[_0x51cc73(0x22b)],this['_backgroundColor']=(_0x2eb454=_0x592e84[_0x51cc73(0x323)])!=null?_0x2eb454:this[_0x51cc73(0x2f0)],this[_0x51cc73(0x24b)]({'width':_0x592e84['width'],'height':_0x592e84[_0x51cc73(0x1f5)]});}['onMouseMove'](_0x1e3c45){const _0x177aa3=_0x14c74a,{row:_0x3ce37e,column:_0x2fa37c}=_0x1e3c45;if(_0x3ce37e>=this[_0x177aa3(0x2c9)][_0x177aa3(0x249)]&&_0x3ce37e<=this[_0x177aa3(0x2c9)]['endRow']&&_0x2fa37c>=this[_0x177aa3(0x2c9)]['startColumn']&&_0x2fa37c<=this['_range'][_0x177aa3(0x15c)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x177aa3(0x2d8)]({'hovered':!0x1});}[_0x14c74a(0x1fc)](_0x1b05b8){return!0x1;}[_0x14c74a(0x180)](_0x1ce9d5){const _0x1ae538=_0x14c74a;_0x3e3c5c[_0x1ae538(0x322)](_0x1ce9d5,{'width':this[_0x1ae538(0x2a4)],'height':this[_0x1ae538(0x1f5)],'strokeWidth':Wi,'stroke':this[_0x1ae538(0x1d3)],'evented':!0x1,'fill':this[_0x1ae538(0x2f0)]}),this['_hovered']&&(_0x1ce9d5[_0x1ae538(0x2da)](),_0x1ce9d5[_0x1ae538(0x24a)](0x1,0x0,0x0,0x1,this[_0x1ae538(0x2a4)],this[_0x1ae538(0x22b)]===_0x1ae538(0x1a9)?0x0:-J),ue[_0x1ae538(0x322)](_0x1ce9d5,{'text':this[_0x1ae538(0x31b)],'color':this[_0x1ae538(0x1d3)]}),_0x1ce9d5[_0x1ae538(0x2ef)]());}}var Gi=Object[_0x14c74a(0x192)],Ki=(_0x575ed6,_0x3e0d77,_0x219294,_0x1cc26b)=>{const _0x11a71c=_0x14c74a;for(var _0x10523e=_0x1cc26b>0x1?void 0x0:_0x1cc26b?Gi(_0x3e0d77,_0x219294):_0x3e0d77,_0x35bf02=_0x575ed6[_0x11a71c(0x2f1)]-0x1,_0x465379;_0x35bf02>=0x0;_0x35bf02--)(_0x465379=_0x575ed6[_0x35bf02])&&(_0x10523e=_0x465379(_0x10523e)||_0x10523e);return _0x10523e;},pe=(_0x1157e3,_0x7d7fdb)=>(_0x1f61b6,_0x5a65cc)=>_0x7d7fdb(_0x1f61b6,_0x5a65cc,_0x1157e3);const zi=0x1389;let Pe=class extends _0x270ee7{constructor(_0x218a64,_0x515843,_0x19fa34,_0x21abe0){const _0x417722=_0x14c74a;super(),_(this,_0x417722(0x29d),new Set()),_(this,_0x417722(0x16f),null),(this[_0x417722(0x215)]=_0x218a64,this['_sheetSkeletonManagerService']=_0x515843,this[_0x417722(0x29a)]=_0x19fa34,this['_themeService']=_0x21abe0,this[_0x417722(0x270)]());}[_0x14c74a(0x270)](){const _0x52e06c=_0x14c74a;this[_0x52e06c(0x195)][_0x52e06c(0x1f7)][_0x52e06c(0x184)](_0x4aa1ef(this['dispose$']),_0x2f7498(_0x20b1b6=>{const _0x1fb111=_0x52e06c;if(_0x20b1b6){const _0x3735fa=_0x20b1b6[_0x1fb111(0x33b)];return _0x1a0445(this[_0x1fb111(0x29a)][_0x1fb111(0x273)](this['_context'][_0x1fb111(0x277)]),this[_0x1fb111(0x161)][_0x1fb111(0x185)])[_0x1fb111(0x184)](_0x47d210(([_0x49d5fd,_0x3984ae])=>{const _0x47b104=_0x1fb111,_0x5dc4c7=new Map();return _0x49d5fd[_0x47b104(0x280)]((_0x2d7f02,_0x4bfb6c)=>{const _0xd2ca90=_0x47b104;if(_0x2d7f02[_0xd2ca90(0x167)]===_0x3735fa){const _0xac97fc={..._0x2d7f02};_0xac97fc[_0xd2ca90(0x331)]=this[_0xd2ca90(0x161)][_0xd2ca90(0x18d)](_0x2d7f02[_0xd2ca90(0x331)]),_0x5dc4c7['set'](_0x4bfb6c,_0xac97fc);}}),{'skeleton':_0x20b1b6,'cursors':_0x5dc4c7};}));}return _0xfd46f5({'skeleton':null,'cursors':new Map()});}))[_0x52e06c(0x1c9)](({skeleton:_0x2baa0b,cursors:_0x3748f3})=>{const _0x2d0546=_0x52e06c;this[_0x2d0546(0x18e)](),_0x2baa0b&&this[_0x2d0546(0x2cc)](_0x2baa0b,_0x3748f3);}),this[_0x52e06c(0x195)]['currentSkeleton$'][_0x52e06c(0x1c9)](_0x9f762f=>{const _0x23f34d=_0x52e06c;if(_0x9f762f==null)return;const {skeleton:_0x1e75c3}=_0x9f762f,{scene:_0x3d77eb}=this[_0x23f34d(0x215)];_0x3d77eb[_0x23f34d(0x311)][_0x23f34d(0x1c0)](_0x30190f(_0x3c91e1=>{const _0x373e38=_0x23f34d;var _0x175326,_0x2e4871;const {offsetX:_0x4d79ab,offsetY:_0x2ab4e4}=_0x3c91e1,{x:_0x305cbd,y:_0x3f47a6}=_0x3d77eb[_0x373e38(0x1c4)](_0x5e8c29[_0x373e38(0x32d)]([_0x4d79ab,_0x2ab4e4])),{scaleX:_0x3ba0dd,scaleY:_0x16bad4}=_0x3d77eb[_0x373e38(0x30c)](),_0x4833c8=_0x3d77eb['getViewport'](_0x1dc34d[_0x373e38(0x1dd)]),_0x2264cc=_0x3d77eb['getVpScrollXYInfoByPosToVp'](_0x5e8c29[_0x373e38(0x32d)]([_0x305cbd,_0x3f47a6]),_0x4833c8),_0x27bd25=_0x1e75c3[_0x373e38(0x1b9)](_0x4d79ab,_0x2ab4e4,_0x3ba0dd,_0x16bad4,_0x2264cc);((_0x175326=this[_0x373e38(0x16f)])==null?void 0x0:_0x175326[_0x373e38(0x1f9)])===_0x27bd25[_0x373e38(0x1f9)]&&((_0x2e4871=this['_lastPointer'])==null?void 0x0:_0x2e4871[_0x373e38(0x1cf)])===_0x27bd25[_0x373e38(0x1cf)]||this[_0x373e38(0x29d)][_0x373e38(0x280)](_0x25a1cf=>{const _0x566339=_0x373e38;_0x25a1cf[_0x566339(0x1a0)](_0x27bd25);});},0x64));});}[_0x14c74a(0x2cc)](_0x1f7e59,_0x4ab115){const _0x32510e=_0x14c74a;var _0x1fbd1a;const _0x346dc8=(_0x1fbd1a=this[_0x32510e(0x195)][_0x32510e(0x200)]())==null?void 0x0:_0x1fbd1a[_0x32510e(0x216)];if(!_0x346dc8)return;const _0x2db733=this[_0x32510e(0x35b)]();if(!_0x2db733)return;this['_cursors'][_0x32510e(0x280)](_0x2c21bd=>{const _0x2c2a58=_0x32510e;_0x2c21bd[_0x2c2a58(0x2d4)]();});const {scene:_0xe398bd}=_0x2db733,_0x2ac574=Ji(Array['from'](_0x4ab115[_0x32510e(0x2b9)]()))[_0x32510e(0x205)](_0x4e3abd=>{const _0x25d916=_0x32510e,{color:_0x4a5c3d,range:_0x216811,name:_0x2790a9,selection:_0x1aa3f8,sheetID:_0x38216a}=_0x4e3abd,{startColumn:_0x3c36c3,startRow:_0xdd504d,endColumn:_0x30b8ae,endRow:_0xfb877c}=_0x216811,_0x289b08=_0x233511(_0xdd504d,_0x3c36c3,_0xe398bd,_0x346dc8),_0x31bc69=_0x233511(_0xfb877c,_0x30b8ae,_0xe398bd,_0x346dc8),{columnHeaderHeightAndMarginTop:_0x5498e6}=_0x346dc8,{startX:_0x314b57,startY:_0x58a238}=_0x289b08,{endX:_0x163263,endY:_0x4fd45b}=_0x31bc69,_0x125168=_0x163263-_0x314b57,_0x2f1573=_0x4fd45b-_0x58a238,_0x209865={'labelPosition':_0x58a238-_0x5498e6>=J?_0x25d916(0x2d3):_0x25d916(0x1a9),'sheetID':_0x38216a,'range':_0x216811,'color':_0x4a5c3d,'name':_0x2790a9,'selection':_0x1aa3f8,'left':_0x314b57,'top':_0x58a238,'width':_0x125168,'height':_0x2f1573,'evented':!0x1,'zIndex':zi};return new Xi(_0x2790a9,_0x209865);});_0xe398bd[_0x32510e(0x214)](_0x2ac574,Vi),this['_cursors']=new Set(_0x2ac574);}[_0x14c74a(0x18e)](){const _0x5a5bab=_0x14c74a;var _0x1bc264;(_0x1bc264=this[_0x5a5bab(0x29d)])==null||_0x1bc264['forEach'](_0x4aa5f5=>_0x4aa5f5['dispose']());}['_getSheetObject'](){const _0x197056=_0x14c74a;return _0x3e250c(this[_0x197056(0x215)][_0x197056(0x1a8)],this['_context']);}};Pe=Ki([pe(0x1,_0x4fff92(_0x50e06b)),pe(0x2,_0x4fff92(F)),pe(0x3,_0x4fff92(_0x3ea1cc))],Pe);function Ji(_0x44b114){const _0x303a4f=_0x14c74a,_0x4d1fac=new Map();return _0x44b114[_0x303a4f(0x280)](_0x69aaac=>{const _0xf8836=_0x303a4f;if(_0x4d1fac[_0xf8836(0x21c)](_0x69aaac[_0xf8836(0x19e)])){const _0x439bb0=_0x4d1fac[_0xf8836(0x352)](_0x69aaac[_0xf8836(0x19e)]);_0x439bb0[_0xf8836(0x1bb)]+=',\x20'+_0x69aaac[_0xf8836(0x1bb)];}else _0x4d1fac[_0xf8836(0x314)](_0x69aaac[_0xf8836(0x19e)],_0x69aaac);}),Array[_0x303a4f(0x1c2)](_0x4d1fac['values']());}var Zi=Object['getOwnPropertyDescriptor'],Qi=(_0x521654,_0x56e1cf,_0x133184,_0x5b7aee)=>{const _0x4228c1=_0x14c74a;for(var _0x5c3958=_0x5b7aee>0x1?void 0x0:_0x5b7aee?Zi(_0x56e1cf,_0x133184):_0x56e1cf,_0x223848=_0x521654[_0x4228c1(0x2f1)]-0x1,_0x3d69f7;_0x223848>=0x0;_0x223848--)(_0x3d69f7=_0x521654[_0x223848])&&(_0x5c3958=_0x3d69f7(_0x5c3958)||_0x5c3958);return _0x5c3958;},B=(_0x20dc4f,_0x3029b6)=>(_0x4b9b8b,_0x26f333)=>_0x3029b6(_0x4b9b8b,_0x26f333,_0x20dc4f);let ne=class extends _0xdd38f3{constructor(_0x2f2b41,_0x1a2280,_0x3abe8b,_0x1b9053,_0x5b9cca,_0x28e1d9){const _0x2d224c=_0x14c74a;super(),this[_0x2d224c(0x31a)]=_0x2f2b41,this[_0x2d224c(0x1df)]=_0x1a2280,this[_0x2d224c(0x359)]=_0x3abe8b,this[_0x2d224c(0x16b)]=_0x1b9053,this[_0x2d224c(0x266)]=_0x5b9cca,this[_0x2d224c(0x15a)]=_0x28e1d9,this['_setupBeforeClosingHandler'](),this[_0x2d224c(0x1ea)]();}[_0x14c74a(0x21d)](){const _0x4a573c=_0x14c74a;this[_0x4a573c(0x2d1)](this[_0x4a573c(0x31a)][_0x4a573c(0x1bd)](()=>{const _0x14a322=_0x4a573c;if(this[_0x14a322(0x1df)][_0x14a322(0x33f)][_0x14a322(0x320)])return this[_0x14a322(0x15a)]['t'](_0x14a322(0x346));}));}['_initEvent'](){const _0x35c57e=_0x14c74a;this[_0x35c57e(0x2d1)](this['_collaborationUIEventService']['event$'][_0x35c57e(0x1c9)](_0x34a3cb=>{const _0x458cf3=_0x35c57e;_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x30f)]&&this['_messageService'][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x20b)],'content':this[_0x458cf3(0x15a)]['t'](_0x458cf3(0x2e6))}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x2db)]&&this[_0x458cf3(0x16b)][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x20b)],'content':this[_0x458cf3(0x15a)]['t'](_0x458cf3(0x24d))}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x351)]&&this[_0x458cf3(0x266)][_0x458cf3(0x1ff)]({'title':this[_0x458cf3(0x15a)]['t']('permission.title'),'content':this[_0x458cf3(0x15a)]['t'](_0x458cf3(0x1c6)),'type':_0x458cf3(0x170),'duration':0x0}),_0x34a3cb['id']===_0x1cabf7['CONFLICT']&&this[_0x458cf3(0x16b)][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x26c)],'content':this[_0x458cf3(0x15a)]['t'](_0x458cf3(0x24d))+'('+_0x34a3cb[_0x458cf3(0x2ff)]+')'}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x20d)]&&this[_0x458cf3(0x16b)]['show']({'type':_0x1b5003[_0x458cf3(0x20b)],'content':this['_localeService']['t'](_0x34a3cb['data']||'')}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x287)]&&this[_0x458cf3(0x16b)][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x20b)],'content':this['_localeService']['t'](_0x458cf3(0x17f))}),_0x34a3cb['id']===_0x1cabf7[_0x458cf3(0x1c1)]&&this[_0x458cf3(0x16b)][_0x458cf3(0x1ff)]({'type':_0x1b5003[_0x458cf3(0x26c)],'content':this[_0x458cf3(0x15a)]['t']('session.connection-failed')}),_0x34a3cb['id']===_0x1cabf7['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x458cf3(0x16b)]['show']({'type':_0x1b5003[_0x458cf3(0x26c)],'content':this['_localeService']['t'](_0x458cf3(0x35c))});}));}};ne=Qi([B(0x0,_0x50fe48),B(0x1,_0x51b3f0),B(0x2,_0x4fff92(_0x59464a)),B(0x3,_0x2585ff),B(0x4,_0x3dc479),B(0x5,_0x4fff92(_0x5b784e))],ne);const qi=_0x14c74a(0x165),et={};var en=Object[_0x14c74a(0x192)],tn=(_0x434fc7,_0x2d3e7c,_0x3ee43c,_0x59d0b5)=>{const _0x55cd80=_0x14c74a;for(var _0x3a1ff6=_0x59d0b5>0x1?void 0x0:_0x59d0b5?en(_0x2d3e7c,_0x3ee43c):_0x2d3e7c,_0x535f6a=_0x434fc7[_0x55cd80(0x2f1)]-0x1,_0x457a64;_0x535f6a>=0x0;_0x535f6a--)(_0x457a64=_0x434fc7[_0x535f6a])&&(_0x3a1ff6=_0x457a64(_0x3a1ff6)||_0x3a1ff6);return _0x3a1ff6;},tt=(_0xd09ae2,_0x21121b)=>(_0x3434dc,_0x290274)=>_0x21121b(_0x3434dc,_0x290274,_0xd09ae2);let re=class{constructor(_0x31e2c2,_0x30aa56){const _0x484a7b=_0x14c74a;this[_0x484a7b(0x1ed)]=_0x31e2c2,this[_0x484a7b(0x227)]=_0x30aa56;}[_0x14c74a(0x19b)](_0x5b6de6){this['_transformUndoRedoStack'](_0x5b6de6),this['_transformPreviousActiveRange'](_0x5b6de6);}[_0x14c74a(0x183)](_0x245ceb){const _0x3bad16=_0x14c74a,{unitID:_0x749151}=_0x245ceb,_0x362165=this[_0x3bad16(0x227)][_0x3bad16(0x258)](_0x749151)[_0x3bad16(0x1ba)](_0x25748e),{redoCache:_0x4b439e}=_0x362165[_0x3bad16(0x2fc)]();if(_0x4b439e[_0x3bad16(0x2f1)]===0x0)return _0x245ceb;let _0x5e4a18=_0x4ee51e[_0x3bad16(0x288)](_0x245ceb[_0x3bad16(0x342)][0x0]);for(let _0xd59af=0x0;_0xd59af<_0x4b439e['length'];_0xd59af++){const _0x586554={'id':'doc.mutation.rich-text-editing','params':{..._0x4b439e[_0xd59af]}},_0x1fc6c4=this['_transformService'][_0x3bad16(0x197)](_0x5e4a18,_0x586554,!0x1);if(_0x145735(_0x1fc6c4))throw _0x1fc6c4['error'];_0x5e4a18=_0x1fc6c4[_0x3bad16(0x179)];}return{..._0x4ee51e[_0x3bad16(0x288)](_0x245ceb),'mutations':[_0x5e4a18]};}[_0x14c74a(0x1d1)](_0x4467ef){const _0x195fc6=_0x14c74a,{unitID:_0x1b082d}=_0x4467ef,_0x3b5905=this[_0x195fc6(0x227)][_0x195fc6(0x258)](_0x1b082d)[_0x195fc6(0x1ba)](_0x25748e),{undoCache:_0x5b9feb,redoCache:_0x4c965f}=_0x3b5905['getUndoRedoMutationParamsCache']();if(_0x5b9feb[_0x195fc6(0x2f1)]===0x0||_0x4c965f['length']===0x0)return;const _0x4469ad=[],_0x42d019=[];let _0x1c4a86=_0x4ee51e[_0x195fc6(0x288)](_0x4467ef[_0x195fc6(0x342)][0x0]),_0x3aab77=_0x4ee51e['deepClone'](_0x4467ef[_0x195fc6(0x342)][0x0]);for(let _0x466ad5=_0x5b9feb[_0x195fc6(0x2f1)]-0x1;_0x466ad5>=0x0;_0x466ad5--){const _0x1a19dd={'id':'doc.mutation.rich-text-editing','params':{..._0x5b9feb[_0x466ad5]}},_0xb4b2b6={'id':_0x195fc6(0x335),'params':{..._0x4c965f[_0x466ad5]}},_0x449b3f=this[_0x195fc6(0x1ed)]['transformMutation'](_0x1c4a86,_0x1a19dd,!0x1),_0x1d18aa=this[_0x195fc6(0x1ed)]['transformMutation'](_0x3aab77,_0xb4b2b6,!0x1);if(_0x145735(_0x449b3f))throw _0x449b3f['error'];if(_0x145735(_0x1d18aa))throw _0x1d18aa[_0x195fc6(0x170)];_0x4469ad[_0x195fc6(0x1fa)](_0x449b3f[_0x195fc6(0x316)][_0x195fc6(0x2be)]),_0x42d019[_0x195fc6(0x1fa)](_0x1d18aa[_0x195fc6(0x316)][_0x195fc6(0x2be)]),_0x1c4a86=_0x449b3f[_0x195fc6(0x179)],_0x3aab77=_0x1d18aa[_0x195fc6(0x179)];}_0x3b5905[_0x195fc6(0x345)]({'undoCache':_0x4469ad,'redoCache':_0x42d019});}[_0x14c74a(0x2e7)](_0x37724d){const _0x2507d2=_0x14c74a,{unitID:_0x476596}=_0x37724d,_0x216d91=this[_0x2507d2(0x227)][_0x2507d2(0x258)](_0x476596)[_0x2507d2(0x1ba)](_0x25748e),_0x5cd44a=_0x216d91[_0x2507d2(0x33e)]();if(_0x5cd44a==null)return;const _0x287580=[{'id':_0x2507d2(0x335),'params':{'unitId':_0x37724d[_0x2507d2(0x2a2)],'actions':null,'textRanges':[_0x5cd44a]}}],_0x3337e9=this[_0x2507d2(0x1ed)][_0x2507d2(0x24e)](_0x37724d,_0x287580);if(!_0x20f632(_0x3337e9))throw _0x3337e9[_0x2507d2(0x170)];const _0xb51802=_0x3337e9[_0x2507d2(0x316)][0x0][_0x2507d2(0x2be)][_0x2507d2(0x35a)];Array[_0x2507d2(0x27f)](_0xb51802)&&_0xb51802['length']&&_0x216d91[_0x2507d2(0x1d9)](_0xb51802[0x0]);}};re=tn([tt(0x0,_0x315634),tt(0x1,_0x34cabc)],re);var sn=Object[_0x14c74a(0x192)],nn=(_0x48e9cd,_0x5bfff7,_0x16159d,_0x5d5863)=>{const _0x303659=_0x14c74a;for(var _0x484f06=_0x5d5863>0x1?void 0x0:_0x5d5863?sn(_0x5bfff7,_0x16159d):_0x5bfff7,_0xb8c6ad=_0x48e9cd[_0x303659(0x2f1)]-0x1,_0x31f1a8;_0xb8c6ad>=0x0;_0xb8c6ad--)(_0x31f1a8=_0x48e9cd[_0xb8c6ad])&&(_0x484f06=_0x31f1a8(_0x484f06)||_0x484f06);return _0x484f06;},Ce=(_0xa1f478,_0x257b4a)=>(_0x29eda0,_0x364f01)=>_0x257b4a(_0x29eda0,_0x364f01,_0xa1f478);function _0x3130(_0x5816be,_0x5cb43f){const _0x372b6b=_0x372b();return _0x3130=function(_0x3130df,_0x12b444){_0x3130df=_0x3130df-0x159;let _0x58b8fa=_0x372b6b[_0x3130df];return _0x58b8fa;},_0x3130(_0x5816be,_0x5cb43f);}let oe=class{constructor(_0x51cf21,_0x47d19c,_0x15638c){const _0x1bfd00=_0x14c74a;this['_injector']=_0x51cf21,this[_0x1bfd00(0x1ed)]=_0x47d19c,this[_0x1bfd00(0x1e3)]=_0x15638c;}[_0x14c74a(0x162)](_0x21a569){const _0x2de07d=_0x14c74a;this[_0x2de07d(0x341)](_0x21a569);}[_0x14c74a(0x183)](_0x248196){const _0x5e188b=_0x14c74a,{unitID:_0x107245}=_0x248196,{collaboration:_0x5a4a4d}=this['_docStateChangeManagerService'][_0x5e188b(0x1fd)](_0x107245);if(_0x5a4a4d[_0x5e188b(0x2f1)]===0x0)return _0x248196;let _0x3570db=_0x4ee51e[_0x5e188b(0x288)](_0x248196[_0x5e188b(0x342)][0x0]);for(let _0x2f377b=0x0;_0x2f377b<_0x5a4a4d[_0x5e188b(0x2f1)];_0x2f377b++){const _0x4586cb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5a4a4d[_0x2f377b][_0x5e188b(0x277)],..._0x5a4a4d[_0x2f377b][_0x5e188b(0x240)]}},_0x280359=this[_0x5e188b(0x1ed)]['transformMutation'](_0x3570db,_0x4586cb,!0x1);if(_0x145735(_0x280359))throw _0x280359['error'];_0x3570db=_0x280359['m1Prime'];}return{..._0x4ee51e[_0x5e188b(0x288)](_0x248196),'mutations':[_0x3570db]};}[_0x14c74a(0x341)](_0x591850){const _0xed3af1=_0x14c74a,{unitID:_0x131f15}=_0x591850,{history:_0x262cd2,collaboration:_0x36d5cf}=this[_0xed3af1(0x1e3)]['getStateCache'](_0x131f15);if(_0x262cd2['length']===0x0&&_0x36d5cf[_0xed3af1(0x2f1)]===0x0)return;const _0x2ce881=[],_0x10fb4a=[];let _0x190e5f=_0x4ee51e['deepClone'](_0x591850[_0xed3af1(0x342)][0x0]),_0x2fde49=_0x4ee51e[_0xed3af1(0x288)](_0x591850[_0xed3af1(0x342)][0x0]);for(let _0x562742=_0x262cd2['length']-0x1;_0x562742>=0x0;_0x562742--){const _0x1cb3fc={'id':_0xed3af1(0x335),'params':{'unitId':_0x262cd2[_0x562742][_0xed3af1(0x277)],..._0x262cd2[_0x562742]['undoState']}},_0x324a97={'id':_0xed3af1(0x335),'params':{'unitId':_0x262cd2[_0x562742][_0xed3af1(0x277)],..._0x262cd2[_0x562742][_0xed3af1(0x240)]}},_0x484701=this['_transformService'][_0xed3af1(0x197)](_0x190e5f,_0x1cb3fc,!0x1),_0x27580f=this['_transformService']['transformMutation'](_0x2fde49,_0x324a97,!0x1);if(_0x145735(_0x484701))throw _0x484701[_0xed3af1(0x170)];if(_0x145735(_0x27580f))throw _0x27580f['error'];_0x2ce881['unshift']({..._0x262cd2[_0x562742],'undoState':_0x484701[_0xed3af1(0x316)][_0xed3af1(0x2be)],'redoState':_0x27580f[_0xed3af1(0x316)][_0xed3af1(0x2be)]}),_0x190e5f=_0x484701['m1Prime'],_0x2fde49=_0x27580f[_0xed3af1(0x179)];}_0x190e5f=_0x4ee51e[_0xed3af1(0x288)](_0x591850['mutations'][0x0]),_0x2fde49=_0x4ee51e[_0xed3af1(0x288)](_0x591850[_0xed3af1(0x342)][0x0]);for(let _0x454db8=_0x36d5cf[_0xed3af1(0x2f1)]-0x1;_0x454db8>=0x0;_0x454db8--){const _0x4d2a29={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36d5cf[_0x454db8][_0xed3af1(0x277)],..._0x36d5cf[_0x454db8][_0xed3af1(0x308)]}},_0x596ea4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x36d5cf[_0x454db8][_0xed3af1(0x277)],..._0x36d5cf[_0x454db8][_0xed3af1(0x240)]}},_0xd5a150=this[_0xed3af1(0x1ed)][_0xed3af1(0x197)](_0x190e5f,_0x4d2a29,!0x1),_0xfd9b68=this[_0xed3af1(0x1ed)]['transformMutation'](_0x2fde49,_0x596ea4,!0x1);if(_0x145735(_0xd5a150))throw _0xd5a150[_0xed3af1(0x170)];if(_0x145735(_0xfd9b68))throw _0xfd9b68[_0xed3af1(0x170)];_0x10fb4a[_0xed3af1(0x1fa)]({..._0x36d5cf[_0x454db8],'undoState':_0xd5a150['m2Prime']['params'],'redoState':_0xfd9b68['m2Prime'][_0xed3af1(0x2be)]}),_0x190e5f=_0xd5a150[_0xed3af1(0x179)],_0x2fde49=_0xfd9b68[_0xed3af1(0x179)];}this[_0xed3af1(0x1e3)][_0xed3af1(0x2c2)](_0x131f15,{'history':_0x2ce881,'collaboration':_0x10fb4a});}};oe=nn([Ce(0x0,_0x4fff92(_0x59495a)),Ce(0x1,_0x315634),Ce(0x2,_0x4fff92(_0x14b757))],oe);var rn=Object[_0x14c74a(0x192)],on=(_0xae7da8,_0x105e05,_0x3f3497,_0x306da0)=>{const _0x37be02=_0x14c74a;for(var _0x438ac0=_0x306da0>0x1?void 0x0:_0x306da0?rn(_0x105e05,_0x3f3497):_0x105e05,_0x42c275=_0xae7da8[_0x37be02(0x2f1)]-0x1,_0x1ed881;_0x42c275>=0x0;_0x42c275--)(_0x1ed881=_0xae7da8[_0x42c275])&&(_0x438ac0=_0x1ed881(_0x438ac0)||_0x438ac0);return _0x438ac0;},st=(_0x4478ab,_0x4ab2db)=>(_0x2d0c94,_0x3f0057)=>_0x4ab2db(_0x2d0c94,_0x3f0057,_0x4478ab);let ae=class{constructor(_0x5852be,_0x558918){const _0x971d4a=_0x14c74a;this[_0x971d4a(0x24c)]=_0x5852be,this[_0x971d4a(0x1ed)]=_0x558918;}['transformSelections'](_0x2dd212){const _0x25184b=_0x14c74a;var _0x4177c9;const _0x89a1b8=this[_0x25184b(0x24c)]['get'](_0x18393c),_0x31edf0=(_0x4177c9=_0x89a1b8[_0x25184b(0x347)]())!=null?_0x4177c9:[];if(_0x31edf0['length']===0x0)return;const _0x3b04e4=_0x2dd212[_0x25184b(0x2a2)],_0x30b20e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b04e4,'actions':null,'textRanges':_0x31edf0}}],_0x2589c6=this[_0x25184b(0x1ed)][_0x25184b(0x24e)](_0x2dd212,_0x30b20e);if(!_0x20f632(_0x2589c6))throw _0x2589c6[_0x25184b(0x170)];const _0x4f5585=_0x2589c6['m2Prime'][0x0][_0x25184b(0x2be)][_0x25184b(0x35a)];Array[_0x25184b(0x27f)](_0x4f5585)&&_0x4f5585[_0x25184b(0x2f1)]&&_0x89a1b8[_0x25184b(0x256)](_0x4f5585,{'unitId':_0x3b04e4,'subUnitId':_0x3b04e4},!0x1);}};ae=on([st(0x0,_0x4fff92(_0x59495a)),st(0x1,_0x315634)],ae);var an=Object['getOwnPropertyDescriptor'],cn=(_0x55c32d,_0x2e316b,_0xd5fa5a,_0x45e04e)=>{const _0x1f46bb=_0x14c74a;for(var _0x217aa0=_0x45e04e>0x1?void 0x0:_0x45e04e?an(_0x2e316b,_0xd5fa5a):_0x2e316b,_0x51bc9e=_0x55c32d[_0x1f46bb(0x2f1)]-0x1,_0x4f6f22;_0x51bc9e>=0x0;_0x51bc9e--)(_0x4f6f22=_0x55c32d[_0x51bc9e])&&(_0x217aa0=_0x4f6f22(_0x217aa0)||_0x217aa0);return _0x217aa0;},N=(_0x2598a3,_0x5ef5f2)=>(_0x14a718,_0x3e9c3c)=>_0x5ef5f2(_0x14a718,_0x3e9c3c,_0x2598a3);let ce=class extends _0xdd38f3{constructor(_0x2d6b64,_0x10da5f,_0x2338f1,_0x40f2c9,_0x5324a4,_0xd26da8,_0x563350,_0x38d5f2){const _0xb6acd3=_0x14c74a;super(),_(this,_0xb6acd3(0x29c),new _0x1bb8bf(_0x1db2c6[_0xb6acd3(0x1fb)])),(this[_0xb6acd3(0x1e3)]=_0x2d6b64,this[_0xb6acd3(0x1ad)]=_0x10da5f,this[_0xb6acd3(0x17d)]=_0x2338f1,this[_0xb6acd3(0x264)]=_0x40f2c9,this[_0xb6acd3(0x2bb)]=_0x5324a4,this['_docSyncEditingCollabCursorService']=_0xd26da8,this[_0xb6acd3(0x16b)]=_0x563350,this[_0xb6acd3(0x15a)]=_0x38d5f2,this['_initEntityListener']());}[_0x14c74a(0x34d)](){const _0x56d0d4=_0x14c74a;this[_0x56d0d4(0x2d1)](this['_collaborationController']['entityInit$'][_0x56d0d4(0x1c9)](_0x1216ca=>{const _0x5ed5e1=_0x56d0d4,_0x2c3de2=this[_0x5ed5e1(0x1e3)]['docStateChange$'][_0x5ed5e1(0x1c9)](_0x3595f5=>{const _0x57fd27=_0x5ed5e1;if(_0x3595f5==null)return;const {unitId:_0x2d48ba,redoState:_0x32ebc6,commandId:_0x1b8ad1}=_0x3595f5;if(_0x2d48ba!==_0x1216ca['unitID'])return;const _0x34b0a4={'id':_0x1b8ad1,'type':_0xbff3c6[_0x57fd27(0x2f7)],'params':{'unitId':_0x2d48ba,'actions':_0x32ebc6['actions'],'textRanges':null}};_0x1216ca[_0x57fd27(0x244)](_0x34b0a4);});if(_0x1216ca['disposeWithMe'](_0x2c3de2),_0x1216ca instanceof _0x4a7a20){const _0x35761b={'onTransformIME':_0x212acf=>this['_docTransformIMECacheService']['transformIMECache'](_0x212acf),'onTransformState':_0x430d26=>this[_0x5ed5e1(0x264)][_0x5ed5e1(0x162)](_0x430d26),'onTransformSelections':_0xc9d328=>this['_docTransformSelectionsService'][_0x5ed5e1(0x350)](_0xc9d328),'onSyncEditingCollabCursor':_0x18b039=>this['_docSyncEditingCollabCursorService'][_0x5ed5e1(0x32c)](_0x18b039),'onTransformRemoteChangesetByIMECache':_0x1813c0=>this[_0x5ed5e1(0x17d)][_0x5ed5e1(0x183)](_0x1813c0),'onTransformRemoteChangesetByStateCache':_0x5793d2=>this[_0x5ed5e1(0x264)][_0x5ed5e1(0x183)](_0x5793d2)};_0x1216ca[_0x5ed5e1(0x209)](_0x35761b);}}));}};function _0x372b(){const _0x116323=['YUUMI_AI_RUN_FAILED','selections','cursorInfo','urlChange$','UNRECOGNIZED','_drawRectRange','_getSessionTicket','use','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_registerDependencies','YUUMI_CONNECTOR_URL_NOT_FOUND','max','_entities','currentColor','_setupSubUnitSync','range','ENSURE_SNAPSHOT_EXECUTION','DeleteRangeMoveLeftCommandId','redoState','UNDEFINED','setItem','_startSheetCollabCursor','onLocalMutation','_config','ONLINE','tag','_collabCursorState$','startRow','transform','transformByState','_injector','collaboration.closeRoom','transformMutationsWithChangeset','ranges','_univerInstanceService','collab-text-anchor-','className','_session','defineProperty','labelPosition','replaceDocRanges','measureText','getRenderById','/run/','defs','collabCursorState$','getSheetBySheetId','function','_handleHeartbeatEvent','_hover','white','collabStatus.syncing','OTHER_CLIENTS_EDITING','subUnitId','_docTransformStateCacheService','_syncEditingCollabCursorService','_notificationService','_scheduleClearOtherTimer','imageSourceType','_scene','dispose','registerRenderModule','Error','YUUMI_ASYNCIO_CANCELLED','MOBILE_HAS_BEEN_BOUND','assign','_init','substring','EMAIL_VERIFY_CODE_MISMATCH','getCollabCursors$','0\x200\x2017\x2016','onRendered','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','unitId','7330384gOnvGn','CONNECTOR_DATA_TOO_LARGE','OFFLINE','_createSocketURL','roomMembers','isActive','INVALID_ARGUMENT','isArray','forEach','then','24cMWScB','YUUMI_RATE_OVER_LIMIT','storage','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','cursorInfo$','SOCKET_FAILED_RETRY','deepClone','[CollaborationDataLoaderController]','prototype','event$','onPointerLeave$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','override','debug','delete','4286502HKpjhO','origin','getOwnPropertySymbols','Unknown\x20user','_handleLeaveEvent','complete','path','univer-mr-2\x20univer-flex\x20univer-text-xl','split','_collabCursorController','mask','_status$','_cursors','url(#$1','_commandService','search','_online','unitID','send','width','_refreshCollabCursors','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','pushState','getSheetId','href','colorChannel1','[RemoteUniscriptService]:\x20no\x20focused\x20unit','PY_RUNTIME_SCRIPT_ERROR','_imageIoService','ticket','black','setConfig','_getScale','_instanceService','UNAUTHENTICATED','YUUMI_UNABLE_LOAD_URL','getMember','unsubscribe','push','EMAIL_HAS_BEEN_BOUND','values','replace','_docTransformSelectionsService','runId','TEXT','params','OnLineIcon','_shapes','AWAITING','setStateCache','_refRangeService','onPointerEnter$','_updateLocalCursor','http://www.w3.org/2000/svg','COMPLETION_FINISHED','includes','_range','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','translate(.97)','_updateCollabCursors','_initStatusComponent','key','sessionTicket','_heartbeatTimer','disposeWithMe','YUUMI_URL_COL_OUT_OF_RANGE','top','makeDirty','ACTIVE_UNIT_EVENT_CHANNEL','on-line-icon_clip0_910_349','assignAColorForMemberID','setShapeProps','_getSaveTimeout','save','CLOSE_ROOM','_onRefRangeChange','_localStorageService','_handleEvent','RemoveRowCommandId','TOO_MANY_REQUESTS','findNodePositionByCharIndex','SNAPSHOT_INVALID_SNAPSHOT','getUniverSheetInstance','isEditing','init','collaboration.single-unit.warning','_transformPreviousActiveRange','engine','LICENSE_IMPORT_SIZE_EXCEEDED','getCurrentUnitForType','focused$','_registerRenderDependencies','exhaustSavingTask','body','restore','_backgroundColor','length','_saveTaskMap','evenodd','_roomMembers$','_updateSubUnitFromURLParams','getUnitStatus$','MUTATION','collab-rect-range-','getConfig','stringify','executionId','getUndoRedoMutationParamsCache','APPLY_DUPLICATED','asObservable','data','collabStatus.conflict','invokeId','_colorIndex','string','getActiveSheet','58871ldlfWG','_onCursorDelete','INVALID_INVITE_CODE','undoState','LOGIN_FAILED','concat','_docSkeletonManagerService','getAncestorScale','rgba(255,\x20255,\x20255,\x200.01)','RemoveColCommandId','OTHER_CLIENT_EDITING','0\x200\x2016\x2016','onPointerMove$','popstate','_anchorDot','set','54tFjWne','m2Prime','xlink:href','26835wrvFsO','_send','_beforeCloseService','_name','UniverIcon','_revisionService','next','AWAITING_WITH_PENDING','size','attrs','drawWith','backgroundColor','_scheduleHeartbeat','collabStatus.notCollab','LICENSE_EXPORT_SIZE_EXCEEDED','off-line-icon_clip0_910_343','hovered','fill','APPLY_PERMISSION_DENIED','svg','syncEditingCollabCursor','FromArray','sessionStatus$','_selfUnitIDs','collabStatus.synced','color','_initCommandExecutedListener','getTypeOfUnitDisposed$','addObject','doc.mutation.rich-text-editing','arc','on-line-icon','disableLocalCache','_initResize','setTimeout','sheetId','clipPath','_urlService','getActiveRange','saveTaskMap','getMergeData','_transformHistoryAndStateStack','mutations','loadOfflineData','INTERNAL_ERROR','setUndoRedoMutationParamsCache','collaboration-client.offline-data-not-saved','getDocRanges','moveTo','setParam','_removeClearOtherTimer','reconnect','onCommandExecuted','_initEntityListener','setAlpha','_onCursorUpdate','transformSelections','PERMISSION_DENIED','get','clearInterval','WECHAT_HAS_BEEN_BOUND','_unitStatus','add','_handleHover','FETCH_MISS','_collaborationUIEventService','textRanges','_getSheetObject','session.collaboration-timeout','YUUMI_ALL_TABLES_IS_INVALID','icon','hasOwnProperty','_localeService','InsertRangeMoveRightCommandId','endColumn','_docSkeleton','createSocket','_toggleOffline','_toggleOnline','_themeService','transformStateCache','OffLineIcon','_cursorInfo$','collaboration-client-ui.config','_colorAssignService','sheetID','_httpService','...','_ensureSubject','_messageService','idSuffix','getParam','status$','_lastPointer','error','_drawTextRange','extend','url(#on-line-icon_clip0_910_349)','LICENSE_MAX_UNITS_EXCEEDED','onStarting','displayName','fillStyle','UPDATE_CURSOR','m1Prime','blue.400','registerRefRange','#FFF','_docTransformIMECacheService','USER_NOT_INVITED_CODE','session.will-retry','_draw','clearTimeout','newValue','transformRemoteChangeset','pipe','currentTheme$','result','YUUMI_SUBSCRIPTION_NOT_FOUND','LICENSE_DISTRO_REJECTED','_logService','_memberService','application/json','defIds','getColorFromTheme','_removeCollabCursors','getRangePointData','getCurrentRevOfUnit','_hideTimer','getOwnPropertyDescriptor','source','_anchor','_sheetSkeletonManagerService','saveOfflineData','transformMutation','resize','INVITE_CODE_ALREADY_BOUND','_cachedData','transformIMECache','_cursor','red.300','selection','_eventUnsubscribe','onMouseMove','Failed','toRgbString','_initDependencies','_drawAnchor','32755320GqfNzI','getValue','_handleJoinEvent','unit','bottom','min','HEADER_MENU','_assignedColors','_collaborationController','roomMembers$','28QnOxYR','fillRule','_id','symbol','UNIVER_DOC','getSkeleton','SNAPSHOT_HAS_BEEN_REMOVED','_cursorShapes','indexOf','createInstance','getCellPositionByOffset','with','name','current','registerBeforeClose','fillText','dispose$','subscribeEvent','SOCKET_FAILED','from','post','getRelativeToViewportCoord','propertyIsEnumerable','permission.content','getFocusedUnit','_textBubble','subscribe','_uiPartsService','addClipboardHook','hide','CHANGESET_REVISION_CONFILICT','div','row','disposeUnit','_transformUndoRedoStack','jiqing.500','_color','_initStatusListener','USERS_LEAVE','subunit','_startDocCollabCursor','_saveCache','setActiveRange','getTypeOfUnitAdded$','_configService','_scheduleSaving','VIEW_MAIN','location','_localCacheService','editingUnit','setInterval','beginPath','_docStateChangeManagerService','lineTo','whenReady','_dataLoaderService','some','_collabSessionService','_updateURLWithCurrentState','_initEvent','type','getMemberID','_transformService','InsertRowCommandId','71646ZMLLpr','history','code','752213gmbcpL','CONFLICT','none','height','entries','currentSkeleton$','activeSheet$','column','unshift','NOT_COLLAB','triggerDblclick','getStateCache','_unitOnClients','show','getCurrent','_getAnchorBounding','_entityInit$','executeCommand','url(#off-line-icon_clip0_910_343)','map','registerComponent','InsertColCommandId','UNIVER_SHEET','addHandlerCallback','_hovered','Warning','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','JOIN_ROOM_FAILED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnitId','eventID','loadUnit','round','APPLY_NON_SEQUENTIAL_REVISION','addObjects','_context','skeleton','ALREADY_EXISTS','wsSessionTicketUrl','APPLY_REJECT','APPLY_REVISION_CONFILICT','M0\x200H16V16H0z','has','_setupBeforeClosingHandler','INVITE_CODE_REQUIRED','children','DeleteRangeMoveUpCommandId','_clearOtherTimers','replaceState','toString','call','text','_disabled','_renderManagerService','1em','searchParams','RECT','_labelPosition','_docClipboardService','parse'];_0x372b=function(){return _0x116323;};return _0x372b();}ce=cn([N(0x0,_0x4fff92(_0x14b757)),N(0x1,_0x4fff92(_0x43ceef)),N(0x2,_0x4fff92(re)),N(0x3,_0x4fff92(oe)),N(0x4,_0x4fff92(ae)),N(0x5,_0x4fff92(Fe)),N(0x6,_0x2585ff),N(0x7,_0x4fff92(_0x5b784e))],ce);var ln=Object['getOwnPropertyDescriptor'],_n=(_0x4f1e1c,_0x5c9552,_0xff9bd1,_0x27801a)=>{const _0x543d5f=_0x14c74a;for(var _0x480bd7=_0x27801a>0x1?void 0x0:_0x27801a?ln(_0x5c9552,_0xff9bd1):_0x5c9552,_0x51d6e4=_0x4f1e1c[_0x543d5f(0x2f1)]-0x1,_0x427b42;_0x51d6e4>=0x0;_0x51d6e4--)(_0x427b42=_0x4f1e1c[_0x51d6e4])&&(_0x480bd7=_0x427b42(_0x480bd7)||_0x480bd7);return _0x480bd7;},Ee=(_0x1418eb,_0x4eea45)=>(_0x526059,_0x13cb6e)=>_0x4eea45(_0x526059,_0x13cb6e,_0x1418eb);let we=class extends _0xdd38f3{constructor(_0x24f1f7,_0x2524a9,_0x454e04){const _0x58e1bb=_0x14c74a;super(),_(this,_0x58e1bb(0x19a),new Map()),_(this,_0x58e1bb(0x2f2),new Map()),_(this,_0x58e1bb(0x226),!0x1),(this[_0x58e1bb(0x1db)]=_0x24f1f7,this['_localStorageService']=_0x2524a9,this[_0x58e1bb(0x31d)]=_0x454e04);}[_0x14c74a(0x338)](){const _0x1842cb=_0x14c74a;this[_0x1842cb(0x226)]=!0x0;}['enableLocalCache'](){const _0x3e8a36=_0x14c74a;this[_0x3e8a36(0x226)]=!0x1;}get[_0x14c74a(0x33f)](){const _0x35c5cf=_0x14c74a;return this[_0x35c5cf(0x2f2)];}['dispose'](){const _0x320323=_0x14c74a;this[_0x320323(0x2ed)]()[_0x320323(0x281)](()=>super[_0x320323(0x26a)]());}async[_0x14c74a(0x343)](_0x3fd189){const _0x32d051=_0x14c74a;return this['_disabled']?null:this[_0x32d051(0x2dd)]['getItem'](_0x4eded7(_0x3fd189));}async[_0x14c74a(0x196)](_0x1ee143,_0x215a87){const _0x1a6aa3=_0x14c74a;return!!this[_0x1a6aa3(0x2dd)][_0x1a6aa3(0x242)](_0x1ee143,_0x215a87);}['updateOfflineData'](_0x25b4ad,_0x359fa4,_0xece26e,_0x25cd43){const _0x424b26=_0x14c74a,_0x53d5af=this[_0x424b26(0x31d)][_0x424b26(0x190)](_0x25b4ad);this['_cachedData']['set'](_0x25b4ad,{'unitID':_0x25b4ad,'type':_0x359fa4,'awaitingChangeset':_0xece26e,'mutations':_0x25cd43,'rev':_0x53d5af}),this['_saveTaskMap'][_0x424b26(0x21c)](_0x25b4ad)||this[_0x424b26(0x1dc)](_0x25b4ad);}['_scheduleSaving'](_0xcf6796){const _0x5daf4d=_0x14c74a,_0x55408c=this[_0x5daf4d(0x2d9)]();_0x55408c===0x0?this[_0x5daf4d(0x1d8)](_0xcf6796):this[_0x5daf4d(0x2f2)][_0x5daf4d(0x314)](_0xcf6796,setTimeout(()=>this[_0x5daf4d(0x1d8)](_0xcf6796),_0x55408c));}[_0x14c74a(0x2d9)](){const _0xf21632=_0x14c74a;var _0x5215ca;return(_0x5215ca=this[_0xf21632(0x1db)]['getConfig'](_0x5bb4aa))!=null?_0x5215ca:_0x45d479;}['_saveCache'](_0x31e461){const _0x4b41a0=_0x14c74a,_0x2fa86d=this[_0x4b41a0(0x2f2)][_0x4b41a0(0x352)](_0x31e461);return _0x2fa86d!==void 0x0&&window['clearTimeout'](_0x2fa86d),this[_0x4b41a0(0x2dd)]['setItem'](_0x4eded7(_0x31e461),this[_0x4b41a0(0x19a)]['get'](_0x31e461))[_0x4b41a0(0x281)](()=>this[_0x4b41a0(0x2f2)][_0x4b41a0(0x290)](_0x31e461));}async[_0x14c74a(0x2ed)](){const _0x130874=_0x14c74a,_0x5ef4bd=[];this[_0x130874(0x2f2)][_0x130874(0x280)]((_0x2449ae,_0x4d300d)=>{const _0xf078d4=_0x130874;window[_0xf078d4(0x181)](_0x2449ae),_0x5ef4bd[_0xf078d4(0x2b7)](this[_0xf078d4(0x1d8)](_0x4d300d)[_0xf078d4(0x281)](()=>{const _0x189b1a=_0xf078d4;this[_0x189b1a(0x2f2)][_0x189b1a(0x290)](_0x4d300d);}));}),await Promise['all'](_0x5ef4bd);}};we=_n([Ee(0x0,_0x1b5145),Ee(0x1,_0xd71f9),Ee(0x2,_0x4fff92(_0x2679d0))],we);class hn extends _0x270ee7{constructor(){const _0x588648=_0x14c74a;super(),_(this,_0x588648(0x231)),this[_0x588648(0x231)]=_0xf30f0(window,_0x588648(0x312))[_0x588648(0x184)](_0x2c2b7e(this[_0x588648(0x1bf)]),_0x56503d(0x1),_0x4c898c(void 0x0));}[_0x14c74a(0x349)](_0xabd84b,_0x3c6388,_0x1e6dae=!0x1){const _0x542ca7=_0x14c74a,_0x2e1d63=new URL(window['location']['href']);_0x2e1d63[_0x542ca7(0x229)][_0x542ca7(0x314)](_0xabd84b,_0x3c6388),_0x1e6dae?window['history']['replaceState']('','',_0x2e1d63[_0x542ca7(0x223)]()):window[_0x542ca7(0x1f0)][_0x542ca7(0x2a7)]('','',_0x2e1d63[_0x542ca7(0x223)]());}['removeParam'](_0x1faed5,_0x5caa9a=!0x1){const _0x5aad16=_0x14c74a,_0x9170fa=new URL(window[_0x5aad16(0x1de)][_0x5aad16(0x2a9)]);_0x9170fa[_0x5aad16(0x229)][_0x5aad16(0x290)](_0x1faed5),_0x5caa9a?window[_0x5aad16(0x1f0)][_0x5aad16(0x222)]('','',_0x9170fa['toString']()):window[_0x5aad16(0x1f0)][_0x5aad16(0x2a7)]('','',_0x9170fa[_0x5aad16(0x223)]());}[_0x14c74a(0x16d)](_0x243714){const _0x5aa690=_0x14c74a;var _0x3d55fc;return(_0x3d55fc=new URL(window[_0x5aa690(0x1de)]['href'])[_0x5aa690(0x229)][_0x5aa690(0x352)](_0x243714))!=null?_0x3d55fc:void 0x0;}}var un=Object[_0x14c74a(0x254)],dn=Object[_0x14c74a(0x192)],fn=(_0x58733c,_0x541525,_0x19942a)=>_0x541525 in _0x58733c?un(_0x58733c,_0x541525,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19942a}):_0x58733c[_0x541525]=_0x19942a,Sn=(_0x1bb734,_0x5c2af4,_0x92ae92,_0x23f190)=>{const _0x21d9a6=_0x14c74a;for(var _0x49519d=_0x23f190>0x1?void 0x0:_0x23f190?dn(_0x5c2af4,_0x92ae92):_0x5c2af4,_0x523d6d=_0x1bb734[_0x21d9a6(0x2f1)]-0x1,_0x2c52e8;_0x523d6d>=0x0;_0x523d6d--)(_0x2c52e8=_0x1bb734[_0x523d6d])&&(_0x49519d=_0x2c52e8(_0x49519d)||_0x49519d);return _0x49519d;},Oe=(_0x33fd8a,_0x303f67)=>(_0x1487b6,_0x49c585)=>_0x303f67(_0x1487b6,_0x49c585,_0x33fd8a),mn=(_0x983f9f,_0x3efa87,_0x4b93b7)=>fn(_0x983f9f,_0x3efa87+'',_0x4b93b7);const In=_0x14c74a(0x236);let Ae=class extends _0x18e775{constructor(_0x589931=et,_0x28c866,_0x237693,_0x1b8b9d){const _0xac1af5=_0x14c74a;super(),this[_0xac1af5(0x245)]=_0x589931,this['_renderManagerService']=_0x28c866,this[_0xac1af5(0x24c)]=_0x237693,this['_configService']=_0x1b8b9d;const {..._0x32b558}=_0x31a5b7({},et,this['_config']);this[_0xac1af5(0x1db)][_0xac1af5(0x2b0)](qi,_0x32b558);}[_0x14c74a(0x175)](){const _0x5979d0=_0x14c74a;this[_0x5979d0(0x237)](),this[_0x5979d0(0x1a3)]();}[_0x14c74a(0x275)](){const _0x4ab923=_0x14c74a;this[_0x4ab923(0x2ec)]();}[_0x14c74a(0x237)](){const _0x3735ed=_0x14c74a;var _0x4cd945;const _0x5e7616=[[He],[ae],[re],[oe],[Fe],[Ut,{'useClass':hn}],[_0x5f1b50,{'useClass':_0x3f2ae3}],[_0x51b3f0,{'useClass':we}],[se],[ce],[ne],[F],[Ne],[ie]];_0x43af18(this['_injector'],_0xbabb7f(_0x5e7616,(_0x4cd945=this[_0x3735ed(0x245)])==null?void 0x0:_0x4cd945[_0x3735ed(0x28e)]));}[_0x14c74a(0x2ec)](){const _0x2bc3a7=_0x14c74a;this['disposeWithMe'](this[_0x2bc3a7(0x227)][_0x2bc3a7(0x26b)](_0x555e27[_0x2bc3a7(0x1b3)],[Le])),this[_0x2bc3a7(0x2d1)](this[_0x2bc3a7(0x227)]['registerRenderModule'](_0x555e27['UNIVER_SHEET'],[Pe]));}[_0x14c74a(0x1a3)](){const _0x433f2a=_0x14c74a;_0x5c024d(this[_0x433f2a(0x24c)],[[F],[se],[ce],[ne],[ie]]);}};mn(Ae,'pluginName',In),Ae=Sn([_0x4d8f58(_0x171330),Oe(0x1,_0x34cabc),Oe(0x2,_0x4fff92(_0x59495a)),Oe(0x3,_0x1b5145)],Ae);var vn=Object[_0x14c74a(0x192)],gn=(_0x1e6728,_0x3868f0,_0x128a5a,_0x2ea648)=>{for(var _0x4a8113=_0x2ea648>0x1?void 0x0:_0x2ea648?vn(_0x3868f0,_0x128a5a):_0x3868f0,_0x1f87c7=_0x1e6728['length']-0x1,_0x58b5b2;_0x1f87c7>=0x0;_0x1f87c7--)(_0x58b5b2=_0x1e6728[_0x1f87c7])&&(_0x4a8113=_0x58b5b2(_0x4a8113)||_0x4a8113);return _0x4a8113;},z=(_0x5b5b7f,_0x451636)=>(_0x5b82c5,_0x213d1e)=>_0x451636(_0x5b82c5,_0x213d1e,_0x5b5b7f);let it=class extends _0x575702{constructor(_0x42dd20,_0x4dc0bf,_0x54f2ec,_0x51cdaa,_0x96e676){super(_0x42dd20,_0x4dc0bf,_0x54f2ec,_0x51cdaa,_0x96e676);}async[_0x14c74a(0x15e)](_0x422465){const _0x5863be=_0x14c74a,_0x4487c5=await this[_0x5863be(0x234)](),_0x17ece1=this[_0x5863be(0x27b)](_0x422465,_0x4487c5);return this['_doCreateSocket'](_0x17ece1);}[_0x14c74a(0x27b)](_0xbcfc46,_0x3fecec){const _0x327caa=_0x14c74a,_0x1dfc83=typeof window>'u'?new URL(_0xbcfc46):new URL(_0xbcfc46,window[_0x327caa(0x1de)][_0x327caa(0x292)]);_0x1dfc83[_0x327caa(0x229)][_0x327caa(0x314)](_0x327caa(0x2cf),_0x3fecec);const _0x2ab75f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x327caa(0x1de)][_0x327caa(0x2a0)]);return _0x2ab75f['get'](_0x327caa(0x2bc))&&_0x1dfc83[_0x327caa(0x229)]['set']('runId',_0x2ab75f[_0x327caa(0x352)](_0x327caa(0x2bc))),_0x1dfc83['toString']();}async['_getSessionTicket'](){const _0x41bf4a=_0x14c74a;var _0x27ae53,_0x308fe0,_0x27e11a;const _0x50d6d3=this[_0x41bf4a(0x1db)][_0x41bf4a(0x2f9)](_0x1de0bf),_0xc302f8=(_0x27ae53=_0x50d6d3==null?void 0x0:_0x50d6d3[_0x41bf4a(0x218)])!=null?_0x27ae53:_0xb62b37;return(_0x27e11a=(_0x308fe0=(await this[_0x41bf4a(0x168)]['get'](_0xc302f8,{'headers':{'Content-Type':_0x41bf4a(0x18b)}}))[_0x41bf4a(0x2ee)])==null?void 0x0:_0x308fe0[_0x41bf4a(0x2ae)])!=null?_0x27e11a:'';}};it=gn([z(0x0,_0x4fff92(_0x59495a)),z(0x1,_0x4fff92(_0x5ef031)),z(0x2,_0x1b5145),z(0x3,_0x57ae13),z(0x4,_0xdb2b88)],it);var Lt=(_0x44aefa=>(_0x44aefa[_0x44aefa[_0x14c74a(0x241)]=0x0]=_0x14c74a(0x241),_0x44aefa[_0x44aefa['OK']=0x1]='OK',_0x44aefa[_0x44aefa[_0x14c74a(0x344)]=0x2]='INTERNAL_ERROR',_0x44aefa[_0x44aefa[_0x14c74a(0x351)]=0x3]='PERMISSION_DENIED',_0x44aefa[_0x44aefa['NOT_FOUND']=0x4]='NOT_FOUND',_0x44aefa[_0x44aefa['UNAUTHENTICATED']=0x5]=_0x14c74a(0x2b3),_0x44aefa[_0x44aefa['ALREADY_EXISTS']=0x6]=_0x14c74a(0x217),_0x44aefa[_0x44aefa['INVALID_ARGUMENT']=0x7]=_0x14c74a(0x27e),_0x44aefa[_0x44aefa[_0x14c74a(0x2e0)]=0x8]=_0x14c74a(0x2e0),_0x44aefa[_0x44aefa[_0x14c74a(0x2c7)]=0x9]=_0x14c74a(0x2c7),_0x44aefa[_0x44aefa[_0x14c74a(0x309)]=0xa]=_0x14c74a(0x309),_0x44aefa[_0x44aefa['MOBILE_VERIFY_CODE_MISMATCH']=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x44aefa[_0x44aefa[_0x14c74a(0x276)]=0xc]=_0x14c74a(0x276),_0x44aefa[_0x44aefa['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x14c74a(0x272),_0x44aefa[_0x44aefa['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x14c74a(0x28d),_0x44aefa[_0x44aefa[_0x14c74a(0x1cd)]=0x1389]=_0x14c74a(0x1cd),_0x44aefa[_0x44aefa[_0x14c74a(0x2e2)]=0x1771]=_0x14c74a(0x2e2),_0x44aefa[_0x44aefa[_0x14c74a(0x1b5)]=0x1772]=_0x14c74a(0x1b5),_0x44aefa[_0x44aefa[_0x14c74a(0x23e)]=0x1773]=_0x14c74a(0x23e),_0x44aefa[_0x44aefa[_0x14c74a(0x219)]=0x1b59]=_0x14c74a(0x219),_0x44aefa[_0x44aefa[_0x14c74a(0x213)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x44aefa[_0x44aefa[_0x14c74a(0x21a)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x44aefa[_0x44aefa[_0x14c74a(0x32a)]=0x1b5c]=_0x14c74a(0x32a),_0x44aefa[_0x44aefa[_0x14c74a(0x2fd)]=0x1b5d]=_0x14c74a(0x2fd),_0x44aefa[_0x44aefa[_0x14c74a(0x279)]=0x1f41]=_0x14c74a(0x279),_0x44aefa[_0x44aefa[_0x14c74a(0x174)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x44aefa[_0x44aefa[_0x14c74a(0x2ca)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x44aefa[_0x44aefa[_0x14c74a(0x2e9)]=0x232b]=_0x14c74a(0x2e9),_0x44aefa[_0x44aefa[_0x14c74a(0x326)]=0x232c]=_0x14c74a(0x326),_0x44aefa[_0x44aefa['LICENSE_DISTRO_REJECTED']=0x232d]=_0x14c74a(0x188),_0x44aefa[_0x44aefa[_0x14c74a(0x2b4)]=0x2711]=_0x14c74a(0x2b4),_0x44aefa[_0x44aefa[_0x14c74a(0x2d2)]=0x2712]=_0x14c74a(0x2d2),_0x44aefa[_0x44aefa[_0x14c74a(0x283)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x44aefa[_0x44aefa[_0x14c74a(0x187)]=0x2714]=_0x14c74a(0x187),_0x44aefa[_0x44aefa['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x44aefa[_0x44aefa[_0x14c74a(0x26d)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x44aefa[_0x44aefa['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x44aefa[_0x44aefa[_0x14c74a(0x35d)]=0x271d]=_0x14c74a(0x35d),_0x44aefa[_0x44aefa[_0x14c74a(0x20c)]=0x271e]=_0x14c74a(0x20c),_0x44aefa[_0x44aefa[_0x14c74a(0x22e)]=0x271f]=_0x14c74a(0x22e),_0x44aefa[_0x44aefa[_0x14c74a(0x238)]=0x2720]=_0x14c74a(0x238),_0x44aefa[_0x44aefa[_0x14c74a(0x2ac)]=0x2af9]=_0x14c74a(0x2ac),_0x44aefa[_0x44aefa['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x44aefa[_0x44aefa[_0x14c74a(0x307)]=0x2ee2]='INVALID_INVITE_CODE',_0x44aefa[_0x44aefa[_0x14c74a(0x21e)]=0x2ee3]=_0x14c74a(0x21e),_0x44aefa[_0x44aefa[_0x14c74a(0x17e)]=0x2ee4]=_0x14c74a(0x17e),_0x44aefa[_0x44aefa[_0x14c74a(0x199)]=0x2ee5]=_0x14c74a(0x199),_0x44aefa[_0x44aefa['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x14c74a(0x354),_0x44aefa[_0x44aefa[_0x14c74a(0x26e)]=0x32ca]=_0x14c74a(0x26e),_0x44aefa[_0x44aefa[_0x14c74a(0x2b8)]=0x32cb]=_0x14c74a(0x2b8),_0x44aefa[_0x44aefa['UNRECOGNIZED']=-0x1]=_0x14c74a(0x232),_0x44aefa))(Lt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x2450c7,_0x47438a,_0xe7ba73,_0x15520f)=>{const _0x51e4e0=_0x14c74a;for(var _0x2d3d84=_0x15520f>0x1?void 0x0:_0x15520f?pn(_0x47438a,_0xe7ba73):_0x47438a,_0xc0cbd6=_0x2450c7[_0x51e4e0(0x2f1)]-0x1,_0x2c5ab0;_0xc0cbd6>=0x0;_0xc0cbd6--)(_0x2c5ab0=_0x2450c7[_0xc0cbd6])&&(_0x2d3d84=_0x2c5ab0(_0x2d3d84)||_0x2d3d84);return _0x2d3d84;},be=(_0x4ec48c,_0x24cf8f)=>(_0x3f4cf2,_0xd45156)=>_0x24cf8f(_0x3f4cf2,_0xd45156,_0x4ec48c);let nt=class extends _0xdd38f3{constructor(_0x3328c5,_0x58f72a,_0x403c27){const _0xb51ede=_0x14c74a;super(),this[_0xb51ede(0x2b2)]=_0x3328c5,this[_0xb51ede(0x168)]=_0x58f72a,this[_0xb51ede(0x1db)]=_0x403c27;}async['runOnServer'](_0x3262ee,_0xf3f9f9,_0x254b94,..._0x1692e1){const _0x2b62b5=_0x14c74a;var _0x56d84f,_0x551066,_0x5ba32f,_0x3c17d6;const _0x21655a=this[_0x2b62b5(0x2b2)][_0x2b62b5(0x1c7)]();if(!_0x21655a)throw new Error(_0x2b62b5(0x2ab));const _0x553625=((_0x56d84f=this[_0x2b62b5(0x1db)][_0x2b62b5(0x2f9)](_0xf440f5))!=null?_0x56d84f:_0x5c2877)+'/'+_0x3262ee+_0x2b62b5(0x259)+_0xf3f9f9,_0x572dac=new URL(window[_0x2b62b5(0x1de)][_0x2b62b5(0x2a9)]),_0x42604a={'scriptId':_0x3262ee,'runId':(_0x551066=_0x572dac[_0x2b62b5(0x229)]['get'](_0x2b62b5(0x2bc)))!=null?_0x551066:'','function':_0xf3f9f9,'unitId':_0x21655a[_0x2b62b5(0x20f)](),'argsOfFunction':JSON[_0x2b62b5(0x2fa)](_0x1692e1),'invokeId':(_0x5ba32f=_0x254b94[_0x2b62b5(0x301)])!=null?_0x5ba32f:'','executionId':(_0x3c17d6=_0x254b94[_0x2b62b5(0x2fb)])!=null?_0x3c17d6:''};try{const _0x1dafe4=await this[_0x2b62b5(0x168)][_0x2b62b5(0x1c3)](_0x553625,{'body':_0x42604a});return _0x1dafe4[_0x2b62b5(0x2ee)][_0x2b62b5(0x170)]&&_0x1dafe4[_0x2b62b5(0x2ee)]['error'][_0x2b62b5(0x1f1)]!==Lt['OK']?'Failed':_0x1dafe4['body'][_0x2b62b5(0x186)];}catch{return _0x2b62b5(0x1a1);}}};nt=Cn([be(0x0,_0x185030),be(0x1,_0x4fff92(_0x5ef031)),be(0x2,_0x1b5145)],nt);const rt=0x7530,ot=_0x14c74a(0x2d5);class Fn extends _0xdd38f3{constructor(){const _0x110374=_0x14c74a;super(),_(this,'_id',_0x4c97f0()),_(this,_0x110374(0x32f),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x110374(0x2d0),null),_(this,_0x110374(0x221),new Map()),_(this,'_unitStatus',new Map()),this[_0x110374(0x270)]();}[_0x14c74a(0x26a)](){const _0x5e05c3=_0x14c74a;super[_0x5e05c3(0x26a)](),this['_clearOtherTimers'][_0x5e05c3(0x280)]((_0x4b6c87,_0x5e231a)=>this[_0x5e05c3(0x34a)](_0x5e231a)),this[_0x5e05c3(0x2d0)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x14c74a(0x2f6)](_0x13f11c){const _0xb5e2b7=_0x14c74a;return this[_0xb5e2b7(0x16a)](_0x13f11c)[_0xb5e2b7(0x184)](_0x30f71e());}[_0x14c74a(0x1e0)](_0x459933){const _0x893fd1=_0x14c74a;this[_0x893fd1(0x32f)][_0x893fd1(0x320)]===0x0&&this[_0x893fd1(0x324)](),this[_0x893fd1(0x32f)][_0x893fd1(0x356)](_0x459933),this[_0x893fd1(0x319)]({'type':0x0,'memberID':this[_0x893fd1(0x1b1)],'unitIDs':[_0x459933],'isForwarded':!0x1});}[_0x14c74a(0x1d0)](_0x4b6974){const _0x22b2fc=_0x14c74a;this[_0x22b2fc(0x32f)]['delete'](_0x4b6974),this['_selfUnitIDs'][_0x22b2fc(0x320)]===0x0&&this['_heartbeatTimer']&&window[_0x22b2fc(0x353)](this[_0x22b2fc(0x2d0)]);}[_0x14c74a(0x270)](){const _0x4afed8=_0x14c74a;this[_0x4afed8(0x2d1)](_0x1799ad(_0xf30f0(window,_0x4afed8(0x284))[_0x4afed8(0x1c9)](_0x4234f5=>{const _0x286ed0=_0x4afed8;if(_0x4234f5[_0x286ed0(0x2ce)]!==ot||!_0x4234f5[_0x286ed0(0x182)])return;const _0x32499a=JSON[_0x286ed0(0x22d)](_0x4234f5[_0x286ed0(0x182)]);this[_0x286ed0(0x2de)](_0x32499a);}))),window['addEventListener']('unload',()=>this[_0x4afed8(0x319)]({'type':0x1,'memberID':this[_0x4afed8(0x1b1)],'unitIDs':Array[_0x4afed8(0x1c2)](this[_0x4afed8(0x32f)])}));}[_0x14c74a(0x2de)](_0x15d371){const _0x408b0e=_0x14c74a;switch(_0x15d371['type']){case 0x0:this['_handleJoinEvent'](_0x15d371);break;case 0x1:this[_0x408b0e(0x295)](_0x15d371);break;case 0x2:this[_0x408b0e(0x25e)](_0x15d371);break;}}[_0x14c74a(0x1a7)](_0x32da83){const _0x584d0c=_0x14c74a,{unitIDs:_0x2f2cc5,memberID:_0x383f26,isForwarded:_0x13d74a}=_0x32da83;_0x2f2cc5[_0x584d0c(0x280)](_0xd7e0a6=>{const _0xc91a2=_0x584d0c;if(!_0x13d74a&&this['_unitOnClients'][_0xc91a2(0x21c)](_0xd7e0a6)&&this[_0xc91a2(0x16a)](_0xd7e0a6)['next'](_0x325b8e[_0xc91a2(0x262)]),!this[_0xc91a2(0x1fe)]['has'](_0xd7e0a6)||!this['_unitOnClients'][_0xc91a2(0x352)](_0xd7e0a6)[_0xc91a2(0x21c)](_0x383f26)){const _0x416c25=this[_0xc91a2(0x1fe)][_0xc91a2(0x352)](_0xd7e0a6)||new Set();_0x416c25[_0xc91a2(0x356)](_0x383f26),this[_0xc91a2(0x1fe)][_0xc91a2(0x314)](_0xd7e0a6,_0x416c25),this[_0xc91a2(0x267)](_0x383f26);}}),_0x13d74a||this[_0x584d0c(0x319)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x584d0c(0x32f)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4ee3a7){const _0x42389b=_0x14c74a;this['_removeClearOtherTimer'](_0x4ee3a7);const _0x4ff4b3=window[_0x42389b(0x33a)](()=>{const _0x41b90e=_0x42389b;this['_unitOnClients'][_0x41b90e(0x280)](_0x116406=>{const _0x2faefc=_0x41b90e;_0x116406[_0x2faefc(0x290)](_0x4ee3a7);});},rt*0x2);this[_0x42389b(0x221)][_0x42389b(0x314)](_0x4ee3a7,_0x4ff4b3);}[_0x14c74a(0x34a)](_0x2fddea){const _0x1c8b64=_0x14c74a;if(this['_clearOtherTimers'][_0x1c8b64(0x21c)](_0x2fddea)){const _0x21ecc4=this['_clearOtherTimers'][_0x1c8b64(0x352)](_0x2fddea);_0x21ecc4&&window[_0x1c8b64(0x181)](_0x21ecc4),this['_clearOtherTimers'][_0x1c8b64(0x314)](_0x2fddea,null);}}[_0x14c74a(0x295)](_0x3e199f){const _0x4566d4=_0x14c74a,{memberID:_0x16a25f,unitIDs:_0x5edfd2}=_0x3e199f;_0x5edfd2[_0x4566d4(0x280)](_0x299a8b=>{const _0x3481c4=_0x4566d4;var _0x3ca754;const _0x2e20ea=this[_0x3481c4(0x1fe)][_0x3481c4(0x352)](_0x299a8b);_0x2e20ea&&(_0x2e20ea[_0x3481c4(0x290)](_0x16a25f),(_0x3ca754=this[_0x3481c4(0x16a)](_0x299a8b))==null||_0x3ca754['next'](_0x2e20ea[_0x3481c4(0x320)]===0x0?_0x325b8e['NO_OTHER_CLIENTS_EDITING']:_0x325b8e['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x16a25f);}[_0x14c74a(0x25e)](_0x10393c){const _0x6029d6=_0x14c74a;this[_0x6029d6(0x267)](_0x10393c['memberID']);}[_0x14c74a(0x319)](_0xa3cd1b){const _0x52946e=_0x14c74a;localStorage[_0x52946e(0x242)](ot,JSON['stringify'](_0xa3cd1b));}['_scheduleHeartbeat'](){const _0x1f22fc=_0x14c74a;this[_0x1f22fc(0x2d0)]=window[_0x1f22fc(0x1e1)](()=>{const _0x5c125a=_0x1f22fc;this[_0x5c125a(0x319)]({'type':0x2,'memberID':this[_0x5c125a(0x1b1)]});},rt);}[_0x14c74a(0x16a)](_0x3879cf){const _0xd3cf4b=_0x14c74a;return this[_0xd3cf4b(0x355)][_0xd3cf4b(0x21c)](_0x3879cf)||this[_0xd3cf4b(0x355)][_0xd3cf4b(0x314)](_0x3879cf,new _0x1bb8bf(_0x325b8e['NO_OTHER_CLIENTS_EDITING'])),this[_0xd3cf4b(0x355)][_0xd3cf4b(0x352)](_0x3879cf);}}export{it as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Ut as IURLService,nt as RemoteUniscriptService,Xi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
1
+ const _0x387a6c=_0x3b49;(function(_0x4038cf,_0x4380b0){const _0xcdf84c=_0x3b49,_0x582646=_0x4038cf();while(!![]){try{const _0x2acfdc=parseInt(_0xcdf84c(0xaa))/0x1+-parseInt(_0xcdf84c(0x259))/0x2+parseInt(_0xcdf84c(0x11c))/0x3+-parseInt(_0xcdf84c(0xe6))/0x4+-parseInt(_0xcdf84c(0x135))/0x5*(-parseInt(_0xcdf84c(0x131))/0x6)+parseInt(_0xcdf84c(0x241))/0x7+-parseInt(_0xcdf84c(0x20f))/0x8*(parseInt(_0xcdf84c(0x15e))/0x9);if(_0x2acfdc===_0x4380b0)break;else _0x582646['push'](_0x582646['shift']());}catch(_0x572f50){_0x582646['push'](_0x582646['shift']());}}}(_0x5112,0xbbd26));var xt=Object[_0x387a6c(0x1ac)],Bt=(_0x146ce1,_0x355f28,_0x2be638)=>_0x355f28 in _0x146ce1?xt(_0x146ce1,_0x355f28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2be638}):_0x146ce1[_0x355f28]=_0x2be638,_=(_0x5d4214,_0x4f50f6,_0x33c581)=>Bt(_0x5d4214,typeof _0x4f50f6!=_0x387a6c(0x164)?_0x4f50f6+'':_0x4f50f6,_0x33c581);import{jsx as _0x197afe,jsxs as _0x37aa25}from'react/jsx-runtime';import{CollaborationStatus as _0x16ebd1,CollaborationSessionService as _0x4de447,CollaborationController as _0x164730,DataLoaderService as _0x5a84a9,MemberService as _0x33f98b,SessionStatus as _0x3ce590,ILocalCacheService as _0xd40667,CollaborationUIEventService as _0x57bb0b,CollaborationUIEventId as _0x322b24,DocCollaborationEntity as _0x36f38d,getLocalCacheKey as _0x5ed85d,LOCAL_CACHE_INTERVAL as _0x2f0b37,LOCAL_CACHE_INTERVAL_KEY as _0x2de7cd,UniverCollaborationClientPlugin as _0xd6296b,CollaborationSocketService as _0x44e1cb,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x101c9,DEFAULT_WS_SESSION_TICKET_URL as _0x396309,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x40ce8b,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x5d6d31,UnitStatus as _0xbe51a0}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x4ec1de,IUniverInstanceService as _0x346188,Inject as _0x16284c,Injector as _0x15fcf5,Disposable as _0x67252a,createIdentifier as _0x23026d,ILogService as _0x2528d2,ICommandService as _0x20eac8,Optional as _0x58e1f0,RxDisposable as _0x4aac8c,Workbook as _0x201f7e,DOC_RANGE_TYPE as _0x2806f3,debounce as _0x2ed8d9,Rectangle as _0x28647f,DisposableCollection as _0x243838,toDisposable as _0x455292,UniverInstanceType as _0x56af0b,generateRandomId as _0x31f7dd,COLORS as _0x4d54ff,ColorKit as _0x411df9,ThemeService as _0x3cd190,fromEventSubject as _0x224409,Tools as _0x3599a7,CommandType as _0x2e5b40,IConfigService as _0x13ae52,ILocalStorageService as _0x54f7c7,DependentOn as _0x50a827,Plugin as _0x9c3463,merge as _0x3bb9b4,registerDependencies as _0x2ccd7f,mergeOverrideWithDependencies as _0x9a1dc,touchDependencies as _0x28e28e}from'@univerjs/core';import{useObservable as _0xb6c48b,useDependency as _0x37c484,IUIPartsService as _0x37ba6b,BuiltInUIPart as _0x56652e,connectInjector as _0x39d4f0,IBeforeCloseService as _0x14e401,IMessageService as _0x1ce96a,INotificationService as _0x127c7b}from'@univerjs/ui';import{BehaviorSubject as _0x58482e,switchMap as _0x1040b7,of as _0x21fe93,takeUntil as _0x3b5c1e,debounceTime as _0x3943e3,Subject as _0x4dc534,filter as _0x17148e,merge as _0x5b68de,combineLatest as _0x5f2d2b,fromEvent as _0x8cd590,shareReplay as _0x3fba01,mapTo as _0x2fceac,distinctUntilChanged as _0x5c7a4c}from'rxjs';import{Tooltip as _0xb75d8b,clsx as _0x78b738,MessageType as _0x8df752}from'@univerjs/design';import{forwardRef as _0x1cd818,useRef as _0x5c3ae4,createElement as _0x306951,useCallback as _0x8c9352}from'react';import{IRemoteInstanceService as _0x2c38ef}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x3829cd,RefRangeService as _0x33abe1,SetSelectionsOperation as _0xc3ee7a,SheetsSelectionsService as _0x25df48,EffectRefRangId as _0x58bab1,handleIRemoveRow as _0xc80624,handleIRemoveCol as _0x69f605,handleMoveRange as _0x4d0ce4,handleInsertRow as _0x33a142,handleInsertRangeMoveRight as _0x121e42,handleInsertRangeMoveDown as _0x2122d,handleInsertCol as _0x46714b,handleDeleteRangeMoveUp as _0x32faca,handleDeleteRangeMoveLeft as _0x1705f9,runRefRangeMutations as _0x20f139}from'@univerjs/sheets';import{Shape as _0x4bb729,Rect as _0x3e5a9a,getColor as _0x451101,RegularPolygon as _0x2eb7bf,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x36ec45,Vector2 as _0x407e18,SHEET_VIEWPORT_KEY as _0x2bac50,IRenderManagerService as _0x3f3da5}from'@univerjs/engine-render';import{ISocketService as _0x21f375,WebSocketService as _0x426b55,HTTPService as _0x3f477d}from'@univerjs/network';import{IDocClipboardService as _0x59acd4,NodePositionConvertToCursor as _0x5c8eeb,NodePositionConvertToRectRange as _0x4ccdf3,TEXT_RANGE_LAYER_INDEX as _0x2cd66c,SetDocZoomRatioOperation as _0x7e2ccb,DocIMEInputManagerService as _0x83a8f0,DocStateChangeManagerService as _0x13bc30}from'@univerjs/docs-ui';import{IImageIoService as _0x34b0db}from'@univerjs/drawing';import{ITransformService as _0x55f0f8,CollaborationEvent as _0x5aac10,isTransformMutationFailure as _0x3ef292,isTransformMutationsWithChangesetSuccess as _0x494bba,RevisionService as _0x21b73a,ISnapshotServerService as _0x342cf1}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x1891ef,RichTextEditingMutation as _0x158817,DocSelectionManagerService as _0x10f312,DocSkeletonManagerService as _0x3d676b}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x42e1a3,serializeRangeWithSheet as _0x5a1021}from'@univerjs/engine-formula';import{map as _0x570065,filter as _0x497979,throttleTime as _0x5cfbe3,takeUntil as _0x1e4828,switchMap as _0x24be1a}from'rxjs/operators';import{SheetSkeletonManagerService as _0x1256e1,getCoordByCell as _0x3791d8,getSheetObject as _0x49466e}from'@univerjs/sheets-ui';var v=function(){const _0x5169a3=_0x387a6c;return v=Object[_0x5169a3(0x1cf)]||function(_0x2e02b4){const _0x318d15=_0x5169a3;for(var _0x2446df,_0x32e966=0x1,_0x15bd0c=arguments[_0x318d15(0x23e)];_0x32e966<_0x15bd0c;_0x32e966++){_0x2446df=arguments[_0x32e966];for(var _0x2de50a in _0x2446df)Object[_0x318d15(0x25e)]['hasOwnProperty'][_0x318d15(0xc7)](_0x2446df,_0x2de50a)&&(_0x2e02b4[_0x2de50a]=_0x2446df[_0x2de50a]);}return _0x2e02b4;},v[_0x5169a3(0x89)](this,arguments);},ci=function(_0x5bb94a,_0x480ffe){const _0x48eb8a=_0x387a6c;var _0x20c527={};for(var _0x48674c in _0x5bb94a)Object['prototype'][_0x48eb8a(0x156)][_0x48eb8a(0xc7)](_0x5bb94a,_0x48674c)&&_0x480ffe['indexOf'](_0x48674c)<0x0&&(_0x20c527[_0x48674c]=_0x5bb94a[_0x48674c]);if(_0x5bb94a!=null&&typeof Object[_0x48eb8a(0x1a4)]==_0x48eb8a(0x1a8)){for(var _0x544365=0x0,_0x48674c=Object[_0x48eb8a(0x1a4)](_0x5bb94a);_0x544365<_0x48674c[_0x48eb8a(0x23e)];_0x544365++)_0x480ffe[_0x48eb8a(0x17c)](_0x48674c[_0x544365])<0x0&&Object[_0x48eb8a(0x25e)]['propertyIsEnumerable'][_0x48eb8a(0xc7)](_0x5bb94a,_0x48674c[_0x544365])&&(_0x20c527[_0x48674c[_0x544365]]=_0x5bb94a[_0x48674c[_0x544365]]);}return _0x20c527;},ke=_0x1cd818(function(_0x3b4497,_0x5a65c6){const _0xc90010=_0x387a6c;var _0x2430ff=_0x3b4497[_0xc90010(0x165)],_0x1bdfbb=_0x3b4497['id'],_0x50fdf4=_0x3b4497[_0xc90010(0x139)],_0x383178=_0x3b4497[_0xc90010(0x110)],_0x526675=ci(_0x3b4497,['icon','id',_0xc90010(0x139),'extend']),_0x39add8=_0xc90010(0x289)['concat'](_0x1bdfbb,'\x20')['concat'](_0x50fdf4||'')[_0xc90010(0x249)](),_0x519f04=_0x5c3ae4('_'[_0xc90010(0x193)](hi()));return Rt(_0x2430ff,''['concat'](_0x1bdfbb),{'defIds':_0x2430ff['defIds'],'idSuffix':_0x519f04[_0xc90010(0x189)]},v({'ref':_0x5a65c6,'className':_0x39add8},_0x526675),_0x383178);});function Rt(_0x580612,_0x5f1e33,_0x437cb2,_0x2708d5,_0x440e66){const _0x2aa6d2=_0x387a6c;return _0x306951(_0x580612[_0x2aa6d2(0x20d)],v(v({'key':_0x5f1e33},li(_0x580612,_0x437cb2,_0x440e66)),_0x2708d5),(_i(_0x580612,_0x437cb2)[_0x2aa6d2(0x20c)]||[])['map'](function(_0x44645b,_0x4dfd35){const _0x339158=_0x2aa6d2;return Rt(_0x44645b,''['concat'](_0x5f1e33,'-')[_0x339158(0x193)](_0x580612[_0x339158(0x20d)],'-')[_0x339158(0x193)](_0x4dfd35),_0x437cb2,void 0x0,_0x440e66);}));}function li(_0x178431,_0xf90211,_0x182126){const _0x19c5d8=_0x387a6c;var _0x5514cf=v({},_0x178431['attrs']);_0x182126!=null&&_0x182126[_0x19c5d8(0x206)]&&_0x5514cf[_0x19c5d8(0x22e)]==='colorChannel1'&&(_0x5514cf['fill']=_0x182126[_0x19c5d8(0x206)]),_0x178431['tag']===_0x19c5d8(0xff)&&_0x5514cf['id']&&(_0x5514cf['id']=_0x5514cf['id']+_0xf90211[_0x19c5d8(0x176)]),Object[_0x19c5d8(0x256)](_0x5514cf)[_0x19c5d8(0x146)](function(_0xf3a10b){const _0x528d77=_0x19c5d8;var _0x45ac20=_0xf3a10b[0x0],_0x65eebd=_0xf3a10b[0x1];_0x45ac20===_0x528d77(0xff)&&typeof _0x65eebd==_0x528d77(0xdf)&&(_0x5514cf[_0x45ac20]=_0x65eebd[_0x528d77(0xf4)](/url\(#(.*)\)/,_0x528d77(0x1e4)[_0x528d77(0x193)](_0xf90211[_0x528d77(0x176)],')')));});var _0x899703=_0xf90211[_0x19c5d8(0x1d6)];return!_0x899703||_0x899703[_0x19c5d8(0x23e)]===0x0||(_0x178431['tag']==='use'&&_0x5514cf[_0x19c5d8(0x1b1)]&&(_0x5514cf[_0x19c5d8(0x1b1)]=_0x5514cf['xlink:href']+_0xf90211[_0x19c5d8(0x176)]),Object['entries'](_0x5514cf)[_0x19c5d8(0x146)](function(_0x3c670e){const _0x5541fe=_0x19c5d8;var _0x4d9980=_0x3c670e[0x0],_0x5ed54b=_0x3c670e[0x1];typeof _0x5ed54b==_0x5541fe(0xdf)&&(_0x5514cf[_0x4d9980]=_0x5ed54b[_0x5541fe(0xf4)](/url\(#(.*)\)/,_0x5541fe(0x1e4)[_0x5541fe(0x193)](_0xf90211[_0x5541fe(0x176)],')')));})),_0x5514cf;}function _i(_0x1b0864,_0xf32f3d){const _0x4251cf=_0x387a6c;var _0x28432f,_0x559aa4=_0xf32f3d[_0x4251cf(0x1d6)];return!_0x559aa4||_0x559aa4[_0x4251cf(0x23e)]===0x0?_0x1b0864:_0x1b0864[_0x4251cf(0x20d)]==='defs'&&(!((_0x28432f=_0x1b0864[_0x4251cf(0x20c)])===null||_0x28432f===void 0x0)&&_0x28432f[_0x4251cf(0x23e)])?v(v({},_0x1b0864),{'children':_0x1b0864[_0x4251cf(0x20c)][_0x4251cf(0xb9)](function(_0x17aefb){const _0x38f91c=_0x4251cf;return typeof _0x17aefb['attrs']['id']==_0x38f91c(0xdf)&&_0x559aa4&&_0x559aa4[_0x38f91c(0x19f)](_0x17aefb['attrs']['id'])?v(v({},_0x17aefb),{'attrs':v(v({},_0x17aefb[_0x38f91c(0x21a)]),{'id':_0x17aefb[_0x38f91c(0x21a)]['id']+_0xf32f3d[_0x38f91c(0x176)]})}):_0x17aefb;})}):_0x1b0864;}function hi(){const _0x21a1c6=_0x387a6c;return Math[_0x21a1c6(0x14d)]()[_0x21a1c6(0x242)](0x24)[_0x21a1c6(0x1d0)](0x2,0x8);}ke[_0x387a6c(0x10b)]=_0x387a6c(0x229);var ui={'tag':_0x387a6c(0xb6),'attrs':{'xmlns':_0x387a6c(0x26b),'fill':_0x387a6c(0x23c),'viewBox':_0x387a6c(0x14a),'width':_0x387a6c(0x1f5),'height':_0x387a6c(0x1f5)},'children':[{'tag':'g','attrs':{'clipPath':_0x387a6c(0xec)},'children':[{'tag':_0x387a6c(0x1cb),'attrs':{'stroke':_0x387a6c(0xf5),'d':_0x387a6c(0x1ae),'strokeLinecap':_0x387a6c(0x240),'strokeLinejoin':_0x387a6c(0x240),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x387a6c(0x1c7),'attrs':{'id':_0x387a6c(0x254)},'children':[{'tag':_0x387a6c(0x1cb),'attrs':{'fill':_0x387a6c(0x222),'d':_0x387a6c(0x1fc)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Dt=_0x1cd818(function(_0x2bb5f9,_0x45a8e6){const _0x2792b3=_0x387a6c;return _0x306951(ke,Object['assign']({},_0x2bb5f9,{'id':_0x2792b3(0x1e0),'ref':_0x45a8e6,'icon':ui}));});Dt[_0x387a6c(0x10b)]=_0x387a6c(0x1e6);var di={'tag':'svg','attrs':{'xmlns':_0x387a6c(0x26b),'fill':_0x387a6c(0x23c),'viewBox':_0x387a6c(0x284),'width':_0x387a6c(0x1f5),'height':_0x387a6c(0x1f5)},'children':[{'tag':'g','attrs':{'clipPath':_0x387a6c(0x11b)},'children':[{'tag':_0x387a6c(0x1cb),'attrs':{'stroke':_0x387a6c(0xf5),'d':_0x387a6c(0x1c3),'strokeLinecap':'round','strokeLinejoin':_0x387a6c(0x240),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x387a6c(0x1c7),'attrs':{'id':_0x387a6c(0x173)},'children':[{'tag':_0x387a6c(0x1cb),'attrs':{'fill':_0x387a6c(0x222),'d':_0x387a6c(0x1fc),'transform':_0x387a6c(0xf8)}}]}]}],'defIds':[_0x387a6c(0x173)]},Nt=_0x1cd818(function(_0x4b3c15,_0x6f34af){const _0xab245b=_0x387a6c;return _0x306951(ke,Object[_0xab245b(0x1cf)]({},_0x4b3c15,{'id':'on-line-icon','ref':_0x6f34af,'icon':di}));});Nt[_0x387a6c(0x10b)]=_0x387a6c(0x1bb);function fi(_0x165574){const _0x2ea8a4=_0x387a6c;switch(_0x165574){case _0x16ebd1[_0x2ea8a4(0x1b9)]:return _0x2ea8a4(0x287);case _0x16ebd1['CONFLICT']:return _0x2ea8a4(0x1ee);case _0x16ebd1[_0x2ea8a4(0x140)]:return _0x2ea8a4(0x122);case _0x16ebd1[_0x2ea8a4(0x18f)]:return _0x2ea8a4(0x26f);case _0x16ebd1['AWAITING']:case _0x16ebd1[_0x2ea8a4(0xd0)]:return'collabStatus.syncing';case _0x16ebd1[_0x2ea8a4(0x263)]:case _0x16ebd1[_0x2ea8a4(0xf6)]:return _0x2ea8a4(0xfd);}}function Si(_0x37756e){const _0x1ed126=_0x387a6c,{status$:_0x19a91f}=_0x37756e,_0x29709c=_0xb6c48b(_0x19a91f,_0x16ebd1['NOT_COLLAB']),_0x2c4ae0=_0x37c484(_0x4ec1de),_0x4d4e92=_0x37c484(_0x4de447),_0x1b40bc=_0x29709c!==_0x16ebd1[_0x1ed126(0x1b9)],_0x1d9e40=_0x2c4ae0['t'](fi(_0x29709c)),_0x29daa5=_0x1b40bc?_0x197afe(Nt,{}):_0x197afe(Dt,{}),_0x316887=_0x8c9352(()=>{const _0xad8cc5=_0x1ed126;_0x1b40bc||_0x4d4e92[_0xad8cc5(0x132)]();},[_0x1b40bc,_0x4d4e92]);function _0xf880ce(){const _0x2579ec=_0x1ed126;return _0x37aa25('div',{'className':_0x2579ec(0x219),'onClick':_0x316887,'children':[_0x197afe('div',{'className':_0x78b738(_0x2579ec(0x1b5),{'univer-text-green-500':_0x1b40bc,'univer-text-red-500':!_0x1b40bc}),'children':_0x29daa5}),_0x197afe('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x1d9e40})]});}return _0x1b40bc?_0xf880ce():_0x197afe(_0xb75d8b,{'title':_0x2c4ae0['t']('collab-client.tooltip.reconnect'),'children':_0xf880ce()});}var mi=Object[_0x387a6c(0x147)],Ii=(_0x39d9ce,_0x2749da,_0x57f2da,_0x4345c9)=>{const _0x5296b7=_0x387a6c;for(var _0x490377=_0x4345c9>0x1?void 0x0:_0x4345c9?mi(_0x2749da,_0x57f2da):_0x2749da,_0x4ff098=_0x39d9ce[_0x5296b7(0x23e)]-0x1,_0x154952;_0x4ff098>=0x0;_0x4ff098--)(_0x154952=_0x39d9ce[_0x4ff098])&&(_0x490377=_0x154952(_0x490377)||_0x490377);return _0x490377;},q=(_0x30776b,_0x2bc3ee)=>(_0x2eaf01,_0x21a2e7)=>_0x2bc3ee(_0x2eaf01,_0x21a2e7,_0x30776b);let se=class extends _0x67252a{constructor(_0x4aa790,_0x6daf6f,_0x260c56,_0x24732c){const _0x5ae698=_0x387a6c;super(),_(this,'_status$',new _0x58482e(_0x16ebd1[_0x5ae698(0x18f)])),(this[_0x5ae698(0x178)]=_0x4aa790,this['_injector']=_0x6daf6f,this[_0x5ae698(0xd5)]=_0x260c56,this[_0x5ae698(0xd8)]=_0x24732c,this[_0x5ae698(0xdb)](),this['_initStatusListener']());}[_0x387a6c(0x258)](){const _0x461e80=_0x387a6c;this[_0x461e80(0x209)](this[_0x461e80(0x178)][_0x461e80(0x1da)][_0x461e80(0x1ce)](_0x1040b7(()=>{const _0x191773=_0x461e80,_0x4f5ba9=this['_univerInstanceService']['getFocusedUnit']();return _0x4f5ba9?this['_collaborationController'][_0x191773(0x274)](_0x4f5ba9['getUnitId']()):_0x21fe93(null);}),_0x1040b7(_0x2632eb=>_0x2632eb?_0x2632eb[_0x461e80(0x204)]:_0x21fe93(_0x16ebd1[_0x461e80(0x18f)])))[_0x461e80(0x1dd)](_0x4fce5d=>{const _0x352c25=_0x461e80;this[_0x352c25(0x97)][_0x352c25(0x207)](_0x4fce5d);}));}['_initStatusComponent'](){const _0x20e1fa=_0x387a6c;this[_0x20e1fa(0x209)](this[_0x20e1fa(0xd8)][_0x20e1fa(0xe8)](_0x56652e[_0x20e1fa(0x1b7)],()=>_0x39d4f0(vi({'status$':this[_0x20e1fa(0x97)][_0x20e1fa(0x276)]()}),this[_0x20e1fa(0xa8)])));}};se=Ii([q(0x0,_0x346188),q(0x1,_0x16284c(_0x15fcf5)),q(0x2,_0x16284c(_0x164730)),q(0x3,_0x37ba6b)],se);function vi(_0x1a0fdb){const {status$:_0x4426ea}=_0x1a0fdb;return function(){return _0x197afe(Si,{'status$':_0x4426ea});};}const Ut=_0x23026d(_0x387a6c(0xa9));var gi=Object['getOwnPropertyDescriptor'],pi=(_0x425f3b,_0x15e77a,_0x97d9ea,_0x47813e)=>{const _0x6ea058=_0x387a6c;for(var _0x16377f=_0x47813e>0x1?void 0x0:_0x47813e?gi(_0x15e77a,_0x97d9ea):_0x15e77a,_0x18e810=_0x425f3b[_0x6ea058(0x23e)]-0x1,_0x3d178b;_0x18e810>=0x0;_0x18e810--)(_0x3d178b=_0x425f3b[_0x18e810])&&(_0x16377f=_0x3d178b(_0x16377f)||_0x16377f);return _0x16377f;},G=(_0x2cd2ca,_0x4d2f4b)=>(_0xd6870c,_0x30a737)=>_0x4d2f4b(_0xd6870c,_0x30a737,_0x2cd2ca);let ie=class extends _0x4aac8c{constructor(_0x42bf8b,_0x21cc04,_0x269f91,_0x593277,_0x2c5870){const _0x277138=_0x387a6c;super(),this[_0x277138(0x28d)]=_0x42bf8b,this[_0x277138(0x19b)]=_0x21cc04,this[_0x277138(0x98)]=_0x269f91,this['_dataLoaderService']=_0x593277,_0x2c5870?_0x2c5870==null||_0x2c5870['whenReady']()[_0x277138(0x104)](()=>this['_init']()):(this[_0x277138(0x19b)]['debug'](_0x277138(0x223),_0x277138(0xda)),this[_0x277138(0x13d)]());}async[_0x387a6c(0x13d)](){const _0x29d064=_0x387a6c,_0x322497=this[_0x29d064(0x28d)]['getParam'](_0x29d064(0x1b4)),_0x2d4560=this['_urlService']['getParam'](_0x29d064(0x216)),_0x4beb21=this[_0x29d064(0x28d)][_0x29d064(0xc0)]('subunit');if(!_0x322497||!_0x2d4560){this[_0x29d064(0x19b)][_0x29d064(0x91)](_0x29d064(0x223),_0x29d064(0x1c2));return;}const _0x8736b6=await this[_0x29d064(0x255)]['loadUnit'](_0x322497,Number(_0x2d4560),_0x4beb21);_0x8736b6&&_0x8736b6 instanceof _0x201f7e&&this['_setupSubUnitSync'](_0x8736b6);}async[_0x387a6c(0x8d)](_0x34abaa){const _0x1ce1a1=_0x387a6c;await this[_0x1ce1a1(0x273)](_0x34abaa),_0x34abaa[_0x1ce1a1(0x1ca)][_0x1ce1a1(0x1ce)](_0x3b5c1e(this['dispose$']))[_0x1ce1a1(0x1dd)](_0x4ee624=>{_0x4ee624&&this['_updateURLWithCurrentState'](_0x4ee624);}),this[_0x1ce1a1(0x28d)][_0x1ce1a1(0x225)][_0x1ce1a1(0x1ce)](_0x3b5c1e(this[_0x1ce1a1(0xd7)]))[_0x1ce1a1(0x1dd)](()=>this[_0x1ce1a1(0x273)](_0x34abaa));}[_0x387a6c(0x26a)](_0x18e827,_0x2612ff=!0x1){const _0x392795=_0x387a6c,_0x43793d=this['_urlService']['getParam'](_0x392795(0x203));_0x18e827[_0x392795(0x1b6)]()!==_0x43793d&&this[_0x392795(0x28d)][_0x392795(0x1f7)](_0x392795(0x203),_0x18e827['getSheetId'](),_0x2612ff);}async[_0x387a6c(0x273)](_0x21881c){const _0x10a230=_0x387a6c;var _0x359112;const _0x55cc7c=this[_0x10a230(0x28d)]['getParam']('subunit');if(!_0x55cc7c||!_0x21881c['getSheetBySheetId'](_0x55cc7c)){const _0xe64d25=_0x21881c[_0x10a230(0xcf)]()[0x0],_0x20989a=_0x21881c[_0x10a230(0xb2)](_0xe64d25);if(!_0x20989a)return;this[_0x10a230(0x26a)](_0x20989a,!0x0),await this['_commandService'][_0x10a230(0x238)](_0x3829cd['id'],{'unitId':_0x21881c[_0x10a230(0x183)](),'subUnitId':_0xe64d25});return;}((_0x359112=_0x21881c[_0x10a230(0x163)]())==null?void 0x0:_0x359112['getSheetId']())!==_0x55cc7c&&await this[_0x10a230(0x98)][_0x10a230(0x238)](_0x3829cd['id'],{'unitId':_0x21881c[_0x10a230(0x183)](),'subUnitId':_0x55cc7c});}};ie=pi([G(0x0,Ut),G(0x1,_0x2528d2),G(0x2,_0x20eac8),G(0x3,_0x16284c(_0x5a84a9)),G(0x4,_0x58e1f0(_0x2c38ef))],ie);var Ci=Object[_0x387a6c(0x147)],Ei=(_0x2d879c,_0x17b370,_0x55316b,_0x4e1419)=>{const _0x908859=_0x387a6c;for(var _0x2f2e57=_0x4e1419>0x1?void 0x0:_0x4e1419?Ci(_0x17b370,_0x55316b):_0x17b370,_0x441d29=_0x2d879c[_0x908859(0x23e)]-0x1,_0x56ff90;_0x441d29>=0x0;_0x441d29--)(_0x56ff90=_0x2d879c[_0x441d29])&&(_0x2f2e57=_0x56ff90(_0x2f2e57)||_0x2f2e57);return _0x2f2e57;},Je=(_0x669315,_0x223a21)=>(_0x495cb6,_0x259a60)=>_0x223a21(_0x495cb6,_0x259a60,_0x669315);let Ne=class extends _0x4aac8c{constructor(_0x179b7b,_0x1036d4){const _0x7e1166=_0x387a6c;super(),this[_0x7e1166(0x184)]=_0x179b7b,this['_imageIoService']=_0x1036d4,this['_init']();}[_0x387a6c(0x13d)](){const _0x1c79c7=_0x387a6c,_0x1e01c3=this;this[_0x1c79c7(0x209)](this[_0x1c79c7(0x184)][_0x1c79c7(0x1e7)]({'onBeforePasteImage':async _0x114933=>{const _0x1eaae1=_0x1c79c7,_0x2fd3a6=await _0x1e01c3['_imageIoService'][_0x1eaae1(0x26c)](_0x114933);return _0x2fd3a6?{'source':_0x2fd3a6[_0x1eaae1(0x1ef)],'imageSourceType':_0x2fd3a6['imageSourceType']}:null;}}));}};Ne=Ei([Je(0x0,_0x59acd4),Je(0x1,_0x34b0db)],Ne);const Ze=[_0x387a6c(0x188),'jiqing.500',_0x387a6c(0xb3),_0x387a6c(0x13f),_0x387a6c(0xf9),_0x387a6c(0x1af)];class He extends _0x67252a{constructor(){const _0x2a193a=_0x387a6c;super(...arguments),_(this,_0x2a193a(0xae),new Map()),_(this,_0x2a193a(0xc9),0x0);}[_0x387a6c(0x15f)](_0x1d253a){const _0x5e307c=_0x387a6c;if(this[_0x5e307c(0xae)][_0x5e307c(0x20e)](_0x1d253a))return this['_assignedColors'][_0x5e307c(0x224)](_0x1d253a);const _0x4165ae=Ze[this[_0x5e307c(0xc9)]];return this[_0x5e307c(0xc9)]=(this['_colorIndex']+0x1)%Ze[_0x5e307c(0x23e)],this[_0x5e307c(0xae)][_0x5e307c(0x109)](_0x1d253a,_0x4165ae),_0x4165ae;}}function Mt(_0x58f9b2){const _0xfa9cb4=_0x387a6c;let _0x18738e='';for(const _0xdf0888 of _0x58f9b2){const {startOffset:_0x5cf8fc,endOffset:_0x1b8837,isActive:_0xc7e3b3,rangeType:_0x233811,segmentId:_0x14e8db,segmentPage:_0x23ebe8}=_0xdf0888;_0x18738e[_0xfa9cb4(0x23e)]&&(_0x18738e+=','),_0x18738e+=_0x5cf8fc+':'+_0x1b8837+':'+(_0xc7e3b3?'1':'0')+':'+_0x233811+':'+_0x14e8db+':'+_0x23ebe8;}return _0x18738e;}function Oi(_0x5ec787){const _0x3232e9=_0x387a6c,_0x46cad4=_0x5ec787[_0x3232e9(0x233)](','),_0x573bb8=[];for(const _0x37f6b6 of _0x46cad4){const [_0x33a59d,_0x1c75b3,_0x536dd7,_0x4d74ad,_0x570758,_0x3b9385]=_0x37f6b6[_0x3232e9(0x233)](':');_0x573bb8[_0x3232e9(0x22f)]({'startOffset':Number(_0x33a59d),'endOffset':Number(_0x1c75b3),'collapsed':_0x33a59d===_0x1c75b3,'isActive':_0x536dd7==='1','rangeType':_0x4d74ad===_0x2806f3[_0x3232e9(0x18b)]?_0x2806f3[_0x3232e9(0x18b)]:_0x2806f3[_0x3232e9(0x17b)],'segmentId':typeof _0x570758==_0x3232e9(0xdf)?String(_0x570758):'','segmentPage':Number(_0x3b9385!=null?_0x3b9385:-0x1)});}return _0x573bb8['some'](_0x10d762=>_0x10d762['isActive'])||(_0x573bb8[0x0]['isActive']=!0x0),_0x573bb8;}class Fe extends _0x4aac8c{constructor(){const _0x2f9d8e=_0x387a6c;super(...arguments),_(this,'_collabCursorState$',new _0x58482e(null)),_(this,_0x2f9d8e(0x150),this['_collabCursorState$']['asObservable']());}[_0x387a6c(0x20b)](_0x3fb465){const _0xc53d05=_0x387a6c,{unitID:_0x242dfc,memberID:_0x20baab,textRanges:_0x52f4bd}=_0x3fb465,_0x5ed282=Mt(_0x52f4bd);if(_0x5ed282==='')return;const _0x14ccb4={'unitID':_0x242dfc,'memberID':_0x20baab,'selection':_0x5ed282};this['_collabCursorState$'][_0xc53d05(0x207)](_0x14ccb4);}}var bi=Object[_0x387a6c(0x147)],Ti=(_0x40890e,_0x177b2e,_0x4ff312,_0x540504)=>{const _0x34433a=_0x387a6c;for(var _0x5a611c=_0x540504>0x1?void 0x0:_0x540504?bi(_0x177b2e,_0x4ff312):_0x177b2e,_0x258f2d=_0x40890e[_0x34433a(0x23e)]-0x1,_0x2e83f4;_0x258f2d>=0x0;_0x258f2d--)(_0x2e83f4=_0x40890e[_0x258f2d])&&(_0x5a611c=_0x2e83f4(_0x5a611c)||_0x5a611c);return _0x5a611c;},P=(_0x1ba573,_0x5cd8e5)=>(_0x326760,_0x24accd)=>_0x5cd8e5(_0x326760,_0x24accd,_0x1ba573);const Ri=0x12c,Di=0x64;let Ue=class extends _0x4aac8c{constructor(_0x1566cf,_0x178a1b,_0x1e5a8f,_0x1d5df0,_0x3475ee,_0x24b137,_0x1ea6b8,_0x2ae23a,_0x259a73){const _0x2f41ca=_0x387a6c;super(),_(this,'_online',!0x1),_(this,_0x2f41ca(0x13d),!0x1),_(this,_0x2f41ca(0x152),new _0x58482e(new Map())),_(this,_0x2f41ca(0x10a),this['_cursorInfo$'][_0x2f41ca(0x276)]()),_(this,'_roomMembers$',new _0x58482e([])),_(this,'roomMembers$',this[_0x2f41ca(0x117)][_0x2f41ca(0x1ce)](_0x3943e3(Ri))),_(this,_0x2f41ca(0x12e),_0x2ed8d9(_0x4a4b5b=>{const _0x5d93c5=_0x2f41ca,_0x235797={'eventID':_0x5aac10['UPDATE_CURSOR'],'data':{'unitID':this[_0x5d93c5(0x25f)],'memberID':this[_0x5d93c5(0xbc)][_0x5d93c5(0x1ff)](),'selection':Mt(_0x4a4b5b)}};this['_session'][_0x5d93c5(0x18d)](_0x235797,this[_0x5d93c5(0x25f)]);},Di)),(this[_0x2f41ca(0x25f)]=_0x1566cf,this[_0x2f41ca(0xbc)]=_0x178a1b,this[_0x2f41ca(0xa8)]=_0x1e5a8f,this['_colorAssignService']=_0x1d5df0,this[_0x2f41ca(0x24a)]=_0x3475ee,this[_0x2f41ca(0x25a)]=_0x24b137,this[_0x2f41ca(0x8f)]=_0x1ea6b8,this[_0x2f41ca(0x178)]=_0x2ae23a,this[_0x2f41ca(0x98)]=_0x259a73);}get[_0x387a6c(0xeb)](){const _0x481e3c=_0x387a6c;return this[_0x481e3c(0x152)][_0x481e3c(0x1f0)]();}get[_0x387a6c(0x15b)](){const _0x53d869=_0x387a6c;return this[_0x53d869(0x117)][_0x53d869(0x1f0)]();}['dispose'](){const _0x3fcf75=_0x387a6c;super[_0x3fcf75(0x180)](),this[_0x3fcf75(0x152)][_0x3fcf75(0x207)](new Map()),this[_0x3fcf75(0x152)][_0x3fcf75(0xef)](),this[_0x3fcf75(0x117)][_0x3fcf75(0x207)]([]),this[_0x3fcf75(0x117)][_0x3fcf75(0xef)]();}[_0x387a6c(0x1e2)](){const _0x60dd6c=_0x387a6c;this[_0x60dd6c(0x13d)]||(this[_0x60dd6c(0x13d)]=!0x0,this['_session'][_0x60dd6c(0x8e)][_0x60dd6c(0x1ce)](_0x3b5c1e(this[_0x60dd6c(0xd7)]))[_0x60dd6c(0x1dd)](_0x469358=>{const _0x427be3=_0x60dd6c;_0x469358===_0x3ce590[_0x427be3(0x15c)]?this['_toggleOnline']():this[_0x427be3(0x239)]();}),this['_session'][_0x60dd6c(0x1d9)][_0x60dd6c(0x1ce)](_0x3b5c1e(this[_0x60dd6c(0xd7)]))['subscribe'](_0x1c4cef=>{const _0x3a02fd=_0x60dd6c,_0x1cbe4d=_0x1c4cef[_0x3a02fd(0x11e)];_0x1cbe4d===_0x5aac10['UPDATE_CURSOR']&&this[_0x3a02fd(0x127)](_0x1c4cef),_0x1cbe4d===_0x5aac10[_0x3a02fd(0x158)]&&this[_0x3a02fd(0x196)](_0x1c4cef);}),this[_0x60dd6c(0x209)](this[_0x60dd6c(0x98)][_0x60dd6c(0xe9)](_0x30cb65=>{const _0x259427=_0x60dd6c,_0x1f9a4c=_0x30cb65[_0x259427(0x16d)];_0x1f9a4c!=null&&this[_0x259427(0xad)]&&_0x30cb65['id']===_0x1891ef['id']&&_0x1f9a4c[_0x259427(0x19e)]===this[_0x259427(0x25f)]&&_0x1f9a4c[_0x259427(0x1b2)]===!0x1&&_0x1f9a4c[_0x259427(0x9e)]['length']>0x0&&this[_0x259427(0x12e)](_0x1f9a4c['ranges']);})),this['_syncEditingCollabCursorService'][_0x60dd6c(0x150)][_0x60dd6c(0x1ce)](_0x3b5c1e(this['dispose$']))[_0x60dd6c(0x1dd)](_0x999213=>{const _0x1900a5=_0x60dd6c;if((_0x999213==null?void 0x0:_0x999213[_0x1900a5(0x25f)])!==this[_0x1900a5(0x25f)])return;const _0x2ed5de={'eventID':_0x5aac10[_0x1900a5(0x95)],'data':_0x999213};this[_0x1900a5(0x127)](_0x2ed5de);}),this[_0x60dd6c(0x209)](this[_0x60dd6c(0x98)]['onCommandExecuted'](_0x6a4550=>{const _0x1a691f=_0x60dd6c;if(_0x6a4550[_0x1a691f(0x16d)]==null)return;const _0x1536d8=_0x6a4550[_0x1a691f(0x16d)];if(_0x6a4550['id']!==_0x158817['id']||_0x1536d8[_0x1a691f(0x19e)]!==this['unitID'])return;const _0x4c0280={'id':_0x1a691f(0x25b),'params':_0x1536d8},_0x568efd=this[_0x1a691f(0xeb)];for(const [_0x278271,_0x52092a]of _0x568efd){const _0x140e83={'id':_0x1a691f(0x25b),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x52092a['ranges']}},_0x26304c=this[_0x1a691f(0x8f)][_0x1a691f(0x161)](_0x4c0280,_0x140e83,!0x1);if(_0x3ef292(_0x26304c))throw _0x26304c[_0x1a691f(0x1c8)];_0x568efd[_0x1a691f(0x109)](_0x278271,{..._0x52092a,'ranges':_0x26304c[_0x1a691f(0x21b)]['params'][_0x1a691f(0xa2)]});}queueMicrotask(()=>{const _0x48967c=_0x1a691f;this[_0x48967c(0x152)][_0x48967c(0x207)](_0x568efd);});})));}['_onCursorUpdate'](_0xdbd5f){const _0x50dae2=_0x387a6c;var _0x583620,_0x12b5fc;const {memberID:_0x34fb56,selection:_0x5c2b52}=_0xdbd5f['data'],_0x59eb8b=Oi(_0x5c2b52),_0x450b78=(_0x12b5fc=(_0x583620=this[_0x50dae2(0x24a)][_0x50dae2(0xe1)](this[_0x50dae2(0x25f)],_0x34fb56))==null?void 0x0:_0x583620[_0x50dae2(0xa4)])!=null?_0x12b5fc:_0x50dae2(0x83),_0x107c4d={'color':this[_0x50dae2(0xe7)][_0x50dae2(0x15f)](_0x34fb56),'name':_0x450b78,'ranges':_0x59eb8b},_0xa0880=this[_0x50dae2(0xeb)];_0xa0880['set'](_0x34fb56,_0x107c4d),this[_0x50dae2(0x152)]['next'](_0xa0880);}[_0x387a6c(0x196)](_0x357c19){const _0x5e2834=_0x387a6c,{memberID:_0x217d1e}=_0x357c19['data'],_0x16dd3f=this[_0x5e2834(0xeb)];_0x16dd3f['delete'](_0x217d1e),this[_0x5e2834(0x152)][_0x5e2834(0x207)](_0x16dd3f);}['_toggleOnline'](){const _0xf5f164=_0x387a6c;var _0x30dda8;if(this[_0xf5f164(0xad)]=!0x0,((_0x30dda8=this[_0xf5f164(0x178)][_0xf5f164(0xc3)]())==null?void 0x0:_0x30dda8[_0xf5f164(0x183)]())!==this[_0xf5f164(0x25f)])return;const _0x289d3a=this[_0xf5f164(0xa8)][_0xf5f164(0x224)](_0x10f312)['getDocRanges']();Array[_0xf5f164(0x277)](_0x289d3a)&&_0x289d3a['length']>0x0&&this[_0xf5f164(0x12e)](_0x289d3a);}['_toggleOffline'](){const _0x1d154e=_0x387a6c;this[_0x1d154e(0xad)]=!0x1;}};Ue=Ti([P(0x2,_0x16284c(_0x15fcf5)),P(0x3,_0x16284c(He)),P(0x4,_0x16284c(_0x33f98b)),P(0x5,_0x16284c(Fe)),P(0x6,_0x55f0f8),P(0x7,_0x346188),P(0x8,_0x20eac8)],Ue);var Ni=Object[_0x387a6c(0x147)],Ui=(_0x76a986,_0x1841c8,_0xb550c1,_0x23c6d0)=>{const _0x37cc90=_0x387a6c;for(var _0x163722=_0x23c6d0>0x1?void 0x0:_0x23c6d0?Ni(_0x1841c8,_0xb550c1):_0x1841c8,_0x361cf7=_0x76a986[_0x37cc90(0x23e)]-0x1,_0x21a2b9;_0x361cf7>=0x0;_0x361cf7--)(_0x21a2b9=_0x76a986[_0x361cf7])&&(_0x163722=_0x21a2b9(_0x163722)||_0x163722);return _0x163722;},x=(_0x2142d2,_0x34a633)=>(_0x1c72a3,_0x230889)=>_0x34a633(_0x1c72a3,_0x230889,_0x2142d2);const Mi=0x12c,Li=0x64,Pi=()=>{let _0x5aabff=[],_0x47d2a8=!0x1;return _0x19deb4=>{_0x5aabff['push'](_0x19deb4),_0x47d2a8||(_0x47d2a8=!0x0,setTimeout(()=>{_0x5aabff['forEach'](_0x3363ce=>_0x3363ce()),_0x5aabff=[],_0x47d2a8=!0x1;}));};};let Me=class extends _0x4aac8c{constructor(_0x3bf560,_0x14c110,_0x1fc0a0,_0xa8cc3f,_0x4b6366,_0x23f9a0,_0x2ef7e6,_0x1245ee){const _0x1f7196=_0x387a6c;super(),_(this,_0x1f7196(0xad),!0x1),_(this,'_init',!0x1),_(this,_0x1f7196(0x152),new _0x58482e(new Map())),_(this,_0x1f7196(0x10a),this['_cursorInfo$'][_0x1f7196(0x276)]()),_(this,_0x1f7196(0x117),new _0x58482e([])),_(this,_0x1f7196(0xa1),this[_0x1f7196(0x117)][_0x1f7196(0x1ce)](_0x3943e3(Mi))),_(this,_0x1f7196(0x12e),_0x2ed8d9((_0x1ce6c9,_0xd10563)=>{const _0x3f94b5=_0x1f7196,_0x3275b8={'eventID':_0x5aac10['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3f94b5(0xbc)]['getMemberID'](),'selection':_0x5a1021(_0x1ce6c9,_0xd10563['range'])}};this[_0x3f94b5(0xbc)]['send'](_0x3275b8,this[_0x3f94b5(0x25f)]);},Li)),(this[_0x1f7196(0x25f)]=_0x3bf560,this['_session']=_0x14c110,this[_0x1f7196(0xa8)]=_0x1fc0a0,this[_0x1f7196(0xe7)]=_0xa8cc3f,this['_memberService']=_0x4b6366,this[_0x1f7196(0x178)]=_0x23f9a0,this[_0x1f7196(0x98)]=_0x2ef7e6,this['_refRangeService']=_0x1245ee);}get[_0x387a6c(0xeb)](){const _0x17189f=_0x387a6c;return this['_cursorInfo$'][_0x17189f(0x1f0)]();}get[_0x387a6c(0x15b)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0xe7cb1b=_0x387a6c;super[_0xe7cb1b(0x180)](),this[_0xe7cb1b(0x152)]['next'](new Map()),this[_0xe7cb1b(0x152)][_0xe7cb1b(0xef)](),this[_0xe7cb1b(0x117)]['next']([]),this[_0xe7cb1b(0x117)][_0xe7cb1b(0xef)]();}[_0x387a6c(0x1e2)](){const _0x14211e=_0x387a6c;this[_0x14211e(0x13d)]||(this[_0x14211e(0x13d)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x3b5c1e(this[_0x14211e(0xd7)]))['subscribe'](_0x59063e=>{const _0x5f05a1=_0x14211e;_0x59063e===_0x3ce590['ONLINE']?this['_toggleOnline']():this[_0x5f05a1(0x239)]();}),this[_0x14211e(0xbc)]['event$'][_0x14211e(0x1ce)](_0x3b5c1e(this['dispose$']))['subscribe'](_0x242d32=>{const _0x2fab6e=_0x14211e,_0x663163=_0x242d32['eventID'];_0x663163===_0x5aac10[_0x2fab6e(0x95)]&&this[_0x2fab6e(0x127)](_0x242d32),_0x663163===_0x5aac10[_0x2fab6e(0x158)]&&this[_0x2fab6e(0x196)](_0x242d32);}),this[_0x14211e(0x177)](),this['disposeWithMe'](this[_0x14211e(0x98)][_0x14211e(0xe9)](_0xc721b6=>{const _0x2987be=_0x14211e;if(this[_0x2987be(0xad)]&&_0xc721b6['id']===_0xc3ee7a['id']&&_0xc721b6[_0x2987be(0x16d)][_0x2987be(0x19e)]===this[_0x2987be(0x25f)]){const _0x36d668=_0xc721b6['params'];this[_0x2987be(0x12e)](_0x36d668[_0x2987be(0x18e)],_0x36d668[_0x2987be(0x1ad)][0x0]);}})));}[_0x387a6c(0x127)](_0x26d592){const _0x282bdc=_0x387a6c;var _0x24a7a0,_0x1ffe8e;const {memberID:_0x422668,selection:_0x453d27}=_0x26d592[_0x282bdc(0x92)],{sheetName:_0x27b3c7,range:_0x58ba7b}=_0x42e1a3(_0x453d27),_0x3ab611={'name':(_0x1ffe8e=(_0x24a7a0=this[_0x282bdc(0x24a)][_0x282bdc(0xe1)](this[_0x282bdc(0x25f)],_0x422668))==null?void 0x0:_0x24a7a0[_0x282bdc(0xa4)])!=null?_0x1ffe8e:_0x282bdc(0x83),'range':this['_getMergeRange'](_0x27b3c7,_0x58ba7b),'sheetID':_0x27b3c7,'color':this[_0x282bdc(0xe7)][_0x282bdc(0x15f)](_0x422668),'selection':_0x453d27},_0x24906c=this['cursorInfo'];_0x24906c['set'](_0x422668,_0x3ab611),this[_0x282bdc(0x152)][_0x282bdc(0x207)](_0x24906c);}['_onCursorDelete'](_0x39ee59){const _0x703dec=_0x387a6c,{memberID:_0x3fedfb}=_0x39ee59[_0x703dec(0x92)],_0x386d0d=this[_0x703dec(0xeb)];_0x386d0d['delete'](_0x3fedfb),this['_cursorInfo$'][_0x703dec(0x207)](_0x386d0d);}[_0x387a6c(0x272)](_0x4043f8,_0x40129d){const _0x42b88f=_0x387a6c;var _0x230dec,_0x2d542f;const _0x56543c=(_0x2d542f=(_0x230dec=this[_0x42b88f(0x178)][_0x42b88f(0x1d8)](this['unitID']))==null?void 0x0:_0x230dec[_0x42b88f(0xb2)](_0x4043f8))==null?void 0x0:_0x2d542f[_0x42b88f(0x15d)]();return(_0x56543c==null?void 0x0:_0x56543c[_0x42b88f(0x179)](_0x166372=>_0x28647f['contains'](_0x166372,_0x40129d)))||_0x40129d;}[_0x387a6c(0x177)](){const _0x2360e7=_0x387a6c,_0x42e51e=new _0x243838(),_0x5486ef=Pi(),_0x28e020=()=>{const _0x30c738=_0x3b49;_0x42e51e[_0x30c738(0x180)]();const _0x18113e=(_0x19c662,_0x35a8ee,_0x26dfa3,_0x4dc662)=>{const _0x2907f3=_0x30c738;let _0x4532db=[];switch(_0x19c662['id']){case _0x58bab1[_0x2907f3(0x167)]:{_0x4532db=_0x1705f9(_0x19c662,_0x4dc662);break;}case _0x58bab1[_0x2907f3(0x96)]:{_0x4532db=_0x32faca(_0x19c662,_0x4dc662);break;}case _0x58bab1['InsertColCommandId']:{_0x4532db=_0x46714b(_0x19c662,_0x4dc662);break;}case _0x58bab1[_0x2907f3(0xfb)]:{_0x4532db=_0x2122d(_0x19c662,_0x4dc662);break;}case _0x58bab1[_0x2907f3(0x1e8)]:{_0x4532db=_0x121e42(_0x19c662,_0x4dc662);break;}case _0x58bab1[_0x2907f3(0xd3)]:{_0x4532db=_0x33a142(_0x19c662,_0x4dc662);break;}case _0x58bab1[_0x2907f3(0x12d)]:{_0x4532db=_0x4d0ce4(_0x19c662,_0x4dc662);break;}case _0x58bab1[_0x2907f3(0x1f2)]:{_0x4532db=_0x69f605(_0x19c662,_0x4dc662);break;}case _0x58bab1['RemoveRowCommandId']:{_0x4532db=_0xc80624(_0x19c662,_0x4dc662);break;}}const _0x121e7e=_0x20f139(_0x4532db,_0x4dc662),_0x440165=this[_0x2907f3(0xeb)]['get'](_0x35a8ee);if(_0x440165&&_0x121e7e){const _0x48f350={..._0x440165,'range':_0x121e7e};this[_0x2907f3(0xeb)][_0x2907f3(0x109)](_0x35a8ee,_0x48f350),_0x5486ef(()=>{const _0x4f3617=_0x2907f3,_0x34a567=this[_0x4f3617(0xb1)]['registerRefRange'](_0x121e7e,_0x302456=>(_0x34a567[_0x4f3617(0x180)](),_0x18113e(_0x302456,_0x35a8ee,_0x26dfa3,_0x121e7e)));_0x42e51e[_0x4f3617(0x1d7)](_0x34a567);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x30c738(0x146)]((_0x2b74ac,_0x1a4d8e)=>{const _0x164936=_0x30c738,{range:_0x3a33a1,sheetID:_0x30bb21}=_0x2b74ac,_0x2fc6d5=this[_0x164936(0xb1)][_0x164936(0x1c6)](_0x3a33a1,_0x170676=>(_0x2fc6d5[_0x164936(0x180)](),_0x18113e(_0x170676,_0x1a4d8e,_0x30bb21,_0x3a33a1)));_0x42e51e[_0x164936(0x1d7)](_0x2fc6d5);});};this[_0x2360e7(0x209)](_0x455292(this['_cursorInfo$']['subscribe'](()=>{_0x28e020();})));}[_0x387a6c(0x1a0)](){const _0x56eef1=_0x387a6c;var _0x49bf84,_0x6fe133;if(this['_online']=!0x0,((_0x49bf84=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x49bf84[_0x56eef1(0x183)]())!==this[_0x56eef1(0x25f)])return;const _0x14cb81=(_0x6fe133=this['_injector'][_0x56eef1(0x224)](_0x25df48)[_0x56eef1(0x1ab)]())==null?void 0x0:_0x6fe133[0x0],_0x163d22=this[_0x56eef1(0x178)][_0x56eef1(0x10d)](_0x56af0b['UNIVER_SHEET'])['getActiveSheet']();_0x14cb81&&_0x163d22&&this['_updateLocalCursor'](_0x163d22[_0x56eef1(0x1b6)](),_0x14cb81);}['_toggleOffline'](){this['_online']=!0x1;}};Me=Ui([x(0x2,_0x16284c(_0x15fcf5)),x(0x3,_0x16284c(He)),x(0x4,_0x16284c(_0x33f98b)),x(0x5,_0x346188),x(0x6,_0x20eac8),x(0x7,_0x16284c(_0x33abe1))],Me);var wi=Object['getOwnPropertyDescriptor'],Ai=(_0x5b75de,_0x8eaa43,_0xb5b452,_0x584287)=>{const _0x7cdf32=_0x387a6c;for(var _0x432d2c=_0x584287>0x1?void 0x0:_0x584287?wi(_0x8eaa43,_0xb5b452):_0x8eaa43,_0x5e555e=_0x5b75de[_0x7cdf32(0x23e)]-0x1,_0x3f8776;_0x5e555e>=0x0;_0x5e555e--)(_0x3f8776=_0x5b75de[_0x5e555e])&&(_0x432d2c=_0x3f8776(_0x432d2c)||_0x432d2c);return _0x432d2c;},me=(_0xee946c,_0x419091)=>(_0x4a5b43,_0x32111c)=>_0x419091(_0x4a5b43,_0x32111c,_0xee946c);let F=class extends _0x4aac8c{constructor(_0x26d1bb,_0x1eec9b,_0x52d920){const _0x5f5423=_0x387a6c;super(),_(this,_0x5f5423(0xb8),new Map()),_(this,_0x5f5423(0x28c),new _0x4dc534()),(this[_0x5f5423(0x178)]=_0x26d1bb,this[_0x5f5423(0xa8)]=_0x1eec9b,this[_0x5f5423(0x103)]=_0x52d920,this[_0x5f5423(0x13d)]());}[_0x387a6c(0x180)](){const _0x465c68=_0x387a6c;super['dispose'](),this[_0x465c68(0x28c)][_0x465c68(0xef)](),this[_0x465c68(0xb8)][_0x465c68(0x146)](_0x316054=>_0x316054[_0x465c68(0x180)]());}[_0x387a6c(0xe0)](_0x453afa){const _0x5ed1e6=_0x387a6c;return this[_0x5ed1e6(0xb8)][_0x5ed1e6(0x20e)](_0x453afa)?this[_0x5ed1e6(0xb8)][_0x5ed1e6(0x224)](_0x453afa)['cursorInfo$']:this[_0x5ed1e6(0x28c)]['pipe'](_0x17148e(_0x17f1dd=>_0x17f1dd['unitID']===_0x453afa),_0x1040b7(_0x289d09=>_0x289d09[_0x5ed1e6(0x10a)]));}[_0x387a6c(0x13d)](){const _0x1df556=_0x387a6c;this[_0x1df556(0x178)]['getTypeOfUnitAdded$'](_0x56af0b['UNIVER_SHEET'])[_0x1df556(0x1ce)](_0x3b5c1e(this[_0x1df556(0xd7)]))['subscribe'](async _0x41766a=>{const _0x2708c0=_0x1df556,_0x1cd1a4=_0x41766a[_0x2708c0(0x183)](),_0x53d892=await this[_0x2708c0(0x200)](_0x1cd1a4);this[_0x2708c0(0x28c)][_0x2708c0(0x207)](_0x53d892),this[_0x2708c0(0xb8)][_0x2708c0(0x109)](_0x1cd1a4,_0x53d892);}),this[_0x1df556(0x178)][_0x1df556(0x23f)](_0x56af0b[_0x1df556(0xab)])[_0x1df556(0x1ce)](_0x3b5c1e(this[_0x1df556(0xd7)]))[_0x1df556(0x1ce)](_0x17148e(_0x3f1501=>!_0x3f1501[_0x1df556(0x183)]()['startsWith']('__')))[_0x1df556(0x1dd)](async _0x2afe5f=>{const _0xf0c5e=_0x1df556,_0x52f179=_0x2afe5f[_0xf0c5e(0x183)](),_0x5d908a=await this[_0xf0c5e(0x192)](_0x52f179);this[_0xf0c5e(0x28c)][_0xf0c5e(0x207)](_0x5d908a),this[_0xf0c5e(0xb8)]['set'](_0x52f179,_0x5d908a);}),_0x5b68de(this[_0x1df556(0x178)][_0x1df556(0x12b)](_0x56af0b['UNIVER_DOC']),this['_univerInstanceService'][_0x1df556(0x12b)](_0x56af0b[_0x1df556(0x252)]))['pipe'](_0x3b5c1e(this['dispose$']))[_0x1df556(0x1dd)](_0x4a54d9=>{const _0x544bf8=_0x1df556,_0x522685=_0x4a54d9['getUnitId'](),_0x9d8eaf=this['_entities'][_0x544bf8(0x224)](_0x522685);_0x9d8eaf&&(_0x9d8eaf[_0x544bf8(0x180)](),this[_0x544bf8(0xb8)][_0x544bf8(0xde)](_0x522685));});}async[_0x387a6c(0x200)](_0x21a00f){const _0x4aed5c=_0x387a6c,_0x4221e4=await this['_collabSessionService'][_0x4aed5c(0x138)](_0x21a00f),_0x1a826b=this['_injector'][_0x4aed5c(0x17d)](Me,_0x21a00f,_0x4221e4);return _0x1a826b['init'](),_0x1a826b;}async[_0x387a6c(0x192)](_0x278b10){const _0x250b49=_0x387a6c,_0x288844=await this[_0x250b49(0x103)][_0x250b49(0x138)](_0x278b10),_0x42cd2d=this['_injector'][_0x250b49(0x17d)](Ue,_0x278b10,_0x288844);return _0x42cd2d['init'](),_0x42cd2d;}};F=Ai([me(0x0,_0x346188),me(0x1,_0x16284c(_0x15fcf5)),me(0x2,_0x16284c(_0x4de447))],F);function _0x3b49(_0x5cbd91,_0x44eb81){const _0x5112ed=_0x5112();return _0x3b49=function(_0x3b490a,_0x7fec4d){_0x3b490a=_0x3b490a-0x83;let _0x445918=_0x5112ed[_0x3b490a];return _0x445918;},_0x3b49(_0x5cbd91,_0x44eb81);}const J=0x14,Qe=0xc8,Ie=0x4,yi=0x5;function $i(_0x549cfd,_0x252892){const _0x38babb=_0x387a6c;let {radius:_0x1679da,width:_0x3f0e49,height:_0xac09d9}=_0x252892;_0x1679da=_0x1679da!=null?_0x1679da:0x0,_0x3f0e49=_0x3f0e49!=null?_0x3f0e49:0x1e,_0xac09d9=_0xac09d9!=null?_0xac09d9:0x1e;let _0x5c274e=0x0,_0x247fd6=0x0,_0x2179cf=0x0;_0x5c274e=_0x247fd6=_0x2179cf=Math[_0x38babb(0x283)](_0x1679da,_0x3f0e49/0x2,_0xac09d9/0x2),_0x549cfd['beginPath'](),_0x549cfd[_0x38babb(0xcd)](_0x5c274e,0x0),_0x549cfd[_0x38babb(0xdc)](_0x3f0e49-_0x247fd6,0x0),_0x549cfd['arc'](_0x3f0e49-_0x247fd6,_0x247fd6,_0x247fd6,Math['PI']*0x3/0x2,0x0,!0x1),_0x549cfd['lineTo'](_0x3f0e49,_0xac09d9-_0x2179cf),_0x549cfd[_0x38babb(0x166)](_0x3f0e49-_0x2179cf,_0xac09d9-_0x2179cf,_0x2179cf,0x0,Math['PI']/0x2,!0x1),_0x549cfd[_0x38babb(0xdc)](0x0,_0xac09d9),_0x549cfd[_0x38babb(0xdc)](0x0,_0x5c274e),_0x549cfd[_0x38babb(0x166)](_0x5c274e,_0x5c274e,_0x5c274e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x549cfd[_0x38babb(0x185)](),_0x252892[_0x38babb(0x22e)]&&(_0x549cfd[_0x38babb(0x215)](),_0x549cfd['fillStyle']=_0x252892['fill'],_0x252892[_0x38babb(0x22b)]===_0x38babb(0x133)?_0x549cfd[_0x38babb(0x22e)](_0x38babb(0x133)):_0x549cfd[_0x38babb(0x22e)](),_0x549cfd['restore']());}class ue extends _0x4bb729{constructor(_0x792d88,_0x5ce713){const _0x586eda=_0x387a6c;super(_0x792d88,_0x5ce713),_(this,_0x586eda(0xfe)),_(this,_0x586eda(0x205)),(this[_0x586eda(0xfe)]=_0x5ce713==null?void 0x0:_0x5ce713[_0x586eda(0xfe)],this[_0x586eda(0x205)]=_0x5ce713==null?void 0x0:_0x5ce713[_0x586eda(0x205)]);}static[_0x387a6c(0xa0)](_0x1921d8,_0x2270f4){const _0x4fc05b=_0x387a6c,{text:_0x535649,color:_0x259ac7}=_0x2270f4;_0x1921d8[_0x4fc05b(0x215)](),_0x1921d8['font']=_0x4fc05b(0x1c9);const _0x474eea=_0x1921d8[_0x4fc05b(0x279)](_0x535649)['width'],_0x3694a6=Math['min'](_0x474eea+0x2*Ie,Qe);$i(_0x1921d8,{'height':J,'radius':0x4,'width':_0x3694a6,'fill':_0x259ac7}),_0x1921d8[_0x4fc05b(0x9c)]=_0x4fc05b(0x10f);const _0x2b9fbe=Ie,_0x47d61c=J-yi,_0x5d4c3d=Qe-0x2*Ie;if(_0x474eea>_0x5d4c3d){let _0x2258c1='',_0x5ee0dd=0x0;for(const _0x5bbbcf of _0x535649){const _0x2fe684=_0x1921d8[_0x4fc05b(0x279)](_0x5bbbcf)[_0x4fc05b(0x8a)];if(_0x5ee0dd+_0x2fe684<=_0x5d4c3d-_0x1921d8['measureText'](_0x4fc05b(0x144))[_0x4fc05b(0x8a)])_0x2258c1+=_0x5bbbcf,_0x5ee0dd+=_0x2fe684;else{_0x2258c1+='...';break;}}_0x1921d8[_0x4fc05b(0x266)](_0x2258c1,_0x2b9fbe,_0x47d61c);}else _0x1921d8[_0x4fc05b(0x266)](_0x535649,_0x2b9fbe,_0x47d61c);_0x1921d8[_0x4fc05b(0x99)]();}[_0x387a6c(0x191)](_0x4e1a84){const _0x48f908=_0x387a6c;ue[_0x48f908(0xa0)](_0x4e1a84,this);}}const ve=_0x387a6c(0xca),xi=_0x387a6c(0x126),Bi=_0x387a6c(0x101),K=0x6,ki=1.5,ge=0x4,Hi=1.5,Fi=_0x387a6c(0x1dc);class qe{constructor(_0x5785d9,_0xae11c8,_0x9439f3,_0x56dddf){const _0x3fda93=_0x387a6c;_(this,_0x3fda93(0x1c4),[]),_(this,_0x3fda93(0x1ec),null),_(this,_0x3fda93(0x93),null),_(this,_0x3fda93(0x1a2),null),_(this,_0x3fda93(0x1fd),null),_(this,_0x3fda93(0x210),null),(this[_0x3fda93(0x1d5)]=_0x5785d9,this['_scene']=_0xae11c8,this[_0x3fda93(0x23b)]=_0x9439f3,this[_0x3fda93(0x159)]=_0x56dddf,this['_render']());}set['_hover'](_0x28732d){const _0x4b6f3a=_0x387a6c;_0x28732d?(this[_0x4b6f3a(0x1a2)]&&this[_0x4b6f3a(0x1a2)]['hide'](),this[_0x4b6f3a(0x93)]&&this[_0x4b6f3a(0x93)][_0x4b6f3a(0xc5)]()):(this['_anchorDot']&&this[_0x4b6f3a(0x1a2)][_0x4b6f3a(0xc5)](),this[_0x4b6f3a(0x93)]&&this[_0x4b6f3a(0x93)][_0x4b6f3a(0x280)]());}[_0x387a6c(0x180)](){const _0x14a74d=_0x387a6c;for(const _0x1e8617 of this[_0x14a74d(0x1c4)])_0x1e8617[_0x14a74d(0x180)]();this[_0x14a74d(0x93)]&&this[_0x14a74d(0x93)][_0x14a74d(0x180)](),this['_anchorDot']&&this[_0x14a74d(0x1a2)]['dispose'](),this[_0x14a74d(0x1ec)]&&this[_0x14a74d(0x1ec)][_0x14a74d(0x180)](),this[_0x14a74d(0x210)]&&this[_0x14a74d(0x210)]();}[_0x387a6c(0xb7)](){const _0x473362=_0x387a6c;var _0x1502c4;const {_docSkeleton:_0x3bd3c4,_document:_0x316197}=this,{color:_0x3ff6ee,name:_0x1ed114,ranges:_0x2ba356}=this[_0x473362(0x1d5)],_0x4e91d7=_0x316197[_0x473362(0x281)](),{docsLeft:_0x118856,docsTop:_0x5ecec4}=_0x4e91d7,_0x2060ad=new _0x5c8eeb(_0x4e91d7,_0x3bd3c4);for(const {startOffset:_0x3a7dd5,endOffset:_0x4b4d4d,rangeType:_0x270b59,segmentId:_0x335b69,segmentPage:_0x1ca3f0,collapsed:_0x35d86d,isActive:_0x2ae671}of _0x2ba356){const _0x420216=_0x3bd3c4[_0x473362(0xc2)](_0x3a7dd5,!0x0,_0x335b69,_0x1ca3f0);let _0x534514=_0x3bd3c4[_0x473362(0xc2)](_0x4b4d4d,!0x0,_0x335b69,_0x1ca3f0);if(_0x534514==null&&(_0x534514=_0x3bd3c4[_0x473362(0xc2)](_0x4b4d4d-0x1,!0x1,_0x335b69,_0x1ca3f0)),_0x2ae671){const {contentBoxPointGroup:_0x25b68a}=_0x2060ad[_0x473362(0xa5)](_0x534514,_0x534514);if(_0x25b68a['length']===0x0)continue;this[_0x473362(0x14e)](_0x3ff6ee,_0x25b68a,_0x118856,_0x5ecec4,_0x1ed114),this[_0x473362(0x210)]=this['_handleHover']();}if(_0x420216&&_0x534514){if(_0x270b59===_0x2806f3[_0x473362(0x17b)]){const _0x18ea64=new _0x4ccdf3(_0x4e91d7,_0x3bd3c4),{pointGroup:_0x6df1be}=(_0x1502c4=_0x18ea64[_0x473362(0xa5)](_0x420216,_0x534514))!=null?_0x1502c4:{};if(_0x6df1be==null||_0x6df1be['length']===0x0)continue;this[_0x473362(0x236)](_0x3ff6ee,_0x6df1be,_0x118856,_0x5ecec4);}else{if(!_0x35d86d){const {borderBoxPointGroup:_0x5ce76f}=_0x2060ad[_0x473362(0xa5)](_0x420216,_0x534514);if(_0x5ce76f['length']===0x0)continue;this['_drawTextRange'](_0x3ff6ee,_0x5ce76f,_0x118856,_0x5ecec4);}}}}}['_drawAnchor'](_0x4e80ab,_0x1b3162,_0x5a60b1,_0x2ccc2f,_0x549348){const _0x411f2a=_0x387a6c,_0x176b00=this[_0x411f2a(0x1f9)](_0x1b3162),{left:_0x483dc4,top:_0x179d8a,height:_0x58b70b}=_0x176b00,_0x53656b=this['_getScale'](),_0x2a1a06=Hi/_0x53656b,_0x3abb13=new _0x3e5a9a(ve+_0x31f7dd(K),{'left':_0x483dc4+_0x5a60b1-_0x2a1a06,'top':_0x179d8a+_0x2ccc2f,'height':_0x58b70b,'width':ki,'fill':_0x4e80ab||_0x451101(_0x4d54ff[_0x411f2a(0x16b)],0x0),'strokeWidth':_0x2a1a06,'stroke':Fi,'evented':!0x0});this[_0x411f2a(0x1ec)]=_0x3abb13,this[_0x411f2a(0xe5)][_0x411f2a(0x1a5)](_0x3abb13,_0x2cd66c);const _0x2cfb75=new _0x3e5a9a(ve+_0x31f7dd(K),{'left':_0x483dc4+_0x5a60b1-_0x2a1a06,'top':_0x179d8a+_0x2ccc2f-ge/0x2,'height':ge,'width':ge,'fill':_0x4e80ab||_0x451101(_0x4d54ff['black'],0x0),'strokeWidth':0x0,'stroke':_0x4e80ab||_0x451101(_0x4d54ff[_0x411f2a(0x16b)],0x0),'evented':!0x1});this['_anchorDot']=_0x2cfb75,this[_0x411f2a(0xe5)][_0x411f2a(0x1a5)](_0x2cfb75,_0x2cd66c);const _0x4e19d3=new ue(ve+_0x31f7dd(K),{'left':_0x483dc4+_0x5a60b1-_0x2a1a06,'top':_0x179d8a+_0x2ccc2f-J,'text':_0x549348,'color':_0x4e80ab});this[_0x411f2a(0x93)]=_0x4e19d3,this[_0x411f2a(0xe5)][_0x411f2a(0x1a5)](_0x4e19d3,_0x2cd66c),this[_0x411f2a(0x11f)]=!0x1;}['_handleHover'](){const _0x368020=_0x387a6c,_0x726035=this['_anchor']['onPointerEnter$'][_0x368020(0x197)](()=>{this['_hover']=!0x0;}),_0x29adad=this[_0x368020(0x1ec)][_0x368020(0xf1)][_0x368020(0x197)](()=>{const _0x28c3d4=_0x368020;this[_0x28c3d4(0x1fd)]&&clearTimeout(this[_0x28c3d4(0x1fd)]),this[_0x28c3d4(0x1fd)]=setTimeout(()=>{const _0x12fab5=_0x28c3d4;this[_0x12fab5(0x11f)]=!0x1;},0x7d0);});return()=>{const _0x138bc5=_0x368020;_0x726035[_0x138bc5(0xdd)](),_0x29adad[_0x138bc5(0xdd)]();};}['_drawTextRange'](_0x432f06,_0xefc586,_0x4b730d,_0x467ff4){const _0x2e9d55=_0x387a6c,_0x5b0271=new _0x411df9(_0x432f06)[_0x2e9d55(0x1c5)](0.2)[_0x2e9d55(0x1d4)](),_0x3bb2b8=new _0x2eb7bf(xi+_0x31f7dd(K),{'pointsGroup':_0xefc586,'fill':_0x5b0271||_0x451101(_0x4d54ff[_0x2e9d55(0x16b)],0.2),'left':_0x4b730d,'top':_0x467ff4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2e9d55(0x1c4)]['push'](_0x3bb2b8),this[_0x2e9d55(0xe5)][_0x2e9d55(0x1a5)](_0x3bb2b8,_0x2cd66c);}['_drawRectRange'](_0x191675,_0x5c9921,_0x621396,_0x43450a){const _0x86f8e0=_0x387a6c,_0x1c2205=new _0x411df9(_0x191675)[_0x86f8e0(0x1c5)](0.2)[_0x86f8e0(0x1d4)](),_0x52a50b=new _0x2eb7bf(Bi+_0x31f7dd(K),{'pointsGroup':_0x5c9921,'fill':_0x1c2205||_0x451101(_0x4d54ff[_0x86f8e0(0x16b)],0.2),'left':_0x621396,'top':_0x43450a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x86f8e0(0x22f)](_0x52a50b),this[_0x86f8e0(0xe5)][_0x86f8e0(0x1a5)](_0x52a50b,_0x2cd66c);}[_0x387a6c(0x1f9)](_0x3e6091){const _0x57e50b=_0x3e6091[0x0],_0x350345=_0x57e50b[0x0],_0x35b29d=_0x57e50b[0x2],{x:_0x2f1336,y:_0x72fed2}=_0x350345,{x:_0x5b7c98,y:_0x24e419}=_0x35b29d;return{'left':_0x2f1336,'top':_0x72fed2,'width':_0x5b7c98-_0x2f1336,'height':_0x24e419-_0x72fed2};}[_0x387a6c(0xaf)](){const _0x26dda9=_0x387a6c,{scaleX:_0x58d552,scaleY:_0x158524}=this[_0x26dda9(0xe5)][_0x26dda9(0x1cd)]();return Math[_0x26dda9(0x13b)](_0x58d552,_0x158524);}}var Yi=Object[_0x387a6c(0x147)],ji=(_0x1bf465,_0x17c5e1,_0x282963,_0x1a4b92)=>{const _0x13f341=_0x387a6c;for(var _0x41e78e=_0x1a4b92>0x1?void 0x0:_0x1a4b92?Yi(_0x17c5e1,_0x282963):_0x17c5e1,_0x10b4b8=_0x1bf465[_0x13f341(0x23e)]-0x1,_0x5c4399;_0x10b4b8>=0x0;_0x10b4b8--)(_0x5c4399=_0x1bf465[_0x10b4b8])&&(_0x41e78e=_0x5c4399(_0x41e78e)||_0x41e78e);return _0x41e78e;},ee=(_0xdf0dfc,_0x44f84a)=>(_0x43eef1,_0x3c1a7c)=>_0x44f84a(_0x43eef1,_0x3c1a7c,_0xdf0dfc);let Le=class extends _0x4aac8c{constructor(_0x398ada,_0x42062f,_0x2a34b8,_0x5ef002,_0x3e69ec){const _0x25d0c0=_0x387a6c;super(),_(this,_0x25d0c0(0x21c),[]),_(this,_0x25d0c0(0x221),[]),(this['_context']=_0x398ada,this[_0x25d0c0(0x13a)]=_0x42062f,this[_0x25d0c0(0x1db)]=_0x2a34b8,this[_0x25d0c0(0x98)]=_0x5ef002,this[_0x25d0c0(0x1a7)]=_0x3e69ec,this[_0x25d0c0(0x13d)]());}[_0x387a6c(0x13d)](){const _0x39a868=_0x387a6c,_0x180855=this['_context']['unitId'],_0x4d9624=this['_docSkeletonManagerService'];this[_0x39a868(0x209)](_0x5f2d2b([this[_0x39a868(0x1db)][_0x39a868(0xe0)](_0x180855),this[_0x39a868(0x1a7)]['currentTheme$']])[_0x39a868(0x1ce)](_0x570065(([_0x1de11e,_0x590742])=>({'skeleton':_0x4d9624[_0x39a868(0x22a)](),'cursors':[..._0x1de11e['values']()][_0x39a868(0xac)](_0x31c9dd=>({..._0x31c9dd,'color':this[_0x39a868(0x1a7)]['getColorFromTheme'](_0x31c9dd[_0x39a868(0xfe)])}))})))[_0x39a868(0x1dd)](_0x3d677e=>{const _0x25c22f=_0x39a868;if(this[_0x25c22f(0x114)](),_0x3d677e){const {skeleton:_0x244ad6,cursors:_0x3d4224}=_0x3d677e;this[_0x25c22f(0x1d3)](_0x244ad6,_0x3d4224);}})),this[_0x39a868(0xb4)](),this[_0x39a868(0xa3)]();}['_updateCollabCursors'](_0x506d54,_0x2ab439){const _0x78e910=_0x387a6c,{scene:_0x75934b,mainComponent:_0x3c96c6}=this[_0x78e910(0xbf)],_0x1be7b8=_0x2ab439['map'](_0x2f938b=>new qe(_0x2f938b,_0x75934b,_0x506d54,_0x3c96c6));this['_cursorShapes']=_0x1be7b8,this[_0x78e910(0x221)]=_0x2ab439;}[_0x387a6c(0x151)](){const _0x57cde4=_0x387a6c;this[_0x57cde4(0x114)]();const {scene:_0x2d8f47,mainComponent:_0x3d6d8c}=this['_context'],_0x148280=this[_0x57cde4(0x13a)]['getSkeleton'](),_0x4d9902=this[_0x57cde4(0x221)][_0x57cde4(0xb9)](_0x5c6eab=>new qe(_0x5c6eab,_0x2d8f47,_0x148280,_0x3d6d8c));this[_0x57cde4(0x21c)]=_0x4d9902;}[_0x387a6c(0x114)](){const _0x14b894=_0x387a6c;this[_0x14b894(0x21c)][_0x14b894(0x146)](_0x355b20=>_0x355b20[_0x14b894(0x180)]()),this[_0x14b894(0x21c)]=[];}[_0x387a6c(0xa3)](){const _0x8a0a9d=_0x387a6c,_0x323618=[_0x7e2ccb['id']];this[_0x8a0a9d(0x209)](this[_0x8a0a9d(0x98)][_0x8a0a9d(0xe9)](_0x11d4ba=>{const _0x2dec0b=_0x8a0a9d;_0x323618['includes'](_0x11d4ba['id'])&&_0x11d4ba['params'][_0x2dec0b(0x19e)]===this[_0x2dec0b(0xbf)][_0x2dec0b(0x19e)]&&this[_0x2dec0b(0x151)]();}));}[_0x387a6c(0xb4)](){const _0x1b7fa4=_0x387a6c;this['disposeWithMe'](_0x224409(this[_0x1b7fa4(0xbf)]['engine'][_0x1b7fa4(0x1f6)])[_0x1b7fa4(0x1ce)](_0x497979(_0x39eeef=>_0x39eeef[_0x1b7fa4(0x216)]===_0x36ec45[_0x1b7fa4(0x21d)]),_0x5cfbe3(0x10))[_0x1b7fa4(0x1dd)](()=>{this['_refreshCollabCursors']();}));}};Le=ji([ee(0x1,_0x16284c(_0x3d676b)),ee(0x2,_0x16284c(F)),ee(0x3,_0x20eac8),ee(0x4,_0x16284c(_0x3cd190))],Le);const Vi=0x1,Wi=1.5;class Xi extends _0x4bb729{constructor(_0x5e5ed3,_0x2f7982){const _0x567931=_0x387a6c;super(_0x5e5ed3,_0x2f7982),_(this,'_color'),_(this,_0x567931(0x270),!0x1),_(this,_0x567931(0x125)),_(this,_0x567931(0xf0),''),_(this,_0x567931(0x120),'top'),_(this,_0x567931(0x217)),(_0x2f7982&&this[_0x567931(0x100)](_0x2f7982),this[_0x567931(0x226)][_0x567931(0x197)](()=>this[_0x567931(0x100)]({'hovered':!0x0})),this['onPointerLeave$'][_0x567931(0x197)](()=>this[_0x567931(0x100)]({'hovered':!0x1})));}[_0x387a6c(0x100)](_0x102052){const _0x436ab5=_0x387a6c;var _0x5d58ec,_0x5a9ff7,_0x43776f,_0x4fffb0,_0x1b426c,_0x3462f7;this[_0x436ab5(0x218)]=(_0x5d58ec=_0x102052[_0x436ab5(0xfe)])!=null?_0x5d58ec:this['_color'],this[_0x436ab5(0x270)]=(_0x5a9ff7=_0x102052[_0x436ab5(0x8c)])!=null?_0x5a9ff7:this[_0x436ab5(0x270)],this['_range']=(_0x43776f=_0x102052[_0x436ab5(0x130)])!=null?_0x43776f:this[_0x436ab5(0x125)],this[_0x436ab5(0xf0)]=(_0x4fffb0=_0x102052['name'])!=null?_0x4fffb0:this[_0x436ab5(0xf0)],this[_0x436ab5(0x120)]=(_0x1b426c=_0x102052[_0x436ab5(0x247)])!=null?_0x1b426c:this['_labelPosition'],this[_0x436ab5(0x217)]=(_0x3462f7=_0x102052[_0x436ab5(0x8b)])!=null?_0x3462f7:this[_0x436ab5(0x217)],this[_0x436ab5(0x275)]({'width':_0x102052[_0x436ab5(0x8a)],'height':_0x102052[_0x436ab5(0x134)]});}[_0x387a6c(0xc6)](_0x36f29c){const _0x5e3522=_0x387a6c,{row:_0x45cbe1,column:_0x2a94e6}=_0x36f29c;if(_0x45cbe1>=this[_0x5e3522(0x125)][_0x5e3522(0x9d)]&&_0x45cbe1<=this[_0x5e3522(0x125)][_0x5e3522(0x20a)]&&_0x2a94e6>=this[_0x5e3522(0x125)]['startColumn']&&_0x2a94e6<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x5e3522(0x100)]({'hovered':!0x1});}[_0x387a6c(0x12f)](_0xefa4ec){return!0x1;}[_0x387a6c(0x191)](_0x1e6cb7){const _0x4718ab=_0x387a6c;_0x3e5a9a['drawWith'](_0x1e6cb7,{'width':this[_0x4718ab(0x8a)],'height':this['height'],'strokeWidth':Wi,'stroke':this[_0x4718ab(0x218)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x4718ab(0x270)]&&(_0x1e6cb7[_0x4718ab(0x215)](),_0x1e6cb7[_0x4718ab(0x235)](0x1,0x0,0x0,0x1,this[_0x4718ab(0x8a)],this[_0x4718ab(0x120)]==='bottom'?0x0:-J),ue[_0x4718ab(0xa0)](_0x1e6cb7,{'text':this[_0x4718ab(0xf0)],'color':this[_0x4718ab(0x218)]}),_0x1e6cb7[_0x4718ab(0x99)]());}}var Gi=Object[_0x387a6c(0x147)],Ki=(_0x43cad7,_0x5d6a66,_0x514fe7,_0x2c8946)=>{const _0x23610b=_0x387a6c;for(var _0x332ef7=_0x2c8946>0x1?void 0x0:_0x2c8946?Gi(_0x5d6a66,_0x514fe7):_0x5d6a66,_0x2b6c77=_0x43cad7[_0x23610b(0x23e)]-0x1,_0x1624ed;_0x2b6c77>=0x0;_0x2b6c77--)(_0x1624ed=_0x43cad7[_0x2b6c77])&&(_0x332ef7=_0x1624ed(_0x332ef7)||_0x332ef7);return _0x332ef7;},pe=(_0x151816,_0x44bdaa)=>(_0x1312d5,_0x3478ae)=>_0x44bdaa(_0x1312d5,_0x3478ae,_0x151816);const zi=0x1389;function _0x5112(){const _0x4f286e=['then','_initEntityListener','entityInit$','collaboration-client.offline-data-not-saved','collaboration.single-unit.warning','set','cursorInfo$','displayName','setStateCache','getCurrentUnitForType','_docTransformStateCacheService','#FFF','extend','search','MOBILE_HAS_BEEN_BOUND','_ensureSubject','_removeCollabCursors','EMAIL_HAS_BEEN_BOUND','TOO_MANY_REQUESTS','_roomMembers$','_saveCache','ticket','_heartbeatTimer','url(#on-line-icon_clip0_910_349)','2953542rmzJRB','clearInterval','eventID','_hover','_labelPosition','LICENSE_MAX_UNITS_EXCEEDED','collabStatus.fetchMiss','MOBILE_VERIFY_CODE_MISMATCH','memberID','_range','collab-text-range-','_onCursorUpdate','executionId','INVALID_INVITE_CODE','_localeService','getTypeOfUnitDisposed$','searchParams','MoveRangeCommandId','_updateLocalCursor','triggerDblclick','range','6tbhTTV','reconnect','evenodd','height','5499505ktNRxO','_revisionService','_unitStatus','requireSession','className','_docSkeletonManagerService','max','setItem','_init','removeParam','red.300','FETCH_MISS','CHANGESET_REVISION_CONFILICT','_docTransformSelectionsService','session.will-retry','...','_handleJoinEvent','forEach','getOwnPropertyDescriptor','setInterval','YUUMI_UNABLE_LOAD_URL','0\x200\x2016\x2016','onLocalMutation','NO_OTHER_CLIENTS_EDITING','random','_drawAnchor','_configService','collabCursorState$','_refreshCollabCursors','_cursorInfo$','all','disposeUnit','_getSessionTicket','hasOwnProperty','APPLY_REJECT','USERS_LEAVE','_document','getCellPositionByOffset','roomMembers','ONLINE','getMergeData','9xRgUAi','assignAColorForMemberID','getRenderById','transformMutation','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getActiveSheet','symbol','icon','arc','DeleteRangeMoveLeftCommandId','getDocRanges','clearTimeout','_registerDependencies','black','LICENSE_EXPORT_SIZE_EXCEEDED','params','APPLY_REVISION_CONFILICT','bottom','_renderManagerService','_send','top','on-line-icon_clip0_910_349','UNAUTHENTICATED','parse','idSuffix','_onRefRangeChange','_univerInstanceService','find','transformStateCache','RECT','indexOf','createInstance','UNRECOGNIZED','sessionTicket','dispose','_id','history','getUnitId','_docClipboardService','closePath','onPointerMove$','currentSkeleton$','purple.300','current','_cachedData','TEXT','getConfig','send','subUnitId','NOT_COLLAB','NOT_FOUND','_draw','_startDocCollabCursor','concat','_handleLeaveEvent','_getSheetObject','_onCursorDelete','subscribeEvent','transformIMECache','runOnServer','_collaborationUIEventService','_logService','href','getCurrentRevOfUnit','unitId','includes','_toggleOnline','getUnitStatus$','_anchorDot','YUUMI_CONNECTOR_URL_NOT_FOUND','getOwnPropertySymbols','addObject','exhaustSavingTask','_themeService','function','SUBMIT_CHANGESET_TIMEOUT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getCurrentSelections','defineProperty','selections','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','yellow.400','INVITE_CODE_REQUIRED','xlink:href','isEditing','undoState','unit','univer-mr-2\x20univer-flex\x20univer-text-xl','getSheetId','HEADER_MENU','APPLY_PERMISSION_DENIED','OFFLINE','getViewport','OnLineIcon','location','PERMISSION_DENIED','/run/','_scheduleClearOtherTimer','values','YUUMI_RATE_OVER_LIMIT','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','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','_shapes','setAlpha','registerRefRange','clipPath','error','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','activeSheet$','path','mutations','getAncestorScale','pipe','assign','substring','_transformUndoRedoStack','SNAPSHOT_INVALID_SNAPSHOT','_updateCollabCursors','toRgbString','_cursor','defIds','add','getUniverSheetInstance','event$','focused$','_collabCursorController','rgba(255,\x20255,\x20255,\x200.01)','subscribe','_removeClearOtherTimer','addHandlerCallback','off-line-icon','post','init','getRelativeToViewportCoord','url(#$1','_httpService','OffLineIcon','addClipboardHook','InsertRangeMoveRightCommandId','saveTaskMap','_scheduleHeartbeat','onRendered','_anchor','permission.content','collabStatus.conflict','source','getValue','replaceDocRanges','RemoveColCommandId','_messageService','_scheduleSaving','1em','onTransformChange$','setParam','YUUMI_ASYNCIO_CANCELLED','_getAnchorBounding','size','YUUMI_SUBSCRIPTION_NOT_FOUND','M0\x200H16V16H0z','_hideTimer','_sheetSkeletonManagerService','getMemberID','_startSheetCollabCursor','_docTransformIMECacheService','code','subunit','status$','text','colorChannel1','next','_clearOtherTimers','disposeWithMe','endRow','syncEditingCollabCursor','children','tag','has','10370088nPzQwx','_eventUnsubscribe','redoState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','CONNECTOR_DATA_TOO_LARGE','ENSURE_SNAPSHOT_EXECUTION','save','type','_backgroundColor','_color','univer-flex\x20univer-items-center','attrs','m2Prime','_cursorShapes','resize','USER_NOT_INVITED_CODE','unshift','addEventListener','_cursors','white','[CollaborationDataLoaderController]','get','urlChange$','onPointerEnter$','_getSaveTimeout','enableLocalCache','UniverIcon','getSkeleton','fillRule','_setupBeforeClosingHandler','LICENSE_DISTRO_REJECTED','fill','push','_handleHeartbeatEvent','m1Prime','transformRemoteChangeset','split','FromArray','transform','_drawRectRange','_config','executeCommand','_toggleOffline','OTHER_CLIENTS_EDITING','_docSkeleton','none','origin','length','getTypeOfUnitAdded$','round','9756985qcxeBd','toString','_localCacheService','actions','transformMutationsWithChangeset','runId','labelPosition','loadOfflineData','trim','_memberService','getUndoRedoMutationParamsCache','getStateCache','registerRenderModule','PY_RUNTIME_SCRIPT_ERROR','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','YUUMI_AI_RUN_FAILED','updateOfflineData','UNIVER_SHEET','LICENSE_IMPORT_SIZE_EXCEEDED','off-line-icon_clip0_910_343','_dataLoaderService','entries','collaboration-client-ui.config','_initStatusListener','2739126rEBtFg','_syncEditingCollabCursorService','doc.mutation.rich-text-editing','_docStateChangeManagerService','override','prototype','unitID','MUTATION','selection','Failed','SYNCED','YUUMI_ALL_TABLES_IS_INVALID','column','fillText','EMAIL_VERIFY_CODE_MISMATCH','editingUnit','WECHAT_HAS_BEEN_BOUND','_updateURLWithCurrentState','http://www.w3.org/2000/svg','saveImage','_notificationService','_initEvent','collabStatus.notCollab','_hovered','_initDependencies','_getMergeRange','_updateSubUnitFromURLParams','getCollabEntity$','transformByState','asObservable','isArray','unload','measureText','invokeId','_docSyncEditingCollabCursorService','UNDEFINED','COMPLETION_FINISHED','row','wsSessionTicketUrl','hide','getOffsetConfig','setActiveRange','min','0\x200\x2017\x2016','newValue','_localStorageService','collabStatus.offline','getItem','univerjs-icon\x20univerjs-icon-','_doCreateSocket','pluginName','_entityInit$','_urlService','Unknown\x20user','transformSelections','result','stringify','_transformPreviousActiveRange','getVpScrollXYInfoByPosToVp','apply','width','backgroundColor','hovered','_setupSubUnitSync','sessionStatus$','_transformService','onStarting','debug','data','_textBubble','LOGIN_FAILED','UPDATE_CURSOR','DeleteRangeMoveUpCommandId','_status$','_commandService','restore','_transformHistoryAndStateStack','APPLY_NON_SEQUENTIAL_REVISION','fillStyle','startRow','ranges','setConfig','drawWith','roomMembers$','textRanges','_initCommandExecutedListener','name','getRangePointData','addObjects','OTHER_CLIENT_EDITING','_injector','uni.network.url-service','150226NyoXhP','UNIVER_DOC','flatMap','_online','_assignedColors','_getScale','YUUMI_NO_CUBOID_FOR_QUESTION','_refRangeService','getSheetBySheetId','green.600','_initResize','_selfUnitIDs','svg','_render','_entities','map','CLOSE_ROOM','Error','_session','_unitOnClients','with','_context','getParam','_instanceService','findNodePositionByCharIndex','getFocusedUnit','from','show','onMouseMove','call','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_colorIndex','collab-text-anchor-','_createSocketURL','sheetID','moveTo','docStateChange$','getUnhiddenWorksheets','AWAITING_WITH_PENDING','_lastPointer','replaceState','InsertRowCommandId','_saveTaskMap','_collaborationController','Warning','dispose$','_uiPartsService','SNAPSHOT_HAS_BEEN_REMOVED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_initStatusComponent','lineTo','unsubscribe','delete','string','getCollabCursors$','getMember','VIEW_MAIN','pushState','collaboration.closeRoom','_scene','773416DfOtci','_colorAssignService','registerComponent','onCommandExecuted','deepClone','cursorInfo','url(#off-line-icon_clip0_910_343)','YUUMI_URL_COL_OUT_OF_RANGE','sheetId','complete','_name','onPointerLeave$','body','INVITE_CODE_HAS_BEEN_UES','replace','currentColor','PENDING','YUUMI_TABLE_NOT_FOUND_IN_UNIT','translate(.97)','blue.400','_disabled','InsertRangeMoveDownCommandId','JOIN_ROOM_FAILED','collabStatus.synced','color','mask','setShapeProps','collab-rect-range-','_registerRenderDependencies','_collabSessionService'];_0x5112=function(){return _0x4f286e;};return _0x5112();}let Pe=class extends _0x4aac8c{constructor(_0x5e9c80,_0x32090b,_0x1376dc,_0x183890){const _0xbb8a0=_0x387a6c;super(),_(this,_0xbb8a0(0x221),new Set()),_(this,_0xbb8a0(0xd1),null),(this['_context']=_0x5e9c80,this[_0xbb8a0(0x1fe)]=_0x32090b,this['_collabCursorController']=_0x1376dc,this[_0xbb8a0(0x1a7)]=_0x183890,this[_0xbb8a0(0x13d)]());}[_0x387a6c(0x13d)](){const _0x1b1335=_0x387a6c;this[_0x1b1335(0x1fe)]['currentSkeleton$']['pipe'](_0x1e4828(this[_0x1b1335(0xd7)]),_0x24be1a(_0x455f80=>{const _0x3a1f71=_0x1b1335;if(_0x455f80){const _0x9fe7e2=_0x455f80[_0x3a1f71(0xee)];return _0x5f2d2b(this['_collabCursorController'][_0x3a1f71(0xe0)](this[_0x3a1f71(0xbf)][_0x3a1f71(0x19e)]),this[_0x3a1f71(0x1a7)]['currentTheme$'])[_0x3a1f71(0x1ce)](_0x570065(([_0x13f865,_0x66226c])=>{const _0x23cd16=_0x3a1f71,_0x3940af=new Map();return _0x13f865[_0x23cd16(0x146)]((_0x100ae0,_0x504bdc)=>{const _0x575320=_0x23cd16;if(_0x100ae0[_0x575320(0xcc)]===_0x9fe7e2){const _0x2b98a8={..._0x100ae0};_0x2b98a8[_0x575320(0xfe)]=this['_themeService']['getColorFromTheme'](_0x100ae0[_0x575320(0xfe)]),_0x3940af[_0x575320(0x109)](_0x504bdc,_0x2b98a8);}}),{'skeleton':_0x455f80,'cursors':_0x3940af};}));}return _0x21fe93({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x245c1c,cursors:_0x5eaaa9})=>{const _0x1ed055=_0x1b1335;this[_0x1ed055(0x114)](),_0x245c1c&&this[_0x1ed055(0x1d3)](_0x245c1c,_0x5eaaa9);}),this['_sheetSkeletonManagerService'][_0x1b1335(0x187)][_0x1b1335(0x1dd)](_0x2cac57=>{const _0x38c6bf=_0x1b1335;if(_0x2cac57==null)return;const {skeleton:_0x40648a}=_0x2cac57,{scene:_0x6eab90}=this['_context'];_0x6eab90[_0x38c6bf(0x186)][_0x38c6bf(0x197)](_0x2ed8d9(_0x462d4d=>{const _0x4972f2=_0x38c6bf;var _0x33f208,_0x52b9cb;const {offsetX:_0x2d716b,offsetY:_0x296dca}=_0x462d4d,{x:_0x461b27,y:_0x4d4be9}=_0x6eab90[_0x4972f2(0x1e3)](_0x407e18[_0x4972f2(0x234)]([_0x2d716b,_0x296dca])),{scaleX:_0x4b976a,scaleY:_0x196527}=_0x6eab90[_0x4972f2(0x1cd)](),_0x10d739=_0x6eab90[_0x4972f2(0x1ba)](_0x2bac50[_0x4972f2(0xe2)]),_0x51604d=_0x6eab90[_0x4972f2(0x88)](_0x407e18['FromArray']([_0x461b27,_0x4d4be9]),_0x10d739),_0x2e31d1=_0x40648a[_0x4972f2(0x15a)](_0x2d716b,_0x296dca,_0x4b976a,_0x196527,_0x51604d);((_0x33f208=this[_0x4972f2(0xd1)])==null?void 0x0:_0x33f208[_0x4972f2(0x265)])===_0x2e31d1[_0x4972f2(0x265)]&&((_0x52b9cb=this[_0x4972f2(0xd1)])==null?void 0x0:_0x52b9cb[_0x4972f2(0x27e)])===_0x2e31d1[_0x4972f2(0x27e)]||this[_0x4972f2(0x221)][_0x4972f2(0x146)](_0x9fd412=>{const _0x13e32d=_0x4972f2;_0x9fd412[_0x13e32d(0xc6)](_0x2e31d1);});},0x64));});}['_updateCollabCursors'](_0x336197,_0x1be8d4){const _0x20deb4=_0x387a6c;var _0x2c3b79;const _0x591dd6=(_0x2c3b79=this[_0x20deb4(0x1fe)]['getCurrent']())==null?void 0x0:_0x2c3b79['skeleton'];if(!_0x591dd6)return;const _0x198a40=this[_0x20deb4(0x195)]();if(!_0x198a40)return;this['_cursors'][_0x20deb4(0x146)](_0x113b5a=>{_0x113b5a['makeDirty']();});const {scene:_0x269170}=_0x198a40,_0x1ebaed=Ji(Array['from'](_0x1be8d4[_0x20deb4(0x1c0)]()))[_0x20deb4(0xb9)](_0x5e1833=>{const _0x3a3db3=_0x20deb4,{color:_0x444524,range:_0x2143ea,name:_0x3c589f,selection:_0xc61f71,sheetID:_0x5301bc}=_0x5e1833,{startColumn:_0x261a7c,startRow:_0x16c9e3,endColumn:_0x412bb3,endRow:_0x1bd1e3}=_0x2143ea,_0x37eb9c=_0x3791d8(_0x16c9e3,_0x261a7c,_0x269170,_0x591dd6),_0x5e5871=_0x3791d8(_0x1bd1e3,_0x412bb3,_0x269170,_0x591dd6),{columnHeaderHeightAndMarginTop:_0x58075c}=_0x591dd6,{startX:_0x3c9225,startY:_0x40e1a1}=_0x37eb9c,{endX:_0x25f797,endY:_0x5f4416}=_0x5e5871,_0x389bda=_0x25f797-_0x3c9225,_0x346043=_0x5f4416-_0x40e1a1,_0x289609={'labelPosition':_0x40e1a1-_0x58075c>=J?_0x3a3db3(0x172):_0x3a3db3(0x16f),'sheetID':_0x5301bc,'range':_0x2143ea,'color':_0x444524,'name':_0x3c589f,'selection':_0xc61f71,'left':_0x3c9225,'top':_0x40e1a1,'width':_0x389bda,'height':_0x346043,'evented':!0x1,'zIndex':zi};return new Xi(_0x3c589f,_0x289609);});_0x269170[_0x20deb4(0xa6)](_0x1ebaed,Vi),this[_0x20deb4(0x221)]=new Set(_0x1ebaed);}[_0x387a6c(0x114)](){const _0x4bc03f=_0x387a6c;var _0x41faf3;(_0x41faf3=this[_0x4bc03f(0x221)])==null||_0x41faf3['forEach'](_0x1e7af0=>_0x1e7af0['dispose']());}[_0x387a6c(0x195)](){const _0x491180=_0x387a6c;return _0x49466e(this[_0x491180(0xbf)][_0x491180(0x1b4)],this[_0x491180(0xbf)]);}};Pe=Ki([pe(0x1,_0x16284c(_0x1256e1)),pe(0x2,_0x16284c(F)),pe(0x3,_0x16284c(_0x3cd190))],Pe);function Ji(_0x271e8d){const _0x360541=_0x387a6c,_0x16b379=new Map();return _0x271e8d['forEach'](_0x1347e1=>{const _0x31bad0=_0x3b49;if(_0x16b379[_0x31bad0(0x20e)](_0x1347e1[_0x31bad0(0x261)])){const _0x2440a2=_0x16b379[_0x31bad0(0x224)](_0x1347e1[_0x31bad0(0x261)]);_0x2440a2[_0x31bad0(0xa4)]+=',\x20'+_0x1347e1[_0x31bad0(0xa4)];}else _0x16b379['set'](_0x1347e1[_0x31bad0(0x261)],_0x1347e1);}),Array[_0x360541(0xc4)](_0x16b379[_0x360541(0x1c0)]());}var Zi=Object[_0x387a6c(0x147)],Qi=(_0x14b6dd,_0x16bdad,_0x21b9da,_0x556d52)=>{const _0xf30ad9=_0x387a6c;for(var _0x1dec74=_0x556d52>0x1?void 0x0:_0x556d52?Zi(_0x16bdad,_0x21b9da):_0x16bdad,_0x1243a5=_0x14b6dd[_0xf30ad9(0x23e)]-0x1,_0x288850;_0x1243a5>=0x0;_0x1243a5--)(_0x288850=_0x14b6dd[_0x1243a5])&&(_0x1dec74=_0x288850(_0x1dec74)||_0x1dec74);return _0x1dec74;},B=(_0x2794e6,_0x5632b2)=>(_0x56f989,_0x4c6b5d)=>_0x5632b2(_0x56f989,_0x4c6b5d,_0x2794e6);let ne=class extends _0x67252a{constructor(_0x3aa749,_0x5fc120,_0x9bb271,_0x512f97,_0x30d4b8,_0x479e42){const _0x4e8a0b=_0x387a6c;super(),this['_beforeCloseService']=_0x3aa749,this[_0x4e8a0b(0x243)]=_0x5fc120,this[_0x4e8a0b(0x19a)]=_0x9bb271,this[_0x4e8a0b(0x1f3)]=_0x512f97,this[_0x4e8a0b(0x26d)]=_0x30d4b8,this[_0x4e8a0b(0x12a)]=_0x479e42,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x387a6c(0x22c)](){const _0x22c8f3=_0x387a6c;this[_0x22c8f3(0x209)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x197325=_0x22c8f3;if(this[_0x197325(0x243)]['saveTaskMap']['size'])return this['_localeService']['t'](_0x197325(0x107));}));}[_0x387a6c(0x26e)](){const _0x2f8c03=_0x387a6c;this[_0x2f8c03(0x209)](this['_collaborationUIEventService'][_0x2f8c03(0x1d9)]['subscribe'](_0x565109=>{const _0x3075f4=_0x2f8c03;_0x565109['id']===_0x322b24[_0x3075f4(0xa7)]&&this[_0x3075f4(0x1f3)][_0x3075f4(0xc5)]({'type':_0x8df752['Warning'],'content':this['_localeService']['t'](_0x3075f4(0x108))}),_0x565109['id']===_0x322b24[_0x3075f4(0xba)]&&this[_0x3075f4(0x1f3)][_0x3075f4(0xc5)]({'type':_0x8df752[_0x3075f4(0xd6)],'content':this[_0x3075f4(0x12a)]['t'](_0x3075f4(0xe4))}),_0x565109['id']===_0x322b24[_0x3075f4(0x1bd)]&&this[_0x3075f4(0x26d)][_0x3075f4(0xc5)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x3075f4(0x1ed)),'type':_0x3075f4(0x1c8),'duration':0x0}),_0x565109['id']===_0x322b24['CONFLICT']&&this[_0x3075f4(0x1f3)][_0x3075f4(0xc5)]({'type':_0x8df752['Error'],'content':this[_0x3075f4(0x12a)]['t'](_0x3075f4(0xe4))+'('+_0x565109[_0x3075f4(0x92)]+')'}),_0x565109['id']===_0x322b24[_0x3075f4(0xfc)]&&this[_0x3075f4(0x1f3)][_0x3075f4(0xc5)]({'type':_0x8df752[_0x3075f4(0xd6)],'content':this[_0x3075f4(0x12a)]['t'](_0x565109[_0x3075f4(0x92)]||'')}),_0x565109['id']===_0x322b24['SOCKET_FAILED_RETRY']&&this[_0x3075f4(0x1f3)][_0x3075f4(0xc5)]({'type':_0x8df752[_0x3075f4(0xd6)],'content':this[_0x3075f4(0x12a)]['t'](_0x3075f4(0x143))}),_0x565109['id']===_0x322b24['SOCKET_FAILED']&&this[_0x3075f4(0x1f3)][_0x3075f4(0xc5)]({'type':_0x8df752[_0x3075f4(0xbb)],'content':this[_0x3075f4(0x12a)]['t']('session.connection-failed')}),_0x565109['id']===_0x322b24[_0x3075f4(0x1a9)]&&this[_0x3075f4(0x1f3)][_0x3075f4(0xc5)]({'type':_0x8df752['Error'],'content':this[_0x3075f4(0x12a)]['t']('session.collaboration-timeout')});}));}};ne=Qi([B(0x0,_0x14e401),B(0x1,_0xd40667),B(0x2,_0x16284c(_0x57bb0b)),B(0x3,_0x1ce96a),B(0x4,_0x127c7b),B(0x5,_0x16284c(_0x4ec1de))],ne);const qi=_0x387a6c(0x257),et={};var en=Object[_0x387a6c(0x147)],tn=(_0x32d221,_0x105015,_0x42ed7e,_0x1e806c)=>{const _0x22f14e=_0x387a6c;for(var _0x2efe60=_0x1e806c>0x1?void 0x0:_0x1e806c?en(_0x105015,_0x42ed7e):_0x105015,_0x5c1868=_0x32d221[_0x22f14e(0x23e)]-0x1,_0x593f10;_0x5c1868>=0x0;_0x5c1868--)(_0x593f10=_0x32d221[_0x5c1868])&&(_0x2efe60=_0x593f10(_0x2efe60)||_0x2efe60);return _0x2efe60;},tt=(_0x302eb6,_0x3c06c7)=>(_0x226732,_0x4ee288)=>_0x3c06c7(_0x226732,_0x4ee288,_0x302eb6);let re=class{constructor(_0x34401d,_0x3f94ba){const _0x2a6502=_0x387a6c;this[_0x2a6502(0x8f)]=_0x34401d,this[_0x2a6502(0x170)]=_0x3f94ba;}[_0x387a6c(0x198)](_0x59b8b4){const _0x413ce2=_0x387a6c;this['_transformUndoRedoStack'](_0x59b8b4),this[_0x413ce2(0x87)](_0x59b8b4);}[_0x387a6c(0x232)](_0x475e84){const _0x5f0c0f=_0x387a6c,{unitID:_0xf775f0}=_0x475e84,_0x49f58c=this[_0x5f0c0f(0x170)][_0x5f0c0f(0x160)](_0xf775f0)[_0x5f0c0f(0xbe)](_0x83a8f0),{redoCache:_0xd71a2c}=_0x49f58c[_0x5f0c0f(0x24b)]();if(_0xd71a2c['length']===0x0)return _0x475e84;let _0x33e9b5=_0x3599a7['deepClone'](_0x475e84[_0x5f0c0f(0x1cc)][0x0]);for(let _0xdd0c76=0x0;_0xdd0c76<_0xd71a2c[_0x5f0c0f(0x23e)];_0xdd0c76++){const _0xad279d={'id':_0x5f0c0f(0x25b),'params':{..._0xd71a2c[_0xdd0c76]}},_0x4b458b=this[_0x5f0c0f(0x8f)][_0x5f0c0f(0x161)](_0x33e9b5,_0xad279d,!0x1);if(_0x3ef292(_0x4b458b))throw _0x4b458b[_0x5f0c0f(0x1c8)];_0x33e9b5=_0x4b458b[_0x5f0c0f(0x231)];}return{..._0x3599a7['deepClone'](_0x475e84),'mutations':[_0x33e9b5]};}[_0x387a6c(0x1d1)](_0x408e5d){const _0x3df376=_0x387a6c,{unitID:_0x36bf57}=_0x408e5d,_0x143da6=this[_0x3df376(0x170)][_0x3df376(0x160)](_0x36bf57)[_0x3df376(0xbe)](_0x83a8f0),{undoCache:_0x1c0d3a,redoCache:_0x2c3cd5}=_0x143da6[_0x3df376(0x24b)]();if(_0x1c0d3a[_0x3df376(0x23e)]===0x0||_0x2c3cd5[_0x3df376(0x23e)]===0x0)return;const _0x341d98=[],_0x8b1eb4=[];let _0x57f8dc=_0x3599a7[_0x3df376(0xea)](_0x408e5d[_0x3df376(0x1cc)][0x0]),_0x4b9f4f=_0x3599a7['deepClone'](_0x408e5d[_0x3df376(0x1cc)][0x0]);for(let _0x58e467=_0x1c0d3a[_0x3df376(0x23e)]-0x1;_0x58e467>=0x0;_0x58e467--){const _0x4d193c={'id':_0x3df376(0x25b),'params':{..._0x1c0d3a[_0x58e467]}},_0x246e94={'id':_0x3df376(0x25b),'params':{..._0x2c3cd5[_0x58e467]}},_0x4204c7=this[_0x3df376(0x8f)][_0x3df376(0x161)](_0x57f8dc,_0x4d193c,!0x1),_0x4b4bb0=this[_0x3df376(0x8f)][_0x3df376(0x161)](_0x4b9f4f,_0x246e94,!0x1);if(_0x3ef292(_0x4204c7))throw _0x4204c7['error'];if(_0x3ef292(_0x4b4bb0))throw _0x4b4bb0[_0x3df376(0x1c8)];_0x341d98['unshift'](_0x4204c7[_0x3df376(0x21b)]['params']),_0x8b1eb4[_0x3df376(0x21f)](_0x4b4bb0['m2Prime'][_0x3df376(0x16d)]),_0x57f8dc=_0x4204c7[_0x3df376(0x231)],_0x4b9f4f=_0x4b4bb0[_0x3df376(0x231)];}_0x143da6['setUndoRedoMutationParamsCache']({'undoCache':_0x341d98,'redoCache':_0x8b1eb4});}[_0x387a6c(0x87)](_0x903436){const _0x459203=_0x387a6c,{unitID:_0x471093}=_0x903436,_0x51d58c=this['_renderManagerService'][_0x459203(0x160)](_0x471093)[_0x459203(0xbe)](_0x83a8f0),_0x1589e4=_0x51d58c['getActiveRange']();if(_0x1589e4==null)return;const _0x13d232=[{'id':_0x459203(0x25b),'params':{'unitId':_0x903436['unitID'],'actions':null,'textRanges':[_0x1589e4]}}],_0x1ecb48=this[_0x459203(0x8f)][_0x459203(0x245)](_0x903436,_0x13d232);if(!_0x494bba(_0x1ecb48))throw _0x1ecb48[_0x459203(0x1c8)];const _0x3de7fa=_0x1ecb48[_0x459203(0x21b)][0x0][_0x459203(0x16d)][_0x459203(0xa2)];Array['isArray'](_0x3de7fa)&&_0x3de7fa[_0x459203(0x23e)]&&_0x51d58c[_0x459203(0x282)](_0x3de7fa[0x0]);}};re=tn([tt(0x0,_0x55f0f8),tt(0x1,_0x3f3da5)],re);var sn=Object['getOwnPropertyDescriptor'],nn=(_0xed3967,_0x578332,_0x3df186,_0x5d59ac)=>{const _0x1550b5=_0x387a6c;for(var _0xe1617c=_0x5d59ac>0x1?void 0x0:_0x5d59ac?sn(_0x578332,_0x3df186):_0x578332,_0x2c66d4=_0xed3967[_0x1550b5(0x23e)]-0x1,_0x49bad7;_0x2c66d4>=0x0;_0x2c66d4--)(_0x49bad7=_0xed3967[_0x2c66d4])&&(_0xe1617c=_0x49bad7(_0xe1617c)||_0xe1617c);return _0xe1617c;},Ce=(_0x6dd59b,_0x4058fc)=>(_0x101ebe,_0x2c8595)=>_0x4058fc(_0x101ebe,_0x2c8595,_0x6dd59b);let oe=class{constructor(_0xa5fe09,_0x519873,_0x488604){const _0x467a37=_0x387a6c;this[_0x467a37(0xa8)]=_0xa5fe09,this[_0x467a37(0x8f)]=_0x519873,this[_0x467a37(0x25c)]=_0x488604;}[_0x387a6c(0x17a)](_0x176114){const _0x3095eb=_0x387a6c;this[_0x3095eb(0x9a)](_0x176114);}[_0x387a6c(0x232)](_0x1523ce){const _0x370396=_0x387a6c,{unitID:_0x5d9d13}=_0x1523ce,{collaboration:_0x2e8c5c}=this[_0x370396(0x25c)][_0x370396(0x24c)](_0x5d9d13);if(_0x2e8c5c[_0x370396(0x23e)]===0x0)return _0x1523ce;let _0x7215f4=_0x3599a7['deepClone'](_0x1523ce[_0x370396(0x1cc)][0x0]);for(let _0x294f70=0x0;_0x294f70<_0x2e8c5c[_0x370396(0x23e)];_0x294f70++){const _0x4fb5d9={'id':_0x370396(0x25b),'params':{'unitId':_0x2e8c5c[_0x294f70][_0x370396(0x19e)],..._0x2e8c5c[_0x294f70][_0x370396(0x211)]}},_0xd10bb0=this[_0x370396(0x8f)][_0x370396(0x161)](_0x7215f4,_0x4fb5d9,!0x1);if(_0x3ef292(_0xd10bb0))throw _0xd10bb0[_0x370396(0x1c8)];_0x7215f4=_0xd10bb0[_0x370396(0x231)];}return{..._0x3599a7[_0x370396(0xea)](_0x1523ce),'mutations':[_0x7215f4]};}['_transformHistoryAndStateStack'](_0x6d6742){const _0x3bac54=_0x387a6c,{unitID:_0x5e34a9}=_0x6d6742,{history:_0x30b5dc,collaboration:_0x1264d5}=this[_0x3bac54(0x25c)][_0x3bac54(0x24c)](_0x5e34a9);if(_0x30b5dc[_0x3bac54(0x23e)]===0x0&&_0x1264d5[_0x3bac54(0x23e)]===0x0)return;const _0x59d17a=[],_0xe27959=[];let _0x563669=_0x3599a7['deepClone'](_0x6d6742[_0x3bac54(0x1cc)][0x0]),_0x2df5f8=_0x3599a7[_0x3bac54(0xea)](_0x6d6742[_0x3bac54(0x1cc)][0x0]);for(let _0x280ca9=_0x30b5dc[_0x3bac54(0x23e)]-0x1;_0x280ca9>=0x0;_0x280ca9--){const _0x282650={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x30b5dc[_0x280ca9]['unitId'],..._0x30b5dc[_0x280ca9][_0x3bac54(0x1b3)]}},_0x18918c={'id':_0x3bac54(0x25b),'params':{'unitId':_0x30b5dc[_0x280ca9]['unitId'],..._0x30b5dc[_0x280ca9][_0x3bac54(0x211)]}},_0x526755=this[_0x3bac54(0x8f)][_0x3bac54(0x161)](_0x563669,_0x282650,!0x1),_0x419ba2=this['_transformService'][_0x3bac54(0x161)](_0x2df5f8,_0x18918c,!0x1);if(_0x3ef292(_0x526755))throw _0x526755['error'];if(_0x3ef292(_0x419ba2))throw _0x419ba2[_0x3bac54(0x1c8)];_0x59d17a[_0x3bac54(0x21f)]({..._0x30b5dc[_0x280ca9],'undoState':_0x526755[_0x3bac54(0x21b)][_0x3bac54(0x16d)],'redoState':_0x419ba2[_0x3bac54(0x21b)][_0x3bac54(0x16d)]}),_0x563669=_0x526755[_0x3bac54(0x231)],_0x2df5f8=_0x419ba2['m1Prime'];}_0x563669=_0x3599a7[_0x3bac54(0xea)](_0x6d6742[_0x3bac54(0x1cc)][0x0]),_0x2df5f8=_0x3599a7[_0x3bac54(0xea)](_0x6d6742[_0x3bac54(0x1cc)][0x0]);for(let _0x556a38=_0x1264d5[_0x3bac54(0x23e)]-0x1;_0x556a38>=0x0;_0x556a38--){const _0x1f9563={'id':_0x3bac54(0x25b),'params':{'unitId':_0x1264d5[_0x556a38]['unitId'],..._0x1264d5[_0x556a38][_0x3bac54(0x1b3)]}},_0x557dac={'id':_0x3bac54(0x25b),'params':{'unitId':_0x1264d5[_0x556a38][_0x3bac54(0x19e)],..._0x1264d5[_0x556a38][_0x3bac54(0x211)]}},_0x5bd0a1=this[_0x3bac54(0x8f)][_0x3bac54(0x161)](_0x563669,_0x1f9563,!0x1),_0xc4a35=this[_0x3bac54(0x8f)][_0x3bac54(0x161)](_0x2df5f8,_0x557dac,!0x1);if(_0x3ef292(_0x5bd0a1))throw _0x5bd0a1[_0x3bac54(0x1c8)];if(_0x3ef292(_0xc4a35))throw _0xc4a35[_0x3bac54(0x1c8)];_0xe27959['unshift']({..._0x1264d5[_0x556a38],'undoState':_0x5bd0a1['m2Prime'][_0x3bac54(0x16d)],'redoState':_0xc4a35[_0x3bac54(0x21b)]['params']}),_0x563669=_0x5bd0a1['m1Prime'],_0x2df5f8=_0xc4a35[_0x3bac54(0x231)];}this['_docStateChangeManagerService'][_0x3bac54(0x10c)](_0x5e34a9,{'history':_0x59d17a,'collaboration':_0xe27959});}};oe=nn([Ce(0x0,_0x16284c(_0x15fcf5)),Ce(0x1,_0x55f0f8),Ce(0x2,_0x16284c(_0x13bc30))],oe);var rn=Object[_0x387a6c(0x147)],on=(_0x53b0be,_0x5b3baa,_0x4a3eb2,_0x426f37)=>{for(var _0x5f195b=_0x426f37>0x1?void 0x0:_0x426f37?rn(_0x5b3baa,_0x4a3eb2):_0x5b3baa,_0x4b5342=_0x53b0be['length']-0x1,_0x393125;_0x4b5342>=0x0;_0x4b5342--)(_0x393125=_0x53b0be[_0x4b5342])&&(_0x5f195b=_0x393125(_0x5f195b)||_0x5f195b);return _0x5f195b;},st=(_0x7a69dd,_0x146c26)=>(_0x39e39f,_0x1a0487)=>_0x146c26(_0x39e39f,_0x1a0487,_0x7a69dd);let ae=class{constructor(_0x44fc40,_0x27c292){const _0x507f42=_0x387a6c;this[_0x507f42(0xa8)]=_0x44fc40,this['_transformService']=_0x27c292;}[_0x387a6c(0x84)](_0x9dda6d){const _0x203ff0=_0x387a6c;var _0x29f4f0;const _0x54f5a4=this[_0x203ff0(0xa8)][_0x203ff0(0x224)](_0x10f312),_0x4a443a=(_0x29f4f0=_0x54f5a4[_0x203ff0(0x168)]())!=null?_0x29f4f0:[];if(_0x4a443a[_0x203ff0(0x23e)]===0x0)return;const _0x2ccb89=_0x9dda6d[_0x203ff0(0x25f)],_0x418e61=[{'id':_0x203ff0(0x25b),'params':{'unitId':_0x2ccb89,'actions':null,'textRanges':_0x4a443a}}],_0xcf8eff=this[_0x203ff0(0x8f)][_0x203ff0(0x245)](_0x9dda6d,_0x418e61);if(!_0x494bba(_0xcf8eff))throw _0xcf8eff[_0x203ff0(0x1c8)];const _0x4ca929=_0xcf8eff[_0x203ff0(0x21b)][0x0][_0x203ff0(0x16d)]['textRanges'];Array[_0x203ff0(0x277)](_0x4ca929)&&_0x4ca929[_0x203ff0(0x23e)]&&_0x54f5a4[_0x203ff0(0x1f1)](_0x4ca929,{'unitId':_0x2ccb89,'subUnitId':_0x2ccb89},!0x1);}};ae=on([st(0x0,_0x16284c(_0x15fcf5)),st(0x1,_0x55f0f8)],ae);var an=Object[_0x387a6c(0x147)],cn=(_0x90a48f,_0x10779f,_0x3dc383,_0x1adc66)=>{const _0x132ff0=_0x387a6c;for(var _0x54f19a=_0x1adc66>0x1?void 0x0:_0x1adc66?an(_0x10779f,_0x3dc383):_0x10779f,_0x5edbc6=_0x90a48f[_0x132ff0(0x23e)]-0x1,_0x5d08a0;_0x5edbc6>=0x0;_0x5edbc6--)(_0x5d08a0=_0x90a48f[_0x5edbc6])&&(_0x54f19a=_0x5d08a0(_0x54f19a)||_0x54f19a);return _0x54f19a;},N=(_0xf9fe59,_0x5731ec)=>(_0x606d45,_0x445099)=>_0x5731ec(_0x606d45,_0x445099,_0xf9fe59);let ce=class extends _0x67252a{constructor(_0x19ff2d,_0x39b3aa,_0x5aaaae,_0x40892e,_0x606c03,_0x46a467,_0x1cd811,_0x235da2){const _0x104c6=_0x387a6c;super(),_(this,_0x104c6(0x97),new _0x58482e(_0x16ebd1[_0x104c6(0x18f)])),(this[_0x104c6(0x25c)]=_0x19ff2d,this['_collaborationController']=_0x39b3aa,this[_0x104c6(0x201)]=_0x5aaaae,this[_0x104c6(0x10e)]=_0x40892e,this[_0x104c6(0x142)]=_0x606c03,this[_0x104c6(0x27b)]=_0x46a467,this[_0x104c6(0x1f3)]=_0x1cd811,this[_0x104c6(0x12a)]=_0x235da2,this['_initEntityListener']());}[_0x387a6c(0x105)](){const _0x5aa0ed=_0x387a6c;this[_0x5aa0ed(0x209)](this[_0x5aa0ed(0xd5)][_0x5aa0ed(0x106)][_0x5aa0ed(0x1dd)](_0x311079=>{const _0x412531=_0x5aa0ed,_0x31c4ab=this[_0x412531(0x25c)][_0x412531(0xce)][_0x412531(0x1dd)](_0x5583e3=>{const _0x276690=_0x412531;if(_0x5583e3==null)return;const {unitId:_0x271e34,redoState:_0x408f1e,commandId:_0x2b268b}=_0x5583e3;if(_0x271e34!==_0x311079[_0x276690(0x25f)])return;const _0x1c61b1={'id':_0x2b268b,'type':_0x2e5b40[_0x276690(0x260)],'params':{'unitId':_0x271e34,'actions':_0x408f1e[_0x276690(0x244)],'textRanges':null}};_0x311079[_0x276690(0x14b)](_0x1c61b1);});if(_0x311079[_0x412531(0x209)](_0x31c4ab),_0x311079 instanceof _0x36f38d){const _0x358a41={'onTransformIME':_0xc3bd04=>this[_0x412531(0x201)]['transformIMECache'](_0xc3bd04),'onTransformState':_0x1296f3=>this[_0x412531(0x10e)][_0x412531(0x17a)](_0x1296f3),'onTransformSelections':_0x5e39e6=>this['_docTransformSelectionsService']['transformSelections'](_0x5e39e6),'onSyncEditingCollabCursor':_0x18f131=>this[_0x412531(0x27b)][_0x412531(0x20b)](_0x18f131),'onTransformRemoteChangesetByIMECache':_0x4a9096=>this[_0x412531(0x201)][_0x412531(0x232)](_0x4a9096),'onTransformRemoteChangesetByStateCache':_0x545744=>this[_0x412531(0x10e)]['transformRemoteChangeset'](_0x545744)};_0x311079[_0x412531(0x1df)](_0x358a41);}}));}};ce=cn([N(0x0,_0x16284c(_0x13bc30)),N(0x1,_0x16284c(_0x164730)),N(0x2,_0x16284c(re)),N(0x3,_0x16284c(oe)),N(0x4,_0x16284c(ae)),N(0x5,_0x16284c(Fe)),N(0x6,_0x1ce96a),N(0x7,_0x16284c(_0x4ec1de))],ce);var ln=Object[_0x387a6c(0x147)],_n=(_0x2cf7b8,_0x12135b,_0x34f07a,_0x131b71)=>{const _0x255208=_0x387a6c;for(var _0x3eb7a0=_0x131b71>0x1?void 0x0:_0x131b71?ln(_0x12135b,_0x34f07a):_0x12135b,_0x417e25=_0x2cf7b8[_0x255208(0x23e)]-0x1,_0x341c71;_0x417e25>=0x0;_0x417e25--)(_0x341c71=_0x2cf7b8[_0x417e25])&&(_0x3eb7a0=_0x341c71(_0x3eb7a0)||_0x3eb7a0);return _0x3eb7a0;},Ee=(_0x200413,_0x2cb168)=>(_0x1d05f5,_0x3d8952)=>_0x2cb168(_0x1d05f5,_0x3d8952,_0x200413);let we=class extends _0x67252a{constructor(_0x4be428,_0x469afb,_0x599bf3){const _0x4695b2=_0x387a6c;super(),_(this,'_cachedData',new Map()),_(this,_0x4695b2(0xd4),new Map()),_(this,_0x4695b2(0xfa),!0x1),(this[_0x4695b2(0x14f)]=_0x4be428,this[_0x4695b2(0x286)]=_0x469afb,this[_0x4695b2(0x136)]=_0x599bf3);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x387a6c(0x228)](){const _0x63e2a9=_0x387a6c;this[_0x63e2a9(0xfa)]=!0x1;}get[_0x387a6c(0x1e9)](){const _0x28edec=_0x387a6c;return this[_0x28edec(0xd4)];}[_0x387a6c(0x180)](){const _0x3d15e2=_0x387a6c;this[_0x3d15e2(0x1a6)]()[_0x3d15e2(0x104)](()=>super[_0x3d15e2(0x180)]());}async[_0x387a6c(0x248)](_0x28aebe){const _0x1cd4be=_0x387a6c;return this[_0x1cd4be(0xfa)]?null:this[_0x1cd4be(0x286)][_0x1cd4be(0x288)](_0x5ed85d(_0x28aebe));}async['saveOfflineData'](_0x467b25,_0x7d5a52){const _0xd0dd9b=_0x387a6c;return!!this[_0xd0dd9b(0x286)][_0xd0dd9b(0x13c)](_0x467b25,_0x7d5a52);}[_0x387a6c(0x251)](_0x3dcf14,_0x140043,_0x4843f8,_0x16d90f){const _0x3f09fd=_0x387a6c,_0x2c8465=this[_0x3f09fd(0x136)][_0x3f09fd(0x19d)](_0x3dcf14);this[_0x3f09fd(0x18a)][_0x3f09fd(0x109)](_0x3dcf14,{'unitID':_0x3dcf14,'type':_0x140043,'awaitingChangeset':_0x4843f8,'mutations':_0x16d90f,'rev':_0x2c8465}),this[_0x3f09fd(0xd4)][_0x3f09fd(0x20e)](_0x3dcf14)||this[_0x3f09fd(0x1f4)](_0x3dcf14);}[_0x387a6c(0x1f4)](_0x322d5d){const _0x18b27f=_0x387a6c,_0x589b64=this[_0x18b27f(0x227)]();_0x589b64===0x0?this['_saveCache'](_0x322d5d):this[_0x18b27f(0xd4)][_0x18b27f(0x109)](_0x322d5d,setTimeout(()=>this[_0x18b27f(0x118)](_0x322d5d),_0x589b64));}[_0x387a6c(0x227)](){const _0x4976ce=_0x387a6c;var _0x43b9d5;return(_0x43b9d5=this['_configService'][_0x4976ce(0x18c)](_0x2de7cd))!=null?_0x43b9d5:_0x2f0b37;}['_saveCache'](_0x5b671){const _0xb6273b=_0x387a6c,_0x3cf7ef=this[_0xb6273b(0xd4)]['get'](_0x5b671);return _0x3cf7ef!==void 0x0&&window[_0xb6273b(0x169)](_0x3cf7ef),this[_0xb6273b(0x286)][_0xb6273b(0x13c)](_0x5ed85d(_0x5b671),this['_cachedData'][_0xb6273b(0x224)](_0x5b671))['then'](()=>this[_0xb6273b(0xd4)][_0xb6273b(0xde)](_0x5b671));}async[_0x387a6c(0x1a6)](){const _0xb42352=_0x387a6c,_0xfe67ac=[];this['_saveTaskMap'][_0xb42352(0x146)]((_0x57f06e,_0xeaba54)=>{const _0x435883=_0xb42352;window['clearTimeout'](_0x57f06e),_0xfe67ac[_0x435883(0x22f)](this[_0x435883(0x118)](_0xeaba54)[_0x435883(0x104)](()=>{this['_saveTaskMap']['delete'](_0xeaba54);}));}),await Promise[_0xb42352(0x153)](_0xfe67ac);}};we=_n([Ee(0x0,_0x13ae52),Ee(0x1,_0x54f7c7),Ee(0x2,_0x16284c(_0x21b73a))],we);class hn extends _0x4aac8c{constructor(){const _0x2f8ef2=_0x387a6c;super(),_(this,_0x2f8ef2(0x225)),this['urlChange$']=_0x8cd590(window,'popstate')['pipe'](_0x3b5c1e(this['dispose$']),_0x3fba01(0x1),_0x2fceac(void 0x0));}[_0x387a6c(0x1f7)](_0x2621a6,_0x501854,_0xc6e6b7=!0x1){const _0xc291b1=_0x387a6c,_0x417385=new URL(window[_0xc291b1(0x1bc)]['href']);_0x417385[_0xc291b1(0x12c)][_0xc291b1(0x109)](_0x2621a6,_0x501854),_0xc6e6b7?window[_0xc291b1(0x182)][_0xc291b1(0xd2)]('','',_0x417385[_0xc291b1(0x242)]()):window[_0xc291b1(0x182)][_0xc291b1(0xe3)]('','',_0x417385[_0xc291b1(0x242)]());}[_0x387a6c(0x13e)](_0x108fae,_0x15784a=!0x1){const _0x5d400d=_0x387a6c,_0x404b67=new URL(window[_0x5d400d(0x1bc)][_0x5d400d(0x19c)]);_0x404b67[_0x5d400d(0x12c)][_0x5d400d(0xde)](_0x108fae),_0x15784a?window[_0x5d400d(0x182)][_0x5d400d(0xd2)]('','',_0x404b67['toString']()):window['history'][_0x5d400d(0xe3)]('','',_0x404b67[_0x5d400d(0x242)]());}['getParam'](_0x16b134){const _0x3364f6=_0x387a6c;var _0x10fb11;return(_0x10fb11=new URL(window[_0x3364f6(0x1bc)][_0x3364f6(0x19c)])[_0x3364f6(0x12c)]['get'](_0x16b134))!=null?_0x10fb11:void 0x0;}}var un=Object['defineProperty'],dn=Object[_0x387a6c(0x147)],fn=(_0x190cca,_0x4c1043,_0x13e6f4)=>_0x4c1043 in _0x190cca?un(_0x190cca,_0x4c1043,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13e6f4}):_0x190cca[_0x4c1043]=_0x13e6f4,Sn=(_0x33d147,_0x5ea3b5,_0x463518,_0x41bafe)=>{for(var _0x4c3afb=_0x41bafe>0x1?void 0x0:_0x41bafe?dn(_0x5ea3b5,_0x463518):_0x5ea3b5,_0x2d7813=_0x33d147['length']-0x1,_0x1e793d;_0x2d7813>=0x0;_0x2d7813--)(_0x1e793d=_0x33d147[_0x2d7813])&&(_0x4c3afb=_0x1e793d(_0x4c3afb)||_0x4c3afb);return _0x4c3afb;},Oe=(_0x37dc52,_0x1cee99)=>(_0x31f4af,_0x24a04f)=>_0x1cee99(_0x31f4af,_0x24a04f,_0x37dc52),mn=(_0x14f176,_0x5baac2,_0xe8ba9f)=>fn(_0x14f176,_0x5baac2+'',_0xe8ba9f);const In=_0x387a6c(0x162);let Ae=class extends _0x9c3463{constructor(_0x189264=et,_0x996bbc,_0x431e88,_0x4910be){const _0x1f67df=_0x387a6c;super(),this[_0x1f67df(0x237)]=_0x189264,this['_renderManagerService']=_0x996bbc,this[_0x1f67df(0xa8)]=_0x431e88,this[_0x1f67df(0x14f)]=_0x4910be;const {..._0x4d963e}=_0x3bb9b4({},et,this[_0x1f67df(0x237)]);this[_0x1f67df(0x14f)][_0x1f67df(0x9f)](qi,_0x4d963e);}[_0x387a6c(0x90)](){const _0x286129=_0x387a6c;this[_0x286129(0x16a)](),this[_0x286129(0x271)]();}[_0x387a6c(0x1eb)](){const _0x28b002=_0x387a6c;this[_0x28b002(0x102)]();}['_registerDependencies'](){const _0x271cfe=_0x387a6c;var _0x3003c6;const _0x5dac70=[[He],[ae],[re],[oe],[Fe],[Ut,{'useClass':hn}],[_0x21f375,{'useClass':_0x426b55}],[_0xd40667,{'useClass':we}],[se],[ce],[ne],[F],[Ne],[ie]];_0x2ccd7f(this[_0x271cfe(0xa8)],_0x9a1dc(_0x5dac70,(_0x3003c6=this['_config'])==null?void 0x0:_0x3003c6[_0x271cfe(0x25d)]));}[_0x387a6c(0x102)](){const _0x4e54cb=_0x387a6c;this[_0x4e54cb(0x209)](this['_renderManagerService'][_0x4e54cb(0x24d)](_0x56af0b[_0x4e54cb(0xab)],[Le])),this['disposeWithMe'](this[_0x4e54cb(0x170)][_0x4e54cb(0x24d)](_0x56af0b[_0x4e54cb(0x252)],[Pe]));}['_initDependencies'](){const _0x466c59=_0x387a6c;_0x28e28e(this[_0x466c59(0xa8)],[[F],[se],[ce],[ne],[ie]]);}};mn(Ae,_0x387a6c(0x28b),In),Ae=Sn([_0x50a827(_0xd6296b),Oe(0x1,_0x3f3da5),Oe(0x2,_0x16284c(_0x15fcf5)),Oe(0x3,_0x13ae52)],Ae);var vn=Object[_0x387a6c(0x147)],gn=(_0x275959,_0x278780,_0x34e786,_0x531b2b)=>{const _0x436119=_0x387a6c;for(var _0x7c91bb=_0x531b2b>0x1?void 0x0:_0x531b2b?vn(_0x278780,_0x34e786):_0x278780,_0x4b31a9=_0x275959[_0x436119(0x23e)]-0x1,_0x5a9ce3;_0x4b31a9>=0x0;_0x4b31a9--)(_0x5a9ce3=_0x275959[_0x4b31a9])&&(_0x7c91bb=_0x5a9ce3(_0x7c91bb)||_0x7c91bb);return _0x7c91bb;},z=(_0x33fd9a,_0x8349e2)=>(_0xf403f0,_0x23b380)=>_0x8349e2(_0xf403f0,_0x23b380,_0x33fd9a);let it=class extends _0x44e1cb{constructor(_0x16f3b2,_0x3667e6,_0x129c45,_0x5dfab3,_0x597d56){super(_0x16f3b2,_0x3667e6,_0x129c45,_0x5dfab3,_0x597d56);}async['createSocket'](_0x1501f8){const _0x35b5f8=_0x387a6c,_0x5918f2=await this[_0x35b5f8(0x155)](),_0x1b736b=this['_createSocketURL'](_0x1501f8,_0x5918f2);return this[_0x35b5f8(0x28a)](_0x1b736b);}[_0x387a6c(0xcb)](_0x1283d1,_0x19d25b){const _0x19d087=_0x387a6c,_0x5f2df6=typeof window>'u'?new URL(_0x1283d1):new URL(_0x1283d1,window[_0x19d087(0x1bc)][_0x19d087(0x23d)]);_0x5f2df6[_0x19d087(0x12c)][_0x19d087(0x109)](_0x19d087(0x17f),_0x19d25b);const _0x340e04=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x19d087(0x1bc)][_0x19d087(0x111)]);return _0x340e04['get'](_0x19d087(0x246))&&_0x5f2df6[_0x19d087(0x12c)][_0x19d087(0x109)](_0x19d087(0x246),_0x340e04[_0x19d087(0x224)]('runId')),_0x5f2df6['toString']();}async[_0x387a6c(0x155)](){const _0x355b0a=_0x387a6c;var _0x16b4d5,_0x2a4cec,_0x38ebd4;const _0x359cb0=this[_0x355b0a(0x14f)][_0x355b0a(0x18c)](_0x101c9),_0x4b9ff0=(_0x16b4d5=_0x359cb0==null?void 0x0:_0x359cb0[_0x355b0a(0x27f)])!=null?_0x16b4d5:_0x396309;return(_0x38ebd4=(_0x2a4cec=(await this[_0x355b0a(0x1e5)][_0x355b0a(0x224)](_0x4b9ff0,{'headers':{'Content-Type':'application/json'}}))[_0x355b0a(0xf2)])==null?void 0x0:_0x2a4cec[_0x355b0a(0x119)])!=null?_0x38ebd4:'';}};it=gn([z(0x0,_0x16284c(_0x15fcf5)),z(0x1,_0x16284c(_0x3f477d)),z(0x2,_0x13ae52),z(0x3,_0x2528d2),z(0x4,_0x342cf1)],it);var Lt=(_0x184c2f=>(_0x184c2f[_0x184c2f[_0x387a6c(0x27c)]=0x0]=_0x387a6c(0x27c),_0x184c2f[_0x184c2f['OK']=0x1]='OK',_0x184c2f[_0x184c2f['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x184c2f[_0x184c2f['PERMISSION_DENIED']=0x3]=_0x387a6c(0x1bd),_0x184c2f[_0x184c2f[_0x387a6c(0x190)]=0x4]=_0x387a6c(0x190),_0x184c2f[_0x184c2f[_0x387a6c(0x174)]=0x5]=_0x387a6c(0x174),_0x184c2f[_0x184c2f['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x184c2f[_0x184c2f['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x184c2f[_0x184c2f['TOO_MANY_REQUESTS']=0x8]=_0x387a6c(0x116),_0x184c2f[_0x184c2f[_0x387a6c(0x27d)]=0x9]=_0x387a6c(0x27d),_0x184c2f[_0x184c2f[_0x387a6c(0x94)]=0xa]='LOGIN_FAILED',_0x184c2f[_0x184c2f['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x387a6c(0x123),_0x184c2f[_0x184c2f[_0x387a6c(0x24f)]=0xc]=_0x387a6c(0x24f),_0x184c2f[_0x184c2f[_0x387a6c(0x267)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x184c2f[_0x184c2f[_0x387a6c(0xc8)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x184c2f[_0x184c2f[_0x387a6c(0x141)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x184c2f[_0x184c2f[_0x387a6c(0x1d2)]=0x1771]=_0x387a6c(0x1d2),_0x184c2f[_0x184c2f[_0x387a6c(0xd9)]=0x1772]=_0x387a6c(0xd9),_0x184c2f[_0x184c2f[_0x387a6c(0x214)]=0x1773]=_0x387a6c(0x214),_0x184c2f[_0x184c2f[_0x387a6c(0x157)]=0x1b59]=_0x387a6c(0x157),_0x184c2f[_0x184c2f[_0x387a6c(0x9b)]=0x1b5a]=_0x387a6c(0x9b),_0x184c2f[_0x184c2f['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x387a6c(0x16e),_0x184c2f[_0x184c2f[_0x387a6c(0x1b8)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x184c2f[_0x184c2f['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x184c2f[_0x184c2f[_0x387a6c(0x213)]=0x1f41]=_0x387a6c(0x213),_0x184c2f[_0x184c2f[_0x387a6c(0x121)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x184c2f[_0x184c2f['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x387a6c(0x1aa),_0x184c2f[_0x184c2f[_0x387a6c(0x253)]=0x232b]=_0x387a6c(0x253),_0x184c2f[_0x184c2f['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x387a6c(0x16c),_0x184c2f[_0x184c2f[_0x387a6c(0x22d)]=0x232d]=_0x387a6c(0x22d),_0x184c2f[_0x184c2f[_0x387a6c(0x149)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x184c2f[_0x184c2f[_0x387a6c(0xed)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x184c2f[_0x184c2f[_0x387a6c(0x1c1)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x184c2f[_0x184c2f[_0x387a6c(0x1fb)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x184c2f[_0x184c2f[_0x387a6c(0xb0)]=0x271a]=_0x387a6c(0xb0),_0x184c2f[_0x184c2f[_0x387a6c(0x1f8)]=0x271b]=_0x387a6c(0x1f8),_0x184c2f[_0x184c2f[_0x387a6c(0xf7)]=0x271c]=_0x387a6c(0xf7),_0x184c2f[_0x184c2f['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x387a6c(0x264),_0x184c2f[_0x184c2f[_0x387a6c(0x212)]=0x271e]=_0x387a6c(0x212),_0x184c2f[_0x184c2f[_0x387a6c(0x250)]=0x271f]=_0x387a6c(0x250),_0x184c2f[_0x184c2f[_0x387a6c(0x1a3)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x184c2f[_0x184c2f[_0x387a6c(0x24e)]=0x2af9]=_0x387a6c(0x24e),_0x184c2f[_0x184c2f[_0x387a6c(0xf3)]=0x2ee1]=_0x387a6c(0xf3),_0x184c2f[_0x184c2f[_0x387a6c(0x129)]=0x2ee2]=_0x387a6c(0x129),_0x184c2f[_0x184c2f[_0x387a6c(0x1b0)]=0x2ee3]=_0x387a6c(0x1b0),_0x184c2f[_0x184c2f[_0x387a6c(0x21e)]=0x2ee4]=_0x387a6c(0x21e),_0x184c2f[_0x184c2f['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x184c2f[_0x184c2f['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x387a6c(0x269),_0x184c2f[_0x184c2f[_0x387a6c(0x112)]=0x32ca]=_0x387a6c(0x112),_0x184c2f[_0x184c2f[_0x387a6c(0x115)]=0x32cb]=_0x387a6c(0x115),_0x184c2f[_0x184c2f['UNRECOGNIZED']=-0x1]=_0x387a6c(0x17e),_0x184c2f))(Lt||{}),pn=Object['getOwnPropertyDescriptor'],Cn=(_0x221f69,_0x7d6968,_0x152bd6,_0x1d8c88)=>{for(var _0x3856e2=_0x1d8c88>0x1?void 0x0:_0x1d8c88?pn(_0x7d6968,_0x152bd6):_0x7d6968,_0x5819bd=_0x221f69['length']-0x1,_0x14f57c;_0x5819bd>=0x0;_0x5819bd--)(_0x14f57c=_0x221f69[_0x5819bd])&&(_0x3856e2=_0x14f57c(_0x3856e2)||_0x3856e2);return _0x3856e2;},be=(_0x55b55e,_0x530167)=>(_0x15ddb2,_0x5b7381)=>_0x530167(_0x15ddb2,_0x5b7381,_0x55b55e);let nt=class extends _0x67252a{constructor(_0x330b7c,_0x32d6df,_0x4e506f){const _0x4538c2=_0x387a6c;super(),this['_instanceService']=_0x330b7c,this[_0x4538c2(0x1e5)]=_0x32d6df,this[_0x4538c2(0x14f)]=_0x4e506f;}async[_0x387a6c(0x199)](_0x176fe2,_0xaeb089,_0x5d3f2a,..._0x4f757b){const _0x3c719c=_0x387a6c;var _0x4c9c80,_0x1cb731,_0x4973c3,_0x455d89;const _0xf43cdf=this[_0x3c719c(0xc1)]['getFocusedUnit']();if(!_0xf43cdf)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x46ace2=((_0x4c9c80=this[_0x3c719c(0x14f)][_0x3c719c(0x18c)](_0x40ce8b))!=null?_0x4c9c80:_0x5d6d31)+'/'+_0x176fe2+_0x3c719c(0x1be)+_0xaeb089,_0x1996af=new URL(window[_0x3c719c(0x1bc)]['href']),_0x4ca104={'scriptId':_0x176fe2,'runId':(_0x1cb731=_0x1996af[_0x3c719c(0x12c)][_0x3c719c(0x224)](_0x3c719c(0x246)))!=null?_0x1cb731:'','function':_0xaeb089,'unitId':_0xf43cdf[_0x3c719c(0x183)](),'argsOfFunction':JSON[_0x3c719c(0x86)](_0x4f757b),'invokeId':(_0x4973c3=_0x5d3f2a[_0x3c719c(0x27a)])!=null?_0x4973c3:'','executionId':(_0x455d89=_0x5d3f2a[_0x3c719c(0x128)])!=null?_0x455d89:''};try{const _0x5a5bca=await this[_0x3c719c(0x1e5)][_0x3c719c(0x1e1)](_0x46ace2,{'body':_0x4ca104});return _0x5a5bca[_0x3c719c(0xf2)]['error']&&_0x5a5bca[_0x3c719c(0xf2)][_0x3c719c(0x1c8)][_0x3c719c(0x202)]!==Lt['OK']?_0x3c719c(0x262):_0x5a5bca[_0x3c719c(0xf2)][_0x3c719c(0x85)];}catch{return _0x3c719c(0x262);}}};nt=Cn([be(0x0,_0x346188),be(0x1,_0x16284c(_0x3f477d)),be(0x2,_0x13ae52)],nt);const rt=0x7530,ot='ACTIVE_UNIT_EVENT_CHANNEL';class Fn extends _0x67252a{constructor(){const _0x24a3b8=_0x387a6c;super(),_(this,_0x24a3b8(0x181),_0x31f7dd()),_(this,_0x24a3b8(0xb5),new Set()),_(this,_0x24a3b8(0xbd),new Map()),_(this,_0x24a3b8(0x11a),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x24a3b8(0x137),new Map()),this[_0x24a3b8(0x13d)]();}[_0x387a6c(0x180)](){const _0x207d41=_0x387a6c;super[_0x207d41(0x180)](),this[_0x207d41(0x208)][_0x207d41(0x146)]((_0x9c415e,_0x556a49)=>this[_0x207d41(0x1de)](_0x556a49)),this[_0x207d41(0x11a)]&&window[_0x207d41(0x11d)](this['_heartbeatTimer']);}[_0x387a6c(0x1a1)](_0xee581a){const _0x1e990b=_0x387a6c;return this['_ensureSubject'](_0xee581a)[_0x1e990b(0x1ce)](_0x5c7a4c());}[_0x387a6c(0x268)](_0xfa7c16){const _0xbf9d96=_0x387a6c;this['_selfUnitIDs'][_0xbf9d96(0x1fa)]===0x0&&this[_0xbf9d96(0x1ea)](),this[_0xbf9d96(0xb5)]['add'](_0xfa7c16),this[_0xbf9d96(0x171)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xfa7c16],'isForwarded':!0x1});}[_0x387a6c(0x154)](_0x759767){const _0x160a66=_0x387a6c;this[_0x160a66(0xb5)]['delete'](_0x759767),this[_0x160a66(0xb5)][_0x160a66(0x1fa)]===0x0&&this[_0x160a66(0x11a)]&&window[_0x160a66(0x11d)](this['_heartbeatTimer']);}[_0x387a6c(0x13d)](){const _0x2bf2be=_0x387a6c;this[_0x2bf2be(0x209)](_0x455292(_0x8cd590(window,'storage')['subscribe'](_0xde3a66=>{const _0x11b574=_0x2bf2be;if(_0xde3a66['key']!==ot||!_0xde3a66[_0x11b574(0x285)])return;const _0x18280e=JSON[_0x11b574(0x175)](_0xde3a66['newValue']);this['_handleEvent'](_0x18280e);}))),window[_0x2bf2be(0x220)](_0x2bf2be(0x278),()=>this[_0x2bf2be(0x171)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x2a5c9d){const _0x273ced=_0x387a6c;switch(_0x2a5c9d[_0x273ced(0x216)]){case 0x0:this['_handleJoinEvent'](_0x2a5c9d);break;case 0x1:this[_0x273ced(0x194)](_0x2a5c9d);break;case 0x2:this['_handleHeartbeatEvent'](_0x2a5c9d);break;}}[_0x387a6c(0x145)](_0x87fa1d){const _0x20d124=_0x387a6c,{unitIDs:_0x15582b,memberID:_0x1f0f8e,isForwarded:_0x328483}=_0x87fa1d;_0x15582b[_0x20d124(0x146)](_0x47f711=>{const _0x334b13=_0x20d124;if(!_0x328483&&this[_0x334b13(0xbd)][_0x334b13(0x20e)](_0x47f711)&&this['_ensureSubject'](_0x47f711)[_0x334b13(0x207)](_0xbe51a0[_0x334b13(0x23a)]),!this['_unitOnClients'][_0x334b13(0x20e)](_0x47f711)||!this[_0x334b13(0xbd)]['get'](_0x47f711)[_0x334b13(0x20e)](_0x1f0f8e)){const _0x23c039=this[_0x334b13(0xbd)][_0x334b13(0x224)](_0x47f711)||new Set();_0x23c039[_0x334b13(0x1d7)](_0x1f0f8e),this[_0x334b13(0xbd)][_0x334b13(0x109)](_0x47f711,_0x23c039),this[_0x334b13(0x1bf)](_0x1f0f8e);}}),_0x328483||this[_0x20d124(0x171)]({'type':0x0,'memberID':this[_0x20d124(0x181)],'unitIDs':[...this[_0x20d124(0xb5)]],'isForwarded':!0x0});}[_0x387a6c(0x1bf)](_0x28b359){const _0x2b5b5e=_0x387a6c;this[_0x2b5b5e(0x1de)](_0x28b359);const _0x54c519=window['setTimeout'](()=>{const _0x74f27b=_0x2b5b5e;this[_0x74f27b(0xbd)][_0x74f27b(0x146)](_0xcf44a3=>{_0xcf44a3['delete'](_0x28b359);});},rt*0x2);this['_clearOtherTimers'][_0x2b5b5e(0x109)](_0x28b359,_0x54c519);}[_0x387a6c(0x1de)](_0x231606){const _0x2b945f=_0x387a6c;if(this['_clearOtherTimers'][_0x2b945f(0x20e)](_0x231606)){const _0x112902=this['_clearOtherTimers'][_0x2b945f(0x224)](_0x231606);_0x112902&&window['clearTimeout'](_0x112902),this[_0x2b945f(0x208)][_0x2b945f(0x109)](_0x231606,null);}}[_0x387a6c(0x194)](_0x3da72c){const _0xefc2ac=_0x387a6c,{memberID:_0x4b1573,unitIDs:_0x16533c}=_0x3da72c;_0x16533c[_0xefc2ac(0x146)](_0x2744ec=>{const _0x343364=_0xefc2ac;var _0x3dc878;const _0x318102=this[_0x343364(0xbd)]['get'](_0x2744ec);_0x318102&&(_0x318102[_0x343364(0xde)](_0x4b1573),(_0x3dc878=this[_0x343364(0x113)](_0x2744ec))==null||_0x3dc878[_0x343364(0x207)](_0x318102['size']===0x0?_0xbe51a0['NO_OTHER_CLIENTS_EDITING']:_0xbe51a0['OTHER_CLIENTS_EDITING']));}),this[_0xefc2ac(0x1de)](_0x4b1573);}[_0x387a6c(0x230)](_0x180eda){const _0x71542c=_0x387a6c;this[_0x71542c(0x1bf)](_0x180eda[_0x71542c(0x124)]);}[_0x387a6c(0x171)](_0x5c4282){const _0x562923=_0x387a6c;localStorage['setItem'](ot,JSON[_0x562923(0x86)](_0x5c4282));}[_0x387a6c(0x1ea)](){const _0x32304f=_0x387a6c;this[_0x32304f(0x11a)]=window[_0x32304f(0x148)](()=>{const _0x506d8c=_0x32304f;this[_0x506d8c(0x171)]({'type':0x2,'memberID':this['_id']});},rt);}[_0x387a6c(0x113)](_0x19e87b){const _0x196e9e=_0x387a6c;return this[_0x196e9e(0x137)][_0x196e9e(0x20e)](_0x19e87b)||this[_0x196e9e(0x137)][_0x196e9e(0x109)](_0x19e87b,new _0x58482e(_0xbe51a0[_0x196e9e(0x14c)])),this['_unitStatus'][_0x196e9e(0x224)](_0x19e87b);}}export{it as BrowserCollaborationSocketService,ie as CollaborationDataLoaderController,se as DesktopCollaborationStatusDisplayController,Ut as IURLService,nt as RemoteUniscriptService,Xi as SheetCollabCursorShape,Ae as UniverCollaborationClientUIPlugin,Fn as WebBrowserSingleActiveUnitService,hn as WebURLService};
@@ -1 +1 @@
1
- function _0x5d94(){const _0xe5e785=['Syncing...','Authentication\x20Error','Click\x20to\x20Reconnect','30434921mafLJf','4164668vZGGQD','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20Conflict','20DIPEie','10asxLtY','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Synced','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','3822318lDjrrw','Edit\x20conflicts','911766sftbEJ','Connection\x20failed,\x20please\x20check\x20your\x20network.','1723014HjKTsy','6832854KWboUA','2158722ylhOJc','Local\x20file','6jMHBFM','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','8xzCfFd','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.'];_0x5d94=function(){return _0xe5e785;};return _0x5d94();}const _0x4f7e75=_0x58de;(function(_0x84c492,_0x1c4a88){const _0x2cf873=_0x58de,_0x1909c7=_0x84c492();while(!![]){try{const _0x4ee431=parseInt(_0x2cf873(0x1d0))/0x1+parseInt(_0x2cf873(0x1e8))/0x2*(parseInt(_0x2cf873(0x1d4))/0x3)+parseInt(_0x2cf873(0x1dc))/0x4+parseInt(_0x2cf873(0x1e0))/0x5*(-parseInt(_0x2cf873(0x1d2))/0x6)+parseInt(_0x2cf873(0x1d1))/0x7+parseInt(_0x2cf873(0x1d6))/0x8*(parseInt(_0x2cf873(0x1e6))/0x9)+-parseInt(_0x2cf873(0x1e1))/0xa*(parseInt(_0x2cf873(0x1db))/0xb);if(_0x4ee431===_0x1c4a88)break;else _0x1909c7['push'](_0x1909c7['shift']());}catch(_0xb26050){_0x1909c7['push'](_0x1909c7['shift']());}}}(_0x5d94,0xd499c));const e={'collab-client':{'tooltip':{'reconnect':_0x4f7e75(0x1da)}},'collabStatus':{'fetchMiss':_0x4f7e75(0x1e5),'conflict':_0x4f7e75(0x1e7),'notCollab':_0x4f7e75(0x1d3),'synced':_0x4f7e75(0x1e3),'syncing':_0x4f7e75(0x1d8),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x4f7e75(0x1cf),'will-retry':_0x4f7e75(0x1d5),'room-full':_0x4f7e75(0x1d7),'collaboration-timeout':_0x4f7e75(0x1e2)},'conflict':{'title':_0x4f7e75(0x1df),'content':_0x4f7e75(0x1de)},'permission':{'title':_0x4f7e75(0x1d9),'content':_0x4f7e75(0x1e4)},'collaboration':{'single-unit':{'warning':_0x4f7e75(0x1dd)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;function _0x58de(_0x2b9f58,_0x30a1f5){const _0x5d9452=_0x5d94();return _0x58de=function(_0x58de72,_0x1c7b27){_0x58de72=_0x58de72-0x1cf;let _0x2de488=_0x5d9452[_0x58de72];return _0x2de488;},_0x58de(_0x2b9f58,_0x30a1f5);}export{o as default};
1
+ const _0x2eac54=_0x37b9;function _0x53ff(){const _0x4f7021=['271735zcUtJT','27OVjjbj','Edit\x20conflicts','Local\x20file','1184168cVqssF','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Syncing...','Connection\x20failed,\x20please\x20check\x20your\x20network.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','278199aeVHfC','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','2688520ROmwjj','32935810uWjmPP','2393592dDYHou','10788771TtOnzT','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Click\x20to\x20Reconnect','132KOoyDr','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','28PBMOJm'];_0x53ff=function(){return _0x4f7021;};return _0x53ff();}(function(_0x51897b,_0x45dbe4){const _0x5f2a33=_0x37b9,_0xe8e055=_0x51897b();while(!![]){try{const _0x46965e=-parseInt(_0x5f2a33(0x87))/0x1+parseInt(_0x5f2a33(0x82))/0x2*(-parseInt(_0x5f2a33(0x8e))/0x3)+parseInt(_0x5f2a33(0x91))/0x4+parseInt(_0x5f2a33(0x83))/0x5*(-parseInt(_0x5f2a33(0x97))/0x6)+parseInt(_0x5f2a33(0x94))/0x7+-parseInt(_0x5f2a33(0x93))/0x8*(parseInt(_0x5f2a33(0x84))/0x9)+parseInt(_0x5f2a33(0x92))/0xa;if(_0x46965e===_0x45dbe4)break;else _0xe8e055['push'](_0xe8e055['shift']());}catch(_0x34ec62){_0xe8e055['push'](_0xe8e055['shift']());}}}(_0x53ff,0xe35e7));function _0x37b9(_0x13d74d,_0x27c05a){const _0x53ffbd=_0x53ff();return _0x37b9=function(_0x37b934,_0x100759){_0x37b934=_0x37b934-0x82;let _0x307ed4=_0x53ffbd[_0x37b934];return _0x307ed4;},_0x37b9(_0x13d74d,_0x27c05a);}const e={'collab-client':{'tooltip':{'reconnect':_0x2eac54(0x96)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x2eac54(0x85),'notCollab':_0x2eac54(0x86),'synced':_0x2eac54(0x90),'syncing':_0x2eac54(0x89),'offline':_0x2eac54(0x88)},'session':{'connection-failed':_0x2eac54(0x8a),'will-retry':_0x2eac54(0x8b),'room-full':_0x2eac54(0x8d),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':'Collaboration\x20Conflict','content':_0x2eac54(0x8c)},'permission':{'title':'Authentication\x20Error','content':_0x2eac54(0x95)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x2eac54(0x8f)},'auth':{'needGotoLoginAlert':_0x2eac54(0x98)}},o=e;export{o as default};
@@ -1 +1 @@
1
- function _0xefff(){const _0xf5acb=['Collaboration\x20Conflict','Click\x20to\x20Reconnect','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Syncing...','70YhsuZC','314115uxsbmx','1659342ibMUrC','988636cgIxyY','4jwnGXT','Authentication\x20Error','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','Edit\x20conflicts','3584919sjwVcQ','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed,\x20please\x20check\x20your\x20network.','121YeAsSa','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','8168cToDID','71802bHocRc','541150iDvEbo','11871cSXDjh','Local\x20file','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'];_0xefff=function(){return _0xf5acb;};return _0xefff();}const _0x752c56=_0x1014;(function(_0x1160b0,_0x4b0840){const _0x133cfe=_0x1014,_0x4f0e27=_0x1160b0();while(!![]){try{const _0x336c40=-parseInt(_0x133cfe(0x8d))/0x1+parseInt(_0x133cfe(0x8c))/0x2+parseInt(_0x133cfe(0x93))/0x3*(-parseInt(_0x133cfe(0x8e))/0x4)+parseInt(_0x133cfe(0x8b))/0x5+-parseInt(_0x133cfe(0x99))/0x6*(-parseInt(_0x133cfe(0x8a))/0x7)+-parseInt(_0x133cfe(0x98))/0x8*(-parseInt(_0x133cfe(0x83))/0x9)+parseInt(_0x133cfe(0x9a))/0xa*(parseInt(_0x133cfe(0x96))/0xb);if(_0x336c40===_0x4b0840)break;else _0x4f0e27['push'](_0x4f0e27['shift']());}catch(_0x49b720){_0x4f0e27['push'](_0x4f0e27['shift']());}}}(_0xefff,0xbc1d7));function _0x1014(_0x575ef2,_0x12b8a0){const _0xefff4c=_0xefff();return _0x1014=function(_0x1014a3,_0x27cfd6){_0x1014a3=_0x1014a3-0x83;let _0x3c4575=_0xefff4c[_0x1014a3];return _0x3c4575;},_0x1014(_0x575ef2,_0x12b8a0);}const e={'collab-client':{'tooltip':{'reconnect':_0x752c56(0x87)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x752c56(0x92),'notCollab':_0x752c56(0x84),'synced':_0x752c56(0x91),'syncing':_0x752c56(0x89),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x752c56(0x95),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x752c56(0x97)},'conflict':{'title':_0x752c56(0x86),'content':_0x752c56(0x85)},'permission':{'title':_0x752c56(0x8f),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x752c56(0x88)},'closeRoom':_0x752c56(0x90)},'auth':{'needGotoLoginAlert':_0x752c56(0x94)}};export{e as default};
1
+ const _0x1145ed=_0x5cf5;function _0x5cf5(_0x50223d,_0x3b03b8){const _0x2d0ccd=_0x2d0c();return _0x5cf5=function(_0x5cf594,_0x1ba35a){_0x5cf594=_0x5cf594-0x186;let _0x3dc689=_0x2d0ccd[_0x5cf594];return _0x3dc689;},_0x5cf5(_0x50223d,_0x3b03b8);}(function(_0x545dcf,_0x56d3cb){const _0xf3a774=_0x5cf5,_0x39562b=_0x545dcf();while(!![]){try{const _0x775f87=parseInt(_0xf3a774(0x198))/0x1*(parseInt(_0xf3a774(0x19a))/0x2)+-parseInt(_0xf3a774(0x18b))/0x3*(parseInt(_0xf3a774(0x18a))/0x4)+parseInt(_0xf3a774(0x19e))/0x5+-parseInt(_0xf3a774(0x199))/0x6*(parseInt(_0xf3a774(0x190))/0x7)+parseInt(_0xf3a774(0x18f))/0x8+parseInt(_0xf3a774(0x19c))/0x9*(parseInt(_0xf3a774(0x19b))/0xa)+-parseInt(_0xf3a774(0x196))/0xb;if(_0x775f87===_0x56d3cb)break;else _0x39562b['push'](_0x39562b['shift']());}catch(_0x496556){_0x39562b['push'](_0x39562b['shift']());}}}(_0x2d0c,0x2a649));const e={'collab-client':{'tooltip':{'reconnect':_0x1145ed(0x193)}},'collabStatus':{'fetchMiss':_0x1145ed(0x192),'conflict':_0x1145ed(0x18d),'notCollab':_0x1145ed(0x189),'synced':_0x1145ed(0x197),'syncing':_0x1145ed(0x18e),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x1145ed(0x195),'will-retry':_0x1145ed(0x19d),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x1145ed(0x18c)},'conflict':{'title':_0x1145ed(0x186),'content':_0x1145ed(0x188)},'permission':{'title':_0x1145ed(0x187),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x1145ed(0x191)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x1145ed(0x194)}};function _0x2d0c(){const _0x9399d6=['928482RUJAvU','4078spULvr','80110uPDkNQ','45YBQMLH','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1245675SZThNv','Collaboration\x20Conflict','Authentication\x20Error','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Local\x20file','715492pxxWpM','3tkVQhn','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','Syncing...','2519520zoFoIW','7vxRDJx','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Syncing\x20server\x20data...','Click\x20to\x20Reconnect','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed,\x20please\x20check\x20your\x20network.','3196314YMEKrT','Synced','95UalIGf'];_0x2d0c=function(){return _0x9399d6;};return _0x2d0c();}export{e as default};