@univerjs-pro/collaboration-client-ui 0.25.1 → 0.25.2

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 (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +17 -17
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4f3698=_0x501c;(function(_0x4b9554,_0x30f4a3){const _0x3b8f80=_0x501c,_0x36ee5b=_0x4b9554();while(!![]){try{const _0x2bd02b=parseInt(_0x3b8f80(0x23d))/0x1*(parseInt(_0x3b8f80(0x353))/0x2)+parseInt(_0x3b8f80(0x336))/0x3*(parseInt(_0x3b8f80(0x1cc))/0x4)+-parseInt(_0x3b8f80(0x37c))/0x5*(-parseInt(_0x3b8f80(0x36c))/0x6)+-parseInt(_0x3b8f80(0x242))/0x7*(parseInt(_0x3b8f80(0x21f))/0x8)+-parseInt(_0x3b8f80(0x1c7))/0x9+-parseInt(_0x3b8f80(0x382))/0xa+parseInt(_0x3b8f80(0x2d8))/0xb*(parseInt(_0x3b8f80(0x1e9))/0xc);if(_0x2bd02b===_0x30f4a3)break;else _0x36ee5b['push'](_0x36ee5b['shift']());}catch(_0x67c75e){_0x36ee5b['push'](_0x36ee5b['shift']());}}}(_0x53b6,0x1dd4b));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x20d072,CollaborationController as _0x32bb3a,CollaborationSessionService as _0x295742,CollaborationSocketService as _0x4210a9,CollaborationStatus as _0x33faa6,CollaborationUIEventId as _0xcc4607,CollaborationUIEventService as _0x522545,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1a23e,DEFAULT_WS_SESSION_TICKET_URL as _0x43d47c,DataLoaderService as _0x18d7e1,DocCollaborationEntity as _0x3c4914,ILocalCacheService as _0x346440,LOCAL_CACHE_INTERVAL as _0x33f454,LOCAL_CACHE_INTERVAL_KEY as _0x3c08a2,MemberService as _0x5d2148,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5d41fa,SessionStatus as _0x3c46b2,UnitStatus as _0x4261be,UniverCollaborationClientPlugin as _0x596c83,getLocalCacheKey as _0x199006}from'@univerjs-pro/collaboration-client';import{COLORS as _0x5ca256,CanceledError as _0x32abe0,ColorKit as _0x5f4a6f,CommandType as _0xce570f,DOC_RANGE_TYPE as _0xf9eaf4,DependentOn as _0x51300c,Disposable as _0x135205,DisposableCollection as _0x97351b,ICommandService as _0x475d4a,IConfigService as _0x270179,ILocalStorageService as _0xa60d24,ILogService as _0x533956,IUniverInstanceService as _0x299f08,Inject as _0x3a3495,Injector as _0xd0a80,LocaleService as _0x2912dd,Optional as _0x472906,Plugin as _0x59834f,Rectangle as _0x5794ce,RxDisposable as _0x2d8708,ThemeService as _0x52719a,Tools as _0x4cf666,UniverInstanceType as _0x38e1b9,Workbook as _0x6bf8b9,createIdentifier as _0x5749bf,debounce as _0x2d6517,fromEventSubject as _0x3ad556,generateRandomId as _0x56a70c,isFormulaId as _0x447415,isFormulaString as _0x2bb093,isInternalEditorID as _0xc673b0,merge as _0x37c9d2,mergeOverrideWithDependencies as _0x39b30f,registerDependencies as _0x4b9c32,toDisposable as _0x305b33,touchDependencies as _0x235764}from'@univerjs/core';import{BuiltInUIPart as _0x5a07a6,IBeforeCloseService as _0x1724e1,IMessageService as _0x304c5a,INotificationService as _0x31a1f5,IUIPartsService as _0x104675,connectInjector as _0x2b7294,useDependency as _0x274de2,useObservable as _0x1072e8}from'@univerjs/ui';import{BehaviorSubject as _0x5a0bca,Subject as _0x17e895,combineLatest as _0x1738da,debounceTime as _0x4ee250,distinctUntilChanged as _0x265cf8,filter as _0x318dbb,fromEvent as _0x47437f,mapTo as _0x16301b,merge as _0x599df5,of as _0x3ef51b,shareReplay as _0xc9ccec,switchMap as _0x4881ed,takeUntil as _0x506d73}from'rxjs';import{distinctUntilChanged as _0x4a54aa,filter as _0x5bdf60,map as _0x66062e,switchMap as _0x5a5de0,takeUntil as _0x119f17,throttleTime as _0x4c8a96}from'rxjs/operators';import{MessageType as _0x1082da,Tooltip as _0xa581fd,clsx as _0x55471b}from'@univerjs/design';import{LoadingMultiIcon as _0x552515,OffLineIcon as _0x2306f2,OnLineIcon as _0x2f4ad2}from'@univerjs/icons';import{useCallback as _0x633efb,useMemo as _0x227c46}from'react';import{jsx as _0x2092b2}from'react/jsx-runtime';import{IRemoteInstanceService as _0x1798c1}from'@univerjs/rpc';import{EffectRefRangId as _0x48cbdd,RefRangeService as _0x4de819,SetSelectionsOperation as _0x1df243,SetWorksheetActivateCommand as _0x1347aa,SheetsSelectionsService as _0x5dfef0,handleDeleteRangeMoveLeft as _0x2f0aa7,handleDeleteRangeMoveUp as _0x3119fa,handleIRemoveCol as _0x35be56,handleIRemoveRow as _0x3acad2,handleInsertCol as _0x673428,handleInsertRangeMoveDown as _0x34436c,handleInsertRangeMoveRight as _0xfb1dc5,handleInsertRow as _0x25f7b8,handleMoveRange as _0x355e03,runRefRangeMutations as _0x4ea892}from'@univerjs/sheets';import{IRenderManagerService as _0x5e34fe,Rect as _0x457c5d,RegularPolygon as _0x9150e2,SHEET_VIEWPORT_KEY as _0x3c4818,Shape as _0x30d899,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4df35f,Vector2 as _0x2d9a69,getColor as _0x5d813f}from'@univerjs/engine-render';import{HTTPService as _0x19b345,ISocketService as _0x18f3b8,WebSocketService as _0x188c00}from'@univerjs/network';import{DocIMEInputManagerService as _0xf0b0b6,DocStateChangeManagerService as _0x1d3cc9,IDocClipboardService as _0xac46d5,NodePositionConvertToCursor as _0x22692b,NodePositionConvertToRectRange as _0x2db32d,SetDocZoomRatioOperation as _0x54470e,TEXT_RANGE_LAYER_INDEX as _0x424c1f}from'@univerjs/docs-ui';import{IImageIoService as _0x3a00ef}from'@univerjs/drawing';import{CollaborationEvent as _0x18d6f7,ISnapshotServerService as _0x5a0c2c,ITransformService as _0x36830a,RevisionService as _0x4e73e6,isTransformMutationFailure as _0x28c447,isTransformMutationsWithChangesetSuccess as _0x1ab105}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x1eff78,DocSkeletonManagerService as _0xa6e1bc,RichTextEditingMutation as _0x3504f7,SetTextSelectionsOperation as _0x2f5396}from'@univerjs/docs';import{FormulaExecuteStageType as _0x5261a0,FormulaExecutedStateType as _0xb906a6,SetFormulaCalculationNotificationMutation as _0x2205b6,SetFormulaCalculationStartMutation as _0x37747b,deserializeRangeWithSheet as _0x23a1fc,serializeRangeWithSheet as _0x138433}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x389d4c,getCoordByCell as _0x2a0576,getSheetObject as _0x5378e7}from'@univerjs/sheets-ui';import{ErrorCode as _0x1bd35a}from'@univerjs/protocol';function Yt(_0x4ed50d){const _0x52f760=_0x501c;switch(_0x4ed50d){case _0x33faa6['OFFLINE']:return{'icon':_0x2092b2(_0x2306f2,{}),'colorClass':_0x52f760(0x35e),'i18nKey':_0x52f760(0x1f9),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x52f760(0x2bd)};case _0x33faa6[_0x52f760(0x2d2)]:return{'icon':_0x2092b2(_0x2306f2,{}),'colorClass':_0x52f760(0x282),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':_0x52f760(0x2bd)};case _0x33faa6['FETCH_MISS']:return{'icon':_0x2092b2(_0x552515,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x52f760(0x341),'clickable':!0x1,'indicator':'spin'};case _0x33faa6[_0x52f760(0x21a)]:return{'icon':_0x2092b2(_0x2f4ad2,{}),'colorClass':'univer-text-gray-400','i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x52f760(0x2bd)};case _0x33faa6[_0x52f760(0x207)]:case _0x33faa6[_0x52f760(0x3a3)]:return{'icon':_0x2092b2(_0x552515,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x52f760(0x1e1),'clickable':!0x1,'indicator':'spin'};case _0x33faa6['PENDING']:return{'icon':_0x2092b2(_0x552515,{}),'colorClass':_0x52f760(0x39f),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':'spin'};case _0x33faa6[_0x52f760(0x380)]:return{'icon':_0x2092b2(_0x2f4ad2,{}),'colorClass':'univer-text-green-500','i18nKey':_0x52f760(0x24f),'clickable':!0x1,'indicator':'static'};}}function Xt(_0x4e5137){const _0x53ad31=_0x501c;let {status$:_0x30895b}=_0x4e5137,_0x5116ca=_0x1072e8(_0x30895b,_0x33faa6[_0x53ad31(0x21a)]),_0x4e376a=_0x274de2(_0x2912dd),_0x209e2b=_0x274de2(_0x295742),_0x176385=_0x227c46(()=>Yt(_0x5116ca),[_0x5116ca]),_0x47be40=_0x5116ca!==_0x33faa6[_0x53ad31(0x265)],_0x1654c5=_0x4e376a['t'](_0x176385[_0x53ad31(0x285)]),_0x3e9d1c=_0x176385[_0x53ad31(0x25e)]?_0x4e376a['t'](_0x176385[_0x53ad31(0x25e)]):_0x1654c5,_0x1992e4=_0x633efb(()=>{const _0x47612e=_0x53ad31;_0x47be40||_0x209e2b[_0x47612e(0x295)]();},[_0x47be40,_0x209e2b]),_0xbb9f45=_0x633efb(_0x4df6d5=>{const _0x2581e5=_0x53ad31;!_0x47be40&&(_0x4df6d5[_0x2581e5(0x1fb)]===_0x2581e5(0x290)||_0x4df6d5['key']==='\x20')&&(_0x4df6d5['preventDefault'](),_0x209e2b[_0x2581e5(0x295)]());},[_0x47be40,_0x209e2b]),_0x486761=_0x2092b2(_0x53ad31(0x22d),{'className':_0x55471b(_0x53ad31(0x239),_0x53ad31(0x339),_0x176385[_0x53ad31(0x316)],{'univer-animate-spin':_0x176385[_0x53ad31(0x398)]==='spin','univer-animate-pulse':_0x176385[_0x53ad31(0x398)]===_0x53ad31(0x276)}),'aria-hidden':_0x53ad31(0x210),'children':_0x176385[_0x53ad31(0x2b3)]}),_0x2d9dd3=_0x2092b2('span',{'className':_0x55471b(_0x53ad31(0x239),_0x53ad31(0x33f),_0x53ad31(0x20e),_0x53ad31(0x1ee),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x176385[_0x53ad31(0x28b)],'univer-cursor-default':!_0x176385[_0x53ad31(0x28b)]}),'children':_0x486761});return _0x176385[_0x53ad31(0x28b)]?_0x2092b2(_0xa581fd,{'title':_0x3e9d1c,'placement':'bottom','children':_0x2092b2(_0x53ad31(0x315),{'type':'button','onClick':_0x1992e4,'onKeyDown':_0xbb9f45,'className':_0x55471b(_0x53ad31(0x301),_0x53ad31(0x211),_0x53ad31(0x21c),'univer-appearance-none'),'aria-label':_0x1654c5+_0x53ad31(0x227)+_0x3e9d1c,'role':_0x53ad31(0x1bc),'aria-live':'polite','aria-atomic':_0x53ad31(0x210),'children':_0x2d9dd3})}):_0x2092b2(_0xa581fd,{'title':_0x3e9d1c,'placement':'bottom','children':_0x2092b2(_0x53ad31(0x2d9),{'className':_0x55471b(_0x53ad31(0x301),_0x53ad31(0x211),_0x53ad31(0x21c)),'aria-label':_0x1654c5,'role':_0x53ad31(0x1bc),'aria-live':_0x53ad31(0x1ae),'aria-atomic':'true','children':_0x2d9dd3})});}function W(_0x296f5f){'@babel/helpers - typeof';const _0x4f58f5=_0x501c;return W=typeof Symbol==_0x4f58f5(0x1f3)&&typeof Symbol[_0x4f58f5(0x20c)]==_0x4f58f5(0x314)?function(_0x5b16c5){return typeof _0x5b16c5;}:function(_0x44f682){const _0x5d63b8=_0x4f58f5;return _0x44f682&&typeof Symbol==_0x5d63b8(0x1f3)&&_0x44f682[_0x5d63b8(0x2ab)]===Symbol&&_0x44f682!==Symbol[_0x5d63b8(0x2b4)]?_0x5d63b8(0x314):typeof _0x44f682;},W(_0x296f5f);}function Zt(_0x44f353,_0x446e03){const _0x33cfe6=_0x501c;if(W(_0x44f353)!=_0x33cfe6(0x24a)||!_0x44f353)return _0x44f353;var _0x39d216=_0x44f353[Symbol[_0x33cfe6(0x26f)]];if(_0x39d216!==void 0x0){var _0xbbde09=_0x39d216[_0x33cfe6(0x1f5)](_0x44f353,_0x446e03||_0x33cfe6(0x1fe));if(W(_0xbbde09)!=_0x33cfe6(0x24a))return _0xbbde09;throw TypeError(_0x33cfe6(0x225));}return(_0x446e03===_0x33cfe6(0x212)?String:Number)(_0x44f353);}function Qt(_0x3667f7){const _0x4857b1=_0x501c;var _0x1bac6e=Zt(_0x3667f7,_0x4857b1(0x212));return W(_0x1bac6e)==_0x4857b1(0x314)?_0x1bac6e:_0x1bac6e+'';}function G(_0x4174a5,_0x2abf0d,_0x4b80aa){const _0x56cb30=_0x501c;return(_0x2abf0d=Qt(_0x2abf0d))in _0x4174a5?Object[_0x56cb30(0x22e)](_0x4174a5,_0x2abf0d,{'value':_0x4b80aa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4174a5[_0x2abf0d]=_0x4b80aa,_0x4174a5;}function K(_0x809356,_0x48e17a){return function(_0x1424b6,_0x15c4fe){_0x48e17a(_0x1424b6,_0x15c4fe,_0x809356);};}function q(_0x20be7a,_0x8d9ccb,_0x5f08e4,_0x16d67a){const _0x819814=_0x501c;var _0x46006a=arguments[_0x819814(0x2ac)],_0x13de66=_0x46006a<0x3?_0x8d9ccb:_0x16d67a===null?_0x16d67a=Object['getOwnPropertyDescriptor'](_0x8d9ccb,_0x5f08e4):_0x16d67a,_0xa25620;if(typeof Reflect==_0x819814(0x24a)&&typeof Reflect[_0x819814(0x28c)]==_0x819814(0x1f3))_0x13de66=Reflect[_0x819814(0x28c)](_0x20be7a,_0x8d9ccb,_0x5f08e4,_0x16d67a);else{for(var _0x26054f=_0x20be7a[_0x819814(0x2ac)]-0x1;_0x26054f>=0x0;_0x26054f--)(_0xa25620=_0x20be7a[_0x26054f])&&(_0x13de66=(_0x46006a<0x3?_0xa25620(_0x13de66):_0x46006a>0x3?_0xa25620(_0x8d9ccb,_0x5f08e4,_0x13de66):_0xa25620(_0x8d9ccb,_0x5f08e4))||_0x13de66);}return _0x46006a>0x3&&_0x13de66&&Object[_0x819814(0x22e)](_0x8d9ccb,_0x5f08e4,_0x13de66),_0x13de66;}let J=class extends _0x135205{constructor(_0x48f0f1,_0x409737,_0x9dcc28,_0xc0676b){const _0x5623c6=_0x501c;super(),this['_univerInstanceService']=_0x48f0f1,this[_0x5623c6(0x370)]=_0x409737,this[_0x5623c6(0x297)]=_0x9dcc28,this[_0x5623c6(0x2c4)]=_0xc0676b,G(this,_0x5623c6(0x36b),new _0x5a0bca(_0x33faa6[_0x5623c6(0x21a)])),this[_0x5623c6(0x1ac)](),this[_0x5623c6(0x261)]();}[_0x4f3698(0x261)](){const _0x2c7e92=_0x4f3698;this[_0x2c7e92(0x2c6)](_0x599df5(this['_univerInstanceService']['focused$'],this[_0x2c7e92(0x366)]['getCurrentTypeOfUnit$'](_0x38e1b9['UNIVER_DOC']),this[_0x2c7e92(0x366)][_0x2c7e92(0x31b)](_0x38e1b9[_0x2c7e92(0x35a)]))['pipe'](_0x66062e(()=>$t(this[_0x2c7e92(0x366)])),_0x4a54aa(),_0x4881ed(_0x3571c8=>_0x3571c8?this['_collaborationController']['getCollabEntity$'](_0x3571c8):_0x3ef51b(null)),_0x4881ed(_0x1611b1=>_0x1611b1?_0x1611b1[_0x2c7e92(0x374)]:_0x3ef51b(_0x33faa6['NOT_COLLAB'])))['subscribe'](_0x21ff5e=>{const _0x3b6ffb=_0x2c7e92;this[_0x3b6ffb(0x36b)]['next'](_0x21ff5e);}));}['_initStatusComponent'](){const _0x5cf24e=_0x4f3698;this[_0x5cf24e(0x2c6)](this[_0x5cf24e(0x2c4)][_0x5cf24e(0x1de)](_0x5a07a6['HEADER_MENU'],()=>_0x2b7294(en({'status$':this['_status$'][_0x5cf24e(0x2f6)]()}),this[_0x5cf24e(0x370)])));}};J=q([K(0x0,_0x299f08),K(0x1,_0x3a3495(_0xd0a80)),K(0x2,_0x3a3495(_0x32bb3a)),K(0x3,_0x104675)],J);function $t(_0x4a847b){const _0x2bb8ed=_0x4f3698;let _0x1b48e0=_0x4a847b[_0x2bb8ed(0x2e4)](),_0x26eb99=_0x1b48e0==null?void 0x0:_0x1b48e0[_0x2bb8ed(0x219)]();if(_0x26eb99&&!_0xc673b0(_0x26eb99))return _0x26eb99;let _0x2f99e9=_0x4a847b[_0x2bb8ed(0x36e)](_0x38e1b9[_0x2bb8ed(0x221)]),_0x4428cb=_0x2f99e9==null?void 0x0:_0x2f99e9['getUnitId']();if(_0x4428cb&&!_0xc673b0(_0x4428cb))return _0x4428cb;let _0x1eecfc=_0x4a847b[_0x2bb8ed(0x36e)](_0x38e1b9[_0x2bb8ed(0x35a)]);if(_0x1eecfc)return _0x1eecfc['getUnitId']();let _0x3e6946=_0x4a847b[_0x2bb8ed(0x1ce)](_0x38e1b9[_0x2bb8ed(0x221)])[_0x2bb8ed(0x307)](_0x3a98fd=>!_0xc673b0(_0x3a98fd['getUnitId']()));return _0x3e6946?_0x3e6946[_0x2bb8ed(0x219)]():null;}function en(_0x54c59b){let {status$:_0x2dca96}=_0x54c59b;return function(){return _0x2092b2(Xt,{'status$':_0x2dca96});};}const tn=_0x5749bf(_0x4f3698(0x2f2));let Y=class extends _0x2d8708{constructor(_0xb89e61,_0xd38b14,_0x33e868,_0x44e0a7,_0x1fa823){const _0x2e0161=_0x4f3698;super(),this[_0x2e0161(0x357)]=_0xb89e61,this['_logService']=_0xd38b14,this['_commandService']=_0x33e868,this[_0x2e0161(0x347)]=_0x44e0a7,_0x1fa823?_0x1fa823==null||_0x1fa823[_0x2e0161(0x2f1)]()[_0x2e0161(0x2c2)](()=>this['_init']()):(this[_0x2e0161(0x2d0)]['debug']('[CollaborationDataLoaderController]',_0x2e0161(0x24b)),this[_0x2e0161(0x372)]());}async[_0x4f3698(0x372)](){const _0x14a8da=_0x4f3698;let _0x289e53=this['_urlService'][_0x14a8da(0x218)]('unit'),_0x2269e2=this[_0x14a8da(0x357)][_0x14a8da(0x218)]('type'),_0x28387a=this['_urlService']['getParam']('subunit');if(!_0x289e53||!_0x2269e2){this[_0x14a8da(0x2d0)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x35dc7b=await this[_0x14a8da(0x347)][_0x14a8da(0x1c3)](_0x289e53,Number(_0x2269e2),_0x28387a);_0x35dc7b&&_0x35dc7b instanceof _0x6bf8b9&&this['_setupSubUnitSync'](_0x35dc7b);}async[_0x4f3698(0x356)](_0x359ca5){const _0x376ca1=_0x4f3698;await this[_0x376ca1(0x23a)](_0x359ca5),_0x359ca5[_0x376ca1(0x19e)]['pipe'](_0x506d73(this['dispose$']))['subscribe'](_0x423b80=>{_0x423b80&&this['_updateURLWithCurrentState'](_0x423b80);}),this['_urlService'][_0x376ca1(0x272)][_0x376ca1(0x2af)](_0x506d73(this['dispose$']))[_0x376ca1(0x1f2)](()=>this['_updateSubUnitFromURLParams'](_0x359ca5));}['_updateURLWithCurrentState'](_0x55001f,_0x861e50=!0x1){const _0x2ed813=_0x4f3698;let _0x545dd5=this[_0x2ed813(0x357)][_0x2ed813(0x218)](_0x2ed813(0x2b6));_0x55001f['getSheetId']()!==_0x545dd5&&this[_0x2ed813(0x357)][_0x2ed813(0x338)](_0x2ed813(0x2b6),_0x55001f[_0x2ed813(0x1be)](),_0x861e50);}async[_0x4f3698(0x23a)](_0x37173a){const _0x5c69fe=_0x4f3698;var _0x5a8192;let _0x5b1dca=this[_0x5c69fe(0x357)]['getParam']('subunit');if(!_0x5b1dca||!_0x37173a[_0x5c69fe(0x37e)](_0x5b1dca)){let _0x2f987d=_0x37173a[_0x5c69fe(0x284)]()[0x0],_0x9e6f8=_0x37173a[_0x5c69fe(0x37e)](_0x2f987d);if(!_0x9e6f8)return;this[_0x5c69fe(0x289)](_0x9e6f8,!0x0),await this[_0x5c69fe(0x378)][_0x5c69fe(0x20b)](_0x1347aa['id'],{'unitId':_0x37173a[_0x5c69fe(0x219)](),'subUnitId':_0x2f987d});return;}((_0x5a8192=_0x37173a[_0x5c69fe(0x38b)]())==null?void 0x0:_0x5a8192[_0x5c69fe(0x1be)]())!==_0x5b1dca&&await this['_commandService'][_0x5c69fe(0x20b)](_0x1347aa['id'],{'unitId':_0x37173a[_0x5c69fe(0x219)](),'subUnitId':_0x5b1dca});}};Y=q([K(0x0,tn),K(0x1,_0x533956),K(0x2,_0x475d4a),K(0x3,_0x3a3495(_0x18d7e1)),K(0x4,_0x472906(_0x1798c1))],Y);var nn=_0x4f3698(0x2a7),rn=_0x4f3698(0x249);let an=class extends _0x2d8708{constructor(_0x633360,_0x28aa44){const _0x4c1c60=_0x4f3698;super(),this[_0x4c1c60(0x234)]=_0x633360,this[_0x4c1c60(0x191)]=_0x28aa44,this['_init']();}[_0x4f3698(0x372)](){const _0x469a20=_0x4f3698;let _0x535ccb=this;this['disposeWithMe'](this[_0x469a20(0x234)][_0x469a20(0x30b)]({'onBeforePasteImage':async _0x2157b2=>{const _0x2e3a41=_0x469a20;let _0x306820=await _0x535ccb[_0x2e3a41(0x191)][_0x2e3a41(0x2fa)](_0x2157b2);return _0x306820?{'source':_0x306820[_0x2e3a41(0x2a2)],'imageSourceType':_0x306820[_0x2e3a41(0x29c)]}:null;}}));}};an=q([K(0x0,_0xac46d5),K(0x1,_0x3a00ef)],an);const on=[_0x4f3698(0x1e6),_0x4f3698(0x2ec),'green.600',_0x4f3698(0x32e),'blue.400','yellow.400'];var sn=class extends _0x135205{constructor(..._0x2be2c4){const _0x533eb5=_0x4f3698;super(..._0x2be2c4),G(this,_0x533eb5(0x318),new Map()),G(this,_0x533eb5(0x322),0x0);}[_0x4f3698(0x2c5)](_0x1a9cb1){const _0x4f2aa0=_0x4f3698;if(this[_0x4f2aa0(0x318)][_0x4f2aa0(0x2cc)](_0x1a9cb1))return this['_assignedColors'][_0x4f2aa0(0x1d3)](_0x1a9cb1);let _0x438428=on[this[_0x4f2aa0(0x322)]];return this[_0x4f2aa0(0x322)]=(this['_colorIndex']+0x1)%on['length'],this[_0x4f2aa0(0x318)][_0x4f2aa0(0x2da)](_0x1a9cb1,_0x438428),_0x438428;}};function cn(_0x4c47a6){const _0x1956a6=_0x4f3698;let _0x427caa='';for(let _0x51ae84 of _0x4c47a6){let {startOffset:_0x2303d8,endOffset:_0xc25500,isActive:_0x331231,rangeType:_0x8d6b3b,segmentId:_0x539c40,segmentPage:_0x4f8d1b}=_0x51ae84;_0x427caa[_0x1956a6(0x2ac)]&&(_0x427caa+=','),_0x427caa+=_0x2303d8+':'+_0xc25500+':'+(_0x331231?'1':'0')+':'+_0x8d6b3b+':'+_0x539c40+':'+_0x4f8d1b;}return _0x427caa;}function ln(_0x98f10a){const _0x48f54e=_0x4f3698;let _0x282165=_0x98f10a[_0x48f54e(0x300)](','),_0x4d1681=[];for(let _0x546531 of _0x282165){let [_0xf8a293,_0x5bd66a,_0x2e62fc,_0x1c8b71,_0x10ffb9,_0x2ae9c9]=_0x546531[_0x48f54e(0x300)](':');_0x4d1681[_0x48f54e(0x277)]({'startOffset':Number(_0xf8a293),'endOffset':Number(_0x5bd66a),'collapsed':_0xf8a293===_0x5bd66a,'isActive':_0x2e62fc==='1','rangeType':_0x1c8b71===_0xf9eaf4[_0x48f54e(0x280)]?_0xf9eaf4[_0x48f54e(0x280)]:_0xf9eaf4[_0x48f54e(0x204)],'segmentId':typeof _0x10ffb9==_0x48f54e(0x212)?String(_0x10ffb9):'','segmentPage':Number(_0x2ae9c9==null?-0x1:_0x2ae9c9)});}return _0x4d1681[_0x48f54e(0x2d4)](_0x475386=>_0x475386[_0x48f54e(0x306)])||(_0x4d1681[0x0]['isActive']=!0x0),_0x4d1681;}var un=class extends _0x2d8708{constructor(..._0x3d81c7){const _0x28a4fa=_0x4f3698;super(..._0x3d81c7),G(this,_0x28a4fa(0x367),new _0x5a0bca(null)),G(this,_0x28a4fa(0x2a6),this[_0x28a4fa(0x367)][_0x28a4fa(0x2f6)]());}[_0x4f3698(0x2ca)](_0x2ae03f){const _0x3aff0d=_0x4f3698;let {unitID:_0x1c3d44,memberID:_0x56200f,textRanges:_0x41c9fd}=_0x2ae03f,_0x332eb0=cn(_0x41c9fd);if(_0x332eb0==='')return;let _0x117d49={'unitID':_0x1c3d44,'memberID':_0x56200f,'selection':_0x332eb0};this[_0x3aff0d(0x367)]['next'](_0x117d49);}};let dn=class extends _0x2d8708{get[_0x4f3698(0x18d)](){const _0x2f9ab2=_0x4f3698;return this[_0x2f9ab2(0x25c)]['getValue']();}get[_0x4f3698(0x2d3)](){const _0x39f7ed=_0x4f3698;return this[_0x39f7ed(0x30a)]['getValue']();}constructor(_0x5e0b42,_0x4b28b4,_0x2fb402,_0x37da9c,_0x14711c,_0x443ca7,_0x501ae6,_0x4010b6,_0x3919e0){const _0x59bf0a=_0x4f3698;super(),this[_0x59bf0a(0x39a)]=_0x5e0b42,this['_session']=_0x4b28b4,this[_0x59bf0a(0x370)]=_0x2fb402,this['_colorAssignService']=_0x37da9c,this[_0x59bf0a(0x1a2)]=_0x14711c,this[_0x59bf0a(0x2fc)]=_0x443ca7,this['_transformService']=_0x501ae6,this[_0x59bf0a(0x366)]=_0x4010b6,this[_0x59bf0a(0x378)]=_0x3919e0,G(this,_0x59bf0a(0x1f7),!0x1),G(this,_0x59bf0a(0x372),!0x1),G(this,_0x59bf0a(0x25c),new _0x5a0bca(new Map())),G(this,_0x59bf0a(0x28a),this[_0x59bf0a(0x25c)][_0x59bf0a(0x2f6)]()),G(this,_0x59bf0a(0x30a),new _0x5a0bca([])),G(this,_0x59bf0a(0x23f),this[_0x59bf0a(0x30a)][_0x59bf0a(0x2af)](_0x4ee250(0x12c))),G(this,_0x59bf0a(0x2e0),_0x2d6517(_0xd6c39=>{const _0x5857a3=_0x59bf0a;let _0x4f79b5={'eventID':_0x18d6f7[_0x5857a3(0x1a0)],'data':{'unitID':this['unitID'],'memberID':this[_0x5857a3(0x1d0)][_0x5857a3(0x193)](),'selection':cn(_0xd6c39)}};this[_0x5857a3(0x1d0)][_0x5857a3(0x232)](_0x4f79b5,this['unitID']);},0x64));}[_0x4f3698(0x359)](){const _0x54f2e9=_0x4f3698;super[_0x54f2e9(0x359)](),this['_cursorInfo$'][_0x54f2e9(0x1c8)](new Map()),this[_0x54f2e9(0x25c)][_0x54f2e9(0x2cb)](),this[_0x54f2e9(0x30a)]['next']([]),this['_roomMembers$']['complete']();}[_0x4f3698(0x1d7)](){const _0xc9cd8d=_0x4f3698;this[_0xc9cd8d(0x372)]||(this[_0xc9cd8d(0x372)]=!0x0,this[_0xc9cd8d(0x1d0)][_0xc9cd8d(0x291)][_0xc9cd8d(0x2af)](_0x506d73(this[_0xc9cd8d(0x18c)]))[_0xc9cd8d(0x1f2)](_0x54a354=>{const _0x3e2bd2=_0xc9cd8d;_0x54a354===_0x3c46b2['ONLINE']?this['_toggleOnline']():this[_0x3e2bd2(0x259)]();}),this[_0xc9cd8d(0x1d0)][_0xc9cd8d(0x2fe)][_0xc9cd8d(0x2af)](_0x506d73(this[_0xc9cd8d(0x18c)]))[_0xc9cd8d(0x1f2)](_0x1713c7=>{const _0x313cf6=_0xc9cd8d;let _0x1eb29f=_0x1713c7['eventID'];_0x1eb29f===_0x18d6f7[_0x313cf6(0x1a0)]&&this[_0x313cf6(0x340)](_0x1713c7),_0x1eb29f===_0x18d6f7['USERS_LEAVE']&&this['_onCursorDelete'](_0x1713c7);}),this['disposeWithMe'](this['_commandService'][_0xc9cd8d(0x25a)](_0x43fa1e=>{const _0x494ac5=_0xc9cd8d;let _0x23b4df=_0x43fa1e['params'];_0x23b4df!=null&&this[_0x494ac5(0x1f7)]&&_0x43fa1e['id']===_0x2f5396['id']&&_0x23b4df['unitId']===this[_0x494ac5(0x39a)]&&_0x23b4df[_0x494ac5(0x236)]===!0x1&&_0x23b4df['ranges']['length']>0x0&&this[_0x494ac5(0x2e0)](_0x23b4df[_0x494ac5(0x2f4)]);})),this[_0xc9cd8d(0x2fc)][_0xc9cd8d(0x2a6)][_0xc9cd8d(0x2af)](_0x506d73(this[_0xc9cd8d(0x18c)]))[_0xc9cd8d(0x1f2)](_0x383d3e=>{const _0x30aba5=_0xc9cd8d;if((_0x383d3e==null?void 0x0:_0x383d3e[_0x30aba5(0x39a)])!==this[_0x30aba5(0x39a)])return;let _0x28f436={'eventID':_0x18d6f7[_0x30aba5(0x1a0)],'data':_0x383d3e};this[_0x30aba5(0x340)](_0x28f436);}),this[_0xc9cd8d(0x2c6)](this[_0xc9cd8d(0x378)][_0xc9cd8d(0x25a)](_0x3c3f6d=>{const _0x1681a9=_0xc9cd8d;if(_0x3c3f6d[_0x1681a9(0x386)]==null)return;let _0xefa12c=_0x3c3f6d['params'];if(_0x3c3f6d['id']!==_0x3504f7['id']||_0xefa12c[_0x1681a9(0x201)]!==this['unitID'])return;let _0x45dca7={'id':_0x1681a9(0x278),'params':_0xefa12c},_0xbe42eb=this[_0x1681a9(0x18d)];for(let [_0x5909bc,_0x3ae28b]of _0xbe42eb){let _0x277382={'id':_0x1681a9(0x278),'params':{'unitId':this[_0x1681a9(0x39a)],'actions':null,'textRanges':_0x3ae28b[_0x1681a9(0x2f4)]}},_0x1ecafb=this[_0x1681a9(0x2be)]['transformMutation'](_0x45dca7,_0x277382,!0x1);if(_0x28c447(_0x1ecafb))throw _0x1ecafb['error'];_0xbe42eb[_0x1681a9(0x2da)](_0x5909bc,{..._0x3ae28b,'ranges':_0x1ecafb[_0x1681a9(0x24c)]['params'][_0x1681a9(0x228)]});}queueMicrotask(()=>{const _0x3dbbe6=_0x1681a9;this[_0x3dbbe6(0x25c)][_0x3dbbe6(0x1c8)](_0xbe42eb);});})));}['_onCursorUpdate'](_0x47ac41){const _0x3dd497=_0x4f3698;var _0x1fff92,_0x5c9ff2;let {memberID:_0x30bff2,selection:_0x1677f2}=_0x47ac41[_0x3dd497(0x363)],_0x5bfe7b=ln(_0x1677f2),_0x1ca0ac=(_0x1fff92=(_0x5c9ff2=this[_0x3dd497(0x1a2)]['getMember'](this[_0x3dd497(0x39a)],_0x30bff2))==null?void 0x0:_0x5c9ff2[_0x3dd497(0x38c)])==null?_0x3dd497(0x240):_0x1fff92,_0x840786={'color':this[_0x3dd497(0x327)]['assignAColorForMemberID'](_0x30bff2),'name':_0x1ca0ac,'ranges':_0x5bfe7b},_0x396274=this['cursorInfo'];_0x396274['set'](_0x30bff2,_0x840786),this[_0x3dd497(0x25c)][_0x3dd497(0x1c8)](_0x396274);}[_0x4f3698(0x388)](_0x33cc9b){const _0x509014=_0x4f3698;let {memberID:_0xdf492f}=_0x33cc9b['data'],_0x438595=this[_0x509014(0x18d)];_0x438595[_0x509014(0x229)](_0xdf492f),this['_cursorInfo$'][_0x509014(0x1c8)](_0x438595);}[_0x4f3698(0x1d1)](){const _0x23749c=_0x4f3698;var _0x93565c;if(this['_online']=!0x0,((_0x93565c=this[_0x23749c(0x366)]['getFocusedUnit']())==null?void 0x0:_0x93565c[_0x23749c(0x219)]())!==this['unitID'])return;let _0x1452c0=this['_injector']['get'](_0x1eff78)['getDocRanges']();Array['isArray'](_0x1452c0)&&_0x1452c0[_0x23749c(0x2ac)]>0x0&&this[_0x23749c(0x2e0)](_0x1452c0);}['_toggleOffline'](){const _0x44a6e5=_0x4f3698;this[_0x44a6e5(0x1f7)]=!0x1;}};dn=q([K(0x2,_0x3a3495(_0xd0a80)),K(0x3,_0x3a3495(sn)),K(0x4,_0x3a3495(_0x5d2148)),K(0x5,_0x3a3495(un)),K(0x6,_0x36830a),K(0x7,_0x299f08),K(0x8,_0x475d4a)],dn);const fn=()=>{let _0x3380a8=[],_0x278b50=!0x1;return _0x433964=>{const _0x2c977f=_0x501c;_0x3380a8[_0x2c977f(0x277)](_0x433964),_0x278b50||(_0x278b50=!0x0,setTimeout(()=>{const _0x2bfd68=_0x2c977f;_0x3380a8[_0x2bfd68(0x251)](_0x347267=>_0x347267()),_0x3380a8=[],_0x278b50=!0x1;}));};};let pn=class extends _0x2d8708{get[_0x4f3698(0x18d)](){const _0x42718b=_0x4f3698;return this[_0x42718b(0x25c)][_0x42718b(0x23e)]();}get[_0x4f3698(0x2d3)](){const _0x523dc6=_0x4f3698;return this[_0x523dc6(0x30a)]['getValue']();}constructor(_0xa3d359,_0x129591,_0x34e61d,_0x444f75,_0x7c2b53,_0x160412,_0x32ce61,_0x1cb195){const _0x4d73b8=_0x4f3698;super(),this[_0x4d73b8(0x39a)]=_0xa3d359,this[_0x4d73b8(0x1d0)]=_0x129591,this['_injector']=_0x34e61d,this[_0x4d73b8(0x327)]=_0x444f75,this[_0x4d73b8(0x1a2)]=_0x7c2b53,this[_0x4d73b8(0x366)]=_0x160412,this[_0x4d73b8(0x378)]=_0x32ce61,this['_refRangeService']=_0x1cb195,G(this,_0x4d73b8(0x1f7),!0x1),G(this,_0x4d73b8(0x372),!0x1),G(this,_0x4d73b8(0x25c),new _0x5a0bca(new Map())),G(this,'cursorInfo$',this[_0x4d73b8(0x25c)]['asObservable']()),G(this,_0x4d73b8(0x30a),new _0x5a0bca([])),G(this,_0x4d73b8(0x23f),this[_0x4d73b8(0x30a)][_0x4d73b8(0x2af)](_0x4ee250(0x12c))),G(this,_0x4d73b8(0x2e0),_0x2d6517((_0x279869,_0x39a6f3)=>{const _0x5ec4b0=_0x4d73b8;let _0x34483f={'eventID':_0x18d6f7['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x5ec4b0(0x1d0)][_0x5ec4b0(0x193)](),'selection':_0x138433(_0x279869,_0x39a6f3[_0x5ec4b0(0x1dd)])}};this[_0x5ec4b0(0x1d0)][_0x5ec4b0(0x232)](_0x34483f,this[_0x5ec4b0(0x39a)]);},0x64));}['dispose'](){const _0x344727=_0x4f3698;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x344727(0x25c)]['complete'](),this[_0x344727(0x30a)][_0x344727(0x1c8)]([]),this[_0x344727(0x30a)][_0x344727(0x2cb)]();}[_0x4f3698(0x1d7)](){const _0x20b005=_0x4f3698;this['_init']||(this['_init']=!0x0,this[_0x20b005(0x1d0)][_0x20b005(0x291)][_0x20b005(0x2af)](_0x506d73(this[_0x20b005(0x18c)]))['subscribe'](_0x2f70b7=>{const _0x17e08f=_0x20b005;_0x2f70b7===_0x3c46b2['ONLINE']?this[_0x17e08f(0x1d1)]():this['_toggleOffline']();}),this['_session'][_0x20b005(0x2fe)][_0x20b005(0x2af)](_0x506d73(this[_0x20b005(0x18c)]))[_0x20b005(0x1f2)](_0x44c4f6=>{const _0x8fd939=_0x20b005;let _0x2df4ca=_0x44c4f6[_0x8fd939(0x30d)];_0x2df4ca===_0x18d6f7[_0x8fd939(0x1a0)]&&this[_0x8fd939(0x340)](_0x44c4f6),_0x2df4ca===_0x18d6f7[_0x8fd939(0x255)]&&this[_0x8fd939(0x388)](_0x44c4f6);}),this['_onRefRangeChange'](),this[_0x20b005(0x2c6)](this[_0x20b005(0x378)][_0x20b005(0x25a)](_0x45ebc7=>{const _0x126cff=_0x20b005;if(this['_online']&&_0x45ebc7['id']===_0x1df243['id']&&_0x45ebc7[_0x126cff(0x386)]['unitId']===this[_0x126cff(0x39a)]){let _0x807535=_0x45ebc7[_0x126cff(0x386)];this[_0x126cff(0x2e0)](_0x807535[_0x126cff(0x350)],_0x807535[_0x126cff(0x35b)][0x0]);}})));}[_0x4f3698(0x340)](_0x1206a6){const _0x27d566=_0x4f3698;var _0x33424b,_0x497b78;let {memberID:_0x4ff6e3,selection:_0x55b175}=_0x1206a6[_0x27d566(0x363)],{sheetName:_0x12761c,range:_0x353c87}=_0x23a1fc(_0x55b175),_0x2cf1f4={'name':(_0x33424b=(_0x497b78=this[_0x27d566(0x1a2)]['getMember'](this[_0x27d566(0x39a)],_0x4ff6e3))==null?void 0x0:_0x497b78[_0x27d566(0x38c)])==null?_0x27d566(0x240):_0x33424b,'range':this[_0x27d566(0x22f)](_0x12761c,_0x353c87),'sheetID':_0x12761c,'color':this[_0x27d566(0x327)][_0x27d566(0x2c5)](_0x4ff6e3),'selection':_0x55b175},_0x57a88e=this[_0x27d566(0x18d)];_0x57a88e['set'](_0x4ff6e3,_0x2cf1f4),this[_0x27d566(0x25c)][_0x27d566(0x1c8)](_0x57a88e);}[_0x4f3698(0x388)](_0x5ee77d){const _0xc7839a=_0x4f3698;let {memberID:_0x3ff488}=_0x5ee77d[_0xc7839a(0x363)],_0x21e8b9=this[_0xc7839a(0x18d)];_0x21e8b9[_0xc7839a(0x229)](_0x3ff488),this[_0xc7839a(0x25c)][_0xc7839a(0x1c8)](_0x21e8b9);}[_0x4f3698(0x22f)](_0x195dc7,_0xb1ba5a){const _0xb4fc9e=_0x4f3698;var _0x31d516;let _0xf4cc19=(_0x31d516=this[_0xb4fc9e(0x366)][_0xb4fc9e(0x352)](this[_0xb4fc9e(0x39a)]))==null||(_0x31d516=_0x31d516[_0xb4fc9e(0x37e)](_0x195dc7))==null?void 0x0:_0x31d516[_0xb4fc9e(0x18f)]();return(_0xf4cc19==null?void 0x0:_0xf4cc19['find'](_0x3abdc1=>_0x5794ce['contains'](_0x3abdc1,_0xb1ba5a)))||_0xb1ba5a;}[_0x4f3698(0x27c)](){const _0x14b3a6=_0x4f3698;let _0x2bc697=new _0x97351b(),_0x2faedc=fn(),_0x44f511=()=>{const _0x4e9e29=_0x501c;_0x2bc697[_0x4e9e29(0x359)]();let _0x811f09=(_0x2752b9,_0x449351,_0x49ec7,_0x33eef7)=>{const _0xd60f7e=_0x4e9e29;let _0x2f3b28=[];switch(_0x2752b9['id']){case _0x48cbdd[_0xd60f7e(0x19b)]:_0x2f3b28=_0x2f0aa7(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x33e)]:_0x2f3b28=_0x3119fa(_0x2752b9,_0x33eef7);break;case _0x48cbdd['InsertColCommandId']:_0x2f3b28=_0x673428(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x2b5)]:_0x2f3b28=_0x34436c(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x1cd)]:_0x2f3b28=_0xfb1dc5(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x199)]:_0x2f3b28=_0x25f7b8(_0x2752b9,_0x33eef7);break;case _0x48cbdd['MoveRangeCommandId']:_0x2f3b28=_0x355e03(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x1f0)]:_0x2f3b28=_0x35be56(_0x2752b9,_0x33eef7);break;case _0x48cbdd[_0xd60f7e(0x329)]:_0x2f3b28=_0x3acad2(_0x2752b9,_0x33eef7);break;}let _0x39ae5e=_0x4ea892(_0x2f3b28,_0x33eef7),_0x551ff9=this[_0xd60f7e(0x18d)]['get'](_0x449351);if(_0x551ff9&&_0x39ae5e){let _0x308b39={..._0x551ff9,'range':_0x39ae5e};this[_0xd60f7e(0x18d)][_0xd60f7e(0x2da)](_0x449351,_0x308b39),_0x2faedc(()=>{const _0x3dea55=_0xd60f7e;let _0x2763be=this['_refRangeService'][_0x3dea55(0x1c6)](_0x39ae5e,_0x307e70=>(_0x2763be[_0x3dea55(0x359)](),_0x811f09(_0x307e70,_0x449351,_0x49ec7,_0x39ae5e)));_0x2bc697[_0x3dea55(0x2e3)](_0x2763be);});}return{'redos':[],'undos':[]};};this[_0x4e9e29(0x18d)][_0x4e9e29(0x251)]((_0x195644,_0x2ad164)=>{const _0x3abf6c=_0x4e9e29;let {range:_0x9c34c4,sheetID:_0x100a03}=_0x195644,_0x1d1c18=this[_0x3abf6c(0x1b8)][_0x3abf6c(0x1c6)](_0x9c34c4,_0x4b1ed1=>(_0x1d1c18[_0x3abf6c(0x359)](),_0x811f09(_0x4b1ed1,_0x2ad164,_0x100a03,_0x9c34c4)));_0x2bc697[_0x3abf6c(0x2e3)](_0x1d1c18);});};this[_0x14b3a6(0x2c6)](_0x305b33(this[_0x14b3a6(0x25c)][_0x14b3a6(0x1f2)](()=>{_0x44f511();})));}[_0x4f3698(0x1d1)](){const _0x1591c5=_0x4f3698;var _0x20aa24,_0x53e180;if(this['_online']=!0x0,((_0x20aa24=this[_0x1591c5(0x366)][_0x1591c5(0x2e4)]())==null?void 0x0:_0x20aa24[_0x1591c5(0x219)]())!==this[_0x1591c5(0x39a)])return;let _0x24692c=(_0x53e180=this[_0x1591c5(0x370)]['get'](_0x5dfef0)['getCurrentSelections']())==null?void 0x0:_0x53e180[0x0],_0x3585eb=this['_univerInstanceService']['getCurrentUnitOfType'](_0x38e1b9[_0x1591c5(0x35a)])['getActiveSheet']();_0x24692c&&_0x3585eb&&this[_0x1591c5(0x2e0)](_0x3585eb[_0x1591c5(0x1be)](),_0x24692c);}['_toggleOffline'](){const _0x27281a=_0x4f3698;this[_0x27281a(0x1f7)]=!0x1;}};pn=q([K(0x2,_0x3a3495(_0xd0a80)),K(0x3,_0x3a3495(sn)),K(0x4,_0x3a3495(_0x5d2148)),K(0x5,_0x299f08),K(0x6,_0x475d4a),K(0x7,_0x3a3495(_0x4de819))],pn);let X=class extends _0x2d8708{constructor(_0x31194c,_0x124c2f,_0x1ee3f1){const _0xd01cd1=_0x4f3698;super(),this['_univerInstanceService']=_0x31194c,this[_0xd01cd1(0x370)]=_0x124c2f,this[_0xd01cd1(0x262)]=_0x1ee3f1,G(this,_0xd01cd1(0x246),new Map()),G(this,_0xd01cd1(0x213),new _0x17e895()),this[_0xd01cd1(0x372)]();}['dispose'](){const _0xe53ee9=_0x4f3698;super[_0xe53ee9(0x359)](),this[_0xe53ee9(0x213)][_0xe53ee9(0x2cb)](),this['_entities'][_0xe53ee9(0x251)](_0x583b2b=>_0x583b2b[_0xe53ee9(0x359)]());}[_0x4f3698(0x28f)](_0x3a7997){const _0x460e1a=_0x4f3698;return this['_entities'][_0x460e1a(0x2cc)](_0x3a7997)?this[_0x460e1a(0x246)]['get'](_0x3a7997)[_0x460e1a(0x28a)]:this[_0x460e1a(0x213)]['pipe'](_0x318dbb(_0x50c3dd=>_0x50c3dd[_0x460e1a(0x39a)]===_0x3a7997),_0x4881ed(_0x1300b3=>_0x1300b3[_0x460e1a(0x28a)]));}['_init'](){const _0x2f403d=_0x4f3698;this[_0x2f403d(0x366)][_0x2f403d(0x394)](_0x38e1b9[_0x2f403d(0x35a)])[_0x2f403d(0x2af)](_0x506d73(this[_0x2f403d(0x18c)]))[_0x2f403d(0x1f2)](async _0x2a207c=>{const _0x42defa=_0x2f403d;let _0x51b628=_0x2a207c['unit'][_0x42defa(0x219)](),_0x534772=await this[_0x42defa(0x34a)](_0x51b628);this['_entityInit$'][_0x42defa(0x1c8)](_0x534772),this[_0x42defa(0x246)][_0x42defa(0x2da)](_0x51b628,_0x534772);}),this[_0x2f403d(0x366)][_0x2f403d(0x394)](_0x38e1b9[_0x2f403d(0x221)])[_0x2f403d(0x2af)](_0x506d73(this['dispose$']))[_0x2f403d(0x2af)](_0x318dbb(_0x3aa579=>!_0x3aa579[_0x2f403d(0x1e8)][_0x2f403d(0x219)]()['startsWith']('__')))['subscribe'](async _0x2a4cb7=>{const _0xbbd42=_0x2f403d;let {unit:_0x12c895}=_0x2a4cb7,_0x2e5397=_0x12c895[_0xbbd42(0x219)](),_0x59d0f5=await this[_0xbbd42(0x2c1)](_0x2e5397);this[_0xbbd42(0x213)]['next'](_0x59d0f5),this['_entities'][_0xbbd42(0x2da)](_0x2e5397,_0x59d0f5);}),_0x599df5(this[_0x2f403d(0x366)][_0x2f403d(0x2f9)](_0x38e1b9[_0x2f403d(0x221)]),this[_0x2f403d(0x366)][_0x2f403d(0x2f9)](_0x38e1b9[_0x2f403d(0x35a)]))['pipe'](_0x506d73(this['dispose$']))[_0x2f403d(0x1f2)](_0x339186=>{const _0x30a3ee=_0x2f403d;let _0x143435=_0x339186[_0x30a3ee(0x219)](),_0x10bc0a=this[_0x30a3ee(0x246)][_0x30a3ee(0x1d3)](_0x143435);_0x10bc0a&&(_0x10bc0a['dispose'](),this[_0x30a3ee(0x246)][_0x30a3ee(0x229)](_0x143435));});}async[_0x4f3698(0x34a)](_0x244b87){const _0x1853b6=_0x4f3698;let _0x4a67c5=await this['_collabSessionService'][_0x1853b6(0x373)](_0x244b87),_0x1c3c16=this[_0x1853b6(0x370)][_0x1853b6(0x34b)](pn,_0x244b87,_0x4a67c5);return _0x1c3c16[_0x1853b6(0x1d7)](),_0x1c3c16;}async[_0x4f3698(0x2c1)](_0x3a61b0){const _0x659916=_0x4f3698;let _0x5210c7=await this[_0x659916(0x262)]['requireSession'](_0x3a61b0),_0x3fbd9b=this[_0x659916(0x370)]['createInstance'](dn,_0x3a61b0,_0x5210c7);return _0x3fbd9b['init'](),_0x3fbd9b;}};X=q([K(0x0,_0x299f08),K(0x1,_0x3a3495(_0xd0a80)),K(0x2,_0x3a3495(_0x295742))],X);function mn(_0x138773,_0xccc95d){const _0x3de7d8=_0x4f3698;var _0x897876,_0x2b9ee1,_0x153fa1;let {radius:_0x30513e,width:_0x398c8a,height:_0x7ca106}=_0xccc95d;_0x30513e=(_0x897876=_0x30513e)==null?0x0:_0x897876,_0x398c8a=(_0x2b9ee1=_0x398c8a)==null?0x1e:_0x2b9ee1,_0x7ca106=(_0x153fa1=_0x7ca106)==null?0x1e:_0x153fa1;let _0x338c13=0x0,_0x234f30=0x0,_0x17e42b=0x0;_0x338c13=_0x234f30=_0x17e42b=Math['min'](_0x30513e,_0x398c8a/0x2,_0x7ca106/0x2),_0x138773[_0x3de7d8(0x36d)](),_0x138773[_0x3de7d8(0x1ff)](_0x338c13,0x0),_0x138773[_0x3de7d8(0x274)](_0x398c8a-_0x234f30,0x0),_0x138773[_0x3de7d8(0x29e)](_0x398c8a-_0x234f30,_0x234f30,_0x234f30,Math['PI']*0x3/0x2,0x0,!0x1),_0x138773[_0x3de7d8(0x274)](_0x398c8a,_0x7ca106-_0x17e42b),_0x138773[_0x3de7d8(0x29e)](_0x398c8a-_0x17e42b,_0x7ca106-_0x17e42b,_0x17e42b,0x0,Math['PI']/0x2,!0x1),_0x138773['lineTo'](0x0,_0x7ca106),_0x138773['lineTo'](0x0,_0x338c13),_0x138773['arc'](_0x338c13,_0x338c13,_0x338c13,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x138773['closePath'](),_0xccc95d['fill']&&(_0x138773['save'](),_0x138773[_0x3de7d8(0x1f6)]=_0xccc95d[_0x3de7d8(0x2ed)],_0xccc95d[_0x3de7d8(0x1e0)]===_0x3de7d8(0x39d)?_0x138773[_0x3de7d8(0x2ed)](_0x3de7d8(0x39d)):_0x138773['fill'](),_0x138773[_0x3de7d8(0x217)]());}var hn=class e extends _0x30d899{constructor(_0x13546c,_0x28a692){const _0x1bf314=_0x4f3698;super(_0x13546c,_0x28a692),G(this,_0x1bf314(0x2b9),void 0x0),G(this,_0x1bf314(0x20f),void 0x0),this[_0x1bf314(0x2b9)]=_0x28a692==null?void 0x0:_0x28a692[_0x1bf314(0x2b9)],this[_0x1bf314(0x20f)]=_0x28a692==null?void 0x0:_0x28a692['text'];}static['drawWith'](_0x1ed143,_0x37b654){const _0x1f0e7b=_0x4f3698;let {text:_0x5d8744,color:_0x4edf8c}=_0x37b654;_0x1ed143[_0x1f0e7b(0x1e5)](),_0x1ed143[_0x1f0e7b(0x2b1)]=_0x1f0e7b(0x253);let _0x53e549=_0x1ed143[_0x1f0e7b(0x1e4)](_0x5d8744)[_0x1f0e7b(0x26b)];if(mn(_0x1ed143,{'height':0x14,'radius':0x4,'width':Math[_0x1f0e7b(0x3a5)](_0x53e549+0x8,0xc8),'fill':_0x4edf8c,'evented':!0x1}),_0x1ed143[_0x1f0e7b(0x1f6)]=_0x1f0e7b(0x358),_0x53e549>0xc0){let _0x53d59d='',_0xc30863=0x0;for(let _0xb6246b of _0x5d8744){let _0x5e09fc=_0x1ed143['measureText'](_0xb6246b)[_0x1f0e7b(0x26b)];if(_0xc30863+_0x5e09fc<=0xc0-_0x1ed143['measureText']('...')[_0x1f0e7b(0x26b)])_0x53d59d+=_0xb6246b,_0xc30863+=_0x5e09fc;else{_0x53d59d+=_0x1f0e7b(0x399);break;}}_0x1ed143['fillText'](_0x53d59d,0x4,0xf);}else _0x1ed143[_0x1f0e7b(0x26e)](_0x5d8744,0x4,0xf);_0x1ed143[_0x1f0e7b(0x217)]();}[_0x4f3698(0x2f5)](_0x2cc0dd){const _0x50268b=_0x4f3698;e[_0x50268b(0x2c7)](_0x2cc0dd,this);}};const gn=_0x4f3698(0x19d);var _n=class{constructor(_0x5435dc,_0x1b5f16,_0x331e33,_0x48df4c){const _0xc9f8e7=_0x4f3698;this[_0xc9f8e7(0x337)]=_0x5435dc,this['_scene']=_0x1b5f16,this[_0xc9f8e7(0x390)]=_0x331e33,this['_document']=_0x48df4c,G(this,_0xc9f8e7(0x2e2),[]),G(this,_0xc9f8e7(0x35f),null),G(this,_0xc9f8e7(0x371),null),G(this,_0xc9f8e7(0x33a),null),G(this,_0xc9f8e7(0x304),null),G(this,_0xc9f8e7(0x2d5),null),this['_render']();}set['_hover'](_0x454842){const _0x199eed=_0x4f3698;_0x454842?(this[_0x199eed(0x33a)]&&this[_0x199eed(0x33a)][_0x199eed(0x345)](),this[_0x199eed(0x371)]&&this[_0x199eed(0x371)][_0x199eed(0x2dc)]()):(this[_0x199eed(0x33a)]&&this['_anchorDot'][_0x199eed(0x2dc)](),this[_0x199eed(0x371)]&&this[_0x199eed(0x371)][_0x199eed(0x345)]());}[_0x4f3698(0x359)](){const _0x8c0cd6=_0x4f3698;for(let _0x140449 of this['_shapes'])_0x140449[_0x8c0cd6(0x359)]();this[_0x8c0cd6(0x371)]&&this[_0x8c0cd6(0x371)]['dispose'](),this['_anchorDot']&&this[_0x8c0cd6(0x33a)][_0x8c0cd6(0x359)](),this[_0x8c0cd6(0x35f)]&&this[_0x8c0cd6(0x35f)][_0x8c0cd6(0x359)](),this[_0x8c0cd6(0x2d5)]&&this['_eventUnsubscribe']();}[_0x4f3698(0x296)](){const _0x4f32ae=_0x4f3698;let {_docSkeleton:_0x3c556c,_document:_0x260dab}=this,{color:_0x2ed274,name:_0xc7d77,ranges:_0x540a4a}=this[_0x4f32ae(0x337)],_0x2a9613=_0x260dab[_0x4f32ae(0x2bb)](),{docsLeft:_0x3bb93d,docsTop:_0x3d6c95}=_0x2a9613,_0x5e4841=new _0x22692b(_0x2a9613,_0x3c556c);for(let {startOffset:_0x24b0cf,endOffset:_0x255c96,rangeType:_0x1a76dd,segmentId:_0x5b5930,segmentPage:_0x280a3a,collapsed:_0x43de30,isActive:_0x34152d}of _0x540a4a){let _0x171339=_0x3c556c[_0x4f32ae(0x26c)](_0x24b0cf,!0x0,_0x5b5930,_0x280a3a),_0x3fdfe3=_0x3c556c[_0x4f32ae(0x26c)](_0x255c96,!0x0,_0x5b5930,_0x280a3a);if(_0x3fdfe3==null&&(_0x3fdfe3=_0x3c556c[_0x4f32ae(0x26c)](_0x255c96-0x1,!0x1,_0x5b5930,_0x280a3a)),_0x34152d){let {contentBoxPointGroup:_0x5311c2}=_0x5e4841[_0x4f32ae(0x343)](_0x3fdfe3,_0x3fdfe3);if(_0x5311c2['length']===0x0)continue;this[_0x4f32ae(0x1b2)](_0x2ed274,_0x5311c2,_0x3bb93d,_0x3d6c95,_0xc7d77),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x171339&&_0x3fdfe3){if(_0x1a76dd===_0xf9eaf4[_0x4f32ae(0x204)]){var _0x32caf8;let {pointGroup:_0x5cd79a}=(_0x32caf8=new _0x2db32d(_0x2a9613,_0x3c556c)[_0x4f32ae(0x343)](_0x171339,_0x3fdfe3))==null?{}:_0x32caf8;if(_0x5cd79a==null||_0x5cd79a[_0x4f32ae(0x2ac)]===0x0)continue;this['_drawRectRange'](_0x2ed274,_0x5cd79a,_0x3bb93d,_0x3d6c95);}else{if(!_0x43de30){let {borderBoxPointGroup:_0x15e412}=_0x5e4841[_0x4f32ae(0x343)](_0x171339,_0x3fdfe3);if(_0x15e412[_0x4f32ae(0x2ac)]===0x0)continue;this[_0x4f32ae(0x20d)](_0x2ed274,_0x15e412,_0x3bb93d,_0x3d6c95);}}}}}[_0x4f3698(0x1b2)](_0x174448,_0x422673,_0x5e4003,_0x3f1149,_0x1d8928){const _0x34bbb7=_0x4f3698;let {left:_0xfa6486,top:_0x49d3c2,height:_0x40a02c}=this['_getAnchorBounding'](_0x422673),_0x3de79b=1.5/this['_getScale'](),_0x5803a5=new _0x457c5d(gn+_0x56a70c(0x6),{'left':_0xfa6486+_0x5e4003-_0x3de79b,'top':_0x49d3c2+_0x3f1149,'height':_0x40a02c,'width':1.5,'fill':_0x174448||_0x5d813f(_0x5ca256[_0x34bbb7(0x2ee)],0x0),'strokeWidth':_0x3de79b,'stroke':_0x34bbb7(0x31d),'evented':!0x0});this['_anchor']=_0x5803a5,this[_0x34bbb7(0x30e)][_0x34bbb7(0x331)](_0x5803a5,_0x424c1f);let _0x477082=new _0x457c5d(gn+_0x56a70c(0x6),{'left':_0xfa6486+_0x5e4003-_0x3de79b,'top':_0x49d3c2+_0x3f1149-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x174448||_0x5d813f(_0x5ca256[_0x34bbb7(0x2ee)],0x0),'strokeWidth':0x0,'stroke':_0x174448||_0x5d813f(_0x5ca256[_0x34bbb7(0x2ee)],0x0),'evented':!0x1});this[_0x34bbb7(0x33a)]=_0x477082,this[_0x34bbb7(0x30e)][_0x34bbb7(0x331)](_0x477082,_0x424c1f);let _0x3f68f4=new hn(gn+_0x56a70c(0x6),{'left':_0xfa6486+_0x5e4003-_0x3de79b,'top':_0x49d3c2+_0x3f1149-0x14,'text':_0x1d8928,'color':_0x174448});this['_textBubble']=_0x3f68f4,this['_scene'][_0x34bbb7(0x331)](_0x3f68f4,_0x424c1f),this[_0x34bbb7(0x258)]=!0x1;}['_handleHover'](){const _0x57a1b2=_0x4f3698;let _0x4efe73=this[_0x57a1b2(0x35f)][_0x57a1b2(0x31c)][_0x57a1b2(0x377)](()=>{const _0x47335b=_0x57a1b2;this[_0x47335b(0x258)]=!0x0;}),_0x5b0947=this['_anchor'][_0x57a1b2(0x1f8)]['subscribeEvent'](()=>{const _0x43b400=_0x57a1b2;this[_0x43b400(0x304)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{_0x4efe73['unsubscribe'](),_0x5b0947['unsubscribe']();};}['_drawTextRange'](_0x22055b,_0x1f8402,_0x2f30be,_0x54c96e){const _0x58c967=_0x4f3698;let _0x280ccd=0.2,_0x1cf9f1=new _0x5f4a6f(_0x22055b)[_0x58c967(0x2cf)](_0x280ccd)[_0x58c967(0x32b)](),_0x10ea2a=new _0x9150e2('collab-text-range-'+_0x56a70c(0x6),{'pointsGroup':_0x1f8402,'fill':_0x1cf9f1||_0x5d813f(_0x5ca256[_0x58c967(0x2ee)],_0x280ccd),'left':_0x2f30be,'top':_0x54c96e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x58c967(0x2e2)]['push'](_0x10ea2a),this[_0x58c967(0x30e)][_0x58c967(0x331)](_0x10ea2a,_0x424c1f);}[_0x4f3698(0x1ed)](_0x5060be,_0x472c1a,_0x35cad9,_0x59ca54){const _0x3e8ae3=_0x4f3698;let _0x25d9d8=0.2,_0x59bc0e=new _0x5f4a6f(_0x5060be)[_0x3e8ae3(0x2cf)](_0x25d9d8)[_0x3e8ae3(0x32b)](),_0x2ac63c=new _0x9150e2('collab-rect-range-'+_0x56a70c(0x6),{'pointsGroup':_0x472c1a,'fill':_0x59bc0e||_0x5d813f(_0x5ca256['black'],_0x25d9d8),'left':_0x35cad9,'top':_0x59ca54,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3e8ae3(0x2e2)][_0x3e8ae3(0x277)](_0x2ac63c),this[_0x3e8ae3(0x30e)]['addObject'](_0x2ac63c,_0x424c1f);}[_0x4f3698(0x1d4)](_0x25c0e6){let _0x489130=_0x25c0e6[0x0],_0x3c9918=_0x489130[0x0],_0x212065=_0x489130[0x2],{x:_0x3222cf,y:_0x300294}=_0x3c9918,{x:_0x361976,y:_0x12ed32}=_0x212065;return{'left':_0x3222cf,'top':_0x300294,'width':_0x361976-_0x3222cf,'height':_0x12ed32-_0x300294};}[_0x4f3698(0x22b)](){const _0x10c51b=_0x4f3698;let {scaleX:_0x461773,scaleY:_0x103f10}=this[_0x10c51b(0x30e)][_0x10c51b(0x21d)]();return Math['max'](_0x461773,_0x103f10);}};let vn=class extends _0x2d8708{constructor(_0x3c8d5b,_0x49778f,_0x35d66d,_0xc4bc48,_0x22c7ae){const _0x1e630a=_0x4f3698;super(),this['_context']=_0x3c8d5b,this[_0x1e630a(0x244)]=_0x49778f,this[_0x1e630a(0x32a)]=_0x35d66d,this['_commandService']=_0xc4bc48,this[_0x1e630a(0x2a8)]=_0x22c7ae,G(this,_0x1e630a(0x26d),[]),G(this,_0x1e630a(0x312),[]),this[_0x1e630a(0x372)]();}[_0x4f3698(0x372)](){const _0x5b9f9a=_0x4f3698;let _0x41aa6c=this['_context'][_0x5b9f9a(0x201)],_0x3f827a=this[_0x5b9f9a(0x244)];this[_0x5b9f9a(0x2c6)](_0x1738da([this['_collabCursorController'][_0x5b9f9a(0x28f)](_0x41aa6c),this[_0x5b9f9a(0x2a8)]['currentTheme$']])[_0x5b9f9a(0x2af)](_0x66062e(([_0x4298ac,_0x143c19])=>({'skeleton':_0x3f827a[_0x5b9f9a(0x1aa)](),'cursors':[..._0x4298ac[_0x5b9f9a(0x344)]()][_0x5b9f9a(0x36a)](_0x478dd8=>({..._0x478dd8,'color':this[_0x5b9f9a(0x2a8)][_0x5b9f9a(0x247)](_0x478dd8[_0x5b9f9a(0x2b9)])}))})))[_0x5b9f9a(0x1f2)](_0xbaf165=>{const _0x230a7d=_0x5b9f9a;if(this['_removeCollabCursors'](),_0xbaf165){let {skeleton:_0x3a8e38,cursors:_0x354f96}=_0xbaf165;this[_0x230a7d(0x1ba)](_0x3a8e38,_0x354f96);}})),this[_0x5b9f9a(0x215)](),this[_0x5b9f9a(0x33d)]();}[_0x4f3698(0x1ba)](_0x133499,_0x1f99d5){const _0x4530a9=_0x4f3698;let {scene:_0x2910c7,mainComponent:_0x295048}=this['_context'],_0x372c89=_0x1f99d5[_0x4530a9(0x1fc)](_0x4a222f=>new _n(_0x4a222f,_0x2910c7,_0x133499,_0x295048));this[_0x4530a9(0x26d)]=_0x372c89,this[_0x4530a9(0x312)]=_0x1f99d5;}[_0x4f3698(0x19a)](){const _0x234383=_0x4f3698;this[_0x234383(0x391)]();let {scene:_0x1d8edd,mainComponent:_0x173741}=this[_0x234383(0x396)],_0x27742b=this[_0x234383(0x244)][_0x234383(0x1aa)](),_0x144662=this[_0x234383(0x312)][_0x234383(0x1fc)](_0x5321a3=>new _n(_0x5321a3,_0x1d8edd,_0x27742b,_0x173741));this[_0x234383(0x26d)]=_0x144662;}[_0x4f3698(0x391)](){const _0x50c52d=_0x4f3698;this[_0x50c52d(0x26d)][_0x50c52d(0x251)](_0x17a0a1=>_0x17a0a1[_0x50c52d(0x359)]()),this['_cursorShapes']=[];}[_0x4f3698(0x33d)](){const _0x136d27=_0x4f3698;let _0x5f2cfc=[_0x54470e['id']];this[_0x136d27(0x2c6)](this[_0x136d27(0x378)][_0x136d27(0x25a)](_0x5f4347=>{const _0x209b68=_0x136d27;_0x5f2cfc[_0x209b68(0x303)](_0x5f4347['id'])&&_0x5f4347['params']['unitId']===this[_0x209b68(0x396)][_0x209b68(0x201)]&&this[_0x209b68(0x19a)]();}));}['_initResize'](){const _0x2c0294=_0x4f3698;this[_0x2c0294(0x2c6)](_0x3ad556(this[_0x2c0294(0x396)][_0x2c0294(0x1bd)][_0x2c0294(0x2a1)])[_0x2c0294(0x2af)](_0x5bdf60(_0x29b2fe=>_0x29b2fe[_0x2c0294(0x1d9)]===_0x4df35f[_0x2c0294(0x1a6)]),_0x4c8a96(0x10))['subscribe'](()=>{const _0x1410af=_0x2c0294;this[_0x1410af(0x19a)]();}));}};vn=q([K(0x1,_0x3a3495(_0xa6e1bc)),K(0x2,_0x3a3495(X)),K(0x3,_0x475d4a),K(0x4,_0x3a3495(_0x52719a))],vn);var yn=class extends _0x30d899{constructor(_0x2cc58e,_0x45dcab){const _0x244e00=_0x4f3698;if(super(_0x2cc58e,_0x45dcab),G(this,_0x244e00(0x2fb),void 0x0),G(this,_0x244e00(0x385),!0x1),G(this,_0x244e00(0x2a5),void 0x0),G(this,_0x244e00(0x220),''),G(this,_0x244e00(0x266),'top'),G(this,_0x244e00(0x2d6),void 0x0),G(this,_0x244e00(0x1f1),void 0x0),G(this,_0x244e00(0x317),void 0x0),G(this,_0x244e00(0x231),0x4),G(this,_0x244e00(0x321),void 0x0),G(this,'_blinkIntervalTimer',void 0x0),G(this,_0x244e00(0x20a),!0x0),G(this,_0x244e00(0x18b),0x0),_0x45dcab){var _0x4cdfc7;if(this[_0x244e00(0x1ab)](_0x45dcab),_0x45dcab['highlight']&&((_0x4cdfc7=_0x45dcab[_0x244e00(0x216)])==null?this[_0x244e00(0x231)]:_0x4cdfc7)){var _0x208e40;this[_0x244e00(0x268)]((_0x208e40=_0x45dcab[_0x244e00(0x216)])==null?this[_0x244e00(0x231)]:_0x208e40);}}this['onPointerEnter$'][_0x244e00(0x377)](()=>this[_0x244e00(0x1ab)]({'hovered':!0x0})),this['onPointerLeave$'][_0x244e00(0x377)](()=>this[_0x244e00(0x1ab)]({'hovered':!0x1}));}[_0x4f3698(0x31a)](_0x21857e){const _0x5ce4e0=_0x4f3698;this[_0x5ce4e0(0x18b)]=_0x21857e;}[_0x4f3698(0x1ab)](_0x2bc806){const _0x60b780=_0x4f3698;var _0x3be727,_0x11c4a3,_0x5d3d92,_0xfc51dc,_0x1aba87,_0x3e5a01,_0x15f101;this[_0x60b780(0x2fb)]=(_0x3be727=_0x2bc806['color'])==null?this[_0x60b780(0x2fb)]:_0x3be727,this[_0x60b780(0x385)]=(_0x11c4a3=_0x2bc806[_0x60b780(0x293)])==null?this['_hovered']:_0x11c4a3,this['_range']=(_0x5d3d92=_0x2bc806[_0x60b780(0x1dd)])==null?this[_0x60b780(0x2a5)]:_0x5d3d92,this[_0x60b780(0x220)]=(_0xfc51dc=_0x2bc806[_0x60b780(0x38c)])==null?this[_0x60b780(0x220)]:_0xfc51dc,this['_labelPosition']=(_0x1aba87=_0x2bc806[_0x60b780(0x25b)])==null?this[_0x60b780(0x266)]:_0x1aba87,this[_0x60b780(0x2d6)]=(_0x3e5a01=_0x2bc806['backgroundColor'])==null?this[_0x60b780(0x2d6)]:_0x3e5a01,this[_0x60b780(0x1f1)]=(_0x15f101=_0x2bc806[_0x60b780(0x310)])==null?this[_0x60b780(0x1f1)]:_0x15f101,_0x2bc806[_0x60b780(0x216)]!==void 0x0&&(this[_0x60b780(0x231)]=_0x2bc806[_0x60b780(0x216)]),_0x2bc806[_0x60b780(0x3a6)]!==void 0x0&&(this[_0x60b780(0x317)]=_0x2bc806[_0x60b780(0x3a6)]),_0x2bc806[_0x60b780(0x298)]!==void 0x0&&(this[_0x60b780(0x18b)]=_0x2bc806[_0x60b780(0x298)]),this[_0x60b780(0x2d1)]({'width':_0x2bc806[_0x60b780(0x26b)],'height':_0x2bc806[_0x60b780(0x332)]});}[_0x4f3698(0x271)](_0x21b393){const _0x1e0ec9=_0x4f3698;let {row:_0x3a5830,column:_0x51c254}=_0x21b393;if(_0x3a5830>=this[_0x1e0ec9(0x2a5)]['startRow']&&_0x3a5830<=this[_0x1e0ec9(0x2a5)][_0x1e0ec9(0x29f)]&&_0x51c254>=this[_0x1e0ec9(0x2a5)][_0x1e0ec9(0x33b)]&&_0x51c254<=this[_0x1e0ec9(0x2a5)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x4f3698(0x268)](_0xc2db2d){const _0x41f981=_0x4f3698;this['_stopBlinking'](),this[_0x41f981(0x20a)]=!0x0,this[_0x41f981(0x2a3)]=window['setInterval'](()=>{const _0x4a1ab7=_0x41f981;this['_isBlinkVisible']=!this[_0x4a1ab7(0x20a)],this[_0x4a1ab7(0x1b1)](!0x0);},0x1f4),this[_0x41f981(0x321)]=window[_0x41f981(0x2b8)](()=>{const _0x397b1f=_0x41f981;this[_0x397b1f(0x287)](),this[_0x397b1f(0x20a)]=!0x0,this[_0x397b1f(0x1b1)](!0x0);},_0xc2db2d*0x3e8);}['_stopBlinking'](){const _0x17eae2=_0x4f3698;this[_0x17eae2(0x2a3)]&&(window[_0x17eae2(0x2ff)](this['_blinkIntervalTimer']),this[_0x17eae2(0x2a3)]=void 0x0),this[_0x17eae2(0x321)]&&(window[_0x17eae2(0x260)](this[_0x17eae2(0x321)]),this['_blinkTimer']=void 0x0);}['triggerDblclick'](_0x277453){return!0x1;}[_0x4f3698(0x359)](){const _0x816085=_0x4f3698;this[_0x816085(0x287)](),super[_0x816085(0x359)]();}[_0x4f3698(0x2f5)](_0x2b36a4){const _0x45a0cc=_0x4f3698;let _0x363696=this['_color'],_0x40b8cf=this[_0x45a0cc(0x2d6)];if(this[_0x45a0cc(0x317)]&&!this[_0x45a0cc(0x20a)]&&(_0x363696=this[_0x45a0cc(0x34c)](this['_color']),_0x40b8cf=this[_0x45a0cc(0x2d6)]?this['_getLighterColor'](this[_0x45a0cc(0x2d6)]):void 0x0),_0x457c5d[_0x45a0cc(0x2c7)](_0x2b36a4,{'width':this[_0x45a0cc(0x26b)],'height':this[_0x45a0cc(0x332)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x363696,'evented':!0x1,'fill':_0x40b8cf}),this[_0x45a0cc(0x385)]||this[_0x45a0cc(0x1f1)]){var _0x40cbd1;_0x2b36a4[_0x45a0cc(0x1e5)](),_0x2b36a4[_0x45a0cc(0x1c9)](0x1,0x0,0x0,0x1,this[_0x45a0cc(0x26b)],(this[_0x45a0cc(0x266)]==='bottom'?0x0:-0x14)+((_0x40cbd1=this[_0x45a0cc(0x18b)])==null?0x0:_0x40cbd1)),hn[_0x45a0cc(0x2c7)](_0x2b36a4,{'text':this[_0x45a0cc(0x220)],'color':_0x363696}),_0x2b36a4[_0x45a0cc(0x217)]();}}['_getLighterColor'](_0x45a403){const _0x53e49b=_0x4f3698;return _0x45a403[_0x53e49b(0x32f)]('#')?_0x53e49b(0x2ba)+Number[_0x53e49b(0x368)](_0x45a403['slice'](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x45a403[_0x53e49b(0x206)](0x3,0x5),0x10)+',\x20'+Number[_0x53e49b(0x368)](_0x45a403[_0x53e49b(0x206)](0x5,0x7),0x10)+_0x53e49b(0x25f):_0x45a403[_0x53e49b(0x32f)](_0x53e49b(0x309))?_0x45a403[_0x53e49b(0x2b7)](/[\d.]+\)$/g,_0x53e49b(0x28d)):_0x45a403['startsWith'](_0x53e49b(0x292))?_0x45a403['replace'](_0x53e49b(0x292),_0x53e49b(0x309))[_0x53e49b(0x2b7)](')',_0x53e49b(0x25f)):_0x45a403;}};let bn=class extends _0x2d8708{constructor(_0x45c7fb,_0x3048c2,_0x23f070,_0x9cd91a){const _0x3b48c7=_0x4f3698;super(),this[_0x3b48c7(0x396)]=_0x45c7fb,this[_0x3b48c7(0x31f)]=_0x3048c2,this[_0x3b48c7(0x32a)]=_0x23f070,this['_themeService']=_0x9cd91a,G(this,_0x3b48c7(0x312),new Set()),G(this,_0x3b48c7(0x335),null),G(this,_0x3b48c7(0x1fd),null),this[_0x3b48c7(0x372)]();}[_0x4f3698(0x372)](){const _0x34af4d=_0x4f3698;this[_0x34af4d(0x31f)]['currentSkeleton$']['pipe'](_0x119f17(this['dispose$']),_0x5a5de0(_0x4f9631=>{const _0x35cd3c=_0x34af4d;if(_0x4f9631){let _0x10a996=_0x4f9631[_0x35cd3c(0x384)];return _0x1738da(this[_0x35cd3c(0x32a)][_0x35cd3c(0x28f)](this['_context']['unitId']),this[_0x35cd3c(0x2a8)][_0x35cd3c(0x34f)])[_0x35cd3c(0x2af)](_0x66062e(([_0x1cd479,_0x255117])=>{let _0x1f2a8d=new Map();return _0x1cd479['forEach']((_0x419346,_0x14a9b6)=>{const _0x3a4894=_0x501c;if(_0x419346['sheetID']===_0x10a996){let _0x1b8029={..._0x419346};_0x1b8029[_0x3a4894(0x2b9)]=this['_themeService'][_0x3a4894(0x247)](_0x419346[_0x3a4894(0x2b9)]),_0x1f2a8d['set'](_0x14a9b6,_0x1b8029);}}),{'skeleton':_0x4f9631,'cursors':_0x1f2a8d};}));}return _0x3ef51b({'skeleton':null,'cursors':new Map()});}))[_0x34af4d(0x1f2)](({skeleton:_0x289202,cursors:_0x4a8ca9})=>{const _0x49b5e0=_0x34af4d;this['_removeCollabCursors'](),_0x289202&&this[_0x49b5e0(0x1ba)](_0x289202,_0x4a8ca9);}),this[_0x34af4d(0x2c6)](this[_0x34af4d(0x31f)][_0x34af4d(0x36f)][_0x34af4d(0x2af)](_0x119f17(this[_0x34af4d(0x18c)]))[_0x34af4d(0x1f2)](_0xbce744=>{const _0x23f7da=_0x34af4d;var _0x329b8c;if(_0xbce744==null)return;(_0x329b8c=this['_pointerMoveDisposable'])==null||_0x329b8c[_0x23f7da(0x281)](),this[_0x23f7da(0x1fd)]=null;let {skeleton:_0xe7633b}=_0xbce744,{scene:_0x405cb3}=this[_0x23f7da(0x396)];this[_0x23f7da(0x1fd)]=_0x405cb3['onPointerMove$'][_0x23f7da(0x377)](_0x2d6517(_0x3cc5d3=>{const _0xbf49fe=_0x23f7da;var _0x21486b,_0x2b3bf0;let {offsetX:_0x1f294e,offsetY:_0x4926f4}=_0x3cc5d3,{x:_0x2ee5fb,y:_0x315665}=_0x405cb3['getRelativeToViewportCoord'](_0x2d9a69[_0xbf49fe(0x354)]([_0x1f294e,_0x4926f4])),{scaleX:_0x23051e,scaleY:_0x26ab87}=_0x405cb3['getAncestorScale'](),_0x4c0a82=_0x405cb3[_0xbf49fe(0x1bf)](_0x3c4818['VIEW_MAIN']),_0x5aec73=_0x405cb3[_0xbf49fe(0x286)](_0x2d9a69[_0xbf49fe(0x354)]([_0x2ee5fb,_0x315665]),_0x4c0a82),_0x3097f8=_0xe7633b[_0xbf49fe(0x38d)](_0x1f294e,_0x4926f4,_0x23051e,_0x26ab87,_0x5aec73);((_0x21486b=this[_0xbf49fe(0x335)])==null?void 0x0:_0x21486b['column'])===_0x3097f8[_0xbf49fe(0x2e9)]&&((_0x2b3bf0=this['_lastPointer'])==null?void 0x0:_0x2b3bf0[_0xbf49fe(0x263)])===_0x3097f8[_0xbf49fe(0x263)]||this['_cursors'][_0xbf49fe(0x251)](_0x326a14=>{const _0x538025=_0xbf49fe;_0x326a14[_0x538025(0x271)](_0x3097f8);});},0x64));})),this[_0x34af4d(0x2c6)](_0x305b33(()=>{const _0x24b107=_0x34af4d;var _0x5016c7;(_0x5016c7=this['_pointerMoveDisposable'])==null||_0x5016c7[_0x24b107(0x281)](),this[_0x24b107(0x1fd)]=null;}));}[_0x4f3698(0x1ba)](_0x4f2f1e,_0x183ad1){const _0x1c48a5=_0x4f3698;let _0x51f2d2=this[_0x1c48a5(0x31f)][_0x1c48a5(0x1e7)]();if(!_0x51f2d2)return;let _0x2d2771=this['_getSheetObject']();if(!_0x2d2771)return;this[_0x1c48a5(0x312)][_0x1c48a5(0x251)](_0x36cafc=>{const _0x4e39d8=_0x1c48a5;_0x36cafc[_0x4e39d8(0x1b1)]();});let {scene:_0x37a6bb}=_0x2d2771,_0x57b908=xn(Array[_0x1c48a5(0x27a)](_0x183ad1['values']()))[_0x1c48a5(0x1fc)](_0x445b09=>{const _0x42e5fe=_0x1c48a5;let {color:_0xa0d156,range:_0x2e4141,name:_0x2fe135,selection:_0x2fe7b8,sheetID:_0x3862de}=_0x445b09,{startColumn:_0x333edc,startRow:_0xff6973,endColumn:_0x328300,endRow:_0x2ccc8b}=_0x2e4141,_0x1feda3=_0x2a0576(_0xff6973,_0x333edc,_0x37a6bb,_0x51f2d2),_0x3b9c0a=_0x2a0576(_0x2ccc8b,_0x328300,_0x37a6bb,_0x51f2d2),{columnHeaderHeightAndMarginTop:_0x476b27}=_0x51f2d2,{startX:_0x35a3be,startY:_0x41844a}=_0x1feda3,{endX:_0x3797a3,endY:_0x292826}=_0x3b9c0a,_0x182912=_0x3797a3-_0x35a3be,_0x247602=_0x292826-_0x41844a;return new yn(_0x2fe135,{'labelPosition':_0x41844a-_0x476b27>=0x14?_0x42e5fe(0x2f7):_0x42e5fe(0x1b7),'sheetID':_0x3862de,'range':_0x2e4141,'color':_0xa0d156,'name':_0x2fe135,'selection':_0x2fe7b8,'left':_0x35a3be,'top':_0x41844a,'width':_0x182912,'height':_0x247602,'evented':!0x1,'zIndex':0x1389});});_0x37a6bb[_0x1c48a5(0x226)](_0x57b908,0x1),this[_0x1c48a5(0x312)]=new Set(_0x57b908);}[_0x4f3698(0x391)](){const _0x3e22de=_0x4f3698;var _0xdcf49;(_0xdcf49=this['_cursors'])==null||_0xdcf49[_0x3e22de(0x251)](_0x40a014=>_0x40a014[_0x3e22de(0x359)]());}[_0x4f3698(0x2ef)](){const _0x3a8643=_0x4f3698;return _0x5378e7(this[_0x3a8643(0x396)]['unit'],this[_0x3a8643(0x396)]);}};bn=q([K(0x1,_0x3a3495(_0x389d4c)),K(0x2,_0x3a3495(X)),K(0x3,_0x3a3495(_0x52719a))],bn);function _0x53b6(){const _0x1008f2=['univer-text-orange-500','_initEntityListener','getUnhiddenWorksheets','i18nKey','getVpScrollXYInfoByPosToVp','_stopBlinking','ticket','_updateURLWithCurrentState','cursorInfo$','clickable','decorate','0.2)','_handleHeartbeatEvent','getCollabCursors$','Enter','sessionStatus$','rgb','hovered','[Unhandled\x20Rejection]:\x20','reconnect','_render','_collaborationController','offsetY','PERMISSION_DENIED','executionId','override','imageSourceType','_disabled','arc','endRow','_localStorageService','onTransformChange$','source','_blinkIntervalTimer','setInterval','_range','collabCursorState$','@univerjs-pro/collaboration-client-ui','_themeService','_setupBeforeClosingHandler','with','constructor','length','runOnServer','registerRenderModule','pipe','currentUsage','font','onLocalMutation','icon','prototype','InsertRangeMoveDownCommandId','subunit','replace','setTimeout','color','rgba(','getOffsetConfig','transformStateCache','static','_transformService','entityInit$','_currentUsage','_startDocCollabCursor','then','popstate','_uiPartsService','assignAColorForMemberID','disposeWithMe','drawWith','JOIN_ROOM_FAILED','_handleJoinEvent','syncEditingCollabCursor','complete','has','runId','_selfUnitIDs','setAlpha','_logService','transformByState','CONFLICT','roomMembers','some','_eventUnsubscribe','_backgroundColor','socket$','5068943YsLQdx','div','set','_unitOnClients','show','_collaborationUIEventService','message','_localeService','_updateLocalCursor','reason','_shapes','add','getFocusedUnit','undoState','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','unshift','MUTATION','column','_handleLeaveEvent','getDocRanges','jiqing.500','fill','black','_getSheetObject','_cachedData','whenReady','uni.network.url-service','parse','ranges','_draw','asObservable','top','selection','getTypeOfUnitDisposed$','saveImage','_color','_syncEditingCollabCursorService','collaboration-client-ui.session.will-retry','event$','clearInterval','split','univer-inline-flex\x20univer-items-center\x20univer-justify-center','_setFormulaLimitStatus','includes','_hideTimer','Loading','isActive','find','redoState','rgba','_roomMembers$','addClipboardHook','mutations','eventID','_scene','/run/','showText','_registerRenderDependencies','_cursors','setConfig','symbol','button','colorClass','_highlight','_assignedColors','unhandledrejection','setOffsetY','getCurrentTypeOfUnit$','onPointerEnter$','rgba(255,\x20255,\x20255,\x200.01)','memberID','_sheetSkeletonManagerService','registerBeforeClose','_blinkTimer','_colorIndex','_docTransformStateCacheService','_configService','createSocket','Success','_colorAssignService','_initCommandInterceptor','RemoveRowCommandId','_collabCursorController','toRgbString','_beforeCloseService','_instanceService','red.300','startsWith','deepClone','addObject','height','/universer-api/license/formula/limit/done','getItem','_lastPointer','423tCzJoN','_cursor','setParam','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','_anchorDot','startColumn','_lastResponseTimestamp','_initCommandExecutedListener','DeleteRangeMoveUpCommandId','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_onCursorUpdate','collaboration-client-ui.collabStatus.fetchMiss','_createSocketURL','getRangePointData','values','hide','origin','_dataLoaderService','OTHER_CLIENT_EDITING','_uploadLog','_startSheetCollabCursor','createInstance','_getLighterColor','_docTransformIMECacheService','loadOfflineData','currentTheme$','subUnitId','_unitStatus','getUniverSheetInstance','27338IkJFsM','FromArray','SOCKET_FAILED','_setupSubUnitSync','_urlService','#FFF','dispose','UNIVER_SHEET','selections','saveOfflineData','application/json','univer-text-red-500','_anchor','_showGuardMessage','size','_scheduleClearOtherTimer','data','sessionTicket','packageName','_univerInstanceService','_collabCursorState$','parseInt','_registerDependencies','flatMap','_status$','390MHUonC','beginPath','getCurrentUnitOfType','currentSkeleton$','_injector','_textBubble','_init','requireSession','status$','location','stageInfo','subscribeEvent','_commandService','limitInfo','_getFormulaLimitStatus','_docSyncEditingCollabCursorService','3185YVSFNf','_saveTaskMap','getSheetBySheetId','getUnit','SYNCED','_notificationService','2420880IJjXNm','exhaustSavingTask','sheetId','_hovered','params','_checkCalculationAvailable','_onCursorDelete','bind','stage','getActiveSheet','name','getCellPositionByOffset','_docStateChangeManagerService','stringify','_docSkeleton','_removeCollabCursors','collaboration-client-ui.collaboration.single-unit.warning','_startCalculationLimit','getTypeOfUnitAdded$','_initUnhandledRejectionListener','_context','disableLocalCache','indicator','...','unitID','_scheduleHeartbeat','_send','evenodd','code','univer-text-blue-500','updateOfflineData','[LogService\x20Error]:\x20','_removeClearOtherTimer','AWAITING_WITH_PENDING','_collaborationSessionService','min','highlight','_hasFormulaInDirtyRanges','getStateCache','_offsetY','dispose$','cursorInfo','_transformHistoryAndStateStack','getMergeData','now','_imageIoService','OTHER_CLIENTS_EDITING','getMemberID','search','_initUserListener','transformMutation','/universer-api/license/formula/limit/start','collaboration-client-ui.permission.title','InsertRowCommandId','_refreshCollabCursors','DeleteRangeMoveLeftCommandId','m1Prime','collab-text-anchor-','activeSheet$','functionsExecutedState','UPDATE_CURSOR','setActiveRange','_memberService','releaseFormulaLimitUrl','transformRemoteChangeset','NO_OTHER_CLIENTS_EDITING','resize','version','post','onRendered','getSkeleton','setShapeProps','_initStatusComponent','_taskIds','polite','setItem','_ensureSubject','makeDirty','_drawAnchor','collaboration-client-ui.formula.calculation.unable','_id','_getSessionTicket','getConfig','bottom','_refRangeService','endColumn','_updateCollabCursors','_transformUndoRedoStack','status','engine','getSheetId','getViewport','actions','_initEvent','catch','loadUnit','body','_memberID','registerRefRange','1804806fLBPNR','next','transform','/universer-api/license/formula/limit/status','error','4476XBdJEP','InsertRangeMoveRightCommandId','getAllUnitsForType','_getSaveTimeout','_session','_toggleOnline','CLOSE_ROOM','get','_getAnchorBounding','editingUnit','replaceState','init','collaboration-client-ui.config','type','storage','_doCreateSocket','_revisionService','range','registerComponent','docStateChange$','fillRule','collaboration-client-ui.collabStatus.syncing','getUndoRedoMutationParamsCache','saveTaskMap','measureText','save','purple.300','getCurrentSkeleton','unit','12CpYfcB','Error','_releaseCalculationLimit','\x20at\x20','_drawRectRange','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_docTransformSelectionsService','RemoveColCommandId','_showText','subscribe','function','href','call','fillStyle','_online','onPointerLeave$','collaboration-client-ui.collabStatus.offline','shift','key','map','_pointerMoveDisposable','default','moveTo','_maxFormulaLimit','unitId','newValue','_heartbeatTimer','RECT','transformSelections','slice','AWAITING','_clearPolling','_saveCache','_isBlinkVisible','executeCommand','iterator','_drawTextRange','univer-transition-all\x20univer-duration-200','text','true','univer-border-none\x20univer-bg-transparent','string','_entityInit$','getRenderById','_initResize','highlightSecond','restore','getParam','getUnitId','NOT_COLLAB','_config','univer-m-0\x20univer-p-0','getAncestorScale','SOCKET_FAILED_RETRY','56menUaO','_name','UNIVER_DOC','collaboration-client-ui.session.connection-failed','_httpService','_messageService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','addObjects','\x20-\x20','textRanges','delete','_pollingInterval','_getScale','addEventListener','span','defineProperty','_getMergeRange','_clearOtherTimers','_highlightSecond','send','removeParam','_docClipboardService','stack','isEditing','_scheduleSaving','removeEventListener','univer-flex\x20univer-items-center\x20univer-justify-center','_updateSubUnitFromURLParams','_monkeyPatchLogService','all','1mLbBut','getValue','roomMembers$','Unknown\x20user','colno','108857BwBgcI','searchParams','_docSkeletonManagerService','unload','_entities','getColorFromTheme','addHandlerCallback','0.25.1','object','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','m2Prime','/universer-api/frontend/logs','transformMutationsWithChangeset','collaboration-client-ui.collabStatus.synced','setUndoRedoMutationParamsCache','forEach','filename','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','transformIMECache','USERS_LEAVE','lineno','Failed','_hover','_toggleOffline','onCommandExecuted','labelPosition','_cursorInfo$','_renderManagerService','tooltipKey',',\x200.2)','clearTimeout','_initStatusListener','_collabSessionService','row','_initDependencies','OFFLINE','_labelPosition','_initWindowErrorListener','_startBlinking','collaboration-client-ui.formula.calculation.waiting','_applyCommand','width','findNodePositionByCharIndex','_cursorShapes','fillText','toPrimitive','history','onMouseMove','urlChange$','toString','lineTo','collaboration-client-ui.collaboration.closeRoom','pulse','push','doc.mutation.rich-text-editing','SUCCESS','from','enableFrontendLog','_onRefRangeChange','Warning','_transformPreviousActiveRange','isArray','TEXT','unsubscribe'];_0x53b6=function(){return _0x1008f2;};return _0x53b6();}function xn(_0x48d36){const _0x3e1d74=_0x4f3698;let _0x11d9f6=new Map();return _0x48d36[_0x3e1d74(0x251)](_0x4fa309=>{const _0x462d35=_0x3e1d74;if(_0x11d9f6[_0x462d35(0x2cc)](_0x4fa309[_0x462d35(0x2f8)])){let _0xf62dc=_0x11d9f6[_0x462d35(0x1d3)](_0x4fa309[_0x462d35(0x2f8)]);_0xf62dc[_0x462d35(0x38c)]+=',\x20'+_0x4fa309[_0x462d35(0x38c)];}else _0x11d9f6[_0x462d35(0x2da)](_0x4fa309[_0x462d35(0x2f8)],_0x4fa309);}),Array[_0x3e1d74(0x27a)](_0x11d9f6['values']());}let Z=class extends _0x135205{constructor(_0x31adc8,_0xe9918f,_0x326ac4,_0x34b749,_0x38354c,_0x193b28){const _0x3e8324=_0x4f3698;super(),this[_0x3e8324(0x32c)]=_0x31adc8,this['_localCacheService']=_0xe9918f,this[_0x3e8324(0x2dd)]=_0x326ac4,this[_0x3e8324(0x224)]=_0x34b749,this[_0x3e8324(0x381)]=_0x38354c,this[_0x3e8324(0x2df)]=_0x193b28,this[_0x3e8324(0x2a9)](),this[_0x3e8324(0x1c1)]();}[_0x4f3698(0x2a9)](){const _0x5a7216=_0x4f3698;this[_0x5a7216(0x2c6)](this[_0x5a7216(0x32c)][_0x5a7216(0x320)](()=>{const _0x14ab75=_0x5a7216;if(this['_localCacheService'][_0x14ab75(0x1e3)][_0x14ab75(0x361)])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x4f3698(0x1c1)](){const _0x101de3=_0x4f3698;this[_0x101de3(0x2c6)](this[_0x101de3(0x2dd)][_0x101de3(0x2fe)][_0x101de3(0x1f2)](_0x5e8a1c=>{const _0x3d6098=_0x101de3;_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x348)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x27d)],'content':this['_localeService']['t'](_0x3d6098(0x392))}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x1d2)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da['Warning'],'content':this[_0x3d6098(0x2df)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x299)]&&this['_notificationService'][_0x3d6098(0x2dc)]({'title':this['_localeService']['t'](_0x3d6098(0x198)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x3d6098(0x1cb),'duration':0x0}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x2d2)]&&this['_messageService'][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x1ea)],'content':this['_localeService']['t'](_0x3d6098(0x275))+'('+_0x5e8a1c[_0x3d6098(0x363)]+')'}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x2c8)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x27d)],'content':this['_localeService']['t'](_0x5e8a1c[_0x3d6098(0x363)]||'')}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x21e)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x27d)],'content':this[_0x3d6098(0x2df)]['t'](_0x3d6098(0x2fd))}),_0x5e8a1c['id']===_0xcc4607[_0x3d6098(0x355)]&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x1ea)],'content':this[_0x3d6098(0x2df)]['t'](_0x3d6098(0x222))}),_0x5e8a1c['id']===_0xcc4607['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x3d6098(0x224)][_0x3d6098(0x2dc)]({'type':_0x1082da[_0x3d6098(0x1ea)],'content':this[_0x3d6098(0x2df)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}};Z=q([K(0x0,_0x1724e1),K(0x1,_0x346440),K(0x2,_0x3a3495(_0x522545)),K(0x3,_0x304c5a),K(0x4,_0x31a1f5),K(0x5,_0x3a3495(_0x2912dd))],Z);const Sn={};let Cn=class{constructor(_0x58fb38,_0x39a835){const _0x1aedc3=_0x4f3698;this[_0x1aedc3(0x2be)]=_0x58fb38,this[_0x1aedc3(0x25d)]=_0x39a835;}[_0x4f3698(0x254)](_0x3da0e8){const _0x4ba774=_0x4f3698;this[_0x4ba774(0x1bb)](_0x3da0e8),this[_0x4ba774(0x27e)](_0x3da0e8);}['transformRemoteChangeset'](_0x3fb319){const _0x435179=_0x4f3698;let {unitID:_0xe1687d}=_0x3fb319,{redoCache:_0x3e3d9f}=this[_0x435179(0x25d)][_0x435179(0x214)](_0xe1687d)[_0x435179(0x2aa)](_0xf0b0b6)[_0x435179(0x1e2)]();if(_0x3e3d9f[_0x435179(0x2ac)]===0x0)return _0x3fb319;let _0x19f2e2=_0x4cf666['deepClone'](_0x3fb319[_0x435179(0x30c)][0x0]);for(let _0x272147=0x0;_0x272147<_0x3e3d9f[_0x435179(0x2ac)];_0x272147++){let _0x45c8d4={'id':_0x435179(0x278),'params':{..._0x3e3d9f[_0x272147]}},_0x5c6d7a=this[_0x435179(0x2be)]['transformMutation'](_0x19f2e2,_0x45c8d4,!0x1);if(_0x28c447(_0x5c6d7a))throw _0x5c6d7a[_0x435179(0x1cb)];_0x19f2e2=_0x5c6d7a[_0x435179(0x19c)];}return{..._0x4cf666[_0x435179(0x330)](_0x3fb319),'mutations':[_0x19f2e2]};}[_0x4f3698(0x1bb)](_0x21aaac){const _0x7d940b=_0x4f3698;let {unitID:_0xf9f23b}=_0x21aaac,_0x23eb92=this[_0x7d940b(0x25d)][_0x7d940b(0x214)](_0xf9f23b)[_0x7d940b(0x2aa)](_0xf0b0b6),{undoCache:_0x25b7db,redoCache:_0x46ffd9}=_0x23eb92[_0x7d940b(0x1e2)]();if(_0x25b7db[_0x7d940b(0x2ac)]===0x0||_0x46ffd9[_0x7d940b(0x2ac)]===0x0)return;let _0x5cf7e1=[],_0x1f71de=[],_0x418b71=_0x4cf666[_0x7d940b(0x330)](_0x21aaac[_0x7d940b(0x30c)][0x0]),_0x1b5db6=_0x4cf666[_0x7d940b(0x330)](_0x21aaac[_0x7d940b(0x30c)][0x0]);for(let _0x4839d8=_0x25b7db[_0x7d940b(0x2ac)]-0x1;_0x4839d8>=0x0;_0x4839d8--){let _0x419292={'id':_0x7d940b(0x278),'params':{..._0x25b7db[_0x4839d8]}},_0x228955={'id':_0x7d940b(0x278),'params':{..._0x46ffd9[_0x4839d8]}},_0x33a83c=this[_0x7d940b(0x2be)][_0x7d940b(0x196)](_0x418b71,_0x419292,!0x1),_0x2b26b2=this[_0x7d940b(0x2be)][_0x7d940b(0x196)](_0x1b5db6,_0x228955,!0x1);if(_0x28c447(_0x33a83c))throw _0x33a83c[_0x7d940b(0x1cb)];if(_0x28c447(_0x2b26b2))throw _0x2b26b2['error'];_0x5cf7e1['unshift'](_0x33a83c[_0x7d940b(0x24c)]['params']),_0x1f71de[_0x7d940b(0x2e7)](_0x2b26b2[_0x7d940b(0x24c)][_0x7d940b(0x386)]),_0x418b71=_0x33a83c[_0x7d940b(0x19c)],_0x1b5db6=_0x2b26b2[_0x7d940b(0x19c)];}_0x23eb92[_0x7d940b(0x250)]({'undoCache':_0x5cf7e1,'redoCache':_0x1f71de});}['_transformPreviousActiveRange'](_0x2dfd7){const _0x3a86d8=_0x4f3698;let {unitID:_0x1d5038}=_0x2dfd7,_0x1ff75c=this[_0x3a86d8(0x25d)]['getRenderById'](_0x1d5038)[_0x3a86d8(0x2aa)](_0xf0b0b6),_0x4827c0=_0x1ff75c['getActiveRange']();if(_0x4827c0==null)return;let _0x27ef35=[{'id':_0x3a86d8(0x278),'params':{'unitId':_0x2dfd7[_0x3a86d8(0x39a)],'actions':null,'textRanges':[_0x4827c0]}}],_0x30399a=this[_0x3a86d8(0x2be)][_0x3a86d8(0x24e)](_0x2dfd7,_0x27ef35);if(!_0x1ab105(_0x30399a))throw _0x30399a[_0x3a86d8(0x1cb)];let _0x28aac8=_0x30399a['m2Prime'][0x0]['params'][_0x3a86d8(0x228)];Array[_0x3a86d8(0x27f)](_0x28aac8)&&_0x28aac8[_0x3a86d8(0x2ac)]&&_0x1ff75c[_0x3a86d8(0x1a1)](_0x28aac8[0x0]);}};Cn=q([K(0x0,_0x36830a),K(0x1,_0x5e34fe)],Cn);let wn=class{constructor(_0x441260,_0x54ba24,_0x294189){const _0x27e610=_0x4f3698;this[_0x27e610(0x370)]=_0x441260,this['_transformService']=_0x54ba24,this[_0x27e610(0x38e)]=_0x294189;}[_0x4f3698(0x2bc)](_0x3cc980){const _0x5e209f=_0x4f3698;this[_0x5e209f(0x18e)](_0x3cc980);}[_0x4f3698(0x1a4)](_0x4ca341){const _0x1a09bd=_0x4f3698;let {unitID:_0x239c7a}=_0x4ca341,{collaboration:_0x26c4a6}=this[_0x1a09bd(0x38e)][_0x1a09bd(0x18a)](_0x239c7a);if(_0x26c4a6[_0x1a09bd(0x2ac)]===0x0)return _0x4ca341;let _0x2bc472=_0x4cf666[_0x1a09bd(0x330)](_0x4ca341['mutations'][0x0]);for(let _0x265637=0x0;_0x265637<_0x26c4a6[_0x1a09bd(0x2ac)];_0x265637++){let _0x1a15c8={'id':_0x1a09bd(0x278),'params':{'unitId':_0x26c4a6[_0x265637][_0x1a09bd(0x201)],..._0x26c4a6[_0x265637][_0x1a09bd(0x308)]}},_0x44d6d5=this['_transformService'][_0x1a09bd(0x196)](_0x2bc472,_0x1a15c8,!0x1);if(_0x28c447(_0x44d6d5))throw _0x44d6d5[_0x1a09bd(0x1cb)];_0x2bc472=_0x44d6d5[_0x1a09bd(0x19c)];}return{..._0x4cf666[_0x1a09bd(0x330)](_0x4ca341),'mutations':[_0x2bc472]};}[_0x4f3698(0x18e)](_0x2b2ebe){const _0x28445c=_0x4f3698;let {unitID:_0x439529}=_0x2b2ebe,{history:_0x38dcda,collaboration:_0xd2b3a4}=this[_0x28445c(0x38e)][_0x28445c(0x18a)](_0x439529);if(_0x38dcda[_0x28445c(0x2ac)]===0x0&&_0xd2b3a4[_0x28445c(0x2ac)]===0x0)return;let _0x6c2e3=[],_0xb9a315=[],_0x401749=_0x4cf666['deepClone'](_0x2b2ebe[_0x28445c(0x30c)][0x0]),_0x5ab64f=_0x4cf666[_0x28445c(0x330)](_0x2b2ebe[_0x28445c(0x30c)][0x0]);for(let _0x416539=_0x38dcda[_0x28445c(0x2ac)]-0x1;_0x416539>=0x0;_0x416539--){let _0x585d8a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38dcda[_0x416539]['unitId'],..._0x38dcda[_0x416539][_0x28445c(0x2e5)]}},_0x1e1854={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x38dcda[_0x416539][_0x28445c(0x201)],..._0x38dcda[_0x416539][_0x28445c(0x308)]}},_0x130a24=this[_0x28445c(0x2be)][_0x28445c(0x196)](_0x401749,_0x585d8a,!0x1),_0x22fee6=this[_0x28445c(0x2be)]['transformMutation'](_0x5ab64f,_0x1e1854,!0x1);if(_0x28c447(_0x130a24))throw _0x130a24[_0x28445c(0x1cb)];if(_0x28c447(_0x22fee6))throw _0x22fee6[_0x28445c(0x1cb)];_0x6c2e3[_0x28445c(0x2e7)]({..._0x38dcda[_0x416539],'undoState':_0x130a24[_0x28445c(0x24c)][_0x28445c(0x386)],'redoState':_0x22fee6[_0x28445c(0x24c)][_0x28445c(0x386)]}),_0x401749=_0x130a24['m1Prime'],_0x5ab64f=_0x22fee6['m1Prime'];}_0x401749=_0x4cf666['deepClone'](_0x2b2ebe[_0x28445c(0x30c)][0x0]),_0x5ab64f=_0x4cf666[_0x28445c(0x330)](_0x2b2ebe[_0x28445c(0x30c)][0x0]);for(let _0x50cfc7=_0xd2b3a4['length']-0x1;_0x50cfc7>=0x0;_0x50cfc7--){let _0x5e14f7={'id':_0x28445c(0x278),'params':{'unitId':_0xd2b3a4[_0x50cfc7][_0x28445c(0x201)],..._0xd2b3a4[_0x50cfc7]['undoState']}},_0x14af3d={'id':_0x28445c(0x278),'params':{'unitId':_0xd2b3a4[_0x50cfc7][_0x28445c(0x201)],..._0xd2b3a4[_0x50cfc7][_0x28445c(0x308)]}},_0x29cd37=this[_0x28445c(0x2be)][_0x28445c(0x196)](_0x401749,_0x5e14f7,!0x1),_0x341152=this['_transformService'][_0x28445c(0x196)](_0x5ab64f,_0x14af3d,!0x1);if(_0x28c447(_0x29cd37))throw _0x29cd37[_0x28445c(0x1cb)];if(_0x28c447(_0x341152))throw _0x341152[_0x28445c(0x1cb)];_0xb9a315[_0x28445c(0x2e7)]({..._0xd2b3a4[_0x50cfc7],'undoState':_0x29cd37[_0x28445c(0x24c)]['params'],'redoState':_0x341152[_0x28445c(0x24c)][_0x28445c(0x386)]}),_0x401749=_0x29cd37[_0x28445c(0x19c)],_0x5ab64f=_0x341152[_0x28445c(0x19c)];}this[_0x28445c(0x38e)]['setStateCache'](_0x439529,{'history':_0x6c2e3,'collaboration':_0xb9a315});}};wn=q([K(0x0,_0x3a3495(_0xd0a80)),K(0x1,_0x36830a),K(0x2,_0x3a3495(_0x1d3cc9))],wn);let Tn=class{constructor(_0x50c6d2,_0x262ba2){const _0x5510f3=_0x4f3698;this['_injector']=_0x50c6d2,this[_0x5510f3(0x2be)]=_0x262ba2;}[_0x4f3698(0x205)](_0x215c61){const _0x5dfd7e=_0x4f3698;var _0x59ce87;let _0x12db7f=this['_injector']['get'](_0x1eff78),_0x373e53=(_0x59ce87=_0x12db7f[_0x5dfd7e(0x2eb)]())==null?[]:_0x59ce87;if(_0x373e53[_0x5dfd7e(0x2ac)]===0x0)return;let _0x257600=_0x215c61[_0x5dfd7e(0x39a)],_0x17c191=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x257600,'actions':null,'textRanges':_0x373e53}}],_0x58e629=this[_0x5dfd7e(0x2be)][_0x5dfd7e(0x24e)](_0x215c61,_0x17c191);if(!_0x1ab105(_0x58e629))throw _0x58e629[_0x5dfd7e(0x1cb)];let _0x4880dc=_0x58e629[_0x5dfd7e(0x24c)][0x0][_0x5dfd7e(0x386)][_0x5dfd7e(0x228)];Array[_0x5dfd7e(0x27f)](_0x4880dc)&&_0x4880dc[_0x5dfd7e(0x2ac)]&&_0x12db7f['replaceDocRanges'](_0x4880dc,{'unitId':_0x257600,'subUnitId':_0x257600},!0x1);}};Tn=q([K(0x0,_0x3a3495(_0xd0a80)),K(0x1,_0x36830a)],Tn);function _0x501c(_0x5490c6,_0x296aae){_0x5490c6=_0x5490c6-0x18a;const _0x53b672=_0x53b6();let _0x501c58=_0x53b672[_0x5490c6];return _0x501c58;}let En=class extends _0x135205{constructor(_0x48857d,_0xc9b89d,_0x4f35f3,_0x243f45,_0x187b56,_0x2a7bce,_0x412349,_0x2bf4a8){const _0x5185e3=_0x4f3698;super(),this[_0x5185e3(0x38e)]=_0x48857d,this['_collaborationController']=_0xc9b89d,this[_0x5185e3(0x34d)]=_0x4f35f3,this['_docTransformStateCacheService']=_0x243f45,this[_0x5185e3(0x1ef)]=_0x187b56,this[_0x5185e3(0x37b)]=_0x2a7bce,this[_0x5185e3(0x224)]=_0x412349,this['_localeService']=_0x2bf4a8,G(this,_0x5185e3(0x36b),new _0x5a0bca(_0x33faa6[_0x5185e3(0x21a)])),this[_0x5185e3(0x283)]();}[_0x4f3698(0x283)](){const _0x2a813a=_0x4f3698;this[_0x2a813a(0x2c6)](this[_0x2a813a(0x297)][_0x2a813a(0x2bf)][_0x2a813a(0x1f2)](_0x1f8502=>{const _0x255afa=_0x2a813a;let _0x35dc65=this[_0x255afa(0x38e)][_0x255afa(0x1df)]['subscribe'](_0x1588ef=>{const _0x12d921=_0x255afa;if(_0x1588ef==null)return;let {unitId:_0x3ba9a9,redoState:_0x4cc488,commandId:_0x4d7a68}=_0x1588ef;if(_0x3ba9a9!==_0x1f8502[_0x12d921(0x39a)])return;let _0x2d2f3f={'id':_0x4d7a68,'type':_0xce570f[_0x12d921(0x2e8)],'params':{'unitId':_0x3ba9a9,'actions':_0x4cc488[_0x12d921(0x1c0)],'textRanges':null}};_0x1f8502[_0x12d921(0x2b2)](_0x2d2f3f);});_0x1f8502[_0x255afa(0x2c6)](_0x35dc65),_0x1f8502 instanceof _0x3c4914&&_0x1f8502[_0x255afa(0x248)]({'onTransformIME':_0x33b654=>this['_docTransformIMECacheService'][_0x255afa(0x254)](_0x33b654),'onTransformState':_0x21a303=>this[_0x255afa(0x323)][_0x255afa(0x2bc)](_0x21a303),'onTransformSelections':_0x3f160c=>this['_docTransformSelectionsService'][_0x255afa(0x205)](_0x3f160c),'onSyncEditingCollabCursor':_0x100d53=>this['_docSyncEditingCollabCursorService'][_0x255afa(0x2ca)](_0x100d53),'onTransformRemoteChangesetByIMECache':_0x2bab10=>this[_0x255afa(0x34d)]['transformRemoteChangeset'](_0x2bab10),'onTransformRemoteChangesetByStateCache':_0x48e4ad=>this[_0x255afa(0x323)][_0x255afa(0x1a4)](_0x48e4ad)});}));}};En=q([K(0x0,_0x3a3495(_0x1d3cc9)),K(0x1,_0x3a3495(_0x32bb3a)),K(0x2,_0x3a3495(Cn)),K(0x3,_0x3a3495(wn)),K(0x4,_0x3a3495(Tn)),K(0x5,_0x3a3495(un)),K(0x6,_0x304c5a),K(0x7,_0x3a3495(_0x2912dd))],En);let Dn=class extends _0x135205{constructor(_0x3ccb38,_0x4f02ce,_0x29d4e2,_0xd3eda4){const _0x484739=_0x4f3698;super(),this['_injector']=_0x3ccb38,this['_httpService']=_0x4f02ce,this[_0x484739(0x2d0)]=_0x29d4e2,this[_0x484739(0x3a4)]=_0xd3eda4,G(this,_0x484739(0x1c5),void 0x0),this['_init']();}[_0x4f3698(0x372)](){const _0x7eafdf=_0x4f3698;this['_initWindowErrorListener'](),this[_0x7eafdf(0x395)](),this[_0x7eafdf(0x23b)](),this[_0x7eafdf(0x195)]();}[_0x4f3698(0x195)](){const _0x2b4a5e=_0x4f3698;this[_0x2b4a5e(0x2c6)](this[_0x2b4a5e(0x3a4)][_0x2b4a5e(0x2d7)][_0x2b4a5e(0x1f2)](_0x154a83=>{const _0x1bc939=_0x2b4a5e;this[_0x1bc939(0x1c5)]=_0x154a83==null?void 0x0:_0x154a83[_0x1bc939(0x31e)];}));}[_0x4f3698(0x267)](){const _0x518a8c=_0x4f3698;let _0x42f8e2=_0x1e7f0b=>{const _0x347028=_0x501c;var _0xf7154a;this[_0x347028(0x349)](_0x347028(0x1cb),'[Window\x20Error]:\x20'+_0x1e7f0b[_0x347028(0x2de)]+_0x347028(0x1ec)+_0x1e7f0b[_0x347028(0x252)]+':'+_0x1e7f0b[_0x347028(0x256)]+':'+_0x1e7f0b[_0x347028(0x241)]+'\x0a'+(((_0xf7154a=_0x1e7f0b[_0x347028(0x1cb)])==null?void 0x0:_0xf7154a[_0x347028(0x235)])||''));};window['addEventListener'](_0x518a8c(0x1cb),_0x42f8e2),this[_0x518a8c(0x2c6)](()=>{const _0x1aecdc=_0x518a8c;window['removeEventListener'](_0x1aecdc(0x1cb),_0x42f8e2);});}[_0x4f3698(0x395)](){const _0x4ba611=_0x4f3698;let _0x4b402b=_0x476f7f=>{const _0x40cb5c=_0x501c;this[_0x40cb5c(0x349)](_0x40cb5c(0x1cb),_0x40cb5c(0x294)+_0x476f7f[_0x40cb5c(0x2e1)]);};window[_0x4ba611(0x22c)](_0x4ba611(0x319),_0x4b402b),this[_0x4ba611(0x2c6)](()=>{const _0x42b069=_0x4ba611;window[_0x42b069(0x238)](_0x42b069(0x319),_0x4b402b);});}[_0x4f3698(0x23b)](){const _0x3f197f=_0x4f3698;let _0xdd5a93=this[_0x3f197f(0x2d0)][_0x3f197f(0x1cb)][_0x3f197f(0x389)](this[_0x3f197f(0x2d0)]);this[_0x3f197f(0x2d0)][_0x3f197f(0x1cb)]=(..._0x405112)=>{const _0x5b90ed=_0x3f197f;let _0x4749bc=_0x405112[_0x5b90ed(0x1fc)](_0x118183=>_0x118183 instanceof Error?_0x118183[_0x5b90ed(0x2de)]+'\x0a'+_0x118183[_0x5b90ed(0x235)]:String(_0x118183))['join']('\x20');this[_0x5b90ed(0x349)](_0x5b90ed(0x1cb),_0x5b90ed(0x3a1)+_0x4749bc),_0xdd5a93(..._0x405112);},this[_0x3f197f(0x2c6)](()=>{const _0x13f67f=_0x3f197f;this[_0x13f67f(0x2d0)][_0x13f67f(0x1cb)]=_0xdd5a93;});}[_0x4f3698(0x349)](_0x57d5bc,_0x539f06){const _0x434f16=_0x4f3698;try{let _0x31702a={'userId':this['_memberID'],'logLabel':_0x57d5bc,'content':_0x539f06};this[_0x434f16(0x223)][_0x434f16(0x1a8)](_0x434f16(0x24d),{'body':_0x31702a})[_0x434f16(0x1c2)](()=>{});}catch{}}};Dn=q([K(0x0,_0x3a3495(_0xd0a80)),K(0x1,_0x3a3495(_0x19b345)),K(0x2,_0x533956),K(0x3,_0x3a3495(_0x295742))],Dn);function On(_0x25e4fb){const _0x3207f0=_0x4f3698;var _0xd56142,_0x5eba53;let _0x1e0b16=(_0xd56142=_0x25e4fb[_0x3207f0(0x376)])==null?void 0x0:_0xd56142[_0x3207f0(0x38a)],_0x50e388=((_0x5eba53=_0x25e4fb[_0x3207f0(0x376)])==null?void 0x0:_0x5eba53['totalFormulasToCalculate'])||0x0;return _0x1e0b16===_0x5261a0['START_CALCULATION']&&_0x50e388>0x0;}function kn(_0x60a800){const _0x45a699=_0x4f3698;return _0x60a800[_0x45a699(0x19f)]===_0xb906a6[_0x45a699(0x279)];}let Q=class extends _0x135205{constructor(_0x347a2d,_0xd38230,_0x16bd85,_0x5c87ee,_0x24bd13,_0x529593,_0x365174){const _0xef0826=_0x4f3698;super(),this['_messageService']=_0x347a2d,this[_0xef0826(0x378)]=_0xd38230,this['_configService']=_0x16bd85,this['_httpService']=_0x5c87ee,this[_0xef0826(0x366)]=_0x24bd13,this[_0xef0826(0x2d0)]=_0x529593,this[_0xef0826(0x2df)]=_0x365174,G(this,'_pollingInterval',null),G(this,_0xef0826(0x200),0x0),G(this,_0xef0826(0x2c0),0x0),G(this,_0xef0826(0x1ad),[]),G(this,'_lastResponseTimestamp',0x0),this[_0xef0826(0x328)]();}['_initCommandInterceptor'](){const _0x41da6a=_0x4f3698;this[_0x41da6a(0x2c6)](this[_0x41da6a(0x378)]['beforeCommandExecuted']((_0xad0611,_0xd91185)=>{const _0x4a9878=_0x41da6a;var _0x21a533;if(_0xad0611['id']!==_0x37747b['id'])return;let _0x4a0166=_0xad0611[_0x4a9878(0x386)];if(this[_0x4a9878(0x3a7)]((_0x21a533=_0x4a0166['dirtyRanges'])==null?[]:_0x21a533)&&!this[_0x4a9878(0x387)]())throw this['_checkAndWaitForCalculationPermission'](_0xad0611,_0xd91185),this['_showGuardMessage'](),new _0x32abe0();})),this['disposeWithMe'](this[_0x41da6a(0x378)][_0x41da6a(0x25a)]((_0x5502b9,_0x12ee05)=>{const _0x2974dc=_0x41da6a;if(_0x5502b9['id']!==_0x2205b6['id'])return;let _0x531178=_0x5502b9[_0x2974dc(0x386)];if(On(_0x531178)){let _0x3139d7=_0x56a70c();this[_0x2974dc(0x1ad)]['push'](_0x3139d7),this['_startCalculationLimit'](_0x3139d7);}else{if(kn(_0x531178)&&this['_taskIds'][_0x2974dc(0x2ac)]>0x0){let _0x3eb04b=this[_0x2974dc(0x1ad)][_0x2974dc(0x1fa)]();this[_0x2974dc(0x1eb)](_0x3eb04b);}}}));}[_0x4f3698(0x359)](){const _0x5a548d=_0x4f3698;super[_0x5a548d(0x359)](),this[_0x5a548d(0x208)](),this[_0x5a548d(0x1ad)]=[],this[_0x5a548d(0x2c0)]=0x0,this[_0x5a548d(0x200)]=0x0,this[_0x5a548d(0x33c)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x1e8c17,_0xf95df5){const _0x33823a=_0x4f3698;for(let _0x1bba1d=0x0;_0x1bba1d<0x1e;_0x1bba1d++)try{if(await this[_0x33823a(0x37a)](),this['_checkCalculationAvailable']()){this[_0x33823a(0x26a)](_0x1e8c17,_0xf95df5),this[_0x33823a(0x224)][_0x33823a(0x2dc)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.started'),'type':_0x1082da[_0x33823a(0x326)]});return;}await new Promise(_0x57f223=>{const _0xf99a63=_0x33823a;this['_pollingInterval']=window[_0xf99a63(0x2b8)](_0x57f223,0x3e8);});}catch(_0x324ef5){this['_logService'][_0x33823a(0x1cb)](_0x324ef5);}this['_messageService'][_0x33823a(0x2dc)]({'content':this['_localeService']['t'](_0x33823a(0x1b3)),'type':_0x1082da[_0x33823a(0x1ea)]});}['_applyCommand'](_0x2f508d,_0x3c9328){const _0x2be4d7=_0x4f3698;try{this[_0x2be4d7(0x378)][_0x2be4d7(0x20b)](_0x2f508d['id'],_0x2f508d[_0x2be4d7(0x386)],_0x3c9328);}catch(_0xf746a2){this[_0x2be4d7(0x2d0)][_0x2be4d7(0x1cb)](_0xf746a2);}}[_0x4f3698(0x302)](_0x4cebf5,_0x2cb254){const _0x5563c9=_0x4f3698;_0x2cb254<this[_0x5563c9(0x33c)]||(this[_0x5563c9(0x33c)]=_0x2cb254,this['_maxFormulaLimit']=Number[_0x5563c9(0x368)](_0x4cebf5['maxFormulaLimit']),this[_0x5563c9(0x2c0)]=Number[_0x5563c9(0x368)](_0x4cebf5[_0x5563c9(0x2b0)]));}async[_0x4f3698(0x393)](_0x576ab5){const _0x31e1b8=_0x4f3698;let _0x1f97ff=Date[_0x31e1b8(0x190)]();try{var _0x315d91,_0x169262;let _0x2c8127=((_0x315d91=this[_0x31e1b8(0x324)][_0x31e1b8(0x1b6)](_0x20d072))==null?void 0x0:_0x315d91['startFormulaLimitUrl'])||_0x31e1b8(0x197),_0x2c3a62=(await this[_0x31e1b8(0x223)][_0x31e1b8(0x1a8)](_0x2c8127,{'body':JSON[_0x31e1b8(0x38f)]({'taskId':_0x576ab5})}))[_0x31e1b8(0x1c4)];if(((_0x169262=_0x2c3a62['error'])==null?void 0x0:_0x169262[_0x31e1b8(0x39e)])!==_0x1bd35a['OK'])return;this[_0x31e1b8(0x302)](_0x2c3a62[_0x31e1b8(0x379)],_0x1f97ff);}catch(_0xed1852){this[_0x31e1b8(0x2d0)][_0x31e1b8(0x1cb)](_0xed1852);}}async[_0x4f3698(0x37a)](_0x40c54f){const _0x5a988c=_0x4f3698;let _0x216e68=Date['now']();try{var _0x4f0328,_0x2d07dd;let _0x4174b8=((_0x4f0328=this[_0x5a988c(0x324)][_0x5a988c(0x1b6)](_0x20d072))==null?void 0x0:_0x4f0328['getFormulaLimitStatusUrl'])||_0x5a988c(0x1ca),_0x233661=_0x40c54f?_0x4174b8+'?taskId='+encodeURIComponent(_0x40c54f):_0x4174b8,_0x25fa13=(await this['_httpService'][_0x5a988c(0x1d3)](_0x233661))['body'];if(((_0x2d07dd=_0x25fa13['error'])==null?void 0x0:_0x2d07dd[_0x5a988c(0x39e)])!==_0x1bd35a['OK'])return;this[_0x5a988c(0x302)](_0x25fa13['limitInfo'],_0x216e68);}catch(_0x419b8b){this[_0x5a988c(0x2d0)][_0x5a988c(0x1cb)](_0x419b8b);}}async['_releaseCalculationLimit'](_0x45ef92){const _0x20e5f3=_0x4f3698;let _0xec5646=Date[_0x20e5f3(0x190)]();try{var _0x1c3aa5,_0x24db15;let _0x4d6365=((_0x1c3aa5=this['_configService'][_0x20e5f3(0x1b6)](_0x20d072))==null?void 0x0:_0x1c3aa5[_0x20e5f3(0x1a3)])||_0x20e5f3(0x333),_0x36713e=(await this[_0x20e5f3(0x223)]['post'](_0x4d6365,{'body':JSON[_0x20e5f3(0x38f)]({'taskId':_0x45ef92})}))[_0x20e5f3(0x1c4)];if(((_0x24db15=_0x36713e[_0x20e5f3(0x1cb)])==null?void 0x0:_0x24db15[_0x20e5f3(0x39e)])!==_0x1bd35a['OK'])return;this[_0x20e5f3(0x302)](_0x36713e[_0x20e5f3(0x379)],_0xec5646);}catch(_0x5bf391){this[_0x20e5f3(0x2d0)]['error'](_0x5bf391);}}[_0x4f3698(0x387)](){const _0xf9a5f7=_0x4f3698;return this[_0xf9a5f7(0x200)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x4f3698(0x208)](){const _0x44f612=_0x4f3698;this[_0x44f612(0x22a)]&&(clearTimeout(this[_0x44f612(0x22a)]),this[_0x44f612(0x22a)]=null);}[_0x4f3698(0x360)](){const _0x92a9a8=_0x4f3698;this['_messageService']['show']({'content':this[_0x92a9a8(0x2df)]['t'](_0x92a9a8(0x269)),'type':_0x1082da[_0x92a9a8(0x305)]});}[_0x4f3698(0x3a7)](_0x942313){const _0x40c340=_0x4f3698;for(let _0x79ffac of _0x942313){let {unitId:_0x1e4ed7,sheetId:_0x5093a2,range:_0x28b361}=_0x79ffac,_0x81b8b1=this['_univerInstanceService'][_0x40c340(0x37f)](_0x1e4ed7);if(!_0x81b8b1)continue;let _0x5297c9=_0x81b8b1['getSheetBySheetId'](_0x5093a2);if(!_0x5297c9)continue;let _0x5b451e=_0x5297c9['getCellMatrix']();for(let _0x5089fe=_0x28b361['startRow'];_0x5089fe<=_0x28b361[_0x40c340(0x29f)];_0x5089fe++)for(let _0x1627b6=_0x28b361[_0x40c340(0x33b)];_0x1627b6<=_0x28b361[_0x40c340(0x1b9)];_0x1627b6++){let _0xb76eb6=_0x5b451e[_0x40c340(0x23e)](_0x5089fe,_0x1627b6);if(_0xb76eb6&&(_0x2bb093(_0xb76eb6['f'])||_0x447415(_0xb76eb6['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0x3a3495(_0x304c5a)),K(0x1,_0x475d4a),K(0x2,_0x270179),K(0x3,_0x3a3495(_0x19b345)),K(0x4,_0x299f08),K(0x5,_0x533956),K(0x6,_0x3a3495(_0x2912dd))],Q);let An=class extends _0x135205{constructor(_0x408ff1,_0x25289a,_0x41bb17){const _0x22d1cb=_0x4f3698;super(),this[_0x22d1cb(0x324)]=_0x408ff1,this[_0x22d1cb(0x2a0)]=_0x25289a,this[_0x22d1cb(0x1dc)]=_0x41bb17,G(this,_0x22d1cb(0x2f0),new Map()),G(this,_0x22d1cb(0x37d),new Map()),G(this,_0x22d1cb(0x29d),!0x1);}[_0x4f3698(0x397)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x31d77b=_0x4f3698;this[_0x31d77b(0x29d)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x4f3698(0x359)](){const _0x4b8134=_0x4f3698;this[_0x4b8134(0x383)]()[_0x4b8134(0x2c2)](()=>super[_0x4b8134(0x359)]());}async[_0x4f3698(0x34e)](_0x1d3466){const _0xc17ff5=_0x4f3698;return this['_disabled']?null:this[_0xc17ff5(0x2a0)][_0xc17ff5(0x334)](_0x199006(_0x1d3466));}async[_0x4f3698(0x35c)](_0x3dc96c,_0x2e6228){const _0x122ed5=_0x4f3698;return!!this['_localStorageService'][_0x122ed5(0x1af)](_0x3dc96c,_0x2e6228);}[_0x4f3698(0x3a0)](_0x28bf4d,_0x1aae23,_0x3c51bf,_0x5003b7){const _0x1d0ef4=_0x4f3698;let _0x5c767e=this['_revisionService']['getCurrentRevOfUnit'](_0x28bf4d);this[_0x1d0ef4(0x2f0)][_0x1d0ef4(0x2da)](_0x28bf4d,{'unitID':_0x28bf4d,'type':_0x1aae23,'awaitingChangeset':_0x3c51bf,'mutations':_0x5003b7,'rev':_0x5c767e}),this['_saveTaskMap'][_0x1d0ef4(0x2cc)](_0x28bf4d)||this['_scheduleSaving'](_0x28bf4d);}[_0x4f3698(0x237)](_0x28e357){const _0x2655a6=_0x4f3698;let _0x2d0cf0=this[_0x2655a6(0x1cf)]();_0x2d0cf0===0x0?this['_saveCache'](_0x28e357):this['_saveTaskMap'][_0x2655a6(0x2da)](_0x28e357,setTimeout(()=>this[_0x2655a6(0x209)](_0x28e357),_0x2d0cf0));}[_0x4f3698(0x1cf)](){var _0x32058f;return(_0x32058f=this['_configService']['getConfig'](_0x3c08a2))==null?_0x33f454:_0x32058f;}[_0x4f3698(0x209)](_0x2dad8e){const _0x41d159=_0x4f3698;let _0x1397eb=this[_0x41d159(0x37d)][_0x41d159(0x1d3)](_0x2dad8e);return _0x1397eb!==void 0x0&&window['clearTimeout'](_0x1397eb),this[_0x41d159(0x2a0)][_0x41d159(0x1af)](_0x199006(_0x2dad8e),this[_0x41d159(0x2f0)][_0x41d159(0x1d3)](_0x2dad8e))[_0x41d159(0x2c2)](()=>this[_0x41d159(0x37d)][_0x41d159(0x229)](_0x2dad8e));}async['exhaustSavingTask'](){const _0x358681=_0x4f3698;let _0x620dc4=[];this[_0x358681(0x37d)][_0x358681(0x251)]((_0x16ca3c,_0x2bb5d6)=>{const _0x49bdee=_0x358681;window[_0x49bdee(0x260)](_0x16ca3c),_0x620dc4['push'](this[_0x49bdee(0x209)](_0x2bb5d6)[_0x49bdee(0x2c2)](()=>{const _0x2218d4=_0x49bdee;this[_0x2218d4(0x37d)][_0x2218d4(0x229)](_0x2bb5d6);}));}),await Promise[_0x358681(0x23c)](_0x620dc4);}};An=q([K(0x0,_0x270179),K(0x1,_0xa60d24),K(0x2,_0x3a3495(_0x4e73e6))],An);var jn=class extends _0x2d8708{constructor(){const _0x195177=_0x4f3698;super(),G(this,_0x195177(0x272),void 0x0),this['urlChange$']=_0x47437f(window,_0x195177(0x2c3))[_0x195177(0x2af)](_0x506d73(this[_0x195177(0x18c)]),_0xc9ccec({'bufferSize':0x1,'refCount':!0x0}),_0x16301b(void 0x0));}[_0x4f3698(0x338)](_0x5c241a,_0x14f53c,_0x3ce0cc=!0x1){const _0x1d8ffc=_0x4f3698;let _0xf9932f=new URL(window[_0x1d8ffc(0x375)][_0x1d8ffc(0x1f4)]);_0xf9932f[_0x1d8ffc(0x243)][_0x1d8ffc(0x2da)](_0x5c241a,_0x14f53c),_0x3ce0cc?window[_0x1d8ffc(0x270)][_0x1d8ffc(0x1d6)]('','',_0xf9932f['toString']()):window[_0x1d8ffc(0x270)]['pushState']('','',_0xf9932f[_0x1d8ffc(0x273)]());}[_0x4f3698(0x233)](_0x998847,_0x147ebf=!0x1){const _0x3d56ad=_0x4f3698;let _0x2553bf=new URL(window[_0x3d56ad(0x375)]['href']);_0x2553bf[_0x3d56ad(0x243)]['delete'](_0x998847),_0x147ebf?window[_0x3d56ad(0x270)][_0x3d56ad(0x1d6)]('','',_0x2553bf[_0x3d56ad(0x273)]()):window[_0x3d56ad(0x270)]['pushState']('','',_0x2553bf[_0x3d56ad(0x273)]());}[_0x4f3698(0x218)](_0x124af9){const _0x783306=_0x4f3698;var _0x356046;return(_0x356046=new URL(window[_0x783306(0x375)][_0x783306(0x1f4)])[_0x783306(0x243)][_0x783306(0x1d3)](_0x124af9))==null?void 0x0:_0x356046;}};let $=class extends _0x59834f{constructor(_0x56e2da=Sn,_0x51145f,_0x5f44c6,_0x54f2d6){const _0x5a6084=_0x4f3698;super(),this[_0x5a6084(0x21b)]=_0x56e2da,this[_0x5a6084(0x25d)]=_0x51145f,this['_injector']=_0x5f44c6,this[_0x5a6084(0x324)]=_0x54f2d6;let {..._0x5660cc}=_0x37c9d2({},Sn,this[_0x5a6084(0x21b)]);this[_0x5a6084(0x324)][_0x5a6084(0x313)](_0x5a6084(0x1d8),_0x5660cc);}['onStarting'](){const _0x16f6e2=_0x4f3698;this[_0x16f6e2(0x369)](),this[_0x16f6e2(0x264)]();}[_0x4f3698(0x1a9)](){const _0x18acff=_0x4f3698;this[_0x18acff(0x311)]();}['_registerDependencies'](){const _0x39310c=_0x4f3698;var _0x358d25;let _0x16faa7=[[sn],[Q],[Tn],[Cn],[wn],[un],[tn,{'useClass':jn}],[_0x18f3b8,{'useClass':_0x188c00}],[_0x346440,{'useClass':An}],[J],[En],[Z],[X],[an],[Y]];this['_config']['enableFrontendLog']&&_0x16faa7[_0x39310c(0x277)]([Dn]),_0x4b9c32(this[_0x39310c(0x370)],_0x39b30f(_0x16faa7,(_0x358d25=this['_config'])==null?void 0x0:_0x358d25[_0x39310c(0x29b)]));}[_0x4f3698(0x311)](){const _0x5f3d4f=_0x4f3698;this[_0x5f3d4f(0x2c6)](this['_renderManagerService']['registerRenderModule'](_0x38e1b9[_0x5f3d4f(0x221)],[vn])),this[_0x5f3d4f(0x2c6)](this['_renderManagerService'][_0x5f3d4f(0x2ae)](_0x38e1b9[_0x5f3d4f(0x35a)],[bn]));}[_0x4f3698(0x264)](){const _0x176c79=_0x4f3698;_0x235764(this[_0x176c79(0x370)],[[X],[J],[En],[Z],[Y],[Q],[an]]),this['_config'][_0x176c79(0x27b)]&&_0x235764(this[_0x176c79(0x370)],[[Dn]]);}};G($,'pluginName',_0x4f3698(0x2e6)),G($,_0x4f3698(0x365),nn),G($,_0x4f3698(0x1a7),rn),$=q([_0x51300c(_0x596c83),K(0x1,_0x5e34fe),K(0x2,_0x3a3495(_0xd0a80)),K(0x3,_0x270179)],$);let Mn=class extends _0x4210a9{constructor(_0x3fc126,_0x2cd491,_0x3e377b,_0x4ab80d,_0x2339ec){super(_0x3fc126,_0x2cd491,_0x3e377b,_0x4ab80d,_0x2339ec);}async[_0x4f3698(0x325)](_0x7366f6){const _0x2c622c=_0x4f3698;let _0x559c9e=await this['_getSessionTicket'](),_0x138e6c=this[_0x2c622c(0x342)](_0x7366f6,_0x559c9e);return this[_0x2c622c(0x1db)](_0x138e6c);}[_0x4f3698(0x342)](_0x4dd64b,_0x28e54b){const _0x22220f=_0x4f3698;let _0x590e38=typeof window>'u'?new URL(_0x4dd64b):new URL(_0x4dd64b,window[_0x22220f(0x375)][_0x22220f(0x346)]);_0x590e38[_0x22220f(0x243)][_0x22220f(0x2da)](_0x22220f(0x364),_0x28e54b);let _0x39d316=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x22220f(0x375)][_0x22220f(0x194)]);return _0x39d316[_0x22220f(0x1d3)](_0x22220f(0x2cd))&&_0x590e38['searchParams']['set'](_0x22220f(0x2cd),_0x39d316[_0x22220f(0x1d3)]('runId')),_0x590e38['toString']();}async[_0x4f3698(0x1b5)](){const _0x45c629=_0x4f3698;var _0x4a43db,_0x137519,_0x2038b2;let _0x494d61=this[_0x45c629(0x324)][_0x45c629(0x1b6)](_0x20d072),_0xd2e8b=(_0x4a43db=_0x494d61==null?void 0x0:_0x494d61['wsSessionTicketUrl'])==null?_0x43d47c:_0x4a43db;return(_0x137519=(_0x2038b2=(await this[_0x45c629(0x223)][_0x45c629(0x1d3)](_0xd2e8b,{'headers':{'Content-Type':_0x45c629(0x35d)}}))[_0x45c629(0x1c4)])==null?void 0x0:_0x2038b2[_0x45c629(0x288)])==null?'':_0x137519;}};Mn=q([K(0x0,_0x3a3495(_0xd0a80)),K(0x1,_0x3a3495(_0x19b345)),K(0x2,_0x270179),K(0x3,_0x533956),K(0x4,_0x5a0c2c)],Mn);let Nn=class extends _0x135205{constructor(_0x5074e4,_0x40b258,_0x100634){const _0x4451ed=_0x4f3698;super(),this[_0x4451ed(0x32d)]=_0x5074e4,this[_0x4451ed(0x223)]=_0x40b258,this[_0x4451ed(0x324)]=_0x100634;}async[_0x4f3698(0x2ad)](_0x3eee3b,_0x4c3a35,_0x55d060,..._0x5b707a){const _0x42589c=_0x4f3698;var _0x487e03,_0x35915c,_0x47e233,_0x46445d;let _0x36e972=this[_0x42589c(0x32d)][_0x42589c(0x2e4)]();if(!_0x36e972)throw Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');let _0x16f118=((_0x487e03=this[_0x42589c(0x324)][_0x42589c(0x1b6)](_0x5d41fa))==null?_0x1a23e:_0x487e03)+'/'+_0x3eee3b+_0x42589c(0x30f)+_0x4c3a35,_0x2e220a={'scriptId':_0x3eee3b,'runId':(_0x35915c=new URL(window['location'][_0x42589c(0x1f4)])['searchParams']['get'](_0x42589c(0x2cd)))==null?'':_0x35915c,'function':_0x4c3a35,'unitId':_0x36e972['getUnitId'](),'argsOfFunction':JSON[_0x42589c(0x38f)](_0x5b707a),'invokeId':(_0x47e233=_0x55d060['invokeId'])==null?'':_0x47e233,'executionId':(_0x46445d=_0x55d060[_0x42589c(0x29a)])==null?'':_0x46445d};try{let _0x2b45bf=await this[_0x42589c(0x223)][_0x42589c(0x1a8)](_0x16f118,{'body':_0x2e220a});return _0x2b45bf['body']['error']&&_0x2b45bf[_0x42589c(0x1c4)]['error']['code']!==_0x1bd35a['OK']?_0x42589c(0x257):_0x2b45bf[_0x42589c(0x1c4)]['result'];}catch{return _0x42589c(0x257);}}};Nn=q([K(0x0,_0x299f08),K(0x1,_0x3a3495(_0x19b345)),K(0x2,_0x270179)],Nn);const Pn=0x7530,Fn='ACTIVE_UNIT_EVENT_CHANNEL';var In=class extends _0x135205{constructor(){const _0x5e7b87=_0x4f3698;super(),G(this,_0x5e7b87(0x1b4),_0x56a70c()),G(this,_0x5e7b87(0x2ce),new Set()),G(this,_0x5e7b87(0x2db),new Map()),G(this,_0x5e7b87(0x203),null),G(this,_0x5e7b87(0x230),new Map()),G(this,_0x5e7b87(0x351),new Map()),this[_0x5e7b87(0x372)]();}[_0x4f3698(0x359)](){const _0x5b7e48=_0x4f3698;super[_0x5b7e48(0x359)](),this[_0x5b7e48(0x230)]['forEach']((_0x5aa86a,_0xc4d880)=>this[_0x5b7e48(0x3a2)](_0xc4d880)),this[_0x5b7e48(0x203)]&&window[_0x5b7e48(0x2ff)](this[_0x5b7e48(0x203)]);}['getUnitStatus$'](_0x373936){const _0x5aca04=_0x4f3698;return this[_0x5aca04(0x1b0)](_0x373936)[_0x5aca04(0x2af)](_0x265cf8());}[_0x4f3698(0x1d5)](_0xf55e06){const _0x383879=_0x4f3698;this[_0x383879(0x2ce)][_0x383879(0x361)]===0x0&&this[_0x383879(0x39b)](),this[_0x383879(0x2ce)]['add'](_0xf55e06),this[_0x383879(0x39c)]({'type':0x0,'memberID':this[_0x383879(0x1b4)],'unitIDs':[_0xf55e06],'isForwarded':!0x1});}['disposeUnit'](_0x4240dd){const _0x2da36e=_0x4f3698;this[_0x2da36e(0x2ce)][_0x2da36e(0x229)](_0x4240dd),this[_0x2da36e(0x2ce)][_0x2da36e(0x361)]===0x0&&this[_0x2da36e(0x203)]&&window[_0x2da36e(0x2ff)](this[_0x2da36e(0x203)]);}[_0x4f3698(0x372)](){const _0x235bc0=_0x4f3698;this[_0x235bc0(0x2c6)](_0x305b33(_0x47437f(window,_0x235bc0(0x1da))[_0x235bc0(0x1f2)](_0x39238f=>{const _0x39ba99=_0x235bc0;if(_0x39238f[_0x39ba99(0x1fb)]!==Fn||!_0x39238f[_0x39ba99(0x202)])return;let _0x215e84=JSON[_0x39ba99(0x2f3)](_0x39238f['newValue']);this['_handleEvent'](_0x215e84);}))),window[_0x235bc0(0x22c)](_0x235bc0(0x245),()=>this[_0x235bc0(0x39c)]({'type':0x1,'memberID':this[_0x235bc0(0x1b4)],'unitIDs':Array[_0x235bc0(0x27a)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x3a4c73){const _0x303dbc=_0x4f3698;switch(_0x3a4c73[_0x303dbc(0x1d9)]){case 0x0:this[_0x303dbc(0x2c9)](_0x3a4c73);break;case 0x1:this[_0x303dbc(0x2ea)](_0x3a4c73);break;case 0x2:this[_0x303dbc(0x28e)](_0x3a4c73);break;}}[_0x4f3698(0x2c9)](_0x3a8038){const _0x5d4dec=_0x4f3698;let {unitIDs:_0x49f388,memberID:_0x29f1c5,isForwarded:_0x16c0d7}=_0x3a8038;_0x49f388[_0x5d4dec(0x251)](_0x59d5d2=>{const _0x720f34=_0x5d4dec;if(!_0x16c0d7&&this['_unitOnClients']['has'](_0x59d5d2)&&this['_ensureSubject'](_0x59d5d2)[_0x720f34(0x1c8)](_0x4261be[_0x720f34(0x192)]),!this[_0x720f34(0x2db)][_0x720f34(0x2cc)](_0x59d5d2)||!this[_0x720f34(0x2db)]['get'](_0x59d5d2)[_0x720f34(0x2cc)](_0x29f1c5)){let _0x3c760f=this[_0x720f34(0x2db)][_0x720f34(0x1d3)](_0x59d5d2)||new Set();_0x3c760f[_0x720f34(0x2e3)](_0x29f1c5),this['_unitOnClients'][_0x720f34(0x2da)](_0x59d5d2,_0x3c760f),this[_0x720f34(0x362)](_0x29f1c5);}}),_0x16c0d7||this[_0x5d4dec(0x39c)]({'type':0x0,'memberID':this[_0x5d4dec(0x1b4)],'unitIDs':[...this[_0x5d4dec(0x2ce)]],'isForwarded':!0x0});}[_0x4f3698(0x362)](_0x21d997){const _0x512f84=_0x4f3698;this[_0x512f84(0x3a2)](_0x21d997);let _0x1b7d2e=window[_0x512f84(0x2b8)](()=>{const _0x3d8b5f=_0x512f84;this[_0x3d8b5f(0x2db)][_0x3d8b5f(0x251)](_0x8fca49=>{const _0x478dac=_0x3d8b5f;_0x8fca49[_0x478dac(0x229)](_0x21d997);});},Pn*0x2);this[_0x512f84(0x230)]['set'](_0x21d997,_0x1b7d2e);}['_removeClearOtherTimer'](_0x2c3a15){const _0x4c7d7a=_0x4f3698;if(this[_0x4c7d7a(0x230)][_0x4c7d7a(0x2cc)](_0x2c3a15)){let _0x29f9ac=this[_0x4c7d7a(0x230)]['get'](_0x2c3a15);_0x29f9ac&&window[_0x4c7d7a(0x260)](_0x29f9ac),this[_0x4c7d7a(0x230)][_0x4c7d7a(0x2da)](_0x2c3a15,null);}}[_0x4f3698(0x2ea)](_0x127e08){const _0x6d9c1a=_0x4f3698;let {memberID:_0x35088e,unitIDs:_0x4adc66}=_0x127e08;_0x4adc66[_0x6d9c1a(0x251)](_0x19de0e=>{const _0x3dbc2b=_0x6d9c1a;var _0x40f5e2;let _0x4c8785=this['_unitOnClients'][_0x3dbc2b(0x1d3)](_0x19de0e);_0x4c8785&&(_0x4c8785['delete'](_0x35088e),(_0x40f5e2=this[_0x3dbc2b(0x1b0)](_0x19de0e))==null||_0x40f5e2['next'](_0x4c8785[_0x3dbc2b(0x361)]===0x0?_0x4261be[_0x3dbc2b(0x1a5)]:_0x4261be['OTHER_CLIENTS_EDITING']));}),this[_0x6d9c1a(0x3a2)](_0x35088e);}[_0x4f3698(0x28e)](_0x44bd9b){const _0x595a72=_0x4f3698;this[_0x595a72(0x362)](_0x44bd9b[_0x595a72(0x31e)]);}[_0x4f3698(0x39c)](_0x528934){const _0x431d49=_0x4f3698;localStorage[_0x431d49(0x1af)](Fn,JSON[_0x431d49(0x38f)](_0x528934));}['_scheduleHeartbeat'](){const _0x547d0f=_0x4f3698;this['_heartbeatTimer']=window[_0x547d0f(0x2a4)](()=>{const _0x39b08d=_0x547d0f;this[_0x39b08d(0x39c)]({'type':0x2,'memberID':this['_id']});},Pn);}[_0x4f3698(0x1b0)](_0xa43bf){const _0x396f11=_0x4f3698;return this[_0x396f11(0x351)]['has'](_0xa43bf)||this[_0x396f11(0x351)][_0x396f11(0x2da)](_0xa43bf,new _0x5a0bca(_0x4261be[_0x396f11(0x1a5)])),this[_0x396f11(0x351)][_0x396f11(0x1d3)](_0xa43bf);}};export{Mn as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,tn as IURLService,Nn as RemoteUniscriptService,yn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,In as WebBrowserSingleActiveUnitService,jn as WebURLService};
1
+ const _0x206259=_0x4885;(function(_0x362485,_0x274cdc){const _0x1fa0b9=_0x4885,_0x57d779=_0x362485();while(!![]){try{const _0x41a371=-parseInt(_0x1fa0b9(0x2f9))/0x1+-parseInt(_0x1fa0b9(0x1f5))/0x2*(-parseInt(_0x1fa0b9(0x222))/0x3)+parseInt(_0x1fa0b9(0x3d0))/0x4+-parseInt(_0x1fa0b9(0x3d7))/0x5*(-parseInt(_0x1fa0b9(0x1f3))/0x6)+-parseInt(_0x1fa0b9(0x384))/0x7*(-parseInt(_0x1fa0b9(0x345))/0x8)+parseInt(_0x1fa0b9(0x344))/0x9*(parseInt(_0x1fa0b9(0x297))/0xa)+-parseInt(_0x1fa0b9(0x2e8))/0xb*(parseInt(_0x1fa0b9(0x2b0))/0xc);if(_0x41a371===_0x274cdc)break;else _0x57d779['push'](_0x57d779['shift']());}catch(_0x265dc2){_0x57d779['push'](_0x57d779['shift']());}}}(_0x6a1c,0xe825f));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xde024d,CollaborationController as _0x1544ac,CollaborationSessionService as _0x52b1cf,CollaborationSocketService as _0x4a830b,CollaborationStatus as _0x18999b,CollaborationUIEventId as _0x1b3610,CollaborationUIEventService as _0x38a3cd,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x1187e7,DEFAULT_WS_SESSION_TICKET_URL as _0x2cc108,DataLoaderService as _0x37960b,DocCollaborationEntity as _0x3a42ed,ILocalCacheService as _0x17a5fc,LOCAL_CACHE_INTERVAL as _0x292543,LOCAL_CACHE_INTERVAL_KEY as _0x5c929a,MemberService as _0x14dfef,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5d5a4b,SessionStatus as _0x2457ac,UnitStatus as _0x42d7f5,UniverCollaborationClientPlugin as _0x4944ee,getLocalCacheKey as _0xafed70}from'@univerjs-pro/collaboration-client';import{COLORS as _0x368165,CanceledError as _0x1149f2,ColorKit as _0x538f47,CommandType as _0x526abf,DOC_RANGE_TYPE as _0x256699,DependentOn as _0x4070e5,Disposable as _0x1b0287,DisposableCollection as _0x540fea,ICommandService as _0x498ceb,IConfigService as _0x189dcf,ILocalStorageService as _0x37c6e8,ILogService as _0x5916ce,IUniverInstanceService as _0x2d5bc6,Inject as _0xb8a7b6,Injector as _0x59fba4,LocaleService as _0x14b5d2,Optional as _0x5b49dd,Plugin as _0x2676e2,Rectangle as _0x25bacd,RxDisposable as _0x44d0b2,ThemeService as _0x2d2a1d,Tools as _0x1eece1,UniverInstanceType as _0x13410e,Workbook as _0x5e88af,createIdentifier as _0x49020c,debounce as _0x4e5741,fromEventSubject as _0x55bf58,generateRandomId as _0x555907,isFormulaId as _0x5c72a3,isFormulaString as _0x42b484,isInternalEditorID as _0x6bde86,merge as _0x43b789,mergeOverrideWithDependencies as _0xa85f6c,registerDependencies as _0x393efa,toDisposable as _0x57ab4c,touchDependencies as _0x25848c}from'@univerjs/core';import{BuiltInUIPart as _0x46b832,IBeforeCloseService as _0x37faa2,IMessageService as _0x3c5b09,INotificationService as _0x2e77e8,IUIPartsService as _0x1bb97b,connectInjector as _0x2f8c6f,useDependency as _0x4715f5,useObservable as _0x43c1b4}from'@univerjs/ui';import{BehaviorSubject as _0x3f7448,Subject as _0x24e89a,combineLatest as _0x3e361d,debounceTime as _0x3352de,distinctUntilChanged as _0x3a2980,filter as _0x36b7c5,fromEvent as _0xfb4a42,mapTo as _0x496906,merge as _0x433e18,of as _0xd28a5f,shareReplay as _0x561cad,switchMap as _0x29a006,takeUntil as _0x384030}from'rxjs';import{distinctUntilChanged as _0xc97d77,filter as _0x162ac8,map as _0x52d48e,switchMap as _0x3dc322,takeUntil as _0x2868c0,throttleTime as _0x58100d}from'rxjs/operators';import{MessageType as _0x35617f,Tooltip as _0x1eac27,clsx as _0x3122e6}from'@univerjs/design';import{LoadingMultiIcon as _0x3928e2,OffLineIcon as _0x41ca4b,OnLineIcon as _0x533d54}from'@univerjs/icons';import{useCallback as _0x1ae509,useMemo as _0x56d377}from'react';import{jsx as _0x10f13a}from'react/jsx-runtime';import{IRemoteInstanceService as _0x51294a}from'@univerjs/rpc';import{EffectRefRangId as _0xba447,RefRangeService as _0x35ff35,SetSelectionsOperation as _0x3f70f2,SetWorksheetActivateCommand as _0x5ce7e1,SheetsSelectionsService as _0x299afb,handleDeleteRangeMoveLeft as _0x517c5a,handleDeleteRangeMoveUp as _0x4ddcad,handleIRemoveCol as _0x20ac72,handleIRemoveRow as _0x5c1a91,handleInsertCol as _0x4e3dcb,handleInsertRangeMoveDown as _0x21e2e7,handleInsertRangeMoveRight as _0x10b9dc,handleInsertRow as _0x2bbd43,handleMoveRange as _0x18f08b,runRefRangeMutations as _0xf2e426}from'@univerjs/sheets';import{IRenderManagerService as _0xd23c31,Rect as _0x50d2ba,RegularPolygon as _0x1cc85d,SHEET_VIEWPORT_KEY as _0x3408cf,Shape as _0x382371,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x48f8e3,Vector2 as _0x579a07,getColor as _0x2e4331}from'@univerjs/engine-render';import{HTTPService as _0x396900,ISocketService as _0x26fea5,WebSocketService as _0x5c854a}from'@univerjs/network';import{DocIMEInputManagerService as _0x563c9d,DocStateChangeManagerService as _0x5023e3,IDocClipboardService as _0x42fc83,NodePositionConvertToCursor as _0x48ce80,NodePositionConvertToRectRange as _0xcd80e4,SetDocZoomRatioOperation as _0x3e6d75,TEXT_RANGE_LAYER_INDEX as _0x45622d}from'@univerjs/docs-ui';import{IImageIoService as _0x591bd3}from'@univerjs/drawing';import{CollaborationEvent as _0x12ec4a,ISnapshotServerService as _0x13c19b,ITransformService as _0x4e87b4,RevisionService as _0x3ac636,isTransformMutationFailure as _0x537eeb,isTransformMutationsWithChangesetSuccess as _0x324463}from'@univerjs-pro/collaboration';import{DocSelectionManagerService as _0x92d5ec,DocSkeletonManagerService as _0x47a3f5,RichTextEditingMutation as _0x524203,SetTextSelectionsOperation as _0x223835}from'@univerjs/docs';import{FormulaExecuteStageType as _0x52f8ca,FormulaExecutedStateType as _0x212b69,SetFormulaCalculationNotificationMutation as _0xe628ff,SetFormulaCalculationStartMutation as _0x280be0,deserializeRangeWithSheet as _0x3eb8fa,serializeRangeWithSheet as _0x551eee}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x32fb05,getCoordByCell as _0x2578dc,getSheetObject as _0x547a2f}from'@univerjs/sheets-ui';import{ErrorCode as _0x5e0da0}from'@univerjs/protocol';function Yt(_0xa06431){const _0x3633ec=_0x4885;switch(_0xa06431){case _0x18999b[_0x3633ec(0x258)]:return{'icon':_0x10f13a(_0x41ca4b,{}),'colorClass':'univer-text-red-500','i18nKey':_0x3633ec(0x280),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':_0x3633ec(0x30f)};case _0x18999b[_0x3633ec(0x22f)]:return{'icon':_0x10f13a(_0x41ca4b,{}),'colorClass':_0x3633ec(0x247),'i18nKey':_0x3633ec(0x3df),'clickable':!0x1,'indicator':_0x3633ec(0x30f)};case _0x18999b[_0x3633ec(0x1f8)]:return{'icon':_0x10f13a(_0x3928e2,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3633ec(0x3c0),'clickable':!0x1,'indicator':'spin'};case _0x18999b[_0x3633ec(0x23a)]:return{'icon':_0x10f13a(_0x533d54,{}),'colorClass':'univer-text-gray-400','i18nKey':_0x3633ec(0x29a),'clickable':!0x1,'indicator':_0x3633ec(0x30f)};case _0x18999b['AWAITING']:case _0x18999b['AWAITING_WITH_PENDING']:return{'icon':_0x10f13a(_0x3928e2,{}),'colorClass':_0x3633ec(0x21e),'i18nKey':_0x3633ec(0x2b4),'clickable':!0x1,'indicator':'spin'};case _0x18999b[_0x3633ec(0x409)]:return{'icon':_0x10f13a(_0x3928e2,{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3633ec(0x2b4),'clickable':!0x1,'indicator':_0x3633ec(0x2a2)};case _0x18999b[_0x3633ec(0x32c)]:return{'icon':_0x10f13a(_0x533d54,{}),'colorClass':_0x3633ec(0x3ae),'i18nKey':_0x3633ec(0x2ae),'clickable':!0x1,'indicator':'static'};}}function Xt(_0xb321db){const _0x388c9a=_0x4885;let {status$:_0x56d488}=_0xb321db,_0x26b93f=_0x43c1b4(_0x56d488,_0x18999b[_0x388c9a(0x23a)]),_0x45382a=_0x4715f5(_0x14b5d2),_0x4313aa=_0x4715f5(_0x52b1cf),_0x239411=_0x56d377(()=>Yt(_0x26b93f),[_0x26b93f]),_0x3eebab=_0x26b93f!==_0x18999b[_0x388c9a(0x258)],_0x3bf224=_0x45382a['t'](_0x239411[_0x388c9a(0x3c3)]),_0x24fcaf=_0x239411['tooltipKey']?_0x45382a['t'](_0x239411['tooltipKey']):_0x3bf224,_0x2a749f=_0x1ae509(()=>{const _0x278284=_0x388c9a;_0x3eebab||_0x4313aa[_0x278284(0x200)]();},[_0x3eebab,_0x4313aa]),_0x19ddff=_0x1ae509(_0x1e1ac2=>{const _0x449d9c=_0x388c9a;!_0x3eebab&&(_0x1e1ac2[_0x449d9c(0x261)]==='Enter'||_0x1e1ac2[_0x449d9c(0x261)]==='\x20')&&(_0x1e1ac2[_0x449d9c(0x2e5)](),_0x4313aa[_0x449d9c(0x200)]());},[_0x3eebab,_0x4313aa]),_0x22f906=_0x10f13a(_0x388c9a(0x296),{'className':_0x3122e6(_0x388c9a(0x326),_0x388c9a(0x285),_0x239411['colorClass'],{'univer-animate-spin':_0x239411[_0x388c9a(0x3fa)]===_0x388c9a(0x2a2),'univer-animate-pulse':_0x239411[_0x388c9a(0x3fa)]===_0x388c9a(0x2d4)}),'aria-hidden':_0x388c9a(0x2c3),'children':_0x239411[_0x388c9a(0x2a5)]}),_0x297295=_0x10f13a(_0x388c9a(0x296),{'className':_0x3122e6(_0x388c9a(0x326),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x388c9a(0x3bf),'focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2',_0x388c9a(0x2fa),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x239411['clickable'],'univer-cursor-default':!_0x239411['clickable']}),'children':_0x22f906});return _0x239411[_0x388c9a(0x29e)]?_0x10f13a(_0x1eac27,{'title':_0x24fcaf,'placement':_0x388c9a(0x23f),'children':_0x10f13a(_0x388c9a(0x3d2),{'type':_0x388c9a(0x3d2),'onClick':_0x2a749f,'onKeyDown':_0x19ddff,'className':_0x3122e6(_0x388c9a(0x2f8),_0x388c9a(0x394),_0x388c9a(0x3cb),_0x388c9a(0x3be)),'aria-label':_0x3bf224+'\x20-\x20'+_0x24fcaf,'role':_0x388c9a(0x322),'aria-live':_0x388c9a(0x317),'aria-atomic':'true','children':_0x297295})}):_0x10f13a(_0x1eac27,{'title':_0x24fcaf,'placement':'bottom','children':_0x10f13a(_0x388c9a(0x35c),{'className':_0x3122e6(_0x388c9a(0x2f8),_0x388c9a(0x394),_0x388c9a(0x3cb)),'aria-label':_0x3bf224,'role':_0x388c9a(0x322),'aria-live':'polite','aria-atomic':_0x388c9a(0x2c3),'children':_0x297295})});}function W(_0x4c5073){'@babel/helpers - typeof';const _0x5af372=_0x4885;return W=typeof Symbol==_0x5af372(0x231)&&typeof Symbol[_0x5af372(0x399)]==_0x5af372(0x379)?function(_0x330794){return typeof _0x330794;}:function(_0xfa35fe){const _0x3f6d0d=_0x5af372;return _0xfa35fe&&typeof Symbol=='function'&&_0xfa35fe[_0x3f6d0d(0x36f)]===Symbol&&_0xfa35fe!==Symbol[_0x3f6d0d(0x2c1)]?_0x3f6d0d(0x379):typeof _0xfa35fe;},W(_0x4c5073);}function Zt(_0x55035b,_0x41ad1d){const _0x165ad6=_0x4885;if(W(_0x55035b)!=_0x165ad6(0x28c)||!_0x55035b)return _0x55035b;var _0x7aa9b8=_0x55035b[Symbol['toPrimitive']];if(_0x7aa9b8!==void 0x0){var _0xe1e522=_0x7aa9b8['call'](_0x55035b,_0x41ad1d||_0x165ad6(0x3a4));if(W(_0xe1e522)!='object')return _0xe1e522;throw TypeError(_0x165ad6(0x2dc));}return(_0x41ad1d==='string'?String:Number)(_0x55035b);}function Qt(_0x6d6cb6){const _0x456f7d=_0x4885;var _0x1fd4c1=Zt(_0x6d6cb6,_0x456f7d(0x2bd));return W(_0x1fd4c1)==_0x456f7d(0x379)?_0x1fd4c1:_0x1fd4c1+'';}function G(_0x1af416,_0x428338,_0x5f504f){const _0x5a9b15=_0x4885;return(_0x428338=Qt(_0x428338))in _0x1af416?Object[_0x5a9b15(0x3b6)](_0x1af416,_0x428338,{'value':_0x5f504f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1af416[_0x428338]=_0x5f504f,_0x1af416;}function K(_0x4bebac,_0x24b62a){return function(_0x217871,_0xe0e4c4){_0x24b62a(_0x217871,_0xe0e4c4,_0x4bebac);};}function q(_0x23b2fa,_0x49fe17,_0x261a0e,_0x61311d){const _0x32fa73=_0x4885;var _0x1b79b4=arguments[_0x32fa73(0x35f)],_0x39e73b=_0x1b79b4<0x3?_0x49fe17:_0x61311d===null?_0x61311d=Object[_0x32fa73(0x337)](_0x49fe17,_0x261a0e):_0x61311d,_0x1ad276;if(typeof Reflect==_0x32fa73(0x28c)&&typeof Reflect[_0x32fa73(0x406)]==_0x32fa73(0x231))_0x39e73b=Reflect['decorate'](_0x23b2fa,_0x49fe17,_0x261a0e,_0x61311d);else{for(var _0x40d256=_0x23b2fa['length']-0x1;_0x40d256>=0x0;_0x40d256--)(_0x1ad276=_0x23b2fa[_0x40d256])&&(_0x39e73b=(_0x1b79b4<0x3?_0x1ad276(_0x39e73b):_0x1b79b4>0x3?_0x1ad276(_0x49fe17,_0x261a0e,_0x39e73b):_0x1ad276(_0x49fe17,_0x261a0e))||_0x39e73b);}return _0x1b79b4>0x3&&_0x39e73b&&Object[_0x32fa73(0x3b6)](_0x49fe17,_0x261a0e,_0x39e73b),_0x39e73b;}let J=class extends _0x1b0287{constructor(_0x5169b6,_0x270e19,_0x5e1f38,_0x4219ce){const _0x2bae80=_0x4885;super(),this[_0x2bae80(0x248)]=_0x5169b6,this[_0x2bae80(0x359)]=_0x270e19,this[_0x2bae80(0x334)]=_0x5e1f38,this[_0x2bae80(0x314)]=_0x4219ce,G(this,_0x2bae80(0x3a7),new _0x3f7448(_0x18999b[_0x2bae80(0x23a)])),this[_0x2bae80(0x28e)](),this[_0x2bae80(0x37c)]();}[_0x206259(0x37c)](){const _0x1e5bdb=_0x206259;this['disposeWithMe'](_0x433e18(this[_0x1e5bdb(0x248)]['focused$'],this[_0x1e5bdb(0x248)][_0x1e5bdb(0x3d8)](_0x13410e[_0x1e5bdb(0x2f6)]),this['_univerInstanceService'][_0x1e5bdb(0x3d8)](_0x13410e[_0x1e5bdb(0x218)]))[_0x1e5bdb(0x217)](_0x52d48e(()=>$t(this[_0x1e5bdb(0x248)])),_0xc97d77(),_0x29a006(_0x170606=>_0x170606?this[_0x1e5bdb(0x334)][_0x1e5bdb(0x269)](_0x170606):_0xd28a5f(null)),_0x29a006(_0xe8b8f=>_0xe8b8f?_0xe8b8f[_0x1e5bdb(0x1f0)]:_0xd28a5f(_0x18999b[_0x1e5bdb(0x23a)])))[_0x1e5bdb(0x385)](_0x4d87f5=>{const _0x5197c7=_0x1e5bdb;this[_0x5197c7(0x3a7)][_0x5197c7(0x2ed)](_0x4d87f5);}));}['_initStatusComponent'](){const _0x2e9fa8=_0x206259;this['disposeWithMe'](this['_uiPartsService'][_0x2e9fa8(0x2cd)](_0x46b832['HEADER_MENU'],()=>_0x2f8c6f(en({'status$':this['_status$'][_0x2e9fa8(0x266)]()}),this[_0x2e9fa8(0x359)])));}};J=q([K(0x0,_0x2d5bc6),K(0x1,_0xb8a7b6(_0x59fba4)),K(0x2,_0xb8a7b6(_0x1544ac)),K(0x3,_0x1bb97b)],J);function $t(_0x17d56d){const _0x5f5087=_0x206259;let _0x272905=_0x17d56d[_0x5f5087(0x377)](),_0x52d376=_0x272905==null?void 0x0:_0x272905[_0x5f5087(0x2f0)]();if(_0x52d376&&!_0x6bde86(_0x52d376))return _0x52d376;let _0x2c9ae3=_0x17d56d[_0x5f5087(0x335)](_0x13410e['UNIVER_DOC']),_0x2e6a25=_0x2c9ae3==null?void 0x0:_0x2c9ae3[_0x5f5087(0x2f0)]();if(_0x2e6a25&&!_0x6bde86(_0x2e6a25))return _0x2e6a25;let _0x1d5551=_0x17d56d[_0x5f5087(0x335)](_0x13410e[_0x5f5087(0x218)]);if(_0x1d5551)return _0x1d5551[_0x5f5087(0x2f0)]();let _0x589862=_0x17d56d[_0x5f5087(0x3ce)](_0x13410e['UNIVER_DOC'])[_0x5f5087(0x400)](_0x3a5b32=>!_0x6bde86(_0x3a5b32[_0x5f5087(0x2f0)]()));return _0x589862?_0x589862['getUnitId']():null;}function en(_0x49735e){let {status$:_0x3e6fe4}=_0x49735e;return function(){return _0x10f13a(Xt,{'status$':_0x3e6fe4});};}const tn=_0x49020c(_0x206259(0x331));function _0x6a1c(){const _0x355e89=['_docSyncEditingCollabCursorService','_cursorShapes','_heartbeatTimer','code','OTHER_CLIENT_EDITING','closePath','UPDATE_CURSOR','148372cNCyYH','subscribe','_updateCollabCursors','[Window\x20Error]:\x20','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_ensureSubject','_refreshCollabCursors','getConfig','_memberService','_offsetY','fillStyle','_lastResponseTimestamp','range','_textBubble','_docClipboardService','event$','univer-border-none\x20univer-bg-transparent','getDocRanges','sheetID','isArray','collaboration-client-ui.permission.content','iterator','assignAColorForMemberID','registerBeforeClose','RemoveColCommandId','_transformHistoryAndStateStack','FromArray','_context','roomMembers','/universer-api/license/formula/limit/status','_anchor','set','default','fillText','_stopBlinking','_status$','_setFormulaLimitStatus','body','setItem','_checkCalculationAvailable','getMergeData','_labelPosition','univer-text-green-500','rgba(','getViewport','_getFormulaLimitStatus','requireSession','_handleLeaveEvent','hide','_localeService','defineProperty','_clearOtherTimers','values','undoState','SUCCESS','_applyCommand','resize','onRendered','univer-appearance-none','univer-transition-all\x20univer-duration-200','collaboration-client-ui.collabStatus.fetchMiss','rgb','unitId','i18nKey','subscribeEvent','_roomMembers$','_unitStatus','_pointerMoveDisposable','_transformService','rgba','offsetY','univer-m-0\x20univer-p-0','_startBlinking','top','getAllUnitsForType','save','2467108nHNRYq','_localStorageService','button','createInstance','USERS_LEAVE','getFormulaLimitStatusUrl','getStateCache','45380drrIav','getCurrentTypeOfUnit$','arc','_syncEditingCollabCursorService','_updateSubUnitFromURLParams','executeCommand','_registerDependencies','slice','collaboration-client-ui.collabStatus.conflict','stringify','_range','color','_dataLoaderService','?taskId=','invokeId','_saveTaskMap','_toggleOnline','unshift','saveTaskMap','blue.400','_initCommandInterceptor','data','startColumn','map','shift','_httpService','version','enableFrontendLog','search','_getAnchorBounding','highlight','_messageService','complete','getActiveSheet','NO_OTHER_CLIENTS_EDITING','indicator','_removeClearOtherTimer','_updateURLWithCurrentState','delete','saveImage','_docTransformSelectionsService','find','getVpScrollXYInfoByPosToVp','addEventListener','_removeCollabCursors','removeEventListener','getSheetId','decorate','imageSourceType','getCollabCursors$','PENDING','collaboration-client-ui.session.connection-failed','findNodePositionByCharIndex','_logService','status$','_themeService','addObjects','6hKaPXN','transformRemoteChangeset','4TYnIFC','loadUnit','purple.300','FETCH_MISS','_doCreateSocket','getItem','collab-text-range-','_initDependencies','getCellMatrix','highlightSecond','_onCursorUpdate','reconnect','[RemoteUniscriptService]:\x20no\x20focused\x20unit','origin','setAlpha','_document','getUnhiddenWorksheets','docStateChange$','_blinkIntervalTimer','_handleJoinEvent','_startDocCollabCursor','max','actions','_scheduleHeartbeat','_checkAndWaitForCalculationPermission','beforeCommandExecuted','green.600','urlChange$','_initEntityListener','addObject','getUniverSheetInstance','message','_scene','application/json','pipe','UNIVER_SHEET','storage','_notificationService','collaboration-client-ui.formula.calculation.started','_pollingInterval','transformIMECache','univer-text-blue-500','clearInterval','_transformPreviousActiveRange','OTHER_CLIENTS_EDITING','2188383AQokiv','_initUnhandledRejectionListener','getUnitStatus$','selections','collaboration-client-ui.session.collaboration-timeout','START_CALCULATION','disposeWithMe','get','_docSkeletonManagerService','_draw','_memberID','Failed','_docStateChangeManagerService','CONFLICT','from','function','rgba(255,\x20255,\x20255,\x200.01)','SUBMIT_CHANGESET_TIMEOUT','min','setTimeout','currentSkeleton$','sessionTicket','collaboration-client-ui.formula.calculation.unable','getCurrentSelections','NOT_COLLAB','_collabCursorState$','_startSheetCollabCursor','height','collaboration-client-ui.formula.calculation.waiting','bottom','_revisionService','registerRenderModule','getActiveRange','_setupBeforeClosingHandler','setStateCache','row','_toggleOffline','univer-text-orange-500','_univerInstanceService','onPointerEnter$','currentUsage','_drawTextRange','onPointerMove$','selection','/run/','getSkeleton','_entities','getColorFromTheme','replaceState','transformStateCache','parseInt','_collabCursorController','getRangePointData','_commandService','OFFLINE','colno','getRelativeToViewportCoord','runOnServer','post','_cachedData','_docSkeleton','transformMutation','debug','key','maxFormulaLimit','_hasFormulaInDirtyRanges','getTypeOfUnitAdded$','push','asObservable','_isBlinkVisible','collaboration-client-ui.collaboration.closeRoom','getCollabEntity$','_session','_highlight','toString','getUndoRedoMutationParamsCache','/universer-api/frontend/logs','_unitOnClients','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_blinkTimer','_eventUnsubscribe','dispose$','eventID','_cursor','/universer-api/license/formula/limit/done','Unknown\x20user','_collabSessionService','jiqing.500','forEach','transformByState','strokeWidth','collaboration-client-ui.collaboration.single-unit.warning','setShapeProps','exhaustSavingTask','collaboration-client-ui.collabStatus.offline','roomMembers$','_entityInit$','RECT','_colorAssignService','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','ticket','getTypeOfUnitDisposed$','history','then','socket$','editingUnit','object','_onCursorDelete','_initStatusComponent','getCellPositionByOffset','transformSelections','_lastPointer','_currentUsage','size','font','currentTheme$','span','290zvvXTH','replace','_maxFormulaLimit','collaboration-client-ui.collabStatus.notCollab','dispose','_shapes','_instanceService','clickable','getMember','setActiveRange','_initUserListener','spin','syncEditingCollabCursor','addClipboardHook','icon','now','_initEvent','setInterval','enableLocalCache','_color','setConfig','VIEW_MAIN','ranges','collaboration-client-ui.collabStatus.synced','cursorInfo','143424gtrAUY','/universer-api/license/formula/limit/start','_localCacheService','hovered','collaboration-client-ui.collabStatus.syncing','_config','getSheetBySheetId','text','InsertRowCommandId','_handleHeartbeatEvent','onStarting','_docTransformStateCacheService','_getLighterColor','string','includes','\x20at\x20','getCurrentSkeleton','prototype','moveTo','true','_getSessionTicket','_backgroundColor','getOffsetConfig',',\x200.2)','entityInit$','split','getParam','newValue','_saveCache','registerComponent','_cursorInfo$','yellow.400','_initCommandExecutedListener','doc.mutation.rich-text-editing','_name','startFormulaLimitUrl','pulse','_selfUnitIDs','drawWith','clearTimeout','setParam','labelPosition','_render','startRow','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','result','redoState','_initWindowErrorListener','init','DeleteRangeMoveLeftCommandId','_updateLocalCursor','triggerDblclick','onMouseMove','preventDefault','sessionStatus$','_createSocketURL','1672bEuwLn','_colorIndex','_initResize','collabCursorState$','onTransformChange$','next','_init','[Unhandled\x20Rejection]:\x20','getUnitId','show','join','_startCalculationLimit','_anchorDot','_taskIds','UNIVER_DOC','sheetId','univer-inline-flex\x20univer-items-center\x20univer-justify-center','784099igqvlX','dark:focus:univer-ring-offset-gray-800','name','beginPath','m2Prime','disableLocalCache','_urlService','InsertRangeMoveRightCommandId','getMemberID','showText','Loading','unit','_hovered','_scheduleClearOtherTimer','add','measureText','registerRefRange','_clearPolling','endColumn','[LogService\x20Error]:\x20','_cursors','href','static','_registerRenderDependencies','column','0.25.2','type','_uiPartsService','stack','functionsExecutedState','polite','Success','onCommandExecuted','_send','_drawRectRange','evenodd','subunit','isEditing','_disabled','error','RemoveRowCommandId','status','unhandledrejection','unitID','memberID','univer-flex\x20univer-items-center\x20univer-justify-center','cursorInfo$','stage','limitInfo','_drawAnchor','subUnitId','SYNCED','getCurrentRevOfUnit','with','PERMISSION_DENIED','lineno','uni.network.url-service','fill','some','_collaborationController','getCurrentUnitOfType','_refRangeService','getOwnPropertyDescriptor','_docTransformIMECacheService','_getSaveTimeout','toRgbString','collaboration-client-ui.permission.title','restore','searchParams','width','pushState','_collaborationSessionService','isActive','_highlightSecond','...','73719WCagsc','464mOjBHt','_uploadLog','_getMergeRange','_assignedColors','_beforeCloseService','startsWith','_getSheetObject','activeSheet$','_sheetSkeletonManagerService','_renderManagerService','deepClone','parse','params','releaseFormulaLimitUrl','removeParam','setUndoRedoMutationParamsCache','_releaseCalculationLimit','has','0.2)','_getScale','_injector','JOIN_ROOM_FAILED','[CollaborationDataLoaderController]','div','mutations','_hover','length','totalFormulasToCalculate','ONLINE','m1Prime','makeDirty','stageInfo','runId','_hideTimer','onPointerLeave$','Warning','backgroundColor','unsubscribe','_id','lineTo','black','SOCKET_FAILED_RETRY','constructor','_showText','Error','getValue','location','_online','_showGuardMessage','transformMutationsWithChangeset','getFocusedUnit','_configService','symbol','_handleHover','endRow','_initStatusListener'];_0x6a1c=function(){return _0x355e89;};return _0x6a1c();}let Y=class extends _0x44d0b2{constructor(_0x5e8bff,_0x557980,_0x151ed7,_0x20ad10,_0x507b3c){const _0x114087=_0x206259;super(),this[_0x114087(0x2ff)]=_0x5e8bff,this[_0x114087(0x1ef)]=_0x557980,this[_0x114087(0x257)]=_0x151ed7,this[_0x114087(0x3e3)]=_0x20ad10,_0x507b3c?_0x507b3c==null||_0x507b3c['whenReady']()[_0x114087(0x289)](()=>this[_0x114087(0x2ee)]()):(this[_0x114087(0x1ef)]['debug'](_0x114087(0x35b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x114087(0x2ee)]());}async[_0x206259(0x2ee)](){const _0x5a6d61=_0x206259;let _0x4b0f91=this[_0x5a6d61(0x2ff)][_0x5a6d61(0x2ca)]('unit'),_0x589496=this[_0x5a6d61(0x2ff)][_0x5a6d61(0x2ca)](_0x5a6d61(0x313)),_0x11d24c=this['_urlService'][_0x5a6d61(0x2ca)]('subunit');if(!_0x4b0f91||!_0x589496){this[_0x5a6d61(0x1ef)][_0x5a6d61(0x260)](_0x5a6d61(0x35b),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x1052f0=await this['_dataLoaderService'][_0x5a6d61(0x1f6)](_0x4b0f91,Number(_0x589496),_0x11d24c);_0x1052f0&&_0x1052f0 instanceof _0x5e88af&&this['_setupSubUnitSync'](_0x1052f0);}async['_setupSubUnitSync'](_0x58a413){const _0x18cb6a=_0x206259;await this[_0x18cb6a(0x3db)](_0x58a413),_0x58a413[_0x18cb6a(0x34c)][_0x18cb6a(0x217)](_0x384030(this['dispose$']))['subscribe'](_0x5dc3f1=>{_0x5dc3f1&&this['_updateURLWithCurrentState'](_0x5dc3f1);}),this[_0x18cb6a(0x2ff)]['urlChange$']['pipe'](_0x384030(this[_0x18cb6a(0x273)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x58a413));}[_0x206259(0x3fc)](_0x514623,_0x3de968=!0x1){const _0x1c81ee=_0x206259;let _0x15e5b9=this[_0x1c81ee(0x2ff)]['getParam'](_0x1c81ee(0x31d));_0x514623[_0x1c81ee(0x405)]()!==_0x15e5b9&&this[_0x1c81ee(0x2ff)][_0x1c81ee(0x2d8)](_0x1c81ee(0x31d),_0x514623['getSheetId'](),_0x3de968);}async[_0x206259(0x3db)](_0x1647b3){const _0x4bd71c=_0x206259;var _0x1c932f;let _0x4cfc61=this[_0x4bd71c(0x2ff)]['getParam'](_0x4bd71c(0x31d));if(!_0x4cfc61||!_0x1647b3['getSheetBySheetId'](_0x4cfc61)){let _0x1f9903=_0x1647b3[_0x4bd71c(0x205)]()[0x0],_0x241596=_0x1647b3[_0x4bd71c(0x2b6)](_0x1f9903);if(!_0x241596)return;this[_0x4bd71c(0x3fc)](_0x241596,!0x0),await this['_commandService'][_0x4bd71c(0x3dc)](_0x5ce7e1['id'],{'unitId':_0x1647b3[_0x4bd71c(0x2f0)](),'subUnitId':_0x1f9903});return;}((_0x1c932f=_0x1647b3[_0x4bd71c(0x3f8)]())==null?void 0x0:_0x1c932f['getSheetId']())!==_0x4cfc61&&await this[_0x4bd71c(0x257)][_0x4bd71c(0x3dc)](_0x5ce7e1['id'],{'unitId':_0x1647b3[_0x4bd71c(0x2f0)](),'subUnitId':_0x4cfc61});}};Y=q([K(0x0,tn),K(0x1,_0x5916ce),K(0x2,_0x498ceb),K(0x3,_0xb8a7b6(_0x37960b)),K(0x4,_0x5b49dd(_0x51294a))],Y);var nn='@univerjs-pro/collaboration-client-ui',rn=_0x206259(0x312);let an=class extends _0x44d0b2{constructor(_0x2b9d13,_0x89d62){const _0x46f6b3=_0x206259;super(),this[_0x46f6b3(0x392)]=_0x2b9d13,this['_imageIoService']=_0x89d62,this[_0x46f6b3(0x2ee)]();}[_0x206259(0x2ee)](){const _0x48a64d=_0x206259;let _0x365f86=this;this[_0x48a64d(0x228)](this['_docClipboardService'][_0x48a64d(0x2a4)]({'onBeforePasteImage':async _0x45e2ca=>{const _0x140fda=_0x48a64d;let _0x5e1311=await _0x365f86['_imageIoService'][_0x140fda(0x3fe)](_0x45e2ca);return _0x5e1311?{'source':_0x5e1311['source'],'imageSourceType':_0x5e1311[_0x140fda(0x407)]}:null;}}));}};an=q([K(0x0,_0x42fc83),K(0x1,_0x591bd3)],an);const on=[_0x206259(0x1f7),_0x206259(0x279),_0x206259(0x20f),'red.300',_0x206259(0x3ea),_0x206259(0x2cf)];var sn=class extends _0x1b0287{constructor(..._0x414f74){const _0x276e6d=_0x206259;super(..._0x414f74),G(this,_0x276e6d(0x348),new Map()),G(this,_0x276e6d(0x2e9),0x0);}['assignAColorForMemberID'](_0x2767c3){const _0x17993e=_0x206259;if(this[_0x17993e(0x348)]['has'](_0x2767c3))return this['_assignedColors'][_0x17993e(0x229)](_0x2767c3);let _0x3bc32a=on[this[_0x17993e(0x2e9)]];return this[_0x17993e(0x2e9)]=(this[_0x17993e(0x2e9)]+0x1)%on[_0x17993e(0x35f)],this[_0x17993e(0x348)][_0x17993e(0x3a3)](_0x2767c3,_0x3bc32a),_0x3bc32a;}};function _0x4885(_0x56ee26,_0x1be633){_0x56ee26=_0x56ee26-0x1ed;const _0x6a1c75=_0x6a1c();let _0x48852a=_0x6a1c75[_0x56ee26];return _0x48852a;}function cn(_0x1a4cc9){const _0x32c480=_0x206259;let _0x12874c='';for(let _0x4b64ef of _0x1a4cc9){let {startOffset:_0x30013f,endOffset:_0x87cef3,isActive:_0x5db32a,rangeType:_0x455cc5,segmentId:_0x399b39,segmentPage:_0x329c8e}=_0x4b64ef;_0x12874c[_0x32c480(0x35f)]&&(_0x12874c+=','),_0x12874c+=_0x30013f+':'+_0x87cef3+':'+(_0x5db32a?'1':'0')+':'+_0x455cc5+':'+_0x399b39+':'+_0x329c8e;}return _0x12874c;}function ln(_0x2effa6){const _0x16e638=_0x206259;let _0x2d867d=_0x2effa6[_0x16e638(0x2c9)](','),_0x460fae=[];for(let _0x1bb378 of _0x2d867d){let [_0x354062,_0x3b24d7,_0x1364b8,_0x592f55,_0x52d693,_0x3994d7]=_0x1bb378[_0x16e638(0x2c9)](':');_0x460fae['push']({'startOffset':Number(_0x354062),'endOffset':Number(_0x3b24d7),'collapsed':_0x354062===_0x3b24d7,'isActive':_0x1364b8==='1','rangeType':_0x592f55===_0x256699['TEXT']?_0x256699['TEXT']:_0x256699[_0x16e638(0x283)],'segmentId':typeof _0x52d693==_0x16e638(0x2bd)?String(_0x52d693):'','segmentPage':Number(_0x3994d7==null?-0x1:_0x3994d7)});}return _0x460fae[_0x16e638(0x333)](_0x57a113=>_0x57a113[_0x16e638(0x341)])||(_0x460fae[0x0][_0x16e638(0x341)]=!0x0),_0x460fae;}var un=class extends _0x44d0b2{constructor(..._0x1a0855){const _0x1d3b85=_0x206259;super(..._0x1a0855),G(this,'_collabCursorState$',new _0x3f7448(null)),G(this,_0x1d3b85(0x2eb),this[_0x1d3b85(0x23b)][_0x1d3b85(0x266)]());}['syncEditingCollabCursor'](_0x20a4a6){const _0x5b4ba8=_0x206259;let {unitID:_0x77ecb,memberID:_0x2e9de8,textRanges:_0x489ce8}=_0x20a4a6,_0x2067a1=cn(_0x489ce8);if(_0x2067a1==='')return;let _0x5d9046={'unitID':_0x77ecb,'memberID':_0x2e9de8,'selection':_0x2067a1};this[_0x5b4ba8(0x23b)][_0x5b4ba8(0x2ed)](_0x5d9046);}};let dn=class extends _0x44d0b2{get['cursorInfo'](){const _0x30e4e5=_0x206259;return this[_0x30e4e5(0x2ce)][_0x30e4e5(0x372)]();}get[_0x206259(0x3a0)](){const _0x46a42a=_0x206259;return this[_0x46a42a(0x3c5)]['getValue']();}constructor(_0x3d2e44,_0x3621b1,_0x41de5f,_0x25e16d,_0x35154b,_0x279e76,_0x391240,_0xd5fafc,_0x3c288b){const _0x2ed3c9=_0x206259;super(),this[_0x2ed3c9(0x324)]=_0x3d2e44,this[_0x2ed3c9(0x26a)]=_0x3621b1,this[_0x2ed3c9(0x359)]=_0x41de5f,this[_0x2ed3c9(0x284)]=_0x25e16d,this['_memberService']=_0x35154b,this[_0x2ed3c9(0x3da)]=_0x279e76,this[_0x2ed3c9(0x3c8)]=_0x391240,this['_univerInstanceService']=_0xd5fafc,this[_0x2ed3c9(0x257)]=_0x3c288b,G(this,_0x2ed3c9(0x374),!0x1),G(this,_0x2ed3c9(0x2ee),!0x1),G(this,'_cursorInfo$',new _0x3f7448(new Map())),G(this,_0x2ed3c9(0x327),this[_0x2ed3c9(0x2ce)][_0x2ed3c9(0x266)]()),G(this,_0x2ed3c9(0x3c5),new _0x3f7448([])),G(this,_0x2ed3c9(0x281),this[_0x2ed3c9(0x3c5)][_0x2ed3c9(0x217)](_0x3352de(0x12c))),G(this,'_updateLocalCursor',_0x4e5741(_0x3a2967=>{const _0x3a3c74=_0x2ed3c9;let _0x2aebeb={'eventID':_0x12ec4a[_0x3a3c74(0x383)],'data':{'unitID':this[_0x3a3c74(0x324)],'memberID':this['_session'][_0x3a3c74(0x301)](),'selection':cn(_0x3a2967)}};this[_0x3a3c74(0x26a)]['send'](_0x2aebeb,this[_0x3a3c74(0x324)]);},0x64));}[_0x206259(0x29b)](){const _0x95a87a=_0x206259;super['dispose'](),this['_cursorInfo$'][_0x95a87a(0x2ed)](new Map()),this['_cursorInfo$'][_0x95a87a(0x3f7)](),this[_0x95a87a(0x3c5)][_0x95a87a(0x2ed)]([]),this[_0x95a87a(0x3c5)][_0x95a87a(0x3f7)]();}[_0x206259(0x2e0)](){const _0x58b19b=_0x206259;this[_0x58b19b(0x2ee)]||(this[_0x58b19b(0x2ee)]=!0x0,this[_0x58b19b(0x26a)]['sessionStatus$'][_0x58b19b(0x217)](_0x384030(this[_0x58b19b(0x273)]))[_0x58b19b(0x385)](_0x671835=>{const _0xa7be01=_0x58b19b;_0x671835===_0x2457ac[_0xa7be01(0x361)]?this[_0xa7be01(0x3e7)]():this[_0xa7be01(0x246)]();}),this['_session']['event$'][_0x58b19b(0x217)](_0x384030(this[_0x58b19b(0x273)]))['subscribe'](_0x50f561=>{const _0x49409d=_0x58b19b;let _0x36b12f=_0x50f561[_0x49409d(0x274)];_0x36b12f===_0x12ec4a['UPDATE_CURSOR']&&this[_0x49409d(0x1ff)](_0x50f561),_0x36b12f===_0x12ec4a['USERS_LEAVE']&&this[_0x49409d(0x28d)](_0x50f561);}),this[_0x58b19b(0x228)](this['_commandService'][_0x58b19b(0x319)](_0x4b02eb=>{const _0xb6d08f=_0x58b19b;let _0x7ca1c8=_0x4b02eb['params'];_0x7ca1c8!=null&&this[_0xb6d08f(0x374)]&&_0x4b02eb['id']===_0x223835['id']&&_0x7ca1c8[_0xb6d08f(0x3c2)]===this[_0xb6d08f(0x324)]&&_0x7ca1c8[_0xb6d08f(0x31e)]===!0x1&&_0x7ca1c8[_0xb6d08f(0x2ad)]['length']>0x0&&this[_0xb6d08f(0x2e2)](_0x7ca1c8[_0xb6d08f(0x2ad)]);})),this[_0x58b19b(0x3da)]['collabCursorState$'][_0x58b19b(0x217)](_0x384030(this[_0x58b19b(0x273)]))[_0x58b19b(0x385)](_0x3da3b7=>{const _0x3c7f61=_0x58b19b;if((_0x3da3b7==null?void 0x0:_0x3da3b7[_0x3c7f61(0x324)])!==this[_0x3c7f61(0x324)])return;let _0x3b03f1={'eventID':_0x12ec4a['UPDATE_CURSOR'],'data':_0x3da3b7};this[_0x3c7f61(0x1ff)](_0x3b03f1);}),this[_0x58b19b(0x228)](this[_0x58b19b(0x257)][_0x58b19b(0x319)](_0xdbab3=>{const _0x58af03=_0x58b19b;if(_0xdbab3[_0x58af03(0x351)]==null)return;let _0x27721a=_0xdbab3[_0x58af03(0x351)];if(_0xdbab3['id']!==_0x524203['id']||_0x27721a[_0x58af03(0x3c2)]!==this['unitID'])return;let _0x57b83f={'id':'doc.mutation.rich-text-editing','params':_0x27721a},_0x6ec825=this['cursorInfo'];for(let [_0xc3be05,_0x2ea7f3]of _0x6ec825){let _0xa7928b={'id':_0x58af03(0x2d1),'params':{'unitId':this[_0x58af03(0x324)],'actions':null,'textRanges':_0x2ea7f3[_0x58af03(0x2ad)]}},_0x39ea2e=this['_transformService'][_0x58af03(0x25f)](_0x57b83f,_0xa7928b,!0x1);if(_0x537eeb(_0x39ea2e))throw _0x39ea2e[_0x58af03(0x320)];_0x6ec825[_0x58af03(0x3a3)](_0xc3be05,{..._0x2ea7f3,'ranges':_0x39ea2e[_0x58af03(0x2fd)][_0x58af03(0x351)]['textRanges']});}queueMicrotask(()=>{const _0x41790e=_0x58af03;this[_0x41790e(0x2ce)][_0x41790e(0x2ed)](_0x6ec825);});})));}[_0x206259(0x1ff)](_0x294164){const _0xe652b4=_0x206259;var _0x2988f8,_0x254416;let {memberID:_0x3ef05b,selection:_0x16dba7}=_0x294164[_0xe652b4(0x3ec)],_0x2ca4b5=ln(_0x16dba7),_0x526531=(_0x2988f8=(_0x254416=this['_memberService'][_0xe652b4(0x29f)](this[_0xe652b4(0x324)],_0x3ef05b))==null?void 0x0:_0x254416['name'])==null?_0xe652b4(0x277):_0x2988f8,_0x37add0={'color':this[_0xe652b4(0x284)][_0xe652b4(0x39a)](_0x3ef05b),'name':_0x526531,'ranges':_0x2ca4b5},_0x313941=this[_0xe652b4(0x2af)];_0x313941['set'](_0x3ef05b,_0x37add0),this['_cursorInfo$']['next'](_0x313941);}['_onCursorDelete'](_0x1bb681){const _0x3f3320=_0x206259;let {memberID:_0x15634e}=_0x1bb681['data'],_0x2fb307=this[_0x3f3320(0x2af)];_0x2fb307['delete'](_0x15634e),this[_0x3f3320(0x2ce)][_0x3f3320(0x2ed)](_0x2fb307);}[_0x206259(0x3e7)](){const _0x542e1e=_0x206259;var _0x2b7513;if(this[_0x542e1e(0x374)]=!0x0,((_0x2b7513=this[_0x542e1e(0x248)][_0x542e1e(0x377)]())==null?void 0x0:_0x2b7513[_0x542e1e(0x2f0)]())!==this[_0x542e1e(0x324)])return;let _0x300fb4=this[_0x542e1e(0x359)][_0x542e1e(0x229)](_0x92d5ec)[_0x542e1e(0x395)]();Array[_0x542e1e(0x397)](_0x300fb4)&&_0x300fb4['length']>0x0&&this[_0x542e1e(0x2e2)](_0x300fb4);}[_0x206259(0x246)](){this['_online']=!0x1;}};dn=q([K(0x2,_0xb8a7b6(_0x59fba4)),K(0x3,_0xb8a7b6(sn)),K(0x4,_0xb8a7b6(_0x14dfef)),K(0x5,_0xb8a7b6(un)),K(0x6,_0x4e87b4),K(0x7,_0x2d5bc6),K(0x8,_0x498ceb)],dn);const fn=()=>{let _0x512ffa=[],_0x77da6e=!0x1;return _0xd29646=>{const _0xe62c78=_0x4885;_0x512ffa[_0xe62c78(0x265)](_0xd29646),_0x77da6e||(_0x77da6e=!0x0,setTimeout(()=>{_0x512ffa['forEach'](_0x271e21=>_0x271e21()),_0x512ffa=[],_0x77da6e=!0x1;}));};};let pn=class extends _0x44d0b2{get[_0x206259(0x2af)](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){const _0x3bbf16=_0x206259;return this[_0x3bbf16(0x3c5)][_0x3bbf16(0x372)]();}constructor(_0xb5d557,_0x1abe12,_0x4d2fcc,_0x1605dd,_0x2b5b94,_0x4223e2,_0x13e7fc,_0x40e225){const _0x347576=_0x206259;super(),this[_0x347576(0x324)]=_0xb5d557,this['_session']=_0x1abe12,this['_injector']=_0x4d2fcc,this[_0x347576(0x284)]=_0x1605dd,this[_0x347576(0x38c)]=_0x2b5b94,this[_0x347576(0x248)]=_0x4223e2,this['_commandService']=_0x13e7fc,this[_0x347576(0x336)]=_0x40e225,G(this,_0x347576(0x374),!0x1),G(this,_0x347576(0x2ee),!0x1),G(this,'_cursorInfo$',new _0x3f7448(new Map())),G(this,_0x347576(0x327),this[_0x347576(0x2ce)]['asObservable']()),G(this,_0x347576(0x3c5),new _0x3f7448([])),G(this,_0x347576(0x281),this[_0x347576(0x3c5)][_0x347576(0x217)](_0x3352de(0x12c))),G(this,_0x347576(0x2e2),_0x4e5741((_0x6b78c3,_0x536f7f)=>{const _0x48af6a=_0x347576;let _0x39fb1c={'eventID':_0x12ec4a['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x48af6a(0x26a)]['getMemberID'](),'selection':_0x551eee(_0x6b78c3,_0x536f7f[_0x48af6a(0x390)])}};this[_0x48af6a(0x26a)]['send'](_0x39fb1c,this[_0x48af6a(0x324)]);},0x64));}['dispose'](){const _0x969d64=_0x206259;super[_0x969d64(0x29b)](),this[_0x969d64(0x2ce)][_0x969d64(0x2ed)](new Map()),this[_0x969d64(0x2ce)][_0x969d64(0x3f7)](),this['_roomMembers$'][_0x969d64(0x2ed)]([]),this['_roomMembers$'][_0x969d64(0x3f7)]();}[_0x206259(0x2e0)](){const _0x20db40=_0x206259;this[_0x20db40(0x2ee)]||(this[_0x20db40(0x2ee)]=!0x0,this['_session'][_0x20db40(0x2e6)][_0x20db40(0x217)](_0x384030(this[_0x20db40(0x273)]))[_0x20db40(0x385)](_0x379b04=>{const _0x334220=_0x20db40;_0x379b04===_0x2457ac['ONLINE']?this[_0x334220(0x3e7)]():this[_0x334220(0x246)]();}),this['_session'][_0x20db40(0x393)][_0x20db40(0x217)](_0x384030(this[_0x20db40(0x273)]))[_0x20db40(0x385)](_0x23af4c=>{const _0x4cc4e4=_0x20db40;let _0x408d38=_0x23af4c[_0x4cc4e4(0x274)];_0x408d38===_0x12ec4a[_0x4cc4e4(0x383)]&&this[_0x4cc4e4(0x1ff)](_0x23af4c),_0x408d38===_0x12ec4a[_0x4cc4e4(0x3d4)]&&this[_0x4cc4e4(0x28d)](_0x23af4c);}),this['_onRefRangeChange'](),this[_0x20db40(0x228)](this['_commandService'][_0x20db40(0x319)](_0xe8cd7f=>{const _0x46ef6a=_0x20db40;if(this[_0x46ef6a(0x374)]&&_0xe8cd7f['id']===_0x3f70f2['id']&&_0xe8cd7f[_0x46ef6a(0x351)]['unitId']===this[_0x46ef6a(0x324)]){let _0x69d9ef=_0xe8cd7f['params'];this['_updateLocalCursor'](_0x69d9ef[_0x46ef6a(0x32b)],_0x69d9ef[_0x46ef6a(0x225)][0x0]);}})));}[_0x206259(0x1ff)](_0x3cf99b){const _0x582553=_0x206259;var _0xb02f7a,_0x4995a1;let {memberID:_0x103159,selection:_0x29142a}=_0x3cf99b[_0x582553(0x3ec)],{sheetName:_0x1ab0a7,range:_0x15691e}=_0x3eb8fa(_0x29142a),_0x3a84a2={'name':(_0xb02f7a=(_0x4995a1=this[_0x582553(0x38c)][_0x582553(0x29f)](this[_0x582553(0x324)],_0x103159))==null?void 0x0:_0x4995a1['name'])==null?_0x582553(0x277):_0xb02f7a,'range':this[_0x582553(0x347)](_0x1ab0a7,_0x15691e),'sheetID':_0x1ab0a7,'color':this[_0x582553(0x284)][_0x582553(0x39a)](_0x103159),'selection':_0x29142a},_0x3a6bd5=this[_0x582553(0x2af)];_0x3a6bd5['set'](_0x103159,_0x3a84a2),this[_0x582553(0x2ce)][_0x582553(0x2ed)](_0x3a6bd5);}[_0x206259(0x28d)](_0x15acb9){const _0x3f1b56=_0x206259;let {memberID:_0x277e0f}=_0x15acb9[_0x3f1b56(0x3ec)],_0x2a2097=this['cursorInfo'];_0x2a2097[_0x3f1b56(0x3fd)](_0x277e0f),this[_0x3f1b56(0x2ce)][_0x3f1b56(0x2ed)](_0x2a2097);}[_0x206259(0x347)](_0x1910b5,_0x99569c){const _0x37d3dd=_0x206259;var _0x314600;let _0x91bb0b=(_0x314600=this[_0x37d3dd(0x248)][_0x37d3dd(0x213)](this[_0x37d3dd(0x324)]))==null||(_0x314600=_0x314600[_0x37d3dd(0x2b6)](_0x1910b5))==null?void 0x0:_0x314600[_0x37d3dd(0x3ac)]();return(_0x91bb0b==null?void 0x0:_0x91bb0b[_0x37d3dd(0x400)](_0x2b9f19=>_0x25bacd['contains'](_0x2b9f19,_0x99569c)))||_0x99569c;}['_onRefRangeChange'](){const _0x14a5ca=_0x206259;let _0x1ca747=new _0x540fea(),_0x1031b3=fn(),_0x5890dd=()=>{const _0x1aa3ee=_0x4885;_0x1ca747[_0x1aa3ee(0x29b)]();let _0x2db3e6=(_0x2fae4f,_0x1edc59,_0x39b877,_0x58a05d)=>{const _0x3f84ec=_0x1aa3ee;let _0x20d4e0=[];switch(_0x2fae4f['id']){case _0xba447[_0x3f84ec(0x2e1)]:_0x20d4e0=_0x517c5a(_0x2fae4f,_0x58a05d);break;case _0xba447['DeleteRangeMoveUpCommandId']:_0x20d4e0=_0x4ddcad(_0x2fae4f,_0x58a05d);break;case _0xba447['InsertColCommandId']:_0x20d4e0=_0x4e3dcb(_0x2fae4f,_0x58a05d);break;case _0xba447['InsertRangeMoveDownCommandId']:_0x20d4e0=_0x21e2e7(_0x2fae4f,_0x58a05d);break;case _0xba447[_0x3f84ec(0x300)]:_0x20d4e0=_0x10b9dc(_0x2fae4f,_0x58a05d);break;case _0xba447[_0x3f84ec(0x2b8)]:_0x20d4e0=_0x2bbd43(_0x2fae4f,_0x58a05d);break;case _0xba447['MoveRangeCommandId']:_0x20d4e0=_0x18f08b(_0x2fae4f,_0x58a05d);break;case _0xba447[_0x3f84ec(0x39c)]:_0x20d4e0=_0x20ac72(_0x2fae4f,_0x58a05d);break;case _0xba447[_0x3f84ec(0x321)]:_0x20d4e0=_0x5c1a91(_0x2fae4f,_0x58a05d);break;}let _0x4e8639=_0xf2e426(_0x20d4e0,_0x58a05d),_0x17ab2c=this['cursorInfo'][_0x3f84ec(0x229)](_0x1edc59);if(_0x17ab2c&&_0x4e8639){let _0x3ee938={..._0x17ab2c,'range':_0x4e8639};this['cursorInfo']['set'](_0x1edc59,_0x3ee938),_0x1031b3(()=>{const _0x371982=_0x3f84ec;let _0x2f7744=this[_0x371982(0x336)][_0x371982(0x309)](_0x4e8639,_0x4e58e8=>(_0x2f7744['dispose'](),_0x2db3e6(_0x4e58e8,_0x1edc59,_0x39b877,_0x4e8639)));_0x1ca747[_0x371982(0x307)](_0x2f7744);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1aa3ee(0x27a)]((_0x58d220,_0x55a216)=>{const _0x2d80ba=_0x1aa3ee;let {range:_0x1e401d,sheetID:_0x7c5229}=_0x58d220,_0x6d19af=this[_0x2d80ba(0x336)][_0x2d80ba(0x309)](_0x1e401d,_0x3185e4=>(_0x6d19af[_0x2d80ba(0x29b)](),_0x2db3e6(_0x3185e4,_0x55a216,_0x7c5229,_0x1e401d)));_0x1ca747[_0x2d80ba(0x307)](_0x6d19af);});};this['disposeWithMe'](_0x57ab4c(this[_0x14a5ca(0x2ce)][_0x14a5ca(0x385)](()=>{_0x5890dd();})));}['_toggleOnline'](){const _0x2da2e9=_0x206259;var _0x4a4baf,_0x3f9df1;if(this[_0x2da2e9(0x374)]=!0x0,((_0x4a4baf=this[_0x2da2e9(0x248)]['getFocusedUnit']())==null?void 0x0:_0x4a4baf['getUnitId']())!==this[_0x2da2e9(0x324)])return;let _0x46744f=(_0x3f9df1=this['_injector']['get'](_0x299afb)[_0x2da2e9(0x239)]())==null?void 0x0:_0x3f9df1[0x0],_0x4d28ce=this['_univerInstanceService'][_0x2da2e9(0x335)](_0x13410e[_0x2da2e9(0x218)])['getActiveSheet']();_0x46744f&&_0x4d28ce&&this[_0x2da2e9(0x2e2)](_0x4d28ce[_0x2da2e9(0x405)](),_0x46744f);}['_toggleOffline'](){const _0xf5b41e=_0x206259;this[_0xf5b41e(0x374)]=!0x1;}};pn=q([K(0x2,_0xb8a7b6(_0x59fba4)),K(0x3,_0xb8a7b6(sn)),K(0x4,_0xb8a7b6(_0x14dfef)),K(0x5,_0x2d5bc6),K(0x6,_0x498ceb),K(0x7,_0xb8a7b6(_0x35ff35))],pn);let X=class extends _0x44d0b2{constructor(_0x214402,_0x1f8610,_0x14dd43){const _0x37b789=_0x206259;super(),this['_univerInstanceService']=_0x214402,this[_0x37b789(0x359)]=_0x1f8610,this['_collabSessionService']=_0x14dd43,G(this,_0x37b789(0x250),new Map()),G(this,_0x37b789(0x282),new _0x24e89a()),this[_0x37b789(0x2ee)]();}[_0x206259(0x29b)](){const _0x2a5b76=_0x206259;super[_0x2a5b76(0x29b)](),this[_0x2a5b76(0x282)][_0x2a5b76(0x3f7)](),this[_0x2a5b76(0x250)]['forEach'](_0x43e4dc=>_0x43e4dc[_0x2a5b76(0x29b)]());}[_0x206259(0x408)](_0x37697b){const _0x46a1b9=_0x206259;return this[_0x46a1b9(0x250)]['has'](_0x37697b)?this[_0x46a1b9(0x250)][_0x46a1b9(0x229)](_0x37697b)[_0x46a1b9(0x327)]:this[_0x46a1b9(0x282)][_0x46a1b9(0x217)](_0x36b7c5(_0x32dc50=>_0x32dc50[_0x46a1b9(0x324)]===_0x37697b),_0x29a006(_0x2cba8e=>_0x2cba8e[_0x46a1b9(0x327)]));}[_0x206259(0x2ee)](){const _0x36c117=_0x206259;this[_0x36c117(0x248)][_0x36c117(0x264)](_0x13410e[_0x36c117(0x218)])['pipe'](_0x384030(this[_0x36c117(0x273)]))[_0x36c117(0x385)](async _0x4cf3b9=>{const _0x203204=_0x36c117;let _0x451757=_0x4cf3b9[_0x203204(0x304)]['getUnitId'](),_0x2862c2=await this[_0x203204(0x23c)](_0x451757);this['_entityInit$']['next'](_0x2862c2),this[_0x203204(0x250)][_0x203204(0x3a3)](_0x451757,_0x2862c2);}),this[_0x36c117(0x248)][_0x36c117(0x264)](_0x13410e[_0x36c117(0x2f6)])[_0x36c117(0x217)](_0x384030(this[_0x36c117(0x273)]))[_0x36c117(0x217)](_0x36b7c5(_0x57e7b6=>!_0x57e7b6['unit'][_0x36c117(0x2f0)]()['startsWith']('__')))['subscribe'](async _0x1efe34=>{const _0x3baf39=_0x36c117;let {unit:_0x49dbb6}=_0x1efe34,_0x5ce8d1=_0x49dbb6['getUnitId'](),_0x221caf=await this[_0x3baf39(0x209)](_0x5ce8d1);this['_entityInit$'][_0x3baf39(0x2ed)](_0x221caf),this['_entities'][_0x3baf39(0x3a3)](_0x5ce8d1,_0x221caf);}),_0x433e18(this[_0x36c117(0x248)]['getTypeOfUnitDisposed$'](_0x13410e[_0x36c117(0x2f6)]),this['_univerInstanceService'][_0x36c117(0x287)](_0x13410e[_0x36c117(0x218)]))[_0x36c117(0x217)](_0x384030(this[_0x36c117(0x273)]))[_0x36c117(0x385)](_0xa8098c=>{const _0x2479bf=_0x36c117;let _0x38745c=_0xa8098c[_0x2479bf(0x2f0)](),_0x4be4dc=this[_0x2479bf(0x250)][_0x2479bf(0x229)](_0x38745c);_0x4be4dc&&(_0x4be4dc[_0x2479bf(0x29b)](),this['_entities'][_0x2479bf(0x3fd)](_0x38745c));});}async[_0x206259(0x23c)](_0x1884d9){const _0x6e9b12=_0x206259;let _0x5f42ce=await this[_0x6e9b12(0x278)][_0x6e9b12(0x3b2)](_0x1884d9),_0x520883=this[_0x6e9b12(0x359)][_0x6e9b12(0x3d3)](pn,_0x1884d9,_0x5f42ce);return _0x520883[_0x6e9b12(0x2e0)](),_0x520883;}async[_0x206259(0x209)](_0x3c1e02){const _0x264612=_0x206259;let _0x339c67=await this['_collabSessionService'][_0x264612(0x3b2)](_0x3c1e02),_0x287267=this[_0x264612(0x359)]['createInstance'](dn,_0x3c1e02,_0x339c67);return _0x287267[_0x264612(0x2e0)](),_0x287267;}};X=q([K(0x0,_0x2d5bc6),K(0x1,_0xb8a7b6(_0x59fba4)),K(0x2,_0xb8a7b6(_0x52b1cf))],X);function mn(_0x48195c,_0x241792){const _0x26a96c=_0x206259;var _0x4d6e35,_0x587c7b,_0x5ba115;let {radius:_0xfc4175,width:_0x371fbd,height:_0x1a9b10}=_0x241792;_0xfc4175=(_0x4d6e35=_0xfc4175)==null?0x0:_0x4d6e35,_0x371fbd=(_0x587c7b=_0x371fbd)==null?0x1e:_0x587c7b,_0x1a9b10=(_0x5ba115=_0x1a9b10)==null?0x1e:_0x5ba115;let _0x584499=0x0,_0x4ebf0e=0x0,_0xfff5d7=0x0;_0x584499=_0x4ebf0e=_0xfff5d7=Math['min'](_0xfc4175,_0x371fbd/0x2,_0x1a9b10/0x2),_0x48195c[_0x26a96c(0x2fc)](),_0x48195c[_0x26a96c(0x2c2)](_0x584499,0x0),_0x48195c[_0x26a96c(0x36c)](_0x371fbd-_0x4ebf0e,0x0),_0x48195c['arc'](_0x371fbd-_0x4ebf0e,_0x4ebf0e,_0x4ebf0e,Math['PI']*0x3/0x2,0x0,!0x1),_0x48195c[_0x26a96c(0x36c)](_0x371fbd,_0x1a9b10-_0xfff5d7),_0x48195c[_0x26a96c(0x3d9)](_0x371fbd-_0xfff5d7,_0x1a9b10-_0xfff5d7,_0xfff5d7,0x0,Math['PI']/0x2,!0x1),_0x48195c['lineTo'](0x0,_0x1a9b10),_0x48195c['lineTo'](0x0,_0x584499),_0x48195c[_0x26a96c(0x3d9)](_0x584499,_0x584499,_0x584499,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x48195c[_0x26a96c(0x382)](),_0x241792['fill']&&(_0x48195c['save'](),_0x48195c[_0x26a96c(0x38e)]=_0x241792[_0x26a96c(0x332)],_0x241792['fillRule']===_0x26a96c(0x31c)?_0x48195c[_0x26a96c(0x332)](_0x26a96c(0x31c)):_0x48195c[_0x26a96c(0x332)](),_0x48195c[_0x26a96c(0x33c)]());}var hn=class e extends _0x382371{constructor(_0x5b507d,_0x2852ea){const _0x44c3b5=_0x206259;super(_0x5b507d,_0x2852ea),G(this,'color',void 0x0),G(this,_0x44c3b5(0x2b7),void 0x0),this[_0x44c3b5(0x3e2)]=_0x2852ea==null?void 0x0:_0x2852ea['color'],this[_0x44c3b5(0x2b7)]=_0x2852ea==null?void 0x0:_0x2852ea[_0x44c3b5(0x2b7)];}static['drawWith'](_0x48d4a7,_0x684a27){const _0x11a2c8=_0x206259;let {text:_0x4899e6,color:_0x258f33}=_0x684a27;_0x48d4a7['save'](),_0x48d4a7[_0x11a2c8(0x294)]=_0x11a2c8(0x270);let _0x1e10c2=_0x48d4a7[_0x11a2c8(0x308)](_0x4899e6)[_0x11a2c8(0x33e)];if(mn(_0x48d4a7,{'height':0x14,'radius':0x4,'width':Math[_0x11a2c8(0x234)](_0x1e10c2+0x8,0xc8),'fill':_0x258f33,'evented':!0x1}),_0x48d4a7[_0x11a2c8(0x38e)]='#FFF',_0x1e10c2>0xc0){let _0x4b7d90='',_0x348136=0x0;for(let _0x222110 of _0x4899e6){let _0x2f5f88=_0x48d4a7['measureText'](_0x222110)['width'];if(_0x348136+_0x2f5f88<=0xc0-_0x48d4a7[_0x11a2c8(0x308)]('...')[_0x11a2c8(0x33e)])_0x4b7d90+=_0x222110,_0x348136+=_0x2f5f88;else{_0x4b7d90+=_0x11a2c8(0x343);break;}}_0x48d4a7[_0x11a2c8(0x3a5)](_0x4b7d90,0x4,0xf);}else _0x48d4a7['fillText'](_0x4899e6,0x4,0xf);_0x48d4a7[_0x11a2c8(0x33c)]();}['_draw'](_0x47654b){const _0xe1117b=_0x206259;e[_0xe1117b(0x2d6)](_0x47654b,this);}};const gn='collab-text-anchor-';var _n=class{constructor(_0xadf26a,_0x5e1346,_0x971ded,_0x24ec75){const _0x1633f3=_0x206259;this[_0x1633f3(0x275)]=_0xadf26a,this[_0x1633f3(0x215)]=_0x5e1346,this[_0x1633f3(0x25e)]=_0x971ded,this[_0x1633f3(0x204)]=_0x24ec75,G(this,_0x1633f3(0x29c),[]),G(this,_0x1633f3(0x3a2),null),G(this,_0x1633f3(0x391),null),G(this,_0x1633f3(0x2f4),null),G(this,_0x1633f3(0x366),null),G(this,_0x1633f3(0x272),null),this[_0x1633f3(0x2da)]();}set[_0x206259(0x35e)](_0x314dcd){const _0x531b01=_0x206259;_0x314dcd?(this[_0x531b01(0x2f4)]&&this[_0x531b01(0x2f4)]['hide'](),this[_0x531b01(0x391)]&&this['_textBubble'][_0x531b01(0x2f1)]()):(this[_0x531b01(0x2f4)]&&this[_0x531b01(0x2f4)]['show'](),this[_0x531b01(0x391)]&&this['_textBubble'][_0x531b01(0x3b4)]());}[_0x206259(0x29b)](){const _0x5e9dd6=_0x206259;for(let _0x44f428 of this[_0x5e9dd6(0x29c)])_0x44f428[_0x5e9dd6(0x29b)]();this[_0x5e9dd6(0x391)]&&this[_0x5e9dd6(0x391)][_0x5e9dd6(0x29b)](),this['_anchorDot']&&this[_0x5e9dd6(0x2f4)][_0x5e9dd6(0x29b)](),this[_0x5e9dd6(0x3a2)]&&this[_0x5e9dd6(0x3a2)][_0x5e9dd6(0x29b)](),this[_0x5e9dd6(0x272)]&&this[_0x5e9dd6(0x272)]();}['_render'](){const _0x1bb402=_0x206259;let {_docSkeleton:_0xe487c8,_document:_0xf3bf48}=this,{color:_0x380990,name:_0x20173d,ranges:_0x409603}=this[_0x1bb402(0x275)],_0x37a7a8=_0xf3bf48[_0x1bb402(0x2c6)](),{docsLeft:_0x8c5caa,docsTop:_0x1a5086}=_0x37a7a8,_0x1202ae=new _0x48ce80(_0x37a7a8,_0xe487c8);for(let {startOffset:_0x54cb18,endOffset:_0x54cfcb,rangeType:_0x39f22a,segmentId:_0x5a1fc9,segmentPage:_0x240fac,collapsed:_0x264f9,isActive:_0x5297c6}of _0x409603){let _0x39e7f6=_0xe487c8[_0x1bb402(0x1ee)](_0x54cb18,!0x0,_0x5a1fc9,_0x240fac),_0x1e3451=_0xe487c8[_0x1bb402(0x1ee)](_0x54cfcb,!0x0,_0x5a1fc9,_0x240fac);if(_0x1e3451==null&&(_0x1e3451=_0xe487c8['findNodePositionByCharIndex'](_0x54cfcb-0x1,!0x1,_0x5a1fc9,_0x240fac)),_0x5297c6){let {contentBoxPointGroup:_0x7d9e27}=_0x1202ae[_0x1bb402(0x256)](_0x1e3451,_0x1e3451);if(_0x7d9e27[_0x1bb402(0x35f)]===0x0)continue;this[_0x1bb402(0x32a)](_0x380990,_0x7d9e27,_0x8c5caa,_0x1a5086,_0x20173d),this[_0x1bb402(0x272)]=this[_0x1bb402(0x37a)]();}if(_0x39e7f6&&_0x1e3451){if(_0x39f22a===_0x256699[_0x1bb402(0x283)]){var _0x3b4bd6;let {pointGroup:_0x1146d6}=(_0x3b4bd6=new _0xcd80e4(_0x37a7a8,_0xe487c8)[_0x1bb402(0x256)](_0x39e7f6,_0x1e3451))==null?{}:_0x3b4bd6;if(_0x1146d6==null||_0x1146d6['length']===0x0)continue;this[_0x1bb402(0x31b)](_0x380990,_0x1146d6,_0x8c5caa,_0x1a5086);}else{if(!_0x264f9){let {borderBoxPointGroup:_0x61a4bd}=_0x1202ae['getRangePointData'](_0x39e7f6,_0x1e3451);if(_0x61a4bd[_0x1bb402(0x35f)]===0x0)continue;this[_0x1bb402(0x24b)](_0x380990,_0x61a4bd,_0x8c5caa,_0x1a5086);}}}}}[_0x206259(0x32a)](_0x3c7d43,_0x3751af,_0x58ea94,_0x333e59,_0x21748d){const _0x511d10=_0x206259;let {left:_0x2a3418,top:_0x2be4f2,height:_0x5061db}=this['_getAnchorBounding'](_0x3751af),_0x1927ef=1.5/this[_0x511d10(0x358)](),_0x1beb35=new _0x50d2ba(gn+_0x555907(0x6),{'left':_0x2a3418+_0x58ea94-_0x1927ef,'top':_0x2be4f2+_0x333e59,'height':_0x5061db,'width':1.5,'fill':_0x3c7d43||_0x2e4331(_0x368165['black'],0x0),'strokeWidth':_0x1927ef,'stroke':_0x511d10(0x232),'evented':!0x0});this[_0x511d10(0x3a2)]=_0x1beb35,this[_0x511d10(0x215)][_0x511d10(0x212)](_0x1beb35,_0x45622d);let _0x39a8a5=new _0x50d2ba(gn+_0x555907(0x6),{'left':_0x2a3418+_0x58ea94-_0x1927ef,'top':_0x2be4f2+_0x333e59-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x3c7d43||_0x2e4331(_0x368165[_0x511d10(0x36d)],0x0),'strokeWidth':0x0,'stroke':_0x3c7d43||_0x2e4331(_0x368165[_0x511d10(0x36d)],0x0),'evented':!0x1});this[_0x511d10(0x2f4)]=_0x39a8a5,this[_0x511d10(0x215)]['addObject'](_0x39a8a5,_0x45622d);let _0x17c642=new hn(gn+_0x555907(0x6),{'left':_0x2a3418+_0x58ea94-_0x1927ef,'top':_0x2be4f2+_0x333e59-0x14,'text':_0x21748d,'color':_0x3c7d43});this[_0x511d10(0x391)]=_0x17c642,this[_0x511d10(0x215)]['addObject'](_0x17c642,_0x45622d),this[_0x511d10(0x35e)]=!0x1;}[_0x206259(0x37a)](){const _0x327329=_0x206259;let _0xb5d430=this[_0x327329(0x3a2)][_0x327329(0x249)][_0x327329(0x3c4)](()=>{const _0x25cf65=_0x327329;this[_0x25cf65(0x35e)]=!0x0;}),_0xf0b1e9=this['_anchor'][_0x327329(0x367)]['subscribeEvent'](()=>{const _0xb290c9=_0x327329;this[_0xb290c9(0x366)]&&clearTimeout(this['_hideTimer']),this[_0xb290c9(0x366)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x45d65c=_0x327329;_0xb5d430[_0x45d65c(0x36a)](),_0xf0b1e9[_0x45d65c(0x36a)]();};}[_0x206259(0x24b)](_0x32e832,_0x110cf5,_0x31e0c8,_0x4f880c){const _0x13fb3d=_0x206259;let _0x16e485=0.2,_0x554a21=new _0x538f47(_0x32e832)[_0x13fb3d(0x203)](_0x16e485)['toRgbString'](),_0x307293=new _0x1cc85d(_0x13fb3d(0x1fb)+_0x555907(0x6),{'pointsGroup':_0x110cf5,'fill':_0x554a21||_0x2e4331(_0x368165[_0x13fb3d(0x36d)],_0x16e485),'left':_0x31e0c8,'top':_0x4f880c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x13fb3d(0x29c)][_0x13fb3d(0x265)](_0x307293),this['_scene'][_0x13fb3d(0x212)](_0x307293,_0x45622d);}[_0x206259(0x31b)](_0x17350a,_0x1170fa,_0x10c1ce,_0x1840cf){const _0x38fdd6=_0x206259;let _0x13aab7=0.2,_0x52d905=new _0x538f47(_0x17350a)[_0x38fdd6(0x203)](_0x13aab7)[_0x38fdd6(0x33a)](),_0x256ed3=new _0x1cc85d('collab-rect-range-'+_0x555907(0x6),{'pointsGroup':_0x1170fa,'fill':_0x52d905||_0x2e4331(_0x368165[_0x38fdd6(0x36d)],_0x13aab7),'left':_0x10c1ce,'top':_0x1840cf,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x38fdd6(0x29c)][_0x38fdd6(0x265)](_0x256ed3),this[_0x38fdd6(0x215)][_0x38fdd6(0x212)](_0x256ed3,_0x45622d);}[_0x206259(0x3f4)](_0x85453a){let _0x11c975=_0x85453a[0x0],_0x1eaffe=_0x11c975[0x0],_0x58bbaf=_0x11c975[0x2],{x:_0x474179,y:_0xb81f87}=_0x1eaffe,{x:_0x7fd6ed,y:_0x2fa136}=_0x58bbaf;return{'left':_0x474179,'top':_0xb81f87,'width':_0x7fd6ed-_0x474179,'height':_0x2fa136-_0xb81f87};}[_0x206259(0x358)](){const _0x3ac2cb=_0x206259;let {scaleX:_0x3a8cad,scaleY:_0x28f5a5}=this['_scene']['getAncestorScale']();return Math[_0x3ac2cb(0x20a)](_0x3a8cad,_0x28f5a5);}};let vn=class extends _0x44d0b2{constructor(_0x4b8ea4,_0x22bf23,_0x4c64a7,_0x501b99,_0x788ef8){const _0x2bbe59=_0x206259;super(),this[_0x2bbe59(0x39f)]=_0x4b8ea4,this[_0x2bbe59(0x22a)]=_0x22bf23,this[_0x2bbe59(0x255)]=_0x4c64a7,this[_0x2bbe59(0x257)]=_0x501b99,this[_0x2bbe59(0x1f1)]=_0x788ef8,G(this,_0x2bbe59(0x37e),[]),G(this,_0x2bbe59(0x30d),[]),this['_init']();}[_0x206259(0x2ee)](){const _0x586bdd=_0x206259;let _0x41268a=this['_context'][_0x586bdd(0x3c2)],_0x5d39a1=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x3e361d([this[_0x586bdd(0x255)]['getCollabCursors$'](_0x41268a),this[_0x586bdd(0x1f1)][_0x586bdd(0x295)]])['pipe'](_0x52d48e(([_0x1e5b33,_0x524ac0])=>({'skeleton':_0x5d39a1[_0x586bdd(0x24f)](),'cursors':[..._0x1e5b33[_0x586bdd(0x3b8)]()]['flatMap'](_0x572f12=>({..._0x572f12,'color':this[_0x586bdd(0x1f1)][_0x586bdd(0x251)](_0x572f12[_0x586bdd(0x3e2)])}))})))['subscribe'](_0x72a4f2=>{const _0x6d4d11=_0x586bdd;if(this[_0x6d4d11(0x403)](),_0x72a4f2){let {skeleton:_0x3f5406,cursors:_0x3ea7e9}=_0x72a4f2;this['_updateCollabCursors'](_0x3f5406,_0x3ea7e9);}})),this[_0x586bdd(0x2ea)](),this[_0x586bdd(0x2d0)]();}[_0x206259(0x386)](_0x433e12,_0x40f44d){const _0x1ca413=_0x206259;let {scene:_0x1ac48a,mainComponent:_0x174dca}=this['_context'],_0x23cb6f=_0x40f44d[_0x1ca413(0x3ee)](_0x5d2d5c=>new _n(_0x5d2d5c,_0x1ac48a,_0x433e12,_0x174dca));this[_0x1ca413(0x37e)]=_0x23cb6f,this[_0x1ca413(0x30d)]=_0x40f44d;}[_0x206259(0x38a)](){const _0x3bcd00=_0x206259;this['_removeCollabCursors']();let {scene:_0xa11b81,mainComponent:_0x568cb4}=this[_0x3bcd00(0x39f)],_0x4e6bc1=this[_0x3bcd00(0x22a)][_0x3bcd00(0x24f)](),_0x3ebd23=this[_0x3bcd00(0x30d)][_0x3bcd00(0x3ee)](_0x3adc89=>new _n(_0x3adc89,_0xa11b81,_0x4e6bc1,_0x568cb4));this['_cursorShapes']=_0x3ebd23;}['_removeCollabCursors'](){const _0x38ab4c=_0x206259;this[_0x38ab4c(0x37e)]['forEach'](_0x4ed6ad=>_0x4ed6ad[_0x38ab4c(0x29b)]()),this[_0x38ab4c(0x37e)]=[];}[_0x206259(0x2d0)](){const _0x13c447=_0x206259;let _0x150453=[_0x3e6d75['id']];this['disposeWithMe'](this[_0x13c447(0x257)][_0x13c447(0x319)](_0x4a1bec=>{const _0x2e918f=_0x13c447;_0x150453[_0x2e918f(0x2be)](_0x4a1bec['id'])&&_0x4a1bec[_0x2e918f(0x351)][_0x2e918f(0x3c2)]===this[_0x2e918f(0x39f)][_0x2e918f(0x3c2)]&&this[_0x2e918f(0x38a)]();}));}[_0x206259(0x2ea)](){const _0x2ae403=_0x206259;this[_0x2ae403(0x228)](_0x55bf58(this[_0x2ae403(0x39f)]['engine'][_0x2ae403(0x2ec)])[_0x2ae403(0x217)](_0x162ac8(_0x509321=>_0x509321[_0x2ae403(0x313)]===_0x48f8e3[_0x2ae403(0x3bc)]),_0x58100d(0x10))[_0x2ae403(0x385)](()=>{this['_refreshCollabCursors']();}));}};vn=q([K(0x1,_0xb8a7b6(_0x47a3f5)),K(0x2,_0xb8a7b6(X)),K(0x3,_0x498ceb),K(0x4,_0xb8a7b6(_0x2d2a1d))],vn);var yn=class extends _0x382371{constructor(_0xcb5a25,_0x12766b){const _0x109b0b=_0x206259;if(super(_0xcb5a25,_0x12766b),G(this,'_color',void 0x0),G(this,_0x109b0b(0x305),!0x1),G(this,_0x109b0b(0x3e1),void 0x0),G(this,_0x109b0b(0x2d2),''),G(this,_0x109b0b(0x3ad),_0x109b0b(0x3cd)),G(this,_0x109b0b(0x2c5),void 0x0),G(this,_0x109b0b(0x370),void 0x0),G(this,_0x109b0b(0x26b),void 0x0),G(this,'_highlightSecond',0x4),G(this,_0x109b0b(0x271),void 0x0),G(this,_0x109b0b(0x207),void 0x0),G(this,'_isBlinkVisible',!0x0),G(this,_0x109b0b(0x38d),0x0),_0x12766b){var _0x5df637;if(this['setShapeProps'](_0x12766b),_0x12766b[_0x109b0b(0x3f5)]&&((_0x5df637=_0x12766b[_0x109b0b(0x1fe)])==null?this[_0x109b0b(0x342)]:_0x5df637)){var _0x1d806e;this[_0x109b0b(0x3cc)]((_0x1d806e=_0x12766b[_0x109b0b(0x1fe)])==null?this[_0x109b0b(0x342)]:_0x1d806e);}}this['onPointerEnter$'][_0x109b0b(0x3c4)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x109b0b(0x367)][_0x109b0b(0x3c4)](()=>this['setShapeProps']({'hovered':!0x1}));}['setOffsetY'](_0xbdb9c0){const _0x39eddf=_0x206259;this[_0x39eddf(0x38d)]=_0xbdb9c0;}[_0x206259(0x27e)](_0x390d61){const _0x5a5f30=_0x206259;var _0x3c85ee,_0x4ae0a4,_0x4b1e9b,_0x42add6,_0x28c96b,_0x1345a8,_0x295a54;this[_0x5a5f30(0x2aa)]=(_0x3c85ee=_0x390d61[_0x5a5f30(0x3e2)])==null?this['_color']:_0x3c85ee,this[_0x5a5f30(0x305)]=(_0x4ae0a4=_0x390d61[_0x5a5f30(0x2b3)])==null?this['_hovered']:_0x4ae0a4,this['_range']=(_0x4b1e9b=_0x390d61[_0x5a5f30(0x390)])==null?this[_0x5a5f30(0x3e1)]:_0x4b1e9b,this['_name']=(_0x42add6=_0x390d61['name'])==null?this[_0x5a5f30(0x2d2)]:_0x42add6,this[_0x5a5f30(0x3ad)]=(_0x28c96b=_0x390d61[_0x5a5f30(0x2d9)])==null?this[_0x5a5f30(0x3ad)]:_0x28c96b,this[_0x5a5f30(0x2c5)]=(_0x1345a8=_0x390d61[_0x5a5f30(0x369)])==null?this['_backgroundColor']:_0x1345a8,this['_showText']=(_0x295a54=_0x390d61[_0x5a5f30(0x302)])==null?this[_0x5a5f30(0x370)]:_0x295a54,_0x390d61[_0x5a5f30(0x1fe)]!==void 0x0&&(this[_0x5a5f30(0x342)]=_0x390d61[_0x5a5f30(0x1fe)]),_0x390d61['highlight']!==void 0x0&&(this[_0x5a5f30(0x26b)]=_0x390d61[_0x5a5f30(0x3f5)]),_0x390d61['offsetY']!==void 0x0&&(this['_offsetY']=_0x390d61[_0x5a5f30(0x3ca)]),this[_0x5a5f30(0x27b)]({'width':_0x390d61[_0x5a5f30(0x33e)],'height':_0x390d61[_0x5a5f30(0x23d)]});}[_0x206259(0x2e4)](_0x3eb769){const _0x507caf=_0x206259;let {row:_0xdbbcf1,column:_0xc066e5}=_0x3eb769;if(_0xdbbcf1>=this[_0x507caf(0x3e1)]['startRow']&&_0xdbbcf1<=this[_0x507caf(0x3e1)]['endRow']&&_0xc066e5>=this[_0x507caf(0x3e1)][_0x507caf(0x3ed)]&&_0xc066e5<=this[_0x507caf(0x3e1)][_0x507caf(0x30b)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['_startBlinking'](_0x131f7d){const _0x174fc6=_0x206259;this['_stopBlinking'](),this['_isBlinkVisible']=!0x0,this['_blinkIntervalTimer']=window[_0x174fc6(0x2a8)](()=>{const _0x27bb37=_0x174fc6;this[_0x27bb37(0x267)]=!this[_0x27bb37(0x267)],this[_0x27bb37(0x363)](!0x0);},0x1f4),this['_blinkTimer']=window[_0x174fc6(0x235)](()=>{const _0xe6c242=_0x174fc6;this[_0xe6c242(0x3a6)](),this[_0xe6c242(0x267)]=!0x0,this[_0xe6c242(0x363)](!0x0);},_0x131f7d*0x3e8);}[_0x206259(0x3a6)](){const _0x1f9544=_0x206259;this['_blinkIntervalTimer']&&(window[_0x1f9544(0x21f)](this[_0x1f9544(0x207)]),this[_0x1f9544(0x207)]=void 0x0),this['_blinkTimer']&&(window[_0x1f9544(0x2d7)](this['_blinkTimer']),this[_0x1f9544(0x271)]=void 0x0);}[_0x206259(0x2e3)](_0x424fd3){return!0x1;}['dispose'](){const _0x4eee72=_0x206259;this[_0x4eee72(0x3a6)](),super[_0x4eee72(0x29b)]();}[_0x206259(0x22b)](_0x471b84){const _0x594edc=_0x206259;let _0x462a3d=this[_0x594edc(0x2aa)],_0x28532f=this[_0x594edc(0x2c5)];if(this['_highlight']&&!this[_0x594edc(0x267)]&&(_0x462a3d=this[_0x594edc(0x2bc)](this[_0x594edc(0x2aa)]),_0x28532f=this[_0x594edc(0x2c5)]?this[_0x594edc(0x2bc)](this[_0x594edc(0x2c5)]):void 0x0),_0x50d2ba[_0x594edc(0x2d6)](_0x471b84,{'width':this[_0x594edc(0x33e)],'height':this[_0x594edc(0x23d)],'strokeWidth':this[_0x594edc(0x27c)]||1.5,'stroke':_0x462a3d,'evented':!0x1,'fill':_0x28532f}),this['_hovered']||this[_0x594edc(0x370)]){var _0x1fea8a;_0x471b84[_0x594edc(0x3cf)](),_0x471b84['transform'](0x1,0x0,0x0,0x1,this[_0x594edc(0x33e)],(this['_labelPosition']===_0x594edc(0x23f)?0x0:-0x14)+((_0x1fea8a=this[_0x594edc(0x38d)])==null?0x0:_0x1fea8a)),hn[_0x594edc(0x2d6)](_0x471b84,{'text':this[_0x594edc(0x2d2)],'color':_0x462a3d}),_0x471b84[_0x594edc(0x33c)]();}}[_0x206259(0x2bc)](_0x38c0c4){const _0xcfce9b=_0x206259;return _0x38c0c4[_0xcfce9b(0x34a)]('#')?_0xcfce9b(0x3af)+Number[_0xcfce9b(0x254)](_0x38c0c4[_0xcfce9b(0x3de)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x38c0c4['slice'](0x3,0x5),0x10)+',\x20'+Number[_0xcfce9b(0x254)](_0x38c0c4['slice'](0x5,0x7),0x10)+_0xcfce9b(0x2c7):_0x38c0c4[_0xcfce9b(0x34a)](_0xcfce9b(0x3c9))?_0x38c0c4[_0xcfce9b(0x298)](/[\d.]+\)$/g,_0xcfce9b(0x357)):_0x38c0c4[_0xcfce9b(0x34a)](_0xcfce9b(0x3c1))?_0x38c0c4['replace'](_0xcfce9b(0x3c1),'rgba')[_0xcfce9b(0x298)](')',',\x200.2)'):_0x38c0c4;}};let bn=class extends _0x44d0b2{constructor(_0x3dc260,_0x236523,_0x342a1b,_0xc44d81){const _0x464fe1=_0x206259;super(),this[_0x464fe1(0x39f)]=_0x3dc260,this[_0x464fe1(0x34d)]=_0x236523,this[_0x464fe1(0x255)]=_0x342a1b,this['_themeService']=_0xc44d81,G(this,'_cursors',new Set()),G(this,_0x464fe1(0x291),null),G(this,_0x464fe1(0x3c7),null),this[_0x464fe1(0x2ee)]();}[_0x206259(0x2ee)](){const _0x1b1bc9=_0x206259;this[_0x1b1bc9(0x34d)]['currentSkeleton$'][_0x1b1bc9(0x217)](_0x2868c0(this[_0x1b1bc9(0x273)]),_0x3dc322(_0x23b0c1=>{const _0x3f45b1=_0x1b1bc9;if(_0x23b0c1){let _0x227651=_0x23b0c1[_0x3f45b1(0x2f7)];return _0x3e361d(this['_collabCursorController']['getCollabCursors$'](this[_0x3f45b1(0x39f)][_0x3f45b1(0x3c2)]),this['_themeService'][_0x3f45b1(0x295)])[_0x3f45b1(0x217)](_0x52d48e(([_0x2d47bb,_0x100ee2])=>{const _0x1da4fd=_0x3f45b1;let _0x2faf28=new Map();return _0x2d47bb[_0x1da4fd(0x27a)]((_0x5dc006,_0x5c1bad)=>{const _0x18761f=_0x1da4fd;if(_0x5dc006[_0x18761f(0x396)]===_0x227651){let _0x29f5ab={..._0x5dc006};_0x29f5ab[_0x18761f(0x3e2)]=this[_0x18761f(0x1f1)][_0x18761f(0x251)](_0x5dc006[_0x18761f(0x3e2)]),_0x2faf28[_0x18761f(0x3a3)](_0x5c1bad,_0x29f5ab);}}),{'skeleton':_0x23b0c1,'cursors':_0x2faf28};}));}return _0xd28a5f({'skeleton':null,'cursors':new Map()});}))[_0x1b1bc9(0x385)](({skeleton:_0x37cab4,cursors:_0x2432a8})=>{const _0x3d24e6=_0x1b1bc9;this[_0x3d24e6(0x403)](),_0x37cab4&&this[_0x3d24e6(0x386)](_0x37cab4,_0x2432a8);}),this[_0x1b1bc9(0x228)](this[_0x1b1bc9(0x34d)][_0x1b1bc9(0x236)][_0x1b1bc9(0x217)](_0x2868c0(this[_0x1b1bc9(0x273)]))[_0x1b1bc9(0x385)](_0x32e25d=>{const _0x19ffb0=_0x1b1bc9;var _0x11cc08;if(_0x32e25d==null)return;(_0x11cc08=this['_pointerMoveDisposable'])==null||_0x11cc08[_0x19ffb0(0x36a)](),this[_0x19ffb0(0x3c7)]=null;let {skeleton:_0x44ba27}=_0x32e25d,{scene:_0x4ab6af}=this[_0x19ffb0(0x39f)];this['_pointerMoveDisposable']=_0x4ab6af[_0x19ffb0(0x24c)][_0x19ffb0(0x3c4)](_0x4e5741(_0x114a10=>{const _0x29d4c4=_0x19ffb0;var _0x4a61ab,_0x5515da;let {offsetX:_0x216db1,offsetY:_0x6375a6}=_0x114a10,{x:_0xf7f02e,y:_0x1cd94a}=_0x4ab6af[_0x29d4c4(0x25a)](_0x579a07[_0x29d4c4(0x39e)]([_0x216db1,_0x6375a6])),{scaleX:_0x2b572c,scaleY:_0x134d8c}=_0x4ab6af['getAncestorScale'](),_0x2ecddb=_0x4ab6af[_0x29d4c4(0x3b0)](_0x3408cf[_0x29d4c4(0x2ac)]),_0x4ab46f=_0x4ab6af[_0x29d4c4(0x401)](_0x579a07[_0x29d4c4(0x39e)]([_0xf7f02e,_0x1cd94a]),_0x2ecddb),_0x5b05cd=_0x44ba27[_0x29d4c4(0x28f)](_0x216db1,_0x6375a6,_0x2b572c,_0x134d8c,_0x4ab46f);((_0x4a61ab=this[_0x29d4c4(0x291)])==null?void 0x0:_0x4a61ab[_0x29d4c4(0x311)])===_0x5b05cd[_0x29d4c4(0x311)]&&((_0x5515da=this[_0x29d4c4(0x291)])==null?void 0x0:_0x5515da[_0x29d4c4(0x245)])===_0x5b05cd[_0x29d4c4(0x245)]||this[_0x29d4c4(0x30d)][_0x29d4c4(0x27a)](_0x2e1f7b=>{const _0x2f27a7=_0x29d4c4;_0x2e1f7b[_0x2f27a7(0x2e4)](_0x5b05cd);});},0x64));})),this[_0x1b1bc9(0x228)](_0x57ab4c(()=>{const _0x423942=_0x1b1bc9;var _0x271d0c;(_0x271d0c=this[_0x423942(0x3c7)])==null||_0x271d0c[_0x423942(0x36a)](),this[_0x423942(0x3c7)]=null;}));}[_0x206259(0x386)](_0x17e505,_0x4ade4b){const _0xa55a84=_0x206259;let _0x513e08=this[_0xa55a84(0x34d)][_0xa55a84(0x2c0)]();if(!_0x513e08)return;let _0x5b8e12=this['_getSheetObject']();if(!_0x5b8e12)return;this['_cursors'][_0xa55a84(0x27a)](_0x5c7fc4=>{const _0x2d021d=_0xa55a84;_0x5c7fc4[_0x2d021d(0x363)]();});let {scene:_0x369204}=_0x5b8e12,_0x5b8e38=xn(Array[_0xa55a84(0x230)](_0x4ade4b[_0xa55a84(0x3b8)]()))[_0xa55a84(0x3ee)](_0x19ad6f=>{const _0x54100e=_0xa55a84;let {color:_0x284471,range:_0x4b08b5,name:_0x394473,selection:_0x30d5a2,sheetID:_0x4a11ea}=_0x19ad6f,{startColumn:_0x1cbbd4,startRow:_0x59ade8,endColumn:_0x7a90c2,endRow:_0x2fba1a}=_0x4b08b5,_0x369906=_0x2578dc(_0x59ade8,_0x1cbbd4,_0x369204,_0x513e08),_0x45f7fb=_0x2578dc(_0x2fba1a,_0x7a90c2,_0x369204,_0x513e08),{columnHeaderHeightAndMarginTop:_0x20b5be}=_0x513e08,{startX:_0x3c3f96,startY:_0x418442}=_0x369906,{endX:_0x2563dd,endY:_0x18fc31}=_0x45f7fb,_0x3750a3=_0x2563dd-_0x3c3f96,_0x117760=_0x18fc31-_0x418442;return new yn(_0x394473,{'labelPosition':_0x418442-_0x20b5be>=0x14?_0x54100e(0x3cd):_0x54100e(0x23f),'sheetID':_0x4a11ea,'range':_0x4b08b5,'color':_0x284471,'name':_0x394473,'selection':_0x30d5a2,'left':_0x3c3f96,'top':_0x418442,'width':_0x3750a3,'height':_0x117760,'evented':!0x1,'zIndex':0x1389});});_0x369204[_0xa55a84(0x1f2)](_0x5b8e38,0x1),this[_0xa55a84(0x30d)]=new Set(_0x5b8e38);}[_0x206259(0x403)](){const _0x2db635=_0x206259;var _0x2bdffe;(_0x2bdffe=this[_0x2db635(0x30d)])==null||_0x2bdffe[_0x2db635(0x27a)](_0x5051b9=>_0x5051b9['dispose']());}[_0x206259(0x34b)](){const _0x43e6cf=_0x206259;return _0x547a2f(this[_0x43e6cf(0x39f)][_0x43e6cf(0x304)],this['_context']);}};bn=q([K(0x1,_0xb8a7b6(_0x32fb05)),K(0x2,_0xb8a7b6(X)),K(0x3,_0xb8a7b6(_0x2d2a1d))],bn);function xn(_0x1a733d){const _0x27f3db=_0x206259;let _0x3bb0b8=new Map();return _0x1a733d[_0x27f3db(0x27a)](_0x391eab=>{const _0x4bde3f=_0x27f3db;if(_0x3bb0b8[_0x4bde3f(0x356)](_0x391eab[_0x4bde3f(0x24d)])){let _0x48df02=_0x3bb0b8['get'](_0x391eab[_0x4bde3f(0x24d)]);_0x48df02[_0x4bde3f(0x2fb)]+=',\x20'+_0x391eab[_0x4bde3f(0x2fb)];}else _0x3bb0b8[_0x4bde3f(0x3a3)](_0x391eab[_0x4bde3f(0x24d)],_0x391eab);}),Array[_0x27f3db(0x230)](_0x3bb0b8['values']());}let Z=class extends _0x1b0287{constructor(_0x11e1b3,_0x3614ee,_0x5a5b6c,_0x5076d5,_0x368a64,_0x59f016){const _0x4f523c=_0x206259;super(),this['_beforeCloseService']=_0x11e1b3,this[_0x4f523c(0x2b2)]=_0x3614ee,this['_collaborationUIEventService']=_0x5a5b6c,this[_0x4f523c(0x3f6)]=_0x5076d5,this[_0x4f523c(0x21a)]=_0x368a64,this[_0x4f523c(0x3b5)]=_0x59f016,this[_0x4f523c(0x243)](),this[_0x4f523c(0x2a7)]();}[_0x206259(0x243)](){const _0x25b13e=_0x206259;this['disposeWithMe'](this[_0x25b13e(0x349)][_0x25b13e(0x39b)](()=>{const _0x376e13=_0x25b13e;if(this['_localCacheService'][_0x376e13(0x3e9)][_0x376e13(0x293)])return this[_0x376e13(0x3b5)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x3658b5=_0x206259;this['disposeWithMe'](this['_collaborationUIEventService'][_0x3658b5(0x393)]['subscribe'](_0x4797f2=>{const _0x4e8114=_0x3658b5;_0x4797f2['id']===_0x1b3610[_0x4e8114(0x381)]&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f[_0x4e8114(0x368)],'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x27d))}),_0x4797f2['id']===_0x1b3610['CLOSE_ROOM']&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f['Warning'],'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x268))}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x32f)]&&this['_notificationService'][_0x4e8114(0x2f1)]({'title':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x33b)),'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x398)),'type':_0x4e8114(0x320),'duration':0x0}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x22f)]&&this['_messageService'][_0x4e8114(0x2f1)]({'type':_0x35617f[_0x4e8114(0x371)],'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x268))+'('+_0x4797f2['data']+')'}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x35a)]&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f['Warning'],'content':this[_0x4e8114(0x3b5)]['t'](_0x4797f2[_0x4e8114(0x3ec)]||'')}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x36e)]&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f[_0x4e8114(0x368)],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0x4797f2['id']===_0x1b3610['SOCKET_FAILED']&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f['Error'],'content':this['_localeService']['t'](_0x4e8114(0x1ed))}),_0x4797f2['id']===_0x1b3610[_0x4e8114(0x233)]&&this[_0x4e8114(0x3f6)][_0x4e8114(0x2f1)]({'type':_0x35617f[_0x4e8114(0x371)],'content':this[_0x4e8114(0x3b5)]['t'](_0x4e8114(0x226))});}));}};Z=q([K(0x0,_0x37faa2),K(0x1,_0x17a5fc),K(0x2,_0xb8a7b6(_0x38a3cd)),K(0x3,_0x3c5b09),K(0x4,_0x2e77e8),K(0x5,_0xb8a7b6(_0x14b5d2))],Z);const Sn={};let Cn=class{constructor(_0x345ebf,_0x2f4057){const _0x5c307c=_0x206259;this[_0x5c307c(0x3c8)]=_0x345ebf,this[_0x5c307c(0x34e)]=_0x2f4057;}[_0x206259(0x21d)](_0x209e81){const _0x1ca7d8=_0x206259;this['_transformUndoRedoStack'](_0x209e81),this[_0x1ca7d8(0x220)](_0x209e81);}['transformRemoteChangeset'](_0x586625){const _0x22a4f2=_0x206259;let {unitID:_0x330b88}=_0x586625,{redoCache:_0x2ee3c7}=this['_renderManagerService']['getRenderById'](_0x330b88)[_0x22a4f2(0x32e)](_0x563c9d)[_0x22a4f2(0x26d)]();if(_0x2ee3c7[_0x22a4f2(0x35f)]===0x0)return _0x586625;let _0x113845=_0x1eece1[_0x22a4f2(0x34f)](_0x586625[_0x22a4f2(0x35d)][0x0]);for(let _0x144564=0x0;_0x144564<_0x2ee3c7[_0x22a4f2(0x35f)];_0x144564++){let _0x4a2c95={'id':_0x22a4f2(0x2d1),'params':{..._0x2ee3c7[_0x144564]}},_0xcae3e=this[_0x22a4f2(0x3c8)][_0x22a4f2(0x25f)](_0x113845,_0x4a2c95,!0x1);if(_0x537eeb(_0xcae3e))throw _0xcae3e['error'];_0x113845=_0xcae3e['m1Prime'];}return{..._0x1eece1[_0x22a4f2(0x34f)](_0x586625),'mutations':[_0x113845]};}['_transformUndoRedoStack'](_0x30fa91){const _0x3289b5=_0x206259;let {unitID:_0x4a1a36}=_0x30fa91,_0x7157bd=this[_0x3289b5(0x34e)]['getRenderById'](_0x4a1a36)['with'](_0x563c9d),{undoCache:_0x59f064,redoCache:_0x43289d}=_0x7157bd[_0x3289b5(0x26d)]();if(_0x59f064[_0x3289b5(0x35f)]===0x0||_0x43289d['length']===0x0)return;let _0x86aa55=[],_0x13bda4=[],_0x1d92b7=_0x1eece1[_0x3289b5(0x34f)](_0x30fa91['mutations'][0x0]),_0x16929b=_0x1eece1[_0x3289b5(0x34f)](_0x30fa91[_0x3289b5(0x35d)][0x0]);for(let _0x209d12=_0x59f064[_0x3289b5(0x35f)]-0x1;_0x209d12>=0x0;_0x209d12--){let _0x4f475c={'id':_0x3289b5(0x2d1),'params':{..._0x59f064[_0x209d12]}},_0x3bc42c={'id':_0x3289b5(0x2d1),'params':{..._0x43289d[_0x209d12]}},_0x319545=this['_transformService']['transformMutation'](_0x1d92b7,_0x4f475c,!0x1),_0x265166=this['_transformService'][_0x3289b5(0x25f)](_0x16929b,_0x3bc42c,!0x1);if(_0x537eeb(_0x319545))throw _0x319545['error'];if(_0x537eeb(_0x265166))throw _0x265166['error'];_0x86aa55[_0x3289b5(0x3e8)](_0x319545['m2Prime'][_0x3289b5(0x351)]),_0x13bda4[_0x3289b5(0x3e8)](_0x265166[_0x3289b5(0x2fd)][_0x3289b5(0x351)]),_0x1d92b7=_0x319545[_0x3289b5(0x362)],_0x16929b=_0x265166[_0x3289b5(0x362)];}_0x7157bd[_0x3289b5(0x354)]({'undoCache':_0x86aa55,'redoCache':_0x13bda4});}['_transformPreviousActiveRange'](_0x10a18a){const _0x17053c=_0x206259;let {unitID:_0x2aa59c}=_0x10a18a,_0x3af22a=this[_0x17053c(0x34e)]['getRenderById'](_0x2aa59c)[_0x17053c(0x32e)](_0x563c9d),_0x3ea17f=_0x3af22a[_0x17053c(0x242)]();if(_0x3ea17f==null)return;let _0x2819bf=[{'id':_0x17053c(0x2d1),'params':{'unitId':_0x10a18a['unitID'],'actions':null,'textRanges':[_0x3ea17f]}}],_0x46b5b6=this[_0x17053c(0x3c8)]['transformMutationsWithChangeset'](_0x10a18a,_0x2819bf);if(!_0x324463(_0x46b5b6))throw _0x46b5b6[_0x17053c(0x320)];let _0x43068f=_0x46b5b6[_0x17053c(0x2fd)][0x0]['params']['textRanges'];Array[_0x17053c(0x397)](_0x43068f)&&_0x43068f[_0x17053c(0x35f)]&&_0x3af22a[_0x17053c(0x2a0)](_0x43068f[0x0]);}};Cn=q([K(0x0,_0x4e87b4),K(0x1,_0xd23c31)],Cn);let wn=class{constructor(_0x3868ac,_0xd2cdae,_0x5b3c74){const _0x4e1ba6=_0x206259;this[_0x4e1ba6(0x359)]=_0x3868ac,this[_0x4e1ba6(0x3c8)]=_0xd2cdae,this[_0x4e1ba6(0x22e)]=_0x5b3c74;}[_0x206259(0x253)](_0x281df6){this['_transformHistoryAndStateStack'](_0x281df6);}[_0x206259(0x1f4)](_0x48b39f){const _0xbca7f2=_0x206259;let {unitID:_0x2bd7cf}=_0x48b39f,{collaboration:_0x592195}=this[_0xbca7f2(0x22e)][_0xbca7f2(0x3d6)](_0x2bd7cf);if(_0x592195['length']===0x0)return _0x48b39f;let _0x7aae5e=_0x1eece1[_0xbca7f2(0x34f)](_0x48b39f[_0xbca7f2(0x35d)][0x0]);for(let _0x475d1c=0x0;_0x475d1c<_0x592195[_0xbca7f2(0x35f)];_0x475d1c++){let _0x5ecefd={'id':_0xbca7f2(0x2d1),'params':{'unitId':_0x592195[_0x475d1c]['unitId'],..._0x592195[_0x475d1c][_0xbca7f2(0x2de)]}},_0x49235a=this['_transformService'][_0xbca7f2(0x25f)](_0x7aae5e,_0x5ecefd,!0x1);if(_0x537eeb(_0x49235a))throw _0x49235a[_0xbca7f2(0x320)];_0x7aae5e=_0x49235a[_0xbca7f2(0x362)];}return{..._0x1eece1[_0xbca7f2(0x34f)](_0x48b39f),'mutations':[_0x7aae5e]};}[_0x206259(0x39d)](_0x4d5fae){const _0x5f1af2=_0x206259;let {unitID:_0x2af66d}=_0x4d5fae,{history:_0x1984e0,collaboration:_0x428ca5}=this['_docStateChangeManagerService'][_0x5f1af2(0x3d6)](_0x2af66d);if(_0x1984e0[_0x5f1af2(0x35f)]===0x0&&_0x428ca5[_0x5f1af2(0x35f)]===0x0)return;let _0x55255a=[],_0x118c9e=[],_0x2e4b1f=_0x1eece1[_0x5f1af2(0x34f)](_0x4d5fae['mutations'][0x0]),_0x34ebda=_0x1eece1[_0x5f1af2(0x34f)](_0x4d5fae[_0x5f1af2(0x35d)][0x0]);for(let _0x20187e=_0x1984e0[_0x5f1af2(0x35f)]-0x1;_0x20187e>=0x0;_0x20187e--){let _0x2106d9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1984e0[_0x20187e][_0x5f1af2(0x3c2)],..._0x1984e0[_0x20187e][_0x5f1af2(0x3b9)]}},_0x209b7e={'id':_0x5f1af2(0x2d1),'params':{'unitId':_0x1984e0[_0x20187e][_0x5f1af2(0x3c2)],..._0x1984e0[_0x20187e][_0x5f1af2(0x2de)]}},_0xd2668d=this['_transformService'][_0x5f1af2(0x25f)](_0x2e4b1f,_0x2106d9,!0x1),_0x4b494e=this[_0x5f1af2(0x3c8)]['transformMutation'](_0x34ebda,_0x209b7e,!0x1);if(_0x537eeb(_0xd2668d))throw _0xd2668d[_0x5f1af2(0x320)];if(_0x537eeb(_0x4b494e))throw _0x4b494e[_0x5f1af2(0x320)];_0x55255a[_0x5f1af2(0x3e8)]({..._0x1984e0[_0x20187e],'undoState':_0xd2668d[_0x5f1af2(0x2fd)]['params'],'redoState':_0x4b494e[_0x5f1af2(0x2fd)][_0x5f1af2(0x351)]}),_0x2e4b1f=_0xd2668d['m1Prime'],_0x34ebda=_0x4b494e['m1Prime'];}_0x2e4b1f=_0x1eece1[_0x5f1af2(0x34f)](_0x4d5fae[_0x5f1af2(0x35d)][0x0]),_0x34ebda=_0x1eece1[_0x5f1af2(0x34f)](_0x4d5fae[_0x5f1af2(0x35d)][0x0]);for(let _0x42339f=_0x428ca5[_0x5f1af2(0x35f)]-0x1;_0x42339f>=0x0;_0x42339f--){let _0x511334={'id':_0x5f1af2(0x2d1),'params':{'unitId':_0x428ca5[_0x42339f][_0x5f1af2(0x3c2)],..._0x428ca5[_0x42339f][_0x5f1af2(0x3b9)]}},_0x354048={'id':_0x5f1af2(0x2d1),'params':{'unitId':_0x428ca5[_0x42339f][_0x5f1af2(0x3c2)],..._0x428ca5[_0x42339f][_0x5f1af2(0x2de)]}},_0x5aaf0f=this[_0x5f1af2(0x3c8)][_0x5f1af2(0x25f)](_0x2e4b1f,_0x511334,!0x1),_0xb6bf38=this[_0x5f1af2(0x3c8)]['transformMutation'](_0x34ebda,_0x354048,!0x1);if(_0x537eeb(_0x5aaf0f))throw _0x5aaf0f[_0x5f1af2(0x320)];if(_0x537eeb(_0xb6bf38))throw _0xb6bf38[_0x5f1af2(0x320)];_0x118c9e[_0x5f1af2(0x3e8)]({..._0x428ca5[_0x42339f],'undoState':_0x5aaf0f[_0x5f1af2(0x2fd)]['params'],'redoState':_0xb6bf38[_0x5f1af2(0x2fd)][_0x5f1af2(0x351)]}),_0x2e4b1f=_0x5aaf0f[_0x5f1af2(0x362)],_0x34ebda=_0xb6bf38[_0x5f1af2(0x362)];}this['_docStateChangeManagerService'][_0x5f1af2(0x244)](_0x2af66d,{'history':_0x55255a,'collaboration':_0x118c9e});}};wn=q([K(0x0,_0xb8a7b6(_0x59fba4)),K(0x1,_0x4e87b4),K(0x2,_0xb8a7b6(_0x5023e3))],wn);let Tn=class{constructor(_0x5a46df,_0x253456){const _0x43ebd4=_0x206259;this[_0x43ebd4(0x359)]=_0x5a46df,this[_0x43ebd4(0x3c8)]=_0x253456;}[_0x206259(0x290)](_0x9853dc){const _0xbc7727=_0x206259;var _0x476b6f;let _0x315278=this[_0xbc7727(0x359)][_0xbc7727(0x229)](_0x92d5ec),_0x536f79=(_0x476b6f=_0x315278[_0xbc7727(0x395)]())==null?[]:_0x476b6f;if(_0x536f79[_0xbc7727(0x35f)]===0x0)return;let _0x3834af=_0x9853dc['unitID'],_0xed4e3a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3834af,'actions':null,'textRanges':_0x536f79}}],_0x1f8166=this[_0xbc7727(0x3c8)][_0xbc7727(0x376)](_0x9853dc,_0xed4e3a);if(!_0x324463(_0x1f8166))throw _0x1f8166[_0xbc7727(0x320)];let _0x4aeb9f=_0x1f8166['m2Prime'][0x0][_0xbc7727(0x351)]['textRanges'];Array[_0xbc7727(0x397)](_0x4aeb9f)&&_0x4aeb9f['length']&&_0x315278['replaceDocRanges'](_0x4aeb9f,{'unitId':_0x3834af,'subUnitId':_0x3834af},!0x1);}};Tn=q([K(0x0,_0xb8a7b6(_0x59fba4)),K(0x1,_0x4e87b4)],Tn);let En=class extends _0x1b0287{constructor(_0x3b295f,_0x59788a,_0x4a461e,_0x38bc89,_0x257aee,_0x579504,_0x4868bf,_0x37bab0){const _0x123541=_0x206259;super(),this[_0x123541(0x22e)]=_0x3b295f,this[_0x123541(0x334)]=_0x59788a,this[_0x123541(0x338)]=_0x4a461e,this['_docTransformStateCacheService']=_0x38bc89,this[_0x123541(0x3ff)]=_0x257aee,this[_0x123541(0x37d)]=_0x579504,this[_0x123541(0x3f6)]=_0x4868bf,this[_0x123541(0x3b5)]=_0x37bab0,G(this,_0x123541(0x3a7),new _0x3f7448(_0x18999b[_0x123541(0x23a)])),this[_0x123541(0x211)]();}['_initEntityListener'](){const _0x3b8777=_0x206259;this[_0x3b8777(0x228)](this['_collaborationController'][_0x3b8777(0x2c8)]['subscribe'](_0x46f264=>{const _0x427304=_0x3b8777;let _0x545bc1=this[_0x427304(0x22e)][_0x427304(0x206)][_0x427304(0x385)](_0x56830f=>{const _0x156fc5=_0x427304;if(_0x56830f==null)return;let {unitId:_0x4347a9,redoState:_0x3f8cee,commandId:_0x5b30c6}=_0x56830f;if(_0x4347a9!==_0x46f264[_0x156fc5(0x324)])return;let _0x4b6b6b={'id':_0x5b30c6,'type':_0x526abf['MUTATION'],'params':{'unitId':_0x4347a9,'actions':_0x3f8cee[_0x156fc5(0x20b)],'textRanges':null}};_0x46f264['onLocalMutation'](_0x4b6b6b);});_0x46f264[_0x427304(0x228)](_0x545bc1),_0x46f264 instanceof _0x3a42ed&&_0x46f264['addHandlerCallback']({'onTransformIME':_0x5555ea=>this['_docTransformIMECacheService'][_0x427304(0x21d)](_0x5555ea),'onTransformState':_0x39b83b=>this[_0x427304(0x2bb)]['transformStateCache'](_0x39b83b),'onTransformSelections':_0x185767=>this[_0x427304(0x3ff)][_0x427304(0x290)](_0x185767),'onSyncEditingCollabCursor':_0x26d48c=>this[_0x427304(0x37d)][_0x427304(0x2a3)](_0x26d48c),'onTransformRemoteChangesetByIMECache':_0x4c6ff9=>this[_0x427304(0x338)][_0x427304(0x1f4)](_0x4c6ff9),'onTransformRemoteChangesetByStateCache':_0x211aa3=>this[_0x427304(0x2bb)]['transformRemoteChangeset'](_0x211aa3)});}));}};En=q([K(0x0,_0xb8a7b6(_0x5023e3)),K(0x1,_0xb8a7b6(_0x1544ac)),K(0x2,_0xb8a7b6(Cn)),K(0x3,_0xb8a7b6(wn)),K(0x4,_0xb8a7b6(Tn)),K(0x5,_0xb8a7b6(un)),K(0x6,_0x3c5b09),K(0x7,_0xb8a7b6(_0x14b5d2))],En);let Dn=class extends _0x1b0287{constructor(_0xd968a0,_0x34548f,_0x544b2b,_0x44ca92){const _0x4e6145=_0x206259;super(),this[_0x4e6145(0x359)]=_0xd968a0,this[_0x4e6145(0x3f0)]=_0x34548f,this[_0x4e6145(0x1ef)]=_0x544b2b,this[_0x4e6145(0x340)]=_0x44ca92,G(this,_0x4e6145(0x22c),void 0x0),this[_0x4e6145(0x2ee)]();}[_0x206259(0x2ee)](){const _0xd7a7e6=_0x206259;this[_0xd7a7e6(0x2df)](),this[_0xd7a7e6(0x223)](),this['_monkeyPatchLogService'](),this[_0xd7a7e6(0x2a1)]();}[_0x206259(0x2a1)](){const _0x37eb32=_0x206259;this[_0x37eb32(0x228)](this['_collaborationSessionService'][_0x37eb32(0x28a)][_0x37eb32(0x385)](_0x21e601=>{const _0x4b3707=_0x37eb32;this[_0x4b3707(0x22c)]=_0x21e601==null?void 0x0:_0x21e601[_0x4b3707(0x325)];}));}['_initWindowErrorListener'](){const _0x345418=_0x206259;let _0x59cd92=_0x384f8f=>{const _0x3419ed=_0x4885;var _0x485037;this[_0x3419ed(0x346)](_0x3419ed(0x320),_0x3419ed(0x387)+_0x384f8f['message']+_0x3419ed(0x2bf)+_0x384f8f['filename']+':'+_0x384f8f[_0x3419ed(0x330)]+':'+_0x384f8f[_0x3419ed(0x259)]+'\x0a'+(((_0x485037=_0x384f8f[_0x3419ed(0x320)])==null?void 0x0:_0x485037[_0x3419ed(0x315)])||''));};window[_0x345418(0x402)](_0x345418(0x320),_0x59cd92),this['disposeWithMe'](()=>{const _0xb32bbe=_0x345418;window[_0xb32bbe(0x404)](_0xb32bbe(0x320),_0x59cd92);});}[_0x206259(0x223)](){const _0x34fb7e=_0x206259;let _0x49474a=_0x123eea=>{const _0xfb6424=_0x4885;this[_0xfb6424(0x346)](_0xfb6424(0x320),_0xfb6424(0x2ef)+_0x123eea['reason']);};window[_0x34fb7e(0x402)](_0x34fb7e(0x323),_0x49474a),this[_0x34fb7e(0x228)](()=>{const _0x46140d=_0x34fb7e;window[_0x46140d(0x404)](_0x46140d(0x323),_0x49474a);});}['_monkeyPatchLogService'](){const _0x519066=_0x206259;let _0x310f86=this[_0x519066(0x1ef)][_0x519066(0x320)]['bind'](this[_0x519066(0x1ef)]);this[_0x519066(0x1ef)][_0x519066(0x320)]=(..._0x431e14)=>{const _0xe7d4e7=_0x519066;let _0x4a3db0=_0x431e14[_0xe7d4e7(0x3ee)](_0x199138=>_0x199138 instanceof Error?_0x199138[_0xe7d4e7(0x214)]+'\x0a'+_0x199138[_0xe7d4e7(0x315)]:String(_0x199138))[_0xe7d4e7(0x2f2)]('\x20');this['_uploadLog'](_0xe7d4e7(0x320),_0xe7d4e7(0x30c)+_0x4a3db0),_0x310f86(..._0x431e14);},this[_0x519066(0x228)](()=>{const _0x3220bd=_0x519066;this[_0x3220bd(0x1ef)]['error']=_0x310f86;});}[_0x206259(0x346)](_0x170259,_0x4e0167){const _0x126c9f=_0x206259;try{let _0x403373={'userId':this['_memberID'],'logLabel':_0x170259,'content':_0x4e0167};this[_0x126c9f(0x3f0)][_0x126c9f(0x25c)](_0x126c9f(0x26e),{'body':_0x403373})['catch'](()=>{});}catch{}}};Dn=q([K(0x0,_0xb8a7b6(_0x59fba4)),K(0x1,_0xb8a7b6(_0x396900)),K(0x2,_0x5916ce),K(0x3,_0xb8a7b6(_0x52b1cf))],Dn);function On(_0x12a2e0){const _0x1696f3=_0x206259;var _0x28ded7,_0x2ffe68;let _0x17bac9=(_0x28ded7=_0x12a2e0[_0x1696f3(0x364)])==null?void 0x0:_0x28ded7[_0x1696f3(0x328)],_0x4a5be6=((_0x2ffe68=_0x12a2e0[_0x1696f3(0x364)])==null?void 0x0:_0x2ffe68[_0x1696f3(0x360)])||0x0;return _0x17bac9===_0x52f8ca[_0x1696f3(0x227)]&&_0x4a5be6>0x0;}function kn(_0x1beb4c){const _0xf5aaa8=_0x206259;return _0x1beb4c[_0xf5aaa8(0x316)]===_0x212b69[_0xf5aaa8(0x3ba)];}let Q=class extends _0x1b0287{constructor(_0x22a5e6,_0x434040,_0xc59311,_0x510632,_0xddd5f5,_0x3890e8,_0x4f540e){const _0x377129=_0x206259;super(),this['_messageService']=_0x22a5e6,this[_0x377129(0x257)]=_0x434040,this['_configService']=_0xc59311,this[_0x377129(0x3f0)]=_0x510632,this['_univerInstanceService']=_0xddd5f5,this['_logService']=_0x3890e8,this['_localeService']=_0x4f540e,G(this,'_pollingInterval',null),G(this,'_maxFormulaLimit',0x0),G(this,'_currentUsage',0x0),G(this,'_taskIds',[]),G(this,_0x377129(0x38f),0x0),this[_0x377129(0x3eb)]();}['_initCommandInterceptor'](){const _0x46e480=_0x206259;this[_0x46e480(0x228)](this[_0x46e480(0x257)][_0x46e480(0x20e)]((_0x3519a0,_0x2cff82)=>{const _0x1e8653=_0x46e480;var _0x303ed0;if(_0x3519a0['id']!==_0x280be0['id'])return;let _0x5dd37c=_0x3519a0[_0x1e8653(0x351)];if(this[_0x1e8653(0x263)]((_0x303ed0=_0x5dd37c['dirtyRanges'])==null?[]:_0x303ed0)&&!this[_0x1e8653(0x3ab)]())throw this[_0x1e8653(0x20d)](_0x3519a0,_0x2cff82),this['_showGuardMessage'](),new _0x1149f2();})),this[_0x46e480(0x228)](this['_commandService'][_0x46e480(0x319)]((_0x1abc91,_0x1c9422)=>{const _0x11c840=_0x46e480;if(_0x1abc91['id']!==_0xe628ff['id'])return;let _0x402a73=_0x1abc91[_0x11c840(0x351)];if(On(_0x402a73)){let _0x44bc08=_0x555907();this[_0x11c840(0x2f5)][_0x11c840(0x265)](_0x44bc08),this[_0x11c840(0x2f3)](_0x44bc08);}else{if(kn(_0x402a73)&&this[_0x11c840(0x2f5)]['length']>0x0){let _0x35b7b0=this[_0x11c840(0x2f5)][_0x11c840(0x3ef)]();this['_releaseCalculationLimit'](_0x35b7b0);}}}));}[_0x206259(0x29b)](){const _0x5b7d75=_0x206259;super[_0x5b7d75(0x29b)](),this[_0x5b7d75(0x30a)](),this['_taskIds']=[],this[_0x5b7d75(0x292)]=0x0,this[_0x5b7d75(0x299)]=0x0,this[_0x5b7d75(0x38f)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x5cbcdb,_0x25fa8c){const _0x4985c7=_0x206259;for(let _0x391ecc=0x0;_0x391ecc<0x1e;_0x391ecc++)try{if(await this['_getFormulaLimitStatus'](),this[_0x4985c7(0x3ab)]()){this[_0x4985c7(0x3bb)](_0x5cbcdb,_0x25fa8c),this[_0x4985c7(0x3f6)][_0x4985c7(0x2f1)]({'content':this[_0x4985c7(0x3b5)]['t'](_0x4985c7(0x21b)),'type':_0x35617f[_0x4985c7(0x318)]});return;}await new Promise(_0x24cc4a=>{const _0xb89750=_0x4985c7;this[_0xb89750(0x21c)]=window[_0xb89750(0x235)](_0x24cc4a,0x3e8);});}catch(_0x3efecb){this['_logService'][_0x4985c7(0x320)](_0x3efecb);}this['_messageService'][_0x4985c7(0x2f1)]({'content':this['_localeService']['t'](_0x4985c7(0x238)),'type':_0x35617f[_0x4985c7(0x371)]});}['_applyCommand'](_0x56514d,_0x23e60a){const _0x27f86a=_0x206259;try{this[_0x27f86a(0x257)][_0x27f86a(0x3dc)](_0x56514d['id'],_0x56514d[_0x27f86a(0x351)],_0x23e60a);}catch(_0x1ae236){this[_0x27f86a(0x1ef)][_0x27f86a(0x320)](_0x1ae236);}}[_0x206259(0x3a8)](_0x184170,_0x1796ec){const _0x580be6=_0x206259;_0x1796ec<this['_lastResponseTimestamp']||(this[_0x580be6(0x38f)]=_0x1796ec,this[_0x580be6(0x299)]=Number[_0x580be6(0x254)](_0x184170[_0x580be6(0x262)]),this[_0x580be6(0x292)]=Number[_0x580be6(0x254)](_0x184170[_0x580be6(0x24a)]));}async[_0x206259(0x2f3)](_0x559f49){const _0x2b9eba=_0x206259;let _0x57f2ac=Date[_0x2b9eba(0x2a6)]();try{var _0x24f7b5,_0x51e59e;let _0x33a7af=((_0x24f7b5=this[_0x2b9eba(0x378)][_0x2b9eba(0x38b)](_0xde024d))==null?void 0x0:_0x24f7b5[_0x2b9eba(0x2d3)])||_0x2b9eba(0x2b1),_0xe6c858=(await this[_0x2b9eba(0x3f0)][_0x2b9eba(0x25c)](_0x33a7af,{'body':JSON[_0x2b9eba(0x3e0)]({'taskId':_0x559f49})}))[_0x2b9eba(0x3a9)];if(((_0x51e59e=_0xe6c858['error'])==null?void 0x0:_0x51e59e[_0x2b9eba(0x380)])!==_0x5e0da0['OK'])return;this[_0x2b9eba(0x3a8)](_0xe6c858[_0x2b9eba(0x329)],_0x57f2ac);}catch(_0x311d64){this['_logService'][_0x2b9eba(0x320)](_0x311d64);}}async[_0x206259(0x3b1)](_0x1fc11d){const _0x1d1c32=_0x206259;let _0xd7b0b3=Date['now']();try{var _0x361932,_0x10fc50;let _0x2dc094=((_0x361932=this[_0x1d1c32(0x378)][_0x1d1c32(0x38b)](_0xde024d))==null?void 0x0:_0x361932[_0x1d1c32(0x3d5)])||_0x1d1c32(0x3a1),_0x404e68=_0x1fc11d?_0x2dc094+_0x1d1c32(0x3e4)+encodeURIComponent(_0x1fc11d):_0x2dc094,_0x415b82=(await this['_httpService']['get'](_0x404e68))[_0x1d1c32(0x3a9)];if(((_0x10fc50=_0x415b82[_0x1d1c32(0x320)])==null?void 0x0:_0x10fc50['code'])!==_0x5e0da0['OK'])return;this['_setFormulaLimitStatus'](_0x415b82[_0x1d1c32(0x329)],_0xd7b0b3);}catch(_0x5690ce){this[_0x1d1c32(0x1ef)][_0x1d1c32(0x320)](_0x5690ce);}}async[_0x206259(0x355)](_0x20d3a8){const _0x32d55b=_0x206259;let _0x284f4c=Date[_0x32d55b(0x2a6)]();try{var _0x25e4c3,_0x3a8901;let _0x33d687=((_0x25e4c3=this[_0x32d55b(0x378)]['getConfig'](_0xde024d))==null?void 0x0:_0x25e4c3[_0x32d55b(0x352)])||_0x32d55b(0x276),_0x2588a9=(await this['_httpService'][_0x32d55b(0x25c)](_0x33d687,{'body':JSON[_0x32d55b(0x3e0)]({'taskId':_0x20d3a8})}))[_0x32d55b(0x3a9)];if(((_0x3a8901=_0x2588a9[_0x32d55b(0x320)])==null?void 0x0:_0x3a8901[_0x32d55b(0x380)])!==_0x5e0da0['OK'])return;this[_0x32d55b(0x3a8)](_0x2588a9[_0x32d55b(0x329)],_0x284f4c);}catch(_0x2f6b8a){this[_0x32d55b(0x1ef)][_0x32d55b(0x320)](_0x2f6b8a);}}[_0x206259(0x3ab)](){const _0x3d8945=_0x206259;return this[_0x3d8945(0x299)]===0x0?!0x0:this[_0x3d8945(0x299)]-this[_0x3d8945(0x292)]>0x0;}[_0x206259(0x30a)](){const _0x15e38b=_0x206259;this[_0x15e38b(0x21c)]&&(clearTimeout(this[_0x15e38b(0x21c)]),this['_pollingInterval']=null);}[_0x206259(0x375)](){const _0x245d59=_0x206259;this[_0x245d59(0x3f6)][_0x245d59(0x2f1)]({'content':this[_0x245d59(0x3b5)]['t'](_0x245d59(0x23e)),'type':_0x35617f[_0x245d59(0x303)]});}[_0x206259(0x263)](_0x490cca){const _0x2d0b2c=_0x206259;for(let _0x1bdd15 of _0x490cca){let {unitId:_0x490417,sheetId:_0xa954d6,range:_0x493794}=_0x1bdd15,_0x3ef285=this[_0x2d0b2c(0x248)]['getUnit'](_0x490417);if(!_0x3ef285)continue;let _0x4e342f=_0x3ef285[_0x2d0b2c(0x2b6)](_0xa954d6);if(!_0x4e342f)continue;let _0x3ef74a=_0x4e342f[_0x2d0b2c(0x1fd)]();for(let _0x520721=_0x493794[_0x2d0b2c(0x2db)];_0x520721<=_0x493794[_0x2d0b2c(0x37b)];_0x520721++)for(let _0xb8d584=_0x493794[_0x2d0b2c(0x3ed)];_0xb8d584<=_0x493794['endColumn'];_0xb8d584++){let _0x598784=_0x3ef74a['getValue'](_0x520721,_0xb8d584);if(_0x598784&&(_0x42b484(_0x598784['f'])||_0x5c72a3(_0x598784['si'])))return!0x0;}}return!0x1;}};Q=q([K(0x0,_0xb8a7b6(_0x3c5b09)),K(0x1,_0x498ceb),K(0x2,_0x189dcf),K(0x3,_0xb8a7b6(_0x396900)),K(0x4,_0x2d5bc6),K(0x5,_0x5916ce),K(0x6,_0xb8a7b6(_0x14b5d2))],Q);let An=class extends _0x1b0287{constructor(_0x59e7dc,_0x50c049,_0x424e13){const _0x475507=_0x206259;super(),this[_0x475507(0x378)]=_0x59e7dc,this[_0x475507(0x3d1)]=_0x50c049,this['_revisionService']=_0x424e13,G(this,'_cachedData',new Map()),G(this,'_saveTaskMap',new Map()),G(this,_0x475507(0x31f),!0x1);}[_0x206259(0x2fe)](){const _0x51507c=_0x206259;this[_0x51507c(0x31f)]=!0x0;}[_0x206259(0x2a9)](){const _0x375ea0=_0x206259;this[_0x375ea0(0x31f)]=!0x1;}get['saveTaskMap'](){const _0x877711=_0x206259;return this[_0x877711(0x3e6)];}[_0x206259(0x29b)](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x340f02){const _0x85a0be=_0x206259;return this[_0x85a0be(0x31f)]?null:this[_0x85a0be(0x3d1)][_0x85a0be(0x1fa)](_0xafed70(_0x340f02));}async['saveOfflineData'](_0x5d0a86,_0x1f7a6d){const _0xc31a0c=_0x206259;return!!this[_0xc31a0c(0x3d1)][_0xc31a0c(0x3aa)](_0x5d0a86,_0x1f7a6d);}['updateOfflineData'](_0x344463,_0x3f5a4a,_0x5f3958,_0x389761){const _0x55e65e=_0x206259;let _0x14b77a=this[_0x55e65e(0x240)][_0x55e65e(0x32d)](_0x344463);this[_0x55e65e(0x25d)][_0x55e65e(0x3a3)](_0x344463,{'unitID':_0x344463,'type':_0x3f5a4a,'awaitingChangeset':_0x5f3958,'mutations':_0x389761,'rev':_0x14b77a}),this[_0x55e65e(0x3e6)][_0x55e65e(0x356)](_0x344463)||this['_scheduleSaving'](_0x344463);}['_scheduleSaving'](_0x3ceebe){const _0x8d73c1=_0x206259;let _0x25fcd9=this[_0x8d73c1(0x339)]();_0x25fcd9===0x0?this[_0x8d73c1(0x2cc)](_0x3ceebe):this[_0x8d73c1(0x3e6)][_0x8d73c1(0x3a3)](_0x3ceebe,setTimeout(()=>this[_0x8d73c1(0x2cc)](_0x3ceebe),_0x25fcd9));}[_0x206259(0x339)](){const _0x2df38f=_0x206259;var _0x12be96;return(_0x12be96=this[_0x2df38f(0x378)][_0x2df38f(0x38b)](_0x5c929a))==null?_0x292543:_0x12be96;}[_0x206259(0x2cc)](_0x58c919){const _0x4e5969=_0x206259;let _0x36f210=this[_0x4e5969(0x3e6)]['get'](_0x58c919);return _0x36f210!==void 0x0&&window[_0x4e5969(0x2d7)](_0x36f210),this['_localStorageService'][_0x4e5969(0x3aa)](_0xafed70(_0x58c919),this[_0x4e5969(0x25d)]['get'](_0x58c919))[_0x4e5969(0x289)](()=>this[_0x4e5969(0x3e6)]['delete'](_0x58c919));}async[_0x206259(0x27f)](){const _0xe3dabe=_0x206259;let _0x220ada=[];this[_0xe3dabe(0x3e6)][_0xe3dabe(0x27a)]((_0x3bbbd3,_0x51f348)=>{const _0x4e4169=_0xe3dabe;window[_0x4e4169(0x2d7)](_0x3bbbd3),_0x220ada[_0x4e4169(0x265)](this[_0x4e4169(0x2cc)](_0x51f348)['then'](()=>{const _0x2dea5e=_0x4e4169;this[_0x2dea5e(0x3e6)][_0x2dea5e(0x3fd)](_0x51f348);}));}),await Promise['all'](_0x220ada);}};An=q([K(0x0,_0x189dcf),K(0x1,_0x37c6e8),K(0x2,_0xb8a7b6(_0x3ac636))],An);var jn=class extends _0x44d0b2{constructor(){const _0xbb40a4=_0x206259;super(),G(this,_0xbb40a4(0x210),void 0x0),this[_0xbb40a4(0x210)]=_0xfb4a42(window,'popstate')[_0xbb40a4(0x217)](_0x384030(this[_0xbb40a4(0x273)]),_0x561cad({'bufferSize':0x1,'refCount':!0x0}),_0x496906(void 0x0));}[_0x206259(0x2d8)](_0x314a8f,_0x434a28,_0x5e62bf=!0x1){const _0x2d098b=_0x206259;let _0x1cb580=new URL(window[_0x2d098b(0x373)][_0x2d098b(0x30e)]);_0x1cb580[_0x2d098b(0x33d)][_0x2d098b(0x3a3)](_0x314a8f,_0x434a28),_0x5e62bf?window[_0x2d098b(0x288)][_0x2d098b(0x252)]('','',_0x1cb580[_0x2d098b(0x26c)]()):window['history'][_0x2d098b(0x33f)]('','',_0x1cb580[_0x2d098b(0x26c)]());}[_0x206259(0x353)](_0x64d640,_0xba8a7b=!0x1){const _0x307df3=_0x206259;let _0x56748e=new URL(window['location'][_0x307df3(0x30e)]);_0x56748e['searchParams']['delete'](_0x64d640),_0xba8a7b?window[_0x307df3(0x288)][_0x307df3(0x252)]('','',_0x56748e[_0x307df3(0x26c)]()):window[_0x307df3(0x288)][_0x307df3(0x33f)]('','',_0x56748e[_0x307df3(0x26c)]());}['getParam'](_0x3cbf44){const _0x56b485=_0x206259;var _0x5492da;return(_0x5492da=new URL(window[_0x56b485(0x373)][_0x56b485(0x30e)])['searchParams'][_0x56b485(0x229)](_0x3cbf44))==null?void 0x0:_0x5492da;}};let $=class extends _0x2676e2{constructor(_0x76caf9=Sn,_0x55cd4c,_0x1e2332,_0x584aac){const _0x54c60a=_0x206259;super(),this[_0x54c60a(0x2b5)]=_0x76caf9,this['_renderManagerService']=_0x55cd4c,this[_0x54c60a(0x359)]=_0x1e2332,this[_0x54c60a(0x378)]=_0x584aac;let {..._0x1917cb}=_0x43b789({},Sn,this[_0x54c60a(0x2b5)]);this[_0x54c60a(0x378)][_0x54c60a(0x2ab)]('collaboration-client-ui.config',_0x1917cb);}[_0x206259(0x2ba)](){const _0x5d7f4d=_0x206259;this[_0x5d7f4d(0x3dd)](),this['_initDependencies']();}[_0x206259(0x3bd)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x4b9603=_0x206259;var _0x32c31d;let _0x1b04db=[[sn],[Q],[Tn],[Cn],[wn],[un],[tn,{'useClass':jn}],[_0x26fea5,{'useClass':_0x5c854a}],[_0x17a5fc,{'useClass':An}],[J],[En],[Z],[X],[an],[Y]];this[_0x4b9603(0x2b5)][_0x4b9603(0x3f2)]&&_0x1b04db[_0x4b9603(0x265)]([Dn]),_0x393efa(this[_0x4b9603(0x359)],_0xa85f6c(_0x1b04db,(_0x32c31d=this[_0x4b9603(0x2b5)])==null?void 0x0:_0x32c31d['override']));}[_0x206259(0x310)](){const _0x4ba70c=_0x206259;this[_0x4ba70c(0x228)](this[_0x4ba70c(0x34e)][_0x4ba70c(0x241)](_0x13410e[_0x4ba70c(0x2f6)],[vn])),this['disposeWithMe'](this['_renderManagerService'][_0x4ba70c(0x241)](_0x13410e[_0x4ba70c(0x218)],[bn]));}[_0x206259(0x1fc)](){const _0x5e56cf=_0x206259;_0x25848c(this[_0x5e56cf(0x359)],[[X],[J],[En],[Z],[Y],[Q],[an]]),this['_config'][_0x5e56cf(0x3f2)]&&_0x25848c(this[_0x5e56cf(0x359)],[[Dn]]);}};G($,'pluginName',_0x206259(0x388)),G($,'packageName',nn),G($,_0x206259(0x3f1),rn),$=q([_0x4070e5(_0x4944ee),K(0x1,_0xd23c31),K(0x2,_0xb8a7b6(_0x59fba4)),K(0x3,_0x189dcf)],$);let Mn=class extends _0x4a830b{constructor(_0x13e160,_0x27b342,_0x11be32,_0x181489,_0x455b5a){super(_0x13e160,_0x27b342,_0x11be32,_0x181489,_0x455b5a);}async['createSocket'](_0x30e7ad){const _0x312c21=_0x206259;let _0xee32e=await this[_0x312c21(0x2c4)](),_0xf7c2d9=this['_createSocketURL'](_0x30e7ad,_0xee32e);return this[_0x312c21(0x1f9)](_0xf7c2d9);}[_0x206259(0x2e7)](_0x13a7f7,_0x34498b){const _0x257eac=_0x206259;let _0x239c9d=typeof window>'u'?new URL(_0x13a7f7):new URL(_0x13a7f7,window[_0x257eac(0x373)][_0x257eac(0x202)]);_0x239c9d[_0x257eac(0x33d)][_0x257eac(0x3a3)](_0x257eac(0x237),_0x34498b);let _0x43a765=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x257eac(0x3f3)]);return _0x43a765[_0x257eac(0x229)]('runId')&&_0x239c9d[_0x257eac(0x33d)][_0x257eac(0x3a3)]('runId',_0x43a765[_0x257eac(0x229)](_0x257eac(0x365))),_0x239c9d['toString']();}async['_getSessionTicket'](){const _0x45c3dd=_0x206259;var _0x4e19dd,_0x51f7e8,_0xe64321;let _0x8dde2a=this[_0x45c3dd(0x378)]['getConfig'](_0xde024d),_0x2dd309=(_0x4e19dd=_0x8dde2a==null?void 0x0:_0x8dde2a['wsSessionTicketUrl'])==null?_0x2cc108:_0x4e19dd;return(_0x51f7e8=(_0xe64321=(await this[_0x45c3dd(0x3f0)][_0x45c3dd(0x229)](_0x2dd309,{'headers':{'Content-Type':_0x45c3dd(0x216)}}))[_0x45c3dd(0x3a9)])==null?void 0x0:_0xe64321[_0x45c3dd(0x286)])==null?'':_0x51f7e8;}};Mn=q([K(0x0,_0xb8a7b6(_0x59fba4)),K(0x1,_0xb8a7b6(_0x396900)),K(0x2,_0x189dcf),K(0x3,_0x5916ce),K(0x4,_0x13c19b)],Mn);let Nn=class extends _0x1b0287{constructor(_0x265bf4,_0x1b54e9,_0x4f5c50){const _0x1baa1a=_0x206259;super(),this[_0x1baa1a(0x29d)]=_0x265bf4,this[_0x1baa1a(0x3f0)]=_0x1b54e9,this['_configService']=_0x4f5c50;}async[_0x206259(0x25b)](_0x120c2e,_0x29aa95,_0x5e4fd2,..._0xbc9169){const _0x2d65d0=_0x206259;var _0x35a1cb,_0x55bcee,_0x515c81,_0x5bfaf1;let _0x214adf=this['_instanceService'][_0x2d65d0(0x377)]();if(!_0x214adf)throw Error(_0x2d65d0(0x201));let _0x18ed7e=((_0x35a1cb=this[_0x2d65d0(0x378)][_0x2d65d0(0x38b)](_0x5d5a4b))==null?_0x1187e7:_0x35a1cb)+'/'+_0x120c2e+_0x2d65d0(0x24e)+_0x29aa95,_0x5c817a={'scriptId':_0x120c2e,'runId':(_0x55bcee=new URL(window['location'][_0x2d65d0(0x30e)])[_0x2d65d0(0x33d)][_0x2d65d0(0x229)]('runId'))==null?'':_0x55bcee,'function':_0x29aa95,'unitId':_0x214adf[_0x2d65d0(0x2f0)](),'argsOfFunction':JSON[_0x2d65d0(0x3e0)](_0xbc9169),'invokeId':(_0x515c81=_0x5e4fd2[_0x2d65d0(0x3e5)])==null?'':_0x515c81,'executionId':(_0x5bfaf1=_0x5e4fd2['executionId'])==null?'':_0x5bfaf1};try{let _0x5b3e7d=await this['_httpService']['post'](_0x18ed7e,{'body':_0x5c817a});return _0x5b3e7d[_0x2d65d0(0x3a9)]['error']&&_0x5b3e7d[_0x2d65d0(0x3a9)][_0x2d65d0(0x320)][_0x2d65d0(0x380)]!==_0x5e0da0['OK']?_0x2d65d0(0x22d):_0x5b3e7d[_0x2d65d0(0x3a9)][_0x2d65d0(0x2dd)];}catch{return'Failed';}}};Nn=q([K(0x0,_0x2d5bc6),K(0x1,_0xb8a7b6(_0x396900)),K(0x2,_0x189dcf)],Nn);const Pn=0x7530,Fn='ACTIVE_UNIT_EVENT_CHANNEL';var In=class extends _0x1b0287{constructor(){const _0xf7511a=_0x206259;super(),G(this,_0xf7511a(0x36b),_0x555907()),G(this,_0xf7511a(0x2d5),new Set()),G(this,'_unitOnClients',new Map()),G(this,_0xf7511a(0x37f),null),G(this,_0xf7511a(0x3b7),new Map()),G(this,_0xf7511a(0x3c6),new Map()),this[_0xf7511a(0x2ee)]();}['dispose'](){const _0xad8a6e=_0x206259;super[_0xad8a6e(0x29b)](),this[_0xad8a6e(0x3b7)][_0xad8a6e(0x27a)]((_0x49991f,_0x4771b1)=>this[_0xad8a6e(0x3fb)](_0x4771b1)),this[_0xad8a6e(0x37f)]&&window[_0xad8a6e(0x21f)](this['_heartbeatTimer']);}[_0x206259(0x224)](_0x512775){const _0x4afaa6=_0x206259;return this[_0x4afaa6(0x389)](_0x512775)[_0x4afaa6(0x217)](_0x3a2980());}[_0x206259(0x28b)](_0x409675){const _0x578c04=_0x206259;this[_0x578c04(0x2d5)][_0x578c04(0x293)]===0x0&&this['_scheduleHeartbeat'](),this[_0x578c04(0x2d5)][_0x578c04(0x307)](_0x409675),this['_send']({'type':0x0,'memberID':this[_0x578c04(0x36b)],'unitIDs':[_0x409675],'isForwarded':!0x1});}['disposeUnit'](_0x3ae12c){const _0xbb3b=_0x206259;this['_selfUnitIDs'][_0xbb3b(0x3fd)](_0x3ae12c),this[_0xbb3b(0x2d5)][_0xbb3b(0x293)]===0x0&&this[_0xbb3b(0x37f)]&&window['clearInterval'](this[_0xbb3b(0x37f)]);}[_0x206259(0x2ee)](){const _0x6fe882=_0x206259;this[_0x6fe882(0x228)](_0x57ab4c(_0xfb4a42(window,_0x6fe882(0x219))[_0x6fe882(0x385)](_0x566ad9=>{const _0x35e2d5=_0x6fe882;if(_0x566ad9[_0x35e2d5(0x261)]!==Fn||!_0x566ad9['newValue'])return;let _0x339edc=JSON[_0x35e2d5(0x350)](_0x566ad9[_0x35e2d5(0x2cb)]);this['_handleEvent'](_0x339edc);}))),window['addEventListener']('unload',()=>this[_0x6fe882(0x31a)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x36ccb4){const _0x279420=_0x206259;switch(_0x36ccb4[_0x279420(0x313)]){case 0x0:this['_handleJoinEvent'](_0x36ccb4);break;case 0x1:this[_0x279420(0x3b3)](_0x36ccb4);break;case 0x2:this[_0x279420(0x2b9)](_0x36ccb4);break;}}[_0x206259(0x208)](_0x45b869){const _0x48a5ca=_0x206259;let {unitIDs:_0x2c4f32,memberID:_0x33c64f,isForwarded:_0x544aa2}=_0x45b869;_0x2c4f32[_0x48a5ca(0x27a)](_0x40b97e=>{const _0x3f2c86=_0x48a5ca;if(!_0x544aa2&&this['_unitOnClients'][_0x3f2c86(0x356)](_0x40b97e)&&this[_0x3f2c86(0x389)](_0x40b97e)['next'](_0x42d7f5[_0x3f2c86(0x221)]),!this[_0x3f2c86(0x26f)]['has'](_0x40b97e)||!this[_0x3f2c86(0x26f)][_0x3f2c86(0x229)](_0x40b97e)['has'](_0x33c64f)){let _0x55889f=this[_0x3f2c86(0x26f)][_0x3f2c86(0x229)](_0x40b97e)||new Set();_0x55889f[_0x3f2c86(0x307)](_0x33c64f),this[_0x3f2c86(0x26f)]['set'](_0x40b97e,_0x55889f),this[_0x3f2c86(0x306)](_0x33c64f);}}),_0x544aa2||this[_0x48a5ca(0x31a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x48a5ca(0x2d5)]],'isForwarded':!0x0});}[_0x206259(0x306)](_0x5666bb){const _0x3a6e04=_0x206259;this[_0x3a6e04(0x3fb)](_0x5666bb);let _0x1c6feb=window[_0x3a6e04(0x235)](()=>{const _0x244f88=_0x3a6e04;this[_0x244f88(0x26f)][_0x244f88(0x27a)](_0x216767=>{const _0x3e2f89=_0x244f88;_0x216767[_0x3e2f89(0x3fd)](_0x5666bb);});},Pn*0x2);this[_0x3a6e04(0x3b7)][_0x3a6e04(0x3a3)](_0x5666bb,_0x1c6feb);}[_0x206259(0x3fb)](_0xbbd7b){const _0x47c32f=_0x206259;if(this[_0x47c32f(0x3b7)][_0x47c32f(0x356)](_0xbbd7b)){let _0xe8c9a3=this[_0x47c32f(0x3b7)]['get'](_0xbbd7b);_0xe8c9a3&&window[_0x47c32f(0x2d7)](_0xe8c9a3),this[_0x47c32f(0x3b7)][_0x47c32f(0x3a3)](_0xbbd7b,null);}}['_handleLeaveEvent'](_0x5d5e46){const _0x1199ba=_0x206259;let {memberID:_0x320aa0,unitIDs:_0x1d05c5}=_0x5d5e46;_0x1d05c5['forEach'](_0x59add2=>{const _0x4b50d8=_0x4885;var _0x12088a;let _0x5e29d8=this[_0x4b50d8(0x26f)]['get'](_0x59add2);_0x5e29d8&&(_0x5e29d8[_0x4b50d8(0x3fd)](_0x320aa0),(_0x12088a=this[_0x4b50d8(0x389)](_0x59add2))==null||_0x12088a['next'](_0x5e29d8[_0x4b50d8(0x293)]===0x0?_0x42d7f5[_0x4b50d8(0x3f9)]:_0x42d7f5['OTHER_CLIENTS_EDITING']));}),this[_0x1199ba(0x3fb)](_0x320aa0);}[_0x206259(0x2b9)](_0x23c638){const _0x5e4c18=_0x206259;this['_scheduleClearOtherTimer'](_0x23c638[_0x5e4c18(0x325)]);}[_0x206259(0x31a)](_0x103140){const _0x41055f=_0x206259;localStorage[_0x41055f(0x3aa)](Fn,JSON[_0x41055f(0x3e0)](_0x103140));}[_0x206259(0x20c)](){const _0x18e70c=_0x206259;this[_0x18e70c(0x37f)]=window[_0x18e70c(0x2a8)](()=>{const _0x58aafc=_0x18e70c;this['_send']({'type':0x2,'memberID':this[_0x58aafc(0x36b)]});},Pn);}[_0x206259(0x389)](_0x279cea){const _0x2a5b5a=_0x206259;return this[_0x2a5b5a(0x3c6)][_0x2a5b5a(0x356)](_0x279cea)||this[_0x2a5b5a(0x3c6)][_0x2a5b5a(0x3a3)](_0x279cea,new _0x3f7448(_0x42d7f5[_0x2a5b5a(0x3f9)])),this['_unitStatus'][_0x2a5b5a(0x229)](_0x279cea);}};export{Mn as BrowserCollaborationSocketService,Y as CollaborationDataLoaderController,J as DesktopCollaborationStatusDisplayController,tn as IURLService,Nn as RemoteUniscriptService,yn as SheetCollabCursorShape,$ as UniverCollaborationClientUIPlugin,In as WebBrowserSingleActiveUnitService,jn as WebURLService};
@@ -1 +1 @@
1
- function _0x5810(_0x5af484,_0x4eb6ac){_0x5af484=_0x5af484-0x1ca;const _0x272586=_0x2725();let _0x5810a4=_0x272586[_0x5af484];return _0x5810a4;}const _0x54082c=_0x5810;(function(_0x152375,_0x50e35c){const _0x31b20b=_0x5810,_0x5e0539=_0x152375();while(!![]){try{const _0x455653=parseInt(_0x31b20b(0x1ca))/0x1*(-parseInt(_0x31b20b(0x1cd))/0x2)+parseInt(_0x31b20b(0x1ce))/0x3*(parseInt(_0x31b20b(0x1dc))/0x4)+parseInt(_0x31b20b(0x1d0))/0x5+-parseInt(_0x31b20b(0x1d8))/0x6+-parseInt(_0x31b20b(0x1dd))/0x7*(-parseInt(_0x31b20b(0x1db))/0x8)+parseInt(_0x31b20b(0x1d1))/0x9*(parseInt(_0x31b20b(0x1cc))/0xa)+-parseInt(_0x31b20b(0x1d4))/0xb;if(_0x455653===_0x50e35c)break;else _0x5e0539['push'](_0x5e0539['shift']());}catch(_0x513e55){_0x5e0539['push'](_0x5e0539['shift']());}}}(_0x2725,0x58471));function _0x2725(){const _0xb00bff=['انتهت\x20صلاحية\x20تسجيل\x20الدخول\x20الخاص\x20بك،\x20انقر\x20فوق\x20موافق\x20لإعادة\x20تسجيل\x20الدخول،\x20وانقر\x20فوق\x20إلغاء\x20لحفظ\x20تعديلاتك\x20المحلية.','غرفة\x20التعاون\x20ممتلئة.\x20سيتم\x20حفظ\x20تعديلاتك\x20محليًا.','بدأ\x20حساب\x20الصيغة.','685614fIvftp','فشل\x20الاتصال،\x20يرجى\x20التحقق\x20من\x20شبكتك.','إجراءاتك\x20تتعارض\x20مع\x20أذونات\x20الخادم.\x20يرجى\x20حفظ\x20تعديلاتك\x20المحلية\x20في\x20مكان\x20آخر\x20حيث\x20سيتم\x20تجاهلها\x20بعد\x20تحديث\x20الصفحة.','72CHRXRa','11500iootYD','354291xYSWEr','جارٍ\x20مزامنة\x20بيانات\x20الخادم...','غير\x20قادر\x20على\x20إجراء\x20حساب\x20الصيغة\x20في\x20هذا\x20الوقت.\x20يرجى\x20المحاولة\x20مرة\x20أخرى\x20لاحقًا.','فتحت\x20نفس\x20الملف\x20في\x20علامة\x20تبويب\x20أخرى.\x20في\x20حالة\x20فقدان\x20البيانات،\x20لا\x20يمكنك\x20التحرير\x20في\x20علامة\x20التبويب\x20هذه.','جارٍ\x20المزامنة...','221NAgoiD','تم\x20إلغاء\x20امتيازات\x20التحرير\x20لأنه\x20تم\x20إغلاق\x20غرفة\x20التعاون.','100yXaSYo','2270rIwfxH','93qARMgY','خطأ\x20في\x20المصادقة','2595880SUUaZj','491256gAgSHx','فشل\x20الاتصال،\x20سنعيد\x20المحاولة\x20بعد\x20قليل.','انقر\x20لإعادة\x20الاتصال','9712659KKJgPl'];_0x2725=function(){return _0xb00bff;};return _0x2725();}const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x54082c(0x1d3)}},'collabStatus':{'fetchMiss':_0x54082c(0x1de),'conflict':'تعارضات\x20التحرير','notCollab':'ملف\x20محلي','synced':'تمت\x20المزامنة','syncing':_0x54082c(0x1e1),'offline':'غير\x20متصل،\x20سيتم\x20حفظ\x20التعديلات\x20محليًا'},'session':{'connection-failed':_0x54082c(0x1d9),'will-retry':_0x54082c(0x1d2),'room-full':_0x54082c(0x1d6),'collaboration-timeout':'الخادم\x20لا\x20يستجيب\x20لطلب\x20التعاون\x20الخاص\x20بك.\x20سيتم\x20حفظ\x20تعديلاتك\x20محليًا.'},'conflict':{'title':'تعارض\x20في\x20التعاون','content':'هناك\x20تعارض\x20بين\x20نسختك\x20المحلية\x20والنسخة\x20على\x20الخادم.\x20يرجى\x20حفظ\x20تعديلاتك\x20المحلية،\x20لأنها\x20ستُفقد\x20عند\x20إعادة\x20تحميل\x20الصفحة.'},'permission':{'title':_0x54082c(0x1cf),'content':_0x54082c(0x1da)},'collaboration':{'offline-data-not-saved':'لديك\x20تعديلات\x20غير\x20متصلة\x20لم\x20يتم\x20حفظها\x20على\x20الخادم.\x20يرجى\x20التحقق\x20من\x20شبكتك\x20والمحاولة\x20مرة\x20أخرى.','single-unit':{'warning':_0x54082c(0x1e0)},'closeRoom':_0x54082c(0x1cb)},'auth':{'needGotoLoginAlert':_0x54082c(0x1d5)},'formula':{'calculation':{'started':_0x54082c(0x1d7),'waiting':'قائمة\x20انتظار\x20حساب\x20الصيغة\x20ممتلئة،\x20في\x20انتظار\x20خانة\x20متاحة...','unable':_0x54082c(0x1df)}}}};export{e as default};
1
+ function _0x2bbc(){const _0x20cb8f=['انتهت\x20صلاحية\x20تسجيل\x20الدخول\x20الخاص\x20بك،\x20انقر\x20فوق\x20موافق\x20لإعادة\x20تسجيل\x20الدخول،\x20وانقر\x20فوق\x20إلغاء\x20لحفظ\x20تعديلاتك\x20المحلية.','831064uDruYF','2488605IfUiIn','تمت\x20المزامنة','126hGysUS','34mlQRVM','ملف\x20محلي','7673834tjjONG','جارٍ\x20مزامنة\x20بيانات\x20الخادم...','61399smLjOk','غرفة\x20التعاون\x20ممتلئة.\x20سيتم\x20حفظ\x20تعديلاتك\x20محليًا.','فتحت\x20نفس\x20الملف\x20في\x20علامة\x20تبويب\x20أخرى.\x20في\x20حالة\x20فقدان\x20البيانات،\x20لا\x20يمكنك\x20التحرير\x20في\x20علامة\x20التبويب\x20هذه.','5mcsLjU','فشل\x20الاتصال،\x20يرجى\x20التحقق\x20من\x20شبكتك.','لديك\x20تعديلات\x20غير\x20متصلة\x20لم\x20يتم\x20حفظها\x20على\x20الخادم.\x20يرجى\x20التحقق\x20من\x20شبكتك\x20والمحاولة\x20مرة\x20أخرى.','2951946uQUPnk','إجراءاتك\x20تتعارض\x20مع\x20أذونات\x20الخادم.\x20يرجى\x20حفظ\x20تعديلاتك\x20المحلية\x20في\x20مكان\x20آخر\x20حيث\x20سيتم\x20تجاهلها\x20بعد\x20تحديث\x20الصفحة.','تعارضات\x20التحرير','جارٍ\x20المزامنة...','1858464jipNfe','1198860kZVmYg','الخادم\x20لا\x20يستجيب\x20لطلب\x20التعاون\x20الخاص\x20بك.\x20سيتم\x20حفظ\x20تعديلاتك\x20محليًا.','غير\x20قادر\x20على\x20إجراء\x20حساب\x20الصيغة\x20في\x20هذا\x20الوقت.\x20يرجى\x20المحاولة\x20مرة\x20أخرى\x20لاحقًا.','هناك\x20تعارض\x20بين\x20نسختك\x20المحلية\x20والنسخة\x20على\x20الخادم.\x20يرجى\x20حفظ\x20تعديلاتك\x20المحلية،\x20لأنها\x20ستُفقد\x20عند\x20إعادة\x20تحميل\x20الصفحة.'];_0x2bbc=function(){return _0x20cb8f;};return _0x2bbc();}const _0x5bcbaa=_0x3a7c;(function(_0x42fd68,_0xb9a75d){const _0x2cda0b=_0x3a7c,_0x3ac3d5=_0x42fd68();while(!![]){try{const _0x521ef8=-parseInt(_0x2cda0b(0x1c0))/0x1*(-parseInt(_0x2cda0b(0x1d4))/0x2)+-parseInt(_0x2cda0b(0x1d1))/0x3+-parseInt(_0x2cda0b(0x1d0))/0x4*(-parseInt(_0x2cda0b(0x1c3))/0x5)+parseInt(_0x2cda0b(0x1c6))/0x6+parseInt(_0x2cda0b(0x1d6))/0x7+parseInt(_0x2cda0b(0x1ca))/0x8+parseInt(_0x2cda0b(0x1d3))/0x9*(-parseInt(_0x2cda0b(0x1cb))/0xa);if(_0x521ef8===_0xb9a75d)break;else _0x3ac3d5['push'](_0x3ac3d5['shift']());}catch(_0x407d34){_0x3ac3d5['push'](_0x3ac3d5['shift']());}}}(_0x2bbc,0x89bcb));function _0x3a7c(_0x55b39b,_0x4f89a3){_0x55b39b=_0x55b39b-0x1c0;const _0x2bbc2f=_0x2bbc();let _0x3a7c3f=_0x2bbc2f[_0x55b39b];return _0x3a7c3f;}const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':'انقر\x20لإعادة\x20الاتصال'}},'collabStatus':{'fetchMiss':_0x5bcbaa(0x1d7),'conflict':_0x5bcbaa(0x1c8),'notCollab':_0x5bcbaa(0x1d5),'synced':_0x5bcbaa(0x1d2),'syncing':_0x5bcbaa(0x1c9),'offline':'غير\x20متصل،\x20سيتم\x20حفظ\x20التعديلات\x20محليًا'},'session':{'connection-failed':_0x5bcbaa(0x1c4),'will-retry':'فشل\x20الاتصال،\x20سنعيد\x20المحاولة\x20بعد\x20قليل.','room-full':_0x5bcbaa(0x1c1),'collaboration-timeout':_0x5bcbaa(0x1cc)},'conflict':{'title':'تعارض\x20في\x20التعاون','content':_0x5bcbaa(0x1ce)},'permission':{'title':'خطأ\x20في\x20المصادقة','content':_0x5bcbaa(0x1c7)},'collaboration':{'offline-data-not-saved':_0x5bcbaa(0x1c5),'single-unit':{'warning':_0x5bcbaa(0x1c2)},'closeRoom':'تم\x20إلغاء\x20امتيازات\x20التحرير\x20لأنه\x20تم\x20إغلاق\x20غرفة\x20التعاون.'},'auth':{'needGotoLoginAlert':_0x5bcbaa(0x1cf)},'formula':{'calculation':{'started':'بدأ\x20حساب\x20الصيغة.','waiting':'قائمة\x20انتظار\x20حساب\x20الصيغة\x20ممتلئة،\x20في\x20انتظار\x20خانة\x20متاحة...','unable':_0x5bcbaa(0x1cd)}}}};export{e as default};