@univerjs-pro/collaboration-client-ui 0.12.2 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ja-JP.js +1 -1
  48. package/lib/umd/locale/ko-KR.js +1 -1
  49. package/lib/umd/locale/ru-RU.js +1 -1
  50. package/lib/umd/locale/vi-VN.js +1 -1
  51. package/lib/umd/locale/zh-CN.js +1 -1
  52. package/lib/umd/locale/zh-TW.js +1 -1
  53. package/package.json +18 -18
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x331486=_0x512f;(function(_0x1679de,_0x38e1da){const _0x32c275=_0x512f,_0x41f668=_0x1679de();while(!![]){try{const _0xdd3bcc=parseInt(_0x32c275(0x151))/0x1*(parseInt(_0x32c275(0x97))/0x2)+parseInt(_0x32c275(0x21a))/0x3+parseInt(_0x32c275(0x226))/0x4*(parseInt(_0x32c275(0x258))/0x5)+parseInt(_0x32c275(0x1a7))/0x6+-parseInt(_0x32c275(0x1d6))/0x7*(-parseInt(_0x32c275(0x1c6))/0x8)+-parseInt(_0x32c275(0x1a8))/0x9+-parseInt(_0x32c275(0x1b3))/0xa;if(_0xdd3bcc===_0x38e1da)break;else _0x41f668['push'](_0x41f668['shift']());}catch(_0x1dddc3){_0x41f668['push'](_0x41f668['shift']());}}}(_0x5658,0x455ff));var Yt=Object[_0x331486(0x10c)],Wt=(_0x2c3d55,_0x4066e3,_0x16202c)=>_0x4066e3 in _0x2c3d55?Yt(_0x2c3d55,_0x4066e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16202c}):_0x2c3d55[_0x4066e3]=_0x16202c,_=(_0x275655,_0x3920ff,_0x20ed2f)=>Wt(_0x275655,typeof _0x3920ff!='symbol'?_0x3920ff+'':_0x3920ff,_0x20ed2f);import{jsx as _0x5d25a9,jsxs as _0x88859b}from'react/jsx-runtime';import{CollaborationStatus as _0x1917c2,CollaborationSessionService as _0x46dc37,CollaborationController as _0x24f9da,DataLoaderService as _0x413219,MemberService as _0x5bfe2e,SessionStatus as _0x267c32,ILocalCacheService as _0x24b451,CollaborationUIEventService as _0x1939b6,CollaborationUIEventId as _0x282a4d,DocCollaborationEntity as _0x1fd1f0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x317300,getLocalCacheKey as _0x4579ea,LOCAL_CACHE_INTERVAL as _0x3e4b99,LOCAL_CACHE_INTERVAL_KEY as _0x17b7f2,UniverCollaborationClientPlugin as _0x545449,CollaborationSocketService as _0x1af29f,DEFAULT_WS_SESSION_TICKET_URL as _0x87d114,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x10f6ab,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4d4beb,UnitStatus as _0x3fa58f}from'@univerjs-pro/collaboration-client';function _0x512f(_0x5545e5,_0x24944d){const _0x5658b0=_0x5658();return _0x512f=function(_0x512ffe,_0x66d224){_0x512ffe=_0x512ffe-0x88;let _0x38c066=_0x5658b0[_0x512ffe];return _0x38c066;},_0x512f(_0x5545e5,_0x24944d);}import{LocaleService as _0x4b3f44,IUniverInstanceService as _0x34a5b3,Inject as _0x384b36,Injector as _0x2975ff,Disposable as _0x4064cc,createIdentifier as _0x201af0,ILogService as _0x1f29f4,ICommandService as _0xd74a37,Optional as _0x36f410,RxDisposable as _0x57605c,Workbook as _0x2745c9,DOC_RANGE_TYPE as _0x80033e,debounce as _0x3554ba,Rectangle as _0x16bdf7,DisposableCollection as _0x112c0e,toDisposable as _0x385cfe,UniverInstanceType as _0x4e690a,generateRandomId as _0x460716,COLORS as _0x572559,ColorKit as _0x3e6889,ThemeService as _0x4502e6,fromEventSubject as _0x13584e,Tools as _0x24ffc8,CommandType as _0x224740,IConfigService as _0x5f43ff,CanceledError as _0x2e132b,isFormulaString as _0x365838,isFormulaId as _0x31b7fb,ILocalStorageService as _0x25196f,DependentOn as _0x145aff,Plugin as _0x1d5629,merge as _0x1e7bf4,registerDependencies as _0x5c8afa,mergeOverrideWithDependencies as _0xf081e9,touchDependencies as _0x485043}from'@univerjs/core';import{useObservable as _0x45cd22,useDependency as _0x3e9eed,IUIPartsService as _0x559491,BuiltInUIPart as _0x17e272,connectInjector as _0x5a631e,IBeforeCloseService as _0x113bc4,IMessageService as _0xc89ae7,INotificationService as _0x10311c}from'@univerjs/ui';import{BehaviorSubject as _0x5adb5d,switchMap as _0x4ce806,of as _0x218df2,takeUntil as _0x136c33,debounceTime as _0x61f829,Subject as _0x49c822,filter as _0x5ad315,merge as _0x5486e4,combineLatest as _0x48dc8f,fromEvent as _0x1059cc,shareReplay as _0x266c9a,mapTo as _0x569761,distinctUntilChanged as _0x46c569}from'rxjs';import{Tooltip as _0x4d8ab2,clsx as _0x263bd8,MessageType as _0x27e95d}from'@univerjs/design';import{useRef as _0x6b64d9,createElement as _0x559a33,forwardRef as _0x1e262a,useCallback as _0xf2d695}from'react';import{IRemoteInstanceService as _0x9b3096}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x565bcb,RefRangeService as _0x59856c,SetSelectionsOperation as _0x4a1b82,SheetsSelectionsService as _0x318b21,EffectRefRangId as _0x5ab1aa,handleIRemoveRow as _0x2d3dff,handleIRemoveCol as _0x50a710,handleMoveRange as _0x240f5e,handleInsertRow as _0x14d58d,handleInsertRangeMoveRight as _0x2ba715,handleInsertRangeMoveDown as _0x4d752e,handleInsertCol as _0x5dd904,handleDeleteRangeMoveUp as _0x11ddcb,handleDeleteRangeMoveLeft as _0x31ca5c,runRefRangeMutations as _0x34ca57}from'@univerjs/sheets';import{Shape as _0x16364b,Rect as _0x38eea8,getColor as _0x57c8a3,RegularPolygon as _0x45a19c,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x30decc,Vector2 as _0x321485,SHEET_VIEWPORT_KEY as _0x1253b5,IRenderManagerService as _0x450a3a}from'@univerjs/engine-render';import{HTTPService as _0x3fa719,ISocketService as _0x48e0d4,WebSocketService as _0x5d29c5}from'@univerjs/network';import{IDocClipboardService as _0x54ca08,NodePositionConvertToCursor as _0x3ad41d,NodePositionConvertToRectRange as _0x545a0f,TEXT_RANGE_LAYER_INDEX as _0x53e827,SetDocZoomRatioOperation as _0x56b6e8,DocIMEInputManagerService as _0x4518ea,DocStateChangeManagerService as _0x31ecfe}from'@univerjs/docs-ui';import{IImageIoService as _0x331a67}from'@univerjs/drawing';import{ITransformService as _0x2843ad,CollaborationEvent as _0x2fc4d1,isTransformMutationFailure as _0x3d60d7,isTransformMutationsWithChangesetSuccess as _0xa9160d,RevisionService as _0x21d43a,ISnapshotServerService as _0x5eb23d}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x577316,RichTextEditingMutation as _0x206466,DocSelectionManagerService as _0x1bc8e5,DocSkeletonManagerService as _0x120002}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x51524b,serializeRangeWithSheet as _0x495e5f,FormulaExecuteStageType as _0x238a49,FormulaExecutedStateType as _0x144892,SetFormulaCalculationStartMutation as _0x96febf,SetFormulaCalculationNotificationMutation as _0x2312b3}from'@univerjs/engine-formula';import{map as _0x442185,filter as _0x28f0a4,throttleTime as _0x767ecc,takeUntil as _0x4acc07,switchMap as _0x120aca}from'rxjs/operators';import{SheetSkeletonManagerService as _0x362389,getCoordByCell as _0x50883c,getSheetObject as _0x128286}from'@univerjs/sheets-ui';function Ge({ref:_0x424f4e,..._0x34153a}){const _0x4b4853=_0x331486,{icon:_0x3bf4fc,id:_0x1f50b2,className:_0x193c0f,extend:_0x4a61af,..._0x36aa28}=_0x34153a,_0x347457=(_0x4b4853(0x18f)+_0x1f50b2+'\x20'+(_0x193c0f||''))[_0x4b4853(0x1b4)](),_0x5e2479=_0x6b64d9('_'+Ei());return At(_0x3bf4fc,''+_0x1f50b2,{'defIds':_0x3bf4fc[_0x4b4853(0x1bd)],'idSuffix':_0x5e2479[_0x4b4853(0xad)]},{'ref':_0x424f4e,'className':_0x347457,..._0x36aa28},_0x4a61af);}function At(_0x3347af,_0x3dc93b,_0x2b6a30,_0x789c69,_0x302039){const _0x3e49d6=_0x331486;return _0x559a33(_0x3347af[_0x3e49d6(0xc4)],{'key':_0x3dc93b,...gi(_0x3347af,_0x2b6a30,_0x302039),..._0x789c69},(vi(_0x3347af,_0x2b6a30)[_0x3e49d6(0x13d)]||[])[_0x3e49d6(0x2b6)]((_0x5e2d84,_0x4b7d76)=>At(_0x5e2d84,_0x3dc93b+'-'+_0x3347af[_0x3e49d6(0xc4)]+'-'+_0x4b7d76,_0x2b6a30,void 0x0,_0x302039)));}function gi(_0x3a4286,_0x353e93,_0x2f69bd){const _0x46ab78=_0x331486,_0x578d6b={..._0x3a4286[_0x46ab78(0x146)]};_0x2f69bd!=null&&_0x2f69bd['colorChannel1']&&_0x578d6b[_0x46ab78(0x2d9)]==='colorChannel1'&&(_0x578d6b[_0x46ab78(0x2d9)]=_0x2f69bd[_0x46ab78(0x212)]),_0x3a4286[_0x46ab78(0xc4)]===_0x46ab78(0x277)&&_0x578d6b['id']&&(_0x578d6b['id']=_0x578d6b['id']+_0x353e93[_0x46ab78(0x213)]),Object[_0x46ab78(0x25d)](_0x578d6b)[_0x46ab78(0x210)](([_0x18218e,_0x120626])=>{const _0x287128=_0x46ab78;_0x18218e===_0x287128(0x277)&&typeof _0x120626==_0x287128(0x1c1)&&(_0x578d6b[_0x18218e]=_0x120626['replace'](/url\(#(.*)\)/,_0x287128(0x17c)+_0x353e93[_0x287128(0x213)]+')'));});const {defIds:_0x381e60}=_0x353e93;return!_0x381e60||_0x381e60['length']===0x0||(_0x3a4286[_0x46ab78(0xc4)]===_0x46ab78(0xe1)&&_0x578d6b[_0x46ab78(0x23c)]&&(_0x578d6b[_0x46ab78(0x23c)]=_0x578d6b[_0x46ab78(0x23c)]+_0x353e93[_0x46ab78(0x213)]),Object[_0x46ab78(0x25d)](_0x578d6b)[_0x46ab78(0x210)](([_0x4f35b0,_0xa47daf])=>{const _0x566723=_0x46ab78;typeof _0xa47daf==_0x566723(0x1c1)&&(_0x578d6b[_0x4f35b0]=_0xa47daf['replace'](/url\(#(.*)\)/,_0x566723(0x17c)+_0x353e93[_0x566723(0x213)]+')'));})),_0x578d6b;}function vi(_0x1c5623,_0x58d8a6){const _0x314842=_0x331486;var _0x5da6c0;const {defIds:_0x1cb543}=_0x58d8a6;return!_0x1cb543||_0x1cb543[_0x314842(0xea)]===0x0?_0x1c5623:_0x1c5623[_0x314842(0xc4)]===_0x314842(0x9e)&&((_0x5da6c0=_0x1c5623[_0x314842(0x13d)])!=null&&_0x5da6c0[_0x314842(0xea)])?{..._0x1c5623,'children':_0x1c5623[_0x314842(0x13d)]['map'](_0x515c33=>typeof _0x515c33[_0x314842(0x146)]['id']=='string'&&_0x1cb543&&_0x1cb543['includes'](_0x515c33[_0x314842(0x146)]['id'])?{..._0x515c33,'attrs':{..._0x515c33['attrs'],'id':_0x515c33[_0x314842(0x146)]['id']+_0x58d8a6['idSuffix']}}:_0x515c33)}:_0x1c5623;}function Ei(){const _0x18fede=_0x331486;return Math[_0x18fede(0x17f)]()[_0x18fede(0x130)](0x24)[_0x18fede(0x161)](0x2,0x8);}Ge[_0x331486(0x13a)]=_0x331486(0x22a);const pi={'tag':'svg','attrs':{'xmlns':_0x331486(0x23a),'fill':_0x331486(0x14a),'viewBox':_0x331486(0xe5),'width':'1em','height':_0x331486(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x331486(0xb2)},'children':[{'tag':_0x331486(0xee),'attrs':{'stroke':'currentColor','d':_0x331486(0x2c9),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x331486(0x9e),'attrs':{},'children':[{'tag':_0x331486(0xf2),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x331486(0xee),'attrs':{'fill':_0x331486(0xca),'d':_0x331486(0x1f8)}}]}]}],'defIds':[_0x331486(0x23f)]},Pt=_0x1e262a(function(_0x4bb0a1,_0x36ee4f){return _0x559a33(Ge,Object['assign']({},_0x4bb0a1,{'id':'off-line-icon','ref':_0x36ee4f,'icon':pi}));});Pt[_0x331486(0x13a)]='OffLineIcon';const Oi={'tag':_0x331486(0x1b6),'attrs':{'xmlns':_0x331486(0x23a),'fill':_0x331486(0x14a),'viewBox':_0x331486(0x228),'width':_0x331486(0x25e),'height':_0x331486(0x25e)},'children':[{'tag':'g','attrs':{'clipPath':_0x331486(0x192)},'children':[{'tag':'path','attrs':{'stroke':_0x331486(0x1c7),'d':_0x331486(0x1fc),'strokeLinecap':_0x331486(0x20b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x331486(0xf2),'attrs':{'id':_0x331486(0x1c9)},'children':[{'tag':_0x331486(0xee),'attrs':{'fill':'white','d':_0x331486(0x1f8),'transform':_0x331486(0x21c)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},wt=_0x1e262a(function(_0x5a2320,_0x2818bc){const _0x426e41=_0x331486;return _0x559a33(Ge,Object[_0x426e41(0x141)]({},_0x5a2320,{'id':_0x426e41(0xe2),'ref':_0x2818bc,'icon':Oi}));});wt[_0x331486(0x13a)]=_0x331486(0x90);function Ti(_0x1834af){const _0x34e413=_0x331486;switch(_0x1834af){case _0x1917c2[_0x34e413(0x285)]:return _0x34e413(0x282);case _0x1917c2[_0x34e413(0x28a)]:return _0x34e413(0x224);case _0x1917c2[_0x34e413(0x29a)]:return'collabStatus.fetchMiss';case _0x1917c2[_0x34e413(0x1e9)]:return _0x34e413(0x2a7);case _0x1917c2[_0x34e413(0x1de)]:case _0x1917c2[_0x34e413(0xac)]:return'collabStatus.syncing';case _0x1917c2['SYNCED']:case _0x1917c2[_0x34e413(0x296)]:return _0x34e413(0x20d);}}function Ci(_0x4c78dd){const _0x30162b=_0x331486,{status$:_0x218754}=_0x4c78dd,_0x3b24d5=_0x45cd22(_0x218754,_0x1917c2[_0x30162b(0x1e9)]),_0x363bff=_0x3e9eed(_0x4b3f44),_0x57a3e9=_0x3e9eed(_0x46dc37),_0x2c8dc5=_0x3b24d5!==_0x1917c2[_0x30162b(0x285)],_0x3e98bc=_0x363bff['t'](Ti(_0x3b24d5)),_0x587ee4=_0x2c8dc5?_0x5d25a9(wt,{}):_0x5d25a9(Pt,{}),_0x1a9f4f=_0xf2d695(()=>{_0x2c8dc5||_0x57a3e9['reconnect']();},[_0x2c8dc5,_0x57a3e9]);function _0x22ed15(){const _0x35e691=_0x30162b;return _0x88859b(_0x35e691(0x257),{'className':_0x35e691(0xf6),'onClick':_0x1a9f4f,'children':[_0x5d25a9(_0x35e691(0x257),{'className':_0x263bd8('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x2c8dc5,'univer-text-red-500':!_0x2c8dc5}),'children':_0x587ee4}),_0x5d25a9(_0x35e691(0x257),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3e98bc})]});}return _0x2c8dc5?_0x22ed15():_0x5d25a9(_0x4d8ab2,{'title':_0x363bff['t']('collab-client.tooltip.reconnect'),'children':_0x22ed15()});}var Ri=Object[_0x331486(0x1ca)],Di=(_0x238ad1,_0x2d52b7,_0x35d1d6,_0x267e53)=>{const _0x2c2a0f=_0x331486;for(var _0x538944=_0x267e53>0x1?void 0x0:_0x267e53?Ri(_0x2d52b7,_0x35d1d6):_0x2d52b7,_0x215680=_0x238ad1[_0x2c2a0f(0xea)]-0x1,_0xdd238e;_0x215680>=0x0;_0x215680--)(_0xdd238e=_0x238ad1[_0x215680])&&(_0x538944=_0xdd238e(_0x538944)||_0x538944);return _0x538944;},se=(_0xa6fbd,_0x96cbb2)=>(_0x12a7cb,_0x5436ba)=>_0x96cbb2(_0x12a7cb,_0x5436ba,_0xa6fbd);let ae=class extends _0x4064cc{constructor(_0x27cf5c,_0x2eec9a,_0x2642ae,_0x29ee83){const _0x16063c=_0x331486;super(),_(this,_0x16063c(0xeb),new _0x5adb5d(_0x1917c2[_0x16063c(0x1e9)])),(this[_0x16063c(0xed)]=_0x27cf5c,this[_0x16063c(0x1fb)]=_0x2eec9a,this[_0x16063c(0x233)]=_0x2642ae,this[_0x16063c(0x175)]=_0x29ee83,this[_0x16063c(0xae)](),this[_0x16063c(0x22d)]());}[_0x331486(0x22d)](){const _0x281483=_0x331486;this[_0x281483(0xf5)](this[_0x281483(0xed)][_0x281483(0x20f)][_0x281483(0x181)](_0x4ce806(()=>{const _0x5b7b18=_0x281483,_0x1eba79=this[_0x5b7b18(0xed)]['getFocusedUnit']();return _0x1eba79?this[_0x5b7b18(0x233)][_0x5b7b18(0x112)](_0x1eba79['getUnitId']()):_0x218df2(null);}),_0x4ce806(_0x1ada31=>_0x1ada31?_0x1ada31[_0x281483(0x1b9)]:_0x218df2(_0x1917c2['NOT_COLLAB'])))[_0x281483(0x1e8)](_0x31ea82=>{const _0x36667a=_0x281483;this[_0x36667a(0xeb)]['next'](_0x31ea82);}));}['_initStatusComponent'](){const _0xfbcfe9=_0x331486;this[_0xfbcfe9(0xf5)](this[_0xfbcfe9(0x175)][_0xfbcfe9(0xa9)](_0x17e272[_0xfbcfe9(0x10f)],()=>_0x5a631e(bi({'status$':this['_status$']['asObservable']()}),this[_0xfbcfe9(0x1fb)])));}};ae=Di([se(0x0,_0x34a5b3),se(0x1,_0x384b36(_0x2975ff)),se(0x2,_0x384b36(_0x24f9da)),se(0x3,_0x559491)],ae);function bi(_0x16d255){const {status$:_0x1e6311}=_0x16d255;return function(){return _0x5d25a9(Ci,{'status$':_0x1e6311});};}const yt=_0x201af0('uni.network.url-service');var Ni=Object[_0x331486(0x1ca)],Li=(_0x47e3f6,_0x40e517,_0x4c88bb,_0x4ce20e)=>{const _0x4322f0=_0x331486;for(var _0x1feb6f=_0x4ce20e>0x1?void 0x0:_0x4ce20e?Ni(_0x40e517,_0x4c88bb):_0x40e517,_0x51a975=_0x47e3f6[_0x4322f0(0xea)]-0x1,_0x1c4dfe;_0x51a975>=0x0;_0x51a975--)(_0x1c4dfe=_0x47e3f6[_0x51a975])&&(_0x1feb6f=_0x1c4dfe(_0x1feb6f)||_0x1feb6f);return _0x1feb6f;},K=(_0x38b928,_0x45772b)=>(_0x108bbb,_0x1fcb9b)=>_0x45772b(_0x108bbb,_0x1fcb9b,_0x38b928);let ce=class extends _0x57605c{constructor(_0x1d6e59,_0x58eb4f,_0x5b8146,_0x3d69e7,_0x1bca4a){const _0x4b2e65=_0x331486;super(),this['_urlService']=_0x1d6e59,this[_0x4b2e65(0xb6)]=_0x58eb4f,this[_0x4b2e65(0x124)]=_0x5b8146,this['_dataLoaderService']=_0x3d69e7,_0x1bca4a?_0x1bca4a==null||_0x1bca4a[_0x4b2e65(0x207)]()['then'](()=>this[_0x4b2e65(0x119)]()):(this[_0x4b2e65(0xb6)][_0x4b2e65(0x1f9)]('[CollaborationDataLoaderController]',_0x4b2e65(0x26a)),this[_0x4b2e65(0x119)]());}async['_init'](){const _0x1d69a2=_0x331486,_0xca79ab=this[_0x1d69a2(0x231)][_0x1d69a2(0xdd)]('unit'),_0x471d71=this[_0x1d69a2(0x231)][_0x1d69a2(0xdd)](_0x1d69a2(0x1d3)),_0x150b27=this[_0x1d69a2(0x231)]['getParam'](_0x1d69a2(0x1df));if(!_0xca79ab||!_0x471d71){this[_0x1d69a2(0xb6)][_0x1d69a2(0x1f9)]('[CollaborationDataLoaderController]',_0x1d69a2(0x28c));return;}const _0x4eac15=await this[_0x1d69a2(0x159)][_0x1d69a2(0x23e)](_0xca79ab,Number(_0x471d71),_0x150b27);_0x4eac15&&_0x4eac15 instanceof _0x2745c9&&this['_setupSubUnitSync'](_0x4eac15);}async[_0x331486(0x139)](_0x38a98e){const _0x156950=_0x331486;await this[_0x156950(0x167)](_0x38a98e),_0x38a98e[_0x156950(0x26b)][_0x156950(0x181)](_0x136c33(this[_0x156950(0x134)]))[_0x156950(0x1e8)](_0x5b6ac7=>{const _0x5a8cc5=_0x156950;_0x5b6ac7&&this[_0x5a8cc5(0x2c8)](_0x5b6ac7);}),this[_0x156950(0x231)]['urlChange$'][_0x156950(0x181)](_0x136c33(this[_0x156950(0x134)]))[_0x156950(0x1e8)](()=>this[_0x156950(0x167)](_0x38a98e));}[_0x331486(0x2c8)](_0x1867de,_0x17003a=!0x1){const _0x5264db=_0x331486,_0x2b53f4=this[_0x5264db(0x231)][_0x5264db(0xdd)]('subunit');_0x1867de['getSheetId']()!==_0x2b53f4&&this[_0x5264db(0x231)][_0x5264db(0xe8)](_0x5264db(0x1df),_0x1867de[_0x5264db(0x1d2)](),_0x17003a);}async[_0x331486(0x167)](_0x1b33fb){const _0x2193f3=_0x331486;var _0x1c6e97;const _0x5e59b3=this[_0x2193f3(0x231)][_0x2193f3(0xdd)](_0x2193f3(0x1df));if(!_0x5e59b3||!_0x1b33fb[_0x2193f3(0x2cf)](_0x5e59b3)){const _0x2ae776=_0x1b33fb['getUnhiddenWorksheets']()[0x0],_0x83f55f=_0x1b33fb[_0x2193f3(0x2cf)](_0x2ae776);if(!_0x83f55f)return;this['_updateURLWithCurrentState'](_0x83f55f,!0x0),await this[_0x2193f3(0x124)][_0x2193f3(0x255)](_0x565bcb['id'],{'unitId':_0x1b33fb['getUnitId'](),'subUnitId':_0x2ae776});return;}((_0x1c6e97=_0x1b33fb[_0x2193f3(0x145)]())==null?void 0x0:_0x1c6e97[_0x2193f3(0x1d2)]())!==_0x5e59b3&&await this['_commandService'][_0x2193f3(0x255)](_0x565bcb['id'],{'unitId':_0x1b33fb['getUnitId'](),'subUnitId':_0x5e59b3});}};ce=Li([K(0x0,yt),K(0x1,_0x1f29f4),K(0x2,_0xd74a37),K(0x3,_0x384b36(_0x413219)),K(0x4,_0x36f410(_0x9b3096))],ce);var Ui=Object['getOwnPropertyDescriptor'],Mi=(_0x473793,_0x470c43,_0x353253,_0x447dd4)=>{const _0x193748=_0x331486;for(var _0x389849=_0x447dd4>0x1?void 0x0:_0x447dd4?Ui(_0x470c43,_0x353253):_0x470c43,_0x1f482e=_0x473793[_0x193748(0xea)]-0x1,_0x54c819;_0x1f482e>=0x0;_0x1f482e--)(_0x54c819=_0x473793[_0x1f482e])&&(_0x389849=_0x54c819(_0x389849)||_0x389849);return _0x389849;},rt=(_0x38e646,_0xfcfb8d)=>(_0x7644e8,_0x5a9a08)=>_0xfcfb8d(_0x7644e8,_0x5a9a08,_0x38e646);let $e=class extends _0x57605c{constructor(_0x404724,_0x12cf71){const _0x4d4779=_0x331486;super(),this['_docClipboardService']=_0x404724,this[_0x4d4779(0x275)]=_0x12cf71,this[_0x4d4779(0x119)]();}['_init'](){const _0x54cd3c=_0x331486,_0x159486=this;this[_0x54cd3c(0xf5)](this[_0x54cd3c(0xbd)]['addClipboardHook']({'onBeforePasteImage':async _0x37c6bb=>{const _0x378404=_0x54cd3c,_0x5cf93e=await _0x159486[_0x378404(0x275)][_0x378404(0x2d3)](_0x37c6bb);return _0x5cf93e?{'source':_0x5cf93e['source'],'imageSourceType':_0x5cf93e[_0x378404(0x1a5)]}:null;}}));}};$e=Mi([rt(0x0,_0x54ca08),rt(0x1,_0x331a67)],$e);const ot=[_0x331486(0x158),'jiqing.500',_0x331486(0x1d5),_0x331486(0x2b9),_0x331486(0x221),_0x331486(0x168)];class Ke extends _0x4064cc{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x331486(0x12a)](_0x30d743){const _0x2296cf=_0x331486;if(this[_0x2296cf(0x180)][_0x2296cf(0x1ef)](_0x30d743))return this['_assignedColors']['get'](_0x30d743);const _0x4a3119=ot[this[_0x2296cf(0x142)]];return this['_colorIndex']=(this[_0x2296cf(0x142)]+0x1)%ot[_0x2296cf(0xea)],this['_assignedColors'][_0x2296cf(0x1c0)](_0x30d743,_0x4a3119),_0x4a3119;}}function $t(_0x28ba6b){let _0x4e150a='';for(const _0x55b3d4 of _0x28ba6b){const {startOffset:_0x3d8647,endOffset:_0x1c229f,isActive:_0x1867a0,rangeType:_0x569997,segmentId:_0xdb6b78,segmentPage:_0x29347b}=_0x55b3d4;_0x4e150a['length']&&(_0x4e150a+=','),_0x4e150a+=_0x3d8647+':'+_0x1c229f+':'+(_0x1867a0?'1':'0')+':'+_0x569997+':'+_0xdb6b78+':'+_0x29347b;}return _0x4e150a;}function Ai(_0x47ba73){const _0x431a3e=_0x331486,_0x53a936=_0x47ba73[_0x431a3e(0x1fa)](','),_0x31aead=[];for(const _0x45a418 of _0x53a936){const [_0x46c4db,_0x5ac9a5,_0x23dbf5,_0x239709,_0xb0198e,_0x2da7a7]=_0x45a418[_0x431a3e(0x1fa)](':');_0x31aead['push']({'startOffset':Number(_0x46c4db),'endOffset':Number(_0x5ac9a5),'collapsed':_0x46c4db===_0x5ac9a5,'isActive':_0x23dbf5==='1','rangeType':_0x239709===_0x80033e['TEXT']?_0x80033e['TEXT']:_0x80033e[_0x431a3e(0xf4)],'segmentId':typeof _0xb0198e==_0x431a3e(0x1c1)?String(_0xb0198e):'','segmentPage':Number(_0x2da7a7!=null?_0x2da7a7:-0x1)});}return _0x31aead[_0x431a3e(0x244)](_0x238c0b=>_0x238c0b['isActive'])||(_0x31aead[0x0][_0x431a3e(0x91)]=!0x0),_0x31aead;}class ze extends _0x57605c{constructor(){const _0x387947=_0x331486;super(...arguments),_(this,'_collabCursorState$',new _0x5adb5d(null)),_(this,'collabCursorState$',this[_0x387947(0x162)]['asObservable']());}['syncEditingCollabCursor'](_0x22bd83){const _0x4ec336=_0x331486,{unitID:_0x4e2d6f,memberID:_0x32e591,textRanges:_0x317303}=_0x22bd83,_0xc2cbf7=$t(_0x317303);if(_0xc2cbf7==='')return;const _0x1539e0={'unitID':_0x4e2d6f,'memberID':_0x32e591,'selection':_0xc2cbf7};this[_0x4ec336(0x162)][_0x4ec336(0x1c4)](_0x1539e0);}}var Pi=Object['getOwnPropertyDescriptor'],wi=(_0x3c5a60,_0x24b2e0,_0xb5b58,_0x27b12c)=>{const _0x52c88a=_0x331486;for(var _0x2793f2=_0x27b12c>0x1?void 0x0:_0x27b12c?Pi(_0x24b2e0,_0xb5b58):_0x24b2e0,_0x3a9712=_0x3c5a60[_0x52c88a(0xea)]-0x1,_0x33da9e;_0x3a9712>=0x0;_0x3a9712--)(_0x33da9e=_0x3c5a60[_0x3a9712])&&(_0x2793f2=_0x33da9e(_0x2793f2)||_0x2793f2);return _0x2793f2;},A=(_0x3e5f8e,_0x4cbafd)=>(_0x55b439,_0x4e139b)=>_0x4cbafd(_0x55b439,_0x4e139b,_0x3e5f8e);const yi=0x12c,$i=0x64;let xe=class extends _0x57605c{constructor(_0x45209f,_0x200c7a,_0x5f55b5,_0x4f56b4,_0x4d31de,_0x15c22e,_0x422529,_0x469c3e,_0x59749a){const _0x1e9a4e=_0x331486;super(),_(this,_0x1e9a4e(0x280),!0x1),_(this,_0x1e9a4e(0x119),!0x1),_(this,'_cursorInfo$',new _0x5adb5d(new Map())),_(this,_0x1e9a4e(0x2b8),this[_0x1e9a4e(0x24e)]['asObservable']()),_(this,_0x1e9a4e(0x1c2),new _0x5adb5d([])),_(this,_0x1e9a4e(0x104),this['_roomMembers$'][_0x1e9a4e(0x181)](_0x61f829(yi))),_(this,'_updateLocalCursor',_0x3554ba(_0x153a03=>{const _0x14e977=_0x1e9a4e,_0x35b81e={'eventID':_0x2fc4d1[_0x14e977(0x194)],'data':{'unitID':this['unitID'],'memberID':this[_0x14e977(0x2c7)][_0x14e977(0x173)](),'selection':$t(_0x153a03)}};this[_0x14e977(0x2c7)][_0x14e977(0x1e3)](_0x35b81e,this[_0x14e977(0x203)]);},$i)),(this['unitID']=_0x45209f,this[_0x1e9a4e(0x2c7)]=_0x200c7a,this[_0x1e9a4e(0x1fb)]=_0x5f55b5,this[_0x1e9a4e(0x157)]=_0x4f56b4,this['_memberService']=_0x4d31de,this[_0x1e9a4e(0x123)]=_0x15c22e,this['_transformService']=_0x422529,this[_0x1e9a4e(0xed)]=_0x469c3e,this[_0x1e9a4e(0x124)]=_0x59749a);}get[_0x331486(0x2b3)](){const _0x28e2fd=_0x331486;return this[_0x28e2fd(0x24e)][_0x28e2fd(0xf0)]();}get[_0x331486(0x28b)](){const _0x4c3240=_0x331486;return this[_0x4c3240(0x1c2)][_0x4c3240(0xf0)]();}[_0x331486(0x1af)](){const _0x37bcb6=_0x331486;super[_0x37bcb6(0x1af)](),this[_0x37bcb6(0x24e)][_0x37bcb6(0x1c4)](new Map()),this[_0x37bcb6(0x24e)][_0x37bcb6(0x25a)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x37bcb6(0x25a)]();}[_0x331486(0x2ba)](){const _0x53fbdc=_0x331486;this[_0x53fbdc(0x119)]||(this[_0x53fbdc(0x119)]=!0x0,this[_0x53fbdc(0x2c7)][_0x53fbdc(0x21b)][_0x53fbdc(0x181)](_0x136c33(this[_0x53fbdc(0x134)]))['subscribe'](_0x219175=>{const _0x59efdf=_0x53fbdc;_0x219175===_0x267c32[_0x59efdf(0x10b)]?this[_0x59efdf(0x2d4)]():this[_0x59efdf(0x1c3)]();}),this[_0x53fbdc(0x2c7)][_0x53fbdc(0x18a)][_0x53fbdc(0x181)](_0x136c33(this['dispose$']))[_0x53fbdc(0x1e8)](_0x4c7c92=>{const _0x374fa9=_0x53fbdc,_0x353ac2=_0x4c7c92[_0x374fa9(0x163)];_0x353ac2===_0x2fc4d1[_0x374fa9(0x194)]&&this[_0x374fa9(0x2d8)](_0x4c7c92),_0x353ac2===_0x2fc4d1[_0x374fa9(0xf1)]&&this['_onCursorDelete'](_0x4c7c92);}),this[_0x53fbdc(0xf5)](this[_0x53fbdc(0x124)][_0x53fbdc(0x2b2)](_0x5687f1=>{const _0x2dd774=_0x53fbdc,_0x378355=_0x5687f1[_0x2dd774(0x8f)];_0x378355!=null&&this['_online']&&_0x5687f1['id']===_0x577316['id']&&_0x378355[_0x2dd774(0x19a)]===this[_0x2dd774(0x203)]&&_0x378355[_0x2dd774(0x111)]===!0x1&&_0x378355[_0x2dd774(0x291)][_0x2dd774(0xea)]>0x0&&this[_0x2dd774(0x16e)](_0x378355[_0x2dd774(0x291)]);})),this[_0x53fbdc(0x123)]['collabCursorState$'][_0x53fbdc(0x181)](_0x136c33(this[_0x53fbdc(0x134)]))[_0x53fbdc(0x1e8)](_0x1436f4=>{const _0x47ea70=_0x53fbdc;if((_0x1436f4==null?void 0x0:_0x1436f4[_0x47ea70(0x203)])!==this['unitID'])return;const _0x51db92={'eventID':_0x2fc4d1[_0x47ea70(0x194)],'data':_0x1436f4};this[_0x47ea70(0x2d8)](_0x51db92);}),this[_0x53fbdc(0xf5)](this['_commandService'][_0x53fbdc(0x2b2)](_0x38b82d=>{const _0x16de92=_0x53fbdc;if(_0x38b82d[_0x16de92(0x8f)]==null)return;const _0x210477=_0x38b82d[_0x16de92(0x8f)];if(_0x38b82d['id']!==_0x206466['id']||_0x210477['unitId']!==this[_0x16de92(0x203)])return;const _0x2ed1a3={'id':_0x16de92(0xb1),'params':_0x210477},_0x575ecc=this[_0x16de92(0x2b3)];for(const [_0x3c5d9,_0x21d7d4]of _0x575ecc){const _0x4e42a7={'id':_0x16de92(0xb1),'params':{'unitId':this[_0x16de92(0x203)],'actions':null,'textRanges':_0x21d7d4[_0x16de92(0x291)]}},_0x285042=this['_transformService'][_0x16de92(0x2d0)](_0x2ed1a3,_0x4e42a7,!0x1);if(_0x3d60d7(_0x285042))throw _0x285042[_0x16de92(0x17e)];_0x575ecc[_0x16de92(0x1c0)](_0x3c5d9,{..._0x21d7d4,'ranges':_0x285042[_0x16de92(0x264)][_0x16de92(0x8f)][_0x16de92(0x1d1)]});}queueMicrotask(()=>{const _0x30408d=_0x16de92;this[_0x30408d(0x24e)][_0x30408d(0x1c4)](_0x575ecc);});})));}['_onCursorUpdate'](_0x14f971){const _0x100b23=_0x331486;var _0x4ad882,_0x31ef98;const {memberID:_0x1bd41b,selection:_0x24fac2}=_0x14f971['data'],_0x31ef9e=Ai(_0x24fac2),_0x17ea68=(_0x31ef98=(_0x4ad882=this[_0x100b23(0xd9)][_0x100b23(0x2d1)](this[_0x100b23(0x203)],_0x1bd41b))==null?void 0x0:_0x4ad882[_0x100b23(0x169)])!=null?_0x31ef98:_0x100b23(0xd1),_0x2cf1e4={'color':this[_0x100b23(0x157)]['assignAColorForMemberID'](_0x1bd41b),'name':_0x17ea68,'ranges':_0x31ef9e},_0x24041a=this[_0x100b23(0x2b3)];_0x24041a['set'](_0x1bd41b,_0x2cf1e4),this[_0x100b23(0x24e)][_0x100b23(0x1c4)](_0x24041a);}[_0x331486(0x220)](_0x57c357){const _0x25dd84=_0x331486,{memberID:_0x199527}=_0x57c357['data'],_0xd8eeb6=this['cursorInfo'];_0xd8eeb6['delete'](_0x199527),this[_0x25dd84(0x24e)][_0x25dd84(0x1c4)](_0xd8eeb6);}['_toggleOnline'](){const _0x577493=_0x331486;var _0x4276f7;if(this[_0x577493(0x280)]=!0x0,((_0x4276f7=this[_0x577493(0xed)][_0x577493(0xcb)]())==null?void 0x0:_0x4276f7[_0x577493(0x18c)]())!==this['unitID'])return;const _0x4d285e=this['_injector']['get'](_0x1bc8e5)[_0x577493(0x13f)]();Array[_0x577493(0x238)](_0x4d285e)&&_0x4d285e[_0x577493(0xea)]>0x0&&this['_updateLocalCursor'](_0x4d285e);}['_toggleOffline'](){const _0x2d5c67=_0x331486;this[_0x2d5c67(0x280)]=!0x1;}};xe=wi([A(0x2,_0x384b36(_0x2975ff)),A(0x3,_0x384b36(Ke)),A(0x4,_0x384b36(_0x5bfe2e)),A(0x5,_0x384b36(ze)),A(0x6,_0x2843ad),A(0x7,_0x34a5b3),A(0x8,_0xd74a37)],xe);var xi=Object[_0x331486(0x1ca)],Bi=(_0x3df158,_0x396d24,_0x3165c5,_0x396ded)=>{const _0x24e981=_0x331486;for(var _0x1136cb=_0x396ded>0x1?void 0x0:_0x396ded?xi(_0x396d24,_0x3165c5):_0x396d24,_0x20532b=_0x3df158[_0x24e981(0xea)]-0x1,_0x4998b1;_0x20532b>=0x0;_0x20532b--)(_0x4998b1=_0x3df158[_0x20532b])&&(_0x1136cb=_0x4998b1(_0x1136cb)||_0x1136cb);return _0x1136cb;},B=(_0x457f98,_0x4111af)=>(_0xecdfe3,_0x6ccdb8)=>_0x4111af(_0xecdfe3,_0x6ccdb8,_0x457f98);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x4ef1a9=[],_0x2c8f8c=!0x1;return _0x5e419a=>{const _0x44b52b=_0x512f;_0x4ef1a9[_0x44b52b(0x118)](_0x5e419a),_0x2c8f8c||(_0x2c8f8c=!0x0,setTimeout(()=>{const _0x162cf2=_0x44b52b;_0x4ef1a9[_0x162cf2(0x210)](_0x5a1582=>_0x5a1582()),_0x4ef1a9=[],_0x2c8f8c=!0x1;}));};};let Be=class extends _0x57605c{constructor(_0x2a0b8e,_0x4d05c3,_0x18d0bb,_0xbdf7b7,_0x1082ac,_0x1e718a,_0x1a7891,_0x3f87ea){const _0x5a44fa=_0x331486;super(),_(this,_0x5a44fa(0x280),!0x1),_(this,_0x5a44fa(0x119),!0x1),_(this,_0x5a44fa(0x24e),new _0x5adb5d(new Map())),_(this,_0x5a44fa(0x2b8),this[_0x5a44fa(0x24e)][_0x5a44fa(0x149)]()),_(this,_0x5a44fa(0x1c2),new _0x5adb5d([])),_(this,'roomMembers$',this[_0x5a44fa(0x1c2)][_0x5a44fa(0x181)](_0x61f829(Fi))),_(this,_0x5a44fa(0x16e),_0x3554ba((_0x45eec5,_0x591b80)=>{const _0x123c0b=_0x5a44fa,_0x3d0c95={'eventID':_0x2fc4d1[_0x123c0b(0x194)],'data':{'unitID':this[_0x123c0b(0x203)],'memberID':this[_0x123c0b(0x2c7)][_0x123c0b(0x173)](),'selection':_0x495e5f(_0x45eec5,_0x591b80[_0x123c0b(0xe7)])}};this[_0x123c0b(0x2c7)][_0x123c0b(0x1e3)](_0x3d0c95,this[_0x123c0b(0x203)]);},ki)),(this[_0x5a44fa(0x203)]=_0x2a0b8e,this[_0x5a44fa(0x2c7)]=_0x4d05c3,this[_0x5a44fa(0x1fb)]=_0x18d0bb,this[_0x5a44fa(0x157)]=_0xbdf7b7,this['_memberService']=_0x1082ac,this[_0x5a44fa(0xed)]=_0x1e718a,this[_0x5a44fa(0x124)]=_0x1a7891,this['_refRangeService']=_0x3f87ea);}get[_0x331486(0x2b3)](){const _0x4899a3=_0x331486;return this['_cursorInfo$'][_0x4899a3(0xf0)]();}get[_0x331486(0x28b)](){const _0x547bf5=_0x331486;return this['_roomMembers$'][_0x547bf5(0xf0)]();}[_0x331486(0x1af)](){const _0x16f80c=_0x331486;super[_0x16f80c(0x1af)](),this[_0x16f80c(0x24e)]['next'](new Map()),this[_0x16f80c(0x24e)][_0x16f80c(0x25a)](),this[_0x16f80c(0x1c2)]['next']([]),this['_roomMembers$'][_0x16f80c(0x25a)]();}[_0x331486(0x2ba)](){const _0x2af471=_0x331486;this['_init']||(this[_0x2af471(0x119)]=!0x0,this['_session'][_0x2af471(0x21b)][_0x2af471(0x181)](_0x136c33(this[_0x2af471(0x134)]))[_0x2af471(0x1e8)](_0xf812c6=>{const _0x3cf755=_0x2af471;_0xf812c6===_0x267c32[_0x3cf755(0x10b)]?this[_0x3cf755(0x2d4)]():this[_0x3cf755(0x1c3)]();}),this['_session'][_0x2af471(0x18a)][_0x2af471(0x181)](_0x136c33(this[_0x2af471(0x134)]))['subscribe'](_0x31dd76=>{const _0x2592d5=_0x2af471,_0x93bf79=_0x31dd76[_0x2592d5(0x163)];_0x93bf79===_0x2fc4d1['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x31dd76),_0x93bf79===_0x2fc4d1['USERS_LEAVE']&&this[_0x2592d5(0x220)](_0x31dd76);}),this[_0x2af471(0x218)](),this[_0x2af471(0xf5)](this['_commandService'][_0x2af471(0x2b2)](_0x5aa271=>{const _0x215a15=_0x2af471;if(this[_0x215a15(0x280)]&&_0x5aa271['id']===_0x4a1b82['id']&&_0x5aa271[_0x215a15(0x8f)]['unitId']===this[_0x215a15(0x203)]){const _0x3b4b94=_0x5aa271[_0x215a15(0x8f)];this['_updateLocalCursor'](_0x3b4b94[_0x215a15(0xfd)],_0x3b4b94[_0x215a15(0x11a)][0x0]);}})));}[_0x331486(0x2d8)](_0x581d36){const _0x428a36=_0x331486;var _0x2eeee5,_0x148ee8;const {memberID:_0x78f743,selection:_0x5e0b9b}=_0x581d36['data'],{sheetName:_0x164cda,range:_0x264bfb}=_0x51524b(_0x5e0b9b),_0x4f864f={'name':(_0x148ee8=(_0x2eeee5=this[_0x428a36(0xd9)]['getMember'](this['unitID'],_0x78f743))==null?void 0x0:_0x2eeee5[_0x428a36(0x169)])!=null?_0x148ee8:_0x428a36(0xd1),'range':this[_0x428a36(0x1cc)](_0x164cda,_0x264bfb),'sheetID':_0x164cda,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x78f743),'selection':_0x5e0b9b},_0x59316b=this[_0x428a36(0x2b3)];_0x59316b[_0x428a36(0x1c0)](_0x78f743,_0x4f864f),this[_0x428a36(0x24e)][_0x428a36(0x1c4)](_0x59316b);}[_0x331486(0x220)](_0x4f1a3e){const _0x1a3eb3=_0x331486,{memberID:_0x5034e6}=_0x4f1a3e[_0x1a3eb3(0x126)],_0x471cd1=this[_0x1a3eb3(0x2b3)];_0x471cd1[_0x1a3eb3(0x211)](_0x5034e6),this[_0x1a3eb3(0x24e)]['next'](_0x471cd1);}[_0x331486(0x1cc)](_0x498337,_0x526604){const _0x2ae91f=_0x331486;var _0x4d041b,_0x2312bc;const _0x4e8507=(_0x2312bc=(_0x4d041b=this[_0x2ae91f(0xed)][_0x2ae91f(0x1ce)](this[_0x2ae91f(0x203)]))==null?void 0x0:_0x4d041b['getSheetBySheetId'](_0x498337))==null?void 0x0:_0x2312bc[_0x2ae91f(0x29b)]();return(_0x4e8507==null?void 0x0:_0x4e8507[_0x2ae91f(0xa3)](_0x47d55a=>_0x16bdf7[_0x2ae91f(0x28d)](_0x47d55a,_0x526604)))||_0x526604;}[_0x331486(0x218)](){const _0x38f171=_0x331486,_0x3a9d77=new _0x112c0e(),_0x3346ff=Hi(),_0x8ac394=()=>{const _0x4c88bf=_0x512f;_0x3a9d77['dispose']();const _0x18f6d7=(_0x58fbb1,_0x4006de,_0x4b2cad,_0x58dd61)=>{const _0x3628f6=_0x512f;let _0x2fcd97=[];switch(_0x58fbb1['id']){case _0x5ab1aa[_0x3628f6(0x14c)]:{_0x2fcd97=_0x31ca5c(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['DeleteRangeMoveUpCommandId']:{_0x2fcd97=_0x11ddcb(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0x1f5)]:{_0x2fcd97=_0x5dd904(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['InsertRangeMoveDownCommandId']:{_0x2fcd97=_0x4d752e(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0x25f)]:{_0x2fcd97=_0x2ba715(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0xc5)]:{_0x2fcd97=_0x14d58d(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['MoveRangeCommandId']:{_0x2fcd97=_0x240f5e(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa[_0x3628f6(0x11b)]:{_0x2fcd97=_0x50a710(_0x58fbb1,_0x58dd61);break;}case _0x5ab1aa['RemoveRowCommandId']:{_0x2fcd97=_0x2d3dff(_0x58fbb1,_0x58dd61);break;}}const _0x558288=_0x34ca57(_0x2fcd97,_0x58dd61),_0x4430de=this[_0x3628f6(0x2b3)]['get'](_0x4006de);if(_0x4430de&&_0x558288){const _0x59e3f0={..._0x4430de,'range':_0x558288};this['cursorInfo'][_0x3628f6(0x1c0)](_0x4006de,_0x59e3f0),_0x3346ff(()=>{const _0x45215f=_0x3628f6,_0x51aedd=this['_refRangeService'][_0x45215f(0xa5)](_0x558288,_0x5beb84=>(_0x51aedd['dispose'](),_0x18f6d7(_0x5beb84,_0x4006de,_0x4b2cad,_0x558288)));_0x3a9d77['add'](_0x51aedd);});}return{'redos':[],'undos':[]};};this[_0x4c88bf(0x2b3)][_0x4c88bf(0x210)]((_0x57255d,_0x9fb244)=>{const _0x50f871=_0x4c88bf,{range:_0x2b35cb,sheetID:_0x9e8dff}=_0x57255d,_0x415ec7=this[_0x50f871(0xc9)][_0x50f871(0xa5)](_0x2b35cb,_0x537bd1=>(_0x415ec7['dispose'](),_0x18f6d7(_0x537bd1,_0x9fb244,_0x9e8dff,_0x2b35cb)));_0x3a9d77['add'](_0x415ec7);});};this[_0x38f171(0xf5)](_0x385cfe(this[_0x38f171(0x24e)][_0x38f171(0x1e8)](()=>{_0x8ac394();})));}[_0x331486(0x2d4)](){const _0x4212d3=_0x331486;var _0x1d4d60,_0x452789;if(this[_0x4212d3(0x280)]=!0x0,((_0x1d4d60=this['_univerInstanceService'][_0x4212d3(0xcb)]())==null?void 0x0:_0x1d4d60[_0x4212d3(0x18c)]())!==this['unitID'])return;const _0x338a0a=(_0x452789=this['_injector'][_0x4212d3(0x1e7)](_0x318b21)['getCurrentSelections']())==null?void 0x0:_0x452789[0x0],_0x42342f=this[_0x4212d3(0xed)][_0x4212d3(0x132)](_0x4e690a[_0x4212d3(0x153)])['getActiveSheet']();_0x338a0a&&_0x42342f&&this['_updateLocalCursor'](_0x42342f[_0x4212d3(0x1d2)](),_0x338a0a);}[_0x331486(0x1c3)](){this['_online']=!0x1;}};Be=Bi([B(0x2,_0x384b36(_0x2975ff)),B(0x3,_0x384b36(Ke)),B(0x4,_0x384b36(_0x5bfe2e)),B(0x5,_0x34a5b3),B(0x6,_0xd74a37),B(0x7,_0x384b36(_0x59856c))],Be);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0xebd1a9,_0x40f95c,_0x245a97,_0x37fce2)=>{const _0x5923ab=_0x331486;for(var _0x3aadbf=_0x37fce2>0x1?void 0x0:_0x37fce2?Yi(_0x40f95c,_0x245a97):_0x40f95c,_0x3caf7e=_0xebd1a9[_0x5923ab(0xea)]-0x1,_0x30155c;_0x3caf7e>=0x0;_0x3caf7e--)(_0x30155c=_0xebd1a9[_0x3caf7e])&&(_0x3aadbf=_0x30155c(_0x3aadbf)||_0x3aadbf);return _0x3aadbf;},Ce=(_0x263202,_0x2cd8f1)=>(_0x52b8e8,_0x108138)=>_0x2cd8f1(_0x52b8e8,_0x108138,_0x263202);let H=class extends _0x57605c{constructor(_0x5d18fd,_0x130005,_0x53ae13){const _0x1005d3=_0x331486;super(),_(this,_0x1005d3(0x1f7),new Map()),_(this,_0x1005d3(0x12f),new _0x49c822()),(this[_0x1005d3(0xed)]=_0x5d18fd,this[_0x1005d3(0x1fb)]=_0x130005,this['_collabSessionService']=_0x53ae13,this[_0x1005d3(0x119)]());}['dispose'](){const _0x1d97c8=_0x331486;super[_0x1d97c8(0x1af)](),this[_0x1d97c8(0x12f)][_0x1d97c8(0x25a)](),this[_0x1d97c8(0x1f7)][_0x1d97c8(0x210)](_0x3db908=>_0x3db908[_0x1d97c8(0x1af)]());}[_0x331486(0x2a5)](_0x35855c){const _0x23e57b=_0x331486;return this['_entities'][_0x23e57b(0x1ef)](_0x35855c)?this['_entities']['get'](_0x35855c)[_0x23e57b(0x2b8)]:this[_0x23e57b(0x12f)][_0x23e57b(0x181)](_0x5ad315(_0x59bc33=>_0x59bc33[_0x23e57b(0x203)]===_0x35855c),_0x4ce806(_0x44c453=>_0x44c453[_0x23e57b(0x2b8)]));}[_0x331486(0x119)](){const _0x5ddd14=_0x331486;this[_0x5ddd14(0xed)]['getTypeOfUnitAdded$'](_0x4e690a[_0x5ddd14(0x153)])[_0x5ddd14(0x181)](_0x136c33(this[_0x5ddd14(0x134)]))[_0x5ddd14(0x1e8)](async _0x152231=>{const _0x180656=_0x5ddd14,_0x337b57=_0x152231['getUnitId'](),_0x431f12=await this[_0x180656(0x1d7)](_0x337b57);this['_entityInit$'][_0x180656(0x1c4)](_0x431f12),this['_entities'][_0x180656(0x1c0)](_0x337b57,_0x431f12);}),this['_univerInstanceService'][_0x5ddd14(0x19b)](_0x4e690a['UNIVER_DOC'])[_0x5ddd14(0x181)](_0x136c33(this['dispose$']))[_0x5ddd14(0x181)](_0x5ad315(_0x86f30e=>!_0x86f30e[_0x5ddd14(0x18c)]()[_0x5ddd14(0x113)]('__')))[_0x5ddd14(0x1e8)](async _0x9c9b64=>{const _0x2ec667=_0x5ddd14,_0x1d3cc3=_0x9c9b64['getUnitId'](),_0xf902ec=await this[_0x2ec667(0xba)](_0x1d3cc3);this[_0x2ec667(0x12f)][_0x2ec667(0x1c4)](_0xf902ec),this[_0x2ec667(0x1f7)][_0x2ec667(0x1c0)](_0x1d3cc3,_0xf902ec);}),_0x5486e4(this[_0x5ddd14(0xed)][_0x5ddd14(0x89)](_0x4e690a[_0x5ddd14(0x237)]),this[_0x5ddd14(0xed)][_0x5ddd14(0x89)](_0x4e690a[_0x5ddd14(0x153)]))[_0x5ddd14(0x181)](_0x136c33(this['dispose$']))[_0x5ddd14(0x1e8)](_0x452ff6=>{const _0x4ac274=_0x5ddd14,_0x36f68e=_0x452ff6['getUnitId'](),_0x329706=this[_0x4ac274(0x1f7)][_0x4ac274(0x1e7)](_0x36f68e);_0x329706&&(_0x329706[_0x4ac274(0x1af)](),this[_0x4ac274(0x1f7)][_0x4ac274(0x211)](_0x36f68e));});}async[_0x331486(0x1d7)](_0x5cfc4f){const _0x437a22=_0x331486,_0x8546cf=await this[_0x437a22(0xbf)][_0x437a22(0x127)](_0x5cfc4f),_0x51faa2=this['_injector'][_0x437a22(0x232)](Be,_0x5cfc4f,_0x8546cf);return _0x51faa2[_0x437a22(0x2ba)](),_0x51faa2;}async['_startDocCollabCursor'](_0x39477e){const _0x335d4e=_0x331486,_0x12b4aa=await this[_0x335d4e(0xbf)]['requireSession'](_0x39477e),_0x1cc4a6=this[_0x335d4e(0x1fb)][_0x335d4e(0x232)](xe,_0x39477e,_0x12b4aa);return _0x1cc4a6[_0x335d4e(0x2ba)](),_0x1cc4a6;}};H=Wi([Ce(0x0,_0x34a5b3),Ce(0x1,_0x384b36(_0x2975ff)),Ce(0x2,_0x384b36(_0x46dc37))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x518250,_0x5434ad){const _0x59b74b=_0x331486;let {radius:_0x189943,width:_0x2c0186,height:_0x1ffd03}=_0x5434ad;_0x189943=_0x189943!=null?_0x189943:0x0,_0x2c0186=_0x2c0186!=null?_0x2c0186:0x1e,_0x1ffd03=_0x1ffd03!=null?_0x1ffd03:0x1e;let _0x321514=0x0,_0x3f59a9=0x0,_0x39d997=0x0;_0x321514=_0x3f59a9=_0x39d997=Math[_0x59b74b(0x8d)](_0x189943,_0x2c0186/0x2,_0x1ffd03/0x2),_0x518250[_0x59b74b(0x16a)](),_0x518250[_0x59b74b(0x189)](_0x321514,0x0),_0x518250['lineTo'](_0x2c0186-_0x3f59a9,0x0),_0x518250[_0x59b74b(0x1cf)](_0x2c0186-_0x3f59a9,_0x3f59a9,_0x3f59a9,Math['PI']*0x3/0x2,0x0,!0x1),_0x518250[_0x59b74b(0x263)](_0x2c0186,_0x1ffd03-_0x39d997),_0x518250[_0x59b74b(0x1cf)](_0x2c0186-_0x39d997,_0x1ffd03-_0x39d997,_0x39d997,0x0,Math['PI']/0x2,!0x1),_0x518250[_0x59b74b(0x263)](0x0,_0x1ffd03),_0x518250[_0x59b74b(0x263)](0x0,_0x321514),_0x518250['arc'](_0x321514,_0x321514,_0x321514,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x518250[_0x59b74b(0x2b1)](),_0x5434ad[_0x59b74b(0x2d9)]&&(_0x518250[_0x59b74b(0x102)](),_0x518250[_0x59b74b(0x19f)]=_0x5434ad['fill'],_0x5434ad[_0x59b74b(0x215)]==='evenodd'?_0x518250[_0x59b74b(0x2d9)](_0x59b74b(0x14b)):_0x518250[_0x59b74b(0x2d9)](),_0x518250['restore']());}class Ee extends _0x16364b{constructor(_0x1468ae,_0x5c5556){const _0x33bc45=_0x331486;super(_0x1468ae,_0x5c5556),_(this,_0x33bc45(0x15d)),_(this,_0x33bc45(0xd3)),(this[_0x33bc45(0x15d)]=_0x5c5556==null?void 0x0:_0x5c5556[_0x33bc45(0x15d)],this[_0x33bc45(0xd3)]=_0x5c5556==null?void 0x0:_0x5c5556[_0x33bc45(0xd3)]);}static[_0x331486(0xbb)](_0xcbd59d,_0x59d664){const _0x3bd56e=_0x331486,{text:_0x36e425,color:_0x25dce5}=_0x59d664;_0xcbd59d[_0x3bd56e(0x102)](),_0xcbd59d[_0x3bd56e(0x109)]=_0x3bd56e(0xcc);const _0x491192=_0xcbd59d['measureText'](_0x36e425)[_0x3bd56e(0x1fd)],_0x1ebe58=Math[_0x3bd56e(0x8d)](_0x491192+0x2*Re,at);Vi(_0xcbd59d,{'height':Q,'radius':0x4,'width':_0x1ebe58,'fill':_0x25dce5}),_0xcbd59d['fillStyle']=_0x3bd56e(0x274);const _0x29723d=Re,_0x466360=Q-ji,_0x1b5a91=at-0x2*Re;if(_0x491192>_0x1b5a91){let _0x2fbee5='',_0x45fed1=0x0;for(const _0x147c28 of _0x36e425){const _0x200c1c=_0xcbd59d[_0x3bd56e(0x122)](_0x147c28)['width'];if(_0x45fed1+_0x200c1c<=_0x1b5a91-_0xcbd59d[_0x3bd56e(0x122)](_0x3bd56e(0x271))[_0x3bd56e(0x1fd)])_0x2fbee5+=_0x147c28,_0x45fed1+=_0x200c1c;else{_0x2fbee5+='...';break;}}_0xcbd59d['fillText'](_0x2fbee5,_0x29723d,_0x466360);}else _0xcbd59d[_0x3bd56e(0x1be)](_0x36e425,_0x29723d,_0x466360);_0xcbd59d[_0x3bd56e(0xb7)]();}[_0x331486(0x9a)](_0x26e613){Ee['drawWith'](_0x26e613,this);}}const De=_0x331486(0x107),Xi=_0x331486(0x2c4),Gi='collab-rect-range-',z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x331486(0x243);class ct{constructor(_0xd853c3,_0x2b728f,_0x5d7b5e,_0x3fbd7f){const _0x24cf53=_0x331486;_(this,_0x24cf53(0x1b0),[]),_(this,'_anchor',null),_(this,_0x24cf53(0xaa),null),_(this,_0x24cf53(0x251),null),_(this,_0x24cf53(0xd4),null),_(this,'_eventUnsubscribe',null),(this['_cursor']=_0xd853c3,this[_0x24cf53(0x13b)]=_0x2b728f,this[_0x24cf53(0xe6)]=_0x5d7b5e,this[_0x24cf53(0xe9)]=_0x3fbd7f,this[_0x24cf53(0x120)]());}set[_0x331486(0x247)](_0x4b407e){const _0x3e001f=_0x331486;_0x4b407e?(this[_0x3e001f(0x251)]&&this[_0x3e001f(0x251)]['hide'](),this[_0x3e001f(0xaa)]&&this[_0x3e001f(0xaa)][_0x3e001f(0x268)]()):(this[_0x3e001f(0x251)]&&this['_anchorDot'][_0x3e001f(0x268)](),this['_textBubble']&&this['_textBubble'][_0x3e001f(0xb8)]());}[_0x331486(0x1af)](){const _0x59da4d=_0x331486;for(const _0x271db6 of this[_0x59da4d(0x1b0)])_0x271db6[_0x59da4d(0x1af)]();this[_0x59da4d(0xaa)]&&this['_textBubble'][_0x59da4d(0x1af)](),this['_anchorDot']&&this[_0x59da4d(0x251)][_0x59da4d(0x1af)](),this[_0x59da4d(0x197)]&&this[_0x59da4d(0x197)][_0x59da4d(0x1af)](),this[_0x59da4d(0x2c0)]&&this[_0x59da4d(0x2c0)]();}[_0x331486(0x120)](){const _0x11bc4f=_0x331486;var _0x3ce2c4;const {_docSkeleton:_0x137d0e,_document:_0x37d802}=this,{color:_0x8427c3,name:_0x2cac76,ranges:_0x39ad53}=this[_0x11bc4f(0x1bc)],_0x3d9dba=_0x37d802[_0x11bc4f(0x2d6)](),{docsLeft:_0x53dd23,docsTop:_0x5bd168}=_0x3d9dba,_0x2e94c0=new _0x3ad41d(_0x3d9dba,_0x137d0e);for(const {startOffset:_0x5b962c,endOffset:_0x256879,rangeType:_0x2ccc79,segmentId:_0x3083d1,segmentPage:_0x5ad325,collapsed:_0x1ec32f,isActive:_0x55046a}of _0x39ad53){const _0x164a60=_0x137d0e[_0x11bc4f(0x12e)](_0x5b962c,!0x0,_0x3083d1,_0x5ad325);let _0x5abf21=_0x137d0e[_0x11bc4f(0x12e)](_0x256879,!0x0,_0x3083d1,_0x5ad325);if(_0x5abf21==null&&(_0x5abf21=_0x137d0e['findNodePositionByCharIndex'](_0x256879-0x1,!0x1,_0x3083d1,_0x5ad325)),_0x55046a){const {contentBoxPointGroup:_0x73b49b}=_0x2e94c0[_0x11bc4f(0xa1)](_0x5abf21,_0x5abf21);if(_0x73b49b[_0x11bc4f(0xea)]===0x0)continue;this[_0x11bc4f(0x1d4)](_0x8427c3,_0x73b49b,_0x53dd23,_0x5bd168,_0x2cac76),this[_0x11bc4f(0x2c0)]=this[_0x11bc4f(0x24a)]();}if(_0x164a60&&_0x5abf21){if(_0x2ccc79===_0x80033e[_0x11bc4f(0xf4)]){const _0x463498=new _0x545a0f(_0x3d9dba,_0x137d0e),{pointGroup:_0x114f8e}=(_0x3ce2c4=_0x463498[_0x11bc4f(0xa1)](_0x164a60,_0x5abf21))!=null?_0x3ce2c4:{};if(_0x114f8e==null||_0x114f8e[_0x11bc4f(0xea)]===0x0)continue;this[_0x11bc4f(0x187)](_0x8427c3,_0x114f8e,_0x53dd23,_0x5bd168);}else{if(!_0x1ec32f){const {borderBoxPointGroup:_0x2b0da3}=_0x2e94c0[_0x11bc4f(0xa1)](_0x164a60,_0x5abf21);if(_0x2b0da3[_0x11bc4f(0xea)]===0x0)continue;this['_drawTextRange'](_0x8427c3,_0x2b0da3,_0x53dd23,_0x5bd168);}}}}}[_0x331486(0x1d4)](_0x1ecb8a,_0x33fce3,_0x1dd523,_0x14dca8,_0x541797){const _0x51fd5b=_0x331486,_0x29f9e1=this[_0x51fd5b(0x13c)](_0x33fce3),{left:_0x213bbb,top:_0x1af0a2,height:_0x2f419d}=_0x29f9e1,_0x18b2f2=this[_0x51fd5b(0x27b)](),_0x1bf836=zi/_0x18b2f2,_0x145c64=new _0x38eea8(De+_0x460716(z),{'left':_0x213bbb+_0x1dd523-_0x1bf836,'top':_0x1af0a2+_0x14dca8,'height':_0x2f419d,'width':Ki,'fill':_0x1ecb8a||_0x57c8a3(_0x572559[_0x51fd5b(0x12c)],0x0),'strokeWidth':_0x1bf836,'stroke':Ji,'evented':!0x0});this[_0x51fd5b(0x197)]=_0x145c64,this[_0x51fd5b(0x13b)][_0x51fd5b(0x256)](_0x145c64,_0x53e827);const _0x32925a=new _0x38eea8(De+_0x460716(z),{'left':_0x213bbb+_0x1dd523-_0x1bf836,'top':_0x1af0a2+_0x14dca8-be/0x2,'height':be,'width':be,'fill':_0x1ecb8a||_0x57c8a3(_0x572559[_0x51fd5b(0x12c)],0x0),'strokeWidth':0x0,'stroke':_0x1ecb8a||_0x57c8a3(_0x572559['black'],0x0),'evented':!0x1});this[_0x51fd5b(0x251)]=_0x32925a,this[_0x51fd5b(0x13b)]['addObject'](_0x32925a,_0x53e827);const _0x289771=new Ee(De+_0x460716(z),{'left':_0x213bbb+_0x1dd523-_0x1bf836,'top':_0x1af0a2+_0x14dca8-Q,'text':_0x541797,'color':_0x1ecb8a});this['_textBubble']=_0x289771,this[_0x51fd5b(0x13b)][_0x51fd5b(0x256)](_0x289771,_0x53e827),this['_hover']=!0x1;}[_0x331486(0x24a)](){const _0x5cfd86=_0x331486,_0x49ba35=this[_0x5cfd86(0x197)][_0x5cfd86(0x2bd)]['subscribeEvent'](()=>{const _0x59a599=_0x5cfd86;this[_0x59a599(0x247)]=!0x0;}),_0x532a46=this[_0x5cfd86(0x197)][_0x5cfd86(0x165)][_0x5cfd86(0xe3)](()=>{const _0x212fb0=_0x5cfd86;this[_0x212fb0(0xd4)]&&clearTimeout(this[_0x212fb0(0xd4)]),this[_0x212fb0(0xd4)]=setTimeout(()=>{const _0xcdb1bb=_0x212fb0;this[_0xcdb1bb(0x247)]=!0x1;},0x7d0);});return()=>{const _0x2b1650=_0x5cfd86;_0x49ba35[_0x2b1650(0x290)](),_0x532a46['unsubscribe']();};}[_0x331486(0x154)](_0x3adaf7,_0x1a320d,_0x60a93e,_0x49d7c8){const _0xe3dfee=_0x331486,_0xcf5def=new _0x3e6889(_0x3adaf7)[_0xe3dfee(0x2bf)](0.2)[_0xe3dfee(0x1fe)](),_0x31d882=new _0x45a19c(Xi+_0x460716(z),{'pointsGroup':_0x1a320d,'fill':_0xcf5def||_0x57c8a3(_0x572559['black'],0.2),'left':_0x60a93e,'top':_0x49d7c8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe3dfee(0x1b0)][_0xe3dfee(0x118)](_0x31d882),this[_0xe3dfee(0x13b)][_0xe3dfee(0x256)](_0x31d882,_0x53e827);}[_0x331486(0x187)](_0x3064d2,_0x54a1a8,_0x1bc4bb,_0x889c68){const _0x14e529=_0x331486,_0x346e0c=new _0x3e6889(_0x3064d2)[_0x14e529(0x2bf)](0.2)[_0x14e529(0x1fe)](),_0x2af30c=new _0x45a19c(Gi+_0x460716(z),{'pointsGroup':_0x54a1a8,'fill':_0x346e0c||_0x57c8a3(_0x572559['black'],0.2),'left':_0x1bc4bb,'top':_0x889c68,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x14e529(0x1b0)]['push'](_0x2af30c),this[_0x14e529(0x13b)][_0x14e529(0x256)](_0x2af30c,_0x53e827);}['_getAnchorBounding'](_0x4d0cfd){const _0x4ff2c3=_0x4d0cfd[0x0],_0x58e4c9=_0x4ff2c3[0x0],_0x3db56a=_0x4ff2c3[0x2],{x:_0x56494a,y:_0x3befd0}=_0x58e4c9,{x:_0x100f7f,y:_0x20d9ab}=_0x3db56a;return{'left':_0x56494a,'top':_0x3befd0,'width':_0x100f7f-_0x56494a,'height':_0x20d9ab-_0x3befd0};}[_0x331486(0x27b)](){const _0x52ef95=_0x331486,{scaleX:_0x197f89,scaleY:_0x28b820}=this['_scene'][_0x52ef95(0x239)]();return Math[_0x52ef95(0x2c5)](_0x197f89,_0x28b820);}}var Zi=Object[_0x331486(0x1ca)],Qi=(_0x3f326c,_0x5d2821,_0x4ac20d,_0x2bd422)=>{const _0x1f729c=_0x331486;for(var _0x5c003a=_0x2bd422>0x1?void 0x0:_0x2bd422?Zi(_0x5d2821,_0x4ac20d):_0x5d2821,_0x363688=_0x3f326c[_0x1f729c(0xea)]-0x1,_0x14e898;_0x363688>=0x0;_0x363688--)(_0x14e898=_0x3f326c[_0x363688])&&(_0x5c003a=_0x14e898(_0x5c003a)||_0x5c003a);return _0x5c003a;},ie=(_0x3d3b8e,_0xb4e722)=>(_0x5d07a2,_0x121a37)=>_0xb4e722(_0x5d07a2,_0x121a37,_0x3d3b8e);let Fe=class extends _0x57605c{constructor(_0x4a35f0,_0x378bc5,_0x13f1f5,_0x216c95,_0x24670f){const _0x7476bd=_0x331486;super(),_(this,_0x7476bd(0x281),[]),_(this,_0x7476bd(0x1f6),[]),(this[_0x7476bd(0x17b)]=_0x4a35f0,this['_docSkeletonManagerService']=_0x378bc5,this[_0x7476bd(0x2bb)]=_0x13f1f5,this['_commandService']=_0x216c95,this[_0x7476bd(0x216)]=_0x24670f,this['_init']());}[_0x331486(0x119)](){const _0x3aa802=_0x331486,_0x2b89de=this[_0x3aa802(0x17b)][_0x3aa802(0x19a)],_0x9b10b=this[_0x3aa802(0xef)];this[_0x3aa802(0xf5)](_0x48dc8f([this[_0x3aa802(0x2bb)][_0x3aa802(0x2a5)](_0x2b89de),this[_0x3aa802(0x216)][_0x3aa802(0x1e0)]])[_0x3aa802(0x181)](_0x442185(([_0x19b816,_0x73a1])=>({'skeleton':_0x9b10b['getSkeleton'](),'cursors':[..._0x19b816[_0x3aa802(0x125)]()][_0x3aa802(0x24f)](_0x6a9d03=>({..._0x6a9d03,'color':this[_0x3aa802(0x216)][_0x3aa802(0x269)](_0x6a9d03[_0x3aa802(0x15d)])}))})))[_0x3aa802(0x1e8)](_0x2d804a=>{const _0x16dd6d=_0x3aa802;if(this[_0x16dd6d(0xa0)](),_0x2d804a){const {skeleton:_0x461992,cursors:_0x319e09}=_0x2d804a;this[_0x16dd6d(0x249)](_0x461992,_0x319e09);}})),this[_0x3aa802(0x182)](),this[_0x3aa802(0x2a6)]();}['_updateCollabCursors'](_0x4209be,_0x3b481b){const _0x467cf2=_0x331486,{scene:_0x4c6fa8,mainComponent:_0x14a1dc}=this[_0x467cf2(0x17b)],_0x18d3f3=_0x3b481b[_0x467cf2(0x2b6)](_0x523a3e=>new ct(_0x523a3e,_0x4c6fa8,_0x4209be,_0x14a1dc));this[_0x467cf2(0x281)]=_0x18d3f3,this[_0x467cf2(0x1f6)]=_0x3b481b;}['_refreshCollabCursors'](){const _0x2da78b=_0x331486;this['_removeCollabCursors']();const {scene:_0x118df6,mainComponent:_0x2f9819}=this['_context'],_0x26c412=this[_0x2da78b(0xef)][_0x2da78b(0x103)](),_0x21a1c3=this[_0x2da78b(0x1f6)][_0x2da78b(0x2b6)](_0x1fb597=>new ct(_0x1fb597,_0x118df6,_0x26c412,_0x2f9819));this[_0x2da78b(0x281)]=_0x21a1c3;}['_removeCollabCursors'](){const _0x177454=_0x331486;this[_0x177454(0x281)][_0x177454(0x210)](_0x47b1c3=>_0x47b1c3[_0x177454(0x1af)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x2b117e=_0x331486,_0x29fdef=[_0x56b6e8['id']];this[_0x2b117e(0xf5)](this['_commandService'][_0x2b117e(0x2b2)](_0x20137=>{const _0x5f4824=_0x2b117e;_0x29fdef[_0x5f4824(0x24d)](_0x20137['id'])&&_0x20137[_0x5f4824(0x8f)]['unitId']===this[_0x5f4824(0x17b)][_0x5f4824(0x19a)]&&this['_refreshCollabCursors']();}));}[_0x331486(0x182)](){const _0x28b0ce=_0x331486;this[_0x28b0ce(0xf5)](_0x13584e(this[_0x28b0ce(0x17b)][_0x28b0ce(0x190)][_0x28b0ce(0xb5)])['pipe'](_0x28f0a4(_0x3db997=>_0x3db997[_0x28b0ce(0x1d3)]===_0x30decc['resize']),_0x767ecc(0x10))[_0x28b0ce(0x1e8)](()=>{this['_refreshCollabCursors']();}));}};Fe=Qi([ie(0x1,_0x384b36(_0x120002)),ie(0x2,_0x384b36(H)),ie(0x3,_0xd74a37),ie(0x4,_0x384b36(_0x4502e6))],Fe);const qi=0x1,en=1.5;class tn extends _0x16364b{constructor(_0x3b95e8,_0x563b2b){const _0x4723aa=_0x331486;super(_0x3b95e8,_0x563b2b),_(this,'_color'),_(this,_0x4723aa(0x204),!0x1),_(this,_0x4723aa(0x20e)),_(this,'_name',''),_(this,'_labelPosition',_0x4723aa(0x2bc)),_(this,_0x4723aa(0x15a)),(_0x563b2b&&this[_0x4723aa(0x1ff)](_0x563b2b),this[_0x4723aa(0x2bd)][_0x4723aa(0xe3)](()=>this[_0x4723aa(0x1ff)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4723aa(0x1ff)]({'hovered':!0x1})));}[_0x331486(0x1ff)](_0x225f11){const _0x1a0732=_0x331486;var _0x5d8b3f,_0x4441d0,_0x69c480,_0x349b5c,_0x5ee8ea,_0x209f8f;this[_0x1a0732(0x121)]=(_0x5d8b3f=_0x225f11[_0x1a0732(0x15d)])!=null?_0x5d8b3f:this[_0x1a0732(0x121)],this[_0x1a0732(0x204)]=(_0x4441d0=_0x225f11[_0x1a0732(0x16b)])!=null?_0x4441d0:this[_0x1a0732(0x204)],this['_range']=(_0x69c480=_0x225f11[_0x1a0732(0xe7)])!=null?_0x69c480:this[_0x1a0732(0x20e)],this[_0x1a0732(0x248)]=(_0x349b5c=_0x225f11['name'])!=null?_0x349b5c:this[_0x1a0732(0x248)],this['_labelPosition']=(_0x5ee8ea=_0x225f11[_0x1a0732(0xcd)])!=null?_0x5ee8ea:this[_0x1a0732(0x147)],this[_0x1a0732(0x15a)]=(_0x209f8f=_0x225f11[_0x1a0732(0x116)])!=null?_0x209f8f:this['_backgroundColor'],this['transformByState']({'width':_0x225f11['width'],'height':_0x225f11[_0x1a0732(0x25c)]});}['onMouseMove'](_0x44c46f){const _0xa87512=_0x331486,{row:_0x57ca29,column:_0xb9e51a}=_0x44c46f;if(_0x57ca29>=this[_0xa87512(0x20e)][_0xa87512(0x260)]&&_0x57ca29<=this['_range'][_0xa87512(0xf7)]&&_0xb9e51a>=this['_range'][_0xa87512(0x262)]&&_0xb9e51a<=this[_0xa87512(0x20e)]['endColumn']){this[_0xa87512(0x1ff)]({'hovered':!0x0});return;}this[_0xa87512(0x1ff)]({'hovered':!0x1});}['triggerDblclick'](_0x3e3887){return!0x1;}[_0x331486(0x9a)](_0x3e5066){const _0x46b4c5=_0x331486;_0x38eea8[_0x46b4c5(0xbb)](_0x3e5066,{'width':this['width'],'height':this['height'],'strokeWidth':en,'stroke':this[_0x46b4c5(0x121)],'evented':!0x1,'fill':this[_0x46b4c5(0x15a)]}),this['_hovered']&&(_0x3e5066[_0x46b4c5(0x102)](),_0x3e5066['transform'](0x1,0x0,0x0,0x1,this[_0x46b4c5(0x1fd)],this[_0x46b4c5(0x147)]==='bottom'?0x0:-Q),Ee[_0x46b4c5(0xbb)](_0x3e5066,{'text':this[_0x46b4c5(0x248)],'color':this[_0x46b4c5(0x121)]}),_0x3e5066[_0x46b4c5(0xb7)]());}}var sn=Object[_0x331486(0x1ca)],nn=(_0x28e373,_0x2ca278,_0x2d8c4d,_0x2cb800)=>{const _0x1ef949=_0x331486;for(var _0x3239c3=_0x2cb800>0x1?void 0x0:_0x2cb800?sn(_0x2ca278,_0x2d8c4d):_0x2ca278,_0x45f2d0=_0x28e373[_0x1ef949(0xea)]-0x1,_0xc8c934;_0x45f2d0>=0x0;_0x45f2d0--)(_0xc8c934=_0x28e373[_0x45f2d0])&&(_0x3239c3=_0xc8c934(_0x3239c3)||_0x3239c3);return _0x3239c3;},Ne=(_0x35c0e8,_0xfca416)=>(_0xa2c77e,_0x5107d7)=>_0xfca416(_0xa2c77e,_0x5107d7,_0x35c0e8);const rn=0x1389;let ke=class extends _0x57605c{constructor(_0x1b33e5,_0x58ef0c,_0x3e31a4,_0x17f500){const _0x235db9=_0x331486;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this[_0x235db9(0x17b)]=_0x1b33e5,this[_0x235db9(0x1ea)]=_0x58ef0c,this[_0x235db9(0x2bb)]=_0x3e31a4,this[_0x235db9(0x216)]=_0x17f500,this[_0x235db9(0x119)]());}[_0x331486(0x119)](){const _0x3d573b=_0x331486;this[_0x3d573b(0x1ea)][_0x3d573b(0x208)]['pipe'](_0x4acc07(this[_0x3d573b(0x134)]),_0x120aca(_0x5ef28e=>{const _0xeabd56=_0x3d573b;if(_0x5ef28e){const _0x4aed48=_0x5ef28e[_0xeabd56(0x95)];return _0x48dc8f(this['_collabCursorController'][_0xeabd56(0x2a5)](this[_0xeabd56(0x17b)][_0xeabd56(0x19a)]),this[_0xeabd56(0x216)]['currentTheme$'])[_0xeabd56(0x181)](_0x442185(([_0x3bb9cd,_0x56ff92])=>{const _0x557198=_0xeabd56,_0x23d14d=new Map();return _0x3bb9cd[_0x557198(0x210)]((_0x5467ff,_0x3a6158)=>{const _0x3612c7=_0x557198;if(_0x5467ff[_0x3612c7(0xe0)]===_0x4aed48){const _0xa94771={..._0x5467ff};_0xa94771['color']=this[_0x3612c7(0x216)][_0x3612c7(0x269)](_0x5467ff['color']),_0x23d14d[_0x3612c7(0x1c0)](_0x3a6158,_0xa94771);}}),{'skeleton':_0x5ef28e,'cursors':_0x23d14d};}));}return _0x218df2({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x28883b,cursors:_0x34001a})=>{const _0x28601b=_0x3d573b;this[_0x28601b(0xa0)](),_0x28883b&&this['_updateCollabCursors'](_0x28883b,_0x34001a);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x3d573b(0x1e8)](_0x37d511=>{const _0x1cf976=_0x3d573b;if(_0x37d511==null)return;const {skeleton:_0x3ab48c}=_0x37d511,{scene:_0x18fc22}=this[_0x1cf976(0x17b)];_0x18fc22[_0x1cf976(0x114)]['subscribeEvent'](_0x3554ba(_0xc43b61=>{const _0x45dd20=_0x1cf976;var _0x2d290f,_0x4b56e8;const {offsetX:_0x54b6e6,offsetY:_0x3155df}=_0xc43b61,{x:_0x38fcb9,y:_0x5c207c}=_0x18fc22[_0x45dd20(0x198)](_0x321485[_0x45dd20(0x259)]([_0x54b6e6,_0x3155df])),{scaleX:_0x2737a5,scaleY:_0x4e0e3c}=_0x18fc22['getAncestorScale'](),_0x588006=_0x18fc22[_0x45dd20(0x2ca)](_0x1253b5[_0x45dd20(0x193)]),_0x592a61=_0x18fc22[_0x45dd20(0x136)](_0x321485[_0x45dd20(0x259)]([_0x38fcb9,_0x5c207c]),_0x588006),_0x44715d=_0x3ab48c[_0x45dd20(0x15e)](_0x54b6e6,_0x3155df,_0x2737a5,_0x4e0e3c,_0x592a61);((_0x2d290f=this['_lastPointer'])==null?void 0x0:_0x2d290f[_0x45dd20(0xd6)])===_0x44715d['column']&&((_0x4b56e8=this[_0x45dd20(0x1f0)])==null?void 0x0:_0x4b56e8[_0x45dd20(0xfb)])===_0x44715d[_0x45dd20(0xfb)]||this['_cursors'][_0x45dd20(0x210)](_0x139898=>{const _0x182826=_0x45dd20;_0x139898[_0x182826(0x26e)](_0x44715d);});},0x64));});}[_0x331486(0x249)](_0xd7c038,_0xc96244){const _0x31af78=_0x331486;var _0x6bb6a0;const _0x53195c=(_0x6bb6a0=this[_0x31af78(0x1ea)][_0x31af78(0x29e)]())==null?void 0x0:_0x6bb6a0['skeleton'];if(!_0x53195c)return;const _0xce5588=this[_0x31af78(0x140)]();if(!_0xce5588)return;this[_0x31af78(0x1f6)]['forEach'](_0x1adee9=>{const _0x164259=_0x31af78;_0x1adee9[_0x164259(0x27c)]();});const {scene:_0x29c554}=_0xce5588,_0x26b877=on(Array[_0x31af78(0x2cc)](_0xc96244[_0x31af78(0x125)]()))[_0x31af78(0x2b6)](_0x2ee567=>{const _0x44762c=_0x31af78,{color:_0x3fdaa1,range:_0x8e2e87,name:_0xfb95fe,selection:_0x56259a,sheetID:_0x206738}=_0x2ee567,{startColumn:_0x2bc6f5,startRow:_0x37ead4,endColumn:_0x14ea3a,endRow:_0x59eef4}=_0x8e2e87,_0x4d0005=_0x50883c(_0x37ead4,_0x2bc6f5,_0x29c554,_0x53195c),_0x5aab03=_0x50883c(_0x59eef4,_0x14ea3a,_0x29c554,_0x53195c),{columnHeaderHeightAndMarginTop:_0x52f8f5}=_0x53195c,{startX:_0x21742c,startY:_0x13555c}=_0x4d0005,{endX:_0x1917df,endY:_0x2608ce}=_0x5aab03,_0xe50a30=_0x1917df-_0x21742c,_0x1d5429=_0x2608ce-_0x13555c,_0x430b1e={'labelPosition':_0x13555c-_0x52f8f5>=Q?_0x44762c(0x2bc):_0x44762c(0x22b),'sheetID':_0x206738,'range':_0x8e2e87,'color':_0x3fdaa1,'name':_0xfb95fe,'selection':_0x56259a,'left':_0x21742c,'top':_0x13555c,'width':_0xe50a30,'height':_0x1d5429,'evented':!0x1,'zIndex':rn};return new tn(_0xfb95fe,_0x430b1e);});_0x29c554[_0x31af78(0x2b4)](_0x26b877,qi),this[_0x31af78(0x1f6)]=new Set(_0x26b877);}[_0x331486(0xa0)](){const _0x1e822f=_0x331486;var _0x345513;(_0x345513=this[_0x1e822f(0x1f6)])==null||_0x345513[_0x1e822f(0x210)](_0x27d884=>_0x27d884[_0x1e822f(0x1af)]());}[_0x331486(0x140)](){const _0x3d200a=_0x331486;return _0x128286(this[_0x3d200a(0x17b)][_0x3d200a(0x164)],this[_0x3d200a(0x17b)]);}};ke=nn([Ne(0x1,_0x384b36(_0x362389)),Ne(0x2,_0x384b36(H)),Ne(0x3,_0x384b36(_0x4502e6))],ke);function on(_0x581907){const _0x3dc4bf=_0x331486,_0x271f84=new Map();return _0x581907[_0x3dc4bf(0x210)](_0x12100d=>{const _0x5ef4b0=_0x3dc4bf;if(_0x271f84[_0x5ef4b0(0x1ef)](_0x12100d[_0x5ef4b0(0x1b5)])){const _0x105953=_0x271f84['get'](_0x12100d[_0x5ef4b0(0x1b5)]);_0x105953['name']+=',\x20'+_0x12100d[_0x5ef4b0(0x169)];}else _0x271f84[_0x5ef4b0(0x1c0)](_0x12100d['selection'],_0x12100d);}),Array[_0x3dc4bf(0x2cc)](_0x271f84[_0x3dc4bf(0x125)]());}var an=Object[_0x331486(0x1ca)],cn=(_0x4552af,_0x1f176d,_0x50be84,_0x38339b)=>{const _0x1e1bcf=_0x331486;for(var _0xc0fd13=_0x38339b>0x1?void 0x0:_0x38339b?an(_0x1f176d,_0x50be84):_0x1f176d,_0xdc0c96=_0x4552af[_0x1e1bcf(0xea)]-0x1,_0x853895;_0xdc0c96>=0x0;_0xdc0c96--)(_0x853895=_0x4552af[_0xdc0c96])&&(_0xc0fd13=_0x853895(_0xc0fd13)||_0xc0fd13);return _0xc0fd13;},F=(_0x4f4e95,_0x359e0b)=>(_0x5cec0a,_0x896973)=>_0x359e0b(_0x5cec0a,_0x896973,_0x4f4e95);let _e=class extends _0x4064cc{constructor(_0xb85c34,_0x511902,_0x2ae308,_0x35ada1,_0x58fff4,_0x24aaa1){const _0x48c5f3=_0x331486;super(),this[_0x48c5f3(0x27d)]=_0xb85c34,this['_localCacheService']=_0x511902,this[_0x48c5f3(0x117)]=_0x2ae308,this['_messageService']=_0x35ada1,this[_0x48c5f3(0x188)]=_0x58fff4,this[_0x48c5f3(0x2d5)]=_0x24aaa1,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x331486(0x133)](){const _0x39adb1=_0x331486;this[_0x39adb1(0xf5)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x127fb7=_0x39adb1;if(this[_0x127fb7(0x27a)][_0x127fb7(0x177)][_0x127fb7(0x209)])return this[_0x127fb7(0x2d5)]['t'](_0x127fb7(0x1dd));}));}[_0x331486(0x11c)](){const _0x1be63d=_0x331486;this[_0x1be63d(0xf5)](this[_0x1be63d(0x117)][_0x1be63d(0x18a)][_0x1be63d(0x1e8)](_0x269aa6=>{const _0x16f943=_0x1be63d;_0x269aa6['id']===_0x282a4d[_0x16f943(0xce)]&&this[_0x16f943(0x17a)]['show']({'type':_0x27e95d[_0x16f943(0x152)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x11e))}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x148)]&&this[_0x16f943(0x17a)]['show']({'type':_0x27e95d[_0x16f943(0x152)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x245))}),_0x269aa6['id']===_0x282a4d['PERMISSION_DENIED']&&this[_0x16f943(0x188)][_0x16f943(0x268)]({'title':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x294)),'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x9c)),'type':_0x16f943(0x17e),'duration':0x0}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x28a)]&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d[_0x16f943(0x2a0)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x245))+'('+_0x269aa6[_0x16f943(0x126)]+')'}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x11d)]&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d[_0x16f943(0x152)],'content':this[_0x16f943(0x2d5)]['t'](_0x269aa6[_0x16f943(0x126)]||'')}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x22c)]&&this['_messageService'][_0x16f943(0x268)]({'type':_0x27e95d['Warning'],'content':this['_localeService']['t'](_0x16f943(0x272))}),_0x269aa6['id']===_0x282a4d['SOCKET_FAILED']&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d['Error'],'content':this[_0x16f943(0x2d5)]['t']('session.connection-failed')}),_0x269aa6['id']===_0x282a4d[_0x16f943(0x230)]&&this[_0x16f943(0x17a)][_0x16f943(0x268)]({'type':_0x27e95d[_0x16f943(0x2a0)],'content':this[_0x16f943(0x2d5)]['t'](_0x16f943(0x171))});}));}};_e=cn([F(0x0,_0x113bc4),F(0x1,_0x24b451),F(0x2,_0x384b36(_0x1939b6)),F(0x3,_0xc89ae7),F(0x4,_0x10311c),F(0x5,_0x384b36(_0x4b3f44))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x109d8b,_0x1db62d,_0x53d2e0,_0xa947af)=>{for(var _0x94b11f=_0xa947af>0x1?void 0x0:_0xa947af?_n(_0x1db62d,_0x53d2e0):_0x1db62d,_0x280584=_0x109d8b['length']-0x1,_0x21bbf7;_0x280584>=0x0;_0x280584--)(_0x21bbf7=_0x109d8b[_0x280584])&&(_0x94b11f=_0x21bbf7(_0x94b11f)||_0x94b11f);return _0x94b11f;},ne=(_0x8e670b,_0x5e1b59)=>(_0x511d12,_0x77df77)=>_0x5e1b59(_0x511d12,_0x77df77,_0x8e670b);let le=class extends _0x4064cc{constructor(_0x18fac6,_0x45b201,_0x4932dd,_0xe6b611){const _0x183a65=_0x331486;super(),_(this,_0x183a65(0x199)),(this[_0x183a65(0x1fb)]=_0x18fac6,this[_0x183a65(0x202)]=_0x45b201,this[_0x183a65(0xb6)]=_0x4932dd,this['_collaborationSessionService']=_0xe6b611,this[_0x183a65(0x119)]());}[_0x331486(0x119)](){const _0xa69f1c=_0x331486;this['_initWindowErrorListener'](),this[_0xa69f1c(0x206)](),this[_0xa69f1c(0x186)](),this['_initUserListener']();}[_0x331486(0x170)](){const _0x1e884b=_0x331486;this[_0x1e884b(0xf5)](this[_0x1e884b(0x18b)][_0x1e884b(0xec)][_0x1e884b(0x1e8)](_0x38520f=>{const _0x20ef46=_0x1e884b;this[_0x20ef46(0x199)]=_0x38520f==null?void 0x0:_0x38520f[_0x20ef46(0x98)];}));}[_0x331486(0x278)](){const _0x4830c9=_0x331486,_0x480158=_0x1a0c1e=>{const _0x409b3e=_0x512f;var _0x48482b;this[_0x409b3e(0xc8)](_0x409b3e(0x17e),_0x409b3e(0xd5)+_0x1a0c1e['message']+'\x20at\x20'+_0x1a0c1e[_0x409b3e(0x1f1)]+':'+_0x1a0c1e['lineno']+':'+_0x1a0c1e[_0x409b3e(0x241)]+'\x0a'+(((_0x48482b=_0x1a0c1e['error'])==null?void 0x0:_0x48482b[_0x409b3e(0x178)])||''));};window[_0x4830c9(0x21f)]('error',_0x480158),this['disposeWithMe'](()=>{const _0x5bf946=_0x4830c9;window[_0x5bf946(0xf3)](_0x5bf946(0x17e),_0x480158);});}[_0x331486(0x206)](){const _0x254b37=_0x331486,_0x26324f=_0x331563=>{const _0x4dc70f=_0x512f;this[_0x4dc70f(0xc8)](_0x4dc70f(0x17e),_0x4dc70f(0x1dc)+_0x331563['reason']);};window[_0x254b37(0x21f)](_0x254b37(0xb3),_0x26324f),this['disposeWithMe'](()=>{const _0x19a37c=_0x254b37;window[_0x19a37c(0xf3)](_0x19a37c(0xb3),_0x26324f);});}['_monkeyPatchLogService'](){const _0x4a85b6=_0x331486,_0x424eb7=this['_logService']['error']['bind'](this[_0x4a85b6(0xb6)]);this[_0x4a85b6(0xb6)][_0x4a85b6(0x17e)]=(..._0x5d2399)=>{const _0x423ff9=_0x4a85b6,_0x39f1d5=_0x5d2399[_0x423ff9(0x2b6)](_0xab3446=>_0xab3446 instanceof Error?_0xab3446[_0x423ff9(0x8c)]+'\x0a'+_0xab3446[_0x423ff9(0x178)]:String(_0xab3446))[_0x423ff9(0x2b0)]('\x20');this[_0x423ff9(0xc8)]('error',_0x423ff9(0xc7)+_0x39f1d5),_0x424eb7(..._0x5d2399);},this['disposeWithMe'](()=>{const _0x248a7e=_0x4a85b6;this[_0x248a7e(0xb6)][_0x248a7e(0x17e)]=_0x424eb7;});}[_0x331486(0xc8)](_0xb8385d,_0x552299){const _0x25ba2e=_0x331486;try{const _0xa035d7={'userId':this[_0x25ba2e(0x199)],'logLabel':_0xb8385d,'content':_0x552299};this['_httpService'][_0x25ba2e(0x18e)](_0x25ba2e(0x273),{'body':_0xa035d7})[_0x25ba2e(0x1aa)](()=>{});}catch{}}};le=ln([ne(0x0,_0x384b36(_0x2975ff)),ne(0x1,_0x384b36(_0x3fa719)),ne(0x2,_0x1f29f4),ne(0x3,_0x384b36(_0x46dc37))],le);const hn=_0x331486(0x1bb),_t={};var un=Object[_0x331486(0x1ca)],dn=(_0x5384fe,_0x3a1f20,_0x54147a,_0x43fa9d)=>{const _0x350aa9=_0x331486;for(var _0x14c58d=_0x43fa9d>0x1?void 0x0:_0x43fa9d?un(_0x3a1f20,_0x54147a):_0x3a1f20,_0x5dd4f1=_0x5384fe[_0x350aa9(0xea)]-0x1,_0x475d90;_0x5dd4f1>=0x0;_0x5dd4f1--)(_0x475d90=_0x5384fe[_0x5dd4f1])&&(_0x14c58d=_0x475d90(_0x14c58d)||_0x14c58d);return _0x14c58d;},lt=(_0x1718b5,_0x53871b)=>(_0x31b3b3,_0x390e73)=>_0x53871b(_0x31b3b3,_0x390e73,_0x1718b5);let he=class{constructor(_0x1cec2b,_0x20ab8c){const _0x1c0645=_0x331486;this[_0x1c0645(0xfc)]=_0x1cec2b,this['_renderManagerService']=_0x20ab8c;}[_0x331486(0xa6)](_0x4a2ecf){const _0x49652a=_0x331486;this[_0x49652a(0x1e1)](_0x4a2ecf),this[_0x49652a(0x128)](_0x4a2ecf);}[_0x331486(0xa2)](_0x2bbf2d){const _0x2e439b=_0x331486,{unitID:_0x4184a7}=_0x2bbf2d,_0x1f95ac=this[_0x2e439b(0x13e)][_0x2e439b(0x1d9)](_0x4184a7)['with'](_0x4518ea),{redoCache:_0x3c278f}=_0x1f95ac['getUndoRedoMutationParamsCache']();if(_0x3c278f[_0x2e439b(0xea)]===0x0)return _0x2bbf2d;let _0x278246=_0x24ffc8[_0x2e439b(0x1ee)](_0x2bbf2d[_0x2e439b(0x2ae)][0x0]);for(let _0x3bcabc=0x0;_0x3bcabc<_0x3c278f[_0x2e439b(0xea)];_0x3bcabc++){const _0x843686={'id':_0x2e439b(0xb1),'params':{..._0x3c278f[_0x3bcabc]}},_0x3e9170=this[_0x2e439b(0xfc)]['transformMutation'](_0x278246,_0x843686,!0x1);if(_0x3d60d7(_0x3e9170))throw _0x3e9170[_0x2e439b(0x17e)];_0x278246=_0x3e9170['m1Prime'];}return{..._0x24ffc8[_0x2e439b(0x1ee)](_0x2bbf2d),'mutations':[_0x278246]};}[_0x331486(0x1e1)](_0x466eff){const _0x42b516=_0x331486,{unitID:_0x4cb995}=_0x466eff,_0x1aa7a0=this[_0x42b516(0x13e)][_0x42b516(0x1d9)](_0x4cb995)[_0x42b516(0x222)](_0x4518ea),{undoCache:_0xa008f0,redoCache:_0xeb939c}=_0x1aa7a0[_0x42b516(0x9f)]();if(_0xa008f0[_0x42b516(0xea)]===0x0||_0xeb939c['length']===0x0)return;const _0x1cc449=[],_0x4c8fd2=[];let _0x2dad01=_0x24ffc8['deepClone'](_0x466eff[_0x42b516(0x2ae)][0x0]),_0x3a5926=_0x24ffc8['deepClone'](_0x466eff['mutations'][0x0]);for(let _0x19e310=_0xa008f0[_0x42b516(0xea)]-0x1;_0x19e310>=0x0;_0x19e310--){const _0x137780={'id':_0x42b516(0xb1),'params':{..._0xa008f0[_0x19e310]}},_0x3d824a={'id':'doc.mutation.rich-text-editing','params':{..._0xeb939c[_0x19e310]}},_0x1f5d9c=this[_0x42b516(0xfc)][_0x42b516(0x2d0)](_0x2dad01,_0x137780,!0x1),_0x203bc0=this[_0x42b516(0xfc)][_0x42b516(0x2d0)](_0x3a5926,_0x3d824a,!0x1);if(_0x3d60d7(_0x1f5d9c))throw _0x1f5d9c[_0x42b516(0x17e)];if(_0x3d60d7(_0x203bc0))throw _0x203bc0[_0x42b516(0x17e)];_0x1cc449[_0x42b516(0x2b5)](_0x1f5d9c['m2Prime'][_0x42b516(0x8f)]),_0x4c8fd2[_0x42b516(0x2b5)](_0x203bc0[_0x42b516(0x264)][_0x42b516(0x8f)]),_0x2dad01=_0x1f5d9c[_0x42b516(0x25b)],_0x3a5926=_0x203bc0[_0x42b516(0x25b)];}_0x1aa7a0['setUndoRedoMutationParamsCache']({'undoCache':_0x1cc449,'redoCache':_0x4c8fd2});}[_0x331486(0x128)](_0x60b45){const _0x126672=_0x331486,{unitID:_0x26b203}=_0x60b45,_0x3cc720=this['_renderManagerService']['getRenderById'](_0x26b203)[_0x126672(0x222)](_0x4518ea),_0x36f1cc=_0x3cc720['getActiveRange']();if(_0x36f1cc==null)return;const _0xeeef3c=[{'id':_0x126672(0xb1),'params':{'unitId':_0x60b45[_0x126672(0x203)],'actions':null,'textRanges':[_0x36f1cc]}}],_0x53be24=this[_0x126672(0xfc)][_0x126672(0x172)](_0x60b45,_0xeeef3c);if(!_0xa9160d(_0x53be24))throw _0x53be24[_0x126672(0x17e)];const _0x5c6985=_0x53be24[_0x126672(0x264)][0x0][_0x126672(0x8f)][_0x126672(0x1d1)];Array['isArray'](_0x5c6985)&&_0x5c6985[_0x126672(0xea)]&&_0x3cc720[_0x126672(0x1f4)](_0x5c6985[0x0]);}};he=dn([lt(0x0,_0x2843ad),lt(0x1,_0x450a3a)],he);var Sn=Object['getOwnPropertyDescriptor'],mn=(_0x4fd97b,_0x38937a,_0x33ab1a,_0x34a1e3)=>{for(var _0x31f894=_0x34a1e3>0x1?void 0x0:_0x34a1e3?Sn(_0x38937a,_0x33ab1a):_0x38937a,_0x38c346=_0x4fd97b['length']-0x1,_0x2f6aec;_0x38c346>=0x0;_0x38c346--)(_0x2f6aec=_0x4fd97b[_0x38c346])&&(_0x31f894=_0x2f6aec(_0x31f894)||_0x31f894);return _0x31f894;},Le=(_0x4c661c,_0x215cd6)=>(_0x28ef81,_0x438a07)=>_0x215cd6(_0x28ef81,_0x438a07,_0x4c661c);let ue=class{constructor(_0x4aad44,_0xd61b75,_0x1bf591){const _0x29d332=_0x331486;this[_0x29d332(0x1fb)]=_0x4aad44,this[_0x29d332(0xfc)]=_0xd61b75,this[_0x29d332(0x267)]=_0x1bf591;}[_0x331486(0xf8)](_0x4eba7){const _0x1c0aad=_0x331486;this[_0x1c0aad(0x26d)](_0x4eba7);}['transformRemoteChangeset'](_0x29aa66){const _0x528b9d=_0x331486,{unitID:_0x4407b0}=_0x29aa66,{collaboration:_0x5b0bbb}=this[_0x528b9d(0x267)][_0x528b9d(0x1cd)](_0x4407b0);if(_0x5b0bbb[_0x528b9d(0xea)]===0x0)return _0x29aa66;let _0x3c4146=_0x24ffc8['deepClone'](_0x29aa66[_0x528b9d(0x2ae)][0x0]);for(let _0x4cfb88=0x0;_0x4cfb88<_0x5b0bbb[_0x528b9d(0xea)];_0x4cfb88++){const _0x12a0c9={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5b0bbb[_0x4cfb88]['unitId'],..._0x5b0bbb[_0x4cfb88][_0x528b9d(0x1ed)]}},_0x2ab49f=this['_transformService'][_0x528b9d(0x2d0)](_0x3c4146,_0x12a0c9,!0x1);if(_0x3d60d7(_0x2ab49f))throw _0x2ab49f[_0x528b9d(0x17e)];_0x3c4146=_0x2ab49f[_0x528b9d(0x25b)];}return{..._0x24ffc8['deepClone'](_0x29aa66),'mutations':[_0x3c4146]};}[_0x331486(0x26d)](_0x3130e8){const _0x5ed594=_0x331486,{unitID:_0x3a049a}=_0x3130e8,{history:_0x3ccb97,collaboration:_0x50e49e}=this[_0x5ed594(0x267)]['getStateCache'](_0x3a049a);if(_0x3ccb97['length']===0x0&&_0x50e49e[_0x5ed594(0xea)]===0x0)return;const _0x5b977a=[],_0x39c935=[];let _0xd6af5a=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8[_0x5ed594(0x2ae)][0x0]),_0x285cc4=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8['mutations'][0x0]);for(let _0xb8e52a=_0x3ccb97[_0x5ed594(0xea)]-0x1;_0xb8e52a>=0x0;_0xb8e52a--){const _0x5f1057={'id':_0x5ed594(0xb1),'params':{'unitId':_0x3ccb97[_0xb8e52a][_0x5ed594(0x19a)],..._0x3ccb97[_0xb8e52a][_0x5ed594(0x293)]}},_0x58f4c9={'id':_0x5ed594(0xb1),'params':{'unitId':_0x3ccb97[_0xb8e52a]['unitId'],..._0x3ccb97[_0xb8e52a][_0x5ed594(0x1ed)]}},_0x3d5e1a=this[_0x5ed594(0xfc)][_0x5ed594(0x2d0)](_0xd6af5a,_0x5f1057,!0x1),_0x54403b=this['_transformService'][_0x5ed594(0x2d0)](_0x285cc4,_0x58f4c9,!0x1);if(_0x3d60d7(_0x3d5e1a))throw _0x3d5e1a[_0x5ed594(0x17e)];if(_0x3d60d7(_0x54403b))throw _0x54403b['error'];_0x5b977a[_0x5ed594(0x2b5)]({..._0x3ccb97[_0xb8e52a],'undoState':_0x3d5e1a[_0x5ed594(0x264)][_0x5ed594(0x8f)],'redoState':_0x54403b[_0x5ed594(0x264)][_0x5ed594(0x8f)]}),_0xd6af5a=_0x3d5e1a[_0x5ed594(0x25b)],_0x285cc4=_0x54403b[_0x5ed594(0x25b)];}_0xd6af5a=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8[_0x5ed594(0x2ae)][0x0]),_0x285cc4=_0x24ffc8[_0x5ed594(0x1ee)](_0x3130e8[_0x5ed594(0x2ae)][0x0]);for(let _0x299179=_0x50e49e[_0x5ed594(0xea)]-0x1;_0x299179>=0x0;_0x299179--){const _0x1a222f={'id':_0x5ed594(0xb1),'params':{'unitId':_0x50e49e[_0x299179]['unitId'],..._0x50e49e[_0x299179][_0x5ed594(0x293)]}},_0x379e5c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x50e49e[_0x299179][_0x5ed594(0x19a)],..._0x50e49e[_0x299179]['redoState']}},_0x2e1d90=this[_0x5ed594(0xfc)][_0x5ed594(0x2d0)](_0xd6af5a,_0x1a222f,!0x1),_0x5be10e=this[_0x5ed594(0xfc)]['transformMutation'](_0x285cc4,_0x379e5c,!0x1);if(_0x3d60d7(_0x2e1d90))throw _0x2e1d90[_0x5ed594(0x17e)];if(_0x3d60d7(_0x5be10e))throw _0x5be10e['error'];_0x39c935['unshift']({..._0x50e49e[_0x299179],'undoState':_0x2e1d90[_0x5ed594(0x264)]['params'],'redoState':_0x5be10e[_0x5ed594(0x264)][_0x5ed594(0x8f)]}),_0xd6af5a=_0x2e1d90[_0x5ed594(0x25b)],_0x285cc4=_0x5be10e[_0x5ed594(0x25b)];}this[_0x5ed594(0x267)][_0x5ed594(0x16f)](_0x3a049a,{'history':_0x5b977a,'collaboration':_0x39c935});}};ue=mn([Le(0x0,_0x384b36(_0x2975ff)),Le(0x1,_0x2843ad),Le(0x2,_0x384b36(_0x31ecfe))],ue);var In=Object[_0x331486(0x1ca)],fn=(_0x1d6bde,_0x395464,_0x51244e,_0x10134d)=>{const _0x360076=_0x331486;for(var _0x1577aa=_0x10134d>0x1?void 0x0:_0x10134d?In(_0x395464,_0x51244e):_0x395464,_0x54623e=_0x1d6bde[_0x360076(0xea)]-0x1,_0x261cc8;_0x54623e>=0x0;_0x54623e--)(_0x261cc8=_0x1d6bde[_0x54623e])&&(_0x1577aa=_0x261cc8(_0x1577aa)||_0x1577aa);return _0x1577aa;},ht=(_0x45e98d,_0x168e46)=>(_0x47f746,_0x4d9156)=>_0x168e46(_0x47f746,_0x4d9156,_0x45e98d);let de=class{constructor(_0x36b54c,_0xdde101){const _0x355d50=_0x331486;this[_0x355d50(0x1fb)]=_0x36b54c,this[_0x355d50(0xfc)]=_0xdde101;}[_0x331486(0x1b8)](_0x9a63f){const _0x277452=_0x331486;var _0x1bc2c3;const _0x180982=this[_0x277452(0x1fb)][_0x277452(0x1e7)](_0x1bc8e5),_0x57b81b=(_0x1bc2c3=_0x180982[_0x277452(0x13f)]())!=null?_0x1bc2c3:[];if(_0x57b81b[_0x277452(0xea)]===0x0)return;const _0x1b47d1=_0x9a63f[_0x277452(0x203)],_0x1482ec=[{'id':_0x277452(0xb1),'params':{'unitId':_0x1b47d1,'actions':null,'textRanges':_0x57b81b}}],_0x1e2f8f=this['_transformService'][_0x277452(0x172)](_0x9a63f,_0x1482ec);if(!_0xa9160d(_0x1e2f8f))throw _0x1e2f8f[_0x277452(0x17e)];const _0x25948a=_0x1e2f8f['m2Prime'][0x0][_0x277452(0x8f)][_0x277452(0x1d1)];Array[_0x277452(0x238)](_0x25948a)&&_0x25948a['length']&&_0x180982[_0x277452(0xbe)](_0x25948a,{'unitId':_0x1b47d1,'subUnitId':_0x1b47d1},!0x1);}};de=fn([ht(0x0,_0x384b36(_0x2975ff)),ht(0x1,_0x2843ad)],de);var gn=Object[_0x331486(0x1ca)],vn=(_0x4aeeb4,_0x47d1f5,_0x2c963d,_0x3421e7)=>{for(var _0x54f66a=_0x3421e7>0x1?void 0x0:_0x3421e7?gn(_0x47d1f5,_0x2c963d):_0x47d1f5,_0xfc6fb0=_0x4aeeb4['length']-0x1,_0x23b85a;_0xfc6fb0>=0x0;_0xfc6fb0--)(_0x23b85a=_0x4aeeb4[_0xfc6fb0])&&(_0x54f66a=_0x23b85a(_0x54f66a)||_0x54f66a);return _0x54f66a;},U=(_0x582e1a,_0x33d608)=>(_0x4d963e,_0x1be16e)=>_0x33d608(_0x4d963e,_0x1be16e,_0x582e1a);let Se=class extends _0x4064cc{constructor(_0x4c083d,_0x22af3a,_0x5323a6,_0xdd80e7,_0x389200,_0x1fa679,_0x1aa028,_0xecab3e){const _0x4780b6=_0x331486;super(),_(this,'_status$',new _0x5adb5d(_0x1917c2['NOT_COLLAB'])),(this[_0x4780b6(0x267)]=_0x4c083d,this[_0x4780b6(0x233)]=_0x22af3a,this['_docTransformIMECacheService']=_0x5323a6,this[_0x4780b6(0x283)]=_0xdd80e7,this['_docTransformSelectionsService']=_0x389200,this['_docSyncEditingCollabCursorService']=_0x1fa679,this['_messageService']=_0x1aa028,this[_0x4780b6(0x2d5)]=_0xecab3e,this[_0x4780b6(0x298)]());}[_0x331486(0x298)](){const _0x2aeaee=_0x331486;this['disposeWithMe'](this[_0x2aeaee(0x233)][_0x2aeaee(0x12d)]['subscribe'](_0x33dd6c=>{const _0x295d57=_0x2aeaee,_0x1814a7=this[_0x295d57(0x267)][_0x295d57(0xde)][_0x295d57(0x1e8)](_0x4ceb80=>{const _0x5729b3=_0x295d57;if(_0x4ceb80==null)return;const {unitId:_0x2c5251,redoState:_0x2bf0ae,commandId:_0x42158d}=_0x4ceb80;if(_0x2c5251!==_0x33dd6c['unitID'])return;const _0x5c6f9b={'id':_0x42158d,'type':_0x224740[_0x5729b3(0x214)],'params':{'unitId':_0x2c5251,'actions':_0x2bf0ae[_0x5729b3(0x1d0)],'textRanges':null}};_0x33dd6c[_0x5729b3(0x299)](_0x5c6f9b);});if(_0x33dd6c[_0x295d57(0xf5)](_0x1814a7),_0x33dd6c instanceof _0x1fd1f0){const _0x1c35dd={'onTransformIME':_0x473ce2=>this[_0x295d57(0x201)][_0x295d57(0xa6)](_0x473ce2),'onTransformState':_0x1553bb=>this[_0x295d57(0x283)]['transformStateCache'](_0x1553bb),'onTransformSelections':_0x2f3848=>this[_0x295d57(0x2a9)][_0x295d57(0x1b8)](_0x2f3848),'onSyncEditingCollabCursor':_0x5257ad=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x5257ad),'onTransformRemoteChangesetByIMECache':_0xe76efd=>this[_0x295d57(0x201)][_0x295d57(0xa2)](_0xe76efd),'onTransformRemoteChangesetByStateCache':_0xc10c06=>this[_0x295d57(0x283)][_0x295d57(0xa2)](_0xc10c06)};_0x33dd6c[_0x295d57(0x227)](_0x1c35dd);}}));}};Se=vn([U(0x0,_0x384b36(_0x31ecfe)),U(0x1,_0x384b36(_0x24f9da)),U(0x2,_0x384b36(he)),U(0x3,_0x384b36(ue)),U(0x4,_0x384b36(de)),U(0x5,_0x384b36(ze)),U(0x6,_0xc89ae7),U(0x7,_0x384b36(_0x4b3f44))],Se);var Z=(_0x10e411=>(_0x10e411[_0x10e411[_0x331486(0xb4)]=0x0]=_0x331486(0xb4),_0x10e411[_0x10e411['OK']=0x1]='OK',_0x10e411[_0x10e411[_0x331486(0xc0)]=0x2]=_0x331486(0xc0),_0x10e411[_0x10e411['PERMISSION_DENIED']=0x3]=_0x331486(0x297),_0x10e411[_0x10e411[_0x331486(0xda)]=0x4]='NOT_FOUND',_0x10e411[_0x10e411['UNAUTHENTICATED']=0x5]=_0x331486(0xc3),_0x10e411[_0x10e411[_0x331486(0x10a)]=0x6]=_0x331486(0x10a),_0x10e411[_0x10e411[_0x331486(0x1a4)]=0x7]='INVALID_ARGUMENT',_0x10e411[_0x10e411[_0x331486(0x1b2)]=0x8]='TOO_MANY_REQUESTS',_0x10e411[_0x10e411[_0x331486(0x2ac)]=0x9]=_0x331486(0x2ac),_0x10e411[_0x10e411[_0x331486(0x12b)]=0xa]=_0x331486(0x12b),_0x10e411[_0x10e411[_0x331486(0x24c)]=0xb]=_0x331486(0x24c),_0x10e411[_0x10e411[_0x331486(0x1a6)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x10e411[_0x10e411['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x10e411[_0x10e411[_0x331486(0x2a2)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x10e411[_0x10e411['AUTHORIZE_CODE_ILLEGAL']=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x10e411[_0x10e411[_0x331486(0x242)]=0x10]=_0x331486(0x242),_0x10e411[_0x10e411[_0x331486(0xff)]=0x64]=_0x331486(0xff),_0x10e411[_0x10e411[_0x331486(0x253)]=0x65]=_0x331486(0x253),_0x10e411[_0x10e411[_0x331486(0x26f)]=0xc9]='USER_NOT_FOUND',_0x10e411[_0x10e411['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x10e411[_0x10e411[_0x331486(0x2cb)]=0x1389]=_0x331486(0x2cb),_0x10e411[_0x10e411[_0x331486(0x8a)]=0x1771]=_0x331486(0x8a),_0x10e411[_0x10e411[_0x331486(0xb9)]=0x1772]=_0x331486(0xb9),_0x10e411[_0x10e411[_0x331486(0x229)]=0x1773]=_0x331486(0x229),_0x10e411[_0x10e411[_0x331486(0x1e5)]=0x1b59]=_0x331486(0x1e5),_0x10e411[_0x10e411[_0x331486(0xfe)]=0x1b5a]=_0x331486(0xfe),_0x10e411[_0x10e411[_0x331486(0x16c)]=0x1b5b]=_0x331486(0x16c),_0x10e411[_0x10e411['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x331486(0x2d2),_0x10e411[_0x10e411[_0x331486(0xd7)]=0x1b5d]=_0x331486(0xd7),_0x10e411[_0x10e411[_0x331486(0x2a8)]=0x1f41]=_0x331486(0x2a8),_0x10e411[_0x10e411[_0x331486(0x217)]=0x2329]=_0x331486(0x217),_0x10e411[_0x10e411[_0x331486(0x8b)]=0x232a]=_0x331486(0x8b),_0x10e411[_0x10e411['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x331486(0x240),_0x10e411[_0x10e411[_0x331486(0xdc)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x10e411[_0x10e411[_0x331486(0x2c6)]=0x232d]=_0x331486(0x2c6),_0x10e411[_0x10e411[_0x331486(0x2a3)]=0x2711]=_0x331486(0x2a3),_0x10e411[_0x10e411['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x10e411[_0x10e411[_0x331486(0x219)]=0x2713]=_0x331486(0x219),_0x10e411[_0x10e411[_0x331486(0x131)]=0x2714]=_0x331486(0x131),_0x10e411[_0x10e411[_0x331486(0xcf)]=0x271a]=_0x331486(0xcf),_0x10e411[_0x10e411[_0x331486(0xc6)]=0x271b]=_0x331486(0xc6),_0x10e411[_0x10e411[_0x331486(0x1ec)]=0x271c]=_0x331486(0x1ec),_0x10e411[_0x10e411[_0x331486(0x236)]=0x271d]=_0x331486(0x236),_0x10e411[_0x10e411[_0x331486(0x1a0)]=0x271e]=_0x331486(0x1a0),_0x10e411[_0x10e411[_0x331486(0x93)]=0x271f]=_0x331486(0x93),_0x10e411[_0x10e411[_0x331486(0x295)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x10e411[_0x10e411[_0x331486(0x17d)]=0x2af9]=_0x331486(0x17d),_0x10e411[_0x10e411[_0x331486(0x184)]=0x2ee1]=_0x331486(0x184),_0x10e411[_0x10e411[_0x331486(0xc1)]=0x2ee2]=_0x331486(0xc1),_0x10e411[_0x10e411[_0x331486(0x225)]=0x2ee3]=_0x331486(0x225),_0x10e411[_0x10e411[_0x331486(0x143)]=0x2ee4]=_0x331486(0x143),_0x10e411[_0x10e411[_0x331486(0x138)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x10e411[_0x10e411[_0x331486(0x28e)]=0x32c9]=_0x331486(0x28e),_0x10e411[_0x10e411['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x331486(0x10d),_0x10e411[_0x10e411[_0x331486(0x11f)]=0x32cb]=_0x331486(0x11f),_0x10e411[_0x10e411[_0x331486(0xbc)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x10e411[_0x10e411[_0x331486(0x24b)]=0x36b2]=_0x331486(0x24b),_0x10e411[_0x10e411[_0x331486(0x110)]=0x36b3]=_0x331486(0x110),_0x10e411[_0x10e411[_0x331486(0x106)]=0x36b4]=_0x331486(0x106),_0x10e411[_0x10e411[_0x331486(0x2cd)]=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x10e411[_0x10e411['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x331486(0x252),_0x10e411[_0x10e411[_0x331486(0x292)]=0x3717]=_0x331486(0x292),_0x10e411[_0x10e411[_0x331486(0x21d)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x10e411[_0x10e411[_0x331486(0x1db)]=0x3a99]=_0x331486(0x1db),_0x10e411[_0x10e411[_0x331486(0x279)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x10e411[_0x10e411['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x331486(0x266),_0x10e411[_0x10e411['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x331486(0x250),_0x10e411[_0x10e411[_0x331486(0x88)]=0x3a9d]=_0x331486(0x88),_0x10e411[_0x10e411['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x331486(0x96),_0x10e411[_0x10e411[_0x331486(0x270)]=0x3a9f]=_0x331486(0x270),_0x10e411[_0x10e411[_0x331486(0x26c)]=0x3e81]=_0x331486(0x26c),_0x10e411[_0x10e411['UNRECOGNIZED']=-0x1]=_0x331486(0x14e),_0x10e411))(Z||{});function En(_0x206209){const _0x2ec86a=_0x331486;var _0x9a32ad,_0x1cf2af;const _0x29d737=(_0x9a32ad=_0x206209[_0x2ec86a(0xd0)])==null?void 0x0:_0x9a32ad[_0x2ec86a(0x101)],_0x3cb1f9=((_0x1cf2af=_0x206209[_0x2ec86a(0xd0)])==null?void 0x0:_0x1cf2af[_0x2ec86a(0x28f)])||0x0;return _0x29d737===_0x238a49['START_CALCULATION']&&_0x3cb1f9>0x0;}function pn(_0x30ac10){const _0x2af581=_0x331486;return _0x30ac10[_0x2af581(0x284)]===_0x144892['SUCCESS'];}var On=Object[_0x331486(0x1ca)],Tn=(_0x4dc537,_0xb57314,_0x2a634e,_0x5dc7c3)=>{for(var _0x33ea86=_0x5dc7c3>0x1?void 0x0:_0x5dc7c3?On(_0xb57314,_0x2a634e):_0xb57314,_0x6b4294=_0x4dc537['length']-0x1,_0x3f5369;_0x6b4294>=0x0;_0x6b4294--)(_0x3f5369=_0x4dc537[_0x6b4294])&&(_0x33ea86=_0x3f5369(_0x33ea86)||_0x33ea86);return _0x33ea86;},P=(_0x16ecd2,_0x533ed3)=>(_0x50e7df,_0x4818b4)=>_0x533ed3(_0x50e7df,_0x4818b4,_0x16ecd2);const Cn=_0x331486(0x289),Rn=_0x331486(0x9d),Dn=_0x331486(0x288);let me=class extends _0x4064cc{constructor(_0x2790e1,_0x267107,_0xb0abf3,_0x2a797c,_0x14c596,_0x2dad5c,_0x5a58d2){const _0x53aa52=_0x331486;super(),_(this,_0x53aa52(0x265),null),_(this,_0x53aa52(0xa7),0x0),_(this,_0x53aa52(0xaf),0x0),_(this,'_taskIds',[]),_(this,_0x53aa52(0x1bf),0x0),(this[_0x53aa52(0x17a)]=_0x2790e1,this[_0x53aa52(0x124)]=_0x267107,this[_0x53aa52(0x200)]=_0xb0abf3,this[_0x53aa52(0x202)]=_0x2a797c,this[_0x53aa52(0xed)]=_0x14c596,this['_logService']=_0x2dad5c,this[_0x53aa52(0x2d5)]=_0x5a58d2,this[_0x53aa52(0xdb)]());}[_0x331486(0xdb)](){const _0x5a6cf7=_0x331486;this[_0x5a6cf7(0xf5)](this['_commandService']['beforeCommandExecuted']((_0x366b62,_0x4f57c1)=>{const _0x9bba60=_0x5a6cf7;var _0xfef4ad;if(_0x366b62['id']!==_0x96febf['id'])return;const _0x2ea014=_0x366b62[_0x9bba60(0x8f)];if(!this[_0x9bba60(0x2aa)]((_0xfef4ad=_0x2ea014[_0x9bba60(0x1eb)])!=null?_0xfef4ad:[]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x366b62,_0x4f57c1),this[_0x9bba60(0x2ce)](),new _0x2e132b();})),this[_0x5a6cf7(0xf5)](this[_0x5a6cf7(0x124)][_0x5a6cf7(0x2b2)]((_0x3686d6,_0x506814)=>{const _0x3656db=_0x5a6cf7;if(_0x3686d6['id']!==_0x2312b3['id'])return;const _0x5d0895=_0x3686d6[_0x3656db(0x8f)];if(En(_0x5d0895)){const _0x5e06ca=_0x460716();this['_taskIds'][_0x3656db(0x118)](_0x5e06ca),this[_0x3656db(0x176)](_0x5e06ca);}else{if(pn(_0x5d0895)&&this[_0x3656db(0x1ac)]['length']>0x0){const _0x59c2d3=this['_taskIds'][_0x3656db(0x191)]();this['_releaseCalculationLimit'](_0x59c2d3);}}}));}['dispose'](){const _0x560309=_0x331486;super['dispose'](),this['_clearPolling'](),this[_0x560309(0x1ac)]=[],this[_0x560309(0xaf)]=0x0,this[_0x560309(0xa7)]=0x0,this[_0x560309(0x1bf)]=0x0;}async[_0x331486(0x1d8)](_0xd2d542,_0x127f50){const _0x3a5c88=_0x331486;for(let _0x393a59=0x0;_0x393a59<0x1e;_0x393a59++)try{if(await this[_0x3a5c88(0x21e)](),this[_0x3a5c88(0xf9)]()){this['_applyCommand'](_0xd2d542,_0x127f50),this[_0x3a5c88(0x17a)][_0x3a5c88(0x268)]({'content':this[_0x3a5c88(0x2d5)]['t'](_0x3a5c88(0x1b1)),'type':_0x27e95d['Success']});return;}await new Promise(_0x45de95=>{const _0x19a9c6=_0x3a5c88;this[_0x19a9c6(0x265)]=window[_0x19a9c6(0x2c2)](_0x45de95,0x3e8);});}catch(_0x23f3c2){this[_0x3a5c88(0xb6)][_0x3a5c88(0x17e)](_0x23f3c2);}this[_0x3a5c88(0x17a)][_0x3a5c88(0x268)]({'content':this[_0x3a5c88(0x2d5)]['t']('formula.calculation.unable'),'type':_0x27e95d[_0x3a5c88(0x2a0)]});}[_0x331486(0x19c)](_0x21fd79,_0x19e494){const _0x556dd5=_0x331486;try{this[_0x556dd5(0x124)][_0x556dd5(0x255)](_0x21fd79['id'],_0x21fd79[_0x556dd5(0x8f)],_0x19e494);}catch(_0x1be405){this[_0x556dd5(0xb6)][_0x556dd5(0x17e)](_0x1be405);}}[_0x331486(0x205)](_0x4dda3c,_0x147314){const _0x5023f0=_0x331486;_0x147314<this[_0x5023f0(0x1bf)]||(this[_0x5023f0(0x1bf)]=_0x147314,this[_0x5023f0(0xa7)]=Number['parseInt'](_0x4dda3c[_0x5023f0(0x185)]),this[_0x5023f0(0xaf)]=Number[_0x5023f0(0x29c)](_0x4dda3c[_0x5023f0(0x19d)]));}async[_0x331486(0x176)](_0x445dfa){const _0x472796=_0x331486;var _0x12bd0e,_0x32b39b;const _0x337679=Date[_0x472796(0x29d)]();try{const _0xabdf8=((_0x12bd0e=this[_0x472796(0x200)]['getConfig'](_0x317300))==null?void 0x0:_0x12bd0e[_0x472796(0x1f3)])||Rn,_0x1eb757=(await this[_0x472796(0x202)][_0x472796(0x18e)](_0xabdf8,{'body':JSON['stringify']({'taskId':_0x445dfa})}))['body'];if(((_0x32b39b=_0x1eb757['error'])==null?void 0x0:_0x32b39b[_0x472796(0x2c1)])!==Z['OK'])return;this[_0x472796(0x205)](_0x1eb757[_0x472796(0x160)],_0x337679);}catch(_0xcf6cbe){this[_0x472796(0xb6)][_0x472796(0x17e)](_0xcf6cbe);}}async['_getFormulaLimitStatus'](_0x253b70){const _0xa479ad=_0x331486;var _0x4f41ef,_0xc56bd7;const _0x2283eb=Date[_0xa479ad(0x29d)]();try{const _0x2b843f=((_0x4f41ef=this[_0xa479ad(0x200)]['getConfig'](_0x317300))==null?void 0x0:_0x4f41ef[_0xa479ad(0x1a2)])||Cn,_0x896f33=_0x253b70?_0x2b843f+'?taskId='+encodeURIComponent(_0x253b70):_0x2b843f,_0x860464=(await this[_0xa479ad(0x202)]['get'](_0x896f33))['body'];if(((_0xc56bd7=_0x860464['error'])==null?void 0x0:_0xc56bd7['code'])!==Z['OK'])return;this[_0xa479ad(0x205)](_0x860464[_0xa479ad(0x160)],_0x2283eb);}catch(_0x47e03f){this[_0xa479ad(0xb6)]['error'](_0x47e03f);}}async['_releaseCalculationLimit'](_0x1f3a9e){const _0x3472fb=_0x331486;var _0x54eb9f,_0x3d89cf;const _0x5d239e=Date[_0x3472fb(0x29d)]();try{const _0x24f8f0=((_0x54eb9f=this[_0x3472fb(0x200)][_0x3472fb(0x135)](_0x317300))==null?void 0x0:_0x54eb9f[_0x3472fb(0x1ad)])||Dn,_0x354cb2=(await this[_0x3472fb(0x202)][_0x3472fb(0x18e)](_0x24f8f0,{'body':JSON[_0x3472fb(0x20a)]({'taskId':_0x1f3a9e})}))['body'];if(((_0x3d89cf=_0x354cb2['error'])==null?void 0x0:_0x3d89cf[_0x3472fb(0x2c1)])!==Z['OK'])return;this[_0x3472fb(0x205)](_0x354cb2[_0x3472fb(0x160)],_0x5d239e);}catch(_0x74c500){this['_logService'][_0x3472fb(0x17e)](_0x74c500);}}[_0x331486(0xf9)](){const _0x4249a3=_0x331486;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x4249a3(0xa7)]-this[_0x4249a3(0xaf)]>0x0;}[_0x331486(0x129)](){const _0x3f972f=_0x331486;this[_0x3f972f(0x265)]&&(clearTimeout(this['_pollingInterval']),this[_0x3f972f(0x265)]=null);}[_0x331486(0x2ce)](){const _0x4ecad3=_0x331486;this[_0x4ecad3(0x17a)][_0x4ecad3(0x268)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x27e95d[_0x4ecad3(0x20c)]});}[_0x331486(0x2aa)](_0x18893e){const _0x33f48d=_0x331486;for(const _0x1fbbf6 of _0x18893e){const {unitId:_0x2b1257,sheetId:_0x359ae9,range:_0x3760f9}=_0x1fbbf6,_0x4c224d=this[_0x33f48d(0xed)][_0x33f48d(0x99)](_0x2b1257);if(!_0x4c224d)continue;const _0x27014e=_0x4c224d['getSheetBySheetId'](_0x359ae9);if(!_0x27014e)continue;const _0x204bd0=_0x27014e[_0x33f48d(0x1c5)]();for(let _0x583f16=_0x3760f9[_0x33f48d(0x260)];_0x583f16<=_0x3760f9[_0x33f48d(0xf7)];_0x583f16++)for(let _0xf190af=_0x3760f9[_0x33f48d(0x262)];_0xf190af<=_0x3760f9[_0x33f48d(0x108)];_0xf190af++){const _0x4d311e=_0x204bd0[_0x33f48d(0xf0)](_0x583f16,_0xf190af);if(_0x4d311e&&(_0x365838(_0x4d311e['f'])||_0x31b7fb(_0x4d311e['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x384b36(_0xc89ae7)),P(0x1,_0xd74a37),P(0x2,_0x5f43ff),P(0x3,_0x384b36(_0x3fa719)),P(0x4,_0x34a5b3),P(0x5,_0x1f29f4),P(0x6,_0x384b36(_0x4b3f44))],me);var bn=Object['getOwnPropertyDescriptor'],Nn=(_0x41a218,_0x4ce37d,_0x261691,_0xf5804c)=>{for(var _0x3329e4=_0xf5804c>0x1?void 0x0:_0xf5804c?bn(_0x4ce37d,_0x261691):_0x4ce37d,_0x2cd630=_0x41a218['length']-0x1,_0x4aaf2d;_0x2cd630>=0x0;_0x2cd630--)(_0x4aaf2d=_0x41a218[_0x2cd630])&&(_0x3329e4=_0x4aaf2d(_0x3329e4)||_0x3329e4);return _0x3329e4;},Ue=(_0x27c545,_0x977477)=>(_0x51938f,_0x41ab5b)=>_0x977477(_0x51938f,_0x41ab5b,_0x27c545);let He=class extends _0x4064cc{constructor(_0x4f4f6c,_0xa6e37,_0x1852f8){const _0x34b9b7=_0x331486;super(),_(this,_0x34b9b7(0x261),new Map()),_(this,_0x34b9b7(0x23d),new Map()),_(this,_0x34b9b7(0x15b),!0x1),(this[_0x34b9b7(0x200)]=_0x4f4f6c,this[_0x34b9b7(0x1cb)]=_0xa6e37,this[_0x34b9b7(0x1da)]=_0x1852f8);}[_0x331486(0x22e)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x5aee88=_0x331486;this[_0x5aee88(0x15b)]=!0x1;}get[_0x331486(0x177)](){const _0x4cd187=_0x331486;return this[_0x4cd187(0x23d)];}[_0x331486(0x1af)](){const _0x470471=_0x331486;this[_0x470471(0x1a1)]()[_0x470471(0x287)](()=>super['dispose']());}async[_0x331486(0x179)](_0x3fabd7){const _0x4cde60=_0x331486;return this[_0x4cde60(0x15b)]?null:this[_0x4cde60(0x1cb)][_0x4cde60(0x2af)](_0x4579ea(_0x3fabd7));}async['saveOfflineData'](_0x2e682e,_0x42c70c){const _0x1e1851=_0x331486;return!!this[_0x1e1851(0x1cb)][_0x1e1851(0x174)](_0x2e682e,_0x42c70c);}[_0x331486(0xe4)](_0x535949,_0xce44f2,_0x5148a2,_0x1259dd){const _0x17234e=_0x331486,_0xa1d654=this[_0x17234e(0x1da)][_0x17234e(0x2d7)](_0x535949);this[_0x17234e(0x261)][_0x17234e(0x1c0)](_0x535949,{'unitID':_0x535949,'type':_0xce44f2,'awaitingChangeset':_0x5148a2,'mutations':_0x1259dd,'rev':_0xa1d654}),this[_0x17234e(0x23d)][_0x17234e(0x1ef)](_0x535949)||this['_scheduleSaving'](_0x535949);}[_0x331486(0xd2)](_0x4c826f){const _0x49b45f=_0x331486,_0x1fddb7=this[_0x49b45f(0x23b)]();_0x1fddb7===0x0?this['_saveCache'](_0x4c826f):this['_saveTaskMap']['set'](_0x4c826f,setTimeout(()=>this['_saveCache'](_0x4c826f),_0x1fddb7));}[_0x331486(0x23b)](){const _0x305ade=_0x331486;var _0x309924;return(_0x309924=this[_0x305ade(0x200)]['getConfig'](_0x17b7f2))!=null?_0x309924:_0x3e4b99;}[_0x331486(0x183)](_0x50e3a8){const _0xe361ba=_0x331486,_0x2f66f7=this['_saveTaskMap'][_0xe361ba(0x1e7)](_0x50e3a8);return _0x2f66f7!==void 0x0&&window[_0xe361ba(0x286)](_0x2f66f7),this[_0xe361ba(0x1cb)][_0xe361ba(0x174)](_0x4579ea(_0x50e3a8),this[_0xe361ba(0x261)][_0xe361ba(0x1e7)](_0x50e3a8))[_0xe361ba(0x287)](()=>this[_0xe361ba(0x23d)][_0xe361ba(0x211)](_0x50e3a8));}async[_0x331486(0x1a1)](){const _0x23bbe6=_0x331486,_0x334683=[];this['_saveTaskMap'][_0x23bbe6(0x210)]((_0x36f002,_0x4a88e5)=>{const _0xa92ff6=_0x23bbe6;window[_0xa92ff6(0x286)](_0x36f002),_0x334683['push'](this[_0xa92ff6(0x183)](_0x4a88e5)['then'](()=>{const _0x3a298b=_0xa92ff6;this[_0x3a298b(0x23d)][_0x3a298b(0x211)](_0x4a88e5);}));}),await Promise[_0x23bbe6(0x196)](_0x334683);}};He=Nn([Ue(0x0,_0x5f43ff),Ue(0x1,_0x25196f),Ue(0x2,_0x384b36(_0x21d43a))],He);class Ln extends _0x57605c{constructor(){const _0x237385=_0x331486;super(),_(this,_0x237385(0x29f)),this[_0x237385(0x29f)]=_0x1059cc(window,'popstate')[_0x237385(0x181)](_0x136c33(this['dispose$']),_0x266c9a(0x1),_0x569761(void 0x0));}[_0x331486(0xe8)](_0x237917,_0x27a30c,_0x697cd2=!0x1){const _0x24be7e=_0x331486,_0x4f2169=new URL(window[_0x24be7e(0x1e4)][_0x24be7e(0x92)]);_0x4f2169[_0x24be7e(0xb0)][_0x24be7e(0x1c0)](_0x237917,_0x27a30c),_0x697cd2?window['history'][_0x24be7e(0x1ab)]('','',_0x4f2169[_0x24be7e(0x130)]()):window[_0x24be7e(0x276)][_0x24be7e(0xdf)]('','',_0x4f2169[_0x24be7e(0x130)]());}[_0x331486(0x1a9)](_0x4c0d75,_0x358427=!0x1){const _0x283200=_0x331486,_0x571977=new URL(window[_0x283200(0x1e4)][_0x283200(0x92)]);_0x571977[_0x283200(0xb0)][_0x283200(0x211)](_0x4c0d75),_0x358427?window[_0x283200(0x276)][_0x283200(0x1ab)]('','',_0x571977[_0x283200(0x130)]()):window[_0x283200(0x276)][_0x283200(0xdf)]('','',_0x571977[_0x283200(0x130)]());}[_0x331486(0xdd)](_0x4ca0b7){const _0x321923=_0x331486;var _0x32d51c;return(_0x32d51c=new URL(window[_0x321923(0x1e4)]['href'])[_0x321923(0xb0)][_0x321923(0x1e7)](_0x4ca0b7))!=null?_0x32d51c:void 0x0;}}var Un=Object[_0x331486(0x10c)],Mn=Object['getOwnPropertyDescriptor'],An=(_0x1b1f02,_0x4ea02e,_0xb02b00)=>_0x4ea02e in _0x1b1f02?Un(_0x1b1f02,_0x4ea02e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb02b00}):_0x1b1f02[_0x4ea02e]=_0xb02b00,Pn=(_0x1065bc,_0x1c314b,_0x3e57ca,_0x582792)=>{const _0x554d1b=_0x331486;for(var _0x313611=_0x582792>0x1?void 0x0:_0x582792?Mn(_0x1c314b,_0x3e57ca):_0x1c314b,_0x2991e3=_0x1065bc[_0x554d1b(0xea)]-0x1,_0x5abaca;_0x2991e3>=0x0;_0x2991e3--)(_0x5abaca=_0x1065bc[_0x2991e3])&&(_0x313611=_0x5abaca(_0x313611)||_0x313611);return _0x313611;},Me=(_0x3f93e2,_0x52de8b)=>(_0x31d580,_0x4c9f89)=>_0x52de8b(_0x31d580,_0x4c9f89,_0x3f93e2),wn=(_0x55a40f,_0x51c5a1,_0x22018b)=>An(_0x55a40f,_0x51c5a1+'',_0x22018b);const yn=_0x331486(0x15c);let Ye=class extends _0x1d5629{constructor(_0x217043=_t,_0x1c7fef,_0x2bbe3c,_0x4d1a41){const _0x43c28a=_0x331486;super(),this['_config']=_0x217043,this['_renderManagerService']=_0x1c7fef,this[_0x43c28a(0x1fb)]=_0x2bbe3c,this[_0x43c28a(0x200)]=_0x4d1a41;const {..._0x71853a}=_0x1e7bf4({},_t,this[_0x43c28a(0x137)]);this['_configService']['setConfig'](hn,_0x71853a);}[_0x331486(0x150)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x331486(0x15f)](){const _0x24cdbf=_0x331486;this[_0x24cdbf(0x16d)]();}[_0x331486(0x156)](){const _0x22e174=_0x331486;var _0x1f5c52;const _0x37c168=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x48e0d4,{'useClass':_0x5d29c5}],[_0x24b451,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0x22e174(0x137)][_0x22e174(0x1e2)]&&_0x37c168[_0x22e174(0x118)]([le]),_0x5c8afa(this[_0x22e174(0x1fb)],_0xf081e9(_0x37c168,(_0x1f5c52=this[_0x22e174(0x137)])==null?void 0x0:_0x1f5c52[_0x22e174(0x1e6)]));}[_0x331486(0x16d)](){const _0x5c9aa7=_0x331486;this[_0x5c9aa7(0xf5)](this[_0x5c9aa7(0x13e)][_0x5c9aa7(0x235)](_0x4e690a[_0x5c9aa7(0x237)],[Fe])),this['disposeWithMe'](this['_renderManagerService'][_0x5c9aa7(0x235)](_0x4e690a[_0x5c9aa7(0x153)],[ke]));}[_0x331486(0x144)](){const _0x41cb2f=_0x331486;_0x485043(this[_0x41cb2f(0x1fb)],[[H],[ae],[Se],[_e],[ce],[me]]),this[_0x41cb2f(0x137)]['enableFrontendLog']&&_0x485043(this[_0x41cb2f(0x1fb)],[[le]]);}};wn(Ye,'pluginName',yn),Ye=Pn([_0x145aff(_0x545449),Me(0x1,_0x450a3a),Me(0x2,_0x384b36(_0x2975ff)),Me(0x3,_0x5f43ff)],Ye);var $n=Object['getOwnPropertyDescriptor'],xn=(_0x234165,_0x52e2ef,_0x107f8b,_0x19f190)=>{const _0x325119=_0x331486;for(var _0x397fc9=_0x19f190>0x1?void 0x0:_0x19f190?$n(_0x52e2ef,_0x107f8b):_0x52e2ef,_0x43996d=_0x234165[_0x325119(0xea)]-0x1,_0x1c3483;_0x43996d>=0x0;_0x43996d--)(_0x1c3483=_0x234165[_0x43996d])&&(_0x397fc9=_0x1c3483(_0x397fc9)||_0x397fc9);return _0x397fc9;},J=(_0x33f251,_0x595f73)=>(_0xb4c193,_0x394927)=>_0x595f73(_0xb4c193,_0x394927,_0x33f251);let ut=class extends _0x1af29f{constructor(_0x314a8c,_0x488b3e,_0x2462e4,_0x1c3a5c,_0x4dae4c){super(_0x314a8c,_0x488b3e,_0x2462e4,_0x1c3a5c,_0x4dae4c);}async[_0x331486(0xa8)](_0x3f3758){const _0x5414fa=_0x331486,_0x3e6c18=await this[_0x5414fa(0x2a4)](),_0x28fba6=this['_createSocketURL'](_0x3f3758,_0x3e6c18);return this[_0x5414fa(0x2b7)](_0x28fba6);}['_createSocketURL'](_0x51fb26,_0x4b89bd){const _0x417aba=_0x331486,_0x41ff1f=typeof window>'u'?new URL(_0x51fb26):new URL(_0x51fb26,window[_0x417aba(0x1e4)][_0x417aba(0x246)]);_0x41ff1f[_0x417aba(0xb0)][_0x417aba(0x1c0)](_0x417aba(0xab),_0x4b89bd);const _0x17acb1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x417aba(0x1e4)]['search']);return _0x17acb1[_0x417aba(0x1e7)]('runId')&&_0x41ff1f[_0x417aba(0xb0)][_0x417aba(0x1c0)](_0x417aba(0x234),_0x17acb1[_0x417aba(0x1e7)](_0x417aba(0x234))),_0x41ff1f['toString']();}async['_getSessionTicket'](){const _0x1690be=_0x331486;var _0x48ed73,_0x1be1c0,_0x2c8be8;const _0x1ebe1b=this[_0x1690be(0x200)][_0x1690be(0x135)](_0x317300),_0x8fdd74=(_0x48ed73=_0x1ebe1b==null?void 0x0:_0x1ebe1b['wsSessionTicketUrl'])!=null?_0x48ed73:_0x87d114;return(_0x2c8be8=(_0x1be1c0=(await this[_0x1690be(0x202)][_0x1690be(0x1e7)](_0x8fdd74,{'headers':{'Content-Type':_0x1690be(0x14d)}}))[_0x1690be(0x223)])==null?void 0x0:_0x1be1c0['ticket'])!=null?_0x2c8be8:'';}};ut=xn([J(0x0,_0x384b36(_0x2975ff)),J(0x1,_0x384b36(_0x3fa719)),J(0x2,_0x5f43ff),J(0x3,_0x1f29f4),J(0x4,_0x5eb23d)],ut);var Bn=Object[_0x331486(0x1ca)],Fn=(_0x432744,_0x1ff292,_0x46a823,_0x286597)=>{const _0x385507=_0x331486;for(var _0x6071eb=_0x286597>0x1?void 0x0:_0x286597?Bn(_0x1ff292,_0x46a823):_0x1ff292,_0x1ad194=_0x432744[_0x385507(0xea)]-0x1,_0x233ee7;_0x1ad194>=0x0;_0x1ad194--)(_0x233ee7=_0x432744[_0x1ad194])&&(_0x6071eb=_0x233ee7(_0x6071eb)||_0x6071eb);return _0x6071eb;},Ae=(_0x1aed35,_0x36b337)=>(_0x15a35f,_0x2968b5)=>_0x36b337(_0x15a35f,_0x2968b5,_0x1aed35);let dt=class extends _0x4064cc{constructor(_0x8321f9,_0x1c5444,_0x810778){const _0x16fea6=_0x331486;super(),this[_0x16fea6(0xc2)]=_0x8321f9,this[_0x16fea6(0x202)]=_0x1c5444,this[_0x16fea6(0x200)]=_0x810778;}async[_0x331486(0x27f)](_0x507b0d,_0x30dfc7,_0x54850f,..._0x346dc8){const _0x378229=_0x331486;var _0x49d205,_0x24c6b0,_0x313a32,_0x3b63b4;const _0x34052e=this[_0x378229(0xc2)][_0x378229(0xcb)]();if(!_0x34052e)throw new Error(_0x378229(0xd8));const _0x3fd513=((_0x49d205=this[_0x378229(0x200)][_0x378229(0x135)](_0x10f6ab))!=null?_0x49d205:_0x4d4beb)+'/'+_0x507b0d+'/run/'+_0x30dfc7,_0x46e5f7=new URL(window['location'][_0x378229(0x92)]),_0x4ea777={'scriptId':_0x507b0d,'runId':(_0x24c6b0=_0x46e5f7[_0x378229(0xb0)][_0x378229(0x1e7)]('runId'))!=null?_0x24c6b0:'','function':_0x30dfc7,'unitId':_0x34052e['getUnitId'](),'argsOfFunction':JSON[_0x378229(0x20a)](_0x346dc8),'invokeId':(_0x313a32=_0x54850f[_0x378229(0x18d)])!=null?_0x313a32:'','executionId':(_0x3b63b4=_0x54850f[_0x378229(0x2ab)])!=null?_0x3b63b4:''};try{const _0x3c054f=await this[_0x378229(0x202)][_0x378229(0x18e)](_0x3fd513,{'body':_0x4ea777});return _0x3c054f['body'][_0x378229(0x17e)]&&_0x3c054f['body'][_0x378229(0x17e)]['code']!==Z['OK']?'Failed':_0x3c054f[_0x378229(0x223)][_0x378229(0x2be)];}catch{return _0x378229(0x1f2);}}};dt=Fn([Ae(0x0,_0x34a5b3),Ae(0x1,_0x384b36(_0x3fa719)),Ae(0x2,_0x5f43ff)],dt);const St=0x7530,mt=_0x331486(0x1ae);class rr extends _0x4064cc{constructor(){const _0x541194=_0x331486;super(),_(this,_0x541194(0x1a3),_0x460716()),_(this,_0x541194(0xfa),new Set()),_(this,_0x541194(0x10e),new Map()),_(this,_0x541194(0x155),null),_(this,_0x541194(0x2a1),new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x23d44b=_0x331486;super[_0x23d44b(0x1af)](),this[_0x23d44b(0x2a1)][_0x23d44b(0x210)]((_0x49e18d,_0x32a63e)=>this[_0x23d44b(0xa4)](_0x32a63e)),this[_0x23d44b(0x155)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x331486(0x1c8)](_0x391020){const _0x5e81d3=_0x331486;return this[_0x5e81d3(0x8e)](_0x391020)[_0x5e81d3(0x181)](_0x46c569());}[_0x331486(0x27e)](_0x5df393){const _0x43dd21=_0x331486;this[_0x43dd21(0xfa)][_0x43dd21(0x209)]===0x0&&this['_scheduleHeartbeat'](),this[_0x43dd21(0xfa)]['add'](_0x5df393),this[_0x43dd21(0x254)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5df393],'isForwarded':!0x1});}['disposeUnit'](_0x38a5df){const _0x423b46=_0x331486;this[_0x423b46(0xfa)]['delete'](_0x38a5df),this[_0x423b46(0xfa)][_0x423b46(0x209)]===0x0&&this[_0x423b46(0x155)]&&window[_0x423b46(0x1ba)](this['_heartbeatTimer']);}[_0x331486(0x119)](){const _0x2dfbfc=_0x331486;this[_0x2dfbfc(0xf5)](_0x385cfe(_0x1059cc(window,'storage')[_0x2dfbfc(0x1e8)](_0x3fdabd=>{const _0x57d155=_0x2dfbfc;if(_0x3fdabd[_0x57d155(0x14f)]!==mt||!_0x3fdabd[_0x57d155(0x166)])return;const _0x2a7138=JSON['parse'](_0x3fdabd[_0x57d155(0x166)]);this[_0x57d155(0x19e)](_0x2a7138);}))),window[_0x2dfbfc(0x21f)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x2dfbfc(0x1a3)],'unitIDs':Array[_0x2dfbfc(0x2cc)](this[_0x2dfbfc(0xfa)])}));}['_handleEvent'](_0x4a045b){const _0x1488d5=_0x331486;switch(_0x4a045b[_0x1488d5(0x1d3)]){case 0x0:this[_0x1488d5(0x115)](_0x4a045b);break;case 0x1:this[_0x1488d5(0x105)](_0x4a045b);break;case 0x2:this[_0x1488d5(0x22f)](_0x4a045b);break;}}[_0x331486(0x115)](_0x205c27){const _0x23991c=_0x331486,{unitIDs:_0x119dd5,memberID:_0x16bf12,isForwarded:_0x3b70a5}=_0x205c27;_0x119dd5[_0x23991c(0x210)](_0x5c7e6a=>{const _0x5f5160=_0x23991c;if(!_0x3b70a5&&this[_0x5f5160(0x10e)]['has'](_0x5c7e6a)&&this[_0x5f5160(0x8e)](_0x5c7e6a)['next'](_0x3fa58f[_0x5f5160(0x195)]),!this[_0x5f5160(0x10e)][_0x5f5160(0x1ef)](_0x5c7e6a)||!this[_0x5f5160(0x10e)][_0x5f5160(0x1e7)](_0x5c7e6a)['has'](_0x16bf12)){const _0x2daaca=this['_unitOnClients'][_0x5f5160(0x1e7)](_0x5c7e6a)||new Set();_0x2daaca[_0x5f5160(0x1b7)](_0x16bf12),this['_unitOnClients']['set'](_0x5c7e6a,_0x2daaca),this[_0x5f5160(0x94)](_0x16bf12);}}),_0x3b70a5||this[_0x23991c(0x254)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x331486(0x94)](_0xa5724e){const _0x408e21=_0x331486;this['_removeClearOtherTimer'](_0xa5724e);const _0x259825=window[_0x408e21(0x2c2)](()=>{const _0xefaf5c=_0x408e21;this[_0xefaf5c(0x10e)][_0xefaf5c(0x210)](_0x45e397=>{const _0x594561=_0xefaf5c;_0x45e397[_0x594561(0x211)](_0xa5724e);});},St*0x2);this[_0x408e21(0x2a1)][_0x408e21(0x1c0)](_0xa5724e,_0x259825);}[_0x331486(0xa4)](_0x1f3d15){const _0x48363e=_0x331486;if(this[_0x48363e(0x2a1)][_0x48363e(0x1ef)](_0x1f3d15)){const _0x5d35fb=this[_0x48363e(0x2a1)]['get'](_0x1f3d15);_0x5d35fb&&window[_0x48363e(0x286)](_0x5d35fb),this[_0x48363e(0x2a1)][_0x48363e(0x1c0)](_0x1f3d15,null);}}[_0x331486(0x105)](_0x51afb9){const _0x331a=_0x331486,{memberID:_0x59f35c,unitIDs:_0x2210c4}=_0x51afb9;_0x2210c4['forEach'](_0x19e6f7=>{const _0x3a75a4=_0x512f;var _0x298775;const _0x1e8f1f=this['_unitOnClients'][_0x3a75a4(0x1e7)](_0x19e6f7);_0x1e8f1f&&(_0x1e8f1f['delete'](_0x59f35c),(_0x298775=this[_0x3a75a4(0x8e)](_0x19e6f7))==null||_0x298775['next'](_0x1e8f1f[_0x3a75a4(0x209)]===0x0?_0x3fa58f[_0x3a75a4(0x9b)]:_0x3fa58f[_0x3a75a4(0x195)]));}),this[_0x331a(0xa4)](_0x59f35c);}[_0x331486(0x22f)](_0x11af1f){const _0x61cb7c=_0x331486;this[_0x61cb7c(0x94)](_0x11af1f[_0x61cb7c(0x98)]);}[_0x331486(0x254)](_0x374b37){const _0x57564b=_0x331486;localStorage[_0x57564b(0x174)](mt,JSON[_0x57564b(0x20a)](_0x374b37));}[_0x331486(0x2c3)](){const _0x1dd7ef=_0x331486;this[_0x1dd7ef(0x155)]=window[_0x1dd7ef(0x100)](()=>{const _0x41d28c=_0x1dd7ef;this[_0x41d28c(0x254)]({'type':0x2,'memberID':this[_0x41d28c(0x1a3)]});},St);}['_ensureSubject'](_0x1155e6){const _0x1f3928=_0x331486;return this['_unitStatus'][_0x1f3928(0x1ef)](_0x1155e6)||this[_0x1f3928(0x2ad)][_0x1f3928(0x1c0)](_0x1155e6,new _0x5adb5d(_0x3fa58f[_0x1f3928(0x9b)])),this[_0x1f3928(0x2ad)][_0x1f3928(0x1e7)](_0x1155e6);}}function _0x5658(){const _0x20e3f8=['ENTITLE_REPORT_LIMIT_EXCEED','ERROR_AGAIN','_send','executeCommand','addObject','div','701115QlHFLc','FromArray','complete','m1Prime','height','entries','1em','InsertRangeMoveRightCommandId','startRow','_cachedData','startColumn','lineTo','m2Prime','_pollingInterval','REDEMPTION_CODE_FULLY_REDEEMED','_docStateChangeManagerService','show','getColorFromTheme','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','activeSheet$','DATA_SOURCE_TOO_LARGE','_transformHistoryAndStateStack','onMouseMove','USER_NOT_FOUND','REDEMPTION_CODE_HAS_BEEN_CREATED','...','session.will-retry','/universer-api/frontend/logs','#FFF','_imageIoService','history','mask','_initWindowErrorListener','REDEMPTION_CODE_INACTIVE','_localCacheService','_getScale','makeDirty','_beforeCloseService','editingUnit','runOnServer','_online','_cursorShapes','collabStatus.offline','_docTransformStateCacheService','functionsExecutedState','OFFLINE','clearTimeout','then','/universer-api/license/formula/limit/done','/universer-api/license/formula/limit/status','CONFLICT','roomMembers','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','contains','WECHAT_HAS_BEEN_BOUND','totalFormulasToCalculate','unsubscribe','ranges','ENTITLE_INSUFFICIENT_QUOTA','undoState','permission.title','YUUMI_CONNECTOR_URL_NOT_FOUND','PENDING','PERMISSION_DENIED','_initEntityListener','onLocalMutation','FETCH_MISS','getMergeData','parseInt','now','getCurrent','urlChange$','Error','_clearOtherTimers','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','YUUMI_UNABLE_LOAD_URL','_getSessionTicket','getCollabCursors$','_initCommandExecutedListener','collabStatus.notCollab','CONNECTOR_DATA_TOO_LARGE','_docTransformSelectionsService','_hasFormulaInDirtyRanges','executionId','COMPLETION_FINISHED','_unitStatus','mutations','getItem','join','closePath','onCommandExecuted','cursorInfo','addObjects','unshift','map','_doCreateSocket','cursorInfo$','red.300','init','_collabCursorController','top','onPointerEnter$','result','setAlpha','_eventUnsubscribe','code','setTimeout','_scheduleHeartbeat','collab-text-range-','max','LICENSE_DISTRO_REJECTED','_session','_updateURLWithCurrentState','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','getViewport','CHANGESET_REVISION_CONFILICT','from','ENTITLE_CHAT_LIMIT_EXCEED','_showGuardMessage','getSheetBySheetId','transformMutation','getMember','APPLY_PERMISSION_DENIED','saveImage','_toggleOnline','_localeService','getOffsetConfig','getCurrentRevOfUnit','_onCursorUpdate','fill','REDEMPTION_USER_NOT_ELIGIBLE','getTypeOfUnitDisposed$','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','message','min','_ensureSubject','params','OnLineIcon','isActive','href','YUUMI_AI_RUN_FAILED','_scheduleClearOtherTimer','sheetId','REDEMPTION_USER_REDEEM_TIMES_EXCEED','61414mkZLMn','memberID','getUnit','_draw','NO_OTHER_CLIENTS_EDITING','permission.content','/universer-api/license/formula/limit/start','defs','getUndoRedoMutationParamsCache','_removeCollabCursors','getRangePointData','transformRemoteChangeset','find','_removeClearOtherTimer','registerRefRange','transformIMECache','_maxFormulaLimit','createSocket','registerComponent','_textBubble','sessionTicket','AWAITING_WITH_PENDING','current','_initStatusComponent','_currentUsage','searchParams','doc.mutation.rich-text-editing','url(#off-line-icon_clip0_910_343)','unhandledrejection','UNDEFINED','onTransformChange$','_logService','restore','hide','SNAPSHOT_HAS_BEEN_REMOVED','_startDocCollabCursor','drawWith','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_docClipboardService','replaceDocRanges','_collabSessionService','INTERNAL_ERROR','INVALID_INVITE_CODE','_instanceService','UNAUTHENTICATED','tag','InsertRowCommandId','YUUMI_ASYNCIO_CANCELLED','[LogService\x20Error]:\x20','_uploadLog','_refRangeService','white','getFocusedUnit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','labelPosition','OTHER_CLIENT_EDITING','YUUMI_NO_CUBOID_FOR_QUESTION','stageInfo','Unknown\x20user','_scheduleSaving','text','_hideTimer','[Window\x20Error]:\x20','column','APPLY_DUPLICATED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_memberService','NOT_FOUND','_initCommandInterceptor','LICENSE_EXPORT_SIZE_EXCEEDED','getParam','docStateChange$','pushState','sheetID','use','on-line-icon','subscribeEvent','updateOfflineData','0\x200\x2016\x2016','_docSkeleton','range','setParam','_document','length','_status$','socket$','_univerInstanceService','path','_docSkeletonManagerService','getValue','USERS_LEAVE','clipPath','removeEventListener','RECT','disposeWithMe','univer-flex\x20univer-items-center','endRow','transformStateCache','_checkCalculationAvailable','_selfUnitIDs','row','_transformService','subUnitId','APPLY_NON_SEQUENTIAL_REVISION','CURRENT_STATUS_CANNOT_OPERATE','setInterval','stage','save','getSkeleton','roomMembers$','_handleLeaveEvent','PAYMENT_CHANNEL_NOT_SUPPORT','collab-text-anchor-','endColumn','font','ALREADY_EXISTS','ONLINE','defineProperty','MOBILE_HAS_BEEN_BOUND','_unitOnClients','HEADER_MENU','ENTITLE_DUP_SUBSCRIPTION','isEditing','getCollabEntity$','startsWith','onPointerMove$','_handleJoinEvent','backgroundColor','_collaborationUIEventService','push','_init','selections','RemoveColCommandId','_initEvent','JOIN_ROOM_FAILED','collaboration.single-unit.warning','EMAIL_HAS_BEEN_BOUND','_render','_color','measureText','_syncEditingCollabCursorService','_commandService','values','data','requireSession','_transformPreviousActiveRange','_clearPolling','assignAColorForMemberID','LOGIN_FAILED','black','entityInit$','findNodePositionByCharIndex','_entityInit$','toString','YUUMI_SUBSCRIPTION_NOT_FOUND','getCurrentUnitForType','_setupBeforeClosingHandler','dispose$','getConfig','getVpScrollXYInfoByPosToVp','_config','INVITE_CODE_ALREADY_BOUND','_setupSubUnitSync','displayName','_scene','_getAnchorBounding','children','_renderManagerService','getDocRanges','_getSheetObject','assign','_colorIndex','USER_NOT_INVITED_CODE','_initDependencies','getActiveSheet','attrs','_labelPosition','CLOSE_ROOM','asObservable','none','evenodd','DeleteRangeMoveLeftCommandId','application/json','UNRECOGNIZED','key','onStarting','17asFloy','Warning','UNIVER_SHEET','_drawTextRange','_heartbeatTimer','_registerDependencies','_colorAssignService','purple.300','_dataLoaderService','_backgroundColor','_disabled','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','color','getCellPositionByOffset','onRendered','limitInfo','substring','_collabCursorState$','eventID','unit','onPointerLeave$','newValue','_updateSubUnitFromURLParams','yellow.400','name','beginPath','hovered','APPLY_REVISION_CONFILICT','_registerRenderDependencies','_updateLocalCursor','setStateCache','_initUserListener','session.collaboration-timeout','transformMutationsWithChangeset','getMemberID','setItem','_uiPartsService','_startCalculationLimit','saveTaskMap','stack','loadOfflineData','_messageService','_context','url(#$1','PY_RUNTIME_SCRIPT_ERROR','error','random','_assignedColors','pipe','_initResize','_saveCache','INVITE_CODE_HAS_BEEN_UES','maxFormulaLimit','_monkeyPatchLogService','_drawRectRange','_notificationService','moveTo','event$','_collaborationSessionService','getUnitId','invokeId','post','univerjs-icon\x20univerjs-icon-','engine','shift','url(#on-line-icon_clip0_910_349)','VIEW_MAIN','UPDATE_CURSOR','OTHER_CLIENTS_EDITING','all','_anchor','getRelativeToViewportCoord','_memberID','unitId','getTypeOfUnitAdded$','_applyCommand','currentUsage','_handleEvent','fillStyle','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','exhaustSavingTask','getformulaLimitStatusUrl','_id','INVALID_ARGUMENT','imageSourceType','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','79848MItGVJ','2535660oYkxjg','removeParam','catch','replaceState','_taskIds','releaseFormulaLimitUrl','ACTIVE_UNIT_EVENT_CHANNEL','dispose','_shapes','formula.calculation.started','TOO_MANY_REQUESTS','9510330MmEWFU','trim','selection','svg','add','transformSelections','status$','clearInterval','collaboration-client-ui.config','_cursor','defIds','fillText','_lastResponseTimestamp','set','string','_roomMembers$','_toggleOffline','next','getCellMatrix','8JeksLP','currentColor','getUnitStatus$','on-line-icon_clip0_910_349','getOwnPropertyDescriptor','_localStorageService','_getMergeRange','getStateCache','getUniverSheetInstance','arc','actions','textRanges','getSheetId','type','_drawAnchor','green.600','2533244UaoyoP','_startSheetCollabCursor','_checkAndWaitForCalculationPermission','getRenderById','_revisionService','REDEMPTION_INVALID_CODE','[Unhandled\x20Rejection]:\x20','collaboration-client.offline-data-not-saved','AWAITING','subunit','currentTheme$','_transformUndoRedoStack','enableFrontendLog','send','location','APPLY_REJECT','override','get','subscribe','NOT_COLLAB','_sheetSkeletonManagerService','dirtyRanges','YUUMI_TABLE_NOT_FOUND_IN_UNIT','redoState','deepClone','has','_lastPointer','filename','Failed','startFormulaLimitUrl','setActiveRange','InsertColCommandId','_cursors','_entities','M0\x200H16V16H0z','debug','split','_injector','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','width','toRgbString','setShapeProps','_configService','_docTransformIMECacheService','_httpService','unitID','_hovered','_setFormulaLimitStatus','_initUnhandledRejectionListener','whenReady','currentSkeleton$','size','stringify','round','Loading','collabStatus.synced','_range','focused$','forEach','delete','colorChannel1','idSuffix','MUTATION','fillRule','_themeService','LICENSE_MAX_UNITS_EXCEEDED','_onRefRangeChange','YUUMI_RATE_OVER_LIMIT','1438470wXBDsW','sessionStatus$','translate(.97)','ENTITLE_NEED_BILLING_ADDRESS','_getFormulaLimitStatus','addEventListener','_onCursorDelete','blue.400','with','body','collabStatus.conflict','INVITE_CODE_REQUIRED','4jtOEjx','addHandlerCallback','0\x200\x2017\x2016','ENSURE_SNAPSHOT_EXECUTION','UniverIcon','bottom','SOCKET_FAILED_RETRY','_initStatusListener','disableLocalCache','_handleHeartbeatEvent','SUBMIT_CHANGESET_TIMEOUT','_urlService','createInstance','_collaborationController','runId','registerRenderModule','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_DOC','isArray','getAncestorScale','http://www.w3.org/2000/svg','_getSaveTimeout','xlink:href','_saveTaskMap','loadUnit','off-line-icon_clip0_910_343','LICENSE_IMPORT_SIZE_EXCEEDED','colno','LOGIN_TOKEN_PROCESSING_FAILED','rgba(255,\x20255,\x20255,\x200.01)','some','collaboration.closeRoom','origin','_hover','_name','_updateCollabCursors','_handleHover','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','MOBILE_VERIFY_CODE_MISMATCH','includes','_cursorInfo$','flatMap','REDEMPTION_CODE_NOT_STARTED','_anchorDot'];_0x5658=function(){return _0x20e3f8;};return _0x5658();}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};
1
+ const _0x523508=_0x58bc;(function(_0x449e9b,_0x5398e7){const _0x163817=_0x58bc,_0x51726b=_0x449e9b();while(!![]){try{const _0x4c5978=-parseInt(_0x163817(0x2e0))/0x1*(-parseInt(_0x163817(0x304))/0x2)+-parseInt(_0x163817(0x1dc))/0x3+parseInt(_0x163817(0x254))/0x4+-parseInt(_0x163817(0x1ab))/0x5*(-parseInt(_0x163817(0x218))/0x6)+-parseInt(_0x163817(0x144))/0x7*(-parseInt(_0x163817(0x330))/0x8)+parseInt(_0x163817(0x33a))/0x9+-parseInt(_0x163817(0x294))/0xa*(parseInt(_0x163817(0xfe))/0xb);if(_0x4c5978===_0x5398e7)break;else _0x51726b['push'](_0x51726b['shift']());}catch(_0x59b5e4){_0x51726b['push'](_0x51726b['shift']());}}}(_0x2a92,0x8aa7f));var Yt=Object[_0x523508(0x322)],Wt=(_0x50da7d,_0x408419,_0x297570)=>_0x408419 in _0x50da7d?Yt(_0x50da7d,_0x408419,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297570}):_0x50da7d[_0x408419]=_0x297570,_=(_0xa13161,_0x5380b8,_0x42210d)=>Wt(_0xa13161,typeof _0x5380b8!='symbol'?_0x5380b8+'':_0x5380b8,_0x42210d);import{jsx as _0x5a6c01,jsxs as _0x2e3de9}from'react/jsx-runtime';import{CollaborationStatus as _0xc0ac3f,CollaborationSessionService as _0x34f86a,CollaborationController as _0x2024af,DataLoaderService as _0x102398,MemberService as _0x594455,SessionStatus as _0x2b0b08,ILocalCacheService as _0x1852f5,CollaborationUIEventService as _0x18bb83,CollaborationUIEventId as _0x80e03f,DocCollaborationEntity as _0x5bd9c0,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4f912e,getLocalCacheKey as _0xcc39f6,LOCAL_CACHE_INTERVAL as _0x502e2b,LOCAL_CACHE_INTERVAL_KEY as _0x364810,UniverCollaborationClientPlugin as _0x5c2bb3,CollaborationSocketService as _0x592b3a,DEFAULT_WS_SESSION_TICKET_URL as _0x3169bd,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0xf03e25,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x33b373,UnitStatus as _0x221888}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x23e98b,IUniverInstanceService as _0x11612f,Inject as _0x3349c5,Injector as _0x500162,Disposable as _0x3d249b,createIdentifier as _0x1bb1e1,ILogService as _0x50a7e0,ICommandService as _0x8ba128,Optional as _0x2be948,RxDisposable as _0x2b3828,Workbook as _0x7088a8,DOC_RANGE_TYPE as _0x5581e1,debounce as _0x1ce9c9,Rectangle as _0x147c7f,DisposableCollection as _0x20fc4b,toDisposable as _0x192ce3,UniverInstanceType as _0x2c7dbf,generateRandomId as _0x40a2db,COLORS as _0x8ca5a9,ColorKit as _0x166380,ThemeService as _0x864c54,fromEventSubject as _0x43f194,Tools as _0x34cb6b,CommandType as _0x16abe2,IConfigService as _0x801870,CanceledError as _0x4502ef,isFormulaString as _0x4faecd,isFormulaId as _0x3af6b9,ILocalStorageService as _0x46f59e,DependentOn as _0x40a6e1,Plugin as _0x1b2056,merge as _0x3e198e,registerDependencies as _0x1ed7c2,mergeOverrideWithDependencies as _0x4f1954,touchDependencies as _0x5f22ef}from'@univerjs/core';function _0x2a92(){const _0x231003=['collab-client.tooltip.reconnect','_cachedData','_refreshCollabCursors','width','toRgbString','INVALID_ARGUMENT','getColorFromTheme','47hAEoKS','on-line-icon','INVITE_CODE_ALREADY_BOUND','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','dispose','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getFocusedUnit','OTHER_CLIENTS_EDITING','m1Prime','cursorInfo$','skeleton','getSheetBySheetId','_range','selections','flatMap','color','_updateSubUnitFromURLParams','entityInit$','getformulaLimitStatusUrl','PAYMENT_CHANNEL_NOT_SUPPORT','map','_drawTextRange','CHANGESET_REVISION_CONFILICT','_registerDependencies','setInterval','LOGIN_FAILED','_config','_removeClearOtherTimer','saveTaskMap','getUniverSheetInstance','M0\x200H16V16H0z','getVpScrollXYInfoByPosToVp','/run/','FromArray','_updateCollabCursors','arc','40544IpwCWN','_hover','_online','tag','roomMembers$','split','text','1em','has','getUnhiddenWorksheets','_pollingInterval','OffLineIcon','REDEMPTION_INVALID_CODE','NOT_COLLAB','TOO_MANY_REQUESTS','uni.network.url-service','_draw','drawWith','colno','replace','assign','searchParams','_startCalculationLimit','_urlService','unhandledrejection','_docTransformIMECacheService','SNAPSHOT_INVALID_SNAPSHOT','defIds','SOCKET_FAILED_RETRY','_collabCursorState$','defineProperty','white','InsertRowCommandId','_checkAndWaitForCalculationPermission','size','doc.mutation.rich-text-editing','subunit','LICENSE_EXPORT_SIZE_EXCEEDED','_scheduleClearOtherTimer','find','row','setConfig','round','_clearOtherTimers','10272zThlBB','unitID','post','_refRangeService','from','AWAITING','collab-text-anchor-','_cursor','_anchorDot','whenReady','6808482wfqPqZ','_init','#FFF','session.collaboration-timeout','getMergeData','UNDEFINED','ONLINE','VIEW_MAIN','_colorIndex','functionsExecutedState','lineno','Unknown\x20user','ERROR_AGAIN','28599626qBxUtV','USERS_LEAVE','_showGuardMessage','clearTimeout','mask','_localCacheService','YUUMI_URL_COL_OUT_OF_RANGE','getConfig','0\x200\x2017\x2016','YUUMI_UNABLE_LOAD_URL','setParam','string','_eventUnsubscribe','memberID','_cursorShapes','loadOfflineData','show','REDEMPTION_USER_NOT_ELIGIBLE','_color','?taskId=','runOnServer','getOffsetConfig','xlink:href','_send','_collaborationSessionService','attrs','formula.calculation.started','imageSourceType','INVALID_INVITE_CODE','isArray','sheetId','_roomMembers$','collaboration-client-ui.config','_hovered','ENTITLE_DUP_SUBSCRIPTION','_initCommandInterceptor','random','blue.400','_docSkeletonManagerService','Warning','pluginName','collaboration.closeRoom','[Window\x20Error]:\x20','length','APPLY_REJECT','USER_NOT_INVITED_CODE','_memberID','set','ENTITLE_CHAT_LIMIT_EXCEED','_ensureSubject','defs','getActiveRange','with','_transformUndoRedoStack','_updateLocalCursor','override','_maxFormulaLimit','off-line-icon','_handleLeaveEvent','_transformPreviousActiveRange','_disabled','result','_syncEditingCollabCursorService','PERMISSION_DENIED','EMAIL_VERIFY_CODE_MISMATCH','invokeId','_localeService','enableFrontendLog','history','substring','3143vGoRhI','storage','ENSURE_SNAPSHOT_EXECUTION','APPLY_DUPLICATED','triggerDblclick','roomMembers','univer-flex\x20univer-items-center','collab-text-range-','_setFormulaLimitStatus','sessionStatus$','EMAIL_HAS_BEEN_BOUND','YUUMI_RATE_OVER_LIMIT','_lastPointer','_handleHeartbeatEvent','getUnit','range','RemoveColCommandId','_backgroundColor','_hideTimer','getCurrent','OnLineIcon','_getAnchorBounding','INVITE_CODE_REQUIRED','_collabSessionService','RECT','onMouseMove','endRow','save','add','selection','collaboration.single-unit.warning','_initUserListener','getActiveSheet','_collabCursorController','_logService','_onRefRangeChange','CONNECTOR_DATA_TOO_LARGE','USER_IS_ANONYMOUS','SUBMIT_CHANGESET_TIMEOUT','_startSheetCollabCursor','registerRenderModule','[CollaborationDataLoaderController]','_initCommandExecutedListener','getSkeleton','requireSession','setItem','_scene','trim','_renderManagerService','yellow.400','_heartbeatTimer','fillText','_memberService','min','name','_getScale','data','permission.title','next','_beforeCloseService','transform','evenodd','forEach','_handleJoinEvent','DATA_SOURCE_TOO_LARGE','fill','dirtyRanges','subscribe','COMPLETION_FINISHED','_configService','_name','backgroundColor','_anchor','collabStatus.conflict','stack','_render','APPLY_NON_SEQUENTIAL_REVISION','HEADER_MENU','get','OTHER_CLIENT_EDITING','some','onTransformChange$','assignAColorForMemberID','resize','url(#off-line-icon_clip0_910_343)','AUTHORIZE_CODE_ILLEGAL','idSuffix','path','red.300','_commandService','_context','formula.calculation.unable','permission.content','socket$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','newValue','_saveCache','SYNCED','current','...','enableLocalCache','SUCCESS','_textBubble','35mltKum','\x20at\x20','_revisionService','Success','_initStatusComponent','_saveTaskMap','[Unhandled\x20Rejection]:\x20','reason','transformRemoteChangeset','univerjs-icon\x20univerjs-icon-','syncEditingCollabCursor','disposeUnit','onLocalMutation','UniverIcon','YUUMI_ALL_TABLES_IS_INVALID','replaceState','REDEMPTION_CODE_INACTIVE','_unitOnClients','TEXT','delete','actions','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','disposeWithMe','APPLY_REVISION_CONFILICT','urlChange$','div','toString','session.connection-failed','/universer-api/license/formula/limit/status','getUnitStatus$','_toggleOnline','unitId','font','APPLY_PERMISSION_DENIED','_initDependencies','_dataLoaderService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_session','hovered','ENTITLE_NEED_BILLING_ADDRESS','univer-mr-2\x20univer-flex\x20univer-text-xl','getCollabEntity$','displayName','type','http://www.w3.org/2000/svg','unload','exhaustSavingTask','m2Prime','asObservable','1167030QkpXBu','saveOfflineData','location','_cursorInfo$','_transformHistoryAndStateStack','_doCreateSocket','MoveRangeCommandId','restore','_sheetSkeletonManagerService','_initWindowErrorListener','height','on-line-icon_clip0_910_349','column','lineTo','getOwnPropertyDescriptor','_toggleOffline','limitInfo','ENTITLE_REPORT_LIMIT_EXCEED','_uploadLog','transformIMECache','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','params','REDEMPTION_CODE_NOT_STARTED','currentTheme$','LICENSE_MAX_UNITS_EXCEEDED','_injector','MUTATION','then','_status$','createSocket','_docTransformSelectionsService','setShapeProps','off-line-icon_clip0_910_343','USER_NOT_FOUND','RemoveRowCommandId','transformByState','unit','addObject','now','mutations','Failed','push','init','clearInterval','_instanceService','_id','_clearPolling','getTypeOfUnitDisposed$','YUUMI_NO_CUBOID_FOR_QUESTION','_getSheetObject','_startDocCollabCursor','transformSelections','_uiPartsService','_onCursorDelete','getCellPositionByOffset','deepClone','activeSheet$','wsSessionTicketUrl','_scheduleSaving','getParam','455274OAscak','isActive','_initEntityListener','MOBILE_VERIFY_CODE_MISMATCH','setAlpha','undoState','parseInt','rgba(255,\x20255,\x20255,\x200.01)','svg','_registerRenderDependencies','_applyCommand','getAncestorScale','pipe','_localStorageService','NOT_FOUND','CLOSE_ROOM','UNAUTHENTICATED','_initResize','labelPosition','bind','transformMutation','measureText','executionId','YUUMI_CONNECTOR_URL_NOT_FOUND','_handleEvent','status$','currentSkeleton$','complete','INTERNAL_ERROR','InsertRangeMoveDownCommandId','registerComponent','_drawAnchor','INVITE_CODE_HAS_BEEN_UES','_notificationService','getStateCache','includes','getUnitId','_setupSubUnitSync','transformStateCache','values','fillStyle','session.will-retry','_selfUnitIDs','releaseFormulaLimitUrl','LICENSE_IMPORT_SIZE_EXCEEDED','_onCursorUpdate','url(#$1','Error','textRanges','AWAITING_WITH_PENDING','_updateURLWithCurrentState','runId','UPDATE_CURSOR','_setupBeforeClosingHandler','makeDirty','sheetID','collabCursorState$','_docClipboardService','body','_themeService','2959840irXcPw','black','_collaborationUIEventService','_createSocketURL','hide','getMember','PENDING','getRelativeToViewportCoord','getCollabCursors$','error','href','onCommandExecuted','_getFormulaLimitStatus','colorChannel1','_entities','/universer-api/license/formula/limit/done','dispose$','_cursors','setTimeout','createInstance','NO_OTHER_CLIENTS_EDITING','_httpService','JOIN_ROOM_FAILED','url(#on-line-icon_clip0_910_349)','getValue','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ticket','WECHAT_HAS_BEEN_BOUND','SOCKET_FAILED','jiqing.500','editingUnit','YUUMI_TABLE_NOT_FOUND_IN_UNIT','none','addObjects','engine','_hasFormulaInDirtyRanges','sessionTicket','_docTransformStateCacheService','origin','YUUMI_SUBSCRIPTION_NOT_FOUND','_currentUsage','_handleHover','send','purple.300','YUUMI_ASYNCIO_CANCELLED','REDEMPTION_CODE_FULLY_REDEEMED','unshift','executeCommand','_document','getSheetId','stageInfo','startRow','ENTITLE_INSUFFICIENT_QUOTA','YUUMI_AI_RUN_FAILED','isEditing','getRangePointData','getRenderById','entries','_unitStatus','beginPath','REDEMPTION_CODE_HAS_BEEN_CREATED','all','ALREADY_EXISTS','debug','10jlxXTg','subscribeEvent','ranges','onStarting','source','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CONFLICT','_checkCalculationAvailable','/universer-api/license/formula/limit/start','_shapes','_colorAssignService','LICENSE_DISTRO_REJECTED','_getMergeRange','_messageService','event$','transformMutationsWithChangeset','totalFormulasToCalculate','UNIVER_DOC','moveTo','getTypeOfUnitAdded$','stringify','SNAPSHOT_HAS_BEEN_REMOVED','_assignedColors','bottom','removeEventListener','onPointerMove$','CURRENT_STATUS_CANNOT_OPERATE','_imageIoService','getMemberID','_transformService','getCurrentSelections','addHandlerCallback','getUndoRedoMutationParamsCache','_removeCollabCursors','_labelPosition','findNodePositionByCharIndex','_getSaveTimeout','getViewport','_lastResponseTimestamp','_taskIds','green.600','_drawRectRange','application/json','_entityInit$','registerRefRange','cursorInfo','getDocRanges','onPointerEnter$','_docStateChangeManagerService','_docSyncEditingCollabCursorService','_initStatusListener','onPointerLeave$','_initUnhandledRejectionListener','message','top','getCurrentUnitForType','code','UNIVER_SHEET','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_initEvent','_collaborationController','_univerInstanceService','pushState','redoState','catch','clipPath','addEventListener','_scheduleHeartbeat','unsubscribe'];_0x2a92=function(){return _0x231003;};return _0x2a92();}import{useObservable as _0x5e655e,useDependency as _0x38a216,IUIPartsService as _0x47e7b4,BuiltInUIPart as _0x3c0eb7,connectInjector as _0x315052,IBeforeCloseService as _0x15e8d2,IMessageService as _0x4996e9,INotificationService as _0x4b0581}from'@univerjs/ui';import{BehaviorSubject as _0x2bf50e,switchMap as _0x20cbf7,of as _0x1c7beb,takeUntil as _0x2b1b60,debounceTime as _0x59e9f1,Subject as _0x428b7c,filter as _0x130d8b,merge as _0x4a885e,combineLatest as _0xf1e1b0,fromEvent as _0x2ea75f,shareReplay as _0x4dd8f1,mapTo as _0x50703a,distinctUntilChanged as _0x10efc1}from'rxjs';import{Tooltip as _0xf87d3c,clsx as _0x2bc905,MessageType as _0x4e2369}from'@univerjs/design';import{useRef as _0x1a9150,createElement as _0x5f492f,forwardRef as _0x34af28,useCallback as _0x43f03a}from'react';import{IRemoteInstanceService as _0x31ee49}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x1c9843,RefRangeService as _0x36e342,SetSelectionsOperation as _0x5808c9,SheetsSelectionsService as _0x788513,EffectRefRangId as _0x20a6c0,handleIRemoveRow as _0x25c521,handleIRemoveCol as _0x2bdea2,handleMoveRange as _0xab7ce8,handleInsertRow as _0x4a82f0,handleInsertRangeMoveRight as _0x31a452,handleInsertRangeMoveDown as _0x40235d,handleInsertCol as _0x8dfc0a,handleDeleteRangeMoveUp as _0x3525e2,handleDeleteRangeMoveLeft as _0x1c0556,runRefRangeMutations as _0x3aee2f}from'@univerjs/sheets';import{Shape as _0x504374,Rect as _0xad56c0,getColor as _0x29fcf9,RegularPolygon as _0x10f107,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x58f53c,Vector2 as _0x4997c6,SHEET_VIEWPORT_KEY as _0x592e3d,IRenderManagerService as _0x440700}from'@univerjs/engine-render';import{HTTPService as _0x3ca58d,ISocketService as _0x2b9ce6,WebSocketService as _0x3aa09d}from'@univerjs/network';import{IDocClipboardService as _0x3fe111,NodePositionConvertToCursor as _0x1f78c7,NodePositionConvertToRectRange as _0xf5fc4e,TEXT_RANGE_LAYER_INDEX as _0xb707f8,SetDocZoomRatioOperation as _0x50b555,DocIMEInputManagerService as _0x25b9ed,DocStateChangeManagerService as _0x125d13}from'@univerjs/docs-ui';import{IImageIoService as _0x1f9a13}from'@univerjs/drawing';import{ITransformService as _0x585eb,CollaborationEvent as _0x2cb55b,isTransformMutationFailure as _0x126171,isTransformMutationsWithChangesetSuccess as _0x30440e,RevisionService as _0x4453ad,ISnapshotServerService as _0x26f01f}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x210a1b,RichTextEditingMutation as _0x2de98f,DocSelectionManagerService as _0x5a7735,DocSkeletonManagerService as _0x5dd9bb}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4958ce,serializeRangeWithSheet as _0x55c077,FormulaExecuteStageType as _0x3b18e6,FormulaExecutedStateType as _0x4e222c,SetFormulaCalculationStartMutation as _0x470416,SetFormulaCalculationNotificationMutation as _0x21c064}from'@univerjs/engine-formula';import{map as _0x15e9d2,filter as _0x27cdd6,throttleTime as _0x2478f8,takeUntil as _0xcb173c,switchMap as _0xac6eb5}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2e1694,getCoordByCell as _0x2dbb59,getSheetObject as _0x5cbc9d}from'@univerjs/sheets-ui';function Ge({ref:_0x1a2e4c,..._0x2c68cc}){const _0xc719e3=_0x523508,{icon:_0x3730fb,id:_0x49f56f,className:_0x4b50e0,extend:_0x4e37d5,..._0x4bc7e0}=_0x2c68cc,_0x1a65eb=(_0xc719e3(0x1b4)+_0x49f56f+'\x20'+(_0x4b50e0||''))[_0xc719e3(0x173)](),_0x5ed993=_0x1a9150('_'+Ei());return At(_0x3730fb,''+_0x49f56f,{'defIds':_0x3730fb[_0xc719e3(0x31f)],'idSuffix':_0x5ed993[_0xc719e3(0x1a6)]},{'ref':_0x1a2e4c,'className':_0x1a65eb,..._0x4bc7e0},_0x4e37d5);}function At(_0x20bda3,_0x5c74ae,_0x185e0b,_0xd00a1,_0xc00984){const _0xdc2968=_0x523508;return _0x5f492f(_0x20bda3['tag'],{'key':_0x5c74ae,...gi(_0x20bda3,_0x185e0b,_0xc00984),..._0xd00a1},(vi(_0x20bda3,_0x185e0b)['children']||[])[_0xdc2968(0x2f4)]((_0x5821b5,_0x3c6aff)=>At(_0x5821b5,_0x5c74ae+'-'+_0x20bda3[_0xdc2968(0x307)]+'-'+_0x3c6aff,_0x185e0b,void 0x0,_0xc00984)));}function gi(_0xb495ae,_0x31c924,_0x145ebc){const _0x54e5a2=_0x523508,_0x1578fa={..._0xb495ae[_0x54e5a2(0x117)]};_0x145ebc!=null&&_0x145ebc[_0x54e5a2(0x261)]&&_0x1578fa['fill']==='colorChannel1'&&(_0x1578fa[_0x54e5a2(0x185)]=_0x145ebc[_0x54e5a2(0x261)]),_0xb495ae[_0x54e5a2(0x307)]===_0x54e5a2(0x102)&&_0x1578fa['id']&&(_0x1578fa['id']=_0x1578fa['id']+_0x31c924[_0x54e5a2(0x19a)]),Object['entries'](_0x1578fa)[_0x54e5a2(0x182)](([_0x3d33cb,_0x32fba8])=>{const _0x3c1dd5=_0x54e5a2;_0x3d33cb===_0x3c1dd5(0x102)&&typeof _0x32fba8==_0x3c1dd5(0x109)&&(_0x1578fa[_0x3d33cb]=_0x32fba8[_0x3c1dd5(0x317)](/url\(#(.*)\)/,'url(#$1'+_0x31c924[_0x3c1dd5(0x19a)]+')'));});const {defIds:_0x35c059}=_0x31c924;return!_0x35c059||_0x35c059[_0x54e5a2(0x129)]===0x0||(_0xb495ae[_0x54e5a2(0x307)]==='use'&&_0x1578fa[_0x54e5a2(0x114)]&&(_0x1578fa[_0x54e5a2(0x114)]=_0x1578fa[_0x54e5a2(0x114)]+_0x31c924[_0x54e5a2(0x19a)]),Object[_0x54e5a2(0x28d)](_0x1578fa)[_0x54e5a2(0x182)](([_0x4d91cd,_0x4e1450])=>{const _0x247a93=_0x54e5a2;typeof _0x4e1450=='string'&&(_0x1578fa[_0x4d91cd]=_0x4e1450[_0x247a93(0x317)](/url\(#(.*)\)/,_0x247a93(0x246)+_0x31c924['idSuffix']+')'));})),_0x1578fa;}function vi(_0x3f79b3,_0x1f1cc4){const _0x19022b=_0x523508;var _0xddf3c5;const {defIds:_0x249fec}=_0x1f1cc4;return!_0x249fec||_0x249fec[_0x19022b(0x129)]===0x0?_0x3f79b3:_0x3f79b3[_0x19022b(0x307)]===_0x19022b(0x130)&&((_0xddf3c5=_0x3f79b3['children'])!=null&&_0xddf3c5[_0x19022b(0x129)])?{..._0x3f79b3,'children':_0x3f79b3['children']['map'](_0x2756ef=>typeof _0x2756ef['attrs']['id']==_0x19022b(0x109)&&_0x249fec&&_0x249fec[_0x19022b(0x23b)](_0x2756ef[_0x19022b(0x117)]['id'])?{..._0x2756ef,'attrs':{..._0x2756ef['attrs'],'id':_0x2756ef[_0x19022b(0x117)]['id']+_0x1f1cc4[_0x19022b(0x19a)]}}:_0x2756ef)}:_0x3f79b3;}function Ei(){const _0x39eafb=_0x523508;return Math[_0x39eafb(0x122)]()[_0x39eafb(0x1c5)](0x24)[_0x39eafb(0x143)](0x2,0x8);}Ge[_0x523508(0x1d5)]=_0x523508(0x1b8);const pi={'tag':_0x523508(0x220),'attrs':{'xmlns':_0x523508(0x1d7),'fill':_0x523508(0x274),'viewBox':'0\x200\x2016\x2016','width':_0x523508(0x30b),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x523508(0x198)},'children':[{'tag':_0x523508(0x19b),'attrs':{'stroke':'currentColor','d':_0x523508(0x2e3),'strokeLinecap':_0x523508(0x32e),'strokeLinejoin':_0x523508(0x32e),'strokeWidth':1.2}}]},{'tag':_0x523508(0x130),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x523508(0x1fc)},'children':[{'tag':_0x523508(0x19b),'attrs':{'fill':_0x523508(0x323),'d':_0x523508(0x2fe)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Pt=_0x34af28(function(_0x3ae919,_0x8a857d){const _0x4393a5=_0x523508;return _0x5f492f(Ge,Object['assign']({},_0x3ae919,{'id':_0x4393a5(0x137),'ref':_0x8a857d,'icon':pi}));});Pt[_0x523508(0x1d5)]=_0x523508(0x30f);const Oi={'tag':_0x523508(0x220),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x523508(0x274),'viewBox':_0x523508(0x106),'width':'1em','height':_0x523508(0x30b)},'children':[{'tag':'g','attrs':{'clipPath':_0x523508(0x26b)},'children':[{'tag':_0x523508(0x19b),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x523508(0x32e),'strokeLinejoin':_0x523508(0x32e),'strokeWidth':1.2}}]},{'tag':_0x523508(0x130),'attrs':{},'children':[{'tag':_0x523508(0x2d5),'attrs':{'id':_0x523508(0x1e7)},'children':[{'tag':_0x523508(0x19b),'attrs':{'fill':_0x523508(0x323),'d':_0x523508(0x2fe),'transform':'translate(.97)'}}]}]}],'defIds':[_0x523508(0x1e7)]},wt=_0x34af28(function(_0x3d4532,_0x6fa2b8){const _0x50f650=_0x523508;return _0x5f492f(Ge,Object[_0x50f650(0x318)]({},_0x3d4532,{'id':_0x50f650(0x2e1),'ref':_0x6fa2b8,'icon':Oi}));});wt['displayName']=_0x523508(0x158);function Ti(_0x440f4e){const _0x411de8=_0x523508;switch(_0x440f4e){case _0xc0ac3f['OFFLINE']:return'collabStatus.offline';case _0xc0ac3f[_0x411de8(0x29a)]:return _0x411de8(0x18d);case _0xc0ac3f['FETCH_MISS']:return'collabStatus.fetchMiss';case _0xc0ac3f[_0x411de8(0x311)]:return'collabStatus.notCollab';case _0xc0ac3f[_0x411de8(0x335)]:case _0xc0ac3f[_0x411de8(0x249)]:return'collabStatus.syncing';case _0xc0ac3f[_0x411de8(0x1a5)]:case _0xc0ac3f[_0x411de8(0x25a)]:return'collabStatus.synced';}}function Ci(_0x5134d8){const _0x183135=_0x523508,{status$:_0x51afb4}=_0x5134d8,_0x1e30c7=_0x5e655e(_0x51afb4,_0xc0ac3f[_0x183135(0x311)]),_0x44bae8=_0x38a216(_0x23e98b),_0x1591ec=_0x38a216(_0x34f86a),_0xd8215e=_0x1e30c7!==_0xc0ac3f['OFFLINE'],_0x427ffe=_0x44bae8['t'](Ti(_0x1e30c7)),_0x2828f1=_0xd8215e?_0x5a6c01(wt,{}):_0x5a6c01(Pt,{}),_0x12e845=_0x43f03a(()=>{_0xd8215e||_0x1591ec['reconnect']();},[_0xd8215e,_0x1591ec]);function _0xcf6488(){const _0x1b7a04=_0x183135;return _0x2e3de9(_0x1b7a04(0x1c4),{'className':_0x1b7a04(0x14a),'onClick':_0x12e845,'children':[_0x5a6c01(_0x1b7a04(0x1c4),{'className':_0x2bc905(_0x1b7a04(0x1d3),{'univer-text-green-500':_0xd8215e,'univer-text-red-500':!_0xd8215e}),'children':_0x2828f1}),_0x5a6c01('div',{'className':_0x1b7a04(0x1cf),'children':_0x427ffe})]});}return _0xd8215e?_0xcf6488():_0x5a6c01(_0xf87d3c,{'title':_0x44bae8['t'](_0x183135(0x2d9)),'children':_0xcf6488()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0x126768,_0x17dad0,_0x426b4b,_0x270994)=>{const _0x3e7f28=_0x523508;for(var _0x44a271=_0x270994>0x1?void 0x0:_0x270994?Ri(_0x17dad0,_0x426b4b):_0x17dad0,_0x381d74=_0x126768[_0x3e7f28(0x129)]-0x1,_0x3ef65d;_0x381d74>=0x0;_0x381d74--)(_0x3ef65d=_0x126768[_0x381d74])&&(_0x44a271=_0x3ef65d(_0x44a271)||_0x44a271);return _0x44a271;},se=(_0x470641,_0x4e3d72)=>(_0x399424,_0x12ce3c)=>_0x4e3d72(_0x399424,_0x12ce3c,_0x470641);let ae=class extends _0x3d249b{constructor(_0x2be6f2,_0x9d25d5,_0x3c8d7d,_0x3e960a){const _0x17c0be=_0x523508;super(),_(this,_0x17c0be(0x1f8),new _0x2bf50e(_0xc0ac3f[_0x17c0be(0x311)])),(this[_0x17c0be(0x2d1)]=_0x2be6f2,this[_0x17c0be(0x1f5)]=_0x9d25d5,this[_0x17c0be(0x2d0)]=_0x3c8d7d,this[_0x17c0be(0x210)]=_0x3e960a,this[_0x17c0be(0x1af)](),this[_0x17c0be(0x2c6)]());}[_0x523508(0x2c6)](){const _0x43a196=_0x523508;this[_0x43a196(0x1c1)](this[_0x43a196(0x2d1)]['focused$']['pipe'](_0x20cbf7(()=>{const _0x8ce093=_0x43a196,_0x1387af=this[_0x8ce093(0x2d1)][_0x8ce093(0x2e6)]();return _0x1387af?this['_collaborationController'][_0x8ce093(0x1d4)](_0x1387af['getUnitId']()):_0x1c7beb(null);}),_0x20cbf7(_0x197b8c=>_0x197b8c?_0x197b8c[_0x43a196(0x231)]:_0x1c7beb(_0xc0ac3f[_0x43a196(0x311)])))['subscribe'](_0x3fa478=>{const _0x470383=_0x43a196;this[_0x470383(0x1f8)]['next'](_0x3fa478);}));}[_0x523508(0x1af)](){const _0x3c0cd6=_0x523508;this[_0x3c0cd6(0x1c1)](this[_0x3c0cd6(0x210)][_0x3c0cd6(0x236)](_0x3c0eb7[_0x3c0cd6(0x191)],()=>_0x315052(bi({'status$':this[_0x3c0cd6(0x1f8)][_0x3c0cd6(0x1db)]()}),this[_0x3c0cd6(0x1f5)])));}};ae=Di([se(0x0,_0x11612f),se(0x1,_0x3349c5(_0x500162)),se(0x2,_0x3349c5(_0x2024af)),se(0x3,_0x47e7b4)],ae);function bi(_0x218bce){const {status$:_0x58816d}=_0x218bce;return function(){return _0x5a6c01(Ci,{'status$':_0x58816d});};}const yt=_0x1bb1e1(_0x523508(0x313));var Ni=Object[_0x523508(0x1ea)],Li=(_0x3800d6,_0x18326d,_0x576485,_0xc5be9b)=>{for(var _0x2dd316=_0xc5be9b>0x1?void 0x0:_0xc5be9b?Ni(_0x18326d,_0x576485):_0x18326d,_0x4c5026=_0x3800d6['length']-0x1,_0x4a4b16;_0x4c5026>=0x0;_0x4c5026--)(_0x4a4b16=_0x3800d6[_0x4c5026])&&(_0x2dd316=_0x4a4b16(_0x2dd316)||_0x2dd316);return _0x2dd316;},K=(_0x7fd176,_0x1218d7)=>(_0x5c26a1,_0x5a5245)=>_0x1218d7(_0x5c26a1,_0x5a5245,_0x7fd176);let ce=class extends _0x2b3828{constructor(_0x5c11ed,_0x19a1e3,_0x2b4969,_0xad91b4,_0x4d2890){const _0x59672f=_0x523508;super(),this[_0x59672f(0x31b)]=_0x5c11ed,this[_0x59672f(0x166)]=_0x19a1e3,this['_commandService']=_0x2b4969,this[_0x59672f(0x1ce)]=_0xad91b4,_0x4d2890?_0x4d2890==null||_0x4d2890[_0x59672f(0x339)]()['then'](()=>this['_init']()):(this[_0x59672f(0x166)]['debug'](_0x59672f(0x16d),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x59672f(0x33b)]());}async[_0x523508(0x33b)](){const _0x5c5e25=_0x523508,_0x217da3=this[_0x5c5e25(0x31b)]['getParam']('unit'),_0x3066b6=this[_0x5c5e25(0x31b)][_0x5c5e25(0x217)]('type'),_0x4309ce=this[_0x5c5e25(0x31b)]['getParam'](_0x5c5e25(0x328));if(!_0x217da3||!_0x3066b6){this[_0x5c5e25(0x166)][_0x5c5e25(0x293)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x34b82e=await this[_0x5c5e25(0x1ce)]['loadUnit'](_0x217da3,Number(_0x3066b6),_0x4309ce);_0x34b82e&&_0x34b82e instanceof _0x7088a8&&this[_0x5c5e25(0x23d)](_0x34b82e);}async[_0x523508(0x23d)](_0x3b5b0b){const _0x3078d2=_0x523508;await this[_0x3078d2(0x2f0)](_0x3b5b0b),_0x3b5b0b[_0x3078d2(0x214)][_0x3078d2(0x224)](_0x2b1b60(this[_0x3078d2(0x264)]))[_0x3078d2(0x187)](_0x105f5a=>{const _0x19a202=_0x3078d2;_0x105f5a&&this[_0x19a202(0x24a)](_0x105f5a);}),this[_0x3078d2(0x31b)][_0x3078d2(0x1c3)][_0x3078d2(0x224)](_0x2b1b60(this[_0x3078d2(0x264)]))[_0x3078d2(0x187)](()=>this['_updateSubUnitFromURLParams'](_0x3b5b0b));}[_0x523508(0x24a)](_0x24c6c3,_0x21afc6=!0x1){const _0x16e449=_0x523508,_0x21b395=this[_0x16e449(0x31b)][_0x16e449(0x217)]('subunit');_0x24c6c3[_0x16e449(0x285)]()!==_0x21b395&&this['_urlService'][_0x16e449(0x108)](_0x16e449(0x328),_0x24c6c3[_0x16e449(0x285)](),_0x21afc6);}async[_0x523508(0x2f0)](_0x236a00){const _0x21945c=_0x523508;var _0x7101db;const _0x5bcd7f=this[_0x21945c(0x31b)][_0x21945c(0x217)](_0x21945c(0x328));if(!_0x5bcd7f||!_0x236a00[_0x21945c(0x2eb)](_0x5bcd7f)){const _0x4480f6=_0x236a00[_0x21945c(0x30d)]()[0x0],_0x5afdfc=_0x236a00['getSheetBySheetId'](_0x4480f6);if(!_0x5afdfc)return;this[_0x21945c(0x24a)](_0x5afdfc,!0x0),await this['_commandService'][_0x21945c(0x283)](_0x1c9843['id'],{'unitId':_0x236a00[_0x21945c(0x23c)](),'subUnitId':_0x4480f6});return;}((_0x7101db=_0x236a00[_0x21945c(0x164)]())==null?void 0x0:_0x7101db[_0x21945c(0x285)]())!==_0x5bcd7f&&await this[_0x21945c(0x19d)][_0x21945c(0x283)](_0x1c9843['id'],{'unitId':_0x236a00[_0x21945c(0x23c)](),'subUnitId':_0x5bcd7f});}};ce=Li([K(0x0,yt),K(0x1,_0x50a7e0),K(0x2,_0x8ba128),K(0x3,_0x3349c5(_0x102398)),K(0x4,_0x2be948(_0x31ee49))],ce);var Ui=Object[_0x523508(0x1ea)],Mi=(_0x17e388,_0x3dc328,_0x20267c,_0x3ce818)=>{const _0x489d86=_0x523508;for(var _0xf59eb9=_0x3ce818>0x1?void 0x0:_0x3ce818?Ui(_0x3dc328,_0x20267c):_0x3dc328,_0x188eb5=_0x17e388[_0x489d86(0x129)]-0x1,_0x10ffae;_0x188eb5>=0x0;_0x188eb5--)(_0x10ffae=_0x17e388[_0x188eb5])&&(_0xf59eb9=_0x10ffae(_0xf59eb9)||_0xf59eb9);return _0xf59eb9;},rt=(_0x2c939f,_0x681973)=>(_0x32c322,_0x213d97)=>_0x681973(_0x32c322,_0x213d97,_0x2c939f);let $e=class extends _0x2b3828{constructor(_0x43e2f7,_0x1d40c7){const _0x2c3756=_0x523508;super(),this[_0x2c3756(0x251)]=_0x43e2f7,this[_0x2c3756(0x2af)]=_0x1d40c7,this['_init']();}['_init'](){const _0x4f713d=_0x523508,_0x236c63=this;this[_0x4f713d(0x1c1)](this[_0x4f713d(0x251)]['addClipboardHook']({'onBeforePasteImage':async _0x4d582e=>{const _0x4d8e54=_0x4f713d,_0x7d9ea0=await _0x236c63[_0x4d8e54(0x2af)]['saveImage'](_0x4d582e);return _0x7d9ea0?{'source':_0x7d9ea0[_0x4d8e54(0x298)],'imageSourceType':_0x7d9ea0[_0x4d8e54(0x119)]}:null;}}));}};$e=Mi([rt(0x0,_0x3fe111),rt(0x1,_0x1f9a13)],$e);const ot=[_0x523508(0x27f),_0x523508(0x271),_0x523508(0x2bc),_0x523508(0x19c),_0x523508(0x123),_0x523508(0x175)];class Ke extends _0x3d249b{constructor(){const _0x3597a7=_0x523508;super(...arguments),_(this,_0x3597a7(0x2aa),new Map()),_(this,_0x3597a7(0x342),0x0);}[_0x523508(0x196)](_0x42ae29){const _0x1578c6=_0x523508;if(this[_0x1578c6(0x2aa)][_0x1578c6(0x30c)](_0x42ae29))return this['_assignedColors']['get'](_0x42ae29);const _0xe7f89b=ot[this[_0x1578c6(0x342)]];return this[_0x1578c6(0x342)]=(this[_0x1578c6(0x342)]+0x1)%ot[_0x1578c6(0x129)],this[_0x1578c6(0x2aa)][_0x1578c6(0x12d)](_0x42ae29,_0xe7f89b),_0xe7f89b;}}function $t(_0x50b307){const _0x28eaf3=_0x523508;let _0x22a041='';for(const _0x5f1da0 of _0x50b307){const {startOffset:_0xc66de0,endOffset:_0x49669a,isActive:_0x4dba06,rangeType:_0x33edb9,segmentId:_0x342729,segmentPage:_0x2d059f}=_0x5f1da0;_0x22a041[_0x28eaf3(0x129)]&&(_0x22a041+=','),_0x22a041+=_0xc66de0+':'+_0x49669a+':'+(_0x4dba06?'1':'0')+':'+_0x33edb9+':'+_0x342729+':'+_0x2d059f;}return _0x22a041;}function Ai(_0x2795b1){const _0x1fb218=_0x523508,_0xd8707=_0x2795b1[_0x1fb218(0x309)](','),_0x322d75=[];for(const _0x121187 of _0xd8707){const [_0xbac937,_0x28c7a4,_0x6b40a3,_0x164d0e,_0x330d5b,_0x52a5c9]=_0x121187[_0x1fb218(0x309)](':');_0x322d75[_0x1fb218(0x205)]({'startOffset':Number(_0xbac937),'endOffset':Number(_0x28c7a4),'collapsed':_0xbac937===_0x28c7a4,'isActive':_0x6b40a3==='1','rangeType':_0x164d0e===_0x5581e1[_0x1fb218(0x1bd)]?_0x5581e1[_0x1fb218(0x1bd)]:_0x5581e1[_0x1fb218(0x15c)],'segmentId':typeof _0x330d5b==_0x1fb218(0x109)?String(_0x330d5b):'','segmentPage':Number(_0x52a5c9!=null?_0x52a5c9:-0x1)});}return _0x322d75[_0x1fb218(0x194)](_0x1b155e=>_0x1b155e[_0x1fb218(0x219)])||(_0x322d75[0x0][_0x1fb218(0x219)]=!0x0),_0x322d75;}class ze extends _0x2b3828{constructor(){const _0x122e72=_0x523508;super(...arguments),_(this,_0x122e72(0x321),new _0x2bf50e(null)),_(this,_0x122e72(0x250),this[_0x122e72(0x321)][_0x122e72(0x1db)]());}[_0x523508(0x1b5)](_0x510288){const _0x1e34e3=_0x523508,{unitID:_0x3b54fe,memberID:_0x76c526,textRanges:_0x549e49}=_0x510288,_0x3e531c=$t(_0x549e49);if(_0x3e531c==='')return;const _0x45223d={'unitID':_0x3b54fe,'memberID':_0x76c526,'selection':_0x3e531c};this[_0x1e34e3(0x321)][_0x1e34e3(0x17e)](_0x45223d);}}var Pi=Object[_0x523508(0x1ea)],wi=(_0x2d36e9,_0x541dd7,_0x2f7005,_0x39ce59)=>{const _0x5e8a97=_0x523508;for(var _0x2f03ce=_0x39ce59>0x1?void 0x0:_0x39ce59?Pi(_0x541dd7,_0x2f7005):_0x541dd7,_0x378cf5=_0x2d36e9[_0x5e8a97(0x129)]-0x1,_0x3ef7e2;_0x378cf5>=0x0;_0x378cf5--)(_0x3ef7e2=_0x2d36e9[_0x378cf5])&&(_0x2f03ce=_0x3ef7e2(_0x2f03ce)||_0x2f03ce);return _0x2f03ce;},A=(_0x1d5ccf,_0x547064)=>(_0x503cb9,_0x12f658)=>_0x547064(_0x503cb9,_0x12f658,_0x1d5ccf);const yi=0x12c,$i=0x64;let xe=class extends _0x2b3828{constructor(_0x55cff7,_0x1f4e63,_0x5bee03,_0x4968f6,_0x76ce8d,_0x409b36,_0x507368,_0x217bbc,_0x26e4fa){const _0x301f6d=_0x523508;super(),_(this,'_online',!0x1),_(this,_0x301f6d(0x33b),!0x1),_(this,_0x301f6d(0x1df),new _0x2bf50e(new Map())),_(this,_0x301f6d(0x2e9),this['_cursorInfo$'][_0x301f6d(0x1db)]()),_(this,_0x301f6d(0x11d),new _0x2bf50e([])),_(this,_0x301f6d(0x308),this[_0x301f6d(0x11d)]['pipe'](_0x59e9f1(yi))),_(this,_0x301f6d(0x134),_0x1ce9c9(_0x61432c=>{const _0x58b4ab=_0x301f6d,_0xa46a85={'eventID':_0x2cb55b[_0x58b4ab(0x24c)],'data':{'unitID':this[_0x58b4ab(0x331)],'memberID':this[_0x58b4ab(0x1d0)][_0x58b4ab(0x2b0)](),'selection':$t(_0x61432c)}};this[_0x58b4ab(0x1d0)][_0x58b4ab(0x27e)](_0xa46a85,this[_0x58b4ab(0x331)]);},$i)),(this[_0x301f6d(0x331)]=_0x55cff7,this['_session']=_0x1f4e63,this['_injector']=_0x5bee03,this['_colorAssignService']=_0x4968f6,this[_0x301f6d(0x178)]=_0x76ce8d,this[_0x301f6d(0x13c)]=_0x409b36,this[_0x301f6d(0x2b1)]=_0x507368,this[_0x301f6d(0x2d1)]=_0x217bbc,this[_0x301f6d(0x19d)]=_0x26e4fa);}get['cursorInfo'](){const _0x547b74=_0x523508;return this[_0x547b74(0x1df)][_0x547b74(0x26c)]();}get[_0x523508(0x149)](){const _0x2c7cba=_0x523508;return this[_0x2c7cba(0x11d)]['getValue']();}[_0x523508(0x2e4)](){const _0x32f679=_0x523508;super[_0x32f679(0x2e4)](),this[_0x32f679(0x1df)][_0x32f679(0x17e)](new Map()),this[_0x32f679(0x1df)]['complete'](),this[_0x32f679(0x11d)][_0x32f679(0x17e)]([]),this[_0x32f679(0x11d)][_0x32f679(0x233)]();}[_0x523508(0x206)](){const _0x327fed=_0x523508;this[_0x327fed(0x33b)]||(this[_0x327fed(0x33b)]=!0x0,this['_session'][_0x327fed(0x14d)]['pipe'](_0x2b1b60(this[_0x327fed(0x264)]))[_0x327fed(0x187)](_0x43175b=>{const _0x5c3760=_0x327fed;_0x43175b===_0x2b0b08[_0x5c3760(0x340)]?this['_toggleOnline']():this[_0x5c3760(0x1eb)]();}),this[_0x327fed(0x1d0)][_0x327fed(0x2a2)][_0x327fed(0x224)](_0x2b1b60(this[_0x327fed(0x264)]))[_0x327fed(0x187)](_0x3ecb1d=>{const _0x547ab4=_0x327fed,_0x4e752e=_0x3ecb1d['eventID'];_0x4e752e===_0x2cb55b[_0x547ab4(0x24c)]&&this[_0x547ab4(0x245)](_0x3ecb1d),_0x4e752e===_0x2cb55b['USERS_LEAVE']&&this['_onCursorDelete'](_0x3ecb1d);}),this[_0x327fed(0x1c1)](this[_0x327fed(0x19d)][_0x327fed(0x25f)](_0x384668=>{const _0x53903e=_0x327fed,_0x41bb11=_0x384668[_0x53903e(0x1f1)];_0x41bb11!=null&&this['_online']&&_0x384668['id']===_0x210a1b['id']&&_0x41bb11[_0x53903e(0x1ca)]===this[_0x53903e(0x331)]&&_0x41bb11[_0x53903e(0x28a)]===!0x1&&_0x41bb11['ranges'][_0x53903e(0x129)]>0x0&&this[_0x53903e(0x134)](_0x41bb11[_0x53903e(0x296)]);})),this[_0x327fed(0x13c)][_0x327fed(0x250)][_0x327fed(0x224)](_0x2b1b60(this[_0x327fed(0x264)]))[_0x327fed(0x187)](_0x417363=>{const _0x244e4b=_0x327fed;if((_0x417363==null?void 0x0:_0x417363['unitID'])!==this[_0x244e4b(0x331)])return;const _0x3b7cf9={'eventID':_0x2cb55b['UPDATE_CURSOR'],'data':_0x417363};this[_0x244e4b(0x245)](_0x3b7cf9);}),this[_0x327fed(0x1c1)](this[_0x327fed(0x19d)]['onCommandExecuted'](_0x5aaae5=>{const _0x43c508=_0x327fed;if(_0x5aaae5[_0x43c508(0x1f1)]==null)return;const _0x40cd43=_0x5aaae5[_0x43c508(0x1f1)];if(_0x5aaae5['id']!==_0x2de98f['id']||_0x40cd43['unitId']!==this[_0x43c508(0x331)])return;const _0x36aad9={'id':_0x43c508(0x327),'params':_0x40cd43},_0x375de1=this['cursorInfo'];for(const [_0x429e5e,_0x23a8c7]of _0x375de1){const _0x58e63e={'id':_0x43c508(0x327),'params':{'unitId':this[_0x43c508(0x331)],'actions':null,'textRanges':_0x23a8c7[_0x43c508(0x296)]}},_0x1bd19a=this[_0x43c508(0x2b1)][_0x43c508(0x22c)](_0x36aad9,_0x58e63e,!0x1);if(_0x126171(_0x1bd19a))throw _0x1bd19a[_0x43c508(0x25d)];_0x375de1[_0x43c508(0x12d)](_0x429e5e,{..._0x23a8c7,'ranges':_0x1bd19a['m2Prime'][_0x43c508(0x1f1)][_0x43c508(0x248)]});}queueMicrotask(()=>{const _0x2383f6=_0x43c508;this[_0x2383f6(0x1df)][_0x2383f6(0x17e)](_0x375de1);});})));}['_onCursorUpdate'](_0x1db05c){const _0x2b63bf=_0x523508;var _0x4c8fe8,_0xebc539;const {memberID:_0x2d8ac7,selection:_0x207b05}=_0x1db05c[_0x2b63bf(0x17c)],_0xbf7590=Ai(_0x207b05),_0x3a99c1=(_0xebc539=(_0x4c8fe8=this[_0x2b63bf(0x178)][_0x2b63bf(0x259)](this[_0x2b63bf(0x331)],_0x2d8ac7))==null?void 0x0:_0x4c8fe8['name'])!=null?_0xebc539:_0x2b63bf(0x345),_0x2d4140={'color':this[_0x2b63bf(0x29e)]['assignAColorForMemberID'](_0x2d8ac7),'name':_0x3a99c1,'ranges':_0xbf7590},_0x566afd=this['cursorInfo'];_0x566afd[_0x2b63bf(0x12d)](_0x2d8ac7,_0x2d4140),this[_0x2b63bf(0x1df)][_0x2b63bf(0x17e)](_0x566afd);}['_onCursorDelete'](_0x46db49){const _0x457768=_0x523508,{memberID:_0x4e01c2}=_0x46db49[_0x457768(0x17c)],_0x19186b=this['cursorInfo'];_0x19186b[_0x457768(0x1be)](_0x4e01c2),this[_0x457768(0x1df)][_0x457768(0x17e)](_0x19186b);}[_0x523508(0x1c9)](){const _0x402a8f=_0x523508;var _0x12b73e;if(this[_0x402a8f(0x306)]=!0x0,((_0x12b73e=this[_0x402a8f(0x2d1)][_0x402a8f(0x2e6)]())==null?void 0x0:_0x12b73e['getUnitId']())!==this[_0x402a8f(0x331)])return;const _0x56c43b=this[_0x402a8f(0x1f5)][_0x402a8f(0x192)](_0x5a7735)['getDocRanges']();Array['isArray'](_0x56c43b)&&_0x56c43b[_0x402a8f(0x129)]>0x0&&this[_0x402a8f(0x134)](_0x56c43b);}['_toggleOffline'](){const _0x509e14=_0x523508;this[_0x509e14(0x306)]=!0x1;}};xe=wi([A(0x2,_0x3349c5(_0x500162)),A(0x3,_0x3349c5(Ke)),A(0x4,_0x3349c5(_0x594455)),A(0x5,_0x3349c5(ze)),A(0x6,_0x585eb),A(0x7,_0x11612f),A(0x8,_0x8ba128)],xe);var xi=Object['getOwnPropertyDescriptor'],Bi=(_0x554b21,_0x2c3c0c,_0x1c2105,_0x43dd3c)=>{const _0x4bbc4b=_0x523508;for(var _0x436813=_0x43dd3c>0x1?void 0x0:_0x43dd3c?xi(_0x2c3c0c,_0x1c2105):_0x2c3c0c,_0x5e11ca=_0x554b21[_0x4bbc4b(0x129)]-0x1,_0x5a7f74;_0x5e11ca>=0x0;_0x5e11ca--)(_0x5a7f74=_0x554b21[_0x5e11ca])&&(_0x436813=_0x5a7f74(_0x436813)||_0x436813);return _0x436813;},B=(_0xee152e,_0x379f23)=>(_0x2e9440,_0x1ecf53)=>_0x379f23(_0x2e9440,_0x1ecf53,_0xee152e);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x1f4b9d=[],_0xd3c652=!0x1;return _0xbd379d=>{_0x1f4b9d['push'](_0xbd379d),_0xd3c652||(_0xd3c652=!0x0,setTimeout(()=>{const _0x43666b=_0x58bc;_0x1f4b9d[_0x43666b(0x182)](_0x2e8c20=>_0x2e8c20()),_0x1f4b9d=[],_0xd3c652=!0x1;}));};};let Be=class extends _0x2b3828{constructor(_0x3c7ea7,_0x1bc881,_0x5d9974,_0x45b441,_0xa8e7e3,_0x599c78,_0x4f6768,_0x25122e){const _0x56fa4e=_0x523508;super(),_(this,'_online',!0x1),_(this,_0x56fa4e(0x33b),!0x1),_(this,_0x56fa4e(0x1df),new _0x2bf50e(new Map())),_(this,_0x56fa4e(0x2e9),this[_0x56fa4e(0x1df)]['asObservable']()),_(this,_0x56fa4e(0x11d),new _0x2bf50e([])),_(this,_0x56fa4e(0x308),this[_0x56fa4e(0x11d)]['pipe'](_0x59e9f1(Fi))),_(this,'_updateLocalCursor',_0x1ce9c9((_0x19fa07,_0x4334a2)=>{const _0x1501ce=_0x56fa4e,_0x32d5dd={'eventID':_0x2cb55b[_0x1501ce(0x24c)],'data':{'unitID':this['unitID'],'memberID':this[_0x1501ce(0x1d0)][_0x1501ce(0x2b0)](),'selection':_0x55c077(_0x19fa07,_0x4334a2['range'])}};this[_0x1501ce(0x1d0)][_0x1501ce(0x27e)](_0x32d5dd,this[_0x1501ce(0x331)]);},ki)),(this[_0x56fa4e(0x331)]=_0x3c7ea7,this[_0x56fa4e(0x1d0)]=_0x1bc881,this[_0x56fa4e(0x1f5)]=_0x5d9974,this[_0x56fa4e(0x29e)]=_0x45b441,this['_memberService']=_0xa8e7e3,this[_0x56fa4e(0x2d1)]=_0x599c78,this[_0x56fa4e(0x19d)]=_0x4f6768,this[_0x56fa4e(0x333)]=_0x25122e);}get['cursorInfo'](){const _0x298e81=_0x523508;return this[_0x298e81(0x1df)][_0x298e81(0x26c)]();}get[_0x523508(0x149)](){const _0x54187b=_0x523508;return this[_0x54187b(0x11d)][_0x54187b(0x26c)]();}[_0x523508(0x2e4)](){const _0x108b2e=_0x523508;super[_0x108b2e(0x2e4)](),this[_0x108b2e(0x1df)][_0x108b2e(0x17e)](new Map()),this[_0x108b2e(0x1df)][_0x108b2e(0x233)](),this['_roomMembers$'][_0x108b2e(0x17e)]([]),this[_0x108b2e(0x11d)][_0x108b2e(0x233)]();}['init'](){const _0xe9f0b2=_0x523508;this[_0xe9f0b2(0x33b)]||(this[_0xe9f0b2(0x33b)]=!0x0,this[_0xe9f0b2(0x1d0)][_0xe9f0b2(0x14d)][_0xe9f0b2(0x224)](_0x2b1b60(this[_0xe9f0b2(0x264)]))[_0xe9f0b2(0x187)](_0x1216d0=>{const _0x3b77c2=_0xe9f0b2;_0x1216d0===_0x2b0b08[_0x3b77c2(0x340)]?this['_toggleOnline']():this[_0x3b77c2(0x1eb)]();}),this['_session'][_0xe9f0b2(0x2a2)][_0xe9f0b2(0x224)](_0x2b1b60(this['dispose$']))[_0xe9f0b2(0x187)](_0x3952aa=>{const _0x1ff9b1=_0xe9f0b2,_0x524273=_0x3952aa['eventID'];_0x524273===_0x2cb55b['UPDATE_CURSOR']&&this[_0x1ff9b1(0x245)](_0x3952aa),_0x524273===_0x2cb55b[_0x1ff9b1(0xff)]&&this['_onCursorDelete'](_0x3952aa);}),this[_0xe9f0b2(0x167)](),this[_0xe9f0b2(0x1c1)](this[_0xe9f0b2(0x19d)][_0xe9f0b2(0x25f)](_0x453f92=>{const _0x311e01=_0xe9f0b2;if(this[_0x311e01(0x306)]&&_0x453f92['id']===_0x5808c9['id']&&_0x453f92['params'][_0x311e01(0x1ca)]===this[_0x311e01(0x331)]){const _0x205d02=_0x453f92[_0x311e01(0x1f1)];this['_updateLocalCursor'](_0x205d02['subUnitId'],_0x205d02[_0x311e01(0x2ed)][0x0]);}})));}[_0x523508(0x245)](_0x46510f){const _0x36f080=_0x523508;var _0x537b8d,_0x3289dd;const {memberID:_0x5e8efa,selection:_0x228834}=_0x46510f[_0x36f080(0x17c)],{sheetName:_0x47518b,range:_0x154496}=_0x4958ce(_0x228834),_0x3da462={'name':(_0x3289dd=(_0x537b8d=this[_0x36f080(0x178)]['getMember'](this[_0x36f080(0x331)],_0x5e8efa))==null?void 0x0:_0x537b8d['name'])!=null?_0x3289dd:_0x36f080(0x345),'range':this[_0x36f080(0x2a0)](_0x47518b,_0x154496),'sheetID':_0x47518b,'color':this[_0x36f080(0x29e)][_0x36f080(0x196)](_0x5e8efa),'selection':_0x228834},_0x32475f=this[_0x36f080(0x2c1)];_0x32475f[_0x36f080(0x12d)](_0x5e8efa,_0x3da462),this[_0x36f080(0x1df)][_0x36f080(0x17e)](_0x32475f);}[_0x523508(0x211)](_0x8fd0f9){const _0x1a322a=_0x523508,{memberID:_0x5b4dca}=_0x8fd0f9[_0x1a322a(0x17c)],_0x15b88a=this[_0x1a322a(0x2c1)];_0x15b88a[_0x1a322a(0x1be)](_0x5b4dca),this[_0x1a322a(0x1df)][_0x1a322a(0x17e)](_0x15b88a);}[_0x523508(0x2a0)](_0x346798,_0x1a290a){const _0x38f5ad=_0x523508;var _0x88c66b,_0x40a256;const _0x406362=(_0x40a256=(_0x88c66b=this['_univerInstanceService'][_0x38f5ad(0x2fd)](this[_0x38f5ad(0x331)]))==null?void 0x0:_0x88c66b[_0x38f5ad(0x2eb)](_0x346798))==null?void 0x0:_0x40a256[_0x38f5ad(0x33e)]();return(_0x406362==null?void 0x0:_0x406362[_0x38f5ad(0x32b)](_0x213b02=>_0x147c7f['contains'](_0x213b02,_0x1a290a)))||_0x1a290a;}[_0x523508(0x167)](){const _0x2b8d02=_0x523508,_0x57d458=new _0x20fc4b(),_0xb9921d=Hi(),_0x4cfe47=()=>{const _0x197ede=_0x58bc;_0x57d458[_0x197ede(0x2e4)]();const _0x55678d=(_0x1840d6,_0xfb3361,_0x22543a,_0x50271d)=>{const _0x1dcf0d=_0x197ede;let _0x3e395e=[];switch(_0x1840d6['id']){case _0x20a6c0['DeleteRangeMoveLeftCommandId']:{_0x3e395e=_0x1c0556(_0x1840d6,_0x50271d);break;}case _0x20a6c0['DeleteRangeMoveUpCommandId']:{_0x3e395e=_0x3525e2(_0x1840d6,_0x50271d);break;}case _0x20a6c0['InsertColCommandId']:{_0x3e395e=_0x8dfc0a(_0x1840d6,_0x50271d);break;}case _0x20a6c0[_0x1dcf0d(0x235)]:{_0x3e395e=_0x40235d(_0x1840d6,_0x50271d);break;}case _0x20a6c0['InsertRangeMoveRightCommandId']:{_0x3e395e=_0x31a452(_0x1840d6,_0x50271d);break;}case _0x20a6c0[_0x1dcf0d(0x324)]:{_0x3e395e=_0x4a82f0(_0x1840d6,_0x50271d);break;}case _0x20a6c0[_0x1dcf0d(0x1e2)]:{_0x3e395e=_0xab7ce8(_0x1840d6,_0x50271d);break;}case _0x20a6c0[_0x1dcf0d(0x154)]:{_0x3e395e=_0x2bdea2(_0x1840d6,_0x50271d);break;}case _0x20a6c0[_0x1dcf0d(0x1fe)]:{_0x3e395e=_0x25c521(_0x1840d6,_0x50271d);break;}}const _0x134a4e=_0x3aee2f(_0x3e395e,_0x50271d),_0x4f1f81=this[_0x1dcf0d(0x2c1)][_0x1dcf0d(0x192)](_0xfb3361);if(_0x4f1f81&&_0x134a4e){const _0x621715={..._0x4f1f81,'range':_0x134a4e};this[_0x1dcf0d(0x2c1)][_0x1dcf0d(0x12d)](_0xfb3361,_0x621715),_0xb9921d(()=>{const _0x37ac65=_0x1dcf0d,_0x416319=this['_refRangeService']['registerRefRange'](_0x134a4e,_0x1a0eac=>(_0x416319[_0x37ac65(0x2e4)](),_0x55678d(_0x1a0eac,_0xfb3361,_0x22543a,_0x134a4e)));_0x57d458[_0x37ac65(0x160)](_0x416319);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x197ede(0x182)]((_0x10a744,_0x5d02c9)=>{const _0x1d9c33=_0x197ede,{range:_0xe0e79c,sheetID:_0x49b03d}=_0x10a744,_0x203943=this[_0x1d9c33(0x333)][_0x1d9c33(0x2c0)](_0xe0e79c,_0x21ff2f=>(_0x203943[_0x1d9c33(0x2e4)](),_0x55678d(_0x21ff2f,_0x5d02c9,_0x49b03d,_0xe0e79c)));_0x57d458[_0x1d9c33(0x160)](_0x203943);});};this[_0x2b8d02(0x1c1)](_0x192ce3(this[_0x2b8d02(0x1df)][_0x2b8d02(0x187)](()=>{_0x4cfe47();})));}[_0x523508(0x1c9)](){const _0x43b312=_0x523508;var _0x1419fc,_0x18fc83;if(this[_0x43b312(0x306)]=!0x0,((_0x1419fc=this['_univerInstanceService'][_0x43b312(0x2e6)]())==null?void 0x0:_0x1419fc[_0x43b312(0x23c)]())!==this[_0x43b312(0x331)])return;const _0x2d9dc1=(_0x18fc83=this[_0x43b312(0x1f5)][_0x43b312(0x192)](_0x788513)[_0x43b312(0x2b2)]())==null?void 0x0:_0x18fc83[0x0],_0x2d66dd=this[_0x43b312(0x2d1)][_0x43b312(0x2cb)](_0x2c7dbf[_0x43b312(0x2cd)])[_0x43b312(0x164)]();_0x2d9dc1&&_0x2d66dd&&this['_updateLocalCursor'](_0x2d66dd[_0x43b312(0x285)](),_0x2d9dc1);}[_0x523508(0x1eb)](){const _0x11aa1d=_0x523508;this[_0x11aa1d(0x306)]=!0x1;}};Be=Bi([B(0x2,_0x3349c5(_0x500162)),B(0x3,_0x3349c5(Ke)),B(0x4,_0x3349c5(_0x594455)),B(0x5,_0x11612f),B(0x6,_0x8ba128),B(0x7,_0x3349c5(_0x36e342))],Be);var Yi=Object[_0x523508(0x1ea)],Wi=(_0x25e1a0,_0x5bcf85,_0xad4bdd,_0x5546c0)=>{const _0xb834c=_0x523508;for(var _0x579c09=_0x5546c0>0x1?void 0x0:_0x5546c0?Yi(_0x5bcf85,_0xad4bdd):_0x5bcf85,_0x317c65=_0x25e1a0[_0xb834c(0x129)]-0x1,_0x341acc;_0x317c65>=0x0;_0x317c65--)(_0x341acc=_0x25e1a0[_0x317c65])&&(_0x579c09=_0x341acc(_0x579c09)||_0x579c09);return _0x579c09;},Ce=(_0x92c3e8,_0x4ba243)=>(_0x26bd0b,_0x3cae8f)=>_0x4ba243(_0x26bd0b,_0x3cae8f,_0x92c3e8);let H=class extends _0x2b3828{constructor(_0x3aa5c4,_0x45c885,_0x2c851e){const _0x16eed6=_0x523508;super(),_(this,'_entities',new Map()),_(this,_0x16eed6(0x2bf),new _0x428b7c()),(this[_0x16eed6(0x2d1)]=_0x3aa5c4,this[_0x16eed6(0x1f5)]=_0x45c885,this[_0x16eed6(0x15b)]=_0x2c851e,this['_init']());}[_0x523508(0x2e4)](){const _0x21540d=_0x523508;super[_0x21540d(0x2e4)](),this[_0x21540d(0x2bf)][_0x21540d(0x233)](),this[_0x21540d(0x262)][_0x21540d(0x182)](_0x47bdb3=>_0x47bdb3[_0x21540d(0x2e4)]());}[_0x523508(0x25c)](_0x16f0bb){const _0x417555=_0x523508;return this[_0x417555(0x262)][_0x417555(0x30c)](_0x16f0bb)?this[_0x417555(0x262)][_0x417555(0x192)](_0x16f0bb)[_0x417555(0x2e9)]:this[_0x417555(0x2bf)][_0x417555(0x224)](_0x130d8b(_0xdca300=>_0xdca300[_0x417555(0x331)]===_0x16f0bb),_0x20cbf7(_0x57d205=>_0x57d205[_0x417555(0x2e9)]));}['_init'](){const _0x370026=_0x523508;this[_0x370026(0x2d1)][_0x370026(0x2a7)](_0x2c7dbf[_0x370026(0x2cd)])[_0x370026(0x224)](_0x2b1b60(this[_0x370026(0x264)]))['subscribe'](async _0x31c5ea=>{const _0x417f6d=_0x370026,_0x4ca624=_0x31c5ea['getUnitId'](),_0x2c7966=await this[_0x417f6d(0x16b)](_0x4ca624);this[_0x417f6d(0x2bf)]['next'](_0x2c7966),this[_0x417f6d(0x262)][_0x417f6d(0x12d)](_0x4ca624,_0x2c7966);}),this[_0x370026(0x2d1)][_0x370026(0x2a7)](_0x2c7dbf[_0x370026(0x2a5)])[_0x370026(0x224)](_0x2b1b60(this[_0x370026(0x264)]))[_0x370026(0x224)](_0x130d8b(_0x331c91=>!_0x331c91['getUnitId']()['startsWith']('__')))['subscribe'](async _0x2100c6=>{const _0x1139b9=_0x370026,_0x31af36=_0x2100c6[_0x1139b9(0x23c)](),_0x355036=await this[_0x1139b9(0x20e)](_0x31af36);this[_0x1139b9(0x2bf)]['next'](_0x355036),this['_entities'][_0x1139b9(0x12d)](_0x31af36,_0x355036);}),_0x4a885e(this[_0x370026(0x2d1)][_0x370026(0x20b)](_0x2c7dbf[_0x370026(0x2a5)]),this['_univerInstanceService'][_0x370026(0x20b)](_0x2c7dbf['UNIVER_SHEET']))['pipe'](_0x2b1b60(this[_0x370026(0x264)]))[_0x370026(0x187)](_0x4e6c80=>{const _0x4fe4e7=_0x370026,_0x5efbfe=_0x4e6c80['getUnitId'](),_0x3cf8b7=this[_0x4fe4e7(0x262)][_0x4fe4e7(0x192)](_0x5efbfe);_0x3cf8b7&&(_0x3cf8b7[_0x4fe4e7(0x2e4)](),this[_0x4fe4e7(0x262)][_0x4fe4e7(0x1be)](_0x5efbfe));});}async[_0x523508(0x16b)](_0x4e66f0){const _0x43acfa=_0x523508,_0xd57b38=await this[_0x43acfa(0x15b)][_0x43acfa(0x170)](_0x4e66f0),_0x2f040d=this[_0x43acfa(0x1f5)]['createInstance'](Be,_0x4e66f0,_0xd57b38);return _0x2f040d[_0x43acfa(0x206)](),_0x2f040d;}async[_0x523508(0x20e)](_0x27476f){const _0x38d3ee=_0x523508,_0x246812=await this[_0x38d3ee(0x15b)]['requireSession'](_0x27476f),_0x3f97c4=this['_injector'][_0x38d3ee(0x267)](xe,_0x27476f,_0x246812);return _0x3f97c4[_0x38d3ee(0x206)](),_0x3f97c4;}};H=Wi([Ce(0x0,_0x11612f),Ce(0x1,_0x3349c5(_0x500162)),Ce(0x2,_0x3349c5(_0x34f86a))],H);const Q=0x14,at=0xc8,Re=0x4,ji=0x5;function Vi(_0x23b8e9,_0x1958ca){const _0x140c72=_0x523508;let {radius:_0x3200da,width:_0x1094e7,height:_0x494bdf}=_0x1958ca;_0x3200da=_0x3200da!=null?_0x3200da:0x0,_0x1094e7=_0x1094e7!=null?_0x1094e7:0x1e,_0x494bdf=_0x494bdf!=null?_0x494bdf:0x1e;let _0x419194=0x0,_0x51a2ca=0x0,_0x2212ea=0x0;_0x419194=_0x51a2ca=_0x2212ea=Math[_0x140c72(0x179)](_0x3200da,_0x1094e7/0x2,_0x494bdf/0x2),_0x23b8e9[_0x140c72(0x28f)](),_0x23b8e9[_0x140c72(0x2a6)](_0x419194,0x0),_0x23b8e9['lineTo'](_0x1094e7-_0x51a2ca,0x0),_0x23b8e9[_0x140c72(0x303)](_0x1094e7-_0x51a2ca,_0x51a2ca,_0x51a2ca,Math['PI']*0x3/0x2,0x0,!0x1),_0x23b8e9['lineTo'](_0x1094e7,_0x494bdf-_0x2212ea),_0x23b8e9[_0x140c72(0x303)](_0x1094e7-_0x2212ea,_0x494bdf-_0x2212ea,_0x2212ea,0x0,Math['PI']/0x2,!0x1),_0x23b8e9[_0x140c72(0x1e9)](0x0,_0x494bdf),_0x23b8e9[_0x140c72(0x1e9)](0x0,_0x419194),_0x23b8e9[_0x140c72(0x303)](_0x419194,_0x419194,_0x419194,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x23b8e9['closePath'](),_0x1958ca['fill']&&(_0x23b8e9[_0x140c72(0x15f)](),_0x23b8e9[_0x140c72(0x240)]=_0x1958ca[_0x140c72(0x185)],_0x1958ca['fillRule']===_0x140c72(0x181)?_0x23b8e9['fill'](_0x140c72(0x181)):_0x23b8e9[_0x140c72(0x185)](),_0x23b8e9[_0x140c72(0x1e3)]());}class Ee extends _0x504374{constructor(_0x5680b2,_0x59ea84){const _0x244bf3=_0x523508;super(_0x5680b2,_0x59ea84),_(this,_0x244bf3(0x2ef)),_(this,_0x244bf3(0x30a)),(this['color']=_0x59ea84==null?void 0x0:_0x59ea84['color'],this[_0x244bf3(0x30a)]=_0x59ea84==null?void 0x0:_0x59ea84[_0x244bf3(0x30a)]);}static['drawWith'](_0x59896a,_0x1ff498){const _0x25e20e=_0x523508,{text:_0x2bcf23,color:_0x1fb6f8}=_0x1ff498;_0x59896a[_0x25e20e(0x15f)](),_0x59896a[_0x25e20e(0x1cb)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5194dc=_0x59896a[_0x25e20e(0x22d)](_0x2bcf23)[_0x25e20e(0x2dc)],_0x240cf0=Math['min'](_0x5194dc+0x2*Re,at);Vi(_0x59896a,{'height':Q,'radius':0x4,'width':_0x240cf0,'fill':_0x1fb6f8}),_0x59896a[_0x25e20e(0x240)]=_0x25e20e(0x33c);const _0x1e01ec=Re,_0x3cbccd=Q-ji,_0x34701b=at-0x2*Re;if(_0x5194dc>_0x34701b){let _0x4448b9='',_0x37a899=0x0;for(const _0x34c18f of _0x2bcf23){const _0x3c26f6=_0x59896a[_0x25e20e(0x22d)](_0x34c18f)[_0x25e20e(0x2dc)];if(_0x37a899+_0x3c26f6<=_0x34701b-_0x59896a['measureText'](_0x25e20e(0x1a7))[_0x25e20e(0x2dc)])_0x4448b9+=_0x34c18f,_0x37a899+=_0x3c26f6;else{_0x4448b9+='...';break;}}_0x59896a[_0x25e20e(0x177)](_0x4448b9,_0x1e01ec,_0x3cbccd);}else _0x59896a['fillText'](_0x2bcf23,_0x1e01ec,_0x3cbccd);_0x59896a[_0x25e20e(0x1e3)]();}['_draw'](_0x4dbb32){const _0x2c1b37=_0x523508;Ee[_0x2c1b37(0x315)](_0x4dbb32,this);}}const De=_0x523508(0x336),Xi=_0x523508(0x14b),Gi='collab-rect-range-',z=0x6,Ki=1.5,be=0x4,zi=1.5,Ji=_0x523508(0x21f);class ct{constructor(_0x10b315,_0x547f46,_0x1234a9,_0x397959){const _0x59d967=_0x523508;_(this,_0x59d967(0x29d),[]),_(this,_0x59d967(0x18c),null),_(this,_0x59d967(0x1aa),null),_(this,_0x59d967(0x338),null),_(this,_0x59d967(0x156),null),_(this,_0x59d967(0x10a),null),(this[_0x59d967(0x337)]=_0x10b315,this['_scene']=_0x547f46,this['_docSkeleton']=_0x1234a9,this[_0x59d967(0x284)]=_0x397959,this[_0x59d967(0x18f)]());}set['_hover'](_0xb7115b){const _0x300705=_0x523508;_0xb7115b?(this[_0x300705(0x338)]&&this[_0x300705(0x338)][_0x300705(0x258)](),this[_0x300705(0x1aa)]&&this[_0x300705(0x1aa)][_0x300705(0x10e)]()):(this[_0x300705(0x338)]&&this[_0x300705(0x338)][_0x300705(0x10e)](),this[_0x300705(0x1aa)]&&this['_textBubble'][_0x300705(0x258)]());}[_0x523508(0x2e4)](){const _0x4d1d32=_0x523508;for(const _0x5424ce of this[_0x4d1d32(0x29d)])_0x5424ce['dispose']();this[_0x4d1d32(0x1aa)]&&this[_0x4d1d32(0x1aa)]['dispose'](),this[_0x4d1d32(0x338)]&&this[_0x4d1d32(0x338)][_0x4d1d32(0x2e4)](),this[_0x4d1d32(0x18c)]&&this[_0x4d1d32(0x18c)][_0x4d1d32(0x2e4)](),this['_eventUnsubscribe']&&this[_0x4d1d32(0x10a)]();}['_render'](){const _0x34df5d=_0x523508;var _0x36619e;const {_docSkeleton:_0x332bcd,_document:_0x1d1cb6}=this,{color:_0x2443bc,name:_0x5b2ba8,ranges:_0x573f32}=this['_cursor'],_0x4704e8=_0x1d1cb6[_0x34df5d(0x113)](),{docsLeft:_0x5ae801,docsTop:_0x40c837}=_0x4704e8,_0x3bd14f=new _0x1f78c7(_0x4704e8,_0x332bcd);for(const {startOffset:_0x3a9242,endOffset:_0x2d286f,rangeType:_0x3b7ce8,segmentId:_0xf12a3c,segmentPage:_0x3a5b18,collapsed:_0x4ec06e,isActive:_0xd87c08}of _0x573f32){const _0x1f8b61=_0x332bcd[_0x34df5d(0x2b7)](_0x3a9242,!0x0,_0xf12a3c,_0x3a5b18);let _0x142fba=_0x332bcd['findNodePositionByCharIndex'](_0x2d286f,!0x0,_0xf12a3c,_0x3a5b18);if(_0x142fba==null&&(_0x142fba=_0x332bcd[_0x34df5d(0x2b7)](_0x2d286f-0x1,!0x1,_0xf12a3c,_0x3a5b18)),_0xd87c08){const {contentBoxPointGroup:_0x2a2b7b}=_0x3bd14f[_0x34df5d(0x28b)](_0x142fba,_0x142fba);if(_0x2a2b7b[_0x34df5d(0x129)]===0x0)continue;this[_0x34df5d(0x237)](_0x2443bc,_0x2a2b7b,_0x5ae801,_0x40c837,_0x5b2ba8),this[_0x34df5d(0x10a)]=this['_handleHover']();}if(_0x1f8b61&&_0x142fba){if(_0x3b7ce8===_0x5581e1[_0x34df5d(0x15c)]){const _0x4adaee=new _0xf5fc4e(_0x4704e8,_0x332bcd),{pointGroup:_0x381df0}=(_0x36619e=_0x4adaee['getRangePointData'](_0x1f8b61,_0x142fba))!=null?_0x36619e:{};if(_0x381df0==null||_0x381df0[_0x34df5d(0x129)]===0x0)continue;this[_0x34df5d(0x2bd)](_0x2443bc,_0x381df0,_0x5ae801,_0x40c837);}else{if(!_0x4ec06e){const {borderBoxPointGroup:_0x3ed902}=_0x3bd14f[_0x34df5d(0x28b)](_0x1f8b61,_0x142fba);if(_0x3ed902[_0x34df5d(0x129)]===0x0)continue;this[_0x34df5d(0x2f5)](_0x2443bc,_0x3ed902,_0x5ae801,_0x40c837);}}}}}[_0x523508(0x237)](_0x53f13e,_0x42843a,_0x26de48,_0x39b18c,_0x133ee5){const _0x1e64cc=_0x523508,_0x142100=this['_getAnchorBounding'](_0x42843a),{left:_0x5d5346,top:_0x50cc0d,height:_0x5f3c7a}=_0x142100,_0x1796f8=this['_getScale'](),_0x5aba4e=zi/_0x1796f8,_0x3151e7=new _0xad56c0(De+_0x40a2db(z),{'left':_0x5d5346+_0x26de48-_0x5aba4e,'top':_0x50cc0d+_0x39b18c,'height':_0x5f3c7a,'width':Ki,'fill':_0x53f13e||_0x29fcf9(_0x8ca5a9[_0x1e64cc(0x255)],0x0),'strokeWidth':_0x5aba4e,'stroke':Ji,'evented':!0x0});this[_0x1e64cc(0x18c)]=_0x3151e7,this['_scene'][_0x1e64cc(0x201)](_0x3151e7,_0xb707f8);const _0x3e7e82=new _0xad56c0(De+_0x40a2db(z),{'left':_0x5d5346+_0x26de48-_0x5aba4e,'top':_0x50cc0d+_0x39b18c-be/0x2,'height':be,'width':be,'fill':_0x53f13e||_0x29fcf9(_0x8ca5a9['black'],0x0),'strokeWidth':0x0,'stroke':_0x53f13e||_0x29fcf9(_0x8ca5a9[_0x1e64cc(0x255)],0x0),'evented':!0x1});this[_0x1e64cc(0x338)]=_0x3e7e82,this[_0x1e64cc(0x172)][_0x1e64cc(0x201)](_0x3e7e82,_0xb707f8);const _0x206223=new Ee(De+_0x40a2db(z),{'left':_0x5d5346+_0x26de48-_0x5aba4e,'top':_0x50cc0d+_0x39b18c-Q,'text':_0x133ee5,'color':_0x53f13e});this[_0x1e64cc(0x1aa)]=_0x206223,this[_0x1e64cc(0x172)]['addObject'](_0x206223,_0xb707f8),this['_hover']=!0x1;}[_0x523508(0x27d)](){const _0x59eefb=_0x523508,_0xa953a8=this[_0x59eefb(0x18c)][_0x59eefb(0x2c3)]['subscribeEvent'](()=>{const _0x351177=_0x59eefb;this[_0x351177(0x305)]=!0x0;}),_0xbb3d24=this[_0x59eefb(0x18c)][_0x59eefb(0x2c7)]['subscribeEvent'](()=>{const _0x5446e2=_0x59eefb;this['_hideTimer']&&clearTimeout(this[_0x5446e2(0x156)]),this[_0x5446e2(0x156)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x24dae3=_0x59eefb;_0xa953a8[_0x24dae3(0x2d8)](),_0xbb3d24[_0x24dae3(0x2d8)]();};}[_0x523508(0x2f5)](_0x3a30b2,_0x3a0967,_0x36e071,_0x1e849d){const _0x5a9209=_0x523508,_0x4ef5de=new _0x166380(_0x3a30b2)[_0x5a9209(0x21c)](0.2)[_0x5a9209(0x2dd)](),_0x32a621=new _0x10f107(Xi+_0x40a2db(z),{'pointsGroup':_0x3a0967,'fill':_0x4ef5de||_0x29fcf9(_0x8ca5a9['black'],0.2),'left':_0x36e071,'top':_0x1e849d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5a9209(0x29d)][_0x5a9209(0x205)](_0x32a621),this[_0x5a9209(0x172)]['addObject'](_0x32a621,_0xb707f8);}[_0x523508(0x2bd)](_0x32dc4c,_0x407732,_0x30f961,_0x568b25){const _0x1ff6c1=_0x523508,_0x3362e9=new _0x166380(_0x32dc4c)[_0x1ff6c1(0x21c)](0.2)['toRgbString'](),_0x338dc8=new _0x10f107(Gi+_0x40a2db(z),{'pointsGroup':_0x407732,'fill':_0x3362e9||_0x29fcf9(_0x8ca5a9['black'],0.2),'left':_0x30f961,'top':_0x568b25,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ff6c1(0x29d)][_0x1ff6c1(0x205)](_0x338dc8),this[_0x1ff6c1(0x172)]['addObject'](_0x338dc8,_0xb707f8);}[_0x523508(0x159)](_0x203e48){const _0x5b1bf3=_0x203e48[0x0],_0x40a107=_0x5b1bf3[0x0],_0x371b81=_0x5b1bf3[0x2],{x:_0x289819,y:_0x35bbdf}=_0x40a107,{x:_0x24c64b,y:_0x400f81}=_0x371b81;return{'left':_0x289819,'top':_0x35bbdf,'width':_0x24c64b-_0x289819,'height':_0x400f81-_0x35bbdf};}[_0x523508(0x17b)](){const _0x2730b7=_0x523508,{scaleX:_0x19b76c,scaleY:_0xa1bff7}=this[_0x2730b7(0x172)]['getAncestorScale']();return Math['max'](_0x19b76c,_0xa1bff7);}}var Zi=Object[_0x523508(0x1ea)],Qi=(_0x19dab9,_0x3afc0f,_0x30111b,_0x4bbd8e)=>{const _0x577eef=_0x523508;for(var _0x5c0f60=_0x4bbd8e>0x1?void 0x0:_0x4bbd8e?Zi(_0x3afc0f,_0x30111b):_0x3afc0f,_0x421b9f=_0x19dab9[_0x577eef(0x129)]-0x1,_0x539c39;_0x421b9f>=0x0;_0x421b9f--)(_0x539c39=_0x19dab9[_0x421b9f])&&(_0x5c0f60=_0x539c39(_0x5c0f60)||_0x5c0f60);return _0x5c0f60;},ie=(_0x3cc0e8,_0x4f60cc)=>(_0x451024,_0x415446)=>_0x4f60cc(_0x451024,_0x415446,_0x3cc0e8);let Fe=class extends _0x2b3828{constructor(_0x5680eb,_0x5b072f,_0x25ce07,_0x48dfcf,_0x2a4d3d){const _0x48e408=_0x523508;super(),_(this,_0x48e408(0x10c),[]),_(this,_0x48e408(0x265),[]),(this[_0x48e408(0x19e)]=_0x5680eb,this['_docSkeletonManagerService']=_0x5b072f,this[_0x48e408(0x165)]=_0x25ce07,this['_commandService']=_0x48dfcf,this[_0x48e408(0x253)]=_0x2a4d3d,this[_0x48e408(0x33b)]());}[_0x523508(0x33b)](){const _0x33909b=_0x523508,_0x2328c2=this[_0x33909b(0x19e)][_0x33909b(0x1ca)],_0x4bc8b6=this[_0x33909b(0x124)];this['disposeWithMe'](_0xf1e1b0([this['_collabCursorController'][_0x33909b(0x25c)](_0x2328c2),this[_0x33909b(0x253)]['currentTheme$']])['pipe'](_0x15e9d2(([_0x45dedc,_0x4063be])=>({'skeleton':_0x4bc8b6[_0x33909b(0x16f)](),'cursors':[..._0x45dedc[_0x33909b(0x23f)]()][_0x33909b(0x2ee)](_0x1f2ed3=>({..._0x1f2ed3,'color':this[_0x33909b(0x253)][_0x33909b(0x2df)](_0x1f2ed3[_0x33909b(0x2ef)])}))})))[_0x33909b(0x187)](_0x302ad9=>{const _0x40c3b2=_0x33909b;if(this[_0x40c3b2(0x2b5)](),_0x302ad9){const {skeleton:_0x43d2f1,cursors:_0xd2453a}=_0x302ad9;this['_updateCollabCursors'](_0x43d2f1,_0xd2453a);}})),this[_0x33909b(0x229)](),this[_0x33909b(0x16e)]();}[_0x523508(0x302)](_0x26a8f9,_0x149af3){const _0x3c16e4=_0x523508,{scene:_0x110ffc,mainComponent:_0x6eea9e}=this['_context'],_0xd5a8ad=_0x149af3[_0x3c16e4(0x2f4)](_0xf2b48d=>new ct(_0xf2b48d,_0x110ffc,_0x26a8f9,_0x6eea9e));this[_0x3c16e4(0x10c)]=_0xd5a8ad,this[_0x3c16e4(0x265)]=_0x149af3;}[_0x523508(0x2db)](){const _0x411f20=_0x523508;this[_0x411f20(0x2b5)]();const {scene:_0x11fae1,mainComponent:_0x351002}=this[_0x411f20(0x19e)],_0xe9ed14=this[_0x411f20(0x124)]['getSkeleton'](),_0x492b49=this[_0x411f20(0x265)][_0x411f20(0x2f4)](_0x47dfd0=>new ct(_0x47dfd0,_0x11fae1,_0xe9ed14,_0x351002));this[_0x411f20(0x10c)]=_0x492b49;}[_0x523508(0x2b5)](){const _0x4c23de=_0x523508;this[_0x4c23de(0x10c)][_0x4c23de(0x182)](_0xbca321=>_0xbca321[_0x4c23de(0x2e4)]()),this[_0x4c23de(0x10c)]=[];}[_0x523508(0x16e)](){const _0x199f96=_0x523508,_0x5a26e3=[_0x50b555['id']];this[_0x199f96(0x1c1)](this[_0x199f96(0x19d)]['onCommandExecuted'](_0x2b1230=>{const _0x5ea97d=_0x199f96;_0x5a26e3['includes'](_0x2b1230['id'])&&_0x2b1230[_0x5ea97d(0x1f1)][_0x5ea97d(0x1ca)]===this['_context'][_0x5ea97d(0x1ca)]&&this['_refreshCollabCursors']();}));}[_0x523508(0x229)](){const _0x3cfe45=_0x523508;this['disposeWithMe'](_0x43f194(this[_0x3cfe45(0x19e)][_0x3cfe45(0x276)][_0x3cfe45(0x195)])[_0x3cfe45(0x224)](_0x27cdd6(_0x4b6966=>_0x4b6966[_0x3cfe45(0x1d6)]===_0x58f53c[_0x3cfe45(0x197)]),_0x2478f8(0x10))[_0x3cfe45(0x187)](()=>{const _0x3c9658=_0x3cfe45;this[_0x3c9658(0x2db)]();}));}};Fe=Qi([ie(0x1,_0x3349c5(_0x5dd9bb)),ie(0x2,_0x3349c5(H)),ie(0x3,_0x8ba128),ie(0x4,_0x3349c5(_0x864c54))],Fe);const qi=0x1,en=1.5;class tn extends _0x504374{constructor(_0x50e626,_0x3fde09){const _0x21c24a=_0x523508;super(_0x50e626,_0x3fde09),_(this,_0x21c24a(0x110)),_(this,_0x21c24a(0x11f),!0x1),_(this,_0x21c24a(0x2ec)),_(this,'_name',''),_(this,_0x21c24a(0x2b6),'top'),_(this,_0x21c24a(0x155)),(_0x3fde09&&this[_0x21c24a(0x1fb)](_0x3fde09),this['onPointerEnter$'][_0x21c24a(0x295)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x21c24a(0x2c7)][_0x21c24a(0x295)](()=>this[_0x21c24a(0x1fb)]({'hovered':!0x1})));}[_0x523508(0x1fb)](_0x2a962f){const _0x1dd9d9=_0x523508;var _0x2dafa7,_0x36b18b,_0x424ccf,_0x2d2389,_0x1a0d2a,_0x5d3874;this['_color']=(_0x2dafa7=_0x2a962f[_0x1dd9d9(0x2ef)])!=null?_0x2dafa7:this[_0x1dd9d9(0x110)],this[_0x1dd9d9(0x11f)]=(_0x36b18b=_0x2a962f[_0x1dd9d9(0x1d1)])!=null?_0x36b18b:this[_0x1dd9d9(0x11f)],this[_0x1dd9d9(0x2ec)]=(_0x424ccf=_0x2a962f[_0x1dd9d9(0x153)])!=null?_0x424ccf:this['_range'],this[_0x1dd9d9(0x18a)]=(_0x2d2389=_0x2a962f[_0x1dd9d9(0x17a)])!=null?_0x2d2389:this[_0x1dd9d9(0x18a)],this[_0x1dd9d9(0x2b6)]=(_0x1a0d2a=_0x2a962f[_0x1dd9d9(0x22a)])!=null?_0x1a0d2a:this[_0x1dd9d9(0x2b6)],this[_0x1dd9d9(0x155)]=(_0x5d3874=_0x2a962f[_0x1dd9d9(0x18b)])!=null?_0x5d3874:this[_0x1dd9d9(0x155)],this[_0x1dd9d9(0x1ff)]({'width':_0x2a962f[_0x1dd9d9(0x2dc)],'height':_0x2a962f[_0x1dd9d9(0x1e6)]});}[_0x523508(0x15d)](_0x4b9c0f){const _0x285120=_0x523508,{row:_0x4159b0,column:_0x275b2a}=_0x4b9c0f;if(_0x4159b0>=this['_range'][_0x285120(0x287)]&&_0x4159b0<=this[_0x285120(0x2ec)][_0x285120(0x15e)]&&_0x275b2a>=this['_range']['startColumn']&&_0x275b2a<=this[_0x285120(0x2ec)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x285120(0x1fb)]({'hovered':!0x1});}[_0x523508(0x148)](_0x45f904){return!0x1;}[_0x523508(0x314)](_0x2ca02b){const _0x4584ac=_0x523508;_0xad56c0[_0x4584ac(0x315)](_0x2ca02b,{'width':this['width'],'height':this[_0x4584ac(0x1e6)],'strokeWidth':en,'stroke':this[_0x4584ac(0x110)],'evented':!0x1,'fill':this[_0x4584ac(0x155)]}),this[_0x4584ac(0x11f)]&&(_0x2ca02b['save'](),_0x2ca02b[_0x4584ac(0x180)](0x1,0x0,0x0,0x1,this[_0x4584ac(0x2dc)],this['_labelPosition']===_0x4584ac(0x2ab)?0x0:-Q),Ee[_0x4584ac(0x315)](_0x2ca02b,{'text':this[_0x4584ac(0x18a)],'color':this[_0x4584ac(0x110)]}),_0x2ca02b[_0x4584ac(0x1e3)]());}}var sn=Object[_0x523508(0x1ea)],nn=(_0x2be944,_0x4a3245,_0x5b2415,_0x5cb887)=>{for(var _0x527789=_0x5cb887>0x1?void 0x0:_0x5cb887?sn(_0x4a3245,_0x5b2415):_0x4a3245,_0x5d0058=_0x2be944['length']-0x1,_0x24df1f;_0x5d0058>=0x0;_0x5d0058--)(_0x24df1f=_0x2be944[_0x5d0058])&&(_0x527789=_0x24df1f(_0x527789)||_0x527789);return _0x527789;},Ne=(_0x51a451,_0xb5586)=>(_0x27216f,_0xe21a52)=>_0xb5586(_0x27216f,_0xe21a52,_0x51a451);const rn=0x1389;let ke=class extends _0x2b3828{constructor(_0x1a34e6,_0x578c36,_0x4f902c,_0x3db52d){const _0x131a82=_0x523508;super(),_(this,_0x131a82(0x265),new Set()),_(this,_0x131a82(0x150),null),(this[_0x131a82(0x19e)]=_0x1a34e6,this[_0x131a82(0x1e4)]=_0x578c36,this[_0x131a82(0x165)]=_0x4f902c,this[_0x131a82(0x253)]=_0x3db52d,this['_init']());}[_0x523508(0x33b)](){const _0x5af570=_0x523508;this[_0x5af570(0x1e4)]['currentSkeleton$']['pipe'](_0xcb173c(this[_0x5af570(0x264)]),_0xac6eb5(_0x358114=>{const _0x146bee=_0x5af570;if(_0x358114){const _0x43050e=_0x358114[_0x146bee(0x11c)];return _0xf1e1b0(this[_0x146bee(0x165)][_0x146bee(0x25c)](this[_0x146bee(0x19e)][_0x146bee(0x1ca)]),this['_themeService'][_0x146bee(0x1f3)])['pipe'](_0x15e9d2(([_0xcab696,_0x1ed52d])=>{const _0x4b60b5=new Map();return _0xcab696['forEach']((_0x38c124,_0xe170f7)=>{const _0x37c1c1=_0x58bc;if(_0x38c124[_0x37c1c1(0x24f)]===_0x43050e){const _0x1edf2a={..._0x38c124};_0x1edf2a[_0x37c1c1(0x2ef)]=this[_0x37c1c1(0x253)][_0x37c1c1(0x2df)](_0x38c124[_0x37c1c1(0x2ef)]),_0x4b60b5[_0x37c1c1(0x12d)](_0xe170f7,_0x1edf2a);}}),{'skeleton':_0x358114,'cursors':_0x4b60b5};}));}return _0x1c7beb({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5458a7,cursors:_0x5f030c})=>{const _0x35154b=_0x5af570;this[_0x35154b(0x2b5)](),_0x5458a7&&this[_0x35154b(0x302)](_0x5458a7,_0x5f030c);}),this[_0x5af570(0x1e4)][_0x5af570(0x232)][_0x5af570(0x187)](_0x274108=>{const _0x36ecef=_0x5af570;if(_0x274108==null)return;const {skeleton:_0x5277e6}=_0x274108,{scene:_0x441ed5}=this['_context'];_0x441ed5[_0x36ecef(0x2ad)][_0x36ecef(0x295)](_0x1ce9c9(_0x48851d=>{const _0x4ee2ac=_0x36ecef;var _0x932c8b,_0x308313;const {offsetX:_0x408f06,offsetY:_0x48b7fa}=_0x48851d,{x:_0x21e008,y:_0x44d674}=_0x441ed5[_0x4ee2ac(0x25b)](_0x4997c6[_0x4ee2ac(0x301)]([_0x408f06,_0x48b7fa])),{scaleX:_0x27a230,scaleY:_0x31585f}=_0x441ed5[_0x4ee2ac(0x223)](),_0x287598=_0x441ed5[_0x4ee2ac(0x2b9)](_0x592e3d[_0x4ee2ac(0x341)]),_0x25c2a3=_0x441ed5[_0x4ee2ac(0x2ff)](_0x4997c6['FromArray']([_0x21e008,_0x44d674]),_0x287598),_0x52e5d7=_0x5277e6[_0x4ee2ac(0x212)](_0x408f06,_0x48b7fa,_0x27a230,_0x31585f,_0x25c2a3);((_0x932c8b=this[_0x4ee2ac(0x150)])==null?void 0x0:_0x932c8b[_0x4ee2ac(0x1e8)])===_0x52e5d7[_0x4ee2ac(0x1e8)]&&((_0x308313=this['_lastPointer'])==null?void 0x0:_0x308313[_0x4ee2ac(0x32c)])===_0x52e5d7[_0x4ee2ac(0x32c)]||this['_cursors'][_0x4ee2ac(0x182)](_0x1f9efd=>{const _0xe3108a=_0x4ee2ac;_0x1f9efd[_0xe3108a(0x15d)](_0x52e5d7);});},0x64));});}['_updateCollabCursors'](_0x493d2c,_0xd5399b){const _0x593fc5=_0x523508;var _0x221a79;const _0x83b7d0=(_0x221a79=this[_0x593fc5(0x1e4)][_0x593fc5(0x157)]())==null?void 0x0:_0x221a79[_0x593fc5(0x2ea)];if(!_0x83b7d0)return;const _0xea382d=this['_getSheetObject']();if(!_0xea382d)return;this[_0x593fc5(0x265)][_0x593fc5(0x182)](_0x5d23d5=>{const _0x729f60=_0x593fc5;_0x5d23d5[_0x729f60(0x24e)]();});const {scene:_0x4abc49}=_0xea382d,_0x457720=on(Array[_0x593fc5(0x334)](_0xd5399b[_0x593fc5(0x23f)]()))[_0x593fc5(0x2f4)](_0x41ee5a=>{const _0xd1b2d2=_0x593fc5,{color:_0x30ce44,range:_0x52ee4e,name:_0x3feb13,selection:_0x18f5e3,sheetID:_0x4069f3}=_0x41ee5a,{startColumn:_0x2f9ba1,startRow:_0x270188,endColumn:_0x42d224,endRow:_0x1bb05}=_0x52ee4e,_0x4ea058=_0x2dbb59(_0x270188,_0x2f9ba1,_0x4abc49,_0x83b7d0),_0x53d633=_0x2dbb59(_0x1bb05,_0x42d224,_0x4abc49,_0x83b7d0),{columnHeaderHeightAndMarginTop:_0x40c485}=_0x83b7d0,{startX:_0x1e9dc9,startY:_0x3f233a}=_0x4ea058,{endX:_0x12004e,endY:_0x1fb883}=_0x53d633,_0x174068=_0x12004e-_0x1e9dc9,_0x34e3d9=_0x1fb883-_0x3f233a,_0x41d84d={'labelPosition':_0x3f233a-_0x40c485>=Q?_0xd1b2d2(0x2ca):_0xd1b2d2(0x2ab),'sheetID':_0x4069f3,'range':_0x52ee4e,'color':_0x30ce44,'name':_0x3feb13,'selection':_0x18f5e3,'left':_0x1e9dc9,'top':_0x3f233a,'width':_0x174068,'height':_0x34e3d9,'evented':!0x1,'zIndex':rn};return new tn(_0x3feb13,_0x41d84d);});_0x4abc49[_0x593fc5(0x275)](_0x457720,qi),this['_cursors']=new Set(_0x457720);}['_removeCollabCursors'](){const _0x4e0cd1=_0x523508;var _0x17429e;(_0x17429e=this[_0x4e0cd1(0x265)])==null||_0x17429e[_0x4e0cd1(0x182)](_0x5522d8=>_0x5522d8[_0x4e0cd1(0x2e4)]());}[_0x523508(0x20d)](){const _0x25802a=_0x523508;return _0x5cbc9d(this[_0x25802a(0x19e)][_0x25802a(0x200)],this[_0x25802a(0x19e)]);}};ke=nn([Ne(0x1,_0x3349c5(_0x2e1694)),Ne(0x2,_0x3349c5(H)),Ne(0x3,_0x3349c5(_0x864c54))],ke);function on(_0x5f1cb6){const _0x976b30=_0x523508,_0x3a6c9d=new Map();return _0x5f1cb6[_0x976b30(0x182)](_0x1eb29d=>{const _0x18f577=_0x976b30;if(_0x3a6c9d[_0x18f577(0x30c)](_0x1eb29d[_0x18f577(0x161)])){const _0x547c19=_0x3a6c9d[_0x18f577(0x192)](_0x1eb29d[_0x18f577(0x161)]);_0x547c19[_0x18f577(0x17a)]+=',\x20'+_0x1eb29d[_0x18f577(0x17a)];}else _0x3a6c9d[_0x18f577(0x12d)](_0x1eb29d[_0x18f577(0x161)],_0x1eb29d);}),Array[_0x976b30(0x334)](_0x3a6c9d[_0x976b30(0x23f)]());}var an=Object[_0x523508(0x1ea)],cn=(_0x4ef146,_0x845e9a,_0x4034fd,_0x35caa4)=>{for(var _0x1f9dc8=_0x35caa4>0x1?void 0x0:_0x35caa4?an(_0x845e9a,_0x4034fd):_0x845e9a,_0x136a80=_0x4ef146['length']-0x1,_0x4cfb7a;_0x136a80>=0x0;_0x136a80--)(_0x4cfb7a=_0x4ef146[_0x136a80])&&(_0x1f9dc8=_0x4cfb7a(_0x1f9dc8)||_0x1f9dc8);return _0x1f9dc8;},F=(_0xc0abe5,_0x212c8a)=>(_0x4bffb5,_0x7f18ec)=>_0x212c8a(_0x4bffb5,_0x7f18ec,_0xc0abe5);let _e=class extends _0x3d249b{constructor(_0x411e83,_0x5e184f,_0x3817b4,_0x17ed80,_0x5d5167,_0x37a4b2){const _0x620d9e=_0x523508;super(),this[_0x620d9e(0x17f)]=_0x411e83,this['_localCacheService']=_0x5e184f,this[_0x620d9e(0x256)]=_0x3817b4,this[_0x620d9e(0x2a1)]=_0x17ed80,this[_0x620d9e(0x239)]=_0x5d5167,this['_localeService']=_0x37a4b2,this[_0x620d9e(0x24d)](),this[_0x620d9e(0x2cf)]();}[_0x523508(0x24d)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x2b7f4a=_0x58bc;if(this[_0x2b7f4a(0x103)]['saveTaskMap'][_0x2b7f4a(0x326)])return this[_0x2b7f4a(0x140)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x523508(0x2cf)](){const _0x2d85cb=_0x523508;this[_0x2d85cb(0x1c1)](this[_0x2d85cb(0x256)][_0x2d85cb(0x2a2)][_0x2d85cb(0x187)](_0x34d2f4=>{const _0x454cd9=_0x2d85cb;_0x34d2f4['id']===_0x80e03f[_0x454cd9(0x193)]&&this[_0x454cd9(0x2a1)][_0x454cd9(0x10e)]({'type':_0x4e2369[_0x454cd9(0x125)],'content':this[_0x454cd9(0x140)]['t'](_0x454cd9(0x162))}),_0x34d2f4['id']===_0x80e03f[_0x454cd9(0x227)]&&this[_0x454cd9(0x2a1)]['show']({'type':_0x4e2369[_0x454cd9(0x125)],'content':this[_0x454cd9(0x140)]['t'](_0x454cd9(0x127))}),_0x34d2f4['id']===_0x80e03f[_0x454cd9(0x13d)]&&this[_0x454cd9(0x239)][_0x454cd9(0x10e)]({'title':this[_0x454cd9(0x140)]['t'](_0x454cd9(0x17d)),'content':this[_0x454cd9(0x140)]['t'](_0x454cd9(0x1a0)),'type':_0x454cd9(0x25d),'duration':0x0}),_0x34d2f4['id']===_0x80e03f[_0x454cd9(0x29a)]&&this[_0x454cd9(0x2a1)]['show']({'type':_0x4e2369[_0x454cd9(0x247)],'content':this[_0x454cd9(0x140)]['t'](_0x454cd9(0x127))+'('+_0x34d2f4['data']+')'}),_0x34d2f4['id']===_0x80e03f[_0x454cd9(0x26a)]&&this[_0x454cd9(0x2a1)][_0x454cd9(0x10e)]({'type':_0x4e2369[_0x454cd9(0x125)],'content':this['_localeService']['t'](_0x34d2f4[_0x454cd9(0x17c)]||'')}),_0x34d2f4['id']===_0x80e03f[_0x454cd9(0x320)]&&this[_0x454cd9(0x2a1)]['show']({'type':_0x4e2369[_0x454cd9(0x125)],'content':this[_0x454cd9(0x140)]['t'](_0x454cd9(0x241))}),_0x34d2f4['id']===_0x80e03f[_0x454cd9(0x270)]&&this['_messageService'][_0x454cd9(0x10e)]({'type':_0x4e2369[_0x454cd9(0x247)],'content':this['_localeService']['t'](_0x454cd9(0x1c6))}),_0x34d2f4['id']===_0x80e03f[_0x454cd9(0x16a)]&&this[_0x454cd9(0x2a1)][_0x454cd9(0x10e)]({'type':_0x4e2369['Error'],'content':this[_0x454cd9(0x140)]['t'](_0x454cd9(0x33d))});}));}};_e=cn([F(0x0,_0x15e8d2),F(0x1,_0x1852f5),F(0x2,_0x3349c5(_0x18bb83)),F(0x3,_0x4996e9),F(0x4,_0x4b0581),F(0x5,_0x3349c5(_0x23e98b))],_e);var _n=Object['getOwnPropertyDescriptor'],ln=(_0x5adafc,_0x2de173,_0x559c4d,_0x196153)=>{const _0x548fc7=_0x523508;for(var _0x1b6b6e=_0x196153>0x1?void 0x0:_0x196153?_n(_0x2de173,_0x559c4d):_0x2de173,_0x207e34=_0x5adafc[_0x548fc7(0x129)]-0x1,_0x571659;_0x207e34>=0x0;_0x207e34--)(_0x571659=_0x5adafc[_0x207e34])&&(_0x1b6b6e=_0x571659(_0x1b6b6e)||_0x1b6b6e);return _0x1b6b6e;},ne=(_0x4b3cb1,_0x68e221)=>(_0x5e925f,_0x5a4249)=>_0x68e221(_0x5e925f,_0x5a4249,_0x4b3cb1);let le=class extends _0x3d249b{constructor(_0x4a3f2d,_0x59c76e,_0xc9ea58,_0x37300e){const _0x21f205=_0x523508;super(),_(this,'_memberID'),(this[_0x21f205(0x1f5)]=_0x4a3f2d,this[_0x21f205(0x269)]=_0x59c76e,this[_0x21f205(0x166)]=_0xc9ea58,this[_0x21f205(0x116)]=_0x37300e,this[_0x21f205(0x33b)]());}['_init'](){const _0x33395d=_0x523508;this[_0x33395d(0x1e5)](),this[_0x33395d(0x2c8)](),this['_monkeyPatchLogService'](),this[_0x33395d(0x163)]();}['_initUserListener'](){const _0x543c6a=_0x523508;this[_0x543c6a(0x1c1)](this[_0x543c6a(0x116)][_0x543c6a(0x1a1)][_0x543c6a(0x187)](_0xe531bf=>{const _0x24d5ad=_0x543c6a;this[_0x24d5ad(0x12c)]=_0xe531bf==null?void 0x0:_0xe531bf[_0x24d5ad(0x10b)];}));}[_0x523508(0x1e5)](){const _0x1924b1=_0x523508,_0x2a9889=_0x2fd50c=>{const _0x1d82e5=_0x58bc;var _0x2fbe87;this['_uploadLog']('error',_0x1d82e5(0x128)+_0x2fd50c[_0x1d82e5(0x2c9)]+_0x1d82e5(0x1ac)+_0x2fd50c['filename']+':'+_0x2fd50c[_0x1d82e5(0x344)]+':'+_0x2fd50c[_0x1d82e5(0x316)]+'\x0a'+(((_0x2fbe87=_0x2fd50c[_0x1d82e5(0x25d)])==null?void 0x0:_0x2fbe87[_0x1d82e5(0x18e)])||''));};window[_0x1924b1(0x2d6)](_0x1924b1(0x25d),_0x2a9889),this[_0x1924b1(0x1c1)](()=>{const _0x2bd936=_0x1924b1;window[_0x2bd936(0x2ac)](_0x2bd936(0x25d),_0x2a9889);});}['_initUnhandledRejectionListener'](){const _0x50d235=_0x523508,_0x1b6804=_0x6951d6=>{const _0x354fc9=_0x58bc;this[_0x354fc9(0x1ee)](_0x354fc9(0x25d),_0x354fc9(0x1b1)+_0x6951d6[_0x354fc9(0x1b2)]);};window[_0x50d235(0x2d6)](_0x50d235(0x31c),_0x1b6804),this[_0x50d235(0x1c1)](()=>{const _0x1c70c8=_0x50d235;window[_0x1c70c8(0x2ac)](_0x1c70c8(0x31c),_0x1b6804);});}['_monkeyPatchLogService'](){const _0x1c6c49=_0x523508,_0x9f00dd=this[_0x1c6c49(0x166)][_0x1c6c49(0x25d)][_0x1c6c49(0x22b)](this[_0x1c6c49(0x166)]);this[_0x1c6c49(0x166)][_0x1c6c49(0x25d)]=(..._0x54243b)=>{const _0x3a3bdd=_0x1c6c49,_0x5cbf1f=_0x54243b[_0x3a3bdd(0x2f4)](_0x33fefd=>_0x33fefd instanceof Error?_0x33fefd[_0x3a3bdd(0x2c9)]+'\x0a'+_0x33fefd[_0x3a3bdd(0x18e)]:String(_0x33fefd))['join']('\x20');this[_0x3a3bdd(0x1ee)](_0x3a3bdd(0x25d),'[LogService\x20Error]:\x20'+_0x5cbf1f),_0x9f00dd(..._0x54243b);},this[_0x1c6c49(0x1c1)](()=>{const _0x181d60=_0x1c6c49;this[_0x181d60(0x166)][_0x181d60(0x25d)]=_0x9f00dd;});}[_0x523508(0x1ee)](_0x3673e3,_0x4dbe5d){const _0x310a48=_0x523508;try{const _0x455dcc={'userId':this['_memberID'],'logLabel':_0x3673e3,'content':_0x4dbe5d};this[_0x310a48(0x269)][_0x310a48(0x332)]('/universer-api/frontend/logs',{'body':_0x455dcc})[_0x310a48(0x2d4)](()=>{});}catch{}}};le=ln([ne(0x0,_0x3349c5(_0x500162)),ne(0x1,_0x3349c5(_0x3ca58d)),ne(0x2,_0x50a7e0),ne(0x3,_0x3349c5(_0x34f86a))],le);const hn=_0x523508(0x11e),_t={};var un=Object['getOwnPropertyDescriptor'],dn=(_0x37482d,_0x11a829,_0x1fd747,_0xd16150)=>{for(var _0x460a0e=_0xd16150>0x1?void 0x0:_0xd16150?un(_0x11a829,_0x1fd747):_0x11a829,_0x41490d=_0x37482d['length']-0x1,_0xecf9d2;_0x41490d>=0x0;_0x41490d--)(_0xecf9d2=_0x37482d[_0x41490d])&&(_0x460a0e=_0xecf9d2(_0x460a0e)||_0x460a0e);return _0x460a0e;},lt=(_0x13a521,_0x50588b)=>(_0x42c0b6,_0x45de06)=>_0x50588b(_0x42c0b6,_0x45de06,_0x13a521);let he=class{constructor(_0x59a4bd,_0x41f82a){const _0x602512=_0x523508;this[_0x602512(0x2b1)]=_0x59a4bd,this[_0x602512(0x174)]=_0x41f82a;}[_0x523508(0x1ef)](_0x1d624f){const _0x874eec=_0x523508;this[_0x874eec(0x133)](_0x1d624f),this[_0x874eec(0x139)](_0x1d624f);}['transformRemoteChangeset'](_0x3f8773){const _0x105cad=_0x523508,{unitID:_0x4ebd08}=_0x3f8773,_0x34222e=this[_0x105cad(0x174)]['getRenderById'](_0x4ebd08)[_0x105cad(0x132)](_0x25b9ed),{redoCache:_0x30cce9}=_0x34222e[_0x105cad(0x2b4)]();if(_0x30cce9[_0x105cad(0x129)]===0x0)return _0x3f8773;let _0x331337=_0x34cb6b['deepClone'](_0x3f8773[_0x105cad(0x203)][0x0]);for(let _0x4f2fcd=0x0;_0x4f2fcd<_0x30cce9['length'];_0x4f2fcd++){const _0x190403={'id':_0x105cad(0x327),'params':{..._0x30cce9[_0x4f2fcd]}},_0x2245d3=this[_0x105cad(0x2b1)][_0x105cad(0x22c)](_0x331337,_0x190403,!0x1);if(_0x126171(_0x2245d3))throw _0x2245d3[_0x105cad(0x25d)];_0x331337=_0x2245d3['m1Prime'];}return{..._0x34cb6b['deepClone'](_0x3f8773),'mutations':[_0x331337]};}['_transformUndoRedoStack'](_0x490029){const _0x432fdf=_0x523508,{unitID:_0x15baf4}=_0x490029,_0x538d3d=this[_0x432fdf(0x174)][_0x432fdf(0x28c)](_0x15baf4)[_0x432fdf(0x132)](_0x25b9ed),{undoCache:_0x15e72f,redoCache:_0x40e755}=_0x538d3d['getUndoRedoMutationParamsCache']();if(_0x15e72f[_0x432fdf(0x129)]===0x0||_0x40e755[_0x432fdf(0x129)]===0x0)return;const _0x6d58eb=[],_0x5c9c58=[];let _0x5773df=_0x34cb6b['deepClone'](_0x490029[_0x432fdf(0x203)][0x0]),_0x26ac27=_0x34cb6b[_0x432fdf(0x213)](_0x490029[_0x432fdf(0x203)][0x0]);for(let _0x518046=_0x15e72f['length']-0x1;_0x518046>=0x0;_0x518046--){const _0x349b30={'id':_0x432fdf(0x327),'params':{..._0x15e72f[_0x518046]}},_0x57d6a9={'id':_0x432fdf(0x327),'params':{..._0x40e755[_0x518046]}},_0x474c77=this['_transformService'][_0x432fdf(0x22c)](_0x5773df,_0x349b30,!0x1),_0x304106=this['_transformService'][_0x432fdf(0x22c)](_0x26ac27,_0x57d6a9,!0x1);if(_0x126171(_0x474c77))throw _0x474c77['error'];if(_0x126171(_0x304106))throw _0x304106[_0x432fdf(0x25d)];_0x6d58eb[_0x432fdf(0x282)](_0x474c77[_0x432fdf(0x1da)][_0x432fdf(0x1f1)]),_0x5c9c58[_0x432fdf(0x282)](_0x304106[_0x432fdf(0x1da)]['params']),_0x5773df=_0x474c77[_0x432fdf(0x2e8)],_0x26ac27=_0x304106['m1Prime'];}_0x538d3d['setUndoRedoMutationParamsCache']({'undoCache':_0x6d58eb,'redoCache':_0x5c9c58});}[_0x523508(0x139)](_0x14afa1){const _0x2434dd=_0x523508,{unitID:_0xf650f7}=_0x14afa1,_0x23cfdc=this[_0x2434dd(0x174)][_0x2434dd(0x28c)](_0xf650f7)[_0x2434dd(0x132)](_0x25b9ed),_0x47fa9e=_0x23cfdc[_0x2434dd(0x131)]();if(_0x47fa9e==null)return;const _0x10c81c=[{'id':_0x2434dd(0x327),'params':{'unitId':_0x14afa1['unitID'],'actions':null,'textRanges':[_0x47fa9e]}}],_0x7ca632=this['_transformService'][_0x2434dd(0x2a3)](_0x14afa1,_0x10c81c);if(!_0x30440e(_0x7ca632))throw _0x7ca632[_0x2434dd(0x25d)];const _0x496f00=_0x7ca632[_0x2434dd(0x1da)][0x0][_0x2434dd(0x1f1)][_0x2434dd(0x248)];Array[_0x2434dd(0x11b)](_0x496f00)&&_0x496f00[_0x2434dd(0x129)]&&_0x23cfdc['setActiveRange'](_0x496f00[0x0]);}};he=dn([lt(0x0,_0x585eb),lt(0x1,_0x440700)],he);var Sn=Object[_0x523508(0x1ea)],mn=(_0x4651a2,_0x2a197a,_0x3d186b,_0x34083c)=>{const _0x3bd103=_0x523508;for(var _0xa9c9a1=_0x34083c>0x1?void 0x0:_0x34083c?Sn(_0x2a197a,_0x3d186b):_0x2a197a,_0x5d46f4=_0x4651a2[_0x3bd103(0x129)]-0x1,_0x4a94e5;_0x5d46f4>=0x0;_0x5d46f4--)(_0x4a94e5=_0x4651a2[_0x5d46f4])&&(_0xa9c9a1=_0x4a94e5(_0xa9c9a1)||_0xa9c9a1);return _0xa9c9a1;},Le=(_0x1c224f,_0x365747)=>(_0x42c977,_0x5cf24)=>_0x365747(_0x42c977,_0x5cf24,_0x1c224f);let ue=class{constructor(_0x42e5d8,_0x94a5b,_0x510486){const _0x1d6d91=_0x523508;this[_0x1d6d91(0x1f5)]=_0x42e5d8,this[_0x1d6d91(0x2b1)]=_0x94a5b,this[_0x1d6d91(0x2c4)]=_0x510486;}[_0x523508(0x23e)](_0x48f43c){const _0x36dcce=_0x523508;this[_0x36dcce(0x1e0)](_0x48f43c);}[_0x523508(0x1b3)](_0x2aac71){const _0x57a21d=_0x523508,{unitID:_0x4c8258}=_0x2aac71,{collaboration:_0x51f896}=this['_docStateChangeManagerService'][_0x57a21d(0x23a)](_0x4c8258);if(_0x51f896[_0x57a21d(0x129)]===0x0)return _0x2aac71;let _0x223dc5=_0x34cb6b['deepClone'](_0x2aac71[_0x57a21d(0x203)][0x0]);for(let _0x2c8d39=0x0;_0x2c8d39<_0x51f896[_0x57a21d(0x129)];_0x2c8d39++){const _0x77c2a0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x51f896[_0x2c8d39][_0x57a21d(0x1ca)],..._0x51f896[_0x2c8d39][_0x57a21d(0x2d3)]}},_0x59ce38=this[_0x57a21d(0x2b1)]['transformMutation'](_0x223dc5,_0x77c2a0,!0x1);if(_0x126171(_0x59ce38))throw _0x59ce38[_0x57a21d(0x25d)];_0x223dc5=_0x59ce38[_0x57a21d(0x2e8)];}return{..._0x34cb6b[_0x57a21d(0x213)](_0x2aac71),'mutations':[_0x223dc5]};}[_0x523508(0x1e0)](_0x43b339){const _0x542c94=_0x523508,{unitID:_0x106778}=_0x43b339,{history:_0x3ea8a1,collaboration:_0x5d3e27}=this[_0x542c94(0x2c4)][_0x542c94(0x23a)](_0x106778);if(_0x3ea8a1[_0x542c94(0x129)]===0x0&&_0x5d3e27['length']===0x0)return;const _0x1c45af=[],_0x5d1fff=[];let _0x4f6b08=_0x34cb6b[_0x542c94(0x213)](_0x43b339['mutations'][0x0]),_0x335e8c=_0x34cb6b[_0x542c94(0x213)](_0x43b339[_0x542c94(0x203)][0x0]);for(let _0x265eee=_0x3ea8a1['length']-0x1;_0x265eee>=0x0;_0x265eee--){const _0x277f09={'id':_0x542c94(0x327),'params':{'unitId':_0x3ea8a1[_0x265eee][_0x542c94(0x1ca)],..._0x3ea8a1[_0x265eee][_0x542c94(0x21d)]}},_0x25b20c={'id':_0x542c94(0x327),'params':{'unitId':_0x3ea8a1[_0x265eee][_0x542c94(0x1ca)],..._0x3ea8a1[_0x265eee][_0x542c94(0x2d3)]}},_0x578d78=this[_0x542c94(0x2b1)][_0x542c94(0x22c)](_0x4f6b08,_0x277f09,!0x1),_0x1faef1=this[_0x542c94(0x2b1)][_0x542c94(0x22c)](_0x335e8c,_0x25b20c,!0x1);if(_0x126171(_0x578d78))throw _0x578d78['error'];if(_0x126171(_0x1faef1))throw _0x1faef1[_0x542c94(0x25d)];_0x1c45af['unshift']({..._0x3ea8a1[_0x265eee],'undoState':_0x578d78[_0x542c94(0x1da)]['params'],'redoState':_0x1faef1[_0x542c94(0x1da)]['params']}),_0x4f6b08=_0x578d78[_0x542c94(0x2e8)],_0x335e8c=_0x1faef1[_0x542c94(0x2e8)];}_0x4f6b08=_0x34cb6b[_0x542c94(0x213)](_0x43b339[_0x542c94(0x203)][0x0]),_0x335e8c=_0x34cb6b['deepClone'](_0x43b339[_0x542c94(0x203)][0x0]);for(let _0x37804a=_0x5d3e27['length']-0x1;_0x37804a>=0x0;_0x37804a--){const _0x308e7b={'id':_0x542c94(0x327),'params':{'unitId':_0x5d3e27[_0x37804a]['unitId'],..._0x5d3e27[_0x37804a][_0x542c94(0x21d)]}},_0x4d859f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5d3e27[_0x37804a][_0x542c94(0x1ca)],..._0x5d3e27[_0x37804a][_0x542c94(0x2d3)]}},_0x26c511=this[_0x542c94(0x2b1)]['transformMutation'](_0x4f6b08,_0x308e7b,!0x1),_0x577bcf=this['_transformService'][_0x542c94(0x22c)](_0x335e8c,_0x4d859f,!0x1);if(_0x126171(_0x26c511))throw _0x26c511['error'];if(_0x126171(_0x577bcf))throw _0x577bcf['error'];_0x5d1fff[_0x542c94(0x282)]({..._0x5d3e27[_0x37804a],'undoState':_0x26c511[_0x542c94(0x1da)][_0x542c94(0x1f1)],'redoState':_0x577bcf[_0x542c94(0x1da)][_0x542c94(0x1f1)]}),_0x4f6b08=_0x26c511[_0x542c94(0x2e8)],_0x335e8c=_0x577bcf[_0x542c94(0x2e8)];}this[_0x542c94(0x2c4)]['setStateCache'](_0x106778,{'history':_0x1c45af,'collaboration':_0x5d1fff});}};ue=mn([Le(0x0,_0x3349c5(_0x500162)),Le(0x1,_0x585eb),Le(0x2,_0x3349c5(_0x125d13))],ue);var In=Object[_0x523508(0x1ea)],fn=(_0x494a7b,_0x15539e,_0x37542d,_0x162375)=>{const _0x768a83=_0x523508;for(var _0x1df349=_0x162375>0x1?void 0x0:_0x162375?In(_0x15539e,_0x37542d):_0x15539e,_0x29f496=_0x494a7b[_0x768a83(0x129)]-0x1,_0x4e7a90;_0x29f496>=0x0;_0x29f496--)(_0x4e7a90=_0x494a7b[_0x29f496])&&(_0x1df349=_0x4e7a90(_0x1df349)||_0x1df349);return _0x1df349;},ht=(_0x552788,_0x116a6d)=>(_0x1cdb0a,_0x3dd3d3)=>_0x116a6d(_0x1cdb0a,_0x3dd3d3,_0x552788);let de=class{constructor(_0x56cb84,_0x2078d0){const _0x30f7f1=_0x523508;this[_0x30f7f1(0x1f5)]=_0x56cb84,this[_0x30f7f1(0x2b1)]=_0x2078d0;}[_0x523508(0x20f)](_0x115f49){const _0x4f5b7e=_0x523508;var _0x28c322;const _0x479886=this[_0x4f5b7e(0x1f5)][_0x4f5b7e(0x192)](_0x5a7735),_0x97480a=(_0x28c322=_0x479886[_0x4f5b7e(0x2c2)]())!=null?_0x28c322:[];if(_0x97480a['length']===0x0)return;const _0x529112=_0x115f49[_0x4f5b7e(0x331)],_0x1801a9=[{'id':_0x4f5b7e(0x327),'params':{'unitId':_0x529112,'actions':null,'textRanges':_0x97480a}}],_0x2caddc=this[_0x4f5b7e(0x2b1)][_0x4f5b7e(0x2a3)](_0x115f49,_0x1801a9);if(!_0x30440e(_0x2caddc))throw _0x2caddc[_0x4f5b7e(0x25d)];const _0x5a72cf=_0x2caddc['m2Prime'][0x0][_0x4f5b7e(0x1f1)]['textRanges'];Array[_0x4f5b7e(0x11b)](_0x5a72cf)&&_0x5a72cf[_0x4f5b7e(0x129)]&&_0x479886['replaceDocRanges'](_0x5a72cf,{'unitId':_0x529112,'subUnitId':_0x529112},!0x1);}};de=fn([ht(0x0,_0x3349c5(_0x500162)),ht(0x1,_0x585eb)],de);var gn=Object[_0x523508(0x1ea)],vn=(_0xebc947,_0x1e25b1,_0x53605c,_0x37bbe3)=>{const _0x42d748=_0x523508;for(var _0x3bfa02=_0x37bbe3>0x1?void 0x0:_0x37bbe3?gn(_0x1e25b1,_0x53605c):_0x1e25b1,_0x74e5fc=_0xebc947[_0x42d748(0x129)]-0x1,_0xae091a;_0x74e5fc>=0x0;_0x74e5fc--)(_0xae091a=_0xebc947[_0x74e5fc])&&(_0x3bfa02=_0xae091a(_0x3bfa02)||_0x3bfa02);return _0x3bfa02;},U=(_0x1e89f6,_0x2acfff)=>(_0x136cb9,_0x2dc442)=>_0x2acfff(_0x136cb9,_0x2dc442,_0x1e89f6);let Se=class extends _0x3d249b{constructor(_0x1f02f6,_0x247305,_0x3c5388,_0x2f1e83,_0x4547de,_0xca9c6,_0x3999fd,_0x13c286){const _0x25d6f0=_0x523508;super(),_(this,'_status$',new _0x2bf50e(_0xc0ac3f[_0x25d6f0(0x311)])),(this['_docStateChangeManagerService']=_0x1f02f6,this['_collaborationController']=_0x247305,this[_0x25d6f0(0x31d)]=_0x3c5388,this[_0x25d6f0(0x279)]=_0x2f1e83,this[_0x25d6f0(0x1fa)]=_0x4547de,this[_0x25d6f0(0x2c5)]=_0xca9c6,this[_0x25d6f0(0x2a1)]=_0x3999fd,this[_0x25d6f0(0x140)]=_0x13c286,this[_0x25d6f0(0x21a)]());}[_0x523508(0x21a)](){const _0x498b40=_0x523508;this[_0x498b40(0x1c1)](this[_0x498b40(0x2d0)][_0x498b40(0x2f1)][_0x498b40(0x187)](_0x40924c=>{const _0x15961a=_0x498b40,_0x14ea7e=this[_0x15961a(0x2c4)]['docStateChange$']['subscribe'](_0x4dd023=>{const _0x5f1bc8=_0x15961a;if(_0x4dd023==null)return;const {unitId:_0x2ad705,redoState:_0x20b220,commandId:_0xc93050}=_0x4dd023;if(_0x2ad705!==_0x40924c[_0x5f1bc8(0x331)])return;const _0x36dd29={'id':_0xc93050,'type':_0x16abe2[_0x5f1bc8(0x1f6)],'params':{'unitId':_0x2ad705,'actions':_0x20b220[_0x5f1bc8(0x1bf)],'textRanges':null}};_0x40924c[_0x5f1bc8(0x1b7)](_0x36dd29);});if(_0x40924c[_0x15961a(0x1c1)](_0x14ea7e),_0x40924c instanceof _0x5bd9c0){const _0x3e7196={'onTransformIME':_0x420b58=>this['_docTransformIMECacheService']['transformIMECache'](_0x420b58),'onTransformState':_0x42732a=>this[_0x15961a(0x279)][_0x15961a(0x23e)](_0x42732a),'onTransformSelections':_0x274592=>this['_docTransformSelectionsService'][_0x15961a(0x20f)](_0x274592),'onSyncEditingCollabCursor':_0x3bca93=>this[_0x15961a(0x2c5)]['syncEditingCollabCursor'](_0x3bca93),'onTransformRemoteChangesetByIMECache':_0x37b868=>this[_0x15961a(0x31d)][_0x15961a(0x1b3)](_0x37b868),'onTransformRemoteChangesetByStateCache':_0xd4a52d=>this[_0x15961a(0x279)][_0x15961a(0x1b3)](_0xd4a52d)};_0x40924c[_0x15961a(0x2b3)](_0x3e7196);}}));}};Se=vn([U(0x0,_0x3349c5(_0x125d13)),U(0x1,_0x3349c5(_0x2024af)),U(0x2,_0x3349c5(he)),U(0x3,_0x3349c5(ue)),U(0x4,_0x3349c5(de)),U(0x5,_0x3349c5(ze)),U(0x6,_0x4996e9),U(0x7,_0x3349c5(_0x23e98b))],Se);var Z=(_0x387813=>(_0x387813[_0x387813[_0x523508(0x33f)]=0x0]=_0x523508(0x33f),_0x387813[_0x387813['OK']=0x1]='OK',_0x387813[_0x387813[_0x523508(0x234)]=0x2]=_0x523508(0x234),_0x387813[_0x387813[_0x523508(0x13d)]=0x3]=_0x523508(0x13d),_0x387813[_0x387813['NOT_FOUND']=0x4]=_0x523508(0x226),_0x387813[_0x387813[_0x523508(0x228)]=0x5]='UNAUTHENTICATED',_0x387813[_0x387813[_0x523508(0x292)]=0x6]=_0x523508(0x292),_0x387813[_0x387813[_0x523508(0x2de)]=0x7]=_0x523508(0x2de),_0x387813[_0x387813[_0x523508(0x312)]=0x8]='TOO_MANY_REQUESTS',_0x387813[_0x387813[_0x523508(0x188)]=0x9]=_0x523508(0x188),_0x387813[_0x387813['LOGIN_FAILED']=0xa]=_0x523508(0x2f9),_0x387813[_0x387813[_0x523508(0x21b)]=0xb]=_0x523508(0x21b),_0x387813[_0x387813['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x523508(0x299),_0x387813[_0x387813[_0x523508(0x13e)]=0xd]=_0x523508(0x13e),_0x387813[_0x387813[_0x523508(0x26d)]=0xe]=_0x523508(0x26d),_0x387813[_0x387813['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x523508(0x199),_0x387813[_0x387813['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x387813[_0x387813['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x523508(0x2ae),_0x387813[_0x387813[_0x523508(0xfd)]=0x65]=_0x523508(0xfd),_0x387813[_0x387813[_0x523508(0x1fd)]=0xc9]=_0x523508(0x1fd),_0x387813[_0x387813[_0x523508(0x169)]=0xca]=_0x523508(0x169),_0x387813[_0x387813[_0x523508(0x2f6)]=0x1389]=_0x523508(0x2f6),_0x387813[_0x387813[_0x523508(0x31e)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x387813[_0x387813[_0x523508(0x2a9)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x387813[_0x387813[_0x523508(0x146)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x387813[_0x387813[_0x523508(0x12a)]=0x1b59]=_0x523508(0x12a),_0x387813[_0x387813[_0x523508(0x190)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x387813[_0x387813[_0x523508(0x1c2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x387813[_0x387813[_0x523508(0x1cc)]=0x1b5c]=_0x523508(0x1cc),_0x387813[_0x387813[_0x523508(0x147)]=0x1b5d]=_0x523508(0x147),_0x387813[_0x387813[_0x523508(0x168)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x387813[_0x387813['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x523508(0x1f4),_0x387813[_0x387813[_0x523508(0x1c0)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x387813[_0x387813['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x523508(0x244),_0x387813[_0x387813[_0x523508(0x329)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x387813[_0x387813[_0x523508(0x29f)]=0x232d]=_0x523508(0x29f),_0x387813[_0x387813[_0x523508(0x107)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x387813[_0x387813['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x523508(0x104),_0x387813[_0x387813['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x523508(0x14f),_0x387813[_0x387813[_0x523508(0x27b)]=0x2714]=_0x523508(0x27b),_0x387813[_0x387813[_0x523508(0x20c)]=0x271a]=_0x523508(0x20c),_0x387813[_0x387813['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x523508(0x280),_0x387813[_0x387813[_0x523508(0x273)]=0x271c]=_0x523508(0x273),_0x387813[_0x387813[_0x523508(0x1b9)]=0x271d]=_0x523508(0x1b9),_0x387813[_0x387813[_0x523508(0x1a2)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x387813[_0x387813[_0x523508(0x289)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x387813[_0x387813[_0x523508(0x22f)]=0x2720]=_0x523508(0x22f),_0x387813[_0x387813['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x387813[_0x387813[_0x523508(0x238)]=0x2ee1]=_0x523508(0x238),_0x387813[_0x387813[_0x523508(0x11a)]=0x2ee2]='INVALID_INVITE_CODE',_0x387813[_0x387813['INVITE_CODE_REQUIRED']=0x2ee3]=_0x523508(0x15a),_0x387813[_0x387813[_0x523508(0x12b)]=0x2ee4]=_0x523508(0x12b),_0x387813[_0x387813[_0x523508(0x2e2)]=0x2ee5]=_0x523508(0x2e2),_0x387813[_0x387813['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x523508(0x26f),_0x387813[_0x387813['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x387813[_0x387813[_0x523508(0x14e)]=0x32cb]=_0x523508(0x14e),_0x387813[_0x387813[_0x523508(0x2ce)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x387813[_0x387813[_0x523508(0x1f0)]=0x36b2]=_0x523508(0x1f0),_0x387813[_0x387813['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x523508(0x120),_0x387813[_0x387813[_0x523508(0x2f3)]=0x36b4]=_0x523508(0x2f3),_0x387813[_0x387813['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x523508(0x12e),_0x387813[_0x387813['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x523508(0x1ed),_0x387813[_0x387813['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x523508(0x288),_0x387813[_0x387813[_0x523508(0x1d2)]=0x37dd]=_0x523508(0x1d2),_0x387813[_0x387813['REDEMPTION_INVALID_CODE']=0x3a99]=_0x523508(0x310),_0x387813[_0x387813[_0x523508(0x1bb)]=0x3a9a]=_0x523508(0x1bb),_0x387813[_0x387813[_0x523508(0x281)]=0x3a9b]=_0x523508(0x281),_0x387813[_0x387813[_0x523508(0x1f2)]=0x3a9c]=_0x523508(0x1f2),_0x387813[_0x387813[_0x523508(0x10f)]=0x3a9d]=_0x523508(0x10f),_0x387813[_0x387813[_0x523508(0x2e5)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x387813[_0x387813[_0x523508(0x290)]=0x3a9f]=_0x523508(0x290),_0x387813[_0x387813[_0x523508(0x184)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x387813[_0x387813['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x387813))(Z||{});function En(_0x2c0866){const _0x117cbb=_0x523508;var _0x46e3f0,_0x4910e2;const _0x30e30f=(_0x46e3f0=_0x2c0866['stageInfo'])==null?void 0x0:_0x46e3f0['stage'],_0x2f6358=((_0x4910e2=_0x2c0866[_0x117cbb(0x286)])==null?void 0x0:_0x4910e2[_0x117cbb(0x2a4)])||0x0;return _0x30e30f===_0x3b18e6['START_CALCULATION']&&_0x2f6358>0x0;}function pn(_0x42d778){const _0x19e9f1=_0x523508;return _0x42d778[_0x19e9f1(0x343)]===_0x4e222c[_0x19e9f1(0x1a9)];}var On=Object['getOwnPropertyDescriptor'],Tn=(_0x5e049f,_0x240785,_0xe5f58a,_0x1a6aac)=>{const _0x225866=_0x523508;for(var _0x21e32b=_0x1a6aac>0x1?void 0x0:_0x1a6aac?On(_0x240785,_0xe5f58a):_0x240785,_0x5ead3a=_0x5e049f[_0x225866(0x129)]-0x1,_0x3e5f8e;_0x5ead3a>=0x0;_0x5ead3a--)(_0x3e5f8e=_0x5e049f[_0x5ead3a])&&(_0x21e32b=_0x3e5f8e(_0x21e32b)||_0x21e32b);return _0x21e32b;},P=(_0x40ab5d,_0x4541cc)=>(_0x1d1a5c,_0x4f84e4)=>_0x4541cc(_0x1d1a5c,_0x4f84e4,_0x40ab5d);const Cn=_0x523508(0x1c7),Rn=_0x523508(0x29c),Dn=_0x523508(0x263);let me=class extends _0x3d249b{constructor(_0x556d3d,_0x2d5e7c,_0x55e172,_0x3f2828,_0x2a22a6,_0x492b36,_0x3ffd7f){const _0x11ed19=_0x523508;super(),_(this,_0x11ed19(0x30e),null),_(this,_0x11ed19(0x136),0x0),_(this,_0x11ed19(0x27c),0x0),_(this,'_taskIds',[]),_(this,_0x11ed19(0x2ba),0x0),(this[_0x11ed19(0x2a1)]=_0x556d3d,this[_0x11ed19(0x19d)]=_0x2d5e7c,this['_configService']=_0x55e172,this[_0x11ed19(0x269)]=_0x3f2828,this[_0x11ed19(0x2d1)]=_0x2a22a6,this['_logService']=_0x492b36,this['_localeService']=_0x3ffd7f,this['_initCommandInterceptor']());}[_0x523508(0x121)](){const _0x19679e=_0x523508;this[_0x19679e(0x1c1)](this[_0x19679e(0x19d)]['beforeCommandExecuted']((_0x3adb3f,_0x370d35)=>{const _0x57846c=_0x19679e;var _0x1c768a;if(_0x3adb3f['id']!==_0x470416['id'])return;const _0x1f03a9=_0x3adb3f[_0x57846c(0x1f1)];if(!this['_hasFormulaInDirtyRanges']((_0x1c768a=_0x1f03a9[_0x57846c(0x186)])!=null?_0x1c768a:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x57846c(0x325)](_0x3adb3f,_0x370d35),this['_showGuardMessage'](),new _0x4502ef();})),this[_0x19679e(0x1c1)](this[_0x19679e(0x19d)][_0x19679e(0x25f)]((_0x15398e,_0xe1b4bc)=>{const _0x2c51e1=_0x19679e;if(_0x15398e['id']!==_0x21c064['id'])return;const _0x148e14=_0x15398e[_0x2c51e1(0x1f1)];if(En(_0x148e14)){const _0x157794=_0x40a2db();this[_0x2c51e1(0x2bb)]['push'](_0x157794),this[_0x2c51e1(0x31a)](_0x157794);}else{if(pn(_0x148e14)&&this[_0x2c51e1(0x2bb)]['length']>0x0){const _0x3ec9f3=this[_0x2c51e1(0x2bb)]['shift']();this['_releaseCalculationLimit'](_0x3ec9f3);}}}));}[_0x523508(0x2e4)](){const _0x1a86fd=_0x523508;super[_0x1a86fd(0x2e4)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x1a86fd(0x27c)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x1a86fd(0x2ba)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x1c6aea,_0x373141){const _0x3e8cab=_0x523508;for(let _0x1f5bfc=0x0;_0x1f5bfc<0x1e;_0x1f5bfc++)try{if(await this[_0x3e8cab(0x260)](),this['_checkCalculationAvailable']()){this[_0x3e8cab(0x222)](_0x1c6aea,_0x373141),this[_0x3e8cab(0x2a1)][_0x3e8cab(0x10e)]({'content':this[_0x3e8cab(0x140)]['t'](_0x3e8cab(0x118)),'type':_0x4e2369[_0x3e8cab(0x1ae)]});return;}await new Promise(_0xb20049=>{const _0x15cb5a=_0x3e8cab;this[_0x15cb5a(0x30e)]=window['setTimeout'](_0xb20049,0x3e8);});}catch(_0x2dfb41){this[_0x3e8cab(0x166)][_0x3e8cab(0x25d)](_0x2dfb41);}this[_0x3e8cab(0x2a1)]['show']({'content':this['_localeService']['t'](_0x3e8cab(0x19f)),'type':_0x4e2369[_0x3e8cab(0x247)]});}['_applyCommand'](_0x47dead,_0x508f1c){const _0x584b5a=_0x523508;try{this[_0x584b5a(0x19d)]['executeCommand'](_0x47dead['id'],_0x47dead['params'],_0x508f1c);}catch(_0x3a1117){this[_0x584b5a(0x166)]['error'](_0x3a1117);}}[_0x523508(0x14c)](_0x4aa014,_0x18e4c9){const _0x451c82=_0x523508;_0x18e4c9<this[_0x451c82(0x2ba)]||(this[_0x451c82(0x2ba)]=_0x18e4c9,this['_maxFormulaLimit']=Number[_0x451c82(0x21e)](_0x4aa014['maxFormulaLimit']),this['_currentUsage']=Number[_0x451c82(0x21e)](_0x4aa014['currentUsage']));}async[_0x523508(0x31a)](_0x4ab1c4){const _0x2029fe=_0x523508;var _0x5706b3,_0x224390;const _0x39136c=Date[_0x2029fe(0x202)]();try{const _0x2740ec=((_0x5706b3=this[_0x2029fe(0x189)]['getConfig'](_0x4f912e))==null?void 0x0:_0x5706b3['startFormulaLimitUrl'])||Rn,_0x321ab1=(await this[_0x2029fe(0x269)][_0x2029fe(0x332)](_0x2740ec,{'body':JSON['stringify']({'taskId':_0x4ab1c4})}))[_0x2029fe(0x252)];if(((_0x224390=_0x321ab1[_0x2029fe(0x25d)])==null?void 0x0:_0x224390[_0x2029fe(0x2cc)])!==Z['OK'])return;this[_0x2029fe(0x14c)](_0x321ab1[_0x2029fe(0x1ec)],_0x39136c);}catch(_0x145ab0){this['_logService'][_0x2029fe(0x25d)](_0x145ab0);}}async['_getFormulaLimitStatus'](_0x535060){const _0x1dafbd=_0x523508;var _0x292f7f,_0x465adf;const _0x32cbec=Date[_0x1dafbd(0x202)]();try{const _0x29ab58=((_0x292f7f=this[_0x1dafbd(0x189)]['getConfig'](_0x4f912e))==null?void 0x0:_0x292f7f[_0x1dafbd(0x2f2)])||Cn,_0x493832=_0x535060?_0x29ab58+_0x1dafbd(0x111)+encodeURIComponent(_0x535060):_0x29ab58,_0x33a9a9=(await this['_httpService'][_0x1dafbd(0x192)](_0x493832))['body'];if(((_0x465adf=_0x33a9a9['error'])==null?void 0x0:_0x465adf[_0x1dafbd(0x2cc)])!==Z['OK'])return;this[_0x1dafbd(0x14c)](_0x33a9a9[_0x1dafbd(0x1ec)],_0x32cbec);}catch(_0x3bafa0){this[_0x1dafbd(0x166)][_0x1dafbd(0x25d)](_0x3bafa0);}}async['_releaseCalculationLimit'](_0x4701f8){const _0x44d0b1=_0x523508;var _0x2dc56c,_0x1aed68;const _0x4f5ec5=Date[_0x44d0b1(0x202)]();try{const _0x48833d=((_0x2dc56c=this['_configService'][_0x44d0b1(0x105)](_0x4f912e))==null?void 0x0:_0x2dc56c[_0x44d0b1(0x243)])||Dn,_0x1f5177=(await this['_httpService']['post'](_0x48833d,{'body':JSON[_0x44d0b1(0x2a8)]({'taskId':_0x4701f8})}))[_0x44d0b1(0x252)];if(((_0x1aed68=_0x1f5177[_0x44d0b1(0x25d)])==null?void 0x0:_0x1aed68[_0x44d0b1(0x2cc)])!==Z['OK'])return;this[_0x44d0b1(0x14c)](_0x1f5177[_0x44d0b1(0x1ec)],_0x4f5ec5);}catch(_0x86d1e0){this[_0x44d0b1(0x166)][_0x44d0b1(0x25d)](_0x86d1e0);}}[_0x523508(0x29b)](){const _0x561226=_0x523508;return this['_maxFormulaLimit']===0x0?!0x0:this['_maxFormulaLimit']-this[_0x561226(0x27c)]>0x0;}[_0x523508(0x20a)](){const _0x487470=_0x523508;this[_0x487470(0x30e)]&&(clearTimeout(this[_0x487470(0x30e)]),this[_0x487470(0x30e)]=null);}[_0x523508(0x100)](){const _0x5c6734=_0x523508;this[_0x5c6734(0x2a1)]['show']({'content':this[_0x5c6734(0x140)]['t']('formula.calculation.waiting'),'type':_0x4e2369['Loading']});}[_0x523508(0x277)](_0x96b236){const _0x1cac1f=_0x523508;for(const _0xb31327 of _0x96b236){const {unitId:_0x3df4b0,sheetId:_0x39201f,range:_0x4ce11d}=_0xb31327,_0x85ec8a=this[_0x1cac1f(0x2d1)][_0x1cac1f(0x152)](_0x3df4b0);if(!_0x85ec8a)continue;const _0xa79dee=_0x85ec8a[_0x1cac1f(0x2eb)](_0x39201f);if(!_0xa79dee)continue;const _0x5873ab=_0xa79dee['getCellMatrix']();for(let _0x47edbb=_0x4ce11d[_0x1cac1f(0x287)];_0x47edbb<=_0x4ce11d[_0x1cac1f(0x15e)];_0x47edbb++)for(let _0x5c5a00=_0x4ce11d['startColumn'];_0x5c5a00<=_0x4ce11d['endColumn'];_0x5c5a00++){const _0x1820b6=_0x5873ab[_0x1cac1f(0x26c)](_0x47edbb,_0x5c5a00);if(_0x1820b6&&(_0x4faecd(_0x1820b6['f'])||_0x3af6b9(_0x1820b6['si'])))return!0x0;}}return!0x1;}};me=Tn([P(0x0,_0x3349c5(_0x4996e9)),P(0x1,_0x8ba128),P(0x2,_0x801870),P(0x3,_0x3349c5(_0x3ca58d)),P(0x4,_0x11612f),P(0x5,_0x50a7e0),P(0x6,_0x3349c5(_0x23e98b))],me);var bn=Object[_0x523508(0x1ea)],Nn=(_0x1034ac,_0x194432,_0x130c86,_0x3af689)=>{const _0x5e4e00=_0x523508;for(var _0x1b4aa3=_0x3af689>0x1?void 0x0:_0x3af689?bn(_0x194432,_0x130c86):_0x194432,_0x335f0c=_0x1034ac[_0x5e4e00(0x129)]-0x1,_0x54c53f;_0x335f0c>=0x0;_0x335f0c--)(_0x54c53f=_0x1034ac[_0x335f0c])&&(_0x1b4aa3=_0x54c53f(_0x1b4aa3)||_0x1b4aa3);return _0x1b4aa3;},Ue=(_0x1b06cf,_0xae9cfd)=>(_0x2aa29b,_0x32ade2)=>_0xae9cfd(_0x2aa29b,_0x32ade2,_0x1b06cf);let He=class extends _0x3d249b{constructor(_0x125a15,_0x4152f0,_0x5627e9){const _0xfcc837=_0x523508;super(),_(this,_0xfcc837(0x2da),new Map()),_(this,_0xfcc837(0x1b0),new Map()),_(this,'_disabled',!0x1),(this[_0xfcc837(0x189)]=_0x125a15,this[_0xfcc837(0x225)]=_0x4152f0,this[_0xfcc837(0x1ad)]=_0x5627e9);}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x523508(0x1a8)](){this['_disabled']=!0x1;}get[_0x523508(0x2fc)](){const _0x59ce78=_0x523508;return this[_0x59ce78(0x1b0)];}[_0x523508(0x2e4)](){const _0x19083c=_0x523508;this[_0x19083c(0x1d9)]()[_0x19083c(0x1f7)](()=>super[_0x19083c(0x2e4)]());}async[_0x523508(0x10d)](_0x3e0f45){const _0x4477f9=_0x523508;return this[_0x4477f9(0x13a)]?null:this['_localStorageService']['getItem'](_0xcc39f6(_0x3e0f45));}async[_0x523508(0x1dd)](_0x4db3ab,_0x1ba072){const _0x58ae2e=_0x523508;return!!this[_0x58ae2e(0x225)][_0x58ae2e(0x171)](_0x4db3ab,_0x1ba072);}['updateOfflineData'](_0x3f1890,_0x3a6216,_0x23d023,_0x1f0123){const _0x23575e=_0x523508,_0x3dc6a2=this[_0x23575e(0x1ad)]['getCurrentRevOfUnit'](_0x3f1890);this[_0x23575e(0x2da)][_0x23575e(0x12d)](_0x3f1890,{'unitID':_0x3f1890,'type':_0x3a6216,'awaitingChangeset':_0x23d023,'mutations':_0x1f0123,'rev':_0x3dc6a2}),this['_saveTaskMap']['has'](_0x3f1890)||this['_scheduleSaving'](_0x3f1890);}[_0x523508(0x216)](_0x444c92){const _0x5b7be4=_0x523508,_0x38e8b2=this[_0x5b7be4(0x2b8)]();_0x38e8b2===0x0?this['_saveCache'](_0x444c92):this[_0x5b7be4(0x1b0)][_0x5b7be4(0x12d)](_0x444c92,setTimeout(()=>this[_0x5b7be4(0x1a4)](_0x444c92),_0x38e8b2));}[_0x523508(0x2b8)](){const _0x54f8a8=_0x523508;var _0x4be9d8;return(_0x4be9d8=this[_0x54f8a8(0x189)][_0x54f8a8(0x105)](_0x364810))!=null?_0x4be9d8:_0x502e2b;}[_0x523508(0x1a4)](_0xbdefdd){const _0x5698b0=_0x523508,_0x4da4ed=this[_0x5698b0(0x1b0)][_0x5698b0(0x192)](_0xbdefdd);return _0x4da4ed!==void 0x0&&window[_0x5698b0(0x101)](_0x4da4ed),this[_0x5698b0(0x225)][_0x5698b0(0x171)](_0xcc39f6(_0xbdefdd),this[_0x5698b0(0x2da)][_0x5698b0(0x192)](_0xbdefdd))[_0x5698b0(0x1f7)](()=>this['_saveTaskMap'][_0x5698b0(0x1be)](_0xbdefdd));}async[_0x523508(0x1d9)](){const _0x56c593=_0x523508,_0x5c8f21=[];this[_0x56c593(0x1b0)][_0x56c593(0x182)]((_0x1be14e,_0x3395da)=>{const _0x9dce6b=_0x56c593;window[_0x9dce6b(0x101)](_0x1be14e),_0x5c8f21[_0x9dce6b(0x205)](this[_0x9dce6b(0x1a4)](_0x3395da)[_0x9dce6b(0x1f7)](()=>{const _0x1bc97b=_0x9dce6b;this[_0x1bc97b(0x1b0)][_0x1bc97b(0x1be)](_0x3395da);}));}),await Promise[_0x56c593(0x291)](_0x5c8f21);}};He=Nn([Ue(0x0,_0x801870),Ue(0x1,_0x46f59e),Ue(0x2,_0x3349c5(_0x4453ad))],He);class Ln extends _0x2b3828{constructor(){const _0x50a2d0=_0x523508;super(),_(this,'urlChange$'),this[_0x50a2d0(0x1c3)]=_0x2ea75f(window,'popstate')[_0x50a2d0(0x224)](_0x2b1b60(this[_0x50a2d0(0x264)]),_0x4dd8f1(0x1),_0x50703a(void 0x0));}[_0x523508(0x108)](_0x15c583,_0x18d0f1,_0x3860b6=!0x1){const _0x1e7534=_0x523508,_0x5acd14=new URL(window[_0x1e7534(0x1de)][_0x1e7534(0x25e)]);_0x5acd14['searchParams'][_0x1e7534(0x12d)](_0x15c583,_0x18d0f1),_0x3860b6?window['history'][_0x1e7534(0x1ba)]('','',_0x5acd14[_0x1e7534(0x1c5)]()):window[_0x1e7534(0x142)][_0x1e7534(0x2d2)]('','',_0x5acd14[_0x1e7534(0x1c5)]());}['removeParam'](_0x13e2e4,_0x1e299b=!0x1){const _0x7e9deb=_0x523508,_0x100e41=new URL(window['location'][_0x7e9deb(0x25e)]);_0x100e41['searchParams'][_0x7e9deb(0x1be)](_0x13e2e4),_0x1e299b?window[_0x7e9deb(0x142)][_0x7e9deb(0x1ba)]('','',_0x100e41['toString']()):window[_0x7e9deb(0x142)][_0x7e9deb(0x2d2)]('','',_0x100e41[_0x7e9deb(0x1c5)]());}[_0x523508(0x217)](_0x35027e){const _0x277692=_0x523508;var _0x97ee82;return(_0x97ee82=new URL(window[_0x277692(0x1de)][_0x277692(0x25e)])[_0x277692(0x319)][_0x277692(0x192)](_0x35027e))!=null?_0x97ee82:void 0x0;}}var Un=Object[_0x523508(0x322)],Mn=Object[_0x523508(0x1ea)],An=(_0x26fb13,_0x2672a4,_0x47689f)=>_0x2672a4 in _0x26fb13?Un(_0x26fb13,_0x2672a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47689f}):_0x26fb13[_0x2672a4]=_0x47689f,Pn=(_0x5541c8,_0x235aa8,_0x4dea57,_0x23794b)=>{const _0x3b0b5d=_0x523508;for(var _0x45d599=_0x23794b>0x1?void 0x0:_0x23794b?Mn(_0x235aa8,_0x4dea57):_0x235aa8,_0x5b5f57=_0x5541c8[_0x3b0b5d(0x129)]-0x1,_0x4f7908;_0x5b5f57>=0x0;_0x5b5f57--)(_0x4f7908=_0x5541c8[_0x5b5f57])&&(_0x45d599=_0x4f7908(_0x45d599)||_0x45d599);return _0x45d599;},Me=(_0x2c97f7,_0xe03c02)=>(_0x121aca,_0x5b4dbb)=>_0xe03c02(_0x121aca,_0x5b4dbb,_0x2c97f7),wn=(_0x1ff1e8,_0x3c4508,_0x579519)=>An(_0x1ff1e8,_0x3c4508+'',_0x579519);const yn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Ye=class extends _0x1b2056{constructor(_0x23ed58=_t,_0x1ac645,_0x588432,_0x4b9e16){const _0x5543d4=_0x523508;super(),this['_config']=_0x23ed58,this[_0x5543d4(0x174)]=_0x1ac645,this['_injector']=_0x588432,this[_0x5543d4(0x189)]=_0x4b9e16;const {..._0x545fae}=_0x3e198e({},_t,this[_0x5543d4(0x2fa)]);this[_0x5543d4(0x189)][_0x5543d4(0x32d)](hn,_0x545fae);}[_0x523508(0x297)](){const _0x274b34=_0x523508;this['_registerDependencies'](),this[_0x274b34(0x1cd)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x523508(0x2f7)](){const _0xf28b3c=_0x523508;var _0x20db59;const _0x5db6c8=[[Ke],[me],[de],[he],[ue],[ze],[yt,{'useClass':Ln}],[_0x2b9ce6,{'useClass':_0x3aa09d}],[_0x1852f5,{'useClass':He}],[ae],[Se],[_e],[H],[$e],[ce]];this[_0xf28b3c(0x2fa)][_0xf28b3c(0x141)]&&_0x5db6c8[_0xf28b3c(0x205)]([le]),_0x1ed7c2(this['_injector'],_0x4f1954(_0x5db6c8,(_0x20db59=this[_0xf28b3c(0x2fa)])==null?void 0x0:_0x20db59[_0xf28b3c(0x135)]));}[_0x523508(0x221)](){const _0x4f55d7=_0x523508;this['disposeWithMe'](this[_0x4f55d7(0x174)]['registerRenderModule'](_0x2c7dbf['UNIVER_DOC'],[Fe])),this[_0x4f55d7(0x1c1)](this['_renderManagerService'][_0x4f55d7(0x16c)](_0x2c7dbf[_0x4f55d7(0x2cd)],[ke]));}[_0x523508(0x1cd)](){const _0x508234=_0x523508;_0x5f22ef(this[_0x508234(0x1f5)],[[H],[ae],[Se],[_e],[ce],[me]]),this['_config'][_0x508234(0x141)]&&_0x5f22ef(this[_0x508234(0x1f5)],[[le]]);}};wn(Ye,_0x523508(0x126),yn),Ye=Pn([_0x40a6e1(_0x5c2bb3),Me(0x1,_0x440700),Me(0x2,_0x3349c5(_0x500162)),Me(0x3,_0x801870)],Ye);var $n=Object[_0x523508(0x1ea)],xn=(_0x14e385,_0x3fd6fb,_0x58deac,_0x563feb)=>{const _0x5e0dba=_0x523508;for(var _0x4a9bc1=_0x563feb>0x1?void 0x0:_0x563feb?$n(_0x3fd6fb,_0x58deac):_0x3fd6fb,_0x511fbd=_0x14e385[_0x5e0dba(0x129)]-0x1,_0x7cd8d1;_0x511fbd>=0x0;_0x511fbd--)(_0x7cd8d1=_0x14e385[_0x511fbd])&&(_0x4a9bc1=_0x7cd8d1(_0x4a9bc1)||_0x4a9bc1);return _0x4a9bc1;},J=(_0x4fef39,_0x1de529)=>(_0x3125b1,_0x234b64)=>_0x1de529(_0x3125b1,_0x234b64,_0x4fef39);let ut=class extends _0x592b3a{constructor(_0x3148c1,_0x21d9ef,_0x477f6d,_0x5bbb5f,_0x3807c1){super(_0x3148c1,_0x21d9ef,_0x477f6d,_0x5bbb5f,_0x3807c1);}async[_0x523508(0x1f9)](_0x409658){const _0x2d5ecf=_0x523508,_0x2c8e23=await this['_getSessionTicket'](),_0x541190=this[_0x2d5ecf(0x257)](_0x409658,_0x2c8e23);return this[_0x2d5ecf(0x1e1)](_0x541190);}['_createSocketURL'](_0x4c7cbd,_0xca6f4a){const _0x381c60=_0x523508,_0x42ecaf=typeof window>'u'?new URL(_0x4c7cbd):new URL(_0x4c7cbd,window[_0x381c60(0x1de)][_0x381c60(0x27a)]);_0x42ecaf['searchParams']['set'](_0x381c60(0x278),_0xca6f4a);const _0x1e975a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x381c60(0x1de)]['search']);return _0x1e975a[_0x381c60(0x192)](_0x381c60(0x24b))&&_0x42ecaf[_0x381c60(0x319)]['set'](_0x381c60(0x24b),_0x1e975a[_0x381c60(0x192)](_0x381c60(0x24b))),_0x42ecaf[_0x381c60(0x1c5)]();}async['_getSessionTicket'](){const _0x1cdad7=_0x523508;var _0x4178bb,_0x482904,_0x9a9d26;const _0xd0a2b3=this[_0x1cdad7(0x189)][_0x1cdad7(0x105)](_0x4f912e),_0x4246a1=(_0x4178bb=_0xd0a2b3==null?void 0x0:_0xd0a2b3[_0x1cdad7(0x215)])!=null?_0x4178bb:_0x3169bd;return(_0x9a9d26=(_0x482904=(await this[_0x1cdad7(0x269)][_0x1cdad7(0x192)](_0x4246a1,{'headers':{'Content-Type':_0x1cdad7(0x2be)}}))[_0x1cdad7(0x252)])==null?void 0x0:_0x482904[_0x1cdad7(0x26e)])!=null?_0x9a9d26:'';}};ut=xn([J(0x0,_0x3349c5(_0x500162)),J(0x1,_0x3349c5(_0x3ca58d)),J(0x2,_0x801870),J(0x3,_0x50a7e0),J(0x4,_0x26f01f)],ut);var Bn=Object['getOwnPropertyDescriptor'],Fn=(_0x2d25d5,_0xa80810,_0x4d7a73,_0x8257a9)=>{const _0x504faa=_0x523508;for(var _0x145788=_0x8257a9>0x1?void 0x0:_0x8257a9?Bn(_0xa80810,_0x4d7a73):_0xa80810,_0xa785da=_0x2d25d5[_0x504faa(0x129)]-0x1,_0x7f9716;_0xa785da>=0x0;_0xa785da--)(_0x7f9716=_0x2d25d5[_0xa785da])&&(_0x145788=_0x7f9716(_0x145788)||_0x145788);return _0x145788;},Ae=(_0xca366a,_0x1e1786)=>(_0x1619e3,_0x88efa7)=>_0x1e1786(_0x1619e3,_0x88efa7,_0xca366a);let dt=class extends _0x3d249b{constructor(_0x40a784,_0xb52206,_0x27f603){const _0x4c2326=_0x523508;super(),this[_0x4c2326(0x208)]=_0x40a784,this['_httpService']=_0xb52206,this[_0x4c2326(0x189)]=_0x27f603;}async[_0x523508(0x112)](_0x12fac3,_0x44e3ab,_0xd0f51d,..._0x552d87){const _0x3a716f=_0x523508;var _0x2a3f6a,_0x2057c5,_0x881754,_0x2ac733;const _0x364ecc=this['_instanceService'][_0x3a716f(0x2e6)]();if(!_0x364ecc)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x164e98=((_0x2a3f6a=this[_0x3a716f(0x189)][_0x3a716f(0x105)](_0xf03e25))!=null?_0x2a3f6a:_0x33b373)+'/'+_0x12fac3+_0x3a716f(0x300)+_0x44e3ab,_0xc63c5c=new URL(window['location']['href']),_0x4f884b={'scriptId':_0x12fac3,'runId':(_0x2057c5=_0xc63c5c[_0x3a716f(0x319)][_0x3a716f(0x192)](_0x3a716f(0x24b)))!=null?_0x2057c5:'','function':_0x44e3ab,'unitId':_0x364ecc[_0x3a716f(0x23c)](),'argsOfFunction':JSON[_0x3a716f(0x2a8)](_0x552d87),'invokeId':(_0x881754=_0xd0f51d[_0x3a716f(0x13f)])!=null?_0x881754:'','executionId':(_0x2ac733=_0xd0f51d[_0x3a716f(0x22e)])!=null?_0x2ac733:''};try{const _0x2e843f=await this[_0x3a716f(0x269)][_0x3a716f(0x332)](_0x164e98,{'body':_0x4f884b});return _0x2e843f[_0x3a716f(0x252)][_0x3a716f(0x25d)]&&_0x2e843f[_0x3a716f(0x252)][_0x3a716f(0x25d)][_0x3a716f(0x2cc)]!==Z['OK']?_0x3a716f(0x204):_0x2e843f[_0x3a716f(0x252)][_0x3a716f(0x13b)];}catch{return'Failed';}}};dt=Fn([Ae(0x0,_0x11612f),Ae(0x1,_0x3349c5(_0x3ca58d)),Ae(0x2,_0x801870)],dt);const St=0x7530,mt='ACTIVE_UNIT_EVENT_CHANNEL';function _0x58bc(_0x4cf667,_0x413d67){const _0x2a9293=_0x2a92();return _0x58bc=function(_0x58bc7d,_0x27a038){_0x58bc7d=_0x58bc7d-0xfd;let _0x5bbf66=_0x2a9293[_0x58bc7d];return _0x5bbf66;},_0x58bc(_0x4cf667,_0x413d67);}class rr extends _0x3d249b{constructor(){const _0x4adb94=_0x523508;super(),_(this,_0x4adb94(0x209),_0x40a2db()),_(this,_0x4adb94(0x242),new Set()),_(this,_0x4adb94(0x1bc),new Map()),_(this,_0x4adb94(0x176),null),_(this,_0x4adb94(0x32f),new Map()),_(this,_0x4adb94(0x28e),new Map()),this[_0x4adb94(0x33b)]();}[_0x523508(0x2e4)](){const _0x4c1807=_0x523508;super[_0x4c1807(0x2e4)](),this[_0x4c1807(0x32f)][_0x4c1807(0x182)]((_0x23a548,_0x1ead48)=>this[_0x4c1807(0x2fb)](_0x1ead48)),this[_0x4c1807(0x176)]&&window[_0x4c1807(0x207)](this[_0x4c1807(0x176)]);}[_0x523508(0x1c8)](_0xfb1b2){const _0x2a2768=_0x523508;return this[_0x2a2768(0x12f)](_0xfb1b2)[_0x2a2768(0x224)](_0x10efc1());}[_0x523508(0x272)](_0x1a8de0){const _0x184bbe=_0x523508;this['_selfUnitIDs']['size']===0x0&&this[_0x184bbe(0x2d7)](),this[_0x184bbe(0x242)][_0x184bbe(0x160)](_0x1a8de0),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1a8de0],'isForwarded':!0x1});}[_0x523508(0x1b6)](_0x3c4fa3){const _0x215443=_0x523508;this['_selfUnitIDs'][_0x215443(0x1be)](_0x3c4fa3),this[_0x215443(0x242)]['size']===0x0&&this[_0x215443(0x176)]&&window[_0x215443(0x207)](this[_0x215443(0x176)]);}[_0x523508(0x33b)](){const _0x39e1b0=_0x523508;this[_0x39e1b0(0x1c1)](_0x192ce3(_0x2ea75f(window,_0x39e1b0(0x145))[_0x39e1b0(0x187)](_0x541884=>{const _0x528941=_0x39e1b0;if(_0x541884['key']!==mt||!_0x541884[_0x528941(0x1a3)])return;const _0x32e14c=JSON['parse'](_0x541884[_0x528941(0x1a3)]);this[_0x528941(0x230)](_0x32e14c);}))),window[_0x39e1b0(0x2d6)](_0x39e1b0(0x1d8),()=>this[_0x39e1b0(0x115)]({'type':0x1,'memberID':this[_0x39e1b0(0x209)],'unitIDs':Array[_0x39e1b0(0x334)](this[_0x39e1b0(0x242)])}));}[_0x523508(0x230)](_0x28d572){const _0xacb9a6=_0x523508;switch(_0x28d572[_0xacb9a6(0x1d6)]){case 0x0:this['_handleJoinEvent'](_0x28d572);break;case 0x1:this[_0xacb9a6(0x138)](_0x28d572);break;case 0x2:this[_0xacb9a6(0x151)](_0x28d572);break;}}[_0x523508(0x183)](_0x5d70e8){const _0x5c80bd=_0x523508,{unitIDs:_0x16d129,memberID:_0x248002,isForwarded:_0x388b9e}=_0x5d70e8;_0x16d129[_0x5c80bd(0x182)](_0x450eaf=>{const _0xd3bf6f=_0x5c80bd;if(!_0x388b9e&&this[_0xd3bf6f(0x1bc)]['has'](_0x450eaf)&&this[_0xd3bf6f(0x12f)](_0x450eaf)[_0xd3bf6f(0x17e)](_0x221888[_0xd3bf6f(0x2e7)]),!this['_unitOnClients'][_0xd3bf6f(0x30c)](_0x450eaf)||!this['_unitOnClients'][_0xd3bf6f(0x192)](_0x450eaf)[_0xd3bf6f(0x30c)](_0x248002)){const _0x590a46=this[_0xd3bf6f(0x1bc)][_0xd3bf6f(0x192)](_0x450eaf)||new Set();_0x590a46[_0xd3bf6f(0x160)](_0x248002),this['_unitOnClients'][_0xd3bf6f(0x12d)](_0x450eaf,_0x590a46),this[_0xd3bf6f(0x32a)](_0x248002);}}),_0x388b9e||this[_0x5c80bd(0x115)]({'type':0x0,'memberID':this[_0x5c80bd(0x209)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x523508(0x32a)](_0x376be3){const _0x3ca2bc=_0x523508;this['_removeClearOtherTimer'](_0x376be3);const _0x1c0587=window[_0x3ca2bc(0x266)](()=>{const _0x15288f=_0x3ca2bc;this[_0x15288f(0x1bc)][_0x15288f(0x182)](_0x3120f4=>{const _0x1b6b22=_0x15288f;_0x3120f4[_0x1b6b22(0x1be)](_0x376be3);});},St*0x2);this[_0x3ca2bc(0x32f)][_0x3ca2bc(0x12d)](_0x376be3,_0x1c0587);}[_0x523508(0x2fb)](_0x3abb77){const _0x6d65cc=_0x523508;if(this[_0x6d65cc(0x32f)][_0x6d65cc(0x30c)](_0x3abb77)){const _0x599a7d=this[_0x6d65cc(0x32f)][_0x6d65cc(0x192)](_0x3abb77);_0x599a7d&&window['clearTimeout'](_0x599a7d),this['_clearOtherTimers'][_0x6d65cc(0x12d)](_0x3abb77,null);}}[_0x523508(0x138)](_0x132ead){const _0x1423f2=_0x523508,{memberID:_0x23bd8f,unitIDs:_0x3a99cd}=_0x132ead;_0x3a99cd['forEach'](_0x4d5e8d=>{const _0x39d8b=_0x58bc;var _0x286ef7;const _0xce293c=this['_unitOnClients']['get'](_0x4d5e8d);_0xce293c&&(_0xce293c[_0x39d8b(0x1be)](_0x23bd8f),(_0x286ef7=this[_0x39d8b(0x12f)](_0x4d5e8d))==null||_0x286ef7[_0x39d8b(0x17e)](_0xce293c['size']===0x0?_0x221888[_0x39d8b(0x268)]:_0x221888[_0x39d8b(0x2e7)]));}),this[_0x1423f2(0x2fb)](_0x23bd8f);}[_0x523508(0x151)](_0x5b7eeb){const _0xba751f=_0x523508;this[_0xba751f(0x32a)](_0x5b7eeb[_0xba751f(0x10b)]);}[_0x523508(0x115)](_0xc525c5){const _0x3716e2=_0x523508;localStorage[_0x3716e2(0x171)](mt,JSON[_0x3716e2(0x2a8)](_0xc525c5));}[_0x523508(0x2d7)](){const _0x369ad5=_0x523508;this[_0x369ad5(0x176)]=window[_0x369ad5(0x2f8)](()=>{const _0x498f9d=_0x369ad5;this['_send']({'type':0x2,'memberID':this[_0x498f9d(0x209)]});},St);}['_ensureSubject'](_0x1c878c){const _0xd249e4=_0x523508;return this[_0xd249e4(0x28e)][_0xd249e4(0x30c)](_0x1c878c)||this[_0xd249e4(0x28e)][_0xd249e4(0x12d)](_0x1c878c,new _0x2bf50e(_0x221888['NO_OTHER_CLIENTS_EDITING'])),this[_0xd249e4(0x28e)][_0xd249e4(0x192)](_0x1c878c);}}export{ut as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,yt as IURLService,dt as RemoteUniscriptService,tn as SheetCollabCursorShape,Ye as UniverCollaborationClientUIPlugin,rr as WebBrowserSingleActiveUnitService,Ln as WebURLService};