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

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xd8ae(_0x57e948,_0x405fc0){const _0x2a822d=_0x2a82();return _0xd8ae=function(_0xd8aee0,_0x2f246c){_0xd8aee0=_0xd8aee0-0x1aa;let _0x519531=_0x2a822d[_0xd8aee0];return _0x519531;},_0xd8ae(_0x57e948,_0x405fc0);}(function(_0x644a5f,_0x3885d0){const _0x4bad03=_0xd8ae,_0x1732f1=_0x644a5f();while(!![]){try{const _0x2c8b25=parseInt(_0x4bad03(0x21a))/0x1+-parseInt(_0x4bad03(0x40a))/0x2+-parseInt(_0x4bad03(0x448))/0x3+-parseInt(_0x4bad03(0x3bf))/0x4+parseInt(_0x4bad03(0x1c7))/0x5+-parseInt(_0x4bad03(0x1f6))/0x6*(parseInt(_0x4bad03(0x2a5))/0x7)+parseInt(_0x4bad03(0x316))/0x8*(parseInt(_0x4bad03(0x390))/0x9);if(_0x2c8b25===_0x3885d0)break;else _0x1732f1['push'](_0x1732f1['shift']());}catch(_0x5812b3){_0x1732f1['push'](_0x1732f1['shift']());}}}(_0x2a82,0xe97d2),function(_0x13af82,_0x57b580){const _0x2463d8=_0xd8ae;typeof exports==_0x2463d8(0x3ef)&&typeof module<'u'?_0x57b580(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x2463d8(0x30d)&&define[_0x2463d8(0x2be)]?define([_0x2463d8(0x263),_0x2463d8(0x3df),_0x2463d8(0x26e),_0x2463d8(0x2c1),_0x2463d8(0x377),_0x2463d8(0x27e),_0x2463d8(0x1e1),_0x2463d8(0x278),_0x2463d8(0x208),'@univerjs/sheets',_0x2463d8(0x396),_0x2463d8(0x40e),_0x2463d8(0x31e),_0x2463d8(0x2de),_0x2463d8(0x3fc),_0x2463d8(0x326),'@univerjs/engine-formula',_0x2463d8(0x41d),'@univerjs/sheets-ui'],_0x57b580):(_0x13af82=typeof globalThis<'u'?globalThis:_0x13af82||self,_0x57b580(_0x13af82[_0x2463d8(0x45a)]={},_0x13af82['React'],_0x13af82['UniverProCollaborationClient'],_0x13af82[_0x2463d8(0x26f)],_0x13af82[_0x2463d8(0x269)],_0x13af82[_0x2463d8(0x27e)],_0x13af82[_0x2463d8(0x2c6)],_0x13af82['React'],_0x13af82['UniverRpc'],_0x13af82[_0x2463d8(0x1cb)],_0x13af82[_0x2463d8(0x218)],_0x13af82[_0x2463d8(0x419)],_0x13af82[_0x2463d8(0x1d3)],_0x13af82[_0x2463d8(0x3d5)],_0x13af82[_0x2463d8(0x47b)],_0x13af82[_0x2463d8(0x337)],_0x13af82[_0x2463d8(0x367)],_0x13af82[_0x2463d8(0x27e)][_0x2463d8(0x310)],_0x13af82[_0x2463d8(0x376)]));}(this,function(_0x5401e2,_0x362dc6,_0xd5bbf8,_0x187eaa,_0x2695dd,_0x12c3e7,_0x3b181,_0x4d382b,_0x34ba01,_0x183de5,_0x34e554,_0x1b946c,_0x4019f2,_0xd84d03,_0x5cbc46,_0x4149e2,_0x18796c,_0x2f0f6d,_0x466080){'use strict';const _0x175e1d=_0xd8ae;var _0x17e096=Object[_0x175e1d(0x43c)],_0x454afe=(_0x354d58,_0x372140,_0x256b15)=>_0x372140 in _0x354d58?_0x17e096(_0x354d58,_0x372140,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x256b15}):_0x354d58[_0x372140]=_0x256b15,_0x3d2368=(_0x686818,_0x3e9d3e,_0x3e8786)=>_0x454afe(_0x686818,typeof _0x3e9d3e!=_0x175e1d(0x34d)?_0x3e9d3e+'':_0x3e9d3e,_0x3e8786);function _0x1d0385({ref:_0x126800,..._0x45009b}){const _0x4e2655=_0x175e1d,{icon:_0xe19eb5,id:_0x36777a,className:_0x38e545,extend:_0x1eaecb,..._0x55293d}=_0x45009b,_0x25d1b9=(_0x4e2655(0x31b)+_0x36777a+'\x20'+(_0x38e545||''))['trim'](),_0x24623f=_0x4d382b[_0x4e2655(0x2f4)]('_'+_0xe6244());return _0x1f6ac2(_0xe19eb5,''+_0x36777a,{'defIds':_0xe19eb5[_0x4e2655(0x20d)],'idSuffix':_0x24623f[_0x4e2655(0x3c3)]},{'ref':_0x126800,'className':_0x25d1b9,..._0x55293d},_0x1eaecb);}function _0x1f6ac2(_0x1c5581,_0xb0df20,_0x14196b,_0x11d1cf,_0xbffd0b){const _0x2d7a29=_0x175e1d;return _0x4d382b[_0x2d7a29(0x30f)](_0x1c5581['tag'],{'key':_0xb0df20,..._0x33d97(_0x1c5581,_0x14196b,_0xbffd0b),..._0x11d1cf},(_0x4fa1a8(_0x1c5581,_0x14196b)['children']||[])[_0x2d7a29(0x38c)]((_0x394bc3,_0x2a2a2d)=>_0x1f6ac2(_0x394bc3,_0xb0df20+'-'+_0x1c5581[_0x2d7a29(0x38a)]+'-'+_0x2a2a2d,_0x14196b,void 0x0,_0xbffd0b)));}function _0x33d97(_0x839d13,_0x4c83cd,_0xec1f43){const _0x849a33=_0x175e1d,_0x4508db={..._0x839d13['attrs']};_0xec1f43!=null&&_0xec1f43[_0x849a33(0x28a)]&&_0x4508db[_0x849a33(0x3c2)]===_0x849a33(0x28a)&&(_0x4508db[_0x849a33(0x3c2)]=_0xec1f43[_0x849a33(0x28a)]),_0x839d13[_0x849a33(0x38a)]===_0x849a33(0x370)&&_0x4508db['id']&&(_0x4508db['id']=_0x4508db['id']+_0x4c83cd[_0x849a33(0x2c9)]),Object[_0x849a33(0x414)](_0x4508db)[_0x849a33(0x1d4)](([_0x2c8298,_0x513d31])=>{const _0x4003bd=_0x849a33;_0x2c8298===_0x4003bd(0x370)&&typeof _0x513d31==_0x4003bd(0x29e)&&(_0x4508db[_0x2c8298]=_0x513d31[_0x4003bd(0x3e7)](/url\(#(.*)\)/,_0x4003bd(0x271)+_0x4c83cd[_0x4003bd(0x2c9)]+')'));});const {defIds:_0x1269ae}=_0x4c83cd;return!_0x1269ae||_0x1269ae[_0x849a33(0x2d7)]===0x0||(_0x839d13['tag']===_0x849a33(0x477)&&_0x4508db['xlink:href']&&(_0x4508db[_0x849a33(0x2bb)]=_0x4508db[_0x849a33(0x2bb)]+_0x4c83cd['idSuffix']),Object[_0x849a33(0x414)](_0x4508db)[_0x849a33(0x1d4)](([_0x50dc6c,_0x84f917])=>{const _0x44bd89=_0x849a33;typeof _0x84f917==_0x44bd89(0x29e)&&(_0x4508db[_0x50dc6c]=_0x84f917['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4c83cd[_0x44bd89(0x2c9)]+')'));})),_0x4508db;}function _0x4fa1a8(_0x29f83d,_0x58348d){const _0x227e4c=_0x175e1d;var _0x3e582f;const {defIds:_0x26df9c}=_0x58348d;return!_0x26df9c||_0x26df9c[_0x227e4c(0x2d7)]===0x0?_0x29f83d:_0x29f83d[_0x227e4c(0x38a)]==='defs'&&((_0x3e582f=_0x29f83d['children'])!=null&&_0x3e582f[_0x227e4c(0x2d7)])?{..._0x29f83d,'children':_0x29f83d['children'][_0x227e4c(0x38c)](_0x231132=>typeof _0x231132[_0x227e4c(0x44c)]['id']==_0x227e4c(0x29e)&&_0x26df9c&&_0x26df9c[_0x227e4c(0x400)](_0x231132[_0x227e4c(0x44c)]['id'])?{..._0x231132,'attrs':{..._0x231132[_0x227e4c(0x44c)],'id':_0x231132[_0x227e4c(0x44c)]['id']+_0x58348d[_0x227e4c(0x2c9)]}}:_0x231132)}:_0x29f83d;}function _0xe6244(){const _0x53deb9=_0x175e1d;return Math['random']()[_0x53deb9(0x29d)](0x24)[_0x53deb9(0x1f1)](0x2,0x8);}_0x1d0385['displayName']='UniverIcon';const _0xc492dd={'tag':_0x175e1d(0x2cb),'attrs':{'xmlns':_0x175e1d(0x1b2),'fill':_0x175e1d(0x2ac),'viewBox':_0x175e1d(0x237),'width':_0x175e1d(0x42f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x175e1d(0x423)},'children':[{'tag':_0x175e1d(0x319),'attrs':{'stroke':'currentColor','d':_0x175e1d(0x3a5),'strokeLinecap':'round','strokeLinejoin':_0x175e1d(0x203),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x175e1d(0x445)},'children':[{'tag':_0x175e1d(0x319),'attrs':{'fill':_0x175e1d(0x266),'d':_0x175e1d(0x28f)}}]}]}],'defIds':[_0x175e1d(0x445)]},_0x532acb=_0x4d382b[_0x175e1d(0x406)](function(_0x4805c1,_0x1821df){const _0x22a3a9=_0x175e1d;return _0x4d382b[_0x22a3a9(0x30f)](_0x1d0385,Object['assign']({},_0x4805c1,{'id':_0x22a3a9(0x341),'ref':_0x1821df,'icon':_0xc492dd}));});_0x532acb[_0x175e1d(0x353)]=_0x175e1d(0x2d1);const _0x2b8cbf={'tag':'svg','attrs':{'xmlns':_0x175e1d(0x1b2),'fill':_0x175e1d(0x2ac),'viewBox':_0x175e1d(0x267),'width':_0x175e1d(0x42f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x175e1d(0x319),'attrs':{'stroke':_0x175e1d(0x3b6),'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':_0x175e1d(0x203),'strokeLinejoin':_0x175e1d(0x203),'strokeWidth':1.2}}]},{'tag':_0x175e1d(0x47e),'attrs':{},'children':[{'tag':_0x175e1d(0x209),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x175e1d(0x319),'attrs':{'fill':_0x175e1d(0x266),'d':'M0\x200H16V16H0z','transform':_0x175e1d(0x250)}}]}]}],'defIds':[_0x175e1d(0x298)]},_0x3bb4d5=_0x4d382b[_0x175e1d(0x406)](function(_0x4b6265,_0xb5e3d7){const _0x57c81e=_0x175e1d;return _0x4d382b[_0x57c81e(0x30f)](_0x1d0385,Object[_0x57c81e(0x394)]({},_0x4b6265,{'id':_0x57c81e(0x2d5),'ref':_0xb5e3d7,'icon':_0x2b8cbf}));});_0x3bb4d5['displayName']=_0x175e1d(0x1b7);function _0xead539(_0x26c86d){const _0x24d798=_0x175e1d;switch(_0x26c86d){case _0xd5bbf8[_0x24d798(0x34c)]['OFFLINE']:return'collabStatus.offline';case _0xd5bbf8[_0x24d798(0x34c)][_0x24d798(0x3e8)]:return _0x24d798(0x43a);case _0xd5bbf8[_0x24d798(0x34c)][_0x24d798(0x3b3)]:return'collabStatus.fetchMiss';case _0xd5bbf8[_0x24d798(0x34c)][_0x24d798(0x435)]:return _0x24d798(0x32a);case _0xd5bbf8[_0x24d798(0x34c)]['AWAITING']:case _0xd5bbf8[_0x24d798(0x34c)]['AWAITING_WITH_PENDING']:return _0x24d798(0x429);case _0xd5bbf8[_0x24d798(0x34c)][_0x24d798(0x39e)]:case _0xd5bbf8[_0x24d798(0x34c)][_0x24d798(0x2f6)]:return _0x24d798(0x407);}}function _0x330da9(_0x5ec394){const _0x1c2287=_0x175e1d,{status$:_0x5f4f9e}=_0x5ec394,_0x1cd990=_0x2695dd['useObservable'](_0x5f4f9e,_0xd5bbf8[_0x1c2287(0x34c)][_0x1c2287(0x435)]),_0x1a2e94=_0x2695dd['useDependency'](_0x187eaa[_0x1c2287(0x1de)]),_0x4cc849=_0x2695dd[_0x1c2287(0x425)](_0xd5bbf8[_0x1c2287(0x227)]),_0x1fdc82=_0x1cd990!==_0xd5bbf8[_0x1c2287(0x34c)][_0x1c2287(0x35b)],_0x19370f=_0x1a2e94['t'](_0xead539(_0x1cd990)),_0x42003b=_0x1fdc82?_0x362dc6[_0x1c2287(0x22d)](_0x3bb4d5,{}):_0x362dc6[_0x1c2287(0x22d)](_0x532acb,{}),_0x1c7b64=_0x4d382b[_0x1c2287(0x1d1)](()=>{const _0x16df58=_0x1c2287;_0x1fdc82||_0x4cc849[_0x16df58(0x25a)]();},[_0x1fdc82,_0x4cc849]);function _0x5d06e8(){const _0x4effd1=_0x1c2287;return _0x362dc6[_0x4effd1(0x46a)](_0x4effd1(0x474),{'className':_0x4effd1(0x3f1),'onClick':_0x1c7b64,'children':[_0x362dc6[_0x4effd1(0x22d)](_0x4effd1(0x474),{'className':_0x3b181['clsx'](_0x4effd1(0x3e4),{'univer-text-green-500':_0x1fdc82,'univer-text-red-500':!_0x1fdc82}),'children':_0x42003b}),_0x362dc6[_0x4effd1(0x22d)](_0x4effd1(0x474),{'className':_0x4effd1(0x259),'children':_0x19370f})]});}return _0x1fdc82?_0x5d06e8():_0x362dc6[_0x1c2287(0x22d)](_0x3b181[_0x1c2287(0x265)],{'title':_0x1a2e94['t'](_0x1c2287(0x468)),'children':_0x5d06e8()});}var _0x44b9a7=Object['getOwnPropertyDescriptor'],_0x2a0f41=(_0x3186a9,_0x316ec1,_0x4db253,_0xe928bd)=>{const _0x2fbc9a=_0x175e1d;for(var _0x11de14=_0xe928bd>0x1?void 0x0:_0xe928bd?_0x44b9a7(_0x316ec1,_0x4db253):_0x316ec1,_0x1e3b79=_0x3186a9[_0x2fbc9a(0x2d7)]-0x1,_0x30cb0b;_0x1e3b79>=0x0;_0x1e3b79--)(_0x30cb0b=_0x3186a9[_0x1e3b79])&&(_0x11de14=_0x30cb0b(_0x11de14)||_0x11de14);return _0x11de14;},_0x5b9981=(_0x1e7c0f,_0x501b62)=>(_0x58b01e,_0x2df423)=>_0x501b62(_0x58b01e,_0x2df423,_0x1e7c0f);_0x5401e2[_0x175e1d(0x296)]=class extends _0x187eaa[_0x175e1d(0x32b)]{constructor(_0x372153,_0x24bdf5,_0x16d4ff,_0xb6e6fa){const _0x425e38=_0x175e1d;super(),_0x3d2368(this,_0x425e38(0x40f),new _0x12c3e7[(_0x425e38(0x35a))](_0xd5bbf8[_0x425e38(0x34c)][_0x425e38(0x435)])),(this[_0x425e38(0x286)]=_0x372153,this[_0x425e38(0x1c8)]=_0x24bdf5,this[_0x425e38(0x46c)]=_0x16d4ff,this[_0x425e38(0x312)]=_0xb6e6fa,this[_0x425e38(0x362)](),this[_0x425e38(0x41c)]());}[_0x175e1d(0x41c)](){const _0x590b34=_0x175e1d;this['disposeWithMe'](this[_0x590b34(0x286)][_0x590b34(0x240)][_0x590b34(0x273)](_0x12c3e7[_0x590b34(0x1e9)](()=>{const _0x553a1a=_0x590b34,_0x239b03=this['_univerInstanceService'][_0x553a1a(0x249)]();return _0x239b03?this[_0x553a1a(0x46c)][_0x553a1a(0x2f3)](_0x239b03['getUnitId']()):_0x12c3e7['of'](null);}),_0x12c3e7[_0x590b34(0x1e9)](_0x301d29=>_0x301d29?_0x301d29[_0x590b34(0x306)]:_0x12c3e7['of'](_0xd5bbf8[_0x590b34(0x34c)][_0x590b34(0x435)])))[_0x590b34(0x405)](_0x828e9=>{const _0x3397a7=_0x590b34;this['_status$'][_0x3397a7(0x1c9)](_0x828e9);}));}[_0x175e1d(0x362)](){const _0xaf237c=_0x175e1d;this[_0xaf237c(0x307)](this['_uiPartsService'][_0xaf237c(0x39a)](_0x2695dd[_0xaf237c(0x3d6)][_0xaf237c(0x26d)],()=>_0x2695dd[_0xaf237c(0x29c)](_0x574c3b({'status$':this[_0xaf237c(0x40f)][_0xaf237c(0x2e3)]()}),this[_0xaf237c(0x1c8)])));}},_0x5401e2['DesktopCollaborationStatusDisplayController']=_0x2a0f41([_0x5b9981(0x0,_0x187eaa[_0x175e1d(0x359)]),_0x5b9981(0x1,_0x187eaa['Inject'](_0x187eaa[_0x175e1d(0x349)])),_0x5b9981(0x2,_0x187eaa['Inject'](_0xd5bbf8['CollaborationController'])),_0x5b9981(0x3,_0x2695dd[_0x175e1d(0x385)])],_0x5401e2[_0x175e1d(0x296)]);function _0x574c3b(_0x2f5f08){const {status$:_0x263836}=_0x2f5f08;return function(){return _0x362dc6['jsx'](_0x330da9,{'status$':_0x263836});};}const _0x5a3963=_0x187eaa[_0x175e1d(0x23d)](_0x175e1d(0x30c));var _0x5ca614=Object[_0x175e1d(0x302)],_0x27fcd6=(_0x4a901e,_0x57dc41,_0xe6e983,_0x1a42bf)=>{const _0x2662c7=_0x175e1d;for(var _0x4ce425=_0x1a42bf>0x1?void 0x0:_0x1a42bf?_0x5ca614(_0x57dc41,_0xe6e983):_0x57dc41,_0x70794=_0x4a901e[_0x2662c7(0x2d7)]-0x1,_0x5795b0;_0x70794>=0x0;_0x70794--)(_0x5795b0=_0x4a901e[_0x70794])&&(_0x4ce425=_0x5795b0(_0x4ce425)||_0x4ce425);return _0x4ce425;},_0x4b57e4=(_0x273b3c,_0x307b1f)=>(_0x50a08d,_0x5143a2)=>_0x307b1f(_0x50a08d,_0x5143a2,_0x273b3c);_0x5401e2[_0x175e1d(0x433)]=class extends _0x187eaa[_0x175e1d(0x387)]{constructor(_0x5c91dd,_0x203c3a,_0x52d82c,_0x40d3f2,_0x248cb9){const _0x43c37e=_0x175e1d;super(),this['_urlService']=_0x5c91dd,this['_logService']=_0x203c3a,this[_0x43c37e(0x20b)]=_0x52d82c,this[_0x43c37e(0x24e)]=_0x40d3f2,_0x248cb9?_0x248cb9==null||_0x248cb9[_0x43c37e(0x323)]()[_0x43c37e(0x1e4)](()=>this['_init']()):(this[_0x43c37e(0x409)]['debug'](_0x43c37e(0x1ac),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x175e1d(0x1b9)](){const _0x522ae7=_0x175e1d,_0x6e8cf8=this[_0x522ae7(0x463)][_0x522ae7(0x1dd)](_0x522ae7(0x38b)),_0x24fc48=this['_urlService'][_0x522ae7(0x1dd)](_0x522ae7(0x3f4)),_0x334b0a=this[_0x522ae7(0x463)][_0x522ae7(0x1dd)](_0x522ae7(0x360));if(!_0x6e8cf8||!_0x24fc48){this[_0x522ae7(0x409)]['debug'](_0x522ae7(0x1ac),_0x522ae7(0x27b));return;}const _0x43bd9d=await this['_dataLoaderService']['loadUnit'](_0x6e8cf8,Number(_0x24fc48),_0x334b0a);_0x43bd9d&&_0x43bd9d instanceof _0x187eaa['Workbook']&&this['_setupSubUnitSync'](_0x43bd9d);}async[_0x175e1d(0x1d5)](_0x172db4){const _0x32f6bf=_0x175e1d;await this['_updateSubUnitFromURLParams'](_0x172db4),_0x172db4['activeSheet$'][_0x32f6bf(0x273)](_0x12c3e7[_0x32f6bf(0x2b7)](this[_0x32f6bf(0x264)]))['subscribe'](_0x2196ad=>{const _0x5bf060=_0x32f6bf;_0x2196ad&&this[_0x5bf060(0x234)](_0x2196ad);}),this[_0x32f6bf(0x463)][_0x32f6bf(0x1b4)]['pipe'](_0x12c3e7[_0x32f6bf(0x2b7)](this[_0x32f6bf(0x264)]))[_0x32f6bf(0x405)](()=>this[_0x32f6bf(0x3e2)](_0x172db4));}[_0x175e1d(0x234)](_0x14a439,_0x2be06=!0x1){const _0x1ba50b=_0x175e1d,_0x4ada70=this[_0x1ba50b(0x463)][_0x1ba50b(0x1dd)](_0x1ba50b(0x360));_0x14a439['getSheetId']()!==_0x4ada70&&this[_0x1ba50b(0x463)]['setParam'](_0x1ba50b(0x360),_0x14a439['getSheetId'](),_0x2be06);}async[_0x175e1d(0x3e2)](_0x4531fe){const _0x344955=_0x175e1d;var _0x3f7382;const _0x292652=this[_0x344955(0x463)][_0x344955(0x1dd)](_0x344955(0x360));if(!_0x292652||!_0x4531fe[_0x344955(0x381)](_0x292652)){const _0x88c8a1=_0x4531fe[_0x344955(0x2ab)]()[0x0],_0x259b95=_0x4531fe[_0x344955(0x381)](_0x88c8a1);if(!_0x259b95)return;this[_0x344955(0x234)](_0x259b95,!0x0),await this[_0x344955(0x20b)][_0x344955(0x2e1)](_0x183de5[_0x344955(0x1c5)]['id'],{'unitId':_0x4531fe[_0x344955(0x3b5)](),'subUnitId':_0x88c8a1});return;}((_0x3f7382=_0x4531fe['getActiveSheet']())==null?void 0x0:_0x3f7382['getSheetId']())!==_0x292652&&await this[_0x344955(0x20b)][_0x344955(0x2e1)](_0x183de5[_0x344955(0x1c5)]['id'],{'unitId':_0x4531fe[_0x344955(0x3b5)](),'subUnitId':_0x292652});}},_0x5401e2[_0x175e1d(0x433)]=_0x27fcd6([_0x4b57e4(0x0,_0x5a3963),_0x4b57e4(0x1,_0x187eaa[_0x175e1d(0x205)]),_0x4b57e4(0x2,_0x187eaa['ICommandService']),_0x4b57e4(0x3,_0x187eaa[_0x175e1d(0x374)](_0xd5bbf8[_0x175e1d(0x2eb)])),_0x4b57e4(0x4,_0x187eaa[_0x175e1d(0x479)](_0x34ba01[_0x175e1d(0x34b)]))],_0x5401e2['CollaborationDataLoaderController']);var _0x24265d=Object[_0x175e1d(0x302)],_0x40c550=(_0x35c104,_0x2fa3d7,_0x5e3741,_0x3b1e34)=>{for(var _0x593621=_0x3b1e34>0x1?void 0x0:_0x3b1e34?_0x24265d(_0x2fa3d7,_0x5e3741):_0x2fa3d7,_0x2f9369=_0x35c104['length']-0x1,_0x2de842;_0x2f9369>=0x0;_0x2f9369--)(_0x2de842=_0x35c104[_0x2f9369])&&(_0x593621=_0x2de842(_0x593621)||_0x593621);return _0x593621;},_0x1de22e=(_0x1b237f,_0x135758)=>(_0x16ff12,_0x552fbc)=>_0x135758(_0x16ff12,_0x552fbc,_0x1b237f);let _0x3c9a3d=class extends _0x187eaa[_0x175e1d(0x387)]{constructor(_0x39ef4b,_0x534f95){const _0x363c19=_0x175e1d;super(),this[_0x363c19(0x354)]=_0x39ef4b,this[_0x363c19(0x391)]=_0x534f95,this[_0x363c19(0x1b9)]();}[_0x175e1d(0x1b9)](){const _0x52e636=_0x175e1d,_0x44a80d=this;this[_0x52e636(0x307)](this[_0x52e636(0x354)]['addClipboardHook']({'onBeforePasteImage':async _0x19421b=>{const _0x1fe833=_0x52e636,_0xa16aad=await _0x44a80d[_0x1fe833(0x391)][_0x1fe833(0x379)](_0x19421b);return _0xa16aad?{'source':_0xa16aad[_0x1fe833(0x2fe)],'imageSourceType':_0xa16aad[_0x1fe833(0x305)]}:null;}}));}};_0x3c9a3d=_0x40c550([_0x1de22e(0x0,_0x4019f2[_0x175e1d(0x251)]),_0x1de22e(0x1,_0xd84d03[_0x175e1d(0x35f)])],_0x3c9a3d);const _0x508bea=[_0x175e1d(0x39b),_0x175e1d(0x478),_0x175e1d(0x44a),_0x175e1d(0x343),_0x175e1d(0x3af),_0x175e1d(0x342)];class _0x25c1b1 extends _0x187eaa[_0x175e1d(0x32b)]{constructor(){const _0x1c25ce=_0x175e1d;super(...arguments),_0x3d2368(this,_0x1c25ce(0x350),new Map()),_0x3d2368(this,_0x1c25ce(0x2a1),0x0);}[_0x175e1d(0x2b5)](_0xcfe5c6){const _0x24f5b7=_0x175e1d;if(this[_0x24f5b7(0x350)][_0x24f5b7(0x2f5)](_0xcfe5c6))return this[_0x24f5b7(0x350)][_0x24f5b7(0x37b)](_0xcfe5c6);const _0x1c5550=_0x508bea[this[_0x24f5b7(0x2a1)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x508bea['length'],this[_0x24f5b7(0x350)][_0x24f5b7(0x2ef)](_0xcfe5c6,_0x1c5550),_0x1c5550;}}function _0x2973f7(_0x19b1bb){const _0x1464c2=_0x175e1d;let _0x576f1c='';for(const _0x19a544 of _0x19b1bb){const {startOffset:_0x3c509e,endOffset:_0xa06047,isActive:_0x13f492,rangeType:_0x44413e,segmentId:_0x4b7a4d,segmentPage:_0x55cab4}=_0x19a544;_0x576f1c[_0x1464c2(0x2d7)]&&(_0x576f1c+=','),_0x576f1c+=_0x3c509e+':'+_0xa06047+':'+(_0x13f492?'1':'0')+':'+_0x44413e+':'+_0x4b7a4d+':'+_0x55cab4;}return _0x576f1c;}function _0x146fd0(_0x547bc2){const _0x374972=_0x175e1d,_0x2e14bc=_0x547bc2[_0x374972(0x23f)](','),_0x1653ca=[];for(const _0x5e4781 of _0x2e14bc){const [_0xc9ddd4,_0x2a7f23,_0x5951c9,_0x5c4c09,_0x34031c,_0x1d90d6]=_0x5e4781[_0x374972(0x23f)](':');_0x1653ca[_0x374972(0x1da)]({'startOffset':Number(_0xc9ddd4),'endOffset':Number(_0x2a7f23),'collapsed':_0xc9ddd4===_0x2a7f23,'isActive':_0x5951c9==='1','rangeType':_0x5c4c09===_0x187eaa[_0x374972(0x1aa)][_0x374972(0x2b4)]?_0x187eaa['DOC_RANGE_TYPE']['TEXT']:_0x187eaa['DOC_RANGE_TYPE'][_0x374972(0x318)],'segmentId':typeof _0x34031c==_0x374972(0x29e)?String(_0x34031c):'','segmentPage':Number(_0x1d90d6!=null?_0x1d90d6:-0x1)});}return _0x1653ca['some'](_0x4c7fee=>_0x4c7fee[_0x374972(0x261)])||(_0x1653ca[0x0][_0x374972(0x261)]=!0x0),_0x1653ca;}class _0x18bae6 extends _0x187eaa[_0x175e1d(0x387)]{constructor(){const _0x404824=_0x175e1d;super(...arguments),_0x3d2368(this,'_collabCursorState$',new _0x12c3e7[(_0x404824(0x35a))](null)),_0x3d2368(this,_0x404824(0x453),this[_0x404824(0x3e3)][_0x404824(0x2e3)]());}[_0x175e1d(0x21e)](_0x219f1b){const {unitID:_0x1b9f9d,memberID:_0x3d36fb,textRanges:_0xbab7f5}=_0x219f1b,_0x31040d=_0x2973f7(_0xbab7f5);if(_0x31040d==='')return;const _0x4577fa={'unitID':_0x1b9f9d,'memberID':_0x3d36fb,'selection':_0x31040d};this['_collabCursorState$']['next'](_0x4577fa);}}var _0x12ce78=Object[_0x175e1d(0x302)],_0x2b20a1=(_0x478f31,_0x2b085d,_0x2e793e,_0x7d1611)=>{const _0x57ff2e=_0x175e1d;for(var _0x179f8a=_0x7d1611>0x1?void 0x0:_0x7d1611?_0x12ce78(_0x2b085d,_0x2e793e):_0x2b085d,_0x265250=_0x478f31[_0x57ff2e(0x2d7)]-0x1,_0x5dfb5f;_0x265250>=0x0;_0x265250--)(_0x5dfb5f=_0x478f31[_0x265250])&&(_0x179f8a=_0x5dfb5f(_0x179f8a)||_0x179f8a);return _0x179f8a;},_0x10380a=(_0xf37e7d,_0x3a4d72)=>(_0x2df867,_0x16e790)=>_0x3a4d72(_0x2df867,_0x16e790,_0xf37e7d);const _0x5666c0=0x12c,_0x5d1f6d=0x64;let _0x4d9eea=class extends _0x187eaa[_0x175e1d(0x387)]{constructor(_0x2eb422,_0x267591,_0x1fa176,_0x40179d,_0x4924a2,_0x9c870a,_0x54322c,_0x5e61d5,_0x5b0760){const _0x38c3c7=_0x175e1d;super(),_0x3d2368(this,_0x38c3c7(0x2e4),!0x1),_0x3d2368(this,_0x38c3c7(0x1b9),!0x1),_0x3d2368(this,_0x38c3c7(0x2ad),new _0x12c3e7['BehaviorSubject'](new Map())),_0x3d2368(this,'cursorInfo$',this[_0x38c3c7(0x2ad)][_0x38c3c7(0x2e3)]()),_0x3d2368(this,_0x38c3c7(0x21b),new _0x12c3e7[(_0x38c3c7(0x35a))]([])),_0x3d2368(this,_0x38c3c7(0x3a8),this[_0x38c3c7(0x21b)][_0x38c3c7(0x273)](_0x12c3e7[_0x38c3c7(0x2f9)](_0x5666c0))),_0x3d2368(this,_0x38c3c7(0x469),_0x187eaa['debounce'](_0x39c4d0=>{const _0x3cc555=_0x38c3c7,_0x3353b8={'eventID':_0x5cbc46[_0x3cc555(0x274)][_0x3cc555(0x1e0)],'data':{'unitID':this[_0x3cc555(0x345)],'memberID':this[_0x3cc555(0x1f7)][_0x3cc555(0x329)](),'selection':_0x2973f7(_0x39c4d0)}};this[_0x3cc555(0x1f7)]['send'](_0x3353b8,this['unitID']);},_0x5d1f6d)),(this[_0x38c3c7(0x345)]=_0x2eb422,this[_0x38c3c7(0x1f7)]=_0x267591,this[_0x38c3c7(0x1c8)]=_0x1fa176,this[_0x38c3c7(0x288)]=_0x40179d,this['_memberService']=_0x4924a2,this[_0x38c3c7(0x2e0)]=_0x9c870a,this['_transformService']=_0x54322c,this[_0x38c3c7(0x286)]=_0x5e61d5,this[_0x38c3c7(0x20b)]=_0x5b0760);}get['cursorInfo'](){const _0x4cbc7c=_0x175e1d;return this[_0x4cbc7c(0x2ad)][_0x4cbc7c(0x2e8)]();}get[_0x175e1d(0x235)](){const _0x2f8cc3=_0x175e1d;return this[_0x2f8cc3(0x21b)]['getValue']();}[_0x175e1d(0x279)](){const _0x2a339b=_0x175e1d;super[_0x2a339b(0x279)](),this[_0x2a339b(0x2ad)][_0x2a339b(0x1c9)](new Map()),this['_cursorInfo$']['complete'](),this[_0x2a339b(0x21b)][_0x2a339b(0x1c9)]([]),this[_0x2a339b(0x21b)][_0x2a339b(0x3ce)]();}[_0x175e1d(0x23c)](){const _0x38bacd=_0x175e1d;this[_0x38bacd(0x1b9)]||(this[_0x38bacd(0x1b9)]=!0x0,this[_0x38bacd(0x1f7)][_0x38bacd(0x2c2)][_0x38bacd(0x273)](_0x12c3e7[_0x38bacd(0x2b7)](this[_0x38bacd(0x264)]))[_0x38bacd(0x405)](_0x11330b=>{const _0x153384=_0x38bacd;_0x11330b===_0xd5bbf8['SessionStatus'][_0x153384(0x3d4)]?this[_0x153384(0x3a2)]():this[_0x153384(0x39c)]();}),this[_0x38bacd(0x1f7)][_0x38bacd(0x36e)][_0x38bacd(0x273)](_0x12c3e7[_0x38bacd(0x2b7)](this[_0x38bacd(0x264)]))['subscribe'](_0x3eb5a5=>{const _0x281424=_0x38bacd,_0x166ff1=_0x3eb5a5[_0x281424(0x225)];_0x166ff1===_0x5cbc46[_0x281424(0x274)][_0x281424(0x1e0)]&&this['_onCursorUpdate'](_0x3eb5a5),_0x166ff1===_0x5cbc46[_0x281424(0x274)][_0x281424(0x3ec)]&&this[_0x281424(0x36c)](_0x3eb5a5);}),this[_0x38bacd(0x307)](this[_0x38bacd(0x20b)]['onCommandExecuted'](_0x67c34c=>{const _0x160195=_0x38bacd,_0x39f12e=_0x67c34c['params'];_0x39f12e!=null&&this[_0x160195(0x2e4)]&&_0x67c34c['id']===_0x4149e2[_0x160195(0x24c)]['id']&&_0x39f12e['unitId']===this[_0x160195(0x345)]&&_0x39f12e['isEditing']===!0x1&&_0x39f12e[_0x160195(0x430)][_0x160195(0x2d7)]>0x0&&this['_updateLocalCursor'](_0x39f12e[_0x160195(0x430)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x38bacd(0x273)](_0x12c3e7[_0x38bacd(0x2b7)](this[_0x38bacd(0x264)]))['subscribe'](_0x31209c=>{const _0xf3fc5=_0x38bacd;if((_0x31209c==null?void 0x0:_0x31209c[_0xf3fc5(0x345)])!==this[_0xf3fc5(0x345)])return;const _0x2a001b={'eventID':_0x5cbc46['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x31209c};this[_0xf3fc5(0x355)](_0x2a001b);}),this[_0x38bacd(0x307)](this[_0x38bacd(0x20b)]['onCommandExecuted'](_0x2c1c88=>{const _0x38e240=_0x38bacd;if(_0x2c1c88[_0x38e240(0x44d)]==null)return;const _0x3e12b0=_0x2c1c88['params'];if(_0x2c1c88['id']!==_0x4149e2['RichTextEditingMutation']['id']||_0x3e12b0[_0x38e240(0x38e)]!==this['unitID'])return;const _0x52a819={'id':_0x38e240(0x3e6),'params':_0x3e12b0},_0x3a21a9=this['cursorInfo'];for(const [_0x2d62ec,_0x19ccc3]of _0x3a21a9){const _0x139e62={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x38e240(0x345)],'actions':null,'textRanges':_0x19ccc3[_0x38e240(0x430)]}},_0x6b4584=this[_0x38e240(0x1b3)][_0x38e240(0x25d)](_0x52a819,_0x139e62,!0x1);if(_0x5cbc46[_0x38e240(0x34a)](_0x6b4584))throw _0x6b4584[_0x38e240(0x46d)];_0x3a21a9['set'](_0x2d62ec,{..._0x19ccc3,'ranges':_0x6b4584[_0x38e240(0x1ed)][_0x38e240(0x44d)][_0x38e240(0x44b)]});}queueMicrotask(()=>{const _0x18c8d1=_0x38e240;this[_0x18c8d1(0x2ad)][_0x18c8d1(0x1c9)](_0x3a21a9);});})));}[_0x175e1d(0x355)](_0x3ac9e6){const _0x57ce71=_0x175e1d;var _0x4f4565,_0x596e60;const {memberID:_0x4680b9,selection:_0x298d88}=_0x3ac9e6['data'],_0x1a5698=_0x146fd0(_0x298d88),_0x402daa=(_0x596e60=(_0x4f4565=this[_0x57ce71(0x1ff)]['getMember'](this['unitID'],_0x4680b9))==null?void 0x0:_0x4f4565[_0x57ce71(0x202)])!=null?_0x596e60:_0x57ce71(0x3c9),_0xd88ac0={'color':this[_0x57ce71(0x288)][_0x57ce71(0x2b5)](_0x4680b9),'name':_0x402daa,'ranges':_0x1a5698},_0x324205=this[_0x57ce71(0x333)];_0x324205[_0x57ce71(0x2ef)](_0x4680b9,_0xd88ac0),this[_0x57ce71(0x2ad)]['next'](_0x324205);}[_0x175e1d(0x36c)](_0x569b30){const _0x8ee917=_0x175e1d,{memberID:_0x1dc7e4}=_0x569b30[_0x8ee917(0x37a)],_0x1a18fc=this[_0x8ee917(0x333)];_0x1a18fc[_0x8ee917(0x2a2)](_0x1dc7e4),this[_0x8ee917(0x2ad)]['next'](_0x1a18fc);}['_toggleOnline'](){const _0x5cbdca=_0x175e1d;var _0x9e299c;if(this[_0x5cbdca(0x2e4)]=!0x0,((_0x9e299c=this[_0x5cbdca(0x286)][_0x5cbdca(0x249)]())==null?void 0x0:_0x9e299c[_0x5cbdca(0x3b5)]())!==this['unitID'])return;const _0x27e1af=this[_0x5cbdca(0x1c8)][_0x5cbdca(0x37b)](_0x4149e2[_0x5cbdca(0x2d3)])['getDocRanges']();Array[_0x5cbdca(0x471)](_0x27e1af)&&_0x27e1af[_0x5cbdca(0x2d7)]>0x0&&this[_0x5cbdca(0x469)](_0x27e1af);}[_0x175e1d(0x39c)](){const _0x28ffe3=_0x175e1d;this[_0x28ffe3(0x2e4)]=!0x1;}};_0x4d9eea=_0x2b20a1([_0x10380a(0x2,_0x187eaa[_0x175e1d(0x374)](_0x187eaa[_0x175e1d(0x349)])),_0x10380a(0x3,_0x187eaa[_0x175e1d(0x374)](_0x25c1b1)),_0x10380a(0x4,_0x187eaa[_0x175e1d(0x374)](_0xd5bbf8[_0x175e1d(0x442)])),_0x10380a(0x5,_0x187eaa['Inject'](_0x18bae6)),_0x10380a(0x6,_0x5cbc46[_0x175e1d(0x383)]),_0x10380a(0x7,_0x187eaa[_0x175e1d(0x359)]),_0x10380a(0x8,_0x187eaa[_0x175e1d(0x2fd)])],_0x4d9eea);var _0x3790f8=Object[_0x175e1d(0x302)],_0x2e7e3f=(_0x89713a,_0xec910e,_0x37a7e6,_0x1fbd79)=>{const _0xb7dd8a=_0x175e1d;for(var _0x2ea526=_0x1fbd79>0x1?void 0x0:_0x1fbd79?_0x3790f8(_0xec910e,_0x37a7e6):_0xec910e,_0x16d96a=_0x89713a[_0xb7dd8a(0x2d7)]-0x1,_0x5aaba6;_0x16d96a>=0x0;_0x16d96a--)(_0x5aaba6=_0x89713a[_0x16d96a])&&(_0x2ea526=_0x5aaba6(_0x2ea526)||_0x2ea526);return _0x2ea526;},_0xcc02b3=(_0x3bf45a,_0x479007)=>(_0x2ea7d1,_0x5703ec)=>_0x479007(_0x2ea7d1,_0x5703ec,_0x3bf45a);const _0x79274=0x12c,_0x146bdb=0x64,_0x48e595=()=>{let _0x28d68=[],_0x43cab8=!0x1;return _0x1e0ed2=>{_0x28d68['push'](_0x1e0ed2),_0x43cab8||(_0x43cab8=!0x0,setTimeout(()=>{const _0x2c8c3b=_0xd8ae;_0x28d68[_0x2c8c3b(0x1d4)](_0x407c4d=>_0x407c4d()),_0x28d68=[],_0x43cab8=!0x1;}));};};let _0x398910=class extends _0x187eaa['RxDisposable']{constructor(_0x33128a,_0x1b0928,_0xe6423b,_0x8ba86d,_0x3726ff,_0xe66b0,_0x301979,_0x6a95d1){const _0x2dc78e=_0x175e1d;super(),_0x3d2368(this,_0x2dc78e(0x2e4),!0x1),_0x3d2368(this,'_init',!0x1),_0x3d2368(this,_0x2dc78e(0x2ad),new _0x12c3e7[(_0x2dc78e(0x35a))](new Map())),_0x3d2368(this,_0x2dc78e(0x1c0),this[_0x2dc78e(0x2ad)][_0x2dc78e(0x2e3)]()),_0x3d2368(this,_0x2dc78e(0x21b),new _0x12c3e7[(_0x2dc78e(0x35a))]([])),_0x3d2368(this,_0x2dc78e(0x3a8),this['_roomMembers$'][_0x2dc78e(0x273)](_0x12c3e7[_0x2dc78e(0x2f9)](_0x79274))),_0x3d2368(this,'_updateLocalCursor',_0x187eaa[_0x2dc78e(0x452)]((_0xd19ccc,_0x292c35)=>{const _0x3c8ace=_0x2dc78e,_0x21132c={'eventID':_0x5cbc46['CollaborationEvent'][_0x3c8ace(0x1e0)],'data':{'unitID':this[_0x3c8ace(0x345)],'memberID':this[_0x3c8ace(0x1f7)][_0x3c8ace(0x329)](),'selection':_0x18796c['serializeRangeWithSheet'](_0xd19ccc,_0x292c35['range'])}};this['_session'][_0x3c8ace(0x324)](_0x21132c,this[_0x3c8ace(0x345)]);},_0x146bdb)),(this[_0x2dc78e(0x345)]=_0x33128a,this['_session']=_0x1b0928,this['_injector']=_0xe6423b,this[_0x2dc78e(0x288)]=_0x8ba86d,this[_0x2dc78e(0x1ff)]=_0x3726ff,this[_0x2dc78e(0x286)]=_0xe66b0,this[_0x2dc78e(0x20b)]=_0x301979,this['_refRangeService']=_0x6a95d1);}get[_0x175e1d(0x333)](){const _0x2de7a6=_0x175e1d;return this[_0x2de7a6(0x2ad)][_0x2de7a6(0x2e8)]();}get[_0x175e1d(0x235)](){const _0x38af1c=_0x175e1d;return this['_roomMembers$'][_0x38af1c(0x2e8)]();}[_0x175e1d(0x279)](){const _0x56c06b=_0x175e1d;super['dispose'](),this[_0x56c06b(0x2ad)][_0x56c06b(0x1c9)](new Map()),this['_cursorInfo$'][_0x56c06b(0x3ce)](),this[_0x56c06b(0x21b)][_0x56c06b(0x1c9)]([]),this[_0x56c06b(0x21b)][_0x56c06b(0x3ce)]();}[_0x175e1d(0x23c)](){const _0x5c9e46=_0x175e1d;this['_init']||(this[_0x5c9e46(0x1b9)]=!0x0,this[_0x5c9e46(0x1f7)][_0x5c9e46(0x2c2)]['pipe'](_0x12c3e7['takeUntil'](this[_0x5c9e46(0x264)]))[_0x5c9e46(0x405)](_0x46df28=>{const _0x544bfc=_0x5c9e46;_0x46df28===_0xd5bbf8[_0x544bfc(0x351)][_0x544bfc(0x3d4)]?this[_0x544bfc(0x3a2)]():this[_0x544bfc(0x39c)]();}),this[_0x5c9e46(0x1f7)][_0x5c9e46(0x36e)][_0x5c9e46(0x273)](_0x12c3e7['takeUntil'](this[_0x5c9e46(0x264)]))[_0x5c9e46(0x405)](_0x2896e5=>{const _0x8a72ef=_0x5c9e46,_0x48e8b9=_0x2896e5[_0x8a72ef(0x225)];_0x48e8b9===_0x5cbc46[_0x8a72ef(0x274)]['UPDATE_CURSOR']&&this[_0x8a72ef(0x355)](_0x2896e5),_0x48e8b9===_0x5cbc46[_0x8a72ef(0x274)]['USERS_LEAVE']&&this[_0x8a72ef(0x36c)](_0x2896e5);}),this[_0x5c9e46(0x3dd)](),this[_0x5c9e46(0x307)](this[_0x5c9e46(0x20b)][_0x5c9e46(0x38d)](_0x10ad85=>{const _0x270444=_0x5c9e46;if(this[_0x270444(0x2e4)]&&_0x10ad85['id']===_0x183de5[_0x270444(0x431)]['id']&&_0x10ad85['params']['unitId']===this[_0x270444(0x345)]){const _0x29a037=_0x10ad85['params'];this[_0x270444(0x469)](_0x29a037[_0x270444(0x1ba)],_0x29a037['selections'][0x0]);}})));}[_0x175e1d(0x355)](_0x86f4ee){const _0x271794=_0x175e1d;var _0x32d2c1,_0x334192;const {memberID:_0x17242a,selection:_0x48536d}=_0x86f4ee[_0x271794(0x37a)],{sheetName:_0x197d01,range:_0x26d234}=_0x18796c['deserializeRangeWithSheet'](_0x48536d),_0x27ac94={'name':(_0x334192=(_0x32d2c1=this[_0x271794(0x1ff)][_0x271794(0x45c)](this['unitID'],_0x17242a))==null?void 0x0:_0x32d2c1['name'])!=null?_0x334192:_0x271794(0x3c9),'range':this[_0x271794(0x378)](_0x197d01,_0x26d234),'sheetID':_0x197d01,'color':this[_0x271794(0x288)][_0x271794(0x2b5)](_0x17242a),'selection':_0x48536d},_0x4d4019=this['cursorInfo'];_0x4d4019[_0x271794(0x2ef)](_0x17242a,_0x27ac94),this['_cursorInfo$'][_0x271794(0x1c9)](_0x4d4019);}[_0x175e1d(0x36c)](_0x3a722b){const _0x2841f2=_0x175e1d,{memberID:_0x422948}=_0x3a722b[_0x2841f2(0x37a)],_0x302a5f=this[_0x2841f2(0x333)];_0x302a5f[_0x2841f2(0x2a2)](_0x422948),this[_0x2841f2(0x2ad)][_0x2841f2(0x1c9)](_0x302a5f);}['_getMergeRange'](_0x45df96,_0x198552){const _0x3bf783=_0x175e1d;var _0x631c02,_0x82e181;const _0x84b2d5=(_0x82e181=(_0x631c02=this[_0x3bf783(0x286)][_0x3bf783(0x3b0)](this['unitID']))==null?void 0x0:_0x631c02['getSheetBySheetId'](_0x45df96))==null?void 0x0:_0x82e181[_0x3bf783(0x272)]();return(_0x84b2d5==null?void 0x0:_0x84b2d5[_0x3bf783(0x1bf)](_0x5b75f3=>_0x187eaa[_0x3bf783(0x289)]['contains'](_0x5b75f3,_0x198552)))||_0x198552;}[_0x175e1d(0x3dd)](){const _0x13ef7c=_0x175e1d,_0x17847e=new _0x187eaa[(_0x13ef7c(0x2b9))](),_0x1591e8=_0x48e595(),_0x34566f=()=>{const _0x17a33b=_0x13ef7c;_0x17847e[_0x17a33b(0x279)]();const _0x324b7e=(_0x1b58ca,_0x13a798,_0x4f6343,_0x24170b)=>{const _0x1d172e=_0x17a33b;let _0x575a5a=[];switch(_0x1b58ca['id']){case _0x183de5['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x575a5a=_0x183de5['handleDeleteRangeMoveLeft'](_0x1b58ca,_0x24170b);break;}case _0x183de5[_0x1d172e(0x2d9)]['DeleteRangeMoveUpCommandId']:{_0x575a5a=_0x183de5['handleDeleteRangeMoveUp'](_0x1b58ca,_0x24170b);break;}case _0x183de5[_0x1d172e(0x2d9)][_0x1d172e(0x399)]:{_0x575a5a=_0x183de5[_0x1d172e(0x473)](_0x1b58ca,_0x24170b);break;}case _0x183de5[_0x1d172e(0x2d9)][_0x1d172e(0x233)]:{_0x575a5a=_0x183de5[_0x1d172e(0x31f)](_0x1b58ca,_0x24170b);break;}case _0x183de5[_0x1d172e(0x2d9)][_0x1d172e(0x1ea)]:{_0x575a5a=_0x183de5['handleInsertRangeMoveRight'](_0x1b58ca,_0x24170b);break;}case _0x183de5[_0x1d172e(0x2d9)][_0x1d172e(0x3e1)]:{_0x575a5a=_0x183de5['handleInsertRow'](_0x1b58ca,_0x24170b);break;}case _0x183de5[_0x1d172e(0x2d9)][_0x1d172e(0x462)]:{_0x575a5a=_0x183de5[_0x1d172e(0x22f)](_0x1b58ca,_0x24170b);break;}case _0x183de5[_0x1d172e(0x2d9)]['RemoveColCommandId']:{_0x575a5a=_0x183de5[_0x1d172e(0x32c)](_0x1b58ca,_0x24170b);break;}case _0x183de5[_0x1d172e(0x2d9)][_0x1d172e(0x22c)]:{_0x575a5a=_0x183de5['handleIRemoveRow'](_0x1b58ca,_0x24170b);break;}}const _0x2a3950=_0x183de5[_0x1d172e(0x1eb)](_0x575a5a,_0x24170b),_0x5039c3=this[_0x1d172e(0x333)]['get'](_0x13a798);if(_0x5039c3&&_0x2a3950){const _0xc532c8={..._0x5039c3,'range':_0x2a3950};this[_0x1d172e(0x333)]['set'](_0x13a798,_0xc532c8),_0x1591e8(()=>{const _0x2fc835=_0x1d172e,_0x18a7c6=this[_0x2fc835(0x3f3)]['registerRefRange'](_0x2a3950,_0x1f9064=>(_0x18a7c6[_0x2fc835(0x279)](),_0x324b7e(_0x1f9064,_0x13a798,_0x4f6343,_0x2a3950)));_0x17847e['add'](_0x18a7c6);});}return{'redos':[],'undos':[]};};this[_0x17a33b(0x333)][_0x17a33b(0x1d4)]((_0x2e7caf,_0xa2b343)=>{const _0x56a92e=_0x17a33b,{range:_0x31379a,sheetID:_0x5589a7}=_0x2e7caf,_0x464ad1=this[_0x56a92e(0x3f3)]['registerRefRange'](_0x31379a,_0x32b8b0=>(_0x464ad1[_0x56a92e(0x279)](),_0x324b7e(_0x32b8b0,_0xa2b343,_0x5589a7,_0x31379a)));_0x17847e[_0x56a92e(0x3e5)](_0x464ad1);});};this[_0x13ef7c(0x307)](_0x187eaa['toDisposable'](this[_0x13ef7c(0x2ad)][_0x13ef7c(0x405)](()=>{_0x34566f();})));}[_0x175e1d(0x3a2)](){const _0x35eee4=_0x175e1d;var _0x2df68e,_0xb3ec1b;if(this['_online']=!0x0,((_0x2df68e=this[_0x35eee4(0x286)][_0x35eee4(0x249)]())==null?void 0x0:_0x2df68e[_0x35eee4(0x3b5)]())!==this[_0x35eee4(0x345)])return;const _0x1960c3=(_0xb3ec1b=this[_0x35eee4(0x1c8)][_0x35eee4(0x37b)](_0x183de5[_0x35eee4(0x47c)])[_0x35eee4(0x3d8)]())==null?void 0x0:_0xb3ec1b[0x0],_0x118d0a=this[_0x35eee4(0x286)][_0x35eee4(0x1db)](_0x187eaa[_0x35eee4(0x23a)]['UNIVER_SHEET'])[_0x35eee4(0x25b)]();_0x1960c3&&_0x118d0a&&this[_0x35eee4(0x469)](_0x118d0a[_0x35eee4(0x344)](),_0x1960c3);}[_0x175e1d(0x39c)](){const _0x4480f6=_0x175e1d;this[_0x4480f6(0x2e4)]=!0x1;}};_0x398910=_0x2e7e3f([_0xcc02b3(0x2,_0x187eaa[_0x175e1d(0x374)](_0x187eaa[_0x175e1d(0x349)])),_0xcc02b3(0x3,_0x187eaa[_0x175e1d(0x374)](_0x25c1b1)),_0xcc02b3(0x4,_0x187eaa[_0x175e1d(0x374)](_0xd5bbf8[_0x175e1d(0x442)])),_0xcc02b3(0x5,_0x187eaa[_0x175e1d(0x359)]),_0xcc02b3(0x6,_0x187eaa[_0x175e1d(0x2fd)]),_0xcc02b3(0x7,_0x187eaa[_0x175e1d(0x374)](_0x183de5[_0x175e1d(0x401)]))],_0x398910);var _0x5527d3=Object['getOwnPropertyDescriptor'],_0x14cf20=(_0x56807e,_0x258c49,_0x49a90c,_0x49e58b)=>{const _0x1a15e4=_0x175e1d;for(var _0x3337f5=_0x49e58b>0x1?void 0x0:_0x49e58b?_0x5527d3(_0x258c49,_0x49a90c):_0x258c49,_0x3f0973=_0x56807e[_0x1a15e4(0x2d7)]-0x1,_0x222b3e;_0x3f0973>=0x0;_0x3f0973--)(_0x222b3e=_0x56807e[_0x3f0973])&&(_0x3337f5=_0x222b3e(_0x3337f5)||_0x3337f5);return _0x3337f5;},_0x5e108b=(_0x9205de,_0x5e0fff)=>(_0x47385e,_0x3f1da7)=>_0x5e0fff(_0x47385e,_0x3f1da7,_0x9205de);let _0x250edb=class extends _0x187eaa[_0x175e1d(0x387)]{constructor(_0x3aedd7,_0x22f7f5,_0x5a9e4f){const _0x4db6e3=_0x175e1d;super(),_0x3d2368(this,_0x4db6e3(0x1e7),new Map()),_0x3d2368(this,_0x4db6e3(0x2b0),new _0x12c3e7[(_0x4db6e3(0x1f5))]()),(this[_0x4db6e3(0x286)]=_0x3aedd7,this[_0x4db6e3(0x1c8)]=_0x22f7f5,this['_collabSessionService']=_0x5a9e4f,this['_init']());}[_0x175e1d(0x279)](){const _0x48123b=_0x175e1d;super[_0x48123b(0x279)](),this[_0x48123b(0x2b0)][_0x48123b(0x3ce)](),this[_0x48123b(0x1e7)]['forEach'](_0x26769d=>_0x26769d['dispose']());}['getCollabCursors$'](_0x55054e){const _0xf85715=_0x175e1d;return this['_entities'][_0xf85715(0x2f5)](_0x55054e)?this[_0xf85715(0x1e7)][_0xf85715(0x37b)](_0x55054e)[_0xf85715(0x1c0)]:this[_0xf85715(0x2b0)][_0xf85715(0x273)](_0x12c3e7[_0xf85715(0x24b)](_0x2e32c4=>_0x2e32c4[_0xf85715(0x345)]===_0x55054e),_0x12c3e7[_0xf85715(0x1e9)](_0x46442a=>_0x46442a[_0xf85715(0x1c0)]));}[_0x175e1d(0x1b9)](){const _0xc0587d=_0x175e1d;this[_0xc0587d(0x286)][_0xc0587d(0x42e)](_0x187eaa[_0xc0587d(0x23a)][_0xc0587d(0x1be)])[_0xc0587d(0x273)](_0x12c3e7[_0xc0587d(0x2b7)](this[_0xc0587d(0x264)]))[_0xc0587d(0x405)](async _0x1c27d5=>{const _0x5c1b9d=_0xc0587d,_0xa653d5=_0x1c27d5['getUnitId'](),_0x45ed6d=await this['_startSheetCollabCursor'](_0xa653d5);this[_0x5c1b9d(0x2b0)]['next'](_0x45ed6d),this[_0x5c1b9d(0x1e7)][_0x5c1b9d(0x2ef)](_0xa653d5,_0x45ed6d);}),this[_0xc0587d(0x286)][_0xc0587d(0x42e)](_0x187eaa[_0xc0587d(0x23a)][_0xc0587d(0x20c)])[_0xc0587d(0x273)](_0x12c3e7[_0xc0587d(0x2b7)](this[_0xc0587d(0x264)]))[_0xc0587d(0x273)](_0x12c3e7[_0xc0587d(0x24b)](_0x4ff53d=>!_0x4ff53d[_0xc0587d(0x3b5)]()[_0xc0587d(0x3ad)]('__')))['subscribe'](async _0x5503a4=>{const _0x5cd555=_0xc0587d,_0x3f89a8=_0x5503a4['getUnitId'](),_0x3df108=await this[_0x5cd555(0x437)](_0x3f89a8);this[_0x5cd555(0x2b0)][_0x5cd555(0x1c9)](_0x3df108),this['_entities'][_0x5cd555(0x2ef)](_0x3f89a8,_0x3df108);}),_0x12c3e7[_0xc0587d(0x313)](this[_0xc0587d(0x286)][_0xc0587d(0x3ff)](_0x187eaa['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0xc0587d(0x3ff)](_0x187eaa['UniverInstanceType'][_0xc0587d(0x1be)]))[_0xc0587d(0x273)](_0x12c3e7['takeUntil'](this[_0xc0587d(0x264)]))[_0xc0587d(0x405)](_0x41a7d7=>{const _0x200943=_0xc0587d,_0x36b2f0=_0x41a7d7[_0x200943(0x3b5)](),_0x5cfd2e=this['_entities'][_0x200943(0x37b)](_0x36b2f0);_0x5cfd2e&&(_0x5cfd2e[_0x200943(0x279)](),this[_0x200943(0x1e7)]['delete'](_0x36b2f0));});}async['_startSheetCollabCursor'](_0x2b9bba){const _0x5c5ff1=_0x175e1d,_0x4ffb54=await this[_0x5c5ff1(0x36a)][_0x5c5ff1(0x3d2)](_0x2b9bba),_0x31520c=this['_injector']['createInstance'](_0x398910,_0x2b9bba,_0x4ffb54);return _0x31520c[_0x5c5ff1(0x23c)](),_0x31520c;}async['_startDocCollabCursor'](_0x6e94c4){const _0x39dd4a=_0x175e1d,_0x4c6dae=await this[_0x39dd4a(0x36a)]['requireSession'](_0x6e94c4),_0x5786eb=this[_0x39dd4a(0x1c8)]['createInstance'](_0x4d9eea,_0x6e94c4,_0x4c6dae);return _0x5786eb['init'](),_0x5786eb;}};_0x250edb=_0x14cf20([_0x5e108b(0x0,_0x187eaa[_0x175e1d(0x359)]),_0x5e108b(0x1,_0x187eaa[_0x175e1d(0x374)](_0x187eaa[_0x175e1d(0x349)])),_0x5e108b(0x2,_0x187eaa['Inject'](_0xd5bbf8[_0x175e1d(0x227)]))],_0x250edb);const _0x465b4b=0x14,_0x415d9d=0xc8,_0x25920f=0x4,_0x237558=0x5;function _0x2ed65f(_0x25cbbd,_0x549fa2){const _0x521691=_0x175e1d;let {radius:_0x1ce5f7,width:_0x520cae,height:_0x2b6b41}=_0x549fa2;_0x1ce5f7=_0x1ce5f7!=null?_0x1ce5f7:0x0,_0x520cae=_0x520cae!=null?_0x520cae:0x1e,_0x2b6b41=_0x2b6b41!=null?_0x2b6b41:0x1e;let _0x43098=0x0,_0x525455=0x0,_0x300950=0x0;_0x43098=_0x525455=_0x300950=Math[_0x521691(0x3de)](_0x1ce5f7,_0x520cae/0x2,_0x2b6b41/0x2),_0x25cbbd['beginPath'](),_0x25cbbd[_0x521691(0x260)](_0x43098,0x0),_0x25cbbd['lineTo'](_0x520cae-_0x525455,0x0),_0x25cbbd[_0x521691(0x38f)](_0x520cae-_0x525455,_0x525455,_0x525455,Math['PI']*0x3/0x2,0x0,!0x1),_0x25cbbd[_0x521691(0x3c6)](_0x520cae,_0x2b6b41-_0x300950),_0x25cbbd[_0x521691(0x38f)](_0x520cae-_0x300950,_0x2b6b41-_0x300950,_0x300950,0x0,Math['PI']/0x2,!0x1),_0x25cbbd[_0x521691(0x3c6)](0x0,_0x2b6b41),_0x25cbbd[_0x521691(0x3c6)](0x0,_0x43098),_0x25cbbd[_0x521691(0x38f)](_0x43098,_0x43098,_0x43098,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x25cbbd['closePath'](),_0x549fa2['fill']&&(_0x25cbbd[_0x521691(0x3da)](),_0x25cbbd[_0x521691(0x1c4)]=_0x549fa2[_0x521691(0x3c2)],_0x549fa2[_0x521691(0x1cf)]===_0x521691(0x1ae)?_0x25cbbd[_0x521691(0x3c2)](_0x521691(0x1ae)):_0x25cbbd[_0x521691(0x3c2)](),_0x25cbbd[_0x521691(0x461)]());}class _0xf3893a extends _0x34e554[_0x175e1d(0x36d)]{constructor(_0x33fc87,_0x240496){const _0x5a70ad=_0x175e1d;super(_0x33fc87,_0x240496),_0x3d2368(this,_0x5a70ad(0x20a)),_0x3d2368(this,_0x5a70ad(0x2e6)),(this['color']=_0x240496==null?void 0x0:_0x240496[_0x5a70ad(0x20a)],this[_0x5a70ad(0x2e6)]=_0x240496==null?void 0x0:_0x240496['text']);}static[_0x175e1d(0x1c1)](_0x244060,_0x54c48f){const _0x5b5f8c=_0x175e1d,{text:_0x4a69d8,color:_0x1aa7c0}=_0x54c48f;_0x244060[_0x5b5f8c(0x3da)](),_0x244060[_0x5b5f8c(0x295)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x3589be=_0x244060[_0x5b5f8c(0x1b6)](_0x4a69d8)['width'],_0x46fdde=Math['min'](_0x3589be+0x2*_0x25920f,_0x415d9d);_0x2ed65f(_0x244060,{'height':_0x465b4b,'radius':0x4,'width':_0x46fdde,'fill':_0x1aa7c0}),_0x244060['fillStyle']=_0x5b5f8c(0x3e0);const _0xb9b529=_0x25920f,_0x85628d=_0x465b4b-_0x237558,_0x6ea185=_0x415d9d-0x2*_0x25920f;if(_0x3589be>_0x6ea185){let _0xaeebaa='',_0x10cb7f=0x0;for(const _0x5001be of _0x4a69d8){const _0xb0ca36=_0x244060[_0x5b5f8c(0x1b6)](_0x5001be)[_0x5b5f8c(0x1ee)];if(_0x10cb7f+_0xb0ca36<=_0x6ea185-_0x244060[_0x5b5f8c(0x1b6)](_0x5b5f8c(0x36f))[_0x5b5f8c(0x1ee)])_0xaeebaa+=_0x5001be,_0x10cb7f+=_0xb0ca36;else{_0xaeebaa+='...';break;}}_0x244060[_0x5b5f8c(0x476)](_0xaeebaa,_0xb9b529,_0x85628d);}else _0x244060[_0x5b5f8c(0x476)](_0x4a69d8,_0xb9b529,_0x85628d);_0x244060[_0x5b5f8c(0x461)]();}[_0x175e1d(0x392)](_0xadec81){const _0x4fb03e=_0x175e1d;_0xf3893a[_0x4fb03e(0x1c1)](_0xadec81,this);}}const _0x1f915c='collab-text-anchor-',_0xb71169=_0x175e1d(0x201),_0x2b4246=_0x175e1d(0x3c5),_0x48d96c=0x6,_0x3b70f0=1.5,_0x3be362=0x4,_0x221b83=1.5,_0x565734=_0x175e1d(0x3ed);class _0x5e46c8{constructor(_0x3c5f06,_0x76f07a,_0x929968,_0x2a1ba8){const _0x42d8f7=_0x175e1d;_0x3d2368(this,_0x42d8f7(0x44f),[]),_0x3d2368(this,_0x42d8f7(0x284),null),_0x3d2368(this,_0x42d8f7(0x33c),null),_0x3d2368(this,'_anchorDot',null),_0x3d2368(this,_0x42d8f7(0x2c0),null),_0x3d2368(this,'_eventUnsubscribe',null),(this[_0x42d8f7(0x2f1)]=_0x3c5f06,this[_0x42d8f7(0x222)]=_0x76f07a,this[_0x42d8f7(0x1bd)]=_0x929968,this[_0x42d8f7(0x2cd)]=_0x2a1ba8,this[_0x42d8f7(0x415)]());}set[_0x175e1d(0x214)](_0x15ecb6){const _0x1b725b=_0x175e1d;_0x15ecb6?(this['_anchorDot']&&this[_0x1b725b(0x1d0)][_0x1b725b(0x334)](),this[_0x1b725b(0x33c)]&&this[_0x1b725b(0x33c)][_0x1b725b(0x255)]()):(this[_0x1b725b(0x1d0)]&&this['_anchorDot'][_0x1b725b(0x255)](),this[_0x1b725b(0x33c)]&&this['_textBubble'][_0x1b725b(0x334)]());}[_0x175e1d(0x279)](){const _0x4606b5=_0x175e1d;for(const _0x7a6b3d of this[_0x4606b5(0x44f)])_0x7a6b3d[_0x4606b5(0x279)]();this[_0x4606b5(0x33c)]&&this[_0x4606b5(0x33c)][_0x4606b5(0x279)](),this['_anchorDot']&&this[_0x4606b5(0x1d0)][_0x4606b5(0x279)](),this[_0x4606b5(0x284)]&&this[_0x4606b5(0x284)][_0x4606b5(0x279)](),this[_0x4606b5(0x2d2)]&&this['_eventUnsubscribe']();}['_render'](){const _0x3f6817=_0x175e1d;var _0x5efe52;const {_docSkeleton:_0x267422,_document:_0x5b83e5}=this,{color:_0x3f6459,name:_0x2b8c3c,ranges:_0x4e2a01}=this[_0x3f6817(0x2f1)],_0x13abe0=_0x5b83e5[_0x3f6817(0x42b)](),{docsLeft:_0x159903,docsTop:_0x5c201c}=_0x13abe0,_0x2f5e2f=new _0x4019f2[(_0x3f6817(0x1d8))](_0x13abe0,_0x267422);for(const {startOffset:_0x5cce8a,endOffset:_0x4cfc8e,rangeType:_0x2b104b,segmentId:_0x6a700b,segmentPage:_0x46059c,collapsed:_0x3db7fd,isActive:_0x3adb2f}of _0x4e2a01){const _0x4ea127=_0x267422[_0x3f6817(0x223)](_0x5cce8a,!0x0,_0x6a700b,_0x46059c);let _0x9b08a5=_0x267422['findNodePositionByCharIndex'](_0x4cfc8e,!0x0,_0x6a700b,_0x46059c);if(_0x9b08a5==null&&(_0x9b08a5=_0x267422[_0x3f6817(0x223)](_0x4cfc8e-0x1,!0x1,_0x6a700b,_0x46059c)),_0x3adb2f){const {contentBoxPointGroup:_0x12eb7d}=_0x2f5e2f['getRangePointData'](_0x9b08a5,_0x9b08a5);if(_0x12eb7d[_0x3f6817(0x2d7)]===0x0)continue;this[_0x3f6817(0x439)](_0x3f6459,_0x12eb7d,_0x159903,_0x5c201c,_0x2b8c3c),this[_0x3f6817(0x2d2)]=this[_0x3f6817(0x3c7)]();}if(_0x4ea127&&_0x9b08a5){if(_0x2b104b===_0x187eaa[_0x3f6817(0x1aa)]['RECT']){const _0x5334d0=new _0x4019f2[(_0x3f6817(0x3cf))](_0x13abe0,_0x267422),{pointGroup:_0x384f78}=(_0x5efe52=_0x5334d0[_0x3f6817(0x361)](_0x4ea127,_0x9b08a5))!=null?_0x5efe52:{};if(_0x384f78==null||_0x384f78[_0x3f6817(0x2d7)]===0x0)continue;this[_0x3f6817(0x338)](_0x3f6459,_0x384f78,_0x159903,_0x5c201c);}else{if(!_0x3db7fd){const {borderBoxPointGroup:_0x1f23a7}=_0x2f5e2f['getRangePointData'](_0x4ea127,_0x9b08a5);if(_0x1f23a7[_0x3f6817(0x2d7)]===0x0)continue;this['_drawTextRange'](_0x3f6459,_0x1f23a7,_0x159903,_0x5c201c);}}}}}[_0x175e1d(0x439)](_0x24d5b9,_0x39a9df,_0x5399e8,_0x52d464,_0x35a398){const _0xacd7ca=_0x175e1d,_0x30a79d=this['_getAnchorBounding'](_0x39a9df),{left:_0x3657e2,top:_0x1c8e8e,height:_0x10f96f}=_0x30a79d,_0xf43f43=this[_0xacd7ca(0x348)](),_0x3eaef2=_0x221b83/_0xf43f43,_0x25a11a=new _0x34e554[(_0xacd7ca(0x33d))](_0x1f915c+_0x187eaa['generateRandomId'](_0x48d96c),{'left':_0x3657e2+_0x5399e8-_0x3eaef2,'top':_0x1c8e8e+_0x52d464,'height':_0x10f96f,'width':_0x3b70f0,'fill':_0x24d5b9||_0x34e554[_0xacd7ca(0x3d9)](_0x187eaa[_0xacd7ca(0x336)][_0xacd7ca(0x339)],0x0),'strokeWidth':_0x3eaef2,'stroke':_0x565734,'evented':!0x0});this[_0xacd7ca(0x284)]=_0x25a11a,this['_scene'][_0xacd7ca(0x411)](_0x25a11a,_0x4019f2[_0xacd7ca(0x444)]);const _0x548b8f=new _0x34e554[(_0xacd7ca(0x33d))](_0x1f915c+_0x187eaa[_0xacd7ca(0x248)](_0x48d96c),{'left':_0x3657e2+_0x5399e8-_0x3eaef2,'top':_0x1c8e8e+_0x52d464-_0x3be362/0x2,'height':_0x3be362,'width':_0x3be362,'fill':_0x24d5b9||_0x34e554[_0xacd7ca(0x3d9)](_0x187eaa[_0xacd7ca(0x336)][_0xacd7ca(0x339)],0x0),'strokeWidth':0x0,'stroke':_0x24d5b9||_0x34e554['getColor'](_0x187eaa[_0xacd7ca(0x336)][_0xacd7ca(0x339)],0x0),'evented':!0x1});this[_0xacd7ca(0x1d0)]=_0x548b8f,this[_0xacd7ca(0x222)][_0xacd7ca(0x411)](_0x548b8f,_0x4019f2[_0xacd7ca(0x444)]);const _0x42c9c5=new _0xf3893a(_0x1f915c+_0x187eaa[_0xacd7ca(0x248)](_0x48d96c),{'left':_0x3657e2+_0x5399e8-_0x3eaef2,'top':_0x1c8e8e+_0x52d464-_0x465b4b,'text':_0x35a398,'color':_0x24d5b9});this[_0xacd7ca(0x33c)]=_0x42c9c5,this[_0xacd7ca(0x222)]['addObject'](_0x42c9c5,_0x4019f2[_0xacd7ca(0x444)]),this[_0xacd7ca(0x214)]=!0x1;}[_0x175e1d(0x3c7)](){const _0x207db0=_0x175e1d,_0x59a039=this['_anchor'][_0x207db0(0x1bb)][_0x207db0(0x475)](()=>{const _0x5d216a=_0x207db0;this[_0x5d216a(0x214)]=!0x0;}),_0x53a74b=this[_0x207db0(0x284)][_0x207db0(0x327)][_0x207db0(0x475)](()=>{const _0x577bc3=_0x207db0;this[_0x577bc3(0x2c0)]&&clearTimeout(this[_0x577bc3(0x2c0)]),this['_hideTimer']=setTimeout(()=>{const _0x1fad67=_0x577bc3;this[_0x1fad67(0x214)]=!0x1;},0x7d0);});return()=>{const _0x31009d=_0x207db0;_0x59a039['unsubscribe'](),_0x53a74b[_0x31009d(0x426)]();};}['_drawTextRange'](_0x5d17e1,_0x49c153,_0x1fbc69,_0x10aace){const _0x128761=_0x175e1d,_0x1c2321=new _0x187eaa[(_0x128761(0x386))](_0x5d17e1)['setAlpha'](0.2)[_0x128761(0x3c0)](),_0x11f970=new _0x34e554[(_0x128761(0x1fd))](_0xb71169+_0x187eaa[_0x128761(0x248)](_0x48d96c),{'pointsGroup':_0x49c153,'fill':_0x1c2321||_0x34e554[_0x128761(0x3d9)](_0x187eaa['COLORS'][_0x128761(0x339)],0.2),'left':_0x1fbc69,'top':_0x10aace,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x128761(0x44f)][_0x128761(0x1da)](_0x11f970),this[_0x128761(0x222)][_0x128761(0x411)](_0x11f970,_0x4019f2[_0x128761(0x444)]);}[_0x175e1d(0x338)](_0xe56738,_0x192944,_0x2e914d,_0x20f25e){const _0x439bf3=_0x175e1d,_0x4a215e=new _0x187eaa[(_0x439bf3(0x386))](_0xe56738)[_0x439bf3(0x2e9)](0.2)[_0x439bf3(0x3c0)](),_0x51657a=new _0x34e554['RegularPolygon'](_0x2b4246+_0x187eaa[_0x439bf3(0x248)](_0x48d96c),{'pointsGroup':_0x192944,'fill':_0x4a215e||_0x34e554[_0x439bf3(0x3d9)](_0x187eaa[_0x439bf3(0x336)][_0x439bf3(0x339)],0.2),'left':_0x2e914d,'top':_0x20f25e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x439bf3(0x44f)][_0x439bf3(0x1da)](_0x51657a),this[_0x439bf3(0x222)][_0x439bf3(0x411)](_0x51657a,_0x4019f2['TEXT_RANGE_LAYER_INDEX']);}[_0x175e1d(0x311)](_0x43c38b){const _0x3a8e70=_0x43c38b[0x0],_0x452a5d=_0x3a8e70[0x0],_0x395af7=_0x3a8e70[0x2],{x:_0x20ea21,y:_0x57ef8c}=_0x452a5d,{x:_0x1499c7,y:_0x49e086}=_0x395af7;return{'left':_0x20ea21,'top':_0x57ef8c,'width':_0x1499c7-_0x20ea21,'height':_0x49e086-_0x57ef8c};}['_getScale'](){const _0x222b9d=_0x175e1d,{scaleX:_0x2d1855,scaleY:_0x2b3935}=this[_0x222b9d(0x222)][_0x222b9d(0x3fa)]();return Math[_0x222b9d(0x440)](_0x2d1855,_0x2b3935);}}var _0x19ef9c=Object[_0x175e1d(0x302)],_0x223186=(_0x128678,_0x3ba6fe,_0x49f886,_0x363ae6)=>{const _0x3b672f=_0x175e1d;for(var _0x41d29a=_0x363ae6>0x1?void 0x0:_0x363ae6?_0x19ef9c(_0x3ba6fe,_0x49f886):_0x3ba6fe,_0x58f915=_0x128678[_0x3b672f(0x2d7)]-0x1,_0x33296a;_0x58f915>=0x0;_0x58f915--)(_0x33296a=_0x128678[_0x58f915])&&(_0x41d29a=_0x33296a(_0x41d29a)||_0x41d29a);return _0x41d29a;},_0x4c868c=(_0x3160dd,_0x11dbee)=>(_0x14e078,_0x19dab8)=>_0x11dbee(_0x14e078,_0x19dab8,_0x3160dd);let _0x3d4348=class extends _0x187eaa[_0x175e1d(0x387)]{constructor(_0x1d760d,_0x17f5de,_0x34265c,_0x4ccb0d,_0x3ca73a){const _0xe8101a=_0x175e1d;super(),_0x3d2368(this,_0xe8101a(0x417),[]),_0x3d2368(this,'_cursors',[]),(this[_0xe8101a(0x24a)]=_0x1d760d,this[_0xe8101a(0x3f9)]=_0x17f5de,this['_collabCursorController']=_0x34265c,this['_commandService']=_0x4ccb0d,this[_0xe8101a(0x3b4)]=_0x3ca73a,this[_0xe8101a(0x1b9)]());}['_init'](){const _0x40d49c=_0x175e1d,_0x25c01f=this[_0x40d49c(0x24a)][_0x40d49c(0x38e)],_0x13b637=this[_0x40d49c(0x3f9)];this[_0x40d49c(0x307)](_0x12c3e7['combineLatest']([this['_collabCursorController'][_0x40d49c(0x2e7)](_0x25c01f),this[_0x40d49c(0x3b4)]['currentTheme$']])['pipe'](_0x2f0f6d[_0x40d49c(0x38c)](([_0xbbab56,_0xcc1c3a])=>({'skeleton':_0x13b637[_0x40d49c(0x3d7)](),'cursors':[..._0xbbab56[_0x40d49c(0x35c)]()][_0x40d49c(0x364)](_0x294fa5=>({..._0x294fa5,'color':this['_themeService'][_0x40d49c(0x1d7)](_0x294fa5['color'])}))})))['subscribe'](_0x581827=>{const _0x1d06fe=_0x40d49c;if(this[_0x1d06fe(0x3bc)](),_0x581827){const {skeleton:_0x3fdd5e,cursors:_0x4680a7}=_0x581827;this[_0x1d06fe(0x22a)](_0x3fdd5e,_0x4680a7);}})),this['_initResize'](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x359ae2,_0x3bde6f){const _0x15e30f=_0x175e1d,{scene:_0x273572,mainComponent:_0x32d18d}=this[_0x15e30f(0x24a)],_0x346ffd=_0x3bde6f[_0x15e30f(0x38c)](_0x36321f=>new _0x5e46c8(_0x36321f,_0x273572,_0x359ae2,_0x32d18d));this[_0x15e30f(0x417)]=_0x346ffd,this[_0x15e30f(0x242)]=_0x3bde6f;}['_refreshCollabCursors'](){const _0x32df77=_0x175e1d;this[_0x32df77(0x3bc)]();const {scene:_0x521388,mainComponent:_0x47ca78}=this[_0x32df77(0x24a)],_0x4b3cd6=this['_docSkeletonManagerService'][_0x32df77(0x3d7)](),_0x526240=this[_0x32df77(0x242)][_0x32df77(0x38c)](_0x2e0c93=>new _0x5e46c8(_0x2e0c93,_0x521388,_0x4b3cd6,_0x47ca78));this['_cursorShapes']=_0x526240;}['_removeCollabCursors'](){const _0x55f2a5=_0x175e1d;this[_0x55f2a5(0x417)][_0x55f2a5(0x1d4)](_0x5be575=>_0x5be575[_0x55f2a5(0x279)]()),this[_0x55f2a5(0x417)]=[];}['_initCommandExecutedListener'](){const _0xae6942=_0x175e1d,_0x297e35=[_0x4019f2['SetDocZoomRatioOperation']['id']];this[_0xae6942(0x307)](this[_0xae6942(0x20b)][_0xae6942(0x38d)](_0xcbb18=>{const _0x5e5c2c=_0xae6942;_0x297e35[_0x5e5c2c(0x400)](_0xcbb18['id'])&&_0xcbb18[_0x5e5c2c(0x44d)][_0x5e5c2c(0x38e)]===this['_context']['unitId']&&this[_0x5e5c2c(0x2d4)]();}));}[_0x175e1d(0x3b8)](){const _0x199ba0=_0x175e1d;this[_0x199ba0(0x307)](_0x187eaa[_0x199ba0(0x375)](this[_0x199ba0(0x24a)][_0x199ba0(0x446)][_0x199ba0(0x23e)])[_0x199ba0(0x273)](_0x2f0f6d[_0x199ba0(0x24b)](_0x4b3cb3=>_0x4b3cb3[_0x199ba0(0x3f4)]===_0x34e554[_0x199ba0(0x2fb)]['resize']),_0x2f0f6d[_0x199ba0(0x23b)](0x10))['subscribe'](()=>{const _0x5a7fdb=_0x199ba0;this[_0x5a7fdb(0x2d4)]();}));}};_0x3d4348=_0x223186([_0x4c868c(0x1,_0x187eaa[_0x175e1d(0x374)](_0x4149e2[_0x175e1d(0x2d6)])),_0x4c868c(0x2,_0x187eaa['Inject'](_0x250edb)),_0x4c868c(0x3,_0x187eaa[_0x175e1d(0x2fd)]),_0x4c868c(0x4,_0x187eaa['Inject'](_0x187eaa[_0x175e1d(0x1fc)]))],_0x3d4348);const _0x2b2063=0x1,_0x21e8da=1.5;class _0x5c6aab extends _0x34e554['Shape']{constructor(_0x5eb41a,_0x591b6e){const _0x5bfedf=_0x175e1d;super(_0x5eb41a,_0x591b6e),_0x3d2368(this,_0x5bfedf(0x213)),_0x3d2368(this,'_hovered',!0x1),_0x3d2368(this,'_range'),_0x3d2368(this,_0x5bfedf(0x2ed),''),_0x3d2368(this,_0x5bfedf(0x427),_0x5bfedf(0x236)),_0x3d2368(this,_0x5bfedf(0x28c)),(_0x591b6e&&this[_0x5bfedf(0x2f0)](_0x591b6e),this[_0x5bfedf(0x1bb)][_0x5bfedf(0x475)](()=>this[_0x5bfedf(0x2f0)]({'hovered':!0x0})),this[_0x5bfedf(0x327)][_0x5bfedf(0x475)](()=>this[_0x5bfedf(0x2f0)]({'hovered':!0x1})));}[_0x175e1d(0x2f0)](_0x5a0a39){const _0x388374=_0x175e1d;var _0x1dfe38,_0x1d9aa4,_0x4a8ea7,_0x1b64a4,_0x1c0497,_0x580c95;this['_color']=(_0x1dfe38=_0x5a0a39[_0x388374(0x20a)])!=null?_0x1dfe38:this['_color'],this[_0x388374(0x40b)]=(_0x1d9aa4=_0x5a0a39[_0x388374(0x371)])!=null?_0x1d9aa4:this[_0x388374(0x40b)],this[_0x388374(0x30e)]=(_0x4a8ea7=_0x5a0a39[_0x388374(0x436)])!=null?_0x4a8ea7:this[_0x388374(0x30e)],this[_0x388374(0x2ed)]=(_0x1b64a4=_0x5a0a39['name'])!=null?_0x1b64a4:this[_0x388374(0x2ed)],this[_0x388374(0x427)]=(_0x1c0497=_0x5a0a39[_0x388374(0x398)])!=null?_0x1c0497:this[_0x388374(0x427)],this[_0x388374(0x28c)]=(_0x580c95=_0x5a0a39[_0x388374(0x1fe)])!=null?_0x580c95:this[_0x388374(0x28c)],this[_0x388374(0x280)]({'width':_0x5a0a39[_0x388374(0x1ee)],'height':_0x5a0a39['height']});}[_0x175e1d(0x1d6)](_0x1b1063){const _0x12138c=_0x175e1d,{row:_0x17da07,column:_0x8af9f6}=_0x1b1063;if(_0x17da07>=this['_range'][_0x12138c(0x301)]&&_0x17da07<=this[_0x12138c(0x30e)][_0x12138c(0x2c3)]&&_0x8af9f6>=this[_0x12138c(0x30e)][_0x12138c(0x27d)]&&_0x8af9f6<=this[_0x12138c(0x30e)][_0x12138c(0x2cf)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x12138c(0x2f0)]({'hovered':!0x1});}[_0x175e1d(0x3a9)](_0x3f4627){return!0x1;}[_0x175e1d(0x392)](_0x306a9a){const _0x30c667=_0x175e1d;_0x34e554['Rect'][_0x30c667(0x1c1)](_0x306a9a,{'width':this[_0x30c667(0x1ee)],'height':this[_0x30c667(0x428)],'strokeWidth':_0x21e8da,'stroke':this[_0x30c667(0x213)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x30c667(0x40b)]&&(_0x306a9a[_0x30c667(0x3da)](),_0x306a9a[_0x30c667(0x43d)](0x1,0x0,0x0,0x1,this[_0x30c667(0x1ee)],this[_0x30c667(0x427)]===_0x30c667(0x3b7)?0x0:-_0x465b4b),_0xf3893a[_0x30c667(0x1c1)](_0x306a9a,{'text':this[_0x30c667(0x2ed)],'color':this[_0x30c667(0x213)]}),_0x306a9a[_0x30c667(0x461)]());}}var _0x5866a=Object[_0x175e1d(0x302)],_0x13f983=(_0x2d5a96,_0x1a3834,_0x387de9,_0x4aa5f7)=>{const _0x5e5fb5=_0x175e1d;for(var _0x8c363e=_0x4aa5f7>0x1?void 0x0:_0x4aa5f7?_0x5866a(_0x1a3834,_0x387de9):_0x1a3834,_0x24732e=_0x2d5a96[_0x5e5fb5(0x2d7)]-0x1,_0x4b2de3;_0x24732e>=0x0;_0x24732e--)(_0x4b2de3=_0x2d5a96[_0x24732e])&&(_0x8c363e=_0x4b2de3(_0x8c363e)||_0x8c363e);return _0x8c363e;},_0x523dd6=(_0x3fc29,_0x28157e)=>(_0x492add,_0x4a4ab8)=>_0x28157e(_0x492add,_0x4a4ab8,_0x3fc29);const _0x4a7cc5=0x1389;let _0x34f5aa=class extends _0x187eaa[_0x175e1d(0x387)]{constructor(_0x531613,_0x1dca90,_0x3b9aac,_0x542f2b){const _0x253c17=_0x175e1d;super(),_0x3d2368(this,_0x253c17(0x242),new Set()),_0x3d2368(this,_0x253c17(0x41b),null),(this[_0x253c17(0x24a)]=_0x531613,this[_0x253c17(0x1e2)]=_0x1dca90,this['_collabCursorController']=_0x3b9aac,this[_0x253c17(0x3b4)]=_0x542f2b,this[_0x253c17(0x1b9)]());}[_0x175e1d(0x1b9)](){const _0x4f4c06=_0x175e1d;this['_sheetSkeletonManagerService'][_0x4f4c06(0x389)][_0x4f4c06(0x273)](_0x2f0f6d['takeUntil'](this['dispose$']),_0x2f0f6d[_0x4f4c06(0x1e9)](_0x3e8d73=>{const _0x459a9f=_0x4f4c06;if(_0x3e8d73){const _0x47fbca=_0x3e8d73[_0x459a9f(0x27f)];return _0x12c3e7[_0x459a9f(0x372)](this[_0x459a9f(0x257)]['getCollabCursors$'](this[_0x459a9f(0x24a)][_0x459a9f(0x38e)]),this[_0x459a9f(0x3b4)][_0x459a9f(0x21d)])['pipe'](_0x2f0f6d['map'](([_0x582239,_0x588be3])=>{const _0x91215b=_0x459a9f,_0x10c58c=new Map();return _0x582239[_0x91215b(0x1d4)]((_0x2fafea,_0x80a027)=>{const _0x14ed85=_0x91215b;if(_0x2fafea['sheetID']===_0x47fbca){const _0x466b35={..._0x2fafea};_0x466b35[_0x14ed85(0x20a)]=this[_0x14ed85(0x3b4)][_0x14ed85(0x1d7)](_0x2fafea[_0x14ed85(0x20a)]),_0x10c58c[_0x14ed85(0x2ef)](_0x80a027,_0x466b35);}}),{'skeleton':_0x3e8d73,'cursors':_0x10c58c};}));}return _0x12c3e7['of']({'skeleton':null,'cursors':new Map()});}))[_0x4f4c06(0x405)](({skeleton:_0x2754af,cursors:_0xfa3bc8})=>{const _0x1f46c5=_0x4f4c06;this[_0x1f46c5(0x3bc)](),_0x2754af&&this[_0x1f46c5(0x22a)](_0x2754af,_0xfa3bc8);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4f4c06(0x405)](_0x278cf5=>{if(_0x278cf5==null)return;const {skeleton:_0x544f0d}=_0x278cf5,{scene:_0x57c1b}=this['_context'];_0x57c1b['onPointerMove$']['subscribeEvent'](_0x187eaa['debounce'](_0x4f99b1=>{const _0x231344=_0xd8ae;var _0x4327f1,_0x3a43bf;const {offsetX:_0x619022,offsetY:_0x132411}=_0x4f99b1,{x:_0x325aba,y:_0x912c1b}=_0x57c1b[_0x231344(0x22b)](_0x34e554[_0x231344(0x35d)][_0x231344(0x238)]([_0x619022,_0x132411])),{scaleX:_0x53cd1a,scaleY:_0x23f59f}=_0x57c1b[_0x231344(0x3fa)](),_0x1e3c12=_0x57c1b[_0x231344(0x210)](_0x34e554[_0x231344(0x25c)][_0x231344(0x464)]),_0x1f2df7=_0x57c1b[_0x231344(0x1f2)](_0x34e554[_0x231344(0x35d)]['FromArray']([_0x325aba,_0x912c1b]),_0x1e3c12),_0x1e5647=_0x544f0d[_0x231344(0x262)](_0x619022,_0x132411,_0x53cd1a,_0x23f59f,_0x1f2df7);((_0x4327f1=this['_lastPointer'])==null?void 0x0:_0x4327f1[_0x231344(0x3f7)])===_0x1e5647['column']&&((_0x3a43bf=this['_lastPointer'])==null?void 0x0:_0x3a43bf[_0x231344(0x1b5)])===_0x1e5647[_0x231344(0x1b5)]||this['_cursors'][_0x231344(0x1d4)](_0x576267=>{_0x576267['onMouseMove'](_0x1e5647);});},0x64));});}[_0x175e1d(0x22a)](_0x50afff,_0x3c66f3){const _0x32fd2f=_0x175e1d;var _0x575818;const _0x36bbc4=(_0x575818=this[_0x32fd2f(0x1e2)]['getCurrent']())==null?void 0x0:_0x575818[_0x32fd2f(0x290)];if(!_0x36bbc4)return;const _0x2ec40e=this['_getSheetObject']();if(!_0x2ec40e)return;this[_0x32fd2f(0x242)]['forEach'](_0x41d652=>{const _0x632dec=_0x32fd2f;_0x41d652[_0x632dec(0x292)]();});const {scene:_0x5a6747}=_0x2ec40e,_0x2f1897=_0x3c3bfe(Array[_0x32fd2f(0x320)](_0x3c66f3[_0x32fd2f(0x35c)]()))[_0x32fd2f(0x38c)](_0x1e3e22=>{const _0x3f6d36=_0x32fd2f,{color:_0x19059c,range:_0x45e541,name:_0x2a5dc1,selection:_0x16c5b6,sheetID:_0x18c349}=_0x1e3e22,{startColumn:_0x14ecfe,startRow:_0x4054af,endColumn:_0x4e7a84,endRow:_0x228e63}=_0x45e541,_0x2315dd=_0x466080['getCoordByCell'](_0x4054af,_0x14ecfe,_0x5a6747,_0x36bbc4),_0xba29a5=_0x466080[_0x3f6d36(0x207)](_0x228e63,_0x4e7a84,_0x5a6747,_0x36bbc4),{columnHeaderHeightAndMarginTop:_0x42cff9}=_0x36bbc4,{startX:_0x52c15d,startY:_0x4431b0}=_0x2315dd,{endX:_0x3e6b1b,endY:_0x108322}=_0xba29a5,_0x33576f=_0x3e6b1b-_0x52c15d,_0x430554=_0x108322-_0x4431b0,_0x496609={'labelPosition':_0x4431b0-_0x42cff9>=_0x465b4b?_0x3f6d36(0x236):_0x3f6d36(0x3b7),'sheetID':_0x18c349,'range':_0x45e541,'color':_0x19059c,'name':_0x2a5dc1,'selection':_0x16c5b6,'left':_0x52c15d,'top':_0x4431b0,'width':_0x33576f,'height':_0x430554,'evented':!0x1,'zIndex':_0x4a7cc5};return new _0x5c6aab(_0x2a5dc1,_0x496609);});_0x5a6747[_0x32fd2f(0x1fa)](_0x2f1897,_0x2b2063),this[_0x32fd2f(0x242)]=new Set(_0x2f1897);}[_0x175e1d(0x3bc)](){const _0x57e371=_0x175e1d;var _0x446a6f;(_0x446a6f=this[_0x57e371(0x242)])==null||_0x446a6f[_0x57e371(0x1d4)](_0x13c416=>_0x13c416[_0x57e371(0x279)]());}[_0x175e1d(0x330)](){const _0x3cbfeb=_0x175e1d;return _0x466080[_0x3cbfeb(0x243)](this[_0x3cbfeb(0x24a)][_0x3cbfeb(0x38b)],this[_0x3cbfeb(0x24a)]);}};_0x34f5aa=_0x13f983([_0x523dd6(0x1,_0x187eaa[_0x175e1d(0x374)](_0x466080['SheetSkeletonManagerService'])),_0x523dd6(0x2,_0x187eaa['Inject'](_0x250edb)),_0x523dd6(0x3,_0x187eaa[_0x175e1d(0x374)](_0x187eaa[_0x175e1d(0x1fc)]))],_0x34f5aa);function _0x3c3bfe(_0x4f5e62){const _0x561de1=_0x175e1d,_0x4806ae=new Map();return _0x4f5e62['forEach'](_0x481170=>{const _0x4bccf2=_0xd8ae;if(_0x4806ae[_0x4bccf2(0x2f5)](_0x481170[_0x4bccf2(0x20f)])){const _0x1a2942=_0x4806ae[_0x4bccf2(0x37b)](_0x481170[_0x4bccf2(0x20f)]);_0x1a2942[_0x4bccf2(0x202)]+=',\x20'+_0x481170[_0x4bccf2(0x202)];}else _0x4806ae[_0x4bccf2(0x2ef)](_0x481170['selection'],_0x481170);}),Array[_0x561de1(0x320)](_0x4806ae[_0x561de1(0x35c)]());}var _0xf547e4=Object[_0x175e1d(0x302)],_0x587fe8=(_0x21fc54,_0x55679e,_0xb1ea1e,_0x3c1e3a)=>{const _0x4ac63f=_0x175e1d;for(var _0x5e7b47=_0x3c1e3a>0x1?void 0x0:_0x3c1e3a?_0xf547e4(_0x55679e,_0xb1ea1e):_0x55679e,_0x49596f=_0x21fc54[_0x4ac63f(0x2d7)]-0x1,_0x480aa3;_0x49596f>=0x0;_0x49596f--)(_0x480aa3=_0x21fc54[_0x49596f])&&(_0x5e7b47=_0x480aa3(_0x5e7b47)||_0x5e7b47);return _0x5e7b47;},_0x184b21=(_0x505c65,_0x333ca5)=>(_0x1cc832,_0xa411a9)=>_0x333ca5(_0x1cc832,_0xa411a9,_0x505c65);let _0x279622=class extends _0x187eaa['Disposable']{constructor(_0x3ca0ac,_0x21a9cd,_0x397fda,_0x2564f1,_0x5e29bd,_0x529e05){const _0x1d77e8=_0x175e1d;super(),this[_0x1d77e8(0x413)]=_0x3ca0ac,this[_0x1d77e8(0x308)]=_0x21a9cd,this['_collaborationUIEventService']=_0x397fda,this['_messageService']=_0x2564f1,this['_notificationService']=_0x5e29bd,this['_localeService']=_0x529e05,this[_0x1d77e8(0x36b)](),this[_0x1d77e8(0x3d1)]();}[_0x175e1d(0x36b)](){const _0x46c70c=_0x175e1d;this[_0x46c70c(0x307)](this[_0x46c70c(0x413)][_0x46c70c(0x2b1)](()=>{const _0x33c070=_0x46c70c;if(this[_0x33c070(0x308)][_0x33c070(0x2bf)][_0x33c070(0x459)])return this['_localeService']['t'](_0x33c070(0x314));}));}['_initEvent'](){const _0x4024d7=_0x175e1d;this['disposeWithMe'](this[_0x4024d7(0x2d0)][_0x4024d7(0x36e)][_0x4024d7(0x405)](_0x7d43d6=>{const _0x4f8f36=_0x4024d7;_0x7d43d6['id']===_0xd5bbf8[_0x4f8f36(0x33b)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x4f8f36(0x255)]({'type':_0x3b181[_0x4f8f36(0x441)][_0x4f8f36(0x346)],'content':this[_0x4f8f36(0x1ec)]['t'](_0x4f8f36(0x21c))}),_0x7d43d6['id']===_0xd5bbf8[_0x4f8f36(0x33b)][_0x4f8f36(0x1ce)]&&this[_0x4f8f36(0x43f)]['show']({'type':_0x3b181['MessageType'][_0x4f8f36(0x346)],'content':this[_0x4f8f36(0x1ec)]['t'](_0x4f8f36(0x447))}),_0x7d43d6['id']===_0xd5bbf8[_0x4f8f36(0x33b)][_0x4f8f36(0x3f6)]&&this[_0x4f8f36(0x3cb)][_0x4f8f36(0x255)]({'title':this['_localeService']['t'](_0x4f8f36(0x244)),'content':this['_localeService']['t'](_0x4f8f36(0x424)),'type':_0x4f8f36(0x46d),'duration':0x0}),_0x7d43d6['id']===_0xd5bbf8['CollaborationUIEventId'][_0x4f8f36(0x3e8)]&&this[_0x4f8f36(0x43f)][_0x4f8f36(0x255)]({'type':_0x3b181[_0x4f8f36(0x441)]['Error'],'content':this[_0x4f8f36(0x1ec)]['t'](_0x4f8f36(0x447))+'('+_0x7d43d6[_0x4f8f36(0x37a)]+')'}),_0x7d43d6['id']===_0xd5bbf8[_0x4f8f36(0x33b)][_0x4f8f36(0x26c)]&&this['_messageService']['show']({'type':_0x3b181[_0x4f8f36(0x441)]['Warning'],'content':this[_0x4f8f36(0x1ec)]['t'](_0x7d43d6[_0x4f8f36(0x37a)]||'')}),_0x7d43d6['id']===_0xd5bbf8['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x4f8f36(0x43f)][_0x4f8f36(0x255)]({'type':_0x3b181['MessageType'][_0x4f8f36(0x346)],'content':this[_0x4f8f36(0x1ec)]['t'](_0x4f8f36(0x294))}),_0x7d43d6['id']===_0xd5bbf8[_0x4f8f36(0x33b)][_0x4f8f36(0x2f2)]&&this[_0x4f8f36(0x43f)][_0x4f8f36(0x255)]({'type':_0x3b181[_0x4f8f36(0x441)][_0x4f8f36(0x275)],'content':this[_0x4f8f36(0x1ec)]['t'](_0x4f8f36(0x2c5))}),_0x7d43d6['id']===_0xd5bbf8[_0x4f8f36(0x33b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x4f8f36(0x43f)]['show']({'type':_0x3b181[_0x4f8f36(0x441)][_0x4f8f36(0x275)],'content':this[_0x4f8f36(0x1ec)]['t']('session.collaboration-timeout')});}));}};_0x279622=_0x587fe8([_0x184b21(0x0,_0x2695dd['IBeforeCloseService']),_0x184b21(0x1,_0xd5bbf8[_0x175e1d(0x328)]),_0x184b21(0x2,_0x187eaa['Inject'](_0xd5bbf8[_0x175e1d(0x402)])),_0x184b21(0x3,_0x2695dd[_0x175e1d(0x37d)]),_0x184b21(0x4,_0x2695dd[_0x175e1d(0x41e)]),_0x184b21(0x5,_0x187eaa[_0x175e1d(0x374)](_0x187eaa[_0x175e1d(0x1de)]))],_0x279622);const _0x18ecfd=_0x175e1d(0x228),_0x5c78bb={};var _0x54620d=Object['getOwnPropertyDescriptor'],_0x58a5e2=(_0x47603a,_0x22d2a0,_0x4ca0b8,_0x179205)=>{const _0x2ab80c=_0x175e1d;for(var _0x2557de=_0x179205>0x1?void 0x0:_0x179205?_0x54620d(_0x22d2a0,_0x4ca0b8):_0x22d2a0,_0x19a50a=_0x47603a[_0x2ab80c(0x2d7)]-0x1,_0x47d336;_0x19a50a>=0x0;_0x19a50a--)(_0x47d336=_0x47603a[_0x19a50a])&&(_0x2557de=_0x47d336(_0x2557de)||_0x2557de);return _0x2557de;},_0x2d5bd7=(_0x398bfa,_0x599f1d)=>(_0x4b6ed4,_0x1724a4)=>_0x599f1d(_0x4b6ed4,_0x1724a4,_0x398bfa);let _0x5df55d=class{constructor(_0x18af57,_0x22cca2){const _0x5b5318=_0x175e1d;this[_0x5b5318(0x1b3)]=_0x18af57,this[_0x5b5318(0x1f9)]=_0x22cca2;}['transformIMECache'](_0x439514){const _0x323b9d=_0x175e1d;this[_0x323b9d(0x3ab)](_0x439514),this[_0x323b9d(0x204)](_0x439514);}['transformRemoteChangeset'](_0x4e9969){const _0x2b85d7=_0x175e1d,{unitID:_0x2cfb5c}=_0x4e9969,_0x3ac4c8=this[_0x2b85d7(0x1f9)][_0x2b85d7(0x216)](_0x2cfb5c)[_0x2b85d7(0x2a8)](_0x4019f2[_0x2b85d7(0x29f)]),{redoCache:_0x33c1da}=_0x3ac4c8[_0x2b85d7(0x1b8)]();if(_0x33c1da[_0x2b85d7(0x2d7)]===0x0)return _0x4e9969;let _0x359ae6=_0x187eaa[_0x2b85d7(0x297)]['deepClone'](_0x4e9969['mutations'][0x0]);for(let _0x2d75fe=0x0;_0x2d75fe<_0x33c1da[_0x2b85d7(0x2d7)];_0x2d75fe++){const _0x5e51d1={'id':_0x2b85d7(0x3e6),'params':{..._0x33c1da[_0x2d75fe]}},_0x475787=this[_0x2b85d7(0x1b3)]['transformMutation'](_0x359ae6,_0x5e51d1,!0x1);if(_0x5cbc46[_0x2b85d7(0x34a)](_0x475787))throw _0x475787['error'];_0x359ae6=_0x475787[_0x2b85d7(0x1fb)];}return{..._0x187eaa['Tools'][_0x2b85d7(0x388)](_0x4e9969),'mutations':[_0x359ae6]};}[_0x175e1d(0x3ab)](_0x42c713){const _0x396020=_0x175e1d,{unitID:_0x609ce0}=_0x42c713,_0x5808c8=this['_renderManagerService'][_0x396020(0x216)](_0x609ce0)['with'](_0x4019f2[_0x396020(0x29f)]),{undoCache:_0xb4783e,redoCache:_0x58f4b2}=_0x5808c8[_0x396020(0x1b8)]();if(_0xb4783e[_0x396020(0x2d7)]===0x0||_0x58f4b2[_0x396020(0x2d7)]===0x0)return;const _0xee4f8d=[],_0x20e247=[];let _0x11685b=_0x187eaa[_0x396020(0x297)]['deepClone'](_0x42c713[_0x396020(0x1d2)][0x0]),_0x1db4ed=_0x187eaa[_0x396020(0x297)][_0x396020(0x388)](_0x42c713[_0x396020(0x1d2)][0x0]);for(let _0x58b24d=_0xb4783e['length']-0x1;_0x58b24d>=0x0;_0x58b24d--){const _0x1efd2b={'id':_0x396020(0x3e6),'params':{..._0xb4783e[_0x58b24d]}},_0xca4e0c={'id':'doc.mutation.rich-text-editing','params':{..._0x58f4b2[_0x58b24d]}},_0x146f84=this['_transformService'][_0x396020(0x25d)](_0x11685b,_0x1efd2b,!0x1),_0x15f51b=this[_0x396020(0x1b3)]['transformMutation'](_0x1db4ed,_0xca4e0c,!0x1);if(_0x5cbc46['isTransformMutationFailure'](_0x146f84))throw _0x146f84['error'];if(_0x5cbc46[_0x396020(0x34a)](_0x15f51b))throw _0x15f51b[_0x396020(0x46d)];_0xee4f8d['unshift'](_0x146f84[_0x396020(0x1ed)][_0x396020(0x44d)]),_0x20e247[_0x396020(0x456)](_0x15f51b[_0x396020(0x1ed)][_0x396020(0x44d)]),_0x11685b=_0x146f84[_0x396020(0x1fb)],_0x1db4ed=_0x15f51b[_0x396020(0x1fb)];}_0x5808c8['setUndoRedoMutationParamsCache']({'undoCache':_0xee4f8d,'redoCache':_0x20e247});}['_transformPreviousActiveRange'](_0xa57027){const _0x1f57ee=_0x175e1d,{unitID:_0x4efff1}=_0xa57027,_0x3cc4a1=this['_renderManagerService'][_0x1f57ee(0x216)](_0x4efff1)['with'](_0x4019f2['DocIMEInputManagerService']),_0x316365=_0x3cc4a1[_0x1f57ee(0x2f7)]();if(_0x316365==null)return;const _0x56923a=[{'id':_0x1f57ee(0x3e6),'params':{'unitId':_0xa57027[_0x1f57ee(0x345)],'actions':null,'textRanges':[_0x316365]}}],_0x3d92a7=this[_0x1f57ee(0x1b3)][_0x1f57ee(0x2b2)](_0xa57027,_0x56923a);if(!_0x5cbc46[_0x1f57ee(0x245)](_0x3d92a7))throw _0x3d92a7['error'];const _0x452835=_0x3d92a7[_0x1f57ee(0x1ed)][0x0][_0x1f57ee(0x44d)]['textRanges'];Array[_0x1f57ee(0x471)](_0x452835)&&_0x452835['length']&&_0x3cc4a1[_0x1f57ee(0x33e)](_0x452835[0x0]);}};_0x5df55d=_0x58a5e2([_0x2d5bd7(0x0,_0x5cbc46[_0x175e1d(0x383)]),_0x2d5bd7(0x1,_0x34e554[_0x175e1d(0x418)])],_0x5df55d);var _0x50cd8b=Object[_0x175e1d(0x302)],_0x211f49=(_0x7b0bcc,_0x200a81,_0x128375,_0x5989b1)=>{const _0x380c62=_0x175e1d;for(var _0x266f3f=_0x5989b1>0x1?void 0x0:_0x5989b1?_0x50cd8b(_0x200a81,_0x128375):_0x200a81,_0x2396f9=_0x7b0bcc[_0x380c62(0x2d7)]-0x1,_0x47b22b;_0x2396f9>=0x0;_0x2396f9--)(_0x47b22b=_0x7b0bcc[_0x2396f9])&&(_0x266f3f=_0x47b22b(_0x266f3f)||_0x266f3f);return _0x266f3f;},_0x3f01f2=(_0xe5b310,_0x486382)=>(_0x431a54,_0x58c992)=>_0x486382(_0x431a54,_0x58c992,_0xe5b310);let _0x3f089a=class{constructor(_0x373177,_0x422dcf,_0x520962){const _0x3afffc=_0x175e1d;this['_injector']=_0x373177,this['_transformService']=_0x422dcf,this[_0x3afffc(0x3a3)]=_0x520962;}['transformStateCache'](_0x53e2c1){this['_transformHistoryAndStateStack'](_0x53e2c1);}['transformRemoteChangeset'](_0x42a69f){const _0x24f632=_0x175e1d,{unitID:_0xcd648b}=_0x42a69f,{collaboration:_0x30f432}=this['_docStateChangeManagerService'][_0x24f632(0x3aa)](_0xcd648b);if(_0x30f432[_0x24f632(0x2d7)]===0x0)return _0x42a69f;let _0xbe5e7=_0x187eaa[_0x24f632(0x297)]['deepClone'](_0x42a69f[_0x24f632(0x1d2)][0x0]);for(let _0x5e5863=0x0;_0x5e5863<_0x30f432[_0x24f632(0x2d7)];_0x5e5863++){const _0x3c6e8d={'id':_0x24f632(0x3e6),'params':{'unitId':_0x30f432[_0x5e5863]['unitId'],..._0x30f432[_0x5e5863]['redoState']}},_0x50d012=this[_0x24f632(0x1b3)]['transformMutation'](_0xbe5e7,_0x3c6e8d,!0x1);if(_0x5cbc46['isTransformMutationFailure'](_0x50d012))throw _0x50d012[_0x24f632(0x46d)];_0xbe5e7=_0x50d012[_0x24f632(0x1fb)];}return{..._0x187eaa[_0x24f632(0x297)]['deepClone'](_0x42a69f),'mutations':[_0xbe5e7]};}[_0x175e1d(0x256)](_0x1800f6){const _0x1c051c=_0x175e1d,{unitID:_0x2b61f7}=_0x1800f6,{history:_0x5e77a1,collaboration:_0x4ee7c2}=this[_0x1c051c(0x3a3)]['getStateCache'](_0x2b61f7);if(_0x5e77a1['length']===0x0&&_0x4ee7c2['length']===0x0)return;const _0x470971=[],_0x5af935=[];let _0x2e421a=_0x187eaa[_0x1c051c(0x297)][_0x1c051c(0x388)](_0x1800f6[_0x1c051c(0x1d2)][0x0]),_0x97276b=_0x187eaa[_0x1c051c(0x297)][_0x1c051c(0x388)](_0x1800f6['mutations'][0x0]);for(let _0x46abfb=_0x5e77a1[_0x1c051c(0x2d7)]-0x1;_0x46abfb>=0x0;_0x46abfb--){const _0x3ac8ea={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5e77a1[_0x46abfb][_0x1c051c(0x38e)],..._0x5e77a1[_0x46abfb]['undoState']}},_0x3c4f05={'id':_0x1c051c(0x3e6),'params':{'unitId':_0x5e77a1[_0x46abfb][_0x1c051c(0x38e)],..._0x5e77a1[_0x46abfb]['redoState']}},_0x35bb3a=this[_0x1c051c(0x1b3)][_0x1c051c(0x25d)](_0x2e421a,_0x3ac8ea,!0x1),_0x53566e=this[_0x1c051c(0x1b3)][_0x1c051c(0x25d)](_0x97276b,_0x3c4f05,!0x1);if(_0x5cbc46[_0x1c051c(0x34a)](_0x35bb3a))throw _0x35bb3a[_0x1c051c(0x46d)];if(_0x5cbc46[_0x1c051c(0x34a)](_0x53566e))throw _0x53566e[_0x1c051c(0x46d)];_0x470971[_0x1c051c(0x456)]({..._0x5e77a1[_0x46abfb],'undoState':_0x35bb3a[_0x1c051c(0x1ed)][_0x1c051c(0x44d)],'redoState':_0x53566e[_0x1c051c(0x1ed)]['params']}),_0x2e421a=_0x35bb3a[_0x1c051c(0x1fb)],_0x97276b=_0x53566e[_0x1c051c(0x1fb)];}_0x2e421a=_0x187eaa['Tools'][_0x1c051c(0x388)](_0x1800f6[_0x1c051c(0x1d2)][0x0]),_0x97276b=_0x187eaa[_0x1c051c(0x297)][_0x1c051c(0x388)](_0x1800f6[_0x1c051c(0x1d2)][0x0]);for(let _0x2eaff1=_0x4ee7c2['length']-0x1;_0x2eaff1>=0x0;_0x2eaff1--){const _0x393db2={'id':_0x1c051c(0x3e6),'params':{'unitId':_0x4ee7c2[_0x2eaff1]['unitId'],..._0x4ee7c2[_0x2eaff1][_0x1c051c(0x366)]}},_0x5efc11={'id':_0x1c051c(0x3e6),'params':{'unitId':_0x4ee7c2[_0x2eaff1][_0x1c051c(0x38e)],..._0x4ee7c2[_0x2eaff1]['redoState']}},_0x532f0c=this[_0x1c051c(0x1b3)][_0x1c051c(0x25d)](_0x2e421a,_0x393db2,!0x1),_0x42c98d=this[_0x1c051c(0x1b3)][_0x1c051c(0x25d)](_0x97276b,_0x5efc11,!0x1);if(_0x5cbc46[_0x1c051c(0x34a)](_0x532f0c))throw _0x532f0c[_0x1c051c(0x46d)];if(_0x5cbc46[_0x1c051c(0x34a)](_0x42c98d))throw _0x42c98d[_0x1c051c(0x46d)];_0x5af935[_0x1c051c(0x456)]({..._0x4ee7c2[_0x2eaff1],'undoState':_0x532f0c[_0x1c051c(0x1ed)]['params'],'redoState':_0x42c98d[_0x1c051c(0x1ed)][_0x1c051c(0x44d)]}),_0x2e421a=_0x532f0c[_0x1c051c(0x1fb)],_0x97276b=_0x42c98d[_0x1c051c(0x1fb)];}this['_docStateChangeManagerService'][_0x1c051c(0x40d)](_0x2b61f7,{'history':_0x470971,'collaboration':_0x5af935});}};_0x3f089a=_0x211f49([_0x3f01f2(0x0,_0x187eaa['Inject'](_0x187eaa[_0x175e1d(0x349)])),_0x3f01f2(0x1,_0x5cbc46[_0x175e1d(0x383)]),_0x3f01f2(0x2,_0x187eaa['Inject'](_0x4019f2[_0x175e1d(0x2ba)]))],_0x3f089a);var _0x447e98=Object['getOwnPropertyDescriptor'],_0x3a7f8e=(_0x1f4a60,_0x79987d,_0x3296a6,_0x18c7d0)=>{const _0x397d0d=_0x175e1d;for(var _0x5e97e5=_0x18c7d0>0x1?void 0x0:_0x18c7d0?_0x447e98(_0x79987d,_0x3296a6):_0x79987d,_0x4d32d0=_0x1f4a60[_0x397d0d(0x2d7)]-0x1,_0x7c0bd4;_0x4d32d0>=0x0;_0x4d32d0--)(_0x7c0bd4=_0x1f4a60[_0x4d32d0])&&(_0x5e97e5=_0x7c0bd4(_0x5e97e5)||_0x5e97e5);return _0x5e97e5;},_0x3dd7b4=(_0xfcf7fa,_0x242936)=>(_0x196d92,_0x49c83f)=>_0x242936(_0x196d92,_0x49c83f,_0xfcf7fa);let _0x1c5dab=class{constructor(_0x50bad7,_0x29d345){const _0x3833e9=_0x175e1d;this[_0x3833e9(0x1c8)]=_0x50bad7,this[_0x3833e9(0x1b3)]=_0x29d345;}[_0x175e1d(0x3f8)](_0x4fae9f){const _0x5f3499=_0x175e1d;var _0xe2e1c5;const _0x16fbd8=this['_injector'][_0x5f3499(0x37b)](_0x4149e2['DocSelectionManagerService']),_0xcca414=(_0xe2e1c5=_0x16fbd8[_0x5f3499(0x304)]())!=null?_0xe2e1c5:[];if(_0xcca414[_0x5f3499(0x2d7)]===0x0)return;const _0xcf072b=_0x4fae9f[_0x5f3499(0x345)],_0x336f92=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xcf072b,'actions':null,'textRanges':_0xcca414}}],_0x36ad2f=this['_transformService'][_0x5f3499(0x2b2)](_0x4fae9f,_0x336f92);if(!_0x5cbc46['isTransformMutationsWithChangesetSuccess'](_0x36ad2f))throw _0x36ad2f[_0x5f3499(0x46d)];const _0x2a7680=_0x36ad2f[_0x5f3499(0x1ed)][0x0][_0x5f3499(0x44d)][_0x5f3499(0x44b)];Array[_0x5f3499(0x471)](_0x2a7680)&&_0x2a7680[_0x5f3499(0x2d7)]&&_0x16fbd8[_0x5f3499(0x287)](_0x2a7680,{'unitId':_0xcf072b,'subUnitId':_0xcf072b},!0x1);}};_0x1c5dab=_0x3a7f8e([_0x3dd7b4(0x0,_0x187eaa['Inject'](_0x187eaa[_0x175e1d(0x349)])),_0x3dd7b4(0x1,_0x5cbc46[_0x175e1d(0x383)])],_0x1c5dab);var _0x18aeeb=Object[_0x175e1d(0x302)],_0xab9b39=(_0x4bf3f7,_0x425008,_0x3f220c,_0x36581b)=>{const _0x24b0aa=_0x175e1d;for(var _0x5dc264=_0x36581b>0x1?void 0x0:_0x36581b?_0x18aeeb(_0x425008,_0x3f220c):_0x425008,_0x33831b=_0x4bf3f7[_0x24b0aa(0x2d7)]-0x1,_0x5c88c7;_0x33831b>=0x0;_0x33831b--)(_0x5c88c7=_0x4bf3f7[_0x33831b])&&(_0x5dc264=_0x5c88c7(_0x5dc264)||_0x5dc264);return _0x5dc264;},_0xb0c4f7=(_0x2c22fa,_0x416854)=>(_0x40ba9c,_0x4ac6e5)=>_0x416854(_0x40ba9c,_0x4ac6e5,_0x2c22fa);let _0x28aa6e=class extends _0x187eaa[_0x175e1d(0x32b)]{constructor(_0x45abea,_0x374bcf,_0x88cba8,_0x176583,_0xfa978a,_0x5edb56,_0x19e6c9,_0x2a7c79){const _0x5c866f=_0x175e1d;super(),_0x3d2368(this,_0x5c866f(0x40f),new _0x12c3e7['BehaviorSubject'](_0xd5bbf8[_0x5c866f(0x34c)][_0x5c866f(0x435)])),(this[_0x5c866f(0x3a3)]=_0x45abea,this['_collaborationController']=_0x374bcf,this[_0x5c866f(0x1ca)]=_0x88cba8,this[_0x5c866f(0x432)]=_0x176583,this['_docTransformSelectionsService']=_0xfa978a,this[_0x5c866f(0x232)]=_0x5edb56,this[_0x5c866f(0x43f)]=_0x19e6c9,this[_0x5c866f(0x1ec)]=_0x2a7c79,this[_0x5c866f(0x1b1)]());}[_0x175e1d(0x1b1)](){const _0x1910a3=_0x175e1d;this[_0x1910a3(0x307)](this['_collaborationController'][_0x1910a3(0x25e)][_0x1910a3(0x405)](_0x24aaf2=>{const _0x187dea=_0x1910a3,_0xbde938=this[_0x187dea(0x3a3)][_0x187dea(0x2ff)][_0x187dea(0x405)](_0x41ee4f=>{const _0x769625=_0x187dea;if(_0x41ee4f==null)return;const {unitId:_0x36b7de,redoState:_0xc95b73,commandId:_0x4d440e}=_0x41ee4f;if(_0x36b7de!==_0x24aaf2['unitID'])return;const _0x2e757d={'id':_0x4d440e,'type':_0x187eaa[_0x769625(0x3a1)][_0x769625(0x47a)],'params':{'unitId':_0x36b7de,'actions':_0xc95b73[_0x769625(0x200)],'textRanges':null}};_0x24aaf2[_0x769625(0x3c1)](_0x2e757d);});if(_0x24aaf2[_0x187dea(0x307)](_0xbde938),_0x24aaf2 instanceof _0xd5bbf8[_0x187dea(0x283)]){const _0x3ef1da={'onTransformIME':_0x265b00=>this['_docTransformIMECacheService'][_0x187dea(0x217)](_0x265b00),'onTransformState':_0xf5d8b2=>this['_docTransformStateCacheService'][_0x187dea(0x28b)](_0xf5d8b2),'onTransformSelections':_0x30cdd6=>this[_0x187dea(0x2c7)][_0x187dea(0x3f8)](_0x30cdd6),'onSyncEditingCollabCursor':_0x50c763=>this[_0x187dea(0x232)][_0x187dea(0x21e)](_0x50c763),'onTransformRemoteChangesetByIMECache':_0x423917=>this[_0x187dea(0x1ca)][_0x187dea(0x276)](_0x423917),'onTransformRemoteChangesetByStateCache':_0x37d6ac=>this[_0x187dea(0x432)][_0x187dea(0x276)](_0x37d6ac)};_0x24aaf2[_0x187dea(0x438)](_0x3ef1da);}}));}};_0x28aa6e=_0xab9b39([_0xb0c4f7(0x0,_0x187eaa[_0x175e1d(0x374)](_0x4019f2[_0x175e1d(0x2ba)])),_0xb0c4f7(0x1,_0x187eaa[_0x175e1d(0x374)](_0xd5bbf8['CollaborationController'])),_0xb0c4f7(0x2,_0x187eaa['Inject'](_0x5df55d)),_0xb0c4f7(0x3,_0x187eaa[_0x175e1d(0x374)](_0x3f089a)),_0xb0c4f7(0x4,_0x187eaa[_0x175e1d(0x374)](_0x1c5dab)),_0xb0c4f7(0x5,_0x187eaa[_0x175e1d(0x374)](_0x18bae6)),_0xb0c4f7(0x6,_0x2695dd[_0x175e1d(0x37d)]),_0xb0c4f7(0x7,_0x187eaa[_0x175e1d(0x374)](_0x187eaa[_0x175e1d(0x1de)]))],_0x28aa6e);var _0x3d4f3d=(_0x56adbe=>(_0x56adbe[_0x56adbe[_0x175e1d(0x467)]=0x0]=_0x175e1d(0x467),_0x56adbe[_0x56adbe['OK']=0x1]='OK',_0x56adbe[_0x56adbe[_0x175e1d(0x460)]=0x2]=_0x175e1d(0x460),_0x56adbe[_0x56adbe[_0x175e1d(0x3f6)]=0x3]=_0x175e1d(0x3f6),_0x56adbe[_0x56adbe[_0x175e1d(0x2bc)]=0x4]='NOT_FOUND',_0x56adbe[_0x56adbe['UNAUTHENTICATED']=0x5]=_0x175e1d(0x221),_0x56adbe[_0x56adbe[_0x175e1d(0x2b6)]=0x6]='ALREADY_EXISTS',_0x56adbe[_0x56adbe[_0x175e1d(0x472)]=0x7]=_0x175e1d(0x472),_0x56adbe[_0x56adbe['TOO_MANY_REQUESTS']=0x8]=_0x175e1d(0x3be),_0x56adbe[_0x56adbe[_0x175e1d(0x410)]=0x9]=_0x175e1d(0x410),_0x56adbe[_0x56adbe[_0x175e1d(0x3d3)]=0xa]=_0x175e1d(0x3d3),_0x56adbe[_0x56adbe[_0x175e1d(0x3fb)]=0xb]=_0x175e1d(0x3fb),_0x56adbe[_0x56adbe[_0x175e1d(0x1c6)]=0xc]=_0x175e1d(0x1c6),_0x56adbe[_0x56adbe['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x175e1d(0x3f0),_0x56adbe[_0x56adbe[_0x175e1d(0x358)]=0xe]=_0x175e1d(0x358),_0x56adbe[_0x56adbe[_0x175e1d(0x25f)]=0xf]=_0x175e1d(0x25f),_0x56adbe[_0x56adbe[_0x175e1d(0x2dc)]=0x10]=_0x175e1d(0x2dc),_0x56adbe[_0x56adbe[_0x175e1d(0x206)]=0x64]=_0x175e1d(0x206),_0x56adbe[_0x56adbe[_0x175e1d(0x45b)]=0x65]=_0x175e1d(0x45b),_0x56adbe[_0x56adbe[_0x175e1d(0x466)]=0xc9]=_0x175e1d(0x466),_0x56adbe[_0x56adbe[_0x175e1d(0x2a7)]=0xca]='USER_IS_ANONYMOUS',_0x56adbe[_0x56adbe[_0x175e1d(0x2dd)]=0x1389]=_0x175e1d(0x2dd),_0x56adbe[_0x56adbe[_0x175e1d(0x2a3)]=0x1771]=_0x175e1d(0x2a3),_0x56adbe[_0x56adbe[_0x175e1d(0x1e5)]=0x1772]=_0x175e1d(0x1e5),_0x56adbe[_0x56adbe[_0x175e1d(0x3dc)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x56adbe[_0x56adbe[_0x175e1d(0x27c)]=0x1b59]='APPLY_REJECT',_0x56adbe[_0x56adbe[_0x175e1d(0x32f)]=0x1b5a]=_0x175e1d(0x32f),_0x56adbe[_0x56adbe[_0x175e1d(0x43b)]=0x1b5b]=_0x175e1d(0x43b),_0x56adbe[_0x56adbe[_0x175e1d(0x20e)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x56adbe[_0x56adbe[_0x175e1d(0x30b)]=0x1b5d]=_0x175e1d(0x30b),_0x56adbe[_0x56adbe['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x56adbe[_0x56adbe['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x175e1d(0x373),_0x56adbe[_0x56adbe[_0x175e1d(0x2aa)]=0x232a]=_0x175e1d(0x2aa),_0x56adbe[_0x56adbe[_0x175e1d(0x33f)]=0x232b]=_0x175e1d(0x33f),_0x56adbe[_0x56adbe['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x175e1d(0x2da),_0x56adbe[_0x56adbe['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x56adbe[_0x56adbe[_0x175e1d(0x2e5)]=0x2711]=_0x175e1d(0x2e5),_0x56adbe[_0x56adbe['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x175e1d(0x1d9),_0x56adbe[_0x56adbe[_0x175e1d(0x41a)]=0x2713]=_0x175e1d(0x41a),_0x56adbe[_0x56adbe[_0x175e1d(0x331)]=0x2714]=_0x175e1d(0x331),_0x56adbe[_0x56adbe[_0x175e1d(0x2fc)]=0x271a]=_0x175e1d(0x2fc),_0x56adbe[_0x56adbe['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x175e1d(0x231),_0x56adbe[_0x56adbe[_0x175e1d(0x2ce)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x56adbe[_0x56adbe[_0x175e1d(0x2d8)]=0x271d]=_0x175e1d(0x2d8),_0x56adbe[_0x56adbe['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x56adbe[_0x56adbe[_0x175e1d(0x29a)]=0x271f]=_0x175e1d(0x29a),_0x56adbe[_0x56adbe['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x175e1d(0x2f8),_0x56adbe[_0x56adbe[_0x175e1d(0x3eb)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x56adbe[_0x56adbe['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x175e1d(0x29b),_0x56adbe[_0x56adbe[_0x175e1d(0x454)]=0x2ee2]='INVALID_INVITE_CODE',_0x56adbe[_0x56adbe[_0x175e1d(0x352)]=0x2ee3]=_0x175e1d(0x352),_0x56adbe[_0x56adbe[_0x175e1d(0x2a6)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x56adbe[_0x56adbe[_0x175e1d(0x1ef)]=0x2ee5]=_0x175e1d(0x1ef),_0x56adbe[_0x56adbe['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x175e1d(0x356),_0x56adbe[_0x56adbe['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x175e1d(0x451),_0x56adbe[_0x56adbe['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x175e1d(0x1f0),_0x56adbe[_0x56adbe['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x175e1d(0x309),_0x56adbe[_0x56adbe[_0x175e1d(0x470)]=0x36b2]=_0x175e1d(0x470),_0x56adbe[_0x56adbe['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x175e1d(0x277),_0x56adbe[_0x56adbe[_0x175e1d(0x34f)]=0x36b4]=_0x175e1d(0x34f),_0x56adbe[_0x56adbe['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x56adbe[_0x56adbe[_0x175e1d(0x1e3)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x56adbe[_0x56adbe[_0x175e1d(0x3db)]=0x37dd]=_0x175e1d(0x3db),_0x56adbe[_0x56adbe['REDEMPTION_INVALID_CODE']=0x3a99]='REDEMPTION_INVALID_CODE',_0x56adbe[_0x56adbe[_0x175e1d(0x3d0)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x56adbe[_0x56adbe[_0x175e1d(0x368)]=0x3a9b]=_0x175e1d(0x368),_0x56adbe[_0x56adbe[_0x175e1d(0x247)]=0x3a9c]=_0x175e1d(0x247),_0x56adbe[_0x56adbe[_0x175e1d(0x3a6)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x56adbe[_0x56adbe['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x175e1d(0x420),_0x56adbe[_0x56adbe[_0x175e1d(0x1df)]=0x3a9f]=_0x175e1d(0x1df),_0x56adbe[_0x56adbe[_0x175e1d(0x2ec)]=-0x1]=_0x175e1d(0x2ec),_0x56adbe))(_0x3d4f3d||{});function _0x4d1c9c(_0x12d2e4){const _0x14ff28=_0x175e1d;var _0x1072fb,_0xc8abb4;const _0x45f782=(_0x1072fb=_0x12d2e4[_0x14ff28(0x335)])==null?void 0x0:_0x1072fb['stage'],_0x15f87e=((_0xc8abb4=_0x12d2e4[_0x14ff28(0x335)])==null?void 0x0:_0xc8abb4[_0x14ff28(0x42c)])||0x0;return _0x45f782===_0x18796c[_0x14ff28(0x1bc)][_0x14ff28(0x2ea)]&&_0x15f87e>0x0;}function _0x2cd9a2(_0xdee9e5){const _0x13d196=_0x175e1d;return _0xdee9e5[_0x13d196(0x293)]===_0x18796c[_0x13d196(0x229)][_0x13d196(0x45e)];}var _0x45f7cf=Object[_0x175e1d(0x302)],_0x229e8c=(_0x262ac9,_0x36f9c0,_0x128765,_0x3fdeb1)=>{const _0x21222c=_0x175e1d;for(var _0x30c923=_0x3fdeb1>0x1?void 0x0:_0x3fdeb1?_0x45f7cf(_0x36f9c0,_0x128765):_0x36f9c0,_0x56d896=_0x262ac9[_0x21222c(0x2d7)]-0x1,_0x38bf3c;_0x56d896>=0x0;_0x56d896--)(_0x38bf3c=_0x262ac9[_0x56d896])&&(_0x30c923=_0x38bf3c(_0x30c923)||_0x30c923);return _0x30c923;},_0x472730=(_0x1b245b,_0x4e49b8)=>(_0x29c680,_0x38dd82)=>_0x4e49b8(_0x29c680,_0x38dd82,_0x1b245b);const _0x2fed2c='/universer-api/license/formula/limit/status',_0x4f9d80='/universer-api/license/formula/limit/start',_0x9ef9c5=_0x175e1d(0x41f);let _0x212cbf=class extends _0x187eaa['Disposable']{constructor(_0x9d3680,_0x22bc41,_0x5171e6,_0x496265,_0x1f15b1,_0x5d820b,_0x300bb8){const _0x25e16a=_0x175e1d;super(),_0x3d2368(this,_0x25e16a(0x347),null),_0x3d2368(this,_0x25e16a(0x3a7),0x0),_0x3d2368(this,'_currentUsage',0x0),_0x3d2368(this,_0x25e16a(0x3e9),[]),_0x3d2368(this,_0x25e16a(0x404),0x0),(this[_0x25e16a(0x43f)]=_0x9d3680,this[_0x25e16a(0x20b)]=_0x22bc41,this[_0x25e16a(0x321)]=_0x5171e6,this[_0x25e16a(0x3ee)]=_0x496265,this[_0x25e16a(0x286)]=_0x1f15b1,this['_logService']=_0x5d820b,this[_0x25e16a(0x1ec)]=_0x300bb8,this[_0x25e16a(0x457)]());}['_initCommandInterceptor'](){const _0x3fcf00=_0x175e1d;this['disposeWithMe'](this[_0x3fcf00(0x20b)][_0x3fcf00(0x1dc)]((_0x2bf19f,_0x4c6792)=>{const _0x2e62c9=_0x3fcf00;if(_0x2bf19f['id']!==_0x18796c[_0x2e62c9(0x22e)]['id'])return;const _0x2bc19b=_0x2bf19f[_0x2e62c9(0x44d)];if(!this[_0x2e62c9(0x2a0)](_0x2bc19b['dirtyRanges']))return;if(!this[_0x2e62c9(0x212)]())throw this[_0x2e62c9(0x2df)](_0x2bf19f,_0x4c6792),this['_showGuardMessage'](),new _0x187eaa['CanceledError']();})),this['disposeWithMe'](this[_0x3fcf00(0x20b)]['onCommandExecuted']((_0x29c3a7,_0x4cf8e8)=>{const _0x426920=_0x3fcf00;if(_0x29c3a7['id']!==_0x18796c[_0x426920(0x2a4)]['id'])return;const _0x4ba9bf=_0x29c3a7[_0x426920(0x44d)];if(_0x4d1c9c(_0x4ba9bf)){const _0x3d1a01=_0x187eaa[_0x426920(0x248)]();this[_0x426920(0x3e9)][_0x426920(0x1da)](_0x3d1a01),this[_0x426920(0x37f)](_0x3d1a01);}else{if(_0x2cd9a2(_0x4ba9bf)&&this[_0x426920(0x3e9)][_0x426920(0x2d7)]>0x0){const _0x86f5f9=this['_taskIds'][_0x426920(0x46b)]();this[_0x426920(0x253)](_0x86f5f9);}}}));}[_0x175e1d(0x279)](){const _0x5d9338=_0x175e1d;super[_0x5d9338(0x279)](),this[_0x5d9338(0x3ae)](),this[_0x5d9338(0x3e9)]=[],this[_0x5d9338(0x369)]=0x0,this[_0x5d9338(0x3a7)]=0x0,this[_0x5d9338(0x404)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0xdc9c9c,_0xcf0fe7){const _0x448529=_0x175e1d;for(let _0x4b713e=0x0;_0x4b713e<0x1e;_0x4b713e++)try{if(await this['_getFormulaLimitStatus'](),this[_0x448529(0x212)]()){this['_applyCommand'](_0xdc9c9c,_0xcf0fe7),this[_0x448529(0x43f)]['show']({'content':this[_0x448529(0x1ec)]['t'](_0x448529(0x403)),'type':_0x3b181[_0x448529(0x441)][_0x448529(0x2ae)]});return;}await new Promise(_0x18779a=>{const _0x38f261=_0x448529;this[_0x38f261(0x347)]=window['setTimeout'](_0x18779a,0x3e8);});}catch(_0x11473f){this[_0x448529(0x409)][_0x448529(0x46d)](_0x11473f);}this[_0x448529(0x43f)]['show']({'content':this[_0x448529(0x1ec)]['t'](_0x448529(0x42a)),'type':_0x3b181[_0x448529(0x441)][_0x448529(0x275)]});}[_0x175e1d(0x24f)](_0x514f20,_0x3cd10b){const _0x516feb=_0x175e1d;try{this['_commandService'][_0x516feb(0x2e1)](_0x514f20['id'],_0x514f20['params'],_0x3cd10b);}catch(_0x1402d2){this[_0x516feb(0x409)][_0x516feb(0x46d)](_0x1402d2);}}[_0x175e1d(0x2af)](_0x1b3669,_0x32049d){const _0x3e2544=_0x175e1d;_0x32049d<this['_lastResponseTimestamp']||(this['_lastResponseTimestamp']=_0x32049d,this['_maxFormulaLimit']=Number['parseInt'](_0x1b3669['maxFormulaLimit']),this[_0x3e2544(0x369)]=Number[_0x3e2544(0x37c)](_0x1b3669[_0x3e2544(0x382)]));}async[_0x175e1d(0x37f)](_0x117cb8){const _0x10903b=_0x175e1d;var _0x10ac0b,_0x39c8c7;const _0xa218d8=Date[_0x10903b(0x33a)]();try{const _0x278825=((_0x10ac0b=this[_0x10903b(0x321)][_0x10903b(0x252)](_0xd5bbf8[_0x10903b(0x21f)]))==null?void 0x0:_0x10ac0b[_0x10903b(0x1cc)])||_0x4f9d80,_0x174a51=(await this['_httpService'][_0x10903b(0x27a)](_0x278825,{'body':JSON[_0x10903b(0x3cc)]({'taskId':_0x117cb8})}))[_0x10903b(0x1b0)];if(((_0x39c8c7=_0x174a51['error'])==null?void 0x0:_0x39c8c7['code'])!==_0x3d4f3d['OK'])return;this['_setFormulaLimitStatus'](_0x174a51[_0x10903b(0x393)],_0xa218d8);}catch(_0x3ac078){this['_logService']['error'](_0x3ac078);}}async[_0x175e1d(0x39d)](_0x1328df){const _0x566ccc=_0x175e1d;var _0xd7fd8d,_0x1ec31e;const _0x1291d8=Date['now']();try{const _0x364bae=((_0xd7fd8d=this[_0x566ccc(0x321)][_0x566ccc(0x252)](_0xd5bbf8[_0x566ccc(0x21f)]))==null?void 0x0:_0xd7fd8d[_0x566ccc(0x230)])||_0x2fed2c,_0x49f99e=_0x1328df?_0x364bae+_0x566ccc(0x2b3)+encodeURIComponent(_0x1328df):_0x364bae,_0x44821b=(await this[_0x566ccc(0x3ee)][_0x566ccc(0x37b)](_0x49f99e))[_0x566ccc(0x1b0)];if(((_0x1ec31e=_0x44821b['error'])==null?void 0x0:_0x1ec31e[_0x566ccc(0x44e)])!==_0x3d4f3d['OK'])return;this[_0x566ccc(0x2af)](_0x44821b[_0x566ccc(0x393)],_0x1291d8);}catch(_0xf2f0ca){this['_logService']['error'](_0xf2f0ca);}}async[_0x175e1d(0x253)](_0xbd886d){const _0x14e4f9=_0x175e1d;var _0x364e81,_0x5aba04;const _0x298263=Date[_0x14e4f9(0x33a)]();try{const _0x4715b2=((_0x364e81=this[_0x14e4f9(0x321)][_0x14e4f9(0x252)](_0xd5bbf8['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x364e81[_0x14e4f9(0x2fa)])||_0x9ef9c5,_0x1045b9=(await this['_httpService'][_0x14e4f9(0x27a)](_0x4715b2,{'body':JSON[_0x14e4f9(0x3cc)]({'taskId':_0xbd886d})}))[_0x14e4f9(0x1b0)];if(((_0x5aba04=_0x1045b9[_0x14e4f9(0x46d)])==null?void 0x0:_0x5aba04['code'])!==_0x3d4f3d['OK'])return;this[_0x14e4f9(0x2af)](_0x1045b9[_0x14e4f9(0x393)],_0x298263);}catch(_0x55fb7a){this[_0x14e4f9(0x409)]['error'](_0x55fb7a);}}[_0x175e1d(0x212)](){const _0x36ddc8=_0x175e1d;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x36ddc8(0x3a7)]-this[_0x36ddc8(0x369)]>0x0;}[_0x175e1d(0x3ae)](){const _0x26f937=_0x175e1d;this['_pollingInterval']&&(clearTimeout(this[_0x26f937(0x347)]),this[_0x26f937(0x347)]=null);}['_showGuardMessage'](){const _0x4c0cf3=_0x175e1d;this[_0x4c0cf3(0x43f)][_0x4c0cf3(0x255)]({'content':this[_0x4c0cf3(0x1ec)]['t']('formula.calculation.waiting'),'type':_0x3b181[_0x4c0cf3(0x441)]['Loading']});}['_hasFormulaInDirtyRanges'](_0x401bab){const _0x1da2e5=_0x175e1d;for(const _0x249bfb of _0x401bab){const {unitId:_0x4fa042,sheetId:_0x66926,range:_0x5c6792}=_0x249bfb,_0x175e2a=this[_0x1da2e5(0x286)][_0x1da2e5(0x3b9)](_0x4fa042);if(!_0x175e2a)continue;const _0x16c2c8=_0x175e2a[_0x1da2e5(0x381)](_0x66926);if(!_0x16c2c8)continue;const _0x4f6b41=_0x16c2c8[_0x1da2e5(0x2ca)]();for(let _0x1230b6=_0x5c6792[_0x1da2e5(0x301)];_0x1230b6<=_0x5c6792[_0x1da2e5(0x2c3)];_0x1230b6++)for(let _0x279a16=_0x5c6792[_0x1da2e5(0x27d)];_0x279a16<=_0x5c6792[_0x1da2e5(0x2cf)];_0x279a16++){const _0x45921d=_0x4f6b41[_0x1da2e5(0x2e8)](_0x1230b6,_0x279a16);if(_0x45921d&&(_0x187eaa[_0x1da2e5(0x422)](_0x45921d['f'])||_0x187eaa['isFormulaId'](_0x45921d['si'])))return!0x0;}}return!0x1;}};_0x212cbf=_0x229e8c([_0x472730(0x0,_0x187eaa[_0x175e1d(0x374)](_0x2695dd[_0x175e1d(0x37d)])),_0x472730(0x1,_0x187eaa[_0x175e1d(0x2fd)]),_0x472730(0x2,_0x187eaa[_0x175e1d(0x34e)]),_0x472730(0x3,_0x187eaa[_0x175e1d(0x374)](_0x1b946c[_0x175e1d(0x26a)])),_0x472730(0x4,_0x187eaa[_0x175e1d(0x359)]),_0x472730(0x5,_0x187eaa[_0x175e1d(0x205)]),_0x472730(0x6,_0x187eaa[_0x175e1d(0x374)](_0x187eaa[_0x175e1d(0x1de)]))],_0x212cbf);var _0x3cde18=Object[_0x175e1d(0x302)],_0x4d4463=(_0x503321,_0x4e24f4,_0x4135d6,_0x1bbd78)=>{const _0x57504f=_0x175e1d;for(var _0x5ccdf7=_0x1bbd78>0x1?void 0x0:_0x1bbd78?_0x3cde18(_0x4e24f4,_0x4135d6):_0x4e24f4,_0x2f5626=_0x503321[_0x57504f(0x2d7)]-0x1,_0x333b6f;_0x2f5626>=0x0;_0x2f5626--)(_0x333b6f=_0x503321[_0x2f5626])&&(_0x5ccdf7=_0x333b6f(_0x5ccdf7)||_0x5ccdf7);return _0x5ccdf7;},_0x540eb3=(_0x44326a,_0xf03e65)=>(_0x1578b4,_0x133ef3)=>_0xf03e65(_0x1578b4,_0x133ef3,_0x44326a);let _0x20c49f=class extends _0x187eaa[_0x175e1d(0x32b)]{constructor(_0x2e1351,_0x4f95b3,_0x263f63){const _0x198f9d=_0x175e1d;super(),_0x3d2368(this,_0x198f9d(0x47d),new Map()),_0x3d2368(this,_0x198f9d(0x450),new Map()),_0x3d2368(this,'_disabled',!0x1),(this['_configService']=_0x2e1351,this[_0x198f9d(0x3b2)]=_0x4f95b3,this[_0x198f9d(0x465)]=_0x263f63);}[_0x175e1d(0x1f3)](){const _0x1d8a3e=_0x175e1d;this[_0x1d8a3e(0x2c4)]=!0x0;}[_0x175e1d(0x3cd)](){const _0x54fd61=_0x175e1d;this[_0x54fd61(0x2c4)]=!0x1;}get['saveTaskMap'](){const _0x31cc22=_0x175e1d;return this[_0x31cc22(0x450)];}['dispose'](){const _0x3f6b0c=_0x175e1d;this[_0x3f6b0c(0x303)]()['then'](()=>super[_0x3f6b0c(0x279)]());}async[_0x175e1d(0x1e6)](_0x5868b4){const _0x16a082=_0x175e1d;return this[_0x16a082(0x2c4)]?null:this[_0x16a082(0x3b2)]['getItem'](_0xd5bbf8[_0x16a082(0x26b)](_0x5868b4));}async[_0x175e1d(0x46f)](_0x2b4086,_0x4a7fd3){const _0x139c1c=_0x175e1d;return!!this[_0x139c1c(0x3b2)][_0x139c1c(0x31a)](_0x2b4086,_0x4a7fd3);}[_0x175e1d(0x270)](_0x45bf06,_0x23a426,_0x5ce5fa,_0x254f21){const _0x3bd221=_0x175e1d,_0x57e6a0=this[_0x3bd221(0x465)][_0x3bd221(0x412)](_0x45bf06);this[_0x3bd221(0x47d)][_0x3bd221(0x2ef)](_0x45bf06,{'unitID':_0x45bf06,'type':_0x23a426,'awaitingChangeset':_0x5ce5fa,'mutations':_0x254f21,'rev':_0x57e6a0}),this[_0x3bd221(0x450)][_0x3bd221(0x2f5)](_0x45bf06)||this[_0x3bd221(0x1ab)](_0x45bf06);}[_0x175e1d(0x1ab)](_0x2789be){const _0x3dffc5=_0x175e1d,_0x48f363=this[_0x3dffc5(0x1cd)]();_0x48f363===0x0?this['_saveCache'](_0x2789be):this[_0x3dffc5(0x450)]['set'](_0x2789be,setTimeout(()=>this[_0x3dffc5(0x380)](_0x2789be),_0x48f363));}[_0x175e1d(0x1cd)](){const _0x3b4d8e=_0x175e1d;var _0x363d22;return(_0x363d22=this[_0x3b4d8e(0x321)][_0x3b4d8e(0x252)](_0xd5bbf8[_0x3b4d8e(0x3ba)]))!=null?_0x363d22:_0xd5bbf8[_0x3b4d8e(0x416)];}[_0x175e1d(0x380)](_0x27ffeb){const _0x3f81fd=_0x175e1d,_0x42d247=this[_0x3f81fd(0x450)]['get'](_0x27ffeb);return _0x42d247!==void 0x0&&window[_0x3f81fd(0x30a)](_0x42d247),this[_0x3f81fd(0x3b2)][_0x3f81fd(0x31a)](_0xd5bbf8['getLocalCacheKey'](_0x27ffeb),this['_cachedData'][_0x3f81fd(0x37b)](_0x27ffeb))[_0x3f81fd(0x1e4)](()=>this['_saveTaskMap'][_0x3f81fd(0x2a2)](_0x27ffeb));}async[_0x175e1d(0x303)](){const _0x3dc550=_0x175e1d,_0x111d4a=[];this[_0x3dc550(0x450)][_0x3dc550(0x1d4)]((_0x4b1aa5,_0x405d64)=>{const _0x396d34=_0x3dc550;window[_0x396d34(0x30a)](_0x4b1aa5),_0x111d4a[_0x396d34(0x1da)](this[_0x396d34(0x380)](_0x405d64)[_0x396d34(0x1e4)](()=>{const _0x419e19=_0x396d34;this[_0x419e19(0x450)][_0x419e19(0x2a2)](_0x405d64);}));}),await Promise[_0x3dc550(0x384)](_0x111d4a);}};_0x20c49f=_0x4d4463([_0x540eb3(0x0,_0x187eaa[_0x175e1d(0x34e)]),_0x540eb3(0x1,_0x187eaa['ILocalStorageService']),_0x540eb3(0x2,_0x187eaa[_0x175e1d(0x374)](_0x5cbc46[_0x175e1d(0x39f)]))],_0x20c49f);class _0x1762e1 extends _0x187eaa[_0x175e1d(0x387)]{constructor(){const _0x2ea366=_0x175e1d;super(),_0x3d2368(this,_0x2ea366(0x1b4)),this['urlChange$']=_0x12c3e7[_0x2ea366(0x291)](window,_0x2ea366(0x32e))[_0x2ea366(0x273)](_0x12c3e7[_0x2ea366(0x2b7)](this[_0x2ea366(0x264)]),_0x12c3e7[_0x2ea366(0x2a9)](0x1),_0x12c3e7['mapTo'](void 0x0));}[_0x175e1d(0x2e2)](_0x2a9d62,_0x28031f,_0x54b606=!0x1){const _0xabd4ad=_0x175e1d,_0x1e56cb=new URL(window['location'][_0xabd4ad(0x1c3)]);_0x1e56cb[_0xabd4ad(0x340)]['set'](_0x2a9d62,_0x28031f),_0x54b606?window[_0xabd4ad(0x3a0)]['replaceState']('','',_0x1e56cb[_0xabd4ad(0x29d)]()):window[_0xabd4ad(0x3a0)][_0xabd4ad(0x1f4)]('','',_0x1e56cb[_0xabd4ad(0x29d)]());}[_0x175e1d(0x3fd)](_0x4116c9,_0x5f4b55=!0x1){const _0x5cff0d=_0x175e1d,_0xb5ef9c=new URL(window['location'][_0x5cff0d(0x1c3)]);_0xb5ef9c[_0x5cff0d(0x340)][_0x5cff0d(0x2a2)](_0x4116c9),_0x5f4b55?window[_0x5cff0d(0x3a0)][_0x5cff0d(0x2b8)]('','',_0xb5ef9c['toString']()):window[_0x5cff0d(0x3a0)][_0x5cff0d(0x1f4)]('','',_0xb5ef9c['toString']());}['getParam'](_0x1bcd7d){const _0x4a0bd8=_0x175e1d;var _0x141e81;return(_0x141e81=new URL(window[_0x4a0bd8(0x3fe)]['href'])[_0x4a0bd8(0x340)][_0x4a0bd8(0x37b)](_0x1bcd7d))!=null?_0x141e81:void 0x0;}}var _0x278533=Object[_0x175e1d(0x43c)],_0x23972d=Object[_0x175e1d(0x302)],_0x1ce59a=(_0x1a1f03,_0x483c85,_0x248568)=>_0x483c85 in _0x1a1f03?_0x278533(_0x1a1f03,_0x483c85,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x248568}):_0x1a1f03[_0x483c85]=_0x248568,_0x47734c=(_0x560613,_0x2c9173,_0x4419a4,_0x42f5f4)=>{const _0x5c6135=_0x175e1d;for(var _0x5e0d89=_0x42f5f4>0x1?void 0x0:_0x42f5f4?_0x23972d(_0x2c9173,_0x4419a4):_0x2c9173,_0x2dbcfd=_0x560613[_0x5c6135(0x2d7)]-0x1,_0x3d75e6;_0x2dbcfd>=0x0;_0x2dbcfd--)(_0x3d75e6=_0x560613[_0x2dbcfd])&&(_0x5e0d89=_0x3d75e6(_0x5e0d89)||_0x5e0d89);return _0x5e0d89;},_0x4d81f6=(_0x31b6a4,_0x1c7642)=>(_0x5bd915,_0x55c26d)=>_0x1c7642(_0x5bd915,_0x55c26d,_0x31b6a4),_0x56c3c6=(_0x431f06,_0x4bdede,_0x8af515)=>_0x1ce59a(_0x431f06,_0x4bdede+'',_0x8af515);const _0x18aeca=_0x175e1d(0x241);_0x5401e2[_0x175e1d(0x211)]=class extends _0x187eaa[_0x175e1d(0x300)]{constructor(_0x1d8e22=_0x5c78bb,_0x178330,_0x80ad0,_0x503404){const _0x5438e1=_0x175e1d;super(),this[_0x5438e1(0x35e)]=_0x1d8e22,this[_0x5438e1(0x1f9)]=_0x178330,this[_0x5438e1(0x1c8)]=_0x80ad0,this['_configService']=_0x503404;const {..._0x2d9385}=_0x187eaa[_0x5438e1(0x313)]({},_0x5c78bb,this[_0x5438e1(0x35e)]);this[_0x5438e1(0x321)]['setConfig'](_0x18ecfd,_0x2d9385);}[_0x175e1d(0x1af)](){const _0x24f16e=_0x175e1d;this[_0x24f16e(0x2db)](),this[_0x24f16e(0x397)]();}[_0x175e1d(0x363)](){const _0x3c18df=_0x175e1d;this[_0x3c18df(0x31c)]();}[_0x175e1d(0x2db)](){const _0x81c03e=_0x175e1d;var _0x509cf8;const _0x3e506d=[[_0x25c1b1],[_0x212cbf],[_0x1c5dab],[_0x5df55d],[_0x3f089a],[_0x18bae6],[_0x5a3963,{'useClass':_0x1762e1}],[_0x1b946c[_0x81c03e(0x43e)],{'useClass':_0x1b946c[_0x81c03e(0x285)]}],[_0xd5bbf8[_0x81c03e(0x328)],{'useClass':_0x20c49f}],[_0x5401e2[_0x81c03e(0x296)]],[_0x28aa6e],[_0x279622],[_0x250edb],[_0x3c9a3d],[_0x5401e2[_0x81c03e(0x433)]]];_0x187eaa[_0x81c03e(0x365)](this[_0x81c03e(0x1c8)],_0x187eaa['mergeOverrideWithDependencies'](_0x3e506d,(_0x509cf8=this[_0x81c03e(0x35e)])==null?void 0x0:_0x509cf8[_0x81c03e(0x3c8)]));}[_0x175e1d(0x31c)](){const _0x545762=_0x175e1d;this[_0x545762(0x307)](this[_0x545762(0x1f9)][_0x545762(0x3ca)](_0x187eaa['UniverInstanceType'][_0x545762(0x20c)],[_0x3d4348])),this[_0x545762(0x307)](this[_0x545762(0x1f9)][_0x545762(0x3ca)](_0x187eaa[_0x545762(0x23a)]['UNIVER_SHEET'],[_0x34f5aa]));}[_0x175e1d(0x397)](){const _0x29b559=_0x175e1d;_0x187eaa['touchDependencies'](this[_0x29b559(0x1c8)],[[_0x250edb],[_0x5401e2[_0x29b559(0x296)]],[_0x28aa6e],[_0x279622],[_0x5401e2['CollaborationDataLoaderController']],[_0x212cbf]]);}},_0x56c3c6(_0x5401e2['UniverCollaborationClientUIPlugin'],_0x175e1d(0x3ac),_0x18aeca),_0x5401e2[_0x175e1d(0x211)]=_0x47734c([_0x187eaa[_0x175e1d(0x458)](_0xd5bbf8['UniverCollaborationClientPlugin']),_0x4d81f6(0x1,_0x34e554[_0x175e1d(0x418)]),_0x4d81f6(0x2,_0x187eaa['Inject'](_0x187eaa[_0x175e1d(0x349)])),_0x4d81f6(0x3,_0x187eaa[_0x175e1d(0x34e)])],_0x5401e2[_0x175e1d(0x211)]);var _0xa24873=Object[_0x175e1d(0x302)],_0x2fe506=(_0x30d3ba,_0x168bea,_0x29ec2e,_0x542f34)=>{const _0x9f24e5=_0x175e1d;for(var _0x1a57eb=_0x542f34>0x1?void 0x0:_0x542f34?_0xa24873(_0x168bea,_0x29ec2e):_0x168bea,_0x4834ae=_0x30d3ba[_0x9f24e5(0x2d7)]-0x1,_0x2855ec;_0x4834ae>=0x0;_0x4834ae--)(_0x2855ec=_0x30d3ba[_0x4834ae])&&(_0x1a57eb=_0x2855ec(_0x1a57eb)||_0x1a57eb);return _0x1a57eb;},_0x3846b8=(_0xdf5aa7,_0x4363ed)=>(_0x2cf015,_0x3996ab)=>_0x4363ed(_0x2cf015,_0x3996ab,_0xdf5aa7);_0x5401e2[_0x175e1d(0x3f2)]=class extends _0xd5bbf8['CollaborationSocketService']{constructor(_0x440471,_0x720cd9,_0x379827,_0x25e7d4,_0x3bd943){super(_0x440471,_0x720cd9,_0x379827,_0x25e7d4,_0x3bd943);}async[_0x175e1d(0x2cc)](_0x2c6870){const _0x3f756f=_0x175e1d,_0x433446=await this[_0x3f756f(0x357)](),_0x5ee989=this[_0x3f756f(0x42d)](_0x2c6870,_0x433446);return this['_doCreateSocket'](_0x5ee989);}[_0x175e1d(0x42d)](_0x4e94ea,_0x1eadd5){const _0x356b15=_0x175e1d,_0x36b369=typeof window>'u'?new URL(_0x4e94ea):new URL(_0x4e94ea,window['location'][_0x356b15(0x395)]);_0x36b369['searchParams'][_0x356b15(0x2ef)](_0x356b15(0x3bb),_0x1eadd5);const _0x33531f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x356b15(0x3fe)][_0x356b15(0x239)]);return _0x33531f[_0x356b15(0x37b)](_0x356b15(0x1c2))&&_0x36b369[_0x356b15(0x340)][_0x356b15(0x2ef)](_0x356b15(0x1c2),_0x33531f[_0x356b15(0x37b)](_0x356b15(0x1c2))),_0x36b369['toString']();}async[_0x175e1d(0x357)](){const _0x14e14f=_0x175e1d;var _0x26a88d,_0x31108e,_0x29c0e8;const _0x376d36=this[_0x14e14f(0x321)][_0x14e14f(0x252)](_0xd5bbf8[_0x14e14f(0x21f)]),_0x4a3316=(_0x26a88d=_0x376d36==null?void 0x0:_0x376d36['wsSessionTicketUrl'])!=null?_0x26a88d:_0xd5bbf8[_0x14e14f(0x2ee)];return(_0x29c0e8=(_0x31108e=(await this[_0x14e14f(0x3ee)][_0x14e14f(0x37b)](_0x4a3316,{'headers':{'Content-Type':_0x14e14f(0x3f5)}}))[_0x14e14f(0x1b0)])==null?void 0x0:_0x31108e['ticket'])!=null?_0x29c0e8:'';}},_0x5401e2[_0x175e1d(0x3f2)]=_0x2fe506([_0x3846b8(0x0,_0x187eaa[_0x175e1d(0x374)](_0x187eaa['Injector'])),_0x3846b8(0x1,_0x187eaa[_0x175e1d(0x374)](_0x1b946c['HTTPService'])),_0x3846b8(0x2,_0x187eaa[_0x175e1d(0x34e)]),_0x3846b8(0x3,_0x187eaa[_0x175e1d(0x205)]),_0x3846b8(0x4,_0x5cbc46[_0x175e1d(0x443)])],_0x5401e2['BrowserCollaborationSocketService']);var _0x3859cd=Object[_0x175e1d(0x302)],_0x57ccbe=(_0xb43fc5,_0x5b5149,_0x2a5e01,_0x5b5539)=>{const _0x454384=_0x175e1d;for(var _0x561fa5=_0x5b5539>0x1?void 0x0:_0x5b5539?_0x3859cd(_0x5b5149,_0x2a5e01):_0x5b5149,_0x215831=_0xb43fc5[_0x454384(0x2d7)]-0x1,_0x45a61e;_0x215831>=0x0;_0x215831--)(_0x45a61e=_0xb43fc5[_0x215831])&&(_0x561fa5=_0x45a61e(_0x561fa5)||_0x561fa5);return _0x561fa5;},_0x49df62=(_0x243e19,_0x37e2a9)=>(_0x5844ca,_0x12c6cd)=>_0x37e2a9(_0x5844ca,_0x12c6cd,_0x243e19);_0x5401e2[_0x175e1d(0x421)]=class extends _0x187eaa[_0x175e1d(0x32b)]{constructor(_0x5579db,_0x33fff2,_0x2e4336){const _0x1c2e86=_0x175e1d;super(),this[_0x1c2e86(0x28e)]=_0x5579db,this[_0x1c2e86(0x3ee)]=_0x33fff2,this[_0x1c2e86(0x321)]=_0x2e4336;}async['runOnServer'](_0x5e3867,_0x54795c,_0x5a4bde,..._0x83a04c){const _0x28a170=_0x175e1d;var _0xde3538,_0xfe2d8f,_0x17f14a,_0x1b7449;const _0x157dc3=this[_0x28a170(0x28e)][_0x28a170(0x249)]();if(!_0x157dc3)throw new Error(_0x28a170(0x219));const _0x3c2135=((_0xde3538=this[_0x28a170(0x321)][_0x28a170(0x252)](_0xd5bbf8[_0x28a170(0x281)]))!=null?_0xde3538:_0xd5bbf8[_0x28a170(0x268)])+'/'+_0x5e3867+_0x28a170(0x226)+_0x54795c,_0x187b8d=new URL(window['location'][_0x28a170(0x1c3)]),_0x3c338b={'scriptId':_0x5e3867,'runId':(_0xfe2d8f=_0x187b8d['searchParams'][_0x28a170(0x37b)](_0x28a170(0x1c2)))!=null?_0xfe2d8f:'','function':_0x54795c,'unitId':_0x157dc3[_0x28a170(0x3b5)](),'argsOfFunction':JSON['stringify'](_0x83a04c),'invokeId':(_0x17f14a=_0x5a4bde[_0x28a170(0x246)])!=null?_0x17f14a:'','executionId':(_0x1b7449=_0x5a4bde[_0x28a170(0x40c)])!=null?_0x1b7449:''};try{const _0x2c21e6=await this['_httpService'][_0x28a170(0x27a)](_0x3c2135,{'body':_0x3c338b});return _0x2c21e6[_0x28a170(0x1b0)][_0x28a170(0x46d)]&&_0x2c21e6['body'][_0x28a170(0x46d)][_0x28a170(0x44e)]!==_0x3d4f3d['OK']?_0x28a170(0x408):_0x2c21e6['body'][_0x28a170(0x31d)];}catch{return _0x28a170(0x408);}}},_0x5401e2[_0x175e1d(0x421)]=_0x57ccbe([_0x49df62(0x0,_0x187eaa[_0x175e1d(0x359)]),_0x49df62(0x1,_0x187eaa[_0x175e1d(0x374)](_0x1b946c[_0x175e1d(0x26a)])),_0x49df62(0x2,_0x187eaa[_0x175e1d(0x34e)])],_0x5401e2[_0x175e1d(0x421)]);const _0x1d90af=0x7530,_0x34abf3=_0x175e1d(0x3b1);class _0x55daed extends _0x187eaa[_0x175e1d(0x32b)]{constructor(){const _0x581d16=_0x175e1d;super(),_0x3d2368(this,'_id',_0x187eaa[_0x581d16(0x248)]()),_0x3d2368(this,'_selfUnitIDs',new Set()),_0x3d2368(this,_0x581d16(0x322),new Map()),_0x3d2368(this,_0x581d16(0x1ad),null),_0x3d2368(this,_0x581d16(0x3bd),new Map()),_0x3d2368(this,_0x581d16(0x46e),new Map()),this[_0x581d16(0x1b9)]();}[_0x175e1d(0x279)](){const _0x40be8e=_0x175e1d;super[_0x40be8e(0x279)](),this[_0x40be8e(0x3bd)]['forEach']((_0x4f0971,_0x5a6d1a)=>this['_removeClearOtherTimer'](_0x5a6d1a)),this[_0x40be8e(0x1ad)]&&window[_0x40be8e(0x254)](this[_0x40be8e(0x1ad)]);}[_0x175e1d(0x1f8)](_0xa1506b){const _0x44b31c=_0x175e1d;return this[_0x44b31c(0x317)](_0xa1506b)[_0x44b31c(0x273)](_0x12c3e7['distinctUntilChanged']());}[_0x175e1d(0x299)](_0x543322){const _0x3be62d=_0x175e1d;this[_0x3be62d(0x215)][_0x3be62d(0x459)]===0x0&&this[_0x3be62d(0x1e8)](),this['_selfUnitIDs'][_0x3be62d(0x3e5)](_0x543322),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x543322],'isForwarded':!0x1});}[_0x175e1d(0x258)](_0x4d52c6){const _0x24360c=_0x175e1d;this[_0x24360c(0x215)][_0x24360c(0x2a2)](_0x4d52c6),this['_selfUnitIDs']['size']===0x0&&this['_heartbeatTimer']&&window[_0x24360c(0x254)](this[_0x24360c(0x1ad)]);}[_0x175e1d(0x1b9)](){const _0x156e84=_0x175e1d;this[_0x156e84(0x307)](_0x187eaa[_0x156e84(0x220)](_0x12c3e7['fromEvent'](window,_0x156e84(0x32d))['subscribe'](_0x5353b2=>{const _0x1b0cfa=_0x156e84;if(_0x5353b2[_0x1b0cfa(0x315)]!==_0x34abf3||!_0x5353b2[_0x1b0cfa(0x2c8)])return;const _0x4c4f1d=JSON['parse'](_0x5353b2[_0x1b0cfa(0x2c8)]);this['_handleEvent'](_0x4c4f1d);}))),window['addEventListener'](_0x156e84(0x325),()=>this[_0x156e84(0x28d)]({'type':0x1,'memberID':this[_0x156e84(0x332)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x29c887){const _0x36a1bd=_0x175e1d;switch(_0x29c887['type']){case 0x0:this['_handleJoinEvent'](_0x29c887);break;case 0x1:this[_0x36a1bd(0x37e)](_0x29c887);break;case 0x2:this[_0x36a1bd(0x3ea)](_0x29c887);break;}}['_handleJoinEvent'](_0x3f3922){const _0x25543c=_0x175e1d,{unitIDs:_0x406255,memberID:_0x2b6db5,isForwarded:_0x1e1abb}=_0x3f3922;_0x406255[_0x25543c(0x1d4)](_0x1b7a40=>{const _0x1bc2ce=_0x25543c;if(!_0x1e1abb&&this[_0x1bc2ce(0x322)]['has'](_0x1b7a40)&&this[_0x1bc2ce(0x317)](_0x1b7a40)[_0x1bc2ce(0x1c9)](_0xd5bbf8['UnitStatus'][_0x1bc2ce(0x45f)]),!this[_0x1bc2ce(0x322)][_0x1bc2ce(0x2f5)](_0x1b7a40)||!this[_0x1bc2ce(0x322)][_0x1bc2ce(0x37b)](_0x1b7a40)['has'](_0x2b6db5)){const _0x159f2c=this[_0x1bc2ce(0x322)][_0x1bc2ce(0x37b)](_0x1b7a40)||new Set();_0x159f2c[_0x1bc2ce(0x3e5)](_0x2b6db5),this[_0x1bc2ce(0x322)]['set'](_0x1b7a40,_0x159f2c),this['_scheduleClearOtherTimer'](_0x2b6db5);}}),_0x1e1abb||this['_send']({'type':0x0,'memberID':this[_0x25543c(0x332)],'unitIDs':[...this[_0x25543c(0x215)]],'isForwarded':!0x0});}[_0x175e1d(0x282)](_0x38b8bf){const _0x5348b8=_0x175e1d;this[_0x5348b8(0x45d)](_0x38b8bf);const _0x4fc3c2=window['setTimeout'](()=>{const _0x151364=_0x5348b8;this[_0x151364(0x322)][_0x151364(0x1d4)](_0xe3a213=>{_0xe3a213['delete'](_0x38b8bf);});},_0x1d90af*0x2);this[_0x5348b8(0x3bd)][_0x5348b8(0x2ef)](_0x38b8bf,_0x4fc3c2);}[_0x175e1d(0x45d)](_0x390db4){const _0xfda602=_0x175e1d;if(this[_0xfda602(0x3bd)]['has'](_0x390db4)){const _0x7eccc6=this[_0xfda602(0x3bd)][_0xfda602(0x37b)](_0x390db4);_0x7eccc6&&window[_0xfda602(0x30a)](_0x7eccc6),this[_0xfda602(0x3bd)][_0xfda602(0x2ef)](_0x390db4,null);}}[_0x175e1d(0x37e)](_0x4f099d){const _0x171518=_0x175e1d,{memberID:_0x5bd68b,unitIDs:_0x2d7137}=_0x4f099d;_0x2d7137['forEach'](_0x4400cd=>{const _0x53e560=_0xd8ae;var _0x362467;const _0x19445f=this['_unitOnClients'][_0x53e560(0x37b)](_0x4400cd);_0x19445f&&(_0x19445f['delete'](_0x5bd68b),(_0x362467=this[_0x53e560(0x317)](_0x4400cd))==null||_0x362467[_0x53e560(0x1c9)](_0x19445f[_0x53e560(0x459)]===0x0?_0xd5bbf8['UnitStatus'][_0x53e560(0x3c4)]:_0xd5bbf8[_0x53e560(0x434)][_0x53e560(0x45f)]));}),this[_0x171518(0x45d)](_0x5bd68b);}[_0x175e1d(0x3ea)](_0x36ffe1){const _0x302ede=_0x175e1d;this[_0x302ede(0x282)](_0x36ffe1['memberID']);}[_0x175e1d(0x28d)](_0x544407){const _0x5c2d1f=_0x175e1d;localStorage[_0x5c2d1f(0x31a)](_0x34abf3,JSON[_0x5c2d1f(0x3cc)](_0x544407));}[_0x175e1d(0x1e8)](){const _0x5ef184=_0x175e1d;this[_0x5ef184(0x1ad)]=window[_0x5ef184(0x224)](()=>{const _0x17b3ed=_0x5ef184;this[_0x17b3ed(0x28d)]({'type':0x2,'memberID':this[_0x17b3ed(0x332)]});},_0x1d90af);}[_0x175e1d(0x317)](_0x16461e){const _0x5a174c=_0x175e1d;return this[_0x5a174c(0x46e)][_0x5a174c(0x2f5)](_0x16461e)||this['_unitStatus'][_0x5a174c(0x2ef)](_0x16461e,new _0x12c3e7[(_0x5a174c(0x35a))](_0xd5bbf8[_0x5a174c(0x434)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x5a174c(0x37b)](_0x16461e);}}_0x5401e2[_0x175e1d(0x3a4)]=_0x5a3963,_0x5401e2[_0x175e1d(0x455)]=_0x5c6aab,_0x5401e2[_0x175e1d(0x24d)]=_0x55daed,_0x5401e2[_0x175e1d(0x2bd)]=_0x1762e1,Object[_0x175e1d(0x43c)](_0x5401e2,Symbol[_0x175e1d(0x449)],{'value':'Module'});}));function _0x2a82(){const _0x46e68b=['REDEMPTION_CODE_FULLY_REDEEMED','_currentUsage','_collabSessionService','_setupBeforeClosingHandler','_onCursorDelete','Shape','event$','...','mask','hovered','combineLatest','LICENSE_MAX_UNITS_EXCEEDED','Inject','fromEventSubject','UniverSheetsUi','@univerjs/ui','_getMergeRange','saveImage','data','get','parseInt','IMessageService','_handleLeaveEvent','_startCalculationLimit','_saveCache','getSheetBySheetId','currentUsage','ITransformService','all','IUIPartsService','ColorKit','RxDisposable','deepClone','currentSkeleton$','tag','unit','map','onCommandExecuted','unitId','arc','9VkcvDh','_imageIoService','_draw','limitInfo','assign','origin','@univerjs/engine-render','_initDependencies','labelPosition','InsertColCommandId','registerComponent','purple.300','_toggleOffline','_getFormulaLimitStatus','SYNCED','RevisionService','history','CommandType','_toggleOnline','_docStateChangeManagerService','IURLService','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','REDEMPTION_USER_NOT_ELIGIBLE','_maxFormulaLimit','roomMembers$','triggerDblclick','getStateCache','_transformUndoRedoStack','pluginName','startsWith','_clearPolling','blue.400','getUniverSheetInstance','ACTIVE_UNIT_EVENT_CHANNEL','_localStorageService','FETCH_MISS','_themeService','getUnitId','currentColor','bottom','_initResize','getUnit','LOCAL_CACHE_INTERVAL_KEY','sessionTicket','_removeCollabCursors','_clearOtherTimers','TOO_MANY_REQUESTS','5878836JHlLwO','toRgbString','onLocalMutation','fill','current','NO_OTHER_CLIENTS_EDITING','collab-rect-range-','lineTo','_handleHover','override','Unknown\x20user','registerRenderModule','_notificationService','stringify','enableLocalCache','complete','NodePositionConvertToRectRange','REDEMPTION_CODE_INACTIVE','_initEvent','requireSession','LOGIN_FAILED','ONLINE','UniverDrawing','BuiltInUIPart','getSkeleton','getCurrentSelections','getColor','save','ENTITLE_NEED_BILLING_ADDRESS','ENSURE_SNAPSHOT_EXECUTION','_onRefRangeChange','min','react/jsx-runtime','#FFF','InsertRowCommandId','_updateSubUnitFromURLParams','_collabCursorState$','univer-mr-2\x20univer-flex\x20univer-text-xl','add','doc.mutation.rich-text-editing','replace','CONFLICT','_taskIds','_handleHeartbeatEvent','PY_RUNTIME_SCRIPT_ERROR','USERS_LEAVE','rgba(255,\x20255,\x20255,\x200.01)','_httpService','object','EMAIL_VERIFY_CODE_MISMATCH','univer-flex\x20univer-items-center','BrowserCollaborationSocketService','_refRangeService','type','application/json','PERMISSION_DENIED','column','transformSelections','_docSkeletonManagerService','getAncestorScale','MOBILE_VERIFY_CODE_MISMATCH','@univerjs-pro/collaboration','removeParam','location','getTypeOfUnitDisposed$','includes','RefRangeService','CollaborationUIEventService','formula.calculation.started','_lastResponseTimestamp','subscribe','forwardRef','collabStatus.synced','Failed','_logService','1606894eWeZxQ','_hovered','executionId','setStateCache','@univerjs/network','_status$','COMPLETION_FINISHED','addObject','getCurrentRevOfUnit','_beforeCloseService','entries','_render','LOCAL_CACHE_INTERVAL','_cursorShapes','IRenderManagerService','UniverNetwork','YUUMI_RATE_OVER_LIMIT','_lastPointer','_initStatusListener','rxjs/operators','INotificationService','/universer-api/license/formula/limit/done','REDEMPTION_USER_REDEEM_TIMES_EXCEED','RemoteUniscriptService','isFormulaString','url(#off-line-icon_clip0_910_343)','permission.content','useDependency','unsubscribe','_labelPosition','height','collabStatus.syncing','formula.calculation.unable','getOffsetConfig','totalFormulasToCalculate','_createSocketURL','getTypeOfUnitAdded$','1em','ranges','SetSelectionsOperation','_docTransformStateCacheService','CollaborationDataLoaderController','UnitStatus','NOT_COLLAB','range','_startDocCollabCursor','addHandlerCallback','_drawAnchor','collabStatus.conflict','APPLY_REVISION_CONFILICT','defineProperty','transform','ISocketService','_messageService','max','MessageType','MemberService','ISnapshotServerService','TEXT_RANGE_LAYER_INDEX','off-line-icon_clip0_910_343','engine','collaboration.closeRoom','3840168ZjLZSP','toStringTag','green.600','textRanges','attrs','params','code','_shapes','_saveTaskMap','MOBILE_HAS_BEEN_BOUND','debounce','collabCursorState$','INVALID_INVITE_CODE','SheetCollabCursorShape','unshift','_initCommandInterceptor','DependentOn','size','UniverProCollaborationClientUi','ERROR_AGAIN','getMember','_removeClearOtherTimer','SUCCESS','OTHER_CLIENTS_EDITING','INTERNAL_ERROR','restore','MoveRangeCommandId','_urlService','VIEW_MAIN','_revisionService','USER_NOT_FOUND','UNDEFINED','collab-client.tooltip.reconnect','_updateLocalCursor','jsxs','shift','_collaborationController','error','_unitStatus','saveOfflineData','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','isArray','INVALID_ARGUMENT','handleInsertCol','div','subscribeEvent','fillText','use','jiqing.500','Optional','MUTATION','UniverProCollaboration','SheetsSelectionsService','_cachedData','defs','DOC_RANGE_TYPE','_scheduleSaving','[CollaborationDataLoaderController]','_heartbeatTimer','evenodd','onStarting','body','_initEntityListener','http://www.w3.org/2000/svg','_transformService','urlChange$','row','measureText','OnLineIcon','getUndoRedoMutationParamsCache','_init','subUnitId','onPointerEnter$','FormulaExecuteStageType','_docSkeleton','UNIVER_SHEET','find','cursorInfo$','drawWith','runId','href','fillStyle','SetWorksheetActivateCommand','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','6533615LuSPhX','_injector','next','_docTransformIMECacheService','UniverSheets','startFormulaLimitUrl','_getSaveTimeout','CLOSE_ROOM','fillRule','_anchorDot','useCallback','mutations','UniverDocsUi','forEach','_setupSubUnitSync','onMouseMove','getColorFromTheme','NodePositionConvertToCursor','YUUMI_URL_COL_OUT_OF_RANGE','push','getCurrentUnitForType','beforeCommandExecuted','getParam','LocaleService','REDEMPTION_CODE_HAS_BEEN_CREATED','UPDATE_CURSOR','@univerjs/design','_sheetSkeletonManagerService','ENTITLE_REPORT_LIMIT_EXCEED','then','SNAPSHOT_HAS_BEEN_REMOVED','loadOfflineData','_entities','_scheduleHeartbeat','switchMap','InsertRangeMoveRightCommandId','runRefRangeMutations','_localeService','m2Prime','width','INVITE_CODE_ALREADY_BOUND','EMAIL_HAS_BEEN_BOUND','substring','getVpScrollXYInfoByPosToVp','disableLocalCache','pushState','Subject','6cKTfme','_session','getUnitStatus$','_renderManagerService','addObjects','m1Prime','ThemeService','RegularPolygon','backgroundColor','_memberService','actions','collab-text-range-','name','round','_transformPreviousActiveRange','ILogService','CURRENT_STATUS_CANNOT_OPERATE','getCoordByCell','@univerjs/rpc','clipPath','color','_commandService','UNIVER_DOC','defIds','APPLY_PERMISSION_DENIED','selection','getViewport','UniverCollaborationClientUIPlugin','_checkCalculationAvailable','_color','_hover','_selfUnitIDs','getRenderById','transformIMECache','UniverEngineRender','[RemoteUniscriptService]:\x20no\x20focused\x20unit','1288237zdeHPj','_roomMembers$','collaboration.single-unit.warning','currentTheme$','syncEditingCollabCursor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','toDisposable','UNAUTHENTICATED','_scene','findNodePositionByCharIndex','setInterval','eventID','/run/','CollaborationSessionService','collaboration-client-ui.config','FormulaExecutedStateType','_updateCollabCursors','getRelativeToViewportCoord','RemoveRowCommandId','jsx','SetFormulaCalculationStartMutation','handleMoveRange','getformulaLimitStatusUrl','YUUMI_ASYNCIO_CANCELLED','_docSyncEditingCollabCursorService','InsertRangeMoveDownCommandId','_updateURLWithCurrentState','roomMembers','top','0\x200\x2016\x2016','FromArray','search','UniverInstanceType','throttleTime','init','createIdentifier','onTransformChange$','split','focused$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_cursors','getSheetObject','permission.title','isTransformMutationsWithChangesetSuccess','invokeId','REDEMPTION_CODE_NOT_STARTED','generateRandomId','getFocusedUnit','_context','filter','SetTextSelectionsOperation','WebBrowserSingleActiveUnitService','_dataLoaderService','_applyCommand','translate(.97)','IDocClipboardService','getConfig','_releaseCalculationLimit','clearInterval','show','_transformHistoryAndStateStack','_collabCursorController','disposeUnit','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','reconnect','getActiveSheet','SHEET_VIEWPORT_KEY','transformMutation','entityInit$','AUTHORIZE_CODE_ILLEGAL','moveTo','isActive','getCellPositionByOffset','exports','dispose$','Tooltip','white','0\x200\x2017\x2016','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','UniverUi','HTTPService','getLocalCacheKey','JOIN_ROOM_FAILED','HEADER_MENU','@univerjs-pro/collaboration-client','UniverCore','updateOfflineData','url(#$1','getMergeData','pipe','CollaborationEvent','Error','transformRemoteChangeset','ENTITLE_DUP_SUBSCRIPTION','react','dispose','post','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','APPLY_REJECT','startColumn','rxjs','sheetId','transformByState','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_scheduleClearOtherTimer','DocCollaborationEntity','_anchor','WebSocketService','_univerInstanceService','replaceDocRanges','_colorAssignService','Rectangle','colorChannel1','transformStateCache','_backgroundColor','_send','_instanceService','M0\x200H16V16H0z','skeleton','fromEvent','makeDirty','functionsExecutedState','session.will-retry','font','DesktopCollaborationStatusDisplayController','Tools','on-line-icon_clip0_910_349','editingUnit','YUUMI_AI_RUN_FAILED','INVITE_CODE_HAS_BEEN_UES','connectInjector','toString','string','DocIMEInputManagerService','_hasFormulaInDirtyRanges','_colorIndex','delete','SNAPSHOT_INVALID_SNAPSHOT','SetFormulaCalculationNotificationMutation','5196485hKFenD','USER_NOT_INVITED_CODE','USER_IS_ANONYMOUS','with','shareReplay','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getUnhiddenWorksheets','none','_cursorInfo$','Success','_setFormulaLimitStatus','_entityInit$','registerBeforeClose','transformMutationsWithChangeset','?taskId=','TEXT','assignAColorForMemberID','ALREADY_EXISTS','takeUntil','replaceState','DisposableCollection','DocStateChangeManagerService','xlink:href','NOT_FOUND','WebURLService','amd','saveTaskMap','_hideTimer','@univerjs/core','sessionStatus$','endRow','_disabled','session.connection-failed','UniverDesign','_docTransformSelectionsService','newValue','idSuffix','getCellMatrix','svg','createSocket','_document','YUUMI_TABLE_NOT_FOUND_IN_UNIT','endColumn','_collaborationUIEventService','OffLineIcon','_eventUnsubscribe','DocSelectionManagerService','_refreshCollabCursors','on-line-icon','DocSkeletonManagerService','length','YUUMI_ALL_TABLES_IS_INVALID','EffectRefRangId','LICENSE_EXPORT_SIZE_EXCEEDED','_registerDependencies','LOGIN_TOKEN_PROCESSING_FAILED','CHANGESET_REVISION_CONFILICT','@univerjs/drawing','_checkAndWaitForCalculationPermission','_syncEditingCollabCursorService','executeCommand','setParam','asObservable','_online','YUUMI_UNABLE_LOAD_URL','text','getCollabCursors$','getValue','setAlpha','START_CALCULATION','DataLoaderService','UNRECOGNIZED','_name','DEFAULT_WS_SESSION_TICKET_URL','set','setShapeProps','_cursor','SOCKET_FAILED','getCollabEntity$','useRef','has','PENDING','getActiveRange','YUUMI_CONNECTOR_URL_NOT_FOUND','debounceTime','releaseFormulaLimitUrl','TRANSFORM_CHANGE_OBSERVABLE_TYPE','YUUMI_NO_CUBOID_FOR_QUESTION','ICommandService','source','docStateChange$','Plugin','startRow','getOwnPropertyDescriptor','exhaustSavingTask','getDocRanges','imageSourceType','status$','disposeWithMe','_localCacheService','ENTITLE_CAN_NOT_BUY_LOWER_OTP','clearTimeout','APPLY_DUPLICATED','uni.network.url-service','function','_range','createElement','operators','_getAnchorBounding','_uiPartsService','merge','collaboration-client.offline-data-not-saved','key','21255816kXpwKk','_ensureSubject','RECT','path','setItem','univerjs-icon\x20univerjs-icon-','_registerRenderDependencies','result','@univerjs/docs-ui','handleInsertRangeMoveDown','from','_configService','_unitOnClients','whenReady','send','unload','@univerjs/docs','onPointerLeave$','ILocalCacheService','getMemberID','collabStatus.notCollab','Disposable','handleIRemoveCol','storage','popstate','APPLY_NON_SEQUENTIAL_REVISION','_getSheetObject','YUUMI_SUBSCRIPTION_NOT_FOUND','_id','cursorInfo','hide','stageInfo','COLORS','UniverDocs','_drawRectRange','black','now','CollaborationUIEventId','_textBubble','Rect','setActiveRange','LICENSE_IMPORT_SIZE_EXCEEDED','searchParams','off-line-icon','yellow.400','red.300','getSheetId','unitID','Warning','_pollingInterval','_getScale','Injector','isTransformMutationFailure','IRemoteInstanceService','CollaborationStatus','symbol','IConfigService','PAYMENT_CHANNEL_NOT_SUPPORT','_assignedColors','SessionStatus','INVITE_CODE_REQUIRED','displayName','_docClipboardService','_onCursorUpdate','WECHAT_HAS_BEEN_BOUND','_getSessionTicket','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','IUniverInstanceService','BehaviorSubject','OFFLINE','values','Vector2','_config','IImageIoService','subunit','getRangePointData','_initStatusComponent','onRendered','flatMap','registerDependencies','undoState','UniverEngineFormula'];_0x2a82=function(){return _0x46e68b;};return _0x2a82();}
1
+ (function(_0x386fea,_0x2a89ef){const _0x227a7f=_0x5580,_0x4c3531=_0x386fea();while(!![]){try{const _0x26754c=parseInt(_0x227a7f(0x2a3))/0x1*(-parseInt(_0x227a7f(0x21e))/0x2)+-parseInt(_0x227a7f(0x2d0))/0x3+-parseInt(_0x227a7f(0x39a))/0x4+parseInt(_0x227a7f(0x2ac))/0x5*(parseInt(_0x227a7f(0x1b5))/0x6)+parseInt(_0x227a7f(0x20d))/0x7*(parseInt(_0x227a7f(0x1d5))/0x8)+-parseInt(_0x227a7f(0x17b))/0x9+parseInt(_0x227a7f(0x255))/0xa;if(_0x26754c===_0x2a89ef)break;else _0x4c3531['push'](_0x4c3531['shift']());}catch(_0x2c593d){_0x4c3531['push'](_0x4c3531['shift']());}}}(_0x3c7d,0x4a1ce),function(_0x417c5e,_0x2c0fef){const _0x6d326b=_0x5580;typeof exports==_0x6d326b(0x303)&&typeof module<'u'?_0x2c0fef(exports,require('react/jsx-runtime'),require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('@univerjs/design'),require('react'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x6d326b(0x2df)&&define[_0x6d326b(0x1ba)]?define([_0x6d326b(0x237),_0x6d326b(0x1e2),_0x6d326b(0x183),'@univerjs/core',_0x6d326b(0x361),_0x6d326b(0x290),_0x6d326b(0x2b7),'react',_0x6d326b(0x1b2),_0x6d326b(0x199),_0x6d326b(0x1c7),'@univerjs/network',_0x6d326b(0x409),_0x6d326b(0x25f),_0x6d326b(0x3db),'@univerjs/docs',_0x6d326b(0x36e),_0x6d326b(0x2c8),_0x6d326b(0x397)],_0x2c0fef):(_0x417c5e=typeof globalThis<'u'?globalThis:_0x417c5e||self,_0x2c0fef(_0x417c5e['UniverProCollaborationClientUi']={},_0x417c5e['React'],_0x417c5e[_0x6d326b(0x329)],_0x417c5e[_0x6d326b(0x32e)],_0x417c5e[_0x6d326b(0x29c)],_0x417c5e['rxjs'],_0x417c5e['UniverDesign'],_0x417c5e['React'],_0x417c5e['UniverRpc'],_0x417c5e[_0x6d326b(0x24f)],_0x417c5e['UniverEngineRender'],_0x417c5e[_0x6d326b(0x2f1)],_0x417c5e['UniverDocsUi'],_0x417c5e[_0x6d326b(0x34c)],_0x417c5e[_0x6d326b(0x279)],_0x417c5e[_0x6d326b(0x43e)],_0x417c5e[_0x6d326b(0x2ff)],_0x417c5e['rxjs'][_0x6d326b(0x40e)],_0x417c5e[_0x6d326b(0x354)]));}(this,function(_0xc9a868,_0x20a652,_0x4a9508,_0x3446be,_0x1e2f17,_0xc33fa7,_0x5d7915,_0x2043a3,_0x2d183c,_0x2c6e97,_0x154eb1,_0x37d0f4,_0x4262be,_0x16331e,_0x5ee43a,_0x4cdd99,_0x5777d0,_0x1b2b92,_0x244403){'use strict';const _0x479db0=_0x5580;var _0x595ce3=Object[_0x479db0(0x204)],_0x5bcb43=(_0x52debf,_0x580fce,_0x2312f8)=>_0x580fce in _0x52debf?_0x595ce3(_0x52debf,_0x580fce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2312f8}):_0x52debf[_0x580fce]=_0x2312f8,_0x4b5aa6=(_0x22d2e1,_0x52d92e,_0x5245ec)=>_0x5bcb43(_0x22d2e1,typeof _0x52d92e!='symbol'?_0x52d92e+'':_0x52d92e,_0x5245ec);function _0x5c6345({ref:_0x3149cb,..._0xb090da}){const _0x5d7540=_0x479db0,{icon:_0x13e176,id:_0x5439c6,className:_0x227df9,extend:_0x5174c2,..._0x3288e3}=_0xb090da,_0x5df03d=(_0x5d7540(0x22f)+_0x5439c6+'\x20'+(_0x227df9||''))[_0x5d7540(0x2e3)](),_0x568eda=_0x2043a3[_0x5d7540(0x27d)]('_'+_0x24f240());return _0xf5fa4e(_0x13e176,''+_0x5439c6,{'defIds':_0x13e176[_0x5d7540(0x382)],'idSuffix':_0x568eda['current']},{'ref':_0x3149cb,'className':_0x5df03d,..._0x3288e3},_0x5174c2);}function _0xf5fa4e(_0x41117b,_0x48197d,_0x19f007,_0x2b0f8c,_0x13b5d8){const _0x393d3c=_0x479db0;return _0x2043a3['createElement'](_0x41117b['tag'],{'key':_0x48197d,..._0x64861a(_0x41117b,_0x19f007,_0x13b5d8),..._0x2b0f8c},(_0x27bef3(_0x41117b,_0x19f007)[_0x393d3c(0x364)]||[])['map']((_0xe1a76e,_0x145ef1)=>_0xf5fa4e(_0xe1a76e,_0x48197d+'-'+_0x41117b[_0x393d3c(0x1e9)]+'-'+_0x145ef1,_0x19f007,void 0x0,_0x13b5d8)));}function _0x64861a(_0x233ae1,_0x374933,_0x13adae){const _0x500135=_0x479db0,_0x2b9e79={..._0x233ae1[_0x500135(0x292)]};_0x13adae!=null&&_0x13adae[_0x500135(0x43f)]&&_0x2b9e79[_0x500135(0x328)]===_0x500135(0x43f)&&(_0x2b9e79[_0x500135(0x328)]=_0x13adae[_0x500135(0x43f)]),_0x233ae1[_0x500135(0x1e9)]===_0x500135(0x3f1)&&_0x2b9e79['id']&&(_0x2b9e79['id']=_0x2b9e79['id']+_0x374933[_0x500135(0x375)]),Object[_0x500135(0x2bc)](_0x2b9e79)[_0x500135(0x1ac)](([_0x276e25,_0x2f19fc])=>{const _0x247865=_0x500135;_0x276e25===_0x247865(0x3f1)&&typeof _0x2f19fc=='string'&&(_0x2b9e79[_0x276e25]=_0x2f19fc['replace'](/url\(#(.*)\)/,_0x247865(0x2ec)+_0x374933['idSuffix']+')'));});const {defIds:_0x290e87}=_0x374933;return!_0x290e87||_0x290e87['length']===0x0||(_0x233ae1[_0x500135(0x1e9)]===_0x500135(0x289)&&_0x2b9e79[_0x500135(0x2fb)]&&(_0x2b9e79['xlink:href']=_0x2b9e79['xlink:href']+_0x374933['idSuffix']),Object[_0x500135(0x2bc)](_0x2b9e79)[_0x500135(0x1ac)](([_0x24e969,_0x233480])=>{const _0x477011=_0x500135;typeof _0x233480=='string'&&(_0x2b9e79[_0x24e969]=_0x233480[_0x477011(0x1bf)](/url\(#(.*)\)/,_0x477011(0x2ec)+_0x374933[_0x477011(0x375)]+')'));})),_0x2b9e79;}function _0x27bef3(_0x150212,_0x510b9f){const _0x43239a=_0x479db0;var _0x518f22;const {defIds:_0x11d9a5}=_0x510b9f;return!_0x11d9a5||_0x11d9a5[_0x43239a(0x27b)]===0x0?_0x150212:_0x150212['tag']===_0x43239a(0x20e)&&((_0x518f22=_0x150212[_0x43239a(0x364)])!=null&&_0x518f22[_0x43239a(0x27b)])?{..._0x150212,'children':_0x150212[_0x43239a(0x364)][_0x43239a(0x2dc)](_0x29a1da=>typeof _0x29a1da[_0x43239a(0x292)]['id']=='string'&&_0x11d9a5&&_0x11d9a5[_0x43239a(0x1a1)](_0x29a1da['attrs']['id'])?{..._0x29a1da,'attrs':{..._0x29a1da['attrs'],'id':_0x29a1da[_0x43239a(0x292)]['id']+_0x510b9f[_0x43239a(0x375)]}}:_0x29a1da)}:_0x150212;}function _0x24f240(){const _0x83f978=_0x479db0;return Math[_0x83f978(0x3ac)]()[_0x83f978(0x42e)](0x24)['substring'](0x2,0x8);}_0x5c6345['displayName']=_0x479db0(0x268);const _0x38dcb3={'tag':_0x479db0(0x2f0),'attrs':{'xmlns':_0x479db0(0x3dc),'fill':_0x479db0(0x414),'viewBox':_0x479db0(0x28d),'width':_0x479db0(0x3a9),'height':_0x479db0(0x3a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x479db0(0x209)},'children':[{'tag':'path','attrs':{'stroke':_0x479db0(0x324),'d':_0x479db0(0x230),'strokeLinecap':_0x479db0(0x333),'strokeLinejoin':_0x479db0(0x333),'strokeWidth':1.2}}]},{'tag':_0x479db0(0x20e),'attrs':{},'children':[{'tag':_0x479db0(0x332),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x479db0(0x3c6),'attrs':{'fill':_0x479db0(0x31e),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x479db0(0x3e4)]},_0x14d66c=_0x2043a3['forwardRef'](function(_0x2c084b,_0x2502df){const _0x196bad=_0x479db0;return _0x2043a3[_0x196bad(0x345)](_0x5c6345,Object[_0x196bad(0x30a)]({},_0x2c084b,{'id':_0x196bad(0x206),'ref':_0x2502df,'icon':_0x38dcb3}));});_0x14d66c['displayName']=_0x479db0(0x1b8);const _0x28fb36={'tag':_0x479db0(0x2f0),'attrs':{'xmlns':_0x479db0(0x3dc),'fill':_0x479db0(0x414),'viewBox':_0x479db0(0x3f7),'width':'1em','height':_0x479db0(0x3a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x479db0(0x1a5)},'children':[{'tag':_0x479db0(0x3c6),'attrs':{'stroke':_0x479db0(0x324),'d':_0x479db0(0x425),'strokeLinecap':_0x479db0(0x333),'strokeLinejoin':_0x479db0(0x333),'strokeWidth':1.2}}]},{'tag':_0x479db0(0x20e),'attrs':{},'children':[{'tag':_0x479db0(0x332),'attrs':{'id':_0x479db0(0x1dc)},'children':[{'tag':'path','attrs':{'fill':_0x479db0(0x31e),'d':'M0\x200H16V16H0z','transform':_0x479db0(0x396)}}]}]}],'defIds':[_0x479db0(0x1dc)]},_0x30f104=_0x2043a3[_0x479db0(0x428)](function(_0x27ba27,_0x3e3765){const _0x542e79=_0x479db0;return _0x2043a3['createElement'](_0x5c6345,Object['assign']({},_0x27ba27,{'id':_0x542e79(0x287),'ref':_0x3e3765,'icon':_0x28fb36}));});_0x30f104['displayName']=_0x479db0(0x222);function _0x42956b(_0x39c57d){const _0x2cc966=_0x479db0;switch(_0x39c57d){case _0x4a9508['CollaborationStatus'][_0x2cc966(0x385)]:return _0x2cc966(0x1a9);case _0x4a9508[_0x2cc966(0x3c2)]['CONFLICT']:return'collabStatus.conflict';case _0x4a9508['CollaborationStatus'][_0x2cc966(0x296)]:return _0x2cc966(0x1a4);case _0x4a9508['CollaborationStatus'][_0x2cc966(0x2e9)]:return _0x2cc966(0x29e);case _0x4a9508[_0x2cc966(0x3c2)]['AWAITING']:case _0x4a9508['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x2cc966(0x286);case _0x4a9508[_0x2cc966(0x3c2)][_0x2cc966(0x41d)]:case _0x4a9508['CollaborationStatus'][_0x2cc966(0x21d)]:return _0x2cc966(0x21a);}}function _0x485d9a(_0x4c2c40){const _0x273497=_0x479db0,{status$:_0x1fe7f9}=_0x4c2c40,_0x5dd144=_0x1e2f17[_0x273497(0x3f5)](_0x1fe7f9,_0x4a9508[_0x273497(0x3c2)]['NOT_COLLAB']),_0x4c9674=_0x1e2f17[_0x273497(0x33f)](_0x3446be['LocaleService']),_0x531188=_0x1e2f17[_0x273497(0x33f)](_0x4a9508[_0x273497(0x1ff)]),_0x5740e4=_0x5dd144!==_0x4a9508[_0x273497(0x3c2)][_0x273497(0x385)],_0x30ce04=_0x4c9674['t'](_0x42956b(_0x5dd144)),_0x43f86d=_0x5740e4?_0x20a652[_0x273497(0x395)](_0x30f104,{}):_0x20a652['jsx'](_0x14d66c,{}),_0x25eebb=_0x2043a3['useCallback'](()=>{const _0x5cb051=_0x273497;_0x5740e4||_0x531188[_0x5cb051(0x2b4)]();},[_0x5740e4,_0x531188]);function _0x4cf53b(){const _0x18dfb3=_0x273497;return _0x20a652['jsxs'](_0x18dfb3(0x43d),{'className':_0x18dfb3(0x3a6),'onClick':_0x25eebb,'children':[_0x20a652[_0x18dfb3(0x395)](_0x18dfb3(0x43d),{'className':_0x5d7915[_0x18dfb3(0x30b)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x5740e4,'univer-text-red-500':!_0x5740e4}),'children':_0x43f86d}),_0x20a652['jsx'](_0x18dfb3(0x43d),{'className':_0x18dfb3(0x350),'children':_0x30ce04})]});}return _0x5740e4?_0x4cf53b():_0x20a652['jsx'](_0x5d7915['Tooltip'],{'title':_0x4c9674['t'](_0x273497(0x220)),'children':_0x4cf53b()});}var _0x2a186d=Object[_0x479db0(0x179)],_0x5b897a=(_0x4a24df,_0x1ee15f,_0x24a2ce,_0x12055e)=>{for(var _0x3e2e21=_0x12055e>0x1?void 0x0:_0x12055e?_0x2a186d(_0x1ee15f,_0x24a2ce):_0x1ee15f,_0x576911=_0x4a24df['length']-0x1,_0x4d04de;_0x576911>=0x0;_0x576911--)(_0x4d04de=_0x4a24df[_0x576911])&&(_0x3e2e21=_0x4d04de(_0x3e2e21)||_0x3e2e21);return _0x3e2e21;},_0x29bd63=(_0x5e53ab,_0x29f77a)=>(_0x451e2f,_0x3198cb)=>_0x29f77a(_0x451e2f,_0x3198cb,_0x5e53ab);_0xc9a868[_0x479db0(0x218)]=class extends _0x3446be['Disposable']{constructor(_0x39f49d,_0x10513a,_0x30dc49,_0x3e8d29){const _0x1cb44f=_0x479db0;super(),_0x4b5aa6(this,_0x1cb44f(0x3e0),new _0xc33fa7[(_0x1cb44f(0x41f))](_0x4a9508['CollaborationStatus'][_0x1cb44f(0x2e9)])),(this[_0x1cb44f(0x221)]=_0x39f49d,this['_injector']=_0x10513a,this[_0x1cb44f(0x3ca)]=_0x30dc49,this['_uiPartsService']=_0x3e8d29,this[_0x1cb44f(0x3bc)](),this[_0x1cb44f(0x3eb)]());}[_0x479db0(0x3eb)](){const _0x333d29=_0x479db0;this[_0x333d29(0x275)](this[_0x333d29(0x221)][_0x333d29(0x3ed)][_0x333d29(0x1da)](_0xc33fa7['switchMap'](()=>{const _0x11209c=_0x333d29,_0x411cc8=this['_univerInstanceService']['getFocusedUnit']();return _0x411cc8?this['_collaborationController'][_0x11209c(0x38c)](_0x411cc8[_0x11209c(0x346)]()):_0xc33fa7['of'](null);}),_0xc33fa7[_0x333d29(0x413)](_0x306f47=>_0x306f47?_0x306f47[_0x333d29(0x231)]:_0xc33fa7['of'](_0x4a9508[_0x333d29(0x3c2)]['NOT_COLLAB'])))['subscribe'](_0x377a3f=>{const _0x43bd8a=_0x333d29;this['_status$'][_0x43bd8a(0x1d1)](_0x377a3f);}));}[_0x479db0(0x3bc)](){const _0x457d5d=_0x479db0;this[_0x457d5d(0x275)](this[_0x457d5d(0x349)][_0x457d5d(0x227)](_0x1e2f17['BuiltInUIPart']['HEADER_MENU'],()=>_0x1e2f17[_0x457d5d(0x3d3)](_0x115c67({'status$':this['_status$'][_0x457d5d(0x42d)]()}),this[_0x457d5d(0x23c)])));}},_0xc9a868[_0x479db0(0x218)]=_0x5b897a([_0x29bd63(0x0,_0x3446be[_0x479db0(0x2b5)]),_0x29bd63(0x1,_0x3446be[_0x479db0(0x21b)](_0x3446be[_0x479db0(0x195)])),_0x29bd63(0x2,_0x3446be[_0x479db0(0x21b)](_0x4a9508[_0x479db0(0x198)])),_0x29bd63(0x3,_0x1e2f17[_0x479db0(0x210)])],_0xc9a868['DesktopCollaborationStatusDisplayController']);function _0x115c67(_0x519034){const {status$:_0x514f16}=_0x519034;return function(){const _0x4df524=_0x5580;return _0x20a652[_0x4df524(0x395)](_0x485d9a,{'status$':_0x514f16});};}const _0x413167=_0x3446be['createIdentifier'](_0x479db0(0x1e4));var _0x5abc15=Object['getOwnPropertyDescriptor'],_0x1df046=(_0x227c0d,_0x4748d8,_0x4fa05d,_0x50873a)=>{const _0x452862=_0x479db0;for(var _0x562f6f=_0x50873a>0x1?void 0x0:_0x50873a?_0x5abc15(_0x4748d8,_0x4fa05d):_0x4748d8,_0x15e485=_0x227c0d[_0x452862(0x27b)]-0x1,_0x1604eb;_0x15e485>=0x0;_0x15e485--)(_0x1604eb=_0x227c0d[_0x15e485])&&(_0x562f6f=_0x1604eb(_0x562f6f)||_0x562f6f);return _0x562f6f;},_0x527960=(_0x1f0b0c,_0x21aa74)=>(_0x30dacc,_0x594024)=>_0x21aa74(_0x30dacc,_0x594024,_0x1f0b0c);_0xc9a868[_0x479db0(0x2e4)]=class extends _0x3446be['RxDisposable']{constructor(_0x32986c,_0x4c58f6,_0x301503,_0x518e0f,_0x26246){const _0x3fc2de=_0x479db0;super(),this[_0x3fc2de(0x298)]=_0x32986c,this['_logService']=_0x4c58f6,this[_0x3fc2de(0x1ca)]=_0x301503,this[_0x3fc2de(0x3be)]=_0x518e0f,_0x26246?_0x26246==null||_0x26246[_0x3fc2de(0x386)]()['then'](()=>this[_0x3fc2de(0x240)]()):(this[_0x3fc2de(0x177)][_0x3fc2de(0x2b0)](_0x3fc2de(0x3c7),_0x3fc2de(0x360)),this[_0x3fc2de(0x240)]());}async[_0x479db0(0x240)](){const _0x5cad6a=_0x479db0,_0x43aea4=this[_0x5cad6a(0x298)][_0x5cad6a(0x18d)](_0x5cad6a(0x241)),_0x248414=this[_0x5cad6a(0x298)][_0x5cad6a(0x18d)]('type'),_0x2d956e=this[_0x5cad6a(0x298)]['getParam'](_0x5cad6a(0x3d8));if(!_0x43aea4||!_0x248414){this[_0x5cad6a(0x177)]['debug']('[CollaborationDataLoaderController]',_0x5cad6a(0x1ee));return;}const _0x53c801=await this[_0x5cad6a(0x3be)]['loadUnit'](_0x43aea4,Number(_0x248414),_0x2d956e);_0x53c801&&_0x53c801 instanceof _0x3446be['Workbook']&&this[_0x5cad6a(0x36d)](_0x53c801);}async[_0x479db0(0x36d)](_0x3c457d){const _0xef8038=_0x479db0;await this[_0xef8038(0x3c4)](_0x3c457d),_0x3c457d['activeSheet$'][_0xef8038(0x1da)](_0xc33fa7[_0xef8038(0x2f3)](this[_0xef8038(0x3af)]))['subscribe'](_0x59d752=>{const _0x46413b=_0xef8038;_0x59d752&&this[_0x46413b(0x1c0)](_0x59d752);}),this[_0xef8038(0x298)]['urlChange$'][_0xef8038(0x1da)](_0xc33fa7['takeUntil'](this['dispose$']))[_0xef8038(0x1b3)](()=>this[_0xef8038(0x3c4)](_0x3c457d));}['_updateURLWithCurrentState'](_0x448612,_0x2d9ba9=!0x1){const _0x51f55e=_0x479db0,_0x46683c=this[_0x51f55e(0x298)][_0x51f55e(0x18d)](_0x51f55e(0x3d8));_0x448612[_0x51f55e(0x249)]()!==_0x46683c&&this[_0x51f55e(0x298)][_0x51f55e(0x24e)](_0x51f55e(0x3d8),_0x448612['getSheetId'](),_0x2d9ba9);}async[_0x479db0(0x3c4)](_0x2e53e4){const _0x391131=_0x479db0;var _0x532300;const _0x273216=this[_0x391131(0x298)][_0x391131(0x18d)](_0x391131(0x3d8));if(!_0x273216||!_0x2e53e4[_0x391131(0x394)](_0x273216)){const _0x5a5d73=_0x2e53e4[_0x391131(0x3c5)]()[0x0],_0x4286dc=_0x2e53e4[_0x391131(0x394)](_0x5a5d73);if(!_0x4286dc)return;this[_0x391131(0x1c0)](_0x4286dc,!0x0),await this[_0x391131(0x1ca)][_0x391131(0x1cf)](_0x2c6e97['SetWorksheetActivateCommand']['id'],{'unitId':_0x2e53e4[_0x391131(0x346)](),'subUnitId':_0x5a5d73});return;}((_0x532300=_0x2e53e4[_0x391131(0x185)]())==null?void 0x0:_0x532300[_0x391131(0x249)]())!==_0x273216&&await this[_0x391131(0x1ca)]['executeCommand'](_0x2c6e97[_0x391131(0x316)]['id'],{'unitId':_0x2e53e4[_0x391131(0x346)](),'subUnitId':_0x273216});}},_0xc9a868['CollaborationDataLoaderController']=_0x1df046([_0x527960(0x0,_0x413167),_0x527960(0x1,_0x3446be[_0x479db0(0x438)]),_0x527960(0x2,_0x3446be[_0x479db0(0x3ef)]),_0x527960(0x3,_0x3446be[_0x479db0(0x21b)](_0x4a9508[_0x479db0(0x213)])),_0x527960(0x4,_0x3446be[_0x479db0(0x2f2)](_0x2d183c[_0x479db0(0x23a)]))],_0xc9a868[_0x479db0(0x2e4)]);var _0x3b76e5=Object['getOwnPropertyDescriptor'],_0x4b8cb1=(_0x2a3358,_0x5181cd,_0x319d19,_0x59f615)=>{const _0x20a54f=_0x479db0;for(var _0x4517d2=_0x59f615>0x1?void 0x0:_0x59f615?_0x3b76e5(_0x5181cd,_0x319d19):_0x5181cd,_0x3ed4c3=_0x2a3358[_0x20a54f(0x27b)]-0x1,_0x9daa39;_0x3ed4c3>=0x0;_0x3ed4c3--)(_0x9daa39=_0x2a3358[_0x3ed4c3])&&(_0x4517d2=_0x9daa39(_0x4517d2)||_0x4517d2);return _0x4517d2;},_0xaf962e=(_0x2cbcd2,_0x4d5a6b)=>(_0x316d38,_0xef6549)=>_0x4d5a6b(_0x316d38,_0xef6549,_0x2cbcd2);let _0x1e3e26=class extends _0x3446be[_0x479db0(0x315)]{constructor(_0x2dd1ec,_0x566e57){const _0x3c9e37=_0x479db0;super(),this['_docClipboardService']=_0x2dd1ec,this[_0x3c9e37(0x184)]=_0x566e57,this[_0x3c9e37(0x240)]();}[_0x479db0(0x240)](){const _0xbd430f=_0x479db0,_0x565ddf=this;this[_0xbd430f(0x275)](this[_0xbd430f(0x2b6)][_0xbd430f(0x43c)]({'onBeforePasteImage':async _0xc27de0=>{const _0x15369d=_0xbd430f,_0x401d93=await _0x565ddf[_0x15369d(0x184)][_0x15369d(0x423)](_0xc27de0);return _0x401d93?{'source':_0x401d93[_0x15369d(0x2d9)],'imageSourceType':_0x401d93[_0x15369d(0x426)]}:null;}}));}};_0x1e3e26=_0x4b8cb1([_0xaf962e(0x0,_0x4262be[_0x479db0(0x265)]),_0xaf962e(0x1,_0x16331e[_0x479db0(0x207)])],_0x1e3e26);const _0x13ca5c=[_0x479db0(0x37e),_0x479db0(0x18e),'green.600',_0x479db0(0x327),'blue.400',_0x479db0(0x264)];class _0x324f05 extends _0x3446be['Disposable']{constructor(){const _0x248d76=_0x479db0;super(...arguments),_0x4b5aa6(this,_0x248d76(0x34f),new Map()),_0x4b5aa6(this,'_colorIndex',0x0);}[_0x479db0(0x260)](_0x5048aa){const _0x3373ef=_0x479db0;if(this[_0x3373ef(0x34f)][_0x3373ef(0x408)](_0x5048aa))return this['_assignedColors'][_0x3373ef(0x18f)](_0x5048aa);const _0x1a33d1=_0x13ca5c[this[_0x3373ef(0x1f5)]];return this[_0x3373ef(0x1f5)]=(this['_colorIndex']+0x1)%_0x13ca5c[_0x3373ef(0x27b)],this[_0x3373ef(0x34f)][_0x3373ef(0x1c9)](_0x5048aa,_0x1a33d1),_0x1a33d1;}}function _0x50d575(_0x2efb2b){let _0x15ca1c='';for(const _0x5083f4 of _0x2efb2b){const {startOffset:_0x2f4fd4,endOffset:_0x1e43df,isActive:_0x496d21,rangeType:_0x169c83,segmentId:_0x3a8dd3,segmentPage:_0x832001}=_0x5083f4;_0x15ca1c['length']&&(_0x15ca1c+=','),_0x15ca1c+=_0x2f4fd4+':'+_0x1e43df+':'+(_0x496d21?'1':'0')+':'+_0x169c83+':'+_0x3a8dd3+':'+_0x832001;}return _0x15ca1c;}function _0x84b029(_0x243095){const _0x577908=_0x479db0,_0x1811cd=_0x243095[_0x577908(0x190)](','),_0x26b100=[];for(const _0xc3341a of _0x1811cd){const [_0x46314e,_0x5ab3a6,_0x2c867d,_0x452cd4,_0x32a971,_0x3e14a9]=_0xc3341a[_0x577908(0x190)](':');_0x26b100['push']({'startOffset':Number(_0x46314e),'endOffset':Number(_0x5ab3a6),'collapsed':_0x46314e===_0x5ab3a6,'isActive':_0x2c867d==='1','rangeType':_0x452cd4===_0x3446be['DOC_RANGE_TYPE'][_0x577908(0x3fa)]?_0x3446be[_0x577908(0x3f6)]['TEXT']:_0x3446be[_0x577908(0x3f6)]['RECT'],'segmentId':typeof _0x32a971==_0x577908(0x30d)?String(_0x32a971):'','segmentPage':Number(_0x3e14a9!=null?_0x3e14a9:-0x1)});}return _0x26b100[_0x577908(0x273)](_0x55f26a=>_0x55f26a[_0x577908(0x2c5)])||(_0x26b100[0x0][_0x577908(0x2c5)]=!0x0),_0x26b100;}class _0x35b0b1 extends _0x3446be[_0x479db0(0x315)]{constructor(){const _0x59567e=_0x479db0;super(...arguments),_0x4b5aa6(this,_0x59567e(0x1cd),new _0xc33fa7[(_0x59567e(0x41f))](null)),_0x4b5aa6(this,_0x59567e(0x1f1),this[_0x59567e(0x1cd)]['asObservable']());}['syncEditingCollabCursor'](_0x4e5028){const _0x53c753=_0x479db0,{unitID:_0x5551c4,memberID:_0x4516da,textRanges:_0x453c3b}=_0x4e5028,_0x1870b5=_0x50d575(_0x453c3b);if(_0x1870b5==='')return;const _0x58f84d={'unitID':_0x5551c4,'memberID':_0x4516da,'selection':_0x1870b5};this[_0x53c753(0x1cd)][_0x53c753(0x1d1)](_0x58f84d);}}var _0x368865=Object[_0x479db0(0x179)],_0x58338c=(_0xd678f0,_0x5d9db2,_0x21d942,_0x26ba33)=>{const _0xba356b=_0x479db0;for(var _0x4554e6=_0x26ba33>0x1?void 0x0:_0x26ba33?_0x368865(_0x5d9db2,_0x21d942):_0x5d9db2,_0x2073ae=_0xd678f0[_0xba356b(0x27b)]-0x1,_0x42f716;_0x2073ae>=0x0;_0x2073ae--)(_0x42f716=_0xd678f0[_0x2073ae])&&(_0x4554e6=_0x42f716(_0x4554e6)||_0x4554e6);return _0x4554e6;},_0x43f854=(_0x29d4ce,_0x314cb5)=>(_0x4b035a,_0x1b00cf)=>_0x314cb5(_0x4b035a,_0x1b00cf,_0x29d4ce);const _0x4e230c=0x12c,_0x1852d0=0x64;let _0x4a247a=class extends _0x3446be[_0x479db0(0x315)]{constructor(_0x453efc,_0x31fb8d,_0x468739,_0x4dd21e,_0x3ee11f,_0x546c74,_0x26d1d4,_0x30586d,_0x4dec37){const _0x3d97d4=_0x479db0;super(),_0x4b5aa6(this,_0x3d97d4(0x373),!0x1),_0x4b5aa6(this,_0x3d97d4(0x240),!0x1),_0x4b5aa6(this,'_cursorInfo$',new _0xc33fa7[(_0x3d97d4(0x41f))](new Map())),_0x4b5aa6(this,'cursorInfo$',this[_0x3d97d4(0x266)][_0x3d97d4(0x42d)]()),_0x4b5aa6(this,_0x3d97d4(0x19d),new _0xc33fa7['BehaviorSubject']([])),_0x4b5aa6(this,_0x3d97d4(0x3f9),this['_roomMembers$']['pipe'](_0xc33fa7['debounceTime'](_0x4e230c))),_0x4b5aa6(this,_0x3d97d4(0x277),_0x3446be[_0x3d97d4(0x1bb)](_0x291bff=>{const _0x5c05e7=_0x3d97d4,_0x14b6f1={'eventID':_0x5ee43a['CollaborationEvent'][_0x5c05e7(0x186)],'data':{'unitID':this['unitID'],'memberID':this[_0x5c05e7(0x318)][_0x5c05e7(0x35b)](),'selection':_0x50d575(_0x291bff)}};this['_session'][_0x5c05e7(0x440)](_0x14b6f1,this['unitID']);},_0x1852d0)),(this['unitID']=_0x453efc,this[_0x3d97d4(0x318)]=_0x31fb8d,this[_0x3d97d4(0x23c)]=_0x468739,this['_colorAssignService']=_0x4dd21e,this[_0x3d97d4(0x2c4)]=_0x3ee11f,this[_0x3d97d4(0x3bd)]=_0x546c74,this[_0x3d97d4(0x3aa)]=_0x26d1d4,this['_univerInstanceService']=_0x30586d,this[_0x3d97d4(0x1ca)]=_0x4dec37);}get[_0x479db0(0x294)](){const _0x563ca7=_0x479db0;return this[_0x563ca7(0x266)][_0x563ca7(0x424)]();}get[_0x479db0(0x31d)](){return this['_roomMembers$']['getValue']();}[_0x479db0(0x40d)](){const _0x10ae52=_0x479db0;super['dispose'](),this[_0x10ae52(0x266)][_0x10ae52(0x1d1)](new Map()),this[_0x10ae52(0x266)]['complete'](),this[_0x10ae52(0x19d)][_0x10ae52(0x1d1)]([]),this['_roomMembers$'][_0x10ae52(0x3d2)]();}[_0x479db0(0x357)](){const _0xf208c1=_0x479db0;this[_0xf208c1(0x240)]||(this['_init']=!0x0,this['_session'][_0xf208c1(0x201)][_0xf208c1(0x1da)](_0xc33fa7[_0xf208c1(0x2f3)](this[_0xf208c1(0x3af)]))['subscribe'](_0x332f9c=>{const _0x2c4577=_0xf208c1;_0x332f9c===_0x4a9508[_0x2c4577(0x38f)][_0x2c4577(0x29d)]?this['_toggleOnline']():this[_0x2c4577(0x319)]();}),this[_0xf208c1(0x318)][_0xf208c1(0x3b2)][_0xf208c1(0x1da)](_0xc33fa7['takeUntil'](this[_0xf208c1(0x3af)]))['subscribe'](_0x1d5b32=>{const _0xc1cd41=_0xf208c1,_0x53deea=_0x1d5b32[_0xc1cd41(0x421)];_0x53deea===_0x5ee43a[_0xc1cd41(0x3f8)][_0xc1cd41(0x186)]&&this['_onCursorUpdate'](_0x1d5b32),_0x53deea===_0x5ee43a[_0xc1cd41(0x3f8)][_0xc1cd41(0x2ab)]&&this['_onCursorDelete'](_0x1d5b32);}),this[_0xf208c1(0x275)](this['_commandService']['onCommandExecuted'](_0x36f534=>{const _0x291962=_0xf208c1,_0x5aa998=_0x36f534[_0x291962(0x2b2)];_0x5aa998!=null&&this[_0x291962(0x373)]&&_0x36f534['id']===_0x4cdd99['SetTextSelectionsOperation']['id']&&_0x5aa998[_0x291962(0x404)]===this[_0x291962(0x180)]&&_0x5aa998[_0x291962(0x24b)]===!0x1&&_0x5aa998[_0x291962(0x3e2)][_0x291962(0x27b)]>0x0&&this[_0x291962(0x277)](_0x5aa998[_0x291962(0x3e2)]);})),this[_0xf208c1(0x3bd)][_0xf208c1(0x1f1)][_0xf208c1(0x1da)](_0xc33fa7['takeUntil'](this[_0xf208c1(0x3af)]))[_0xf208c1(0x1b3)](_0x163004=>{const _0x1f43fd=_0xf208c1;if((_0x163004==null?void 0x0:_0x163004[_0x1f43fd(0x180)])!==this[_0x1f43fd(0x180)])return;const _0xee1f40={'eventID':_0x5ee43a[_0x1f43fd(0x3f8)]['UPDATE_CURSOR'],'data':_0x163004};this[_0x1f43fd(0x37a)](_0xee1f40);}),this[_0xf208c1(0x275)](this[_0xf208c1(0x1ca)][_0xf208c1(0x3ec)](_0x88f4bf=>{const _0x3bda38=_0xf208c1;if(_0x88f4bf[_0x3bda38(0x2b2)]==null)return;const _0x5eb5a0=_0x88f4bf[_0x3bda38(0x2b2)];if(_0x88f4bf['id']!==_0x4cdd99[_0x3bda38(0x197)]['id']||_0x5eb5a0[_0x3bda38(0x404)]!==this['unitID'])return;const _0xf64919={'id':_0x3bda38(0x28c),'params':_0x5eb5a0},_0xdba5ec=this[_0x3bda38(0x294)];for(const [_0x4433b5,_0x521043]of _0xdba5ec){const _0x376b1d={'id':_0x3bda38(0x28c),'params':{'unitId':this[_0x3bda38(0x180)],'actions':null,'textRanges':_0x521043['ranges']}},_0xb4655e=this[_0x3bda38(0x3aa)][_0x3bda38(0x342)](_0xf64919,_0x376b1d,!0x1);if(_0x5ee43a[_0x3bda38(0x3e3)](_0xb4655e))throw _0xb4655e['error'];_0xdba5ec[_0x3bda38(0x1c9)](_0x4433b5,{..._0x521043,'ranges':_0xb4655e['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x30a30a=_0x3bda38;this[_0x30a30a(0x266)]['next'](_0xdba5ec);});})));}[_0x479db0(0x37a)](_0x81f5f2){const _0x4e7721=_0x479db0;var _0x45f4f4,_0x235990;const {memberID:_0x443b6e,selection:_0x2b7737}=_0x81f5f2['data'],_0x427772=_0x84b029(_0x2b7737),_0x5cf9d7=(_0x235990=(_0x45f4f4=this[_0x4e7721(0x2c4)][_0x4e7721(0x32d)](this[_0x4e7721(0x180)],_0x443b6e))==null?void 0x0:_0x45f4f4['name'])!=null?_0x235990:_0x4e7721(0x2bf),_0xc161fd={'color':this[_0x4e7721(0x313)][_0x4e7721(0x260)](_0x443b6e),'name':_0x5cf9d7,'ranges':_0x427772},_0x5f44c7=this[_0x4e7721(0x294)];_0x5f44c7[_0x4e7721(0x1c9)](_0x443b6e,_0xc161fd),this[_0x4e7721(0x266)][_0x4e7721(0x1d1)](_0x5f44c7);}['_onCursorDelete'](_0x517fbb){const _0x4775a9=_0x479db0,{memberID:_0x5c808b}=_0x517fbb[_0x4775a9(0x429)],_0x5cce20=this[_0x4775a9(0x294)];_0x5cce20[_0x4775a9(0x368)](_0x5c808b),this[_0x4775a9(0x266)]['next'](_0x5cce20);}[_0x479db0(0x26e)](){const _0x11419e=_0x479db0;var _0x3cff76;if(this[_0x11419e(0x373)]=!0x0,((_0x3cff76=this['_univerInstanceService'][_0x11419e(0x3de)]())==null?void 0x0:_0x3cff76[_0x11419e(0x346)]())!==this[_0x11419e(0x180)])return;const _0x56ea6d=this['_injector'][_0x11419e(0x18f)](_0x4cdd99['DocSelectionManagerService'])[_0x11419e(0x334)]();Array[_0x11419e(0x3cf)](_0x56ea6d)&&_0x56ea6d[_0x11419e(0x27b)]>0x0&&this[_0x11419e(0x277)](_0x56ea6d);}[_0x479db0(0x319)](){this['_online']=!0x1;}};_0x4a247a=_0x58338c([_0x43f854(0x2,_0x3446be[_0x479db0(0x21b)](_0x3446be[_0x479db0(0x195)])),_0x43f854(0x3,_0x3446be[_0x479db0(0x21b)](_0x324f05)),_0x43f854(0x4,_0x3446be['Inject'](_0x4a9508['MemberService'])),_0x43f854(0x5,_0x3446be['Inject'](_0x35b0b1)),_0x43f854(0x6,_0x5ee43a[_0x479db0(0x3b7)]),_0x43f854(0x7,_0x3446be[_0x479db0(0x2b5)]),_0x43f854(0x8,_0x3446be[_0x479db0(0x3ef)])],_0x4a247a);var _0x28b7f8=Object[_0x479db0(0x179)],_0x337ed5=(_0x3d03ea,_0x1b305e,_0x915c74,_0x468b8c)=>{for(var _0x398d5a=_0x468b8c>0x1?void 0x0:_0x468b8c?_0x28b7f8(_0x1b305e,_0x915c74):_0x1b305e,_0x49e2fe=_0x3d03ea['length']-0x1,_0x46bfa3;_0x49e2fe>=0x0;_0x49e2fe--)(_0x46bfa3=_0x3d03ea[_0x49e2fe])&&(_0x398d5a=_0x46bfa3(_0x398d5a)||_0x398d5a);return _0x398d5a;},_0xf93a31=(_0x2470fb,_0x1d592b)=>(_0x2175bd,_0x3a7e5e)=>_0x1d592b(_0x2175bd,_0x3a7e5e,_0x2470fb);const _0x15ee82=0x12c,_0x4abfb3=0x64,_0x565e5a=()=>{let _0x1a432b=[],_0x44b99f=!0x1;return _0x524550=>{const _0x3bff55=_0x5580;_0x1a432b[_0x3bff55(0x214)](_0x524550),_0x44b99f||(_0x44b99f=!0x0,setTimeout(()=>{const _0x592e44=_0x3bff55;_0x1a432b[_0x592e44(0x1ac)](_0x5c6dc9=>_0x5c6dc9()),_0x1a432b=[],_0x44b99f=!0x1;}));};};let _0x31024d=class extends _0x3446be[_0x479db0(0x315)]{constructor(_0x223483,_0x5b82aa,_0x2b3eba,_0x51d943,_0x5207c7,_0x5c74d1,_0xa09c07,_0xe59248){const _0x627345=_0x479db0;super(),_0x4b5aa6(this,_0x627345(0x373),!0x1),_0x4b5aa6(this,'_init',!0x1),_0x4b5aa6(this,_0x627345(0x266),new _0xc33fa7[(_0x627345(0x41f))](new Map())),_0x4b5aa6(this,_0x627345(0x3c3),this[_0x627345(0x266)][_0x627345(0x42d)]()),_0x4b5aa6(this,'_roomMembers$',new _0xc33fa7[(_0x627345(0x41f))]([])),_0x4b5aa6(this,_0x627345(0x3f9),this[_0x627345(0x19d)][_0x627345(0x1da)](_0xc33fa7['debounceTime'](_0x15ee82))),_0x4b5aa6(this,_0x627345(0x277),_0x3446be[_0x627345(0x1bb)]((_0x579e1d,_0x2b6a0b)=>{const _0x456b1e=_0x627345,_0x9bc91d={'eventID':_0x5ee43a[_0x456b1e(0x3f8)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x456b1e(0x180)],'memberID':this[_0x456b1e(0x318)][_0x456b1e(0x35b)](),'selection':_0x5777d0[_0x456b1e(0x38a)](_0x579e1d,_0x2b6a0b[_0x456b1e(0x1f8)])}};this[_0x456b1e(0x318)][_0x456b1e(0x440)](_0x9bc91d,this['unitID']);},_0x4abfb3)),(this[_0x627345(0x180)]=_0x223483,this[_0x627345(0x318)]=_0x5b82aa,this[_0x627345(0x23c)]=_0x2b3eba,this[_0x627345(0x313)]=_0x51d943,this[_0x627345(0x2c4)]=_0x5207c7,this['_univerInstanceService']=_0x5c74d1,this['_commandService']=_0xa09c07,this[_0x627345(0x3d0)]=_0xe59248);}get['cursorInfo'](){const _0x35f7fd=_0x479db0;return this[_0x35f7fd(0x266)][_0x35f7fd(0x424)]();}get[_0x479db0(0x31d)](){const _0x200a0e=_0x479db0;return this[_0x200a0e(0x19d)][_0x200a0e(0x424)]();}[_0x479db0(0x40d)](){const _0x68b3f8=_0x479db0;super[_0x68b3f8(0x40d)](),this[_0x68b3f8(0x266)][_0x68b3f8(0x1d1)](new Map()),this[_0x68b3f8(0x266)]['complete'](),this[_0x68b3f8(0x19d)][_0x68b3f8(0x1d1)]([]),this['_roomMembers$'][_0x68b3f8(0x3d2)]();}[_0x479db0(0x357)](){const _0x2621ac=_0x479db0;this[_0x2621ac(0x240)]||(this['_init']=!0x0,this[_0x2621ac(0x318)][_0x2621ac(0x201)][_0x2621ac(0x1da)](_0xc33fa7['takeUntil'](this[_0x2621ac(0x3af)]))[_0x2621ac(0x1b3)](_0x561b34=>{const _0x5ec682=_0x2621ac;_0x561b34===_0x4a9508['SessionStatus'][_0x5ec682(0x29d)]?this[_0x5ec682(0x26e)]():this[_0x5ec682(0x319)]();}),this[_0x2621ac(0x318)][_0x2621ac(0x3b2)][_0x2621ac(0x1da)](_0xc33fa7[_0x2621ac(0x2f3)](this['dispose$']))[_0x2621ac(0x1b3)](_0x37cdde=>{const _0x89c0fd=_0x2621ac,_0x218de4=_0x37cdde['eventID'];_0x218de4===_0x5ee43a[_0x89c0fd(0x3f8)]['UPDATE_CURSOR']&&this[_0x89c0fd(0x37a)](_0x37cdde),_0x218de4===_0x5ee43a[_0x89c0fd(0x3f8)][_0x89c0fd(0x2ab)]&&this[_0x89c0fd(0x25b)](_0x37cdde);}),this['_onRefRangeChange'](),this[_0x2621ac(0x275)](this[_0x2621ac(0x1ca)][_0x2621ac(0x3ec)](_0x452643=>{const _0x7d194d=_0x2621ac;if(this['_online']&&_0x452643['id']===_0x2c6e97['SetSelectionsOperation']['id']&&_0x452643[_0x7d194d(0x2b2)][_0x7d194d(0x404)]===this['unitID']){const _0x1df6ba=_0x452643[_0x7d194d(0x2b2)];this[_0x7d194d(0x277)](_0x1df6ba['subUnitId'],_0x1df6ba['selections'][0x0]);}})));}[_0x479db0(0x37a)](_0xf57d65){const _0x527717=_0x479db0;var _0x43e8d3,_0x1473fd;const {memberID:_0x17f510,selection:_0x4f9c34}=_0xf57d65[_0x527717(0x429)],{sheetName:_0x3dd904,range:_0x1ed3ef}=_0x5777d0[_0x527717(0x387)](_0x4f9c34),_0x252402={'name':(_0x1473fd=(_0x43e8d3=this[_0x527717(0x2c4)][_0x527717(0x32d)](this[_0x527717(0x180)],_0x17f510))==null?void 0x0:_0x43e8d3[_0x527717(0x348)])!=null?_0x1473fd:_0x527717(0x2bf),'range':this[_0x527717(0x280)](_0x3dd904,_0x1ed3ef),'sheetID':_0x3dd904,'color':this[_0x527717(0x313)]['assignAColorForMemberID'](_0x17f510),'selection':_0x4f9c34},_0x35ed41=this[_0x527717(0x294)];_0x35ed41[_0x527717(0x1c9)](_0x17f510,_0x252402),this[_0x527717(0x266)][_0x527717(0x1d1)](_0x35ed41);}[_0x479db0(0x25b)](_0x11ee59){const _0x5ebcdd=_0x479db0,{memberID:_0x3e26ec}=_0x11ee59[_0x5ebcdd(0x429)],_0x36a4a3=this['cursorInfo'];_0x36a4a3[_0x5ebcdd(0x368)](_0x3e26ec),this[_0x5ebcdd(0x266)][_0x5ebcdd(0x1d1)](_0x36a4a3);}['_getMergeRange'](_0xd7f8,_0x424223){const _0x30ab42=_0x479db0;var _0x25a053,_0x4996c1;const _0x274814=(_0x4996c1=(_0x25a053=this[_0x30ab42(0x221)][_0x30ab42(0x3cc)](this[_0x30ab42(0x180)]))==null?void 0x0:_0x25a053[_0x30ab42(0x394)](_0xd7f8))==null?void 0x0:_0x4996c1[_0x30ab42(0x38b)]();return(_0x274814==null?void 0x0:_0x274814[_0x30ab42(0x191)](_0x12fe05=>_0x3446be['Rectangle'][_0x30ab42(0x41b)](_0x12fe05,_0x424223)))||_0x424223;}[_0x479db0(0x238)](){const _0x30cd12=_0x479db0,_0x23979b=new _0x3446be['DisposableCollection'](),_0x8f2492=_0x565e5a(),_0x567d53=()=>{const _0xc15c8d=_0x5580;_0x23979b['dispose']();const _0x1f9fe6=(_0x29adf7,_0x34aec9,_0x2f2df3,_0x52fc90)=>{const _0x116f2c=_0x5580;let _0x1f0cfa=[];switch(_0x29adf7['id']){case _0x2c6e97[_0x116f2c(0x31c)]['DeleteRangeMoveLeftCommandId']:{_0x1f0cfa=_0x2c6e97['handleDeleteRangeMoveLeft'](_0x29adf7,_0x52fc90);break;}case _0x2c6e97[_0x116f2c(0x31c)][_0x116f2c(0x3ad)]:{_0x1f0cfa=_0x2c6e97[_0x116f2c(0x242)](_0x29adf7,_0x52fc90);break;}case _0x2c6e97['EffectRefRangId']['InsertColCommandId']:{_0x1f0cfa=_0x2c6e97[_0x116f2c(0x1a0)](_0x29adf7,_0x52fc90);break;}case _0x2c6e97[_0x116f2c(0x31c)][_0x116f2c(0x1dd)]:{_0x1f0cfa=_0x2c6e97[_0x116f2c(0x3fd)](_0x29adf7,_0x52fc90);break;}case _0x2c6e97[_0x116f2c(0x31c)][_0x116f2c(0x299)]:{_0x1f0cfa=_0x2c6e97[_0x116f2c(0x3e6)](_0x29adf7,_0x52fc90);break;}case _0x2c6e97[_0x116f2c(0x31c)][_0x116f2c(0x432)]:{_0x1f0cfa=_0x2c6e97['handleInsertRow'](_0x29adf7,_0x52fc90);break;}case _0x2c6e97[_0x116f2c(0x31c)][_0x116f2c(0x234)]:{_0x1f0cfa=_0x2c6e97[_0x116f2c(0x270)](_0x29adf7,_0x52fc90);break;}case _0x2c6e97[_0x116f2c(0x31c)][_0x116f2c(0x3cd)]:{_0x1f0cfa=_0x2c6e97[_0x116f2c(0x23d)](_0x29adf7,_0x52fc90);break;}case _0x2c6e97[_0x116f2c(0x31c)]['RemoveRowCommandId']:{_0x1f0cfa=_0x2c6e97['handleIRemoveRow'](_0x29adf7,_0x52fc90);break;}}const _0x1bec4b=_0x2c6e97[_0x116f2c(0x34a)](_0x1f0cfa,_0x52fc90),_0x3044d4=this[_0x116f2c(0x294)]['get'](_0x34aec9);if(_0x3044d4&&_0x1bec4b){const _0x1a89b1={..._0x3044d4,'range':_0x1bec4b};this[_0x116f2c(0x294)][_0x116f2c(0x1c9)](_0x34aec9,_0x1a89b1),_0x8f2492(()=>{const _0x219dd0=_0x116f2c,_0x379c07=this[_0x219dd0(0x3d0)][_0x219dd0(0x25d)](_0x1bec4b,_0x3e06f6=>(_0x379c07['dispose'](),_0x1f9fe6(_0x3e06f6,_0x34aec9,_0x2f2df3,_0x1bec4b)));_0x23979b[_0x219dd0(0x335)](_0x379c07);});}return{'redos':[],'undos':[]};};this[_0xc15c8d(0x294)][_0xc15c8d(0x1ac)]((_0x230c85,_0x2e1a4c)=>{const _0x4540ab=_0xc15c8d,{range:_0x435807,sheetID:_0x1413b6}=_0x230c85,_0xade1ba=this[_0x4540ab(0x3d0)]['registerRefRange'](_0x435807,_0x855fd7=>(_0xade1ba[_0x4540ab(0x40d)](),_0x1f9fe6(_0x855fd7,_0x2e1a4c,_0x1413b6,_0x435807)));_0x23979b[_0x4540ab(0x335)](_0xade1ba);});};this[_0x30cd12(0x275)](_0x3446be['toDisposable'](this['_cursorInfo$'][_0x30cd12(0x1b3)](()=>{_0x567d53();})));}['_toggleOnline'](){const _0x1163d6=_0x479db0;var _0x42c2bb,_0x4a6758;if(this[_0x1163d6(0x373)]=!0x0,((_0x42c2bb=this[_0x1163d6(0x221)]['getFocusedUnit']())==null?void 0x0:_0x42c2bb[_0x1163d6(0x346)]())!==this[_0x1163d6(0x180)])return;const _0x2965de=(_0x4a6758=this['_injector'][_0x1163d6(0x18f)](_0x2c6e97[_0x1163d6(0x1c6)])[_0x1163d6(0x418)]())==null?void 0x0:_0x4a6758[0x0],_0x27cae9=this[_0x1163d6(0x221)][_0x1163d6(0x282)](_0x3446be['UniverInstanceType'][_0x1163d6(0x3a8)])['getActiveSheet']();_0x2965de&&_0x27cae9&&this[_0x1163d6(0x277)](_0x27cae9['getSheetId'](),_0x2965de);}[_0x479db0(0x319)](){this['_online']=!0x1;}};_0x31024d=_0x337ed5([_0xf93a31(0x2,_0x3446be[_0x479db0(0x21b)](_0x3446be[_0x479db0(0x195)])),_0xf93a31(0x3,_0x3446be[_0x479db0(0x21b)](_0x324f05)),_0xf93a31(0x4,_0x3446be['Inject'](_0x4a9508[_0x479db0(0x27a)])),_0xf93a31(0x5,_0x3446be[_0x479db0(0x2b5)]),_0xf93a31(0x6,_0x3446be[_0x479db0(0x3ef)]),_0xf93a31(0x7,_0x3446be[_0x479db0(0x21b)](_0x2c6e97['RefRangeService']))],_0x31024d);var _0x5752ff=Object[_0x479db0(0x179)],_0x1d44dc=(_0x388eb4,_0x16df97,_0xa93485,_0x6a02e2)=>{const _0x558fdc=_0x479db0;for(var _0x254b98=_0x6a02e2>0x1?void 0x0:_0x6a02e2?_0x5752ff(_0x16df97,_0xa93485):_0x16df97,_0x4f6954=_0x388eb4[_0x558fdc(0x27b)]-0x1,_0xfee410;_0x4f6954>=0x0;_0x4f6954--)(_0xfee410=_0x388eb4[_0x4f6954])&&(_0x254b98=_0xfee410(_0x254b98)||_0x254b98);return _0x254b98;},_0xfaddfe=(_0xa24e16,_0x2826c5)=>(_0xe4dc92,_0x44ce54)=>_0x2826c5(_0xe4dc92,_0x44ce54,_0xa24e16);let _0x302180=class extends _0x3446be[_0x479db0(0x315)]{constructor(_0x3590c8,_0x386444,_0x6b6ca5){const _0x13cd9d=_0x479db0;super(),_0x4b5aa6(this,_0x13cd9d(0x392),new Map()),_0x4b5aa6(this,_0x13cd9d(0x33a),new _0xc33fa7[(_0x13cd9d(0x245))]()),(this[_0x13cd9d(0x221)]=_0x3590c8,this[_0x13cd9d(0x23c)]=_0x386444,this[_0x13cd9d(0x3d6)]=_0x6b6ca5,this[_0x13cd9d(0x240)]());}['dispose'](){const _0x44c8f9=_0x479db0;super[_0x44c8f9(0x40d)](),this[_0x44c8f9(0x33a)]['complete'](),this[_0x44c8f9(0x392)][_0x44c8f9(0x1ac)](_0x4739f6=>_0x4739f6[_0x44c8f9(0x40d)]());}[_0x479db0(0x358)](_0x26702b){const _0x138663=_0x479db0;return this[_0x138663(0x392)]['has'](_0x26702b)?this[_0x138663(0x392)][_0x138663(0x18f)](_0x26702b)[_0x138663(0x3c3)]:this[_0x138663(0x33a)][_0x138663(0x1da)](_0xc33fa7[_0x138663(0x352)](_0x45bc06=>_0x45bc06['unitID']===_0x26702b),_0xc33fa7[_0x138663(0x413)](_0x305532=>_0x305532[_0x138663(0x3c3)]));}[_0x479db0(0x240)](){const _0x52026c=_0x479db0;this['_univerInstanceService'][_0x52026c(0x3c8)](_0x3446be['UniverInstanceType'][_0x52026c(0x3a8)])[_0x52026c(0x1da)](_0xc33fa7[_0x52026c(0x2f3)](this[_0x52026c(0x3af)]))[_0x52026c(0x1b3)](async _0x4750be=>{const _0x5134d0=_0x52026c,_0x2d0793=_0x4750be[_0x5134d0(0x346)](),_0x2298ec=await this['_startSheetCollabCursor'](_0x2d0793);this['_entityInit$']['next'](_0x2298ec),this[_0x5134d0(0x392)][_0x5134d0(0x1c9)](_0x2d0793,_0x2298ec);}),this[_0x52026c(0x221)][_0x52026c(0x3c8)](_0x3446be[_0x52026c(0x20a)][_0x52026c(0x24c)])[_0x52026c(0x1da)](_0xc33fa7[_0x52026c(0x2f3)](this[_0x52026c(0x3af)]))['pipe'](_0xc33fa7['filter'](_0x40cbea=>!_0x40cbea[_0x52026c(0x346)]()[_0x52026c(0x3d9)]('__')))[_0x52026c(0x1b3)](async _0x536666=>{const _0x5a891d=_0x52026c,_0x1cd8a2=_0x536666[_0x5a891d(0x346)](),_0x12270c=await this[_0x5a891d(0x314)](_0x1cd8a2);this[_0x5a891d(0x33a)][_0x5a891d(0x1d1)](_0x12270c),this[_0x5a891d(0x392)][_0x5a891d(0x1c9)](_0x1cd8a2,_0x12270c);}),_0xc33fa7['merge'](this[_0x52026c(0x221)][_0x52026c(0x2ed)](_0x3446be['UniverInstanceType'][_0x52026c(0x24c)]),this[_0x52026c(0x221)][_0x52026c(0x2ed)](_0x3446be['UniverInstanceType'][_0x52026c(0x3a8)]))[_0x52026c(0x1da)](_0xc33fa7[_0x52026c(0x2f3)](this[_0x52026c(0x3af)]))[_0x52026c(0x1b3)](_0x333211=>{const _0x2e1378=_0x52026c,_0x3fe6e7=_0x333211[_0x2e1378(0x346)](),_0x57047f=this[_0x2e1378(0x392)]['get'](_0x3fe6e7);_0x57047f&&(_0x57047f[_0x2e1378(0x40d)](),this[_0x2e1378(0x392)][_0x2e1378(0x368)](_0x3fe6e7));});}async[_0x479db0(0x444)](_0x26a61e){const _0x264707=_0x479db0,_0xd54c98=await this['_collabSessionService']['requireSession'](_0x26a61e),_0x4b5660=this[_0x264707(0x23c)]['createInstance'](_0x31024d,_0x26a61e,_0xd54c98);return _0x4b5660[_0x264707(0x357)](),_0x4b5660;}async['_startDocCollabCursor'](_0x111efc){const _0xbaddc1=_0x479db0,_0x283388=await this[_0xbaddc1(0x3d6)][_0xbaddc1(0x3bb)](_0x111efc),_0x54a343=this[_0xbaddc1(0x23c)][_0xbaddc1(0x1ec)](_0x4a247a,_0x111efc,_0x283388);return _0x54a343[_0xbaddc1(0x357)](),_0x54a343;}};_0x302180=_0x1d44dc([_0xfaddfe(0x0,_0x3446be['IUniverInstanceService']),_0xfaddfe(0x1,_0x3446be[_0x479db0(0x21b)](_0x3446be[_0x479db0(0x195)])),_0xfaddfe(0x2,_0x3446be[_0x479db0(0x21b)](_0x4a9508['CollaborationSessionService']))],_0x302180);const _0x43962b=0x14,_0x45c628=0xc8,_0x17e733=0x4,_0x528dfb=0x5;function _0x1f3aab(_0x1704c7,_0x3de961){const _0x47f476=_0x479db0;let {radius:_0x1671e5,width:_0x4ac560,height:_0x410cbe}=_0x3de961;_0x1671e5=_0x1671e5!=null?_0x1671e5:0x0,_0x4ac560=_0x4ac560!=null?_0x4ac560:0x1e,_0x410cbe=_0x410cbe!=null?_0x410cbe:0x1e;let _0x3edadf=0x0,_0x3bdaac=0x0,_0xc8a5de=0x0;_0x3edadf=_0x3bdaac=_0xc8a5de=Math[_0x47f476(0x20f)](_0x1671e5,_0x4ac560/0x2,_0x410cbe/0x2),_0x1704c7[_0x47f476(0x1db)](),_0x1704c7[_0x47f476(0x26a)](_0x3edadf,0x0),_0x1704c7[_0x47f476(0x390)](_0x4ac560-_0x3bdaac,0x0),_0x1704c7[_0x47f476(0x326)](_0x4ac560-_0x3bdaac,_0x3bdaac,_0x3bdaac,Math['PI']*0x3/0x2,0x0,!0x1),_0x1704c7[_0x47f476(0x390)](_0x4ac560,_0x410cbe-_0xc8a5de),_0x1704c7[_0x47f476(0x326)](_0x4ac560-_0xc8a5de,_0x410cbe-_0xc8a5de,_0xc8a5de,0x0,Math['PI']/0x2,!0x1),_0x1704c7[_0x47f476(0x390)](0x0,_0x410cbe),_0x1704c7['lineTo'](0x0,_0x3edadf),_0x1704c7[_0x47f476(0x326)](_0x3edadf,_0x3edadf,_0x3edadf,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1704c7[_0x47f476(0x1df)](),_0x3de961[_0x47f476(0x328)]&&(_0x1704c7[_0x47f476(0x2ba)](),_0x1704c7[_0x47f476(0x2d4)]=_0x3de961['fill'],_0x3de961[_0x47f476(0x274)]===_0x47f476(0x2cd)?_0x1704c7['fill'](_0x47f476(0x2cd)):_0x1704c7[_0x47f476(0x328)](),_0x1704c7[_0x47f476(0x40f)]());}class _0x41b85c extends _0x154eb1[_0x479db0(0x226)]{constructor(_0x1083b8,_0x463ad1){const _0x41a1b7=_0x479db0;super(_0x1083b8,_0x463ad1),_0x4b5aa6(this,_0x41a1b7(0x43b)),_0x4b5aa6(this,_0x41a1b7(0x208)),(this[_0x41a1b7(0x43b)]=_0x463ad1==null?void 0x0:_0x463ad1['color'],this[_0x41a1b7(0x208)]=_0x463ad1==null?void 0x0:_0x463ad1[_0x41a1b7(0x208)]);}static['drawWith'](_0x43d02e,_0x46f8a7){const _0x4fa1c4=_0x479db0,{text:_0x34f799,color:_0x5695f4}=_0x46f8a7;_0x43d02e['save'](),_0x43d02e[_0x4fa1c4(0x25e)]=_0x4fa1c4(0x3a0);const _0x47d26b=_0x43d02e['measureText'](_0x34f799)[_0x4fa1c4(0x1bd)],_0x49be16=Math[_0x4fa1c4(0x20f)](_0x47d26b+0x2*_0x17e733,_0x45c628);_0x1f3aab(_0x43d02e,{'height':_0x43962b,'radius':0x4,'width':_0x49be16,'fill':_0x5695f4}),_0x43d02e['fillStyle']=_0x4fa1c4(0x2dd);const _0x59d6a7=_0x17e733,_0x17b9a9=_0x43962b-_0x528dfb,_0x537abb=_0x45c628-0x2*_0x17e733;if(_0x47d26b>_0x537abb){let _0x1d9afd='',_0xbf1dca=0x0;for(const _0x24e870 of _0x34f799){const _0x6222e4=_0x43d02e[_0x4fa1c4(0x253)](_0x24e870)[_0x4fa1c4(0x1bd)];if(_0xbf1dca+_0x6222e4<=_0x537abb-_0x43d02e[_0x4fa1c4(0x253)](_0x4fa1c4(0x19c))['width'])_0x1d9afd+=_0x24e870,_0xbf1dca+=_0x6222e4;else{_0x1d9afd+='...';break;}}_0x43d02e[_0x4fa1c4(0x276)](_0x1d9afd,_0x59d6a7,_0x17b9a9);}else _0x43d02e['fillText'](_0x34f799,_0x59d6a7,_0x17b9a9);_0x43d02e[_0x4fa1c4(0x40f)]();}[_0x479db0(0x3a7)](_0x275704){_0x41b85c['drawWith'](_0x275704,this);}}const _0x2c4912=_0x479db0(0x304),_0x6ab1f7=_0x479db0(0x35a),_0x27c198=_0x479db0(0x258),_0x50a40f=0x6,_0x563693=1.5,_0x176b01=0x4,_0x4402fc=1.5,_0x2419de=_0x479db0(0x2c1);class _0x592d74{constructor(_0xa79931,_0x47615a,_0x5d9b16,_0x47421c){const _0x6a24fd=_0x479db0;_0x4b5aa6(this,_0x6a24fd(0x2f5),[]),_0x4b5aa6(this,'_anchor',null),_0x4b5aa6(this,_0x6a24fd(0x1a7),null),_0x4b5aa6(this,_0x6a24fd(0x295),null),_0x4b5aa6(this,_0x6a24fd(0x278),null),_0x4b5aa6(this,_0x6a24fd(0x427),null),(this[_0x6a24fd(0x2c6)]=_0xa79931,this[_0x6a24fd(0x205)]=_0x47615a,this[_0x6a24fd(0x3b3)]=_0x5d9b16,this['_document']=_0x47421c,this[_0x6a24fd(0x1b0)]());}set['_hover'](_0x22eade){const _0x5ecfe3=_0x479db0;_0x22eade?(this[_0x5ecfe3(0x295)]&&this[_0x5ecfe3(0x295)][_0x5ecfe3(0x2fe)](),this['_textBubble']&&this[_0x5ecfe3(0x1a7)][_0x5ecfe3(0x2a8)]()):(this[_0x5ecfe3(0x295)]&&this[_0x5ecfe3(0x295)]['show'](),this[_0x5ecfe3(0x1a7)]&&this[_0x5ecfe3(0x1a7)]['hide']());}[_0x479db0(0x40d)](){const _0x3d6eab=_0x479db0;for(const _0x471a9a of this[_0x3d6eab(0x2f5)])_0x471a9a[_0x3d6eab(0x40d)]();this[_0x3d6eab(0x1a7)]&&this[_0x3d6eab(0x1a7)][_0x3d6eab(0x40d)](),this[_0x3d6eab(0x295)]&&this[_0x3d6eab(0x295)]['dispose'](),this['_anchor']&&this[_0x3d6eab(0x321)][_0x3d6eab(0x40d)](),this[_0x3d6eab(0x427)]&&this['_eventUnsubscribe']();}[_0x479db0(0x1b0)](){const _0x2d45a6=_0x479db0;var _0x2b94f3;const {_docSkeleton:_0x5bd16,_document:_0x159a64}=this,{color:_0x531e7c,name:_0x5c6132,ranges:_0x5092e4}=this[_0x2d45a6(0x2c6)],_0x580f10=_0x159a64[_0x2d45a6(0x2a4)](),{docsLeft:_0x18fa2b,docsTop:_0x3cf1d2}=_0x580f10,_0x4ee7c6=new _0x4262be[(_0x2d45a6(0x1f6))](_0x580f10,_0x5bd16);for(const {startOffset:_0x2508ae,endOffset:_0x4d66a9,rangeType:_0x20f2d9,segmentId:_0x107272,segmentPage:_0x5420e6,collapsed:_0x317268,isActive:_0x4ddfec}of _0x5092e4){const _0x3121cd=_0x5bd16[_0x2d45a6(0x2cf)](_0x2508ae,!0x0,_0x107272,_0x5420e6);let _0xbcebd4=_0x5bd16[_0x2d45a6(0x2cf)](_0x4d66a9,!0x0,_0x107272,_0x5420e6);if(_0xbcebd4==null&&(_0xbcebd4=_0x5bd16[_0x2d45a6(0x2cf)](_0x4d66a9-0x1,!0x1,_0x107272,_0x5420e6)),_0x4ddfec){const {contentBoxPointGroup:_0x34ba7d}=_0x4ee7c6[_0x2d45a6(0x36f)](_0xbcebd4,_0xbcebd4);if(_0x34ba7d[_0x2d45a6(0x27b)]===0x0)continue;this[_0x2d45a6(0x39d)](_0x531e7c,_0x34ba7d,_0x18fa2b,_0x3cf1d2,_0x5c6132),this[_0x2d45a6(0x427)]=this[_0x2d45a6(0x2fa)]();}if(_0x3121cd&&_0xbcebd4){if(_0x20f2d9===_0x3446be['DOC_RANGE_TYPE'][_0x2d45a6(0x21c)]){const _0x4fc547=new _0x4262be[(_0x2d45a6(0x3f2))](_0x580f10,_0x5bd16),{pointGroup:_0xba9e51}=(_0x2b94f3=_0x4fc547[_0x2d45a6(0x36f)](_0x3121cd,_0xbcebd4))!=null?_0x2b94f3:{};if(_0xba9e51==null||_0xba9e51['length']===0x0)continue;this[_0x2d45a6(0x247)](_0x531e7c,_0xba9e51,_0x18fa2b,_0x3cf1d2);}else{if(!_0x317268){const {borderBoxPointGroup:_0x57773c}=_0x4ee7c6['getRangePointData'](_0x3121cd,_0xbcebd4);if(_0x57773c[_0x2d45a6(0x27b)]===0x0)continue;this['_drawTextRange'](_0x531e7c,_0x57773c,_0x18fa2b,_0x3cf1d2);}}}}}[_0x479db0(0x39d)](_0x5757c7,_0x466be3,_0x45ee5b,_0x231378,_0x3cb65d){const _0x58c2e5=_0x479db0,_0x2fbd1d=this[_0x58c2e5(0x356)](_0x466be3),{left:_0x3557ed,top:_0x497995,height:_0xff56e5}=_0x2fbd1d,_0x448ffa=this['_getScale'](),_0xfbee8b=_0x4402fc/_0x448ffa,_0x5d6639=new _0x154eb1['Rect'](_0x2c4912+_0x3446be[_0x58c2e5(0x407)](_0x50a40f),{'left':_0x3557ed+_0x45ee5b-_0xfbee8b,'top':_0x497995+_0x231378,'height':_0xff56e5,'width':_0x563693,'fill':_0x5757c7||_0x154eb1[_0x58c2e5(0x3b0)](_0x3446be[_0x58c2e5(0x1ef)][_0x58c2e5(0x433)],0x0),'strokeWidth':_0xfbee8b,'stroke':_0x2419de,'evented':!0x0});this[_0x58c2e5(0x321)]=_0x5d6639,this[_0x58c2e5(0x205)][_0x58c2e5(0x39c)](_0x5d6639,_0x4262be['TEXT_RANGE_LAYER_INDEX']);const _0x157123=new _0x154eb1['Rect'](_0x2c4912+_0x3446be['generateRandomId'](_0x50a40f),{'left':_0x3557ed+_0x45ee5b-_0xfbee8b,'top':_0x497995+_0x231378-_0x176b01/0x2,'height':_0x176b01,'width':_0x176b01,'fill':_0x5757c7||_0x154eb1[_0x58c2e5(0x3b0)](_0x3446be[_0x58c2e5(0x1ef)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5757c7||_0x154eb1[_0x58c2e5(0x3b0)](_0x3446be[_0x58c2e5(0x1ef)]['black'],0x0),'evented':!0x1});this[_0x58c2e5(0x295)]=_0x157123,this['_scene'][_0x58c2e5(0x39c)](_0x157123,_0x4262be[_0x58c2e5(0x2f9)]);const _0x53887a=new _0x41b85c(_0x2c4912+_0x3446be[_0x58c2e5(0x407)](_0x50a40f),{'left':_0x3557ed+_0x45ee5b-_0xfbee8b,'top':_0x497995+_0x231378-_0x43962b,'text':_0x3cb65d,'color':_0x5757c7});this[_0x58c2e5(0x1a7)]=_0x53887a,this['_scene'][_0x58c2e5(0x39c)](_0x53887a,_0x4262be[_0x58c2e5(0x2f9)]),this['_hover']=!0x1;}[_0x479db0(0x2fa)](){const _0x4d4d4d=_0x479db0,_0x8e7a2f=this[_0x4d4d4d(0x321)][_0x4d4d4d(0x3b9)][_0x4d4d4d(0x1ab)](()=>{const _0x2743a9=_0x4d4d4d;this[_0x2743a9(0x41c)]=!0x0;}),_0x3071d6=this['_anchor']['onPointerLeave$'][_0x4d4d4d(0x1ab)](()=>{const _0x32b7f6=_0x4d4d4d;this[_0x32b7f6(0x278)]&&clearTimeout(this['_hideTimer']),this[_0x32b7f6(0x278)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3f2b23=_0x4d4d4d;_0x8e7a2f['unsubscribe'](),_0x3071d6[_0x3f2b23(0x2f6)]();};}[_0x479db0(0x1e3)](_0x3f5a40,_0x475d2f,_0x15a209,_0xafbf2e){const _0x1c9b26=_0x479db0,_0x479a5a=new _0x3446be[(_0x1c9b26(0x2d8))](_0x3f5a40)[_0x1c9b26(0x35d)](0.2)[_0x1c9b26(0x1ce)](),_0x12f95b=new _0x154eb1['RegularPolygon'](_0x6ab1f7+_0x3446be[_0x1c9b26(0x407)](_0x50a40f),{'pointsGroup':_0x475d2f,'fill':_0x479a5a||_0x154eb1[_0x1c9b26(0x3b0)](_0x3446be[_0x1c9b26(0x1ef)][_0x1c9b26(0x433)],0.2),'left':_0x15a209,'top':_0xafbf2e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1c9b26(0x2f5)][_0x1c9b26(0x214)](_0x12f95b),this[_0x1c9b26(0x205)][_0x1c9b26(0x39c)](_0x12f95b,_0x4262be[_0x1c9b26(0x2f9)]);}[_0x479db0(0x247)](_0xd90a75,_0x4c90dd,_0x62563b,_0x31c855){const _0x3324dd=_0x479db0,_0x724cf8=new _0x3446be['ColorKit'](_0xd90a75)[_0x3324dd(0x35d)](0.2)[_0x3324dd(0x1ce)](),_0xcf5ee3=new _0x154eb1['RegularPolygon'](_0x27c198+_0x3446be[_0x3324dd(0x407)](_0x50a40f),{'pointsGroup':_0x4c90dd,'fill':_0x724cf8||_0x154eb1['getColor'](_0x3446be[_0x3324dd(0x1ef)][_0x3324dd(0x433)],0.2),'left':_0x62563b,'top':_0x31c855,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3324dd(0x214)](_0xcf5ee3),this['_scene'][_0x3324dd(0x39c)](_0xcf5ee3,_0x4262be[_0x3324dd(0x2f9)]);}[_0x479db0(0x356)](_0x20007c){const _0x3e929a=_0x20007c[0x0],_0x6f3fbb=_0x3e929a[0x0],_0x1256a9=_0x3e929a[0x2],{x:_0x33c50e,y:_0x81b285}=_0x6f3fbb,{x:_0x44deed,y:_0x1efcad}=_0x1256a9;return{'left':_0x33c50e,'top':_0x81b285,'width':_0x44deed-_0x33c50e,'height':_0x1efcad-_0x81b285};}[_0x479db0(0x254)](){const _0x2624ba=_0x479db0,{scaleX:_0x3017b0,scaleY:_0x431ecb}=this[_0x2624ba(0x205)]['getAncestorScale']();return Math[_0x2624ba(0x37f)](_0x3017b0,_0x431ecb);}}var _0x5c167d=Object[_0x479db0(0x179)],_0x27db13=(_0x18e706,_0x6eec55,_0x38b718,_0x19442b)=>{const _0x1605ec=_0x479db0;for(var _0x994417=_0x19442b>0x1?void 0x0:_0x19442b?_0x5c167d(_0x6eec55,_0x38b718):_0x6eec55,_0x3b2fe8=_0x18e706[_0x1605ec(0x27b)]-0x1,_0x3fe3e0;_0x3b2fe8>=0x0;_0x3b2fe8--)(_0x3fe3e0=_0x18e706[_0x3b2fe8])&&(_0x994417=_0x3fe3e0(_0x994417)||_0x994417);return _0x994417;},_0x7152e9=(_0x28b128,_0x3eb496)=>(_0xc5dc36,_0xc92bb8)=>_0x3eb496(_0xc5dc36,_0xc92bb8,_0x28b128);let _0x1554de=class extends _0x3446be[_0x479db0(0x315)]{constructor(_0x401d69,_0x42a223,_0xe4ac15,_0x41a8a3,_0x240caa){const _0x488f35=_0x479db0;super(),_0x4b5aa6(this,_0x488f35(0x17c),[]),_0x4b5aa6(this,_0x488f35(0x2bb),[]),(this[_0x488f35(0x445)]=_0x401d69,this[_0x488f35(0x27e)]=_0x42a223,this[_0x488f35(0x252)]=_0xe4ac15,this[_0x488f35(0x1ca)]=_0x41a8a3,this[_0x488f35(0x1b1)]=_0x240caa,this[_0x488f35(0x240)]());}[_0x479db0(0x240)](){const _0x576cb2=_0x479db0,_0x1fc9e3=this[_0x576cb2(0x445)][_0x576cb2(0x404)],_0x3fd261=this['_docSkeletonManagerService'];this[_0x576cb2(0x275)](_0xc33fa7[_0x576cb2(0x406)]([this[_0x576cb2(0x252)][_0x576cb2(0x358)](_0x1fc9e3),this['_themeService'][_0x576cb2(0x233)]])[_0x576cb2(0x1da)](_0x1b2b92[_0x576cb2(0x2dc)](([_0x4e950a,_0x133aa2])=>({'skeleton':_0x3fd261[_0x576cb2(0x1fb)](),'cursors':[..._0x4e950a[_0x576cb2(0x1ed)]()]['flatMap'](_0x7e030c=>({..._0x7e030c,'color':this[_0x576cb2(0x1b1)][_0x576cb2(0x343)](_0x7e030c['color'])}))})))[_0x576cb2(0x1b3)](_0x5e52ac=>{const _0x2a09a3=_0x576cb2;if(this[_0x2a09a3(0x41a)](),_0x5e52ac){const {skeleton:_0x1ebbdd,cursors:_0x22f5cc}=_0x5e52ac;this[_0x2a09a3(0x2b1)](_0x1ebbdd,_0x22f5cc);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x479db0(0x2b1)](_0x37e598,_0x9ab903){const _0x39f706=_0x479db0,{scene:_0x11862a,mainComponent:_0xf77521}=this[_0x39f706(0x445)],_0x24c887=_0x9ab903[_0x39f706(0x2dc)](_0x282350=>new _0x592d74(_0x282350,_0x11862a,_0x37e598,_0xf77521));this['_cursorShapes']=_0x24c887,this[_0x39f706(0x2bb)]=_0x9ab903;}[_0x479db0(0x301)](){const _0x1dfa3e=_0x479db0;this[_0x1dfa3e(0x41a)]();const {scene:_0x41fe94,mainComponent:_0x3dbdf3}=this[_0x1dfa3e(0x445)],_0x20fbce=this['_docSkeletonManagerService'][_0x1dfa3e(0x1fb)](),_0x597672=this['_cursors']['map'](_0x48f44e=>new _0x592d74(_0x48f44e,_0x41fe94,_0x20fbce,_0x3dbdf3));this['_cursorShapes']=_0x597672;}['_removeCollabCursors'](){const _0x3cb6ec=_0x479db0;this[_0x3cb6ec(0x17c)][_0x3cb6ec(0x1ac)](_0x14af3d=>_0x14af3d[_0x3cb6ec(0x40d)]()),this[_0x3cb6ec(0x17c)]=[];}[_0x479db0(0x2e2)](){const _0x527662=_0x479db0,_0x59c78f=[_0x4262be[_0x527662(0x399)]['id']];this[_0x527662(0x275)](this[_0x527662(0x1ca)]['onCommandExecuted'](_0x20b449=>{const _0x3878b3=_0x527662;_0x59c78f['includes'](_0x20b449['id'])&&_0x20b449['params']['unitId']===this['_context'][_0x3878b3(0x404)]&&this[_0x3878b3(0x301)]();}));}[_0x479db0(0x362)](){const _0x1fe9d6=_0x479db0;this[_0x1fe9d6(0x275)](_0x3446be[_0x1fe9d6(0x402)](this['_context'][_0x1fe9d6(0x1e0)][_0x1fe9d6(0x30c)])['pipe'](_0x1b2b92['filter'](_0x142afe=>_0x142afe[_0x1fe9d6(0x26f)]===_0x154eb1[_0x1fe9d6(0x17a)]['resize']),_0x1b2b92['throttleTime'](0x10))['subscribe'](()=>{const _0x3847a0=_0x1fe9d6;this[_0x3847a0(0x301)]();}));}};_0x1554de=_0x27db13([_0x7152e9(0x1,_0x3446be[_0x479db0(0x21b)](_0x4cdd99[_0x479db0(0x28f)])),_0x7152e9(0x2,_0x3446be[_0x479db0(0x21b)](_0x302180)),_0x7152e9(0x3,_0x3446be[_0x479db0(0x3ef)]),_0x7152e9(0x4,_0x3446be[_0x479db0(0x21b)](_0x3446be['ThemeService']))],_0x1554de);const _0x1b0dbb=0x1,_0x25800c=1.5;class _0x4f6975 extends _0x154eb1[_0x479db0(0x226)]{constructor(_0x110e02,_0x588013){const _0x9dfab5=_0x479db0;super(_0x110e02,_0x588013),_0x4b5aa6(this,_0x9dfab5(0x3c1)),_0x4b5aa6(this,_0x9dfab5(0x1a2),!0x1),_0x4b5aa6(this,_0x9dfab5(0x1a3)),_0x4b5aa6(this,'_name',''),_0x4b5aa6(this,_0x9dfab5(0x3fe),'top'),_0x4b5aa6(this,_0x9dfab5(0x2b9)),(_0x588013&&this[_0x9dfab5(0x353)](_0x588013),this[_0x9dfab5(0x3b9)][_0x9dfab5(0x1ab)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x9dfab5(0x3e1)][_0x9dfab5(0x1ab)](()=>this[_0x9dfab5(0x353)]({'hovered':!0x1})));}[_0x479db0(0x353)](_0x2bad10){const _0x1e4a77=_0x479db0;var _0x397d9a,_0x3e52e6,_0x636445,_0x59422f,_0x10b500,_0x552fb4;this[_0x1e4a77(0x3c1)]=(_0x397d9a=_0x2bad10[_0x1e4a77(0x43b)])!=null?_0x397d9a:this['_color'],this[_0x1e4a77(0x1a2)]=(_0x3e52e6=_0x2bad10['hovered'])!=null?_0x3e52e6:this['_hovered'],this['_range']=(_0x636445=_0x2bad10['range'])!=null?_0x636445:this[_0x1e4a77(0x1a3)],this[_0x1e4a77(0x2eb)]=(_0x59422f=_0x2bad10['name'])!=null?_0x59422f:this['_name'],this[_0x1e4a77(0x3fe)]=(_0x10b500=_0x2bad10['labelPosition'])!=null?_0x10b500:this[_0x1e4a77(0x3fe)],this[_0x1e4a77(0x2b9)]=(_0x552fb4=_0x2bad10[_0x1e4a77(0x2ce)])!=null?_0x552fb4:this[_0x1e4a77(0x2b9)],this['transformByState']({'width':_0x2bad10[_0x1e4a77(0x1bd)],'height':_0x2bad10[_0x1e4a77(0x336)]});}[_0x479db0(0x3e7)](_0x1784ec){const _0x230405=_0x479db0,{row:_0x54c327,column:_0x468eb5}=_0x1784ec;if(_0x54c327>=this[_0x230405(0x1a3)][_0x230405(0x1e8)]&&_0x54c327<=this['_range'][_0x230405(0x33e)]&&_0x468eb5>=this[_0x230405(0x1a3)][_0x230405(0x371)]&&_0x468eb5<=this[_0x230405(0x1a3)][_0x230405(0x187)]){this[_0x230405(0x353)]({'hovered':!0x0});return;}this[_0x230405(0x353)]({'hovered':!0x1});}[_0x479db0(0x1ad)](_0x114c7f){return!0x1;}[_0x479db0(0x3a7)](_0x107f47){const _0xbceb6e=_0x479db0;_0x154eb1['Rect'][_0xbceb6e(0x410)](_0x107f47,{'width':this[_0xbceb6e(0x1bd)],'height':this[_0xbceb6e(0x336)],'strokeWidth':_0x25800c,'stroke':this[_0xbceb6e(0x3c1)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0xbceb6e(0x1a2)]&&(_0x107f47[_0xbceb6e(0x2ba)](),_0x107f47[_0xbceb6e(0x38e)](0x1,0x0,0x0,0x1,this[_0xbceb6e(0x1bd)],this[_0xbceb6e(0x3fe)]===_0xbceb6e(0x2ee)?0x0:-_0x43962b),_0x41b85c[_0xbceb6e(0x410)](_0x107f47,{'text':this[_0xbceb6e(0x2eb)],'color':this[_0xbceb6e(0x3c1)]}),_0x107f47[_0xbceb6e(0x40f)]());}}var _0x56ccb5=Object[_0x479db0(0x179)],_0x3c61bd=(_0x16f158,_0x5ef9d5,_0x1529f1,_0x3716ae)=>{const _0x2a7aff=_0x479db0;for(var _0x13b7e6=_0x3716ae>0x1?void 0x0:_0x3716ae?_0x56ccb5(_0x5ef9d5,_0x1529f1):_0x5ef9d5,_0x46c213=_0x16f158[_0x2a7aff(0x27b)]-0x1,_0x3ebae3;_0x46c213>=0x0;_0x46c213--)(_0x3ebae3=_0x16f158[_0x46c213])&&(_0x13b7e6=_0x3ebae3(_0x13b7e6)||_0x13b7e6);return _0x13b7e6;},_0x22c47f=(_0x171384,_0x500caa)=>(_0x20f03b,_0x529c31)=>_0x500caa(_0x20f03b,_0x529c31,_0x171384);const _0x1606fa=0x1389;let _0x125789=class extends _0x3446be[_0x479db0(0x315)]{constructor(_0x595d93,_0x33e189,_0x56293e,_0x5d9e6f){const _0x47e3b2=_0x479db0;super(),_0x4b5aa6(this,_0x47e3b2(0x2bb),new Set()),_0x4b5aa6(this,_0x47e3b2(0x2d5),null),(this[_0x47e3b2(0x445)]=_0x595d93,this[_0x47e3b2(0x3c0)]=_0x33e189,this[_0x47e3b2(0x252)]=_0x56293e,this['_themeService']=_0x5d9e6f,this[_0x47e3b2(0x240)]());}[_0x479db0(0x240)](){const _0x1d8e73=_0x479db0;this[_0x1d8e73(0x3c0)][_0x1d8e73(0x2be)][_0x1d8e73(0x1da)](_0x1b2b92[_0x1d8e73(0x2f3)](this[_0x1d8e73(0x3af)]),_0x1b2b92[_0x1d8e73(0x413)](_0x32f60b=>{const _0x13a039=_0x1d8e73;if(_0x32f60b){const _0x405dd6=_0x32f60b[_0x13a039(0x3a5)];return _0xc33fa7[_0x13a039(0x406)](this[_0x13a039(0x252)][_0x13a039(0x358)](this[_0x13a039(0x445)][_0x13a039(0x404)]),this[_0x13a039(0x1b1)][_0x13a039(0x233)])[_0x13a039(0x1da)](_0x1b2b92[_0x13a039(0x2dc)](([_0x5cde6b,_0x2a8de7])=>{const _0xe3ba32=_0x13a039,_0x3554d2=new Map();return _0x5cde6b[_0xe3ba32(0x1ac)]((_0x3ef375,_0x1c2fe4)=>{const _0x1f70ba=_0xe3ba32;if(_0x3ef375['sheetID']===_0x405dd6){const _0x12dccd={..._0x3ef375};_0x12dccd[_0x1f70ba(0x43b)]=this['_themeService'][_0x1f70ba(0x343)](_0x3ef375[_0x1f70ba(0x43b)]),_0x3554d2[_0x1f70ba(0x1c9)](_0x1c2fe4,_0x12dccd);}}),{'skeleton':_0x32f60b,'cursors':_0x3554d2};}));}return _0xc33fa7['of']({'skeleton':null,'cursors':new Map()});}))[_0x1d8e73(0x1b3)](({skeleton:_0x153af3,cursors:_0xfc4fea})=>{const _0x584c0f=_0x1d8e73;this['_removeCollabCursors'](),_0x153af3&&this[_0x584c0f(0x2b1)](_0x153af3,_0xfc4fea);}),this['_sheetSkeletonManagerService'][_0x1d8e73(0x2be)][_0x1d8e73(0x1b3)](_0x248871=>{const _0x46b221=_0x1d8e73;if(_0x248871==null)return;const {skeleton:_0x47b8dc}=_0x248871,{scene:_0x29fc77}=this['_context'];_0x29fc77[_0x46b221(0x344)][_0x46b221(0x1ab)](_0x3446be[_0x46b221(0x1bb)](_0x1ddbb6=>{const _0x4c18ef=_0x46b221;var _0x4d33a2,_0x5b42e6;const {offsetX:_0xb20d79,offsetY:_0x17edad}=_0x1ddbb6,{x:_0x2e6973,y:_0x42374b}=_0x29fc77[_0x4c18ef(0x355)](_0x154eb1[_0x4c18ef(0x3a1)][_0x4c18ef(0x30f)]([_0xb20d79,_0x17edad])),{scaleX:_0x42cdd6,scaleY:_0x17aae2}=_0x29fc77[_0x4c18ef(0x17f)](),_0x1da0a9=_0x29fc77['getViewport'](_0x154eb1[_0x4c18ef(0x3e8)]['VIEW_MAIN']),_0x539bb5=_0x29fc77[_0x4c18ef(0x381)](_0x154eb1[_0x4c18ef(0x3a1)][_0x4c18ef(0x30f)]([_0x2e6973,_0x42374b]),_0x1da0a9),_0x31e830=_0x47b8dc[_0x4c18ef(0x3ae)](_0xb20d79,_0x17edad,_0x42cdd6,_0x17aae2,_0x539bb5);((_0x4d33a2=this[_0x4c18ef(0x2d5)])==null?void 0x0:_0x4d33a2[_0x4c18ef(0x17e)])===_0x31e830[_0x4c18ef(0x17e)]&&((_0x5b42e6=this[_0x4c18ef(0x2d5)])==null?void 0x0:_0x5b42e6[_0x4c18ef(0x1c8)])===_0x31e830['row']||this[_0x4c18ef(0x2bb)][_0x4c18ef(0x1ac)](_0x4dcfd2=>{const _0x84999=_0x4c18ef;_0x4dcfd2[_0x84999(0x3e7)](_0x31e830);});},0x64));});}[_0x479db0(0x2b1)](_0x4b47b3,_0x2b9ed5){const _0x25a85f=_0x479db0;var _0x6d0993;const _0x2eb0d3=(_0x6d0993=this['_sheetSkeletonManagerService'][_0x25a85f(0x31a)]())==null?void 0x0:_0x6d0993['skeleton'];if(!_0x2eb0d3)return;const _0x9ad4b8=this['_getSheetObject']();if(!_0x9ad4b8)return;this['_cursors'][_0x25a85f(0x1ac)](_0xbb83d4=>{const _0x2c0397=_0x25a85f;_0xbb83d4[_0x2c0397(0x22e)]();});const {scene:_0x52b735}=_0x9ad4b8,_0x186665=_0x261724(Array[_0x25a85f(0x18b)](_0x2b9ed5[_0x25a85f(0x1ed)]()))[_0x25a85f(0x2dc)](_0x19226e=>{const _0x5bca2f=_0x25a85f,{color:_0x45f0ef,range:_0x237749,name:_0x9fa703,selection:_0x3a0fc1,sheetID:_0xb4ba4a}=_0x19226e,{startColumn:_0x3961a4,startRow:_0x25e2bf,endColumn:_0x399fa1,endRow:_0x33d967}=_0x237749,_0x536cb3=_0x244403['getCoordByCell'](_0x25e2bf,_0x3961a4,_0x52b735,_0x2eb0d3),_0x30828b=_0x244403[_0x5bca2f(0x21f)](_0x33d967,_0x399fa1,_0x52b735,_0x2eb0d3),{columnHeaderHeightAndMarginTop:_0x1c31e1}=_0x2eb0d3,{startX:_0x47fc71,startY:_0x1c0e3e}=_0x536cb3,{endX:_0x18a144,endY:_0x29617b}=_0x30828b,_0x2bcae5=_0x18a144-_0x47fc71,_0x2a4589=_0x29617b-_0x1c0e3e,_0x32ea5d={'labelPosition':_0x1c0e3e-_0x1c31e1>=_0x43962b?_0x5bca2f(0x2f8):_0x5bca2f(0x2ee),'sheetID':_0xb4ba4a,'range':_0x237749,'color':_0x45f0ef,'name':_0x9fa703,'selection':_0x3a0fc1,'left':_0x47fc71,'top':_0x1c0e3e,'width':_0x2bcae5,'height':_0x2a4589,'evented':!0x1,'zIndex':_0x1606fa};return new _0x4f6975(_0x9fa703,_0x32ea5d);});_0x52b735[_0x25a85f(0x309)](_0x186665,_0x1b0dbb),this[_0x25a85f(0x2bb)]=new Set(_0x186665);}[_0x479db0(0x41a)](){const _0x32d229=_0x479db0;var _0x5380d9;(_0x5380d9=this[_0x32d229(0x2bb)])==null||_0x5380d9[_0x32d229(0x1ac)](_0x2303c7=>_0x2303c7['dispose']());}['_getSheetObject'](){const _0x295e90=_0x479db0;return _0x244403[_0x295e90(0x2d1)](this['_context'][_0x295e90(0x241)],this['_context']);}};_0x125789=_0x3c61bd([_0x22c47f(0x1,_0x3446be[_0x479db0(0x21b)](_0x244403[_0x479db0(0x20c)])),_0x22c47f(0x2,_0x3446be['Inject'](_0x302180)),_0x22c47f(0x3,_0x3446be[_0x479db0(0x21b)](_0x3446be[_0x479db0(0x1f3)]))],_0x125789);function _0x261724(_0x5b3fc1){const _0x75841b=_0x479db0,_0x2c5fdc=new Map();return _0x5b3fc1['forEach'](_0x4142cb=>{const _0x41f935=_0x5580;if(_0x2c5fdc['has'](_0x4142cb[_0x41f935(0x25c)])){const _0x35de4f=_0x2c5fdc[_0x41f935(0x18f)](_0x4142cb[_0x41f935(0x25c)]);_0x35de4f[_0x41f935(0x348)]+=',\x20'+_0x4142cb[_0x41f935(0x348)];}else _0x2c5fdc[_0x41f935(0x1c9)](_0x4142cb[_0x41f935(0x25c)],_0x4142cb);}),Array['from'](_0x2c5fdc[_0x75841b(0x1ed)]());}var _0x35e09f=Object[_0x479db0(0x179)],_0x19a11b=(_0xb6f76b,_0x21e975,_0x364edc,_0x4bcda4)=>{const _0x3dc1d9=_0x479db0;for(var _0x473d5e=_0x4bcda4>0x1?void 0x0:_0x4bcda4?_0x35e09f(_0x21e975,_0x364edc):_0x21e975,_0x2c8dd0=_0xb6f76b[_0x3dc1d9(0x27b)]-0x1,_0x1c321f;_0x2c8dd0>=0x0;_0x2c8dd0--)(_0x1c321f=_0xb6f76b[_0x2c8dd0])&&(_0x473d5e=_0x1c321f(_0x473d5e)||_0x473d5e);return _0x473d5e;},_0x69a635=(_0x5eadaa,_0x15610a)=>(_0x22ffbe,_0x234aef)=>_0x15610a(_0x22ffbe,_0x234aef,_0x5eadaa);let _0x508130=class extends _0x3446be['Disposable']{constructor(_0x3befdf,_0x6bbd3,_0x37dadd,_0x254d96,_0x24d3f1,_0x499aee){const _0x5cba1b=_0x479db0;super(),this[_0x5cba1b(0x1e5)]=_0x3befdf,this[_0x5cba1b(0x411)]=_0x6bbd3,this[_0x5cba1b(0x3d1)]=_0x37dadd,this['_messageService']=_0x254d96,this[_0x5cba1b(0x1fd)]=_0x24d3f1,this[_0x5cba1b(0x19f)]=_0x499aee,this[_0x5cba1b(0x377)](),this[_0x5cba1b(0x3ea)]();}[_0x479db0(0x377)](){const _0x44e94e=_0x479db0;this['disposeWithMe'](this[_0x44e94e(0x1e5)]['registerBeforeClose'](()=>{const _0x857c46=_0x44e94e;if(this[_0x857c46(0x411)][_0x857c46(0x18c)][_0x857c46(0x2c9)])return this[_0x857c46(0x19f)]['t'](_0x857c46(0x380));}));}[_0x479db0(0x3ea)](){const _0x11da87=_0x479db0;this[_0x11da87(0x275)](this['_collaborationUIEventService'][_0x11da87(0x3b2)][_0x11da87(0x1b3)](_0xd50d31=>{const _0x2f89bc=_0x11da87;_0xd50d31['id']===_0x4a9508[_0x2f89bc(0x2a6)][_0x2f89bc(0x40a)]&&this['_messageService'][_0x2f89bc(0x2a8)]({'type':_0x5d7915[_0x2f89bc(0x194)][_0x2f89bc(0x412)],'content':this[_0x2f89bc(0x19f)]['t']('collaboration.single-unit.warning')}),_0xd50d31['id']===_0x4a9508['CollaborationUIEventId'][_0x2f89bc(0x24a)]&&this[_0x2f89bc(0x1cc)]['show']({'type':_0x5d7915[_0x2f89bc(0x194)]['Warning'],'content':this[_0x2f89bc(0x19f)]['t']('collaboration.closeRoom')}),_0xd50d31['id']===_0x4a9508['CollaborationUIEventId']['PERMISSION_DENIED']&&this[_0x2f89bc(0x1fd)][_0x2f89bc(0x2a8)]({'title':this['_localeService']['t'](_0x2f89bc(0x405)),'content':this[_0x2f89bc(0x19f)]['t'](_0x2f89bc(0x22b)),'type':'error','duration':0x0}),_0xd50d31['id']===_0x4a9508['CollaborationUIEventId']['CONFLICT']&&this[_0x2f89bc(0x1cc)][_0x2f89bc(0x2a8)]({'type':_0x5d7915[_0x2f89bc(0x194)][_0x2f89bc(0x39b)],'content':this[_0x2f89bc(0x19f)]['t'](_0x2f89bc(0x2bd))+'('+_0xd50d31[_0x2f89bc(0x429)]+')'}),_0xd50d31['id']===_0x4a9508[_0x2f89bc(0x2a6)][_0x2f89bc(0x34d)]&&this['_messageService']['show']({'type':_0x5d7915[_0x2f89bc(0x194)][_0x2f89bc(0x412)],'content':this['_localeService']['t'](_0xd50d31[_0x2f89bc(0x429)]||'')}),_0xd50d31['id']===_0x4a9508[_0x2f89bc(0x2a6)][_0x2f89bc(0x27f)]&&this['_messageService'][_0x2f89bc(0x2a8)]({'type':_0x5d7915[_0x2f89bc(0x194)]['Warning'],'content':this[_0x2f89bc(0x19f)]['t'](_0x2f89bc(0x3e9))}),_0xd50d31['id']===_0x4a9508[_0x2f89bc(0x2a6)][_0x2f89bc(0x3d5)]&&this[_0x2f89bc(0x1cc)][_0x2f89bc(0x2a8)]({'type':_0x5d7915[_0x2f89bc(0x194)][_0x2f89bc(0x39b)],'content':this[_0x2f89bc(0x19f)]['t'](_0x2f89bc(0x2a9))}),_0xd50d31['id']===_0x4a9508[_0x2f89bc(0x2a6)][_0x2f89bc(0x1d7)]&&this['_messageService'][_0x2f89bc(0x2a8)]({'type':_0x5d7915[_0x2f89bc(0x194)]['Error'],'content':this['_localeService']['t'](_0x2f89bc(0x236))});}));}};_0x508130=_0x19a11b([_0x69a635(0x0,_0x1e2f17['IBeforeCloseService']),_0x69a635(0x1,_0x4a9508[_0x479db0(0x3e5)]),_0x69a635(0x2,_0x3446be[_0x479db0(0x21b)](_0x4a9508['CollaborationUIEventService'])),_0x69a635(0x3,_0x1e2f17['IMessageService']),_0x69a635(0x4,_0x1e2f17[_0x479db0(0x415)]),_0x69a635(0x5,_0x3446be[_0x479db0(0x21b)](_0x3446be[_0x479db0(0x1c3)]))],_0x508130);const _0x14c0d0=_0x479db0(0x2d6),_0x151b2a={};var _0x20e23e=Object[_0x479db0(0x179)],_0x53ee01=(_0x1c6c20,_0x2ad41a,_0x1ef219,_0x22a487)=>{const _0x3676ff=_0x479db0;for(var _0x186520=_0x22a487>0x1?void 0x0:_0x22a487?_0x20e23e(_0x2ad41a,_0x1ef219):_0x2ad41a,_0x4ac30e=_0x1c6c20[_0x3676ff(0x27b)]-0x1,_0x160164;_0x4ac30e>=0x0;_0x4ac30e--)(_0x160164=_0x1c6c20[_0x4ac30e])&&(_0x186520=_0x160164(_0x186520)||_0x186520);return _0x186520;},_0x458fc2=(_0x4f5704,_0x33763d)=>(_0x1fb212,_0x4d01a8)=>_0x33763d(_0x1fb212,_0x4d01a8,_0x4f5704);let _0xb9b96b=class{constructor(_0x2852d3,_0xc83e1e){const _0x3c82ac=_0x479db0;this['_transformService']=_0x2852d3,this[_0x3c82ac(0x400)]=_0xc83e1e;}[_0x479db0(0x3fb)](_0x24494c){const _0xa0cd8c=_0x479db0;this[_0xa0cd8c(0x3b4)](_0x24494c),this[_0xa0cd8c(0x243)](_0x24494c);}[_0x479db0(0x1d4)](_0x51730f){const _0x4b1284=_0x479db0,{unitID:_0x2fb63c}=_0x51730f,_0x5d7bfa=this[_0x4b1284(0x400)][_0x4b1284(0x2e5)](_0x2fb63c)[_0x4b1284(0x1f0)](_0x4262be[_0x4b1284(0x257)]),{redoCache:_0x4c79d2}=_0x5d7bfa[_0x4b1284(0x196)]();if(_0x4c79d2['length']===0x0)return _0x51730f;let _0xb9d884=_0x3446be[_0x4b1284(0x37d)][_0x4b1284(0x420)](_0x51730f[_0x4b1284(0x302)][0x0]);for(let _0x166e08=0x0;_0x166e08<_0x4c79d2['length'];_0x166e08++){const _0x3294a0={'id':'doc.mutation.rich-text-editing','params':{..._0x4c79d2[_0x166e08]}},_0x2d99b5=this[_0x4b1284(0x3aa)]['transformMutation'](_0xb9d884,_0x3294a0,!0x1);if(_0x5ee43a[_0x4b1284(0x3e3)](_0x2d99b5))throw _0x2d99b5['error'];_0xb9d884=_0x2d99b5[_0x4b1284(0x29a)];}return{..._0x3446be[_0x4b1284(0x37d)][_0x4b1284(0x420)](_0x51730f),'mutations':[_0xb9d884]};}[_0x479db0(0x3b4)](_0x5c94aa){const _0x3b2129=_0x479db0,{unitID:_0x381f35}=_0x5c94aa,_0x90ceb6=this[_0x3b2129(0x400)]['getRenderById'](_0x381f35)[_0x3b2129(0x1f0)](_0x4262be['DocIMEInputManagerService']),{undoCache:_0x10abf1,redoCache:_0x37e05c}=_0x90ceb6[_0x3b2129(0x196)]();if(_0x10abf1[_0x3b2129(0x27b)]===0x0||_0x37e05c[_0x3b2129(0x27b)]===0x0)return;const _0x5b4f2e=[],_0x4963c9=[];let _0x25b2b5=_0x3446be['Tools']['deepClone'](_0x5c94aa[_0x3b2129(0x302)][0x0]),_0x84235e=_0x3446be['Tools'][_0x3b2129(0x420)](_0x5c94aa['mutations'][0x0]);for(let _0x491547=_0x10abf1[_0x3b2129(0x27b)]-0x1;_0x491547>=0x0;_0x491547--){const _0x3afcbe={'id':_0x3b2129(0x28c),'params':{..._0x10abf1[_0x491547]}},_0x34dbb5={'id':_0x3b2129(0x28c),'params':{..._0x37e05c[_0x491547]}},_0x1f5f68=this[_0x3b2129(0x3aa)]['transformMutation'](_0x25b2b5,_0x3afcbe,!0x1),_0x5cd964=this[_0x3b2129(0x3aa)][_0x3b2129(0x342)](_0x84235e,_0x34dbb5,!0x1);if(_0x5ee43a[_0x3b2129(0x3e3)](_0x1f5f68))throw _0x1f5f68[_0x3b2129(0x2cb)];if(_0x5ee43a['isTransformMutationFailure'](_0x5cd964))throw _0x5cd964['error'];_0x5b4f2e['unshift'](_0x1f5f68[_0x3b2129(0x288)]['params']),_0x4963c9[_0x3b2129(0x23f)](_0x5cd964[_0x3b2129(0x288)][_0x3b2129(0x2b2)]),_0x25b2b5=_0x1f5f68[_0x3b2129(0x29a)],_0x84235e=_0x5cd964[_0x3b2129(0x29a)];}_0x90ceb6[_0x3b2129(0x1be)]({'undoCache':_0x5b4f2e,'redoCache':_0x4963c9});}['_transformPreviousActiveRange'](_0x1da3f){const _0x2fdee8=_0x479db0,{unitID:_0x253d34}=_0x1da3f,_0x3adf1a=this[_0x2fdee8(0x400)][_0x2fdee8(0x2e5)](_0x253d34)[_0x2fdee8(0x1f0)](_0x4262be['DocIMEInputManagerService']),_0x26f3d3=_0x3adf1a[_0x2fdee8(0x320)]();if(_0x26f3d3==null)return;const _0x55e3c2=[{'id':_0x2fdee8(0x28c),'params':{'unitId':_0x1da3f[_0x2fdee8(0x180)],'actions':null,'textRanges':[_0x26f3d3]}}],_0x4a0ef6=this['_transformService'][_0x2fdee8(0x416)](_0x1da3f,_0x55e3c2);if(!_0x5ee43a[_0x2fdee8(0x442)](_0x4a0ef6))throw _0x4a0ef6[_0x2fdee8(0x2cb)];const _0x290f1c=_0x4a0ef6[_0x2fdee8(0x288)][0x0][_0x2fdee8(0x2b2)][_0x2fdee8(0x239)];Array['isArray'](_0x290f1c)&&_0x290f1c[_0x2fdee8(0x27b)]&&_0x3adf1a[_0x2fdee8(0x2e8)](_0x290f1c[0x0]);}};_0xb9b96b=_0x53ee01([_0x458fc2(0x0,_0x5ee43a[_0x479db0(0x3b7)]),_0x458fc2(0x1,_0x154eb1[_0x479db0(0x3b8)])],_0xb9b96b);var _0x58a728=Object[_0x479db0(0x179)],_0x256dfc=(_0x81b7c1,_0x610043,_0xaa1645,_0x325b81)=>{for(var _0x26b6db=_0x325b81>0x1?void 0x0:_0x325b81?_0x58a728(_0x610043,_0xaa1645):_0x610043,_0x202bbb=_0x81b7c1['length']-0x1,_0x82b89a;_0x202bbb>=0x0;_0x202bbb--)(_0x82b89a=_0x81b7c1[_0x202bbb])&&(_0x26b6db=_0x82b89a(_0x26b6db)||_0x26b6db);return _0x26b6db;},_0x264e9f=(_0x4ac7d6,_0xc9695f)=>(_0x172db2,_0x1dab91)=>_0xc9695f(_0x172db2,_0x1dab91,_0x4ac7d6);let _0x44d029=class{constructor(_0x3270fa,_0x32e53b,_0x437386){const _0x330af6=_0x479db0;this['_injector']=_0x3270fa,this['_transformService']=_0x32e53b,this[_0x330af6(0x398)]=_0x437386;}[_0x479db0(0x27c)](_0x222f6d){const _0x11bace=_0x479db0;this[_0x11bace(0x193)](_0x222f6d);}[_0x479db0(0x1d4)](_0x5619d5){const _0x51f918=_0x479db0,{unitID:_0x56bc92}=_0x5619d5,{collaboration:_0x4b971b}=this['_docStateChangeManagerService'][_0x51f918(0x23e)](_0x56bc92);if(_0x4b971b['length']===0x0)return _0x5619d5;let _0x101a1c=_0x3446be['Tools'][_0x51f918(0x420)](_0x5619d5[_0x51f918(0x302)][0x0]);for(let _0x5c9f7d=0x0;_0x5c9f7d<_0x4b971b[_0x51f918(0x27b)];_0x5c9f7d++){const _0x29bf0f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b971b[_0x5c9f7d]['unitId'],..._0x4b971b[_0x5c9f7d][_0x51f918(0x300)]}},_0x4bacac=this[_0x51f918(0x3aa)][_0x51f918(0x342)](_0x101a1c,_0x29bf0f,!0x1);if(_0x5ee43a[_0x51f918(0x3e3)](_0x4bacac))throw _0x4bacac[_0x51f918(0x2cb)];_0x101a1c=_0x4bacac[_0x51f918(0x29a)];}return{..._0x3446be[_0x51f918(0x37d)][_0x51f918(0x420)](_0x5619d5),'mutations':[_0x101a1c]};}[_0x479db0(0x193)](_0xf20209){const _0x30c505=_0x479db0,{unitID:_0x7e9a36}=_0xf20209,{history:_0x1c04f2,collaboration:_0x56515b}=this['_docStateChangeManagerService'][_0x30c505(0x23e)](_0x7e9a36);if(_0x1c04f2['length']===0x0&&_0x56515b[_0x30c505(0x27b)]===0x0)return;const _0x4f770a=[],_0xef5e3e=[];let _0x18ca79=_0x3446be[_0x30c505(0x37d)][_0x30c505(0x420)](_0xf20209[_0x30c505(0x302)][0x0]),_0x5153cc=_0x3446be[_0x30c505(0x37d)][_0x30c505(0x420)](_0xf20209[_0x30c505(0x302)][0x0]);for(let _0x7b052f=_0x1c04f2[_0x30c505(0x27b)]-0x1;_0x7b052f>=0x0;_0x7b052f--){const _0x53a7ce={'id':_0x30c505(0x28c),'params':{'unitId':_0x1c04f2[_0x7b052f]['unitId'],..._0x1c04f2[_0x7b052f]['undoState']}},_0x121356={'id':_0x30c505(0x28c),'params':{'unitId':_0x1c04f2[_0x7b052f][_0x30c505(0x404)],..._0x1c04f2[_0x7b052f]['redoState']}},_0x290219=this[_0x30c505(0x3aa)][_0x30c505(0x342)](_0x18ca79,_0x53a7ce,!0x1),_0x28b2d6=this[_0x30c505(0x3aa)][_0x30c505(0x342)](_0x5153cc,_0x121356,!0x1);if(_0x5ee43a[_0x30c505(0x3e3)](_0x290219))throw _0x290219[_0x30c505(0x2cb)];if(_0x5ee43a[_0x30c505(0x3e3)](_0x28b2d6))throw _0x28b2d6['error'];_0x4f770a['unshift']({..._0x1c04f2[_0x7b052f],'undoState':_0x290219[_0x30c505(0x288)]['params'],'redoState':_0x28b2d6[_0x30c505(0x288)][_0x30c505(0x2b2)]}),_0x18ca79=_0x290219[_0x30c505(0x29a)],_0x5153cc=_0x28b2d6[_0x30c505(0x29a)];}_0x18ca79=_0x3446be['Tools'][_0x30c505(0x420)](_0xf20209[_0x30c505(0x302)][0x0]),_0x5153cc=_0x3446be[_0x30c505(0x37d)][_0x30c505(0x420)](_0xf20209['mutations'][0x0]);for(let _0x2d786b=_0x56515b[_0x30c505(0x27b)]-0x1;_0x2d786b>=0x0;_0x2d786b--){const _0x2c9d33={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x56515b[_0x2d786b][_0x30c505(0x404)],..._0x56515b[_0x2d786b]['undoState']}},_0x5bc682={'id':_0x30c505(0x28c),'params':{'unitId':_0x56515b[_0x2d786b][_0x30c505(0x404)],..._0x56515b[_0x2d786b]['redoState']}},_0x140c5b=this[_0x30c505(0x3aa)][_0x30c505(0x342)](_0x18ca79,_0x2c9d33,!0x1),_0x4c3583=this[_0x30c505(0x3aa)]['transformMutation'](_0x5153cc,_0x5bc682,!0x1);if(_0x5ee43a[_0x30c505(0x3e3)](_0x140c5b))throw _0x140c5b[_0x30c505(0x2cb)];if(_0x5ee43a[_0x30c505(0x3e3)](_0x4c3583))throw _0x4c3583['error'];_0xef5e3e[_0x30c505(0x23f)]({..._0x56515b[_0x2d786b],'undoState':_0x140c5b[_0x30c505(0x288)][_0x30c505(0x2b2)],'redoState':_0x4c3583[_0x30c505(0x288)][_0x30c505(0x2b2)]}),_0x18ca79=_0x140c5b[_0x30c505(0x29a)],_0x5153cc=_0x4c3583['m1Prime'];}this[_0x30c505(0x398)][_0x30c505(0x17d)](_0x7e9a36,{'history':_0x4f770a,'collaboration':_0xef5e3e});}};_0x44d029=_0x256dfc([_0x264e9f(0x0,_0x3446be[_0x479db0(0x21b)](_0x3446be[_0x479db0(0x195)])),_0x264e9f(0x1,_0x5ee43a[_0x479db0(0x3b7)]),_0x264e9f(0x2,_0x3446be[_0x479db0(0x21b)](_0x4262be[_0x479db0(0x322)]))],_0x44d029);var _0x1ee618=Object[_0x479db0(0x179)],_0x1287a4=(_0x24ef94,_0x409f2e,_0x247323,_0x410845)=>{for(var _0x3e0a94=_0x410845>0x1?void 0x0:_0x410845?_0x1ee618(_0x409f2e,_0x247323):_0x409f2e,_0x16b43d=_0x24ef94['length']-0x1,_0x469e49;_0x16b43d>=0x0;_0x16b43d--)(_0x469e49=_0x24ef94[_0x16b43d])&&(_0x3e0a94=_0x469e49(_0x3e0a94)||_0x3e0a94);return _0x3e0a94;},_0x113639=(_0x4448e5,_0x2fa8ee)=>(_0x34d7fe,_0x33cbfb)=>_0x2fa8ee(_0x34d7fe,_0x33cbfb,_0x4448e5);let _0x424ebb=class{constructor(_0x293240,_0x296dbf){const _0x380fbc=_0x479db0;this['_injector']=_0x293240,this[_0x380fbc(0x3aa)]=_0x296dbf;}['transformSelections'](_0x4655e4){const _0x2b78dc=_0x479db0;var _0x5e9f76;const _0x3d59f5=this[_0x2b78dc(0x23c)]['get'](_0x4cdd99[_0x2b78dc(0x1f7)]),_0x4e513f=(_0x5e9f76=_0x3d59f5[_0x2b78dc(0x334)]())!=null?_0x5e9f76:[];if(_0x4e513f['length']===0x0)return;const _0x77031=_0x4655e4[_0x2b78dc(0x180)],_0x3350f=[{'id':_0x2b78dc(0x28c),'params':{'unitId':_0x77031,'actions':null,'textRanges':_0x4e513f}}],_0x27ec10=this[_0x2b78dc(0x3aa)][_0x2b78dc(0x416)](_0x4655e4,_0x3350f);if(!_0x5ee43a[_0x2b78dc(0x442)](_0x27ec10))throw _0x27ec10[_0x2b78dc(0x2cb)];const _0x3c670b=_0x27ec10[_0x2b78dc(0x288)][0x0][_0x2b78dc(0x2b2)][_0x2b78dc(0x239)];Array[_0x2b78dc(0x3cf)](_0x3c670b)&&_0x3c670b[_0x2b78dc(0x27b)]&&_0x3d59f5['replaceDocRanges'](_0x3c670b,{'unitId':_0x77031,'subUnitId':_0x77031},!0x1);}};_0x424ebb=_0x1287a4([_0x113639(0x0,_0x3446be['Inject'](_0x3446be[_0x479db0(0x195)])),_0x113639(0x1,_0x5ee43a[_0x479db0(0x3b7)])],_0x424ebb);var _0x1de74a=Object[_0x479db0(0x179)],_0x474f38=(_0x195c0f,_0x2957e0,_0x40113d,_0x1d0ee5)=>{const _0x2e53b8=_0x479db0;for(var _0x320c75=_0x1d0ee5>0x1?void 0x0:_0x1d0ee5?_0x1de74a(_0x2957e0,_0x40113d):_0x2957e0,_0x5ebcd8=_0x195c0f[_0x2e53b8(0x27b)]-0x1,_0x12c352;_0x5ebcd8>=0x0;_0x5ebcd8--)(_0x12c352=_0x195c0f[_0x5ebcd8])&&(_0x320c75=_0x12c352(_0x320c75)||_0x320c75);return _0x320c75;},_0x3e3244=(_0x2e5bd4,_0x40023b)=>(_0x5822a0,_0x52f7c9)=>_0x40023b(_0x5822a0,_0x52f7c9,_0x2e5bd4);let _0x312d64=class extends _0x3446be[_0x479db0(0x1fc)]{constructor(_0x318b27,_0x712bf8,_0x32bd1c,_0x1fe587,_0x49495e,_0x4bca10,_0x136976,_0x2eafdc){const _0xe62f19=_0x479db0;super(),_0x4b5aa6(this,'_status$',new _0xc33fa7['BehaviorSubject'](_0x4a9508[_0xe62f19(0x3c2)][_0xe62f19(0x2e9)])),(this[_0xe62f19(0x398)]=_0x318b27,this[_0xe62f19(0x3ca)]=_0x712bf8,this[_0xe62f19(0x33c)]=_0x32bd1c,this[_0xe62f19(0x2c2)]=_0x1fe587,this['_docTransformSelectionsService']=_0x49495e,this[_0xe62f19(0x2cc)]=_0x4bca10,this[_0xe62f19(0x1cc)]=_0x136976,this[_0xe62f19(0x19f)]=_0x2eafdc,this[_0xe62f19(0x1c4)]());}['_initEntityListener'](){const _0x280981=_0x479db0;this['disposeWithMe'](this[_0x280981(0x3ca)]['entityInit$'][_0x280981(0x1b3)](_0x793bf=>{const _0x24ddb1=_0x280981,_0x179899=this[_0x24ddb1(0x398)][_0x24ddb1(0x32a)][_0x24ddb1(0x1b3)](_0x251330=>{const _0x3a81c3=_0x24ddb1;if(_0x251330==null)return;const {unitId:_0x13e675,redoState:_0x21dee5,commandId:_0x2e0e2f}=_0x251330;if(_0x13e675!==_0x793bf[_0x3a81c3(0x180)])return;const _0x7c82c8={'id':_0x2e0e2f,'type':_0x3446be[_0x3a81c3(0x2db)]['MUTATION'],'params':{'unitId':_0x13e675,'actions':_0x21dee5[_0x3a81c3(0x2e1)],'textRanges':null}};_0x793bf['onLocalMutation'](_0x7c82c8);});if(_0x793bf['disposeWithMe'](_0x179899),_0x793bf instanceof _0x4a9508[_0x24ddb1(0x2a1)]){const _0x399897={'onTransformIME':_0x3e7668=>this[_0x24ddb1(0x33c)][_0x24ddb1(0x3fb)](_0x3e7668),'onTransformState':_0x1d760c=>this['_docTransformStateCacheService'][_0x24ddb1(0x27c)](_0x1d760c),'onTransformSelections':_0x2d955e=>this['_docTransformSelectionsService'][_0x24ddb1(0x2f7)](_0x2d955e),'onSyncEditingCollabCursor':_0x383c71=>this[_0x24ddb1(0x2cc)]['syncEditingCollabCursor'](_0x383c71),'onTransformRemoteChangesetByIMECache':_0x1d087c=>this['_docTransformIMECacheService'][_0x24ddb1(0x1d4)](_0x1d087c),'onTransformRemoteChangesetByStateCache':_0x3ad68c=>this[_0x24ddb1(0x2c2)][_0x24ddb1(0x1d4)](_0x3ad68c)};_0x793bf[_0x24ddb1(0x374)](_0x399897);}}));}};_0x312d64=_0x474f38([_0x3e3244(0x0,_0x3446be[_0x479db0(0x21b)](_0x4262be[_0x479db0(0x322)])),_0x3e3244(0x1,_0x3446be[_0x479db0(0x21b)](_0x4a9508[_0x479db0(0x198)])),_0x3e3244(0x2,_0x3446be['Inject'](_0xb9b96b)),_0x3e3244(0x3,_0x3446be[_0x479db0(0x21b)](_0x44d029)),_0x3e3244(0x4,_0x3446be[_0x479db0(0x21b)](_0x424ebb)),_0x3e3244(0x5,_0x3446be[_0x479db0(0x21b)](_0x35b0b1)),_0x3e3244(0x6,_0x1e2f17[_0x479db0(0x1d9)]),_0x3e3244(0x7,_0x3446be[_0x479db0(0x21b)](_0x3446be[_0x479db0(0x1c3)]))],_0x312d64);var _0x24e2bf=(_0x476444=>(_0x476444[_0x476444[_0x479db0(0x19e)]=0x0]=_0x479db0(0x19e),_0x476444[_0x476444['OK']=0x1]='OK',_0x476444[_0x476444['INTERNAL_ERROR']=0x2]=_0x479db0(0x189),_0x476444[_0x476444[_0x479db0(0x1eb)]=0x3]=_0x479db0(0x1eb),_0x476444[_0x476444[_0x479db0(0x42f)]=0x4]=_0x479db0(0x42f),_0x476444[_0x476444[_0x479db0(0x391)]=0x5]=_0x479db0(0x391),_0x476444[_0x476444['ALREADY_EXISTS']=0x6]=_0x479db0(0x223),_0x476444[_0x476444[_0x479db0(0x42c)]=0x7]=_0x479db0(0x42c),_0x476444[_0x476444[_0x479db0(0x216)]=0x8]='TOO_MANY_REQUESTS',_0x476444[_0x476444[_0x479db0(0x1c1)]=0x9]=_0x479db0(0x1c1),_0x476444[_0x476444[_0x479db0(0x3dd)]=0xa]=_0x479db0(0x3dd),_0x476444[_0x476444[_0x479db0(0x1e1)]=0xb]=_0x479db0(0x1e1),_0x476444[_0x476444['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x476444[_0x476444['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x479db0(0x261),_0x476444[_0x476444[_0x479db0(0x1c2)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x476444[_0x476444[_0x479db0(0x215)]=0xf]=_0x479db0(0x215),_0x476444[_0x476444['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]=_0x479db0(0x1d2),_0x476444[_0x476444['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x476444[_0x476444[_0x479db0(0x281)]=0x65]='ERROR_AGAIN',_0x476444[_0x476444[_0x479db0(0x1b9)]=0xc9]=_0x479db0(0x1b9),_0x476444[_0x476444[_0x479db0(0x35c)]=0xca]=_0x479db0(0x35c),_0x476444[_0x476444[_0x479db0(0x307)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x476444[_0x476444[_0x479db0(0x3f3)]=0x1771]=_0x479db0(0x3f3),_0x476444[_0x476444['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x476444[_0x476444['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x476444[_0x476444[_0x479db0(0x330)]=0x1b59]=_0x479db0(0x330),_0x476444[_0x476444[_0x479db0(0x250)]=0x1b5a]=_0x479db0(0x250),_0x476444[_0x476444[_0x479db0(0x3ee)]=0x1b5b]=_0x479db0(0x3ee),_0x476444[_0x476444[_0x479db0(0x2e7)]=0x1b5c]=_0x479db0(0x2e7),_0x476444[_0x476444['APPLY_DUPLICATED']=0x1b5d]=_0x479db0(0x37b),_0x476444[_0x476444[_0x479db0(0x2d7)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x476444[_0x476444[_0x479db0(0x41e)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x476444[_0x476444[_0x479db0(0x26b)]=0x232a]=_0x479db0(0x26b),_0x476444[_0x476444[_0x479db0(0x224)]=0x232b]=_0x479db0(0x224),_0x476444[_0x476444[_0x479db0(0x272)]=0x232c]=_0x479db0(0x272),_0x476444[_0x476444[_0x479db0(0x219)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x476444[_0x476444[_0x479db0(0x3cb)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x476444[_0x476444['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x479db0(0x43a),_0x476444[_0x476444[_0x479db0(0x431)]=0x2713]=_0x479db0(0x431),_0x476444[_0x476444[_0x479db0(0x2c0)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x476444[_0x476444[_0x479db0(0x36b)]=0x271a]=_0x479db0(0x36b),_0x476444[_0x476444[_0x479db0(0x39e)]=0x271b]=_0x479db0(0x39e),_0x476444[_0x476444[_0x479db0(0x28b)]=0x271c]=_0x479db0(0x28b),_0x476444[_0x476444['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x479db0(0x3a3),_0x476444[_0x476444[_0x479db0(0x19b)]=0x271e]=_0x479db0(0x19b),_0x476444[_0x476444['YUUMI_AI_RUN_FAILED']=0x271f]=_0x479db0(0x2ea),_0x476444[_0x476444[_0x479db0(0x376)]=0x2720]=_0x479db0(0x376),_0x476444[_0x476444['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x479db0(0x2e6),_0x476444[_0x476444[_0x479db0(0x3c9)]=0x2ee1]=_0x479db0(0x3c9),_0x476444[_0x476444[_0x479db0(0x26c)]=0x2ee2]=_0x479db0(0x26c),_0x476444[_0x476444['INVITE_CODE_REQUIRED']=0x2ee3]='INVITE_CODE_REQUIRED',_0x476444[_0x476444[_0x479db0(0x235)]=0x2ee4]=_0x479db0(0x235),_0x476444[_0x476444['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x479db0(0x32b),_0x476444[_0x476444['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x479db0(0x229),_0x476444[_0x476444[_0x479db0(0x1b7)]=0x32ca]=_0x479db0(0x1b7),_0x476444[_0x476444[_0x479db0(0x1d8)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x476444[_0x476444[_0x479db0(0x422)]=0x36b1]=_0x479db0(0x422),_0x476444[_0x476444[_0x479db0(0x269)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x476444[_0x476444[_0x479db0(0x310)]=0x36b3]=_0x479db0(0x310),_0x476444[_0x476444[_0x479db0(0x1cb)]=0x36b4]=_0x479db0(0x1cb),_0x476444[_0x476444[_0x479db0(0x1b4)]=0x3715]=_0x479db0(0x1b4),_0x476444[_0x476444['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x479db0(0x436),_0x476444[_0x476444[_0x479db0(0x217)]=0x37dd]=_0x479db0(0x217),_0x476444[_0x476444[_0x479db0(0x37c)]=0x3a99]=_0x479db0(0x37c),_0x476444[_0x476444['REDEMPTION_CODE_INACTIVE']=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x476444[_0x476444[_0x479db0(0x31f)]=0x3a9b]=_0x479db0(0x31f),_0x476444[_0x476444[_0x479db0(0x1d6)]=0x3a9c]=_0x479db0(0x1d6),_0x476444[_0x476444['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x476444[_0x476444[_0x479db0(0x370)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x476444[_0x476444['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x476444[_0x476444[_0x479db0(0x439)]=-0x1]=_0x479db0(0x439),_0x476444))(_0x24e2bf||{});function _0x35e9ce(_0x3eb27c){const _0x2b2f3d=_0x479db0;var _0x1cc82f,_0x1af37f;const _0x5a0a8c=(_0x1cc82f=_0x3eb27c[_0x2b2f3d(0x312)])==null?void 0x0:_0x1cc82f[_0x2b2f3d(0x2d2)],_0xd4c5d2=((_0x1af37f=_0x3eb27c['stageInfo'])==null?void 0x0:_0x1af37f[_0x2b2f3d(0x34b)])||0x0;return _0x5a0a8c===_0x5777d0['FormulaExecuteStageType'][_0x2b2f3d(0x3bf)]&&_0xd4c5d2>0x0;}function _0x267595(_0x306582){const _0xe97e81=_0x479db0;return _0x306582[_0xe97e81(0x28a)]===_0x5777d0['FormulaExecutedStateType'][_0xe97e81(0x23b)];}var _0x50c789=Object[_0x479db0(0x179)],_0x51bb06=(_0x50d62f,_0x214734,_0x211957,_0xdb0650)=>{const _0xf4a72=_0x479db0;for(var _0x2ffd46=_0xdb0650>0x1?void 0x0:_0xdb0650?_0x50c789(_0x214734,_0x211957):_0x214734,_0x617a37=_0x50d62f[_0xf4a72(0x27b)]-0x1,_0x44e68d;_0x617a37>=0x0;_0x617a37--)(_0x44e68d=_0x50d62f[_0x617a37])&&(_0x2ffd46=_0x44e68d(_0x2ffd46)||_0x2ffd46);return _0x2ffd46;},_0x8120ad=(_0x6f73a6,_0x215fef)=>(_0x25a466,_0x381c21)=>_0x215fef(_0x25a466,_0x381c21,_0x6f73a6);const _0x4f1a91=_0x479db0(0x1af),_0x35f3f5=_0x479db0(0x2ad),_0x44ff63=_0x479db0(0x200);let _0x5c7fbc=class extends _0x3446be[_0x479db0(0x1fc)]{constructor(_0x2eb1fa,_0x5003d3,_0x473fd4,_0xbad8fc,_0x4f153c,_0x26a959,_0x117678){const _0x5d95ee=_0x479db0;super(),_0x4b5aa6(this,_0x5d95ee(0x228),null),_0x4b5aa6(this,'_maxFormulaLimit',0x0),_0x4b5aa6(this,'_currentUsage',0x0),_0x4b5aa6(this,_0x5d95ee(0x308),[]),_0x4b5aa6(this,_0x5d95ee(0x2e0),0x0),(this[_0x5d95ee(0x1cc)]=_0x2eb1fa,this[_0x5d95ee(0x1ca)]=_0x5003d3,this[_0x5d95ee(0x365)]=_0x473fd4,this[_0x5d95ee(0x30e)]=_0xbad8fc,this['_univerInstanceService']=_0x4f153c,this[_0x5d95ee(0x177)]=_0x26a959,this[_0x5d95ee(0x19f)]=_0x117678,this[_0x5d95ee(0x317)]());}[_0x479db0(0x317)](){const _0x43cd7f=_0x479db0;this[_0x43cd7f(0x275)](this[_0x43cd7f(0x1ca)]['beforeCommandExecuted']((_0x1e7a0b,_0x3849ec)=>{const _0x31fb41=_0x43cd7f;if(_0x1e7a0b['id']!==_0x5777d0[_0x31fb41(0x383)]['id'])return;const _0x47eb46=_0x1e7a0b[_0x31fb41(0x2b2)];if(!this['_hasFormulaInDirtyRanges'](_0x47eb46[_0x31fb41(0x18a)]))return;if(!this[_0x31fb41(0x40c)]())throw this['_checkAndWaitForCalculationPermission'](_0x1e7a0b,_0x3849ec),this[_0x31fb41(0x2a7)](),new _0x3446be[(_0x31fb41(0x337))]();})),this[_0x43cd7f(0x275)](this[_0x43cd7f(0x1ca)][_0x43cd7f(0x3ec)]((_0x3be9c4,_0x1ea1e3)=>{const _0x33e532=_0x43cd7f;if(_0x3be9c4['id']!==_0x5777d0[_0x33e532(0x3b1)]['id'])return;const _0x32d787=_0x3be9c4[_0x33e532(0x2b2)];if(_0x35e9ce(_0x32d787)){const _0x4ccd64=_0x3446be[_0x33e532(0x407)]();this[_0x33e532(0x308)]['push'](_0x4ccd64),this['_startCalculationLimit'](_0x4ccd64);}else{if(_0x267595(_0x32d787)&&this['_taskIds'][_0x33e532(0x27b)]>0x0){const _0x13ec0e=this[_0x33e532(0x308)][_0x33e532(0x1e7)]();this['_releaseCalculationLimit'](_0x13ec0e);}}}));}[_0x479db0(0x40d)](){const _0x30d24f=_0x479db0;super[_0x30d24f(0x40d)](),this['_clearPolling'](),this[_0x30d24f(0x308)]=[],this[_0x30d24f(0x2da)]=0x0,this[_0x30d24f(0x417)]=0x0,this[_0x30d24f(0x2e0)]=0x0;}async[_0x479db0(0x2af)](_0x47edc4,_0x46cf30){const _0x266ca7=_0x479db0;for(let _0x2a9bb5=0x0;_0x2a9bb5<0x1e;_0x2a9bb5++)try{if(await this[_0x266ca7(0x378)](),this[_0x266ca7(0x40c)]()){this[_0x266ca7(0x2d3)](_0x47edc4,_0x46cf30),this[_0x266ca7(0x1cc)][_0x266ca7(0x2a8)]({'content':this[_0x266ca7(0x19f)]['t']('formula.calculation.started'),'type':_0x5d7915['MessageType'][_0x266ca7(0x1fa)]});return;}await new Promise(_0x4fe553=>{const _0xb43bed=_0x266ca7;this[_0xb43bed(0x228)]=window[_0xb43bed(0x256)](_0x4fe553,0x3e8);});}catch(_0x4a35f4){this[_0x266ca7(0x177)][_0x266ca7(0x2cb)](_0x4a35f4);}this[_0x266ca7(0x1cc)][_0x266ca7(0x2a8)]({'content':this[_0x266ca7(0x19f)]['t'](_0x266ca7(0x311)),'type':_0x5d7915[_0x266ca7(0x194)][_0x266ca7(0x39b)]});}[_0x479db0(0x2d3)](_0x387432,_0x53e3b1){const _0x148426=_0x479db0;try{this[_0x148426(0x1ca)]['executeCommand'](_0x387432['id'],_0x387432[_0x148426(0x2b2)],_0x53e3b1);}catch(_0x4673b6){this['_logService']['error'](_0x4673b6);}}['_setFormulaLimitStatus'](_0x3e2aa1,_0x233d99){const _0x6113f9=_0x479db0;_0x233d99<this[_0x6113f9(0x2e0)]||(this[_0x6113f9(0x2e0)]=_0x233d99,this['_maxFormulaLimit']=Number[_0x6113f9(0x36a)](_0x3e2aa1['maxFormulaLimit']),this['_currentUsage']=Number[_0x6113f9(0x36a)](_0x3e2aa1['currentUsage']));}async['_startCalculationLimit'](_0x5eafb3){const _0x1aa97c=_0x479db0;var _0xd07078,_0xfe265;const _0x585d9c=Date[_0x1aa97c(0x2f4)]();try{const _0x299d5e=((_0xd07078=this[_0x1aa97c(0x365)][_0x1aa97c(0x31b)](_0x4a9508[_0x1aa97c(0x3fc)]))==null?void 0x0:_0xd07078[_0x1aa97c(0x3da)])||_0x35f3f5,_0x4ae172=(await this['_httpService'][_0x1aa97c(0x2b3)](_0x299d5e,{'body':JSON[_0x1aa97c(0x443)]({'taskId':_0x5eafb3})}))[_0x1aa97c(0x291)];if(((_0xfe265=_0x4ae172[_0x1aa97c(0x2cb)])==null?void 0x0:_0xfe265[_0x1aa97c(0x181)])!==_0x24e2bf['OK'])return;this[_0x1aa97c(0x3b6)](_0x4ae172[_0x1aa97c(0x340)],_0x585d9c);}catch(_0x521a15){this[_0x1aa97c(0x177)][_0x1aa97c(0x2cb)](_0x521a15);}}async['_getFormulaLimitStatus'](_0x21b618){const _0x94d62d=_0x479db0;var _0x3fca02,_0x58681f;const _0x1a6f6f=Date[_0x94d62d(0x2f4)]();try{const _0x3e2105=((_0x3fca02=this['_configService'][_0x94d62d(0x31b)](_0x4a9508[_0x94d62d(0x3fc)]))==null?void 0x0:_0x3fca02[_0x94d62d(0x3ce)])||_0x4f1a91,_0x5243c3=_0x21b618?_0x3e2105+_0x94d62d(0x3a4)+encodeURIComponent(_0x21b618):_0x3e2105,_0x36135d=(await this[_0x94d62d(0x30e)][_0x94d62d(0x18f)](_0x5243c3))[_0x94d62d(0x291)];if(((_0x58681f=_0x36135d[_0x94d62d(0x2cb)])==null?void 0x0:_0x58681f[_0x94d62d(0x181)])!==_0x24e2bf['OK'])return;this[_0x94d62d(0x3b6)](_0x36135d[_0x94d62d(0x340)],_0x1a6f6f);}catch(_0x2d6965){this['_logService'][_0x94d62d(0x2cb)](_0x2d6965);}}async[_0x479db0(0x1c5)](_0x3650e6){const _0x3157fd=_0x479db0;var _0x305339,_0x270e7b;const _0x5de5ae=Date[_0x3157fd(0x2f4)]();try{const _0x5b1a1f=((_0x305339=this['_configService']['getConfig'](_0x4a9508[_0x3157fd(0x3fc)]))==null?void 0x0:_0x305339['releaseFormulaLimitUrl'])||_0x44ff63,_0xf4ebb3=(await this[_0x3157fd(0x30e)][_0x3157fd(0x2b3)](_0x5b1a1f,{'body':JSON['stringify']({'taskId':_0x3650e6})}))[_0x3157fd(0x291)];if(((_0x270e7b=_0xf4ebb3['error'])==null?void 0x0:_0x270e7b[_0x3157fd(0x181)])!==_0x24e2bf['OK'])return;this[_0x3157fd(0x3b6)](_0xf4ebb3[_0x3157fd(0x340)],_0x5de5ae);}catch(_0x34b182){this[_0x3157fd(0x177)][_0x3157fd(0x2cb)](_0x34b182);}}['_checkCalculationAvailable'](){const _0x14345a=_0x479db0;return this[_0x14345a(0x417)]===0x0?!0x0:this[_0x14345a(0x417)]-this[_0x14345a(0x2da)]>0x0;}[_0x479db0(0x22c)](){const _0x59f450=_0x479db0;this[_0x59f450(0x228)]&&(clearTimeout(this[_0x59f450(0x228)]),this[_0x59f450(0x228)]=null);}[_0x479db0(0x2a7)](){const _0x4b601b=_0x479db0;this['_messageService'][_0x4b601b(0x2a8)]({'content':this[_0x4b601b(0x19f)]['t'](_0x4b601b(0x211)),'type':_0x5d7915[_0x4b601b(0x194)][_0x4b601b(0x2c3)]});}[_0x479db0(0x271)](_0xfe07cf){const _0x225cff=_0x479db0;for(const _0x21a572 of _0xfe07cf){const {unitId:_0x3a9f50,sheetId:_0x10679a,range:_0x26321a}=_0x21a572,_0x1b7cce=this[_0x225cff(0x221)]['getUnit'](_0x3a9f50);if(!_0x1b7cce)continue;const _0x2c6aa3=_0x1b7cce[_0x225cff(0x394)](_0x10679a);if(!_0x2c6aa3)continue;const _0x5b7399=_0x2c6aa3[_0x225cff(0x3ff)]();for(let _0xea2582=_0x26321a['startRow'];_0xea2582<=_0x26321a[_0x225cff(0x33e)];_0xea2582++)for(let _0x43ac34=_0x26321a[_0x225cff(0x371)];_0x43ac34<=_0x26321a[_0x225cff(0x187)];_0x43ac34++){const _0x1a76aa=_0x5b7399['getValue'](_0xea2582,_0x43ac34);if(_0x1a76aa&&(_0x3446be[_0x225cff(0x3ba)](_0x1a76aa['f'])||_0x3446be['isFormulaId'](_0x1a76aa['si'])))return!0x0;}}return!0x1;}};_0x5c7fbc=_0x51bb06([_0x8120ad(0x0,_0x3446be['Inject'](_0x1e2f17[_0x479db0(0x1d9)])),_0x8120ad(0x1,_0x3446be['ICommandService']),_0x8120ad(0x2,_0x3446be[_0x479db0(0x2ae)]),_0x8120ad(0x3,_0x3446be[_0x479db0(0x21b)](_0x37d0f4[_0x479db0(0x1fe)])),_0x8120ad(0x4,_0x3446be[_0x479db0(0x2b5)]),_0x8120ad(0x5,_0x3446be['ILogService']),_0x8120ad(0x6,_0x3446be[_0x479db0(0x21b)](_0x3446be[_0x479db0(0x1c3)]))],_0x5c7fbc);var _0x2e50a9=Object['getOwnPropertyDescriptor'],_0xef2c86=(_0x5134dc,_0x5009ea,_0x169b7d,_0x72f4c1)=>{const _0x5889cd=_0x479db0;for(var _0x3f78ae=_0x72f4c1>0x1?void 0x0:_0x72f4c1?_0x2e50a9(_0x5009ea,_0x169b7d):_0x5009ea,_0x3ed929=_0x5134dc[_0x5889cd(0x27b)]-0x1,_0x30929d;_0x3ed929>=0x0;_0x3ed929--)(_0x30929d=_0x5134dc[_0x3ed929])&&(_0x3f78ae=_0x30929d(_0x3f78ae)||_0x3f78ae);return _0x3f78ae;},_0x9b21eb=(_0x355dc5,_0x127262)=>(_0x40b9a3,_0xbefc3d)=>_0x127262(_0x40b9a3,_0xbefc3d,_0x355dc5);let _0x3343e5=class extends _0x3446be[_0x479db0(0x1fc)]{constructor(_0x1266ef,_0x273909,_0x196c8b){const _0x34c379=_0x479db0;super(),_0x4b5aa6(this,_0x34c379(0x419),new Map()),_0x4b5aa6(this,_0x34c379(0x203),new Map()),_0x4b5aa6(this,_0x34c379(0x212),!0x1),(this[_0x34c379(0x365)]=_0x1266ef,this['_localStorageService']=_0x273909,this[_0x34c379(0x3f0)]=_0x196c8b);}[_0x479db0(0x2a2)](){this['_disabled']=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x479db0(0x40d)](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async[_0x479db0(0x259)](_0x12818d){const _0x1876ab=_0x479db0;return this[_0x1876ab(0x212)]?null:this[_0x1876ab(0x3d7)][_0x1876ab(0x3b5)](_0x4a9508['getLocalCacheKey'](_0x12818d));}async[_0x479db0(0x435)](_0x5763e6,_0x54e6e5){const _0x3b18f3=_0x479db0;return!!this[_0x3b18f3(0x3d7)][_0x3b18f3(0x262)](_0x5763e6,_0x54e6e5);}[_0x479db0(0x3d4)](_0x2f4027,_0x126df3,_0x525a6a,_0x83028c){const _0x2761a3=_0x479db0,_0x45c5cf=this[_0x2761a3(0x3f0)]['getCurrentRevOfUnit'](_0x2f4027);this[_0x2761a3(0x419)][_0x2761a3(0x1c9)](_0x2f4027,{'unitID':_0x2f4027,'type':_0x126df3,'awaitingChangeset':_0x525a6a,'mutations':_0x83028c,'rev':_0x45c5cf}),this[_0x2761a3(0x203)]['has'](_0x2f4027)||this[_0x2761a3(0x339)](_0x2f4027);}[_0x479db0(0x339)](_0x5b1e17){const _0xc98ac=_0x479db0,_0x566aa6=this[_0xc98ac(0x351)]();_0x566aa6===0x0?this[_0xc98ac(0x393)](_0x5b1e17):this[_0xc98ac(0x203)][_0xc98ac(0x1c9)](_0x5b1e17,setTimeout(()=>this[_0xc98ac(0x393)](_0x5b1e17),_0x566aa6));}[_0x479db0(0x351)](){const _0x166ca4=_0x479db0;var _0x570a1e;return(_0x570a1e=this['_configService'][_0x166ca4(0x31b)](_0x4a9508[_0x166ca4(0x401)]))!=null?_0x570a1e:_0x4a9508[_0x166ca4(0x40b)];}[_0x479db0(0x393)](_0x508fa1){const _0x5ce4bd=_0x479db0,_0x3a126a=this[_0x5ce4bd(0x203)]['get'](_0x508fa1);return _0x3a126a!==void 0x0&&window[_0x5ce4bd(0x437)](_0x3a126a),this['_localStorageService'][_0x5ce4bd(0x262)](_0x4a9508[_0x5ce4bd(0x1b6)](_0x508fa1),this[_0x5ce4bd(0x419)]['get'](_0x508fa1))[_0x5ce4bd(0x305)](()=>this[_0x5ce4bd(0x203)][_0x5ce4bd(0x368)](_0x508fa1));}async[_0x479db0(0x267)](){const _0x25cad3=_0x479db0,_0x28ff73=[];this[_0x25cad3(0x203)][_0x25cad3(0x1ac)]((_0x21c8e5,_0x254327)=>{const _0x1a12ac=_0x25cad3;window[_0x1a12ac(0x437)](_0x21c8e5),_0x28ff73[_0x1a12ac(0x214)](this[_0x1a12ac(0x393)](_0x254327)[_0x1a12ac(0x305)](()=>{const _0x569d19=_0x1a12ac;this[_0x569d19(0x203)]['delete'](_0x254327);}));}),await Promise[_0x25cad3(0x178)](_0x28ff73);}};_0x3343e5=_0xef2c86([_0x9b21eb(0x0,_0x3446be[_0x479db0(0x2ae)]),_0x9b21eb(0x1,_0x3446be[_0x479db0(0x248)]),_0x9b21eb(0x2,_0x3446be['Inject'](_0x5ee43a[_0x479db0(0x20b)]))],_0x3343e5);class _0x577537 extends _0x3446be['RxDisposable']{constructor(){const _0x134fb9=_0x479db0;super(),_0x4b5aa6(this,'urlChange$'),this[_0x134fb9(0x22a)]=_0xc33fa7[_0x134fb9(0x246)](window,_0x134fb9(0x369))[_0x134fb9(0x1da)](_0xc33fa7[_0x134fb9(0x2f3)](this['dispose$']),_0xc33fa7['shareReplay'](0x1),_0xc33fa7[_0x134fb9(0x33b)](void 0x0));}['setParam'](_0x4be417,_0x5e1d46,_0x3c123f=!0x1){const _0x131ca2=_0x479db0,_0x18ccee=new URL(window['location'][_0x131ca2(0x42a)]);_0x18ccee[_0x131ca2(0x2fd)][_0x131ca2(0x1c9)](_0x4be417,_0x5e1d46),_0x3c123f?window[_0x131ca2(0x32f)][_0x131ca2(0x34e)]('','',_0x18ccee[_0x131ca2(0x42e)]()):window[_0x131ca2(0x32f)]['pushState']('','',_0x18ccee[_0x131ca2(0x42e)]());}[_0x479db0(0x24d)](_0x2e34d1,_0x6b8df2=!0x1){const _0x28a771=_0x479db0,_0x5a615c=new URL(window['location'][_0x28a771(0x42a)]);_0x5a615c[_0x28a771(0x2fd)]['delete'](_0x2e34d1),_0x6b8df2?window['history'][_0x28a771(0x34e)]('','',_0x5a615c[_0x28a771(0x42e)]()):window[_0x28a771(0x32f)][_0x28a771(0x283)]('','',_0x5a615c[_0x28a771(0x42e)]());}[_0x479db0(0x18d)](_0x558f33){const _0x12d9d4=_0x479db0;var _0x513dc4;return(_0x513dc4=new URL(window[_0x12d9d4(0x2aa)][_0x12d9d4(0x42a)])['searchParams'][_0x12d9d4(0x18f)](_0x558f33))!=null?_0x513dc4:void 0x0;}}var _0x14ec35=Object[_0x479db0(0x204)],_0x52692b=Object[_0x479db0(0x179)],_0x45cb5b=(_0x44e698,_0x579a91,_0x4b73f1)=>_0x579a91 in _0x44e698?_0x14ec35(_0x44e698,_0x579a91,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b73f1}):_0x44e698[_0x579a91]=_0x4b73f1,_0x54e05d=(_0x12f203,_0x40b321,_0x55dc41,_0x4509b7)=>{for(var _0x405019=_0x4509b7>0x1?void 0x0:_0x4509b7?_0x52692b(_0x40b321,_0x55dc41):_0x40b321,_0x587a90=_0x12f203['length']-0x1,_0x2d13bf;_0x587a90>=0x0;_0x587a90--)(_0x2d13bf=_0x12f203[_0x587a90])&&(_0x405019=_0x2d13bf(_0x405019)||_0x405019);return _0x405019;},_0x22d13e=(_0x45087a,_0x3e8a89)=>(_0x34780e,_0x2c0f48)=>_0x3e8a89(_0x34780e,_0x2c0f48,_0x45087a),_0x3a104f=(_0x4fd6ef,_0xd5c7d0,_0x189d9f)=>_0x45cb5b(_0x4fd6ef,_0xd5c7d0+'',_0x189d9f);const _0x3df01a=_0x479db0(0x1aa);_0xc9a868[_0x479db0(0x366)]=class extends _0x3446be[_0x479db0(0x35f)]{constructor(_0x567098=_0x151b2a,_0x53a7dd,_0x4e89ef,_0x2f146b){const _0x1d4833=_0x479db0;super(),this[_0x1d4833(0x2fc)]=_0x567098,this[_0x1d4833(0x400)]=_0x53a7dd,this[_0x1d4833(0x23c)]=_0x4e89ef,this[_0x1d4833(0x365)]=_0x2f146b;const {..._0x505646}=_0x3446be['merge']({},_0x151b2a,this[_0x1d4833(0x2fc)]);this[_0x1d4833(0x365)]['setConfig'](_0x14c0d0,_0x505646);}[_0x479db0(0x1f2)](){const _0x42a799=_0x479db0;this[_0x42a799(0x38d)](),this[_0x42a799(0x3ab)]();}[_0x479db0(0x251)](){const _0x1adce5=_0x479db0;this[_0x1adce5(0x39f)]();}[_0x479db0(0x38d)](){const _0x15e885=_0x479db0;var _0x3647af;const _0x505955=[[_0x324f05],[_0x5c7fbc],[_0x424ebb],[_0xb9b96b],[_0x44d029],[_0x35b0b1],[_0x413167,{'useClass':_0x577537}],[_0x37d0f4[_0x15e885(0x347)],{'useClass':_0x37d0f4[_0x15e885(0x331)]}],[_0x4a9508[_0x15e885(0x3e5)],{'useClass':_0x3343e5}],[_0xc9a868[_0x15e885(0x218)]],[_0x312d64],[_0x508130],[_0x302180],[_0x1e3e26],[_0xc9a868[_0x15e885(0x2e4)]]];_0x3446be['registerDependencies'](this['_injector'],_0x3446be[_0x15e885(0x192)](_0x505955,(_0x3647af=this[_0x15e885(0x2fc)])==null?void 0x0:_0x3647af[_0x15e885(0x1de)]));}[_0x479db0(0x39f)](){const _0x161172=_0x479db0;this[_0x161172(0x275)](this[_0x161172(0x400)][_0x161172(0x1bc)](_0x3446be[_0x161172(0x20a)][_0x161172(0x24c)],[_0x1554de])),this[_0x161172(0x275)](this[_0x161172(0x400)][_0x161172(0x1bc)](_0x3446be[_0x161172(0x20a)][_0x161172(0x3a8)],[_0x125789]));}[_0x479db0(0x3ab)](){const _0x86ce41=_0x479db0;_0x3446be['touchDependencies'](this[_0x86ce41(0x23c)],[[_0x302180],[_0xc9a868['DesktopCollaborationStatusDisplayController']],[_0x312d64],[_0x508130],[_0xc9a868[_0x86ce41(0x2e4)]],[_0x5c7fbc]]);}},_0x3a104f(_0xc9a868[_0x479db0(0x366)],_0x479db0(0x244),_0x3df01a),_0xc9a868[_0x479db0(0x366)]=_0x54e05d([_0x3446be[_0x479db0(0x379)](_0x4a9508[_0x479db0(0x430)]),_0x22d13e(0x1,_0x154eb1[_0x479db0(0x3b8)]),_0x22d13e(0x2,_0x3446be['Inject'](_0x3446be[_0x479db0(0x195)])),_0x22d13e(0x3,_0x3446be[_0x479db0(0x2ae)])],_0xc9a868[_0x479db0(0x366)]);var _0x268e76=Object['getOwnPropertyDescriptor'],_0x2881c4=(_0x90a8c7,_0x568380,_0x30fda0,_0x2d13a2)=>{const _0x44bce6=_0x479db0;for(var _0x3ff60f=_0x2d13a2>0x1?void 0x0:_0x2d13a2?_0x268e76(_0x568380,_0x30fda0):_0x568380,_0xe0cd83=_0x90a8c7[_0x44bce6(0x27b)]-0x1,_0x1daaaf;_0xe0cd83>=0x0;_0xe0cd83--)(_0x1daaaf=_0x90a8c7[_0xe0cd83])&&(_0x3ff60f=_0x1daaaf(_0x3ff60f)||_0x3ff60f);return _0x3ff60f;},_0x5dfcb4=(_0x2903f7,_0x5093fe)=>(_0x3f057f,_0x5c5cb1)=>_0x5093fe(_0x3f057f,_0x5c5cb1,_0x2903f7);_0xc9a868['BrowserCollaborationSocketService']=class extends _0x4a9508[_0x479db0(0x325)]{constructor(_0x28fa51,_0x21791d,_0x6a42b4,_0x325a38,_0x263064){super(_0x28fa51,_0x21791d,_0x6a42b4,_0x325a38,_0x263064);}async[_0x479db0(0x367)](_0x2ac47a){const _0x29c314=_0x479db0,_0xfa0c99=await this[_0x29c314(0x1a8)](),_0x51db11=this['_createSocketURL'](_0x2ac47a,_0xfa0c99);return this[_0x29c314(0x1ae)](_0x51db11);}['_createSocketURL'](_0xfa4791,_0x38f31f){const _0x2b4422=_0x479db0,_0x33c941=typeof window>'u'?new URL(_0xfa4791):new URL(_0xfa4791,window[_0x2b4422(0x2aa)][_0x2b4422(0x182)]);_0x33c941[_0x2b4422(0x2fd)][_0x2b4422(0x1c9)]('sessionTicket',_0x38f31f);const _0x4af71e=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x4af71e['get'](_0x2b4422(0x225))&&_0x33c941['searchParams'][_0x2b4422(0x1c9)]('runId',_0x4af71e[_0x2b4422(0x18f)](_0x2b4422(0x225))),_0x33c941[_0x2b4422(0x42e)]();}async[_0x479db0(0x1a8)](){const _0x16aa6a=_0x479db0;var _0x341fac,_0xdf36bc,_0x506348;const _0x348831=this[_0x16aa6a(0x365)][_0x16aa6a(0x31b)](_0x4a9508[_0x16aa6a(0x3fc)]),_0x1d3c70=(_0x341fac=_0x348831==null?void 0x0:_0x348831[_0x16aa6a(0x1d0)])!=null?_0x341fac:_0x4a9508[_0x16aa6a(0x372)];return(_0x506348=(_0xdf36bc=(await this[_0x16aa6a(0x30e)][_0x16aa6a(0x18f)](_0x1d3c70,{'headers':{'Content-Type':_0x16aa6a(0x293)}}))['body'])==null?void 0x0:_0xdf36bc[_0x16aa6a(0x202)])!=null?_0x506348:'';}},_0xc9a868[_0x479db0(0x2de)]=_0x2881c4([_0x5dfcb4(0x0,_0x3446be[_0x479db0(0x21b)](_0x3446be['Injector'])),_0x5dfcb4(0x1,_0x3446be[_0x479db0(0x21b)](_0x37d0f4['HTTPService'])),_0x5dfcb4(0x2,_0x3446be['IConfigService']),_0x5dfcb4(0x3,_0x3446be[_0x479db0(0x438)]),_0x5dfcb4(0x4,_0x5ee43a['ISnapshotServerService'])],_0xc9a868[_0x479db0(0x2de)]);var _0x7576ce=Object[_0x479db0(0x179)],_0x5de94c=(_0x161509,_0x241c40,_0x15a84b,_0x1633bc)=>{const _0x22216c=_0x479db0;for(var _0x47fd49=_0x1633bc>0x1?void 0x0:_0x1633bc?_0x7576ce(_0x241c40,_0x15a84b):_0x241c40,_0x2c0e83=_0x161509[_0x22216c(0x27b)]-0x1,_0x2d9994;_0x2c0e83>=0x0;_0x2c0e83--)(_0x2d9994=_0x161509[_0x2c0e83])&&(_0x47fd49=_0x2d9994(_0x47fd49)||_0x47fd49);return _0x47fd49;},_0x11082c=(_0x3df7f0,_0x5e2509)=>(_0x4d838c,_0x32ae6c)=>_0x5e2509(_0x4d838c,_0x32ae6c,_0x3df7f0);_0xc9a868[_0x479db0(0x359)]=class extends _0x3446be[_0x479db0(0x1fc)]{constructor(_0x3ea737,_0x3e1fa0,_0x142eae){const _0x2374f8=_0x479db0;super(),this[_0x2374f8(0x3f4)]=_0x3ea737,this['_httpService']=_0x3e1fa0,this[_0x2374f8(0x365)]=_0x142eae;}async[_0x479db0(0x2b8)](_0x1ed206,_0x5c94cd,_0x32b3cf,..._0x4ad342){const _0x464258=_0x479db0;var _0x3242bb,_0x2e0be0,_0x4e77cb,_0x5608da;const _0x2c3b1d=this[_0x464258(0x3f4)]['getFocusedUnit']();if(!_0x2c3b1d)throw new Error(_0x464258(0x403));const _0x4d4ef9=((_0x3242bb=this[_0x464258(0x365)][_0x464258(0x31b)](_0x4a9508['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x3242bb:_0x4a9508[_0x464258(0x297)])+'/'+_0x1ed206+_0x464258(0x389)+_0x5c94cd,_0x56163f=new URL(window[_0x464258(0x2aa)][_0x464258(0x42a)]),_0x58fe0a={'scriptId':_0x1ed206,'runId':(_0x2e0be0=_0x56163f[_0x464258(0x2fd)]['get'](_0x464258(0x225)))!=null?_0x2e0be0:'','function':_0x5c94cd,'unitId':_0x2c3b1d[_0x464258(0x346)](),'argsOfFunction':JSON[_0x464258(0x443)](_0x4ad342),'invokeId':(_0x4e77cb=_0x32b3cf[_0x464258(0x284)])!=null?_0x4e77cb:'','executionId':(_0x5608da=_0x32b3cf[_0x464258(0x35e)])!=null?_0x5608da:''};try{const _0x294282=await this['_httpService'][_0x464258(0x2b3)](_0x4d4ef9,{'body':_0x58fe0a});return _0x294282[_0x464258(0x291)]['error']&&_0x294282[_0x464258(0x291)][_0x464258(0x2cb)][_0x464258(0x181)]!==_0x24e2bf['OK']?_0x464258(0x29b):_0x294282[_0x464258(0x291)][_0x464258(0x388)];}catch{return _0x464258(0x29b);}}},_0xc9a868[_0x479db0(0x359)]=_0x5de94c([_0x11082c(0x0,_0x3446be['IUniverInstanceService']),_0x11082c(0x1,_0x3446be[_0x479db0(0x21b)](_0x37d0f4[_0x479db0(0x1fe)])),_0x11082c(0x2,_0x3446be['IConfigService'])],_0xc9a868[_0x479db0(0x359)]);const _0x3fcc93=0x7530,_0x11d3d5='ACTIVE_UNIT_EVENT_CHANNEL';class _0x1123e8 extends _0x3446be[_0x479db0(0x1fc)]{constructor(){const _0x481d56=_0x479db0;super(),_0x4b5aa6(this,_0x481d56(0x306),_0x3446be[_0x481d56(0x407)]()),_0x4b5aa6(this,'_selfUnitIDs',new Set()),_0x4b5aa6(this,'_unitOnClients',new Map()),_0x4b5aa6(this,'_heartbeatTimer',null),_0x4b5aa6(this,_0x481d56(0x25a),new Map()),_0x4b5aa6(this,_0x481d56(0x341),new Map()),this[_0x481d56(0x240)]();}[_0x479db0(0x40d)](){const _0x51dc4e=_0x479db0;super[_0x51dc4e(0x40d)](),this[_0x51dc4e(0x25a)]['forEach']((_0xf7f1,_0x4ee7c8)=>this[_0x51dc4e(0x176)](_0x4ee7c8)),this[_0x51dc4e(0x363)]&&window[_0x51dc4e(0x2ef)](this['_heartbeatTimer']);}[_0x479db0(0x19a)](_0x3f6ed4){const _0x2b5f0c=_0x479db0;return this[_0x2b5f0c(0x1ea)](_0x3f6ed4)[_0x2b5f0c(0x1da)](_0xc33fa7[_0x2b5f0c(0x32c)]());}[_0x479db0(0x1d3)](_0x29408b){const _0x244028=_0x479db0;this[_0x244028(0x263)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x244028(0x263)][_0x244028(0x335)](_0x29408b),this[_0x244028(0x28e)]({'type':0x0,'memberID':this[_0x244028(0x306)],'unitIDs':[_0x29408b],'isForwarded':!0x1});}[_0x479db0(0x188)](_0x3a8298){const _0xe8d3f3=_0x479db0;this[_0xe8d3f3(0x263)][_0xe8d3f3(0x368)](_0x3a8298),this[_0xe8d3f3(0x263)][_0xe8d3f3(0x2c9)]===0x0&&this[_0xe8d3f3(0x363)]&&window[_0xe8d3f3(0x2ef)](this[_0xe8d3f3(0x363)]);}[_0x479db0(0x240)](){const _0x341ffb=_0x479db0;this[_0x341ffb(0x275)](_0x3446be[_0x341ffb(0x384)](_0xc33fa7['fromEvent'](window,_0x341ffb(0x338))[_0x341ffb(0x1b3)](_0x598407=>{const _0x543598=_0x341ffb;if(_0x598407[_0x543598(0x1e6)]!==_0x11d3d5||!_0x598407['newValue'])return;const _0x210134=JSON[_0x543598(0x42b)](_0x598407[_0x543598(0x26d)]);this['_handleEvent'](_0x210134);}))),window[_0x341ffb(0x33d)](_0x341ffb(0x2ca),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x341ffb(0x18b)](this[_0x341ffb(0x263)])}));}[_0x479db0(0x29f)](_0x1104d4){const _0x4e0deb=_0x479db0;switch(_0x1104d4[_0x4e0deb(0x26f)]){case 0x0:this['_handleJoinEvent'](_0x1104d4);break;case 0x1:this[_0x4e0deb(0x22d)](_0x1104d4);break;case 0x2:this[_0x4e0deb(0x1f4)](_0x1104d4);break;}}[_0x479db0(0x3a2)](_0x30c0d1){const _0x9342a3=_0x479db0,{unitIDs:_0x55c1bf,memberID:_0x590166,isForwarded:_0x12fdb9}=_0x30c0d1;_0x55c1bf[_0x9342a3(0x1ac)](_0x35cc70=>{const _0x4e93e4=_0x9342a3;if(!_0x12fdb9&&this[_0x4e93e4(0x2a5)][_0x4e93e4(0x408)](_0x35cc70)&&this[_0x4e93e4(0x1ea)](_0x35cc70)['next'](_0x4a9508['UnitStatus'][_0x4e93e4(0x1a6)]),!this[_0x4e93e4(0x2a5)][_0x4e93e4(0x408)](_0x35cc70)||!this[_0x4e93e4(0x2a5)][_0x4e93e4(0x18f)](_0x35cc70)[_0x4e93e4(0x408)](_0x590166)){const _0x1d3df5=this['_unitOnClients'][_0x4e93e4(0x18f)](_0x35cc70)||new Set();_0x1d3df5[_0x4e93e4(0x335)](_0x590166),this[_0x4e93e4(0x2a5)][_0x4e93e4(0x1c9)](_0x35cc70,_0x1d3df5),this[_0x4e93e4(0x2c7)](_0x590166);}}),_0x12fdb9||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x479db0(0x2c7)](_0x3b8c22){const _0x1ed5a9=_0x479db0;this[_0x1ed5a9(0x176)](_0x3b8c22);const _0x9f20a4=window['setTimeout'](()=>{const _0x2abcaf=_0x1ed5a9;this[_0x2abcaf(0x2a5)]['forEach'](_0x5a2e3e=>{const _0x29c43d=_0x2abcaf;_0x5a2e3e[_0x29c43d(0x368)](_0x3b8c22);});},_0x3fcc93*0x2);this['_clearOtherTimers'][_0x1ed5a9(0x1c9)](_0x3b8c22,_0x9f20a4);}[_0x479db0(0x176)](_0x186d81){const _0x706b3d=_0x479db0;if(this[_0x706b3d(0x25a)][_0x706b3d(0x408)](_0x186d81)){const _0x89002=this[_0x706b3d(0x25a)][_0x706b3d(0x18f)](_0x186d81);_0x89002&&window[_0x706b3d(0x437)](_0x89002),this[_0x706b3d(0x25a)][_0x706b3d(0x1c9)](_0x186d81,null);}}[_0x479db0(0x22d)](_0xfb30d2){const _0x24005c=_0x479db0,{memberID:_0x3d2807,unitIDs:_0x591049}=_0xfb30d2;_0x591049[_0x24005c(0x1ac)](_0x416802=>{const _0x362251=_0x24005c;var _0x379845;const _0x1354d5=this[_0x362251(0x2a5)]['get'](_0x416802);_0x1354d5&&(_0x1354d5[_0x362251(0x368)](_0x3d2807),(_0x379845=this['_ensureSubject'](_0x416802))==null||_0x379845[_0x362251(0x1d1)](_0x1354d5[_0x362251(0x2c9)]===0x0?_0x4a9508[_0x362251(0x1f9)][_0x362251(0x36c)]:_0x4a9508['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x3d2807);}[_0x479db0(0x1f4)](_0xcba40c){const _0x4b868a=_0x479db0;this[_0x4b868a(0x2c7)](_0xcba40c['memberID']);}[_0x479db0(0x28e)](_0x155055){const _0x455859=_0x479db0;localStorage[_0x455859(0x262)](_0x11d3d5,JSON[_0x455859(0x443)](_0x155055));}[_0x479db0(0x2a0)](){const _0x4fa209=_0x479db0;this['_heartbeatTimer']=window[_0x4fa209(0x3df)](()=>{const _0x2452d7=_0x4fa209;this[_0x2452d7(0x28e)]({'type':0x2,'memberID':this[_0x2452d7(0x306)]});},_0x3fcc93);}[_0x479db0(0x1ea)](_0x44c1a4){const _0x47ca34=_0x479db0;return this[_0x47ca34(0x341)]['has'](_0x44c1a4)||this[_0x47ca34(0x341)][_0x47ca34(0x1c9)](_0x44c1a4,new _0xc33fa7[(_0x47ca34(0x41f))](_0x4a9508[_0x47ca34(0x1f9)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x47ca34(0x18f)](_0x44c1a4);}}_0xc9a868[_0x479db0(0x285)]=_0x413167,_0xc9a868['SheetCollabCursorShape']=_0x4f6975,_0xc9a868[_0x479db0(0x232)]=_0x1123e8,_0xc9a868[_0x479db0(0x323)]=_0x577537,Object[_0x479db0(0x204)](_0xc9a868,Symbol[_0x479db0(0x434)],{'value':_0x479db0(0x441)});}));function _0x5580(_0x3f65a7,_0x55005c){const _0x3c7de7=_0x3c7d();return _0x5580=function(_0x5580d7,_0x54baef){_0x5580d7=_0x5580d7-0x176;let _0x28c807=_0x3c7de7[_0x5580d7];return _0x28c807;},_0x5580(_0x3f65a7,_0x55005c);}function _0x3c7d(){const _0x4d549d=['YUUMI_CONNECTOR_URL_NOT_FOUND','_setupBeforeClosingHandler','_getFormulaLimitStatus','DependentOn','_onCursorUpdate','APPLY_DUPLICATED','REDEMPTION_INVALID_CODE','Tools','purple.300','max','collaboration-client.offline-data-not-saved','getVpScrollXYInfoByPosToVp','defIds','SetFormulaCalculationStartMutation','toDisposable','OFFLINE','whenReady','deserializeRangeWithSheet','result','/run/','serializeRangeWithSheet','getMergeData','getCollabEntity$','_registerDependencies','transform','SessionStatus','lineTo','UNAUTHENTICATED','_entities','_saveCache','getSheetBySheetId','jsx','translate(.97)','@univerjs/sheets-ui','_docStateChangeManagerService','SetDocZoomRatioOperation','2255480LLwuQV','Error','addObject','_drawAnchor','YUUMI_ASYNCIO_CANCELLED','_registerRenderDependencies','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Vector2','_handleJoinEvent','YUUMI_ALL_TABLES_IS_INVALID','?taskId=','sheetId','univer-flex\x20univer-items-center','_draw','UNIVER_SHEET','1em','_transformService','_initDependencies','random','DeleteRangeMoveUpCommandId','getCellPositionByOffset','dispose$','getColor','SetFormulaCalculationNotificationMutation','event$','_docSkeleton','_transformUndoRedoStack','getItem','_setFormulaLimitStatus','ITransformService','IRenderManagerService','onPointerEnter$','isFormulaString','requireSession','_initStatusComponent','_syncEditingCollabCursorService','_dataLoaderService','START_CALCULATION','_sheetSkeletonManagerService','_color','CollaborationStatus','cursorInfo$','_updateSubUnitFromURLParams','getUnhiddenWorksheets','path','[CollaborationDataLoaderController]','getTypeOfUnitAdded$','INVITE_CODE_HAS_BEEN_UES','_collaborationController','YUUMI_UNABLE_LOAD_URL','getUniverSheetInstance','RemoveColCommandId','getformulaLimitStatusUrl','isArray','_refRangeService','_collaborationUIEventService','complete','connectInjector','updateOfflineData','SOCKET_FAILED','_collabSessionService','_localStorageService','subunit','startsWith','startFormulaLimitUrl','@univerjs-pro/collaboration','http://www.w3.org/2000/svg','LOGIN_FAILED','getFocusedUnit','setInterval','_status$','onPointerLeave$','ranges','isTransformMutationFailure','off-line-icon_clip0_910_343','ILocalCacheService','handleInsertRangeMoveRight','onMouseMove','SHEET_VIEWPORT_KEY','session.will-retry','_initEvent','_initStatusListener','onCommandExecuted','focused$','APPLY_REVISION_CONFILICT','ICommandService','_revisionService','mask','NodePositionConvertToRectRange','SNAPSHOT_INVALID_SNAPSHOT','_instanceService','useObservable','DOC_RANGE_TYPE','0\x200\x2017\x2016','CollaborationEvent','roomMembers$','TEXT','transformIMECache','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','handleInsertRangeMoveDown','_labelPosition','getCellMatrix','_renderManagerService','LOCAL_CACHE_INTERVAL_KEY','fromEventSubject','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unitId','permission.title','combineLatest','generateRandomId','has','@univerjs/docs-ui','OTHER_CLIENT_EDITING','LOCAL_CACHE_INTERVAL','_checkCalculationAvailable','dispose','operators','restore','drawWith','_localCacheService','Warning','switchMap','none','INotificationService','transformMutationsWithChangeset','_maxFormulaLimit','getCurrentSelections','_cachedData','_removeCollabCursors','contains','_hover','SYNCED','LICENSE_MAX_UNITS_EXCEEDED','BehaviorSubject','deepClone','eventID','ENTITLE_CAN_NOT_BUY_LOWER_OTP','saveImage','getValue','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','imageSourceType','_eventUnsubscribe','forwardRef','data','href','parse','INVALID_ARGUMENT','asObservable','toString','NOT_FOUND','UniverCollaborationClientPlugin','YUUMI_RATE_OVER_LIMIT','InsertRowCommandId','black','toStringTag','saveOfflineData','ENTITLE_REPORT_LIMIT_EXCEED','clearTimeout','ILogService','UNRECOGNIZED','YUUMI_URL_COL_OUT_OF_RANGE','color','addClipboardHook','div','UniverDocs','colorChannel1','send','Module','isTransformMutationsWithChangesetSuccess','stringify','_startSheetCollabCursor','_context','_removeClearOtherTimer','_logService','all','getOwnPropertyDescriptor','TRANSFORM_CHANGE_OBSERVABLE_TYPE','4932036YvfDRm','_cursorShapes','setStateCache','column','getAncestorScale','unitID','code','origin','@univerjs-pro/collaboration-client','_imageIoService','getActiveSheet','UPDATE_CURSOR','endColumn','disposeUnit','INTERNAL_ERROR','dirtyRanges','from','saveTaskMap','getParam','jiqing.500','get','split','find','mergeOverrideWithDependencies','_transformHistoryAndStateStack','MessageType','Injector','getUndoRedoMutationParamsCache','RichTextEditingMutation','CollaborationController','@univerjs/sheets','getUnitStatus$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','...','_roomMembers$','UNDEFINED','_localeService','handleInsertCol','includes','_hovered','_range','collabStatus.fetchMiss','url(#on-line-icon_clip0_910_349)','OTHER_CLIENTS_EDITING','_textBubble','_getSessionTicket','collabStatus.offline','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','subscribeEvent','forEach','triggerDblclick','_doCreateSocket','/universer-api/license/formula/limit/status','_render','_themeService','@univerjs/rpc','subscribe','ENTITLE_CHAT_LIMIT_EXCEED','4998SYwQDv','getLocalCacheKey','MOBILE_HAS_BEEN_BOUND','OffLineIcon','USER_NOT_FOUND','amd','debounce','registerRenderModule','width','setUndoRedoMutationParamsCache','replace','_updateURLWithCurrentState','COMPLETION_FINISHED','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','LocaleService','_initEntityListener','_releaseCalculationLimit','SheetsSelectionsService','@univerjs/engine-render','row','set','_commandService','PAYMENT_CHANNEL_NOT_SUPPORT','_messageService','_collabCursorState$','toRgbString','executeCommand','wsSessionTicketUrl','next','LOGIN_TOKEN_PROCESSING_FAILED','editingUnit','transformRemoteChangeset','8mUUBwr','REDEMPTION_CODE_NOT_STARTED','SUBMIT_CHANGESET_TIMEOUT','EMAIL_HAS_BEEN_BOUND','IMessageService','pipe','beginPath','on-line-icon_clip0_910_349','InsertRangeMoveDownCommandId','override','closePath','engine','MOBILE_VERIFY_CODE_MISMATCH','react/jsx-runtime','_drawTextRange','uni.network.url-service','_beforeCloseService','key','shift','startRow','tag','_ensureSubject','PERMISSION_DENIED','createInstance','values','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COLORS','with','collabCursorState$','onStarting','ThemeService','_handleHeartbeatEvent','_colorIndex','NodePositionConvertToCursor','DocSelectionManagerService','range','UnitStatus','Success','getSkeleton','Disposable','_notificationService','HTTPService','CollaborationSessionService','/universer-api/license/formula/limit/done','sessionStatus$','ticket','_saveTaskMap','defineProperty','_scene','off-line-icon','IImageIoService','text','url(#off-line-icon_clip0_910_343)','UniverInstanceType','RevisionService','SheetSkeletonManagerService','14077NSSlMU','defs','min','IUIPartsService','formula.calculation.waiting','_disabled','DataLoaderService','push','AUTHORIZE_CODE_ILLEGAL','TOO_MANY_REQUESTS','ENTITLE_NEED_BILLING_ADDRESS','DesktopCollaborationStatusDisplayController','LICENSE_DISTRO_REJECTED','collabStatus.synced','Inject','RECT','PENDING','6868ZdNnXD','getCoordByCell','collab-client.tooltip.reconnect','_univerInstanceService','OnLineIcon','ALREADY_EXISTS','LICENSE_IMPORT_SIZE_EXCEEDED','runId','Shape','registerComponent','_pollingInterval','WECHAT_HAS_BEEN_BOUND','urlChange$','permission.content','_clearPolling','_handleLeaveEvent','makeDirty','univerjs-icon\x20univerjs-icon-','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','status$','WebBrowserSingleActiveUnitService','currentTheme$','MoveRangeCommandId','USER_NOT_INVITED_CODE','session.collaboration-timeout','exports','_onRefRangeChange','textRanges','IRemoteInstanceService','SUCCESS','_injector','handleIRemoveCol','getStateCache','unshift','_init','unit','handleDeleteRangeMoveUp','_transformPreviousActiveRange','pluginName','Subject','fromEvent','_drawRectRange','ILocalStorageService','getSheetId','CLOSE_ROOM','isEditing','UNIVER_DOC','removeParam','setParam','UniverSheets','APPLY_NON_SEQUENTIAL_REVISION','onRendered','_collabCursorController','measureText','_getScale','14632490CCfzbV','setTimeout','DocIMEInputManagerService','collab-rect-range-','loadOfflineData','_clearOtherTimers','_onCursorDelete','selection','registerRefRange','font','@univerjs/drawing','assignAColorForMemberID','EMAIL_VERIFY_CODE_MISMATCH','setItem','_selfUnitIDs','yellow.400','IDocClipboardService','_cursorInfo$','exhaustSavingTask','UniverIcon','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','moveTo','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','INVALID_INVITE_CODE','newValue','_toggleOnline','type','handleMoveRange','_hasFormulaInDirtyRanges','LICENSE_EXPORT_SIZE_EXCEEDED','some','fillRule','disposeWithMe','fillText','_updateLocalCursor','_hideTimer','UniverProCollaboration','MemberService','length','transformStateCache','useRef','_docSkeletonManagerService','SOCKET_FAILED_RETRY','_getMergeRange','ERROR_AGAIN','getCurrentUnitForType','pushState','invokeId','IURLService','collabStatus.syncing','on-line-icon','m2Prime','use','functionsExecutedState','YUUMI_TABLE_NOT_FOUND_IN_UNIT','doc.mutation.rich-text-editing','0\x200\x2016\x2016','_send','DocSkeletonManagerService','rxjs','body','attrs','application/json','cursorInfo','_anchorDot','FETCH_MISS','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_urlService','InsertRangeMoveRightCommandId','m1Prime','Failed','UniverUi','ONLINE','collabStatus.notCollab','_handleEvent','_scheduleHeartbeat','DocCollaborationEntity','disableLocalCache','4UXvewr','getOffsetConfig','_unitOnClients','CollaborationUIEventId','_showGuardMessage','show','session.connection-failed','location','USERS_LEAVE','100eTTaZD','/universer-api/license/formula/limit/start','IConfigService','_checkAndWaitForCalculationPermission','debug','_updateCollabCursors','params','post','reconnect','IUniverInstanceService','_docClipboardService','@univerjs/design','runOnServer','_backgroundColor','save','_cursors','entries','collaboration.closeRoom','currentSkeleton$','Unknown\x20user','YUUMI_SUBSCRIPTION_NOT_FOUND','rgba(255,\x20255,\x20255,\x200.01)','_docTransformStateCacheService','Loading','_memberService','isActive','_cursor','_scheduleClearOtherTimer','rxjs/operators','size','unload','error','_docSyncEditingCollabCursorService','evenodd','backgroundColor','findNodePositionByCharIndex','158232XhSlTK','getSheetObject','stage','_applyCommand','fillStyle','_lastPointer','collaboration-client-ui.config','CONNECTOR_DATA_TOO_LARGE','ColorKit','source','_currentUsage','CommandType','map','#FFF','BrowserCollaborationSocketService','function','_lastResponseTimestamp','actions','_initCommandExecutedListener','trim','CollaborationDataLoaderController','getRenderById','PY_RUNTIME_SCRIPT_ERROR','APPLY_PERMISSION_DENIED','setActiveRange','NOT_COLLAB','YUUMI_AI_RUN_FAILED','_name','url(#$1','getTypeOfUnitDisposed$','bottom','clearInterval','svg','UniverNetwork','Optional','takeUntil','now','_shapes','unsubscribe','transformSelections','top','TEXT_RANGE_LAYER_INDEX','_handleHover','xlink:href','_config','searchParams','hide','UniverEngineFormula','redoState','_refreshCollabCursors','mutations','object','collab-text-anchor-','then','_id','CHANGESET_REVISION_CONFILICT','_taskIds','addObjects','assign','clsx','onTransformChange$','string','_httpService','FromArray','ENTITLE_DUP_SUBSCRIPTION','formula.calculation.unable','stageInfo','_colorAssignService','_startDocCollabCursor','RxDisposable','SetWorksheetActivateCommand','_initCommandInterceptor','_session','_toggleOffline','getCurrent','getConfig','EffectRefRangId','roomMembers','white','REDEMPTION_CODE_FULLY_REDEEMED','getActiveRange','_anchor','DocStateChangeManagerService','WebURLService','currentColor','CollaborationSocketService','arc','red.300','fill','UniverProCollaborationClient','docStateChange$','INVITE_CODE_ALREADY_BOUND','distinctUntilChanged','getMember','UniverCore','history','APPLY_REJECT','WebSocketService','clipPath','round','getDocRanges','add','height','CanceledError','storage','_scheduleSaving','_entityInit$','mapTo','_docTransformIMECacheService','addEventListener','endRow','useDependency','limitInfo','_unitStatus','transformMutation','getColorFromTheme','onPointerMove$','createElement','getUnitId','ISocketService','name','_uiPartsService','runRefRangeMutations','totalFormulasToCalculate','UniverDrawing','JOIN_ROOM_FAILED','replaceState','_assignedColors','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_getSaveTimeout','filter','setShapeProps','UniverSheetsUi','getRelativeToViewportCoord','_getAnchorBounding','init','getCollabCursors$','RemoteUniscriptService','collab-text-range-','getMemberID','USER_IS_ANONYMOUS','setAlpha','executionId','Plugin','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','@univerjs/ui','_initResize','_heartbeatTimer','children','_configService','UniverCollaborationClientUIPlugin','createSocket','delete','popstate','parseInt','YUUMI_NO_CUBOID_FOR_QUESTION','NO_OTHER_CLIENTS_EDITING','_setupSubUnitSync','@univerjs/engine-formula','getRangePointData','REDEMPTION_USER_REDEEM_TIMES_EXCEED','startColumn','DEFAULT_WS_SESSION_TICKET_URL','_online','addHandlerCallback','idSuffix'];_0x3c7d=function(){return _0x4d549d;};return _0x3c7d();}