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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x350772=_0x2f90;(function(_0x5aa551,_0x26c47c){const _0x22e3a4=_0x2f90,_0x5050b2=_0x5aa551();while(!![]){try{const _0x5401e7=-parseInt(_0x22e3a4(0xcf))/0x1+-parseInt(_0x22e3a4(0x1f1))/0x2*(-parseInt(_0x22e3a4(0x21d))/0x3)+-parseInt(_0x22e3a4(0x269))/0x4*(-parseInt(_0x22e3a4(0x21f))/0x5)+-parseInt(_0x22e3a4(0x211))/0x6+parseInt(_0x22e3a4(0x235))/0x7+-parseInt(_0x22e3a4(0x1b7))/0x8*(parseInt(_0x22e3a4(0x1b4))/0x9)+parseInt(_0x22e3a4(0x274))/0xa;if(_0x5401e7===_0x26c47c)break;else _0x5050b2['push'](_0x5050b2['shift']());}catch(_0x18e6d6){_0x5050b2['push'](_0x5050b2['shift']());}}}(_0x30a7,0x3fcf2));var kt=Object[_0x350772(0x14f)],Ht=(_0x36fea1,_0x271928,_0x4f46ca)=>_0x271928 in _0x36fea1?kt(_0x36fea1,_0x271928,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f46ca}):_0x36fea1[_0x271928]=_0x4f46ca,_=(_0x19434d,_0x1995fd,_0x16ab4f)=>Ht(_0x19434d,typeof _0x1995fd!=_0x350772(0x2b9)?_0x1995fd+'':_0x1995fd,_0x16ab4f);import{jsx as _0x246fec,jsxs as _0x5a115a}from'react/jsx-runtime';import{CollaborationStatus as _0x180dd3,CollaborationSessionService as _0x13b5b6,CollaborationController as _0x1e6a4e,DataLoaderService as _0x294538,MemberService as _0x52df85,SessionStatus as _0x1c77d0,ILocalCacheService as _0x5c5358,CollaborationUIEventService as _0x9b1590,CollaborationUIEventId as _0x2b9ee3,DocCollaborationEntity as _0xe5876,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3fa50f,getLocalCacheKey as _0x40a77a,LOCAL_CACHE_INTERVAL as _0x1de824,LOCAL_CACHE_INTERVAL_KEY as _0x251a18,UniverCollaborationClientPlugin as _0x39440b,CollaborationSocketService as _0x569b8c,DEFAULT_WS_SESSION_TICKET_URL as _0x4e1a77,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x5e58e4,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0xd8680f,UnitStatus as _0x32ac9a}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x57786a,IUniverInstanceService as _0xbcb279,Inject as _0x1ada69,Injector as _0x37163f,Disposable as _0x2d8b34,createIdentifier as _0x1774d0,ILogService as _0x3d4f4a,ICommandService as _0x5df3ab,Optional as _0x38f252,RxDisposable as _0x3e95b8,Workbook as _0xda32c5,DOC_RANGE_TYPE as _0x1fab1a,debounce as _0x54c55d,Rectangle as _0x5acc85,DisposableCollection as _0x182a59,toDisposable as _0x296cd2,UniverInstanceType as _0x2ebb81,generateRandomId as _0x43b449,COLORS as _0x1b0abb,ColorKit as _0x1e2ad1,ThemeService as _0x3617fd,fromEventSubject as _0x2754b0,Tools as _0x2d642b,CommandType as _0x4dffdb,IConfigService as _0x20c298,CanceledError as _0x140840,isFormulaString as _0x1c6988,isFormulaId as _0x392987,ILocalStorageService as _0x48d2fd,DependentOn as _0x418b27,Plugin as _0x47149e,merge as _0x1e3d46,registerDependencies as _0x535a10,mergeOverrideWithDependencies as _0x8250d8,touchDependencies as _0x8549f3}from'@univerjs/core';import{useObservable as _0x416760,useDependency as _0x4af09c,IUIPartsService as _0x5638da,BuiltInUIPart as _0x3c2daa,connectInjector as _0x6134a2,IBeforeCloseService as _0x48b30a,IMessageService as _0x41069b,INotificationService as _0x2b8f27}from'@univerjs/ui';import{BehaviorSubject as _0x1cc040,switchMap as _0x554a5c,of as _0x37bd79,takeUntil as _0x561bd3,debounceTime as _0x4bb6e6,Subject as _0x4e3abd,filter as _0x57538f,merge as _0x42ed05,combineLatest as _0x264ffa,fromEvent as _0x46d8b5,shareReplay as _0x341114,mapTo as _0x477239,distinctUntilChanged as _0x9b68fc}from'rxjs';import{Tooltip as _0x2394d1,clsx as _0x5a546f,MessageType as _0x13949b}from'@univerjs/design';import{forwardRef as _0x56ee26,useRef as _0x83dcd6,createElement as _0x2531c4,useCallback as _0x311ea5}from'react';import{IRemoteInstanceService as _0x5f3fe1}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x20572e,RefRangeService as _0x388961,SetSelectionsOperation as _0x254310,SheetsSelectionsService as _0x51e3a3,EffectRefRangId as _0x216edf,handleIRemoveRow as _0x3e2bf0,handleIRemoveCol as _0x234858,handleMoveRange as _0x557e56,handleInsertRow as _0x3fba3f,handleInsertRangeMoveRight as _0xfc5eb2,handleInsertRangeMoveDown as _0x4f512d,handleInsertCol as _0x49dcc1,handleDeleteRangeMoveUp as _0x437356,handleDeleteRangeMoveLeft as _0x49e285,runRefRangeMutations as _0x10f8a1}from'@univerjs/sheets';import{Shape as _0x316be7,Rect as _0x154153,getColor as _0x4740de,RegularPolygon as _0x5f4a89,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x239e83,Vector2 as _0x53f9d6,SHEET_VIEWPORT_KEY as _0x3d904a,IRenderManagerService as _0xef866a}from'@univerjs/engine-render';import{HTTPService as _0x1def6f,ISocketService as _0x51a87f,WebSocketService as _0x5c837c}from'@univerjs/network';import{IDocClipboardService as _0x426fd6,NodePositionConvertToCursor as _0x23b453,NodePositionConvertToRectRange as _0x4c81a5,TEXT_RANGE_LAYER_INDEX as _0x3d216c,SetDocZoomRatioOperation as _0x49cb7f,DocIMEInputManagerService as _0x10bdfa,DocStateChangeManagerService as _0x25d3bb}from'@univerjs/docs-ui';import{IImageIoService as _0x43cd35}from'@univerjs/drawing';import{ITransformService as _0x3f4e3f,CollaborationEvent as _0x29b382,isTransformMutationFailure as _0x456676,isTransformMutationsWithChangesetSuccess as _0x1d6d36,RevisionService as _0x18b0c3,ISnapshotServerService as _0x5de3db}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x309f97,RichTextEditingMutation as _0x4778c0,DocSelectionManagerService as _0x47440a,DocSkeletonManagerService as _0x107acb}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x4ca388,serializeRangeWithSheet as _0x247e4f,FormulaExecuteStageType as _0x33c948,FormulaExecutedStateType as _0x323fe9,SetFormulaCalculationStartMutation as _0x17319b,SetFormulaCalculationNotificationMutation as _0x37a5a7}from'@univerjs/engine-formula';import{map as _0x273082,filter as _0x564fd5,throttleTime as _0xe18dca,takeUntil as _0x140ecf,switchMap as _0xa0b962}from'rxjs/operators';import{SheetSkeletonManagerService as _0x301028,getCoordByCell as _0x26559f,getSheetObject as _0x15f05b}from'@univerjs/sheets-ui';var g=function(){const _0x1df082=_0x350772;return g=Object[_0x1df082(0x2d4)]||function(_0x4332ab){const _0x2a0e78=_0x1df082;for(var _0x5893f5,_0x2d87d4=0x1,_0x2a8600=arguments[_0x2a0e78(0x2e6)];_0x2d87d4<_0x2a8600;_0x2d87d4++){_0x5893f5=arguments[_0x2d87d4];for(var _0xa7dfa8 in _0x5893f5)Object[_0x2a0e78(0x13b)][_0x2a0e78(0x245)][_0x2a0e78(0x2a7)](_0x5893f5,_0xa7dfa8)&&(_0x4332ab[_0xa7dfa8]=_0x5893f5[_0xa7dfa8]);}return _0x4332ab;},g[_0x1df082(0x294)](this,arguments);},Ii=function(_0x214918,_0x4132cc){const _0x12c8d2=_0x350772;var _0x18b8f5={};for(var _0x140bd0 in _0x214918)Object[_0x12c8d2(0x13b)][_0x12c8d2(0x245)][_0x12c8d2(0x2a7)](_0x214918,_0x140bd0)&&_0x4132cc[_0x12c8d2(0x1a3)](_0x140bd0)<0x0&&(_0x18b8f5[_0x140bd0]=_0x214918[_0x140bd0]);if(_0x214918!=null&&typeof Object[_0x12c8d2(0x2ae)]==_0x12c8d2(0x1ae)){for(var _0x1931f4=0x0,_0x140bd0=Object['getOwnPropertySymbols'](_0x214918);_0x1931f4<_0x140bd0[_0x12c8d2(0x2e6)];_0x1931f4++)_0x4132cc['indexOf'](_0x140bd0[_0x1931f4])<0x0&&Object[_0x12c8d2(0x13b)][_0x12c8d2(0x110)][_0x12c8d2(0x2a7)](_0x214918,_0x140bd0[_0x1931f4])&&(_0x18b8f5[_0x140bd0[_0x1931f4]]=_0x214918[_0x140bd0[_0x1931f4]]);}return _0x18b8f5;},Xe=_0x56ee26(function(_0x46b47e,_0xf4ab0d){const _0x296b9e=_0x350772;var _0x1c98d4=_0x46b47e['icon'],_0x4239dd=_0x46b47e['id'],_0x1490e6=_0x46b47e['className'],_0x204072=_0x46b47e[_0x296b9e(0x23a)],_0x3565f0=Ii(_0x46b47e,['icon','id',_0x296b9e(0x1f0),_0x296b9e(0x23a)]),_0x9c36c=_0x296b9e(0xca)[_0x296b9e(0x1b0)](_0x4239dd,'\x20')[_0x296b9e(0x1b0)](_0x1490e6||'')[_0x296b9e(0x11c)](),_0xc84274=_0x83dcd6('_'[_0x296b9e(0x1b0)](Ei()));return Lt(_0x1c98d4,''[_0x296b9e(0x1b0)](_0x4239dd),{'defIds':_0x1c98d4[_0x296b9e(0x1c0)],'idSuffix':_0xc84274['current']},g({'ref':_0xf4ab0d,'className':_0x9c36c},_0x3565f0),_0x204072);});function Lt(_0x580c4a,_0x497fde,_0x1aa7b0,_0x5f3095,_0x393546){const _0x317bbb=_0x350772;return _0x2531c4(_0x580c4a[_0x317bbb(0x127)],g(g({'key':_0x497fde},gi(_0x580c4a,_0x1aa7b0,_0x393546)),_0x5f3095),(vi(_0x580c4a,_0x1aa7b0)[_0x317bbb(0xe0)]||[])[_0x317bbb(0xba)](function(_0x29ba9f,_0x5a4ca0){const _0x1a3ce8=_0x317bbb;return Lt(_0x29ba9f,''[_0x1a3ce8(0x1b0)](_0x497fde,'-')['concat'](_0x580c4a['tag'],'-')[_0x1a3ce8(0x1b0)](_0x5a4ca0),_0x1aa7b0,void 0x0,_0x393546);}));}function gi(_0x4cce85,_0x5f1a27,_0x23dfc3){const _0x599560=_0x350772;var _0x5c6555=g({},_0x4cce85[_0x599560(0x25e)]);_0x23dfc3!=null&&_0x23dfc3['colorChannel1']&&_0x5c6555[_0x599560(0xd9)]==='colorChannel1'&&(_0x5c6555[_0x599560(0xd9)]=_0x23dfc3[_0x599560(0x178)]),_0x4cce85[_0x599560(0x127)]===_0x599560(0x27b)&&_0x5c6555['id']&&(_0x5c6555['id']=_0x5c6555['id']+_0x5f1a27['idSuffix']),Object[_0x599560(0x219)](_0x5c6555)[_0x599560(0x237)](function(_0x368c6c){const _0x2b4066=_0x599560;var _0x32993a=_0x368c6c[0x0],_0x383079=_0x368c6c[0x1];_0x32993a===_0x2b4066(0x27b)&&typeof _0x383079==_0x2b4066(0xa4)&&(_0x5c6555[_0x32993a]=_0x383079[_0x2b4066(0xe3)](/url\(#(.*)\)/,'url(#$1'[_0x2b4066(0x1b0)](_0x5f1a27[_0x2b4066(0xc9)],')')));});var _0x9c3763=_0x5f1a27[_0x599560(0x1c0)];return!_0x9c3763||_0x9c3763[_0x599560(0x2e6)]===0x0||(_0x4cce85[_0x599560(0x127)]===_0x599560(0x12f)&&_0x5c6555['xlink:href']&&(_0x5c6555[_0x599560(0x276)]=_0x5c6555['xlink:href']+_0x5f1a27['idSuffix']),Object['entries'](_0x5c6555)[_0x599560(0x237)](function(_0x46d50a){const _0x135809=_0x599560;var _0x117559=_0x46d50a[0x0],_0x16c2d9=_0x46d50a[0x1];typeof _0x16c2d9==_0x135809(0xa4)&&(_0x5c6555[_0x117559]=_0x16c2d9['replace'](/url\(#(.*)\)/,_0x135809(0x2b3)[_0x135809(0x1b0)](_0x5f1a27['idSuffix'],')')));})),_0x5c6555;}function vi(_0x3ea0dd,_0x1037ce){const _0x10f6b5=_0x350772;var _0xcae98,_0x5356d0=_0x1037ce[_0x10f6b5(0x1c0)];return!_0x5356d0||_0x5356d0['length']===0x0?_0x3ea0dd:_0x3ea0dd[_0x10f6b5(0x127)]===_0x10f6b5(0x27d)&&(!((_0xcae98=_0x3ea0dd[_0x10f6b5(0xe0)])===null||_0xcae98===void 0x0)&&_0xcae98['length'])?g(g({},_0x3ea0dd),{'children':_0x3ea0dd[_0x10f6b5(0xe0)][_0x10f6b5(0xba)](function(_0x2eafcb){const _0x22ac94=_0x10f6b5;return typeof _0x2eafcb[_0x22ac94(0x25e)]['id']==_0x22ac94(0xa4)&&_0x5356d0&&_0x5356d0[_0x22ac94(0x16d)](_0x2eafcb['attrs']['id'])?g(g({},_0x2eafcb),{'attrs':g(g({},_0x2eafcb['attrs']),{'id':_0x2eafcb['attrs']['id']+_0x1037ce[_0x22ac94(0xc9)]})}):_0x2eafcb;})}):_0x3ea0dd;}function Ei(){const _0x3359c=_0x350772;return Math[_0x3359c(0x1e7)]()[_0x3359c(0x207)](0x24)[_0x3359c(0x137)](0x2,0x8);}Xe[_0x350772(0x151)]=_0x350772(0x1d9);var pi={'tag':'svg','attrs':{'xmlns':_0x350772(0x1cd),'fill':_0x350772(0x106),'viewBox':_0x350772(0x21e),'width':_0x350772(0x22b),'height':_0x350772(0x22b)},'children':[{'tag':'g','attrs':{'clipPath':_0x350772(0x27a)},'children':[{'tag':'path','attrs':{'stroke':_0x350772(0x2b4),'d':_0x350772(0xdf),'strokeLinecap':_0x350772(0x1ac),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x350772(0x27d),'attrs':{},'children':[{'tag':_0x350772(0x2d5),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x350772(0x1b3)}}]}]}],'defIds':[_0x350772(0xed)]},Mt=_0x56ee26(function(_0x86893a,_0x9d2c9){const _0x55a2c0=_0x350772;return _0x2531c4(Xe,Object[_0x55a2c0(0x2d4)]({},_0x86893a,{'id':_0x55a2c0(0xad),'ref':_0x9d2c9,'icon':pi}));});Mt[_0x350772(0x151)]='OffLineIcon';var Oi={'tag':_0x350772(0x12e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x350772(0x106),'viewBox':'0\x200\x2017\x2016','width':_0x350772(0x22b),'height':_0x350772(0x22b)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x350772(0x2c7),'attrs':{'stroke':_0x350772(0x2b4),'d':_0x350772(0x16f),'strokeLinecap':_0x350772(0x1ac),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x350772(0x27d),'attrs':{},'children':[{'tag':_0x350772(0x2d5),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x350772(0x1d0),'d':_0x350772(0x1b3),'transform':_0x350772(0x1ad)}}]}]}],'defIds':[_0x350772(0x163)]},At=_0x56ee26(function(_0xcb49a7,_0x125513){const _0x48b73d=_0x350772;return _0x2531c4(Xe,Object[_0x48b73d(0x2d4)]({},_0xcb49a7,{'id':_0x48b73d(0x2e0),'ref':_0x125513,'icon':Oi}));});At[_0x350772(0x151)]='OnLineIcon';function Ti(_0x3e511b){const _0x3b0c62=_0x350772;switch(_0x3e511b){case _0x180dd3[_0x3b0c62(0x234)]:return _0x3b0c62(0x287);case _0x180dd3[_0x3b0c62(0x2af)]:return _0x3b0c62(0x1f4);case _0x180dd3[_0x3b0c62(0x1ef)]:return'collabStatus.fetchMiss';case _0x180dd3[_0x3b0c62(0x2b5)]:return'collabStatus.notCollab';case _0x180dd3[_0x3b0c62(0xd8)]:case _0x180dd3[_0x3b0c62(0x14e)]:return'collabStatus.syncing';case _0x180dd3[_0x3b0c62(0x1e3)]:case _0x180dd3[_0x3b0c62(0xcc)]:return'collabStatus.synced';}}function Ci(_0x454c74){const _0x3980ed=_0x350772,{status$:_0x4de2eb}=_0x454c74,_0x3b17ee=_0x416760(_0x4de2eb,_0x180dd3[_0x3980ed(0x2b5)]),_0x48b930=_0x4af09c(_0x57786a),_0x335447=_0x4af09c(_0x13b5b6),_0xf16aa0=_0x3b17ee!==_0x180dd3[_0x3980ed(0x234)],_0x5ee512=_0x48b930['t'](Ti(_0x3b17ee)),_0x542a52=_0xf16aa0?_0x246fec(At,{}):_0x246fec(Mt,{}),_0x230419=_0x311ea5(()=>{const _0x1b5ce8=_0x3980ed;_0xf16aa0||_0x335447[_0x1b5ce8(0x199)]();},[_0xf16aa0,_0x335447]);function _0x397100(){const _0xe71412=_0x3980ed;return _0x5a115a('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x230419,'children':[_0x246fec(_0xe71412(0x22e),{'className':_0x5a546f('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0xf16aa0,'univer-text-red-500':!_0xf16aa0}),'children':_0x542a52}),_0x246fec(_0xe71412(0x22e),{'className':_0xe71412(0x11d),'children':_0x5ee512})]});}return _0xf16aa0?_0x397100():_0x246fec(_0x2394d1,{'title':_0x48b930['t']('collab-client.tooltip.reconnect'),'children':_0x397100()});}var Ri=Object['getOwnPropertyDescriptor'],Di=(_0xd8bb98,_0x41bfe1,_0x2d7181,_0x5f09cd)=>{for(var _0x93c26=_0x5f09cd>0x1?void 0x0:_0x5f09cd?Ri(_0x41bfe1,_0x2d7181):_0x41bfe1,_0x276649=_0xd8bb98['length']-0x1,_0x3bc00c;_0x276649>=0x0;_0x276649--)(_0x3bc00c=_0xd8bb98[_0x276649])&&(_0x93c26=_0x3bc00c(_0x93c26)||_0x93c26);return _0x93c26;},ie=(_0x39fdb7,_0x4eb065)=>(_0xe65408,_0x2b09bd)=>_0x4eb065(_0xe65408,_0x2b09bd,_0x39fdb7);let ae=class extends _0x2d8b34{constructor(_0x3de38f,_0x5c596a,_0x5599c3,_0x14e387){const _0x2a6cd8=_0x350772;super(),_(this,'_status$',new _0x1cc040(_0x180dd3['NOT_COLLAB'])),(this[_0x2a6cd8(0x1b6)]=_0x3de38f,this['_injector']=_0x5c596a,this[_0x2a6cd8(0x2c3)]=_0x5599c3,this[_0x2a6cd8(0x2a3)]=_0x14e387,this[_0x2a6cd8(0xa1)](),this['_initStatusListener']());}[_0x350772(0x24f)](){const _0x41f0e6=_0x350772;this[_0x41f0e6(0x222)](this[_0x41f0e6(0x1b6)][_0x41f0e6(0x212)][_0x41f0e6(0xcb)](_0x554a5c(()=>{const _0x25431f=_0x41f0e6,_0x5d1cd3=this[_0x25431f(0x1b6)]['getFocusedUnit']();return _0x5d1cd3?this[_0x25431f(0x2c3)][_0x25431f(0x182)](_0x5d1cd3[_0x25431f(0x25a)]()):_0x37bd79(null);}),_0x554a5c(_0x79d068=>_0x79d068?_0x79d068[_0x41f0e6(0x14b)]:_0x37bd79(_0x180dd3[_0x41f0e6(0x2b5)])))[_0x41f0e6(0x28a)](_0x59a917=>{const _0x34cb54=_0x41f0e6;this[_0x34cb54(0xea)]['next'](_0x59a917);}));}[_0x350772(0xa1)](){const _0x5b98be=_0x350772;this[_0x5b98be(0x222)](this[_0x5b98be(0x2a3)][_0x5b98be(0xa7)](_0x3c2daa[_0x5b98be(0x205)],()=>_0x6134a2(bi({'status$':this[_0x5b98be(0xea)]['asObservable']()}),this[_0x5b98be(0x12a)])));}};ae=Di([ie(0x0,_0xbcb279),ie(0x1,_0x1ada69(_0x37163f)),ie(0x2,_0x1ada69(_0x1e6a4e)),ie(0x3,_0x5638da)],ae);function bi(_0xd3ba45){const {status$:_0x877af6}=_0xd3ba45;return function(){return _0x246fec(Ci,{'status$':_0x877af6});};}const Pt=_0x1774d0('uni.network.url-service');var Ni=Object[_0x350772(0x2c2)],Ui=(_0x41f02f,_0x1071f4,_0x167760,_0x58d1ac)=>{const _0x1eced8=_0x350772;for(var _0x4ba021=_0x58d1ac>0x1?void 0x0:_0x58d1ac?Ni(_0x1071f4,_0x167760):_0x1071f4,_0x2cd29d=_0x41f02f[_0x1eced8(0x2e6)]-0x1,_0x179c92;_0x2cd29d>=0x0;_0x2cd29d--)(_0x179c92=_0x41f02f[_0x2cd29d])&&(_0x4ba021=_0x179c92(_0x4ba021)||_0x4ba021);return _0x4ba021;},z=(_0xc4ada3,_0x2454b1)=>(_0x4e2dcc,_0x3007f3)=>_0x2454b1(_0x4e2dcc,_0x3007f3,_0xc4ada3);let ce=class extends _0x3e95b8{constructor(_0x47b0cd,_0x406534,_0x304579,_0x24e3fe,_0x3d0e6a){const _0x30fc7b=_0x350772;super(),this[_0x30fc7b(0xbf)]=_0x47b0cd,this[_0x30fc7b(0x1cf)]=_0x406534,this[_0x30fc7b(0xe1)]=_0x304579,this[_0x30fc7b(0x230)]=_0x24e3fe,_0x3d0e6a?_0x3d0e6a==null||_0x3d0e6a[_0x30fc7b(0x165)]()[_0x30fc7b(0x1e9)](()=>this[_0x30fc7b(0x2e4)]()):(this['_logService'][_0x30fc7b(0x2ca)](_0x30fc7b(0x1a8),_0x30fc7b(0x1c9)),this[_0x30fc7b(0x2e4)]());}async[_0x350772(0x2e4)](){const _0x5adb78=_0x350772,_0xb19594=this[_0x5adb78(0xbf)][_0x5adb78(0x1d7)](_0x5adb78(0x298)),_0x46ef2d=this[_0x5adb78(0xbf)][_0x5adb78(0x1d7)](_0x5adb78(0xbd)),_0x17ded5=this[_0x5adb78(0xbf)][_0x5adb78(0x1d7)](_0x5adb78(0x268));if(!_0xb19594||!_0x46ef2d){this[_0x5adb78(0x1cf)][_0x5adb78(0x2ca)](_0x5adb78(0x1a8),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0xca352e=await this['_dataLoaderService'][_0x5adb78(0xef)](_0xb19594,Number(_0x46ef2d),_0x17ded5);_0xca352e&&_0xca352e instanceof _0xda32c5&&this[_0x5adb78(0x10f)](_0xca352e);}async['_setupSubUnitSync'](_0x56e315){const _0x19ee9c=_0x350772;await this[_0x19ee9c(0x115)](_0x56e315),_0x56e315[_0x19ee9c(0x2db)][_0x19ee9c(0xcb)](_0x561bd3(this[_0x19ee9c(0xa8)]))[_0x19ee9c(0x28a)](_0x4279be=>{_0x4279be&&this['_updateURLWithCurrentState'](_0x4279be);}),this['_urlService'][_0x19ee9c(0x26e)][_0x19ee9c(0xcb)](_0x561bd3(this[_0x19ee9c(0xa8)]))[_0x19ee9c(0x28a)](()=>this['_updateSubUnitFromURLParams'](_0x56e315));}['_updateURLWithCurrentState'](_0x16f1d2,_0x1b48c9=!0x1){const _0x476982=_0x350772,_0x4e9401=this[_0x476982(0xbf)]['getParam']('subunit');_0x16f1d2[_0x476982(0xbb)]()!==_0x4e9401&&this[_0x476982(0xbf)][_0x476982(0x117)](_0x476982(0x268),_0x16f1d2[_0x476982(0xbb)](),_0x1b48c9);}async['_updateSubUnitFromURLParams'](_0x1e8676){const _0x3fe9ae=_0x350772;var _0x48f2e3;const _0x4107e7=this[_0x3fe9ae(0xbf)][_0x3fe9ae(0x1d7)](_0x3fe9ae(0x268));if(!_0x4107e7||!_0x1e8676[_0x3fe9ae(0x232)](_0x4107e7)){const _0x4ca4d4=_0x1e8676[_0x3fe9ae(0x2b6)]()[0x0],_0x3eb30b=_0x1e8676[_0x3fe9ae(0x232)](_0x4ca4d4);if(!_0x3eb30b)return;this[_0x3fe9ae(0x1e1)](_0x3eb30b,!0x0),await this[_0x3fe9ae(0xe1)][_0x3fe9ae(0xa0)](_0x20572e['id'],{'unitId':_0x1e8676[_0x3fe9ae(0x25a)](),'subUnitId':_0x4ca4d4});return;}((_0x48f2e3=_0x1e8676[_0x3fe9ae(0x1bc)]())==null?void 0x0:_0x48f2e3[_0x3fe9ae(0xbb)]())!==_0x4107e7&&await this['_commandService'][_0x3fe9ae(0xa0)](_0x20572e['id'],{'unitId':_0x1e8676[_0x3fe9ae(0x25a)](),'subUnitId':_0x4107e7});}};ce=Ui([z(0x0,Pt),z(0x1,_0x3d4f4a),z(0x2,_0x5df3ab),z(0x3,_0x1ada69(_0x294538)),z(0x4,_0x38f252(_0x5f3fe1))],ce);var Li=Object[_0x350772(0x2c2)],Mi=(_0x2aceb1,_0x33c42f,_0x2f2541,_0x13a441)=>{const _0x52f41e=_0x350772;for(var _0x4724d1=_0x13a441>0x1?void 0x0:_0x13a441?Li(_0x33c42f,_0x2f2541):_0x33c42f,_0xf3a6e2=_0x2aceb1[_0x52f41e(0x2e6)]-0x1,_0x19266e;_0xf3a6e2>=0x0;_0xf3a6e2--)(_0x19266e=_0x2aceb1[_0xf3a6e2])&&(_0x4724d1=_0x19266e(_0x4724d1)||_0x4724d1);return _0x4724d1;},it=(_0x50ff52,_0x16f242)=>(_0x1473ca,_0x4cf395)=>_0x16f242(_0x1473ca,_0x4cf395,_0x50ff52);let Pe=class extends _0x3e95b8{constructor(_0x219c44,_0x3c913a){const _0x4ccff1=_0x350772;super(),this[_0x4ccff1(0x11e)]=_0x219c44,this[_0x4ccff1(0x236)]=_0x3c913a,this[_0x4ccff1(0x2e4)]();}['_init'](){const _0x12b8bc=_0x350772,_0x3a58c2=this;this[_0x12b8bc(0x222)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x1619ae=>{const _0x5e96a2=_0x12b8bc,_0x5426d1=await _0x3a58c2[_0x5e96a2(0x236)][_0x5e96a2(0x1a0)](_0x1619ae);return _0x5426d1?{'source':_0x5426d1[_0x5e96a2(0x113)],'imageSourceType':_0x5426d1[_0x5e96a2(0x101)]}:null;}}));}};Pe=Mi([it(0x0,_0x426fd6),it(0x1,_0x43cd35)],Pe);const nt=['purple.300','jiqing.500',_0x350772(0x2a2),'red.300',_0x350772(0x1d4),_0x350772(0x17e)];class Ge extends _0x2d8b34{constructor(){const _0x5f4c03=_0x350772;super(...arguments),_(this,_0x5f4c03(0x1af),new Map()),_(this,'_colorIndex',0x0);}[_0x350772(0x251)](_0x33ddb3){const _0x333ec0=_0x350772;if(this[_0x333ec0(0x1af)]['has'](_0x33ddb3))return this[_0x333ec0(0x1af)][_0x333ec0(0xc6)](_0x33ddb3);const _0x39409f=nt[this[_0x333ec0(0x1b2)]];return this[_0x333ec0(0x1b2)]=(this[_0x333ec0(0x1b2)]+0x1)%nt[_0x333ec0(0x2e6)],this[_0x333ec0(0x1af)][_0x333ec0(0x279)](_0x33ddb3,_0x39409f),_0x39409f;}}function wt(_0x1998c3){const _0x408f8c=_0x350772;let _0xdbb92a='';for(const _0x1c06e6 of _0x1998c3){const {startOffset:_0x10ad2a,endOffset:_0x351acf,isActive:_0x5abfb5,rangeType:_0x341e00,segmentId:_0x14e1b7,segmentPage:_0x192db6}=_0x1c06e6;_0xdbb92a[_0x408f8c(0x2e6)]&&(_0xdbb92a+=','),_0xdbb92a+=_0x10ad2a+':'+_0x351acf+':'+(_0x5abfb5?'1':'0')+':'+_0x341e00+':'+_0x14e1b7+':'+_0x192db6;}return _0xdbb92a;}function Ai(_0x459f81){const _0x1d7c9a=_0x350772,_0x2428be=_0x459f81[_0x1d7c9a(0x201)](','),_0x235344=[];for(const _0x3177bc of _0x2428be){const [_0x30ddf6,_0x1c6d4d,_0x2125d0,_0x561ccc,_0xb01d79,_0x1f52e9]=_0x3177bc[_0x1d7c9a(0x201)](':');_0x235344['push']({'startOffset':Number(_0x30ddf6),'endOffset':Number(_0x1c6d4d),'collapsed':_0x30ddf6===_0x1c6d4d,'isActive':_0x2125d0==='1','rangeType':_0x561ccc===_0x1fab1a[_0x1d7c9a(0x124)]?_0x1fab1a[_0x1d7c9a(0x124)]:_0x1fab1a[_0x1d7c9a(0x120)],'segmentId':typeof _0xb01d79==_0x1d7c9a(0xa4)?String(_0xb01d79):'','segmentPage':Number(_0x1f52e9!=null?_0x1f52e9:-0x1)});}return _0x235344['some'](_0x4c5887=>_0x4c5887[_0x1d7c9a(0xb5)])||(_0x235344[0x0][_0x1d7c9a(0xb5)]=!0x0),_0x235344;}class Ke extends _0x3e95b8{constructor(){const _0x429fae=_0x350772;super(...arguments),_(this,'_collabCursorState$',new _0x1cc040(null)),_(this,'collabCursorState$',this[_0x429fae(0x1b8)]['asObservable']());}[_0x350772(0xc1)](_0x7b3117){const _0x5cf143=_0x350772,{unitID:_0x4cac3f,memberID:_0x1b4adb,textRanges:_0x540b52}=_0x7b3117,_0x1f7193=wt(_0x540b52);if(_0x1f7193==='')return;const _0x2a1f8f={'unitID':_0x4cac3f,'memberID':_0x1b4adb,'selection':_0x1f7193};this[_0x5cf143(0x1b8)][_0x5cf143(0x1c2)](_0x2a1f8f);}}var Pi=Object[_0x350772(0x2c2)],wi=(_0x132612,_0x1f79d7,_0x6f04b3,_0x11a228)=>{for(var _0x5cc152=_0x11a228>0x1?void 0x0:_0x11a228?Pi(_0x1f79d7,_0x6f04b3):_0x1f79d7,_0x48d7fc=_0x132612['length']-0x1,_0x3c472a;_0x48d7fc>=0x0;_0x48d7fc--)(_0x3c472a=_0x132612[_0x48d7fc])&&(_0x5cc152=_0x3c472a(_0x5cc152)||_0x5cc152);return _0x5cc152;},P=(_0x3adb7d,_0x3fb4ba)=>(_0x5dc807,_0x2f06a4)=>_0x3fb4ba(_0x5dc807,_0x2f06a4,_0x3adb7d);const yi=0x12c,$i=0x64;let we=class extends _0x3e95b8{constructor(_0x29c984,_0x204e42,_0x1b3795,_0x43ac95,_0x150a2e,_0x1d34a2,_0x8e0b9e,_0x4af583,_0x3a0d4f){const _0x48979=_0x350772;super(),_(this,_0x48979(0x12d),!0x1),_(this,_0x48979(0x2e4),!0x1),_(this,_0x48979(0x263),new _0x1cc040(new Map())),_(this,_0x48979(0x1fc),this['_cursorInfo$'][_0x48979(0x14a)]()),_(this,'_roomMembers$',new _0x1cc040([])),_(this,'roomMembers$',this['_roomMembers$'][_0x48979(0xcb)](_0x4bb6e6(yi))),_(this,_0x48979(0x1be),_0x54c55d(_0x5ba49d=>{const _0x337b14=_0x48979,_0x285ba8={'eventID':_0x29b382[_0x337b14(0xf2)],'data':{'unitID':this[_0x337b14(0x2cd)],'memberID':this[_0x337b14(0x128)]['getMemberID'](),'selection':wt(_0x5ba49d)}};this['_session']['send'](_0x285ba8,this['unitID']);},$i)),(this[_0x48979(0x2cd)]=_0x29c984,this[_0x48979(0x128)]=_0x204e42,this['_injector']=_0x1b3795,this[_0x48979(0xa6)]=_0x43ac95,this[_0x48979(0x20f)]=_0x150a2e,this[_0x48979(0xe9)]=_0x1d34a2,this[_0x48979(0x2cc)]=_0x8e0b9e,this[_0x48979(0x1b6)]=_0x4af583,this[_0x48979(0xe1)]=_0x3a0d4f);}get['cursorInfo'](){const _0x320885=_0x350772;return this[_0x320885(0x263)][_0x320885(0x10e)]();}get['roomMembers'](){const _0x51baed=_0x350772;return this[_0x51baed(0x15d)][_0x51baed(0x10e)]();}['dispose'](){const _0x3dc310=_0x350772;super[_0x3dc310(0x1e0)](),this['_cursorInfo$']['next'](new Map()),this[_0x3dc310(0x263)][_0x3dc310(0x156)](),this[_0x3dc310(0x15d)][_0x3dc310(0x1c2)]([]),this[_0x3dc310(0x15d)][_0x3dc310(0x156)]();}[_0x350772(0x1c6)](){const _0x21992f=_0x350772;this[_0x21992f(0x2e4)]||(this[_0x21992f(0x2e4)]=!0x0,this[_0x21992f(0x128)]['sessionStatus$'][_0x21992f(0xcb)](_0x561bd3(this['dispose$']))['subscribe'](_0x3ac95d=>{const _0x572956=_0x21992f;_0x3ac95d===_0x1c77d0[_0x572956(0x125)]?this['_toggleOnline']():this[_0x572956(0x1a5)]();}),this[_0x21992f(0x128)][_0x21992f(0x1b9)][_0x21992f(0xcb)](_0x561bd3(this[_0x21992f(0xa8)]))[_0x21992f(0x28a)](_0xc5b2cc=>{const _0x3218eb=_0x21992f,_0x1f9292=_0xc5b2cc[_0x3218eb(0x21b)];_0x1f9292===_0x29b382[_0x3218eb(0xf2)]&&this[_0x3218eb(0xe4)](_0xc5b2cc),_0x1f9292===_0x29b382[_0x3218eb(0x1fa)]&&this[_0x3218eb(0x11a)](_0xc5b2cc);}),this[_0x21992f(0x222)](this[_0x21992f(0xe1)]['onCommandExecuted'](_0x4e146=>{const _0x580730=_0x21992f,_0x298a8b=_0x4e146[_0x580730(0x22f)];_0x298a8b!=null&&this[_0x580730(0x12d)]&&_0x4e146['id']===_0x309f97['id']&&_0x298a8b[_0x580730(0x154)]===this['unitID']&&_0x298a8b['isEditing']===!0x1&&_0x298a8b['ranges']['length']>0x0&&this[_0x580730(0x1be)](_0x298a8b[_0x580730(0x112)]);})),this[_0x21992f(0xe9)][_0x21992f(0x29b)][_0x21992f(0xcb)](_0x561bd3(this['dispose$']))['subscribe'](_0x53e7a2=>{const _0x47829f=_0x21992f;if((_0x53e7a2==null?void 0x0:_0x53e7a2[_0x47829f(0x2cd)])!==this[_0x47829f(0x2cd)])return;const _0x398fd3={'eventID':_0x29b382[_0x47829f(0xf2)],'data':_0x53e7a2};this[_0x47829f(0xe4)](_0x398fd3);}),this[_0x21992f(0x222)](this[_0x21992f(0xe1)][_0x21992f(0x162)](_0x4390b4=>{const _0x45d795=_0x21992f;if(_0x4390b4['params']==null)return;const _0x497fe1=_0x4390b4[_0x45d795(0x22f)];if(_0x4390b4['id']!==_0x4778c0['id']||_0x497fe1['unitId']!==this[_0x45d795(0x2cd)])return;const _0x8bb512={'id':_0x45d795(0xe8),'params':_0x497fe1},_0x558a60=this[_0x45d795(0x2cf)];for(const [_0x30f1c9,_0x134545]of _0x558a60){const _0x30742a={'id':_0x45d795(0xe8),'params':{'unitId':this[_0x45d795(0x2cd)],'actions':null,'textRanges':_0x134545['ranges']}},_0x5374a1=this[_0x45d795(0x2cc)][_0x45d795(0x280)](_0x8bb512,_0x30742a,!0x1);if(_0x456676(_0x5374a1))throw _0x5374a1[_0x45d795(0x246)];_0x558a60[_0x45d795(0x279)](_0x30f1c9,{..._0x134545,'ranges':_0x5374a1['m2Prime'][_0x45d795(0x22f)][_0x45d795(0x102)]});}queueMicrotask(()=>{const _0x4a7157=_0x45d795;this['_cursorInfo$'][_0x4a7157(0x1c2)](_0x558a60);});})));}[_0x350772(0xe4)](_0x336718){const _0xd05263=_0x350772;var _0x5b6daa,_0x565101;const {memberID:_0x2d8ad7,selection:_0x599720}=_0x336718[_0xd05263(0x223)],_0x18aebf=Ai(_0x599720),_0x2c0fab=(_0x565101=(_0x5b6daa=this[_0xd05263(0x20f)]['getMember'](this[_0xd05263(0x2cd)],_0x2d8ad7))==null?void 0x0:_0x5b6daa[_0xd05263(0x2c1)])!=null?_0x565101:_0xd05263(0xa2),_0x4a37c7={'color':this['_colorAssignService'][_0xd05263(0x251)](_0x2d8ad7),'name':_0x2c0fab,'ranges':_0x18aebf},_0x31ca7b=this[_0xd05263(0x2cf)];_0x31ca7b[_0xd05263(0x279)](_0x2d8ad7,_0x4a37c7),this[_0xd05263(0x263)]['next'](_0x31ca7b);}['_onCursorDelete'](_0x335974){const _0x926b36=_0x350772,{memberID:_0x18d175}=_0x335974[_0x926b36(0x223)],_0x47ef29=this['cursorInfo'];_0x47ef29[_0x926b36(0x218)](_0x18d175),this[_0x926b36(0x263)][_0x926b36(0x1c2)](_0x47ef29);}[_0x350772(0x1a6)](){const _0xe24672=_0x350772;var _0x118962;if(this[_0xe24672(0x12d)]=!0x0,((_0x118962=this[_0xe24672(0x1b6)][_0xe24672(0x15f)]())==null?void 0x0:_0x118962[_0xe24672(0x25a)]())!==this[_0xe24672(0x2cd)])return;const _0x3b4bdb=this[_0xe24672(0x12a)][_0xe24672(0xc6)](_0x47440a)['getDocRanges']();Array['isArray'](_0x3b4bdb)&&_0x3b4bdb[_0xe24672(0x2e6)]>0x0&&this[_0xe24672(0x1be)](_0x3b4bdb);}[_0x350772(0x1a5)](){const _0x404294=_0x350772;this[_0x404294(0x12d)]=!0x1;}};we=wi([P(0x2,_0x1ada69(_0x37163f)),P(0x3,_0x1ada69(Ge)),P(0x4,_0x1ada69(_0x52df85)),P(0x5,_0x1ada69(Ke)),P(0x6,_0x3f4e3f),P(0x7,_0xbcb279),P(0x8,_0x5df3ab)],we);var xi=Object[_0x350772(0x2c2)],Bi=(_0x49f80d,_0x518a5c,_0x41925d,_0x5f907c)=>{for(var _0x44022b=_0x5f907c>0x1?void 0x0:_0x5f907c?xi(_0x518a5c,_0x41925d):_0x518a5c,_0x49cd26=_0x49f80d['length']-0x1,_0x3eacac;_0x49cd26>=0x0;_0x49cd26--)(_0x3eacac=_0x49f80d[_0x49cd26])&&(_0x44022b=_0x3eacac(_0x44022b)||_0x44022b);return _0x44022b;},F=(_0x32f87c,_0xde69eb)=>(_0x386c83,_0x3aa8ef)=>_0xde69eb(_0x386c83,_0x3aa8ef,_0x32f87c);const Fi=0x12c,ki=0x64,Hi=()=>{let _0x55725a=[],_0x7e7f54=!0x1;return _0x332625=>{const _0x1814b8=_0x2f90;_0x55725a[_0x1814b8(0x25d)](_0x332625),_0x7e7f54||(_0x7e7f54=!0x0,setTimeout(()=>{const _0x4a6378=_0x1814b8;_0x55725a[_0x4a6378(0x237)](_0x3b1411=>_0x3b1411()),_0x55725a=[],_0x7e7f54=!0x1;}));};};let ye=class extends _0x3e95b8{constructor(_0x2408b3,_0x1112a6,_0x202157,_0x1279de,_0x2694ee,_0x1ac281,_0x1b60f5,_0x5b14bb){const _0x2dcefb=_0x350772;super(),_(this,_0x2dcefb(0x12d),!0x1),_(this,'_init',!0x1),_(this,_0x2dcefb(0x263),new _0x1cc040(new Map())),_(this,'cursorInfo$',this[_0x2dcefb(0x263)][_0x2dcefb(0x14a)]()),_(this,_0x2dcefb(0x15d),new _0x1cc040([])),_(this,'roomMembers$',this[_0x2dcefb(0x15d)]['pipe'](_0x4bb6e6(Fi))),_(this,_0x2dcefb(0x1be),_0x54c55d((_0x3dc373,_0x4cc921)=>{const _0x28ebe1=_0x2dcefb,_0x2d2b73={'eventID':_0x29b382[_0x28ebe1(0xf2)],'data':{'unitID':this[_0x28ebe1(0x2cd)],'memberID':this[_0x28ebe1(0x128)]['getMemberID'](),'selection':_0x247e4f(_0x3dc373,_0x4cc921[_0x28ebe1(0x28c)])}};this[_0x28ebe1(0x128)][_0x28ebe1(0x282)](_0x2d2b73,this[_0x28ebe1(0x2cd)]);},ki)),(this[_0x2dcefb(0x2cd)]=_0x2408b3,this[_0x2dcefb(0x128)]=_0x1112a6,this[_0x2dcefb(0x12a)]=_0x202157,this[_0x2dcefb(0xa6)]=_0x1279de,this[_0x2dcefb(0x20f)]=_0x2694ee,this[_0x2dcefb(0x1b6)]=_0x1ac281,this[_0x2dcefb(0xe1)]=_0x1b60f5,this[_0x2dcefb(0x11b)]=_0x5b14bb);}get[_0x350772(0x2cf)](){const _0x69b776=_0x350772;return this[_0x69b776(0x263)][_0x69b776(0x10e)]();}get['roomMembers'](){const _0x106396=_0x350772;return this[_0x106396(0x15d)][_0x106396(0x10e)]();}['dispose'](){const _0x1d39ff=_0x350772;super['dispose'](),this[_0x1d39ff(0x263)][_0x1d39ff(0x1c2)](new Map()),this[_0x1d39ff(0x263)][_0x1d39ff(0x156)](),this[_0x1d39ff(0x15d)][_0x1d39ff(0x1c2)]([]),this[_0x1d39ff(0x15d)][_0x1d39ff(0x156)]();}['init'](){const _0x37925e=_0x350772;this[_0x37925e(0x2e4)]||(this[_0x37925e(0x2e4)]=!0x0,this[_0x37925e(0x128)][_0x37925e(0x25c)][_0x37925e(0xcb)](_0x561bd3(this[_0x37925e(0xa8)]))[_0x37925e(0x28a)](_0x5ad7af=>{const _0x521cd5=_0x37925e;_0x5ad7af===_0x1c77d0[_0x521cd5(0x125)]?this[_0x521cd5(0x1a6)]():this[_0x521cd5(0x1a5)]();}),this[_0x37925e(0x128)][_0x37925e(0x1b9)][_0x37925e(0xcb)](_0x561bd3(this[_0x37925e(0xa8)]))['subscribe'](_0x1477a2=>{const _0x133a5a=_0x37925e,_0x19edb5=_0x1477a2[_0x133a5a(0x21b)];_0x19edb5===_0x29b382['UPDATE_CURSOR']&&this[_0x133a5a(0xe4)](_0x1477a2),_0x19edb5===_0x29b382[_0x133a5a(0x1fa)]&&this[_0x133a5a(0x11a)](_0x1477a2);}),this[_0x37925e(0xf7)](),this[_0x37925e(0x222)](this['_commandService']['onCommandExecuted'](_0x4fe304=>{const _0x222b6c=_0x37925e;if(this[_0x222b6c(0x12d)]&&_0x4fe304['id']===_0x254310['id']&&_0x4fe304['params'][_0x222b6c(0x154)]===this[_0x222b6c(0x2cd)]){const _0x5b565a=_0x4fe304[_0x222b6c(0x22f)];this[_0x222b6c(0x1be)](_0x5b565a[_0x222b6c(0x291)],_0x5b565a[_0x222b6c(0x158)][0x0]);}})));}[_0x350772(0xe4)](_0x1b32a5){const _0x3cd49c=_0x350772;var _0x5d4abf,_0x24ade9;const {memberID:_0x232c30,selection:_0x564b9a}=_0x1b32a5[_0x3cd49c(0x223)],{sheetName:_0x2f5ab5,range:_0x1bf59b}=_0x4ca388(_0x564b9a),_0x5a92ff={'name':(_0x24ade9=(_0x5d4abf=this[_0x3cd49c(0x20f)][_0x3cd49c(0x1ec)](this[_0x3cd49c(0x2cd)],_0x232c30))==null?void 0x0:_0x5d4abf[_0x3cd49c(0x2c1)])!=null?_0x24ade9:_0x3cd49c(0xa2),'range':this['_getMergeRange'](_0x2f5ab5,_0x1bf59b),'sheetID':_0x2f5ab5,'color':this[_0x3cd49c(0xa6)][_0x3cd49c(0x251)](_0x232c30),'selection':_0x564b9a},_0x220701=this['cursorInfo'];_0x220701[_0x3cd49c(0x279)](_0x232c30,_0x5a92ff),this[_0x3cd49c(0x263)][_0x3cd49c(0x1c2)](_0x220701);}[_0x350772(0x11a)](_0x183df3){const _0x48d9f2=_0x350772,{memberID:_0x7e411e}=_0x183df3['data'],_0x3d6628=this[_0x48d9f2(0x2cf)];_0x3d6628[_0x48d9f2(0x218)](_0x7e411e),this[_0x48d9f2(0x263)][_0x48d9f2(0x1c2)](_0x3d6628);}['_getMergeRange'](_0x2ea29a,_0x3d8c05){const _0x41c772=_0x350772;var _0x54cee2,_0xb528eb;const _0x5b8111=(_0xb528eb=(_0x54cee2=this['_univerInstanceService'][_0x41c772(0x23e)](this[_0x41c772(0x2cd)]))==null?void 0x0:_0x54cee2[_0x41c772(0x232)](_0x2ea29a))==null?void 0x0:_0xb528eb[_0x41c772(0x109)]();return(_0x5b8111==null?void 0x0:_0x5b8111[_0x41c772(0x131)](_0x543aff=>_0x5acc85[_0x41c772(0x2cb)](_0x543aff,_0x3d8c05)))||_0x3d8c05;}['_onRefRangeChange'](){const _0x1d7f1b=_0x350772,_0x1810e2=new _0x182a59(),_0x2ee2b3=Hi(),_0x123da6=()=>{_0x1810e2['dispose']();const _0x389314=(_0x9f7164,_0x121a1a,_0x58299f,_0x35bb0b)=>{const _0xb5854f=_0x2f90;let _0x29caac=[];switch(_0x9f7164['id']){case _0x216edf[_0xb5854f(0x2c9)]:{_0x29caac=_0x49e285(_0x9f7164,_0x35bb0b);break;}case _0x216edf['DeleteRangeMoveUpCommandId']:{_0x29caac=_0x437356(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0xeb)]:{_0x29caac=_0x49dcc1(_0x9f7164,_0x35bb0b);break;}case _0x216edf['InsertRangeMoveDownCommandId']:{_0x29caac=_0x4f512d(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0xcd)]:{_0x29caac=_0xfc5eb2(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0x126)]:{_0x29caac=_0x3fba3f(_0x9f7164,_0x35bb0b);break;}case _0x216edf['MoveRangeCommandId']:{_0x29caac=_0x557e56(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0x147)]:{_0x29caac=_0x234858(_0x9f7164,_0x35bb0b);break;}case _0x216edf[_0xb5854f(0x140)]:{_0x29caac=_0x3e2bf0(_0x9f7164,_0x35bb0b);break;}}const _0x75762b=_0x10f8a1(_0x29caac,_0x35bb0b),_0x4cb608=this[_0xb5854f(0x2cf)][_0xb5854f(0xc6)](_0x121a1a);if(_0x4cb608&&_0x75762b){const _0x19818a={..._0x4cb608,'range':_0x75762b};this['cursorInfo'][_0xb5854f(0x279)](_0x121a1a,_0x19818a),_0x2ee2b3(()=>{const _0x39bb8b=_0xb5854f,_0x3a7031=this['_refRangeService'][_0x39bb8b(0x1dc)](_0x75762b,_0x2d13db=>(_0x3a7031['dispose'](),_0x389314(_0x2d13db,_0x121a1a,_0x58299f,_0x75762b)));_0x1810e2[_0x39bb8b(0x10c)](_0x3a7031);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x50ea51,_0x491fa8)=>{const _0x2bf275=_0x2f90,{range:_0xabdc3b,sheetID:_0x556e86}=_0x50ea51,_0x28ea39=this[_0x2bf275(0x11b)][_0x2bf275(0x1dc)](_0xabdc3b,_0x561f5d=>(_0x28ea39[_0x2bf275(0x1e0)](),_0x389314(_0x561f5d,_0x491fa8,_0x556e86,_0xabdc3b)));_0x1810e2[_0x2bf275(0x10c)](_0x28ea39);});};this[_0x1d7f1b(0x222)](_0x296cd2(this[_0x1d7f1b(0x263)][_0x1d7f1b(0x28a)](()=>{_0x123da6();})));}[_0x350772(0x1a6)](){const _0x5878fc=_0x350772;var _0xeea8cb,_0x3d5576;if(this[_0x5878fc(0x12d)]=!0x0,((_0xeea8cb=this[_0x5878fc(0x1b6)][_0x5878fc(0x15f)]())==null?void 0x0:_0xeea8cb[_0x5878fc(0x25a)]())!==this[_0x5878fc(0x2cd)])return;const _0x420f50=(_0x3d5576=this[_0x5878fc(0x12a)][_0x5878fc(0xc6)](_0x51e3a3)[_0x5878fc(0x2bf)]())==null?void 0x0:_0x3d5576[0x0],_0x19671c=this[_0x5878fc(0x1b6)][_0x5878fc(0xb3)](_0x2ebb81[_0x5878fc(0xb6)])[_0x5878fc(0x1bc)]();_0x420f50&&_0x19671c&&this[_0x5878fc(0x1be)](_0x19671c[_0x5878fc(0xbb)](),_0x420f50);}['_toggleOffline'](){const _0x542455=_0x350772;this[_0x542455(0x12d)]=!0x1;}};ye=Bi([F(0x2,_0x1ada69(_0x37163f)),F(0x3,_0x1ada69(Ge)),F(0x4,_0x1ada69(_0x52df85)),F(0x5,_0xbcb279),F(0x6,_0x5df3ab),F(0x7,_0x1ada69(_0x388961))],ye);var Yi=Object['getOwnPropertyDescriptor'],Wi=(_0x1dcf14,_0x3ae2ce,_0xc79822,_0xb248d2)=>{const _0x52d33d=_0x350772;for(var _0x1b13a1=_0xb248d2>0x1?void 0x0:_0xb248d2?Yi(_0x3ae2ce,_0xc79822):_0x3ae2ce,_0x50d875=_0x1dcf14[_0x52d33d(0x2e6)]-0x1,_0x2c64ea;_0x50d875>=0x0;_0x50d875--)(_0x2c64ea=_0x1dcf14[_0x50d875])&&(_0x1b13a1=_0x2c64ea(_0x1b13a1)||_0x1b13a1);return _0x1b13a1;},pe=(_0x4169ad,_0x3b4bbd)=>(_0xf75eb6,_0x444c25)=>_0x3b4bbd(_0xf75eb6,_0x444c25,_0x4169ad);let Y=class extends _0x3e95b8{constructor(_0x1c0b38,_0x430254,_0x49ff14){const _0x5af918=_0x350772;super(),_(this,'_entities',new Map()),_(this,_0x5af918(0x1d2),new _0x4e3abd()),(this[_0x5af918(0x1b6)]=_0x1c0b38,this[_0x5af918(0x12a)]=_0x430254,this[_0x5af918(0x292)]=_0x49ff14,this[_0x5af918(0x2e4)]());}[_0x350772(0x1e0)](){const _0x57f712=_0x350772;super['dispose'](),this[_0x57f712(0x1d2)][_0x57f712(0x156)](),this[_0x57f712(0x1fb)][_0x57f712(0x237)](_0x2dd2dc=>_0x2dd2dc[_0x57f712(0x1e0)]());}[_0x350772(0x286)](_0xa73772){const _0x2e4215=_0x350772;return this[_0x2e4215(0x1fb)][_0x2e4215(0x105)](_0xa73772)?this[_0x2e4215(0x1fb)][_0x2e4215(0xc6)](_0xa73772)[_0x2e4215(0x1fc)]:this[_0x2e4215(0x1d2)]['pipe'](_0x57538f(_0x3a5084=>_0x3a5084[_0x2e4215(0x2cd)]===_0xa73772),_0x554a5c(_0x25eb07=>_0x25eb07[_0x2e4215(0x1fc)]));}[_0x350772(0x2e4)](){const _0x41f953=_0x350772;this['_univerInstanceService'][_0x41f953(0x1bd)](_0x2ebb81[_0x41f953(0xb6)])[_0x41f953(0xcb)](_0x561bd3(this['dispose$']))['subscribe'](async _0x1636fb=>{const _0x2d9d6f=_0x41f953,_0x53dcf1=_0x1636fb[_0x2d9d6f(0x25a)](),_0x24f106=await this[_0x2d9d6f(0x15e)](_0x53dcf1);this[_0x2d9d6f(0x1d2)][_0x2d9d6f(0x1c2)](_0x24f106),this['_entities'][_0x2d9d6f(0x279)](_0x53dcf1,_0x24f106);}),this[_0x41f953(0x1b6)][_0x41f953(0x1bd)](_0x2ebb81[_0x41f953(0x1ed)])[_0x41f953(0xcb)](_0x561bd3(this[_0x41f953(0xa8)]))[_0x41f953(0xcb)](_0x57538f(_0x36e5ef=>!_0x36e5ef[_0x41f953(0x25a)]()[_0x41f953(0x152)]('__')))[_0x41f953(0x28a)](async _0x3c6961=>{const _0x4cec65=_0x41f953,_0x186a8a=_0x3c6961[_0x4cec65(0x25a)](),_0x38c686=await this[_0x4cec65(0x249)](_0x186a8a);this[_0x4cec65(0x1d2)][_0x4cec65(0x1c2)](_0x38c686),this[_0x4cec65(0x1fb)][_0x4cec65(0x279)](_0x186a8a,_0x38c686);}),_0x42ed05(this['_univerInstanceService'][_0x41f953(0x189)](_0x2ebb81['UNIVER_DOC']),this['_univerInstanceService'][_0x41f953(0x189)](_0x2ebb81[_0x41f953(0xb6)]))[_0x41f953(0xcb)](_0x561bd3(this[_0x41f953(0xa8)]))[_0x41f953(0x28a)](_0x3826be=>{const _0x5e17ea=_0x41f953,_0x187819=_0x3826be[_0x5e17ea(0x25a)](),_0x22a9b9=this['_entities'][_0x5e17ea(0xc6)](_0x187819);_0x22a9b9&&(_0x22a9b9[_0x5e17ea(0x1e0)](),this['_entities'][_0x5e17ea(0x218)](_0x187819));});}async['_startSheetCollabCursor'](_0x2dfb73){const _0x345a6f=_0x350772,_0x5d76d5=await this[_0x345a6f(0x292)][_0x345a6f(0xa5)](_0x2dfb73),_0x220e33=this[_0x345a6f(0x12a)][_0x345a6f(0x144)](ye,_0x2dfb73,_0x5d76d5);return _0x220e33[_0x345a6f(0x1c6)](),_0x220e33;}async['_startDocCollabCursor'](_0x377e64){const _0x154a4f=_0x350772,_0x2f90a0=await this['_collabSessionService'][_0x154a4f(0xa5)](_0x377e64),_0x1643a2=this['_injector'][_0x154a4f(0x144)](we,_0x377e64,_0x2f90a0);return _0x1643a2[_0x154a4f(0x1c6)](),_0x1643a2;}};function _0x2f90(_0x592140,_0x53a9b2){const _0x30a7bc=_0x30a7();return _0x2f90=function(_0x2f90cf,_0x5e42b3){_0x2f90cf=_0x2f90cf-0xa0;let _0x5363e5=_0x30a7bc[_0x2f90cf];return _0x5363e5;},_0x2f90(_0x592140,_0x53a9b2);}Y=Wi([pe(0x0,_0xbcb279),pe(0x1,_0x1ada69(_0x37163f)),pe(0x2,_0x1ada69(_0x13b5b6))],Y);const q=0x14,rt=0xc8,Oe=0x4,Vi=0x5;function ji(_0x22518c,_0x1916c1){const _0x56e602=_0x350772;let {radius:_0x1be25f,width:_0x1f7946,height:_0x5b93fe}=_0x1916c1;_0x1be25f=_0x1be25f!=null?_0x1be25f:0x0,_0x1f7946=_0x1f7946!=null?_0x1f7946:0x1e,_0x5b93fe=_0x5b93fe!=null?_0x5b93fe:0x1e;let _0x292065=0x0,_0x20b1ce=0x0,_0x378675=0x0;_0x292065=_0x20b1ce=_0x378675=Math[_0x56e602(0x132)](_0x1be25f,_0x1f7946/0x2,_0x5b93fe/0x2),_0x22518c[_0x56e602(0x10b)](),_0x22518c[_0x56e602(0x22a)](_0x292065,0x0),_0x22518c[_0x56e602(0x290)](_0x1f7946-_0x20b1ce,0x0),_0x22518c[_0x56e602(0x281)](_0x1f7946-_0x20b1ce,_0x20b1ce,_0x20b1ce,Math['PI']*0x3/0x2,0x0,!0x1),_0x22518c[_0x56e602(0x290)](_0x1f7946,_0x5b93fe-_0x378675),_0x22518c['arc'](_0x1f7946-_0x378675,_0x5b93fe-_0x378675,_0x378675,0x0,Math['PI']/0x2,!0x1),_0x22518c['lineTo'](0x0,_0x5b93fe),_0x22518c[_0x56e602(0x290)](0x0,_0x292065),_0x22518c['arc'](_0x292065,_0x292065,_0x292065,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x22518c[_0x56e602(0x1e8)](),_0x1916c1['fill']&&(_0x22518c[_0x56e602(0x226)](),_0x22518c[_0x56e602(0x206)]=_0x1916c1['fill'],_0x1916c1[_0x56e602(0x259)]===_0x56e602(0x17a)?_0x22518c[_0x56e602(0xd9)](_0x56e602(0x17a)):_0x22518c[_0x56e602(0xd9)](),_0x22518c[_0x56e602(0xee)]());}class Ie extends _0x316be7{constructor(_0x42ef63,_0x2e9d8f){const _0x5c5a5d=_0x350772;super(_0x42ef63,_0x2e9d8f),_(this,_0x5c5a5d(0x231)),_(this,'text'),(this[_0x5c5a5d(0x231)]=_0x2e9d8f==null?void 0x0:_0x2e9d8f['color'],this[_0x5c5a5d(0x17f)]=_0x2e9d8f==null?void 0x0:_0x2e9d8f['text']);}static['drawWith'](_0x545eab,_0x4ce7b7){const _0x3d5b88=_0x350772,{text:_0x1a43e7,color:_0x1f7375}=_0x4ce7b7;_0x545eab['save'](),_0x545eab[_0x3d5b88(0x19d)]=_0x3d5b88(0x2d6);const _0x12d8dc=_0x545eab[_0x3d5b88(0x28f)](_0x1a43e7)[_0x3d5b88(0xa3)],_0x1ab065=Math[_0x3d5b88(0x132)](_0x12d8dc+0x2*Oe,rt);ji(_0x545eab,{'height':q,'radius':0x4,'width':_0x1ab065,'fill':_0x1f7375}),_0x545eab[_0x3d5b88(0x206)]=_0x3d5b88(0xd5);const _0x38f17c=Oe,_0x376d39=q-Vi,_0x5068a2=rt-0x2*Oe;if(_0x12d8dc>_0x5068a2){let _0x2c5976='',_0x3948c3=0x0;for(const _0x4df550 of _0x1a43e7){const _0x1000a1=_0x545eab['measureText'](_0x4df550)[_0x3d5b88(0xa3)];if(_0x3948c3+_0x1000a1<=_0x5068a2-_0x545eab[_0x3d5b88(0x28f)](_0x3d5b88(0xd7))['width'])_0x2c5976+=_0x4df550,_0x3948c3+=_0x1000a1;else{_0x2c5976+=_0x3d5b88(0xd7);break;}}_0x545eab[_0x3d5b88(0x27c)](_0x2c5976,_0x38f17c,_0x376d39);}else _0x545eab[_0x3d5b88(0x27c)](_0x1a43e7,_0x38f17c,_0x376d39);_0x545eab[_0x3d5b88(0xee)]();}[_0x350772(0xd0)](_0x3c39d0){const _0x187d67=_0x350772;Ie[_0x187d67(0x208)](_0x3c39d0,this);}}function _0x30a7(){const _0x25e665=['9rCgeMQ','_docSkeleton','_univerInstanceService','2872328GKlrUU','_collabCursorState$','event$','with','_transformHistoryAndStateStack','getActiveSheet','getTypeOfUnitAdded$','_updateLocalCursor','runOnServer','defIds','code','next','stringify','_cursors','bottom','init','mutations','origin','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getSkeleton','m2Prime','beforeCommandExecuted','http://www.w3.org/2000/svg','_initCommandInterceptor','_logService','white','YUUMI_CONNECTOR_URL_NOT_FOUND','_entityInit$','_handleJoinEvent','blue.400','_releaseCalculationLimit','YUUMI_RATE_OVER_LIMIT','getParam','JOIN_ROOM_FAILED','UniverIcon','APPLY_NON_SEQUENTIAL_REVISION','TOO_MANY_REQUESTS','registerRefRange','PY_RUNTIME_SCRIPT_ERROR','shift','black','dispose','_updateURLWithCurrentState','_updateCollabCursors','SYNCED','Failed','_pollingInterval','searchParams','random','closePath','then','session.will-retry','_saveCache','getMember','UNIVER_DOC','getRangePointData','FETCH_MISS','className','2rHDfrv','INVITE_CODE_REQUIRED','_drawRectRange','collabStatus.conflict','labelPosition','INTERNAL_ERROR','UNDEFINED','onTransformChange$','_anchor','USERS_LEAVE','_entities','cursorInfo$','Success','LICENSE_IMPORT_SIZE_EXCEEDED','_eventUnsubscribe','collaboration.closeRoom','split','transformIMECache','collaboration.single-unit.warning','YUUMI_NO_CUBOID_FOR_QUESTION','HEADER_MENU','fillStyle','toString','drawWith','disposeUnit','REDEMPTION_CODE_FULLY_REDEEMED','addEventListener','ALREADY_EXISTS','_collabCursorController','_name','_memberService','invokeId','1680744gOQIQy','focused$','_document','onLocalMutation','_docTransformStateCacheService','_backgroundColor','findNodePositionByCharIndex','delete','entries','_localCacheService','eventID','_maxFormulaLimit','683922LTDKxg','0\x200\x2016\x2016','214730zsOyIk','START_CALCULATION','_localStorageService','disposeWithMe','data','INVALID_ARGUMENT','_renderManagerService','save','formula.calculation.started','CURRENT_STATUS_CANNOT_OPERATE','_docTransformIMECacheService','moveTo','1em','_httpService','from','div','params','_dataLoaderService','color','getSheetBySheetId','PERMISSION_DENIED','OFFLINE','3343494NEhPDH','_imageIoService','forEach','ticket','location','extend','_hover','memberID','resize','getUniverSheetInstance','ENSURE_SNAPSHOT_EXECUTION','registerRenderModule','key','UNRECOGNIZED','exhaustSavingTask','_scheduleHeartbeat','hasOwnProperty','error','_shapes','transform','_startDocCollabCursor','hovered','runId','_showGuardMessage','_docSyncEditingCollabCursorService','currentTheme$','_initStatusListener','_hovered','assignAColorForMemberID','_localeService','clearTimeout','_startCalculationLimit','getRelativeToViewportCoord','_registerRenderDependencies','INVITE_CODE_HAS_BEEN_UES','endRow','fillRule','getUnitId','CLOSE_ROOM','sessionStatus$','push','attrs','REDEMPTION_CODE_HAS_BEEN_CREATED','USER_NOT_FOUND','getUnit','_heartbeatTimer','_cursorInfo$','_handleHover','selection','_unitOnClients','_initEvent','subunit','12PqfAjQ','CHANGESET_REVISION_CONFILICT','_registerDependencies','_instanceService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','urlChange$','_notificationService','SNAPSHOT_INVALID_SNAPSHOT','_getFormulaLimitStatus','setItem','MOBILE_VERIFY_CODE_MISMATCH','1045750dqVyFm','_selfUnitIDs','xlink:href','_hasFormulaInDirtyRanges','sessionTicket','set','url(#off-line-icon_clip0_910_343)','mask','fillText','defs','LICENSE_EXPORT_SIZE_EXCEEDED','getformulaLimitStatusUrl','transformMutation','arc','send','OTHER_CLIENTS_EDITING','permission.content','stageInfo','getCollabCursors$','collabStatus.offline','_transformUndoRedoStack','_applyCommand','subscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','range','_refreshCollabCursors','startFormulaLimitUrl','measureText','lineTo','subUnitId','_collabSessionService','_getSaveTimeout','apply','_configService','undoState','all','unit','_handleEvent','APPLY_DUPLICATED','collabCursorState$','_themeService','collab-text-anchor-','SUBMIT_CHANGESET_TIMEOUT','_initCommandExecutedListener','transformStateCache','APPLY_PERMISSION_DENIED','green.600','_uiPartsService','EMAIL_VERIFY_CODE_MISMATCH','redoState','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','call','_beforeCloseService','sheetID','_config','ENTITLE_REPORT_LIMIT_EXCEED','LICENSE_DISTRO_REJECTED','height','getOwnPropertySymbols','CONFLICT','_taskIds','values','now','url(#$1','currentColor','NOT_COLLAB','getUnhiddenWorksheets','post','_ensureSubject','symbol','endColumn','_messageService','session.connection-failed','popstate','_handleHeartbeatEvent','getCurrentSelections','actions','name','getOwnPropertyDescriptor','_collaborationController','transformByState','transformMutationsWithChangeset','_setFormulaLimitStatus','path','_send','DeleteRangeMoveLeftCommandId','debug','contains','_transformService','unitID','size','cursorInfo','history','_drawTextRange','unsubscribe','MUTATION','assign','clipPath','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','setUndoRedoMutationParamsCache','dirtyRanges','_collaborationUIEventService','totalFormulasToCalculate','activeSheet$','_cachedData','ENTITLE_DUP_SUBSCRIPTION','getCellMatrix','session.collaboration-timeout','on-line-icon','getDocRanges','_doCreateSocket','NO_OTHER_CLIENTS_EDITING','_init','getCurrentRevOfUnit','length','executeCommand','_initStatusComponent','Unknown\x20user','width','string','requireSession','_colorAssignService','registerComponent','dispose$','_docTransformSelectionsService','permission.title','_setupBeforeClosingHandler','LICENSE_MAX_UNITS_EXCEEDED','off-line-icon','ENTITLE_CHAT_LIMIT_EXCEED','YUUMI_ALL_TABLES_IS_INVALID','SOCKET_FAILED','Warning','registerBeforeClose','getCurrentUnitForType','releaseFormulaLimitUrl','isActive','UNIVER_SHEET','replaceState','deepClone','show','map','getSheetId','YUUMI_ASYNCIO_CANCELLED','type','startColumn','_urlService','REDEMPTION_USER_NOT_ELIGIBLE','syncEditingCollabCursor','_cursor','SNAPSHOT_HAS_BEEN_REMOVED','_createSocketURL','newValue','get','_revisionService','_range','idSuffix','univerjs-icon\x20univerjs-icon-','pipe','PENDING','InsertRangeMoveRightCommandId','_disabled','38502zBqvMo','_draw','_removeCollabCursors','_clearOtherTimers','body','LOGIN_TOKEN_PROCESSING_FAILED','#FFF','_color','...','AWAITING','fill','search','_lastResponseTimestamp','getCurrent','APPLY_REVISION_CONFILICT','backgroundColor','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','children','_commandService','USER_IS_ANONYMOUS','replace','_onCursorUpdate','_scene','_sheetSkeletonManagerService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','doc.mutation.rich-text-editing','_syncEditingCollabCursorService','_status$','InsertColCommandId','onPointerEnter$','off-line-icon_clip0_910_343','restore','loadUnit','skeleton','VIEW_MAIN','UPDATE_CURSOR','functionsExecutedState','setActiveRange','collaboration-client-ui.config','/universer-api/license/formula/limit/status','_onRefRangeChange','onStarting','INVITE_CODE_ALREADY_BOUND','onPointerLeave$','parse','m1Prime','_hideTimer','collab-rect-range-','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_textBubble','imageSourceType','textRanges','collab-text-range-','_initDependencies','has','none','PAYMENT_CHANNEL_NOT_SUPPORT','REDEMPTION_CODE_INACTIVE','getMergeData','_saveTaskMap','beginPath','add','wsSessionTicketUrl','getValue','_setupSubUnitSync','propertyIsEnumerable','COMPLETION_FINISHED','ranges','source','subscribeEvent','_updateSubUnitFromURLParams','APPLY_REJECT','setParam','isArray','setAlpha','_onCursorDelete','_refRangeService','trim','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_docClipboardService','UNAUTHENTICATED','RECT','setConfig','USER_NOT_INVITED_CODE','entityInit$','TEXT','ONLINE','InsertRowCommandId','tag','_session','MOBILE_HAS_BEEN_BOUND','_injector','YUUMI_UNABLE_LOAD_URL','Loading','_online','svg','use','_lastPointer','find','min','onRendered','removeParam','limitInfo','REDEMPTION_USER_REDEEM_TIMES_EXCEED','substring','_render','_initEntityListener','editingUnit','prototype','WECHAT_HAS_BEEN_BOUND','triggerDblclick','_context','currentSkeleton$','RemoveRowCommandId','/universer-api/license/formula/limit/start','NOT_FOUND','_transformPreviousActiveRange','createInstance','_scheduleSaving','getActiveRange','RemoveColCommandId','_getSheetObject','getColorFromTheme','asObservable','status$','hide','EMAIL_HAS_BEEN_BOUND','AWAITING_WITH_PENDING','defineProperty','createSocket','displayName','startsWith','_drawAnchor','unitId','_scheduleClearOtherTimer','complete','_getAnchorBounding','selections','_clearPolling','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','href','onMouseMove','_roomMembers$','_startSheetCollabCursor','getFocusedUnit','_cursorShapes','executionId','onCommandExecuted','on-line-icon_clip0_910_349','getUndoRedoMutationParamsCache','whenReady','getVpScrollXYInfoByPosToVp','INVALID_INVITE_CODE','toRgbString','_docStateChangeManagerService','currentUsage','getItem','top','includes','sheetId','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','YUUMI_AI_RUN_FAILED','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_id','YUUMI_SUBSCRIPTION_NOT_FOUND','updateOfflineData','enableLocalCache','_docSkeletonManagerService','docStateChange$','colorChannel1','_getSessionTicket','evenodd','setShapeProps','REDEMPTION_CODE_NOT_STARTED','AUTHORIZE_CODE_ILLEGAL','yellow.400','text','unshift','getConfig','getCollabEntity$','_removeClearOtherTimer','_checkCalculationAvailable','_anchorDot','formula.calculation.unable','onPointerMove$','_getScale','getTypeOfUnitDisposed$','clearInterval','startRow','transformSelections','_currentUsage','parseInt','maxFormulaLimit','column','_initResize','transformRemoteChangeset','unload','addObject','YUUMI_URL_COL_OUT_OF_RANGE','Error','saveTaskMap','getStateCache','reconnect','REDEMPTION_INVALID_CODE','application/json','LOGIN_FAILED','font','_unitStatus','getUnitStatus$','saveImage','setTimeout','FromArray','indexOf','CONNECTOR_DATA_TOO_LARGE','_toggleOffline','_toggleOnline','ERROR_AGAIN','[CollaborationDataLoaderController]','getRenderById','_labelPosition','ENTITLE_NEED_BILLING_ADDRESS','round','translate(.97)','function','_assignedColors','concat','_checkAndWaitForCalculationPermission','_colorIndex','M0\x200H16V16H0z'];_0x30a7=function(){return _0x25e665;};return _0x30a7();}const Te=_0x350772(0x29d),Xi=_0x350772(0x103),Gi=_0x350772(0xfe),J=0x6,Ki=1.5,Ce=0x4,zi=1.5,Ji='rgba(255,\x20255,\x20255,\x200.01)';class ot{constructor(_0x3e87b3,_0x5dc387,_0x3be03b,_0x3d0b7b){const _0x2f567d=_0x350772;_(this,_0x2f567d(0x247),[]),_(this,_0x2f567d(0x1f9),null),_(this,_0x2f567d(0x100),null),_(this,_0x2f567d(0x185),null),_(this,'_hideTimer',null),_(this,_0x2f567d(0x1ff),null),(this[_0x2f567d(0xc2)]=_0x3e87b3,this[_0x2f567d(0xe5)]=_0x5dc387,this[_0x2f567d(0x1b5)]=_0x3be03b,this[_0x2f567d(0x213)]=_0x3d0b7b,this[_0x2f567d(0x138)]());}set[_0x350772(0x23b)](_0x47260b){const _0x29300c=_0x350772;_0x47260b?(this[_0x29300c(0x185)]&&this[_0x29300c(0x185)]['hide'](),this[_0x29300c(0x100)]&&this['_textBubble']['show']()):(this[_0x29300c(0x185)]&&this[_0x29300c(0x185)][_0x29300c(0xb9)](),this[_0x29300c(0x100)]&&this[_0x29300c(0x100)][_0x29300c(0x14c)]());}[_0x350772(0x1e0)](){const _0x38650e=_0x350772;for(const _0x5484d3 of this['_shapes'])_0x5484d3['dispose']();this[_0x38650e(0x100)]&&this[_0x38650e(0x100)]['dispose'](),this['_anchorDot']&&this[_0x38650e(0x185)][_0x38650e(0x1e0)](),this[_0x38650e(0x1f9)]&&this['_anchor'][_0x38650e(0x1e0)](),this[_0x38650e(0x1ff)]&&this[_0x38650e(0x1ff)]();}[_0x350772(0x138)](){const _0xd41476=_0x350772;var _0x5eab9d;const {_docSkeleton:_0x3e2a69,_document:_0x2312a3}=this,{color:_0x69d254,name:_0x4230d2,ranges:_0x46af6f}=this[_0xd41476(0xc2)],_0x2ae8c9=_0x2312a3['getOffsetConfig'](),{docsLeft:_0x5004fc,docsTop:_0x262c5e}=_0x2ae8c9,_0x347cc1=new _0x23b453(_0x2ae8c9,_0x3e2a69);for(const {startOffset:_0x412daa,endOffset:_0x31d27,rangeType:_0x269e82,segmentId:_0x2b941b,segmentPage:_0x4714f8,collapsed:_0x898014,isActive:_0x54628d}of _0x46af6f){const _0x3fff7d=_0x3e2a69[_0xd41476(0x217)](_0x412daa,!0x0,_0x2b941b,_0x4714f8);let _0x430af7=_0x3e2a69[_0xd41476(0x217)](_0x31d27,!0x0,_0x2b941b,_0x4714f8);if(_0x430af7==null&&(_0x430af7=_0x3e2a69[_0xd41476(0x217)](_0x31d27-0x1,!0x1,_0x2b941b,_0x4714f8)),_0x54628d){const {contentBoxPointGroup:_0x298e44}=_0x347cc1['getRangePointData'](_0x430af7,_0x430af7);if(_0x298e44[_0xd41476(0x2e6)]===0x0)continue;this[_0xd41476(0x153)](_0x69d254,_0x298e44,_0x5004fc,_0x262c5e,_0x4230d2),this[_0xd41476(0x1ff)]=this[_0xd41476(0x264)]();}if(_0x3fff7d&&_0x430af7){if(_0x269e82===_0x1fab1a[_0xd41476(0x120)]){const _0x243ba7=new _0x4c81a5(_0x2ae8c9,_0x3e2a69),{pointGroup:_0xeb353}=(_0x5eab9d=_0x243ba7[_0xd41476(0x1ee)](_0x3fff7d,_0x430af7))!=null?_0x5eab9d:{};if(_0xeb353==null||_0xeb353[_0xd41476(0x2e6)]===0x0)continue;this['_drawRectRange'](_0x69d254,_0xeb353,_0x5004fc,_0x262c5e);}else{if(!_0x898014){const {borderBoxPointGroup:_0x52d6b2}=_0x347cc1[_0xd41476(0x1ee)](_0x3fff7d,_0x430af7);if(_0x52d6b2[_0xd41476(0x2e6)]===0x0)continue;this[_0xd41476(0x2d1)](_0x69d254,_0x52d6b2,_0x5004fc,_0x262c5e);}}}}}[_0x350772(0x153)](_0x12afeb,_0x442130,_0x54c75e,_0x164ea2,_0x3430ee){const _0x319dfe=_0x350772,_0xf1105a=this['_getAnchorBounding'](_0x442130),{left:_0x752be8,top:_0x3a04b0,height:_0x26935b}=_0xf1105a,_0x1a1287=this[_0x319dfe(0x188)](),_0x49616e=zi/_0x1a1287,_0x13e2ce=new _0x154153(Te+_0x43b449(J),{'left':_0x752be8+_0x54c75e-_0x49616e,'top':_0x3a04b0+_0x164ea2,'height':_0x26935b,'width':Ki,'fill':_0x12afeb||_0x4740de(_0x1b0abb[_0x319dfe(0x1df)],0x0),'strokeWidth':_0x49616e,'stroke':Ji,'evented':!0x0});this[_0x319dfe(0x1f9)]=_0x13e2ce,this[_0x319dfe(0xe5)][_0x319dfe(0x194)](_0x13e2ce,_0x3d216c);const _0x5345c0=new _0x154153(Te+_0x43b449(J),{'left':_0x752be8+_0x54c75e-_0x49616e,'top':_0x3a04b0+_0x164ea2-Ce/0x2,'height':Ce,'width':Ce,'fill':_0x12afeb||_0x4740de(_0x1b0abb[_0x319dfe(0x1df)],0x0),'strokeWidth':0x0,'stroke':_0x12afeb||_0x4740de(_0x1b0abb[_0x319dfe(0x1df)],0x0),'evented':!0x1});this[_0x319dfe(0x185)]=_0x5345c0,this[_0x319dfe(0xe5)]['addObject'](_0x5345c0,_0x3d216c);const _0x57b206=new Ie(Te+_0x43b449(J),{'left':_0x752be8+_0x54c75e-_0x49616e,'top':_0x3a04b0+_0x164ea2-q,'text':_0x3430ee,'color':_0x12afeb});this[_0x319dfe(0x100)]=_0x57b206,this[_0x319dfe(0xe5)][_0x319dfe(0x194)](_0x57b206,_0x3d216c),this[_0x319dfe(0x23b)]=!0x1;}[_0x350772(0x264)](){const _0x3d5c37=_0x350772,_0x54f8b1=this[_0x3d5c37(0x1f9)][_0x3d5c37(0xec)][_0x3d5c37(0x114)](()=>{const _0x31ec81=_0x3d5c37;this[_0x31ec81(0x23b)]=!0x0;}),_0x44ed0a=this[_0x3d5c37(0x1f9)][_0x3d5c37(0xfa)][_0x3d5c37(0x114)](()=>{const _0x4071fc=_0x3d5c37;this['_hideTimer']&&clearTimeout(this[_0x4071fc(0xfd)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3db62c=_0x3d5c37;_0x54f8b1[_0x3db62c(0x2d2)](),_0x44ed0a[_0x3db62c(0x2d2)]();};}[_0x350772(0x2d1)](_0x29f96b,_0x2489bc,_0x32e2a9,_0x26e5d0){const _0x3a3d43=_0x350772,_0x452460=new _0x1e2ad1(_0x29f96b)[_0x3a3d43(0x119)](0.2)[_0x3a3d43(0x168)](),_0x39e194=new _0x5f4a89(Xi+_0x43b449(J),{'pointsGroup':_0x2489bc,'fill':_0x452460||_0x4740de(_0x1b0abb['black'],0.2),'left':_0x32e2a9,'top':_0x26e5d0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3a3d43(0x247)][_0x3a3d43(0x25d)](_0x39e194),this[_0x3a3d43(0xe5)][_0x3a3d43(0x194)](_0x39e194,_0x3d216c);}[_0x350772(0x1f3)](_0x3dbaef,_0x57f7c9,_0x3fa374,_0x3b6cdc){const _0x2d44e5=_0x350772,_0x535d5e=new _0x1e2ad1(_0x3dbaef)['setAlpha'](0.2)[_0x2d44e5(0x168)](),_0xfd5006=new _0x5f4a89(Gi+_0x43b449(J),{'pointsGroup':_0x57f7c9,'fill':_0x535d5e||_0x4740de(_0x1b0abb[_0x2d44e5(0x1df)],0.2),'left':_0x3fa374,'top':_0x3b6cdc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d44e5(0x247)][_0x2d44e5(0x25d)](_0xfd5006),this[_0x2d44e5(0xe5)]['addObject'](_0xfd5006,_0x3d216c);}[_0x350772(0x157)](_0xa7b47f){const _0x160a35=_0xa7b47f[0x0],_0x55517c=_0x160a35[0x0],_0x3ef9c3=_0x160a35[0x2],{x:_0x5c44a3,y:_0x33605a}=_0x55517c,{x:_0x93e5c1,y:_0x2572df}=_0x3ef9c3;return{'left':_0x5c44a3,'top':_0x33605a,'width':_0x93e5c1-_0x5c44a3,'height':_0x2572df-_0x33605a};}[_0x350772(0x188)](){const _0x5ba415=_0x350772,{scaleX:_0x10dd05,scaleY:_0x511a35}=this[_0x5ba415(0xe5)]['getAncestorScale']();return Math['max'](_0x10dd05,_0x511a35);}}var Zi=Object[_0x350772(0x2c2)],Qi=(_0xd5853c,_0x117cb2,_0xe6c958,_0x56a022)=>{const _0x25f1fe=_0x350772;for(var _0xa1bea1=_0x56a022>0x1?void 0x0:_0x56a022?Zi(_0x117cb2,_0xe6c958):_0x117cb2,_0x5071e5=_0xd5853c[_0x25f1fe(0x2e6)]-0x1,_0x478ec3;_0x5071e5>=0x0;_0x5071e5--)(_0x478ec3=_0xd5853c[_0x5071e5])&&(_0xa1bea1=_0x478ec3(_0xa1bea1)||_0xa1bea1);return _0xa1bea1;},ne=(_0x1d2cb4,_0x35423d)=>(_0x4f653d,_0x57be12)=>_0x35423d(_0x4f653d,_0x57be12,_0x1d2cb4);let $e=class extends _0x3e95b8{constructor(_0x22fcf2,_0x10dd4d,_0x446d3a,_0x36112d,_0x16f469){const _0x4287c8=_0x350772;super(),_(this,_0x4287c8(0x160),[]),_(this,_0x4287c8(0x1c4),[]),(this[_0x4287c8(0x13e)]=_0x22fcf2,this['_docSkeletonManagerService']=_0x10dd4d,this[_0x4287c8(0x20d)]=_0x446d3a,this[_0x4287c8(0xe1)]=_0x36112d,this[_0x4287c8(0x29c)]=_0x16f469,this[_0x4287c8(0x2e4)]());}['_init'](){const _0x2ea7c4=_0x350772,_0x235fa8=this[_0x2ea7c4(0x13e)][_0x2ea7c4(0x154)],_0x6eb27f=this['_docSkeletonManagerService'];this[_0x2ea7c4(0x222)](_0x264ffa([this[_0x2ea7c4(0x20d)][_0x2ea7c4(0x286)](_0x235fa8),this[_0x2ea7c4(0x29c)][_0x2ea7c4(0x24e)]])[_0x2ea7c4(0xcb)](_0x273082(([_0x154c55,_0x218ddc])=>({'skeleton':_0x6eb27f[_0x2ea7c4(0x1ca)](),'cursors':[..._0x154c55[_0x2ea7c4(0x2b1)]()]['flatMap'](_0x58b9dc=>({..._0x58b9dc,'color':this[_0x2ea7c4(0x29c)][_0x2ea7c4(0x149)](_0x58b9dc[_0x2ea7c4(0x231)])}))})))[_0x2ea7c4(0x28a)](_0x39f079=>{const _0x27059f=_0x2ea7c4;if(this['_removeCollabCursors'](),_0x39f079){const {skeleton:_0x5731cf,cursors:_0x16a63f}=_0x39f079;this[_0x27059f(0x1e2)](_0x5731cf,_0x16a63f);}})),this[_0x2ea7c4(0x191)](),this[_0x2ea7c4(0x29f)]();}[_0x350772(0x1e2)](_0x2c5d58,_0x1283f9){const _0xc4a6e5=_0x350772,{scene:_0x2d4f4d,mainComponent:_0x2f916f}=this['_context'],_0x4729a2=_0x1283f9[_0xc4a6e5(0xba)](_0x11017e=>new ot(_0x11017e,_0x2d4f4d,_0x2c5d58,_0x2f916f));this[_0xc4a6e5(0x160)]=_0x4729a2,this[_0xc4a6e5(0x1c4)]=_0x1283f9;}[_0x350772(0x28d)](){const _0x4af1d2=_0x350772;this[_0x4af1d2(0xd1)]();const {scene:_0x24d03e,mainComponent:_0x3991df}=this[_0x4af1d2(0x13e)],_0xdd9993=this[_0x4af1d2(0x176)][_0x4af1d2(0x1ca)](),_0xb44129=this[_0x4af1d2(0x1c4)][_0x4af1d2(0xba)](_0x2ae6ac=>new ot(_0x2ae6ac,_0x24d03e,_0xdd9993,_0x3991df));this[_0x4af1d2(0x160)]=_0xb44129;}[_0x350772(0xd1)](){const _0x59ca1b=_0x350772;this[_0x59ca1b(0x160)][_0x59ca1b(0x237)](_0x47af2c=>_0x47af2c[_0x59ca1b(0x1e0)]()),this[_0x59ca1b(0x160)]=[];}[_0x350772(0x29f)](){const _0x3ea5bd=_0x350772,_0x5c1ec0=[_0x49cb7f['id']];this['disposeWithMe'](this['_commandService'][_0x3ea5bd(0x162)](_0x42c0e9=>{const _0x24e7a8=_0x3ea5bd;_0x5c1ec0[_0x24e7a8(0x16d)](_0x42c0e9['id'])&&_0x42c0e9[_0x24e7a8(0x22f)]['unitId']===this[_0x24e7a8(0x13e)][_0x24e7a8(0x154)]&&this[_0x24e7a8(0x28d)]();}));}[_0x350772(0x191)](){const _0x1386e9=_0x350772;this[_0x1386e9(0x222)](_0x2754b0(this[_0x1386e9(0x13e)]['engine'][_0x1386e9(0x1f8)])[_0x1386e9(0xcb)](_0x564fd5(_0x20a72a=>_0x20a72a[_0x1386e9(0xbd)]===_0x239e83[_0x1386e9(0x23d)]),_0xe18dca(0x10))[_0x1386e9(0x28a)](()=>{const _0x12a312=_0x1386e9;this[_0x12a312(0x28d)]();}));}};$e=Qi([ne(0x1,_0x1ada69(_0x107acb)),ne(0x2,_0x1ada69(Y)),ne(0x3,_0x5df3ab),ne(0x4,_0x1ada69(_0x3617fd))],$e);const qi=0x1,en=1.5;class tn extends _0x316be7{constructor(_0x5359f9,_0x43bfd7){const _0x25e2c3=_0x350772;super(_0x5359f9,_0x43bfd7),_(this,_0x25e2c3(0xd6)),_(this,'_hovered',!0x1),_(this,_0x25e2c3(0xc8)),_(this,_0x25e2c3(0x20e),''),_(this,_0x25e2c3(0x1aa),_0x25e2c3(0x16c)),_(this,'_backgroundColor'),(_0x43bfd7&&this[_0x25e2c3(0x17b)](_0x43bfd7),this['onPointerEnter$'][_0x25e2c3(0x114)](()=>this[_0x25e2c3(0x17b)]({'hovered':!0x0})),this[_0x25e2c3(0xfa)][_0x25e2c3(0x114)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x350772(0x17b)](_0x3af4bc){const _0x1a02c1=_0x350772;var _0x2127e9,_0x329b0e,_0xc91ce8,_0x1edc3f,_0x3403f8,_0x11da2f;this[_0x1a02c1(0xd6)]=(_0x2127e9=_0x3af4bc[_0x1a02c1(0x231)])!=null?_0x2127e9:this['_color'],this[_0x1a02c1(0x250)]=(_0x329b0e=_0x3af4bc[_0x1a02c1(0x24a)])!=null?_0x329b0e:this[_0x1a02c1(0x250)],this[_0x1a02c1(0xc8)]=(_0xc91ce8=_0x3af4bc[_0x1a02c1(0x28c)])!=null?_0xc91ce8:this[_0x1a02c1(0xc8)],this[_0x1a02c1(0x20e)]=(_0x1edc3f=_0x3af4bc[_0x1a02c1(0x2c1)])!=null?_0x1edc3f:this[_0x1a02c1(0x20e)],this[_0x1a02c1(0x1aa)]=(_0x3403f8=_0x3af4bc[_0x1a02c1(0x1f5)])!=null?_0x3403f8:this[_0x1a02c1(0x1aa)],this[_0x1a02c1(0x216)]=(_0x11da2f=_0x3af4bc[_0x1a02c1(0xde)])!=null?_0x11da2f:this[_0x1a02c1(0x216)],this[_0x1a02c1(0x2c4)]({'width':_0x3af4bc[_0x1a02c1(0xa3)],'height':_0x3af4bc[_0x1a02c1(0x2ad)]});}['onMouseMove'](_0x2edc75){const _0x3d0d98=_0x350772,{row:_0x44904f,column:_0x3b8aa7}=_0x2edc75;if(_0x44904f>=this[_0x3d0d98(0xc8)]['startRow']&&_0x44904f<=this['_range'][_0x3d0d98(0x258)]&&_0x3b8aa7>=this['_range'][_0x3d0d98(0xbe)]&&_0x3b8aa7<=this[_0x3d0d98(0xc8)][_0x3d0d98(0x2ba)]){this[_0x3d0d98(0x17b)]({'hovered':!0x0});return;}this[_0x3d0d98(0x17b)]({'hovered':!0x1});}[_0x350772(0x13d)](_0x6dc196){return!0x1;}[_0x350772(0xd0)](_0x20afd5){const _0xfb9ef1=_0x350772;_0x154153[_0xfb9ef1(0x208)](_0x20afd5,{'width':this[_0xfb9ef1(0xa3)],'height':this['height'],'strokeWidth':en,'stroke':this[_0xfb9ef1(0xd6)],'evented':!0x1,'fill':this[_0xfb9ef1(0x216)]}),this[_0xfb9ef1(0x250)]&&(_0x20afd5[_0xfb9ef1(0x226)](),_0x20afd5[_0xfb9ef1(0x248)](0x1,0x0,0x0,0x1,this[_0xfb9ef1(0xa3)],this[_0xfb9ef1(0x1aa)]===_0xfb9ef1(0x1c5)?0x0:-q),Ie[_0xfb9ef1(0x208)](_0x20afd5,{'text':this[_0xfb9ef1(0x20e)],'color':this['_color']}),_0x20afd5[_0xfb9ef1(0xee)]());}}var sn=Object[_0x350772(0x2c2)],nn=(_0x160518,_0x438ea1,_0x4adeef,_0x54026e)=>{const _0xa4e118=_0x350772;for(var _0x366ec0=_0x54026e>0x1?void 0x0:_0x54026e?sn(_0x438ea1,_0x4adeef):_0x438ea1,_0x4fbf1d=_0x160518[_0xa4e118(0x2e6)]-0x1,_0x1cb8dc;_0x4fbf1d>=0x0;_0x4fbf1d--)(_0x1cb8dc=_0x160518[_0x4fbf1d])&&(_0x366ec0=_0x1cb8dc(_0x366ec0)||_0x366ec0);return _0x366ec0;},Re=(_0x27bc3c,_0x198c9b)=>(_0x111d36,_0x271efa)=>_0x198c9b(_0x111d36,_0x271efa,_0x27bc3c);const rn=0x1389;let xe=class extends _0x3e95b8{constructor(_0x3b9e85,_0x469473,_0x33ae47,_0x4c88fa){const _0x480210=_0x350772;super(),_(this,'_cursors',new Set()),_(this,_0x480210(0x130),null),(this[_0x480210(0x13e)]=_0x3b9e85,this[_0x480210(0xe6)]=_0x469473,this[_0x480210(0x20d)]=_0x33ae47,this[_0x480210(0x29c)]=_0x4c88fa,this[_0x480210(0x2e4)]());}[_0x350772(0x2e4)](){const _0x1d28e2=_0x350772;this[_0x1d28e2(0xe6)]['currentSkeleton$'][_0x1d28e2(0xcb)](_0x140ecf(this[_0x1d28e2(0xa8)]),_0xa0b962(_0x24b4ba=>{const _0x362c99=_0x1d28e2;if(_0x24b4ba){const _0xfdbbde=_0x24b4ba[_0x362c99(0x16e)];return _0x264ffa(this['_collabCursorController'][_0x362c99(0x286)](this[_0x362c99(0x13e)]['unitId']),this[_0x362c99(0x29c)][_0x362c99(0x24e)])['pipe'](_0x273082(([_0x561fdc,_0x5f1957])=>{const _0x3f8b11=new Map();return _0x561fdc['forEach']((_0x2bf7b0,_0x2df34d)=>{const _0x52a482=_0x2f90;if(_0x2bf7b0[_0x52a482(0x2a9)]===_0xfdbbde){const _0x3d4e6a={..._0x2bf7b0};_0x3d4e6a[_0x52a482(0x231)]=this[_0x52a482(0x29c)][_0x52a482(0x149)](_0x2bf7b0['color']),_0x3f8b11[_0x52a482(0x279)](_0x2df34d,_0x3d4e6a);}}),{'skeleton':_0x24b4ba,'cursors':_0x3f8b11};}));}return _0x37bd79({'skeleton':null,'cursors':new Map()});}))[_0x1d28e2(0x28a)](({skeleton:_0x1a0aab,cursors:_0x20dbd8})=>{const _0x3eb81c=_0x1d28e2;this[_0x3eb81c(0xd1)](),_0x1a0aab&&this[_0x3eb81c(0x1e2)](_0x1a0aab,_0x20dbd8);}),this[_0x1d28e2(0xe6)][_0x1d28e2(0x13f)][_0x1d28e2(0x28a)](_0x38b86d=>{const _0x5535b9=_0x1d28e2;if(_0x38b86d==null)return;const {skeleton:_0x38ed05}=_0x38b86d,{scene:_0xd819a}=this['_context'];_0xd819a[_0x5535b9(0x187)][_0x5535b9(0x114)](_0x54c55d(_0x390f4c=>{const _0x1bec51=_0x5535b9;var _0x57c6d4,_0x34d60b;const {offsetX:_0x477e73,offsetY:_0x4cea53}=_0x390f4c,{x:_0x38880a,y:_0x5134cf}=_0xd819a[_0x1bec51(0x255)](_0x53f9d6[_0x1bec51(0x1a2)]([_0x477e73,_0x4cea53])),{scaleX:_0x1943c6,scaleY:_0xebeb6a}=_0xd819a['getAncestorScale'](),_0x2b52c9=_0xd819a['getViewport'](_0x3d904a[_0x1bec51(0xf1)]),_0x5a8391=_0xd819a[_0x1bec51(0x166)](_0x53f9d6[_0x1bec51(0x1a2)]([_0x38880a,_0x5134cf]),_0x2b52c9),_0x48b872=_0x38ed05['getCellPositionByOffset'](_0x477e73,_0x4cea53,_0x1943c6,_0xebeb6a,_0x5a8391);((_0x57c6d4=this[_0x1bec51(0x130)])==null?void 0x0:_0x57c6d4['column'])===_0x48b872[_0x1bec51(0x190)]&&((_0x34d60b=this['_lastPointer'])==null?void 0x0:_0x34d60b['row'])===_0x48b872['row']||this['_cursors'][_0x1bec51(0x237)](_0x1bcbad=>{const _0x1d1c57=_0x1bec51;_0x1bcbad[_0x1d1c57(0x15c)](_0x48b872);});},0x64));});}[_0x350772(0x1e2)](_0x372c9e,_0x4fa8cd){const _0x4916f0=_0x350772;var _0x354330;const _0x3d71c6=(_0x354330=this['_sheetSkeletonManagerService'][_0x4916f0(0xdc)]())==null?void 0x0:_0x354330[_0x4916f0(0xf0)];if(!_0x3d71c6)return;const _0x2cdb71=this[_0x4916f0(0x148)]();if(!_0x2cdb71)return;this[_0x4916f0(0x1c4)][_0x4916f0(0x237)](_0x33e0b9=>{_0x33e0b9['makeDirty']();});const {scene:_0x1e5705}=_0x2cdb71,_0x1d0212=on(Array[_0x4916f0(0x22d)](_0x4fa8cd[_0x4916f0(0x2b1)]()))[_0x4916f0(0xba)](_0x4aaf93=>{const _0x297a82=_0x4916f0,{color:_0x44329a,range:_0x3172f0,name:_0x2a8c07,selection:_0x488b1e,sheetID:_0x102717}=_0x4aaf93,{startColumn:_0x4f844b,startRow:_0x332929,endColumn:_0x340d6d,endRow:_0x289b7f}=_0x3172f0,_0x4878bb=_0x26559f(_0x332929,_0x4f844b,_0x1e5705,_0x3d71c6),_0x5d5660=_0x26559f(_0x289b7f,_0x340d6d,_0x1e5705,_0x3d71c6),{columnHeaderHeightAndMarginTop:_0x2f1410}=_0x3d71c6,{startX:_0x4eef3d,startY:_0x58b713}=_0x4878bb,{endX:_0x1c45b1,endY:_0x77ac6e}=_0x5d5660,_0x33ee82=_0x1c45b1-_0x4eef3d,_0x35a5b8=_0x77ac6e-_0x58b713,_0x4d1430={'labelPosition':_0x58b713-_0x2f1410>=q?_0x297a82(0x16c):'bottom','sheetID':_0x102717,'range':_0x3172f0,'color':_0x44329a,'name':_0x2a8c07,'selection':_0x488b1e,'left':_0x4eef3d,'top':_0x58b713,'width':_0x33ee82,'height':_0x35a5b8,'evented':!0x1,'zIndex':rn};return new tn(_0x2a8c07,_0x4d1430);});_0x1e5705['addObjects'](_0x1d0212,qi),this[_0x4916f0(0x1c4)]=new Set(_0x1d0212);}[_0x350772(0xd1)](){const _0x2581d9=_0x350772;var _0x27d0bd;(_0x27d0bd=this['_cursors'])==null||_0x27d0bd['forEach'](_0x56b801=>_0x56b801[_0x2581d9(0x1e0)]());}['_getSheetObject'](){const _0x112333=_0x350772;return _0x15f05b(this[_0x112333(0x13e)][_0x112333(0x298)],this[_0x112333(0x13e)]);}};xe=nn([Re(0x1,_0x1ada69(_0x301028)),Re(0x2,_0x1ada69(Y)),Re(0x3,_0x1ada69(_0x3617fd))],xe);function on(_0x5a5404){const _0x3e076d=_0x350772,_0x1615b1=new Map();return _0x5a5404[_0x3e076d(0x237)](_0x2fb7f2=>{const _0x4da6e0=_0x3e076d;if(_0x1615b1[_0x4da6e0(0x105)](_0x2fb7f2[_0x4da6e0(0x265)])){const _0x35168f=_0x1615b1['get'](_0x2fb7f2[_0x4da6e0(0x265)]);_0x35168f['name']+=',\x20'+_0x2fb7f2[_0x4da6e0(0x2c1)];}else _0x1615b1[_0x4da6e0(0x279)](_0x2fb7f2[_0x4da6e0(0x265)],_0x2fb7f2);}),Array[_0x3e076d(0x22d)](_0x1615b1[_0x3e076d(0x2b1)]());}var an=Object[_0x350772(0x2c2)],cn=(_0x7a321d,_0x1134ca,_0x2c9406,_0x48a62a)=>{for(var _0x566e82=_0x48a62a>0x1?void 0x0:_0x48a62a?an(_0x1134ca,_0x2c9406):_0x1134ca,_0x1dde6f=_0x7a321d['length']-0x1,_0x347611;_0x1dde6f>=0x0;_0x1dde6f--)(_0x347611=_0x7a321d[_0x1dde6f])&&(_0x566e82=_0x347611(_0x566e82)||_0x566e82);return _0x566e82;},k=(_0x47048c,_0x12d366)=>(_0x18363a,_0x9c8a20)=>_0x12d366(_0x18363a,_0x9c8a20,_0x47048c);let le=class extends _0x2d8b34{constructor(_0x53e0c3,_0x4f2014,_0x153d85,_0x23785a,_0x532fec,_0x4c3531){const _0x1bcbcf=_0x350772;super(),this[_0x1bcbcf(0x2a8)]=_0x53e0c3,this[_0x1bcbcf(0x21a)]=_0x4f2014,this[_0x1bcbcf(0x2d9)]=_0x153d85,this['_messageService']=_0x23785a,this[_0x1bcbcf(0x26f)]=_0x532fec,this['_localeService']=_0x4c3531,this['_setupBeforeClosingHandler'](),this[_0x1bcbcf(0x267)]();}[_0x350772(0xab)](){const _0x306564=_0x350772;this[_0x306564(0x222)](this[_0x306564(0x2a8)][_0x306564(0xb2)](()=>{const _0x301a69=_0x306564;if(this['_localCacheService']['saveTaskMap'][_0x301a69(0x2ce)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x35dac8=_0x350772;this[_0x35dac8(0x222)](this[_0x35dac8(0x2d9)][_0x35dac8(0x1b9)]['subscribe'](_0x4b1961=>{const _0x507663=_0x35dac8;_0x4b1961['id']===_0x2b9ee3['OTHER_CLIENT_EDITING']&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b['Warning'],'content':this['_localeService']['t'](_0x507663(0x203))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x25b)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0xb1)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x200))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x233)]&&this[_0x507663(0x26f)][_0x507663(0xb9)]({'title':this['_localeService']['t'](_0x507663(0xaa)),'content':this[_0x507663(0x252)]['t'](_0x507663(0x284)),'type':'error','duration':0x0}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x2af)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0x196)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x200))+'('+_0x4b1961[_0x507663(0x223)]+')'}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x1d8)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0xb1)],'content':this['_localeService']['t'](_0x4b1961['data']||'')}),_0x4b1961['id']===_0x2b9ee3['SOCKET_FAILED_RETRY']&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0xb1)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x1ea))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0xb0)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0x196)],'content':this[_0x507663(0x252)]['t'](_0x507663(0x2bc))}),_0x4b1961['id']===_0x2b9ee3[_0x507663(0x29e)]&&this[_0x507663(0x2bb)][_0x507663(0xb9)]({'type':_0x13949b[_0x507663(0x196)],'content':this['_localeService']['t'](_0x507663(0x2df))});}));}};le=cn([k(0x0,_0x48b30a),k(0x1,_0x5c5358),k(0x2,_0x1ada69(_0x9b1590)),k(0x3,_0x41069b),k(0x4,_0x2b8f27),k(0x5,_0x1ada69(_0x57786a))],le);const ln=_0x350772(0xf5),at={};var _n=Object[_0x350772(0x2c2)],hn=(_0x2e5925,_0x4608dd,_0x2543a8,_0x14e11b)=>{const _0x4378e0=_0x350772;for(var _0x27fd9f=_0x14e11b>0x1?void 0x0:_0x14e11b?_n(_0x4608dd,_0x2543a8):_0x4608dd,_0x31bc40=_0x2e5925[_0x4378e0(0x2e6)]-0x1,_0x26e9ba;_0x31bc40>=0x0;_0x31bc40--)(_0x26e9ba=_0x2e5925[_0x31bc40])&&(_0x27fd9f=_0x26e9ba(_0x27fd9f)||_0x27fd9f);return _0x27fd9f;},ct=(_0x1da711,_0x3ef6f8)=>(_0xe2002f,_0x1e8326)=>_0x3ef6f8(_0xe2002f,_0x1e8326,_0x1da711);let _e=class{constructor(_0x3ff888,_0x4422a0){const _0x1eb2b5=_0x350772;this['_transformService']=_0x3ff888,this[_0x1eb2b5(0x225)]=_0x4422a0;}['transformIMECache'](_0x13e0c8){const _0x4bade9=_0x350772;this[_0x4bade9(0x288)](_0x13e0c8),this[_0x4bade9(0x143)](_0x13e0c8);}['transformRemoteChangeset'](_0xbb41ba){const _0x447e64=_0x350772,{unitID:_0x1304e4}=_0xbb41ba,_0x390546=this[_0x447e64(0x225)][_0x447e64(0x1a9)](_0x1304e4)[_0x447e64(0x1ba)](_0x10bdfa),{redoCache:_0xac8d05}=_0x390546[_0x447e64(0x164)]();if(_0xac8d05[_0x447e64(0x2e6)]===0x0)return _0xbb41ba;let _0x5f050f=_0x2d642b['deepClone'](_0xbb41ba[_0x447e64(0x1c7)][0x0]);for(let _0x561070=0x0;_0x561070<_0xac8d05[_0x447e64(0x2e6)];_0x561070++){const _0x4cf302={'id':_0x447e64(0xe8),'params':{..._0xac8d05[_0x561070]}},_0x203845=this['_transformService'][_0x447e64(0x280)](_0x5f050f,_0x4cf302,!0x1);if(_0x456676(_0x203845))throw _0x203845[_0x447e64(0x246)];_0x5f050f=_0x203845['m1Prime'];}return{..._0x2d642b[_0x447e64(0xb8)](_0xbb41ba),'mutations':[_0x5f050f]};}[_0x350772(0x288)](_0x5f36cb){const _0xa8b578=_0x350772,{unitID:_0x25d9f1}=_0x5f36cb,_0x1877fa=this[_0xa8b578(0x225)]['getRenderById'](_0x25d9f1)[_0xa8b578(0x1ba)](_0x10bdfa),{undoCache:_0x5219cb,redoCache:_0x231030}=_0x1877fa[_0xa8b578(0x164)]();if(_0x5219cb[_0xa8b578(0x2e6)]===0x0||_0x231030['length']===0x0)return;const _0x17493f=[],_0x534ad9=[];let _0x2d7f99=_0x2d642b['deepClone'](_0x5f36cb[_0xa8b578(0x1c7)][0x0]),_0x3dbda4=_0x2d642b['deepClone'](_0x5f36cb[_0xa8b578(0x1c7)][0x0]);for(let _0x3c1098=_0x5219cb[_0xa8b578(0x2e6)]-0x1;_0x3c1098>=0x0;_0x3c1098--){const _0x10eef3={'id':_0xa8b578(0xe8),'params':{..._0x5219cb[_0x3c1098]}},_0x51e5e3={'id':_0xa8b578(0xe8),'params':{..._0x231030[_0x3c1098]}},_0x1b6dfa=this[_0xa8b578(0x2cc)]['transformMutation'](_0x2d7f99,_0x10eef3,!0x1),_0x1b2978=this[_0xa8b578(0x2cc)]['transformMutation'](_0x3dbda4,_0x51e5e3,!0x1);if(_0x456676(_0x1b6dfa))throw _0x1b6dfa[_0xa8b578(0x246)];if(_0x456676(_0x1b2978))throw _0x1b2978['error'];_0x17493f[_0xa8b578(0x180)](_0x1b6dfa[_0xa8b578(0x1cb)][_0xa8b578(0x22f)]),_0x534ad9[_0xa8b578(0x180)](_0x1b2978[_0xa8b578(0x1cb)][_0xa8b578(0x22f)]),_0x2d7f99=_0x1b6dfa['m1Prime'],_0x3dbda4=_0x1b2978[_0xa8b578(0xfc)];}_0x1877fa[_0xa8b578(0x2d7)]({'undoCache':_0x17493f,'redoCache':_0x534ad9});}[_0x350772(0x143)](_0x1c2fb2){const _0x527bb8=_0x350772,{unitID:_0x255da9}=_0x1c2fb2,_0x314b7a=this[_0x527bb8(0x225)][_0x527bb8(0x1a9)](_0x255da9)[_0x527bb8(0x1ba)](_0x10bdfa),_0xca0f1a=_0x314b7a[_0x527bb8(0x146)]();if(_0xca0f1a==null)return;const _0x5f225a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1c2fb2[_0x527bb8(0x2cd)],'actions':null,'textRanges':[_0xca0f1a]}}],_0x2e7288=this[_0x527bb8(0x2cc)][_0x527bb8(0x2c5)](_0x1c2fb2,_0x5f225a);if(!_0x1d6d36(_0x2e7288))throw _0x2e7288[_0x527bb8(0x246)];const _0x4663f4=_0x2e7288['m2Prime'][0x0][_0x527bb8(0x22f)][_0x527bb8(0x102)];Array['isArray'](_0x4663f4)&&_0x4663f4[_0x527bb8(0x2e6)]&&_0x314b7a[_0x527bb8(0xf4)](_0x4663f4[0x0]);}};_e=hn([ct(0x0,_0x3f4e3f),ct(0x1,_0xef866a)],_e);var un=Object['getOwnPropertyDescriptor'],dn=(_0x100a24,_0x3aeb12,_0xe579c1,_0x50327a)=>{const _0x1a95fb=_0x350772;for(var _0x4fa797=_0x50327a>0x1?void 0x0:_0x50327a?un(_0x3aeb12,_0xe579c1):_0x3aeb12,_0x35b718=_0x100a24[_0x1a95fb(0x2e6)]-0x1,_0x6ae35e;_0x35b718>=0x0;_0x35b718--)(_0x6ae35e=_0x100a24[_0x35b718])&&(_0x4fa797=_0x6ae35e(_0x4fa797)||_0x4fa797);return _0x4fa797;},De=(_0x3d1fdd,_0x2c579f)=>(_0x40ccf0,_0x2b0205)=>_0x2c579f(_0x40ccf0,_0x2b0205,_0x3d1fdd);let he=class{constructor(_0x232b5b,_0x4e9a80,_0x265fea){const _0x57d450=_0x350772;this[_0x57d450(0x12a)]=_0x232b5b,this[_0x57d450(0x2cc)]=_0x4e9a80,this['_docStateChangeManagerService']=_0x265fea;}[_0x350772(0x2a0)](_0x406c12){this['_transformHistoryAndStateStack'](_0x406c12);}[_0x350772(0x192)](_0x1b9af1){const _0x309489=_0x350772,{unitID:_0x2ce076}=_0x1b9af1,{collaboration:_0x421dbb}=this[_0x309489(0x169)][_0x309489(0x198)](_0x2ce076);if(_0x421dbb[_0x309489(0x2e6)]===0x0)return _0x1b9af1;let _0x14a0a9=_0x2d642b[_0x309489(0xb8)](_0x1b9af1[_0x309489(0x1c7)][0x0]);for(let _0x4251b8=0x0;_0x4251b8<_0x421dbb[_0x309489(0x2e6)];_0x4251b8++){const _0xac3f30={'id':_0x309489(0xe8),'params':{'unitId':_0x421dbb[_0x4251b8]['unitId'],..._0x421dbb[_0x4251b8][_0x309489(0x2a5)]}},_0x3c3d0a=this[_0x309489(0x2cc)][_0x309489(0x280)](_0x14a0a9,_0xac3f30,!0x1);if(_0x456676(_0x3c3d0a))throw _0x3c3d0a[_0x309489(0x246)];_0x14a0a9=_0x3c3d0a[_0x309489(0xfc)];}return{..._0x2d642b[_0x309489(0xb8)](_0x1b9af1),'mutations':[_0x14a0a9]};}[_0x350772(0x1bb)](_0x35860a){const _0x5cc18f=_0x350772,{unitID:_0x7f25c3}=_0x35860a,{history:_0xe38233,collaboration:_0x5eae92}=this[_0x5cc18f(0x169)][_0x5cc18f(0x198)](_0x7f25c3);if(_0xe38233[_0x5cc18f(0x2e6)]===0x0&&_0x5eae92[_0x5cc18f(0x2e6)]===0x0)return;const _0x55bf9f=[],_0x6c7737=[];let _0x458c25=_0x2d642b['deepClone'](_0x35860a['mutations'][0x0]),_0x57917d=_0x2d642b[_0x5cc18f(0xb8)](_0x35860a[_0x5cc18f(0x1c7)][0x0]);for(let _0x442866=_0xe38233['length']-0x1;_0x442866>=0x0;_0x442866--){const _0x105de2={'id':_0x5cc18f(0xe8),'params':{'unitId':_0xe38233[_0x442866][_0x5cc18f(0x154)],..._0xe38233[_0x442866][_0x5cc18f(0x296)]}},_0xcc926={'id':_0x5cc18f(0xe8),'params':{'unitId':_0xe38233[_0x442866][_0x5cc18f(0x154)],..._0xe38233[_0x442866][_0x5cc18f(0x2a5)]}},_0x4d07ef=this[_0x5cc18f(0x2cc)]['transformMutation'](_0x458c25,_0x105de2,!0x1),_0x218ff5=this['_transformService'][_0x5cc18f(0x280)](_0x57917d,_0xcc926,!0x1);if(_0x456676(_0x4d07ef))throw _0x4d07ef[_0x5cc18f(0x246)];if(_0x456676(_0x218ff5))throw _0x218ff5[_0x5cc18f(0x246)];_0x55bf9f['unshift']({..._0xe38233[_0x442866],'undoState':_0x4d07ef['m2Prime'][_0x5cc18f(0x22f)],'redoState':_0x218ff5['m2Prime'][_0x5cc18f(0x22f)]}),_0x458c25=_0x4d07ef[_0x5cc18f(0xfc)],_0x57917d=_0x218ff5['m1Prime'];}_0x458c25=_0x2d642b[_0x5cc18f(0xb8)](_0x35860a['mutations'][0x0]),_0x57917d=_0x2d642b[_0x5cc18f(0xb8)](_0x35860a[_0x5cc18f(0x1c7)][0x0]);for(let _0x2a7ac5=_0x5eae92[_0x5cc18f(0x2e6)]-0x1;_0x2a7ac5>=0x0;_0x2a7ac5--){const _0x5d6e7b={'id':_0x5cc18f(0xe8),'params':{'unitId':_0x5eae92[_0x2a7ac5][_0x5cc18f(0x154)],..._0x5eae92[_0x2a7ac5][_0x5cc18f(0x296)]}},_0x295bae={'id':_0x5cc18f(0xe8),'params':{'unitId':_0x5eae92[_0x2a7ac5]['unitId'],..._0x5eae92[_0x2a7ac5][_0x5cc18f(0x2a5)]}},_0x5d5c50=this[_0x5cc18f(0x2cc)]['transformMutation'](_0x458c25,_0x5d6e7b,!0x1),_0x4db733=this[_0x5cc18f(0x2cc)]['transformMutation'](_0x57917d,_0x295bae,!0x1);if(_0x456676(_0x5d5c50))throw _0x5d5c50[_0x5cc18f(0x246)];if(_0x456676(_0x4db733))throw _0x4db733[_0x5cc18f(0x246)];_0x6c7737[_0x5cc18f(0x180)]({..._0x5eae92[_0x2a7ac5],'undoState':_0x5d5c50[_0x5cc18f(0x1cb)][_0x5cc18f(0x22f)],'redoState':_0x4db733[_0x5cc18f(0x1cb)][_0x5cc18f(0x22f)]}),_0x458c25=_0x5d5c50[_0x5cc18f(0xfc)],_0x57917d=_0x4db733['m1Prime'];}this[_0x5cc18f(0x169)]['setStateCache'](_0x7f25c3,{'history':_0x55bf9f,'collaboration':_0x6c7737});}};he=dn([De(0x0,_0x1ada69(_0x37163f)),De(0x1,_0x3f4e3f),De(0x2,_0x1ada69(_0x25d3bb))],he);var fn=Object[_0x350772(0x2c2)],Sn=(_0x4baa8c,_0xe2140b,_0x24731b,_0x5bdf1e)=>{for(var _0x18ebcf=_0x5bdf1e>0x1?void 0x0:_0x5bdf1e?fn(_0xe2140b,_0x24731b):_0xe2140b,_0x2c3b69=_0x4baa8c['length']-0x1,_0x94ecc0;_0x2c3b69>=0x0;_0x2c3b69--)(_0x94ecc0=_0x4baa8c[_0x2c3b69])&&(_0x18ebcf=_0x94ecc0(_0x18ebcf)||_0x18ebcf);return _0x18ebcf;},lt=(_0x503192,_0x38217e)=>(_0x708c96,_0x1a1938)=>_0x38217e(_0x708c96,_0x1a1938,_0x503192);let ue=class{constructor(_0x239d06,_0x3ac525){this['_injector']=_0x239d06,this['_transformService']=_0x3ac525;}[_0x350772(0x18c)](_0x1ea133){const _0x1dcb68=_0x350772;var _0x230118;const _0x45f3aa=this[_0x1dcb68(0x12a)]['get'](_0x47440a),_0xb8127a=(_0x230118=_0x45f3aa[_0x1dcb68(0x2e1)]())!=null?_0x230118:[];if(_0xb8127a[_0x1dcb68(0x2e6)]===0x0)return;const _0x19b6de=_0x1ea133[_0x1dcb68(0x2cd)],_0x553cf3=[{'id':_0x1dcb68(0xe8),'params':{'unitId':_0x19b6de,'actions':null,'textRanges':_0xb8127a}}],_0x4c99aa=this[_0x1dcb68(0x2cc)][_0x1dcb68(0x2c5)](_0x1ea133,_0x553cf3);if(!_0x1d6d36(_0x4c99aa))throw _0x4c99aa['error'];const _0xb4fb2b=_0x4c99aa[_0x1dcb68(0x1cb)][0x0][_0x1dcb68(0x22f)][_0x1dcb68(0x102)];Array[_0x1dcb68(0x118)](_0xb4fb2b)&&_0xb4fb2b[_0x1dcb68(0x2e6)]&&_0x45f3aa['replaceDocRanges'](_0xb4fb2b,{'unitId':_0x19b6de,'subUnitId':_0x19b6de},!0x1);}};ue=Sn([lt(0x0,_0x1ada69(_0x37163f)),lt(0x1,_0x3f4e3f)],ue);var mn=Object[_0x350772(0x2c2)],In=(_0x526f7e,_0x4e92ea,_0x317568,_0x49621d)=>{const _0x405fb5=_0x350772;for(var _0x1300d7=_0x49621d>0x1?void 0x0:_0x49621d?mn(_0x4e92ea,_0x317568):_0x4e92ea,_0x3b37d4=_0x526f7e[_0x405fb5(0x2e6)]-0x1,_0x495bcd;_0x3b37d4>=0x0;_0x3b37d4--)(_0x495bcd=_0x526f7e[_0x3b37d4])&&(_0x1300d7=_0x495bcd(_0x1300d7)||_0x1300d7);return _0x1300d7;},U=(_0x1f2886,_0x479193)=>(_0x1c2f80,_0x4af24a)=>_0x479193(_0x1c2f80,_0x4af24a,_0x1f2886);let de=class extends _0x2d8b34{constructor(_0x3a4cd7,_0x22f27a,_0x2ef208,_0x22b67c,_0x4b1f6a,_0x2a413b,_0x52a370,_0x3c855c){const _0x434e7e=_0x350772;super(),_(this,_0x434e7e(0xea),new _0x1cc040(_0x180dd3[_0x434e7e(0x2b5)])),(this[_0x434e7e(0x169)]=_0x3a4cd7,this[_0x434e7e(0x2c3)]=_0x22f27a,this['_docTransformIMECacheService']=_0x2ef208,this[_0x434e7e(0x215)]=_0x22b67c,this[_0x434e7e(0xa9)]=_0x4b1f6a,this[_0x434e7e(0x24d)]=_0x2a413b,this['_messageService']=_0x52a370,this[_0x434e7e(0x252)]=_0x3c855c,this[_0x434e7e(0x139)]());}['_initEntityListener'](){const _0x5d69be=_0x350772;this[_0x5d69be(0x222)](this['_collaborationController'][_0x5d69be(0x123)][_0x5d69be(0x28a)](_0x14d07c=>{const _0x56a681=_0x5d69be,_0x2fddd6=this[_0x56a681(0x169)][_0x56a681(0x177)][_0x56a681(0x28a)](_0x31331c=>{const _0x65db5c=_0x56a681;if(_0x31331c==null)return;const {unitId:_0x5271d8,redoState:_0x3c8db8,commandId:_0x260aae}=_0x31331c;if(_0x5271d8!==_0x14d07c[_0x65db5c(0x2cd)])return;const _0x353e15={'id':_0x260aae,'type':_0x4dffdb[_0x65db5c(0x2d3)],'params':{'unitId':_0x5271d8,'actions':_0x3c8db8[_0x65db5c(0x2c0)],'textRanges':null}};_0x14d07c[_0x65db5c(0x214)](_0x353e15);});if(_0x14d07c['disposeWithMe'](_0x2fddd6),_0x14d07c instanceof _0xe5876){const _0x3af763={'onTransformIME':_0x434304=>this[_0x56a681(0x229)][_0x56a681(0x202)](_0x434304),'onTransformState':_0x10fc50=>this[_0x56a681(0x215)][_0x56a681(0x2a0)](_0x10fc50),'onTransformSelections':_0x5eeecb=>this[_0x56a681(0xa9)]['transformSelections'](_0x5eeecb),'onSyncEditingCollabCursor':_0x5299c3=>this[_0x56a681(0x24d)]['syncEditingCollabCursor'](_0x5299c3),'onTransformRemoteChangesetByIMECache':_0x5aa5ff=>this[_0x56a681(0x229)][_0x56a681(0x192)](_0x5aa5ff),'onTransformRemoteChangesetByStateCache':_0x12b0c8=>this[_0x56a681(0x215)][_0x56a681(0x192)](_0x12b0c8)};_0x14d07c['addHandlerCallback'](_0x3af763);}}));}};de=In([U(0x0,_0x1ada69(_0x25d3bb)),U(0x1,_0x1ada69(_0x1e6a4e)),U(0x2,_0x1ada69(_e)),U(0x3,_0x1ada69(he)),U(0x4,_0x1ada69(ue)),U(0x5,_0x1ada69(Ke)),U(0x6,_0x41069b),U(0x7,_0x1ada69(_0x57786a))],de);var Q=(_0x28ee1b=>(_0x28ee1b[_0x28ee1b[_0x350772(0x1f7)]=0x0]=_0x350772(0x1f7),_0x28ee1b[_0x28ee1b['OK']=0x1]='OK',_0x28ee1b[_0x28ee1b[_0x350772(0x1f6)]=0x2]=_0x350772(0x1f6),_0x28ee1b[_0x28ee1b['PERMISSION_DENIED']=0x3]=_0x350772(0x233),_0x28ee1b[_0x28ee1b[_0x350772(0x142)]=0x4]=_0x350772(0x142),_0x28ee1b[_0x28ee1b[_0x350772(0x11f)]=0x5]=_0x350772(0x11f),_0x28ee1b[_0x28ee1b['ALREADY_EXISTS']=0x6]=_0x350772(0x20c),_0x28ee1b[_0x28ee1b['INVALID_ARGUMENT']=0x7]=_0x350772(0x224),_0x28ee1b[_0x28ee1b[_0x350772(0x1db)]=0x8]=_0x350772(0x1db),_0x28ee1b[_0x28ee1b[_0x350772(0x111)]=0x9]='COMPLETION_FINISHED',_0x28ee1b[_0x28ee1b[_0x350772(0x19c)]=0xa]=_0x350772(0x19c),_0x28ee1b[_0x28ee1b[_0x350772(0x273)]=0xb]=_0x350772(0x273),_0x28ee1b[_0x28ee1b[_0x350772(0x171)]=0xc]=_0x350772(0x171),_0x28ee1b[_0x28ee1b['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x350772(0x2a4),_0x28ee1b[_0x28ee1b['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]=_0x350772(0x15a),_0x28ee1b[_0x28ee1b[_0x350772(0x17d)]=0xf]=_0x350772(0x17d),_0x28ee1b[_0x28ee1b['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x350772(0xd4),_0x28ee1b[_0x28ee1b[_0x350772(0x228)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x28ee1b[_0x28ee1b[_0x350772(0x1a7)]=0x65]=_0x350772(0x1a7),_0x28ee1b[_0x28ee1b[_0x350772(0x260)]=0xc9]=_0x350772(0x260),_0x28ee1b[_0x28ee1b['USER_IS_ANONYMOUS']=0xca]=_0x350772(0xe2),_0x28ee1b[_0x28ee1b[_0x350772(0x26a)]=0x1389]=_0x350772(0x26a),_0x28ee1b[_0x28ee1b[_0x350772(0x270)]=0x1771]=_0x350772(0x270),_0x28ee1b[_0x28ee1b[_0x350772(0xc3)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x28ee1b[_0x28ee1b[_0x350772(0x23f)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x28ee1b[_0x28ee1b[_0x350772(0x116)]=0x1b59]=_0x350772(0x116),_0x28ee1b[_0x28ee1b[_0x350772(0x1da)]=0x1b5a]=_0x350772(0x1da),_0x28ee1b[_0x28ee1b[_0x350772(0xdd)]=0x1b5b]=_0x350772(0xdd),_0x28ee1b[_0x28ee1b[_0x350772(0x2a1)]=0x1b5c]=_0x350772(0x2a1),_0x28ee1b[_0x28ee1b[_0x350772(0x29a)]=0x1b5d]=_0x350772(0x29a),_0x28ee1b[_0x28ee1b[_0x350772(0x1a4)]=0x1f41]=_0x350772(0x1a4),_0x28ee1b[_0x28ee1b[_0x350772(0xac)]=0x2329]=_0x350772(0xac),_0x28ee1b[_0x28ee1b[_0x350772(0x28b)]=0x232a]=_0x350772(0x28b),_0x28ee1b[_0x28ee1b[_0x350772(0x1fe)]=0x232b]=_0x350772(0x1fe),_0x28ee1b[_0x28ee1b['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x350772(0x27e),_0x28ee1b[_0x28ee1b[_0x350772(0x2ac)]=0x232d]=_0x350772(0x2ac),_0x28ee1b[_0x28ee1b['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x350772(0x12b),_0x28ee1b[_0x28ee1b[_0x350772(0x195)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x28ee1b[_0x28ee1b[_0x350772(0x1d6)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x28ee1b[_0x28ee1b[_0x350772(0x173)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x28ee1b[_0x28ee1b[_0x350772(0x204)]=0x271a]=_0x350772(0x204),_0x28ee1b[_0x28ee1b[_0x350772(0xbc)]=0x271b]=_0x350772(0xbc),_0x28ee1b[_0x28ee1b['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x350772(0x26d),_0x28ee1b[_0x28ee1b[_0x350772(0xaf)]=0x271d]=_0x350772(0xaf),_0x28ee1b[_0x28ee1b[_0x350772(0xff)]=0x271e]=_0x350772(0xff),_0x28ee1b[_0x28ee1b[_0x350772(0x170)]=0x271f]=_0x350772(0x170),_0x28ee1b[_0x28ee1b[_0x350772(0x1d1)]=0x2720]=_0x350772(0x1d1),_0x28ee1b[_0x28ee1b[_0x350772(0x1dd)]=0x2af9]=_0x350772(0x1dd),_0x28ee1b[_0x28ee1b[_0x350772(0x257)]=0x2ee1]=_0x350772(0x257),_0x28ee1b[_0x28ee1b[_0x350772(0x167)]=0x2ee2]=_0x350772(0x167),_0x28ee1b[_0x28ee1b[_0x350772(0x1f2)]=0x2ee3]=_0x350772(0x1f2),_0x28ee1b[_0x28ee1b[_0x350772(0x122)]=0x2ee4]=_0x350772(0x122),_0x28ee1b[_0x28ee1b[_0x350772(0xf9)]=0x2ee5]=_0x350772(0xf9),_0x28ee1b[_0x28ee1b[_0x350772(0x13c)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x28ee1b[_0x28ee1b['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x350772(0x129),_0x28ee1b[_0x28ee1b[_0x350772(0x14d)]=0x32cb]=_0x350772(0x14d),_0x28ee1b[_0x28ee1b[_0x350772(0xe7)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x28ee1b[_0x28ee1b[_0x350772(0x2a6)]=0x36b2]=_0x350772(0x2a6),_0x28ee1b[_0x28ee1b[_0x350772(0x2dd)]=0x36b3]=_0x350772(0x2dd),_0x28ee1b[_0x28ee1b[_0x350772(0x107)]=0x36b4]=_0x350772(0x107),_0x28ee1b[_0x28ee1b[_0x350772(0xae)]=0x3715]=_0x350772(0xae),_0x28ee1b[_0x28ee1b[_0x350772(0x2ab)]=0x3716]=_0x350772(0x2ab),_0x28ee1b[_0x28ee1b[_0x350772(0x1ab)]=0x37dd]=_0x350772(0x1ab),_0x28ee1b[_0x28ee1b[_0x350772(0x19a)]=0x3a99]=_0x350772(0x19a),_0x28ee1b[_0x28ee1b[_0x350772(0x108)]=0x3a9a]=_0x350772(0x108),_0x28ee1b[_0x28ee1b['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x350772(0x20a),_0x28ee1b[_0x28ee1b[_0x350772(0x17c)]=0x3a9c]=_0x350772(0x17c),_0x28ee1b[_0x28ee1b[_0x350772(0xc0)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x28ee1b[_0x28ee1b[_0x350772(0x136)]=0x3a9e]=_0x350772(0x136),_0x28ee1b[_0x28ee1b[_0x350772(0x25f)]=0x3a9f]=_0x350772(0x25f),_0x28ee1b[_0x28ee1b[_0x350772(0x242)]=-0x1]=_0x350772(0x242),_0x28ee1b))(Q||{});function gn(_0x56dd13){const _0x235e50=_0x350772;var _0x33b6a7,_0x1e9e1a;const _0x2b22aa=(_0x33b6a7=_0x56dd13['stageInfo'])==null?void 0x0:_0x33b6a7['stage'],_0xf77972=((_0x1e9e1a=_0x56dd13[_0x235e50(0x285)])==null?void 0x0:_0x1e9e1a[_0x235e50(0x2da)])||0x0;return _0x2b22aa===_0x33c948[_0x235e50(0x220)]&&_0xf77972>0x0;}function vn(_0x5b54d9){const _0xe9f166=_0x350772;return _0x5b54d9[_0xe9f166(0xf3)]===_0x323fe9['SUCCESS'];}var En=Object[_0x350772(0x2c2)],pn=(_0xd93e7e,_0x149de7,_0x5d415e,_0x50ee24)=>{for(var _0x3223a0=_0x50ee24>0x1?void 0x0:_0x50ee24?En(_0x149de7,_0x5d415e):_0x149de7,_0x3cef2c=_0xd93e7e['length']-0x1,_0x179233;_0x3cef2c>=0x0;_0x3cef2c--)(_0x179233=_0xd93e7e[_0x3cef2c])&&(_0x3223a0=_0x179233(_0x3223a0)||_0x3223a0);return _0x3223a0;},w=(_0x54315f,_0xbc81c4)=>(_0xa67a56,_0x5d0c96)=>_0xbc81c4(_0xa67a56,_0x5d0c96,_0x54315f);const On=_0x350772(0xf6),Tn=_0x350772(0x141),Cn='/universer-api/license/formula/limit/done';let fe=class extends _0x2d8b34{constructor(_0x19abff,_0x144f77,_0x3e6855,_0x1fc45c,_0x57f780,_0x102307,_0x25f477){const _0x598a1f=_0x350772;super(),_(this,_0x598a1f(0x1e5),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x598a1f(0x18d),0x0),_(this,_0x598a1f(0x2b0),[]),_(this,_0x598a1f(0xdb),0x0),(this[_0x598a1f(0x2bb)]=_0x19abff,this['_commandService']=_0x144f77,this[_0x598a1f(0x295)]=_0x3e6855,this['_httpService']=_0x1fc45c,this['_univerInstanceService']=_0x57f780,this['_logService']=_0x102307,this[_0x598a1f(0x252)]=_0x25f477,this[_0x598a1f(0x1ce)]());}[_0x350772(0x1ce)](){const _0x525379=_0x350772;this[_0x525379(0x222)](this[_0x525379(0xe1)][_0x525379(0x1cc)]((_0x47237a,_0x1e3815)=>{const _0x20f660=_0x525379;if(_0x47237a['id']!==_0x17319b['id'])return;const _0x5a5504=_0x47237a[_0x20f660(0x22f)];if(!this[_0x20f660(0x277)](_0x5a5504[_0x20f660(0x2d8)]))return;if(!this[_0x20f660(0x184)]())throw this[_0x20f660(0x1b1)](_0x47237a,_0x1e3815),this['_showGuardMessage'](),new _0x140840();})),this[_0x525379(0x222)](this[_0x525379(0xe1)][_0x525379(0x162)]((_0x30ced5,_0x347ab8)=>{const _0x4df4e2=_0x525379;if(_0x30ced5['id']!==_0x37a5a7['id'])return;const _0x13c5c9=_0x30ced5[_0x4df4e2(0x22f)];if(gn(_0x13c5c9)){const _0x2d85e1=_0x43b449();this[_0x4df4e2(0x2b0)][_0x4df4e2(0x25d)](_0x2d85e1),this[_0x4df4e2(0x254)](_0x2d85e1);}else{if(vn(_0x13c5c9)&&this[_0x4df4e2(0x2b0)][_0x4df4e2(0x2e6)]>0x0){const _0x5a97c3=this[_0x4df4e2(0x2b0)][_0x4df4e2(0x1de)]();this[_0x4df4e2(0x1d5)](_0x5a97c3);}}}));}[_0x350772(0x1e0)](){const _0x2e4d51=_0x350772;super[_0x2e4d51(0x1e0)](),this[_0x2e4d51(0x159)](),this[_0x2e4d51(0x2b0)]=[],this[_0x2e4d51(0x18d)]=0x0,this[_0x2e4d51(0x21c)]=0x0,this[_0x2e4d51(0xdb)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x250bb8,_0x4c3612){const _0x3dfef0=_0x350772;for(let _0x4103d4=0x0;_0x4103d4<0x1e;_0x4103d4++)try{if(await this[_0x3dfef0(0x271)](),this[_0x3dfef0(0x184)]()){this[_0x3dfef0(0x289)](_0x250bb8,_0x4c3612),this['_messageService']['show']({'content':this[_0x3dfef0(0x252)]['t'](_0x3dfef0(0x227)),'type':_0x13949b[_0x3dfef0(0x1fd)]});return;}await new Promise(_0x5b7588=>{const _0x280381=_0x3dfef0;this[_0x280381(0x1e5)]=window['setTimeout'](_0x5b7588,0x3e8);});}catch(_0xf30d98){this['_logService'][_0x3dfef0(0x246)](_0xf30d98);}this[_0x3dfef0(0x2bb)][_0x3dfef0(0xb9)]({'content':this[_0x3dfef0(0x252)]['t'](_0x3dfef0(0x186)),'type':_0x13949b['Error']});}[_0x350772(0x289)](_0x1fdb2d,_0x141322){const _0x5edcfb=_0x350772;try{this[_0x5edcfb(0xe1)]['executeCommand'](_0x1fdb2d['id'],_0x1fdb2d[_0x5edcfb(0x22f)],_0x141322);}catch(_0x4ffe0b){this[_0x5edcfb(0x1cf)][_0x5edcfb(0x246)](_0x4ffe0b);}}[_0x350772(0x2c6)](_0x30a87d,_0x3692c5){const _0x188ce2=_0x350772;_0x3692c5<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x3692c5,this[_0x188ce2(0x21c)]=Number[_0x188ce2(0x18e)](_0x30a87d[_0x188ce2(0x18f)]),this['_currentUsage']=Number[_0x188ce2(0x18e)](_0x30a87d[_0x188ce2(0x16a)]));}async[_0x350772(0x254)](_0x12f5af){const _0x524fbe=_0x350772;var _0x5cdebc,_0x29a51a;const _0x587c01=Date['now']();try{const _0x428be7=((_0x5cdebc=this[_0x524fbe(0x295)]['getConfig'](_0x3fa50f))==null?void 0x0:_0x5cdebc[_0x524fbe(0x28e)])||Tn,_0x5bde05=(await this[_0x524fbe(0x22c)][_0x524fbe(0x2b7)](_0x428be7,{'body':JSON['stringify']({'taskId':_0x12f5af})}))[_0x524fbe(0xd3)];if(((_0x29a51a=_0x5bde05[_0x524fbe(0x246)])==null?void 0x0:_0x29a51a['code'])!==Q['OK'])return;this['_setFormulaLimitStatus'](_0x5bde05[_0x524fbe(0x135)],_0x587c01);}catch(_0x42a495){this[_0x524fbe(0x1cf)]['error'](_0x42a495);}}async[_0x350772(0x271)](_0x1e1f86){const _0x11bd8c=_0x350772;var _0x2a4098,_0x54a063;const _0x3810b7=Date[_0x11bd8c(0x2b2)]();try{const _0x2d3fb7=((_0x2a4098=this[_0x11bd8c(0x295)]['getConfig'](_0x3fa50f))==null?void 0x0:_0x2a4098[_0x11bd8c(0x27f)])||On,_0x5e2e4b=_0x1e1f86?_0x2d3fb7+'?taskId='+encodeURIComponent(_0x1e1f86):_0x2d3fb7,_0x4f578a=(await this[_0x11bd8c(0x22c)][_0x11bd8c(0xc6)](_0x5e2e4b))[_0x11bd8c(0xd3)];if(((_0x54a063=_0x4f578a[_0x11bd8c(0x246)])==null?void 0x0:_0x54a063['code'])!==Q['OK'])return;this['_setFormulaLimitStatus'](_0x4f578a[_0x11bd8c(0x135)],_0x3810b7);}catch(_0x420195){this[_0x11bd8c(0x1cf)]['error'](_0x420195);}}async[_0x350772(0x1d5)](_0x3f9592){const _0x3a8913=_0x350772;var _0x1c7ddb,_0x4c3121;const _0x9c1884=Date[_0x3a8913(0x2b2)]();try{const _0x3630a6=((_0x1c7ddb=this[_0x3a8913(0x295)][_0x3a8913(0x181)](_0x3fa50f))==null?void 0x0:_0x1c7ddb[_0x3a8913(0xb4)])||Cn,_0x293317=(await this[_0x3a8913(0x22c)]['post'](_0x3630a6,{'body':JSON[_0x3a8913(0x1c3)]({'taskId':_0x3f9592})}))[_0x3a8913(0xd3)];if(((_0x4c3121=_0x293317[_0x3a8913(0x246)])==null?void 0x0:_0x4c3121[_0x3a8913(0x1c1)])!==Q['OK'])return;this[_0x3a8913(0x2c6)](_0x293317[_0x3a8913(0x135)],_0x9c1884);}catch(_0x5e4912){this[_0x3a8913(0x1cf)][_0x3a8913(0x246)](_0x5e4912);}}[_0x350772(0x184)](){const _0x2ceb52=_0x350772;return this[_0x2ceb52(0x21c)]===0x0?!0x0:this[_0x2ceb52(0x21c)]-this[_0x2ceb52(0x18d)]>0x0;}[_0x350772(0x159)](){const _0x4e9d58=_0x350772;this[_0x4e9d58(0x1e5)]&&(clearTimeout(this['_pollingInterval']),this[_0x4e9d58(0x1e5)]=null);}[_0x350772(0x24c)](){const _0x1c08f7=_0x350772;this[_0x1c08f7(0x2bb)][_0x1c08f7(0xb9)]({'content':this['_localeService']['t']('formula.calculation.waiting'),'type':_0x13949b[_0x1c08f7(0x12c)]});}[_0x350772(0x277)](_0x433c3c){const _0x4d0137=_0x350772;for(const _0x438475 of _0x433c3c){const {unitId:_0x537e50,sheetId:_0x36bdf9,range:_0x435626}=_0x438475,_0x32f073=this['_univerInstanceService'][_0x4d0137(0x261)](_0x537e50);if(!_0x32f073)continue;const _0x57cb97=_0x32f073['getSheetBySheetId'](_0x36bdf9);if(!_0x57cb97)continue;const _0x2f6394=_0x57cb97[_0x4d0137(0x2de)]();for(let _0x430249=_0x435626[_0x4d0137(0x18b)];_0x430249<=_0x435626['endRow'];_0x430249++)for(let _0x18499a=_0x435626[_0x4d0137(0xbe)];_0x18499a<=_0x435626[_0x4d0137(0x2ba)];_0x18499a++){const _0x511ddd=_0x2f6394['getValue'](_0x430249,_0x18499a);if(_0x511ddd&&(_0x1c6988(_0x511ddd['f'])||_0x392987(_0x511ddd['si'])))return!0x0;}}return!0x1;}};fe=pn([w(0x0,_0x1ada69(_0x41069b)),w(0x1,_0x5df3ab),w(0x2,_0x20c298),w(0x3,_0x1ada69(_0x1def6f)),w(0x4,_0xbcb279),w(0x5,_0x3d4f4a),w(0x6,_0x1ada69(_0x57786a))],fe);var Rn=Object[_0x350772(0x2c2)],Dn=(_0x57d97c,_0x4e822c,_0x431f11,_0x61d486)=>{const _0x1afa99=_0x350772;for(var _0x4ed2a2=_0x61d486>0x1?void 0x0:_0x61d486?Rn(_0x4e822c,_0x431f11):_0x4e822c,_0x502abb=_0x57d97c[_0x1afa99(0x2e6)]-0x1,_0x593618;_0x502abb>=0x0;_0x502abb--)(_0x593618=_0x57d97c[_0x502abb])&&(_0x4ed2a2=_0x593618(_0x4ed2a2)||_0x4ed2a2);return _0x4ed2a2;},be=(_0x579a40,_0x4a0ec0)=>(_0x14879b,_0x6b36e)=>_0x4a0ec0(_0x14879b,_0x6b36e,_0x579a40);let Be=class extends _0x2d8b34{constructor(_0x271924,_0x1342f0,_0x901ab1){const _0x3e47f2=_0x350772;super(),_(this,_0x3e47f2(0x2dc),new Map()),_(this,_0x3e47f2(0x10a),new Map()),_(this,'_disabled',!0x1),(this[_0x3e47f2(0x295)]=_0x271924,this[_0x3e47f2(0x221)]=_0x1342f0,this[_0x3e47f2(0xc7)]=_0x901ab1);}['disableLocalCache'](){const _0x3c99c4=_0x350772;this[_0x3c99c4(0xce)]=!0x0;}[_0x350772(0x175)](){const _0xd615c2=_0x350772;this[_0xd615c2(0xce)]=!0x1;}get[_0x350772(0x197)](){return this['_saveTaskMap'];}[_0x350772(0x1e0)](){const _0x1eb14d=_0x350772;this[_0x1eb14d(0x243)]()[_0x1eb14d(0x1e9)](()=>super[_0x1eb14d(0x1e0)]());}async['loadOfflineData'](_0x1d7d4a){const _0x5d3a55=_0x350772;return this[_0x5d3a55(0xce)]?null:this[_0x5d3a55(0x221)][_0x5d3a55(0x16b)](_0x40a77a(_0x1d7d4a));}async['saveOfflineData'](_0xac3589,_0x132a45){const _0xb18ab2=_0x350772;return!!this[_0xb18ab2(0x221)]['setItem'](_0xac3589,_0x132a45);}[_0x350772(0x174)](_0x22dc86,_0x6b9fc6,_0x3ce378,_0x563427){const _0x1259eb=_0x350772,_0x21fe34=this[_0x1259eb(0xc7)][_0x1259eb(0x2e5)](_0x22dc86);this[_0x1259eb(0x2dc)][_0x1259eb(0x279)](_0x22dc86,{'unitID':_0x22dc86,'type':_0x6b9fc6,'awaitingChangeset':_0x3ce378,'mutations':_0x563427,'rev':_0x21fe34}),this[_0x1259eb(0x10a)]['has'](_0x22dc86)||this['_scheduleSaving'](_0x22dc86);}[_0x350772(0x145)](_0x1ac191){const _0x4c955c=_0x350772,_0x295b93=this[_0x4c955c(0x293)]();_0x295b93===0x0?this[_0x4c955c(0x1eb)](_0x1ac191):this[_0x4c955c(0x10a)][_0x4c955c(0x279)](_0x1ac191,setTimeout(()=>this[_0x4c955c(0x1eb)](_0x1ac191),_0x295b93));}[_0x350772(0x293)](){const _0x364f2f=_0x350772;var _0x2d7e6a;return(_0x2d7e6a=this[_0x364f2f(0x295)][_0x364f2f(0x181)](_0x251a18))!=null?_0x2d7e6a:_0x1de824;}['_saveCache'](_0x26a02b){const _0xf09020=_0x350772,_0x39f022=this[_0xf09020(0x10a)][_0xf09020(0xc6)](_0x26a02b);return _0x39f022!==void 0x0&&window['clearTimeout'](_0x39f022),this['_localStorageService'][_0xf09020(0x272)](_0x40a77a(_0x26a02b),this[_0xf09020(0x2dc)][_0xf09020(0xc6)](_0x26a02b))[_0xf09020(0x1e9)](()=>this[_0xf09020(0x10a)][_0xf09020(0x218)](_0x26a02b));}async[_0x350772(0x243)](){const _0x345858=_0x350772,_0x133607=[];this[_0x345858(0x10a)][_0x345858(0x237)]((_0x1c9061,_0xe51f53)=>{const _0xc7ded0=_0x345858;window[_0xc7ded0(0x253)](_0x1c9061),_0x133607[_0xc7ded0(0x25d)](this[_0xc7ded0(0x1eb)](_0xe51f53)[_0xc7ded0(0x1e9)](()=>{const _0x1e1523=_0xc7ded0;this['_saveTaskMap'][_0x1e1523(0x218)](_0xe51f53);}));}),await Promise[_0x345858(0x297)](_0x133607);}};Be=Dn([be(0x0,_0x20c298),be(0x1,_0x48d2fd),be(0x2,_0x1ada69(_0x18b0c3))],Be);class bn extends _0x3e95b8{constructor(){const _0x47a822=_0x350772;super(),_(this,_0x47a822(0x26e)),this['urlChange$']=_0x46d8b5(window,_0x47a822(0x2bd))[_0x47a822(0xcb)](_0x561bd3(this[_0x47a822(0xa8)]),_0x341114(0x1),_0x477239(void 0x0));}[_0x350772(0x117)](_0x1f2b96,_0x787749,_0x4acc56=!0x1){const _0x4e36b4=_0x350772,_0x318e2a=new URL(window[_0x4e36b4(0x239)][_0x4e36b4(0x15b)]);_0x318e2a[_0x4e36b4(0x1e6)][_0x4e36b4(0x279)](_0x1f2b96,_0x787749),_0x4acc56?window['history'][_0x4e36b4(0xb7)]('','',_0x318e2a[_0x4e36b4(0x207)]()):window[_0x4e36b4(0x2d0)]['pushState']('','',_0x318e2a[_0x4e36b4(0x207)]());}[_0x350772(0x134)](_0x1ccd0a,_0x53ebff=!0x1){const _0x5904de=_0x350772,_0x49c7a6=new URL(window[_0x5904de(0x239)]['href']);_0x49c7a6[_0x5904de(0x1e6)][_0x5904de(0x218)](_0x1ccd0a),_0x53ebff?window[_0x5904de(0x2d0)][_0x5904de(0xb7)]('','',_0x49c7a6[_0x5904de(0x207)]()):window['history']['pushState']('','',_0x49c7a6[_0x5904de(0x207)]());}[_0x350772(0x1d7)](_0x882bef){const _0x448033=_0x350772;var _0x2250cb;return(_0x2250cb=new URL(window[_0x448033(0x239)]['href'])['searchParams']['get'](_0x882bef))!=null?_0x2250cb:void 0x0;}}var Nn=Object[_0x350772(0x14f)],Un=Object[_0x350772(0x2c2)],Ln=(_0x3871c4,_0x542d8b,_0x3a5f86)=>_0x542d8b in _0x3871c4?Nn(_0x3871c4,_0x542d8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a5f86}):_0x3871c4[_0x542d8b]=_0x3a5f86,Mn=(_0x26aaf9,_0x495e4c,_0x51f001,_0x244dd1)=>{const _0x183879=_0x350772;for(var _0x6e9223=_0x244dd1>0x1?void 0x0:_0x244dd1?Un(_0x495e4c,_0x51f001):_0x495e4c,_0x225b2f=_0x26aaf9[_0x183879(0x2e6)]-0x1,_0x444491;_0x225b2f>=0x0;_0x225b2f--)(_0x444491=_0x26aaf9[_0x225b2f])&&(_0x6e9223=_0x444491(_0x6e9223)||_0x6e9223);return _0x6e9223;},Ne=(_0x1e2aa3,_0x33c8e5)=>(_0x2a56c2,_0x226e80)=>_0x33c8e5(_0x2a56c2,_0x226e80,_0x1e2aa3),An=(_0x23c978,_0x446f7f,_0x1a984b)=>Ln(_0x23c978,_0x446f7f+'',_0x1a984b);const Pn='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';let Fe=class extends _0x47149e{constructor(_0x2bb7b9=at,_0x296926,_0x53504d,_0x4cf8af){const _0x256008=_0x350772;super(),this[_0x256008(0x2aa)]=_0x2bb7b9,this[_0x256008(0x225)]=_0x296926,this[_0x256008(0x12a)]=_0x53504d,this[_0x256008(0x295)]=_0x4cf8af;const {..._0x5bd733}=_0x1e3d46({},at,this[_0x256008(0x2aa)]);this[_0x256008(0x295)][_0x256008(0x121)](ln,_0x5bd733);}[_0x350772(0xf8)](){const _0x5cd576=_0x350772;this[_0x5cd576(0x26b)](),this[_0x5cd576(0x104)]();}[_0x350772(0x133)](){this['_registerRenderDependencies']();}[_0x350772(0x26b)](){const _0x320d2f=_0x350772;var _0x53c479;const _0x3c0f00=[[Ge],[fe],[ue],[_e],[he],[Ke],[Pt,{'useClass':bn}],[_0x51a87f,{'useClass':_0x5c837c}],[_0x5c5358,{'useClass':Be}],[ae],[de],[le],[Y],[Pe],[ce]];_0x535a10(this[_0x320d2f(0x12a)],_0x8250d8(_0x3c0f00,(_0x53c479=this[_0x320d2f(0x2aa)])==null?void 0x0:_0x53c479['override']));}[_0x350772(0x256)](){const _0x4b575e=_0x350772;this[_0x4b575e(0x222)](this[_0x4b575e(0x225)][_0x4b575e(0x240)](_0x2ebb81[_0x4b575e(0x1ed)],[$e])),this['disposeWithMe'](this[_0x4b575e(0x225)]['registerRenderModule'](_0x2ebb81[_0x4b575e(0xb6)],[xe]));}['_initDependencies'](){const _0x5b2c89=_0x350772;_0x8549f3(this[_0x5b2c89(0x12a)],[[Y],[ae],[de],[le],[ce],[fe]]);}};An(Fe,'pluginName',Pn),Fe=Mn([_0x418b27(_0x39440b),Ne(0x1,_0xef866a),Ne(0x2,_0x1ada69(_0x37163f)),Ne(0x3,_0x20c298)],Fe);var wn=Object['getOwnPropertyDescriptor'],yn=(_0x216aa8,_0x4ae7c6,_0x3d2d41,_0x3da8d5)=>{const _0x345e5a=_0x350772;for(var _0xdd45a0=_0x3da8d5>0x1?void 0x0:_0x3da8d5?wn(_0x4ae7c6,_0x3d2d41):_0x4ae7c6,_0x67900b=_0x216aa8[_0x345e5a(0x2e6)]-0x1,_0x1e91d4;_0x67900b>=0x0;_0x67900b--)(_0x1e91d4=_0x216aa8[_0x67900b])&&(_0xdd45a0=_0x1e91d4(_0xdd45a0)||_0xdd45a0);return _0xdd45a0;},Z=(_0x10b8a7,_0x3625ed)=>(_0x3c0f81,_0x2f2153)=>_0x3625ed(_0x3c0f81,_0x2f2153,_0x10b8a7);let _t=class extends _0x569b8c{constructor(_0x30aa31,_0x3e7a6e,_0x5d67a3,_0x20163a,_0x279767){super(_0x30aa31,_0x3e7a6e,_0x5d67a3,_0x20163a,_0x279767);}async[_0x350772(0x150)](_0x219d70){const _0x432486=_0x350772,_0xf24dea=await this[_0x432486(0x179)](),_0x5d2f65=this[_0x432486(0xc4)](_0x219d70,_0xf24dea);return this[_0x432486(0x2e2)](_0x5d2f65);}[_0x350772(0xc4)](_0x47cf2d,_0x42ccef){const _0x484103=_0x350772,_0x4ff463=typeof window>'u'?new URL(_0x47cf2d):new URL(_0x47cf2d,window[_0x484103(0x239)][_0x484103(0x1c8)]);_0x4ff463['searchParams']['set'](_0x484103(0x278),_0x42ccef);const _0x4922f0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x484103(0x239)][_0x484103(0xda)]);return _0x4922f0['get'](_0x484103(0x24b))&&_0x4ff463['searchParams'][_0x484103(0x279)]('runId',_0x4922f0[_0x484103(0xc6)](_0x484103(0x24b))),_0x4ff463[_0x484103(0x207)]();}async[_0x350772(0x179)](){const _0x4c78a3=_0x350772;var _0x3e3177,_0x2a8cb9,_0x56cec9;const _0x5a5806=this[_0x4c78a3(0x295)][_0x4c78a3(0x181)](_0x3fa50f),_0x35d295=(_0x3e3177=_0x5a5806==null?void 0x0:_0x5a5806[_0x4c78a3(0x10d)])!=null?_0x3e3177:_0x4e1a77;return(_0x56cec9=(_0x2a8cb9=(await this[_0x4c78a3(0x22c)][_0x4c78a3(0xc6)](_0x35d295,{'headers':{'Content-Type':_0x4c78a3(0x19b)}}))['body'])==null?void 0x0:_0x2a8cb9[_0x4c78a3(0x238)])!=null?_0x56cec9:'';}};_t=yn([Z(0x0,_0x1ada69(_0x37163f)),Z(0x1,_0x1ada69(_0x1def6f)),Z(0x2,_0x20c298),Z(0x3,_0x3d4f4a),Z(0x4,_0x5de3db)],_t);var $n=Object[_0x350772(0x2c2)],xn=(_0x2caae6,_0x1ef9d3,_0x29e0a1,_0x3fdc39)=>{const _0x5bbee1=_0x350772;for(var _0x190536=_0x3fdc39>0x1?void 0x0:_0x3fdc39?$n(_0x1ef9d3,_0x29e0a1):_0x1ef9d3,_0x4a9f97=_0x2caae6[_0x5bbee1(0x2e6)]-0x1,_0x5a6de9;_0x4a9f97>=0x0;_0x4a9f97--)(_0x5a6de9=_0x2caae6[_0x4a9f97])&&(_0x190536=_0x5a6de9(_0x190536)||_0x190536);return _0x190536;},Ue=(_0x25c03b,_0x162155)=>(_0xfc5bb9,_0x5cf354)=>_0x162155(_0xfc5bb9,_0x5cf354,_0x25c03b);let ht=class extends _0x2d8b34{constructor(_0x96337,_0xa750de,_0x12ec7e){const _0x483a7b=_0x350772;super(),this[_0x483a7b(0x26c)]=_0x96337,this[_0x483a7b(0x22c)]=_0xa750de,this['_configService']=_0x12ec7e;}async[_0x350772(0x1bf)](_0x3ee9e5,_0x239b51,_0x8aabb1,..._0xa44d64){const _0x35ad1e=_0x350772;var _0x4e34e5,_0xb74e41,_0x441d3b,_0x3f2c5a;const _0x2919c9=this[_0x35ad1e(0x26c)][_0x35ad1e(0x15f)]();if(!_0x2919c9)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x5350ad=((_0x4e34e5=this[_0x35ad1e(0x295)]['getConfig'](_0x5e58e4))!=null?_0x4e34e5:_0xd8680f)+'/'+_0x3ee9e5+'/run/'+_0x239b51,_0x4ec7a5=new URL(window[_0x35ad1e(0x239)][_0x35ad1e(0x15b)]),_0x59a71f={'scriptId':_0x3ee9e5,'runId':(_0xb74e41=_0x4ec7a5[_0x35ad1e(0x1e6)][_0x35ad1e(0xc6)](_0x35ad1e(0x24b)))!=null?_0xb74e41:'','function':_0x239b51,'unitId':_0x2919c9[_0x35ad1e(0x25a)](),'argsOfFunction':JSON['stringify'](_0xa44d64),'invokeId':(_0x441d3b=_0x8aabb1[_0x35ad1e(0x210)])!=null?_0x441d3b:'','executionId':(_0x3f2c5a=_0x8aabb1[_0x35ad1e(0x161)])!=null?_0x3f2c5a:''};try{const _0x32749c=await this['_httpService'][_0x35ad1e(0x2b7)](_0x5350ad,{'body':_0x59a71f});return _0x32749c['body'][_0x35ad1e(0x246)]&&_0x32749c[_0x35ad1e(0xd3)][_0x35ad1e(0x246)]['code']!==Q['OK']?'Failed':_0x32749c[_0x35ad1e(0xd3)]['result'];}catch{return _0x35ad1e(0x1e4);}}};ht=xn([Ue(0x0,_0xbcb279),Ue(0x1,_0x1ada69(_0x1def6f)),Ue(0x2,_0x20c298)],ht);const ut=0x7530,dt='ACTIVE_UNIT_EVENT_CHANNEL';class ir extends _0x2d8b34{constructor(){const _0x246539=_0x350772;super(),_(this,_0x246539(0x172),_0x43b449()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x246539(0x262),null),_(this,_0x246539(0xd2),new Map()),_(this,'_unitStatus',new Map()),this[_0x246539(0x2e4)]();}[_0x350772(0x1e0)](){const _0x1575a1=_0x350772;super[_0x1575a1(0x1e0)](),this[_0x1575a1(0xd2)][_0x1575a1(0x237)]((_0x28cdb3,_0x2fa201)=>this[_0x1575a1(0x183)](_0x2fa201)),this[_0x1575a1(0x262)]&&window[_0x1575a1(0x18a)](this[_0x1575a1(0x262)]);}[_0x350772(0x19f)](_0x93c6a3){const _0x3d38e9=_0x350772;return this[_0x3d38e9(0x2b8)](_0x93c6a3)[_0x3d38e9(0xcb)](_0x9b68fc());}[_0x350772(0x13a)](_0x2469d6){const _0x19ab92=_0x350772;this[_0x19ab92(0x275)][_0x19ab92(0x2ce)]===0x0&&this[_0x19ab92(0x244)](),this[_0x19ab92(0x275)][_0x19ab92(0x10c)](_0x2469d6),this[_0x19ab92(0x2c8)]({'type':0x0,'memberID':this[_0x19ab92(0x172)],'unitIDs':[_0x2469d6],'isForwarded':!0x1});}[_0x350772(0x209)](_0x36ef47){const _0x28651a=_0x350772;this[_0x28651a(0x275)][_0x28651a(0x218)](_0x36ef47),this['_selfUnitIDs'][_0x28651a(0x2ce)]===0x0&&this['_heartbeatTimer']&&window[_0x28651a(0x18a)](this[_0x28651a(0x262)]);}[_0x350772(0x2e4)](){const _0x5aa119=_0x350772;this[_0x5aa119(0x222)](_0x296cd2(_0x46d8b5(window,'storage')['subscribe'](_0x12f07c=>{const _0x4bacf6=_0x5aa119;if(_0x12f07c[_0x4bacf6(0x241)]!==dt||!_0x12f07c[_0x4bacf6(0xc5)])return;const _0x6dd894=JSON[_0x4bacf6(0xfb)](_0x12f07c[_0x4bacf6(0xc5)]);this[_0x4bacf6(0x299)](_0x6dd894);}))),window[_0x5aa119(0x20b)](_0x5aa119(0x193),()=>this[_0x5aa119(0x2c8)]({'type':0x1,'memberID':this[_0x5aa119(0x172)],'unitIDs':Array[_0x5aa119(0x22d)](this['_selfUnitIDs'])}));}[_0x350772(0x299)](_0x4d161b){const _0x59f9ac=_0x350772;switch(_0x4d161b[_0x59f9ac(0xbd)]){case 0x0:this[_0x59f9ac(0x1d3)](_0x4d161b);break;case 0x1:this['_handleLeaveEvent'](_0x4d161b);break;case 0x2:this[_0x59f9ac(0x2be)](_0x4d161b);break;}}[_0x350772(0x1d3)](_0x17233d){const _0x29b1d8=_0x350772,{unitIDs:_0x45b63c,memberID:_0x37e38b,isForwarded:_0x191d4f}=_0x17233d;_0x45b63c[_0x29b1d8(0x237)](_0x3533c5=>{const _0x36d2f4=_0x29b1d8;if(!_0x191d4f&&this[_0x36d2f4(0x266)][_0x36d2f4(0x105)](_0x3533c5)&&this['_ensureSubject'](_0x3533c5)[_0x36d2f4(0x1c2)](_0x32ac9a['OTHER_CLIENTS_EDITING']),!this[_0x36d2f4(0x266)][_0x36d2f4(0x105)](_0x3533c5)||!this['_unitOnClients']['get'](_0x3533c5)[_0x36d2f4(0x105)](_0x37e38b)){const _0x22eb39=this[_0x36d2f4(0x266)]['get'](_0x3533c5)||new Set();_0x22eb39[_0x36d2f4(0x10c)](_0x37e38b),this['_unitOnClients'][_0x36d2f4(0x279)](_0x3533c5,_0x22eb39),this['_scheduleClearOtherTimer'](_0x37e38b);}}),_0x191d4f||this[_0x29b1d8(0x2c8)]({'type':0x0,'memberID':this[_0x29b1d8(0x172)],'unitIDs':[...this[_0x29b1d8(0x275)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x30aec6){const _0x15cb77=_0x350772;this[_0x15cb77(0x183)](_0x30aec6);const _0xb9d54f=window[_0x15cb77(0x1a1)](()=>{const _0x7cb53e=_0x15cb77;this[_0x7cb53e(0x266)][_0x7cb53e(0x237)](_0x5d8fcc=>{const _0x314923=_0x7cb53e;_0x5d8fcc[_0x314923(0x218)](_0x30aec6);});},ut*0x2);this[_0x15cb77(0xd2)][_0x15cb77(0x279)](_0x30aec6,_0xb9d54f);}[_0x350772(0x183)](_0x53a716){const _0x2d162d=_0x350772;if(this[_0x2d162d(0xd2)][_0x2d162d(0x105)](_0x53a716)){const _0x3b61e9=this[_0x2d162d(0xd2)][_0x2d162d(0xc6)](_0x53a716);_0x3b61e9&&window['clearTimeout'](_0x3b61e9),this[_0x2d162d(0xd2)][_0x2d162d(0x279)](_0x53a716,null);}}['_handleLeaveEvent'](_0x3983a6){const _0x3d9359=_0x350772,{memberID:_0x5bd389,unitIDs:_0x57dd9a}=_0x3983a6;_0x57dd9a['forEach'](_0x1ef65d=>{const _0x877c43=_0x2f90;var _0x4695e2;const _0x25db66=this['_unitOnClients']['get'](_0x1ef65d);_0x25db66&&(_0x25db66[_0x877c43(0x218)](_0x5bd389),(_0x4695e2=this[_0x877c43(0x2b8)](_0x1ef65d))==null||_0x4695e2[_0x877c43(0x1c2)](_0x25db66[_0x877c43(0x2ce)]===0x0?_0x32ac9a[_0x877c43(0x2e3)]:_0x32ac9a[_0x877c43(0x283)]));}),this[_0x3d9359(0x183)](_0x5bd389);}[_0x350772(0x2be)](_0x4758d3){const _0x1f4075=_0x350772;this[_0x1f4075(0x155)](_0x4758d3[_0x1f4075(0x23c)]);}[_0x350772(0x2c8)](_0x2ea3c6){const _0x21985f=_0x350772;localStorage[_0x21985f(0x272)](dt,JSON[_0x21985f(0x1c3)](_0x2ea3c6));}['_scheduleHeartbeat'](){const _0x189db0=_0x350772;this[_0x189db0(0x262)]=window['setInterval'](()=>{const _0x1c47ae=_0x189db0;this[_0x1c47ae(0x2c8)]({'type':0x2,'memberID':this[_0x1c47ae(0x172)]});},ut);}['_ensureSubject'](_0x3cf479){const _0x58a46a=_0x350772;return this['_unitStatus'][_0x58a46a(0x105)](_0x3cf479)||this[_0x58a46a(0x19e)][_0x58a46a(0x279)](_0x3cf479,new _0x1cc040(_0x32ac9a['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x58a46a(0xc6)](_0x3cf479);}}export{_t as BrowserCollaborationSocketService,ce as CollaborationDataLoaderController,ae as DesktopCollaborationStatusDisplayController,Pt as IURLService,ht as RemoteUniscriptService,tn as SheetCollabCursorShape,Fe as UniverCollaborationClientUIPlugin,ir as WebBrowserSingleActiveUnitService,bn as WebURLService};
1
+ const _0x17995c=_0x220d;(function(_0x49d3c5,_0x207635){const _0x21fac1=_0x220d,_0x18bf16=_0x49d3c5();while(!![]){try{const _0x5de2c4=-parseInt(_0x21fac1(0x293))/0x1*(parseInt(_0x21fac1(0x1d4))/0x2)+-parseInt(_0x21fac1(0x17c))/0x3*(-parseInt(_0x21fac1(0x8d))/0x4)+-parseInt(_0x21fac1(0xa0))/0x5*(parseInt(_0x21fac1(0x171))/0x6)+-parseInt(_0x21fac1(0x179))/0x7+-parseInt(_0x21fac1(0x19c))/0x8*(parseInt(_0x21fac1(0x1d8))/0x9)+-parseInt(_0x21fac1(0x9b))/0xa*(-parseInt(_0x21fac1(0x89))/0xb)+parseInt(_0x21fac1(0x12c))/0xc*(parseInt(_0x21fac1(0x15f))/0xd);if(_0x5de2c4===_0x207635)break;else _0x18bf16['push'](_0x18bf16['shift']());}catch(_0x3c0ca7){_0x18bf16['push'](_0x18bf16['shift']());}}}(_0x2c3e,0x9be1f));var Ft=Object[_0x17995c(0x138)],kt=(_0x2faa31,_0x396087,_0x33e711)=>_0x396087 in _0x2faa31?Ft(_0x2faa31,_0x396087,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33e711}):_0x2faa31[_0x396087]=_0x33e711,l=(_0x5008f3,_0xed4035,_0xe4d8d5)=>kt(_0x5008f3,typeof _0xed4035!=_0x17995c(0xd8)?_0xed4035+'':_0xed4035,_0xe4d8d5);import{jsx as _0x2de4d5,jsxs as _0x1aafd0}from'react/jsx-runtime';import{CollaborationStatus as _0x5bc4e1,CollaborationSessionService as _0x141d96,CollaborationController as _0x4a8b28,DataLoaderService as _0x209b42,MemberService as _0x3af1e3,SessionStatus as _0x343edf,ILocalCacheService as _0x3a200a,CollaborationUIEventService as _0x372bc6,CollaborationUIEventId as _0x38ed89,DocCollaborationEntity as _0x4ff6ee,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x561a7a,getLocalCacheKey as _0x47bb08,LOCAL_CACHE_INTERVAL as _0x34d795,LOCAL_CACHE_INTERVAL_KEY as _0x406905,UniverCollaborationClientPlugin as _0x2497f2,CollaborationSocketService as _0x331ab9,DEFAULT_WS_SESSION_TICKET_URL as _0x3f8692,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY as _0x6c9711,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT as _0x4a61fe,UnitStatus as _0x27e9f9}from'@univerjs-pro/collaboration-client';import{LocaleService as _0x5bea2a,IUniverInstanceService as _0x382f2b,Inject as _0x11a278,Injector as _0x426398,Disposable as _0x29710c,createIdentifier as _0x3aacc3,ILogService as _0x12caba,ICommandService as _0x31e8e2,Optional as _0x5a4b96,RxDisposable as _0x53201b,Workbook as _0x169540,DOC_RANGE_TYPE as _0x461746,debounce as _0x302608,Rectangle as _0x3ec4b0,DisposableCollection as _0x5c7e15,toDisposable as _0x3213ea,UniverInstanceType as _0x502d97,generateRandomId as _0x25c646,COLORS as _0x4a1af7,ColorKit as _0x109ebd,ThemeService as _0x3e584d,fromEventSubject as _0x1f3ae9,Tools as _0x8e16b7,CommandType as _0x1bc9ba,IConfigService as _0x284c80,CanceledError as _0x5313b4,isFormulaString as _0x4f5ea9,isFormulaId as _0x267f20,ILocalStorageService as _0x241148,DependentOn as _0x53975f,Plugin as _0x494e53,merge as _0xf62ae0,registerDependencies as _0x3ace74,mergeOverrideWithDependencies as _0x23631a,touchDependencies as _0x3dce4a}from'@univerjs/core';import{useObservable as _0x4dd37a,useDependency as _0x3f14f5,IUIPartsService as _0x4e4718,BuiltInUIPart as _0x2203d5,connectInjector as _0x47ff02,IBeforeCloseService as _0x225f15,IMessageService as _0xc5e3ee,INotificationService as _0x503e3e}from'@univerjs/ui';import{BehaviorSubject as _0x5ab626,switchMap as _0x276c2a,of as _0x461f63,takeUntil as _0x426fdf,debounceTime as _0x241dd6,Subject as _0x34a8bd,filter as _0x26217d,merge as _0x298745,combineLatest as _0x524282,fromEvent as _0xa49f30,shareReplay as _0x9be7a1,mapTo as _0x2b6054,distinctUntilChanged as _0x430265}from'rxjs';import{Tooltip as _0x880d88,clsx as _0x550bfe,MessageType as _0x2001e5}from'@univerjs/design';import{useRef as _0x1878fa,createElement as _0x514801,forwardRef as _0x56b1a7,useCallback as _0x5a64d5}from'react';import{IRemoteInstanceService as _0x4f2f44}from'@univerjs/rpc';import{SetWorksheetActivateCommand as _0x47535e,RefRangeService as _0x1fa5d1,SetSelectionsOperation as _0x4c6b4f,SheetsSelectionsService as _0x559b06,EffectRefRangId as _0x4e84fb,handleIRemoveRow as _0x21aa6f,handleIRemoveCol as _0x41f788,handleMoveRange as _0x3899df,handleInsertRow as _0xf510f4,handleInsertRangeMoveRight as _0x2f5940,handleInsertRangeMoveDown as _0x271c7f,handleInsertCol as _0x289e62,handleDeleteRangeMoveUp as _0x79a8bd,handleDeleteRangeMoveLeft as _0x230d4f,runRefRangeMutations as _0x205469}from'@univerjs/sheets';import{Shape as _0xd80c53,Rect as _0x27916c,getColor as _0x311d32,RegularPolygon as _0x4b441d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x19661c,Vector2 as _0x58f725,SHEET_VIEWPORT_KEY as _0x2389fc,IRenderManagerService as _0x4b49a7}from'@univerjs/engine-render';import{HTTPService as _0x363c4f,ISocketService as _0x5a617a,WebSocketService as _0x3242f0}from'@univerjs/network';import{IDocClipboardService as _0x46f861,NodePositionConvertToCursor as _0x2b24bd,NodePositionConvertToRectRange as _0x3e66b9,TEXT_RANGE_LAYER_INDEX as _0x5f5b0d,SetDocZoomRatioOperation as _0x7dd482,DocIMEInputManagerService as _0x2a0c79,DocStateChangeManagerService as _0x2d3bec}from'@univerjs/docs-ui';import{IImageIoService as _0x42e058}from'@univerjs/drawing';import{ITransformService as _0x1a6bde,CollaborationEvent as _0x1eba19,isTransformMutationFailure as _0x55d582,isTransformMutationsWithChangesetSuccess as _0x4b8ff0,RevisionService as _0x225cbf,ISnapshotServerService as _0x4d1519}from'@univerjs-pro/collaboration';import{SetTextSelectionsOperation as _0x3c75e4,RichTextEditingMutation as _0xc2d7de,DocSelectionManagerService as _0x470162,DocSkeletonManagerService as _0x33174f}from'@univerjs/docs';import{deserializeRangeWithSheet as _0x585551,serializeRangeWithSheet as _0x38a017,FormulaExecuteStageType as _0x19f2ec,FormulaExecutedStateType as _0x3bbfbf,SetFormulaCalculationStartMutation as _0x8e7314,SetFormulaCalculationNotificationMutation as _0x72d1d3}from'@univerjs/engine-formula';import{map as _0x248c7f,filter as _0x3f54ce,throttleTime as _0x53d2a8,takeUntil as _0x5050e3,switchMap as _0x4613aa}from'rxjs/operators';import{SheetSkeletonManagerService as _0x2fc12d,getCoordByCell as _0x2f11d6,getSheetObject as _0x1f24ae}from'@univerjs/sheets-ui';function Ve({ref:_0x12a208,..._0x52c05c}){const _0x50c3f9=_0x17995c,{icon:_0x1cc93a,id:_0x100e42,className:_0x356d13,extend:_0x1f9490,..._0x216bf2}=_0x52c05c,_0x299e6b=('univerjs-icon\x20univerjs-icon-'+_0x100e42+'\x20'+(_0x356d13||''))[_0x50c3f9(0x24b)](),_0x34f699=_0x1878fa('_'+gi());return Ut(_0x1cc93a,''+_0x100e42,{'defIds':_0x1cc93a['defIds'],'idSuffix':_0x34f699['current']},{'ref':_0x12a208,'className':_0x299e6b,..._0x216bf2},_0x1f9490);}function Ut(_0xbdda36,_0x1f894b,_0x37bbc6,_0x27df6e,_0x123e49){const _0x18ebb1=_0x17995c;return _0x514801(_0xbdda36[_0x18ebb1(0x215)],{'key':_0x1f894b,...mi(_0xbdda36,_0x37bbc6,_0x123e49),..._0x27df6e},(fi(_0xbdda36,_0x37bbc6)['children']||[])['map']((_0x423ed6,_0x24bbe1)=>Ut(_0x423ed6,_0x1f894b+'-'+_0xbdda36['tag']+'-'+_0x24bbe1,_0x37bbc6,void 0x0,_0x123e49)));}function mi(_0x1948c7,_0x20fd9a,_0xa72a98){const _0x599107=_0x17995c,_0x432089={..._0x1948c7[_0x599107(0xb4)]};_0xa72a98!=null&&_0xa72a98[_0x599107(0xa1)]&&_0x432089['fill']===_0x599107(0xa1)&&(_0x432089[_0x599107(0x1cd)]=_0xa72a98[_0x599107(0xa1)]),_0x1948c7['tag']===_0x599107(0x1d7)&&_0x432089['id']&&(_0x432089['id']=_0x432089['id']+_0x20fd9a['idSuffix']),Object[_0x599107(0x1b2)](_0x432089)[_0x599107(0xbe)](([_0x8fc770,_0x5638d7])=>{const _0x4ee0f6=_0x599107;_0x8fc770===_0x4ee0f6(0x1d7)&&typeof _0x5638d7==_0x4ee0f6(0x20b)&&(_0x432089[_0x8fc770]=_0x5638d7['replace'](/url\(#(.*)\)/,_0x4ee0f6(0x19b)+_0x20fd9a[_0x4ee0f6(0x118)]+')'));});const {defIds:_0x332578}=_0x20fd9a;return!_0x332578||_0x332578['length']===0x0||(_0x1948c7[_0x599107(0x215)]===_0x599107(0xd1)&&_0x432089['xlink:href']&&(_0x432089['xlink:href']=_0x432089[_0x599107(0x18b)]+_0x20fd9a[_0x599107(0x118)]),Object['entries'](_0x432089)[_0x599107(0xbe)](([_0x218c2c,_0x277232])=>{const _0x59fed7=_0x599107;typeof _0x277232==_0x59fed7(0x20b)&&(_0x432089[_0x218c2c]=_0x277232[_0x59fed7(0x183)](/url\(#(.*)\)/,_0x59fed7(0x19b)+_0x20fd9a[_0x59fed7(0x118)]+')'));})),_0x432089;}function fi(_0x21e64f,_0x4ea2a8){const _0x314c81=_0x17995c;var _0x56d4f0;const {defIds:_0x39b325}=_0x4ea2a8;return!_0x39b325||_0x39b325[_0x314c81(0x28b)]===0x0?_0x21e64f:_0x21e64f['tag']==='defs'&&((_0x56d4f0=_0x21e64f['children'])!=null&&_0x56d4f0['length'])?{..._0x21e64f,'children':_0x21e64f['children'][_0x314c81(0x14e)](_0x1953a4=>typeof _0x1953a4[_0x314c81(0xb4)]['id']==_0x314c81(0x20b)&&_0x39b325&&_0x39b325[_0x314c81(0x16e)](_0x1953a4[_0x314c81(0xb4)]['id'])?{..._0x1953a4,'attrs':{..._0x1953a4[_0x314c81(0xb4)],'id':_0x1953a4[_0x314c81(0xb4)]['id']+_0x4ea2a8[_0x314c81(0x118)]}}:_0x1953a4)}:_0x21e64f;}function gi(){const _0x28595b=_0x17995c;return Math[_0x28595b(0x160)]()[_0x28595b(0x201)](0x24)[_0x28595b(0x17f)](0x2,0x8);}Ve[_0x17995c(0x12e)]=_0x17995c(0x221);const vi={'tag':_0x17995c(0xde),'attrs':{'xmlns':_0x17995c(0x219),'fill':_0x17995c(0xad),'viewBox':_0x17995c(0x194),'width':'1em','height':_0x17995c(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x17995c(0x2a6)},'children':[{'tag':_0x17995c(0x144),'attrs':{'stroke':_0x17995c(0xb0),'d':_0x17995c(0x159),'strokeLinecap':_0x17995c(0x1ce),'strokeLinejoin':_0x17995c(0x1ce),'strokeWidth':1.2}}]},{'tag':_0x17995c(0x27f),'attrs':{},'children':[{'tag':_0x17995c(0x90),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x17995c(0x144),'attrs':{'fill':_0x17995c(0x21c),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},Lt=_0x56b1a7(function(_0x3ed593,_0x521f22){const _0x2b2b7c=_0x17995c;return _0x514801(Ve,Object[_0x2b2b7c(0xa5)]({},_0x3ed593,{'id':_0x2b2b7c(0x210),'ref':_0x521f22,'icon':vi}));});Lt[_0x17995c(0x12e)]=_0x17995c(0x1a7);const Ei={'tag':'svg','attrs':{'xmlns':_0x17995c(0x219),'fill':'none','viewBox':_0x17995c(0x124),'width':_0x17995c(0x139),'height':_0x17995c(0x139)},'children':[{'tag':'g','attrs':{'clipPath':_0x17995c(0x14a)},'children':[{'tag':_0x17995c(0x144),'attrs':{'stroke':_0x17995c(0xb0),'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':_0x17995c(0x1ce),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x17995c(0x27f),'attrs':{},'children':[{'tag':_0x17995c(0x90),'attrs':{'id':_0x17995c(0x1c1)},'children':[{'tag':_0x17995c(0x144),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0x17995c(0xef)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Mt=_0x56b1a7(function(_0x2f6a84,_0x23b99b){const _0x57fbaf=_0x17995c;return _0x514801(Ve,Object['assign']({},_0x2f6a84,{'id':_0x57fbaf(0x2aa),'ref':_0x23b99b,'icon':Ei}));});Mt[_0x17995c(0x12e)]=_0x17995c(0x1b9);function pi(_0x234662){const _0x4fd0b4=_0x17995c;switch(_0x234662){case _0x5bc4e1['OFFLINE']:return _0x4fd0b4(0x22d);case _0x5bc4e1[_0x4fd0b4(0x14f)]:return'collabStatus.conflict';case _0x5bc4e1[_0x4fd0b4(0x1f5)]:return _0x4fd0b4(0xfa);case _0x5bc4e1['NOT_COLLAB']:return _0x4fd0b4(0x244);case _0x5bc4e1['AWAITING']:case _0x5bc4e1['AWAITING_WITH_PENDING']:return _0x4fd0b4(0xec);case _0x5bc4e1[_0x4fd0b4(0x1c3)]:case _0x5bc4e1[_0x4fd0b4(0x181)]:return _0x4fd0b4(0x260);}}function Oi(_0x4c7f3c){const _0x1cb6ac=_0x17995c,{status$:_0x560738}=_0x4c7f3c,_0x280fff=_0x4dd37a(_0x560738,_0x5bc4e1[_0x1cb6ac(0x192)]),_0xa49558=_0x3f14f5(_0x5bea2a),_0x418095=_0x3f14f5(_0x141d96),_0x256e98=_0x280fff!==_0x5bc4e1[_0x1cb6ac(0x28d)],_0x3c7e06=_0xa49558['t'](pi(_0x280fff)),_0x427180=_0x256e98?_0x2de4d5(Mt,{}):_0x2de4d5(Lt,{}),_0x429177=_0x5a64d5(()=>{const _0x6046bb=_0x1cb6ac;_0x256e98||_0x418095[_0x6046bb(0x229)]();},[_0x256e98,_0x418095]);function _0x4857a5(){const _0x38d313=_0x1cb6ac;return _0x1aafd0(_0x38d313(0x18c),{'className':'univer-flex\x20univer-items-center','onClick':_0x429177,'children':[_0x2de4d5(_0x38d313(0x18c),{'className':_0x550bfe(_0x38d313(0x196),{'univer-text-green-500':_0x256e98,'univer-text-red-500':!_0x256e98}),'children':_0x427180}),_0x2de4d5(_0x38d313(0x18c),{'className':_0x38d313(0x1a3),'children':_0x3c7e06})]});}return _0x256e98?_0x4857a5():_0x2de4d5(_0x880d88,{'title':_0xa49558['t']('collab-client.tooltip.reconnect'),'children':_0x4857a5()});}var Ti=Object[_0x17995c(0x153)],Ci=(_0x10c4e5,_0x438099,_0x59e0ae,_0x17cc18)=>{const _0xf2160a=_0x17995c;for(var _0x2e01e5=_0x17cc18>0x1?void 0x0:_0x17cc18?Ti(_0x438099,_0x59e0ae):_0x438099,_0xc38301=_0x10c4e5[_0xf2160a(0x28b)]-0x1,_0x11c05e;_0xc38301>=0x0;_0xc38301--)(_0x11c05e=_0x10c4e5[_0xc38301])&&(_0x2e01e5=_0x11c05e(_0x2e01e5)||_0x2e01e5);return _0x2e01e5;},se=(_0x2542ca,_0x573ff1)=>(_0x4e9a7c,_0x5cbc32)=>_0x573ff1(_0x4e9a7c,_0x5cbc32,_0x2542ca);let oe=class extends _0x29710c{constructor(_0x17542d,_0x2ef2b0,_0x5ed94b,_0x5cee66){const _0x42c199=_0x17995c;super(),l(this,_0x42c199(0xf7),new _0x5ab626(_0x5bc4e1[_0x42c199(0x192)])),(this[_0x42c199(0x290)]=_0x17542d,this[_0x42c199(0x287)]=_0x2ef2b0,this[_0x42c199(0x24d)]=_0x5ed94b,this[_0x42c199(0x14b)]=_0x5cee66,this[_0x42c199(0x27a)](),this['_initStatusListener']());}[_0x17995c(0x1e3)](){const _0x38c001=_0x17995c;this[_0x38c001(0x1c2)](this[_0x38c001(0x290)]['focused$'][_0x38c001(0x269)](_0x276c2a(()=>{const _0x2b28f6=_0x38c001,_0x3b1a86=this['_univerInstanceService'][_0x2b28f6(0x177)]();return _0x3b1a86?this[_0x2b28f6(0x24d)]['getCollabEntity$'](_0x3b1a86[_0x2b28f6(0x10d)]()):_0x461f63(null);}),_0x276c2a(_0x2d0774=>_0x2d0774?_0x2d0774[_0x38c001(0x167)]:_0x461f63(_0x5bc4e1[_0x38c001(0x192)])))[_0x38c001(0x158)](_0x153ee2=>{const _0x39482e=_0x38c001;this[_0x39482e(0xf7)][_0x39482e(0xf2)](_0x153ee2);}));}[_0x17995c(0x27a)](){const _0x311161=_0x17995c;this[_0x311161(0x1c2)](this[_0x311161(0x14b)][_0x311161(0xb7)](_0x2203d5[_0x311161(0xaf)],()=>_0x47ff02(Ri({'status$':this['_status$'][_0x311161(0xc8)]()}),this[_0x311161(0x287)])));}};oe=Ci([se(0x0,_0x382f2b),se(0x1,_0x11a278(_0x426398)),se(0x2,_0x11a278(_0x4a8b28)),se(0x3,_0x4e4718)],oe);function Ri(_0x2b4745){const {status$:_0x194434}=_0x2b4745;return function(){return _0x2de4d5(Oi,{'status$':_0x194434});};}const At=_0x3aacc3(_0x17995c(0xcf));var Di=Object['getOwnPropertyDescriptor'],Ni=(_0x178d2f,_0x282bfb,_0x20fd0c,_0x47fe71)=>{const _0xcd69e7=_0x17995c;for(var _0x348387=_0x47fe71>0x1?void 0x0:_0x47fe71?Di(_0x282bfb,_0x20fd0c):_0x282bfb,_0x5e2b03=_0x178d2f[_0xcd69e7(0x28b)]-0x1,_0x1a174b;_0x5e2b03>=0x0;_0x5e2b03--)(_0x1a174b=_0x178d2f[_0x5e2b03])&&(_0x348387=_0x1a174b(_0x348387)||_0x348387);return _0x348387;},K=(_0x5eca7f,_0x214fff)=>(_0x10d8b8,_0x1ba7e3)=>_0x214fff(_0x10d8b8,_0x1ba7e3,_0x5eca7f);let ae=class extends _0x53201b{constructor(_0x4b7711,_0x21c66b,_0x3c002b,_0x1ce76c,_0x365c5f){const _0x24c7ba=_0x17995c;super(),this[_0x24c7ba(0x97)]=_0x4b7711,this[_0x24c7ba(0x18f)]=_0x21c66b,this[_0x24c7ba(0x1ed)]=_0x3c002b,this['_dataLoaderService']=_0x1ce76c,_0x365c5f?_0x365c5f==null||_0x365c5f[_0x24c7ba(0xe2)]()['then'](()=>this[_0x24c7ba(0x11f)]()):(this['_logService']['debug'](_0x24c7ba(0x281),_0x24c7ba(0x131)),this[_0x24c7ba(0x11f)]());}async['_init'](){const _0x416b9e=_0x17995c,_0x283f53=this[_0x416b9e(0x97)]['getParam'](_0x416b9e(0x20d)),_0x40b603=this[_0x416b9e(0x97)][_0x416b9e(0x1ea)]('type'),_0x98637a=this[_0x416b9e(0x97)][_0x416b9e(0x1ea)](_0x416b9e(0x268));if(!_0x283f53||!_0x40b603){this[_0x416b9e(0x18f)][_0x416b9e(0x24e)](_0x416b9e(0x281),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1373d0=await this[_0x416b9e(0x1d1)][_0x416b9e(0xfd)](_0x283f53,Number(_0x40b603),_0x98637a);_0x1373d0&&_0x1373d0 instanceof _0x169540&&this['_setupSubUnitSync'](_0x1373d0);}async[_0x17995c(0x1e5)](_0xd458b7){const _0x3682e1=_0x17995c;await this['_updateSubUnitFromURLParams'](_0xd458b7),_0xd458b7[_0x3682e1(0xc6)][_0x3682e1(0x269)](_0x426fdf(this[_0x3682e1(0xda)]))[_0x3682e1(0x158)](_0x336353=>{_0x336353&&this['_updateURLWithCurrentState'](_0x336353);}),this[_0x3682e1(0x97)]['urlChange$'][_0x3682e1(0x269)](_0x426fdf(this[_0x3682e1(0xda)]))[_0x3682e1(0x158)](()=>this[_0x3682e1(0x27e)](_0xd458b7));}[_0x17995c(0x173)](_0xb23203,_0x58051a=!0x1){const _0x4541bd=_0x17995c,_0x386def=this[_0x4541bd(0x97)][_0x4541bd(0x1ea)]('subunit');_0xb23203[_0x4541bd(0xa9)]()!==_0x386def&&this[_0x4541bd(0x97)]['setParam']('subunit',_0xb23203[_0x4541bd(0xa9)](),_0x58051a);}async[_0x17995c(0x27e)](_0x32ed0e){const _0xa59856=_0x17995c;var _0x21b3c3;const _0x33005d=this['_urlService'][_0xa59856(0x1ea)]('subunit');if(!_0x33005d||!_0x32ed0e[_0xa59856(0x2c1)](_0x33005d)){const _0x3c198e=_0x32ed0e['getUnhiddenWorksheets']()[0x0],_0x13d7c2=_0x32ed0e[_0xa59856(0x2c1)](_0x3c198e);if(!_0x13d7c2)return;this[_0xa59856(0x173)](_0x13d7c2,!0x0),await this[_0xa59856(0x1ed)]['executeCommand'](_0x47535e['id'],{'unitId':_0x32ed0e['getUnitId'](),'subUnitId':_0x3c198e});return;}((_0x21b3c3=_0x32ed0e[_0xa59856(0x2a4)]())==null?void 0x0:_0x21b3c3[_0xa59856(0xa9)]())!==_0x33005d&&await this[_0xa59856(0x1ed)]['executeCommand'](_0x47535e['id'],{'unitId':_0x32ed0e[_0xa59856(0x10d)](),'subUnitId':_0x33005d});}};ae=Ni([K(0x0,At),K(0x1,_0x12caba),K(0x2,_0x31e8e2),K(0x3,_0x11a278(_0x209b42)),K(0x4,_0x5a4b96(_0x4f2f44))],ae);var bi=Object[_0x17995c(0x153)],Ui=(_0x4ab951,_0x9de29,_0x4c85f7,_0x2e39cb)=>{const _0x47a046=_0x17995c;for(var _0x3a2544=_0x2e39cb>0x1?void 0x0:_0x2e39cb?bi(_0x9de29,_0x4c85f7):_0x9de29,_0x58d7c6=_0x4ab951[_0x47a046(0x28b)]-0x1,_0x5b4dd4;_0x58d7c6>=0x0;_0x58d7c6--)(_0x5b4dd4=_0x4ab951[_0x58d7c6])&&(_0x3a2544=_0x5b4dd4(_0x3a2544)||_0x3a2544);return _0x3a2544;},tt=(_0x330452,_0x126f55)=>(_0x5261c9,_0x193e4c)=>_0x126f55(_0x5261c9,_0x193e4c,_0x330452);let Ae=class extends _0x53201b{constructor(_0x416ef7,_0x4db707){const _0x647a6b=_0x17995c;super(),this[_0x647a6b(0x172)]=_0x416ef7,this['_imageIoService']=_0x4db707,this[_0x647a6b(0x11f)]();}[_0x17995c(0x11f)](){const _0x41024c=_0x17995c,_0x3d3e97=this;this[_0x41024c(0x1c2)](this[_0x41024c(0x172)][_0x41024c(0xab)]({'onBeforePasteImage':async _0x300faf=>{const _0x5a77e8=_0x41024c,_0x15c360=await _0x3d3e97[_0x5a77e8(0x188)][_0x5a77e8(0x147)](_0x300faf);return _0x15c360?{'source':_0x15c360[_0x5a77e8(0x211)],'imageSourceType':_0x15c360[_0x5a77e8(0x180)]}:null;}}));}};Ae=Ui([tt(0x0,_0x46f861),tt(0x1,_0x42e058)],Ae);const st=['purple.300','jiqing.500',_0x17995c(0x26b),_0x17995c(0xb5),_0x17995c(0xa4),_0x17995c(0x15b)];class je extends _0x29710c{constructor(){const _0x3f2d21=_0x17995c;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x3f2d21(0x258),0x0);}[_0x17995c(0x13e)](_0x23cdab){const _0x560067=_0x17995c;if(this[_0x560067(0x283)][_0x560067(0x2a9)](_0x23cdab))return this['_assignedColors']['get'](_0x23cdab);const _0x558baf=st[this[_0x560067(0x258)]];return this[_0x560067(0x258)]=(this[_0x560067(0x258)]+0x1)%st[_0x560067(0x28b)],this[_0x560067(0x283)][_0x560067(0xc9)](_0x23cdab,_0x558baf),_0x558baf;}}function Pt(_0x19e23b){let _0x3d0ffd='';for(const _0x2d9f23 of _0x19e23b){const {startOffset:_0x20086b,endOffset:_0x55e020,isActive:_0x20439d,rangeType:_0x297b5,segmentId:_0x2bf382,segmentPage:_0x5961b2}=_0x2d9f23;_0x3d0ffd['length']&&(_0x3d0ffd+=','),_0x3d0ffd+=_0x20086b+':'+_0x55e020+':'+(_0x20439d?'1':'0')+':'+_0x297b5+':'+_0x2bf382+':'+_0x5961b2;}return _0x3d0ffd;}function Li(_0x75f35){const _0x432997=_0x17995c,_0x318c07=_0x75f35['split'](','),_0x2cdfae=[];for(const _0x2e1dfc of _0x318c07){const [_0x334364,_0x12f799,_0x44ae93,_0x38f135,_0x2b121c,_0x3d589a]=_0x2e1dfc[_0x432997(0xd9)](':');_0x2cdfae[_0x432997(0x272)]({'startOffset':Number(_0x334364),'endOffset':Number(_0x12f799),'collapsed':_0x334364===_0x12f799,'isActive':_0x44ae93==='1','rangeType':_0x38f135===_0x461746[_0x432997(0x29e)]?_0x461746[_0x432997(0x29e)]:_0x461746[_0x432997(0x1aa)],'segmentId':typeof _0x2b121c=='string'?String(_0x2b121c):'','segmentPage':Number(_0x3d589a!=null?_0x3d589a:-0x1)});}return _0x2cdfae['some'](_0x59cd09=>_0x59cd09['isActive'])||(_0x2cdfae[0x0][_0x432997(0x262)]=!0x0),_0x2cdfae;}class Xe extends _0x53201b{constructor(){const _0x1891ee=_0x17995c;super(...arguments),l(this,_0x1891ee(0x125),new _0x5ab626(null)),l(this,_0x1891ee(0x248),this['_collabCursorState$'][_0x1891ee(0xc8)]());}[_0x17995c(0xe5)](_0x396afa){const _0x568f46=_0x17995c,{unitID:_0x299a9d,memberID:_0x5be6b1,textRanges:_0x5b7552}=_0x396afa,_0xb06cb5=Pt(_0x5b7552);if(_0xb06cb5==='')return;const _0x1b42fc={'unitID':_0x299a9d,'memberID':_0x5be6b1,'selection':_0xb06cb5};this[_0x568f46(0x125)][_0x568f46(0xf2)](_0x1b42fc);}}var Mi=Object['getOwnPropertyDescriptor'],Ai=(_0x2e6312,_0x1cc560,_0x10f49a,_0x295d60)=>{for(var _0x53648e=_0x295d60>0x1?void 0x0:_0x295d60?Mi(_0x1cc560,_0x10f49a):_0x1cc560,_0x554a89=_0x2e6312['length']-0x1,_0x4abeff;_0x554a89>=0x0;_0x554a89--)(_0x4abeff=_0x2e6312[_0x554a89])&&(_0x53648e=_0x4abeff(_0x53648e)||_0x53648e);return _0x53648e;},A=(_0x2b379d,_0x34e274)=>(_0x3c9e3,_0x11863d)=>_0x34e274(_0x3c9e3,_0x11863d,_0x2b379d);const Pi=0x12c,wi=0x64;let Pe=class extends _0x53201b{constructor(_0x5735aa,_0x477d2e,_0x3e5fd1,_0x29ed97,_0x18a323,_0x14d562,_0x1fd674,_0x1f9ae2,_0x55c7f9){const _0x4c0b7e=_0x17995c;super(),l(this,_0x4c0b7e(0x208),!0x1),l(this,'_init',!0x1),l(this,_0x4c0b7e(0xbf),new _0x5ab626(new Map())),l(this,_0x4c0b7e(0x1b5),this[_0x4c0b7e(0xbf)][_0x4c0b7e(0xc8)]()),l(this,_0x4c0b7e(0x204),new _0x5ab626([])),l(this,_0x4c0b7e(0x1ad),this[_0x4c0b7e(0x204)]['pipe'](_0x241dd6(Pi))),l(this,_0x4c0b7e(0x1a5),_0x302608(_0x598083=>{const _0x173eab=_0x4c0b7e,_0x477df9={'eventID':_0x1eba19['UPDATE_CURSOR'],'data':{'unitID':this[_0x173eab(0x251)],'memberID':this['_session'][_0x173eab(0x29c)](),'selection':Pt(_0x598083)}};this['_session'][_0x173eab(0x1d5)](_0x477df9,this['unitID']);},wi)),(this[_0x4c0b7e(0x251)]=_0x5735aa,this[_0x4c0b7e(0x20f)]=_0x477d2e,this['_injector']=_0x3e5fd1,this[_0x4c0b7e(0x1d6)]=_0x29ed97,this[_0x4c0b7e(0x224)]=_0x18a323,this['_syncEditingCollabCursorService']=_0x14d562,this[_0x4c0b7e(0x20a)]=_0x1fd674,this[_0x4c0b7e(0x290)]=_0x1f9ae2,this[_0x4c0b7e(0x1ed)]=_0x55c7f9);}get[_0x17995c(0x164)](){const _0x260a09=_0x17995c;return this[_0x260a09(0xbf)]['getValue']();}get[_0x17995c(0x150)](){const _0x24db1b=_0x17995c;return this[_0x24db1b(0x204)][_0x24db1b(0x146)]();}[_0x17995c(0x2b4)](){const _0x53bd1a=_0x17995c;super[_0x53bd1a(0x2b4)](),this['_cursorInfo$'][_0x53bd1a(0xf2)](new Map()),this[_0x53bd1a(0xbf)][_0x53bd1a(0x25e)](),this['_roomMembers$'][_0x53bd1a(0xf2)]([]),this[_0x53bd1a(0x204)][_0x53bd1a(0x25e)]();}[_0x17995c(0x1f9)](){const _0x1de992=_0x17995c;this[_0x1de992(0x11f)]||(this[_0x1de992(0x11f)]=!0x0,this[_0x1de992(0x20f)][_0x1de992(0x29a)][_0x1de992(0x269)](_0x426fdf(this[_0x1de992(0xda)]))[_0x1de992(0x158)](_0x406f8b=>{const _0x33d9cb=_0x1de992;_0x406f8b===_0x343edf[_0x33d9cb(0x12f)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session'][_0x1de992(0x26f)][_0x1de992(0x269)](_0x426fdf(this[_0x1de992(0xda)]))['subscribe'](_0x58c1cb=>{const _0x5292b9=_0x1de992,_0x385cf5=_0x58c1cb[_0x5292b9(0x28c)];_0x385cf5===_0x1eba19[_0x5292b9(0xff)]&&this['_onCursorUpdate'](_0x58c1cb),_0x385cf5===_0x1eba19[_0x5292b9(0xd6)]&&this[_0x5292b9(0x15c)](_0x58c1cb);}),this['disposeWithMe'](this[_0x1de992(0x1ed)][_0x1de992(0x162)](_0xbceb74=>{const _0x350b64=_0x1de992,_0x46b0a9=_0xbceb74['params'];_0x46b0a9!=null&&this[_0x350b64(0x208)]&&_0xbceb74['id']===_0x3c75e4['id']&&_0x46b0a9[_0x350b64(0x27b)]===this[_0x350b64(0x251)]&&_0x46b0a9[_0x350b64(0x148)]===!0x1&&_0x46b0a9['ranges'][_0x350b64(0x28b)]>0x0&&this['_updateLocalCursor'](_0x46b0a9[_0x350b64(0x1db)]);})),this[_0x1de992(0x267)][_0x1de992(0x248)][_0x1de992(0x269)](_0x426fdf(this['dispose$']))['subscribe'](_0x5d3fca=>{const _0x37fd8b=_0x1de992;if((_0x5d3fca==null?void 0x0:_0x5d3fca['unitID'])!==this[_0x37fd8b(0x251)])return;const _0x46e926={'eventID':_0x1eba19[_0x37fd8b(0xff)],'data':_0x5d3fca};this['_onCursorUpdate'](_0x46e926);}),this[_0x1de992(0x1c2)](this[_0x1de992(0x1ed)][_0x1de992(0x162)](_0x3372c5=>{const _0x32db06=_0x1de992;if(_0x3372c5[_0x32db06(0x166)]==null)return;const _0x466cf5=_0x3372c5[_0x32db06(0x166)];if(_0x3372c5['id']!==_0xc2d7de['id']||_0x466cf5[_0x32db06(0x27b)]!==this[_0x32db06(0x251)])return;const _0x2e2096={'id':_0x32db06(0x297),'params':_0x466cf5},_0x35d5c2=this[_0x32db06(0x164)];for(const [_0x342816,_0x157248]of _0x35d5c2){const _0x26c4be={'id':_0x32db06(0x297),'params':{'unitId':this[_0x32db06(0x251)],'actions':null,'textRanges':_0x157248[_0x32db06(0x1db)]}},_0x82e0f0=this[_0x32db06(0x20a)][_0x32db06(0x278)](_0x2e2096,_0x26c4be,!0x1);if(_0x55d582(_0x82e0f0))throw _0x82e0f0[_0x32db06(0x205)];_0x35d5c2[_0x32db06(0xc9)](_0x342816,{..._0x157248,'ranges':_0x82e0f0[_0x32db06(0x264)]['params'][_0x32db06(0x1b6)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x35d5c2);});})));}[_0x17995c(0x24a)](_0x1cb7da){const _0x16cdbc=_0x17995c;var _0x52727d,_0x72aa7c;const {memberID:_0x1551a2,selection:_0x56f306}=_0x1cb7da[_0x16cdbc(0x279)],_0x3051f2=Li(_0x56f306),_0xcd8afb=(_0x72aa7c=(_0x52727d=this['_memberService'][_0x16cdbc(0x2af)](this[_0x16cdbc(0x251)],_0x1551a2))==null?void 0x0:_0x52727d[_0x16cdbc(0x13a)])!=null?_0x72aa7c:_0x16cdbc(0xdf),_0x38e78f={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1551a2),'name':_0xcd8afb,'ranges':_0x3051f2},_0x50cc57=this[_0x16cdbc(0x164)];_0x50cc57['set'](_0x1551a2,_0x38e78f),this[_0x16cdbc(0xbf)][_0x16cdbc(0xf2)](_0x50cc57);}[_0x17995c(0x15c)](_0x35f1e9){const _0x26e971=_0x17995c,{memberID:_0x2952a5}=_0x35f1e9[_0x26e971(0x279)],_0x39171a=this[_0x26e971(0x164)];_0x39171a[_0x26e971(0xeb)](_0x2952a5),this[_0x26e971(0xbf)][_0x26e971(0xf2)](_0x39171a);}[_0x17995c(0x23b)](){const _0x5298a5=_0x17995c;var _0x44e8e6;if(this[_0x5298a5(0x208)]=!0x0,((_0x44e8e6=this[_0x5298a5(0x290)][_0x5298a5(0x177)]())==null?void 0x0:_0x44e8e6[_0x5298a5(0x10d)]())!==this['unitID'])return;const _0x48ecb2=this[_0x5298a5(0x287)][_0x5298a5(0x265)](_0x470162)[_0x5298a5(0x1a0)]();Array[_0x5298a5(0x285)](_0x48ecb2)&&_0x48ecb2[_0x5298a5(0x28b)]>0x0&&this[_0x5298a5(0x1a5)](_0x48ecb2);}['_toggleOffline'](){this['_online']=!0x1;}};Pe=Ai([A(0x2,_0x11a278(_0x426398)),A(0x3,_0x11a278(je)),A(0x4,_0x11a278(_0x3af1e3)),A(0x5,_0x11a278(Xe)),A(0x6,_0x1a6bde),A(0x7,_0x382f2b),A(0x8,_0x31e8e2)],Pe);var yi=Object[_0x17995c(0x153)],$i=(_0xe3751e,_0x42c843,_0x271b2e,_0x3639ac)=>{const _0x2c88a3=_0x17995c;for(var _0x1fee78=_0x3639ac>0x1?void 0x0:_0x3639ac?yi(_0x42c843,_0x271b2e):_0x42c843,_0x1b7ef9=_0xe3751e[_0x2c88a3(0x28b)]-0x1,_0x59cbff;_0x1b7ef9>=0x0;_0x1b7ef9--)(_0x59cbff=_0xe3751e[_0x1b7ef9])&&(_0x1fee78=_0x59cbff(_0x1fee78)||_0x1fee78);return _0x1fee78;},B=(_0x49653a,_0x479dde)=>(_0x2ca8c4,_0x2b0447)=>_0x479dde(_0x2ca8c4,_0x2b0447,_0x49653a);const xi=0x12c,Bi=0x64,Fi=()=>{let _0x1da7b3=[],_0x5bf891=!0x1;return _0x3797c7=>{const _0x3535ab=_0x220d;_0x1da7b3[_0x3535ab(0x272)](_0x3797c7),_0x5bf891||(_0x5bf891=!0x0,setTimeout(()=>{_0x1da7b3['forEach'](_0x263ead=>_0x263ead()),_0x1da7b3=[],_0x5bf891=!0x1;}));};};let we=class extends _0x53201b{constructor(_0x128e58,_0x23f958,_0x19a4ea,_0x5bdfd6,_0x42c4e5,_0x30ee3f,_0x361bfb,_0x8764d6){const _0x1bc523=_0x17995c;super(),l(this,'_online',!0x1),l(this,_0x1bc523(0x11f),!0x1),l(this,_0x1bc523(0xbf),new _0x5ab626(new Map())),l(this,_0x1bc523(0x1b5),this['_cursorInfo$']['asObservable']()),l(this,_0x1bc523(0x204),new _0x5ab626([])),l(this,_0x1bc523(0x1ad),this[_0x1bc523(0x204)][_0x1bc523(0x269)](_0x241dd6(xi))),l(this,_0x1bc523(0x1a5),_0x302608((_0x5caf9a,_0x48f7e4)=>{const _0x2da358=_0x1bc523,_0x351e1a={'eventID':_0x1eba19[_0x2da358(0xff)],'data':{'unitID':this[_0x2da358(0x251)],'memberID':this['_session'][_0x2da358(0x29c)](),'selection':_0x38a017(_0x5caf9a,_0x48f7e4[_0x2da358(0x105)])}};this[_0x2da358(0x20f)][_0x2da358(0x1d5)](_0x351e1a,this['unitID']);},Bi)),(this[_0x1bc523(0x251)]=_0x128e58,this[_0x1bc523(0x20f)]=_0x23f958,this['_injector']=_0x19a4ea,this[_0x1bc523(0x1d6)]=_0x5bdfd6,this[_0x1bc523(0x224)]=_0x42c4e5,this[_0x1bc523(0x290)]=_0x30ee3f,this['_commandService']=_0x361bfb,this[_0x1bc523(0x11a)]=_0x8764d6);}get[_0x17995c(0x164)](){const _0xd41933=_0x17995c;return this[_0xd41933(0xbf)][_0xd41933(0x146)]();}get[_0x17995c(0x150)](){const _0x33c1ab=_0x17995c;return this['_roomMembers$'][_0x33c1ab(0x146)]();}[_0x17995c(0x2b4)](){const _0x3a7821=_0x17995c;super[_0x3a7821(0x2b4)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x3a7821(0x25e)](),this['_roomMembers$'][_0x3a7821(0xf2)]([]),this[_0x3a7821(0x204)][_0x3a7821(0x25e)]();}['init'](){const _0x556c98=_0x17995c;this[_0x556c98(0x11f)]||(this[_0x556c98(0x11f)]=!0x0,this[_0x556c98(0x20f)][_0x556c98(0x29a)][_0x556c98(0x269)](_0x426fdf(this['dispose$']))[_0x556c98(0x158)](_0x12d727=>{const _0x84105=_0x556c98;_0x12d727===_0x343edf[_0x84105(0x12f)]?this[_0x84105(0x23b)]():this['_toggleOffline']();}),this['_session']['event$'][_0x556c98(0x269)](_0x426fdf(this[_0x556c98(0xda)]))['subscribe'](_0x38abd6=>{const _0x40d781=_0x556c98,_0x2596a7=_0x38abd6[_0x40d781(0x28c)];_0x2596a7===_0x1eba19[_0x40d781(0xff)]&&this[_0x40d781(0x24a)](_0x38abd6),_0x2596a7===_0x1eba19[_0x40d781(0xd6)]&&this[_0x40d781(0x15c)](_0x38abd6);}),this[_0x556c98(0xce)](),this[_0x556c98(0x1c2)](this[_0x556c98(0x1ed)]['onCommandExecuted'](_0x431c0f=>{const _0x49db68=_0x556c98;if(this[_0x49db68(0x208)]&&_0x431c0f['id']===_0x4c6b4f['id']&&_0x431c0f[_0x49db68(0x166)][_0x49db68(0x27b)]===this['unitID']){const _0x220e06=_0x431c0f[_0x49db68(0x166)];this['_updateLocalCursor'](_0x220e06[_0x49db68(0x1be)],_0x220e06['selections'][0x0]);}})));}[_0x17995c(0x24a)](_0x38b30f){const _0x21c76b=_0x17995c;var _0x446e06,_0x522646;const {memberID:_0x4c426f,selection:_0x58c7a4}=_0x38b30f[_0x21c76b(0x279)],{sheetName:_0x448cbf,range:_0x46cc17}=_0x585551(_0x58c7a4),_0x5a9719={'name':(_0x522646=(_0x446e06=this['_memberService']['getMember'](this[_0x21c76b(0x251)],_0x4c426f))==null?void 0x0:_0x446e06[_0x21c76b(0x13a)])!=null?_0x522646:_0x21c76b(0xdf),'range':this['_getMergeRange'](_0x448cbf,_0x46cc17),'sheetID':_0x448cbf,'color':this[_0x21c76b(0x1d6)][_0x21c76b(0x13e)](_0x4c426f),'selection':_0x58c7a4},_0x346251=this[_0x21c76b(0x164)];_0x346251['set'](_0x4c426f,_0x5a9719),this[_0x21c76b(0xbf)][_0x21c76b(0xf2)](_0x346251);}[_0x17995c(0x15c)](_0x3fe85a){const _0x7dfd27=_0x17995c,{memberID:_0x29d1bf}=_0x3fe85a[_0x7dfd27(0x279)],_0x495878=this[_0x7dfd27(0x164)];_0x495878[_0x7dfd27(0xeb)](_0x29d1bf),this['_cursorInfo$'][_0x7dfd27(0xf2)](_0x495878);}[_0x17995c(0xbb)](_0x3ca4cf,_0x5324c1){const _0x51b739=_0x17995c;var _0x37765c,_0x2bb280;const _0x4cbfd=(_0x2bb280=(_0x37765c=this[_0x51b739(0x290)][_0x51b739(0x11c)](this[_0x51b739(0x251)]))==null?void 0x0:_0x37765c[_0x51b739(0x2c1)](_0x3ca4cf))==null?void 0x0:_0x2bb280['getMergeData']();return(_0x4cbfd==null?void 0x0:_0x4cbfd[_0x51b739(0xd2)](_0x419de9=>_0x3ec4b0[_0x51b739(0x252)](_0x419de9,_0x5324c1)))||_0x5324c1;}[_0x17995c(0xce)](){const _0x161532=_0x17995c,_0x1c200c=new _0x5c7e15(),_0x2207f0=Fi(),_0x1cce68=()=>{const _0x5545ec=_0x220d;_0x1c200c[_0x5545ec(0x2b4)]();const _0x4ead03=(_0x395bca,_0xe4999d,_0x3fc09e,_0xe15d89)=>{const _0x5ed03d=_0x5545ec;let _0x2619a6=[];switch(_0x395bca['id']){case _0x4e84fb[_0x5ed03d(0xc7)]:{_0x2619a6=_0x230d4f(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x127)]:{_0x2619a6=_0x79a8bd(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x1d0)]:{_0x2619a6=_0x289e62(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x18d)]:{_0x2619a6=_0x271c7f(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x112)]:{_0x2619a6=_0x2f5940(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0x295)]:{_0x2619a6=_0xf510f4(_0x395bca,_0xe15d89);break;}case _0x4e84fb['MoveRangeCommandId']:{_0x2619a6=_0x3899df(_0x395bca,_0xe15d89);break;}case _0x4e84fb[_0x5ed03d(0xb6)]:{_0x2619a6=_0x41f788(_0x395bca,_0xe15d89);break;}case _0x4e84fb['RemoveRowCommandId']:{_0x2619a6=_0x21aa6f(_0x395bca,_0xe15d89);break;}}const _0x553d3f=_0x205469(_0x2619a6,_0xe15d89),_0x1ea7da=this['cursorInfo'][_0x5ed03d(0x265)](_0xe4999d);if(_0x1ea7da&&_0x553d3f){const _0x3a6a8d={..._0x1ea7da,'range':_0x553d3f};this[_0x5ed03d(0x164)][_0x5ed03d(0xc9)](_0xe4999d,_0x3a6a8d),_0x2207f0(()=>{const _0x42a5b1=_0x5ed03d,_0x176d90=this[_0x42a5b1(0x11a)][_0x42a5b1(0x198)](_0x553d3f,_0x980206=>(_0x176d90[_0x42a5b1(0x2b4)](),_0x4ead03(_0x980206,_0xe4999d,_0x3fc09e,_0x553d3f)));_0x1c200c[_0x42a5b1(0x25d)](_0x176d90);});}return{'redos':[],'undos':[]};};this[_0x5545ec(0x164)]['forEach']((_0x5e8eec,_0x4b6ee5)=>{const _0x3aece0=_0x5545ec,{range:_0x582fec,sheetID:_0x1ce4ee}=_0x5e8eec,_0x22a870=this[_0x3aece0(0x11a)][_0x3aece0(0x198)](_0x582fec,_0x1e36ed=>(_0x22a870[_0x3aece0(0x2b4)](),_0x4ead03(_0x1e36ed,_0x4b6ee5,_0x1ce4ee,_0x582fec)));_0x1c200c[_0x3aece0(0x25d)](_0x22a870);});};this[_0x161532(0x1c2)](_0x3213ea(this[_0x161532(0xbf)][_0x161532(0x158)](()=>{_0x1cce68();})));}[_0x17995c(0x23b)](){const _0x551d16=_0x17995c;var _0x5cddd5,_0x38fcbb;if(this[_0x551d16(0x208)]=!0x0,((_0x5cddd5=this['_univerInstanceService'][_0x551d16(0x177)]())==null?void 0x0:_0x5cddd5['getUnitId']())!==this[_0x551d16(0x251)])return;const _0x144566=(_0x38fcbb=this[_0x551d16(0x287)]['get'](_0x559b06)[_0x551d16(0x23d)]())==null?void 0x0:_0x38fcbb[0x0],_0x28d877=this[_0x551d16(0x290)][_0x551d16(0x1af)](_0x502d97[_0x551d16(0x12d)])[_0x551d16(0x2a4)]();_0x144566&&_0x28d877&&this[_0x551d16(0x1a5)](_0x28d877[_0x551d16(0xa9)](),_0x144566);}[_0x17995c(0x197)](){const _0x1f92b2=_0x17995c;this[_0x1f92b2(0x208)]=!0x1;}};we=$i([B(0x2,_0x11a278(_0x426398)),B(0x3,_0x11a278(je)),B(0x4,_0x11a278(_0x3af1e3)),B(0x5,_0x382f2b),B(0x6,_0x31e8e2),B(0x7,_0x11a278(_0x1fa5d1))],we);var ki=Object[_0x17995c(0x153)],Hi=(_0x512212,_0xce1175,_0x1debac,_0x2f71f8)=>{const _0x30a50e=_0x17995c;for(var _0x43efa0=_0x2f71f8>0x1?void 0x0:_0x2f71f8?ki(_0xce1175,_0x1debac):_0xce1175,_0x2c64b4=_0x512212[_0x30a50e(0x28b)]-0x1,_0x451834;_0x2c64b4>=0x0;_0x2c64b4--)(_0x451834=_0x512212[_0x2c64b4])&&(_0x43efa0=_0x451834(_0x43efa0)||_0x43efa0);return _0x43efa0;},Ee=(_0x23c3ed,_0x2a2807)=>(_0x1b5dc0,_0x4252ac)=>_0x2a2807(_0x1b5dc0,_0x4252ac,_0x23c3ed);let H=class extends _0x53201b{constructor(_0x242432,_0x3c489c,_0x217af4){const _0x4c63a0=_0x17995c;super(),l(this,_0x4c63a0(0x250),new Map()),l(this,_0x4c63a0(0x10f),new _0x34a8bd()),(this[_0x4c63a0(0x290)]=_0x242432,this[_0x4c63a0(0x287)]=_0x3c489c,this[_0x4c63a0(0x195)]=_0x217af4,this['_init']());}['dispose'](){const _0x72c20b=_0x17995c;super[_0x72c20b(0x2b4)](),this[_0x72c20b(0x10f)][_0x72c20b(0x25e)](),this[_0x72c20b(0x250)]['forEach'](_0x100e76=>_0x100e76[_0x72c20b(0x2b4)]());}['getCollabCursors$'](_0x386586){const _0x23762b=_0x17995c;return this['_entities'][_0x23762b(0x2a9)](_0x386586)?this[_0x23762b(0x250)][_0x23762b(0x265)](_0x386586)['cursorInfo$']:this[_0x23762b(0x10f)][_0x23762b(0x269)](_0x26217d(_0x549bc4=>_0x549bc4[_0x23762b(0x251)]===_0x386586),_0x276c2a(_0xa66069=>_0xa66069[_0x23762b(0x1b5)]));}[_0x17995c(0x11f)](){const _0x53713d=_0x17995c;this[_0x53713d(0x290)][_0x53713d(0x206)](_0x502d97[_0x53713d(0x12d)])['pipe'](_0x426fdf(this[_0x53713d(0xda)]))[_0x53713d(0x158)](async _0x34ed62=>{const _0x2f3e27=_0x53713d,_0x59868c=_0x34ed62['getUnitId'](),_0x612159=await this[_0x2f3e27(0x1b3)](_0x59868c);this[_0x2f3e27(0x10f)][_0x2f3e27(0xf2)](_0x612159),this[_0x2f3e27(0x250)][_0x2f3e27(0xc9)](_0x59868c,_0x612159);}),this[_0x53713d(0x290)]['getTypeOfUnitAdded$'](_0x502d97['UNIVER_DOC'])[_0x53713d(0x269)](_0x426fdf(this[_0x53713d(0xda)]))['pipe'](_0x26217d(_0x5412f1=>!_0x5412f1[_0x53713d(0x10d)]()[_0x53713d(0xc2)]('__')))['subscribe'](async _0x4e8115=>{const _0x12553f=_0x53713d,_0x5a649d=_0x4e8115[_0x12553f(0x10d)](),_0x59d4d7=await this[_0x12553f(0x231)](_0x5a649d);this['_entityInit$'][_0x12553f(0xf2)](_0x59d4d7),this[_0x12553f(0x250)][_0x12553f(0xc9)](_0x5a649d,_0x59d4d7);}),_0x298745(this[_0x53713d(0x290)]['getTypeOfUnitDisposed$'](_0x502d97[_0x53713d(0x92)]),this[_0x53713d(0x290)][_0x53713d(0xdb)](_0x502d97['UNIVER_SHEET']))[_0x53713d(0x269)](_0x426fdf(this[_0x53713d(0xda)]))[_0x53713d(0x158)](_0x18a7f4=>{const _0x65fea7=_0x53713d,_0x4597e6=_0x18a7f4[_0x65fea7(0x10d)](),_0x21ca13=this[_0x65fea7(0x250)][_0x65fea7(0x265)](_0x4597e6);_0x21ca13&&(_0x21ca13[_0x65fea7(0x2b4)](),this['_entities'][_0x65fea7(0xeb)](_0x4597e6));});}async[_0x17995c(0x1b3)](_0x369113){const _0x680c2c=_0x17995c,_0x12447f=await this['_collabSessionService'][_0x680c2c(0xe3)](_0x369113),_0x4dfae3=this[_0x680c2c(0x287)]['createInstance'](we,_0x369113,_0x12447f);return _0x4dfae3[_0x680c2c(0x1f9)](),_0x4dfae3;}async[_0x17995c(0x231)](_0x29cb36){const _0x500360=_0x17995c,_0x9bd0e0=await this[_0x500360(0x195)][_0x500360(0xe3)](_0x29cb36),_0x11f8b4=this['_injector'][_0x500360(0x256)](Pe,_0x29cb36,_0x9bd0e0);return _0x11f8b4[_0x500360(0x1f9)](),_0x11f8b4;}};H=Hi([Ee(0x0,_0x382f2b),Ee(0x1,_0x11a278(_0x426398)),Ee(0x2,_0x11a278(_0x141d96))],H);const Q=0x14,it=0xc8,pe=0x4,Yi=0x5;function Wi(_0x2c936d,_0x184730){const _0x42a2c9=_0x17995c;let {radius:_0x274b13,width:_0x1b99da,height:_0x3b865c}=_0x184730;_0x274b13=_0x274b13!=null?_0x274b13:0x0,_0x1b99da=_0x1b99da!=null?_0x1b99da:0x1e,_0x3b865c=_0x3b865c!=null?_0x3b865c:0x1e;let _0x29a516=0x0,_0x3ef43e=0x0,_0x4d3c83=0x0;_0x29a516=_0x3ef43e=_0x4d3c83=Math[_0x42a2c9(0xe6)](_0x274b13,_0x1b99da/0x2,_0x3b865c/0x2),_0x2c936d[_0x42a2c9(0x13d)](),_0x2c936d['moveTo'](_0x29a516,0x0),_0x2c936d['lineTo'](_0x1b99da-_0x3ef43e,0x0),_0x2c936d['arc'](_0x1b99da-_0x3ef43e,_0x3ef43e,_0x3ef43e,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c936d[_0x42a2c9(0x2a3)](_0x1b99da,_0x3b865c-_0x4d3c83),_0x2c936d[_0x42a2c9(0x1fa)](_0x1b99da-_0x4d3c83,_0x3b865c-_0x4d3c83,_0x4d3c83,0x0,Math['PI']/0x2,!0x1),_0x2c936d[_0x42a2c9(0x2a3)](0x0,_0x3b865c),_0x2c936d[_0x42a2c9(0x2a3)](0x0,_0x29a516),_0x2c936d[_0x42a2c9(0x1fa)](_0x29a516,_0x29a516,_0x29a516,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c936d[_0x42a2c9(0x286)](),_0x184730['fill']&&(_0x2c936d['save'](),_0x2c936d[_0x42a2c9(0x122)]=_0x184730[_0x42a2c9(0x1cd)],_0x184730['fillRule']==='evenodd'?_0x2c936d[_0x42a2c9(0x1cd)](_0x42a2c9(0x193)):_0x2c936d[_0x42a2c9(0x1cd)](),_0x2c936d[_0x42a2c9(0x88)]());}class me extends _0xd80c53{constructor(_0x310e9a,_0x337fca){const _0x1b5a10=_0x17995c;super(_0x310e9a,_0x337fca),l(this,_0x1b5a10(0x1b1)),l(this,_0x1b5a10(0x109)),(this['color']=_0x337fca==null?void 0x0:_0x337fca[_0x1b5a10(0x1b1)],this[_0x1b5a10(0x109)]=_0x337fca==null?void 0x0:_0x337fca[_0x1b5a10(0x109)]);}static[_0x17995c(0x178)](_0x36c29d,_0x36d9fd){const _0x33e063=_0x17995c,{text:_0x456829,color:_0x43121b}=_0x36d9fd;_0x36c29d[_0x33e063(0xb8)](),_0x36c29d[_0x33e063(0x291)]=_0x33e063(0x1de);const _0x8a73b1=_0x36c29d[_0x33e063(0x8f)](_0x456829)[_0x33e063(0x213)],_0x3ae76d=Math[_0x33e063(0xe6)](_0x8a73b1+0x2*pe,it);Wi(_0x36c29d,{'height':Q,'radius':0x4,'width':_0x3ae76d,'fill':_0x43121b}),_0x36c29d['fillStyle']=_0x33e063(0x1b0);const _0x2a89ef=pe,_0x43d4d7=Q-Yi,_0xd708a9=it-0x2*pe;if(_0x8a73b1>_0xd708a9){let _0x2746af='',_0x3c44f6=0x0;for(const _0x351206 of _0x456829){const _0x246791=_0x36c29d['measureText'](_0x351206)['width'];if(_0x3c44f6+_0x246791<=_0xd708a9-_0x36c29d[_0x33e063(0x8f)](_0x33e063(0x284))[_0x33e063(0x213)])_0x2746af+=_0x351206,_0x3c44f6+=_0x246791;else{_0x2746af+=_0x33e063(0x284);break;}}_0x36c29d[_0x33e063(0x19f)](_0x2746af,_0x2a89ef,_0x43d4d7);}else _0x36c29d[_0x33e063(0x19f)](_0x456829,_0x2a89ef,_0x43d4d7);_0x36c29d[_0x33e063(0x88)]();}[_0x17995c(0x19e)](_0x4d7dff){const _0x10f77b=_0x17995c;me[_0x10f77b(0x178)](_0x4d7dff,this);}}const Oe='collab-text-anchor-',Vi='collab-text-range-',ji='collab-rect-range-',z=0x6,Xi=1.5,Te=0x4,Gi=1.5,Ki=_0x17995c(0x1e2);class nt{constructor(_0x571005,_0x526d95,_0x52ecb0,_0x12e205){const _0x55ad3e=_0x17995c;l(this,_0x55ad3e(0x133),[]),l(this,'_anchor',null),l(this,_0x55ad3e(0x117),null),l(this,_0x55ad3e(0xc5),null),l(this,'_hideTimer',null),l(this,_0x55ad3e(0x223),null),(this[_0x55ad3e(0x1ee)]=_0x571005,this['_scene']=_0x526d95,this[_0x55ad3e(0x119)]=_0x52ecb0,this[_0x55ad3e(0x247)]=_0x12e205,this['_render']());}set['_hover'](_0x381cce){const _0x16dda6=_0x17995c;_0x381cce?(this[_0x16dda6(0xc5)]&&this[_0x16dda6(0xc5)][_0x16dda6(0xcb)](),this['_textBubble']&&this[_0x16dda6(0x117)][_0x16dda6(0xfe)]()):(this[_0x16dda6(0xc5)]&&this['_anchorDot'][_0x16dda6(0xfe)](),this[_0x16dda6(0x117)]&&this['_textBubble'][_0x16dda6(0xcb)]());}[_0x17995c(0x2b4)](){const _0x3b1d41=_0x17995c;for(const _0x2002bb of this[_0x3b1d41(0x133)])_0x2002bb[_0x3b1d41(0x2b4)]();this[_0x3b1d41(0x117)]&&this[_0x3b1d41(0x117)][_0x3b1d41(0x2b4)](),this[_0x3b1d41(0xc5)]&&this['_anchorDot'][_0x3b1d41(0x2b4)](),this[_0x3b1d41(0x21e)]&&this[_0x3b1d41(0x21e)]['dispose'](),this[_0x3b1d41(0x223)]&&this['_eventUnsubscribe']();}[_0x17995c(0x2bc)](){const _0x1f2086=_0x17995c;var _0xcee9a2;const {_docSkeleton:_0x5b352c,_document:_0x192e43}=this,{color:_0x211478,name:_0xe4ac21,ranges:_0x87b0d7}=this[_0x1f2086(0x1ee)],_0xbea826=_0x192e43['getOffsetConfig'](),{docsLeft:_0x77ca69,docsTop:_0x11f81b}=_0xbea826,_0x3f1287=new _0x2b24bd(_0xbea826,_0x5b352c);for(const {startOffset:_0x50accd,endOffset:_0x1655cf,rangeType:_0x1d10a7,segmentId:_0xc9a9db,segmentPage:_0x4be7d7,collapsed:_0x4bf827,isActive:_0x28eeed}of _0x87b0d7){const _0x42d113=_0x5b352c[_0x1f2086(0x207)](_0x50accd,!0x0,_0xc9a9db,_0x4be7d7);let _0x3829f0=_0x5b352c[_0x1f2086(0x207)](_0x1655cf,!0x0,_0xc9a9db,_0x4be7d7);if(_0x3829f0==null&&(_0x3829f0=_0x5b352c[_0x1f2086(0x207)](_0x1655cf-0x1,!0x1,_0xc9a9db,_0x4be7d7)),_0x28eeed){const {contentBoxPointGroup:_0x4ee92b}=_0x3f1287[_0x1f2086(0x2b3)](_0x3829f0,_0x3829f0);if(_0x4ee92b['length']===0x0)continue;this[_0x1f2086(0x1e9)](_0x211478,_0x4ee92b,_0x77ca69,_0x11f81b,_0xe4ac21),this[_0x1f2086(0x223)]=this[_0x1f2086(0x17e)]();}if(_0x42d113&&_0x3829f0){if(_0x1d10a7===_0x461746[_0x1f2086(0x1aa)]){const _0x3c04f3=new _0x3e66b9(_0xbea826,_0x5b352c),{pointGroup:_0x3a9ad1}=(_0xcee9a2=_0x3c04f3['getRangePointData'](_0x42d113,_0x3829f0))!=null?_0xcee9a2:{};if(_0x3a9ad1==null||_0x3a9ad1['length']===0x0)continue;this[_0x1f2086(0x21d)](_0x211478,_0x3a9ad1,_0x77ca69,_0x11f81b);}else{if(!_0x4bf827){const {borderBoxPointGroup:_0x4366b4}=_0x3f1287['getRangePointData'](_0x42d113,_0x3829f0);if(_0x4366b4[_0x1f2086(0x28b)]===0x0)continue;this[_0x1f2086(0x1fc)](_0x211478,_0x4366b4,_0x77ca69,_0x11f81b);}}}}}[_0x17995c(0x1e9)](_0x3d0864,_0x595418,_0x22b852,_0x483603,_0x53610d){const _0x36f0e7=_0x17995c,_0x110657=this['_getAnchorBounding'](_0x595418),{left:_0x45c4cd,top:_0x546e1e,height:_0x56da22}=_0x110657,_0x51ef45=this[_0x36f0e7(0x156)](),_0x22554b=Gi/_0x51ef45,_0xcc7e7c=new _0x27916c(Oe+_0x25c646(z),{'left':_0x45c4cd+_0x22b852-_0x22554b,'top':_0x546e1e+_0x483603,'height':_0x56da22,'width':Xi,'fill':_0x3d0864||_0x311d32(_0x4a1af7['black'],0x0),'strokeWidth':_0x22554b,'stroke':Ki,'evented':!0x0});this[_0x36f0e7(0x21e)]=_0xcc7e7c,this[_0x36f0e7(0x15e)][_0x36f0e7(0x1a6)](_0xcc7e7c,_0x5f5b0d);const _0x1fd3fd=new _0x27916c(Oe+_0x25c646(z),{'left':_0x45c4cd+_0x22b852-_0x22554b,'top':_0x546e1e+_0x483603-Te/0x2,'height':Te,'width':Te,'fill':_0x3d0864||_0x311d32(_0x4a1af7['black'],0x0),'strokeWidth':0x0,'stroke':_0x3d0864||_0x311d32(_0x4a1af7[_0x36f0e7(0x140)],0x0),'evented':!0x1});this['_anchorDot']=_0x1fd3fd,this[_0x36f0e7(0x15e)][_0x36f0e7(0x1a6)](_0x1fd3fd,_0x5f5b0d);const _0x3cf7b4=new me(Oe+_0x25c646(z),{'left':_0x45c4cd+_0x22b852-_0x22554b,'top':_0x546e1e+_0x483603-Q,'text':_0x53610d,'color':_0x3d0864});this[_0x36f0e7(0x117)]=_0x3cf7b4,this[_0x36f0e7(0x15e)][_0x36f0e7(0x1a6)](_0x3cf7b4,_0x5f5b0d),this[_0x36f0e7(0x1d2)]=!0x1;}['_handleHover'](){const _0x2bb7bb=_0x17995c,_0x1a8145=this[_0x2bb7bb(0x21e)][_0x2bb7bb(0x2ac)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x86fb69=this[_0x2bb7bb(0x21e)][_0x2bb7bb(0x249)][_0x2bb7bb(0x2bd)](()=>{const _0x564d2b=_0x2bb7bb;this['_hideTimer']&&clearTimeout(this[_0x564d2b(0x255)]),this[_0x564d2b(0x255)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x11b653=_0x2bb7bb;_0x1a8145[_0x11b653(0x271)](),_0x86fb69[_0x11b653(0x271)]();};}['_drawTextRange'](_0x1537b6,_0x43bc48,_0x415d27,_0x135c2e){const _0x5f297d=_0x17995c,_0x5143aa=new _0x109ebd(_0x1537b6)['setAlpha'](0.2)[_0x5f297d(0x2a1)](),_0xb09c3e=new _0x4b441d(Vi+_0x25c646(z),{'pointsGroup':_0x43bc48,'fill':_0x5143aa||_0x311d32(_0x4a1af7[_0x5f297d(0x140)],0.2),'left':_0x415d27,'top':_0x135c2e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f297d(0x133)][_0x5f297d(0x272)](_0xb09c3e),this[_0x5f297d(0x15e)][_0x5f297d(0x1a6)](_0xb09c3e,_0x5f5b0d);}['_drawRectRange'](_0x2bb2fe,_0x39ca98,_0x4654d6,_0x130499){const _0x50c8c3=_0x17995c,_0x22d122=new _0x109ebd(_0x2bb2fe)['setAlpha'](0.2)[_0x50c8c3(0x2a1)](),_0x4292a7=new _0x4b441d(ji+_0x25c646(z),{'pointsGroup':_0x39ca98,'fill':_0x22d122||_0x311d32(_0x4a1af7[_0x50c8c3(0x140)],0.2),'left':_0x4654d6,'top':_0x130499,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x50c8c3(0x133)]['push'](_0x4292a7),this[_0x50c8c3(0x15e)][_0x50c8c3(0x1a6)](_0x4292a7,_0x5f5b0d);}[_0x17995c(0xb9)](_0x397888){const _0x2ee61c=_0x397888[0x0],_0x506c6e=_0x2ee61c[0x0],_0x4fe67c=_0x2ee61c[0x2],{x:_0x1ea9f6,y:_0x26ad8}=_0x506c6e,{x:_0x5e52dc,y:_0x482d97}=_0x4fe67c;return{'left':_0x1ea9f6,'top':_0x26ad8,'width':_0x5e52dc-_0x1ea9f6,'height':_0x482d97-_0x26ad8};}[_0x17995c(0x156)](){const _0x4fc046=_0x17995c,{scaleX:_0x36dc70,scaleY:_0x2d79ed}=this[_0x4fc046(0x15e)]['getAncestorScale']();return Math[_0x4fc046(0x12b)](_0x36dc70,_0x2d79ed);}}var zi=Object[_0x17995c(0x153)],Ji=(_0x322a5d,_0x5db957,_0x1781f2,_0x3fba08)=>{const _0xac7786=_0x17995c;for(var _0x5bf690=_0x3fba08>0x1?void 0x0:_0x3fba08?zi(_0x5db957,_0x1781f2):_0x5db957,_0x623d9a=_0x322a5d[_0xac7786(0x28b)]-0x1,_0x5bbd19;_0x623d9a>=0x0;_0x623d9a--)(_0x5bbd19=_0x322a5d[_0x623d9a])&&(_0x5bf690=_0x5bbd19(_0x5bf690)||_0x5bf690);return _0x5bf690;},ie=(_0x5f2645,_0x35b057)=>(_0x3e1884,_0x4d38e2)=>_0x35b057(_0x3e1884,_0x4d38e2,_0x5f2645);let ye=class extends _0x53201b{constructor(_0x51a3b4,_0xef8eca,_0x5de965,_0x4f9219,_0x1bc0e5){const _0x456f46=_0x17995c;super(),l(this,_0x456f46(0x8e),[]),l(this,_0x456f46(0x136),[]),(this[_0x456f46(0xf6)]=_0x51a3b4,this[_0x456f46(0x9d)]=_0xef8eca,this[_0x456f46(0x25c)]=_0x5de965,this[_0x456f46(0x1ed)]=_0x4f9219,this[_0x456f46(0x143)]=_0x1bc0e5,this[_0x456f46(0x11f)]());}[_0x17995c(0x11f)](){const _0x94378a=_0x17995c,_0x1ede84=this[_0x94378a(0xf6)][_0x94378a(0x27b)],_0x5240bc=this[_0x94378a(0x9d)];this[_0x94378a(0x1c2)](_0x524282([this[_0x94378a(0x25c)]['getCollabCursors$'](_0x1ede84),this['_themeService'][_0x94378a(0x1bd)]])[_0x94378a(0x269)](_0x248c7f(([_0x24106e,_0x2db39a])=>({'skeleton':_0x5240bc[_0x94378a(0x1ae)](),'cursors':[..._0x24106e[_0x94378a(0x161)]()]['flatMap'](_0x562784=>({..._0x562784,'color':this['_themeService'][_0x94378a(0x28a)](_0x562784[_0x94378a(0x1b1)])}))})))[_0x94378a(0x158)](_0x23f105=>{if(this['_removeCollabCursors'](),_0x23f105){const {skeleton:_0xd2af7,cursors:_0x27630c}=_0x23f105;this['_updateCollabCursors'](_0xd2af7,_0x27630c);}})),this['_initResize'](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x3e1ac5,_0x1cd42d){const _0x134bea=_0x17995c,{scene:_0x405428,mainComponent:_0x11b563}=this[_0x134bea(0xf6)],_0x5c712a=_0x1cd42d[_0x134bea(0x14e)](_0xe070bd=>new nt(_0xe070bd,_0x405428,_0x3e1ac5,_0x11b563));this['_cursorShapes']=_0x5c712a,this['_cursors']=_0x1cd42d;}[_0x17995c(0x99)](){const _0x36100f=_0x17995c;this[_0x36100f(0x1f4)]();const {scene:_0x6281f7,mainComponent:_0x385864}=this[_0x36100f(0xf6)],_0x8cda5f=this[_0x36100f(0x9d)][_0x36100f(0x1ae)](),_0x1d5061=this['_cursors'][_0x36100f(0x14e)](_0x266632=>new nt(_0x266632,_0x6281f7,_0x8cda5f,_0x385864));this[_0x36100f(0x8e)]=_0x1d5061;}['_removeCollabCursors'](){const _0x4f5918=_0x17995c;this[_0x4f5918(0x8e)][_0x4f5918(0xbe)](_0x473eba=>_0x473eba[_0x4f5918(0x2b4)]()),this[_0x4f5918(0x8e)]=[];}[_0x17995c(0x103)](){const _0x3410a2=_0x17995c,_0x35d56e=[_0x7dd482['id']];this['disposeWithMe'](this[_0x3410a2(0x1ed)][_0x3410a2(0x162)](_0x39b0bd=>{const _0x46de66=_0x3410a2;_0x35d56e[_0x46de66(0x16e)](_0x39b0bd['id'])&&_0x39b0bd[_0x46de66(0x166)][_0x46de66(0x27b)]===this['_context'][_0x46de66(0x27b)]&&this[_0x46de66(0x99)]();}));}[_0x17995c(0x20c)](){const _0x261f7f=_0x17995c;this[_0x261f7f(0x1c2)](_0x1f3ae9(this[_0x261f7f(0xf6)]['engine'][_0x261f7f(0x239)])[_0x261f7f(0x269)](_0x3f54ce(_0x1adf1d=>_0x1adf1d[_0x261f7f(0x21b)]===_0x19661c[_0x261f7f(0x1c0)]),_0x53d2a8(0x10))[_0x261f7f(0x158)](()=>{const _0x552add=_0x261f7f;this[_0x552add(0x99)]();}));}};ye=Ji([ie(0x1,_0x11a278(_0x33174f)),ie(0x2,_0x11a278(H)),ie(0x3,_0x31e8e2),ie(0x4,_0x11a278(_0x3e584d))],ye);const Zi=0x1,Qi=1.5;class qi extends _0xd80c53{constructor(_0x321184,_0x34996c){const _0x52db11=_0x17995c;super(_0x321184,_0x34996c),l(this,_0x52db11(0x137)),l(this,_0x52db11(0x1c6),!0x1),l(this,_0x52db11(0xf5)),l(this,_0x52db11(0x2b9),''),l(this,_0x52db11(0x22f),_0x52db11(0x128)),l(this,_0x52db11(0x27c)),(_0x34996c&&this['setShapeProps'](_0x34996c),this[_0x52db11(0x2ac)]['subscribeEvent'](()=>this[_0x52db11(0x98)]({'hovered':!0x0})),this[_0x52db11(0x249)][_0x52db11(0x2bd)](()=>this[_0x52db11(0x98)]({'hovered':!0x1})));}[_0x17995c(0x98)](_0x26cabe){const _0x159739=_0x17995c;var _0xa9916c,_0x5b399f,_0x30bb58,_0x581f06,_0x4f050f,_0x526a9c;this[_0x159739(0x137)]=(_0xa9916c=_0x26cabe['color'])!=null?_0xa9916c:this[_0x159739(0x137)],this[_0x159739(0x1c6)]=(_0x5b399f=_0x26cabe[_0x159739(0x169)])!=null?_0x5b399f:this[_0x159739(0x1c6)],this[_0x159739(0xf5)]=(_0x30bb58=_0x26cabe[_0x159739(0x105)])!=null?_0x30bb58:this[_0x159739(0xf5)],this[_0x159739(0x2b9)]=(_0x581f06=_0x26cabe[_0x159739(0x13a)])!=null?_0x581f06:this['_name'],this[_0x159739(0x22f)]=(_0x4f050f=_0x26cabe[_0x159739(0x1e8)])!=null?_0x4f050f:this[_0x159739(0x22f)],this['_backgroundColor']=(_0x526a9c=_0x26cabe[_0x159739(0x1fd)])!=null?_0x526a9c:this['_backgroundColor'],this[_0x159739(0x15a)]({'width':_0x26cabe['width'],'height':_0x26cabe[_0x159739(0x2be)]});}[_0x17995c(0x2b0)](_0x1b4d9e){const _0x25bc84=_0x17995c,{row:_0x246701,column:_0x708d4f}=_0x1b4d9e;if(_0x246701>=this['_range'][_0x25bc84(0xb3)]&&_0x246701<=this[_0x25bc84(0xf5)]['endRow']&&_0x708d4f>=this[_0x25bc84(0xf5)][_0x25bc84(0x1c7)]&&_0x708d4f<=this[_0x25bc84(0xf5)][_0x25bc84(0x17b)]){this[_0x25bc84(0x98)]({'hovered':!0x0});return;}this[_0x25bc84(0x98)]({'hovered':!0x1});}['triggerDblclick'](_0x34be75){return!0x1;}[_0x17995c(0x19e)](_0x4283cf){const _0x9973ca=_0x17995c;_0x27916c[_0x9973ca(0x178)](_0x4283cf,{'width':this[_0x9973ca(0x213)],'height':this[_0x9973ca(0x2be)],'strokeWidth':Qi,'stroke':this[_0x9973ca(0x137)],'evented':!0x1,'fill':this[_0x9973ca(0x27c)]}),this['_hovered']&&(_0x4283cf[_0x9973ca(0xb8)](),_0x4283cf['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x9973ca(0x168)?0x0:-Q),me['drawWith'](_0x4283cf,{'text':this[_0x9973ca(0x2b9)],'color':this[_0x9973ca(0x137)]}),_0x4283cf[_0x9973ca(0x88)]());}}var en=Object['getOwnPropertyDescriptor'],tn=(_0xc3026c,_0x3b6d53,_0x3b8d08,_0x3c94e5)=>{const _0x2733ab=_0x17995c;for(var _0x86d718=_0x3c94e5>0x1?void 0x0:_0x3c94e5?en(_0x3b6d53,_0x3b8d08):_0x3b6d53,_0x47504d=_0xc3026c[_0x2733ab(0x28b)]-0x1,_0x5b3ea1;_0x47504d>=0x0;_0x47504d--)(_0x5b3ea1=_0xc3026c[_0x47504d])&&(_0x86d718=_0x5b3ea1(_0x86d718)||_0x86d718);return _0x86d718;},Ce=(_0x25dd75,_0x10b524)=>(_0x3d1d80,_0x40760b)=>_0x10b524(_0x3d1d80,_0x40760b,_0x25dd75);const sn=0x1389;let $e=class extends _0x53201b{constructor(_0x2a3621,_0x20db61,_0x34879d,_0x49239e){const _0x25a698=_0x17995c;super(),l(this,'_cursors',new Set()),l(this,'_lastPointer',null),(this[_0x25a698(0xf6)]=_0x2a3621,this[_0x25a698(0x174)]=_0x20db61,this[_0x25a698(0x25c)]=_0x34879d,this['_themeService']=_0x49239e,this[_0x25a698(0x11f)]());}[_0x17995c(0x11f)](){const _0x5b6100=_0x17995c;this[_0x5b6100(0x174)][_0x5b6100(0x135)][_0x5b6100(0x269)](_0x5050e3(this['dispose$']),_0x4613aa(_0x793257=>{const _0x4e5576=_0x5b6100;if(_0x793257){const _0x23327b=_0x793257[_0x4e5576(0x214)];return _0x524282(this['_collabCursorController'][_0x4e5576(0x245)](this['_context'][_0x4e5576(0x27b)]),this[_0x4e5576(0x143)]['currentTheme$'])['pipe'](_0x248c7f(([_0xa69828,_0x19eaf0])=>{const _0x46850e=_0x4e5576,_0x21d369=new Map();return _0xa69828[_0x46850e(0xbe)]((_0x17df51,_0x2c8db8)=>{const _0x5f0d2c=_0x46850e;if(_0x17df51[_0x5f0d2c(0x22a)]===_0x23327b){const _0x3ed736={..._0x17df51};_0x3ed736['color']=this['_themeService'][_0x5f0d2c(0x28a)](_0x17df51[_0x5f0d2c(0x1b1)]),_0x21d369[_0x5f0d2c(0xc9)](_0x2c8db8,_0x3ed736);}}),{'skeleton':_0x793257,'cursors':_0x21d369};}));}return _0x461f63({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1d60f8,cursors:_0x59df42})=>{const _0x461ba4=_0x5b6100;this[_0x461ba4(0x1f4)](),_0x1d60f8&&this[_0x461ba4(0x175)](_0x1d60f8,_0x59df42);}),this[_0x5b6100(0x174)][_0x5b6100(0x135)][_0x5b6100(0x158)](_0x1f9ec8=>{const _0x29a172=_0x5b6100;if(_0x1f9ec8==null)return;const {skeleton:_0x76c097}=_0x1f9ec8,{scene:_0x8ff3cd}=this[_0x29a172(0xf6)];_0x8ff3cd[_0x29a172(0x274)][_0x29a172(0x2bd)](_0x302608(_0x3cd2a7=>{const _0x3b5388=_0x29a172;var _0x22b5b3,_0x94cbfa;const {offsetX:_0x127028,offsetY:_0x41925c}=_0x3cd2a7,{x:_0xfd07b1,y:_0x553c02}=_0x8ff3cd[_0x3b5388(0x11e)](_0x58f725[_0x3b5388(0x2b7)]([_0x127028,_0x41925c])),{scaleX:_0x204881,scaleY:_0x20c155}=_0x8ff3cd[_0x3b5388(0x2ba)](),_0x4e23b5=_0x8ff3cd[_0x3b5388(0x11d)](_0x2389fc[_0x3b5388(0x184)]),_0x3aab02=_0x8ff3cd[_0x3b5388(0x1c5)](_0x58f725[_0x3b5388(0x2b7)]([_0xfd07b1,_0x553c02]),_0x4e23b5),_0xf58e9c=_0x76c097['getCellPositionByOffset'](_0x127028,_0x41925c,_0x204881,_0x20c155,_0x3aab02);((_0x22b5b3=this[_0x3b5388(0x1e0)])==null?void 0x0:_0x22b5b3['column'])===_0xf58e9c[_0x3b5388(0x14c)]&&((_0x94cbfa=this[_0x3b5388(0x1e0)])==null?void 0x0:_0x94cbfa[_0x3b5388(0x101)])===_0xf58e9c[_0x3b5388(0x101)]||this['_cursors'][_0x3b5388(0xbe)](_0xd45398=>{const _0x21c009=_0x3b5388;_0xd45398[_0x21c009(0x2b0)](_0xf58e9c);});},0x64));});}['_updateCollabCursors'](_0x5220b,_0x3f28df){const _0x4e44c5=_0x17995c;var _0x102a5c;const _0x34d85f=(_0x102a5c=this[_0x4e44c5(0x174)][_0x4e44c5(0x25f)]())==null?void 0x0:_0x102a5c['skeleton'];if(!_0x34d85f)return;const _0x1e7395=this[_0x4e44c5(0x25b)]();if(!_0x1e7395)return;this[_0x4e44c5(0x136)]['forEach'](_0x199723=>{const _0x557551=_0x4e44c5;_0x199723[_0x557551(0x1dc)]();});const {scene:_0x347c57}=_0x1e7395,_0x287e07=nn(Array[_0x4e44c5(0x294)](_0x3f28df[_0x4e44c5(0x161)]()))[_0x4e44c5(0x14e)](_0x431a8d=>{const {color:_0x10ef06,range:_0x292f7e,name:_0x206409,selection:_0x2f129b,sheetID:_0x44bc3e}=_0x431a8d,{startColumn:_0x44ea73,startRow:_0x4b8992,endColumn:_0x36a2f1,endRow:_0x148425}=_0x292f7e,_0x205a4b=_0x2f11d6(_0x4b8992,_0x44ea73,_0x347c57,_0x34d85f),_0x538ad5=_0x2f11d6(_0x148425,_0x36a2f1,_0x347c57,_0x34d85f),{columnHeaderHeightAndMarginTop:_0x2e0be3}=_0x34d85f,{startX:_0x4e0ee1,startY:_0x49ebec}=_0x205a4b,{endX:_0x52f7e6,endY:_0x35fed8}=_0x538ad5,_0x502c70=_0x52f7e6-_0x4e0ee1,_0x2be93f=_0x35fed8-_0x49ebec,_0x23b0f5={'labelPosition':_0x49ebec-_0x2e0be3>=Q?'top':'bottom','sheetID':_0x44bc3e,'range':_0x292f7e,'color':_0x10ef06,'name':_0x206409,'selection':_0x2f129b,'left':_0x4e0ee1,'top':_0x49ebec,'width':_0x502c70,'height':_0x2be93f,'evented':!0x1,'zIndex':sn};return new qi(_0x206409,_0x23b0f5);});_0x347c57[_0x4e44c5(0x299)](_0x287e07,Zi),this[_0x4e44c5(0x136)]=new Set(_0x287e07);}[_0x17995c(0x1f4)](){const _0x565ade=_0x17995c;var _0x4281a2;(_0x4281a2=this['_cursors'])==null||_0x4281a2['forEach'](_0x269769=>_0x269769[_0x565ade(0x2b4)]());}['_getSheetObject'](){const _0x3d964f=_0x17995c;return _0x1f24ae(this[_0x3d964f(0xf6)][_0x3d964f(0x20d)],this[_0x3d964f(0xf6)]);}};$e=tn([Ce(0x1,_0x11a278(_0x2fc12d)),Ce(0x2,_0x11a278(H)),Ce(0x3,_0x11a278(_0x3e584d))],$e);function nn(_0x57f747){const _0x2c96ea=_0x17995c,_0xc25cc2=new Map();return _0x57f747['forEach'](_0x363672=>{const _0x5b01a3=_0x220d;if(_0xc25cc2[_0x5b01a3(0x2a9)](_0x363672[_0x5b01a3(0x241)])){const _0x3e2058=_0xc25cc2['get'](_0x363672[_0x5b01a3(0x241)]);_0x3e2058[_0x5b01a3(0x13a)]+=',\x20'+_0x363672[_0x5b01a3(0x13a)];}else _0xc25cc2[_0x5b01a3(0xc9)](_0x363672['selection'],_0x363672);}),Array[_0x2c96ea(0x294)](_0xc25cc2[_0x2c96ea(0x161)]());}var rn=Object[_0x17995c(0x153)],on=(_0x5d1b1f,_0x2285b2,_0x4b11b6,_0x5a7cde)=>{const _0x517033=_0x17995c;for(var _0x211869=_0x5a7cde>0x1?void 0x0:_0x5a7cde?rn(_0x2285b2,_0x4b11b6):_0x2285b2,_0x4697e7=_0x5d1b1f[_0x517033(0x28b)]-0x1,_0xf598d;_0x4697e7>=0x0;_0x4697e7--)(_0xf598d=_0x5d1b1f[_0x4697e7])&&(_0x211869=_0xf598d(_0x211869)||_0x211869);return _0x211869;},F=(_0x1f38f6,_0x55f547)=>(_0x32c7f4,_0x1fe8fe)=>_0x55f547(_0x32c7f4,_0x1fe8fe,_0x1f38f6);let ce=class extends _0x29710c{constructor(_0x33d786,_0x22b10e,_0x2ac67d,_0xab289d,_0x45e198,_0x3c3078){const _0x229823=_0x17995c;super(),this[_0x229823(0x129)]=_0x33d786,this[_0x229823(0x259)]=_0x22b10e,this[_0x229823(0x185)]=_0x2ac67d,this[_0x229823(0x93)]=_0xab289d,this[_0x229823(0x2bb)]=_0x45e198,this[_0x229823(0x13c)]=_0x3c3078,this[_0x229823(0x2c0)](),this['_initEvent']();}[_0x17995c(0x2c0)](){const _0x4295fd=_0x17995c;this[_0x4295fd(0x1c2)](this[_0x4295fd(0x129)]['registerBeforeClose'](()=>{const _0x336e60=_0x4295fd;if(this[_0x336e60(0x259)][_0x336e60(0xa7)][_0x336e60(0x16f)])return this[_0x336e60(0x13c)]['t'](_0x336e60(0x273));}));}[_0x17995c(0x111)](){const _0x20ead3=_0x17995c;this[_0x20ead3(0x1c2)](this[_0x20ead3(0x185)]['event$']['subscribe'](_0x17c35f=>{const _0x1c1a2f=_0x20ead3;_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0xf1)]&&this[_0x1c1a2f(0x93)][_0x1c1a2f(0xfe)]({'type':_0x2001e5[_0x1c1a2f(0x189)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x228))}),_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0x12a)]&&this[_0x1c1a2f(0x93)][_0x1c1a2f(0xfe)]({'type':_0x2001e5[_0x1c1a2f(0x189)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x21a))}),_0x17c35f['id']===_0x38ed89['PERMISSION_DENIED']&&this[_0x1c1a2f(0x2bb)][_0x1c1a2f(0xfe)]({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x1c1a2f(0x186)),'type':_0x1c1a2f(0x205),'duration':0x0}),_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0x14f)]&&this[_0x1c1a2f(0x93)][_0x1c1a2f(0xfe)]({'type':_0x2001e5[_0x1c1a2f(0x157)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x21a))+'('+_0x17c35f[_0x1c1a2f(0x279)]+')'}),_0x17c35f['id']===_0x38ed89['JOIN_ROOM_FAILED']&&this['_messageService'][_0x1c1a2f(0xfe)]({'type':_0x2001e5['Warning'],'content':this[_0x1c1a2f(0x13c)]['t'](_0x17c35f[_0x1c1a2f(0x279)]||'')}),_0x17c35f['id']===_0x38ed89[_0x1c1a2f(0x24f)]&&this[_0x1c1a2f(0x93)]['show']({'type':_0x2001e5[_0x1c1a2f(0x189)],'content':this[_0x1c1a2f(0x13c)]['t']('session.will-retry')}),_0x17c35f['id']===_0x38ed89['SOCKET_FAILED']&&this[_0x1c1a2f(0x93)]['show']({'type':_0x2001e5['Error'],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x1bb))}),_0x17c35f['id']===_0x38ed89['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':_0x2001e5[_0x1c1a2f(0x157)],'content':this[_0x1c1a2f(0x13c)]['t'](_0x1c1a2f(0x1cf))});}));}};ce=on([F(0x0,_0x225f15),F(0x1,_0x3a200a),F(0x2,_0x11a278(_0x372bc6)),F(0x3,_0xc5e3ee),F(0x4,_0x503e3e),F(0x5,_0x11a278(_0x5bea2a))],ce);const an=_0x17995c(0x26e),rt={};var cn=Object[_0x17995c(0x153)],_n=(_0x5418de,_0x524800,_0x156b49,_0x11aa1c)=>{const _0x23b60a=_0x17995c;for(var _0x1b3265=_0x11aa1c>0x1?void 0x0:_0x11aa1c?cn(_0x524800,_0x156b49):_0x524800,_0x3003ce=_0x5418de[_0x23b60a(0x28b)]-0x1,_0x18951f;_0x3003ce>=0x0;_0x3003ce--)(_0x18951f=_0x5418de[_0x3003ce])&&(_0x1b3265=_0x18951f(_0x1b3265)||_0x1b3265);return _0x1b3265;},ot=(_0x5b1840,_0x1d4c34)=>(_0x2e61bf,_0x2738ed)=>_0x1d4c34(_0x2e61bf,_0x2738ed,_0x5b1840);let _e=class{constructor(_0x2fe5ed,_0x4674e){const _0x4c6ff5=_0x17995c;this[_0x4c6ff5(0x20a)]=_0x2fe5ed,this['_renderManagerService']=_0x4674e;}['transformIMECache'](_0x36cdcf){this['_transformUndoRedoStack'](_0x36cdcf),this['_transformPreviousActiveRange'](_0x36cdcf);}['transformRemoteChangeset'](_0x3e8568){const _0x432cbb=_0x17995c,{unitID:_0x41aa09}=_0x3e8568,_0xc5261b=this[_0x432cbb(0x134)][_0x432cbb(0x107)](_0x41aa09)[_0x432cbb(0x261)](_0x2a0c79),{redoCache:_0x1e00b1}=_0xc5261b[_0x432cbb(0xca)]();if(_0x1e00b1[_0x432cbb(0x28b)]===0x0)return _0x3e8568;let _0x5627e7=_0x8e16b7[_0x432cbb(0x199)](_0x3e8568['mutations'][0x0]);for(let _0x2c5159=0x0;_0x2c5159<_0x1e00b1[_0x432cbb(0x28b)];_0x2c5159++){const _0x27648a={'id':_0x432cbb(0x297),'params':{..._0x1e00b1[_0x2c5159]}},_0x36bf42=this[_0x432cbb(0x20a)][_0x432cbb(0x278)](_0x5627e7,_0x27648a,!0x1);if(_0x55d582(_0x36bf42))throw _0x36bf42[_0x432cbb(0x205)];_0x5627e7=_0x36bf42[_0x432cbb(0x1f2)];}return{..._0x8e16b7[_0x432cbb(0x199)](_0x3e8568),'mutations':[_0x5627e7]};}[_0x17995c(0x123)](_0x167466){const _0x390d04=_0x17995c,{unitID:_0x332d90}=_0x167466,_0x56ff4f=this['_renderManagerService'][_0x390d04(0x107)](_0x332d90)[_0x390d04(0x261)](_0x2a0c79),{undoCache:_0x57b8fa,redoCache:_0x5bb24f}=_0x56ff4f[_0x390d04(0xca)]();if(_0x57b8fa[_0x390d04(0x28b)]===0x0||_0x5bb24f[_0x390d04(0x28b)]===0x0)return;const _0x493a65=[],_0x4ad395=[];let _0xc54562=_0x8e16b7[_0x390d04(0x199)](_0x167466[_0x390d04(0xe4)][0x0]),_0x444714=_0x8e16b7[_0x390d04(0x199)](_0x167466[_0x390d04(0xe4)][0x0]);for(let _0x3872a4=_0x57b8fa['length']-0x1;_0x3872a4>=0x0;_0x3872a4--){const _0x1c2f8e={'id':'doc.mutation.rich-text-editing','params':{..._0x57b8fa[_0x3872a4]}},_0x37e872={'id':'doc.mutation.rich-text-editing','params':{..._0x5bb24f[_0x3872a4]}},_0x356fc6=this['_transformService'][_0x390d04(0x278)](_0xc54562,_0x1c2f8e,!0x1),_0x11fe2d=this[_0x390d04(0x20a)][_0x390d04(0x278)](_0x444714,_0x37e872,!0x1);if(_0x55d582(_0x356fc6))throw _0x356fc6['error'];if(_0x55d582(_0x11fe2d))throw _0x11fe2d['error'];_0x493a65[_0x390d04(0x23e)](_0x356fc6[_0x390d04(0x264)][_0x390d04(0x166)]),_0x4ad395[_0x390d04(0x23e)](_0x11fe2d[_0x390d04(0x264)][_0x390d04(0x166)]),_0xc54562=_0x356fc6[_0x390d04(0x1f2)],_0x444714=_0x11fe2d['m1Prime'];}_0x56ff4f[_0x390d04(0x170)]({'undoCache':_0x493a65,'redoCache':_0x4ad395});}['_transformPreviousActiveRange'](_0x27af39){const _0x1e77c5=_0x17995c,{unitID:_0x160fee}=_0x27af39,_0x4df009=this[_0x1e77c5(0x134)][_0x1e77c5(0x107)](_0x160fee)['with'](_0x2a0c79),_0x245607=_0x4df009[_0x1e77c5(0xa2)]();if(_0x245607==null)return;const _0x5710eb=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x27af39['unitID'],'actions':null,'textRanges':[_0x245607]}}],_0x43c25e=this['_transformService'][_0x1e77c5(0x203)](_0x27af39,_0x5710eb);if(!_0x4b8ff0(_0x43c25e))throw _0x43c25e[_0x1e77c5(0x205)];const _0x425d75=_0x43c25e[_0x1e77c5(0x264)][0x0][_0x1e77c5(0x166)][_0x1e77c5(0x1b6)];Array['isArray'](_0x425d75)&&_0x425d75['length']&&_0x4df009[_0x1e77c5(0x1f8)](_0x425d75[0x0]);}};_e=_n([ot(0x0,_0x1a6bde),ot(0x1,_0x4b49a7)],_e);var ln=Object[_0x17995c(0x153)],hn=(_0x43effd,_0x1847d1,_0x1b809c,_0x18ece9)=>{for(var _0x4934eb=_0x18ece9>0x1?void 0x0:_0x18ece9?ln(_0x1847d1,_0x1b809c):_0x1847d1,_0x40a609=_0x43effd['length']-0x1,_0x5cd4bf;_0x40a609>=0x0;_0x40a609--)(_0x5cd4bf=_0x43effd[_0x40a609])&&(_0x4934eb=_0x5cd4bf(_0x4934eb)||_0x4934eb);return _0x4934eb;},Re=(_0x5d2874,_0x1405cf)=>(_0x36db53,_0x13aa94)=>_0x1405cf(_0x36db53,_0x13aa94,_0x5d2874);let le=class{constructor(_0x3ce797,_0x471c66,_0x352fff){const _0x1c0e5a=_0x17995c;this[_0x1c0e5a(0x287)]=_0x3ce797,this[_0x1c0e5a(0x20a)]=_0x471c66,this['_docStateChangeManagerService']=_0x352fff;}[_0x17995c(0x21f)](_0x101575){const _0x555f1a=_0x17995c;this[_0x555f1a(0xf3)](_0x101575);}[_0x17995c(0xb1)](_0x2d5bc2){const _0xa403c6=_0x17995c,{unitID:_0x485481}=_0x2d5bc2,{collaboration:_0x41e519}=this[_0xa403c6(0x106)][_0xa403c6(0x191)](_0x485481);if(_0x41e519[_0xa403c6(0x28b)]===0x0)return _0x2d5bc2;let _0x379a17=_0x8e16b7[_0xa403c6(0x199)](_0x2d5bc2[_0xa403c6(0xe4)][0x0]);for(let _0x5aab0c=0x0;_0x5aab0c<_0x41e519[_0xa403c6(0x28b)];_0x5aab0c++){const _0xb0feda={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41e519[_0x5aab0c][_0xa403c6(0x27b)],..._0x41e519[_0x5aab0c][_0xa403c6(0xfb)]}},_0x55e11a=this[_0xa403c6(0x20a)]['transformMutation'](_0x379a17,_0xb0feda,!0x1);if(_0x55d582(_0x55e11a))throw _0x55e11a[_0xa403c6(0x205)];_0x379a17=_0x55e11a['m1Prime'];}return{..._0x8e16b7['deepClone'](_0x2d5bc2),'mutations':[_0x379a17]};}[_0x17995c(0xf3)](_0x2cb528){const _0x288cbe=_0x17995c,{unitID:_0x3f8d05}=_0x2cb528,{history:_0x286b06,collaboration:_0x17a354}=this[_0x288cbe(0x106)][_0x288cbe(0x191)](_0x3f8d05);if(_0x286b06[_0x288cbe(0x28b)]===0x0&&_0x17a354[_0x288cbe(0x28b)]===0x0)return;const _0x572681=[],_0x2da08f=[];let _0x22fb76=_0x8e16b7[_0x288cbe(0x199)](_0x2cb528[_0x288cbe(0xe4)][0x0]),_0x3eb19f=_0x8e16b7[_0x288cbe(0x199)](_0x2cb528[_0x288cbe(0xe4)][0x0]);for(let _0x16a631=_0x286b06[_0x288cbe(0x28b)]-0x1;_0x16a631>=0x0;_0x16a631--){const _0x576e72={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x286b06[_0x16a631][_0x288cbe(0x27b)],..._0x286b06[_0x16a631][_0x288cbe(0x220)]}},_0x215003={'id':_0x288cbe(0x297),'params':{'unitId':_0x286b06[_0x16a631][_0x288cbe(0x27b)],..._0x286b06[_0x16a631][_0x288cbe(0xfb)]}},_0x3e46f4=this[_0x288cbe(0x20a)][_0x288cbe(0x278)](_0x22fb76,_0x576e72,!0x1),_0x4ebf14=this[_0x288cbe(0x20a)]['transformMutation'](_0x3eb19f,_0x215003,!0x1);if(_0x55d582(_0x3e46f4))throw _0x3e46f4[_0x288cbe(0x205)];if(_0x55d582(_0x4ebf14))throw _0x4ebf14[_0x288cbe(0x205)];_0x572681['unshift']({..._0x286b06[_0x16a631],'undoState':_0x3e46f4[_0x288cbe(0x264)][_0x288cbe(0x166)],'redoState':_0x4ebf14[_0x288cbe(0x264)][_0x288cbe(0x166)]}),_0x22fb76=_0x3e46f4[_0x288cbe(0x1f2)],_0x3eb19f=_0x4ebf14[_0x288cbe(0x1f2)];}_0x22fb76=_0x8e16b7[_0x288cbe(0x199)](_0x2cb528['mutations'][0x0]),_0x3eb19f=_0x8e16b7['deepClone'](_0x2cb528[_0x288cbe(0xe4)][0x0]);for(let _0x40385e=_0x17a354[_0x288cbe(0x28b)]-0x1;_0x40385e>=0x0;_0x40385e--){const _0x7e5013={'id':_0x288cbe(0x297),'params':{'unitId':_0x17a354[_0x40385e]['unitId'],..._0x17a354[_0x40385e]['undoState']}},_0x246a40={'id':_0x288cbe(0x297),'params':{'unitId':_0x17a354[_0x40385e][_0x288cbe(0x27b)],..._0x17a354[_0x40385e][_0x288cbe(0xfb)]}},_0x2db2e1=this[_0x288cbe(0x20a)][_0x288cbe(0x278)](_0x22fb76,_0x7e5013,!0x1),_0xd5bfcb=this[_0x288cbe(0x20a)][_0x288cbe(0x278)](_0x3eb19f,_0x246a40,!0x1);if(_0x55d582(_0x2db2e1))throw _0x2db2e1[_0x288cbe(0x205)];if(_0x55d582(_0xd5bfcb))throw _0xd5bfcb[_0x288cbe(0x205)];_0x2da08f[_0x288cbe(0x23e)]({..._0x17a354[_0x40385e],'undoState':_0x2db2e1[_0x288cbe(0x264)]['params'],'redoState':_0xd5bfcb[_0x288cbe(0x264)]['params']}),_0x22fb76=_0x2db2e1[_0x288cbe(0x1f2)],_0x3eb19f=_0xd5bfcb[_0x288cbe(0x1f2)];}this[_0x288cbe(0x106)][_0x288cbe(0x121)](_0x3f8d05,{'history':_0x572681,'collaboration':_0x2da08f});}};le=hn([Re(0x0,_0x11a278(_0x426398)),Re(0x1,_0x1a6bde),Re(0x2,_0x11a278(_0x2d3bec))],le);function _0x2c3e(){const _0x1aae8b=['INVITE_CODE_HAS_BEEN_UES','onTransformChange$','YUUMI_ASYNCIO_CANCELLED','_toggleOnline','exhaustSavingTask','getCurrentSelections','unshift','_docTransformIMECacheService','_showGuardMessage','selection','CHANGESET_REVISION_CONFILICT','_heartbeatTimer','collabStatus.notCollab','getCollabCursors$','CONNECTOR_DATA_TOO_LARGE','_document','collabCursorState$','onPointerLeave$','_onCursorUpdate','trim','_docTransformSelectionsService','_collaborationController','debug','SOCKET_FAILED_RETRY','_entities','unitID','contains','_docSyncEditingCollabCursorService','wsSessionTicketUrl','_hideTimer','createInstance','_scheduleHeartbeat','_colorIndex','_localCacheService','transformIMECache','_getSheetObject','_collabCursorController','add','complete','getCurrent','collabStatus.synced','with','isActive','OTHER_CLIENTS_EDITING','m2Prime','get','ERROR_AGAIN','_syncEditingCollabCursorService','subunit','pipe','MUTATION','green.600','storage','updateOfflineData','collaboration-client-ui.config','event$','_saveTaskMap','unsubscribe','push','collaboration-client.offline-data-not-saved','onPointerMove$','APPLY_PERMISSION_DENIED','YUUMI_RATE_OVER_LIMIT','removeParam','transformMutation','data','_initStatusComponent','unitId','_backgroundColor','releaseFormulaLimitUrl','_updateSubUnitFromURLParams','defs','APPLY_REVISION_CONFILICT','[CollaborationDataLoaderController]','search','_assignedColors','...','isArray','closePath','_injector','functionsExecutedState','_checkCalculationAvailable','getColorFromTheme','length','eventID','OFFLINE','PAYMENT_CHANNEL_NOT_SUPPORT','addEventListener','_univerInstanceService','font','UNAUTHENTICATED','79631xAWklZ','from','InsertRowCommandId','USER_NOT_FOUND','doc.mutation.rich-text-editing','LOGIN_FAILED','addObjects','sessionStatus$','_applyCommand','getMemberID','code','TEXT','REDEMPTION_CODE_HAS_BEEN_CREATED','_getSaveTimeout','toRgbString','_setFormulaLimitStatus','lineTo','getActiveSheet','now','url(#off-line-icon_clip0_910_343)','_disabled','_lastResponseTimestamp','has','on-line-icon','APPLY_DUPLICATED','onPointerEnter$','location','_id','getMember','onMouseMove','parse','endRow','getRangePointData','dispose','disposeUnit','key','FromArray','_getFormulaLimitStatus','_name','getAncestorScale','_notificationService','_render','subscribeEvent','height','_handleJoinEvent','_setupBeforeClosingHandler','getSheetBySheetId','restore','6469331BTXpXu','ENTITLE_NEED_BILLING_ADDRESS','USER_IS_ANONYMOUS','AUTHORIZE_CODE_ILLEGAL','96956vtGhMs','_cursorShapes','measureText','clipPath','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','UNIVER_DOC','_messageService','transformSelections','enableLocalCache','_scheduleSaving','_urlService','setShapeProps','_refreshCollabCursors','SNAPSHOT_HAS_BEEN_REMOVED','10bymMwo','LICENSE_IMPORT_SIZE_EXCEEDED','_docSkeletonManagerService','executionId','UNRECOGNIZED','6635kTlWCz','colorChannel1','getActiveRange','PERMISSION_DENIED','blue.400','assign','dirtyRanges','saveTaskMap','loadOfflineData','getSheetId','formula.calculation.waiting','addClipboardHook','_handleLeaveEvent','none','ticket','HEADER_MENU','currentColor','transformRemoteChangeset','_revisionService','startRow','attrs','red.300','RemoveColCommandId','registerComponent','save','_getAnchorBounding','newValue','_getMergeRange','USER_NOT_INVITED_CODE','_cachedData','forEach','_cursorInfo$','_localStorageService','REDEMPTION_CODE_FULLY_REDEEMED','startsWith','_checkAndWaitForCalculationPermission','WECHAT_HAS_BEEN_BOUND','_anchorDot','activeSheet$','DeleteRangeMoveLeftCommandId','asObservable','set','getUndoRedoMutationParamsCache','hide','result','LICENSE_MAX_UNITS_EXCEEDED','_onRefRangeChange','uni.network.url-service','parseInt','use','find','onLocalMutation','_initEntityListener','_scheduleClearOtherTimer','USERS_LEAVE','LOGIN_TOKEN_PROCESSING_FAILED','symbol','split','dispose$','getTypeOfUnitDisposed$','registerRenderModule','limitInfo','svg','Unknown\x20user','pluginName','/universer-api/license/formula/limit/status','whenReady','requireSession','mutations','syncEditingCollabCursor','min','YUUMI_ALL_TABLES_IS_INVALID','getUnit','searchParams','REDEMPTION_USER_NOT_ELIGIBLE','delete','collabStatus.syncing','REDEMPTION_CODE_INACTIVE','post','translate(.97)','NO_OTHER_CLIENTS_EDITING','OTHER_CLIENT_EDITING','next','_transformHistoryAndStateStack','beforeCommandExecuted','_range','_context','_status$','setTimeout','CURRENT_STATUS_CANNOT_OPERATE','collabStatus.fetchMiss','redoState','setItem','loadUnit','show','UPDATE_CURSOR','override','row','replaceState','_initCommandExecutedListener','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','range','_docStateChangeManagerService','getRenderById','_registerRenderDependencies','text','urlChange$','entityInit$','YUUMI_SUBSCRIPTION_NOT_FOUND','getUnitId','clearTimeout','_entityInit$','_taskIds','_initEvent','InsertRangeMoveRightCommandId','_ensureSubject','_send','_doCreateSocket','Loading','_textBubble','idSuffix','_docSkeleton','_refRangeService','_handleEvent','getUniverSheetInstance','getViewport','getRelativeToViewportCoord','_init','setInterval','setStateCache','fillStyle','_transformUndoRedoStack','0\x200\x2017\x2016','_collabCursorState$','EMAIL_VERIFY_CODE_MISMATCH','DeleteRangeMoveUpCommandId','top','_beforeCloseService','CLOSE_ROOM','max','3696QOCylF','UNIVER_SHEET','displayName','ONLINE','_selfUnitIDs','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','INVALID_INVITE_CODE','_shapes','_renderManagerService','currentSkeleton$','_cursors','_color','defineProperty','1em','name','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_localeService','beginPath','assignAColorForMemberID','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','black','runId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_themeService','path','INTERNAL_ERROR','getValue','saveImage','isEditing','MOBILE_HAS_BEEN_BOUND','url(#on-line-icon_clip0_910_349)','_uiPartsService','column','PY_RUNTIME_SCRIPT_ERROR','map','CONFLICT','roomMembers','startFormulaLimitUrl','REDEMPTION_INVALID_CODE','getOwnPropertyDescriptor','YUUMI_NO_CUBOID_FOR_QUESTION','getCellMatrix','_getScale','Error','subscribe','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','transformByState','yellow.400','_onCursorDelete','_pollingInterval','_scene','68250tHSDNv','random','values','onCommandExecuted','_config','cursorInfo','LICENSE_DISTRO_REJECTED','params','status$','bottom','hovered','history','/universer-api/license/formula/limit/start','_initCommandInterceptor','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','includes','size','setUndoRedoMutationParamsCache','3162SJYRRh','_docClipboardService','_updateURLWithCurrentState','_sheetSkeletonManagerService','_updateCollabCursors','_unitOnClients','getFocusedUnit','drawWith','3668763RZBTYD','stageInfo','endColumn','132HVIQif','shift','_handleHover','substring','imageSourceType','PENDING','href','replace','VIEW_MAIN','_collaborationUIEventService','permission.content','MOBILE_VERIFY_CODE_MISMATCH','_imageIoService','Warning','_getSessionTicket','xlink:href','div','InsertRangeMoveDownCommandId','_clearOtherTimers','_logService','YUUMI_CONNECTOR_URL_NOT_FOUND','getStateCache','NOT_COLLAB','evenodd','0\x200\x2016\x2016','_collabSessionService','univer-mr-2\x20univer-flex\x20univer-text-xl','_toggleOffline','registerRefRange','deepClone','getConfig','url(#$1','8fLsreI','memberID','_draw','fillText','getDocRanges','_clearPolling','YUUMI_UNABLE_LOAD_URL','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','popstate','_updateLocalCursor','addObject','OffLineIcon','addHandlerCallback','Failed','RECT','INVALID_ARGUMENT','ENTITLE_REPORT_LIMIT_EXCEED','roomMembers$','getSkeleton','getCurrentUnitForType','#FFF','color','entries','_startSheetCollabCursor','COMPLETION_FINISHED','cursorInfo$','textRanges','all','ENTITLE_CAN_NOT_BUY_LOWER_OTP','OnLineIcon','INVITE_CODE_REQUIRED','session.connection-failed','_unitStatus','currentTheme$','subUnitId','_maxFormulaLimit','resize','on-line-icon_clip0_910_349','disposeWithMe','SYNCED','executeCommand','getVpScrollXYInfoByPosToVp','_hovered','startColumn','_registerDependencies','ALREADY_EXISTS','stage','_hasFormulaInDirtyRanges','sessionTicket','fill','round','session.collaboration-timeout','InsertColCommandId','_dataLoaderService','_hover','then','26DaoHDn','send','_colorAssignService','mask','3370509EpAISB','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_EXPORT_SIZE_EXCEEDED','ranges','makeDirty','stringify','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','onStarting','_lastPointer','ENTITLE_CHAT_LIMIT_EXCEED','rgba(255,\x20255,\x20255,\x200.01)','_initStatusListener','NOT_FOUND','_setupSubUnitSync','SNAPSHOT_INVALID_SNAPSHOT','REDEMPTION_USER_REDEEM_TIMES_EXCEED','labelPosition','_drawAnchor','getParam','ACTIVE_UNIT_EVENT_CHANNEL','_releaseCalculationLimit','_commandService','_cursor','getformulaLimitStatusUrl','_saveCache','APPLY_REJECT','m1Prime','REDEMPTION_CODE_NOT_STARTED','_removeCollabCursors','FETCH_MISS','Success','origin','setActiveRange','init','arc','_httpService','_drawTextRange','backgroundColor','_currentUsage','UNDEFINED','body','toString','application/json','transformMutationsWithChangeset','_roomMembers$','error','getTypeOfUnitAdded$','findNodePositionByCharIndex','_online','/universer-api/license/formula/limit/done','_transformService','string','_initResize','unit','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_session','off-line-icon','source','formula.calculation.started','width','sheetId','tag','replaceDocRanges','EMAIL_HAS_BEEN_BOUND','_initDependencies','http://www.w3.org/2000/svg','collaboration.closeRoom','type','white','_drawRectRange','_anchor','transformStateCache','undoState','UniverIcon','_docTransformStateCacheService','_eventUnsubscribe','_memberService','INVITE_CODE_ALREADY_BOUND','invokeId','setConfig','collaboration.single-unit.warning','reconnect','sheetID','_configService','_instanceService','collabStatus.offline','ENSURE_SNAPSHOT_EXECUTION','_labelPosition','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_startDocCollabCursor','saveOfflineData','_createSocketURL','_removeClearOtherTimer','YUUMI_AI_RUN_FAILED','getUnitStatus$','_startCalculationLimit'];_0x2c3e=function(){return _0x1aae8b;};return _0x2c3e();}var un=Object[_0x17995c(0x153)],dn=(_0x5ce16a,_0x160fbf,_0x88e93,_0x690448)=>{const _0x330b45=_0x17995c;for(var _0x4c191b=_0x690448>0x1?void 0x0:_0x690448?un(_0x160fbf,_0x88e93):_0x160fbf,_0x311274=_0x5ce16a[_0x330b45(0x28b)]-0x1,_0x50ebde;_0x311274>=0x0;_0x311274--)(_0x50ebde=_0x5ce16a[_0x311274])&&(_0x4c191b=_0x50ebde(_0x4c191b)||_0x4c191b);return _0x4c191b;},at=(_0x553236,_0x472adf)=>(_0x4c6d2c,_0x42141c)=>_0x472adf(_0x4c6d2c,_0x42141c,_0x553236);let he=class{constructor(_0x52cb04,_0x4aec2b){const _0x26bea5=_0x17995c;this[_0x26bea5(0x287)]=_0x52cb04,this[_0x26bea5(0x20a)]=_0x4aec2b;}[_0x17995c(0x94)](_0x269bfc){const _0x54de64=_0x17995c;var _0x5732d2;const _0x415144=this[_0x54de64(0x287)][_0x54de64(0x265)](_0x470162),_0xaf76ae=(_0x5732d2=_0x415144['getDocRanges']())!=null?_0x5732d2:[];if(_0xaf76ae[_0x54de64(0x28b)]===0x0)return;const _0x3ffa6c=_0x269bfc[_0x54de64(0x251)],_0x513840=[{'id':_0x54de64(0x297),'params':{'unitId':_0x3ffa6c,'actions':null,'textRanges':_0xaf76ae}}],_0x289b01=this[_0x54de64(0x20a)][_0x54de64(0x203)](_0x269bfc,_0x513840);if(!_0x4b8ff0(_0x289b01))throw _0x289b01['error'];const _0x41f8a0=_0x289b01[_0x54de64(0x264)][0x0]['params'][_0x54de64(0x1b6)];Array[_0x54de64(0x285)](_0x41f8a0)&&_0x41f8a0['length']&&_0x415144[_0x54de64(0x216)](_0x41f8a0,{'unitId':_0x3ffa6c,'subUnitId':_0x3ffa6c},!0x1);}};he=dn([at(0x0,_0x11a278(_0x426398)),at(0x1,_0x1a6bde)],he);function _0x220d(_0x5b21d1,_0x2b004d){const _0x2c3eff=_0x2c3e();return _0x220d=function(_0x220da6,_0x49799b){_0x220da6=_0x220da6-0x88;let _0x3d4a04=_0x2c3eff[_0x220da6];return _0x3d4a04;},_0x220d(_0x5b21d1,_0x2b004d);}var Sn=Object[_0x17995c(0x153)],In=(_0x33a433,_0x529052,_0x213b79,_0x3c5586)=>{const _0x24058a=_0x17995c;for(var _0x8c2ab3=_0x3c5586>0x1?void 0x0:_0x3c5586?Sn(_0x529052,_0x213b79):_0x529052,_0x2a0bdf=_0x33a433[_0x24058a(0x28b)]-0x1,_0x3581c2;_0x2a0bdf>=0x0;_0x2a0bdf--)(_0x3581c2=_0x33a433[_0x2a0bdf])&&(_0x8c2ab3=_0x3581c2(_0x8c2ab3)||_0x8c2ab3);return _0x8c2ab3;},b=(_0x31aaea,_0x468d06)=>(_0x562fea,_0x385421)=>_0x468d06(_0x562fea,_0x385421,_0x31aaea);let ue=class extends _0x29710c{constructor(_0x43c01a,_0x5e7724,_0x14624d,_0x85264d,_0x44f5ed,_0x50a901,_0x8383a9,_0x587a7c){const _0x2636e5=_0x17995c;super(),l(this,_0x2636e5(0xf7),new _0x5ab626(_0x5bc4e1[_0x2636e5(0x192)])),(this[_0x2636e5(0x106)]=_0x43c01a,this[_0x2636e5(0x24d)]=_0x5e7724,this[_0x2636e5(0x23f)]=_0x14624d,this[_0x2636e5(0x222)]=_0x85264d,this['_docTransformSelectionsService']=_0x44f5ed,this[_0x2636e5(0x253)]=_0x50a901,this['_messageService']=_0x8383a9,this['_localeService']=_0x587a7c,this['_initEntityListener']());}[_0x17995c(0xd4)](){const _0x442661=_0x17995c;this['disposeWithMe'](this['_collaborationController'][_0x442661(0x10b)][_0x442661(0x158)](_0x406340=>{const _0x3c408e=_0x442661,_0x499553=this[_0x3c408e(0x106)]['docStateChange$']['subscribe'](_0x4b579b=>{const _0x322d45=_0x3c408e;if(_0x4b579b==null)return;const {unitId:_0x3faf5e,redoState:_0x343a4e,commandId:_0x587b56}=_0x4b579b;if(_0x3faf5e!==_0x406340[_0x322d45(0x251)])return;const _0x128d36={'id':_0x587b56,'type':_0x1bc9ba[_0x322d45(0x26a)],'params':{'unitId':_0x3faf5e,'actions':_0x343a4e['actions'],'textRanges':null}};_0x406340[_0x322d45(0xd3)](_0x128d36);});if(_0x406340[_0x3c408e(0x1c2)](_0x499553),_0x406340 instanceof _0x4ff6ee){const _0x32f8c7={'onTransformIME':_0x289f15=>this[_0x3c408e(0x23f)][_0x3c408e(0x25a)](_0x289f15),'onTransformState':_0x352e8e=>this['_docTransformStateCacheService'][_0x3c408e(0x21f)](_0x352e8e),'onTransformSelections':_0x26ca7f=>this[_0x3c408e(0x24c)][_0x3c408e(0x94)](_0x26ca7f),'onSyncEditingCollabCursor':_0x1078c2=>this[_0x3c408e(0x253)]['syncEditingCollabCursor'](_0x1078c2),'onTransformRemoteChangesetByIMECache':_0xaef661=>this[_0x3c408e(0x23f)][_0x3c408e(0xb1)](_0xaef661),'onTransformRemoteChangesetByStateCache':_0x2adf1f=>this['_docTransformStateCacheService'][_0x3c408e(0xb1)](_0x2adf1f)};_0x406340[_0x3c408e(0x1a8)](_0x32f8c7);}}));}};ue=In([b(0x0,_0x11a278(_0x2d3bec)),b(0x1,_0x11a278(_0x4a8b28)),b(0x2,_0x11a278(_e)),b(0x3,_0x11a278(le)),b(0x4,_0x11a278(he)),b(0x5,_0x11a278(Xe)),b(0x6,_0xc5e3ee),b(0x7,_0x11a278(_0x5bea2a))],ue);var Z=(_0x4923c8=>(_0x4923c8[_0x4923c8[_0x17995c(0x1ff)]=0x0]=_0x17995c(0x1ff),_0x4923c8[_0x4923c8['OK']=0x1]='OK',_0x4923c8[_0x4923c8[_0x17995c(0x145)]=0x2]=_0x17995c(0x145),_0x4923c8[_0x4923c8[_0x17995c(0xa3)]=0x3]=_0x17995c(0xa3),_0x4923c8[_0x4923c8['NOT_FOUND']=0x4]=_0x17995c(0x1e4),_0x4923c8[_0x4923c8[_0x17995c(0x292)]=0x5]=_0x17995c(0x292),_0x4923c8[_0x4923c8[_0x17995c(0x1c9)]=0x6]=_0x17995c(0x1c9),_0x4923c8[_0x4923c8[_0x17995c(0x1ab)]=0x7]=_0x17995c(0x1ab),_0x4923c8[_0x4923c8['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x4923c8[_0x4923c8[_0x17995c(0x1b4)]=0x9]=_0x17995c(0x1b4),_0x4923c8[_0x4923c8['LOGIN_FAILED']=0xa]=_0x17995c(0x298),_0x4923c8[_0x4923c8['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x17995c(0x187),_0x4923c8[_0x4923c8[_0x17995c(0x13f)]=0xc]=_0x17995c(0x13f),_0x4923c8[_0x4923c8[_0x17995c(0x126)]=0xd]=_0x17995c(0x126),_0x4923c8[_0x4923c8[_0x17995c(0x91)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4923c8[_0x4923c8[_0x17995c(0x8c)]=0xf]=_0x17995c(0x8c),_0x4923c8[_0x4923c8[_0x17995c(0xd7)]=0x10]=_0x17995c(0xd7),_0x4923c8[_0x4923c8[_0x17995c(0xf9)]=0x64]=_0x17995c(0xf9),_0x4923c8[_0x4923c8[_0x17995c(0x266)]=0x65]='ERROR_AGAIN',_0x4923c8[_0x4923c8[_0x17995c(0x296)]=0xc9]='USER_NOT_FOUND',_0x4923c8[_0x4923c8[_0x17995c(0x8b)]=0xca]=_0x17995c(0x8b),_0x4923c8[_0x4923c8[_0x17995c(0x242)]=0x1389]=_0x17995c(0x242),_0x4923c8[_0x4923c8[_0x17995c(0x1e6)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4923c8[_0x4923c8['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x17995c(0x9a),_0x4923c8[_0x4923c8[_0x17995c(0x22e)]=0x1773]=_0x17995c(0x22e),_0x4923c8[_0x4923c8[_0x17995c(0x1f1)]=0x1b59]=_0x17995c(0x1f1),_0x4923c8[_0x4923c8[_0x17995c(0x1d9)]=0x1b5a]=_0x17995c(0x1d9),_0x4923c8[_0x4923c8[_0x17995c(0x280)]=0x1b5b]=_0x17995c(0x280),_0x4923c8[_0x4923c8[_0x17995c(0x275)]=0x1b5c]=_0x17995c(0x275),_0x4923c8[_0x4923c8['APPLY_DUPLICATED']=0x1b5d]=_0x17995c(0x2ab),_0x4923c8[_0x4923c8[_0x17995c(0x246)]=0x1f41]=_0x17995c(0x246),_0x4923c8[_0x4923c8[_0x17995c(0xcd)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4923c8[_0x4923c8[_0x17995c(0x230)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4923c8[_0x4923c8[_0x17995c(0x9c)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4923c8[_0x4923c8['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x17995c(0x1da),_0x4923c8[_0x4923c8['LICENSE_DISTRO_REJECTED']=0x232d]=_0x17995c(0x165),_0x4923c8[_0x4923c8[_0x17995c(0x1a2)]=0x2711]=_0x17995c(0x1a2),_0x4923c8[_0x4923c8['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4923c8[_0x4923c8['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x17995c(0x276),_0x4923c8[_0x4923c8[_0x17995c(0x10c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4923c8[_0x4923c8[_0x17995c(0x154)]=0x271a]=_0x17995c(0x154),_0x4923c8[_0x4923c8[_0x17995c(0x23a)]=0x271b]=_0x17995c(0x23a),_0x4923c8[_0x4923c8['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x17995c(0x20e),_0x4923c8[_0x4923c8[_0x17995c(0xe7)]=0x271d]=_0x17995c(0xe7),_0x4923c8[_0x4923c8['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x17995c(0x104),_0x4923c8[_0x4923c8['YUUMI_AI_RUN_FAILED']=0x271f]=_0x17995c(0x235),_0x4923c8[_0x4923c8[_0x17995c(0x190)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x4923c8[_0x4923c8[_0x17995c(0x14d)]=0x2af9]=_0x17995c(0x14d),_0x4923c8[_0x4923c8['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x17995c(0x238),_0x4923c8[_0x4923c8[_0x17995c(0x132)]=0x2ee2]=_0x17995c(0x132),_0x4923c8[_0x4923c8[_0x17995c(0x1ba)]=0x2ee3]=_0x17995c(0x1ba),_0x4923c8[_0x4923c8[_0x17995c(0xbc)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x4923c8[_0x4923c8[_0x17995c(0x225)]=0x2ee5]=_0x17995c(0x225),_0x4923c8[_0x4923c8[_0x17995c(0xc4)]=0x32c9]=_0x17995c(0xc4),_0x4923c8[_0x4923c8[_0x17995c(0x149)]=0x32ca]=_0x17995c(0x149),_0x4923c8[_0x4923c8[_0x17995c(0x217)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x4923c8[_0x4923c8[_0x17995c(0x1b8)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x4923c8[_0x4923c8[_0x17995c(0x16d)]=0x36b2]=_0x17995c(0x16d),_0x4923c8[_0x4923c8['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x4923c8[_0x4923c8[_0x17995c(0x28e)]=0x36b4]=_0x17995c(0x28e),_0x4923c8[_0x4923c8[_0x17995c(0x1e1)]=0x3715]=_0x17995c(0x1e1),_0x4923c8[_0x4923c8[_0x17995c(0x1ac)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x4923c8[_0x4923c8[_0x17995c(0x8a)]=0x37dd]=_0x17995c(0x8a),_0x4923c8[_0x4923c8[_0x17995c(0x152)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x4923c8[_0x4923c8[_0x17995c(0xed)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x4923c8[_0x4923c8['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x17995c(0xc1),_0x4923c8[_0x4923c8[_0x17995c(0x1f3)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x4923c8[_0x4923c8[_0x17995c(0xea)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x4923c8[_0x4923c8[_0x17995c(0x1e7)]=0x3a9e]=_0x17995c(0x1e7),_0x4923c8[_0x4923c8['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x17995c(0x29f),_0x4923c8[_0x4923c8[_0x17995c(0x9f)]=-0x1]=_0x17995c(0x9f),_0x4923c8))(Z||{});function mn(_0x39dd97){const _0x46a338=_0x17995c;var _0x5e6d68,_0x497fb0;const _0x189475=(_0x5e6d68=_0x39dd97[_0x46a338(0x17a)])==null?void 0x0:_0x5e6d68[_0x46a338(0x1ca)],_0x353cb2=((_0x497fb0=_0x39dd97['stageInfo'])==null?void 0x0:_0x497fb0['totalFormulasToCalculate'])||0x0;return _0x189475===_0x19f2ec['START_CALCULATION']&&_0x353cb2>0x0;}function fn(_0x4247e0){const _0x1e76ef=_0x17995c;return _0x4247e0[_0x1e76ef(0x288)]===_0x3bbfbf['SUCCESS'];}var gn=Object[_0x17995c(0x153)],vn=(_0x14b946,_0x36fe02,_0x1ebfbc,_0x1a9a58)=>{const _0x203564=_0x17995c;for(var _0x3c9f06=_0x1a9a58>0x1?void 0x0:_0x1a9a58?gn(_0x36fe02,_0x1ebfbc):_0x36fe02,_0x364b18=_0x14b946[_0x203564(0x28b)]-0x1,_0xab9d66;_0x364b18>=0x0;_0x364b18--)(_0xab9d66=_0x14b946[_0x364b18])&&(_0x3c9f06=_0xab9d66(_0x3c9f06)||_0x3c9f06);return _0x3c9f06;},P=(_0x21d812,_0x256182)=>(_0x51604c,_0xf3d058)=>_0x256182(_0x51604c,_0xf3d058,_0x21d812);const En=_0x17995c(0xe1),pn=_0x17995c(0x16b),On=_0x17995c(0x209);let de=class extends _0x29710c{constructor(_0x1489b9,_0x449ffb,_0x17f9d6,_0x222490,_0x1dbe9c,_0x130a1b,_0x2789cb){const _0x10d6d8=_0x17995c;super(),l(this,_0x10d6d8(0x15d),null),l(this,'_maxFormulaLimit',0x0),l(this,_0x10d6d8(0x1fe),0x0),l(this,_0x10d6d8(0x110),[]),l(this,_0x10d6d8(0x2a8),0x0),(this[_0x10d6d8(0x93)]=_0x1489b9,this['_commandService']=_0x449ffb,this[_0x10d6d8(0x22b)]=_0x17f9d6,this[_0x10d6d8(0x1fb)]=_0x222490,this['_univerInstanceService']=_0x1dbe9c,this[_0x10d6d8(0x18f)]=_0x130a1b,this[_0x10d6d8(0x13c)]=_0x2789cb,this[_0x10d6d8(0x16c)]());}[_0x17995c(0x16c)](){const _0x23ca76=_0x17995c;this[_0x23ca76(0x1c2)](this['_commandService'][_0x23ca76(0xf4)]((_0x42dfdf,_0x1a8fdd)=>{const _0x12d81f=_0x23ca76;if(_0x42dfdf['id']!==_0x8e7314['id'])return;const _0x2b80e5=_0x42dfdf[_0x12d81f(0x166)];if(!this[_0x12d81f(0x1cb)](_0x2b80e5[_0x12d81f(0xa6)]))return;if(!this['_checkCalculationAvailable']())throw this['_checkAndWaitForCalculationPermission'](_0x42dfdf,_0x1a8fdd),this[_0x12d81f(0x240)](),new _0x5313b4();})),this['disposeWithMe'](this[_0x23ca76(0x1ed)][_0x23ca76(0x162)]((_0x592c57,_0x298123)=>{const _0x23e859=_0x23ca76;if(_0x592c57['id']!==_0x72d1d3['id'])return;const _0x3fd29d=_0x592c57[_0x23e859(0x166)];if(mn(_0x3fd29d)){const _0x40eb0b=_0x25c646();this[_0x23e859(0x110)]['push'](_0x40eb0b),this[_0x23e859(0x237)](_0x40eb0b);}else{if(fn(_0x3fd29d)&&this['_taskIds'][_0x23e859(0x28b)]>0x0){const _0x530e57=this[_0x23e859(0x110)][_0x23e859(0x17d)]();this[_0x23e859(0x1ec)](_0x530e57);}}}));}[_0x17995c(0x2b4)](){const _0x4a4a35=_0x17995c;super[_0x4a4a35(0x2b4)](),this[_0x4a4a35(0x1a1)](),this[_0x4a4a35(0x110)]=[],this['_currentUsage']=0x0,this[_0x4a4a35(0x1bf)]=0x0,this[_0x4a4a35(0x2a8)]=0x0;}async[_0x17995c(0xc3)](_0x28482a,_0x4c5ffd){const _0x5efcc0=_0x17995c;for(let _0x40d8ad=0x0;_0x40d8ad<0x1e;_0x40d8ad++)try{if(await this[_0x5efcc0(0x2b8)](),this['_checkCalculationAvailable']()){this[_0x5efcc0(0x29b)](_0x28482a,_0x4c5ffd),this[_0x5efcc0(0x93)][_0x5efcc0(0xfe)]({'content':this[_0x5efcc0(0x13c)]['t'](_0x5efcc0(0x212)),'type':_0x2001e5[_0x5efcc0(0x1f6)]});return;}await new Promise(_0x5d6df2=>{const _0x1a7d6c=_0x5efcc0;this[_0x1a7d6c(0x15d)]=window[_0x1a7d6c(0xf8)](_0x5d6df2,0x3e8);});}catch(_0x17fea8){this[_0x5efcc0(0x18f)][_0x5efcc0(0x205)](_0x17fea8);}this[_0x5efcc0(0x93)][_0x5efcc0(0xfe)]({'content':this['_localeService']['t']('formula.calculation.unable'),'type':_0x2001e5[_0x5efcc0(0x157)]});}['_applyCommand'](_0x521b3c,_0x534bb3){const _0xff9843=_0x17995c;try{this[_0xff9843(0x1ed)][_0xff9843(0x1c4)](_0x521b3c['id'],_0x521b3c[_0xff9843(0x166)],_0x534bb3);}catch(_0x321d5e){this[_0xff9843(0x18f)]['error'](_0x321d5e);}}[_0x17995c(0x2a2)](_0x540f00,_0x1884c2){const _0x14d994=_0x17995c;_0x1884c2<this[_0x14d994(0x2a8)]||(this[_0x14d994(0x2a8)]=_0x1884c2,this['_maxFormulaLimit']=Number[_0x14d994(0xd0)](_0x540f00['maxFormulaLimit']),this[_0x14d994(0x1fe)]=Number['parseInt'](_0x540f00['currentUsage']));}async[_0x17995c(0x237)](_0x386c81){const _0x4e6a94=_0x17995c;var _0x3c6bb7,_0x1d8c6c;const _0x227dcd=Date['now']();try{const _0x3c783d=((_0x3c6bb7=this[_0x4e6a94(0x22b)]['getConfig'](_0x561a7a))==null?void 0x0:_0x3c6bb7[_0x4e6a94(0x151)])||pn,_0x1ed237=(await this[_0x4e6a94(0x1fb)][_0x4e6a94(0xee)](_0x3c783d,{'body':JSON['stringify']({'taskId':_0x386c81})}))[_0x4e6a94(0x200)];if(((_0x1d8c6c=_0x1ed237[_0x4e6a94(0x205)])==null?void 0x0:_0x1d8c6c['code'])!==Z['OK'])return;this[_0x4e6a94(0x2a2)](_0x1ed237[_0x4e6a94(0xdd)],_0x227dcd);}catch(_0x17b3dd){this[_0x4e6a94(0x18f)][_0x4e6a94(0x205)](_0x17b3dd);}}async[_0x17995c(0x2b8)](_0x54155c){const _0x1585a5=_0x17995c;var _0x42a88b,_0x1ba1e6;const _0x7f8531=Date[_0x1585a5(0x2a5)]();try{const _0x1f0946=((_0x42a88b=this[_0x1585a5(0x22b)]['getConfig'](_0x561a7a))==null?void 0x0:_0x42a88b[_0x1585a5(0x1ef)])||En,_0x1376a0=_0x54155c?_0x1f0946+'?taskId='+encodeURIComponent(_0x54155c):_0x1f0946,_0x35f9bf=(await this[_0x1585a5(0x1fb)][_0x1585a5(0x265)](_0x1376a0))['body'];if(((_0x1ba1e6=_0x35f9bf['error'])==null?void 0x0:_0x1ba1e6[_0x1585a5(0x29d)])!==Z['OK'])return;this[_0x1585a5(0x2a2)](_0x35f9bf[_0x1585a5(0xdd)],_0x7f8531);}catch(_0x37fb2b){this[_0x1585a5(0x18f)][_0x1585a5(0x205)](_0x37fb2b);}}async[_0x17995c(0x1ec)](_0x1c7102){const _0xc5efa3=_0x17995c;var _0x80090f,_0x26e493;const _0x98b644=Date[_0xc5efa3(0x2a5)]();try{const _0x3c425e=((_0x80090f=this[_0xc5efa3(0x22b)][_0xc5efa3(0x19a)](_0x561a7a))==null?void 0x0:_0x80090f[_0xc5efa3(0x27d)])||On,_0x423ea7=(await this['_httpService'][_0xc5efa3(0xee)](_0x3c425e,{'body':JSON[_0xc5efa3(0x1dd)]({'taskId':_0x1c7102})}))[_0xc5efa3(0x200)];if(((_0x26e493=_0x423ea7[_0xc5efa3(0x205)])==null?void 0x0:_0x26e493[_0xc5efa3(0x29d)])!==Z['OK'])return;this[_0xc5efa3(0x2a2)](_0x423ea7[_0xc5efa3(0xdd)],_0x98b644);}catch(_0x267f57){this[_0xc5efa3(0x18f)]['error'](_0x267f57);}}[_0x17995c(0x289)](){const _0x585a8a=_0x17995c;return this[_0x585a8a(0x1bf)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x585a8a(0x1fe)]>0x0;}[_0x17995c(0x1a1)](){this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this['_pollingInterval']=null);}[_0x17995c(0x240)](){const _0x4150dc=_0x17995c;this[_0x4150dc(0x93)][_0x4150dc(0xfe)]({'content':this[_0x4150dc(0x13c)]['t'](_0x4150dc(0xaa)),'type':_0x2001e5[_0x4150dc(0x116)]});}[_0x17995c(0x1cb)](_0x1ba72c){const _0x102f1a=_0x17995c;for(const _0x35cb12 of _0x1ba72c){const {unitId:_0x48fd04,sheetId:_0x47bc16,range:_0x4edfa4}=_0x35cb12,_0x5c53e0=this['_univerInstanceService'][_0x102f1a(0xe8)](_0x48fd04);if(!_0x5c53e0)continue;const _0x450636=_0x5c53e0[_0x102f1a(0x2c1)](_0x47bc16);if(!_0x450636)continue;const _0x2cd7b1=_0x450636[_0x102f1a(0x155)]();for(let _0x41bac1=_0x4edfa4[_0x102f1a(0xb3)];_0x41bac1<=_0x4edfa4[_0x102f1a(0x2b2)];_0x41bac1++)for(let _0x4d9777=_0x4edfa4[_0x102f1a(0x1c7)];_0x4d9777<=_0x4edfa4[_0x102f1a(0x17b)];_0x4d9777++){const _0x42e03e=_0x2cd7b1[_0x102f1a(0x146)](_0x41bac1,_0x4d9777);if(_0x42e03e&&(_0x4f5ea9(_0x42e03e['f'])||_0x267f20(_0x42e03e['si'])))return!0x0;}}return!0x1;}};de=vn([P(0x0,_0x11a278(_0xc5e3ee)),P(0x1,_0x31e8e2),P(0x2,_0x284c80),P(0x3,_0x11a278(_0x363c4f)),P(0x4,_0x382f2b),P(0x5,_0x12caba),P(0x6,_0x11a278(_0x5bea2a))],de);var Tn=Object['getOwnPropertyDescriptor'],Cn=(_0x4df2c7,_0x373ef1,_0x5373b7,_0x2968f1)=>{const _0x42c13a=_0x17995c;for(var _0x360a04=_0x2968f1>0x1?void 0x0:_0x2968f1?Tn(_0x373ef1,_0x5373b7):_0x373ef1,_0x23a558=_0x4df2c7[_0x42c13a(0x28b)]-0x1,_0x4d0815;_0x23a558>=0x0;_0x23a558--)(_0x4d0815=_0x4df2c7[_0x23a558])&&(_0x360a04=_0x4d0815(_0x360a04)||_0x360a04);return _0x360a04;},De=(_0x13b360,_0x198a5c)=>(_0x33c50a,_0x4e263)=>_0x198a5c(_0x33c50a,_0x4e263,_0x13b360);let xe=class extends _0x29710c{constructor(_0x1e31cf,_0x33bee4,_0x109b05){const _0x253d27=_0x17995c;super(),l(this,_0x253d27(0xbd),new Map()),l(this,_0x253d27(0x270),new Map()),l(this,'_disabled',!0x1),(this[_0x253d27(0x22b)]=_0x1e31cf,this[_0x253d27(0xc0)]=_0x33bee4,this[_0x253d27(0xb2)]=_0x109b05);}['disableLocalCache'](){const _0x1da398=_0x17995c;this[_0x1da398(0x2a7)]=!0x0;}[_0x17995c(0x95)](){const _0x531368=_0x17995c;this[_0x531368(0x2a7)]=!0x1;}get[_0x17995c(0xa7)](){return this['_saveTaskMap'];}[_0x17995c(0x2b4)](){const _0x3c2f99=_0x17995c;this[_0x3c2f99(0x23c)]()[_0x3c2f99(0x1d3)](()=>super[_0x3c2f99(0x2b4)]());}async[_0x17995c(0xa8)](_0x24ea2b){const _0x4f6a54=_0x17995c;return this[_0x4f6a54(0x2a7)]?null:this['_localStorageService']['getItem'](_0x47bb08(_0x24ea2b));}async[_0x17995c(0x232)](_0x57e93e,_0x4601b8){const _0x358051=_0x17995c;return!!this[_0x358051(0xc0)][_0x358051(0xfc)](_0x57e93e,_0x4601b8);}[_0x17995c(0x26d)](_0x1e499e,_0x10a1fa,_0x2ab504,_0x1c965f){const _0x5b7483=_0x17995c,_0x1edd0b=this[_0x5b7483(0xb2)]['getCurrentRevOfUnit'](_0x1e499e);this[_0x5b7483(0xbd)][_0x5b7483(0xc9)](_0x1e499e,{'unitID':_0x1e499e,'type':_0x10a1fa,'awaitingChangeset':_0x2ab504,'mutations':_0x1c965f,'rev':_0x1edd0b}),this[_0x5b7483(0x270)][_0x5b7483(0x2a9)](_0x1e499e)||this[_0x5b7483(0x96)](_0x1e499e);}[_0x17995c(0x96)](_0x5445b1){const _0x4c8bbb=_0x17995c,_0x42802d=this[_0x4c8bbb(0x2a0)]();_0x42802d===0x0?this['_saveCache'](_0x5445b1):this[_0x4c8bbb(0x270)][_0x4c8bbb(0xc9)](_0x5445b1,setTimeout(()=>this[_0x4c8bbb(0x1f0)](_0x5445b1),_0x42802d));}[_0x17995c(0x2a0)](){const _0x3ab7f4=_0x17995c;var _0x352a1b;return(_0x352a1b=this[_0x3ab7f4(0x22b)][_0x3ab7f4(0x19a)](_0x406905))!=null?_0x352a1b:_0x34d795;}['_saveCache'](_0xbbf91){const _0x2d6826=_0x17995c,_0x5b7f49=this[_0x2d6826(0x270)]['get'](_0xbbf91);return _0x5b7f49!==void 0x0&&window['clearTimeout'](_0x5b7f49),this[_0x2d6826(0xc0)][_0x2d6826(0xfc)](_0x47bb08(_0xbbf91),this[_0x2d6826(0xbd)][_0x2d6826(0x265)](_0xbbf91))[_0x2d6826(0x1d3)](()=>this[_0x2d6826(0x270)]['delete'](_0xbbf91));}async['exhaustSavingTask'](){const _0x616175=_0x17995c,_0x4e1c31=[];this[_0x616175(0x270)][_0x616175(0xbe)]((_0x4c8481,_0x108623)=>{const _0x5de9a4=_0x616175;window[_0x5de9a4(0x10e)](_0x4c8481),_0x4e1c31[_0x5de9a4(0x272)](this[_0x5de9a4(0x1f0)](_0x108623)[_0x5de9a4(0x1d3)](()=>{const _0x2028d6=_0x5de9a4;this[_0x2028d6(0x270)][_0x2028d6(0xeb)](_0x108623);}));}),await Promise[_0x616175(0x1b7)](_0x4e1c31);}};xe=Cn([De(0x0,_0x284c80),De(0x1,_0x241148),De(0x2,_0x11a278(_0x225cbf))],xe);class Rn extends _0x53201b{constructor(){const _0x165f6f=_0x17995c;super(),l(this,_0x165f6f(0x10a)),this['urlChange$']=_0xa49f30(window,_0x165f6f(0x1a4))['pipe'](_0x426fdf(this[_0x165f6f(0xda)]),_0x9be7a1(0x1),_0x2b6054(void 0x0));}['setParam'](_0xaf10c8,_0x5b9742,_0x1aa013=!0x1){const _0x20ff40=_0x17995c,_0x217f50=new URL(window['location'][_0x20ff40(0x182)]);_0x217f50['searchParams'][_0x20ff40(0xc9)](_0xaf10c8,_0x5b9742),_0x1aa013?window[_0x20ff40(0x16a)][_0x20ff40(0x102)]('','',_0x217f50['toString']()):window[_0x20ff40(0x16a)]['pushState']('','',_0x217f50['toString']());}[_0x17995c(0x277)](_0x4872b5,_0x461718=!0x1){const _0x367148=_0x17995c,_0x109113=new URL(window['location'][_0x367148(0x182)]);_0x109113[_0x367148(0xe9)]['delete'](_0x4872b5),_0x461718?window['history'][_0x367148(0x102)]('','',_0x109113['toString']()):window[_0x367148(0x16a)]['pushState']('','',_0x109113[_0x367148(0x201)]());}[_0x17995c(0x1ea)](_0x1f97e1){const _0x3930d7=_0x17995c;var _0x4fd469;return(_0x4fd469=new URL(window[_0x3930d7(0x2ad)][_0x3930d7(0x182)])[_0x3930d7(0xe9)]['get'](_0x1f97e1))!=null?_0x4fd469:void 0x0;}}var Dn=Object[_0x17995c(0x138)],Nn=Object[_0x17995c(0x153)],bn=(_0x4ed3c1,_0x2178ce,_0x1f511f)=>_0x2178ce in _0x4ed3c1?Dn(_0x4ed3c1,_0x2178ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f511f}):_0x4ed3c1[_0x2178ce]=_0x1f511f,Un=(_0x377180,_0x87eb39,_0x197eb9,_0x42650e)=>{const _0x25f8a6=_0x17995c;for(var _0x30628a=_0x42650e>0x1?void 0x0:_0x42650e?Nn(_0x87eb39,_0x197eb9):_0x87eb39,_0x4225bc=_0x377180[_0x25f8a6(0x28b)]-0x1,_0x81a7d3;_0x4225bc>=0x0;_0x4225bc--)(_0x81a7d3=_0x377180[_0x4225bc])&&(_0x30628a=_0x81a7d3(_0x30628a)||_0x30628a);return _0x30628a;},Ne=(_0x2faa60,_0x33e008)=>(_0x34ab9d,_0x4565d5)=>_0x33e008(_0x34ab9d,_0x4565d5,_0x2faa60),Ln=(_0x5155b7,_0x38e9c7,_0x3491bf)=>bn(_0x5155b7,_0x38e9c7+'',_0x3491bf);const Mn=_0x17995c(0x142);let Be=class extends _0x494e53{constructor(_0x531fdb=rt,_0x16da5b,_0x2d2185,_0x27ce91){const _0x1480d4=_0x17995c;super(),this[_0x1480d4(0x163)]=_0x531fdb,this[_0x1480d4(0x134)]=_0x16da5b,this[_0x1480d4(0x287)]=_0x2d2185,this[_0x1480d4(0x22b)]=_0x27ce91;const {..._0x65eff9}=_0xf62ae0({},rt,this[_0x1480d4(0x163)]);this[_0x1480d4(0x22b)][_0x1480d4(0x227)](an,_0x65eff9);}[_0x17995c(0x1df)](){const _0x228669=_0x17995c;this[_0x228669(0x1c8)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0xfad83c=_0x17995c;var _0x14cd50;const _0x55ad2e=[[je],[de],[he],[_e],[le],[Xe],[At,{'useClass':Rn}],[_0x5a617a,{'useClass':_0x3242f0}],[_0x3a200a,{'useClass':xe}],[oe],[ue],[ce],[H],[Ae],[ae]];_0x3ace74(this[_0xfad83c(0x287)],_0x23631a(_0x55ad2e,(_0x14cd50=this[_0xfad83c(0x163)])==null?void 0x0:_0x14cd50[_0xfad83c(0x100)]));}[_0x17995c(0x108)](){const _0x5460aa=_0x17995c;this[_0x5460aa(0x1c2)](this[_0x5460aa(0x134)]['registerRenderModule'](_0x502d97['UNIVER_DOC'],[ye])),this['disposeWithMe'](this['_renderManagerService'][_0x5460aa(0xdc)](_0x502d97[_0x5460aa(0x12d)],[$e]));}[_0x17995c(0x218)](){const _0x403f7e=_0x17995c;_0x3dce4a(this[_0x403f7e(0x287)],[[H],[oe],[ue],[ce],[ae],[de]]);}};Ln(Be,_0x17995c(0xe0),Mn),Be=Un([_0x53975f(_0x2497f2),Ne(0x1,_0x4b49a7),Ne(0x2,_0x11a278(_0x426398)),Ne(0x3,_0x284c80)],Be);var An=Object[_0x17995c(0x153)],Pn=(_0x5e879b,_0x45a83d,_0x33b438,_0x1606b6)=>{for(var _0x39cecf=_0x1606b6>0x1?void 0x0:_0x1606b6?An(_0x45a83d,_0x33b438):_0x45a83d,_0xcde81c=_0x5e879b['length']-0x1,_0x27a343;_0xcde81c>=0x0;_0xcde81c--)(_0x27a343=_0x5e879b[_0xcde81c])&&(_0x39cecf=_0x27a343(_0x39cecf)||_0x39cecf);return _0x39cecf;},J=(_0x28a8ff,_0x46f9ce)=>(_0x7b992b,_0x32dd75)=>_0x46f9ce(_0x7b992b,_0x32dd75,_0x28a8ff);let ct=class extends _0x331ab9{constructor(_0x33f54a,_0x3d8505,_0x22c446,_0x87ee8e,_0x4f504c){super(_0x33f54a,_0x3d8505,_0x22c446,_0x87ee8e,_0x4f504c);}async['createSocket'](_0x2dcd0d){const _0x115269=_0x17995c,_0x4155a2=await this['_getSessionTicket'](),_0x3a9f82=this['_createSocketURL'](_0x2dcd0d,_0x4155a2);return this[_0x115269(0x115)](_0x3a9f82);}[_0x17995c(0x233)](_0x5ba77e,_0x64742a){const _0x1bdb22=_0x17995c,_0x499b11=typeof window>'u'?new URL(_0x5ba77e):new URL(_0x5ba77e,window[_0x1bdb22(0x2ad)][_0x1bdb22(0x1f7)]);_0x499b11[_0x1bdb22(0xe9)][_0x1bdb22(0xc9)](_0x1bdb22(0x1cc),_0x64742a);const _0x3cb2b5=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1bdb22(0x282)]);return _0x3cb2b5['get']('runId')&&_0x499b11[_0x1bdb22(0xe9)][_0x1bdb22(0xc9)](_0x1bdb22(0x141),_0x3cb2b5['get'](_0x1bdb22(0x141))),_0x499b11[_0x1bdb22(0x201)]();}async[_0x17995c(0x18a)](){const _0x458faf=_0x17995c;var _0x3e8a59,_0x31a2c1,_0x43f562;const _0x3a3c28=this['_configService'][_0x458faf(0x19a)](_0x561a7a),_0x47a9d7=(_0x3e8a59=_0x3a3c28==null?void 0x0:_0x3a3c28[_0x458faf(0x254)])!=null?_0x3e8a59:_0x3f8692;return(_0x43f562=(_0x31a2c1=(await this[_0x458faf(0x1fb)][_0x458faf(0x265)](_0x47a9d7,{'headers':{'Content-Type':_0x458faf(0x202)}}))[_0x458faf(0x200)])==null?void 0x0:_0x31a2c1[_0x458faf(0xae)])!=null?_0x43f562:'';}};ct=Pn([J(0x0,_0x11a278(_0x426398)),J(0x1,_0x11a278(_0x363c4f)),J(0x2,_0x284c80),J(0x3,_0x12caba),J(0x4,_0x4d1519)],ct);var wn=Object[_0x17995c(0x153)],yn=(_0x591e65,_0x3ba57d,_0x3c8dd4,_0x386b24)=>{const _0x1fdf8a=_0x17995c;for(var _0x42d821=_0x386b24>0x1?void 0x0:_0x386b24?wn(_0x3ba57d,_0x3c8dd4):_0x3ba57d,_0x1e31f7=_0x591e65[_0x1fdf8a(0x28b)]-0x1,_0x429267;_0x1e31f7>=0x0;_0x1e31f7--)(_0x429267=_0x591e65[_0x1e31f7])&&(_0x42d821=_0x429267(_0x42d821)||_0x42d821);return _0x42d821;},be=(_0x582937,_0x2e8d40)=>(_0xdf4a8e,_0x1cb8c9)=>_0x2e8d40(_0xdf4a8e,_0x1cb8c9,_0x582937);let _t=class extends _0x29710c{constructor(_0x40da52,_0xfb613c,_0x166f2d){const _0x58d19c=_0x17995c;super(),this[_0x58d19c(0x22c)]=_0x40da52,this['_httpService']=_0xfb613c,this[_0x58d19c(0x22b)]=_0x166f2d;}async['runOnServer'](_0x126ed8,_0x551969,_0x443d63,..._0x361b4f){const _0x127c8a=_0x17995c;var _0x29865b,_0x36df4f,_0x5a14a9,_0x58ca6c;const _0x3387c7=this[_0x127c8a(0x22c)][_0x127c8a(0x177)]();if(!_0x3387c7)throw new Error(_0x127c8a(0x13b));const _0x3a4bd1=((_0x29865b=this['_configService'][_0x127c8a(0x19a)](_0x6c9711))!=null?_0x29865b:_0x4a61fe)+'/'+_0x126ed8+'/run/'+_0x551969,_0x1a807b=new URL(window[_0x127c8a(0x2ad)][_0x127c8a(0x182)]),_0x5614b9={'scriptId':_0x126ed8,'runId':(_0x36df4f=_0x1a807b['searchParams'][_0x127c8a(0x265)](_0x127c8a(0x141)))!=null?_0x36df4f:'','function':_0x551969,'unitId':_0x3387c7['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x361b4f),'invokeId':(_0x5a14a9=_0x443d63[_0x127c8a(0x226)])!=null?_0x5a14a9:'','executionId':(_0x58ca6c=_0x443d63[_0x127c8a(0x9e)])!=null?_0x58ca6c:''};try{const _0x204ef3=await this[_0x127c8a(0x1fb)][_0x127c8a(0xee)](_0x3a4bd1,{'body':_0x5614b9});return _0x204ef3[_0x127c8a(0x200)][_0x127c8a(0x205)]&&_0x204ef3['body'][_0x127c8a(0x205)][_0x127c8a(0x29d)]!==Z['OK']?_0x127c8a(0x1a9):_0x204ef3[_0x127c8a(0x200)][_0x127c8a(0xcc)];}catch{return _0x127c8a(0x1a9);}}};_t=yn([be(0x0,_0x382f2b),be(0x1,_0x11a278(_0x363c4f)),be(0x2,_0x284c80)],_t);const lt=0x7530,ht=_0x17995c(0x1eb);class tr extends _0x29710c{constructor(){const _0x298ded=_0x17995c;super(),l(this,'_id',_0x25c646()),l(this,'_selfUnitIDs',new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x298ded(0x243),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x298ded(0x1bc),new Map()),this[_0x298ded(0x11f)]();}[_0x17995c(0x2b4)](){const _0x2557d1=_0x17995c;super[_0x2557d1(0x2b4)](),this[_0x2557d1(0x18e)][_0x2557d1(0xbe)]((_0x1cc68b,_0x4d77aa)=>this[_0x2557d1(0x234)](_0x4d77aa)),this[_0x2557d1(0x243)]&&window['clearInterval'](this[_0x2557d1(0x243)]);}[_0x17995c(0x236)](_0x3b4db2){const _0x12c446=_0x17995c;return this['_ensureSubject'](_0x3b4db2)[_0x12c446(0x269)](_0x430265());}['editingUnit'](_0x485bda){const _0x58472d=_0x17995c;this[_0x58472d(0x130)][_0x58472d(0x16f)]===0x0&&this[_0x58472d(0x257)](),this[_0x58472d(0x130)]['add'](_0x485bda),this['_send']({'type':0x0,'memberID':this[_0x58472d(0x2ae)],'unitIDs':[_0x485bda],'isForwarded':!0x1});}[_0x17995c(0x2b5)](_0x3e7d10){const _0x5e20d4=_0x17995c;this[_0x5e20d4(0x130)][_0x5e20d4(0xeb)](_0x3e7d10),this[_0x5e20d4(0x130)][_0x5e20d4(0x16f)]===0x0&&this[_0x5e20d4(0x243)]&&window['clearInterval'](this[_0x5e20d4(0x243)]);}['_init'](){const _0x1fd407=_0x17995c;this['disposeWithMe'](_0x3213ea(_0xa49f30(window,_0x1fd407(0x26c))['subscribe'](_0x593b1f=>{const _0x369ccf=_0x1fd407;if(_0x593b1f[_0x369ccf(0x2b6)]!==ht||!_0x593b1f['newValue'])return;const _0xffcbcb=JSON[_0x369ccf(0x2b1)](_0x593b1f[_0x369ccf(0xba)]);this['_handleEvent'](_0xffcbcb);}))),window[_0x1fd407(0x28f)]('unload',()=>this[_0x1fd407(0x114)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1fd407(0x130)])}));}[_0x17995c(0x11b)](_0x1f96d3){const _0x7b2a21=_0x17995c;switch(_0x1f96d3[_0x7b2a21(0x21b)]){case 0x0:this[_0x7b2a21(0x2bf)](_0x1f96d3);break;case 0x1:this['_handleLeaveEvent'](_0x1f96d3);break;case 0x2:this['_handleHeartbeatEvent'](_0x1f96d3);break;}}[_0x17995c(0x2bf)](_0xc40e19){const _0x1d67cb=_0x17995c,{unitIDs:_0xe05d72,memberID:_0x37724d,isForwarded:_0x25f358}=_0xc40e19;_0xe05d72['forEach'](_0x27cd4b=>{const _0xbecf8=_0x220d;if(!_0x25f358&&this[_0xbecf8(0x176)][_0xbecf8(0x2a9)](_0x27cd4b)&&this[_0xbecf8(0x113)](_0x27cd4b)[_0xbecf8(0xf2)](_0x27e9f9[_0xbecf8(0x263)]),!this[_0xbecf8(0x176)][_0xbecf8(0x2a9)](_0x27cd4b)||!this[_0xbecf8(0x176)][_0xbecf8(0x265)](_0x27cd4b)[_0xbecf8(0x2a9)](_0x37724d)){const _0x46fabf=this[_0xbecf8(0x176)][_0xbecf8(0x265)](_0x27cd4b)||new Set();_0x46fabf[_0xbecf8(0x25d)](_0x37724d),this[_0xbecf8(0x176)]['set'](_0x27cd4b,_0x46fabf),this[_0xbecf8(0xd5)](_0x37724d);}}),_0x25f358||this[_0x1d67cb(0x114)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x19607e){const _0x574710=_0x17995c;this[_0x574710(0x234)](_0x19607e);const _0x20e6cd=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x4734c5=>{const _0x4e0fe8=_0x220d;_0x4734c5[_0x4e0fe8(0xeb)](_0x19607e);});},lt*0x2);this['_clearOtherTimers'][_0x574710(0xc9)](_0x19607e,_0x20e6cd);}[_0x17995c(0x234)](_0x30a873){const _0x36cdfd=_0x17995c;if(this['_clearOtherTimers'][_0x36cdfd(0x2a9)](_0x30a873)){const _0x3e4858=this[_0x36cdfd(0x18e)][_0x36cdfd(0x265)](_0x30a873);_0x3e4858&&window['clearTimeout'](_0x3e4858),this[_0x36cdfd(0x18e)][_0x36cdfd(0xc9)](_0x30a873,null);}}[_0x17995c(0xac)](_0x111da3){const _0x209ce1=_0x17995c,{memberID:_0x3515f0,unitIDs:_0x47301b}=_0x111da3;_0x47301b[_0x209ce1(0xbe)](_0x2db8e0=>{const _0x4c3d18=_0x209ce1;var _0x1300af;const _0x2bedd6=this[_0x4c3d18(0x176)][_0x4c3d18(0x265)](_0x2db8e0);_0x2bedd6&&(_0x2bedd6['delete'](_0x3515f0),(_0x1300af=this[_0x4c3d18(0x113)](_0x2db8e0))==null||_0x1300af[_0x4c3d18(0xf2)](_0x2bedd6[_0x4c3d18(0x16f)]===0x0?_0x27e9f9[_0x4c3d18(0xf0)]:_0x27e9f9[_0x4c3d18(0x263)]));}),this['_removeClearOtherTimer'](_0x3515f0);}['_handleHeartbeatEvent'](_0x10d7c4){const _0x2151b2=_0x17995c;this[_0x2151b2(0xd5)](_0x10d7c4[_0x2151b2(0x19d)]);}[_0x17995c(0x114)](_0x59bdf6){const _0x6f0997=_0x17995c;localStorage[_0x6f0997(0xfc)](ht,JSON[_0x6f0997(0x1dd)](_0x59bdf6));}['_scheduleHeartbeat'](){const _0x127283=_0x17995c;this[_0x127283(0x243)]=window[_0x127283(0x120)](()=>{const _0x56d676=_0x127283;this[_0x56d676(0x114)]({'type':0x2,'memberID':this[_0x56d676(0x2ae)]});},lt);}[_0x17995c(0x113)](_0x35303c){const _0x596ff5=_0x17995c;return this[_0x596ff5(0x1bc)][_0x596ff5(0x2a9)](_0x35303c)||this[_0x596ff5(0x1bc)][_0x596ff5(0xc9)](_0x35303c,new _0x5ab626(_0x27e9f9[_0x596ff5(0xf0)])),this[_0x596ff5(0x1bc)][_0x596ff5(0x265)](_0x35303c);}}export{ct as BrowserCollaborationSocketService,ae as CollaborationDataLoaderController,oe as DesktopCollaborationStatusDisplayController,At as IURLService,_t as RemoteUniscriptService,qi as SheetCollabCursorShape,Be as UniverCollaborationClientUIPlugin,tr as WebBrowserSingleActiveUnitService,Rn as WebURLService};