@univerjs-pro/collaboration-client-ui 0.10.13 → 0.10.14

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 +18 -18
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x13f83f=_0x54f0;(function(_0x432999,_0x39e03b){const _0x2ce156=_0x54f0,_0x2d950f=_0x432999();while(!![]){try{const _0x323a7a=parseInt(_0x2ce156(0x2bb))/0x1*(parseInt(_0x2ce156(0x412))/0x2)+-parseInt(_0x2ce156(0x203))/0x3*(-parseInt(_0x2ce156(0x1fc))/0x4)+parseInt(_0x2ce156(0x27e))/0x5+-parseInt(_0x2ce156(0x3f1))/0x6+-parseInt(_0x2ce156(0x3cc))/0x7*(-parseInt(_0x2ce156(0x309))/0x8)+parseInt(_0x2ce156(0x19f))/0x9+-parseInt(_0x2ce156(0x357))/0xa*(parseInt(_0x2ce156(0x2ad))/0xb);if(_0x323a7a===_0x39e03b)break;else _0x2d950f['push'](_0x2d950f['shift']());}catch(_0x5ef04f){_0x2d950f['push'](_0x2d950f['shift']());}}}(_0x298e,0x50d10));var Ve=Object[_0x13f83f(0x3b6)],Ge=(_0x5a9a31,_0x2ced48,_0x214e76)=>_0x2ced48 in _0x5a9a31?Ve(_0x5a9a31,_0x2ced48,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x214e76}):_0x5a9a31[_0x2ced48]=_0x214e76,_=(_0x3559eb,_0x2710ad,_0x2ef82e)=>Ge(_0x3559eb,typeof _0x2710ad!=_0x13f83f(0x1d3)?_0x2710ad+'':_0x2710ad,_0x2ef82e);Object['defineProperty'](exports,Symbol[_0x13f83f(0x302)],{'value':_0x13f83f(0x32c)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),p=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x436ab6,..._0x3eb966}){const _0x4b9fe5=_0x13f83f,{icon:_0x5e4607,id:_0xbf8910,className:_0x1e3aab,extend:_0x537775,..._0x4fb5b3}=_0x3eb966,_0xea8e4c=(_0x4b9fe5(0x1bd)+_0xbf8910+'\x20'+(_0x1e3aab||''))[_0x4b9fe5(0x22c)](),_0x5f3c1c=A[_0x4b9fe5(0x3c3)]('_'+Je());return we(_0x5e4607,''+_0xbf8910,{'defIds':_0x5e4607['defIds'],'idSuffix':_0x5f3c1c[_0x4b9fe5(0x282)]},{'ref':_0x436ab6,'className':_0xea8e4c,..._0x4fb5b3},_0x537775);}function we(_0x2c0db0,_0x154530,_0x5087fc,_0xca3953,_0x443f61){const _0x4e109e=_0x13f83f;return A[_0x4e109e(0x22a)](_0x2c0db0[_0x4e109e(0x174)],{'key':_0x154530,...qe(_0x2c0db0,_0x5087fc,_0x443f61),..._0xca3953},(ze(_0x2c0db0,_0x5087fc)[_0x4e109e(0x3ae)]||[])[_0x4e109e(0x2cc)]((_0x25c2f9,_0x226338)=>we(_0x25c2f9,_0x154530+'-'+_0x2c0db0[_0x4e109e(0x174)]+'-'+_0x226338,_0x5087fc,void 0x0,_0x443f61)));}function qe(_0x3be196,_0x2ece4d,_0x2bc6df){const _0x1cb8a1=_0x13f83f,_0x5910a8={..._0x3be196[_0x1cb8a1(0x24b)]};_0x2bc6df!=null&&_0x2bc6df[_0x1cb8a1(0x3c5)]&&_0x5910a8[_0x1cb8a1(0x26c)]===_0x1cb8a1(0x3c5)&&(_0x5910a8[_0x1cb8a1(0x26c)]=_0x2bc6df[_0x1cb8a1(0x3c5)]),_0x3be196[_0x1cb8a1(0x174)]==='mask'&&_0x5910a8['id']&&(_0x5910a8['id']=_0x5910a8['id']+_0x2ece4d['idSuffix']),Object[_0x1cb8a1(0x274)](_0x5910a8)[_0x1cb8a1(0x3f0)](([_0x54849b,_0x2d40b0])=>{const _0x3d9c20=_0x1cb8a1;_0x54849b==='mask'&&typeof _0x2d40b0=='string'&&(_0x5910a8[_0x54849b]=_0x2d40b0[_0x3d9c20(0x35b)](/url\(#(.*)\)/,_0x3d9c20(0x296)+_0x2ece4d[_0x3d9c20(0x36f)]+')'));});const {defIds:_0x58ea47}=_0x2ece4d;return!_0x58ea47||_0x58ea47[_0x1cb8a1(0x2c4)]===0x0||(_0x3be196[_0x1cb8a1(0x174)]===_0x1cb8a1(0x34d)&&_0x5910a8[_0x1cb8a1(0x328)]&&(_0x5910a8[_0x1cb8a1(0x328)]=_0x5910a8['xlink:href']+_0x2ece4d[_0x1cb8a1(0x36f)]),Object[_0x1cb8a1(0x274)](_0x5910a8)[_0x1cb8a1(0x3f0)](([_0x8d40b4,_0x2372b5])=>{const _0x3a9cd0=_0x1cb8a1;typeof _0x2372b5==_0x3a9cd0(0x19a)&&(_0x5910a8[_0x8d40b4]=_0x2372b5[_0x3a9cd0(0x35b)](/url\(#(.*)\)/,_0x3a9cd0(0x296)+_0x2ece4d[_0x3a9cd0(0x36f)]+')'));})),_0x5910a8;}function ze(_0x2ef130,_0x4d1ef4){const _0x12fa2e=_0x13f83f;var _0x56d1eb;const {defIds:_0x290677}=_0x4d1ef4;return!_0x290677||_0x290677[_0x12fa2e(0x2c4)]===0x0?_0x2ef130:_0x2ef130[_0x12fa2e(0x174)]===_0x12fa2e(0x1f3)&&((_0x56d1eb=_0x2ef130[_0x12fa2e(0x3ae)])!=null&&_0x56d1eb[_0x12fa2e(0x2c4)])?{..._0x2ef130,'children':_0x2ef130['children'][_0x12fa2e(0x2cc)](_0x2ad7a1=>typeof _0x2ad7a1[_0x12fa2e(0x24b)]['id']==_0x12fa2e(0x19a)&&_0x290677&&_0x290677[_0x12fa2e(0x2a5)](_0x2ad7a1[_0x12fa2e(0x24b)]['id'])?{..._0x2ad7a1,'attrs':{..._0x2ad7a1['attrs'],'id':_0x2ad7a1['attrs']['id']+_0x4d1ef4[_0x12fa2e(0x36f)]}}:_0x2ad7a1)}:_0x2ef130;}function Je(){const _0x30ecab=_0x13f83f;return Math[_0x30ecab(0x24d)]()[_0x30ecab(0x2a3)](0x24)[_0x30ecab(0x1cc)](0x2,0x8);}Ce[_0x13f83f(0x402)]=_0x13f83f(0x418);const Ze={'tag':'svg','attrs':{'xmlns':_0x13f83f(0x285),'fill':'none','viewBox':_0x13f83f(0x3a7),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x13f83f(0x344)},'children':[{'tag':_0x13f83f(0x32f),'attrs':{'stroke':_0x13f83f(0x17a),'d':_0x13f83f(0x3ea),'strokeLinecap':_0x13f83f(0x32b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x13f83f(0x1f3),'attrs':{},'children':[{'tag':_0x13f83f(0x3cf),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x13f83f(0x1a4),'d':_0x13f83f(0x2f2)}}]}]}],'defIds':[_0x13f83f(0x294)]},ye=A[_0x13f83f(0x1f5)](function(_0x2bdc16,_0x121f2a){const _0x4a7939=_0x13f83f;return A[_0x4a7939(0x22a)](Ce,Object['assign']({},_0x2bdc16,{'id':_0x4a7939(0x350),'ref':_0x121f2a,'icon':Ze}));});ye[_0x13f83f(0x402)]=_0x13f83f(0x2a7);const Qe={'tag':_0x13f83f(0x2c7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x13f83f(0x250),'viewBox':'0\x200\x2017\x2016','width':_0x13f83f(0x3eb),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x13f83f(0x1ea)},'children':[{'tag':_0x13f83f(0x32f),'attrs':{'stroke':_0x13f83f(0x17a),'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':_0x13f83f(0x32b),'strokeLinejoin':_0x13f83f(0x32b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x13f83f(0x3cf),'attrs':{'id':_0x13f83f(0x1ce)},'children':[{'tag':_0x13f83f(0x32f),'attrs':{'fill':_0x13f83f(0x1a4),'d':_0x13f83f(0x2f2),'transform':'translate(.97)'}}]}]}],'defIds':[_0x13f83f(0x1ce)]},$e=A[_0x13f83f(0x1f5)](function(_0x141a39,_0x35354b){return A['createElement'](Ce,Object['assign']({},_0x141a39,{'id':'on-line-icon','ref':_0x35354b,'icon':Qe}));});$e[_0x13f83f(0x402)]=_0x13f83f(0x1e8);function et(_0x481287){const _0xa6edac=_0x13f83f;switch(_0x481287){case u[_0xa6edac(0x407)][_0xa6edac(0x3c9)]:return _0xa6edac(0x2e7);case u[_0xa6edac(0x407)][_0xa6edac(0x196)]:return _0xa6edac(0x22d);case u[_0xa6edac(0x407)][_0xa6edac(0x1c3)]:return'collabStatus.fetchMiss';case u[_0xa6edac(0x407)][_0xa6edac(0x213)]:return _0xa6edac(0x2a4);case u[_0xa6edac(0x407)][_0xa6edac(0x27a)]:case u['CollaborationStatus'][_0xa6edac(0x1ab)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0xa6edac(0x30c)]:case u[_0xa6edac(0x407)][_0xa6edac(0x189)]:return _0xa6edac(0x400);}}function tt(_0x454c83){const _0x3fe912=_0x13f83f,{status$:_0x4f455b}=_0x454c83,_0x5ba8af=O[_0x3fe912(0x36c)](_0x4f455b,u['CollaborationStatus'][_0x3fe912(0x213)]),_0x4d5112=O[_0x3fe912(0x406)](a[_0x3fe912(0x37d)]),_0x45dee5=O[_0x3fe912(0x406)](u[_0x3fe912(0x291)]),_0x44939a=_0x5ba8af!==u['CollaborationStatus'][_0x3fe912(0x3c9)],_0x1d24a9=_0x4d5112['t'](et(_0x5ba8af)),_0x31a61a=_0x44939a?M['jsx']($e,{}):M[_0x3fe912(0x1e6)](ye,{}),_0x53fa3f=A[_0x3fe912(0x1a8)](()=>{const _0x24435c=_0x3fe912;_0x44939a||_0x45dee5[_0x24435c(0x1d1)]();},[_0x44939a,_0x45dee5]);function _0x4f5ec3(){const _0xdab757=_0x3fe912;return M[_0xdab757(0x180)](_0xdab757(0x205),{'className':_0xdab757(0x3b3),'onClick':_0x53fa3f,'children':[M['jsx'](_0xdab757(0x205),{'className':T[_0xdab757(0x209)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x44939a,'univer-text-red-500':!_0x44939a}),'children':_0x31a61a}),M[_0xdab757(0x1e6)](_0xdab757(0x205),{'className':_0xdab757(0x2d6),'children':_0x1d24a9})]});}return _0x44939a?_0x4f5ec3():M[_0x3fe912(0x1e6)](T[_0x3fe912(0x37c)],{'title':_0x4d5112['t'](_0x3fe912(0x2da)),'children':_0x4f5ec3()});}var st=Object[_0x13f83f(0x2f9)],it=(_0x4bbdc7,_0x2f2b1e,_0x49ba78,_0x307fb4)=>{const _0x26808=_0x13f83f;for(var _0x1b4708=_0x307fb4>0x1?void 0x0:_0x307fb4?st(_0x2f2b1e,_0x49ba78):_0x2f2b1e,_0x423cbd=_0x4bbdc7[_0x26808(0x2c4)]-0x1,_0x4755bd;_0x423cbd>=0x0;_0x423cbd--)(_0x4755bd=_0x4bbdc7[_0x423cbd])&&(_0x1b4708=_0x4755bd(_0x1b4708)||_0x1b4708);return _0x1b4708;},K=(_0x218bd9,_0x1bf716)=>(_0x7d92b6,_0x33b7d2)=>_0x1bf716(_0x7d92b6,_0x33b7d2,_0x218bd9);exports[_0x13f83f(0x3dc)]=class extends a[_0x13f83f(0x2aa)]{constructor(_0x16dd9f,_0x2a9b1e,_0x43fe47,_0x1657e5){const _0x31affc=_0x13f83f;super(),_(this,_0x31affc(0x346),new I[(_0x31affc(0x342))](u['CollaborationStatus'][_0x31affc(0x213)])),(this[_0x31affc(0x292)]=_0x16dd9f,this[_0x31affc(0x182)]=_0x2a9b1e,this['_collaborationController']=_0x43fe47,this[_0x31affc(0x2c5)]=_0x1657e5,this[_0x31affc(0x40d)](),this[_0x31affc(0x226)]());}[_0x13f83f(0x226)](){const _0x4728ee=_0x13f83f;this[_0x4728ee(0x217)](this['_univerInstanceService']['focused$'][_0x4728ee(0x253)](I[_0x4728ee(0x214)](()=>{const _0xc61e12=_0x4728ee,_0xb4be3=this[_0xc61e12(0x292)]['getFocusedUnit']();return _0xb4be3?this[_0xc61e12(0x2cb)][_0xc61e12(0x3a9)](_0xb4be3[_0xc61e12(0x22e)]()):I['of'](null);}),I['switchMap'](_0x4dab2b=>_0x4dab2b?_0x4dab2b[_0x4728ee(0x178)]:I['of'](u[_0x4728ee(0x407)][_0x4728ee(0x213)])))['subscribe'](_0x3f688d=>{this['_status$']['next'](_0x3f688d);}));}[_0x13f83f(0x40d)](){const _0x50bd28=_0x13f83f;this[_0x50bd28(0x217)](this['_uiPartsService']['registerComponent'](O[_0x50bd28(0x1a6)][_0x50bd28(0x396)],()=>O['connectInjector'](nt({'status$':this[_0x50bd28(0x346)][_0x50bd28(0x1ca)]()}),this[_0x50bd28(0x182)])));}},exports[_0x13f83f(0x3dc)]=it([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a['Injector'])),K(0x2,a[_0x13f83f(0x3f5)](u[_0x13f83f(0x413)])),K(0x3,O[_0x13f83f(0x1fb)])],exports[_0x13f83f(0x3dc)]);function nt(_0x1e1a43){const {status$:_0x18938d}=_0x1e1a43;return function(){return M['jsx'](tt,{'status$':_0x18938d});};}const pe=a['createIdentifier'](_0x13f83f(0x3f9));var rt=Object[_0x13f83f(0x2f9)],ot=(_0x5d6218,_0x110212,_0x4ca05c,_0x357bd8)=>{const _0x565666=_0x13f83f;for(var _0x49db42=_0x357bd8>0x1?void 0x0:_0x357bd8?rt(_0x110212,_0x4ca05c):_0x110212,_0x32c3b7=_0x5d6218[_0x565666(0x2c4)]-0x1,_0x38318d;_0x32c3b7>=0x0;_0x32c3b7--)(_0x38318d=_0x5d6218[_0x32c3b7])&&(_0x49db42=_0x38318d(_0x49db42)||_0x49db42);return _0x49db42;},j=(_0x465b30,_0x3d0d04)=>(_0xa153e1,_0x349480)=>_0x3d0d04(_0xa153e1,_0x349480,_0x465b30);exports['CollaborationDataLoaderController']=class extends a[_0x13f83f(0x31f)]{constructor(_0x208636,_0x452eff,_0x517a32,_0x3c03da,_0x499fa5){const _0x297e1a=_0x13f83f;super(),this[_0x297e1a(0x1e5)]=_0x208636,this[_0x297e1a(0x1be)]=_0x452eff,this[_0x297e1a(0x184)]=_0x517a32,this[_0x297e1a(0x1f1)]=_0x3c03da,_0x499fa5?_0x499fa5==null||_0x499fa5[_0x297e1a(0x206)]()['then'](()=>this[_0x297e1a(0x2f4)]()):(this['_logService']['debug']('[CollaborationDataLoaderController]',_0x297e1a(0x3d3)),this[_0x297e1a(0x2f4)]());}async[_0x13f83f(0x2f4)](){const _0x4345f4=_0x13f83f,_0x24987c=this['_urlService'][_0x4345f4(0x171)]('unit'),_0x4e81ea=this[_0x4345f4(0x1e5)][_0x4345f4(0x171)](_0x4345f4(0x3af)),_0x9d49f9=this[_0x4345f4(0x1e5)]['getParam'](_0x4345f4(0x30a));if(!_0x24987c||!_0x4e81ea){this['_logService'][_0x4345f4(0x3e6)](_0x4345f4(0x38f),_0x4345f4(0x3d5));return;}const _0x4403db=await this[_0x4345f4(0x1f1)]['loadUnit'](_0x24987c,Number(_0x4e81ea),_0x9d49f9);_0x4403db&&_0x4403db instanceof a[_0x4345f4(0x3e2)]&&this['_setupSubUnitSync'](_0x4403db);}async[_0x13f83f(0x3bf)](_0x2e23c6){const _0x23240d=_0x13f83f;await this[_0x23240d(0x2e8)](_0x2e23c6),_0x2e23c6[_0x23240d(0x3cb)][_0x23240d(0x253)](I[_0x23240d(0x170)](this[_0x23240d(0x204)]))[_0x23240d(0x2ec)](_0x10d810=>{const _0x48a765=_0x23240d;_0x10d810&&this[_0x48a765(0x3bc)](_0x10d810);}),this[_0x23240d(0x1e5)][_0x23240d(0x277)][_0x23240d(0x253)](I['takeUntil'](this[_0x23240d(0x204)]))[_0x23240d(0x2ec)](()=>this[_0x23240d(0x2e8)](_0x2e23c6));}['_updateURLWithCurrentState'](_0x4b5f84,_0x576709=!0x1){const _0x4a429e=_0x13f83f,_0x53fe70=this[_0x4a429e(0x1e5)][_0x4a429e(0x171)](_0x4a429e(0x30a));_0x4b5f84[_0x4a429e(0x186)]()!==_0x53fe70&&this['_urlService']['setParam'](_0x4a429e(0x30a),_0x4b5f84[_0x4a429e(0x186)](),_0x576709);}async[_0x13f83f(0x2e8)](_0x782eaa){const _0x6cbf20=_0x13f83f;var _0x443b86;const _0x23b6ce=this[_0x6cbf20(0x1e5)][_0x6cbf20(0x171)](_0x6cbf20(0x30a));if(!_0x23b6ce||!_0x782eaa[_0x6cbf20(0x3fd)](_0x23b6ce)){const _0x39c1eb=_0x782eaa[_0x6cbf20(0x33d)]()[0x0],_0x238fd4=_0x782eaa[_0x6cbf20(0x3fd)](_0x39c1eb);if(!_0x238fd4)return;this['_updateURLWithCurrentState'](_0x238fd4,!0x0),await this[_0x6cbf20(0x184)][_0x6cbf20(0x229)](g[_0x6cbf20(0x3bd)]['id'],{'unitId':_0x782eaa[_0x6cbf20(0x22e)](),'subUnitId':_0x39c1eb});return;}((_0x443b86=_0x782eaa[_0x6cbf20(0x1a5)]())==null?void 0x0:_0x443b86[_0x6cbf20(0x186)]())!==_0x23b6ce&&await this['_commandService'][_0x6cbf20(0x229)](g[_0x6cbf20(0x3bd)]['id'],{'unitId':_0x782eaa[_0x6cbf20(0x22e)](),'subUnitId':_0x23b6ce});}},exports[_0x13f83f(0x2d7)]=ot([j(0x0,pe),j(0x1,a['ILogService']),j(0x2,a[_0x13f83f(0x2f1)]),j(0x3,a['Inject'](u['DataLoaderService'])),j(0x4,a[_0x13f83f(0x1de)](Xe['IRemoteInstanceService']))],exports[_0x13f83f(0x2d7)]);function _0x298e(){const _0x16fe61=['beginPath','redoState','fromEvent','_drawAnchor','color','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','CollaborationDataLoaderController','YUUMI_RATE_OVER_LIMIT','INVALID_ARGUMENT','collab-client.tooltip.reconnect','getRelativeToViewportCoord','selection','_memberService','clearInterval','contains','FormulaExecuteStageType','SessionStatus','stringify','saveTaskMap','pluginName','NodePositionConvertToRectRange','_checkCalculationAvailable','collabStatus.offline','_updateSubUnitFromURLParams','SheetsSelectionsService','PAYMENT_CHANNEL_NOT_SUPPORT','ThemeService','subscribe','_hover','_collabCursorState$','_clearOtherTimers','currentSkeleton$','ICommandService','M0\x200H16V16H0z','COMPLETION_FINISHED','_init','_lastPointer','onPointerMove$','transformMutation','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','getOwnPropertyDescriptor','formula.calculation.started','mapTo','get','EMAIL_HAS_BEEN_BOUND','getRangePointData','_collaborationUIEventService','REDEMPTION_CODE_INACTIVE','m2Prime','toStringTag','onPointerLeave$','ERROR_AGAIN','black','INVITE_CODE_REQUIRED','clearTimeout','font','6056VriNOM','subunit','createInstance','SYNCED','YUUMI_ASYNCIO_CANCELLED','_syncEditingCollabCursorService','IConfigService','/universer-api/license/formula/limit/status','push','isTransformMutationFailure','setStateCache','params','newValue','yellow.400','error','ONLINE','application/json','IURLService','post','ILogService','getCurrent','JOIN_ROOM_FAILED','RxDisposable','_onCursorUpdate','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_toggleOffline','LICENSE_DISTRO_REJECTED','transformStateCache','ITransformService','Error','roomMembers','xlink:href','DOC_RANGE_TYPE','unsubscribe','round','Module','REDEMPTION_INVALID_CODE','_eventUnsubscribe','path','storage','memberID','DependentOn','complete','START_CALCULATION','width','with','_localCacheService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','isFormulaString','subscribeEvent','ALREADY_EXISTS','arc','getUnhiddenWorksheets','triggerDblclick','_collabSessionService','getCurrentRevOfUnit','DocIMEInputManagerService','BehaviorSubject','_backgroundColor','url(#off-line-icon_clip0_910_343)','_disabled','_status$','YUUMI_NO_CUBOID_FOR_QUESTION','BrowserCollaborationSocketService','permission.content','Shape','_transformHistoryAndStateStack','deepClone','use','_toggleOnline','FormulaExecutedStateType','off-line-icon','_scene','getAncestorScale','getMergeData','_context','_range','CanceledError','14959080CoKRRv','undoState','DocSkeletonManagerService','addHandlerCallback','replace','_transformUndoRedoStack','TRANSFORM_CHANGE_OBSERVABLE_TYPE','max','SUCCESS','_unitStatus','doc.mutation.rich-text-editing','delete','IDocClipboardService','ENTITLE_CHAT_LIMIT_EXCEED','toDisposable','_startDocCollabCursor','from','RemoveRowCommandId','RevisionService','unitId','next','useObservable','NOT_FOUND','TEXT_RANGE_LAYER_INDEX','idSuffix','APPLY_PERMISSION_DENIED','_setFormulaLimitStatus','TEXT','APPLY_REJECT','INotificationService','result','_hasFormulaInDirtyRanges','isActive','fillRule','_scheduleClearOtherTimer','_initDependencies','collab-rect-range-','Tooltip','LocaleService','then','saveImage','ENTITLE_DUP_SUBSCRIPTION','_instanceService','CollaborationSocketService','SNAPSHOT_HAS_BEEN_REMOVED','InsertRangeMoveRightCommandId','unitID','filter','handleDeleteRangeMoveLeft','_setupBeforeClosingHandler','fillText','flatMap','onLocalMutation','getViewport','assignAColorForMemberID','all','[CollaborationDataLoaderController]','name','cursorInfo','_docSkeletonManagerService','CollaborationUIEventService','_scheduleHeartbeat','disableLocalCache','HEADER_MENU','removeParam','permission.title','serializeRangeWithSheet','getUndoRedoMutationParamsCache','exhaustSavingTask','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getRenderById','getUnitStatus$','startColumn','distinctUntilChanged','split','_getScale','WebURLService','COLORS','REDEMPTION_CODE_HAS_BEEN_CREATED','session.collaboration-timeout','0\x200\x2016\x2016','_imageIoService','getCollabEntity$','touchDependencies','registerRenderModule','onMouseMove','_anchorDot','children','type','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','selections','_showGuardMessage','univer-flex\x20univer-items-center','imageSourceType','size','defineProperty','session.will-retry','SetFormulaCalculationNotificationMutation','_httpService','REDEMPTION_USER_NOT_ELIGIBLE','getformulaLimitStatusUrl','_updateURLWithCurrentState','SetWorksheetActivateCommand','SheetCollabCursorShape','_setupSubUnitSync','getCurrentSelections','VIEW_MAIN','getCollabCursors$','useRef','some','colorChannel1','collabCursorState$','APPLY_REVISION_CONFILICT','UPDATE_CURSOR','OFFLINE','INTERNAL_ERROR','activeSheet$','5873JYnZuP','_cursorShapes','addObjects','clipPath','[RemoteUniscriptService]:\x20no\x20focused\x20unit','INVITE_CODE_HAS_BEEN_UES','_getMergeRange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','text','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','MOBILE_VERIFY_CODE_MISMATCH','onCommandExecuted','onTransformChange$','ACTIVE_UNIT_EVENT_CHANNEL','_drawTextRange','docStateChange$','DesktopCollaborationStatusDisplayController','entityInit$','APPLY_DUPLICATED','/universer-api/license/formula/limit/done','_createSocketURL','_cursorInfo$','Workbook','ranges','Unknown\x20user','RECT','debug','_saveTaskMap','_registerDependencies','YUUMI_UNABLE_LOAD_URL','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','1em','setTimeout','_refRangeService','Success','origin','forEach','3962358kZNywu','UniverInstanceType','_hideTimer','handleDeleteRangeMoveUp','Inject','_registerRenderDependencies','key','_removeCollabCursors','uni.network.url-service','?taskId=','_cachedData','DEFAULT_WS_SESSION_TICKET_URL','getSheetBySheetId','sheetID','isFormulaId','collabStatus.synced','handleInsertRangeMoveDown','displayName','setActiveRange','parseInt','_initEntityListener','useDependency','CollaborationStatus','MemberService','_themeService','stageInfo','_entityInit$','getDocRanges','_initStatusComponent','CURRENT_STATUS_CANNOT_OPERATE','min','limitInfo','getColorFromTheme','1119666qzdnTG','CollaborationController','disposeUnit','PY_RUNTIME_SCRIPT_ERROR','_session','setInterval','UniverIcon','endColumn','USER_IS_ANONYMOUS','LOCAL_CACHE_INTERVAL_KEY','row','_configService','Vector2','_name','OTHER_CLIENTS_EDITING','getUniverSheetInstance','getLocalCacheKey','_getFormulaLimitStatus','data','registerRefRange','_assignedColors','setItem','takeUntil','getParam','Warning','CLOSE_ROOM','tag','moveTo','ILocalCacheService','_docStateChangeManagerService','status$','_roomMembers$','currentColor','_updateLocalCursor','UniverCollaborationClientUIPlugin','labelPosition','IUniverInstanceService','session.connection-failed','jsxs','getMemberID','_injector','unload','_commandService','sessionTicket','getSheetId','now','DocSelectionManagerService','PENDING','_unitOnClients','SNAPSHOT_INVALID_SNAPSHOT','RichTextEditingMutation','_cursor','CollaborationUIEventId','collaboration.single-unit.warning','_shapes','USER_NOT_FOUND','transform','shift','_startSheetCollabCursor','_onCursorDelete','CONFLICT','addObject','startRow','show','string','_messageService','DeleteRangeMoveLeftCommandId','runOnServer','purple.300','4834404YlGpHO','CommandType','IImageIoService','blue.400','_pollingInterval','white','getActiveSheet','BuiltInUIPart','DocCollaborationEntity','useCallback','RemoteUniscriptService','_hovered','AWAITING_WITH_PENDING','merge','getTypeOfUnitDisposed$','_docTransformSelectionsService','debounce','_render','_initEvent','_handleHover','makeDirty','_collabCursorController','IRenderManagerService','cursorInfo$','RefRangeService','mergeOverrideWithDependencies','_lastResponseTimestamp','getActiveRange','_removeClearOtherTimer','m1Prime','univerjs-icon\x20univerjs-icon-','_logService','Failed','setConfig','currentTheme$','_getSheetObject','FETCH_MISS','_applyCommand','getFocusedUnit','handleInsertRow','_doCreateSocket','isEditing','getCellMatrix','asObservable','setAlpha','substring','_notificationService','on-line-icon_clip0_910_349','REDEMPTION_CODE_FULLY_REDEEMED','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','reconnect','getMember','symbol','unshift','_colorIndex','invokeId','onPointerEnter$','collab-text-range-','getTypeOfUnitAdded$','_anchor','lineTo','_initCommandInterceptor','replaceState','Optional','getStateCache','INVALID_INVITE_CODE','RemoveColCommandId','RegularPolygon','href','registerBeforeClose','_urlService','jsx','add','OnLineIcon','addClipboardHook','url(#on-line-icon_clip0_910_349)','IMessageService','_document','rgba(255,\x20255,\x20255,\x200.01)','EffectRefRangId','_saveCache','_transformPreviousActiveRange','_dataLoaderService','MOBILE_HAS_BEEN_BOUND','defs','functionsExecutedState','forwardRef','TOO_MANY_REQUESTS','findNodePositionByCharIndex','evenodd','enableLocalCache','_handleLeaveEvent','IUIPartsService','4siErNS','UnitStatus','fillStyle','getUnit','combineLatest','searchParams','SOCKET_FAILED_RETRY','1948743aEDUSy','dispose$','div','whenReady','setShapeProps','dispose','clsx','eventID','set','ColorKit','handleMoveRange','_online','AUTHORIZE_CODE_ILLEGAL','_heartbeatTimer','Rect','_maxFormulaLimit','NOT_COLLAB','switchMap','WECHAT_HAS_BEEN_BOUND','...','disposeWithMe','UNAUTHENTICATED','_drawRectRange','EMAIL_VERIFY_CODE_MISMATCH','_refreshCollabCursors','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_getSessionTicket','Injector','transformRemoteChangeset','setParam','getColor','history','fromEventSubject','UNIVER_SHEET','ISocketService','_initStatusListener','SetDocZoomRatioOperation','_id','executeCommand','createElement','measureText','trim','collabStatus.conflict','getUnitId','setUndoRedoMutationParamsCache','sheetId','_docTransformStateCacheService','SOCKET_FAILED','APPLY_NON_SEQUENTIAL_REVISION','mutations','_updateCollabCursors','YUUMI_ALL_TABLES_IS_INVALID','generateRandomId','event$','body','_releaseCalculationLimit','_taskIds','_transformService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_sheetSkeletonManagerService','CollaborationEvent','DeleteRangeMoveUpCommandId','onStarting','_draw','registerDependencies','/universer-api/license/formula/limit/start','_localeService','createSocket','_scheduleSaving','_renderManagerService','UNRECOGNIZED','hide','attrs','throttleTime','random','_beforeCloseService','_clearPolling','none','InsertRowCommandId','_entities','pipe','_onRefRangeChange','_initResize','_labelPosition','init','wsSessionTicketUrl','code','values','handleIRemoveRow','location','_cursors','getOffsetConfig','_getSaveTimeout','Tools','_color','_docTransformIMECacheService','OTHER_CLIENT_EDITING','LICENSE_IMPORT_SIZE_EXCEEDED','_handleEvent','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','NO_OTHER_CLIENTS_EDITING','_selfUnitIDs','replaceDocRanges','DocStateChangeManagerService','runId','fill','syncEditingCollabCursor','getValue','_send','collaboration.closeRoom','startFormulaLimitUrl','YUUMI_SUBSCRIPTION_NOT_FOUND','debounceTime','entries','SetFormulaCalculationStartMutation','toRgbString','urlChange$','LICENSE_MAX_UNITS_EXCEEDED','has','AWAITING','_ensureSubject','beforeCommandExecuted','find','528160BKkpeB','FromArray','getCoordByCell','PERMISSION_DENIED','current','INVITE_CODE_ALREADY_BOUND','_handleHeartbeatEvent','http://www.w3.org/2000/svg','UNDEFINED','isArray','InsertColCommandId','_docClipboardService','send','_localStorageService','endRow','handleIRemoveCol','getVpScrollXYInfoByPosToVp','ENSURE_SNAPSHOT_EXECUTION','_revisionService','CollaborationSessionService','_univerInstanceService','drawWith','off-line-icon_clip0_910_343','currentUsage','url(#$1','height','saveOfflineData','YUUMI_CONNECTOR_URL_NOT_FOUND','textRanges','hovered','UNIVER_DOC','_initCommandExecutedListener','ISnapshotServerService','LOGIN_FAILED','_textBubble','HTTPService','runRefRangeMutations','toString','collabStatus.notCollab','includes','column','OffLineIcon','_checkAndWaitForCalculationPermission','getSheetObject','Disposable','closePath','SUBMIT_CHANGESET_TIMEOUT','11SuUArK','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','restore','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','USER_NOT_INVITED_CODE','transformIMECache','YUUMI_URL_COL_OUT_OF_RANGE','getConfig','save','startsWith','pushState','MessageType','REDEMPTION_CODE_NOT_STARTED','1SmQutx','InsertRangeMoveDownCommandId','getItem','loadOfflineData','_getAnchorBounding','requireSession','_colorAssignService','transformSelections','handleInsertRangeMoveRight','length','_uiPartsService','totalFormulasToCalculate','svg','DisposableCollection','sessionStatus$','_currentUsage','_collaborationController','map','shareReplay','MoveRangeCommandId','ticket','_config'];_0x298e=function(){return _0x16fe61;};return _0x298e();}var at=Object['getOwnPropertyDescriptor'],ct=(_0x33c9d1,_0x11fc12,_0x4310f0,_0x5e4fc7)=>{const _0x49d93b=_0x13f83f;for(var _0x5274e5=_0x5e4fc7>0x1?void 0x0:_0x5e4fc7?at(_0x11fc12,_0x4310f0):_0x11fc12,_0x1ff23b=_0x33c9d1[_0x49d93b(0x2c4)]-0x1,_0x462e40;_0x1ff23b>=0x0;_0x1ff23b--)(_0x462e40=_0x33c9d1[_0x1ff23b])&&(_0x5274e5=_0x462e40(_0x5274e5)||_0x5274e5);return _0x5274e5;},Re=(_0x2b55ab,_0x2d718e)=>(_0x3398d0,_0x3165be)=>_0x2d718e(_0x3398d0,_0x3165be,_0x2b55ab);let de=class extends a[_0x13f83f(0x31f)]{constructor(_0x58cc07,_0x5a418f){const _0x5e9351=_0x13f83f;super(),this[_0x5e9351(0x289)]=_0x58cc07,this[_0x5e9351(0x3a8)]=_0x5a418f,this['_init']();}[_0x13f83f(0x2f4)](){const _0x18d3ce=_0x13f83f,_0x3bdd88=this;this[_0x18d3ce(0x217)](this[_0x18d3ce(0x289)][_0x18d3ce(0x1e9)]({'onBeforePasteImage':async _0x336161=>{const _0x4559af=_0x18d3ce,_0x12fd05=await _0x3bdd88[_0x4559af(0x3a8)][_0x4559af(0x37f)](_0x336161);return _0x12fd05?{'source':_0x12fd05['source'],'imageSourceType':_0x12fd05[_0x4559af(0x3b4)]}:null;}}));}};de=ct([Re(0x0,p[_0x13f83f(0x363)]),Re(0x1,Ke[_0x13f83f(0x1a1)])],de);const be=[_0x13f83f(0x19e),'jiqing.500','green.600','red.300',_0x13f83f(0x1a2),_0x13f83f(0x316)];class Te extends a[_0x13f83f(0x2aa)]{constructor(){const _0x21028a=_0x13f83f;super(...arguments),_(this,_0x21028a(0x16e),new Map()),_(this,_0x21028a(0x1d5),0x0);}['assignAColorForMemberID'](_0x2808ff){const _0x2806ce=_0x13f83f;if(this[_0x2806ce(0x16e)][_0x2806ce(0x279)](_0x2808ff))return this[_0x2806ce(0x16e)][_0x2806ce(0x2fc)](_0x2808ff);const _0x3ade11=be[this[_0x2806ce(0x1d5)]];return this['_colorIndex']=(this[_0x2806ce(0x1d5)]+0x1)%be['length'],this[_0x2806ce(0x16e)][_0x2806ce(0x20b)](_0x2808ff,_0x3ade11),_0x3ade11;}}function xe(_0x1e8c4f){const _0x7c8819=_0x13f83f;let _0x133446='';for(const _0x19ce21 of _0x1e8c4f){const {startOffset:_0x3f2ee5,endOffset:_0x5f080c,isActive:_0x4b688f,rangeType:_0x1e9fc3,segmentId:_0x3a8ca8,segmentPage:_0x3227ef}=_0x19ce21;_0x133446[_0x7c8819(0x2c4)]&&(_0x133446+=','),_0x133446+=_0x3f2ee5+':'+_0x5f080c+':'+(_0x4b688f?'1':'0')+':'+_0x1e9fc3+':'+_0x3a8ca8+':'+_0x3227ef;}return _0x133446;}function lt(_0x419961){const _0x15a58b=_0x13f83f,_0x506b9=_0x419961['split'](','),_0x2be4f4=[];for(const _0x3995f5 of _0x506b9){const [_0x248668,_0x22a13c,_0x4c1d93,_0x18c989,_0x1227f3,_0x2c363e]=_0x3995f5[_0x15a58b(0x3a1)](':');_0x2be4f4[_0x15a58b(0x311)]({'startOffset':Number(_0x248668),'endOffset':Number(_0x22a13c),'collapsed':_0x248668===_0x22a13c,'isActive':_0x4c1d93==='1','rangeType':_0x18c989===a[_0x15a58b(0x329)][_0x15a58b(0x372)]?a[_0x15a58b(0x329)][_0x15a58b(0x372)]:a[_0x15a58b(0x329)][_0x15a58b(0x3e5)],'segmentId':typeof _0x1227f3=='string'?String(_0x1227f3):'','segmentPage':Number(_0x2c363e!=null?_0x2c363e:-0x1)});}return _0x2be4f4[_0x15a58b(0x3c4)](_0x16f816=>_0x16f816[_0x15a58b(0x377)])||(_0x2be4f4[0x0]['isActive']=!0x0),_0x2be4f4;}class Oe extends a[_0x13f83f(0x31f)]{constructor(){const _0x4c39ad=_0x13f83f;super(...arguments),_(this,_0x4c39ad(0x2ee),new I[(_0x4c39ad(0x342))](null)),_(this,_0x4c39ad(0x3c6),this[_0x4c39ad(0x2ee)][_0x4c39ad(0x1ca)]());}['syncEditingCollabCursor'](_0x34669b){const _0x8b4404=_0x13f83f,{unitID:_0x5ab8db,memberID:_0x4d50de,textRanges:_0x40d8e9}=_0x34669b,_0x53682a=xe(_0x40d8e9);if(_0x53682a==='')return;const _0x36c8b6={'unitID':_0x5ab8db,'memberID':_0x4d50de,'selection':_0x53682a};this[_0x8b4404(0x2ee)][_0x8b4404(0x36b)](_0x36c8b6);}}var _t=Object[_0x13f83f(0x2f9)],ht=(_0x46edf7,_0xe369b8,_0x3e7218,_0x2c41d3)=>{for(var _0x5151a4=_0x2c41d3>0x1?void 0x0:_0x2c41d3?_t(_0xe369b8,_0x3e7218):_0xe369b8,_0x71ce6f=_0x46edf7['length']-0x1,_0x355398;_0x71ce6f>=0x0;_0x71ce6f--)(_0x355398=_0x46edf7[_0x71ce6f])&&(_0x5151a4=_0x355398(_0x5151a4)||_0x5151a4);return _0x5151a4;},U=(_0x52ec27,_0x28a70d)=>(_0x2bc0a2,_0x503124)=>_0x28a70d(_0x2bc0a2,_0x503124,_0x52ec27);const ut=0x12c,It=0x64;let fe=class extends a[_0x13f83f(0x31f)]{constructor(_0x29a2ea,_0x280f8d,_0x47b007,_0x32c8a6,_0x5eb599,_0x4a258e,_0xc81e78,_0x5bc550,_0x774f36){const _0x57431f=_0x13f83f;super(),_(this,_0x57431f(0x20e),!0x1),_(this,_0x57431f(0x2f4),!0x1),_(this,_0x57431f(0x3e1),new I[(_0x57431f(0x342))](new Map())),_(this,_0x57431f(0x1b6),this['_cursorInfo$']['asObservable']()),_(this,'_roomMembers$',new I[(_0x57431f(0x342))]([])),_(this,'roomMembers$',this[_0x57431f(0x179)]['pipe'](I[_0x57431f(0x273)](ut))),_(this,_0x57431f(0x17b),a[_0x57431f(0x1af)](_0x9e287c=>{const _0xe91333=_0x57431f,_0x3a097d={'eventID':v[_0xe91333(0x23f)][_0xe91333(0x3c8)],'data':{'unitID':this[_0xe91333(0x385)],'memberID':this[_0xe91333(0x416)][_0xe91333(0x181)](),'selection':xe(_0x9e287c)}};this[_0xe91333(0x416)][_0xe91333(0x28a)](_0x3a097d,this[_0xe91333(0x385)]);},It)),(this[_0x57431f(0x385)]=_0x29a2ea,this[_0x57431f(0x416)]=_0x280f8d,this[_0x57431f(0x182)]=_0x47b007,this[_0x57431f(0x2c1)]=_0x32c8a6,this[_0x57431f(0x2dd)]=_0x5eb599,this[_0x57431f(0x30e)]=_0x4a258e,this[_0x57431f(0x23c)]=_0xc81e78,this[_0x57431f(0x292)]=_0x5bc550,this['_commandService']=_0x774f36);}get[_0x13f83f(0x391)](){const _0x1b7ac1=_0x13f83f;return this[_0x1b7ac1(0x3e1)][_0x1b7ac1(0x26e)]();}get[_0x13f83f(0x327)](){const _0x558380=_0x13f83f;return this[_0x558380(0x179)][_0x558380(0x26e)]();}['dispose'](){const _0x2479bb=_0x13f83f;super[_0x2479bb(0x208)](),this[_0x2479bb(0x3e1)][_0x2479bb(0x36b)](new Map()),this[_0x2479bb(0x3e1)][_0x2479bb(0x333)](),this['_roomMembers$'][_0x2479bb(0x36b)]([]),this[_0x2479bb(0x179)]['complete']();}[_0x13f83f(0x257)](){const _0x3425d3=_0x13f83f;this[_0x3425d3(0x2f4)]||(this[_0x3425d3(0x2f4)]=!0x0,this[_0x3425d3(0x416)][_0x3425d3(0x2c9)]['pipe'](I[_0x3425d3(0x170)](this[_0x3425d3(0x204)]))[_0x3425d3(0x2ec)](_0x37146c=>{const _0x146b43=_0x3425d3;_0x37146c===u[_0x146b43(0x2e1)][_0x146b43(0x318)]?this[_0x146b43(0x34e)]():this['_toggleOffline']();}),this[_0x3425d3(0x416)]['event$'][_0x3425d3(0x253)](I[_0x3425d3(0x170)](this[_0x3425d3(0x204)]))[_0x3425d3(0x2ec)](_0x79fd41=>{const _0x1ec1d7=_0x3425d3,_0x59e854=_0x79fd41['eventID'];_0x59e854===v[_0x1ec1d7(0x23f)][_0x1ec1d7(0x3c8)]&&this[_0x1ec1d7(0x320)](_0x79fd41),_0x59e854===v[_0x1ec1d7(0x23f)]['USERS_LEAVE']&&this[_0x1ec1d7(0x195)](_0x79fd41);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x500df1=>{const _0x9f2ae2=_0x3425d3,_0xc2c2a3=_0x500df1[_0x9f2ae2(0x314)];_0xc2c2a3!=null&&this['_online']&&_0x500df1['id']===W['SetTextSelectionsOperation']['id']&&_0xc2c2a3[_0x9f2ae2(0x36a)]===this[_0x9f2ae2(0x385)]&&_0xc2c2a3[_0x9f2ae2(0x1c8)]===!0x1&&_0xc2c2a3['ranges'][_0x9f2ae2(0x2c4)]>0x0&&this[_0x9f2ae2(0x17b)](_0xc2c2a3[_0x9f2ae2(0x3e3)]);})),this[_0x3425d3(0x30e)]['collabCursorState$'][_0x3425d3(0x253)](I[_0x3425d3(0x170)](this[_0x3425d3(0x204)]))[_0x3425d3(0x2ec)](_0x16aa7d=>{const _0xa71e36=_0x3425d3;if((_0x16aa7d==null?void 0x0:_0x16aa7d[_0xa71e36(0x385)])!==this[_0xa71e36(0x385)])return;const _0x1d3ab4={'eventID':v[_0xa71e36(0x23f)][_0xa71e36(0x3c8)],'data':_0x16aa7d};this[_0xa71e36(0x320)](_0x1d3ab4);}),this[_0x3425d3(0x217)](this[_0x3425d3(0x184)]['onCommandExecuted'](_0x4bf0dc=>{const _0x30bbcc=_0x3425d3;if(_0x4bf0dc[_0x30bbcc(0x314)]==null)return;const _0x524c8f=_0x4bf0dc[_0x30bbcc(0x314)];if(_0x4bf0dc['id']!==W[_0x30bbcc(0x18c)]['id']||_0x524c8f['unitId']!==this[_0x30bbcc(0x385)])return;const _0x4bbc91={'id':_0x30bbcc(0x361),'params':_0x524c8f},_0x1f069f=this[_0x30bbcc(0x391)];for(const [_0x58532e,_0x4b86a8]of _0x1f069f){const _0x3650d6={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x30bbcc(0x385)],'actions':null,'textRanges':_0x4b86a8[_0x30bbcc(0x3e3)]}},_0x68492=this[_0x30bbcc(0x23c)][_0x30bbcc(0x2f7)](_0x4bbc91,_0x3650d6,!0x1);if(v['isTransformMutationFailure'](_0x68492))throw _0x68492['error'];_0x1f069f['set'](_0x58532e,{..._0x4b86a8,'ranges':_0x68492['m2Prime'][_0x30bbcc(0x314)][_0x30bbcc(0x29a)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x1f069f);});})));}['_onCursorUpdate'](_0x189db4){const _0x5baa73=_0x13f83f;var _0x23ff8f,_0x44dc69;const {memberID:_0x135d80,selection:_0x17bcd7}=_0x189db4[_0x5baa73(0x16c)],_0x37d07d=lt(_0x17bcd7),_0x342521=(_0x44dc69=(_0x23ff8f=this[_0x5baa73(0x2dd)][_0x5baa73(0x1d2)](this[_0x5baa73(0x385)],_0x135d80))==null?void 0x0:_0x23ff8f[_0x5baa73(0x390)])!=null?_0x44dc69:_0x5baa73(0x3e4),_0x3a54f8={'color':this['_colorAssignService'][_0x5baa73(0x38d)](_0x135d80),'name':_0x342521,'ranges':_0x37d07d},_0x3b7815=this[_0x5baa73(0x391)];_0x3b7815['set'](_0x135d80,_0x3a54f8),this['_cursorInfo$'][_0x5baa73(0x36b)](_0x3b7815);}[_0x13f83f(0x195)](_0x3002bd){const _0x486b83=_0x13f83f,{memberID:_0x332536}=_0x3002bd[_0x486b83(0x16c)],_0x47ff3e=this['cursorInfo'];_0x47ff3e[_0x486b83(0x362)](_0x332536),this[_0x486b83(0x3e1)]['next'](_0x47ff3e);}[_0x13f83f(0x34e)](){const _0x3229e1=_0x13f83f;var _0x467d39;if(this[_0x3229e1(0x20e)]=!0x0,((_0x467d39=this[_0x3229e1(0x292)][_0x3229e1(0x1c5)]())==null?void 0x0:_0x467d39['getUnitId']())!==this[_0x3229e1(0x385)])return;const _0x32d1cc=this[_0x3229e1(0x182)]['get'](W[_0x3229e1(0x188)])['getDocRanges']();Array['isArray'](_0x32d1cc)&&_0x32d1cc[_0x3229e1(0x2c4)]>0x0&&this[_0x3229e1(0x17b)](_0x32d1cc);}[_0x13f83f(0x322)](){this['_online']=!0x1;}};fe=ht([U(0x2,a[_0x13f83f(0x3f5)](a['Injector'])),U(0x3,a[_0x13f83f(0x3f5)](Te)),U(0x4,a['Inject'](u[_0x13f83f(0x408)])),U(0x5,a[_0x13f83f(0x3f5)](Oe)),U(0x6,v[_0x13f83f(0x325)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x13f83f(0x2f1)])],fe);var St=Object['getOwnPropertyDescriptor'],dt=(_0x591a78,_0x71ed8f,_0xec5382,_0x130b6b)=>{const _0x1e4538=_0x13f83f;for(var _0x5691a3=_0x130b6b>0x1?void 0x0:_0x130b6b?St(_0x71ed8f,_0xec5382):_0x71ed8f,_0x540f53=_0x591a78[_0x1e4538(0x2c4)]-0x1,_0x28036c;_0x540f53>=0x0;_0x540f53--)(_0x28036c=_0x591a78[_0x540f53])&&(_0x5691a3=_0x28036c(_0x5691a3)||_0x5691a3);return _0x5691a3;},w=(_0x55b1bc,_0x14404d)=>(_0x25ecaa,_0x286ee6)=>_0x14404d(_0x25ecaa,_0x286ee6,_0x55b1bc);const ft=0x12c,mt=0x64,gt=()=>{let _0x58b16e=[],_0x12bcd8=!0x1;return _0x35d94f=>{const _0x535707=_0x54f0;_0x58b16e[_0x535707(0x311)](_0x35d94f),_0x12bcd8||(_0x12bcd8=!0x0,setTimeout(()=>{const _0x14e7ba=_0x535707;_0x58b16e[_0x14e7ba(0x3f0)](_0x26ac6d=>_0x26ac6d()),_0x58b16e=[],_0x12bcd8=!0x1;}));};};let me=class extends a[_0x13f83f(0x31f)]{constructor(_0x4eee3b,_0x120694,_0x146534,_0x56647c,_0x2da02c,_0x332890,_0x32d772,_0x4a7b2b){const _0x4d68f7=_0x13f83f;super(),_(this,'_online',!0x1),_(this,_0x4d68f7(0x2f4),!0x1),_(this,_0x4d68f7(0x3e1),new I[(_0x4d68f7(0x342))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x4d68f7(0x1ca)]()),_(this,_0x4d68f7(0x179),new I[(_0x4d68f7(0x342))]([])),_(this,'roomMembers$',this['_roomMembers$'][_0x4d68f7(0x253)](I[_0x4d68f7(0x273)](ft))),_(this,_0x4d68f7(0x17b),a['debounce']((_0x167205,_0x55540a)=>{const _0x48a083=_0x4d68f7,_0x33054d={'eventID':v['CollaborationEvent'][_0x48a083(0x3c8)],'data':{'unitID':this['unitID'],'memberID':this[_0x48a083(0x416)][_0x48a083(0x181)](),'selection':x[_0x48a083(0x399)](_0x167205,_0x55540a['range'])}};this[_0x48a083(0x416)][_0x48a083(0x28a)](_0x33054d,this['unitID']);},mt)),(this[_0x4d68f7(0x385)]=_0x4eee3b,this[_0x4d68f7(0x416)]=_0x120694,this[_0x4d68f7(0x182)]=_0x146534,this[_0x4d68f7(0x2c1)]=_0x56647c,this['_memberService']=_0x2da02c,this[_0x4d68f7(0x292)]=_0x332890,this['_commandService']=_0x32d772,this['_refRangeService']=_0x4a7b2b);}get[_0x13f83f(0x391)](){const _0x8d6644=_0x13f83f;return this[_0x8d6644(0x3e1)]['getValue']();}get['roomMembers'](){const _0x322903=_0x13f83f;return this[_0x322903(0x179)][_0x322903(0x26e)]();}[_0x13f83f(0x208)](){const _0x3cdd4b=_0x13f83f;super['dispose'](),this['_cursorInfo$'][_0x3cdd4b(0x36b)](new Map()),this[_0x3cdd4b(0x3e1)][_0x3cdd4b(0x333)](),this['_roomMembers$'][_0x3cdd4b(0x36b)]([]),this[_0x3cdd4b(0x179)][_0x3cdd4b(0x333)]();}[_0x13f83f(0x257)](){const _0x38d366=_0x13f83f;this[_0x38d366(0x2f4)]||(this[_0x38d366(0x2f4)]=!0x0,this[_0x38d366(0x416)][_0x38d366(0x2c9)][_0x38d366(0x253)](I['takeUntil'](this['dispose$']))[_0x38d366(0x2ec)](_0x34d978=>{const _0x3ed800=_0x38d366;_0x34d978===u['SessionStatus']['ONLINE']?this[_0x3ed800(0x34e)]():this[_0x3ed800(0x322)]();}),this[_0x38d366(0x416)][_0x38d366(0x238)][_0x38d366(0x253)](I['takeUntil'](this[_0x38d366(0x204)]))[_0x38d366(0x2ec)](_0x30de74=>{const _0x19ca45=_0x38d366,_0x5c67ad=_0x30de74[_0x19ca45(0x20a)];_0x5c67ad===v['CollaborationEvent'][_0x19ca45(0x3c8)]&&this['_onCursorUpdate'](_0x30de74),_0x5c67ad===v[_0x19ca45(0x23f)]['USERS_LEAVE']&&this[_0x19ca45(0x195)](_0x30de74);}),this[_0x38d366(0x254)](),this[_0x38d366(0x217)](this[_0x38d366(0x184)][_0x38d366(0x3d7)](_0x4cddfb=>{const _0x1d50ce=_0x38d366;if(this['_online']&&_0x4cddfb['id']===g['SetSelectionsOperation']['id']&&_0x4cddfb['params'][_0x1d50ce(0x36a)]===this[_0x1d50ce(0x385)]){const _0x31c027=_0x4cddfb['params'];this[_0x1d50ce(0x17b)](_0x31c027['subUnitId'],_0x31c027[_0x1d50ce(0x3b1)][0x0]);}})));}[_0x13f83f(0x320)](_0x21d47c){const _0x4d066f=_0x13f83f;var _0x2797b5,_0x5700cb;const {memberID:_0x6e346b,selection:_0x1ce4be}=_0x21d47c['data'],{sheetName:_0x17450c,range:_0x3064e7}=x['deserializeRangeWithSheet'](_0x1ce4be),_0x4fa89d={'name':(_0x5700cb=(_0x2797b5=this[_0x4d066f(0x2dd)][_0x4d066f(0x1d2)](this[_0x4d066f(0x385)],_0x6e346b))==null?void 0x0:_0x2797b5[_0x4d066f(0x390)])!=null?_0x5700cb:_0x4d066f(0x3e4),'range':this[_0x4d066f(0x3d2)](_0x17450c,_0x3064e7),'sheetID':_0x17450c,'color':this[_0x4d066f(0x2c1)][_0x4d066f(0x38d)](_0x6e346b),'selection':_0x1ce4be},_0x58a183=this[_0x4d066f(0x391)];_0x58a183[_0x4d066f(0x20b)](_0x6e346b,_0x4fa89d),this['_cursorInfo$'][_0x4d066f(0x36b)](_0x58a183);}['_onCursorDelete'](_0x27be01){const _0x169050=_0x13f83f,{memberID:_0xc10416}=_0x27be01[_0x169050(0x16c)],_0x539dc3=this[_0x169050(0x391)];_0x539dc3[_0x169050(0x362)](_0xc10416),this[_0x169050(0x3e1)][_0x169050(0x36b)](_0x539dc3);}[_0x13f83f(0x3d2)](_0x378e45,_0x42eef7){const _0x28d68f=_0x13f83f;var _0x14e5cd,_0x4aba3b;const _0x50fe67=(_0x4aba3b=(_0x14e5cd=this[_0x28d68f(0x292)][_0x28d68f(0x421)](this[_0x28d68f(0x385)]))==null?void 0x0:_0x14e5cd['getSheetBySheetId'](_0x378e45))==null?void 0x0:_0x4aba3b[_0x28d68f(0x353)]();return(_0x50fe67==null?void 0x0:_0x50fe67[_0x28d68f(0x27d)](_0x47ba82=>a['Rectangle'][_0x28d68f(0x2df)](_0x47ba82,_0x42eef7)))||_0x42eef7;}['_onRefRangeChange'](){const _0x2c2efe=_0x13f83f,_0x5ea769=new a[(_0x2c2efe(0x2c8))](),_0x4344fb=gt(),_0x259339=()=>{const _0x51c24c=_0x2c2efe;_0x5ea769[_0x51c24c(0x208)]();const _0x16e1c4=(_0x5828cb,_0x3e9f7e,_0x580b08,_0x40c0fc)=>{const _0x2315ac=_0x51c24c;let _0x10db0a=[];switch(_0x5828cb['id']){case g['EffectRefRangId'][_0x2315ac(0x19c)]:{_0x10db0a=g[_0x2315ac(0x387)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x240)]:{_0x10db0a=g[_0x2315ac(0x3f4)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x288)]:{_0x10db0a=g['handleInsertCol'](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x2bc)]:{_0x10db0a=g[_0x2315ac(0x401)](_0x5828cb,_0x40c0fc);break;}case g['EffectRefRangId'][_0x2315ac(0x384)]:{_0x10db0a=g[_0x2315ac(0x2c3)](_0x5828cb,_0x40c0fc);break;}case g['EffectRefRangId'][_0x2315ac(0x251)]:{_0x10db0a=g[_0x2315ac(0x1c6)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x2ce)]:{_0x10db0a=g[_0x2315ac(0x20d)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x1e1)]:{_0x10db0a=g[_0x2315ac(0x28d)](_0x5828cb,_0x40c0fc);break;}case g[_0x2315ac(0x1ee)][_0x2315ac(0x368)]:{_0x10db0a=g[_0x2315ac(0x25b)](_0x5828cb,_0x40c0fc);break;}}const _0x1098d9=g[_0x2315ac(0x2a2)](_0x10db0a,_0x40c0fc),_0x54b632=this[_0x2315ac(0x391)][_0x2315ac(0x2fc)](_0x3e9f7e);if(_0x54b632&&_0x1098d9){const _0x5ab929={..._0x54b632,'range':_0x1098d9};this[_0x2315ac(0x391)][_0x2315ac(0x20b)](_0x3e9f7e,_0x5ab929),_0x4344fb(()=>{const _0x5832d6=_0x2315ac,_0x46213b=this['_refRangeService']['registerRefRange'](_0x1098d9,_0x5cb040=>(_0x46213b['dispose'](),_0x16e1c4(_0x5cb040,_0x3e9f7e,_0x580b08,_0x1098d9)));_0x5ea769[_0x5832d6(0x1e7)](_0x46213b);});}return{'redos':[],'undos':[]};};this[_0x51c24c(0x391)]['forEach']((_0x265d0b,_0x5d87ef)=>{const _0x3c5e4b=_0x51c24c,{range:_0xe2cd7f,sheetID:_0x3d74ab}=_0x265d0b,_0x1f3707=this[_0x3c5e4b(0x3ed)][_0x3c5e4b(0x16d)](_0xe2cd7f,_0x1e8ec0=>(_0x1f3707[_0x3c5e4b(0x208)](),_0x16e1c4(_0x1e8ec0,_0x5d87ef,_0x3d74ab,_0xe2cd7f)));_0x5ea769[_0x3c5e4b(0x1e7)](_0x1f3707);});};this[_0x2c2efe(0x217)](a[_0x2c2efe(0x365)](this[_0x2c2efe(0x3e1)][_0x2c2efe(0x2ec)](()=>{_0x259339();})));}[_0x13f83f(0x34e)](){const _0xdaa3f8=_0x13f83f;var _0x476ca4,_0x21d7fb;if(this['_online']=!0x0,((_0x476ca4=this[_0xdaa3f8(0x292)][_0xdaa3f8(0x1c5)]())==null?void 0x0:_0x476ca4[_0xdaa3f8(0x22e)]())!==this[_0xdaa3f8(0x385)])return;const _0x5b9730=(_0x21d7fb=this[_0xdaa3f8(0x182)]['get'](g[_0xdaa3f8(0x2e9)])[_0xdaa3f8(0x3c0)]())==null?void 0x0:_0x21d7fb[0x0],_0x3001c3=this[_0xdaa3f8(0x292)]['getCurrentUnitForType'](a['UniverInstanceType']['UNIVER_SHEET'])[_0xdaa3f8(0x1a5)]();_0x5b9730&&_0x3001c3&&this[_0xdaa3f8(0x17b)](_0x3001c3[_0xdaa3f8(0x186)](),_0x5b9730);}[_0x13f83f(0x322)](){const _0x15b53d=_0x13f83f;this[_0x15b53d(0x20e)]=!0x1;}};me=dt([w(0x2,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x21e)])),w(0x3,a[_0x13f83f(0x3f5)](Te)),w(0x4,a['Inject'](u[_0x13f83f(0x408)])),w(0x5,a[_0x13f83f(0x17e)]),w(0x6,a[_0x13f83f(0x2f1)]),w(0x7,a[_0x13f83f(0x3f5)](g[_0x13f83f(0x1b7)]))],me);var vt=Object['getOwnPropertyDescriptor'],Et=(_0x336fb8,_0x55bfdd,_0xbc969a,_0x4c23f0)=>{const _0x5f247f=_0x13f83f;for(var _0x4a048a=_0x4c23f0>0x1?void 0x0:_0x4c23f0?vt(_0x55bfdd,_0xbc969a):_0x55bfdd,_0x43836e=_0x336fb8[_0x5f247f(0x2c4)]-0x1,_0x103250;_0x43836e>=0x0;_0x43836e--)(_0x103250=_0x336fb8[_0x43836e])&&(_0x4a048a=_0x103250(_0x4a048a)||_0x4a048a);return _0x4a048a;},oe=(_0x235a10,_0x3a2613)=>(_0x11c529,_0xa514b7)=>_0x3a2613(_0x11c529,_0xa514b7,_0x235a10);let B=class extends a[_0x13f83f(0x31f)]{constructor(_0x493ea9,_0x56b228,_0x402723){const _0x4111fd=_0x13f83f;super(),_(this,_0x4111fd(0x252),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x4111fd(0x292)]=_0x493ea9,this[_0x4111fd(0x182)]=_0x56b228,this[_0x4111fd(0x33f)]=_0x402723,this[_0x4111fd(0x2f4)]());}[_0x13f83f(0x208)](){const _0x41248d=_0x13f83f;super[_0x41248d(0x208)](),this[_0x41248d(0x40b)][_0x41248d(0x333)](),this['_entities'][_0x41248d(0x3f0)](_0x516039=>_0x516039[_0x41248d(0x208)]());}[_0x13f83f(0x3c2)](_0x1a0495){const _0x2ceb34=_0x13f83f;return this['_entities']['has'](_0x1a0495)?this['_entities']['get'](_0x1a0495)[_0x2ceb34(0x1b6)]:this[_0x2ceb34(0x40b)][_0x2ceb34(0x253)](I['filter'](_0x390cec=>_0x390cec['unitID']===_0x1a0495),I['switchMap'](_0x41cf2f=>_0x41cf2f[_0x2ceb34(0x1b6)]));}[_0x13f83f(0x2f4)](){const _0x472da7=_0x13f83f;this['_univerInstanceService'][_0x472da7(0x1d9)](a[_0x472da7(0x3f2)][_0x472da7(0x224)])['pipe'](I[_0x472da7(0x170)](this[_0x472da7(0x204)]))[_0x472da7(0x2ec)](async _0x58ac23=>{const _0x1c74ef=_0x472da7,_0x355ff1=_0x58ac23[_0x1c74ef(0x22e)](),_0x351fb9=await this[_0x1c74ef(0x194)](_0x355ff1);this['_entityInit$'][_0x1c74ef(0x36b)](_0x351fb9),this['_entities']['set'](_0x355ff1,_0x351fb9);}),this['_univerInstanceService'][_0x472da7(0x1d9)](a['UniverInstanceType']['UNIVER_DOC'])[_0x472da7(0x253)](I[_0x472da7(0x170)](this[_0x472da7(0x204)]))['pipe'](I['filter'](_0x1bad7d=>!_0x1bad7d[_0x472da7(0x22e)]()[_0x472da7(0x2b7)]('__')))[_0x472da7(0x2ec)](async _0x2fe6bb=>{const _0x34af54=_0x472da7,_0x3a8496=_0x2fe6bb[_0x34af54(0x22e)](),_0xd5f7f2=await this[_0x34af54(0x366)](_0x3a8496);this['_entityInit$'][_0x34af54(0x36b)](_0xd5f7f2),this[_0x34af54(0x252)][_0x34af54(0x20b)](_0x3a8496,_0xd5f7f2);}),I[_0x472da7(0x1ac)](this[_0x472da7(0x292)][_0x472da7(0x1ad)](a['UniverInstanceType'][_0x472da7(0x29c)]),this[_0x472da7(0x292)][_0x472da7(0x1ad)](a[_0x472da7(0x3f2)]['UNIVER_SHEET']))[_0x472da7(0x253)](I[_0x472da7(0x170)](this['dispose$']))[_0x472da7(0x2ec)](_0x5d9257=>{const _0xb40447=_0x472da7,_0xae2a24=_0x5d9257[_0xb40447(0x22e)](),_0x17acae=this['_entities'][_0xb40447(0x2fc)](_0xae2a24);_0x17acae&&(_0x17acae['dispose'](),this['_entities'][_0xb40447(0x362)](_0xae2a24));});}async['_startSheetCollabCursor'](_0x40a23e){const _0x18c284=_0x13f83f,_0x424122=await this['_collabSessionService']['requireSession'](_0x40a23e),_0x4290d4=this['_injector'][_0x18c284(0x30b)](me,_0x40a23e,_0x424122);return _0x4290d4[_0x18c284(0x257)](),_0x4290d4;}async[_0x13f83f(0x366)](_0x32f499){const _0x443708=_0x13f83f,_0x7273af=await this[_0x443708(0x33f)][_0x443708(0x2c0)](_0x32f499),_0x18e3be=this['_injector'][_0x443708(0x30b)](fe,_0x32f499,_0x7273af);return _0x18e3be['init'](),_0x18e3be;}};B=Et([oe(0x0,a[_0x13f83f(0x17e)]),oe(0x1,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x21e)])),oe(0x2,a[_0x13f83f(0x3f5)](u['CollaborationSessionService']))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function pt(_0xfde51d,_0x34372c){const _0x30dc99=_0x13f83f;let {radius:_0x170582,width:_0x69d262,height:_0x265e5c}=_0x34372c;_0x170582=_0x170582!=null?_0x170582:0x0,_0x69d262=_0x69d262!=null?_0x69d262:0x1e,_0x265e5c=_0x265e5c!=null?_0x265e5c:0x1e;let _0x2260f4=0x0,_0x3bc258=0x0,_0x38e53c=0x0;_0x2260f4=_0x3bc258=_0x38e53c=Math[_0x30dc99(0x40f)](_0x170582,_0x69d262/0x2,_0x265e5c/0x2),_0xfde51d[_0x30dc99(0x2d1)](),_0xfde51d[_0x30dc99(0x175)](_0x2260f4,0x0),_0xfde51d['lineTo'](_0x69d262-_0x3bc258,0x0),_0xfde51d[_0x30dc99(0x33c)](_0x69d262-_0x3bc258,_0x3bc258,_0x3bc258,Math['PI']*0x3/0x2,0x0,!0x1),_0xfde51d[_0x30dc99(0x1db)](_0x69d262,_0x265e5c-_0x38e53c),_0xfde51d[_0x30dc99(0x33c)](_0x69d262-_0x38e53c,_0x265e5c-_0x38e53c,_0x38e53c,0x0,Math['PI']/0x2,!0x1),_0xfde51d[_0x30dc99(0x1db)](0x0,_0x265e5c),_0xfde51d['lineTo'](0x0,_0x2260f4),_0xfde51d['arc'](_0x2260f4,_0x2260f4,_0x2260f4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xfde51d[_0x30dc99(0x2ab)](),_0x34372c[_0x30dc99(0x26c)]&&(_0xfde51d[_0x30dc99(0x2b6)](),_0xfde51d['fillStyle']=_0x34372c['fill'],_0x34372c[_0x30dc99(0x378)]===_0x30dc99(0x1f8)?_0xfde51d[_0x30dc99(0x26c)](_0x30dc99(0x1f8)):_0xfde51d[_0x30dc99(0x26c)](),_0xfde51d[_0x30dc99(0x2b0)]());}class ie extends C[_0x13f83f(0x34a)]{constructor(_0x209a48,_0x5b218f){const _0x54190e=_0x13f83f;super(_0x209a48,_0x5b218f),_(this,_0x54190e(0x2d5)),_(this,_0x54190e(0x3d4)),(this[_0x54190e(0x2d5)]=_0x5b218f==null?void 0x0:_0x5b218f[_0x54190e(0x2d5)],this[_0x54190e(0x3d4)]=_0x5b218f==null?void 0x0:_0x5b218f[_0x54190e(0x3d4)]);}static[_0x13f83f(0x293)](_0x333880,_0x2d3bf1){const _0x1037d1=_0x13f83f,{text:_0x5e4eac,color:_0x2d7090}=_0x2d3bf1;_0x333880[_0x1037d1(0x2b6)](),_0x333880[_0x1037d1(0x308)]=_0x1037d1(0x23d);const _0x431fdd=_0x333880['measureText'](_0x5e4eac)['width'],_0x5dd1e7=Math[_0x1037d1(0x40f)](_0x431fdd+0x2*ae,De);pt(_0x333880,{'height':X,'radius':0x4,'width':_0x5dd1e7,'fill':_0x2d7090}),_0x333880[_0x1037d1(0x1fe)]='#FFF';const _0x3bfa04=ae,_0x432a18=X-Ct,_0x21cdd8=De-0x2*ae;if(_0x431fdd>_0x21cdd8){let _0x33d9b0='',_0x6a1b2b=0x0;for(const _0x408f0a of _0x5e4eac){const _0x15d399=_0x333880[_0x1037d1(0x22b)](_0x408f0a)['width'];if(_0x6a1b2b+_0x15d399<=_0x21cdd8-_0x333880['measureText'](_0x1037d1(0x216))[_0x1037d1(0x335)])_0x33d9b0+=_0x408f0a,_0x6a1b2b+=_0x15d399;else{_0x33d9b0+=_0x1037d1(0x216);break;}}_0x333880[_0x1037d1(0x389)](_0x33d9b0,_0x3bfa04,_0x432a18);}else _0x333880[_0x1037d1(0x389)](_0x5e4eac,_0x3bfa04,_0x432a18);_0x333880[_0x1037d1(0x2b0)]();}['_draw'](_0xc98460){const _0x1e1606=_0x13f83f;ie[_0x1e1606(0x293)](_0xc98460,this);}}const ce='collab-text-anchor-',Tt=_0x13f83f(0x1d8),Ot=_0x13f83f(0x37b),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt=_0x13f83f(0x1ed);class Ne{constructor(_0x3f8937,_0x5be42c,_0x18ebf5,_0x17ac03){const _0x4c9187=_0x13f83f;_(this,'_shapes',[]),_(this,'_anchor',null),_(this,_0x4c9187(0x2a0),null),_(this,_0x4c9187(0x3ad),null),_(this,'_hideTimer',null),_(this,_0x4c9187(0x32e),null),(this[_0x4c9187(0x18d)]=_0x3f8937,this[_0x4c9187(0x351)]=_0x5be42c,this['_docSkeleton']=_0x18ebf5,this[_0x4c9187(0x1ec)]=_0x17ac03,this['_render']());}set[_0x13f83f(0x2ed)](_0x3b2a74){const _0x237ca3=_0x13f83f;_0x3b2a74?(this[_0x237ca3(0x3ad)]&&this['_anchorDot'][_0x237ca3(0x24a)](),this[_0x237ca3(0x2a0)]&&this[_0x237ca3(0x2a0)][_0x237ca3(0x199)]()):(this[_0x237ca3(0x3ad)]&&this[_0x237ca3(0x3ad)][_0x237ca3(0x199)](),this[_0x237ca3(0x2a0)]&&this['_textBubble'][_0x237ca3(0x24a)]());}[_0x13f83f(0x208)](){const _0x583a0a=_0x13f83f;for(const _0x263951 of this[_0x583a0a(0x190)])_0x263951[_0x583a0a(0x208)]();this[_0x583a0a(0x2a0)]&&this[_0x583a0a(0x2a0)][_0x583a0a(0x208)](),this['_anchorDot']&&this[_0x583a0a(0x3ad)]['dispose'](),this['_anchor']&&this[_0x583a0a(0x1da)][_0x583a0a(0x208)](),this['_eventUnsubscribe']&&this[_0x583a0a(0x32e)]();}[_0x13f83f(0x1b0)](){const _0x2a94b7=_0x13f83f;var _0xb0f067;const {_docSkeleton:_0xd96eae,_document:_0xb35e02}=this,{color:_0x27e5d5,name:_0x429975,ranges:_0x32e321}=this[_0x2a94b7(0x18d)],_0x50e6cb=_0xb35e02[_0x2a94b7(0x25e)](),{docsLeft:_0x47799f,docsTop:_0x35175a}=_0x50e6cb,_0x43ab94=new p['NodePositionConvertToCursor'](_0x50e6cb,_0xd96eae);for(const {startOffset:_0x24bcd1,endOffset:_0x500546,rangeType:_0x54c86a,segmentId:_0x1a3c2c,segmentPage:_0x5d6d6a,collapsed:_0x2d0401,isActive:_0x5730f7}of _0x32e321){const _0x52e8b5=_0xd96eae[_0x2a94b7(0x1f7)](_0x24bcd1,!0x0,_0x1a3c2c,_0x5d6d6a);let _0xc06d7e=_0xd96eae[_0x2a94b7(0x1f7)](_0x500546,!0x0,_0x1a3c2c,_0x5d6d6a);if(_0xc06d7e==null&&(_0xc06d7e=_0xd96eae[_0x2a94b7(0x1f7)](_0x500546-0x1,!0x1,_0x1a3c2c,_0x5d6d6a)),_0x5730f7){const {contentBoxPointGroup:_0x1b2194}=_0x43ab94[_0x2a94b7(0x2fe)](_0xc06d7e,_0xc06d7e);if(_0x1b2194[_0x2a94b7(0x2c4)]===0x0)continue;this[_0x2a94b7(0x2d4)](_0x27e5d5,_0x1b2194,_0x47799f,_0x35175a,_0x429975),this['_eventUnsubscribe']=this[_0x2a94b7(0x1b2)]();}if(_0x52e8b5&&_0xc06d7e){if(_0x54c86a===a['DOC_RANGE_TYPE'][_0x2a94b7(0x3e5)]){const _0x767dc6=new p[(_0x2a94b7(0x2e5))](_0x50e6cb,_0xd96eae),{pointGroup:_0x34f562}=(_0xb0f067=_0x767dc6[_0x2a94b7(0x2fe)](_0x52e8b5,_0xc06d7e))!=null?_0xb0f067:{};if(_0x34f562==null||_0x34f562[_0x2a94b7(0x2c4)]===0x0)continue;this[_0x2a94b7(0x219)](_0x27e5d5,_0x34f562,_0x47799f,_0x35175a);}else{if(!_0x2d0401){const {borderBoxPointGroup:_0xef6eac}=_0x43ab94[_0x2a94b7(0x2fe)](_0x52e8b5,_0xc06d7e);if(_0xef6eac[_0x2a94b7(0x2c4)]===0x0)continue;this[_0x2a94b7(0x3da)](_0x27e5d5,_0xef6eac,_0x47799f,_0x35175a);}}}}}[_0x13f83f(0x2d4)](_0x32e691,_0x2679b7,_0x10363d,_0x4ec01e,_0x34f081){const _0x1a64a3=_0x13f83f,_0xb9384d=this['_getAnchorBounding'](_0x2679b7),{left:_0x2942ff,top:_0x41d861,height:_0x342791}=_0xb9384d,_0xb4c0d1=this['_getScale'](),_0xb96bef=bt/_0xb4c0d1,_0x2719be=new C['Rect'](ce+a['generateRandomId'](Y),{'left':_0x2942ff+_0x10363d-_0xb96bef,'top':_0x41d861+_0x4ec01e,'height':_0x342791,'width':Rt,'fill':_0x32e691||C['getColor'](a['COLORS'][_0x1a64a3(0x305)],0x0),'strokeWidth':_0xb96bef,'stroke':Dt,'evented':!0x0});this[_0x1a64a3(0x1da)]=_0x2719be,this[_0x1a64a3(0x351)]['addObject'](_0x2719be,p[_0x1a64a3(0x36e)]);const _0x2e1508=new C[(_0x1a64a3(0x211))](ce+a['generateRandomId'](Y),{'left':_0x2942ff+_0x10363d-_0xb96bef,'top':_0x41d861+_0x4ec01e-le/0x2,'height':le,'width':le,'fill':_0x32e691||C[_0x1a64a3(0x221)](a[_0x1a64a3(0x3a4)][_0x1a64a3(0x305)],0x0),'strokeWidth':0x0,'stroke':_0x32e691||C[_0x1a64a3(0x221)](a['COLORS'][_0x1a64a3(0x305)],0x0),'evented':!0x1});this['_anchorDot']=_0x2e1508,this[_0x1a64a3(0x351)][_0x1a64a3(0x197)](_0x2e1508,p[_0x1a64a3(0x36e)]);const _0x24adce=new ie(ce+a['generateRandomId'](Y),{'left':_0x2942ff+_0x10363d-_0xb96bef,'top':_0x41d861+_0x4ec01e-X,'text':_0x34f081,'color':_0x32e691});this['_textBubble']=_0x24adce,this['_scene'][_0x1a64a3(0x197)](_0x24adce,p['TEXT_RANGE_LAYER_INDEX']),this[_0x1a64a3(0x2ed)]=!0x1;}['_handleHover'](){const _0xbcd0f3=_0x13f83f,_0x2ff9df=this['_anchor']['onPointerEnter$'][_0xbcd0f3(0x33a)](()=>{this['_hover']=!0x0;}),_0x152be1=this['_anchor'][_0xbcd0f3(0x303)][_0xbcd0f3(0x33a)](()=>{const _0x26945b=_0xbcd0f3;this['_hideTimer']&&clearTimeout(this[_0x26945b(0x3f3)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x8ddc52=_0xbcd0f3;_0x2ff9df[_0x8ddc52(0x32a)](),_0x152be1[_0x8ddc52(0x32a)]();};}[_0x13f83f(0x3da)](_0x3d8853,_0x14adb7,_0x21e9d6,_0x462635){const _0x35ea60=_0x13f83f,_0x41503d=new a['ColorKit'](_0x3d8853)['setAlpha'](0.2)[_0x35ea60(0x276)](),_0x3a35e7=new C[(_0x35ea60(0x1e2))](Tt+a[_0x35ea60(0x237)](Y),{'pointsGroup':_0x14adb7,'fill':_0x41503d||C[_0x35ea60(0x221)](a[_0x35ea60(0x3a4)][_0x35ea60(0x305)],0.2),'left':_0x21e9d6,'top':_0x462635,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x3a35e7),this[_0x35ea60(0x351)][_0x35ea60(0x197)](_0x3a35e7,p['TEXT_RANGE_LAYER_INDEX']);}[_0x13f83f(0x219)](_0x12fd44,_0x3c9811,_0x38f08f,_0x337f98){const _0x918c7f=_0x13f83f,_0x52485f=new a[(_0x918c7f(0x20c))](_0x12fd44)[_0x918c7f(0x1cb)](0.2)['toRgbString'](),_0xde20a0=new C[(_0x918c7f(0x1e2))](Ot+a['generateRandomId'](Y),{'pointsGroup':_0x3c9811,'fill':_0x52485f||C[_0x918c7f(0x221)](a['COLORS'][_0x918c7f(0x305)],0.2),'left':_0x38f08f,'top':_0x337f98,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x918c7f(0x311)](_0xde20a0),this['_scene'][_0x918c7f(0x197)](_0xde20a0,p['TEXT_RANGE_LAYER_INDEX']);}[_0x13f83f(0x2bf)](_0x21f818){const _0xc77363=_0x21f818[0x0],_0x379617=_0xc77363[0x0],_0x2832b0=_0xc77363[0x2],{x:_0xe2ef8d,y:_0x149700}=_0x379617,{x:_0x4b2186,y:_0x328b86}=_0x2832b0;return{'left':_0xe2ef8d,'top':_0x149700,'width':_0x4b2186-_0xe2ef8d,'height':_0x328b86-_0x149700};}[_0x13f83f(0x3a2)](){const _0x5a1282=_0x13f83f,{scaleX:_0x4a8d54,scaleY:_0x599725}=this[_0x5a1282(0x351)][_0x5a1282(0x352)]();return Math[_0x5a1282(0x35e)](_0x4a8d54,_0x599725);}}var Nt=Object['getOwnPropertyDescriptor'],Ut=(_0x5883a0,_0x33fae5,_0xd1d231,_0x45b14f)=>{const _0x2b6259=_0x13f83f;for(var _0x8fa332=_0x45b14f>0x1?void 0x0:_0x45b14f?Nt(_0x33fae5,_0xd1d231):_0x33fae5,_0x393527=_0x5883a0[_0x2b6259(0x2c4)]-0x1,_0x40a54e;_0x393527>=0x0;_0x393527--)(_0x40a54e=_0x5883a0[_0x393527])&&(_0x8fa332=_0x40a54e(_0x8fa332)||_0x8fa332);return _0x8fa332;},q=(_0x4b2374,_0x419089)=>(_0x470b12,_0x13b085)=>_0x419089(_0x470b12,_0x13b085,_0x4b2374);let ge=class extends a[_0x13f83f(0x31f)]{constructor(_0x194988,_0x59e88f,_0x19a101,_0x1103cd,_0x26064f){const _0x6c24a7=_0x13f83f;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this[_0x6c24a7(0x354)]=_0x194988,this[_0x6c24a7(0x392)]=_0x59e88f,this[_0x6c24a7(0x1b4)]=_0x19a101,this['_commandService']=_0x1103cd,this[_0x6c24a7(0x409)]=_0x26064f,this[_0x6c24a7(0x2f4)]());}[_0x13f83f(0x2f4)](){const _0x3520ab=_0x13f83f,_0x1cb57a=this[_0x3520ab(0x354)][_0x3520ab(0x36a)],_0x24f384=this[_0x3520ab(0x392)];this[_0x3520ab(0x217)](I[_0x3520ab(0x200)]([this[_0x3520ab(0x1b4)][_0x3520ab(0x3c2)](_0x1cb57a),this[_0x3520ab(0x409)][_0x3520ab(0x1c1)]])['pipe']($['map'](([_0x2de48f,_0x191335])=>({'skeleton':_0x24f384['getSkeleton'](),'cursors':[..._0x2de48f['values']()][_0x3520ab(0x38a)](_0x1bff06=>({..._0x1bff06,'color':this[_0x3520ab(0x409)][_0x3520ab(0x411)](_0x1bff06['color'])}))})))[_0x3520ab(0x2ec)](_0x3bf183=>{const _0x21b826=_0x3520ab;if(this[_0x21b826(0x3f8)](),_0x3bf183){const {skeleton:_0x41cee9,cursors:_0x30cdae}=_0x3bf183;this[_0x21b826(0x235)](_0x41cee9,_0x30cdae);}})),this[_0x3520ab(0x255)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x4e736a,_0x1401bb){const _0x22c7e2=_0x13f83f,{scene:_0x1f9c51,mainComponent:_0x2798b5}=this[_0x22c7e2(0x354)],_0x292fde=_0x1401bb[_0x22c7e2(0x2cc)](_0x3fa85b=>new Ne(_0x3fa85b,_0x1f9c51,_0x4e736a,_0x2798b5));this[_0x22c7e2(0x3cd)]=_0x292fde,this[_0x22c7e2(0x25d)]=_0x1401bb;}[_0x13f83f(0x21b)](){const _0x1c9ccd=_0x13f83f;this[_0x1c9ccd(0x3f8)]();const {scene:_0x2de351,mainComponent:_0x37a8f0}=this[_0x1c9ccd(0x354)],_0x383c83=this[_0x1c9ccd(0x392)]['getSkeleton'](),_0x15d4a1=this['_cursors']['map'](_0x915c07=>new Ne(_0x915c07,_0x2de351,_0x383c83,_0x37a8f0));this[_0x1c9ccd(0x3cd)]=_0x15d4a1;}[_0x13f83f(0x3f8)](){const _0x23ee9d=_0x13f83f;this[_0x23ee9d(0x3cd)]['forEach'](_0x3e8621=>_0x3e8621['dispose']()),this[_0x23ee9d(0x3cd)]=[];}[_0x13f83f(0x29d)](){const _0x46535a=_0x13f83f,_0x4ab6d9=[p[_0x46535a(0x227)]['id']];this[_0x46535a(0x217)](this[_0x46535a(0x184)][_0x46535a(0x3d7)](_0x3d51ae=>{const _0x4bd94e=_0x46535a;_0x4ab6d9[_0x4bd94e(0x2a5)](_0x3d51ae['id'])&&_0x3d51ae[_0x4bd94e(0x314)][_0x4bd94e(0x36a)]===this[_0x4bd94e(0x354)]['unitId']&&this[_0x4bd94e(0x21b)]();}));}[_0x13f83f(0x255)](){const _0x515a40=_0x13f83f;this[_0x515a40(0x217)](a[_0x515a40(0x223)](this[_0x515a40(0x354)]['engine'][_0x515a40(0x3d8)])['pipe']($[_0x515a40(0x386)](_0x2099cc=>_0x2099cc[_0x515a40(0x3af)]===C[_0x515a40(0x35d)]['resize']),$[_0x515a40(0x24c)](0x10))['subscribe'](()=>{const _0x249e5f=_0x515a40;this[_0x249e5f(0x21b)]();}));}};ge=Ut([q(0x1,a[_0x13f83f(0x3f5)](W[_0x13f83f(0x359)])),q(0x2,a['Inject'](B)),q(0x3,a[_0x13f83f(0x2f1)]),q(0x4,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x2eb)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x13f83f(0x34a)]{constructor(_0x4b324c,_0x34c141){const _0x7377d7=_0x13f83f;super(_0x4b324c,_0x34c141),_(this,'_color'),_(this,_0x7377d7(0x1aa),!0x1),_(this,_0x7377d7(0x355)),_(this,_0x7377d7(0x41f),''),_(this,_0x7377d7(0x256),'top'),_(this,_0x7377d7(0x343)),(_0x34c141&&this[_0x7377d7(0x207)](_0x34c141),this[_0x7377d7(0x1d7)][_0x7377d7(0x33a)](()=>this[_0x7377d7(0x207)]({'hovered':!0x0})),this[_0x7377d7(0x303)][_0x7377d7(0x33a)](()=>this[_0x7377d7(0x207)]({'hovered':!0x1})));}[_0x13f83f(0x207)](_0x1ce9d4){const _0x18b9bd=_0x13f83f;var _0x2e9077,_0x31e8a8,_0x4d4497,_0x11f67c,_0x59e09e,_0x5e474c;this['_color']=(_0x2e9077=_0x1ce9d4[_0x18b9bd(0x2d5)])!=null?_0x2e9077:this[_0x18b9bd(0x261)],this['_hovered']=(_0x31e8a8=_0x1ce9d4[_0x18b9bd(0x29b)])!=null?_0x31e8a8:this[_0x18b9bd(0x1aa)],this[_0x18b9bd(0x355)]=(_0x4d4497=_0x1ce9d4['range'])!=null?_0x4d4497:this[_0x18b9bd(0x355)],this[_0x18b9bd(0x41f)]=(_0x11f67c=_0x1ce9d4[_0x18b9bd(0x390)])!=null?_0x11f67c:this['_name'],this[_0x18b9bd(0x256)]=(_0x59e09e=_0x1ce9d4[_0x18b9bd(0x17d)])!=null?_0x59e09e:this[_0x18b9bd(0x256)],this[_0x18b9bd(0x343)]=(_0x5e474c=_0x1ce9d4['backgroundColor'])!=null?_0x5e474c:this['_backgroundColor'],this['transformByState']({'width':_0x1ce9d4[_0x18b9bd(0x335)],'height':_0x1ce9d4['height']});}['onMouseMove'](_0x3803a5){const _0x592d62=_0x13f83f,{row:_0xac00c8,column:_0x412727}=_0x3803a5;if(_0xac00c8>=this[_0x592d62(0x355)][_0x592d62(0x198)]&&_0xac00c8<=this[_0x592d62(0x355)]['endRow']&&_0x412727>=this[_0x592d62(0x355)][_0x592d62(0x39f)]&&_0x412727<=this['_range'][_0x592d62(0x419)]){this[_0x592d62(0x207)]({'hovered':!0x0});return;}this[_0x592d62(0x207)]({'hovered':!0x1});}[_0x13f83f(0x33e)](_0x4a4e9f){return!0x1;}[_0x13f83f(0x242)](_0x353717){const _0x2a6ac5=_0x13f83f;C[_0x2a6ac5(0x211)][_0x2a6ac5(0x293)](_0x353717,{'width':this[_0x2a6ac5(0x335)],'height':this[_0x2a6ac5(0x297)],'strokeWidth':Mt,'stroke':this[_0x2a6ac5(0x261)],'evented':!0x1,'fill':this[_0x2a6ac5(0x343)]}),this[_0x2a6ac5(0x1aa)]&&(_0x353717[_0x2a6ac5(0x2b6)](),_0x353717[_0x2a6ac5(0x192)](0x1,0x0,0x0,0x1,this[_0x2a6ac5(0x335)],this[_0x2a6ac5(0x256)]==='bottom'?0x0:-X),ie[_0x2a6ac5(0x293)](_0x353717,{'text':this['_name'],'color':this[_0x2a6ac5(0x261)]}),_0x353717[_0x2a6ac5(0x2b0)]());}}var At=Object['getOwnPropertyDescriptor'],Pt=(_0x1294ba,_0x56481d,_0xb99628,_0x30e8aa)=>{const _0x52efd5=_0x13f83f;for(var _0x377071=_0x30e8aa>0x1?void 0x0:_0x30e8aa?At(_0x56481d,_0xb99628):_0x56481d,_0x4a69b4=_0x1294ba[_0x52efd5(0x2c4)]-0x1,_0x1b4661;_0x4a69b4>=0x0;_0x4a69b4--)(_0x1b4661=_0x1294ba[_0x4a69b4])&&(_0x377071=_0x1b4661(_0x377071)||_0x377071);return _0x377071;},_e=(_0x3bf827,_0x398270)=>(_0x35e455,_0x182ff4)=>_0x398270(_0x35e455,_0x182ff4,_0x3bf827);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x459a2f,_0x311584,_0x16e98b,_0x31209a){const _0x164307=_0x13f83f;super(),_(this,_0x164307(0x25d),new Set()),_(this,_0x164307(0x2f5),null),(this[_0x164307(0x354)]=_0x459a2f,this[_0x164307(0x23e)]=_0x311584,this[_0x164307(0x1b4)]=_0x16e98b,this[_0x164307(0x409)]=_0x31209a,this[_0x164307(0x2f4)]());}['_init'](){const _0xb7fb4a=_0x13f83f;this['_sheetSkeletonManagerService'][_0xb7fb4a(0x2f0)][_0xb7fb4a(0x253)]($[_0xb7fb4a(0x170)](this[_0xb7fb4a(0x204)]),$[_0xb7fb4a(0x214)](_0x2e5527=>{const _0x43b950=_0xb7fb4a;if(_0x2e5527){const _0x45347a=_0x2e5527[_0x43b950(0x230)];return I[_0x43b950(0x200)](this[_0x43b950(0x1b4)]['getCollabCursors$'](this[_0x43b950(0x354)]['unitId']),this[_0x43b950(0x409)][_0x43b950(0x1c1)])[_0x43b950(0x253)]($[_0x43b950(0x2cc)](([_0x52086f,_0xaa6d5b])=>{const _0x4a8ad7=new Map();return _0x52086f['forEach']((_0xa15a43,_0x1ca09a)=>{const _0x3723d4=_0x54f0;if(_0xa15a43[_0x3723d4(0x3fe)]===_0x45347a){const _0x4f4101={..._0xa15a43};_0x4f4101[_0x3723d4(0x2d5)]=this[_0x3723d4(0x409)][_0x3723d4(0x411)](_0xa15a43[_0x3723d4(0x2d5)]),_0x4a8ad7[_0x3723d4(0x20b)](_0x1ca09a,_0x4f4101);}}),{'skeleton':_0x2e5527,'cursors':_0x4a8ad7};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0xb7fb4a(0x2ec)](({skeleton:_0x234a4e,cursors:_0x4f5b23})=>{const _0x4fa4bd=_0xb7fb4a;this[_0x4fa4bd(0x3f8)](),_0x234a4e&&this['_updateCollabCursors'](_0x234a4e,_0x4f5b23);}),this['_sheetSkeletonManagerService'][_0xb7fb4a(0x2f0)][_0xb7fb4a(0x2ec)](_0x28758a=>{const _0x60ef92=_0xb7fb4a;if(_0x28758a==null)return;const {skeleton:_0x1cb832}=_0x28758a,{scene:_0x1284ff}=this[_0x60ef92(0x354)];_0x1284ff[_0x60ef92(0x2f6)]['subscribeEvent'](a['debounce'](_0x38ad8f=>{const _0x5d9388=_0x60ef92;var _0x4e0237,_0x593667;const {offsetX:_0x564d7a,offsetY:_0x5dea73}=_0x38ad8f,{x:_0x453d78,y:_0x1d4430}=_0x1284ff[_0x5d9388(0x2db)](C[_0x5d9388(0x41e)][_0x5d9388(0x27f)]([_0x564d7a,_0x5dea73])),{scaleX:_0x599023,scaleY:_0x462deb}=_0x1284ff[_0x5d9388(0x352)](),_0x2d6af4=_0x1284ff[_0x5d9388(0x38c)](C['SHEET_VIEWPORT_KEY'][_0x5d9388(0x3c1)]),_0x381592=_0x1284ff[_0x5d9388(0x28e)](C[_0x5d9388(0x41e)]['FromArray']([_0x453d78,_0x1d4430]),_0x2d6af4),_0x58795e=_0x1cb832['getCellPositionByOffset'](_0x564d7a,_0x5dea73,_0x599023,_0x462deb,_0x381592);((_0x4e0237=this[_0x5d9388(0x2f5)])==null?void 0x0:_0x4e0237[_0x5d9388(0x2a6)])===_0x58795e['column']&&((_0x593667=this[_0x5d9388(0x2f5)])==null?void 0x0:_0x593667[_0x5d9388(0x41c)])===_0x58795e['row']||this[_0x5d9388(0x25d)][_0x5d9388(0x3f0)](_0x40ac04=>{const _0x331860=_0x5d9388;_0x40ac04[_0x331860(0x3ac)](_0x58795e);});},0x64));});}[_0x13f83f(0x235)](_0x3bd622,_0xed84ea){const _0x59e929=_0x13f83f;var _0x543df1;const _0x45efc5=(_0x543df1=this[_0x59e929(0x23e)][_0x59e929(0x31d)]())==null?void 0x0:_0x543df1['skeleton'];if(!_0x45efc5)return;const _0x1b89ca=this[_0x59e929(0x1c2)]();if(!_0x1b89ca)return;this[_0x59e929(0x25d)][_0x59e929(0x3f0)](_0x45942c=>{const _0x37a6b3=_0x59e929;_0x45942c[_0x37a6b3(0x1b3)]();});const {scene:_0x34e404}=_0x1b89ca,_0x2cb203=yt(Array[_0x59e929(0x367)](_0xed84ea[_0x59e929(0x25a)]()))[_0x59e929(0x2cc)](_0x2334c0=>{const _0x2556c9=_0x59e929,{color:_0x38a03e,range:_0x477f35,name:_0x472004,selection:_0xc49ae9,sheetID:_0x21b34c}=_0x2334c0,{startColumn:_0x41e8b1,startRow:_0x126cf3,endColumn:_0x17ccdb,endRow:_0x340797}=_0x477f35,_0x3c1b32=z['getCoordByCell'](_0x126cf3,_0x41e8b1,_0x34e404,_0x45efc5),_0x5ae5e3=z[_0x2556c9(0x280)](_0x340797,_0x17ccdb,_0x34e404,_0x45efc5),{columnHeaderHeightAndMarginTop:_0x747782}=_0x45efc5,{startX:_0x4f0c58,startY:_0x318b6f}=_0x3c1b32,{endX:_0x91b6cd,endY:_0x17c05b}=_0x5ae5e3,_0x38628d=_0x91b6cd-_0x4f0c58,_0x3a0398=_0x17c05b-_0x318b6f,_0x47fbbd={'labelPosition':_0x318b6f-_0x747782>=X?'top':'bottom','sheetID':_0x21b34c,'range':_0x477f35,'color':_0x38a03e,'name':_0x472004,'selection':_0xc49ae9,'left':_0x4f0c58,'top':_0x318b6f,'width':_0x38628d,'height':_0x3a0398,'evented':!0x1,'zIndex':wt};return new Be(_0x472004,_0x47fbbd);});_0x34e404[_0x59e929(0x3ce)](_0x2cb203,Lt),this['_cursors']=new Set(_0x2cb203);}[_0x13f83f(0x3f8)](){const _0x4ab2cd=_0x13f83f;var _0x28aabb;(_0x28aabb=this[_0x4ab2cd(0x25d)])==null||_0x28aabb[_0x4ab2cd(0x3f0)](_0x2e979d=>_0x2e979d[_0x4ab2cd(0x208)]());}[_0x13f83f(0x1c2)](){const _0x49a945=_0x13f83f;return z[_0x49a945(0x2a9)](this['_context']['unit'],this['_context']);}};ve=Pt([_e(0x1,a[_0x13f83f(0x3f5)](z['SheetSkeletonManagerService'])),_e(0x2,a[_0x13f83f(0x3f5)](B)),_e(0x3,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x2eb)]))],ve);function yt(_0x5ec871){const _0x32bef4=_0x13f83f,_0x532d6b=new Map();return _0x5ec871['forEach'](_0x2e608d=>{const _0x20eb0b=_0x54f0;if(_0x532d6b[_0x20eb0b(0x279)](_0x2e608d[_0x20eb0b(0x2dc)])){const _0x3fa913=_0x532d6b[_0x20eb0b(0x2fc)](_0x2e608d[_0x20eb0b(0x2dc)]);_0x3fa913[_0x20eb0b(0x390)]+=',\x20'+_0x2e608d[_0x20eb0b(0x390)];}else _0x532d6b[_0x20eb0b(0x20b)](_0x2e608d[_0x20eb0b(0x2dc)],_0x2e608d);}),Array['from'](_0x532d6b[_0x32bef4(0x25a)]());}var $t=Object[_0x13f83f(0x2f9)],xt=(_0x414e2d,_0x4fdcf7,_0x14c0fa,_0x3a226c)=>{for(var _0x47c7d0=_0x3a226c>0x1?void 0x0:_0x3a226c?$t(_0x4fdcf7,_0x14c0fa):_0x4fdcf7,_0x26836e=_0x414e2d['length']-0x1,_0x49a5bc;_0x26836e>=0x0;_0x26836e--)(_0x49a5bc=_0x414e2d[_0x26836e])&&(_0x47c7d0=_0x49a5bc(_0x47c7d0)||_0x47c7d0);return _0x47c7d0;},y=(_0x2fb40d,_0x19cac4)=>(_0x4101aa,_0xef979e)=>_0x19cac4(_0x4101aa,_0xef979e,_0x2fb40d);let J=class extends a[_0x13f83f(0x2aa)]{constructor(_0x304462,_0x4784ee,_0x4faf49,_0x31255d,_0x4fdefd,_0x2d912d){const _0x5a6b07=_0x13f83f;super(),this[_0x5a6b07(0x24e)]=_0x304462,this[_0x5a6b07(0x337)]=_0x4784ee,this[_0x5a6b07(0x2ff)]=_0x4faf49,this[_0x5a6b07(0x19b)]=_0x31255d,this[_0x5a6b07(0x1cd)]=_0x4fdefd,this['_localeService']=_0x2d912d,this[_0x5a6b07(0x388)](),this[_0x5a6b07(0x1b1)]();}[_0x13f83f(0x388)](){const _0x55ea42=_0x13f83f;this[_0x55ea42(0x217)](this['_beforeCloseService'][_0x55ea42(0x1e4)](()=>{const _0x319266=_0x55ea42;if(this[_0x319266(0x337)][_0x319266(0x2e3)][_0x319266(0x3b5)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x13f83f(0x1b1)](){const _0x26ee2c=_0x13f83f;this[_0x26ee2c(0x217)](this['_collaborationUIEventService'][_0x26ee2c(0x238)]['subscribe'](_0x31bd7f=>{const _0x1eb424=_0x26ee2c;_0x31bd7f['id']===u['CollaborationUIEventId'][_0x1eb424(0x263)]&&this[_0x1eb424(0x19b)][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x172)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x18f))}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x173)]&&this[_0x1eb424(0x19b)][_0x1eb424(0x199)]({'type':T['MessageType'][_0x1eb424(0x172)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x270))}),_0x31bd7f['id']===u['CollaborationUIEventId'][_0x1eb424(0x281)]&&this[_0x1eb424(0x1cd)][_0x1eb424(0x199)]({'title':this['_localeService']['t'](_0x1eb424(0x398)),'content':this['_localeService']['t'](_0x1eb424(0x349)),'type':_0x1eb424(0x317),'duration':0x0}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x196)]&&this['_messageService'][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x326)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x31bd7f['data']+')'}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x31e)]&&this[_0x1eb424(0x19b)][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x172)],'content':this[_0x1eb424(0x245)]['t'](_0x31bd7f['data']||'')}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x202)]&&this[_0x1eb424(0x19b)][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x172)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x3b7))}),_0x31bd7f['id']===u['CollaborationUIEventId'][_0x1eb424(0x232)]&&this['_messageService'][_0x1eb424(0x199)]({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x326)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x17f))}),_0x31bd7f['id']===u[_0x1eb424(0x18e)][_0x1eb424(0x2ac)]&&this[_0x1eb424(0x19b)]['show']({'type':T[_0x1eb424(0x2b9)][_0x1eb424(0x326)],'content':this[_0x1eb424(0x245)]['t'](_0x1eb424(0x3a6))});}));}};J=xt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x13f83f(0x176)]),y(0x2,a[_0x13f83f(0x3f5)](u[_0x13f83f(0x393)])),y(0x3,O[_0x13f83f(0x1eb)]),y(0x4,O[_0x13f83f(0x374)]),y(0x5,a[_0x13f83f(0x3f5)](a['LocaleService']))],J);const Bt='collaboration-client-ui.config',Ue={};var Ft=Object[_0x13f83f(0x2f9)],kt=(_0x216da0,_0x321f33,_0x3f8569,_0x53c0bd)=>{for(var _0x4668c7=_0x53c0bd>0x1?void 0x0:_0x53c0bd?Ft(_0x321f33,_0x3f8569):_0x321f33,_0x2c3778=_0x216da0['length']-0x1,_0x329c25;_0x2c3778>=0x0;_0x2c3778--)(_0x329c25=_0x216da0[_0x2c3778])&&(_0x4668c7=_0x329c25(_0x4668c7)||_0x4668c7);return _0x4668c7;},Le=(_0xa6a784,_0x2d06ac)=>(_0x3a1269,_0x236489)=>_0x2d06ac(_0x3a1269,_0x236489,_0xa6a784);let Z=class{constructor(_0x4a950c,_0x127920){const _0x421020=_0x13f83f;this[_0x421020(0x23c)]=_0x4a950c,this['_renderManagerService']=_0x127920;}[_0x13f83f(0x2b3)](_0x47dde7){const _0xef5697=_0x13f83f;this[_0xef5697(0x35c)](_0x47dde7),this['_transformPreviousActiveRange'](_0x47dde7);}[_0x13f83f(0x21f)](_0x11459e){const _0xfa3177=_0x13f83f,{unitID:_0x4e5797}=_0x11459e,_0x182bf9=this[_0xfa3177(0x248)][_0xfa3177(0x39d)](_0x4e5797)['with'](p[_0xfa3177(0x341)]),{redoCache:_0x2c69c5}=_0x182bf9[_0xfa3177(0x39a)]();if(_0x2c69c5['length']===0x0)return _0x11459e;let _0x25f168=a[_0xfa3177(0x260)][_0xfa3177(0x34c)](_0x11459e[_0xfa3177(0x234)][0x0]);for(let _0x1b6244=0x0;_0x1b6244<_0x2c69c5['length'];_0x1b6244++){const _0x2ff547={'id':_0xfa3177(0x361),'params':{..._0x2c69c5[_0x1b6244]}},_0x5b8291=this[_0xfa3177(0x23c)][_0xfa3177(0x2f7)](_0x25f168,_0x2ff547,!0x1);if(v[_0xfa3177(0x312)](_0x5b8291))throw _0x5b8291['error'];_0x25f168=_0x5b8291[_0xfa3177(0x1bc)];}return{...a[_0xfa3177(0x260)][_0xfa3177(0x34c)](_0x11459e),'mutations':[_0x25f168]};}[_0x13f83f(0x35c)](_0x7c94ac){const _0x4c2ed7=_0x13f83f,{unitID:_0x226926}=_0x7c94ac,_0x236a90=this[_0x4c2ed7(0x248)]['getRenderById'](_0x226926)[_0x4c2ed7(0x336)](p[_0x4c2ed7(0x341)]),{undoCache:_0x527ecd,redoCache:_0x3b98ba}=_0x236a90[_0x4c2ed7(0x39a)]();if(_0x527ecd['length']===0x0||_0x3b98ba[_0x4c2ed7(0x2c4)]===0x0)return;const _0xe642f6=[],_0x5819ba=[];let _0x5046c1=a[_0x4c2ed7(0x260)]['deepClone'](_0x7c94ac['mutations'][0x0]),_0x48bae1=a[_0x4c2ed7(0x260)]['deepClone'](_0x7c94ac['mutations'][0x0]);for(let _0xf23efd=_0x527ecd['length']-0x1;_0xf23efd>=0x0;_0xf23efd--){const _0x3b9263={'id':_0x4c2ed7(0x361),'params':{..._0x527ecd[_0xf23efd]}},_0x3bb1ad={'id':'doc.mutation.rich-text-editing','params':{..._0x3b98ba[_0xf23efd]}},_0x5c1a99=this[_0x4c2ed7(0x23c)][_0x4c2ed7(0x2f7)](_0x5046c1,_0x3b9263,!0x1),_0x28ab16=this[_0x4c2ed7(0x23c)][_0x4c2ed7(0x2f7)](_0x48bae1,_0x3bb1ad,!0x1);if(v[_0x4c2ed7(0x312)](_0x5c1a99))throw _0x5c1a99[_0x4c2ed7(0x317)];if(v[_0x4c2ed7(0x312)](_0x28ab16))throw _0x28ab16[_0x4c2ed7(0x317)];_0xe642f6[_0x4c2ed7(0x1d4)](_0x5c1a99[_0x4c2ed7(0x301)][_0x4c2ed7(0x314)]),_0x5819ba[_0x4c2ed7(0x1d4)](_0x28ab16[_0x4c2ed7(0x301)][_0x4c2ed7(0x314)]),_0x5046c1=_0x5c1a99[_0x4c2ed7(0x1bc)],_0x48bae1=_0x28ab16[_0x4c2ed7(0x1bc)];}_0x236a90[_0x4c2ed7(0x22f)]({'undoCache':_0xe642f6,'redoCache':_0x5819ba});}[_0x13f83f(0x1f0)](_0x2ed807){const _0x44c806=_0x13f83f,{unitID:_0x14fc77}=_0x2ed807,_0x5b6205=this[_0x44c806(0x248)][_0x44c806(0x39d)](_0x14fc77)[_0x44c806(0x336)](p[_0x44c806(0x341)]),_0x580c8e=_0x5b6205[_0x44c806(0x1ba)]();if(_0x580c8e==null)return;const _0x43b607=[{'id':_0x44c806(0x361),'params':{'unitId':_0x2ed807[_0x44c806(0x385)],'actions':null,'textRanges':[_0x580c8e]}}],_0x4ceb31=this[_0x44c806(0x23c)]['transformMutationsWithChangeset'](_0x2ed807,_0x43b607);if(!v['isTransformMutationsWithChangesetSuccess'](_0x4ceb31))throw _0x4ceb31[_0x44c806(0x317)];const _0x1efdb5=_0x4ceb31['m2Prime'][0x0][_0x44c806(0x314)][_0x44c806(0x29a)];Array[_0x44c806(0x287)](_0x1efdb5)&&_0x1efdb5[_0x44c806(0x2c4)]&&_0x5b6205[_0x44c806(0x403)](_0x1efdb5[0x0]);}};Z=kt([Le(0x0,v[_0x13f83f(0x325)]),Le(0x1,C[_0x13f83f(0x1b5)])],Z);var jt=Object[_0x13f83f(0x2f9)],Yt=(_0x132d9d,_0x7382da,_0x312de0,_0x40dd96)=>{const _0x1ce959=_0x13f83f;for(var _0x553f3b=_0x40dd96>0x1?void 0x0:_0x40dd96?jt(_0x7382da,_0x312de0):_0x7382da,_0x4bc81f=_0x132d9d[_0x1ce959(0x2c4)]-0x1,_0x15af61;_0x4bc81f>=0x0;_0x4bc81f--)(_0x15af61=_0x132d9d[_0x4bc81f])&&(_0x553f3b=_0x15af61(_0x553f3b)||_0x553f3b);return _0x553f3b;},he=(_0xac18a,_0x4ccb56)=>(_0x447eff,_0x2906f7)=>_0x4ccb56(_0x447eff,_0x2906f7,_0xac18a);let Q=class{constructor(_0x500c1f,_0x4ab4dd,_0x3636eb){const _0x5b8b21=_0x13f83f;this[_0x5b8b21(0x182)]=_0x500c1f,this['_transformService']=_0x4ab4dd,this[_0x5b8b21(0x177)]=_0x3636eb;}[_0x13f83f(0x324)](_0x5c7f49){this['_transformHistoryAndStateStack'](_0x5c7f49);}[_0x13f83f(0x21f)](_0x3b953d){const _0x53097a=_0x13f83f,{unitID:_0x1bbfdb}=_0x3b953d,{collaboration:_0x3b422a}=this['_docStateChangeManagerService'][_0x53097a(0x1df)](_0x1bbfdb);if(_0x3b422a[_0x53097a(0x2c4)]===0x0)return _0x3b953d;let _0x4c482b=a['Tools'][_0x53097a(0x34c)](_0x3b953d[_0x53097a(0x234)][0x0]);for(let _0xd05208=0x0;_0xd05208<_0x3b422a['length'];_0xd05208++){const _0x3dcd3a={'id':_0x53097a(0x361),'params':{'unitId':_0x3b422a[_0xd05208]['unitId'],..._0x3b422a[_0xd05208][_0x53097a(0x2d2)]}},_0x46f2f7=this['_transformService']['transformMutation'](_0x4c482b,_0x3dcd3a,!0x1);if(v[_0x53097a(0x312)](_0x46f2f7))throw _0x46f2f7[_0x53097a(0x317)];_0x4c482b=_0x46f2f7[_0x53097a(0x1bc)];}return{...a[_0x53097a(0x260)]['deepClone'](_0x3b953d),'mutations':[_0x4c482b]};}[_0x13f83f(0x34b)](_0xf60146){const _0x379dce=_0x13f83f,{unitID:_0x16dfc8}=_0xf60146,{history:_0x5500eb,collaboration:_0x374f1c}=this['_docStateChangeManagerService'][_0x379dce(0x1df)](_0x16dfc8);if(_0x5500eb[_0x379dce(0x2c4)]===0x0&&_0x374f1c[_0x379dce(0x2c4)]===0x0)return;const _0x273504=[],_0x7b23ad=[];let _0x5cb66d=a[_0x379dce(0x260)][_0x379dce(0x34c)](_0xf60146[_0x379dce(0x234)][0x0]),_0x21c283=a[_0x379dce(0x260)][_0x379dce(0x34c)](_0xf60146[_0x379dce(0x234)][0x0]);for(let _0x486888=_0x5500eb[_0x379dce(0x2c4)]-0x1;_0x486888>=0x0;_0x486888--){const _0x49a1c8={'id':_0x379dce(0x361),'params':{'unitId':_0x5500eb[_0x486888][_0x379dce(0x36a)],..._0x5500eb[_0x486888][_0x379dce(0x358)]}},_0x30dcfc={'id':_0x379dce(0x361),'params':{'unitId':_0x5500eb[_0x486888][_0x379dce(0x36a)],..._0x5500eb[_0x486888][_0x379dce(0x2d2)]}},_0x23af75=this[_0x379dce(0x23c)][_0x379dce(0x2f7)](_0x5cb66d,_0x49a1c8,!0x1),_0x41eba7=this['_transformService'][_0x379dce(0x2f7)](_0x21c283,_0x30dcfc,!0x1);if(v[_0x379dce(0x312)](_0x23af75))throw _0x23af75['error'];if(v['isTransformMutationFailure'](_0x41eba7))throw _0x41eba7[_0x379dce(0x317)];_0x273504['unshift']({..._0x5500eb[_0x486888],'undoState':_0x23af75['m2Prime'][_0x379dce(0x314)],'redoState':_0x41eba7[_0x379dce(0x301)]['params']}),_0x5cb66d=_0x23af75[_0x379dce(0x1bc)],_0x21c283=_0x41eba7[_0x379dce(0x1bc)];}_0x5cb66d=a[_0x379dce(0x260)][_0x379dce(0x34c)](_0xf60146[_0x379dce(0x234)][0x0]),_0x21c283=a[_0x379dce(0x260)][_0x379dce(0x34c)](_0xf60146['mutations'][0x0]);for(let _0xa3aa39=_0x374f1c[_0x379dce(0x2c4)]-0x1;_0xa3aa39>=0x0;_0xa3aa39--){const _0x258fb7={'id':_0x379dce(0x361),'params':{'unitId':_0x374f1c[_0xa3aa39][_0x379dce(0x36a)],..._0x374f1c[_0xa3aa39][_0x379dce(0x358)]}},_0x3139e8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x374f1c[_0xa3aa39]['unitId'],..._0x374f1c[_0xa3aa39][_0x379dce(0x2d2)]}},_0x1fe530=this[_0x379dce(0x23c)][_0x379dce(0x2f7)](_0x5cb66d,_0x258fb7,!0x1),_0x239943=this[_0x379dce(0x23c)][_0x379dce(0x2f7)](_0x21c283,_0x3139e8,!0x1);if(v[_0x379dce(0x312)](_0x1fe530))throw _0x1fe530[_0x379dce(0x317)];if(v['isTransformMutationFailure'](_0x239943))throw _0x239943['error'];_0x7b23ad[_0x379dce(0x1d4)]({..._0x374f1c[_0xa3aa39],'undoState':_0x1fe530['m2Prime']['params'],'redoState':_0x239943['m2Prime'][_0x379dce(0x314)]}),_0x5cb66d=_0x1fe530[_0x379dce(0x1bc)],_0x21c283=_0x239943[_0x379dce(0x1bc)];}this['_docStateChangeManagerService'][_0x379dce(0x313)](_0x16dfc8,{'history':_0x273504,'collaboration':_0x7b23ad});}};Q=Yt([he(0x0,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x21e)])),he(0x1,v[_0x13f83f(0x325)]),he(0x2,a[_0x13f83f(0x3f5)](p[_0x13f83f(0x26a)]))],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x2e1a24,_0x1b0099,_0x3a3e2d,_0xe1f207)=>{const _0x585838=_0x13f83f;for(var _0x171ac5=_0xe1f207>0x1?void 0x0:_0xe1f207?Ht(_0x1b0099,_0x3a3e2d):_0x1b0099,_0x2d1fa4=_0x2e1a24[_0x585838(0x2c4)]-0x1,_0x4bed4a;_0x2d1fa4>=0x0;_0x2d1fa4--)(_0x4bed4a=_0x2e1a24[_0x2d1fa4])&&(_0x171ac5=_0x4bed4a(_0x171ac5)||_0x171ac5);return _0x171ac5;},Me=(_0x5f5a6d,_0x25208e)=>(_0x2cf7dc,_0x374ad4)=>_0x25208e(_0x2cf7dc,_0x374ad4,_0x5f5a6d);let ee=class{constructor(_0xa4602,_0x10c408){const _0x56b1d7=_0x13f83f;this['_injector']=_0xa4602,this[_0x56b1d7(0x23c)]=_0x10c408;}[_0x13f83f(0x2c2)](_0x2ec3f){const _0x4a4192=_0x13f83f;var _0x451199;const _0x362a5d=this[_0x4a4192(0x182)]['get'](W['DocSelectionManagerService']),_0x24192d=(_0x451199=_0x362a5d[_0x4a4192(0x40c)]())!=null?_0x451199:[];if(_0x24192d[_0x4a4192(0x2c4)]===0x0)return;const _0x144674=_0x2ec3f[_0x4a4192(0x385)],_0x3f9261=[{'id':_0x4a4192(0x361),'params':{'unitId':_0x144674,'actions':null,'textRanges':_0x24192d}}],_0x3d8804=this[_0x4a4192(0x23c)]['transformMutationsWithChangeset'](_0x2ec3f,_0x3f9261);if(!v['isTransformMutationsWithChangesetSuccess'](_0x3d8804))throw _0x3d8804['error'];const _0x2783d7=_0x3d8804[_0x4a4192(0x301)][0x0][_0x4a4192(0x314)]['textRanges'];Array[_0x4a4192(0x287)](_0x2783d7)&&_0x2783d7[_0x4a4192(0x2c4)]&&_0x362a5d[_0x4a4192(0x269)](_0x2783d7,{'unitId':_0x144674,'subUnitId':_0x144674},!0x1);}};ee=Wt([Me(0x0,a['Inject'](a['Injector'])),Me(0x1,v[_0x13f83f(0x325)])],ee);var Vt=Object[_0x13f83f(0x2f9)],Gt=(_0x28b281,_0x2df04a,_0x5e51b1,_0x469876)=>{const _0x155190=_0x13f83f;for(var _0x210a54=_0x469876>0x1?void 0x0:_0x469876?Vt(_0x2df04a,_0x5e51b1):_0x2df04a,_0x2ab91e=_0x28b281[_0x155190(0x2c4)]-0x1,_0x312965;_0x2ab91e>=0x0;_0x2ab91e--)(_0x312965=_0x28b281[_0x2ab91e])&&(_0x210a54=_0x312965(_0x210a54)||_0x210a54);return _0x210a54;},N=(_0x1fe1fe,_0x59e62d)=>(_0x25278f,_0x871e52)=>_0x59e62d(_0x25278f,_0x871e52,_0x1fe1fe);let te=class extends a[_0x13f83f(0x2aa)]{constructor(_0x36ba60,_0x55cd19,_0x4a0f36,_0x30a583,_0x5e03b5,_0x4eb3da,_0x49fede,_0x36362c){const _0x1304e6=_0x13f83f;super(),_(this,_0x1304e6(0x346),new I['BehaviorSubject'](u[_0x1304e6(0x407)]['NOT_COLLAB'])),(this[_0x1304e6(0x177)]=_0x36ba60,this['_collaborationController']=_0x55cd19,this[_0x1304e6(0x262)]=_0x4a0f36,this[_0x1304e6(0x231)]=_0x30a583,this[_0x1304e6(0x1ae)]=_0x5e03b5,this['_docSyncEditingCollabCursorService']=_0x4eb3da,this[_0x1304e6(0x19b)]=_0x49fede,this[_0x1304e6(0x245)]=_0x36362c,this[_0x1304e6(0x405)]());}[_0x13f83f(0x405)](){const _0x498f24=_0x13f83f;this[_0x498f24(0x217)](this[_0x498f24(0x2cb)][_0x498f24(0x3dd)][_0x498f24(0x2ec)](_0x1557c6=>{const _0x4b3548=_0x498f24,_0x2cfc1b=this[_0x4b3548(0x177)][_0x4b3548(0x3db)][_0x4b3548(0x2ec)](_0x4fe14b=>{const _0x3ac898=_0x4b3548;if(_0x4fe14b==null)return;const {unitId:_0x3be781,redoState:_0x4c5c60,commandId:_0x3ca2bb}=_0x4fe14b;if(_0x3be781!==_0x1557c6[_0x3ac898(0x385)])return;const _0x5a9430={'id':_0x3ca2bb,'type':a[_0x3ac898(0x1a0)]['MUTATION'],'params':{'unitId':_0x3be781,'actions':_0x4c5c60['actions'],'textRanges':null}};_0x1557c6[_0x3ac898(0x38b)](_0x5a9430);});if(_0x1557c6[_0x4b3548(0x217)](_0x2cfc1b),_0x1557c6 instanceof u[_0x4b3548(0x1a7)]){const _0x17c317={'onTransformIME':_0xd1f2cf=>this[_0x4b3548(0x262)][_0x4b3548(0x2b3)](_0xd1f2cf),'onTransformState':_0x35e271=>this[_0x4b3548(0x231)][_0x4b3548(0x324)](_0x35e271),'onTransformSelections':_0xe993c3=>this[_0x4b3548(0x1ae)]['transformSelections'](_0xe993c3),'onSyncEditingCollabCursor':_0x186897=>this['_docSyncEditingCollabCursorService'][_0x4b3548(0x26d)](_0x186897),'onTransformRemoteChangesetByIMECache':_0x91bf82=>this[_0x4b3548(0x262)][_0x4b3548(0x21f)](_0x91bf82),'onTransformRemoteChangesetByStateCache':_0x3a1da7=>this[_0x4b3548(0x231)][_0x4b3548(0x21f)](_0x3a1da7)};_0x1557c6[_0x4b3548(0x35a)](_0x17c317);}}));}};te=Gt([N(0x0,a[_0x13f83f(0x3f5)](p['DocStateChangeManagerService'])),N(0x1,a[_0x13f83f(0x3f5)](u[_0x13f83f(0x413)])),N(0x2,a[_0x13f83f(0x3f5)](Z)),N(0x3,a['Inject'](Q)),N(0x4,a[_0x13f83f(0x3f5)](ee)),N(0x5,a[_0x13f83f(0x3f5)](Oe)),N(0x6,O[_0x13f83f(0x1eb)]),N(0x7,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x37d)]))],te);var V=(_0x5f5b63=>(_0x5f5b63[_0x5f5b63[_0x13f83f(0x286)]=0x0]=_0x13f83f(0x286),_0x5f5b63[_0x5f5b63['OK']=0x1]='OK',_0x5f5b63[_0x5f5b63[_0x13f83f(0x3ca)]=0x2]='INTERNAL_ERROR',_0x5f5b63[_0x5f5b63[_0x13f83f(0x281)]=0x3]='PERMISSION_DENIED',_0x5f5b63[_0x5f5b63[_0x13f83f(0x36d)]=0x4]=_0x13f83f(0x36d),_0x5f5b63[_0x5f5b63['UNAUTHENTICATED']=0x5]=_0x13f83f(0x218),_0x5f5b63[_0x5f5b63['ALREADY_EXISTS']=0x6]=_0x13f83f(0x33b),_0x5f5b63[_0x5f5b63[_0x13f83f(0x2d9)]=0x7]=_0x13f83f(0x2d9),_0x5f5b63[_0x5f5b63[_0x13f83f(0x1f6)]=0x8]='TOO_MANY_REQUESTS',_0x5f5b63[_0x5f5b63[_0x13f83f(0x2f3)]=0x9]=_0x13f83f(0x2f3),_0x5f5b63[_0x5f5b63[_0x13f83f(0x29f)]=0xa]=_0x13f83f(0x29f),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3d6)]=0xb]=_0x13f83f(0x3d6),_0x5f5b63[_0x5f5b63['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x13f83f(0x3b0),_0x5f5b63[_0x5f5b63[_0x13f83f(0x21a)]=0xd]=_0x13f83f(0x21a),_0x5f5b63[_0x5f5b63['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5f5b63[_0x5f5b63['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x13f83f(0x20f),_0x5f5b63[_0x5f5b63['LOGIN_TOKEN_PROCESSING_FAILED']=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x5f5b63[_0x5f5b63[_0x13f83f(0x40e)]=0x64]=_0x13f83f(0x40e),_0x5f5b63[_0x5f5b63[_0x13f83f(0x304)]=0x65]=_0x13f83f(0x304),_0x5f5b63[_0x5f5b63[_0x13f83f(0x191)]=0xc9]=_0x13f83f(0x191),_0x5f5b63[_0x5f5b63[_0x13f83f(0x41a)]=0xca]=_0x13f83f(0x41a),_0x5f5b63[_0x5f5b63['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5f5b63[_0x5f5b63[_0x13f83f(0x18b)]=0x1771]=_0x13f83f(0x18b),_0x5f5b63[_0x5f5b63[_0x13f83f(0x383)]=0x1772]=_0x13f83f(0x383),_0x5f5b63[_0x5f5b63[_0x13f83f(0x28f)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x5f5b63[_0x5f5b63[_0x13f83f(0x373)]=0x1b59]=_0x13f83f(0x373),_0x5f5b63[_0x5f5b63[_0x13f83f(0x233)]=0x1b5a]=_0x13f83f(0x233),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3c7)]=0x1b5b]=_0x13f83f(0x3c7),_0x5f5b63[_0x5f5b63[_0x13f83f(0x370)]=0x1b5c]=_0x13f83f(0x370),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3de)]=0x1b5d]=_0x13f83f(0x3de),_0x5f5b63[_0x5f5b63['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5f5b63[_0x5f5b63['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x13f83f(0x278),_0x5f5b63[_0x5f5b63['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x13f83f(0x2b1),_0x5f5b63[_0x5f5b63[_0x13f83f(0x264)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5f5b63[_0x5f5b63['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5f5b63[_0x5f5b63['LICENSE_DISTRO_REJECTED']=0x232d]=_0x13f83f(0x323),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3e9)]=0x2711]=_0x13f83f(0x3e9),_0x5f5b63[_0x5f5b63[_0x13f83f(0x2b4)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5f5b63[_0x5f5b63[_0x13f83f(0x2d8)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x5f5b63[_0x5f5b63[_0x13f83f(0x272)]=0x2714]=_0x13f83f(0x272),_0x5f5b63[_0x5f5b63[_0x13f83f(0x347)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x5f5b63[_0x5f5b63[_0x13f83f(0x30d)]=0x271b]=_0x13f83f(0x30d),_0x5f5b63[_0x5f5b63[_0x13f83f(0x39c)]=0x271c]=_0x13f83f(0x39c),_0x5f5b63[_0x5f5b63[_0x13f83f(0x236)]=0x271d]=_0x13f83f(0x236),_0x5f5b63[_0x5f5b63[_0x13f83f(0x1d0)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5f5b63[_0x5f5b63['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x5f5b63[_0x5f5b63[_0x13f83f(0x299)]=0x2720]=_0x13f83f(0x299),_0x5f5b63[_0x5f5b63['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x13f83f(0x415),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3d1)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x5f5b63[_0x5f5b63[_0x13f83f(0x1e0)]=0x2ee2]=_0x13f83f(0x1e0),_0x5f5b63[_0x5f5b63[_0x13f83f(0x306)]=0x2ee3]=_0x13f83f(0x306),_0x5f5b63[_0x5f5b63['USER_NOT_INVITED_CODE']=0x2ee4]=_0x13f83f(0x2b2),_0x5f5b63[_0x5f5b63[_0x13f83f(0x283)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5f5b63[_0x5f5b63[_0x13f83f(0x215)]=0x32c9]=_0x13f83f(0x215),_0x5f5b63[_0x5f5b63['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x13f83f(0x1f2),_0x5f5b63[_0x5f5b63['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x13f83f(0x2fd),_0x5f5b63[_0x5f5b63[_0x13f83f(0x321)]=0x36b1]='ENTITLE_CAN_NOT_BUY_LOWER_OTP',_0x5f5b63[_0x5f5b63['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x13f83f(0x2f8),_0x5f5b63[_0x5f5b63[_0x13f83f(0x380)]=0x36b3]=_0x13f83f(0x380),_0x5f5b63[_0x5f5b63[_0x13f83f(0x2ea)]=0x36b4]=_0x13f83f(0x2ea),_0x5f5b63[_0x5f5b63['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x13f83f(0x364),_0x5f5b63[_0x5f5b63['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x5f5b63[_0x5f5b63['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5f5b63[_0x5f5b63[_0x13f83f(0x32d)]=0x3a99]=_0x13f83f(0x32d),_0x5f5b63[_0x5f5b63[_0x13f83f(0x300)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x5f5b63[_0x5f5b63[_0x13f83f(0x1cf)]=0x3a9b]=_0x13f83f(0x1cf),_0x5f5b63[_0x5f5b63[_0x13f83f(0x2ba)]=0x3a9c]=_0x13f83f(0x2ba),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3ba)]=0x3a9d]=_0x13f83f(0x3ba),_0x5f5b63[_0x5f5b63[_0x13f83f(0x21c)]=0x3a9e]=_0x13f83f(0x21c),_0x5f5b63[_0x5f5b63[_0x13f83f(0x3a5)]=0x3a9f]=_0x13f83f(0x3a5),_0x5f5b63[_0x5f5b63[_0x13f83f(0x249)]=-0x1]=_0x13f83f(0x249),_0x5f5b63))(V||{});function _0x54f0(_0x3d059c,_0x5680f4){const _0x298ee6=_0x298e();return _0x54f0=function(_0x54f014,_0x18ed23){_0x54f014=_0x54f014-0x16b;let _0x4c3673=_0x298ee6[_0x54f014];return _0x4c3673;},_0x54f0(_0x3d059c,_0x5680f4);}function Xt(_0x2879f8){const _0x48f9ac=_0x13f83f;var _0x4852de,_0x1bbd16;const _0x181393=(_0x4852de=_0x2879f8['stageInfo'])==null?void 0x0:_0x4852de['stage'],_0x3b4baf=((_0x1bbd16=_0x2879f8[_0x48f9ac(0x40a)])==null?void 0x0:_0x1bbd16[_0x48f9ac(0x2c6)])||0x0;return _0x181393===x[_0x48f9ac(0x2e0)][_0x48f9ac(0x334)]&&_0x3b4baf>0x0;}function Kt(_0x5c97fc){const _0x1c0c29=_0x13f83f;return _0x5c97fc[_0x1c0c29(0x1f4)]===x[_0x1c0c29(0x34f)][_0x1c0c29(0x35f)];}var qt=Object['getOwnPropertyDescriptor'],zt=(_0x37a2b5,_0x439c9d,_0x2d2253,_0x47fddc)=>{const _0x480620=_0x13f83f;for(var _0x30b967=_0x47fddc>0x1?void 0x0:_0x47fddc?qt(_0x439c9d,_0x2d2253):_0x439c9d,_0x22814e=_0x37a2b5[_0x480620(0x2c4)]-0x1,_0x7df086;_0x22814e>=0x0;_0x22814e--)(_0x7df086=_0x37a2b5[_0x22814e])&&(_0x30b967=_0x7df086(_0x30b967)||_0x30b967);return _0x30b967;},L=(_0x260e99,_0x201c54)=>(_0xa1fa7f,_0x119156)=>_0x201c54(_0xa1fa7f,_0x119156,_0x260e99);const Jt=_0x13f83f(0x310),Zt=_0x13f83f(0x244),Qt=_0x13f83f(0x3df);let se=class extends a[_0x13f83f(0x2aa)]{constructor(_0x284e2c,_0x14bdc7,_0x505607,_0x354351,_0x4bff31,_0x300cbe,_0x5cda23){const _0x298f6a=_0x13f83f;super(),_(this,'_pollingInterval',null),_(this,_0x298f6a(0x212),0x0),_(this,_0x298f6a(0x2ca),0x0),_(this,_0x298f6a(0x23b),[]),_(this,_0x298f6a(0x1b9),0x0),(this[_0x298f6a(0x19b)]=_0x284e2c,this[_0x298f6a(0x184)]=_0x14bdc7,this['_configService']=_0x505607,this[_0x298f6a(0x3b9)]=_0x354351,this[_0x298f6a(0x292)]=_0x4bff31,this[_0x298f6a(0x1be)]=_0x300cbe,this[_0x298f6a(0x245)]=_0x5cda23,this['_initCommandInterceptor']());}[_0x13f83f(0x1dc)](){const _0x196c2b=_0x13f83f;this['disposeWithMe'](this[_0x196c2b(0x184)][_0x196c2b(0x27c)]((_0x386c2c,_0x17a780)=>{const _0x4ca76f=_0x196c2b;if(_0x386c2c['id']!==x[_0x4ca76f(0x275)]['id'])return;const _0x195572=_0x386c2c[_0x4ca76f(0x314)];if(!this[_0x4ca76f(0x376)](_0x195572['dirtyRanges']))return;if(!this[_0x4ca76f(0x2e6)]())throw this['_checkAndWaitForCalculationPermission'](_0x386c2c,_0x17a780),this[_0x4ca76f(0x3b2)](),new a[(_0x4ca76f(0x356))]();})),this['disposeWithMe'](this['_commandService'][_0x196c2b(0x3d7)]((_0x203af7,_0x4dc01b)=>{const _0x1d9425=_0x196c2b;if(_0x203af7['id']!==x[_0x1d9425(0x3b8)]['id'])return;const _0x32ec77=_0x203af7[_0x1d9425(0x314)];if(Xt(_0x32ec77)){const _0xd3550b=a[_0x1d9425(0x237)]();this[_0x1d9425(0x23b)]['push'](_0xd3550b),this['_startCalculationLimit'](_0xd3550b);}else{if(Kt(_0x32ec77)&&this['_taskIds'][_0x1d9425(0x2c4)]>0x0){const _0x20321f=this['_taskIds'][_0x1d9425(0x193)]();this[_0x1d9425(0x23a)](_0x20321f);}}}));}[_0x13f83f(0x208)](){const _0x33de06=_0x13f83f;super[_0x33de06(0x208)](),this['_clearPolling'](),this['_taskIds']=[],this['_currentUsage']=0x0,this[_0x33de06(0x212)]=0x0,this[_0x33de06(0x1b9)]=0x0;}async[_0x13f83f(0x2a8)](_0x3bc143,_0x46be8e){const _0x4eb451=_0x13f83f;for(let _0x51e76d=0x0;_0x51e76d<0x1e;_0x51e76d++)try{if(await this['_getFormulaLimitStatus'](),this['_checkCalculationAvailable']()){this[_0x4eb451(0x1c4)](_0x3bc143,_0x46be8e),this['_messageService']['show']({'content':this['_localeService']['t'](_0x4eb451(0x2fa)),'type':T[_0x4eb451(0x2b9)][_0x4eb451(0x3ee)]});return;}await new Promise(_0xf709d3=>{const _0x4f6fa0=_0x4eb451;this['_pollingInterval']=window[_0x4f6fa0(0x3ec)](_0xf709d3,0x3e8);});}catch(_0x3823ab){this['_logService'][_0x4eb451(0x317)](_0x3823ab);}this[_0x4eb451(0x19b)][_0x4eb451(0x199)]({'content':this[_0x4eb451(0x245)]['t']('formula.calculation.unable'),'type':T[_0x4eb451(0x2b9)][_0x4eb451(0x326)]});}[_0x13f83f(0x1c4)](_0xabfc57,_0x1cbded){const _0x3800b9=_0x13f83f;try{this[_0x3800b9(0x184)][_0x3800b9(0x229)](_0xabfc57['id'],_0xabfc57[_0x3800b9(0x314)],_0x1cbded);}catch(_0x4a0990){this[_0x3800b9(0x1be)][_0x3800b9(0x317)](_0x4a0990);}}['_setFormulaLimitStatus'](_0x5e2c93,_0x40dbf9){const _0x396bc3=_0x13f83f;_0x40dbf9<this[_0x396bc3(0x1b9)]||(this[_0x396bc3(0x1b9)]=_0x40dbf9,this['_maxFormulaLimit']=Number[_0x396bc3(0x404)](_0x5e2c93['maxFormulaLimit']),this[_0x396bc3(0x2ca)]=Number[_0x396bc3(0x404)](_0x5e2c93[_0x396bc3(0x295)]));}async['_startCalculationLimit'](_0x57faf9){const _0x53119d=_0x13f83f;var _0x53003a,_0xd36693;const _0x360ed0=Date['now']();try{const _0x82e677=((_0x53003a=this[_0x53119d(0x41d)][_0x53119d(0x2b5)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x53003a[_0x53119d(0x271)])||Zt,_0x21e95e=(await this[_0x53119d(0x3b9)][_0x53119d(0x31b)](_0x82e677,{'body':JSON['stringify']({'taskId':_0x57faf9})}))['body'];if(((_0xd36693=_0x21e95e[_0x53119d(0x317)])==null?void 0x0:_0xd36693[_0x53119d(0x259)])!==V['OK'])return;this[_0x53119d(0x371)](_0x21e95e[_0x53119d(0x410)],_0x360ed0);}catch(_0xbe8e0c){this['_logService'][_0x53119d(0x317)](_0xbe8e0c);}}async[_0x13f83f(0x16b)](_0x56885a){const _0x43ab23=_0x13f83f;var _0x3dd5da,_0xa87a02;const _0xa47079=Date[_0x43ab23(0x187)]();try{const _0x137102=((_0x3dd5da=this[_0x43ab23(0x41d)]['getConfig'](u[_0x43ab23(0x2af)]))==null?void 0x0:_0x3dd5da[_0x43ab23(0x3bb)])||Jt,_0x26420d=_0x56885a?_0x137102+_0x43ab23(0x3fa)+encodeURIComponent(_0x56885a):_0x137102,_0x341721=(await this[_0x43ab23(0x3b9)][_0x43ab23(0x2fc)](_0x26420d))['body'];if(((_0xa87a02=_0x341721[_0x43ab23(0x317)])==null?void 0x0:_0xa87a02[_0x43ab23(0x259)])!==V['OK'])return;this[_0x43ab23(0x371)](_0x341721[_0x43ab23(0x410)],_0xa47079);}catch(_0x14c061){this[_0x43ab23(0x1be)]['error'](_0x14c061);}}async['_releaseCalculationLimit'](_0x35e03d){const _0xdc2a03=_0x13f83f;var _0x1c0efa,_0x5571ee;const _0x39135f=Date[_0xdc2a03(0x187)]();try{const _0x2e5dc3=((_0x1c0efa=this[_0xdc2a03(0x41d)][_0xdc2a03(0x2b5)](u[_0xdc2a03(0x2af)]))==null?void 0x0:_0x1c0efa['releaseFormulaLimitUrl'])||Qt,_0x5a6d4f=(await this[_0xdc2a03(0x3b9)][_0xdc2a03(0x31b)](_0x2e5dc3,{'body':JSON[_0xdc2a03(0x2e2)]({'taskId':_0x35e03d})}))[_0xdc2a03(0x239)];if(((_0x5571ee=_0x5a6d4f[_0xdc2a03(0x317)])==null?void 0x0:_0x5571ee['code'])!==V['OK'])return;this[_0xdc2a03(0x371)](_0x5a6d4f[_0xdc2a03(0x410)],_0x39135f);}catch(_0x7e2ac){this[_0xdc2a03(0x1be)]['error'](_0x7e2ac);}}[_0x13f83f(0x2e6)](){const _0x254007=_0x13f83f;return this[_0x254007(0x212)]===0x0?!0x0:this[_0x254007(0x212)]-this[_0x254007(0x2ca)]>0x0;}[_0x13f83f(0x24f)](){const _0x58e5f2=_0x13f83f;this['_pollingInterval']&&(clearTimeout(this['_pollingInterval']),this[_0x58e5f2(0x1a3)]=null);}['_showGuardMessage'](){const _0x599c15=_0x13f83f;this['_messageService'][_0x599c15(0x199)]({'content':this[_0x599c15(0x245)]['t']('formula.calculation.waiting'),'type':T[_0x599c15(0x2b9)]['Loading']});}[_0x13f83f(0x376)](_0x2a64aa){const _0x4e5b4e=_0x13f83f;for(const _0x4bc189 of _0x2a64aa){const {unitId:_0x3789eb,sheetId:_0x518295,range:_0x473b67}=_0x4bc189,_0xd36e93=this['_univerInstanceService'][_0x4e5b4e(0x1ff)](_0x3789eb);if(!_0xd36e93)continue;const _0x3379a1=_0xd36e93[_0x4e5b4e(0x3fd)](_0x518295);if(!_0x3379a1)continue;const _0x7e4146=_0x3379a1[_0x4e5b4e(0x1c9)]();for(let _0x14c69a=_0x473b67[_0x4e5b4e(0x198)];_0x14c69a<=_0x473b67[_0x4e5b4e(0x28c)];_0x14c69a++)for(let _0x47673b=_0x473b67[_0x4e5b4e(0x39f)];_0x47673b<=_0x473b67[_0x4e5b4e(0x419)];_0x47673b++){const _0x3e3409=_0x7e4146['getValue'](_0x14c69a,_0x47673b);if(_0x3e3409&&(a[_0x4e5b4e(0x339)](_0x3e3409['f'])||a[_0x4e5b4e(0x3ff)](_0x3e3409['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a[_0x13f83f(0x3f5)](O[_0x13f83f(0x1eb)])),L(0x1,a['ICommandService']),L(0x2,a[_0x13f83f(0x30f)]),L(0x3,a[_0x13f83f(0x3f5)](G[_0x13f83f(0x2a1)])),L(0x4,a[_0x13f83f(0x17e)]),L(0x5,a[_0x13f83f(0x31c)]),L(0x6,a['Inject'](a[_0x13f83f(0x37d)]))],se);var es=Object['getOwnPropertyDescriptor'],ts=(_0x1fb338,_0x37bebe,_0x505088,_0x19cdea)=>{const _0x572fe6=_0x13f83f;for(var _0x5f3e9e=_0x19cdea>0x1?void 0x0:_0x19cdea?es(_0x37bebe,_0x505088):_0x37bebe,_0x5c5a16=_0x1fb338[_0x572fe6(0x2c4)]-0x1,_0x340d02;_0x5c5a16>=0x0;_0x5c5a16--)(_0x340d02=_0x1fb338[_0x5c5a16])&&(_0x5f3e9e=_0x340d02(_0x5f3e9e)||_0x5f3e9e);return _0x5f3e9e;},ue=(_0x1ab736,_0xba73ce)=>(_0x4d6749,_0x44438f)=>_0xba73ce(_0x4d6749,_0x44438f,_0x1ab736);let Ee=class extends a['Disposable']{constructor(_0x20ea47,_0x1f486d,_0x499aee){const _0x2e5f72=_0x13f83f;super(),_(this,_0x2e5f72(0x3fb),new Map()),_(this,_0x2e5f72(0x3e7),new Map()),_(this,_0x2e5f72(0x345),!0x1),(this[_0x2e5f72(0x41d)]=_0x20ea47,this[_0x2e5f72(0x28b)]=_0x1f486d,this['_revisionService']=_0x499aee);}[_0x13f83f(0x395)](){const _0x2adcd6=_0x13f83f;this[_0x2adcd6(0x345)]=!0x0;}[_0x13f83f(0x1f9)](){const _0x22f13d=_0x13f83f;this[_0x22f13d(0x345)]=!0x1;}get[_0x13f83f(0x2e3)](){const _0x278290=_0x13f83f;return this[_0x278290(0x3e7)];}[_0x13f83f(0x208)](){const _0x1935af=_0x13f83f;this[_0x1935af(0x39b)]()[_0x1935af(0x37e)](()=>super['dispose']());}async[_0x13f83f(0x2be)](_0x15e4a7){const _0x4fa4d7=_0x13f83f;return this[_0x4fa4d7(0x345)]?null:this['_localStorageService'][_0x4fa4d7(0x2bd)](u[_0x4fa4d7(0x422)](_0x15e4a7));}async[_0x13f83f(0x298)](_0x56f44e,_0x1a4fd3){const _0x3c90b0=_0x13f83f;return!!this['_localStorageService'][_0x3c90b0(0x16f)](_0x56f44e,_0x1a4fd3);}['updateOfflineData'](_0xb56ba0,_0x4fcab5,_0x412443,_0x142e09){const _0x5736b7=_0x13f83f,_0x166241=this[_0x5736b7(0x290)][_0x5736b7(0x340)](_0xb56ba0);this[_0x5736b7(0x3fb)]['set'](_0xb56ba0,{'unitID':_0xb56ba0,'type':_0x4fcab5,'awaitingChangeset':_0x412443,'mutations':_0x142e09,'rev':_0x166241}),this[_0x5736b7(0x3e7)][_0x5736b7(0x279)](_0xb56ba0)||this[_0x5736b7(0x247)](_0xb56ba0);}['_scheduleSaving'](_0x3a22a1){const _0x28de5c=_0x13f83f,_0x1ed95c=this[_0x28de5c(0x25f)]();_0x1ed95c===0x0?this[_0x28de5c(0x1ef)](_0x3a22a1):this[_0x28de5c(0x3e7)][_0x28de5c(0x20b)](_0x3a22a1,setTimeout(()=>this['_saveCache'](_0x3a22a1),_0x1ed95c));}[_0x13f83f(0x25f)](){const _0x2627cf=_0x13f83f;var _0x57edfb;return(_0x57edfb=this['_configService']['getConfig'](u[_0x2627cf(0x41b)]))!=null?_0x57edfb:u['LOCAL_CACHE_INTERVAL'];}[_0x13f83f(0x1ef)](_0x2b62dd){const _0x193b27=_0x13f83f,_0x343776=this[_0x193b27(0x3e7)][_0x193b27(0x2fc)](_0x2b62dd);return _0x343776!==void 0x0&&window[_0x193b27(0x307)](_0x343776),this['_localStorageService'][_0x193b27(0x16f)](u[_0x193b27(0x422)](_0x2b62dd),this[_0x193b27(0x3fb)][_0x193b27(0x2fc)](_0x2b62dd))[_0x193b27(0x37e)](()=>this[_0x193b27(0x3e7)][_0x193b27(0x362)](_0x2b62dd));}async[_0x13f83f(0x39b)](){const _0x1df6d3=_0x13f83f,_0x3fcb3b=[];this[_0x1df6d3(0x3e7)][_0x1df6d3(0x3f0)]((_0x5ef78b,_0x9d8b12)=>{const _0x48fa24=_0x1df6d3;window[_0x48fa24(0x307)](_0x5ef78b),_0x3fcb3b[_0x48fa24(0x311)](this[_0x48fa24(0x1ef)](_0x9d8b12)[_0x48fa24(0x37e)](()=>{this['_saveTaskMap']['delete'](_0x9d8b12);}));}),await Promise[_0x1df6d3(0x38e)](_0x3fcb3b);}};Ee=ts([ue(0x0,a['IConfigService']),ue(0x1,a['ILocalStorageService']),ue(0x2,a[_0x13f83f(0x3f5)](v[_0x13f83f(0x369)]))],Ee);class Fe extends a[_0x13f83f(0x31f)]{constructor(){const _0x42a1cf=_0x13f83f;super(),_(this,_0x42a1cf(0x277)),this[_0x42a1cf(0x277)]=I[_0x42a1cf(0x2d3)](window,'popstate')[_0x42a1cf(0x253)](I['takeUntil'](this[_0x42a1cf(0x204)]),I[_0x42a1cf(0x2cd)](0x1),I[_0x42a1cf(0x2fb)](void 0x0));}[_0x13f83f(0x220)](_0x1f705d,_0x42e44f,_0x35d6dc=!0x1){const _0x24c0de=_0x13f83f,_0x30183b=new URL(window['location'][_0x24c0de(0x1e3)]);_0x30183b[_0x24c0de(0x201)][_0x24c0de(0x20b)](_0x1f705d,_0x42e44f),_0x35d6dc?window['history'][_0x24c0de(0x1dd)]('','',_0x30183b[_0x24c0de(0x2a3)]()):window[_0x24c0de(0x222)][_0x24c0de(0x2b8)]('','',_0x30183b[_0x24c0de(0x2a3)]());}[_0x13f83f(0x397)](_0x518e1a,_0xdaf24e=!0x1){const _0x24e866=_0x13f83f,_0x215696=new URL(window['location'][_0x24e866(0x1e3)]);_0x215696[_0x24e866(0x201)][_0x24e866(0x362)](_0x518e1a),_0xdaf24e?window[_0x24e866(0x222)]['replaceState']('','',_0x215696[_0x24e866(0x2a3)]()):window[_0x24e866(0x222)][_0x24e866(0x2b8)]('','',_0x215696[_0x24e866(0x2a3)]());}[_0x13f83f(0x171)](_0x48e0cf){const _0xb0aa9a=_0x13f83f;var _0x3bfed2;return(_0x3bfed2=new URL(window[_0xb0aa9a(0x25c)][_0xb0aa9a(0x1e3)])[_0xb0aa9a(0x201)][_0xb0aa9a(0x2fc)](_0x48e0cf))!=null?_0x3bfed2:void 0x0;}}var ss=Object[_0x13f83f(0x3b6)],is=Object[_0x13f83f(0x2f9)],ns=(_0x353b3e,_0x32642c,_0x2bb079)=>_0x32642c in _0x353b3e?ss(_0x353b3e,_0x32642c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bb079}):_0x353b3e[_0x32642c]=_0x2bb079,rs=(_0x2b1729,_0x18036a,_0x3cdae2,_0x32bfdd)=>{const _0x3126ba=_0x13f83f;for(var _0x561e8c=_0x32bfdd>0x1?void 0x0:_0x32bfdd?is(_0x18036a,_0x3cdae2):_0x18036a,_0x1ecfa9=_0x2b1729[_0x3126ba(0x2c4)]-0x1,_0x49d8db;_0x1ecfa9>=0x0;_0x1ecfa9--)(_0x49d8db=_0x2b1729[_0x1ecfa9])&&(_0x561e8c=_0x49d8db(_0x561e8c)||_0x561e8c);return _0x561e8c;},Ie=(_0x37c6cc,_0x3c3b12)=>(_0x56fa10,_0x316a67)=>_0x3c3b12(_0x56fa10,_0x316a67,_0x37c6cc),os=(_0xf7349a,_0x924065,_0x3c34e0)=>ns(_0xf7349a,_0x924065+'',_0x3c34e0);const as=_0x13f83f(0x338);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x330fa4=Ue,_0xae746d,_0x13b5e0,_0x466174){const _0x331ece=_0x13f83f;super(),this[_0x331ece(0x2d0)]=_0x330fa4,this[_0x331ece(0x248)]=_0xae746d,this[_0x331ece(0x182)]=_0x13b5e0,this[_0x331ece(0x41d)]=_0x466174;const {..._0x421d5d}=a[_0x331ece(0x1ac)]({},Ue,this[_0x331ece(0x2d0)]);this[_0x331ece(0x41d)][_0x331ece(0x1c0)](Bt,_0x421d5d);}[_0x13f83f(0x241)](){const _0x1e13d6=_0x13f83f;this[_0x1e13d6(0x3e8)](),this[_0x1e13d6(0x37a)]();}['onRendered'](){const _0x562850=_0x13f83f;this[_0x562850(0x3f6)]();}[_0x13f83f(0x3e8)](){const _0x3672bb=_0x13f83f;var _0x45e244;const _0x130052=[[Te],[se],[ee],[Z],[Q],[Oe],[pe,{'useClass':Fe}],[G[_0x3672bb(0x225)],{'useClass':G['WebSocketService']}],[u[_0x3672bb(0x176)],{'useClass':Ee}],[exports['DesktopCollaborationStatusDisplayController']],[te],[J],[B],[de],[exports[_0x3672bb(0x2d7)]]];a[_0x3672bb(0x243)](this[_0x3672bb(0x182)],a[_0x3672bb(0x1b8)](_0x130052,(_0x45e244=this[_0x3672bb(0x2d0)])==null?void 0x0:_0x45e244['override']));}[_0x13f83f(0x3f6)](){const _0x19ffe4=_0x13f83f;this[_0x19ffe4(0x217)](this[_0x19ffe4(0x248)][_0x19ffe4(0x3ab)](a[_0x19ffe4(0x3f2)][_0x19ffe4(0x29c)],[ge])),this[_0x19ffe4(0x217)](this[_0x19ffe4(0x248)][_0x19ffe4(0x3ab)](a['UniverInstanceType']['UNIVER_SHEET'],[ve]));}['_initDependencies'](){const _0x5b441c=_0x13f83f;a[_0x5b441c(0x3aa)](this[_0x5b441c(0x182)],[[B],[exports[_0x5b441c(0x3dc)]],[te],[J],[exports['CollaborationDataLoaderController']],[se]]);}},os(exports[_0x13f83f(0x17c)],_0x13f83f(0x2e4),as),exports[_0x13f83f(0x17c)]=rs([a[_0x13f83f(0x332)](u['UniverCollaborationClientPlugin']),Ie(0x1,C[_0x13f83f(0x1b5)]),Ie(0x2,a[_0x13f83f(0x3f5)](a[_0x13f83f(0x21e)])),Ie(0x3,a[_0x13f83f(0x30f)])],exports[_0x13f83f(0x17c)]);var cs=Object['getOwnPropertyDescriptor'],ls=(_0x24ba55,_0x363ac3,_0x150265,_0x1a839a)=>{const _0x1f81fc=_0x13f83f;for(var _0x35efec=_0x1a839a>0x1?void 0x0:_0x1a839a?cs(_0x363ac3,_0x150265):_0x363ac3,_0x188266=_0x24ba55[_0x1f81fc(0x2c4)]-0x1,_0x308b2f;_0x188266>=0x0;_0x188266--)(_0x308b2f=_0x24ba55[_0x188266])&&(_0x35efec=_0x308b2f(_0x35efec)||_0x35efec);return _0x35efec;},H=(_0x2cf3a2,_0x3f19a3)=>(_0x28c0ad,_0x1ea8e2)=>_0x3f19a3(_0x28c0ad,_0x1ea8e2,_0x2cf3a2);exports[_0x13f83f(0x348)]=class extends u[_0x13f83f(0x382)]{constructor(_0x403393,_0x30ed19,_0x2facf7,_0x2149eb,_0x42f738){super(_0x403393,_0x30ed19,_0x2facf7,_0x2149eb,_0x42f738);}async[_0x13f83f(0x246)](_0x4b9798){const _0x5a4813=_0x13f83f,_0x389563=await this[_0x5a4813(0x21d)](),_0xaed8b1=this[_0x5a4813(0x3e0)](_0x4b9798,_0x389563);return this[_0x5a4813(0x1c7)](_0xaed8b1);}[_0x13f83f(0x3e0)](_0x47bfde,_0x2a45aa){const _0x594d61=_0x13f83f,_0x5eea9b=typeof window>'u'?new URL(_0x47bfde):new URL(_0x47bfde,window[_0x594d61(0x25c)][_0x594d61(0x3ef)]);_0x5eea9b[_0x594d61(0x201)]['set'](_0x594d61(0x185),_0x2a45aa);const _0x402000=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x594d61(0x25c)]['search']);return _0x402000['get'](_0x594d61(0x26b))&&_0x5eea9b['searchParams'][_0x594d61(0x20b)](_0x594d61(0x26b),_0x402000[_0x594d61(0x2fc)]('runId')),_0x5eea9b[_0x594d61(0x2a3)]();}async[_0x13f83f(0x21d)](){const _0x46e6f0=_0x13f83f;var _0xa10d5b,_0x2dde0e,_0x84bad2;const _0x2c2c2b=this[_0x46e6f0(0x41d)][_0x46e6f0(0x2b5)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x2083dc=(_0xa10d5b=_0x2c2c2b==null?void 0x0:_0x2c2c2b[_0x46e6f0(0x258)])!=null?_0xa10d5b:u[_0x46e6f0(0x3fc)];return(_0x84bad2=(_0x2dde0e=(await this[_0x46e6f0(0x3b9)]['get'](_0x2083dc,{'headers':{'Content-Type':_0x46e6f0(0x319)}}))['body'])==null?void 0x0:_0x2dde0e[_0x46e6f0(0x2cf)])!=null?_0x84bad2:'';}},exports[_0x13f83f(0x348)]=ls([H(0x0,a['Inject'](a[_0x13f83f(0x21e)])),H(0x1,a[_0x13f83f(0x3f5)](G[_0x13f83f(0x2a1)])),H(0x2,a[_0x13f83f(0x30f)]),H(0x3,a['ILogService']),H(0x4,v[_0x13f83f(0x29e)])],exports['BrowserCollaborationSocketService']);var _s=Object[_0x13f83f(0x2f9)],hs=(_0xb3faed,_0x324b32,_0x11c544,_0x4be6e0)=>{const _0x5ed029=_0x13f83f;for(var _0x17bcd3=_0x4be6e0>0x1?void 0x0:_0x4be6e0?_s(_0x324b32,_0x11c544):_0x324b32,_0x4f37dc=_0xb3faed[_0x5ed029(0x2c4)]-0x1,_0x3519cb;_0x4f37dc>=0x0;_0x4f37dc--)(_0x3519cb=_0xb3faed[_0x4f37dc])&&(_0x17bcd3=_0x3519cb(_0x17bcd3)||_0x17bcd3);return _0x17bcd3;},Se=(_0xbc8f3b,_0x4d6fd3)=>(_0x589af6,_0x12bc84)=>_0x4d6fd3(_0x589af6,_0x12bc84,_0xbc8f3b);exports[_0x13f83f(0x1a9)]=class extends a[_0x13f83f(0x2aa)]{constructor(_0x353043,_0x398783,_0x30bf47){const _0x37c1be=_0x13f83f;super(),this[_0x37c1be(0x381)]=_0x353043,this[_0x37c1be(0x3b9)]=_0x398783,this[_0x37c1be(0x41d)]=_0x30bf47;}async[_0x13f83f(0x19d)](_0x499734,_0x6534f4,_0x5b048f,..._0x572eeb){const _0x11adc4=_0x13f83f;var _0x4c77e4,_0x95cc01,_0x22ca8f,_0x4b189a;const _0x44f991=this['_instanceService'][_0x11adc4(0x1c5)]();if(!_0x44f991)throw new Error(_0x11adc4(0x3d0));const _0x2ba4d1=((_0x4c77e4=this[_0x11adc4(0x41d)][_0x11adc4(0x2b5)](u[_0x11adc4(0x2ae)]))!=null?_0x4c77e4:u[_0x11adc4(0x266)])+'/'+_0x499734+'/run/'+_0x6534f4,_0x5327d7=new URL(window['location']['href']),_0x20e9c4={'scriptId':_0x499734,'runId':(_0x95cc01=_0x5327d7[_0x11adc4(0x201)][_0x11adc4(0x2fc)](_0x11adc4(0x26b)))!=null?_0x95cc01:'','function':_0x6534f4,'unitId':_0x44f991['getUnitId'](),'argsOfFunction':JSON[_0x11adc4(0x2e2)](_0x572eeb),'invokeId':(_0x22ca8f=_0x5b048f[_0x11adc4(0x1d6)])!=null?_0x22ca8f:'','executionId':(_0x4b189a=_0x5b048f['executionId'])!=null?_0x4b189a:''};try{const _0x1f0208=await this[_0x11adc4(0x3b9)][_0x11adc4(0x31b)](_0x2ba4d1,{'body':_0x20e9c4});return _0x1f0208[_0x11adc4(0x239)][_0x11adc4(0x317)]&&_0x1f0208[_0x11adc4(0x239)][_0x11adc4(0x317)][_0x11adc4(0x259)]!==V['OK']?_0x11adc4(0x1bf):_0x1f0208[_0x11adc4(0x239)][_0x11adc4(0x375)];}catch{return _0x11adc4(0x1bf);}}},exports[_0x13f83f(0x1a9)]=hs([Se(0x0,a['IUniverInstanceService']),Se(0x1,a[_0x13f83f(0x3f5)](G[_0x13f83f(0x2a1)])),Se(0x2,a[_0x13f83f(0x30f)])],exports['RemoteUniscriptService']);const Ae=0x7530,Pe=_0x13f83f(0x3d9);class us extends a[_0x13f83f(0x2aa)]{constructor(){const _0x599416=_0x13f83f;super(),_(this,_0x599416(0x228),a[_0x599416(0x237)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x599416(0x18a),new Map()),_(this,_0x599416(0x210),null),_(this,_0x599416(0x2ef),new Map()),_(this,_0x599416(0x360),new Map()),this['_init']();}[_0x13f83f(0x208)](){const _0x861862=_0x13f83f;super[_0x861862(0x208)](),this['_clearOtherTimers'][_0x861862(0x3f0)]((_0x10c835,_0x54ba42)=>this[_0x861862(0x1bb)](_0x54ba42)),this['_heartbeatTimer']&&window[_0x861862(0x2de)](this[_0x861862(0x210)]);}[_0x13f83f(0x39e)](_0x5e2a7a){const _0x1caa1a=_0x13f83f;return this['_ensureSubject'](_0x5e2a7a)[_0x1caa1a(0x253)](I[_0x1caa1a(0x3a0)]());}['editingUnit'](_0x48d78d){const _0x2736d7=_0x13f83f;this['_selfUnitIDs'][_0x2736d7(0x3b5)]===0x0&&this[_0x2736d7(0x394)](),this[_0x2736d7(0x268)]['add'](_0x48d78d),this[_0x2736d7(0x26f)]({'type':0x0,'memberID':this[_0x2736d7(0x228)],'unitIDs':[_0x48d78d],'isForwarded':!0x1});}[_0x13f83f(0x414)](_0x2841cd){const _0x11a5dc=_0x13f83f;this[_0x11a5dc(0x268)][_0x11a5dc(0x362)](_0x2841cd),this[_0x11a5dc(0x268)][_0x11a5dc(0x3b5)]===0x0&&this[_0x11a5dc(0x210)]&&window[_0x11a5dc(0x2de)](this['_heartbeatTimer']);}[_0x13f83f(0x2f4)](){const _0x49fafa=_0x13f83f;this['disposeWithMe'](a[_0x49fafa(0x365)](I[_0x49fafa(0x2d3)](window,_0x49fafa(0x330))[_0x49fafa(0x2ec)](_0x1bfb61=>{const _0x4b2d11=_0x49fafa;if(_0x1bfb61[_0x4b2d11(0x3f7)]!==Pe||!_0x1bfb61[_0x4b2d11(0x315)])return;const _0x4fe81b=JSON['parse'](_0x1bfb61[_0x4b2d11(0x315)]);this[_0x4b2d11(0x265)](_0x4fe81b);}))),window['addEventListener'](_0x49fafa(0x183),()=>this[_0x49fafa(0x26f)]({'type':0x1,'memberID':this[_0x49fafa(0x228)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x13f83f(0x265)](_0x142321){const _0x2d793d=_0x13f83f;switch(_0x142321[_0x2d793d(0x3af)]){case 0x0:this['_handleJoinEvent'](_0x142321);break;case 0x1:this[_0x2d793d(0x1fa)](_0x142321);break;case 0x2:this[_0x2d793d(0x284)](_0x142321);break;}}['_handleJoinEvent'](_0x4ac97a){const _0xf8adb0=_0x13f83f,{unitIDs:_0x275f33,memberID:_0x1e8238,isForwarded:_0x414140}=_0x4ac97a;_0x275f33[_0xf8adb0(0x3f0)](_0x35de7e=>{const _0xf81184=_0xf8adb0;if(!_0x414140&&this[_0xf81184(0x18a)]['has'](_0x35de7e)&&this[_0xf81184(0x27b)](_0x35de7e)[_0xf81184(0x36b)](u[_0xf81184(0x1fd)][_0xf81184(0x420)]),!this[_0xf81184(0x18a)][_0xf81184(0x279)](_0x35de7e)||!this['_unitOnClients'][_0xf81184(0x2fc)](_0x35de7e)[_0xf81184(0x279)](_0x1e8238)){const _0xe1112a=this[_0xf81184(0x18a)][_0xf81184(0x2fc)](_0x35de7e)||new Set();_0xe1112a[_0xf81184(0x1e7)](_0x1e8238),this['_unitOnClients'][_0xf81184(0x20b)](_0x35de7e,_0xe1112a),this[_0xf81184(0x379)](_0x1e8238);}}),_0x414140||this[_0xf8adb0(0x26f)]({'type':0x0,'memberID':this[_0xf8adb0(0x228)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x13f83f(0x379)](_0x59351d){const _0x227f3b=_0x13f83f;this[_0x227f3b(0x1bb)](_0x59351d);const _0x53d450=window[_0x227f3b(0x3ec)](()=>{const _0x341324=_0x227f3b;this[_0x341324(0x18a)][_0x341324(0x3f0)](_0x49d43a=>{const _0x394993=_0x341324;_0x49d43a[_0x394993(0x362)](_0x59351d);});},Ae*0x2);this[_0x227f3b(0x2ef)][_0x227f3b(0x20b)](_0x59351d,_0x53d450);}[_0x13f83f(0x1bb)](_0x53f7f1){const _0x397235=_0x13f83f;if(this[_0x397235(0x2ef)][_0x397235(0x279)](_0x53f7f1)){const _0x26a438=this[_0x397235(0x2ef)][_0x397235(0x2fc)](_0x53f7f1);_0x26a438&&window[_0x397235(0x307)](_0x26a438),this[_0x397235(0x2ef)][_0x397235(0x20b)](_0x53f7f1,null);}}[_0x13f83f(0x1fa)](_0x39e42b){const _0x579cba=_0x13f83f,{memberID:_0x401eac,unitIDs:_0x2c4ac2}=_0x39e42b;_0x2c4ac2[_0x579cba(0x3f0)](_0x515cea=>{const _0x309832=_0x579cba;var _0x41a2cd;const _0x335c68=this[_0x309832(0x18a)][_0x309832(0x2fc)](_0x515cea);_0x335c68&&(_0x335c68['delete'](_0x401eac),(_0x41a2cd=this['_ensureSubject'](_0x515cea))==null||_0x41a2cd[_0x309832(0x36b)](_0x335c68[_0x309832(0x3b5)]===0x0?u['UnitStatus'][_0x309832(0x267)]:u[_0x309832(0x1fd)][_0x309832(0x420)]));}),this[_0x579cba(0x1bb)](_0x401eac);}['_handleHeartbeatEvent'](_0x35e8d0){const _0x233d06=_0x13f83f;this['_scheduleClearOtherTimer'](_0x35e8d0[_0x233d06(0x331)]);}[_0x13f83f(0x26f)](_0x392ad6){const _0x4474be=_0x13f83f;localStorage[_0x4474be(0x16f)](Pe,JSON[_0x4474be(0x2e2)](_0x392ad6));}['_scheduleHeartbeat'](){const _0x15c705=_0x13f83f;this[_0x15c705(0x210)]=window[_0x15c705(0x417)](()=>{const _0x26753c=_0x15c705;this[_0x26753c(0x26f)]({'type':0x2,'memberID':this[_0x26753c(0x228)]});},Ae);}[_0x13f83f(0x27b)](_0x3a934a){const _0x3c0e54=_0x13f83f;return this[_0x3c0e54(0x360)][_0x3c0e54(0x279)](_0x3a934a)||this[_0x3c0e54(0x360)][_0x3c0e54(0x20b)](_0x3a934a,new I[(_0x3c0e54(0x342))](u[_0x3c0e54(0x1fd)][_0x3c0e54(0x267)])),this[_0x3c0e54(0x360)][_0x3c0e54(0x2fc)](_0x3a934a);}}exports[_0x13f83f(0x31a)]=pe,exports[_0x13f83f(0x3be)]=Be,exports['WebBrowserSingleActiveUnitService']=us,exports[_0x13f83f(0x3a3)]=Fe;
1
+ 'use strict';const _0x56cc55=_0x5cb8;(function(_0x1f753d,_0x3fe2f5){const _0x5e4edf=_0x5cb8,_0x53b6c2=_0x1f753d();while(!![]){try{const _0x149857=-parseInt(_0x5e4edf(0x1af))/0x1+-parseInt(_0x5e4edf(0x2dc))/0x2*(-parseInt(_0x5e4edf(0x2c8))/0x3)+-parseInt(_0x5e4edf(0x331))/0x4*(parseInt(_0x5e4edf(0x2af))/0x5)+parseInt(_0x5e4edf(0x377))/0x6+-parseInt(_0x5e4edf(0x11c))/0x7*(parseInt(_0x5e4edf(0x154))/0x8)+parseInt(_0x5e4edf(0x25c))/0x9*(parseInt(_0x5e4edf(0x183))/0xa)+parseInt(_0x5e4edf(0x114))/0xb*(-parseInt(_0x5e4edf(0x2e7))/0xc);if(_0x149857===_0x3fe2f5)break;else _0x53b6c2['push'](_0x53b6c2['shift']());}catch(_0x55e92b){_0x53b6c2['push'](_0x53b6c2['shift']());}}}(_0x2fa8,0x495ab));var Ve=Object['defineProperty'],Ge=(_0x16a59b,_0x46e14d,_0x2ed8ef)=>_0x46e14d in _0x16a59b?Ve(_0x16a59b,_0x46e14d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ed8ef}):_0x16a59b[_0x46e14d]=_0x2ed8ef,_=(_0x39a9b7,_0x1289a1,_0x5604cf)=>Ge(_0x39a9b7,typeof _0x1289a1!=_0x56cc55(0x27f)?_0x1289a1+'':_0x1289a1,_0x5604cf);Object['defineProperty'](exports,Symbol[_0x56cc55(0x34c)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),T=require('@univerjs/design'),A=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),G=require('@univerjs/network'),p=require('@univerjs/docs-ui'),Ke=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),W=require('@univerjs/docs'),x=require('@univerjs/engine-formula'),$=require('rxjs/operators'),z=require('@univerjs/sheets-ui');function Ce({ref:_0x567ee1,..._0x24bf7b}){const _0x3faecc=_0x56cc55,{icon:_0x2105e8,id:_0x335f17,className:_0x3c9760,extend:_0x3a28e7,..._0x209fa6}=_0x24bf7b,_0x10c334=(_0x3faecc(0xf9)+_0x335f17+'\x20'+(_0x3c9760||''))[_0x3faecc(0x26a)](),_0xcb930e=A[_0x3faecc(0x2c1)]('_'+Je());return we(_0x2105e8,''+_0x335f17,{'defIds':_0x2105e8[_0x3faecc(0x266)],'idSuffix':_0xcb930e[_0x3faecc(0x2ac)]},{'ref':_0x567ee1,'className':_0x10c334,..._0x209fa6},_0x3a28e7);}function we(_0x2133d8,_0x1e659f,_0x1de5e0,_0x5de397,_0x4f4165){const _0x349b6a=_0x56cc55;return A[_0x349b6a(0x1c5)](_0x2133d8['tag'],{'key':_0x1e659f,...qe(_0x2133d8,_0x1de5e0,_0x4f4165),..._0x5de397},(ze(_0x2133d8,_0x1de5e0)[_0x349b6a(0x1ba)]||[])[_0x349b6a(0x195)]((_0x314fe0,_0x2c681f)=>we(_0x314fe0,_0x1e659f+'-'+_0x2133d8[_0x349b6a(0x11b)]+'-'+_0x2c681f,_0x1de5e0,void 0x0,_0x4f4165)));}function qe(_0x4afad1,_0xbf5959,_0x56b956){const _0x4bb9b3=_0x56cc55,_0x41c822={..._0x4afad1[_0x4bb9b3(0x33e)]};_0x56b956!=null&&_0x56b956[_0x4bb9b3(0x129)]&&_0x41c822['fill']===_0x4bb9b3(0x129)&&(_0x41c822[_0x4bb9b3(0x180)]=_0x56b956[_0x4bb9b3(0x129)]),_0x4afad1[_0x4bb9b3(0x11b)]===_0x4bb9b3(0x36f)&&_0x41c822['id']&&(_0x41c822['id']=_0x41c822['id']+_0xbf5959[_0x4bb9b3(0x208)]),Object['entries'](_0x41c822)['forEach'](([_0x53b3f7,_0x2fbc31])=>{const _0x51e23b=_0x4bb9b3;_0x53b3f7===_0x51e23b(0x36f)&&typeof _0x2fbc31==_0x51e23b(0x188)&&(_0x41c822[_0x53b3f7]=_0x2fbc31[_0x51e23b(0x240)](/url\(#(.*)\)/,_0x51e23b(0x1ac)+_0xbf5959[_0x51e23b(0x208)]+')'));});const {defIds:_0x45c94b}=_0xbf5959;return!_0x45c94b||_0x45c94b[_0x4bb9b3(0x38a)]===0x0||(_0x4afad1[_0x4bb9b3(0x11b)]===_0x4bb9b3(0x2c2)&&_0x41c822[_0x4bb9b3(0x19b)]&&(_0x41c822['xlink:href']=_0x41c822[_0x4bb9b3(0x19b)]+_0xbf5959[_0x4bb9b3(0x208)]),Object[_0x4bb9b3(0x2ad)](_0x41c822)[_0x4bb9b3(0x306)](([_0x36c921,_0x891988])=>{const _0x94abb2=_0x4bb9b3;typeof _0x891988==_0x94abb2(0x188)&&(_0x41c822[_0x36c921]=_0x891988[_0x94abb2(0x240)](/url\(#(.*)\)/,_0x94abb2(0x1ac)+_0xbf5959[_0x94abb2(0x208)]+')'));})),_0x41c822;}function ze(_0x5651fd,_0x56f7dc){const _0x55d2bf=_0x56cc55;var _0x164467;const {defIds:_0xba01a3}=_0x56f7dc;return!_0xba01a3||_0xba01a3[_0x55d2bf(0x38a)]===0x0?_0x5651fd:_0x5651fd[_0x55d2bf(0x11b)]===_0x55d2bf(0x2c3)&&((_0x164467=_0x5651fd[_0x55d2bf(0x1ba)])!=null&&_0x164467[_0x55d2bf(0x38a)])?{..._0x5651fd,'children':_0x5651fd['children']['map'](_0x4ebee4=>typeof _0x4ebee4['attrs']['id']==_0x55d2bf(0x188)&&_0xba01a3&&_0xba01a3[_0x55d2bf(0xfe)](_0x4ebee4[_0x55d2bf(0x33e)]['id'])?{..._0x4ebee4,'attrs':{..._0x4ebee4['attrs'],'id':_0x4ebee4[_0x55d2bf(0x33e)]['id']+_0x56f7dc[_0x55d2bf(0x208)]}}:_0x4ebee4)}:_0x5651fd;}function Je(){const _0x301ca5=_0x56cc55;return Math[_0x301ca5(0x231)]()[_0x301ca5(0x175)](0x24)[_0x301ca5(0x1a5)](0x2,0x8);}Ce[_0x56cc55(0x26b)]=_0x56cc55(0x38d);const Ze={'tag':_0x56cc55(0x2fa),'attrs':{'xmlns':_0x56cc55(0x376),'fill':_0x56cc55(0x2b3),'viewBox':'0\x200\x2016\x2016','width':_0x56cc55(0x123),'height':_0x56cc55(0x123)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x56cc55(0xe5),'d':_0x56cc55(0x1d7),'strokeLinecap':_0x56cc55(0x25e),'strokeLinejoin':_0x56cc55(0x25e),'strokeWidth':1.2}}]},{'tag':_0x56cc55(0x2c3),'attrs':{},'children':[{'tag':_0x56cc55(0x1d6),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'white','d':_0x56cc55(0x10f)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=A[_0x56cc55(0x13e)](function(_0x3baac3,_0x2dd8d2){const _0x2f58fc=_0x56cc55;return A[_0x2f58fc(0x1c5)](Ce,Object[_0x2f58fc(0x15f)]({},_0x3baac3,{'id':_0x2f58fc(0x151),'ref':_0x2dd8d2,'icon':Ze}));});ye[_0x56cc55(0x26b)]=_0x56cc55(0x256);const Qe={'tag':_0x56cc55(0x2fa),'attrs':{'xmlns':_0x56cc55(0x376),'fill':'none','viewBox':_0x56cc55(0x33b),'width':_0x56cc55(0x123),'height':_0x56cc55(0x123)},'children':[{'tag':'g','attrs':{'clipPath':_0x56cc55(0x22b)},'children':[{'tag':_0x56cc55(0x31b),'attrs':{'stroke':_0x56cc55(0xe5),'d':_0x56cc55(0x1dc),'strokeLinecap':_0x56cc55(0x25e),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x56cc55(0x2c3),'attrs':{},'children':[{'tag':_0x56cc55(0x1d6),'attrs':{'id':_0x56cc55(0x220)},'children':[{'tag':_0x56cc55(0x31b),'attrs':{'fill':_0x56cc55(0x179),'d':'M0\x200H16V16H0z','transform':_0x56cc55(0x1fe)}}]}]}],'defIds':[_0x56cc55(0x220)]},$e=A[_0x56cc55(0x13e)](function(_0x3faf9e,_0x2b5d11){const _0x4d3572=_0x56cc55;return A[_0x4d3572(0x1c5)](Ce,Object[_0x4d3572(0x15f)]({},_0x3faf9e,{'id':'on-line-icon','ref':_0x2b5d11,'icon':Qe}));});$e['displayName']=_0x56cc55(0x105);function _0x5cb8(_0x1dd51b,_0x59611f){const _0x2fa816=_0x2fa8();return _0x5cb8=function(_0x5cb81c,_0x36ff81){_0x5cb81c=_0x5cb81c-0xd2;let _0x2ff82a=_0x2fa816[_0x5cb81c];return _0x2ff82a;},_0x5cb8(_0x1dd51b,_0x59611f);}function et(_0x2d63ad){const _0x33d064=_0x56cc55;switch(_0x2d63ad){case u[_0x33d064(0x2ef)][_0x33d064(0x29d)]:return _0x33d064(0x14e);case u[_0x33d064(0x2ef)][_0x33d064(0x2b8)]:return _0x33d064(0x1c1);case u['CollaborationStatus'][_0x33d064(0x19f)]:return _0x33d064(0x23d);case u[_0x33d064(0x2ef)][_0x33d064(0x2ff)]:return _0x33d064(0xe2);case u[_0x33d064(0x2ef)][_0x33d064(0x336)]:case u[_0x33d064(0x2ef)][_0x33d064(0x275)]:return _0x33d064(0x362);case u[_0x33d064(0x2ef)][_0x33d064(0xef)]:case u['CollaborationStatus'][_0x33d064(0x176)]:return _0x33d064(0x159);}}function tt(_0x1ca1fa){const _0x54e4e4=_0x56cc55,{status$:_0x52b60a}=_0x1ca1fa,_0x2a8112=O[_0x54e4e4(0x141)](_0x52b60a,u['CollaborationStatus'][_0x54e4e4(0x2ff)]),_0x4e2b09=O[_0x54e4e4(0x143)](a[_0x54e4e4(0x1f2)]),_0x458cae=O['useDependency'](u['CollaborationSessionService']),_0x288deb=_0x2a8112!==u[_0x54e4e4(0x2ef)][_0x54e4e4(0x29d)],_0x2a79fa=_0x4e2b09['t'](et(_0x2a8112)),_0x1c97fa=_0x288deb?M[_0x54e4e4(0x134)]($e,{}):M[_0x54e4e4(0x134)](ye,{}),_0x398ca5=A[_0x54e4e4(0x1df)](()=>{_0x288deb||_0x458cae['reconnect']();},[_0x288deb,_0x458cae]);function _0x4e05a9(){const _0x1bf20e=_0x54e4e4;return M['jsxs'](_0x1bf20e(0x160),{'className':_0x1bf20e(0x34a),'onClick':_0x398ca5,'children':[M[_0x1bf20e(0x134)](_0x1bf20e(0x160),{'className':T['clsx'](_0x1bf20e(0x27e),{'univer-text-green-500':_0x288deb,'univer-text-red-500':!_0x288deb}),'children':_0x1c97fa}),M[_0x1bf20e(0x134)](_0x1bf20e(0x160),{'className':_0x1bf20e(0x37b),'children':_0x2a79fa})]});}return _0x288deb?_0x4e05a9():M[_0x54e4e4(0x134)](T[_0x54e4e4(0x29e)],{'title':_0x4e2b09['t'](_0x54e4e4(0x109)),'children':_0x4e05a9()});}var st=Object['getOwnPropertyDescriptor'],it=(_0x2301bc,_0x3f46b6,_0x5eda45,_0x13af4f)=>{const _0x1085d1=_0x56cc55;for(var _0x3728aa=_0x13af4f>0x1?void 0x0:_0x13af4f?st(_0x3f46b6,_0x5eda45):_0x3f46b6,_0x518302=_0x2301bc[_0x1085d1(0x38a)]-0x1,_0x2c1327;_0x518302>=0x0;_0x518302--)(_0x2c1327=_0x2301bc[_0x518302])&&(_0x3728aa=_0x2c1327(_0x3728aa)||_0x3728aa);return _0x3728aa;},K=(_0x3b860f,_0x28bb32)=>(_0x4a9a81,_0x14130e)=>_0x28bb32(_0x4a9a81,_0x14130e,_0x3b860f);exports[_0x56cc55(0x2fd)]=class extends a[_0x56cc55(0x30f)]{constructor(_0x2982e0,_0x3ab163,_0x57c1a3,_0x2b9d04){const _0x3f3896=_0x56cc55;super(),_(this,_0x3f3896(0x1ce),new I[(_0x3f3896(0x1b2))](u[_0x3f3896(0x2ef)][_0x3f3896(0x2ff)])),(this[_0x3f3896(0x389)]=_0x2982e0,this[_0x3f3896(0x18a)]=_0x3ab163,this[_0x3f3896(0x2fb)]=_0x57c1a3,this[_0x3f3896(0x305)]=_0x2b9d04,this[_0x3f3896(0x1ec)](),this['_initStatusListener']());}[_0x56cc55(0x117)](){const _0x1ccad9=_0x56cc55;this['disposeWithMe'](this['_univerInstanceService']['focused$']['pipe'](I[_0x1ccad9(0x261)](()=>{const _0x732b48=_0x1ccad9,_0x3e8e0d=this[_0x732b48(0x389)][_0x732b48(0x116)]();return _0x3e8e0d?this[_0x732b48(0x2fb)]['getCollabEntity$'](_0x3e8e0d['getUnitId']()):I['of'](null);}),I[_0x1ccad9(0x261)](_0x41d870=>_0x41d870?_0x41d870[_0x1ccad9(0x270)]:I['of'](u['CollaborationStatus']['NOT_COLLAB'])))[_0x1ccad9(0xdc)](_0x56f4f4=>{const _0x5d6a7e=_0x1ccad9;this[_0x5d6a7e(0x1ce)]['next'](_0x56f4f4);}));}[_0x56cc55(0x1ec)](){const _0x2bb917=_0x56cc55;this['disposeWithMe'](this[_0x2bb917(0x305)][_0x2bb917(0x174)](O['BuiltInUIPart'][_0x2bb917(0x36c)],()=>O['connectInjector'](nt({'status$':this[_0x2bb917(0x1ce)][_0x2bb917(0x2a2)]()}),this['_injector'])));}},exports[_0x56cc55(0x2fd)]=it([K(0x0,a[_0x56cc55(0x211)]),K(0x1,a[_0x56cc55(0x32f)](a['Injector'])),K(0x2,a[_0x56cc55(0x32f)](u[_0x56cc55(0x198)])),K(0x3,O[_0x56cc55(0x269)])],exports[_0x56cc55(0x2fd)]);function nt(_0x2458db){const {status$:_0xe4eda8}=_0x2458db;return function(){return M['jsx'](tt,{'status$':_0xe4eda8});};}const pe=a[_0x56cc55(0x229)](_0x56cc55(0x247));var rt=Object['getOwnPropertyDescriptor'],ot=(_0x957279,_0x3068d8,_0x546018,_0xa99a3d)=>{const _0x26e2d4=_0x56cc55;for(var _0x2d2a33=_0xa99a3d>0x1?void 0x0:_0xa99a3d?rt(_0x3068d8,_0x546018):_0x3068d8,_0x5f28ca=_0x957279[_0x26e2d4(0x38a)]-0x1,_0x16d969;_0x5f28ca>=0x0;_0x5f28ca--)(_0x16d969=_0x957279[_0x5f28ca])&&(_0x2d2a33=_0x16d969(_0x2d2a33)||_0x2d2a33);return _0x2d2a33;},j=(_0x146338,_0x30c71b)=>(_0x180282,_0x580dd1)=>_0x30c71b(_0x180282,_0x580dd1,_0x146338);exports[_0x56cc55(0x12d)]=class extends a[_0x56cc55(0x19c)]{constructor(_0x27ce7e,_0x2b3645,_0x275d2c,_0x59403e,_0x223c8e){const _0x6a678=_0x56cc55;super(),this[_0x6a678(0xfa)]=_0x27ce7e,this[_0x6a678(0x36e)]=_0x2b3645,this[_0x6a678(0x226)]=_0x275d2c,this[_0x6a678(0x25d)]=_0x59403e,_0x223c8e?_0x223c8e==null||_0x223c8e[_0x6a678(0x350)]()['then'](()=>this['_init']()):(this[_0x6a678(0x36e)][_0x6a678(0x1dd)](_0x6a678(0x1b8),_0x6a678(0x283)),this[_0x6a678(0x10e)]());}async[_0x56cc55(0x10e)](){const _0x41484d=_0x56cc55,_0x31c1d4=this[_0x41484d(0xfa)][_0x41484d(0x259)](_0x41484d(0x2d7)),_0x1ebd26=this['_urlService'][_0x41484d(0x259)](_0x41484d(0x106)),_0x180795=this['_urlService'][_0x41484d(0x259)](_0x41484d(0x1fc));if(!_0x31c1d4||!_0x1ebd26){this[_0x41484d(0x36e)]['debug']('[CollaborationDataLoaderController]',_0x41484d(0x10c));return;}const _0x576952=await this[_0x41484d(0x25d)]['loadUnit'](_0x31c1d4,Number(_0x1ebd26),_0x180795);_0x576952&&_0x576952 instanceof a[_0x41484d(0x241)]&&this[_0x41484d(0xff)](_0x576952);}async[_0x56cc55(0xff)](_0x3391cb){const _0x555263=_0x56cc55;await this[_0x555263(0x32a)](_0x3391cb),_0x3391cb[_0x555263(0x29a)]['pipe'](I[_0x555263(0x2b9)](this[_0x555263(0x390)]))['subscribe'](_0x205091=>{_0x205091&&this['_updateURLWithCurrentState'](_0x205091);}),this[_0x555263(0xfa)][_0x555263(0x112)][_0x555263(0x1ad)](I[_0x555263(0x2b9)](this['dispose$']))[_0x555263(0xdc)](()=>this[_0x555263(0x32a)](_0x3391cb));}['_updateURLWithCurrentState'](_0x220132,_0x463c37=!0x1){const _0x11f75f=_0x56cc55,_0x35e2ff=this[_0x11f75f(0xfa)][_0x11f75f(0x259)](_0x11f75f(0x1fc));_0x220132['getSheetId']()!==_0x35e2ff&&this[_0x11f75f(0xfa)][_0x11f75f(0x1b6)]('subunit',_0x220132[_0x11f75f(0x343)](),_0x463c37);}async[_0x56cc55(0x32a)](_0x404b10){const _0x4e2209=_0x56cc55;var _0x288a52;const _0x84031=this['_urlService'][_0x4e2209(0x259)](_0x4e2209(0x1fc));if(!_0x84031||!_0x404b10[_0x4e2209(0x17c)](_0x84031)){const _0x33b7d1=_0x404b10[_0x4e2209(0x353)]()[0x0],_0x2f8282=_0x404b10[_0x4e2209(0x17c)](_0x33b7d1);if(!_0x2f8282)return;this[_0x4e2209(0x1d5)](_0x2f8282,!0x0),await this[_0x4e2209(0x226)]['executeCommand'](g[_0x4e2209(0x232)]['id'],{'unitId':_0x404b10[_0x4e2209(0x28b)](),'subUnitId':_0x33b7d1});return;}((_0x288a52=_0x404b10[_0x4e2209(0x2c7)]())==null?void 0x0:_0x288a52[_0x4e2209(0x343)]())!==_0x84031&&await this[_0x4e2209(0x226)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x404b10['getUnitId'](),'subUnitId':_0x84031});}},exports[_0x56cc55(0x12d)]=ot([j(0x0,pe),j(0x1,a['ILogService']),j(0x2,a[_0x56cc55(0x1d2)]),j(0x3,a[_0x56cc55(0x32f)](u[_0x56cc55(0x244)])),j(0x4,a[_0x56cc55(0x2e9)](Xe[_0x56cc55(0x291)]))],exports['CollaborationDataLoaderController']);var at=Object['getOwnPropertyDescriptor'],ct=(_0x3e81f0,_0x1e9ae1,_0x37bc0b,_0x52ff77)=>{const _0x40fd3c=_0x56cc55;for(var _0x2261e9=_0x52ff77>0x1?void 0x0:_0x52ff77?at(_0x1e9ae1,_0x37bc0b):_0x1e9ae1,_0x303e64=_0x3e81f0[_0x40fd3c(0x38a)]-0x1,_0x1ccc0f;_0x303e64>=0x0;_0x303e64--)(_0x1ccc0f=_0x3e81f0[_0x303e64])&&(_0x2261e9=_0x1ccc0f(_0x2261e9)||_0x2261e9);return _0x2261e9;},Re=(_0x39683d,_0x48b76c)=>(_0x4eb4d2,_0x521df8)=>_0x48b76c(_0x4eb4d2,_0x521df8,_0x39683d);let de=class extends a['RxDisposable']{constructor(_0x344b6f,_0x1bb258){const _0x30f0cf=_0x56cc55;super(),this[_0x30f0cf(0x126)]=_0x344b6f,this[_0x30f0cf(0x152)]=_0x1bb258,this[_0x30f0cf(0x10e)]();}['_init'](){const _0x1ada62=_0x56cc55,_0xe3460a=this;this[_0x1ada62(0x303)](this[_0x1ada62(0x126)][_0x1ada62(0x17a)]({'onBeforePasteImage':async _0x31cef4=>{const _0x285707=_0x1ada62,_0x237d99=await _0xe3460a[_0x285707(0x152)]['saveImage'](_0x31cef4);return _0x237d99?{'source':_0x237d99['source'],'imageSourceType':_0x237d99[_0x285707(0x260)]}:null;}}));}};de=ct([Re(0x0,p[_0x56cc55(0x280)]),Re(0x1,Ke['IImageIoService'])],de);const be=[_0x56cc55(0x37e),'jiqing.500',_0x56cc55(0x124),_0x56cc55(0x127),_0x56cc55(0x1b7),_0x56cc55(0x2f6)];class Te extends a[_0x56cc55(0x30f)]{constructor(){const _0x26641a=_0x56cc55;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x26641a(0x21a),0x0);}['assignAColorForMemberID'](_0x43d8a6){const _0x7d533d=_0x56cc55;if(this[_0x7d533d(0x323)]['has'](_0x43d8a6))return this[_0x7d533d(0x323)]['get'](_0x43d8a6);const _0x549259=be[this[_0x7d533d(0x21a)]];return this[_0x7d533d(0x21a)]=(this['_colorIndex']+0x1)%be[_0x7d533d(0x38a)],this[_0x7d533d(0x323)][_0x7d533d(0x22d)](_0x43d8a6,_0x549259),_0x549259;}}function xe(_0x28eeff){let _0x168abc='';for(const _0x2b7905 of _0x28eeff){const {startOffset:_0x25f6d6,endOffset:_0x4594d5,isActive:_0x4b89fb,rangeType:_0x44a41b,segmentId:_0x2dfe5e,segmentPage:_0x5d1f84}=_0x2b7905;_0x168abc['length']&&(_0x168abc+=','),_0x168abc+=_0x25f6d6+':'+_0x4594d5+':'+(_0x4b89fb?'1':'0')+':'+_0x44a41b+':'+_0x2dfe5e+':'+_0x5d1f84;}return _0x168abc;}function lt(_0x4a5441){const _0x1b9096=_0x56cc55,_0x4fb701=_0x4a5441[_0x1b9096(0x197)](','),_0x10b81b=[];for(const _0x869ec9 of _0x4fb701){const [_0x424762,_0x367550,_0x421da2,_0x1c77b4,_0x432e0b,_0x104d70]=_0x869ec9['split'](':');_0x10b81b['push']({'startOffset':Number(_0x424762),'endOffset':Number(_0x367550),'collapsed':_0x424762===_0x367550,'isActive':_0x421da2==='1','rangeType':_0x1c77b4===a[_0x1b9096(0x264)][_0x1b9096(0x1cf)]?a[_0x1b9096(0x264)][_0x1b9096(0x1cf)]:a[_0x1b9096(0x264)][_0x1b9096(0x147)],'segmentId':typeof _0x432e0b=='string'?String(_0x432e0b):'','segmentPage':Number(_0x104d70!=null?_0x104d70:-0x1)});}return _0x10b81b[_0x1b9096(0x30b)](_0x4a9c25=>_0x4a9c25['isActive'])||(_0x10b81b[0x0][_0x1b9096(0x2f0)]=!0x0),_0x10b81b;}class Oe extends a[_0x56cc55(0x19c)]{constructor(){const _0x243272=_0x56cc55;super(...arguments),_(this,_0x243272(0x2e5),new I[(_0x243272(0x1b2))](null)),_(this,'collabCursorState$',this[_0x243272(0x2e5)][_0x243272(0x2a2)]());}[_0x56cc55(0x2aa)](_0x1c09bd){const _0x23a927=_0x56cc55,{unitID:_0x3d7d21,memberID:_0xef2d20,textRanges:_0x4c520c}=_0x1c09bd,_0x193f3b=xe(_0x4c520c);if(_0x193f3b==='')return;const _0x546c4e={'unitID':_0x3d7d21,'memberID':_0xef2d20,'selection':_0x193f3b};this[_0x23a927(0x2e5)][_0x23a927(0x380)](_0x546c4e);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x4c7e60,_0x61f445,_0xe5999,_0x27e812)=>{const _0x378bd4=_0x56cc55;for(var _0x1a4ea9=_0x27e812>0x1?void 0x0:_0x27e812?_t(_0x61f445,_0xe5999):_0x61f445,_0x5ede49=_0x4c7e60[_0x378bd4(0x38a)]-0x1,_0x2fe7e6;_0x5ede49>=0x0;_0x5ede49--)(_0x2fe7e6=_0x4c7e60[_0x5ede49])&&(_0x1a4ea9=_0x2fe7e6(_0x1a4ea9)||_0x1a4ea9);return _0x1a4ea9;},U=(_0xc7c3d4,_0x2a0ad9)=>(_0x57f7ab,_0x41d224)=>_0x2a0ad9(_0x57f7ab,_0x41d224,_0xc7c3d4);const ut=0x12c,It=0x64;let fe=class extends a[_0x56cc55(0x19c)]{constructor(_0xbba773,_0x500b59,_0x208eaa,_0x36b665,_0x98be77,_0x4933d6,_0x2a0f78,_0x1d3da9,_0x231fb1){const _0xa618aa=_0x56cc55;super(),_(this,_0xa618aa(0x2f4),!0x1),_(this,'_init',!0x1),_(this,_0xa618aa(0x18f),new I['BehaviorSubject'](new Map())),_(this,_0xa618aa(0x248),this['_cursorInfo$']['asObservable']()),_(this,_0xa618aa(0x153),new I['BehaviorSubject']([])),_(this,'roomMembers$',this['_roomMembers$'][_0xa618aa(0x1ad)](I['debounceTime'](ut))),_(this,_0xa618aa(0x18e),a['debounce'](_0x58a8e7=>{const _0x162ff5=_0xa618aa,_0x52a818={'eventID':v['CollaborationEvent'][_0x162ff5(0xf4)],'data':{'unitID':this[_0x162ff5(0x1ef)],'memberID':this[_0x162ff5(0x24e)][_0x162ff5(0x2e8)](),'selection':xe(_0x58a8e7)}};this['_session']['send'](_0x52a818,this[_0x162ff5(0x1ef)]);},It)),(this[_0xa618aa(0x1ef)]=_0xbba773,this[_0xa618aa(0x24e)]=_0x500b59,this[_0xa618aa(0x18a)]=_0x208eaa,this[_0xa618aa(0x2ba)]=_0x36b665,this['_memberService']=_0x98be77,this['_syncEditingCollabCursorService']=_0x4933d6,this[_0xa618aa(0x358)]=_0x2a0f78,this['_univerInstanceService']=_0x1d3da9,this['_commandService']=_0x231fb1);}get[_0x56cc55(0x1b9)](){const _0x40051c=_0x56cc55;return this[_0x40051c(0x18f)][_0x40051c(0x31d)]();}get[_0x56cc55(0x1aa)](){const _0x1cfb66=_0x56cc55;return this[_0x1cfb66(0x153)]['getValue']();}['dispose'](){const _0x45784f=_0x56cc55;super['dispose'](),this[_0x45784f(0x18f)][_0x45784f(0x380)](new Map()),this[_0x45784f(0x18f)][_0x45784f(0x36a)](),this[_0x45784f(0x153)][_0x45784f(0x380)]([]),this[_0x45784f(0x153)][_0x45784f(0x36a)]();}[_0x56cc55(0x101)](){const _0x303e1f=_0x56cc55;this['_init']||(this['_init']=!0x0,this[_0x303e1f(0x24e)][_0x303e1f(0x364)][_0x303e1f(0x1ad)](I[_0x303e1f(0x2b9)](this[_0x303e1f(0x390)]))[_0x303e1f(0xdc)](_0x13faa5=>{const _0x3e31ef=_0x303e1f;_0x13faa5===u['SessionStatus'][_0x3e31ef(0x2b1)]?this[_0x3e31ef(0x218)]():this[_0x3e31ef(0x16b)]();}),this[_0x303e1f(0x24e)][_0x303e1f(0x1ff)][_0x303e1f(0x1ad)](I['takeUntil'](this['dispose$']))[_0x303e1f(0xdc)](_0x1a60ef=>{const _0x566386=_0x303e1f,_0x50d283=_0x1a60ef[_0x566386(0x2cc)];_0x50d283===v[_0x566386(0x237)]['UPDATE_CURSOR']&&this[_0x566386(0x28d)](_0x1a60ef),_0x50d283===v['CollaborationEvent'][_0x566386(0x235)]&&this['_onCursorDelete'](_0x1a60ef);}),this[_0x303e1f(0x303)](this['_commandService'][_0x303e1f(0x11d)](_0xe31cdb=>{const _0x4f892b=_0x303e1f,_0x369604=_0xe31cdb[_0x4f892b(0x2d8)];_0x369604!=null&&this[_0x4f892b(0x2f4)]&&_0xe31cdb['id']===W[_0x4f892b(0x34d)]['id']&&_0x369604[_0x4f892b(0x1cb)]===this['unitID']&&_0x369604[_0x4f892b(0x1be)]===!0x1&&_0x369604[_0x4f892b(0x292)]['length']>0x0&&this['_updateLocalCursor'](_0x369604[_0x4f892b(0x292)]);})),this[_0x303e1f(0x28a)][_0x303e1f(0x1cc)]['pipe'](I[_0x303e1f(0x2b9)](this[_0x303e1f(0x390)]))[_0x303e1f(0xdc)](_0x55a09c=>{const _0x37354e=_0x303e1f;if((_0x55a09c==null?void 0x0:_0x55a09c[_0x37354e(0x1ef)])!==this[_0x37354e(0x1ef)])return;const _0x5befba={'eventID':v[_0x37354e(0x237)][_0x37354e(0xf4)],'data':_0x55a09c};this[_0x37354e(0x28d)](_0x5befba);}),this[_0x303e1f(0x303)](this[_0x303e1f(0x226)][_0x303e1f(0x11d)](_0x20d624=>{const _0x29645e=_0x303e1f;if(_0x20d624[_0x29645e(0x2d8)]==null)return;const _0x39d8d6=_0x20d624[_0x29645e(0x2d8)];if(_0x20d624['id']!==W[_0x29645e(0x341)]['id']||_0x39d8d6['unitId']!==this[_0x29645e(0x1ef)])return;const _0x4a1b33={'id':_0x29645e(0xf6),'params':_0x39d8d6},_0x364145=this[_0x29645e(0x1b9)];for(const [_0x30a080,_0x328969]of _0x364145){const _0x52ce5e={'id':_0x29645e(0xf6),'params':{'unitId':this[_0x29645e(0x1ef)],'actions':null,'textRanges':_0x328969['ranges']}},_0x312893=this['_transformService']['transformMutation'](_0x4a1b33,_0x52ce5e,!0x1);if(v[_0x29645e(0x1e1)](_0x312893))throw _0x312893['error'];_0x364145[_0x29645e(0x22d)](_0x30a080,{..._0x328969,'ranges':_0x312893[_0x29645e(0x2a3)]['params']['textRanges']});}queueMicrotask(()=>{const _0x22adaa=_0x29645e;this[_0x22adaa(0x18f)][_0x22adaa(0x380)](_0x364145);});})));}[_0x56cc55(0x28d)](_0x58396f){const _0x1186a4=_0x56cc55;var _0x47d08d,_0x4a39c7;const {memberID:_0x2bbfc1,selection:_0x2767ba}=_0x58396f[_0x1186a4(0x206)],_0x16a8b8=lt(_0x2767ba),_0x3c2b90=(_0x4a39c7=(_0x47d08d=this['_memberService'][_0x1186a4(0x31e)](this[_0x1186a4(0x1ef)],_0x2bbfc1))==null?void 0x0:_0x47d08d[_0x1186a4(0x1eb)])!=null?_0x4a39c7:_0x1186a4(0x304),_0x3ed852={'color':this[_0x1186a4(0x2ba)][_0x1186a4(0x16d)](_0x2bbfc1),'name':_0x3c2b90,'ranges':_0x16a8b8},_0x3b015e=this[_0x1186a4(0x1b9)];_0x3b015e[_0x1186a4(0x22d)](_0x2bbfc1,_0x3ed852),this[_0x1186a4(0x18f)][_0x1186a4(0x380)](_0x3b015e);}[_0x56cc55(0x30a)](_0x295553){const _0x36c405=_0x56cc55,{memberID:_0x2a2499}=_0x295553[_0x36c405(0x206)],_0x100181=this[_0x36c405(0x1b9)];_0x100181['delete'](_0x2a2499),this[_0x36c405(0x18f)][_0x36c405(0x380)](_0x100181);}['_toggleOnline'](){const _0x4dc84d=_0x56cc55;var _0x3db6d8;if(this[_0x4dc84d(0x2f4)]=!0x0,((_0x3db6d8=this[_0x4dc84d(0x389)]['getFocusedUnit']())==null?void 0x0:_0x3db6d8[_0x4dc84d(0x28b)]())!==this[_0x4dc84d(0x1ef)])return;const _0x12461b=this['_injector']['get'](W[_0x4dc84d(0x29f)])[_0x4dc84d(0x19d)]();Array['isArray'](_0x12461b)&&_0x12461b['length']>0x0&&this[_0x4dc84d(0x18e)](_0x12461b);}[_0x56cc55(0x16b)](){const _0x27fd8a=_0x56cc55;this[_0x27fd8a(0x2f4)]=!0x1;}};fe=ht([U(0x2,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),U(0x3,a[_0x56cc55(0x32f)](Te)),U(0x4,a[_0x56cc55(0x32f)](u[_0x56cc55(0x296)])),U(0x5,a[_0x56cc55(0x32f)](Oe)),U(0x6,v['ITransformService']),U(0x7,a[_0x56cc55(0x211)]),U(0x8,a[_0x56cc55(0x1d2)])],fe);var St=Object[_0x56cc55(0x369)],dt=(_0x39d90d,_0x22202c,_0x5792cf,_0x49e231)=>{const _0x24b86f=_0x56cc55;for(var _0x15056c=_0x49e231>0x1?void 0x0:_0x49e231?St(_0x22202c,_0x5792cf):_0x22202c,_0x50e975=_0x39d90d[_0x24b86f(0x38a)]-0x1,_0x45172e;_0x50e975>=0x0;_0x50e975--)(_0x45172e=_0x39d90d[_0x50e975])&&(_0x15056c=_0x45172e(_0x15056c)||_0x15056c);return _0x15056c;},w=(_0x3a8295,_0x50842d)=>(_0x2e3f87,_0x52ef06)=>_0x50842d(_0x2e3f87,_0x52ef06,_0x3a8295);const ft=0x12c,mt=0x64,gt=()=>{let _0x31cda9=[],_0x4f9744=!0x1;return _0x32866a=>{const _0x58601e=_0x5cb8;_0x31cda9[_0x58601e(0xf5)](_0x32866a),_0x4f9744||(_0x4f9744=!0x0,setTimeout(()=>{const _0x31d91c=_0x58601e;_0x31cda9[_0x31d91c(0x306)](_0x2fcbad=>_0x2fcbad()),_0x31cda9=[],_0x4f9744=!0x1;}));};};let me=class extends a[_0x56cc55(0x19c)]{constructor(_0x401acb,_0x203927,_0x2739f4,_0x1cb7cf,_0x2f71d1,_0x71301,_0x42c734,_0x5ba247){const _0x32bab2=_0x56cc55;super(),_(this,_0x32bab2(0x2f4),!0x1),_(this,_0x32bab2(0x10e),!0x1),_(this,_0x32bab2(0x18f),new I['BehaviorSubject'](new Map())),_(this,_0x32bab2(0x248),this['_cursorInfo$'][_0x32bab2(0x2a2)]()),_(this,'_roomMembers$',new I[(_0x32bab2(0x1b2))]([])),_(this,'roomMembers$',this[_0x32bab2(0x153)][_0x32bab2(0x1ad)](I[_0x32bab2(0x29b)](ft))),_(this,_0x32bab2(0x18e),a[_0x32bab2(0x140)]((_0x88b4a9,_0x31ec21)=>{const _0x2bd3a4=_0x32bab2,_0x1fabc2={'eventID':v[_0x2bd3a4(0x237)][_0x2bd3a4(0xf4)],'data':{'unitID':this[_0x2bd3a4(0x1ef)],'memberID':this[_0x2bd3a4(0x24e)][_0x2bd3a4(0x2e8)](),'selection':x[_0x2bd3a4(0x1e8)](_0x88b4a9,_0x31ec21[_0x2bd3a4(0x119)])}};this[_0x2bd3a4(0x24e)][_0x2bd3a4(0x285)](_0x1fabc2,this[_0x2bd3a4(0x1ef)]);},mt)),(this[_0x32bab2(0x1ef)]=_0x401acb,this[_0x32bab2(0x24e)]=_0x203927,this[_0x32bab2(0x18a)]=_0x2739f4,this[_0x32bab2(0x2ba)]=_0x1cb7cf,this[_0x32bab2(0x193)]=_0x2f71d1,this[_0x32bab2(0x389)]=_0x71301,this['_commandService']=_0x42c734,this[_0x32bab2(0x128)]=_0x5ba247);}get[_0x56cc55(0x1b9)](){const _0x5ddc7b=_0x56cc55;return this['_cursorInfo$'][_0x5ddc7b(0x31d)]();}get[_0x56cc55(0x1aa)](){const _0x4ae55d=_0x56cc55;return this[_0x4ae55d(0x153)][_0x4ae55d(0x31d)]();}[_0x56cc55(0x236)](){const _0x1b9267=_0x56cc55;super[_0x1b9267(0x236)](),this[_0x1b9267(0x18f)][_0x1b9267(0x380)](new Map()),this[_0x1b9267(0x18f)][_0x1b9267(0x36a)](),this['_roomMembers$'][_0x1b9267(0x380)]([]),this[_0x1b9267(0x153)][_0x1b9267(0x36a)]();}[_0x56cc55(0x101)](){const _0x5a712a=_0x56cc55;this[_0x5a712a(0x10e)]||(this[_0x5a712a(0x10e)]=!0x0,this[_0x5a712a(0x24e)]['sessionStatus$']['pipe'](I[_0x5a712a(0x2b9)](this[_0x5a712a(0x390)]))['subscribe'](_0x9c9f01=>{const _0x42ef7f=_0x5a712a;_0x9c9f01===u['SessionStatus']['ONLINE']?this[_0x42ef7f(0x218)]():this[_0x42ef7f(0x16b)]();}),this['_session']['event$'][_0x5a712a(0x1ad)](I[_0x5a712a(0x2b9)](this['dispose$']))[_0x5a712a(0xdc)](_0xc4ef01=>{const _0x1ff0dd=_0x5a712a,_0x27195f=_0xc4ef01[_0x1ff0dd(0x2cc)];_0x27195f===v[_0x1ff0dd(0x237)][_0x1ff0dd(0xf4)]&&this[_0x1ff0dd(0x28d)](_0xc4ef01),_0x27195f===v['CollaborationEvent'][_0x1ff0dd(0x235)]&&this[_0x1ff0dd(0x30a)](_0xc4ef01);}),this[_0x5a712a(0x2d1)](),this[_0x5a712a(0x303)](this[_0x5a712a(0x226)][_0x5a712a(0x11d)](_0x5c15c5=>{const _0x52e9ee=_0x5a712a;if(this[_0x52e9ee(0x2f4)]&&_0x5c15c5['id']===g[_0x52e9ee(0x32e)]['id']&&_0x5c15c5[_0x52e9ee(0x2d8)][_0x52e9ee(0x1cb)]===this[_0x52e9ee(0x1ef)]){const _0x420cb5=_0x5c15c5['params'];this[_0x52e9ee(0x18e)](_0x420cb5[_0x52e9ee(0x2e3)],_0x420cb5[_0x52e9ee(0x28e)][0x0]);}})));}[_0x56cc55(0x28d)](_0x2d6b39){const _0x4898d0=_0x56cc55;var _0x4a0a4b,_0x4617a2;const {memberID:_0x1d20fa,selection:_0x77cc90}=_0x2d6b39[_0x4898d0(0x206)],{sheetName:_0x5f357c,range:_0x48649a}=x['deserializeRangeWithSheet'](_0x77cc90),_0x43c392={'name':(_0x4617a2=(_0x4a0a4b=this[_0x4898d0(0x193)][_0x4898d0(0x31e)](this[_0x4898d0(0x1ef)],_0x1d20fa))==null?void 0x0:_0x4a0a4b['name'])!=null?_0x4617a2:_0x4898d0(0x304),'range':this[_0x4898d0(0x356)](_0x5f357c,_0x48649a),'sheetID':_0x5f357c,'color':this['_colorAssignService'][_0x4898d0(0x16d)](_0x1d20fa),'selection':_0x77cc90},_0x2d09a1=this[_0x4898d0(0x1b9)];_0x2d09a1[_0x4898d0(0x22d)](_0x1d20fa,_0x43c392),this[_0x4898d0(0x18f)]['next'](_0x2d09a1);}['_onCursorDelete'](_0x161bd8){const _0x1f0ae1=_0x56cc55,{memberID:_0x160210}=_0x161bd8[_0x1f0ae1(0x206)],_0x4fe450=this[_0x1f0ae1(0x1b9)];_0x4fe450['delete'](_0x160210),this[_0x1f0ae1(0x18f)][_0x1f0ae1(0x380)](_0x4fe450);}['_getMergeRange'](_0x38a3d2,_0x54910f){const _0x35d69d=_0x56cc55;var _0x685f3b,_0x34c01c;const _0x1f31e5=(_0x34c01c=(_0x685f3b=this[_0x35d69d(0x389)]['getUniverSheetInstance'](this[_0x35d69d(0x1ef)]))==null?void 0x0:_0x685f3b[_0x35d69d(0x17c)](_0x38a3d2))==null?void 0x0:_0x34c01c[_0x35d69d(0x10d)]();return(_0x1f31e5==null?void 0x0:_0x1f31e5[_0x35d69d(0x1e5)](_0x3933af=>a[_0x35d69d(0x1b3)][_0x35d69d(0x31a)](_0x3933af,_0x54910f)))||_0x54910f;}[_0x56cc55(0x2d1)](){const _0x31e983=_0x56cc55,_0x3c366c=new a[(_0x31e983(0x168))](),_0x5d1af9=gt(),_0x237cc6=()=>{const _0x21ec51=_0x31e983;_0x3c366c['dispose']();const _0x3e0a67=(_0x20c63e,_0x2f886d,_0x279249,_0x41be84)=>{const _0x5f13f7=_0x5cb8;let _0x421956=[];switch(_0x20c63e['id']){case g[_0x5f13f7(0x330)]['DeleteRangeMoveLeftCommandId']:{_0x421956=g[_0x5f13f7(0x14f)](_0x20c63e,_0x41be84);break;}case g['EffectRefRangId'][_0x5f13f7(0x2a5)]:{_0x421956=g[_0x5f13f7(0x251)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x166)]:{_0x421956=g[_0x5f13f7(0x15c)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x299)]:{_0x421956=g[_0x5f13f7(0x1c3)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x315)]:{_0x421956=g['handleInsertRangeMoveRight'](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x36d)]:{_0x421956=g[_0x5f13f7(0x111)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x1d1)]:{_0x421956=g[_0x5f13f7(0x249)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)]['RemoveColCommandId']:{_0x421956=g[_0x5f13f7(0x262)](_0x20c63e,_0x41be84);break;}case g[_0x5f13f7(0x330)][_0x5f13f7(0x17d)]:{_0x421956=g[_0x5f13f7(0x20b)](_0x20c63e,_0x41be84);break;}}const _0x388515=g[_0x5f13f7(0x202)](_0x421956,_0x41be84),_0xa47d1c=this[_0x5f13f7(0x1b9)][_0x5f13f7(0x15d)](_0x2f886d);if(_0xa47d1c&&_0x388515){const _0x4848f2={..._0xa47d1c,'range':_0x388515};this[_0x5f13f7(0x1b9)]['set'](_0x2f886d,_0x4848f2),_0x5d1af9(()=>{const _0x1e508b=_0x5f13f7,_0x367b98=this['_refRangeService']['registerRefRange'](_0x388515,_0x387c4b=>(_0x367b98[_0x1e508b(0x236)](),_0x3e0a67(_0x387c4b,_0x2f886d,_0x279249,_0x388515)));_0x3c366c[_0x1e508b(0x35c)](_0x367b98);});}return{'redos':[],'undos':[]};};this[_0x21ec51(0x1b9)][_0x21ec51(0x306)]((_0x3d83a,_0x277777)=>{const _0x597d50=_0x21ec51,{range:_0x2b7395,sheetID:_0x537258}=_0x3d83a,_0x19348e=this[_0x597d50(0x128)][_0x597d50(0x131)](_0x2b7395,_0xb58d05=>(_0x19348e[_0x597d50(0x236)](),_0x3e0a67(_0xb58d05,_0x277777,_0x537258,_0x2b7395)));_0x3c366c[_0x597d50(0x35c)](_0x19348e);});};this[_0x31e983(0x303)](a['toDisposable'](this[_0x31e983(0x18f)]['subscribe'](()=>{_0x237cc6();})));}[_0x56cc55(0x218)](){const _0x3b2d8c=_0x56cc55;var _0x387963,_0x21cb4b;if(this[_0x3b2d8c(0x2f4)]=!0x0,((_0x387963=this[_0x3b2d8c(0x389)][_0x3b2d8c(0x116)]())==null?void 0x0:_0x387963[_0x3b2d8c(0x28b)]())!==this[_0x3b2d8c(0x1ef)])return;const _0x22c85c=(_0x21cb4b=this[_0x3b2d8c(0x18a)][_0x3b2d8c(0x15d)](g[_0x3b2d8c(0x178)])['getCurrentSelections']())==null?void 0x0:_0x21cb4b[0x0],_0x52b2c6=this['_univerInstanceService'][_0x3b2d8c(0x167)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x3b2d8c(0x2c7)]();_0x22c85c&&_0x52b2c6&&this[_0x3b2d8c(0x18e)](_0x52b2c6[_0x3b2d8c(0x343)](),_0x22c85c);}[_0x56cc55(0x16b)](){const _0x2d1097=_0x56cc55;this[_0x2d1097(0x2f4)]=!0x1;}};me=dt([w(0x2,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),w(0x3,a[_0x56cc55(0x32f)](Te)),w(0x4,a['Inject'](u[_0x56cc55(0x296)])),w(0x5,a[_0x56cc55(0x211)]),w(0x6,a[_0x56cc55(0x1d2)]),w(0x7,a[_0x56cc55(0x32f)](g['RefRangeService']))],me);var vt=Object[_0x56cc55(0x369)],Et=(_0x3cdac2,_0x11f5e4,_0xa74810,_0x1ee72a)=>{for(var _0x146c16=_0x1ee72a>0x1?void 0x0:_0x1ee72a?vt(_0x11f5e4,_0xa74810):_0x11f5e4,_0x56b7c7=_0x3cdac2['length']-0x1,_0x1a538f;_0x56b7c7>=0x0;_0x56b7c7--)(_0x1a538f=_0x3cdac2[_0x56b7c7])&&(_0x146c16=_0x1a538f(_0x146c16)||_0x146c16);return _0x146c16;},oe=(_0x40690b,_0x2d7ee6)=>(_0x35e3d7,_0xeafeac)=>_0x2d7ee6(_0x35e3d7,_0xeafeac,_0x40690b);let B=class extends a[_0x56cc55(0x19c)]{constructor(_0x69c4e9,_0x4ff4ae,_0x5a4a71){const _0x3831f9=_0x56cc55;super(),_(this,_0x3831f9(0x2d2),new Map()),_(this,_0x3831f9(0x2b7),new I[(_0x3831f9(0x214))]()),(this[_0x3831f9(0x389)]=_0x69c4e9,this[_0x3831f9(0x18a)]=_0x4ff4ae,this[_0x3831f9(0x258)]=_0x5a4a71,this[_0x3831f9(0x10e)]());}['dispose'](){const _0x7c4f29=_0x56cc55;super[_0x7c4f29(0x236)](),this[_0x7c4f29(0x2b7)][_0x7c4f29(0x36a)](),this[_0x7c4f29(0x2d2)][_0x7c4f29(0x306)](_0x18c8fe=>_0x18c8fe[_0x7c4f29(0x236)]());}['getCollabCursors$'](_0x44865c){const _0x22fb2d=_0x56cc55;return this[_0x22fb2d(0x2d2)][_0x22fb2d(0x36b)](_0x44865c)?this['_entities'][_0x22fb2d(0x15d)](_0x44865c)['cursorInfo$']:this[_0x22fb2d(0x2b7)][_0x22fb2d(0x1ad)](I['filter'](_0x1cd880=>_0x1cd880[_0x22fb2d(0x1ef)]===_0x44865c),I['switchMap'](_0x2d2207=>_0x2d2207[_0x22fb2d(0x248)]));}[_0x56cc55(0x10e)](){const _0x364649=_0x56cc55;this[_0x364649(0x389)][_0x364649(0x2d6)](a[_0x364649(0x15a)][_0x364649(0x25f)])['pipe'](I['takeUntil'](this[_0x364649(0x390)]))[_0x364649(0xdc)](async _0x3086ce=>{const _0x40412d=_0x364649,_0x483328=_0x3086ce[_0x40412d(0x28b)](),_0x578a8c=await this[_0x40412d(0x1f8)](_0x483328);this['_entityInit$'][_0x40412d(0x380)](_0x578a8c),this[_0x40412d(0x2d2)][_0x40412d(0x22d)](_0x483328,_0x578a8c);}),this[_0x364649(0x389)]['getTypeOfUnitAdded$'](a[_0x364649(0x15a)][_0x364649(0x2ce)])[_0x364649(0x1ad)](I[_0x364649(0x2b9)](this[_0x364649(0x390)]))[_0x364649(0x1ad)](I[_0x364649(0x2a7)](_0x10954d=>!_0x10954d[_0x364649(0x28b)]()[_0x364649(0x34f)]('__')))['subscribe'](async _0x1d0abd=>{const _0x3eb6a7=_0x364649,_0x5643c8=_0x1d0abd['getUnitId'](),_0x56dc95=await this['_startDocCollabCursor'](_0x5643c8);this['_entityInit$']['next'](_0x56dc95),this['_entities'][_0x3eb6a7(0x22d)](_0x5643c8,_0x56dc95);}),I[_0x364649(0x19e)](this[_0x364649(0x389)][_0x364649(0x14c)](a[_0x364649(0x15a)][_0x364649(0x2ce)]),this[_0x364649(0x389)][_0x364649(0x14c)](a['UniverInstanceType']['UNIVER_SHEET']))['pipe'](I[_0x364649(0x2b9)](this[_0x364649(0x390)]))[_0x364649(0xdc)](_0x434115=>{const _0x255085=_0x364649,_0x21e9fc=_0x434115[_0x255085(0x28b)](),_0xccb743=this['_entities'][_0x255085(0x15d)](_0x21e9fc);_0xccb743&&(_0xccb743[_0x255085(0x236)](),this[_0x255085(0x2d2)]['delete'](_0x21e9fc));});}async['_startSheetCollabCursor'](_0x14689e){const _0x57fb78=_0x56cc55,_0x124a8b=await this[_0x57fb78(0x258)][_0x57fb78(0x177)](_0x14689e),_0x53fd8f=this[_0x57fb78(0x18a)][_0x57fb78(0x219)](me,_0x14689e,_0x124a8b);return _0x53fd8f['init'](),_0x53fd8f;}async[_0x56cc55(0x38e)](_0x1f75d9){const _0x3aa008=_0x56cc55,_0x3a308a=await this[_0x3aa008(0x258)]['requireSession'](_0x1f75d9),_0x577c80=this['_injector'][_0x3aa008(0x219)](fe,_0x1f75d9,_0x3a308a);return _0x577c80[_0x3aa008(0x101)](),_0x577c80;}};B=Et([oe(0x0,a['IUniverInstanceService']),oe(0x1,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),oe(0x2,a[_0x56cc55(0x32f)](u['CollaborationSessionService']))],B);const X=0x14,De=0xc8,ae=0x4,Ct=0x5;function pt(_0x5e2125,_0xa83df7){const _0x273302=_0x56cc55;let {radius:_0xec61a6,width:_0x2bd617,height:_0xd51bb5}=_0xa83df7;_0xec61a6=_0xec61a6!=null?_0xec61a6:0x0,_0x2bd617=_0x2bd617!=null?_0x2bd617:0x1e,_0xd51bb5=_0xd51bb5!=null?_0xd51bb5:0x1e;let _0x58f096=0x0,_0x43fcfb=0x0,_0x45413b=0x0;_0x58f096=_0x43fcfb=_0x45413b=Math[_0x273302(0x2cb)](_0xec61a6,_0x2bd617/0x2,_0xd51bb5/0x2),_0x5e2125['beginPath'](),_0x5e2125['moveTo'](_0x58f096,0x0),_0x5e2125[_0x273302(0x281)](_0x2bd617-_0x43fcfb,0x0),_0x5e2125[_0x273302(0x1bb)](_0x2bd617-_0x43fcfb,_0x43fcfb,_0x43fcfb,Math['PI']*0x3/0x2,0x0,!0x1),_0x5e2125[_0x273302(0x281)](_0x2bd617,_0xd51bb5-_0x45413b),_0x5e2125[_0x273302(0x1bb)](_0x2bd617-_0x45413b,_0xd51bb5-_0x45413b,_0x45413b,0x0,Math['PI']/0x2,!0x1),_0x5e2125[_0x273302(0x281)](0x0,_0xd51bb5),_0x5e2125[_0x273302(0x281)](0x0,_0x58f096),_0x5e2125[_0x273302(0x1bb)](_0x58f096,_0x58f096,_0x58f096,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5e2125[_0x273302(0x192)](),_0xa83df7[_0x273302(0x180)]&&(_0x5e2125[_0x273302(0x191)](),_0x5e2125['fillStyle']=_0xa83df7['fill'],_0xa83df7[_0x273302(0x30e)]===_0x273302(0x22f)?_0x5e2125['fill']('evenodd'):_0x5e2125[_0x273302(0x180)](),_0x5e2125['restore']());}class ie extends C[_0x56cc55(0x2f9)]{constructor(_0x2dd8f4,_0x3fe669){const _0x9867f0=_0x56cc55;super(_0x2dd8f4,_0x3fe669),_(this,_0x9867f0(0x35b)),_(this,_0x9867f0(0x344)),(this[_0x9867f0(0x35b)]=_0x3fe669==null?void 0x0:_0x3fe669[_0x9867f0(0x35b)],this[_0x9867f0(0x344)]=_0x3fe669==null?void 0x0:_0x3fe669[_0x9867f0(0x344)]);}static['drawWith'](_0x2ff3c7,_0x2f00fb){const _0x2aeb89=_0x56cc55,{text:_0x4c7969,color:_0x111f2d}=_0x2f00fb;_0x2ff3c7[_0x2aeb89(0x191)](),_0x2ff3c7[_0x2aeb89(0x212)]=_0x2aeb89(0x2bd);const _0x159a08=_0x2ff3c7['measureText'](_0x4c7969)[_0x2aeb89(0x1a9)],_0x2e953a=Math[_0x2aeb89(0x2cb)](_0x159a08+0x2*ae,De);pt(_0x2ff3c7,{'height':X,'radius':0x4,'width':_0x2e953a,'fill':_0x111f2d}),_0x2ff3c7['fillStyle']='#FFF';const _0x148cc4=ae,_0x4364b2=X-Ct,_0x247118=De-0x2*ae;if(_0x159a08>_0x247118){let _0x2c73bf='',_0x110a9d=0x0;for(const _0x55070f of _0x4c7969){const _0x24559b=_0x2ff3c7[_0x2aeb89(0x172)](_0x55070f)[_0x2aeb89(0x1a9)];if(_0x110a9d+_0x24559b<=_0x247118-_0x2ff3c7[_0x2aeb89(0x172)](_0x2aeb89(0x1a4))[_0x2aeb89(0x1a9)])_0x2c73bf+=_0x55070f,_0x110a9d+=_0x24559b;else{_0x2c73bf+=_0x2aeb89(0x1a4);break;}}_0x2ff3c7[_0x2aeb89(0x366)](_0x2c73bf,_0x148cc4,_0x4364b2);}else _0x2ff3c7[_0x2aeb89(0x366)](_0x4c7969,_0x148cc4,_0x4364b2);_0x2ff3c7[_0x2aeb89(0x181)]();}['_draw'](_0x28d8a6){const _0x4c7dc8=_0x56cc55;ie[_0x4c7dc8(0x132)](_0x28d8a6,this);}}const ce=_0x56cc55(0x144),Tt=_0x56cc55(0x2c6),Ot=_0x56cc55(0x34b),Y=0x6,Rt=1.5,le=0x4,bt=1.5,Dt='rgba(255,\x20255,\x20255,\x200.01)';class Ne{constructor(_0x4086ba,_0x50f795,_0x2516b9,_0x217a5f){const _0x4d03e0=_0x56cc55;_(this,_0x4d03e0(0x23e),[]),_(this,'_anchor',null),_(this,_0x4d03e0(0x388),null),_(this,_0x4d03e0(0x338),null),_(this,_0x4d03e0(0x2ee),null),_(this,_0x4d03e0(0x2f5),null),(this[_0x4d03e0(0x156)]=_0x4086ba,this['_scene']=_0x50f795,this['_docSkeleton']=_0x2516b9,this[_0x4d03e0(0x253)]=_0x217a5f,this[_0x4d03e0(0x137)]());}set['_hover'](_0x3b12dc){const _0x4bcb4a=_0x56cc55;_0x3b12dc?(this[_0x4bcb4a(0x338)]&&this[_0x4bcb4a(0x338)][_0x4bcb4a(0x130)](),this[_0x4bcb4a(0x388)]&&this['_textBubble']['show']()):(this[_0x4bcb4a(0x338)]&&this[_0x4bcb4a(0x338)][_0x4bcb4a(0x357)](),this[_0x4bcb4a(0x388)]&&this['_textBubble'][_0x4bcb4a(0x130)]());}['dispose'](){const _0x2d0a8e=_0x56cc55;for(const _0x134bae of this[_0x2d0a8e(0x23e)])_0x134bae['dispose']();this[_0x2d0a8e(0x388)]&&this['_textBubble']['dispose'](),this[_0x2d0a8e(0x338)]&&this[_0x2d0a8e(0x338)]['dispose'](),this[_0x2d0a8e(0x27c)]&&this['_anchor'][_0x2d0a8e(0x236)](),this[_0x2d0a8e(0x2f5)]&&this['_eventUnsubscribe']();}[_0x56cc55(0x137)](){const _0x48d459=_0x56cc55;var _0x17a19c;const {_docSkeleton:_0x4247ca,_document:_0xf1e712}=this,{color:_0x1be5e7,name:_0x5bab2a,ranges:_0x3edcac}=this[_0x48d459(0x156)],_0x59b5a6=_0xf1e712[_0x48d459(0x35e)](),{docsLeft:_0xbee43e,docsTop:_0x258520}=_0x59b5a6,_0x43f468=new p['NodePositionConvertToCursor'](_0x59b5a6,_0x4247ca);for(const {startOffset:_0xd1c962,endOffset:_0xaf8a49,rangeType:_0x48bd85,segmentId:_0x135068,segmentPage:_0x349c98,collapsed:_0x59c0a9,isActive:_0x42b442}of _0x3edcac){const _0x2e18e3=_0x4247ca[_0x48d459(0x1db)](_0xd1c962,!0x0,_0x135068,_0x349c98);let _0x51e457=_0x4247ca[_0x48d459(0x1db)](_0xaf8a49,!0x0,_0x135068,_0x349c98);if(_0x51e457==null&&(_0x51e457=_0x4247ca[_0x48d459(0x1db)](_0xaf8a49-0x1,!0x1,_0x135068,_0x349c98)),_0x42b442){const {contentBoxPointGroup:_0x2bd518}=_0x43f468[_0x48d459(0x263)](_0x51e457,_0x51e457);if(_0x2bd518['length']===0x0)continue;this[_0x48d459(0xf7)](_0x1be5e7,_0x2bd518,_0xbee43e,_0x258520,_0x5bab2a),this[_0x48d459(0x2f5)]=this[_0x48d459(0x34e)]();}if(_0x2e18e3&&_0x51e457){if(_0x48bd85===a[_0x48d459(0x264)][_0x48d459(0x147)]){const _0x37b5da=new p[(_0x48d459(0x314))](_0x59b5a6,_0x4247ca),{pointGroup:_0x2905a0}=(_0x17a19c=_0x37b5da[_0x48d459(0x263)](_0x2e18e3,_0x51e457))!=null?_0x17a19c:{};if(_0x2905a0==null||_0x2905a0[_0x48d459(0x38a)]===0x0)continue;this[_0x48d459(0xe3)](_0x1be5e7,_0x2905a0,_0xbee43e,_0x258520);}else{if(!_0x59c0a9){const {borderBoxPointGroup:_0x517f6f}=_0x43f468[_0x48d459(0x263)](_0x2e18e3,_0x51e457);if(_0x517f6f['length']===0x0)continue;this[_0x48d459(0x349)](_0x1be5e7,_0x517f6f,_0xbee43e,_0x258520);}}}}}['_drawAnchor'](_0x33feb2,_0x5367d8,_0x426154,_0x369e43,_0x47329e){const _0x4e7c94=_0x56cc55,_0x4aa440=this['_getAnchorBounding'](_0x5367d8),{left:_0x46d7ba,top:_0x3e0858,height:_0x1f5018}=_0x4aa440,_0x3de523=this[_0x4e7c94(0x1e2)](),_0x1b00ef=bt/_0x3de523,_0x199996=new C[(_0x4e7c94(0x298))](ce+a[_0x4e7c94(0x368)](Y),{'left':_0x46d7ba+_0x426154-_0x1b00ef,'top':_0x3e0858+_0x369e43,'height':_0x1f5018,'width':Rt,'fill':_0x33feb2||C['getColor'](a[_0x4e7c94(0x340)][_0x4e7c94(0xea)],0x0),'strokeWidth':_0x1b00ef,'stroke':Dt,'evented':!0x0});this[_0x4e7c94(0x27c)]=_0x199996,this['_scene'][_0x4e7c94(0x1a8)](_0x199996,p[_0x4e7c94(0x155)]);const _0x5775db=new C[(_0x4e7c94(0x298))](ce+a['generateRandomId'](Y),{'left':_0x46d7ba+_0x426154-_0x1b00ef,'top':_0x3e0858+_0x369e43-le/0x2,'height':le,'width':le,'fill':_0x33feb2||C[_0x4e7c94(0x2a1)](a[_0x4e7c94(0x340)][_0x4e7c94(0xea)],0x0),'strokeWidth':0x0,'stroke':_0x33feb2||C['getColor'](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x4e7c94(0x338)]=_0x5775db,this[_0x4e7c94(0x1e0)][_0x4e7c94(0x1a8)](_0x5775db,p[_0x4e7c94(0x155)]);const _0xfb44ce=new ie(ce+a[_0x4e7c94(0x368)](Y),{'left':_0x46d7ba+_0x426154-_0x1b00ef,'top':_0x3e0858+_0x369e43-X,'text':_0x47329e,'color':_0x33feb2});this[_0x4e7c94(0x388)]=_0xfb44ce,this[_0x4e7c94(0x1e0)][_0x4e7c94(0x1a8)](_0xfb44ce,p['TEXT_RANGE_LAYER_INDEX']),this[_0x4e7c94(0x289)]=!0x1;}[_0x56cc55(0x34e)](){const _0x156ad4=_0x56cc55,_0x4f23e7=this[_0x156ad4(0x27c)]['onPointerEnter$'][_0x156ad4(0x1bf)](()=>{const _0x260cd8=_0x156ad4;this[_0x260cd8(0x289)]=!0x0;}),_0x21424c=this[_0x156ad4(0x27c)]['onPointerLeave$'][_0x156ad4(0x1bf)](()=>{const _0x3ab504=_0x156ad4;this[_0x3ab504(0x2ee)]&&clearTimeout(this[_0x3ab504(0x2ee)]),this[_0x3ab504(0x2ee)]=setTimeout(()=>{const _0x2c272e=_0x3ab504;this[_0x2c272e(0x289)]=!0x1;},0x7d0);});return()=>{const _0x260e0f=_0x156ad4;_0x4f23e7[_0x260e0f(0x230)](),_0x21424c[_0x260e0f(0x230)]();};}[_0x56cc55(0x349)](_0x125d32,_0x12f71d,_0x2637c4,_0x1b14e1){const _0x18f833=_0x56cc55,_0xc415b3=new a[(_0x18f833(0x18d))](_0x125d32)[_0x18f833(0x328)](0.2)[_0x18f833(0x1fb)](),_0x30f59d=new C[(_0x18f833(0x2c5))](Tt+a['generateRandomId'](Y),{'pointsGroup':_0x12f71d,'fill':_0xc415b3||C[_0x18f833(0x2a1)](a[_0x18f833(0x340)][_0x18f833(0xea)],0.2),'left':_0x2637c4,'top':_0x1b14e1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x18f833(0xf5)](_0x30f59d),this[_0x18f833(0x1e0)]['addObject'](_0x30f59d,p[_0x18f833(0x155)]);}[_0x56cc55(0xe3)](_0x115cb2,_0x88bb0d,_0x4bf009,_0x5f3b71){const _0x3cf0dc=_0x56cc55,_0x1858b9=new a[(_0x3cf0dc(0x18d))](_0x115cb2)[_0x3cf0dc(0x328)](0.2)[_0x3cf0dc(0x1fb)](),_0x6397b7=new C[(_0x3cf0dc(0x2c5))](Ot+a[_0x3cf0dc(0x368)](Y),{'pointsGroup':_0x88bb0d,'fill':_0x1858b9||C[_0x3cf0dc(0x2a1)](a[_0x3cf0dc(0x340)]['black'],0.2),'left':_0x4bf009,'top':_0x5f3b71,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3cf0dc(0x23e)][_0x3cf0dc(0xf5)](_0x6397b7),this[_0x3cf0dc(0x1e0)][_0x3cf0dc(0x1a8)](_0x6397b7,p['TEXT_RANGE_LAYER_INDEX']);}[_0x56cc55(0x1c4)](_0x3ee4e7){const _0x487bb9=_0x3ee4e7[0x0],_0x579592=_0x487bb9[0x0],_0x1e868c=_0x487bb9[0x2],{x:_0x3d55b5,y:_0x1b7dd2}=_0x579592,{x:_0x2df388,y:_0x52d820}=_0x1e868c;return{'left':_0x3d55b5,'top':_0x1b7dd2,'width':_0x2df388-_0x3d55b5,'height':_0x52d820-_0x1b7dd2};}[_0x56cc55(0x1e2)](){const _0x53a17e=_0x56cc55,{scaleX:_0x4ae61f,scaleY:_0x444605}=this[_0x53a17e(0x1e0)][_0x53a17e(0x2b2)]();return Math['max'](_0x4ae61f,_0x444605);}}var Nt=Object['getOwnPropertyDescriptor'],Ut=(_0x51bfab,_0x45b68e,_0x313845,_0x316ce1)=>{const _0x48a772=_0x56cc55;for(var _0x59e35c=_0x316ce1>0x1?void 0x0:_0x316ce1?Nt(_0x45b68e,_0x313845):_0x45b68e,_0x4708d8=_0x51bfab[_0x48a772(0x38a)]-0x1,_0x3806c8;_0x4708d8>=0x0;_0x4708d8--)(_0x3806c8=_0x51bfab[_0x4708d8])&&(_0x59e35c=_0x3806c8(_0x59e35c)||_0x59e35c);return _0x59e35c;},q=(_0x1e7d55,_0x538494)=>(_0x245b28,_0x55b334)=>_0x538494(_0x245b28,_0x55b334,_0x1e7d55);let ge=class extends a[_0x56cc55(0x19c)]{constructor(_0x4a6d62,_0x54bde2,_0xf8b55a,_0x237a81,_0x418437){const _0x227c50=_0x56cc55;super(),_(this,_0x227c50(0x1e7),[]),_(this,_0x227c50(0x21b),[]),(this[_0x227c50(0x24f)]=_0x4a6d62,this[_0x227c50(0xda)]=_0x54bde2,this['_collabCursorController']=_0xf8b55a,this[_0x227c50(0x226)]=_0x237a81,this[_0x227c50(0x35d)]=_0x418437,this['_init']());}['_init'](){const _0x4fe3dc=_0x56cc55,_0x4d7f4e=this[_0x4fe3dc(0x24f)][_0x4fe3dc(0x1cb)],_0x517fd3=this[_0x4fe3dc(0xda)];this[_0x4fe3dc(0x303)](I['combineLatest']([this[_0x4fe3dc(0x2a4)][_0x4fe3dc(0x121)](_0x4d7f4e),this[_0x4fe3dc(0x35d)][_0x4fe3dc(0x10b)]])[_0x4fe3dc(0x1ad)]($[_0x4fe3dc(0x195)](([_0x3ac08e,_0x5eba2d])=>({'skeleton':_0x517fd3[_0x4fe3dc(0x26c)](),'cursors':[..._0x3ac08e[_0x4fe3dc(0x243)]()][_0x4fe3dc(0x205)](_0x498d87=>({..._0x498d87,'color':this[_0x4fe3dc(0x35d)][_0x4fe3dc(0x139)](_0x498d87['color'])}))})))[_0x4fe3dc(0xdc)](_0xb91ca=>{const _0x18b38c=_0x4fe3dc;if(this['_removeCollabCursors'](),_0xb91ca){const {skeleton:_0x223df0,cursors:_0x52cbaf}=_0xb91ca;this[_0x18b38c(0x24b)](_0x223df0,_0x52cbaf);}})),this[_0x4fe3dc(0x136)](),this['_initCommandExecutedListener']();}[_0x56cc55(0x24b)](_0x3fd865,_0x36ccbf){const _0x2ffabc=_0x56cc55,{scene:_0xcbde94,mainComponent:_0x259eda}=this['_context'],_0x1ac434=_0x36ccbf['map'](_0x28acd0=>new Ne(_0x28acd0,_0xcbde94,_0x3fd865,_0x259eda));this[_0x2ffabc(0x1e7)]=_0x1ac434,this['_cursors']=_0x36ccbf;}[_0x56cc55(0x37c)](){const _0x1efba3=_0x56cc55;this[_0x1efba3(0x342)]();const {scene:_0x2ec1fd,mainComponent:_0x579904}=this[_0x1efba3(0x24f)],_0x242678=this[_0x1efba3(0xda)][_0x1efba3(0x26c)](),_0x577f39=this[_0x1efba3(0x21b)][_0x1efba3(0x195)](_0x25fe13=>new Ne(_0x25fe13,_0x2ec1fd,_0x242678,_0x579904));this[_0x1efba3(0x1e7)]=_0x577f39;}[_0x56cc55(0x342)](){const _0x1c4ba3=_0x56cc55;this[_0x1c4ba3(0x1e7)][_0x1c4ba3(0x306)](_0x51db52=>_0x51db52[_0x1c4ba3(0x236)]()),this[_0x1c4ba3(0x1e7)]=[];}[_0x56cc55(0x32c)](){const _0x5d8a82=_0x56cc55,_0x4ab911=[p['SetDocZoomRatioOperation']['id']];this[_0x5d8a82(0x303)](this['_commandService'][_0x5d8a82(0x11d)](_0x48d827=>{const _0x9c0022=_0x5d8a82;_0x4ab911[_0x9c0022(0xfe)](_0x48d827['id'])&&_0x48d827[_0x9c0022(0x2d8)][_0x9c0022(0x1cb)]===this[_0x9c0022(0x24f)][_0x9c0022(0x1cb)]&&this['_refreshCollabCursors']();}));}[_0x56cc55(0x136)](){const _0x552ac6=_0x56cc55;this[_0x552ac6(0x303)](a[_0x552ac6(0x20a)](this[_0x552ac6(0x24f)]['engine'][_0x552ac6(0x102)])[_0x552ac6(0x1ad)]($[_0x552ac6(0x2a7)](_0x5015ee=>_0x5015ee[_0x552ac6(0x106)]===C[_0x552ac6(0x22a)]['resize']),$[_0x552ac6(0x1f6)](0x10))[_0x552ac6(0xdc)](()=>{const _0x242282=_0x552ac6;this[_0x242282(0x37c)]();}));}};ge=Ut([q(0x1,a[_0x56cc55(0x32f)](W[_0x56cc55(0x318)])),q(0x2,a['Inject'](B)),q(0x3,a['ICommandService']),q(0x4,a[_0x56cc55(0x32f)](a[_0x56cc55(0x2c4)]))],ge);const Lt=0x1,Mt=1.5;class Be extends C[_0x56cc55(0x2f9)]{constructor(_0x2cd7fe,_0x183cd6){const _0x2f94f4=_0x56cc55;super(_0x2cd7fe,_0x183cd6),_(this,_0x2f94f4(0x16f)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,'_name',''),_(this,'_labelPosition','top'),_(this,_0x2f94f4(0x2ec)),(_0x183cd6&&this[_0x2f94f4(0x2dd)](_0x183cd6),this[_0x2f94f4(0x2d0)][_0x2f94f4(0x1bf)](()=>this[_0x2f94f4(0x2dd)]({'hovered':!0x0})),this[_0x2f94f4(0x216)][_0x2f94f4(0x1bf)](()=>this[_0x2f94f4(0x2dd)]({'hovered':!0x1})));}[_0x56cc55(0x2dd)](_0x2ddced){const _0x468d15=_0x56cc55;var _0xd81638,_0x5ebbd5,_0x1e04d7,_0x4633c8,_0x581a6b,_0x279196;this[_0x468d15(0x16f)]=(_0xd81638=_0x2ddced[_0x468d15(0x35b)])!=null?_0xd81638:this[_0x468d15(0x16f)],this[_0x468d15(0x2bc)]=(_0x5ebbd5=_0x2ddced['hovered'])!=null?_0x5ebbd5:this[_0x468d15(0x2bc)],this[_0x468d15(0x12b)]=(_0x1e04d7=_0x2ddced[_0x468d15(0x119)])!=null?_0x1e04d7:this[_0x468d15(0x12b)],this['_name']=(_0x4633c8=_0x2ddced[_0x468d15(0x1eb)])!=null?_0x4633c8:this['_name'],this[_0x468d15(0x33a)]=(_0x581a6b=_0x2ddced[_0x468d15(0x293)])!=null?_0x581a6b:this['_labelPosition'],this[_0x468d15(0x2ec)]=(_0x279196=_0x2ddced[_0x468d15(0x2de)])!=null?_0x279196:this['_backgroundColor'],this[_0x468d15(0x173)]({'width':_0x2ddced[_0x468d15(0x1a9)],'height':_0x2ddced[_0x468d15(0x184)]});}[_0x56cc55(0x2cd)](_0x5ec357){const _0xa485e3=_0x56cc55,{row:_0x20098b,column:_0x586978}=_0x5ec357;if(_0x20098b>=this[_0xa485e3(0x12b)][_0xa485e3(0x239)]&&_0x20098b<=this[_0xa485e3(0x12b)][_0xa485e3(0x367)]&&_0x586978>=this[_0xa485e3(0x12b)][_0xa485e3(0x103)]&&_0x586978<=this[_0xa485e3(0x12b)][_0xa485e3(0x23c)]){this[_0xa485e3(0x2dd)]({'hovered':!0x0});return;}this[_0xa485e3(0x2dd)]({'hovered':!0x1});}[_0x56cc55(0x301)](_0x329cba){return!0x1;}[_0x56cc55(0x165)](_0x17f75b){const _0x51197d=_0x56cc55;C[_0x51197d(0x298)][_0x51197d(0x132)](_0x17f75b,{'width':this[_0x51197d(0x1a9)],'height':this[_0x51197d(0x184)],'strokeWidth':Mt,'stroke':this[_0x51197d(0x16f)],'evented':!0x1,'fill':this[_0x51197d(0x2ec)]}),this['_hovered']&&(_0x17f75b[_0x51197d(0x191)](),_0x17f75b['transform'](0x1,0x0,0x0,0x1,this[_0x51197d(0x1a9)],this[_0x51197d(0x33a)]==='bottom'?0x0:-X),ie[_0x51197d(0x132)](_0x17f75b,{'text':this[_0x51197d(0x273)],'color':this[_0x51197d(0x16f)]}),_0x17f75b['restore']());}}var At=Object['getOwnPropertyDescriptor'],Pt=(_0x4e59c6,_0x205df4,_0x4a1a76,_0x555e12)=>{const _0x286bcf=_0x56cc55;for(var _0x2cf357=_0x555e12>0x1?void 0x0:_0x555e12?At(_0x205df4,_0x4a1a76):_0x205df4,_0x3c4ba4=_0x4e59c6[_0x286bcf(0x38a)]-0x1,_0x45b42d;_0x3c4ba4>=0x0;_0x3c4ba4--)(_0x45b42d=_0x4e59c6[_0x3c4ba4])&&(_0x2cf357=_0x45b42d(_0x2cf357)||_0x2cf357);return _0x2cf357;},_e=(_0x3eb022,_0x3f1f3a)=>(_0x341190,_0xa09544)=>_0x3f1f3a(_0x341190,_0xa09544,_0x3eb022);const wt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x58e6c8,_0x2f1012,_0x121d8c,_0x4693fa){const _0x2be790=_0x56cc55;super(),_(this,'_cursors',new Set()),_(this,_0x2be790(0x1bd),null),(this['_context']=_0x58e6c8,this[_0x2be790(0x274)]=_0x2f1012,this['_collabCursorController']=_0x121d8c,this[_0x2be790(0x35d)]=_0x4693fa,this['_init']());}['_init'](){const _0x468a54=_0x56cc55;this[_0x468a54(0x274)][_0x468a54(0x20e)][_0x468a54(0x1ad)]($['takeUntil'](this[_0x468a54(0x390)]),$[_0x468a54(0x261)](_0x5301a1=>{const _0x18e388=_0x468a54;if(_0x5301a1){const _0x106bab=_0x5301a1['sheetId'];return I[_0x18e388(0x37a)](this[_0x18e388(0x2a4)][_0x18e388(0x121)](this[_0x18e388(0x24f)][_0x18e388(0x1cb)]),this['_themeService']['currentTheme$'])[_0x18e388(0x1ad)]($[_0x18e388(0x195)](([_0x39b021,_0x5a3c4b])=>{const _0x5c8bb0=_0x18e388,_0x28c2a0=new Map();return _0x39b021[_0x5c8bb0(0x306)]((_0x3f18ef,_0x23254e)=>{const _0x230f60=_0x5c8bb0;if(_0x3f18ef[_0x230f60(0x2b4)]===_0x106bab){const _0xd8aac3={..._0x3f18ef};_0xd8aac3[_0x230f60(0x35b)]=this[_0x230f60(0x35d)][_0x230f60(0x139)](_0x3f18ef[_0x230f60(0x35b)]),_0x28c2a0[_0x230f60(0x22d)](_0x23254e,_0xd8aac3);}}),{'skeleton':_0x5301a1,'cursors':_0x28c2a0};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x468a54(0xdc)](({skeleton:_0x23b8ed,cursors:_0x5d02de})=>{const _0x46a8d1=_0x468a54;this['_removeCollabCursors'](),_0x23b8ed&&this[_0x46a8d1(0x24b)](_0x23b8ed,_0x5d02de);}),this[_0x468a54(0x274)][_0x468a54(0x20e)][_0x468a54(0xdc)](_0x3dd763=>{const _0x3029a9=_0x468a54;if(_0x3dd763==null)return;const {skeleton:_0x3c9570}=_0x3dd763,{scene:_0xb01d61}=this[_0x3029a9(0x24f)];_0xb01d61[_0x3029a9(0x15b)][_0x3029a9(0x1bf)](a[_0x3029a9(0x140)](_0x39e942=>{const _0x1f0bf1=_0x3029a9;var _0x4a55aa,_0x499abd;const {offsetX:_0x42e1d4,offsetY:_0x2c947e}=_0x39e942,{x:_0x532f5c,y:_0xd1bc8c}=_0xb01d61[_0x1f0bf1(0x30c)](C[_0x1f0bf1(0x233)]['FromArray']([_0x42e1d4,_0x2c947e])),{scaleX:_0x50df8e,scaleY:_0x101652}=_0xb01d61[_0x1f0bf1(0x2b2)](),_0x468d49=_0xb01d61[_0x1f0bf1(0x1a1)](C[_0x1f0bf1(0x2a8)][_0x1f0bf1(0x158)]),_0x33fb9b=_0xb01d61[_0x1f0bf1(0x1f4)](C['Vector2'][_0x1f0bf1(0x382)]([_0x532f5c,_0xd1bc8c]),_0x468d49),_0x54779d=_0x3c9570[_0x1f0bf1(0x309)](_0x42e1d4,_0x2c947e,_0x50df8e,_0x101652,_0x33fb9b);((_0x4a55aa=this[_0x1f0bf1(0x1bd)])==null?void 0x0:_0x4a55aa[_0x1f0bf1(0x35f)])===_0x54779d['column']&&((_0x499abd=this[_0x1f0bf1(0x1bd)])==null?void 0x0:_0x499abd[_0x1f0bf1(0x333)])===_0x54779d[_0x1f0bf1(0x333)]||this[_0x1f0bf1(0x21b)]['forEach'](_0x4aaacc=>{const _0x673024=_0x1f0bf1;_0x4aaacc[_0x673024(0x2cd)](_0x54779d);});},0x64));});}[_0x56cc55(0x24b)](_0x329181,_0x2e594e){const _0x165cf6=_0x56cc55;var _0x2a9e0;const _0xe89968=(_0x2a9e0=this['_sheetSkeletonManagerService'][_0x165cf6(0x157)]())==null?void 0x0:_0x2a9e0[_0x165cf6(0x2d5)];if(!_0xe89968)return;const _0x2309ea=this[_0x165cf6(0x2c0)]();if(!_0x2309ea)return;this[_0x165cf6(0x21b)][_0x165cf6(0x306)](_0x1bb27f=>{_0x1bb27f['makeDirty']();});const {scene:_0x5d5000}=_0x2309ea,_0x25ae17=yt(Array[_0x165cf6(0x2e0)](_0x2e594e[_0x165cf6(0x243)]()))[_0x165cf6(0x195)](_0x4fff75=>{const _0x51a25d=_0x165cf6,{color:_0x524f8e,range:_0x5a819d,name:_0x127c88,selection:_0x59607b,sheetID:_0x12cd15}=_0x4fff75,{startColumn:_0x228688,startRow:_0x4f528c,endColumn:_0x34225d,endRow:_0x21d52a}=_0x5a819d,_0x5b8430=z['getCoordByCell'](_0x4f528c,_0x228688,_0x5d5000,_0xe89968),_0xce8c42=z[_0x51a25d(0x1b0)](_0x21d52a,_0x34225d,_0x5d5000,_0xe89968),{columnHeaderHeightAndMarginTop:_0x3ecea4}=_0xe89968,{startX:_0x3971a1,startY:_0x53a44c}=_0x5b8430,{endX:_0x2abffd,endY:_0x2c161a}=_0xce8c42,_0x4c49f8=_0x2abffd-_0x3971a1,_0x3a311d=_0x2c161a-_0x53a44c,_0xd443e8={'labelPosition':_0x53a44c-_0x3ecea4>=X?'top':_0x51a25d(0x1ee),'sheetID':_0x12cd15,'range':_0x5a819d,'color':_0x524f8e,'name':_0x127c88,'selection':_0x59607b,'left':_0x3971a1,'top':_0x53a44c,'width':_0x4c49f8,'height':_0x3a311d,'evented':!0x1,'zIndex':wt};return new Be(_0x127c88,_0xd443e8);});_0x5d5000[_0x165cf6(0x1b1)](_0x25ae17,Lt),this['_cursors']=new Set(_0x25ae17);}[_0x56cc55(0x342)](){const _0x184a7a=_0x56cc55;var _0x2c2e32;(_0x2c2e32=this[_0x184a7a(0x21b)])==null||_0x2c2e32[_0x184a7a(0x306)](_0x10ad7c=>_0x10ad7c[_0x184a7a(0x236)]());}[_0x56cc55(0x2c0)](){const _0x2eac81=_0x56cc55;return z[_0x2eac81(0x32d)](this['_context'][_0x2eac81(0x2d7)],this['_context']);}};ve=Pt([_e(0x1,a[_0x56cc55(0x32f)](z['SheetSkeletonManagerService'])),_e(0x2,a['Inject'](B)),_e(0x3,a['Inject'](a[_0x56cc55(0x2c4)]))],ve);function yt(_0x545bdb){const _0x2f37cb=_0x56cc55,_0x123f6a=new Map();return _0x545bdb[_0x2f37cb(0x306)](_0x17503e=>{const _0x3a5e6c=_0x2f37cb;if(_0x123f6a[_0x3a5e6c(0x36b)](_0x17503e[_0x3a5e6c(0x1d4)])){const _0xcba609=_0x123f6a[_0x3a5e6c(0x15d)](_0x17503e[_0x3a5e6c(0x1d4)]);_0xcba609[_0x3a5e6c(0x1eb)]+=',\x20'+_0x17503e[_0x3a5e6c(0x1eb)];}else _0x123f6a[_0x3a5e6c(0x22d)](_0x17503e[_0x3a5e6c(0x1d4)],_0x17503e);}),Array[_0x2f37cb(0x2e0)](_0x123f6a['values']());}var $t=Object[_0x56cc55(0x369)],xt=(_0x23b7d7,_0x4e7924,_0x39d54f,_0x12bbef)=>{for(var _0x4aa78e=_0x12bbef>0x1?void 0x0:_0x12bbef?$t(_0x4e7924,_0x39d54f):_0x4e7924,_0x7f7ade=_0x23b7d7['length']-0x1,_0x3e6f19;_0x7f7ade>=0x0;_0x7f7ade--)(_0x3e6f19=_0x23b7d7[_0x7f7ade])&&(_0x4aa78e=_0x3e6f19(_0x4aa78e)||_0x4aa78e);return _0x4aa78e;},y=(_0x13b472,_0x5b373f)=>(_0x509d06,_0x543a0f)=>_0x5b373f(_0x509d06,_0x543a0f,_0x13b472);let J=class extends a[_0x56cc55(0x30f)]{constructor(_0x96ad05,_0x11f006,_0x5a3221,_0x30723,_0x4d0552,_0x53dda6){const _0x3ca652=_0x56cc55;super(),this[_0x3ca652(0x13d)]=_0x96ad05,this[_0x3ca652(0x19a)]=_0x11f006,this[_0x3ca652(0xdb)]=_0x5a3221,this[_0x3ca652(0x217)]=_0x30723,this['_notificationService']=_0x4d0552,this[_0x3ca652(0xed)]=_0x53dda6,this[_0x3ca652(0x25a)](),this[_0x3ca652(0x238)]();}[_0x56cc55(0x25a)](){const _0x858822=_0x56cc55;this[_0x858822(0x303)](this[_0x858822(0x13d)][_0x858822(0x1e9)](()=>{const _0x30f8ee=_0x858822;if(this[_0x30f8ee(0x19a)]['saveTaskMap']['size'])return this[_0x30f8ee(0xed)]['t'](_0x30f8ee(0x24c));}));}[_0x56cc55(0x238)](){const _0x42dfb5=_0x56cc55;this['disposeWithMe'](this['_collaborationUIEventService']['event$'][_0x42dfb5(0xdc)](_0x1f046c=>{const _0x1c80ff=_0x42dfb5;_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x2ab)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0x108)],'content':this['_localeService']['t'](_0x1c80ff(0x372))}),_0x1f046c['id']===u[_0x1c80ff(0x329)]['CLOSE_ROOM']&&this['_messageService'][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0x108)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x204))}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x1f0)]&&this[_0x1c80ff(0x332)]['show']({'title':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x2a6)),'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x170)),'type':_0x1c80ff(0x1b4),'duration':0x0}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x2b8)]&&this[_0x1c80ff(0x217)]['show']({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0xd2)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x204))+'('+_0x1f046c[_0x1c80ff(0x206)]+')'}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0xd6)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)]['Warning'],'content':this[_0x1c80ff(0xed)]['t'](_0x1f046c[_0x1c80ff(0x206)]||'')}),_0x1f046c['id']===u[_0x1c80ff(0x329)][_0x1c80ff(0x1a2)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0x108)],'content':this['_localeService']['t'](_0x1c80ff(0x2e6))}),_0x1f046c['id']===u[_0x1c80ff(0x329)]['SOCKET_FAILED']&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0xd2)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x224))}),_0x1f046c['id']===u['CollaborationUIEventId'][_0x1c80ff(0x38c)]&&this[_0x1c80ff(0x217)][_0x1c80ff(0x357)]({'type':T[_0x1c80ff(0x363)][_0x1c80ff(0xd2)],'content':this[_0x1c80ff(0xed)]['t'](_0x1c80ff(0x221))});}));}};function _0x2fa8(){const _0x499915=['_selfUnitIDs','disposeWithMe','Unknown\x20user','_uiPartsService','forEach','PY_RUNTIME_SCRIPT_ERROR','MOBILE_VERIFY_CODE_MISMATCH','getCellPositionByOffset','_onCursorDelete','some','getRelativeToViewportCoord','SUCCESS','fillRule','Disposable','application/json','disableLocalCache','IRenderManagerService','_lastResponseTimestamp','NodePositionConvertToRectRange','InsertRangeMoveRightCommandId','_saveTaskMap','getUndoRedoMutationParamsCache','DocSkeletonManagerService','sessionTicket','contains','path','RemoteUniscriptService','getValue','getMember','_getFormulaLimitStatus','YUUMI_TABLE_NOT_FOUND_IN_UNIT','YUUMI_ASYNCIO_CANCELLED','Failed','_assignedColors','_transformUndoRedoStack','fromEvent','then','disposeUnit','setAlpha','CollaborationUIEventId','_updateSubUnitFromURLParams','_registerDependencies','_initCommandExecutedListener','getSheetObject','SetSelectionsOperation','Inject','EffectRefRangId','147844tZdutA','_notificationService','row','Loading','delete','AWAITING','WebSocketService','_anchorDot','newValue','_labelPosition','0\x200\x2017\x2016','getConfig','ALREADY_EXISTS','attrs','INVALID_INVITE_CODE','COLORS','RichTextEditingMutation','_removeCollabCursors','getSheetId','text','transformRemoteChangeset','_transformHistoryAndStateStack','EMAIL_VERIFY_CODE_MISMATCH','isFormulaString','_drawTextRange','univer-flex\x20univer-items-center','collab-rect-range-','toStringTag','SetTextSelectionsOperation','_handleHover','startsWith','whenReady','YUUMI_SUBSCRIPTION_NOT_FOUND','ticket','getUnhiddenWorksheets','_id','releaseFormulaLimitUrl','_getMergeRange','show','_transformService','wsSessionTicketUrl','YUUMI_UNABLE_LOAD_URL','color','add','_themeService','getOffsetConfig','column','transformStateCache','beforeCommandExecuted','collabStatus.syncing','MessageType','sessionStatus$','storage','fillText','endRow','generateRandomId','getOwnPropertyDescriptor','complete','has','HEADER_MENU','InsertRowCommandId','_logService','mask','runId','CHANGESET_REVISION_CONFILICT','collaboration.single-unit.warning','INVITE_CODE_ALREADY_BOUND','deepClone','getCellMatrix','http://www.w3.org/2000/svg','773778OwPhTv','formula.calculation.unable','stringify','combineLatest','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_refreshCollabCursors','unshift','purple.300','unload','next','INVALID_ARGUMENT','FromArray','_scheduleClearOtherTimer','[RemoteUniscriptService]:\x20no\x20focused\x20unit','LICENSE_MAX_UNITS_EXCEEDED','_docTransformStateCacheService','_releaseCalculationLimit','_textBubble','_univerInstanceService','length','MOBILE_HAS_BEEN_BOUND','SUBMIT_CHANGESET_TIMEOUT','UniverIcon','_startDocCollabCursor','clearTimeout','dispose$','updateOfflineData','Error','transformMutation','setUndoRedoMutationParamsCache','createSocket','JOIN_ROOM_FAILED','toDisposable','REDEMPTION_USER_NOT_ELIGIBLE','addEventListener','_docSkeletonManagerService','_collaborationUIEventService','subscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','isArray','onStarting','entityInit$','body','collabStatus.notCollab','_drawRectRange','getActiveRange','currentColor','UnitStatus','USER_NOT_INVITED_CODE','functionsExecutedState','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','black','memberID','_taskIds','_localeService','INVITE_CODE_HAS_BEEN_UES','SYNCED','_handleLeaveEvent','with','CommandType','mutations','UPDATE_CURSOR','push','doc.mutation.rich-text-editing','_drawAnchor','DocCollaborationEntity','univerjs-icon\x20univerjs-icon-','_urlService','actions','YUUMI_ALL_TABLES_IS_INVALID','parseInt','includes','_setupSubUnitSync','popstate','init','onTransformChange$','startColumn','_renderManagerService','OnLineIcon','type','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Warning','collab-client.tooltip.reconnect','setInterval','currentTheme$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getMergeData','_init','M0\x200H16V16H0z','LICENSE_DISTRO_REJECTED','handleInsertRow','urlChange$','loadOfflineData','3982gIQDoU','_handleJoinEvent','getFocusedUnit','_initStatusListener','INTERNAL_ERROR','range','APPLY_PERMISSION_DENIED','tag','21sOERFc','onCommandExecuted','UniverCollaborationClientUIPlugin','origin','_httpService','getCollabCursors$','_docStateChangeManagerService','1em','green.600','ENTITLE_DUP_SUBSCRIPTION','_docClipboardService','red.300','_refRangeService','colorChannel1','pluginName','_range','OTHER_CLIENTS_EDITING','CollaborationDataLoaderController','m1Prime','setActiveRange','hide','registerRefRange','drawWith','shift','jsx','_handleHeartbeatEvent','_initResize','_render','ACTIVE_UNIT_EVENT_CHANNEL','getColorFromTheme','pushState','setItem','HTTPService','_beforeCloseService','forwardRef','APPLY_REVISION_CONFILICT','debounce','useObservable','stage','useDependency','collab-text-anchor-','ENSURE_SNAPSHOT_EXECUTION','DEFAULT_WS_SESSION_TICKET_URL','RECT','exhaustSavingTask','IMessageService','SetFormulaCalculationStartMutation','limitInfo','getTypeOfUnitDisposed$','ENTITLE_NEED_BILLING_ADDRESS','collabStatus.offline','handleDeleteRangeMoveLeft','LOCAL_CACHE_INTERVAL_KEY','off-line-icon','_imageIoService','_roomMembers$','905768uJxuSf','TEXT_RANGE_LAYER_INDEX','_cursor','getCurrent','VIEW_MAIN','collabStatus.synced','UniverInstanceType','onPointerMove$','handleInsertCol','get','REDEMPTION_CODE_NOT_STARTED','assign','div','FormulaExecuteStageType','APPLY_REJECT','_hasFormulaInDirtyRanges','YUUMI_AI_RUN_FAILED','_draw','InsertColCommandId','getCurrentUnitForType','DisposableCollection','result','setStateCache','_toggleOffline','UniverCollaborationClientPlugin','assignAColorForMemberID','_createSocketURL','_color','permission.content','_getSaveTimeout','measureText','transformByState','registerComponent','toString','PENDING','requireSession','SheetsSelectionsService','white','addClipboardHook','CURRENT_STATUS_CANNOT_OPERATE','getSheetBySheetId','RemoveRowCommandId','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_ensureSubject','fill','restore','CollaborationSocketService','520MAEkpS','height','setTimeout','maxFormulaLimit','_currentUsage','string','ENTITLE_CAN_NOT_BUY_LOWER_OTP','_injector','replaceDocRanges','_docTransformSelectionsService','ColorKit','_updateLocalCursor','_cursorInfo$','?taskId=','save','closePath','_memberService','getRenderById','map','stageInfo','split','CollaborationController','startFormulaLimitUrl','_localCacheService','xlink:href','RxDisposable','getDocRanges','merge','FETCH_MISS','_pollingInterval','getViewport','SOCKET_FAILED_RETRY','registerRenderModule','...','substring','mapTo','SheetCollabCursorShape','addObject','width','roomMembers','_checkCalculationAvailable','url(#$1','pipe','_config','39250eehMgH','getCoordByCell','addObjects','BehaviorSubject','Rectangle','error','code','setParam','blue.400','[CollaborationDataLoaderController]','cursorInfo','children','arc','YUUMI_URL_COL_OUT_OF_RANGE','_lastPointer','isEditing','subscribeEvent','_saveCache','collabStatus.conflict','_send','handleInsertRangeMoveDown','_getAnchorBounding','createElement','/universer-api/license/formula/limit/status','YUUMI_RATE_OVER_LIMIT','ISnapshotServerService','PAYMENT_CHANNEL_NOT_SUPPORT','totalFormulasToCalculate','unitId','collabCursorState$','_checkAndWaitForCalculationPermission','_status$','TEXT','_scheduleSaving','MoveRangeCommandId','ICommandService','registerDependencies','selection','_updateURLWithCurrentState','clipPath','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','_instanceService','enableLocalCache','formula.calculation.waiting','findNodePositionByCharIndex','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','debug','BrowserCollaborationSocketService','useCallback','_scene','isTransformMutationFailure','_getScale','START_CALCULATION','ILogService','find','WebBrowserSingleActiveUnitService','_cursorShapes','serializeRangeWithSheet','registerBeforeClose','_transformPreviousActiveRange','name','_initStatusComponent','location','bottom','unitID','PERMISSION_DENIED','CollaborationUIEventService','LocaleService','INVITE_CODE_REQUIRED','getVpScrollXYInfoByPosToVp','setConfig','throttleTime','addHandlerCallback','_startSheetCollabCursor','WebURLService','YUUMI_CONNECTOR_URL_NOT_FOUND','toRgbString','subunit','EMAIL_HAS_BEEN_BOUND','translate(.97)','event$','_unitOnClients','_unitStatus','runRefRangeMutations','IConfigService','collaboration.closeRoom','flatMap','data','LOGIN_FAILED','idSuffix','_startCalculationLimit','fromEventSubject','handleIRemoveRow','ERROR_AGAIN','_disabled','currentSkeleton$','NOT_FOUND','ENTITLE_CHAT_LIMIT_EXCEED','IUniverInstanceService','font','key','Subject','_configService','onPointerLeave$','_messageService','_toggleOnline','createInstance','_colorIndex','_cursors','_registerRenderDependencies','defineProperty','Plugin','_clearOtherTimers','on-line-icon_clip0_910_349','session.collaboration-timeout','editingUnit','APPLY_DUPLICATED','session.connection-failed','href','_commandService','distinctUntilChanged','Success','createIdentifier','TRANSFORM_CHANGE_OBSERVABLE_TYPE','url(#on-line-icon_clip0_910_349)','YUUMI_NO_CUBOID_FOR_QUESTION','set','AUTHORIZE_CODE_ILLEGAL','evenodd','unsubscribe','random','SetWorksheetActivateCommand','Vector2','runOnServer','USERS_LEAVE','dispose','CollaborationEvent','_initEvent','startRow','isFormulaId','_initCommandInterceptor','endColumn','collabStatus.fetchMiss','_shapes','REDEMPTION_CODE_HAS_BEEN_CREATED','replace','Workbook','_removeClearOtherTimer','values','DataLoaderService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_handleEvent','uni.network.url-service','cursorInfo$','handleMoveRange','Injector','_updateCollabCursors','collaboration-client.offline-data-not-saved','IURLService','_session','_context','_maxFormulaLimit','handleDeleteRangeMoveUp','UNAUTHENTICATED','_document','ITransformService','_cachedData','OffLineIcon','USER_NOT_FOUND','_collabSessionService','getParam','_setupBeforeClosingHandler','formula.calculation.started','103590MsKFnm','_dataLoaderService','round','UNIVER_SHEET','imageSourceType','switchMap','handleIRemoveCol','getRangePointData','DOC_RANGE_TYPE','all','defIds','redoState','transformIMECache','IUIPartsService','trim','displayName','getSkeleton','REDEMPTION_CODE_INACTIVE','LICENSE_EXPORT_SIZE_EXCEEDED','_doCreateSocket','status$','_showGuardMessage','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_name','_sheetSkeletonManagerService','AWAITING_WITH_PENDING','REDEMPTION_CODE_FULLY_REDEEMED','_initEntityListener','textRanges','clearInterval','onRendered','NO_OTHER_CLIENTS_EDITING','_anchor','LICENSE_IMPORT_SIZE_EXCEEDED','univer-mr-2\x20univer-flex\x20univer-text-xl','symbol','IDocClipboardService','lineTo','_applyCommand','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','transformSelections','send','override','undoState','_setFormulaLimitStatus','_hover','_syncEditingCollabCursorService','getUnitId','getStateCache','_onCursorUpdate','selections','now','DocStateChangeManagerService','IRemoteInstanceService','ranges','labelPosition','_localStorageService','_revisionService','MemberService','_docTransformIMECacheService','Rect','InsertRangeMoveDownCommandId','activeSheet$','debounceTime','isTransformMutationsWithChangesetSuccess','OFFLINE','Tooltip','DocSelectionManagerService','WECHAT_HAS_BEEN_BOUND','getColor','asObservable','m2Prime','_collabCursorController','DeleteRangeMoveUpCommandId','permission.title','filter','SHEET_VIEWPORT_KEY','LOGIN_TOKEN_PROCESSING_FAILED','syncEditingCollabCursor','OTHER_CLIENT_EDITING','current','entries','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','5zYlcjE','APPLY_NON_SEQUENTIAL_REVISION','ONLINE','getAncestorScale','none','sheetID','Tools','_docSyncEditingCollabCursorService','_entityInit$','CONFLICT','takeUntil','_colorAssignService','TOO_MANY_REQUESTS','_hovered','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','COMPLETION_FINISHED','_initDependencies','_getSheetObject','useRef','use','defs','ThemeService','RegularPolygon','collab-text-range-','getActiveSheet','726099YZyqeF','searchParams','DocIMEInputManagerService','min','eventID','onMouseMove','UNIVER_DOC','SNAPSHOT_HAS_BEEN_REMOVED','onPointerEnter$','_onRefRangeChange','_entities','history','replaceState','skeleton','getTypeOfUnitAdded$','unit','params','REDEMPTION_INVALID_CODE','_clearPolling','IBeforeCloseService','4YGAMzL','setShapeProps','backgroundColor','size','from','SetFormulaCalculationNotificationMutation','_heartbeatTimer','subUnitId','getCurrentRevOfUnit','_collabCursorState$','session.will-retry','16416ZmCRqo','getMemberID','Optional','touchDependencies','ILocalCacheService','_backgroundColor','LOCAL_CACHE_INTERVAL','_hideTimer','CollaborationStatus','isActive','ISocketService','post','executeCommand','_online','_eventUnsubscribe','yellow.400','getformulaLimitStatusUrl','UNDEFINED','Shape','svg','_collaborationController','_getSessionTicket','DesktopCollaborationStatusDisplayController','DependentOn','NOT_COLLAB','transformMutationsWithChangeset','triggerDblclick'];_0x2fa8=function(){return _0x499915;};return _0x2fa8();}J=xt([y(0x0,O[_0x56cc55(0x2db)]),y(0x1,u[_0x56cc55(0x2eb)]),y(0x2,a['Inject'](u[_0x56cc55(0x1f1)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x56cc55(0x32f)](a[_0x56cc55(0x1f2)]))],J);const Bt='collaboration-client-ui.config',Ue={};var Ft=Object[_0x56cc55(0x369)],kt=(_0x20ef38,_0x301a07,_0x441321,_0x1e0091)=>{const _0x205c4f=_0x56cc55;for(var _0x2e414c=_0x1e0091>0x1?void 0x0:_0x1e0091?Ft(_0x301a07,_0x441321):_0x301a07,_0x1ce739=_0x20ef38[_0x205c4f(0x38a)]-0x1,_0x53b2a0;_0x1ce739>=0x0;_0x1ce739--)(_0x53b2a0=_0x20ef38[_0x1ce739])&&(_0x2e414c=_0x53b2a0(_0x2e414c)||_0x2e414c);return _0x2e414c;},Le=(_0x33a93d,_0x23011b)=>(_0x371b88,_0x608b95)=>_0x23011b(_0x371b88,_0x608b95,_0x33a93d);let Z=class{constructor(_0x37acce,_0x71a6b3){const _0x414b33=_0x56cc55;this[_0x414b33(0x358)]=_0x37acce,this[_0x414b33(0x104)]=_0x71a6b3;}[_0x56cc55(0x268)](_0x1b686f){const _0x95b86a=_0x56cc55;this[_0x95b86a(0x324)](_0x1b686f),this[_0x95b86a(0x1ea)](_0x1b686f);}['transformRemoteChangeset'](_0x265eb4){const _0x2e108f=_0x56cc55,{unitID:_0x20c445}=_0x265eb4,_0x2b90e1=this[_0x2e108f(0x104)][_0x2e108f(0x194)](_0x20c445)[_0x2e108f(0xf1)](p[_0x2e108f(0x2ca)]),{redoCache:_0x32b4b2}=_0x2b90e1[_0x2e108f(0x317)]();if(_0x32b4b2[_0x2e108f(0x38a)]===0x0)return _0x265eb4;let _0x25ca7d=a['Tools'][_0x2e108f(0x374)](_0x265eb4['mutations'][0x0]);for(let _0x968d36=0x0;_0x968d36<_0x32b4b2['length'];_0x968d36++){const _0x243055={'id':_0x2e108f(0xf6),'params':{..._0x32b4b2[_0x968d36]}},_0x15fc88=this[_0x2e108f(0x358)]['transformMutation'](_0x25ca7d,_0x243055,!0x1);if(v[_0x2e108f(0x1e1)](_0x15fc88))throw _0x15fc88['error'];_0x25ca7d=_0x15fc88[_0x2e108f(0x12e)];}return{...a[_0x2e108f(0x2b5)][_0x2e108f(0x374)](_0x265eb4),'mutations':[_0x25ca7d]};}[_0x56cc55(0x324)](_0x4cd99b){const _0x71ab6e=_0x56cc55,{unitID:_0x1a53bd}=_0x4cd99b,_0xabf045=this[_0x71ab6e(0x104)][_0x71ab6e(0x194)](_0x1a53bd)['with'](p[_0x71ab6e(0x2ca)]),{undoCache:_0x23d1a3,redoCache:_0x316af2}=_0xabf045[_0x71ab6e(0x317)]();if(_0x23d1a3[_0x71ab6e(0x38a)]===0x0||_0x316af2[_0x71ab6e(0x38a)]===0x0)return;const _0x432bfc=[],_0x34cdf2=[];let _0x3fce3f=a[_0x71ab6e(0x2b5)][_0x71ab6e(0x374)](_0x4cd99b[_0x71ab6e(0xf3)][0x0]),_0x3444af=a[_0x71ab6e(0x2b5)][_0x71ab6e(0x374)](_0x4cd99b[_0x71ab6e(0xf3)][0x0]);for(let _0x5431b0=_0x23d1a3[_0x71ab6e(0x38a)]-0x1;_0x5431b0>=0x0;_0x5431b0--){const _0x33464a={'id':_0x71ab6e(0xf6),'params':{..._0x23d1a3[_0x5431b0]}},_0x1c1b6c={'id':_0x71ab6e(0xf6),'params':{..._0x316af2[_0x5431b0]}},_0x4477a2=this[_0x71ab6e(0x358)][_0x71ab6e(0xd3)](_0x3fce3f,_0x33464a,!0x1),_0x4db28a=this['_transformService'][_0x71ab6e(0xd3)](_0x3444af,_0x1c1b6c,!0x1);if(v['isTransformMutationFailure'](_0x4477a2))throw _0x4477a2[_0x71ab6e(0x1b4)];if(v[_0x71ab6e(0x1e1)](_0x4db28a))throw _0x4db28a[_0x71ab6e(0x1b4)];_0x432bfc[_0x71ab6e(0x37d)](_0x4477a2[_0x71ab6e(0x2a3)][_0x71ab6e(0x2d8)]),_0x34cdf2['unshift'](_0x4db28a[_0x71ab6e(0x2a3)][_0x71ab6e(0x2d8)]),_0x3fce3f=_0x4477a2[_0x71ab6e(0x12e)],_0x3444af=_0x4db28a[_0x71ab6e(0x12e)];}_0xabf045[_0x71ab6e(0xd4)]({'undoCache':_0x432bfc,'redoCache':_0x34cdf2});}[_0x56cc55(0x1ea)](_0x345255){const _0x37a9b3=_0x56cc55,{unitID:_0x2aa011}=_0x345255,_0xe757ac=this[_0x37a9b3(0x104)][_0x37a9b3(0x194)](_0x2aa011)['with'](p[_0x37a9b3(0x2ca)]),_0x18d711=_0xe757ac[_0x37a9b3(0xe4)]();if(_0x18d711==null)return;const _0x5059c0=[{'id':_0x37a9b3(0xf6),'params':{'unitId':_0x345255[_0x37a9b3(0x1ef)],'actions':null,'textRanges':[_0x18d711]}}],_0x17850c=this['_transformService'][_0x37a9b3(0x300)](_0x345255,_0x5059c0);if(!v[_0x37a9b3(0x29c)](_0x17850c))throw _0x17850c[_0x37a9b3(0x1b4)];const _0x49781c=_0x17850c[_0x37a9b3(0x2a3)][0x0]['params'][_0x37a9b3(0x278)];Array[_0x37a9b3(0xde)](_0x49781c)&&_0x49781c[_0x37a9b3(0x38a)]&&_0xe757ac[_0x37a9b3(0x12f)](_0x49781c[0x0]);}};Z=kt([Le(0x0,v[_0x56cc55(0x254)]),Le(0x1,C[_0x56cc55(0x312)])],Z);var jt=Object[_0x56cc55(0x369)],Yt=(_0x16a2cb,_0x5084d8,_0x43442c,_0x507ddb)=>{for(var _0x5738a3=_0x507ddb>0x1?void 0x0:_0x507ddb?jt(_0x5084d8,_0x43442c):_0x5084d8,_0x2240b2=_0x16a2cb['length']-0x1,_0x5f5388;_0x2240b2>=0x0;_0x2240b2--)(_0x5f5388=_0x16a2cb[_0x2240b2])&&(_0x5738a3=_0x5f5388(_0x5738a3)||_0x5738a3);return _0x5738a3;},he=(_0x258368,_0x560bc3)=>(_0x5960f7,_0x307029)=>_0x560bc3(_0x5960f7,_0x307029,_0x258368);let Q=class{constructor(_0x1502b4,_0x45f6a5,_0x448521){const _0x38c7a5=_0x56cc55;this[_0x38c7a5(0x18a)]=_0x1502b4,this[_0x38c7a5(0x358)]=_0x45f6a5,this[_0x38c7a5(0x122)]=_0x448521;}[_0x56cc55(0x360)](_0x5e4ab8){this['_transformHistoryAndStateStack'](_0x5e4ab8);}[_0x56cc55(0x345)](_0x275e05){const _0x4065b5=_0x56cc55,{unitID:_0x2a82b2}=_0x275e05,{collaboration:_0x39f1b2}=this[_0x4065b5(0x122)][_0x4065b5(0x28c)](_0x2a82b2);if(_0x39f1b2[_0x4065b5(0x38a)]===0x0)return _0x275e05;let _0x6b84=a[_0x4065b5(0x2b5)][_0x4065b5(0x374)](_0x275e05['mutations'][0x0]);for(let _0xc97646=0x0;_0xc97646<_0x39f1b2[_0x4065b5(0x38a)];_0xc97646++){const _0x2c96d7={'id':_0x4065b5(0xf6),'params':{'unitId':_0x39f1b2[_0xc97646]['unitId'],..._0x39f1b2[_0xc97646][_0x4065b5(0x267)]}},_0x339e41=this[_0x4065b5(0x358)][_0x4065b5(0xd3)](_0x6b84,_0x2c96d7,!0x1);if(v[_0x4065b5(0x1e1)](_0x339e41))throw _0x339e41[_0x4065b5(0x1b4)];_0x6b84=_0x339e41[_0x4065b5(0x12e)];}return{...a['Tools'][_0x4065b5(0x374)](_0x275e05),'mutations':[_0x6b84]};}[_0x56cc55(0x346)](_0x4e9181){const _0x2bb537=_0x56cc55,{unitID:_0x210cbe}=_0x4e9181,{history:_0x47bb1b,collaboration:_0x1107dd}=this[_0x2bb537(0x122)][_0x2bb537(0x28c)](_0x210cbe);if(_0x47bb1b[_0x2bb537(0x38a)]===0x0&&_0x1107dd[_0x2bb537(0x38a)]===0x0)return;const _0x708f0d=[],_0xcc5c1f=[];let _0x4f0af2=a[_0x2bb537(0x2b5)]['deepClone'](_0x4e9181[_0x2bb537(0xf3)][0x0]),_0x43396b=a['Tools'][_0x2bb537(0x374)](_0x4e9181[_0x2bb537(0xf3)][0x0]);for(let _0x37b8eb=_0x47bb1b[_0x2bb537(0x38a)]-0x1;_0x37b8eb>=0x0;_0x37b8eb--){const _0x3efdb6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x47bb1b[_0x37b8eb][_0x2bb537(0x1cb)],..._0x47bb1b[_0x37b8eb][_0x2bb537(0x287)]}},_0x1701ab={'id':_0x2bb537(0xf6),'params':{'unitId':_0x47bb1b[_0x37b8eb][_0x2bb537(0x1cb)],..._0x47bb1b[_0x37b8eb]['redoState']}},_0x2e9052=this[_0x2bb537(0x358)][_0x2bb537(0xd3)](_0x4f0af2,_0x3efdb6,!0x1),_0x3ef9f7=this['_transformService'][_0x2bb537(0xd3)](_0x43396b,_0x1701ab,!0x1);if(v[_0x2bb537(0x1e1)](_0x2e9052))throw _0x2e9052['error'];if(v[_0x2bb537(0x1e1)](_0x3ef9f7))throw _0x3ef9f7[_0x2bb537(0x1b4)];_0x708f0d[_0x2bb537(0x37d)]({..._0x47bb1b[_0x37b8eb],'undoState':_0x2e9052[_0x2bb537(0x2a3)]['params'],'redoState':_0x3ef9f7[_0x2bb537(0x2a3)][_0x2bb537(0x2d8)]}),_0x4f0af2=_0x2e9052[_0x2bb537(0x12e)],_0x43396b=_0x3ef9f7[_0x2bb537(0x12e)];}_0x4f0af2=a['Tools']['deepClone'](_0x4e9181[_0x2bb537(0xf3)][0x0]),_0x43396b=a[_0x2bb537(0x2b5)][_0x2bb537(0x374)](_0x4e9181[_0x2bb537(0xf3)][0x0]);for(let _0x261d28=_0x1107dd[_0x2bb537(0x38a)]-0x1;_0x261d28>=0x0;_0x261d28--){const _0x2818f6={'id':_0x2bb537(0xf6),'params':{'unitId':_0x1107dd[_0x261d28]['unitId'],..._0x1107dd[_0x261d28][_0x2bb537(0x287)]}},_0x1a20c2={'id':_0x2bb537(0xf6),'params':{'unitId':_0x1107dd[_0x261d28][_0x2bb537(0x1cb)],..._0x1107dd[_0x261d28]['redoState']}},_0x3767ed=this[_0x2bb537(0x358)][_0x2bb537(0xd3)](_0x4f0af2,_0x2818f6,!0x1),_0x1a53db=this[_0x2bb537(0x358)][_0x2bb537(0xd3)](_0x43396b,_0x1a20c2,!0x1);if(v['isTransformMutationFailure'](_0x3767ed))throw _0x3767ed[_0x2bb537(0x1b4)];if(v[_0x2bb537(0x1e1)](_0x1a53db))throw _0x1a53db[_0x2bb537(0x1b4)];_0xcc5c1f[_0x2bb537(0x37d)]({..._0x1107dd[_0x261d28],'undoState':_0x3767ed['m2Prime'][_0x2bb537(0x2d8)],'redoState':_0x1a53db['m2Prime']['params']}),_0x4f0af2=_0x3767ed[_0x2bb537(0x12e)],_0x43396b=_0x1a53db[_0x2bb537(0x12e)];}this[_0x2bb537(0x122)][_0x2bb537(0x16a)](_0x210cbe,{'history':_0x708f0d,'collaboration':_0xcc5c1f});}};Q=Yt([he(0x0,a[_0x56cc55(0x32f)](a['Injector'])),he(0x1,v[_0x56cc55(0x254)]),he(0x2,a[_0x56cc55(0x32f)](p[_0x56cc55(0x290)]))],Q);var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x471e43,_0x1d9ba7,_0x52d635,_0x5a4f76)=>{const _0x1e871c=_0x56cc55;for(var _0x5989f8=_0x5a4f76>0x1?void 0x0:_0x5a4f76?Ht(_0x1d9ba7,_0x52d635):_0x1d9ba7,_0x59cefd=_0x471e43[_0x1e871c(0x38a)]-0x1,_0x39851c;_0x59cefd>=0x0;_0x59cefd--)(_0x39851c=_0x471e43[_0x59cefd])&&(_0x5989f8=_0x39851c(_0x5989f8)||_0x5989f8);return _0x5989f8;},Me=(_0x1085e7,_0x118365)=>(_0x8b5068,_0x48e9c3)=>_0x118365(_0x8b5068,_0x48e9c3,_0x1085e7);let ee=class{constructor(_0x185deb,_0x3a1b07){const _0x46266c=_0x56cc55;this[_0x46266c(0x18a)]=_0x185deb,this[_0x46266c(0x358)]=_0x3a1b07;}['transformSelections'](_0x54dde7){const _0x28ee70=_0x56cc55;var _0x28817b;const _0x3faf38=this['_injector'][_0x28ee70(0x15d)](W['DocSelectionManagerService']),_0x515cc0=(_0x28817b=_0x3faf38[_0x28ee70(0x19d)]())!=null?_0x28817b:[];if(_0x515cc0[_0x28ee70(0x38a)]===0x0)return;const _0x924c4=_0x54dde7['unitID'],_0x3cea58=[{'id':_0x28ee70(0xf6),'params':{'unitId':_0x924c4,'actions':null,'textRanges':_0x515cc0}}],_0x1fc6cb=this[_0x28ee70(0x358)][_0x28ee70(0x300)](_0x54dde7,_0x3cea58);if(!v[_0x28ee70(0x29c)](_0x1fc6cb))throw _0x1fc6cb['error'];const _0x537c02=_0x1fc6cb['m2Prime'][0x0][_0x28ee70(0x2d8)][_0x28ee70(0x278)];Array[_0x28ee70(0xde)](_0x537c02)&&_0x537c02[_0x28ee70(0x38a)]&&_0x3faf38[_0x28ee70(0x18b)](_0x537c02,{'unitId':_0x924c4,'subUnitId':_0x924c4},!0x1);}};ee=Wt([Me(0x0,a[_0x56cc55(0x32f)](a[_0x56cc55(0x24a)])),Me(0x1,v[_0x56cc55(0x254)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x5c02fe,_0x67e5c2,_0x3fdc44,_0x397d52)=>{const _0x44050c=_0x56cc55;for(var _0x1258db=_0x397d52>0x1?void 0x0:_0x397d52?Vt(_0x67e5c2,_0x3fdc44):_0x67e5c2,_0x536217=_0x5c02fe[_0x44050c(0x38a)]-0x1,_0x2ee370;_0x536217>=0x0;_0x536217--)(_0x2ee370=_0x5c02fe[_0x536217])&&(_0x1258db=_0x2ee370(_0x1258db)||_0x1258db);return _0x1258db;},N=(_0x238b48,_0x48cd77)=>(_0x562861,_0x3053b1)=>_0x48cd77(_0x562861,_0x3053b1,_0x238b48);let te=class extends a[_0x56cc55(0x30f)]{constructor(_0x20a009,_0x5c5b0a,_0xedaa61,_0x64f181,_0xea1139,_0x21f32b,_0x156a4c,_0x5a9458){const _0x1f21a9=_0x56cc55;super(),_(this,_0x1f21a9(0x1ce),new I[(_0x1f21a9(0x1b2))](u[_0x1f21a9(0x2ef)][_0x1f21a9(0x2ff)])),(this['_docStateChangeManagerService']=_0x20a009,this[_0x1f21a9(0x2fb)]=_0x5c5b0a,this[_0x1f21a9(0x297)]=_0xedaa61,this[_0x1f21a9(0x386)]=_0x64f181,this[_0x1f21a9(0x18c)]=_0xea1139,this[_0x1f21a9(0x2b6)]=_0x21f32b,this['_messageService']=_0x156a4c,this[_0x1f21a9(0xed)]=_0x5a9458,this[_0x1f21a9(0x277)]());}['_initEntityListener'](){const _0x55459a=_0x56cc55;this[_0x55459a(0x303)](this[_0x55459a(0x2fb)][_0x55459a(0xe0)]['subscribe'](_0x45cba7=>{const _0x24892d=_0x55459a,_0x1c0085=this[_0x24892d(0x122)]['docStateChange$']['subscribe'](_0xd28b01=>{const _0x4b4997=_0x24892d;if(_0xd28b01==null)return;const {unitId:_0x2fbf9e,redoState:_0x29c20b,commandId:_0x4d6e82}=_0xd28b01;if(_0x2fbf9e!==_0x45cba7['unitID'])return;const _0x574fd1={'id':_0x4d6e82,'type':a[_0x4b4997(0xf2)]['MUTATION'],'params':{'unitId':_0x2fbf9e,'actions':_0x29c20b[_0x4b4997(0xfb)],'textRanges':null}};_0x45cba7['onLocalMutation'](_0x574fd1);});if(_0x45cba7[_0x24892d(0x303)](_0x1c0085),_0x45cba7 instanceof u[_0x24892d(0xf8)]){const _0x27f936={'onTransformIME':_0xd2d6aa=>this[_0x24892d(0x297)][_0x24892d(0x268)](_0xd2d6aa),'onTransformState':_0xe16827=>this['_docTransformStateCacheService'][_0x24892d(0x360)](_0xe16827),'onTransformSelections':_0x4d9417=>this[_0x24892d(0x18c)][_0x24892d(0x284)](_0x4d9417),'onSyncEditingCollabCursor':_0x50303c=>this[_0x24892d(0x2b6)][_0x24892d(0x2aa)](_0x50303c),'onTransformRemoteChangesetByIMECache':_0x2428b5=>this[_0x24892d(0x297)][_0x24892d(0x345)](_0x2428b5),'onTransformRemoteChangesetByStateCache':_0x4d5926=>this[_0x24892d(0x386)][_0x24892d(0x345)](_0x4d5926)};_0x45cba7[_0x24892d(0x1f7)](_0x27f936);}}));}};te=Gt([N(0x0,a[_0x56cc55(0x32f)](p['DocStateChangeManagerService'])),N(0x1,a[_0x56cc55(0x32f)](u['CollaborationController'])),N(0x2,a[_0x56cc55(0x32f)](Z)),N(0x3,a['Inject'](Q)),N(0x4,a[_0x56cc55(0x32f)](ee)),N(0x5,a[_0x56cc55(0x32f)](Oe)),N(0x6,O[_0x56cc55(0x149)]),N(0x7,a[_0x56cc55(0x32f)](a['LocaleService']))],te);var V=(_0x4548e6=>(_0x4548e6[_0x4548e6[_0x56cc55(0x2f8)]=0x0]=_0x56cc55(0x2f8),_0x4548e6[_0x4548e6['OK']=0x1]='OK',_0x4548e6[_0x4548e6[_0x56cc55(0x118)]=0x2]=_0x56cc55(0x118),_0x4548e6[_0x4548e6[_0x56cc55(0x1f0)]=0x3]=_0x56cc55(0x1f0),_0x4548e6[_0x4548e6['NOT_FOUND']=0x4]=_0x56cc55(0x20f),_0x4548e6[_0x4548e6[_0x56cc55(0x252)]=0x5]=_0x56cc55(0x252),_0x4548e6[_0x4548e6['ALREADY_EXISTS']=0x6]=_0x56cc55(0x33d),_0x4548e6[_0x4548e6['INVALID_ARGUMENT']=0x7]=_0x56cc55(0x381),_0x4548e6[_0x4548e6[_0x56cc55(0x2bb)]=0x8]=_0x56cc55(0x2bb),_0x4548e6[_0x4548e6['COMPLETION_FINISHED']=0x9]=_0x56cc55(0x2be),_0x4548e6[_0x4548e6[_0x56cc55(0x207)]=0xa]=_0x56cc55(0x207),_0x4548e6[_0x4548e6[_0x56cc55(0x308)]=0xb]=_0x56cc55(0x308),_0x4548e6[_0x4548e6[_0x56cc55(0x107)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4548e6[_0x4548e6[_0x56cc55(0x347)]=0xd]=_0x56cc55(0x347),_0x4548e6[_0x4548e6['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x4548e6[_0x4548e6['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x56cc55(0x22e),_0x4548e6[_0x4548e6[_0x56cc55(0x2a9)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x4548e6[_0x4548e6['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x56cc55(0x17b),_0x4548e6[_0x4548e6[_0x56cc55(0x20c)]=0x65]=_0x56cc55(0x20c),_0x4548e6[_0x4548e6[_0x56cc55(0x257)]=0xc9]=_0x56cc55(0x257),_0x4548e6[_0x4548e6['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x4548e6[_0x4548e6[_0x56cc55(0x371)]=0x1389]=_0x56cc55(0x371),_0x4548e6[_0x4548e6['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4548e6[_0x4548e6['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x56cc55(0x2cf),_0x4548e6[_0x4548e6[_0x56cc55(0x145)]=0x1773]=_0x56cc55(0x145),_0x4548e6[_0x4548e6[_0x56cc55(0x162)]=0x1b59]=_0x56cc55(0x162),_0x4548e6[_0x4548e6['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x56cc55(0x2b0),_0x4548e6[_0x4548e6[_0x56cc55(0x13f)]=0x1b5b]=_0x56cc55(0x13f),_0x4548e6[_0x4548e6[_0x56cc55(0x11a)]=0x1b5c]=_0x56cc55(0x11a),_0x4548e6[_0x4548e6['APPLY_DUPLICATED']=0x1b5d]=_0x56cc55(0x223),_0x4548e6[_0x4548e6['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4548e6[_0x4548e6[_0x56cc55(0x385)]=0x2329]=_0x56cc55(0x385),_0x4548e6[_0x4548e6[_0x56cc55(0xdd)]=0x232a]=_0x56cc55(0xdd),_0x4548e6[_0x4548e6[_0x56cc55(0x27d)]=0x232b]=_0x56cc55(0x27d),_0x4548e6[_0x4548e6[_0x56cc55(0x26e)]=0x232c]=_0x56cc55(0x26e),_0x4548e6[_0x4548e6[_0x56cc55(0x110)]=0x232d]=_0x56cc55(0x110),_0x4548e6[_0x4548e6[_0x56cc55(0x35a)]=0x2711]=_0x56cc55(0x35a),_0x4548e6[_0x4548e6[_0x56cc55(0x1bc)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4548e6[_0x4548e6[_0x56cc55(0x1c7)]=0x2713]=_0x56cc55(0x1c7),_0x4548e6[_0x4548e6[_0x56cc55(0x351)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4548e6[_0x4548e6[_0x56cc55(0x22c)]=0x271a]=_0x56cc55(0x22c),_0x4548e6[_0x4548e6['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x56cc55(0x321),_0x4548e6[_0x4548e6[_0x56cc55(0x320)]=0x271c]=_0x56cc55(0x320),_0x4548e6[_0x4548e6[_0x56cc55(0xfc)]=0x271d]=_0x56cc55(0xfc),_0x4548e6[_0x4548e6[_0x56cc55(0xe9)]=0x271e]=_0x56cc55(0xe9),_0x4548e6[_0x4548e6[_0x56cc55(0x164)]=0x271f]=_0x56cc55(0x164),_0x4548e6[_0x4548e6[_0x56cc55(0x1fa)]=0x2720]=_0x56cc55(0x1fa),_0x4548e6[_0x4548e6[_0x56cc55(0x307)]=0x2af9]=_0x56cc55(0x307),_0x4548e6[_0x4548e6['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x56cc55(0xee),_0x4548e6[_0x4548e6[_0x56cc55(0x33f)]=0x2ee2]='INVALID_INVITE_CODE',_0x4548e6[_0x4548e6[_0x56cc55(0x1f3)]=0x2ee3]=_0x56cc55(0x1f3),_0x4548e6[_0x4548e6['USER_NOT_INVITED_CODE']=0x2ee4]=_0x56cc55(0xe7),_0x4548e6[_0x4548e6[_0x56cc55(0x373)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4548e6[_0x4548e6[_0x56cc55(0x2a0)]=0x32c9]=_0x56cc55(0x2a0),_0x4548e6[_0x4548e6[_0x56cc55(0x38b)]=0x32ca]=_0x56cc55(0x38b),_0x4548e6[_0x4548e6[_0x56cc55(0x1fd)]=0x32cb]=_0x56cc55(0x1fd),_0x4548e6[_0x4548e6[_0x56cc55(0x189)]=0x36b1]=_0x56cc55(0x189),_0x4548e6[_0x4548e6['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x56cc55(0x17e),_0x4548e6[_0x4548e6[_0x56cc55(0x125)]=0x36b3]=_0x56cc55(0x125),_0x4548e6[_0x4548e6[_0x56cc55(0x1c9)]=0x36b4]=_0x56cc55(0x1c9),_0x4548e6[_0x4548e6[_0x56cc55(0x210)]=0x3715]=_0x56cc55(0x210),_0x4548e6[_0x4548e6['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x4548e6[_0x4548e6['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0x56cc55(0x14d),_0x4548e6[_0x4548e6[_0x56cc55(0x2d9)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x4548e6[_0x4548e6[_0x56cc55(0x26d)]=0x3a9a]=_0x56cc55(0x26d),_0x4548e6[_0x4548e6[_0x56cc55(0x276)]=0x3a9b]=_0x56cc55(0x276),_0x4548e6[_0x4548e6[_0x56cc55(0x15e)]=0x3a9c]=_0x56cc55(0x15e),_0x4548e6[_0x4548e6['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x56cc55(0xd8),_0x4548e6[_0x4548e6[_0x56cc55(0x272)]=0x3a9e]=_0x56cc55(0x272),_0x4548e6[_0x4548e6[_0x56cc55(0x23f)]=0x3a9f]=_0x56cc55(0x23f),_0x4548e6[_0x4548e6['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4548e6))(V||{});function Xt(_0x40348a){const _0x3eac2f=_0x56cc55;var _0x73ae58,_0x21a2da;const _0x18bd94=(_0x73ae58=_0x40348a['stageInfo'])==null?void 0x0:_0x73ae58[_0x3eac2f(0x142)],_0x43cc45=((_0x21a2da=_0x40348a[_0x3eac2f(0x196)])==null?void 0x0:_0x21a2da[_0x3eac2f(0x1ca)])||0x0;return _0x18bd94===x[_0x3eac2f(0x161)][_0x3eac2f(0x1e3)]&&_0x43cc45>0x0;}function Kt(_0x5b76dc){const _0x29e49a=_0x56cc55;return _0x5b76dc[_0x29e49a(0xe8)]===x['FormulaExecutedStateType'][_0x29e49a(0x30d)];}var qt=Object[_0x56cc55(0x369)],zt=(_0x4a7a7b,_0x3d3f7b,_0x30b09a,_0x2ca370)=>{for(var _0xb03445=_0x2ca370>0x1?void 0x0:_0x2ca370?qt(_0x3d3f7b,_0x30b09a):_0x3d3f7b,_0x52d641=_0x4a7a7b['length']-0x1,_0x3ced8c;_0x52d641>=0x0;_0x52d641--)(_0x3ced8c=_0x4a7a7b[_0x52d641])&&(_0xb03445=_0x3ced8c(_0xb03445)||_0xb03445);return _0xb03445;},L=(_0x164f15,_0x119056)=>(_0x479717,_0x35eae2)=>_0x119056(_0x479717,_0x35eae2,_0x164f15);const Jt=_0x56cc55(0x1c6),Zt='/universer-api/license/formula/limit/start',Qt='/universer-api/license/formula/limit/done';let se=class extends a[_0x56cc55(0x30f)]{constructor(_0x160954,_0x4ac40d,_0x241695,_0x32b613,_0x152973,_0xefe685,_0x2121ce){const _0x24be6d=_0x56cc55;super(),_(this,_0x24be6d(0x1a0),null),_(this,_0x24be6d(0x250),0x0),_(this,_0x24be6d(0x187),0x0),_(this,'_taskIds',[]),_(this,_0x24be6d(0x313),0x0),(this[_0x24be6d(0x217)]=_0x160954,this[_0x24be6d(0x226)]=_0x4ac40d,this[_0x24be6d(0x215)]=_0x241695,this[_0x24be6d(0x120)]=_0x32b613,this[_0x24be6d(0x389)]=_0x152973,this[_0x24be6d(0x36e)]=_0xefe685,this[_0x24be6d(0xed)]=_0x2121ce,this[_0x24be6d(0x23b)]());}['_initCommandInterceptor'](){const _0x359327=_0x56cc55;this[_0x359327(0x303)](this['_commandService'][_0x359327(0x361)]((_0x269653,_0x949ec0)=>{const _0x27e479=_0x359327;if(_0x269653['id']!==x[_0x27e479(0x14a)]['id'])return;const _0x946af0=_0x269653[_0x27e479(0x2d8)];if(!this[_0x27e479(0x163)](_0x946af0['dirtyRanges']))return;if(!this[_0x27e479(0x1ab)]())throw this[_0x27e479(0x1cd)](_0x269653,_0x949ec0),this[_0x27e479(0x271)](),new a['CanceledError']();})),this['disposeWithMe'](this[_0x359327(0x226)][_0x359327(0x11d)]((_0xa288b6,_0x2672db)=>{const _0x1bfd6a=_0x359327;if(_0xa288b6['id']!==x[_0x1bfd6a(0x2e1)]['id'])return;const _0xab9655=_0xa288b6[_0x1bfd6a(0x2d8)];if(Xt(_0xab9655)){const _0x413ad4=a[_0x1bfd6a(0x368)]();this[_0x1bfd6a(0xec)]['push'](_0x413ad4),this[_0x1bfd6a(0x209)](_0x413ad4);}else{if(Kt(_0xab9655)&&this[_0x1bfd6a(0xec)][_0x1bfd6a(0x38a)]>0x0){const _0x18af0e=this[_0x1bfd6a(0xec)][_0x1bfd6a(0x133)]();this[_0x1bfd6a(0x387)](_0x18af0e);}}}));}['dispose'](){const _0x397c4d=_0x56cc55;super['dispose'](),this[_0x397c4d(0x2da)](),this[_0x397c4d(0xec)]=[],this[_0x397c4d(0x187)]=0x0,this[_0x397c4d(0x250)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x56cc55(0x1cd)](_0x3ccb02,_0x47b7c8){const _0x39d72d=_0x56cc55;for(let _0x10f9d5=0x0;_0x10f9d5<0x1e;_0x10f9d5++)try{if(await this[_0x39d72d(0x31f)](),this['_checkCalculationAvailable']()){this[_0x39d72d(0x282)](_0x3ccb02,_0x47b7c8),this[_0x39d72d(0x217)][_0x39d72d(0x357)]({'content':this[_0x39d72d(0xed)]['t'](_0x39d72d(0x25b)),'type':T[_0x39d72d(0x363)][_0x39d72d(0x228)]});return;}await new Promise(_0x2217ab=>{const _0x401907=_0x39d72d;this[_0x401907(0x1a0)]=window[_0x401907(0x185)](_0x2217ab,0x3e8);});}catch(_0x240d0d){this[_0x39d72d(0x36e)][_0x39d72d(0x1b4)](_0x240d0d);}this[_0x39d72d(0x217)][_0x39d72d(0x357)]({'content':this['_localeService']['t'](_0x39d72d(0x378)),'type':T[_0x39d72d(0x363)]['Error']});}[_0x56cc55(0x282)](_0x42cd51,_0xb0dbee){const _0x371e03=_0x56cc55;try{this[_0x371e03(0x226)][_0x371e03(0x2f3)](_0x42cd51['id'],_0x42cd51['params'],_0xb0dbee);}catch(_0xb1a79e){this[_0x371e03(0x36e)]['error'](_0xb1a79e);}}[_0x56cc55(0x288)](_0x76d1f4,_0xdf4314){const _0xc7a898=_0x56cc55;_0xdf4314<this['_lastResponseTimestamp']||(this[_0xc7a898(0x313)]=_0xdf4314,this[_0xc7a898(0x250)]=Number['parseInt'](_0x76d1f4[_0xc7a898(0x186)]),this['_currentUsage']=Number[_0xc7a898(0xfd)](_0x76d1f4['currentUsage']));}async[_0x56cc55(0x209)](_0x4997bb){const _0x41431f=_0x56cc55;var _0x112e55,_0x2c94d4;const _0x596bec=Date[_0x41431f(0x28f)]();try{const _0x294007=((_0x112e55=this['_configService']['getConfig'](u[_0x41431f(0x245)]))==null?void 0x0:_0x112e55[_0x41431f(0x199)])||Zt,_0x21f53f=(await this[_0x41431f(0x120)]['post'](_0x294007,{'body':JSON[_0x41431f(0x379)]({'taskId':_0x4997bb})}))[_0x41431f(0xe1)];if(((_0x2c94d4=_0x21f53f[_0x41431f(0x1b4)])==null?void 0x0:_0x2c94d4[_0x41431f(0x1b5)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x21f53f[_0x41431f(0x14b)],_0x596bec);}catch(_0x5b4956){this[_0x41431f(0x36e)][_0x41431f(0x1b4)](_0x5b4956);}}async[_0x56cc55(0x31f)](_0x4fbe7c){const _0x3e89d0=_0x56cc55;var _0x4a68d7,_0x39a523;const _0x124aa0=Date[_0x3e89d0(0x28f)]();try{const _0x473930=((_0x4a68d7=this[_0x3e89d0(0x215)]['getConfig'](u[_0x3e89d0(0x245)]))==null?void 0x0:_0x4a68d7[_0x3e89d0(0x2f7)])||Jt,_0x4ef26d=_0x4fbe7c?_0x473930+_0x3e89d0(0x190)+encodeURIComponent(_0x4fbe7c):_0x473930,_0x5c0d0a=(await this[_0x3e89d0(0x120)][_0x3e89d0(0x15d)](_0x4ef26d))[_0x3e89d0(0xe1)];if(((_0x39a523=_0x5c0d0a['error'])==null?void 0x0:_0x39a523[_0x3e89d0(0x1b5)])!==V['OK'])return;this[_0x3e89d0(0x288)](_0x5c0d0a[_0x3e89d0(0x14b)],_0x124aa0);}catch(_0x4fbde5){this['_logService'][_0x3e89d0(0x1b4)](_0x4fbde5);}}async['_releaseCalculationLimit'](_0x5c30de){const _0x4be1e8=_0x56cc55;var _0x3414e8,_0x1bf618;const _0x2d437f=Date[_0x4be1e8(0x28f)]();try{const _0xe07242=((_0x3414e8=this[_0x4be1e8(0x215)][_0x4be1e8(0x33c)](u[_0x4be1e8(0x245)]))==null?void 0x0:_0x3414e8[_0x4be1e8(0x355)])||Qt,_0x11ace2=(await this['_httpService'][_0x4be1e8(0x2f2)](_0xe07242,{'body':JSON[_0x4be1e8(0x379)]({'taskId':_0x5c30de})}))['body'];if(((_0x1bf618=_0x11ace2['error'])==null?void 0x0:_0x1bf618[_0x4be1e8(0x1b5)])!==V['OK'])return;this['_setFormulaLimitStatus'](_0x11ace2[_0x4be1e8(0x14b)],_0x2d437f);}catch(_0x2b9b21){this[_0x4be1e8(0x36e)][_0x4be1e8(0x1b4)](_0x2b9b21);}}[_0x56cc55(0x1ab)](){const _0x1390f1=_0x56cc55;return this[_0x1390f1(0x250)]===0x0?!0x0:this[_0x1390f1(0x250)]-this[_0x1390f1(0x187)]>0x0;}[_0x56cc55(0x2da)](){const _0x3e2c90=_0x56cc55;this[_0x3e2c90(0x1a0)]&&(clearTimeout(this[_0x3e2c90(0x1a0)]),this[_0x3e2c90(0x1a0)]=null);}[_0x56cc55(0x271)](){const _0x472e88=_0x56cc55;this[_0x472e88(0x217)][_0x472e88(0x357)]({'content':this[_0x472e88(0xed)]['t'](_0x472e88(0x1da)),'type':T[_0x472e88(0x363)][_0x472e88(0x334)]});}[_0x56cc55(0x163)](_0x2ca328){const _0x593da1=_0x56cc55;for(const _0xa1dd56 of _0x2ca328){const {unitId:_0x22c1f8,sheetId:_0x15b664,range:_0x96a9d3}=_0xa1dd56,_0x21eecc=this[_0x593da1(0x389)]['getUnit'](_0x22c1f8);if(!_0x21eecc)continue;const _0x1903b2=_0x21eecc['getSheetBySheetId'](_0x15b664);if(!_0x1903b2)continue;const _0x228963=_0x1903b2[_0x593da1(0x375)]();for(let _0x1b0f13=_0x96a9d3[_0x593da1(0x239)];_0x1b0f13<=_0x96a9d3[_0x593da1(0x367)];_0x1b0f13++)for(let _0x5d1096=_0x96a9d3[_0x593da1(0x103)];_0x5d1096<=_0x96a9d3[_0x593da1(0x23c)];_0x5d1096++){const _0x5d5c72=_0x228963[_0x593da1(0x31d)](_0x1b0f13,_0x5d1096);if(_0x5d5c72&&(a[_0x593da1(0x348)](_0x5d5c72['f'])||a[_0x593da1(0x23a)](_0x5d5c72['si'])))return!0x0;}}return!0x1;}};se=zt([L(0x0,a['Inject'](O[_0x56cc55(0x149)])),L(0x1,a['ICommandService']),L(0x2,a[_0x56cc55(0x203)]),L(0x3,a[_0x56cc55(0x32f)](G['HTTPService'])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x56cc55(0x1e4)]),L(0x6,a[_0x56cc55(0x32f)](a[_0x56cc55(0x1f2)]))],se);var es=Object['getOwnPropertyDescriptor'],ts=(_0x437249,_0x4a6785,_0x46fbb5,_0x27a9ad)=>{for(var _0x170b9d=_0x27a9ad>0x1?void 0x0:_0x27a9ad?es(_0x4a6785,_0x46fbb5):_0x4a6785,_0x676606=_0x437249['length']-0x1,_0x32d60c;_0x676606>=0x0;_0x676606--)(_0x32d60c=_0x437249[_0x676606])&&(_0x170b9d=_0x32d60c(_0x170b9d)||_0x170b9d);return _0x170b9d;},ue=(_0x5608f9,_0x3c2683)=>(_0x5290fa,_0x14cf7e)=>_0x3c2683(_0x5290fa,_0x14cf7e,_0x5608f9);let Ee=class extends a[_0x56cc55(0x30f)]{constructor(_0xe803e9,_0x49f0f9,_0x474398){const _0x3f2d61=_0x56cc55;super(),_(this,_0x3f2d61(0x255),new Map()),_(this,_0x3f2d61(0x316),new Map()),_(this,_0x3f2d61(0x20d),!0x1),(this[_0x3f2d61(0x215)]=_0xe803e9,this[_0x3f2d61(0x294)]=_0x49f0f9,this[_0x3f2d61(0x295)]=_0x474398);}[_0x56cc55(0x311)](){this['_disabled']=!0x0;}[_0x56cc55(0x1d9)](){const _0x5f3acf=_0x56cc55;this[_0x5f3acf(0x20d)]=!0x1;}get['saveTaskMap'](){const _0x549eee=_0x56cc55;return this[_0x549eee(0x316)];}[_0x56cc55(0x236)](){const _0x26d3e7=_0x56cc55;this[_0x26d3e7(0x148)]()[_0x26d3e7(0x326)](()=>super['dispose']());}async[_0x56cc55(0x113)](_0x40dff5){const _0xeeaa30=_0x56cc55;return this[_0xeeaa30(0x20d)]?null:this['_localStorageService']['getItem'](u['getLocalCacheKey'](_0x40dff5));}async['saveOfflineData'](_0x8f5f01,_0x3a5f59){const _0x2bbe96=_0x56cc55;return!!this['_localStorageService'][_0x2bbe96(0x13b)](_0x8f5f01,_0x3a5f59);}[_0x56cc55(0x391)](_0x5e3196,_0x263216,_0x11f742,_0x280327){const _0x2a5337=_0x56cc55,_0x1442e4=this[_0x2a5337(0x295)][_0x2a5337(0x2e4)](_0x5e3196);this[_0x2a5337(0x255)]['set'](_0x5e3196,{'unitID':_0x5e3196,'type':_0x263216,'awaitingChangeset':_0x11f742,'mutations':_0x280327,'rev':_0x1442e4}),this[_0x2a5337(0x316)][_0x2a5337(0x36b)](_0x5e3196)||this['_scheduleSaving'](_0x5e3196);}[_0x56cc55(0x1d0)](_0x4bc332){const _0x44414c=_0x56cc55,_0x21cfde=this[_0x44414c(0x171)]();_0x21cfde===0x0?this[_0x44414c(0x1c0)](_0x4bc332):this[_0x44414c(0x316)]['set'](_0x4bc332,setTimeout(()=>this[_0x44414c(0x1c0)](_0x4bc332),_0x21cfde));}['_getSaveTimeout'](){const _0x526bd7=_0x56cc55;var _0xc01f06;return(_0xc01f06=this[_0x526bd7(0x215)][_0x526bd7(0x33c)](u[_0x526bd7(0x150)]))!=null?_0xc01f06:u[_0x526bd7(0x2ed)];}['_saveCache'](_0x9043d0){const _0x44df87=_0x56cc55,_0x14468e=this[_0x44df87(0x316)][_0x44df87(0x15d)](_0x9043d0);return _0x14468e!==void 0x0&&window[_0x44df87(0x38f)](_0x14468e),this[_0x44df87(0x294)][_0x44df87(0x13b)](u['getLocalCacheKey'](_0x9043d0),this[_0x44df87(0x255)]['get'](_0x9043d0))[_0x44df87(0x326)](()=>this[_0x44df87(0x316)][_0x44df87(0x335)](_0x9043d0));}async[_0x56cc55(0x148)](){const _0x446ab4=_0x56cc55,_0x5ee18d=[];this['_saveTaskMap'][_0x446ab4(0x306)]((_0xdff3f2,_0x141a45)=>{const _0xb33c55=_0x446ab4;window[_0xb33c55(0x38f)](_0xdff3f2),_0x5ee18d['push'](this[_0xb33c55(0x1c0)](_0x141a45)[_0xb33c55(0x326)](()=>{const _0x33795e=_0xb33c55;this[_0x33795e(0x316)]['delete'](_0x141a45);}));}),await Promise[_0x446ab4(0x265)](_0x5ee18d);}};Ee=ts([ue(0x0,a[_0x56cc55(0x203)]),ue(0x1,a['ILocalStorageService']),ue(0x2,a[_0x56cc55(0x32f)](v['RevisionService']))],Ee);class Fe extends a[_0x56cc55(0x19c)]{constructor(){const _0x2a1881=_0x56cc55;super(),_(this,_0x2a1881(0x112)),this[_0x2a1881(0x112)]=I[_0x2a1881(0x325)](window,_0x2a1881(0x100))[_0x2a1881(0x1ad)](I[_0x2a1881(0x2b9)](this[_0x2a1881(0x390)]),I['shareReplay'](0x1),I[_0x2a1881(0x1a6)](void 0x0));}[_0x56cc55(0x1b6)](_0x2892ab,_0x33ebc6,_0x2e07fc=!0x1){const _0x3d80f1=_0x56cc55,_0x25402f=new URL(window['location'][_0x3d80f1(0x225)]);_0x25402f[_0x3d80f1(0x2c9)]['set'](_0x2892ab,_0x33ebc6),_0x2e07fc?window[_0x3d80f1(0x2d3)][_0x3d80f1(0x2d4)]('','',_0x25402f[_0x3d80f1(0x175)]()):window['history'][_0x3d80f1(0x13a)]('','',_0x25402f['toString']());}['removeParam'](_0x19420a,_0x140d60=!0x1){const _0x1c74ed=_0x56cc55,_0x54761c=new URL(window[_0x1c74ed(0x1ed)]['href']);_0x54761c[_0x1c74ed(0x2c9)]['delete'](_0x19420a),_0x140d60?window['history'][_0x1c74ed(0x2d4)]('','',_0x54761c['toString']()):window[_0x1c74ed(0x2d3)][_0x1c74ed(0x13a)]('','',_0x54761c[_0x1c74ed(0x175)]());}['getParam'](_0xdceaac){const _0x2ce4c3=_0x56cc55;var _0x3fb0f7;return(_0x3fb0f7=new URL(window[_0x2ce4c3(0x1ed)][_0x2ce4c3(0x225)])[_0x2ce4c3(0x2c9)][_0x2ce4c3(0x15d)](_0xdceaac))!=null?_0x3fb0f7:void 0x0;}}var ss=Object[_0x56cc55(0x21d)],is=Object[_0x56cc55(0x369)],ns=(_0x523756,_0x52587d,_0x1c90ec)=>_0x52587d in _0x523756?ss(_0x523756,_0x52587d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c90ec}):_0x523756[_0x52587d]=_0x1c90ec,rs=(_0x99d77,_0x4074f6,_0xc6a9b5,_0x287b08)=>{const _0x320374=_0x56cc55;for(var _0x52079b=_0x287b08>0x1?void 0x0:_0x287b08?is(_0x4074f6,_0xc6a9b5):_0x4074f6,_0x41f5ef=_0x99d77[_0x320374(0x38a)]-0x1,_0x44751f;_0x41f5ef>=0x0;_0x41f5ef--)(_0x44751f=_0x99d77[_0x41f5ef])&&(_0x52079b=_0x44751f(_0x52079b)||_0x52079b);return _0x52079b;},Ie=(_0x3c383a,_0x223218)=>(_0x10d41d,_0x398284)=>_0x223218(_0x10d41d,_0x398284,_0x3c383a),os=(_0x406922,_0x235ec8,_0x1a9202)=>ns(_0x406922,_0x235ec8+'',_0x1a9202);const as='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x56cc55(0x11e)]=class extends a[_0x56cc55(0x21e)]{constructor(_0x222369=Ue,_0x415faf,_0x39658c,_0x2be249){const _0x17fc41=_0x56cc55;super(),this['_config']=_0x222369,this['_renderManagerService']=_0x415faf,this[_0x17fc41(0x18a)]=_0x39658c,this[_0x17fc41(0x215)]=_0x2be249;const {..._0x3404cb}=a['merge']({},Ue,this[_0x17fc41(0x1ae)]);this[_0x17fc41(0x215)][_0x17fc41(0x1f5)](Bt,_0x3404cb);}[_0x56cc55(0xdf)](){const _0x44bfdc=_0x56cc55;this['_registerDependencies'](),this[_0x44bfdc(0x2bf)]();}[_0x56cc55(0x27a)](){const _0x125459=_0x56cc55;this[_0x125459(0x21c)]();}[_0x56cc55(0x32b)](){const _0xfb43c7=_0x56cc55;var _0x46e10d;const _0x5e1c04=[[Te],[se],[ee],[Z],[Q],[Oe],[pe,{'useClass':Fe}],[G[_0xfb43c7(0x2f1)],{'useClass':G[_0xfb43c7(0x337)]}],[u['ILocalCacheService'],{'useClass':Ee}],[exports[_0xfb43c7(0x2fd)]],[te],[J],[B],[de],[exports[_0xfb43c7(0x12d)]]];a[_0xfb43c7(0x1d3)](this[_0xfb43c7(0x18a)],a['mergeOverrideWithDependencies'](_0x5e1c04,(_0x46e10d=this[_0xfb43c7(0x1ae)])==null?void 0x0:_0x46e10d[_0xfb43c7(0x286)]));}[_0x56cc55(0x21c)](){const _0x3548b6=_0x56cc55;this[_0x3548b6(0x303)](this[_0x3548b6(0x104)]['registerRenderModule'](a[_0x3548b6(0x15a)][_0x3548b6(0x2ce)],[ge])),this[_0x3548b6(0x303)](this[_0x3548b6(0x104)][_0x3548b6(0x1a3)](a['UniverInstanceType'][_0x3548b6(0x25f)],[ve]));}['_initDependencies'](){const _0x44da0f=_0x56cc55;a[_0x44da0f(0x2ea)](this[_0x44da0f(0x18a)],[[B],[exports[_0x44da0f(0x2fd)]],[te],[J],[exports['CollaborationDataLoaderController']],[se]]);}},os(exports[_0x56cc55(0x11e)],_0x56cc55(0x12a),as),exports['UniverCollaborationClientUIPlugin']=rs([a[_0x56cc55(0x2fe)](u[_0x56cc55(0x16c)]),Ie(0x1,C[_0x56cc55(0x312)]),Ie(0x2,a[_0x56cc55(0x32f)](a['Injector'])),Ie(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var cs=Object[_0x56cc55(0x369)],ls=(_0x273b64,_0x3a48a0,_0x65334a,_0x7fcc78)=>{const _0x20a0e4=_0x56cc55;for(var _0x1e0907=_0x7fcc78>0x1?void 0x0:_0x7fcc78?cs(_0x3a48a0,_0x65334a):_0x3a48a0,_0x1751d9=_0x273b64[_0x20a0e4(0x38a)]-0x1,_0xad8967;_0x1751d9>=0x0;_0x1751d9--)(_0xad8967=_0x273b64[_0x1751d9])&&(_0x1e0907=_0xad8967(_0x1e0907)||_0x1e0907);return _0x1e0907;},H=(_0x440b4d,_0xd4f43c)=>(_0x223793,_0x596f34)=>_0xd4f43c(_0x223793,_0x596f34,_0x440b4d);exports['BrowserCollaborationSocketService']=class extends u[_0x56cc55(0x182)]{constructor(_0x5119a1,_0x2de781,_0x1afed8,_0x52b363,_0x236d63){super(_0x5119a1,_0x2de781,_0x1afed8,_0x52b363,_0x236d63);}async[_0x56cc55(0xd5)](_0x3baa69){const _0x137454=_0x56cc55,_0x8369a=await this['_getSessionTicket'](),_0x5ef2fa=this[_0x137454(0x16e)](_0x3baa69,_0x8369a);return this[_0x137454(0x26f)](_0x5ef2fa);}['_createSocketURL'](_0x1e16ad,_0x59441d){const _0x8b989f=_0x56cc55,_0x1193da=typeof window>'u'?new URL(_0x1e16ad):new URL(_0x1e16ad,window[_0x8b989f(0x1ed)][_0x8b989f(0x11f)]);_0x1193da[_0x8b989f(0x2c9)][_0x8b989f(0x22d)](_0x8b989f(0x319),_0x59441d);const _0x40e805=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x8b989f(0x1ed)]['search']);return _0x40e805[_0x8b989f(0x15d)](_0x8b989f(0x370))&&_0x1193da[_0x8b989f(0x2c9)][_0x8b989f(0x22d)]('runId',_0x40e805[_0x8b989f(0x15d)]('runId')),_0x1193da[_0x8b989f(0x175)]();}async[_0x56cc55(0x2fc)](){const _0x7b9c16=_0x56cc55;var _0x4ee30f,_0x26a6a4,_0x593ba4;const _0x4526a7=this['_configService'][_0x7b9c16(0x33c)](u[_0x7b9c16(0x245)]),_0x2729d4=(_0x4ee30f=_0x4526a7==null?void 0x0:_0x4526a7[_0x7b9c16(0x359)])!=null?_0x4ee30f:u[_0x7b9c16(0x146)];return(_0x593ba4=(_0x26a6a4=(await this['_httpService'][_0x7b9c16(0x15d)](_0x2729d4,{'headers':{'Content-Type':_0x7b9c16(0x310)}}))[_0x7b9c16(0xe1)])==null?void 0x0:_0x26a6a4[_0x7b9c16(0x352)])!=null?_0x593ba4:'';}},exports[_0x56cc55(0x1de)]=ls([H(0x0,a['Inject'](a[_0x56cc55(0x24a)])),H(0x1,a[_0x56cc55(0x32f)](G[_0x56cc55(0x13c)])),H(0x2,a[_0x56cc55(0x203)]),H(0x3,a[_0x56cc55(0x1e4)]),H(0x4,v[_0x56cc55(0x1c8)])],exports['BrowserCollaborationSocketService']);var _s=Object[_0x56cc55(0x369)],hs=(_0x30f13e,_0x463e08,_0x21d1dc,_0x596e75)=>{const _0x536a51=_0x56cc55;for(var _0x124c41=_0x596e75>0x1?void 0x0:_0x596e75?_s(_0x463e08,_0x21d1dc):_0x463e08,_0x3b5c9b=_0x30f13e[_0x536a51(0x38a)]-0x1,_0x3dfcbe;_0x3b5c9b>=0x0;_0x3b5c9b--)(_0x3dfcbe=_0x30f13e[_0x3b5c9b])&&(_0x124c41=_0x3dfcbe(_0x124c41)||_0x124c41);return _0x124c41;},Se=(_0x202622,_0x177f1e)=>(_0x397be8,_0x2185ea)=>_0x177f1e(_0x397be8,_0x2185ea,_0x202622);exports[_0x56cc55(0x31c)]=class extends a[_0x56cc55(0x30f)]{constructor(_0x5e5e05,_0x3031e4,_0x984499){const _0x298220=_0x56cc55;super(),this[_0x298220(0x1d8)]=_0x5e5e05,this[_0x298220(0x120)]=_0x3031e4,this[_0x298220(0x215)]=_0x984499;}async[_0x56cc55(0x234)](_0x364093,_0x5c905a,_0x29f96f,..._0x302041){const _0x5dcf7c=_0x56cc55;var _0x1666f2,_0x497629,_0x8a5cae,_0x3675cb;const _0x19bf8f=this[_0x5dcf7c(0x1d8)]['getFocusedUnit']();if(!_0x19bf8f)throw new Error(_0x5dcf7c(0x384));const _0x5a6565=((_0x1666f2=this[_0x5dcf7c(0x215)][_0x5dcf7c(0x33c)](u[_0x5dcf7c(0x2ae)]))!=null?_0x1666f2:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x364093+'/run/'+_0x5c905a,_0x3b3b73=new URL(window[_0x5dcf7c(0x1ed)][_0x5dcf7c(0x225)]),_0x1472c0={'scriptId':_0x364093,'runId':(_0x497629=_0x3b3b73[_0x5dcf7c(0x2c9)]['get'](_0x5dcf7c(0x370)))!=null?_0x497629:'','function':_0x5c905a,'unitId':_0x19bf8f[_0x5dcf7c(0x28b)](),'argsOfFunction':JSON[_0x5dcf7c(0x379)](_0x302041),'invokeId':(_0x8a5cae=_0x29f96f['invokeId'])!=null?_0x8a5cae:'','executionId':(_0x3675cb=_0x29f96f['executionId'])!=null?_0x3675cb:''};try{const _0x40830d=await this[_0x5dcf7c(0x120)][_0x5dcf7c(0x2f2)](_0x5a6565,{'body':_0x1472c0});return _0x40830d[_0x5dcf7c(0xe1)][_0x5dcf7c(0x1b4)]&&_0x40830d['body']['error'][_0x5dcf7c(0x1b5)]!==V['OK']?_0x5dcf7c(0x322):_0x40830d[_0x5dcf7c(0xe1)][_0x5dcf7c(0x169)];}catch{return _0x5dcf7c(0x322);}}},exports[_0x56cc55(0x31c)]=hs([Se(0x0,a[_0x56cc55(0x211)]),Se(0x1,a[_0x56cc55(0x32f)](G['HTTPService'])),Se(0x2,a[_0x56cc55(0x203)])],exports['RemoteUniscriptService']);const Ae=0x7530,Pe=_0x56cc55(0x138);class us extends a[_0x56cc55(0x30f)]{constructor(){const _0x465266=_0x56cc55;super(),_(this,_0x465266(0x354),a[_0x465266(0x368)]()),_(this,_0x465266(0x302),new Set()),_(this,_0x465266(0x200),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0x465266(0x201),new Map()),this[_0x465266(0x10e)]();}['dispose'](){const _0x105e60=_0x56cc55;super[_0x105e60(0x236)](),this['_clearOtherTimers']['forEach']((_0x441809,_0x294c15)=>this['_removeClearOtherTimer'](_0x294c15)),this[_0x105e60(0x2e2)]&&window[_0x105e60(0x279)](this[_0x105e60(0x2e2)]);}['getUnitStatus$'](_0xb8ca7f){const _0x4f7b09=_0x56cc55;return this[_0x4f7b09(0x17f)](_0xb8ca7f)[_0x4f7b09(0x1ad)](I[_0x4f7b09(0x227)]());}[_0x56cc55(0x222)](_0x28fb04){const _0x77901f=_0x56cc55;this[_0x77901f(0x302)][_0x77901f(0x2df)]===0x0&&this['_scheduleHeartbeat'](),this[_0x77901f(0x302)][_0x77901f(0x35c)](_0x28fb04),this[_0x77901f(0x1c2)]({'type':0x0,'memberID':this[_0x77901f(0x354)],'unitIDs':[_0x28fb04],'isForwarded':!0x1});}[_0x56cc55(0x327)](_0x129779){const _0x546971=_0x56cc55;this[_0x546971(0x302)][_0x546971(0x335)](_0x129779),this[_0x546971(0x302)][_0x546971(0x2df)]===0x0&&this[_0x546971(0x2e2)]&&window['clearInterval'](this[_0x546971(0x2e2)]);}[_0x56cc55(0x10e)](){const _0x32721a=_0x56cc55;this[_0x32721a(0x303)](a[_0x32721a(0xd7)](I[_0x32721a(0x325)](window,_0x32721a(0x365))[_0x32721a(0xdc)](_0x44b049=>{const _0x550980=_0x32721a;if(_0x44b049[_0x550980(0x213)]!==Pe||!_0x44b049[_0x550980(0x339)])return;const _0x7e1fda=JSON['parse'](_0x44b049[_0x550980(0x339)]);this[_0x550980(0x246)](_0x7e1fda);}))),window[_0x32721a(0xd9)](_0x32721a(0x37f),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x32721a(0x2e0)](this[_0x32721a(0x302)])}));}[_0x56cc55(0x246)](_0xa0078b){const _0x2a1eb8=_0x56cc55;switch(_0xa0078b['type']){case 0x0:this[_0x2a1eb8(0x115)](_0xa0078b);break;case 0x1:this[_0x2a1eb8(0xf0)](_0xa0078b);break;case 0x2:this[_0x2a1eb8(0x135)](_0xa0078b);break;}}[_0x56cc55(0x115)](_0x1add46){const _0x461585=_0x56cc55,{unitIDs:_0x26ebaf,memberID:_0x2307fa,isForwarded:_0x2ec2af}=_0x1add46;_0x26ebaf[_0x461585(0x306)](_0xabb6b7=>{const _0x2412e1=_0x461585;if(!_0x2ec2af&&this[_0x2412e1(0x200)][_0x2412e1(0x36b)](_0xabb6b7)&&this[_0x2412e1(0x17f)](_0xabb6b7)['next'](u[_0x2412e1(0xe6)][_0x2412e1(0x12c)]),!this[_0x2412e1(0x200)][_0x2412e1(0x36b)](_0xabb6b7)||!this[_0x2412e1(0x200)][_0x2412e1(0x15d)](_0xabb6b7)[_0x2412e1(0x36b)](_0x2307fa)){const _0x324a46=this[_0x2412e1(0x200)][_0x2412e1(0x15d)](_0xabb6b7)||new Set();_0x324a46[_0x2412e1(0x35c)](_0x2307fa),this[_0x2412e1(0x200)][_0x2412e1(0x22d)](_0xabb6b7,_0x324a46),this[_0x2412e1(0x383)](_0x2307fa);}}),_0x2ec2af||this[_0x461585(0x1c2)]({'type':0x0,'memberID':this[_0x461585(0x354)],'unitIDs':[...this[_0x461585(0x302)]],'isForwarded':!0x0});}[_0x56cc55(0x383)](_0x30d398){const _0x4d8f45=_0x56cc55;this[_0x4d8f45(0x242)](_0x30d398);const _0x1bd2c4=window[_0x4d8f45(0x185)](()=>{const _0x527876=_0x4d8f45;this['_unitOnClients'][_0x527876(0x306)](_0x122f02=>{const _0x3ba601=_0x527876;_0x122f02[_0x3ba601(0x335)](_0x30d398);});},Ae*0x2);this[_0x4d8f45(0x21f)][_0x4d8f45(0x22d)](_0x30d398,_0x1bd2c4);}[_0x56cc55(0x242)](_0x558c03){const _0x53c8df=_0x56cc55;if(this[_0x53c8df(0x21f)][_0x53c8df(0x36b)](_0x558c03)){const _0xa33a2f=this[_0x53c8df(0x21f)][_0x53c8df(0x15d)](_0x558c03);_0xa33a2f&&window['clearTimeout'](_0xa33a2f),this[_0x53c8df(0x21f)]['set'](_0x558c03,null);}}[_0x56cc55(0xf0)](_0x559d06){const _0x20368b=_0x56cc55,{memberID:_0x1119dd,unitIDs:_0x2ddbf8}=_0x559d06;_0x2ddbf8['forEach'](_0x5c9d06=>{const _0x249515=_0x5cb8;var _0x2e6b37;const _0x4bf87e=this[_0x249515(0x200)]['get'](_0x5c9d06);_0x4bf87e&&(_0x4bf87e['delete'](_0x1119dd),(_0x2e6b37=this[_0x249515(0x17f)](_0x5c9d06))==null||_0x2e6b37['next'](_0x4bf87e[_0x249515(0x2df)]===0x0?u['UnitStatus'][_0x249515(0x27b)]:u[_0x249515(0xe6)]['OTHER_CLIENTS_EDITING']));}),this[_0x20368b(0x242)](_0x1119dd);}['_handleHeartbeatEvent'](_0xd35506){const _0x27373d=_0x56cc55;this[_0x27373d(0x383)](_0xd35506[_0x27373d(0xeb)]);}[_0x56cc55(0x1c2)](_0x2ccdd9){const _0x956666=_0x56cc55;localStorage[_0x956666(0x13b)](Pe,JSON[_0x956666(0x379)](_0x2ccdd9));}['_scheduleHeartbeat'](){const _0x4fe52d=_0x56cc55;this[_0x4fe52d(0x2e2)]=window[_0x4fe52d(0x10a)](()=>{const _0x23c930=_0x4fe52d;this[_0x23c930(0x1c2)]({'type':0x2,'memberID':this[_0x23c930(0x354)]});},Ae);}['_ensureSubject'](_0x211b01){const _0x4a92dc=_0x56cc55;return this['_unitStatus'][_0x4a92dc(0x36b)](_0x211b01)||this[_0x4a92dc(0x201)]['set'](_0x211b01,new I[(_0x4a92dc(0x1b2))](u[_0x4a92dc(0xe6)][_0x4a92dc(0x27b)])),this[_0x4a92dc(0x201)]['get'](_0x211b01);}}exports[_0x56cc55(0x24d)]=pe,exports[_0x56cc55(0x1a7)]=Be,exports[_0x56cc55(0x1e6)]=us,exports[_0x56cc55(0x1f9)]=Fe;