@univerjs-pro/collaboration-client-ui 0.15.2 → 0.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2d19ee=_0x3b77;(function(_0xf99d55,_0x9c8459){const _0x208190=_0x3b77,_0x14acff=_0xf99d55();while(!![]){try{const _0x24b4e3=-parseInt(_0x208190(0x1e6))/0x1*(-parseInt(_0x208190(0x208))/0x2)+parseInt(_0x208190(0x211))/0x3+parseInt(_0x208190(0x1f5))/0x4*(parseInt(_0x208190(0x13f))/0x5)+-parseInt(_0x208190(0x2b7))/0x6*(parseInt(_0x208190(0x255))/0x7)+parseInt(_0x208190(0x1f1))/0x8+parseInt(_0x208190(0x213))/0x9*(-parseInt(_0x208190(0x21a))/0xa)+parseInt(_0x208190(0x32c))/0xb*(-parseInt(_0x208190(0x316))/0xc);if(_0x24b4e3===_0x9c8459)break;else _0x14acff['push'](_0x14acff['shift']());}catch(_0x3ce0ae){_0x14acff['push'](_0x14acff['shift']());}}}(_0x4498,0xbd9fb));var Yt=Object[_0x2d19ee(0x18c)],Wt=(_0x1b3d81,_0x4aa84c,_0x2f974c)=>_0x4aa84c in _0x1b3d81?Yt(_0x1b3d81,_0x4aa84c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f974c}):_0x1b3d81[_0x4aa84c]=_0x2f974c,_=(_0x523605,_0x55d198,_0x22d6ab)=>Wt(_0x523605,typeof _0x55d198!=_0x2d19ee(0x2e2)?_0x55d198+'':_0x55d198,_0x22d6ab);import{jsx as _0x13af06,jsxs as _0x350478}from'react/jsx-runtime';import{CollaborationStatus as _0x14e54a,CollaborationSessionService as _0x431e53,CollaborationController as _0x151f08,DataLoaderService as _0x29e90b,MemberService as _0x50cc3e,SessionStatus as _0x476595,ILocalCacheService as _0x26b1ca,CollaborationUIEventService as _0x195a88,CollaborationUIEventId as _0x54f12f,DocCollaborationEntity as _0x5da887,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x189603,getLocalCacheKey as _0x5850c1,LOCAL_CACHE_INTERVAL as _0x9823a9,LOCAL_CACHE_INTERVAL_KEY as _0x3d4cf4,UniverCollaborationClientPlugin as _0x3b5370,CollaborationSocketService as _0x1caedd,DEFAULT_WS_SESSION_TICKET_URL as _0x3e7782,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x26e0b7,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x36e979,UnitStatus as _0x59d149}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x548920,IUniverInstanceService as _0x5ea64d,Inject as _0x13e3c7,Injector as _0x6717c8,Disposable as _0x55618d,createIdentifier as _0x926075,ILogService as _0x2bfead,ICommandService as _0x44deef,Optional as _0x33a5b3,RxDisposable as _0x5b8c04,Workbook as _0x828b8,DOC_RANGE_TYPE as _0x18a061,debounce as _0x1b4ae8,Rectangle as _0x5e86a6,DisposableCollection as _0x1a4482,toDisposable as _0x5684e2,UniverInstanceType as _0x1de887,generateRandomId as _0x377b4b,COLORS as _0x2aff34,ColorKit as _0x44158f,ThemeService as _0x1331d6,fromEventSubject as _0x5b2081,Tools as _0x2fbfda,CommandType as _0x569143,IConfigService as _0x46a8a4,CanceledError as _0x1dbb9e,isFormulaString as _0x14248c,isFormulaId as _0xcdcb23,ILocalStorageService as _0x12194a,DependentOn as _0x3f4a8a,Plugin as _0x3c443e,merge as _0x2b7521,registerDependencies as _0x2c2aad,mergeOverrideWithDependencies as _0x3b0ae8,touchDependencies as _0x248c4c}from'@univerjs/core';import{useObservable as _0x4db001,useDependency as _0x1efc03,IUIPartsService as _0x97227,BuiltInUIPart as _0xe393a3,connectInjector as _0x350c26,IBeforeCloseService as _0x58a1a6,IMessageService as _0x551408,INotificationService as _0x3ad334}from'@univerjs/ui';import{BehaviorSubject as _0x5689a5,switchMap as _0x1650bc,of as _0x272a51,takeUntil as _0xefe94,debounceTime as _0x5be43e,Subject as _0x233e98,filter as _0x2dc8e8,merge as _0x2a4316,combineLatest as _0x383e72,fromEvent as _0x197cc9,shareReplay as _0x240f5f,mapTo as _0x11e4f1,distinctUntilChanged as _0x52d636}from'rxjs';import{Tooltip as _0x54f95e,clsx as _0x43e4cc,MessageType as _0xe3500e}from'@univerjs/design';import{useRef as _0x24162f,createElement as _0x1b2a1b,forwardRef as _0x1b3544,useCallback as _0x204a71}from'react';import{IRemoteInstanceService as _0x317103}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5e7345,RefRangeService as _0x14edcb,SetSelectionsOperation as _0x3b568d,SheetsSelectionsService as _0x47686c,EffectRefRangId as _0x114d3,handleIRemoveRow as _0x442d3c,handleIRemoveCol as _0x3fee0c,handleMoveRange as _0x1f2d01,handleInsertRow as _0x26c1a0,handleInsertRangeMoveRight as _0x24380d,handleInsertRangeMoveDown as _0x56e9d2,handleInsertCol as _0xd21edf,handleDeleteRangeMoveUp as _0x1edd71,handleDeleteRangeMoveLeft as _0x5efdb6,runRefRangeMutations as _0x3367c1}from'@univerjs/sheets';import{Shape as _0x5dc12a,Rect as _0x2bdd35,getColor as _0x4c407c,RegularPolygon as _0x36ecd6,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5e28be,Vector2 as _0x59221c,SHEET_VIEWPORT_KEY as _0x29367b,IRenderManagerService as _0x3e8801}from'@univerjs/engine-render';import{HTTPService as _0x58299b,ISocketService as _0x8a83ca,WebSocketService as _0x1d6857}from'@univerjs/network';import{IDocClipboardService as _0x4f593b,NodePositionConvertToCursor as _0x10e74e,NodePositionConvertToRectRange as _0x2997cf,TEXT_RANGE_LAYER_INDEX as _0x978a3f,SetDocZoomRatioOperation as _0x2d8f9a,DocIMEInputManagerService as _0x57bd0a,DocStateChangeManagerService as _0x7528bc}from'@univerjs/docs-ui';import{IImageIoService as _0x4b07be}from'@univerjs/drawing';import{ITransformService as _0x3990fc,CollaborationEvent as _0x48c478,isTransformMutationFailure as _0xbfd48e,isTransformMutationsWithChangesetSuccess as _0x1f1a8a,RevisionService as _0x1c8bce,ISnapshotServerService as _0x35e927}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x231784,RichTextEditingMutation as _0x41a482,DocSelectionManagerService as _0x318e9f,DocSkeletonManagerService as _0x1ccfa7}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x3f42d5,serializeRangeWithSheet as _0x542bca,FormulaExecuteStageType as _0x5d8674,FormulaExecutedStateType as _0x2ae0c4,SetFormulaCalculationStartMutation as _0x4f8fdb,SetFormulaCalculationNotificationMutation as _0x33cc11}from'@univerjs/engine-formula';import{map as _0x4406a1,filter as _0x53c322,throttleTime as _0x42dfe3,takeUntil as _0xb23e26,switchMap as _0x2c4106}from'rxjs/operators';import{SheetSkeletonManagerService as _0x33de6b,getCoordByCell as _0x412d35,getSheetObject as _0x2cc164}from'@univerjs/sheets-ui';function Ge({ref:_0xc92e74,..._0x316474}){const _0x82fa73=_0x2d19ee,{icon:_0x19c54d,id:_0x4cf573,className:_0x414dd2,extend:_0x8d932b,..._0x1e0faf}=_0x316474,_0x7c0a71=(_0x82fa73(0x31b)+_0x4cf573+'\x20'+(_0x414dd2||''))[_0x82fa73(0x20d)](),_0x2fc3cd=_0x24162f('_'+vi());return At(_0x19c54d,''+_0x4cf573,{'defIds':_0x19c54d[_0x82fa73(0x2cb)],'idSuffix':_0x2fc3cd[_0x82fa73(0x349)]},{'ref':_0xc92e74,'className':_0x7c0a71,..._0x1e0faf},_0x8d932b);}function At(_0x2a31d9,_0x3fe495,_0xd794b5,_0x429547,_0x248b0e){const _0x1ea6f2=_0x2d19ee;return _0x1b2a1b(_0x2a31d9[_0x1ea6f2(0x143)],{'key':_0x3fe495,...gi(_0x2a31d9,_0xd794b5,_0x248b0e),..._0x429547},(Ei(_0x2a31d9,_0xd794b5)[_0x1ea6f2(0x1b2)]||[])['map']((_0x5a0478,_0x3ed1d9)=>At(_0x5a0478,_0x3fe495+'-'+_0x2a31d9[_0x1ea6f2(0x143)]+'-'+_0x3ed1d9,_0xd794b5,void 0x0,_0x248b0e)));}function gi(_0x371add,_0x2e5f5e,_0x424494){const _0xea8bc9=_0x2d19ee,_0x2c36dd={..._0x371add[_0xea8bc9(0x278)]};_0x424494!=null&&_0x424494[_0xea8bc9(0x1d6)]&&_0x2c36dd[_0xea8bc9(0x1be)]==='colorChannel1'&&(_0x2c36dd[_0xea8bc9(0x1be)]=_0x424494[_0xea8bc9(0x1d6)]),_0x371add[_0xea8bc9(0x143)]===_0xea8bc9(0x1ef)&&_0x2c36dd['id']&&(_0x2c36dd['id']=_0x2c36dd['id']+_0x2e5f5e[_0xea8bc9(0x15a)]),Object[_0xea8bc9(0x2c0)](_0x2c36dd)[_0xea8bc9(0x136)](([_0x5adecf,_0x29bf92])=>{const _0x361bb4=_0xea8bc9;_0x5adecf===_0x361bb4(0x1ef)&&typeof _0x29bf92==_0x361bb4(0x132)&&(_0x2c36dd[_0x5adecf]=_0x29bf92[_0x361bb4(0x23b)](/url\(#(.*)\)/,_0x361bb4(0x2e8)+_0x2e5f5e[_0x361bb4(0x15a)]+')'));});const {defIds:_0x305019}=_0x2e5f5e;return!_0x305019||_0x305019['length']===0x0||(_0x371add[_0xea8bc9(0x143)]===_0xea8bc9(0x2fa)&&_0x2c36dd[_0xea8bc9(0x1ed)]&&(_0x2c36dd[_0xea8bc9(0x1ed)]=_0x2c36dd[_0xea8bc9(0x1ed)]+_0x2e5f5e[_0xea8bc9(0x15a)]),Object[_0xea8bc9(0x2c0)](_0x2c36dd)['forEach'](([_0x44c803,_0x34f37e])=>{const _0x53ae8f=_0xea8bc9;typeof _0x34f37e==_0x53ae8f(0x132)&&(_0x2c36dd[_0x44c803]=_0x34f37e[_0x53ae8f(0x23b)](/url\(#(.*)\)/,_0x53ae8f(0x2e8)+_0x2e5f5e[_0x53ae8f(0x15a)]+')'));})),_0x2c36dd;}function Ei(_0x18d73f,_0x421119){const _0x18a6f6=_0x2d19ee;var _0x41fb6b;const {defIds:_0x5abf62}=_0x421119;return!_0x5abf62||_0x5abf62['length']===0x0?_0x18d73f:_0x18d73f[_0x18a6f6(0x143)]===_0x18a6f6(0x2d5)&&((_0x41fb6b=_0x18d73f['children'])!=null&&_0x41fb6b['length'])?{..._0x18d73f,'children':_0x18d73f['children']['map'](_0x2b33ca=>typeof _0x2b33ca[_0x18a6f6(0x278)]['id']==_0x18a6f6(0x132)&&_0x5abf62&&_0x5abf62['includes'](_0x2b33ca[_0x18a6f6(0x278)]['id'])?{..._0x2b33ca,'attrs':{..._0x2b33ca[_0x18a6f6(0x278)],'id':_0x2b33ca[_0x18a6f6(0x278)]['id']+_0x421119['idSuffix']}}:_0x2b33ca)}:_0x18d73f;}function vi(){const _0x11c765=_0x2d19ee;return Math[_0x11c765(0x19f)]()['toString'](0x24)['substring'](0x2,0x8);}Ge['displayName']='UniverIcon';const pi={'tag':'svg','attrs':{'xmlns':_0x2d19ee(0x26d),'fill':_0x2d19ee(0x29b),'viewBox':_0x2d19ee(0x209),'width':_0x2d19ee(0x34d),'height':_0x2d19ee(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':_0x2d19ee(0x371)},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'stroke':_0x2d19ee(0x1eb),'d':_0x2d19ee(0x1ff),'strokeLinecap':_0x2d19ee(0x2ab),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2d19ee(0x2d5),'attrs':{},'children':[{'tag':_0x2d19ee(0x1b9),'attrs':{'id':_0x2d19ee(0x24d)},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'fill':_0x2d19ee(0x385),'d':_0x2d19ee(0x341)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x1b3544(function(_0x324bab,_0x4881df){const _0x497cdd=_0x2d19ee;return _0x1b2a1b(Ge,Object[_0x497cdd(0x20b)]({},_0x324bab,{'id':_0x497cdd(0x149),'ref':_0x4881df,'icon':pi}));});Pt['displayName']='OffLineIcon';const Oi={'tag':'svg','attrs':{'xmlns':_0x2d19ee(0x26d),'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x2d19ee(0x34d),'height':_0x2d19ee(0x34d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x2d19ee(0x2a2),'attrs':{'stroke':_0x2d19ee(0x1eb),'d':_0x2d19ee(0x31c),'strokeLinecap':_0x2d19ee(0x2ab),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2d19ee(0x1b9),'attrs':{'id':_0x2d19ee(0x13b)},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x2d19ee(0x341),'transform':_0x2d19ee(0x2b1)}}]}]}],'defIds':[_0x2d19ee(0x13b)]},wt=_0x1b3544(function(_0x1e2834,_0x1efcf0){const _0x3a0b15=_0x2d19ee;return _0x1b2a1b(Ge,Object['assign']({},_0x1e2834,{'id':_0x3a0b15(0x1f4),'ref':_0x1efcf0,'icon':Oi}));});wt[_0x2d19ee(0x321)]=_0x2d19ee(0x147);function Ti(_0xf1464c){const _0x58e388=_0x2d19ee;switch(_0xf1464c){case _0x14e54a[_0x58e388(0x370)]:return _0x58e388(0x35a);case _0x14e54a['CONFLICT']:return _0x58e388(0x1c5);case _0x14e54a[_0x58e388(0x342)]:return _0x58e388(0x314);case _0x14e54a[_0x58e388(0x130)]:return'collabStatus.notCollab';case _0x14e54a['AWAITING']:case _0x14e54a[_0x58e388(0x274)]:return _0x58e388(0x2e4);case _0x14e54a[_0x58e388(0x29c)]:case _0x14e54a[_0x58e388(0x338)]:return'collabStatus.synced';}}function Ci(_0x5c4d90){const _0x2fc783=_0x2d19ee,{status$:_0x275023}=_0x5c4d90,_0xd83c4=_0x4db001(_0x275023,_0x14e54a[_0x2fc783(0x130)]),_0x24e969=_0x1efc03(_0x548920),_0x58f16b=_0x1efc03(_0x431e53),_0x563bbb=_0xd83c4!==_0x14e54a[_0x2fc783(0x370)],_0x49b1d4=_0x24e969['t'](Ti(_0xd83c4)),_0x63d40e=_0x563bbb?_0x13af06(wt,{}):_0x13af06(Pt,{}),_0x534432=_0x204a71(()=>{const _0x250563=_0x2fc783;_0x563bbb||_0x58f16b[_0x250563(0x358)]();},[_0x563bbb,_0x58f16b]);function _0x539232(){const _0x4abcc9=_0x2fc783;return _0x350478(_0x4abcc9(0x168),{'className':_0x4abcc9(0x19c),'onClick':_0x534432,'children':[_0x13af06(_0x4abcc9(0x168),{'className':_0x43e4cc(_0x4abcc9(0x297),{'univer-text-green-500':_0x563bbb,'univer-text-red-500':!_0x563bbb}),'children':_0x63d40e}),_0x13af06('div',{'className':_0x4abcc9(0x257),'children':_0x49b1d4})]});}return _0x563bbb?_0x539232():_0x13af06(_0x54f95e,{'title':_0x24e969['t']('collab-client.tooltip.reconnect'),'children':_0x539232()});}var Ri=Object[_0x2d19ee(0x2a7)],Di=(_0x4147cc,_0xb6d86c,_0x447ead,_0x35cb94)=>{for(var _0x42b4c0=_0x35cb94>0x1?void 0x0:_0x35cb94?Ri(_0xb6d86c,_0x447ead):_0xb6d86c,_0x2d3768=_0x4147cc['length']-0x1,_0x1a2fb3;_0x2d3768>=0x0;_0x2d3768--)(_0x1a2fb3=_0x4147cc[_0x2d3768])&&(_0x42b4c0=_0x1a2fb3(_0x42b4c0)||_0x42b4c0);return _0x42b4c0;},se=(_0x5de384,_0x165912)=>(_0x7c8ec8,_0x8b5a7c)=>_0x165912(_0x7c8ec8,_0x8b5a7c,_0x5de384);let ae=class extends _0x55618d{constructor(_0x585adc,_0x7af9d2,_0x1131b5,_0x4291a7){const _0x2aa964=_0x2d19ee;super(),_(this,_0x2aa964(0x2d7),new _0x5689a5(_0x14e54a[_0x2aa964(0x130)])),(this[_0x2aa964(0x17f)]=_0x585adc,this[_0x2aa964(0x2b2)]=_0x7af9d2,this[_0x2aa964(0x156)]=_0x1131b5,this['_uiPartsService']=_0x4291a7,this[_0x2aa964(0x18e)](),this[_0x2aa964(0x2d1)]());}[_0x2d19ee(0x2d1)](){const _0x556679=_0x2d19ee;this[_0x556679(0x1b6)](this['_univerInstanceService'][_0x556679(0x26b)][_0x556679(0x359)](_0x1650bc(()=>{const _0x980042=_0x556679,_0x28cfb3=this[_0x980042(0x17f)][_0x980042(0x17b)]();return _0x28cfb3?this['_collaborationController'][_0x980042(0x148)](_0x28cfb3[_0x980042(0x377)]()):_0x272a51(null);}),_0x1650bc(_0x14a7ec=>_0x14a7ec?_0x14a7ec[_0x556679(0x305)]:_0x272a51(_0x14e54a[_0x556679(0x130)])))['subscribe'](_0x48b82e=>{const _0x42796b=_0x556679;this[_0x42796b(0x2d7)]['next'](_0x48b82e);}));}['_initStatusComponent'](){const _0x20f055=_0x2d19ee;this[_0x20f055(0x1b6)](this[_0x20f055(0x16d)][_0x20f055(0x1ac)](_0xe393a3[_0x20f055(0x15b)],()=>_0x350c26(Ni({'status$':this[_0x20f055(0x2d7)][_0x20f055(0x27b)]()}),this['_injector'])));}};ae=Di([se(0x0,_0x5ea64d),se(0x1,_0x13e3c7(_0x6717c8)),se(0x2,_0x13e3c7(_0x151f08)),se(0x3,_0x97227)],ae);function Ni(_0x48c6d1){const {status$:_0x24a863}=_0x48c6d1;return function(){return _0x13af06(Ci,{'status$':_0x24a863});};}function _0x3b77(_0x495d42,_0x58f022){_0x495d42=_0x495d42-0x12e;const _0x449872=_0x4498();let _0x3b7737=_0x449872[_0x495d42];return _0x3b7737;}const yt=_0x926075(_0x2d19ee(0x258));var bi=Object[_0x2d19ee(0x2a7)],Li=(_0x3b574f,_0x3577ae,_0x37f3ad,_0x32370a)=>{for(var _0x4559b5=_0x32370a>0x1?void 0x0:_0x32370a?bi(_0x3577ae,_0x37f3ad):_0x3577ae,_0x3fe8aa=_0x3b574f['length']-0x1,_0x43e158;_0x3fe8aa>=0x0;_0x3fe8aa--)(_0x43e158=_0x3b574f[_0x3fe8aa])&&(_0x4559b5=_0x43e158(_0x4559b5)||_0x4559b5);return _0x4559b5;},K=(_0x3bf197,_0x4af006)=>(_0x461226,_0x33cfe7)=>_0x4af006(_0x461226,_0x33cfe7,_0x3bf197);let ce=class extends _0x5b8c04{constructor(_0x2449f7,_0x3c62ac,_0x45e227,_0x2684de,_0x4f2bc4){const _0x11190c=_0x2d19ee;super(),this[_0x11190c(0x354)]=_0x2449f7,this['_logService']=_0x3c62ac,this[_0x11190c(0x162)]=_0x45e227,this['_dataLoaderService']=_0x2684de,_0x4f2bc4?_0x4f2bc4==null||_0x4f2bc4[_0x11190c(0x159)]()['then'](()=>this['_init']()):(this[_0x11190c(0x244)][_0x11190c(0x1f7)](_0x11190c(0x15d),_0x11190c(0x1d4)),this[_0x11190c(0x1e9)]());}async['_init'](){const _0x21298f=_0x2d19ee,_0x5f4f18=this[_0x21298f(0x354)][_0x21298f(0x172)](_0x21298f(0x235)),_0x3b9424=this[_0x21298f(0x354)]['getParam'](_0x21298f(0x164)),_0x1d76a3=this[_0x21298f(0x354)]['getParam'](_0x21298f(0x261));if(!_0x5f4f18||!_0x3b9424){this['_logService']['debug']('[CollaborationDataLoaderController]',_0x21298f(0x2a6));return;}const _0x38d3aa=await this[_0x21298f(0x2e9)][_0x21298f(0x154)](_0x5f4f18,Number(_0x3b9424),_0x1d76a3);_0x38d3aa&&_0x38d3aa instanceof _0x828b8&&this[_0x21298f(0x315)](_0x38d3aa);}async[_0x2d19ee(0x315)](_0x305d26){const _0x42f09e=_0x2d19ee;await this[_0x42f09e(0x33c)](_0x305d26),_0x305d26['activeSheet$'][_0x42f09e(0x359)](_0xefe94(this[_0x42f09e(0x339)]))['subscribe'](_0x17ed7f=>{const _0x5b25c9=_0x42f09e;_0x17ed7f&&this[_0x5b25c9(0x32f)](_0x17ed7f);}),this[_0x42f09e(0x354)][_0x42f09e(0x34f)][_0x42f09e(0x359)](_0xefe94(this[_0x42f09e(0x339)]))[_0x42f09e(0x150)](()=>this[_0x42f09e(0x33c)](_0x305d26));}[_0x2d19ee(0x32f)](_0x187158,_0x5b6825=!0x1){const _0x5e11e0=_0x2d19ee,_0xc8acc6=this['_urlService']['getParam'](_0x5e11e0(0x261));_0x187158[_0x5e11e0(0x2e6)]()!==_0xc8acc6&&this['_urlService'][_0x5e11e0(0x1f6)](_0x5e11e0(0x261),_0x187158['getSheetId'](),_0x5b6825);}async[_0x2d19ee(0x33c)](_0x291d6b){const _0x4ba364=_0x2d19ee;var _0xeaaa63;const _0x1941e7=this['_urlService'][_0x4ba364(0x172)](_0x4ba364(0x261));if(!_0x1941e7||!_0x291d6b['getSheetBySheetId'](_0x1941e7)){const _0x596227=_0x291d6b[_0x4ba364(0x1e3)]()[0x0],_0x52ac8b=_0x291d6b[_0x4ba364(0x275)](_0x596227);if(!_0x52ac8b)return;this[_0x4ba364(0x32f)](_0x52ac8b,!0x0),await this[_0x4ba364(0x162)]['executeCommand'](_0x5e7345['id'],{'unitId':_0x291d6b['getUnitId'](),'subUnitId':_0x596227});return;}((_0xeaaa63=_0x291d6b[_0x4ba364(0x273)]())==null?void 0x0:_0xeaaa63[_0x4ba364(0x2e6)]())!==_0x1941e7&&await this[_0x4ba364(0x162)][_0x4ba364(0x16a)](_0x5e7345['id'],{'unitId':_0x291d6b[_0x4ba364(0x377)](),'subUnitId':_0x1941e7});}};ce=Li([K(0x0,yt),K(0x1,_0x2bfead),K(0x2,_0x44deef),K(0x3,_0x13e3c7(_0x29e90b)),K(0x4,_0x33a5b3(_0x317103))],ce);var Ui=Object[_0x2d19ee(0x2a7)],Mi=(_0x58e900,_0x2d1bae,_0x57dc17,_0x11b1f2)=>{const _0x559028=_0x2d19ee;for(var _0xa3b5af=_0x11b1f2>0x1?void 0x0:_0x11b1f2?Ui(_0x2d1bae,_0x57dc17):_0x2d1bae,_0x34b2dd=_0x58e900[_0x559028(0x375)]-0x1,_0x3bc50d;_0x34b2dd>=0x0;_0x34b2dd--)(_0x3bc50d=_0x58e900[_0x34b2dd])&&(_0xa3b5af=_0x3bc50d(_0xa3b5af)||_0xa3b5af);return _0xa3b5af;},rt=(_0x4b00db,_0x2eff46)=>(_0x85a7cc,_0x33e5b5)=>_0x2eff46(_0x85a7cc,_0x33e5b5,_0x4b00db);let $e=class extends _0x5b8c04{constructor(_0x226cfa,_0x5d0f7a){const _0x520808=_0x2d19ee;super(),this[_0x520808(0x22b)]=_0x226cfa,this['_imageIoService']=_0x5d0f7a,this[_0x520808(0x1e9)]();}[_0x2d19ee(0x1e9)](){const _0x9a31ca=_0x2d19ee,_0xfaa1fc=this;this['disposeWithMe'](this[_0x9a31ca(0x22b)][_0x9a31ca(0x194)]({'onBeforePasteImage':async _0xf86f=>{const _0x3d977d=_0x9a31ca,_0x372908=await _0xfaa1fc[_0x3d977d(0x1a8)]['saveImage'](_0xf86f);return _0x372908?{'source':_0x372908['source'],'imageSourceType':_0x372908[_0x3d977d(0x135)]}:null;}}));}};$e=Mi([rt(0x0,_0x4f593b),rt(0x1,_0x4b07be)],$e);const ot=[_0x2d19ee(0x306),_0x2d19ee(0x28e),_0x2d19ee(0x228),'red.300',_0x2d19ee(0x2ee),_0x2d19ee(0x17e)];class Ke extends _0x55618d{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x2d19ee(0x267)](_0x40acbb){const _0x4c8a37=_0x2d19ee;if(this['_assignedColors']['has'](_0x40acbb))return this['_assignedColors'][_0x4c8a37(0x1a4)](_0x40acbb);const _0x39f607=ot[this[_0x4c8a37(0x301)]];return this[_0x4c8a37(0x301)]=(this[_0x4c8a37(0x301)]+0x1)%ot['length'],this[_0x4c8a37(0x1f0)]['set'](_0x40acbb,_0x39f607),_0x39f607;}}function $t(_0xc22d0){const _0x2c9473=_0x2d19ee;let _0x343932='';for(const _0x59f08c of _0xc22d0){const {startOffset:_0x178db6,endOffset:_0xf4352c,isActive:_0x452d75,rangeType:_0x13666e,segmentId:_0x366bc6,segmentPage:_0xef9c6c}=_0x59f08c;_0x343932[_0x2c9473(0x375)]&&(_0x343932+=','),_0x343932+=_0x178db6+':'+_0xf4352c+':'+(_0x452d75?'1':'0')+':'+_0x13666e+':'+_0x366bc6+':'+_0xef9c6c;}return _0x343932;}function Ai(_0x489dd3){const _0x22a264=_0x2d19ee,_0x195122=_0x489dd3[_0x22a264(0x223)](','),_0xa0cd0f=[];for(const _0x452fc6 of _0x195122){const [_0x1dd0ad,_0x1d42c0,_0x1ac622,_0x17ee72,_0x32e4b0,_0x2adb58]=_0x452fc6[_0x22a264(0x223)](':');_0xa0cd0f[_0x22a264(0x1bb)]({'startOffset':Number(_0x1dd0ad),'endOffset':Number(_0x1d42c0),'collapsed':_0x1dd0ad===_0x1d42c0,'isActive':_0x1ac622==='1','rangeType':_0x17ee72===_0x18a061['TEXT']?_0x18a061[_0x22a264(0x21f)]:_0x18a061[_0x22a264(0x1d8)],'segmentId':typeof _0x32e4b0==_0x22a264(0x132)?String(_0x32e4b0):'','segmentPage':Number(_0x2adb58!=null?_0x2adb58:-0x1)});}return _0xa0cd0f['some'](_0x953d6d=>_0x953d6d[_0x22a264(0x1b8)])||(_0xa0cd0f[0x0][_0x22a264(0x1b8)]=!0x0),_0xa0cd0f;}class ze extends _0x5b8c04{constructor(){const _0x5c5301=_0x2d19ee;super(...arguments),_(this,_0x5c5301(0x2de),new _0x5689a5(null)),_(this,_0x5c5301(0x2dc),this['_collabCursorState$'][_0x5c5301(0x27b)]());}['syncEditingCollabCursor'](_0xa88ba9){const _0x1fc8af=_0x2d19ee,{unitID:_0x16a303,memberID:_0x132aec,textRanges:_0x19d6bd}=_0xa88ba9,_0x1c2bf0=$t(_0x19d6bd);if(_0x1c2bf0==='')return;const _0x3ae1a9={'unitID':_0x16a303,'memberID':_0x132aec,'selection':_0x1c2bf0};this['_collabCursorState$'][_0x1fc8af(0x1a9)](_0x3ae1a9);}}var Pi=Object[_0x2d19ee(0x2a7)],wi=(_0x42c420,_0x3f71af,_0x152013,_0x59352b)=>{const _0x15c1ab=_0x2d19ee;for(var _0x1ab8a6=_0x59352b>0x1?void 0x0:_0x59352b?Pi(_0x3f71af,_0x152013):_0x3f71af,_0x3c5025=_0x42c420[_0x15c1ab(0x375)]-0x1,_0xcbb8e4;_0x3c5025>=0x0;_0x3c5025--)(_0xcbb8e4=_0x42c420[_0x3c5025])&&(_0x1ab8a6=_0xcbb8e4(_0x1ab8a6)||_0x1ab8a6);return _0x1ab8a6;},A=(_0x35d785,_0x5dccc0)=>(_0x453bdb,_0x590021)=>_0x5dccc0(_0x453bdb,_0x590021,_0x35d785);const yi=0x12c,$i=0x64;let xe=class extends _0x5b8c04{constructor(_0xff6ff,_0x4b1055,_0xdccaa6,_0xe66107,_0x1afff0,_0x381aad,_0x51c78a,_0x5be8fd,_0x5a0ae8){const _0x536b0a=_0x2d19ee;super(),_(this,_0x536b0a(0x2a1),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new _0x5689a5(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x536b0a(0x27b)]()),_(this,_0x536b0a(0x229),new _0x5689a5([])),_(this,_0x536b0a(0x265),this[_0x536b0a(0x229)][_0x536b0a(0x359)](_0x5be43e(yi))),_(this,_0x536b0a(0x2bf),_0x1b4ae8(_0x5cbcda=>{const _0x2e00f6=_0x536b0a,_0xc59269={'eventID':_0x48c478[_0x2e00f6(0x141)],'data':{'unitID':this['unitID'],'memberID':this[_0x2e00f6(0x337)]['getMemberID'](),'selection':$t(_0x5cbcda)}};this[_0x2e00f6(0x337)][_0x2e00f6(0x16e)](_0xc59269,this['unitID']);},$i)),(this[_0x536b0a(0x369)]=_0xff6ff,this[_0x536b0a(0x337)]=_0x4b1055,this[_0x536b0a(0x2b2)]=_0xdccaa6,this[_0x536b0a(0x1e7)]=_0xe66107,this[_0x536b0a(0x268)]=_0x1afff0,this[_0x536b0a(0x33b)]=_0x381aad,this[_0x536b0a(0x2f6)]=_0x51c78a,this[_0x536b0a(0x17f)]=_0x5be8fd,this['_commandService']=_0x5a0ae8);}get[_0x2d19ee(0x344)](){const _0x1a3616=_0x2d19ee;return this[_0x1a3616(0x2eb)][_0x1a3616(0x378)]();}get[_0x2d19ee(0x2d2)](){const _0x5a59b9=_0x2d19ee;return this['_roomMembers$'][_0x5a59b9(0x378)]();}[_0x2d19ee(0x2cf)](){const _0x1ae3b6=_0x2d19ee;super['dispose'](),this[_0x1ae3b6(0x2eb)][_0x1ae3b6(0x1a9)](new Map()),this[_0x1ae3b6(0x2eb)][_0x1ae3b6(0x2a5)](),this[_0x1ae3b6(0x229)][_0x1ae3b6(0x1a9)]([]),this['_roomMembers$'][_0x1ae3b6(0x2a5)]();}[_0x2d19ee(0x155)](){const _0x53e333=_0x2d19ee;this[_0x53e333(0x1e9)]||(this[_0x53e333(0x1e9)]=!0x0,this[_0x53e333(0x337)][_0x53e333(0x351)]['pipe'](_0xefe94(this['dispose$']))[_0x53e333(0x150)](_0x3be386=>{const _0x52a13f=_0x53e333;_0x3be386===_0x476595[_0x52a13f(0x1d5)]?this[_0x52a13f(0x24f)]():this[_0x52a13f(0x1bc)]();}),this[_0x53e333(0x337)][_0x53e333(0x246)][_0x53e333(0x359)](_0xefe94(this[_0x53e333(0x339)]))[_0x53e333(0x150)](_0x579e85=>{const _0x3035ac=_0x53e333,_0x331905=_0x579e85[_0x3035ac(0x33a)];_0x331905===_0x48c478[_0x3035ac(0x141)]&&this['_onCursorUpdate'](_0x579e85),_0x331905===_0x48c478[_0x3035ac(0x284)]&&this['_onCursorDelete'](_0x579e85);}),this['disposeWithMe'](this['_commandService'][_0x53e333(0x21e)](_0x1b44c8=>{const _0xca1ef4=_0x53e333,_0x5756f7=_0x1b44c8[_0xca1ef4(0x19b)];_0x5756f7!=null&&this[_0xca1ef4(0x2a1)]&&_0x1b44c8['id']===_0x231784['id']&&_0x5756f7[_0xca1ef4(0x352)]===this['unitID']&&_0x5756f7[_0xca1ef4(0x2c9)]===!0x1&&_0x5756f7[_0xca1ef4(0x2d4)]['length']>0x0&&this[_0xca1ef4(0x2bf)](_0x5756f7[_0xca1ef4(0x2d4)]);})),this[_0x53e333(0x33b)][_0x53e333(0x2dc)][_0x53e333(0x359)](_0xefe94(this['dispose$']))['subscribe'](_0x99354b=>{const _0x57ce8d=_0x53e333;if((_0x99354b==null?void 0x0:_0x99354b['unitID'])!==this[_0x57ce8d(0x369)])return;const _0x4d48f1={'eventID':_0x48c478['UPDATE_CURSOR'],'data':_0x99354b};this[_0x57ce8d(0x324)](_0x4d48f1);}),this[_0x53e333(0x1b6)](this[_0x53e333(0x162)][_0x53e333(0x21e)](_0x307512=>{const _0x178961=_0x53e333;if(_0x307512[_0x178961(0x19b)]==null)return;const _0x5dd176=_0x307512[_0x178961(0x19b)];if(_0x307512['id']!==_0x41a482['id']||_0x5dd176[_0x178961(0x352)]!==this[_0x178961(0x369)])return;const _0x3a186c={'id':'doc.mutation.rich-text-editing','params':_0x5dd176},_0x5acc3a=this[_0x178961(0x344)];for(const [_0x42064e,_0x42b25a]of _0x5acc3a){const _0x1bd933={'id':_0x178961(0x12f),'params':{'unitId':this[_0x178961(0x369)],'actions':null,'textRanges':_0x42b25a[_0x178961(0x2d4)]}},_0x4f1b54=this[_0x178961(0x2f6)][_0x178961(0x1d9)](_0x3a186c,_0x1bd933,!0x1);if(_0xbfd48e(_0x4f1b54))throw _0x4f1b54['error'];_0x5acc3a['set'](_0x42064e,{..._0x42b25a,'ranges':_0x4f1b54[_0x178961(0x2cc)][_0x178961(0x19b)]['textRanges']});}queueMicrotask(()=>{const _0x11f23a=_0x178961;this[_0x11f23a(0x2eb)][_0x11f23a(0x1a9)](_0x5acc3a);});})));}['_onCursorUpdate'](_0x1ca262){const _0x3dd18b=_0x2d19ee;var _0x55525f,_0x2e7bf8;const {memberID:_0x308034,selection:_0x5b8179}=_0x1ca262[_0x3dd18b(0x2d3)],_0x34ef10=Ai(_0x5b8179),_0xfcaf4=(_0x2e7bf8=(_0x55525f=this[_0x3dd18b(0x268)]['getMember'](this[_0x3dd18b(0x369)],_0x308034))==null?void 0x0:_0x55525f[_0x3dd18b(0x28a)])!=null?_0x2e7bf8:_0x3dd18b(0x2b6),_0x433957={'color':this[_0x3dd18b(0x1e7)][_0x3dd18b(0x267)](_0x308034),'name':_0xfcaf4,'ranges':_0x34ef10},_0x5a9e65=this[_0x3dd18b(0x344)];_0x5a9e65['set'](_0x308034,_0x433957),this[_0x3dd18b(0x2eb)]['next'](_0x5a9e65);}[_0x2d19ee(0x1bf)](_0x31d479){const _0x26666a=_0x2d19ee,{memberID:_0x8207de}=_0x31d479['data'],_0x1d7ba8=this[_0x26666a(0x344)];_0x1d7ba8[_0x26666a(0x20a)](_0x8207de),this['_cursorInfo$'][_0x26666a(0x1a9)](_0x1d7ba8);}['_toggleOnline'](){const _0x27a8f4=_0x2d19ee;var _0x48d5b9;if(this['_online']=!0x0,((_0x48d5b9=this[_0x27a8f4(0x17f)][_0x27a8f4(0x17b)]())==null?void 0x0:_0x48d5b9[_0x27a8f4(0x377)]())!==this['unitID'])return;const _0x1d5d50=this['_injector'][_0x27a8f4(0x1a4)](_0x318e9f)['getDocRanges']();Array[_0x27a8f4(0x1c8)](_0x1d5d50)&&_0x1d5d50['length']>0x0&&this[_0x27a8f4(0x2bf)](_0x1d5d50);}['_toggleOffline'](){const _0x39e8b2=_0x2d19ee;this[_0x39e8b2(0x2a1)]=!0x1;}};xe=wi([A(0x2,_0x13e3c7(_0x6717c8)),A(0x3,_0x13e3c7(Ke)),A(0x4,_0x13e3c7(_0x50cc3e)),A(0x5,_0x13e3c7(ze)),A(0x6,_0x3990fc),A(0x7,_0x5ea64d),A(0x8,_0x44deef)],xe);var xi=Object[_0x2d19ee(0x2a7)],Bi=(_0x4cb8db,_0x1a5725,_0x30938d,_0x1fbff0)=>{for(var _0x1c494b=_0x1fbff0>0x1?void 0x0:_0x1fbff0?xi(_0x1a5725,_0x30938d):_0x1a5725,_0x5b4857=_0x4cb8db['length']-0x1,_0x3e18aa;_0x5b4857>=0x0;_0x5b4857--)(_0x3e18aa=_0x4cb8db[_0x5b4857])&&(_0x1c494b=_0x3e18aa(_0x1c494b)||_0x1c494b);return _0x1c494b;},B=(_0x48e32f,_0x1c121c)=>(_0x5214c7,_0x41ff08)=>_0x1c121c(_0x5214c7,_0x41ff08,_0x48e32f);const Fi=0x12c,ki=0x64,Hi=()=>{let _0xefb2cd=[],_0x116d10=!0x1;return _0x7051ed=>{const _0x2047a7=_0x3b77;_0xefb2cd[_0x2047a7(0x1bb)](_0x7051ed),_0x116d10||(_0x116d10=!0x0,setTimeout(()=>{_0xefb2cd['forEach'](_0x17e8cf=>_0x17e8cf()),_0xefb2cd=[],_0x116d10=!0x1;}));};};let Be=class extends _0x5b8c04{constructor(_0x4a1246,_0x23a247,_0x4637bd,_0x27cf16,_0x158d33,_0x1e2809,_0x55f71c,_0x3ac80d){const _0x3a8ff1=_0x2d19ee;super(),_(this,_0x3a8ff1(0x2a1),!0x1),_(this,_0x3a8ff1(0x1e9),!0x1),_(this,_0x3a8ff1(0x2eb),new _0x5689a5(new Map())),_(this,_0x3a8ff1(0x2a9),this['_cursorInfo$'][_0x3a8ff1(0x27b)]()),_(this,'_roomMembers$',new _0x5689a5([])),_(this,_0x3a8ff1(0x265),this[_0x3a8ff1(0x229)]['pipe'](_0x5be43e(Fi))),_(this,_0x3a8ff1(0x2bf),_0x1b4ae8((_0x1a971c,_0x4634aa)=>{const _0xedf9ff=_0x3a8ff1,_0x5a0137={'eventID':_0x48c478[_0xedf9ff(0x141)],'data':{'unitID':this[_0xedf9ff(0x369)],'memberID':this['_session'][_0xedf9ff(0x151)](),'selection':_0x542bca(_0x1a971c,_0x4634aa[_0xedf9ff(0x186)])}};this[_0xedf9ff(0x337)]['send'](_0x5a0137,this[_0xedf9ff(0x369)]);},ki)),(this[_0x3a8ff1(0x369)]=_0x4a1246,this[_0x3a8ff1(0x337)]=_0x23a247,this['_injector']=_0x4637bd,this[_0x3a8ff1(0x1e7)]=_0x27cf16,this[_0x3a8ff1(0x268)]=_0x158d33,this[_0x3a8ff1(0x17f)]=_0x1e2809,this[_0x3a8ff1(0x162)]=_0x55f71c,this[_0x3a8ff1(0x308)]=_0x3ac80d);}get[_0x2d19ee(0x344)](){const _0x92a995=_0x2d19ee;return this['_cursorInfo$'][_0x92a995(0x378)]();}get['roomMembers'](){const _0x2f79b2=_0x2d19ee;return this['_roomMembers$'][_0x2f79b2(0x378)]();}[_0x2d19ee(0x2cf)](){const _0x45c467=_0x2d19ee;super[_0x45c467(0x2cf)](),this[_0x45c467(0x2eb)][_0x45c467(0x1a9)](new Map()),this['_cursorInfo$'][_0x45c467(0x2a5)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x45c467(0x2a5)]();}['init'](){const _0x52e5cc=_0x2d19ee;this[_0x52e5cc(0x1e9)]||(this[_0x52e5cc(0x1e9)]=!0x0,this[_0x52e5cc(0x337)][_0x52e5cc(0x351)]['pipe'](_0xefe94(this[_0x52e5cc(0x339)]))['subscribe'](_0x5a3da4=>{const _0x5609fd=_0x52e5cc;_0x5a3da4===_0x476595[_0x5609fd(0x1d5)]?this[_0x5609fd(0x24f)]():this[_0x5609fd(0x1bc)]();}),this[_0x52e5cc(0x337)][_0x52e5cc(0x246)]['pipe'](_0xefe94(this[_0x52e5cc(0x339)]))[_0x52e5cc(0x150)](_0x4a10bb=>{const _0x1fa8d5=_0x52e5cc,_0x44e94d=_0x4a10bb['eventID'];_0x44e94d===_0x48c478[_0x1fa8d5(0x141)]&&this[_0x1fa8d5(0x324)](_0x4a10bb),_0x44e94d===_0x48c478['USERS_LEAVE']&&this['_onCursorDelete'](_0x4a10bb);}),this[_0x52e5cc(0x133)](),this[_0x52e5cc(0x1b6)](this[_0x52e5cc(0x162)][_0x52e5cc(0x21e)](_0x113298=>{const _0x462820=_0x52e5cc;if(this['_online']&&_0x113298['id']===_0x3b568d['id']&&_0x113298[_0x462820(0x19b)]['unitId']===this['unitID']){const _0x25091a=_0x113298['params'];this[_0x462820(0x2bf)](_0x25091a['subUnitId'],_0x25091a[_0x462820(0x331)][0x0]);}})));}[_0x2d19ee(0x324)](_0x5595c4){const _0x3916d0=_0x2d19ee;var _0x50131a,_0x55fc69;const {memberID:_0xc67e23,selection:_0x1504e3}=_0x5595c4[_0x3916d0(0x2d3)],{sheetName:_0x331cab,range:_0x116c6c}=_0x3f42d5(_0x1504e3),_0x12b7f6={'name':(_0x55fc69=(_0x50131a=this['_memberService'][_0x3916d0(0x2ad)](this[_0x3916d0(0x369)],_0xc67e23))==null?void 0x0:_0x50131a[_0x3916d0(0x28a)])!=null?_0x55fc69:'Unknown\x20user','range':this[_0x3916d0(0x381)](_0x331cab,_0x116c6c),'sheetID':_0x331cab,'color':this[_0x3916d0(0x1e7)]['assignAColorForMemberID'](_0xc67e23),'selection':_0x1504e3},_0x66b4c5=this[_0x3916d0(0x344)];_0x66b4c5[_0x3916d0(0x165)](_0xc67e23,_0x12b7f6),this[_0x3916d0(0x2eb)][_0x3916d0(0x1a9)](_0x66b4c5);}[_0x2d19ee(0x1bf)](_0x258b2c){const _0x14975e=_0x2d19ee,{memberID:_0x273128}=_0x258b2c[_0x14975e(0x2d3)],_0x47a572=this['cursorInfo'];_0x47a572['delete'](_0x273128),this[_0x14975e(0x2eb)][_0x14975e(0x1a9)](_0x47a572);}[_0x2d19ee(0x381)](_0x205ebf,_0x48f68a){const _0x14d71f=_0x2d19ee;var _0x5ea982,_0x39b1b0;const _0x36fae9=(_0x39b1b0=(_0x5ea982=this[_0x14d71f(0x17f)][_0x14d71f(0x1b0)](this[_0x14d71f(0x369)]))==null?void 0x0:_0x5ea982['getSheetBySheetId'](_0x205ebf))==null?void 0x0:_0x39b1b0[_0x14d71f(0x1e5)]();return(_0x36fae9==null?void 0x0:_0x36fae9[_0x14d71f(0x242)](_0x1a7fd8=>_0x5e86a6[_0x14d71f(0x1e2)](_0x1a7fd8,_0x48f68a)))||_0x48f68a;}[_0x2d19ee(0x133)](){const _0x48fdc2=_0x2d19ee,_0x508b61=new _0x1a4482(),_0x37e284=Hi(),_0x4b650f=()=>{const _0x135063=_0x3b77;_0x508b61[_0x135063(0x2cf)]();const _0x523afb=(_0x5711d5,_0x40bf88,_0xc1c214,_0xb8252f)=>{const _0xb0cff4=_0x135063;let _0x23ae11=[];switch(_0x5711d5['id']){case _0x114d3[_0xb0cff4(0x303)]:{_0x23ae11=_0x5efdb6(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x346)]:{_0x23ae11=_0x1edd71(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertColCommandId']:{_0x23ae11=_0xd21edf(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x170)]:{_0x23ae11=_0x56e9d2(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertRangeMoveRightCommandId']:{_0x23ae11=_0x24380d(_0x5711d5,_0xb8252f);break;}case _0x114d3['InsertRowCommandId']:{_0x23ae11=_0x26c1a0(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x166)]:{_0x23ae11=_0x1f2d01(_0x5711d5,_0xb8252f);break;}case _0x114d3[_0xb0cff4(0x1cc)]:{_0x23ae11=_0x3fee0c(_0x5711d5,_0xb8252f);break;}case _0x114d3['RemoveRowCommandId']:{_0x23ae11=_0x442d3c(_0x5711d5,_0xb8252f);break;}}const _0x4a33c9=_0x3367c1(_0x23ae11,_0xb8252f),_0xc45237=this[_0xb0cff4(0x344)][_0xb0cff4(0x1a4)](_0x40bf88);if(_0xc45237&&_0x4a33c9){const _0x45aa0f={..._0xc45237,'range':_0x4a33c9};this[_0xb0cff4(0x344)][_0xb0cff4(0x165)](_0x40bf88,_0x45aa0f),_0x37e284(()=>{const _0x55feb5=_0xb0cff4,_0x4b31c3=this['_refRangeService'][_0x55feb5(0x35c)](_0x4a33c9,_0x3dcc31=>(_0x4b31c3[_0x55feb5(0x2cf)](),_0x523afb(_0x3dcc31,_0x40bf88,_0xc1c214,_0x4a33c9)));_0x508b61[_0x55feb5(0x191)](_0x4b31c3);});}return{'redos':[],'undos':[]};};this[_0x135063(0x344)][_0x135063(0x136)]((_0x329e1e,_0x27dedf)=>{const _0x474f25=_0x135063,{range:_0x3f2ab5,sheetID:_0x30eba8}=_0x329e1e,_0x470991=this['_refRangeService'][_0x474f25(0x35c)](_0x3f2ab5,_0x2a772e=>(_0x470991[_0x474f25(0x2cf)](),_0x523afb(_0x2a772e,_0x27dedf,_0x30eba8,_0x3f2ab5)));_0x508b61[_0x474f25(0x191)](_0x470991);});};this[_0x48fdc2(0x1b6)](_0x5684e2(this[_0x48fdc2(0x2eb)][_0x48fdc2(0x150)](()=>{_0x4b650f();})));}['_toggleOnline'](){const _0x4cec69=_0x2d19ee;var _0x592465,_0x47c51b;if(this[_0x4cec69(0x2a1)]=!0x0,((_0x592465=this[_0x4cec69(0x17f)][_0x4cec69(0x17b)]())==null?void 0x0:_0x592465[_0x4cec69(0x377)]())!==this[_0x4cec69(0x369)])return;const _0x7b379c=(_0x47c51b=this[_0x4cec69(0x2b2)][_0x4cec69(0x1a4)](_0x47686c)['getCurrentSelections']())==null?void 0x0:_0x47c51b[0x0],_0x4628e5=this['_univerInstanceService'][_0x4cec69(0x2ca)](_0x1de887[_0x4cec69(0x225)])['getActiveSheet']();_0x7b379c&&_0x4628e5&&this[_0x4cec69(0x2bf)](_0x4628e5['getSheetId'](),_0x7b379c);}[_0x2d19ee(0x1bc)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x13e3c7(_0x6717c8)),B(0x3,_0x13e3c7(Ke)),B(0x4,_0x13e3c7(_0x50cc3e)),B(0x5,_0x5ea64d),B(0x6,_0x44deef),B(0x7,_0x13e3c7(_0x14edcb))],Be);var Yi=Object[_0x2d19ee(0x2a7)],Wi=(_0x2230c9,_0x5ba5ee,_0x15af10,_0x307dc9)=>{for(var _0x65d638=_0x307dc9>0x1?void 0x0:_0x307dc9?Yi(_0x5ba5ee,_0x15af10):_0x5ba5ee,_0x202282=_0x2230c9['length']-0x1,_0x266195;_0x202282>=0x0;_0x202282--)(_0x266195=_0x2230c9[_0x202282])&&(_0x65d638=_0x266195(_0x65d638)||_0x65d638);return _0x65d638;},Ce=(_0x5d140c,_0x4609b8)=>(_0x5b3e82,_0x21e5d4)=>_0x4609b8(_0x5b3e82,_0x21e5d4,_0x5d140c);let H=class extends _0x5b8c04{constructor(_0x2e6ff5,_0x302f3b,_0x2ce10a){const _0x2dff79=_0x2d19ee;super(),_(this,_0x2dff79(0x363),new Map()),_(this,_0x2dff79(0x28d),new _0x233e98()),(this[_0x2dff79(0x17f)]=_0x2e6ff5,this[_0x2dff79(0x2b2)]=_0x302f3b,this['_collabSessionService']=_0x2ce10a,this['_init']());}[_0x2d19ee(0x2cf)](){const _0x7195e=_0x2d19ee;super[_0x7195e(0x2cf)](),this[_0x7195e(0x28d)]['complete'](),this['_entities'][_0x7195e(0x136)](_0x4a3277=>_0x4a3277['dispose']());}[_0x2d19ee(0x2f9)](_0x1bb188){const _0x389de4=_0x2d19ee;return this[_0x389de4(0x363)][_0x389de4(0x230)](_0x1bb188)?this['_entities']['get'](_0x1bb188)['cursorInfo$']:this['_entityInit$'][_0x389de4(0x359)](_0x2dc8e8(_0x206cc0=>_0x206cc0[_0x389de4(0x369)]===_0x1bb188),_0x1650bc(_0x304fcf=>_0x304fcf[_0x389de4(0x2a9)]));}[_0x2d19ee(0x1e9)](){const _0xa15a0d=_0x2d19ee;this[_0xa15a0d(0x17f)][_0xa15a0d(0x2c1)](_0x1de887[_0xa15a0d(0x225)])[_0xa15a0d(0x359)](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x150)](async _0x482401=>{const _0x3a47de=_0xa15a0d,_0x3ec035=_0x482401[_0x3a47de(0x377)](),_0x5b27f6=await this[_0x3a47de(0x248)](_0x3ec035);this[_0x3a47de(0x28d)]['next'](_0x5b27f6),this[_0x3a47de(0x363)][_0x3a47de(0x165)](_0x3ec035,_0x5b27f6);}),this[_0xa15a0d(0x17f)]['getTypeOfUnitAdded$'](_0x1de887[_0xa15a0d(0x319)])['pipe'](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x359)](_0x2dc8e8(_0x4f3306=>!_0x4f3306[_0xa15a0d(0x377)]()[_0xa15a0d(0x27a)]('__')))[_0xa15a0d(0x150)](async _0x2e18c9=>{const _0x362252=_0xa15a0d,_0x26ef0a=_0x2e18c9[_0x362252(0x377)](),_0x3f06a0=await this[_0x362252(0x22a)](_0x26ef0a);this[_0x362252(0x28d)][_0x362252(0x1a9)](_0x3f06a0),this[_0x362252(0x363)][_0x362252(0x165)](_0x26ef0a,_0x3f06a0);}),_0x2a4316(this[_0xa15a0d(0x17f)]['getTypeOfUnitDisposed$'](_0x1de887[_0xa15a0d(0x319)]),this[_0xa15a0d(0x17f)]['getTypeOfUnitDisposed$'](_0x1de887[_0xa15a0d(0x225)]))[_0xa15a0d(0x359)](_0xefe94(this[_0xa15a0d(0x339)]))[_0xa15a0d(0x150)](_0x23b95b=>{const _0x573111=_0xa15a0d,_0x56aa8c=_0x23b95b['getUnitId'](),_0x215f85=this[_0x573111(0x363)]['get'](_0x56aa8c);_0x215f85&&(_0x215f85['dispose'](),this[_0x573111(0x363)][_0x573111(0x20a)](_0x56aa8c));});}async[_0x2d19ee(0x248)](_0x3c45e3){const _0x580598=_0x2d19ee,_0xc101a8=await this[_0x580598(0x1da)][_0x580598(0x187)](_0x3c45e3),_0x2ed9e7=this[_0x580598(0x2b2)]['createInstance'](Be,_0x3c45e3,_0xc101a8);return _0x2ed9e7[_0x580598(0x155)](),_0x2ed9e7;}async[_0x2d19ee(0x22a)](_0x340172){const _0x1a720b=_0x2d19ee,_0x2ceea0=await this[_0x1a720b(0x1da)]['requireSession'](_0x340172),_0x2c134d=this[_0x1a720b(0x2b2)][_0x1a720b(0x188)](xe,_0x340172,_0x2ceea0);return _0x2c134d[_0x1a720b(0x155)](),_0x2c134d;}};H=Wi([Ce(0x0,_0x5ea64d),Ce(0x1,_0x13e3c7(_0x6717c8)),Ce(0x2,_0x13e3c7(_0x431e53))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0x435398,_0x31ee6a){const _0x489edb=_0x2d19ee;let {radius:_0x4da5d7,width:_0x5b2dd5,height:_0x59c3d5}=_0x31ee6a;_0x4da5d7=_0x4da5d7!=null?_0x4da5d7:0x0,_0x5b2dd5=_0x5b2dd5!=null?_0x5b2dd5:0x1e,_0x59c3d5=_0x59c3d5!=null?_0x59c3d5:0x1e;let _0x177617=0x0,_0x2c64c0=0x0,_0x36a1f9=0x0;_0x177617=_0x2c64c0=_0x36a1f9=Math[_0x489edb(0x30d)](_0x4da5d7,_0x5b2dd5/0x2,_0x59c3d5/0x2),_0x435398[_0x489edb(0x217)](),_0x435398[_0x489edb(0x1dc)](_0x177617,0x0),_0x435398[_0x489edb(0x348)](_0x5b2dd5-_0x2c64c0,0x0),_0x435398[_0x489edb(0x2aa)](_0x5b2dd5-_0x2c64c0,_0x2c64c0,_0x2c64c0,Math['PI']*0x3/0x2,0x0,!0x1),_0x435398[_0x489edb(0x348)](_0x5b2dd5,_0x59c3d5-_0x36a1f9),_0x435398['arc'](_0x5b2dd5-_0x36a1f9,_0x59c3d5-_0x36a1f9,_0x36a1f9,0x0,Math['PI']/0x2,!0x1),_0x435398[_0x489edb(0x348)](0x0,_0x59c3d5),_0x435398['lineTo'](0x0,_0x177617),_0x435398[_0x489edb(0x2aa)](_0x177617,_0x177617,_0x177617,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x435398['closePath'](),_0x31ee6a[_0x489edb(0x1be)]&&(_0x435398[_0x489edb(0x2b3)](),_0x435398[_0x489edb(0x281)]=_0x31ee6a[_0x489edb(0x1be)],_0x31ee6a[_0x489edb(0x366)]===_0x489edb(0x157)?_0x435398[_0x489edb(0x1be)]('evenodd'):_0x435398['fill'](),_0x435398['restore']());}class ve extends _0x5dc12a{constructor(_0x58343c,_0x23b311){const _0x5210d5=_0x2d19ee;super(_0x58343c,_0x23b311),_(this,_0x5210d5(0x201)),_(this,_0x5210d5(0x365)),(this[_0x5210d5(0x201)]=_0x23b311==null?void 0x0:_0x23b311[_0x5210d5(0x201)],this[_0x5210d5(0x365)]=_0x23b311==null?void 0x0:_0x23b311[_0x5210d5(0x365)]);}static[_0x2d19ee(0x25c)](_0x436f37,_0x230041){const _0x2c7688=_0x2d19ee,{text:_0x23478c,color:_0x138bc8}=_0x230041;_0x436f37['save'](),_0x436f37[_0x2c7688(0x1f2)]=_0x2c7688(0x139);const _0x50045f=_0x436f37[_0x2c7688(0x1fb)](_0x23478c)[_0x2c7688(0x199)],_0xd93d5e=Math[_0x2c7688(0x30d)](_0x50045f+0x2*Re,at);ji(_0x436f37,{'height':Q,'radius':0x4,'width':_0xd93d5e,'fill':_0x138bc8}),_0x436f37['fillStyle']=_0x2c7688(0x19a);const _0x1d6384=Re,_0x3745b9=Q-Vi,_0x206ece=at-0x2*Re;if(_0x50045f>_0x206ece){let _0x4d38e5='',_0x201c15=0x0;for(const _0x212515 of _0x23478c){const _0x4be244=_0x436f37['measureText'](_0x212515)['width'];if(_0x201c15+_0x4be244<=_0x206ece-_0x436f37[_0x2c7688(0x1fb)](_0x2c7688(0x32b))[_0x2c7688(0x199)])_0x4d38e5+=_0x212515,_0x201c15+=_0x4be244;else{_0x4d38e5+=_0x2c7688(0x32b);break;}}_0x436f37[_0x2c7688(0x1b5)](_0x4d38e5,_0x1d6384,_0x3745b9);}else _0x436f37[_0x2c7688(0x1b5)](_0x23478c,_0x1d6384,_0x3745b9);_0x436f37[_0x2c7688(0x312)]();}[_0x2d19ee(0x28f)](_0x193441){const _0x555454=_0x2d19ee;ve[_0x555454(0x25c)](_0x193441,this);}}const De=_0x2d19ee(0x271),Xi='collab-text-range-',Gi=_0x2d19ee(0x293),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x2d19ee(0x152);class ct{constructor(_0x270024,_0x4202cb,_0x1c73ac,_0x30fce4){const _0x43d2d2=_0x2d19ee;_(this,_0x43d2d2(0x25f),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x43d2d2(0x2e0),null),_(this,_0x43d2d2(0x334),null),_(this,_0x43d2d2(0x1cf),null),(this[_0x43d2d2(0x1fe)]=_0x270024,this[_0x43d2d2(0x27f)]=_0x4202cb,this[_0x43d2d2(0x243)]=_0x1c73ac,this[_0x43d2d2(0x2db)]=_0x30fce4,this[_0x43d2d2(0x2d9)]());}set[_0x2d19ee(0x207)](_0xd57d16){const _0x1be557=_0x2d19ee;_0xd57d16?(this[_0x1be557(0x2e0)]&&this[_0x1be557(0x2e0)][_0x1be557(0x160)](),this['_textBubble']&&this[_0x1be557(0x21c)][_0x1be557(0x14b)]()):(this[_0x1be557(0x2e0)]&&this[_0x1be557(0x2e0)][_0x1be557(0x14b)](),this[_0x1be557(0x21c)]&&this[_0x1be557(0x21c)][_0x1be557(0x160)]());}[_0x2d19ee(0x2cf)](){const _0x450f87=_0x2d19ee;for(const _0x59f490 of this[_0x450f87(0x25f)])_0x59f490[_0x450f87(0x2cf)]();this['_textBubble']&&this['_textBubble'][_0x450f87(0x2cf)](),this['_anchorDot']&&this[_0x450f87(0x2e0)][_0x450f87(0x2cf)](),this[_0x450f87(0x1a2)]&&this[_0x450f87(0x1a2)]['dispose'](),this[_0x450f87(0x1cf)]&&this[_0x450f87(0x1cf)]();}[_0x2d19ee(0x2d9)](){const _0x1cca05=_0x2d19ee;var _0x19790e;const {_docSkeleton:_0x4930d9,_document:_0x1d0410}=this,{color:_0x1065cd,name:_0x27dadd,ranges:_0xcaaa52}=this[_0x1cca05(0x1fe)],_0x3cde1=_0x1d0410['getOffsetConfig'](),{docsLeft:_0xd0cb04,docsTop:_0x495fba}=_0x3cde1,_0x4de46e=new _0x10e74e(_0x3cde1,_0x4930d9);for(const {startOffset:_0x2d8b0f,endOffset:_0x411061,rangeType:_0x44b6a0,segmentId:_0x41208a,segmentPage:_0x136331,collapsed:_0x194116,isActive:_0x56c903}of _0xcaaa52){const _0x2b8bba=_0x4930d9['findNodePositionByCharIndex'](_0x2d8b0f,!0x0,_0x41208a,_0x136331);let _0x5be889=_0x4930d9['findNodePositionByCharIndex'](_0x411061,!0x0,_0x41208a,_0x136331);if(_0x5be889==null&&(_0x5be889=_0x4930d9[_0x1cca05(0x36d)](_0x411061-0x1,!0x1,_0x41208a,_0x136331)),_0x56c903){const {contentBoxPointGroup:_0x27664b}=_0x4de46e[_0x1cca05(0x161)](_0x5be889,_0x5be889);if(_0x27664b[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x28c)](_0x1065cd,_0x27664b,_0xd0cb04,_0x495fba,_0x27dadd),this[_0x1cca05(0x1cf)]=this[_0x1cca05(0x215)]();}if(_0x2b8bba&&_0x5be889){if(_0x44b6a0===_0x18a061['RECT']){const _0x117d14=new _0x2997cf(_0x3cde1,_0x4930d9),{pointGroup:_0x1f6593}=(_0x19790e=_0x117d14['getRangePointData'](_0x2b8bba,_0x5be889))!=null?_0x19790e:{};if(_0x1f6593==null||_0x1f6593[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x221)](_0x1065cd,_0x1f6593,_0xd0cb04,_0x495fba);}else{if(!_0x194116){const {borderBoxPointGroup:_0x445fa9}=_0x4de46e['getRangePointData'](_0x2b8bba,_0x5be889);if(_0x445fa9[_0x1cca05(0x375)]===0x0)continue;this[_0x1cca05(0x33d)](_0x1065cd,_0x445fa9,_0xd0cb04,_0x495fba);}}}}}[_0x2d19ee(0x28c)](_0x1230a9,_0x4afd4a,_0x4c163b,_0x4a110d,_0x54d55c){const _0x2a7e89=_0x2d19ee,_0x223758=this['_getAnchorBounding'](_0x4afd4a),{left:_0x39f21b,top:_0x43f7de,height:_0x2064d2}=_0x223758,_0x49e021=this[_0x2a7e89(0x1d7)](),_0x31c893=zi/_0x49e021,_0x391e37=new _0x2bdd35(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d,'height':_0x2064d2,'width':Ki,'fill':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'strokeWidth':_0x31c893,'stroke':Ji,'evented':!0x0});this[_0x2a7e89(0x1a2)]=_0x391e37,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x391e37,_0x978a3f);const _0x4737e1=new _0x2bdd35(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'strokeWidth':0x0,'stroke':_0x1230a9||_0x4c407c(_0x2aff34[_0x2a7e89(0x138)],0x0),'evented':!0x1});this[_0x2a7e89(0x2e0)]=_0x4737e1,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x4737e1,_0x978a3f);const _0x13490a=new ve(De+_0x377b4b(z),{'left':_0x39f21b+_0x4c163b-_0x31c893,'top':_0x43f7de+_0x4a110d-Q,'text':_0x54d55c,'color':_0x1230a9});this[_0x2a7e89(0x21c)]=_0x13490a,this[_0x2a7e89(0x27f)][_0x2a7e89(0x21d)](_0x13490a,_0x978a3f),this[_0x2a7e89(0x207)]=!0x1;}[_0x2d19ee(0x215)](){const _0x84acf=_0x2d19ee,_0x5ab53e=this[_0x84acf(0x1a2)][_0x84acf(0x17d)][_0x84acf(0x283)](()=>{const _0x424dad=_0x84acf;this[_0x424dad(0x207)]=!0x0;}),_0x5f0285=this['_anchor'][_0x84acf(0x249)][_0x84acf(0x283)](()=>{const _0x371626=_0x84acf;this[_0x371626(0x334)]&&clearTimeout(this[_0x371626(0x334)]),this[_0x371626(0x334)]=setTimeout(()=>{const _0x2e8654=_0x371626;this[_0x2e8654(0x207)]=!0x1;},0x7d0);});return()=>{const _0x5f3681=_0x84acf;_0x5ab53e['unsubscribe'](),_0x5f0285[_0x5f3681(0x16b)]();};}[_0x2d19ee(0x33d)](_0x2a97a6,_0x1c1457,_0x2d3dd5,_0x541528){const _0x368a24=_0x2d19ee,_0x27921d=new _0x44158f(_0x2a97a6)[_0x368a24(0x330)](0.2)[_0x368a24(0x1ae)](),_0x2282ac=new _0x36ecd6(Xi+_0x377b4b(z),{'pointsGroup':_0x1c1457,'fill':_0x27921d||_0x4c407c(_0x2aff34[_0x368a24(0x138)],0.2),'left':_0x2d3dd5,'top':_0x541528,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x368a24(0x25f)][_0x368a24(0x1bb)](_0x2282ac),this[_0x368a24(0x27f)][_0x368a24(0x21d)](_0x2282ac,_0x978a3f);}['_drawRectRange'](_0x4702e7,_0x3f59c7,_0x2cdca6,_0x4717e5){const _0x836b90=_0x2d19ee,_0x1bca27=new _0x44158f(_0x4702e7)[_0x836b90(0x330)](0.2)['toRgbString'](),_0x2f02fa=new _0x36ecd6(Gi+_0x377b4b(z),{'pointsGroup':_0x3f59c7,'fill':_0x1bca27||_0x4c407c(_0x2aff34[_0x836b90(0x138)],0.2),'left':_0x2cdca6,'top':_0x4717e5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x836b90(0x25f)]['push'](_0x2f02fa),this[_0x836b90(0x27f)][_0x836b90(0x21d)](_0x2f02fa,_0x978a3f);}[_0x2d19ee(0x23d)](_0x227d7b){const _0x322bb8=_0x227d7b[0x0],_0x537dd4=_0x322bb8[0x0],_0x4f5d8b=_0x322bb8[0x2],{x:_0x459062,y:_0x3a3901}=_0x537dd4,{x:_0x2e587d,y:_0x41b618}=_0x4f5d8b;return{'left':_0x459062,'top':_0x3a3901,'width':_0x2e587d-_0x459062,'height':_0x41b618-_0x3a3901};}[_0x2d19ee(0x1d7)](){const _0x207ad8=_0x2d19ee,{scaleX:_0x366471,scaleY:_0x5f4e42}=this['_scene'][_0x207ad8(0x224)]();return Math[_0x207ad8(0x1db)](_0x366471,_0x5f4e42);}}var Zi=Object[_0x2d19ee(0x2a7)],Qi=(_0x278a75,_0xc9b7a5,_0x156cb7,_0x28ee21)=>{const _0x20170e=_0x2d19ee;for(var _0x15ed83=_0x28ee21>0x1?void 0x0:_0x28ee21?Zi(_0xc9b7a5,_0x156cb7):_0xc9b7a5,_0x1aa9da=_0x278a75[_0x20170e(0x375)]-0x1,_0x281ee5;_0x1aa9da>=0x0;_0x1aa9da--)(_0x281ee5=_0x278a75[_0x1aa9da])&&(_0x15ed83=_0x281ee5(_0x15ed83)||_0x15ed83);return _0x15ed83;},ie=(_0x20698e,_0x8f20a8)=>(_0x4881a3,_0x280581)=>_0x8f20a8(_0x4881a3,_0x280581,_0x20698e);let Fe=class extends _0x5b8c04{constructor(_0x3e42a9,_0x3030dc,_0x43e6a9,_0x52f39a,_0x2fe8a8){const _0x71dcbf=_0x2d19ee;super(),_(this,_0x71dcbf(0x28b),[]),_(this,_0x71dcbf(0x1af),[]),(this[_0x71dcbf(0x37e)]=_0x3e42a9,this[_0x71dcbf(0x336)]=_0x3030dc,this['_collabCursorController']=_0x43e6a9,this[_0x71dcbf(0x162)]=_0x52f39a,this[_0x71dcbf(0x18f)]=_0x2fe8a8,this['_init']());}[_0x2d19ee(0x1e9)](){const _0x5c332c=_0x2d19ee,_0x4e5312=this[_0x5c332c(0x37e)][_0x5c332c(0x352)],_0x55e84a=this['_docSkeletonManagerService'];this[_0x5c332c(0x1b6)](_0x383e72([this[_0x5c332c(0x1e1)][_0x5c332c(0x2f9)](_0x4e5312),this['_themeService']['currentTheme$']])[_0x5c332c(0x359)](_0x4406a1(([_0x5a95ef,_0x45aa4c])=>({'skeleton':_0x55e84a['getSkeleton'](),'cursors':[..._0x5a95ef[_0x5c332c(0x31f)]()][_0x5c332c(0x1c9)](_0x15e2e6=>({..._0x15e2e6,'color':this[_0x5c332c(0x18f)][_0x5c332c(0x2a4)](_0x15e2e6['color'])}))})))[_0x5c332c(0x150)](_0x550d6c=>{const _0x585e47=_0x5c332c;if(this[_0x585e47(0x367)](),_0x550d6c){const {skeleton:_0x5908db,cursors:_0x441c73}=_0x550d6c;this[_0x585e47(0x252)](_0x5908db,_0x441c73);}})),this[_0x5c332c(0x37f)](),this[_0x5c332c(0x222)]();}[_0x2d19ee(0x252)](_0x2a0cf2,_0x31c3a5){const _0x1f9bc9=_0x2d19ee,{scene:_0x567b40,mainComponent:_0x2c5253}=this[_0x1f9bc9(0x37e)],_0x2af5d2=_0x31c3a5['map'](_0x57d194=>new ct(_0x57d194,_0x567b40,_0x2a0cf2,_0x2c5253));this['_cursorShapes']=_0x2af5d2,this[_0x1f9bc9(0x1af)]=_0x31c3a5;}[_0x2d19ee(0x1de)](){const _0x149397=_0x2d19ee;this['_removeCollabCursors']();const {scene:_0x44211a,mainComponent:_0x3c13af}=this[_0x149397(0x37e)],_0xdace4a=this[_0x149397(0x336)][_0x149397(0x364)](),_0x27acf5=this[_0x149397(0x1af)][_0x149397(0x350)](_0x448c02=>new ct(_0x448c02,_0x44211a,_0xdace4a,_0x3c13af));this[_0x149397(0x28b)]=_0x27acf5;}[_0x2d19ee(0x367)](){const _0x4d019c=_0x2d19ee;this[_0x4d019c(0x28b)][_0x4d019c(0x136)](_0x27de62=>_0x27de62['dispose']()),this[_0x4d019c(0x28b)]=[];}[_0x2d19ee(0x222)](){const _0x2f10e=_0x2d19ee,_0x4b209e=[_0x2d8f9a['id']];this[_0x2f10e(0x1b6)](this[_0x2f10e(0x162)][_0x2f10e(0x21e)](_0x50b433=>{const _0x4012c7=_0x2f10e;_0x4b209e[_0x4012c7(0x329)](_0x50b433['id'])&&_0x50b433[_0x4012c7(0x19b)][_0x4012c7(0x352)]===this[_0x4012c7(0x37e)][_0x4012c7(0x352)]&&this[_0x4012c7(0x1de)]();}));}[_0x2d19ee(0x37f)](){const _0xc17909=_0x2d19ee;this[_0xc17909(0x1b6)](_0x5b2081(this[_0xc17909(0x37e)]['engine'][_0xc17909(0x2c2)])[_0xc17909(0x359)](_0x53c322(_0x47198c=>_0x47198c[_0xc17909(0x164)]===_0x5e28be[_0xc17909(0x299)]),_0x42dfe3(0x10))[_0xc17909(0x150)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x13e3c7(_0x1ccfa7)),ie(0x2,_0x13e3c7(H)),ie(0x3,_0x44deef),ie(0x4,_0x13e3c7(_0x1331d6))],Fe);const qi=0x1,en=1.5;class tn extends _0x5dc12a{constructor(_0x12cbf3,_0x2f9888){const _0x583f39=_0x2d19ee;super(_0x12cbf3,_0x2f9888),_(this,'_color'),_(this,'_hovered',!0x1),_(this,_0x583f39(0x30f)),_(this,_0x583f39(0x2e1),''),_(this,_0x583f39(0x368),_0x583f39(0x34a)),_(this,'_backgroundColor'),(_0x2f9888&&this[_0x583f39(0x19d)](_0x2f9888),this[_0x583f39(0x17d)][_0x583f39(0x283)](()=>this[_0x583f39(0x19d)]({'hovered':!0x0})),this[_0x583f39(0x249)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2d19ee(0x19d)](_0x125eb5){const _0x3de449=_0x2d19ee;var _0x4250f4,_0x1be2af,_0x2bffea,_0x52fe26,_0x430196,_0x567229;this[_0x3de449(0x144)]=(_0x4250f4=_0x125eb5[_0x3de449(0x201)])!=null?_0x4250f4:this['_color'],this[_0x3de449(0x218)]=(_0x1be2af=_0x125eb5['hovered'])!=null?_0x1be2af:this[_0x3de449(0x218)],this['_range']=(_0x2bffea=_0x125eb5[_0x3de449(0x186)])!=null?_0x2bffea:this['_range'],this[_0x3de449(0x2e1)]=(_0x52fe26=_0x125eb5[_0x3de449(0x28a)])!=null?_0x52fe26:this[_0x3de449(0x2e1)],this[_0x3de449(0x368)]=(_0x430196=_0x125eb5[_0x3de449(0x175)])!=null?_0x430196:this[_0x3de449(0x368)],this[_0x3de449(0x181)]=(_0x567229=_0x125eb5[_0x3de449(0x276)])!=null?_0x567229:this['_backgroundColor'],this[_0x3de449(0x131)]({'width':_0x125eb5[_0x3de449(0x199)],'height':_0x125eb5['height']});}[_0x2d19ee(0x35f)](_0x499b2a){const _0x437eea=_0x2d19ee,{row:_0x4da585,column:_0x32568f}=_0x499b2a;if(_0x4da585>=this['_range'][_0x437eea(0x163)]&&_0x4da585<=this['_range'][_0x437eea(0x355)]&&_0x32568f>=this[_0x437eea(0x30f)][_0x437eea(0x309)]&&_0x32568f<=this[_0x437eea(0x30f)][_0x437eea(0x35e)]){this[_0x437eea(0x19d)]({'hovered':!0x0});return;}this[_0x437eea(0x19d)]({'hovered':!0x1});}[_0x2d19ee(0x302)](_0x4f8135){return!0x1;}[_0x2d19ee(0x28f)](_0x4545b3){const _0x1b316b=_0x2d19ee;_0x2bdd35[_0x1b316b(0x25c)](_0x4545b3,{'width':this[_0x1b316b(0x199)],'height':this[_0x1b316b(0x1ad)],'strokeWidth':en,'stroke':this[_0x1b316b(0x144)],'evented':!0x1,'fill':this[_0x1b316b(0x181)]}),this[_0x1b316b(0x218)]&&(_0x4545b3['save'](),_0x4545b3[_0x1b316b(0x251)](0x1,0x0,0x0,0x1,this['width'],this[_0x1b316b(0x368)]===_0x1b316b(0x2ac)?0x0:-Q),ve[_0x1b316b(0x25c)](_0x4545b3,{'text':this['_name'],'color':this['_color']}),_0x4545b3[_0x1b316b(0x312)]());}}var sn=Object[_0x2d19ee(0x2a7)],nn=(_0x519af5,_0x4dbca8,_0x4c928d,_0x20660b)=>{const _0x2c84c4=_0x2d19ee;for(var _0x35ff53=_0x20660b>0x1?void 0x0:_0x20660b?sn(_0x4dbca8,_0x4c928d):_0x4dbca8,_0x4d1219=_0x519af5[_0x2c84c4(0x375)]-0x1,_0x5b0742;_0x4d1219>=0x0;_0x4d1219--)(_0x5b0742=_0x519af5[_0x4d1219])&&(_0x35ff53=_0x5b0742(_0x35ff53)||_0x35ff53);return _0x35ff53;},be=(_0x1b03ea,_0x43f626)=>(_0x228205,_0x357827)=>_0x43f626(_0x228205,_0x357827,_0x1b03ea);const rn=0x1389;let ke=class extends _0x5b8c04{constructor(_0x16b685,_0x1f6949,_0x2a1a93,_0x179ca4){const _0x5cbb9f=_0x2d19ee;super(),_(this,_0x5cbb9f(0x1af),new Set()),_(this,_0x5cbb9f(0x1d1),null),(this[_0x5cbb9f(0x37e)]=_0x16b685,this[_0x5cbb9f(0x360)]=_0x1f6949,this[_0x5cbb9f(0x1e1)]=_0x2a1a93,this[_0x5cbb9f(0x18f)]=_0x179ca4,this[_0x5cbb9f(0x1e9)]());}['_init'](){const _0x5c921b=_0x2d19ee;this[_0x5c921b(0x360)]['currentSkeleton$'][_0x5c921b(0x359)](_0xb23e26(this['dispose$']),_0x2c4106(_0x5ea8e1=>{const _0x4a3bad=_0x5c921b;if(_0x5ea8e1){const _0x2bd179=_0x5ea8e1[_0x4a3bad(0x1f8)];return _0x383e72(this['_collabCursorController'][_0x4a3bad(0x2f9)](this[_0x4a3bad(0x37e)]['unitId']),this[_0x4a3bad(0x18f)][_0x4a3bad(0x33e)])[_0x4a3bad(0x359)](_0x4406a1(([_0x535f85,_0x121946])=>{const _0x3853e8=_0x4a3bad,_0x3cf1e7=new Map();return _0x535f85[_0x3853e8(0x136)]((_0x4b5fa,_0x3d290b)=>{const _0x27be4f=_0x3853e8;if(_0x4b5fa['sheetID']===_0x2bd179){const _0x24d100={..._0x4b5fa};_0x24d100[_0x27be4f(0x201)]=this[_0x27be4f(0x18f)][_0x27be4f(0x2a4)](_0x4b5fa[_0x27be4f(0x201)]),_0x3cf1e7[_0x27be4f(0x165)](_0x3d290b,_0x24d100);}}),{'skeleton':_0x5ea8e1,'cursors':_0x3cf1e7};}));}return _0x272a51({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x59f426,cursors:_0x1c917b})=>{const _0x106434=_0x5c921b;this['_removeCollabCursors'](),_0x59f426&&this[_0x106434(0x252)](_0x59f426,_0x1c917b);}),this['_sheetSkeletonManagerService'][_0x5c921b(0x1e8)][_0x5c921b(0x150)](_0x46b480=>{const _0x46ee44=_0x5c921b;if(_0x46b480==null)return;const {skeleton:_0x50ee39}=_0x46b480,{scene:_0x55114d}=this[_0x46ee44(0x37e)];_0x55114d['onPointerMove$'][_0x46ee44(0x283)](_0x1b4ae8(_0xbc0ad8=>{const _0xc583a5=_0x46ee44;var _0x573844,_0xdf07;const {offsetX:_0x3dbc63,offsetY:_0x1727d4}=_0xbc0ad8,{x:_0xcc8b54,y:_0x5627d3}=_0x55114d[_0xc583a5(0x23c)](_0x59221c['FromArray']([_0x3dbc63,_0x1727d4])),{scaleX:_0x48c0d6,scaleY:_0x15a8c9}=_0x55114d[_0xc583a5(0x224)](),_0x31afd2=_0x55114d[_0xc583a5(0x1c7)](_0x29367b[_0xc583a5(0x241)]),_0xa67a49=_0x55114d[_0xc583a5(0x32d)](_0x59221c[_0xc583a5(0x2b8)]([_0xcc8b54,_0x5627d3]),_0x31afd2),_0x4cd172=_0x50ee39[_0xc583a5(0x1ab)](_0x3dbc63,_0x1727d4,_0x48c0d6,_0x15a8c9,_0xa67a49);((_0x573844=this[_0xc583a5(0x1d1)])==null?void 0x0:_0x573844[_0xc583a5(0x2df)])===_0x4cd172[_0xc583a5(0x2df)]&&((_0xdf07=this[_0xc583a5(0x1d1)])==null?void 0x0:_0xdf07[_0xc583a5(0x317)])===_0x4cd172[_0xc583a5(0x317)]||this[_0xc583a5(0x1af)][_0xc583a5(0x136)](_0x568431=>{const _0x56e8ee=_0xc583a5;_0x568431[_0x56e8ee(0x35f)](_0x4cd172);});},0x64));});}[_0x2d19ee(0x252)](_0x451145,_0x45f7d9){const _0x3193d2=_0x2d19ee;var _0x1f3a99;const _0xdc991f=(_0x1f3a99=this[_0x3193d2(0x360)][_0x3193d2(0x280)]())==null?void 0x0:_0x1f3a99['skeleton'];if(!_0xdc991f)return;const _0x5dc77c=this[_0x3193d2(0x247)]();if(!_0x5dc77c)return;this[_0x3193d2(0x1af)][_0x3193d2(0x136)](_0x25f643=>{const _0x53f93d=_0x3193d2;_0x25f643[_0x53f93d(0x193)]();});const {scene:_0x41c697}=_0x5dc77c,_0x4cce11=on(Array[_0x3193d2(0x292)](_0x45f7d9[_0x3193d2(0x31f)]()))[_0x3193d2(0x350)](_0x58a5db=>{const _0x34f3cf=_0x3193d2,{color:_0x53ed5d,range:_0x10740f,name:_0x5cbfca,selection:_0x4ed6f8,sheetID:_0x3ea561}=_0x58a5db,{startColumn:_0x27b076,startRow:_0x3984fb,endColumn:_0xcd0d18,endRow:_0x467c29}=_0x10740f,_0x383ba6=_0x412d35(_0x3984fb,_0x27b076,_0x41c697,_0xdc991f),_0x4a707f=_0x412d35(_0x467c29,_0xcd0d18,_0x41c697,_0xdc991f),{columnHeaderHeightAndMarginTop:_0x1875e}=_0xdc991f,{startX:_0x53353b,startY:_0x448d9f}=_0x383ba6,{endX:_0x255179,endY:_0x4b6a84}=_0x4a707f,_0xc7d594=_0x255179-_0x53353b,_0x5cc2eb=_0x4b6a84-_0x448d9f,_0x398ff4={'labelPosition':_0x448d9f-_0x1875e>=Q?_0x34f3cf(0x34a):_0x34f3cf(0x2ac),'sheetID':_0x3ea561,'range':_0x10740f,'color':_0x53ed5d,'name':_0x5cbfca,'selection':_0x4ed6f8,'left':_0x53353b,'top':_0x448d9f,'width':_0xc7d594,'height':_0x5cc2eb,'evented':!0x1,'zIndex':rn};return new tn(_0x5cbfca,_0x398ff4);});_0x41c697[_0x3193d2(0x296)](_0x4cce11,qi),this[_0x3193d2(0x1af)]=new Set(_0x4cce11);}['_removeCollabCursors'](){const _0x29f29d=_0x2d19ee;var _0x550e95;(_0x550e95=this[_0x29f29d(0x1af)])==null||_0x550e95['forEach'](_0x2db9cd=>_0x2db9cd['dispose']());}[_0x2d19ee(0x247)](){const _0x57f049=_0x2d19ee;return _0x2cc164(this['_context'][_0x57f049(0x235)],this['_context']);}};ke=nn([be(0x1,_0x13e3c7(_0x33de6b)),be(0x2,_0x13e3c7(H)),be(0x3,_0x13e3c7(_0x1331d6))],ke);function on(_0x289585){const _0x2580ad=_0x2d19ee,_0x571ca0=new Map();return _0x289585[_0x2580ad(0x136)](_0x17f676=>{const _0x5acb7b=_0x2580ad;if(_0x571ca0[_0x5acb7b(0x230)](_0x17f676[_0x5acb7b(0x20c)])){const _0x344e81=_0x571ca0[_0x5acb7b(0x1a4)](_0x17f676[_0x5acb7b(0x20c)]);_0x344e81[_0x5acb7b(0x28a)]+=',\x20'+_0x17f676['name'];}else _0x571ca0[_0x5acb7b(0x165)](_0x17f676[_0x5acb7b(0x20c)],_0x17f676);}),Array[_0x2580ad(0x292)](_0x571ca0['values']());}var an=Object['getOwnPropertyDescriptor'],cn=(_0x3c1aae,_0x435f5b,_0x54eb7a,_0x129136)=>{const _0x4a4e42=_0x2d19ee;for(var _0x469ab6=_0x129136>0x1?void 0x0:_0x129136?an(_0x435f5b,_0x54eb7a):_0x435f5b,_0xf8ae11=_0x3c1aae[_0x4a4e42(0x375)]-0x1,_0x19e0e9;_0xf8ae11>=0x0;_0xf8ae11--)(_0x19e0e9=_0x3c1aae[_0xf8ae11])&&(_0x469ab6=_0x19e0e9(_0x469ab6)||_0x469ab6);return _0x469ab6;},F=(_0x1432bf,_0xf0e77a)=>(_0x25324b,_0x44ab2d)=>_0xf0e77a(_0x25324b,_0x44ab2d,_0x1432bf);let _e=class extends _0x55618d{constructor(_0x7ceb21,_0x22fe9a,_0x785097,_0x2a45a5,_0x56240d,_0x173986){const _0x5f4ee6=_0x2d19ee;super(),this[_0x5f4ee6(0x171)]=_0x7ceb21,this['_localCacheService']=_0x22fe9a,this[_0x5f4ee6(0x345)]=_0x785097,this[_0x5f4ee6(0x16f)]=_0x2a45a5,this[_0x5f4ee6(0x1ba)]=_0x56240d,this[_0x5f4ee6(0x2ea)]=_0x173986,this[_0x5f4ee6(0x2ce)](),this[_0x5f4ee6(0x30c)]();}[_0x2d19ee(0x2ce)](){const _0x53fc5e=_0x2d19ee;this[_0x53fc5e(0x1b6)](this[_0x53fc5e(0x171)]['registerBeforeClose'](()=>{const _0x4c96e1=_0x53fc5e;if(this[_0x4c96e1(0x356)][_0x4c96e1(0x134)][_0x4c96e1(0x26a)])return this['_localeService']['t'](_0x4c96e1(0x232));}));}[_0x2d19ee(0x30c)](){const _0x4cd166=_0x2d19ee;this[_0x4cd166(0x1b6)](this[_0x4cd166(0x345)][_0x4cd166(0x246)][_0x4cd166(0x150)](_0x5010b6=>{const _0x16ffe1=_0x4cd166;_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x183)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x22f))}),_0x5010b6['id']===_0x54f12f['CLOSE_ROOM']&&this['_messageService'][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x205))}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x2f5)]&&this[_0x16ffe1(0x1ba)][_0x16ffe1(0x14b)]({'title':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x1b1)),'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x1a7)),'type':_0x16ffe1(0x1f9),'duration':0x0}),_0x5010b6['id']===_0x54f12f['CONFLICT']&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t']('collaboration.closeRoom')+'('+_0x5010b6['data']+')'}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x1b4)]&&this[_0x16ffe1(0x16f)]['show']({'type':_0xe3500e['Warning'],'content':this[_0x16ffe1(0x2ea)]['t'](_0x5010b6[_0x16ffe1(0x2d3)]||'')}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x372)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x1fc)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x27d))}),_0x5010b6['id']===_0x54f12f[_0x16ffe1(0x25a)]&&this[_0x16ffe1(0x16f)][_0x16ffe1(0x14b)]({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t']('session.connection-failed')}),_0x5010b6['id']===_0x54f12f['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x16ffe1(0x16f)]['show']({'type':_0xe3500e[_0x16ffe1(0x185)],'content':this[_0x16ffe1(0x2ea)]['t'](_0x16ffe1(0x240))});}));}};_e=cn([F(0x0,_0x58a1a6),F(0x1,_0x26b1ca),F(0x2,_0x13e3c7(_0x195a88)),F(0x3,_0x551408),F(0x4,_0x3ad334),F(0x5,_0x13e3c7(_0x548920))],_e);var _n=Object[_0x2d19ee(0x2a7)],ln=(_0x2d8099,_0x321a93,_0x1a4a93,_0x4ec372)=>{const _0x5549ef=_0x2d19ee;for(var _0x28118d=_0x4ec372>0x1?void 0x0:_0x4ec372?_n(_0x321a93,_0x1a4a93):_0x321a93,_0x2f21a=_0x2d8099[_0x5549ef(0x375)]-0x1,_0x281734;_0x2f21a>=0x0;_0x2f21a--)(_0x281734=_0x2d8099[_0x2f21a])&&(_0x28118d=_0x281734(_0x28118d)||_0x28118d);return _0x28118d;},ne=(_0x247f78,_0x462afa)=>(_0x26fe13,_0x4ce749)=>_0x462afa(_0x26fe13,_0x4ce749,_0x247f78);let le=class extends _0x55618d{constructor(_0x1059d4,_0x3da29f,_0x25b4b9,_0x24d058){const _0x28b106=_0x2d19ee;super(),_(this,_0x28b106(0x30a)),(this[_0x28b106(0x2b2)]=_0x1059d4,this[_0x28b106(0x26e)]=_0x3da29f,this['_logService']=_0x25b4b9,this[_0x28b106(0x376)]=_0x24d058,this[_0x28b106(0x1e9)]());}[_0x2d19ee(0x1e9)](){const _0x51550b=_0x2d19ee;this[_0x51550b(0x362)](),this[_0x51550b(0x2ef)](),this[_0x51550b(0x19e)](),this[_0x51550b(0x206)]();}[_0x2d19ee(0x206)](){const _0x23753d=_0x2d19ee;this[_0x23753d(0x1b6)](this[_0x23753d(0x376)]['socket$']['subscribe'](_0x37c67d=>{const _0x266d73=_0x23753d;this[_0x266d73(0x30a)]=_0x37c67d==null?void 0x0:_0x37c67d[_0x266d73(0x169)];}));}[_0x2d19ee(0x362)](){const _0x2d4b73=_0x2d19ee,_0x1e51a6=_0x10aa05=>{const _0x244ec0=_0x3b77;var _0x306b0a;this[_0x244ec0(0x12e)](_0x244ec0(0x1f9),_0x244ec0(0x2af)+_0x10aa05[_0x244ec0(0x23f)]+_0x244ec0(0x2da)+_0x10aa05['filename']+':'+_0x10aa05[_0x244ec0(0x291)]+':'+_0x10aa05[_0x244ec0(0x212)]+'\x0a'+(((_0x306b0a=_0x10aa05[_0x244ec0(0x1f9)])==null?void 0x0:_0x306b0a[_0x244ec0(0x295)])||''));};window[_0x2d4b73(0x25b)](_0x2d4b73(0x1f9),_0x1e51a6),this['disposeWithMe'](()=>{const _0x145a73=_0x2d4b73;window[_0x145a73(0x37c)](_0x145a73(0x1f9),_0x1e51a6);});}[_0x2d19ee(0x2ef)](){const _0x3fb73f=_0x2d19ee,_0x1be6c2=_0x22afa6=>{const _0x1abeb2=_0x3b77;this[_0x1abeb2(0x12e)]('error',_0x1abeb2(0x179)+_0x22afa6['reason']);};window[_0x3fb73f(0x25b)](_0x3fb73f(0x26f),_0x1be6c2),this[_0x3fb73f(0x1b6)](()=>{const _0x57d0a7=_0x3fb73f;window[_0x57d0a7(0x37c)](_0x57d0a7(0x26f),_0x1be6c2);});}[_0x2d19ee(0x19e)](){const _0x2a94ff=_0x2d19ee,_0x48da72=this['_logService'][_0x2a94ff(0x1f9)][_0x2a94ff(0x2c3)](this[_0x2a94ff(0x244)]);this[_0x2a94ff(0x244)][_0x2a94ff(0x1f9)]=(..._0x1ac629)=>{const _0x5ad08c=_0x2a94ff,_0x16a209=_0x1ac629['map'](_0xd622e0=>_0xd622e0 instanceof Error?_0xd622e0[_0x5ad08c(0x23f)]+'\x0a'+_0xd622e0['stack']:String(_0xd622e0))[_0x5ad08c(0x184)]('\x20');this[_0x5ad08c(0x12e)](_0x5ad08c(0x1f9),_0x5ad08c(0x198)+_0x16a209),_0x48da72(..._0x1ac629);},this['disposeWithMe'](()=>{const _0x39fd0d=_0x2a94ff;this[_0x39fd0d(0x244)][_0x39fd0d(0x1f9)]=_0x48da72;});}['_uploadLog'](_0x1309f1,_0x324fc6){const _0x57f7d5=_0x2d19ee;try{const _0x5dde85={'userId':this[_0x57f7d5(0x30a)],'logLabel':_0x1309f1,'content':_0x324fc6};this[_0x57f7d5(0x26e)]['post'](_0x57f7d5(0x1c1),{'body':_0x5dde85})[_0x57f7d5(0x2be)](()=>{});}catch{}}};function _0x4498(){const _0x554654=['searchParams','url(#$1','_dataLoaderService','_localeService','_cursorInfo$','parseInt','_selfUnitIDs','blue.400','_initUnhandledRejectionListener','_docStateChangeManagerService','_instanceService','m1Prime','limitInfo','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','PERMISSION_DENIED','_transformService','_removeClearOtherTimer','SUCCESS','getCollabCursors$','use','wsSessionTicketUrl','ENTITLE_CAN_NOT_BUY_LOWER_OTP','SNAPSHOT_INVALID_SNAPSHOT','_registerRenderDependencies','YUUMI_ASYNCIO_CANCELLED','invokeId','_colorIndex','triggerDblclick','DeleteRangeMoveLeftCommandId','result','status$','purple.300','origin','_refRangeService','startColumn','_memberID','DATA_SOURCE_TOO_LARGE','_initEvent','min','_getSaveTimeout','_range','NOT_FOUND','_handleEvent','restore','START_CALCULATION','collabStatus.fetchMiss','_setupSubUnitSync','60rsowth','row','_clearPolling','UNIVER_DOC','clearTimeout','univerjs-icon\x20univerjs-icon-','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','LICENSE_IMPORT_SIZE_EXCEEDED','_docTransformIMECacheService','values','_releaseCalculationLimit','displayName','_handleHeartbeatEvent','transformSelections','_onCursorUpdate','transformStateCache','LICENSE_DISTRO_REJECTED','INVITE_CODE_REQUIRED','_docSyncEditingCollabCursorService','includes','stringify','...','3446663kCotNU','getVpScrollXYInfoByPosToVp','_transformHistoryAndStateStack','_updateURLWithCurrentState','setAlpha','selections','REDEMPTION_CODE_NOT_STARTED','_docTransformSelectionsService','_hideTimer','_initCommandInterceptor','_docSkeletonManagerService','_session','PENDING','dispose$','eventID','_syncEditingCollabCursorService','_updateSubUnitFromURLParams','_drawTextRange','currentTheme$','onLocalMutation','MUTATION','M0\x200H16V16H0z','FETCH_MISS','ENTITLE_INSUFFICIENT_QUOTA','cursorInfo','_collaborationUIEventService','DeleteRangeMoveUpCommandId','runId','lineTo','current','top','/run/','getUndoRedoMutationParamsCache','1em','deepClone','urlChange$','map','sessionStatus$','unitId','search','_urlService','endRow','_localCacheService','_handleLeaveEvent','reconnect','pipe','collabStatus.offline','ENTITLE_COUPON_EXPIRED','registerRefRange','ERROR_AGAIN','endColumn','onMouseMove','_sheetSkeletonManagerService','PY_RUNTIME_SCRIPT_ERROR','_initWindowErrorListener','_entities','getSkeleton','text','fillRule','_removeCollabCursors','_labelPosition','unitID','_checkCalculationAvailable','newValue','_getSessionTicket','findNodePositionByCharIndex','redoState','stage','OFFLINE','url(#off-line-icon_clip0_910_343)','SOCKET_FAILED_RETRY','saveOfflineData','_localStorageService','length','_collaborationSessionService','getUnitId','getValue','storage','_getFormulaLimitStatus','_doCreateSocket','removeEventListener','LOGIN_FAILED','_context','_initResize','_hasFormulaInDirtyRanges','_getMergeRange','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','ENSURE_SNAPSHOT_EXECUTION','_taskIds','white','_heartbeatTimer','_uploadLog','doc.mutation.rich-text-editing','NOT_COLLAB','transformByState','string','_onRefRangeChange','saveTaskMap','imageSourceType','forEach','_lastResponseTimestamp','black','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_configService','on-line-icon_clip0_910_349','APPLY_DUPLICATED','onRendered','REDEMPTION_CODE_FULLY_REDEEMED','4292065VBiNff','YUUMI_SUBSCRIPTION_NOT_FOUND','UPDATE_CURSOR','addHandlerCallback','tag','_color','_unitOnClients','_showGuardMessage','OnLineIcon','getCollabEntity$','off-line-icon','undoState','show','all','currentUsage','YUUMI_AI_RUN_FAILED','setTimeout','subscribe','getMemberID','rgba(255,\x20255,\x20255,\x200.01)','LOGIN_TOKEN_PROCESSING_FAILED','loadUnit','init','_collaborationController','evenodd','TOO_MANY_REQUESTS','whenReady','idSuffix','HEADER_MENU','override','[CollaborationDataLoaderController]','ACTIVE_UNIT_EVENT_CHANNEL','ENTITLE_COUPON_USED_UP','hide','getRangePointData','_commandService','startRow','type','set','MoveRangeCommandId','_id','div','memberID','executeCommand','unsubscribe','disableLocalCache','_uiPartsService','send','_messageService','InsertRangeMoveDownCommandId','_beforeCloseService','getParam','startFormulaLimitUrl','unshift','labelPosition','WECHAT_HAS_BEEN_BOUND','APPLY_PERMISSION_DENIED','ALREADY_EXISTS','[Unhandled\x20Rejection]:\x20','INVALID_ARGUMENT','getFocusedUnit','_pollingInterval','onPointerEnter$','yellow.400','_univerInstanceService','APPLY_REVISION_CONFILICT','_backgroundColor','transformIMECache','OTHER_CLIENT_EDITING','join','Error','range','requireSession','createInstance','INVALID_INVITE_CODE','setActiveRange','REDEMPTION_CODE_INACTIVE','defineProperty','_maxFormulaLimit','_initStatusComponent','_themeService','REDEMPTION_INVALID_CODE','add','CHANGESET_REVISION_CONFILICT','makeDirty','addClipboardHook','getConfig','OTHER_CLIENTS_EDITING','INVITE_CODE_HAS_BEEN_UES','[LogService\x20Error]:\x20','width','#FFF','params','univer-flex\x20univer-items-center','setShapeProps','_monkeyPatchLogService','random','YUUMI_TABLE_NOT_FOUND_IN_UNIT','APPLY_REJECT','_anchor','_send','get','totalFormulasToCalculate','AUTHORIZE_CODE_ILLEGAL','permission.content','_imageIoService','next','_clearOtherTimers','getCellPositionByOffset','registerComponent','height','toRgbString','_cursors','getUniverSheetInstance','permission.title','children','application/json','JOIN_ROOM_FAILED','fillText','disposeWithMe','then','isActive','clipPath','_notificationService','push','_toggleOffline','history','fill','_onCursorDelete','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/frontend/logs','_revisionService','key','formula.calculation.waiting','collabStatus.conflict','_checkAndWaitForCalculationPermission','getViewport','isArray','flatMap','setUndoRedoMutationParamsCache','getCellMatrix','RemoveColCommandId','UNDEFINED','YUUMI_NO_CUBOID_FOR_QUESTION','_eventUnsubscribe','_startCalculationLimit','_lastPointer','replaceState','YUUMI_RATE_OVER_LIMIT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ONLINE','colorChannel1','_getScale','RECT','transformMutation','_collabSessionService','max','moveTo','getStateCache','_refreshCollabCursors','CURRENT_STATUS_CANNOT_OPERATE','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_collabCursorController','contains','getUnhiddenWorksheets','YUUMI_UNABLE_LOAD_URL','getMergeData','12WrOgoS','_colorAssignService','currentSkeleton$','_init','now','currentColor','mutations','xlink:href','_applyCommand','mask','_assignedColors','9400440MOyjrQ','font','location','on-line-icon','4fMOKCi','setParam','debug','sheetId','error','_docTransformStateCacheService','measureText','Warning','ticket','_cursor','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','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','color','toString','YUUMI_ALL_TABLES_IS_INVALID','enableLocalCache','collaboration.closeRoom','_initUserListener','_hover','101152LvdYuF','0\x200\x2016\x2016','delete','assign','selection','trim','REDEMPTION_USER_NOT_ELIGIBLE','parse','transformRemoteChangeset','3320121NbySqr','colno','36syBAdB','YUUMI_CONNECTOR_URL_NOT_FOUND','_handleHover','disposeUnit','beginPath','_hovered','exhaustSavingTask','966250hHDdQA','EMAIL_HAS_BEEN_BOUND','_textBubble','addObject','onCommandExecuted','TEXT','_scheduleClearOtherTimer','_drawRectRange','_initCommandExecutedListener','split','getAncestorScale','UNIVER_SHEET','href','getCurrentRevOfUnit','green.600','_roomMembers$','_startDocCollabCursor','_docClipboardService','code','_createSocketURL','transformMutationsWithChangeset','collaboration.single-unit.warning','has','dirtyRanges','collaboration.offline-data-not-saved','MOBILE_VERIFY_CODE_MISMATCH','executionId','unit','_initEntityListener','registerRenderModule','setInterval','_registerDependencies','ENTITLE_CHAT_LIMIT_EXCEED','replace','getRelativeToViewportCoord','_getAnchorBounding','_renderManagerService','message','session.collaboration-timeout','VIEW_MAIN','find','_docSkeleton','_logService','_saveTaskMap','event$','_getSheetObject','_startSheetCollabCursor','onPointerLeave$','sessionTicket','_scheduleSaving','collaboration-client-ui.config','off-line-icon_clip0_910_343','pushState','_toggleOnline','INVITE_CODE_ALREADY_BOUND','transform','_updateCollabCursors','_initDependencies','maxFormulaLimit','47789sKUNOO','REDEMPTION_CODE_HAS_BEEN_CREATED','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','uni.network.url-service','_handleJoinEvent','SOCKET_FAILED','addEventListener','drawWith','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getRenderById','_shapes','removeParam','subunit','actions','setConfig','post','roomMembers$','ENTITLE_NEED_BILLING_ADDRESS','assignAColorForMemberID','_memberService','LICENSE_EXPORT_SIZE_EXCEEDED','size','focused$','APPLY_NON_SEQUENTIAL_REVISION','http://www.w3.org/2000/svg','_httpService','unhandledrejection','_transformUndoRedoStack','collab-text-anchor-','ENTITLE_USE_COUPON_NOT_1ST_TRADE','getActiveSheet','AWAITING_WITH_PENDING','getSheetBySheetId','backgroundColor','USER_IS_ANONYMOUS','attrs','USER_NOT_INVITED_CODE','startsWith','asObservable','entityInit$','session.will-retry','_saveCache','_scene','getCurrent','fillStyle','loadOfflineData','subscribeEvent','USERS_LEAVE','body','_setFormulaLimitStatus','ENTITLE_DUP_SUBSCRIPTION','ENTITLE_INVALID_COUPON_CODE','shift','name','_cursorShapes','_drawAnchor','_entityInit$','jiqing.500','_draw','setItem','lineno','from','collab-rect-range-','CONNECTOR_DATA_TOO_LARGE','stack','addObjects','univer-mr-2\x20univer-flex\x20univer-text-xl','_disabled','resize','with','none','SYNCED','_currentUsage','releaseFormulaLimitUrl','getDocRanges','ENTITLE_REPORT_LIMIT_EXCEED','_online','path','_config','getColorFromTheme','complete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getOwnPropertyDescriptor','_scheduleHeartbeat','cursorInfo$','arc','round','bottom','getMember','_transformPreviousActiveRange','[Window\x20Error]:\x20','NO_OTHER_CLIENTS_EDITING','translate(.97)','_injector','save','USER_NOT_FOUND','textRanges','Unknown\x20user','894maUJrJ','FromArray','onStarting','YUUMI_URL_COL_OUT_OF_RANGE','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_ensureSubject','_unitStatus','catch','_updateLocalCursor','entries','getTypeOfUnitAdded$','onTransformChange$','bind','_cachedData','docStateChange$','formula.calculation.unable','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','PAYMENT_CHANNEL_NOT_SUPPORT','isEditing','getCurrentUnitForType','defIds','m2Prime','EMAIL_VERIFY_CODE_MISMATCH','_setupBeforeClosingHandler','dispose','Failed','_initStatusListener','roomMembers','data','ranges','defs','UNAUTHENTICATED','_status$','UNRECOGNIZED','_render','\x20at\x20','_document','collabCursorState$','INTERNAL_ERROR','_collabCursorState$','column','_anchorDot','_name','symbol','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabStatus.syncing','getformulaLimitStatusUrl','getSheetId'];_0x4498=function(){return _0x554654;};return _0x4498();}le=ln([ne(0x0,_0x13e3c7(_0x6717c8)),ne(0x1,_0x13e3c7(_0x58299b)),ne(0x2,_0x2bfead),ne(0x3,_0x13e3c7(_0x431e53))],le);const hn=_0x2d19ee(0x24c),_t={};var un=Object[_0x2d19ee(0x2a7)],dn=(_0x540cd2,_0xf6814c,_0x5cf472,_0x2e4e6d)=>{const _0x496166=_0x2d19ee;for(var _0x3054f0=_0x2e4e6d>0x1?void 0x0:_0x2e4e6d?un(_0xf6814c,_0x5cf472):_0xf6814c,_0x1969be=_0x540cd2[_0x496166(0x375)]-0x1,_0x1d7059;_0x1969be>=0x0;_0x1969be--)(_0x1d7059=_0x540cd2[_0x1969be])&&(_0x3054f0=_0x1d7059(_0x3054f0)||_0x3054f0);return _0x3054f0;},lt=(_0x53318f,_0x13062e)=>(_0x382812,_0x557ccf)=>_0x13062e(_0x382812,_0x557ccf,_0x53318f);let he=class{constructor(_0x3fe2d8,_0x3dd813){const _0x3afe8d=_0x2d19ee;this['_transformService']=_0x3fe2d8,this[_0x3afe8d(0x23e)]=_0x3dd813;}['transformIMECache'](_0x1c8523){const _0x295601=_0x2d19ee;this[_0x295601(0x270)](_0x1c8523),this[_0x295601(0x2ae)](_0x1c8523);}[_0x2d19ee(0x210)](_0x539611){const _0x190217=_0x2d19ee,{unitID:_0x4f6ad9}=_0x539611,_0x5711fa=this[_0x190217(0x23e)][_0x190217(0x25e)](_0x4f6ad9)[_0x190217(0x29a)](_0x57bd0a),{redoCache:_0x358ead}=_0x5711fa[_0x190217(0x34c)]();if(_0x358ead['length']===0x0)return _0x539611;let _0x5aff15=_0x2fbfda[_0x190217(0x34e)](_0x539611[_0x190217(0x1ec)][0x0]);for(let _0x380c61=0x0;_0x380c61<_0x358ead[_0x190217(0x375)];_0x380c61++){const _0x23dd1f={'id':'doc.mutation.rich-text-editing','params':{..._0x358ead[_0x380c61]}},_0x31f56f=this[_0x190217(0x2f6)][_0x190217(0x1d9)](_0x5aff15,_0x23dd1f,!0x1);if(_0xbfd48e(_0x31f56f))throw _0x31f56f[_0x190217(0x1f9)];_0x5aff15=_0x31f56f[_0x190217(0x2f2)];}return{..._0x2fbfda[_0x190217(0x34e)](_0x539611),'mutations':[_0x5aff15]};}['_transformUndoRedoStack'](_0x2ca40d){const _0xc154c5=_0x2d19ee,{unitID:_0x4157f}=_0x2ca40d,_0x2a877f=this[_0xc154c5(0x23e)]['getRenderById'](_0x4157f)['with'](_0x57bd0a),{undoCache:_0x187fc7,redoCache:_0x225a4d}=_0x2a877f[_0xc154c5(0x34c)]();if(_0x187fc7[_0xc154c5(0x375)]===0x0||_0x225a4d[_0xc154c5(0x375)]===0x0)return;const _0x2498a7=[],_0x26959d=[];let _0x5118b1=_0x2fbfda[_0xc154c5(0x34e)](_0x2ca40d[_0xc154c5(0x1ec)][0x0]),_0x4baf34=_0x2fbfda[_0xc154c5(0x34e)](_0x2ca40d[_0xc154c5(0x1ec)][0x0]);for(let _0xca7224=_0x187fc7['length']-0x1;_0xca7224>=0x0;_0xca7224--){const _0x41fcf5={'id':_0xc154c5(0x12f),'params':{..._0x187fc7[_0xca7224]}},_0x1b3cb6={'id':_0xc154c5(0x12f),'params':{..._0x225a4d[_0xca7224]}},_0x3f1b3f=this[_0xc154c5(0x2f6)][_0xc154c5(0x1d9)](_0x5118b1,_0x41fcf5,!0x1),_0x4f014f=this[_0xc154c5(0x2f6)][_0xc154c5(0x1d9)](_0x4baf34,_0x1b3cb6,!0x1);if(_0xbfd48e(_0x3f1b3f))throw _0x3f1b3f[_0xc154c5(0x1f9)];if(_0xbfd48e(_0x4f014f))throw _0x4f014f[_0xc154c5(0x1f9)];_0x2498a7[_0xc154c5(0x174)](_0x3f1b3f['m2Prime'][_0xc154c5(0x19b)]),_0x26959d[_0xc154c5(0x174)](_0x4f014f[_0xc154c5(0x2cc)][_0xc154c5(0x19b)]),_0x5118b1=_0x3f1b3f[_0xc154c5(0x2f2)],_0x4baf34=_0x4f014f[_0xc154c5(0x2f2)];}_0x2a877f[_0xc154c5(0x1ca)]({'undoCache':_0x2498a7,'redoCache':_0x26959d});}['_transformPreviousActiveRange'](_0x4467b6){const _0x251f6f=_0x2d19ee,{unitID:_0x4601ff}=_0x4467b6,_0x183f85=this[_0x251f6f(0x23e)]['getRenderById'](_0x4601ff)[_0x251f6f(0x29a)](_0x57bd0a),_0x3284cb=_0x183f85['getActiveRange']();if(_0x3284cb==null)return;const _0x53a610=[{'id':_0x251f6f(0x12f),'params':{'unitId':_0x4467b6['unitID'],'actions':null,'textRanges':[_0x3284cb]}}],_0x49ef32=this['_transformService']['transformMutationsWithChangeset'](_0x4467b6,_0x53a610);if(!_0x1f1a8a(_0x49ef32))throw _0x49ef32[_0x251f6f(0x1f9)];const _0x5abd96=_0x49ef32[_0x251f6f(0x2cc)][0x0][_0x251f6f(0x19b)][_0x251f6f(0x2b5)];Array[_0x251f6f(0x1c8)](_0x5abd96)&&_0x5abd96['length']&&_0x183f85[_0x251f6f(0x18a)](_0x5abd96[0x0]);}};he=dn([lt(0x0,_0x3990fc),lt(0x1,_0x3e8801)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x590ceb,_0x375ddd,_0x16a7d4,_0x496cb6)=>{const _0x57c585=_0x2d19ee;for(var _0x5e1a43=_0x496cb6>0x1?void 0x0:_0x496cb6?Sn(_0x375ddd,_0x16a7d4):_0x375ddd,_0x1d33f9=_0x590ceb[_0x57c585(0x375)]-0x1,_0x57828c;_0x1d33f9>=0x0;_0x1d33f9--)(_0x57828c=_0x590ceb[_0x1d33f9])&&(_0x5e1a43=_0x57828c(_0x5e1a43)||_0x5e1a43);return _0x5e1a43;},Le=(_0x597f74,_0x2b0af8)=>(_0x458724,_0x5695e6)=>_0x2b0af8(_0x458724,_0x5695e6,_0x597f74);let ue=class{constructor(_0x52fc3b,_0x4819a0,_0x1d1358){const _0x2cacd1=_0x2d19ee;this['_injector']=_0x52fc3b,this[_0x2cacd1(0x2f6)]=_0x4819a0,this['_docStateChangeManagerService']=_0x1d1358;}[_0x2d19ee(0x325)](_0x5a7955){const _0x3929fb=_0x2d19ee;this[_0x3929fb(0x32e)](_0x5a7955);}[_0x2d19ee(0x210)](_0x42d9be){const _0x32def=_0x2d19ee,{unitID:_0x23398a}=_0x42d9be,{collaboration:_0x35af14}=this[_0x32def(0x2f0)][_0x32def(0x1dd)](_0x23398a);if(_0x35af14[_0x32def(0x375)]===0x0)return _0x42d9be;let _0x595e47=_0x2fbfda[_0x32def(0x34e)](_0x42d9be[_0x32def(0x1ec)][0x0]);for(let _0x3efe52=0x0;_0x3efe52<_0x35af14[_0x32def(0x375)];_0x3efe52++){const _0x34b620={'id':_0x32def(0x12f),'params':{'unitId':_0x35af14[_0x3efe52][_0x32def(0x352)],..._0x35af14[_0x3efe52]['redoState']}},_0x1598e4=this[_0x32def(0x2f6)]['transformMutation'](_0x595e47,_0x34b620,!0x1);if(_0xbfd48e(_0x1598e4))throw _0x1598e4[_0x32def(0x1f9)];_0x595e47=_0x1598e4[_0x32def(0x2f2)];}return{..._0x2fbfda[_0x32def(0x34e)](_0x42d9be),'mutations':[_0x595e47]};}[_0x2d19ee(0x32e)](_0x597f8f){const _0x192d1=_0x2d19ee,{unitID:_0x54231b}=_0x597f8f,{history:_0x3f92fe,collaboration:_0x4c5510}=this[_0x192d1(0x2f0)]['getStateCache'](_0x54231b);if(_0x3f92fe[_0x192d1(0x375)]===0x0&&_0x4c5510[_0x192d1(0x375)]===0x0)return;const _0xc73ca6=[],_0x1ff7c3=[];let _0x492ebf=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]),_0x4272ff=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]);for(let _0x263506=_0x3f92fe['length']-0x1;_0x263506>=0x0;_0x263506--){const _0x352fa3={'id':_0x192d1(0x12f),'params':{'unitId':_0x3f92fe[_0x263506][_0x192d1(0x352)],..._0x3f92fe[_0x263506][_0x192d1(0x14a)]}},_0x4bd09b={'id':_0x192d1(0x12f),'params':{'unitId':_0x3f92fe[_0x263506][_0x192d1(0x352)],..._0x3f92fe[_0x263506][_0x192d1(0x36e)]}},_0x3a6a97=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x492ebf,_0x352fa3,!0x1),_0x57beae=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x4272ff,_0x4bd09b,!0x1);if(_0xbfd48e(_0x3a6a97))throw _0x3a6a97['error'];if(_0xbfd48e(_0x57beae))throw _0x57beae[_0x192d1(0x1f9)];_0xc73ca6['unshift']({..._0x3f92fe[_0x263506],'undoState':_0x3a6a97[_0x192d1(0x2cc)][_0x192d1(0x19b)],'redoState':_0x57beae[_0x192d1(0x2cc)][_0x192d1(0x19b)]}),_0x492ebf=_0x3a6a97[_0x192d1(0x2f2)],_0x4272ff=_0x57beae[_0x192d1(0x2f2)];}_0x492ebf=_0x2fbfda[_0x192d1(0x34e)](_0x597f8f[_0x192d1(0x1ec)][0x0]),_0x4272ff=_0x2fbfda['deepClone'](_0x597f8f['mutations'][0x0]);for(let _0x3c63e4=_0x4c5510[_0x192d1(0x375)]-0x1;_0x3c63e4>=0x0;_0x3c63e4--){const _0x888d36={'id':_0x192d1(0x12f),'params':{'unitId':_0x4c5510[_0x3c63e4][_0x192d1(0x352)],..._0x4c5510[_0x3c63e4][_0x192d1(0x14a)]}},_0x3c2ba2={'id':_0x192d1(0x12f),'params':{'unitId':_0x4c5510[_0x3c63e4][_0x192d1(0x352)],..._0x4c5510[_0x3c63e4]['redoState']}},_0x3aab40=this[_0x192d1(0x2f6)]['transformMutation'](_0x492ebf,_0x888d36,!0x1),_0x5624cb=this[_0x192d1(0x2f6)][_0x192d1(0x1d9)](_0x4272ff,_0x3c2ba2,!0x1);if(_0xbfd48e(_0x3aab40))throw _0x3aab40[_0x192d1(0x1f9)];if(_0xbfd48e(_0x5624cb))throw _0x5624cb[_0x192d1(0x1f9)];_0x1ff7c3[_0x192d1(0x174)]({..._0x4c5510[_0x3c63e4],'undoState':_0x3aab40[_0x192d1(0x2cc)][_0x192d1(0x19b)],'redoState':_0x5624cb[_0x192d1(0x2cc)][_0x192d1(0x19b)]}),_0x492ebf=_0x3aab40['m1Prime'],_0x4272ff=_0x5624cb[_0x192d1(0x2f2)];}this[_0x192d1(0x2f0)]['setStateCache'](_0x54231b,{'history':_0xc73ca6,'collaboration':_0x1ff7c3});}};ue=In([Le(0x0,_0x13e3c7(_0x6717c8)),Le(0x1,_0x3990fc),Le(0x2,_0x13e3c7(_0x7528bc))],ue);var mn=Object[_0x2d19ee(0x2a7)],fn=(_0x9cd1c1,_0x233171,_0x4f108c,_0xb3ce5f)=>{for(var _0x4d979b=_0xb3ce5f>0x1?void 0x0:_0xb3ce5f?mn(_0x233171,_0x4f108c):_0x233171,_0x593d0d=_0x9cd1c1['length']-0x1,_0x57cbb3;_0x593d0d>=0x0;_0x593d0d--)(_0x57cbb3=_0x9cd1c1[_0x593d0d])&&(_0x4d979b=_0x57cbb3(_0x4d979b)||_0x4d979b);return _0x4d979b;},ht=(_0x15f2be,_0x576101)=>(_0x3cc277,_0x305094)=>_0x576101(_0x3cc277,_0x305094,_0x15f2be);let de=class{constructor(_0x4a170c,_0x133bdc){const _0x4e78ec=_0x2d19ee;this[_0x4e78ec(0x2b2)]=_0x4a170c,this[_0x4e78ec(0x2f6)]=_0x133bdc;}[_0x2d19ee(0x323)](_0x208d0f){const _0x362ae7=_0x2d19ee;var _0x22ef8c;const _0x1b2c54=this['_injector'][_0x362ae7(0x1a4)](_0x318e9f),_0x4b47ac=(_0x22ef8c=_0x1b2c54[_0x362ae7(0x29f)]())!=null?_0x22ef8c:[];if(_0x4b47ac[_0x362ae7(0x375)]===0x0)return;const _0x26977c=_0x208d0f[_0x362ae7(0x369)],_0x3d5eac=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26977c,'actions':null,'textRanges':_0x4b47ac}}],_0x3084ab=this[_0x362ae7(0x2f6)][_0x362ae7(0x22e)](_0x208d0f,_0x3d5eac);if(!_0x1f1a8a(_0x3084ab))throw _0x3084ab['error'];const _0x587d1a=_0x3084ab[_0x362ae7(0x2cc)][0x0][_0x362ae7(0x19b)][_0x362ae7(0x2b5)];Array[_0x362ae7(0x1c8)](_0x587d1a)&&_0x587d1a[_0x362ae7(0x375)]&&_0x1b2c54['replaceDocRanges'](_0x587d1a,{'unitId':_0x26977c,'subUnitId':_0x26977c},!0x1);}};de=fn([ht(0x0,_0x13e3c7(_0x6717c8)),ht(0x1,_0x3990fc)],de);var gn=Object[_0x2d19ee(0x2a7)],En=(_0x29f24d,_0x43cb46,_0x268fe2,_0x313bae)=>{const _0x2b84c0=_0x2d19ee;for(var _0x2cd900=_0x313bae>0x1?void 0x0:_0x313bae?gn(_0x43cb46,_0x268fe2):_0x43cb46,_0x889780=_0x29f24d[_0x2b84c0(0x375)]-0x1,_0x17a722;_0x889780>=0x0;_0x889780--)(_0x17a722=_0x29f24d[_0x889780])&&(_0x2cd900=_0x17a722(_0x2cd900)||_0x2cd900);return _0x2cd900;},U=(_0x4a7c76,_0xd5897b)=>(_0x2de368,_0x3adc1f)=>_0xd5897b(_0x2de368,_0x3adc1f,_0x4a7c76);let Se=class extends _0x55618d{constructor(_0x687429,_0x5f3e19,_0xdc1337,_0x3b9833,_0x5c4211,_0x4109c8,_0xa97e7a,_0x339a53){const _0x5b85b3=_0x2d19ee;super(),_(this,_0x5b85b3(0x2d7),new _0x5689a5(_0x14e54a[_0x5b85b3(0x130)])),(this[_0x5b85b3(0x2f0)]=_0x687429,this[_0x5b85b3(0x156)]=_0x5f3e19,this['_docTransformIMECacheService']=_0xdc1337,this['_docTransformStateCacheService']=_0x3b9833,this['_docTransformSelectionsService']=_0x5c4211,this[_0x5b85b3(0x328)]=_0x4109c8,this['_messageService']=_0xa97e7a,this[_0x5b85b3(0x2ea)]=_0x339a53,this['_initEntityListener']());}[_0x2d19ee(0x236)](){const _0x1aa2c2=_0x2d19ee;this['disposeWithMe'](this[_0x1aa2c2(0x156)][_0x1aa2c2(0x27c)][_0x1aa2c2(0x150)](_0x564ed5=>{const _0x999348=_0x1aa2c2,_0x2bf5a6=this[_0x999348(0x2f0)][_0x999348(0x2c5)][_0x999348(0x150)](_0x72ece0=>{const _0x554c91=_0x999348;if(_0x72ece0==null)return;const {unitId:_0x546ca3,redoState:_0x5f0d0a,commandId:_0xfeea51}=_0x72ece0;if(_0x546ca3!==_0x564ed5[_0x554c91(0x369)])return;const _0xd733f={'id':_0xfeea51,'type':_0x569143[_0x554c91(0x340)],'params':{'unitId':_0x546ca3,'actions':_0x5f0d0a[_0x554c91(0x262)],'textRanges':null}};_0x564ed5[_0x554c91(0x33f)](_0xd733f);});if(_0x564ed5[_0x999348(0x1b6)](_0x2bf5a6),_0x564ed5 instanceof _0x5da887){const _0xf5f721={'onTransformIME':_0x193415=>this[_0x999348(0x31e)][_0x999348(0x182)](_0x193415),'onTransformState':_0x388489=>this[_0x999348(0x1fa)][_0x999348(0x325)](_0x388489),'onTransformSelections':_0xb6bc5c=>this[_0x999348(0x333)]['transformSelections'](_0xb6bc5c),'onSyncEditingCollabCursor':_0x52d1aa=>this[_0x999348(0x328)]['syncEditingCollabCursor'](_0x52d1aa),'onTransformRemoteChangesetByIMECache':_0x4d20d4=>this[_0x999348(0x31e)][_0x999348(0x210)](_0x4d20d4),'onTransformRemoteChangesetByStateCache':_0x293d71=>this[_0x999348(0x1fa)][_0x999348(0x210)](_0x293d71)};_0x564ed5[_0x999348(0x142)](_0xf5f721);}}));}};Se=En([U(0x0,_0x13e3c7(_0x7528bc)),U(0x1,_0x13e3c7(_0x151f08)),U(0x2,_0x13e3c7(he)),U(0x3,_0x13e3c7(ue)),U(0x4,_0x13e3c7(de)),U(0x5,_0x13e3c7(ze)),U(0x6,_0x551408),U(0x7,_0x13e3c7(_0x548920))],Se);var Z=(_0x5c5bee=>(_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1cd)]=0x0]='UNDEFINED',_0x5c5bee[_0x5c5bee['OK']=0x1]='OK',_0x5c5bee[_0x5c5bee['INTERNAL_ERROR']=0x2]=_0x2d19ee(0x2dd),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2f5)]=0x3]=_0x2d19ee(0x2f5),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x310)]=0x4]='NOT_FOUND',_0x5c5bee[_0x5c5bee['UNAUTHENTICATED']=0x5]=_0x2d19ee(0x2d6),_0x5c5bee[_0x5c5bee['ALREADY_EXISTS']=0x6]=_0x2d19ee(0x178),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x17a)]=0x7]=_0x2d19ee(0x17a),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x158)]=0x8]=_0x2d19ee(0x158),_0x5c5bee[_0x5c5bee['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x37d)]=0xa]=_0x2d19ee(0x37d),_0x5c5bee[_0x5c5bee['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x2d19ee(0x233),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2f4)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2cd)]=0xd]=_0x2d19ee(0x2cd),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x25d)]=0xe]=_0x2d19ee(0x25d),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a6)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x153)]=0x10]=_0x2d19ee(0x153),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1df)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x35d)]=0x65]=_0x2d19ee(0x35d),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2b4)]=0xc9]=_0x2d19ee(0x2b4),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x277)]=0xca]=_0x2d19ee(0x277),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x192)]=0x1389]=_0x2d19ee(0x192),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2fd)]=0x1771]=_0x2d19ee(0x2fd),_0x5c5bee[_0x5c5bee['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x383)]=0x1773]=_0x2d19ee(0x383),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a1)]=0x1b59]=_0x2d19ee(0x1a1),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x26c)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x180)]=0x1b5b]=_0x2d19ee(0x180),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x177)]=0x1b5c]=_0x2d19ee(0x177),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x13c)]=0x1b5d]=_0x2d19ee(0x13c),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x294)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1c0)]=0x2329]=_0x2d19ee(0x1c0),_0x5c5bee[_0x5c5bee['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2d19ee(0x382),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x31d)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x269)]=0x232c]=_0x2d19ee(0x269),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x326)]=0x232d]=_0x2d19ee(0x326),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1e4)]=0x2711]=_0x2d19ee(0x1e4),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2ba)]=0x2712]=_0x2d19ee(0x2ba),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1d3)]=0x2713]=_0x2d19ee(0x1d3),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x140)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1ce)]=0x271a]=_0x2d19ee(0x1ce),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2ff)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x1a0)]=0x271c]=_0x2d19ee(0x1a0),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x203)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5c5bee[_0x5c5bee['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x2d19ee(0x2e3),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x14e)]=0x271f]=_0x2d19ee(0x14e),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x214)]=0x2720]=_0x2d19ee(0x214),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x361)]=0x2af9]=_0x2d19ee(0x361),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x197)]=0x2ee1]=_0x2d19ee(0x197),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x189)]=0x2ee2]='INVALID_INVITE_CODE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x327)]=0x2ee3]=_0x2d19ee(0x327),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x279)]=0x2ee4]=_0x2d19ee(0x279),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x250)]=0x2ee5]=_0x2d19ee(0x250),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x176)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x21b)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2fc)]=0x36b1]=_0x2d19ee(0x2fc),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x200)]=0x36b2]=_0x2d19ee(0x200),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x287)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2c8)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x288)]=0x36b5]=_0x2d19ee(0x288),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x35b)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x15f)]=0x36b7]=_0x2d19ee(0x15f),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x272)]=0x36b8]=_0x2d19ee(0x272),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x23a)]=0x3715]=_0x2d19ee(0x23a),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2a0)]=0x3716]=_0x2d19ee(0x2a0),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x343)]=0x3717]=_0x2d19ee(0x343),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x266)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x190)]=0x3a99]=_0x2d19ee(0x190),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x18b)]=0x3a9a]=_0x2d19ee(0x18b),_0x5c5bee[_0x5c5bee['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x2d19ee(0x13e),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x332)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x20e)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2bb)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x5c5bee[_0x5c5bee[_0x2d19ee(0x256)]=0x3a9f]=_0x2d19ee(0x256),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x30b)]=0x3e81]=_0x2d19ee(0x30b),_0x5c5bee[_0x5c5bee[_0x2d19ee(0x2d8)]=-0x1]=_0x2d19ee(0x2d8),_0x5c5bee))(Z||{});function vn(_0x2b4667){const _0x23881d=_0x2d19ee;var _0x208e70,_0x465e35;const _0x8c0661=(_0x208e70=_0x2b4667['stageInfo'])==null?void 0x0:_0x208e70[_0x23881d(0x36f)],_0x57f057=((_0x465e35=_0x2b4667['stageInfo'])==null?void 0x0:_0x465e35[_0x23881d(0x1a5)])||0x0;return _0x8c0661===_0x5d8674[_0x23881d(0x313)]&&_0x57f057>0x0;}function pn(_0x256f3d){const _0x275ed7=_0x2d19ee;return _0x256f3d['functionsExecutedState']===_0x2ae0c4[_0x275ed7(0x2f8)];}var On=Object[_0x2d19ee(0x2a7)],Tn=(_0x4e4a70,_0x418883,_0x5f2d82,_0x410715)=>{const _0x775fb1=_0x2d19ee;for(var _0x57197f=_0x410715>0x1?void 0x0:_0x410715?On(_0x418883,_0x5f2d82):_0x418883,_0x367f93=_0x4e4a70[_0x775fb1(0x375)]-0x1,_0x24e8af;_0x367f93>=0x0;_0x367f93--)(_0x24e8af=_0x4e4a70[_0x367f93])&&(_0x57197f=_0x24e8af(_0x57197f)||_0x57197f);return _0x57197f;},P=(_0x208601,_0x1cec2d)=>(_0x319a87,_0xb1bca9)=>_0x1cec2d(_0x319a87,_0xb1bca9,_0x208601);const Cn='/universer-api/license/formula/limit/status',Rn='/universer-api/license/formula/limit/start',Dn='/universer-api/license/formula/limit/done';let Ie=class extends _0x55618d{constructor(_0xcc6e53,_0x4d7258,_0x3e567e,_0x4e1d6d,_0x3ae3ac,_0x512a99,_0x5c15de){const _0x17aaf0=_0x2d19ee;super(),_(this,'_pollingInterval',null),_(this,_0x17aaf0(0x18d),0x0),_(this,_0x17aaf0(0x29d),0x0),_(this,'_taskIds',[]),_(this,_0x17aaf0(0x137),0x0),(this[_0x17aaf0(0x16f)]=_0xcc6e53,this[_0x17aaf0(0x162)]=_0x4d7258,this[_0x17aaf0(0x13a)]=_0x3e567e,this['_httpService']=_0x4e1d6d,this['_univerInstanceService']=_0x3ae3ac,this['_logService']=_0x512a99,this[_0x17aaf0(0x2ea)]=_0x5c15de,this[_0x17aaf0(0x335)]());}[_0x2d19ee(0x335)](){const _0x35c0ca=_0x2d19ee;this[_0x35c0ca(0x1b6)](this[_0x35c0ca(0x162)]['beforeCommandExecuted']((_0x4094e9,_0x55d8ab)=>{const _0x433236=_0x35c0ca;var _0x38bcf0;if(_0x4094e9['id']!==_0x4f8fdb['id'])return;const _0x101d97=_0x4094e9[_0x433236(0x19b)];if(!this[_0x433236(0x380)]((_0x38bcf0=_0x101d97[_0x433236(0x231)])!=null?_0x38bcf0:[]))return;if(!this[_0x433236(0x36a)]())throw this[_0x433236(0x1c6)](_0x4094e9,_0x55d8ab),this[_0x433236(0x146)](),new _0x1dbb9e();})),this[_0x35c0ca(0x1b6)](this[_0x35c0ca(0x162)][_0x35c0ca(0x21e)]((_0x34953d,_0x36f5b6)=>{const _0x961d0=_0x35c0ca;if(_0x34953d['id']!==_0x33cc11['id'])return;const _0xf38736=_0x34953d['params'];if(vn(_0xf38736)){const _0x1264a4=_0x377b4b();this['_taskIds']['push'](_0x1264a4),this[_0x961d0(0x1d0)](_0x1264a4);}else{if(pn(_0xf38736)&&this['_taskIds'][_0x961d0(0x375)]>0x0){const _0x1c5fc0=this['_taskIds'][_0x961d0(0x289)]();this[_0x961d0(0x320)](_0x1c5fc0);}}}));}[_0x2d19ee(0x2cf)](){const _0x472e42=_0x2d19ee;super[_0x472e42(0x2cf)](),this[_0x472e42(0x318)](),this[_0x472e42(0x384)]=[],this[_0x472e42(0x29d)]=0x0,this[_0x472e42(0x18d)]=0x0,this[_0x472e42(0x137)]=0x0;}async[_0x2d19ee(0x1c6)](_0x1f84f0,_0x1974df){const _0x23506c=_0x2d19ee;for(let _0x24729b=0x0;_0x24729b<0x1e;_0x24729b++)try{if(await this[_0x23506c(0x37a)](),this[_0x23506c(0x36a)]()){this['_applyCommand'](_0x1f84f0,_0x1974df),this[_0x23506c(0x16f)][_0x23506c(0x14b)]({'content':this[_0x23506c(0x2ea)]['t']('formula.calculation.started'),'type':_0xe3500e['Success']});return;}await new Promise(_0x16f281=>{const _0x5b94a5=_0x23506c;this[_0x5b94a5(0x17c)]=window['setTimeout'](_0x16f281,0x3e8);});}catch(_0x44fadf){this[_0x23506c(0x244)][_0x23506c(0x1f9)](_0x44fadf);}this[_0x23506c(0x16f)][_0x23506c(0x14b)]({'content':this['_localeService']['t'](_0x23506c(0x2c6)),'type':_0xe3500e[_0x23506c(0x185)]});}[_0x2d19ee(0x1ee)](_0xa2832a,_0x42294e){const _0x575c49=_0x2d19ee;try{this['_commandService'][_0x575c49(0x16a)](_0xa2832a['id'],_0xa2832a[_0x575c49(0x19b)],_0x42294e);}catch(_0x35329a){this['_logService'][_0x575c49(0x1f9)](_0x35329a);}}[_0x2d19ee(0x286)](_0x3d89d6,_0x2a4ba7){const _0x2ec63b=_0x2d19ee;_0x2a4ba7<this[_0x2ec63b(0x137)]||(this[_0x2ec63b(0x137)]=_0x2a4ba7,this[_0x2ec63b(0x18d)]=Number[_0x2ec63b(0x2ec)](_0x3d89d6[_0x2ec63b(0x254)]),this[_0x2ec63b(0x29d)]=Number[_0x2ec63b(0x2ec)](_0x3d89d6[_0x2ec63b(0x14d)]));}async[_0x2d19ee(0x1d0)](_0x488007){const _0x2f31bb=_0x2d19ee;var _0x176a45,_0x2a3f50;const _0x2f983e=Date[_0x2f31bb(0x1ea)]();try{const _0x12f937=((_0x176a45=this[_0x2f31bb(0x13a)]['getConfig'](_0x189603))==null?void 0x0:_0x176a45[_0x2f31bb(0x173)])||Rn,_0x1ecd2d=(await this[_0x2f31bb(0x26e)][_0x2f31bb(0x264)](_0x12f937,{'body':JSON[_0x2f31bb(0x32a)]({'taskId':_0x488007})}))['body'];if(((_0x2a3f50=_0x1ecd2d['error'])==null?void 0x0:_0x2a3f50[_0x2f31bb(0x22c)])!==Z['OK'])return;this[_0x2f31bb(0x286)](_0x1ecd2d[_0x2f31bb(0x2f3)],_0x2f983e);}catch(_0x32531b){this[_0x2f31bb(0x244)][_0x2f31bb(0x1f9)](_0x32531b);}}async[_0x2d19ee(0x37a)](_0x248b86){const _0xfb0003=_0x2d19ee;var _0x3ee818,_0x5e2886;const _0x58ccdf=Date[_0xfb0003(0x1ea)]();try{const _0x4044a3=((_0x3ee818=this[_0xfb0003(0x13a)][_0xfb0003(0x195)](_0x189603))==null?void 0x0:_0x3ee818[_0xfb0003(0x2e5)])||Cn,_0x5193a8=_0x248b86?_0x4044a3+'?taskId='+encodeURIComponent(_0x248b86):_0x4044a3,_0x41c7d0=(await this['_httpService']['get'](_0x5193a8))[_0xfb0003(0x285)];if(((_0x5e2886=_0x41c7d0[_0xfb0003(0x1f9)])==null?void 0x0:_0x5e2886[_0xfb0003(0x22c)])!==Z['OK'])return;this['_setFormulaLimitStatus'](_0x41c7d0[_0xfb0003(0x2f3)],_0x58ccdf);}catch(_0x4677d9){this['_logService'][_0xfb0003(0x1f9)](_0x4677d9);}}async[_0x2d19ee(0x320)](_0x19825b){const _0x5774a9=_0x2d19ee;var _0x346db3,_0x48c78a;const _0x4670d1=Date[_0x5774a9(0x1ea)]();try{const _0xa1109e=((_0x346db3=this[_0x5774a9(0x13a)][_0x5774a9(0x195)](_0x189603))==null?void 0x0:_0x346db3[_0x5774a9(0x29e)])||Dn,_0x2a4fde=(await this[_0x5774a9(0x26e)]['post'](_0xa1109e,{'body':JSON[_0x5774a9(0x32a)]({'taskId':_0x19825b})}))[_0x5774a9(0x285)];if(((_0x48c78a=_0x2a4fde['error'])==null?void 0x0:_0x48c78a[_0x5774a9(0x22c)])!==Z['OK'])return;this[_0x5774a9(0x286)](_0x2a4fde[_0x5774a9(0x2f3)],_0x4670d1);}catch(_0x3e48aa){this['_logService'][_0x5774a9(0x1f9)](_0x3e48aa);}}[_0x2d19ee(0x36a)](){const _0x2faf7f=_0x2d19ee;return this[_0x2faf7f(0x18d)]===0x0?!0x0:this[_0x2faf7f(0x18d)]-this[_0x2faf7f(0x29d)]>0x0;}['_clearPolling'](){const _0x5836d1=_0x2d19ee;this[_0x5836d1(0x17c)]&&(clearTimeout(this[_0x5836d1(0x17c)]),this['_pollingInterval']=null);}[_0x2d19ee(0x146)](){const _0x29d7bd=_0x2d19ee;this[_0x29d7bd(0x16f)][_0x29d7bd(0x14b)]({'content':this[_0x29d7bd(0x2ea)]['t'](_0x29d7bd(0x1c4)),'type':_0xe3500e['Loading']});}[_0x2d19ee(0x380)](_0x1679f7){const _0x303311=_0x2d19ee;for(const _0x315506 of _0x1679f7){const {unitId:_0x5f2717,sheetId:_0x534efb,range:_0x830391}=_0x315506,_0x5826c2=this['_univerInstanceService']['getUnit'](_0x5f2717);if(!_0x5826c2)continue;const _0x5c9e7b=_0x5826c2[_0x303311(0x275)](_0x534efb);if(!_0x5c9e7b)continue;const _0x2a4045=_0x5c9e7b[_0x303311(0x1cb)]();for(let _0xb3b960=_0x830391[_0x303311(0x163)];_0xb3b960<=_0x830391[_0x303311(0x355)];_0xb3b960++)for(let _0x4ff9c8=_0x830391[_0x303311(0x309)];_0x4ff9c8<=_0x830391[_0x303311(0x35e)];_0x4ff9c8++){const _0x3074d2=_0x2a4045[_0x303311(0x378)](_0xb3b960,_0x4ff9c8);if(_0x3074d2&&(_0x14248c(_0x3074d2['f'])||_0xcdcb23(_0x3074d2['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x13e3c7(_0x551408)),P(0x1,_0x44deef),P(0x2,_0x46a8a4),P(0x3,_0x13e3c7(_0x58299b)),P(0x4,_0x5ea64d),P(0x5,_0x2bfead),P(0x6,_0x13e3c7(_0x548920))],Ie);var Nn=Object[_0x2d19ee(0x2a7)],bn=(_0x4e12cf,_0x591555,_0xe4e293,_0x2c8e13)=>{const _0x4fdefe=_0x2d19ee;for(var _0x189c67=_0x2c8e13>0x1?void 0x0:_0x2c8e13?Nn(_0x591555,_0xe4e293):_0x591555,_0x567279=_0x4e12cf[_0x4fdefe(0x375)]-0x1,_0x598bca;_0x567279>=0x0;_0x567279--)(_0x598bca=_0x4e12cf[_0x567279])&&(_0x189c67=_0x598bca(_0x189c67)||_0x189c67);return _0x189c67;},Ue=(_0x135334,_0x27e192)=>(_0x7d8942,_0x5a0c44)=>_0x27e192(_0x7d8942,_0x5a0c44,_0x135334);let He=class extends _0x55618d{constructor(_0x2d3b65,_0x55991d,_0x5d0a6f){const _0x3e7f39=_0x2d19ee;super(),_(this,_0x3e7f39(0x2c4),new Map()),_(this,_0x3e7f39(0x245),new Map()),_(this,_0x3e7f39(0x298),!0x1),(this[_0x3e7f39(0x13a)]=_0x2d3b65,this[_0x3e7f39(0x374)]=_0x55991d,this['_revisionService']=_0x5d0a6f);}[_0x2d19ee(0x16c)](){this['_disabled']=!0x0;}[_0x2d19ee(0x204)](){const _0x389f98=_0x2d19ee;this[_0x389f98(0x298)]=!0x1;}get[_0x2d19ee(0x134)](){const _0x41a64e=_0x2d19ee;return this[_0x41a64e(0x245)];}['dispose'](){const _0x2d50bf=_0x2d19ee;this[_0x2d50bf(0x219)]()['then'](()=>super['dispose']());}async[_0x2d19ee(0x282)](_0x9bedd8){const _0x296fdd=_0x2d19ee;return this[_0x296fdd(0x298)]?null:this['_localStorageService']['getItem'](_0x5850c1(_0x9bedd8));}async[_0x2d19ee(0x373)](_0x2e8cff,_0x4fbe21){const _0x298b2c=_0x2d19ee;return!!this[_0x298b2c(0x374)][_0x298b2c(0x290)](_0x2e8cff,_0x4fbe21);}['updateOfflineData'](_0x3939cb,_0x3043a1,_0x72d43d,_0x281327){const _0x175766=_0x2d19ee,_0x3e73ca=this[_0x175766(0x1c2)][_0x175766(0x227)](_0x3939cb);this[_0x175766(0x2c4)]['set'](_0x3939cb,{'unitID':_0x3939cb,'type':_0x3043a1,'awaitingChangeset':_0x72d43d,'mutations':_0x281327,'rev':_0x3e73ca}),this[_0x175766(0x245)]['has'](_0x3939cb)||this[_0x175766(0x24b)](_0x3939cb);}[_0x2d19ee(0x24b)](_0x51bf2c){const _0x3e5628=_0x2d19ee,_0x386960=this[_0x3e5628(0x30e)]();_0x386960===0x0?this[_0x3e5628(0x27e)](_0x51bf2c):this[_0x3e5628(0x245)][_0x3e5628(0x165)](_0x51bf2c,setTimeout(()=>this[_0x3e5628(0x27e)](_0x51bf2c),_0x386960));}[_0x2d19ee(0x30e)](){const _0x585e4c=_0x2d19ee;var _0x126c8d;return(_0x126c8d=this['_configService'][_0x585e4c(0x195)](_0x3d4cf4))!=null?_0x126c8d:_0x9823a9;}[_0x2d19ee(0x27e)](_0x340be8){const _0x296c6b=_0x2d19ee,_0x3ee3db=this[_0x296c6b(0x245)]['get'](_0x340be8);return _0x3ee3db!==void 0x0&&window[_0x296c6b(0x31a)](_0x3ee3db),this['_localStorageService'][_0x296c6b(0x290)](_0x5850c1(_0x340be8),this['_cachedData'][_0x296c6b(0x1a4)](_0x340be8))['then'](()=>this[_0x296c6b(0x245)]['delete'](_0x340be8));}async[_0x2d19ee(0x219)](){const _0x3b6a95=_0x2d19ee,_0x5987bb=[];this[_0x3b6a95(0x245)][_0x3b6a95(0x136)]((_0x29cf69,_0x1d223c)=>{const _0x296d15=_0x3b6a95;window[_0x296d15(0x31a)](_0x29cf69),_0x5987bb[_0x296d15(0x1bb)](this[_0x296d15(0x27e)](_0x1d223c)[_0x296d15(0x1b7)](()=>{const _0x541c5e=_0x296d15;this[_0x541c5e(0x245)]['delete'](_0x1d223c);}));}),await Promise[_0x3b6a95(0x14c)](_0x5987bb);}};He=bn([Ue(0x0,_0x46a8a4),Ue(0x1,_0x12194a),Ue(0x2,_0x13e3c7(_0x1c8bce))],He);class Ln extends _0x5b8c04{constructor(){const _0x5472f4=_0x2d19ee;super(),_(this,_0x5472f4(0x34f)),this[_0x5472f4(0x34f)]=_0x197cc9(window,'popstate')[_0x5472f4(0x359)](_0xefe94(this[_0x5472f4(0x339)]),_0x240f5f(0x1),_0x11e4f1(void 0x0));}[_0x2d19ee(0x1f6)](_0x197f8a,_0x8c19c4,_0x1d6ea1=!0x1){const _0x212600=_0x2d19ee,_0x492818=new URL(window[_0x212600(0x1f3)]['href']);_0x492818[_0x212600(0x2e7)]['set'](_0x197f8a,_0x8c19c4),_0x1d6ea1?window[_0x212600(0x1bd)][_0x212600(0x1d2)]('','',_0x492818[_0x212600(0x202)]()):window[_0x212600(0x1bd)]['pushState']('','',_0x492818[_0x212600(0x202)]());}[_0x2d19ee(0x260)](_0x3335e7,_0x552081=!0x1){const _0x278315=_0x2d19ee,_0x63faa=new URL(window[_0x278315(0x1f3)]['href']);_0x63faa['searchParams'][_0x278315(0x20a)](_0x3335e7),_0x552081?window[_0x278315(0x1bd)][_0x278315(0x1d2)]('','',_0x63faa[_0x278315(0x202)]()):window['history'][_0x278315(0x24e)]('','',_0x63faa[_0x278315(0x202)]());}[_0x2d19ee(0x172)](_0x2e6620){const _0x2ce507=_0x2d19ee;var _0xe5443b;return(_0xe5443b=new URL(window[_0x2ce507(0x1f3)][_0x2ce507(0x226)])['searchParams'][_0x2ce507(0x1a4)](_0x2e6620))!=null?_0xe5443b:void 0x0;}}var Un=Object[_0x2d19ee(0x18c)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x8b4961,_0x37524b,_0x1c0475)=>_0x37524b in _0x8b4961?Un(_0x8b4961,_0x37524b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c0475}):_0x8b4961[_0x37524b]=_0x1c0475,Pn=(_0xca2858,_0xa3910f,_0x51b750,_0x2a05e7)=>{for(var _0x22df6a=_0x2a05e7>0x1?void 0x0:_0x2a05e7?Mn(_0xa3910f,_0x51b750):_0xa3910f,_0x50c4f1=_0xca2858['length']-0x1,_0x9ca1b7;_0x50c4f1>=0x0;_0x50c4f1--)(_0x9ca1b7=_0xca2858[_0x50c4f1])&&(_0x22df6a=_0x9ca1b7(_0x22df6a)||_0x22df6a);return _0x22df6a;},Me=(_0xb87721,_0x3925dc)=>(_0x48ee5a,_0xf9df4f)=>_0x3925dc(_0x48ee5a,_0xf9df4f,_0xb87721),wn=(_0x4fa227,_0x2913f8,_0x2c9dfb)=>An(_0x4fa227,_0x2913f8+'',_0x2c9dfb);const yn=_0x2d19ee(0x2c7);let Ye=class extends _0x3c443e{constructor(_0x4071f0=_t,_0x3d63ab,_0x574f6b,_0x2f1969){const _0x39e09b=_0x2d19ee;super(),this[_0x39e09b(0x2a3)]=_0x4071f0,this[_0x39e09b(0x23e)]=_0x3d63ab,this[_0x39e09b(0x2b2)]=_0x574f6b,this[_0x39e09b(0x13a)]=_0x2f1969;const {..._0x21f80d}=_0x2b7521({},_t,this[_0x39e09b(0x2a3)]);this[_0x39e09b(0x13a)][_0x39e09b(0x263)](hn,_0x21f80d);}[_0x2d19ee(0x2b9)](){const _0x232373=_0x2d19ee;this['_registerDependencies'](),this[_0x232373(0x253)]();}[_0x2d19ee(0x13d)](){const _0x30d1e4=_0x2d19ee;this[_0x30d1e4(0x2fe)]();}[_0x2d19ee(0x239)](){const _0x126b6c=_0x2d19ee;var _0x5f44d9;const _0x3a56e1=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x8a83ca,{'useClass':_0x1d6857}],[_0x26b1ca,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x126b6c(0x2a3)]['enableFrontendLog']&&_0x3a56e1[_0x126b6c(0x1bb)]([le]),_0x2c2aad(this[_0x126b6c(0x2b2)],_0x3b0ae8(_0x3a56e1,(_0x5f44d9=this[_0x126b6c(0x2a3)])==null?void 0x0:_0x5f44d9[_0x126b6c(0x15c)]));}[_0x2d19ee(0x2fe)](){const _0x3f6b56=_0x2d19ee;this[_0x3f6b56(0x1b6)](this[_0x3f6b56(0x23e)][_0x3f6b56(0x237)](_0x1de887['UNIVER_DOC'],[Fe])),this[_0x3f6b56(0x1b6)](this[_0x3f6b56(0x23e)][_0x3f6b56(0x237)](_0x1de887[_0x3f6b56(0x225)],[ke]));}[_0x2d19ee(0x253)](){const _0x4dc292=_0x2d19ee;_0x248c4c(this[_0x4dc292(0x2b2)],[[H],[ae],[Se],[_e],[ce],[Ie]]),this['_config']['enableFrontendLog']&&_0x248c4c(this['_injector'],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x3f4a8a(_0x3b5370),Me(0x1,_0x3e8801),Me(0x2,_0x13e3c7(_0x6717c8)),Me(0x3,_0x46a8a4)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x318c35,_0x515852,_0xff9462,_0x5f3898)=>{const _0x13d982=_0x2d19ee;for(var _0x21fea2=_0x5f3898>0x1?void 0x0:_0x5f3898?$n(_0x515852,_0xff9462):_0x515852,_0xcf615=_0x318c35[_0x13d982(0x375)]-0x1,_0x266341;_0xcf615>=0x0;_0xcf615--)(_0x266341=_0x318c35[_0xcf615])&&(_0x21fea2=_0x266341(_0x21fea2)||_0x21fea2);return _0x21fea2;},J=(_0x519a48,_0x47e511)=>(_0x237372,_0x5d70d5)=>_0x47e511(_0x237372,_0x5d70d5,_0x519a48);let ut=class extends _0x1caedd{constructor(_0x425599,_0x409021,_0x382d95,_0x230b83,_0x5f0a2a){super(_0x425599,_0x409021,_0x382d95,_0x230b83,_0x5f0a2a);}async['createSocket'](_0x1d62b1){const _0x197c04=_0x2d19ee,_0x1adc14=await this[_0x197c04(0x36c)](),_0x4fbeff=this[_0x197c04(0x22d)](_0x1d62b1,_0x1adc14);return this[_0x197c04(0x37b)](_0x4fbeff);}[_0x2d19ee(0x22d)](_0x383529,_0x346137){const _0xe22fd9=_0x2d19ee,_0x498321=typeof window>'u'?new URL(_0x383529):new URL(_0x383529,window[_0xe22fd9(0x1f3)][_0xe22fd9(0x307)]);_0x498321['searchParams'][_0xe22fd9(0x165)](_0xe22fd9(0x24a),_0x346137);const _0x1ba993=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0xe22fd9(0x1f3)][_0xe22fd9(0x353)]);return _0x1ba993[_0xe22fd9(0x1a4)]('runId')&&_0x498321[_0xe22fd9(0x2e7)][_0xe22fd9(0x165)]('runId',_0x1ba993[_0xe22fd9(0x1a4)]('runId')),_0x498321[_0xe22fd9(0x202)]();}async[_0x2d19ee(0x36c)](){const _0x5cb196=_0x2d19ee;var _0x28e325,_0x47b39c,_0x14b4c2;const _0x21f1ea=this[_0x5cb196(0x13a)][_0x5cb196(0x195)](_0x189603),_0x486695=(_0x28e325=_0x21f1ea==null?void 0x0:_0x21f1ea[_0x5cb196(0x2fb)])!=null?_0x28e325:_0x3e7782;return(_0x14b4c2=(_0x47b39c=(await this[_0x5cb196(0x26e)]['get'](_0x486695,{'headers':{'Content-Type':_0x5cb196(0x1b3)}}))[_0x5cb196(0x285)])==null?void 0x0:_0x47b39c[_0x5cb196(0x1fd)])!=null?_0x14b4c2:'';}};ut=xn([J(0x0,_0x13e3c7(_0x6717c8)),J(0x1,_0x13e3c7(_0x58299b)),J(0x2,_0x46a8a4),J(0x3,_0x2bfead),J(0x4,_0x35e927)],ut);var Bn=Object[_0x2d19ee(0x2a7)],Fn=(_0x5ce624,_0xfc550f,_0x3d3c17,_0x4b98ef)=>{for(var _0x977204=_0x4b98ef>0x1?void 0x0:_0x4b98ef?Bn(_0xfc550f,_0x3d3c17):_0xfc550f,_0x40c4f5=_0x5ce624['length']-0x1,_0x1c4d1e;_0x40c4f5>=0x0;_0x40c4f5--)(_0x1c4d1e=_0x5ce624[_0x40c4f5])&&(_0x977204=_0x1c4d1e(_0x977204)||_0x977204);return _0x977204;},Ae=(_0xcb0da0,_0x585f96)=>(_0x23acae,_0x3ac667)=>_0x585f96(_0x23acae,_0x3ac667,_0xcb0da0);let dt=class extends _0x55618d{constructor(_0x3caaaf,_0x38d233,_0x19e507){const _0xba47fd=_0x2d19ee;super(),this[_0xba47fd(0x2f1)]=_0x3caaaf,this[_0xba47fd(0x26e)]=_0x38d233,this['_configService']=_0x19e507;}async['runOnServer'](_0x1d119e,_0x2fddfc,_0x58d554,..._0x5a9146){const _0xd7c55d=_0x2d19ee;var _0x44568b,_0x2af588,_0x3d61fc,_0x5fc2d6;const _0x4f4098=this[_0xd7c55d(0x2f1)]['getFocusedUnit']();if(!_0x4f4098)throw new Error(_0xd7c55d(0x1e0));const _0x38f983=((_0x44568b=this[_0xd7c55d(0x13a)]['getConfig'](_0x26e0b7))!=null?_0x44568b:_0x36e979)+'/'+_0x1d119e+_0xd7c55d(0x34b)+_0x2fddfc,_0x2e8a06=new URL(window[_0xd7c55d(0x1f3)][_0xd7c55d(0x226)]),_0x2beeac={'scriptId':_0x1d119e,'runId':(_0x2af588=_0x2e8a06['searchParams'][_0xd7c55d(0x1a4)](_0xd7c55d(0x347)))!=null?_0x2af588:'','function':_0x2fddfc,'unitId':_0x4f4098[_0xd7c55d(0x377)](),'argsOfFunction':JSON[_0xd7c55d(0x32a)](_0x5a9146),'invokeId':(_0x3d61fc=_0x58d554[_0xd7c55d(0x300)])!=null?_0x3d61fc:'','executionId':(_0x5fc2d6=_0x58d554[_0xd7c55d(0x234)])!=null?_0x5fc2d6:''};try{const _0x4dde07=await this[_0xd7c55d(0x26e)]['post'](_0x38f983,{'body':_0x2beeac});return _0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x1f9)]&&_0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x1f9)]['code']!==Z['OK']?'Failed':_0x4dde07[_0xd7c55d(0x285)][_0xd7c55d(0x304)];}catch{return _0xd7c55d(0x2d0);}}};dt=Fn([Ae(0x0,_0x5ea64d),Ae(0x1,_0x13e3c7(_0x58299b)),Ae(0x2,_0x46a8a4)],dt);const St=0x7530,It=_0x2d19ee(0x15e);class rr extends _0x55618d{constructor(){const _0x245d20=_0x2d19ee;super(),_(this,_0x245d20(0x167),_0x377b4b()),_(this,_0x245d20(0x2ed),new Set()),_(this,_0x245d20(0x145),new Map()),_(this,_0x245d20(0x386),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x245d20(0x2bd),new Map()),this['_init']();}['dispose'](){const _0x5ab909=_0x2d19ee;super[_0x5ab909(0x2cf)](),this[_0x5ab909(0x1aa)][_0x5ab909(0x136)]((_0x4cee4f,_0x21914f)=>this[_0x5ab909(0x2f7)](_0x21914f)),this[_0x5ab909(0x386)]&&window['clearInterval'](this[_0x5ab909(0x386)]);}['getUnitStatus$'](_0x4f7e4e){const _0xf6e0a2=_0x2d19ee;return this[_0xf6e0a2(0x2bc)](_0x4f7e4e)[_0xf6e0a2(0x359)](_0x52d636());}['editingUnit'](_0x19015f){const _0x3a53f8=_0x2d19ee;this['_selfUnitIDs'][_0x3a53f8(0x26a)]===0x0&&this[_0x3a53f8(0x2a8)](),this[_0x3a53f8(0x2ed)]['add'](_0x19015f),this[_0x3a53f8(0x1a3)]({'type':0x0,'memberID':this[_0x3a53f8(0x167)],'unitIDs':[_0x19015f],'isForwarded':!0x1});}[_0x2d19ee(0x216)](_0x475a7b){const _0x16e08e=_0x2d19ee;this[_0x16e08e(0x2ed)][_0x16e08e(0x20a)](_0x475a7b),this[_0x16e08e(0x2ed)][_0x16e08e(0x26a)]===0x0&&this[_0x16e08e(0x386)]&&window['clearInterval'](this[_0x16e08e(0x386)]);}['_init'](){const _0x215c95=_0x2d19ee;this[_0x215c95(0x1b6)](_0x5684e2(_0x197cc9(window,_0x215c95(0x379))[_0x215c95(0x150)](_0x269255=>{const _0x836598=_0x215c95;if(_0x269255[_0x836598(0x1c3)]!==It||!_0x269255[_0x836598(0x36b)])return;const _0x5a654d=JSON[_0x836598(0x20f)](_0x269255[_0x836598(0x36b)]);this[_0x836598(0x311)](_0x5a654d);}))),window[_0x215c95(0x25b)]('unload',()=>this[_0x215c95(0x1a3)]({'type':0x1,'memberID':this[_0x215c95(0x167)],'unitIDs':Array[_0x215c95(0x292)](this[_0x215c95(0x2ed)])}));}[_0x2d19ee(0x311)](_0x3ef991){const _0x1e0c00=_0x2d19ee;switch(_0x3ef991['type']){case 0x0:this[_0x1e0c00(0x259)](_0x3ef991);break;case 0x1:this['_handleLeaveEvent'](_0x3ef991);break;case 0x2:this[_0x1e0c00(0x322)](_0x3ef991);break;}}[_0x2d19ee(0x259)](_0x2fe8e5){const _0x42bc5f=_0x2d19ee,{unitIDs:_0x2cf65f,memberID:_0x2b265a,isForwarded:_0x41f897}=_0x2fe8e5;_0x2cf65f['forEach'](_0x5a0f9b=>{const _0x4da5ca=_0x3b77;if(!_0x41f897&&this[_0x4da5ca(0x145)]['has'](_0x5a0f9b)&&this[_0x4da5ca(0x2bc)](_0x5a0f9b)[_0x4da5ca(0x1a9)](_0x59d149[_0x4da5ca(0x196)]),!this[_0x4da5ca(0x145)][_0x4da5ca(0x230)](_0x5a0f9b)||!this[_0x4da5ca(0x145)][_0x4da5ca(0x1a4)](_0x5a0f9b)['has'](_0x2b265a)){const _0x58f465=this[_0x4da5ca(0x145)]['get'](_0x5a0f9b)||new Set();_0x58f465[_0x4da5ca(0x191)](_0x2b265a),this['_unitOnClients'][_0x4da5ca(0x165)](_0x5a0f9b,_0x58f465),this[_0x4da5ca(0x220)](_0x2b265a);}}),_0x41f897||this[_0x42bc5f(0x1a3)]({'type':0x0,'memberID':this[_0x42bc5f(0x167)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2d19ee(0x220)](_0x354025){const _0x53e1cc=_0x2d19ee;this[_0x53e1cc(0x2f7)](_0x354025);const _0x206370=window[_0x53e1cc(0x14f)](()=>{const _0x8ec563=_0x53e1cc;this['_unitOnClients'][_0x8ec563(0x136)](_0x273db3=>{const _0x41a658=_0x8ec563;_0x273db3[_0x41a658(0x20a)](_0x354025);});},St*0x2);this['_clearOtherTimers'][_0x53e1cc(0x165)](_0x354025,_0x206370);}['_removeClearOtherTimer'](_0x389753){const _0x12850b=_0x2d19ee;if(this[_0x12850b(0x1aa)][_0x12850b(0x230)](_0x389753)){const _0x3d37be=this[_0x12850b(0x1aa)]['get'](_0x389753);_0x3d37be&&window[_0x12850b(0x31a)](_0x3d37be),this['_clearOtherTimers'][_0x12850b(0x165)](_0x389753,null);}}[_0x2d19ee(0x357)](_0x4d8fbe){const _0x58640f=_0x2d19ee,{memberID:_0x2c9bfa,unitIDs:_0x44ad08}=_0x4d8fbe;_0x44ad08['forEach'](_0x357d08=>{const _0x3bf183=_0x3b77;var _0xe82f03;const _0x11b38a=this[_0x3bf183(0x145)][_0x3bf183(0x1a4)](_0x357d08);_0x11b38a&&(_0x11b38a['delete'](_0x2c9bfa),(_0xe82f03=this['_ensureSubject'](_0x357d08))==null||_0xe82f03[_0x3bf183(0x1a9)](_0x11b38a[_0x3bf183(0x26a)]===0x0?_0x59d149[_0x3bf183(0x2b0)]:_0x59d149[_0x3bf183(0x196)]));}),this[_0x58640f(0x2f7)](_0x2c9bfa);}[_0x2d19ee(0x322)](_0x31d27a){const _0x5e6a42=_0x2d19ee;this[_0x5e6a42(0x220)](_0x31d27a['memberID']);}[_0x2d19ee(0x1a3)](_0x6877ba){const _0x4a814b=_0x2d19ee;localStorage[_0x4a814b(0x290)](It,JSON[_0x4a814b(0x32a)](_0x6877ba));}[_0x2d19ee(0x2a8)](){const _0x1a79d0=_0x2d19ee;this['_heartbeatTimer']=window[_0x1a79d0(0x238)](()=>{const _0x59aff8=_0x1a79d0;this[_0x59aff8(0x1a3)]({'type':0x2,'memberID':this[_0x59aff8(0x167)]});},St);}[_0x2d19ee(0x2bc)](_0x2bc1e6){const _0x5a3c59=_0x2d19ee;return this['_unitStatus'][_0x5a3c59(0x230)](_0x2bc1e6)||this['_unitStatus']['set'](_0x2bc1e6,new _0x5689a5(_0x59d149[_0x5a3c59(0x2b0)])),this[_0x5a3c59(0x2bd)][_0x5a3c59(0x1a4)](_0x2bc1e6);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x1e40b1=_0x38fa;(function(_0x95951a,_0x224866){const _0x5da787=_0x38fa,_0xd18537=_0x95951a();while(!![]){try{const _0x1dfe9f=-parseInt(_0x5da787(0x2f5))/0x1+-parseInt(_0x5da787(0x2f4))/0x2+parseInt(_0x5da787(0x1ca))/0x3*(parseInt(_0x5da787(0x268))/0x4)+-parseInt(_0x5da787(0x28e))/0x5*(-parseInt(_0x5da787(0x229))/0x6)+parseInt(_0x5da787(0x225))/0x7+-parseInt(_0x5da787(0xdf))/0x8*(-parseInt(_0x5da787(0xe5))/0x9)+parseInt(_0x5da787(0x1cb))/0xa*(-parseInt(_0x5da787(0xfe))/0xb);if(_0x1dfe9f===_0x224866)break;else _0xd18537['push'](_0xd18537['shift']());}catch(_0x365831){_0xd18537['push'](_0xd18537['shift']());}}}(_0x4aab,0xae791));var Yt=Object['defineProperty'],Wt=(_0x16019f,_0x110416,_0x4e0018)=>_0x110416 in _0x16019f?Yt(_0x16019f,_0x110416,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e0018}):_0x16019f[_0x110416]=_0x4e0018,_=(_0x4405ff,_0x287fd9,_0xd66fa5)=>Wt(_0x4405ff,typeof _0x287fd9!='symbol'?_0x287fd9+'':_0x287fd9,_0xd66fa5);import{jsx as _0x536d58,jsxs as _0x1a093a}from'react/jsx-runtime';import{CollaborationStatus as _0x126115,CollaborationSessionService as _0x38b52a,CollaborationController as _0x465340,DataLoaderService as _0x19e9f7,MemberService as _0x4d6b15,SessionStatus as _0x5c067f,ILocalCacheService as _0x51b584,CollaborationUIEventService as _0xfcb14b,CollaborationUIEventId as _0x29a27e,DocCollaborationEntity as _0x185d0f,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x7fd448,getLocalCacheKey as _0x192196,LOCAL_CACHE_INTERVAL as _0x14c463,LOCAL_CACHE_INTERVAL_KEY as _0x18d25d,UniverCollaborationClientPlugin as _0x485e39,CollaborationSocketService as _0x4c670c,DEFAULT_WS_SESSION_TICKET_URL as _0x3b6f,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x50aa9c,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x78af75,UnitStatus as _0x114a9b}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x51435d,IUniverInstanceService as _0x161ad0,Inject as _0x2c0e45,Injector as _0x3fc224,Disposable as _0x4e2370,createIdentifier as _0x19cd97,ILogService as _0x29510e,ICommandService as _0x7462c,Optional as _0x37f660,RxDisposable as _0x52c72b,Workbook as _0x4df832,DOC_RANGE_TYPE as _0x4cbb3c,debounce as _0x480f0d,Rectangle as _0x44bb29,DisposableCollection as _0x4f0c87,toDisposable as _0x4b734a,UniverInstanceType as _0x25fa51,generateRandomId as _0x2b8a5d,COLORS as _0x2162bc,ColorKit as _0x5d75b4,ThemeService as _0x200d5a,fromEventSubject as _0x5026b8,Tools as _0x509f1e,CommandType as _0x488e10,IConfigService as _0xaf39b9,CanceledError as _0x309b6a,isFormulaString as _0x16ba62,isFormulaId as _0x244a3a,ILocalStorageService as _0x401375,DependentOn as _0xe8bdb1,Plugin as _0x504480,merge as _0x119aa6,registerDependencies as _0x5c9d92,mergeOverrideWithDependencies as _0x1282ba,touchDependencies as _0x3ecbaa}from'@univerjs/core';import{useObservable as _0x22378b,useDependency as _0x26b09f,IUIPartsService as _0x37320f,BuiltInUIPart as _0x4c7ebe,connectInjector as _0x4392f7,IBeforeCloseService as _0x3cd0f6,IMessageService as _0x5aac8c,INotificationService as _0x5c99d5}from'@univerjs/ui';import{BehaviorSubject as _0xefb469,switchMap as _0x163538,of as _0x1b1789,takeUntil as _0x5d9a7c,debounceTime as _0x16ada7,Subject as _0x2ecf52,filter as _0x15df19,merge as _0x212f2b,combineLatest as _0x486491,fromEvent as _0x336182,shareReplay as _0x5d780b,mapTo as _0x44ca7b,distinctUntilChanged as _0x26115a}from'rxjs';import{Tooltip as _0x9bf705,clsx as _0x5085c6,MessageType as _0x413557}from'@univerjs/design';import{useRef as _0x1fc853,createElement as _0x52bed7,forwardRef as _0xec3552,useCallback as _0x3c7968}from'react';import{IRemoteInstanceService as _0x213dc6}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x5eff69,RefRangeService as _0x4a3acd,SetSelectionsOperation as _0x40536b,SheetsSelectionsService as _0x4bec6f,EffectRefRangId as _0x37e3ca,handleIRemoveRow as _0x1c3d70,handleIRemoveCol as _0x47f10c,handleMoveRange as _0x38059d,handleInsertRow as _0x3957c8,handleInsertRangeMoveRight as _0x24b9be,handleInsertRangeMoveDown as _0x23dfff,handleInsertCol as _0x245f5c,handleDeleteRangeMoveUp as _0xb28157,handleDeleteRangeMoveLeft as _0xc65089,runRefRangeMutations as _0x89c58f}from'@univerjs/sheets';import{Shape as _0x29b4e3,Rect as _0x4d3d55,getColor as _0xe0e13e,RegularPolygon as _0x13a851,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x35411e,Vector2 as _0x5c81fa,SHEET_VIEWPORT_KEY as _0x1b7b1e,IRenderManagerService as _0xef4dde}from'@univerjs/engine-render';import{HTTPService as _0xb0aafa,ISocketService as _0x53cf78,WebSocketService as _0x4c4ca2}from'@univerjs/network';import{IDocClipboardService as _0x19ff31,NodePositionConvertToCursor as _0x2573ee,NodePositionConvertToRectRange as _0x47b2a6,TEXT_RANGE_LAYER_INDEX as _0x4973ed,SetDocZoomRatioOperation as _0x350f79,DocIMEInputManagerService as _0x208526,DocStateChangeManagerService as _0x1e4bf3}from'@univerjs/docs-ui';import{IImageIoService as _0x12a140}from'@univerjs/drawing';import{ITransformService as _0xa76561,CollaborationEvent as _0x364cbb,isTransformMutationFailure as _0x463700,isTransformMutationsWithChangesetSuccess as _0x22ff8b,RevisionService as _0x520e2c,ISnapshotServerService as _0x6fbdfe}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x50d425,RichTextEditingMutation as _0x1b9411,DocSelectionManagerService as _0x8b731d,DocSkeletonManagerService as _0x1842c9}from'@univerjs/docs';function _0x38fa(_0x6d2e16,_0x45eae1){_0x6d2e16=_0x6d2e16-0xce;const _0x4aabca=_0x4aab();let _0x38fa5b=_0x4aabca[_0x6d2e16];return _0x38fa5b;}import{deserializeRangeWithSheet as _0x236172,serializeRangeWithSheet as _0x5e08f5,FormulaExecuteStageType as _0x422184,FormulaExecutedStateType as _0x3bbcbd,SetFormulaCalculationStartMutation as _0x1ecee1,SetFormulaCalculationNotificationMutation as _0x49db29}from'@univerjs/engine-formula';import{map as _0x4ad3b0,filter as _0x1194e9,throttleTime as _0xe140a4,takeUntil as _0x25496f,switchMap as _0x46468b}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2e6db2,getCoordByCell as _0x4ae2c3,getSheetObject as _0x542516}from'@univerjs/sheets-ui';function Ge({ref:_0x2a7fdc,..._0x3e867a}){const _0x30e5cd=_0x38fa,{icon:_0x1f1c31,id:_0x1513c1,className:_0x4ebfbf,extend:_0x3fd1f9,..._0xe1d57c}=_0x3e867a,_0x130f7d=(_0x30e5cd(0x108)+_0x1513c1+'\x20'+(_0x4ebfbf||''))[_0x30e5cd(0x1d2)](),_0x136b6d=_0x1fc853('_'+vi());return At(_0x1f1c31,''+_0x1513c1,{'defIds':_0x1f1c31[_0x30e5cd(0x2cb)],'idSuffix':_0x136b6d['current']},{'ref':_0x2a7fdc,'className':_0x130f7d,..._0xe1d57c},_0x3fd1f9);}function At(_0x5de33c,_0x3692ba,_0x4ddb93,_0x4a88b8,_0x38e04a){const _0x3829cc=_0x38fa;return _0x52bed7(_0x5de33c[_0x3829cc(0x189)],{'key':_0x3692ba,...gi(_0x5de33c,_0x4ddb93,_0x38e04a),..._0x4a88b8},(Ei(_0x5de33c,_0x4ddb93)[_0x3829cc(0x2a7)]||[])[_0x3829cc(0x1de)]((_0x2a6d22,_0xe2cbef)=>At(_0x2a6d22,_0x3692ba+'-'+_0x5de33c[_0x3829cc(0x189)]+'-'+_0xe2cbef,_0x4ddb93,void 0x0,_0x38e04a)));}function _0x4aab(){const _0x21abe2=['override','_document','ONLINE','getParam','_ensureSubject','Failed','trim','getConfig','sheetId','getMergeData','formula.calculation.unable','onPointerEnter$','getRenderById','registerBeforeClose','catch','ENTITLE_COUPON_USED_UP','setTimeout','replaceDocRanges','map','Error','eventID','_docStateChangeManagerService','entries','createSocket','subUnitId','getCurrentSelections','_pollingInterval','_themeService','REDEMPTION_CODE_FULLY_REDEEMED','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','ERROR_AGAIN','collaboration.closeRoom','syncEditingCollabCursor','currentColor','newValue','textRanges','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','_imageIoService','_collabCursorController','set','/universer-api/license/formula/limit/done','doc.mutation.rich-text-editing','_localCacheService','collab-client.tooltip.reconnect','defs','NO_OTHER_CLIENTS_EDITING','imageSourceType','USERS_LEAVE','_maxFormulaLimit','CHANGESET_REVISION_CONFILICT','_initWindowErrorListener','urlChange$','getValue','loadOfflineData','_registerRenderDependencies','REDEMPTION_CODE_INACTIVE','_getMergeRange','unsubscribe','then','memberID','_docTransformIMECacheService','INTERNAL_ERROR','PENDING','getRangePointData','_startCalculationLimit','SNAPSHOT_INVALID_SNAPSHOT','\x20at\x20','history','_range','_send','UNIVER_SHEET','width','DATA_SOURCE_TOO_LARGE','_getScale','onLocalMutation','_taskIds','_handleJoinEvent','addClipboardHook','_initUserListener','PY_RUNTIME_SCRIPT_ERROR','_updateURLWithCurrentState','_selfUnitIDs','setInterval','saveImage','http://www.w3.org/2000/svg','focused$','column','ENTITLE_CAN_NOT_BUY_LOWER_OTP','beginPath','2853921JMOBeG','_releaseCalculationLimit','_initResize','_cursorShapes','90096vZjRRs','collaboration.single-unit.warning','startsWith','REDEMPTION_INVALID_CODE','InsertRowCommandId','parseInt','result','_docTransformStateCacheService','_startDocCollabCursor','NOT_COLLAB','ENTITLE_USE_COUPON_NOT_1ST_TRADE','dispose','getActiveRange','wsSessionTicketUrl','USER_NOT_INVITED_CODE','_docClipboardService','registerRefRange','next','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','transformStateCache','permission.title','add','makeDirty','SOCKET_FAILED','all','getColorFromTheme','_notificationService','YUUMI_AI_RUN_FAILED','endRow','_cursorInfo$','_onCursorUpdate','saveTaskMap','InsertRangeMoveDownCommandId','_memberID','getAncestorScale','editingUnit','string','off-line-icon','LOGIN_TOKEN_PROCESSING_FAILED','getOffsetConfig','UniverIcon','_cursors','_messageService','reason','key','_getSheetObject','[RemoteUniscriptService]:\x20no\x20focused\x20unit','collabStatus.fetchMiss','post','lineTo','white','/run/','FromArray','xlink:href','selections','transformByState','transformMutationsWithChangeset','_initEntityListener','setItem','_configService','none','svg','MOBILE_HAS_BEEN_BOUND','1332tuwVVw','_showGuardMessage','hide','_removeClearOtherTimer','_memberService','addObject','collaboration-client-ui.config','bottom','YUUMI_RATE_OVER_LIMIT','_status$','href','exhaustSavingTask','startFormulaLimitUrl','displayName','getUnitId','_scheduleClearOtherTimer','UPDATE_CURSOR','getCurrentUnitForType','unshift','0\x200\x2017\x2016','delete','permission.content','_drawAnchor','getCollabCursors$','_shapes','[CollaborationDataLoaderController]','contains','clearInterval','on-line-icon_clip0_910_349','APPLY_REJECT','disposeWithMe','UNDEFINED','collabStatus.offline','session.will-retry','_uploadLog','searchParams','url(#$1','_context','260xugwhc','_transformService','currentTheme$','toRgbString','getMemberID','startRow','location','roomMembers','LICENSE_DISTRO_REJECTED','maxFormulaLimit','_unitOnClients','_initCommandInterceptor','_checkCalculationAvailable','_onCursorDelete','complete','JOIN_ROOM_FAILED','_session','ENTITLE_REPORT_LIMIT_EXCEED','setShapeProps','LICENSE_IMPORT_SIZE_EXCEEDED','ranges','_applyCommand','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_scheduleHeartbeat','length','children','flatMap','row','bind','_sheetSkeletonManagerService','colorChannel1','fillStyle','fillText','?taskId=','getItem','socket$','pipe','isArray','random','min','onPointerLeave$','SUBMIT_CHANGESET_TIMEOUT','_online','_toggleOnline','_heartbeatTimer','runOnServer','stageInfo','removeEventListener','OffLineIcon','CURRENT_STATUS_CANNOT_OPERATE','REDEMPTION_CODE_NOT_STARTED','RECT','hovered','replace','fill','INVITE_CODE_REQUIRED','UNAUTHENTICATED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_commandService','mask','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','defIds','getMember','error','0\x200\x2016\x2016','_transformUndoRedoStack','_backgroundColor','clipPath','getSheetId','substring','VIEW_MAIN','lineno','deepClone','_initEvent','AWAITING_WITH_PENDING','onStarting','transform','_transformPreviousActiveRange','NOT_FOUND','red.300','getUnhiddenWorksheets','_collabCursorState$','off-line-icon_clip0_910_343','_initCommandExecutedListener','PAYMENT_CHANNEL_NOT_SUPPORT','range','_updateLocalCursor','getStateCache','from','push','path','shift','unload','_collaborationUIEventService','YUUMI_UNABLE_LOAD_URL','source','TEXT','purple.300','_color','_injector','_entityInit$','fillRule','1909486sFQnaY','1143746AehNWK','_name','FETCH_MISS','moveTo','setAlpha','executeCommand','ALREADY_EXISTS','_uiPartsService','_removeCollabCursors','MoveRangeCommandId','_eventUnsubscribe','collabStatus.notCollab','APPLY_PERMISSION_DENIED','_logService','get','_scheduleSaving','YUUMI_NO_CUBOID_FOR_QUESTION','registerRenderModule','_handleHover','loadUnit','RemoveColCommandId','init','sessionStatus$','rgba(255,\x20255,\x20255,\x200.01)','split','ENTITLE_COUPON_EXPIRED','updateOfflineData','subscribeEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','_localStorageService','OnLineIcon','filename','_entities','_renderManagerService','Warning','executionId','onPointerMove$','activeSheet$','ENTITLE_INVALID_COUPON_CODE','YUUMI_ALL_TABLES_IS_INVALID','m2Prime','yellow.400','docStateChange$','code','_drawRectRange','LICENSE_MAX_UNITS_EXCEEDED','dispose$','MUTATION','INVITE_CODE_ALREADY_BOUND','_unitStatus','params','join','ENTITLE_DUP_SUBSCRIPTION','dirtyRanges','onCommandExecuted','LICENSE_EXPORT_SIZE_EXCEEDED','_currentUsage','attrs','collabCursorState$','YUUMI_CONNECTOR_URL_NOT_FOUND','getDocRanges','_draw','assign','uni.network.url-service','START_CALCULATION','_collabSessionService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_clearOtherTimers','8qOAtza','getOwnPropertyDescriptor','_urlService','restore','clearTimeout','type','12431898ybinYp','evenodd','_startSheetCollabCursor','getFocusedUnit','INVITE_CODE_HAS_BEEN_UES','_initStatusComponent','disposeUnit','transformMutation','INVALID_INVITE_CODE','height','beforeCommandExecuted','unit','getVpScrollXYInfoByPosToVp','1em','_refRangeService','ENTITLE_NEED_BILLING_ADDRESS','_instanceService','includes','roomMembers$','origin','transformSelections','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','REDEMPTION_CODE_HAS_BEEN_CREATED','createInstance','subscribe','7513yPxHry','show','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','mutations','setParam','_assignedColors','black','debug','drawWith','_refreshCollabCursors','univerjs-icon\x20univerjs-icon-','with','entityInit$','enableFrontendLog','#FFF','univer-flex\x20univer-items-center','selection','USER_NOT_FOUND','m1Prime','_colorAssignService','transformRemoteChangeset','_colorIndex','_roomMembers$','_toggleOffline','actions','send','idSuffix','_handleEvent','max','onRendered','event$','transformIMECache','message','_monkeyPatchLogService','arc','functionsExecutedState','name','APPLY_REVISION_CONFILICT','_collaborationController','cursorInfo','round','APPLY_NON_SEQUENTIAL_REVISION','OFFLINE','Unknown\x20user','getUndoRedoMutationParamsCache','/universer-api/license/formula/limit/start','_getFormulaLimitStatus','registerComponent','_collaborationSessionService','asObservable','limitInfo','defineProperty','collabStatus.syncing','session.connection-failed','_createSocketURL','_setupSubUnitSync','text','getFormulaLimitStatusUrl','measureText','_initDependencies','body','getCellPositionByOffset','_updateSubUnitFromURLParams','enableLocalCache','runId','LOGIN_FAILED','findNodePositionByCharIndex','collaboration.offline-data-not-saved','invokeId','_checkAndWaitForCalculationPermission','_getSaveTimeout','OTHER_CLIENTS_EDITING','releaseFormulaLimitUrl','_scene','_docSkeletonManagerService','_localeService','UNRECOGNIZED','pluginName','_docSyncEditingCollabCursorService','_setupBeforeClosingHandler','WECHAT_HAS_BEEN_BOUND','_lastPointer','forEach','...','Success','subunit','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_getSessionTicket','values','blue.400','requireSession','toString','_clearPolling','_onRefRangeChange','colno','div','_textBubble','totalFormulasToCalculate','resize','url(#on-line-icon_clip0_910_349)','reconnect','setConfig','_updateCollabCursors','AUTHORIZE_CODE_ILLEGAL','EMAIL_HAS_BEEN_BOUND','_render','isEditing','engine','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_ASYNCIO_CANCELLED','USER_IS_ANONYMOUS','_lastResponseTimestamp','[Unhandled\x20Rejection]:\x20','setUndoRedoMutationParamsCache','unitId','SNAPSHOT_HAS_BEEN_REMOVED','assignAColorForMemberID','color','INVALID_ARGUMENT','_saveTaskMap','has','size','top','_hover','CLOSE_ROOM','data','save','getTypeOfUnitAdded$','stringify','_init','REDEMPTION_USER_NOT_ELIGIBLE','_registerDependencies','application/json','_hideTimer','/universer-api/license/formula/limit/status','_httpService','translate(.97)','unitID','getSheetBySheetId','tag','getTypeOfUnitDisposed$','_config','_cachedData','_getAnchorBounding','ENSURE_SNAPSHOT_EXECUTION','TOO_MANY_REQUESTS','stack','setStateCache','_anchor','_saveCache','_univerInstanceService','UNIVER_DOC','getViewport','getSkeleton','_hovered','EMAIL_VERIFY_CODE_MISMATCH','isActive','_transformHistoryAndStateStack','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','ENTITLE_INSUFFICIENT_QUOTA','collab-rect-range-','pushState','_anchorDot','_labelPosition','onMouseMove','replaceState','APPLY_DUPLICATED','RemoveRowCommandId','cursorInfo$','_setFormulaLimitStatus','InsertColCommandId','COMPLETION_FINISHED','now','_docTransformSelectionsService','MOBILE_VERIFY_CODE_MISMATCH','collab-text-anchor-','DeleteRangeMoveUpCommandId','backgroundColor','REDEMPTION_USER_REDEEM_TIMES_EXCEED','HEADER_MENU','_initStatusListener','_docSkeleton','currentUsage','endColumn','getCurrentRevOfUnit','addHandlerCallback','_cursor','getRelativeToViewportCoord','Loading','triggerDblclick','redoState','_beforeCloseService','_dataLoaderService','undoState','[Window\x20Error]:\x20','_handleHeartbeatEvent','_hasFormulaInDirtyRanges','startColumn','parse','storage','addEventListener','_id','/universer-api/frontend/logs','PERMISSION_DENIED','12732fBKmkc','17130FYKUfo'];_0x4aab=function(){return _0x21abe2;};return _0x4aab();}function gi(_0xa9d597,_0x58b832,_0x5787de){const _0x47504f=_0x38fa,_0x97f2fd={..._0xa9d597[_0x47504f(0xd4)]};_0x5787de!=null&&_0x5787de[_0x47504f(0x2ac)]&&_0x97f2fd[_0x47504f(0x2c4)]===_0x47504f(0x2ac)&&(_0x97f2fd['fill']=_0x5787de['colorChannel1']),_0xa9d597[_0x47504f(0x189)]===_0x47504f(0x2c9)&&_0x97f2fd['id']&&(_0x97f2fd['id']=_0x97f2fd['id']+_0x58b832[_0x47504f(0x118)]),Object[_0x47504f(0x1e2)](_0x97f2fd)['forEach'](([_0x414f56,_0x2e342a])=>{const _0x3765d2=_0x47504f;_0x414f56==='mask'&&typeof _0x2e342a==_0x3765d2(0x24d)&&(_0x97f2fd[_0x414f56]=_0x2e342a[_0x3765d2(0x2c3)](/url\(#(.*)\)/,_0x3765d2(0x28c)+_0x58b832[_0x3765d2(0x118)]+')'));});const {defIds:_0x42a258}=_0x58b832;return!_0x42a258||_0x42a258[_0x47504f(0x2a6)]===0x0||(_0xa9d597[_0x47504f(0x189)]==='use'&&_0x97f2fd['xlink:href']&&(_0x97f2fd['xlink:href']=_0x97f2fd[_0x47504f(0x25e)]+_0x58b832[_0x47504f(0x118)]),Object[_0x47504f(0x1e2)](_0x97f2fd)[_0x47504f(0x150)](([_0x16631a,_0x2d9426])=>{const _0x20634e=_0x47504f;typeof _0x2d9426=='string'&&(_0x97f2fd[_0x16631a]=_0x2d9426['replace'](/url\(#(.*)\)/,_0x20634e(0x28c)+_0x58b832[_0x20634e(0x118)]+')'));})),_0x97f2fd;}function Ei(_0x306b22,_0x1f090f){const _0x1b96f3=_0x38fa;var _0x31f15f;const {defIds:_0x5776e0}=_0x1f090f;return!_0x5776e0||_0x5776e0[_0x1b96f3(0x2a6)]===0x0?_0x306b22:_0x306b22['tag']===_0x1b96f3(0x1f8)&&((_0x31f15f=_0x306b22[_0x1b96f3(0x2a7)])!=null&&_0x31f15f['length'])?{..._0x306b22,'children':_0x306b22[_0x1b96f3(0x2a7)][_0x1b96f3(0x1de)](_0x3619b2=>typeof _0x3619b2[_0x1b96f3(0xd4)]['id']==_0x1b96f3(0x24d)&&_0x5776e0&&_0x5776e0['includes'](_0x3619b2[_0x1b96f3(0xd4)]['id'])?{..._0x3619b2,'attrs':{..._0x3619b2[_0x1b96f3(0xd4)],'id':_0x3619b2['attrs']['id']+_0x1f090f[_0x1b96f3(0x118)]}}:_0x3619b2)}:_0x306b22;}function vi(){const _0x6468af=_0x38fa;return Math[_0x6468af(0x2b4)]()[_0x6468af(0x159)](0x24)[_0x6468af(0x2d3)](0x2,0x8);}Ge[_0x1e40b1(0x275)]=_0x1e40b1(0x251);const pi={'tag':_0x1e40b1(0x266),'attrs':{'xmlns':_0x1e40b1(0x220),'fill':_0x1e40b1(0x265),'viewBox':_0x1e40b1(0x2ce),'width':_0x1e40b1(0xf2),'height':_0x1e40b1(0xf2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x1e40b1(0x1ed),'d':_0x1e40b1(0x1f0),'strokeLinecap':_0x1e40b1(0x126),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1e40b1(0x1f8),'attrs':{},'children':[{'tag':_0x1e40b1(0x2d1),'attrs':{'id':_0x1e40b1(0x2e0)},'children':[{'tag':_0x1e40b1(0x2e8),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1e40b1(0x2e0)]},Pt=_0xec3552(function(_0x4d65be,_0xa64874){const _0x5e4d2e=_0x1e40b1;return _0x52bed7(Ge,Object[_0x5e4d2e(0xd9)]({},_0x4d65be,{'id':_0x5e4d2e(0x24e),'ref':_0xa64874,'icon':pi}));});Pt['displayName']=_0x1e40b1(0x2be);const Oi={'tag':_0x1e40b1(0x266),'attrs':{'xmlns':_0x1e40b1(0x220),'fill':'none','viewBox':_0x1e40b1(0x27b),'width':_0x1e40b1(0xf2),'height':_0x1e40b1(0xf2)},'children':[{'tag':'g','attrs':{'clipPath':_0x1e40b1(0x161)},'children':[{'tag':_0x1e40b1(0x2e8),'attrs':{'stroke':_0x1e40b1(0x1ed),'d':_0x1e40b1(0x1e9),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1e40b1(0x1f8),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x1e40b1(0x284)},'children':[{'tag':_0x1e40b1(0x2e8),'attrs':{'fill':_0x1e40b1(0x25b),'d':'M0\x200H16V16H0z','transform':_0x1e40b1(0x186)}}]}]}],'defIds':[_0x1e40b1(0x284)]},wt=_0xec3552(function(_0x5e62ba,_0x33edea){const _0x5146dd=_0x1e40b1;return _0x52bed7(Ge,Object[_0x5146dd(0xd9)]({},_0x5e62ba,{'id':'on-line-icon','ref':_0x33edea,'icon':Oi}));});wt[_0x1e40b1(0x275)]=_0x1e40b1(0x313);function Ti(_0x56fce1){const _0x1a37d9=_0x1e40b1;switch(_0x56fce1){case _0x126115[_0x1a37d9(0x128)]:return _0x1a37d9(0x288);case _0x126115['CONFLICT']:return'collabStatus.conflict';case _0x126115[_0x1a37d9(0x2f7)]:return _0x1a37d9(0x258);case _0x126115[_0x1a37d9(0x232)]:return _0x1a37d9(0x300);case _0x126115['AWAITING']:case _0x126115[_0x1a37d9(0x2d8)]:return _0x1a37d9(0x132);case _0x126115['SYNCED']:case _0x126115[_0x1a37d9(0x20a)]:return'collabStatus.synced';}}function Ci(_0x30fe4d){const _0x537284=_0x1e40b1,{status$:_0x118911}=_0x30fe4d,_0x4a4a8e=_0x22378b(_0x118911,_0x126115[_0x537284(0x232)]),_0x3de569=_0x26b09f(_0x51435d),_0x400717=_0x26b09f(_0x38b52a),_0x53bf09=_0x4a4a8e!==_0x126115[_0x537284(0x128)],_0x1ecaab=_0x3de569['t'](Ti(_0x4a4a8e)),_0x3ecdb0=_0x53bf09?_0x536d58(wt,{}):_0x536d58(Pt,{}),_0x38fa27=_0x3c7968(()=>{const _0x3d978d=_0x537284;_0x53bf09||_0x400717[_0x3d978d(0x162)]();},[_0x53bf09,_0x400717]);function _0x370092(){const _0x463325=_0x537284;return _0x1a093a(_0x463325(0x15d),{'className':_0x463325(0x10d),'onClick':_0x38fa27,'children':[_0x536d58(_0x463325(0x15d),{'className':_0x5085c6('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x53bf09,'univer-text-red-500':!_0x53bf09}),'children':_0x3ecdb0}),_0x536d58(_0x463325(0x15d),{'className':_0x463325(0xfa),'children':_0x1ecaab})]});}return _0x53bf09?_0x370092():_0x536d58(_0x9bf705,{'title':_0x3de569['t'](_0x537284(0x1f7)),'children':_0x370092()});}var Ri=Object[_0x1e40b1(0xe0)],Di=(_0x147769,_0x466bff,_0x1f0d47,_0x16a281)=>{const _0x264128=_0x1e40b1;for(var _0x3af0f4=_0x16a281>0x1?void 0x0:_0x16a281?Ri(_0x466bff,_0x1f0d47):_0x466bff,_0x1b5ea1=_0x147769[_0x264128(0x2a6)]-0x1,_0x3edcb8;_0x1b5ea1>=0x0;_0x1b5ea1--)(_0x3edcb8=_0x147769[_0x1b5ea1])&&(_0x3af0f4=_0x3edcb8(_0x3af0f4)||_0x3af0f4);return _0x3af0f4;},se=(_0x461c2,_0xacd8e2)=>(_0x287ad7,_0x212360)=>_0xacd8e2(_0x287ad7,_0x212360,_0x461c2);let ae=class extends _0x4e2370{constructor(_0x143487,_0x1288e0,_0x20e6d6,_0x8f7fcd){const _0x4a980e=_0x1e40b1;super(),_(this,_0x4a980e(0x271),new _0xefb469(_0x126115[_0x4a980e(0x232)])),(this['_univerInstanceService']=_0x143487,this[_0x4a980e(0x2f1)]=_0x1288e0,this[_0x4a980e(0x124)]=_0x20e6d6,this['_uiPartsService']=_0x8f7fcd,this[_0x4a980e(0xea)](),this[_0x4a980e(0x1b2)]());}['_initStatusListener'](){const _0x434033=_0x1e40b1;this[_0x434033(0x286)](this[_0x434033(0x194)][_0x434033(0x221)][_0x434033(0x2b2)](_0x163538(()=>{const _0x33f4b8=_0x434033,_0x580411=this['_univerInstanceService']['getFocusedUnit']();return _0x580411?this[_0x33f4b8(0x124)]['getCollabEntity$'](_0x580411[_0x33f4b8(0x276)]()):_0x1b1789(null);}),_0x163538(_0x1d1870=>_0x1d1870?_0x1d1870['status$']:_0x1b1789(_0x126115[_0x434033(0x232)])))[_0x434033(0xfd)](_0x20dd57=>{const _0xa529f8=_0x434033;this[_0xa529f8(0x271)][_0xa529f8(0x23a)](_0x20dd57);}));}[_0x1e40b1(0xea)](){const _0x25e69c=_0x1e40b1;this['disposeWithMe'](this[_0x25e69c(0x2fc)][_0x25e69c(0x12d)](_0x4c7ebe[_0x25e69c(0x1b1)],()=>_0x4392f7(Ni({'status$':this[_0x25e69c(0x271)][_0x25e69c(0x12f)]()}),this[_0x25e69c(0x2f1)])));}};ae=Di([se(0x0,_0x161ad0),se(0x1,_0x2c0e45(_0x3fc224)),se(0x2,_0x2c0e45(_0x465340)),se(0x3,_0x37320f)],ae);function Ni(_0x45eb45){const {status$:_0x2e0fd1}=_0x45eb45;return function(){return _0x536d58(Ci,{'status$':_0x2e0fd1});};}const yt=_0x19cd97(_0x1e40b1(0xda));var bi=Object['getOwnPropertyDescriptor'],Li=(_0x41e74e,_0x338b53,_0x5ba719,_0x2167df)=>{const _0x2b60cf=_0x1e40b1;for(var _0x249ac7=_0x2167df>0x1?void 0x0:_0x2167df?bi(_0x338b53,_0x5ba719):_0x338b53,_0x430c47=_0x41e74e[_0x2b60cf(0x2a6)]-0x1,_0x12a28a;_0x430c47>=0x0;_0x430c47--)(_0x12a28a=_0x41e74e[_0x430c47])&&(_0x249ac7=_0x12a28a(_0x249ac7)||_0x249ac7);return _0x249ac7;},K=(_0x30b62e,_0x14f274)=>(_0x361ce5,_0x4d7cc1)=>_0x14f274(_0x361ce5,_0x4d7cc1,_0x30b62e);let ce=class extends _0x52c72b{constructor(_0x5840c0,_0x177056,_0x379df6,_0x5a398f,_0xf9a430){const _0x9cbc8f=_0x1e40b1;super(),this[_0x9cbc8f(0xe1)]=_0x5840c0,this[_0x9cbc8f(0x302)]=_0x177056,this[_0x9cbc8f(0x2c8)]=_0x379df6,this[_0x9cbc8f(0x1be)]=_0x5a398f,_0xf9a430?_0xf9a430==null||_0xf9a430['whenReady']()[_0x9cbc8f(0x206)](()=>this[_0x9cbc8f(0x17f)]()):(this[_0x9cbc8f(0x302)][_0x9cbc8f(0x105)](_0x9cbc8f(0x281),_0x9cbc8f(0xdd)),this['_init']());}async[_0x1e40b1(0x17f)](){const _0x49bc54=_0x1e40b1,_0x1b0271=this['_urlService']['getParam'](_0x49bc54(0xf0)),_0x312b3c=this['_urlService']['getParam']('type'),_0x14aee8=this[_0x49bc54(0xe1)][_0x49bc54(0x1cf)](_0x49bc54(0x153));if(!_0x1b0271||!_0x312b3c){this[_0x49bc54(0x302)][_0x49bc54(0x105)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4f44d8=await this[_0x49bc54(0x1be)][_0x49bc54(0x308)](_0x1b0271,Number(_0x312b3c),_0x14aee8);_0x4f44d8&&_0x4f44d8 instanceof _0x4df832&&this[_0x49bc54(0x135)](_0x4f44d8);}async['_setupSubUnitSync'](_0x210b19){const _0x4ff856=_0x1e40b1;await this[_0x4ff856(0x13c)](_0x210b19),_0x210b19[_0x4ff856(0x31a)]['pipe'](_0x5d9a7c(this['dispose$']))[_0x4ff856(0xfd)](_0x5f21eb=>{_0x5f21eb&&this['_updateURLWithCurrentState'](_0x5f21eb);}),this['_urlService']['urlChange$'][_0x4ff856(0x2b2)](_0x5d9a7c(this['dispose$']))[_0x4ff856(0xfd)](()=>this['_updateSubUnitFromURLParams'](_0x210b19));}['_updateURLWithCurrentState'](_0xc68c47,_0x202af5=!0x1){const _0x5517cd=_0x1e40b1,_0x46bc68=this[_0x5517cd(0xe1)]['getParam'](_0x5517cd(0x153));_0xc68c47['getSheetId']()!==_0x46bc68&&this[_0x5517cd(0xe1)][_0x5517cd(0x102)](_0x5517cd(0x153),_0xc68c47[_0x5517cd(0x2d2)](),_0x202af5);}async[_0x1e40b1(0x13c)](_0x499aa1){const _0x1108ef=_0x1e40b1;var _0x2249a1;const _0x147cd=this[_0x1108ef(0xe1)][_0x1108ef(0x1cf)](_0x1108ef(0x153));if(!_0x147cd||!_0x499aa1[_0x1108ef(0x188)](_0x147cd)){const _0x1f5e08=_0x499aa1[_0x1108ef(0x2de)]()[0x0],_0x6dcb49=_0x499aa1['getSheetBySheetId'](_0x1f5e08);if(!_0x6dcb49)return;this[_0x1108ef(0x21c)](_0x6dcb49,!0x0),await this[_0x1108ef(0x2c8)][_0x1108ef(0x2fa)](_0x5eff69['id'],{'unitId':_0x499aa1[_0x1108ef(0x276)](),'subUnitId':_0x1f5e08});return;}((_0x2249a1=_0x499aa1['getActiveSheet']())==null?void 0x0:_0x2249a1[_0x1108ef(0x2d2)]())!==_0x147cd&&await this['_commandService']['executeCommand'](_0x5eff69['id'],{'unitId':_0x499aa1[_0x1108ef(0x276)](),'subUnitId':_0x147cd});}};ce=Li([K(0x0,yt),K(0x1,_0x29510e),K(0x2,_0x7462c),K(0x3,_0x2c0e45(_0x19e9f7)),K(0x4,_0x37f660(_0x213dc6))],ce);var Ui=Object[_0x1e40b1(0xe0)],Mi=(_0x409070,_0x23fac5,_0x3f9334,_0x5ca9ce)=>{const _0x1cf64d=_0x1e40b1;for(var _0x25e542=_0x5ca9ce>0x1?void 0x0:_0x5ca9ce?Ui(_0x23fac5,_0x3f9334):_0x23fac5,_0x29358b=_0x409070[_0x1cf64d(0x2a6)]-0x1,_0x462317;_0x29358b>=0x0;_0x29358b--)(_0x462317=_0x409070[_0x29358b])&&(_0x25e542=_0x462317(_0x25e542)||_0x25e542);return _0x25e542;},rt=(_0x3f0917,_0xc9a69c)=>(_0x4702a2,_0x3d0b3b)=>_0xc9a69c(_0x4702a2,_0x3d0b3b,_0x3f0917);let $e=class extends _0x52c72b{constructor(_0x420ee8,_0x6d8b31){const _0x1650a1=_0x1e40b1;super(),this[_0x1650a1(0x238)]=_0x420ee8,this[_0x1650a1(0x1f1)]=_0x6d8b31,this[_0x1650a1(0x17f)]();}[_0x1e40b1(0x17f)](){const _0x49b92a=_0x1e40b1,_0x3e48a9=this;this[_0x49b92a(0x286)](this['_docClipboardService'][_0x49b92a(0x219)]({'onBeforePasteImage':async _0x36a942=>{const _0x63d1bc=_0x49b92a,_0x4f9dfa=await _0x3e48a9[_0x63d1bc(0x1f1)][_0x63d1bc(0x21f)](_0x36a942);return _0x4f9dfa?{'source':_0x4f9dfa[_0x63d1bc(0x2ed)],'imageSourceType':_0x4f9dfa[_0x63d1bc(0x1fa)]}:null;}}));}};$e=Mi([rt(0x0,_0x19ff31),rt(0x1,_0x12a140)],$e);const ot=[_0x1e40b1(0x2ef),'jiqing.500','green.600',_0x1e40b1(0x2dd),_0x1e40b1(0x157),_0x1e40b1(0x31e)];class Ke extends _0x4e2370{constructor(){const _0x414d81=_0x1e40b1;super(...arguments),_(this,_0x414d81(0x103),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x5edea0){const _0x15fa9d=_0x1e40b1;if(this[_0x15fa9d(0x103)]['has'](_0x5edea0))return this[_0x15fa9d(0x103)][_0x15fa9d(0x303)](_0x5edea0);const _0x2125e6=ot[this[_0x15fa9d(0x113)]];return this[_0x15fa9d(0x113)]=(this[_0x15fa9d(0x113)]+0x1)%ot['length'],this[_0x15fa9d(0x103)][_0x15fa9d(0x1f3)](_0x5edea0,_0x2125e6),_0x2125e6;}}function $t(_0x5e9b93){const _0x29e9d1=_0x1e40b1;let _0x566369='';for(const _0x5a161d of _0x5e9b93){const {startOffset:_0x5928f5,endOffset:_0x3eb373,isActive:_0x1c5bba,rangeType:_0x59aa70,segmentId:_0x4cf562,segmentPage:_0x4e120c}=_0x5a161d;_0x566369[_0x29e9d1(0x2a6)]&&(_0x566369+=','),_0x566369+=_0x5928f5+':'+_0x3eb373+':'+(_0x1c5bba?'1':'0')+':'+_0x59aa70+':'+_0x4cf562+':'+_0x4e120c;}return _0x566369;}function Ai(_0x23e71e){const _0x1dec89=_0x1e40b1,_0x2e4c3d=_0x23e71e[_0x1dec89(0x30d)](','),_0x567811=[];for(const _0xdff395 of _0x2e4c3d){const [_0x4d50fb,_0x99e18a,_0x4b020e,_0x5ef966,_0x12db64,_0x1f9e05]=_0xdff395['split'](':');_0x567811['push']({'startOffset':Number(_0x4d50fb),'endOffset':Number(_0x99e18a),'collapsed':_0x4d50fb===_0x99e18a,'isActive':_0x4b020e==='1','rangeType':_0x5ef966===_0x4cbb3c[_0x1dec89(0x2ee)]?_0x4cbb3c[_0x1dec89(0x2ee)]:_0x4cbb3c['RECT'],'segmentId':typeof _0x12db64=='string'?String(_0x12db64):'','segmentPage':Number(_0x1f9e05!=null?_0x1f9e05:-0x1)});}return _0x567811['some'](_0x46d519=>_0x46d519[_0x1dec89(0x19a)])||(_0x567811[0x0][_0x1dec89(0x19a)]=!0x0),_0x567811;}class ze extends _0x52c72b{constructor(){const _0x55d8b5=_0x1e40b1;super(...arguments),_(this,_0x55d8b5(0x2df),new _0xefb469(null)),_(this,_0x55d8b5(0xd5),this[_0x55d8b5(0x2df)][_0x55d8b5(0x12f)]());}['syncEditingCollabCursor'](_0x4792b7){const _0x274afe=_0x1e40b1,{unitID:_0x575714,memberID:_0x257c29,textRanges:_0x29a206}=_0x4792b7,_0x14c8c3=$t(_0x29a206);if(_0x14c8c3==='')return;const _0x1118fb={'unitID':_0x575714,'memberID':_0x257c29,'selection':_0x14c8c3};this[_0x274afe(0x2df)]['next'](_0x1118fb);}}var Pi=Object[_0x1e40b1(0xe0)],wi=(_0x3680f0,_0x5303a9,_0x1162a6,_0x281fbf)=>{const _0x486b78=_0x1e40b1;for(var _0x3208a1=_0x281fbf>0x1?void 0x0:_0x281fbf?Pi(_0x5303a9,_0x1162a6):_0x5303a9,_0x44983b=_0x3680f0[_0x486b78(0x2a6)]-0x1,_0x5f4e5e;_0x44983b>=0x0;_0x44983b--)(_0x5f4e5e=_0x3680f0[_0x44983b])&&(_0x3208a1=_0x5f4e5e(_0x3208a1)||_0x3208a1);return _0x3208a1;},A=(_0x508648,_0x153f10)=>(_0x3cce0a,_0x4d8cda)=>_0x153f10(_0x3cce0a,_0x4d8cda,_0x508648);const yi=0x12c,$i=0x64;let xe=class extends _0x52c72b{constructor(_0x10fabf,_0x87b015,_0x483a14,_0x442df9,_0x1de20d,_0x3acac6,_0x1b877e,_0x490d5e,_0x42486a){const _0x5c48a3=_0x1e40b1;super(),_(this,'_online',!0x1),_(this,_0x5c48a3(0x17f),!0x1),_(this,_0x5c48a3(0x246),new _0xefb469(new Map())),_(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_(this,_0x5c48a3(0x114),new _0xefb469([])),_(this,_0x5c48a3(0xf7),this[_0x5c48a3(0x114)][_0x5c48a3(0x2b2)](_0x16ada7(yi))),_(this,_0x5c48a3(0x2e4),_0x480f0d(_0x9786ff=>{const _0x18a351=_0x5c48a3,_0x2f54a7={'eventID':_0x364cbb['UPDATE_CURSOR'],'data':{'unitID':this[_0x18a351(0x187)],'memberID':this[_0x18a351(0x29e)][_0x18a351(0x292)](),'selection':$t(_0x9786ff)}};this['_session'][_0x18a351(0x117)](_0x2f54a7,this[_0x18a351(0x187)]);},$i)),(this[_0x5c48a3(0x187)]=_0x10fabf,this[_0x5c48a3(0x29e)]=_0x87b015,this[_0x5c48a3(0x2f1)]=_0x483a14,this[_0x5c48a3(0x111)]=_0x442df9,this[_0x5c48a3(0x26c)]=_0x1de20d,this['_syncEditingCollabCursorService']=_0x3acac6,this[_0x5c48a3(0x28f)]=_0x1b877e,this[_0x5c48a3(0x194)]=_0x490d5e,this[_0x5c48a3(0x2c8)]=_0x42486a);}get[_0x1e40b1(0x125)](){const _0x1946b9=_0x1e40b1;return this[_0x1946b9(0x246)][_0x1946b9(0x200)]();}get['roomMembers'](){const _0x38e755=_0x1e40b1;return this[_0x38e755(0x114)][_0x38e755(0x200)]();}[_0x1e40b1(0x234)](){const _0x5d8a63=_0x1e40b1;super['dispose'](),this['_cursorInfo$'][_0x5d8a63(0x23a)](new Map()),this[_0x5d8a63(0x246)][_0x5d8a63(0x29c)](),this['_roomMembers$'][_0x5d8a63(0x23a)]([]),this['_roomMembers$'][_0x5d8a63(0x29c)]();}[_0x1e40b1(0x30a)](){const _0x30c186=_0x1e40b1;this['_init']||(this[_0x30c186(0x17f)]=!0x0,this[_0x30c186(0x29e)][_0x30c186(0x30b)][_0x30c186(0x2b2)](_0x5d9a7c(this[_0x30c186(0x323)]))['subscribe'](_0x4e3b2a=>{const _0x309a05=_0x30c186;_0x4e3b2a===_0x5c067f[_0x309a05(0x1ce)]?this['_toggleOnline']():this[_0x309a05(0x115)]();}),this[_0x30c186(0x29e)]['event$'][_0x30c186(0x2b2)](_0x5d9a7c(this[_0x30c186(0x323)]))[_0x30c186(0xfd)](_0x4d4360=>{const _0x47bc74=_0x30c186,_0x537e8a=_0x4d4360[_0x47bc74(0x1e0)];_0x537e8a===_0x364cbb[_0x47bc74(0x278)]&&this[_0x47bc74(0x247)](_0x4d4360),_0x537e8a===_0x364cbb[_0x47bc74(0x1fb)]&&this[_0x47bc74(0x29b)](_0x4d4360);}),this[_0x30c186(0x286)](this[_0x30c186(0x2c8)][_0x30c186(0xd1)](_0x3ae486=>{const _0x20f898=_0x30c186,_0x5f56ab=_0x3ae486[_0x20f898(0x327)];_0x5f56ab!=null&&this[_0x20f898(0x2b8)]&&_0x3ae486['id']===_0x50d425['id']&&_0x5f56ab[_0x20f898(0x170)]===this[_0x20f898(0x187)]&&_0x5f56ab[_0x20f898(0x168)]===!0x1&&_0x5f56ab[_0x20f898(0x2a2)][_0x20f898(0x2a6)]>0x0&&this[_0x20f898(0x2e4)](_0x5f56ab['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$']['pipe'](_0x5d9a7c(this['dispose$']))[_0x30c186(0xfd)](_0x1d6e87=>{const _0x591193=_0x30c186;if((_0x1d6e87==null?void 0x0:_0x1d6e87[_0x591193(0x187)])!==this['unitID'])return;const _0x4994b7={'eventID':_0x364cbb[_0x591193(0x278)],'data':_0x1d6e87};this[_0x591193(0x247)](_0x4994b7);}),this['disposeWithMe'](this['_commandService'][_0x30c186(0xd1)](_0x134c56=>{const _0x10c6c5=_0x30c186;if(_0x134c56[_0x10c6c5(0x327)]==null)return;const _0x11d686=_0x134c56[_0x10c6c5(0x327)];if(_0x134c56['id']!==_0x1b9411['id']||_0x11d686[_0x10c6c5(0x170)]!==this[_0x10c6c5(0x187)])return;const _0x415da1={'id':'doc.mutation.rich-text-editing','params':_0x11d686},_0x455c23=this[_0x10c6c5(0x125)];for(const [_0x4d1e3b,_0xbc882a]of _0x455c23){const _0x9e362f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x10c6c5(0x187)],'actions':null,'textRanges':_0xbc882a['ranges']}},_0x29a7c3=this[_0x10c6c5(0x28f)]['transformMutation'](_0x415da1,_0x9e362f,!0x1);if(_0x463700(_0x29a7c3))throw _0x29a7c3[_0x10c6c5(0x2cd)];_0x455c23['set'](_0x4d1e3b,{..._0xbc882a,'ranges':_0x29a7c3[_0x10c6c5(0x31d)][_0x10c6c5(0x327)][_0x10c6c5(0x1ef)]});}queueMicrotask(()=>{const _0x3d1b32=_0x10c6c5;this[_0x3d1b32(0x246)][_0x3d1b32(0x23a)](_0x455c23);});})));}['_onCursorUpdate'](_0x2b25d2){const _0x284dd3=_0x1e40b1;var _0x10ed16,_0x1b5b1c;const {memberID:_0x2d21d9,selection:_0x3c89c5}=_0x2b25d2[_0x284dd3(0x17b)],_0x3efa13=Ai(_0x3c89c5),_0x39b42c=(_0x1b5b1c=(_0x10ed16=this[_0x284dd3(0x26c)][_0x284dd3(0x2cc)](this[_0x284dd3(0x187)],_0x2d21d9))==null?void 0x0:_0x10ed16[_0x284dd3(0x122)])!=null?_0x1b5b1c:_0x284dd3(0x129),_0x5c3f10={'color':this[_0x284dd3(0x111)][_0x284dd3(0x172)](_0x2d21d9),'name':_0x39b42c,'ranges':_0x3efa13},_0x63b63a=this[_0x284dd3(0x125)];_0x63b63a[_0x284dd3(0x1f3)](_0x2d21d9,_0x5c3f10),this[_0x284dd3(0x246)][_0x284dd3(0x23a)](_0x63b63a);}['_onCursorDelete'](_0x263127){const _0x3abc64=_0x1e40b1,{memberID:_0x4be268}=_0x263127[_0x3abc64(0x17b)],_0x22c315=this[_0x3abc64(0x125)];_0x22c315[_0x3abc64(0x27c)](_0x4be268),this[_0x3abc64(0x246)]['next'](_0x22c315);}[_0x1e40b1(0x2b9)](){const _0x22c2cc=_0x1e40b1;var _0x287872;if(this['_online']=!0x0,((_0x287872=this['_univerInstanceService'][_0x22c2cc(0xe8)]())==null?void 0x0:_0x287872[_0x22c2cc(0x276)]())!==this[_0x22c2cc(0x187)])return;const _0xf0b0a=this[_0x22c2cc(0x2f1)][_0x22c2cc(0x303)](_0x8b731d)[_0x22c2cc(0xd7)]();Array[_0x22c2cc(0x2b3)](_0xf0b0a)&&_0xf0b0a[_0x22c2cc(0x2a6)]>0x0&&this[_0x22c2cc(0x2e4)](_0xf0b0a);}[_0x1e40b1(0x115)](){const _0x5f1a95=_0x1e40b1;this[_0x5f1a95(0x2b8)]=!0x1;}};xe=wi([A(0x2,_0x2c0e45(_0x3fc224)),A(0x3,_0x2c0e45(Ke)),A(0x4,_0x2c0e45(_0x4d6b15)),A(0x5,_0x2c0e45(ze)),A(0x6,_0xa76561),A(0x7,_0x161ad0),A(0x8,_0x7462c)],xe);var xi=Object[_0x1e40b1(0xe0)],Bi=(_0x5a03d1,_0x3964c4,_0x35c994,_0x239ca4)=>{const _0x564d0b=_0x1e40b1;for(var _0x4ba524=_0x239ca4>0x1?void 0x0:_0x239ca4?xi(_0x3964c4,_0x35c994):_0x3964c4,_0x3254c7=_0x5a03d1[_0x564d0b(0x2a6)]-0x1,_0x28707c;_0x3254c7>=0x0;_0x3254c7--)(_0x28707c=_0x5a03d1[_0x3254c7])&&(_0x4ba524=_0x28707c(_0x4ba524)||_0x4ba524);return _0x4ba524;},B=(_0x3a321c,_0x22af1f)=>(_0x3897b6,_0x1da4f1)=>_0x22af1f(_0x3897b6,_0x1da4f1,_0x3a321c);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x2440a3=[],_0x212cec=!0x1;return _0x15da8d=>{const _0x3b91cd=_0x38fa;_0x2440a3[_0x3b91cd(0x2e7)](_0x15da8d),_0x212cec||(_0x212cec=!0x0,setTimeout(()=>{const _0x2c6a37=_0x3b91cd;_0x2440a3[_0x2c6a37(0x150)](_0x56548c=>_0x56548c()),_0x2440a3=[],_0x212cec=!0x1;}));};};let Be=class extends _0x52c72b{constructor(_0xd9302c,_0x398db9,_0x1f5e67,_0x410f45,_0x53d5bd,_0x5c1bff,_0x1b76d5,_0x3bdc52){const _0x23d271=_0x1e40b1;super(),_(this,_0x23d271(0x2b8),!0x1),_(this,_0x23d271(0x17f),!0x1),_(this,_0x23d271(0x246),new _0xefb469(new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x23d271(0x12f)]()),_(this,_0x23d271(0x114),new _0xefb469([])),_(this,_0x23d271(0xf7),this[_0x23d271(0x114)][_0x23d271(0x2b2)](_0x16ada7(Fi))),_(this,_0x23d271(0x2e4),_0x480f0d((_0xc38ce1,_0x5ac8cc)=>{const _0x18bbe9=_0x23d271,_0xd4d215={'eventID':_0x364cbb[_0x18bbe9(0x278)],'data':{'unitID':this[_0x18bbe9(0x187)],'memberID':this[_0x18bbe9(0x29e)][_0x18bbe9(0x292)](),'selection':_0x5e08f5(_0xc38ce1,_0x5ac8cc[_0x18bbe9(0x2e3)])}};this['_session'][_0x18bbe9(0x117)](_0xd4d215,this[_0x18bbe9(0x187)]);},ki)),(this[_0x23d271(0x187)]=_0xd9302c,this[_0x23d271(0x29e)]=_0x398db9,this[_0x23d271(0x2f1)]=_0x1f5e67,this[_0x23d271(0x111)]=_0x410f45,this[_0x23d271(0x26c)]=_0x53d5bd,this[_0x23d271(0x194)]=_0x5c1bff,this['_commandService']=_0x1b76d5,this['_refRangeService']=_0x3bdc52);}get['cursorInfo'](){const _0x3ff690=_0x1e40b1;return this[_0x3ff690(0x246)][_0x3ff690(0x200)]();}get[_0x1e40b1(0x295)](){const _0x1bd1ff=_0x1e40b1;return this[_0x1bd1ff(0x114)][_0x1bd1ff(0x200)]();}[_0x1e40b1(0x234)](){const _0x2bdea4=_0x1e40b1;super[_0x2bdea4(0x234)](),this[_0x2bdea4(0x246)][_0x2bdea4(0x23a)](new Map()),this[_0x2bdea4(0x246)][_0x2bdea4(0x29c)](),this[_0x2bdea4(0x114)]['next']([]),this[_0x2bdea4(0x114)][_0x2bdea4(0x29c)]();}[_0x1e40b1(0x30a)](){const _0x5ee1f4=_0x1e40b1;this[_0x5ee1f4(0x17f)]||(this[_0x5ee1f4(0x17f)]=!0x0,this[_0x5ee1f4(0x29e)][_0x5ee1f4(0x30b)][_0x5ee1f4(0x2b2)](_0x5d9a7c(this[_0x5ee1f4(0x323)]))[_0x5ee1f4(0xfd)](_0x26b551=>{const _0x131dab=_0x5ee1f4;_0x26b551===_0x5c067f[_0x131dab(0x1ce)]?this['_toggleOnline']():this[_0x131dab(0x115)]();}),this['_session'][_0x5ee1f4(0x11c)][_0x5ee1f4(0x2b2)](_0x5d9a7c(this[_0x5ee1f4(0x323)]))['subscribe'](_0x9734ca=>{const _0xbaa33a=_0x5ee1f4,_0x22ab73=_0x9734ca[_0xbaa33a(0x1e0)];_0x22ab73===_0x364cbb[_0xbaa33a(0x278)]&&this[_0xbaa33a(0x247)](_0x9734ca),_0x22ab73===_0x364cbb[_0xbaa33a(0x1fb)]&&this[_0xbaa33a(0x29b)](_0x9734ca);}),this[_0x5ee1f4(0x15b)](),this['disposeWithMe'](this[_0x5ee1f4(0x2c8)]['onCommandExecuted'](_0x2e28f6=>{const _0xba8e3d=_0x5ee1f4;if(this['_online']&&_0x2e28f6['id']===_0x40536b['id']&&_0x2e28f6[_0xba8e3d(0x327)][_0xba8e3d(0x170)]===this[_0xba8e3d(0x187)]){const _0x5f457b=_0x2e28f6['params'];this['_updateLocalCursor'](_0x5f457b[_0xba8e3d(0x1e4)],_0x5f457b[_0xba8e3d(0x25f)][0x0]);}})));}['_onCursorUpdate'](_0x8c2daa){const _0x2b7406=_0x1e40b1;var _0x3d8796,_0x5bd59b;const {memberID:_0x4d054d,selection:_0x33a178}=_0x8c2daa[_0x2b7406(0x17b)],{sheetName:_0x12569c,range:_0x35b102}=_0x236172(_0x33a178),_0x1dea56={'name':(_0x5bd59b=(_0x3d8796=this[_0x2b7406(0x26c)][_0x2b7406(0x2cc)](this[_0x2b7406(0x187)],_0x4d054d))==null?void 0x0:_0x3d8796[_0x2b7406(0x122)])!=null?_0x5bd59b:_0x2b7406(0x129),'range':this[_0x2b7406(0x204)](_0x12569c,_0x35b102),'sheetID':_0x12569c,'color':this['_colorAssignService'][_0x2b7406(0x172)](_0x4d054d),'selection':_0x33a178},_0x35a2bc=this[_0x2b7406(0x125)];_0x35a2bc[_0x2b7406(0x1f3)](_0x4d054d,_0x1dea56),this[_0x2b7406(0x246)][_0x2b7406(0x23a)](_0x35a2bc);}[_0x1e40b1(0x29b)](_0x1db87f){const _0x46d585=_0x1e40b1,{memberID:_0x15b7d8}=_0x1db87f[_0x46d585(0x17b)],_0x12fbe7=this[_0x46d585(0x125)];_0x12fbe7[_0x46d585(0x27c)](_0x15b7d8),this['_cursorInfo$'][_0x46d585(0x23a)](_0x12fbe7);}['_getMergeRange'](_0x4c2778,_0x4ee3df){const _0x129805=_0x1e40b1;var _0xaf6a57,_0x19fbd9;const _0x40d147=(_0x19fbd9=(_0xaf6a57=this[_0x129805(0x194)]['getUniverSheetInstance'](this[_0x129805(0x187)]))==null?void 0x0:_0xaf6a57['getSheetBySheetId'](_0x4c2778))==null?void 0x0:_0x19fbd9[_0x129805(0x1d5)]();return(_0x40d147==null?void 0x0:_0x40d147['find'](_0x111c34=>_0x44bb29[_0x129805(0x282)](_0x111c34,_0x4ee3df)))||_0x4ee3df;}[_0x1e40b1(0x15b)](){const _0x501a2b=_0x1e40b1,_0x25cf5=new _0x4f0c87(),_0x2c0f10=Hi(),_0x2ee9b7=()=>{const _0x326a54=_0x38fa;_0x25cf5['dispose']();const _0x1f4669=(_0x49a15c,_0x438fe0,_0x589ed6,_0x58921a)=>{const _0x991edf=_0x38fa;let _0x14b588=[];switch(_0x49a15c['id']){case _0x37e3ca['DeleteRangeMoveLeftCommandId']:{_0x14b588=_0xc65089(_0x49a15c,_0x58921a);break;}case _0x37e3ca[_0x991edf(0x1ae)]:{_0x14b588=_0xb28157(_0x49a15c,_0x58921a);break;}case _0x37e3ca[_0x991edf(0x1a8)]:{_0x14b588=_0x245f5c(_0x49a15c,_0x58921a);break;}case _0x37e3ca[_0x991edf(0x249)]:{_0x14b588=_0x23dfff(_0x49a15c,_0x58921a);break;}case _0x37e3ca['InsertRangeMoveRightCommandId']:{_0x14b588=_0x24b9be(_0x49a15c,_0x58921a);break;}case _0x37e3ca[_0x991edf(0x22d)]:{_0x14b588=_0x3957c8(_0x49a15c,_0x58921a);break;}case _0x37e3ca[_0x991edf(0x2fe)]:{_0x14b588=_0x38059d(_0x49a15c,_0x58921a);break;}case _0x37e3ca[_0x991edf(0x309)]:{_0x14b588=_0x47f10c(_0x49a15c,_0x58921a);break;}case _0x37e3ca[_0x991edf(0x1a5)]:{_0x14b588=_0x1c3d70(_0x49a15c,_0x58921a);break;}}const _0x4be6fc=_0x89c58f(_0x14b588,_0x58921a),_0x269c4b=this[_0x991edf(0x125)]['get'](_0x438fe0);if(_0x269c4b&&_0x4be6fc){const _0x3822e9={..._0x269c4b,'range':_0x4be6fc};this[_0x991edf(0x125)][_0x991edf(0x1f3)](_0x438fe0,_0x3822e9),_0x2c0f10(()=>{const _0x3eebfe=_0x991edf,_0x8b7121=this[_0x3eebfe(0xf3)]['registerRefRange'](_0x4be6fc,_0x328174=>(_0x8b7121[_0x3eebfe(0x234)](),_0x1f4669(_0x328174,_0x438fe0,_0x589ed6,_0x4be6fc)));_0x25cf5[_0x3eebfe(0x23e)](_0x8b7121);});}return{'redos':[],'undos':[]};};this[_0x326a54(0x125)]['forEach']((_0x44b521,_0x49c610)=>{const _0x19970b=_0x326a54,{range:_0x4a244e,sheetID:_0x455cd9}=_0x44b521,_0x48f17f=this[_0x19970b(0xf3)][_0x19970b(0x239)](_0x4a244e,_0x387e51=>(_0x48f17f[_0x19970b(0x234)](),_0x1f4669(_0x387e51,_0x49c610,_0x455cd9,_0x4a244e)));_0x25cf5['add'](_0x48f17f);});};this[_0x501a2b(0x286)](_0x4b734a(this[_0x501a2b(0x246)]['subscribe'](()=>{_0x2ee9b7();})));}[_0x1e40b1(0x2b9)](){const _0x9f9022=_0x1e40b1;var _0x33cbd3,_0x1fafd9;if(this[_0x9f9022(0x2b8)]=!0x0,((_0x33cbd3=this['_univerInstanceService'][_0x9f9022(0xe8)]())==null?void 0x0:_0x33cbd3[_0x9f9022(0x276)]())!==this[_0x9f9022(0x187)])return;const _0x1f396a=(_0x1fafd9=this[_0x9f9022(0x2f1)][_0x9f9022(0x303)](_0x4bec6f)[_0x9f9022(0x1e5)]())==null?void 0x0:_0x1fafd9[0x0],_0x16c264=this[_0x9f9022(0x194)][_0x9f9022(0x279)](_0x25fa51['UNIVER_SHEET'])['getActiveSheet']();_0x1f396a&&_0x16c264&&this['_updateLocalCursor'](_0x16c264[_0x9f9022(0x2d2)](),_0x1f396a);}[_0x1e40b1(0x115)](){const _0x407f3f=_0x1e40b1;this[_0x407f3f(0x2b8)]=!0x1;}};Be=Bi([B(0x2,_0x2c0e45(_0x3fc224)),B(0x3,_0x2c0e45(Ke)),B(0x4,_0x2c0e45(_0x4d6b15)),B(0x5,_0x161ad0),B(0x6,_0x7462c),B(0x7,_0x2c0e45(_0x4a3acd))],Be);var Yi=Object[_0x1e40b1(0xe0)],Wi=(_0x2d901c,_0x45682c,_0xbf6293,_0x1121d3)=>{const _0x1ed11c=_0x1e40b1;for(var _0x6c02ae=_0x1121d3>0x1?void 0x0:_0x1121d3?Yi(_0x45682c,_0xbf6293):_0x45682c,_0x4012e4=_0x2d901c[_0x1ed11c(0x2a6)]-0x1,_0x57c6f6;_0x4012e4>=0x0;_0x4012e4--)(_0x57c6f6=_0x2d901c[_0x4012e4])&&(_0x6c02ae=_0x57c6f6(_0x6c02ae)||_0x6c02ae);return _0x6c02ae;},Ce=(_0x288c64,_0x343a79)=>(_0x3419ec,_0x52edc9)=>_0x343a79(_0x3419ec,_0x52edc9,_0x288c64);let H=class extends _0x52c72b{constructor(_0x673d37,_0x1c1ba9,_0x3f10c8){const _0x533b73=_0x1e40b1;super(),_(this,'_entities',new Map()),_(this,_0x533b73(0x2f2),new _0x2ecf52()),(this[_0x533b73(0x194)]=_0x673d37,this[_0x533b73(0x2f1)]=_0x1c1ba9,this[_0x533b73(0xdc)]=_0x3f10c8,this[_0x533b73(0x17f)]());}['dispose'](){const _0xe204ce=_0x1e40b1;super[_0xe204ce(0x234)](),this[_0xe204ce(0x2f2)][_0xe204ce(0x29c)](),this[_0xe204ce(0x315)][_0xe204ce(0x150)](_0x10fb24=>_0x10fb24[_0xe204ce(0x234)]());}[_0x1e40b1(0x27f)](_0xca0aab){const _0x9f7c39=_0x1e40b1;return this[_0x9f7c39(0x315)][_0x9f7c39(0x176)](_0xca0aab)?this[_0x9f7c39(0x315)][_0x9f7c39(0x303)](_0xca0aab)[_0x9f7c39(0x1a6)]:this[_0x9f7c39(0x2f2)][_0x9f7c39(0x2b2)](_0x15df19(_0x4368d1=>_0x4368d1['unitID']===_0xca0aab),_0x163538(_0x41278e=>_0x41278e[_0x9f7c39(0x1a6)]));}[_0x1e40b1(0x17f)](){const _0x2c4043=_0x1e40b1;this[_0x2c4043(0x194)][_0x2c4043(0x17d)](_0x25fa51[_0x2c4043(0x212)])[_0x2c4043(0x2b2)](_0x5d9a7c(this[_0x2c4043(0x323)]))[_0x2c4043(0xfd)](async _0x45d10e=>{const _0x8e3220=_0x2c4043,_0x613d4b=_0x45d10e[_0x8e3220(0x276)](),_0x41f913=await this[_0x8e3220(0xe7)](_0x613d4b);this[_0x8e3220(0x2f2)]['next'](_0x41f913),this['_entities'][_0x8e3220(0x1f3)](_0x613d4b,_0x41f913);}),this[_0x2c4043(0x194)][_0x2c4043(0x17d)](_0x25fa51['UNIVER_DOC'])[_0x2c4043(0x2b2)](_0x5d9a7c(this[_0x2c4043(0x323)]))['pipe'](_0x15df19(_0x39306e=>!_0x39306e[_0x2c4043(0x276)]()[_0x2c4043(0x22b)]('__')))[_0x2c4043(0xfd)](async _0xd3d66e=>{const _0x146b90=_0x2c4043,_0x39b6f7=_0xd3d66e[_0x146b90(0x276)](),_0x3c2bc3=await this[_0x146b90(0x231)](_0x39b6f7);this[_0x146b90(0x2f2)]['next'](_0x3c2bc3),this[_0x146b90(0x315)]['set'](_0x39b6f7,_0x3c2bc3);}),_0x212f2b(this[_0x2c4043(0x194)][_0x2c4043(0x18a)](_0x25fa51[_0x2c4043(0x195)]),this[_0x2c4043(0x194)][_0x2c4043(0x18a)](_0x25fa51[_0x2c4043(0x212)]))[_0x2c4043(0x2b2)](_0x5d9a7c(this[_0x2c4043(0x323)]))[_0x2c4043(0xfd)](_0x4db056=>{const _0x5144a1=_0x2c4043,_0x1cf785=_0x4db056['getUnitId'](),_0x401ddb=this[_0x5144a1(0x315)][_0x5144a1(0x303)](_0x1cf785);_0x401ddb&&(_0x401ddb['dispose'](),this[_0x5144a1(0x315)][_0x5144a1(0x27c)](_0x1cf785));});}async[_0x1e40b1(0xe7)](_0x22433e){const _0x25c218=_0x1e40b1,_0x381ef9=await this[_0x25c218(0xdc)][_0x25c218(0x158)](_0x22433e),_0x5e1b57=this[_0x25c218(0x2f1)][_0x25c218(0xfc)](Be,_0x22433e,_0x381ef9);return _0x5e1b57[_0x25c218(0x30a)](),_0x5e1b57;}async['_startDocCollabCursor'](_0x2bc211){const _0x217078=_0x1e40b1,_0xae4cf1=await this['_collabSessionService'][_0x217078(0x158)](_0x2bc211),_0x2834bf=this[_0x217078(0x2f1)][_0x217078(0xfc)](xe,_0x2bc211,_0xae4cf1);return _0x2834bf['init'](),_0x2834bf;}};H=Wi([Ce(0x0,_0x161ad0),Ce(0x1,_0x2c0e45(_0x3fc224)),Ce(0x2,_0x2c0e45(_0x38b52a))],H);const Q=0x14,at=0xc8,Re=0x4,Vi=0x5;function ji(_0xc1e364,_0x447e82){const _0x1bdb22=_0x1e40b1;let {radius:_0x55dda1,width:_0x586aa6,height:_0xbdd782}=_0x447e82;_0x55dda1=_0x55dda1!=null?_0x55dda1:0x0,_0x586aa6=_0x586aa6!=null?_0x586aa6:0x1e,_0xbdd782=_0xbdd782!=null?_0xbdd782:0x1e;let _0x226eb9=0x0,_0x8ad2c8=0x0,_0x1c8478=0x0;_0x226eb9=_0x8ad2c8=_0x1c8478=Math[_0x1bdb22(0x2b5)](_0x55dda1,_0x586aa6/0x2,_0xbdd782/0x2),_0xc1e364[_0x1bdb22(0x224)](),_0xc1e364[_0x1bdb22(0x2f8)](_0x226eb9,0x0),_0xc1e364[_0x1bdb22(0x25a)](_0x586aa6-_0x8ad2c8,0x0),_0xc1e364[_0x1bdb22(0x120)](_0x586aa6-_0x8ad2c8,_0x8ad2c8,_0x8ad2c8,Math['PI']*0x3/0x2,0x0,!0x1),_0xc1e364[_0x1bdb22(0x25a)](_0x586aa6,_0xbdd782-_0x1c8478),_0xc1e364[_0x1bdb22(0x120)](_0x586aa6-_0x1c8478,_0xbdd782-_0x1c8478,_0x1c8478,0x0,Math['PI']/0x2,!0x1),_0xc1e364[_0x1bdb22(0x25a)](0x0,_0xbdd782),_0xc1e364['lineTo'](0x0,_0x226eb9),_0xc1e364[_0x1bdb22(0x120)](_0x226eb9,_0x226eb9,_0x226eb9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xc1e364['closePath'](),_0x447e82[_0x1bdb22(0x2c4)]&&(_0xc1e364[_0x1bdb22(0x17c)](),_0xc1e364[_0x1bdb22(0x2ad)]=_0x447e82['fill'],_0x447e82[_0x1bdb22(0x2f3)]==='evenodd'?_0xc1e364[_0x1bdb22(0x2c4)](_0x1bdb22(0xe6)):_0xc1e364['fill'](),_0xc1e364[_0x1bdb22(0xe2)]());}class ve extends _0x29b4e3{constructor(_0xb3185d,_0x3bd55e){const _0x35fbcc=_0x1e40b1;super(_0xb3185d,_0x3bd55e),_(this,_0x35fbcc(0x173)),_(this,'text'),(this[_0x35fbcc(0x173)]=_0x3bd55e==null?void 0x0:_0x3bd55e[_0x35fbcc(0x173)],this[_0x35fbcc(0x136)]=_0x3bd55e==null?void 0x0:_0x3bd55e[_0x35fbcc(0x136)]);}static[_0x1e40b1(0x106)](_0x5303f5,_0x3a10fd){const _0x2279fe=_0x1e40b1,{text:_0x686131,color:_0x150baf}=_0x3a10fd;_0x5303f5[_0x2279fe(0x17c)](),_0x5303f5['font']=_0x2279fe(0x2c7);const _0x45b853=_0x5303f5[_0x2279fe(0x138)](_0x686131)[_0x2279fe(0x213)],_0x2e9382=Math['min'](_0x45b853+0x2*Re,at);ji(_0x5303f5,{'height':Q,'radius':0x4,'width':_0x2e9382,'fill':_0x150baf}),_0x5303f5[_0x2279fe(0x2ad)]=_0x2279fe(0x10c);const _0x4e2df8=Re,_0x4c1f70=Q-Vi,_0x2081ba=at-0x2*Re;if(_0x45b853>_0x2081ba){let _0x238830='',_0x336f39=0x0;for(const _0x1bd8b4 of _0x686131){const _0x1af085=_0x5303f5['measureText'](_0x1bd8b4)['width'];if(_0x336f39+_0x1af085<=_0x2081ba-_0x5303f5[_0x2279fe(0x138)](_0x2279fe(0x151))[_0x2279fe(0x213)])_0x238830+=_0x1bd8b4,_0x336f39+=_0x1af085;else{_0x238830+=_0x2279fe(0x151);break;}}_0x5303f5[_0x2279fe(0x2ae)](_0x238830,_0x4e2df8,_0x4c1f70);}else _0x5303f5[_0x2279fe(0x2ae)](_0x686131,_0x4e2df8,_0x4c1f70);_0x5303f5[_0x2279fe(0xe2)]();}[_0x1e40b1(0xd8)](_0x9af987){const _0x45704f=_0x1e40b1;ve[_0x45704f(0x106)](_0x9af987,this);}}const De=_0x1e40b1(0x1ad),Xi='collab-text-range-',Gi=_0x1e40b1(0x19e),z=0x6,Ki=1.5,Ne=0x4,zi=1.5,Ji=_0x1e40b1(0x30c);class ct{constructor(_0x4c5ed6,_0x3aaf4d,_0x1b932d,_0x5f41b7){const _0x4a662f=_0x1e40b1;_(this,'_shapes',[]),_(this,_0x4a662f(0x192),null),_(this,_0x4a662f(0x15e),null),_(this,_0x4a662f(0x1a0),null),_(this,_0x4a662f(0x183),null),_(this,'_eventUnsubscribe',null),(this[_0x4a662f(0x1b8)]=_0x4c5ed6,this[_0x4a662f(0x147)]=_0x3aaf4d,this[_0x4a662f(0x1b3)]=_0x1b932d,this[_0x4a662f(0x1cd)]=_0x5f41b7,this[_0x4a662f(0x167)]());}set[_0x1e40b1(0x179)](_0x3fe76e){const _0x462d00=_0x1e40b1;_0x3fe76e?(this[_0x462d00(0x1a0)]&&this[_0x462d00(0x1a0)][_0x462d00(0x26a)](),this['_textBubble']&&this[_0x462d00(0x15e)][_0x462d00(0xff)]()):(this[_0x462d00(0x1a0)]&&this[_0x462d00(0x1a0)][_0x462d00(0xff)](),this['_textBubble']&&this[_0x462d00(0x15e)]['hide']());}['dispose'](){const _0x22a349=_0x1e40b1;for(const _0x4d53e7 of this[_0x22a349(0x280)])_0x4d53e7[_0x22a349(0x234)]();this['_textBubble']&&this[_0x22a349(0x15e)][_0x22a349(0x234)](),this['_anchorDot']&&this[_0x22a349(0x1a0)][_0x22a349(0x234)](),this[_0x22a349(0x192)]&&this[_0x22a349(0x192)]['dispose'](),this['_eventUnsubscribe']&&this[_0x22a349(0x2ff)]();}[_0x1e40b1(0x167)](){const _0x217f29=_0x1e40b1;var _0x3481ba;const {_docSkeleton:_0x5ef386,_document:_0x5ce62c}=this,{color:_0x3a9236,name:_0x289bc2,ranges:_0x1d2ac1}=this[_0x217f29(0x1b8)],_0x3f8934=_0x5ce62c[_0x217f29(0x250)](),{docsLeft:_0x19308d,docsTop:_0x4ef774}=_0x3f8934,_0x49a271=new _0x2573ee(_0x3f8934,_0x5ef386);for(const {startOffset:_0x3f8ca5,endOffset:_0x4df5d7,rangeType:_0x427ddb,segmentId:_0x409324,segmentPage:_0x32945a,collapsed:_0x260890,isActive:_0x52ba18}of _0x1d2ac1){const _0x5c1846=_0x5ef386[_0x217f29(0x140)](_0x3f8ca5,!0x0,_0x409324,_0x32945a);let _0x5149b4=_0x5ef386[_0x217f29(0x140)](_0x4df5d7,!0x0,_0x409324,_0x32945a);if(_0x5149b4==null&&(_0x5149b4=_0x5ef386[_0x217f29(0x140)](_0x4df5d7-0x1,!0x1,_0x409324,_0x32945a)),_0x52ba18){const {contentBoxPointGroup:_0x4ecf48}=_0x49a271[_0x217f29(0x20b)](_0x5149b4,_0x5149b4);if(_0x4ecf48[_0x217f29(0x2a6)]===0x0)continue;this[_0x217f29(0x27e)](_0x3a9236,_0x4ecf48,_0x19308d,_0x4ef774,_0x289bc2),this['_eventUnsubscribe']=this[_0x217f29(0x307)]();}if(_0x5c1846&&_0x5149b4){if(_0x427ddb===_0x4cbb3c[_0x217f29(0x2c1)]){const _0x4d3ea4=new _0x47b2a6(_0x3f8934,_0x5ef386),{pointGroup:_0x850390}=(_0x3481ba=_0x4d3ea4[_0x217f29(0x20b)](_0x5c1846,_0x5149b4))!=null?_0x3481ba:{};if(_0x850390==null||_0x850390[_0x217f29(0x2a6)]===0x0)continue;this[_0x217f29(0x321)](_0x3a9236,_0x850390,_0x19308d,_0x4ef774);}else{if(!_0x260890){const {borderBoxPointGroup:_0x2ad8bd}=_0x49a271[_0x217f29(0x20b)](_0x5c1846,_0x5149b4);if(_0x2ad8bd['length']===0x0)continue;this['_drawTextRange'](_0x3a9236,_0x2ad8bd,_0x19308d,_0x4ef774);}}}}}[_0x1e40b1(0x27e)](_0x78a844,_0x567cf9,_0x2e07d9,_0x5cbc33,_0x23880b){const _0x3726f8=_0x1e40b1,_0x55113a=this[_0x3726f8(0x18d)](_0x567cf9),{left:_0x48b4f5,top:_0x4a0b36,height:_0x3a64d8}=_0x55113a,_0x1a4014=this[_0x3726f8(0x215)](),_0x7f1629=zi/_0x1a4014,_0x5bba12=new _0x4d3d55(De+_0x2b8a5d(z),{'left':_0x48b4f5+_0x2e07d9-_0x7f1629,'top':_0x4a0b36+_0x5cbc33,'height':_0x3a64d8,'width':Ki,'fill':_0x78a844||_0xe0e13e(_0x2162bc[_0x3726f8(0x104)],0x0),'strokeWidth':_0x7f1629,'stroke':Ji,'evented':!0x0});this[_0x3726f8(0x192)]=_0x5bba12,this['_scene'][_0x3726f8(0x26d)](_0x5bba12,_0x4973ed);const _0x42c84d=new _0x4d3d55(De+_0x2b8a5d(z),{'left':_0x48b4f5+_0x2e07d9-_0x7f1629,'top':_0x4a0b36+_0x5cbc33-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x78a844||_0xe0e13e(_0x2162bc[_0x3726f8(0x104)],0x0),'strokeWidth':0x0,'stroke':_0x78a844||_0xe0e13e(_0x2162bc[_0x3726f8(0x104)],0x0),'evented':!0x1});this['_anchorDot']=_0x42c84d,this[_0x3726f8(0x147)][_0x3726f8(0x26d)](_0x42c84d,_0x4973ed);const _0x478963=new ve(De+_0x2b8a5d(z),{'left':_0x48b4f5+_0x2e07d9-_0x7f1629,'top':_0x4a0b36+_0x5cbc33-Q,'text':_0x23880b,'color':_0x78a844});this[_0x3726f8(0x15e)]=_0x478963,this[_0x3726f8(0x147)][_0x3726f8(0x26d)](_0x478963,_0x4973ed),this['_hover']=!0x1;}[_0x1e40b1(0x307)](){const _0x5be5f0=_0x1e40b1,_0x428628=this[_0x5be5f0(0x192)][_0x5be5f0(0x1d7)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x37e8c0=this['_anchor'][_0x5be5f0(0x2b6)]['subscribeEvent'](()=>{const _0x1ebaad=_0x5be5f0;this[_0x1ebaad(0x183)]&&clearTimeout(this[_0x1ebaad(0x183)]),this[_0x1ebaad(0x183)]=setTimeout(()=>{const _0x48d06c=_0x1ebaad;this[_0x48d06c(0x179)]=!0x1;},0x7d0);});return()=>{const _0x50e1c1=_0x5be5f0;_0x428628[_0x50e1c1(0x205)](),_0x37e8c0['unsubscribe']();};}['_drawTextRange'](_0x3eaabe,_0x1dd181,_0x361121,_0x4b930c){const _0x5f26e7=_0x1e40b1,_0x4e7fe5=new _0x5d75b4(_0x3eaabe)['setAlpha'](0.2)[_0x5f26e7(0x291)](),_0x4f004a=new _0x13a851(Xi+_0x2b8a5d(z),{'pointsGroup':_0x1dd181,'fill':_0x4e7fe5||_0xe0e13e(_0x2162bc[_0x5f26e7(0x104)],0.2),'left':_0x361121,'top':_0x4b930c,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4f004a),this[_0x5f26e7(0x147)][_0x5f26e7(0x26d)](_0x4f004a,_0x4973ed);}['_drawRectRange'](_0x2d4a2c,_0x450bdc,_0x17acab,_0x331d69){const _0x5de789=_0x1e40b1,_0x1fb71c=new _0x5d75b4(_0x2d4a2c)[_0x5de789(0x2f9)](0.2)[_0x5de789(0x291)](),_0x3050d1=new _0x13a851(Gi+_0x2b8a5d(z),{'pointsGroup':_0x450bdc,'fill':_0x1fb71c||_0xe0e13e(_0x2162bc[_0x5de789(0x104)],0.2),'left':_0x17acab,'top':_0x331d69,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5de789(0x2e7)](_0x3050d1),this[_0x5de789(0x147)][_0x5de789(0x26d)](_0x3050d1,_0x4973ed);}[_0x1e40b1(0x18d)](_0x2b5363){const _0x364f42=_0x2b5363[0x0],_0x118197=_0x364f42[0x0],_0x1f6c52=_0x364f42[0x2],{x:_0x4442ee,y:_0x1511cd}=_0x118197,{x:_0x44e2a9,y:_0x4256ab}=_0x1f6c52;return{'left':_0x4442ee,'top':_0x1511cd,'width':_0x44e2a9-_0x4442ee,'height':_0x4256ab-_0x1511cd};}[_0x1e40b1(0x215)](){const _0x4b5fa7=_0x1e40b1,{scaleX:_0x4926eb,scaleY:_0x4c4929}=this['_scene'][_0x4b5fa7(0x24b)]();return Math[_0x4b5fa7(0x11a)](_0x4926eb,_0x4c4929);}}var Zi=Object[_0x1e40b1(0xe0)],Qi=(_0x4b15d8,_0x2da623,_0x11c355,_0x3b5adf)=>{const _0xcc0b48=_0x1e40b1;for(var _0x193682=_0x3b5adf>0x1?void 0x0:_0x3b5adf?Zi(_0x2da623,_0x11c355):_0x2da623,_0x3bdb82=_0x4b15d8[_0xcc0b48(0x2a6)]-0x1,_0x1dbc7e;_0x3bdb82>=0x0;_0x3bdb82--)(_0x1dbc7e=_0x4b15d8[_0x3bdb82])&&(_0x193682=_0x1dbc7e(_0x193682)||_0x193682);return _0x193682;},ie=(_0x1ee054,_0x4817b6)=>(_0x1c71e0,_0x248627)=>_0x4817b6(_0x1c71e0,_0x248627,_0x1ee054);let Fe=class extends _0x52c72b{constructor(_0x18e5bc,_0x446336,_0x51dba5,_0x8cf331,_0x189072){const _0x56dfbb=_0x1e40b1;super(),_(this,_0x56dfbb(0x228),[]),_(this,'_cursors',[]),(this['_context']=_0x18e5bc,this[_0x56dfbb(0x148)]=_0x446336,this[_0x56dfbb(0x1f2)]=_0x51dba5,this[_0x56dfbb(0x2c8)]=_0x8cf331,this[_0x56dfbb(0x1e7)]=_0x189072,this[_0x56dfbb(0x17f)]());}['_init'](){const _0x7da02=_0x1e40b1,_0x52081b=this[_0x7da02(0x28d)][_0x7da02(0x170)],_0x4a1b86=this[_0x7da02(0x148)];this[_0x7da02(0x286)](_0x486491([this['_collabCursorController'][_0x7da02(0x27f)](_0x52081b),this[_0x7da02(0x1e7)][_0x7da02(0x290)]])[_0x7da02(0x2b2)](_0x4ad3b0(([_0x2ceb36,_0x10bf7d])=>({'skeleton':_0x4a1b86[_0x7da02(0x197)](),'cursors':[..._0x2ceb36['values']()][_0x7da02(0x2a8)](_0x3d0855=>({..._0x3d0855,'color':this['_themeService']['getColorFromTheme'](_0x3d0855[_0x7da02(0x173)])}))})))[_0x7da02(0xfd)](_0x1ed65d=>{const _0x5a4d0e=_0x7da02;if(this[_0x5a4d0e(0x2fd)](),_0x1ed65d){const {skeleton:_0x1e6a88,cursors:_0x2b2644}=_0x1ed65d;this[_0x5a4d0e(0x164)](_0x1e6a88,_0x2b2644);}})),this['_initResize'](),this[_0x7da02(0x2e1)]();}['_updateCollabCursors'](_0x1a4e20,_0x5f54c2){const _0x32357a=_0x1e40b1,{scene:_0x21c8d9,mainComponent:_0x46f7e2}=this[_0x32357a(0x28d)],_0x3d79e2=_0x5f54c2[_0x32357a(0x1de)](_0x33f052=>new ct(_0x33f052,_0x21c8d9,_0x1a4e20,_0x46f7e2));this[_0x32357a(0x228)]=_0x3d79e2,this[_0x32357a(0x252)]=_0x5f54c2;}[_0x1e40b1(0x107)](){const _0x2d574a=_0x1e40b1;this[_0x2d574a(0x2fd)]();const {scene:_0x450c1a,mainComponent:_0x4b7406}=this[_0x2d574a(0x28d)],_0x5592f6=this[_0x2d574a(0x148)]['getSkeleton'](),_0x31b75d=this['_cursors']['map'](_0x2f2775=>new ct(_0x2f2775,_0x450c1a,_0x5592f6,_0x4b7406));this[_0x2d574a(0x228)]=_0x31b75d;}[_0x1e40b1(0x2fd)](){const _0x53f1ed=_0x1e40b1;this[_0x53f1ed(0x228)][_0x53f1ed(0x150)](_0x4fce93=>_0x4fce93[_0x53f1ed(0x234)]()),this[_0x53f1ed(0x228)]=[];}['_initCommandExecutedListener'](){const _0x50c1bc=_0x1e40b1,_0x30a089=[_0x350f79['id']];this['disposeWithMe'](this[_0x50c1bc(0x2c8)][_0x50c1bc(0xd1)](_0x50fcf4=>{const _0xd3dc5a=_0x50c1bc;_0x30a089[_0xd3dc5a(0xf6)](_0x50fcf4['id'])&&_0x50fcf4[_0xd3dc5a(0x327)][_0xd3dc5a(0x170)]===this[_0xd3dc5a(0x28d)][_0xd3dc5a(0x170)]&&this['_refreshCollabCursors']();}));}[_0x1e40b1(0x227)](){const _0x81462a=_0x1e40b1;this['disposeWithMe'](_0x5026b8(this[_0x81462a(0x28d)][_0x81462a(0x169)]['onTransformChange$'])['pipe'](_0x1194e9(_0x5d8eaa=>_0x5d8eaa['type']===_0x35411e[_0x81462a(0x160)]),_0xe140a4(0x10))[_0x81462a(0xfd)](()=>{const _0x1a44ab=_0x81462a;this[_0x1a44ab(0x107)]();}));}};Fe=Qi([ie(0x1,_0x2c0e45(_0x1842c9)),ie(0x2,_0x2c0e45(H)),ie(0x3,_0x7462c),ie(0x4,_0x2c0e45(_0x200d5a))],Fe);const qi=0x1,en=1.5;class tn extends _0x29b4e3{constructor(_0x10c4ef,_0x48dcd8){const _0x3f432c=_0x1e40b1;super(_0x10c4ef,_0x48dcd8),_(this,_0x3f432c(0x2f0)),_(this,_0x3f432c(0x198),!0x1),_(this,_0x3f432c(0x210)),_(this,_0x3f432c(0x2f6),''),_(this,_0x3f432c(0x1a1),_0x3f432c(0x178)),_(this,_0x3f432c(0x2d0)),(_0x48dcd8&&this[_0x3f432c(0x2a0)](_0x48dcd8),this['onPointerEnter$'][_0x3f432c(0x310)](()=>this[_0x3f432c(0x2a0)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x3f432c(0x2a0)]({'hovered':!0x1})));}['setShapeProps'](_0x34421f){const _0xc16960=_0x1e40b1;var _0x55996c,_0x816429,_0x4c5426,_0x240c3f,_0x3fd8aa,_0x21e078;this[_0xc16960(0x2f0)]=(_0x55996c=_0x34421f['color'])!=null?_0x55996c:this['_color'],this[_0xc16960(0x198)]=(_0x816429=_0x34421f[_0xc16960(0x2c2)])!=null?_0x816429:this[_0xc16960(0x198)],this['_range']=(_0x4c5426=_0x34421f[_0xc16960(0x2e3)])!=null?_0x4c5426:this[_0xc16960(0x210)],this['_name']=(_0x240c3f=_0x34421f['name'])!=null?_0x240c3f:this[_0xc16960(0x2f6)],this[_0xc16960(0x1a1)]=(_0x3fd8aa=_0x34421f['labelPosition'])!=null?_0x3fd8aa:this[_0xc16960(0x1a1)],this[_0xc16960(0x2d0)]=(_0x21e078=_0x34421f[_0xc16960(0x1af)])!=null?_0x21e078:this[_0xc16960(0x2d0)],this[_0xc16960(0x260)]({'width':_0x34421f[_0xc16960(0x213)],'height':_0x34421f[_0xc16960(0xee)]});}[_0x1e40b1(0x1a2)](_0x2a9206){const _0x2561c6=_0x1e40b1,{row:_0x22c1b2,column:_0x2ef1e9}=_0x2a9206;if(_0x22c1b2>=this['_range'][_0x2561c6(0x293)]&&_0x22c1b2<=this[_0x2561c6(0x210)][_0x2561c6(0x245)]&&_0x2ef1e9>=this[_0x2561c6(0x210)][_0x2561c6(0x1c3)]&&_0x2ef1e9<=this[_0x2561c6(0x210)][_0x2561c6(0x1b5)]){this[_0x2561c6(0x2a0)]({'hovered':!0x0});return;}this[_0x2561c6(0x2a0)]({'hovered':!0x1});}[_0x1e40b1(0x1bb)](_0x72967b){return!0x1;}[_0x1e40b1(0xd8)](_0x46f901){const _0x33f0e6=_0x1e40b1;_0x4d3d55[_0x33f0e6(0x106)](_0x46f901,{'width':this[_0x33f0e6(0x213)],'height':this['height'],'strokeWidth':en,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x33f0e6(0x2d0)]}),this['_hovered']&&(_0x46f901[_0x33f0e6(0x17c)](),_0x46f901[_0x33f0e6(0x2da)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x33f0e6(0x26f)?0x0:-Q),ve['drawWith'](_0x46f901,{'text':this[_0x33f0e6(0x2f6)],'color':this['_color']}),_0x46f901[_0x33f0e6(0xe2)]());}}var sn=Object[_0x1e40b1(0xe0)],nn=(_0x3043e6,_0x4c0fde,_0x1ced30,_0x5897c6)=>{const _0x50c699=_0x1e40b1;for(var _0x4bb1f3=_0x5897c6>0x1?void 0x0:_0x5897c6?sn(_0x4c0fde,_0x1ced30):_0x4c0fde,_0x55abf8=_0x3043e6[_0x50c699(0x2a6)]-0x1,_0xe03e35;_0x55abf8>=0x0;_0x55abf8--)(_0xe03e35=_0x3043e6[_0x55abf8])&&(_0x4bb1f3=_0xe03e35(_0x4bb1f3)||_0x4bb1f3);return _0x4bb1f3;},be=(_0x1118b7,_0x4b737a)=>(_0x3b6e90,_0x26ae9a)=>_0x4b737a(_0x3b6e90,_0x26ae9a,_0x1118b7);const rn=0x1389;let ke=class extends _0x52c72b{constructor(_0x14b435,_0x1dfac3,_0x6372d4,_0x5bfa8c){const _0x4abd92=_0x1e40b1;super(),_(this,'_cursors',new Set()),_(this,_0x4abd92(0x14f),null),(this[_0x4abd92(0x28d)]=_0x14b435,this[_0x4abd92(0x2ab)]=_0x1dfac3,this[_0x4abd92(0x1f2)]=_0x6372d4,this[_0x4abd92(0x1e7)]=_0x5bfa8c,this[_0x4abd92(0x17f)]());}[_0x1e40b1(0x17f)](){const _0x17fd7a=_0x1e40b1;this[_0x17fd7a(0x2ab)]['currentSkeleton$'][_0x17fd7a(0x2b2)](_0x25496f(this[_0x17fd7a(0x323)]),_0x46468b(_0x98662a=>{const _0x148e8d=_0x17fd7a;if(_0x98662a){const _0x4d774f=_0x98662a[_0x148e8d(0x1d4)];return _0x486491(this[_0x148e8d(0x1f2)][_0x148e8d(0x27f)](this['_context'][_0x148e8d(0x170)]),this['_themeService'][_0x148e8d(0x290)])[_0x148e8d(0x2b2)](_0x4ad3b0(([_0x435703,_0x465d74])=>{const _0x1969ab=new Map();return _0x435703['forEach']((_0x373201,_0x367eb9)=>{const _0x192691=_0x38fa;if(_0x373201['sheetID']===_0x4d774f){const _0x296f40={..._0x373201};_0x296f40[_0x192691(0x173)]=this[_0x192691(0x1e7)][_0x192691(0x242)](_0x373201['color']),_0x1969ab[_0x192691(0x1f3)](_0x367eb9,_0x296f40);}}),{'skeleton':_0x98662a,'cursors':_0x1969ab};}));}return _0x1b1789({'skeleton':null,'cursors':new Map()});}))[_0x17fd7a(0xfd)](({skeleton:_0x49a7eb,cursors:_0x5d7f31})=>{const _0x1f7c7a=_0x17fd7a;this['_removeCollabCursors'](),_0x49a7eb&&this[_0x1f7c7a(0x164)](_0x49a7eb,_0x5d7f31);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x17fd7a(0xfd)](_0xb02db=>{const _0x53e595=_0x17fd7a;if(_0xb02db==null)return;const {skeleton:_0x3bc561}=_0xb02db,{scene:_0x1d5efc}=this[_0x53e595(0x28d)];_0x1d5efc[_0x53e595(0x319)][_0x53e595(0x310)](_0x480f0d(_0x26d5bc=>{const _0x299896=_0x53e595;var _0x5ba213,_0x382e80;const {offsetX:_0x482f28,offsetY:_0x294f96}=_0x26d5bc,{x:_0x235258,y:_0x22ca7e}=_0x1d5efc[_0x299896(0x1b9)](_0x5c81fa['FromArray']([_0x482f28,_0x294f96])),{scaleX:_0x2aa6d1,scaleY:_0x5c837d}=_0x1d5efc[_0x299896(0x24b)](),_0x4726b5=_0x1d5efc[_0x299896(0x196)](_0x1b7b1e[_0x299896(0x2d4)]),_0x5ce94d=_0x1d5efc[_0x299896(0xf1)](_0x5c81fa[_0x299896(0x25d)]([_0x235258,_0x22ca7e]),_0x4726b5),_0x1870ca=_0x3bc561[_0x299896(0x13b)](_0x482f28,_0x294f96,_0x2aa6d1,_0x5c837d,_0x5ce94d);((_0x5ba213=this[_0x299896(0x14f)])==null?void 0x0:_0x5ba213[_0x299896(0x222)])===_0x1870ca[_0x299896(0x222)]&&((_0x382e80=this[_0x299896(0x14f)])==null?void 0x0:_0x382e80[_0x299896(0x2a9)])===_0x1870ca[_0x299896(0x2a9)]||this['_cursors'][_0x299896(0x150)](_0x185e09=>{const _0x10bbbd=_0x299896;_0x185e09[_0x10bbbd(0x1a2)](_0x1870ca);});},0x64));});}[_0x1e40b1(0x164)](_0x279063,_0x7f940e){const _0x3a557e=_0x1e40b1;var _0x2e308d;const _0xfc677d=(_0x2e308d=this[_0x3a557e(0x2ab)]['getCurrent']())==null?void 0x0:_0x2e308d['skeleton'];if(!_0xfc677d)return;const _0x5ba661=this['_getSheetObject']();if(!_0x5ba661)return;this[_0x3a557e(0x252)][_0x3a557e(0x150)](_0x3bd9ae=>{const _0xea194d=_0x3a557e;_0x3bd9ae[_0xea194d(0x23f)]();});const {scene:_0x44ebf9}=_0x5ba661,_0x3d3ec9=on(Array['from'](_0x7f940e[_0x3a557e(0x156)]()))[_0x3a557e(0x1de)](_0x37edba=>{const _0x5dce5d=_0x3a557e,{color:_0x2d18fa,range:_0x27b385,name:_0x1986f9,selection:_0x4f3046,sheetID:_0xf2a2cb}=_0x37edba,{startColumn:_0xb2514e,startRow:_0x55f25f,endColumn:_0x3f62fe,endRow:_0x39fd43}=_0x27b385,_0x40b322=_0x4ae2c3(_0x55f25f,_0xb2514e,_0x44ebf9,_0xfc677d),_0x80e703=_0x4ae2c3(_0x39fd43,_0x3f62fe,_0x44ebf9,_0xfc677d),{columnHeaderHeightAndMarginTop:_0x2463ba}=_0xfc677d,{startX:_0x2702cb,startY:_0x68acd8}=_0x40b322,{endX:_0x501705,endY:_0x381d5a}=_0x80e703,_0x3c927a=_0x501705-_0x2702cb,_0x3dc03e=_0x381d5a-_0x68acd8,_0x30a20a={'labelPosition':_0x68acd8-_0x2463ba>=Q?'top':_0x5dce5d(0x26f),'sheetID':_0xf2a2cb,'range':_0x27b385,'color':_0x2d18fa,'name':_0x1986f9,'selection':_0x4f3046,'left':_0x2702cb,'top':_0x68acd8,'width':_0x3c927a,'height':_0x3dc03e,'evented':!0x1,'zIndex':rn};return new tn(_0x1986f9,_0x30a20a);});_0x44ebf9['addObjects'](_0x3d3ec9,qi),this[_0x3a557e(0x252)]=new Set(_0x3d3ec9);}[_0x1e40b1(0x2fd)](){const _0x3369d6=_0x1e40b1;var _0x1f2691;(_0x1f2691=this['_cursors'])==null||_0x1f2691['forEach'](_0x22ca5d=>_0x22ca5d[_0x3369d6(0x234)]());}[_0x1e40b1(0x256)](){const _0x1c0c61=_0x1e40b1;return _0x542516(this[_0x1c0c61(0x28d)][_0x1c0c61(0xf0)],this[_0x1c0c61(0x28d)]);}};ke=nn([be(0x1,_0x2c0e45(_0x2e6db2)),be(0x2,_0x2c0e45(H)),be(0x3,_0x2c0e45(_0x200d5a))],ke);function on(_0x13d47c){const _0x202983=_0x1e40b1,_0x54569d=new Map();return _0x13d47c[_0x202983(0x150)](_0x5da13d=>{const _0x4ecebe=_0x202983;if(_0x54569d[_0x4ecebe(0x176)](_0x5da13d[_0x4ecebe(0x10e)])){const _0x43b549=_0x54569d[_0x4ecebe(0x303)](_0x5da13d['selection']);_0x43b549[_0x4ecebe(0x122)]+=',\x20'+_0x5da13d[_0x4ecebe(0x122)];}else _0x54569d[_0x4ecebe(0x1f3)](_0x5da13d[_0x4ecebe(0x10e)],_0x5da13d);}),Array[_0x202983(0x2e6)](_0x54569d[_0x202983(0x156)]());}var an=Object[_0x1e40b1(0xe0)],cn=(_0x24ad3b,_0x29ad9c,_0x43d123,_0x121864)=>{for(var _0xf1fe6e=_0x121864>0x1?void 0x0:_0x121864?an(_0x29ad9c,_0x43d123):_0x29ad9c,_0x1fda3c=_0x24ad3b['length']-0x1,_0x206df5;_0x1fda3c>=0x0;_0x1fda3c--)(_0x206df5=_0x24ad3b[_0x1fda3c])&&(_0xf1fe6e=_0x206df5(_0xf1fe6e)||_0xf1fe6e);return _0xf1fe6e;},F=(_0x193401,_0x173412)=>(_0xa1ba8f,_0x3c21f6)=>_0x173412(_0xa1ba8f,_0x3c21f6,_0x193401);let _e=class extends _0x4e2370{constructor(_0x4b2001,_0x40e7a7,_0x329925,_0x3ce750,_0x5b9a41,_0x836a4f){const _0xeb12ff=_0x1e40b1;super(),this[_0xeb12ff(0x1bd)]=_0x4b2001,this[_0xeb12ff(0x1f6)]=_0x40e7a7,this[_0xeb12ff(0x2eb)]=_0x329925,this['_messageService']=_0x3ce750,this[_0xeb12ff(0x243)]=_0x5b9a41,this[_0xeb12ff(0x149)]=_0x836a4f,this[_0xeb12ff(0x14d)](),this['_initEvent']();}[_0x1e40b1(0x14d)](){const _0x563297=_0x1e40b1;this['disposeWithMe'](this[_0x563297(0x1bd)][_0x563297(0x1d9)](()=>{const _0x4b0318=_0x563297;if(this[_0x4b0318(0x1f6)]['saveTaskMap']['size'])return this[_0x4b0318(0x149)]['t'](_0x4b0318(0x141));}));}[_0x1e40b1(0x2d7)](){const _0x1a1548=_0x1e40b1;this[_0x1a1548(0x286)](this[_0x1a1548(0x2eb)][_0x1a1548(0x11c)]['subscribe'](_0x1b82bb=>{const _0x5e268f=_0x1a1548;_0x1b82bb['id']===_0x29a27e['OTHER_CLIENT_EDITING']&&this[_0x5e268f(0x253)][_0x5e268f(0xff)]({'type':_0x413557[_0x5e268f(0x317)],'content':this[_0x5e268f(0x149)]['t'](_0x5e268f(0x22a))}),_0x1b82bb['id']===_0x29a27e[_0x5e268f(0x17a)]&&this[_0x5e268f(0x253)]['show']({'type':_0x413557['Warning'],'content':this[_0x5e268f(0x149)]['t'](_0x5e268f(0x1eb))}),_0x1b82bb['id']===_0x29a27e[_0x5e268f(0x1c9)]&&this[_0x5e268f(0x243)][_0x5e268f(0xff)]({'title':this[_0x5e268f(0x149)]['t'](_0x5e268f(0x23d)),'content':this[_0x5e268f(0x149)]['t'](_0x5e268f(0x27d)),'type':_0x5e268f(0x2cd),'duration':0x0}),_0x1b82bb['id']===_0x29a27e['CONFLICT']&&this[_0x5e268f(0x253)]['show']({'type':_0x413557[_0x5e268f(0x1df)],'content':this[_0x5e268f(0x149)]['t'](_0x5e268f(0x1eb))+'('+_0x1b82bb['data']+')'}),_0x1b82bb['id']===_0x29a27e[_0x5e268f(0x29d)]&&this[_0x5e268f(0x253)][_0x5e268f(0xff)]({'type':_0x413557['Warning'],'content':this[_0x5e268f(0x149)]['t'](_0x1b82bb[_0x5e268f(0x17b)]||'')}),_0x1b82bb['id']===_0x29a27e['SOCKET_FAILED_RETRY']&&this[_0x5e268f(0x253)][_0x5e268f(0xff)]({'type':_0x413557['Warning'],'content':this['_localeService']['t'](_0x5e268f(0x289))}),_0x1b82bb['id']===_0x29a27e[_0x5e268f(0x240)]&&this['_messageService'][_0x5e268f(0xff)]({'type':_0x413557[_0x5e268f(0x1df)],'content':this['_localeService']['t'](_0x5e268f(0x133))}),_0x1b82bb['id']===_0x29a27e[_0x5e268f(0x2b7)]&&this['_messageService'][_0x5e268f(0xff)]({'type':_0x413557[_0x5e268f(0x1df)],'content':this[_0x5e268f(0x149)]['t']('session.collaboration-timeout')});}));}};_e=cn([F(0x0,_0x3cd0f6),F(0x1,_0x51b584),F(0x2,_0x2c0e45(_0xfcb14b)),F(0x3,_0x5aac8c),F(0x4,_0x5c99d5),F(0x5,_0x2c0e45(_0x51435d))],_e);var _n=Object[_0x1e40b1(0xe0)],ln=(_0x145493,_0x145f85,_0x32aa64,_0x33e0d8)=>{const _0x48e6fb=_0x1e40b1;for(var _0x170331=_0x33e0d8>0x1?void 0x0:_0x33e0d8?_n(_0x145f85,_0x32aa64):_0x145f85,_0x5b3c14=_0x145493[_0x48e6fb(0x2a6)]-0x1,_0x46b9f7;_0x5b3c14>=0x0;_0x5b3c14--)(_0x46b9f7=_0x145493[_0x5b3c14])&&(_0x170331=_0x46b9f7(_0x170331)||_0x170331);return _0x170331;},ne=(_0x25de80,_0x452a94)=>(_0x22ebba,_0x3b1a53)=>_0x452a94(_0x22ebba,_0x3b1a53,_0x25de80);let le=class extends _0x4e2370{constructor(_0x2258f9,_0x53b322,_0x330ab2,_0x4113cd){const _0x2b68a1=_0x1e40b1;super(),_(this,_0x2b68a1(0x24a)),(this['_injector']=_0x2258f9,this['_httpService']=_0x53b322,this[_0x2b68a1(0x302)]=_0x330ab2,this[_0x2b68a1(0x12e)]=_0x4113cd,this[_0x2b68a1(0x17f)]());}[_0x1e40b1(0x17f)](){const _0x5f3271=_0x1e40b1;this[_0x5f3271(0x1fe)](),this['_initUnhandledRejectionListener'](),this[_0x5f3271(0x11f)](),this[_0x5f3271(0x21a)]();}[_0x1e40b1(0x21a)](){const _0x56f344=_0x1e40b1;this[_0x56f344(0x286)](this[_0x56f344(0x12e)][_0x56f344(0x2b1)][_0x56f344(0xfd)](_0x4a44ef=>{const _0x1888f7=_0x56f344;this[_0x1888f7(0x24a)]=_0x4a44ef==null?void 0x0:_0x4a44ef[_0x1888f7(0x207)];}));}[_0x1e40b1(0x1fe)](){const _0x58dc47=_0x1e40b1,_0x36470d=_0x327dcb=>{const _0x13aadb=_0x38fa;var _0x4fedcd;this[_0x13aadb(0x28a)](_0x13aadb(0x2cd),_0x13aadb(0x1c0)+_0x327dcb['message']+_0x13aadb(0x20e)+_0x327dcb[_0x13aadb(0x314)]+':'+_0x327dcb[_0x13aadb(0x2d5)]+':'+_0x327dcb[_0x13aadb(0x15c)]+'\x0a'+(((_0x4fedcd=_0x327dcb['error'])==null?void 0x0:_0x4fedcd[_0x13aadb(0x190)])||''));};window['addEventListener'](_0x58dc47(0x2cd),_0x36470d),this[_0x58dc47(0x286)](()=>{const _0xa8103f=_0x58dc47;window[_0xa8103f(0x2bd)](_0xa8103f(0x2cd),_0x36470d);});}['_initUnhandledRejectionListener'](){const _0x5948fa=_0x1e40b1,_0x12fd63=_0x35f530=>{const _0x45dd3d=_0x38fa;this[_0x45dd3d(0x28a)](_0x45dd3d(0x2cd),_0x45dd3d(0x16e)+_0x35f530[_0x45dd3d(0x254)]);};window[_0x5948fa(0x1c6)]('unhandledrejection',_0x12fd63),this['disposeWithMe'](()=>{const _0x8c1b0f=_0x5948fa;window[_0x8c1b0f(0x2bd)]('unhandledrejection',_0x12fd63);});}[_0x1e40b1(0x11f)](){const _0x56f9a3=_0x1e40b1,_0x55ab0f=this[_0x56f9a3(0x302)]['error'][_0x56f9a3(0x2aa)](this[_0x56f9a3(0x302)]);this['_logService']['error']=(..._0x494d6b)=>{const _0x337957=_0x56f9a3,_0x137413=_0x494d6b[_0x337957(0x1de)](_0x16465f=>_0x16465f instanceof Error?_0x16465f[_0x337957(0x11e)]+'\x0a'+_0x16465f['stack']:String(_0x16465f))[_0x337957(0xce)]('\x20');this['_uploadLog'](_0x337957(0x2cd),'[LogService\x20Error]:\x20'+_0x137413),_0x55ab0f(..._0x494d6b);},this['disposeWithMe'](()=>{const _0x2441cc=_0x56f9a3;this[_0x2441cc(0x302)]['error']=_0x55ab0f;});}['_uploadLog'](_0x2ee370,_0x2904ee){const _0x4a4180=_0x1e40b1;try{const _0x4d8ca1={'userId':this[_0x4a4180(0x24a)],'logLabel':_0x2ee370,'content':_0x2904ee};this[_0x4a4180(0x185)][_0x4a4180(0x259)](_0x4a4180(0x1c8),{'body':_0x4d8ca1})[_0x4a4180(0x1da)](()=>{});}catch{}}};le=ln([ne(0x0,_0x2c0e45(_0x3fc224)),ne(0x1,_0x2c0e45(_0xb0aafa)),ne(0x2,_0x29510e),ne(0x3,_0x2c0e45(_0x38b52a))],le);const hn=_0x1e40b1(0x26e),_t={};var un=Object[_0x1e40b1(0xe0)],dn=(_0x48e805,_0x50b1d8,_0x49ab61,_0x52f6dc)=>{const _0x430b73=_0x1e40b1;for(var _0x308d43=_0x52f6dc>0x1?void 0x0:_0x52f6dc?un(_0x50b1d8,_0x49ab61):_0x50b1d8,_0x4cc762=_0x48e805[_0x430b73(0x2a6)]-0x1,_0x5bc34e;_0x4cc762>=0x0;_0x4cc762--)(_0x5bc34e=_0x48e805[_0x4cc762])&&(_0x308d43=_0x5bc34e(_0x308d43)||_0x308d43);return _0x308d43;},lt=(_0x1f40bb,_0x5b722e)=>(_0x567eb0,_0x21f294)=>_0x5b722e(_0x567eb0,_0x21f294,_0x1f40bb);let he=class{constructor(_0x481982,_0x4b7fa8){const _0x20b150=_0x1e40b1;this['_transformService']=_0x481982,this[_0x20b150(0x316)]=_0x4b7fa8;}['transformIMECache'](_0x3d6120){const _0x19b205=_0x1e40b1;this[_0x19b205(0x2cf)](_0x3d6120),this[_0x19b205(0x2db)](_0x3d6120);}[_0x1e40b1(0x112)](_0x3be3fb){const _0x1f8d46=_0x1e40b1,{unitID:_0x49d064}=_0x3be3fb,_0xf8fb7=this['_renderManagerService'][_0x1f8d46(0x1d8)](_0x49d064)[_0x1f8d46(0x109)](_0x208526),{redoCache:_0x470f5b}=_0xf8fb7[_0x1f8d46(0x12a)]();if(_0x470f5b[_0x1f8d46(0x2a6)]===0x0)return _0x3be3fb;let _0x473c80=_0x509f1e['deepClone'](_0x3be3fb[_0x1f8d46(0x101)][0x0]);for(let _0x485923=0x0;_0x485923<_0x470f5b['length'];_0x485923++){const _0x3500bc={'id':_0x1f8d46(0x1f5),'params':{..._0x470f5b[_0x485923]}},_0x4aafcc=this[_0x1f8d46(0x28f)][_0x1f8d46(0xec)](_0x473c80,_0x3500bc,!0x1);if(_0x463700(_0x4aafcc))throw _0x4aafcc[_0x1f8d46(0x2cd)];_0x473c80=_0x4aafcc[_0x1f8d46(0x110)];}return{..._0x509f1e[_0x1f8d46(0x2d6)](_0x3be3fb),'mutations':[_0x473c80]};}[_0x1e40b1(0x2cf)](_0x2e5f5e){const _0x1e93e4=_0x1e40b1,{unitID:_0x310f00}=_0x2e5f5e,_0x553b77=this[_0x1e93e4(0x316)][_0x1e93e4(0x1d8)](_0x310f00)[_0x1e93e4(0x109)](_0x208526),{undoCache:_0xdb8829,redoCache:_0x5ad7cb}=_0x553b77[_0x1e93e4(0x12a)]();if(_0xdb8829[_0x1e93e4(0x2a6)]===0x0||_0x5ad7cb['length']===0x0)return;const _0x32ed6f=[],_0x2b3aac=[];let _0x40b7f7=_0x509f1e[_0x1e93e4(0x2d6)](_0x2e5f5e[_0x1e93e4(0x101)][0x0]),_0x1c90ee=_0x509f1e[_0x1e93e4(0x2d6)](_0x2e5f5e[_0x1e93e4(0x101)][0x0]);for(let _0x41a2b5=_0xdb8829[_0x1e93e4(0x2a6)]-0x1;_0x41a2b5>=0x0;_0x41a2b5--){const _0x5bc905={'id':_0x1e93e4(0x1f5),'params':{..._0xdb8829[_0x41a2b5]}},_0x31424={'id':_0x1e93e4(0x1f5),'params':{..._0x5ad7cb[_0x41a2b5]}},_0x465434=this[_0x1e93e4(0x28f)][_0x1e93e4(0xec)](_0x40b7f7,_0x5bc905,!0x1),_0x3e2e44=this[_0x1e93e4(0x28f)][_0x1e93e4(0xec)](_0x1c90ee,_0x31424,!0x1);if(_0x463700(_0x465434))throw _0x465434[_0x1e93e4(0x2cd)];if(_0x463700(_0x3e2e44))throw _0x3e2e44[_0x1e93e4(0x2cd)];_0x32ed6f['unshift'](_0x465434[_0x1e93e4(0x31d)][_0x1e93e4(0x327)]),_0x2b3aac[_0x1e93e4(0x27a)](_0x3e2e44[_0x1e93e4(0x31d)]['params']),_0x40b7f7=_0x465434[_0x1e93e4(0x110)],_0x1c90ee=_0x3e2e44['m1Prime'];}_0x553b77[_0x1e93e4(0x16f)]({'undoCache':_0x32ed6f,'redoCache':_0x2b3aac});}['_transformPreviousActiveRange'](_0x210947){const _0x3c9f52=_0x1e40b1,{unitID:_0x26218a}=_0x210947,_0x3066b0=this['_renderManagerService'][_0x3c9f52(0x1d8)](_0x26218a)['with'](_0x208526),_0x8edc9c=_0x3066b0[_0x3c9f52(0x235)]();if(_0x8edc9c==null)return;const _0x4bef4e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x210947[_0x3c9f52(0x187)],'actions':null,'textRanges':[_0x8edc9c]}}],_0x4ac303=this[_0x3c9f52(0x28f)][_0x3c9f52(0x261)](_0x210947,_0x4bef4e);if(!_0x22ff8b(_0x4ac303))throw _0x4ac303[_0x3c9f52(0x2cd)];const _0xa818e0=_0x4ac303[_0x3c9f52(0x31d)][0x0][_0x3c9f52(0x327)][_0x3c9f52(0x1ef)];Array['isArray'](_0xa818e0)&&_0xa818e0['length']&&_0x3066b0['setActiveRange'](_0xa818e0[0x0]);}};he=dn([lt(0x0,_0xa76561),lt(0x1,_0xef4dde)],he);var Sn=Object['getOwnPropertyDescriptor'],In=(_0x3f7a54,_0x260268,_0x5b58c6,_0xe9f302)=>{const _0x11dde4=_0x1e40b1;for(var _0x2bac4a=_0xe9f302>0x1?void 0x0:_0xe9f302?Sn(_0x260268,_0x5b58c6):_0x260268,_0x3b3627=_0x3f7a54[_0x11dde4(0x2a6)]-0x1,_0xc15419;_0x3b3627>=0x0;_0x3b3627--)(_0xc15419=_0x3f7a54[_0x3b3627])&&(_0x2bac4a=_0xc15419(_0x2bac4a)||_0x2bac4a);return _0x2bac4a;},Le=(_0x3f5e96,_0x3b1998)=>(_0x44825e,_0x38b77c)=>_0x3b1998(_0x44825e,_0x38b77c,_0x3f5e96);let ue=class{constructor(_0x44464b,_0x2c58d8,_0x100754){const _0x590579=_0x1e40b1;this[_0x590579(0x2f1)]=_0x44464b,this[_0x590579(0x28f)]=_0x2c58d8,this[_0x590579(0x1e1)]=_0x100754;}[_0x1e40b1(0x23c)](_0x4f0e15){const _0x3ed521=_0x1e40b1;this[_0x3ed521(0x19b)](_0x4f0e15);}['transformRemoteChangeset'](_0x3e7a22){const _0x378aad=_0x1e40b1,{unitID:_0x54b79e}=_0x3e7a22,{collaboration:_0xd1e313}=this['_docStateChangeManagerService']['getStateCache'](_0x54b79e);if(_0xd1e313['length']===0x0)return _0x3e7a22;let _0x3eb368=_0x509f1e[_0x378aad(0x2d6)](_0x3e7a22['mutations'][0x0]);for(let _0x2e8c5f=0x0;_0x2e8c5f<_0xd1e313[_0x378aad(0x2a6)];_0x2e8c5f++){const _0x321df5={'id':_0x378aad(0x1f5),'params':{'unitId':_0xd1e313[_0x2e8c5f][_0x378aad(0x170)],..._0xd1e313[_0x2e8c5f][_0x378aad(0x1bc)]}},_0x13d9e6=this[_0x378aad(0x28f)]['transformMutation'](_0x3eb368,_0x321df5,!0x1);if(_0x463700(_0x13d9e6))throw _0x13d9e6[_0x378aad(0x2cd)];_0x3eb368=_0x13d9e6[_0x378aad(0x110)];}return{..._0x509f1e[_0x378aad(0x2d6)](_0x3e7a22),'mutations':[_0x3eb368]};}[_0x1e40b1(0x19b)](_0x146c54){const _0x3b3885=_0x1e40b1,{unitID:_0x4e3486}=_0x146c54,{history:_0x2d8aee,collaboration:_0x16d221}=this[_0x3b3885(0x1e1)][_0x3b3885(0x2e5)](_0x4e3486);if(_0x2d8aee['length']===0x0&&_0x16d221[_0x3b3885(0x2a6)]===0x0)return;const _0x2679fd=[],_0xd8d6e9=[];let _0x44da8e=_0x509f1e['deepClone'](_0x146c54[_0x3b3885(0x101)][0x0]),_0x3a1319=_0x509f1e['deepClone'](_0x146c54['mutations'][0x0]);for(let _0x42f195=_0x2d8aee[_0x3b3885(0x2a6)]-0x1;_0x42f195>=0x0;_0x42f195--){const _0x4f21af={'id':_0x3b3885(0x1f5),'params':{'unitId':_0x2d8aee[_0x42f195][_0x3b3885(0x170)],..._0x2d8aee[_0x42f195][_0x3b3885(0x1bf)]}},_0x39dc74={'id':_0x3b3885(0x1f5),'params':{'unitId':_0x2d8aee[_0x42f195]['unitId'],..._0x2d8aee[_0x42f195][_0x3b3885(0x1bc)]}},_0x20e83e=this[_0x3b3885(0x28f)]['transformMutation'](_0x44da8e,_0x4f21af,!0x1),_0x551353=this[_0x3b3885(0x28f)][_0x3b3885(0xec)](_0x3a1319,_0x39dc74,!0x1);if(_0x463700(_0x20e83e))throw _0x20e83e[_0x3b3885(0x2cd)];if(_0x463700(_0x551353))throw _0x551353['error'];_0x2679fd['unshift']({..._0x2d8aee[_0x42f195],'undoState':_0x20e83e[_0x3b3885(0x31d)][_0x3b3885(0x327)],'redoState':_0x551353[_0x3b3885(0x31d)][_0x3b3885(0x327)]}),_0x44da8e=_0x20e83e[_0x3b3885(0x110)],_0x3a1319=_0x551353['m1Prime'];}_0x44da8e=_0x509f1e['deepClone'](_0x146c54[_0x3b3885(0x101)][0x0]),_0x3a1319=_0x509f1e[_0x3b3885(0x2d6)](_0x146c54[_0x3b3885(0x101)][0x0]);for(let _0x13c34c=_0x16d221['length']-0x1;_0x13c34c>=0x0;_0x13c34c--){const _0x2b5934={'id':_0x3b3885(0x1f5),'params':{'unitId':_0x16d221[_0x13c34c]['unitId'],..._0x16d221[_0x13c34c][_0x3b3885(0x1bf)]}},_0x2cfdd6={'id':_0x3b3885(0x1f5),'params':{'unitId':_0x16d221[_0x13c34c][_0x3b3885(0x170)],..._0x16d221[_0x13c34c][_0x3b3885(0x1bc)]}},_0x4072c9=this[_0x3b3885(0x28f)][_0x3b3885(0xec)](_0x44da8e,_0x2b5934,!0x1),_0x3ec8ba=this[_0x3b3885(0x28f)][_0x3b3885(0xec)](_0x3a1319,_0x2cfdd6,!0x1);if(_0x463700(_0x4072c9))throw _0x4072c9[_0x3b3885(0x2cd)];if(_0x463700(_0x3ec8ba))throw _0x3ec8ba[_0x3b3885(0x2cd)];_0xd8d6e9[_0x3b3885(0x27a)]({..._0x16d221[_0x13c34c],'undoState':_0x4072c9[_0x3b3885(0x31d)][_0x3b3885(0x327)],'redoState':_0x3ec8ba[_0x3b3885(0x31d)][_0x3b3885(0x327)]}),_0x44da8e=_0x4072c9['m1Prime'],_0x3a1319=_0x3ec8ba[_0x3b3885(0x110)];}this[_0x3b3885(0x1e1)][_0x3b3885(0x191)](_0x4e3486,{'history':_0x2679fd,'collaboration':_0xd8d6e9});}};ue=In([Le(0x0,_0x2c0e45(_0x3fc224)),Le(0x1,_0xa76561),Le(0x2,_0x2c0e45(_0x1e4bf3))],ue);var mn=Object[_0x1e40b1(0xe0)],fn=(_0x29d141,_0x34465f,_0x4ebff6,_0x2190d8)=>{const _0x56cf6d=_0x1e40b1;for(var _0x16124e=_0x2190d8>0x1?void 0x0:_0x2190d8?mn(_0x34465f,_0x4ebff6):_0x34465f,_0x2f3764=_0x29d141[_0x56cf6d(0x2a6)]-0x1,_0x37e6da;_0x2f3764>=0x0;_0x2f3764--)(_0x37e6da=_0x29d141[_0x2f3764])&&(_0x16124e=_0x37e6da(_0x16124e)||_0x16124e);return _0x16124e;},ht=(_0x29a6d4,_0x13026d)=>(_0x4c8078,_0x1cb18f)=>_0x13026d(_0x4c8078,_0x1cb18f,_0x29a6d4);let de=class{constructor(_0x3e7cfd,_0x40ad12){const _0x338bab=_0x1e40b1;this['_injector']=_0x3e7cfd,this[_0x338bab(0x28f)]=_0x40ad12;}[_0x1e40b1(0xf9)](_0x497d53){const _0x3fddfb=_0x1e40b1;var _0x1956a1;const _0x548834=this[_0x3fddfb(0x2f1)][_0x3fddfb(0x303)](_0x8b731d),_0x5a2489=(_0x1956a1=_0x548834[_0x3fddfb(0xd7)]())!=null?_0x1956a1:[];if(_0x5a2489['length']===0x0)return;const _0x12eada=_0x497d53[_0x3fddfb(0x187)],_0x800e6=[{'id':_0x3fddfb(0x1f5),'params':{'unitId':_0x12eada,'actions':null,'textRanges':_0x5a2489}}],_0x25afe5=this['_transformService'][_0x3fddfb(0x261)](_0x497d53,_0x800e6);if(!_0x22ff8b(_0x25afe5))throw _0x25afe5['error'];const _0x262532=_0x25afe5['m2Prime'][0x0][_0x3fddfb(0x327)][_0x3fddfb(0x1ef)];Array['isArray'](_0x262532)&&_0x262532[_0x3fddfb(0x2a6)]&&_0x548834[_0x3fddfb(0x1dd)](_0x262532,{'unitId':_0x12eada,'subUnitId':_0x12eada},!0x1);}};de=fn([ht(0x0,_0x2c0e45(_0x3fc224)),ht(0x1,_0xa76561)],de);var gn=Object[_0x1e40b1(0xe0)],En=(_0x59a73a,_0x424bd1,_0x42e769,_0x51a268)=>{const _0x2d5585=_0x1e40b1;for(var _0x32fe7c=_0x51a268>0x1?void 0x0:_0x51a268?gn(_0x424bd1,_0x42e769):_0x424bd1,_0xe64726=_0x59a73a[_0x2d5585(0x2a6)]-0x1,_0x42026c;_0xe64726>=0x0;_0xe64726--)(_0x42026c=_0x59a73a[_0xe64726])&&(_0x32fe7c=_0x42026c(_0x32fe7c)||_0x32fe7c);return _0x32fe7c;},U=(_0x5e613e,_0xd18b74)=>(_0xae3a84,_0x15fc99)=>_0xd18b74(_0xae3a84,_0x15fc99,_0x5e613e);let Se=class extends _0x4e2370{constructor(_0x3b442a,_0x4878ec,_0x184f73,_0x29f0ac,_0x1dca75,_0x5d5468,_0x15c060,_0x3e8a30){const _0x41eb12=_0x1e40b1;super(),_(this,_0x41eb12(0x271),new _0xefb469(_0x126115[_0x41eb12(0x232)])),(this[_0x41eb12(0x1e1)]=_0x3b442a,this[_0x41eb12(0x124)]=_0x4878ec,this[_0x41eb12(0x208)]=_0x184f73,this[_0x41eb12(0x230)]=_0x29f0ac,this[_0x41eb12(0x1ab)]=_0x1dca75,this[_0x41eb12(0x14c)]=_0x5d5468,this['_messageService']=_0x15c060,this[_0x41eb12(0x149)]=_0x3e8a30,this[_0x41eb12(0x262)]());}[_0x1e40b1(0x262)](){const _0x180aa5=_0x1e40b1;this[_0x180aa5(0x286)](this[_0x180aa5(0x124)][_0x180aa5(0x10a)][_0x180aa5(0xfd)](_0x1b72c4=>{const _0xf34283=_0x180aa5,_0x270548=this[_0xf34283(0x1e1)][_0xf34283(0x31f)][_0xf34283(0xfd)](_0x49cc94=>{const _0x178417=_0xf34283;if(_0x49cc94==null)return;const {unitId:_0x28df47,redoState:_0x3c707e,commandId:_0x1bc5b4}=_0x49cc94;if(_0x28df47!==_0x1b72c4[_0x178417(0x187)])return;const _0x107e78={'id':_0x1bc5b4,'type':_0x488e10[_0x178417(0x324)],'params':{'unitId':_0x28df47,'actions':_0x3c707e[_0x178417(0x116)],'textRanges':null}};_0x1b72c4[_0x178417(0x216)](_0x107e78);});if(_0x1b72c4[_0xf34283(0x286)](_0x270548),_0x1b72c4 instanceof _0x185d0f){const _0x309909={'onTransformIME':_0x611d95=>this[_0xf34283(0x208)][_0xf34283(0x11d)](_0x611d95),'onTransformState':_0x5e5bd3=>this[_0xf34283(0x230)][_0xf34283(0x23c)](_0x5e5bd3),'onTransformSelections':_0x39f794=>this[_0xf34283(0x1ab)][_0xf34283(0xf9)](_0x39f794),'onSyncEditingCollabCursor':_0x2cb5fb=>this[_0xf34283(0x14c)][_0xf34283(0x1ec)](_0x2cb5fb),'onTransformRemoteChangesetByIMECache':_0x4e3aa9=>this[_0xf34283(0x208)][_0xf34283(0x112)](_0x4e3aa9),'onTransformRemoteChangesetByStateCache':_0x17842b=>this[_0xf34283(0x230)][_0xf34283(0x112)](_0x17842b)};_0x1b72c4[_0xf34283(0x1b7)](_0x309909);}}));}};Se=En([U(0x0,_0x2c0e45(_0x1e4bf3)),U(0x1,_0x2c0e45(_0x465340)),U(0x2,_0x2c0e45(he)),U(0x3,_0x2c0e45(ue)),U(0x4,_0x2c0e45(de)),U(0x5,_0x2c0e45(ze)),U(0x6,_0x5aac8c),U(0x7,_0x2c0e45(_0x51435d))],Se);var Z=(_0x2f24d7=>(_0x2f24d7[_0x2f24d7[_0x1e40b1(0x287)]=0x0]=_0x1e40b1(0x287),_0x2f24d7[_0x2f24d7['OK']=0x1]='OK',_0x2f24d7[_0x2f24d7['INTERNAL_ERROR']=0x2]=_0x1e40b1(0x209),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x1c9)]=0x3]=_0x1e40b1(0x1c9),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x2dc)]=0x4]=_0x1e40b1(0x2dc),_0x2f24d7[_0x2f24d7['UNAUTHENTICATED']=0x5]=_0x1e40b1(0x2c6),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x2fb)]=0x6]=_0x1e40b1(0x2fb),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x174)]=0x7]='INVALID_ARGUMENT',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x18f)]=0x8]='TOO_MANY_REQUESTS',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x1a9)]=0x9]='COMPLETION_FINISHED',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x13f)]=0xa]='LOGIN_FAILED',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x1ac)]=0xb]=_0x1e40b1(0x1ac),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x100)]=0xc]=_0x1e40b1(0x100),_0x2f24d7[_0x2f24d7['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x1e40b1(0x199),_0x2f24d7[_0x2f24d7['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x1e40b1(0x23b),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x165)]=0xf]=_0x1e40b1(0x165),_0x2f24d7[_0x2f24d7['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x1e40b1(0x24f),_0x2f24d7[_0x2f24d7['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x1e40b1(0x2bf),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x1ea)]=0x65]=_0x1e40b1(0x1ea),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x10f)]=0xc9]=_0x1e40b1(0x10f),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x16c)]=0xca]=_0x1e40b1(0x16c),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x1fd)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x20d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x171)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x18e)]=0x1773]=_0x1e40b1(0x18e),_0x2f24d7[_0x2f24d7['APPLY_REJECT']=0x1b59]=_0x1e40b1(0x285),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x127)]=0x1b5a]=_0x1e40b1(0x127),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x123)]=0x1b5b]=_0x1e40b1(0x123),_0x2f24d7[_0x2f24d7['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x1e40b1(0x301),_0x2f24d7[_0x2f24d7['APPLY_DUPLICATED']=0x1b5d]=_0x1e40b1(0x1a4),_0x2f24d7[_0x2f24d7['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x322)]=0x2329]=_0x1e40b1(0x322),_0x2f24d7[_0x2f24d7['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x1e40b1(0x16a),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x2a1)]=0x232b]=_0x1e40b1(0x2a1),_0x2f24d7[_0x2f24d7[_0x1e40b1(0xd2)]=0x232c]=_0x1e40b1(0xd2),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x296)]=0x232d]=_0x1e40b1(0x296),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x2ec)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2f24d7[_0x2f24d7['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2f24d7[_0x2f24d7['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x1e40b1(0x270),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x311)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x305)]=0x271a]=_0x1e40b1(0x305),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x16b)]=0x271b]=_0x1e40b1(0x16b),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x154)]=0x271c]=_0x1e40b1(0x154),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x31c)]=0x271d]=_0x1e40b1(0x31c),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x19c)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x244)]=0x271f]=_0x1e40b1(0x244),_0x2f24d7[_0x2f24d7['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x1e40b1(0xd6),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x21b)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2f24d7[_0x2f24d7[_0x1e40b1(0xe9)]=0x2ee1]=_0x1e40b1(0xe9),_0x2f24d7[_0x2f24d7[_0x1e40b1(0xed)]=0x2ee2]=_0x1e40b1(0xed),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x2c5)]=0x2ee3]=_0x1e40b1(0x2c5),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x237)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x2f24d7[_0x2f24d7['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x1e40b1(0x325),_0x2f24d7[_0x2f24d7['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x1e40b1(0x14e),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x267)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x166)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x223)]=0x36b1]=_0x1e40b1(0x223),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x2a4)]=0x36b2]=_0x1e40b1(0x2a4),_0x2f24d7[_0x2f24d7[_0x1e40b1(0xcf)]=0x36b3]=_0x1e40b1(0xcf),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x2e2)]=0x36b4]=_0x1e40b1(0x2e2),_0x2f24d7[_0x2f24d7['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x1e40b1(0x31b),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x30e)]=0x36b6]=_0x1e40b1(0x30e),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x1db)]=0x36b7]=_0x1e40b1(0x1db),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x233)]=0x36b8]=_0x1e40b1(0x233),_0x2f24d7[_0x2f24d7['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x29f)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x2f24d7[_0x2f24d7[_0x1e40b1(0x19d)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x2f24d7[_0x2f24d7['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x1e40b1(0xf4),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x22c)]=0x3a99]=_0x1e40b1(0x22c),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x203)]=0x3a9a]=_0x1e40b1(0x203),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x1e8)]=0x3a9b]=_0x1e40b1(0x1e8),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x2c0)]=0x3a9c]=_0x1e40b1(0x2c0),_0x2f24d7[_0x2f24d7['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x1e40b1(0x180),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x1b0)]=0x3a9e]=_0x1e40b1(0x1b0),_0x2f24d7[_0x2f24d7[_0x1e40b1(0xfb)]=0x3a9f]=_0x1e40b1(0xfb),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x214)]=0x3e81]=_0x1e40b1(0x214),_0x2f24d7[_0x2f24d7[_0x1e40b1(0x14a)]=-0x1]=_0x1e40b1(0x14a),_0x2f24d7))(Z||{});function vn(_0x23e64c){const _0xd39f7f=_0x1e40b1;var _0x2f144a,_0x6c6ccc;const _0x5a660c=(_0x2f144a=_0x23e64c[_0xd39f7f(0x2bc)])==null?void 0x0:_0x2f144a['stage'],_0x2410ef=((_0x6c6ccc=_0x23e64c['stageInfo'])==null?void 0x0:_0x6c6ccc[_0xd39f7f(0x15f)])||0x0;return _0x5a660c===_0x422184[_0xd39f7f(0xdb)]&&_0x2410ef>0x0;}function pn(_0x362612){const _0x134b60=_0x1e40b1;return _0x362612[_0x134b60(0x121)]===_0x3bbcbd['SUCCESS'];}var On=Object[_0x1e40b1(0xe0)],Tn=(_0x64c847,_0x1a493d,_0x4dc6b2,_0x2ab9a2)=>{const _0x3980fd=_0x1e40b1;for(var _0x174237=_0x2ab9a2>0x1?void 0x0:_0x2ab9a2?On(_0x1a493d,_0x4dc6b2):_0x1a493d,_0x5e7cc9=_0x64c847[_0x3980fd(0x2a6)]-0x1,_0x550f3e;_0x5e7cc9>=0x0;_0x5e7cc9--)(_0x550f3e=_0x64c847[_0x5e7cc9])&&(_0x174237=_0x550f3e(_0x174237)||_0x174237);return _0x174237;},P=(_0x48ee9a,_0x5ab8e2)=>(_0x4b8e87,_0x102bf6)=>_0x5ab8e2(_0x4b8e87,_0x102bf6,_0x48ee9a);const Cn=_0x1e40b1(0x184),Rn=_0x1e40b1(0x12b),Dn=_0x1e40b1(0x1f4);let Ie=class extends _0x4e2370{constructor(_0x40d88e,_0x25a8dc,_0x1b87b4,_0x5a3fd3,_0x134a69,_0x37edd4,_0x83a987){const _0x123aa6=_0x1e40b1;super(),_(this,_0x123aa6(0x1e6),null),_(this,_0x123aa6(0x1fc),0x0),_(this,_0x123aa6(0xd3),0x0),_(this,'_taskIds',[]),_(this,_0x123aa6(0x16d),0x0),(this[_0x123aa6(0x253)]=_0x40d88e,this[_0x123aa6(0x2c8)]=_0x25a8dc,this[_0x123aa6(0x264)]=_0x1b87b4,this[_0x123aa6(0x185)]=_0x5a3fd3,this[_0x123aa6(0x194)]=_0x134a69,this[_0x123aa6(0x302)]=_0x37edd4,this['_localeService']=_0x83a987,this['_initCommandInterceptor']());}[_0x1e40b1(0x299)](){const _0x2d05ff=_0x1e40b1;this[_0x2d05ff(0x286)](this[_0x2d05ff(0x2c8)][_0x2d05ff(0xef)]((_0x1c27d6,_0x28545a)=>{const _0x29eafd=_0x2d05ff;var _0x211461;if(_0x1c27d6['id']!==_0x1ecee1['id'])return;const _0x505485=_0x1c27d6[_0x29eafd(0x327)];if(!this[_0x29eafd(0x1c2)]((_0x211461=_0x505485[_0x29eafd(0xd0)])!=null?_0x211461:[]))return;if(!this[_0x29eafd(0x29a)]())throw this[_0x29eafd(0x143)](_0x1c27d6,_0x28545a),this[_0x29eafd(0x269)](),new _0x309b6a();})),this['disposeWithMe'](this[_0x2d05ff(0x2c8)]['onCommandExecuted']((_0x5db1d2,_0x348bd8)=>{const _0x58a924=_0x2d05ff;if(_0x5db1d2['id']!==_0x49db29['id'])return;const _0x23a441=_0x5db1d2[_0x58a924(0x327)];if(vn(_0x23a441)){const _0x1f1ea2=_0x2b8a5d();this['_taskIds'][_0x58a924(0x2e7)](_0x1f1ea2),this[_0x58a924(0x20c)](_0x1f1ea2);}else{if(pn(_0x23a441)&&this[_0x58a924(0x217)][_0x58a924(0x2a6)]>0x0){const _0x3e1a01=this[_0x58a924(0x217)][_0x58a924(0x2e9)]();this[_0x58a924(0x226)](_0x3e1a01);}}}));}[_0x1e40b1(0x234)](){const _0x2602b9=_0x1e40b1;super[_0x2602b9(0x234)](),this[_0x2602b9(0x15a)](),this[_0x2602b9(0x217)]=[],this[_0x2602b9(0xd3)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x1e40b1(0x143)](_0x17720b,_0x11d9df){const _0x21fbc0=_0x1e40b1;for(let _0x5c3065=0x0;_0x5c3065<0x1e;_0x5c3065++)try{if(await this[_0x21fbc0(0x12c)](),this[_0x21fbc0(0x29a)]()){this[_0x21fbc0(0x2a3)](_0x17720b,_0x11d9df),this['_messageService'][_0x21fbc0(0xff)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':_0x413557[_0x21fbc0(0x152)]});return;}await new Promise(_0x460754=>{const _0x43a2e3=_0x21fbc0;this[_0x43a2e3(0x1e6)]=window[_0x43a2e3(0x1dc)](_0x460754,0x3e8);});}catch(_0x286aa5){this[_0x21fbc0(0x302)][_0x21fbc0(0x2cd)](_0x286aa5);}this[_0x21fbc0(0x253)][_0x21fbc0(0xff)]({'content':this[_0x21fbc0(0x149)]['t'](_0x21fbc0(0x1d6)),'type':_0x413557[_0x21fbc0(0x1df)]});}[_0x1e40b1(0x2a3)](_0x57b3c3,_0x72ccbe){const _0x2fb05c=_0x1e40b1;try{this[_0x2fb05c(0x2c8)]['executeCommand'](_0x57b3c3['id'],_0x57b3c3['params'],_0x72ccbe);}catch(_0x2dddcd){this[_0x2fb05c(0x302)][_0x2fb05c(0x2cd)](_0x2dddcd);}}[_0x1e40b1(0x1a7)](_0xcd6f57,_0x37fc91){const _0x4605ef=_0x1e40b1;_0x37fc91<this['_lastResponseTimestamp']||(this[_0x4605ef(0x16d)]=_0x37fc91,this['_maxFormulaLimit']=Number[_0x4605ef(0x22e)](_0xcd6f57[_0x4605ef(0x297)]),this[_0x4605ef(0xd3)]=Number['parseInt'](_0xcd6f57[_0x4605ef(0x1b4)]));}async[_0x1e40b1(0x20c)](_0x40e852){const _0x32db2c=_0x1e40b1;var _0x5b3d90,_0x620a22;const _0x46b031=Date['now']();try{const _0x14e584=((_0x5b3d90=this[_0x32db2c(0x264)]['getConfig'](_0x7fd448))==null?void 0x0:_0x5b3d90[_0x32db2c(0x274)])||Rn,_0x5af7b9=(await this['_httpService']['post'](_0x14e584,{'body':JSON[_0x32db2c(0x17e)]({'taskId':_0x40e852})}))[_0x32db2c(0x13a)];if(((_0x620a22=_0x5af7b9[_0x32db2c(0x2cd)])==null?void 0x0:_0x620a22[_0x32db2c(0x320)])!==Z['OK'])return;this[_0x32db2c(0x1a7)](_0x5af7b9[_0x32db2c(0x130)],_0x46b031);}catch(_0x16d621){this[_0x32db2c(0x302)]['error'](_0x16d621);}}async[_0x1e40b1(0x12c)](_0x19d1dd){const _0x5d1e1e=_0x1e40b1;var _0x1c31b0,_0x1cafa2;const _0x29afe2=Date[_0x5d1e1e(0x1aa)]();try{const _0x1d248f=((_0x1c31b0=this[_0x5d1e1e(0x264)][_0x5d1e1e(0x1d3)](_0x7fd448))==null?void 0x0:_0x1c31b0[_0x5d1e1e(0x137)])||Cn,_0x907294=_0x19d1dd?_0x1d248f+_0x5d1e1e(0x2af)+encodeURIComponent(_0x19d1dd):_0x1d248f,_0x1613c9=(await this[_0x5d1e1e(0x185)][_0x5d1e1e(0x303)](_0x907294))[_0x5d1e1e(0x13a)];if(((_0x1cafa2=_0x1613c9[_0x5d1e1e(0x2cd)])==null?void 0x0:_0x1cafa2['code'])!==Z['OK'])return;this[_0x5d1e1e(0x1a7)](_0x1613c9[_0x5d1e1e(0x130)],_0x29afe2);}catch(_0x305810){this[_0x5d1e1e(0x302)][_0x5d1e1e(0x2cd)](_0x305810);}}async[_0x1e40b1(0x226)](_0x2d0798){const _0x4b04be=_0x1e40b1;var _0x193bda,_0x12595c;const _0x309933=Date[_0x4b04be(0x1aa)]();try{const _0x5ed5e0=((_0x193bda=this[_0x4b04be(0x264)][_0x4b04be(0x1d3)](_0x7fd448))==null?void 0x0:_0x193bda[_0x4b04be(0x146)])||Dn,_0x9ee6f6=(await this[_0x4b04be(0x185)][_0x4b04be(0x259)](_0x5ed5e0,{'body':JSON[_0x4b04be(0x17e)]({'taskId':_0x2d0798})}))['body'];if(((_0x12595c=_0x9ee6f6[_0x4b04be(0x2cd)])==null?void 0x0:_0x12595c[_0x4b04be(0x320)])!==Z['OK'])return;this[_0x4b04be(0x1a7)](_0x9ee6f6[_0x4b04be(0x130)],_0x309933);}catch(_0x36717c){this[_0x4b04be(0x302)][_0x4b04be(0x2cd)](_0x36717c);}}[_0x1e40b1(0x29a)](){const _0x4da236=_0x1e40b1;return this[_0x4da236(0x1fc)]===0x0?!0x0:this[_0x4da236(0x1fc)]-this[_0x4da236(0xd3)]>0x0;}[_0x1e40b1(0x15a)](){const _0x145c49=_0x1e40b1;this[_0x145c49(0x1e6)]&&(clearTimeout(this[_0x145c49(0x1e6)]),this[_0x145c49(0x1e6)]=null);}[_0x1e40b1(0x269)](){const _0xf7eb71=_0x1e40b1;this[_0xf7eb71(0x253)][_0xf7eb71(0xff)]({'content':this[_0xf7eb71(0x149)]['t']('formula.calculation.waiting'),'type':_0x413557[_0xf7eb71(0x1ba)]});}[_0x1e40b1(0x1c2)](_0x435685){const _0x44379a=_0x1e40b1;for(const _0xba0e13 of _0x435685){const {unitId:_0x48fc83,sheetId:_0x2d9c59,range:_0x2f992a}=_0xba0e13,_0x2491d7=this['_univerInstanceService']['getUnit'](_0x48fc83);if(!_0x2491d7)continue;const _0x4551d4=_0x2491d7[_0x44379a(0x188)](_0x2d9c59);if(!_0x4551d4)continue;const _0x42ce47=_0x4551d4['getCellMatrix']();for(let _0x41f6a9=_0x2f992a[_0x44379a(0x293)];_0x41f6a9<=_0x2f992a[_0x44379a(0x245)];_0x41f6a9++)for(let _0x30c78d=_0x2f992a['startColumn'];_0x30c78d<=_0x2f992a[_0x44379a(0x1b5)];_0x30c78d++){const _0x332b28=_0x42ce47['getValue'](_0x41f6a9,_0x30c78d);if(_0x332b28&&(_0x16ba62(_0x332b28['f'])||_0x244a3a(_0x332b28['si'])))return!0x0;}}return!0x1;}};Ie=Tn([P(0x0,_0x2c0e45(_0x5aac8c)),P(0x1,_0x7462c),P(0x2,_0xaf39b9),P(0x3,_0x2c0e45(_0xb0aafa)),P(0x4,_0x161ad0),P(0x5,_0x29510e),P(0x6,_0x2c0e45(_0x51435d))],Ie);var Nn=Object['getOwnPropertyDescriptor'],bn=(_0x1afce8,_0x4b61a2,_0x19258a,_0xdecfce)=>{const _0x3f05f4=_0x1e40b1;for(var _0x122550=_0xdecfce>0x1?void 0x0:_0xdecfce?Nn(_0x4b61a2,_0x19258a):_0x4b61a2,_0x2abe50=_0x1afce8[_0x3f05f4(0x2a6)]-0x1,_0x28a3cd;_0x2abe50>=0x0;_0x2abe50--)(_0x28a3cd=_0x1afce8[_0x2abe50])&&(_0x122550=_0x28a3cd(_0x122550)||_0x122550);return _0x122550;},Ue=(_0x5549b4,_0x9da7a0)=>(_0x2fbaa1,_0x299fd7)=>_0x9da7a0(_0x2fbaa1,_0x299fd7,_0x5549b4);let He=class extends _0x4e2370{constructor(_0x1ca90a,_0x438548,_0x385409){const _0x49243d=_0x1e40b1;super(),_(this,_0x49243d(0x18c),new Map()),_(this,_0x49243d(0x175),new Map()),_(this,'_disabled',!0x1),(this[_0x49243d(0x264)]=_0x1ca90a,this['_localStorageService']=_0x438548,this['_revisionService']=_0x385409);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x1e40b1(0x13d)](){this['_disabled']=!0x1;}get[_0x1e40b1(0x248)](){const _0x1e9901=_0x1e40b1;return this[_0x1e9901(0x175)];}[_0x1e40b1(0x234)](){const _0x36b2d2=_0x1e40b1;this[_0x36b2d2(0x273)]()[_0x36b2d2(0x206)](()=>super[_0x36b2d2(0x234)]());}async[_0x1e40b1(0x201)](_0x34e1a2){const _0x372fe0=_0x1e40b1;return this['_disabled']?null:this[_0x372fe0(0x312)][_0x372fe0(0x2b0)](_0x192196(_0x34e1a2));}async['saveOfflineData'](_0x20e6e6,_0x143e49){const _0x1cc9dd=_0x1e40b1;return!!this['_localStorageService'][_0x1cc9dd(0x263)](_0x20e6e6,_0x143e49);}[_0x1e40b1(0x30f)](_0x4f836c,_0x1d4b1f,_0x4a2306,_0x1d1784){const _0x4c1751=_0x1e40b1,_0x2a6dfb=this['_revisionService'][_0x4c1751(0x1b6)](_0x4f836c);this[_0x4c1751(0x18c)][_0x4c1751(0x1f3)](_0x4f836c,{'unitID':_0x4f836c,'type':_0x1d4b1f,'awaitingChangeset':_0x4a2306,'mutations':_0x1d1784,'rev':_0x2a6dfb}),this['_saveTaskMap'][_0x4c1751(0x176)](_0x4f836c)||this[_0x4c1751(0x304)](_0x4f836c);}[_0x1e40b1(0x304)](_0x342d7e){const _0x40784b=_0x1e40b1,_0x1aa555=this[_0x40784b(0x144)]();_0x1aa555===0x0?this[_0x40784b(0x193)](_0x342d7e):this[_0x40784b(0x175)]['set'](_0x342d7e,setTimeout(()=>this[_0x40784b(0x193)](_0x342d7e),_0x1aa555));}[_0x1e40b1(0x144)](){const _0x31bc4d=_0x1e40b1;var _0x250530;return(_0x250530=this[_0x31bc4d(0x264)]['getConfig'](_0x18d25d))!=null?_0x250530:_0x14c463;}[_0x1e40b1(0x193)](_0x1aaa11){const _0x467a25=_0x1e40b1,_0x223759=this[_0x467a25(0x175)]['get'](_0x1aaa11);return _0x223759!==void 0x0&&window[_0x467a25(0xe3)](_0x223759),this[_0x467a25(0x312)][_0x467a25(0x263)](_0x192196(_0x1aaa11),this[_0x467a25(0x18c)][_0x467a25(0x303)](_0x1aaa11))[_0x467a25(0x206)](()=>this['_saveTaskMap'][_0x467a25(0x27c)](_0x1aaa11));}async[_0x1e40b1(0x273)](){const _0x1738e2=_0x1e40b1,_0x2ed1ee=[];this[_0x1738e2(0x175)][_0x1738e2(0x150)]((_0x1ec788,_0x3b4aaf)=>{const _0x539ecd=_0x1738e2;window['clearTimeout'](_0x1ec788),_0x2ed1ee[_0x539ecd(0x2e7)](this[_0x539ecd(0x193)](_0x3b4aaf)[_0x539ecd(0x206)](()=>{const _0x5bcf33=_0x539ecd;this[_0x5bcf33(0x175)]['delete'](_0x3b4aaf);}));}),await Promise[_0x1738e2(0x241)](_0x2ed1ee);}};He=bn([Ue(0x0,_0xaf39b9),Ue(0x1,_0x401375),Ue(0x2,_0x2c0e45(_0x520e2c))],He);class Ln extends _0x52c72b{constructor(){const _0x429151=_0x1e40b1;super(),_(this,'urlChange$'),this[_0x429151(0x1ff)]=_0x336182(window,'popstate')['pipe'](_0x5d9a7c(this[_0x429151(0x323)]),_0x5d780b(0x1),_0x44ca7b(void 0x0));}[_0x1e40b1(0x102)](_0x1007e2,_0x352119,_0x5aa200=!0x1){const _0x114b46=_0x1e40b1,_0x1e1de7=new URL(window[_0x114b46(0x294)][_0x114b46(0x272)]);_0x1e1de7[_0x114b46(0x28b)][_0x114b46(0x1f3)](_0x1007e2,_0x352119),_0x5aa200?window[_0x114b46(0x20f)][_0x114b46(0x1a3)]('','',_0x1e1de7[_0x114b46(0x159)]()):window[_0x114b46(0x20f)][_0x114b46(0x19f)]('','',_0x1e1de7[_0x114b46(0x159)]());}['removeParam'](_0x4daaf9,_0x1f0cab=!0x1){const _0x23d582=_0x1e40b1,_0x14945c=new URL(window[_0x23d582(0x294)][_0x23d582(0x272)]);_0x14945c[_0x23d582(0x28b)][_0x23d582(0x27c)](_0x4daaf9),_0x1f0cab?window['history'][_0x23d582(0x1a3)]('','',_0x14945c['toString']()):window[_0x23d582(0x20f)]['pushState']('','',_0x14945c[_0x23d582(0x159)]());}['getParam'](_0x4cb44a){const _0x33fd54=_0x1e40b1;var _0x1e8138;return(_0x1e8138=new URL(window[_0x33fd54(0x294)]['href'])['searchParams'][_0x33fd54(0x303)](_0x4cb44a))!=null?_0x1e8138:void 0x0;}}var Un=Object[_0x1e40b1(0x131)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x58fe43,_0x42f7b3,_0x4dfe8e)=>_0x42f7b3 in _0x58fe43?Un(_0x58fe43,_0x42f7b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dfe8e}):_0x58fe43[_0x42f7b3]=_0x4dfe8e,Pn=(_0x3de7df,_0x312cee,_0x4ef40b,_0xa92184)=>{const _0xb8de49=_0x1e40b1;for(var _0x53f6b1=_0xa92184>0x1?void 0x0:_0xa92184?Mn(_0x312cee,_0x4ef40b):_0x312cee,_0x54506d=_0x3de7df[_0xb8de49(0x2a6)]-0x1,_0x3046ec;_0x54506d>=0x0;_0x54506d--)(_0x3046ec=_0x3de7df[_0x54506d])&&(_0x53f6b1=_0x3046ec(_0x53f6b1)||_0x53f6b1);return _0x53f6b1;},Me=(_0x55404a,_0x285d79)=>(_0x5f2b21,_0x155361)=>_0x285d79(_0x5f2b21,_0x155361,_0x55404a),wn=(_0x51a661,_0x363681,_0x530bb3)=>An(_0x51a661,_0x363681+'',_0x530bb3);const yn=_0x1e40b1(0x2ca);let Ye=class extends _0x504480{constructor(_0x28cad9=_t,_0x4d10ca,_0xaf395e,_0x3f0881){const _0x46d427=_0x1e40b1;super(),this[_0x46d427(0x18b)]=_0x28cad9,this[_0x46d427(0x316)]=_0x4d10ca,this['_injector']=_0xaf395e,this[_0x46d427(0x264)]=_0x3f0881;const {..._0x131280}=_0x119aa6({},_t,this[_0x46d427(0x18b)]);this[_0x46d427(0x264)][_0x46d427(0x163)](hn,_0x131280);}[_0x1e40b1(0x2d9)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x1e40b1(0x11b)](){const _0x3691eb=_0x1e40b1;this[_0x3691eb(0x202)]();}[_0x1e40b1(0x181)](){const _0x89e362=_0x1e40b1;var _0x11b502;const _0x4360ab=[[Ke],[Ie],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x53cf78,{'useClass':_0x4c4ca2}],[_0x51b584,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this['_config'][_0x89e362(0x10b)]&&_0x4360ab[_0x89e362(0x2e7)]([le]),_0x5c9d92(this[_0x89e362(0x2f1)],_0x1282ba(_0x4360ab,(_0x11b502=this[_0x89e362(0x18b)])==null?void 0x0:_0x11b502[_0x89e362(0x1cc)]));}[_0x1e40b1(0x202)](){const _0x130d18=_0x1e40b1;this[_0x130d18(0x286)](this[_0x130d18(0x316)]['registerRenderModule'](_0x25fa51['UNIVER_DOC'],[Fe])),this[_0x130d18(0x286)](this[_0x130d18(0x316)][_0x130d18(0x306)](_0x25fa51[_0x130d18(0x212)],[ke]));}[_0x1e40b1(0x139)](){const _0x5e2329=_0x1e40b1;_0x3ecbaa(this['_injector'],[[H],[ae],[Se],[_e],[ce],[Ie]]),this[_0x5e2329(0x18b)][_0x5e2329(0x10b)]&&_0x3ecbaa(this[_0x5e2329(0x2f1)],[[le]]);}};wn(Ye,_0x1e40b1(0x14b),yn),Ye=Pn([_0xe8bdb1(_0x485e39),Me(0x1,_0xef4dde),Me(0x2,_0x2c0e45(_0x3fc224)),Me(0x3,_0xaf39b9)],Ye);var $n=Object[_0x1e40b1(0xe0)],xn=(_0x1f039d,_0x1056a5,_0x41b13f,_0x98a6f)=>{for(var _0x504c05=_0x98a6f>0x1?void 0x0:_0x98a6f?$n(_0x1056a5,_0x41b13f):_0x1056a5,_0x2356f7=_0x1f039d['length']-0x1,_0x42307d;_0x2356f7>=0x0;_0x2356f7--)(_0x42307d=_0x1f039d[_0x2356f7])&&(_0x504c05=_0x42307d(_0x504c05)||_0x504c05);return _0x504c05;},J=(_0xe10560,_0x5c53ad)=>(_0x51d09c,_0x3677d0)=>_0x5c53ad(_0x51d09c,_0x3677d0,_0xe10560);let ut=class extends _0x4c670c{constructor(_0x2e2f18,_0x10b99e,_0x182e56,_0x217329,_0x5213c1){super(_0x2e2f18,_0x10b99e,_0x182e56,_0x217329,_0x5213c1);}async[_0x1e40b1(0x1e3)](_0x4cca47){const _0x568f9d=_0x1e40b1,_0x254cb3=await this[_0x568f9d(0x155)](),_0x43385b=this['_createSocketURL'](_0x4cca47,_0x254cb3);return this['_doCreateSocket'](_0x43385b);}[_0x1e40b1(0x134)](_0x1eaef6,_0x2f83e7){const _0x4eb782=_0x1e40b1,_0x406b0d=typeof window>'u'?new URL(_0x1eaef6):new URL(_0x1eaef6,window[_0x4eb782(0x294)][_0x4eb782(0xf8)]);_0x406b0d[_0x4eb782(0x28b)][_0x4eb782(0x1f3)]('sessionTicket',_0x2f83e7);const _0x164fd4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x164fd4[_0x4eb782(0x303)](_0x4eb782(0x13e))&&_0x406b0d[_0x4eb782(0x28b)]['set'](_0x4eb782(0x13e),_0x164fd4[_0x4eb782(0x303)](_0x4eb782(0x13e))),_0x406b0d[_0x4eb782(0x159)]();}async[_0x1e40b1(0x155)](){const _0x52013e=_0x1e40b1;var _0x4117d7,_0x9c0bd9,_0x3a3358;const _0x1708c6=this['_configService'][_0x52013e(0x1d3)](_0x7fd448),_0x22e8fc=(_0x4117d7=_0x1708c6==null?void 0x0:_0x1708c6[_0x52013e(0x236)])!=null?_0x4117d7:_0x3b6f;return(_0x3a3358=(_0x9c0bd9=(await this[_0x52013e(0x185)][_0x52013e(0x303)](_0x22e8fc,{'headers':{'Content-Type':_0x52013e(0x182)}}))[_0x52013e(0x13a)])==null?void 0x0:_0x9c0bd9['ticket'])!=null?_0x3a3358:'';}};ut=xn([J(0x0,_0x2c0e45(_0x3fc224)),J(0x1,_0x2c0e45(_0xb0aafa)),J(0x2,_0xaf39b9),J(0x3,_0x29510e),J(0x4,_0x6fbdfe)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x436748,_0x3de2e0,_0x42c0c2,_0x1615ce)=>{const _0x11fb28=_0x1e40b1;for(var _0xa22413=_0x1615ce>0x1?void 0x0:_0x1615ce?Bn(_0x3de2e0,_0x42c0c2):_0x3de2e0,_0x32fece=_0x436748[_0x11fb28(0x2a6)]-0x1,_0x4e7105;_0x32fece>=0x0;_0x32fece--)(_0x4e7105=_0x436748[_0x32fece])&&(_0xa22413=_0x4e7105(_0xa22413)||_0xa22413);return _0xa22413;},Ae=(_0x5cf8f9,_0x2a2757)=>(_0x3e83f,_0x1ae389)=>_0x2a2757(_0x3e83f,_0x1ae389,_0x5cf8f9);let dt=class extends _0x4e2370{constructor(_0x1c84a0,_0x1d82fc,_0x5d852c){const _0x2c5b70=_0x1e40b1;super(),this[_0x2c5b70(0xf5)]=_0x1c84a0,this[_0x2c5b70(0x185)]=_0x1d82fc,this[_0x2c5b70(0x264)]=_0x5d852c;}async[_0x1e40b1(0x2bb)](_0x335c8d,_0x14a894,_0x32e484,..._0x52e0d9){const _0x42b903=_0x1e40b1;var _0x2430c6,_0x1f80f0,_0x22e311,_0x251384;const _0x5546a3=this[_0x42b903(0xf5)][_0x42b903(0xe8)]();if(!_0x5546a3)throw new Error(_0x42b903(0x257));const _0x4e0bab=((_0x2430c6=this['_configService']['getConfig'](_0x50aa9c))!=null?_0x2430c6:_0x78af75)+'/'+_0x335c8d+_0x42b903(0x25c)+_0x14a894,_0x3a78fc=new URL(window[_0x42b903(0x294)][_0x42b903(0x272)]),_0xefaffd={'scriptId':_0x335c8d,'runId':(_0x1f80f0=_0x3a78fc[_0x42b903(0x28b)][_0x42b903(0x303)](_0x42b903(0x13e)))!=null?_0x1f80f0:'','function':_0x14a894,'unitId':_0x5546a3[_0x42b903(0x276)](),'argsOfFunction':JSON[_0x42b903(0x17e)](_0x52e0d9),'invokeId':(_0x22e311=_0x32e484[_0x42b903(0x142)])!=null?_0x22e311:'','executionId':(_0x251384=_0x32e484[_0x42b903(0x318)])!=null?_0x251384:''};try{const _0x5d72b3=await this['_httpService'][_0x42b903(0x259)](_0x4e0bab,{'body':_0xefaffd});return _0x5d72b3['body']['error']&&_0x5d72b3[_0x42b903(0x13a)][_0x42b903(0x2cd)][_0x42b903(0x320)]!==Z['OK']?_0x42b903(0x1d1):_0x5d72b3[_0x42b903(0x13a)][_0x42b903(0x22f)];}catch{return _0x42b903(0x1d1);}}};dt=Fn([Ae(0x0,_0x161ad0),Ae(0x1,_0x2c0e45(_0xb0aafa)),Ae(0x2,_0xaf39b9)],dt);const St=0x7530,It='ACTIVE_UNIT_EVENT_CHANNEL';class rr extends _0x4e2370{constructor(){const _0x2ffa62=_0x1e40b1;super(),_(this,_0x2ffa62(0x1c7),_0x2b8a5d()),_(this,_0x2ffa62(0x21d),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x2ffa62(0x2ba),null),_(this,_0x2ffa62(0xde),new Map()),_(this,'_unitStatus',new Map()),this[_0x2ffa62(0x17f)]();}[_0x1e40b1(0x234)](){const _0x2fb82c=_0x1e40b1;super['dispose'](),this[_0x2fb82c(0xde)][_0x2fb82c(0x150)]((_0x480cb9,_0x5496bd)=>this[_0x2fb82c(0x26b)](_0x5496bd)),this[_0x2fb82c(0x2ba)]&&window[_0x2fb82c(0x283)](this['_heartbeatTimer']);}['getUnitStatus$'](_0xb78bd){const _0x57cb2b=_0x1e40b1;return this[_0x57cb2b(0x1d0)](_0xb78bd)[_0x57cb2b(0x2b2)](_0x26115a());}[_0x1e40b1(0x24c)](_0x48bb75){const _0x1bd835=_0x1e40b1;this[_0x1bd835(0x21d)][_0x1bd835(0x177)]===0x0&&this[_0x1bd835(0x2a5)](),this[_0x1bd835(0x21d)][_0x1bd835(0x23e)](_0x48bb75),this[_0x1bd835(0x211)]({'type':0x0,'memberID':this[_0x1bd835(0x1c7)],'unitIDs':[_0x48bb75],'isForwarded':!0x1});}[_0x1e40b1(0xeb)](_0x69b78f){const _0x5e9c2e=_0x1e40b1;this['_selfUnitIDs']['delete'](_0x69b78f),this[_0x5e9c2e(0x21d)][_0x5e9c2e(0x177)]===0x0&&this['_heartbeatTimer']&&window[_0x5e9c2e(0x283)](this[_0x5e9c2e(0x2ba)]);}['_init'](){const _0x40e902=_0x1e40b1;this['disposeWithMe'](_0x4b734a(_0x336182(window,_0x40e902(0x1c5))['subscribe'](_0x3a598f=>{const _0x2295c6=_0x40e902;if(_0x3a598f[_0x2295c6(0x255)]!==It||!_0x3a598f[_0x2295c6(0x1ee)])return;const _0x5f0acb=JSON[_0x2295c6(0x1c4)](_0x3a598f['newValue']);this[_0x2295c6(0x119)](_0x5f0acb);}))),window[_0x40e902(0x1c6)](_0x40e902(0x2ea),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x40e902(0x2e6)](this[_0x40e902(0x21d)])}));}[_0x1e40b1(0x119)](_0x4d1af1){const _0x16c1ed=_0x1e40b1;switch(_0x4d1af1[_0x16c1ed(0xe4)]){case 0x0:this[_0x16c1ed(0x218)](_0x4d1af1);break;case 0x1:this['_handleLeaveEvent'](_0x4d1af1);break;case 0x2:this[_0x16c1ed(0x1c1)](_0x4d1af1);break;}}['_handleJoinEvent'](_0x2d9d61){const _0x22be5c=_0x1e40b1,{unitIDs:_0x18bbdd,memberID:_0x1e3b1c,isForwarded:_0x4d09a8}=_0x2d9d61;_0x18bbdd[_0x22be5c(0x150)](_0x5cf9f7=>{const _0x43ee75=_0x22be5c;if(!_0x4d09a8&&this[_0x43ee75(0x298)][_0x43ee75(0x176)](_0x5cf9f7)&&this[_0x43ee75(0x1d0)](_0x5cf9f7)[_0x43ee75(0x23a)](_0x114a9b[_0x43ee75(0x145)]),!this[_0x43ee75(0x298)]['has'](_0x5cf9f7)||!this[_0x43ee75(0x298)][_0x43ee75(0x303)](_0x5cf9f7)[_0x43ee75(0x176)](_0x1e3b1c)){const _0xdad10a=this['_unitOnClients']['get'](_0x5cf9f7)||new Set();_0xdad10a[_0x43ee75(0x23e)](_0x1e3b1c),this[_0x43ee75(0x298)][_0x43ee75(0x1f3)](_0x5cf9f7,_0xdad10a),this[_0x43ee75(0x277)](_0x1e3b1c);}}),_0x4d09a8||this['_send']({'type':0x0,'memberID':this[_0x22be5c(0x1c7)],'unitIDs':[...this[_0x22be5c(0x21d)]],'isForwarded':!0x0});}[_0x1e40b1(0x277)](_0x5ef45c){const _0x1d736f=_0x1e40b1;this['_removeClearOtherTimer'](_0x5ef45c);const _0x394ed7=window['setTimeout'](()=>{const _0x21c157=_0x38fa;this[_0x21c157(0x298)][_0x21c157(0x150)](_0x582544=>{const _0x5b0f6e=_0x21c157;_0x582544[_0x5b0f6e(0x27c)](_0x5ef45c);});},St*0x2);this['_clearOtherTimers'][_0x1d736f(0x1f3)](_0x5ef45c,_0x394ed7);}[_0x1e40b1(0x26b)](_0x2c2c53){const _0x1bd244=_0x1e40b1;if(this['_clearOtherTimers']['has'](_0x2c2c53)){const _0x445fc8=this['_clearOtherTimers'][_0x1bd244(0x303)](_0x2c2c53);_0x445fc8&&window['clearTimeout'](_0x445fc8),this['_clearOtherTimers']['set'](_0x2c2c53,null);}}['_handleLeaveEvent'](_0x5125f8){const _0x11a8e0=_0x1e40b1,{memberID:_0x2abb12,unitIDs:_0xc8b963}=_0x5125f8;_0xc8b963[_0x11a8e0(0x150)](_0x5a487f=>{const _0x4feea9=_0x11a8e0;var _0x48fe5f;const _0x4cb970=this[_0x4feea9(0x298)][_0x4feea9(0x303)](_0x5a487f);_0x4cb970&&(_0x4cb970[_0x4feea9(0x27c)](_0x2abb12),(_0x48fe5f=this[_0x4feea9(0x1d0)](_0x5a487f))==null||_0x48fe5f[_0x4feea9(0x23a)](_0x4cb970[_0x4feea9(0x177)]===0x0?_0x114a9b[_0x4feea9(0x1f9)]:_0x114a9b['OTHER_CLIENTS_EDITING']));}),this[_0x11a8e0(0x26b)](_0x2abb12);}['_handleHeartbeatEvent'](_0x570ecb){const _0x1e4796=_0x1e40b1;this[_0x1e4796(0x277)](_0x570ecb[_0x1e4796(0x207)]);}[_0x1e40b1(0x211)](_0x296fc5){const _0x4eed6f=_0x1e40b1;localStorage[_0x4eed6f(0x263)](It,JSON['stringify'](_0x296fc5));}['_scheduleHeartbeat'](){const _0x8e31b2=_0x1e40b1;this[_0x8e31b2(0x2ba)]=window[_0x8e31b2(0x21e)](()=>{const _0x359b08=_0x8e31b2;this[_0x359b08(0x211)]({'type':0x2,'memberID':this['_id']});},St);}[_0x1e40b1(0x1d0)](_0x1d4c01){const _0x4aaf74=_0x1e40b1;return this[_0x4aaf74(0x326)][_0x4aaf74(0x176)](_0x1d4c01)||this[_0x4aaf74(0x326)][_0x4aaf74(0x1f3)](_0x1d4c01,new _0xefb469(_0x114a9b[_0x4aaf74(0x1f9)])),this[_0x4aaf74(0x326)][_0x4aaf74(0x303)](_0x1d4c01);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};