@univerjs-pro/collaboration-client-ui 0.15.3-insiders.20260131-b9b8805 → 0.15.3-insiders.20260131-cbd5fac
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5f0329=_0x38d6;(function(_0x5b5b1f,_0x2abe35){const _0x281a83=_0x38d6,_0x47d377=_0x5b5b1f();while(!![]){try{const _0x5a1bab=-parseInt(_0x281a83(0x2bc))/0x1+parseInt(_0x281a83(0x302))/0x2*(parseInt(_0x281a83(0x3a4))/0x3)+-parseInt(_0x281a83(0x3eb))/0x4+-parseInt(_0x281a83(0x271))/0x5*(-parseInt(_0x281a83(0x227))/0x6)+-parseInt(_0x281a83(0x170))/0x7+parseInt(_0x281a83(0x158))/0x8*(parseInt(_0x281a83(0x1f9))/0x9)+parseInt(_0x281a83(0x147))/0xa;if(_0x5a1bab===_0x2abe35)break;else _0x47d377['push'](_0x47d377['shift']());}catch(_0xa50518){_0x47d377['push'](_0x47d377['shift']());}}}(_0x5d04,0xca3a7));var Xe=Object['defineProperty'],Ke=(_0x4de849,_0x59b21d,_0x5a0c96)=>_0x59b21d in _0x4de849?Xe(_0x4de849,_0x59b21d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a0c96}):_0x4de849[_0x59b21d]=_0x5a0c96,_=(_0x4b9b87,_0x54ee9d,_0x2052d7)=>Ke(_0x4b9b87,typeof _0x54ee9d!=_0x5f0329(0x280)?_0x54ee9d+'':_0x54ee9d,_0x2052d7);Object[_0x5f0329(0x39c)](exports,Symbol[_0x5f0329(0x3c2)],{'value':_0x5f0329(0x219)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x3ee8e4,..._0x329c5a}){const _0x4c4c04=_0x5f0329,{icon:_0x56048f,id:_0x237ee8,className:_0x5f1cad,extend:_0xfb13b3,..._0x99193c}=_0x329c5a,_0x69f28e=(_0x4c4c04(0x166)+_0x237ee8+'\x20'+(_0x5f1cad||''))[_0x4c4c04(0x36e)](),_0x1da78f=A[_0x4c4c04(0x2ac)]('_'+Qe());return $e(_0x56048f,''+_0x237ee8,{'defIds':_0x56048f[_0x4c4c04(0x274)],'idSuffix':_0x1da78f[_0x4c4c04(0x3bc)]},{'ref':_0x3ee8e4,'className':_0x69f28e,..._0x99193c},_0xfb13b3);}function $e(_0x309d03,_0xf0e11b,_0x134c48,_0x249a5e,_0x40cf95){const _0x221eed=_0x5f0329;return A[_0x221eed(0x2c9)](_0x309d03[_0x221eed(0x389)],{'key':_0xf0e11b,...Je(_0x309d03,_0x134c48,_0x40cf95),..._0x249a5e},(Ze(_0x309d03,_0x134c48)['children']||[])[_0x221eed(0x30d)]((_0x4c8a88,_0x29df3d)=>$e(_0x4c8a88,_0xf0e11b+'-'+_0x309d03['tag']+'-'+_0x29df3d,_0x134c48,void 0x0,_0x40cf95)));}function Je(_0x5dcc64,_0x389ca7,_0x9f6ba2){const _0xc9ed24=_0x5f0329,_0x456580={..._0x5dcc64[_0xc9ed24(0x29b)]};_0x9f6ba2!=null&&_0x9f6ba2['colorChannel1']&&_0x456580[_0xc9ed24(0x40b)]===_0xc9ed24(0x167)&&(_0x456580['fill']=_0x9f6ba2[_0xc9ed24(0x167)]),_0x5dcc64[_0xc9ed24(0x389)]===_0xc9ed24(0x18c)&&_0x456580['id']&&(_0x456580['id']=_0x456580['id']+_0x389ca7[_0xc9ed24(0x228)]),Object['entries'](_0x456580)['forEach'](([_0x41ca17,_0x1b69a2])=>{const _0xeaa80=_0xc9ed24;_0x41ca17==='mask'&&typeof _0x1b69a2==_0xeaa80(0x277)&&(_0x456580[_0x41ca17]=_0x1b69a2[_0xeaa80(0x1e6)](/url\(#(.*)\)/,_0xeaa80(0x18f)+_0x389ca7[_0xeaa80(0x228)]+')'));});const {defIds:_0x37485d}=_0x389ca7;return!_0x37485d||_0x37485d['length']===0x0||(_0x5dcc64[_0xc9ed24(0x389)]===_0xc9ed24(0x208)&&_0x456580[_0xc9ed24(0x1f6)]&&(_0x456580[_0xc9ed24(0x1f6)]=_0x456580['xlink:href']+_0x389ca7['idSuffix']),Object['entries'](_0x456580)[_0xc9ed24(0x205)](([_0x1964eb,_0x188f0b])=>{const _0x2abd8c=_0xc9ed24;typeof _0x188f0b==_0x2abd8c(0x277)&&(_0x456580[_0x1964eb]=_0x188f0b[_0x2abd8c(0x1e6)](/url\(#(.*)\)/,_0x2abd8c(0x18f)+_0x389ca7['idSuffix']+')'));})),_0x456580;}function Ze(_0x240d61,_0x51d2b6){const _0x354361=_0x5f0329;var _0x503407;const {defIds:_0x3a5c59}=_0x51d2b6;return!_0x3a5c59||_0x3a5c59['length']===0x0?_0x240d61:_0x240d61[_0x354361(0x389)]==='defs'&&((_0x503407=_0x240d61[_0x354361(0x189)])!=null&&_0x503407[_0x354361(0x23b)])?{..._0x240d61,'children':_0x240d61[_0x354361(0x189)][_0x354361(0x30d)](_0x287028=>typeof _0x287028[_0x354361(0x29b)]['id']=='string'&&_0x3a5c59&&_0x3a5c59[_0x354361(0x1ac)](_0x287028[_0x354361(0x29b)]['id'])?{..._0x287028,'attrs':{..._0x287028[_0x354361(0x29b)],'id':_0x287028[_0x354361(0x29b)]['id']+_0x51d2b6[_0x354361(0x228)]}}:_0x287028)}:_0x240d61;}function Qe(){const _0x165c2d=_0x5f0329;return Math[_0x165c2d(0x1f8)]()[_0x165c2d(0x3a8)](0x24)[_0x165c2d(0x25d)](0x2,0x8);}pe[_0x5f0329(0x324)]=_0x5f0329(0x28b);const et={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f0329(0x231),'viewBox':_0x5f0329(0x3a0),'width':'1em','height':_0x5f0329(0x192)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f0329(0x3b3)},'children':[{'tag':_0x5f0329(0x341),'attrs':{'stroke':_0x5f0329(0x377),'d':'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','strokeLinecap':_0x5f0329(0x413),'strokeLinejoin':_0x5f0329(0x413),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5f0329(0x216),'attrs':{'id':_0x5f0329(0x3fb)},'children':[{'tag':_0x5f0329(0x341),'attrs':{'fill':_0x5f0329(0x38d),'d':_0x5f0329(0x1c8)}}]}]}],'defIds':[_0x5f0329(0x3fb)]},xe=A[_0x5f0329(0x310)](function(_0x17fb59,_0x4f3009){const _0x2e8845=_0x5f0329;return A[_0x2e8845(0x2c9)](pe,Object['assign']({},_0x17fb59,{'id':_0x2e8845(0x326),'ref':_0x4f3009,'icon':et}));});xe[_0x5f0329(0x324)]=_0x5f0329(0x30a);const tt={'tag':_0x5f0329(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x5f0329(0x192),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x5f0329(0x341),'attrs':{'stroke':_0x5f0329(0x377),'d':_0x5f0329(0x30b),'strokeLinecap':_0x5f0329(0x413),'strokeLinejoin':_0x5f0329(0x413),'strokeWidth':1.2}}]},{'tag':_0x5f0329(0x32a),'attrs':{},'children':[{'tag':_0x5f0329(0x216),'attrs':{'id':_0x5f0329(0x288)},'children':[{'tag':_0x5f0329(0x341),'attrs':{'fill':_0x5f0329(0x38d),'d':_0x5f0329(0x1c8),'transform':'translate(.97)'}}]}]}],'defIds':[_0x5f0329(0x288)]},Be=A[_0x5f0329(0x310)](function(_0x3121a3,_0xbe1f5d){const _0x2248e9=_0x5f0329;return A[_0x2248e9(0x2c9)](pe,Object[_0x2248e9(0x19b)]({},_0x3121a3,{'id':'on-line-icon','ref':_0xbe1f5d,'icon':tt}));});Be[_0x5f0329(0x324)]='OnLineIcon';function st(_0x14b783){const _0x186e9e=_0x5f0329;switch(_0x14b783){case u[_0x186e9e(0x39d)][_0x186e9e(0x3c4)]:return _0x186e9e(0x308);case u['CollaborationStatus'][_0x186e9e(0x3ea)]:return _0x186e9e(0x27b);case u[_0x186e9e(0x39d)]['FETCH_MISS']:return _0x186e9e(0x409);case u[_0x186e9e(0x39d)][_0x186e9e(0x353)]:return _0x186e9e(0x1d8);case u['CollaborationStatus']['AWAITING']:case u[_0x186e9e(0x39d)][_0x186e9e(0x3c0)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0x186e9e(0x175)]:case u['CollaborationStatus'][_0x186e9e(0x2d8)]:return _0x186e9e(0x3b2);}}function it(_0x41e69e){const _0x305e84=_0x5f0329,{status$:_0x226f82}=_0x41e69e,_0xd2a258=O['useObservable'](_0x226f82,u[_0x305e84(0x39d)][_0x305e84(0x353)]),_0x4f5a80=O['useDependency'](a['LocaleService']),_0x3f562b=O['useDependency'](u[_0x305e84(0x3a9)]),_0x328521=_0xd2a258!==u[_0x305e84(0x39d)][_0x305e84(0x3c4)],_0x425246=_0x4f5a80['t'](st(_0xd2a258)),_0x542c97=_0x328521?M['jsx'](Be,{}):M['jsx'](xe,{}),_0x3d1f47=A[_0x305e84(0x1c5)](()=>{_0x328521||_0x3f562b['reconnect']();},[_0x328521,_0x3f562b]);function _0x37104a(){const _0x408688=_0x305e84;return M['jsxs'](_0x408688(0x1ff),{'className':_0x408688(0x25a),'onClick':_0x3d1f47,'children':[M[_0x408688(0x154)](_0x408688(0x1ff),{'className':p['clsx'](_0x408688(0x29e),{'univer-text-green-500':_0x328521,'univer-text-red-500':!_0x328521}),'children':_0x542c97}),M['jsx'](_0x408688(0x1ff),{'className':_0x408688(0x392),'children':_0x425246})]});}return _0x328521?_0x37104a():M[_0x305e84(0x154)](p[_0x305e84(0x412)],{'title':_0x4f5a80['t'](_0x305e84(0x211)),'children':_0x37104a()});}var nt=Object[_0x5f0329(0x2e9)],rt=(_0x142fb1,_0x41f6b0,_0x2f352f,_0x2750eb)=>{const _0xedad37=_0x5f0329;for(var _0x513d7c=_0x2750eb>0x1?void 0x0:_0x2750eb?nt(_0x41f6b0,_0x2f352f):_0x41f6b0,_0x490b48=_0x142fb1[_0xedad37(0x23b)]-0x1,_0x5ae74b;_0x490b48>=0x0;_0x490b48--)(_0x5ae74b=_0x142fb1[_0x490b48])&&(_0x513d7c=_0x5ae74b(_0x513d7c)||_0x513d7c);return _0x513d7c;},K=(_0x2fb9cb,_0x540edd)=>(_0x3cdad2,_0x4083e7)=>_0x540edd(_0x3cdad2,_0x4083e7,_0x2fb9cb);exports[_0x5f0329(0x236)]=class extends a[_0x5f0329(0x248)]{constructor(_0x38aa14,_0x323232,_0x2cfa29,_0x90b3b4){const _0x4af6d6=_0x5f0329;super(),_(this,_0x4af6d6(0x27e),new I[(_0x4af6d6(0x406))](u[_0x4af6d6(0x39d)][_0x4af6d6(0x353)])),(this[_0x4af6d6(0x2c8)]=_0x38aa14,this[_0x4af6d6(0x180)]=_0x323232,this[_0x4af6d6(0x1f5)]=_0x2cfa29,this['_uiPartsService']=_0x90b3b4,this['_initStatusComponent'](),this[_0x4af6d6(0x199)]());}[_0x5f0329(0x199)](){const _0x15f19d=_0x5f0329;this[_0x15f19d(0x385)](this[_0x15f19d(0x2c8)][_0x15f19d(0x327)][_0x15f19d(0x217)](I[_0x15f19d(0x188)](()=>{const _0x29e549=_0x15f19d,_0x51bfef=this[_0x29e549(0x2c8)][_0x29e549(0x242)]();return _0x51bfef?this[_0x29e549(0x1f5)][_0x29e549(0x1a2)](_0x51bfef[_0x29e549(0x1cf)]()):I['of'](null);}),I[_0x15f19d(0x188)](_0x305b06=>_0x305b06?_0x305b06[_0x15f19d(0x371)]:I['of'](u[_0x15f19d(0x39d)][_0x15f19d(0x353)])))['subscribe'](_0x4ab362=>{const _0x147449=_0x15f19d;this[_0x147449(0x27e)]['next'](_0x4ab362);}));}[_0x5f0329(0x150)](){const _0x4f3fba=_0x5f0329;this[_0x4f3fba(0x385)](this[_0x4f3fba(0x35e)][_0x4f3fba(0x1cd)](O['BuiltInUIPart'][_0x4f3fba(0x3c5)],()=>O[_0x4f3fba(0x2de)](ot({'status$':this[_0x4f3fba(0x27e)]['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x5f0329(0x2c0)]),K(0x1,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),K(0x2,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x196)])),K(0x3,O[_0x5f0329(0x2ea)])],exports[_0x5f0329(0x236)]);function ot(_0x424b34){const {status$:_0x360995}=_0x424b34;return function(){const _0x5f5718=_0x38d6;return M[_0x5f5718(0x154)](it,{'status$':_0x360995});};}const Oe=a[_0x5f0329(0x244)](_0x5f0329(0x185));var at=Object[_0x5f0329(0x2e9)],ct=(_0xf0d952,_0x89ee2,_0x18623b,_0x13781b)=>{const _0x40d6c7=_0x5f0329;for(var _0x37d5f4=_0x13781b>0x1?void 0x0:_0x13781b?at(_0x89ee2,_0x18623b):_0x89ee2,_0x48d12c=_0xf0d952[_0x40d6c7(0x23b)]-0x1,_0x277a66;_0x48d12c>=0x0;_0x48d12c--)(_0x277a66=_0xf0d952[_0x48d12c])&&(_0x37d5f4=_0x277a66(_0x37d5f4)||_0x37d5f4);return _0x37d5f4;},Y=(_0x1200e4,_0x5ab0c2)=>(_0x41de93,_0x537941)=>_0x5ab0c2(_0x41de93,_0x537941,_0x1200e4);exports[_0x5f0329(0x34b)]=class extends a[_0x5f0329(0x3f4)]{constructor(_0x2cc23a,_0x457ef2,_0x7d457a,_0x1ef260,_0x263ef1){const _0x12648d=_0x5f0329;super(),this[_0x12648d(0x1f7)]=_0x2cc23a,this[_0x12648d(0x181)]=_0x457ef2,this[_0x12648d(0x3b8)]=_0x7d457a,this[_0x12648d(0x2fb)]=_0x1ef260,_0x263ef1?_0x263ef1==null||_0x263ef1['whenReady']()[_0x12648d(0x29f)](()=>this[_0x12648d(0x1a0)]()):(this['_logService'][_0x12648d(0x1da)](_0x12648d(0x36d),_0x12648d(0x17c)),this['_init']());}async[_0x5f0329(0x1a0)](){const _0x2803f9=_0x5f0329,_0x46c240=this[_0x2803f9(0x1f7)]['getParam'](_0x2803f9(0x321)),_0x161330=this[_0x2803f9(0x1f7)][_0x2803f9(0x1e7)]('type'),_0xb9b4bd=this[_0x2803f9(0x1f7)][_0x2803f9(0x1e7)](_0x2803f9(0x2dc));if(!_0x46c240||!_0x161330){this['_logService'][_0x2803f9(0x1da)](_0x2803f9(0x36d),_0x2803f9(0x2a6));return;}const _0x436fbc=await this['_dataLoaderService'][_0x2803f9(0x33d)](_0x46c240,Number(_0x161330),_0xb9b4bd);_0x436fbc&&_0x436fbc instanceof a['Workbook']&&this[_0x2803f9(0x266)](_0x436fbc);}async['_setupSubUnitSync'](_0x50b0c1){const _0xe5b5ee=_0x5f0329;await this[_0xe5b5ee(0x318)](_0x50b0c1),_0x50b0c1['activeSheet$'][_0xe5b5ee(0x217)](I[_0xe5b5ee(0x28e)](this[_0xe5b5ee(0x3f8)]))[_0xe5b5ee(0x2c2)](_0x320e4b=>{const _0x457cc6=_0xe5b5ee;_0x320e4b&&this[_0x457cc6(0x293)](_0x320e4b);}),this[_0xe5b5ee(0x1f7)][_0xe5b5ee(0x345)][_0xe5b5ee(0x217)](I[_0xe5b5ee(0x28e)](this[_0xe5b5ee(0x3f8)]))[_0xe5b5ee(0x2c2)](()=>this['_updateSubUnitFromURLParams'](_0x50b0c1));}[_0x5f0329(0x293)](_0x1429f6,_0x42bd5a=!0x1){const _0x57e221=_0x5f0329,_0x121e03=this[_0x57e221(0x1f7)][_0x57e221(0x1e7)]('subunit');_0x1429f6[_0x57e221(0x264)]()!==_0x121e03&&this['_urlService'][_0x57e221(0x2b0)](_0x57e221(0x2dc),_0x1429f6[_0x57e221(0x264)](),_0x42bd5a);}async[_0x5f0329(0x318)](_0x194f13){const _0x286732=_0x5f0329;var _0x1675b4;const _0x336e1e=this[_0x286732(0x1f7)][_0x286732(0x1e7)](_0x286732(0x2dc));if(!_0x336e1e||!_0x194f13['getSheetBySheetId'](_0x336e1e)){const _0x24e3e2=_0x194f13['getUnhiddenWorksheets']()[0x0],_0x244eb6=_0x194f13[_0x286732(0x223)](_0x24e3e2);if(!_0x244eb6)return;this[_0x286732(0x293)](_0x244eb6,!0x0),await this['_commandService']['executeCommand'](v[_0x286732(0x1f4)]['id'],{'unitId':_0x194f13[_0x286732(0x1cf)](),'subUnitId':_0x24e3e2});return;}((_0x1675b4=_0x194f13[_0x286732(0x1c4)]())==null?void 0x0:_0x1675b4[_0x286732(0x264)]())!==_0x336e1e&&await this[_0x286732(0x3b8)][_0x286732(0x1df)](v[_0x286732(0x1f4)]['id'],{'unitId':_0x194f13[_0x286732(0x1cf)](),'subUnitId':_0x336e1e});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x5f0329(0x254)]),Y(0x2,a[_0x5f0329(0x1b7)]),Y(0x3,a[_0x5f0329(0x2b6)](u['DataLoaderService'])),Y(0x4,a['Optional'](qe[_0x5f0329(0x21b)]))],exports[_0x5f0329(0x34b)]);var lt=Object[_0x5f0329(0x2e9)],_t=(_0x176c70,_0x33c310,_0xca54a,_0x84b6a8)=>{const _0x28423b=_0x5f0329;for(var _0x1de527=_0x84b6a8>0x1?void 0x0:_0x84b6a8?lt(_0x33c310,_0xca54a):_0x33c310,_0x2ef29e=_0x176c70[_0x28423b(0x23b)]-0x1,_0x7d0493;_0x2ef29e>=0x0;_0x2ef29e--)(_0x7d0493=_0x176c70[_0x2ef29e])&&(_0x1de527=_0x7d0493(_0x1de527)||_0x1de527);return _0x1de527;},De=(_0x23ca48,_0x34805f)=>(_0x4c6b99,_0x2e6439)=>_0x34805f(_0x4c6b99,_0x2e6439,_0x23ca48);let me=class extends a[_0x5f0329(0x3f4)]{constructor(_0x5207cd,_0x2a453b){const _0x4c3160=_0x5f0329;super(),this[_0x4c3160(0x1ed)]=_0x5207cd,this[_0x4c3160(0x186)]=_0x2a453b,this[_0x4c3160(0x1a0)]();}['_init'](){const _0x1c7a24=_0x5f0329,_0x38c996=this;this[_0x1c7a24(0x385)](this[_0x1c7a24(0x1ed)]['addClipboardHook']({'onBeforePasteImage':async _0x1ac72c=>{const _0x3353e9=_0x1c7a24,_0x5ddfc3=await _0x38c996['_imageIoService'][_0x3353e9(0x296)](_0x1ac72c);return _0x5ddfc3?{'source':_0x5ddfc3[_0x3353e9(0x3ab)],'imageSourceType':_0x5ddfc3[_0x3353e9(0x1db)]}:null;}}));}};me=_t([De(0x0,T[_0x5f0329(0x273)]),De(0x1,ze[_0x5f0329(0x381)])],me);const Ne=[_0x5f0329(0x252),'jiqing.500',_0x5f0329(0x339),_0x5f0329(0x3d9),_0x5f0329(0x1d4),_0x5f0329(0x38e)];class Re extends a['Disposable']{constructor(){const _0x182204=_0x5f0329;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x182204(0x30e),0x0);}['assignAColorForMemberID'](_0x74465a){const _0x4d837f=_0x5f0329;if(this[_0x4d837f(0x2f5)][_0x4d837f(0x397)](_0x74465a))return this[_0x4d837f(0x2f5)][_0x4d837f(0x222)](_0x74465a);const _0x4b3ee6=Ne[this[_0x4d837f(0x30e)]];return this[_0x4d837f(0x30e)]=(this['_colorIndex']+0x1)%Ne[_0x4d837f(0x23b)],this['_assignedColors']['set'](_0x74465a,_0x4b3ee6),_0x4b3ee6;}}function Fe(_0x560645){const _0x53a376=_0x5f0329;let _0x50c5c2='';for(const _0x3b1f5b of _0x560645){const {startOffset:_0x31a172,endOffset:_0x33b616,isActive:_0x938a04,rangeType:_0x4b3f05,segmentId:_0x1f6575,segmentPage:_0x65fd6}=_0x3b1f5b;_0x50c5c2[_0x53a376(0x23b)]&&(_0x50c5c2+=','),_0x50c5c2+=_0x31a172+':'+_0x33b616+':'+(_0x938a04?'1':'0')+':'+_0x4b3f05+':'+_0x1f6575+':'+_0x65fd6;}return _0x50c5c2;}function ht(_0x195611){const _0x294ae1=_0x5f0329,_0x45e777=_0x195611[_0x294ae1(0x395)](','),_0xc37ffc=[];for(const _0x1b4b69 of _0x45e777){const [_0x430116,_0x54a6c7,_0xf68515,_0x1d8da7,_0x8a453,_0x5d65f6]=_0x1b4b69[_0x294ae1(0x395)](':');_0xc37ffc[_0x294ae1(0x375)]({'startOffset':Number(_0x430116),'endOffset':Number(_0x54a6c7),'collapsed':_0x430116===_0x54a6c7,'isActive':_0xf68515==='1','rangeType':_0x1d8da7===a['DOC_RANGE_TYPE'][_0x294ae1(0x2fc)]?a[_0x294ae1(0x416)][_0x294ae1(0x2fc)]:a[_0x294ae1(0x416)][_0x294ae1(0x2c4)],'segmentId':typeof _0x8a453==_0x294ae1(0x277)?String(_0x8a453):'','segmentPage':Number(_0x5d65f6!=null?_0x5d65f6:-0x1)});}return _0xc37ffc['some'](_0xa37d11=>_0xa37d11[_0x294ae1(0x21a)])||(_0xc37ffc[0x0][_0x294ae1(0x21a)]=!0x0),_0xc37ffc;}class be extends a[_0x5f0329(0x3f4)]{constructor(){const _0x5ea34a=_0x5f0329;super(...arguments),_(this,_0x5ea34a(0x269),new I[(_0x5ea34a(0x406))](null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x5ea34a(0x23e)]());}[_0x5f0329(0x30f)](_0x174e98){const _0x49746d=_0x5f0329,{unitID:_0x5855bb,memberID:_0x2be97f,textRanges:_0x2bbe26}=_0x174e98,_0xe02a3e=Fe(_0x2bbe26);if(_0xe02a3e==='')return;const _0x4ce52f={'unitID':_0x5855bb,'memberID':_0x2be97f,'selection':_0xe02a3e};this[_0x49746d(0x269)]['next'](_0x4ce52f);}}var ut=Object[_0x5f0329(0x2e9)],It=(_0x1a1a2a,_0x1ac0a0,_0x5e98a1,_0x253561)=>{for(var _0x1a94b5=_0x253561>0x1?void 0x0:_0x253561?ut(_0x1ac0a0,_0x5e98a1):_0x1ac0a0,_0x508847=_0x1a1a2a['length']-0x1,_0x2f0e25;_0x508847>=0x0;_0x508847--)(_0x2f0e25=_0x1a1a2a[_0x508847])&&(_0x1a94b5=_0x2f0e25(_0x1a94b5)||_0x1a94b5);return _0x1a94b5;},U=(_0x20e6ed,_0x18a646)=>(_0x8503b0,_0x180ab5)=>_0x18a646(_0x8503b0,_0x180ab5,_0x20e6ed);const St=0x12c,dt=0x64;let ve=class extends a[_0x5f0329(0x3f4)]{constructor(_0x5ae95f,_0x583706,_0x2303cf,_0x36b7d1,_0x22e943,_0x254f32,_0xc75384,_0x10b54f,_0x5e1dce){const _0x4d0529=_0x5f0329;super(),_(this,_0x4d0529(0x1ce),!0x1),_(this,_0x4d0529(0x1a0),!0x1),_(this,_0x4d0529(0x1b3),new I[(_0x4d0529(0x406))](new Map())),_(this,_0x4d0529(0x2da),this[_0x4d0529(0x1b3)][_0x4d0529(0x23e)]()),_(this,'_roomMembers$',new I[(_0x4d0529(0x406))]([])),_(this,_0x4d0529(0x149),this['_roomMembers$']['pipe'](I[_0x4d0529(0x316)](St))),_(this,_0x4d0529(0x260),a[_0x4d0529(0x1fc)](_0x1739a4=>{const _0x2067da=_0x4d0529,_0x46737d={'eventID':g[_0x2067da(0x24f)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2067da(0x398)],'memberID':this['_session'][_0x2067da(0x3fa)](),'selection':Fe(_0x1739a4)}};this[_0x2067da(0x3c6)]['send'](_0x46737d,this['unitID']);},dt)),(this[_0x4d0529(0x398)]=_0x5ae95f,this[_0x4d0529(0x3c6)]=_0x583706,this['_injector']=_0x2303cf,this[_0x4d0529(0x2fa)]=_0x36b7d1,this[_0x4d0529(0x1a8)]=_0x22e943,this[_0x4d0529(0x26b)]=_0x254f32,this[_0x4d0529(0x261)]=_0xc75384,this[_0x4d0529(0x2c8)]=_0x10b54f,this['_commandService']=_0x5e1dce);}get[_0x5f0329(0x368)](){const _0x15b936=_0x5f0329;return this[_0x15b936(0x1b3)]['getValue']();}get[_0x5f0329(0x41b)](){const _0x3d9746=_0x5f0329;return this[_0x3d9746(0x2a5)][_0x3d9746(0x259)]();}[_0x5f0329(0x26d)](){const _0x491fad=_0x5f0329;super[_0x491fad(0x26d)](),this['_cursorInfo$'][_0x491fad(0x24a)](new Map()),this[_0x491fad(0x1b3)][_0x491fad(0x2f6)](),this[_0x491fad(0x2a5)][_0x491fad(0x24a)]([]),this[_0x491fad(0x2a5)]['complete']();}[_0x5f0329(0x237)](){const _0x5b29aa=_0x5f0329;this['_init']||(this[_0x5b29aa(0x1a0)]=!0x0,this['_session']['sessionStatus$']['pipe'](I['takeUntil'](this[_0x5b29aa(0x3f8)]))['subscribe'](_0x4ec61f=>{const _0x35ed0a=_0x5b29aa;_0x4ec61f===u['SessionStatus'][_0x35ed0a(0x148)]?this[_0x35ed0a(0x18e)]():this[_0x35ed0a(0x160)]();}),this[_0x5b29aa(0x3c6)]['event$'][_0x5b29aa(0x217)](I['takeUntil'](this[_0x5b29aa(0x3f8)]))[_0x5b29aa(0x2c2)](_0x43ea09=>{const _0x4d68d4=_0x5b29aa,_0x1d54ea=_0x43ea09['eventID'];_0x1d54ea===g[_0x4d68d4(0x24f)][_0x4d68d4(0x187)]&&this[_0x4d68d4(0x3f2)](_0x43ea09),_0x1d54ea===g['CollaborationEvent'][_0x4d68d4(0x347)]&&this['_onCursorDelete'](_0x43ea09);}),this[_0x5b29aa(0x385)](this[_0x5b29aa(0x3b8)][_0x5b29aa(0x171)](_0x39c192=>{const _0x14124d=_0x5b29aa,_0x5f0889=_0x39c192[_0x14124d(0x355)];_0x5f0889!=null&&this[_0x14124d(0x1ce)]&&_0x39c192['id']===V[_0x14124d(0x292)]['id']&&_0x5f0889['unitId']===this['unitID']&&_0x5f0889['isEditing']===!0x1&&_0x5f0889[_0x14124d(0x3cd)][_0x14124d(0x23b)]>0x0&&this[_0x14124d(0x260)](_0x5f0889[_0x14124d(0x3cd)]);})),this[_0x5b29aa(0x26b)][_0x5b29aa(0x243)]['pipe'](I[_0x5b29aa(0x28e)](this['dispose$']))[_0x5b29aa(0x2c2)](_0x23e1b3=>{const _0x560f2e=_0x5b29aa;if((_0x23e1b3==null?void 0x0:_0x23e1b3[_0x560f2e(0x398)])!==this[_0x560f2e(0x398)])return;const _0x3c7e51={'eventID':g[_0x560f2e(0x24f)][_0x560f2e(0x187)],'data':_0x23e1b3};this[_0x560f2e(0x3f2)](_0x3c7e51);}),this[_0x5b29aa(0x385)](this['_commandService'][_0x5b29aa(0x171)](_0x333d5b=>{const _0x44d847=_0x5b29aa;if(_0x333d5b['params']==null)return;const _0x1f45a0=_0x333d5b[_0x44d847(0x355)];if(_0x333d5b['id']!==V[_0x44d847(0x351)]['id']||_0x1f45a0[_0x44d847(0x3b6)]!==this[_0x44d847(0x398)])return;const _0x332f6c={'id':_0x44d847(0x2e2),'params':_0x1f45a0},_0x3dd5d8=this[_0x44d847(0x368)];for(const [_0xc53429,_0x480b1d]of _0x3dd5d8){const _0x50fbc8={'id':_0x44d847(0x2e2),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x480b1d['ranges']}},_0x1029c2=this[_0x44d847(0x261)][_0x44d847(0x3fd)](_0x332f6c,_0x50fbc8,!0x1);if(g['isTransformMutationFailure'](_0x1029c2))throw _0x1029c2[_0x44d847(0x146)];_0x3dd5d8[_0x44d847(0x3c7)](_0xc53429,{..._0x480b1d,'ranges':_0x1029c2[_0x44d847(0x325)]['params']['textRanges']});}queueMicrotask(()=>{const _0x5ef5ba=_0x44d847;this[_0x5ef5ba(0x1b3)][_0x5ef5ba(0x24a)](_0x3dd5d8);});})));}['_onCursorUpdate'](_0x5de1aa){const _0x51d8c1=_0x5f0329;var _0x5e3e98,_0xad8fb0;const {memberID:_0x280fe3,selection:_0x24bea8}=_0x5de1aa[_0x51d8c1(0x403)],_0x1a2b71=ht(_0x24bea8),_0x4fc499=(_0xad8fb0=(_0x5e3e98=this[_0x51d8c1(0x1a8)][_0x51d8c1(0x1a1)](this['unitID'],_0x280fe3))==null?void 0x0:_0x5e3e98[_0x51d8c1(0x3d6)])!=null?_0xad8fb0:'Unknown\x20user',_0x4ff00a={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x280fe3),'name':_0x4fc499,'ranges':_0x1a2b71},_0x13c818=this['cursorInfo'];_0x13c818[_0x51d8c1(0x3c7)](_0x280fe3,_0x4ff00a),this[_0x51d8c1(0x1b3)][_0x51d8c1(0x24a)](_0x13c818);}['_onCursorDelete'](_0xafb143){const _0x3fe769=_0x5f0329,{memberID:_0x2c0879}=_0xafb143[_0x3fe769(0x403)],_0x5a58b9=this[_0x3fe769(0x368)];_0x5a58b9[_0x3fe769(0x263)](_0x2c0879),this['_cursorInfo$'][_0x3fe769(0x24a)](_0x5a58b9);}[_0x5f0329(0x18e)](){const _0x4a486c=_0x5f0329;var _0x2d861a;if(this[_0x4a486c(0x1ce)]=!0x0,((_0x2d861a=this[_0x4a486c(0x2c8)][_0x4a486c(0x242)]())==null?void 0x0:_0x2d861a[_0x4a486c(0x1cf)]())!==this[_0x4a486c(0x398)])return;const _0x835bbb=this['_injector'][_0x4a486c(0x222)](V[_0x4a486c(0x14b)])[_0x4a486c(0x182)]();Array[_0x4a486c(0x234)](_0x835bbb)&&_0x835bbb[_0x4a486c(0x23b)]>0x0&&this[_0x4a486c(0x260)](_0x835bbb);}['_toggleOffline'](){const _0x10a5b7=_0x5f0329;this[_0x10a5b7(0x1ce)]=!0x1;}};ve=It([U(0x2,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),U(0x3,a[_0x5f0329(0x2b6)](Re)),U(0x4,a['Inject'](u[_0x5f0329(0x2f2)])),U(0x5,a[_0x5f0329(0x2b6)](be)),U(0x6,g[_0x5f0329(0x3a1)]),U(0x7,a[_0x5f0329(0x2c0)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x5f0329(0x2e9)],mt=(_0x33f149,_0x4faf04,_0x515d0f,_0x554fb2)=>{const _0x7ef6ed=_0x5f0329;for(var _0x32806f=_0x554fb2>0x1?void 0x0:_0x554fb2?ft(_0x4faf04,_0x515d0f):_0x4faf04,_0x1ec51f=_0x33f149[_0x7ef6ed(0x23b)]-0x1,_0x2ec5cf;_0x1ec51f>=0x0;_0x1ec51f--)(_0x2ec5cf=_0x33f149[_0x1ec51f])&&(_0x32806f=_0x2ec5cf(_0x32806f)||_0x32806f);return _0x32806f;},w=(_0x2ae135,_0x586c31)=>(_0x4ec077,_0x491373)=>_0x586c31(_0x4ec077,_0x491373,_0x2ae135);const vt=0x12c,gt=0x64,Et=()=>{let _0x1d60aa=[],_0x2c2f70=!0x1;return _0x15a88b=>{const _0x2a6d78=_0x38d6;_0x1d60aa[_0x2a6d78(0x375)](_0x15a88b),_0x2c2f70||(_0x2c2f70=!0x0,setTimeout(()=>{const _0x45de0a=_0x2a6d78;_0x1d60aa[_0x45de0a(0x205)](_0x3fa6a9=>_0x3fa6a9()),_0x1d60aa=[],_0x2c2f70=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x75196f,_0x1e3c89,_0x3f116b,_0x944f36,_0x281f8c,_0x263f48,_0x12c88f,_0x4f472c){const _0x289a09=_0x5f0329;super(),_(this,_0x289a09(0x1ce),!0x1),_(this,_0x289a09(0x1a0),!0x1),_(this,_0x289a09(0x1b3),new I[(_0x289a09(0x406))](new Map())),_(this,_0x289a09(0x2da),this[_0x289a09(0x1b3)][_0x289a09(0x23e)]()),_(this,'_roomMembers$',new I[(_0x289a09(0x406))]([])),_(this,_0x289a09(0x149),this[_0x289a09(0x2a5)][_0x289a09(0x217)](I[_0x289a09(0x316)](vt))),_(this,_0x289a09(0x260),a[_0x289a09(0x1fc)]((_0x249d34,_0x2cb4e1)=>{const _0x383a2a=_0x289a09,_0x3da6ff={'eventID':g['CollaborationEvent'][_0x383a2a(0x187)],'data':{'unitID':this['unitID'],'memberID':this[_0x383a2a(0x3c6)][_0x383a2a(0x3fa)](),'selection':B[_0x383a2a(0x322)](_0x249d34,_0x2cb4e1[_0x383a2a(0x26c)])}};this['_session'][_0x383a2a(0x1b2)](_0x3da6ff,this[_0x383a2a(0x398)]);},gt)),(this[_0x289a09(0x398)]=_0x75196f,this[_0x289a09(0x3c6)]=_0x1e3c89,this['_injector']=_0x3f116b,this[_0x289a09(0x2fa)]=_0x944f36,this['_memberService']=_0x281f8c,this[_0x289a09(0x2c8)]=_0x263f48,this['_commandService']=_0x12c88f,this[_0x289a09(0x3fc)]=_0x4f472c);}get[_0x5f0329(0x368)](){const _0x441fce=_0x5f0329;return this[_0x441fce(0x1b3)][_0x441fce(0x259)]();}get[_0x5f0329(0x41b)](){const _0x180b5e=_0x5f0329;return this[_0x180b5e(0x2a5)][_0x180b5e(0x259)]();}[_0x5f0329(0x26d)](){const _0x4b511d=_0x5f0329;super[_0x4b511d(0x26d)](),this[_0x4b511d(0x1b3)]['next'](new Map()),this[_0x4b511d(0x1b3)]['complete'](),this[_0x4b511d(0x2a5)][_0x4b511d(0x24a)]([]),this['_roomMembers$']['complete']();}[_0x5f0329(0x237)](){const _0x925a7d=_0x5f0329;this[_0x925a7d(0x1a0)]||(this[_0x925a7d(0x1a0)]=!0x0,this['_session']['sessionStatus$'][_0x925a7d(0x217)](I['takeUntil'](this['dispose$']))[_0x925a7d(0x2c2)](_0x44ee11=>{const _0x2d03f2=_0x925a7d;_0x44ee11===u[_0x2d03f2(0x417)][_0x2d03f2(0x148)]?this['_toggleOnline']():this[_0x2d03f2(0x160)]();}),this[_0x925a7d(0x3c6)][_0x925a7d(0x2f8)][_0x925a7d(0x217)](I[_0x925a7d(0x28e)](this[_0x925a7d(0x3f8)]))['subscribe'](_0x537cc4=>{const _0x2d8d2e=_0x925a7d,_0x3af049=_0x537cc4[_0x2d8d2e(0x240)];_0x3af049===g['CollaborationEvent'][_0x2d8d2e(0x187)]&&this['_onCursorUpdate'](_0x537cc4),_0x3af049===g[_0x2d8d2e(0x24f)][_0x2d8d2e(0x347)]&&this[_0x2d8d2e(0x1aa)](_0x537cc4);}),this[_0x925a7d(0x374)](),this[_0x925a7d(0x385)](this[_0x925a7d(0x3b8)][_0x925a7d(0x171)](_0x292419=>{const _0x12f237=_0x925a7d;if(this[_0x12f237(0x1ce)]&&_0x292419['id']===v[_0x12f237(0x17d)]['id']&&_0x292419[_0x12f237(0x355)][_0x12f237(0x3b6)]===this[_0x12f237(0x398)]){const _0x183821=_0x292419[_0x12f237(0x355)];this['_updateLocalCursor'](_0x183821[_0x12f237(0x25e)],_0x183821[_0x12f237(0x23d)][0x0]);}})));}['_onCursorUpdate'](_0x590a8){const _0x3ed456=_0x5f0329;var _0x21c5e8,_0x1f2edd;const {memberID:_0x3da4e2,selection:_0x36f606}=_0x590a8[_0x3ed456(0x403)],{sheetName:_0xa9c551,range:_0x201566}=B[_0x3ed456(0x365)](_0x36f606),_0x20a3c2={'name':(_0x1f2edd=(_0x21c5e8=this[_0x3ed456(0x1a8)]['getMember'](this[_0x3ed456(0x398)],_0x3da4e2))==null?void 0x0:_0x21c5e8[_0x3ed456(0x3d6)])!=null?_0x1f2edd:_0x3ed456(0x3d5),'range':this[_0x3ed456(0x2ef)](_0xa9c551,_0x201566),'sheetID':_0xa9c551,'color':this[_0x3ed456(0x2fa)][_0x3ed456(0x2e1)](_0x3da4e2),'selection':_0x36f606},_0xa58db5=this[_0x3ed456(0x368)];_0xa58db5[_0x3ed456(0x3c7)](_0x3da4e2,_0x20a3c2),this['_cursorInfo$']['next'](_0xa58db5);}[_0x5f0329(0x1aa)](_0x2da3e6){const _0x5e9a4e=_0x5f0329,{memberID:_0x4535ce}=_0x2da3e6[_0x5e9a4e(0x403)],_0x3b6db1=this[_0x5e9a4e(0x368)];_0x3b6db1[_0x5e9a4e(0x263)](_0x4535ce),this[_0x5e9a4e(0x1b3)][_0x5e9a4e(0x24a)](_0x3b6db1);}[_0x5f0329(0x2ef)](_0x3d90e7,_0x325b9b){const _0x4fbb8b=_0x5f0329;var _0x5795e7,_0x498930;const _0x292f53=(_0x498930=(_0x5795e7=this[_0x4fbb8b(0x2c8)][_0x4fbb8b(0x342)](this[_0x4fbb8b(0x398)]))==null?void 0x0:_0x5795e7[_0x4fbb8b(0x223)](_0x3d90e7))==null?void 0x0:_0x498930[_0x4fbb8b(0x320)]();return(_0x292f53==null?void 0x0:_0x292f53['find'](_0x3def52=>a[_0x4fbb8b(0x255)][_0x4fbb8b(0x253)](_0x3def52,_0x325b9b)))||_0x325b9b;}['_onRefRangeChange'](){const _0x2c83c4=_0x5f0329,_0x216e76=new a['DisposableCollection'](),_0x198c0e=Et(),_0x5bfb53=()=>{const _0x47fc33=_0x38d6;_0x216e76[_0x47fc33(0x26d)]();const _0x49a148=(_0x1954db,_0x19c217,_0x519022,_0x58e200)=>{const _0x2a26d5=_0x47fc33;let _0x59c586=[];switch(_0x1954db['id']){case v[_0x2a26d5(0x1a5)]['DeleteRangeMoveLeftCommandId']:{_0x59c586=v[_0x2a26d5(0x3f6)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x1fe)]:{_0x59c586=v[_0x2a26d5(0x334)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)]['InsertColCommandId']:{_0x59c586=v['handleInsertCol'](_0x1954db,_0x58e200);break;}case v['EffectRefRangId'][_0x2a26d5(0x3f1)]:{_0x59c586=v['handleInsertRangeMoveDown'](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x405)]:{_0x59c586=v[_0x2a26d5(0x1b6)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)]['InsertRowCommandId']:{_0x59c586=v['handleInsertRow'](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x31a)]:{_0x59c586=v[_0x2a26d5(0x25f)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x1ec)]:{_0x59c586=v[_0x2a26d5(0x370)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x27a)]:{_0x59c586=v[_0x2a26d5(0x3e4)](_0x1954db,_0x58e200);break;}}const _0x1ba043=v[_0x2a26d5(0x16d)](_0x59c586,_0x58e200),_0x4e633e=this[_0x2a26d5(0x368)][_0x2a26d5(0x222)](_0x19c217);if(_0x4e633e&&_0x1ba043){const _0xff2b13={..._0x4e633e,'range':_0x1ba043};this[_0x2a26d5(0x368)][_0x2a26d5(0x3c7)](_0x19c217,_0xff2b13),_0x198c0e(()=>{const _0xd1cbc8=_0x2a26d5,_0x464004=this[_0xd1cbc8(0x3fc)][_0xd1cbc8(0x2d4)](_0x1ba043,_0x328aec=>(_0x464004[_0xd1cbc8(0x26d)](),_0x49a148(_0x328aec,_0x19c217,_0x519022,_0x1ba043)));_0x216e76[_0xd1cbc8(0x262)](_0x464004);});}return{'redos':[],'undos':[]};};this[_0x47fc33(0x368)]['forEach']((_0x3df547,_0x436b3e)=>{const _0x460211=_0x47fc33,{range:_0x1cbecb,sheetID:_0x13d451}=_0x3df547,_0x404910=this[_0x460211(0x3fc)]['registerRefRange'](_0x1cbecb,_0x2174a9=>(_0x404910[_0x460211(0x26d)](),_0x49a148(_0x2174a9,_0x436b3e,_0x13d451,_0x1cbecb)));_0x216e76[_0x460211(0x262)](_0x404910);});};this[_0x2c83c4(0x385)](a['toDisposable'](this['_cursorInfo$']['subscribe'](()=>{_0x5bfb53();})));}[_0x5f0329(0x18e)](){const _0x389629=_0x5f0329;var _0x191664,_0x4a6027;if(this['_online']=!0x0,((_0x191664=this['_univerInstanceService'][_0x389629(0x242)]())==null?void 0x0:_0x191664[_0x389629(0x1cf)]())!==this['unitID'])return;const _0x3d213c=(_0x4a6027=this[_0x389629(0x180)]['get'](v[_0x389629(0x173)])[_0x389629(0x1e1)]())==null?void 0x0:_0x4a6027[0x0],_0x43fbab=this[_0x389629(0x2c8)][_0x389629(0x309)](a[_0x389629(0x2dd)]['UNIVER_SHEET'])[_0x389629(0x1c4)]();_0x3d213c&&_0x43fbab&&this['_updateLocalCursor'](_0x43fbab[_0x389629(0x264)](),_0x3d213c);}[_0x5f0329(0x160)](){const _0x2b7c03=_0x5f0329;this[_0x2b7c03(0x1ce)]=!0x1;}};ge=mt([w(0x2,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x2f2)])),w(0x5,a[_0x5f0329(0x2c0)]),w(0x6,a[_0x5f0329(0x1b7)]),w(0x7,a[_0x5f0329(0x2b6)](v[_0x5f0329(0x224)]))],ge);function _0x5d04(){const _0x4b6ea3=['transformStateCache','max','height','IImageIoService','Error','getUnit','sessionTicket','disposeWithMe','_transformHistoryAndStateStack','APPLY_PERMISSION_DENIED','collab-text-anchor-','tag','_monkeyPatchLogService','YUUMI_SUBSCRIPTION_NOT_FOUND','RevisionService','white','yellow.400','?taskId=','isTransformMutationsWithChangesetSuccess','Injector','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','endRow','save','split','drawWith','has','unitID','REDEMPTION_CODE_HAS_BEEN_CREATED','_textBubble','distinctUntilChanged','defineProperty','CollaborationStatus','runOnServer','_updateCollabCursors','0\x200\x2016\x2016','ITransformService','limitInfo','setItem','2255181IqcRmX','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','invokeId','CLOSE_ROOM','toString','CollaborationSessionService','JOIN_ROOM_FAILED','source','entityInit$','setActiveRange','closePath','fillStyle','INotificationService','ALREADY_EXISTS','collabStatus.synced','url(#off-line-icon_clip0_910_343)','LICENSE_EXPORT_SIZE_EXCEEDED','_id','unitId','createInstance','_commandService','RegularPolygon','YUUMI_ASYNCIO_CANCELLED','UNRECOGNIZED','current','evenodd','_pollingInterval','ENTITLE_CAN_NOT_BUY_LOWER_OTP','AWAITING_WITH_PENDING','ENTITLE_COUPON_USED_UP','toStringTag','searchParams','OFFLINE','HEADER_MENU','_session','set','_removeClearOtherTimer','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','INVALID_INVITE_CODE','from','FormulaExecutedStateType','ranges','engine','getActiveRange','getColorFromTheme','getCurrentRevOfUnit','setShapeProps','enableLocalCache','_createSocketURL','Unknown\x20user','name','_messageService','NO_OTHER_CLIENTS_EDITING','red.300','show','override','beginPath','column','_selfUnitIDs','collab-text-range-','MOBILE_HAS_BEEN_BOUND','EMAIL_VERIFY_CODE_MISMATCH','_name','DependentOn','handleIRemoveRow','START_CALCULATION','_startSheetCollabCursor','_releaseCalculationLimit','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_maxFormulaLimit','CONFLICT','4221380WkgdwB','_config','location','PAYMENT_CHANNEL_NOT_SUPPORT','CONNECTOR_DATA_TOO_LARGE','clearTimeout','InsertRangeMoveDownCommandId','_onCursorUpdate','ENTITLE_DUP_SUBSCRIPTION','RxDisposable','YUUMI_RATE_OVER_LIMIT','handleDeleteRangeMoveLeft','formula.calculation.waiting','dispose$','ENTITLE_INVALID_COUPON_CODE','getMemberID','off-line-icon_clip0_910_343','_refRangeService','transformMutation','getCellMatrix','_clearOtherTimers','_saveTaskMap','AUTHORIZE_CODE_ILLEGAL','touchDependencies','data','COLORS','InsertRangeMoveRightCommandId','BehaviorSubject','USER_NOT_INVITED_CODE','formula.calculation.unable','collabStatus.fetchMiss','UNAUTHENTICATED','fill','SetFormulaCalculationNotificationMutation','getOffsetConfig','_context','_initCommandInterceptor','removeParam','YUUMI_URL_COL_OUT_OF_RANGE','Tooltip','round','disposeUnit','APPLY_REVISION_CONFILICT','DOC_RANGE_TYPE','SessionStatus','_send','unshift','_instanceService','roomMembers','_range','_memberID','ENTITLE_USE_COUPON_NOT_1ST_TRADE','ticket','replaceState','_startCalculationLimit','error','16823300ssEizu','ONLINE','roomMembers$','IMessageService','DocSelectionManagerService','CollaborationSocketService','/universer-api/license/formula/limit/status','_getSessionTicket','socket$','_initStatusComponent','getCellPositionByOffset','_hovered','_removeCollabCursors','jsx','LOGIN_FAILED','collaboration-client-ui.config','_document','16QbhWwX','_hover','NodePositionConvertToRectRange','LOCAL_CACHE_INTERVAL','SNAPSHOT_HAS_BEEN_REMOVED','combineLatest','top','REDEMPTION_CODE_INACTIVE','_toggleOffline','releaseFormulaLimitUrl','_scheduleClearOtherTimer','getCollabCursors$','Rect','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','univerjs-icon\x20univerjs-icon-','colorChannel1','_configService','_getAnchorBounding','black','undoState','stack','runRefRangeMutations','_docStateChangeManagerService','filename','6112225vlhxwM','onCommandExecuted','MessageType','SheetsSelectionsService','result','SYNCED','svg','href','bind','makeDirty','SOCKET_FAILED_RETRY','_initResize','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','SetSelectionsOperation','formula.calculation.started','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_injector','_logService','getDocRanges','_taskIds','getLocalCacheKey','uni.network.url-service','_imageIoService','UPDATE_CURSOR','switchMap','children','_registerDependencies','_getScale','mask','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_toggleOnline','url(#$1','_httpService','onRendered','1em','onStarting','join','_saveCache','CollaborationController','SetFormulaCalculationStartMutation','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_initStatusListener','isFormulaString','assign','registerBeforeClose','_refreshCollabCursors','ILocalCacheService','setConfig','_init','getMember','getCollabEntity$','sheetId','_anchorDot','EffectRefRangId','IConfigService','registerDependencies','_memberService','_getFormulaLimitStatus','_onCursorDelete','skeleton','includes','body','type','_unitStatus','sheetID','INVALID_ARGUMENT','send','_cursorInfo$','_cursors','transformIMECache','handleInsertRangeMoveRight','ICommandService','executionId','[Unhandled\x20Rejection]:\x20','size','dirtyRanges','SUCCESS','ENTITLE_COUPON_EXPIRED','WebBrowserSingleActiveUnitService','ENTITLE_NEED_BILLING_ADDRESS','BrowserCollaborationSocketService','UNDEFINED','parse','shareReplay','getActiveSheet','useCallback','startsWith','TOO_MANY_REQUESTS','M0\x200H16V16H0z','IBeforeCloseService','_handleEvent','beforeCommandExecuted','DEFAULT_WS_SESSION_TICKET_URL','registerComponent','_online','getUnitId','session.collaboration-timeout','transformByState','INVITE_CODE_HAS_BEEN_UES','_docTransformSelectionsService','blue.400','REDEMPTION_USER_REDEEM_TIMES_EXCEED','pushState','_clearPolling','collabStatus.notCollab','_docSyncEditingCollabCursorService','debug','imageSourceType','NodePositionConvertToCursor','now','merge','executeCommand','getStateCache','getCurrentSelections','replaceDocRanges','message','row','subscribeEvent','replace','getParam','endColumn','PY_RUNTIME_SCRIPT_ERROR','key','popstate','RemoveColCommandId','_docClipboardService','Plugin','setStateCache','stringify','search','WebSocketService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SetWorksheetActivateCommand','_collaborationController','xlink:href','_urlService','random','3128103LWszPw','restore','createSocket','debounce','INVITE_CODE_REQUIRED','DeleteRangeMoveUpCommandId','div','getItem','\x20at\x20','_hideTimer','_cursor','_doCreateSocket','forEach','_collaborationUIEventService','transformRemoteChangeset','use','_draw','bottom','currentUsage','hovered','totalFormulasToCalculate','YUUMI_UNABLE_LOAD_URL','ColorKit','collaboration.single-unit.warning','collab-client.tooltip.reconnect','deepClone','post','reason','arc','clipPath','pipe','mergeOverrideWithDependencies','Module','isActive','IRemoteInstanceService','runId','LOCAL_CACHE_INTERVAL_KEY','getRenderById','_currentUsage','application/json','_shapes','get','getSheetBySheetId','RefRangeService','SUBMIT_CHANGESET_TIMEOUT','_revisionService','1919658JnmKpJ','idSuffix','UniverCollaborationClientUIPlugin','DocCollaborationEntity','_cursorShapes','REDEMPTION_CODE_FULLY_REDEEMED','FromArray','_getSheetObject','_collabCursorController','_beforeCloseService','none','_collaborationSessionService','_scheduleHeartbeat','isArray','_drawTextRange','DesktopCollaborationStatusDisplayController','init','_docSkeletonManagerService','_initCommandExecutedListener','_unitOnClients','length','redoState','selections','asObservable','UNIVER_DOC','eventID','with','getFocusedUnit','collabCursorState$','createIdentifier','NOT_FOUND','hide','getViewport','Disposable','_color','next','/universer-api/license/formula/limit/done','_lastResponseTimestamp','_initUserListener','YUUMI_NO_CUBOID_FOR_QUESTION','CollaborationEvent','_drawRectRange','_backgroundColor','purple.300','contains','ILogService','Rectangle','setUndoRedoMutationParamsCache','ACTIVE_UNIT_EVENT_CHANNEL','getFormulaLimitStatusUrl','getValue','univer-flex\x20univer-items-center','permission.content','_localeService','substring','subUnitId','handleMoveRange','_updateLocalCursor','_transformService','add','delete','getSheetId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_setupSubUnitSync','[RemoteUniscriptService]:\x20no\x20focused\x20unit','exhaustSavingTask','_collabCursorState$','_initEntityListener','_syncEditingCollabCursorService','range','dispose','_initDependencies','WECHAT_HAS_BEEN_BOUND','_cachedData','20XJMnua','startRow','IDocClipboardService','defIds','#FFF','collaboration.closeRoom','string','currentTheme$','_renderManagerService','RemoveRowCommandId','collabStatus.conflict','storage','UnitStatus','_status$','_scheduleSaving','symbol','addObjects','values','RemoteUniscriptService','setInterval','_initUnhandledRejectionListener','_applyCommand','_initWindowErrorListener','on-line-icon_clip0_910_349','_getSaveTimeout','_initEvent','UniverIcon','SOCKET_FAILED','HTTPService','takeUntil','textRanges','all','toRgbString','SetTextSelectionsOperation','_updateURLWithCurrentState','Shape','throttleTime','saveImage','stageInfo','rgba(255,\x20255,\x20255,\x200.01)','labelPosition','clearInterval','attrs','CHANGESET_REVISION_CONFILICT','lineno','univer-mr-2\x20univer-flex\x20univer-text-xl','then','LocaleService','getVpScrollXYInfoByPosToVp','permission.title','ILocalStorageService','_localStorageService','_roomMembers$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Loading','_entities','ENTITLE_CHAT_LIMIT_EXCEED','DocIMEInputManagerService','moveTo','useRef','LICENSE_MAX_UNITS_EXCEEDED','UNIVER_SHEET','_themeService','setParam','_heartbeatTimer','_collabSessionService','OTHER_CLIENT_EDITING','ENSURE_SNAPSHOT_EXECUTION','backgroundColor','Inject','generateRandomId','lineTo','_showGuardMessage','getSheetObject','getRelativeToViewportCoord','1652116CvnAut','IRenderManagerService','currentSkeleton$','color','IUniverInstanceService','PERMISSION_DENIED','subscribe','TRANSFORM_CHANGE_OBSERVABLE_TYPE','RECT','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_eventUnsubscribe','transformSelections','_univerInstanceService','createElement','CollaborationUIEventService','getColor','onMouseMove','actions','resize','session.will-retry','MOBILE_VERIFY_CODE_MISMATCH','SHEET_VIEWPORT_KEY','[Window\x20Error]:\x20','...','registerRefRange','triggerDblclick','APPLY_REJECT','history','PENDING','_ensureSubject','cursorInfo$','_lastPointer','subunit','UniverInstanceType','connectInjector','addObject','CommandType','assignAColorForMemberID','doc.mutation.rich-text-editing','m1Prime','getCurrent','SetDocZoomRatioOperation','INVITE_CODE_ALREADY_BOUND','CollaborationUIEventId','collaboration.offline-data-not-saved','getOwnPropertyDescriptor','IUIPartsService','Tools','REDEMPTION_USER_NOT_ELIGIBLE','_registerRenderDependencies','DocStateChangeManagerService','_getMergeRange','Vector2','addEventListener','MemberService','_disabled','transformMutationsWithChangeset','_assignedColors','complete','Success','event$','getCoordByCell','_colorAssignService','_dataLoaderService','TEXT','_uploadLog','getRangePointData','getAncestorScale','requireSession','functionsExecutedState','2qTeYGe','disableLocalCache','_handleHeartbeatEvent','VIEW_MAIN','unsubscribe','_docTransformStateCacheService','collabStatus.offline','getCurrentUnitForType','OffLineIcon','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','flatMap','map','_colorIndex','syncEditingCollabCursor','forwardRef','_docTransformIMECacheService','_startDocCollabCursor','transform','enableFrontendLog','_handleJoinEvent','debounceTime','removeEventListener','_updateSubUnitFromURLParams','getTypeOfUnitAdded$','MoveRangeCommandId','ENTITLE_REPORT_LIMIT_EXCEED','_handleHover','/universer-api/frontend/logs','registerRenderModule','setTimeout','getMergeData','unit','serializeRangeWithSheet','getTypeOfUnitDisposed$','displayName','m2Prime','off-line-icon','focused$','isTransformMutationFailure','_anchor','defs','mapTo','CanceledError','_transformPreviousActiveRange','REDEMPTION_INVALID_CODE','APPLY_NON_SEQUENTIAL_REVISION','_handleLeaveEvent','startColumn','_scene','ERROR_AGAIN','handleDeleteRangeMoveUp','/universer-api/license/formula/limit/start','TEXT_RANGE_LAYER_INDEX','_checkCalculationAvailable','width','green.600','_checkAndWaitForCalculationPermission','_render','selection','loadUnit','onPointerLeave$','_drawAnchor','IURLService','path','getUniverSheetInstance','SheetCollabCursorShape','USER_NOT_FOUND','urlChange$','text','USERS_LEAVE','fromEvent','REDEMPTION_CODE_NOT_STARTED','origin','CollaborationDataLoaderController','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_labelPosition','YUUMI_CONNECTOR_URL_NOT_FOUND','fillRule','CURRENT_STATUS_CANNOT_OPERATE','RichTextEditingMutation','code','NOT_COLLAB','_localCacheService','params','getConfig','Subject','APPLY_DUPLICATED','Warning','LOGIN_TOKEN_PROCESSING_FAILED','session.connection-failed','unhandledrejection','onPointerEnter$','_uiPartsService','_setFormulaLimitStatus','_sheetSkeletonManagerService','memberID','measureText','fillText','ENTITLE_INSUFFICIENT_QUOTA','deserializeRangeWithSheet','mutations','min','cursorInfo','_entityInit$','pluginName','DATA_SOURCE_TOO_LARGE','COMPLETION_FINISHED','[CollaborationDataLoaderController]','trim','YUUMI_ALL_TABLES_IS_INVALID','handleIRemoveCol','status$','filter','saveTaskMap','_onRefRangeChange','push','INTERNAL_ERROR','currentColor','newValue','_transformUndoRedoStack','EMAIL_HAS_BEEN_BOUND','findNodePositionByCharIndex','setAlpha','catch'];_0x5d04=function(){return _0x4b6ea3;};return _0x5d04();}var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x422fe8,_0x431ea1,_0x513f1f,_0x1e676c)=>{const _0x340ca1=_0x5f0329;for(var _0xdcc7ff=_0x1e676c>0x1?void 0x0:_0x1e676c?Ct(_0x431ea1,_0x513f1f):_0x431ea1,_0x1f75ae=_0x422fe8[_0x340ca1(0x23b)]-0x1,_0x18358b;_0x1f75ae>=0x0;_0x1f75ae--)(_0x18358b=_0x422fe8[_0x1f75ae])&&(_0xdcc7ff=_0x18358b(_0xdcc7ff)||_0xdcc7ff);return _0xdcc7ff;},ce=(_0xf59a03,_0x30fef2)=>(_0x595afd,_0x4e60e8)=>_0x30fef2(_0x595afd,_0x4e60e8,_0xf59a03);let F=class extends a[_0x5f0329(0x3f4)]{constructor(_0x3b3892,_0x61ff62,_0x28ccf5){const _0x45b615=_0x5f0329;super(),_(this,'_entities',new Map()),_(this,_0x45b615(0x369),new I[(_0x45b615(0x357))]()),(this['_univerInstanceService']=_0x3b3892,this['_injector']=_0x61ff62,this['_collabSessionService']=_0x28ccf5,this['_init']());}[_0x5f0329(0x26d)](){const _0x6a2d26=_0x5f0329;super[_0x6a2d26(0x26d)](),this[_0x6a2d26(0x369)][_0x6a2d26(0x2f6)](),this[_0x6a2d26(0x2a8)][_0x6a2d26(0x205)](_0x214f28=>_0x214f28[_0x6a2d26(0x26d)]());}['getCollabCursors$'](_0x18324a){const _0x27c3dd=_0x5f0329;return this[_0x27c3dd(0x2a8)][_0x27c3dd(0x397)](_0x18324a)?this['_entities'][_0x27c3dd(0x222)](_0x18324a)[_0x27c3dd(0x2da)]:this[_0x27c3dd(0x369)][_0x27c3dd(0x217)](I[_0x27c3dd(0x372)](_0x27447c=>_0x27447c['unitID']===_0x18324a),I['switchMap'](_0xe5762e=>_0xe5762e[_0x27c3dd(0x2da)]));}[_0x5f0329(0x1a0)](){const _0x81c95b=_0x5f0329;this[_0x81c95b(0x2c8)][_0x81c95b(0x319)](a['UniverInstanceType'][_0x81c95b(0x2ae)])[_0x81c95b(0x217)](I['takeUntil'](this[_0x81c95b(0x3f8)]))[_0x81c95b(0x2c2)](async _0x4690cc=>{const _0x392370=_0x81c95b,_0x1eb62f=_0x4690cc[_0x392370(0x1cf)](),_0x4fde42=await this[_0x392370(0x3e6)](_0x1eb62f);this[_0x392370(0x369)][_0x392370(0x24a)](_0x4fde42),this[_0x392370(0x2a8)][_0x392370(0x3c7)](_0x1eb62f,_0x4fde42);}),this[_0x81c95b(0x2c8)][_0x81c95b(0x319)](a[_0x81c95b(0x2dd)][_0x81c95b(0x23f)])[_0x81c95b(0x217)](I[_0x81c95b(0x28e)](this[_0x81c95b(0x3f8)]))['pipe'](I[_0x81c95b(0x372)](_0x14ce85=>!_0x14ce85[_0x81c95b(0x1cf)]()[_0x81c95b(0x1c6)]('__')))[_0x81c95b(0x2c2)](async _0x3e447c=>{const _0x371a43=_0x81c95b,_0x571285=_0x3e447c[_0x371a43(0x1cf)](),_0x43358a=await this[_0x371a43(0x312)](_0x571285);this[_0x371a43(0x369)][_0x371a43(0x24a)](_0x43358a),this[_0x371a43(0x2a8)]['set'](_0x571285,_0x43358a);}),I['merge'](this[_0x81c95b(0x2c8)][_0x81c95b(0x323)](a[_0x81c95b(0x2dd)]['UNIVER_DOC']),this[_0x81c95b(0x2c8)][_0x81c95b(0x323)](a[_0x81c95b(0x2dd)][_0x81c95b(0x2ae)]))[_0x81c95b(0x217)](I['takeUntil'](this[_0x81c95b(0x3f8)]))[_0x81c95b(0x2c2)](_0x29cd48=>{const _0x5d1375=_0x81c95b,_0x3fb7da=_0x29cd48[_0x5d1375(0x1cf)](),_0x5dcd33=this['_entities'][_0x5d1375(0x222)](_0x3fb7da);_0x5dcd33&&(_0x5dcd33['dispose'](),this[_0x5d1375(0x2a8)][_0x5d1375(0x263)](_0x3fb7da));});}async[_0x5f0329(0x3e6)](_0x51e696){const _0x3887b8=_0x5f0329,_0x42e83d=await this['_collabSessionService'][_0x3887b8(0x300)](_0x51e696),_0xa8cb2b=this[_0x3887b8(0x180)][_0x3887b8(0x3b7)](ge,_0x51e696,_0x42e83d);return _0xa8cb2b[_0x3887b8(0x237)](),_0xa8cb2b;}async[_0x5f0329(0x312)](_0x14f49e){const _0x288ab4=_0x5f0329,_0x7a1bbe=await this[_0x288ab4(0x2b2)]['requireSession'](_0x14f49e),_0x3e85f9=this[_0x288ab4(0x180)][_0x288ab4(0x3b7)](ve,_0x14f49e,_0x7a1bbe);return _0x3e85f9[_0x288ab4(0x237)](),_0x3e85f9;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),ce(0x2,a['Inject'](u[_0x5f0329(0x3a9)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x4b44dc,_0x13f18c){const _0x4ef707=_0x5f0329;let {radius:_0x361979,width:_0xf37bdb,height:_0x15302b}=_0x13f18c;_0x361979=_0x361979!=null?_0x361979:0x0,_0xf37bdb=_0xf37bdb!=null?_0xf37bdb:0x1e,_0x15302b=_0x15302b!=null?_0x15302b:0x1e;let _0x145c17=0x0,_0x3d989b=0x0,_0x1263b4=0x0;_0x145c17=_0x3d989b=_0x1263b4=Math[_0x4ef707(0x367)](_0x361979,_0xf37bdb/0x2,_0x15302b/0x2),_0x4b44dc[_0x4ef707(0x3dc)](),_0x4b44dc[_0x4ef707(0x2ab)](_0x145c17,0x0),_0x4b44dc[_0x4ef707(0x2b8)](_0xf37bdb-_0x3d989b,0x0),_0x4b44dc[_0x4ef707(0x215)](_0xf37bdb-_0x3d989b,_0x3d989b,_0x3d989b,Math['PI']*0x3/0x2,0x0,!0x1),_0x4b44dc[_0x4ef707(0x2b8)](_0xf37bdb,_0x15302b-_0x1263b4),_0x4b44dc[_0x4ef707(0x215)](_0xf37bdb-_0x1263b4,_0x15302b-_0x1263b4,_0x1263b4,0x0,Math['PI']/0x2,!0x1),_0x4b44dc['lineTo'](0x0,_0x15302b),_0x4b44dc[_0x4ef707(0x2b8)](0x0,_0x145c17),_0x4b44dc[_0x4ef707(0x215)](_0x145c17,_0x145c17,_0x145c17,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4b44dc[_0x4ef707(0x3ae)](),_0x13f18c[_0x4ef707(0x40b)]&&(_0x4b44dc['save'](),_0x4b44dc['fillStyle']=_0x13f18c[_0x4ef707(0x40b)],_0x13f18c[_0x4ef707(0x34f)]===_0x4ef707(0x3bd)?_0x4b44dc['fill'](_0x4ef707(0x3bd)):_0x4b44dc[_0x4ef707(0x40b)](),_0x4b44dc[_0x4ef707(0x1fa)]());}class re extends C[_0x5f0329(0x294)]{constructor(_0x5bf6e3,_0x4b9872){const _0x2d74bf=_0x5f0329;super(_0x5bf6e3,_0x4b9872),_(this,'color'),_(this,_0x2d74bf(0x346)),(this[_0x2d74bf(0x2bf)]=_0x4b9872==null?void 0x0:_0x4b9872[_0x2d74bf(0x2bf)],this[_0x2d74bf(0x346)]=_0x4b9872==null?void 0x0:_0x4b9872[_0x2d74bf(0x346)]);}static[_0x5f0329(0x396)](_0x2a14a9,_0x507bbf){const _0x356f8c=_0x5f0329,{text:_0x1ffd10,color:_0x5af9f4}=_0x507bbf;_0x2a14a9[_0x356f8c(0x394)](),_0x2a14a9['font']=_0x356f8c(0x18d);const _0x2a52e4=_0x2a14a9['measureText'](_0x1ffd10)['width'],_0x30b5ff=Math[_0x356f8c(0x367)](_0x2a52e4+0x2*le,Ue);Ot(_0x2a14a9,{'height':X,'radius':0x4,'width':_0x30b5ff,'fill':_0x5af9f4}),_0x2a14a9[_0x356f8c(0x3af)]=_0x356f8c(0x275);const _0x339eb6=le,_0x57fbaf=X-pt,_0x1e1539=Ue-0x2*le;if(_0x2a52e4>_0x1e1539){let _0x4addd1='',_0x29334e=0x0;for(const _0xa13c0a of _0x1ffd10){const _0x24c90d=_0x2a14a9[_0x356f8c(0x362)](_0xa13c0a)[_0x356f8c(0x338)];if(_0x29334e+_0x24c90d<=_0x1e1539-_0x2a14a9[_0x356f8c(0x362)]('...')[_0x356f8c(0x338)])_0x4addd1+=_0xa13c0a,_0x29334e+=_0x24c90d;else{_0x4addd1+=_0x356f8c(0x2d3);break;}}_0x2a14a9['fillText'](_0x4addd1,_0x339eb6,_0x57fbaf);}else _0x2a14a9[_0x356f8c(0x363)](_0x1ffd10,_0x339eb6,_0x57fbaf);_0x2a14a9['restore']();}[_0x5f0329(0x209)](_0x3289bc){re['drawWith'](_0x3289bc,this);}}const _e=_0x5f0329(0x388),Rt=_0x5f0329(0x3df),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x5f0329(0x298);class Le{constructor(_0x1fea77,_0x13aeb6,_0x122c8,_0x4b8bf4){const _0x40c305=_0x5f0329;_(this,'_shapes',[]),_(this,_0x40c305(0x329),null),_(this,_0x40c305(0x39a),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x40c305(0x2c6),null),(this[_0x40c305(0x203)]=_0x1fea77,this[_0x40c305(0x332)]=_0x13aeb6,this['_docSkeleton']=_0x122c8,this[_0x40c305(0x157)]=_0x4b8bf4,this[_0x40c305(0x33b)]());}set[_0x5f0329(0x159)](_0x26b132){const _0x2f3422=_0x5f0329;_0x26b132?(this['_anchorDot']&&this[_0x2f3422(0x1a4)]['hide'](),this['_textBubble']&&this['_textBubble'][_0x2f3422(0x3da)]()):(this[_0x2f3422(0x1a4)]&&this[_0x2f3422(0x1a4)][_0x2f3422(0x3da)](),this[_0x2f3422(0x39a)]&&this['_textBubble'][_0x2f3422(0x246)]());}['dispose'](){const _0x1e9704=_0x5f0329;for(const _0x2a8b64 of this[_0x1e9704(0x221)])_0x2a8b64[_0x1e9704(0x26d)]();this[_0x1e9704(0x39a)]&&this[_0x1e9704(0x39a)][_0x1e9704(0x26d)](),this['_anchorDot']&&this['_anchorDot'][_0x1e9704(0x26d)](),this[_0x1e9704(0x329)]&&this['_anchor']['dispose'](),this[_0x1e9704(0x2c6)]&&this[_0x1e9704(0x2c6)]();}[_0x5f0329(0x33b)](){const _0x1e7858=_0x5f0329;var _0x137de4;const {_docSkeleton:_0x458f0e,_document:_0x102d9f}=this,{color:_0x443713,name:_0x49f7af,ranges:_0x252137}=this['_cursor'],_0x39e58d=_0x102d9f[_0x1e7858(0x40d)](),{docsLeft:_0x52b44c,docsTop:_0xa6459c}=_0x39e58d,_0x4fd616=new T[(_0x1e7858(0x1dc))](_0x39e58d,_0x458f0e);for(const {startOffset:_0x1fb182,endOffset:_0xb88cc9,rangeType:_0x2750df,segmentId:_0x46858d,segmentPage:_0x1d5891,collapsed:_0xad1f0a,isActive:_0x3b27a2}of _0x252137){const _0x182925=_0x458f0e[_0x1e7858(0x37b)](_0x1fb182,!0x0,_0x46858d,_0x1d5891);let _0x9a033e=_0x458f0e[_0x1e7858(0x37b)](_0xb88cc9,!0x0,_0x46858d,_0x1d5891);if(_0x9a033e==null&&(_0x9a033e=_0x458f0e['findNodePositionByCharIndex'](_0xb88cc9-0x1,!0x1,_0x46858d,_0x1d5891)),_0x3b27a2){const {contentBoxPointGroup:_0x3006c5}=_0x4fd616[_0x1e7858(0x2fe)](_0x9a033e,_0x9a033e);if(_0x3006c5[_0x1e7858(0x23b)]===0x0)continue;this[_0x1e7858(0x33f)](_0x443713,_0x3006c5,_0x52b44c,_0xa6459c,_0x49f7af),this[_0x1e7858(0x2c6)]=this[_0x1e7858(0x31c)]();}if(_0x182925&&_0x9a033e){if(_0x2750df===a[_0x1e7858(0x416)][_0x1e7858(0x2c4)]){const _0x1e9787=new T[(_0x1e7858(0x15a))](_0x39e58d,_0x458f0e),{pointGroup:_0x356bed}=(_0x137de4=_0x1e9787[_0x1e7858(0x2fe)](_0x182925,_0x9a033e))!=null?_0x137de4:{};if(_0x356bed==null||_0x356bed[_0x1e7858(0x23b)]===0x0)continue;this[_0x1e7858(0x250)](_0x443713,_0x356bed,_0x52b44c,_0xa6459c);}else{if(!_0xad1f0a){const {borderBoxPointGroup:_0x2ddf4f}=_0x4fd616[_0x1e7858(0x2fe)](_0x182925,_0x9a033e);if(_0x2ddf4f[_0x1e7858(0x23b)]===0x0)continue;this['_drawTextRange'](_0x443713,_0x2ddf4f,_0x52b44c,_0xa6459c);}}}}}[_0x5f0329(0x33f)](_0x47c36c,_0x2ea1aa,_0x1e4962,_0x200e60,_0xa144a){const _0x49c675=_0x5f0329,_0x247044=this['_getAnchorBounding'](_0x2ea1aa),{left:_0x2b0f2c,top:_0x55baeb,height:_0x5574f6}=_0x247044,_0x1af632=this[_0x49c675(0x18b)](),_0xe74e9f=Nt/_0x1af632,_0x3f1332=new C['Rect'](_e+a[_0x49c675(0x2b7)](H),{'left':_0x2b0f2c+_0x1e4962-_0xe74e9f,'top':_0x55baeb+_0x200e60,'height':_0x5574f6,'width':Dt,'fill':_0x47c36c||C[_0x49c675(0x2cb)](a['COLORS'][_0x49c675(0x16a)],0x0),'strokeWidth':_0xe74e9f,'stroke':Ut,'evented':!0x0});this[_0x49c675(0x329)]=_0x3f1332,this['_scene'][_0x49c675(0x2df)](_0x3f1332,T['TEXT_RANGE_LAYER_INDEX']);const _0xf9976f=new C[(_0x49c675(0x164))](_e+a[_0x49c675(0x2b7)](H),{'left':_0x2b0f2c+_0x1e4962-_0xe74e9f,'top':_0x55baeb+_0x200e60-he/0x2,'height':he,'width':he,'fill':_0x47c36c||C[_0x49c675(0x2cb)](a[_0x49c675(0x404)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x47c36c||C[_0x49c675(0x2cb)](a[_0x49c675(0x404)][_0x49c675(0x16a)],0x0),'evented':!0x1});this[_0x49c675(0x1a4)]=_0xf9976f,this[_0x49c675(0x332)]['addObject'](_0xf9976f,T[_0x49c675(0x336)]);const _0x560296=new re(_e+a['generateRandomId'](H),{'left':_0x2b0f2c+_0x1e4962-_0xe74e9f,'top':_0x55baeb+_0x200e60-X,'text':_0xa144a,'color':_0x47c36c});this['_textBubble']=_0x560296,this['_scene'][_0x49c675(0x2df)](_0x560296,T[_0x49c675(0x336)]),this[_0x49c675(0x159)]=!0x1;}[_0x5f0329(0x31c)](){const _0x5b251d=_0x5f0329,_0x4892cb=this['_anchor'][_0x5b251d(0x35d)][_0x5b251d(0x1e5)](()=>{const _0x1de0e7=_0x5b251d;this[_0x1de0e7(0x159)]=!0x0;}),_0x3667f6=this[_0x5b251d(0x329)][_0x5b251d(0x33e)][_0x5b251d(0x1e5)](()=>{const _0x5d8dda=_0x5b251d;this[_0x5d8dda(0x202)]&&clearTimeout(this[_0x5d8dda(0x202)]),this[_0x5d8dda(0x202)]=setTimeout(()=>{const _0x118939=_0x5d8dda;this[_0x118939(0x159)]=!0x1;},0x7d0);});return()=>{const _0x351567=_0x5b251d;_0x4892cb[_0x351567(0x306)](),_0x3667f6[_0x351567(0x306)]();};}[_0x5f0329(0x235)](_0x55656d,_0x46ec61,_0x1e0548,_0x333fc4){const _0x2d259f=_0x5f0329,_0x14187a=new a[(_0x2d259f(0x20f))](_0x55656d)[_0x2d259f(0x37c)](0.2)['toRgbString'](),_0x3b6a76=new C[(_0x2d259f(0x3b9))](Rt+a[_0x2d259f(0x2b7)](H),{'pointsGroup':_0x46ec61,'fill':_0x14187a||C[_0x2d259f(0x2cb)](a[_0x2d259f(0x404)][_0x2d259f(0x16a)],0.2),'left':_0x1e0548,'top':_0x333fc4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d259f(0x221)][_0x2d259f(0x375)](_0x3b6a76),this[_0x2d259f(0x332)][_0x2d259f(0x2df)](_0x3b6a76,T['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x29a282,_0x2cc6bf,_0x1203d0,_0x1b1f74){const _0x4bc093=_0x5f0329,_0x502f1a=new a[(_0x4bc093(0x20f))](_0x29a282)[_0x4bc093(0x37c)](0.2)[_0x4bc093(0x291)](),_0xfcca82=new C[(_0x4bc093(0x3b9))](bt+a['generateRandomId'](H),{'pointsGroup':_0x2cc6bf,'fill':_0x502f1a||C[_0x4bc093(0x2cb)](a[_0x4bc093(0x404)][_0x4bc093(0x16a)],0.2),'left':_0x1203d0,'top':_0x1b1f74,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4bc093(0x221)][_0x4bc093(0x375)](_0xfcca82),this[_0x4bc093(0x332)][_0x4bc093(0x2df)](_0xfcca82,T[_0x4bc093(0x336)]);}[_0x5f0329(0x169)](_0x104989){const _0x35a0d4=_0x104989[0x0],_0x8b9b02=_0x35a0d4[0x0],_0x5d4599=_0x35a0d4[0x2],{x:_0x16520c,y:_0x153a72}=_0x8b9b02,{x:_0x474819,y:_0x259204}=_0x5d4599;return{'left':_0x16520c,'top':_0x153a72,'width':_0x474819-_0x16520c,'height':_0x259204-_0x153a72};}['_getScale'](){const _0x21569=_0x5f0329,{scaleX:_0xc77579,scaleY:_0x21cc1d}=this['_scene'][_0x21569(0x2ff)]();return Math[_0x21569(0x37f)](_0xc77579,_0x21cc1d);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x329390,_0x2a6c3a,_0x28ed09,_0x37a37d)=>{for(var _0x4c1661=_0x37a37d>0x1?void 0x0:_0x37a37d?Lt(_0x2a6c3a,_0x28ed09):_0x2a6c3a,_0xdc0470=_0x329390['length']-0x1,_0x4b3f85;_0xdc0470>=0x0;_0xdc0470--)(_0x4b3f85=_0x329390[_0xdc0470])&&(_0x4c1661=_0x4b3f85(_0x4c1661)||_0x4c1661);return _0x4c1661;},q=(_0x3f702f,_0x2a3cf3)=>(_0x112e4f,_0xfcc84c)=>_0x2a3cf3(_0x112e4f,_0xfcc84c,_0x3f702f);let Ee=class extends a[_0x5f0329(0x3f4)]{constructor(_0x1b7e93,_0x37443a,_0x3faa44,_0x43fca6,_0x18f84f){const _0x5a37cb=_0x5f0329;super(),_(this,_0x5a37cb(0x22b),[]),_(this,_0x5a37cb(0x1b4),[]),(this['_context']=_0x1b7e93,this[_0x5a37cb(0x238)]=_0x37443a,this[_0x5a37cb(0x22f)]=_0x3faa44,this[_0x5a37cb(0x3b8)]=_0x43fca6,this['_themeService']=_0x18f84f,this[_0x5a37cb(0x1a0)]());}['_init'](){const _0x483ae9=_0x5f0329,_0x48106f=this['_context'][_0x483ae9(0x3b6)],_0x386eb6=this[_0x483ae9(0x238)];this[_0x483ae9(0x385)](I[_0x483ae9(0x15d)]([this[_0x483ae9(0x22f)][_0x483ae9(0x163)](_0x48106f),this[_0x483ae9(0x2af)][_0x483ae9(0x278)]])[_0x483ae9(0x217)]($[_0x483ae9(0x30d)](([_0x1c4feb,_0x2f4643])=>({'skeleton':_0x386eb6['getSkeleton'](),'cursors':[..._0x1c4feb[_0x483ae9(0x282)]()][_0x483ae9(0x30c)](_0x1caa78=>({..._0x1caa78,'color':this['_themeService'][_0x483ae9(0x3d0)](_0x1caa78[_0x483ae9(0x2bf)])}))})))['subscribe'](_0x1db8c9=>{const _0x3e86cd=_0x483ae9;if(this[_0x3e86cd(0x153)](),_0x1db8c9){const {skeleton:_0x26fa2f,cursors:_0x85abc7}=_0x1db8c9;this[_0x3e86cd(0x39f)](_0x26fa2f,_0x85abc7);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x5f0329(0x39f)](_0x3b6e5e,_0x57abb4){const _0x2b45c9=_0x5f0329,{scene:_0x589460,mainComponent:_0x30c69b}=this[_0x2b45c9(0x40e)],_0x51c582=_0x57abb4['map'](_0x5318b0=>new Le(_0x5318b0,_0x589460,_0x3b6e5e,_0x30c69b));this[_0x2b45c9(0x22b)]=_0x51c582,this[_0x2b45c9(0x1b4)]=_0x57abb4;}[_0x5f0329(0x19d)](){const _0x3fdda1=_0x5f0329;this[_0x3fdda1(0x153)]();const {scene:_0x29c44c,mainComponent:_0x230849}=this['_context'],_0x1a0247=this['_docSkeletonManagerService']['getSkeleton'](),_0x5cf9f8=this[_0x3fdda1(0x1b4)][_0x3fdda1(0x30d)](_0x23c15a=>new Le(_0x23c15a,_0x29c44c,_0x1a0247,_0x230849));this[_0x3fdda1(0x22b)]=_0x5cf9f8;}[_0x5f0329(0x153)](){const _0x46e4ef=_0x5f0329;this[_0x46e4ef(0x22b)][_0x46e4ef(0x205)](_0x3f86e4=>_0x3f86e4['dispose']()),this[_0x46e4ef(0x22b)]=[];}[_0x5f0329(0x239)](){const _0x5d5a35=_0x5f0329,_0x473674=[T[_0x5d5a35(0x2e5)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x455060=>{const _0xb972c=_0x5d5a35;_0x473674[_0xb972c(0x1ac)](_0x455060['id'])&&_0x455060[_0xb972c(0x355)][_0xb972c(0x3b6)]===this[_0xb972c(0x40e)][_0xb972c(0x3b6)]&&this[_0xb972c(0x19d)]();}));}[_0x5f0329(0x17b)](){const _0x571ca9=_0x5f0329;this['disposeWithMe'](a['fromEventSubject'](this[_0x571ca9(0x40e)][_0x571ca9(0x3ce)]['onTransformChange$'])[_0x571ca9(0x217)]($[_0x571ca9(0x372)](_0x5aa027=>_0x5aa027[_0x571ca9(0x1ae)]===C[_0x571ca9(0x2c3)][_0x571ca9(0x2ce)]),$[_0x571ca9(0x295)](0x10))[_0x571ca9(0x2c2)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x5f0329(0x2b6)](V['DocSkeletonManagerService'])),q(0x2,a[_0x5f0329(0x2b6)](F)),q(0x3,a[_0x5f0329(0x1b7)]),q(0x4,a[_0x5f0329(0x2b6)](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;function _0x38d6(_0x288b37,_0x25ce15){_0x288b37=_0x288b37-0x140;const _0x5d04ce=_0x5d04();let _0x38d6b2=_0x5d04ce[_0x288b37];return _0x38d6b2;}class je extends C['Shape']{constructor(_0x6300c6,_0x413e79){const _0x5c569c=_0x5f0329;super(_0x6300c6,_0x413e79),_(this,_0x5c569c(0x249)),_(this,_0x5c569c(0x152),!0x1),_(this,_0x5c569c(0x140)),_(this,_0x5c569c(0x3e2),''),_(this,_0x5c569c(0x34d),_0x5c569c(0x15e)),_(this,_0x5c569c(0x251)),(_0x413e79&&this[_0x5c569c(0x3d2)](_0x413e79),this[_0x5c569c(0x35d)][_0x5c569c(0x1e5)](()=>this[_0x5c569c(0x3d2)]({'hovered':!0x0})),this['onPointerLeave$'][_0x5c569c(0x1e5)](()=>this[_0x5c569c(0x3d2)]({'hovered':!0x1})));}['setShapeProps'](_0x1fc3f6){const _0x2e9d40=_0x5f0329;var _0x28e388,_0x5b9bff,_0x4ca670,_0x4c9a11,_0x5ed5ae,_0x5279f7;this['_color']=(_0x28e388=_0x1fc3f6['color'])!=null?_0x28e388:this[_0x2e9d40(0x249)],this[_0x2e9d40(0x152)]=(_0x5b9bff=_0x1fc3f6[_0x2e9d40(0x20c)])!=null?_0x5b9bff:this[_0x2e9d40(0x152)],this['_range']=(_0x4ca670=_0x1fc3f6['range'])!=null?_0x4ca670:this[_0x2e9d40(0x140)],this['_name']=(_0x4c9a11=_0x1fc3f6['name'])!=null?_0x4c9a11:this[_0x2e9d40(0x3e2)],this[_0x2e9d40(0x34d)]=(_0x5ed5ae=_0x1fc3f6[_0x2e9d40(0x299)])!=null?_0x5ed5ae:this[_0x2e9d40(0x34d)],this[_0x2e9d40(0x251)]=(_0x5279f7=_0x1fc3f6[_0x2e9d40(0x2b5)])!=null?_0x5279f7:this[_0x2e9d40(0x251)],this[_0x2e9d40(0x1d1)]({'width':_0x1fc3f6[_0x2e9d40(0x338)],'height':_0x1fc3f6[_0x2e9d40(0x380)]});}[_0x5f0329(0x2cc)](_0x13f0e9){const _0x3bbbc4=_0x5f0329,{row:_0x205275,column:_0x3fae64}=_0x13f0e9;if(_0x205275>=this[_0x3bbbc4(0x140)][_0x3bbbc4(0x272)]&&_0x205275<=this[_0x3bbbc4(0x140)][_0x3bbbc4(0x393)]&&_0x3fae64>=this['_range'][_0x3bbbc4(0x331)]&&_0x3fae64<=this[_0x3bbbc4(0x140)][_0x3bbbc4(0x1e8)]){this[_0x3bbbc4(0x3d2)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5f0329(0x2d5)](_0x5d945d){return!0x1;}['_draw'](_0x5e2f1c){const _0xc94ced=_0x5f0329;C[_0xc94ced(0x164)][_0xc94ced(0x396)](_0x5e2f1c,{'width':this[_0xc94ced(0x338)],'height':this[_0xc94ced(0x380)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc94ced(0x251)]}),this[_0xc94ced(0x152)]&&(_0x5e2f1c[_0xc94ced(0x394)](),_0x5e2f1c[_0xc94ced(0x313)](0x1,0x0,0x0,0x1,this[_0xc94ced(0x338)],this[_0xc94ced(0x34d)]===_0xc94ced(0x20a)?0x0:-X),re[_0xc94ced(0x396)](_0x5e2f1c,{'text':this['_name'],'color':this[_0xc94ced(0x249)]}),_0x5e2f1c[_0xc94ced(0x1fa)]());}}var wt=Object[_0x5f0329(0x2e9)],yt=(_0x585c8a,_0x52f7e9,_0x469347,_0xa41eb6)=>{const _0x3c3a44=_0x5f0329;for(var _0x5ef895=_0xa41eb6>0x1?void 0x0:_0xa41eb6?wt(_0x52f7e9,_0x469347):_0x52f7e9,_0x502e83=_0x585c8a[_0x3c3a44(0x23b)]-0x1,_0x333bd6;_0x502e83>=0x0;_0x502e83--)(_0x333bd6=_0x585c8a[_0x502e83])&&(_0x5ef895=_0x333bd6(_0x5ef895)||_0x5ef895);return _0x5ef895;},ue=(_0x4f0562,_0x15b14a)=>(_0x5757d9,_0x51336e)=>_0x15b14a(_0x5757d9,_0x51336e,_0x4f0562);const $t=0x1389;let Ce=class extends a[_0x5f0329(0x3f4)]{constructor(_0x1f0f2e,_0x13483f,_0x5341e3,_0x5416d8){const _0x5cd777=_0x5f0329;super(),_(this,'_cursors',new Set()),_(this,_0x5cd777(0x2db),null),(this[_0x5cd777(0x40e)]=_0x1f0f2e,this[_0x5cd777(0x360)]=_0x13483f,this['_collabCursorController']=_0x5341e3,this[_0x5cd777(0x2af)]=_0x5416d8,this[_0x5cd777(0x1a0)]());}[_0x5f0329(0x1a0)](){const _0x5319d8=_0x5f0329;this['_sheetSkeletonManagerService'][_0x5319d8(0x2be)][_0x5319d8(0x217)]($[_0x5319d8(0x28e)](this[_0x5319d8(0x3f8)]),$[_0x5319d8(0x188)](_0x37d310=>{const _0x1e646a=_0x5319d8;if(_0x37d310){const _0x4d4723=_0x37d310[_0x1e646a(0x1a3)];return I[_0x1e646a(0x15d)](this[_0x1e646a(0x22f)][_0x1e646a(0x163)](this[_0x1e646a(0x40e)]['unitId']),this[_0x1e646a(0x2af)][_0x1e646a(0x278)])[_0x1e646a(0x217)]($[_0x1e646a(0x30d)](([_0x588355,_0x523060])=>{const _0x3411b1=_0x1e646a,_0x474389=new Map();return _0x588355[_0x3411b1(0x205)]((_0x291ec7,_0x2ebb36)=>{const _0x3e2697=_0x3411b1;if(_0x291ec7[_0x3e2697(0x1b0)]===_0x4d4723){const _0x47f321={..._0x291ec7};_0x47f321[_0x3e2697(0x2bf)]=this[_0x3e2697(0x2af)]['getColorFromTheme'](_0x291ec7[_0x3e2697(0x2bf)]),_0x474389['set'](_0x2ebb36,_0x47f321);}}),{'skeleton':_0x37d310,'cursors':_0x474389};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x5319d8(0x2c2)](({skeleton:_0x490f85,cursors:_0x121917})=>{const _0x3ecb78=_0x5319d8;this[_0x3ecb78(0x153)](),_0x490f85&&this[_0x3ecb78(0x39f)](_0x490f85,_0x121917);}),this['_sheetSkeletonManagerService'][_0x5319d8(0x2be)]['subscribe'](_0x4c3cd3=>{const _0x2502e8=_0x5319d8;if(_0x4c3cd3==null)return;const {skeleton:_0x633ebf}=_0x4c3cd3,{scene:_0x185c72}=this['_context'];_0x185c72['onPointerMove$']['subscribeEvent'](a[_0x2502e8(0x1fc)](_0x3d162e=>{const _0x47cd4d=_0x2502e8;var _0x2255ba,_0x39b8ac;const {offsetX:_0x571012,offsetY:_0xbc4547}=_0x3d162e,{x:_0x3b4ad8,y:_0x16786d}=_0x185c72[_0x47cd4d(0x2bb)](C['Vector2'][_0x47cd4d(0x22d)]([_0x571012,_0xbc4547])),{scaleX:_0x5a36fc,scaleY:_0x3a7cde}=_0x185c72[_0x47cd4d(0x2ff)](),_0x56d833=_0x185c72[_0x47cd4d(0x247)](C[_0x47cd4d(0x2d1)][_0x47cd4d(0x305)]),_0x5ef7bf=_0x185c72[_0x47cd4d(0x2a1)](C[_0x47cd4d(0x2f0)][_0x47cd4d(0x22d)]([_0x3b4ad8,_0x16786d]),_0x56d833),_0x29779d=_0x633ebf[_0x47cd4d(0x151)](_0x571012,_0xbc4547,_0x5a36fc,_0x3a7cde,_0x5ef7bf);((_0x2255ba=this['_lastPointer'])==null?void 0x0:_0x2255ba[_0x47cd4d(0x3dd)])===_0x29779d[_0x47cd4d(0x3dd)]&&((_0x39b8ac=this[_0x47cd4d(0x2db)])==null?void 0x0:_0x39b8ac[_0x47cd4d(0x1e4)])===_0x29779d[_0x47cd4d(0x1e4)]||this['_cursors']['forEach'](_0x35a669=>{const _0x1dac24=_0x47cd4d;_0x35a669[_0x1dac24(0x2cc)](_0x29779d);});},0x64));});}[_0x5f0329(0x39f)](_0x308d31,_0x2f825b){const _0x479ada=_0x5f0329;var _0x5a6534;const _0xb8a2e9=(_0x5a6534=this[_0x479ada(0x360)][_0x479ada(0x2e4)]())==null?void 0x0:_0x5a6534[_0x479ada(0x1ab)];if(!_0xb8a2e9)return;const _0x55001f=this[_0x479ada(0x22e)]();if(!_0x55001f)return;this['_cursors']['forEach'](_0x4b2fb8=>{const _0x2b5f63=_0x479ada;_0x4b2fb8[_0x2b5f63(0x179)]();});const {scene:_0x2dc4fb}=_0x55001f,_0x8c3769=xt(Array[_0x479ada(0x3cb)](_0x2f825b[_0x479ada(0x282)]()))[_0x479ada(0x30d)](_0x14631f=>{const _0xeee61b=_0x479ada,{color:_0x51483a,range:_0x39b15b,name:_0x46a4f8,selection:_0x33b1d3,sheetID:_0x228f4d}=_0x14631f,{startColumn:_0x418c26,startRow:_0x6a9224,endColumn:_0xd365a0,endRow:_0x1c9598}=_0x39b15b,_0x51a7ff=J[_0xeee61b(0x2f9)](_0x6a9224,_0x418c26,_0x2dc4fb,_0xb8a2e9),_0x53663d=J[_0xeee61b(0x2f9)](_0x1c9598,_0xd365a0,_0x2dc4fb,_0xb8a2e9),{columnHeaderHeightAndMarginTop:_0x2259bd}=_0xb8a2e9,{startX:_0x1a6ca9,startY:_0x2ab560}=_0x51a7ff,{endX:_0x204504,endY:_0x5bccea}=_0x53663d,_0x23fa05=_0x204504-_0x1a6ca9,_0x592358=_0x5bccea-_0x2ab560,_0x542b06={'labelPosition':_0x2ab560-_0x2259bd>=X?_0xeee61b(0x15e):_0xeee61b(0x20a),'sheetID':_0x228f4d,'range':_0x39b15b,'color':_0x51483a,'name':_0x46a4f8,'selection':_0x33b1d3,'left':_0x1a6ca9,'top':_0x2ab560,'width':_0x23fa05,'height':_0x592358,'evented':!0x1,'zIndex':$t};return new je(_0x46a4f8,_0x542b06);});_0x2dc4fb[_0x479ada(0x281)](_0x8c3769,At),this[_0x479ada(0x1b4)]=new Set(_0x8c3769);}[_0x5f0329(0x153)](){const _0x5763c8=_0x5f0329;var _0x3c0b5e;(_0x3c0b5e=this[_0x5763c8(0x1b4)])==null||_0x3c0b5e['forEach'](_0x59fb85=>_0x59fb85[_0x5763c8(0x26d)]());}['_getSheetObject'](){const _0x151972=_0x5f0329;return J[_0x151972(0x2ba)](this['_context'][_0x151972(0x321)],this[_0x151972(0x40e)]);}};Ce=yt([ue(0x1,a[_0x5f0329(0x2b6)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x5f0329(0x2b6)](F)),ue(0x3,a[_0x5f0329(0x2b6)](a['ThemeService']))],Ce);function xt(_0x1ac203){const _0x1b3ab8=_0x5f0329,_0x510ded=new Map();return _0x1ac203[_0x1b3ab8(0x205)](_0x2f500c=>{const _0x353a01=_0x1b3ab8;if(_0x510ded['has'](_0x2f500c['selection'])){const _0x132518=_0x510ded['get'](_0x2f500c[_0x353a01(0x33c)]);_0x132518['name']+=',\x20'+_0x2f500c[_0x353a01(0x3d6)];}else _0x510ded[_0x353a01(0x3c7)](_0x2f500c[_0x353a01(0x33c)],_0x2f500c);}),Array[_0x1b3ab8(0x3cb)](_0x510ded[_0x1b3ab8(0x282)]());}var Bt=Object[_0x5f0329(0x2e9)],Ft=(_0x2e18bd,_0x442e73,_0x4035e7,_0x2ea9a6)=>{const _0x38abe3=_0x5f0329;for(var _0x2c99f0=_0x2ea9a6>0x1?void 0x0:_0x2ea9a6?Bt(_0x442e73,_0x4035e7):_0x442e73,_0x338502=_0x2e18bd[_0x38abe3(0x23b)]-0x1,_0x267d10;_0x338502>=0x0;_0x338502--)(_0x267d10=_0x2e18bd[_0x338502])&&(_0x2c99f0=_0x267d10(_0x2c99f0)||_0x2c99f0);return _0x2c99f0;},y=(_0x4e1eb5,_0x2222c6)=>(_0x2012f1,_0x448bab)=>_0x2222c6(_0x2012f1,_0x448bab,_0x4e1eb5);let Z=class extends a[_0x5f0329(0x248)]{constructor(_0x124f00,_0x216cc9,_0x277f44,_0x1d6ede,_0x969709,_0x22d0ec){const _0x3e2dd2=_0x5f0329;super(),this[_0x3e2dd2(0x230)]=_0x124f00,this[_0x3e2dd2(0x354)]=_0x216cc9,this[_0x3e2dd2(0x206)]=_0x277f44,this[_0x3e2dd2(0x3d7)]=_0x1d6ede,this['_notificationService']=_0x969709,this[_0x3e2dd2(0x25c)]=_0x22d0ec,this['_setupBeforeClosingHandler'](),this[_0x3e2dd2(0x28a)]();}['_setupBeforeClosingHandler'](){const _0x33b614=_0x5f0329;this[_0x33b614(0x385)](this[_0x33b614(0x230)][_0x33b614(0x19c)](()=>{const _0x50d6c2=_0x33b614;if(this['_localCacheService']['saveTaskMap'][_0x50d6c2(0x1ba)])return this[_0x50d6c2(0x25c)]['t'](_0x50d6c2(0x2e8));}));}['_initEvent'](){const _0x112992=_0x5f0329;this[_0x112992(0x385)](this[_0x112992(0x206)][_0x112992(0x2f8)]['subscribe'](_0x20812d=>{const _0x536873=_0x112992;_0x20812d['id']===u[_0x536873(0x2e7)][_0x536873(0x2b3)]&&this[_0x536873(0x3d7)][_0x536873(0x3da)]({'type':p[_0x536873(0x172)][_0x536873(0x359)],'content':this[_0x536873(0x25c)]['t'](_0x536873(0x210))}),_0x20812d['id']===u['CollaborationUIEventId'][_0x536873(0x3a7)]&&this['_messageService'][_0x536873(0x3da)]({'type':p['MessageType']['Warning'],'content':this[_0x536873(0x25c)]['t']('collaboration.closeRoom')}),_0x20812d['id']===u[_0x536873(0x2e7)][_0x536873(0x2c1)]&&this['_notificationService'][_0x536873(0x3da)]({'title':this[_0x536873(0x25c)]['t'](_0x536873(0x2a2)),'content':this[_0x536873(0x25c)]['t'](_0x536873(0x25b)),'type':_0x536873(0x146),'duration':0x0}),_0x20812d['id']===u[_0x536873(0x2e7)]['CONFLICT']&&this['_messageService'][_0x536873(0x3da)]({'type':p[_0x536873(0x172)][_0x536873(0x382)],'content':this[_0x536873(0x25c)]['t'](_0x536873(0x276))+'('+_0x20812d[_0x536873(0x403)]+')'}),_0x20812d['id']===u[_0x536873(0x2e7)][_0x536873(0x3aa)]&&this[_0x536873(0x3d7)][_0x536873(0x3da)]({'type':p[_0x536873(0x172)][_0x536873(0x359)],'content':this[_0x536873(0x25c)]['t'](_0x20812d[_0x536873(0x403)]||'')}),_0x20812d['id']===u['CollaborationUIEventId'][_0x536873(0x17a)]&&this[_0x536873(0x3d7)][_0x536873(0x3da)]({'type':p[_0x536873(0x172)][_0x536873(0x359)],'content':this[_0x536873(0x25c)]['t'](_0x536873(0x2cf))}),_0x20812d['id']===u['CollaborationUIEventId'][_0x536873(0x28c)]&&this['_messageService']['show']({'type':p[_0x536873(0x172)][_0x536873(0x382)],'content':this['_localeService']['t'](_0x536873(0x35b))}),_0x20812d['id']===u[_0x536873(0x2e7)][_0x536873(0x225)]&&this['_messageService']['show']({'type':p[_0x536873(0x172)][_0x536873(0x382)],'content':this[_0x536873(0x25c)]['t'](_0x536873(0x1d0))});}));}};Z=Ft([y(0x0,O[_0x5f0329(0x1c9)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x2ca)])),y(0x3,O[_0x5f0329(0x14a)]),y(0x4,O[_0x5f0329(0x3b0)]),y(0x5,a[_0x5f0329(0x2b6)](a['LocaleService']))],Z);var jt=Object[_0x5f0329(0x2e9)],kt=(_0x34ab3e,_0x506ea8,_0x1a1d0b,_0x1f5edc)=>{const _0x264ed3=_0x5f0329;for(var _0x5ceacf=_0x1f5edc>0x1?void 0x0:_0x1f5edc?jt(_0x506ea8,_0x1a1d0b):_0x506ea8,_0x4d9b4f=_0x34ab3e[_0x264ed3(0x23b)]-0x1,_0x133d28;_0x4d9b4f>=0x0;_0x4d9b4f--)(_0x133d28=_0x34ab3e[_0x4d9b4f])&&(_0x5ceacf=_0x133d28(_0x5ceacf)||_0x5ceacf);return _0x5ceacf;},z=(_0x191a53,_0x31ed1b)=>(_0xdce3cf,_0x5a9570)=>_0x31ed1b(_0xdce3cf,_0x5a9570,_0x191a53);let Q=class extends a[_0x5f0329(0x248)]{constructor(_0x15080e,_0x333564,_0x31e386,_0x263faf){const _0xea7b21=_0x5f0329;super(),_(this,_0xea7b21(0x141)),(this[_0xea7b21(0x180)]=_0x15080e,this['_httpService']=_0x333564,this[_0xea7b21(0x181)]=_0x31e386,this[_0xea7b21(0x232)]=_0x263faf,this[_0xea7b21(0x1a0)]());}['_init'](){const _0xc7592d=_0x5f0329;this['_initWindowErrorListener'](),this[_0xc7592d(0x285)](),this[_0xc7592d(0x38a)](),this[_0xc7592d(0x24d)]();}[_0x5f0329(0x24d)](){const _0x240304=_0x5f0329;this[_0x240304(0x385)](this[_0x240304(0x232)][_0x240304(0x14f)][_0x240304(0x2c2)](_0x2e1edb=>{const _0x4b11ea=_0x240304;this[_0x4b11ea(0x141)]=_0x2e1edb==null?void 0x0:_0x2e1edb[_0x4b11ea(0x361)];}));}[_0x5f0329(0x287)](){const _0xab8df0=_0x5f0329,_0x2516cf=_0x3dcf6b=>{const _0xb06ccd=_0x38d6;var _0x5259cd;this['_uploadLog'](_0xb06ccd(0x146),_0xb06ccd(0x2d2)+_0x3dcf6b[_0xb06ccd(0x1e3)]+_0xb06ccd(0x201)+_0x3dcf6b[_0xb06ccd(0x16f)]+':'+_0x3dcf6b[_0xb06ccd(0x29d)]+':'+_0x3dcf6b['colno']+'\x0a'+(((_0x5259cd=_0x3dcf6b['error'])==null?void 0x0:_0x5259cd[_0xb06ccd(0x16c)])||''));};window[_0xab8df0(0x2f1)]('error',_0x2516cf),this['disposeWithMe'](()=>{const _0x5574b8=_0xab8df0;window[_0x5574b8(0x317)](_0x5574b8(0x146),_0x2516cf);});}[_0x5f0329(0x285)](){const _0x425e9c=_0x5f0329,_0x3d44e4=_0x555d11=>{const _0x42759b=_0x38d6;this[_0x42759b(0x2fd)]('error',_0x42759b(0x1b9)+_0x555d11[_0x42759b(0x214)]);};window['addEventListener'](_0x425e9c(0x35c),_0x3d44e4),this['disposeWithMe'](()=>{const _0x16f20d=_0x425e9c;window['removeEventListener'](_0x16f20d(0x35c),_0x3d44e4);});}['_monkeyPatchLogService'](){const _0xd5b9fc=_0x5f0329,_0x4fcea3=this[_0xd5b9fc(0x181)][_0xd5b9fc(0x146)][_0xd5b9fc(0x178)](this[_0xd5b9fc(0x181)]);this[_0xd5b9fc(0x181)]['error']=(..._0x2d9754)=>{const _0x29dc8c=_0xd5b9fc,_0x204bfb=_0x2d9754[_0x29dc8c(0x30d)](_0x1de0d7=>_0x1de0d7 instanceof Error?_0x1de0d7[_0x29dc8c(0x1e3)]+'\x0a'+_0x1de0d7[_0x29dc8c(0x16c)]:String(_0x1de0d7))[_0x29dc8c(0x194)]('\x20');this['_uploadLog'](_0x29dc8c(0x146),'[LogService\x20Error]:\x20'+_0x204bfb),_0x4fcea3(..._0x2d9754);},this[_0xd5b9fc(0x385)](()=>{const _0x4ac45e=_0xd5b9fc;this[_0x4ac45e(0x181)][_0x4ac45e(0x146)]=_0x4fcea3;});}[_0x5f0329(0x2fd)](_0x15ba61,_0x47f90f){const _0x158034=_0x5f0329;try{const _0x5d12a7={'userId':this[_0x158034(0x141)],'logLabel':_0x15ba61,'content':_0x47f90f};this[_0x158034(0x190)][_0x158034(0x213)](_0x158034(0x31d),{'body':_0x5d12a7})[_0x158034(0x37d)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a['Injector'])),z(0x1,a[_0x5f0329(0x2b6)](x[_0x5f0329(0x28d)])),z(0x2,a['ILogService']),z(0x3,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x3a9)]))],Q);const Yt=_0x5f0329(0x156),Me={};var Ht=Object[_0x5f0329(0x2e9)],Wt=(_0x4150ec,_0x482cba,_0x528eb7,_0x20b8e5)=>{const _0x1e7cd2=_0x5f0329;for(var _0x265cd2=_0x20b8e5>0x1?void 0x0:_0x20b8e5?Ht(_0x482cba,_0x528eb7):_0x482cba,_0x204487=_0x4150ec[_0x1e7cd2(0x23b)]-0x1,_0x2ea741;_0x204487>=0x0;_0x204487--)(_0x2ea741=_0x4150ec[_0x204487])&&(_0x265cd2=_0x2ea741(_0x265cd2)||_0x265cd2);return _0x265cd2;},Ae=(_0x118071,_0x80c551)=>(_0xaa347c,_0x54c511)=>_0x80c551(_0xaa347c,_0x54c511,_0x118071);let ee=class{constructor(_0x1e053a,_0x349d23){const _0x544ba4=_0x5f0329;this[_0x544ba4(0x261)]=_0x1e053a,this['_renderManagerService']=_0x349d23;}[_0x5f0329(0x1b5)](_0x53c2d8){const _0x48a4b7=_0x5f0329;this['_transformUndoRedoStack'](_0x53c2d8),this[_0x48a4b7(0x32d)](_0x53c2d8);}[_0x5f0329(0x207)](_0xf11ed8){const _0x4a6dbb=_0x5f0329,{unitID:_0x3ea70d}=_0xf11ed8,_0x27bb08=this['_renderManagerService'][_0x4a6dbb(0x21e)](_0x3ea70d)[_0x4a6dbb(0x241)](T[_0x4a6dbb(0x2aa)]),{redoCache:_0x306f62}=_0x27bb08['getUndoRedoMutationParamsCache']();if(_0x306f62[_0x4a6dbb(0x23b)]===0x0)return _0xf11ed8;let _0x54303a=a[_0x4a6dbb(0x2eb)][_0x4a6dbb(0x212)](_0xf11ed8['mutations'][0x0]);for(let _0x2349ab=0x0;_0x2349ab<_0x306f62['length'];_0x2349ab++){const _0x489948={'id':_0x4a6dbb(0x2e2),'params':{..._0x306f62[_0x2349ab]}},_0x305db1=this[_0x4a6dbb(0x261)][_0x4a6dbb(0x3fd)](_0x54303a,_0x489948,!0x1);if(g['isTransformMutationFailure'](_0x305db1))throw _0x305db1[_0x4a6dbb(0x146)];_0x54303a=_0x305db1['m1Prime'];}return{...a[_0x4a6dbb(0x2eb)][_0x4a6dbb(0x212)](_0xf11ed8),'mutations':[_0x54303a]};}[_0x5f0329(0x379)](_0x38494b){const _0x3059ae=_0x5f0329,{unitID:_0x1fd914}=_0x38494b,_0xac32c4=this['_renderManagerService'][_0x3059ae(0x21e)](_0x1fd914)[_0x3059ae(0x241)](T['DocIMEInputManagerService']),{undoCache:_0x5db27a,redoCache:_0x5580a3}=_0xac32c4['getUndoRedoMutationParamsCache']();if(_0x5db27a[_0x3059ae(0x23b)]===0x0||_0x5580a3[_0x3059ae(0x23b)]===0x0)return;const _0x3d04cc=[],_0xab7afb=[];let _0x4fffeb=a['Tools'][_0x3059ae(0x212)](_0x38494b[_0x3059ae(0x366)][0x0]),_0x32d6a6=a[_0x3059ae(0x2eb)][_0x3059ae(0x212)](_0x38494b['mutations'][0x0]);for(let _0x26b742=_0x5db27a[_0x3059ae(0x23b)]-0x1;_0x26b742>=0x0;_0x26b742--){const _0x2d4f74={'id':_0x3059ae(0x2e2),'params':{..._0x5db27a[_0x26b742]}},_0x45e8d8={'id':_0x3059ae(0x2e2),'params':{..._0x5580a3[_0x26b742]}},_0x7f799b=this[_0x3059ae(0x261)][_0x3059ae(0x3fd)](_0x4fffeb,_0x2d4f74,!0x1),_0x198299=this[_0x3059ae(0x261)][_0x3059ae(0x3fd)](_0x32d6a6,_0x45e8d8,!0x1);if(g[_0x3059ae(0x328)](_0x7f799b))throw _0x7f799b[_0x3059ae(0x146)];if(g[_0x3059ae(0x328)](_0x198299))throw _0x198299['error'];_0x3d04cc[_0x3059ae(0x419)](_0x7f799b[_0x3059ae(0x325)][_0x3059ae(0x355)]),_0xab7afb['unshift'](_0x198299[_0x3059ae(0x325)]['params']),_0x4fffeb=_0x7f799b[_0x3059ae(0x2e3)],_0x32d6a6=_0x198299[_0x3059ae(0x2e3)];}_0xac32c4[_0x3059ae(0x256)]({'undoCache':_0x3d04cc,'redoCache':_0xab7afb});}['_transformPreviousActiveRange'](_0x3c3be5){const _0x5e2535=_0x5f0329,{unitID:_0x1598e4}=_0x3c3be5,_0x2628fa=this[_0x5e2535(0x279)][_0x5e2535(0x21e)](_0x1598e4)[_0x5e2535(0x241)](T[_0x5e2535(0x2aa)]),_0x528a91=_0x2628fa[_0x5e2535(0x3cf)]();if(_0x528a91==null)return;const _0x5f27fb=[{'id':_0x5e2535(0x2e2),'params':{'unitId':_0x3c3be5[_0x5e2535(0x398)],'actions':null,'textRanges':[_0x528a91]}}],_0x4abf20=this[_0x5e2535(0x261)][_0x5e2535(0x2f4)](_0x3c3be5,_0x5f27fb);if(!g['isTransformMutationsWithChangesetSuccess'](_0x4abf20))throw _0x4abf20[_0x5e2535(0x146)];const _0x3da84f=_0x4abf20[_0x5e2535(0x325)][0x0]['params'][_0x5e2535(0x28f)];Array['isArray'](_0x3da84f)&&_0x3da84f[_0x5e2535(0x23b)]&&_0x2628fa[_0x5e2535(0x3ad)](_0x3da84f[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x5f0329(0x2bd)])],ee);var Vt=Object[_0x5f0329(0x2e9)],Gt=(_0x3044dd,_0x42a335,_0x4764ab,_0x5e8699)=>{const _0x51b736=_0x5f0329;for(var _0x37d925=_0x5e8699>0x1?void 0x0:_0x5e8699?Vt(_0x42a335,_0x4764ab):_0x42a335,_0xca91f9=_0x3044dd[_0x51b736(0x23b)]-0x1,_0x17797e;_0xca91f9>=0x0;_0xca91f9--)(_0x17797e=_0x3044dd[_0xca91f9])&&(_0x37d925=_0x17797e(_0x37d925)||_0x37d925);return _0x37d925;},Ie=(_0x1584d4,_0x1b4230)=>(_0x3b02c4,_0x1c7f7b)=>_0x1b4230(_0x3b02c4,_0x1c7f7b,_0x1584d4);let te=class{constructor(_0x5ac749,_0x126255,_0xd7f2db){const _0xd7c066=_0x5f0329;this[_0xd7c066(0x180)]=_0x5ac749,this[_0xd7c066(0x261)]=_0x126255,this[_0xd7c066(0x16e)]=_0xd7f2db;}['transformStateCache'](_0x5f9b2b){const _0x549b07=_0x5f0329;this[_0x549b07(0x386)](_0x5f9b2b);}[_0x5f0329(0x207)](_0x35f6ef){const _0x2b6040=_0x5f0329,{unitID:_0x5ced3e}=_0x35f6ef,{collaboration:_0x4882a1}=this[_0x2b6040(0x16e)][_0x2b6040(0x1e0)](_0x5ced3e);if(_0x4882a1[_0x2b6040(0x23b)]===0x0)return _0x35f6ef;let _0x4287bc=a['Tools']['deepClone'](_0x35f6ef[_0x2b6040(0x366)][0x0]);for(let _0x22b63a=0x0;_0x22b63a<_0x4882a1[_0x2b6040(0x23b)];_0x22b63a++){const _0x1e415f={'id':_0x2b6040(0x2e2),'params':{'unitId':_0x4882a1[_0x22b63a][_0x2b6040(0x3b6)],..._0x4882a1[_0x22b63a][_0x2b6040(0x23c)]}},_0x5420ed=this[_0x2b6040(0x261)]['transformMutation'](_0x4287bc,_0x1e415f,!0x1);if(g['isTransformMutationFailure'](_0x5420ed))throw _0x5420ed['error'];_0x4287bc=_0x5420ed['m1Prime'];}return{...a[_0x2b6040(0x2eb)]['deepClone'](_0x35f6ef),'mutations':[_0x4287bc]};}[_0x5f0329(0x386)](_0x1c54f3){const _0x1dc119=_0x5f0329,{unitID:_0x2a48e0}=_0x1c54f3,{history:_0x528899,collaboration:_0x123416}=this[_0x1dc119(0x16e)][_0x1dc119(0x1e0)](_0x2a48e0);if(_0x528899['length']===0x0&&_0x123416[_0x1dc119(0x23b)]===0x0)return;const _0x47edd5=[],_0x1c9126=[];let _0x24bb0c=a[_0x1dc119(0x2eb)][_0x1dc119(0x212)](_0x1c54f3[_0x1dc119(0x366)][0x0]),_0x416b60=a[_0x1dc119(0x2eb)][_0x1dc119(0x212)](_0x1c54f3[_0x1dc119(0x366)][0x0]);for(let _0x5d4b04=_0x528899[_0x1dc119(0x23b)]-0x1;_0x5d4b04>=0x0;_0x5d4b04--){const _0x203233={'id':_0x1dc119(0x2e2),'params':{'unitId':_0x528899[_0x5d4b04][_0x1dc119(0x3b6)],..._0x528899[_0x5d4b04][_0x1dc119(0x16b)]}},_0x5ade85={'id':_0x1dc119(0x2e2),'params':{'unitId':_0x528899[_0x5d4b04]['unitId'],..._0x528899[_0x5d4b04][_0x1dc119(0x23c)]}},_0x218443=this[_0x1dc119(0x261)]['transformMutation'](_0x24bb0c,_0x203233,!0x1),_0x1d5860=this['_transformService']['transformMutation'](_0x416b60,_0x5ade85,!0x1);if(g[_0x1dc119(0x328)](_0x218443))throw _0x218443[_0x1dc119(0x146)];if(g[_0x1dc119(0x328)](_0x1d5860))throw _0x1d5860[_0x1dc119(0x146)];_0x47edd5['unshift']({..._0x528899[_0x5d4b04],'undoState':_0x218443[_0x1dc119(0x325)]['params'],'redoState':_0x1d5860[_0x1dc119(0x325)]['params']}),_0x24bb0c=_0x218443[_0x1dc119(0x2e3)],_0x416b60=_0x1d5860[_0x1dc119(0x2e3)];}_0x24bb0c=a[_0x1dc119(0x2eb)]['deepClone'](_0x1c54f3[_0x1dc119(0x366)][0x0]),_0x416b60=a['Tools']['deepClone'](_0x1c54f3[_0x1dc119(0x366)][0x0]);for(let _0x5150de=_0x123416[_0x1dc119(0x23b)]-0x1;_0x5150de>=0x0;_0x5150de--){const _0x442e65={'id':_0x1dc119(0x2e2),'params':{'unitId':_0x123416[_0x5150de][_0x1dc119(0x3b6)],..._0x123416[_0x5150de][_0x1dc119(0x16b)]}},_0x217810={'id':_0x1dc119(0x2e2),'params':{'unitId':_0x123416[_0x5150de][_0x1dc119(0x3b6)],..._0x123416[_0x5150de][_0x1dc119(0x23c)]}},_0x31d84f=this[_0x1dc119(0x261)]['transformMutation'](_0x24bb0c,_0x442e65,!0x1),_0x28ba37=this[_0x1dc119(0x261)][_0x1dc119(0x3fd)](_0x416b60,_0x217810,!0x1);if(g[_0x1dc119(0x328)](_0x31d84f))throw _0x31d84f[_0x1dc119(0x146)];if(g[_0x1dc119(0x328)](_0x28ba37))throw _0x28ba37[_0x1dc119(0x146)];_0x1c9126['unshift']({..._0x123416[_0x5150de],'undoState':_0x31d84f['m2Prime'][_0x1dc119(0x355)],'redoState':_0x28ba37['m2Prime'][_0x1dc119(0x355)]}),_0x24bb0c=_0x31d84f[_0x1dc119(0x2e3)],_0x416b60=_0x28ba37['m1Prime'];}this[_0x1dc119(0x16e)][_0x1dc119(0x1ef)](_0x2a48e0,{'history':_0x47edd5,'collaboration':_0x1c9126});}};te=Gt([Ie(0x0,a[_0x5f0329(0x2b6)](a['Injector'])),Ie(0x1,g[_0x5f0329(0x3a1)]),Ie(0x2,a[_0x5f0329(0x2b6)](T[_0x5f0329(0x2ee)]))],te);var Xt=Object[_0x5f0329(0x2e9)],Kt=(_0x17dfb5,_0x3e0c94,_0x5e8f9f,_0x162702)=>{const _0x3a1abb=_0x5f0329;for(var _0xf03299=_0x162702>0x1?void 0x0:_0x162702?Xt(_0x3e0c94,_0x5e8f9f):_0x3e0c94,_0x349dc8=_0x17dfb5[_0x3a1abb(0x23b)]-0x1,_0x2ce48a;_0x349dc8>=0x0;_0x349dc8--)(_0x2ce48a=_0x17dfb5[_0x349dc8])&&(_0xf03299=_0x2ce48a(_0xf03299)||_0xf03299);return _0xf03299;},Pe=(_0x36f2ed,_0x2e178e)=>(_0x572eb2,_0x4a17a0)=>_0x2e178e(_0x572eb2,_0x4a17a0,_0x36f2ed);let se=class{constructor(_0xc76b0d,_0x52a62d){const _0x51869d=_0x5f0329;this[_0x51869d(0x180)]=_0xc76b0d,this['_transformService']=_0x52a62d;}['transformSelections'](_0x31df14){const _0x32c93a=_0x5f0329;var _0xeceb51;const _0x32bd92=this[_0x32c93a(0x180)][_0x32c93a(0x222)](V[_0x32c93a(0x14b)]),_0x287e77=(_0xeceb51=_0x32bd92[_0x32c93a(0x182)]())!=null?_0xeceb51:[];if(_0x287e77[_0x32c93a(0x23b)]===0x0)return;const _0x15588b=_0x31df14['unitID'],_0x5eaee0=[{'id':_0x32c93a(0x2e2),'params':{'unitId':_0x15588b,'actions':null,'textRanges':_0x287e77}}],_0x25d234=this[_0x32c93a(0x261)][_0x32c93a(0x2f4)](_0x31df14,_0x5eaee0);if(!g[_0x32c93a(0x390)](_0x25d234))throw _0x25d234[_0x32c93a(0x146)];const _0x413a06=_0x25d234[_0x32c93a(0x325)][0x0]['params']['textRanges'];Array[_0x32c93a(0x234)](_0x413a06)&&_0x413a06['length']&&_0x32bd92[_0x32c93a(0x1e2)](_0x413a06,{'unitId':_0x15588b,'subUnitId':_0x15588b},!0x1);}};se=Kt([Pe(0x0,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),Pe(0x1,g[_0x5f0329(0x3a1)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x4a1874,_0x13c5ce,_0x31794d,_0xc321fd)=>{const _0x257afc=_0x5f0329;for(var _0x1d04d0=_0xc321fd>0x1?void 0x0:_0xc321fd?qt(_0x13c5ce,_0x31794d):_0x13c5ce,_0x121379=_0x4a1874[_0x257afc(0x23b)]-0x1,_0x1ec14f;_0x121379>=0x0;_0x121379--)(_0x1ec14f=_0x4a1874[_0x121379])&&(_0x1d04d0=_0x1ec14f(_0x1d04d0)||_0x1d04d0);return _0x1d04d0;},N=(_0x296fe7,_0x21460e)=>(_0x48e12f,_0x4bff61)=>_0x21460e(_0x48e12f,_0x4bff61,_0x296fe7);let ie=class extends a[_0x5f0329(0x248)]{constructor(_0x584890,_0x1ebc45,_0x468b7e,_0x3a2957,_0x45f833,_0x3dd03d,_0x116f3d,_0x335ded){const _0x5162bd=_0x5f0329;super(),_(this,'_status$',new I[(_0x5162bd(0x406))](u[_0x5162bd(0x39d)][_0x5162bd(0x353)])),(this[_0x5162bd(0x16e)]=_0x584890,this[_0x5162bd(0x1f5)]=_0x1ebc45,this[_0x5162bd(0x311)]=_0x468b7e,this[_0x5162bd(0x307)]=_0x3a2957,this[_0x5162bd(0x1d3)]=_0x45f833,this[_0x5162bd(0x1d9)]=_0x3dd03d,this[_0x5162bd(0x3d7)]=_0x116f3d,this[_0x5162bd(0x25c)]=_0x335ded,this[_0x5162bd(0x26a)]());}[_0x5f0329(0x26a)](){const _0x53f3a1=_0x5f0329;this['disposeWithMe'](this['_collaborationController'][_0x53f3a1(0x3ac)][_0x53f3a1(0x2c2)](_0x6a7bc8=>{const _0x61ffcf=_0x53f3a1,_0x49c955=this[_0x61ffcf(0x16e)]['docStateChange$'][_0x61ffcf(0x2c2)](_0x5228fc=>{const _0x2b61ce=_0x61ffcf;if(_0x5228fc==null)return;const {unitId:_0x50fd9e,redoState:_0x1ac379,commandId:_0x3b620f}=_0x5228fc;if(_0x50fd9e!==_0x6a7bc8['unitID'])return;const _0xf04be4={'id':_0x3b620f,'type':a[_0x2b61ce(0x2e0)]['MUTATION'],'params':{'unitId':_0x50fd9e,'actions':_0x1ac379[_0x2b61ce(0x2cd)],'textRanges':null}};_0x6a7bc8['onLocalMutation'](_0xf04be4);});if(_0x6a7bc8['disposeWithMe'](_0x49c955),_0x6a7bc8 instanceof u[_0x61ffcf(0x22a)]){const _0x58b9d9={'onTransformIME':_0x1e318b=>this['_docTransformIMECacheService'][_0x61ffcf(0x1b5)](_0x1e318b),'onTransformState':_0x1f9950=>this[_0x61ffcf(0x307)][_0x61ffcf(0x37e)](_0x1f9950),'onTransformSelections':_0x44e9b2=>this['_docTransformSelectionsService'][_0x61ffcf(0x2c7)](_0x44e9b2),'onSyncEditingCollabCursor':_0x24708b=>this['_docSyncEditingCollabCursorService'][_0x61ffcf(0x30f)](_0x24708b),'onTransformRemoteChangesetByIMECache':_0x568fbb=>this['_docTransformIMECacheService'][_0x61ffcf(0x207)](_0x568fbb),'onTransformRemoteChangesetByStateCache':_0x4e2704=>this[_0x61ffcf(0x307)][_0x61ffcf(0x207)](_0x4e2704)};_0x6a7bc8['addHandlerCallback'](_0x58b9d9);}}));}};ie=zt([N(0x0,a['Inject'](T[_0x5f0329(0x2ee)])),N(0x1,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x196)])),N(0x2,a[_0x5f0329(0x2b6)](ee)),N(0x3,a[_0x5f0329(0x2b6)](te)),N(0x4,a[_0x5f0329(0x2b6)](se)),N(0x5,a[_0x5f0329(0x2b6)](be)),N(0x6,O[_0x5f0329(0x14a)]),N(0x7,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x2a0)]))],ie);var G=(_0x5aa3c4=>(_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1c1)]=0x0]='UNDEFINED',_0x5aa3c4[_0x5aa3c4['OK']=0x1]='OK',_0x5aa3c4[_0x5aa3c4['INTERNAL_ERROR']=0x2]=_0x5f0329(0x376),_0x5aa3c4[_0x5aa3c4['PERMISSION_DENIED']=0x3]=_0x5f0329(0x2c1),_0x5aa3c4[_0x5aa3c4['NOT_FOUND']=0x4]=_0x5f0329(0x245),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x40a)]=0x5]=_0x5f0329(0x40a),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3b1)]=0x6]=_0x5f0329(0x3b1),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1b1)]=0x7]=_0x5f0329(0x1b1),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1c7)]=0x8]='TOO_MANY_REQUESTS',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x36c)]=0x9]=_0x5f0329(0x36c),_0x5aa3c4[_0x5aa3c4['LOGIN_FAILED']=0xa]=_0x5f0329(0x155),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2d0)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x34c)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3e1)]=0xd]=_0x5f0329(0x3e1),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2c5)]=0xe]=_0x5f0329(0x2c5),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x401)]=0xf]=_0x5f0329(0x401),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x35a)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x350)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x333)]=0x65]=_0x5f0329(0x333),_0x5aa3c4[_0x5aa3c4['USER_NOT_FOUND']=0xc9]=_0x5f0329(0x344),_0x5aa3c4[_0x5aa3c4['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x29c)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5aa3c4[_0x5aa3c4['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x15c)]=0x1772]=_0x5f0329(0x15c),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2b4)]=0x1773]=_0x5f0329(0x2b4),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2d6)]=0x1b59]='APPLY_REJECT',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x32f)]=0x1b5a]=_0x5f0329(0x32f),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x415)]=0x1b5b]=_0x5f0329(0x415),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x387)]=0x1b5c]=_0x5f0329(0x387),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x358)]=0x1b5d]='APPLY_DUPLICATED',_0x5aa3c4[_0x5aa3c4['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5f0329(0x3ef),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2ad)]=0x2329]=_0x5f0329(0x2ad),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3a5)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5aa3c4[_0x5aa3c4['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3b4)]=0x232c]=_0x5f0329(0x3b4),_0x5aa3c4[_0x5aa3c4['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x5aa3c4[_0x5aa3c4['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5f0329(0x20e),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x411)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3f5)]=0x2713]=_0x5f0329(0x3f5),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x38b)]=0x2714]=_0x5f0329(0x38b),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x24e)]=0x271a]=_0x5f0329(0x24e),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3ba)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1f3)]=0x271c]=_0x5f0329(0x1f3),_0x5aa3c4[_0x5aa3c4['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x5f0329(0x36f),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x165)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5aa3c4[_0x5aa3c4['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x34e)]=0x2720]=_0x5f0329(0x34e),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1e9)]=0x2af9]=_0x5f0329(0x1e9),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1d2)]=0x2ee1]=_0x5f0329(0x1d2),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3ca)]=0x2ee2]=_0x5f0329(0x3ca),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1fd)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x5aa3c4[_0x5aa3c4['USER_NOT_INVITED_CODE']=0x2ee4]=_0x5f0329(0x407),_0x5aa3c4[_0x5aa3c4['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5f0329(0x2e6),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x26f)]=0x32c9]=_0x5f0329(0x26f),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3e0)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x37a)]=0x32cb]=_0x5f0329(0x37a),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3bf)]=0x36b1]=_0x5f0329(0x3bf),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3e8)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x5aa3c4[_0x5aa3c4['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x5f0329(0x3f3),_0x5aa3c4[_0x5aa3c4['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x5f0329(0x3ee),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3f9)]=0x36b5]=_0x5f0329(0x3f9),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1bd)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3c1)]=0x36b7]=_0x5f0329(0x3c1),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x142)]=0x36b8]=_0x5f0329(0x142),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2a9)]=0x3715]=_0x5f0329(0x2a9),_0x5aa3c4[_0x5aa3c4['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x5f0329(0x31b),_0x5aa3c4[_0x5aa3c4['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x5f0329(0x364),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1bf)]=0x37dd]=_0x5f0329(0x1bf),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x32e)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x15f)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x22c)]=0x3a9b]=_0x5f0329(0x22c),_0x5aa3c4[_0x5aa3c4['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x5f0329(0x349),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2ec)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1d5)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x399)]=0x3a9f]=_0x5f0329(0x399),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x36b)]=0x3e81]=_0x5f0329(0x36b),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3bb)]=-0x1]=_0x5f0329(0x3bb),_0x5aa3c4))(G||{});function Jt(_0x3eff97){const _0x12f9ac=_0x5f0329;var _0x3df19f,_0xfbcb1f;const _0x7f75a3=(_0x3df19f=_0x3eff97['stageInfo'])==null?void 0x0:_0x3df19f['stage'],_0x10f2f8=((_0xfbcb1f=_0x3eff97[_0x12f9ac(0x297)])==null?void 0x0:_0xfbcb1f[_0x12f9ac(0x20d)])||0x0;return _0x7f75a3===B['FormulaExecuteStageType'][_0x12f9ac(0x3e5)]&&_0x10f2f8>0x0;}function Zt(_0x39f318){const _0xf5fe8e=_0x5f0329;return _0x39f318[_0xf5fe8e(0x301)]===B[_0xf5fe8e(0x3cc)][_0xf5fe8e(0x1bc)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x41860b,_0x1ec3e0,_0x556592,_0x532ee2)=>{for(var _0x107a15=_0x532ee2>0x1?void 0x0:_0x532ee2?Qt(_0x1ec3e0,_0x556592):_0x1ec3e0,_0x24026d=_0x41860b['length']-0x1,_0x27856e;_0x24026d>=0x0;_0x24026d--)(_0x27856e=_0x41860b[_0x24026d])&&(_0x107a15=_0x27856e(_0x107a15)||_0x107a15);return _0x107a15;},L=(_0x57f4f5,_0x36e0de)=>(_0x14b30a,_0x55a279)=>_0x36e0de(_0x14b30a,_0x55a279,_0x57f4f5);const ts=_0x5f0329(0x14d),ss=_0x5f0329(0x335),is=_0x5f0329(0x24b);let ne=class extends a['Disposable']{constructor(_0xa201f6,_0x4bdb0d,_0x2376b8,_0x33cd6f,_0x3df7e7,_0x58cbc3,_0x5f004f){const _0x87f9a0=_0x5f0329;super(),_(this,_0x87f9a0(0x3be),null),_(this,_0x87f9a0(0x3e9),0x0),_(this,_0x87f9a0(0x21f),0x0),_(this,_0x87f9a0(0x183),[]),_(this,_0x87f9a0(0x24c),0x0),(this[_0x87f9a0(0x3d7)]=_0xa201f6,this[_0x87f9a0(0x3b8)]=_0x4bdb0d,this['_configService']=_0x2376b8,this[_0x87f9a0(0x190)]=_0x33cd6f,this['_univerInstanceService']=_0x3df7e7,this[_0x87f9a0(0x181)]=_0x58cbc3,this['_localeService']=_0x5f004f,this[_0x87f9a0(0x40f)]());}['_initCommandInterceptor'](){const _0x21ece4=_0x5f0329;this[_0x21ece4(0x385)](this['_commandService'][_0x21ece4(0x1cb)]((_0x312ead,_0xa116b9)=>{const _0x13a15b=_0x21ece4;var _0x364c7b;if(_0x312ead['id']!==B[_0x13a15b(0x197)]['id'])return;const _0x9d2bf3=_0x312ead[_0x13a15b(0x355)];if(!this['_hasFormulaInDirtyRanges']((_0x364c7b=_0x9d2bf3[_0x13a15b(0x1bb)])!=null?_0x364c7b:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x13a15b(0x33a)](_0x312ead,_0xa116b9),this[_0x13a15b(0x2b9)](),new a[(_0x13a15b(0x32c))]();})),this[_0x21ece4(0x385)](this['_commandService'][_0x21ece4(0x171)]((_0x3c5459,_0x4c9066)=>{const _0xf70013=_0x21ece4;if(_0x3c5459['id']!==B[_0xf70013(0x40c)]['id'])return;const _0x8290f4=_0x3c5459[_0xf70013(0x355)];if(Jt(_0x8290f4)){const _0x4f939a=a[_0xf70013(0x2b7)]();this[_0xf70013(0x183)]['push'](_0x4f939a),this['_startCalculationLimit'](_0x4f939a);}else{if(Zt(_0x8290f4)&&this[_0xf70013(0x183)][_0xf70013(0x23b)]>0x0){const _0x489317=this[_0xf70013(0x183)]['shift']();this['_releaseCalculationLimit'](_0x489317);}}}));}[_0x5f0329(0x26d)](){const _0x3c6731=_0x5f0329;super['dispose'](),this['_clearPolling'](),this[_0x3c6731(0x183)]=[],this[_0x3c6731(0x21f)]=0x0,this[_0x3c6731(0x3e9)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x5f0329(0x33a)](_0x11dbef,_0x3d85bc){const _0x4de2af=_0x5f0329;for(let _0x2056b5=0x0;_0x2056b5<0x1e;_0x2056b5++)try{if(await this[_0x4de2af(0x1a9)](),this[_0x4de2af(0x337)]()){this['_applyCommand'](_0x11dbef,_0x3d85bc),this[_0x4de2af(0x3d7)][_0x4de2af(0x3da)]({'content':this[_0x4de2af(0x25c)]['t'](_0x4de2af(0x17e)),'type':p['MessageType'][_0x4de2af(0x2f7)]});return;}await new Promise(_0x283d78=>{const _0x4ad00a=_0x4de2af;this['_pollingInterval']=window[_0x4ad00a(0x31f)](_0x283d78,0x3e8);});}catch(_0x2357a4){this[_0x4de2af(0x181)][_0x4de2af(0x146)](_0x2357a4);}this['_messageService'][_0x4de2af(0x3da)]({'content':this[_0x4de2af(0x25c)]['t'](_0x4de2af(0x408)),'type':p[_0x4de2af(0x172)][_0x4de2af(0x382)]});}[_0x5f0329(0x286)](_0x4c2648,_0xf1fa1f){const _0x572d3e=_0x5f0329;try{this['_commandService'][_0x572d3e(0x1df)](_0x4c2648['id'],_0x4c2648[_0x572d3e(0x355)],_0xf1fa1f);}catch(_0xd45b7f){this[_0x572d3e(0x181)][_0x572d3e(0x146)](_0xd45b7f);}}['_setFormulaLimitStatus'](_0x36b46a,_0x140814){const _0x58eedb=_0x5f0329;_0x140814<this[_0x58eedb(0x24c)]||(this[_0x58eedb(0x24c)]=_0x140814,this[_0x58eedb(0x3e9)]=Number['parseInt'](_0x36b46a['maxFormulaLimit']),this[_0x58eedb(0x21f)]=Number['parseInt'](_0x36b46a[_0x58eedb(0x20b)]));}async[_0x5f0329(0x145)](_0x1511b2){const _0x5f2c7a=_0x5f0329;var _0x10e3ea,_0x334d59;const _0x1c0e95=Date[_0x5f2c7a(0x1dd)]();try{const _0x3ca58d=((_0x10e3ea=this['_configService'][_0x5f2c7a(0x356)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x10e3ea['startFormulaLimitUrl'])||ss,_0x1fb2f8=(await this['_httpService'][_0x5f2c7a(0x213)](_0x3ca58d,{'body':JSON['stringify']({'taskId':_0x1511b2})}))['body'];if(((_0x334d59=_0x1fb2f8[_0x5f2c7a(0x146)])==null?void 0x0:_0x334d59[_0x5f2c7a(0x352)])!==G['OK'])return;this[_0x5f2c7a(0x35f)](_0x1fb2f8[_0x5f2c7a(0x3a2)],_0x1c0e95);}catch(_0x179e47){this[_0x5f2c7a(0x181)]['error'](_0x179e47);}}async['_getFormulaLimitStatus'](_0x32f345){const _0x47538e=_0x5f0329;var _0x2aa98c,_0x527155;const _0x3888f3=Date['now']();try{const _0x4cec91=((_0x2aa98c=this['_configService'][_0x47538e(0x356)](u[_0x47538e(0x3c9)]))==null?void 0x0:_0x2aa98c[_0x47538e(0x258)])||ts,_0x412251=_0x32f345?_0x4cec91+_0x47538e(0x38f)+encodeURIComponent(_0x32f345):_0x4cec91,_0x431777=(await this[_0x47538e(0x190)]['get'](_0x412251))[_0x47538e(0x1ad)];if(((_0x527155=_0x431777[_0x47538e(0x146)])==null?void 0x0:_0x527155[_0x47538e(0x352)])!==G['OK'])return;this[_0x47538e(0x35f)](_0x431777[_0x47538e(0x3a2)],_0x3888f3);}catch(_0x4c6dbc){this[_0x47538e(0x181)][_0x47538e(0x146)](_0x4c6dbc);}}async[_0x5f0329(0x3e7)](_0x1f8fea){const _0x3ce73c=_0x5f0329;var _0x1738b7,_0x17771b;const _0x59c0ff=Date[_0x3ce73c(0x1dd)]();try{const _0x308331=((_0x1738b7=this[_0x3ce73c(0x168)][_0x3ce73c(0x356)](u[_0x3ce73c(0x3c9)]))==null?void 0x0:_0x1738b7[_0x3ce73c(0x161)])||is,_0x1c600f=(await this[_0x3ce73c(0x190)][_0x3ce73c(0x213)](_0x308331,{'body':JSON['stringify']({'taskId':_0x1f8fea})}))['body'];if(((_0x17771b=_0x1c600f[_0x3ce73c(0x146)])==null?void 0x0:_0x17771b['code'])!==G['OK'])return;this[_0x3ce73c(0x35f)](_0x1c600f['limitInfo'],_0x59c0ff);}catch(_0x5e79e5){this[_0x3ce73c(0x181)][_0x3ce73c(0x146)](_0x5e79e5);}}[_0x5f0329(0x337)](){const _0x126350=_0x5f0329;return this[_0x126350(0x3e9)]===0x0?!0x0:this[_0x126350(0x3e9)]-this[_0x126350(0x21f)]>0x0;}[_0x5f0329(0x1d7)](){const _0x5b84b3=_0x5f0329;this['_pollingInterval']&&(clearTimeout(this[_0x5b84b3(0x3be)]),this[_0x5b84b3(0x3be)]=null);}['_showGuardMessage'](){const _0x46f8d9=_0x5f0329;this[_0x46f8d9(0x3d7)]['show']({'content':this[_0x46f8d9(0x25c)]['t'](_0x46f8d9(0x3f7)),'type':p['MessageType'][_0x46f8d9(0x2a7)]});}['_hasFormulaInDirtyRanges'](_0x1fa342){const _0x539777=_0x5f0329;for(const _0x32a94c of _0x1fa342){const {unitId:_0x5cb66a,sheetId:_0x4a86f6,range:_0x901482}=_0x32a94c,_0xe99256=this[_0x539777(0x2c8)][_0x539777(0x383)](_0x5cb66a);if(!_0xe99256)continue;const _0x575be5=_0xe99256[_0x539777(0x223)](_0x4a86f6);if(!_0x575be5)continue;const _0x397820=_0x575be5[_0x539777(0x3fe)]();for(let _0x77f7f2=_0x901482['startRow'];_0x77f7f2<=_0x901482[_0x539777(0x393)];_0x77f7f2++)for(let _0x491e3d=_0x901482[_0x539777(0x331)];_0x491e3d<=_0x901482[_0x539777(0x1e8)];_0x491e3d++){const _0x2688e2=_0x397820[_0x539777(0x259)](_0x77f7f2,_0x491e3d);if(_0x2688e2&&(a[_0x539777(0x19a)](_0x2688e2['f'])||a['isFormulaId'](_0x2688e2['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x5f0329(0x2b6)](O[_0x5f0329(0x14a)])),L(0x1,a[_0x5f0329(0x1b7)]),L(0x2,a[_0x5f0329(0x1a6)]),L(0x3,a[_0x5f0329(0x2b6)](x[_0x5f0329(0x28d)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x5f0329(0x254)]),L(0x6,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x2a0)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x5ae076,_0x5905bc,_0x21c39c,_0x2990f6)=>{const _0x16f966=_0x5f0329;for(var _0x147b06=_0x2990f6>0x1?void 0x0:_0x2990f6?ns(_0x5905bc,_0x21c39c):_0x5905bc,_0xdeb087=_0x5ae076[_0x16f966(0x23b)]-0x1,_0x14573d;_0xdeb087>=0x0;_0xdeb087--)(_0x14573d=_0x5ae076[_0xdeb087])&&(_0x147b06=_0x14573d(_0x147b06)||_0x147b06);return _0x147b06;},Se=(_0xc1092,_0x39e507)=>(_0x20f61c,_0x4aa93b)=>_0x39e507(_0x20f61c,_0x4aa93b,_0xc1092);let Te=class extends a[_0x5f0329(0x248)]{constructor(_0x1c8a8e,_0x38907e,_0x50ee95){const _0x357f8f=_0x5f0329;super(),_(this,_0x357f8f(0x270),new Map()),_(this,_0x357f8f(0x400),new Map()),_(this,_0x357f8f(0x2f3),!0x1),(this[_0x357f8f(0x168)]=_0x1c8a8e,this['_localStorageService']=_0x38907e,this['_revisionService']=_0x50ee95);}[_0x5f0329(0x303)](){const _0x1f24d3=_0x5f0329;this[_0x1f24d3(0x2f3)]=!0x0;}[_0x5f0329(0x3d3)](){const _0x1afab3=_0x5f0329;this[_0x1afab3(0x2f3)]=!0x1;}get[_0x5f0329(0x373)](){const _0x2f177d=_0x5f0329;return this[_0x2f177d(0x400)];}[_0x5f0329(0x26d)](){const _0x15cab0=_0x5f0329;this[_0x15cab0(0x268)]()[_0x15cab0(0x29f)](()=>super[_0x15cab0(0x26d)]());}async['loadOfflineData'](_0x6928a2){const _0x385796=_0x5f0329;return this['_disabled']?null:this['_localStorageService'][_0x385796(0x200)](u[_0x385796(0x184)](_0x6928a2));}async['saveOfflineData'](_0x29f3b7,_0x422555){return!!this['_localStorageService']['setItem'](_0x29f3b7,_0x422555);}['updateOfflineData'](_0xd3f650,_0x385488,_0x35649c,_0x1e0cd2){const _0x47983a=_0x5f0329,_0x4ddd81=this[_0x47983a(0x226)][_0x47983a(0x3d1)](_0xd3f650);this[_0x47983a(0x270)][_0x47983a(0x3c7)](_0xd3f650,{'unitID':_0xd3f650,'type':_0x385488,'awaitingChangeset':_0x35649c,'mutations':_0x1e0cd2,'rev':_0x4ddd81}),this[_0x47983a(0x400)]['has'](_0xd3f650)||this[_0x47983a(0x27f)](_0xd3f650);}[_0x5f0329(0x27f)](_0x464095){const _0x4bf36b=_0x5f0329,_0x4ef66=this['_getSaveTimeout']();_0x4ef66===0x0?this['_saveCache'](_0x464095):this['_saveTaskMap'][_0x4bf36b(0x3c7)](_0x464095,setTimeout(()=>this[_0x4bf36b(0x195)](_0x464095),_0x4ef66));}[_0x5f0329(0x289)](){const _0x5dc1cf=_0x5f0329;var _0x15751b;return(_0x15751b=this[_0x5dc1cf(0x168)]['getConfig'](u[_0x5dc1cf(0x21d)]))!=null?_0x15751b:u[_0x5dc1cf(0x15b)];}[_0x5f0329(0x195)](_0x4a1147){const _0x1ceff5=_0x5f0329,_0x2b4c25=this[_0x1ceff5(0x400)][_0x1ceff5(0x222)](_0x4a1147);return _0x2b4c25!==void 0x0&&window[_0x1ceff5(0x3f0)](_0x2b4c25),this[_0x1ceff5(0x2a4)][_0x1ceff5(0x3a3)](u[_0x1ceff5(0x184)](_0x4a1147),this[_0x1ceff5(0x270)][_0x1ceff5(0x222)](_0x4a1147))['then'](()=>this['_saveTaskMap'][_0x1ceff5(0x263)](_0x4a1147));}async[_0x5f0329(0x268)](){const _0x44e2c7=_0x5f0329,_0x3efb7d=[];this['_saveTaskMap']['forEach']((_0x20a57f,_0x18b5a9)=>{const _0x24509d=_0x38d6;window[_0x24509d(0x3f0)](_0x20a57f),_0x3efb7d['push'](this['_saveCache'](_0x18b5a9)[_0x24509d(0x29f)](()=>{const _0x26ae6e=_0x24509d;this['_saveTaskMap'][_0x26ae6e(0x263)](_0x18b5a9);}));}),await Promise[_0x44e2c7(0x290)](_0x3efb7d);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0x5f0329(0x2a3)]),Se(0x2,a[_0x5f0329(0x2b6)](g[_0x5f0329(0x38c)]))],Te);class ke extends a[_0x5f0329(0x3f4)]{constructor(){const _0x501466=_0x5f0329;super(),_(this,'urlChange$'),this[_0x501466(0x345)]=I[_0x501466(0x348)](window,_0x501466(0x1eb))['pipe'](I[_0x501466(0x28e)](this[_0x501466(0x3f8)]),I[_0x501466(0x1c3)](0x1),I[_0x501466(0x32b)](void 0x0));}[_0x5f0329(0x2b0)](_0x45fa6e,_0x1018b9,_0xc0f6b8=!0x1){const _0x5041c7=_0x5f0329,_0x155d34=new URL(window[_0x5041c7(0x3ed)][_0x5041c7(0x177)]);_0x155d34[_0x5041c7(0x3c3)]['set'](_0x45fa6e,_0x1018b9),_0xc0f6b8?window[_0x5041c7(0x2d7)][_0x5041c7(0x144)]('','',_0x155d34[_0x5041c7(0x3a8)]()):window[_0x5041c7(0x2d7)][_0x5041c7(0x1d6)]('','',_0x155d34[_0x5041c7(0x3a8)]());}[_0x5f0329(0x410)](_0x2e93e0,_0x15fdfd=!0x1){const _0x4afc8d=_0x5f0329,_0x27708f=new URL(window[_0x4afc8d(0x3ed)][_0x4afc8d(0x177)]);_0x27708f[_0x4afc8d(0x3c3)]['delete'](_0x2e93e0),_0x15fdfd?window[_0x4afc8d(0x2d7)][_0x4afc8d(0x144)]('','',_0x27708f[_0x4afc8d(0x3a8)]()):window[_0x4afc8d(0x2d7)][_0x4afc8d(0x1d6)]('','',_0x27708f['toString']());}['getParam'](_0x33bbb4){const _0x517c93=_0x5f0329;var _0x1d2f14;return(_0x1d2f14=new URL(window[_0x517c93(0x3ed)][_0x517c93(0x177)])[_0x517c93(0x3c3)]['get'](_0x33bbb4))!=null?_0x1d2f14:void 0x0;}}var os=Object[_0x5f0329(0x39c)],as=Object[_0x5f0329(0x2e9)],cs=(_0x250e4c,_0x4a11ca,_0x538a62)=>_0x4a11ca in _0x250e4c?os(_0x250e4c,_0x4a11ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x538a62}):_0x250e4c[_0x4a11ca]=_0x538a62,ls=(_0x31f775,_0x10359f,_0x5e3806,_0x2a3981)=>{for(var _0x55d791=_0x2a3981>0x1?void 0x0:_0x2a3981?as(_0x10359f,_0x5e3806):_0x10359f,_0x553780=_0x31f775['length']-0x1,_0x5c6aa4;_0x553780>=0x0;_0x553780--)(_0x5c6aa4=_0x31f775[_0x553780])&&(_0x55d791=_0x5c6aa4(_0x55d791)||_0x55d791);return _0x55d791;},de=(_0x37a7e8,_0xef0c1f)=>(_0x42183a,_0x24b43d)=>_0xef0c1f(_0x42183a,_0x24b43d,_0x37a7e8),_s=(_0x2325f3,_0x1d2b86,_0x1bf14f)=>cs(_0x2325f3,_0x1d2b86+'',_0x1bf14f);const hs=_0x5f0329(0x17f);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5f0329(0x1ee)]{constructor(_0x2307c0=Me,_0x715d23,_0x30fd61,_0x2875d8){const _0x51a141=_0x5f0329;super(),this[_0x51a141(0x3ec)]=_0x2307c0,this[_0x51a141(0x279)]=_0x715d23,this[_0x51a141(0x180)]=_0x30fd61,this[_0x51a141(0x168)]=_0x2875d8;const {..._0x3230dd}=a[_0x51a141(0x1de)]({},Me,this['_config']);this[_0x51a141(0x168)][_0x51a141(0x19f)](Yt,_0x3230dd);}[_0x5f0329(0x193)](){const _0x2ee306=_0x5f0329;this[_0x2ee306(0x18a)](),this[_0x2ee306(0x26e)]();}[_0x5f0329(0x191)](){const _0x2c32f9=_0x5f0329;this[_0x2c32f9(0x2ed)]();}[_0x5f0329(0x18a)](){const _0x5c8e95=_0x5f0329;var _0x189036;const _0x199f0f=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x5c8e95(0x1f2)]}],[u[_0x5c8e95(0x19e)],{'useClass':Te}],[exports[_0x5c8e95(0x236)]],[ie],[Z],[F],[me],[exports[_0x5c8e95(0x34b)]]];this[_0x5c8e95(0x3ec)][_0x5c8e95(0x314)]&&_0x199f0f['push']([Q]),a[_0x5c8e95(0x1a7)](this[_0x5c8e95(0x180)],a[_0x5c8e95(0x218)](_0x199f0f,(_0x189036=this[_0x5c8e95(0x3ec)])==null?void 0x0:_0x189036[_0x5c8e95(0x3db)]));}[_0x5f0329(0x2ed)](){const _0x2793c0=_0x5f0329;this['disposeWithMe'](this['_renderManagerService'][_0x2793c0(0x31e)](a[_0x2793c0(0x2dd)][_0x2793c0(0x23f)],[Ee])),this[_0x2793c0(0x385)](this[_0x2793c0(0x279)][_0x2793c0(0x31e)](a[_0x2793c0(0x2dd)]['UNIVER_SHEET'],[Ce]));}[_0x5f0329(0x26e)](){const _0x3d16e3=_0x5f0329;a[_0x3d16e3(0x402)](this[_0x3d16e3(0x180)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x3d16e3(0x34b)]],[ne]]),this[_0x3d16e3(0x3ec)][_0x3d16e3(0x314)]&&a[_0x3d16e3(0x402)](this[_0x3d16e3(0x180)],[[Q]]);}},_s(exports[_0x5f0329(0x229)],_0x5f0329(0x36a),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x5f0329(0x3e3)](u['UniverCollaborationClientPlugin']),de(0x1,C['IRenderManagerService']),de(0x2,a['Inject'](a[_0x5f0329(0x391)])),de(0x3,a[_0x5f0329(0x1a6)])],exports[_0x5f0329(0x229)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x204b9d,_0x25a34a,_0x3d1582,_0x332d35)=>{const _0x10c281=_0x5f0329;for(var _0x4c88fb=_0x332d35>0x1?void 0x0:_0x332d35?us(_0x25a34a,_0x3d1582):_0x25a34a,_0x24ee72=_0x204b9d[_0x10c281(0x23b)]-0x1,_0x4809a1;_0x24ee72>=0x0;_0x24ee72--)(_0x4809a1=_0x204b9d[_0x24ee72])&&(_0x4c88fb=_0x4809a1(_0x4c88fb)||_0x4c88fb);return _0x4c88fb;},W=(_0x513163,_0x4a4c79)=>(_0x10e1b5,_0x3b36e2)=>_0x4a4c79(_0x10e1b5,_0x3b36e2,_0x513163);exports[_0x5f0329(0x1c0)]=class extends u[_0x5f0329(0x14c)]{constructor(_0x39cc8c,_0x133654,_0x2f1868,_0x5a4cc0,_0x1f5181){super(_0x39cc8c,_0x133654,_0x2f1868,_0x5a4cc0,_0x1f5181);}async[_0x5f0329(0x1fb)](_0x5a5dd5){const _0x24def8=_0x5f0329,_0x21aa2f=await this[_0x24def8(0x14e)](),_0x29dd19=this[_0x24def8(0x3d4)](_0x5a5dd5,_0x21aa2f);return this[_0x24def8(0x204)](_0x29dd19);}['_createSocketURL'](_0x4f1642,_0x5781b5){const _0x1066d9=_0x5f0329,_0x17f49d=typeof window>'u'?new URL(_0x4f1642):new URL(_0x4f1642,window['location'][_0x1066d9(0x34a)]);_0x17f49d['searchParams']['set'](_0x1066d9(0x384),_0x5781b5);const _0x182b32=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1066d9(0x3ed)][_0x1066d9(0x1f1)]);return _0x182b32[_0x1066d9(0x222)](_0x1066d9(0x21c))&&_0x17f49d[_0x1066d9(0x3c3)][_0x1066d9(0x3c7)](_0x1066d9(0x21c),_0x182b32['get']('runId')),_0x17f49d[_0x1066d9(0x3a8)]();}async[_0x5f0329(0x14e)](){const _0x1edc0a=_0x5f0329;var _0x9db7ef,_0x24e1b0,_0x473a0c;const _0x389c36=this['_configService'][_0x1edc0a(0x356)](u[_0x1edc0a(0x3c9)]),_0xd38901=(_0x9db7ef=_0x389c36==null?void 0x0:_0x389c36['wsSessionTicketUrl'])!=null?_0x9db7ef:u[_0x1edc0a(0x1cc)];return(_0x473a0c=(_0x24e1b0=(await this['_httpService'][_0x1edc0a(0x222)](_0xd38901,{'headers':{'Content-Type':_0x1edc0a(0x220)}}))[_0x1edc0a(0x1ad)])==null?void 0x0:_0x24e1b0[_0x1edc0a(0x143)])!=null?_0x473a0c:'';}},exports[_0x5f0329(0x1c0)]=Is([W(0x0,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),W(0x1,a[_0x5f0329(0x2b6)](x[_0x5f0329(0x28d)])),W(0x2,a[_0x5f0329(0x1a6)]),W(0x3,a[_0x5f0329(0x254)]),W(0x4,g['ISnapshotServerService'])],exports[_0x5f0329(0x1c0)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0xc4b4d2,_0x1b77cf,_0x5ceaa2,_0x30969c)=>{const _0x23c70d=_0x5f0329;for(var _0x19f0b2=_0x30969c>0x1?void 0x0:_0x30969c?Ss(_0x1b77cf,_0x5ceaa2):_0x1b77cf,_0x21fd30=_0xc4b4d2[_0x23c70d(0x23b)]-0x1,_0x18d539;_0x21fd30>=0x0;_0x21fd30--)(_0x18d539=_0xc4b4d2[_0x21fd30])&&(_0x19f0b2=_0x18d539(_0x19f0b2)||_0x19f0b2);return _0x19f0b2;},fe=(_0x48c47c,_0x2de0b2)=>(_0x1763df,_0x1dff8b)=>_0x2de0b2(_0x1763df,_0x1dff8b,_0x48c47c);exports['RemoteUniscriptService']=class extends a[_0x5f0329(0x248)]{constructor(_0x31a28b,_0x5f178b,_0x47160c){const _0x1c109a=_0x5f0329;super(),this[_0x1c109a(0x41a)]=_0x31a28b,this['_httpService']=_0x5f178b,this[_0x1c109a(0x168)]=_0x47160c;}async[_0x5f0329(0x39e)](_0x39404f,_0x3c0130,_0x1ccff1,..._0x17322f){const _0x15c166=_0x5f0329;var _0x3b869c,_0x43c26d,_0x72527e,_0x1b54cd;const _0x356276=this[_0x15c166(0x41a)][_0x15c166(0x242)]();if(!_0x356276)throw new Error(_0x15c166(0x267));const _0x10e140=((_0x3b869c=this[_0x15c166(0x168)]['getConfig'](u[_0x15c166(0x265)]))!=null?_0x3b869c:u[_0x15c166(0x198)])+'/'+_0x39404f+'/run/'+_0x3c0130,_0x4510df=new URL(window['location'][_0x15c166(0x177)]),_0x468621={'scriptId':_0x39404f,'runId':(_0x43c26d=_0x4510df[_0x15c166(0x3c3)][_0x15c166(0x222)]('runId'))!=null?_0x43c26d:'','function':_0x3c0130,'unitId':_0x356276[_0x15c166(0x1cf)](),'argsOfFunction':JSON[_0x15c166(0x1f0)](_0x17322f),'invokeId':(_0x72527e=_0x1ccff1[_0x15c166(0x3a6)])!=null?_0x72527e:'','executionId':(_0x1b54cd=_0x1ccff1[_0x15c166(0x1b8)])!=null?_0x1b54cd:''};try{const _0x65074b=await this[_0x15c166(0x190)]['post'](_0x10e140,{'body':_0x468621});return _0x65074b[_0x15c166(0x1ad)][_0x15c166(0x146)]&&_0x65074b['body']['error'][_0x15c166(0x352)]!==G['OK']?'Failed':_0x65074b[_0x15c166(0x1ad)][_0x15c166(0x174)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x5f0329(0x2c0)]),fe(0x1,a[_0x5f0329(0x2b6)](x[_0x5f0329(0x28d)])),fe(0x2,a['IConfigService'])],exports[_0x5f0329(0x283)]);const we=0x7530,ye=_0x5f0329(0x257);class fs extends a['Disposable']{constructor(){const _0x2ffea6=_0x5f0329;super(),_(this,'_id',a[_0x2ffea6(0x2b7)]()),_(this,_0x2ffea6(0x3de),new Set()),_(this,_0x2ffea6(0x23a),new Map()),_(this,_0x2ffea6(0x2b1),null),_(this,_0x2ffea6(0x3ff),new Map()),_(this,'_unitStatus',new Map()),this[_0x2ffea6(0x1a0)]();}[_0x5f0329(0x26d)](){const _0x31684c=_0x5f0329;super[_0x31684c(0x26d)](),this['_clearOtherTimers']['forEach']((_0x1ddbe4,_0x1715ad)=>this[_0x31684c(0x3c8)](_0x1715ad)),this[_0x31684c(0x2b1)]&&window[_0x31684c(0x29a)](this[_0x31684c(0x2b1)]);}['getUnitStatus$'](_0x2833f2){const _0x18e3ef=_0x5f0329;return this[_0x18e3ef(0x2d9)](_0x2833f2)[_0x18e3ef(0x217)](I[_0x18e3ef(0x39b)]());}['editingUnit'](_0x332510){const _0x36e5d5=_0x5f0329;this[_0x36e5d5(0x3de)][_0x36e5d5(0x1ba)]===0x0&&this[_0x36e5d5(0x233)](),this[_0x36e5d5(0x3de)][_0x36e5d5(0x262)](_0x332510),this[_0x36e5d5(0x418)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x332510],'isForwarded':!0x1});}[_0x5f0329(0x414)](_0x3a04f1){const _0x49c24f=_0x5f0329;this[_0x49c24f(0x3de)]['delete'](_0x3a04f1),this[_0x49c24f(0x3de)][_0x49c24f(0x1ba)]===0x0&&this[_0x49c24f(0x2b1)]&&window[_0x49c24f(0x29a)](this['_heartbeatTimer']);}[_0x5f0329(0x1a0)](){const _0x4ba810=_0x5f0329;this[_0x4ba810(0x385)](a['toDisposable'](I[_0x4ba810(0x348)](window,_0x4ba810(0x27c))[_0x4ba810(0x2c2)](_0x454d32=>{const _0x24e98b=_0x4ba810;if(_0x454d32[_0x24e98b(0x1ea)]!==ye||!_0x454d32[_0x24e98b(0x378)])return;const _0x2a1072=JSON[_0x24e98b(0x1c2)](_0x454d32[_0x24e98b(0x378)]);this[_0x24e98b(0x1ca)](_0x2a1072);}))),window[_0x4ba810(0x2f1)]('unload',()=>this[_0x4ba810(0x418)]({'type':0x1,'memberID':this[_0x4ba810(0x3b5)],'unitIDs':Array[_0x4ba810(0x3cb)](this[_0x4ba810(0x3de)])}));}['_handleEvent'](_0x231ca6){const _0x5cdfc2=_0x5f0329;switch(_0x231ca6[_0x5cdfc2(0x1ae)]){case 0x0:this[_0x5cdfc2(0x315)](_0x231ca6);break;case 0x1:this[_0x5cdfc2(0x330)](_0x231ca6);break;case 0x2:this[_0x5cdfc2(0x304)](_0x231ca6);break;}}[_0x5f0329(0x315)](_0x10f0fb){const _0x2f3371=_0x5f0329,{unitIDs:_0x1c4cd1,memberID:_0x2fa3a7,isForwarded:_0x5d17f8}=_0x10f0fb;_0x1c4cd1[_0x2f3371(0x205)](_0x17c234=>{const _0x4481fc=_0x2f3371;if(!_0x5d17f8&&this[_0x4481fc(0x23a)][_0x4481fc(0x397)](_0x17c234)&&this[_0x4481fc(0x2d9)](_0x17c234)[_0x4481fc(0x24a)](u[_0x4481fc(0x27d)]['OTHER_CLIENTS_EDITING']),!this[_0x4481fc(0x23a)][_0x4481fc(0x397)](_0x17c234)||!this[_0x4481fc(0x23a)][_0x4481fc(0x222)](_0x17c234)[_0x4481fc(0x397)](_0x2fa3a7)){const _0xb98d8c=this['_unitOnClients'][_0x4481fc(0x222)](_0x17c234)||new Set();_0xb98d8c[_0x4481fc(0x262)](_0x2fa3a7),this[_0x4481fc(0x23a)][_0x4481fc(0x3c7)](_0x17c234,_0xb98d8c),this[_0x4481fc(0x162)](_0x2fa3a7);}}),_0x5d17f8||this[_0x2f3371(0x418)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2f3371(0x3de)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xd7655e){const _0x15c2d0=_0x5f0329;this[_0x15c2d0(0x3c8)](_0xd7655e);const _0x4de1af=window[_0x15c2d0(0x31f)](()=>{const _0x245e3e=_0x15c2d0;this[_0x245e3e(0x23a)][_0x245e3e(0x205)](_0x20a9bc=>{const _0x210752=_0x245e3e;_0x20a9bc[_0x210752(0x263)](_0xd7655e);});},we*0x2);this[_0x15c2d0(0x3ff)][_0x15c2d0(0x3c7)](_0xd7655e,_0x4de1af);}[_0x5f0329(0x3c8)](_0x3abd47){const _0x2fc572=_0x5f0329;if(this[_0x2fc572(0x3ff)]['has'](_0x3abd47)){const _0x1aff15=this[_0x2fc572(0x3ff)][_0x2fc572(0x222)](_0x3abd47);_0x1aff15&&window[_0x2fc572(0x3f0)](_0x1aff15),this['_clearOtherTimers'][_0x2fc572(0x3c7)](_0x3abd47,null);}}[_0x5f0329(0x330)](_0x3510d2){const _0x1737d3=_0x5f0329,{memberID:_0x284a4a,unitIDs:_0x567c3a}=_0x3510d2;_0x567c3a[_0x1737d3(0x205)](_0x17ac4a=>{const _0x208cee=_0x1737d3;var _0x5382c4;const _0x3405b6=this[_0x208cee(0x23a)][_0x208cee(0x222)](_0x17ac4a);_0x3405b6&&(_0x3405b6[_0x208cee(0x263)](_0x284a4a),(_0x5382c4=this[_0x208cee(0x2d9)](_0x17ac4a))==null||_0x5382c4['next'](_0x3405b6[_0x208cee(0x1ba)]===0x0?u[_0x208cee(0x27d)][_0x208cee(0x3d8)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x1737d3(0x3c8)](_0x284a4a);}[_0x5f0329(0x304)](_0x28f0a8){const _0x35efac=_0x5f0329;this[_0x35efac(0x162)](_0x28f0a8[_0x35efac(0x361)]);}['_send'](_0x4bf840){const _0x57e3b1=_0x5f0329;localStorage[_0x57e3b1(0x3a3)](ye,JSON['stringify'](_0x4bf840));}[_0x5f0329(0x233)](){const _0x2dcc8c=_0x5f0329;this[_0x2dcc8c(0x2b1)]=window[_0x2dcc8c(0x284)](()=>{const _0x4c9800=_0x2dcc8c;this[_0x4c9800(0x418)]({'type':0x2,'memberID':this[_0x4c9800(0x3b5)]});},we);}[_0x5f0329(0x2d9)](_0x277478){const _0x41952=_0x5f0329;return this[_0x41952(0x1af)][_0x41952(0x397)](_0x277478)||this[_0x41952(0x1af)][_0x41952(0x3c7)](_0x277478,new I[(_0x41952(0x406))](u[_0x41952(0x27d)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus']['get'](_0x277478);}}exports[_0x5f0329(0x340)]=Oe,exports[_0x5f0329(0x343)]=je,exports[_0x5f0329(0x1be)]=fs,exports['WebURLService']=ke;
|
|
1
|
+
'use strict';const _0x57a880=_0x3624;(function(_0x360a2c,_0x30f8c0){const _0x5056aa=_0x3624,_0x18d4ee=_0x360a2c();while(!![]){try{const _0x1251fc=parseInt(_0x5056aa(0x2b2))/0x1+parseInt(_0x5056aa(0xc0))/0x2+-parseInt(_0x5056aa(0x29c))/0x3+-parseInt(_0x5056aa(0x22c))/0x4+-parseInt(_0x5056aa(0x22d))/0x5+parseInt(_0x5056aa(0x237))/0x6+parseInt(_0x5056aa(0x2ea))/0x7*(parseInt(_0x5056aa(0xae))/0x8);if(_0x1251fc===_0x30f8c0)break;else _0x18d4ee['push'](_0x18d4ee['shift']());}catch(_0x147c2f){_0x18d4ee['push'](_0x18d4ee['shift']());}}}(_0x3abf,0xd2786));var Xe=Object[_0x57a880(0x15a)],Ke=(_0x3ce90d,_0x2e4375,_0x29afd8)=>_0x2e4375 in _0x3ce90d?Xe(_0x3ce90d,_0x2e4375,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29afd8}):_0x3ce90d[_0x2e4375]=_0x29afd8,_=(_0x426528,_0x3913e5,_0x2bdb52)=>Ke(_0x426528,typeof _0x3913e5!=_0x57a880(0x19e)?_0x3913e5+'':_0x3913e5,_0x2bdb52);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x57a880(0xf6)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0xb00585,..._0x224d8d}){const _0x170b52=_0x57a880,{icon:_0x535a89,id:_0x41fdc6,className:_0x13dc42,extend:_0x64d442,..._0x2a171c}=_0x224d8d,_0x3262cd=(_0x170b52(0x2c9)+_0x41fdc6+'\x20'+(_0x13dc42||''))[_0x170b52(0x13d)](),_0x5ad6ff=A[_0x170b52(0x1e5)]('_'+Qe());return $e(_0x535a89,''+_0x41fdc6,{'defIds':_0x535a89[_0x170b52(0xd5)],'idSuffix':_0x5ad6ff[_0x170b52(0x86)]},{'ref':_0xb00585,'className':_0x3262cd,..._0x2a171c},_0x64d442);}function $e(_0x110cba,_0x3580cb,_0xf86984,_0x31a425,_0x5c29d3){const _0x445a3b=_0x57a880;return A[_0x445a3b(0x1c1)](_0x110cba['tag'],{'key':_0x3580cb,...Je(_0x110cba,_0xf86984,_0x5c29d3),..._0x31a425},(Ze(_0x110cba,_0xf86984)['children']||[])[_0x445a3b(0x127)]((_0x3effd8,_0x121457)=>$e(_0x3effd8,_0x3580cb+'-'+_0x110cba[_0x445a3b(0x243)]+'-'+_0x121457,_0xf86984,void 0x0,_0x5c29d3)));}function Je(_0x28f5b7,_0x4400f9,_0x2e4019){const _0x53889d=_0x57a880,_0x3ae6b1={..._0x28f5b7[_0x53889d(0x193)]};_0x2e4019!=null&&_0x2e4019[_0x53889d(0x2ed)]&&_0x3ae6b1[_0x53889d(0x9a)]==='colorChannel1'&&(_0x3ae6b1[_0x53889d(0x9a)]=_0x2e4019[_0x53889d(0x2ed)]),_0x28f5b7[_0x53889d(0x243)]===_0x53889d(0x13b)&&_0x3ae6b1['id']&&(_0x3ae6b1['id']=_0x3ae6b1['id']+_0x4400f9['idSuffix']),Object[_0x53889d(0x120)](_0x3ae6b1)['forEach'](([_0x3aec28,_0x44c1df])=>{const _0x52872e=_0x53889d;_0x3aec28===_0x52872e(0x13b)&&typeof _0x44c1df==_0x52872e(0x8b)&&(_0x3ae6b1[_0x3aec28]=_0x44c1df[_0x52872e(0xed)](/url\(#(.*)\)/,_0x52872e(0x34c)+_0x4400f9[_0x52872e(0x19b)]+')'));});const {defIds:_0x4361c9}=_0x4400f9;return!_0x4361c9||_0x4361c9[_0x53889d(0x324)]===0x0||(_0x28f5b7[_0x53889d(0x243)]===_0x53889d(0x2f9)&&_0x3ae6b1[_0x53889d(0x288)]&&(_0x3ae6b1[_0x53889d(0x288)]=_0x3ae6b1['xlink:href']+_0x4400f9[_0x53889d(0x19b)]),Object[_0x53889d(0x120)](_0x3ae6b1)[_0x53889d(0x231)](([_0x5f151a,_0x4e6203])=>{const _0x1637b1=_0x53889d;typeof _0x4e6203==_0x1637b1(0x8b)&&(_0x3ae6b1[_0x5f151a]=_0x4e6203[_0x1637b1(0xed)](/url\(#(.*)\)/,'url(#$1'+_0x4400f9['idSuffix']+')'));})),_0x3ae6b1;}function Ze(_0xefb414,_0x5655b9){const _0x30ff27=_0x57a880;var _0xbfb0b9;const {defIds:_0x323865}=_0x5655b9;return!_0x323865||_0x323865[_0x30ff27(0x324)]===0x0?_0xefb414:_0xefb414[_0x30ff27(0x243)]===_0x30ff27(0x2f2)&&((_0xbfb0b9=_0xefb414[_0x30ff27(0xc4)])!=null&&_0xbfb0b9['length'])?{..._0xefb414,'children':_0xefb414[_0x30ff27(0xc4)]['map'](_0x5c9574=>typeof _0x5c9574['attrs']['id']==_0x30ff27(0x8b)&&_0x323865&&_0x323865[_0x30ff27(0x270)](_0x5c9574[_0x30ff27(0x193)]['id'])?{..._0x5c9574,'attrs':{..._0x5c9574[_0x30ff27(0x193)],'id':_0x5c9574['attrs']['id']+_0x5655b9[_0x30ff27(0x19b)]}}:_0x5c9574)}:_0xefb414;}function Qe(){const _0x4d6ba1=_0x57a880;return Math[_0x4d6ba1(0x23e)]()[_0x4d6ba1(0xc5)](0x24)['substring'](0x2,0x8);}pe[_0x57a880(0x2af)]=_0x57a880(0x143);const et={'tag':'svg','attrs':{'xmlns':_0x57a880(0x30f),'fill':'none','viewBox':_0x57a880(0x216),'width':'1em','height':_0x57a880(0x203)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a880(0x248)},'children':[{'tag':_0x57a880(0x2cc),'attrs':{'stroke':_0x57a880(0x2d7),'d':_0x57a880(0x229),'strokeLinecap':_0x57a880(0x1ad),'strokeLinejoin':_0x57a880(0x1ad),'strokeWidth':1.2}}]},{'tag':_0x57a880(0x2f2),'attrs':{},'children':[{'tag':_0x57a880(0x8c),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x57a880(0x2cc),'attrs':{'fill':_0x57a880(0x2d9),'d':_0x57a880(0xb9)}}]}]}],'defIds':[_0x57a880(0x97)]},xe=A[_0x57a880(0xef)](function(_0x4491e3,_0x377fe7){const _0x2196b8=_0x57a880;return A[_0x2196b8(0x1c1)](pe,Object['assign']({},_0x4491e3,{'id':_0x2196b8(0x1f6),'ref':_0x377fe7,'icon':et}));});xe[_0x57a880(0x2af)]='OffLineIcon';function _0x3624(_0x21dd38,_0x210339){_0x21dd38=_0x21dd38-0x72;const _0x3abfef=_0x3abf();let _0x362417=_0x3abfef[_0x21dd38];return _0x362417;}const tt={'tag':_0x57a880(0x202),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x57a880(0x194),'viewBox':_0x57a880(0x1a6),'width':_0x57a880(0x203),'height':_0x57a880(0x203)},'children':[{'tag':'g','attrs':{'clipPath':_0x57a880(0x2c2)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x57a880(0x21d),'strokeLinecap':'round','strokeLinejoin':_0x57a880(0x1ad),'strokeWidth':1.2}}]},{'tag':_0x57a880(0x2f2),'attrs':{},'children':[{'tag':_0x57a880(0x8c),'attrs':{'id':_0x57a880(0x129)},'children':[{'tag':'path','attrs':{'fill':_0x57a880(0x2d9),'d':_0x57a880(0xb9),'transform':_0x57a880(0x29f)}}]}]}],'defIds':[_0x57a880(0x129)]},Be=A[_0x57a880(0xef)](function(_0x5b4fa6,_0x218b58){const _0x1fc7d0=_0x57a880;return A[_0x1fc7d0(0x1c1)](pe,Object[_0x1fc7d0(0x2ab)]({},_0x5b4fa6,{'id':'on-line-icon','ref':_0x218b58,'icon':tt}));});Be[_0x57a880(0x2af)]=_0x57a880(0x306);function st(_0x4f6f3b){const _0x4a718d=_0x57a880;switch(_0x4f6f3b){case u[_0x4a718d(0x18c)][_0x4a718d(0x8f)]:return _0x4a718d(0x2cd);case u[_0x4a718d(0x18c)][_0x4a718d(0x7d)]:return _0x4a718d(0x2cf);case u['CollaborationStatus'][_0x4a718d(0xd0)]:return'collabStatus.fetchMiss';case u[_0x4a718d(0x18c)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x4a718d(0x18c)][_0x4a718d(0x18e)]:case u[_0x4a718d(0x18c)][_0x4a718d(0x291)]:return _0x4a718d(0x162);case u[_0x4a718d(0x18c)][_0x4a718d(0x1de)]:case u['CollaborationStatus']['PENDING']:return _0x4a718d(0x247);}}function it(_0x4c8622){const _0x4f7d5d=_0x57a880,{status$:_0xc0fcd2}=_0x4c8622,_0x582392=O['useObservable'](_0xc0fcd2,u[_0x4f7d5d(0x18c)][_0x4f7d5d(0xb5)]),_0xbafc6d=O[_0x4f7d5d(0x183)](a[_0x4f7d5d(0x14b)]),_0x567b62=O['useDependency'](u[_0x4f7d5d(0x1b4)]),_0x236b8d=_0x582392!==u[_0x4f7d5d(0x18c)][_0x4f7d5d(0x8f)],_0x13fa9e=_0xbafc6d['t'](st(_0x582392)),_0x1682d6=_0x236b8d?M[_0x4f7d5d(0x210)](Be,{}):M['jsx'](xe,{}),_0x377ddc=A['useCallback'](()=>{const _0x96e91c=_0x4f7d5d;_0x236b8d||_0x567b62[_0x96e91c(0x2eb)]();},[_0x236b8d,_0x567b62]);function _0x150fb2(){const _0x46fe6a=_0x4f7d5d;return M['jsxs'](_0x46fe6a(0x1a5),{'className':'univer-flex\x20univer-items-center','onClick':_0x377ddc,'children':[M[_0x46fe6a(0x210)](_0x46fe6a(0x1a5),{'className':p[_0x46fe6a(0x133)](_0x46fe6a(0x302),{'univer-text-green-500':_0x236b8d,'univer-text-red-500':!_0x236b8d}),'children':_0x1682d6}),M[_0x46fe6a(0x210)](_0x46fe6a(0x1a5),{'className':_0x46fe6a(0x73),'children':_0x13fa9e})]});}return _0x236b8d?_0x150fb2():M[_0x4f7d5d(0x210)](p[_0x4f7d5d(0x113)],{'title':_0xbafc6d['t']('collab-client.tooltip.reconnect'),'children':_0x150fb2()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x17d82e,_0x517d83,_0x35be61,_0x59523f)=>{const _0x3de346=_0x57a880;for(var _0x57cb6d=_0x59523f>0x1?void 0x0:_0x59523f?nt(_0x517d83,_0x35be61):_0x517d83,_0x12a5c7=_0x17d82e[_0x3de346(0x324)]-0x1,_0x31509f;_0x12a5c7>=0x0;_0x12a5c7--)(_0x31509f=_0x17d82e[_0x12a5c7])&&(_0x57cb6d=_0x31509f(_0x57cb6d)||_0x57cb6d);return _0x57cb6d;},K=(_0x2021a6,_0x1063a4)=>(_0x4e6022,_0x182235)=>_0x1063a4(_0x4e6022,_0x182235,_0x2021a6);exports[_0x57a880(0xa9)]=class extends a[_0x57a880(0x23f)]{constructor(_0x5818bd,_0x2591ae,_0x121d87,_0x5a9fbc){const _0x2fc8eb=_0x57a880;super(),_(this,_0x2fc8eb(0x208),new I[(_0x2fc8eb(0x300))](u[_0x2fc8eb(0x18c)][_0x2fc8eb(0xb5)])),(this['_univerInstanceService']=_0x5818bd,this[_0x2fc8eb(0xcc)]=_0x2591ae,this[_0x2fc8eb(0x2b8)]=_0x121d87,this[_0x2fc8eb(0x1bc)]=_0x5a9fbc,this[_0x2fc8eb(0xb4)](),this['_initStatusListener']());}[_0x57a880(0x171)](){const _0x2d276b=_0x57a880;this[_0x2d276b(0x275)](this['_univerInstanceService'][_0x2d276b(0x30a)][_0x2d276b(0x307)](I[_0x2d276b(0x2d1)](()=>{const _0x4d278e=_0x2d276b,_0x14e10c=this[_0x4d278e(0x340)][_0x4d278e(0x79)]();return _0x14e10c?this[_0x4d278e(0x2b8)][_0x4d278e(0x336)](_0x14e10c[_0x4d278e(0x2de)]()):I['of'](null);}),I[_0x2d276b(0x2d1)](_0x350a21=>_0x350a21?_0x350a21[_0x2d276b(0x253)]:I['of'](u[_0x2d276b(0x18c)][_0x2d276b(0xb5)])))[_0x2d276b(0x1e0)](_0x29c427=>{const _0x5b4c2a=_0x2d276b;this[_0x5b4c2a(0x208)]['next'](_0x29c427);}));}['_initStatusComponent'](){const _0x1c2a96=_0x57a880;this['disposeWithMe'](this[_0x1c2a96(0x1bc)][_0x1c2a96(0x93)](O[_0x1c2a96(0x12f)][_0x1c2a96(0x345)],()=>O['connectInjector'](ot({'status$':this['_status$'][_0x1c2a96(0x150)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x57a880(0x200)](a[_0x57a880(0x334)])),K(0x2,a['Inject'](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports[_0x57a880(0xa9)]);function ot(_0x1081e6){const {status$:_0x56d3bb}=_0x1081e6;return function(){const _0x104504=_0x3624;return M[_0x104504(0x210)](it,{'status$':_0x56d3bb});};}const Oe=a[_0x57a880(0xb8)]('uni.network.url-service');var at=Object[_0x57a880(0xdf)],ct=(_0x5e6e14,_0x173415,_0x5a8127,_0x3d1ea6)=>{const _0x5ec595=_0x57a880;for(var _0x3623a6=_0x3d1ea6>0x1?void 0x0:_0x3d1ea6?at(_0x173415,_0x5a8127):_0x173415,_0x2bfba5=_0x5e6e14[_0x5ec595(0x324)]-0x1,_0x57cd1f;_0x2bfba5>=0x0;_0x2bfba5--)(_0x57cd1f=_0x5e6e14[_0x2bfba5])&&(_0x3623a6=_0x57cd1f(_0x3623a6)||_0x3623a6);return _0x3623a6;},Y=(_0xb6cde1,_0x2240ee)=>(_0x54ae27,_0x41d236)=>_0x2240ee(_0x54ae27,_0x41d236,_0xb6cde1);exports[_0x57a880(0x1f7)]=class extends a[_0x57a880(0xa7)]{constructor(_0x42e54d,_0x2228a7,_0x56bb6d,_0x1e44a6,_0x4c3322){const _0x115ad9=_0x57a880;super(),this[_0x115ad9(0x2a2)]=_0x42e54d,this[_0x115ad9(0xc7)]=_0x2228a7,this[_0x115ad9(0x1d5)]=_0x56bb6d,this[_0x115ad9(0x15c)]=_0x1e44a6,_0x4c3322?_0x4c3322==null||_0x4c3322[_0x115ad9(0x27e)]()[_0x115ad9(0x206)](()=>this[_0x115ad9(0x273)]()):(this[_0x115ad9(0xc7)][_0x115ad9(0x1d3)](_0x115ad9(0x8e),_0x115ad9(0x16b)),this[_0x115ad9(0x273)]());}async[_0x57a880(0x273)](){const _0x5654df=_0x57a880,_0x3b27b0=this[_0x5654df(0x2a2)]['getParam'](_0x5654df(0x249)),_0x5476e7=this[_0x5654df(0x2a2)]['getParam']('type'),_0x5e6951=this[_0x5654df(0x2a2)]['getParam'](_0x5654df(0x1ca));if(!_0x3b27b0||!_0x5476e7){this[_0x5654df(0xc7)]['debug']('[CollaborationDataLoaderController]',_0x5654df(0x28c));return;}const _0x2da2c6=await this[_0x5654df(0x15c)][_0x5654df(0x2b0)](_0x3b27b0,Number(_0x5476e7),_0x5e6951);_0x2da2c6&&_0x2da2c6 instanceof a[_0x5654df(0x323)]&&this[_0x5654df(0x1a3)](_0x2da2c6);}async[_0x57a880(0x1a3)](_0x54e708){const _0x49178a=_0x57a880;await this[_0x49178a(0x2f4)](_0x54e708),_0x54e708[_0x49178a(0x1ac)][_0x49178a(0x307)](I[_0x49178a(0x276)](this[_0x49178a(0xc9)]))[_0x49178a(0x1e0)](_0x3478e3=>{const _0x1b8294=_0x49178a;_0x3478e3&&this[_0x1b8294(0x82)](_0x3478e3);}),this[_0x49178a(0x2a2)]['urlChange$'][_0x49178a(0x307)](I['takeUntil'](this['dispose$']))[_0x49178a(0x1e0)](()=>this[_0x49178a(0x2f4)](_0x54e708));}[_0x57a880(0x82)](_0x4ffc8a,_0x12af85=!0x1){const _0x44aaa2=_0x57a880,_0x355c31=this['_urlService'][_0x44aaa2(0x11e)](_0x44aaa2(0x1ca));_0x4ffc8a[_0x44aaa2(0xab)]()!==_0x355c31&&this['_urlService'][_0x44aaa2(0x115)](_0x44aaa2(0x1ca),_0x4ffc8a[_0x44aaa2(0xab)](),_0x12af85);}async[_0x57a880(0x2f4)](_0x2c2f44){const _0x477d3d=_0x57a880;var _0x593fc0;const _0x4118d8=this['_urlService']['getParam']('subunit');if(!_0x4118d8||!_0x2c2f44['getSheetBySheetId'](_0x4118d8)){const _0x19c9f7=_0x2c2f44[_0x477d3d(0x84)]()[0x0],_0xb20fb3=_0x2c2f44['getSheetBySheetId'](_0x19c9f7);if(!_0xb20fb3)return;this[_0x477d3d(0x82)](_0xb20fb3,!0x0),await this['_commandService'][_0x477d3d(0x166)](v[_0x477d3d(0x9b)]['id'],{'unitId':_0x2c2f44['getUnitId'](),'subUnitId':_0x19c9f7});return;}((_0x593fc0=_0x2c2f44[_0x477d3d(0x31f)]())==null?void 0x0:_0x593fc0[_0x477d3d(0xab)]())!==_0x4118d8&&await this[_0x477d3d(0x1d5)][_0x477d3d(0x166)](v[_0x477d3d(0x9b)]['id'],{'unitId':_0x2c2f44[_0x477d3d(0x2de)](),'subUnitId':_0x4118d8});}},exports[_0x57a880(0x1f7)]=ct([Y(0x0,Oe),Y(0x1,a[_0x57a880(0x349)]),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x57a880(0x90)])),Y(0x4,a[_0x57a880(0x158)](qe[_0x57a880(0x218)]))],exports[_0x57a880(0x1f7)]);var lt=Object[_0x57a880(0xdf)],_t=(_0x1d5498,_0x28cfc0,_0x55d2a3,_0x927fe0)=>{const _0x4da454=_0x57a880;for(var _0x53aff7=_0x927fe0>0x1?void 0x0:_0x927fe0?lt(_0x28cfc0,_0x55d2a3):_0x28cfc0,_0x1c6619=_0x1d5498[_0x4da454(0x324)]-0x1,_0x57c277;_0x1c6619>=0x0;_0x1c6619--)(_0x57c277=_0x1d5498[_0x1c6619])&&(_0x53aff7=_0x57c277(_0x53aff7)||_0x53aff7);return _0x53aff7;},De=(_0x4857fc,_0x34c0f9)=>(_0x486783,_0xa7861a)=>_0x34c0f9(_0x486783,_0xa7861a,_0x4857fc);let me=class extends a[_0x57a880(0xa7)]{constructor(_0x2e460b,_0x16bb2d){const _0x5d1688=_0x57a880;super(),this['_docClipboardService']=_0x2e460b,this[_0x5d1688(0x2a6)]=_0x16bb2d,this[_0x5d1688(0x273)]();}[_0x57a880(0x273)](){const _0x129628=_0x57a880,_0x34cba0=this;this['disposeWithMe'](this[_0x129628(0x2e3)]['addClipboardHook']({'onBeforePasteImage':async _0x1ea37c=>{const _0xcd98=_0x129628,_0x16bf25=await _0x34cba0['_imageIoService'][_0xcd98(0x2bb)](_0x1ea37c);return _0x16bf25?{'source':_0x16bf25[_0xcd98(0x185)],'imageSourceType':_0x16bf25[_0xcd98(0x1f2)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0x57a880(0x1e4)])],me);const Ne=[_0x57a880(0x173),_0x57a880(0x219),_0x57a880(0x1bd),_0x57a880(0x32b),_0x57a880(0x32d),'yellow.400'];class Re extends a[_0x57a880(0x23f)]{constructor(){const _0x406f42=_0x57a880;super(...arguments),_(this,_0x406f42(0x117),new Map()),_(this,_0x406f42(0x1f4),0x0);}[_0x57a880(0x28a)](_0x52e95f){const _0x35b03e=_0x57a880;if(this['_assignedColors'][_0x35b03e(0x222)](_0x52e95f))return this[_0x35b03e(0x117)][_0x35b03e(0x2d2)](_0x52e95f);const _0x22c491=Ne[this[_0x35b03e(0x1f4)]];return this[_0x35b03e(0x1f4)]=(this[_0x35b03e(0x1f4)]+0x1)%Ne['length'],this['_assignedColors'][_0x35b03e(0x15b)](_0x52e95f,_0x22c491),_0x22c491;}}function Fe(_0x11085e){const _0x1e1f67=_0x57a880;let _0x9083ee='';for(const _0x4a8075 of _0x11085e){const {startOffset:_0x1fae2a,endOffset:_0x164ae6,isActive:_0x29538d,rangeType:_0x1fb97a,segmentId:_0x1a6957,segmentPage:_0x449440}=_0x4a8075;_0x9083ee[_0x1e1f67(0x324)]&&(_0x9083ee+=','),_0x9083ee+=_0x1fae2a+':'+_0x164ae6+':'+(_0x29538d?'1':'0')+':'+_0x1fb97a+':'+_0x1a6957+':'+_0x449440;}return _0x9083ee;}function ht(_0xe29c5a){const _0xb58c8c=_0x57a880,_0x34c6c0=_0xe29c5a[_0xb58c8c(0x239)](','),_0x5dc9ae=[];for(const _0x5ad981 of _0x34c6c0){const [_0x137835,_0x44f789,_0x3d2939,_0x51bc9a,_0x29b94f,_0x52c5a6]=_0x5ad981[_0xb58c8c(0x239)](':');_0x5dc9ae[_0xb58c8c(0x18b)]({'startOffset':Number(_0x137835),'endOffset':Number(_0x44f789),'collapsed':_0x137835===_0x44f789,'isActive':_0x3d2939==='1','rangeType':_0x51bc9a===a[_0xb58c8c(0x182)]['TEXT']?a[_0xb58c8c(0x182)][_0xb58c8c(0x16a)]:a[_0xb58c8c(0x182)][_0xb58c8c(0x214)],'segmentId':typeof _0x29b94f==_0xb58c8c(0x8b)?String(_0x29b94f):'','segmentPage':Number(_0x52c5a6!=null?_0x52c5a6:-0x1)});}return _0x5dc9ae['some'](_0x464df2=>_0x464df2[_0xb58c8c(0x285)])||(_0x5dc9ae[0x0][_0xb58c8c(0x285)]=!0x0),_0x5dc9ae;}class be extends a[_0x57a880(0xa7)]{constructor(){const _0x1cdbf5=_0x57a880;super(...arguments),_(this,_0x1cdbf5(0x32e),new I[(_0x1cdbf5(0x300))](null)),_(this,_0x1cdbf5(0x2e5),this[_0x1cdbf5(0x32e)][_0x1cdbf5(0x150)]());}[_0x57a880(0x260)](_0x2510d4){const _0x15d2fd=_0x57a880,{unitID:_0x564cf7,memberID:_0x404887,textRanges:_0x5937d6}=_0x2510d4,_0x2f7ced=Fe(_0x5937d6);if(_0x2f7ced==='')return;const _0x1060af={'unitID':_0x564cf7,'memberID':_0x404887,'selection':_0x2f7ced};this[_0x15d2fd(0x32e)]['next'](_0x1060af);}}var ut=Object[_0x57a880(0xdf)],It=(_0x3b5b41,_0x90ca92,_0x3bdc76,_0x426857)=>{const _0x53efa2=_0x57a880;for(var _0x5a952e=_0x426857>0x1?void 0x0:_0x426857?ut(_0x90ca92,_0x3bdc76):_0x90ca92,_0x7e4e7=_0x3b5b41[_0x53efa2(0x324)]-0x1,_0x1dec5b;_0x7e4e7>=0x0;_0x7e4e7--)(_0x1dec5b=_0x3b5b41[_0x7e4e7])&&(_0x5a952e=_0x1dec5b(_0x5a952e)||_0x5a952e);return _0x5a952e;},U=(_0x48663e,_0x576116)=>(_0x33c0be,_0x492658)=>_0x576116(_0x33c0be,_0x492658,_0x48663e);const St=0x12c,dt=0x64;let ve=class extends a[_0x57a880(0xa7)]{constructor(_0x3a3179,_0x3a2ce6,_0x1629cd,_0x523bd1,_0x1333cb,_0x51cf1e,_0x501a95,_0x17b5a0,_0x41602b){const _0x10b719=_0x57a880;super(),_(this,'_online',!0x1),_(this,_0x10b719(0x273),!0x1),_(this,_0x10b719(0x1d1),new I[(_0x10b719(0x300))](new Map())),_(this,_0x10b719(0x238),this[_0x10b719(0x1d1)][_0x10b719(0x150)]()),_(this,_0x10b719(0x338),new I[(_0x10b719(0x300))]([])),_(this,_0x10b719(0x153),this[_0x10b719(0x338)][_0x10b719(0x307)](I[_0x10b719(0x190)](St))),_(this,_0x10b719(0x1f8),a[_0x10b719(0x346)](_0x20f010=>{const _0x433b2f=_0x10b719,_0x306e8f={'eventID':g[_0x433b2f(0x263)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x433b2f(0x32a)],'memberID':this[_0x433b2f(0x2df)][_0x433b2f(0xce)](),'selection':Fe(_0x20f010)}};this['_session']['send'](_0x306e8f,this[_0x433b2f(0x32a)]);},dt)),(this[_0x10b719(0x32a)]=_0x3a3179,this[_0x10b719(0x2df)]=_0x3a2ce6,this[_0x10b719(0xcc)]=_0x1629cd,this['_colorAssignService']=_0x523bd1,this['_memberService']=_0x1333cb,this['_syncEditingCollabCursorService']=_0x51cf1e,this[_0x10b719(0x317)]=_0x501a95,this[_0x10b719(0x340)]=_0x17b5a0,this[_0x10b719(0x1d5)]=_0x41602b);}get['cursorInfo'](){const _0x27aaf9=_0x57a880;return this[_0x27aaf9(0x1d1)][_0x27aaf9(0x252)]();}get[_0x57a880(0x179)](){const _0x59e226=_0x57a880;return this['_roomMembers$'][_0x59e226(0x252)]();}[_0x57a880(0x180)](){const _0x5d4f7f=_0x57a880;super[_0x5d4f7f(0x180)](),this['_cursorInfo$'][_0x5d4f7f(0x165)](new Map()),this['_cursorInfo$']['complete'](),this[_0x5d4f7f(0x338)]['next']([]),this['_roomMembers$'][_0x5d4f7f(0x220)]();}[_0x57a880(0xe5)](){const _0x98b7d8=_0x57a880;this['_init']||(this['_init']=!0x0,this[_0x98b7d8(0x2df)][_0x98b7d8(0x11b)][_0x98b7d8(0x307)](I[_0x98b7d8(0x276)](this['dispose$']))[_0x98b7d8(0x1e0)](_0x31c65c=>{const _0x23eff5=_0x98b7d8;_0x31c65c===u[_0x23eff5(0x234)][_0x23eff5(0x16e)]?this[_0x23eff5(0x1df)]():this[_0x23eff5(0x2d0)]();}),this[_0x98b7d8(0x2df)][_0x98b7d8(0x353)][_0x98b7d8(0x307)](I[_0x98b7d8(0x276)](this['dispose$']))[_0x98b7d8(0x1e0)](_0x4d5af9=>{const _0x138e47=_0x98b7d8,_0x1b4f39=_0x4d5af9[_0x138e47(0xe3)];_0x1b4f39===g[_0x138e47(0x263)][_0x138e47(0x34e)]&&this['_onCursorUpdate'](_0x4d5af9),_0x1b4f39===g[_0x138e47(0x263)][_0x138e47(0xac)]&&this[_0x138e47(0x17d)](_0x4d5af9);}),this[_0x98b7d8(0x275)](this['_commandService']['onCommandExecuted'](_0x14d3a7=>{const _0x2c27ce=_0x98b7d8,_0x141251=_0x14d3a7[_0x2c27ce(0x1c8)];_0x141251!=null&&this[_0x2c27ce(0xaf)]&&_0x14d3a7['id']===V['SetTextSelectionsOperation']['id']&&_0x141251[_0x2c27ce(0x303)]===this[_0x2c27ce(0x32a)]&&_0x141251[_0x2c27ce(0x169)]===!0x1&&_0x141251[_0x2c27ce(0x119)]['length']>0x0&&this[_0x2c27ce(0x1f8)](_0x141251[_0x2c27ce(0x119)]);})),this[_0x98b7d8(0x2f7)][_0x98b7d8(0x2e5)][_0x98b7d8(0x307)](I[_0x98b7d8(0x276)](this[_0x98b7d8(0xc9)]))['subscribe'](_0x56388d=>{const _0x37e071=_0x98b7d8;if((_0x56388d==null?void 0x0:_0x56388d[_0x37e071(0x32a)])!==this['unitID'])return;const _0x54516a={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x56388d};this[_0x37e071(0x2bd)](_0x54516a);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x35df3e=>{const _0x368f90=_0x98b7d8;if(_0x35df3e[_0x368f90(0x1c8)]==null)return;const _0x310356=_0x35df3e['params'];if(_0x35df3e['id']!==V['RichTextEditingMutation']['id']||_0x310356[_0x368f90(0x303)]!==this[_0x368f90(0x32a)])return;const _0x5ddeef={'id':_0x368f90(0x10e),'params':_0x310356},_0x280aca=this[_0x368f90(0x16c)];for(const [_0x48822b,_0x1e1690]of _0x280aca){const _0x3c0db2={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x368f90(0x32a)],'actions':null,'textRanges':_0x1e1690[_0x368f90(0x119)]}},_0x78802a=this[_0x368f90(0x317)][_0x368f90(0x33f)](_0x5ddeef,_0x3c0db2,!0x1);if(g[_0x368f90(0x205)](_0x78802a))throw _0x78802a['error'];_0x280aca['set'](_0x48822b,{..._0x1e1690,'ranges':_0x78802a[_0x368f90(0x1e8)][_0x368f90(0x1c8)]['textRanges']});}queueMicrotask(()=>{const _0x168b41=_0x368f90;this[_0x168b41(0x1d1)]['next'](_0x280aca);});})));}[_0x57a880(0x2bd)](_0x3040d1){const _0x2ad171=_0x57a880;var _0xb1e9d7,_0x1f2205;const {memberID:_0x53d5a7,selection:_0x2585c4}=_0x3040d1[_0x2ad171(0x1d0)],_0x1ddfc8=ht(_0x2585c4),_0x19adbf=(_0x1f2205=(_0xb1e9d7=this[_0x2ad171(0xde)][_0x2ad171(0x335)](this[_0x2ad171(0x32a)],_0x53d5a7))==null?void 0x0:_0xb1e9d7['name'])!=null?_0x1f2205:_0x2ad171(0x2ae),_0x176888={'color':this[_0x2ad171(0x110)][_0x2ad171(0x28a)](_0x53d5a7),'name':_0x19adbf,'ranges':_0x1ddfc8},_0x1e5558=this[_0x2ad171(0x16c)];_0x1e5558[_0x2ad171(0x15b)](_0x53d5a7,_0x176888),this[_0x2ad171(0x1d1)]['next'](_0x1e5558);}[_0x57a880(0x17d)](_0x3adf7e){const _0x128492=_0x57a880,{memberID:_0x1f26a1}=_0x3adf7e[_0x128492(0x1d0)],_0x2d89d7=this[_0x128492(0x16c)];_0x2d89d7[_0x128492(0x1e2)](_0x1f26a1),this[_0x128492(0x1d1)][_0x128492(0x165)](_0x2d89d7);}['_toggleOnline'](){const _0x26075c=_0x57a880;var _0x144111;if(this[_0x26075c(0xaf)]=!0x0,((_0x144111=this[_0x26075c(0x340)][_0x26075c(0x79)]())==null?void 0x0:_0x144111['getUnitId']())!==this['unitID'])return;const _0x4ce0af=this[_0x26075c(0xcc)]['get'](V[_0x26075c(0x108)])['getDocRanges']();Array[_0x26075c(0x2c0)](_0x4ce0af)&&_0x4ce0af[_0x26075c(0x324)]>0x0&&this[_0x26075c(0x1f8)](_0x4ce0af);}['_toggleOffline'](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0x57a880(0x200)](a['Injector'])),U(0x3,a[_0x57a880(0x200)](Re)),U(0x4,a['Inject'](u[_0x57a880(0xb1)])),U(0x5,a[_0x57a880(0x200)](be)),U(0x6,g[_0x57a880(0x99)]),U(0x7,a[_0x57a880(0x138)]),U(0x8,a[_0x57a880(0x2ff)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x1e4b17,_0x5e89f6,_0x379e7a,_0x137b6a)=>{const _0x536744=_0x57a880;for(var _0x437ae6=_0x137b6a>0x1?void 0x0:_0x137b6a?ft(_0x5e89f6,_0x379e7a):_0x5e89f6,_0x422bbb=_0x1e4b17[_0x536744(0x324)]-0x1,_0x2d4f02;_0x422bbb>=0x0;_0x422bbb--)(_0x2d4f02=_0x1e4b17[_0x422bbb])&&(_0x437ae6=_0x2d4f02(_0x437ae6)||_0x437ae6);return _0x437ae6;},w=(_0x578664,_0x1c9084)=>(_0x329d0c,_0x127cb7)=>_0x1c9084(_0x329d0c,_0x127cb7,_0x578664);const vt=0x12c,gt=0x64,Et=()=>{let _0x43d34a=[],_0x3e8b55=!0x1;return _0x48a663=>{const _0x23f786=_0x3624;_0x43d34a[_0x23f786(0x18b)](_0x48a663),_0x3e8b55||(_0x3e8b55=!0x0,setTimeout(()=>{const _0x1bcfd4=_0x23f786;_0x43d34a[_0x1bcfd4(0x231)](_0x21f5de=>_0x21f5de()),_0x43d34a=[],_0x3e8b55=!0x1;}));};};let ge=class extends a[_0x57a880(0xa7)]{constructor(_0x530c03,_0x54664a,_0x14d043,_0xaa434b,_0x1030e4,_0x3e15ca,_0x487432,_0x547004){const _0xe925c9=_0x57a880;super(),_(this,_0xe925c9(0xaf),!0x1),_(this,_0xe925c9(0x273),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0xe925c9(0x238),this[_0xe925c9(0x1d1)][_0xe925c9(0x150)]()),_(this,'_roomMembers$',new I[(_0xe925c9(0x300))]([])),_(this,'roomMembers$',this[_0xe925c9(0x338)][_0xe925c9(0x307)](I[_0xe925c9(0x190)](vt))),_(this,_0xe925c9(0x1f8),a[_0xe925c9(0x346)]((_0x40e93f,_0x759b37)=>{const _0x285951=_0xe925c9,_0xb2f0c9={'eventID':g['CollaborationEvent'][_0x285951(0x34e)],'data':{'unitID':this[_0x285951(0x32a)],'memberID':this['_session'][_0x285951(0xce)](),'selection':B[_0x285951(0x1ea)](_0x40e93f,_0x759b37[_0x285951(0x24d)])}};this['_session']['send'](_0xb2f0c9,this['unitID']);},gt)),(this['unitID']=_0x530c03,this[_0xe925c9(0x2df)]=_0x54664a,this[_0xe925c9(0xcc)]=_0x14d043,this[_0xe925c9(0x110)]=_0xaa434b,this[_0xe925c9(0xde)]=_0x1030e4,this[_0xe925c9(0x340)]=_0x3e15ca,this[_0xe925c9(0x1d5)]=_0x487432,this[_0xe925c9(0x319)]=_0x547004);}get[_0x57a880(0x16c)](){const _0x2a8a6d=_0x57a880;return this['_cursorInfo$'][_0x2a8a6d(0x252)]();}get[_0x57a880(0x179)](){const _0x324bd5=_0x57a880;return this[_0x324bd5(0x338)]['getValue']();}[_0x57a880(0x180)](){const _0x326b74=_0x57a880;super[_0x326b74(0x180)](),this[_0x326b74(0x1d1)][_0x326b74(0x165)](new Map()),this[_0x326b74(0x1d1)][_0x326b74(0x220)](),this[_0x326b74(0x338)][_0x326b74(0x165)]([]),this[_0x326b74(0x338)][_0x326b74(0x220)]();}['init'](){const _0x5ca806=_0x57a880;this['_init']||(this[_0x5ca806(0x273)]=!0x0,this['_session'][_0x5ca806(0x11b)][_0x5ca806(0x307)](I[_0x5ca806(0x276)](this[_0x5ca806(0xc9)]))[_0x5ca806(0x1e0)](_0x500874=>{const _0x173156=_0x5ca806;_0x500874===u[_0x173156(0x234)][_0x173156(0x16e)]?this['_toggleOnline']():this[_0x173156(0x2d0)]();}),this[_0x5ca806(0x2df)][_0x5ca806(0x353)][_0x5ca806(0x307)](I[_0x5ca806(0x276)](this['dispose$']))[_0x5ca806(0x1e0)](_0x48b00e=>{const _0x24f224=_0x5ca806,_0x59a11d=_0x48b00e[_0x24f224(0xe3)];_0x59a11d===g[_0x24f224(0x263)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x48b00e),_0x59a11d===g[_0x24f224(0x263)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x48b00e);}),this[_0x5ca806(0x7b)](),this[_0x5ca806(0x275)](this['_commandService']['onCommandExecuted'](_0x2cf75c=>{const _0x36df98=_0x5ca806;if(this[_0x36df98(0xaf)]&&_0x2cf75c['id']===v[_0x36df98(0x101)]['id']&&_0x2cf75c[_0x36df98(0x1c8)][_0x36df98(0x303)]===this[_0x36df98(0x32a)]){const _0x17c615=_0x2cf75c['params'];this[_0x36df98(0x1f8)](_0x17c615[_0x36df98(0x14e)],_0x17c615[_0x36df98(0x241)][0x0]);}})));}[_0x57a880(0x2bd)](_0x3a00a7){const _0x1bbbb3=_0x57a880;var _0x2cba39,_0x107e42;const {memberID:_0xfda85,selection:_0x2c8a7d}=_0x3a00a7['data'],{sheetName:_0x2ed4e9,range:_0x506815}=B[_0x1bbbb3(0x13f)](_0x2c8a7d),_0x4b1570={'name':(_0x107e42=(_0x2cba39=this[_0x1bbbb3(0xde)]['getMember'](this[_0x1bbbb3(0x32a)],_0xfda85))==null?void 0x0:_0x2cba39['name'])!=null?_0x107e42:'Unknown\x20user','range':this['_getMergeRange'](_0x2ed4e9,_0x506815),'sheetID':_0x2ed4e9,'color':this[_0x1bbbb3(0x110)][_0x1bbbb3(0x28a)](_0xfda85),'selection':_0x2c8a7d},_0x5edd4c=this[_0x1bbbb3(0x16c)];_0x5edd4c['set'](_0xfda85,_0x4b1570),this[_0x1bbbb3(0x1d1)][_0x1bbbb3(0x165)](_0x5edd4c);}['_onCursorDelete'](_0x2d6e32){const _0xeb1ac6=_0x57a880,{memberID:_0x49f517}=_0x2d6e32['data'],_0x4df48c=this[_0xeb1ac6(0x16c)];_0x4df48c['delete'](_0x49f517),this[_0xeb1ac6(0x1d1)][_0xeb1ac6(0x165)](_0x4df48c);}[_0x57a880(0x1d9)](_0x3908f4,_0x3200ad){const _0x4732c6=_0x57a880;var _0x3f6e3e,_0x314329;const _0x40e0fe=(_0x314329=(_0x3f6e3e=this[_0x4732c6(0x340)]['getUniverSheetInstance'](this[_0x4732c6(0x32a)]))==null?void 0x0:_0x3f6e3e[_0x4732c6(0x22f)](_0x3908f4))==null?void 0x0:_0x314329[_0x4732c6(0x2d6)]();return(_0x40e0fe==null?void 0x0:_0x40e0fe[_0x4732c6(0x23b)](_0x479d73=>a[_0x4732c6(0x34d)][_0x4732c6(0x2f6)](_0x479d73,_0x3200ad)))||_0x3200ad;}[_0x57a880(0x7b)](){const _0x2c0da9=_0x57a880,_0x461af8=new a[(_0x2c0da9(0x2ee))](),_0x442c41=Et(),_0x1079c9=()=>{const _0x38dd46=_0x2c0da9;_0x461af8['dispose']();const _0x34c864=(_0x53fb31,_0x205738,_0x52cd57,_0x4e78cc)=>{const _0x5da8f6=_0x3624;let _0x80336f=[];switch(_0x53fb31['id']){case v[_0x5da8f6(0x10f)][_0x5da8f6(0x197)]:{_0x80336f=v[_0x5da8f6(0x177)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0x16d)]:{_0x80336f=v[_0x5da8f6(0x21b)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0x1ba)]:{_0x80336f=v[_0x5da8f6(0x316)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)]['InsertRangeMoveDownCommandId']:{_0x80336f=v[_0x5da8f6(0x17e)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0x2dc)]:{_0x80336f=v[_0x5da8f6(0x32f)](_0x53fb31,_0x4e78cc);break;}case v['EffectRefRangId'][_0x5da8f6(0x343)]:{_0x80336f=v[_0x5da8f6(0x325)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0x292)]:{_0x80336f=v[_0x5da8f6(0x1ab)](_0x53fb31,_0x4e78cc);break;}case v[_0x5da8f6(0x10f)][_0x5da8f6(0xbc)]:{_0x80336f=v[_0x5da8f6(0x294)](_0x53fb31,_0x4e78cc);break;}case v['EffectRefRangId'][_0x5da8f6(0x1d2)]:{_0x80336f=v[_0x5da8f6(0x2e4)](_0x53fb31,_0x4e78cc);break;}}const _0x2e02f1=v[_0x5da8f6(0x1b0)](_0x80336f,_0x4e78cc),_0x1efd6b=this[_0x5da8f6(0x16c)]['get'](_0x205738);if(_0x1efd6b&&_0x2e02f1){const _0x2e4c0e={..._0x1efd6b,'range':_0x2e02f1};this[_0x5da8f6(0x16c)][_0x5da8f6(0x15b)](_0x205738,_0x2e4c0e),_0x442c41(()=>{const _0x28458d=_0x5da8f6,_0x3c7c16=this[_0x28458d(0x319)]['registerRefRange'](_0x2e02f1,_0x34b93a=>(_0x3c7c16[_0x28458d(0x180)](),_0x34c864(_0x34b93a,_0x205738,_0x52cd57,_0x2e02f1)));_0x461af8[_0x28458d(0x78)](_0x3c7c16);});}return{'redos':[],'undos':[]};};this[_0x38dd46(0x16c)][_0x38dd46(0x231)]((_0x27eef3,_0x4272a4)=>{const _0x3a14c8=_0x38dd46,{range:_0x71c65,sheetID:_0xe70a14}=_0x27eef3,_0x1701bf=this['_refRangeService'][_0x3a14c8(0x87)](_0x71c65,_0x140633=>(_0x1701bf[_0x3a14c8(0x180)](),_0x34c864(_0x140633,_0x4272a4,_0xe70a14,_0x71c65)));_0x461af8['add'](_0x1701bf);});};this['disposeWithMe'](a[_0x2c0da9(0xa2)](this[_0x2c0da9(0x1d1)]['subscribe'](()=>{_0x1079c9();})));}[_0x57a880(0x1df)](){const _0x3dabb0=_0x57a880;var _0x2ca258,_0x496e60;if(this[_0x3dabb0(0xaf)]=!0x0,((_0x2ca258=this[_0x3dabb0(0x340)]['getFocusedUnit']())==null?void 0x0:_0x2ca258[_0x3dabb0(0x2de)]())!==this[_0x3dabb0(0x32a)])return;const _0x367fba=(_0x496e60=this[_0x3dabb0(0xcc)]['get'](v[_0x3dabb0(0x209)])['getCurrentSelections']())==null?void 0x0:_0x496e60[0x0],_0x314790=this[_0x3dabb0(0x340)][_0x3dabb0(0x25d)](a[_0x3dabb0(0x1e7)][_0x3dabb0(0x265)])[_0x3dabb0(0x31f)]();_0x367fba&&_0x314790&&this[_0x3dabb0(0x1f8)](_0x314790['getSheetId'](),_0x367fba);}[_0x57a880(0x2d0)](){const _0x106d50=_0x57a880;this[_0x106d50(0xaf)]=!0x1;}};ge=mt([w(0x2,a[_0x57a880(0x200)](a['Injector'])),w(0x3,a[_0x57a880(0x200)](Re)),w(0x4,a[_0x57a880(0x200)](u['MemberService'])),w(0x5,a[_0x57a880(0x138)]),w(0x6,a[_0x57a880(0x2ff)]),w(0x7,a[_0x57a880(0x200)](v[_0x57a880(0x2b1)]))],ge);var Ct=Object[_0x57a880(0xdf)],Tt=(_0x433aba,_0x53ef73,_0x742cfe,_0x4284c6)=>{for(var _0x18a5af=_0x4284c6>0x1?void 0x0:_0x4284c6?Ct(_0x53ef73,_0x742cfe):_0x53ef73,_0xb90269=_0x433aba['length']-0x1,_0x1887eb;_0xb90269>=0x0;_0xb90269--)(_0x1887eb=_0x433aba[_0xb90269])&&(_0x18a5af=_0x1887eb(_0x18a5af)||_0x18a5af);return _0x18a5af;},ce=(_0x1e0137,_0x4f99fd)=>(_0x363182,_0x5a49b2)=>_0x4f99fd(_0x363182,_0x5a49b2,_0x1e0137);let F=class extends a[_0x57a880(0xa7)]{constructor(_0x190404,_0x3c9e77,_0x128d74){const _0x234963=_0x57a880;super(),_(this,_0x234963(0x22b),new Map()),_(this,_0x234963(0xe9),new I[(_0x234963(0x242))]()),(this[_0x234963(0x340)]=_0x190404,this['_injector']=_0x3c9e77,this[_0x234963(0x24a)]=_0x128d74,this[_0x234963(0x273)]());}[_0x57a880(0x180)](){const _0x35b2b8=_0x57a880;super[_0x35b2b8(0x180)](),this[_0x35b2b8(0xe9)][_0x35b2b8(0x220)](),this[_0x35b2b8(0x22b)][_0x35b2b8(0x231)](_0x564a27=>_0x564a27[_0x35b2b8(0x180)]());}[_0x57a880(0xf3)](_0x3c03fd){const _0x3086f6=_0x57a880;return this['_entities'][_0x3086f6(0x222)](_0x3c03fd)?this[_0x3086f6(0x22b)]['get'](_0x3c03fd)[_0x3086f6(0x238)]:this['_entityInit$'][_0x3086f6(0x307)](I[_0x3086f6(0x1dd)](_0x24ae00=>_0x24ae00[_0x3086f6(0x32a)]===_0x3c03fd),I[_0x3086f6(0x2d1)](_0xf01a8e=>_0xf01a8e[_0x3086f6(0x238)]));}[_0x57a880(0x273)](){const _0x2dbeb9=_0x57a880;this[_0x2dbeb9(0x340)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x2dbeb9(0x265)])[_0x2dbeb9(0x307)](I['takeUntil'](this[_0x2dbeb9(0xc9)]))[_0x2dbeb9(0x1e0)](async _0x16280a=>{const _0x4c39bc=_0x2dbeb9,_0xc33b28=_0x16280a[_0x4c39bc(0x2de)](),_0x3eac21=await this[_0x4c39bc(0x26e)](_0xc33b28);this[_0x4c39bc(0xe9)][_0x4c39bc(0x165)](_0x3eac21),this[_0x4c39bc(0x22b)][_0x4c39bc(0x15b)](_0xc33b28,_0x3eac21);}),this[_0x2dbeb9(0x340)]['getTypeOfUnitAdded$'](a[_0x2dbeb9(0x1e7)][_0x2dbeb9(0x20c)])[_0x2dbeb9(0x307)](I[_0x2dbeb9(0x276)](this[_0x2dbeb9(0xc9)]))['pipe'](I[_0x2dbeb9(0x1dd)](_0x1a530f=>!_0x1a530f[_0x2dbeb9(0x2de)]()[_0x2dbeb9(0x277)]('__')))[_0x2dbeb9(0x1e0)](async _0x2ff84f=>{const _0xb116b7=_0x2dbeb9,_0x3378d4=_0x2ff84f[_0xb116b7(0x2de)](),_0x406185=await this['_startDocCollabCursor'](_0x3378d4);this['_entityInit$'][_0xb116b7(0x165)](_0x406185),this[_0xb116b7(0x22b)][_0xb116b7(0x15b)](_0x3378d4,_0x406185);}),I[_0x2dbeb9(0x140)](this[_0x2dbeb9(0x340)][_0x2dbeb9(0x72)](a[_0x2dbeb9(0x1e7)][_0x2dbeb9(0x20c)]),this[_0x2dbeb9(0x340)][_0x2dbeb9(0x72)](a[_0x2dbeb9(0x1e7)]['UNIVER_SHEET']))[_0x2dbeb9(0x307)](I[_0x2dbeb9(0x276)](this['dispose$']))[_0x2dbeb9(0x1e0)](_0x3555e7=>{const _0x604992=_0x2dbeb9,_0x4fc102=_0x3555e7[_0x604992(0x2de)](),_0x4c5820=this[_0x604992(0x22b)]['get'](_0x4fc102);_0x4c5820&&(_0x4c5820[_0x604992(0x180)](),this[_0x604992(0x22b)][_0x604992(0x1e2)](_0x4fc102));});}async[_0x57a880(0x26e)](_0x4ca769){const _0x310630=_0x57a880,_0x52e8d2=await this[_0x310630(0x24a)][_0x310630(0xbe)](_0x4ca769),_0x371df4=this[_0x310630(0xcc)][_0x310630(0x114)](ge,_0x4ca769,_0x52e8d2);return _0x371df4[_0x310630(0xe5)](),_0x371df4;}async[_0x57a880(0xc3)](_0x2c6f97){const _0xe7b848=_0x57a880,_0x23492a=await this[_0xe7b848(0x24a)][_0xe7b848(0xbe)](_0x2c6f97),_0xdcc467=this['_injector'][_0xe7b848(0x114)](ve,_0x2c6f97,_0x23492a);return _0xdcc467[_0xe7b848(0xe5)](),_0xdcc467;}};F=Tt([ce(0x0,a[_0x57a880(0x138)]),ce(0x1,a[_0x57a880(0x200)](a[_0x57a880(0x334)])),ce(0x2,a[_0x57a880(0x200)](u[_0x57a880(0x1b4)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x3569e8,_0x5b86c5){const _0x48e01d=_0x57a880;let {radius:_0x5a340a,width:_0x58ec90,height:_0x27a026}=_0x5b86c5;_0x5a340a=_0x5a340a!=null?_0x5a340a:0x0,_0x58ec90=_0x58ec90!=null?_0x58ec90:0x1e,_0x27a026=_0x27a026!=null?_0x27a026:0x1e;let _0xb969a1=0x0,_0x4d816d=0x0,_0x4ceeca=0x0;_0xb969a1=_0x4d816d=_0x4ceeca=Math[_0x48e01d(0x28b)](_0x5a340a,_0x58ec90/0x2,_0x27a026/0x2),_0x3569e8[_0x48e01d(0x254)](),_0x3569e8[_0x48e01d(0x23a)](_0xb969a1,0x0),_0x3569e8[_0x48e01d(0x80)](_0x58ec90-_0x4d816d,0x0),_0x3569e8['arc'](_0x58ec90-_0x4d816d,_0x4d816d,_0x4d816d,Math['PI']*0x3/0x2,0x0,!0x1),_0x3569e8[_0x48e01d(0x80)](_0x58ec90,_0x27a026-_0x4ceeca),_0x3569e8[_0x48e01d(0x20e)](_0x58ec90-_0x4ceeca,_0x27a026-_0x4ceeca,_0x4ceeca,0x0,Math['PI']/0x2,!0x1),_0x3569e8[_0x48e01d(0x80)](0x0,_0x27a026),_0x3569e8[_0x48e01d(0x80)](0x0,_0xb969a1),_0x3569e8[_0x48e01d(0x20e)](_0xb969a1,_0xb969a1,_0xb969a1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3569e8[_0x48e01d(0x12d)](),_0x5b86c5[_0x48e01d(0x9a)]&&(_0x3569e8[_0x48e01d(0x236)](),_0x3569e8[_0x48e01d(0xc8)]=_0x5b86c5[_0x48e01d(0x9a)],_0x5b86c5[_0x48e01d(0x332)]===_0x48e01d(0x2e1)?_0x3569e8[_0x48e01d(0x9a)](_0x48e01d(0x2e1)):_0x3569e8[_0x48e01d(0x9a)](),_0x3569e8[_0x48e01d(0x25a)]());}class re extends C['Shape']{constructor(_0x1d4c51,_0x49e121){const _0x425c32=_0x57a880;super(_0x1d4c51,_0x49e121),_(this,_0x425c32(0x154)),_(this,_0x425c32(0x16f)),(this['color']=_0x49e121==null?void 0x0:_0x49e121[_0x425c32(0x154)],this['text']=_0x49e121==null?void 0x0:_0x49e121['text']);}static['drawWith'](_0x1f401d,_0x41c0ec){const _0x45a7f8=_0x57a880,{text:_0x465ac0,color:_0x333db5}=_0x41c0ec;_0x1f401d[_0x45a7f8(0x236)](),_0x1f401d[_0x45a7f8(0x31e)]=_0x45a7f8(0x31a);const _0x38090e=_0x1f401d[_0x45a7f8(0x21c)](_0x465ac0)[_0x45a7f8(0x18f)],_0x367c0b=Math[_0x45a7f8(0x28b)](_0x38090e+0x2*le,Ue);Ot(_0x1f401d,{'height':X,'radius':0x4,'width':_0x367c0b,'fill':_0x333db5}),_0x1f401d['fillStyle']='#FFF';const _0x36abd6=le,_0x2345ec=X-pt,_0x51d92e=Ue-0x2*le;if(_0x38090e>_0x51d92e){let _0x39b67b='',_0x442b2e=0x0;for(const _0x55baf0 of _0x465ac0){const _0x311e4c=_0x1f401d[_0x45a7f8(0x21c)](_0x55baf0)[_0x45a7f8(0x18f)];if(_0x442b2e+_0x311e4c<=_0x51d92e-_0x1f401d[_0x45a7f8(0x21c)](_0x45a7f8(0x151))[_0x45a7f8(0x18f)])_0x39b67b+=_0x55baf0,_0x442b2e+=_0x311e4c;else{_0x39b67b+=_0x45a7f8(0x151);break;}}_0x1f401d[_0x45a7f8(0xd6)](_0x39b67b,_0x36abd6,_0x2345ec);}else _0x1f401d['fillText'](_0x465ac0,_0x36abd6,_0x2345ec);_0x1f401d[_0x45a7f8(0x25a)]();}[_0x57a880(0x1cc)](_0x3220f7){const _0x3af381=_0x57a880;re[_0x3af381(0x1f0)](_0x3220f7,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt=_0x57a880(0x251),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x57a880(0x2a4);class Le{constructor(_0x422540,_0xcd7d1f,_0x308a22,_0x2281ec){const _0x2cf804=_0x57a880;_(this,'_shapes',[]),_(this,_0x2cf804(0x187),null),_(this,_0x2cf804(0x156),null),_(this,_0x2cf804(0x2f8),null),_(this,'_hideTimer',null),_(this,_0x2cf804(0xa5),null),(this['_cursor']=_0x422540,this[_0x2cf804(0x2e6)]=_0xcd7d1f,this[_0x2cf804(0x160)]=_0x308a22,this[_0x2cf804(0x2c7)]=_0x2281ec,this[_0x2cf804(0x12c)]());}set['_hover'](_0x318829){const _0x3f05eb=_0x57a880;_0x318829?(this[_0x3f05eb(0x2f8)]&&this[_0x3f05eb(0x2f8)][_0x3f05eb(0x1b9)](),this[_0x3f05eb(0x156)]&&this[_0x3f05eb(0x156)][_0x3f05eb(0x2b9)]()):(this[_0x3f05eb(0x2f8)]&&this[_0x3f05eb(0x2f8)]['show'](),this[_0x3f05eb(0x156)]&&this[_0x3f05eb(0x156)]['hide']());}['dispose'](){const _0x4875b2=_0x57a880;for(const _0x1d4361 of this['_shapes'])_0x1d4361[_0x4875b2(0x180)]();this['_textBubble']&&this[_0x4875b2(0x156)][_0x4875b2(0x180)](),this['_anchorDot']&&this[_0x4875b2(0x2f8)][_0x4875b2(0x180)](),this[_0x4875b2(0x187)]&&this[_0x4875b2(0x187)][_0x4875b2(0x180)](),this[_0x4875b2(0xa5)]&&this[_0x4875b2(0xa5)]();}[_0x57a880(0x12c)](){const _0x2cf541=_0x57a880;var _0x216d93;const {_docSkeleton:_0x802b93,_document:_0x2c8aca}=this,{color:_0x2c5530,name:_0x278550,ranges:_0xb72d9e}=this[_0x2cf541(0x13c)],_0x5de5db=_0x2c8aca[_0x2cf541(0x312)](),{docsLeft:_0x2737c7,docsTop:_0x4588cd}=_0x5de5db,_0x519cac=new T[(_0x2cf541(0x159))](_0x5de5db,_0x802b93);for(const {startOffset:_0x4d0aa5,endOffset:_0x3f3de8,rangeType:_0x3489e1,segmentId:_0x26c1d9,segmentPage:_0x579879,collapsed:_0x50706d,isActive:_0xd0eb73}of _0xb72d9e){const _0x368828=_0x802b93[_0x2cf541(0x33a)](_0x4d0aa5,!0x0,_0x26c1d9,_0x579879);let _0x3f9bab=_0x802b93[_0x2cf541(0x33a)](_0x3f3de8,!0x0,_0x26c1d9,_0x579879);if(_0x3f9bab==null&&(_0x3f9bab=_0x802b93[_0x2cf541(0x33a)](_0x3f3de8-0x1,!0x1,_0x26c1d9,_0x579879)),_0xd0eb73){const {contentBoxPointGroup:_0xa88dcc}=_0x519cac[_0x2cf541(0x2a5)](_0x3f9bab,_0x3f9bab);if(_0xa88dcc[_0x2cf541(0x324)]===0x0)continue;this['_drawAnchor'](_0x2c5530,_0xa88dcc,_0x2737c7,_0x4588cd,_0x278550),this[_0x2cf541(0xa5)]=this[_0x2cf541(0x2e9)]();}if(_0x368828&&_0x3f9bab){if(_0x3489e1===a['DOC_RANGE_TYPE'][_0x2cf541(0x214)]){const _0x4eaf69=new T[(_0x2cf541(0x278))](_0x5de5db,_0x802b93),{pointGroup:_0x47e8be}=(_0x216d93=_0x4eaf69[_0x2cf541(0x2a5)](_0x368828,_0x3f9bab))!=null?_0x216d93:{};if(_0x47e8be==null||_0x47e8be[_0x2cf541(0x324)]===0x0)continue;this[_0x2cf541(0x264)](_0x2c5530,_0x47e8be,_0x2737c7,_0x4588cd);}else{if(!_0x50706d){const {borderBoxPointGroup:_0x5a3638}=_0x519cac['getRangePointData'](_0x368828,_0x3f9bab);if(_0x5a3638[_0x2cf541(0x324)]===0x0)continue;this['_drawTextRange'](_0x2c5530,_0x5a3638,_0x2737c7,_0x4588cd);}}}}}[_0x57a880(0xb2)](_0x22f27e,_0x38562f,_0x16f954,_0x352286,_0x4b3f21){const _0x92bec0=_0x57a880,_0x4d5e6f=this[_0x92bec0(0x1a9)](_0x38562f),{left:_0x118e12,top:_0x2c6004,height:_0x16ae75}=_0x4d5e6f,_0x2738ce=this[_0x92bec0(0x29b)](),_0x576fd3=Nt/_0x2738ce,_0x5dd727=new C[(_0x92bec0(0x136))](_e+a['generateRandomId'](H),{'left':_0x118e12+_0x16f954-_0x576fd3,'top':_0x2c6004+_0x352286,'height':_0x16ae75,'width':Dt,'fill':_0x22f27e||C[_0x92bec0(0x1f5)](a[_0x92bec0(0x13a)][_0x92bec0(0x1a0)],0x0),'strokeWidth':_0x576fd3,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x5dd727,this[_0x92bec0(0x2e6)]['addObject'](_0x5dd727,T[_0x92bec0(0x26b)]);const _0x58f93f=new C[(_0x92bec0(0x136))](_e+a['generateRandomId'](H),{'left':_0x118e12+_0x16f954-_0x576fd3,'top':_0x2c6004+_0x352286-he/0x2,'height':he,'width':he,'fill':_0x22f27e||C[_0x92bec0(0x1f5)](a[_0x92bec0(0x13a)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x22f27e||C['getColor'](a[_0x92bec0(0x13a)][_0x92bec0(0x1a0)],0x0),'evented':!0x1});this[_0x92bec0(0x2f8)]=_0x58f93f,this['_scene'][_0x92bec0(0x266)](_0x58f93f,T[_0x92bec0(0x26b)]);const _0x2dc28c=new re(_e+a[_0x92bec0(0x289)](H),{'left':_0x118e12+_0x16f954-_0x576fd3,'top':_0x2c6004+_0x352286-X,'text':_0x4b3f21,'color':_0x22f27e});this[_0x92bec0(0x156)]=_0x2dc28c,this[_0x92bec0(0x2e6)]['addObject'](_0x2dc28c,T[_0x92bec0(0x26b)]),this[_0x92bec0(0xe0)]=!0x1;}[_0x57a880(0x2e9)](){const _0x43ef00=_0x57a880,_0x29e0b1=this[_0x43ef00(0x187)]['onPointerEnter$'][_0x43ef00(0x2a9)](()=>{const _0xda6ceb=_0x43ef00;this[_0xda6ceb(0xe0)]=!0x0;}),_0x5d75f6=this[_0x43ef00(0x187)][_0x43ef00(0x1b1)]['subscribeEvent'](()=>{const _0x21c13d=_0x43ef00;this['_hideTimer']&&clearTimeout(this[_0x21c13d(0x170)]),this[_0x21c13d(0x170)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1afee7=_0x43ef00;_0x29e0b1['unsubscribe'](),_0x5d75f6[_0x1afee7(0x122)]();};}[_0x57a880(0x1e9)](_0xa87fbd,_0x243dfd,_0x95c18f,_0x7887ac){const _0x3c9321=_0x57a880,_0x5cc236=new a['ColorKit'](_0xa87fbd)[_0x3c9321(0x250)](0.2)[_0x3c9321(0xe6)](),_0x170970=new C[(_0x3c9321(0x204))](Rt+a[_0x3c9321(0x289)](H),{'pointsGroup':_0x243dfd,'fill':_0x5cc236||C['getColor'](a[_0x3c9321(0x13a)]['black'],0.2),'left':_0x95c18f,'top':_0x7887ac,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3c9321(0x33c)][_0x3c9321(0x18b)](_0x170970),this[_0x3c9321(0x2e6)][_0x3c9321(0x266)](_0x170970,T[_0x3c9321(0x26b)]);}[_0x57a880(0x264)](_0x14762b,_0x166aac,_0x36ae8a,_0x1832d1){const _0x516ab9=_0x57a880,_0x324881=new a[(_0x516ab9(0x18d))](_0x14762b)[_0x516ab9(0x250)](0.2)[_0x516ab9(0xe6)](),_0x51ba95=new C['RegularPolygon'](bt+a[_0x516ab9(0x289)](H),{'pointsGroup':_0x166aac,'fill':_0x324881||C[_0x516ab9(0x1f5)](a[_0x516ab9(0x13a)][_0x516ab9(0x1a0)],0.2),'left':_0x36ae8a,'top':_0x1832d1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x516ab9(0x33c)][_0x516ab9(0x18b)](_0x51ba95),this[_0x516ab9(0x2e6)][_0x516ab9(0x266)](_0x51ba95,T[_0x516ab9(0x26b)]);}[_0x57a880(0x1a9)](_0x2ec924){const _0x594d8b=_0x2ec924[0x0],_0x54202=_0x594d8b[0x0],_0x88310d=_0x594d8b[0x2],{x:_0x3b51be,y:_0x4f93e9}=_0x54202,{x:_0x454c98,y:_0x4f84cd}=_0x88310d;return{'left':_0x3b51be,'top':_0x4f93e9,'width':_0x454c98-_0x3b51be,'height':_0x4f84cd-_0x4f93e9};}[_0x57a880(0x29b)](){const _0x333f1f=_0x57a880,{scaleX:_0x93692b,scaleY:_0x4834bc}=this[_0x333f1f(0x2e6)][_0x333f1f(0x14d)]();return Math[_0x333f1f(0x322)](_0x93692b,_0x4834bc);}}var Lt=Object[_0x57a880(0xdf)],Mt=(_0x2299cd,_0x310f36,_0x3ff1de,_0x530ea0)=>{const _0x587bd9=_0x57a880;for(var _0x3134b5=_0x530ea0>0x1?void 0x0:_0x530ea0?Lt(_0x310f36,_0x3ff1de):_0x310f36,_0x398859=_0x2299cd[_0x587bd9(0x324)]-0x1,_0x29dc5c;_0x398859>=0x0;_0x398859--)(_0x29dc5c=_0x2299cd[_0x398859])&&(_0x3134b5=_0x29dc5c(_0x3134b5)||_0x3134b5);return _0x3134b5;},q=(_0x13317f,_0x274d5e)=>(_0x55c3ef,_0x58fee3)=>_0x274d5e(_0x55c3ef,_0x58fee3,_0x13317f);let Ee=class extends a[_0x57a880(0xa7)]{constructor(_0x15474b,_0x14b7aa,_0x119ead,_0xea9650,_0x1db6e2){const _0x211bdf=_0x57a880;super(),_(this,_0x211bdf(0x10a),[]),_(this,'_cursors',[]),(this[_0x211bdf(0x135)]=_0x15474b,this[_0x211bdf(0x2a3)]=_0x14b7aa,this[_0x211bdf(0x305)]=_0x119ead,this[_0x211bdf(0x1d5)]=_0xea9650,this['_themeService']=_0x1db6e2,this[_0x211bdf(0x273)]());}[_0x57a880(0x273)](){const _0x264833=_0x57a880,_0x21f5a4=this[_0x264833(0x135)][_0x264833(0x303)],_0x2953be=this[_0x264833(0x2a3)];this[_0x264833(0x275)](I[_0x264833(0x33e)]([this[_0x264833(0x305)][_0x264833(0xf3)](_0x21f5a4),this['_themeService'][_0x264833(0x1c2)]])[_0x264833(0x307)]($[_0x264833(0x127)](([_0x21e23b,_0x2d184c])=>({'skeleton':_0x2953be[_0x264833(0x17c)](),'cursors':[..._0x21e23b['values']()][_0x264833(0x271)](_0x42c4f1=>({..._0x42c4f1,'color':this['_themeService'][_0x264833(0x225)](_0x42c4f1[_0x264833(0x154)])}))})))['subscribe'](_0x29e461=>{const _0x81235a=_0x264833;if(this[_0x81235a(0x10c)](),_0x29e461){const {skeleton:_0x189b7d,cursors:_0x433412}=_0x29e461;this[_0x81235a(0xf1)](_0x189b7d,_0x433412);}})),this[_0x264833(0x34b)](),this['_initCommandExecutedListener']();}[_0x57a880(0xf1)](_0x1c9fa2,_0x426c85){const _0x3faf72=_0x57a880,{scene:_0x1e1998,mainComponent:_0x584955}=this[_0x3faf72(0x135)],_0x264f73=_0x426c85[_0x3faf72(0x127)](_0x27e631=>new Le(_0x27e631,_0x1e1998,_0x1c9fa2,_0x584955));this['_cursorShapes']=_0x264f73,this[_0x3faf72(0x188)]=_0x426c85;}[_0x57a880(0x85)](){const _0x24830b=_0x57a880;this[_0x24830b(0x10c)]();const {scene:_0x2f1f86,mainComponent:_0x17f7ba}=this[_0x24830b(0x135)],_0x131719=this['_docSkeletonManagerService'][_0x24830b(0x17c)](),_0x533a1a=this['_cursors'][_0x24830b(0x127)](_0x14912b=>new Le(_0x14912b,_0x2f1f86,_0x131719,_0x17f7ba));this[_0x24830b(0x10a)]=_0x533a1a;}[_0x57a880(0x10c)](){const _0x5c2e95=_0x57a880;this[_0x5c2e95(0x10a)][_0x5c2e95(0x231)](_0x5bb781=>_0x5bb781[_0x5c2e95(0x180)]()),this['_cursorShapes']=[];}[_0x57a880(0x223)](){const _0x1f06b3=_0x57a880,_0x18b450=[T[_0x1f06b3(0x230)]['id']];this[_0x1f06b3(0x275)](this[_0x1f06b3(0x1d5)][_0x1f06b3(0x267)](_0x4df5fd=>{const _0x2d3e28=_0x1f06b3;_0x18b450[_0x2d3e28(0x270)](_0x4df5fd['id'])&&_0x4df5fd[_0x2d3e28(0x1c8)][_0x2d3e28(0x303)]===this[_0x2d3e28(0x135)][_0x2d3e28(0x303)]&&this['_refreshCollabCursors']();}));}[_0x57a880(0x34b)](){const _0x2d1a3f=_0x57a880;this[_0x2d1a3f(0x275)](a[_0x2d1a3f(0x1b6)](this['_context'][_0x2d1a3f(0x2a1)][_0x2d1a3f(0x98)])[_0x2d1a3f(0x307)]($[_0x2d1a3f(0x1dd)](_0x20086c=>_0x20086c['type']===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x2d1a3f(0xbd)]),$[_0x2d1a3f(0x228)](0x10))[_0x2d1a3f(0x1e0)](()=>{const _0xa865fe=_0x2d1a3f;this[_0xa865fe(0x85)]();}));}};Ee=Mt([q(0x1,a[_0x57a880(0x200)](V[_0x57a880(0x1ff)])),q(0x2,a[_0x57a880(0x200)](F)),q(0x3,a[_0x57a880(0x2ff)]),q(0x4,a['Inject'](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x34560a,_0x151c43){const _0x1bccee=_0x57a880;super(_0x34560a,_0x151c43),_(this,'_color'),_(this,_0x1bccee(0xdc),!0x1),_(this,_0x1bccee(0x147)),_(this,_0x1bccee(0x2b4),''),_(this,'_labelPosition',_0x1bccee(0x348)),_(this,_0x1bccee(0x1c9)),(_0x151c43&&this[_0x1bccee(0x75)](_0x151c43),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x1bccee(0x75)]({'hovered':!0x0})),this[_0x1bccee(0x1b1)]['subscribeEvent'](()=>this[_0x1bccee(0x75)]({'hovered':!0x1})));}[_0x57a880(0x75)](_0xb771e8){const _0x10c925=_0x57a880;var _0x13febf,_0x2ad6db,_0x331f5d,_0x104cf3,_0x23a041,_0x38c648;this[_0x10c925(0xa6)]=(_0x13febf=_0xb771e8[_0x10c925(0x154)])!=null?_0x13febf:this[_0x10c925(0xa6)],this[_0x10c925(0xdc)]=(_0x2ad6db=_0xb771e8[_0x10c925(0x30b)])!=null?_0x2ad6db:this['_hovered'],this[_0x10c925(0x147)]=(_0x331f5d=_0xb771e8[_0x10c925(0x24d)])!=null?_0x331f5d:this['_range'],this[_0x10c925(0x2b4)]=(_0x104cf3=_0xb771e8['name'])!=null?_0x104cf3:this[_0x10c925(0x2b4)],this[_0x10c925(0x161)]=(_0x23a041=_0xb771e8[_0x10c925(0x186)])!=null?_0x23a041:this[_0x10c925(0x161)],this['_backgroundColor']=(_0x38c648=_0xb771e8[_0x10c925(0x19c)])!=null?_0x38c648:this[_0x10c925(0x1c9)],this[_0x10c925(0x1a4)]({'width':_0xb771e8['width'],'height':_0xb771e8[_0x10c925(0x213)]});}['onMouseMove'](_0x3df0d6){const _0x49d477=_0x57a880,{row:_0x1d612a,column:_0x22742b}=_0x3df0d6;if(_0x1d612a>=this[_0x49d477(0x147)]['startRow']&&_0x1d612a<=this[_0x49d477(0x147)][_0x49d477(0x107)]&&_0x22742b>=this[_0x49d477(0x147)][_0x49d477(0xe1)]&&_0x22742b<=this[_0x49d477(0x147)][_0x49d477(0x2da)]){this[_0x49d477(0x75)]({'hovered':!0x0});return;}this[_0x49d477(0x75)]({'hovered':!0x1});}[_0x57a880(0x157)](_0x35aeed){return!0x1;}[_0x57a880(0x1cc)](_0x5e561e){const _0x4645b6=_0x57a880;C['Rect']['drawWith'](_0x5e561e,{'width':this[_0x4645b6(0x18f)],'height':this[_0x4645b6(0x213)],'strokeWidth':Pt,'stroke':this[_0x4645b6(0xa6)],'evented':!0x1,'fill':this[_0x4645b6(0x1c9)]}),this[_0x4645b6(0xdc)]&&(_0x5e561e[_0x4645b6(0x236)](),_0x5e561e[_0x4645b6(0x201)](0x1,0x0,0x0,0x1,this[_0x4645b6(0x18f)],this[_0x4645b6(0x161)]===_0x4645b6(0x15e)?0x0:-X),re[_0x4645b6(0x1f0)](_0x5e561e,{'text':this[_0x4645b6(0x2b4)],'color':this[_0x4645b6(0xa6)]}),_0x5e561e[_0x4645b6(0x25a)]());}}var wt=Object[_0x57a880(0xdf)],yt=(_0x4d4d8a,_0x33075b,_0x3391c3,_0xc92e56)=>{for(var _0x3efaa3=_0xc92e56>0x1?void 0x0:_0xc92e56?wt(_0x33075b,_0x3391c3):_0x33075b,_0x10cb0b=_0x4d4d8a['length']-0x1,_0x208d16;_0x10cb0b>=0x0;_0x10cb0b--)(_0x208d16=_0x4d4d8a[_0x10cb0b])&&(_0x3efaa3=_0x208d16(_0x3efaa3)||_0x3efaa3);return _0x3efaa3;},ue=(_0x2cc31a,_0xf2c4ff)=>(_0x32340b,_0x5ba3ad)=>_0xf2c4ff(_0x32340b,_0x5ba3ad,_0x2cc31a);const $t=0x1389;let Ce=class extends a[_0x57a880(0xa7)]{constructor(_0x34bcac,_0x565776,_0x106325,_0x2e6ed0){const _0x3caf9b=_0x57a880;super(),_(this,_0x3caf9b(0x188),new Set()),_(this,'_lastPointer',null),(this[_0x3caf9b(0x135)]=_0x34bcac,this['_sheetSkeletonManagerService']=_0x565776,this['_collabCursorController']=_0x106325,this[_0x3caf9b(0xc1)]=_0x2e6ed0,this['_init']());}[_0x57a880(0x273)](){const _0xdd1ad4=_0x57a880;this[_0xdd1ad4(0x282)][_0xdd1ad4(0x15d)][_0xdd1ad4(0x307)]($[_0xdd1ad4(0x276)](this[_0xdd1ad4(0xc9)]),$[_0xdd1ad4(0x2d1)](_0xc595ca=>{const _0x1fda87=_0xdd1ad4;if(_0xc595ca){const _0x553745=_0xc595ca[_0x1fda87(0x1c7)];return I[_0x1fda87(0x33e)](this[_0x1fda87(0x305)][_0x1fda87(0xf3)](this['_context']['unitId']),this[_0x1fda87(0xc1)][_0x1fda87(0x1c2)])['pipe']($['map'](([_0x4d1eef,_0x45ff8d])=>{const _0x356b89=new Map();return _0x4d1eef['forEach']((_0x46ffc8,_0x34f6f3)=>{const _0x5e4645=_0x3624;if(_0x46ffc8[_0x5e4645(0x1b5)]===_0x553745){const _0x2a4109={..._0x46ffc8};_0x2a4109[_0x5e4645(0x154)]=this['_themeService'][_0x5e4645(0x225)](_0x46ffc8['color']),_0x356b89[_0x5e4645(0x15b)](_0x34f6f3,_0x2a4109);}}),{'skeleton':_0xc595ca,'cursors':_0x356b89};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0xdd1ad4(0x1e0)](({skeleton:_0x184f8e,cursors:_0x32011e})=>{const _0x247481=_0xdd1ad4;this[_0x247481(0x10c)](),_0x184f8e&&this[_0x247481(0xf1)](_0x184f8e,_0x32011e);}),this[_0xdd1ad4(0x282)][_0xdd1ad4(0x15d)]['subscribe'](_0x37bb26=>{const _0x2ff477=_0xdd1ad4;if(_0x37bb26==null)return;const {skeleton:_0x2e6ea8}=_0x37bb26,{scene:_0x22ab64}=this['_context'];_0x22ab64['onPointerMove$'][_0x2ff477(0x2a9)](a[_0x2ff477(0x346)](_0x29bb83=>{const _0x50548b=_0x2ff477;var _0x2157dd,_0xd469dd;const {offsetX:_0x223d29,offsetY:_0x354ab0}=_0x29bb83,{x:_0xb039ee,y:_0x35c51e}=_0x22ab64[_0x50548b(0x2d5)](C[_0x50548b(0x2be)]['FromArray']([_0x223d29,_0x354ab0])),{scaleX:_0x2fa5f7,scaleY:_0x20ca3c}=_0x22ab64[_0x50548b(0x14d)](),_0x50ab80=_0x22ab64[_0x50548b(0x301)](C['SHEET_VIEWPORT_KEY'][_0x50548b(0x2a8)]),_0x1de096=_0x22ab64[_0x50548b(0x1fc)](C['Vector2'][_0x50548b(0x31c)]([_0xb039ee,_0x35c51e]),_0x50ab80),_0x2d51a8=_0x2e6ea8[_0x50548b(0xdd)](_0x223d29,_0x354ab0,_0x2fa5f7,_0x20ca3c,_0x1de096);((_0x2157dd=this['_lastPointer'])==null?void 0x0:_0x2157dd[_0x50548b(0x81)])===_0x2d51a8[_0x50548b(0x81)]&&((_0xd469dd=this['_lastPointer'])==null?void 0x0:_0xd469dd['row'])===_0x2d51a8[_0x50548b(0x233)]||this[_0x50548b(0x188)][_0x50548b(0x231)](_0x248162=>{const _0xe4e9e=_0x50548b;_0x248162[_0xe4e9e(0x2f5)](_0x2d51a8);});},0x64));});}[_0x57a880(0xf1)](_0x174315,_0x430a88){const _0x3bb257=_0x57a880;var _0x4670bf;const _0x296a77=(_0x4670bf=this[_0x3bb257(0x282)][_0x3bb257(0x1c6)]())==null?void 0x0:_0x4670bf[_0x3bb257(0xf7)];if(!_0x296a77)return;const _0x361cdf=this['_getSheetObject']();if(!_0x361cdf)return;this[_0x3bb257(0x188)][_0x3bb257(0x231)](_0x5377fc=>{const _0x336555=_0x3bb257;_0x5377fc[_0x336555(0xda)]();});const {scene:_0x52c737}=_0x361cdf,_0x296271=xt(Array[_0x3bb257(0x7f)](_0x430a88['values']()))[_0x3bb257(0x127)](_0xa68f6d=>{const _0x48dc9a=_0x3bb257,{color:_0x4d6bc9,range:_0x23334c,name:_0x52d67e,selection:_0x133abe,sheetID:_0x5e7d0d}=_0xa68f6d,{startColumn:_0x1e63d6,startRow:_0xce68e2,endColumn:_0xe759de,endRow:_0x2669c1}=_0x23334c,_0x22a40a=J[_0x48dc9a(0xb7)](_0xce68e2,_0x1e63d6,_0x52c737,_0x296a77),_0x538844=J[_0x48dc9a(0xb7)](_0x2669c1,_0xe759de,_0x52c737,_0x296a77),{columnHeaderHeightAndMarginTop:_0x1d3833}=_0x296a77,{startX:_0x15160b,startY:_0x488313}=_0x22a40a,{endX:_0x4dadf9,endY:_0x4750f0}=_0x538844,_0x189ed8=_0x4dadf9-_0x15160b,_0x51b32e=_0x4750f0-_0x488313,_0x760293={'labelPosition':_0x488313-_0x1d3833>=X?'top':'bottom','sheetID':_0x5e7d0d,'range':_0x23334c,'color':_0x4d6bc9,'name':_0x52d67e,'selection':_0x133abe,'left':_0x15160b,'top':_0x488313,'width':_0x189ed8,'height':_0x51b32e,'evented':!0x1,'zIndex':$t};return new je(_0x52d67e,_0x760293);});_0x52c737[_0x3bb257(0x1c4)](_0x296271,At),this[_0x3bb257(0x188)]=new Set(_0x296271);}[_0x57a880(0x10c)](){const _0x4f29f0=_0x57a880;var _0x1eb4f3;(_0x1eb4f3=this['_cursors'])==null||_0x1eb4f3[_0x4f29f0(0x231)](_0x1073ca=>_0x1073ca[_0x4f29f0(0x180)]());}[_0x57a880(0x25b)](){const _0x449f0d=_0x57a880;return J[_0x449f0d(0x284)](this['_context'][_0x449f0d(0x249)],this[_0x449f0d(0x135)]);}};Ce=yt([ue(0x1,a[_0x57a880(0x200)](J[_0x57a880(0xaa)])),ue(0x2,a['Inject'](F)),ue(0x3,a[_0x57a880(0x200)](a[_0x57a880(0xbb)]))],Ce);function xt(_0x35d9aa){const _0x2c219a=_0x57a880,_0x48053c=new Map();return _0x35d9aa[_0x2c219a(0x231)](_0x26cfa4=>{const _0x1867b7=_0x2c219a;if(_0x48053c['has'](_0x26cfa4[_0x1867b7(0x1ce)])){const _0xca9174=_0x48053c[_0x1867b7(0x2d2)](_0x26cfa4[_0x1867b7(0x1ce)]);_0xca9174[_0x1867b7(0x25f)]+=',\x20'+_0x26cfa4[_0x1867b7(0x25f)];}else _0x48053c[_0x1867b7(0x15b)](_0x26cfa4[_0x1867b7(0x1ce)],_0x26cfa4);}),Array[_0x2c219a(0x7f)](_0x48053c[_0x2c219a(0x226)]());}var Bt=Object[_0x57a880(0xdf)],Ft=(_0x11cf6e,_0x781ebb,_0x3dcfa7,_0x2068b7)=>{const _0x5b0a48=_0x57a880;for(var _0x24e9f4=_0x2068b7>0x1?void 0x0:_0x2068b7?Bt(_0x781ebb,_0x3dcfa7):_0x781ebb,_0x1e2075=_0x11cf6e[_0x5b0a48(0x324)]-0x1,_0x810a88;_0x1e2075>=0x0;_0x1e2075--)(_0x810a88=_0x11cf6e[_0x1e2075])&&(_0x24e9f4=_0x810a88(_0x24e9f4)||_0x24e9f4);return _0x24e9f4;},y=(_0x17fce5,_0x1fe47c)=>(_0x137036,_0x96376c)=>_0x1fe47c(_0x137036,_0x96376c,_0x17fce5);let Z=class extends a[_0x57a880(0x23f)]{constructor(_0x38b47a,_0x31a67f,_0x499865,_0x9109f1,_0x36f161,_0x32afbd){const _0x30381c=_0x57a880;super(),this[_0x30381c(0x2f1)]=_0x38b47a,this[_0x30381c(0x1a7)]=_0x31a67f,this[_0x30381c(0x123)]=_0x499865,this[_0x30381c(0x255)]=_0x9109f1,this[_0x30381c(0x286)]=_0x36f161,this[_0x30381c(0x295)]=_0x32afbd,this['_setupBeforeClosingHandler'](),this[_0x30381c(0x109)]();}['_setupBeforeClosingHandler'](){const _0x1f69b7=_0x57a880;this[_0x1f69b7(0x275)](this[_0x1f69b7(0x2f1)][_0x1f69b7(0x2ba)](()=>{const _0x3ff35f=_0x1f69b7;if(this[_0x3ff35f(0x1a7)][_0x3ff35f(0x296)][_0x3ff35f(0xe7)])return this[_0x3ff35f(0x295)]['t'](_0x3ff35f(0x29e));}));}[_0x57a880(0x109)](){const _0x26c6a6=_0x57a880;this[_0x26c6a6(0x275)](this['_collaborationUIEventService'][_0x26c6a6(0x353)][_0x26c6a6(0x1e0)](_0x5eeadc=>{const _0x18a3ea=_0x26c6a6;_0x5eeadc['id']===u[_0x18a3ea(0x7a)]['OTHER_CLIENT_EDITING']&&this[_0x18a3ea(0x255)][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)]['Warning'],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0x2c5))}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)][_0x18a3ea(0x137)]&&this['_messageService'][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)][_0x18a3ea(0x168)],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0x195))}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)][_0x18a3ea(0x24c)]&&this[_0x18a3ea(0x286)][_0x18a3ea(0x2b9)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x18a3ea(0x295)]['t']('permission.content'),'type':_0x18a3ea(0x337),'duration':0x0}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)]['CONFLICT']&&this[_0x18a3ea(0x255)][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)][_0x18a3ea(0x2f3)],'content':this[_0x18a3ea(0x295)]['t']('collaboration.closeRoom')+'('+_0x5eeadc[_0x18a3ea(0x1d0)]+')'}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)][_0x18a3ea(0x318)]&&this['_messageService'][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)]['Warning'],'content':this[_0x18a3ea(0x295)]['t'](_0x5eeadc[_0x18a3ea(0x1d0)]||'')}),_0x5eeadc['id']===u['CollaborationUIEventId'][_0x18a3ea(0x1f9)]&&this[_0x18a3ea(0x255)][_0x18a3ea(0x2b9)]({'type':p[_0x18a3ea(0x310)][_0x18a3ea(0x168)],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0xcd))}),_0x5eeadc['id']===u[_0x18a3ea(0x7a)]['SOCKET_FAILED']&&this['_messageService']['show']({'type':p[_0x18a3ea(0x310)][_0x18a3ea(0x2f3)],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0x22a))}),_0x5eeadc['id']===u['CollaborationUIEventId'][_0x18a3ea(0x327)]&&this[_0x18a3ea(0x255)][_0x18a3ea(0x2b9)]({'type':p['MessageType'][_0x18a3ea(0x2f3)],'content':this[_0x18a3ea(0x295)]['t'](_0x18a3ea(0x74))});}));}};Z=Ft([y(0x0,O[_0x57a880(0xff)]),y(0x1,u[_0x57a880(0x8a)]),y(0x2,a[_0x57a880(0x200)](u[_0x57a880(0x244)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x57a880(0x14b)]))],Z);var jt=Object[_0x57a880(0xdf)],kt=(_0x265e95,_0x4a81b4,_0x56af36,_0x486de2)=>{for(var _0x1bb169=_0x486de2>0x1?void 0x0:_0x486de2?jt(_0x4a81b4,_0x56af36):_0x4a81b4,_0x136fc3=_0x265e95['length']-0x1,_0x2f1650;_0x136fc3>=0x0;_0x136fc3--)(_0x2f1650=_0x265e95[_0x136fc3])&&(_0x1bb169=_0x2f1650(_0x1bb169)||_0x1bb169);return _0x1bb169;},z=(_0x45952b,_0x10af0b)=>(_0x4cf1b7,_0x1af901)=>_0x10af0b(_0x4cf1b7,_0x1af901,_0x45952b);let Q=class extends a[_0x57a880(0x23f)]{constructor(_0x4ef296,_0x39ecb2,_0xd92d91,_0x5c03ae){const _0x6d4828=_0x57a880;super(),_(this,_0x6d4828(0x139)),(this['_injector']=_0x4ef296,this['_httpService']=_0x39ecb2,this[_0x6d4828(0xc7)]=_0xd92d91,this[_0x6d4828(0x163)]=_0x5c03ae,this[_0x6d4828(0x273)]());}[_0x57a880(0x273)](){const _0x5114c6=_0x57a880;this[_0x5114c6(0x152)](),this[_0x5114c6(0x2e0)](),this[_0x5114c6(0x25c)](),this[_0x5114c6(0x77)]();}[_0x57a880(0x77)](){const _0x5d0598=_0x57a880;this[_0x5d0598(0x275)](this[_0x5d0598(0x163)][_0x5d0598(0x30e)][_0x5d0598(0x1e0)](_0xf3d3fa=>{const _0x5cc858=_0x5d0598;this[_0x5cc858(0x139)]=_0xf3d3fa==null?void 0x0:_0xf3d3fa[_0x5cc858(0x14f)];}));}[_0x57a880(0x152)](){const _0x1ee648=_0x57a880,_0x4ed867=_0x54c1f8=>{const _0x457635=_0x3624;var _0x36a491;this[_0x457635(0x1f3)](_0x457635(0x337),'[Window\x20Error]:\x20'+_0x54c1f8[_0x457635(0x315)]+_0x457635(0x2b7)+_0x54c1f8[_0x457635(0xad)]+':'+_0x54c1f8[_0x457635(0x341)]+':'+_0x54c1f8[_0x457635(0x26a)]+'\x0a'+(((_0x36a491=_0x54c1f8['error'])==null?void 0x0:_0x36a491[_0x457635(0x281)])||''));};window['addEventListener'](_0x1ee648(0x337),_0x4ed867),this[_0x1ee648(0x275)](()=>{const _0x31629a=_0x1ee648;window[_0x31629a(0x28d)](_0x31629a(0x337),_0x4ed867);});}[_0x57a880(0x2e0)](){const _0x6909b1=_0x57a880,_0x8f66f2=_0x5ab059=>{const _0x3d1cd6=_0x3624;this['_uploadLog'](_0x3d1cd6(0x337),_0x3d1cd6(0x76)+_0x5ab059[_0x3d1cd6(0xd3)]);};window[_0x6909b1(0x2dd)](_0x6909b1(0xb6),_0x8f66f2),this[_0x6909b1(0x275)](()=>{const _0x348b2d=_0x6909b1;window['removeEventListener'](_0x348b2d(0xb6),_0x8f66f2);});}['_monkeyPatchLogService'](){const _0x55a29d=_0x57a880,_0x364402=this[_0x55a29d(0xc7)][_0x55a29d(0x337)][_0x55a29d(0x1cb)](this[_0x55a29d(0xc7)]);this['_logService'][_0x55a29d(0x337)]=(..._0x4dcf46)=>{const _0x35ecd4=_0x55a29d,_0x4f2ffe=_0x4dcf46['map'](_0x25e301=>_0x25e301 instanceof Error?_0x25e301[_0x35ecd4(0x315)]+'\x0a'+_0x25e301[_0x35ecd4(0x281)]:String(_0x25e301))[_0x35ecd4(0x215)]('\x20');this[_0x35ecd4(0x1f3)](_0x35ecd4(0x337),_0x35ecd4(0x329)+_0x4f2ffe),_0x364402(..._0x4dcf46);},this['disposeWithMe'](()=>{const _0x414e26=_0x55a29d;this[_0x414e26(0xc7)][_0x414e26(0x337)]=_0x364402;});}[_0x57a880(0x1f3)](_0x433941,_0x2f7f26){const _0x4146b8=_0x57a880;try{const _0x5bd811={'userId':this['_memberID'],'logLabel':_0x433941,'content':_0x2f7f26};this[_0x4146b8(0x28f)][_0x4146b8(0x14a)](_0x4146b8(0x224),{'body':_0x5bd811})[_0x4146b8(0x17f)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x57a880(0x200)](a['Injector'])),z(0x1,a[_0x57a880(0x200)](x[_0x57a880(0xe2)])),z(0x2,a['ILogService']),z(0x3,a[_0x57a880(0x200)](u['CollaborationSessionService']))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x57a880(0xdf)],Wt=(_0x4e0710,_0xd15758,_0x5b4925,_0x3b5520)=>{const _0x5b9887=_0x57a880;for(var _0x4b2529=_0x3b5520>0x1?void 0x0:_0x3b5520?Ht(_0xd15758,_0x5b4925):_0xd15758,_0x1dd7b8=_0x4e0710[_0x5b9887(0x324)]-0x1,_0xbd06b8;_0x1dd7b8>=0x0;_0x1dd7b8--)(_0xbd06b8=_0x4e0710[_0x1dd7b8])&&(_0x4b2529=_0xbd06b8(_0x4b2529)||_0x4b2529);return _0x4b2529;},Ae=(_0xd31f3a,_0x13cfd1)=>(_0x19ec52,_0x22e1fd)=>_0x13cfd1(_0x19ec52,_0x22e1fd,_0xd31f3a);let ee=class{constructor(_0x4ed356,_0x144f9a){const _0x360cf9=_0x57a880;this['_transformService']=_0x4ed356,this[_0x360cf9(0x105)]=_0x144f9a;}[_0x57a880(0x25e)](_0x13c738){const _0x5d8b4c=_0x57a880;this[_0x5d8b4c(0x232)](_0x13c738),this['_transformPreviousActiveRange'](_0x13c738);}[_0x57a880(0x178)](_0x18940f){const _0xdcba8c=_0x57a880,{unitID:_0x1576b9}=_0x18940f,_0x5741e5=this['_renderManagerService'][_0xdcba8c(0x2ad)](_0x1576b9)[_0xdcba8c(0x352)](T[_0xdcba8c(0x256)]),{redoCache:_0x3bd5fb}=_0x5741e5['getUndoRedoMutationParamsCache']();if(_0x3bd5fb[_0xdcba8c(0x324)]===0x0)return _0x18940f;let _0x2985a4=a['Tools'][_0xdcba8c(0x149)](_0x18940f['mutations'][0x0]);for(let _0x565e12=0x0;_0x565e12<_0x3bd5fb[_0xdcba8c(0x324)];_0x565e12++){const _0xf17a39={'id':_0xdcba8c(0x10e),'params':{..._0x3bd5fb[_0x565e12]}},_0x3bb116=this['_transformService'][_0xdcba8c(0x33f)](_0x2985a4,_0xf17a39,!0x1);if(g[_0xdcba8c(0x205)](_0x3bb116))throw _0x3bb116[_0xdcba8c(0x337)];_0x2985a4=_0x3bb116['m1Prime'];}return{...a[_0xdcba8c(0xfb)][_0xdcba8c(0x149)](_0x18940f),'mutations':[_0x2985a4]};}[_0x57a880(0x232)](_0x31341a){const _0x14a6ed=_0x57a880,{unitID:_0x45b1fa}=_0x31341a,_0x2beed5=this[_0x14a6ed(0x105)][_0x14a6ed(0x2ad)](_0x45b1fa)['with'](T[_0x14a6ed(0x256)]),{undoCache:_0x226791,redoCache:_0x546aa1}=_0x2beed5[_0x14a6ed(0x2cb)]();if(_0x226791[_0x14a6ed(0x324)]===0x0||_0x546aa1[_0x14a6ed(0x324)]===0x0)return;const _0x2ae44a=[],_0x5dd051=[];let _0x113456=a[_0x14a6ed(0xfb)][_0x14a6ed(0x149)](_0x31341a[_0x14a6ed(0x245)][0x0]),_0x47b186=a[_0x14a6ed(0xfb)][_0x14a6ed(0x149)](_0x31341a['mutations'][0x0]);for(let _0x3c9c69=_0x226791[_0x14a6ed(0x324)]-0x1;_0x3c9c69>=0x0;_0x3c9c69--){const _0x2c8dd4={'id':_0x14a6ed(0x10e),'params':{..._0x226791[_0x3c9c69]}},_0x1b74b5={'id':_0x14a6ed(0x10e),'params':{..._0x546aa1[_0x3c9c69]}},_0x521f20=this[_0x14a6ed(0x317)][_0x14a6ed(0x33f)](_0x113456,_0x2c8dd4,!0x1),_0x38eb9f=this[_0x14a6ed(0x317)][_0x14a6ed(0x33f)](_0x47b186,_0x1b74b5,!0x1);if(g[_0x14a6ed(0x205)](_0x521f20))throw _0x521f20[_0x14a6ed(0x337)];if(g['isTransformMutationFailure'](_0x38eb9f))throw _0x38eb9f[_0x14a6ed(0x337)];_0x2ae44a[_0x14a6ed(0x172)](_0x521f20[_0x14a6ed(0x1e8)][_0x14a6ed(0x1c8)]),_0x5dd051[_0x14a6ed(0x172)](_0x38eb9f['m2Prime'][_0x14a6ed(0x1c8)]),_0x113456=_0x521f20['m1Prime'],_0x47b186=_0x38eb9f[_0x14a6ed(0xc6)];}_0x2beed5[_0x14a6ed(0x23c)]({'undoCache':_0x2ae44a,'redoCache':_0x5dd051});}[_0x57a880(0x31d)](_0x2def3f){const _0x430a73=_0x57a880,{unitID:_0x57eb73}=_0x2def3f,_0x271312=this[_0x430a73(0x105)][_0x430a73(0x2ad)](_0x57eb73)[_0x430a73(0x352)](T[_0x430a73(0x256)]),_0x158456=_0x271312[_0x430a73(0x83)]();if(_0x158456==null)return;const _0x792582=[{'id':_0x430a73(0x10e),'params':{'unitId':_0x2def3f[_0x430a73(0x32a)],'actions':null,'textRanges':[_0x158456]}}],_0x4dcc51=this[_0x430a73(0x317)][_0x430a73(0x176)](_0x2def3f,_0x792582);if(!g[_0x430a73(0x2ec)](_0x4dcc51))throw _0x4dcc51[_0x430a73(0x337)];const _0x138207=_0x4dcc51[_0x430a73(0x1e8)][0x0][_0x430a73(0x1c8)][_0x430a73(0x297)];Array[_0x430a73(0x2c0)](_0x138207)&&_0x138207[_0x430a73(0x324)]&&_0x271312[_0x430a73(0x24b)](_0x138207[0x0]);}};ee=Wt([Ae(0x0,g[_0x57a880(0x99)]),Ae(0x1,C[_0x57a880(0x31b)])],ee);var Vt=Object[_0x57a880(0xdf)],Gt=(_0x19de12,_0x304153,_0x312585,_0x246952)=>{const _0x2788b1=_0x57a880;for(var _0x1fdff7=_0x246952>0x1?void 0x0:_0x246952?Vt(_0x304153,_0x312585):_0x304153,_0x2b1fe8=_0x19de12[_0x2788b1(0x324)]-0x1,_0x4f273f;_0x2b1fe8>=0x0;_0x2b1fe8--)(_0x4f273f=_0x19de12[_0x2b1fe8])&&(_0x1fdff7=_0x4f273f(_0x1fdff7)||_0x1fdff7);return _0x1fdff7;},Ie=(_0x262f07,_0x2c19fe)=>(_0x4ffde8,_0x4094e3)=>_0x2c19fe(_0x4ffde8,_0x4094e3,_0x262f07);let te=class{constructor(_0x5c93f1,_0x45b278,_0x337b0a){const _0x492f18=_0x57a880;this['_injector']=_0x5c93f1,this[_0x492f18(0x317)]=_0x45b278,this['_docStateChangeManagerService']=_0x337b0a;}[_0x57a880(0xea)](_0x52c8d7){const _0x1649e3=_0x57a880;this[_0x1649e3(0x293)](_0x52c8d7);}[_0x57a880(0x178)](_0x556974){const _0x6394d7=_0x57a880,{unitID:_0x334dce}=_0x556974,{collaboration:_0x3df0c7}=this['_docStateChangeManagerService'][_0x6394d7(0x91)](_0x334dce);if(_0x3df0c7[_0x6394d7(0x324)]===0x0)return _0x556974;let _0x2a4234=a[_0x6394d7(0xfb)][_0x6394d7(0x149)](_0x556974[_0x6394d7(0x245)][0x0]);for(let _0x11d958=0x0;_0x11d958<_0x3df0c7[_0x6394d7(0x324)];_0x11d958++){const _0x2c1577={'id':_0x6394d7(0x10e),'params':{'unitId':_0x3df0c7[_0x11d958]['unitId'],..._0x3df0c7[_0x11d958][_0x6394d7(0x131)]}},_0xe31de6=this[_0x6394d7(0x317)][_0x6394d7(0x33f)](_0x2a4234,_0x2c1577,!0x1);if(g[_0x6394d7(0x205)](_0xe31de6))throw _0xe31de6['error'];_0x2a4234=_0xe31de6[_0x6394d7(0xc6)];}return{...a[_0x6394d7(0xfb)][_0x6394d7(0x149)](_0x556974),'mutations':[_0x2a4234]};}[_0x57a880(0x293)](_0x39544f){const _0x3c65b0=_0x57a880,{unitID:_0x35726a}=_0x39544f,{history:_0x21b772,collaboration:_0x3577e5}=this[_0x3c65b0(0xd4)][_0x3c65b0(0x91)](_0x35726a);if(_0x21b772['length']===0x0&&_0x3577e5[_0x3c65b0(0x324)]===0x0)return;const _0x90d469=[],_0x15a31f=[];let _0x148f8a=a['Tools'][_0x3c65b0(0x149)](_0x39544f[_0x3c65b0(0x245)][0x0]),_0x292ada=a['Tools'][_0x3c65b0(0x149)](_0x39544f[_0x3c65b0(0x245)][0x0]);for(let _0x589f3e=_0x21b772[_0x3c65b0(0x324)]-0x1;_0x589f3e>=0x0;_0x589f3e--){const _0x182f02={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x21b772[_0x589f3e]['unitId'],..._0x21b772[_0x589f3e][_0x3c65b0(0x26d)]}},_0x3a112e={'id':_0x3c65b0(0x10e),'params':{'unitId':_0x21b772[_0x589f3e][_0x3c65b0(0x303)],..._0x21b772[_0x589f3e][_0x3c65b0(0x131)]}},_0x4ed679=this['_transformService'][_0x3c65b0(0x33f)](_0x148f8a,_0x182f02,!0x1),_0xd40bb9=this[_0x3c65b0(0x317)][_0x3c65b0(0x33f)](_0x292ada,_0x3a112e,!0x1);if(g[_0x3c65b0(0x205)](_0x4ed679))throw _0x4ed679[_0x3c65b0(0x337)];if(g[_0x3c65b0(0x205)](_0xd40bb9))throw _0xd40bb9[_0x3c65b0(0x337)];_0x90d469['unshift']({..._0x21b772[_0x589f3e],'undoState':_0x4ed679[_0x3c65b0(0x1e8)]['params'],'redoState':_0xd40bb9['m2Prime'][_0x3c65b0(0x1c8)]}),_0x148f8a=_0x4ed679['m1Prime'],_0x292ada=_0xd40bb9[_0x3c65b0(0xc6)];}_0x148f8a=a[_0x3c65b0(0xfb)][_0x3c65b0(0x149)](_0x39544f[_0x3c65b0(0x245)][0x0]),_0x292ada=a[_0x3c65b0(0xfb)][_0x3c65b0(0x149)](_0x39544f[_0x3c65b0(0x245)][0x0]);for(let _0x3cb7b8=_0x3577e5[_0x3c65b0(0x324)]-0x1;_0x3cb7b8>=0x0;_0x3cb7b8--){const _0x14225a={'id':_0x3c65b0(0x10e),'params':{'unitId':_0x3577e5[_0x3cb7b8][_0x3c65b0(0x303)],..._0x3577e5[_0x3cb7b8][_0x3c65b0(0x26d)]}},_0x1c5eff={'id':_0x3c65b0(0x10e),'params':{'unitId':_0x3577e5[_0x3cb7b8][_0x3c65b0(0x303)],..._0x3577e5[_0x3cb7b8][_0x3c65b0(0x131)]}},_0x4d7535=this[_0x3c65b0(0x317)][_0x3c65b0(0x33f)](_0x148f8a,_0x14225a,!0x1),_0x116cf1=this['_transformService'][_0x3c65b0(0x33f)](_0x292ada,_0x1c5eff,!0x1);if(g['isTransformMutationFailure'](_0x4d7535))throw _0x4d7535['error'];if(g[_0x3c65b0(0x205)](_0x116cf1))throw _0x116cf1[_0x3c65b0(0x337)];_0x15a31f[_0x3c65b0(0x172)]({..._0x3577e5[_0x3cb7b8],'undoState':_0x4d7535[_0x3c65b0(0x1e8)][_0x3c65b0(0x1c8)],'redoState':_0x116cf1[_0x3c65b0(0x1e8)][_0x3c65b0(0x1c8)]}),_0x148f8a=_0x4d7535['m1Prime'],_0x292ada=_0x116cf1['m1Prime'];}this[_0x3c65b0(0xd4)][_0x3c65b0(0x342)](_0x35726a,{'history':_0x90d469,'collaboration':_0x15a31f});}};te=Gt([Ie(0x0,a['Inject'](a[_0x57a880(0x334)])),Ie(0x1,g[_0x57a880(0x99)]),Ie(0x2,a[_0x57a880(0x200)](T[_0x57a880(0x2ef)]))],te);var Xt=Object[_0x57a880(0xdf)],Kt=(_0x2c4a01,_0x5c9d87,_0x456bd2,_0x24e2a3)=>{for(var _0x3cae52=_0x24e2a3>0x1?void 0x0:_0x24e2a3?Xt(_0x5c9d87,_0x456bd2):_0x5c9d87,_0x4786af=_0x2c4a01['length']-0x1,_0xcace3;_0x4786af>=0x0;_0x4786af--)(_0xcace3=_0x2c4a01[_0x4786af])&&(_0x3cae52=_0xcace3(_0x3cae52)||_0x3cae52);return _0x3cae52;},Pe=(_0x4cf61d,_0xad31a0)=>(_0x465668,_0x399371)=>_0xad31a0(_0x465668,_0x399371,_0x4cf61d);let se=class{constructor(_0xb2e9a1,_0x201b22){const _0x271727=_0x57a880;this[_0x271727(0xcc)]=_0xb2e9a1,this[_0x271727(0x317)]=_0x201b22;}[_0x57a880(0x14c)](_0x78068){const _0x2ca2b6=_0x57a880;var _0xf9b29c;const _0x567a0c=this[_0x2ca2b6(0xcc)][_0x2ca2b6(0x2d2)](V['DocSelectionManagerService']),_0x1fef32=(_0xf9b29c=_0x567a0c[_0x2ca2b6(0x1fb)]())!=null?_0xf9b29c:[];if(_0x1fef32[_0x2ca2b6(0x324)]===0x0)return;const _0xc08619=_0x78068[_0x2ca2b6(0x32a)],_0x5ab36c=[{'id':_0x2ca2b6(0x10e),'params':{'unitId':_0xc08619,'actions':null,'textRanges':_0x1fef32}}],_0x5787e3=this[_0x2ca2b6(0x317)][_0x2ca2b6(0x176)](_0x78068,_0x5ab36c);if(!g['isTransformMutationsWithChangesetSuccess'](_0x5787e3))throw _0x5787e3[_0x2ca2b6(0x337)];const _0x356375=_0x5787e3[_0x2ca2b6(0x1e8)][0x0]['params'][_0x2ca2b6(0x297)];Array['isArray'](_0x356375)&&_0x356375['length']&&_0x567a0c[_0x2ca2b6(0x2d8)](_0x356375,{'unitId':_0xc08619,'subUnitId':_0xc08619},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a['Injector'])),Pe(0x1,g[_0x57a880(0x99)])],se);var qt=Object[_0x57a880(0xdf)],zt=(_0x1ddc08,_0x8569de,_0xa7a580,_0x408541)=>{const _0x1e7864=_0x57a880;for(var _0x2527cc=_0x408541>0x1?void 0x0:_0x408541?qt(_0x8569de,_0xa7a580):_0x8569de,_0xa77c7a=_0x1ddc08[_0x1e7864(0x324)]-0x1,_0x781fb3;_0xa77c7a>=0x0;_0xa77c7a--)(_0x781fb3=_0x1ddc08[_0xa77c7a])&&(_0x2527cc=_0x781fb3(_0x2527cc)||_0x2527cc);return _0x2527cc;},N=(_0x19db09,_0x1a424a)=>(_0xf53e34,_0x3ff780)=>_0x1a424a(_0xf53e34,_0x3ff780,_0x19db09);let ie=class extends a['Disposable']{constructor(_0x2db48b,_0x45ef43,_0x7f0557,_0x36a673,_0x208bbd,_0x47de51,_0x28c5fa,_0x5ebb6f){const _0xb1c8fc=_0x57a880;super(),_(this,'_status$',new I[(_0xb1c8fc(0x300))](u[_0xb1c8fc(0x18c)][_0xb1c8fc(0xb5)])),(this[_0xb1c8fc(0xd4)]=_0x2db48b,this[_0xb1c8fc(0x2b8)]=_0x45ef43,this[_0xb1c8fc(0x2e8)]=_0x7f0557,this[_0xb1c8fc(0x27c)]=_0x36a673,this[_0xb1c8fc(0x1fa)]=_0x208bbd,this[_0xb1c8fc(0x191)]=_0x47de51,this[_0xb1c8fc(0x255)]=_0x28c5fa,this['_localeService']=_0x5ebb6f,this['_initEntityListener']());}['_initEntityListener'](){const _0xb965db=_0x57a880;this[_0xb965db(0x275)](this['_collaborationController'][_0xb965db(0x21a)][_0xb965db(0x1e0)](_0x1e70b0=>{const _0x45e1b2=_0xb965db,_0x3d75f2=this['_docStateChangeManagerService'][_0x45e1b2(0xdb)][_0x45e1b2(0x1e0)](_0x4e4320=>{const _0x210a91=_0x45e1b2;if(_0x4e4320==null)return;const {unitId:_0x2d9ed3,redoState:_0x3ab9c1,commandId:_0x17ba73}=_0x4e4320;if(_0x2d9ed3!==_0x1e70b0[_0x210a91(0x32a)])return;const _0x1c9b73={'id':_0x17ba73,'type':a[_0x210a91(0x30d)]['MUTATION'],'params':{'unitId':_0x2d9ed3,'actions':_0x3ab9c1[_0x210a91(0x2b6)],'textRanges':null}};_0x1e70b0[_0x210a91(0x2e7)](_0x1c9b73);});if(_0x1e70b0[_0x45e1b2(0x275)](_0x3d75f2),_0x1e70b0 instanceof u[_0x45e1b2(0x30c)]){const _0x22440c={'onTransformIME':_0x3f7d59=>this[_0x45e1b2(0x2e8)]['transformIMECache'](_0x3f7d59),'onTransformState':_0x59c305=>this[_0x45e1b2(0x27c)]['transformStateCache'](_0x59c305),'onTransformSelections':_0x30c7fc=>this[_0x45e1b2(0x1fa)]['transformSelections'](_0x30c7fc),'onSyncEditingCollabCursor':_0x42c5b0=>this[_0x45e1b2(0x191)][_0x45e1b2(0x260)](_0x42c5b0),'onTransformRemoteChangesetByIMECache':_0xdfdb85=>this[_0x45e1b2(0x2e8)][_0x45e1b2(0x178)](_0xdfdb85),'onTransformRemoteChangesetByStateCache':_0x554ad0=>this[_0x45e1b2(0x27c)][_0x45e1b2(0x178)](_0x554ad0)};_0x1e70b0['addHandlerCallback'](_0x22440c);}}));}};ie=zt([N(0x0,a[_0x57a880(0x200)](T[_0x57a880(0x2ef)])),N(0x1,a['Inject'](u[_0x57a880(0x1ed)])),N(0x2,a[_0x57a880(0x200)](ee)),N(0x3,a[_0x57a880(0x200)](te)),N(0x4,a[_0x57a880(0x200)](se)),N(0x5,a[_0x57a880(0x200)](be)),N(0x6,O[_0x57a880(0x1bb)]),N(0x7,a[_0x57a880(0x200)](a[_0x57a880(0x14b)]))],ie);var G=(_0x5b7d2d=>(_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1a2)]=0x0]=_0x57a880(0x1a2),_0x5b7d2d[_0x5b7d2d['OK']=0x1]='OK',_0x5b7d2d[_0x5b7d2d['INTERNAL_ERROR']=0x2]=_0x57a880(0x189),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x24c)]=0x3]=_0x57a880(0x24c),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x33b)]=0x4]='NOT_FOUND',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x145)]=0x5]=_0x57a880(0x145),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x20d)]=0x6]=_0x57a880(0x20d),_0x5b7d2d[_0x5b7d2d['INVALID_ARGUMENT']=0x7]=_0x57a880(0x304),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xd7)]=0x8]=_0x57a880(0xd7),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2ca)]=0x9]=_0x57a880(0x2ca),_0x5b7d2d[_0x5b7d2d['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x5b7d2d[_0x5b7d2d['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x57a880(0xf5),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1cd)]=0xc]=_0x57a880(0x1cd),_0x5b7d2d[_0x5b7d2d['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x57a880(0x1e1),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1ec)]=0xe]=_0x57a880(0x1ec),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1a8)]=0xf]=_0x57a880(0x1a8),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1af)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x5b7d2d[_0x5b7d2d['CURRENT_STATUS_CANNOT_OPERATE']=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5b7d2d[_0x5b7d2d['ERROR_AGAIN']=0x65]=_0x57a880(0x134),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x212)]=0xc9]=_0x57a880(0x212),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x126)]=0xca]=_0x57a880(0x126),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x283)]=0x1389]=_0x57a880(0x283),_0x5b7d2d[_0x5b7d2d['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x57a880(0xf2),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xf4)]=0x1772]=_0x57a880(0xf4),_0x5b7d2d[_0x5b7d2d['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x57a880(0x95),_0x5b7d2d[_0x5b7d2d['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1cf)]=0x1b5a]=_0x57a880(0x1cf),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2aa)]=0x1b5b]=_0x57a880(0x2aa),_0x5b7d2d[_0x5b7d2d['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1ee)]=0x1b5d]='APPLY_DUPLICATED',_0x5b7d2d[_0x5b7d2d[_0x57a880(0xca)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5b7d2d[_0x5b7d2d[_0x57a880(0xcb)]=0x2329]=_0x57a880(0xcb),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x279)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2c6)]=0x232b]=_0x57a880(0x2c6),_0x5b7d2d[_0x5b7d2d['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x57a880(0x344),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2ac)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1e6)]=0x2711]=_0x57a880(0x1e6),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xb3)]=0x2712]=_0x57a880(0xb3),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x29d)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x22e)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5b7d2d[_0x5b7d2d['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x57a880(0x309),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x354)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5b7d2d[_0x5b7d2d['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x57a880(0x142),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x320)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2e2)]=0x271e]=_0x57a880(0x2e2),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x132)]=0x271f]=_0x57a880(0x132),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xa8)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x5b7d2d[_0x5b7d2d['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x57a880(0x27a),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x258)]=0x2ee1]=_0x57a880(0x258),_0x5b7d2d[_0x5b7d2d['INVALID_INVITE_CODE']=0x2ee2]=_0x57a880(0x10b),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x184)]=0x2ee3]=_0x57a880(0x184),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x20f)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x5b7d2d[_0x5b7d2d['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x313)]=0x32c9]=_0x57a880(0x313),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xd8)]=0x32ca]=_0x57a880(0xd8),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x12e)]=0x32cb]=_0x57a880(0x12e),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1eb)]=0x36b1]=_0x57a880(0x1eb),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x298)]=0x36b2]=_0x57a880(0x298),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1c3)]=0x36b3]=_0x57a880(0x1c3),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x104)]=0x36b4]=_0x57a880(0x104),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x2bf)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x5b7d2d[_0x5b7d2d['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0x57a880(0x1b3),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x24f)]=0x36b7]=_0x57a880(0x24f),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x111)]=0x36b8]=_0x57a880(0x111),_0x5b7d2d[_0x5b7d2d['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]=_0x57a880(0xf0),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x217)]=0x3716]=_0x57a880(0x217),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x227)]=0x3717]=_0x57a880(0x227),_0x5b7d2d[_0x5b7d2d['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1b8)]=0x3a99]=_0x57a880(0x1b8),_0x5b7d2d[_0x5b7d2d[_0x57a880(0xec)]=0x3a9a]=_0x57a880(0xec),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x311)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x5b7d2d[_0x5b7d2d['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x57a880(0x11c),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x32c)]=0x3a9d]=_0x57a880(0x32c),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x331)]=0x3a9e]=_0x57a880(0x331),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x1b2)]=0x3a9f]=_0x57a880(0x1b2),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x199)]=0x3e81]=_0x57a880(0x199),_0x5b7d2d[_0x5b7d2d[_0x57a880(0x33d)]=-0x1]=_0x57a880(0x33d),_0x5b7d2d))(G||{});function Jt(_0x59df53){const _0x5f27f1=_0x57a880;var _0x24cea7,_0x2477e7;const _0x445a26=(_0x24cea7=_0x59df53[_0x5f27f1(0x328)])==null?void 0x0:_0x24cea7[_0x5f27f1(0x351)],_0x542a59=((_0x2477e7=_0x59df53[_0x5f27f1(0x328)])==null?void 0x0:_0x2477e7[_0x5f27f1(0x350)])||0x0;return _0x445a26===B[_0x5f27f1(0x130)][_0x5f27f1(0x29a)]&&_0x542a59>0x0;}function Zt(_0xdb965){const _0x2e9803=_0x57a880;return _0xdb965[_0x2e9803(0xbf)]===B['FormulaExecutedStateType'][_0x2e9803(0xf8)];}var Qt=Object[_0x57a880(0xdf)],es=(_0x3c2cef,_0x5b2777,_0x5e7a8b,_0x566334)=>{for(var _0x2d72e1=_0x566334>0x1?void 0x0:_0x566334?Qt(_0x5b2777,_0x5e7a8b):_0x5b2777,_0x5bd1e1=_0x3c2cef['length']-0x1,_0x4e0049;_0x5bd1e1>=0x0;_0x5bd1e1--)(_0x4e0049=_0x3c2cef[_0x5bd1e1])&&(_0x2d72e1=_0x4e0049(_0x2d72e1)||_0x2d72e1);return _0x2d72e1;},L=(_0x26f97e,_0x17507d)=>(_0x445f9a,_0x165eed)=>_0x17507d(_0x445f9a,_0x165eed,_0x26f97e);const ts=_0x57a880(0x2bc),ss=_0x57a880(0x92),is=_0x57a880(0x124);let ne=class extends a[_0x57a880(0x23f)]{constructor(_0x1ff3a0,_0x51dea0,_0x2dda8d,_0x509af4,_0xf2514,_0x31c349,_0x71d6bb){const _0x52e8c3=_0x57a880;super(),_(this,_0x52e8c3(0x1dc),null),_(this,_0x52e8c3(0x2c1),0x0),_(this,'_currentUsage',0x0),_(this,'_taskIds',[]),_(this,_0x52e8c3(0x280),0x0),(this[_0x52e8c3(0x255)]=_0x1ff3a0,this[_0x52e8c3(0x1d5)]=_0x51dea0,this[_0x52e8c3(0xba)]=_0x2dda8d,this[_0x52e8c3(0x28f)]=_0x509af4,this[_0x52e8c3(0x340)]=_0xf2514,this[_0x52e8c3(0xc7)]=_0x31c349,this[_0x52e8c3(0x295)]=_0x71d6bb,this[_0x52e8c3(0x330)]());}[_0x57a880(0x330)](){const _0x327873=_0x57a880;this['disposeWithMe'](this['_commandService'][_0x327873(0x27d)]((_0x499b87,_0x3ad08e)=>{const _0x482789=_0x327873;var _0x27cc23;if(_0x499b87['id']!==B[_0x482789(0x259)]['id'])return;const _0x3ae14c=_0x499b87[_0x482789(0x1c8)];if(!this[_0x482789(0x2a0)]((_0x27cc23=_0x3ae14c[_0x482789(0x240)])!=null?_0x27cc23:[]))return;if(!this[_0x482789(0xcf)]())throw this['_checkAndWaitForCalculationPermission'](_0x499b87,_0x3ad08e),this['_showGuardMessage'](),new a[(_0x482789(0x1d6))]();})),this[_0x327873(0x275)](this[_0x327873(0x1d5)][_0x327873(0x267)]((_0x1f7220,_0xdde8c7)=>{const _0x14236e=_0x327873;if(_0x1f7220['id']!==B[_0x14236e(0x1fd)]['id'])return;const _0x364867=_0x1f7220[_0x14236e(0x1c8)];if(Jt(_0x364867)){const _0x13c64d=a[_0x14236e(0x289)]();this[_0x14236e(0xee)]['push'](_0x13c64d),this[_0x14236e(0x2a7)](_0x13c64d);}else{if(Zt(_0x364867)&&this[_0x14236e(0xee)][_0x14236e(0x324)]>0x0){const _0x47ddfc=this['_taskIds']['shift']();this[_0x14236e(0xf9)](_0x47ddfc);}}}));}[_0x57a880(0x180)](){const _0x332db2=_0x57a880;super[_0x332db2(0x180)](),this['_clearPolling'](),this[_0x332db2(0xee)]=[],this[_0x332db2(0x19a)]=0x0,this[_0x332db2(0x2c1)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x57a880(0x339)](_0x45de0e,_0x2aefcd){const _0x115d9e=_0x57a880;for(let _0x326761=0x0;_0x326761<0x1e;_0x326761++)try{if(await this[_0x115d9e(0x20b)](),this['_checkCalculationAvailable']()){this['_applyCommand'](_0x45de0e,_0x2aefcd),this[_0x115d9e(0x255)][_0x115d9e(0x2b9)]({'content':this[_0x115d9e(0x295)]['t'](_0x115d9e(0x1d7)),'type':p[_0x115d9e(0x310)][_0x115d9e(0x1e3)]});return;}await new Promise(_0x278580=>{const _0xd2759d=_0x115d9e;this[_0xd2759d(0x1dc)]=window[_0xd2759d(0x308)](_0x278580,0x3e8);});}catch(_0xc49b5){this[_0x115d9e(0xc7)]['error'](_0xc49b5);}this[_0x115d9e(0x255)]['show']({'content':this['_localeService']['t'](_0x115d9e(0x19f)),'type':p[_0x115d9e(0x310)]['Error']});}[_0x57a880(0x34f)](_0x2708e7,_0x482d88){const _0x675ecc=_0x57a880;try{this[_0x675ecc(0x1d5)][_0x675ecc(0x166)](_0x2708e7['id'],_0x2708e7['params'],_0x482d88);}catch(_0x8dc9d7){this[_0x675ecc(0xc7)][_0x675ecc(0x337)](_0x8dc9d7);}}[_0x57a880(0x2f0)](_0x136e4b,_0x10259e){const _0x107f13=_0x57a880;_0x10259e<this['_lastResponseTimestamp']||(this[_0x107f13(0x280)]=_0x10259e,this['_maxFormulaLimit']=Number[_0x107f13(0x12a)](_0x136e4b['maxFormulaLimit']),this['_currentUsage']=Number[_0x107f13(0x12a)](_0x136e4b[_0x107f13(0x10d)]));}async[_0x57a880(0x2a7)](_0x3f0b5b){const _0xef8a5f=_0x57a880;var _0x146ca3,_0x5c71b9;const _0x51956f=Date[_0xef8a5f(0xfa)]();try{const _0x3807bf=((_0x146ca3=this[_0xef8a5f(0xba)][_0xef8a5f(0x13e)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x146ca3[_0xef8a5f(0xeb)])||ss,_0x351107=(await this[_0xef8a5f(0x28f)][_0xef8a5f(0x14a)](_0x3807bf,{'body':JSON['stringify']({'taskId':_0x3f0b5b})}))[_0xef8a5f(0x272)];if(((_0x5c71b9=_0x351107[_0xef8a5f(0x337)])==null?void 0x0:_0x5c71b9[_0xef8a5f(0x2db)])!==G['OK'])return;this[_0xef8a5f(0x2f0)](_0x351107['limitInfo'],_0x51956f);}catch(_0x28735e){this[_0xef8a5f(0xc7)]['error'](_0x28735e);}}async[_0x57a880(0x20b)](_0x192d78){const _0x3161e2=_0x57a880;var _0x39838d,_0x53c125;const _0x4441a6=Date[_0x3161e2(0xfa)]();try{const _0x417543=((_0x39838d=this[_0x3161e2(0xba)]['getConfig'](u[_0x3161e2(0x268)]))==null?void 0x0:_0x39838d[_0x3161e2(0x9d)])||ts,_0x16f004=_0x192d78?_0x417543+'?taskId='+encodeURIComponent(_0x192d78):_0x417543,_0x3e6502=(await this[_0x3161e2(0x28f)]['get'](_0x16f004))[_0x3161e2(0x272)];if(((_0x53c125=_0x3e6502[_0x3161e2(0x337)])==null?void 0x0:_0x53c125[_0x3161e2(0x2db)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x3e6502[_0x3161e2(0x1d8)],_0x4441a6);}catch(_0x2c08c4){this['_logService']['error'](_0x2c08c4);}}async['_releaseCalculationLimit'](_0x32cc00){const _0x320ea2=_0x57a880;var _0x22f5a4,_0x54a609;const _0x32aa07=Date['now']();try{const _0x2e5bfb=((_0x22f5a4=this[_0x320ea2(0xba)]['getConfig'](u[_0x320ea2(0x268)]))==null?void 0x0:_0x22f5a4[_0x320ea2(0x148)])||is,_0x29b201=(await this[_0x320ea2(0x28f)][_0x320ea2(0x14a)](_0x2e5bfb,{'body':JSON[_0x320ea2(0x287)]({'taskId':_0x32cc00})}))['body'];if(((_0x54a609=_0x29b201[_0x320ea2(0x337)])==null?void 0x0:_0x54a609[_0x320ea2(0x2db)])!==G['OK'])return;this[_0x320ea2(0x2f0)](_0x29b201[_0x320ea2(0x1d8)],_0x32aa07);}catch(_0x1f737b){this[_0x320ea2(0xc7)][_0x320ea2(0x337)](_0x1f737b);}}[_0x57a880(0xcf)](){const _0x3198cd=_0x57a880;return this[_0x3198cd(0x2c1)]===0x0?!0x0:this[_0x3198cd(0x2c1)]-this[_0x3198cd(0x19a)]>0x0;}[_0x57a880(0xd2)](){const _0x40c241=_0x57a880;this[_0x40c241(0x1dc)]&&(clearTimeout(this[_0x40c241(0x1dc)]),this[_0x40c241(0x1dc)]=null);}[_0x57a880(0x164)](){const _0x53c941=_0x57a880;this[_0x53c941(0x255)][_0x53c941(0x2b9)]({'content':this['_localeService']['t'](_0x53c941(0x103)),'type':p[_0x53c941(0x310)][_0x53c941(0x9c)]});}['_hasFormulaInDirtyRanges'](_0x54f561){const _0x5a3e28=_0x57a880;for(const _0x14cdd3 of _0x54f561){const {unitId:_0x51e50e,sheetId:_0x168373,range:_0x4e4c5b}=_0x14cdd3,_0x1e7392=this[_0x5a3e28(0x340)][_0x5a3e28(0x1be)](_0x51e50e);if(!_0x1e7392)continue;const _0x62438d=_0x1e7392['getSheetBySheetId'](_0x168373);if(!_0x62438d)continue;const _0x51ebda=_0x62438d[_0x5a3e28(0x146)]();for(let _0x48a0ce=_0x4e4c5b['startRow'];_0x48a0ce<=_0x4e4c5b['endRow'];_0x48a0ce++)for(let _0xac444a=_0x4e4c5b[_0x5a3e28(0xe1)];_0xac444a<=_0x4e4c5b[_0x5a3e28(0x2da)];_0xac444a++){const _0x4f8687=_0x51ebda['getValue'](_0x48a0ce,_0xac444a);if(_0x4f8687&&(a[_0x5a3e28(0x26f)](_0x4f8687['f'])||a[_0x5a3e28(0x175)](_0x4f8687['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x57a880(0x1bb)])),L(0x1,a[_0x57a880(0x2ff)]),L(0x2,a[_0x57a880(0x141)]),L(0x3,a[_0x57a880(0x200)](x[_0x57a880(0xe2)])),L(0x4,a[_0x57a880(0x138)]),L(0x5,a['ILogService']),L(0x6,a['Inject'](a[_0x57a880(0x14b)]))],ne);var ns=Object[_0x57a880(0xdf)],rs=(_0x3376dd,_0xf23931,_0x53b502,_0x475fbf)=>{for(var _0x33f864=_0x475fbf>0x1?void 0x0:_0x475fbf?ns(_0xf23931,_0x53b502):_0xf23931,_0x32e5d2=_0x3376dd['length']-0x1,_0x420ea3;_0x32e5d2>=0x0;_0x32e5d2--)(_0x420ea3=_0x3376dd[_0x32e5d2])&&(_0x33f864=_0x420ea3(_0x33f864)||_0x33f864);return _0x33f864;},Se=(_0x4c786b,_0x3352dd)=>(_0x3be87e,_0x8c9ecd)=>_0x3352dd(_0x3be87e,_0x8c9ecd,_0x4c786b);function _0x3abf(){const _0x1196b0=['_saveTaskMap','CollaborationEvent','_drawRectRange','UNIVER_SHEET','addObject','onCommandExecuted','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','mergeOverrideWithDependencies','colno','TEXT_RANGE_LAYER_INDEX','pluginName','undoState','_startSheetCollabCursor','isFormulaString','includes','flatMap','body','_init','_selfUnitIDs','disposeWithMe','takeUntil','startsWith','NodePositionConvertToRectRange','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','PY_RUNTIME_SCRIPT_ERROR','_handleLeaveEvent','_docTransformStateCacheService','beforeCommandExecuted','whenReady','ticket','_lastResponseTimestamp','stack','_sheetSkeletonManagerService','CHANGESET_REVISION_CONFILICT','getSheetObject','isActive','_notificationService','stringify','xlink:href','generateRandomId','assignAColorForMemberID','min','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','removeEventListener','invokeId','_httpService','getLocalCacheKey','AWAITING_WITH_PENDING','MoveRangeCommandId','_transformHistoryAndStateStack','handleIRemoveCol','_localeService','saveTaskMap','textRanges','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','DEFAULT_WS_SESSION_TICKET_URL','START_CALCULATION','_getScale','4608087jWjAqy','YUUMI_RATE_OVER_LIMIT','collaboration.offline-data-not-saved','translate(.97)','_hasFormulaInDirtyRanges','engine','_urlService','_docSkeletonManagerService','rgba(255,\x20255,\x20255,\x200.01)','getRangePointData','_imageIoService','_startCalculationLimit','VIEW_MAIN','subscribeEvent','APPLY_REVISION_CONFILICT','assign','LICENSE_DISTRO_REJECTED','getRenderById','Unknown\x20user','displayName','loadUnit','RefRangeService','269870qGHqXr','replaceState','_name','_initDependencies','actions','\x20at\x20','_collaborationController','show','registerBeforeClose','saveImage','/universer-api/license/formula/limit/status','_onCursorUpdate','Vector2','ENTITLE_INVALID_COUPON_CODE','isArray','_maxFormulaLimit','url(#on-line-icon_clip0_910_349)','runOnServer','search','collaboration.single-unit.warning','LICENSE_IMPORT_SIZE_EXCEEDED','_document','OTHER_CLIENTS_EDITING','univerjs-icon\x20univerjs-icon-','COMPLETION_FINISHED','getUndoRedoMutationParamsCache','path','collabStatus.offline','IURLService','collabStatus.conflict','_toggleOffline','switchMap','get','ISocketService','RemoteUniscriptService','getRelativeToViewportCoord','getMergeData','currentColor','replaceDocRanges','white','endColumn','code','InsertRangeMoveRightCommandId','addEventListener','getUnitId','_session','_initUnhandledRejectionListener','evenodd','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_docClipboardService','handleIRemoveRow','collabCursorState$','_scene','onLocalMutation','_docTransformIMECacheService','_handleHover','7172851pusSXa','reconnect','isTransformMutationsWithChangesetSuccess','colorChannel1','DisposableCollection','DocStateChangeManagerService','_setFormulaLimitStatus','_beforeCloseService','defs','Error','_updateSubUnitFromURLParams','onMouseMove','contains','_syncEditingCollabCursorService','_anchorDot','use','_send','_clearOtherTimers','registerRenderModule','pushState','location','ICommandService','BehaviorSubject','getViewport','univer-mr-2\x20univer-flex\x20univer-text-xl','unitId','INVALID_ARGUMENT','_collabCursorController','OnLineIcon','pipe','setTimeout','YUUMI_NO_CUBOID_FOR_QUESTION','focused$','hovered','DocCollaborationEntity','CommandType','socket$','http://www.w3.org/2000/svg','MessageType','REDEMPTION_CODE_FULLY_REDEEMED','getOffsetConfig','WECHAT_HAS_BEEN_BOUND','_heartbeatTimer','message','handleInsertCol','_transformService','JOIN_ROOM_FAILED','_refRangeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','IRenderManagerService','FromArray','_transformPreviousActiveRange','font','getActiveSheet','YUUMI_ALL_TABLES_IS_INVALID','origin','max','Workbook','length','handleInsertRow','_config','SUBMIT_CHANGESET_TIMEOUT','stageInfo','[LogService\x20Error]:\x20','unitID','red.300','REDEMPTION_USER_NOT_ELIGIBLE','blue.400','_collabCursorState$','handleInsertRangeMoveRight','_initCommandInterceptor','REDEMPTION_USER_REDEEM_TIMES_EXCEED','fillRule','loadOfflineData','Injector','getMember','getCollabEntity$','error','_roomMembers$','_checkAndWaitForCalculationPermission','findNodePositionByCharIndex','NOT_FOUND','_shapes','UNRECOGNIZED','combineLatest','transformMutation','_univerInstanceService','lineno','setStateCache','InsertRowCommandId','LICENSE_EXPORT_SIZE_EXCEEDED','HEADER_MENU','debounce','/run/','top','ILogService','setItem','_initResize','url(#$1','Rectangle','UPDATE_CURSOR','_applyCommand','totalFormulasToCalculate','stage','with','event$','YUUMI_ASYNCIO_CANCELLED','getTypeOfUnitDisposed$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','session.collaboration-timeout','setShapeProps','[Unhandled\x20Rejection]:\x20','_initUserListener','add','getFocusedUnit','CollaborationUIEventId','_onRefRangeChange','clearInterval','CONFLICT','_id','from','lineTo','column','_updateURLWithCurrentState','getActiveRange','getUnhiddenWorksheets','_refreshCollabCursors','current','registerRefRange','registerDependencies','saveOfflineData','ILocalCacheService','string','clipPath','NO_OTHER_CLIENTS_EDITING','[CollaborationDataLoaderController]','OFFLINE','DataLoaderService','getStateCache','/universer-api/license/formula/limit/start','registerComponent','disableLocalCache','ENSURE_SNAPSHOT_EXECUTION','_scheduleHeartbeat','off-line-icon_clip0_910_343','onTransformChange$','ITransformService','fill','SetWorksheetActivateCommand','Loading','getFormulaLimitStatusUrl','runId','_createSocketURL','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_registerRenderDependencies','toDisposable','_unitStatus','RevisionService','_eventUnsubscribe','_color','RxDisposable','YUUMI_CONNECTOR_URL_NOT_FOUND','DesktopCollaborationStatusDisplayController','SheetSkeletonManagerService','getSheetId','USERS_LEAVE','filename','8UKXAsc','_online','BrowserCollaborationSocketService','MemberService','_drawAnchor','YUUMI_URL_COL_OUT_OF_RANGE','_initStatusComponent','NOT_COLLAB','unhandledrejection','getCoordByCell','createIdentifier','M0\x200H16V16H0z','_configService','ThemeService','RemoveColCommandId','resize','requireSession','functionsExecutedState','3266188nBreDh','_themeService','UniverCollaborationClientUIPlugin','_startDocCollabCursor','children','toString','m1Prime','_logService','fillStyle','dispose$','CONNECTOR_DATA_TOO_LARGE','LICENSE_MAX_UNITS_EXCEEDED','_injector','session.will-retry','getMemberID','_checkCalculationAvailable','FETCH_MISS','touchDependencies','_clearPolling','reason','_docStateChangeManagerService','defIds','fillText','TOO_MANY_REQUESTS','MOBILE_HAS_BEEN_BOUND','type','makeDirty','docStateChange$','_hovered','getCellPositionByOffset','_memberService','getOwnPropertyDescriptor','_hover','startColumn','HTTPService','eventID','getUnitStatus$','init','toRgbString','size','editingUnit','_entityInit$','transformStateCache','startFormulaLimitUrl','REDEMPTION_CODE_INACTIVE','replace','_taskIds','forwardRef','ENTITLE_CHAT_LIMIT_EXCEED','_updateCollabCursors','SNAPSHOT_INVALID_SNAPSHOT','getCollabCursors$','SNAPSHOT_HAS_BEEN_REMOVED','MOBILE_VERIFY_CODE_MISMATCH','Module','skeleton','SUCCESS','_releaseCalculationLimit','now','Tools','_ensureSubject','updateOfflineData','executionId','IBeforeCloseService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','SetSelectionsOperation','SheetCollabCursorShape','formula.calculation.waiting','PAYMENT_CHANNEL_NOT_SUPPORT','_renderManagerService','sessionTicket','endRow','DocSelectionManagerService','_initEvent','_cursorShapes','INVALID_INVITE_CODE','_removeCollabCursors','currentUsage','doc.mutation.rich-text-editing','EffectRefRangId','_colorAssignService','ENTITLE_USE_COUPON_NOT_1ST_TRADE','result','Tooltip','createInstance','setParam','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_assignedColors','Failed','ranges','_cachedData','sessionStatus$','REDEMPTION_CODE_NOT_STARTED','all','getParam','_disabled','entries','setInterval','unsubscribe','_collaborationUIEventService','/universer-api/license/formula/limit/done','_removeClearOtherTimer','USER_IS_ANONYMOUS','map','_getSaveTimeout','on-line-icon_clip0_910_349','parseInt','clearTimeout','_render','closePath','EMAIL_HAS_BEEN_BOUND','BuiltInUIPart','FormulaExecuteStageType','redoState','YUUMI_AI_RUN_FAILED','clsx','ERROR_AGAIN','_context','Rect','CLOSE_ROOM','IUniverInstanceService','_memberID','COLORS','mask','_cursor','trim','getConfig','deserializeRangeWithSheet','merge','IConfigService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','UniverIcon','exhaustSavingTask','UNAUTHENTICATED','getCellMatrix','_range','releaseFormulaLimitUrl','deepClone','post','LocaleService','transformSelections','getAncestorScale','subUnitId','memberID','asObservable','...','_initWindowErrorListener','roomMembers$','color','href','_textBubble','triggerDblclick','Optional','NodePositionConvertToCursor','defineProperty','set','_dataLoaderService','currentSkeleton$','bottom','override','_docSkeleton','_labelPosition','collabStatus.syncing','_collaborationSessionService','_showGuardMessage','next','executeCommand','storage','Warning','isEditing','TEXT','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','cursorInfo','DeleteRangeMoveUpCommandId','ONLINE','text','_hideTimer','_initStatusListener','unshift','purple.300','WebBrowserSingleActiveUnitService','isFormulaId','transformMutationsWithChangeset','handleDeleteRangeMoveLeft','transformRemoteChangeset','roomMembers','distinctUntilChanged','_scheduleClearOtherTimer','getSkeleton','_onCursorDelete','handleInsertRangeMoveDown','catch','dispose','disposeUnit','DOC_RANGE_TYPE','useDependency','INVITE_CODE_REQUIRED','source','labelPosition','_anchor','_cursors','INTERNAL_ERROR','_localStorageService','push','CollaborationStatus','ColorKit','AWAITING','width','debounceTime','_docSyncEditingCollabCursorService','DependentOn','attrs','none','collaboration.closeRoom','fromEvent','DeleteRangeMoveLeftCommandId','LOCAL_CACHE_INTERVAL_KEY','DATA_SOURCE_TOO_LARGE','_currentUsage','idSuffix','backgroundColor','_handleJoinEvent','symbol','formula.calculation.unable','black','popstate','UNDEFINED','_setupSubUnitSync','transformByState','div','0\x200\x2017\x2016','_localCacheService','AUTHORIZE_CODE_ILLEGAL','_getAnchorBounding','_registerDependencies','handleMoveRange','activeSheet$','round','newValue','LOGIN_TOKEN_PROCESSING_FAILED','runRefRangeMutations','onPointerLeave$','REDEMPTION_CODE_HAS_BEEN_CREATED','ENTITLE_COUPON_EXPIRED','CollaborationSessionService','sheetID','fromEventSubject','Plugin','REDEMPTION_INVALID_CODE','hide','InsertColCommandId','IMessageService','_uiPartsService','green.600','getUnit','shareReplay','_revisionService','createElement','currentTheme$','ENTITLE_DUP_SUBSCRIPTION','addObjects','_scheduleSaving','getCurrent','sheetId','params','_backgroundColor','subunit','bind','_draw','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','selection','APPLY_NON_SEQUENTIAL_REVISION','data','_cursorInfo$','RemoveRowCommandId','debug','key','_commandService','CanceledError','formula.calculation.started','limitInfo','_getMergeRange','CollaborationSocketService','removeParam','_pollingInterval','filter','SYNCED','_toggleOnline','subscribe','EMAIL_VERIFY_CODE_MISMATCH','delete','Success','IImageIoService','useRef','YUUMI_UNABLE_LOAD_URL','UniverInstanceType','m2Prime','_drawTextRange','serializeRangeWithSheet','ENTITLE_CAN_NOT_BUY_LOWER_OTP','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','CollaborationController','APPLY_DUPLICATED','wsSessionTicketUrl','drawWith','_getSessionTicket','imageSourceType','_uploadLog','_colorIndex','getColor','off-line-icon','CollaborationDataLoaderController','_updateLocalCursor','SOCKET_FAILED_RETRY','_docTransformSelectionsService','getDocRanges','getVpScrollXYInfoByPosToVp','SetFormulaCalculationNotificationMutation','_handleHeartbeatEvent','DocSkeletonManagerService','Inject','transform','svg','1em','RegularPolygon','isTransformMutationFailure','then','urlChange$','_status$','SheetsSelectionsService','_unitOnClients','_getFormulaLimitStatus','UNIVER_DOC','ALREADY_EXISTS','arc','USER_NOT_INVITED_CODE','jsx','UnitStatus','USER_NOT_FOUND','height','RECT','join','0\x200\x2016\x2016','ENTITLE_REPORT_LIMIT_EXCEED','IRemoteInstanceService','jiqing.500','entityInit$','handleDeleteRangeMoveUp','measureText','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','searchParams','_handleEvent','complete','_doCreateSocket','has','_initCommandExecutedListener','/universer-api/frontend/logs','getColorFromTheme','values','ENTITLE_INSUFFICIENT_QUOTA','throttleTime','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','session.connection-failed','_entities','4170656moUCOA','5809310SnWrll','YUUMI_SUBSCRIPTION_NOT_FOUND','getSheetBySheetId','SetDocZoomRatioOperation','forEach','_transformUndoRedoStack','row','SessionStatus','history','save','10049904voyjmd','cursorInfo$','split','moveTo','find','setUndoRedoMutationParamsCache','_saveCache','random','Disposable','dirtyRanges','selections','Subject','tag','CollaborationUIEventService','mutations','ISnapshotServerService','collabStatus.synced','url(#off-line-icon_clip0_910_343)','unit','_collabSessionService','setActiveRange','PERMISSION_DENIED','range','enableLocalCache','ENTITLE_COUPON_USED_UP','setAlpha','collab-rect-range-','getValue','status$','beginPath','_messageService','DocIMEInputManagerService','enableFrontendLog','INVITE_CODE_HAS_BEEN_UES','SetFormulaCalculationStartMutation','restore','_getSheetObject','_monkeyPatchLogService','getCurrentUnitForType','transformIMECache','name','syncEditingCollabCursor','_instanceService'];_0x3abf=function(){return _0x1196b0;};return _0x3abf();}let Te=class extends a[_0x57a880(0x23f)]{constructor(_0x3c7fca,_0x553f32,_0x2e4255){const _0xd623f5=_0x57a880;super(),_(this,'_cachedData',new Map()),_(this,_0xd623f5(0x262),new Map()),_(this,_0xd623f5(0x11f),!0x1),(this['_configService']=_0x3c7fca,this[_0xd623f5(0x18a)]=_0x553f32,this[_0xd623f5(0x1c0)]=_0x2e4255);}[_0x57a880(0x94)](){this['_disabled']=!0x0;}[_0x57a880(0x24e)](){const _0x4c36fc=_0x57a880;this[_0x4c36fc(0x11f)]=!0x1;}get[_0x57a880(0x296)](){const _0x47d8a1=_0x57a880;return this[_0x47d8a1(0x262)];}[_0x57a880(0x180)](){const _0x3aded5=_0x57a880;this['exhaustSavingTask']()[_0x3aded5(0x206)](()=>super[_0x3aded5(0x180)]());}async[_0x57a880(0x333)](_0x522002){const _0x5ea53d=_0x57a880;return this[_0x5ea53d(0x11f)]?null:this['_localStorageService']['getItem'](u[_0x5ea53d(0x290)](_0x522002));}async[_0x57a880(0x89)](_0x33a271,_0x27c551){const _0x325a17=_0x57a880;return!!this[_0x325a17(0x18a)][_0x325a17(0x34a)](_0x33a271,_0x27c551);}[_0x57a880(0xfd)](_0x324868,_0x575bc6,_0x16d65c,_0x223a63){const _0xc4a9c=_0x57a880,_0x191d76=this['_revisionService']['getCurrentRevOfUnit'](_0x324868);this['_cachedData'][_0xc4a9c(0x15b)](_0x324868,{'unitID':_0x324868,'type':_0x575bc6,'awaitingChangeset':_0x16d65c,'mutations':_0x223a63,'rev':_0x191d76}),this['_saveTaskMap'][_0xc4a9c(0x222)](_0x324868)||this[_0xc4a9c(0x1c5)](_0x324868);}['_scheduleSaving'](_0x3aafd8){const _0x2668be=_0x57a880,_0x43ad29=this[_0x2668be(0x128)]();_0x43ad29===0x0?this[_0x2668be(0x23d)](_0x3aafd8):this[_0x2668be(0x262)]['set'](_0x3aafd8,setTimeout(()=>this[_0x2668be(0x23d)](_0x3aafd8),_0x43ad29));}['_getSaveTimeout'](){const _0x5b43f1=_0x57a880;var _0x31435c;return(_0x31435c=this['_configService'][_0x5b43f1(0x13e)](u[_0x5b43f1(0x198)]))!=null?_0x31435c:u['LOCAL_CACHE_INTERVAL'];}[_0x57a880(0x23d)](_0x414864){const _0x595e6e=_0x57a880,_0x56f8e6=this[_0x595e6e(0x262)][_0x595e6e(0x2d2)](_0x414864);return _0x56f8e6!==void 0x0&&window['clearTimeout'](_0x56f8e6),this[_0x595e6e(0x18a)][_0x595e6e(0x34a)](u[_0x595e6e(0x290)](_0x414864),this[_0x595e6e(0x11a)][_0x595e6e(0x2d2)](_0x414864))[_0x595e6e(0x206)](()=>this[_0x595e6e(0x262)][_0x595e6e(0x1e2)](_0x414864));}async[_0x57a880(0x144)](){const _0x38ba6a=_0x57a880,_0xe2b528=[];this[_0x38ba6a(0x262)]['forEach']((_0x400847,_0x4d4022)=>{const _0x7530f4=_0x38ba6a;window[_0x7530f4(0x12b)](_0x400847),_0xe2b528[_0x7530f4(0x18b)](this[_0x7530f4(0x23d)](_0x4d4022)[_0x7530f4(0x206)](()=>{const _0x41a9c8=_0x7530f4;this[_0x41a9c8(0x262)][_0x41a9c8(0x1e2)](_0x4d4022);}));}),await Promise[_0x38ba6a(0x11d)](_0xe2b528);}};Te=rs([Se(0x0,a[_0x57a880(0x141)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x57a880(0x200)](g[_0x57a880(0xa4)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x9de20c=_0x57a880;super(),_(this,_0x9de20c(0x207)),this[_0x9de20c(0x207)]=I['fromEvent'](window,_0x9de20c(0x1a1))[_0x9de20c(0x307)](I[_0x9de20c(0x276)](this[_0x9de20c(0xc9)]),I[_0x9de20c(0x1bf)](0x1),I['mapTo'](void 0x0));}[_0x57a880(0x115)](_0x4579b0,_0x1931f3,_0x146119=!0x1){const _0x150c4a=_0x57a880,_0x284235=new URL(window[_0x150c4a(0x2fe)][_0x150c4a(0x155)]);_0x284235[_0x150c4a(0x21e)][_0x150c4a(0x15b)](_0x4579b0,_0x1931f3),_0x146119?window[_0x150c4a(0x235)][_0x150c4a(0x2b3)]('','',_0x284235['toString']()):window[_0x150c4a(0x235)][_0x150c4a(0x2fd)]('','',_0x284235[_0x150c4a(0xc5)]());}[_0x57a880(0x1db)](_0x45810a,_0xce8aec=!0x1){const _0xb7191c=_0x57a880,_0xd2b600=new URL(window[_0xb7191c(0x2fe)][_0xb7191c(0x155)]);_0xd2b600['searchParams']['delete'](_0x45810a),_0xce8aec?window['history'][_0xb7191c(0x2b3)]('','',_0xd2b600[_0xb7191c(0xc5)]()):window[_0xb7191c(0x235)]['pushState']('','',_0xd2b600['toString']());}[_0x57a880(0x11e)](_0x5c50b9){const _0x2685d7=_0x57a880;var _0x476e7a;return(_0x476e7a=new URL(window[_0x2685d7(0x2fe)][_0x2685d7(0x155)])['searchParams']['get'](_0x5c50b9))!=null?_0x476e7a:void 0x0;}}var os=Object[_0x57a880(0x15a)],as=Object[_0x57a880(0xdf)],cs=(_0x3074af,_0x4421d0,_0x2dca87)=>_0x4421d0 in _0x3074af?os(_0x3074af,_0x4421d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2dca87}):_0x3074af[_0x4421d0]=_0x2dca87,ls=(_0x1e6329,_0x9fdb2c,_0x505204,_0x4b8051)=>{const _0x12ce0d=_0x57a880;for(var _0x272028=_0x4b8051>0x1?void 0x0:_0x4b8051?as(_0x9fdb2c,_0x505204):_0x9fdb2c,_0x17138b=_0x1e6329[_0x12ce0d(0x324)]-0x1,_0x2e2c4f;_0x17138b>=0x0;_0x17138b--)(_0x2e2c4f=_0x1e6329[_0x17138b])&&(_0x272028=_0x2e2c4f(_0x272028)||_0x272028);return _0x272028;},de=(_0x2dd780,_0x170d3b)=>(_0x111e67,_0x1c72ff)=>_0x170d3b(_0x111e67,_0x1c72ff,_0x2dd780),_s=(_0x113c46,_0x4cd75e,_0x1e4536)=>cs(_0x113c46,_0x4cd75e+'',_0x1e4536);const hs=_0x57a880(0xa0);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x57a880(0x1b7)]{constructor(_0x3db3b9=Me,_0x5266f4,_0x28617d,_0x19df95){const _0x59a2e1=_0x57a880;super(),this[_0x59a2e1(0x326)]=_0x3db3b9,this[_0x59a2e1(0x105)]=_0x5266f4,this[_0x59a2e1(0xcc)]=_0x28617d,this[_0x59a2e1(0xba)]=_0x19df95;const {..._0x15a737}=a[_0x59a2e1(0x140)]({},Me,this[_0x59a2e1(0x326)]);this['_configService']['setConfig'](Yt,_0x15a737);}['onStarting'](){this['_registerDependencies'](),this['_initDependencies']();}['onRendered'](){const _0x3b71c9=_0x57a880;this[_0x3b71c9(0xa1)]();}[_0x57a880(0x1aa)](){const _0x18b834=_0x57a880;var _0x5df4a1;const _0x2c9b2c=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x18b834(0x2d3)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':Te}],[exports[_0x18b834(0xa9)]],[ie],[Z],[F],[me],[exports[_0x18b834(0x1f7)]]];this[_0x18b834(0x326)][_0x18b834(0x257)]&&_0x2c9b2c[_0x18b834(0x18b)]([Q]),a[_0x18b834(0x88)](this[_0x18b834(0xcc)],a[_0x18b834(0x269)](_0x2c9b2c,(_0x5df4a1=this[_0x18b834(0x326)])==null?void 0x0:_0x5df4a1[_0x18b834(0x15f)]));}['_registerRenderDependencies'](){const _0x424397=_0x57a880;this[_0x424397(0x275)](this['_renderManagerService'][_0x424397(0x2fc)](a[_0x424397(0x1e7)][_0x424397(0x20c)],[Ee])),this[_0x424397(0x275)](this[_0x424397(0x105)][_0x424397(0x2fc)](a[_0x424397(0x1e7)][_0x424397(0x265)],[Ce]));}[_0x57a880(0x2b5)](){const _0x25f449=_0x57a880;a[_0x25f449(0xd1)](this[_0x25f449(0xcc)],[[F],[exports[_0x25f449(0xa9)]],[ie],[Z],[exports[_0x25f449(0x1f7)]],[ne]]),this[_0x25f449(0x326)][_0x25f449(0x257)]&&a['touchDependencies'](this[_0x25f449(0xcc)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x57a880(0x26c),hs),exports[_0x57a880(0xc2)]=ls([a[_0x57a880(0x192)](u['UniverCollaborationClientPlugin']),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x57a880(0x200)](a[_0x57a880(0x334)])),de(0x3,a[_0x57a880(0x141)])],exports['UniverCollaborationClientUIPlugin']);var us=Object[_0x57a880(0xdf)],Is=(_0x48de15,_0x3e71d6,_0x4d958b,_0xef5c80)=>{for(var _0xd31ea7=_0xef5c80>0x1?void 0x0:_0xef5c80?us(_0x3e71d6,_0x4d958b):_0x3e71d6,_0xba6890=_0x48de15['length']-0x1,_0x15515a;_0xba6890>=0x0;_0xba6890--)(_0x15515a=_0x48de15[_0xba6890])&&(_0xd31ea7=_0x15515a(_0xd31ea7)||_0xd31ea7);return _0xd31ea7;},W=(_0x4189db,_0x530559)=>(_0x37b021,_0x2a5b42)=>_0x530559(_0x37b021,_0x2a5b42,_0x4189db);exports[_0x57a880(0xb0)]=class extends u[_0x57a880(0x1da)]{constructor(_0x5b5d77,_0x1d69fb,_0x51bb7e,_0x5b0b50,_0x599795){super(_0x5b5d77,_0x1d69fb,_0x51bb7e,_0x5b0b50,_0x599795);}async['createSocket'](_0x833623){const _0x2f02f2=_0x57a880,_0x12403c=await this[_0x2f02f2(0x1f1)](),_0x4a2fdb=this[_0x2f02f2(0x9f)](_0x833623,_0x12403c);return this[_0x2f02f2(0x221)](_0x4a2fdb);}[_0x57a880(0x9f)](_0x4cf11b,_0x373663){const _0x3842b2=_0x57a880,_0x3ce4d5=typeof window>'u'?new URL(_0x4cf11b):new URL(_0x4cf11b,window['location'][_0x3842b2(0x321)]);_0x3ce4d5['searchParams'][_0x3842b2(0x15b)](_0x3842b2(0x106),_0x373663);const _0x3eb2a4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x3842b2(0x2fe)][_0x3842b2(0x2c4)]);return _0x3eb2a4[_0x3842b2(0x2d2)](_0x3842b2(0x9e))&&_0x3ce4d5[_0x3842b2(0x21e)][_0x3842b2(0x15b)](_0x3842b2(0x9e),_0x3eb2a4[_0x3842b2(0x2d2)](_0x3842b2(0x9e))),_0x3ce4d5[_0x3842b2(0xc5)]();}async['_getSessionTicket'](){const _0x1f8ebb=_0x57a880;var _0x2e28fa,_0x17c2bd,_0x4e4973;const _0x500003=this[_0x1f8ebb(0xba)][_0x1f8ebb(0x13e)](u[_0x1f8ebb(0x268)]),_0x2b9bdf=(_0x2e28fa=_0x500003==null?void 0x0:_0x500003[_0x1f8ebb(0x1ef)])!=null?_0x2e28fa:u[_0x1f8ebb(0x299)];return(_0x4e4973=(_0x17c2bd=(await this[_0x1f8ebb(0x28f)][_0x1f8ebb(0x2d2)](_0x2b9bdf,{'headers':{'Content-Type':'application/json'}}))[_0x1f8ebb(0x272)])==null?void 0x0:_0x17c2bd[_0x1f8ebb(0x27f)])!=null?_0x4e4973:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a[_0x57a880(0x200)](a[_0x57a880(0x334)])),W(0x1,a[_0x57a880(0x200)](x[_0x57a880(0xe2)])),W(0x2,a[_0x57a880(0x141)]),W(0x3,a[_0x57a880(0x349)]),W(0x4,g[_0x57a880(0x246)])],exports[_0x57a880(0xb0)]);var Ss=Object[_0x57a880(0xdf)],ds=(_0x3e2fd,_0x59d8ab,_0x2a0ca6,_0x571de4)=>{const _0x1965ca=_0x57a880;for(var _0x2eb359=_0x571de4>0x1?void 0x0:_0x571de4?Ss(_0x59d8ab,_0x2a0ca6):_0x59d8ab,_0x30a3fb=_0x3e2fd[_0x1965ca(0x324)]-0x1,_0x3b6cb7;_0x30a3fb>=0x0;_0x30a3fb--)(_0x3b6cb7=_0x3e2fd[_0x30a3fb])&&(_0x2eb359=_0x3b6cb7(_0x2eb359)||_0x2eb359);return _0x2eb359;},fe=(_0x1e3f2e,_0x576f84)=>(_0xce0ec8,_0x34bca1)=>_0x576f84(_0xce0ec8,_0x34bca1,_0x1e3f2e);exports[_0x57a880(0x2d4)]=class extends a[_0x57a880(0x23f)]{constructor(_0x4828db,_0x4472d0,_0x7d957e){const _0x25a5d5=_0x57a880;super(),this[_0x25a5d5(0x261)]=_0x4828db,this[_0x25a5d5(0x28f)]=_0x4472d0,this['_configService']=_0x7d957e;}async[_0x57a880(0x2c3)](_0x2115f6,_0x222f3e,_0x33c618,..._0x357cbc){const _0x356c4d=_0x57a880;var _0x39eece,_0x764f70,_0x51808d,_0x3cff2c;const _0x2a0c22=this['_instanceService'][_0x356c4d(0x79)]();if(!_0x2a0c22)throw new Error(_0x356c4d(0x100));const _0x3c8111=((_0x39eece=this[_0x356c4d(0xba)][_0x356c4d(0x13e)](u[_0x356c4d(0x116)]))!=null?_0x39eece:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x2115f6+_0x356c4d(0x347)+_0x222f3e,_0x318416=new URL(window[_0x356c4d(0x2fe)][_0x356c4d(0x155)]),_0x53903d={'scriptId':_0x2115f6,'runId':(_0x764f70=_0x318416[_0x356c4d(0x21e)][_0x356c4d(0x2d2)](_0x356c4d(0x9e)))!=null?_0x764f70:'','function':_0x222f3e,'unitId':_0x2a0c22[_0x356c4d(0x2de)](),'argsOfFunction':JSON[_0x356c4d(0x287)](_0x357cbc),'invokeId':(_0x51808d=_0x33c618[_0x356c4d(0x28e)])!=null?_0x51808d:'','executionId':(_0x3cff2c=_0x33c618[_0x356c4d(0xfe)])!=null?_0x3cff2c:''};try{const _0x5db9b7=await this[_0x356c4d(0x28f)][_0x356c4d(0x14a)](_0x3c8111,{'body':_0x53903d});return _0x5db9b7[_0x356c4d(0x272)][_0x356c4d(0x337)]&&_0x5db9b7[_0x356c4d(0x272)]['error']['code']!==G['OK']?_0x356c4d(0x118):_0x5db9b7[_0x356c4d(0x272)][_0x356c4d(0x112)];}catch{return _0x356c4d(0x118);}}},exports[_0x57a880(0x2d4)]=ds([fe(0x0,a[_0x57a880(0x138)]),fe(0x1,a[_0x57a880(0x200)](x[_0x57a880(0xe2)])),fe(0x2,a[_0x57a880(0x141)])],exports[_0x57a880(0x2d4)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x57a880(0x23f)]{constructor(){const _0x1dc6a1=_0x57a880;super(),_(this,'_id',a[_0x1dc6a1(0x289)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x1dc6a1(0x314),null),_(this,_0x1dc6a1(0x2fb),new Map()),_(this,'_unitStatus',new Map()),this[_0x1dc6a1(0x273)]();}[_0x57a880(0x180)](){const _0x2d2569=_0x57a880;super[_0x2d2569(0x180)](),this[_0x2d2569(0x2fb)]['forEach']((_0x29db41,_0xc0863)=>this[_0x2d2569(0x125)](_0xc0863)),this[_0x2d2569(0x314)]&&window[_0x2d2569(0x7c)](this[_0x2d2569(0x314)]);}[_0x57a880(0xe4)](_0x4db4d8){const _0x440b0e=_0x57a880;return this[_0x440b0e(0xfc)](_0x4db4d8)[_0x440b0e(0x307)](I[_0x440b0e(0x17a)]());}[_0x57a880(0xe8)](_0x268ebc){const _0x4fc5ca=_0x57a880;this['_selfUnitIDs']['size']===0x0&&this[_0x4fc5ca(0x96)](),this['_selfUnitIDs'][_0x4fc5ca(0x78)](_0x268ebc),this[_0x4fc5ca(0x2fa)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x268ebc],'isForwarded':!0x1});}[_0x57a880(0x181)](_0x2cea2b){const _0x22842f=_0x57a880;this['_selfUnitIDs'][_0x22842f(0x1e2)](_0x2cea2b),this[_0x22842f(0x274)][_0x22842f(0xe7)]===0x0&&this[_0x22842f(0x314)]&&window[_0x22842f(0x7c)](this[_0x22842f(0x314)]);}[_0x57a880(0x273)](){const _0x522732=_0x57a880;this[_0x522732(0x275)](a[_0x522732(0xa2)](I[_0x522732(0x196)](window,_0x522732(0x167))['subscribe'](_0x137d3a=>{const _0x361b41=_0x522732;if(_0x137d3a[_0x361b41(0x1d4)]!==ye||!_0x137d3a['newValue'])return;const _0x11ae6f=JSON['parse'](_0x137d3a[_0x361b41(0x1ae)]);this[_0x361b41(0x21f)](_0x11ae6f);}))),window[_0x522732(0x2dd)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x522732(0x7e)],'unitIDs':Array[_0x522732(0x7f)](this[_0x522732(0x274)])}));}[_0x57a880(0x21f)](_0x5e73e4){const _0xae5954=_0x57a880;switch(_0x5e73e4[_0xae5954(0xd9)]){case 0x0:this[_0xae5954(0x19d)](_0x5e73e4);break;case 0x1:this[_0xae5954(0x27b)](_0x5e73e4);break;case 0x2:this[_0xae5954(0x1fe)](_0x5e73e4);break;}}['_handleJoinEvent'](_0x3aa76e){const _0x3d7fa3=_0x57a880,{unitIDs:_0x27fc4c,memberID:_0x11f3d5,isForwarded:_0x37ef3b}=_0x3aa76e;_0x27fc4c['forEach'](_0x272672=>{const _0x4ebed4=_0x3624;if(!_0x37ef3b&&this[_0x4ebed4(0x20a)][_0x4ebed4(0x222)](_0x272672)&&this['_ensureSubject'](_0x272672)['next'](u[_0x4ebed4(0x211)][_0x4ebed4(0x2c8)]),!this[_0x4ebed4(0x20a)][_0x4ebed4(0x222)](_0x272672)||!this[_0x4ebed4(0x20a)][_0x4ebed4(0x2d2)](_0x272672)[_0x4ebed4(0x222)](_0x11f3d5)){const _0x551268=this[_0x4ebed4(0x20a)][_0x4ebed4(0x2d2)](_0x272672)||new Set();_0x551268[_0x4ebed4(0x78)](_0x11f3d5),this[_0x4ebed4(0x20a)][_0x4ebed4(0x15b)](_0x272672,_0x551268),this[_0x4ebed4(0x17b)](_0x11f3d5);}}),_0x37ef3b||this[_0x3d7fa3(0x2fa)]({'type':0x0,'memberID':this[_0x3d7fa3(0x7e)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x57a880(0x17b)](_0x279fd8){const _0x58562=_0x57a880;this['_removeClearOtherTimer'](_0x279fd8);const _0x218cd9=window['setTimeout'](()=>{const _0x3fecd4=_0x3624;this[_0x3fecd4(0x20a)][_0x3fecd4(0x231)](_0x6a6c5a=>{const _0x2456e8=_0x3fecd4;_0x6a6c5a[_0x2456e8(0x1e2)](_0x279fd8);});},we*0x2);this['_clearOtherTimers'][_0x58562(0x15b)](_0x279fd8,_0x218cd9);}['_removeClearOtherTimer'](_0x13eaa5){const _0x13e7f1=_0x57a880;if(this[_0x13e7f1(0x2fb)][_0x13e7f1(0x222)](_0x13eaa5)){const _0x53cda2=this[_0x13e7f1(0x2fb)][_0x13e7f1(0x2d2)](_0x13eaa5);_0x53cda2&&window[_0x13e7f1(0x12b)](_0x53cda2),this['_clearOtherTimers'][_0x13e7f1(0x15b)](_0x13eaa5,null);}}[_0x57a880(0x27b)](_0x23259f){const _0x507625=_0x57a880,{memberID:_0x453f72,unitIDs:_0x4a31bf}=_0x23259f;_0x4a31bf[_0x507625(0x231)](_0x5019d1=>{const _0x186517=_0x507625;var _0x53b4ce;const _0x365b90=this[_0x186517(0x20a)][_0x186517(0x2d2)](_0x5019d1);_0x365b90&&(_0x365b90[_0x186517(0x1e2)](_0x453f72),(_0x53b4ce=this['_ensureSubject'](_0x5019d1))==null||_0x53b4ce['next'](_0x365b90['size']===0x0?u[_0x186517(0x211)][_0x186517(0x8d)]:u['UnitStatus'][_0x186517(0x2c8)]));}),this[_0x507625(0x125)](_0x453f72);}['_handleHeartbeatEvent'](_0x59dc55){const _0x36d052=_0x57a880;this['_scheduleClearOtherTimer'](_0x59dc55[_0x36d052(0x14f)]);}['_send'](_0x4e9daf){const _0x5e80d6=_0x57a880;localStorage[_0x5e80d6(0x34a)](ye,JSON['stringify'](_0x4e9daf));}['_scheduleHeartbeat'](){const _0x181688=_0x57a880;this[_0x181688(0x314)]=window[_0x181688(0x121)](()=>{const _0x71193d=_0x181688;this['_send']({'type':0x2,'memberID':this[_0x71193d(0x7e)]});},we);}[_0x57a880(0xfc)](_0x192770){const _0x4c7962=_0x57a880;return this[_0x4c7962(0xa3)][_0x4c7962(0x222)](_0x192770)||this['_unitStatus'][_0x4c7962(0x15b)](_0x192770,new I[(_0x4c7962(0x300))](u[_0x4c7962(0x211)][_0x4c7962(0x8d)])),this[_0x4c7962(0xa3)][_0x4c7962(0x2d2)](_0x192770);}}exports[_0x57a880(0x2ce)]=Oe,exports[_0x57a880(0x102)]=je,exports[_0x57a880(0x174)]=fs,exports['WebURLService']=ke;
|