@univerjs-pro/collaboration-client-ui 0.15.3 → 0.15.4
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 -0
- 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 -0
- 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 -0
- 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/types/locale/sk-SK.d.ts +3 -0
- 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 -0
- 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 +18 -18
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2369fc=_0x8c2a;(function(_0x5d3429,_0x3b6b61){const _0x374a0c=_0x8c2a,_0x3a62de=_0x5d3429();while(!![]){try{const _0x30fcf6=parseInt(_0x374a0c(0x240))/0x1*(parseInt(_0x374a0c(0x285))/0x2)+parseInt(_0x374a0c(0x232))/0x3+-parseInt(_0x374a0c(0x341))/0x4+parseInt(_0x374a0c(0x1f4))/0x5+-parseInt(_0x374a0c(0x368))/0x6*(parseInt(_0x374a0c(0x144))/0x7)+-parseInt(_0x374a0c(0x264))/0x8+-parseInt(_0x374a0c(0x2e9))/0x9;if(_0x30fcf6===_0x3b6b61)break;else _0x3a62de['push'](_0x3a62de['shift']());}catch(_0x9368db){_0x3a62de['push'](_0x3a62de['shift']());}}}(_0x4655,0xf3220));var Xe=Object[_0x2369fc(0x202)],Ke=(_0x2454ab,_0x327667,_0x2e6822)=>_0x327667 in _0x2454ab?Xe(_0x2454ab,_0x327667,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e6822}):_0x2454ab[_0x327667]=_0x2e6822,_=(_0x468a63,_0x201957,_0x13dcb5)=>Ke(_0x468a63,typeof _0x201957!='symbol'?_0x201957+'':_0x201957,_0x13dcb5);Object[_0x2369fc(0x202)](exports,Symbol[_0x2369fc(0x2a2)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),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:_0x359da7,..._0x5b76f9}){const _0x580a49=_0x2369fc,{icon:_0x19aa52,id:_0x16d7ac,className:_0x1c3760,extend:_0xeded02,..._0x985933}=_0x5b76f9,_0x1ff95b=('univerjs-icon\x20univerjs-icon-'+_0x16d7ac+'\x20'+(_0x1c3760||''))[_0x580a49(0x1b6)](),_0x367d25=A[_0x580a49(0x1ac)]('_'+Qe());return $e(_0x19aa52,''+_0x16d7ac,{'defIds':_0x19aa52[_0x580a49(0x21e)],'idSuffix':_0x367d25[_0x580a49(0x317)]},{'ref':_0x359da7,'className':_0x1ff95b,..._0x985933},_0xeded02);}function $e(_0x3ac5bb,_0x3f29c3,_0x5532bd,_0x36027e,_0x537a3e){const _0x113d48=_0x2369fc;return A[_0x113d48(0x137)](_0x3ac5bb[_0x113d48(0x251)],{'key':_0x3f29c3,...Je(_0x3ac5bb,_0x5532bd,_0x537a3e),..._0x36027e},(Ze(_0x3ac5bb,_0x5532bd)[_0x113d48(0x260)]||[])[_0x113d48(0x22c)]((_0x5e925d,_0x240f46)=>$e(_0x5e925d,_0x3f29c3+'-'+_0x3ac5bb[_0x113d48(0x251)]+'-'+_0x240f46,_0x5532bd,void 0x0,_0x537a3e)));}function Je(_0x45553c,_0x45b7c1,_0x2b035a){const _0xbae77e=_0x2369fc,_0x47ca3d={..._0x45553c[_0xbae77e(0x371)]};_0x2b035a!=null&&_0x2b035a[_0xbae77e(0x1f6)]&&_0x47ca3d['fill']===_0xbae77e(0x1f6)&&(_0x47ca3d[_0xbae77e(0x126)]=_0x2b035a['colorChannel1']),_0x45553c['tag']==='mask'&&_0x47ca3d['id']&&(_0x47ca3d['id']=_0x47ca3d['id']+_0x45b7c1[_0xbae77e(0x247)]),Object[_0xbae77e(0x197)](_0x47ca3d)[_0xbae77e(0x1a4)](([_0x33d8d6,_0xeec0a])=>{const _0x1e9e3e=_0xbae77e;_0x33d8d6===_0x1e9e3e(0xe8)&&typeof _0xeec0a==_0x1e9e3e(0x2c5)&&(_0x47ca3d[_0x33d8d6]=_0xeec0a[_0x1e9e3e(0x3a4)](/url\(#(.*)\)/,_0x1e9e3e(0x398)+_0x45b7c1[_0x1e9e3e(0x247)]+')'));});const {defIds:_0x573c6c}=_0x45b7c1;return!_0x573c6c||_0x573c6c['length']===0x0||(_0x45553c[_0xbae77e(0x251)]===_0xbae77e(0x241)&&_0x47ca3d[_0xbae77e(0x231)]&&(_0x47ca3d['xlink:href']=_0x47ca3d['xlink:href']+_0x45b7c1[_0xbae77e(0x247)]),Object[_0xbae77e(0x197)](_0x47ca3d)[_0xbae77e(0x1a4)](([_0x2e764d,_0x470b66])=>{const _0x4a557e=_0xbae77e;typeof _0x470b66==_0x4a557e(0x2c5)&&(_0x47ca3d[_0x2e764d]=_0x470b66[_0x4a557e(0x3a4)](/url\(#(.*)\)/,_0x4a557e(0x398)+_0x45b7c1[_0x4a557e(0x247)]+')'));})),_0x47ca3d;}function Ze(_0x40fce6,_0x21f295){const _0x4efa26=_0x2369fc;var _0x3adbf8;const {defIds:_0x38c2b2}=_0x21f295;return!_0x38c2b2||_0x38c2b2[_0x4efa26(0x236)]===0x0?_0x40fce6:_0x40fce6[_0x4efa26(0x251)]===_0x4efa26(0x17c)&&((_0x3adbf8=_0x40fce6[_0x4efa26(0x260)])!=null&&_0x3adbf8[_0x4efa26(0x236)])?{..._0x40fce6,'children':_0x40fce6[_0x4efa26(0x260)][_0x4efa26(0x22c)](_0x2b435a=>typeof _0x2b435a[_0x4efa26(0x371)]['id']==_0x4efa26(0x2c5)&&_0x38c2b2&&_0x38c2b2['includes'](_0x2b435a[_0x4efa26(0x371)]['id'])?{..._0x2b435a,'attrs':{..._0x2b435a['attrs'],'id':_0x2b435a[_0x4efa26(0x371)]['id']+_0x21f295[_0x4efa26(0x247)]}}:_0x2b435a)}:_0x40fce6;}function Qe(){const _0x2eb43d=_0x2369fc;return Math['random']()[_0x2eb43d(0x138)](0x24)['substring'](0x2,0x8);}pe[_0x2369fc(0x1a2)]=_0x2369fc(0x1b1);const et={'tag':_0x2369fc(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2369fc(0x16d),'viewBox':_0x2369fc(0x119),'width':_0x2369fc(0x190),'height':_0x2369fc(0x190)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x2369fc(0x244),'attrs':{'stroke':_0x2369fc(0x19c),'d':_0x2369fc(0x298),'strokeLinecap':_0x2369fc(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2369fc(0x17c),'attrs':{},'children':[{'tag':_0x2369fc(0x227),'attrs':{'id':_0x2369fc(0x35c)},'children':[{'tag':_0x2369fc(0x244),'attrs':{'fill':_0x2369fc(0x254),'d':_0x2369fc(0x2b1)}}]}]}],'defIds':[_0x2369fc(0x35c)]},xe=A[_0x2369fc(0x36e)](function(_0x4a2528,_0x49833a){const _0x24024f=_0x2369fc;return A[_0x24024f(0x137)](pe,Object[_0x24024f(0x3a6)]({},_0x4a2528,{'id':_0x24024f(0x2d8),'ref':_0x49833a,'icon':et}));});xe[_0x2369fc(0x1a2)]='OffLineIcon';const tt={'tag':_0x2369fc(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x2369fc(0x100),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2369fc(0x383)},'children':[{'tag':'path','attrs':{'stroke':_0x2369fc(0x19c),'d':_0x2369fc(0x282),'strokeLinecap':'round','strokeLinejoin':_0x2369fc(0x2fc),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2369fc(0x227),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x2369fc(0x254),'d':_0x2369fc(0x2b1),'transform':_0x2369fc(0x339)}}]}]}],'defIds':[_0x2369fc(0xff)]},Be=A['forwardRef'](function(_0x7b04b4,_0x25fae8){const _0x5bb3d1=_0x2369fc;return A[_0x5bb3d1(0x137)](pe,Object[_0x5bb3d1(0x3a6)]({},_0x7b04b4,{'id':'on-line-icon','ref':_0x25fae8,'icon':tt}));});Be[_0x2369fc(0x1a2)]=_0x2369fc(0x128);function st(_0x52f10c){const _0x3280f6=_0x2369fc;switch(_0x52f10c){case u['CollaborationStatus'][_0x3280f6(0x1dd)]:return _0x3280f6(0x1d4);case u['CollaborationStatus'][_0x3280f6(0x19b)]:return _0x3280f6(0xee);case u[_0x3280f6(0x30b)][_0x3280f6(0x2c8)]:return _0x3280f6(0x238);case u[_0x3280f6(0x30b)]['NOT_COLLAB']:return'collabStatus.notCollab';case u[_0x3280f6(0x30b)][_0x3280f6(0x373)]:case u[_0x3280f6(0x30b)][_0x3280f6(0x24d)]:return _0x3280f6(0x279);case u['CollaborationStatus'][_0x3280f6(0x391)]:case u[_0x3280f6(0x30b)][_0x3280f6(0x2d4)]:return'collabStatus.synced';}}function it(_0x55c39a){const _0x413587=_0x2369fc,{status$:_0x2fe453}=_0x55c39a,_0x513e7c=O['useObservable'](_0x2fe453,u[_0x413587(0x30b)][_0x413587(0x200)]),_0x3d5370=O[_0x413587(0x16f)](a[_0x413587(0x20e)]),_0x3db2c4=O[_0x413587(0x16f)](u[_0x413587(0xf0)]),_0x1eeb49=_0x513e7c!==u['CollaborationStatus'][_0x413587(0x1dd)],_0x47dd38=_0x3d5370['t'](st(_0x513e7c)),_0x439584=_0x1eeb49?M['jsx'](Be,{}):M[_0x413587(0x101)](xe,{}),_0x3d8829=A[_0x413587(0x3af)](()=>{const _0x597f80=_0x413587;_0x1eeb49||_0x3db2c4[_0x597f80(0x129)]();},[_0x1eeb49,_0x3db2c4]);function _0x5bb0a6(){const _0x4915da=_0x413587;return M[_0x4915da(0x262)](_0x4915da(0x14b),{'className':_0x4915da(0x342),'onClick':_0x3d8829,'children':[M[_0x4915da(0x101)]('div',{'className':p[_0x4915da(0x187)](_0x4915da(0x2b9),{'univer-text-green-500':_0x1eeb49,'univer-text-red-500':!_0x1eeb49}),'children':_0x439584}),M['jsx'](_0x4915da(0x14b),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x47dd38})]});}return _0x1eeb49?_0x5bb0a6():M[_0x413587(0x101)](p[_0x413587(0x10c)],{'title':_0x3d5370['t']('collab-client.tooltip.reconnect'),'children':_0x5bb0a6()});}var nt=Object[_0x2369fc(0x219)],rt=(_0x24f666,_0x406eb6,_0x34eb9a,_0x4b7e37)=>{const _0x2046fd=_0x2369fc;for(var _0x1519a3=_0x4b7e37>0x1?void 0x0:_0x4b7e37?nt(_0x406eb6,_0x34eb9a):_0x406eb6,_0xcdf357=_0x24f666[_0x2046fd(0x236)]-0x1,_0x56459d;_0xcdf357>=0x0;_0xcdf357--)(_0x56459d=_0x24f666[_0xcdf357])&&(_0x1519a3=_0x56459d(_0x1519a3)||_0x1519a3);return _0x1519a3;},K=(_0x584d14,_0x357733)=>(_0x42a74d,_0x4d6bae)=>_0x357733(_0x42a74d,_0x4d6bae,_0x584d14);exports[_0x2369fc(0x18e)]=class extends a[_0x2369fc(0x189)]{constructor(_0x54c6c0,_0xd5d67d,_0x30a5f6,_0x5888c2){const _0x445ab9=_0x2369fc;super(),_(this,_0x445ab9(0x11c),new I[(_0x445ab9(0x121))](u[_0x445ab9(0x30b)][_0x445ab9(0x200)])),(this[_0x445ab9(0x1ff)]=_0x54c6c0,this[_0x445ab9(0x2bc)]=_0xd5d67d,this[_0x445ab9(0x2e7)]=_0x30a5f6,this[_0x445ab9(0x29e)]=_0x5888c2,this[_0x445ab9(0x1bc)](),this['_initStatusListener']());}[_0x2369fc(0x176)](){const _0x4b58e6=_0x2369fc;this[_0x4b58e6(0x237)](this['_univerInstanceService'][_0x4b58e6(0x243)]['pipe'](I['switchMap'](()=>{const _0x58757c=_0x4b58e6,_0x25d9f0=this[_0x58757c(0x1ff)]['getFocusedUnit']();return _0x25d9f0?this[_0x58757c(0x2e7)][_0x58757c(0x1c0)](_0x25d9f0[_0x58757c(0x253)]()):I['of'](null);}),I['switchMap'](_0x5a5f14=>_0x5a5f14?_0x5a5f14['status$']:I['of'](u['CollaborationStatus'][_0x4b58e6(0x200)])))[_0x4b58e6(0x1e3)](_0x3c805f=>{const _0x161ead=_0x4b58e6;this['_status$'][_0x161ead(0x2b7)](_0x3c805f);}));}['_initStatusComponent'](){const _0x45f0d0=_0x2369fc;this[_0x45f0d0(0x237)](this[_0x45f0d0(0x29e)][_0x45f0d0(0x32d)](O['BuiltInUIPart'][_0x45f0d0(0x319)],()=>O[_0x45f0d0(0x1f0)](ot({'status$':this[_0x45f0d0(0x11c)][_0x45f0d0(0xf4)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x2369fc(0x24a)]),K(0x1,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),K(0x2,a['Inject'](u[_0x2369fc(0x26e)])),K(0x3,O['IUIPartsService'])],exports[_0x2369fc(0x18e)]);function ot(_0x54792b){const {status$:_0x40e3ff}=_0x54792b;return function(){const _0xdf7167=_0x8c2a;return M[_0xdf7167(0x101)](it,{'status$':_0x40e3ff});};}const Oe=a[_0x2369fc(0x155)](_0x2369fc(0x375));var at=Object[_0x2369fc(0x219)],ct=(_0x5797ca,_0x57b27f,_0x222a01,_0x58fa70)=>{const _0x5a5aff=_0x2369fc;for(var _0x2d594f=_0x58fa70>0x1?void 0x0:_0x58fa70?at(_0x57b27f,_0x222a01):_0x57b27f,_0x3e7f68=_0x5797ca[_0x5a5aff(0x236)]-0x1,_0x3c2996;_0x3e7f68>=0x0;_0x3e7f68--)(_0x3c2996=_0x5797ca[_0x3e7f68])&&(_0x2d594f=_0x3c2996(_0x2d594f)||_0x2d594f);return _0x2d594f;},Y=(_0x5d8bfa,_0x2f3da7)=>(_0x4f6b65,_0x58e062)=>_0x2f3da7(_0x4f6b65,_0x58e062,_0x5d8bfa);exports['CollaborationDataLoaderController']=class extends a[_0x2369fc(0x37f)]{constructor(_0x2de99c,_0x4fb173,_0x25f815,_0x5c77fd,_0x2d6eb8){const _0x8ba264=_0x2369fc;super(),this[_0x8ba264(0x33f)]=_0x2de99c,this[_0x8ba264(0x17d)]=_0x4fb173,this[_0x8ba264(0x24c)]=_0x25f815,this[_0x8ba264(0x27b)]=_0x5c77fd,_0x2d6eb8?_0x2d6eb8==null||_0x2d6eb8[_0x8ba264(0x301)]()[_0x8ba264(0x39a)](()=>this[_0x8ba264(0x2d3)]()):(this[_0x8ba264(0x17d)][_0x8ba264(0x325)](_0x8ba264(0x25b),_0x8ba264(0x30f)),this['_init']());}async[_0x2369fc(0x2d3)](){const _0x6e59ef=_0x2369fc,_0x2656c6=this[_0x6e59ef(0x33f)][_0x6e59ef(0x34a)](_0x6e59ef(0x15c)),_0x19800c=this[_0x6e59ef(0x33f)][_0x6e59ef(0x34a)](_0x6e59ef(0x230)),_0xa4d6=this[_0x6e59ef(0x33f)]['getParam'](_0x6e59ef(0x2a1));if(!_0x2656c6||!_0x19800c){this[_0x6e59ef(0x17d)]['debug'](_0x6e59ef(0x25b),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x4af4f5=await this[_0x6e59ef(0x27b)][_0x6e59ef(0x2c0)](_0x2656c6,Number(_0x19800c),_0xa4d6);_0x4af4f5&&_0x4af4f5 instanceof a['Workbook']&&this[_0x6e59ef(0x239)](_0x4af4f5);}async[_0x2369fc(0x239)](_0x27f3af){const _0x3ef1a4=_0x2369fc;await this[_0x3ef1a4(0x204)](_0x27f3af),_0x27f3af['activeSheet$']['pipe'](I[_0x3ef1a4(0x1e2)](this[_0x3ef1a4(0x131)]))['subscribe'](_0x5335aa=>{const _0x413533=_0x3ef1a4;_0x5335aa&&this[_0x413533(0x2a5)](_0x5335aa);}),this[_0x3ef1a4(0x33f)]['urlChange$'][_0x3ef1a4(0x28a)](I[_0x3ef1a4(0x1e2)](this[_0x3ef1a4(0x131)]))['subscribe'](()=>this[_0x3ef1a4(0x204)](_0x27f3af));}[_0x2369fc(0x2a5)](_0x12412b,_0x207ac4=!0x1){const _0x579fab=_0x2369fc,_0x2c212a=this['_urlService'][_0x579fab(0x34a)](_0x579fab(0x2a1));_0x12412b[_0x579fab(0x2b0)]()!==_0x2c212a&&this['_urlService'][_0x579fab(0x226)]('subunit',_0x12412b[_0x579fab(0x2b0)](),_0x207ac4);}async[_0x2369fc(0x204)](_0x4dfe05){const _0x2ee5e4=_0x2369fc;var _0x2aadc3;const _0x47ef7b=this['_urlService'][_0x2ee5e4(0x34a)]('subunit');if(!_0x47ef7b||!_0x4dfe05[_0x2ee5e4(0x26b)](_0x47ef7b)){const _0x442a98=_0x4dfe05[_0x2ee5e4(0x16b)]()[0x0],_0x47b16d=_0x4dfe05[_0x2ee5e4(0x26b)](_0x442a98);if(!_0x47b16d)return;this[_0x2ee5e4(0x2a5)](_0x47b16d,!0x0),await this[_0x2ee5e4(0x24c)][_0x2ee5e4(0x308)](v[_0x2ee5e4(0x25a)]['id'],{'unitId':_0x4dfe05[_0x2ee5e4(0x253)](),'subUnitId':_0x442a98});return;}((_0x2aadc3=_0x4dfe05[_0x2ee5e4(0x363)]())==null?void 0x0:_0x2aadc3['getSheetId']())!==_0x47ef7b&&await this[_0x2ee5e4(0x24c)][_0x2ee5e4(0x308)](v[_0x2ee5e4(0x25a)]['id'],{'unitId':_0x4dfe05[_0x2ee5e4(0x253)](),'subUnitId':_0x47ef7b});}},exports[_0x2369fc(0x296)]=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x2369fc(0x164)]),Y(0x3,a['Inject'](u[_0x2369fc(0x311)])),Y(0x4,a[_0x2369fc(0x19f)](qe[_0x2369fc(0x2ee)]))],exports[_0x2369fc(0x296)]);var lt=Object[_0x2369fc(0x219)],_t=(_0xb24bf1,_0xb75bff,_0x51ffa4,_0x3f6529)=>{const _0x34251d=_0x2369fc;for(var _0x2fb1da=_0x3f6529>0x1?void 0x0:_0x3f6529?lt(_0xb75bff,_0x51ffa4):_0xb75bff,_0x36e436=_0xb24bf1[_0x34251d(0x236)]-0x1,_0x342df9;_0x36e436>=0x0;_0x36e436--)(_0x342df9=_0xb24bf1[_0x36e436])&&(_0x2fb1da=_0x342df9(_0x2fb1da)||_0x2fb1da);return _0x2fb1da;},De=(_0x5a8a4f,_0x293683)=>(_0x1be77f,_0x42bf92)=>_0x293683(_0x1be77f,_0x42bf92,_0x5a8a4f);let me=class extends a['RxDisposable']{constructor(_0x3fdb0f,_0x3024d4){const _0x2af5d9=_0x2369fc;super(),this['_docClipboardService']=_0x3fdb0f,this[_0x2af5d9(0x354)]=_0x3024d4,this[_0x2af5d9(0x2d3)]();}[_0x2369fc(0x2d3)](){const _0x50842c=_0x2369fc,_0x378f9c=this;this[_0x50842c(0x237)](this[_0x50842c(0x291)][_0x50842c(0x380)]({'onBeforePasteImage':async _0xa2e553=>{const _0x4c6f65=_0x50842c,_0x51daeb=await _0x378f9c[_0x4c6f65(0x354)][_0x4c6f65(0x1d6)](_0xa2e553);return _0x51daeb?{'source':_0x51daeb[_0x4c6f65(0x148)],'imageSourceType':_0x51daeb[_0x4c6f65(0x193)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0x2369fc(0x2a3)])],me);const Ne=['purple.300','jiqing.500',_0x2369fc(0x12f),'red.300','blue.400',_0x2369fc(0x26c)];class Re extends a['Disposable']{constructor(){const _0x38befd=_0x2369fc;super(...arguments),_(this,_0x38befd(0x1ef),new Map()),_(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x10aacf){const _0x27ea9c=_0x2369fc;if(this[_0x27ea9c(0x1ef)][_0x27ea9c(0x17a)](_0x10aacf))return this[_0x27ea9c(0x1ef)][_0x27ea9c(0x30d)](_0x10aacf);const _0x38b42d=Ne[this[_0x27ea9c(0x159)]];return this[_0x27ea9c(0x159)]=(this[_0x27ea9c(0x159)]+0x1)%Ne[_0x27ea9c(0x236)],this[_0x27ea9c(0x1ef)][_0x27ea9c(0x2c6)](_0x10aacf,_0x38b42d),_0x38b42d;}}function Fe(_0x190ee7){const _0x3c17ab=_0x2369fc;let _0x18cc84='';for(const _0x55ded2 of _0x190ee7){const {startOffset:_0x52c1f9,endOffset:_0x59417e,isActive:_0x1efae5,rangeType:_0x53e0ec,segmentId:_0x3825ba,segmentPage:_0x105faf}=_0x55ded2;_0x18cc84[_0x3c17ab(0x236)]&&(_0x18cc84+=','),_0x18cc84+=_0x52c1f9+':'+_0x59417e+':'+(_0x1efae5?'1':'0')+':'+_0x53e0ec+':'+_0x3825ba+':'+_0x105faf;}return _0x18cc84;}function ht(_0xde0c52){const _0x5d7f73=_0x2369fc,_0x432891=_0xde0c52['split'](','),_0x2182e0=[];for(const _0x11560e of _0x432891){const [_0x433445,_0x4d39d4,_0x515d37,_0x1bb900,_0x591fcd,_0x1b2685]=_0x11560e[_0x5d7f73(0x2b2)](':');_0x2182e0[_0x5d7f73(0x1a0)]({'startOffset':Number(_0x433445),'endOffset':Number(_0x4d39d4),'collapsed':_0x433445===_0x4d39d4,'isActive':_0x515d37==='1','rangeType':_0x1bb900===a[_0x5d7f73(0x23f)][_0x5d7f73(0x321)]?a[_0x5d7f73(0x23f)][_0x5d7f73(0x321)]:a[_0x5d7f73(0x23f)][_0x5d7f73(0x302)],'segmentId':typeof _0x591fcd=='string'?String(_0x591fcd):'','segmentPage':Number(_0x1b2685!=null?_0x1b2685:-0x1)});}return _0x2182e0[_0x5d7f73(0x259)](_0x568ea4=>_0x568ea4[_0x5d7f73(0x266)])||(_0x2182e0[0x0][_0x5d7f73(0x266)]=!0x0),_0x2182e0;}class be extends a['RxDisposable']{constructor(){const _0x48d0ac=_0x2369fc;super(...arguments),_(this,_0x48d0ac(0x29c),new I[(_0x48d0ac(0x121))](null)),_(this,_0x48d0ac(0x278),this[_0x48d0ac(0x29c)][_0x48d0ac(0xf4)]());}[_0x2369fc(0x217)](_0x40f28f){const {unitID:_0x13eeec,memberID:_0x3e9b72,textRanges:_0x63d08c}=_0x40f28f,_0x1bcdfd=Fe(_0x63d08c);if(_0x1bcdfd==='')return;const _0x1196cd={'unitID':_0x13eeec,'memberID':_0x3e9b72,'selection':_0x1bcdfd};this['_collabCursorState$']['next'](_0x1196cd);}}var ut=Object[_0x2369fc(0x219)],It=(_0x4938dc,_0x5a56e2,_0x49de73,_0x2c15bc)=>{const _0x41bca7=_0x2369fc;for(var _0xf076b5=_0x2c15bc>0x1?void 0x0:_0x2c15bc?ut(_0x5a56e2,_0x49de73):_0x5a56e2,_0x531a09=_0x4938dc[_0x41bca7(0x236)]-0x1,_0x1411bb;_0x531a09>=0x0;_0x531a09--)(_0x1411bb=_0x4938dc[_0x531a09])&&(_0xf076b5=_0x1411bb(_0xf076b5)||_0xf076b5);return _0xf076b5;},U=(_0x4b881a,_0x224348)=>(_0xd7aab4,_0x5ab75f)=>_0x224348(_0xd7aab4,_0x5ab75f,_0x4b881a);const St=0x12c,dt=0x64;let ve=class extends a[_0x2369fc(0x37f)]{constructor(_0xf61b79,_0x3568e9,_0x32525a,_0x578bbc,_0x46b399,_0x255cc9,_0x36b778,_0x400024,_0x2b4ae3){const _0x337e84=_0x2369fc;super(),_(this,_0x337e84(0x2e3),!0x1),_(this,_0x337e84(0x2d3),!0x1),_(this,'_cursorInfo$',new I['BehaviorSubject'](new Map())),_(this,_0x337e84(0x27d),this[_0x337e84(0x1f1)]['asObservable']()),_(this,_0x337e84(0x352),new I[(_0x337e84(0x121))]([])),_(this,_0x337e84(0x37c),this[_0x337e84(0x352)][_0x337e84(0x28a)](I[_0x337e84(0x2d9)](St))),_(this,'_updateLocalCursor',a[_0x337e84(0x16a)](_0x4e9892=>{const _0x22ee50=_0x337e84,_0x373856={'eventID':g[_0x22ee50(0x22a)][_0x22ee50(0x24b)],'data':{'unitID':this[_0x22ee50(0x1ca)],'memberID':this[_0x22ee50(0x376)][_0x22ee50(0x38d)](),'selection':Fe(_0x4e9892)}};this[_0x22ee50(0x376)][_0x22ee50(0x2e2)](_0x373856,this[_0x22ee50(0x1ca)]);},dt)),(this[_0x337e84(0x1ca)]=_0xf61b79,this[_0x337e84(0x376)]=_0x3568e9,this[_0x337e84(0x2bc)]=_0x32525a,this[_0x337e84(0x28d)]=_0x578bbc,this[_0x337e84(0x338)]=_0x46b399,this[_0x337e84(0x32a)]=_0x255cc9,this['_transformService']=_0x36b778,this[_0x337e84(0x1ff)]=_0x400024,this[_0x337e84(0x24c)]=_0x2b4ae3);}get[_0x2369fc(0x374)](){const _0x3a7531=_0x2369fc;return this[_0x3a7531(0x1f1)]['getValue']();}get[_0x2369fc(0x284)](){const _0x6e1224=_0x2369fc;return this[_0x6e1224(0x352)][_0x6e1224(0x23e)]();}[_0x2369fc(0x31e)](){const _0xdebe4b=_0x2369fc;super[_0xdebe4b(0x31e)](),this[_0xdebe4b(0x1f1)][_0xdebe4b(0x2b7)](new Map()),this[_0xdebe4b(0x1f1)][_0xdebe4b(0x36f)](),this[_0xdebe4b(0x352)][_0xdebe4b(0x2b7)]([]),this[_0xdebe4b(0x352)][_0xdebe4b(0x36f)]();}[_0x2369fc(0xe9)](){const _0x5959be=_0x2369fc;this[_0x5959be(0x2d3)]||(this[_0x5959be(0x2d3)]=!0x0,this[_0x5959be(0x376)]['sessionStatus$']['pipe'](I[_0x5959be(0x1e2)](this[_0x5959be(0x131)]))[_0x5959be(0x1e3)](_0x3723ab=>{const _0x2feb75=_0x5959be;_0x3723ab===u[_0x2feb75(0x1d7)][_0x2feb75(0x357)]?this[_0x2feb75(0x35e)]():this[_0x2feb75(0x19d)]();}),this[_0x5959be(0x376)][_0x5959be(0x37d)][_0x5959be(0x28a)](I[_0x5959be(0x1e2)](this[_0x5959be(0x131)]))['subscribe'](_0x1cce42=>{const _0x980260=_0x5959be,_0x43c789=_0x1cce42[_0x980260(0x2bf)];_0x43c789===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x980260(0x367)](_0x1cce42),_0x43c789===g[_0x980260(0x22a)][_0x980260(0x133)]&&this[_0x980260(0x1cd)](_0x1cce42);}),this[_0x5959be(0x237)](this[_0x5959be(0x24c)]['onCommandExecuted'](_0x3c0c33=>{const _0x5ad06f=_0x5959be,_0x332f00=_0x3c0c33[_0x5ad06f(0x38c)];_0x332f00!=null&&this[_0x5ad06f(0x2e3)]&&_0x3c0c33['id']===V[_0x5ad06f(0x183)]['id']&&_0x332f00[_0x5ad06f(0x3a9)]===this['unitID']&&_0x332f00[_0x5ad06f(0x12c)]===!0x1&&_0x332f00[_0x5ad06f(0x33c)][_0x5ad06f(0x236)]>0x0&&this[_0x5ad06f(0x2a7)](_0x332f00['ranges']);})),this['_syncEditingCollabCursorService'][_0x5959be(0x278)][_0x5959be(0x28a)](I[_0x5959be(0x1e2)](this['dispose$']))[_0x5959be(0x1e3)](_0x1e3c82=>{const _0x66717a=_0x5959be;if((_0x1e3c82==null?void 0x0:_0x1e3c82['unitID'])!==this[_0x66717a(0x1ca)])return;const _0x1c8e20={'eventID':g['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x1e3c82};this['_onCursorUpdate'](_0x1c8e20);}),this[_0x5959be(0x237)](this[_0x5959be(0x24c)][_0x5959be(0x2dc)](_0x29a9d6=>{const _0x5d34c8=_0x5959be;if(_0x29a9d6[_0x5d34c8(0x38c)]==null)return;const _0x29a2dd=_0x29a9d6[_0x5d34c8(0x38c)];if(_0x29a9d6['id']!==V[_0x5d34c8(0x30a)]['id']||_0x29a2dd[_0x5d34c8(0x3a9)]!==this[_0x5d34c8(0x1ca)])return;const _0x4d6d47={'id':_0x5d34c8(0x272),'params':_0x29a2dd},_0x182ac0=this['cursorInfo'];for(const [_0x5bcd55,_0x1ede04]of _0x182ac0){const _0x55c19d={'id':_0x5d34c8(0x272),'params':{'unitId':this[_0x5d34c8(0x1ca)],'actions':null,'textRanges':_0x1ede04[_0x5d34c8(0x33c)]}},_0x1cedb2=this['_transformService']['transformMutation'](_0x4d6d47,_0x55c19d,!0x1);if(g[_0x5d34c8(0x1c5)](_0x1cedb2))throw _0x1cedb2['error'];_0x182ac0[_0x5d34c8(0x2c6)](_0x5bcd55,{..._0x1ede04,'ranges':_0x1cedb2[_0x5d34c8(0x33a)][_0x5d34c8(0x38c)][_0x5d34c8(0x358)]});}queueMicrotask(()=>{const _0x31021f=_0x5d34c8;this[_0x31021f(0x1f1)][_0x31021f(0x2b7)](_0x182ac0);});})));}[_0x2369fc(0x367)](_0x179ec5){const _0x3c6f08=_0x2369fc;var _0x382f18,_0x2e700c;const {memberID:_0x1be972,selection:_0x16094b}=_0x179ec5[_0x3c6f08(0x2ce)],_0x35e108=ht(_0x16094b),_0x4cc78c=(_0x2e700c=(_0x382f18=this['_memberService'][_0x3c6f08(0x1e0)](this[_0x3c6f08(0x1ca)],_0x1be972))==null?void 0x0:_0x382f18[_0x3c6f08(0x2e0)])!=null?_0x2e700c:_0x3c6f08(0x106),_0x2c29af={'color':this['_colorAssignService'][_0x3c6f08(0x2d6)](_0x1be972),'name':_0x4cc78c,'ranges':_0x35e108},_0x175a1e=this['cursorInfo'];_0x175a1e['set'](_0x1be972,_0x2c29af),this[_0x3c6f08(0x1f1)][_0x3c6f08(0x2b7)](_0x175a1e);}[_0x2369fc(0x1cd)](_0x39df7e){const _0x188423=_0x2369fc,{memberID:_0x2d3042}=_0x39df7e['data'],_0x20f13d=this[_0x188423(0x374)];_0x20f13d[_0x188423(0x10a)](_0x2d3042),this[_0x188423(0x1f1)][_0x188423(0x2b7)](_0x20f13d);}[_0x2369fc(0x35e)](){const _0x11070c=_0x2369fc;var _0x44247a;if(this[_0x11070c(0x2e3)]=!0x0,((_0x44247a=this[_0x11070c(0x1ff)][_0x11070c(0x347)]())==null?void 0x0:_0x44247a['getUnitId']())!==this[_0x11070c(0x1ca)])return;const _0x3c868f=this[_0x11070c(0x2bc)]['get'](V[_0x11070c(0x191)])['getDocRanges']();Array['isArray'](_0x3c868f)&&_0x3c868f[_0x11070c(0x236)]>0x0&&this['_updateLocalCursor'](_0x3c868f);}[_0x2369fc(0x19d)](){const _0x52c32d=_0x2369fc;this[_0x52c32d(0x2e3)]=!0x1;}};ve=It([U(0x2,a[_0x2369fc(0x2ab)](a['Injector'])),U(0x3,a[_0x2369fc(0x2ab)](Re)),U(0x4,a[_0x2369fc(0x2ab)](u[_0x2369fc(0xef)])),U(0x5,a[_0x2369fc(0x2ab)](be)),U(0x6,g[_0x2369fc(0x192)]),U(0x7,a[_0x2369fc(0x24a)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x2369fc(0x219)],mt=(_0x5e3c6c,_0x2f5bb4,_0x2a73c6,_0x2edf8b)=>{const _0x4e5a31=_0x2369fc;for(var _0x3baafd=_0x2edf8b>0x1?void 0x0:_0x2edf8b?ft(_0x2f5bb4,_0x2a73c6):_0x2f5bb4,_0xb4bf52=_0x5e3c6c[_0x4e5a31(0x236)]-0x1,_0x12b6a9;_0xb4bf52>=0x0;_0xb4bf52--)(_0x12b6a9=_0x5e3c6c[_0xb4bf52])&&(_0x3baafd=_0x12b6a9(_0x3baafd)||_0x3baafd);return _0x3baafd;},w=(_0x23c37b,_0x135530)=>(_0xd8db72,_0x21519d)=>_0x135530(_0xd8db72,_0x21519d,_0x23c37b);const vt=0x12c,gt=0x64,Et=()=>{let _0x1feab4=[],_0x43670a=!0x1;return _0x48a77b=>{const _0x53b0ed=_0x8c2a;_0x1feab4[_0x53b0ed(0x1a0)](_0x48a77b),_0x43670a||(_0x43670a=!0x0,setTimeout(()=>{const _0xec044e=_0x53b0ed;_0x1feab4[_0xec044e(0x1a4)](_0x380937=>_0x380937()),_0x1feab4=[],_0x43670a=!0x1;}));};};let ge=class extends a[_0x2369fc(0x37f)]{constructor(_0x52c974,_0xa81df0,_0x25d5b1,_0x2e62d6,_0x15b4c7,_0x29047b,_0x1ce607,_0x394db7){const _0x2ae60a=_0x2369fc;super(),_(this,'_online',!0x1),_(this,_0x2ae60a(0x2d3),!0x1),_(this,'_cursorInfo$',new I[(_0x2ae60a(0x121))](new Map())),_(this,_0x2ae60a(0x27d),this['_cursorInfo$']['asObservable']()),_(this,_0x2ae60a(0x352),new I['BehaviorSubject']([])),_(this,_0x2ae60a(0x37c),this[_0x2ae60a(0x352)]['pipe'](I[_0x2ae60a(0x2d9)](vt))),_(this,_0x2ae60a(0x2a7),a['debounce']((_0x577d10,_0x21e120)=>{const _0xdbe021=_0x2ae60a,_0x4560e5={'eventID':g[_0xdbe021(0x22a)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0xdbe021(0x376)][_0xdbe021(0x38d)](),'selection':B[_0xdbe021(0x299)](_0x577d10,_0x21e120[_0xdbe021(0xf5)])}};this[_0xdbe021(0x376)][_0xdbe021(0x2e2)](_0x4560e5,this[_0xdbe021(0x1ca)]);},gt)),(this['unitID']=_0x52c974,this[_0x2ae60a(0x376)]=_0xa81df0,this[_0x2ae60a(0x2bc)]=_0x25d5b1,this[_0x2ae60a(0x28d)]=_0x2e62d6,this[_0x2ae60a(0x338)]=_0x15b4c7,this[_0x2ae60a(0x1ff)]=_0x29047b,this[_0x2ae60a(0x24c)]=_0x1ce607,this[_0x2ae60a(0x1fc)]=_0x394db7);}get['cursorInfo'](){const _0x31d1e0=_0x2369fc;return this['_cursorInfo$'][_0x31d1e0(0x23e)]();}get[_0x2369fc(0x284)](){const _0x26baca=_0x2369fc;return this[_0x26baca(0x352)][_0x26baca(0x23e)]();}['dispose'](){const _0xc1b08e=_0x2369fc;super[_0xc1b08e(0x31e)](),this[_0xc1b08e(0x1f1)][_0xc1b08e(0x2b7)](new Map()),this[_0xc1b08e(0x1f1)][_0xc1b08e(0x36f)](),this[_0xc1b08e(0x352)][_0xc1b08e(0x2b7)]([]),this['_roomMembers$']['complete']();}[_0x2369fc(0xe9)](){const _0x48abd1=_0x2369fc;this[_0x48abd1(0x2d3)]||(this[_0x48abd1(0x2d3)]=!0x0,this['_session'][_0x48abd1(0x1f8)][_0x48abd1(0x28a)](I['takeUntil'](this[_0x48abd1(0x131)]))[_0x48abd1(0x1e3)](_0x467833=>{const _0x3116fe=_0x48abd1;_0x467833===u[_0x3116fe(0x1d7)]['ONLINE']?this[_0x3116fe(0x35e)]():this[_0x3116fe(0x19d)]();}),this[_0x48abd1(0x376)][_0x48abd1(0x37d)][_0x48abd1(0x28a)](I[_0x48abd1(0x1e2)](this[_0x48abd1(0x131)]))[_0x48abd1(0x1e3)](_0x541e4f=>{const _0x2a6521=_0x48abd1,_0x30e628=_0x541e4f[_0x2a6521(0x2bf)];_0x30e628===g[_0x2a6521(0x22a)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x541e4f),_0x30e628===g[_0x2a6521(0x22a)][_0x2a6521(0x133)]&&this['_onCursorDelete'](_0x541e4f);}),this[_0x48abd1(0x12d)](),this['disposeWithMe'](this[_0x48abd1(0x24c)][_0x48abd1(0x2dc)](_0x460de9=>{const _0x1c4f9c=_0x48abd1;if(this[_0x1c4f9c(0x2e3)]&&_0x460de9['id']===v[_0x1c4f9c(0x1c9)]['id']&&_0x460de9[_0x1c4f9c(0x38c)][_0x1c4f9c(0x3a9)]===this[_0x1c4f9c(0x1ca)]){const _0x35f70c=_0x460de9[_0x1c4f9c(0x38c)];this[_0x1c4f9c(0x2a7)](_0x35f70c['subUnitId'],_0x35f70c[_0x1c4f9c(0x211)][0x0]);}})));}[_0x2369fc(0x367)](_0x1f7027){const _0x472c1d=_0x2369fc;var _0x172da5,_0x4167d3;const {memberID:_0x100b17,selection:_0x432f1f}=_0x1f7027[_0x472c1d(0x2ce)],{sheetName:_0x80f913,range:_0x268142}=B[_0x472c1d(0x201)](_0x432f1f),_0x3e167c={'name':(_0x4167d3=(_0x172da5=this[_0x472c1d(0x338)][_0x472c1d(0x1e0)](this[_0x472c1d(0x1ca)],_0x100b17))==null?void 0x0:_0x172da5[_0x472c1d(0x2e0)])!=null?_0x4167d3:_0x472c1d(0x106),'range':this[_0x472c1d(0x1c2)](_0x80f913,_0x268142),'sheetID':_0x80f913,'color':this['_colorAssignService'][_0x472c1d(0x2d6)](_0x100b17),'selection':_0x432f1f},_0x3ea9c2=this[_0x472c1d(0x374)];_0x3ea9c2[_0x472c1d(0x2c6)](_0x100b17,_0x3e167c),this[_0x472c1d(0x1f1)][_0x472c1d(0x2b7)](_0x3ea9c2);}[_0x2369fc(0x1cd)](_0x4231d2){const _0x43cb68=_0x2369fc,{memberID:_0x2633dd}=_0x4231d2['data'],_0x58cf70=this[_0x43cb68(0x374)];_0x58cf70['delete'](_0x2633dd),this[_0x43cb68(0x1f1)][_0x43cb68(0x2b7)](_0x58cf70);}['_getMergeRange'](_0x26d513,_0x383d63){const _0x2da29b=_0x2369fc;var _0x45e88c,_0x5ac7a3;const _0x206093=(_0x5ac7a3=(_0x45e88c=this[_0x2da29b(0x1ff)][_0x2da29b(0x15b)](this[_0x2da29b(0x1ca)]))==null?void 0x0:_0x45e88c['getSheetBySheetId'](_0x26d513))==null?void 0x0:_0x5ac7a3[_0x2da29b(0x22d)]();return(_0x206093==null?void 0x0:_0x206093['find'](_0x9cf95=>a['Rectangle'][_0x2da29b(0x19a)](_0x9cf95,_0x383d63)))||_0x383d63;}[_0x2369fc(0x12d)](){const _0x2cefa3=_0x2369fc,_0x4f8180=new a[(_0x2cefa3(0x2e4))](),_0x41ad5a=Et(),_0x3ef154=()=>{const _0x428539=_0x2cefa3;_0x4f8180[_0x428539(0x31e)]();const _0x2c9deb=(_0x42db0e,_0x132e34,_0x586561,_0x363323)=>{const _0x25e1cf=_0x428539;let _0x1074bc=[];switch(_0x42db0e['id']){case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x120)]:{_0x1074bc=v[_0x25e1cf(0x134)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)]['DeleteRangeMoveUpCommandId']:{_0x1074bc=v[_0x25e1cf(0x116)](_0x42db0e,_0x363323);break;}case v['EffectRefRangId'][_0x25e1cf(0x36a)]:{_0x1074bc=v[_0x25e1cf(0x3a1)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x1f5)]:{_0x1074bc=v['handleInsertRangeMoveDown'](_0x42db0e,_0x363323);break;}case v['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x1074bc=v['handleInsertRangeMoveRight'](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x2ef)]:{_0x1074bc=v['handleInsertRow'](_0x42db0e,_0x363323);break;}case v['EffectRefRangId']['MoveRangeCommandId']:{_0x1074bc=v[_0x25e1cf(0x2fe)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x167)]:{_0x1074bc=v[_0x25e1cf(0x288)](_0x42db0e,_0x363323);break;}case v[_0x25e1cf(0x2f4)][_0x25e1cf(0x315)]:{_0x1074bc=v[_0x25e1cf(0x21d)](_0x42db0e,_0x363323);break;}}const _0x41f2ad=v[_0x25e1cf(0x306)](_0x1074bc,_0x363323),_0x26f81b=this[_0x25e1cf(0x374)][_0x25e1cf(0x30d)](_0x132e34);if(_0x26f81b&&_0x41f2ad){const _0x1792f5={..._0x26f81b,'range':_0x41f2ad};this[_0x25e1cf(0x374)][_0x25e1cf(0x2c6)](_0x132e34,_0x1792f5),_0x41ad5a(()=>{const _0x2a13a8=_0x25e1cf,_0x22a10e=this['_refRangeService'][_0x2a13a8(0x36b)](_0x41f2ad,_0x2c41ab=>(_0x22a10e[_0x2a13a8(0x31e)](),_0x2c9deb(_0x2c41ab,_0x132e34,_0x586561,_0x41f2ad)));_0x4f8180[_0x2a13a8(0x161)](_0x22a10e);});}return{'redos':[],'undos':[]};};this[_0x428539(0x374)][_0x428539(0x1a4)]((_0x456122,_0x515bb9)=>{const _0x4193cd=_0x428539,{range:_0x580805,sheetID:_0x4d8c54}=_0x456122,_0x55fcfc=this[_0x4193cd(0x1fc)][_0x4193cd(0x36b)](_0x580805,_0x6493d4=>(_0x55fcfc[_0x4193cd(0x31e)](),_0x2c9deb(_0x6493d4,_0x515bb9,_0x4d8c54,_0x580805)));_0x4f8180[_0x4193cd(0x161)](_0x55fcfc);});};this['disposeWithMe'](a[_0x2cefa3(0x199)](this['_cursorInfo$'][_0x2cefa3(0x1e3)](()=>{_0x3ef154();})));}[_0x2369fc(0x35e)](){const _0x2fea14=_0x2369fc;var _0x340e08,_0x5300fc;if(this[_0x2fea14(0x2e3)]=!0x0,((_0x340e08=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x340e08[_0x2fea14(0x253)]())!==this['unitID'])return;const _0x4c1e61=(_0x5300fc=this[_0x2fea14(0x2bc)][_0x2fea14(0x30d)](v[_0x2fea14(0x39f)])['getCurrentSelections']())==null?void 0x0:_0x5300fc[0x0],_0x5853f2=this[_0x2fea14(0x1ff)]['getCurrentUnitForType'](a[_0x2fea14(0x392)]['UNIVER_SHEET'])[_0x2fea14(0x363)]();_0x4c1e61&&_0x5853f2&&this[_0x2fea14(0x2a7)](_0x5853f2[_0x2fea14(0x2b0)](),_0x4c1e61);}[_0x2369fc(0x19d)](){const _0x446ff6=_0x2369fc;this[_0x446ff6(0x2e3)]=!0x1;}};ge=mt([w(0x2,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),w(0x3,a[_0x2369fc(0x2ab)](Re)),w(0x4,a[_0x2369fc(0x2ab)](u[_0x2369fc(0xef)])),w(0x5,a['IUniverInstanceService']),w(0x6,a['ICommandService']),w(0x7,a[_0x2369fc(0x2ab)](v[_0x2369fc(0x269)]))],ge);var Ct=Object[_0x2369fc(0x219)],Tt=(_0x431715,_0x1783c4,_0x4b00da,_0x362d07)=>{const _0x3c3502=_0x2369fc;for(var _0x2dcd1e=_0x362d07>0x1?void 0x0:_0x362d07?Ct(_0x1783c4,_0x4b00da):_0x1783c4,_0x304b00=_0x431715[_0x3c3502(0x236)]-0x1,_0x59088c;_0x304b00>=0x0;_0x304b00--)(_0x59088c=_0x431715[_0x304b00])&&(_0x2dcd1e=_0x59088c(_0x2dcd1e)||_0x2dcd1e);return _0x2dcd1e;},ce=(_0x30ab56,_0x1f2d8c)=>(_0x3c9680,_0x58b0b9)=>_0x1f2d8c(_0x3c9680,_0x58b0b9,_0x30ab56);let F=class extends a[_0x2369fc(0x37f)]{constructor(_0x4399e9,_0x18ae3c,_0x5eb800){const _0x5ae095=_0x2369fc;super(),_(this,_0x5ae095(0x2cf),new Map()),_(this,_0x5ae095(0x389),new I[(_0x5ae095(0x310))]()),(this['_univerInstanceService']=_0x4399e9,this[_0x5ae095(0x2bc)]=_0x18ae3c,this[_0x5ae095(0x16c)]=_0x5eb800,this[_0x5ae095(0x2d3)]());}[_0x2369fc(0x31e)](){const _0xafd8b6=_0x2369fc;super[_0xafd8b6(0x31e)](),this[_0xafd8b6(0x389)][_0xafd8b6(0x36f)](),this[_0xafd8b6(0x2cf)]['forEach'](_0x50ca55=>_0x50ca55['dispose']());}[_0x2369fc(0xe3)](_0x5c4502){const _0x55a520=_0x2369fc;return this[_0x55a520(0x2cf)][_0x55a520(0x17a)](_0x5c4502)?this[_0x55a520(0x2cf)][_0x55a520(0x30d)](_0x5c4502)[_0x55a520(0x27d)]:this[_0x55a520(0x389)][_0x55a520(0x28a)](I[_0x55a520(0x21c)](_0x202527=>_0x202527[_0x55a520(0x1ca)]===_0x5c4502),I[_0x55a520(0x280)](_0x353760=>_0x353760['cursorInfo$']));}[_0x2369fc(0x2d3)](){const _0x15ecd9=_0x2369fc;this[_0x15ecd9(0x1ff)][_0x15ecd9(0x1a1)](a['UniverInstanceType'][_0x15ecd9(0x2b8)])[_0x15ecd9(0x28a)](I['takeUntil'](this[_0x15ecd9(0x131)]))[_0x15ecd9(0x1e3)](async _0x1740b6=>{const _0x43825d=_0x15ecd9,_0x246fec=_0x1740b6[_0x43825d(0x253)](),_0x1cf8a9=await this[_0x43825d(0x343)](_0x246fec);this[_0x43825d(0x389)][_0x43825d(0x2b7)](_0x1cf8a9),this[_0x43825d(0x2cf)][_0x43825d(0x2c6)](_0x246fec,_0x1cf8a9);}),this[_0x15ecd9(0x1ff)][_0x15ecd9(0x1a1)](a[_0x15ecd9(0x392)][_0x15ecd9(0xf2)])['pipe'](I['takeUntil'](this[_0x15ecd9(0x131)]))[_0x15ecd9(0x28a)](I[_0x15ecd9(0x21c)](_0x4a24f3=>!_0x4a24f3['getUnitId']()[_0x15ecd9(0x1c7)]('__')))[_0x15ecd9(0x1e3)](async _0x22f191=>{const _0x2a9d62=_0x15ecd9,_0x2aa447=_0x22f191['getUnitId'](),_0x30b4fe=await this[_0x2a9d62(0x294)](_0x2aa447);this[_0x2a9d62(0x389)][_0x2a9d62(0x2b7)](_0x30b4fe),this['_entities']['set'](_0x2aa447,_0x30b4fe);}),I[_0x15ecd9(0x224)](this[_0x15ecd9(0x1ff)]['getTypeOfUnitDisposed$'](a[_0x15ecd9(0x392)]['UNIVER_DOC']),this[_0x15ecd9(0x1ff)][_0x15ecd9(0x14c)](a[_0x15ecd9(0x392)][_0x15ecd9(0x2b8)]))[_0x15ecd9(0x28a)](I[_0x15ecd9(0x1e2)](this[_0x15ecd9(0x131)]))['subscribe'](_0x334909=>{const _0x1548cc=_0x15ecd9,_0x157cc2=_0x334909[_0x1548cc(0x253)](),_0x4289f5=this['_entities']['get'](_0x157cc2);_0x4289f5&&(_0x4289f5[_0x1548cc(0x31e)](),this['_entities'][_0x1548cc(0x10a)](_0x157cc2));});}async[_0x2369fc(0x343)](_0x496603){const _0x4edd45=_0x2369fc,_0x541767=await this['_collabSessionService']['requireSession'](_0x496603),_0x3dfb28=this[_0x4edd45(0x2bc)][_0x4edd45(0x365)](ge,_0x496603,_0x541767);return _0x3dfb28['init'](),_0x3dfb28;}async[_0x2369fc(0x294)](_0x39f2d7){const _0xd6d815=_0x2369fc,_0x2895c5=await this[_0xd6d815(0x16c)][_0xd6d815(0x2a8)](_0x39f2d7),_0x47d55e=this[_0xd6d815(0x2bc)][_0xd6d815(0x365)](ve,_0x39f2d7,_0x2895c5);return _0x47d55e[_0xd6d815(0xe9)](),_0x47d55e;}};F=Tt([ce(0x0,a[_0x2369fc(0x24a)]),ce(0x1,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),ce(0x2,a['Inject'](u[_0x2369fc(0xf0)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x1694f7,_0x1c67c2){const _0x1d26f9=_0x2369fc;let {radius:_0x4f3e26,width:_0x376a04,height:_0x22bffd}=_0x1c67c2;_0x4f3e26=_0x4f3e26!=null?_0x4f3e26:0x0,_0x376a04=_0x376a04!=null?_0x376a04:0x1e,_0x22bffd=_0x22bffd!=null?_0x22bffd:0x1e;let _0x493eba=0x0,_0x5abafd=0x0,_0x563d31=0x0;_0x493eba=_0x5abafd=_0x563d31=Math[_0x1d26f9(0x151)](_0x4f3e26,_0x376a04/0x2,_0x22bffd/0x2),_0x1694f7['beginPath'](),_0x1694f7['moveTo'](_0x493eba,0x0),_0x1694f7[_0x1d26f9(0x27e)](_0x376a04-_0x5abafd,0x0),_0x1694f7['arc'](_0x376a04-_0x5abafd,_0x5abafd,_0x5abafd,Math['PI']*0x3/0x2,0x0,!0x1),_0x1694f7['lineTo'](_0x376a04,_0x22bffd-_0x563d31),_0x1694f7[_0x1d26f9(0x135)](_0x376a04-_0x563d31,_0x22bffd-_0x563d31,_0x563d31,0x0,Math['PI']/0x2,!0x1),_0x1694f7[_0x1d26f9(0x27e)](0x0,_0x22bffd),_0x1694f7[_0x1d26f9(0x27e)](0x0,_0x493eba),_0x1694f7[_0x1d26f9(0x135)](_0x493eba,_0x493eba,_0x493eba,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1694f7[_0x1d26f9(0x1e1)](),_0x1c67c2[_0x1d26f9(0x126)]&&(_0x1694f7[_0x1d26f9(0x112)](),_0x1694f7[_0x1d26f9(0x13b)]=_0x1c67c2[_0x1d26f9(0x126)],_0x1c67c2[_0x1d26f9(0x2ec)]===_0x1d26f9(0x11f)?_0x1694f7[_0x1d26f9(0x126)]('evenodd'):_0x1694f7[_0x1d26f9(0x126)](),_0x1694f7['restore']());}class re extends C['Shape']{constructor(_0x5ca66b,_0x378a88){const _0x22d921=_0x2369fc;super(_0x5ca66b,_0x378a88),_(this,_0x22d921(0x123)),_(this,_0x22d921(0x13e)),(this[_0x22d921(0x123)]=_0x378a88==null?void 0x0:_0x378a88['color'],this['text']=_0x378a88==null?void 0x0:_0x378a88[_0x22d921(0x13e)]);}static[_0x2369fc(0x263)](_0x372d1b,_0x41f6e1){const _0x25ccae=_0x2369fc,{text:_0x3cc0bb,color:_0x5dc2e8}=_0x41f6e1;_0x372d1b[_0x25ccae(0x112)](),_0x372d1b[_0x25ccae(0x39b)]=_0x25ccae(0x114);const _0x34e9d3=_0x372d1b[_0x25ccae(0x223)](_0x3cc0bb)[_0x25ccae(0xf7)],_0x5882ee=Math[_0x25ccae(0x151)](_0x34e9d3+0x2*le,Ue);Ot(_0x372d1b,{'height':X,'radius':0x4,'width':_0x5882ee,'fill':_0x5dc2e8}),_0x372d1b[_0x25ccae(0x13b)]=_0x25ccae(0x1d3);const _0x33b93b=le,_0x2a0702=X-pt,_0x20d106=Ue-0x2*le;if(_0x34e9d3>_0x20d106){let _0x2a40b0='',_0x137e5e=0x0;for(const _0x5baf8a of _0x3cc0bb){const _0x1bae7e=_0x372d1b[_0x25ccae(0x223)](_0x5baf8a)['width'];if(_0x137e5e+_0x1bae7e<=_0x20d106-_0x372d1b[_0x25ccae(0x223)](_0x25ccae(0x2f6))[_0x25ccae(0xf7)])_0x2a40b0+=_0x5baf8a,_0x137e5e+=_0x1bae7e;else{_0x2a40b0+=_0x25ccae(0x2f6);break;}}_0x372d1b[_0x25ccae(0x2a6)](_0x2a40b0,_0x33b93b,_0x2a0702);}else _0x372d1b[_0x25ccae(0x2a6)](_0x3cc0bb,_0x33b93b,_0x2a0702);_0x372d1b[_0x25ccae(0x1fb)]();}[_0x2369fc(0x1ad)](_0x1c9215){const _0x29dd47=_0x2369fc;re[_0x29dd47(0x263)](_0x1c9215,this);}}const _e=_0x2369fc(0x169),Rt=_0x2369fc(0x35f),bt=_0x2369fc(0x378),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x2369fc(0xf6);class Le{constructor(_0x461695,_0x900680,_0x79d213,_0x13edf0){const _0x39f4e1=_0x2369fc;_(this,_0x39f4e1(0x2c3),[]),_(this,_0x39f4e1(0x1e9),null),_(this,_0x39f4e1(0x265),null),_(this,_0x39f4e1(0x2bb),null),_(this,'_hideTimer',null),_(this,_0x39f4e1(0x318),null),(this[_0x39f4e1(0x1ce)]=_0x461695,this[_0x39f4e1(0x163)]=_0x900680,this[_0x39f4e1(0x127)]=_0x79d213,this[_0x39f4e1(0x399)]=_0x13edf0,this[_0x39f4e1(0x274)]());}set[_0x2369fc(0x21b)](_0x392158){const _0x567edb=_0x2369fc;_0x392158?(this[_0x567edb(0x2bb)]&&this[_0x567edb(0x2bb)]['hide'](),this[_0x567edb(0x265)]&&this[_0x567edb(0x265)][_0x567edb(0x1c4)]()):(this['_anchorDot']&&this['_anchorDot'][_0x567edb(0x1c4)](),this[_0x567edb(0x265)]&&this['_textBubble']['hide']());}[_0x2369fc(0x31e)](){const _0x204a91=_0x2369fc;for(const _0x6b86d9 of this[_0x204a91(0x2c3)])_0x6b86d9['dispose']();this[_0x204a91(0x265)]&&this[_0x204a91(0x265)]['dispose'](),this[_0x204a91(0x2bb)]&&this[_0x204a91(0x2bb)][_0x204a91(0x31e)](),this['_anchor']&&this[_0x204a91(0x1e9)]['dispose'](),this['_eventUnsubscribe']&&this[_0x204a91(0x318)]();}[_0x2369fc(0x274)](){const _0x16f917=_0x2369fc;var _0x4eec24;const {_docSkeleton:_0x2bbe27,_document:_0x4bb0d2}=this,{color:_0x329340,name:_0x12c250,ranges:_0x11add5}=this[_0x16f917(0x1ce)],_0x4c39eb=_0x4bb0d2[_0x16f917(0x304)](),{docsLeft:_0x4f6458,docsTop:_0x333b58}=_0x4c39eb,_0x5e40da=new T[(_0x16f917(0x158))](_0x4c39eb,_0x2bbe27);for(const {startOffset:_0x1899d4,endOffset:_0xdfee3c,rangeType:_0x846f12,segmentId:_0x5d27c5,segmentPage:_0x53cde7,collapsed:_0xa8dffc,isActive:_0x24672e}of _0x11add5){const _0x2614f7=_0x2bbe27[_0x16f917(0x18d)](_0x1899d4,!0x0,_0x5d27c5,_0x53cde7);let _0x4e53f0=_0x2bbe27[_0x16f917(0x18d)](_0xdfee3c,!0x0,_0x5d27c5,_0x53cde7);if(_0x4e53f0==null&&(_0x4e53f0=_0x2bbe27[_0x16f917(0x18d)](_0xdfee3c-0x1,!0x1,_0x5d27c5,_0x53cde7)),_0x24672e){const {contentBoxPointGroup:_0x1f9f99}=_0x5e40da[_0x16f917(0x2fd)](_0x4e53f0,_0x4e53f0);if(_0x1f9f99[_0x16f917(0x236)]===0x0)continue;this[_0x16f917(0x1ec)](_0x329340,_0x1f9f99,_0x4f6458,_0x333b58,_0x12c250),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x2614f7&&_0x4e53f0){if(_0x846f12===a[_0x16f917(0x23f)]['RECT']){const _0x33e95f=new T['NodePositionConvertToRectRange'](_0x4c39eb,_0x2bbe27),{pointGroup:_0x4a33c9}=(_0x4eec24=_0x33e95f[_0x16f917(0x2fd)](_0x2614f7,_0x4e53f0))!=null?_0x4eec24:{};if(_0x4a33c9==null||_0x4a33c9[_0x16f917(0x236)]===0x0)continue;this['_drawRectRange'](_0x329340,_0x4a33c9,_0x4f6458,_0x333b58);}else{if(!_0xa8dffc){const {borderBoxPointGroup:_0x2b5e0d}=_0x5e40da[_0x16f917(0x2fd)](_0x2614f7,_0x4e53f0);if(_0x2b5e0d[_0x16f917(0x236)]===0x0)continue;this[_0x16f917(0x2f8)](_0x329340,_0x2b5e0d,_0x4f6458,_0x333b58);}}}}}[_0x2369fc(0x1ec)](_0x40c8ef,_0x8c2019,_0x265cdb,_0x593891,_0x28a1a4){const _0x1b89c5=_0x2369fc,_0x3374ee=this[_0x1b89c5(0x1dc)](_0x8c2019),{left:_0x3b0d05,top:_0xb9cb7d,height:_0x4c8b9a}=_0x3374ee,_0x2c477c=this[_0x1b89c5(0x142)](),_0x3a6721=Nt/_0x2c477c,_0x1d3a7b=new C['Rect'](_e+a[_0x1b89c5(0x2f7)](H),{'left':_0x3b0d05+_0x265cdb-_0x3a6721,'top':_0xb9cb7d+_0x593891,'height':_0x4c8b9a,'width':Dt,'fill':_0x40c8ef||C[_0x1b89c5(0x1fe)](a[_0x1b89c5(0x225)][_0x1b89c5(0x3ab)],0x0),'strokeWidth':_0x3a6721,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x1d3a7b,this[_0x1b89c5(0x163)][_0x1b89c5(0x221)](_0x1d3a7b,T[_0x1b89c5(0x388)]);const _0x273611=new C['Rect'](_e+a[_0x1b89c5(0x2f7)](H),{'left':_0x3b0d05+_0x265cdb-_0x3a6721,'top':_0xb9cb7d+_0x593891-he/0x2,'height':he,'width':he,'fill':_0x40c8ef||C[_0x1b89c5(0x1fe)](a[_0x1b89c5(0x225)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x40c8ef||C[_0x1b89c5(0x1fe)](a['COLORS'][_0x1b89c5(0x3ab)],0x0),'evented':!0x1});this['_anchorDot']=_0x273611,this[_0x1b89c5(0x163)][_0x1b89c5(0x221)](_0x273611,T[_0x1b89c5(0x388)]);const _0x404e9d=new re(_e+a[_0x1b89c5(0x2f7)](H),{'left':_0x3b0d05+_0x265cdb-_0x3a6721,'top':_0xb9cb7d+_0x593891-X,'text':_0x28a1a4,'color':_0x40c8ef});this[_0x1b89c5(0x265)]=_0x404e9d,this[_0x1b89c5(0x163)]['addObject'](_0x404e9d,T[_0x1b89c5(0x388)]),this['_hover']=!0x1;}[_0x2369fc(0x1ab)](){const _0x2070dc=_0x2369fc,_0x33b217=this[_0x2070dc(0x1e9)]['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x306cc2=this[_0x2070dc(0x1e9)][_0x2070dc(0x113)]['subscribeEvent'](()=>{const _0x3173f6=_0x2070dc;this[_0x3173f6(0x1ea)]&&clearTimeout(this[_0x3173f6(0x1ea)]),this[_0x3173f6(0x1ea)]=setTimeout(()=>{const _0x4c743c=_0x3173f6;this[_0x4c743c(0x21b)]=!0x1;},0x7d0);});return()=>{const _0x447df0=_0x2070dc;_0x33b217['unsubscribe'](),_0x306cc2[_0x447df0(0xe7)]();};}[_0x2369fc(0x2f8)](_0x14040a,_0x2bc485,_0x6f997f,_0x5a0fc2){const _0x4b1617=_0x2369fc,_0x965ae0=new a[(_0x4b1617(0x1d8))](_0x14040a)[_0x4b1617(0x2da)](0.2)[_0x4b1617(0x394)](),_0x4ee1d6=new C[(_0x4b1617(0xfb))](Rt+a[_0x4b1617(0x2f7)](H),{'pointsGroup':_0x2bc485,'fill':_0x965ae0||C[_0x4b1617(0x1fe)](a[_0x4b1617(0x225)][_0x4b1617(0x3ab)],0.2),'left':_0x6f997f,'top':_0x5a0fc2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4b1617(0x2c3)][_0x4b1617(0x1a0)](_0x4ee1d6),this['_scene'][_0x4b1617(0x221)](_0x4ee1d6,T[_0x4b1617(0x388)]);}[_0x2369fc(0x322)](_0x16b990,_0x379caa,_0x1d71d6,_0xd57617){const _0xc26e03=_0x2369fc,_0x2ec394=new a[(_0xc26e03(0x1d8))](_0x16b990)[_0xc26e03(0x2da)](0.2)[_0xc26e03(0x394)](),_0x310311=new C['RegularPolygon'](bt+a[_0xc26e03(0x2f7)](H),{'pointsGroup':_0x379caa,'fill':_0x2ec394||C['getColor'](a['COLORS'][_0xc26e03(0x3ab)],0.2),'left':_0x1d71d6,'top':_0xd57617,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xc26e03(0x1a0)](_0x310311),this[_0xc26e03(0x163)][_0xc26e03(0x221)](_0x310311,T[_0xc26e03(0x388)]);}[_0x2369fc(0x1dc)](_0x4a35e6){const _0x3edc20=_0x4a35e6[0x0],_0x11824e=_0x3edc20[0x0],_0x43495f=_0x3edc20[0x2],{x:_0x17e92e,y:_0x11b68c}=_0x11824e,{x:_0x423b84,y:_0x1a3a38}=_0x43495f;return{'left':_0x17e92e,'top':_0x11b68c,'width':_0x423b84-_0x17e92e,'height':_0x1a3a38-_0x11b68c};}[_0x2369fc(0x142)](){const _0x11e34c=_0x2369fc,{scaleX:_0xe0c71b,scaleY:_0x2ba433}=this['_scene'][_0x11e34c(0x1b0)]();return Math[_0x11e34c(0x1d5)](_0xe0c71b,_0x2ba433);}}var Lt=Object[_0x2369fc(0x219)],Mt=(_0x5abb22,_0x4b7132,_0x1d0c72,_0x37c7a5)=>{const _0x5cc0f5=_0x2369fc;for(var _0x393ac4=_0x37c7a5>0x1?void 0x0:_0x37c7a5?Lt(_0x4b7132,_0x1d0c72):_0x4b7132,_0xf150c6=_0x5abb22[_0x5cc0f5(0x236)]-0x1,_0x4d4927;_0xf150c6>=0x0;_0xf150c6--)(_0x4d4927=_0x5abb22[_0xf150c6])&&(_0x393ac4=_0x4d4927(_0x393ac4)||_0x393ac4);return _0x393ac4;},q=(_0x19883d,_0x60d5ff)=>(_0x3381c5,_0xb06fba)=>_0x60d5ff(_0x3381c5,_0xb06fba,_0x19883d);let Ee=class extends a[_0x2369fc(0x37f)]{constructor(_0x596262,_0x58e4e3,_0x24496c,_0x3e3e0d,_0x4f9347){const _0x47faeb=_0x2369fc;super(),_(this,_0x47faeb(0x20c),[]),_(this,_0x47faeb(0x18a),[]),(this['_context']=_0x596262,this[_0x47faeb(0x30c)]=_0x58e4e3,this[_0x47faeb(0x102)]=_0x24496c,this[_0x47faeb(0x24c)]=_0x3e3e0d,this[_0x47faeb(0x324)]=_0x4f9347,this[_0x47faeb(0x2d3)]());}[_0x2369fc(0x2d3)](){const _0x1f9d86=_0x2369fc,_0x646286=this[_0x1f9d86(0x1e8)][_0x1f9d86(0x3a9)],_0x4fc05f=this['_docSkeletonManagerService'];this['disposeWithMe'](I[_0x1f9d86(0x11a)]([this[_0x1f9d86(0x102)][_0x1f9d86(0xe3)](_0x646286),this[_0x1f9d86(0x324)][_0x1f9d86(0x184)]])['pipe']($[_0x1f9d86(0x22c)](([_0x1a35a2,_0x3bcca5])=>({'skeleton':_0x4fc05f['getSkeleton'](),'cursors':[..._0x1a35a2['values']()][_0x1f9d86(0x38f)](_0x323227=>({..._0x323227,'color':this['_themeService'][_0x1f9d86(0x2b5)](_0x323227[_0x1f9d86(0x123)])}))})))[_0x1f9d86(0x1e3)](_0xb86bc4=>{const _0x321dad=_0x1f9d86;if(this[_0x321dad(0x258)](),_0xb86bc4){const {skeleton:_0x390cdd,cursors:_0x49126b}=_0xb86bc4;this[_0x321dad(0x382)](_0x390cdd,_0x49126b);}})),this[_0x1f9d86(0x2cc)](),this[_0x1f9d86(0x300)]();}['_updateCollabCursors'](_0x341897,_0x1e63c5){const _0x3b4c94=_0x2369fc,{scene:_0x499fad,mainComponent:_0x122e34}=this['_context'],_0x4b1eda=_0x1e63c5[_0x3b4c94(0x22c)](_0x290a0b=>new Le(_0x290a0b,_0x499fad,_0x341897,_0x122e34));this[_0x3b4c94(0x20c)]=_0x4b1eda,this[_0x3b4c94(0x18a)]=_0x1e63c5;}['_refreshCollabCursors'](){const _0x4ede2a=_0x2369fc;this['_removeCollabCursors']();const {scene:_0x242229,mainComponent:_0x33a172}=this['_context'],_0x41a699=this['_docSkeletonManagerService'][_0x4ede2a(0x3ac)](),_0x3475f6=this[_0x4ede2a(0x18a)][_0x4ede2a(0x22c)](_0x40ad51=>new Le(_0x40ad51,_0x242229,_0x41a699,_0x33a172));this['_cursorShapes']=_0x3475f6;}[_0x2369fc(0x258)](){const _0x4ce305=_0x2369fc;this[_0x4ce305(0x20c)][_0x4ce305(0x1a4)](_0x19d689=>_0x19d689[_0x4ce305(0x31e)]()),this[_0x4ce305(0x20c)]=[];}[_0x2369fc(0x300)](){const _0x25ef47=_0x2369fc,_0x325f85=[T[_0x25ef47(0x228)]['id']];this[_0x25ef47(0x237)](this[_0x25ef47(0x24c)][_0x25ef47(0x2dc)](_0x3c7aed=>{const _0x327909=_0x25ef47;_0x325f85[_0x327909(0x11d)](_0x3c7aed['id'])&&_0x3c7aed['params'][_0x327909(0x3a9)]===this[_0x327909(0x1e8)][_0x327909(0x3a9)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x3562c7=_0x2369fc;this['disposeWithMe'](a[_0x3562c7(0x17f)](this[_0x3562c7(0x1e8)][_0x3562c7(0x1ee)][_0x3562c7(0x1a5)])[_0x3562c7(0x28a)]($['filter'](_0x855a54=>_0x855a54[_0x3562c7(0x230)]===C[_0x3562c7(0x147)][_0x3562c7(0x21f)]),$[_0x3562c7(0x141)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};function _0x4655(){const _0x1cc157=['_init','PENDING','getCurrentRevOfUnit','assignAColorForMemberID','sessionTicket','off-line-icon','debounceTime','setAlpha','DocStateChangeManagerService','onCommandExecuted','_saveTaskMap','UNAUTHENTICATED','setActiveRange','name','YUUMI_RATE_OVER_LIMIT','send','_online','DisposableCollection','/universer-api/license/formula/limit/start','Failed','_collaborationController','ILogService','19530090dTVVHG','_unitOnClients','_configService','fillRule','setItem','IRemoteInstanceService','InsertRowCommandId','_getSaveTimeout','_setupBeforeClosingHandler','unshift','_selfUnitIDs','EffectRefRangId','entityInit$','...','generateRandomId','_drawTextRange','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_cachedData','touchDependencies','round','getRangePointData','handleMoveRange','collaboration.closeRoom','_initCommandExecutedListener','whenReady','RECT','onPointerMove$','getOffsetConfig','sheetID','runRefRangeMutations','shift','executeCommand','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RichTextEditingMutation','CollaborationStatus','_docSkeletonManagerService','get','_pollingInterval','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Subject','DataLoaderService','disposeUnit','Shape','MessageType','RemoveRowCommandId','setUndoRedoMutationParamsCache','current','_eventUnsubscribe','HEADER_MENU','EMAIL_VERIFY_CODE_MISMATCH','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_setFormulaLimitStatus','SHEET_VIEWPORT_KEY','dispose','YUUMI_NO_CUBOID_FOR_QUESTION','FromArray','TEXT','_drawRectRange','_initDependencies','_themeService','debug','onStarting','INVALID_INVITE_CODE','ENTITLE_CAN_NOT_BUY_LOWER_OTP','releaseFormulaLimitUrl','_syncEditingCollabCursorService','subscribeEvent','permission.title','registerComponent','currentSkeleton$','MOBILE_VERIFY_CODE_MISMATCH','skeleton','SetFormulaCalculationNotificationMutation','CONNECTOR_DATA_TOO_LARGE','functionsExecutedState','_range','_docTransformSelectionsService','_checkAndWaitForCalculationPermission','_transformHistoryAndStateStack','_memberService','translate(.97)','m2Prime','ENTITLE_USE_COUPON_NOT_1ST_TRADE','ranges','ThemeService','searchParams','_urlService','_instanceService','1749976zetQSz','univer-flex\x20univer-items-center','_startSheetCollabCursor','clearInterval','INVITE_CODE_REQUIRED','_handleJoinEvent','getFocusedUnit','ENTITLE_COUPON_USED_UP','YUUMI_TABLE_NOT_FOUND_IN_UNIT','getParam','INVALID_ARGUMENT','replaceState','transformSelections','SUBMIT_CHANGESET_TIMEOUT','_transformService','newValue','ILocalCacheService','_roomMembers$','height','_imageIoService','bottom','transformMutation','ONLINE','textRanges','_initUnhandledRejectionListener','INVITE_CODE_HAS_BEEN_UES','Plugin','off-line-icon_clip0_910_343','updateOfflineData','_toggleOnline','collab-text-range-','override','_initUserListener','APPLY_PERMISSION_DENIED','getActiveSheet','INotificationService','createInstance','_getFormulaLimitStatus','_onCursorUpdate','6asdGbM','_scheduleSaving','InsertColCommandId','registerRefRange','unhandledrejection','_monkeyPatchLogService','forwardRef','complete','with','attrs','ISocketService','AWAITING','cursorInfo','uni.network.url-service','_session','REDEMPTION_CODE_HAS_BEEN_CREATED','collab-rect-range-','post','TOO_MANY_REQUESTS','endColumn','roomMembers$','event$','_labelPosition','RxDisposable','addClipboardHook','ERROR_AGAIN','_updateCollabCursors','url(#on-line-icon_clip0_910_349)','join','colno','YUUMI_AI_RUN_FAILED','LICENSE_IMPORT_SIZE_EXCEEDED','TEXT_RANGE_LAYER_INDEX','_entityInit$','parseInt','CanceledError','params','getMemberID','ENTITLE_REPORT_LIMIT_EXCEED','flatMap','sheetId','SYNCED','UniverInstanceType','collaboration.single-unit.warning','toRgbString','shareReplay','disableLocalCache','VIEW_MAIN','url(#$1','_document','then','font','_unitStatus','key','transformMutationsWithChangeset','SheetsSelectionsService','runOnServer','handleInsertCol','_getSessionTicket','top','replace','mapTo','assign','now','/universer-api/frontend/logs','unitId','values','black','getSkeleton','_docStateChangeManagerService','endRow','useCallback','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_maxFormulaLimit','OTHER_CLIENT_EDITING','getCollabCursors$','href','_transformPreviousActiveRange','_httpService','unsubscribe','mask','init','setInterval','YUUMI_URL_COL_OUT_OF_RANGE','formula.calculation.started','_messageService','collabStatus.conflict','MemberService','CollaborationSessionService','Error','UNIVER_DOC','dirtyRanges','asObservable','range','rgba(255,\x20255,\x20255,\x200.01)','width','LOGIN_TOKEN_PROCESSING_FAILED','CollaborationUIEventId','IMessageService','RegularPolygon','stageInfo','_heartbeatTimer','getConfig','on-line-icon_clip0_910_349','0\x200\x2017\x2016','jsx','_collabCursorController','totalFormulasToCalculate','removeParam','LICENSE_DISTRO_REJECTED','Unknown\x20user','YUUMI_ASYNCIO_CANCELLED','YUUMI_ALL_TABLES_IS_INVALID','LICENSE_EXPORT_SIZE_EXCEEDED','delete','CollaborationUIEventService','Tooltip','pushState','code','CommandType','_renderManagerService','storage','save','onPointerLeave$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','replaceDocRanges','handleDeleteRangeMoveUp','history','_collaborationUIEventService','0\x200\x2016\x2016','combineLatest','_disabled','_status$','includes','message','evenodd','DeleteRangeMoveLeftCommandId','BehaviorSubject','pluginName','color','_send','permission.content','fill','_docSkeleton','OnLineIcon','reconnect','_clearOtherTimers','isTransformMutationsWithChangesetSuccess','isEditing','_onRefRangeChange','transformByState','green.600','limitInfo','dispose$','enableFrontendLog','USERS_LEAVE','handleDeleteRangeMoveLeft','arc','ACTIVE_UNIT_EVENT_CHANNEL','createElement','toString','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_docTransformIMECacheService','fillStyle','actions','[Window\x20Error]:\x20','text','setStateCache','USER_NOT_FOUND','throttleTime','_getScale','ticket','1313354VWNgAh','PY_RUNTIME_SCRIPT_ERROR','getVpScrollXYInfoByPosToVp','TRANSFORM_CHANGE_OBSERVABLE_TYPE','source','[LogService\x20Error]:\x20','WebURLService','div','getTypeOfUnitDisposed$','getCoordByCell','getUnitStatus$','DATA_SOURCE_TOO_LARGE','INTERNAL_ERROR','min','registerRenderModule','_currentUsage','SheetCollabCursorShape','createIdentifier','PERMISSION_DENIED','[Unhandled\x20Rejection]:\x20','NodePositionConvertToCursor','_colorIndex','IConfigService','getUniverSheetInstance','unit','APPLY_DUPLICATED','getSheetObject','urlChange$','_handleHeartbeatEvent','add','ENTITLE_CHAT_LIMIT_EXCEED','_scene','ICommandService','m1Prime','getStateCache','RemoveColCommandId','row','collab-text-anchor-','debounce','getUnhiddenWorksheets','_collabSessionService','none','wsSessionTicketUrl','useDependency','Injector','Warning','getItem','currentUsage','backgroundColor','UniverCollaborationClientPlugin','_initStatusListener','reason','stack','UnitStatus','has','LICENSE_MAX_UNITS_EXCEEDED','defs','_logService','PAYMENT_CHANNEL_NOT_SUPPORT','fromEventSubject','NO_OTHER_CLIENTS_EDITING','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LOCAL_CACHE_INTERVAL_KEY','SetTextSelectionsOperation','currentTheme$','REDEMPTION_USER_NOT_ELIGIBLE','collaboration-client-ui.config','clsx','_scheduleHeartbeat','Disposable','_cursors','CLOSE_ROOM','_uploadLog','findNodePositionByCharIndex','DesktopCollaborationStatusDisplayController','registerBeforeClose','1em','DocSelectionManagerService','ITransformService','imageSourceType','_initWindowErrorListener','svg','location','entries','ENTITLE_INSUFFICIENT_QUOTA','toDisposable','contains','CONFLICT','currentColor','_toggleOffline','executionId','Optional','push','getTypeOfUnitAdded$','displayName','_localeService','forEach','onTransformChange$','_taskIds','_handleLeaveEvent','memberID','NOT_FOUND','_collaborationSessionService','_handleHover','useRef','_draw','DocCollaborationEntity','error','getAncestorScale','UniverIcon','getLocalCacheKey','editingUnit','Tools','mergeOverrideWithDependencies','trim','collaboration.offline-data-not-saved','YUUMI_UNABLE_LOAD_URL','session.will-retry','getRenderById','_checkCalculationAvailable','_initStatusComponent','IBeforeCloseService','_initEntityListener','result','getCollabEntity$','_showGuardMessage','_getMergeRange','body','show','isTransformMutationFailure','selection','startsWith','onMouseMove','SetSelectionsOperation','unitID','_lastPointer','ENTITLE_NEED_BILLING_ADDRESS','_onCursorDelete','_cursor','LOCAL_CACHE_INTERVAL','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','size','stage','#FFF','collabStatus.offline','max','saveImage','SessionStatus','ColorKit','mutations','DependentOn','ALREADY_EXISTS','_getAnchorBounding','OFFLINE','beforeCommandExecuted','CHANGESET_REVISION_CONFILICT','getMember','closePath','takeUntil','subscribe','labelPosition','_localCacheService','catch','_scheduleClearOtherTimer','_context','_anchor','_hideTimer','deepClone','_drawAnchor','getCellMatrix','engine','_assignedColors','connectInjector','_cursorInfo$','UniverCollaborationClientUIPlugin','REDEMPTION_CODE_FULLY_REDEEMED','6450680Bhixhv','InsertRangeMoveDownCommandId','colorChannel1','_localStorageService','sessionStatus$','BrowserCollaborationSocketService','undoState','restore','_refRangeService','_hovered','getColor','_univerInstanceService','NOT_COLLAB','deserializeRangeWithSheet','defineProperty','_initCommandInterceptor','_updateSubUnitFromURLParams','_memberID','_saveCache','isFormulaId','_docSyncEditingCollabCursorService','_getSheetObject','IURLService','runId','_cursorShapes','_id','LocaleService','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','?taskId=','selections','MOBILE_HAS_BEEN_BOUND','FormulaExecuteStageType','onRendered','/run/','_color','syncEditingCollabCursor','transformIMECache','getOwnPropertyDescriptor','registerDependencies','_hover','filter','handleIRemoveRow','defIds','resize','invokeId','addObject','getCellPositionByOffset','measureText','merge','COLORS','setParam','clipPath','SetDocZoomRatioOperation','_beforeCloseService','CollaborationEvent','UNRECOGNIZED','map','getMergeData','_notificationService','_clearPolling','type','xlink:href','5317509qWWbOd','USER_IS_ANONYMOUS','transformRemoteChangeset','DocIMEInputManagerService','length','disposeWithMe','collabStatus.fetchMiss','_setupSubUnitSync','from','getUndoRedoMutationParamsCache','_registerDependencies','CURRENT_STATUS_CANNOT_OPERATE','getValue','DOC_RANGE_TYPE','71HItjCS','use','docStateChange$','focused$','path','APPLY_NON_SEQUENTIAL_REVISION','column','idSuffix','_applyCommand','HTTPService','IUniverInstanceService','UPDATE_CURSOR','_commandService','AWAITING_WITH_PENDING','ENTITLE_COUPON_EXPIRED','_lastResponseTimestamp','WECHAT_HAS_BEEN_BOUND','tag','getActiveRange','getUnitId','white','_removeClearOtherTimer','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','APPLY_REVISION_CONFILICT','_removeCollabCursors','some','SetWorksheetActivateCommand','[CollaborationDataLoaderController]','clearTimeout','COMPLETION_FINISHED','Rect','startRow','children','setTimeout','jsxs','drawWith','8625320UBuEFn','_textBubble','isActive','getCurrent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','RefRangeService','redoState','getSheetBySheetId','yellow.400','FormulaExecutedStateType','CollaborationController','YUUMI_CONNECTOR_URL_NOT_FOUND','_transformUndoRedoStack','DocSkeletonManagerService','doc.mutation.rich-text-editing','_doCreateSocket','_render','startFormulaLimitUrl','setShapeProps','WebBrowserSingleActiveUnitService','collabCursorState$','collabStatus.syncing','onPointerEnter$','_dataLoaderService','ILocalStorageService','cursorInfo$','lineTo','_name','switchMap','\x20at\x20','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','INVITE_CODE_ALREADY_BOUND','roomMembers','50888Loirmg','LOGIN_FAILED','REDEMPTION_CODE_INACTIVE','handleIRemoveCol','_createSocketURL','pipe','ENSURE_SNAPSHOT_EXECUTION','_backgroundColor','_colorAssignService','_releaseCalculationLimit','SNAPSHOT_HAS_BEEN_REMOVED','getFormulaLimitStatusUrl','_docClipboardService','removeEventListener','isArray','_startDocCollabCursor','fromEvent','CollaborationDataLoaderController','REDEMPTION_INVALID_CODE','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','serializeRangeWithSheet','transformStateCache','lineno','_collabCursorState$','SNAPSHOT_INVALID_SNAPSHOT','_uiPartsService','CollaborationSocketService','USER_NOT_INVITED_CODE','subunit','toStringTag','IImageIoService','addEventListener','_updateURLWithCurrentState','fillText','_updateLocalCursor','requireSession','ISnapshotServerService','_docTransformStateCacheService','Inject','stringify','_config','ENTITLE_INVALID_COUPON_CODE','SOCKET_FAILED_RETRY','getSheetId','M0\x200H16V16H0z','split','_hasFormulaInDirtyRanges','REDEMPTION_CODE_NOT_STARTED','getColorFromTheme','_registerRenderDependencies','next','UNIVER_SHEET','univer-mr-2\x20univer-flex\x20univer-text-xl','maxFormulaLimit','_anchorDot','_injector','saveTaskMap','RemoteUniscriptService','eventID','loadUnit','UNDEFINED','EMAIL_HAS_BEEN_BOUND','_shapes','OTHER_CLIENTS_EDITING','string','set','_sheetSkeletonManagerService','FETCH_MISS','getViewport','SetFormulaCalculationStartMutation','YUUMI_SUBSCRIPTION_NOT_FOUND','_initResize','triggerDblclick','data','_entities','_initEvent','_ensureSubject','AUTHORIZE_CODE_ILLEGAL'];_0x4655=function(){return _0x1cc157;};return _0x4655();}Ee=Mt([q(0x1,a['Inject'](V[_0x2369fc(0x271)])),q(0x2,a[_0x2369fc(0x2ab)](F)),q(0x3,a[_0x2369fc(0x164)]),q(0x4,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x33d)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x2369fc(0x313)]{constructor(_0x59bd2b,_0x8afcc4){const _0x18aceb=_0x2369fc;super(_0x59bd2b,_0x8afcc4),_(this,'_color'),_(this,_0x18aceb(0x1fd),!0x1),_(this,_0x18aceb(0x334)),_(this,_0x18aceb(0x27f),''),_(this,_0x18aceb(0x37e),_0x18aceb(0x3a3)),_(this,_0x18aceb(0x28c)),(_0x8afcc4&&this[_0x18aceb(0x276)](_0x8afcc4),this[_0x18aceb(0x27a)][_0x18aceb(0x32b)](()=>this[_0x18aceb(0x276)]({'hovered':!0x0})),this[_0x18aceb(0x113)][_0x18aceb(0x32b)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2369fc(0x276)](_0x220ae7){const _0x104b4f=_0x2369fc;var _0x4f01d3,_0x3f685d,_0x1c8cf8,_0x50a7ed,_0x5e124e,_0x542496;this[_0x104b4f(0x216)]=(_0x4f01d3=_0x220ae7['color'])!=null?_0x4f01d3:this[_0x104b4f(0x216)],this['_hovered']=(_0x3f685d=_0x220ae7['hovered'])!=null?_0x3f685d:this[_0x104b4f(0x1fd)],this[_0x104b4f(0x334)]=(_0x1c8cf8=_0x220ae7[_0x104b4f(0xf5)])!=null?_0x1c8cf8:this[_0x104b4f(0x334)],this[_0x104b4f(0x27f)]=(_0x50a7ed=_0x220ae7[_0x104b4f(0x2e0)])!=null?_0x50a7ed:this[_0x104b4f(0x27f)],this[_0x104b4f(0x37e)]=(_0x5e124e=_0x220ae7[_0x104b4f(0x1e4)])!=null?_0x5e124e:this[_0x104b4f(0x37e)],this[_0x104b4f(0x28c)]=(_0x542496=_0x220ae7[_0x104b4f(0x174)])!=null?_0x542496:this[_0x104b4f(0x28c)],this[_0x104b4f(0x12e)]({'width':_0x220ae7[_0x104b4f(0xf7)],'height':_0x220ae7['height']});}['onMouseMove'](_0x35ceac){const _0x3a0768=_0x2369fc,{row:_0x3afdd6,column:_0x10ada8}=_0x35ceac;if(_0x3afdd6>=this[_0x3a0768(0x334)]['startRow']&&_0x3afdd6<=this[_0x3a0768(0x334)][_0x3a0768(0x3ae)]&&_0x10ada8>=this[_0x3a0768(0x334)]['startColumn']&&_0x10ada8<=this['_range'][_0x3a0768(0x37b)]){this[_0x3a0768(0x276)]({'hovered':!0x0});return;}this[_0x3a0768(0x276)]({'hovered':!0x1});}[_0x2369fc(0x2cd)](_0x113490){return!0x1;}[_0x2369fc(0x1ad)](_0x3ab64a){const _0x5a0eb1=_0x2369fc;C[_0x5a0eb1(0x25e)][_0x5a0eb1(0x263)](_0x3ab64a,{'width':this[_0x5a0eb1(0xf7)],'height':this[_0x5a0eb1(0x353)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5a0eb1(0x28c)]}),this[_0x5a0eb1(0x1fd)]&&(_0x3ab64a[_0x5a0eb1(0x112)](),_0x3ab64a['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x5a0eb1(0x355)?0x0:-X),re[_0x5a0eb1(0x263)](_0x3ab64a,{'text':this[_0x5a0eb1(0x27f)],'color':this[_0x5a0eb1(0x216)]}),_0x3ab64a['restore']());}}var wt=Object[_0x2369fc(0x219)],yt=(_0x526607,_0x19ebcd,_0xa344d9,_0x100456)=>{const _0x3b8b50=_0x2369fc;for(var _0x4f923a=_0x100456>0x1?void 0x0:_0x100456?wt(_0x19ebcd,_0xa344d9):_0x19ebcd,_0x1d4dbd=_0x526607[_0x3b8b50(0x236)]-0x1,_0x33b203;_0x1d4dbd>=0x0;_0x1d4dbd--)(_0x33b203=_0x526607[_0x1d4dbd])&&(_0x4f923a=_0x33b203(_0x4f923a)||_0x4f923a);return _0x4f923a;},ue=(_0x43deba,_0xb64775)=>(_0x5bd08f,_0x2ad1d8)=>_0xb64775(_0x5bd08f,_0x2ad1d8,_0x43deba);const $t=0x1389;let Ce=class extends a[_0x2369fc(0x37f)]{constructor(_0x30ccad,_0x2b0753,_0x34883c,_0x5ab4e5){const _0x56a8a5=_0x2369fc;super(),_(this,'_cursors',new Set()),_(this,_0x56a8a5(0x1cb),null),(this[_0x56a8a5(0x1e8)]=_0x30ccad,this['_sheetSkeletonManagerService']=_0x2b0753,this[_0x56a8a5(0x102)]=_0x34883c,this['_themeService']=_0x5ab4e5,this[_0x56a8a5(0x2d3)]());}[_0x2369fc(0x2d3)](){const _0x28caa0=_0x2369fc;this[_0x28caa0(0x2c7)]['currentSkeleton$']['pipe']($[_0x28caa0(0x1e2)](this[_0x28caa0(0x131)]),$[_0x28caa0(0x280)](_0x5eb626=>{const _0x301511=_0x28caa0;if(_0x5eb626){const _0x1af02f=_0x5eb626[_0x301511(0x390)];return I['combineLatest'](this[_0x301511(0x102)][_0x301511(0xe3)](this['_context'][_0x301511(0x3a9)]),this[_0x301511(0x324)]['currentTheme$'])[_0x301511(0x28a)]($[_0x301511(0x22c)](([_0x4d35c0,_0x58a3ed])=>{const _0x1b68ed=new Map();return _0x4d35c0['forEach']((_0x412d20,_0x542fd0)=>{const _0x2e85b8=_0x8c2a;if(_0x412d20[_0x2e85b8(0x305)]===_0x1af02f){const _0x3b8ed6={..._0x412d20};_0x3b8ed6['color']=this[_0x2e85b8(0x324)][_0x2e85b8(0x2b5)](_0x412d20[_0x2e85b8(0x123)]),_0x1b68ed['set'](_0x542fd0,_0x3b8ed6);}}),{'skeleton':_0x5eb626,'cursors':_0x1b68ed};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x28caa0(0x1e3)](({skeleton:_0x585842,cursors:_0x3159dd})=>{const _0x5a2f69=_0x28caa0;this[_0x5a2f69(0x258)](),_0x585842&&this[_0x5a2f69(0x382)](_0x585842,_0x3159dd);}),this['_sheetSkeletonManagerService'][_0x28caa0(0x32e)]['subscribe'](_0x2ac8b2=>{const _0x5e97ed=_0x28caa0;if(_0x2ac8b2==null)return;const {skeleton:_0x1266ba}=_0x2ac8b2,{scene:_0x6ed087}=this[_0x5e97ed(0x1e8)];_0x6ed087[_0x5e97ed(0x303)][_0x5e97ed(0x32b)](a['debounce'](_0x3b69d9=>{const _0xc62488=_0x5e97ed;var _0x560a68,_0x4e29bb;const {offsetX:_0x383df5,offsetY:_0x98000d}=_0x3b69d9,{x:_0x9252e4,y:_0x187007}=_0x6ed087['getRelativeToViewportCoord'](C['Vector2'][_0xc62488(0x320)]([_0x383df5,_0x98000d])),{scaleX:_0x509bdf,scaleY:_0x5d090d}=_0x6ed087[_0xc62488(0x1b0)](),_0x24830a=_0x6ed087[_0xc62488(0x2c9)](C[_0xc62488(0x31d)][_0xc62488(0x397)]),_0x148861=_0x6ed087[_0xc62488(0x146)](C['Vector2']['FromArray']([_0x9252e4,_0x187007]),_0x24830a),_0x20bb51=_0x1266ba[_0xc62488(0x222)](_0x383df5,_0x98000d,_0x509bdf,_0x5d090d,_0x148861);((_0x560a68=this[_0xc62488(0x1cb)])==null?void 0x0:_0x560a68['column'])===_0x20bb51[_0xc62488(0x246)]&&((_0x4e29bb=this[_0xc62488(0x1cb)])==null?void 0x0:_0x4e29bb['row'])===_0x20bb51[_0xc62488(0x168)]||this[_0xc62488(0x18a)][_0xc62488(0x1a4)](_0x2e6acc=>{const _0x2133b8=_0xc62488;_0x2e6acc[_0x2133b8(0x1c8)](_0x20bb51);});},0x64));});}['_updateCollabCursors'](_0xe24fbd,_0x2b2192){const _0x558db1=_0x2369fc;var _0x41de1;const _0x5a62d8=(_0x41de1=this[_0x558db1(0x2c7)][_0x558db1(0x267)]())==null?void 0x0:_0x41de1[_0x558db1(0x330)];if(!_0x5a62d8)return;const _0x4d06b3=this[_0x558db1(0x209)]();if(!_0x4d06b3)return;this[_0x558db1(0x18a)][_0x558db1(0x1a4)](_0x3d6aaf=>{_0x3d6aaf['makeDirty']();});const {scene:_0x367d6a}=_0x4d06b3,_0x503868=xt(Array[_0x558db1(0x23a)](_0x2b2192[_0x558db1(0x3aa)]()))[_0x558db1(0x22c)](_0x5011ab=>{const _0x23fde1=_0x558db1,{color:_0x1eb2fb,range:_0x250fc0,name:_0x42e33b,selection:_0x44a398,sheetID:_0x4aaf7f}=_0x5011ab,{startColumn:_0x3b6930,startRow:_0x23fd34,endColumn:_0x4b7e19,endRow:_0xccb695}=_0x250fc0,_0x3ff209=J[_0x23fde1(0x14d)](_0x23fd34,_0x3b6930,_0x367d6a,_0x5a62d8),_0x528af5=J[_0x23fde1(0x14d)](_0xccb695,_0x4b7e19,_0x367d6a,_0x5a62d8),{columnHeaderHeightAndMarginTop:_0xaa6f48}=_0x5a62d8,{startX:_0x501808,startY:_0x2e414a}=_0x3ff209,{endX:_0x3f3884,endY:_0x5861c2}=_0x528af5,_0x5f56f3=_0x3f3884-_0x501808,_0x2275c4=_0x5861c2-_0x2e414a,_0x3af645={'labelPosition':_0x2e414a-_0xaa6f48>=X?'top':'bottom','sheetID':_0x4aaf7f,'range':_0x250fc0,'color':_0x1eb2fb,'name':_0x42e33b,'selection':_0x44a398,'left':_0x501808,'top':_0x2e414a,'width':_0x5f56f3,'height':_0x2275c4,'evented':!0x1,'zIndex':$t};return new je(_0x42e33b,_0x3af645);});_0x367d6a['addObjects'](_0x503868,At),this[_0x558db1(0x18a)]=new Set(_0x503868);}['_removeCollabCursors'](){const _0x3cdf27=_0x2369fc;var _0xb54e3e;(_0xb54e3e=this[_0x3cdf27(0x18a)])==null||_0xb54e3e['forEach'](_0x1420a3=>_0x1420a3[_0x3cdf27(0x31e)]());}[_0x2369fc(0x209)](){const _0x2fa758=_0x2369fc;return J[_0x2fa758(0x15e)](this[_0x2fa758(0x1e8)][_0x2fa758(0x15c)],this[_0x2fa758(0x1e8)]);}};Ce=yt([ue(0x1,a[_0x2369fc(0x2ab)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x2369fc(0x2ab)](F)),ue(0x3,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x33d)]))],Ce);function xt(_0x571d14){const _0x18c62f=_0x2369fc,_0x127399=new Map();return _0x571d14[_0x18c62f(0x1a4)](_0x4fb24c=>{const _0x34e383=_0x18c62f;if(_0x127399[_0x34e383(0x17a)](_0x4fb24c[_0x34e383(0x1c6)])){const _0x4ff380=_0x127399['get'](_0x4fb24c[_0x34e383(0x1c6)]);_0x4ff380['name']+=',\x20'+_0x4fb24c[_0x34e383(0x2e0)];}else _0x127399[_0x34e383(0x2c6)](_0x4fb24c[_0x34e383(0x1c6)],_0x4fb24c);}),Array[_0x18c62f(0x23a)](_0x127399[_0x18c62f(0x3aa)]());}var Bt=Object[_0x2369fc(0x219)],Ft=(_0x2de132,_0x54f56c,_0x427668,_0x296d1c)=>{for(var _0x3632bd=_0x296d1c>0x1?void 0x0:_0x296d1c?Bt(_0x54f56c,_0x427668):_0x54f56c,_0x3fe745=_0x2de132['length']-0x1,_0x4c6360;_0x3fe745>=0x0;_0x3fe745--)(_0x4c6360=_0x2de132[_0x3fe745])&&(_0x3632bd=_0x4c6360(_0x3632bd)||_0x3632bd);return _0x3632bd;},y=(_0x2743ed,_0x12eeae)=>(_0x2a9c35,_0x277c0f)=>_0x12eeae(_0x2a9c35,_0x277c0f,_0x2743ed);let Z=class extends a[_0x2369fc(0x189)]{constructor(_0x3b1af9,_0x3ec1d7,_0xc981dd,_0x273fe1,_0x55b74e,_0x2704d2){const _0x583468=_0x2369fc;super(),this[_0x583468(0x229)]=_0x3b1af9,this[_0x583468(0x1e5)]=_0x3ec1d7,this[_0x583468(0x118)]=_0xc981dd,this['_messageService']=_0x273fe1,this[_0x583468(0x22e)]=_0x55b74e,this['_localeService']=_0x2704d2,this[_0x583468(0x2f1)](),this[_0x583468(0x2d0)]();}['_setupBeforeClosingHandler'](){const _0x538f1f=_0x2369fc;this[_0x538f1f(0x237)](this[_0x538f1f(0x229)][_0x538f1f(0x18f)](()=>{const _0x149ce0=_0x538f1f;if(this[_0x149ce0(0x1e5)][_0x149ce0(0x2bd)][_0x149ce0(0x1d1)])return this['_localeService']['t'](_0x149ce0(0x1b7));}));}[_0x2369fc(0x2d0)](){const _0x3afdca=_0x2369fc;this[_0x3afdca(0x237)](this[_0x3afdca(0x118)]['event$']['subscribe'](_0x1f445c=>{const _0x366d82=_0x3afdca;_0x1f445c['id']===u['CollaborationUIEventId'][_0x366d82(0xe2)]&&this[_0x366d82(0xed)][_0x366d82(0x1c4)]({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x393))}),_0x1f445c['id']===u['CollaborationUIEventId'][_0x366d82(0x18b)]&&this[_0x366d82(0xed)]['show']({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this['_localeService']['t'](_0x366d82(0x2ff))}),_0x1f445c['id']===u[_0x366d82(0xf9)][_0x366d82(0x156)]&&this[_0x366d82(0x22e)][_0x366d82(0x1c4)]({'title':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x32c)),'content':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x125)),'type':_0x366d82(0x1af),'duration':0x0}),_0x1f445c['id']===u[_0x366d82(0xf9)]['CONFLICT']&&this[_0x366d82(0xed)][_0x366d82(0x1c4)]({'type':p[_0x366d82(0x314)][_0x366d82(0xf1)],'content':this[_0x366d82(0x1a3)]['t'](_0x366d82(0x2ff))+'('+_0x1f445c[_0x366d82(0x2ce)]+')'}),_0x1f445c['id']===u[_0x366d82(0xf9)]['JOIN_ROOM_FAILED']&&this[_0x366d82(0xed)]['show']({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this[_0x366d82(0x1a3)]['t'](_0x1f445c['data']||'')}),_0x1f445c['id']===u[_0x366d82(0xf9)][_0x366d82(0x2af)]&&this[_0x366d82(0xed)]['show']({'type':p[_0x366d82(0x314)][_0x366d82(0x171)],'content':this['_localeService']['t'](_0x366d82(0x1b9))}),_0x1f445c['id']===u[_0x366d82(0xf9)]['SOCKET_FAILED']&&this[_0x366d82(0xed)][_0x366d82(0x1c4)]({'type':p['MessageType']['Error'],'content':this[_0x366d82(0x1a3)]['t']('session.connection-failed')}),_0x1f445c['id']===u['CollaborationUIEventId'][_0x366d82(0x34e)]&&this['_messageService'][_0x366d82(0x1c4)]({'type':p['MessageType'][_0x366d82(0xf1)],'content':this['_localeService']['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x2369fc(0x1bd)]),y(0x1,u[_0x2369fc(0x351)]),y(0x2,a[_0x2369fc(0x2ab)](u[_0x2369fc(0x10b)])),y(0x3,O[_0x2369fc(0xfa)]),y(0x4,O[_0x2369fc(0x364)]),y(0x5,a[_0x2369fc(0x2ab)](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x11e2c,_0x4f5cd1,_0x51982f,_0x1a2257)=>{const _0x4c82cb=_0x2369fc;for(var _0x2d2521=_0x1a2257>0x1?void 0x0:_0x1a2257?jt(_0x4f5cd1,_0x51982f):_0x4f5cd1,_0x18079e=_0x11e2c[_0x4c82cb(0x236)]-0x1,_0x5b2f4b;_0x18079e>=0x0;_0x18079e--)(_0x5b2f4b=_0x11e2c[_0x18079e])&&(_0x2d2521=_0x5b2f4b(_0x2d2521)||_0x2d2521);return _0x2d2521;},z=(_0x53db70,_0x4c1069)=>(_0x314c2d,_0x25f75f)=>_0x4c1069(_0x314c2d,_0x25f75f,_0x53db70);let Q=class extends a[_0x2369fc(0x189)]{constructor(_0x114372,_0x4e6c3a,_0x1f6a76,_0x3df539){const _0x13186e=_0x2369fc;super(),_(this,_0x13186e(0x205)),(this[_0x13186e(0x2bc)]=_0x114372,this['_httpService']=_0x4e6c3a,this[_0x13186e(0x17d)]=_0x1f6a76,this[_0x13186e(0x1aa)]=_0x3df539,this['_init']());}[_0x2369fc(0x2d3)](){const _0x2ac75b=_0x2369fc;this[_0x2ac75b(0x194)](),this[_0x2ac75b(0x359)](),this[_0x2ac75b(0x36d)](),this[_0x2ac75b(0x361)]();}[_0x2369fc(0x361)](){const _0x20ad71=_0x2369fc;this[_0x20ad71(0x237)](this[_0x20ad71(0x1aa)]['socket$'][_0x20ad71(0x1e3)](_0x258d48=>{const _0x58e65c=_0x20ad71;this['_memberID']=_0x258d48==null?void 0x0:_0x258d48[_0x58e65c(0x1a8)];}));}[_0x2369fc(0x194)](){const _0x4243f6=_0x2369fc,_0xa21811=_0x4a2024=>{const _0x391760=_0x8c2a;var _0x2c144f;this[_0x391760(0x18c)](_0x391760(0x1af),_0x391760(0x13d)+_0x4a2024[_0x391760(0x11e)]+_0x391760(0x281)+_0x4a2024['filename']+':'+_0x4a2024[_0x391760(0x29b)]+':'+_0x4a2024[_0x391760(0x385)]+'\x0a'+(((_0x2c144f=_0x4a2024[_0x391760(0x1af)])==null?void 0x0:_0x2c144f['stack'])||''));};window[_0x4243f6(0x2a4)](_0x4243f6(0x1af),_0xa21811),this['disposeWithMe'](()=>{const _0x38b93e=_0x4243f6;window[_0x38b93e(0x292)]('error',_0xa21811);});}[_0x2369fc(0x359)](){const _0x22837f=_0x2369fc,_0x374867=_0x5e4efe=>{const _0x57b748=_0x8c2a;this['_uploadLog'](_0x57b748(0x1af),_0x57b748(0x157)+_0x5e4efe[_0x57b748(0x177)]);};window[_0x22837f(0x2a4)]('unhandledrejection',_0x374867),this[_0x22837f(0x237)](()=>{const _0x4d279b=_0x22837f;window['removeEventListener'](_0x4d279b(0x36c),_0x374867);});}[_0x2369fc(0x36d)](){const _0x56e08b=_0x2369fc,_0x55e12b=this[_0x56e08b(0x17d)][_0x56e08b(0x1af)]['bind'](this[_0x56e08b(0x17d)]);this[_0x56e08b(0x17d)][_0x56e08b(0x1af)]=(..._0x20f371)=>{const _0x2a93e4=_0x56e08b,_0x44c4db=_0x20f371[_0x2a93e4(0x22c)](_0x4b9e11=>_0x4b9e11 instanceof Error?_0x4b9e11[_0x2a93e4(0x11e)]+'\x0a'+_0x4b9e11[_0x2a93e4(0x178)]:String(_0x4b9e11))[_0x2a93e4(0x384)]('\x20');this[_0x2a93e4(0x18c)](_0x2a93e4(0x1af),_0x2a93e4(0x149)+_0x44c4db),_0x55e12b(..._0x20f371);},this[_0x56e08b(0x237)](()=>{const _0x181107=_0x56e08b;this[_0x181107(0x17d)]['error']=_0x55e12b;});}[_0x2369fc(0x18c)](_0x2fe8b2,_0x139665){const _0x330855=_0x2369fc;try{const _0x59aa7f={'userId':this[_0x330855(0x205)],'logLabel':_0x2fe8b2,'content':_0x139665};this['_httpService']['post'](_0x330855(0x3a8),{'body':_0x59aa7f})[_0x330855(0x1e6)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),z(0x1,a[_0x2369fc(0x2ab)](x['HTTPService'])),z(0x2,a[_0x2369fc(0x2e8)]),z(0x3,a[_0x2369fc(0x2ab)](u[_0x2369fc(0xf0)]))],Q);const Yt=_0x2369fc(0x186),Me={};var Ht=Object[_0x2369fc(0x219)],Wt=(_0x4af169,_0x1809b4,_0x43567c,_0x5605d3)=>{const _0x291721=_0x2369fc;for(var _0x4cda57=_0x5605d3>0x1?void 0x0:_0x5605d3?Ht(_0x1809b4,_0x43567c):_0x1809b4,_0xd1c9bd=_0x4af169[_0x291721(0x236)]-0x1,_0x9b726;_0xd1c9bd>=0x0;_0xd1c9bd--)(_0x9b726=_0x4af169[_0xd1c9bd])&&(_0x4cda57=_0x9b726(_0x4cda57)||_0x4cda57);return _0x4cda57;},Ae=(_0x469fa9,_0x20ed6c)=>(_0x40e3ae,_0x3a51ef)=>_0x20ed6c(_0x40e3ae,_0x3a51ef,_0x469fa9);let ee=class{constructor(_0x5e2f46,_0x5d78d9){const _0xf31627=_0x2369fc;this['_transformService']=_0x5e2f46,this[_0xf31627(0x110)]=_0x5d78d9;}[_0x2369fc(0x218)](_0x5d2624){const _0x4a5dae=_0x2369fc;this[_0x4a5dae(0x270)](_0x5d2624),this['_transformPreviousActiveRange'](_0x5d2624);}[_0x2369fc(0x234)](_0x5debf7){const _0x38b04e=_0x2369fc,{unitID:_0x59d953}=_0x5debf7,_0x2390b5=this[_0x38b04e(0x110)][_0x38b04e(0x1ba)](_0x59d953)[_0x38b04e(0x370)](T[_0x38b04e(0x235)]),{redoCache:_0x16119e}=_0x2390b5[_0x38b04e(0x23b)]();if(_0x16119e[_0x38b04e(0x236)]===0x0)return _0x5debf7;let _0x101666=a[_0x38b04e(0x1b4)]['deepClone'](_0x5debf7[_0x38b04e(0x1d9)][0x0]);for(let _0x5939ed=0x0;_0x5939ed<_0x16119e[_0x38b04e(0x236)];_0x5939ed++){const _0xae44eb={'id':_0x38b04e(0x272),'params':{..._0x16119e[_0x5939ed]}},_0x123a5a=this[_0x38b04e(0x34f)][_0x38b04e(0x356)](_0x101666,_0xae44eb,!0x1);if(g['isTransformMutationFailure'](_0x123a5a))throw _0x123a5a[_0x38b04e(0x1af)];_0x101666=_0x123a5a[_0x38b04e(0x165)];}return{...a['Tools'][_0x38b04e(0x1eb)](_0x5debf7),'mutations':[_0x101666]};}['_transformUndoRedoStack'](_0x2897d2){const _0x4d6b00=_0x2369fc,{unitID:_0x164409}=_0x2897d2,_0x91824d=this[_0x4d6b00(0x110)][_0x4d6b00(0x1ba)](_0x164409)['with'](T['DocIMEInputManagerService']),{undoCache:_0xd29d40,redoCache:_0x25534f}=_0x91824d[_0x4d6b00(0x23b)]();if(_0xd29d40[_0x4d6b00(0x236)]===0x0||_0x25534f[_0x4d6b00(0x236)]===0x0)return;const _0x58466e=[],_0x550f67=[];let _0x52e6c0=a[_0x4d6b00(0x1b4)][_0x4d6b00(0x1eb)](_0x2897d2[_0x4d6b00(0x1d9)][0x0]),_0xc8253a=a[_0x4d6b00(0x1b4)][_0x4d6b00(0x1eb)](_0x2897d2[_0x4d6b00(0x1d9)][0x0]);for(let _0x1039ac=_0xd29d40['length']-0x1;_0x1039ac>=0x0;_0x1039ac--){const _0xda8189={'id':_0x4d6b00(0x272),'params':{..._0xd29d40[_0x1039ac]}},_0x1e13eb={'id':'doc.mutation.rich-text-editing','params':{..._0x25534f[_0x1039ac]}},_0x2f0e06=this['_transformService']['transformMutation'](_0x52e6c0,_0xda8189,!0x1),_0x54e419=this[_0x4d6b00(0x34f)][_0x4d6b00(0x356)](_0xc8253a,_0x1e13eb,!0x1);if(g[_0x4d6b00(0x1c5)](_0x2f0e06))throw _0x2f0e06['error'];if(g[_0x4d6b00(0x1c5)](_0x54e419))throw _0x54e419[_0x4d6b00(0x1af)];_0x58466e['unshift'](_0x2f0e06[_0x4d6b00(0x33a)][_0x4d6b00(0x38c)]),_0x550f67[_0x4d6b00(0x2f2)](_0x54e419[_0x4d6b00(0x33a)][_0x4d6b00(0x38c)]),_0x52e6c0=_0x2f0e06[_0x4d6b00(0x165)],_0xc8253a=_0x54e419[_0x4d6b00(0x165)];}_0x91824d[_0x4d6b00(0x316)]({'undoCache':_0x58466e,'redoCache':_0x550f67});}[_0x2369fc(0xe5)](_0x35a163){const _0x442b93=_0x2369fc,{unitID:_0x2320a4}=_0x35a163,_0x11fb3b=this[_0x442b93(0x110)][_0x442b93(0x1ba)](_0x2320a4)[_0x442b93(0x370)](T[_0x442b93(0x235)]),_0x5b87be=_0x11fb3b[_0x442b93(0x252)]();if(_0x5b87be==null)return;const _0x8d318f=[{'id':_0x442b93(0x272),'params':{'unitId':_0x35a163[_0x442b93(0x1ca)],'actions':null,'textRanges':[_0x5b87be]}}],_0x24ef00=this[_0x442b93(0x34f)][_0x442b93(0x39e)](_0x35a163,_0x8d318f);if(!g['isTransformMutationsWithChangesetSuccess'](_0x24ef00))throw _0x24ef00[_0x442b93(0x1af)];const _0x45743a=_0x24ef00['m2Prime'][0x0][_0x442b93(0x38c)]['textRanges'];Array[_0x442b93(0x293)](_0x45743a)&&_0x45743a[_0x442b93(0x236)]&&_0x11fb3b[_0x442b93(0x2df)](_0x45743a[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x2369fc(0x219)],Gt=(_0x9e2d58,_0x3c31fd,_0x26758b,_0x52a64f)=>{const _0x7c45a2=_0x2369fc;for(var _0x31acd9=_0x52a64f>0x1?void 0x0:_0x52a64f?Vt(_0x3c31fd,_0x26758b):_0x3c31fd,_0x216994=_0x9e2d58[_0x7c45a2(0x236)]-0x1,_0x90d7e7;_0x216994>=0x0;_0x216994--)(_0x90d7e7=_0x9e2d58[_0x216994])&&(_0x31acd9=_0x90d7e7(_0x31acd9)||_0x31acd9);return _0x31acd9;},Ie=(_0x172382,_0x586d49)=>(_0x1ac554,_0x55a0bd)=>_0x586d49(_0x1ac554,_0x55a0bd,_0x172382);let te=class{constructor(_0x1caf36,_0x326354,_0x4c1ee6){const _0x319dc1=_0x2369fc;this[_0x319dc1(0x2bc)]=_0x1caf36,this[_0x319dc1(0x34f)]=_0x326354,this[_0x319dc1(0x3ad)]=_0x4c1ee6;}['transformStateCache'](_0x2c6d51){this['_transformHistoryAndStateStack'](_0x2c6d51);}[_0x2369fc(0x234)](_0xd170dc){const _0x550d21=_0x2369fc,{unitID:_0x36c61c}=_0xd170dc,{collaboration:_0x2350f6}=this[_0x550d21(0x3ad)][_0x550d21(0x166)](_0x36c61c);if(_0x2350f6['length']===0x0)return _0xd170dc;let _0x4d9494=a[_0x550d21(0x1b4)]['deepClone'](_0xd170dc['mutations'][0x0]);for(let _0x4b437e=0x0;_0x4b437e<_0x2350f6[_0x550d21(0x236)];_0x4b437e++){const _0x21935d={'id':_0x550d21(0x272),'params':{'unitId':_0x2350f6[_0x4b437e][_0x550d21(0x3a9)],..._0x2350f6[_0x4b437e]['redoState']}},_0x29b23a=this[_0x550d21(0x34f)][_0x550d21(0x356)](_0x4d9494,_0x21935d,!0x1);if(g[_0x550d21(0x1c5)](_0x29b23a))throw _0x29b23a[_0x550d21(0x1af)];_0x4d9494=_0x29b23a['m1Prime'];}return{...a[_0x550d21(0x1b4)][_0x550d21(0x1eb)](_0xd170dc),'mutations':[_0x4d9494]};}[_0x2369fc(0x337)](_0x1b5917){const _0x4808a0=_0x2369fc,{unitID:_0x4a89fa}=_0x1b5917,{history:_0x44a85b,collaboration:_0x2ea179}=this[_0x4808a0(0x3ad)][_0x4808a0(0x166)](_0x4a89fa);if(_0x44a85b[_0x4808a0(0x236)]===0x0&&_0x2ea179[_0x4808a0(0x236)]===0x0)return;const _0x432c71=[],_0x30da9c=[];let _0x4b1a7f=a[_0x4808a0(0x1b4)][_0x4808a0(0x1eb)](_0x1b5917[_0x4808a0(0x1d9)][0x0]),_0xe37b30=a['Tools']['deepClone'](_0x1b5917['mutations'][0x0]);for(let _0x1f9126=_0x44a85b[_0x4808a0(0x236)]-0x1;_0x1f9126>=0x0;_0x1f9126--){const _0x11b1e4={'id':_0x4808a0(0x272),'params':{'unitId':_0x44a85b[_0x1f9126][_0x4808a0(0x3a9)],..._0x44a85b[_0x1f9126][_0x4808a0(0x1fa)]}},_0x1ff7d7={'id':_0x4808a0(0x272),'params':{'unitId':_0x44a85b[_0x1f9126]['unitId'],..._0x44a85b[_0x1f9126][_0x4808a0(0x26a)]}},_0x19e218=this[_0x4808a0(0x34f)][_0x4808a0(0x356)](_0x4b1a7f,_0x11b1e4,!0x1),_0x1c35c4=this[_0x4808a0(0x34f)][_0x4808a0(0x356)](_0xe37b30,_0x1ff7d7,!0x1);if(g[_0x4808a0(0x1c5)](_0x19e218))throw _0x19e218['error'];if(g['isTransformMutationFailure'](_0x1c35c4))throw _0x1c35c4[_0x4808a0(0x1af)];_0x432c71[_0x4808a0(0x2f2)]({..._0x44a85b[_0x1f9126],'undoState':_0x19e218['m2Prime']['params'],'redoState':_0x1c35c4[_0x4808a0(0x33a)][_0x4808a0(0x38c)]}),_0x4b1a7f=_0x19e218['m1Prime'],_0xe37b30=_0x1c35c4[_0x4808a0(0x165)];}_0x4b1a7f=a[_0x4808a0(0x1b4)]['deepClone'](_0x1b5917[_0x4808a0(0x1d9)][0x0]),_0xe37b30=a[_0x4808a0(0x1b4)][_0x4808a0(0x1eb)](_0x1b5917['mutations'][0x0]);for(let _0x4f05a3=_0x2ea179[_0x4808a0(0x236)]-0x1;_0x4f05a3>=0x0;_0x4f05a3--){const _0x293291={'id':_0x4808a0(0x272),'params':{'unitId':_0x2ea179[_0x4f05a3][_0x4808a0(0x3a9)],..._0x2ea179[_0x4f05a3][_0x4808a0(0x1fa)]}},_0x376b92={'id':_0x4808a0(0x272),'params':{'unitId':_0x2ea179[_0x4f05a3][_0x4808a0(0x3a9)],..._0x2ea179[_0x4f05a3][_0x4808a0(0x26a)]}},_0x88c46d=this['_transformService'][_0x4808a0(0x356)](_0x4b1a7f,_0x293291,!0x1),_0x5ca504=this[_0x4808a0(0x34f)][_0x4808a0(0x356)](_0xe37b30,_0x376b92,!0x1);if(g[_0x4808a0(0x1c5)](_0x88c46d))throw _0x88c46d[_0x4808a0(0x1af)];if(g[_0x4808a0(0x1c5)](_0x5ca504))throw _0x5ca504[_0x4808a0(0x1af)];_0x30da9c[_0x4808a0(0x2f2)]({..._0x2ea179[_0x4f05a3],'undoState':_0x88c46d['m2Prime'][_0x4808a0(0x38c)],'redoState':_0x5ca504[_0x4808a0(0x33a)][_0x4808a0(0x38c)]}),_0x4b1a7f=_0x88c46d['m1Prime'],_0xe37b30=_0x5ca504[_0x4808a0(0x165)];}this['_docStateChangeManagerService'][_0x4808a0(0x13f)](_0x4a89fa,{'history':_0x432c71,'collaboration':_0x30da9c});}};te=Gt([Ie(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x2369fc(0x2ab)](T['DocStateChangeManagerService']))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x30b2e3,_0x2a88a4,_0x1141cf,_0x43ce83)=>{const _0x4fd04f=_0x2369fc;for(var _0x365b6c=_0x43ce83>0x1?void 0x0:_0x43ce83?Xt(_0x2a88a4,_0x1141cf):_0x2a88a4,_0x4afc2e=_0x30b2e3[_0x4fd04f(0x236)]-0x1,_0x129268;_0x4afc2e>=0x0;_0x4afc2e--)(_0x129268=_0x30b2e3[_0x4afc2e])&&(_0x365b6c=_0x129268(_0x365b6c)||_0x365b6c);return _0x365b6c;},Pe=(_0x1e28e5,_0x2a09b3)=>(_0x593f02,_0x58c1e7)=>_0x2a09b3(_0x593f02,_0x58c1e7,_0x1e28e5);let se=class{constructor(_0xd2511f,_0x2243f1){const _0x378458=_0x2369fc;this[_0x378458(0x2bc)]=_0xd2511f,this['_transformService']=_0x2243f1;}['transformSelections'](_0x157be4){const _0xb9268d=_0x2369fc;var _0x2fa0bf;const _0x33bdee=this[_0xb9268d(0x2bc)][_0xb9268d(0x30d)](V[_0xb9268d(0x191)]),_0x4cb861=(_0x2fa0bf=_0x33bdee['getDocRanges']())!=null?_0x2fa0bf:[];if(_0x4cb861[_0xb9268d(0x236)]===0x0)return;const _0x19d42c=_0x157be4[_0xb9268d(0x1ca)],_0x1db773=[{'id':_0xb9268d(0x272),'params':{'unitId':_0x19d42c,'actions':null,'textRanges':_0x4cb861}}],_0x234fc6=this['_transformService'][_0xb9268d(0x39e)](_0x157be4,_0x1db773);if(!g[_0xb9268d(0x12b)](_0x234fc6))throw _0x234fc6[_0xb9268d(0x1af)];const _0xd8ea3d=_0x234fc6[_0xb9268d(0x33a)][0x0][_0xb9268d(0x38c)][_0xb9268d(0x358)];Array[_0xb9268d(0x293)](_0xd8ea3d)&&_0xd8ea3d[_0xb9268d(0x236)]&&_0x33bdee[_0xb9268d(0x115)](_0xd8ea3d,{'unitId':_0x19d42c,'subUnitId':_0x19d42c},!0x1);}};se=Kt([Pe(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),Pe(0x1,g[_0x2369fc(0x192)])],se);var qt=Object[_0x2369fc(0x219)],zt=(_0x29c1,_0x3c65a9,_0xc73bff,_0x3e72d3)=>{const _0x2985bb=_0x2369fc;for(var _0x25b694=_0x3e72d3>0x1?void 0x0:_0x3e72d3?qt(_0x3c65a9,_0xc73bff):_0x3c65a9,_0x41e21b=_0x29c1[_0x2985bb(0x236)]-0x1,_0x20edea;_0x41e21b>=0x0;_0x41e21b--)(_0x20edea=_0x29c1[_0x41e21b])&&(_0x25b694=_0x20edea(_0x25b694)||_0x25b694);return _0x25b694;},N=(_0x47fed0,_0x87a851)=>(_0x41d3d2,_0xb9160b)=>_0x87a851(_0x41d3d2,_0xb9160b,_0x47fed0);let ie=class extends a[_0x2369fc(0x189)]{constructor(_0x101598,_0x3bb58f,_0x2ac636,_0x14cccf,_0x37cbdd,_0xcdc08f,_0x1eff9b,_0x184c04){const _0x5e32be=_0x2369fc;super(),_(this,_0x5e32be(0x11c),new I[(_0x5e32be(0x121))](u[_0x5e32be(0x30b)][_0x5e32be(0x200)])),(this['_docStateChangeManagerService']=_0x101598,this['_collaborationController']=_0x3bb58f,this[_0x5e32be(0x13a)]=_0x2ac636,this[_0x5e32be(0x2aa)]=_0x14cccf,this[_0x5e32be(0x335)]=_0x37cbdd,this[_0x5e32be(0x208)]=_0xcdc08f,this['_messageService']=_0x1eff9b,this[_0x5e32be(0x1a3)]=_0x184c04,this[_0x5e32be(0x1be)]());}[_0x2369fc(0x1be)](){const _0x525c6d=_0x2369fc;this[_0x525c6d(0x237)](this[_0x525c6d(0x2e7)][_0x525c6d(0x2f5)][_0x525c6d(0x1e3)](_0x4d2e3e=>{const _0x5e17f0=_0x525c6d,_0xbb092d=this[_0x5e17f0(0x3ad)][_0x5e17f0(0x242)][_0x5e17f0(0x1e3)](_0x2ce065=>{const _0x26a5da=_0x5e17f0;if(_0x2ce065==null)return;const {unitId:_0x2e0188,redoState:_0x57d6e6,commandId:_0x46aacd}=_0x2ce065;if(_0x2e0188!==_0x4d2e3e['unitID'])return;const _0x1b2d5c={'id':_0x46aacd,'type':a[_0x26a5da(0x10f)]['MUTATION'],'params':{'unitId':_0x2e0188,'actions':_0x57d6e6[_0x26a5da(0x13c)],'textRanges':null}};_0x4d2e3e['onLocalMutation'](_0x1b2d5c);});if(_0x4d2e3e[_0x5e17f0(0x237)](_0xbb092d),_0x4d2e3e instanceof u[_0x5e17f0(0x1ae)]){const _0x16b80={'onTransformIME':_0x3f5b10=>this[_0x5e17f0(0x13a)][_0x5e17f0(0x218)](_0x3f5b10),'onTransformState':_0x2edfb4=>this[_0x5e17f0(0x2aa)][_0x5e17f0(0x29a)](_0x2edfb4),'onTransformSelections':_0x120529=>this[_0x5e17f0(0x335)][_0x5e17f0(0x34d)](_0x120529),'onSyncEditingCollabCursor':_0x554d65=>this[_0x5e17f0(0x208)][_0x5e17f0(0x217)](_0x554d65),'onTransformRemoteChangesetByIMECache':_0x6aea9c=>this[_0x5e17f0(0x13a)]['transformRemoteChangeset'](_0x6aea9c),'onTransformRemoteChangesetByStateCache':_0x2f8107=>this[_0x5e17f0(0x2aa)][_0x5e17f0(0x234)](_0x2f8107)};_0x4d2e3e['addHandlerCallback'](_0x16b80);}}));}};ie=zt([N(0x0,a[_0x2369fc(0x2ab)](T[_0x2369fc(0x2db)])),N(0x1,a[_0x2369fc(0x2ab)](u[_0x2369fc(0x26e)])),N(0x2,a[_0x2369fc(0x2ab)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x2369fc(0x2ab)](se)),N(0x5,a[_0x2369fc(0x2ab)](be)),N(0x6,O[_0x2369fc(0xfa)]),N(0x7,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x20e)]))],ie);var G=(_0x7da79d=>(_0x7da79d[_0x7da79d[_0x2369fc(0x2c1)]=0x0]=_0x2369fc(0x2c1),_0x7da79d[_0x7da79d['OK']=0x1]='OK',_0x7da79d[_0x7da79d[_0x2369fc(0x150)]=0x2]=_0x2369fc(0x150),_0x7da79d[_0x7da79d['PERMISSION_DENIED']=0x3]=_0x2369fc(0x156),_0x7da79d[_0x7da79d[_0x2369fc(0x1a9)]=0x4]='NOT_FOUND',_0x7da79d[_0x7da79d[_0x2369fc(0x2de)]=0x5]=_0x2369fc(0x2de),_0x7da79d[_0x7da79d[_0x2369fc(0x1db)]=0x6]='ALREADY_EXISTS',_0x7da79d[_0x7da79d['INVALID_ARGUMENT']=0x7]=_0x2369fc(0x34b),_0x7da79d[_0x7da79d[_0x2369fc(0x37a)]=0x8]='TOO_MANY_REQUESTS',_0x7da79d[_0x7da79d[_0x2369fc(0x25d)]=0x9]='COMPLETION_FINISHED',_0x7da79d[_0x7da79d[_0x2369fc(0x286)]=0xa]=_0x2369fc(0x286),_0x7da79d[_0x7da79d[_0x2369fc(0x32f)]=0xb]=_0x2369fc(0x32f),_0x7da79d[_0x7da79d[_0x2369fc(0x256)]=0xc]=_0x2369fc(0x256),_0x7da79d[_0x7da79d['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x2369fc(0x31a),_0x7da79d[_0x7da79d[_0x2369fc(0x20f)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x7da79d[_0x7da79d['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x2369fc(0x2d2),_0x7da79d[_0x7da79d[_0x2369fc(0xf8)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x7da79d[_0x7da79d[_0x2369fc(0x23d)]=0x64]=_0x2369fc(0x23d),_0x7da79d[_0x7da79d[_0x2369fc(0x381)]=0x65]=_0x2369fc(0x381),_0x7da79d[_0x7da79d[_0x2369fc(0x140)]=0xc9]=_0x2369fc(0x140),_0x7da79d[_0x7da79d[_0x2369fc(0x233)]=0xca]='USER_IS_ANONYMOUS',_0x7da79d[_0x7da79d[_0x2369fc(0x1df)]=0x1389]=_0x2369fc(0x1df),_0x7da79d[_0x7da79d[_0x2369fc(0x29d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x7da79d[_0x7da79d['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2369fc(0x28f),_0x7da79d[_0x7da79d[_0x2369fc(0x28b)]=0x1773]=_0x2369fc(0x28b),_0x7da79d[_0x7da79d['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x7da79d[_0x7da79d[_0x2369fc(0x245)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x7da79d[_0x7da79d[_0x2369fc(0x257)]=0x1b5b]=_0x2369fc(0x257),_0x7da79d[_0x7da79d[_0x2369fc(0x362)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x7da79d[_0x7da79d[_0x2369fc(0x15d)]=0x1b5d]=_0x2369fc(0x15d),_0x7da79d[_0x7da79d[_0x2369fc(0x332)]=0x1f41]=_0x2369fc(0x332),_0x7da79d[_0x7da79d['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x2369fc(0x17b),_0x7da79d[_0x7da79d['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2369fc(0x268),_0x7da79d[_0x7da79d['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2369fc(0x387),_0x7da79d[_0x7da79d[_0x2369fc(0x109)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x7da79d[_0x7da79d[_0x2369fc(0x105)]=0x232d]=_0x2369fc(0x105),_0x7da79d[_0x7da79d[_0x2369fc(0x1b8)]=0x2711]=_0x2369fc(0x1b8),_0x7da79d[_0x7da79d[_0x2369fc(0xeb)]=0x2712]=_0x2369fc(0xeb),_0x7da79d[_0x7da79d[_0x2369fc(0x2e1)]=0x2713]=_0x2369fc(0x2e1),_0x7da79d[_0x7da79d[_0x2369fc(0x2cb)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x7da79d[_0x7da79d[_0x2369fc(0x31f)]=0x271a]=_0x2369fc(0x31f),_0x7da79d[_0x7da79d[_0x2369fc(0x107)]=0x271b]=_0x2369fc(0x107),_0x7da79d[_0x7da79d['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x2369fc(0x349),_0x7da79d[_0x7da79d['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x2369fc(0x108),_0x7da79d[_0x7da79d['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x7da79d[_0x7da79d[_0x2369fc(0x386)]=0x271f]=_0x2369fc(0x386),_0x7da79d[_0x7da79d['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x2369fc(0x26f),_0x7da79d[_0x7da79d[_0x2369fc(0x145)]=0x2af9]=_0x2369fc(0x145),_0x7da79d[_0x7da79d[_0x2369fc(0x35a)]=0x2ee1]=_0x2369fc(0x35a),_0x7da79d[_0x7da79d[_0x2369fc(0x327)]=0x2ee2]=_0x2369fc(0x327),_0x7da79d[_0x7da79d[_0x2369fc(0x345)]=0x2ee3]=_0x2369fc(0x345),_0x7da79d[_0x7da79d['USER_NOT_INVITED_CODE']=0x2ee4]=_0x2369fc(0x2a0),_0x7da79d[_0x7da79d[_0x2369fc(0x283)]=0x2ee5]=_0x2369fc(0x283),_0x7da79d[_0x7da79d[_0x2369fc(0x250)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x7da79d[_0x7da79d['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x2369fc(0x212),_0x7da79d[_0x7da79d[_0x2369fc(0x2c2)]=0x32cb]=_0x2369fc(0x2c2),_0x7da79d[_0x7da79d[_0x2369fc(0x328)]=0x36b1]=_0x2369fc(0x328),_0x7da79d[_0x7da79d[_0x2369fc(0x31b)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x7da79d[_0x7da79d['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x7da79d[_0x7da79d['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x2369fc(0x17e),_0x7da79d[_0x7da79d['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x2369fc(0x2ae),_0x7da79d[_0x7da79d[_0x2369fc(0x24e)]=0x36b6]=_0x2369fc(0x24e),_0x7da79d[_0x7da79d['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x2369fc(0x348),_0x7da79d[_0x7da79d['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x2369fc(0x33b),_0x7da79d[_0x7da79d[_0x2369fc(0x162)]=0x3715]=_0x2369fc(0x162),_0x7da79d[_0x7da79d[_0x2369fc(0x38e)]=0x3716]=_0x2369fc(0x38e),_0x7da79d[_0x7da79d[_0x2369fc(0x198)]=0x3717]=_0x2369fc(0x198),_0x7da79d[_0x7da79d[_0x2369fc(0x1cc)]=0x37dd]=_0x2369fc(0x1cc),_0x7da79d[_0x7da79d[_0x2369fc(0x297)]=0x3a99]=_0x2369fc(0x297),_0x7da79d[_0x7da79d[_0x2369fc(0x287)]=0x3a9a]=_0x2369fc(0x287),_0x7da79d[_0x7da79d[_0x2369fc(0x1f3)]=0x3a9b]=_0x2369fc(0x1f3),_0x7da79d[_0x7da79d['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x2369fc(0x2b4),_0x7da79d[_0x7da79d[_0x2369fc(0x185)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x7da79d[_0x7da79d[_0x2369fc(0x139)]=0x3a9e]=_0x2369fc(0x139),_0x7da79d[_0x7da79d['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x2369fc(0x377),_0x7da79d[_0x7da79d[_0x2369fc(0x14f)]=0x3e81]=_0x2369fc(0x14f),_0x7da79d[_0x7da79d[_0x2369fc(0x22b)]=-0x1]=_0x2369fc(0x22b),_0x7da79d))(G||{});function Jt(_0x4a57f6){const _0x206c34=_0x2369fc;var _0x301762,_0xf95e5d;const _0xe3bbc3=(_0x301762=_0x4a57f6[_0x206c34(0xfc)])==null?void 0x0:_0x301762[_0x206c34(0x1d2)],_0x3c1cae=((_0xf95e5d=_0x4a57f6[_0x206c34(0xfc)])==null?void 0x0:_0xf95e5d[_0x206c34(0x103)])||0x0;return _0xe3bbc3===B[_0x206c34(0x213)]['START_CALCULATION']&&_0x3c1cae>0x0;}function Zt(_0xab70c8){const _0x13a2f7=_0x2369fc;return _0xab70c8[_0x13a2f7(0x333)]===B[_0x13a2f7(0x26d)]['SUCCESS'];}var Qt=Object[_0x2369fc(0x219)],es=(_0x393d2b,_0x2d9a51,_0x4d9e4d,_0x28f850)=>{const _0x454bc2=_0x2369fc;for(var _0x3a6e41=_0x28f850>0x1?void 0x0:_0x28f850?Qt(_0x2d9a51,_0x4d9e4d):_0x2d9a51,_0x4929e5=_0x393d2b[_0x454bc2(0x236)]-0x1,_0x1cea03;_0x4929e5>=0x0;_0x4929e5--)(_0x1cea03=_0x393d2b[_0x4929e5])&&(_0x3a6e41=_0x1cea03(_0x3a6e41)||_0x3a6e41);return _0x3a6e41;},L=(_0x5374f8,_0x270533)=>(_0x54ef4b,_0x377bdc)=>_0x270533(_0x54ef4b,_0x377bdc,_0x5374f8);const ts='/universer-api/license/formula/limit/status',ss=_0x2369fc(0x2e5),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x2369fc(0x189)]{constructor(_0xeba15,_0x1e5f6e,_0x387b9d,_0x49baad,_0x40e5d3,_0x508ac6,_0x5b3a36){const _0x452897=_0x2369fc;super(),_(this,_0x452897(0x30e),null),_(this,_0x452897(0xe1),0x0),_(this,_0x452897(0x153),0x0),_(this,_0x452897(0x1a6),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x452897(0xed)]=_0xeba15,this[_0x452897(0x24c)]=_0x1e5f6e,this[_0x452897(0x2eb)]=_0x387b9d,this[_0x452897(0xe6)]=_0x49baad,this[_0x452897(0x1ff)]=_0x40e5d3,this[_0x452897(0x17d)]=_0x508ac6,this[_0x452897(0x1a3)]=_0x5b3a36,this[_0x452897(0x203)]());}['_initCommandInterceptor'](){const _0x2dfb26=_0x2369fc;this['disposeWithMe'](this['_commandService'][_0x2dfb26(0x1de)]((_0x49fe7c,_0x2d2aba)=>{const _0x9969fe=_0x2dfb26;var _0x2446db;if(_0x49fe7c['id']!==B[_0x9969fe(0x2ca)]['id'])return;const _0x157070=_0x49fe7c['params'];if(!this[_0x9969fe(0x2b3)]((_0x2446db=_0x157070[_0x9969fe(0xf3)])!=null?_0x2446db:[]))return;if(!this[_0x9969fe(0x1bb)]())throw this[_0x9969fe(0x336)](_0x49fe7c,_0x2d2aba),this['_showGuardMessage'](),new a[(_0x9969fe(0x38b))]();})),this[_0x2dfb26(0x237)](this['_commandService'][_0x2dfb26(0x2dc)]((_0x250f5d,_0x1e6b13)=>{const _0x1809e7=_0x2dfb26;if(_0x250f5d['id']!==B[_0x1809e7(0x331)]['id'])return;const _0x36b6f6=_0x250f5d[_0x1809e7(0x38c)];if(Jt(_0x36b6f6)){const _0xddbb65=a['generateRandomId']();this[_0x1809e7(0x1a6)][_0x1809e7(0x1a0)](_0xddbb65),this['_startCalculationLimit'](_0xddbb65);}else{if(Zt(_0x36b6f6)&&this[_0x1809e7(0x1a6)][_0x1809e7(0x236)]>0x0){const _0x1798ab=this[_0x1809e7(0x1a6)][_0x1809e7(0x307)]();this['_releaseCalculationLimit'](_0x1798ab);}}}));}['dispose'](){const _0x5edf4b=_0x2369fc;super[_0x5edf4b(0x31e)](),this[_0x5edf4b(0x22f)](),this['_taskIds']=[],this[_0x5edf4b(0x153)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x2369fc(0x336)](_0x5de99f,_0xafc3bd){const _0x246359=_0x2369fc;for(let _0x2a0e11=0x0;_0x2a0e11<0x1e;_0x2a0e11++)try{if(await this[_0x246359(0x366)](),this[_0x246359(0x1bb)]()){this[_0x246359(0x248)](_0x5de99f,_0xafc3bd),this['_messageService'][_0x246359(0x1c4)]({'content':this[_0x246359(0x1a3)]['t'](_0x246359(0xec)),'type':p[_0x246359(0x314)]['Success']});return;}await new Promise(_0x4388cf=>{const _0x208c96=_0x246359;this['_pollingInterval']=window[_0x208c96(0x261)](_0x4388cf,0x3e8);});}catch(_0x373aec){this[_0x246359(0x17d)][_0x246359(0x1af)](_0x373aec);}this['_messageService'][_0x246359(0x1c4)]({'content':this[_0x246359(0x1a3)]['t']('formula.calculation.unable'),'type':p[_0x246359(0x314)][_0x246359(0xf1)]});}[_0x2369fc(0x248)](_0x136e4f,_0x3c8fad){const _0x36f620=_0x2369fc;try{this['_commandService'][_0x36f620(0x308)](_0x136e4f['id'],_0x136e4f[_0x36f620(0x38c)],_0x3c8fad);}catch(_0x437adb){this[_0x36f620(0x17d)][_0x36f620(0x1af)](_0x437adb);}}['_setFormulaLimitStatus'](_0x562f87,_0x174871){const _0x2782df=_0x2369fc;_0x174871<this['_lastResponseTimestamp']||(this[_0x2782df(0x24f)]=_0x174871,this[_0x2782df(0xe1)]=Number[_0x2782df(0x38a)](_0x562f87[_0x2782df(0x2ba)]),this['_currentUsage']=Number[_0x2782df(0x38a)](_0x562f87[_0x2782df(0x173)]));}async['_startCalculationLimit'](_0x9ad17a){const _0x19a7e0=_0x2369fc;var _0x703e74,_0x422d98;const _0x471bf3=Date[_0x19a7e0(0x3a7)]();try{const _0x4b9e76=((_0x703e74=this[_0x19a7e0(0x2eb)][_0x19a7e0(0xfe)](u[_0x19a7e0(0x2f9)]))==null?void 0x0:_0x703e74[_0x19a7e0(0x275)])||ss,_0xd92182=(await this['_httpService'][_0x19a7e0(0x379)](_0x4b9e76,{'body':JSON[_0x19a7e0(0x2ac)]({'taskId':_0x9ad17a})}))[_0x19a7e0(0x1c3)];if(((_0x422d98=_0xd92182[_0x19a7e0(0x1af)])==null?void 0x0:_0x422d98['code'])!==G['OK'])return;this[_0x19a7e0(0x31c)](_0xd92182[_0x19a7e0(0x130)],_0x471bf3);}catch(_0x6e3616){this[_0x19a7e0(0x17d)][_0x19a7e0(0x1af)](_0x6e3616);}}async[_0x2369fc(0x366)](_0x5237a5){const _0x2de34f=_0x2369fc;var _0x52dfa2,_0x37321b;const _0x4429fa=Date[_0x2de34f(0x3a7)]();try{const _0x15e2e8=((_0x52dfa2=this[_0x2de34f(0x2eb)][_0x2de34f(0xfe)](u[_0x2de34f(0x2f9)]))==null?void 0x0:_0x52dfa2[_0x2de34f(0x290)])||ts,_0x5dcb92=_0x5237a5?_0x15e2e8+_0x2de34f(0x210)+encodeURIComponent(_0x5237a5):_0x15e2e8,_0x446cc4=(await this[_0x2de34f(0xe6)][_0x2de34f(0x30d)](_0x5dcb92))[_0x2de34f(0x1c3)];if(((_0x37321b=_0x446cc4[_0x2de34f(0x1af)])==null?void 0x0:_0x37321b[_0x2de34f(0x10e)])!==G['OK'])return;this[_0x2de34f(0x31c)](_0x446cc4[_0x2de34f(0x130)],_0x4429fa);}catch(_0x402c93){this[_0x2de34f(0x17d)][_0x2de34f(0x1af)](_0x402c93);}}async[_0x2369fc(0x28e)](_0x57de86){const _0x218a3d=_0x2369fc;var _0x3eb598,_0x4bed19;const _0x1e715b=Date['now']();try{const _0x1adf6f=((_0x3eb598=this[_0x218a3d(0x2eb)][_0x218a3d(0xfe)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3eb598[_0x218a3d(0x329)])||is,_0x32b289=(await this[_0x218a3d(0xe6)][_0x218a3d(0x379)](_0x1adf6f,{'body':JSON[_0x218a3d(0x2ac)]({'taskId':_0x57de86})}))['body'];if(((_0x4bed19=_0x32b289[_0x218a3d(0x1af)])==null?void 0x0:_0x4bed19[_0x218a3d(0x10e)])!==G['OK'])return;this[_0x218a3d(0x31c)](_0x32b289[_0x218a3d(0x130)],_0x1e715b);}catch(_0x7d0154){this[_0x218a3d(0x17d)][_0x218a3d(0x1af)](_0x7d0154);}}[_0x2369fc(0x1bb)](){const _0x1dc8cd=_0x2369fc;return this[_0x1dc8cd(0xe1)]===0x0?!0x0:this[_0x1dc8cd(0xe1)]-this[_0x1dc8cd(0x153)]>0x0;}[_0x2369fc(0x22f)](){const _0x387a1b=_0x2369fc;this[_0x387a1b(0x30e)]&&(clearTimeout(this['_pollingInterval']),this[_0x387a1b(0x30e)]=null);}[_0x2369fc(0x1c1)](){const _0x5f1493=_0x2369fc;this[_0x5f1493(0xed)][_0x5f1493(0x1c4)]({'content':this[_0x5f1493(0x1a3)]['t']('formula.calculation.waiting'),'type':p[_0x5f1493(0x314)]['Loading']});}[_0x2369fc(0x2b3)](_0x24732b){const _0x6971aa=_0x2369fc;for(const _0x4ad822 of _0x24732b){const {unitId:_0x373359,sheetId:_0x3d0d90,range:_0x525577}=_0x4ad822,_0x2af5f6=this['_univerInstanceService']['getUnit'](_0x373359);if(!_0x2af5f6)continue;const _0x46ce2f=_0x2af5f6['getSheetBySheetId'](_0x3d0d90);if(!_0x46ce2f)continue;const _0x2efcfe=_0x46ce2f[_0x6971aa(0x1ed)]();for(let _0x15bd10=_0x525577[_0x6971aa(0x25f)];_0x15bd10<=_0x525577[_0x6971aa(0x3ae)];_0x15bd10++)for(let _0x47cc2a=_0x525577['startColumn'];_0x47cc2a<=_0x525577[_0x6971aa(0x37b)];_0x47cc2a++){const _0x2eb805=_0x2efcfe['getValue'](_0x15bd10,_0x47cc2a);if(_0x2eb805&&(a['isFormulaString'](_0x2eb805['f'])||a[_0x6971aa(0x207)](_0x2eb805['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x2369fc(0x2ab)](O[_0x2369fc(0xfa)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x2369fc(0x2ab)](x[_0x2369fc(0x249)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x2369fc(0x2e8)]),L(0x6,a['Inject'](a[_0x2369fc(0x20e)]))],ne);var ns=Object[_0x2369fc(0x219)],rs=(_0x167321,_0x5b746c,_0x2439fa,_0x29373c)=>{const _0x1eaef5=_0x2369fc;for(var _0x347e77=_0x29373c>0x1?void 0x0:_0x29373c?ns(_0x5b746c,_0x2439fa):_0x5b746c,_0x23925b=_0x167321[_0x1eaef5(0x236)]-0x1,_0x463a7a;_0x23925b>=0x0;_0x23925b--)(_0x463a7a=_0x167321[_0x23925b])&&(_0x347e77=_0x463a7a(_0x347e77)||_0x347e77);return _0x347e77;},Se=(_0xdc49fe,_0x16daf0)=>(_0x34d459,_0x3a4498)=>_0x16daf0(_0x34d459,_0x3a4498,_0xdc49fe);let Te=class extends a[_0x2369fc(0x189)]{constructor(_0x673115,_0xa78d66,_0x5ad6c7){const _0x241a31=_0x2369fc;super(),_(this,_0x241a31(0x2fa),new Map()),_(this,_0x241a31(0x2dd),new Map()),_(this,_0x241a31(0x11b),!0x1),(this[_0x241a31(0x2eb)]=_0x673115,this[_0x241a31(0x1f7)]=_0xa78d66,this['_revisionService']=_0x5ad6c7);}[_0x2369fc(0x396)](){const _0x2d1c1c=_0x2369fc;this[_0x2d1c1c(0x11b)]=!0x0;}['enableLocalCache'](){const _0x4a21d2=_0x2369fc;this[_0x4a21d2(0x11b)]=!0x1;}get[_0x2369fc(0x2bd)](){const _0x1b016e=_0x2369fc;return this[_0x1b016e(0x2dd)];}[_0x2369fc(0x31e)](){const _0x445543=_0x2369fc;this['exhaustSavingTask']()[_0x445543(0x39a)](()=>super[_0x445543(0x31e)]());}async['loadOfflineData'](_0x567e29){const _0x5993ef=_0x2369fc;return this[_0x5993ef(0x11b)]?null:this[_0x5993ef(0x1f7)][_0x5993ef(0x172)](u[_0x5993ef(0x1b2)](_0x567e29));}async['saveOfflineData'](_0x235d95,_0x5d1850){return!!this['_localStorageService']['setItem'](_0x235d95,_0x5d1850);}[_0x2369fc(0x35d)](_0x5769a9,_0x2a19ec,_0x35c542,_0x28252c){const _0x242827=_0x2369fc,_0x308a16=this['_revisionService'][_0x242827(0x2d5)](_0x5769a9);this[_0x242827(0x2fa)][_0x242827(0x2c6)](_0x5769a9,{'unitID':_0x5769a9,'type':_0x2a19ec,'awaitingChangeset':_0x35c542,'mutations':_0x28252c,'rev':_0x308a16}),this[_0x242827(0x2dd)][_0x242827(0x17a)](_0x5769a9)||this[_0x242827(0x369)](_0x5769a9);}[_0x2369fc(0x369)](_0x30b005){const _0x339cb6=_0x2369fc,_0x39dcdc=this[_0x339cb6(0x2f0)]();_0x39dcdc===0x0?this[_0x339cb6(0x206)](_0x30b005):this[_0x339cb6(0x2dd)][_0x339cb6(0x2c6)](_0x30b005,setTimeout(()=>this[_0x339cb6(0x206)](_0x30b005),_0x39dcdc));}[_0x2369fc(0x2f0)](){const _0x34042b=_0x2369fc;var _0x58e7d2;return(_0x58e7d2=this['_configService'][_0x34042b(0xfe)](u[_0x34042b(0x182)]))!=null?_0x58e7d2:u[_0x34042b(0x1cf)];}[_0x2369fc(0x206)](_0xa686a7){const _0x369663=_0x2369fc,_0x369126=this[_0x369663(0x2dd)][_0x369663(0x30d)](_0xa686a7);return _0x369126!==void 0x0&&window[_0x369663(0x25c)](_0x369126),this[_0x369663(0x1f7)][_0x369663(0x2ed)](u['getLocalCacheKey'](_0xa686a7),this[_0x369663(0x2fa)][_0x369663(0x30d)](_0xa686a7))[_0x369663(0x39a)](()=>this[_0x369663(0x2dd)][_0x369663(0x10a)](_0xa686a7));}async['exhaustSavingTask'](){const _0x59bc5c=_0x2369fc,_0xb2312a=[];this['_saveTaskMap'][_0x59bc5c(0x1a4)]((_0x51607f,_0x1dab78)=>{const _0x2639f2=_0x59bc5c;window['clearTimeout'](_0x51607f),_0xb2312a[_0x2639f2(0x1a0)](this['_saveCache'](_0x1dab78)[_0x2639f2(0x39a)](()=>{const _0x1b9777=_0x2639f2;this['_saveTaskMap'][_0x1b9777(0x10a)](_0x1dab78);}));}),await Promise['all'](_0xb2312a);}};Te=rs([Se(0x0,a[_0x2369fc(0x15a)]),Se(0x1,a[_0x2369fc(0x27c)]),Se(0x2,a[_0x2369fc(0x2ab)](g['RevisionService']))],Te);function _0x8c2a(_0x1bedeb,_0x503aad){_0x1bedeb=_0x1bedeb-0xe0;const _0x465539=_0x4655();let _0x8c2a19=_0x465539[_0x1bedeb];return _0x8c2a19;}class ke extends a['RxDisposable']{constructor(){const _0xcee922=_0x2369fc;super(),_(this,_0xcee922(0x15f)),this[_0xcee922(0x15f)]=I['fromEvent'](window,'popstate')[_0xcee922(0x28a)](I['takeUntil'](this[_0xcee922(0x131)]),I[_0xcee922(0x395)](0x1),I[_0xcee922(0x3a5)](void 0x0));}[_0x2369fc(0x226)](_0x8d8bd9,_0x1b85ce,_0x2f80e9=!0x1){const _0x253c32=_0x2369fc,_0x2f0809=new URL(window[_0x253c32(0x196)][_0x253c32(0xe4)]);_0x2f0809[_0x253c32(0x33e)]['set'](_0x8d8bd9,_0x1b85ce),_0x2f80e9?window[_0x253c32(0x117)][_0x253c32(0x34c)]('','',_0x2f0809[_0x253c32(0x138)]()):window[_0x253c32(0x117)][_0x253c32(0x10d)]('','',_0x2f0809[_0x253c32(0x138)]());}[_0x2369fc(0x104)](_0x3792a8,_0x39f3fa=!0x1){const _0x5c17ed=_0x2369fc,_0x3c1631=new URL(window[_0x5c17ed(0x196)]['href']);_0x3c1631[_0x5c17ed(0x33e)][_0x5c17ed(0x10a)](_0x3792a8),_0x39f3fa?window[_0x5c17ed(0x117)]['replaceState']('','',_0x3c1631[_0x5c17ed(0x138)]()):window['history'][_0x5c17ed(0x10d)]('','',_0x3c1631[_0x5c17ed(0x138)]());}[_0x2369fc(0x34a)](_0x28d433){const _0x2cbd22=_0x2369fc;var _0x302838;return(_0x302838=new URL(window['location']['href'])[_0x2cbd22(0x33e)]['get'](_0x28d433))!=null?_0x302838:void 0x0;}}var os=Object['defineProperty'],as=Object[_0x2369fc(0x219)],cs=(_0x41354c,_0x4f6f9a,_0x3a3af1)=>_0x4f6f9a in _0x41354c?os(_0x41354c,_0x4f6f9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a3af1}):_0x41354c[_0x4f6f9a]=_0x3a3af1,ls=(_0x31d556,_0x1d2d84,_0x34ea43,_0x52803c)=>{const _0x40010a=_0x2369fc;for(var _0x301fc7=_0x52803c>0x1?void 0x0:_0x52803c?as(_0x1d2d84,_0x34ea43):_0x1d2d84,_0x42431e=_0x31d556[_0x40010a(0x236)]-0x1,_0x3a5bc0;_0x42431e>=0x0;_0x42431e--)(_0x3a5bc0=_0x31d556[_0x42431e])&&(_0x301fc7=_0x3a5bc0(_0x301fc7)||_0x301fc7);return _0x301fc7;},de=(_0x37ba2d,_0xfdee91)=>(_0x3c51be,_0xfbd0b0)=>_0xfdee91(_0x3c51be,_0xfbd0b0,_0x37ba2d),_s=(_0x5c676f,_0x25d42a,_0x3045c6)=>cs(_0x5c676f,_0x25d42a+'',_0x3045c6);const hs=_0x2369fc(0xe0);exports[_0x2369fc(0x1f2)]=class extends a[_0x2369fc(0x35b)]{constructor(_0x390230=Me,_0x388ce7,_0x34e59b,_0x23b53c){const _0x11208f=_0x2369fc;super(),this[_0x11208f(0x2ad)]=_0x390230,this[_0x11208f(0x110)]=_0x388ce7,this[_0x11208f(0x2bc)]=_0x34e59b,this['_configService']=_0x23b53c;const {..._0x416783}=a[_0x11208f(0x224)]({},Me,this[_0x11208f(0x2ad)]);this[_0x11208f(0x2eb)]['setConfig'](Yt,_0x416783);}[_0x2369fc(0x326)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x2369fc(0x214)](){const _0x2b6b91=_0x2369fc;this[_0x2b6b91(0x2b6)]();}[_0x2369fc(0x23c)](){const _0x5076da=_0x2369fc;var _0x34e906;const _0x4c898e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x5076da(0x372)],{'useClass':x['WebSocketService']}],[u[_0x5076da(0x351)],{'useClass':Te}],[exports[_0x5076da(0x18e)]],[ie],[Z],[F],[me],[exports[_0x5076da(0x296)]]];this[_0x5076da(0x2ad)][_0x5076da(0x132)]&&_0x4c898e[_0x5076da(0x1a0)]([Q]),a[_0x5076da(0x21a)](this['_injector'],a[_0x5076da(0x1b5)](_0x4c898e,(_0x34e906=this[_0x5076da(0x2ad)])==null?void 0x0:_0x34e906[_0x5076da(0x360)]));}[_0x2369fc(0x2b6)](){const _0x52650b=_0x2369fc;this['disposeWithMe'](this['_renderManagerService'][_0x52650b(0x152)](a[_0x52650b(0x392)]['UNIVER_DOC'],[Ee])),this[_0x52650b(0x237)](this[_0x52650b(0x110)][_0x52650b(0x152)](a[_0x52650b(0x392)]['UNIVER_SHEET'],[Ce]));}[_0x2369fc(0x323)](){const _0x4b9592=_0x2369fc;a[_0x4b9592(0x2fb)](this['_injector'],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x4b9592(0x296)]],[ne]]),this['_config']['enableFrontendLog']&&a[_0x4b9592(0x2fb)](this[_0x4b9592(0x2bc)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x2369fc(0x122),hs),exports[_0x2369fc(0x1f2)]=ls([a[_0x2369fc(0x1da)](u[_0x2369fc(0x175)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x2369fc(0x2ab)](a['Injector'])),de(0x3,a[_0x2369fc(0x15a)])],exports[_0x2369fc(0x1f2)]);var us=Object[_0x2369fc(0x219)],Is=(_0x64959d,_0x4a014f,_0x131db4,_0x3a3d06)=>{const _0x360380=_0x2369fc;for(var _0x30dd56=_0x3a3d06>0x1?void 0x0:_0x3a3d06?us(_0x4a014f,_0x131db4):_0x4a014f,_0x3bc514=_0x64959d[_0x360380(0x236)]-0x1,_0x82140d;_0x3bc514>=0x0;_0x3bc514--)(_0x82140d=_0x64959d[_0x3bc514])&&(_0x30dd56=_0x82140d(_0x30dd56)||_0x30dd56);return _0x30dd56;},W=(_0x4567c1,_0x207871)=>(_0x3b1830,_0x5eb078)=>_0x207871(_0x3b1830,_0x5eb078,_0x4567c1);exports[_0x2369fc(0x1f9)]=class extends u[_0x2369fc(0x29f)]{constructor(_0x31b865,_0x27c853,_0x246b78,_0x3eed56,_0x12fdc3){super(_0x31b865,_0x27c853,_0x246b78,_0x3eed56,_0x12fdc3);}async['createSocket'](_0x5ed18c){const _0x507e9c=_0x2369fc,_0x4164c6=await this[_0x507e9c(0x3a2)](),_0xa95b19=this[_0x507e9c(0x289)](_0x5ed18c,_0x4164c6);return this[_0x507e9c(0x273)](_0xa95b19);}[_0x2369fc(0x289)](_0x4d2221,_0x156ce5){const _0x1e8ff1=_0x2369fc,_0x4d6bfe=typeof window>'u'?new URL(_0x4d2221):new URL(_0x4d2221,window['location']['origin']);_0x4d6bfe[_0x1e8ff1(0x33e)]['set'](_0x1e8ff1(0x2d7),_0x156ce5);const _0x579c3a=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x579c3a[_0x1e8ff1(0x30d)](_0x1e8ff1(0x20b))&&_0x4d6bfe[_0x1e8ff1(0x33e)][_0x1e8ff1(0x2c6)]('runId',_0x579c3a[_0x1e8ff1(0x30d)](_0x1e8ff1(0x20b))),_0x4d6bfe[_0x1e8ff1(0x138)]();}async['_getSessionTicket'](){const _0x41f446=_0x2369fc;var _0x26ec91,_0x218172,_0x476532;const _0xb4e29=this['_configService'][_0x41f446(0xfe)](u[_0x41f446(0x2f9)]),_0x4392c0=(_0x26ec91=_0xb4e29==null?void 0x0:_0xb4e29[_0x41f446(0x16e)])!=null?_0x26ec91:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x476532=(_0x218172=(await this['_httpService'][_0x41f446(0x30d)](_0x4392c0,{'headers':{'Content-Type':'application/json'}}))[_0x41f446(0x1c3)])==null?void 0x0:_0x218172[_0x41f446(0x143)])!=null?_0x476532:'';}},exports[_0x2369fc(0x1f9)]=Is([W(0x0,a[_0x2369fc(0x2ab)](a[_0x2369fc(0x170)])),W(0x1,a[_0x2369fc(0x2ab)](x[_0x2369fc(0x249)])),W(0x2,a[_0x2369fc(0x15a)]),W(0x3,a['ILogService']),W(0x4,g[_0x2369fc(0x2a9)])],exports['BrowserCollaborationSocketService']);var Ss=Object[_0x2369fc(0x219)],ds=(_0x5e1d59,_0x1d47d3,_0x242aef,_0x5ddad2)=>{const _0x41ec08=_0x2369fc;for(var _0x466c77=_0x5ddad2>0x1?void 0x0:_0x5ddad2?Ss(_0x1d47d3,_0x242aef):_0x1d47d3,_0x45537d=_0x5e1d59[_0x41ec08(0x236)]-0x1,_0x13600d;_0x45537d>=0x0;_0x45537d--)(_0x13600d=_0x5e1d59[_0x45537d])&&(_0x466c77=_0x13600d(_0x466c77)||_0x466c77);return _0x466c77;},fe=(_0x13af53,_0xf834eb)=>(_0x3d9698,_0x57f54c)=>_0xf834eb(_0x3d9698,_0x57f54c,_0x13af53);exports[_0x2369fc(0x2be)]=class extends a['Disposable']{constructor(_0x2461f3,_0x2372f4,_0x35a4de){const _0xa4d59c=_0x2369fc;super(),this[_0xa4d59c(0x340)]=_0x2461f3,this[_0xa4d59c(0xe6)]=_0x2372f4,this[_0xa4d59c(0x2eb)]=_0x35a4de;}async[_0x2369fc(0x3a0)](_0x1c9071,_0x4c98ab,_0x158a79,..._0x4fed72){const _0x1eb246=_0x2369fc;var _0x26a23b,_0xf04cef,_0x50fce2,_0x27be01;const _0x3ba8f1=this['_instanceService'][_0x1eb246(0x347)]();if(!_0x3ba8f1)throw new Error(_0x1eb246(0x309));const _0x4de0ee=((_0x26a23b=this[_0x1eb246(0x2eb)][_0x1eb246(0xfe)](u[_0x1eb246(0x1d0)]))!=null?_0x26a23b:u[_0x1eb246(0x181)])+'/'+_0x1c9071+_0x1eb246(0x215)+_0x4c98ab,_0x527430=new URL(window['location']['href']),_0x2e8317={'scriptId':_0x1c9071,'runId':(_0xf04cef=_0x527430[_0x1eb246(0x33e)][_0x1eb246(0x30d)](_0x1eb246(0x20b)))!=null?_0xf04cef:'','function':_0x4c98ab,'unitId':_0x3ba8f1['getUnitId'](),'argsOfFunction':JSON[_0x1eb246(0x2ac)](_0x4fed72),'invokeId':(_0x50fce2=_0x158a79[_0x1eb246(0x220)])!=null?_0x50fce2:'','executionId':(_0x27be01=_0x158a79[_0x1eb246(0x19e)])!=null?_0x27be01:''};try{const _0x3e84b7=await this[_0x1eb246(0xe6)][_0x1eb246(0x379)](_0x4de0ee,{'body':_0x2e8317});return _0x3e84b7[_0x1eb246(0x1c3)][_0x1eb246(0x1af)]&&_0x3e84b7[_0x1eb246(0x1c3)][_0x1eb246(0x1af)][_0x1eb246(0x10e)]!==G['OK']?_0x1eb246(0x2e6):_0x3e84b7['body'][_0x1eb246(0x1bf)];}catch{return _0x1eb246(0x2e6);}}},exports[_0x2369fc(0x2be)]=ds([fe(0x0,a[_0x2369fc(0x24a)]),fe(0x1,a[_0x2369fc(0x2ab)](x[_0x2369fc(0x249)])),fe(0x2,a[_0x2369fc(0x15a)])],exports[_0x2369fc(0x2be)]);const we=0x7530,ye=_0x2369fc(0x136);class fs extends a['Disposable']{constructor(){const _0x1ab608=_0x2369fc;super(),_(this,_0x1ab608(0x20d),a[_0x1ab608(0x2f7)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x1ab608(0x2ea),new Map()),_(this,_0x1ab608(0xfd),null),_(this,_0x1ab608(0x12a),new Map()),_(this,_0x1ab608(0x39c),new Map()),this['_init']();}['dispose'](){const _0x1e8718=_0x2369fc;super[_0x1e8718(0x31e)](),this['_clearOtherTimers']['forEach']((_0x5884c4,_0x3b92d0)=>this[_0x1e8718(0x255)](_0x3b92d0)),this[_0x1e8718(0xfd)]&&window[_0x1e8718(0x344)](this[_0x1e8718(0xfd)]);}[_0x2369fc(0x14e)](_0xfa32d6){const _0x4f30d0=_0x2369fc;return this[_0x4f30d0(0x2d1)](_0xfa32d6)['pipe'](I['distinctUntilChanged']());}[_0x2369fc(0x1b3)](_0x5eeaff){const _0x2ce71f=_0x2369fc;this[_0x2ce71f(0x2f3)][_0x2ce71f(0x1d1)]===0x0&&this[_0x2ce71f(0x188)](),this[_0x2ce71f(0x2f3)][_0x2ce71f(0x161)](_0x5eeaff),this[_0x2ce71f(0x124)]({'type':0x0,'memberID':this[_0x2ce71f(0x20d)],'unitIDs':[_0x5eeaff],'isForwarded':!0x1});}[_0x2369fc(0x312)](_0x27be4e){const _0x195ce3=_0x2369fc;this[_0x195ce3(0x2f3)]['delete'](_0x27be4e),this[_0x195ce3(0x2f3)]['size']===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x195ce3(0xfd)]);}[_0x2369fc(0x2d3)](){const _0x4b1311=_0x2369fc;this[_0x4b1311(0x237)](a[_0x4b1311(0x199)](I[_0x4b1311(0x295)](window,_0x4b1311(0x111))['subscribe'](_0x45114d=>{const _0x28ea06=_0x4b1311;if(_0x45114d[_0x28ea06(0x39d)]!==ye||!_0x45114d[_0x28ea06(0x350)])return;const _0x4ad16e=JSON['parse'](_0x45114d[_0x28ea06(0x350)]);this['_handleEvent'](_0x4ad16e);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x4b1311(0x20d)],'unitIDs':Array[_0x4b1311(0x23a)](this[_0x4b1311(0x2f3)])}));}['_handleEvent'](_0x599df1){const _0x254bfa=_0x2369fc;switch(_0x599df1[_0x254bfa(0x230)]){case 0x0:this[_0x254bfa(0x346)](_0x599df1);break;case 0x1:this[_0x254bfa(0x1a7)](_0x599df1);break;case 0x2:this[_0x254bfa(0x160)](_0x599df1);break;}}['_handleJoinEvent'](_0xaaef86){const _0x4c128e=_0x2369fc,{unitIDs:_0x4755ea,memberID:_0x246c47,isForwarded:_0x2136fd}=_0xaaef86;_0x4755ea[_0x4c128e(0x1a4)](_0x5425ef=>{const _0x1b5f36=_0x4c128e;if(!_0x2136fd&&this[_0x1b5f36(0x2ea)][_0x1b5f36(0x17a)](_0x5425ef)&&this[_0x1b5f36(0x2d1)](_0x5425ef)[_0x1b5f36(0x2b7)](u[_0x1b5f36(0x179)][_0x1b5f36(0x2c4)]),!this[_0x1b5f36(0x2ea)][_0x1b5f36(0x17a)](_0x5425ef)||!this[_0x1b5f36(0x2ea)][_0x1b5f36(0x30d)](_0x5425ef)[_0x1b5f36(0x17a)](_0x246c47)){const _0x516e92=this[_0x1b5f36(0x2ea)][_0x1b5f36(0x30d)](_0x5425ef)||new Set();_0x516e92[_0x1b5f36(0x161)](_0x246c47),this[_0x1b5f36(0x2ea)][_0x1b5f36(0x2c6)](_0x5425ef,_0x516e92),this['_scheduleClearOtherTimer'](_0x246c47);}}),_0x2136fd||this[_0x4c128e(0x124)]({'type':0x0,'memberID':this[_0x4c128e(0x20d)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2369fc(0x1e7)](_0x3c4bda){const _0x37eb76=_0x2369fc;this[_0x37eb76(0x255)](_0x3c4bda);const _0x5996b5=window[_0x37eb76(0x261)](()=>{const _0x3fa051=_0x37eb76;this[_0x3fa051(0x2ea)][_0x3fa051(0x1a4)](_0x526e2e=>{const _0x2079da=_0x3fa051;_0x526e2e[_0x2079da(0x10a)](_0x3c4bda);});},we*0x2);this[_0x37eb76(0x12a)][_0x37eb76(0x2c6)](_0x3c4bda,_0x5996b5);}[_0x2369fc(0x255)](_0x27f140){const _0x39b971=_0x2369fc;if(this[_0x39b971(0x12a)][_0x39b971(0x17a)](_0x27f140)){const _0x3c8c49=this[_0x39b971(0x12a)]['get'](_0x27f140);_0x3c8c49&&window['clearTimeout'](_0x3c8c49),this[_0x39b971(0x12a)][_0x39b971(0x2c6)](_0x27f140,null);}}['_handleLeaveEvent'](_0x19669b){const _0x358181=_0x2369fc,{memberID:_0xf9f949,unitIDs:_0x534270}=_0x19669b;_0x534270[_0x358181(0x1a4)](_0x436e9b=>{const _0xbdcdbd=_0x358181;var _0x2da717;const _0x182dba=this[_0xbdcdbd(0x2ea)][_0xbdcdbd(0x30d)](_0x436e9b);_0x182dba&&(_0x182dba[_0xbdcdbd(0x10a)](_0xf9f949),(_0x2da717=this[_0xbdcdbd(0x2d1)](_0x436e9b))==null||_0x2da717['next'](_0x182dba[_0xbdcdbd(0x1d1)]===0x0?u['UnitStatus'][_0xbdcdbd(0x180)]:u[_0xbdcdbd(0x179)][_0xbdcdbd(0x2c4)]));}),this[_0x358181(0x255)](_0xf9f949);}[_0x2369fc(0x160)](_0xf1be7){const _0x219c93=_0x2369fc;this['_scheduleClearOtherTimer'](_0xf1be7[_0x219c93(0x1a8)]);}[_0x2369fc(0x124)](_0x1c84f6){const _0x4e42ac=_0x2369fc;localStorage[_0x4e42ac(0x2ed)](ye,JSON['stringify'](_0x1c84f6));}[_0x2369fc(0x188)](){const _0x4f28da=_0x2369fc;this[_0x4f28da(0xfd)]=window[_0x4f28da(0xea)](()=>{const _0x2e83ec=_0x4f28da;this[_0x2e83ec(0x124)]({'type':0x2,'memberID':this[_0x2e83ec(0x20d)]});},we);}['_ensureSubject'](_0x58987c){const _0x26460c=_0x2369fc;return this[_0x26460c(0x39c)][_0x26460c(0x17a)](_0x58987c)||this[_0x26460c(0x39c)]['set'](_0x58987c,new I[(_0x26460c(0x121))](u[_0x26460c(0x179)][_0x26460c(0x180)])),this[_0x26460c(0x39c)][_0x26460c(0x30d)](_0x58987c);}}exports[_0x2369fc(0x20a)]=Oe,exports[_0x2369fc(0x154)]=je,exports[_0x2369fc(0x277)]=fs,exports[_0x2369fc(0x14a)]=ke;
|
|
1
|
+
'use strict';const _0xb7227a=_0x4227;(function(_0x19fd30,_0x4a2c2c){const _0x5ae66d=_0x4227,_0x2d910f=_0x19fd30();while(!![]){try{const _0xf0052a=-parseInt(_0x5ae66d(0x35d))/0x1+parseInt(_0x5ae66d(0x408))/0x2*(parseInt(_0x5ae66d(0x2da))/0x3)+-parseInt(_0x5ae66d(0x1ae))/0x4*(-parseInt(_0x5ae66d(0x2f3))/0x5)+parseInt(_0x5ae66d(0x15b))/0x6*(-parseInt(_0x5ae66d(0x429))/0x7)+-parseInt(_0x5ae66d(0x22a))/0x8*(-parseInt(_0x5ae66d(0x397))/0x9)+parseInt(_0x5ae66d(0x1a9))/0xa*(parseInt(_0x5ae66d(0x3b1))/0xb)+-parseInt(_0x5ae66d(0x207))/0xc*(parseInt(_0x5ae66d(0x161))/0xd);if(_0xf0052a===_0x4a2c2c)break;else _0x2d910f['push'](_0x2d910f['shift']());}catch(_0x1e596a){_0x2d910f['push'](_0x2d910f['shift']());}}}(_0x3e8b,0xe4183));var Xe=Object[_0xb7227a(0x3ab)],Ke=(_0x3fecb1,_0x382afd,_0x35d2ac)=>_0x382afd in _0x3fecb1?Xe(_0x3fecb1,_0x382afd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35d2ac}):_0x3fecb1[_0x382afd]=_0x35d2ac,_=(_0x4c3954,_0x412f43,_0x4a1233)=>Ke(_0x4c3954,typeof _0x412f43!=_0xb7227a(0x22d)?_0x412f43+'':_0x412f43,_0x4a1233);Object['defineProperty'](exports,Symbol[_0xb7227a(0x202)],{'value':_0xb7227a(0x30e)});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:_0x2e9d89,..._0x3bccbb}){const _0x132da8=_0xb7227a,{icon:_0x534f65,id:_0x927cd7,className:_0x43a7cb,extend:_0x2ad12b,..._0x294ebc}=_0x3bccbb,_0x34d6b9=(_0x132da8(0x175)+_0x927cd7+'\x20'+(_0x43a7cb||''))[_0x132da8(0x3a8)](),_0x201f5f=A[_0x132da8(0x298)]('_'+Qe());return $e(_0x534f65,''+_0x927cd7,{'defIds':_0x534f65[_0x132da8(0x189)],'idSuffix':_0x201f5f[_0x132da8(0x40f)]},{'ref':_0x2e9d89,'className':_0x34d6b9,..._0x294ebc},_0x2ad12b);}function $e(_0x3106ea,_0x1d85c1,_0x58a693,_0xd56bd7,_0x5f217c){const _0x22debc=_0xb7227a;return A['createElement'](_0x3106ea[_0x22debc(0x243)],{'key':_0x1d85c1,...Je(_0x3106ea,_0x58a693,_0x5f217c),..._0xd56bd7},(Ze(_0x3106ea,_0x58a693)[_0x22debc(0x16c)]||[])['map']((_0x5b768f,_0x2e731a)=>$e(_0x5b768f,_0x1d85c1+'-'+_0x3106ea['tag']+'-'+_0x2e731a,_0x58a693,void 0x0,_0x5f217c)));}function Je(_0x3fe59e,_0x3ac6f6,_0x557fdc){const _0x2dbe66=_0xb7227a,_0x122287={..._0x3fe59e[_0x2dbe66(0x2b9)]};_0x557fdc!=null&&_0x557fdc[_0x2dbe66(0x428)]&&_0x122287['fill']===_0x2dbe66(0x428)&&(_0x122287[_0x2dbe66(0x2e3)]=_0x557fdc[_0x2dbe66(0x428)]),_0x3fe59e[_0x2dbe66(0x243)]==='mask'&&_0x122287['id']&&(_0x122287['id']=_0x122287['id']+_0x3ac6f6[_0x2dbe66(0x364)]),Object[_0x2dbe66(0x2eb)](_0x122287)[_0x2dbe66(0x339)](([_0x5a3c66,_0x489eda])=>{const _0xc271eb=_0x2dbe66;_0x5a3c66===_0xc271eb(0x3ba)&&typeof _0x489eda==_0xc271eb(0x35a)&&(_0x122287[_0x5a3c66]=_0x489eda[_0xc271eb(0x1d0)](/url\(#(.*)\)/,_0xc271eb(0x1df)+_0x3ac6f6[_0xc271eb(0x364)]+')'));});const {defIds:_0x5e73bf}=_0x3ac6f6;return!_0x5e73bf||_0x5e73bf[_0x2dbe66(0x1fd)]===0x0||(_0x3fe59e[_0x2dbe66(0x243)]===_0x2dbe66(0x23a)&&_0x122287[_0x2dbe66(0x327)]&&(_0x122287[_0x2dbe66(0x327)]=_0x122287[_0x2dbe66(0x327)]+_0x3ac6f6[_0x2dbe66(0x364)]),Object[_0x2dbe66(0x2eb)](_0x122287)[_0x2dbe66(0x339)](([_0x5f394e,_0x1f3d78])=>{const _0x4ab8b3=_0x2dbe66;typeof _0x1f3d78==_0x4ab8b3(0x35a)&&(_0x122287[_0x5f394e]=_0x1f3d78[_0x4ab8b3(0x1d0)](/url\(#(.*)\)/,_0x4ab8b3(0x1df)+_0x3ac6f6[_0x4ab8b3(0x364)]+')'));})),_0x122287;}function Ze(_0x4f208a,_0x4f589b){const _0x25d77b=_0xb7227a;var _0x31a38b;const {defIds:_0x2c0c3d}=_0x4f589b;return!_0x2c0c3d||_0x2c0c3d['length']===0x0?_0x4f208a:_0x4f208a[_0x25d77b(0x243)]===_0x25d77b(0x394)&&((_0x31a38b=_0x4f208a[_0x25d77b(0x16c)])!=null&&_0x31a38b['length'])?{..._0x4f208a,'children':_0x4f208a['children'][_0x25d77b(0x326)](_0x2d17fe=>typeof _0x2d17fe['attrs']['id']==_0x25d77b(0x35a)&&_0x2c0c3d&&_0x2c0c3d[_0x25d77b(0x1e8)](_0x2d17fe['attrs']['id'])?{..._0x2d17fe,'attrs':{..._0x2d17fe[_0x25d77b(0x2b9)],'id':_0x2d17fe[_0x25d77b(0x2b9)]['id']+_0x4f589b[_0x25d77b(0x364)]}}:_0x2d17fe)}:_0x4f208a;}function Qe(){const _0x5981a4=_0xb7227a;return Math['random']()['toString'](0x24)[_0x5981a4(0x31b)](0x2,0x8);}pe[_0xb7227a(0x27e)]=_0xb7227a(0x284);const et={'tag':_0xb7227a(0x433),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb7227a(0x272),'viewBox':_0xb7227a(0x29f),'width':'1em','height':_0xb7227a(0x197)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0xb7227a(0x3fb),'attrs':{'stroke':_0xb7227a(0x3e9),'d':_0xb7227a(0x42f),'strokeLinecap':_0xb7227a(0x246),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xb7227a(0x239),'attrs':{'id':_0xb7227a(0x1f9)},'children':[{'tag':_0xb7227a(0x3fb),'attrs':{'fill':_0xb7227a(0x432),'d':_0xb7227a(0x26f)}}]}]}],'defIds':[_0xb7227a(0x1f9)]},xe=A[_0xb7227a(0x253)](function(_0x5e0095,_0x12e56d){const _0x4d7e71=_0xb7227a;return A['createElement'](pe,Object[_0x4d7e71(0x1e2)]({},_0x5e0095,{'id':_0x4d7e71(0x1b7),'ref':_0x12e56d,'icon':et}));});xe[_0xb7227a(0x27e)]=_0xb7227a(0x361);const tt={'tag':'svg','attrs':{'xmlns':_0xb7227a(0x181),'fill':'none','viewBox':_0xb7227a(0x238),'width':_0xb7227a(0x197),'height':_0xb7227a(0x197)},'children':[{'tag':'g','attrs':{'clipPath':_0xb7227a(0x23f)},'children':[{'tag':'path','attrs':{'stroke':_0xb7227a(0x3e9),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xb7227a(0x246),'strokeLinejoin':_0xb7227a(0x246),'strokeWidth':1.2}}]},{'tag':_0xb7227a(0x394),'attrs':{},'children':[{'tag':_0xb7227a(0x239),'attrs':{'id':_0xb7227a(0x275)},'children':[{'tag':_0xb7227a(0x3fb),'attrs':{'fill':_0xb7227a(0x432),'d':_0xb7227a(0x26f),'transform':'translate(.97)'}}]}]}],'defIds':[_0xb7227a(0x275)]},Be=A[_0xb7227a(0x253)](function(_0x120ad3,_0x1f85d7){const _0x461154=_0xb7227a;return A[_0x461154(0x372)](pe,Object[_0x461154(0x1e2)]({},_0x120ad3,{'id':_0x461154(0x368),'ref':_0x1f85d7,'icon':tt}));});Be[_0xb7227a(0x27e)]=_0xb7227a(0x3da);function st(_0x1488ce){const _0x29b849=_0xb7227a;switch(_0x1488ce){case u['CollaborationStatus']['OFFLINE']:return'collabStatus.offline';case u[_0x29b849(0x1b4)]['CONFLICT']:return _0x29b849(0x3a2);case u['CollaborationStatus'][_0x29b849(0x180)]:return'collabStatus.fetchMiss';case u['CollaborationStatus']['NOT_COLLAB']:return _0x29b849(0x1d7);case u[_0x29b849(0x1b4)]['AWAITING']:case u[_0x29b849(0x1b4)][_0x29b849(0x2b3)]:return _0x29b849(0x385);case u['CollaborationStatus'][_0x29b849(0x2a0)]:case u['CollaborationStatus'][_0x29b849(0x17b)]:return'collabStatus.synced';}}function it(_0x3d8b74){const _0x2e9a30=_0xb7227a,{status$:_0x97eb98}=_0x3d8b74,_0x2f15a7=O[_0x2e9a30(0x3ea)](_0x97eb98,u['CollaborationStatus'][_0x2e9a30(0x29d)]),_0x6ad7c9=O[_0x2e9a30(0x34c)](a[_0x2e9a30(0x1dc)]),_0x1fa038=O[_0x2e9a30(0x34c)](u[_0x2e9a30(0x376)]),_0x324a77=_0x2f15a7!==u[_0x2e9a30(0x1b4)][_0x2e9a30(0x436)],_0x512444=_0x6ad7c9['t'](st(_0x2f15a7)),_0x369d06=_0x324a77?M[_0x2e9a30(0x17d)](Be,{}):M[_0x2e9a30(0x17d)](xe,{}),_0x5d01c5=A['useCallback'](()=>{const _0x4c7209=_0x2e9a30;_0x324a77||_0x1fa038[_0x4c7209(0x205)]();},[_0x324a77,_0x1fa038]);function _0x25aab7(){const _0x3596d0=_0x2e9a30;return M[_0x3596d0(0x1d1)](_0x3596d0(0x2cf),{'className':_0x3596d0(0x3c2),'onClick':_0x5d01c5,'children':[M['jsx'](_0x3596d0(0x2cf),{'className':p['clsx'](_0x3596d0(0x440),{'univer-text-green-500':_0x324a77,'univer-text-red-500':!_0x324a77}),'children':_0x369d06}),M['jsx']('div',{'className':_0x3596d0(0x373),'children':_0x512444})]});}return _0x324a77?_0x25aab7():M[_0x2e9a30(0x17d)](p[_0x2e9a30(0x316)],{'title':_0x6ad7c9['t'](_0x2e9a30(0x419)),'children':_0x25aab7()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x5938f1,_0x7104a3,_0x9f6cee,_0xdd770f)=>{const _0xcbd16a=_0xb7227a;for(var _0x1b0d0b=_0xdd770f>0x1?void 0x0:_0xdd770f?nt(_0x7104a3,_0x9f6cee):_0x7104a3,_0x243862=_0x5938f1[_0xcbd16a(0x1fd)]-0x1,_0x463049;_0x243862>=0x0;_0x243862--)(_0x463049=_0x5938f1[_0x243862])&&(_0x1b0d0b=_0x463049(_0x1b0d0b)||_0x1b0d0b);return _0x1b0d0b;},K=(_0x1f656c,_0x32e698)=>(_0xe4f921,_0x8c6205)=>_0x32e698(_0xe4f921,_0x8c6205,_0x1f656c);exports[_0xb7227a(0x349)]=class extends a[_0xb7227a(0x3d3)]{constructor(_0x41483e,_0x1995f5,_0x44f473,_0xa2ac0c){const _0x2b5aaa=_0xb7227a;super(),_(this,'_status$',new I[(_0x2b5aaa(0x31a))](u[_0x2b5aaa(0x1b4)][_0x2b5aaa(0x29d)])),(this[_0x2b5aaa(0x234)]=_0x41483e,this[_0x2b5aaa(0x35e)]=_0x1995f5,this[_0x2b5aaa(0x354)]=_0x44f473,this[_0x2b5aaa(0x37d)]=_0xa2ac0c,this[_0x2b5aaa(0x3dc)](),this[_0x2b5aaa(0x29c)]());}['_initStatusListener'](){const _0x771446=_0xb7227a;this[_0x771446(0x3c6)](this[_0x771446(0x234)][_0x771446(0x1c8)][_0x771446(0x2e8)](I[_0x771446(0x38d)](()=>{const _0x35cb43=_0x771446,_0x51b7fa=this['_univerInstanceService'][_0x35cb43(0x322)]();return _0x51b7fa?this['_collaborationController'][_0x35cb43(0x194)](_0x51b7fa[_0x35cb43(0x1ce)]()):I['of'](null);}),I['switchMap'](_0xf00f2=>_0xf00f2?_0xf00f2[_0x771446(0x21c)]:I['of'](u[_0x771446(0x1b4)][_0x771446(0x29d)])))[_0x771446(0x42d)](_0x442445=>{const _0x2b0009=_0x771446;this['_status$'][_0x2b0009(0x16e)](_0x442445);}));}['_initStatusComponent'](){const _0x19ebdf=_0xb7227a;this[_0x19ebdf(0x3c6)](this[_0x19ebdf(0x37d)][_0x19ebdf(0x222)](O[_0x19ebdf(0x404)][_0x19ebdf(0x1c6)],()=>O[_0x19ebdf(0x343)](ot({'status$':this['_status$']['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0xb7227a(0x187)]),K(0x1,a['Inject'](a[_0xb7227a(0x36e)])),K(0x2,a[_0xb7227a(0x2f4)](u[_0xb7227a(0x3d5)])),K(0x3,O['IUIPartsService'])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x588f1a){const {status$:_0x5cc6bd}=_0x588f1a;return function(){return M['jsx'](it,{'status$':_0x5cc6bd});};}const Oe=a[_0xb7227a(0x31e)](_0xb7227a(0x1ed));var at=Object[_0xb7227a(0x1ca)],ct=(_0x3c2a67,_0x36aaa0,_0x2923bd,_0x14d4c7)=>{for(var _0x4ebe07=_0x14d4c7>0x1?void 0x0:_0x14d4c7?at(_0x36aaa0,_0x2923bd):_0x36aaa0,_0x30d3a1=_0x3c2a67['length']-0x1,_0x600f9d;_0x30d3a1>=0x0;_0x30d3a1--)(_0x600f9d=_0x3c2a67[_0x30d3a1])&&(_0x4ebe07=_0x600f9d(_0x4ebe07)||_0x4ebe07);return _0x4ebe07;},Y=(_0x53c184,_0x2b95fa)=>(_0x25b147,_0x6eb8f5)=>_0x2b95fa(_0x25b147,_0x6eb8f5,_0x53c184);exports[_0xb7227a(0x19b)]=class extends a[_0xb7227a(0x3b7)]{constructor(_0x1206d5,_0x3c4da0,_0x592fd5,_0x28cd5d,_0xf09efa){const _0x53665e=_0xb7227a;super(),this[_0x53665e(0x216)]=_0x1206d5,this[_0x53665e(0x41d)]=_0x3c4da0,this[_0x53665e(0x3fa)]=_0x592fd5,this['_dataLoaderService']=_0x28cd5d,_0xf09efa?_0xf09efa==null||_0xf09efa[_0x53665e(0x439)]()[_0x53665e(0x26c)](()=>this[_0x53665e(0x304)]()):(this[_0x53665e(0x41d)][_0x53665e(0x1d5)](_0x53665e(0x3f5),_0x53665e(0x33b)),this[_0x53665e(0x304)]());}async[_0xb7227a(0x304)](){const _0x56a460=_0xb7227a,_0x27dcb5=this[_0x56a460(0x216)][_0x56a460(0x3f9)]('unit'),_0x55b57d=this['_urlService'][_0x56a460(0x3f9)](_0x56a460(0x289)),_0x118b71=this[_0x56a460(0x216)][_0x56a460(0x3f9)](_0x56a460(0x269));if(!_0x27dcb5||!_0x55b57d){this[_0x56a460(0x41d)]['debug'](_0x56a460(0x3f5),_0x56a460(0x183));return;}const _0x2297f9=await this[_0x56a460(0x251)]['loadUnit'](_0x27dcb5,Number(_0x55b57d),_0x118b71);_0x2297f9&&_0x2297f9 instanceof a['Workbook']&&this[_0x56a460(0x381)](_0x2297f9);}async['_setupSubUnitSync'](_0x58969c){const _0x59c9b7=_0xb7227a;await this[_0x59c9b7(0x399)](_0x58969c),_0x58969c['activeSheet$']['pipe'](I[_0x59c9b7(0x413)](this[_0x59c9b7(0x1db)]))['subscribe'](_0x465a57=>{const _0x19a279=_0x59c9b7;_0x465a57&&this[_0x19a279(0x22b)](_0x465a57);}),this[_0x59c9b7(0x216)][_0x59c9b7(0x2af)][_0x59c9b7(0x2e8)](I[_0x59c9b7(0x413)](this[_0x59c9b7(0x1db)]))[_0x59c9b7(0x42d)](()=>this['_updateSubUnitFromURLParams'](_0x58969c));}[_0xb7227a(0x22b)](_0x58367b,_0x37f088=!0x1){const _0x2a5141=_0xb7227a,_0x50c222=this[_0x2a5141(0x216)]['getParam']('subunit');_0x58367b[_0x2a5141(0x3d0)]()!==_0x50c222&&this[_0x2a5141(0x216)][_0x2a5141(0x36b)](_0x2a5141(0x269),_0x58367b[_0x2a5141(0x3d0)](),_0x37f088);}async[_0xb7227a(0x399)](_0x4be52e){const _0x570c27=_0xb7227a;var _0x3b55a2;const _0x25ce21=this['_urlService'][_0x570c27(0x3f9)]('subunit');if(!_0x25ce21||!_0x4be52e[_0x570c27(0x2e1)](_0x25ce21)){const _0x392dc6=_0x4be52e['getUnhiddenWorksheets']()[0x0],_0x4b69a9=_0x4be52e[_0x570c27(0x2e1)](_0x392dc6);if(!_0x4b69a9)return;this['_updateURLWithCurrentState'](_0x4b69a9,!0x0),await this[_0x570c27(0x3fa)][_0x570c27(0x360)](v[_0x570c27(0x390)]['id'],{'unitId':_0x4be52e[_0x570c27(0x1ce)](),'subUnitId':_0x392dc6});return;}((_0x3b55a2=_0x4be52e[_0x570c27(0x16d)]())==null?void 0x0:_0x3b55a2['getSheetId']())!==_0x25ce21&&await this['_commandService'][_0x570c27(0x360)](v[_0x570c27(0x390)]['id'],{'unitId':_0x4be52e['getUnitId'](),'subUnitId':_0x25ce21});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0xb7227a(0x3c0)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0xb7227a(0x2f4)](u[_0xb7227a(0x3c5)])),Y(0x4,a[_0xb7227a(0x28f)](qe[_0xb7227a(0x3ed)]))],exports[_0xb7227a(0x19b)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0xcb2827,_0x4743b9,_0x4fbdc9,_0x42f4ae)=>{const _0x56dfdc=_0xb7227a;for(var _0x2d58c2=_0x42f4ae>0x1?void 0x0:_0x42f4ae?lt(_0x4743b9,_0x4fbdc9):_0x4743b9,_0x556d1d=_0xcb2827[_0x56dfdc(0x1fd)]-0x1,_0x2544a4;_0x556d1d>=0x0;_0x556d1d--)(_0x2544a4=_0xcb2827[_0x556d1d])&&(_0x2d58c2=_0x2544a4(_0x2d58c2)||_0x2d58c2);return _0x2d58c2;},De=(_0x646996,_0x141512)=>(_0x5d1f84,_0x5ce88a)=>_0x141512(_0x5d1f84,_0x5ce88a,_0x646996);let me=class extends a[_0xb7227a(0x3b7)]{constructor(_0x53e058,_0x56876c){const _0x450010=_0xb7227a;super(),this[_0x450010(0x293)]=_0x53e058,this[_0x450010(0x36c)]=_0x56876c,this['_init']();}[_0xb7227a(0x304)](){const _0x4f350c=_0xb7227a,_0x36901e=this;this[_0x4f350c(0x3c6)](this[_0x4f350c(0x293)][_0x4f350c(0x2c0)]({'onBeforePasteImage':async _0x43c3a2=>{const _0x2d0bb0=_0x4f350c,_0xd8df95=await _0x36901e[_0x2d0bb0(0x36c)][_0x2d0bb0(0x1c0)](_0x43c3a2);return _0xd8df95?{'source':_0xd8df95[_0x2d0bb0(0x179)],'imageSourceType':_0xd8df95[_0x2d0bb0(0x337)]}:null;}}));}};me=_t([De(0x0,T['IDocClipboardService']),De(0x1,ze[_0xb7227a(0x309)])],me);const Ne=[_0xb7227a(0x43c),_0xb7227a(0x3d1),_0xb7227a(0x33f),_0xb7227a(0x1c4),_0xb7227a(0x2dc),'yellow.400'];class Re extends a[_0xb7227a(0x3d3)]{constructor(){const _0x13f5a2=_0xb7227a;super(...arguments),_(this,_0x13f5a2(0x16a),new Map()),_(this,_0x13f5a2(0x34f),0x0);}[_0xb7227a(0x2a4)](_0x555bfb){const _0x19abbc=_0xb7227a;if(this[_0x19abbc(0x16a)][_0x19abbc(0x15d)](_0x555bfb))return this[_0x19abbc(0x16a)][_0x19abbc(0x279)](_0x555bfb);const _0x4ca7f5=Ne[this[_0x19abbc(0x34f)]];return this[_0x19abbc(0x34f)]=(this[_0x19abbc(0x34f)]+0x1)%Ne[_0x19abbc(0x1fd)],this[_0x19abbc(0x16a)][_0x19abbc(0x19f)](_0x555bfb,_0x4ca7f5),_0x4ca7f5;}}function Fe(_0x422f3e){const _0x2ca0fb=_0xb7227a;let _0x6838b7='';for(const _0x23cad6 of _0x422f3e){const {startOffset:_0x5db31b,endOffset:_0x48d489,isActive:_0x1a67d8,rangeType:_0x19eb23,segmentId:_0x27108d,segmentPage:_0x21aef4}=_0x23cad6;_0x6838b7[_0x2ca0fb(0x1fd)]&&(_0x6838b7+=','),_0x6838b7+=_0x5db31b+':'+_0x48d489+':'+(_0x1a67d8?'1':'0')+':'+_0x19eb23+':'+_0x27108d+':'+_0x21aef4;}return _0x6838b7;}function ht(_0x29f585){const _0x4c182f=_0xb7227a,_0x54faac=_0x29f585[_0x4c182f(0x2c6)](','),_0xb9ab12=[];for(const _0x150f88 of _0x54faac){const [_0x7d9808,_0x15f999,_0x4449f6,_0x5db49f,_0x5981e8,_0x3e3952]=_0x150f88['split'](':');_0xb9ab12[_0x4c182f(0x169)]({'startOffset':Number(_0x7d9808),'endOffset':Number(_0x15f999),'collapsed':_0x7d9808===_0x15f999,'isActive':_0x4449f6==='1','rangeType':_0x5db49f===a[_0x4c182f(0x248)][_0x4c182f(0x1f5)]?a[_0x4c182f(0x248)][_0x4c182f(0x1f5)]:a[_0x4c182f(0x248)][_0x4c182f(0x2b0)],'segmentId':typeof _0x5981e8==_0x4c182f(0x35a)?String(_0x5981e8):'','segmentPage':Number(_0x3e3952!=null?_0x3e3952:-0x1)});}return _0xb9ab12[_0x4c182f(0x18f)](_0x33a3c1=>_0x33a3c1['isActive'])||(_0xb9ab12[0x0][_0x4c182f(0x195)]=!0x0),_0xb9ab12;}class be extends a[_0xb7227a(0x3b7)]{constructor(){const _0x505dc3=_0xb7227a;super(...arguments),_(this,_0x505dc3(0x2cb),new I[(_0x505dc3(0x31a))](null)),_(this,_0x505dc3(0x1e5),this['_collabCursorState$'][_0x505dc3(0x334)]());}[_0xb7227a(0x1cb)](_0x4de681){const _0x28ea17=_0xb7227a,{unitID:_0x226dd4,memberID:_0x5b7872,textRanges:_0x4d7131}=_0x4de681,_0x292864=Fe(_0x4d7131);if(_0x292864==='')return;const _0x241329={'unitID':_0x226dd4,'memberID':_0x5b7872,'selection':_0x292864};this[_0x28ea17(0x2cb)]['next'](_0x241329);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x49aa1e,_0x5f3c6,_0x588d4a,_0x44f73b)=>{const _0x1ef8d4=_0xb7227a;for(var _0x3382d9=_0x44f73b>0x1?void 0x0:_0x44f73b?ut(_0x5f3c6,_0x588d4a):_0x5f3c6,_0x16c127=_0x49aa1e[_0x1ef8d4(0x1fd)]-0x1,_0x5365e6;_0x16c127>=0x0;_0x16c127--)(_0x5365e6=_0x49aa1e[_0x16c127])&&(_0x3382d9=_0x5365e6(_0x3382d9)||_0x3382d9);return _0x3382d9;},U=(_0x27aa73,_0xd3f85a)=>(_0x572826,_0x224539)=>_0xd3f85a(_0x572826,_0x224539,_0x27aa73);const St=0x12c,dt=0x64;function _0x4227(_0x40ca54,_0x161e0a){_0x40ca54=_0x40ca54-0x156;const _0x3e8bb7=_0x3e8b();let _0x422722=_0x3e8bb7[_0x40ca54];return _0x422722;}let ve=class extends a[_0xb7227a(0x3b7)]{constructor(_0xc5af97,_0x459fa4,_0x3e05a5,_0x59a2a0,_0xb2d5b4,_0x247db4,_0x3e92a3,_0x505ec3,_0x493642){const _0x21fac8=_0xb7227a;super(),_(this,_0x21fac8(0x41e),!0x1),_(this,_0x21fac8(0x304),!0x1),_(this,_0x21fac8(0x1ff),new I[(_0x21fac8(0x31a))](new Map())),_(this,_0x21fac8(0x276),this[_0x21fac8(0x1ff)]['asObservable']()),_(this,_0x21fac8(0x3e6),new I['BehaviorSubject']([])),_(this,_0x21fac8(0x2c3),this['_roomMembers$'][_0x21fac8(0x2e8)](I[_0x21fac8(0x209)](St))),_(this,'_updateLocalCursor',a[_0x21fac8(0x20c)](_0x449ef3=>{const _0x3e9809=_0x21fac8,_0xc7e416={'eventID':g[_0x3e9809(0x393)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x3e9809(0x1b5)],'memberID':this[_0x3e9809(0x25c)][_0x3e9809(0x1b9)](),'selection':Fe(_0x449ef3)}};this['_session'][_0x3e9809(0x270)](_0xc7e416,this['unitID']);},dt)),(this['unitID']=_0xc5af97,this['_session']=_0x459fa4,this[_0x21fac8(0x35e)]=_0x3e05a5,this[_0x21fac8(0x2a1)]=_0x59a2a0,this['_memberService']=_0xb2d5b4,this[_0x21fac8(0x1cd)]=_0x247db4,this[_0x21fac8(0x26b)]=_0x3e92a3,this[_0x21fac8(0x234)]=_0x505ec3,this[_0x21fac8(0x3fa)]=_0x493642);}get[_0xb7227a(0x38b)](){const _0x3bce02=_0xb7227a;return this[_0x3bce02(0x1ff)]['getValue']();}get[_0xb7227a(0x178)](){const _0x11039a=_0xb7227a;return this['_roomMembers$'][_0x11039a(0x42a)]();}[_0xb7227a(0x308)](){const _0x457527=_0xb7227a;super[_0x457527(0x308)](),this[_0x457527(0x1ff)]['next'](new Map()),this[_0x457527(0x1ff)]['complete'](),this[_0x457527(0x3e6)]['next']([]),this[_0x457527(0x3e6)][_0x457527(0x3d7)]();}[_0xb7227a(0x34e)](){const _0xc76664=_0xb7227a;this[_0xc76664(0x304)]||(this[_0xc76664(0x304)]=!0x0,this['_session'][_0xc76664(0x259)][_0xc76664(0x2e8)](I[_0xc76664(0x413)](this[_0xc76664(0x1db)]))[_0xc76664(0x42d)](_0x195ee6=>{const _0x29f69c=_0xc76664;_0x195ee6===u[_0x29f69c(0x2a8)][_0x29f69c(0x2b2)]?this[_0x29f69c(0x313)]():this[_0x29f69c(0x34a)]();}),this[_0xc76664(0x25c)][_0xc76664(0x3f4)]['pipe'](I[_0xc76664(0x413)](this['dispose$']))['subscribe'](_0x271b0a=>{const _0x54469c=_0xc76664,_0x39d385=_0x271b0a[_0x54469c(0x1a2)];_0x39d385===g[_0x54469c(0x393)][_0x54469c(0x402)]&&this[_0x54469c(0x2b5)](_0x271b0a),_0x39d385===g[_0x54469c(0x393)][_0x54469c(0x2ed)]&&this[_0x54469c(0x1fb)](_0x271b0a);}),this[_0xc76664(0x3c6)](this['_commandService']['onCommandExecuted'](_0x390e87=>{const _0xaba660=_0xc76664,_0x5821ff=_0x390e87['params'];_0x5821ff!=null&&this['_online']&&_0x390e87['id']===V[_0xaba660(0x2a3)]['id']&&_0x5821ff['unitId']===this[_0xaba660(0x1b5)]&&_0x5821ff[_0xaba660(0x333)]===!0x1&&_0x5821ff[_0xaba660(0x2ff)][_0xaba660(0x1fd)]>0x0&&this[_0xaba660(0x1a3)](_0x5821ff['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0xc76664(0x2e8)](I[_0xc76664(0x413)](this['dispose$']))['subscribe'](_0x2c9618=>{const _0x191223=_0xc76664;if((_0x2c9618==null?void 0x0:_0x2c9618['unitID'])!==this['unitID'])return;const _0x544c82={'eventID':g[_0x191223(0x393)][_0x191223(0x402)],'data':_0x2c9618};this['_onCursorUpdate'](_0x544c82);}),this[_0xc76664(0x3c6)](this[_0xc76664(0x3fa)]['onCommandExecuted'](_0x1487c9=>{const _0x3e2e9f=_0xc76664;if(_0x1487c9[_0x3e2e9f(0x315)]==null)return;const _0x5cbd1d=_0x1487c9[_0x3e2e9f(0x315)];if(_0x1487c9['id']!==V[_0x3e2e9f(0x27a)]['id']||_0x5cbd1d[_0x3e2e9f(0x3a7)]!==this[_0x3e2e9f(0x1b5)])return;const _0x3cf005={'id':_0x3e2e9f(0x1fe),'params':_0x5cbd1d},_0x1f825a=this[_0x3e2e9f(0x38b)];for(const [_0x4c9fb3,_0x14b178]of _0x1f825a){const _0x5896c7={'id':_0x3e2e9f(0x1fe),'params':{'unitId':this[_0x3e2e9f(0x1b5)],'actions':null,'textRanges':_0x14b178[_0x3e2e9f(0x2ff)]}},_0x2e580e=this[_0x3e2e9f(0x26b)][_0x3e2e9f(0x3d2)](_0x3cf005,_0x5896c7,!0x1);if(g[_0x3e2e9f(0x1f8)](_0x2e580e))throw _0x2e580e['error'];_0x1f825a[_0x3e2e9f(0x19f)](_0x4c9fb3,{..._0x14b178,'ranges':_0x2e580e['m2Prime'][_0x3e2e9f(0x315)][_0x3e2e9f(0x3f2)]});}queueMicrotask(()=>{const _0x1e310a=_0x3e2e9f;this[_0x1e310a(0x1ff)][_0x1e310a(0x16e)](_0x1f825a);});})));}['_onCursorUpdate'](_0x274e5c){const _0x1f6049=_0xb7227a;var _0x3a0fe1,_0xa17f60;const {memberID:_0x1523ec,selection:_0x494ee0}=_0x274e5c[_0x1f6049(0x43a)],_0x229157=ht(_0x494ee0),_0x3a6432=(_0xa17f60=(_0x3a0fe1=this[_0x1f6049(0x403)][_0x1f6049(0x3b0)](this[_0x1f6049(0x1b5)],_0x1523ec))==null?void 0x0:_0x3a0fe1[_0x1f6049(0x2cd)])!=null?_0xa17f60:'Unknown\x20user',_0x4df0d4={'color':this[_0x1f6049(0x2a1)]['assignAColorForMemberID'](_0x1523ec),'name':_0x3a6432,'ranges':_0x229157},_0x522b63=this[_0x1f6049(0x38b)];_0x522b63[_0x1f6049(0x19f)](_0x1523ec,_0x4df0d4),this[_0x1f6049(0x1ff)][_0x1f6049(0x16e)](_0x522b63);}['_onCursorDelete'](_0x450a31){const _0x376234=_0xb7227a,{memberID:_0x3ee2e7}=_0x450a31[_0x376234(0x43a)],_0x202afd=this[_0x376234(0x38b)];_0x202afd[_0x376234(0x1e3)](_0x3ee2e7),this[_0x376234(0x1ff)][_0x376234(0x16e)](_0x202afd);}['_toggleOnline'](){const _0x146392=_0xb7227a;var _0x125ea4;if(this[_0x146392(0x41e)]=!0x0,((_0x125ea4=this[_0x146392(0x234)][_0x146392(0x322)]())==null?void 0x0:_0x125ea4[_0x146392(0x1ce)]())!==this[_0x146392(0x1b5)])return;const _0x5b975a=this[_0x146392(0x35e)][_0x146392(0x279)](V[_0x146392(0x260)])[_0x146392(0x2fb)]();Array[_0x146392(0x241)](_0x5b975a)&&_0x5b975a['length']>0x0&&this[_0x146392(0x1a3)](_0x5b975a);}[_0xb7227a(0x34a)](){this['_online']=!0x1;}};ve=It([U(0x2,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),U(0x3,a[_0xb7227a(0x2f4)](Re)),U(0x4,a[_0xb7227a(0x2f4)](u[_0xb7227a(0x32d)])),U(0x5,a[_0xb7227a(0x2f4)](be)),U(0x6,g['ITransformService']),U(0x7,a[_0xb7227a(0x187)]),U(0x8,a[_0xb7227a(0x264)])],ve);var ft=Object[_0xb7227a(0x1ca)],mt=(_0x3521f7,_0x97432d,_0x223b9c,_0x2b45f9)=>{const _0xd15214=_0xb7227a;for(var _0x1c0220=_0x2b45f9>0x1?void 0x0:_0x2b45f9?ft(_0x97432d,_0x223b9c):_0x97432d,_0x513b57=_0x3521f7[_0xd15214(0x1fd)]-0x1,_0x45d719;_0x513b57>=0x0;_0x513b57--)(_0x45d719=_0x3521f7[_0x513b57])&&(_0x1c0220=_0x45d719(_0x1c0220)||_0x1c0220);return _0x1c0220;},w=(_0x1c597b,_0x39a156)=>(_0x19e915,_0x34b643)=>_0x39a156(_0x19e915,_0x34b643,_0x1c597b);const vt=0x12c,gt=0x64,Et=()=>{let _0x5bf231=[],_0x2215af=!0x1;return _0x270ea6=>{const _0x54ce9a=_0x4227;_0x5bf231[_0x54ce9a(0x169)](_0x270ea6),_0x2215af||(_0x2215af=!0x0,setTimeout(()=>{const _0x5bdcdf=_0x54ce9a;_0x5bf231[_0x5bdcdf(0x339)](_0x2b26ee=>_0x2b26ee()),_0x5bf231=[],_0x2215af=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x40ab80,_0x2f145b,_0x23abe2,_0x26a385,_0x5f5741,_0x25e5ab,_0x565f0e,_0x125dd4){const _0x58c817=_0xb7227a;super(),_(this,_0x58c817(0x41e),!0x1),_(this,_0x58c817(0x304),!0x1),_(this,'_cursorInfo$',new I[(_0x58c817(0x31a))](new Map())),_(this,_0x58c817(0x276),this[_0x58c817(0x1ff)]['asObservable']()),_(this,_0x58c817(0x3e6),new I[(_0x58c817(0x31a))]([])),_(this,'roomMembers$',this[_0x58c817(0x3e6)][_0x58c817(0x2e8)](I['debounceTime'](vt))),_(this,_0x58c817(0x1a3),a[_0x58c817(0x20c)]((_0x916556,_0x3a123a)=>{const _0x59ad76=_0x58c817,_0x45770c={'eventID':g[_0x59ad76(0x393)][_0x59ad76(0x402)],'data':{'unitID':this[_0x59ad76(0x1b5)],'memberID':this[_0x59ad76(0x25c)][_0x59ad76(0x1b9)](),'selection':B['serializeRangeWithSheet'](_0x916556,_0x3a123a[_0x59ad76(0x25a)])}};this[_0x59ad76(0x25c)][_0x59ad76(0x270)](_0x45770c,this[_0x59ad76(0x1b5)]);},gt)),(this[_0x58c817(0x1b5)]=_0x40ab80,this[_0x58c817(0x25c)]=_0x2f145b,this[_0x58c817(0x35e)]=_0x23abe2,this[_0x58c817(0x2a1)]=_0x26a385,this['_memberService']=_0x5f5741,this['_univerInstanceService']=_0x25e5ab,this[_0x58c817(0x3fa)]=_0x565f0e,this[_0x58c817(0x19e)]=_0x125dd4);}get['cursorInfo'](){const _0x4cca03=_0xb7227a;return this[_0x4cca03(0x1ff)][_0x4cca03(0x42a)]();}get['roomMembers'](){const _0x5ec6ad=_0xb7227a;return this[_0x5ec6ad(0x3e6)]['getValue']();}[_0xb7227a(0x308)](){const _0x13dfd9=_0xb7227a;super[_0x13dfd9(0x308)](),this[_0x13dfd9(0x1ff)][_0x13dfd9(0x16e)](new Map()),this[_0x13dfd9(0x1ff)][_0x13dfd9(0x3d7)](),this[_0x13dfd9(0x3e6)][_0x13dfd9(0x16e)]([]),this[_0x13dfd9(0x3e6)][_0x13dfd9(0x3d7)]();}[_0xb7227a(0x34e)](){const _0x5d9b55=_0xb7227a;this[_0x5d9b55(0x304)]||(this[_0x5d9b55(0x304)]=!0x0,this[_0x5d9b55(0x25c)]['sessionStatus$']['pipe'](I[_0x5d9b55(0x413)](this[_0x5d9b55(0x1db)]))[_0x5d9b55(0x42d)](_0x3369d2=>{const _0x3c9fd1=_0x5d9b55;_0x3369d2===u['SessionStatus'][_0x3c9fd1(0x2b2)]?this[_0x3c9fd1(0x313)]():this['_toggleOffline']();}),this[_0x5d9b55(0x25c)][_0x5d9b55(0x3f4)][_0x5d9b55(0x2e8)](I[_0x5d9b55(0x413)](this[_0x5d9b55(0x1db)]))[_0x5d9b55(0x42d)](_0x16e085=>{const _0x5752f4=_0x5d9b55,_0x49de42=_0x16e085[_0x5752f4(0x1a2)];_0x49de42===g[_0x5752f4(0x393)][_0x5752f4(0x402)]&&this['_onCursorUpdate'](_0x16e085),_0x49de42===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x5752f4(0x1fb)](_0x16e085);}),this['_onRefRangeChange'](),this[_0x5d9b55(0x3c6)](this['_commandService'][_0x5d9b55(0x214)](_0x15a65b=>{const _0x592432=_0x5d9b55;if(this[_0x592432(0x41e)]&&_0x15a65b['id']===v[_0x592432(0x171)]['id']&&_0x15a65b[_0x592432(0x315)][_0x592432(0x3a7)]===this[_0x592432(0x1b5)]){const _0x372901=_0x15a65b['params'];this[_0x592432(0x1a3)](_0x372901['subUnitId'],_0x372901[_0x592432(0x3ae)][0x0]);}})));}[_0xb7227a(0x2b5)](_0x3980ee){const _0x48412f=_0xb7227a;var _0x3080ea,_0x4eb494;const {memberID:_0x2b8dfe,selection:_0x157b70}=_0x3980ee[_0x48412f(0x43a)],{sheetName:_0x4d9a29,range:_0x53b46b}=B[_0x48412f(0x240)](_0x157b70),_0x2d2e20={'name':(_0x4eb494=(_0x3080ea=this[_0x48412f(0x403)]['getMember'](this['unitID'],_0x2b8dfe))==null?void 0x0:_0x3080ea['name'])!=null?_0x4eb494:_0x48412f(0x3d6),'range':this[_0x48412f(0x15e)](_0x4d9a29,_0x53b46b),'sheetID':_0x4d9a29,'color':this[_0x48412f(0x2a1)]['assignAColorForMemberID'](_0x2b8dfe),'selection':_0x157b70},_0x33d1a8=this[_0x48412f(0x38b)];_0x33d1a8[_0x48412f(0x19f)](_0x2b8dfe,_0x2d2e20),this[_0x48412f(0x1ff)][_0x48412f(0x16e)](_0x33d1a8);}[_0xb7227a(0x1fb)](_0x3bdc97){const _0x58ba9e=_0xb7227a,{memberID:_0x11dbe9}=_0x3bdc97[_0x58ba9e(0x43a)],_0x448f23=this[_0x58ba9e(0x38b)];_0x448f23[_0x58ba9e(0x1e3)](_0x11dbe9),this[_0x58ba9e(0x1ff)][_0x58ba9e(0x16e)](_0x448f23);}[_0xb7227a(0x15e)](_0x3c87ff,_0x417d83){const _0x38459c=_0xb7227a;var _0x57d8a8,_0x18cdbd;const _0x2c1255=(_0x18cdbd=(_0x57d8a8=this[_0x38459c(0x234)][_0x38459c(0x2e6)](this[_0x38459c(0x1b5)]))==null?void 0x0:_0x57d8a8[_0x38459c(0x2e1)](_0x3c87ff))==null?void 0x0:_0x18cdbd[_0x38459c(0x35b)]();return(_0x2c1255==null?void 0x0:_0x2c1255[_0x38459c(0x267)](_0x427021=>a[_0x38459c(0x2a9)]['contains'](_0x427021,_0x417d83)))||_0x417d83;}[_0xb7227a(0x431)](){const _0x9a245e=_0xb7227a,_0x2a051d=new a[(_0x9a245e(0x16b))](),_0x44662b=Et(),_0x4b6884=()=>{const _0x527d6b=_0x9a245e;_0x2a051d[_0x527d6b(0x308)]();const _0x1f51a4=(_0x431c46,_0x5d6e3e,_0x454269,_0x38a590)=>{const _0x5422ab=_0x527d6b;let _0x2844a8=[];switch(_0x431c46['id']){case v[_0x5422ab(0x42c)][_0x5422ab(0x162)]:{_0x2844a8=v[_0x5422ab(0x1b6)](_0x431c46,_0x38a590);break;}case v['EffectRefRangId'][_0x5422ab(0x21e)]:{_0x2844a8=v[_0x5422ab(0x28c)](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)]['InsertColCommandId']:{_0x2844a8=v[_0x5422ab(0x244)](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)][_0x5422ab(0x2a7)]:{_0x2844a8=v[_0x5422ab(0x32b)](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)][_0x5422ab(0x2f1)]:{_0x2844a8=v[_0x5422ab(0x358)](_0x431c46,_0x38a590);break;}case v['EffectRefRangId'][_0x5422ab(0x3cc)]:{_0x2844a8=v['handleInsertRow'](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)]['MoveRangeCommandId']:{_0x2844a8=v['handleMoveRange'](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)][_0x5422ab(0x233)]:{_0x2844a8=v['handleIRemoveCol'](_0x431c46,_0x38a590);break;}case v[_0x5422ab(0x42c)][_0x5422ab(0x400)]:{_0x2844a8=v[_0x5422ab(0x3f7)](_0x431c46,_0x38a590);break;}}const _0x4c2f32=v[_0x5422ab(0x28d)](_0x2844a8,_0x38a590),_0x853fc6=this[_0x5422ab(0x38b)][_0x5422ab(0x279)](_0x5d6e3e);if(_0x853fc6&&_0x4c2f32){const _0x10f28b={..._0x853fc6,'range':_0x4c2f32};this[_0x5422ab(0x38b)][_0x5422ab(0x19f)](_0x5d6e3e,_0x10f28b),_0x44662b(()=>{const _0x552389=_0x5422ab,_0x261ba8=this[_0x552389(0x19e)][_0x552389(0x1d3)](_0x4c2f32,_0x1c0914=>(_0x261ba8[_0x552389(0x308)](),_0x1f51a4(_0x1c0914,_0x5d6e3e,_0x454269,_0x4c2f32)));_0x2a051d[_0x552389(0x1ba)](_0x261ba8);});}return{'redos':[],'undos':[]};};this[_0x527d6b(0x38b)][_0x527d6b(0x339)]((_0x5e3e97,_0x59967b)=>{const _0x89db92=_0x527d6b,{range:_0x1960c1,sheetID:_0x1c3425}=_0x5e3e97,_0x2fbbfe=this[_0x89db92(0x19e)][_0x89db92(0x1d3)](_0x1960c1,_0xde2306=>(_0x2fbbfe[_0x89db92(0x308)](),_0x1f51a4(_0xde2306,_0x59967b,_0x1c3425,_0x1960c1)));_0x2a051d['add'](_0x2fbbfe);});};this[_0x9a245e(0x3c6)](a[_0x9a245e(0x324)](this['_cursorInfo$']['subscribe'](()=>{_0x4b6884();})));}[_0xb7227a(0x313)](){const _0x22f482=_0xb7227a;var _0x35b647,_0x3fc960;if(this[_0x22f482(0x41e)]=!0x0,((_0x35b647=this[_0x22f482(0x234)][_0x22f482(0x322)]())==null?void 0x0:_0x35b647[_0x22f482(0x1ce)]())!==this['unitID'])return;const _0x3e0521=(_0x3fc960=this[_0x22f482(0x35e)][_0x22f482(0x279)](v[_0x22f482(0x291)])[_0x22f482(0x252)]())==null?void 0x0:_0x3fc960[0x0],_0x5b7692=this[_0x22f482(0x234)][_0x22f482(0x1de)](a[_0x22f482(0x1f6)][_0x22f482(0x42e)])['getActiveSheet']();_0x3e0521&&_0x5b7692&&this[_0x22f482(0x1a3)](_0x5b7692[_0x22f482(0x3d0)](),_0x3e0521);}[_0xb7227a(0x34a)](){const _0x36af58=_0xb7227a;this[_0x36af58(0x41e)]=!0x1;}};ge=mt([w(0x2,a[_0xb7227a(0x2f4)](a['Injector'])),w(0x3,a[_0xb7227a(0x2f4)](Re)),w(0x4,a['Inject'](u[_0xb7227a(0x32d)])),w(0x5,a[_0xb7227a(0x187)]),w(0x6,a[_0xb7227a(0x264)]),w(0x7,a[_0xb7227a(0x2f4)](v['RefRangeService']))],ge);var Ct=Object[_0xb7227a(0x1ca)],Tt=(_0x4fd565,_0x198581,_0x190b96,_0x10b4d1)=>{const _0x24227e=_0xb7227a;for(var _0x204352=_0x10b4d1>0x1?void 0x0:_0x10b4d1?Ct(_0x198581,_0x190b96):_0x198581,_0x58a789=_0x4fd565[_0x24227e(0x1fd)]-0x1,_0x5655b2;_0x58a789>=0x0;_0x58a789--)(_0x5655b2=_0x4fd565[_0x58a789])&&(_0x204352=_0x5655b2(_0x204352)||_0x204352);return _0x204352;},ce=(_0x209084,_0x5a5784)=>(_0x246a4e,_0x2c0dde)=>_0x5a5784(_0x246a4e,_0x2c0dde,_0x209084);let F=class extends a['RxDisposable']{constructor(_0x33f38b,_0x16398e,_0xab0bb0){const _0x1269ca=_0xb7227a;super(),_(this,_0x1269ca(0x2bb),new Map()),_(this,_0x1269ca(0x389),new I[(_0x1269ca(0x437))]()),(this[_0x1269ca(0x234)]=_0x33f38b,this[_0x1269ca(0x35e)]=_0x16398e,this[_0x1269ca(0x23c)]=_0xab0bb0,this[_0x1269ca(0x304)]());}[_0xb7227a(0x308)](){const _0x54eaea=_0xb7227a;super['dispose'](),this[_0x54eaea(0x389)][_0x54eaea(0x3d7)](),this[_0x54eaea(0x2bb)][_0x54eaea(0x339)](_0x156adf=>_0x156adf[_0x54eaea(0x308)]());}[_0xb7227a(0x1f3)](_0x48d453){const _0x111103=_0xb7227a;return this[_0x111103(0x2bb)]['has'](_0x48d453)?this[_0x111103(0x2bb)][_0x111103(0x279)](_0x48d453)[_0x111103(0x276)]:this[_0x111103(0x389)]['pipe'](I[_0x111103(0x18a)](_0xff866b=>_0xff866b['unitID']===_0x48d453),I[_0x111103(0x38d)](_0x148526=>_0x148526['cursorInfo$']));}[_0xb7227a(0x304)](){const _0x5806a4=_0xb7227a;this['_univerInstanceService'][_0x5806a4(0x3f1)](a[_0x5806a4(0x1f6)][_0x5806a4(0x42e)])[_0x5806a4(0x2e8)](I[_0x5806a4(0x413)](this[_0x5806a4(0x1db)]))[_0x5806a4(0x42d)](async _0xb0aad0=>{const _0x1e2b1c=_0x5806a4,_0x165d71=_0xb0aad0['getUnitId'](),_0x58f60e=await this[_0x1e2b1c(0x351)](_0x165d71);this['_entityInit$'][_0x1e2b1c(0x16e)](_0x58f60e),this[_0x1e2b1c(0x2bb)][_0x1e2b1c(0x19f)](_0x165d71,_0x58f60e);}),this[_0x5806a4(0x234)]['getTypeOfUnitAdded$'](a[_0x5806a4(0x1f6)][_0x5806a4(0x370)])[_0x5806a4(0x2e8)](I[_0x5806a4(0x413)](this[_0x5806a4(0x1db)]))[_0x5806a4(0x2e8)](I[_0x5806a4(0x18a)](_0x22f88d=>!_0x22f88d['getUnitId']()[_0x5806a4(0x386)]('__')))[_0x5806a4(0x42d)](async _0x3ae810=>{const _0x44e65d=_0x5806a4,_0x2e9a2b=_0x3ae810['getUnitId'](),_0x284e5d=await this[_0x44e65d(0x290)](_0x2e9a2b);this[_0x44e65d(0x389)]['next'](_0x284e5d),this[_0x44e65d(0x2bb)][_0x44e65d(0x19f)](_0x2e9a2b,_0x284e5d);}),I[_0x5806a4(0x2f8)](this[_0x5806a4(0x234)][_0x5806a4(0x357)](a[_0x5806a4(0x1f6)][_0x5806a4(0x370)]),this[_0x5806a4(0x234)][_0x5806a4(0x357)](a[_0x5806a4(0x1f6)][_0x5806a4(0x42e)]))[_0x5806a4(0x2e8)](I[_0x5806a4(0x413)](this[_0x5806a4(0x1db)]))[_0x5806a4(0x42d)](_0x21efd4=>{const _0x49ca16=_0x5806a4,_0x8ada1b=_0x21efd4['getUnitId'](),_0x45f59e=this[_0x49ca16(0x2bb)][_0x49ca16(0x279)](_0x8ada1b);_0x45f59e&&(_0x45f59e['dispose'](),this[_0x49ca16(0x2bb)][_0x49ca16(0x1e3)](_0x8ada1b));});}async[_0xb7227a(0x351)](_0x53d45b){const _0x558b6c=_0xb7227a,_0x48a2de=await this[_0x558b6c(0x23c)][_0x558b6c(0x362)](_0x53d45b),_0x1e501e=this[_0x558b6c(0x35e)][_0x558b6c(0x292)](ge,_0x53d45b,_0x48a2de);return _0x1e501e[_0x558b6c(0x34e)](),_0x1e501e;}async['_startDocCollabCursor'](_0x26d29c){const _0x96591a=_0xb7227a,_0x15dac6=await this[_0x96591a(0x23c)]['requireSession'](_0x26d29c),_0x5c43bc=this['_injector'][_0x96591a(0x292)](ve,_0x26d29c,_0x15dac6);return _0x5c43bc[_0x96591a(0x34e)](),_0x5c43bc;}};F=Tt([ce(0x0,a[_0xb7227a(0x187)]),ce(0x1,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),ce(0x2,a['Inject'](u[_0xb7227a(0x376)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x336f91,_0x40cc5d){const _0x1cc355=_0xb7227a;let {radius:_0x5c3852,width:_0x7e3b1e,height:_0x342211}=_0x40cc5d;_0x5c3852=_0x5c3852!=null?_0x5c3852:0x0,_0x7e3b1e=_0x7e3b1e!=null?_0x7e3b1e:0x1e,_0x342211=_0x342211!=null?_0x342211:0x1e;let _0x4aa126=0x0,_0x2a9d74=0x0,_0x42397f=0x0;_0x4aa126=_0x2a9d74=_0x42397f=Math[_0x1cc355(0x193)](_0x5c3852,_0x7e3b1e/0x2,_0x342211/0x2),_0x336f91['beginPath'](),_0x336f91[_0x1cc355(0x3b2)](_0x4aa126,0x0),_0x336f91['lineTo'](_0x7e3b1e-_0x2a9d74,0x0),_0x336f91[_0x1cc355(0x38e)](_0x7e3b1e-_0x2a9d74,_0x2a9d74,_0x2a9d74,Math['PI']*0x3/0x2,0x0,!0x1),_0x336f91[_0x1cc355(0x3ad)](_0x7e3b1e,_0x342211-_0x42397f),_0x336f91['arc'](_0x7e3b1e-_0x42397f,_0x342211-_0x42397f,_0x42397f,0x0,Math['PI']/0x2,!0x1),_0x336f91[_0x1cc355(0x3ad)](0x0,_0x342211),_0x336f91[_0x1cc355(0x3ad)](0x0,_0x4aa126),_0x336f91['arc'](_0x4aa126,_0x4aa126,_0x4aa126,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x336f91[_0x1cc355(0x301)](),_0x40cc5d[_0x1cc355(0x2e3)]&&(_0x336f91[_0x1cc355(0x382)](),_0x336f91['fillStyle']=_0x40cc5d[_0x1cc355(0x2e3)],_0x40cc5d[_0x1cc355(0x40b)]===_0x1cc355(0x3bd)?_0x336f91['fill'](_0x1cc355(0x3bd)):_0x336f91['fill'](),_0x336f91[_0x1cc355(0x29b)]());}class re extends C[_0xb7227a(0x2c7)]{constructor(_0x2a07e3,_0x468e21){const _0x274f2b=_0xb7227a;super(_0x2a07e3,_0x468e21),_(this,_0x274f2b(0x20d)),_(this,_0x274f2b(0x2ac)),(this[_0x274f2b(0x20d)]=_0x468e21==null?void 0x0:_0x468e21[_0x274f2b(0x20d)],this[_0x274f2b(0x2ac)]=_0x468e21==null?void 0x0:_0x468e21[_0x274f2b(0x2ac)]);}static[_0xb7227a(0x2d2)](_0x90e29d,_0x29ac5d){const _0x330730=_0xb7227a,{text:_0x133ea1,color:_0x3ace4a}=_0x29ac5d;_0x90e29d[_0x330730(0x382)](),_0x90e29d[_0x330730(0x2d7)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xfbc3f2=_0x90e29d['measureText'](_0x133ea1)[_0x330730(0x27d)],_0x491d50=Math[_0x330730(0x193)](_0xfbc3f2+0x2*le,Ue);Ot(_0x90e29d,{'height':X,'radius':0x4,'width':_0x491d50,'fill':_0x3ace4a}),_0x90e29d[_0x330730(0x409)]=_0x330730(0x281);const _0x3c8f3f=le,_0x5600f6=X-pt,_0x5f1e49=Ue-0x2*le;if(_0xfbc3f2>_0x5f1e49){let _0x3d3e21='',_0x1a2b62=0x0;for(const _0x2f832b of _0x133ea1){const _0xae0f5=_0x90e29d['measureText'](_0x2f832b)[_0x330730(0x27d)];if(_0x1a2b62+_0xae0f5<=_0x5f1e49-_0x90e29d['measureText'](_0x330730(0x1c3))[_0x330730(0x27d)])_0x3d3e21+=_0x2f832b,_0x1a2b62+=_0xae0f5;else{_0x3d3e21+=_0x330730(0x1c3);break;}}_0x90e29d[_0x330730(0x1c9)](_0x3d3e21,_0x3c8f3f,_0x5600f6);}else _0x90e29d[_0x330730(0x1c9)](_0x133ea1,_0x3c8f3f,_0x5600f6);_0x90e29d[_0x330730(0x29b)]();}[_0xb7227a(0x2d3)](_0x1e05d8){const _0x2d9f47=_0xb7227a;re[_0x2d9f47(0x2d2)](_0x1e05d8,this);}}const _e=_0xb7227a(0x355),Rt=_0xb7227a(0x199),bt=_0xb7227a(0x302),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x23a1ae,_0x57e4b7,_0xc818a7,_0x22c2ef){const _0x26f194=_0xb7227a;_(this,_0x26f194(0x410),[]),_(this,'_anchor',null),_(this,_0x26f194(0x263),null),_(this,_0x26f194(0x3e1),null),_(this,_0x26f194(0x417),null),_(this,'_eventUnsubscribe',null),(this[_0x26f194(0x3f6)]=_0x23a1ae,this[_0x26f194(0x384)]=_0x57e4b7,this[_0x26f194(0x2ce)]=_0xc818a7,this[_0x26f194(0x1c5)]=_0x22c2ef,this['_render']());}set[_0xb7227a(0x1e6)](_0x2725a0){const _0x1494aa=_0xb7227a;_0x2725a0?(this[_0x1494aa(0x3e1)]&&this['_anchorDot'][_0x1494aa(0x2c5)](),this[_0x1494aa(0x263)]&&this[_0x1494aa(0x263)]['show']()):(this['_anchorDot']&&this['_anchorDot'][_0x1494aa(0x378)](),this[_0x1494aa(0x263)]&&this['_textBubble'][_0x1494aa(0x2c5)]());}[_0xb7227a(0x308)](){const _0x1934d4=_0xb7227a;for(const _0x4db7f1 of this['_shapes'])_0x4db7f1[_0x1934d4(0x308)]();this[_0x1934d4(0x263)]&&this[_0x1934d4(0x263)][_0x1934d4(0x308)](),this[_0x1934d4(0x3e1)]&&this[_0x1934d4(0x3e1)][_0x1934d4(0x308)](),this[_0x1934d4(0x2b4)]&&this[_0x1934d4(0x2b4)]['dispose'](),this[_0x1934d4(0x1a0)]&&this[_0x1934d4(0x1a0)]();}[_0xb7227a(0x411)](){const _0x258922=_0xb7227a;var _0x353f3e;const {_docSkeleton:_0x4b93c6,_document:_0x87242c}=this,{color:_0x5579e3,name:_0x1fa0b6,ranges:_0x1da96a}=this[_0x258922(0x3f6)],_0x1cb18f=_0x87242c['getOffsetConfig'](),{docsLeft:_0x2749e1,docsTop:_0x3a54ab}=_0x1cb18f,_0x4c6d53=new T[(_0x258922(0x299))](_0x1cb18f,_0x4b93c6);for(const {startOffset:_0x1de2df,endOffset:_0x1da0b2,rangeType:_0x2fdc50,segmentId:_0x42a4d9,segmentPage:_0xcc6a50,collapsed:_0x297b74,isActive:_0xe5fd0f}of _0x1da96a){const _0x48fe82=_0x4b93c6[_0x258922(0x3a1)](_0x1de2df,!0x0,_0x42a4d9,_0xcc6a50);let _0x1d09bf=_0x4b93c6['findNodePositionByCharIndex'](_0x1da0b2,!0x0,_0x42a4d9,_0xcc6a50);if(_0x1d09bf==null&&(_0x1d09bf=_0x4b93c6['findNodePositionByCharIndex'](_0x1da0b2-0x1,!0x1,_0x42a4d9,_0xcc6a50)),_0xe5fd0f){const {contentBoxPointGroup:_0x25f424}=_0x4c6d53[_0x258922(0x1f4)](_0x1d09bf,_0x1d09bf);if(_0x25f424[_0x258922(0x1fd)]===0x0)continue;this[_0x258922(0x285)](_0x5579e3,_0x25f424,_0x2749e1,_0x3a54ab,_0x1fa0b6),this['_eventUnsubscribe']=this[_0x258922(0x43e)]();}if(_0x48fe82&&_0x1d09bf){if(_0x2fdc50===a[_0x258922(0x248)][_0x258922(0x2b0)]){const _0x4ec906=new T[(_0x258922(0x438))](_0x1cb18f,_0x4b93c6),{pointGroup:_0x5e97b2}=(_0x353f3e=_0x4ec906[_0x258922(0x1f4)](_0x48fe82,_0x1d09bf))!=null?_0x353f3e:{};if(_0x5e97b2==null||_0x5e97b2['length']===0x0)continue;this[_0x258922(0x3f8)](_0x5579e3,_0x5e97b2,_0x2749e1,_0x3a54ab);}else{if(!_0x297b74){const {borderBoxPointGroup:_0x421cad}=_0x4c6d53['getRangePointData'](_0x48fe82,_0x1d09bf);if(_0x421cad['length']===0x0)continue;this[_0x258922(0x2ea)](_0x5579e3,_0x421cad,_0x2749e1,_0x3a54ab);}}}}}[_0xb7227a(0x285)](_0xfe7dd0,_0x1b0804,_0x5f13f9,_0x17d3c0,_0x41e6a8){const _0x130ac0=_0xb7227a,_0x4ef326=this[_0x130ac0(0x3b4)](_0x1b0804),{left:_0x30f4c7,top:_0x275e94,height:_0x304cc5}=_0x4ef326,_0x5a494b=this[_0x130ac0(0x26a)](),_0x573c27=Nt/_0x5a494b,_0xd5b863=new C[(_0x130ac0(0x39b))](_e+a[_0x130ac0(0x268)](H),{'left':_0x30f4c7+_0x5f13f9-_0x573c27,'top':_0x275e94+_0x17d3c0,'height':_0x304cc5,'width':Dt,'fill':_0xfe7dd0||C[_0x130ac0(0x1be)](a['COLORS'][_0x130ac0(0x332)],0x0),'strokeWidth':_0x573c27,'stroke':Ut,'evented':!0x0});this[_0x130ac0(0x2b4)]=_0xd5b863,this['_scene'][_0x130ac0(0x421)](_0xd5b863,T[_0x130ac0(0x218)]);const _0x3a0c26=new C['Rect'](_e+a[_0x130ac0(0x268)](H),{'left':_0x30f4c7+_0x5f13f9-_0x573c27,'top':_0x275e94+_0x17d3c0-he/0x2,'height':he,'width':he,'fill':_0xfe7dd0||C['getColor'](a[_0x130ac0(0x18c)][_0x130ac0(0x332)],0x0),'strokeWidth':0x0,'stroke':_0xfe7dd0||C['getColor'](a[_0x130ac0(0x18c)][_0x130ac0(0x332)],0x0),'evented':!0x1});this[_0x130ac0(0x3e1)]=_0x3a0c26,this['_scene'][_0x130ac0(0x421)](_0x3a0c26,T[_0x130ac0(0x218)]);const _0x3372c6=new re(_e+a[_0x130ac0(0x268)](H),{'left':_0x30f4c7+_0x5f13f9-_0x573c27,'top':_0x275e94+_0x17d3c0-X,'text':_0x41e6a8,'color':_0xfe7dd0});this[_0x130ac0(0x263)]=_0x3372c6,this[_0x130ac0(0x384)]['addObject'](_0x3372c6,T[_0x130ac0(0x218)]),this['_hover']=!0x1;}[_0xb7227a(0x43e)](){const _0x23a2ae=_0xb7227a,_0x3dde59=this['_anchor']['onPointerEnter$'][_0x23a2ae(0x21b)](()=>{this['_hover']=!0x0;}),_0x1a3dc4=this[_0x23a2ae(0x2b4)][_0x23a2ae(0x1e0)][_0x23a2ae(0x21b)](()=>{const _0x41c6be=_0x23a2ae;this[_0x41c6be(0x417)]&&clearTimeout(this[_0x41c6be(0x417)]),this[_0x41c6be(0x417)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x176bdb=_0x23a2ae;_0x3dde59[_0x176bdb(0x1c7)](),_0x1a3dc4[_0x176bdb(0x1c7)]();};}[_0xb7227a(0x2ea)](_0x22466f,_0x2726e9,_0x207191,_0x38b4aa){const _0x2370e2=_0xb7227a,_0x14903d=new a[(_0x2370e2(0x158))](_0x22466f)[_0x2370e2(0x345)](0.2)['toRgbString'](),_0x270a09=new C[(_0x2370e2(0x40e))](Rt+a[_0x2370e2(0x268)](H),{'pointsGroup':_0x2726e9,'fill':_0x14903d||C[_0x2370e2(0x1be)](a[_0x2370e2(0x18c)]['black'],0.2),'left':_0x207191,'top':_0x38b4aa,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2370e2(0x410)][_0x2370e2(0x169)](_0x270a09),this[_0x2370e2(0x384)][_0x2370e2(0x421)](_0x270a09,T[_0x2370e2(0x218)]);}[_0xb7227a(0x3f8)](_0x5cddf9,_0x441fd5,_0x1658a4,_0x388fdd){const _0x32de0a=_0xb7227a,_0x302e4e=new a[(_0x32de0a(0x158))](_0x5cddf9)['setAlpha'](0.2)[_0x32de0a(0x2f2)](),_0xeac096=new C[(_0x32de0a(0x40e))](bt+a[_0x32de0a(0x268)](H),{'pointsGroup':_0x441fd5,'fill':_0x302e4e||C['getColor'](a[_0x32de0a(0x18c)][_0x32de0a(0x332)],0.2),'left':_0x1658a4,'top':_0x388fdd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32de0a(0x410)][_0x32de0a(0x169)](_0xeac096),this[_0x32de0a(0x384)][_0x32de0a(0x421)](_0xeac096,T[_0x32de0a(0x218)]);}['_getAnchorBounding'](_0x3d439f){const _0x192864=_0x3d439f[0x0],_0x2c9d03=_0x192864[0x0],_0xdac817=_0x192864[0x2],{x:_0x548d85,y:_0x4340ab}=_0x2c9d03,{x:_0xb03353,y:_0x4c3f12}=_0xdac817;return{'left':_0x548d85,'top':_0x4340ab,'width':_0xb03353-_0x548d85,'height':_0x4c3f12-_0x4340ab};}['_getScale'](){const _0x34886b=_0xb7227a,{scaleX:_0x591564,scaleY:_0x1a2a2d}=this[_0x34886b(0x384)][_0x34886b(0x41c)]();return Math[_0x34886b(0x2f5)](_0x591564,_0x1a2a2d);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x223bd,_0x3cecf2,_0x314a15,_0x4b1518)=>{const _0x45f1fa=_0xb7227a;for(var _0x2e72f6=_0x4b1518>0x1?void 0x0:_0x4b1518?Lt(_0x3cecf2,_0x314a15):_0x3cecf2,_0x2e6518=_0x223bd[_0x45f1fa(0x1fd)]-0x1,_0x2d53b9;_0x2e6518>=0x0;_0x2e6518--)(_0x2d53b9=_0x223bd[_0x2e6518])&&(_0x2e72f6=_0x2d53b9(_0x2e72f6)||_0x2e72f6);return _0x2e72f6;},q=(_0x1965d1,_0x260666)=>(_0x446979,_0x1873b6)=>_0x260666(_0x446979,_0x1873b6,_0x1965d1);let Ee=class extends a[_0xb7227a(0x3b7)]{constructor(_0x42e926,_0x314f27,_0x4b4193,_0x36d563,_0x8feb65){const _0x3a514c=_0xb7227a;super(),_(this,_0x3a514c(0x211),[]),_(this,_0x3a514c(0x2e2),[]),(this[_0x3a514c(0x173)]=_0x42e926,this[_0x3a514c(0x3c4)]=_0x314f27,this[_0x3a514c(0x3c8)]=_0x4b4193,this[_0x3a514c(0x3fa)]=_0x36d563,this['_themeService']=_0x8feb65,this[_0x3a514c(0x304)]());}[_0xb7227a(0x304)](){const _0xc12068=_0xb7227a,_0x263dc3=this['_context'][_0xc12068(0x3a7)],_0x31612f=this[_0xc12068(0x3c4)];this[_0xc12068(0x3c6)](I[_0xc12068(0x1eb)]([this[_0xc12068(0x3c8)]['getCollabCursors$'](_0x263dc3),this[_0xc12068(0x39d)][_0xc12068(0x3a4)]])[_0xc12068(0x2e8)]($['map'](([_0x4767ba,_0x12e47c])=>({'skeleton':_0x31612f[_0xc12068(0x1a4)](),'cursors':[..._0x4767ba[_0xc12068(0x231)]()][_0xc12068(0x434)](_0xf280bc=>({..._0xf280bc,'color':this[_0xc12068(0x39d)][_0xc12068(0x30d)](_0xf280bc['color'])}))})))[_0xc12068(0x42d)](_0x4de944=>{const _0x9d278a=_0xc12068;if(this[_0x9d278a(0x1d8)](),_0x4de944){const {skeleton:_0x44c489,cursors:_0x159c6a}=_0x4de944;this[_0x9d278a(0x24e)](_0x44c489,_0x159c6a);}})),this['_initResize'](),this[_0xc12068(0x307)]();}[_0xb7227a(0x24e)](_0x476af0,_0x24ccd8){const _0x6cce28=_0xb7227a,{scene:_0x140732,mainComponent:_0x152bcb}=this[_0x6cce28(0x173)],_0x4e8c16=_0x24ccd8['map'](_0x2b062f=>new Le(_0x2b062f,_0x140732,_0x476af0,_0x152bcb));this[_0x6cce28(0x211)]=_0x4e8c16,this[_0x6cce28(0x2e2)]=_0x24ccd8;}[_0xb7227a(0x21d)](){const _0x201153=_0xb7227a;this[_0x201153(0x1d8)]();const {scene:_0x2b2119,mainComponent:_0x1f4363}=this[_0x201153(0x173)],_0x5dd0b3=this[_0x201153(0x3c4)]['getSkeleton'](),_0x46fe9b=this[_0x201153(0x2e2)]['map'](_0x306b5a=>new Le(_0x306b5a,_0x2b2119,_0x5dd0b3,_0x1f4363));this[_0x201153(0x211)]=_0x46fe9b;}[_0xb7227a(0x1d8)](){const _0x50a0ea=_0xb7227a;this[_0x50a0ea(0x211)]['forEach'](_0x5b94e7=>_0x5b94e7['dispose']()),this[_0x50a0ea(0x211)]=[];}[_0xb7227a(0x307)](){const _0x90ddea=_0xb7227a,_0x3d6475=[T[_0x90ddea(0x229)]['id']];this[_0x90ddea(0x3c6)](this['_commandService'][_0x90ddea(0x214)](_0x3e6825=>{const _0xf591e7=_0x90ddea;_0x3d6475[_0xf591e7(0x1e8)](_0x3e6825['id'])&&_0x3e6825[_0xf591e7(0x315)]['unitId']===this[_0xf591e7(0x173)][_0xf591e7(0x3a7)]&&this[_0xf591e7(0x21d)]();}));}[_0xb7227a(0x3eb)](){const _0x53b6e3=_0xb7227a;this['disposeWithMe'](a[_0x53b6e3(0x2e9)](this[_0x53b6e3(0x173)][_0x53b6e3(0x1a7)][_0x53b6e3(0x15f)])[_0x53b6e3(0x2e8)]($['filter'](_0x21f5dc=>_0x21f5dc[_0x53b6e3(0x289)]===C[_0x53b6e3(0x29e)][_0x53b6e3(0x17a)]),$[_0x53b6e3(0x22e)](0x10))[_0x53b6e3(0x42d)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0xb7227a(0x2f4)](V[_0xb7227a(0x265)])),q(0x2,a['Inject'](F)),q(0x3,a['ICommandService']),q(0x4,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x342)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0xb7227a(0x2c7)]{constructor(_0x2b8975,_0x4c7003){const _0x35d66c=_0xb7227a;super(_0x2b8975,_0x4c7003),_(this,_0x35d66c(0x18b)),_(this,_0x35d66c(0x396),!0x1),_(this,_0x35d66c(0x30b)),_(this,_0x35d66c(0x2ef),''),_(this,_0x35d66c(0x36a),_0x35d66c(0x2ad)),_(this,'_backgroundColor'),(_0x4c7003&&this[_0x35d66c(0x359)](_0x4c7003),this[_0x35d66c(0x24d)][_0x35d66c(0x21b)](()=>this[_0x35d66c(0x359)]({'hovered':!0x0})),this[_0x35d66c(0x1e0)]['subscribeEvent'](()=>this[_0x35d66c(0x359)]({'hovered':!0x1})));}[_0xb7227a(0x359)](_0x8d7eb2){const _0x2455ac=_0xb7227a;var _0xd1ccf1,_0x5df47d,_0x10ed7d,_0x19d215,_0x34dc9e,_0x2900ff;this[_0x2455ac(0x18b)]=(_0xd1ccf1=_0x8d7eb2[_0x2455ac(0x20d)])!=null?_0xd1ccf1:this[_0x2455ac(0x18b)],this[_0x2455ac(0x396)]=(_0x5df47d=_0x8d7eb2[_0x2455ac(0x395)])!=null?_0x5df47d:this[_0x2455ac(0x396)],this[_0x2455ac(0x30b)]=(_0x10ed7d=_0x8d7eb2[_0x2455ac(0x25a)])!=null?_0x10ed7d:this[_0x2455ac(0x30b)],this[_0x2455ac(0x2ef)]=(_0x19d215=_0x8d7eb2[_0x2455ac(0x2cd)])!=null?_0x19d215:this[_0x2455ac(0x2ef)],this[_0x2455ac(0x36a)]=(_0x34dc9e=_0x8d7eb2[_0x2455ac(0x271)])!=null?_0x34dc9e:this[_0x2455ac(0x36a)],this[_0x2455ac(0x2ae)]=(_0x2900ff=_0x8d7eb2[_0x2455ac(0x27f)])!=null?_0x2900ff:this[_0x2455ac(0x2ae)],this[_0x2455ac(0x254)]({'width':_0x8d7eb2['width'],'height':_0x8d7eb2[_0x2455ac(0x196)]});}['onMouseMove'](_0xc0b2d4){const _0x2bf47f=_0xb7227a,{row:_0x2077ad,column:_0x4a9d30}=_0xc0b2d4;if(_0x2077ad>=this[_0x2bf47f(0x30b)][_0x2bf47f(0x245)]&&_0x2077ad<=this[_0x2bf47f(0x30b)][_0x2bf47f(0x441)]&&_0x4a9d30>=this['_range'][_0x2bf47f(0x25b)]&&_0x4a9d30<=this[_0x2bf47f(0x30b)][_0x2bf47f(0x374)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2bf47f(0x359)]({'hovered':!0x1});}[_0xb7227a(0x24a)](_0x1f70d4){return!0x1;}['_draw'](_0x4b5e51){const _0x9e68d8=_0xb7227a;C['Rect'][_0x9e68d8(0x2d2)](_0x4b5e51,{'width':this[_0x9e68d8(0x27d)],'height':this[_0x9e68d8(0x196)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x9e68d8(0x2ae)]}),this[_0x9e68d8(0x396)]&&(_0x4b5e51[_0x9e68d8(0x382)](),_0x4b5e51[_0x9e68d8(0x33c)](0x1,0x0,0x0,0x1,this[_0x9e68d8(0x27d)],this['_labelPosition']===_0x9e68d8(0x39c)?0x0:-X),re[_0x9e68d8(0x2d2)](_0x4b5e51,{'text':this[_0x9e68d8(0x2ef)],'color':this[_0x9e68d8(0x18b)]}),_0x4b5e51['restore']());}}var wt=Object[_0xb7227a(0x1ca)],yt=(_0x2d7454,_0x213e1b,_0x4bf877,_0x330064)=>{const _0x569ba7=_0xb7227a;for(var _0x1fa222=_0x330064>0x1?void 0x0:_0x330064?wt(_0x213e1b,_0x4bf877):_0x213e1b,_0x1c9559=_0x2d7454[_0x569ba7(0x1fd)]-0x1,_0x4a5002;_0x1c9559>=0x0;_0x1c9559--)(_0x4a5002=_0x2d7454[_0x1c9559])&&(_0x1fa222=_0x4a5002(_0x1fa222)||_0x1fa222);return _0x1fa222;},ue=(_0x491076,_0x4a8a41)=>(_0x2f09e6,_0x447078)=>_0x4a8a41(_0x2f09e6,_0x447078,_0x491076);const $t=0x1389;let Ce=class extends a['RxDisposable']{constructor(_0x376b6c,_0x4a14d5,_0x4d1932,_0x3cff45){const _0x194200=_0xb7227a;super(),_(this,_0x194200(0x2e2),new Set()),_(this,'_lastPointer',null),(this['_context']=_0x376b6c,this['_sheetSkeletonManagerService']=_0x4a14d5,this[_0x194200(0x3c8)]=_0x4d1932,this[_0x194200(0x39d)]=_0x3cff45,this[_0x194200(0x304)]());}[_0xb7227a(0x304)](){const _0x4b3aeb=_0xb7227a;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4b3aeb(0x2e8)]($['takeUntil'](this[_0x4b3aeb(0x1db)]),$[_0x4b3aeb(0x38d)](_0x3beb39=>{const _0x58c6ff=_0x4b3aeb;if(_0x3beb39){const _0x4b0a76=_0x3beb39[_0x58c6ff(0x383)];return I[_0x58c6ff(0x1eb)](this[_0x58c6ff(0x3c8)][_0x58c6ff(0x1f3)](this[_0x58c6ff(0x173)]['unitId']),this[_0x58c6ff(0x39d)]['currentTheme$'])[_0x58c6ff(0x2e8)]($[_0x58c6ff(0x326)](([_0x1e66f5,_0x3d26cd])=>{const _0x5299ec=new Map();return _0x1e66f5['forEach']((_0x503aa9,_0x3436d3)=>{const _0x205365=_0x4227;if(_0x503aa9[_0x205365(0x236)]===_0x4b0a76){const _0x168c02={..._0x503aa9};_0x168c02[_0x205365(0x20d)]=this['_themeService']['getColorFromTheme'](_0x503aa9['color']),_0x5299ec[_0x205365(0x19f)](_0x3436d3,_0x168c02);}}),{'skeleton':_0x3beb39,'cursors':_0x5299ec};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x4b3aeb(0x42d)](({skeleton:_0x7361d,cursors:_0x2e3a9c})=>{const _0x4eff5b=_0x4b3aeb;this[_0x4eff5b(0x1d8)](),_0x7361d&&this[_0x4eff5b(0x24e)](_0x7361d,_0x2e3a9c);}),this['_sheetSkeletonManagerService'][_0x4b3aeb(0x1cf)][_0x4b3aeb(0x42d)](_0x580bb2=>{const _0x2fb2f9=_0x4b3aeb;if(_0x580bb2==null)return;const {skeleton:_0x1ac166}=_0x580bb2,{scene:_0x40175e}=this[_0x2fb2f9(0x173)];_0x40175e[_0x2fb2f9(0x1bd)][_0x2fb2f9(0x21b)](a['debounce'](_0x1ab3f8=>{const _0x546843=_0x2fb2f9;var _0x5ee91e,_0x364ea0;const {offsetX:_0x345d8a,offsetY:_0x58149f}=_0x1ab3f8,{x:_0x59f101,y:_0x583cb7}=_0x40175e['getRelativeToViewportCoord'](C[_0x546843(0x2de)]['FromArray']([_0x345d8a,_0x58149f])),{scaleX:_0x13d613,scaleY:_0x2bef2d}=_0x40175e[_0x546843(0x41c)](),_0xf80f48=_0x40175e[_0x546843(0x2d0)](C['SHEET_VIEWPORT_KEY'][_0x546843(0x2f6)]),_0x16314c=_0x40175e[_0x546843(0x283)](C['Vector2'][_0x546843(0x369)]([_0x59f101,_0x583cb7]),_0xf80f48),_0x43e21e=_0x1ac166['getCellPositionByOffset'](_0x345d8a,_0x58149f,_0x13d613,_0x2bef2d,_0x16314c);((_0x5ee91e=this[_0x546843(0x2ec)])==null?void 0x0:_0x5ee91e[_0x546843(0x3ef)])===_0x43e21e['column']&&((_0x364ea0=this[_0x546843(0x2ec)])==null?void 0x0:_0x364ea0[_0x546843(0x406)])===_0x43e21e[_0x546843(0x406)]||this[_0x546843(0x2e2)][_0x546843(0x339)](_0x456cec=>{const _0x2ce08a=_0x546843;_0x456cec[_0x2ce08a(0x43d)](_0x43e21e);});},0x64));});}[_0xb7227a(0x24e)](_0x56b088,_0x33c87a){const _0x28b8d0=_0xb7227a;var _0x30fd0;const _0x3976da=(_0x30fd0=this[_0x28b8d0(0x3fd)][_0x28b8d0(0x296)]())==null?void 0x0:_0x30fd0['skeleton'];if(!_0x3976da)return;const _0x46026b=this['_getSheetObject']();if(!_0x46026b)return;this[_0x28b8d0(0x2e2)][_0x28b8d0(0x339)](_0x351405=>{const _0x5e601b=_0x28b8d0;_0x351405[_0x5e601b(0x2f7)]();});const {scene:_0x591ff4}=_0x46026b,_0x488753=xt(Array['from'](_0x33c87a['values']()))[_0x28b8d0(0x326)](_0x4067d3=>{const _0x435717=_0x28b8d0,{color:_0x3cc446,range:_0x437c0a,name:_0x325220,selection:_0x2c2fcd,sheetID:_0x69512a}=_0x4067d3,{startColumn:_0x3f4080,startRow:_0x5e0f6f,endColumn:_0x41b260,endRow:_0x1cc2ce}=_0x437c0a,_0x37214c=J['getCoordByCell'](_0x5e0f6f,_0x3f4080,_0x591ff4,_0x3976da),_0x5bce6e=J[_0x435717(0x33a)](_0x1cc2ce,_0x41b260,_0x591ff4,_0x3976da),{columnHeaderHeightAndMarginTop:_0xc33ea0}=_0x3976da,{startX:_0x481c87,startY:_0x4e0f7c}=_0x37214c,{endX:_0x480e42,endY:_0xe1ec99}=_0x5bce6e,_0xde37c5=_0x480e42-_0x481c87,_0x211869=_0xe1ec99-_0x4e0f7c,_0x5a0cc8={'labelPosition':_0x4e0f7c-_0xc33ea0>=X?_0x435717(0x2ad):'bottom','sheetID':_0x69512a,'range':_0x437c0a,'color':_0x3cc446,'name':_0x325220,'selection':_0x2c2fcd,'left':_0x481c87,'top':_0x4e0f7c,'width':_0xde37c5,'height':_0x211869,'evented':!0x1,'zIndex':$t};return new je(_0x325220,_0x5a0cc8);});_0x591ff4[_0x28b8d0(0x43f)](_0x488753,At),this[_0x28b8d0(0x2e2)]=new Set(_0x488753);}[_0xb7227a(0x1d8)](){const _0x19e7c5=_0xb7227a;var _0x417c33;(_0x417c33=this[_0x19e7c5(0x2e2)])==null||_0x417c33['forEach'](_0x23047a=>_0x23047a['dispose']());}['_getSheetObject'](){const _0x52e864=_0xb7227a;return J[_0x52e864(0x3aa)](this[_0x52e864(0x173)][_0x52e864(0x3cf)],this['_context']);}};Ce=yt([ue(0x1,a['Inject'](J[_0xb7227a(0x2e4)])),ue(0x2,a[_0xb7227a(0x2f4)](F)),ue(0x3,a[_0xb7227a(0x2f4)](a['ThemeService']))],Ce);function xt(_0x2ba637){const _0x2e5838=_0xb7227a,_0x465d1b=new Map();return _0x2ba637['forEach'](_0x27005a=>{const _0x563ecb=_0x4227;if(_0x465d1b[_0x563ecb(0x15d)](_0x27005a[_0x563ecb(0x159)])){const _0x2c6089=_0x465d1b[_0x563ecb(0x279)](_0x27005a[_0x563ecb(0x159)]);_0x2c6089[_0x563ecb(0x2cd)]+=',\x20'+_0x27005a['name'];}else _0x465d1b[_0x563ecb(0x19f)](_0x27005a[_0x563ecb(0x159)],_0x27005a);}),Array[_0x2e5838(0x32a)](_0x465d1b[_0x2e5838(0x231)]());}var Bt=Object[_0xb7227a(0x1ca)],Ft=(_0x55aec9,_0x263a99,_0x3c515d,_0x36a6fa)=>{const _0x29ba96=_0xb7227a;for(var _0x24a49c=_0x36a6fa>0x1?void 0x0:_0x36a6fa?Bt(_0x263a99,_0x3c515d):_0x263a99,_0x3af3b9=_0x55aec9[_0x29ba96(0x1fd)]-0x1,_0x25c934;_0x3af3b9>=0x0;_0x3af3b9--)(_0x25c934=_0x55aec9[_0x3af3b9])&&(_0x24a49c=_0x25c934(_0x24a49c)||_0x24a49c);return _0x24a49c;},y=(_0xe7c3bb,_0x5a2132)=>(_0x1abf27,_0x4c523d)=>_0x5a2132(_0x1abf27,_0x4c523d,_0xe7c3bb);let Z=class extends a[_0xb7227a(0x3d3)]{constructor(_0xdcef93,_0x5bff83,_0x847486,_0x5206ec,_0x45b755,_0x5cf27a){const _0x571837=_0xb7227a;super(),this[_0x571837(0x34b)]=_0xdcef93,this['_localCacheService']=_0x5bff83,this[_0x571837(0x356)]=_0x847486,this[_0x571837(0x3c9)]=_0x5206ec,this['_notificationService']=_0x45b755,this[_0x571837(0x3be)]=_0x5cf27a,this[_0x571837(0x182)](),this[_0x571837(0x1c2)]();}['_setupBeforeClosingHandler'](){const _0x386163=_0xb7227a;this[_0x386163(0x3c6)](this[_0x386163(0x34b)][_0x386163(0x320)](()=>{const _0x28fd98=_0x386163;if(this[_0x28fd98(0x26d)][_0x28fd98(0x172)][_0x28fd98(0x3e7)])return this[_0x28fd98(0x3be)]['t'](_0x28fd98(0x311));}));}[_0xb7227a(0x1c2)](){const _0xd0c495=_0xb7227a;this[_0xd0c495(0x3c6)](this[_0xd0c495(0x356)][_0xd0c495(0x3f4)][_0xd0c495(0x42d)](_0x1b6447=>{const _0x3780c6=_0xd0c495;_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x249)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)][_0x3780c6(0x2fc)],'content':this['_localeService']['t'](_0x3780c6(0x321))}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x3fc)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)][_0x3780c6(0x2fc)],'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x2db))}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x185)]&&this['_notificationService']['show']({'title':this['_localeService']['t'](_0x3780c6(0x39e)),'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x3af)),'type':'error','duration':0x0}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x3ce)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)]['Error'],'content':this[_0x3780c6(0x3be)]['t']('collaboration.closeRoom')+'('+_0x1b6447['data']+')'}),_0x1b6447['id']===u['CollaborationUIEventId'][_0x3780c6(0x3d9)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p['MessageType']['Warning'],'content':this[_0x3780c6(0x3be)]['t'](_0x1b6447[_0x3780c6(0x43a)]||'')}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x188)]&&this['_messageService'][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)][_0x3780c6(0x2fc)],'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x1dd))}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x352)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p[_0x3780c6(0x17f)]['Error'],'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x1b8))}),_0x1b6447['id']===u[_0x3780c6(0x15c)][_0x3780c6(0x18e)]&&this[_0x3780c6(0x3c9)][_0x3780c6(0x378)]({'type':p['MessageType'][_0x3780c6(0x1d9)],'content':this[_0x3780c6(0x3be)]['t'](_0x3780c6(0x318))});}));}};Z=Ft([y(0x0,O[_0xb7227a(0x3ac)]),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u[_0xb7227a(0x26e)])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0xb7227a(0x1dc)]))],Z);var jt=Object[_0xb7227a(0x1ca)],kt=(_0x39ef09,_0x5e2679,_0x5ab973,_0x44ef43)=>{const _0x511591=_0xb7227a;for(var _0x3c1bc8=_0x44ef43>0x1?void 0x0:_0x44ef43?jt(_0x5e2679,_0x5ab973):_0x5e2679,_0x152353=_0x39ef09[_0x511591(0x1fd)]-0x1,_0x1f8580;_0x152353>=0x0;_0x152353--)(_0x1f8580=_0x39ef09[_0x152353])&&(_0x3c1bc8=_0x1f8580(_0x3c1bc8)||_0x3c1bc8);return _0x3c1bc8;},z=(_0x1d67c2,_0x5f0054)=>(_0x4fbb3b,_0x3da917)=>_0x5f0054(_0x4fbb3b,_0x3da917,_0x1d67c2);let Q=class extends a['Disposable']{constructor(_0x3bbfc8,_0x3824a9,_0x379886,_0x18fccb){const _0x9f3bf5=_0xb7227a;super(),_(this,'_memberID'),(this['_injector']=_0x3bbfc8,this['_httpService']=_0x3824a9,this[_0x9f3bf5(0x41d)]=_0x379886,this['_collaborationSessionService']=_0x18fccb,this[_0x9f3bf5(0x304)]());}[_0xb7227a(0x304)](){const _0x469ec3=_0xb7227a;this[_0x469ec3(0x17e)](),this[_0x469ec3(0x1a6)](),this[_0x469ec3(0x232)](),this['_initUserListener']();}[_0xb7227a(0x294)](){const _0x30a53d=_0xb7227a;this[_0x30a53d(0x3c6)](this[_0x30a53d(0x230)][_0x30a53d(0x2be)][_0x30a53d(0x42d)](_0x7ba0ad=>{const _0x8343c4=_0x30a53d;this[_0x8343c4(0x2d8)]=_0x7ba0ad==null?void 0x0:_0x7ba0ad['memberID'];}));}[_0xb7227a(0x17e)](){const _0x4454c6=_0xb7227a,_0x4123e9=_0x4453b7=>{const _0xd443f=_0x4227;var _0x5d80b8;this['_uploadLog'](_0xd443f(0x277),'[Window\x20Error]:\x20'+_0x4453b7[_0xd443f(0x1fa)]+_0xd443f(0x323)+_0x4453b7['filename']+':'+_0x4453b7[_0xd443f(0x330)]+':'+_0x4453b7[_0xd443f(0x375)]+'\x0a'+(((_0x5d80b8=_0x4453b7[_0xd443f(0x277)])==null?void 0x0:_0x5d80b8[_0xd443f(0x286)])||''));};window[_0x4454c6(0x20f)](_0x4454c6(0x277),_0x4123e9),this[_0x4454c6(0x3c6)](()=>{const _0x5a545f=_0x4454c6;window['removeEventListener'](_0x5a545f(0x277),_0x4123e9);});}['_initUnhandledRejectionListener'](){const _0x222f8b=_0xb7227a,_0x53d0a5=_0x3a4332=>{const _0x49a328=_0x4227;this['_uploadLog'](_0x49a328(0x277),_0x49a328(0x221)+_0x3a4332[_0x49a328(0x28e)]);};window['addEventListener']('unhandledrejection',_0x53d0a5),this[_0x222f8b(0x3c6)](()=>{const _0x342079=_0x222f8b;window[_0x342079(0x30c)](_0x342079(0x335),_0x53d0a5);});}[_0xb7227a(0x232)](){const _0x57d380=_0xb7227a,_0x9b9704=this['_logService'][_0x57d380(0x277)]['bind'](this['_logService']);this[_0x57d380(0x41d)][_0x57d380(0x277)]=(..._0x276920)=>{const _0xbd4542=_0x57d380,_0x58b872=_0x276920[_0xbd4542(0x326)](_0x1a8564=>_0x1a8564 instanceof Error?_0x1a8564[_0xbd4542(0x1fa)]+'\x0a'+_0x1a8564[_0xbd4542(0x286)]:String(_0x1a8564))['join']('\x20');this['_uploadLog'](_0xbd4542(0x277),_0xbd4542(0x3e0)+_0x58b872),_0x9b9704(..._0x276920);},this[_0x57d380(0x3c6)](()=>{const _0x1b86c9=_0x57d380;this[_0x1b86c9(0x41d)][_0x1b86c9(0x277)]=_0x9b9704;});}[_0xb7227a(0x200)](_0x354527,_0x318988){const _0x5ca504=_0xb7227a;try{const _0x1dd2ef={'userId':this[_0x5ca504(0x2d8)],'logLabel':_0x354527,'content':_0x318988};this[_0x5ca504(0x280)]['post'](_0x5ca504(0x176),{'body':_0x1dd2ef})[_0x5ca504(0x338)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0xb7227a(0x2f4)](a['Injector'])),z(0x1,a[_0xb7227a(0x2f4)](x['HTTPService'])),z(0x2,a[_0xb7227a(0x3c0)]),z(0x3,a[_0xb7227a(0x2f4)](u[_0xb7227a(0x376)]))],Q);const Yt=_0xb7227a(0x266),Me={};var Ht=Object[_0xb7227a(0x1ca)],Wt=(_0x47ba0,_0x13ce57,_0x42536b,_0x47feb8)=>{for(var _0x3a85cd=_0x47feb8>0x1?void 0x0:_0x47feb8?Ht(_0x13ce57,_0x42536b):_0x13ce57,_0x4a77c3=_0x47ba0['length']-0x1,_0x5d3273;_0x4a77c3>=0x0;_0x4a77c3--)(_0x5d3273=_0x47ba0[_0x4a77c3])&&(_0x3a85cd=_0x5d3273(_0x3a85cd)||_0x3a85cd);return _0x3a85cd;},Ae=(_0x228f2b,_0x15ffbc)=>(_0x11d2a1,_0x512afa)=>_0x15ffbc(_0x11d2a1,_0x512afa,_0x228f2b);let ee=class{constructor(_0x38e214,_0x31f906){const _0x2aa266=_0xb7227a;this[_0x2aa266(0x26b)]=_0x38e214,this[_0x2aa266(0x380)]=_0x31f906;}['transformIMECache'](_0x11cc73){const _0xf6d508=_0xb7227a;this[_0xf6d508(0x16f)](_0x11cc73),this[_0xf6d508(0x1a8)](_0x11cc73);}['transformRemoteChangeset'](_0x3b85dc){const _0x4d1054=_0xb7227a,{unitID:_0x55fd8a}=_0x3b85dc,_0x59941c=this[_0x4d1054(0x380)][_0x4d1054(0x25f)](_0x55fd8a)[_0x4d1054(0x3f0)](T[_0x4d1054(0x3e2)]),{redoCache:_0x3a2e4a}=_0x59941c[_0x4d1054(0x166)]();if(_0x3a2e4a[_0x4d1054(0x1fd)]===0x0)return _0x3b85dc;let _0x1c0cab=a['Tools'][_0x4d1054(0x377)](_0x3b85dc[_0x4d1054(0x170)][0x0]);for(let _0x5e2840=0x0;_0x5e2840<_0x3a2e4a[_0x4d1054(0x1fd)];_0x5e2840++){const _0x7a08b1={'id':_0x4d1054(0x1fe),'params':{..._0x3a2e4a[_0x5e2840]}},_0x3f00cb=this[_0x4d1054(0x26b)][_0x4d1054(0x3d2)](_0x1c0cab,_0x7a08b1,!0x1);if(g['isTransformMutationFailure'](_0x3f00cb))throw _0x3f00cb[_0x4d1054(0x277)];_0x1c0cab=_0x3f00cb[_0x4d1054(0x2a5)];}return{...a[_0x4d1054(0x3bc)]['deepClone'](_0x3b85dc),'mutations':[_0x1c0cab]};}[_0xb7227a(0x16f)](_0x26d5c8){const _0x15737b=_0xb7227a,{unitID:_0x2c11b4}=_0x26d5c8,_0x5c7b88=this['_renderManagerService']['getRenderById'](_0x2c11b4)[_0x15737b(0x3f0)](T['DocIMEInputManagerService']),{undoCache:_0x2e919e,redoCache:_0x4009b0}=_0x5c7b88[_0x15737b(0x166)]();if(_0x2e919e[_0x15737b(0x1fd)]===0x0||_0x4009b0[_0x15737b(0x1fd)]===0x0)return;const _0x5f1628=[],_0x5d8278=[];let _0x2b409f=a[_0x15737b(0x3bc)]['deepClone'](_0x26d5c8[_0x15737b(0x170)][0x0]),_0x5809c1=a[_0x15737b(0x3bc)][_0x15737b(0x377)](_0x26d5c8[_0x15737b(0x170)][0x0]);for(let _0x3ad687=_0x2e919e[_0x15737b(0x1fd)]-0x1;_0x3ad687>=0x0;_0x3ad687--){const _0x43a0f0={'id':_0x15737b(0x1fe),'params':{..._0x2e919e[_0x3ad687]}},_0x54c397={'id':_0x15737b(0x1fe),'params':{..._0x4009b0[_0x3ad687]}},_0x2633e1=this[_0x15737b(0x26b)]['transformMutation'](_0x2b409f,_0x43a0f0,!0x1),_0xc3bfe=this[_0x15737b(0x26b)][_0x15737b(0x3d2)](_0x5809c1,_0x54c397,!0x1);if(g[_0x15737b(0x1f8)](_0x2633e1))throw _0x2633e1[_0x15737b(0x277)];if(g[_0x15737b(0x1f8)](_0xc3bfe))throw _0xc3bfe['error'];_0x5f1628[_0x15737b(0x2ab)](_0x2633e1['m2Prime'][_0x15737b(0x315)]),_0x5d8278[_0x15737b(0x2ab)](_0xc3bfe[_0x15737b(0x2e5)][_0x15737b(0x315)]),_0x2b409f=_0x2633e1[_0x15737b(0x2a5)],_0x5809c1=_0xc3bfe[_0x15737b(0x2a5)];}_0x5c7b88['setUndoRedoMutationParamsCache']({'undoCache':_0x5f1628,'redoCache':_0x5d8278});}[_0xb7227a(0x1a8)](_0x51ec9d){const _0x78103b=_0xb7227a,{unitID:_0x3ed113}=_0x51ec9d,_0x4b232c=this[_0x78103b(0x380)][_0x78103b(0x25f)](_0x3ed113)['with'](T[_0x78103b(0x3e2)]),_0x1d8111=_0x4b232c['getActiveRange']();if(_0x1d8111==null)return;const _0x13b0f1=[{'id':_0x78103b(0x1fe),'params':{'unitId':_0x51ec9d[_0x78103b(0x1b5)],'actions':null,'textRanges':[_0x1d8111]}}],_0xd5cc=this[_0x78103b(0x26b)]['transformMutationsWithChangeset'](_0x51ec9d,_0x13b0f1);if(!g[_0x78103b(0x1b0)](_0xd5cc))throw _0xd5cc[_0x78103b(0x277)];const _0x26d17b=_0xd5cc[_0x78103b(0x2e5)][0x0][_0x78103b(0x315)][_0x78103b(0x3f2)];Array[_0x78103b(0x241)](_0x26d17b)&&_0x26d17b[_0x78103b(0x1fd)]&&_0x4b232c[_0x78103b(0x1aa)](_0x26d17b[0x0]);}};ee=Wt([Ae(0x0,g[_0xb7227a(0x423)]),Ae(0x1,C[_0xb7227a(0x226)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x825e31,_0x4a1d83,_0x901a7a,_0x3c39a3)=>{const _0x46be85=_0xb7227a;for(var _0x1cac64=_0x3c39a3>0x1?void 0x0:_0x3c39a3?Vt(_0x4a1d83,_0x901a7a):_0x4a1d83,_0x5af771=_0x825e31[_0x46be85(0x1fd)]-0x1,_0x170143;_0x5af771>=0x0;_0x5af771--)(_0x170143=_0x825e31[_0x5af771])&&(_0x1cac64=_0x170143(_0x1cac64)||_0x1cac64);return _0x1cac64;},Ie=(_0x22577d,_0x472eb0)=>(_0x396371,_0xf0bbc7)=>_0x472eb0(_0x396371,_0xf0bbc7,_0x22577d);let te=class{constructor(_0x286eca,_0x1bfc0d,_0x15b752){const _0x2f5dc1=_0xb7227a;this[_0x2f5dc1(0x35e)]=_0x286eca,this[_0x2f5dc1(0x26b)]=_0x1bfc0d,this[_0x2f5dc1(0x3bb)]=_0x15b752;}['transformStateCache'](_0x2e437f){const _0x1799a5=_0xb7227a;this[_0x1799a5(0x353)](_0x2e437f);}['transformRemoteChangeset'](_0x22f90a){const _0x47f848=_0xb7227a,{unitID:_0x4a2223}=_0x22f90a,{collaboration:_0x96766a}=this[_0x47f848(0x3bb)][_0x47f848(0x3ee)](_0x4a2223);if(_0x96766a[_0x47f848(0x1fd)]===0x0)return _0x22f90a;let _0x5905bc=a[_0x47f848(0x3bc)][_0x47f848(0x377)](_0x22f90a['mutations'][0x0]);for(let _0x39a7b9=0x0;_0x39a7b9<_0x96766a[_0x47f848(0x1fd)];_0x39a7b9++){const _0x478dbc={'id':_0x47f848(0x1fe),'params':{'unitId':_0x96766a[_0x39a7b9][_0x47f848(0x3a7)],..._0x96766a[_0x39a7b9][_0x47f848(0x37f)]}},_0x133ff1=this[_0x47f848(0x26b)][_0x47f848(0x3d2)](_0x5905bc,_0x478dbc,!0x1);if(g['isTransformMutationFailure'](_0x133ff1))throw _0x133ff1[_0x47f848(0x277)];_0x5905bc=_0x133ff1['m1Prime'];}return{...a[_0x47f848(0x3bc)][_0x47f848(0x377)](_0x22f90a),'mutations':[_0x5905bc]};}[_0xb7227a(0x353)](_0xfd326){const _0x2ce99f=_0xb7227a,{unitID:_0x14bed0}=_0xfd326,{history:_0x6c27cf,collaboration:_0x51fd4f}=this['_docStateChangeManagerService']['getStateCache'](_0x14bed0);if(_0x6c27cf[_0x2ce99f(0x1fd)]===0x0&&_0x51fd4f[_0x2ce99f(0x1fd)]===0x0)return;const _0x1f4f47=[],_0x163dbd=[];let _0x3d4279=a[_0x2ce99f(0x3bc)][_0x2ce99f(0x377)](_0xfd326['mutations'][0x0]),_0x181e6b=a[_0x2ce99f(0x3bc)][_0x2ce99f(0x377)](_0xfd326[_0x2ce99f(0x170)][0x0]);for(let _0x2c168a=_0x6c27cf['length']-0x1;_0x2c168a>=0x0;_0x2c168a--){const _0x137f8a={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x6c27cf[_0x2c168a][_0x2ce99f(0x3a7)],..._0x6c27cf[_0x2c168a][_0x2ce99f(0x35c)]}},_0x790515={'id':_0x2ce99f(0x1fe),'params':{'unitId':_0x6c27cf[_0x2c168a][_0x2ce99f(0x3a7)],..._0x6c27cf[_0x2c168a][_0x2ce99f(0x37f)]}},_0x5b6428=this[_0x2ce99f(0x26b)][_0x2ce99f(0x3d2)](_0x3d4279,_0x137f8a,!0x1),_0xaacc92=this[_0x2ce99f(0x26b)][_0x2ce99f(0x3d2)](_0x181e6b,_0x790515,!0x1);if(g['isTransformMutationFailure'](_0x5b6428))throw _0x5b6428['error'];if(g['isTransformMutationFailure'](_0xaacc92))throw _0xaacc92[_0x2ce99f(0x277)];_0x1f4f47[_0x2ce99f(0x2ab)]({..._0x6c27cf[_0x2c168a],'undoState':_0x5b6428[_0x2ce99f(0x2e5)]['params'],'redoState':_0xaacc92[_0x2ce99f(0x2e5)][_0x2ce99f(0x315)]}),_0x3d4279=_0x5b6428[_0x2ce99f(0x2a5)],_0x181e6b=_0xaacc92[_0x2ce99f(0x2a5)];}_0x3d4279=a[_0x2ce99f(0x3bc)][_0x2ce99f(0x377)](_0xfd326[_0x2ce99f(0x170)][0x0]),_0x181e6b=a[_0x2ce99f(0x3bc)][_0x2ce99f(0x377)](_0xfd326[_0x2ce99f(0x170)][0x0]);for(let _0x3af403=_0x51fd4f[_0x2ce99f(0x1fd)]-0x1;_0x3af403>=0x0;_0x3af403--){const _0xab7b88={'id':_0x2ce99f(0x1fe),'params':{'unitId':_0x51fd4f[_0x3af403][_0x2ce99f(0x3a7)],..._0x51fd4f[_0x3af403][_0x2ce99f(0x35c)]}},_0x3e77ae={'id':_0x2ce99f(0x1fe),'params':{'unitId':_0x51fd4f[_0x3af403][_0x2ce99f(0x3a7)],..._0x51fd4f[_0x3af403][_0x2ce99f(0x37f)]}},_0x42d225=this['_transformService']['transformMutation'](_0x3d4279,_0xab7b88,!0x1),_0x1071f4=this['_transformService'][_0x2ce99f(0x3d2)](_0x181e6b,_0x3e77ae,!0x1);if(g[_0x2ce99f(0x1f8)](_0x42d225))throw _0x42d225[_0x2ce99f(0x277)];if(g[_0x2ce99f(0x1f8)](_0x1071f4))throw _0x1071f4['error'];_0x163dbd[_0x2ce99f(0x2ab)]({..._0x51fd4f[_0x3af403],'undoState':_0x42d225[_0x2ce99f(0x2e5)]['params'],'redoState':_0x1071f4[_0x2ce99f(0x2e5)][_0x2ce99f(0x315)]}),_0x3d4279=_0x42d225['m1Prime'],_0x181e6b=_0x1071f4['m1Prime'];}this['_docStateChangeManagerService'][_0x2ce99f(0x227)](_0x14bed0,{'history':_0x1f4f47,'collaboration':_0x163dbd});}};te=Gt([Ie(0x0,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),Ie(0x1,g[_0xb7227a(0x423)]),Ie(0x2,a[_0xb7227a(0x2f4)](T[_0xb7227a(0x242)]))],te);var Xt=Object[_0xb7227a(0x1ca)],Kt=(_0xfc82d,_0x1e9c74,_0x494d2a,_0xa59a4c)=>{const _0x9fe973=_0xb7227a;for(var _0x4339d2=_0xa59a4c>0x1?void 0x0:_0xa59a4c?Xt(_0x1e9c74,_0x494d2a):_0x1e9c74,_0x3d1b71=_0xfc82d[_0x9fe973(0x1fd)]-0x1,_0x4ff3de;_0x3d1b71>=0x0;_0x3d1b71--)(_0x4ff3de=_0xfc82d[_0x3d1b71])&&(_0x4339d2=_0x4ff3de(_0x4339d2)||_0x4339d2);return _0x4339d2;},Pe=(_0x1ffa5b,_0x2c5fa9)=>(_0x149eb2,_0x2d2fe5)=>_0x2c5fa9(_0x149eb2,_0x2d2fe5,_0x1ffa5b);let se=class{constructor(_0x49d602,_0x20715e){this['_injector']=_0x49d602,this['_transformService']=_0x20715e;}['transformSelections'](_0x3cf0ba){const _0x482953=_0xb7227a;var _0x1bdbbd;const _0x5059d9=this[_0x482953(0x35e)][_0x482953(0x279)](V['DocSelectionManagerService']),_0x446615=(_0x1bdbbd=_0x5059d9[_0x482953(0x2fb)]())!=null?_0x1bdbbd:[];if(_0x446615['length']===0x0)return;const _0x24be17=_0x3cf0ba[_0x482953(0x1b5)],_0x269675=[{'id':_0x482953(0x1fe),'params':{'unitId':_0x24be17,'actions':null,'textRanges':_0x446615}}],_0x642c2c=this[_0x482953(0x26b)]['transformMutationsWithChangeset'](_0x3cf0ba,_0x269675);if(!g[_0x482953(0x1b0)](_0x642c2c))throw _0x642c2c[_0x482953(0x277)];const _0x2f1521=_0x642c2c['m2Prime'][0x0]['params'][_0x482953(0x3f2)];Array[_0x482953(0x241)](_0x2f1521)&&_0x2f1521['length']&&_0x5059d9[_0x482953(0x212)](_0x2f1521,{'unitId':_0x24be17,'subUnitId':_0x24be17},!0x1);}};se=Kt([Pe(0x0,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),Pe(0x1,g[_0xb7227a(0x423)])],se);var qt=Object[_0xb7227a(0x1ca)],zt=(_0x547747,_0x1a8945,_0x22c4a1,_0x3fd546)=>{const _0x44d176=_0xb7227a;for(var _0x4543e2=_0x3fd546>0x1?void 0x0:_0x3fd546?qt(_0x1a8945,_0x22c4a1):_0x1a8945,_0x278fac=_0x547747[_0x44d176(0x1fd)]-0x1,_0x1f7f81;_0x278fac>=0x0;_0x278fac--)(_0x1f7f81=_0x547747[_0x278fac])&&(_0x4543e2=_0x1f7f81(_0x4543e2)||_0x4543e2);return _0x4543e2;},N=(_0x2e2381,_0x1b1467)=>(_0x798074,_0x2fcd10)=>_0x1b1467(_0x798074,_0x2fcd10,_0x2e2381);function _0x3e8b(){const _0x86202d=['SheetSkeletonManagerService','m2Prime','getUniverSheetInstance','INTERNAL_ERROR','pipe','fromEventSubject','_drawTextRange','entries','_lastPointer','USERS_LEAVE','APPLY_REVISION_CONFILICT','_name','newValue','InsertRangeMoveRightCommandId','toRgbString','313525fzWyRv','Inject','max','VIEW_MAIN','makeDirty','merge','NO_OTHER_CLIENTS_EDITING','_maxFormulaLimit','getDocRanges','Warning','_saveCache','getConfig','ranges','_handleEvent','closePath','collab-rect-range-','pluginName','_init','FormulaExecutedStateType','all','_initCommandExecutedListener','dispose','IImageIoService','UniverCollaborationClientPlugin','_range','removeEventListener','getColorFromTheme','Module','TOO_MANY_REQUESTS','wsSessionTicketUrl','collaboration.offline-data-not-saved','_id','_toggleOnline','isFormulaString','params','Tooltip','_selfUnitIDs','session.collaboration-timeout','_pollingInterval','BehaviorSubject','substring','WebSocketService','_registerRenderDependencies','createIdentifier','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','registerBeforeClose','collaboration.single-unit.warning','getFocusedUnit','\x20at\x20','toDisposable','REDEMPTION_CODE_INACTIVE','map','xlink:href','ENTITLE_INSUFFICIENT_QUOTA','transformSelections','from','handleInsertRangeMoveDown','CURRENT_STATUS_CANNOT_OPERATE','MemberService','startFormulaLimitUrl','CONNECTOR_DATA_TOO_LARGE','lineno','toString','black','isEditing','asObservable','unhandledrejection','SetFormulaCalculationStartMutation','imageSourceType','catch','forEach','getCoordByCell','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','transform','runId','pushState','green.600','COMPLETION_FINISHED','CHANGESET_REVISION_CONFILICT','ThemeService','connectInjector','stage','setAlpha','exhaustSavingTask','APPLY_PERMISSION_DENIED','_taskIds','DesktopCollaborationStatusDisplayController','_toggleOffline','_beforeCloseService','useDependency','setInterval','init','_colorIndex','AUTHORIZE_CODE_ILLEGAL','_startSheetCollabCursor','SOCKET_FAILED','_transformHistoryAndStateStack','_collaborationController','collab-text-anchor-','_collaborationUIEventService','getTypeOfUnitDisposed$','handleInsertRangeMoveRight','setShapeProps','string','getMergeData','undoState','751689zhHlwa','_injector','stageInfo','executeCommand','OffLineIcon','requireSession','entityInit$','idSuffix','UNRECOGNIZED','PY_RUNTIME_SCRIPT_ERROR','Success','on-line-icon','FromArray','_labelPosition','setParam','_imageIoService','editingUnit','Injector','post','UNIVER_DOC','shift','createElement','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','endColumn','colno','CollaborationSessionService','deepClone','show','saveOfflineData','_scheduleHeartbeat','/universer-api/license/formula/limit/status','YUUMI_AI_RUN_FAILED','_uiPartsService','SNAPSHOT_HAS_BEEN_REMOVED','redoState','_renderManagerService','_setupSubUnitSync','save','sheetId','_scene','collabStatus.syncing','startsWith','application/json','result','_entityInit$','LICENSE_MAX_UNITS_EXCEEDED','cursorInfo','NOT_FOUND','switchMap','arc','IConfigService','SetWorksheetActivateCommand','LOGIN_TOKEN_PROCESSING_FAILED','WebURLService','CollaborationEvent','defs','hovered','_hovered','451449vcZuBx','USER_NOT_INVITED_CODE','_updateSubUnitFromURLParams','override','Rect','bottom','_themeService','permission.title','docStateChange$','maxFormulaLimit','findNodePositionByCharIndex','collabStatus.conflict','_cachedData','currentTheme$','enableLocalCache','_handleHeartbeatEvent','unitId','trim','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getSheetObject','defineProperty','IBeforeCloseService','lineTo','selections','permission.content','getMember','78958RDbcPH','moveTo','popstate','_getAnchorBounding','YUUMI_UNABLE_LOAD_URL','getLocalCacheKey','RxDisposable','registerRenderModule','ILocalStorageService','mask','_docStateChangeManagerService','Tools','evenodd','_localeService','getUnit','ILogService','SUCCESS','univer-flex\x20univer-items-center','enableFrontendLog','_docSkeletonManagerService','DataLoaderService','disposeWithMe','distinctUntilChanged','_collabCursorController','_messageService','_handleJoinEvent','ENTITLE_USE_COUPON_NOT_1ST_TRADE','InsertRowCommandId','LICENSE_DISTRO_REJECTED','CONFLICT','unit','getSheetId','jiqing.500','transformMutation','Disposable','code','CollaborationController','Unknown\x20user','complete','_initCommandInterceptor','JOIN_ROOM_FAILED','OnLineIcon','memberID','_initStatusComponent','fromEvent','LICENSE_IMPORT_SIZE_EXCEEDED','USER_IS_ANONYMOUS','[LogService\x20Error]:\x20','_anchorDot','DocIMEInputManagerService','INVALID_ARGUMENT','_configService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_roomMembers$','size','REDEMPTION_CODE_NOT_STARTED','currentColor','useObservable','_initResize','_createSocketURL','IRemoteInstanceService','getStateCache','column','with','getTypeOfUnitAdded$','textRanges','?taskId=','event$','[CollaborationDataLoaderController]','_cursor','handleIRemoveRow','_drawRectRange','getParam','_commandService','path','CLOSE_ROOM','_sheetSkeletonManagerService','clearInterval','APPLY_DUPLICATED','RemoveRowCommandId','createSocket','UPDATE_CURSOR','_memberService','BuiltInUIPart','currentUsage','row','_checkCalculationAvailable','338pBagmr','fillStyle','INVITE_CODE_ALREADY_BOUND','fillRule','getCellMatrix','_revisionService','RegularPolygon','current','_shapes','_render','stringify','takeUntil','ENTITLE_INVALID_COUPON_CODE','UNAUTHENTICATED','INVITE_CODE_HAS_BEEN_UES','_hideTimer','replaceState','collab-client.tooltip.reconnect','_disabled','REDEMPTION_CODE_FULLY_REDEEMED','getAncestorScale','_logService','_online','getUnitStatus$','CommandType','addObject','DATA_SOURCE_TOO_LARGE','ITransformService','SNAPSHOT_INVALID_SNAPSHOT','dirtyRanges','SheetCollabCursorShape','history','colorChannel1','35OpXNOG','getValue','CollaborationSocketService','EffectRefRangId','subscribe','UNIVER_SHEET','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','_docSyncEditingCollabCursorService','_onRefRangeChange','white','svg','flatMap','MOBILE_VERIFY_CODE_MISMATCH','OFFLINE','Subject','NodePositionConvertToRectRange','whenReady','data','REDEMPTION_USER_REDEEM_TIMES_EXCEED','purple.300','onMouseMove','_handleHover','addObjects','univer-mr-2\x20univer-flex\x20univer-text-xl','endRow','releaseFormulaLimitUrl','_startCalculationLimit','ENTITLE_CAN_NOT_BUY_LOWER_OTP','ColorKit','selection','disposeUnit','1497408UKySKO','CollaborationUIEventId','has','_getMergeRange','onTransformChange$','MUTATION','91NIMYxc','DeleteRangeMoveLeftCommandId','functionsExecutedState','_initEntityListener','ERROR_AGAIN','getUndoRedoMutationParamsCache','executionId','setTimeout','push','_assignedColors','DisposableCollection','children','getActiveSheet','next','_transformUndoRedoStack','mutations','SetSelectionsOperation','saveTaskMap','_context','ISocketService','univerjs-icon\x20univerjs-icon-','/universer-api/frontend/logs','href','roomMembers','source','resize','PENDING','EMAIL_HAS_BEEN_BOUND','jsx','_initWindowErrorListener','MessageType','FETCH_MISS','http://www.w3.org/2000/svg','_setupBeforeClosingHandler','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','WebBrowserSingleActiveUnitService','PERMISSION_DENIED','_unitOnClients','IUniverInstanceService','SOCKET_FAILED_RETRY','defIds','filter','_color','COLORS','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','SUBMIT_CHANGESET_TIMEOUT','some','_send','_setFormulaLimitStatus','LICENSE_EXPORT_SIZE_EXCEEDED','min','getCollabEntity$','isActive','height','1em','/universer-api/license/formula/limit/start','collab-text-range-','_heartbeatTimer','CollaborationDataLoaderController','touchDependencies','beforeCommandExecuted','_refRangeService','set','_eventUnsubscribe','ticket','eventID','_updateLocalCursor','getSkeleton','_localStorageService','_initUnhandledRejectionListener','engine','_transformPreviousActiveRange','1210xlWcyg','setActiveRange','isFormulaId','DocCollaborationEntity','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','108orqxyp','YUUMI_ALL_TABLES_IS_INVALID','isTransformMutationsWithChangesetSuccess','_registerDependencies','runOnServer','parse','CollaborationStatus','unitID','handleDeleteRangeMoveLeft','off-line-icon','session.connection-failed','getMemberID','add','EMAIL_VERIFY_CODE_MISMATCH','getItem','onPointerMove$','getColor','_applyCommand','saveImage','_docTransformIMECacheService','_initEvent','...','red.300','_document','HEADER_MENU','unsubscribe','focused$','fillText','getOwnPropertyDescriptor','syncEditingCollabCursor','_instanceService','_syncEditingCollabCursorService','getUnitId','currentSkeleton$','replace','jsxs','clearTimeout','registerRefRange','_ensureSubject','debug','YUUMI_TABLE_NOT_FOUND_IN_UNIT','collabStatus.notCollab','_removeCollabCursors','Error','APPLY_NON_SEQUENTIAL_REVISION','dispose$','LocaleService','session.will-retry','getCurrentUnitForType','url(#$1','onPointerLeave$','ENTITLE_NEED_BILLING_ADDRESS','assign','delete','SetFormulaCalculationNotificationMutation','collabCursorState$','_hover','_doCreateSocket','includes','shareReplay','_initDependencies','combineLatest','_checkAndWaitForCalculationPermission','uni.network.url-service','[RemoteUniscriptService]:\x20no\x20focused\x20unit','totalFormulasToCalculate','_getFormulaLimitStatus','INVALID_INVITE_CODE','ENTITLE_CHAT_LIMIT_EXCEED','getCollabCursors$','getRangePointData','TEXT','UniverInstanceType','_saveTaskMap','isTransformMutationFailure','off-line-icon_clip0_910_343','message','_onCursorDelete','MOBILE_HAS_BEEN_BOUND','length','doc.mutation.rich-text-editing','_cursorInfo$','_uploadLog','IMessageService','toStringTag','transformIMECache','DependentOn','reconnect','_scheduleClearOtherTimer','5066472bDFUaX','setConfig','debounceTime','HTTPService','REDEMPTION_USER_NOT_ELIGIBLE','debounce','color','OTHER_CLIENTS_EDITING','addEventListener','loadOfflineData','_cursorShapes','replaceDocRanges','invokeId','onCommandExecuted','now','_urlService','ILocalCacheService','TEXT_RANGE_LAYER_INDEX','PAYMENT_CHANNEL_NOT_SUPPORT','UNDEFINED','subscribeEvent','status$','_refreshCollabCursors','DeleteRangeMoveUpCommandId','ENTITLE_DUP_SUBSCRIPTION','ISnapshotServerService','[Unhandled\x20Rejection]:\x20','registerComponent','ALREADY_EXISTS','YUUMI_CONNECTOR_URL_NOT_FOUND','actions','IRenderManagerService','setStateCache','_status$','SetDocZoomRatioOperation','280LCietl','_updateURLWithCurrentState','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','symbol','throttleTime','_currentUsage','_collaborationSessionService','values','_monkeyPatchLogService','RemoveColCommandId','_univerInstanceService','transformRemoteChangeset','sheetID','RemoteUniscriptService','0\x200\x2017\x2016','clipPath','use','ACTIVE_UNIT_EVENT_CHANNEL','_collabSessionService','ENTITLE_REPORT_LIMIT_EXCEED','sessionTicket','url(#on-line-icon_clip0_910_349)','deserializeRangeWithSheet','isArray','DocStateChangeManagerService','tag','handleInsertCol','startRow','round','LOGIN_FAILED','DOC_RANGE_TYPE','OTHER_CLIENT_EDITING','triggerDblclick','ENSURE_SNAPSHOT_EXECUTION','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onPointerEnter$','_updateCollabCursors','_lastResponseTimestamp','UniverCollaborationClientUIPlugin','_dataLoaderService','getCurrentSelections','forwardRef','transformByState','APPLY_REJECT','_clearOtherTimers','_showGuardMessage','mapTo','sessionStatus$','range','startColumn','_session','getCurrentRevOfUnit','YUUMI_NO_CUBOID_FOR_QUESTION','getRenderById','DocSelectionManagerService','FormulaExecuteStageType','Plugin','_textBubble','ICommandService','DocSkeletonManagerService','collaboration-client-ui.config','find','generateRandomId','subunit','_getScale','_transformService','then','_localCacheService','CollaborationUIEventService','M0\x200H16V16H0z','send','labelPosition','none','YUUMI_ASYNCIO_CANCELLED','body','on-line-icon_clip0_910_349','cursorInfo$','error','formula.calculation.started','get','RichTextEditingMutation','IURLService','_getSaveTimeout','width','displayName','backgroundColor','_httpService','#FFF','transformStateCache','getVpScrollXYInfoByPosToVp','UniverIcon','_drawAnchor','stack','USER_NOT_FOUND','origin','type','/run/','searchParams','handleDeleteRangeMoveUp','runRefRangeMutations','reason','Optional','_startDocCollabCursor','SheetsSelectionsService','createInstance','_docClipboardService','_initUserListener','setItem','getCurrent','_unitStatus','useRef','NodePositionConvertToCursor','_docTransformStateCacheService','restore','_initStatusListener','NOT_COLLAB','TRANSFORM_CHANGE_OBSERVABLE_TYPE','0\x200\x2016\x2016','SYNCED','_colorAssignService','INVITE_CODE_REQUIRED','SetTextSelectionsOperation','assignAColorForMemberID','m1Prime','parseInt','InsertRangeMoveDownCommandId','SessionStatus','Rectangle','disableLocalCache','unshift','text','top','_backgroundColor','urlChange$','RECT','YUUMI_URL_COL_OUT_OF_RANGE','ONLINE','AWAITING_WITH_PENDING','_anchor','_onCursorUpdate','_releaseCalculationLimit','REDEMPTION_INVALID_CODE','_hasFormulaInDirtyRanges','attrs','RevisionService','_entities','_removeClearOtherTimer','search','socket$','BrowserCollaborationSocketService','addClipboardHook','LOCAL_CACHE_INTERVAL','formula.calculation.waiting','roomMembers$','_clearPolling','hide','split','Shape','ENTITLE_COUPON_EXPIRED','mergeOverrideWithDependencies','onLocalMutation','_collabCursorState$','UnitStatus','name','_docSkeleton','div','getViewport','unload','drawWith','_draw','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','YUUMI_RATE_OVER_LIMIT','_config','font','_memberID','_docTransformSelectionsService','27906xIhsxI','collaboration.closeRoom','blue.400','location','Vector2','ENTITLE_COUPON_USED_UP','WECHAT_HAS_BEEN_BOUND','getSheetBySheetId','_cursors','fill'];_0x3e8b=function(){return _0x86202d;};return _0x3e8b();}let ie=class extends a[_0xb7227a(0x3d3)]{constructor(_0x58294d,_0x4c3e08,_0x12ef60,_0xe70298,_0x23d656,_0x52b959,_0x37581e,_0x3ee011){const _0x2467e0=_0xb7227a;super(),_(this,_0x2467e0(0x228),new I[(_0x2467e0(0x31a))](u['CollaborationStatus'][_0x2467e0(0x29d)])),(this['_docStateChangeManagerService']=_0x58294d,this['_collaborationController']=_0x4c3e08,this[_0x2467e0(0x1c1)]=_0x12ef60,this[_0x2467e0(0x29a)]=_0xe70298,this[_0x2467e0(0x2d9)]=_0x23d656,this['_docSyncEditingCollabCursorService']=_0x52b959,this['_messageService']=_0x37581e,this[_0x2467e0(0x3be)]=_0x3ee011,this[_0x2467e0(0x164)]());}[_0xb7227a(0x164)](){const _0x24e424=_0xb7227a;this[_0x24e424(0x3c6)](this[_0x24e424(0x354)][_0x24e424(0x363)][_0x24e424(0x42d)](_0x5b1da2=>{const _0x1743a7=_0x24e424,_0x4e597e=this['_docStateChangeManagerService'][_0x1743a7(0x39f)][_0x1743a7(0x42d)](_0x4ec63a=>{const _0x43743b=_0x1743a7;if(_0x4ec63a==null)return;const {unitId:_0x3ab4c7,redoState:_0xae8797,commandId:_0x100f55}=_0x4ec63a;if(_0x3ab4c7!==_0x5b1da2[_0x43743b(0x1b5)])return;const _0x49f592={'id':_0x100f55,'type':a[_0x43743b(0x420)][_0x43743b(0x160)],'params':{'unitId':_0x3ab4c7,'actions':_0xae8797[_0x43743b(0x225)],'textRanges':null}};_0x5b1da2[_0x43743b(0x2ca)](_0x49f592);});if(_0x5b1da2[_0x1743a7(0x3c6)](_0x4e597e),_0x5b1da2 instanceof u[_0x1743a7(0x1ac)]){const _0xfb0cf4={'onTransformIME':_0xe66fda=>this[_0x1743a7(0x1c1)][_0x1743a7(0x203)](_0xe66fda),'onTransformState':_0x32f5ec=>this['_docTransformStateCacheService'][_0x1743a7(0x282)](_0x32f5ec),'onTransformSelections':_0x12c830=>this[_0x1743a7(0x2d9)][_0x1743a7(0x329)](_0x12c830),'onSyncEditingCollabCursor':_0x33e915=>this[_0x1743a7(0x430)]['syncEditingCollabCursor'](_0x33e915),'onTransformRemoteChangesetByIMECache':_0x1579ef=>this['_docTransformIMECacheService'][_0x1743a7(0x235)](_0x1579ef),'onTransformRemoteChangesetByStateCache':_0x46e2c0=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x46e2c0)};_0x5b1da2['addHandlerCallback'](_0xfb0cf4);}}));}};ie=zt([N(0x0,a['Inject'](T['DocStateChangeManagerService'])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0xb7227a(0x2f4)](ee)),N(0x3,a[_0xb7227a(0x2f4)](te)),N(0x4,a[_0xb7227a(0x2f4)](se)),N(0x5,a[_0xb7227a(0x2f4)](be)),N(0x6,O[_0xb7227a(0x201)]),N(0x7,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x1dc)]))],ie);var G=(_0x479207=>(_0x479207[_0x479207['UNDEFINED']=0x0]=_0xb7227a(0x21a),_0x479207[_0x479207['OK']=0x1]='OK',_0x479207[_0x479207[_0xb7227a(0x2e7)]=0x2]='INTERNAL_ERROR',_0x479207[_0x479207[_0xb7227a(0x185)]=0x3]=_0xb7227a(0x185),_0x479207[_0x479207[_0xb7227a(0x38c)]=0x4]=_0xb7227a(0x38c),_0x479207[_0x479207[_0xb7227a(0x415)]=0x5]=_0xb7227a(0x415),_0x479207[_0x479207[_0xb7227a(0x223)]=0x6]=_0xb7227a(0x223),_0x479207[_0x479207[_0xb7227a(0x3e3)]=0x7]=_0xb7227a(0x3e3),_0x479207[_0x479207[_0xb7227a(0x30f)]=0x8]='TOO_MANY_REQUESTS',_0x479207[_0x479207[_0xb7227a(0x340)]=0x9]=_0xb7227a(0x340),_0x479207[_0x479207[_0xb7227a(0x247)]=0xa]=_0xb7227a(0x247),_0x479207[_0x479207[_0xb7227a(0x435)]=0xb]=_0xb7227a(0x435),_0x479207[_0x479207[_0xb7227a(0x1ad)]=0xc]=_0xb7227a(0x1ad),_0x479207[_0x479207[_0xb7227a(0x1bb)]=0xd]=_0xb7227a(0x1bb),_0x479207[_0x479207[_0xb7227a(0x22c)]=0xe]=_0xb7227a(0x22c),_0x479207[_0x479207[_0xb7227a(0x350)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x479207[_0x479207[_0xb7227a(0x391)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x479207[_0x479207['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0xb7227a(0x32c),_0x479207[_0x479207['ERROR_AGAIN']=0x65]=_0xb7227a(0x165),_0x479207[_0x479207['USER_NOT_FOUND']=0xc9]=_0xb7227a(0x287),_0x479207[_0x479207[_0xb7227a(0x3df)]=0xca]=_0xb7227a(0x3df),_0x479207[_0x479207[_0xb7227a(0x341)]=0x1389]=_0xb7227a(0x341),_0x479207[_0x479207[_0xb7227a(0x424)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x479207[_0x479207['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xb7227a(0x37e),_0x479207[_0x479207[_0xb7227a(0x24b)]=0x1773]=_0xb7227a(0x24b),_0x479207[_0x479207[_0xb7227a(0x255)]=0x1b59]=_0xb7227a(0x255),_0x479207[_0x479207['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0xb7227a(0x1da),_0x479207[_0x479207[_0xb7227a(0x2ee)]=0x1b5b]=_0xb7227a(0x2ee),_0x479207[_0x479207[_0xb7227a(0x347)]=0x1b5c]=_0xb7227a(0x347),_0x479207[_0x479207[_0xb7227a(0x3ff)]=0x1b5d]='APPLY_DUPLICATED',_0x479207[_0x479207[_0xb7227a(0x32f)]=0x1f41]=_0xb7227a(0x32f),_0x479207[_0x479207['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0xb7227a(0x38a),_0x479207[_0x479207[_0xb7227a(0x24c)]=0x232a]=_0xb7227a(0x24c),_0x479207[_0x479207['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xb7227a(0x3de),_0x479207[_0x479207[_0xb7227a(0x192)]=0x232c]=_0xb7227a(0x192),_0x479207[_0x479207['LICENSE_DISTRO_REJECTED']=0x232d]=_0xb7227a(0x3cd),_0x479207[_0x479207[_0xb7227a(0x3b5)]=0x2711]=_0xb7227a(0x3b5),_0x479207[_0x479207[_0xb7227a(0x2b1)]=0x2712]=_0xb7227a(0x2b1),_0x479207[_0x479207[_0xb7227a(0x2d5)]=0x2713]=_0xb7227a(0x2d5),_0x479207[_0x479207['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x479207[_0x479207[_0xb7227a(0x25e)]=0x271a]=_0xb7227a(0x25e),_0x479207[_0x479207[_0xb7227a(0x273)]=0x271b]=_0xb7227a(0x273),_0x479207[_0x479207[_0xb7227a(0x1d6)]=0x271c]=_0xb7227a(0x1d6),_0x479207[_0x479207[_0xb7227a(0x1af)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x479207[_0x479207[_0xb7227a(0x31f)]=0x271e]=_0xb7227a(0x31f),_0x479207[_0x479207[_0xb7227a(0x37c)]=0x271f]=_0xb7227a(0x37c),_0x479207[_0x479207[_0xb7227a(0x224)]=0x2720]=_0xb7227a(0x224),_0x479207[_0x479207[_0xb7227a(0x366)]=0x2af9]=_0xb7227a(0x366),_0x479207[_0x479207[_0xb7227a(0x416)]=0x2ee1]=_0xb7227a(0x416),_0x479207[_0x479207[_0xb7227a(0x1f1)]=0x2ee2]=_0xb7227a(0x1f1),_0x479207[_0x479207[_0xb7227a(0x2a2)]=0x2ee3]=_0xb7227a(0x2a2),_0x479207[_0x479207[_0xb7227a(0x398)]=0x2ee4]=_0xb7227a(0x398),_0x479207[_0x479207[_0xb7227a(0x40a)]=0x2ee5]=_0xb7227a(0x40a),_0x479207[_0x479207[_0xb7227a(0x2e0)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x479207[_0x479207[_0xb7227a(0x1fc)]=0x32ca]=_0xb7227a(0x1fc),_0x479207[_0x479207[_0xb7227a(0x17c)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x479207[_0x479207[_0xb7227a(0x157)]=0x36b1]=_0xb7227a(0x157),_0x479207[_0x479207[_0xb7227a(0x3e5)]=0x36b2]=_0xb7227a(0x3e5),_0x479207[_0x479207[_0xb7227a(0x21f)]=0x36b3]=_0xb7227a(0x21f),_0x479207[_0x479207[_0xb7227a(0x219)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x479207[_0x479207[_0xb7227a(0x414)]=0x36b5]=_0xb7227a(0x414),_0x479207[_0x479207[_0xb7227a(0x2c8)]=0x36b6]=_0xb7227a(0x2c8),_0x479207[_0x479207[_0xb7227a(0x2df)]=0x36b7]=_0xb7227a(0x2df),_0x479207[_0x479207[_0xb7227a(0x3cb)]=0x36b8]=_0xb7227a(0x3cb),_0x479207[_0x479207[_0xb7227a(0x1f2)]=0x3715]=_0xb7227a(0x1f2),_0x479207[_0x479207[_0xb7227a(0x23d)]=0x3716]=_0xb7227a(0x23d),_0x479207[_0x479207[_0xb7227a(0x328)]=0x3717]=_0xb7227a(0x328),_0x479207[_0x479207[_0xb7227a(0x1e1)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x479207[_0x479207[_0xb7227a(0x2b7)]=0x3a99]=_0xb7227a(0x2b7),_0x479207[_0x479207[_0xb7227a(0x325)]=0x3a9a]=_0xb7227a(0x325),_0x479207[_0x479207[_0xb7227a(0x41b)]=0x3a9b]=_0xb7227a(0x41b),_0x479207[_0x479207['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0xb7227a(0x3e8),_0x479207[_0x479207[_0xb7227a(0x20b)]=0x3a9d]=_0xb7227a(0x20b),_0x479207[_0x479207[_0xb7227a(0x43b)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x479207[_0x479207['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x479207[_0x479207[_0xb7227a(0x422)]=0x3e81]=_0xb7227a(0x422),_0x479207[_0x479207[_0xb7227a(0x365)]=-0x1]=_0xb7227a(0x365),_0x479207))(G||{});function Jt(_0x400aaa){const _0x510225=_0xb7227a;var _0x2ae372,_0x2a3a46;const _0xd954bf=(_0x2ae372=_0x400aaa[_0x510225(0x35f)])==null?void 0x0:_0x2ae372[_0x510225(0x344)],_0x47f2d2=((_0x2a3a46=_0x400aaa[_0x510225(0x35f)])==null?void 0x0:_0x2a3a46[_0x510225(0x1ef)])||0x0;return _0xd954bf===B[_0x510225(0x261)]['START_CALCULATION']&&_0x47f2d2>0x0;}function Zt(_0x3ca68d){const _0x1fc691=_0xb7227a;return _0x3ca68d[_0x1fc691(0x163)]===B[_0x1fc691(0x305)][_0x1fc691(0x3c1)];}var Qt=Object[_0xb7227a(0x1ca)],es=(_0x52c317,_0x58986e,_0x4c27fe,_0x2d17b5)=>{const _0x18aeb7=_0xb7227a;for(var _0x4593f7=_0x2d17b5>0x1?void 0x0:_0x2d17b5?Qt(_0x58986e,_0x4c27fe):_0x58986e,_0xab29ab=_0x52c317[_0x18aeb7(0x1fd)]-0x1,_0x2d3c90;_0xab29ab>=0x0;_0xab29ab--)(_0x2d3c90=_0x52c317[_0xab29ab])&&(_0x4593f7=_0x2d3c90(_0x4593f7)||_0x4593f7);return _0x4593f7;},L=(_0x5f40ae,_0x1a8726)=>(_0x352ca0,_0x15d621)=>_0x1a8726(_0x352ca0,_0x15d621,_0x5f40ae);const ts=_0xb7227a(0x37b),ss=_0xb7227a(0x198),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0xb7227a(0x3d3)]{constructor(_0x50cf5d,_0x3c9dd0,_0x55ec66,_0x2b8684,_0x417ffb,_0x369f67,_0x6b958){const _0x63b129=_0xb7227a;super(),_(this,'_pollingInterval',null),_(this,_0x63b129(0x2fa),0x0),_(this,'_currentUsage',0x0),_(this,_0x63b129(0x348),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x63b129(0x3c9)]=_0x50cf5d,this['_commandService']=_0x3c9dd0,this[_0x63b129(0x3e4)]=_0x55ec66,this['_httpService']=_0x2b8684,this[_0x63b129(0x234)]=_0x417ffb,this[_0x63b129(0x41d)]=_0x369f67,this[_0x63b129(0x3be)]=_0x6b958,this[_0x63b129(0x3d8)]());}[_0xb7227a(0x3d8)](){const _0x14c25d=_0xb7227a;this[_0x14c25d(0x3c6)](this[_0x14c25d(0x3fa)][_0x14c25d(0x19d)]((_0x64e16f,_0x124b0c)=>{const _0x20172b=_0x14c25d;var _0x37c978;if(_0x64e16f['id']!==B[_0x20172b(0x336)]['id'])return;const _0x27d58e=_0x64e16f['params'];if(!this[_0x20172b(0x2b8)]((_0x37c978=_0x27d58e[_0x20172b(0x425)])!=null?_0x37c978:[]))return;if(!this[_0x20172b(0x407)]())throw this[_0x20172b(0x1ec)](_0x64e16f,_0x124b0c),this[_0x20172b(0x257)](),new a['CanceledError']();})),this[_0x14c25d(0x3c6)](this[_0x14c25d(0x3fa)][_0x14c25d(0x214)]((_0x4b9568,_0x5661d6)=>{const _0x3c25d6=_0x14c25d;if(_0x4b9568['id']!==B[_0x3c25d6(0x1e4)]['id'])return;const _0x468169=_0x4b9568[_0x3c25d6(0x315)];if(Jt(_0x468169)){const _0x3fe72d=a[_0x3c25d6(0x268)]();this['_taskIds'][_0x3c25d6(0x169)](_0x3fe72d),this[_0x3c25d6(0x156)](_0x3fe72d);}else{if(Zt(_0x468169)&&this['_taskIds']['length']>0x0){const _0x5eca22=this['_taskIds'][_0x3c25d6(0x371)]();this[_0x3c25d6(0x2b6)](_0x5eca22);}}}));}[_0xb7227a(0x308)](){const _0x68fbb9=_0xb7227a;super[_0x68fbb9(0x308)](),this[_0x68fbb9(0x2c4)](),this[_0x68fbb9(0x348)]=[],this[_0x68fbb9(0x22f)]=0x0,this[_0x68fbb9(0x2fa)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0xb7227a(0x1ec)](_0x4e8f7d,_0x4f829e){const _0x54bb7f=_0xb7227a;for(let _0x331417=0x0;_0x331417<0x1e;_0x331417++)try{if(await this[_0x54bb7f(0x1f0)](),this['_checkCalculationAvailable']()){this[_0x54bb7f(0x1bf)](_0x4e8f7d,_0x4f829e),this[_0x54bb7f(0x3c9)][_0x54bb7f(0x378)]({'content':this[_0x54bb7f(0x3be)]['t'](_0x54bb7f(0x278)),'type':p['MessageType'][_0x54bb7f(0x367)]});return;}await new Promise(_0x1c7770=>{const _0x3a231c=_0x54bb7f;this[_0x3a231c(0x319)]=window['setTimeout'](_0x1c7770,0x3e8);});}catch(_0x5821aa){this[_0x54bb7f(0x41d)]['error'](_0x5821aa);}this['_messageService'][_0x54bb7f(0x378)]({'content':this[_0x54bb7f(0x3be)]['t']('formula.calculation.unable'),'type':p[_0x54bb7f(0x17f)][_0x54bb7f(0x1d9)]});}['_applyCommand'](_0x1fd502,_0x18df33){const _0x38be81=_0xb7227a;try{this['_commandService'][_0x38be81(0x360)](_0x1fd502['id'],_0x1fd502[_0x38be81(0x315)],_0x18df33);}catch(_0x67f4b2){this[_0x38be81(0x41d)]['error'](_0x67f4b2);}}[_0xb7227a(0x191)](_0x4f33c2,_0x5f4ab9){const _0x4d9225=_0xb7227a;_0x5f4ab9<this[_0x4d9225(0x24f)]||(this[_0x4d9225(0x24f)]=_0x5f4ab9,this[_0x4d9225(0x2fa)]=Number[_0x4d9225(0x2a6)](_0x4f33c2[_0x4d9225(0x3a0)]),this[_0x4d9225(0x22f)]=Number[_0x4d9225(0x2a6)](_0x4f33c2[_0x4d9225(0x405)]));}async[_0xb7227a(0x156)](_0x287402){const _0x254a31=_0xb7227a;var _0x34e0f7,_0x2ece4d;const _0x476c36=Date[_0x254a31(0x215)]();try{const _0x5120d9=((_0x34e0f7=this['_configService'][_0x254a31(0x2fe)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x34e0f7[_0x254a31(0x32e)])||ss,_0x525239=(await this['_httpService'][_0x254a31(0x36f)](_0x5120d9,{'body':JSON[_0x254a31(0x412)]({'taskId':_0x287402})}))['body'];if(((_0x2ece4d=_0x525239[_0x254a31(0x277)])==null?void 0x0:_0x2ece4d[_0x254a31(0x3d4)])!==G['OK'])return;this[_0x254a31(0x191)](_0x525239['limitInfo'],_0x476c36);}catch(_0x20f38c){this[_0x254a31(0x41d)][_0x254a31(0x277)](_0x20f38c);}}async[_0xb7227a(0x1f0)](_0x4357b7){const _0x598d39=_0xb7227a;var _0x2416c6,_0x4c71cc;const _0x517a62=Date['now']();try{const _0x5270aa=((_0x2416c6=this[_0x598d39(0x3e4)][_0x598d39(0x2fe)](u[_0x598d39(0x2d4)]))==null?void 0x0:_0x2416c6['getFormulaLimitStatusUrl'])||ts,_0x41d5a3=_0x4357b7?_0x5270aa+_0x598d39(0x3f3)+encodeURIComponent(_0x4357b7):_0x5270aa,_0x53a39d=(await this[_0x598d39(0x280)][_0x598d39(0x279)](_0x41d5a3))[_0x598d39(0x274)];if(((_0x4c71cc=_0x53a39d[_0x598d39(0x277)])==null?void 0x0:_0x4c71cc[_0x598d39(0x3d4)])!==G['OK'])return;this[_0x598d39(0x191)](_0x53a39d['limitInfo'],_0x517a62);}catch(_0x37eee1){this[_0x598d39(0x41d)]['error'](_0x37eee1);}}async[_0xb7227a(0x2b6)](_0x8a3e51){const _0x2f8e9e=_0xb7227a;var _0x1a7f3b,_0xfc3db7;const _0x4d94e5=Date['now']();try{const _0x37200f=((_0x1a7f3b=this['_configService'][_0x2f8e9e(0x2fe)](u[_0x2f8e9e(0x2d4)]))==null?void 0x0:_0x1a7f3b[_0x2f8e9e(0x442)])||is,_0x117fa8=(await this[_0x2f8e9e(0x280)][_0x2f8e9e(0x36f)](_0x37200f,{'body':JSON[_0x2f8e9e(0x412)]({'taskId':_0x8a3e51})}))[_0x2f8e9e(0x274)];if(((_0xfc3db7=_0x117fa8[_0x2f8e9e(0x277)])==null?void 0x0:_0xfc3db7[_0x2f8e9e(0x3d4)])!==G['OK'])return;this[_0x2f8e9e(0x191)](_0x117fa8['limitInfo'],_0x4d94e5);}catch(_0x11c90f){this[_0x2f8e9e(0x41d)]['error'](_0x11c90f);}}[_0xb7227a(0x407)](){const _0x330115=_0xb7227a;return this[_0x330115(0x2fa)]===0x0?!0x0:this[_0x330115(0x2fa)]-this[_0x330115(0x22f)]>0x0;}[_0xb7227a(0x2c4)](){const _0x25bb6f=_0xb7227a;this[_0x25bb6f(0x319)]&&(clearTimeout(this[_0x25bb6f(0x319)]),this[_0x25bb6f(0x319)]=null);}[_0xb7227a(0x257)](){const _0x2932c1=_0xb7227a;this[_0x2932c1(0x3c9)][_0x2932c1(0x378)]({'content':this[_0x2932c1(0x3be)]['t'](_0x2932c1(0x2c2)),'type':p[_0x2932c1(0x17f)]['Loading']});}['_hasFormulaInDirtyRanges'](_0xcbddc0){const _0x37de82=_0xb7227a;for(const _0x201e40 of _0xcbddc0){const {unitId:_0x4e9371,sheetId:_0x311a37,range:_0x4d747e}=_0x201e40,_0x42de29=this[_0x37de82(0x234)][_0x37de82(0x3bf)](_0x4e9371);if(!_0x42de29)continue;const _0x18c8f6=_0x42de29[_0x37de82(0x2e1)](_0x311a37);if(!_0x18c8f6)continue;const _0x1f6ac0=_0x18c8f6[_0x37de82(0x40c)]();for(let _0x460133=_0x4d747e['startRow'];_0x460133<=_0x4d747e[_0x37de82(0x441)];_0x460133++)for(let _0x3012f1=_0x4d747e[_0x37de82(0x25b)];_0x3012f1<=_0x4d747e['endColumn'];_0x3012f1++){const _0x58e9df=_0x1f6ac0['getValue'](_0x460133,_0x3012f1);if(_0x58e9df&&(a[_0x37de82(0x314)](_0x58e9df['f'])||a[_0x37de82(0x1ab)](_0x58e9df['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0xb7227a(0x2f4)](O[_0xb7227a(0x201)])),L(0x1,a[_0xb7227a(0x264)]),L(0x2,a[_0xb7227a(0x38f)]),L(0x3,a[_0xb7227a(0x2f4)](x[_0xb7227a(0x20a)])),L(0x4,a[_0xb7227a(0x187)]),L(0x5,a[_0xb7227a(0x3c0)]),L(0x6,a[_0xb7227a(0x2f4)](a['LocaleService']))],ne);var ns=Object[_0xb7227a(0x1ca)],rs=(_0x790337,_0x5177b8,_0x4ab75b,_0x2e00ea)=>{const _0x5a1ea2=_0xb7227a;for(var _0x4bb0f3=_0x2e00ea>0x1?void 0x0:_0x2e00ea?ns(_0x5177b8,_0x4ab75b):_0x5177b8,_0x1f423b=_0x790337[_0x5a1ea2(0x1fd)]-0x1,_0x1659fe;_0x1f423b>=0x0;_0x1f423b--)(_0x1659fe=_0x790337[_0x1f423b])&&(_0x4bb0f3=_0x1659fe(_0x4bb0f3)||_0x4bb0f3);return _0x4bb0f3;},Se=(_0x2c266d,_0x1dd4bc)=>(_0x3be775,_0x3a8398)=>_0x1dd4bc(_0x3be775,_0x3a8398,_0x2c266d);let Te=class extends a[_0xb7227a(0x3d3)]{constructor(_0x319967,_0x54c51a,_0x33f5f1){const _0x157e68=_0xb7227a;super(),_(this,_0x157e68(0x3a3),new Map()),_(this,_0x157e68(0x1f7),new Map()),_(this,'_disabled',!0x1),(this[_0x157e68(0x3e4)]=_0x319967,this[_0x157e68(0x1a5)]=_0x54c51a,this[_0x157e68(0x40d)]=_0x33f5f1);}[_0xb7227a(0x2aa)](){const _0x1d157a=_0xb7227a;this[_0x1d157a(0x41a)]=!0x0;}[_0xb7227a(0x3a5)](){this['_disabled']=!0x1;}get[_0xb7227a(0x172)](){const _0xb248a5=_0xb7227a;return this[_0xb248a5(0x1f7)];}['dispose'](){const _0x513bbf=_0xb7227a;this[_0x513bbf(0x346)]()[_0x513bbf(0x26c)](()=>super[_0x513bbf(0x308)]());}async[_0xb7227a(0x210)](_0x6f7e70){const _0x59a20d=_0xb7227a;return this[_0x59a20d(0x41a)]?null:this[_0x59a20d(0x1a5)][_0x59a20d(0x1bc)](u['getLocalCacheKey'](_0x6f7e70));}async[_0xb7227a(0x379)](_0x57483f,_0x481cbc){const _0x54a721=_0xb7227a;return!!this['_localStorageService'][_0x54a721(0x295)](_0x57483f,_0x481cbc);}['updateOfflineData'](_0x407261,_0x46e60e,_0x1518da,_0x4bc784){const _0x38b0b3=_0xb7227a,_0xa9770f=this[_0x38b0b3(0x40d)][_0x38b0b3(0x25d)](_0x407261);this[_0x38b0b3(0x3a3)][_0x38b0b3(0x19f)](_0x407261,{'unitID':_0x407261,'type':_0x46e60e,'awaitingChangeset':_0x1518da,'mutations':_0x4bc784,'rev':_0xa9770f}),this[_0x38b0b3(0x1f7)][_0x38b0b3(0x15d)](_0x407261)||this['_scheduleSaving'](_0x407261);}['_scheduleSaving'](_0x2af6b8){const _0x11944a=_0xb7227a,_0xa21a06=this[_0x11944a(0x27c)]();_0xa21a06===0x0?this['_saveCache'](_0x2af6b8):this[_0x11944a(0x1f7)][_0x11944a(0x19f)](_0x2af6b8,setTimeout(()=>this[_0x11944a(0x2fd)](_0x2af6b8),_0xa21a06));}[_0xb7227a(0x27c)](){const _0x4d48b2=_0xb7227a;var _0x40415f;return(_0x40415f=this[_0x4d48b2(0x3e4)][_0x4d48b2(0x2fe)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x40415f:u[_0x4d48b2(0x2c1)];}[_0xb7227a(0x2fd)](_0x4bbde3){const _0x586450=_0xb7227a,_0x3011aa=this['_saveTaskMap'][_0x586450(0x279)](_0x4bbde3);return _0x3011aa!==void 0x0&&window['clearTimeout'](_0x3011aa),this[_0x586450(0x1a5)][_0x586450(0x295)](u[_0x586450(0x3b6)](_0x4bbde3),this[_0x586450(0x3a3)]['get'](_0x4bbde3))[_0x586450(0x26c)](()=>this['_saveTaskMap']['delete'](_0x4bbde3));}async[_0xb7227a(0x346)](){const _0x1780bf=_0xb7227a,_0x4da85e=[];this[_0x1780bf(0x1f7)]['forEach']((_0xd3c73d,_0x490647)=>{const _0x76d207=_0x1780bf;window[_0x76d207(0x1d2)](_0xd3c73d),_0x4da85e[_0x76d207(0x169)](this['_saveCache'](_0x490647)['then'](()=>{const _0x3f97fe=_0x76d207;this[_0x3f97fe(0x1f7)][_0x3f97fe(0x1e3)](_0x490647);}));}),await Promise[_0x1780bf(0x306)](_0x4da85e);}};Te=rs([Se(0x0,a[_0xb7227a(0x38f)]),Se(0x1,a[_0xb7227a(0x3b9)]),Se(0x2,a['Inject'](g[_0xb7227a(0x2ba)]))],Te);class ke extends a[_0xb7227a(0x3b7)]{constructor(){const _0x3349aa=_0xb7227a;super(),_(this,'urlChange$'),this[_0x3349aa(0x2af)]=I[_0x3349aa(0x3dd)](window,_0x3349aa(0x3b3))[_0x3349aa(0x2e8)](I['takeUntil'](this[_0x3349aa(0x1db)]),I[_0x3349aa(0x1e9)](0x1),I[_0x3349aa(0x258)](void 0x0));}[_0xb7227a(0x36b)](_0x9ab9ae,_0x2f983b,_0x4acbfe=!0x1){const _0x62d3d9=_0xb7227a,_0x5b9ff4=new URL(window[_0x62d3d9(0x2dd)][_0x62d3d9(0x177)]);_0x5b9ff4[_0x62d3d9(0x28b)][_0x62d3d9(0x19f)](_0x9ab9ae,_0x2f983b),_0x4acbfe?window['history']['replaceState']('','',_0x5b9ff4['toString']()):window[_0x62d3d9(0x427)][_0x62d3d9(0x33e)]('','',_0x5b9ff4[_0x62d3d9(0x331)]());}['removeParam'](_0x1fac1f,_0x163c99=!0x1){const _0x38863a=_0xb7227a,_0x552a59=new URL(window[_0x38863a(0x2dd)]['href']);_0x552a59[_0x38863a(0x28b)][_0x38863a(0x1e3)](_0x1fac1f),_0x163c99?window[_0x38863a(0x427)][_0x38863a(0x418)]('','',_0x552a59['toString']()):window[_0x38863a(0x427)][_0x38863a(0x33e)]('','',_0x552a59['toString']());}[_0xb7227a(0x3f9)](_0x30d4a7){const _0x543890=_0xb7227a;var _0x448626;return(_0x448626=new URL(window[_0x543890(0x2dd)][_0x543890(0x177)])['searchParams']['get'](_0x30d4a7))!=null?_0x448626:void 0x0;}}var os=Object[_0xb7227a(0x3ab)],as=Object['getOwnPropertyDescriptor'],cs=(_0x30505d,_0x1e3295,_0x16cc16)=>_0x1e3295 in _0x30505d?os(_0x30505d,_0x1e3295,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cc16}):_0x30505d[_0x1e3295]=_0x16cc16,ls=(_0x1dbab1,_0x3bb949,_0xa10854,_0x42498f)=>{for(var _0x35a446=_0x42498f>0x1?void 0x0:_0x42498f?as(_0x3bb949,_0xa10854):_0x3bb949,_0x3b3691=_0x1dbab1['length']-0x1,_0x26a251;_0x3b3691>=0x0;_0x3b3691--)(_0x26a251=_0x1dbab1[_0x3b3691])&&(_0x35a446=_0x26a251(_0x35a446)||_0x35a446);return _0x35a446;},de=(_0x20c834,_0x4c3bd9)=>(_0x2e45e8,_0x442528)=>_0x4c3bd9(_0x2e45e8,_0x442528,_0x20c834),_s=(_0x41312e,_0x3ccfe7,_0x22731e)=>cs(_0x41312e,_0x3ccfe7+'',_0x22731e);const hs=_0xb7227a(0x3a9);exports[_0xb7227a(0x250)]=class extends a[_0xb7227a(0x262)]{constructor(_0x5e6040=Me,_0x43c2f3,_0x321506,_0x4bfac8){const _0x49fba6=_0xb7227a;super(),this['_config']=_0x5e6040,this['_renderManagerService']=_0x43c2f3,this[_0x49fba6(0x35e)]=_0x321506,this[_0x49fba6(0x3e4)]=_0x4bfac8;const {..._0x54d852}=a[_0x49fba6(0x2f8)]({},Me,this[_0x49fba6(0x2d6)]);this[_0x49fba6(0x3e4)][_0x49fba6(0x208)](Yt,_0x54d852);}['onStarting'](){const _0x5bdb5d=_0xb7227a;this[_0x5bdb5d(0x1b1)](),this[_0x5bdb5d(0x1ea)]();}['onRendered'](){const _0x78fbf4=_0xb7227a;this[_0x78fbf4(0x31d)]();}['_registerDependencies'](){const _0x2ddbd3=_0xb7227a;var _0x177c6d;const _0x3a28f6=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x2ddbd3(0x174)],{'useClass':x[_0x2ddbd3(0x31c)]}],[u[_0x2ddbd3(0x217)],{'useClass':Te}],[exports[_0x2ddbd3(0x349)]],[ie],[Z],[F],[me],[exports[_0x2ddbd3(0x19b)]]];this[_0x2ddbd3(0x2d6)][_0x2ddbd3(0x3c3)]&&_0x3a28f6[_0x2ddbd3(0x169)]([Q]),a['registerDependencies'](this[_0x2ddbd3(0x35e)],a[_0x2ddbd3(0x2c9)](_0x3a28f6,(_0x177c6d=this['_config'])==null?void 0x0:_0x177c6d[_0x2ddbd3(0x39a)]));}[_0xb7227a(0x31d)](){const _0x2a69d3=_0xb7227a;this[_0x2a69d3(0x3c6)](this[_0x2a69d3(0x380)][_0x2a69d3(0x3b8)](a[_0x2a69d3(0x1f6)][_0x2a69d3(0x370)],[Ee])),this[_0x2a69d3(0x3c6)](this['_renderManagerService']['registerRenderModule'](a[_0x2a69d3(0x1f6)][_0x2a69d3(0x42e)],[Ce]));}['_initDependencies'](){const _0x4fa54f=_0xb7227a;a[_0x4fa54f(0x19c)](this['_injector'],[[F],[exports[_0x4fa54f(0x349)]],[ie],[Z],[exports[_0x4fa54f(0x19b)]],[ne]]),this[_0x4fa54f(0x2d6)][_0x4fa54f(0x3c3)]&&a[_0x4fa54f(0x19c)](this[_0x4fa54f(0x35e)],[[Q]]);}},_s(exports[_0xb7227a(0x250)],_0xb7227a(0x303),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0xb7227a(0x204)](u[_0xb7227a(0x30a)]),de(0x1,C[_0xb7227a(0x226)]),de(0x2,a[_0xb7227a(0x2f4)](a[_0xb7227a(0x36e)])),de(0x3,a['IConfigService'])],exports[_0xb7227a(0x250)]);var us=Object[_0xb7227a(0x1ca)],Is=(_0x1aeee3,_0x3ef6eb,_0x2bc315,_0x5cf715)=>{const _0x2e5926=_0xb7227a;for(var _0x3c5029=_0x5cf715>0x1?void 0x0:_0x5cf715?us(_0x3ef6eb,_0x2bc315):_0x3ef6eb,_0x25359b=_0x1aeee3[_0x2e5926(0x1fd)]-0x1,_0x5c5d10;_0x25359b>=0x0;_0x25359b--)(_0x5c5d10=_0x1aeee3[_0x25359b])&&(_0x3c5029=_0x5c5d10(_0x3c5029)||_0x3c5029);return _0x3c5029;},W=(_0x5d1fa0,_0x4dc90a)=>(_0x5c9819,_0x51f305)=>_0x4dc90a(_0x5c9819,_0x51f305,_0x5d1fa0);exports[_0xb7227a(0x2bf)]=class extends u[_0xb7227a(0x42b)]{constructor(_0x5145fb,_0x5a9412,_0x256b14,_0x108b21,_0x2b26d1){super(_0x5145fb,_0x5a9412,_0x256b14,_0x108b21,_0x2b26d1);}async[_0xb7227a(0x401)](_0x239061){const _0x2e544b=_0xb7227a,_0x489bf3=await this['_getSessionTicket'](),_0x4a82ae=this['_createSocketURL'](_0x239061,_0x489bf3);return this[_0x2e544b(0x1e7)](_0x4a82ae);}[_0xb7227a(0x3ec)](_0xded5b,_0x4bb749){const _0x414c06=_0xb7227a,_0x100f70=typeof window>'u'?new URL(_0xded5b):new URL(_0xded5b,window[_0x414c06(0x2dd)][_0x414c06(0x288)]);_0x100f70[_0x414c06(0x28b)][_0x414c06(0x19f)](_0x414c06(0x23e),_0x4bb749);const _0x3c9475=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x414c06(0x2bd)]);return _0x3c9475[_0x414c06(0x279)](_0x414c06(0x33d))&&_0x100f70['searchParams'][_0x414c06(0x19f)]('runId',_0x3c9475[_0x414c06(0x279)](_0x414c06(0x33d))),_0x100f70[_0x414c06(0x331)]();}async['_getSessionTicket'](){const _0x5085db=_0xb7227a;var _0x6a3262,_0x620aff,_0x29df30;const _0x539f37=this['_configService'][_0x5085db(0x2fe)](u[_0x5085db(0x2d4)]),_0x51832f=(_0x6a3262=_0x539f37==null?void 0x0:_0x539f37[_0x5085db(0x310)])!=null?_0x6a3262:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x29df30=(_0x620aff=(await this['_httpService'][_0x5085db(0x279)](_0x51832f,{'headers':{'Content-Type':_0x5085db(0x387)}}))[_0x5085db(0x274)])==null?void 0x0:_0x620aff[_0x5085db(0x1a1)])!=null?_0x29df30:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a['Inject'](a[_0xb7227a(0x36e)])),W(0x1,a[_0xb7227a(0x2f4)](x[_0xb7227a(0x20a)])),W(0x2,a[_0xb7227a(0x38f)]),W(0x3,a[_0xb7227a(0x3c0)]),W(0x4,g[_0xb7227a(0x220)])],exports[_0xb7227a(0x2bf)]);var Ss=Object[_0xb7227a(0x1ca)],ds=(_0x41d666,_0xdfab39,_0x7104ab,_0x38f945)=>{for(var _0x84078e=_0x38f945>0x1?void 0x0:_0x38f945?Ss(_0xdfab39,_0x7104ab):_0xdfab39,_0x1fafb9=_0x41d666['length']-0x1,_0x52484e;_0x1fafb9>=0x0;_0x1fafb9--)(_0x52484e=_0x41d666[_0x1fafb9])&&(_0x84078e=_0x52484e(_0x84078e)||_0x84078e);return _0x84078e;},fe=(_0x27d55f,_0x2efc67)=>(_0x1c1d96,_0x37f0cd)=>_0x2efc67(_0x1c1d96,_0x37f0cd,_0x27d55f);exports[_0xb7227a(0x237)]=class extends a['Disposable']{constructor(_0x2652f7,_0x2a80a3,_0x52f837){const _0x18dc66=_0xb7227a;super(),this[_0x18dc66(0x1cc)]=_0x2652f7,this[_0x18dc66(0x280)]=_0x2a80a3,this[_0x18dc66(0x3e4)]=_0x52f837;}async[_0xb7227a(0x1b2)](_0x5af976,_0x48a642,_0x391d3c,..._0x120556){const _0x53b96a=_0xb7227a;var _0x389c8d,_0x37e966,_0x5e562a,_0x5b350c;const _0x18e895=this[_0x53b96a(0x1cc)][_0x53b96a(0x322)]();if(!_0x18e895)throw new Error(_0x53b96a(0x1ee));const _0x12000a=((_0x389c8d=this[_0x53b96a(0x3e4)][_0x53b96a(0x2fe)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x389c8d:u[_0x53b96a(0x18d)])+'/'+_0x5af976+_0x53b96a(0x28a)+_0x48a642,_0x1f3aa8=new URL(window[_0x53b96a(0x2dd)][_0x53b96a(0x177)]),_0x5c7caf={'scriptId':_0x5af976,'runId':(_0x37e966=_0x1f3aa8['searchParams'][_0x53b96a(0x279)](_0x53b96a(0x33d)))!=null?_0x37e966:'','function':_0x48a642,'unitId':_0x18e895[_0x53b96a(0x1ce)](),'argsOfFunction':JSON[_0x53b96a(0x412)](_0x120556),'invokeId':(_0x5e562a=_0x391d3c[_0x53b96a(0x213)])!=null?_0x5e562a:'','executionId':(_0x5b350c=_0x391d3c[_0x53b96a(0x167)])!=null?_0x5b350c:''};try{const _0x47c0eb=await this[_0x53b96a(0x280)][_0x53b96a(0x36f)](_0x12000a,{'body':_0x5c7caf});return _0x47c0eb['body'][_0x53b96a(0x277)]&&_0x47c0eb[_0x53b96a(0x274)][_0x53b96a(0x277)][_0x53b96a(0x3d4)]!==G['OK']?'Failed':_0x47c0eb[_0x53b96a(0x274)][_0x53b96a(0x388)];}catch{return'Failed';}}},exports[_0xb7227a(0x237)]=ds([fe(0x0,a['IUniverInstanceService']),fe(0x1,a['Inject'](x[_0xb7227a(0x20a)])),fe(0x2,a['IConfigService'])],exports[_0xb7227a(0x237)]);const we=0x7530,ye=_0xb7227a(0x23b);class fs extends a[_0xb7227a(0x3d3)]{constructor(){const _0xe52f60=_0xb7227a;super(),_(this,_0xe52f60(0x312),a['generateRandomId']()),_(this,_0xe52f60(0x317),new Set()),_(this,_0xe52f60(0x186),new Map()),_(this,_0xe52f60(0x19a),null),_(this,_0xe52f60(0x256),new Map()),_(this,'_unitStatus',new Map()),this[_0xe52f60(0x304)]();}[_0xb7227a(0x308)](){const _0x332c04=_0xb7227a;super[_0x332c04(0x308)](),this[_0x332c04(0x256)][_0x332c04(0x339)]((_0x3fcb19,_0x438491)=>this[_0x332c04(0x2bc)](_0x438491)),this['_heartbeatTimer']&&window[_0x332c04(0x3fe)](this[_0x332c04(0x19a)]);}[_0xb7227a(0x41f)](_0x48885b){const _0x5f1f2d=_0xb7227a;return this[_0x5f1f2d(0x1d4)](_0x48885b)['pipe'](I[_0x5f1f2d(0x3c7)]());}[_0xb7227a(0x36d)](_0x1eee0e){const _0x36f3db=_0xb7227a;this[_0x36f3db(0x317)][_0x36f3db(0x3e7)]===0x0&&this['_scheduleHeartbeat'](),this[_0x36f3db(0x317)]['add'](_0x1eee0e),this[_0x36f3db(0x190)]({'type':0x0,'memberID':this[_0x36f3db(0x312)],'unitIDs':[_0x1eee0e],'isForwarded':!0x1});}[_0xb7227a(0x15a)](_0x29cb3f){const _0x316e98=_0xb7227a;this[_0x316e98(0x317)][_0x316e98(0x1e3)](_0x29cb3f),this[_0x316e98(0x317)][_0x316e98(0x3e7)]===0x0&&this[_0x316e98(0x19a)]&&window[_0x316e98(0x3fe)](this[_0x316e98(0x19a)]);}['_init'](){const _0xd072eb=_0xb7227a;this[_0xd072eb(0x3c6)](a[_0xd072eb(0x324)](I['fromEvent'](window,'storage')['subscribe'](_0x25cb19=>{const _0x41546a=_0xd072eb;if(_0x25cb19['key']!==ye||!_0x25cb19[_0x41546a(0x2f0)])return;const _0x50caee=JSON[_0x41546a(0x1b3)](_0x25cb19[_0x41546a(0x2f0)]);this[_0x41546a(0x300)](_0x50caee);}))),window[_0xd072eb(0x20f)](_0xd072eb(0x2d1),()=>this[_0xd072eb(0x190)]({'type':0x1,'memberID':this[_0xd072eb(0x312)],'unitIDs':Array[_0xd072eb(0x32a)](this[_0xd072eb(0x317)])}));}[_0xb7227a(0x300)](_0x15405e){const _0x5bf217=_0xb7227a;switch(_0x15405e[_0x5bf217(0x289)]){case 0x0:this[_0x5bf217(0x3ca)](_0x15405e);break;case 0x1:this['_handleLeaveEvent'](_0x15405e);break;case 0x2:this[_0x5bf217(0x3a6)](_0x15405e);break;}}['_handleJoinEvent'](_0x585faa){const _0x50ed0e=_0xb7227a,{unitIDs:_0x2c41a1,memberID:_0xd00b1e,isForwarded:_0x59a6a6}=_0x585faa;_0x2c41a1['forEach'](_0x375fed=>{const _0x216e81=_0x4227;if(!_0x59a6a6&&this[_0x216e81(0x186)][_0x216e81(0x15d)](_0x375fed)&&this[_0x216e81(0x1d4)](_0x375fed)['next'](u[_0x216e81(0x2cc)][_0x216e81(0x20e)]),!this[_0x216e81(0x186)][_0x216e81(0x15d)](_0x375fed)||!this['_unitOnClients']['get'](_0x375fed)[_0x216e81(0x15d)](_0xd00b1e)){const _0x2650ed=this[_0x216e81(0x186)]['get'](_0x375fed)||new Set();_0x2650ed['add'](_0xd00b1e),this[_0x216e81(0x186)]['set'](_0x375fed,_0x2650ed),this[_0x216e81(0x206)](_0xd00b1e);}}),_0x59a6a6||this[_0x50ed0e(0x190)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x50ed0e(0x317)]],'isForwarded':!0x0});}[_0xb7227a(0x206)](_0x2215b8){const _0x5c5f21=_0xb7227a;this['_removeClearOtherTimer'](_0x2215b8);const _0x50e653=window[_0x5c5f21(0x168)](()=>{const _0xf63f6f=_0x5c5f21;this[_0xf63f6f(0x186)][_0xf63f6f(0x339)](_0x3f4d5e=>{const _0x2ab6fc=_0xf63f6f;_0x3f4d5e[_0x2ab6fc(0x1e3)](_0x2215b8);});},we*0x2);this['_clearOtherTimers'][_0x5c5f21(0x19f)](_0x2215b8,_0x50e653);}[_0xb7227a(0x2bc)](_0x50882c){const _0x31fcca=_0xb7227a;if(this[_0x31fcca(0x256)][_0x31fcca(0x15d)](_0x50882c)){const _0x362d50=this[_0x31fcca(0x256)]['get'](_0x50882c);_0x362d50&&window[_0x31fcca(0x1d2)](_0x362d50),this[_0x31fcca(0x256)][_0x31fcca(0x19f)](_0x50882c,null);}}['_handleLeaveEvent'](_0x3cb76c){const _0x3c8b2b=_0xb7227a,{memberID:_0x34069f,unitIDs:_0x2ee834}=_0x3cb76c;_0x2ee834[_0x3c8b2b(0x339)](_0x1213dc=>{const _0x15fd3b=_0x3c8b2b;var _0x52ea79;const _0x4975cb=this[_0x15fd3b(0x186)][_0x15fd3b(0x279)](_0x1213dc);_0x4975cb&&(_0x4975cb[_0x15fd3b(0x1e3)](_0x34069f),(_0x52ea79=this['_ensureSubject'](_0x1213dc))==null||_0x52ea79['next'](_0x4975cb['size']===0x0?u[_0x15fd3b(0x2cc)][_0x15fd3b(0x2f9)]:u[_0x15fd3b(0x2cc)][_0x15fd3b(0x20e)]));}),this[_0x3c8b2b(0x2bc)](_0x34069f);}['_handleHeartbeatEvent'](_0x1ec1b5){const _0xb7cdc8=_0xb7227a;this[_0xb7cdc8(0x206)](_0x1ec1b5[_0xb7cdc8(0x3db)]);}[_0xb7227a(0x190)](_0x3a6804){const _0x4c6f6b=_0xb7227a;localStorage['setItem'](ye,JSON[_0x4c6f6b(0x412)](_0x3a6804));}[_0xb7227a(0x37a)](){const _0x401025=_0xb7227a;this[_0x401025(0x19a)]=window[_0x401025(0x34d)](()=>{const _0x1d7d47=_0x401025;this[_0x1d7d47(0x190)]({'type':0x2,'memberID':this[_0x1d7d47(0x312)]});},we);}[_0xb7227a(0x1d4)](_0x1e565e){const _0x488e3f=_0xb7227a;return this[_0x488e3f(0x297)][_0x488e3f(0x15d)](_0x1e565e)||this['_unitStatus'][_0x488e3f(0x19f)](_0x1e565e,new I[(_0x488e3f(0x31a))](u[_0x488e3f(0x2cc)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x488e3f(0x297)]['get'](_0x1e565e);}}exports[_0xb7227a(0x27b)]=Oe,exports[_0xb7227a(0x426)]=je,exports[_0xb7227a(0x184)]=fs,exports[_0xb7227a(0x392)]=ke;
|