@univerjs-pro/collaboration-client-ui 0.15.2-insiders.20260119-edc718c → 0.15.2-insiders.20260124-12fc7f0
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/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/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/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x523ac5=_0xc685;(function(_0x1dd230,_0x38bfc6){const _0x2cd4a3=_0xc685,_0x5bf302=_0x1dd230();while(!![]){try{const _0x56e531=-parseInt(_0x2cd4a3(0x239))/0x1+-parseInt(_0x2cd4a3(0x39c))/0x2+parseInt(_0x2cd4a3(0x204))/0x3+parseInt(_0x2cd4a3(0x34b))/0x4+-parseInt(_0x2cd4a3(0x46c))/0x5+parseInt(_0x2cd4a3(0x2da))/0x6*(-parseInt(_0x2cd4a3(0x2d1))/0x7)+parseInt(_0x2cd4a3(0x345))/0x8;if(_0x56e531===_0x38bfc6)break;else _0x5bf302['push'](_0x5bf302['shift']());}catch(_0x27c35f){_0x5bf302['push'](_0x5bf302['shift']());}}}(_0x3549,0x5fe46));var Xe=Object[_0x523ac5(0x1bc)],Ke=(_0xf29677,_0x29509f,_0x2484b9)=>_0x29509f in _0xf29677?Xe(_0xf29677,_0x29509f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2484b9}):_0xf29677[_0x29509f]=_0x2484b9,_=(_0x91e33e,_0x422709,_0x4cef59)=>Ke(_0x91e33e,typeof _0x422709!='symbol'?_0x422709+'':_0x422709,_0x4cef59);Object[_0x523ac5(0x1bc)](exports,Symbol[_0x523ac5(0x2e1)],{'value':_0x523ac5(0x338)});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:_0x2d5de0,..._0x843082}){const _0x438f5b=_0x523ac5,{icon:_0x4c9b30,id:_0x1b640d,className:_0x3bab50,extend:_0x3d3592,..._0xdccb77}=_0x843082,_0x5baae9=(_0x438f5b(0x202)+_0x1b640d+'\x20'+(_0x3bab50||''))[_0x438f5b(0x3f5)](),_0xbddfa3=A[_0x438f5b(0x423)]('_'+Qe());return $e(_0x4c9b30,''+_0x1b640d,{'defIds':_0x4c9b30[_0x438f5b(0x2b7)],'idSuffix':_0xbddfa3[_0x438f5b(0x47c)]},{'ref':_0x2d5de0,'className':_0x5baae9,..._0xdccb77},_0x3d3592);}function $e(_0xe25dd3,_0x46102b,_0x40c339,_0x1021c7,_0x2e1254){const _0x414770=_0x523ac5;return A[_0x414770(0x1d6)](_0xe25dd3['tag'],{'key':_0x46102b,...Je(_0xe25dd3,_0x40c339,_0x2e1254),..._0x1021c7},(Ze(_0xe25dd3,_0x40c339)[_0x414770(0x410)]||[])['map']((_0x165783,_0x3d27c0)=>$e(_0x165783,_0x46102b+'-'+_0xe25dd3[_0x414770(0x353)]+'-'+_0x3d27c0,_0x40c339,void 0x0,_0x2e1254)));}function Je(_0x4e1132,_0x13f07a,_0x1ae16f){const _0x16d78d=_0x523ac5,_0x2711e7={..._0x4e1132[_0x16d78d(0x2ec)]};_0x1ae16f!=null&&_0x1ae16f[_0x16d78d(0x310)]&&_0x2711e7[_0x16d78d(0x305)]===_0x16d78d(0x310)&&(_0x2711e7[_0x16d78d(0x305)]=_0x1ae16f[_0x16d78d(0x310)]),_0x4e1132[_0x16d78d(0x353)]==='mask'&&_0x2711e7['id']&&(_0x2711e7['id']=_0x2711e7['id']+_0x13f07a[_0x16d78d(0x29c)]),Object[_0x16d78d(0x24b)](_0x2711e7)[_0x16d78d(0x447)](([_0x3cb1eb,_0x2491f3])=>{const _0x1892f3=_0x16d78d;_0x3cb1eb==='mask'&&typeof _0x2491f3==_0x1892f3(0x37f)&&(_0x2711e7[_0x3cb1eb]=_0x2491f3[_0x1892f3(0x287)](/url\(#(.*)\)/,_0x1892f3(0x222)+_0x13f07a['idSuffix']+')'));});const {defIds:_0xcacd14}=_0x13f07a;return!_0xcacd14||_0xcacd14[_0x16d78d(0x374)]===0x0||(_0x4e1132[_0x16d78d(0x353)]===_0x16d78d(0x1b4)&&_0x2711e7[_0x16d78d(0x347)]&&(_0x2711e7[_0x16d78d(0x347)]=_0x2711e7[_0x16d78d(0x347)]+_0x13f07a[_0x16d78d(0x29c)]),Object[_0x16d78d(0x24b)](_0x2711e7)[_0x16d78d(0x447)](([_0x2bd7c6,_0x2082b8])=>{const _0x146ae6=_0x16d78d;typeof _0x2082b8==_0x146ae6(0x37f)&&(_0x2711e7[_0x2bd7c6]=_0x2082b8['replace'](/url\(#(.*)\)/,_0x146ae6(0x222)+_0x13f07a[_0x146ae6(0x29c)]+')'));})),_0x2711e7;}function Ze(_0x150c93,_0x3fc090){const _0x3bbad7=_0x523ac5;var _0xb8c8a4;const {defIds:_0xd23985}=_0x3fc090;return!_0xd23985||_0xd23985[_0x3bbad7(0x374)]===0x0?_0x150c93:_0x150c93[_0x3bbad7(0x353)]==='defs'&&((_0xb8c8a4=_0x150c93[_0x3bbad7(0x410)])!=null&&_0xb8c8a4['length'])?{..._0x150c93,'children':_0x150c93[_0x3bbad7(0x410)][_0x3bbad7(0x42e)](_0xb710f5=>typeof _0xb710f5['attrs']['id']==_0x3bbad7(0x37f)&&_0xd23985&&_0xd23985[_0x3bbad7(0x2a3)](_0xb710f5[_0x3bbad7(0x2ec)]['id'])?{..._0xb710f5,'attrs':{..._0xb710f5['attrs'],'id':_0xb710f5[_0x3bbad7(0x2ec)]['id']+_0x3fc090[_0x3bbad7(0x29c)]}}:_0xb710f5)}:_0x150c93;}function Qe(){const _0x4687d4=_0x523ac5;return Math[_0x4687d4(0x3af)]()[_0x4687d4(0x31e)](0x24)[_0x4687d4(0x2d7)](0x2,0x8);}pe['displayName']=_0x523ac5(0x1c6);const et={'tag':_0x523ac5(0x436),'attrs':{'xmlns':_0x523ac5(0x3a1),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x523ac5(0x35b),'height':_0x523ac5(0x35b)},'children':[{'tag':'g','attrs':{'clipPath':_0x523ac5(0x2f6)},'children':[{'tag':_0x523ac5(0x1b5),'attrs':{'stroke':_0x523ac5(0x271),'d':_0x523ac5(0x382),'strokeLinecap':_0x523ac5(0x2a8),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x523ac5(0x2a1),'attrs':{},'children':[{'tag':_0x523ac5(0x3c0),'attrs':{'id':_0x523ac5(0x38a)},'children':[{'tag':_0x523ac5(0x1b5),'attrs':{'fill':_0x523ac5(0x225),'d':_0x523ac5(0x33b)}}]}]}],'defIds':[_0x523ac5(0x38a)]},xe=A[_0x523ac5(0x224)](function(_0x59a4b7,_0x9a7082){const _0x434f94=_0x523ac5;return A[_0x434f94(0x1d6)](pe,Object[_0x434f94(0x36b)]({},_0x59a4b7,{'id':_0x434f94(0x3b3),'ref':_0x9a7082,'icon':et}));});xe[_0x523ac5(0x1f1)]=_0x523ac5(0x2c6);const tt={'tag':_0x523ac5(0x436),'attrs':{'xmlns':_0x523ac5(0x3a1),'fill':_0x523ac5(0x207),'viewBox':'0\x200\x2017\x2016','width':_0x523ac5(0x35b),'height':_0x523ac5(0x35b)},'children':[{'tag':'g','attrs':{'clipPath':_0x523ac5(0x237)},'children':[{'tag':'path','attrs':{'stroke':_0x523ac5(0x271),'d':_0x523ac5(0x234),'strokeLinecap':_0x523ac5(0x2a8),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x523ac5(0x2a1),'attrs':{},'children':[{'tag':_0x523ac5(0x3c0),'attrs':{'id':_0x523ac5(0x461)},'children':[{'tag':_0x523ac5(0x1b5),'attrs':{'fill':_0x523ac5(0x225),'d':_0x523ac5(0x33b),'transform':_0x523ac5(0x3bf)}}]}]}],'defIds':[_0x523ac5(0x461)]},Be=A[_0x523ac5(0x224)](function(_0x368c11,_0x5269a7){const _0x354de5=_0x523ac5;return A[_0x354de5(0x1d6)](pe,Object[_0x354de5(0x36b)]({},_0x368c11,{'id':'on-line-icon','ref':_0x5269a7,'icon':tt}));});Be[_0x523ac5(0x1f1)]=_0x523ac5(0x27c);function st(_0x4c17d2){const _0x4a4576=_0x523ac5;switch(_0x4c17d2){case u[_0x4a4576(0x32d)][_0x4a4576(0x30c)]:return _0x4a4576(0x2ea);case u[_0x4a4576(0x32d)][_0x4a4576(0x24d)]:return _0x4a4576(0x41d);case u[_0x4a4576(0x32d)][_0x4a4576(0x25d)]:return _0x4a4576(0x277);case u[_0x4a4576(0x32d)][_0x4a4576(0x3c9)]:return _0x4a4576(0x34a);case u[_0x4a4576(0x32d)][_0x4a4576(0x1b9)]:case u[_0x4a4576(0x32d)]['AWAITING_WITH_PENDING']:return _0x4a4576(0x435);case u['CollaborationStatus'][_0x4a4576(0x1ef)]:case u[_0x4a4576(0x32d)][_0x4a4576(0x42c)]:return _0x4a4576(0x1b3);}}function it(_0x1da926){const _0x585083=_0x523ac5,{status$:_0x4ff791}=_0x1da926,_0x2db156=O[_0x585083(0x31a)](_0x4ff791,u[_0x585083(0x32d)][_0x585083(0x3c9)]),_0x4e5064=O[_0x585083(0x413)](a['LocaleService']),_0x27360d=O['useDependency'](u['CollaborationSessionService']),_0x24f1f2=_0x2db156!==u[_0x585083(0x32d)][_0x585083(0x30c)],_0x154a32=_0x4e5064['t'](st(_0x2db156)),_0x10f74d=_0x24f1f2?M[_0x585083(0x31d)](Be,{}):M[_0x585083(0x31d)](xe,{}),_0x1e8500=A[_0x585083(0x40b)](()=>{const _0x2583b7=_0x585083;_0x24f1f2||_0x27360d[_0x2583b7(0x245)]();},[_0x24f1f2,_0x27360d]);function _0x3a8fda(){const _0x460bc7=_0x585083;return M['jsxs']('div',{'className':_0x460bc7(0x23a),'onClick':_0x1e8500,'children':[M['jsx'](_0x460bc7(0x27a),{'className':p[_0x460bc7(0x1f2)](_0x460bc7(0x27d),{'univer-text-green-500':_0x24f1f2,'univer-text-red-500':!_0x24f1f2}),'children':_0x10f74d}),M['jsx'](_0x460bc7(0x27a),{'className':_0x460bc7(0x2bc),'children':_0x154a32})]});}return _0x24f1f2?_0x3a8fda():M[_0x585083(0x31d)](p[_0x585083(0x378)],{'title':_0x4e5064['t'](_0x585083(0x1d0)),'children':_0x3a8fda()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x83a02e,_0x28efcb,_0x5bd625,_0x398119)=>{const _0x51ef05=_0x523ac5;for(var _0x2dc53c=_0x398119>0x1?void 0x0:_0x398119?nt(_0x28efcb,_0x5bd625):_0x28efcb,_0x2c505d=_0x83a02e[_0x51ef05(0x374)]-0x1,_0x4f0e18;_0x2c505d>=0x0;_0x2c505d--)(_0x4f0e18=_0x83a02e[_0x2c505d])&&(_0x2dc53c=_0x4f0e18(_0x2dc53c)||_0x2dc53c);return _0x2dc53c;},K=(_0x3d652d,_0x3ff7aa)=>(_0x585f7f,_0x19d3f5)=>_0x3ff7aa(_0x585f7f,_0x19d3f5,_0x3d652d);exports[_0x523ac5(0x3e6)]=class extends a[_0x523ac5(0x273)]{constructor(_0x2ff088,_0x463189,_0x1e0862,_0x14b830){const _0x22a9e3=_0x523ac5;super(),_(this,_0x22a9e3(0x2ac),new I[(_0x22a9e3(0x2c5))](u[_0x22a9e3(0x32d)][_0x22a9e3(0x3c9)])),(this[_0x22a9e3(0x1df)]=_0x2ff088,this[_0x22a9e3(0x37d)]=_0x463189,this[_0x22a9e3(0x2d9)]=_0x1e0862,this[_0x22a9e3(0x439)]=_0x14b830,this['_initStatusComponent'](),this[_0x22a9e3(0x3da)]());}['_initStatusListener'](){const _0x15c946=_0x523ac5;this[_0x15c946(0x1d1)](this[_0x15c946(0x1df)][_0x15c946(0x453)][_0x15c946(0x3ff)](I['switchMap'](()=>{const _0x28c3ac=_0x15c946,_0x247d10=this[_0x28c3ac(0x1df)][_0x28c3ac(0x288)]();return _0x247d10?this[_0x28c3ac(0x2d9)][_0x28c3ac(0x292)](_0x247d10['getUnitId']()):I['of'](null);}),I[_0x15c946(0x2ba)](_0x2014e3=>_0x2014e3?_0x2014e3[_0x15c946(0x261)]:I['of'](u[_0x15c946(0x32d)][_0x15c946(0x3c9)])))[_0x15c946(0x418)](_0x301c1b=>{const _0x523d36=_0x15c946;this[_0x523d36(0x2ac)][_0x523d36(0x251)](_0x301c1b);}));}[_0x523ac5(0x2bb)](){const _0x173c8c=_0x523ac5;this['disposeWithMe'](this['_uiPartsService'][_0x173c8c(0x1ac)](O[_0x173c8c(0x302)][_0x173c8c(0x221)],()=>O[_0x173c8c(0x28b)](ot({'status$':this['_status$'][_0x173c8c(0x2c4)]()}),this[_0x173c8c(0x37d)])));}},exports[_0x523ac5(0x3e6)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a[_0x523ac5(0x269)])),K(0x2,a['Inject'](u[_0x523ac5(0x228)])),K(0x3,O['IUIPartsService'])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x37e4ed){const {status$:_0x23ed9f}=_0x37e4ed;return function(){return M['jsx'](it,{'status$':_0x23ed9f});};}const Oe=a['createIdentifier'](_0x523ac5(0x1ec));var at=Object[_0x523ac5(0x3f4)],ct=(_0x263694,_0x1bc41f,_0x230f61,_0x5c0698)=>{const _0xa398e2=_0x523ac5;for(var _0x29c337=_0x5c0698>0x1?void 0x0:_0x5c0698?at(_0x1bc41f,_0x230f61):_0x1bc41f,_0x2d42d2=_0x263694[_0xa398e2(0x374)]-0x1,_0x2adafe;_0x2d42d2>=0x0;_0x2d42d2--)(_0x2adafe=_0x263694[_0x2d42d2])&&(_0x29c337=_0x2adafe(_0x29c337)||_0x29c337);return _0x29c337;},Y=(_0x578a1a,_0x4d0cca)=>(_0x3edd95,_0x2f58a1)=>_0x4d0cca(_0x3edd95,_0x2f58a1,_0x578a1a);exports[_0x523ac5(0x1e2)]=class extends a['RxDisposable']{constructor(_0x3e3f5d,_0x327aa6,_0x3501a9,_0x3966d4,_0x30b845){const _0x2f57f4=_0x523ac5;super(),this['_urlService']=_0x3e3f5d,this[_0x2f57f4(0x3dd)]=_0x327aa6,this[_0x2f57f4(0x23b)]=_0x3501a9,this[_0x2f57f4(0x2e2)]=_0x3966d4,_0x30b845?_0x30b845==null||_0x30b845['whenReady']()[_0x2f57f4(0x2fd)](()=>this[_0x2f57f4(0x456)]()):(this[_0x2f57f4(0x3dd)][_0x2f57f4(0x2a5)](_0x2f57f4(0x293),_0x2f57f4(0x2b4)),this[_0x2f57f4(0x456)]());}async[_0x523ac5(0x456)](){const _0xd7052d=_0x523ac5,_0x4876bd=this['_urlService'][_0xd7052d(0x238)](_0xd7052d(0x2bf)),_0x3ae9aa=this[_0xd7052d(0x2b9)][_0xd7052d(0x238)]('type'),_0x53c53f=this['_urlService'][_0xd7052d(0x238)]('subunit');if(!_0x4876bd||!_0x3ae9aa){this[_0xd7052d(0x3dd)][_0xd7052d(0x2a5)](_0xd7052d(0x293),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1d18fc=await this[_0xd7052d(0x2e2)]['loadUnit'](_0x4876bd,Number(_0x3ae9aa),_0x53c53f);_0x1d18fc&&_0x1d18fc instanceof a['Workbook']&&this[_0xd7052d(0x265)](_0x1d18fc);}async['_setupSubUnitSync'](_0x224563){const _0x440e72=_0x523ac5;await this['_updateSubUnitFromURLParams'](_0x224563),_0x224563[_0x440e72(0x411)][_0x440e72(0x3ff)](I[_0x440e72(0x1fa)](this[_0x440e72(0x334)]))[_0x440e72(0x418)](_0x3b37f2=>{const _0x3f9901=_0x440e72;_0x3b37f2&&this[_0x3f9901(0x457)](_0x3b37f2);}),this[_0x440e72(0x2b9)][_0x440e72(0x24c)][_0x440e72(0x3ff)](I['takeUntil'](this[_0x440e72(0x334)]))[_0x440e72(0x418)](()=>this[_0x440e72(0x2f2)](_0x224563));}[_0x523ac5(0x457)](_0x426689,_0x1a96c2=!0x1){const _0x23714e=_0x523ac5,_0x117dec=this[_0x23714e(0x2b9)]['getParam'](_0x23714e(0x285));_0x426689[_0x23714e(0x1af)]()!==_0x117dec&&this[_0x23714e(0x2b9)][_0x23714e(0x44b)](_0x23714e(0x285),_0x426689['getSheetId'](),_0x1a96c2);}async['_updateSubUnitFromURLParams'](_0x31291d){const _0x52ba45=_0x523ac5;var _0x404988;const _0x370d5b=this[_0x52ba45(0x2b9)][_0x52ba45(0x238)](_0x52ba45(0x285));if(!_0x370d5b||!_0x31291d[_0x52ba45(0x429)](_0x370d5b)){const _0x4bee09=_0x31291d[_0x52ba45(0x387)]()[0x0],_0x3bc4d4=_0x31291d[_0x52ba45(0x429)](_0x4bee09);if(!_0x3bc4d4)return;this['_updateURLWithCurrentState'](_0x3bc4d4,!0x0),await this[_0x52ba45(0x23b)][_0x52ba45(0x1be)](v[_0x52ba45(0x350)]['id'],{'unitId':_0x31291d['getUnitId'](),'subUnitId':_0x4bee09});return;}((_0x404988=_0x31291d[_0x52ba45(0x1b2)]())==null?void 0x0:_0x404988[_0x52ba45(0x1af)]())!==_0x370d5b&&await this['_commandService'][_0x52ba45(0x1be)](v[_0x52ba45(0x350)]['id'],{'unitId':_0x31291d[_0x52ba45(0x38b)](),'subUnitId':_0x370d5b});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x523ac5(0x29a)]),Y(0x3,a[_0x523ac5(0x23c)](u[_0x523ac5(0x43d)])),Y(0x4,a[_0x523ac5(0x1e6)](qe[_0x523ac5(0x328)]))],exports[_0x523ac5(0x1e2)]);var lt=Object['getOwnPropertyDescriptor'],_t=(_0x2391eb,_0x42a0f7,_0x43c508,_0xd394dc)=>{const _0x5407ef=_0x523ac5;for(var _0x25e71e=_0xd394dc>0x1?void 0x0:_0xd394dc?lt(_0x42a0f7,_0x43c508):_0x42a0f7,_0x1c35d7=_0x2391eb[_0x5407ef(0x374)]-0x1,_0x294a86;_0x1c35d7>=0x0;_0x1c35d7--)(_0x294a86=_0x2391eb[_0x1c35d7])&&(_0x25e71e=_0x294a86(_0x25e71e)||_0x25e71e);return _0x25e71e;},De=(_0x1945a0,_0x2ea5eb)=>(_0x50de37,_0x3004bc)=>_0x2ea5eb(_0x50de37,_0x3004bc,_0x1945a0);let me=class extends a[_0x523ac5(0x2bd)]{constructor(_0x3f5467,_0x48e268){const _0x4d7969=_0x523ac5;super(),this['_docClipboardService']=_0x3f5467,this['_imageIoService']=_0x48e268,this[_0x4d7969(0x456)]();}['_init'](){const _0x2e1a94=_0x523ac5,_0x28203b=this;this[_0x2e1a94(0x1d1)](this[_0x2e1a94(0x21d)][_0x2e1a94(0x3cf)]({'onBeforePasteImage':async _0x1d75d9=>{const _0x4a9b7d=_0x2e1a94,_0x1ecd25=await _0x28203b[_0x4a9b7d(0x354)][_0x4a9b7d(0x211)](_0x1d75d9);return _0x1ecd25?{'source':_0x1ecd25[_0x4a9b7d(0x1eb)],'imageSourceType':_0x1ecd25[_0x4a9b7d(0x2ca)]}:null;}}));}};me=_t([De(0x0,T[_0x523ac5(0x452)]),De(0x1,ze['IImageIoService'])],me);const Ne=['purple.300',_0x523ac5(0x372),_0x523ac5(0x325),_0x523ac5(0x46b),_0x523ac5(0x232),_0x523ac5(0x329)];class Re extends a[_0x523ac5(0x273)]{constructor(){const _0x1b3906=_0x523ac5;super(...arguments),_(this,_0x1b3906(0x41f),new Map()),_(this,'_colorIndex',0x0);}[_0x523ac5(0x3d4)](_0x2a4f9b){const _0x2c02a6=_0x523ac5;if(this[_0x2c02a6(0x41f)][_0x2c02a6(0x376)](_0x2a4f9b))return this['_assignedColors']['get'](_0x2a4f9b);const _0xc8707a=Ne[this['_colorIndex']];return this[_0x2c02a6(0x45c)]=(this[_0x2c02a6(0x45c)]+0x1)%Ne['length'],this['_assignedColors'][_0x2c02a6(0x2ab)](_0x2a4f9b,_0xc8707a),_0xc8707a;}}function Fe(_0x4dc9a4){const _0xb1848a=_0x523ac5;let _0x48f408='';for(const _0x503272 of _0x4dc9a4){const {startOffset:_0x38872e,endOffset:_0x14c21b,isActive:_0x4c890b,rangeType:_0x3efa45,segmentId:_0x1b94cc,segmentPage:_0x57e69e}=_0x503272;_0x48f408[_0xb1848a(0x374)]&&(_0x48f408+=','),_0x48f408+=_0x38872e+':'+_0x14c21b+':'+(_0x4c890b?'1':'0')+':'+_0x3efa45+':'+_0x1b94cc+':'+_0x57e69e;}return _0x48f408;}function ht(_0x105ac4){const _0x1c097a=_0x523ac5,_0x30c462=_0x105ac4[_0x1c097a(0x200)](','),_0xc2fcd0=[];for(const _0x36ee64 of _0x30c462){const [_0x53dd48,_0x333b67,_0x4ea276,_0x5d2c12,_0x1e1d58,_0xab9d81]=_0x36ee64[_0x1c097a(0x200)](':');_0xc2fcd0[_0x1c097a(0x41c)]({'startOffset':Number(_0x53dd48),'endOffset':Number(_0x333b67),'collapsed':_0x53dd48===_0x333b67,'isActive':_0x4ea276==='1','rangeType':_0x5d2c12===a['DOC_RANGE_TYPE']['TEXT']?a[_0x1c097a(0x1aa)][_0x1c097a(0x1cb)]:a[_0x1c097a(0x1aa)][_0x1c097a(0x2e0)],'segmentId':typeof _0x1e1d58==_0x1c097a(0x37f)?String(_0x1e1d58):'','segmentPage':Number(_0xab9d81!=null?_0xab9d81:-0x1)});}return _0xc2fcd0[_0x1c097a(0x1e3)](_0x4ad2d2=>_0x4ad2d2[_0x1c097a(0x35c)])||(_0xc2fcd0[0x0][_0x1c097a(0x35c)]=!0x0),_0xc2fcd0;}class be extends a['RxDisposable']{constructor(){const _0x1e945c=_0x523ac5;super(...arguments),_(this,_0x1e945c(0x324),new I[(_0x1e945c(0x2c5))](null)),_(this,_0x1e945c(0x2e5),this[_0x1e945c(0x324)][_0x1e945c(0x2c4)]());}[_0x523ac5(0x3d2)](_0x3a9c97){const _0xcc7a0d=_0x523ac5,{unitID:_0x964d52,memberID:_0x1d0f62,textRanges:_0x670778}=_0x3a9c97,_0x233185=Fe(_0x670778);if(_0x233185==='')return;const _0x2cf054={'unitID':_0x964d52,'memberID':_0x1d0f62,'selection':_0x233185};this[_0xcc7a0d(0x324)][_0xcc7a0d(0x251)](_0x2cf054);}}var ut=Object[_0x523ac5(0x3f4)],It=(_0x2d4248,_0x112dd1,_0x2321a4,_0xd5cd93)=>{const _0x59b50f=_0x523ac5;for(var _0x4823dd=_0xd5cd93>0x1?void 0x0:_0xd5cd93?ut(_0x112dd1,_0x2321a4):_0x112dd1,_0x3cc349=_0x2d4248[_0x59b50f(0x374)]-0x1,_0x4ea26d;_0x3cc349>=0x0;_0x3cc349--)(_0x4ea26d=_0x2d4248[_0x3cc349])&&(_0x4823dd=_0x4ea26d(_0x4823dd)||_0x4823dd);return _0x4823dd;},U=(_0x3c5b5f,_0x1378ff)=>(_0xf40dac,_0x5f01b2)=>_0x1378ff(_0xf40dac,_0x5f01b2,_0x3c5b5f);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x5ea4b0,_0x14f6f3,_0x307361,_0xdfb779,_0x56f881,_0x275544,_0x2536ad,_0x3acbe0,_0x5394fa){const _0x6fdc3a=_0x523ac5;super(),_(this,_0x6fdc3a(0x356),!0x1),_(this,'_init',!0x1),_(this,_0x6fdc3a(0x366),new I[(_0x6fdc3a(0x2c5))](new Map())),_(this,_0x6fdc3a(0x459),this['_cursorInfo$'][_0x6fdc3a(0x2c4)]()),_(this,_0x6fdc3a(0x391),new I[(_0x6fdc3a(0x2c5))]([])),_(this,_0x6fdc3a(0x34e),this[_0x6fdc3a(0x391)][_0x6fdc3a(0x3ff)](I[_0x6fdc3a(0x428)](St))),_(this,_0x6fdc3a(0x445),a['debounce'](_0x5a9afd=>{const _0x14ad5f=_0x6fdc3a,_0x574bc8={'eventID':g[_0x14ad5f(0x270)][_0x14ad5f(0x469)],'data':{'unitID':this[_0x14ad5f(0x3e9)],'memberID':this['_session']['getMemberID'](),'selection':Fe(_0x5a9afd)}};this[_0x14ad5f(0x400)]['send'](_0x574bc8,this[_0x14ad5f(0x3e9)]);},dt)),(this[_0x6fdc3a(0x3e9)]=_0x5ea4b0,this['_session']=_0x14f6f3,this['_injector']=_0x307361,this[_0x6fdc3a(0x42d)]=_0xdfb779,this[_0x6fdc3a(0x395)]=_0x56f881,this['_syncEditingCollabCursorService']=_0x275544,this['_transformService']=_0x2536ad,this['_univerInstanceService']=_0x3acbe0,this[_0x6fdc3a(0x23b)]=_0x5394fa);}get['cursorInfo'](){const _0x57469f=_0x523ac5;return this[_0x57469f(0x366)][_0x57469f(0x2eb)]();}get['roomMembers'](){const _0x2014f2=_0x523ac5;return this[_0x2014f2(0x391)]['getValue']();}['dispose'](){const _0x4ad868=_0x523ac5;super['dispose'](),this[_0x4ad868(0x366)][_0x4ad868(0x251)](new Map()),this[_0x4ad868(0x366)][_0x4ad868(0x1d5)](),this['_roomMembers$'][_0x4ad868(0x251)]([]),this[_0x4ad868(0x391)][_0x4ad868(0x1d5)]();}[_0x523ac5(0x3ae)](){const _0x1f4539=_0x523ac5;this[_0x1f4539(0x456)]||(this[_0x1f4539(0x456)]=!0x0,this[_0x1f4539(0x400)][_0x1f4539(0x223)][_0x1f4539(0x3ff)](I[_0x1f4539(0x1fa)](this[_0x1f4539(0x334)]))[_0x1f4539(0x418)](_0x50ed09=>{const _0x25bb16=_0x1f4539;_0x50ed09===u['SessionStatus'][_0x25bb16(0x3de)]?this[_0x25bb16(0x309)]():this[_0x25bb16(0x298)]();}),this[_0x1f4539(0x400)][_0x1f4539(0x2b0)][_0x1f4539(0x3ff)](I[_0x1f4539(0x1fa)](this[_0x1f4539(0x334)]))[_0x1f4539(0x418)](_0x1e844e=>{const _0x2923c2=_0x1f4539,_0xb8341c=_0x1e844e[_0x2923c2(0x1d4)];_0xb8341c===g[_0x2923c2(0x270)]['UPDATE_CURSOR']&&this[_0x2923c2(0x290)](_0x1e844e),_0xb8341c===g[_0x2923c2(0x270)][_0x2923c2(0x352)]&&this['_onCursorDelete'](_0x1e844e);}),this['disposeWithMe'](this[_0x1f4539(0x23b)][_0x1f4539(0x42f)](_0x5c008f=>{const _0x7384b7=_0x1f4539,_0x3c8ea2=_0x5c008f['params'];_0x3c8ea2!=null&&this[_0x7384b7(0x356)]&&_0x5c008f['id']===V[_0x7384b7(0x29f)]['id']&&_0x3c8ea2[_0x7384b7(0x315)]===this[_0x7384b7(0x3e9)]&&_0x3c8ea2['isEditing']===!0x1&&_0x3c8ea2[_0x7384b7(0x3ab)][_0x7384b7(0x374)]>0x0&&this[_0x7384b7(0x445)](_0x3c8ea2[_0x7384b7(0x3ab)]);})),this[_0x1f4539(0x1fd)][_0x1f4539(0x2e5)]['pipe'](I[_0x1f4539(0x1fa)](this[_0x1f4539(0x334)]))[_0x1f4539(0x418)](_0x3c92c3=>{const _0x8821fd=_0x1f4539;if((_0x3c92c3==null?void 0x0:_0x3c92c3['unitID'])!==this[_0x8821fd(0x3e9)])return;const _0x170ae1={'eventID':g[_0x8821fd(0x270)]['UPDATE_CURSOR'],'data':_0x3c92c3};this[_0x8821fd(0x290)](_0x170ae1);}),this[_0x1f4539(0x1d1)](this[_0x1f4539(0x23b)][_0x1f4539(0x42f)](_0xd45015=>{const _0x2e286e=_0x1f4539;if(_0xd45015['params']==null)return;const _0x233f82=_0xd45015[_0x2e286e(0x399)];if(_0xd45015['id']!==V[_0x2e286e(0x377)]['id']||_0x233f82['unitId']!==this[_0x2e286e(0x3e9)])return;const _0x462ba0={'id':_0x2e286e(0x1c7),'params':_0x233f82},_0x5009f6=this[_0x2e286e(0x3a2)];for(const [_0x2b5315,_0x51b5e6]of _0x5009f6){const _0x2a5e01={'id':_0x2e286e(0x1c7),'params':{'unitId':this[_0x2e286e(0x3e9)],'actions':null,'textRanges':_0x51b5e6[_0x2e286e(0x3ab)]}},_0x5399c5=this[_0x2e286e(0x330)][_0x2e286e(0x27b)](_0x462ba0,_0x2a5e01,!0x1);if(g[_0x2e286e(0x2d6)](_0x5399c5))throw _0x5399c5['error'];_0x5009f6[_0x2e286e(0x2ab)](_0x2b5315,{..._0x51b5e6,'ranges':_0x5399c5[_0x2e286e(0x272)][_0x2e286e(0x399)][_0x2e286e(0x1ab)]});}queueMicrotask(()=>{const _0x2515e5=_0x2e286e;this[_0x2515e5(0x366)][_0x2515e5(0x251)](_0x5009f6);});})));}[_0x523ac5(0x290)](_0x27f252){const _0x50ff88=_0x523ac5;var _0x39f8f9,_0x2268c5;const {memberID:_0x2ed65d,selection:_0x3e5fa0}=_0x27f252[_0x50ff88(0x2a0)],_0x12f19b=ht(_0x3e5fa0),_0x218de3=(_0x2268c5=(_0x39f8f9=this[_0x50ff88(0x395)][_0x50ff88(0x3bb)](this[_0x50ff88(0x3e9)],_0x2ed65d))==null?void 0x0:_0x39f8f9[_0x50ff88(0x2e8)])!=null?_0x2268c5:_0x50ff88(0x451),_0x2e60e8={'color':this[_0x50ff88(0x42d)][_0x50ff88(0x3d4)](_0x2ed65d),'name':_0x218de3,'ranges':_0x12f19b},_0x158d11=this['cursorInfo'];_0x158d11['set'](_0x2ed65d,_0x2e60e8),this[_0x50ff88(0x366)][_0x50ff88(0x251)](_0x158d11);}[_0x523ac5(0x407)](_0x4c2aee){const _0x542c8b=_0x523ac5,{memberID:_0x2c4daa}=_0x4c2aee[_0x542c8b(0x2a0)],_0x2be1ff=this['cursorInfo'];_0x2be1ff['delete'](_0x2c4daa),this[_0x542c8b(0x366)]['next'](_0x2be1ff);}[_0x523ac5(0x309)](){const _0x1d292b=_0x523ac5;var _0x4db86c;if(this[_0x1d292b(0x356)]=!0x0,((_0x4db86c=this[_0x1d292b(0x1df)][_0x1d292b(0x288)]())==null?void 0x0:_0x4db86c[_0x1d292b(0x38b)]())!==this[_0x1d292b(0x3e9)])return;const _0x46a17d=this['_injector'][_0x1d292b(0x43b)](V[_0x1d292b(0x29d)])[_0x1d292b(0x318)]();Array[_0x1d292b(0x23d)](_0x46a17d)&&_0x46a17d[_0x1d292b(0x374)]>0x0&&this['_updateLocalCursor'](_0x46a17d);}[_0x523ac5(0x298)](){const _0x3476bb=_0x523ac5;this[_0x3476bb(0x356)]=!0x1;}};ve=It([U(0x2,a['Inject'](a[_0x523ac5(0x269)])),U(0x3,a['Inject'](Re)),U(0x4,a[_0x523ac5(0x23c)](u[_0x523ac5(0x262)])),U(0x5,a[_0x523ac5(0x23c)](be)),U(0x6,g[_0x523ac5(0x3eb)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x523ac5(0x29a)])],ve);var ft=Object[_0x523ac5(0x3f4)],mt=(_0x59386d,_0x49f29e,_0x69e11a,_0x2c0d43)=>{const _0x1152a3=_0x523ac5;for(var _0x3cdda7=_0x2c0d43>0x1?void 0x0:_0x2c0d43?ft(_0x49f29e,_0x69e11a):_0x49f29e,_0x5a9a12=_0x59386d[_0x1152a3(0x374)]-0x1,_0x42bc36;_0x5a9a12>=0x0;_0x5a9a12--)(_0x42bc36=_0x59386d[_0x5a9a12])&&(_0x3cdda7=_0x42bc36(_0x3cdda7)||_0x3cdda7);return _0x3cdda7;},w=(_0x446ad2,_0x126d46)=>(_0x29dfd5,_0x1c52df)=>_0x126d46(_0x29dfd5,_0x1c52df,_0x446ad2);const vt=0x12c,gt=0x64,Et=()=>{let _0x3fdf58=[],_0x3ef1bd=!0x1;return _0x505d15=>{const _0x52c79f=_0xc685;_0x3fdf58[_0x52c79f(0x41c)](_0x505d15),_0x3ef1bd||(_0x3ef1bd=!0x0,setTimeout(()=>{const _0x40b736=_0x52c79f;_0x3fdf58[_0x40b736(0x447)](_0x40561f=>_0x40561f()),_0x3fdf58=[],_0x3ef1bd=!0x1;}));};};let ge=class extends a[_0x523ac5(0x2bd)]{constructor(_0x33a3b7,_0x1b92de,_0x149eb1,_0x13914e,_0x432b26,_0x3d831a,_0x3a5fb3,_0x64900f){const _0xd18d5a=_0x523ac5;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0xd18d5a(0x2c5))](new Map())),_(this,_0xd18d5a(0x459),this[_0xd18d5a(0x366)][_0xd18d5a(0x2c4)]()),_(this,_0xd18d5a(0x391),new I[(_0xd18d5a(0x2c5))]([])),_(this,_0xd18d5a(0x34e),this[_0xd18d5a(0x391)][_0xd18d5a(0x3ff)](I[_0xd18d5a(0x428)](vt))),_(this,'_updateLocalCursor',a[_0xd18d5a(0x247)]((_0x567ae3,_0x404459)=>{const _0x3a7c6f=_0xd18d5a,_0x39cc19={'eventID':g[_0x3a7c6f(0x270)][_0x3a7c6f(0x469)],'data':{'unitID':this[_0x3a7c6f(0x3e9)],'memberID':this[_0x3a7c6f(0x400)]['getMemberID'](),'selection':B[_0x3a7c6f(0x43f)](_0x567ae3,_0x404459[_0x3a7c6f(0x34c)])}};this[_0x3a7c6f(0x400)][_0x3a7c6f(0x3a6)](_0x39cc19,this[_0x3a7c6f(0x3e9)]);},gt)),(this[_0xd18d5a(0x3e9)]=_0x33a3b7,this[_0xd18d5a(0x400)]=_0x1b92de,this[_0xd18d5a(0x37d)]=_0x149eb1,this['_colorAssignService']=_0x13914e,this[_0xd18d5a(0x395)]=_0x432b26,this['_univerInstanceService']=_0x3d831a,this[_0xd18d5a(0x23b)]=_0x3a5fb3,this[_0xd18d5a(0x3cc)]=_0x64900f);}get[_0x523ac5(0x3a2)](){const _0x57737b=_0x523ac5;return this[_0x57737b(0x366)][_0x57737b(0x2eb)]();}get[_0x523ac5(0x386)](){return this['_roomMembers$']['getValue']();}[_0x523ac5(0x1e5)](){const _0x3446f0=_0x523ac5;super[_0x3446f0(0x1e5)](),this[_0x3446f0(0x366)]['next'](new Map()),this[_0x3446f0(0x366)][_0x3446f0(0x1d5)](),this[_0x3446f0(0x391)][_0x3446f0(0x251)]([]),this[_0x3446f0(0x391)][_0x3446f0(0x1d5)]();}[_0x523ac5(0x3ae)](){const _0x49596a=_0x523ac5;this['_init']||(this['_init']=!0x0,this[_0x49596a(0x400)][_0x49596a(0x223)][_0x49596a(0x3ff)](I[_0x49596a(0x1fa)](this[_0x49596a(0x334)]))[_0x49596a(0x418)](_0x5aeec8=>{const _0x9e7525=_0x49596a;_0x5aeec8===u[_0x9e7525(0x30b)]['ONLINE']?this[_0x9e7525(0x309)]():this[_0x9e7525(0x298)]();}),this['_session']['event$']['pipe'](I['takeUntil'](this[_0x49596a(0x334)]))[_0x49596a(0x418)](_0x56a89d=>{const _0x364e8a=_0x49596a,_0x4aec1a=_0x56a89d[_0x364e8a(0x1d4)];_0x4aec1a===g[_0x364e8a(0x270)]['UPDATE_CURSOR']&&this[_0x364e8a(0x290)](_0x56a89d),_0x4aec1a===g[_0x364e8a(0x270)][_0x364e8a(0x352)]&&this[_0x364e8a(0x407)](_0x56a89d);}),this['_onRefRangeChange'](),this[_0x49596a(0x1d1)](this[_0x49596a(0x23b)][_0x49596a(0x42f)](_0x230be8=>{const _0x1a1a41=_0x49596a;if(this[_0x1a1a41(0x356)]&&_0x230be8['id']===v[_0x1a1a41(0x20c)]['id']&&_0x230be8[_0x1a1a41(0x399)][_0x1a1a41(0x315)]===this[_0x1a1a41(0x3e9)]){const _0x5b19d4=_0x230be8[_0x1a1a41(0x399)];this[_0x1a1a41(0x445)](_0x5b19d4[_0x1a1a41(0x246)],_0x5b19d4[_0x1a1a41(0x1e0)][0x0]);}})));}[_0x523ac5(0x290)](_0x15e91c){const _0x474ca0=_0x523ac5;var _0xce8ab1,_0x3f1409;const {memberID:_0x385c27,selection:_0x30d3dc}=_0x15e91c[_0x474ca0(0x2a0)],{sheetName:_0x23900e,range:_0x436e8e}=B['deserializeRangeWithSheet'](_0x30d3dc),_0x283ba6={'name':(_0x3f1409=(_0xce8ab1=this['_memberService'][_0x474ca0(0x3bb)](this[_0x474ca0(0x3e9)],_0x385c27))==null?void 0x0:_0xce8ab1[_0x474ca0(0x2e8)])!=null?_0x3f1409:_0x474ca0(0x451),'range':this[_0x474ca0(0x212)](_0x23900e,_0x436e8e),'sheetID':_0x23900e,'color':this[_0x474ca0(0x42d)]['assignAColorForMemberID'](_0x385c27),'selection':_0x30d3dc},_0x534955=this[_0x474ca0(0x3a2)];_0x534955['set'](_0x385c27,_0x283ba6),this[_0x474ca0(0x366)][_0x474ca0(0x251)](_0x534955);}['_onCursorDelete'](_0x5d4cb8){const _0x1534de=_0x523ac5,{memberID:_0x41858a}=_0x5d4cb8[_0x1534de(0x2a0)],_0xe3f6a8=this[_0x1534de(0x3a2)];_0xe3f6a8['delete'](_0x41858a),this['_cursorInfo$'][_0x1534de(0x251)](_0xe3f6a8);}[_0x523ac5(0x212)](_0x5267cc,_0x284918){const _0x3611a9=_0x523ac5;var _0x2cafd5,_0x2250c0;const _0xef6dba=(_0x2250c0=(_0x2cafd5=this['_univerInstanceService'][_0x3611a9(0x229)](this['unitID']))==null?void 0x0:_0x2cafd5[_0x3611a9(0x429)](_0x5267cc))==null?void 0x0:_0x2250c0[_0x3611a9(0x2a6)]();return(_0xef6dba==null?void 0x0:_0xef6dba[_0x3611a9(0x2ff)](_0x1a5c50=>a[_0x3611a9(0x37b)][_0x3611a9(0x1b0)](_0x1a5c50,_0x284918)))||_0x284918;}[_0x523ac5(0x344)](){const _0x28a796=_0x523ac5,_0x57677e=new a[(_0x28a796(0x28c))](),_0xf386c6=Et(),_0x1c9748=()=>{const _0x2e9146=_0x28a796;_0x57677e['dispose']();const _0x11a6e9=(_0x3ef956,_0x16175e,_0x552926,_0x49c8fd)=>{const _0x2641e9=_0xc685;let _0x5ac008=[];switch(_0x3ef956['id']){case v['EffectRefRangId'][_0x2641e9(0x1f0)]:{_0x5ac008=v[_0x2641e9(0x443)](_0x3ef956,_0x49c8fd);break;}case v['EffectRefRangId'][_0x2641e9(0x3c1)]:{_0x5ac008=v[_0x2641e9(0x1d2)](_0x3ef956,_0x49c8fd);break;}case v[_0x2641e9(0x47a)][_0x2641e9(0x2d0)]:{_0x5ac008=v[_0x2641e9(0x1c2)](_0x3ef956,_0x49c8fd);break;}case v[_0x2641e9(0x47a)][_0x2641e9(0x1c8)]:{_0x5ac008=v[_0x2641e9(0x3d8)](_0x3ef956,_0x49c8fd);break;}case v[_0x2641e9(0x47a)][_0x2641e9(0x1ca)]:{_0x5ac008=v[_0x2641e9(0x420)](_0x3ef956,_0x49c8fd);break;}case v[_0x2641e9(0x47a)][_0x2641e9(0x3e1)]:{_0x5ac008=v[_0x2641e9(0x438)](_0x3ef956,_0x49c8fd);break;}case v[_0x2641e9(0x47a)][_0x2641e9(0x2b8)]:{_0x5ac008=v[_0x2641e9(0x458)](_0x3ef956,_0x49c8fd);break;}case v[_0x2641e9(0x47a)][_0x2641e9(0x3b9)]:{_0x5ac008=v[_0x2641e9(0x300)](_0x3ef956,_0x49c8fd);break;}case v['EffectRefRangId'][_0x2641e9(0x342)]:{_0x5ac008=v['handleIRemoveRow'](_0x3ef956,_0x49c8fd);break;}}const _0xb499e2=v['runRefRangeMutations'](_0x5ac008,_0x49c8fd),_0x6bfe1=this[_0x2641e9(0x3a2)]['get'](_0x16175e);if(_0x6bfe1&&_0xb499e2){const _0xbf5916={..._0x6bfe1,'range':_0xb499e2};this['cursorInfo'][_0x2641e9(0x2ab)](_0x16175e,_0xbf5916),_0xf386c6(()=>{const _0x798d1b=_0x2641e9,_0x145b86=this[_0x798d1b(0x3cc)][_0x798d1b(0x3df)](_0xb499e2,_0x6a7b22=>(_0x145b86[_0x798d1b(0x1e5)](),_0x11a6e9(_0x6a7b22,_0x16175e,_0x552926,_0xb499e2)));_0x57677e[_0x798d1b(0x412)](_0x145b86);});}return{'redos':[],'undos':[]};};this[_0x2e9146(0x3a2)][_0x2e9146(0x447)]((_0x14827e,_0x51958c)=>{const _0x299236=_0x2e9146,{range:_0x3838ae,sheetID:_0x28dd07}=_0x14827e,_0x4a97ad=this['_refRangeService'][_0x299236(0x3df)](_0x3838ae,_0x10fb28=>(_0x4a97ad['dispose'](),_0x11a6e9(_0x10fb28,_0x51958c,_0x28dd07,_0x3838ae)));_0x57677e[_0x299236(0x412)](_0x4a97ad);});};this['disposeWithMe'](a[_0x28a796(0x448)](this[_0x28a796(0x366)][_0x28a796(0x418)](()=>{_0x1c9748();})));}[_0x523ac5(0x309)](){const _0x5320c6=_0x523ac5;var _0x483cd7,_0x4401b2;if(this[_0x5320c6(0x356)]=!0x0,((_0x483cd7=this['_univerInstanceService'][_0x5320c6(0x288)]())==null?void 0x0:_0x483cd7[_0x5320c6(0x38b)]())!==this[_0x5320c6(0x3e9)])return;const _0x2d3e1b=(_0x4401b2=this[_0x5320c6(0x37d)][_0x5320c6(0x43b)](v[_0x5320c6(0x208)])[_0x5320c6(0x3ca)]())==null?void 0x0:_0x4401b2[0x0],_0xff18c5=this[_0x5320c6(0x1df)][_0x5320c6(0x369)](a[_0x5320c6(0x35a)][_0x5320c6(0x3d6)])[_0x5320c6(0x1b2)]();_0x2d3e1b&&_0xff18c5&&this[_0x5320c6(0x445)](_0xff18c5[_0x5320c6(0x1af)](),_0x2d3e1b);}['_toggleOffline'](){const _0x485cc8=_0x523ac5;this[_0x485cc8(0x356)]=!0x1;}};ge=mt([w(0x2,a['Inject'](a[_0x523ac5(0x269)])),w(0x3,a[_0x523ac5(0x23c)](Re)),w(0x4,a['Inject'](u[_0x523ac5(0x262)])),w(0x5,a[_0x523ac5(0x216)]),w(0x6,a[_0x523ac5(0x29a)]),w(0x7,a[_0x523ac5(0x23c)](v[_0x523ac5(0x22f)]))],ge);var Ct=Object[_0x523ac5(0x3f4)],Tt=(_0x39a984,_0x57f5c0,_0x22ac40,_0x33d50e)=>{const _0x7b966a=_0x523ac5;for(var _0x1d0318=_0x33d50e>0x1?void 0x0:_0x33d50e?Ct(_0x57f5c0,_0x22ac40):_0x57f5c0,_0x24452f=_0x39a984[_0x7b966a(0x374)]-0x1,_0x1fa806;_0x24452f>=0x0;_0x24452f--)(_0x1fa806=_0x39a984[_0x24452f])&&(_0x1d0318=_0x1fa806(_0x1d0318)||_0x1d0318);return _0x1d0318;},ce=(_0x490175,_0xc5fd86)=>(_0xd7ea44,_0x5b1366)=>_0xc5fd86(_0xd7ea44,_0x5b1366,_0x490175);let F=class extends a['RxDisposable']{constructor(_0x42cd1f,_0x390fb9,_0x1a7c0f){const _0x26598b=_0x523ac5;super(),_(this,'_entities',new Map()),_(this,_0x26598b(0x257),new I[(_0x26598b(0x3a8))]()),(this['_univerInstanceService']=_0x42cd1f,this['_injector']=_0x390fb9,this[_0x26598b(0x3aa)]=_0x1a7c0f,this[_0x26598b(0x456)]());}[_0x523ac5(0x1e5)](){const _0x25e666=_0x523ac5;super['dispose'](),this[_0x25e666(0x257)][_0x25e666(0x1d5)](),this[_0x25e666(0x33f)][_0x25e666(0x447)](_0x297174=>_0x297174[_0x25e666(0x1e5)]());}['getCollabCursors$'](_0x100289){const _0x10b092=_0x523ac5;return this[_0x10b092(0x33f)]['has'](_0x100289)?this[_0x10b092(0x33f)]['get'](_0x100289)[_0x10b092(0x459)]:this[_0x10b092(0x257)]['pipe'](I[_0x10b092(0x27f)](_0x566369=>_0x566369[_0x10b092(0x3e9)]===_0x100289),I['switchMap'](_0x31e974=>_0x31e974[_0x10b092(0x459)]));}['_init'](){const _0x38e272=_0x523ac5;this[_0x38e272(0x1df)][_0x38e272(0x422)](a[_0x38e272(0x35a)][_0x38e272(0x3d6)])['pipe'](I[_0x38e272(0x1fa)](this[_0x38e272(0x334)]))[_0x38e272(0x418)](async _0x5621d2=>{const _0x1ddc1a=_0x38e272,_0x208430=_0x5621d2[_0x1ddc1a(0x38b)](),_0x685a43=await this[_0x1ddc1a(0x2d2)](_0x208430);this['_entityInit$'][_0x1ddc1a(0x251)](_0x685a43),this[_0x1ddc1a(0x33f)]['set'](_0x208430,_0x685a43);}),this['_univerInstanceService'][_0x38e272(0x422)](a['UniverInstanceType']['UNIVER_DOC'])[_0x38e272(0x3ff)](I[_0x38e272(0x1fa)](this[_0x38e272(0x334)]))[_0x38e272(0x3ff)](I[_0x38e272(0x27f)](_0x3ae804=>!_0x3ae804[_0x38e272(0x38b)]()[_0x38e272(0x2a7)]('__')))[_0x38e272(0x418)](async _0x4ed039=>{const _0xd3d5b5=_0x38e272,_0xe55a8d=_0x4ed039['getUnitId'](),_0x1a7995=await this[_0xd3d5b5(0x3bc)](_0xe55a8d);this[_0xd3d5b5(0x257)][_0xd3d5b5(0x251)](_0x1a7995),this[_0xd3d5b5(0x33f)]['set'](_0xe55a8d,_0x1a7995);}),I[_0x38e272(0x36f)](this[_0x38e272(0x1df)][_0x38e272(0x44e)](a[_0x38e272(0x35a)][_0x38e272(0x24f)]),this['_univerInstanceService'][_0x38e272(0x44e)](a[_0x38e272(0x35a)][_0x38e272(0x3d6)]))[_0x38e272(0x3ff)](I[_0x38e272(0x1fa)](this[_0x38e272(0x334)]))[_0x38e272(0x418)](_0x19cce0=>{const _0x17fd70=_0x38e272,_0x9f82c8=_0x19cce0['getUnitId'](),_0x135e45=this['_entities'][_0x17fd70(0x43b)](_0x9f82c8);_0x135e45&&(_0x135e45['dispose'](),this[_0x17fd70(0x33f)]['delete'](_0x9f82c8));});}async[_0x523ac5(0x2d2)](_0x3b58f2){const _0xbc3bf3=_0x523ac5,_0x2c0ddf=await this[_0xbc3bf3(0x3aa)]['requireSession'](_0x3b58f2),_0x53ea1c=this['_injector'][_0xbc3bf3(0x1fc)](ge,_0x3b58f2,_0x2c0ddf);return _0x53ea1c[_0xbc3bf3(0x3ae)](),_0x53ea1c;}async['_startDocCollabCursor'](_0x325ffa){const _0x4995f6=_0x523ac5,_0x11799f=await this[_0x4995f6(0x3aa)]['requireSession'](_0x325ffa),_0x3a9bef=this['_injector'][_0x4995f6(0x1fc)](ve,_0x325ffa,_0x11799f);return _0x3a9bef[_0x4995f6(0x3ae)](),_0x3a9bef;}};F=Tt([ce(0x0,a[_0x523ac5(0x216)]),ce(0x1,a[_0x523ac5(0x23c)](a[_0x523ac5(0x269)])),ce(0x2,a[_0x523ac5(0x23c)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0xb2bab1,_0x37dbcd){const _0x1cad5b=_0x523ac5;let {radius:_0x3f9718,width:_0x39484c,height:_0x2e82fd}=_0x37dbcd;_0x3f9718=_0x3f9718!=null?_0x3f9718:0x0,_0x39484c=_0x39484c!=null?_0x39484c:0x1e,_0x2e82fd=_0x2e82fd!=null?_0x2e82fd:0x1e;let _0x309537=0x0,_0x45d0e4=0x0,_0x2bc539=0x0;_0x309537=_0x45d0e4=_0x2bc539=Math[_0x1cad5b(0x44a)](_0x3f9718,_0x39484c/0x2,_0x2e82fd/0x2),_0xb2bab1[_0x1cad5b(0x2b1)](),_0xb2bab1[_0x1cad5b(0x2f1)](_0x309537,0x0),_0xb2bab1[_0x1cad5b(0x478)](_0x39484c-_0x45d0e4,0x0),_0xb2bab1[_0x1cad5b(0x3c3)](_0x39484c-_0x45d0e4,_0x45d0e4,_0x45d0e4,Math['PI']*0x3/0x2,0x0,!0x1),_0xb2bab1[_0x1cad5b(0x478)](_0x39484c,_0x2e82fd-_0x2bc539),_0xb2bab1[_0x1cad5b(0x3c3)](_0x39484c-_0x2bc539,_0x2e82fd-_0x2bc539,_0x2bc539,0x0,Math['PI']/0x2,!0x1),_0xb2bab1['lineTo'](0x0,_0x2e82fd),_0xb2bab1[_0x1cad5b(0x478)](0x0,_0x309537),_0xb2bab1[_0x1cad5b(0x3c3)](_0x309537,_0x309537,_0x309537,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xb2bab1[_0x1cad5b(0x363)](),_0x37dbcd[_0x1cad5b(0x305)]&&(_0xb2bab1['save'](),_0xb2bab1[_0x1cad5b(0x3a3)]=_0x37dbcd['fill'],_0x37dbcd[_0x1cad5b(0x249)]===_0x1cad5b(0x20e)?_0xb2bab1['fill']('evenodd'):_0xb2bab1[_0x1cad5b(0x305)](),_0xb2bab1[_0x1cad5b(0x431)]());}class re extends C[_0x523ac5(0x3f2)]{constructor(_0x31d53d,_0x1285bb){const _0x2c4e32=_0x523ac5;super(_0x31d53d,_0x1285bb),_(this,_0x2c4e32(0x2af)),_(this,_0x2c4e32(0x3ba)),(this[_0x2c4e32(0x2af)]=_0x1285bb==null?void 0x0:_0x1285bb['color'],this[_0x2c4e32(0x3ba)]=_0x1285bb==null?void 0x0:_0x1285bb[_0x2c4e32(0x3ba)]);}static[_0x523ac5(0x209)](_0x252181,_0x412c76){const _0x5c8a1d=_0x523ac5,{text:_0x375242,color:_0x9f8bd7}=_0x412c76;_0x252181[_0x5c8a1d(0x22e)](),_0x252181[_0x5c8a1d(0x468)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5f2c7b=_0x252181[_0x5c8a1d(0x434)](_0x375242)[_0x5c8a1d(0x21c)],_0x32a94f=Math[_0x5c8a1d(0x44a)](_0x5f2c7b+0x2*le,Ue);Ot(_0x252181,{'height':X,'radius':0x4,'width':_0x32a94f,'fill':_0x9f8bd7}),_0x252181[_0x5c8a1d(0x3a3)]=_0x5c8a1d(0x44f);const _0x5d29c3=le,_0x363cba=X-pt,_0x5be3ab=Ue-0x2*le;if(_0x5f2c7b>_0x5be3ab){let _0x2e20a8='',_0x5bc018=0x0;for(const _0x2e617f of _0x375242){const _0x40c589=_0x252181[_0x5c8a1d(0x434)](_0x2e617f)[_0x5c8a1d(0x21c)];if(_0x5bc018+_0x40c589<=_0x5be3ab-_0x252181['measureText'](_0x5c8a1d(0x446))[_0x5c8a1d(0x21c)])_0x2e20a8+=_0x2e617f,_0x5bc018+=_0x40c589;else{_0x2e20a8+=_0x5c8a1d(0x446);break;}}_0x252181[_0x5c8a1d(0x308)](_0x2e20a8,_0x5d29c3,_0x363cba);}else _0x252181[_0x5c8a1d(0x308)](_0x375242,_0x5d29c3,_0x363cba);_0x252181['restore']();}[_0x523ac5(0x471)](_0x251187){const _0x35a44f=_0x523ac5;re[_0x35a44f(0x209)](_0x251187,this);}}const _e=_0x523ac5(0x45a),Rt=_0x523ac5(0x304),bt=_0x523ac5(0x266),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut='rgba(255,\x20255,\x20255,\x200.01)';class Le{constructor(_0x477e3f,_0xcb027b,_0x3c5aef,_0x138098){const _0x3074c9=_0x523ac5;_(this,_0x3074c9(0x3e5),[]),_(this,_0x3074c9(0x263),null),_(this,_0x3074c9(0x2f8),null),_(this,_0x3074c9(0x3c4),null),_(this,_0x3074c9(0x33a),null),_(this,_0x3074c9(0x39b),null),(this[_0x3074c9(0x3f1)]=_0x477e3f,this[_0x3074c9(0x31f)]=_0xcb027b,this[_0x3074c9(0x3ec)]=_0x3c5aef,this[_0x3074c9(0x392)]=_0x138098,this[_0x3074c9(0x307)]());}set[_0x523ac5(0x34f)](_0x2bddf4){const _0x66f95d=_0x523ac5;_0x2bddf4?(this[_0x66f95d(0x3c4)]&&this[_0x66f95d(0x3c4)][_0x66f95d(0x28e)](),this['_textBubble']&&this[_0x66f95d(0x2f8)][_0x66f95d(0x3c2)]()):(this[_0x66f95d(0x3c4)]&&this['_anchorDot']['show'](),this[_0x66f95d(0x2f8)]&&this[_0x66f95d(0x2f8)][_0x66f95d(0x28e)]());}[_0x523ac5(0x1e5)](){const _0x2efa89=_0x523ac5;for(const _0x2bfb78 of this[_0x2efa89(0x3e5)])_0x2bfb78[_0x2efa89(0x1e5)]();this['_textBubble']&&this[_0x2efa89(0x2f8)][_0x2efa89(0x1e5)](),this[_0x2efa89(0x3c4)]&&this[_0x2efa89(0x3c4)][_0x2efa89(0x1e5)](),this[_0x2efa89(0x263)]&&this['_anchor']['dispose'](),this[_0x2efa89(0x39b)]&&this[_0x2efa89(0x39b)]();}[_0x523ac5(0x307)](){const _0xb73d4a=_0x523ac5;var _0x18bc1f;const {_docSkeleton:_0x2da637,_document:_0x4bd1a4}=this,{color:_0x4d3e58,name:_0xf9182b,ranges:_0x5297df}=this[_0xb73d4a(0x3f1)],_0x31c45b=_0x4bd1a4[_0xb73d4a(0x25c)](),{docsLeft:_0x217712,docsTop:_0x51fabb}=_0x31c45b,_0x39c155=new T[(_0xb73d4a(0x440))](_0x31c45b,_0x2da637);for(const {startOffset:_0xe67a1a,endOffset:_0x3ecff7,rangeType:_0x152039,segmentId:_0xe9007,segmentPage:_0x195abb,collapsed:_0x17600d,isActive:_0x16ca1f}of _0x5297df){const _0xea1c8a=_0x2da637[_0xb73d4a(0x3a7)](_0xe67a1a,!0x0,_0xe9007,_0x195abb);let _0x240c08=_0x2da637[_0xb73d4a(0x3a7)](_0x3ecff7,!0x0,_0xe9007,_0x195abb);if(_0x240c08==null&&(_0x240c08=_0x2da637[_0xb73d4a(0x3a7)](_0x3ecff7-0x1,!0x1,_0xe9007,_0x195abb)),_0x16ca1f){const {contentBoxPointGroup:_0x23cdee}=_0x39c155[_0xb73d4a(0x1d7)](_0x240c08,_0x240c08);if(_0x23cdee[_0xb73d4a(0x374)]===0x0)continue;this[_0xb73d4a(0x226)](_0x4d3e58,_0x23cdee,_0x217712,_0x51fabb,_0xf9182b),this[_0xb73d4a(0x39b)]=this[_0xb73d4a(0x371)]();}if(_0xea1c8a&&_0x240c08){if(_0x152039===a[_0xb73d4a(0x1aa)][_0xb73d4a(0x2e0)]){const _0x2bd15e=new T[(_0xb73d4a(0x389))](_0x31c45b,_0x2da637),{pointGroup:_0x21a40d}=(_0x18bc1f=_0x2bd15e[_0xb73d4a(0x1d7)](_0xea1c8a,_0x240c08))!=null?_0x18bc1f:{};if(_0x21a40d==null||_0x21a40d['length']===0x0)continue;this[_0xb73d4a(0x248)](_0x4d3e58,_0x21a40d,_0x217712,_0x51fabb);}else{if(!_0x17600d){const {borderBoxPointGroup:_0x1f0e9e}=_0x39c155[_0xb73d4a(0x1d7)](_0xea1c8a,_0x240c08);if(_0x1f0e9e[_0xb73d4a(0x374)]===0x0)continue;this['_drawTextRange'](_0x4d3e58,_0x1f0e9e,_0x217712,_0x51fabb);}}}}}[_0x523ac5(0x226)](_0x215f1a,_0x378844,_0x5a101d,_0x2503b3,_0x4acd3d){const _0x3a53ba=_0x523ac5,_0x30a6d2=this['_getAnchorBounding'](_0x378844),{left:_0xdf0533,top:_0x17784d,height:_0x32d27b}=_0x30a6d2,_0x42426a=this[_0x3a53ba(0x258)](),_0x5926ba=Nt/_0x42426a,_0x367a88=new C[(_0x3a53ba(0x240))](_e+a[_0x3a53ba(0x1e1)](H),{'left':_0xdf0533+_0x5a101d-_0x5926ba,'top':_0x17784d+_0x2503b3,'height':_0x32d27b,'width':Dt,'fill':_0x215f1a||C[_0x3a53ba(0x22b)](a[_0x3a53ba(0x3a4)][_0x3a53ba(0x397)],0x0),'strokeWidth':_0x5926ba,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x367a88,this['_scene'][_0x3a53ba(0x2c1)](_0x367a88,T['TEXT_RANGE_LAYER_INDEX']);const _0x29a06d=new C[(_0x3a53ba(0x240))](_e+a[_0x3a53ba(0x1e1)](H),{'left':_0xdf0533+_0x5a101d-_0x5926ba,'top':_0x17784d+_0x2503b3-he/0x2,'height':he,'width':he,'fill':_0x215f1a||C[_0x3a53ba(0x22b)](a[_0x3a53ba(0x3a4)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x215f1a||C[_0x3a53ba(0x22b)](a[_0x3a53ba(0x3a4)][_0x3a53ba(0x397)],0x0),'evented':!0x1});this[_0x3a53ba(0x3c4)]=_0x29a06d,this[_0x3a53ba(0x31f)][_0x3a53ba(0x2c1)](_0x29a06d,T[_0x3a53ba(0x2f3)]);const _0x3c663f=new re(_e+a[_0x3a53ba(0x1e1)](H),{'left':_0xdf0533+_0x5a101d-_0x5926ba,'top':_0x17784d+_0x2503b3-X,'text':_0x4acd3d,'color':_0x215f1a});this[_0x3a53ba(0x2f8)]=_0x3c663f,this['_scene'][_0x3a53ba(0x2c1)](_0x3c663f,T['TEXT_RANGE_LAYER_INDEX']),this[_0x3a53ba(0x34f)]=!0x1;}[_0x523ac5(0x371)](){const _0x4a82d8=_0x523ac5,_0x168a80=this['_anchor'][_0x4a82d8(0x215)][_0x4a82d8(0x22d)](()=>{const _0x54450a=_0x4a82d8;this[_0x54450a(0x34f)]=!0x0;}),_0x3da449=this['_anchor'][_0x4a82d8(0x256)][_0x4a82d8(0x22d)](()=>{const _0x1d6fab=_0x4a82d8;this[_0x1d6fab(0x33a)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x35790c=_0x1d6fab;this[_0x35790c(0x34f)]=!0x1;},0x7d0);});return()=>{const _0x408092=_0x4a82d8;_0x168a80[_0x408092(0x3c7)](),_0x3da449[_0x408092(0x3c7)]();};}[_0x523ac5(0x316)](_0x1d76e7,_0x2fe594,_0x3c89ca,_0x10ce0a){const _0x23f674=_0x523ac5,_0x4dbc87=new a[(_0x23f674(0x337))](_0x1d76e7)[_0x23f674(0x425)](0.2)[_0x23f674(0x3b8)](),_0x5766e0=new C['RegularPolygon'](Rt+a[_0x23f674(0x1e1)](H),{'pointsGroup':_0x2fe594,'fill':_0x4dbc87||C[_0x23f674(0x22b)](a[_0x23f674(0x3a4)][_0x23f674(0x397)],0.2),'left':_0x3c89ca,'top':_0x10ce0a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x5766e0),this['_scene'][_0x23f674(0x2c1)](_0x5766e0,T[_0x23f674(0x2f3)]);}['_drawRectRange'](_0x363d95,_0x4ceb25,_0x5d08f6,_0x2c9605){const _0x4d99a5=_0x523ac5,_0x2c6447=new a[(_0x4d99a5(0x337))](_0x363d95)['setAlpha'](0.2)[_0x4d99a5(0x3b8)](),_0x10dd7a=new C['RegularPolygon'](bt+a[_0x4d99a5(0x1e1)](H),{'pointsGroup':_0x4ceb25,'fill':_0x2c6447||C[_0x4d99a5(0x22b)](a['COLORS'][_0x4d99a5(0x397)],0.2),'left':_0x5d08f6,'top':_0x2c9605,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4d99a5(0x41c)](_0x10dd7a),this['_scene'][_0x4d99a5(0x2c1)](_0x10dd7a,T['TEXT_RANGE_LAYER_INDEX']);}[_0x523ac5(0x46d)](_0x58a009){const _0x330f88=_0x58a009[0x0],_0x4dd561=_0x330f88[0x0],_0x474761=_0x330f88[0x2],{x:_0x1d65d8,y:_0x2501d6}=_0x4dd561,{x:_0x5e1918,y:_0x105a50}=_0x474761;return{'left':_0x1d65d8,'top':_0x2501d6,'width':_0x5e1918-_0x1d65d8,'height':_0x105a50-_0x2501d6};}[_0x523ac5(0x258)](){const _0x100ca0=_0x523ac5,{scaleX:_0x3fd0a4,scaleY:_0x34a807}=this[_0x100ca0(0x31f)][_0x100ca0(0x390)]();return Math['max'](_0x3fd0a4,_0x34a807);}}var Lt=Object[_0x523ac5(0x3f4)],Mt=(_0x479848,_0xb9b394,_0x559d87,_0x1b8170)=>{const _0x397d64=_0x523ac5;for(var _0x34a791=_0x1b8170>0x1?void 0x0:_0x1b8170?Lt(_0xb9b394,_0x559d87):_0xb9b394,_0x224ac0=_0x479848[_0x397d64(0x374)]-0x1,_0x54aa7c;_0x224ac0>=0x0;_0x224ac0--)(_0x54aa7c=_0x479848[_0x224ac0])&&(_0x34a791=_0x54aa7c(_0x34a791)||_0x34a791);return _0x34a791;},q=(_0x44d20d,_0x4de50c)=>(_0x5d3d5a,_0x441773)=>_0x4de50c(_0x5d3d5a,_0x441773,_0x44d20d);let Ee=class extends a[_0x523ac5(0x2bd)]{constructor(_0x46d810,_0x3f8338,_0x466a3d,_0x40c098,_0x4dcedf){const _0x17d8bb=_0x523ac5;super(),_(this,_0x17d8bb(0x2dd),[]),_(this,'_cursors',[]),(this[_0x17d8bb(0x36e)]=_0x46d810,this[_0x17d8bb(0x357)]=_0x3f8338,this[_0x17d8bb(0x465)]=_0x466a3d,this[_0x17d8bb(0x23b)]=_0x40c098,this[_0x17d8bb(0x235)]=_0x4dcedf,this[_0x17d8bb(0x456)]());}[_0x523ac5(0x456)](){const _0x4529b3=_0x523ac5,_0x23d73f=this['_context']['unitId'],_0x3dbb4e=this['_docSkeletonManagerService'];this[_0x4529b3(0x1d1)](I[_0x4529b3(0x30f)]([this['_collabCursorController']['getCollabCursors$'](_0x23d73f),this['_themeService'][_0x4529b3(0x44d)]])[_0x4529b3(0x3ff)]($[_0x4529b3(0x42e)](([_0x5a1a53,_0xdad2fa])=>({'skeleton':_0x3dbb4e['getSkeleton'](),'cursors':[..._0x5a1a53['values']()]['flatMap'](_0x548237=>({..._0x548237,'color':this[_0x4529b3(0x235)]['getColorFromTheme'](_0x548237[_0x4529b3(0x2af)])}))})))[_0x4529b3(0x418)](_0x538769=>{const _0x4e753f=_0x4529b3;if(this[_0x4e753f(0x27e)](),_0x538769){const {skeleton:_0x3f3f5a,cursors:_0x856a30}=_0x538769;this[_0x4e753f(0x32f)](_0x3f3f5a,_0x856a30);}})),this['_initResize'](),this[_0x4529b3(0x1cf)]();}['_updateCollabCursors'](_0x523214,_0x4a9b63){const _0xfa4f58=_0x523ac5,{scene:_0x4a4b13,mainComponent:_0x354bdb}=this[_0xfa4f58(0x36e)],_0x1beb00=_0x4a9b63[_0xfa4f58(0x42e)](_0x4561ef=>new Le(_0x4561ef,_0x4a4b13,_0x523214,_0x354bdb));this[_0xfa4f58(0x2dd)]=_0x1beb00,this[_0xfa4f58(0x40f)]=_0x4a9b63;}[_0x523ac5(0x359)](){const _0x568763=_0x523ac5;this[_0x568763(0x27e)]();const {scene:_0x161a6d,mainComponent:_0x295c93}=this['_context'],_0xd82c5a=this[_0x568763(0x357)]['getSkeleton'](),_0x31c350=this['_cursors'][_0x568763(0x42e)](_0x5654c4=>new Le(_0x5654c4,_0x161a6d,_0xd82c5a,_0x295c93));this[_0x568763(0x2dd)]=_0x31c350;}[_0x523ac5(0x27e)](){const _0x9cbee3=_0x523ac5;this[_0x9cbee3(0x2dd)]['forEach'](_0x2f20f5=>_0x2f20f5[_0x9cbee3(0x1e5)]()),this[_0x9cbee3(0x2dd)]=[];}[_0x523ac5(0x1cf)](){const _0x2b6f48=_0x523ac5,_0x59a734=[T[_0x2b6f48(0x317)]['id']];this[_0x2b6f48(0x1d1)](this['_commandService'][_0x2b6f48(0x42f)](_0x4de84c=>{const _0x88cbd=_0x2b6f48;_0x59a734[_0x88cbd(0x2a3)](_0x4de84c['id'])&&_0x4de84c[_0x88cbd(0x399)][_0x88cbd(0x315)]===this[_0x88cbd(0x36e)][_0x88cbd(0x315)]&&this[_0x88cbd(0x359)]();}));}[_0x523ac5(0x462)](){const _0x2fa182=_0x523ac5;this[_0x2fa182(0x1d1)](a['fromEventSubject'](this[_0x2fa182(0x36e)][_0x2fa182(0x2b6)][_0x2fa182(0x2f9)])[_0x2fa182(0x3ff)]($[_0x2fa182(0x27f)](_0x5b7e04=>_0x5b7e04[_0x2fa182(0x430)]===C[_0x2fa182(0x3e2)][_0x2fa182(0x47e)]),$[_0x2fa182(0x3d9)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x523ac5(0x23c)](V[_0x523ac5(0x220)])),q(0x2,a[_0x523ac5(0x23c)](F)),q(0x3,a[_0x523ac5(0x29a)]),q(0x4,a[_0x523ac5(0x23c)](a[_0x523ac5(0x1d3)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x523ac5(0x3f2)]{constructor(_0xa9313c,_0x313cd1){const _0x177d28=_0x523ac5;super(_0xa9313c,_0x313cd1),_(this,_0x177d28(0x1ba)),_(this,_0x177d28(0x46f),!0x1),_(this,'_range'),_(this,_0x177d28(0x385),''),_(this,_0x177d28(0x3fd),_0x177d28(0x2e6)),_(this,_0x177d28(0x384)),(_0x313cd1&&this[_0x177d28(0x348)](_0x313cd1),this[_0x177d28(0x215)][_0x177d28(0x22d)](()=>this[_0x177d28(0x348)]({'hovered':!0x0})),this[_0x177d28(0x256)][_0x177d28(0x22d)](()=>this[_0x177d28(0x348)]({'hovered':!0x1})));}[_0x523ac5(0x348)](_0x21780b){const _0x20a00d=_0x523ac5;var _0x3c08b4,_0x32ac00,_0x1d2390,_0x3484ac,_0x4ca5f3,_0x177f51;this[_0x20a00d(0x1ba)]=(_0x3c08b4=_0x21780b[_0x20a00d(0x2af)])!=null?_0x3c08b4:this[_0x20a00d(0x1ba)],this[_0x20a00d(0x46f)]=(_0x32ac00=_0x21780b['hovered'])!=null?_0x32ac00:this[_0x20a00d(0x46f)],this['_range']=(_0x1d2390=_0x21780b[_0x20a00d(0x34c)])!=null?_0x1d2390:this[_0x20a00d(0x1ee)],this['_name']=(_0x3484ac=_0x21780b[_0x20a00d(0x2e8)])!=null?_0x3484ac:this[_0x20a00d(0x385)],this['_labelPosition']=(_0x4ca5f3=_0x21780b[_0x20a00d(0x467)])!=null?_0x4ca5f3:this[_0x20a00d(0x3fd)],this[_0x20a00d(0x384)]=(_0x177f51=_0x21780b['backgroundColor'])!=null?_0x177f51:this[_0x20a00d(0x384)],this['transformByState']({'width':_0x21780b[_0x20a00d(0x21c)],'height':_0x21780b[_0x20a00d(0x40a)]});}['onMouseMove'](_0x940a84){const _0x5b6d0c=_0x523ac5,{row:_0x253981,column:_0x1bf412}=_0x940a84;if(_0x253981>=this[_0x5b6d0c(0x1ee)][_0x5b6d0c(0x416)]&&_0x253981<=this[_0x5b6d0c(0x1ee)][_0x5b6d0c(0x236)]&&_0x1bf412>=this[_0x5b6d0c(0x1ee)][_0x5b6d0c(0x2f0)]&&_0x1bf412<=this['_range'][_0x5b6d0c(0x419)]){this[_0x5b6d0c(0x348)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x523ac5(0x25a)](_0x306f6c){return!0x1;}[_0x523ac5(0x471)](_0x2a654d){const _0x364945=_0x523ac5;C[_0x364945(0x240)][_0x364945(0x209)](_0x2a654d,{'width':this[_0x364945(0x21c)],'height':this[_0x364945(0x40a)],'strokeWidth':Pt,'stroke':this[_0x364945(0x1ba)],'evented':!0x1,'fill':this[_0x364945(0x384)]}),this['_hovered']&&(_0x2a654d[_0x364945(0x22e)](),_0x2a654d['transform'](0x1,0x0,0x0,0x1,this[_0x364945(0x21c)],this[_0x364945(0x3fd)]===_0x364945(0x37a)?0x0:-X),re['drawWith'](_0x2a654d,{'text':this[_0x364945(0x385)],'color':this['_color']}),_0x2a654d[_0x364945(0x431)]());}}var wt=Object[_0x523ac5(0x3f4)],yt=(_0x5b9584,_0x16a2c2,_0x77cc75,_0x33676c)=>{const _0x13de99=_0x523ac5;for(var _0x5d205f=_0x33676c>0x1?void 0x0:_0x33676c?wt(_0x16a2c2,_0x77cc75):_0x16a2c2,_0x1d5efc=_0x5b9584[_0x13de99(0x374)]-0x1,_0x544153;_0x1d5efc>=0x0;_0x1d5efc--)(_0x544153=_0x5b9584[_0x1d5efc])&&(_0x5d205f=_0x544153(_0x5d205f)||_0x5d205f);return _0x5d205f;},ue=(_0x210d0b,_0x35a271)=>(_0x27b020,_0x2fe75d)=>_0x35a271(_0x27b020,_0x2fe75d,_0x210d0b);const $t=0x1389;let Ce=class extends a[_0x523ac5(0x2bd)]{constructor(_0x158612,_0x5518e7,_0x239493,_0x47b8ab){const _0x55bdf1=_0x523ac5;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this['_context']=_0x158612,this[_0x55bdf1(0x1f6)]=_0x5518e7,this[_0x55bdf1(0x465)]=_0x239493,this[_0x55bdf1(0x235)]=_0x47b8ab,this[_0x55bdf1(0x456)]());}[_0x523ac5(0x456)](){const _0x1536a0=_0x523ac5;this[_0x1536a0(0x1f6)]['currentSkeleton$'][_0x1536a0(0x3ff)]($[_0x1536a0(0x1fa)](this[_0x1536a0(0x334)]),$[_0x1536a0(0x2ba)](_0x5e523a=>{const _0x12ccf3=_0x1536a0;if(_0x5e523a){const _0x347290=_0x5e523a[_0x12ccf3(0x20a)];return I[_0x12ccf3(0x30f)](this[_0x12ccf3(0x465)][_0x12ccf3(0x3d5)](this[_0x12ccf3(0x36e)]['unitId']),this[_0x12ccf3(0x235)][_0x12ccf3(0x44d)])[_0x12ccf3(0x3ff)]($[_0x12ccf3(0x42e)](([_0x21907b,_0xc46951])=>{const _0x5ca11a=_0x12ccf3,_0x17f6ca=new Map();return _0x21907b[_0x5ca11a(0x447)]((_0x91bb9c,_0x538645)=>{const _0x37fb87=_0x5ca11a;if(_0x91bb9c[_0x37fb87(0x2cc)]===_0x347290){const _0x173348={..._0x91bb9c};_0x173348[_0x37fb87(0x2af)]=this[_0x37fb87(0x235)][_0x37fb87(0x36d)](_0x91bb9c[_0x37fb87(0x2af)]),_0x17f6ca['set'](_0x538645,_0x173348);}}),{'skeleton':_0x5e523a,'cursors':_0x17f6ca};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5a1674,cursors:_0x4c6502})=>{const _0x4a5598=_0x1536a0;this[_0x4a5598(0x27e)](),_0x5a1674&&this[_0x4a5598(0x32f)](_0x5a1674,_0x4c6502);}),this[_0x1536a0(0x1f6)][_0x1536a0(0x25b)]['subscribe'](_0x1cfa86=>{const _0x4179af=_0x1536a0;if(_0x1cfa86==null)return;const {skeleton:_0xd3dd91}=_0x1cfa86,{scene:_0x3088ce}=this[_0x4179af(0x36e)];_0x3088ce[_0x4179af(0x201)][_0x4179af(0x22d)](a['debounce'](_0x1f77bd=>{const _0x48f28e=_0x4179af;var _0xc5b984,_0x231c5f;const {offsetX:_0xf5177a,offsetY:_0x49b691}=_0x1f77bd,{x:_0x3b6798,y:_0x3c8a9c}=_0x3088ce['getRelativeToViewportCoord'](C[_0x48f28e(0x294)][_0x48f28e(0x2a9)]([_0xf5177a,_0x49b691])),{scaleX:_0x212061,scaleY:_0x2acabe}=_0x3088ce[_0x48f28e(0x390)](),_0x1bfabc=_0x3088ce['getViewport'](C[_0x48f28e(0x464)]['VIEW_MAIN']),_0x289f37=_0x3088ce['getVpScrollXYInfoByPosToVp'](C['Vector2'][_0x48f28e(0x2a9)]([_0x3b6798,_0x3c8a9c]),_0x1bfabc),_0x2dcd17=_0xd3dd91[_0x48f28e(0x42b)](_0xf5177a,_0x49b691,_0x212061,_0x2acabe,_0x289f37);((_0xc5b984=this[_0x48f28e(0x2fc)])==null?void 0x0:_0xc5b984[_0x48f28e(0x283)])===_0x2dcd17[_0x48f28e(0x283)]&&((_0x231c5f=this[_0x48f28e(0x2fc)])==null?void 0x0:_0x231c5f[_0x48f28e(0x367)])===_0x2dcd17[_0x48f28e(0x367)]||this[_0x48f28e(0x40f)][_0x48f28e(0x447)](_0x5fd596=>{const _0x584e59=_0x48f28e;_0x5fd596[_0x584e59(0x424)](_0x2dcd17);});},0x64));});}[_0x523ac5(0x32f)](_0x1443ca,_0x41ea65){const _0x5da96e=_0x523ac5;var _0x8c341f;const _0xe25ea2=(_0x8c341f=this['_sheetSkeletonManagerService'][_0x5da96e(0x396)]())==null?void 0x0:_0x8c341f[_0x5da96e(0x38f)];if(!_0xe25ea2)return;const _0x55072b=this[_0x5da96e(0x1c4)]();if(!_0x55072b)return;this['_cursors']['forEach'](_0x4070a2=>{const _0x57c394=_0x5da96e;_0x4070a2[_0x57c394(0x1e7)]();});const {scene:_0x260c50}=_0x55072b,_0x2495a1=xt(Array[_0x5da96e(0x38d)](_0x41ea65['values']()))[_0x5da96e(0x42e)](_0x3baceb=>{const _0x4d1347=_0x5da96e,{color:_0x506041,range:_0x1708f1,name:_0x2a333c,selection:_0x22b3f5,sheetID:_0x477ea7}=_0x3baceb,{startColumn:_0x5ed9e0,startRow:_0x34c352,endColumn:_0x4ab1f6,endRow:_0xc0efd3}=_0x1708f1,_0x39f50e=J[_0x4d1347(0x25f)](_0x34c352,_0x5ed9e0,_0x260c50,_0xe25ea2),_0x5c335f=J[_0x4d1347(0x25f)](_0xc0efd3,_0x4ab1f6,_0x260c50,_0xe25ea2),{columnHeaderHeightAndMarginTop:_0x3e2e55}=_0xe25ea2,{startX:_0x5dae31,startY:_0x5781ac}=_0x39f50e,{endX:_0xecaac3,endY:_0x216c09}=_0x5c335f,_0x4c35f0=_0xecaac3-_0x5dae31,_0x28540c=_0x216c09-_0x5781ac,_0xa44612={'labelPosition':_0x5781ac-_0x3e2e55>=X?_0x4d1347(0x2e6):_0x4d1347(0x37a),'sheetID':_0x477ea7,'range':_0x1708f1,'color':_0x506041,'name':_0x2a333c,'selection':_0x22b3f5,'left':_0x5dae31,'top':_0x5781ac,'width':_0x4c35f0,'height':_0x28540c,'evented':!0x1,'zIndex':$t};return new je(_0x2a333c,_0xa44612);});_0x260c50['addObjects'](_0x2495a1,At),this[_0x5da96e(0x40f)]=new Set(_0x2495a1);}[_0x523ac5(0x27e)](){const _0x35558c=_0x523ac5;var _0x3157ed;(_0x3157ed=this[_0x35558c(0x40f)])==null||_0x3157ed[_0x35558c(0x447)](_0x56fcb6=>_0x56fcb6[_0x35558c(0x1e5)]());}['_getSheetObject'](){const _0x3bb874=_0x523ac5;return J[_0x3bb874(0x460)](this[_0x3bb874(0x36e)][_0x3bb874(0x2bf)],this['_context']);}};Ce=yt([ue(0x1,a['Inject'](J[_0x523ac5(0x319)])),ue(0x2,a['Inject'](F)),ue(0x3,a[_0x523ac5(0x23c)](a['ThemeService']))],Ce);function xt(_0x175ab6){const _0x2a1e32=_0x523ac5,_0x5be863=new Map();return _0x175ab6[_0x2a1e32(0x447)](_0x386a33=>{const _0x92e7ca=_0x2a1e32;if(_0x5be863[_0x92e7ca(0x376)](_0x386a33['selection'])){const _0x4586bf=_0x5be863['get'](_0x386a33[_0x92e7ca(0x3b1)]);_0x4586bf[_0x92e7ca(0x2e8)]+=',\x20'+_0x386a33[_0x92e7ca(0x2e8)];}else _0x5be863[_0x92e7ca(0x2ab)](_0x386a33['selection'],_0x386a33);}),Array[_0x2a1e32(0x38d)](_0x5be863[_0x2a1e32(0x286)]());}var Bt=Object[_0x523ac5(0x3f4)],Ft=(_0x174a8a,_0x2282ab,_0x1143a9,_0x2eefb9)=>{const _0x1e6df7=_0x523ac5;for(var _0x5ec8c7=_0x2eefb9>0x1?void 0x0:_0x2eefb9?Bt(_0x2282ab,_0x1143a9):_0x2282ab,_0x15de29=_0x174a8a[_0x1e6df7(0x374)]-0x1,_0xb4c39c;_0x15de29>=0x0;_0x15de29--)(_0xb4c39c=_0x174a8a[_0x15de29])&&(_0x5ec8c7=_0xb4c39c(_0x5ec8c7)||_0x5ec8c7);return _0x5ec8c7;},y=(_0xe61f52,_0x3ed6c6)=>(_0x5471e3,_0x8dcc53)=>_0x3ed6c6(_0x5471e3,_0x8dcc53,_0xe61f52);function _0x3549(){const _0x33bc97=['off-line-icon','SNAPSHOT_INVALID_SNAPSHOT','_saveTaskMap','_configService','entityInit$','toRgbString','RemoveColCommandId','text','getMember','_startDocCollabCursor','_initUserListener','_showGuardMessage','translate(.97)','clipPath','DeleteRangeMoveUpCommandId','show','arc','_anchorDot','_httpService','code','unsubscribe','_initEntityListener','NOT_COLLAB','getCurrentSelections','CanceledError','_refRangeService','_getSessionTicket','saveTaskMap','addClipboardHook','LocaleService','USER_NOT_INVITED_CODE','syncEditingCollabCursor','INVITE_CODE_HAS_BEEN_UES','assignAColorForMemberID','getCollabCursors$','UNIVER_SHEET','REDEMPTION_CODE_HAS_BEEN_CREATED','handleInsertRangeMoveDown','throttleTime','_initStatusListener','session.connection-failed','REDEMPTION_CODE_INACTIVE','_logService','ONLINE','registerRefRange','currentUsage','InsertRowCommandId','TRANSFORM_CHANGE_OBSERVABLE_TYPE','[Window\x20Error]:\x20','collaboration.offline-data-not-saved','_shapes','DesktopCollaborationStatusDisplayController','CollaborationUIEventId','_messageService','unitID','TOO_MANY_REQUESTS','ITransformService','_docSkeleton','UNRECOGNIZED','_transformPreviousActiveRange','_collaborationSessionService','MOBILE_HAS_BEEN_BOUND','_cursor','Shape','_send','getOwnPropertyDescriptor','trim','WECHAT_HAS_BEEN_BOUND','disposeUnit','MOBILE_VERIFY_CODE_MISMATCH','LICENSE_EXPORT_SIZE_EXCEEDED','totalFormulasToCalculate','ENTITLE_INVALID_COUPON_CODE','popstate','_labelPosition','_config','pipe','_session','ERROR_AGAIN','ISnapshotServerService','enableLocalCache','newValue','_notificationService','_initCommandInterceptor','_onCursorDelete','distinctUntilChanged','key','height','useCallback','DependentOn','PERMISSION_DENIED','location','_cursors','children','activeSheet$','add','useDependency','ticket','_docTransformStateCacheService','startRow','_initWindowErrorListener','subscribe','endColumn','addEventListener','disableLocalCache','push','collabStatus.conflict','_startCalculationLimit','_assignedColors','handleInsertRangeMoveRight','_registerDependencies','getTypeOfUnitAdded$','useRef','onMouseMove','setAlpha','setItem','YUUMI_NO_CUBOID_FOR_QUESTION','debounceTime','getSheetBySheetId','registerBeforeClose','getCellPositionByOffset','PENDING','_colorAssignService','map','onCommandExecuted','type','restore','docStateChange$','onStarting','measureText','collabStatus.syncing','svg','ALREADY_EXISTS','handleInsertRow','_uiPartsService','memberID','get','INVITE_CODE_REQUIRED','DataLoaderService','stack','serializeRangeWithSheet','NodePositionConvertToCursor','YUUMI_URL_COL_OUT_OF_RANGE','clearInterval','handleDeleteRangeMoveLeft','_doCreateSocket','_updateLocalCursor','...','forEach','toDisposable','registerRenderModule','min','setParam','getRenderById','currentTheme$','getTypeOfUnitDisposed$','#FFF','history','Unknown\x20user','IDocClipboardService','focused$','HTTPService','_transformUndoRedoStack','_init','_updateURLWithCurrentState','handleMoveRange','cursorInfo$','collab-text-anchor-','CONNECTOR_DATA_TOO_LARGE','_colorIndex','_docSyncEditingCollabCursorService','_taskIds','RevisionService','getSheetObject','on-line-icon_clip0_910_349','_initResize','ENTITLE_REPORT_LIMIT_EXCEED','SHEET_VIEWPORT_KEY','_collabCursorController','_memberID','labelPosition','font','UPDATE_CURSOR','MUTATION','red.300','1936160fGDLIK','_getAnchorBounding','fromEvent','_hovered','/universer-api/license/formula/limit/start','_draw','saveOfflineData','\x20at\x20','setTimeout','ENTITLE_COUPON_EXPIRED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','getCellMatrix','lineTo','transformIMECache','EffectRefRangId','mutations','current','YUUMI_ALL_TABLES_IS_INVALID','resize','session.will-retry','DOC_RANGE_TYPE','textRanges','registerComponent','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_clearPolling','getSheetId','contains','INVALID_ARGUMENT','getActiveSheet','collabStatus.synced','use','path','updateOfflineData','YUUMI_UNABLE_LOAD_URL','getCurrentRevOfUnit','AWAITING','_color','ILocalStorageService','defineProperty','INotificationService','executeCommand','SetFormulaCalculationStartMutation','catch','_createSocketURL','handleInsertCol','SUCCESS','_getSheetObject','ILogService','UniverIcon','doc.mutation.rich-text-editing','InsertRangeMoveDownCommandId','_monkeyPatchLogService','InsertRangeMoveRightCommandId','TEXT','/run/','REDEMPTION_CODE_FULLY_REDEEMED','WebSocketService','_initCommandExecutedListener','collab-client.tooltip.reconnect','disposeWithMe','handleDeleteRangeMoveUp','ThemeService','eventID','complete','createElement','getRangePointData','_scheduleHeartbeat','WebURLService','MessageType','_initEvent','isTransformMutationsWithChangesetSuccess','error','sessionTicket','_univerInstanceService','selections','generateRandomId','CollaborationDataLoaderController','some','setConfig','dispose','Optional','makeDirty','beforeCommandExecuted','_disabled','filename','source','uni.network.url-service','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_range','SYNCED','DeleteRangeMoveLeftCommandId','displayName','clsx','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','touchDependencies','_hasFormulaInDirtyRanges','_sheetSkeletonManagerService','[Unhandled\x20Rejection]:\x20','DocStateChangeManagerService','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','takeUntil','shareReplay','createInstance','_syncEditingCollabCursorService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','UnitStatus','split','onPointerMove$','univerjs-icon\x20univerjs-icon-','getUnitStatus$','2340954CxBamF','_beforeCloseService','origin','none','SheetsSelectionsService','drawWith','sheetId','UNAUTHENTICATED','SetSelectionsOperation','replaceState','evenodd','formula.calculation.waiting','AUTHORIZE_CODE_ILLEGAL','saveImage','_getMergeRange','NOT_FOUND','now','onPointerEnter$','IUniverInstanceService','message','FormulaExecutedStateType','getUndoRedoMutationParamsCache','APPLY_REJECT','colno','width','_docClipboardService','join','UniverCollaborationClientUIPlugin','DocSkeletonManagerService','HEADER_MENU','url(#$1','sessionStatus$','forwardRef','white','_drawAnchor','runOnServer','CollaborationController','getUniverSheetInstance','permission.content','getColor','stageInfo','subscribeEvent','save','RefRangeService','DATA_SOURCE_TOO_LARGE','Plugin','blue.400','clearTimeout','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','_themeService','endRow','url(#on-line-icon_clip0_910_349)','getParam','697513cglJmd','univer-flex\x20univer-items-center','_commandService','Inject','isArray','CHANGESET_REVISION_CONFILICT','IConfigService','Rect','LOGIN_TOKEN_PROCESSING_FAILED','_saveCache','delete','removeEventListener','reconnect','subUnitId','debounce','_drawRectRange','fillRule','permission.title','entries','urlChange$','CONFLICT','undoState','UNIVER_DOC','NO_OTHER_CLIENTS_EDITING','next','YUUMI_SUBSCRIPTION_NOT_FOUND','APPLY_PERMISSION_DENIED','CollaborationUIEventService','Failed','onPointerLeave$','_entityInit$','_getScale','size','triggerDblclick','currentSkeleton$','getOffsetConfig','FETCH_MISS','ENTITLE_USE_COUPON_NOT_1ST_TRADE','getCoordByCell','ENTITLE_DUP_SUBSCRIPTION','status$','MemberService','_anchor','Loading','_setupSubUnitSync','collab-rect-range-','pluginName','ENTITLE_INSUFFICIENT_QUOTA','Injector','EMAIL_HAS_BEEN_BOUND','[LogService\x20Error]:\x20','REDEMPTION_CODE_NOT_STARTED','formula.calculation.unable','REDEMPTION_USER_NOT_ELIGIBLE','JOIN_ROOM_FAILED','CollaborationEvent','currentColor','m2Prime','Disposable','CollaborationSocketService','UniverCollaborationClientPlugin','_unitOnClients','collabStatus.fetchMiss','_handleEvent','getUnit','div','transformMutation','OnLineIcon','univer-mr-2\x20univer-flex\x20univer-text-xl','_removeCollabCursors','filter','_uploadLog','with','CURRENT_STATUS_CANNOT_OPERATE','column','YUUMI_CONNECTOR_URL_NOT_FOUND','subunit','values','replace','getFocusedUnit','_id','_selfUnitIDs','connectInjector','DisposableCollection','LICENSE_IMPORT_SIZE_EXCEEDED','hide','post','_onCursorUpdate','_ensureSubject','getCollabEntity$','[CollaborationDataLoaderController]','Vector2','INVITE_CODE_ALREADY_BOUND','USER_NOT_FOUND','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_toggleOffline','transformSelections','ICommandService','result','idSuffix','DocSelectionManagerService','APPLY_DUPLICATED','SetTextSelectionsOperation','data','defs','APPLY_NON_SEQUENTIAL_REVISION','includes','_cachedData','debug','getMergeData','startsWith','round','FromArray','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','set','_status$','ENTITLE_NEED_BILLING_ADDRESS','getConfig','color','event$','beginPath','_localCacheService','_scheduleClearOtherTimer','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_checkAndWaitForCalculationPermission','engine','defIds','MoveRangeCommandId','_urlService','switchMap','_initStatusComponent','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','RxDisposable','Error','unit','getformulaLimitStatusUrl','addObject','Success','Tools','asObservable','BehaviorSubject','OffLineIcon','_pollingInterval','unload','collaboration-client-ui.config','imageSourceType','dirtyRanges','sheetID','collaboration.single-unit.warning','ENSURE_SNAPSHOT_EXECUTION','parse','InsertColCommandId','427bLRkkw','_startSheetCollabCursor','executionId','runId','/universer-api/license/formula/limit/status','isTransformMutationFailure','substring','_getFormulaLimitStatus','_collaborationController','34584dRxzJK','OTHER_CLIENT_EDITING','maxFormulaLimit','_cursorShapes','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','reason','RECT','toStringTag','_dataLoaderService','shift','CommandType','collabCursorState$','top','_maxFormulaLimit','name','DocIMEInputManagerService','collabStatus.offline','getValue','attrs','addHandlerCallback','redoState','_currentUsage','startColumn','moveTo','_updateSubUnitFromURLParams','TEXT_RANGE_LAYER_INDEX','LICENSE_DISTRO_REJECTED','all','url(#off-line-icon_clip0_910_343)','href','_textBubble','onTransformChange$','getLocalCacheKey','replaceDocRanges','_lastPointer','then','PAYMENT_CHANNEL_NOT_SUPPORT','find','handleIRemoveCol','USER_IS_ANONYMOUS','BuiltInUIPart','COMPLETION_FINISHED','collab-text-range-','fill','_handleLeaveEvent','_render','fillText','_toggleOnline','SNAPSHOT_HAS_BEEN_REMOVED','SessionStatus','OFFLINE','IMessageService','_initUnhandledRejectionListener','combineLatest','colorChannel1','deepClone','_heartbeatTimer','_localStorageService','Warning','unitId','_drawTextRange','SetDocZoomRatioOperation','getDocRanges','SheetSkeletonManagerService','useObservable','_getSaveTimeout','_renderManagerService','jsx','toString','_scene','INVALID_INVITE_CODE','pushState','ENTITLE_COUPON_USED_UP','enableFrontendLog','_collabCursorState$','green.600','BrowserCollaborationSocketService','_unitStatus','IRemoteInstanceService','yellow.400','unshift','FormulaExecuteStageType','_setupBeforeClosingHandler','CollaborationStatus','RemoteUniscriptService','_updateCollabCursors','_transformService','startFormulaLimitUrl','_lastResponseTimestamp','removeParam','dispose$','stringify','onLocalMutation','ColorKit','Module','parseInt','_hideTimer','M0\x200H16V16H0z','_applyCommand','REDEMPTION_USER_REDEEM_TIMES_EXCEED','_handleHeartbeatEvent','_entities','EMAIL_VERIFY_CODE_MISMATCH','_releaseCalculationLimit','RemoveRowCommandId','UNDEFINED','_onRefRangeChange','8079712UZmFzH','?taskId=','xlink:href','setShapeProps','searchParams','collabStatus.notCollab','1366276uuYWXV','range','ENTITLE_CHAT_LIMIT_EXCEED','roomMembers$','_hover','SetWorksheetActivateCommand','lineno','USERS_LEAVE','tag','_imageIoService','transformStateCache','_online','_docSkeletonManagerService','ISocketService','_refreshCollabCursors','UniverInstanceType','1em','isActive','YUUMI_RATE_OVER_LIMIT','formula.calculation.started','body','actions','_localeService','ACTIVE_UNIT_EVENT_CHANNEL','closePath','_initDependencies','limitInfo','_cursorInfo$','row','REDEMPTION_INVALID_CODE','getCurrentUnitForType','registerDependencies','assign','getActiveRange','getColorFromTheme','_context','merge','_docStateChangeManagerService','_handleHover','jiqing.500','YUUMI_ASYNCIO_CANCELLED','length','transformRemoteChangeset','has','RichTextEditingMutation','Tooltip','_registerRenderDependencies','bottom','Rectangle','_transformHistoryAndStateStack','_injector','ILocalCacheService','string','_docTransformSelectionsService','_removeClearOtherTimer','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','IRenderManagerService','_backgroundColor','_name','roomMembers','getUnhiddenWorksheets','exhaustSavingTask','NodePositionConvertToRectRange','off-line-icon_clip0_910_343','getUnitId','m1Prime','from','INTERNAL_ERROR','skeleton','getAncestorScale','_roomMembers$','_document','_clearOtherTimers','IBeforeCloseService','_memberService','getCurrent','black','LOGIN_FAILED','params','PY_RUNTIME_SCRIPT_ERROR','_eventUnsubscribe','605456UeJNGb','LOCAL_CACHE_INTERVAL','_setFormulaLimitStatus','storage','LICENSE_MAX_UNITS_EXCEEDED','http://www.w3.org/2000/svg','cursorInfo','fillStyle','COLORS','CollaborationSessionService','send','findNodePositionByCharIndex','Subject','LOCAL_CACHE_INTERVAL_KEY','_collabSessionService','ranges','search','getStateCache','init','random','_docTransformIMECacheService','selection','[RemoteUniscriptService]:\x20no\x20focused\x20unit'];_0x3549=function(){return _0x33bc97;};return _0x3549();}let Z=class extends a[_0x523ac5(0x273)]{constructor(_0x2e4101,_0x1920c8,_0x43ce62,_0x52040b,_0x2e0760,_0x255b9f){const _0x4e879e=_0x523ac5;super(),this[_0x4e879e(0x205)]=_0x2e4101,this[_0x4e879e(0x2b2)]=_0x1920c8,this['_collaborationUIEventService']=_0x43ce62,this[_0x4e879e(0x3e8)]=_0x52040b,this[_0x4e879e(0x405)]=_0x2e0760,this[_0x4e879e(0x361)]=_0x255b9f,this[_0x4e879e(0x32c)](),this[_0x4e879e(0x1db)]();}[_0x523ac5(0x32c)](){const _0x256980=_0x523ac5;this[_0x256980(0x1d1)](this['_beforeCloseService'][_0x256980(0x42a)](()=>{const _0x171afe=_0x256980;if(this[_0x171afe(0x2b2)]['saveTaskMap'][_0x171afe(0x259)])return this[_0x171afe(0x361)]['t'](_0x171afe(0x3e4));}));}[_0x523ac5(0x1db)](){const _0x5f5ee4=_0x523ac5;this[_0x5f5ee4(0x1d1)](this['_collaborationUIEventService']['event$']['subscribe'](_0x4674ec=>{const _0x3dae48=_0x5f5ee4;_0x4674ec['id']===u[_0x3dae48(0x3e7)][_0x3dae48(0x2db)]&&this[_0x3dae48(0x3e8)][_0x3dae48(0x3c2)]({'type':p[_0x3dae48(0x1da)][_0x3dae48(0x314)],'content':this[_0x3dae48(0x361)]['t'](_0x3dae48(0x2cd))}),_0x4674ec['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this['_messageService'][_0x3dae48(0x3c2)]({'type':p[_0x3dae48(0x1da)][_0x3dae48(0x314)],'content':this[_0x3dae48(0x361)]['t']('collaboration.closeRoom')}),_0x4674ec['id']===u[_0x3dae48(0x3e7)][_0x3dae48(0x40d)]&&this['_notificationService']['show']({'title':this[_0x3dae48(0x361)]['t'](_0x3dae48(0x24a)),'content':this[_0x3dae48(0x361)]['t'](_0x3dae48(0x22a)),'type':_0x3dae48(0x1dd),'duration':0x0}),_0x4674ec['id']===u['CollaborationUIEventId'][_0x3dae48(0x24d)]&&this[_0x3dae48(0x3e8)][_0x3dae48(0x3c2)]({'type':p[_0x3dae48(0x1da)][_0x3dae48(0x2be)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x4674ec['data']+')'}),_0x4674ec['id']===u[_0x3dae48(0x3e7)][_0x3dae48(0x26f)]&&this['_messageService'][_0x3dae48(0x3c2)]({'type':p[_0x3dae48(0x1da)][_0x3dae48(0x314)],'content':this[_0x3dae48(0x361)]['t'](_0x4674ec['data']||'')}),_0x4674ec['id']===u[_0x3dae48(0x3e7)]['SOCKET_FAILED_RETRY']&&this[_0x3dae48(0x3e8)]['show']({'type':p['MessageType'][_0x3dae48(0x314)],'content':this[_0x3dae48(0x361)]['t'](_0x3dae48(0x1a9))}),_0x4674ec['id']===u[_0x3dae48(0x3e7)]['SOCKET_FAILED']&&this[_0x3dae48(0x3e8)]['show']({'type':p[_0x3dae48(0x1da)][_0x3dae48(0x2be)],'content':this['_localeService']['t'](_0x3dae48(0x3db))}),_0x4674ec['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x3dae48(0x3e8)][_0x3dae48(0x3c2)]({'type':p['MessageType'][_0x3dae48(0x2be)],'content':this[_0x3dae48(0x361)]['t']('session.collaboration-timeout')});}));}};Z=Ft([y(0x0,O[_0x523ac5(0x394)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x523ac5(0x23c)](u[_0x523ac5(0x254)])),y(0x3,O[_0x523ac5(0x30d)]),y(0x4,O[_0x523ac5(0x1bd)]),y(0x5,a['Inject'](a['LocaleService']))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x1d816a,_0x82c273,_0x3c1049,_0x4e2d06)=>{for(var _0x414199=_0x4e2d06>0x1?void 0x0:_0x4e2d06?jt(_0x82c273,_0x3c1049):_0x82c273,_0xd68477=_0x1d816a['length']-0x1,_0x4a88b5;_0xd68477>=0x0;_0xd68477--)(_0x4a88b5=_0x1d816a[_0xd68477])&&(_0x414199=_0x4a88b5(_0x414199)||_0x414199);return _0x414199;},z=(_0x2b8023,_0x2463f4)=>(_0x452da1,_0x6aeec6)=>_0x2463f4(_0x452da1,_0x6aeec6,_0x2b8023);let Q=class extends a['Disposable']{constructor(_0x1c18c0,_0x12b766,_0xcc283,_0x372193){const _0x7bf0dc=_0x523ac5;super(),_(this,_0x7bf0dc(0x466)),(this[_0x7bf0dc(0x37d)]=_0x1c18c0,this['_httpService']=_0x12b766,this[_0x7bf0dc(0x3dd)]=_0xcc283,this[_0x7bf0dc(0x3ef)]=_0x372193,this[_0x7bf0dc(0x456)]());}[_0x523ac5(0x456)](){const _0x385fec=_0x523ac5;this[_0x385fec(0x417)](),this[_0x385fec(0x30e)](),this[_0x385fec(0x1c9)](),this['_initUserListener']();}[_0x523ac5(0x3bd)](){const _0x33010a=_0x523ac5;this[_0x33010a(0x1d1)](this[_0x33010a(0x3ef)]['socket$'][_0x33010a(0x418)](_0x1f59ad=>{const _0x338c26=_0x33010a;this[_0x338c26(0x466)]=_0x1f59ad==null?void 0x0:_0x1f59ad[_0x338c26(0x43a)];}));}[_0x523ac5(0x417)](){const _0x553d70=_0x523ac5,_0xcc25ff=_0x30da3a=>{const _0x17c814=_0xc685;var _0x2db49f;this['_uploadLog'](_0x17c814(0x1dd),_0x17c814(0x3e3)+_0x30da3a[_0x17c814(0x217)]+_0x17c814(0x473)+_0x30da3a[_0x17c814(0x1ea)]+':'+_0x30da3a[_0x17c814(0x351)]+':'+_0x30da3a[_0x17c814(0x21b)]+'\x0a'+(((_0x2db49f=_0x30da3a['error'])==null?void 0x0:_0x2db49f[_0x17c814(0x43e)])||''));};window['addEventListener'](_0x553d70(0x1dd),_0xcc25ff),this[_0x553d70(0x1d1)](()=>{const _0x14d566=_0x553d70;window[_0x14d566(0x244)](_0x14d566(0x1dd),_0xcc25ff);});}[_0x523ac5(0x30e)](){const _0x51f06f=_0x523ac5,_0x1fe43c=_0xbf3b06=>{const _0x4f71b4=_0xc685;this[_0x4f71b4(0x280)](_0x4f71b4(0x1dd),_0x4f71b4(0x1f7)+_0xbf3b06[_0x4f71b4(0x2df)]);};window[_0x51f06f(0x41a)]('unhandledrejection',_0x1fe43c),this['disposeWithMe'](()=>{const _0x56a1d9=_0x51f06f;window[_0x56a1d9(0x244)]('unhandledrejection',_0x1fe43c);});}['_monkeyPatchLogService'](){const _0x440a3f=_0x523ac5,_0x3b833f=this[_0x440a3f(0x3dd)][_0x440a3f(0x1dd)]['bind'](this['_logService']);this['_logService'][_0x440a3f(0x1dd)]=(..._0x3d2296)=>{const _0x1b4cd9=_0x440a3f,_0x422639=_0x3d2296[_0x1b4cd9(0x42e)](_0x2e398f=>_0x2e398f instanceof Error?_0x2e398f['message']+'\x0a'+_0x2e398f[_0x1b4cd9(0x43e)]:String(_0x2e398f))[_0x1b4cd9(0x21e)]('\x20');this[_0x1b4cd9(0x280)]('error',_0x1b4cd9(0x26b)+_0x422639),_0x3b833f(..._0x3d2296);},this[_0x440a3f(0x1d1)](()=>{const _0x27fbcd=_0x440a3f;this[_0x27fbcd(0x3dd)]['error']=_0x3b833f;});}['_uploadLog'](_0x5bb3f9,_0x2462d9){const _0x592502=_0x523ac5;try{const _0x41a446={'userId':this[_0x592502(0x466)],'logLabel':_0x5bb3f9,'content':_0x2462d9};this[_0x592502(0x3c5)][_0x592502(0x28f)]('/universer-api/frontend/logs',{'body':_0x41a446})[_0x592502(0x1c0)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x523ac5(0x269)])),z(0x1,a[_0x523ac5(0x23c)](x[_0x523ac5(0x454)])),z(0x2,a[_0x523ac5(0x1c5)]),z(0x3,a['Inject'](u[_0x523ac5(0x3a5)]))],Q);const Yt=_0x523ac5(0x2c9),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x372e9d,_0x2f78f3,_0x400b64,_0x32c81a)=>{const _0x175c23=_0x523ac5;for(var _0x2dff4c=_0x32c81a>0x1?void 0x0:_0x32c81a?Ht(_0x2f78f3,_0x400b64):_0x2f78f3,_0x218792=_0x372e9d[_0x175c23(0x374)]-0x1,_0x523afb;_0x218792>=0x0;_0x218792--)(_0x523afb=_0x372e9d[_0x218792])&&(_0x2dff4c=_0x523afb(_0x2dff4c)||_0x2dff4c);return _0x2dff4c;},Ae=(_0x569fcc,_0x2a790e)=>(_0x26aedc,_0x2f0b21)=>_0x2a790e(_0x26aedc,_0x2f0b21,_0x569fcc);let ee=class{constructor(_0x2a91aa,_0x230fc9){const _0x501252=_0x523ac5;this[_0x501252(0x330)]=_0x2a91aa,this[_0x501252(0x31c)]=_0x230fc9;}[_0x523ac5(0x479)](_0x1ddfed){const _0x5e7292=_0x523ac5;this[_0x5e7292(0x455)](_0x1ddfed),this[_0x5e7292(0x3ee)](_0x1ddfed);}[_0x523ac5(0x375)](_0xcc481c){const _0x489f08=_0x523ac5,{unitID:_0x4adc50}=_0xcc481c,_0x21bb67=this[_0x489f08(0x31c)][_0x489f08(0x44c)](_0x4adc50)[_0x489f08(0x281)](T[_0x489f08(0x2e9)]),{redoCache:_0x50343f}=_0x21bb67[_0x489f08(0x219)]();if(_0x50343f[_0x489f08(0x374)]===0x0)return _0xcc481c;let _0x1430dc=a[_0x489f08(0x2c3)][_0x489f08(0x311)](_0xcc481c[_0x489f08(0x47b)][0x0]);for(let _0x78ac6=0x0;_0x78ac6<_0x50343f[_0x489f08(0x374)];_0x78ac6++){const _0x63b4a2={'id':'doc.mutation.rich-text-editing','params':{..._0x50343f[_0x78ac6]}},_0x298dd0=this[_0x489f08(0x330)][_0x489f08(0x27b)](_0x1430dc,_0x63b4a2,!0x1);if(g[_0x489f08(0x2d6)](_0x298dd0))throw _0x298dd0['error'];_0x1430dc=_0x298dd0[_0x489f08(0x38c)];}return{...a[_0x489f08(0x2c3)][_0x489f08(0x311)](_0xcc481c),'mutations':[_0x1430dc]};}['_transformUndoRedoStack'](_0x347c1c){const _0x26dfed=_0x523ac5,{unitID:_0x4d4671}=_0x347c1c,_0x3caac5=this[_0x26dfed(0x31c)]['getRenderById'](_0x4d4671)['with'](T[_0x26dfed(0x2e9)]),{undoCache:_0x1411a2,redoCache:_0x33ae08}=_0x3caac5[_0x26dfed(0x219)]();if(_0x1411a2[_0x26dfed(0x374)]===0x0||_0x33ae08[_0x26dfed(0x374)]===0x0)return;const _0x4b6f01=[],_0x2f6833=[];let _0x5dd59b=a[_0x26dfed(0x2c3)]['deepClone'](_0x347c1c[_0x26dfed(0x47b)][0x0]),_0xb8579d=a[_0x26dfed(0x2c3)][_0x26dfed(0x311)](_0x347c1c[_0x26dfed(0x47b)][0x0]);for(let _0x485907=_0x1411a2['length']-0x1;_0x485907>=0x0;_0x485907--){const _0x15d8bc={'id':_0x26dfed(0x1c7),'params':{..._0x1411a2[_0x485907]}},_0x51350a={'id':_0x26dfed(0x1c7),'params':{..._0x33ae08[_0x485907]}},_0x40d20b=this[_0x26dfed(0x330)][_0x26dfed(0x27b)](_0x5dd59b,_0x15d8bc,!0x1),_0x10f994=this['_transformService'][_0x26dfed(0x27b)](_0xb8579d,_0x51350a,!0x1);if(g[_0x26dfed(0x2d6)](_0x40d20b))throw _0x40d20b[_0x26dfed(0x1dd)];if(g[_0x26dfed(0x2d6)](_0x10f994))throw _0x10f994[_0x26dfed(0x1dd)];_0x4b6f01[_0x26dfed(0x32a)](_0x40d20b[_0x26dfed(0x272)][_0x26dfed(0x399)]),_0x2f6833[_0x26dfed(0x32a)](_0x10f994[_0x26dfed(0x272)][_0x26dfed(0x399)]),_0x5dd59b=_0x40d20b[_0x26dfed(0x38c)],_0xb8579d=_0x10f994[_0x26dfed(0x38c)];}_0x3caac5['setUndoRedoMutationParamsCache']({'undoCache':_0x4b6f01,'redoCache':_0x2f6833});}['_transformPreviousActiveRange'](_0xc693d4){const _0x208caf=_0x523ac5,{unitID:_0xc88605}=_0xc693d4,_0x446752=this[_0x208caf(0x31c)]['getRenderById'](_0xc88605)[_0x208caf(0x281)](T[_0x208caf(0x2e9)]),_0x290920=_0x446752[_0x208caf(0x36c)]();if(_0x290920==null)return;const _0x25b0e0=[{'id':_0x208caf(0x1c7),'params':{'unitId':_0xc693d4[_0x208caf(0x3e9)],'actions':null,'textRanges':[_0x290920]}}],_0x85205e=this[_0x208caf(0x330)]['transformMutationsWithChangeset'](_0xc693d4,_0x25b0e0);if(!g[_0x208caf(0x1dc)](_0x85205e))throw _0x85205e[_0x208caf(0x1dd)];const _0x8fbc4a=_0x85205e[_0x208caf(0x272)][0x0]['params'][_0x208caf(0x1ab)];Array['isArray'](_0x8fbc4a)&&_0x8fbc4a['length']&&_0x446752['setActiveRange'](_0x8fbc4a[0x0]);}};ee=Wt([Ae(0x0,g[_0x523ac5(0x3eb)]),Ae(0x1,C[_0x523ac5(0x383)])],ee);var Vt=Object[_0x523ac5(0x3f4)],Gt=(_0x5b2eab,_0x48193f,_0x3784a0,_0x3004fe)=>{const _0x2e1e4a=_0x523ac5;for(var _0x4ddeb8=_0x3004fe>0x1?void 0x0:_0x3004fe?Vt(_0x48193f,_0x3784a0):_0x48193f,_0x4e4d05=_0x5b2eab[_0x2e1e4a(0x374)]-0x1,_0x2ed193;_0x4e4d05>=0x0;_0x4e4d05--)(_0x2ed193=_0x5b2eab[_0x4e4d05])&&(_0x4ddeb8=_0x2ed193(_0x4ddeb8)||_0x4ddeb8);return _0x4ddeb8;},Ie=(_0x5662be,_0x1813da)=>(_0x4ebdc7,_0x25ba1f)=>_0x1813da(_0x4ebdc7,_0x25ba1f,_0x5662be);function _0xc685(_0x2f3b07,_0x39017b){_0x2f3b07=_0x2f3b07-0x1a9;const _0x354902=_0x3549();let _0xc6855=_0x354902[_0x2f3b07];return _0xc6855;}let te=class{constructor(_0x2e7d88,_0x249477,_0x59d692){const _0x5841a5=_0x523ac5;this[_0x5841a5(0x37d)]=_0x2e7d88,this[_0x5841a5(0x330)]=_0x249477,this[_0x5841a5(0x370)]=_0x59d692;}[_0x523ac5(0x355)](_0x3b4f7c){const _0x20071b=_0x523ac5;this[_0x20071b(0x37c)](_0x3b4f7c);}[_0x523ac5(0x375)](_0x439baf){const _0x46c14e=_0x523ac5,{unitID:_0x90818}=_0x439baf,{collaboration:_0x3c8160}=this[_0x46c14e(0x370)][_0x46c14e(0x3ad)](_0x90818);if(_0x3c8160['length']===0x0)return _0x439baf;let _0x73a77d=a[_0x46c14e(0x2c3)][_0x46c14e(0x311)](_0x439baf[_0x46c14e(0x47b)][0x0]);for(let _0x5b6513=0x0;_0x5b6513<_0x3c8160['length'];_0x5b6513++){const _0x1cee97={'id':_0x46c14e(0x1c7),'params':{'unitId':_0x3c8160[_0x5b6513][_0x46c14e(0x315)],..._0x3c8160[_0x5b6513][_0x46c14e(0x2ee)]}},_0x3975da=this[_0x46c14e(0x330)][_0x46c14e(0x27b)](_0x73a77d,_0x1cee97,!0x1);if(g['isTransformMutationFailure'](_0x3975da))throw _0x3975da['error'];_0x73a77d=_0x3975da[_0x46c14e(0x38c)];}return{...a[_0x46c14e(0x2c3)][_0x46c14e(0x311)](_0x439baf),'mutations':[_0x73a77d]};}[_0x523ac5(0x37c)](_0x193929){const _0x38e5a0=_0x523ac5,{unitID:_0x5e611e}=_0x193929,{history:_0x3df0b9,collaboration:_0x12d0ed}=this[_0x38e5a0(0x370)]['getStateCache'](_0x5e611e);if(_0x3df0b9['length']===0x0&&_0x12d0ed['length']===0x0)return;const _0x2cb1b5=[],_0x462ddc=[];let _0x566689=a[_0x38e5a0(0x2c3)][_0x38e5a0(0x311)](_0x193929[_0x38e5a0(0x47b)][0x0]),_0x480c91=a[_0x38e5a0(0x2c3)][_0x38e5a0(0x311)](_0x193929[_0x38e5a0(0x47b)][0x0]);for(let _0x484d79=_0x3df0b9[_0x38e5a0(0x374)]-0x1;_0x484d79>=0x0;_0x484d79--){const _0x5e2703={'id':_0x38e5a0(0x1c7),'params':{'unitId':_0x3df0b9[_0x484d79][_0x38e5a0(0x315)],..._0x3df0b9[_0x484d79][_0x38e5a0(0x24e)]}},_0x8d2eb8={'id':_0x38e5a0(0x1c7),'params':{'unitId':_0x3df0b9[_0x484d79][_0x38e5a0(0x315)],..._0x3df0b9[_0x484d79][_0x38e5a0(0x2ee)]}},_0x160186=this[_0x38e5a0(0x330)][_0x38e5a0(0x27b)](_0x566689,_0x5e2703,!0x1),_0x13d830=this['_transformService'][_0x38e5a0(0x27b)](_0x480c91,_0x8d2eb8,!0x1);if(g['isTransformMutationFailure'](_0x160186))throw _0x160186['error'];if(g['isTransformMutationFailure'](_0x13d830))throw _0x13d830[_0x38e5a0(0x1dd)];_0x2cb1b5[_0x38e5a0(0x32a)]({..._0x3df0b9[_0x484d79],'undoState':_0x160186[_0x38e5a0(0x272)][_0x38e5a0(0x399)],'redoState':_0x13d830[_0x38e5a0(0x272)][_0x38e5a0(0x399)]}),_0x566689=_0x160186[_0x38e5a0(0x38c)],_0x480c91=_0x13d830[_0x38e5a0(0x38c)];}_0x566689=a['Tools'][_0x38e5a0(0x311)](_0x193929['mutations'][0x0]),_0x480c91=a[_0x38e5a0(0x2c3)]['deepClone'](_0x193929['mutations'][0x0]);for(let _0x9c34c4=_0x12d0ed['length']-0x1;_0x9c34c4>=0x0;_0x9c34c4--){const _0x551a88={'id':_0x38e5a0(0x1c7),'params':{'unitId':_0x12d0ed[_0x9c34c4][_0x38e5a0(0x315)],..._0x12d0ed[_0x9c34c4][_0x38e5a0(0x24e)]}},_0x5aa2da={'id':_0x38e5a0(0x1c7),'params':{'unitId':_0x12d0ed[_0x9c34c4]['unitId'],..._0x12d0ed[_0x9c34c4]['redoState']}},_0xc0b410=this['_transformService'][_0x38e5a0(0x27b)](_0x566689,_0x551a88,!0x1),_0x3bf991=this[_0x38e5a0(0x330)][_0x38e5a0(0x27b)](_0x480c91,_0x5aa2da,!0x1);if(g[_0x38e5a0(0x2d6)](_0xc0b410))throw _0xc0b410['error'];if(g[_0x38e5a0(0x2d6)](_0x3bf991))throw _0x3bf991[_0x38e5a0(0x1dd)];_0x462ddc[_0x38e5a0(0x32a)]({..._0x12d0ed[_0x9c34c4],'undoState':_0xc0b410[_0x38e5a0(0x272)][_0x38e5a0(0x399)],'redoState':_0x3bf991[_0x38e5a0(0x272)]['params']}),_0x566689=_0xc0b410[_0x38e5a0(0x38c)],_0x480c91=_0x3bf991[_0x38e5a0(0x38c)];}this[_0x38e5a0(0x370)]['setStateCache'](_0x5e611e,{'history':_0x2cb1b5,'collaboration':_0x462ddc});}};te=Gt([Ie(0x0,a[_0x523ac5(0x23c)](a['Injector'])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x523ac5(0x23c)](T[_0x523ac5(0x1f8)]))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x2b27f1,_0x3c1c5d,_0x15514a,_0x2160ee)=>{for(var _0x26814d=_0x2160ee>0x1?void 0x0:_0x2160ee?Xt(_0x3c1c5d,_0x15514a):_0x3c1c5d,_0x9cd2d5=_0x2b27f1['length']-0x1,_0x4a06f6;_0x9cd2d5>=0x0;_0x9cd2d5--)(_0x4a06f6=_0x2b27f1[_0x9cd2d5])&&(_0x26814d=_0x4a06f6(_0x26814d)||_0x26814d);return _0x26814d;},Pe=(_0x28a13a,_0x5d5e20)=>(_0x512018,_0xf2904e)=>_0x5d5e20(_0x512018,_0xf2904e,_0x28a13a);let se=class{constructor(_0x3bf868,_0x297856){const _0x1719b1=_0x523ac5;this[_0x1719b1(0x37d)]=_0x3bf868,this[_0x1719b1(0x330)]=_0x297856;}[_0x523ac5(0x299)](_0x57aee8){const _0x26235e=_0x523ac5;var _0x529d36;const _0x48c562=this[_0x26235e(0x37d)][_0x26235e(0x43b)](V['DocSelectionManagerService']),_0x43a570=(_0x529d36=_0x48c562[_0x26235e(0x318)]())!=null?_0x529d36:[];if(_0x43a570[_0x26235e(0x374)]===0x0)return;const _0x137e45=_0x57aee8[_0x26235e(0x3e9)],_0x1b77ba=[{'id':_0x26235e(0x1c7),'params':{'unitId':_0x137e45,'actions':null,'textRanges':_0x43a570}}],_0x4aacba=this[_0x26235e(0x330)]['transformMutationsWithChangeset'](_0x57aee8,_0x1b77ba);if(!g[_0x26235e(0x1dc)](_0x4aacba))throw _0x4aacba['error'];const _0x207ba5=_0x4aacba[_0x26235e(0x272)][0x0][_0x26235e(0x399)][_0x26235e(0x1ab)];Array['isArray'](_0x207ba5)&&_0x207ba5['length']&&_0x48c562[_0x26235e(0x2fb)](_0x207ba5,{'unitId':_0x137e45,'subUnitId':_0x137e45},!0x1);}};se=Kt([Pe(0x0,a[_0x523ac5(0x23c)](a[_0x523ac5(0x269)])),Pe(0x1,g[_0x523ac5(0x3eb)])],se);var qt=Object[_0x523ac5(0x3f4)],zt=(_0x2ddcdd,_0x170c05,_0x4ea40d,_0x3b3664)=>{const _0x404bf0=_0x523ac5;for(var _0x2a20f2=_0x3b3664>0x1?void 0x0:_0x3b3664?qt(_0x170c05,_0x4ea40d):_0x170c05,_0x52e071=_0x2ddcdd[_0x404bf0(0x374)]-0x1,_0x3bfb5c;_0x52e071>=0x0;_0x52e071--)(_0x3bfb5c=_0x2ddcdd[_0x52e071])&&(_0x2a20f2=_0x3bfb5c(_0x2a20f2)||_0x2a20f2);return _0x2a20f2;},N=(_0x1afbe0,_0x4673eb)=>(_0x425600,_0x121c4b)=>_0x4673eb(_0x425600,_0x121c4b,_0x1afbe0);let ie=class extends a[_0x523ac5(0x273)]{constructor(_0x396e4a,_0x2d102e,_0x379dab,_0x299e34,_0x37b7ca,_0x2fd261,_0xbea398,_0x4ad3e0){const _0x4e96ae=_0x523ac5;super(),_(this,_0x4e96ae(0x2ac),new I[(_0x4e96ae(0x2c5))](u['CollaborationStatus'][_0x4e96ae(0x3c9)])),(this['_docStateChangeManagerService']=_0x396e4a,this[_0x4e96ae(0x2d9)]=_0x2d102e,this['_docTransformIMECacheService']=_0x379dab,this[_0x4e96ae(0x415)]=_0x299e34,this[_0x4e96ae(0x380)]=_0x37b7ca,this['_docSyncEditingCollabCursorService']=_0x2fd261,this[_0x4e96ae(0x3e8)]=_0xbea398,this['_localeService']=_0x4ad3e0,this[_0x4e96ae(0x3c8)]());}[_0x523ac5(0x3c8)](){const _0x585e66=_0x523ac5;this[_0x585e66(0x1d1)](this[_0x585e66(0x2d9)][_0x585e66(0x3b7)]['subscribe'](_0x4d7333=>{const _0x4cda32=_0x585e66,_0x3526a5=this['_docStateChangeManagerService'][_0x4cda32(0x432)][_0x4cda32(0x418)](_0x53272a=>{const _0x500a32=_0x4cda32;if(_0x53272a==null)return;const {unitId:_0x2566b6,redoState:_0x1d6188,commandId:_0x223806}=_0x53272a;if(_0x2566b6!==_0x4d7333[_0x500a32(0x3e9)])return;const _0x4c5013={'id':_0x223806,'type':a[_0x500a32(0x2e4)][_0x500a32(0x46a)],'params':{'unitId':_0x2566b6,'actions':_0x1d6188[_0x500a32(0x360)],'textRanges':null}};_0x4d7333[_0x500a32(0x336)](_0x4c5013);});if(_0x4d7333[_0x4cda32(0x1d1)](_0x3526a5),_0x4d7333 instanceof u['DocCollaborationEntity']){const _0x5c022e={'onTransformIME':_0x2d341d=>this[_0x4cda32(0x3b0)][_0x4cda32(0x479)](_0x2d341d),'onTransformState':_0x4e3cc3=>this['_docTransformStateCacheService'][_0x4cda32(0x355)](_0x4e3cc3),'onTransformSelections':_0x258d5f=>this[_0x4cda32(0x380)][_0x4cda32(0x299)](_0x258d5f),'onSyncEditingCollabCursor':_0x254436=>this[_0x4cda32(0x45d)][_0x4cda32(0x3d2)](_0x254436),'onTransformRemoteChangesetByIMECache':_0x5c161e=>this[_0x4cda32(0x3b0)]['transformRemoteChangeset'](_0x5c161e),'onTransformRemoteChangesetByStateCache':_0x57abac=>this[_0x4cda32(0x415)][_0x4cda32(0x375)](_0x57abac)};_0x4d7333[_0x4cda32(0x2ed)](_0x5c022e);}}));}};ie=zt([N(0x0,a['Inject'](T[_0x523ac5(0x1f8)])),N(0x1,a['Inject'](u[_0x523ac5(0x228)])),N(0x2,a[_0x523ac5(0x23c)](ee)),N(0x3,a[_0x523ac5(0x23c)](te)),N(0x4,a[_0x523ac5(0x23c)](se)),N(0x5,a[_0x523ac5(0x23c)](be)),N(0x6,O[_0x523ac5(0x30d)]),N(0x7,a['Inject'](a[_0x523ac5(0x3d0)]))],ie);var G=(_0x52d9ee=>(_0x52d9ee[_0x52d9ee[_0x523ac5(0x343)]=0x0]='UNDEFINED',_0x52d9ee[_0x52d9ee['OK']=0x1]='OK',_0x52d9ee[_0x52d9ee['INTERNAL_ERROR']=0x2]=_0x523ac5(0x38e),_0x52d9ee[_0x52d9ee[_0x523ac5(0x40d)]=0x3]='PERMISSION_DENIED',_0x52d9ee[_0x52d9ee[_0x523ac5(0x213)]=0x4]='NOT_FOUND',_0x52d9ee[_0x52d9ee[_0x523ac5(0x20b)]=0x5]=_0x523ac5(0x20b),_0x52d9ee[_0x52d9ee[_0x523ac5(0x437)]=0x6]=_0x523ac5(0x437),_0x52d9ee[_0x52d9ee[_0x523ac5(0x1b1)]=0x7]=_0x523ac5(0x1b1),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3ea)]=0x8]='TOO_MANY_REQUESTS',_0x52d9ee[_0x52d9ee[_0x523ac5(0x303)]=0x9]=_0x523ac5(0x303),_0x52d9ee[_0x52d9ee['LOGIN_FAILED']=0xa]=_0x523ac5(0x398),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3f8)]=0xb]=_0x523ac5(0x3f8),_0x52d9ee[_0x52d9ee[_0x523ac5(0x1f9)]=0xc]=_0x523ac5(0x1f9),_0x52d9ee[_0x52d9ee['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x523ac5(0x340),_0x52d9ee[_0x52d9ee[_0x523ac5(0x1f3)]=0xe]=_0x523ac5(0x1f3),_0x52d9ee[_0x52d9ee[_0x523ac5(0x210)]=0xf]=_0x523ac5(0x210),_0x52d9ee[_0x52d9ee[_0x523ac5(0x241)]=0x10]=_0x523ac5(0x241),_0x52d9ee[_0x52d9ee[_0x523ac5(0x282)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x52d9ee[_0x52d9ee[_0x523ac5(0x401)]=0x65]=_0x523ac5(0x401),_0x52d9ee[_0x52d9ee[_0x523ac5(0x296)]=0xc9]=_0x523ac5(0x296),_0x52d9ee[_0x52d9ee[_0x523ac5(0x301)]=0xca]=_0x523ac5(0x301),_0x52d9ee[_0x52d9ee[_0x523ac5(0x23e)]=0x1389]=_0x523ac5(0x23e),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3b4)]=0x1771]=_0x523ac5(0x3b4),_0x52d9ee[_0x52d9ee[_0x523ac5(0x30a)]=0x1772]=_0x523ac5(0x30a),_0x52d9ee[_0x52d9ee[_0x523ac5(0x2ce)]=0x1773]=_0x523ac5(0x2ce),_0x52d9ee[_0x52d9ee[_0x523ac5(0x21a)]=0x1b59]='APPLY_REJECT',_0x52d9ee[_0x52d9ee[_0x523ac5(0x2a2)]=0x1b5a]=_0x523ac5(0x2a2),_0x52d9ee[_0x52d9ee['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x52d9ee[_0x52d9ee[_0x523ac5(0x253)]=0x1b5c]=_0x523ac5(0x253),_0x52d9ee[_0x52d9ee[_0x523ac5(0x29e)]=0x1b5d]='APPLY_DUPLICATED',_0x52d9ee[_0x52d9ee[_0x523ac5(0x45b)]=0x1f41]=_0x523ac5(0x45b),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3a0)]=0x2329]=_0x523ac5(0x3a0),_0x52d9ee[_0x52d9ee[_0x523ac5(0x2aa)]=0x232a]=_0x523ac5(0x2aa),_0x52d9ee[_0x52d9ee[_0x523ac5(0x28d)]=0x232b]=_0x523ac5(0x28d),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3f9)]=0x232c]=_0x523ac5(0x3f9),_0x52d9ee[_0x52d9ee['LICENSE_DISTRO_REJECTED']=0x232d]=_0x523ac5(0x2f4),_0x52d9ee[_0x52d9ee[_0x523ac5(0x1b7)]=0x2711]=_0x523ac5(0x1b7),_0x52d9ee[_0x52d9ee[_0x523ac5(0x441)]=0x2712]=_0x523ac5(0x441),_0x52d9ee[_0x52d9ee[_0x523ac5(0x35d)]=0x2713]=_0x523ac5(0x35d),_0x52d9ee[_0x52d9ee['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x523ac5(0x252),_0x52d9ee[_0x52d9ee[_0x523ac5(0x427)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x52d9ee[_0x52d9ee[_0x523ac5(0x373)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x52d9ee[_0x52d9ee[_0x523ac5(0x1fe)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x52d9ee[_0x52d9ee[_0x523ac5(0x47d)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x52d9ee[_0x52d9ee[_0x523ac5(0x1ad)]=0x271e]=_0x523ac5(0x1ad),_0x52d9ee[_0x52d9ee['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x52d9ee[_0x52d9ee['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x523ac5(0x284),_0x52d9ee[_0x52d9ee[_0x523ac5(0x39a)]=0x2af9]=_0x523ac5(0x39a),_0x52d9ee[_0x52d9ee['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x523ac5(0x3d3),_0x52d9ee[_0x52d9ee[_0x523ac5(0x320)]=0x2ee2]=_0x523ac5(0x320),_0x52d9ee[_0x52d9ee[_0x523ac5(0x43c)]=0x2ee3]=_0x523ac5(0x43c),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3d1)]=0x2ee4]=_0x523ac5(0x3d1),_0x52d9ee[_0x52d9ee[_0x523ac5(0x295)]=0x2ee5]=_0x523ac5(0x295),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3f6)]=0x32c9]=_0x523ac5(0x3f6),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3f0)]=0x32ca]=_0x523ac5(0x3f0),_0x52d9ee[_0x52d9ee[_0x523ac5(0x26a)]=0x32cb]=_0x523ac5(0x26a),_0x52d9ee[_0x52d9ee[_0x523ac5(0x476)]=0x36b1]=_0x523ac5(0x476),_0x52d9ee[_0x52d9ee['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x52d9ee[_0x52d9ee[_0x523ac5(0x260)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x52d9ee[_0x52d9ee[_0x523ac5(0x2fe)]=0x36b4]=_0x523ac5(0x2fe),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3fb)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x52d9ee[_0x52d9ee[_0x523ac5(0x475)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x52d9ee[_0x52d9ee[_0x523ac5(0x322)]=0x36b7]=_0x523ac5(0x322),_0x52d9ee[_0x52d9ee[_0x523ac5(0x25e)]=0x36b8]=_0x523ac5(0x25e),_0x52d9ee[_0x52d9ee[_0x523ac5(0x34d)]=0x3715]=_0x523ac5(0x34d),_0x52d9ee[_0x52d9ee[_0x523ac5(0x463)]=0x3716]=_0x523ac5(0x463),_0x52d9ee[_0x52d9ee[_0x523ac5(0x268)]=0x3717]=_0x523ac5(0x268),_0x52d9ee[_0x52d9ee[_0x523ac5(0x2ad)]=0x37dd]=_0x523ac5(0x2ad),_0x52d9ee[_0x52d9ee['REDEMPTION_INVALID_CODE']=0x3a99]=_0x523ac5(0x368),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3dc)]=0x3a9a]=_0x523ac5(0x3dc),_0x52d9ee[_0x52d9ee[_0x523ac5(0x1cd)]=0x3a9b]=_0x523ac5(0x1cd),_0x52d9ee[_0x52d9ee[_0x523ac5(0x26c)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x52d9ee[_0x52d9ee['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x523ac5(0x26e),_0x52d9ee[_0x52d9ee['REDEMPTION_USER_REDEEM_TIMES_EXCEED']=0x3a9e]=_0x523ac5(0x33d),_0x52d9ee[_0x52d9ee['REDEMPTION_CODE_HAS_BEEN_CREATED']=0x3a9f]=_0x523ac5(0x3d7),_0x52d9ee[_0x52d9ee[_0x523ac5(0x230)]=0x3e81]=_0x523ac5(0x230),_0x52d9ee[_0x52d9ee[_0x523ac5(0x3ed)]=-0x1]=_0x523ac5(0x3ed),_0x52d9ee))(G||{});function Jt(_0x462403){const _0x492379=_0x523ac5;var _0x417d67,_0x16b8bb;const _0x25dc53=(_0x417d67=_0x462403[_0x492379(0x22c)])==null?void 0x0:_0x417d67['stage'],_0x21cee2=((_0x16b8bb=_0x462403[_0x492379(0x22c)])==null?void 0x0:_0x16b8bb[_0x492379(0x3fa)])||0x0;return _0x25dc53===B[_0x492379(0x32b)]['START_CALCULATION']&&_0x21cee2>0x0;}function Zt(_0x4506d){const _0x15fb32=_0x523ac5;return _0x4506d['functionsExecutedState']===B[_0x15fb32(0x218)][_0x15fb32(0x1c3)];}var Qt=Object[_0x523ac5(0x3f4)],es=(_0x43c05b,_0x2afcec,_0x39cdcd,_0x239eb0)=>{const _0x79bad5=_0x523ac5;for(var _0x2acaa2=_0x239eb0>0x1?void 0x0:_0x239eb0?Qt(_0x2afcec,_0x39cdcd):_0x2afcec,_0x281dd3=_0x43c05b[_0x79bad5(0x374)]-0x1,_0x35b574;_0x281dd3>=0x0;_0x281dd3--)(_0x35b574=_0x43c05b[_0x281dd3])&&(_0x2acaa2=_0x35b574(_0x2acaa2)||_0x2acaa2);return _0x2acaa2;},L=(_0x5abb08,_0x1f95be)=>(_0x3a9db9,_0x5b95a5)=>_0x1f95be(_0x3a9db9,_0x5b95a5,_0x5abb08);const ts=_0x523ac5(0x2d5),ss=_0x523ac5(0x470),is='/universer-api/license/formula/limit/done';let ne=class extends a[_0x523ac5(0x273)]{constructor(_0x466d29,_0x29d756,_0x5dfca4,_0x14d8e8,_0x3eeede,_0x21731a,_0xb9af5){const _0x156d3f=_0x523ac5;super(),_(this,'_pollingInterval',null),_(this,'_maxFormulaLimit',0x0),_(this,_0x156d3f(0x2ef),0x0),_(this,_0x156d3f(0x45e),[]),_(this,_0x156d3f(0x332),0x0),(this['_messageService']=_0x466d29,this[_0x156d3f(0x23b)]=_0x29d756,this[_0x156d3f(0x3b6)]=_0x5dfca4,this[_0x156d3f(0x3c5)]=_0x14d8e8,this['_univerInstanceService']=_0x3eeede,this['_logService']=_0x21731a,this[_0x156d3f(0x361)]=_0xb9af5,this[_0x156d3f(0x406)]());}[_0x523ac5(0x406)](){const _0xb8b895=_0x523ac5;this[_0xb8b895(0x1d1)](this[_0xb8b895(0x23b)][_0xb8b895(0x1e8)]((_0x300625,_0xd72e30)=>{const _0x3eaaf1=_0xb8b895;var _0x5a14c2;if(_0x300625['id']!==B[_0x3eaaf1(0x1bf)]['id'])return;const _0x18aca1=_0x300625[_0x3eaaf1(0x399)];if(!this['_hasFormulaInDirtyRanges']((_0x5a14c2=_0x18aca1[_0x3eaaf1(0x2cb)])!=null?_0x5a14c2:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x3eaaf1(0x2b5)](_0x300625,_0xd72e30),this['_showGuardMessage'](),new a[(_0x3eaaf1(0x3cb))]();})),this[_0xb8b895(0x1d1)](this['_commandService'][_0xb8b895(0x42f)]((_0x1d4729,_0x42f2e7)=>{const _0x3cb681=_0xb8b895;if(_0x1d4729['id']!==B['SetFormulaCalculationNotificationMutation']['id'])return;const _0x1a8ff0=_0x1d4729[_0x3cb681(0x399)];if(Jt(_0x1a8ff0)){const _0x25455b=a['generateRandomId']();this[_0x3cb681(0x45e)]['push'](_0x25455b),this[_0x3cb681(0x41e)](_0x25455b);}else{if(Zt(_0x1a8ff0)&&this[_0x3cb681(0x45e)][_0x3cb681(0x374)]>0x0){const _0x281990=this[_0x3cb681(0x45e)][_0x3cb681(0x2e3)]();this['_releaseCalculationLimit'](_0x281990);}}}));}[_0x523ac5(0x1e5)](){const _0x47a470=_0x523ac5;super[_0x47a470(0x1e5)](),this[_0x47a470(0x1ae)](),this[_0x47a470(0x45e)]=[],this[_0x47a470(0x2ef)]=0x0,this['_maxFormulaLimit']=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x523ac5(0x2b5)](_0x179bac,_0x22202a){const _0xbac087=_0x523ac5;for(let _0x173ae1=0x0;_0x173ae1<0x1e;_0x173ae1++)try{if(await this[_0xbac087(0x2d8)](),this['_checkCalculationAvailable']()){this[_0xbac087(0x33c)](_0x179bac,_0x22202a),this['_messageService'][_0xbac087(0x3c2)]({'content':this[_0xbac087(0x361)]['t'](_0xbac087(0x35e)),'type':p[_0xbac087(0x1da)][_0xbac087(0x2c2)]});return;}await new Promise(_0x3d3457=>{const _0x101cbb=_0xbac087;this[_0x101cbb(0x2c7)]=window[_0x101cbb(0x474)](_0x3d3457,0x3e8);});}catch(_0x19f382){this['_logService'][_0xbac087(0x1dd)](_0x19f382);}this['_messageService']['show']({'content':this[_0xbac087(0x361)]['t'](_0xbac087(0x26d)),'type':p[_0xbac087(0x1da)]['Error']});}[_0x523ac5(0x33c)](_0x4dd164,_0x468daa){const _0x42cc0d=_0x523ac5;try{this[_0x42cc0d(0x23b)][_0x42cc0d(0x1be)](_0x4dd164['id'],_0x4dd164[_0x42cc0d(0x399)],_0x468daa);}catch(_0x36eef3){this['_logService'][_0x42cc0d(0x1dd)](_0x36eef3);}}['_setFormulaLimitStatus'](_0x3fddb0,_0x491d06){const _0x321ac9=_0x523ac5;_0x491d06<this[_0x321ac9(0x332)]||(this[_0x321ac9(0x332)]=_0x491d06,this[_0x321ac9(0x2e7)]=Number['parseInt'](_0x3fddb0[_0x321ac9(0x2dc)]),this[_0x321ac9(0x2ef)]=Number[_0x321ac9(0x339)](_0x3fddb0[_0x321ac9(0x3e0)]));}async['_startCalculationLimit'](_0x24b5fd){const _0x132ec0=_0x523ac5;var _0x4f7d6e,_0x2c1cb2;const _0xd58a6d=Date[_0x132ec0(0x214)]();try{const _0x304801=((_0x4f7d6e=this[_0x132ec0(0x3b6)]['getConfig'](u[_0x132ec0(0x2de)]))==null?void 0x0:_0x4f7d6e[_0x132ec0(0x331)])||ss,_0x89448e=(await this[_0x132ec0(0x3c5)][_0x132ec0(0x28f)](_0x304801,{'body':JSON[_0x132ec0(0x335)]({'taskId':_0x24b5fd})}))[_0x132ec0(0x35f)];if(((_0x2c1cb2=_0x89448e[_0x132ec0(0x1dd)])==null?void 0x0:_0x2c1cb2[_0x132ec0(0x3c6)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x89448e[_0x132ec0(0x365)],_0xd58a6d);}catch(_0x133117){this[_0x132ec0(0x3dd)][_0x132ec0(0x1dd)](_0x133117);}}async[_0x523ac5(0x2d8)](_0x5d198b){const _0x55ea2d=_0x523ac5;var _0x33fbfe,_0x370b20;const _0x283846=Date[_0x55ea2d(0x214)]();try{const _0x30aa76=((_0x33fbfe=this[_0x55ea2d(0x3b6)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x33fbfe[_0x55ea2d(0x2c0)])||ts,_0x51d548=_0x5d198b?_0x30aa76+_0x55ea2d(0x346)+encodeURIComponent(_0x5d198b):_0x30aa76,_0x221260=(await this[_0x55ea2d(0x3c5)]['get'](_0x51d548))[_0x55ea2d(0x35f)];if(((_0x370b20=_0x221260['error'])==null?void 0x0:_0x370b20[_0x55ea2d(0x3c6)])!==G['OK'])return;this[_0x55ea2d(0x39e)](_0x221260[_0x55ea2d(0x365)],_0x283846);}catch(_0x37a6b2){this['_logService'][_0x55ea2d(0x1dd)](_0x37a6b2);}}async[_0x523ac5(0x341)](_0x2fb0a5){const _0x3aacfd=_0x523ac5;var _0x178760,_0x246dba;const _0x6d31e2=Date[_0x3aacfd(0x214)]();try{const _0x1b082a=((_0x178760=this['_configService']['getConfig'](u[_0x3aacfd(0x2de)]))==null?void 0x0:_0x178760['releaseFormulaLimitUrl'])||is,_0x58967d=(await this[_0x3aacfd(0x3c5)][_0x3aacfd(0x28f)](_0x1b082a,{'body':JSON[_0x3aacfd(0x335)]({'taskId':_0x2fb0a5})}))[_0x3aacfd(0x35f)];if(((_0x246dba=_0x58967d['error'])==null?void 0x0:_0x246dba[_0x3aacfd(0x3c6)])!==G['OK'])return;this[_0x3aacfd(0x39e)](_0x58967d[_0x3aacfd(0x365)],_0x6d31e2);}catch(_0x5a7fca){this[_0x3aacfd(0x3dd)][_0x3aacfd(0x1dd)](_0x5a7fca);}}['_checkCalculationAvailable'](){const _0x426000=_0x523ac5;return this[_0x426000(0x2e7)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0x523ac5(0x1ae)](){const _0x2c07fe=_0x523ac5;this[_0x2c07fe(0x2c7)]&&(clearTimeout(this[_0x2c07fe(0x2c7)]),this[_0x2c07fe(0x2c7)]=null);}[_0x523ac5(0x3be)](){const _0x3de12e=_0x523ac5;this[_0x3de12e(0x3e8)]['show']({'content':this['_localeService']['t'](_0x3de12e(0x20f)),'type':p[_0x3de12e(0x1da)][_0x3de12e(0x264)]});}[_0x523ac5(0x1f5)](_0x37929a){const _0x364b3e=_0x523ac5;for(const _0x2b1810 of _0x37929a){const {unitId:_0x4f634d,sheetId:_0x313c01,range:_0x5e9973}=_0x2b1810,_0x1ed1f0=this[_0x364b3e(0x1df)][_0x364b3e(0x279)](_0x4f634d);if(!_0x1ed1f0)continue;const _0x21c6e7=_0x1ed1f0[_0x364b3e(0x429)](_0x313c01);if(!_0x21c6e7)continue;const _0x3bcac3=_0x21c6e7[_0x364b3e(0x477)]();for(let _0x3bf49f=_0x5e9973['startRow'];_0x3bf49f<=_0x5e9973['endRow'];_0x3bf49f++)for(let _0x969711=_0x5e9973[_0x364b3e(0x2f0)];_0x969711<=_0x5e9973['endColumn'];_0x969711++){const _0x40a479=_0x3bcac3[_0x364b3e(0x2eb)](_0x3bf49f,_0x969711);if(_0x40a479&&(a['isFormulaString'](_0x40a479['f'])||a['isFormulaId'](_0x40a479['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x523ac5(0x23c)](O['IMessageService'])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x523ac5(0x23c)](x[_0x523ac5(0x454)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x523ac5(0x1c5)]),L(0x6,a[_0x523ac5(0x23c)](a[_0x523ac5(0x3d0)]))],ne);var ns=Object[_0x523ac5(0x3f4)],rs=(_0x1fcaf4,_0x3642ee,_0x2e0e73,_0x32cb72)=>{for(var _0x4b9d29=_0x32cb72>0x1?void 0x0:_0x32cb72?ns(_0x3642ee,_0x2e0e73):_0x3642ee,_0x4d0825=_0x1fcaf4['length']-0x1,_0x1b5abf;_0x4d0825>=0x0;_0x4d0825--)(_0x1b5abf=_0x1fcaf4[_0x4d0825])&&(_0x4b9d29=_0x1b5abf(_0x4b9d29)||_0x4b9d29);return _0x4b9d29;},Se=(_0x5d56ec,_0x31cd65)=>(_0x404bd7,_0x3dcdf9)=>_0x31cd65(_0x404bd7,_0x3dcdf9,_0x5d56ec);let Te=class extends a[_0x523ac5(0x273)]{constructor(_0x1da817,_0x3449c2,_0xbe7901){const _0x3282a0=_0x523ac5;super(),_(this,_0x3282a0(0x2a4),new Map()),_(this,_0x3282a0(0x3b5),new Map()),_(this,_0x3282a0(0x1e9),!0x1),(this[_0x3282a0(0x3b6)]=_0x1da817,this[_0x3282a0(0x313)]=_0x3449c2,this['_revisionService']=_0xbe7901);}[_0x523ac5(0x41b)](){const _0x62a8fa=_0x523ac5;this[_0x62a8fa(0x1e9)]=!0x0;}[_0x523ac5(0x403)](){const _0x460f4f=_0x523ac5;this[_0x460f4f(0x1e9)]=!0x1;}get[_0x523ac5(0x3ce)](){return this['_saveTaskMap'];}[_0x523ac5(0x1e5)](){const _0x14c0b6=_0x523ac5;this['exhaustSavingTask']()[_0x14c0b6(0x2fd)](()=>super[_0x14c0b6(0x1e5)]());}async['loadOfflineData'](_0xee1491){const _0x378cda=_0x523ac5;return this[_0x378cda(0x1e9)]?null:this[_0x378cda(0x313)]['getItem'](u[_0x378cda(0x2fa)](_0xee1491));}async[_0x523ac5(0x472)](_0x3deeb4,_0x92005d){const _0x5b8893=_0x523ac5;return!!this[_0x5b8893(0x313)][_0x5b8893(0x426)](_0x3deeb4,_0x92005d);}[_0x523ac5(0x1b6)](_0x340cf9,_0x38d21b,_0x1d34bb,_0x548625){const _0x38fc2e=_0x523ac5,_0x2e1f8b=this['_revisionService'][_0x38fc2e(0x1b8)](_0x340cf9);this[_0x38fc2e(0x2a4)][_0x38fc2e(0x2ab)](_0x340cf9,{'unitID':_0x340cf9,'type':_0x38d21b,'awaitingChangeset':_0x1d34bb,'mutations':_0x548625,'rev':_0x2e1f8b}),this[_0x38fc2e(0x3b5)]['has'](_0x340cf9)||this['_scheduleSaving'](_0x340cf9);}['_scheduleSaving'](_0x473252){const _0x274eb5=_0x523ac5,_0x3ce34c=this[_0x274eb5(0x31b)]();_0x3ce34c===0x0?this['_saveCache'](_0x473252):this['_saveTaskMap'][_0x274eb5(0x2ab)](_0x473252,setTimeout(()=>this[_0x274eb5(0x242)](_0x473252),_0x3ce34c));}[_0x523ac5(0x31b)](){const _0x36b6d7=_0x523ac5;var _0x4b4a4e;return(_0x4b4a4e=this[_0x36b6d7(0x3b6)][_0x36b6d7(0x2ae)](u[_0x36b6d7(0x3a9)]))!=null?_0x4b4a4e:u[_0x36b6d7(0x39d)];}[_0x523ac5(0x242)](_0x1801dd){const _0x43212e=_0x523ac5,_0x34ad3c=this[_0x43212e(0x3b5)][_0x43212e(0x43b)](_0x1801dd);return _0x34ad3c!==void 0x0&&window[_0x43212e(0x233)](_0x34ad3c),this[_0x43212e(0x313)][_0x43212e(0x426)](u[_0x43212e(0x2fa)](_0x1801dd),this[_0x43212e(0x2a4)][_0x43212e(0x43b)](_0x1801dd))[_0x43212e(0x2fd)](()=>this[_0x43212e(0x3b5)][_0x43212e(0x243)](_0x1801dd));}async[_0x523ac5(0x388)](){const _0x5000a7=_0x523ac5,_0x161988=[];this['_saveTaskMap']['forEach']((_0x527559,_0x2c66ae)=>{const _0x25fd40=_0xc685;window[_0x25fd40(0x233)](_0x527559),_0x161988['push'](this[_0x25fd40(0x242)](_0x2c66ae)[_0x25fd40(0x2fd)](()=>{const _0x167f66=_0x25fd40;this[_0x167f66(0x3b5)]['delete'](_0x2c66ae);}));}),await Promise[_0x5000a7(0x2f5)](_0x161988);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0x523ac5(0x1bb)]),Se(0x2,a[_0x523ac5(0x23c)](g[_0x523ac5(0x45f)]))],Te);class ke extends a[_0x523ac5(0x2bd)]{constructor(){const _0x48fa39=_0x523ac5;super(),_(this,'urlChange$'),this[_0x48fa39(0x24c)]=I[_0x48fa39(0x46e)](window,_0x48fa39(0x3fc))['pipe'](I['takeUntil'](this[_0x48fa39(0x334)]),I[_0x48fa39(0x1fb)](0x1),I['mapTo'](void 0x0));}[_0x523ac5(0x44b)](_0x26e72e,_0x31a973,_0x58605a=!0x1){const _0x5948c9=_0x523ac5,_0x485ec3=new URL(window[_0x5948c9(0x40e)][_0x5948c9(0x2f7)]);_0x485ec3[_0x5948c9(0x349)][_0x5948c9(0x2ab)](_0x26e72e,_0x31a973),_0x58605a?window[_0x5948c9(0x450)]['replaceState']('','',_0x485ec3[_0x5948c9(0x31e)]()):window['history']['pushState']('','',_0x485ec3[_0x5948c9(0x31e)]());}[_0x523ac5(0x333)](_0x1f8a74,_0x46ab27=!0x1){const _0x434391=_0x523ac5,_0x28cb53=new URL(window['location']['href']);_0x28cb53[_0x434391(0x349)][_0x434391(0x243)](_0x1f8a74),_0x46ab27?window['history'][_0x434391(0x20d)]('','',_0x28cb53[_0x434391(0x31e)]()):window[_0x434391(0x450)][_0x434391(0x321)]('','',_0x28cb53[_0x434391(0x31e)]());}[_0x523ac5(0x238)](_0xf5a552){const _0x552641=_0x523ac5;var _0x28a499;return(_0x28a499=new URL(window[_0x552641(0x40e)]['href'])[_0x552641(0x349)][_0x552641(0x43b)](_0xf5a552))!=null?_0x28a499:void 0x0;}}var os=Object[_0x523ac5(0x1bc)],as=Object['getOwnPropertyDescriptor'],cs=(_0x3fa739,_0xc7114c,_0x1de757)=>_0xc7114c in _0x3fa739?os(_0x3fa739,_0xc7114c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1de757}):_0x3fa739[_0xc7114c]=_0x1de757,ls=(_0x273ceb,_0xb5e4a7,_0x395f3c,_0x5bb452)=>{const _0xb1541e=_0x523ac5;for(var _0x4d70ee=_0x5bb452>0x1?void 0x0:_0x5bb452?as(_0xb5e4a7,_0x395f3c):_0xb5e4a7,_0x383c67=_0x273ceb[_0xb1541e(0x374)]-0x1,_0x35fc99;_0x383c67>=0x0;_0x383c67--)(_0x35fc99=_0x273ceb[_0x383c67])&&(_0x4d70ee=_0x35fc99(_0x4d70ee)||_0x4d70ee);return _0x4d70ee;},de=(_0x22a7c1,_0x1cad5a)=>(_0x1799eb,_0x37f33b)=>_0x1cad5a(_0x1799eb,_0x37f33b,_0x22a7c1),_s=(_0x25655b,_0x317fb7,_0x4fcc66)=>cs(_0x25655b,_0x317fb7+'',_0x4fcc66);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x523ac5(0x21f)]=class extends a[_0x523ac5(0x231)]{constructor(_0x528ee1=Me,_0x11b033,_0x8a6328,_0x2ca08c){const _0x369c94=_0x523ac5;super(),this[_0x369c94(0x3fe)]=_0x528ee1,this[_0x369c94(0x31c)]=_0x11b033,this[_0x369c94(0x37d)]=_0x8a6328,this[_0x369c94(0x3b6)]=_0x2ca08c;const {..._0x12e8b8}=a[_0x369c94(0x36f)]({},Me,this[_0x369c94(0x3fe)]);this[_0x369c94(0x3b6)][_0x369c94(0x1e4)](Yt,_0x12e8b8);}[_0x523ac5(0x433)](){const _0x44e485=_0x523ac5;this[_0x44e485(0x421)](),this[_0x44e485(0x364)]();}['onRendered'](){const _0x5cd6c8=_0x523ac5;this[_0x5cd6c8(0x379)]();}[_0x523ac5(0x421)](){const _0x1a2d10=_0x523ac5;var _0x5908ff;const _0xbd085e=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x1a2d10(0x358)],{'useClass':x[_0x1a2d10(0x1ce)]}],[u[_0x1a2d10(0x37e)],{'useClass':Te}],[exports[_0x1a2d10(0x3e6)]],[ie],[Z],[F],[me],[exports[_0x1a2d10(0x1e2)]]];this[_0x1a2d10(0x3fe)][_0x1a2d10(0x323)]&&_0xbd085e[_0x1a2d10(0x41c)]([Q]),a[_0x1a2d10(0x36a)](this['_injector'],a['mergeOverrideWithDependencies'](_0xbd085e,(_0x5908ff=this[_0x1a2d10(0x3fe)])==null?void 0x0:_0x5908ff['override']));}['_registerRenderDependencies'](){const _0x4e9ba4=_0x523ac5;this[_0x4e9ba4(0x1d1)](this[_0x4e9ba4(0x31c)][_0x4e9ba4(0x449)](a[_0x4e9ba4(0x35a)]['UNIVER_DOC'],[Ee])),this['disposeWithMe'](this[_0x4e9ba4(0x31c)]['registerRenderModule'](a[_0x4e9ba4(0x35a)][_0x4e9ba4(0x3d6)],[Ce]));}[_0x523ac5(0x364)](){const _0x4a02cf=_0x523ac5;a[_0x4a02cf(0x1f4)](this[_0x4a02cf(0x37d)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x4a02cf(0x1e2)]],[ne]]),this[_0x4a02cf(0x3fe)][_0x4a02cf(0x323)]&&a[_0x4a02cf(0x1f4)](this['_injector'],[[Q]]);}},_s(exports[_0x523ac5(0x21f)],_0x523ac5(0x267),hs),exports[_0x523ac5(0x21f)]=ls([a[_0x523ac5(0x40c)](u[_0x523ac5(0x275)]),de(0x1,C[_0x523ac5(0x383)]),de(0x2,a[_0x523ac5(0x23c)](a[_0x523ac5(0x269)])),de(0x3,a['IConfigService'])],exports[_0x523ac5(0x21f)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x472641,_0x554e5f,_0x341d6b,_0x59ee23)=>{for(var _0x143a8b=_0x59ee23>0x1?void 0x0:_0x59ee23?us(_0x554e5f,_0x341d6b):_0x554e5f,_0x315832=_0x472641['length']-0x1,_0x25992a;_0x315832>=0x0;_0x315832--)(_0x25992a=_0x472641[_0x315832])&&(_0x143a8b=_0x25992a(_0x143a8b)||_0x143a8b);return _0x143a8b;},W=(_0x38fa4d,_0x467283)=>(_0x39345f,_0x25a0d0)=>_0x467283(_0x39345f,_0x25a0d0,_0x38fa4d);exports[_0x523ac5(0x326)]=class extends u[_0x523ac5(0x274)]{constructor(_0x345738,_0x4eda4d,_0x491e72,_0x23c720,_0x465f50){super(_0x345738,_0x4eda4d,_0x491e72,_0x23c720,_0x465f50);}async['createSocket'](_0x4fc2b7){const _0x231cad=_0x523ac5,_0x565f46=await this[_0x231cad(0x3cd)](),_0x3a9d23=this[_0x231cad(0x1c1)](_0x4fc2b7,_0x565f46);return this[_0x231cad(0x444)](_0x3a9d23);}[_0x523ac5(0x1c1)](_0x3f0f90,_0x117a5){const _0x335dfe=_0x523ac5,_0x1a4e3f=typeof window>'u'?new URL(_0x3f0f90):new URL(_0x3f0f90,window[_0x335dfe(0x40e)][_0x335dfe(0x206)]);_0x1a4e3f[_0x335dfe(0x349)][_0x335dfe(0x2ab)](_0x335dfe(0x1de),_0x117a5);const _0xf034fc=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x335dfe(0x40e)][_0x335dfe(0x3ac)]);return _0xf034fc[_0x335dfe(0x43b)]('runId')&&_0x1a4e3f[_0x335dfe(0x349)][_0x335dfe(0x2ab)](_0x335dfe(0x2d4),_0xf034fc[_0x335dfe(0x43b)](_0x335dfe(0x2d4))),_0x1a4e3f[_0x335dfe(0x31e)]();}async[_0x523ac5(0x3cd)](){const _0x2614c4=_0x523ac5;var _0x398881,_0x6664a9,_0x2e3417;const _0x213d4d=this['_configService'][_0x2614c4(0x2ae)](u[_0x2614c4(0x2de)]),_0xff4a0b=(_0x398881=_0x213d4d==null?void 0x0:_0x213d4d['wsSessionTicketUrl'])!=null?_0x398881:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x2e3417=(_0x6664a9=(await this[_0x2614c4(0x3c5)]['get'](_0xff4a0b,{'headers':{'Content-Type':'application/json'}}))[_0x2614c4(0x35f)])==null?void 0x0:_0x6664a9[_0x2614c4(0x414)])!=null?_0x2e3417:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a[_0x523ac5(0x23c)](a[_0x523ac5(0x269)])),W(0x1,a[_0x523ac5(0x23c)](x[_0x523ac5(0x454)])),W(0x2,a[_0x523ac5(0x23f)]),W(0x3,a[_0x523ac5(0x1c5)]),W(0x4,g[_0x523ac5(0x402)])],exports[_0x523ac5(0x326)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x8d7d7e,_0x293265,_0x297c48,_0x5a200f)=>{const _0xb52bc8=_0x523ac5;for(var _0x7bfb15=_0x5a200f>0x1?void 0x0:_0x5a200f?Ss(_0x293265,_0x297c48):_0x293265,_0x532854=_0x8d7d7e[_0xb52bc8(0x374)]-0x1,_0x34a195;_0x532854>=0x0;_0x532854--)(_0x34a195=_0x8d7d7e[_0x532854])&&(_0x7bfb15=_0x34a195(_0x7bfb15)||_0x7bfb15);return _0x7bfb15;},fe=(_0xcce048,_0x173131)=>(_0xee977d,_0x2efbbb)=>_0x173131(_0xee977d,_0x2efbbb,_0xcce048);exports['RemoteUniscriptService']=class extends a[_0x523ac5(0x273)]{constructor(_0xab5acc,_0x972f2f,_0x2392b3){const _0x13edba=_0x523ac5;super(),this['_instanceService']=_0xab5acc,this[_0x13edba(0x3c5)]=_0x972f2f,this[_0x13edba(0x3b6)]=_0x2392b3;}async[_0x523ac5(0x227)](_0x1eb897,_0x547759,_0x5c81a0,..._0x49a30e){const _0x270395=_0x523ac5;var _0x42078a,_0x2c9537,_0x39cb26,_0x37bc07;const _0x1c1778=this['_instanceService'][_0x270395(0x288)]();if(!_0x1c1778)throw new Error(_0x270395(0x3b2));const _0x21dc44=((_0x42078a=this[_0x270395(0x3b6)]['getConfig'](u[_0x270395(0x1ed)]))!=null?_0x42078a:u[_0x270395(0x297)])+'/'+_0x1eb897+_0x270395(0x1cc)+_0x547759,_0x23e43e=new URL(window['location'][_0x270395(0x2f7)]),_0x13a1af={'scriptId':_0x1eb897,'runId':(_0x2c9537=_0x23e43e['searchParams'][_0x270395(0x43b)](_0x270395(0x2d4)))!=null?_0x2c9537:'','function':_0x547759,'unitId':_0x1c1778['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x49a30e),'invokeId':(_0x39cb26=_0x5c81a0['invokeId'])!=null?_0x39cb26:'','executionId':(_0x37bc07=_0x5c81a0[_0x270395(0x2d3)])!=null?_0x37bc07:''};try{const _0x2cb48e=await this[_0x270395(0x3c5)][_0x270395(0x28f)](_0x21dc44,{'body':_0x13a1af});return _0x2cb48e['body'][_0x270395(0x1dd)]&&_0x2cb48e[_0x270395(0x35f)][_0x270395(0x1dd)][_0x270395(0x3c6)]!==G['OK']?'Failed':_0x2cb48e[_0x270395(0x35f)][_0x270395(0x29b)];}catch{return _0x270395(0x255);}}},exports[_0x523ac5(0x32e)]=ds([fe(0x0,a['IUniverInstanceService']),fe(0x1,a['Inject'](x[_0x523ac5(0x454)])),fe(0x2,a['IConfigService'])],exports[_0x523ac5(0x32e)]);const we=0x7530,ye=_0x523ac5(0x362);class fs extends a[_0x523ac5(0x273)]{constructor(){const _0x49ba4b=_0x523ac5;super(),_(this,_0x49ba4b(0x289),a['generateRandomId']()),_(this,_0x49ba4b(0x28a),new Set()),_(this,_0x49ba4b(0x276),new Map()),_(this,_0x49ba4b(0x312),null),_(this,_0x49ba4b(0x393),new Map()),_(this,_0x49ba4b(0x327),new Map()),this['_init']();}[_0x523ac5(0x1e5)](){const _0x4d9bd4=_0x523ac5;super[_0x4d9bd4(0x1e5)](),this['_clearOtherTimers']['forEach']((_0x168a27,_0x191644)=>this['_removeClearOtherTimer'](_0x191644)),this[_0x4d9bd4(0x312)]&&window['clearInterval'](this[_0x4d9bd4(0x312)]);}[_0x523ac5(0x203)](_0x5f2225){const _0x283b2b=_0x523ac5;return this[_0x283b2b(0x291)](_0x5f2225)[_0x283b2b(0x3ff)](I[_0x283b2b(0x408)]());}['editingUnit'](_0x155ca0){const _0x26c4fd=_0x523ac5;this[_0x26c4fd(0x28a)]['size']===0x0&&this[_0x26c4fd(0x1d8)](),this['_selfUnitIDs']['add'](_0x155ca0),this[_0x26c4fd(0x3f3)]({'type':0x0,'memberID':this[_0x26c4fd(0x289)],'unitIDs':[_0x155ca0],'isForwarded':!0x1});}[_0x523ac5(0x3f7)](_0x2a7f9f){const _0x36a2b6=_0x523ac5;this[_0x36a2b6(0x28a)][_0x36a2b6(0x243)](_0x2a7f9f),this[_0x36a2b6(0x28a)][_0x36a2b6(0x259)]===0x0&&this[_0x36a2b6(0x312)]&&window[_0x36a2b6(0x442)](this[_0x36a2b6(0x312)]);}[_0x523ac5(0x456)](){const _0xae7d4f=_0x523ac5;this['disposeWithMe'](a[_0xae7d4f(0x448)](I['fromEvent'](window,_0xae7d4f(0x39f))[_0xae7d4f(0x418)](_0x513d2b=>{const _0x4e2955=_0xae7d4f;if(_0x513d2b[_0x4e2955(0x409)]!==ye||!_0x513d2b[_0x4e2955(0x404)])return;const _0x56bbf6=JSON[_0x4e2955(0x2cf)](_0x513d2b[_0x4e2955(0x404)]);this[_0x4e2955(0x278)](_0x56bbf6);}))),window[_0xae7d4f(0x41a)](_0xae7d4f(0x2c8),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0xae7d4f(0x38d)](this['_selfUnitIDs'])}));}[_0x523ac5(0x278)](_0x4a48a6){const _0x5b5b4e=_0x523ac5;switch(_0x4a48a6['type']){case 0x0:this['_handleJoinEvent'](_0x4a48a6);break;case 0x1:this[_0x5b5b4e(0x306)](_0x4a48a6);break;case 0x2:this['_handleHeartbeatEvent'](_0x4a48a6);break;}}['_handleJoinEvent'](_0x548b57){const _0x950d59=_0x523ac5,{unitIDs:_0x2b093c,memberID:_0x5c081b,isForwarded:_0x124eda}=_0x548b57;_0x2b093c[_0x950d59(0x447)](_0x4cbc14=>{const _0x4e131f=_0x950d59;if(!_0x124eda&&this[_0x4e131f(0x276)][_0x4e131f(0x376)](_0x4cbc14)&&this[_0x4e131f(0x291)](_0x4cbc14)[_0x4e131f(0x251)](u[_0x4e131f(0x1ff)]['OTHER_CLIENTS_EDITING']),!this[_0x4e131f(0x276)][_0x4e131f(0x376)](_0x4cbc14)||!this[_0x4e131f(0x276)]['get'](_0x4cbc14)[_0x4e131f(0x376)](_0x5c081b)){const _0x2c9096=this[_0x4e131f(0x276)][_0x4e131f(0x43b)](_0x4cbc14)||new Set();_0x2c9096[_0x4e131f(0x412)](_0x5c081b),this[_0x4e131f(0x276)][_0x4e131f(0x2ab)](_0x4cbc14,_0x2c9096),this[_0x4e131f(0x2b3)](_0x5c081b);}}),_0x124eda||this[_0x950d59(0x3f3)]({'type':0x0,'memberID':this[_0x950d59(0x289)],'unitIDs':[...this[_0x950d59(0x28a)]],'isForwarded':!0x0});}[_0x523ac5(0x2b3)](_0x2df097){const _0x525a27=_0x523ac5;this[_0x525a27(0x381)](_0x2df097);const _0x3b7ce3=window[_0x525a27(0x474)](()=>{const _0x566197=_0x525a27;this[_0x566197(0x276)][_0x566197(0x447)](_0x5e6db0=>{const _0xd07b4b=_0x566197;_0x5e6db0[_0xd07b4b(0x243)](_0x2df097);});},we*0x2);this[_0x525a27(0x393)]['set'](_0x2df097,_0x3b7ce3);}[_0x523ac5(0x381)](_0x3822b1){const _0x4b1be4=_0x523ac5;if(this[_0x4b1be4(0x393)][_0x4b1be4(0x376)](_0x3822b1)){const _0x1149c8=this[_0x4b1be4(0x393)][_0x4b1be4(0x43b)](_0x3822b1);_0x1149c8&&window[_0x4b1be4(0x233)](_0x1149c8),this['_clearOtherTimers']['set'](_0x3822b1,null);}}[_0x523ac5(0x306)](_0x24b8ab){const _0x5d9c9a=_0x523ac5,{memberID:_0x45e7a0,unitIDs:_0x12e2fd}=_0x24b8ab;_0x12e2fd[_0x5d9c9a(0x447)](_0x1a312d=>{const _0x39d265=_0x5d9c9a;var _0x26d677;const _0x98e7d0=this[_0x39d265(0x276)]['get'](_0x1a312d);_0x98e7d0&&(_0x98e7d0[_0x39d265(0x243)](_0x45e7a0),(_0x26d677=this[_0x39d265(0x291)](_0x1a312d))==null||_0x26d677[_0x39d265(0x251)](_0x98e7d0['size']===0x0?u[_0x39d265(0x1ff)][_0x39d265(0x250)]:u[_0x39d265(0x1ff)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x45e7a0);}[_0x523ac5(0x33e)](_0x49b3a9){this['_scheduleClearOtherTimer'](_0x49b3a9['memberID']);}[_0x523ac5(0x3f3)](_0x3d8bb9){const _0x801819=_0x523ac5;localStorage[_0x801819(0x426)](ye,JSON[_0x801819(0x335)](_0x3d8bb9));}['_scheduleHeartbeat'](){const _0x4cd5f6=_0x523ac5;this[_0x4cd5f6(0x312)]=window['setInterval'](()=>{const _0x1b77c4=_0x4cd5f6;this[_0x1b77c4(0x3f3)]({'type':0x2,'memberID':this['_id']});},we);}[_0x523ac5(0x291)](_0xefe5e4){const _0x38c7b7=_0x523ac5;return this[_0x38c7b7(0x327)][_0x38c7b7(0x376)](_0xefe5e4)||this[_0x38c7b7(0x327)]['set'](_0xefe5e4,new I[(_0x38c7b7(0x2c5))](u[_0x38c7b7(0x1ff)][_0x38c7b7(0x250)])),this[_0x38c7b7(0x327)][_0x38c7b7(0x43b)](_0xefe5e4);}}exports['IURLService']=Oe,exports['SheetCollabCursorShape']=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x523ac5(0x1d9)]=ke;
|
|
1
|
+
'use strict';const _0x4a7abe=_0xdbe3;(function(_0x4f7829,_0x4f61a7){const _0x31b171=_0xdbe3,_0x469216=_0x4f7829();while(!![]){try{const _0x405d30=-parseInt(_0x31b171(0x30e))/0x1+parseInt(_0x31b171(0x3a6))/0x2+-parseInt(_0x31b171(0x429))/0x3*(-parseInt(_0x31b171(0x1d1))/0x4)+parseInt(_0x31b171(0x3a0))/0x5+parseInt(_0x31b171(0x488))/0x6+parseInt(_0x31b171(0x209))/0x7*(-parseInt(_0x31b171(0x2b3))/0x8)+parseInt(_0x31b171(0x39b))/0x9*(-parseInt(_0x31b171(0x212))/0xa);if(_0x405d30===_0x4f61a7)break;else _0x469216['push'](_0x469216['shift']());}catch(_0x28045a){_0x469216['push'](_0x469216['shift']());}}}(_0x3550,0xded0a));var Xe=Object[_0x4a7abe(0x25e)],Ke=(_0x1513ca,_0x1c9a95,_0x550757)=>_0x1c9a95 in _0x1513ca?Xe(_0x1513ca,_0x1c9a95,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x550757}):_0x1513ca[_0x1c9a95]=_0x550757,_=(_0x529ced,_0x3ac635,_0x36fbf7)=>Ke(_0x529ced,typeof _0x3ac635!=_0x4a7abe(0x2fc)?_0x3ac635+'':_0x3ac635,_0x36fbf7);Object['defineProperty'](exports,Symbol[_0x4a7abe(0x3ef)],{'value':_0x4a7abe(0x252)});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:_0x31c6ab,..._0x588389}){const _0x151412=_0x4a7abe,{icon:_0x2a5f13,id:_0x37e5ee,className:_0x5d6aac,extend:_0x4773ca,..._0x2e2ddd}=_0x588389,_0x471ee0=(_0x151412(0x31b)+_0x37e5ee+'\x20'+(_0x5d6aac||''))[_0x151412(0x2fd)](),_0x345bc8=A[_0x151412(0x23b)]('_'+Qe());return $e(_0x2a5f13,''+_0x37e5ee,{'defIds':_0x2a5f13['defIds'],'idSuffix':_0x345bc8['current']},{'ref':_0x31c6ab,'className':_0x471ee0,..._0x2e2ddd},_0x4773ca);}function $e(_0x2f8396,_0xf76121,_0x2ca74e,_0xb05f7b,_0x136d71){const _0x56200e=_0x4a7abe;return A['createElement'](_0x2f8396[_0x56200e(0x37f)],{'key':_0xf76121,...Je(_0x2f8396,_0x2ca74e,_0x136d71),..._0xb05f7b},(Ze(_0x2f8396,_0x2ca74e)[_0x56200e(0x341)]||[])[_0x56200e(0x314)]((_0x1b5fcc,_0x300e56)=>$e(_0x1b5fcc,_0xf76121+'-'+_0x2f8396['tag']+'-'+_0x300e56,_0x2ca74e,void 0x0,_0x136d71)));}function Je(_0x2f354c,_0x3a3ac9,_0x4a24b9){const _0x1e2734=_0x4a7abe,_0x21eed6={..._0x2f354c['attrs']};_0x4a24b9!=null&&_0x4a24b9[_0x1e2734(0x23f)]&&_0x21eed6[_0x1e2734(0x42c)]==='colorChannel1'&&(_0x21eed6[_0x1e2734(0x42c)]=_0x4a24b9[_0x1e2734(0x23f)]),_0x2f354c[_0x1e2734(0x37f)]===_0x1e2734(0x204)&&_0x21eed6['id']&&(_0x21eed6['id']=_0x21eed6['id']+_0x3a3ac9['idSuffix']),Object[_0x1e2734(0x236)](_0x21eed6)[_0x1e2734(0x2aa)](([_0x10bf47,_0x3704c0])=>{const _0x4ae7e6=_0x1e2734;_0x10bf47===_0x4ae7e6(0x204)&&typeof _0x3704c0==_0x4ae7e6(0x32b)&&(_0x21eed6[_0x10bf47]=_0x3704c0['replace'](/url\(#(.*)\)/,_0x4ae7e6(0x3ba)+_0x3a3ac9[_0x4ae7e6(0x472)]+')'));});const {defIds:_0x556def}=_0x3a3ac9;return!_0x556def||_0x556def[_0x1e2734(0x3e3)]===0x0||(_0x2f354c[_0x1e2734(0x37f)]===_0x1e2734(0x35b)&&_0x21eed6[_0x1e2734(0x215)]&&(_0x21eed6[_0x1e2734(0x215)]=_0x21eed6[_0x1e2734(0x215)]+_0x3a3ac9['idSuffix']),Object[_0x1e2734(0x236)](_0x21eed6)[_0x1e2734(0x2aa)](([_0x4ff696,_0x40e85d])=>{const _0x19c1cf=_0x1e2734;typeof _0x40e85d=='string'&&(_0x21eed6[_0x4ff696]=_0x40e85d[_0x19c1cf(0x36f)](/url\(#(.*)\)/,'url(#$1'+_0x3a3ac9[_0x19c1cf(0x472)]+')'));})),_0x21eed6;}function Ze(_0x235df5,_0x40efd5){const _0x51d6cb=_0x4a7abe;var _0x288df9;const {defIds:_0x5117c3}=_0x40efd5;return!_0x5117c3||_0x5117c3[_0x51d6cb(0x3e3)]===0x0?_0x235df5:_0x235df5[_0x51d6cb(0x37f)]===_0x51d6cb(0x441)&&((_0x288df9=_0x235df5[_0x51d6cb(0x341)])!=null&&_0x288df9[_0x51d6cb(0x3e3)])?{..._0x235df5,'children':_0x235df5['children'][_0x51d6cb(0x314)](_0x145077=>typeof _0x145077['attrs']['id']==_0x51d6cb(0x32b)&&_0x5117c3&&_0x5117c3[_0x51d6cb(0x3fc)](_0x145077[_0x51d6cb(0x3fa)]['id'])?{..._0x145077,'attrs':{..._0x145077[_0x51d6cb(0x3fa)],'id':_0x145077[_0x51d6cb(0x3fa)]['id']+_0x40efd5['idSuffix']}}:_0x145077)}:_0x235df5;}function Qe(){const _0x576e0c=_0x4a7abe;return Math[_0x576e0c(0x33d)]()[_0x576e0c(0x442)](0x24)[_0x576e0c(0x27d)](0x2,0x8);}pe[_0x4a7abe(0x438)]=_0x4a7abe(0x340);const et={'tag':_0x4a7abe(0x432),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4a7abe(0x415),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'stroke':_0x4a7abe(0x3e9),'d':_0x4a7abe(0x411),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4a7abe(0x441),'attrs':{},'children':[{'tag':_0x4a7abe(0x406),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'fill':_0x4a7abe(0x44f),'d':_0x4a7abe(0x357)}}]}]}],'defIds':[_0x4a7abe(0x26b)]},xe=A[_0x4a7abe(0x1c3)](function(_0x1edf92,_0x6c02d5){const _0x461e68=_0x4a7abe;return A['createElement'](pe,Object['assign']({},_0x1edf92,{'id':_0x461e68(0x2d8),'ref':_0x6c02d5,'icon':et}));});xe['displayName']=_0x4a7abe(0x3fb);const tt={'tag':_0x4a7abe(0x432),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4a7abe(0x47f),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4a7abe(0x445)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a7abe(0x2c1)},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'stroke':_0x4a7abe(0x3e9),'d':_0x4a7abe(0x1e0),'strokeLinecap':_0x4a7abe(0x381),'strokeLinejoin':_0x4a7abe(0x381),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a7abe(0x406),'attrs':{'id':_0x4a7abe(0x458)},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'fill':'white','d':_0x4a7abe(0x357),'transform':_0x4a7abe(0x266)}}]}]}],'defIds':[_0x4a7abe(0x458)]},Be=A[_0x4a7abe(0x1c3)](function(_0x390add,_0x4fdb46){const _0x50432e=_0x4a7abe;return A[_0x50432e(0x40e)](pe,Object[_0x50432e(0x1ee)]({},_0x390add,{'id':_0x50432e(0x2c9),'ref':_0x4fdb46,'icon':tt}));});Be[_0x4a7abe(0x438)]='OnLineIcon';function st(_0x6ae967){const _0x3da826=_0x4a7abe;switch(_0x6ae967){case u[_0x3da826(0x1bb)]['OFFLINE']:return _0x3da826(0x28f);case u['CollaborationStatus'][_0x3da826(0x431)]:return _0x3da826(0x404);case u[_0x3da826(0x1bb)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x3da826(0x1bb)][_0x3da826(0x2f4)]:return _0x3da826(0x3b9);case u[_0x3da826(0x1bb)][_0x3da826(0x25c)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x3da826(0x3f5);case u[_0x3da826(0x1bb)][_0x3da826(0x21d)]:case u[_0x3da826(0x1bb)][_0x3da826(0x3c3)]:return _0x3da826(0x2e9);}}function it(_0x2208ae){const _0x270970=_0x4a7abe,{status$:_0x354a8c}=_0x2208ae,_0x52f502=O[_0x270970(0x391)](_0x354a8c,u['CollaborationStatus']['NOT_COLLAB']),_0x224281=O[_0x270970(0x218)](a['LocaleService']),_0x6d954e=O[_0x270970(0x218)](u['CollaborationSessionService']),_0x144ee4=_0x52f502!==u[_0x270970(0x1bb)][_0x270970(0x257)],_0x481e32=_0x224281['t'](st(_0x52f502)),_0x465707=_0x144ee4?M[_0x270970(0x261)](Be,{}):M[_0x270970(0x261)](xe,{}),_0x12429e=A[_0x270970(0x3b0)](()=>{const _0x2e2ea2=_0x270970;_0x144ee4||_0x6d954e[_0x2e2ea2(0x224)]();},[_0x144ee4,_0x6d954e]);function _0x249f26(){const _0x4f6eda=_0x270970;return M[_0x4f6eda(0x36a)]('div',{'className':_0x4f6eda(0x386),'onClick':_0x12429e,'children':[M[_0x4f6eda(0x261)](_0x4f6eda(0x2e7),{'className':p[_0x4f6eda(0x3e4)](_0x4f6eda(0x1b7),{'univer-text-green-500':_0x144ee4,'univer-text-red-500':!_0x144ee4}),'children':_0x465707}),M[_0x4f6eda(0x261)](_0x4f6eda(0x2e7),{'className':_0x4f6eda(0x1cc),'children':_0x481e32})]});}return _0x144ee4?_0x249f26():M[_0x270970(0x261)](p[_0x270970(0x479)],{'title':_0x224281['t'](_0x270970(0x2d3)),'children':_0x249f26()});}var nt=Object[_0x4a7abe(0x319)],rt=(_0x5d2156,_0x51e758,_0x2042d7,_0x15bb2d)=>{const _0x4e3cc5=_0x4a7abe;for(var _0x6f9a62=_0x15bb2d>0x1?void 0x0:_0x15bb2d?nt(_0x51e758,_0x2042d7):_0x51e758,_0x33f341=_0x5d2156[_0x4e3cc5(0x3e3)]-0x1,_0xcc74fb;_0x33f341>=0x0;_0x33f341--)(_0xcc74fb=_0x5d2156[_0x33f341])&&(_0x6f9a62=_0xcc74fb(_0x6f9a62)||_0x6f9a62);return _0x6f9a62;},K=(_0x5285a9,_0x2dd431)=>(_0x1a1323,_0x5f2744)=>_0x2dd431(_0x1a1323,_0x5f2744,_0x5285a9);exports[_0x4a7abe(0x446)]=class extends a[_0x4a7abe(0x2de)]{constructor(_0x4c8c12,_0x3a10ad,_0x113f71,_0x20e7e7){const _0x46c346=_0x4a7abe;super(),_(this,_0x46c346(0x489),new I['BehaviorSubject'](u[_0x46c346(0x1bb)][_0x46c346(0x2f4)])),(this[_0x46c346(0x393)]=_0x4c8c12,this[_0x46c346(0x449)]=_0x3a10ad,this[_0x46c346(0x24e)]=_0x113f71,this[_0x46c346(0x39d)]=_0x20e7e7,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x4a7abe(0x372)](){const _0x4ab49d=_0x4a7abe;this[_0x4ab49d(0x360)](this['_univerInstanceService'][_0x4ab49d(0x253)][_0x4ab49d(0x31d)](I[_0x4ab49d(0x1ef)](()=>{const _0x51e0e3=_0x4ab49d,_0x3adba0=this[_0x51e0e3(0x393)][_0x51e0e3(0x460)]();return _0x3adba0?this[_0x51e0e3(0x24e)][_0x51e0e3(0x46e)](_0x3adba0['getUnitId']()):I['of'](null);}),I[_0x4ab49d(0x1ef)](_0x1e0466=>_0x1e0466?_0x1e0466[_0x4ab49d(0x444)]:I['of'](u[_0x4ab49d(0x1bb)][_0x4ab49d(0x2f4)])))[_0x4ab49d(0x1f1)](_0x3da364=>{const _0x126590=_0x4ab49d;this[_0x126590(0x489)]['next'](_0x3da364);}));}[_0x4a7abe(0x233)](){const _0x270bd0=_0x4a7abe;this[_0x270bd0(0x360)](this['_uiPartsService'][_0x270bd0(0x2fa)](O[_0x270bd0(0x440)][_0x270bd0(0x2bd)],()=>O['connectInjector'](ot({'status$':this['_status$']['asObservable']()}),this[_0x270bd0(0x449)])));}},exports[_0x4a7abe(0x446)]=rt([K(0x0,a[_0x4a7abe(0x1e6)]),K(0x1,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),K(0x2,a[_0x4a7abe(0x32c)](u['CollaborationController'])),K(0x3,O[_0x4a7abe(0x462)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x35a843){const {status$:_0x2fb081}=_0x35a843;return function(){const _0x3c7275=_0xdbe3;return M[_0x3c7275(0x261)](it,{'status$':_0x2fb081});};}const Oe=a['createIdentifier']('uni.network.url-service');var at=Object[_0x4a7abe(0x319)],ct=(_0x2b2180,_0x242231,_0x3ffaf4,_0x56db1e)=>{const _0x380fae=_0x4a7abe;for(var _0x5f1f30=_0x56db1e>0x1?void 0x0:_0x56db1e?at(_0x242231,_0x3ffaf4):_0x242231,_0x3957e7=_0x2b2180[_0x380fae(0x3e3)]-0x1,_0x2eb675;_0x3957e7>=0x0;_0x3957e7--)(_0x2eb675=_0x2b2180[_0x3957e7])&&(_0x5f1f30=_0x2eb675(_0x5f1f30)||_0x5f1f30);return _0x5f1f30;},Y=(_0x5cd0e0,_0x5b7552)=>(_0x291737,_0x5cb6d4)=>_0x5b7552(_0x291737,_0x5cb6d4,_0x5cd0e0);exports[_0x4a7abe(0x30d)]=class extends a['RxDisposable']{constructor(_0x26019f,_0x52cd89,_0x21c360,_0x20bbb0,_0x374f19){const _0x13d8ec=_0x4a7abe;super(),this[_0x13d8ec(0x2d7)]=_0x26019f,this[_0x13d8ec(0x32d)]=_0x52cd89,this[_0x13d8ec(0x263)]=_0x21c360,this[_0x13d8ec(0x333)]=_0x20bbb0,_0x374f19?_0x374f19==null||_0x374f19[_0x13d8ec(0x469)]()[_0x13d8ec(0x2bf)](()=>this[_0x13d8ec(0x3a9)]()):(this['_logService']['debug'](_0x13d8ec(0x3b7),_0x13d8ec(0x2d5)),this[_0x13d8ec(0x3a9)]());}async['_init'](){const _0x280c96=_0x4a7abe,_0x1a31da=this[_0x280c96(0x2d7)][_0x280c96(0x47c)]('unit'),_0x5aa70c=this[_0x280c96(0x2d7)][_0x280c96(0x47c)](_0x280c96(0x2b1)),_0x2e3069=this[_0x280c96(0x2d7)][_0x280c96(0x47c)](_0x280c96(0x2ce));if(!_0x1a31da||!_0x5aa70c){this[_0x280c96(0x32d)][_0x280c96(0x377)]('[CollaborationDataLoaderController]',_0x280c96(0x3df));return;}const _0x3615e7=await this[_0x280c96(0x333)][_0x280c96(0x251)](_0x1a31da,Number(_0x5aa70c),_0x2e3069);_0x3615e7&&_0x3615e7 instanceof a[_0x280c96(0x293)]&&this['_setupSubUnitSync'](_0x3615e7);}async[_0x4a7abe(0x258)](_0x3c7503){const _0x1b142a=_0x4a7abe;await this[_0x1b142a(0x40d)](_0x3c7503),_0x3c7503[_0x1b142a(0x423)][_0x1b142a(0x31d)](I['takeUntil'](this[_0x1b142a(0x288)]))['subscribe'](_0x3f1b3f=>{_0x3f1b3f&&this['_updateURLWithCurrentState'](_0x3f1b3f);}),this[_0x1b142a(0x2d7)][_0x1b142a(0x1ca)][_0x1b142a(0x31d)](I[_0x1b142a(0x239)](this[_0x1b142a(0x288)]))['subscribe'](()=>this[_0x1b142a(0x40d)](_0x3c7503));}['_updateURLWithCurrentState'](_0x45a553,_0x4fecc2=!0x1){const _0x3777c7=_0x4a7abe,_0x326403=this[_0x3777c7(0x2d7)]['getParam'](_0x3777c7(0x2ce));_0x45a553[_0x3777c7(0x338)]()!==_0x326403&&this[_0x3777c7(0x2d7)][_0x3777c7(0x3c7)]('subunit',_0x45a553[_0x3777c7(0x338)](),_0x4fecc2);}async[_0x4a7abe(0x40d)](_0x271472){const _0x10e304=_0x4a7abe;var _0x3f6c91;const _0x323d5e=this[_0x10e304(0x2d7)]['getParam'](_0x10e304(0x2ce));if(!_0x323d5e||!_0x271472[_0x10e304(0x2bb)](_0x323d5e)){const _0x3382e3=_0x271472[_0x10e304(0x1ed)]()[0x0],_0x7c3e6a=_0x271472[_0x10e304(0x2bb)](_0x3382e3);if(!_0x7c3e6a)return;this[_0x10e304(0x312)](_0x7c3e6a,!0x0),await this[_0x10e304(0x263)]['executeCommand'](v[_0x10e304(0x351)]['id'],{'unitId':_0x271472['getUnitId'](),'subUnitId':_0x3382e3});return;}((_0x3f6c91=_0x271472[_0x10e304(0x3bd)]())==null?void 0x0:_0x3f6c91[_0x10e304(0x338)]())!==_0x323d5e&&await this['_commandService'][_0x10e304(0x22f)](v[_0x10e304(0x351)]['id'],{'unitId':_0x271472[_0x10e304(0x201)](),'subUnitId':_0x323d5e});}},exports[_0x4a7abe(0x30d)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4a7abe(0x1dc)]),Y(0x2,a[_0x4a7abe(0x434)]),Y(0x3,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x3b6)])),Y(0x4,a[_0x4a7abe(0x3ed)](qe[_0x4a7abe(0x313)]))],exports[_0x4a7abe(0x30d)]);var lt=Object[_0x4a7abe(0x319)],_t=(_0x21786a,_0x23ea2d,_0x3dfd6d,_0x7bc1d4)=>{const _0x1f1d73=_0x4a7abe;for(var _0x48a524=_0x7bc1d4>0x1?void 0x0:_0x7bc1d4?lt(_0x23ea2d,_0x3dfd6d):_0x23ea2d,_0x17407d=_0x21786a[_0x1f1d73(0x3e3)]-0x1,_0x4c72ab;_0x17407d>=0x0;_0x17407d--)(_0x4c72ab=_0x21786a[_0x17407d])&&(_0x48a524=_0x4c72ab(_0x48a524)||_0x48a524);return _0x48a524;},De=(_0x293997,_0x27e9ce)=>(_0x5e3324,_0x5641fd)=>_0x27e9ce(_0x5e3324,_0x5641fd,_0x293997);let me=class extends a[_0x4a7abe(0x3cf)]{constructor(_0xa3b3ae,_0x432396){const _0x11804b=_0x4a7abe;super(),this['_docClipboardService']=_0xa3b3ae,this['_imageIoService']=_0x432396,this[_0x11804b(0x3a9)]();}[_0x4a7abe(0x3a9)](){const _0x3e86d7=_0x4a7abe,_0x4172fd=this;this['disposeWithMe'](this['_docClipboardService'][_0x3e86d7(0x1da)]({'onBeforePasteImage':async _0xdd0457=>{const _0x40287f=_0x3e86d7,_0x5770bb=await _0x4172fd[_0x40287f(0x461)][_0x40287f(0x36e)](_0xdd0457);return _0x5770bb?{'source':_0x5770bb[_0x40287f(0x2dd)],'imageSourceType':_0x5770bb[_0x40287f(0x27f)]}:null;}}));}};function _0xdbe3(_0x30b648,_0x45d520){_0x30b648=_0x30b648-0x1b7;const _0x355068=_0x3550();let _0xdbe337=_0x355068[_0x30b648];return _0xdbe337;}me=_t([De(0x0,T[_0x4a7abe(0x44b)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x4a7abe(0x454),_0x4a7abe(0x368),'green.600',_0x4a7abe(0x480),_0x4a7abe(0x3f7),_0x4a7abe(0x42f)];class Re extends a[_0x4a7abe(0x2de)]{constructor(){const _0x56a5e9=_0x4a7abe;super(...arguments),_(this,_0x56a5e9(0x2e2),new Map()),_(this,_0x56a5e9(0x2e5),0x0);}[_0x4a7abe(0x1de)](_0x4e9fde){const _0x1fcedb=_0x4a7abe;if(this['_assignedColors'][_0x1fcedb(0x439)](_0x4e9fde))return this['_assignedColors'][_0x1fcedb(0x1c8)](_0x4e9fde);const _0x1af8e7=Ne[this[_0x1fcedb(0x2e5)]];return this[_0x1fcedb(0x2e5)]=(this[_0x1fcedb(0x2e5)]+0x1)%Ne['length'],this[_0x1fcedb(0x2e2)]['set'](_0x4e9fde,_0x1af8e7),_0x1af8e7;}}function Fe(_0x352967){const _0x5e1c06=_0x4a7abe;let _0x3d639e='';for(const _0x5df97b of _0x352967){const {startOffset:_0x54d00c,endOffset:_0x1e0d32,isActive:_0x3e4862,rangeType:_0x1b2fb3,segmentId:_0x4b16b3,segmentPage:_0x162df3}=_0x5df97b;_0x3d639e[_0x5e1c06(0x3e3)]&&(_0x3d639e+=','),_0x3d639e+=_0x54d00c+':'+_0x1e0d32+':'+(_0x3e4862?'1':'0')+':'+_0x1b2fb3+':'+_0x4b16b3+':'+_0x162df3;}return _0x3d639e;}function ht(_0x4b7278){const _0x78000f=_0x4a7abe,_0x3cba74=_0x4b7278['split'](','),_0x115849=[];for(const _0x1173e1 of _0x3cba74){const [_0x1e4c9a,_0x9cec3c,_0x442e0e,_0x3151ec,_0x1361d5,_0x58176d]=_0x1173e1[_0x78000f(0x255)](':');_0x115849[_0x78000f(0x272)]({'startOffset':Number(_0x1e4c9a),'endOffset':Number(_0x9cec3c),'collapsed':_0x1e4c9a===_0x9cec3c,'isActive':_0x442e0e==='1','rangeType':_0x3151ec===a[_0x78000f(0x27b)][_0x78000f(0x262)]?a[_0x78000f(0x27b)][_0x78000f(0x262)]:a[_0x78000f(0x27b)][_0x78000f(0x2c7)],'segmentId':typeof _0x1361d5==_0x78000f(0x32b)?String(_0x1361d5):'','segmentPage':Number(_0x58176d!=null?_0x58176d:-0x1)});}return _0x115849[_0x78000f(0x22b)](_0x1430c1=>_0x1430c1['isActive'])||(_0x115849[0x0][_0x78000f(0x38b)]=!0x0),_0x115849;}class be extends a['RxDisposable']{constructor(){const _0x40b382=_0x4a7abe;super(...arguments),_(this,_0x40b382(0x448),new I[(_0x40b382(0x242))](null)),_(this,_0x40b382(0x1e8),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x468d67){const _0x26c934=_0x4a7abe,{unitID:_0x2e685f,memberID:_0x467531,textRanges:_0x25b953}=_0x468d67,_0x6f7bcc=Fe(_0x25b953);if(_0x6f7bcc==='')return;const _0x48e480={'unitID':_0x2e685f,'memberID':_0x467531,'selection':_0x6f7bcc};this[_0x26c934(0x448)][_0x26c934(0x435)](_0x48e480);}}var ut=Object[_0x4a7abe(0x319)],It=(_0x421997,_0x3077d3,_0x5435d1,_0xe520c2)=>{const _0x32d1dc=_0x4a7abe;for(var _0x39e3f2=_0xe520c2>0x1?void 0x0:_0xe520c2?ut(_0x3077d3,_0x5435d1):_0x3077d3,_0x23f9f1=_0x421997[_0x32d1dc(0x3e3)]-0x1,_0x268806;_0x23f9f1>=0x0;_0x23f9f1--)(_0x268806=_0x421997[_0x23f9f1])&&(_0x39e3f2=_0x268806(_0x39e3f2)||_0x39e3f2);return _0x39e3f2;},U=(_0x3481cd,_0x10989d)=>(_0x18d3d0,_0x53a600)=>_0x10989d(_0x18d3d0,_0x53a600,_0x3481cd);const St=0x12c,dt=0x64;let ve=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x1db430,_0x39ce4c,_0x44afcd,_0x2153de,_0x307441,_0x140178,_0x5418f0,_0x4eb565,_0x459054){const _0x19f28c=_0x4a7abe;super(),_(this,'_online',!0x1),_(this,_0x19f28c(0x3a9),!0x1),_(this,_0x19f28c(0x20b),new I[(_0x19f28c(0x242))](new Map())),_(this,_0x19f28c(0x2ac),this[_0x19f28c(0x20b)][_0x19f28c(0x389)]()),_(this,_0x19f28c(0x277),new I[(_0x19f28c(0x242))]([])),_(this,_0x19f28c(0x348),this['_roomMembers$'][_0x19f28c(0x31d)](I['debounceTime'](St))),_(this,_0x19f28c(0x2af),a[_0x19f28c(0x40a)](_0x42de6f=>{const _0x1d1c33=_0x19f28c,_0x38272c={'eventID':g[_0x1d1c33(0x3a1)][_0x1d1c33(0x222)],'data':{'unitID':this[_0x1d1c33(0x1f5)],'memberID':this[_0x1d1c33(0x2c8)][_0x1d1c33(0x3f9)](),'selection':Fe(_0x42de6f)}};this[_0x1d1c33(0x2c8)][_0x1d1c33(0x1f6)](_0x38272c,this['unitID']);},dt)),(this[_0x19f28c(0x1f5)]=_0x1db430,this[_0x19f28c(0x2c8)]=_0x39ce4c,this[_0x19f28c(0x449)]=_0x44afcd,this['_colorAssignService']=_0x2153de,this[_0x19f28c(0x295)]=_0x307441,this[_0x19f28c(0x2a1)]=_0x140178,this[_0x19f28c(0x3d4)]=_0x5418f0,this[_0x19f28c(0x393)]=_0x4eb565,this[_0x19f28c(0x263)]=_0x459054);}get[_0x4a7abe(0x346)](){const _0xe93db8=_0x4a7abe;return this['_cursorInfo$'][_0xe93db8(0x305)]();}get[_0x4a7abe(0x45b)](){const _0x8600b5=_0x4a7abe;return this[_0x8600b5(0x277)][_0x8600b5(0x305)]();}['dispose'](){const _0x640844=_0x4a7abe;super['dispose'](),this['_cursorInfo$'][_0x640844(0x435)](new Map()),this[_0x640844(0x20b)][_0x640844(0x3e6)](),this[_0x640844(0x277)]['next']([]),this[_0x640844(0x277)][_0x640844(0x3e6)]();}[_0x4a7abe(0x2a0)](){const _0x7d422a=_0x4a7abe;this[_0x7d422a(0x3a9)]||(this[_0x7d422a(0x3a9)]=!0x0,this[_0x7d422a(0x2c8)][_0x7d422a(0x353)]['pipe'](I[_0x7d422a(0x239)](this[_0x7d422a(0x288)]))[_0x7d422a(0x1f1)](_0x17dd53=>{const _0x4651ad=_0x7d422a;_0x17dd53===u[_0x4651ad(0x493)][_0x4651ad(0x413)]?this[_0x4651ad(0x221)]():this[_0x4651ad(0x3d3)]();}),this[_0x7d422a(0x2c8)][_0x7d422a(0x1cb)][_0x7d422a(0x31d)](I['takeUntil'](this[_0x7d422a(0x288)]))[_0x7d422a(0x1f1)](_0x515628=>{const _0x1a220d=_0x7d422a,_0x40321e=_0x515628[_0x1a220d(0x451)];_0x40321e===g[_0x1a220d(0x3a1)]['UPDATE_CURSOR']&&this[_0x1a220d(0x2a5)](_0x515628),_0x40321e===g[_0x1a220d(0x3a1)][_0x1a220d(0x1cd)]&&this[_0x1a220d(0x416)](_0x515628);}),this[_0x7d422a(0x360)](this[_0x7d422a(0x263)][_0x7d422a(0x453)](_0x4e2a38=>{const _0x43a275=_0x7d422a,_0x1103e8=_0x4e2a38[_0x43a275(0x43f)];_0x1103e8!=null&&this[_0x43a275(0x3d2)]&&_0x4e2a38['id']===V[_0x43a275(0x362)]['id']&&_0x1103e8['unitId']===this[_0x43a275(0x1f5)]&&_0x1103e8['isEditing']===!0x1&&_0x1103e8[_0x43a275(0x44c)][_0x43a275(0x3e3)]>0x0&&this['_updateLocalCursor'](_0x1103e8[_0x43a275(0x44c)]);})),this[_0x7d422a(0x2a1)][_0x7d422a(0x1e8)]['pipe'](I['takeUntil'](this[_0x7d422a(0x288)]))['subscribe'](_0xb00e46=>{const _0x5548a4=_0x7d422a;if((_0xb00e46==null?void 0x0:_0xb00e46[_0x5548a4(0x1f5)])!==this[_0x5548a4(0x1f5)])return;const _0x2b1ab3={'eventID':g[_0x5548a4(0x3a1)]['UPDATE_CURSOR'],'data':_0xb00e46};this[_0x5548a4(0x2a5)](_0x2b1ab3);}),this['disposeWithMe'](this[_0x7d422a(0x263)][_0x7d422a(0x453)](_0x507973=>{const _0x3f91e3=_0x7d422a;if(_0x507973[_0x3f91e3(0x43f)]==null)return;const _0x1fd4bc=_0x507973[_0x3f91e3(0x43f)];if(_0x507973['id']!==V[_0x3f91e3(0x30c)]['id']||_0x1fd4bc[_0x3f91e3(0x1c7)]!==this['unitID'])return;const _0x3d8f07={'id':_0x3f91e3(0x354),'params':_0x1fd4bc},_0x519d2a=this[_0x3f91e3(0x346)];for(const [_0x1c9331,_0x1bbe78]of _0x519d2a){const _0x1f6dcb={'id':_0x3f91e3(0x354),'params':{'unitId':this[_0x3f91e3(0x1f5)],'actions':null,'textRanges':_0x1bbe78['ranges']}},_0x433074=this['_transformService'][_0x3f91e3(0x2dc)](_0x3d8f07,_0x1f6dcb,!0x1);if(g[_0x3f91e3(0x408)](_0x433074))throw _0x433074[_0x3f91e3(0x291)];_0x519d2a[_0x3f91e3(0x205)](_0x1c9331,{..._0x1bbe78,'ranges':_0x433074['m2Prime'][_0x3f91e3(0x43f)]['textRanges']});}queueMicrotask(()=>{const _0x12a27c=_0x3f91e3;this[_0x12a27c(0x20b)][_0x12a27c(0x435)](_0x519d2a);});})));}[_0x4a7abe(0x2a5)](_0x961017){const _0x51fe4e=_0x4a7abe;var _0x128e87,_0x7a2dde;const {memberID:_0x44f0f6,selection:_0x282b1b}=_0x961017[_0x51fe4e(0x3c8)],_0x418f36=ht(_0x282b1b),_0x34504d=(_0x7a2dde=(_0x128e87=this['_memberService']['getMember'](this[_0x51fe4e(0x1f5)],_0x44f0f6))==null?void 0x0:_0x128e87['name'])!=null?_0x7a2dde:_0x51fe4e(0x20a),_0xee5c4b={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x44f0f6),'name':_0x34504d,'ranges':_0x418f36},_0x2a0511=this[_0x51fe4e(0x346)];_0x2a0511['set'](_0x44f0f6,_0xee5c4b),this[_0x51fe4e(0x20b)][_0x51fe4e(0x435)](_0x2a0511);}['_onCursorDelete'](_0x1e910b){const _0x2893f2=_0x4a7abe,{memberID:_0x4b7c84}=_0x1e910b[_0x2893f2(0x3c8)],_0x3da558=this[_0x2893f2(0x346)];_0x3da558['delete'](_0x4b7c84),this[_0x2893f2(0x20b)][_0x2893f2(0x435)](_0x3da558);}[_0x4a7abe(0x221)](){const _0x474f2c=_0x4a7abe;var _0xb2a90;if(this['_online']=!0x0,((_0xb2a90=this[_0x474f2c(0x393)][_0x474f2c(0x460)]())==null?void 0x0:_0xb2a90[_0x474f2c(0x201)]())!==this[_0x474f2c(0x1f5)])return;const _0xc138ba=this[_0x474f2c(0x449)][_0x474f2c(0x1c8)](V[_0x474f2c(0x325)])['getDocRanges']();Array[_0x474f2c(0x3b5)](_0xc138ba)&&_0xc138ba[_0x474f2c(0x3e3)]>0x0&&this[_0x474f2c(0x2af)](_0xc138ba);}[_0x4a7abe(0x3d3)](){const _0x380bca=_0x4a7abe;this[_0x380bca(0x3d2)]=!0x1;}};ve=It([U(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),U(0x3,a['Inject'](Re)),U(0x4,a['Inject'](u[_0x4a7abe(0x230)])),U(0x5,a[_0x4a7abe(0x32c)](be)),U(0x6,g[_0x4a7abe(0x2f2)]),U(0x7,a[_0x4a7abe(0x1e6)]),U(0x8,a['ICommandService'])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x2d6075,_0x2c471d,_0x1e1c6c,_0x2cb4ef)=>{for(var _0x42a7b8=_0x2cb4ef>0x1?void 0x0:_0x2cb4ef?ft(_0x2c471d,_0x1e1c6c):_0x2c471d,_0x3cab63=_0x2d6075['length']-0x1,_0x3c7e50;_0x3cab63>=0x0;_0x3cab63--)(_0x3c7e50=_0x2d6075[_0x3cab63])&&(_0x42a7b8=_0x3c7e50(_0x42a7b8)||_0x42a7b8);return _0x42a7b8;},w=(_0x98c20b,_0x473e62)=>(_0x4649dc,_0xd66aed)=>_0x473e62(_0x4649dc,_0xd66aed,_0x98c20b);const vt=0x12c,gt=0x64,Et=()=>{let _0x164feb=[],_0x4bf412=!0x1;return _0x5bc21b=>{_0x164feb['push'](_0x5bc21b),_0x4bf412||(_0x4bf412=!0x0,setTimeout(()=>{const _0x3536d6=_0xdbe3;_0x164feb[_0x3536d6(0x2aa)](_0x271670=>_0x271670()),_0x164feb=[],_0x4bf412=!0x1;}));};};let ge=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x38a5cd,_0x193b80,_0x3ba474,_0x12526f,_0x498821,_0x39adc3,_0x3df02d,_0x4eee34){const _0x18c53b=_0x4a7abe;super(),_(this,_0x18c53b(0x3d2),!0x1),_(this,_0x18c53b(0x3a9),!0x1),_(this,_0x18c53b(0x20b),new I[(_0x18c53b(0x242))](new Map())),_(this,_0x18c53b(0x2ac),this[_0x18c53b(0x20b)][_0x18c53b(0x389)]()),_(this,'_roomMembers$',new I[(_0x18c53b(0x242))]([])),_(this,_0x18c53b(0x348),this['_roomMembers$'][_0x18c53b(0x31d)](I[_0x18c53b(0x304)](vt))),_(this,_0x18c53b(0x2af),a[_0x18c53b(0x40a)]((_0x43513f,_0x4fba47)=>{const _0x365918=_0x18c53b,_0xa42c8d={'eventID':g[_0x365918(0x3a1)][_0x365918(0x222)],'data':{'unitID':this[_0x365918(0x1f5)],'memberID':this[_0x365918(0x2c8)][_0x365918(0x3f9)](),'selection':B[_0x365918(0x361)](_0x43513f,_0x4fba47[_0x365918(0x1f8)])}};this[_0x365918(0x2c8)][_0x365918(0x1f6)](_0xa42c8d,this[_0x365918(0x1f5)]);},gt)),(this[_0x18c53b(0x1f5)]=_0x38a5cd,this['_session']=_0x193b80,this['_injector']=_0x3ba474,this['_colorAssignService']=_0x12526f,this[_0x18c53b(0x295)]=_0x498821,this[_0x18c53b(0x393)]=_0x39adc3,this['_commandService']=_0x3df02d,this[_0x18c53b(0x349)]=_0x4eee34);}get['cursorInfo'](){const _0x22b3cf=_0x4a7abe;return this['_cursorInfo$'][_0x22b3cf(0x305)]();}get[_0x4a7abe(0x45b)](){const _0x52a1eb=_0x4a7abe;return this[_0x52a1eb(0x277)][_0x52a1eb(0x305)]();}[_0x4a7abe(0x234)](){const _0x2b2e64=_0x4a7abe;super['dispose'](),this[_0x2b2e64(0x20b)][_0x2b2e64(0x435)](new Map()),this[_0x2b2e64(0x20b)]['complete'](),this[_0x2b2e64(0x277)][_0x2b2e64(0x435)]([]),this[_0x2b2e64(0x277)][_0x2b2e64(0x3e6)]();}[_0x4a7abe(0x2a0)](){const _0x42415c=_0x4a7abe;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x42415c(0x31d)](I[_0x42415c(0x239)](this[_0x42415c(0x288)]))[_0x42415c(0x1f1)](_0x354050=>{const _0x3d681a=_0x42415c;_0x354050===u[_0x3d681a(0x493)][_0x3d681a(0x413)]?this[_0x3d681a(0x221)]():this['_toggleOffline']();}),this['_session'][_0x42415c(0x1cb)]['pipe'](I[_0x42415c(0x239)](this[_0x42415c(0x288)]))[_0x42415c(0x1f1)](_0x5585de=>{const _0x4ff517=_0x42415c,_0x1643c5=_0x5585de[_0x4ff517(0x451)];_0x1643c5===g[_0x4ff517(0x3a1)][_0x4ff517(0x222)]&&this[_0x4ff517(0x2a5)](_0x5585de),_0x1643c5===g[_0x4ff517(0x3a1)][_0x4ff517(0x1cd)]&&this[_0x4ff517(0x416)](_0x5585de);}),this[_0x42415c(0x3e5)](),this[_0x42415c(0x360)](this[_0x42415c(0x263)][_0x42415c(0x453)](_0x595f7c=>{const _0x258dfd=_0x42415c;if(this[_0x258dfd(0x3d2)]&&_0x595f7c['id']===v[_0x258dfd(0x327)]['id']&&_0x595f7c['params'][_0x258dfd(0x1c7)]===this[_0x258dfd(0x1f5)]){const _0x4e0537=_0x595f7c[_0x258dfd(0x43f)];this['_updateLocalCursor'](_0x4e0537[_0x258dfd(0x1f7)],_0x4e0537[_0x258dfd(0x3d8)][0x0]);}})));}[_0x4a7abe(0x2a5)](_0x15fde9){const _0xf3fd0e=_0x4a7abe;var _0x5b3751,_0x9008c2;const {memberID:_0x4913a8,selection:_0x802b24}=_0x15fde9['data'],{sheetName:_0x108710,range:_0x4492ea}=B[_0xf3fd0e(0x269)](_0x802b24),_0x47dce6={'name':(_0x9008c2=(_0x5b3751=this[_0xf3fd0e(0x295)][_0xf3fd0e(0x339)](this['unitID'],_0x4913a8))==null?void 0x0:_0x5b3751['name'])!=null?_0x9008c2:'Unknown\x20user','range':this[_0xf3fd0e(0x481)](_0x108710,_0x4492ea),'sheetID':_0x108710,'color':this[_0xf3fd0e(0x376)][_0xf3fd0e(0x1de)](_0x4913a8),'selection':_0x802b24},_0x58e48d=this[_0xf3fd0e(0x346)];_0x58e48d[_0xf3fd0e(0x205)](_0x4913a8,_0x47dce6),this[_0xf3fd0e(0x20b)][_0xf3fd0e(0x435)](_0x58e48d);}[_0x4a7abe(0x416)](_0x172fbf){const _0x142218=_0x4a7abe,{memberID:_0x1afc3a}=_0x172fbf[_0x142218(0x3c8)],_0x29efd7=this[_0x142218(0x346)];_0x29efd7['delete'](_0x1afc3a),this[_0x142218(0x20b)][_0x142218(0x435)](_0x29efd7);}[_0x4a7abe(0x481)](_0x14b492,_0x359a9b){const _0x492fac=_0x4a7abe;var _0x7b169d,_0x1187c0;const _0x2e6c68=(_0x1187c0=(_0x7b169d=this[_0x492fac(0x393)][_0x492fac(0x26d)](this[_0x492fac(0x1f5)]))==null?void 0x0:_0x7b169d[_0x492fac(0x2bb)](_0x14b492))==null?void 0x0:_0x1187c0['getMergeData']();return(_0x2e6c68==null?void 0x0:_0x2e6c68[_0x492fac(0x3ec)](_0x196134=>a[_0x492fac(0x278)][_0x492fac(0x375)](_0x196134,_0x359a9b)))||_0x359a9b;}['_onRefRangeChange'](){const _0x1a6105=_0x4a7abe,_0x718dd=new a['DisposableCollection'](),_0x351b03=Et(),_0x164829=()=>{const _0x4f8018=_0xdbe3;_0x718dd[_0x4f8018(0x234)]();const _0x45af14=(_0x2b3a8f,_0x36d3bf,_0x3fa491,_0x20774a)=>{const _0x5793de=_0x4f8018;let _0x93bd0b=[];switch(_0x2b3a8f['id']){case v['EffectRefRangId'][_0x5793de(0x37c)]:{_0x93bd0b=v[_0x5793de(0x388)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)]['DeleteRangeMoveUpCommandId']:{_0x93bd0b=v['handleDeleteRangeMoveUp'](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId'][_0x5793de(0x1e1)]:{_0x93bd0b=v[_0x5793de(0x38e)](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x93bd0b=v[_0x5793de(0x3ea)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x401)]:{_0x93bd0b=v[_0x5793de(0x317)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x31c)]:{_0x93bd0b=v['handleInsertRow'](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)]['MoveRangeCommandId']:{_0x93bd0b=v[_0x5793de(0x20c)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x3ac)]:{_0x93bd0b=v['handleIRemoveCol'](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId'][_0x5793de(0x44e)]:{_0x93bd0b=v[_0x5793de(0x283)](_0x2b3a8f,_0x20774a);break;}}const _0x27d22b=v[_0x5793de(0x359)](_0x93bd0b,_0x20774a),_0x4d9049=this[_0x5793de(0x346)][_0x5793de(0x1c8)](_0x36d3bf);if(_0x4d9049&&_0x27d22b){const _0x34726b={..._0x4d9049,'range':_0x27d22b};this[_0x5793de(0x346)][_0x5793de(0x205)](_0x36d3bf,_0x34726b),_0x351b03(()=>{const _0x5023f1=_0x5793de,_0x260f1e=this[_0x5023f1(0x349)][_0x5023f1(0x2a2)](_0x27d22b,_0x3644a7=>(_0x260f1e[_0x5023f1(0x234)](),_0x45af14(_0x3644a7,_0x36d3bf,_0x3fa491,_0x27d22b)));_0x718dd[_0x5023f1(0x3ab)](_0x260f1e);});}return{'redos':[],'undos':[]};};this[_0x4f8018(0x346)]['forEach']((_0x8ae339,_0x1d0b98)=>{const _0x355fd4=_0x4f8018,{range:_0x388595,sheetID:_0x4216ae}=_0x8ae339,_0x103b7c=this[_0x355fd4(0x349)][_0x355fd4(0x2a2)](_0x388595,_0x514eaf=>(_0x103b7c[_0x355fd4(0x234)](),_0x45af14(_0x514eaf,_0x1d0b98,_0x4216ae,_0x388595)));_0x718dd[_0x355fd4(0x3ab)](_0x103b7c);});};this[_0x1a6105(0x360)](a[_0x1a6105(0x1e5)](this[_0x1a6105(0x20b)]['subscribe'](()=>{_0x164829();})));}['_toggleOnline'](){const _0x520f1c=_0x4a7abe;var _0x50f799,_0x4f0c97;if(this['_online']=!0x0,((_0x50f799=this[_0x520f1c(0x393)]['getFocusedUnit']())==null?void 0x0:_0x50f799[_0x520f1c(0x201)]())!==this[_0x520f1c(0x1f5)])return;const _0xe59169=(_0x4f0c97=this[_0x520f1c(0x449)][_0x520f1c(0x1c8)](v['SheetsSelectionsService'])[_0x520f1c(0x21e)]())==null?void 0x0:_0x4f0c97[0x0],_0xdc95fa=this[_0x520f1c(0x393)]['getCurrentUnitForType'](a[_0x520f1c(0x483)][_0x520f1c(0x324)])[_0x520f1c(0x3bd)]();_0xe59169&&_0xdc95fa&&this[_0x520f1c(0x2af)](_0xdc95fa[_0x520f1c(0x338)](),_0xe59169);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),w(0x3,a['Inject'](Re)),w(0x4,a['Inject'](u[_0x4a7abe(0x230)])),w(0x5,a[_0x4a7abe(0x1e6)]),w(0x6,a[_0x4a7abe(0x434)]),w(0x7,a[_0x4a7abe(0x32c)](v[_0x4a7abe(0x478)]))],ge);var Ct=Object[_0x4a7abe(0x319)],Tt=(_0x29e448,_0x19bae5,_0x3b9d23,_0xab429c)=>{const _0x32e321=_0x4a7abe;for(var _0x3ee39f=_0xab429c>0x1?void 0x0:_0xab429c?Ct(_0x19bae5,_0x3b9d23):_0x19bae5,_0x37e57d=_0x29e448[_0x32e321(0x3e3)]-0x1,_0x5c605a;_0x37e57d>=0x0;_0x37e57d--)(_0x5c605a=_0x29e448[_0x37e57d])&&(_0x3ee39f=_0x5c605a(_0x3ee39f)||_0x3ee39f);return _0x3ee39f;},ce=(_0x357b6d,_0x542f10)=>(_0x328e2f,_0x41bdbc)=>_0x542f10(_0x328e2f,_0x41bdbc,_0x357b6d);let F=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x48a779,_0x1ddba2,_0x453473){const _0x1864dc=_0x4a7abe;super(),_(this,'_entities',new Map()),_(this,_0x1864dc(0x2df),new I[(_0x1864dc(0x315))]()),(this['_univerInstanceService']=_0x48a779,this[_0x1864dc(0x449)]=_0x1ddba2,this[_0x1864dc(0x28b)]=_0x453473,this[_0x1864dc(0x3a9)]());}[_0x4a7abe(0x234)](){const _0x35153e=_0x4a7abe;super[_0x35153e(0x234)](),this[_0x35153e(0x2df)][_0x35153e(0x3e6)](),this[_0x35153e(0x226)][_0x35153e(0x2aa)](_0x5e1e67=>_0x5e1e67['dispose']());}[_0x4a7abe(0x3a2)](_0x4df0df){const _0x51399e=_0x4a7abe;return this[_0x51399e(0x226)][_0x51399e(0x439)](_0x4df0df)?this['_entities'][_0x51399e(0x1c8)](_0x4df0df)[_0x51399e(0x2ac)]:this['_entityInit$'][_0x51399e(0x31d)](I['filter'](_0x507ef2=>_0x507ef2[_0x51399e(0x1f5)]===_0x4df0df),I[_0x51399e(0x1ef)](_0x38e94c=>_0x38e94c['cursorInfo$']));}[_0x4a7abe(0x3a9)](){const _0x2d8eb0=_0x4a7abe;this[_0x2d8eb0(0x393)][_0x2d8eb0(0x228)](a[_0x2d8eb0(0x483)]['UNIVER_SHEET'])[_0x2d8eb0(0x31d)](I[_0x2d8eb0(0x239)](this['dispose$']))['subscribe'](async _0x372b24=>{const _0x34558c=_0x2d8eb0,_0x36cfe1=_0x372b24[_0x34558c(0x201)](),_0x5d1c23=await this[_0x34558c(0x485)](_0x36cfe1);this[_0x34558c(0x2df)]['next'](_0x5d1c23),this[_0x34558c(0x226)]['set'](_0x36cfe1,_0x5d1c23);}),this['_univerInstanceService'][_0x2d8eb0(0x228)](a[_0x2d8eb0(0x483)][_0x2d8eb0(0x3a3)])[_0x2d8eb0(0x31d)](I['takeUntil'](this[_0x2d8eb0(0x288)]))[_0x2d8eb0(0x31d)](I[_0x2d8eb0(0x1f9)](_0x12ab22=>!_0x12ab22['getUnitId']()[_0x2d8eb0(0x270)]('__')))[_0x2d8eb0(0x1f1)](async _0x18e047=>{const _0x3b3817=_0x2d8eb0,_0x2a0d58=_0x18e047[_0x3b3817(0x201)](),_0x310105=await this[_0x3b3817(0x2a6)](_0x2a0d58);this[_0x3b3817(0x2df)]['next'](_0x310105),this[_0x3b3817(0x226)][_0x3b3817(0x205)](_0x2a0d58,_0x310105);}),I[_0x2d8eb0(0x2cd)](this[_0x2d8eb0(0x393)][_0x2d8eb0(0x241)](a[_0x2d8eb0(0x483)][_0x2d8eb0(0x3a3)]),this[_0x2d8eb0(0x393)][_0x2d8eb0(0x241)](a[_0x2d8eb0(0x483)]['UNIVER_SHEET']))['pipe'](I[_0x2d8eb0(0x239)](this[_0x2d8eb0(0x288)]))[_0x2d8eb0(0x1f1)](_0x4dc6a4=>{const _0x489c28=_0x2d8eb0,_0x1a52a2=_0x4dc6a4[_0x489c28(0x201)](),_0x5fc84=this[_0x489c28(0x226)]['get'](_0x1a52a2);_0x5fc84&&(_0x5fc84['dispose'](),this['_entities'][_0x489c28(0x1dd)](_0x1a52a2));});}async[_0x4a7abe(0x485)](_0x1565af){const _0x43580b=_0x4a7abe,_0x1e54eb=await this[_0x43580b(0x28b)][_0x43580b(0x311)](_0x1565af),_0x53f1d9=this[_0x43580b(0x449)][_0x43580b(0x20d)](ge,_0x1565af,_0x1e54eb);return _0x53f1d9['init'](),_0x53f1d9;}async[_0x4a7abe(0x2a6)](_0x3d6d24){const _0x1d629f=_0x4a7abe,_0xbb0d15=await this[_0x1d629f(0x28b)]['requireSession'](_0x3d6d24),_0x59b61d=this[_0x1d629f(0x449)]['createInstance'](ve,_0x3d6d24,_0xbb0d15);return _0x59b61d['init'](),_0x59b61d;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a['Inject'](a[_0x4a7abe(0x22c)])),ce(0x2,a[_0x4a7abe(0x32c)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x2525f,_0x3ad9f0){const _0x143559=_0x4a7abe;let {radius:_0x427836,width:_0x4f7a95,height:_0x5249e0}=_0x3ad9f0;_0x427836=_0x427836!=null?_0x427836:0x0,_0x4f7a95=_0x4f7a95!=null?_0x4f7a95:0x1e,_0x5249e0=_0x5249e0!=null?_0x5249e0:0x1e;let _0xcf68f7=0x0,_0x26dc24=0x0,_0x463b82=0x0;_0xcf68f7=_0x26dc24=_0x463b82=Math[_0x143559(0x35d)](_0x427836,_0x4f7a95/0x2,_0x5249e0/0x2),_0x2525f[_0x143559(0x343)](),_0x2525f['moveTo'](_0xcf68f7,0x0),_0x2525f['lineTo'](_0x4f7a95-_0x26dc24,0x0),_0x2525f[_0x143559(0x21b)](_0x4f7a95-_0x26dc24,_0x26dc24,_0x26dc24,Math['PI']*0x3/0x2,0x0,!0x1),_0x2525f[_0x143559(0x34a)](_0x4f7a95,_0x5249e0-_0x463b82),_0x2525f[_0x143559(0x21b)](_0x4f7a95-_0x463b82,_0x5249e0-_0x463b82,_0x463b82,0x0,Math['PI']/0x2,!0x1),_0x2525f[_0x143559(0x34a)](0x0,_0x5249e0),_0x2525f[_0x143559(0x34a)](0x0,_0xcf68f7),_0x2525f[_0x143559(0x21b)](_0xcf68f7,_0xcf68f7,_0xcf68f7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2525f['closePath'](),_0x3ad9f0[_0x143559(0x42c)]&&(_0x2525f[_0x143559(0x2ae)](),_0x2525f[_0x143559(0x26a)]=_0x3ad9f0['fill'],_0x3ad9f0[_0x143559(0x455)]==='evenodd'?_0x2525f[_0x143559(0x42c)](_0x143559(0x421)):_0x2525f[_0x143559(0x42c)](),_0x2525f['restore']());}class re extends C[_0x4a7abe(0x40c)]{constructor(_0x9d450f,_0x41f07e){const _0x2442d8=_0x4a7abe;super(_0x9d450f,_0x41f07e),_(this,'color'),_(this,_0x2442d8(0x285)),(this['color']=_0x41f07e==null?void 0x0:_0x41f07e['color'],this[_0x2442d8(0x285)]=_0x41f07e==null?void 0x0:_0x41f07e[_0x2442d8(0x285)]);}static[_0x4a7abe(0x328)](_0x262fb4,_0x1c36b9){const _0x5bd17f=_0x4a7abe,{text:_0x9f1aed,color:_0x5e5b00}=_0x1c36b9;_0x262fb4[_0x5bd17f(0x2ae)](),_0x262fb4[_0x5bd17f(0x292)]=_0x5bd17f(0x231);const _0x53d261=_0x262fb4['measureText'](_0x9f1aed)[_0x5bd17f(0x2f0)],_0x185507=Math['min'](_0x53d261+0x2*le,Ue);Ot(_0x262fb4,{'height':X,'radius':0x4,'width':_0x185507,'fill':_0x5e5b00}),_0x262fb4[_0x5bd17f(0x26a)]='#FFF';const _0x2463b4=le,_0x2290dd=X-pt,_0x599fb7=Ue-0x2*le;if(_0x53d261>_0x599fb7){let _0x50fb34='',_0xa7f91f=0x0;for(const _0x11ab7c of _0x9f1aed){const _0x54fb0c=_0x262fb4['measureText'](_0x11ab7c)[_0x5bd17f(0x2f0)];if(_0xa7f91f+_0x54fb0c<=_0x599fb7-_0x262fb4[_0x5bd17f(0x2ab)]('...')[_0x5bd17f(0x2f0)])_0x50fb34+=_0x11ab7c,_0xa7f91f+=_0x54fb0c;else{_0x50fb34+=_0x5bd17f(0x45c);break;}}_0x262fb4[_0x5bd17f(0x3e8)](_0x50fb34,_0x2463b4,_0x2290dd);}else _0x262fb4[_0x5bd17f(0x3e8)](_0x9f1aed,_0x2463b4,_0x2290dd);_0x262fb4[_0x5bd17f(0x46f)]();}['_draw'](_0x1c8d36){const _0x2c03b2=_0x4a7abe;re[_0x2c03b2(0x328)](_0x1c8d36,this);}}const _e=_0x4a7abe(0x2a7),Rt=_0x4a7abe(0x3ca),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4a7abe(0x1bf);class Le{constructor(_0x41e70f,_0x3de8ce,_0x349927,_0x14100d){const _0xe101c3=_0x4a7abe;_(this,_0xe101c3(0x414),[]),_(this,_0xe101c3(0x3c9),null),_(this,'_textBubble',null),_(this,_0xe101c3(0x3f3),null),_(this,_0xe101c3(0x2f1),null),_(this,_0xe101c3(0x37d),null),(this['_cursor']=_0x41e70f,this[_0xe101c3(0x25a)]=_0x3de8ce,this[_0xe101c3(0x398)]=_0x349927,this[_0xe101c3(0x200)]=_0x14100d,this[_0xe101c3(0x250)]());}set[_0x4a7abe(0x243)](_0x4f5d51){const _0x319e0c=_0x4a7abe;_0x4f5d51?(this['_anchorDot']&&this[_0x319e0c(0x3f3)][_0x319e0c(0x227)](),this['_textBubble']&&this['_textBubble'][_0x319e0c(0x23e)]()):(this[_0x319e0c(0x3f3)]&&this[_0x319e0c(0x3f3)][_0x319e0c(0x23e)](),this[_0x319e0c(0x3aa)]&&this['_textBubble']['hide']());}['dispose'](){const _0x43cb30=_0x4a7abe;for(const _0x54d11c of this[_0x43cb30(0x414)])_0x54d11c[_0x43cb30(0x234)]();this[_0x43cb30(0x3aa)]&&this[_0x43cb30(0x3aa)]['dispose'](),this['_anchorDot']&&this[_0x43cb30(0x3f3)][_0x43cb30(0x234)](),this[_0x43cb30(0x3c9)]&&this[_0x43cb30(0x3c9)]['dispose'](),this[_0x43cb30(0x37d)]&&this[_0x43cb30(0x37d)]();}[_0x4a7abe(0x250)](){const _0x5da584=_0x4a7abe;var _0x200d6e;const {_docSkeleton:_0x1fa6ae,_document:_0x30ddbc}=this,{color:_0x89e5f5,name:_0x369267,ranges:_0x55e22b}=this['_cursor'],_0x3453f1=_0x30ddbc['getOffsetConfig'](),{docsLeft:_0x357b52,docsTop:_0x4a9815}=_0x3453f1,_0x1c4048=new T[(_0x5da584(0x2a8))](_0x3453f1,_0x1fa6ae);for(const {startOffset:_0x3ad5cf,endOffset:_0x1f294a,rangeType:_0xc7f038,segmentId:_0x30bc22,segmentPage:_0x25ec20,collapsed:_0x1a161a,isActive:_0x5974fd}of _0x55e22b){const _0x144d0e=_0x1fa6ae['findNodePositionByCharIndex'](_0x3ad5cf,!0x0,_0x30bc22,_0x25ec20);let _0x1cbe35=_0x1fa6ae['findNodePositionByCharIndex'](_0x1f294a,!0x0,_0x30bc22,_0x25ec20);if(_0x1cbe35==null&&(_0x1cbe35=_0x1fa6ae[_0x5da584(0x214)](_0x1f294a-0x1,!0x1,_0x30bc22,_0x25ec20)),_0x5974fd){const {contentBoxPointGroup:_0x2e1889}=_0x1c4048['getRangePointData'](_0x1cbe35,_0x1cbe35);if(_0x2e1889['length']===0x0)continue;this[_0x5da584(0x3f6)](_0x89e5f5,_0x2e1889,_0x357b52,_0x4a9815,_0x369267),this['_eventUnsubscribe']=this[_0x5da584(0x276)]();}if(_0x144d0e&&_0x1cbe35){if(_0xc7f038===a[_0x5da584(0x27b)][_0x5da584(0x2c7)]){const _0x8b8313=new T[(_0x5da584(0x2be))](_0x3453f1,_0x1fa6ae),{pointGroup:_0x155dbb}=(_0x200d6e=_0x8b8313[_0x5da584(0x29c)](_0x144d0e,_0x1cbe35))!=null?_0x200d6e:{};if(_0x155dbb==null||_0x155dbb[_0x5da584(0x3e3)]===0x0)continue;this[_0x5da584(0x3b8)](_0x89e5f5,_0x155dbb,_0x357b52,_0x4a9815);}else{if(!_0x1a161a){const {borderBoxPointGroup:_0x741225}=_0x1c4048['getRangePointData'](_0x144d0e,_0x1cbe35);if(_0x741225[_0x5da584(0x3e3)]===0x0)continue;this[_0x5da584(0x490)](_0x89e5f5,_0x741225,_0x357b52,_0x4a9815);}}}}}[_0x4a7abe(0x3f6)](_0x32eba2,_0x5efcc7,_0x109e3d,_0x229c00,_0x234f30){const _0x56802b=_0x4a7abe,_0x59546a=this[_0x56802b(0x2c0)](_0x5efcc7),{left:_0x2e53e0,top:_0x259ea0,height:_0x12db8a}=_0x59546a,_0x1ffa1f=this['_getScale'](),_0x2f4569=Nt/_0x1ffa1f,_0x5c106=new C[(_0x56802b(0x412))](_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00,'height':_0x12db8a,'width':Dt,'fill':_0x32eba2||C[_0x56802b(0x397)](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'strokeWidth':_0x2f4569,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x5c106,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x5c106,T[_0x56802b(0x1f4)]);const _0x13bcc5=new C[(_0x56802b(0x412))](_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00-he/0x2,'height':he,'width':he,'fill':_0x32eba2||C[_0x56802b(0x397)](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'strokeWidth':0x0,'stroke':_0x32eba2||C['getColor'](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'evented':!0x1});this[_0x56802b(0x3f3)]=_0x13bcc5,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x13bcc5,T['TEXT_RANGE_LAYER_INDEX']);const _0x176c38=new re(_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00-X,'text':_0x234f30,'color':_0x32eba2});this[_0x56802b(0x3aa)]=_0x176c38,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x176c38,T[_0x56802b(0x1f4)]),this[_0x56802b(0x243)]=!0x1;}[_0x4a7abe(0x276)](){const _0x2e0836=_0x4a7abe,_0x33e148=this[_0x2e0836(0x3c9)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x11c9a4=_0x2e0836;this[_0x11c9a4(0x243)]=!0x0;}),_0x5c94c7=this['_anchor'][_0x2e0836(0x371)][_0x2e0836(0x2db)](()=>{const _0x4907b5=_0x2e0836;this[_0x4907b5(0x2f1)]&&clearTimeout(this[_0x4907b5(0x2f1)]),this[_0x4907b5(0x2f1)]=setTimeout(()=>{const _0x1f42a5=_0x4907b5;this[_0x1f42a5(0x243)]=!0x1;},0x7d0);});return()=>{const _0x2faba1=_0x2e0836;_0x33e148['unsubscribe'](),_0x5c94c7[_0x2faba1(0x2c4)]();};}[_0x4a7abe(0x490)](_0x3a7c3c,_0x34a9a1,_0x57ba70,_0xb45625){const _0x349bc9=_0x4a7abe,_0x43f454=new a['ColorKit'](_0x3a7c3c)['setAlpha'](0.2)['toRgbString'](),_0x283b2f=new C[(_0x349bc9(0x207))](Rt+a[_0x349bc9(0x32f)](H),{'pointsGroup':_0x34a9a1,'fill':_0x43f454||C[_0x349bc9(0x397)](a[_0x349bc9(0x379)]['black'],0.2),'left':_0x57ba70,'top':_0xb45625,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x349bc9(0x414)]['push'](_0x283b2f),this[_0x349bc9(0x25a)][_0x349bc9(0x443)](_0x283b2f,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4a7abe(0x3b8)](_0x555ba0,_0x11d653,_0x251bad,_0x3088dd){const _0x2944d8=_0x4a7abe,_0xdf8370=new a[(_0x2944d8(0x48f))](_0x555ba0)[_0x2944d8(0x380)](0.2)[_0x2944d8(0x2e6)](),_0x2f3428=new C[(_0x2944d8(0x207))](bt+a[_0x2944d8(0x32f)](H),{'pointsGroup':_0x11d653,'fill':_0xdf8370||C[_0x2944d8(0x397)](a['COLORS']['black'],0.2),'left':_0x251bad,'top':_0x3088dd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2944d8(0x414)][_0x2944d8(0x272)](_0x2f3428),this['_scene']['addObject'](_0x2f3428,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4a7abe(0x2c0)](_0x11a69d){const _0x44b7a9=_0x11a69d[0x0],_0x20d1b7=_0x44b7a9[0x0],_0x5638d8=_0x44b7a9[0x2],{x:_0x769aa4,y:_0x23a3e5}=_0x20d1b7,{x:_0x353a3a,y:_0x2d250d}=_0x5638d8;return{'left':_0x769aa4,'top':_0x23a3e5,'width':_0x353a3a-_0x769aa4,'height':_0x2d250d-_0x23a3e5};}[_0x4a7abe(0x1f2)](){const _0x2a1905=_0x4a7abe,{scaleX:_0x4ab412,scaleY:_0x469cde}=this[_0x2a1905(0x25a)][_0x2a1905(0x45f)]();return Math['max'](_0x4ab412,_0x469cde);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x262cf7,_0x30f1aa,_0x477f9a,_0x57d6e0)=>{const _0x1bdb68=_0x4a7abe;for(var _0x46e1fc=_0x57d6e0>0x1?void 0x0:_0x57d6e0?Lt(_0x30f1aa,_0x477f9a):_0x30f1aa,_0x45ee3f=_0x262cf7[_0x1bdb68(0x3e3)]-0x1,_0x36c107;_0x45ee3f>=0x0;_0x45ee3f--)(_0x36c107=_0x262cf7[_0x45ee3f])&&(_0x46e1fc=_0x36c107(_0x46e1fc)||_0x46e1fc);return _0x46e1fc;},q=(_0x63aec7,_0x28195c)=>(_0x559e5f,_0x29c930)=>_0x28195c(_0x559e5f,_0x29c930,_0x63aec7);let Ee=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x359f13,_0x4dc287,_0x5da428,_0x42252b,_0x4a7c05){const _0x8ca2ba=_0x4a7abe;super(),_(this,_0x8ca2ba(0x34f),[]),_(this,_0x8ca2ba(0x247),[]),(this['_context']=_0x359f13,this[_0x8ca2ba(0x30b)]=_0x4dc287,this[_0x8ca2ba(0x1fc)]=_0x5da428,this[_0x8ca2ba(0x263)]=_0x42252b,this['_themeService']=_0x4a7c05,this['_init']());}[_0x4a7abe(0x3a9)](){const _0x5425c6=_0x4a7abe,_0x2af4a7=this['_context'][_0x5425c6(0x1c7)],_0x3ce163=this['_docSkeletonManagerService'];this[_0x5425c6(0x360)](I[_0x5425c6(0x26e)]([this[_0x5425c6(0x1fc)][_0x5425c6(0x3a2)](_0x2af4a7),this['_themeService'][_0x5425c6(0x418)]])[_0x5425c6(0x31d)]($[_0x5425c6(0x314)](([_0x21a53b,_0xd15346])=>({'skeleton':_0x3ce163['getSkeleton'](),'cursors':[..._0x21a53b[_0x5425c6(0x329)]()][_0x5425c6(0x47d)](_0xd209cc=>({..._0xd209cc,'color':this[_0x5425c6(0x3e7)][_0x5425c6(0x400)](_0xd209cc[_0x5425c6(0x217)])}))})))['subscribe'](_0x58735a=>{const _0x1c040d=_0x5425c6;if(this[_0x1c040d(0x42b)](),_0x58735a){const {skeleton:_0x128a41,cursors:_0x25721c}=_0x58735a;this[_0x1c040d(0x459)](_0x128a41,_0x25721c);}})),this['_initResize'](),this[_0x5425c6(0x2cc)]();}['_updateCollabCursors'](_0x5b874b,_0x2f6e99){const _0x51e9a3=_0x4a7abe,{scene:_0x33e282,mainComponent:_0x1073b8}=this['_context'],_0x4a9392=_0x2f6e99[_0x51e9a3(0x314)](_0x3a4422=>new Le(_0x3a4422,_0x33e282,_0x5b874b,_0x1073b8));this[_0x51e9a3(0x34f)]=_0x4a9392,this[_0x51e9a3(0x247)]=_0x2f6e99;}['_refreshCollabCursors'](){const _0x30dab5=_0x4a7abe;this['_removeCollabCursors']();const {scene:_0x3b1a7a,mainComponent:_0x4fad72}=this[_0x30dab5(0x42e)],_0x3a194e=this[_0x30dab5(0x30b)][_0x30dab5(0x3da)](),_0x27c997=this[_0x30dab5(0x247)]['map'](_0x3750a2=>new Le(_0x3750a2,_0x3b1a7a,_0x3a194e,_0x4fad72));this[_0x30dab5(0x34f)]=_0x27c997;}[_0x4a7abe(0x42b)](){const _0xd3e235=_0x4a7abe;this[_0xd3e235(0x34f)][_0xd3e235(0x2aa)](_0x14183a=>_0x14183a[_0xd3e235(0x234)]()),this[_0xd3e235(0x34f)]=[];}['_initCommandExecutedListener'](){const _0x254c9e=_0x4a7abe,_0x222845=[T[_0x254c9e(0x22d)]['id']];this['disposeWithMe'](this[_0x254c9e(0x263)][_0x254c9e(0x453)](_0x25cc50=>{const _0x44b017=_0x254c9e;_0x222845[_0x44b017(0x3fc)](_0x25cc50['id'])&&_0x25cc50[_0x44b017(0x43f)]['unitId']===this[_0x44b017(0x42e)][_0x44b017(0x1c7)]&&this['_refreshCollabCursors']();}));}[_0x4a7abe(0x3bb)](){const _0x1ffc77=_0x4a7abe;this['disposeWithMe'](a[_0x1ffc77(0x350)](this[_0x1ffc77(0x42e)]['engine'][_0x1ffc77(0x1b9)])[_0x1ffc77(0x31d)]($[_0x1ffc77(0x1f9)](_0x19ff53=>_0x19ff53[_0x1ffc77(0x2b1)]===C[_0x1ffc77(0x3a8)][_0x1ffc77(0x452)]),$[_0x1ffc77(0x387)](0x10))[_0x1ffc77(0x1f1)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x4a7abe(0x32c)](V[_0x4a7abe(0x29a)])),q(0x2,a[_0x4a7abe(0x32c)](F)),q(0x3,a[_0x4a7abe(0x434)]),q(0x4,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x20f)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4a7abe(0x40c)]{constructor(_0x537ea7,_0x4dddb7){const _0x53db83=_0x4a7abe;super(_0x537ea7,_0x4dddb7),_(this,_0x53db83(0x3f0)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x53db83(0x3bf),''),_(this,_0x53db83(0x260),_0x53db83(0x28e)),_(this,_0x53db83(0x1db)),(_0x4dddb7&&this[_0x53db83(0x426)](_0x4dddb7),this[_0x53db83(0x203)][_0x53db83(0x2db)](()=>this[_0x53db83(0x426)]({'hovered':!0x0})),this[_0x53db83(0x371)][_0x53db83(0x2db)](()=>this[_0x53db83(0x426)]({'hovered':!0x1})));}[_0x4a7abe(0x426)](_0x47bda6){const _0x55789c=_0x4a7abe;var _0x1e9091,_0x12594d,_0x518de4,_0x1d23a8,_0x5f2d09,_0x5bafb6;this['_color']=(_0x1e9091=_0x47bda6['color'])!=null?_0x1e9091:this[_0x55789c(0x3f0)],this[_0x55789c(0x21f)]=(_0x12594d=_0x47bda6['hovered'])!=null?_0x12594d:this[_0x55789c(0x21f)],this[_0x55789c(0x23c)]=(_0x518de4=_0x47bda6[_0x55789c(0x1f8)])!=null?_0x518de4:this['_range'],this[_0x55789c(0x3bf)]=(_0x1d23a8=_0x47bda6[_0x55789c(0x1eb)])!=null?_0x1d23a8:this[_0x55789c(0x3bf)],this[_0x55789c(0x260)]=(_0x5f2d09=_0x47bda6['labelPosition'])!=null?_0x5f2d09:this[_0x55789c(0x260)],this[_0x55789c(0x1db)]=(_0x5bafb6=_0x47bda6[_0x55789c(0x2ed)])!=null?_0x5bafb6:this[_0x55789c(0x1db)],this['transformByState']({'width':_0x47bda6['width'],'height':_0x47bda6['height']});}[_0x4a7abe(0x273)](_0x5c6fab){const _0x13a003=_0x4a7abe,{row:_0x4d584a,column:_0x168a2d}=_0x5c6fab;if(_0x4d584a>=this[_0x13a003(0x23c)][_0x13a003(0x369)]&&_0x4d584a<=this[_0x13a003(0x23c)][_0x13a003(0x1ce)]&&_0x168a2d>=this[_0x13a003(0x23c)]['startColumn']&&_0x168a2d<=this[_0x13a003(0x23c)][_0x13a003(0x2fb)]){this[_0x13a003(0x426)]({'hovered':!0x0});return;}this[_0x13a003(0x426)]({'hovered':!0x1});}[_0x4a7abe(0x367)](_0x5cb3eb){return!0x1;}['_draw'](_0x13a15b){const _0x668880=_0x4a7abe;C['Rect'][_0x668880(0x328)](_0x13a15b,{'width':this[_0x668880(0x2f0)],'height':this[_0x668880(0x25d)],'strokeWidth':Pt,'stroke':this[_0x668880(0x3f0)],'evented':!0x1,'fill':this[_0x668880(0x1db)]}),this[_0x668880(0x21f)]&&(_0x13a15b[_0x668880(0x2ae)](),_0x13a15b[_0x668880(0x32a)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x668880(0x3ce)?0x0:-X),re[_0x668880(0x328)](_0x13a15b,{'text':this['_name'],'color':this[_0x668880(0x3f0)]}),_0x13a15b[_0x668880(0x46f)]());}}function _0x3550(){const _0x721d9d=['getMember','currentUsage','_clearOtherTimers','_docSyncEditingCollabCursorService','random','stage','_id','UniverIcon','children','UniverCollaborationClientUIPlugin','beginPath','setItem','REDEMPTION_CODE_INACTIVE','cursorInfo','REDEMPTION_USER_NOT_ELIGIBLE','roomMembers$','_refRangeService','lineTo','LICENSE_MAX_UNITS_EXCEEDED','\x20at\x20','INTERNAL_ERROR','history','_cursorShapes','fromEventSubject','SetWorksheetActivateCommand','WebBrowserSingleActiveUnitService','sessionStatus$','doc.mutation.rich-text-editing','textRanges','transformSelections','M0\x200H16V16H0z','FromArray','runRefRangeMutations','dirtyRanges','use','_initEntityListener','min','ENTITLE_COUPON_USED_UP','_lastPointer','disposeWithMe','serializeRangeWithSheet','SetTextSelectionsOperation','_revisionService','colno','_configService','collaboration.closeRoom','triggerDblclick','jiqing.500','startRow','jsxs','APPLY_NON_SEQUENTIAL_REVISION','REDEMPTION_CODE_NOT_STARTED','_initUserListener','saveImage','replace','Success','onPointerLeave$','_initStatusListener','unhandledrejection','SetFormulaCalculationStartMutation','contains','_colorAssignService','debug','touchDependencies','COLORS','INVITE_CODE_HAS_BEEN_UES','stack','DeleteRangeMoveLeftCommandId','_eventUnsubscribe','WebSocketService','tag','setAlpha','round','_releaseCalculationLimit','_monkeyPatchLogService','Failed','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','univer-flex\x20univer-items-center','throttleTime','handleDeleteRangeMoveLeft','asObservable','APPLY_PERMISSION_DENIED','isActive','_initUnhandledRejectionListener','LocaleService','handleInsertCol','saveOfflineData','WECHAT_HAS_BEEN_BOUND','useObservable','SetFormulaCalculationNotificationMutation','_univerInstanceService','_localStorageService','ENTITLE_COUPON_EXPIRED','_initEvent','getColor','_docSkeleton','_docStateChangeManagerService','[Window\x20Error]:\x20','117smTXfu','INVITE_CODE_REQUIRED','_uiPartsService','SOCKET_FAILED','exhaustSavingTask','2277125XQmDCO','CollaborationEvent','getCollabCursors$','UNIVER_DOC','NOT_FOUND','LOCAL_CACHE_INTERVAL','2552326ZprbPP','HTTPService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_init','_textBubble','add','RemoveColCommandId','TOO_MANY_REQUESTS','_messageService','registerDependencies','useCallback','sessionTicket','START_CALCULATION','_applyCommand','_transformHistoryAndStateStack','isArray','DataLoaderService','[CollaborationDataLoaderController]','_drawRectRange','collabStatus.notCollab','url(#$1','_initResize','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getActiveSheet','updateOfflineData','_name','_httpService','_localCacheService','getFormulaLimitStatusUrl','PENDING','INotificationService','collaboration.single-unit.warning','LOCAL_CACHE_INTERVAL_KEY','setParam','data','_anchor','collab-text-range-','AUTHORIZE_CODE_ILLEGAL','/run/','editingUnit','bottom','RxDisposable','getActiveRange','body','_online','_toggleOffline','_transformService','parseInt','getConfig','INVALID_ARGUMENT','selections','UnitStatus','getSkeleton','USER_NOT_INVITED_CODE','href','ENTITLE_CHAT_LIMIT_EXCEED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','mergeOverrideWithDependencies','syncEditingCollabCursor','wsSessionTicketUrl','length','clsx','_onRefRangeChange','complete','_themeService','fillText','currentColor','handleInsertRangeMoveDown','with','find','Optional','isFormulaString','toStringTag','_color','clearInterval','getCoordByCell','_anchorDot','docStateChange$','collabStatus.syncing','_drawAnchor','blue.400','fromEvent','getMemberID','attrs','OffLineIcon','includes','YUUMI_ALL_TABLES_IS_INVALID','/universer-api/frontend/logs','REDEMPTION_CODE_FULLY_REDEEMED','getColorFromTheme','InsertRangeMoveRightCommandId','m1Prime','addObjects','collabStatus.conflict','_cachedData','clipPath','IMessageService','isTransformMutationFailure','code','debounce','_instanceService','Shape','_updateSubUnitFromURLParams','createElement','LICENSE_EXPORT_SIZE_EXCEEDED','unit','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','Rect','ONLINE','_shapes','0\x200\x2016\x2016','_onCursorDelete','setTimeout','currentTheme$','getItem','mapTo','_maxFormulaLimit','_sheetSkeletonManagerService','ticket','createSocket','_scheduleHeartbeat','actions','evenodd','undoState','activeSheet$','_initDependencies','beforeCommandExecuted','setShapeProps','_docTransformSelectionsService','getRelativeToViewportCoord','2124PFplxb','CommandType','_removeCollabCursors','fill','from','_context','yellow.400','_ensureSubject','CONFLICT','svg','_handleJoinEvent','ICommandService','next','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_pollingInterval','displayName','has','permission.title','SUBMIT_CHANGESET_TIMEOUT','DEFAULT_WS_SESSION_TICKET_URL','MOBILE_VERIFY_CODE_MISMATCH','SNAPSHOT_INVALID_SNAPSHOT','params','BuiltInUIPart','defs','toString','addObject','status$','1em','DesktopCollaborationStatusDisplayController','USER_IS_ANONYMOUS','_collabCursorState$','_injector','_initCommandInterceptor','IDocClipboardService','ranges','_checkCalculationAvailable','RemoveRowCommandId','white','OTHER_CLIENTS_EDITING','eventID','resize','onCommandExecuted','purple.300','fillRule','/universer-api/license/formula/limit/start','clearTimeout','on-line-icon_clip0_910_349','_updateCollabCursors','APPLY_REVISION_CONFILICT','roomMembers','...','_taskIds','SheetCollabCursorShape','getAncestorScale','getFocusedUnit','_imageIoService','IUIPartsService','getVpScrollXYInfoByPosToVp','transformStateCache','onLocalMutation','SheetSkeletonManagerService','replaceDocRanges','redoState','whenReady','now','_handleEvent','YUUMI_NO_CUBOID_FOR_QUESTION','override','getCollabEntity$','restore','SOCKET_FAILED_RETRY','_hasFormulaInDirtyRanges','idSuffix','NO_OTHER_CLIENTS_EDITING','_transformPreviousActiveRange','_getFormulaLimitStatus','EMAIL_HAS_BEEN_BOUND','ALREADY_EXISTS','RefRangeService','Tooltip','_memberID','_docTransformIMECacheService','getParam','flatMap','_setFormulaLimitStatus','none','red.300','_getMergeRange','_selfUnitIDs','UniverInstanceType','FormulaExecuteStageType','_startSheetCollabCursor','totalFormulasToCalculate','saveTaskMap','10080864ntUGfx','_status$','transformMutationsWithChangeset','RevisionService','_lastResponseTimestamp','disableLocalCache','PY_RUNTIME_SCRIPT_ERROR','ColorKit','_drawTextRange','ENTITLE_INVALID_COUPON_CODE','Plugin','SessionStatus','getUnit','univer-mr-2\x20univer-flex\x20univer-text-xl','setStateCache','onTransformChange$','onRendered','CollaborationStatus','_disabled','CHANGESET_REVISION_CONFILICT','invokeId','rgba(255,\x20255,\x20255,\x200.01)','addEventListener','UniverCollaborationClientPlugin','functionsExecutedState','forwardRef','post','result','_transformUndoRedoStack','unitId','get','entityInit$','urlChange$','event$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','USERS_LEAVE','endRow','USER_NOT_FOUND','Error','6764hNwMLO','MOBILE_HAS_BEEN_BOUND','key','replaceState','formula.calculation.unable','CollaborationController','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_notificationService','releaseFormulaLimitUrl','addClipboardHook','_backgroundColor','ILogService','delete','assignAColorForMemberID','stringify','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','InsertColCommandId','formula.calculation.waiting','distinctUntilChanged','CollaborationUIEventId','toDisposable','IUniverInstanceService','LICENSE_IMPORT_SIZE_EXCEEDED','collabCursorState$','join','shift','name','Vector2','getUnhiddenWorksheets','assign','switchMap','searchParams','subscribe','_getScale','YUUMI_UNABLE_LOAD_URL','TEXT_RANGE_LAYER_INDEX','unitID','send','subUnitId','range','filter','DocStateChangeManagerService','_removeClearOtherTimer','_collabCursorController','_renderManagerService','location','CollaborationUIEventService','_document','getUnitId','newValue','onPointerEnter$','mask','set','YUUMI_URL_COL_OUT_OF_RANGE','RegularPolygon','registerBeforeClose','7snBShG','Unknown\x20user','_cursorInfo$','handleMoveRange','createInstance','_showGuardMessage','ThemeService','catch','[Unhandled\x20Rejection]:\x20','742810pnGEYC','UNRECOGNIZED','findNodePositionByCharIndex','xlink:href','getRenderById','color','useDependency','RemoteUniscriptService','lineno','arc','UNDEFINED','SYNCED','getCurrentSelections','_hovered','LOGIN_TOKEN_PROCESSING_FAILED','_toggleOnline','UPDATE_CURSOR','[RemoteUniscriptService]:\x20no\x20focused\x20unit','reconnect','pushState','_entities','hide','getTypeOfUnitAdded$','MessageType','IBeforeCloseService','some','Injector','SetDocZoomRatioOperation','session.collaboration-timeout','executeCommand','MemberService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','shareReplay','_initStatusComponent','dispose','YUUMI_AI_RUN_FAILED','entries','row','_startCalculationLimit','takeUntil','setActiveRange','useRef','_range','_getSaveTimeout','show','colorChannel1','ENTITLE_REPORT_LIMIT_EXCEED','getTypeOfUnitDisposed$','BehaviorSubject','_hover','_collaborationUIEventService','REDEMPTION_CODE_HAS_BEEN_CREATED','LICENSE_DISTRO_REJECTED','_cursors','skeleton','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','IRenderManagerService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','/universer-api/license/formula/limit/status','memberID','_collaborationController','_registerRenderDependencies','_render','loadUnit','Module','focused$','PAYMENT_CHANNEL_NOT_SUPPORT','split','Loading','OFFLINE','_setupSubUnitSync','message','_scene','_currentUsage','AWAITING','height','defineProperty','runId','_labelPosition','jsx','TEXT','_commandService','_config','isFormulaId','translate(.97)','EMAIL_VERIFY_CODE_MISMATCH','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','deserializeRangeWithSheet','fillStyle','off-line-icon_clip0_910_343','session.connection-failed','getUniverSheetInstance','combineLatest','stageInfo','startsWith','_localeService','push','onMouseMove','BrowserCollaborationSocketService','APPLY_DUPLICATED','_handleHover','_roomMembers$','Rectangle','loadOfflineData','DependentOn','DOC_RANGE_TYPE','IConfigService','substring','/universer-api/license/formula/limit/done','imageSourceType','registerRenderModule','CollaborationSocketService','currentSkeleton$','handleIRemoveRow','filename','text','EffectRefRangId','SNAPSHOT_HAS_BEEN_REMOVED','dispose$','APPLY_REJECT','removeEventListener','_collabSessionService','path','?taskId=','top','collabStatus.offline','ENTITLE_USE_COUPON_NOT_1ST_TRADE','error','font','Workbook','_unitStatus','_memberService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','PERMISSION_DENIED','isTransformMutationsWithChangesetSuccess','size','DocSkeletonManagerService','UNAUTHENTICATED','getRangePointData','_createSocketURL','_handleLeaveEvent','_collaborationSessionService','init','_syncEditingCollabCursorService','registerRefRange','deepClone','all','_onCursorUpdate','_startDocCollabCursor','collab-text-anchor-','NodePositionConvertToCursor','getLocalCacheKey','forEach','measureText','cursorInfo$','m2Prime','save','_updateLocalCursor','DocIMEInputManagerService','type','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','13281232OzTRXD','getCellPositionByOffset','selection','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getCellMatrix','YUUMI_ASYNCIO_CANCELLED','pluginName','_getSessionTicket','getSheetBySheetId','CanceledError','HEADER_MENU','NodePositionConvertToRectRange','then','_getAnchorBounding','url(#on-line-icon_clip0_910_349)','transformIMECache','YUUMI_CONNECTOR_URL_NOT_FOUND','unsubscribe','_checkAndWaitForCalculationPermission','ISnapshotServerService','RECT','_session','on-line-icon','onStarting','_docTransformStateCacheService','_initCommandExecutedListener','merge','subunit','_unitOnClients','ENTITLE_NEED_BILLING_ADDRESS','LOGIN_FAILED','WebURLService','collab-client.tooltip.reconnect','_initWindowErrorListener','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','session.will-retry','_urlService','off-line-icon','socket$','mutations','subscribeEvent','transformMutation','source','Disposable','_entityInit$','reason','CONNECTOR_DATA_TOO_LARGE','_assignedColors','_handleHeartbeatEvent','getUndoRedoMutationParamsCache','_colorIndex','toRgbString','div','[LogService\x20Error]:\x20','collabStatus.synced','_setupBeforeClosingHandler','setInterval','_saveCache','backgroundColor','_beforeCloseService','IURLService','width','_hideTimer','ITransformService','storage','NOT_COLLAB','ENTITLE_DUP_SUBSCRIPTION','transformRemoteChangeset','addHandlerCallback','INVALID_INVITE_CODE','CollaborationSessionService','registerComponent','endColumn','symbol','trim','_registerDependencies','unshift','getStateCache','MUTATION','YUUMI_SUBSCRIPTION_NOT_FOUND','_scheduleClearOtherTimer','debounceTime','getValue','limitInfo','_uploadLog','origin','SUCCESS','_scheduleSaving','_docSkeletonManagerService','RichTextEditingMutation','CollaborationDataLoaderController','1070503KzYION','_send','_clearPolling','requireSession','_updateURLWithCurrentState','IRemoteInstanceService','map','Subject','getCurrentRevOfUnit','handleInsertRangeMoveRight','black','getOwnPropertyDescriptor','REDEMPTION_INVALID_CODE','univerjs-icon\x20univerjs-icon-','InsertRowCommandId','pipe','COMPLETION_FINISHED','ILocalCacheService','DATA_SOURCE_TOO_LARGE','_saveTaskMap','CURRENT_STATUS_CANNOT_OPERATE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','UNIVER_SHEET','DocSelectionManagerService','runOnServer','SetSelectionsOperation','drawWith','values','transform','string','Inject','_logService','_getSheetObject','generateRandomId','OTHER_CLIENT_EDITING','ENTITLE_INSUFFICIENT_QUOTA','getViewport','_dataLoaderService','YUUMI_RATE_OVER_LIMIT','ISocketService','_heartbeatTimer','Tools','getSheetId'];_0x3550=function(){return _0x721d9d;};return _0x3550();}var wt=Object[_0x4a7abe(0x319)],yt=(_0x587126,_0x21f875,_0x3338e4,_0x253f5c)=>{const _0x474f8=_0x4a7abe;for(var _0x478f0b=_0x253f5c>0x1?void 0x0:_0x253f5c?wt(_0x21f875,_0x3338e4):_0x21f875,_0x1442a4=_0x587126[_0x474f8(0x3e3)]-0x1,_0x459a06;_0x1442a4>=0x0;_0x1442a4--)(_0x459a06=_0x587126[_0x1442a4])&&(_0x478f0b=_0x459a06(_0x478f0b)||_0x478f0b);return _0x478f0b;},ue=(_0x532fc7,_0x5de633)=>(_0x1e8793,_0x222798)=>_0x5de633(_0x1e8793,_0x222798,_0x532fc7);const $t=0x1389;let Ce=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x182ab7,_0x29264e,_0xec329,_0x384c85){const _0x5cb118=_0x4a7abe;super(),_(this,_0x5cb118(0x247),new Set()),_(this,_0x5cb118(0x35f),null),(this[_0x5cb118(0x42e)]=_0x182ab7,this['_sheetSkeletonManagerService']=_0x29264e,this[_0x5cb118(0x1fc)]=_0xec329,this[_0x5cb118(0x3e7)]=_0x384c85,this[_0x5cb118(0x3a9)]());}[_0x4a7abe(0x3a9)](){const _0x13631c=_0x4a7abe;this[_0x13631c(0x41c)]['currentSkeleton$']['pipe']($[_0x13631c(0x239)](this['dispose$']),$['switchMap'](_0x2921e5=>{const _0x822019=_0x13631c;if(_0x2921e5){const _0x3e8fb9=_0x2921e5['sheetId'];return I[_0x822019(0x26e)](this['_collabCursorController'][_0x822019(0x3a2)](this['_context'][_0x822019(0x1c7)]),this[_0x822019(0x3e7)][_0x822019(0x418)])['pipe']($[_0x822019(0x314)](([_0x213e66,_0x2dfe56])=>{const _0x589de8=_0x822019,_0x3573b1=new Map();return _0x213e66[_0x589de8(0x2aa)]((_0x490583,_0x13d2f7)=>{const _0x2d30b4=_0x589de8;if(_0x490583['sheetID']===_0x3e8fb9){const _0x4d68ba={..._0x490583};_0x4d68ba[_0x2d30b4(0x217)]=this[_0x2d30b4(0x3e7)][_0x2d30b4(0x400)](_0x490583[_0x2d30b4(0x217)]),_0x3573b1['set'](_0x13d2f7,_0x4d68ba);}}),{'skeleton':_0x2921e5,'cursors':_0x3573b1};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x13631c(0x1f1)](({skeleton:_0x2dbc1,cursors:_0x20619a})=>{const _0xa6e18f=_0x13631c;this[_0xa6e18f(0x42b)](),_0x2dbc1&&this[_0xa6e18f(0x459)](_0x2dbc1,_0x20619a);}),this['_sheetSkeletonManagerService'][_0x13631c(0x282)][_0x13631c(0x1f1)](_0x347a44=>{const _0x583510=_0x13631c;if(_0x347a44==null)return;const {skeleton:_0x4e7ec1}=_0x347a44,{scene:_0x8ba0f8}=this[_0x583510(0x42e)];_0x8ba0f8['onPointerMove$'][_0x583510(0x2db)](a[_0x583510(0x40a)](_0x46f583=>{const _0x49f000=_0x583510;var _0x473446,_0xeeb589;const {offsetX:_0x194d8b,offsetY:_0x55b181}=_0x46f583,{x:_0x140ba8,y:_0x48752e}=_0x8ba0f8[_0x49f000(0x428)](C[_0x49f000(0x1ec)]['FromArray']([_0x194d8b,_0x55b181])),{scaleX:_0x126b0a,scaleY:_0x5b2d7c}=_0x8ba0f8[_0x49f000(0x45f)](),_0x1d2e16=_0x8ba0f8[_0x49f000(0x332)](C['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x5385f6=_0x8ba0f8[_0x49f000(0x463)](C['Vector2'][_0x49f000(0x358)]([_0x140ba8,_0x48752e]),_0x1d2e16),_0x34b3ca=_0x4e7ec1[_0x49f000(0x2b4)](_0x194d8b,_0x55b181,_0x126b0a,_0x5b2d7c,_0x5385f6);((_0x473446=this[_0x49f000(0x35f)])==null?void 0x0:_0x473446['column'])===_0x34b3ca['column']&&((_0xeeb589=this[_0x49f000(0x35f)])==null?void 0x0:_0xeeb589['row'])===_0x34b3ca[_0x49f000(0x237)]||this[_0x49f000(0x247)][_0x49f000(0x2aa)](_0x5d4ca2=>{_0x5d4ca2['onMouseMove'](_0x34b3ca);});},0x64));});}['_updateCollabCursors'](_0x569e35,_0xe09400){const _0xdd576e=_0x4a7abe;var _0x3968f9;const _0x8f9a6c=(_0x3968f9=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3968f9[_0xdd576e(0x248)];if(!_0x8f9a6c)return;const _0x50b5fd=this[_0xdd576e(0x32e)]();if(!_0x50b5fd)return;this[_0xdd576e(0x247)][_0xdd576e(0x2aa)](_0x368606=>{_0x368606['makeDirty']();});const {scene:_0x32edab}=_0x50b5fd,_0x15c206=xt(Array[_0xdd576e(0x42d)](_0xe09400['values']()))[_0xdd576e(0x314)](_0x4a8e36=>{const _0x465e2e=_0xdd576e,{color:_0x5134a0,range:_0x704997,name:_0x5bc3d3,selection:_0xdfec17,sheetID:_0x45de84}=_0x4a8e36,{startColumn:_0x1a4c8b,startRow:_0x42e426,endColumn:_0xc4110d,endRow:_0x41f48f}=_0x704997,_0x17b610=J[_0x465e2e(0x3f2)](_0x42e426,_0x1a4c8b,_0x32edab,_0x8f9a6c),_0x7c6d74=J['getCoordByCell'](_0x41f48f,_0xc4110d,_0x32edab,_0x8f9a6c),{columnHeaderHeightAndMarginTop:_0x2d35bf}=_0x8f9a6c,{startX:_0x18c97c,startY:_0x3ea8ea}=_0x17b610,{endX:_0x2d3370,endY:_0x4a291a}=_0x7c6d74,_0xbc5c5f=_0x2d3370-_0x18c97c,_0x54fc60=_0x4a291a-_0x3ea8ea,_0x2442b1={'labelPosition':_0x3ea8ea-_0x2d35bf>=X?_0x465e2e(0x28e):_0x465e2e(0x3ce),'sheetID':_0x45de84,'range':_0x704997,'color':_0x5134a0,'name':_0x5bc3d3,'selection':_0xdfec17,'left':_0x18c97c,'top':_0x3ea8ea,'width':_0xbc5c5f,'height':_0x54fc60,'evented':!0x1,'zIndex':$t};return new je(_0x5bc3d3,_0x2442b1);});_0x32edab[_0xdd576e(0x403)](_0x15c206,At),this['_cursors']=new Set(_0x15c206);}['_removeCollabCursors'](){const _0x44a3db=_0x4a7abe;var _0x440d9f;(_0x440d9f=this['_cursors'])==null||_0x440d9f[_0x44a3db(0x2aa)](_0x19f345=>_0x19f345[_0x44a3db(0x234)]());}[_0x4a7abe(0x32e)](){const _0x5a095f=_0x4a7abe;return J['getSheetObject'](this['_context'][_0x5a095f(0x410)],this[_0x5a095f(0x42e)]);}};Ce=yt([ue(0x1,a[_0x4a7abe(0x32c)](J[_0x4a7abe(0x466)])),ue(0x2,a[_0x4a7abe(0x32c)](F)),ue(0x3,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x20f)]))],Ce);function xt(_0xa4741b){const _0x17ce17=_0x4a7abe,_0x44095d=new Map();return _0xa4741b['forEach'](_0x64fee4=>{const _0x259e86=_0xdbe3;if(_0x44095d['has'](_0x64fee4[_0x259e86(0x2b5)])){const _0x2e7589=_0x44095d[_0x259e86(0x1c8)](_0x64fee4[_0x259e86(0x2b5)]);_0x2e7589['name']+=',\x20'+_0x64fee4[_0x259e86(0x1eb)];}else _0x44095d[_0x259e86(0x205)](_0x64fee4[_0x259e86(0x2b5)],_0x64fee4);}),Array[_0x17ce17(0x42d)](_0x44095d[_0x17ce17(0x329)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x36bcb1,_0xc9178f,_0x142632,_0x1fa59f)=>{const _0x4cd36f=_0x4a7abe;for(var _0xbf3285=_0x1fa59f>0x1?void 0x0:_0x1fa59f?Bt(_0xc9178f,_0x142632):_0xc9178f,_0x4df951=_0x36bcb1[_0x4cd36f(0x3e3)]-0x1,_0x4f9372;_0x4df951>=0x0;_0x4df951--)(_0x4f9372=_0x36bcb1[_0x4df951])&&(_0xbf3285=_0x4f9372(_0xbf3285)||_0xbf3285);return _0xbf3285;},y=(_0x254f36,_0x338118)=>(_0x19dd2a,_0x3e662c)=>_0x338118(_0x19dd2a,_0x3e662c,_0x254f36);let Z=class extends a[_0x4a7abe(0x2de)]{constructor(_0x4c7432,_0x1c558,_0xde35cc,_0xf668ea,_0x2a5f8b,_0x17b3c6){const _0x19d6ad=_0x4a7abe;super(),this[_0x19d6ad(0x2ee)]=_0x4c7432,this[_0x19d6ad(0x3c1)]=_0x1c558,this['_collaborationUIEventService']=_0xde35cc,this['_messageService']=_0xf668ea,this[_0x19d6ad(0x1d8)]=_0x2a5f8b,this[_0x19d6ad(0x271)]=_0x17b3c6,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4a7abe(0x2ea)](){const _0x3099ed=_0x4a7abe;this[_0x3099ed(0x360)](this['_beforeCloseService'][_0x3099ed(0x208)](()=>{const _0x494a91=_0x3099ed;if(this[_0x494a91(0x3c1)][_0x494a91(0x487)][_0x494a91(0x299)])return this[_0x494a91(0x271)]['t']('collaboration.offline-data-not-saved');}));}[_0x4a7abe(0x396)](){const _0x328378=_0x4a7abe;this[_0x328378(0x360)](this[_0x328378(0x244)][_0x328378(0x1cb)][_0x328378(0x1f1)](_0x4634a1=>{const _0x58301b=_0x328378;_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x330)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x3c5))}),_0x4634a1['id']===u[_0x58301b(0x1e4)]['CLOSE_ROOM']&&this['_messageService'][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this['_localeService']['t'](_0x58301b(0x366))}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x297)]&&this[_0x58301b(0x1d8)][_0x58301b(0x23e)]({'title':this[_0x58301b(0x271)]['t'](_0x58301b(0x43a)),'content':this[_0x58301b(0x271)]['t']('permission.content'),'type':_0x58301b(0x291),'duration':0x0}),_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x431)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)][_0x58301b(0x1d0)],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x366))+'('+_0x4634a1['data']+')'}),_0x4634a1['id']===u[_0x58301b(0x1e4)]['JOIN_ROOM_FAILED']&&this[_0x58301b(0x3ae)]['show']({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x4634a1['data']||'')}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x470)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x2d6))}),_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x39e)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p['MessageType'][_0x58301b(0x1d0)],'content':this['_localeService']['t'](_0x58301b(0x26c))}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x43b)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)][_0x58301b(0x1d0)],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x22e))});}));}};Z=Ft([y(0x0,O[_0x4a7abe(0x22a)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x1ff)])),y(0x3,O['IMessageService']),y(0x4,O[_0x4a7abe(0x3c4)]),y(0x5,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],Z);var jt=Object[_0x4a7abe(0x319)],kt=(_0x13175c,_0x5b945a,_0x9182a3,_0x1bb8ad)=>{for(var _0x2a3813=_0x1bb8ad>0x1?void 0x0:_0x1bb8ad?jt(_0x5b945a,_0x9182a3):_0x5b945a,_0x3775cc=_0x13175c['length']-0x1,_0x19ce22;_0x3775cc>=0x0;_0x3775cc--)(_0x19ce22=_0x13175c[_0x3775cc])&&(_0x2a3813=_0x19ce22(_0x2a3813)||_0x2a3813);return _0x2a3813;},z=(_0x53c7e4,_0x19e17c)=>(_0x413bb4,_0x116aee)=>_0x19e17c(_0x413bb4,_0x116aee,_0x53c7e4);let Q=class extends a[_0x4a7abe(0x2de)]{constructor(_0x331803,_0x476f39,_0x4734b6,_0x1f7c99){const _0x2cfc4b=_0x4a7abe;super(),_(this,'_memberID'),(this[_0x2cfc4b(0x449)]=_0x331803,this[_0x2cfc4b(0x3c0)]=_0x476f39,this[_0x2cfc4b(0x32d)]=_0x4734b6,this[_0x2cfc4b(0x29f)]=_0x1f7c99,this[_0x2cfc4b(0x3a9)]());}['_init'](){const _0x5afa18=_0x4a7abe;this[_0x5afa18(0x2d4)](),this[_0x5afa18(0x38c)](),this[_0x5afa18(0x383)](),this[_0x5afa18(0x36d)]();}[_0x4a7abe(0x36d)](){const _0x4a238a=_0x4a7abe;this['disposeWithMe'](this[_0x4a238a(0x29f)][_0x4a238a(0x2d9)][_0x4a238a(0x1f1)](_0x4fe711=>{const _0x59cb3f=_0x4a238a;this[_0x59cb3f(0x47a)]=_0x4fe711==null?void 0x0:_0x4fe711[_0x59cb3f(0x24d)];}));}[_0x4a7abe(0x2d4)](){const _0x3afa54=_0x4a7abe,_0x29222c=_0x37c0e2=>{const _0x13a13f=_0xdbe3;var _0x3cddc7;this[_0x13a13f(0x307)](_0x13a13f(0x291),_0x13a13f(0x39a)+_0x37c0e2['message']+_0x13a13f(0x34c)+_0x37c0e2[_0x13a13f(0x284)]+':'+_0x37c0e2[_0x13a13f(0x21a)]+':'+_0x37c0e2[_0x13a13f(0x364)]+'\x0a'+(((_0x3cddc7=_0x37c0e2[_0x13a13f(0x291)])==null?void 0x0:_0x3cddc7[_0x13a13f(0x37b)])||''));};window[_0x3afa54(0x1c0)](_0x3afa54(0x291),_0x29222c),this[_0x3afa54(0x360)](()=>{const _0x5275df=_0x3afa54;window[_0x5275df(0x28a)](_0x5275df(0x291),_0x29222c);});}[_0x4a7abe(0x38c)](){const _0x271e38=_0x4a7abe,_0x5e2911=_0x481406=>{const _0x10bfca=_0xdbe3;this[_0x10bfca(0x307)](_0x10bfca(0x291),_0x10bfca(0x211)+_0x481406[_0x10bfca(0x2e0)]);};window[_0x271e38(0x1c0)](_0x271e38(0x373),_0x5e2911),this[_0x271e38(0x360)](()=>{const _0x5b39ab=_0x271e38;window[_0x5b39ab(0x28a)](_0x5b39ab(0x373),_0x5e2911);});}['_monkeyPatchLogService'](){const _0x1be364=_0x4a7abe,_0x344fbf=this[_0x1be364(0x32d)]['error']['bind'](this['_logService']);this[_0x1be364(0x32d)][_0x1be364(0x291)]=(..._0x5b2e47)=>{const _0x50e5e0=_0x1be364,_0x32a271=_0x5b2e47[_0x50e5e0(0x314)](_0x189cca=>_0x189cca instanceof Error?_0x189cca[_0x50e5e0(0x259)]+'\x0a'+_0x189cca['stack']:String(_0x189cca))[_0x50e5e0(0x1e9)]('\x20');this[_0x50e5e0(0x307)](_0x50e5e0(0x291),_0x50e5e0(0x2e8)+_0x32a271),_0x344fbf(..._0x5b2e47);},this[_0x1be364(0x360)](()=>{const _0x1781b5=_0x1be364;this[_0x1781b5(0x32d)][_0x1781b5(0x291)]=_0x344fbf;});}[_0x4a7abe(0x307)](_0x5471df,_0x26ea07){const _0xbe93ce=_0x4a7abe;try{const _0x1749dd={'userId':this['_memberID'],'logLabel':_0x5471df,'content':_0x26ea07};this[_0xbe93ce(0x3c0)][_0xbe93ce(0x1c4)](_0xbe93ce(0x3fe),{'body':_0x1749dd})[_0xbe93ce(0x210)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x4a7abe(0x22c)])),z(0x1,a['Inject'](x[_0x4a7abe(0x3a7)])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u[_0x4a7abe(0x2f9)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x4a7abe(0x319)],Wt=(_0xf137f9,_0x282274,_0x53c2d4,_0x423e77)=>{const _0x132415=_0x4a7abe;for(var _0x3428aa=_0x423e77>0x1?void 0x0:_0x423e77?Ht(_0x282274,_0x53c2d4):_0x282274,_0x202289=_0xf137f9[_0x132415(0x3e3)]-0x1,_0x1ecbee;_0x202289>=0x0;_0x202289--)(_0x1ecbee=_0xf137f9[_0x202289])&&(_0x3428aa=_0x1ecbee(_0x3428aa)||_0x3428aa);return _0x3428aa;},Ae=(_0x2b93d7,_0x4f797d)=>(_0x2956f0,_0x4e3448)=>_0x4f797d(_0x2956f0,_0x4e3448,_0x2b93d7);let ee=class{constructor(_0x310e45,_0x5686a7){const _0x2e484c=_0x4a7abe;this['_transformService']=_0x310e45,this[_0x2e484c(0x1fd)]=_0x5686a7;}[_0x4a7abe(0x2c2)](_0x4e2f7e){const _0x2ba60e=_0x4a7abe;this[_0x2ba60e(0x1c6)](_0x4e2f7e),this[_0x2ba60e(0x474)](_0x4e2f7e);}[_0x4a7abe(0x2f6)](_0x708a72){const _0x417341=_0x4a7abe,{unitID:_0x4921a6}=_0x708a72,_0x36de3b=this[_0x417341(0x1fd)][_0x417341(0x216)](_0x4921a6)[_0x417341(0x3eb)](T['DocIMEInputManagerService']),{redoCache:_0x2843c7}=_0x36de3b[_0x417341(0x2e4)]();if(_0x2843c7['length']===0x0)return _0x708a72;let _0x5e1db8=a['Tools'][_0x417341(0x2a3)](_0x708a72[_0x417341(0x2da)][0x0]);for(let _0x35777a=0x0;_0x35777a<_0x2843c7['length'];_0x35777a++){const _0x33fa66={'id':_0x417341(0x354),'params':{..._0x2843c7[_0x35777a]}},_0x3a786a=this[_0x417341(0x3d4)][_0x417341(0x2dc)](_0x5e1db8,_0x33fa66,!0x1);if(g['isTransformMutationFailure'](_0x3a786a))throw _0x3a786a['error'];_0x5e1db8=_0x3a786a[_0x417341(0x402)];}return{...a[_0x417341(0x337)][_0x417341(0x2a3)](_0x708a72),'mutations':[_0x5e1db8]};}[_0x4a7abe(0x1c6)](_0x1a6e5e){const _0x1fb974=_0x4a7abe,{unitID:_0x50116f}=_0x1a6e5e,_0x1d4ecc=this[_0x1fb974(0x1fd)][_0x1fb974(0x216)](_0x50116f)[_0x1fb974(0x3eb)](T[_0x1fb974(0x2b0)]),{undoCache:_0xe0f278,redoCache:_0x59b16d}=_0x1d4ecc['getUndoRedoMutationParamsCache']();if(_0xe0f278['length']===0x0||_0x59b16d[_0x1fb974(0x3e3)]===0x0)return;const _0x1cb71=[],_0x2fbf81=[];let _0x4ce7b8=a[_0x1fb974(0x337)][_0x1fb974(0x2a3)](_0x1a6e5e[_0x1fb974(0x2da)][0x0]),_0x3fc5be=a[_0x1fb974(0x337)][_0x1fb974(0x2a3)](_0x1a6e5e['mutations'][0x0]);for(let _0xf66db3=_0xe0f278[_0x1fb974(0x3e3)]-0x1;_0xf66db3>=0x0;_0xf66db3--){const _0x5a1b60={'id':_0x1fb974(0x354),'params':{..._0xe0f278[_0xf66db3]}},_0x1e8809={'id':_0x1fb974(0x354),'params':{..._0x59b16d[_0xf66db3]}},_0x1f4c36=this[_0x1fb974(0x3d4)]['transformMutation'](_0x4ce7b8,_0x5a1b60,!0x1),_0x1984ec=this[_0x1fb974(0x3d4)][_0x1fb974(0x2dc)](_0x3fc5be,_0x1e8809,!0x1);if(g[_0x1fb974(0x408)](_0x1f4c36))throw _0x1f4c36[_0x1fb974(0x291)];if(g['isTransformMutationFailure'](_0x1984ec))throw _0x1984ec[_0x1fb974(0x291)];_0x1cb71['unshift'](_0x1f4c36[_0x1fb974(0x2ad)]['params']),_0x2fbf81[_0x1fb974(0x2ff)](_0x1984ec[_0x1fb974(0x2ad)][_0x1fb974(0x43f)]),_0x4ce7b8=_0x1f4c36[_0x1fb974(0x402)],_0x3fc5be=_0x1984ec['m1Prime'];}_0x1d4ecc['setUndoRedoMutationParamsCache']({'undoCache':_0x1cb71,'redoCache':_0x2fbf81});}[_0x4a7abe(0x474)](_0x362680){const _0x1a7f6c=_0x4a7abe,{unitID:_0x4a0b84}=_0x362680,_0x4924c2=this[_0x1a7f6c(0x1fd)]['getRenderById'](_0x4a0b84)[_0x1a7f6c(0x3eb)](T[_0x1a7f6c(0x2b0)]),_0x22d9b7=_0x4924c2[_0x1a7f6c(0x3d0)]();if(_0x22d9b7==null)return;const _0x2c7f83=[{'id':_0x1a7f6c(0x354),'params':{'unitId':_0x362680['unitID'],'actions':null,'textRanges':[_0x22d9b7]}}],_0x10a899=this['_transformService']['transformMutationsWithChangeset'](_0x362680,_0x2c7f83);if(!g[_0x1a7f6c(0x298)](_0x10a899))throw _0x10a899['error'];const _0x1ccd92=_0x10a899['m2Prime'][0x0]['params'][_0x1a7f6c(0x355)];Array[_0x1a7f6c(0x3b5)](_0x1ccd92)&&_0x1ccd92[_0x1a7f6c(0x3e3)]&&_0x4924c2[_0x1a7f6c(0x23a)](_0x1ccd92[0x0]);}};ee=Wt([Ae(0x0,g[_0x4a7abe(0x2f2)]),Ae(0x1,C[_0x4a7abe(0x24a)])],ee);var Vt=Object[_0x4a7abe(0x319)],Gt=(_0x59995b,_0x4886c0,_0x58e30d,_0x4a83a6)=>{const _0xc8270f=_0x4a7abe;for(var _0x14203a=_0x4a83a6>0x1?void 0x0:_0x4a83a6?Vt(_0x4886c0,_0x58e30d):_0x4886c0,_0x14504a=_0x59995b[_0xc8270f(0x3e3)]-0x1,_0xe009ec;_0x14504a>=0x0;_0x14504a--)(_0xe009ec=_0x59995b[_0x14504a])&&(_0x14203a=_0xe009ec(_0x14203a)||_0x14203a);return _0x14203a;},Ie=(_0x5226cb,_0x185afb)=>(_0x3e4661,_0x3622e4)=>_0x185afb(_0x3e4661,_0x3622e4,_0x5226cb);let te=class{constructor(_0x25f974,_0x3edf63,_0xf26462){const _0x438617=_0x4a7abe;this[_0x438617(0x449)]=_0x25f974,this['_transformService']=_0x3edf63,this[_0x438617(0x399)]=_0xf26462;}[_0x4a7abe(0x464)](_0x4cdc7f){this['_transformHistoryAndStateStack'](_0x4cdc7f);}[_0x4a7abe(0x2f6)](_0x4ba2f8){const _0x9b0a42=_0x4a7abe,{unitID:_0x1a078a}=_0x4ba2f8,{collaboration:_0x5be3f9}=this['_docStateChangeManagerService']['getStateCache'](_0x1a078a);if(_0x5be3f9[_0x9b0a42(0x3e3)]===0x0)return _0x4ba2f8;let _0x5233d6=a[_0x9b0a42(0x337)]['deepClone'](_0x4ba2f8[_0x9b0a42(0x2da)][0x0]);for(let _0x32024e=0x0;_0x32024e<_0x5be3f9['length'];_0x32024e++){const _0x34a9d3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5be3f9[_0x32024e][_0x9b0a42(0x1c7)],..._0x5be3f9[_0x32024e][_0x9b0a42(0x468)]}},_0x997396=this[_0x9b0a42(0x3d4)][_0x9b0a42(0x2dc)](_0x5233d6,_0x34a9d3,!0x1);if(g[_0x9b0a42(0x408)](_0x997396))throw _0x997396['error'];_0x5233d6=_0x997396['m1Prime'];}return{...a['Tools']['deepClone'](_0x4ba2f8),'mutations':[_0x5233d6]};}[_0x4a7abe(0x3b4)](_0x297746){const _0x844299=_0x4a7abe,{unitID:_0x349b00}=_0x297746,{history:_0x4ce08d,collaboration:_0x7efe33}=this[_0x844299(0x399)][_0x844299(0x300)](_0x349b00);if(_0x4ce08d['length']===0x0&&_0x7efe33[_0x844299(0x3e3)]===0x0)return;const _0x348f42=[],_0x2f134e=[];let _0x4b1b05=a[_0x844299(0x337)][_0x844299(0x2a3)](_0x297746[_0x844299(0x2da)][0x0]),_0xa6c23e=a[_0x844299(0x337)]['deepClone'](_0x297746[_0x844299(0x2da)][0x0]);for(let _0x2e2f15=_0x4ce08d[_0x844299(0x3e3)]-0x1;_0x2e2f15>=0x0;_0x2e2f15--){const _0x22c640={'id':_0x844299(0x354),'params':{'unitId':_0x4ce08d[_0x2e2f15][_0x844299(0x1c7)],..._0x4ce08d[_0x2e2f15]['undoState']}},_0x1efc48={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ce08d[_0x2e2f15][_0x844299(0x1c7)],..._0x4ce08d[_0x2e2f15]['redoState']}},_0x223267=this[_0x844299(0x3d4)][_0x844299(0x2dc)](_0x4b1b05,_0x22c640,!0x1),_0xf2b24e=this[_0x844299(0x3d4)]['transformMutation'](_0xa6c23e,_0x1efc48,!0x1);if(g[_0x844299(0x408)](_0x223267))throw _0x223267[_0x844299(0x291)];if(g[_0x844299(0x408)](_0xf2b24e))throw _0xf2b24e[_0x844299(0x291)];_0x348f42[_0x844299(0x2ff)]({..._0x4ce08d[_0x2e2f15],'undoState':_0x223267['m2Prime'][_0x844299(0x43f)],'redoState':_0xf2b24e[_0x844299(0x2ad)]['params']}),_0x4b1b05=_0x223267['m1Prime'],_0xa6c23e=_0xf2b24e['m1Prime'];}_0x4b1b05=a[_0x844299(0x337)][_0x844299(0x2a3)](_0x297746[_0x844299(0x2da)][0x0]),_0xa6c23e=a[_0x844299(0x337)]['deepClone'](_0x297746[_0x844299(0x2da)][0x0]);for(let _0x5d3356=_0x7efe33['length']-0x1;_0x5d3356>=0x0;_0x5d3356--){const _0xee86f2={'id':_0x844299(0x354),'params':{'unitId':_0x7efe33[_0x5d3356][_0x844299(0x1c7)],..._0x7efe33[_0x5d3356][_0x844299(0x422)]}},_0x5a5247={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x7efe33[_0x5d3356][_0x844299(0x1c7)],..._0x7efe33[_0x5d3356][_0x844299(0x468)]}},_0x333b77=this['_transformService']['transformMutation'](_0x4b1b05,_0xee86f2,!0x1),_0x55d69a=this['_transformService'][_0x844299(0x2dc)](_0xa6c23e,_0x5a5247,!0x1);if(g[_0x844299(0x408)](_0x333b77))throw _0x333b77['error'];if(g[_0x844299(0x408)](_0x55d69a))throw _0x55d69a[_0x844299(0x291)];_0x2f134e[_0x844299(0x2ff)]({..._0x7efe33[_0x5d3356],'undoState':_0x333b77[_0x844299(0x2ad)][_0x844299(0x43f)],'redoState':_0x55d69a[_0x844299(0x2ad)][_0x844299(0x43f)]}),_0x4b1b05=_0x333b77[_0x844299(0x402)],_0xa6c23e=_0x55d69a[_0x844299(0x402)];}this['_docStateChangeManagerService'][_0x844299(0x1b8)](_0x349b00,{'history':_0x348f42,'collaboration':_0x2f134e});}};te=Gt([Ie(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),Ie(0x1,g[_0x4a7abe(0x2f2)]),Ie(0x2,a[_0x4a7abe(0x32c)](T[_0x4a7abe(0x1fa)]))],te);var Xt=Object[_0x4a7abe(0x319)],Kt=(_0x310483,_0x399182,_0x35e49a,_0xb3c3bb)=>{for(var _0x640f36=_0xb3c3bb>0x1?void 0x0:_0xb3c3bb?Xt(_0x399182,_0x35e49a):_0x399182,_0xbd98a7=_0x310483['length']-0x1,_0xb4065;_0xbd98a7>=0x0;_0xbd98a7--)(_0xb4065=_0x310483[_0xbd98a7])&&(_0x640f36=_0xb4065(_0x640f36)||_0x640f36);return _0x640f36;},Pe=(_0x4500ab,_0x2d0c38)=>(_0x1f73b0,_0x28e623)=>_0x2d0c38(_0x1f73b0,_0x28e623,_0x4500ab);let se=class{constructor(_0x3c5781,_0x216b1c){const _0x3ca883=_0x4a7abe;this[_0x3ca883(0x449)]=_0x3c5781,this['_transformService']=_0x216b1c;}['transformSelections'](_0x345e04){const _0x3e3304=_0x4a7abe;var _0x4d62c1;const _0x41c6f9=this['_injector'][_0x3e3304(0x1c8)](V[_0x3e3304(0x325)]),_0x2e079b=(_0x4d62c1=_0x41c6f9['getDocRanges']())!=null?_0x4d62c1:[];if(_0x2e079b[_0x3e3304(0x3e3)]===0x0)return;const _0x47daf7=_0x345e04[_0x3e3304(0x1f5)],_0x303dba=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x47daf7,'actions':null,'textRanges':_0x2e079b}}],_0x52fae6=this[_0x3e3304(0x3d4)][_0x3e3304(0x48a)](_0x345e04,_0x303dba);if(!g[_0x3e3304(0x298)](_0x52fae6))throw _0x52fae6[_0x3e3304(0x291)];const _0x4dfe34=_0x52fae6['m2Prime'][0x0][_0x3e3304(0x43f)][_0x3e3304(0x355)];Array['isArray'](_0x4dfe34)&&_0x4dfe34[_0x3e3304(0x3e3)]&&_0x41c6f9[_0x3e3304(0x467)](_0x4dfe34,{'unitId':_0x47daf7,'subUnitId':_0x47daf7},!0x1);}};se=Kt([Pe(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),Pe(0x1,g[_0x4a7abe(0x2f2)])],se);var qt=Object[_0x4a7abe(0x319)],zt=(_0x330aa5,_0x4c5109,_0x246e7b,_0x5170cc)=>{const _0xc2cf0b=_0x4a7abe;for(var _0xbef097=_0x5170cc>0x1?void 0x0:_0x5170cc?qt(_0x4c5109,_0x246e7b):_0x4c5109,_0x123132=_0x330aa5[_0xc2cf0b(0x3e3)]-0x1,_0xd5de0a;_0x123132>=0x0;_0x123132--)(_0xd5de0a=_0x330aa5[_0x123132])&&(_0xbef097=_0xd5de0a(_0xbef097)||_0xbef097);return _0xbef097;},N=(_0x31af66,_0x197be6)=>(_0x45f057,_0x10719c)=>_0x197be6(_0x45f057,_0x10719c,_0x31af66);let ie=class extends a[_0x4a7abe(0x2de)]{constructor(_0x2e79a4,_0x3f2a31,_0x736f1f,_0x3c4f50,_0x5ade71,_0xb44b56,_0x3b451a,_0x39be62){const _0x1a3573=_0x4a7abe;super(),_(this,_0x1a3573(0x489),new I[(_0x1a3573(0x242))](u[_0x1a3573(0x1bb)][_0x1a3573(0x2f4)])),(this[_0x1a3573(0x399)]=_0x2e79a4,this[_0x1a3573(0x24e)]=_0x3f2a31,this[_0x1a3573(0x47b)]=_0x736f1f,this[_0x1a3573(0x2cb)]=_0x3c4f50,this[_0x1a3573(0x427)]=_0x5ade71,this[_0x1a3573(0x33c)]=_0xb44b56,this[_0x1a3573(0x3ae)]=_0x3b451a,this[_0x1a3573(0x271)]=_0x39be62,this[_0x1a3573(0x35c)]());}[_0x4a7abe(0x35c)](){const _0x297aaa=_0x4a7abe;this[_0x297aaa(0x360)](this[_0x297aaa(0x24e)][_0x297aaa(0x1c9)][_0x297aaa(0x1f1)](_0x986c2=>{const _0x539c2b=_0x297aaa,_0x34da63=this[_0x539c2b(0x399)][_0x539c2b(0x3f4)][_0x539c2b(0x1f1)](_0x1acd78=>{const _0x107148=_0x539c2b;if(_0x1acd78==null)return;const {unitId:_0x3563a3,redoState:_0x1d8739,commandId:_0x52aeb1}=_0x1acd78;if(_0x3563a3!==_0x986c2[_0x107148(0x1f5)])return;const _0x426f22={'id':_0x52aeb1,'type':a[_0x107148(0x42a)][_0x107148(0x301)],'params':{'unitId':_0x3563a3,'actions':_0x1d8739[_0x107148(0x420)],'textRanges':null}};_0x986c2[_0x107148(0x465)](_0x426f22);});if(_0x986c2[_0x539c2b(0x360)](_0x34da63),_0x986c2 instanceof u['DocCollaborationEntity']){const _0xf03e1d={'onTransformIME':_0x19ce83=>this[_0x539c2b(0x47b)]['transformIMECache'](_0x19ce83),'onTransformState':_0x1bd960=>this[_0x539c2b(0x2cb)][_0x539c2b(0x464)](_0x1bd960),'onTransformSelections':_0x258883=>this[_0x539c2b(0x427)][_0x539c2b(0x356)](_0x258883),'onSyncEditingCollabCursor':_0x115d82=>this['_docSyncEditingCollabCursorService'][_0x539c2b(0x3e1)](_0x115d82),'onTransformRemoteChangesetByIMECache':_0x3f4c79=>this[_0x539c2b(0x47b)]['transformRemoteChangeset'](_0x3f4c79),'onTransformRemoteChangesetByStateCache':_0x352b1c=>this[_0x539c2b(0x2cb)][_0x539c2b(0x2f6)](_0x352b1c)};_0x986c2[_0x539c2b(0x2f7)](_0xf03e1d);}}));}};ie=zt([N(0x0,a[_0x4a7abe(0x32c)](T[_0x4a7abe(0x1fa)])),N(0x1,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x1d6)])),N(0x2,a[_0x4a7abe(0x32c)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x4a7abe(0x32c)](se)),N(0x5,a[_0x4a7abe(0x32c)](be)),N(0x6,O[_0x4a7abe(0x407)]),N(0x7,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],ie);var G=(_0x3e8a3c=>(_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x21c)]=0x0]=_0x4a7abe(0x21c),_0x3e8a3c[_0x3e8a3c['OK']=0x1]='OK',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x34d)]=0x2]='INTERNAL_ERROR',_0x3e8a3c[_0x3e8a3c['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3a4)]=0x4]=_0x4a7abe(0x3a4),_0x3e8a3c[_0x3e8a3c['UNAUTHENTICATED']=0x5]=_0x4a7abe(0x29b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x477)]=0x6]=_0x4a7abe(0x477),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3d7)]=0x7]=_0x4a7abe(0x3d7),_0x3e8a3c[_0x3e8a3c['TOO_MANY_REQUESTS']=0x8]=_0x4a7abe(0x3ad),_0x3e8a3c[_0x3e8a3c['COMPLETION_FINISHED']=0x9]=_0x4a7abe(0x31e),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2d1)]=0xa]=_0x4a7abe(0x2d1),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x43d)]=0xb]=_0x4a7abe(0x43d),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x385)]=0xc]=_0x4a7abe(0x385),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x267)]=0xd]=_0x4a7abe(0x267),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x436)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3e8a3c[_0x3e8a3c['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x4a7abe(0x3cb),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x220)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x3e8a3c[_0x3e8a3c['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x4a7abe(0x322),_0x3e8a3c[_0x3e8a3c['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x3e8a3c[_0x3e8a3c['USER_NOT_FOUND']=0xc9]=_0x4a7abe(0x1cf),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x447)]=0xca]=_0x4a7abe(0x447),_0x3e8a3c[_0x3e8a3c['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a7abe(0x1bd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x43e)]=0x1771]=_0x4a7abe(0x43e),_0x3e8a3c[_0x3e8a3c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4a7abe(0x287),_0x3e8a3c[_0x3e8a3c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x289)]=0x1b59]=_0x4a7abe(0x289),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x36b)]=0x1b5a]=_0x4a7abe(0x36b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x45a)]=0x1b5b]=_0x4a7abe(0x45a),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x38a)]=0x1b5c]=_0x4a7abe(0x38a),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x275)]=0x1b5d]='APPLY_DUPLICATED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2e1)]=0x1f41]=_0x4a7abe(0x2e1),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x34b)]=0x2329]=_0x4a7abe(0x34b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x296)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1e7)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x40f)]=0x232c]=_0x4a7abe(0x40f),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x246)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1f3)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x206)]=0x2712]=_0x4a7abe(0x206),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x334)]=0x2713]=_0x4a7abe(0x334),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x302)]=0x2714]=_0x4a7abe(0x302),_0x3e8a3c[_0x3e8a3c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x4a7abe(0x46c),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2b8)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1d7)]=0x271c]=_0x4a7abe(0x1d7),_0x3e8a3c[_0x3e8a3c['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4a7abe(0x3fd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2b6)]=0x271e]=_0x4a7abe(0x2b6),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x235)]=0x271f]=_0x4a7abe(0x235),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2c3)]=0x2720]=_0x4a7abe(0x2c3),_0x3e8a3c[_0x3e8a3c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4a7abe(0x48e),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x37a)]=0x2ee1]=_0x4a7abe(0x37a),_0x3e8a3c[_0x3e8a3c['INVALID_INVITE_CODE']=0x2ee2]=_0x4a7abe(0x2f8),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x39c)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3db)]=0x2ee4]=_0x4a7abe(0x3db),_0x3e8a3c[_0x3e8a3c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x390)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1d2)]=0x32ca]=_0x4a7abe(0x1d2),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x476)]=0x32cb]=_0x4a7abe(0x476),_0x3e8a3c[_0x3e8a3c['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x4a7abe(0x3de),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x24b)]=0x36b2]=_0x4a7abe(0x24b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2f5)]=0x36b3]=_0x4a7abe(0x2f5),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x254)]=0x36b4]=_0x4a7abe(0x254),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x491)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x395)]=0x36b6]=_0x4a7abe(0x395),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x35e)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x290)]=0x36b8]=_0x4a7abe(0x290),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3dd)]=0x3715]=_0x4a7abe(0x3dd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x240)]=0x3716]=_0x4a7abe(0x240),_0x3e8a3c[_0x3e8a3c['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x4a7abe(0x331),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2d0)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x31a)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x3e8a3c[_0x3e8a3c['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x4a7abe(0x345),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3ff)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x36c)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x347)]=0x3a9d]=_0x4a7abe(0x347),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3bc)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x245)]=0x3a9f]=_0x4a7abe(0x245),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x320)]=0x3e81]=_0x4a7abe(0x320),_0x3e8a3c[_0x3e8a3c['UNRECOGNIZED']=-0x1]=_0x4a7abe(0x213),_0x3e8a3c))(G||{});function Jt(_0x570c74){const _0x48a5d3=_0x4a7abe;var _0x54b533,_0x21f9e5;const _0x24f296=(_0x54b533=_0x570c74[_0x48a5d3(0x26f)])==null?void 0x0:_0x54b533[_0x48a5d3(0x33e)],_0x3d376c=((_0x21f9e5=_0x570c74[_0x48a5d3(0x26f)])==null?void 0x0:_0x21f9e5[_0x48a5d3(0x486)])||0x0;return _0x24f296===B[_0x48a5d3(0x484)][_0x48a5d3(0x3b2)]&&_0x3d376c>0x0;}function Zt(_0x3524a4){const _0x58d8b3=_0x4a7abe;return _0x3524a4[_0x58d8b3(0x1c2)]===B['FormulaExecutedStateType'][_0x58d8b3(0x309)];}var Qt=Object[_0x4a7abe(0x319)],es=(_0x5d5d42,_0x212455,_0x1c1832,_0x1a8815)=>{for(var _0x3b3e78=_0x1a8815>0x1?void 0x0:_0x1a8815?Qt(_0x212455,_0x1c1832):_0x212455,_0x3c7392=_0x5d5d42['length']-0x1,_0x2a0c1b;_0x3c7392>=0x0;_0x3c7392--)(_0x2a0c1b=_0x5d5d42[_0x3c7392])&&(_0x3b3e78=_0x2a0c1b(_0x3b3e78)||_0x3b3e78);return _0x3b3e78;},L=(_0x5be2cb,_0x594972)=>(_0x2c179f,_0x11d669)=>_0x594972(_0x2c179f,_0x11d669,_0x5be2cb);const ts=_0x4a7abe(0x24c),ss=_0x4a7abe(0x456),is=_0x4a7abe(0x27e);let ne=class extends a[_0x4a7abe(0x2de)]{constructor(_0x1a5c28,_0x50709a,_0xf4f448,_0x27dd4e,_0x4139cf,_0x214833,_0x1c2791){const _0x28805a=_0x4a7abe;super(),_(this,_0x28805a(0x437),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x28805a(0x25b),0x0),_(this,_0x28805a(0x45d),[]),_(this,_0x28805a(0x48c),0x0),(this[_0x28805a(0x3ae)]=_0x1a5c28,this['_commandService']=_0x50709a,this['_configService']=_0xf4f448,this['_httpService']=_0x27dd4e,this['_univerInstanceService']=_0x4139cf,this['_logService']=_0x214833,this[_0x28805a(0x271)]=_0x1c2791,this[_0x28805a(0x44a)]());}[_0x4a7abe(0x44a)](){const _0x26f38f=_0x4a7abe;this[_0x26f38f(0x360)](this[_0x26f38f(0x263)][_0x26f38f(0x425)]((_0x3bb669,_0x106d66)=>{const _0x1a5b4e=_0x26f38f;var _0xccbd60;if(_0x3bb669['id']!==B[_0x1a5b4e(0x374)]['id'])return;const _0x351a92=_0x3bb669[_0x1a5b4e(0x43f)];if(!this[_0x1a5b4e(0x471)]((_0xccbd60=_0x351a92[_0x1a5b4e(0x35a)])!=null?_0xccbd60:[]))return;if(!this[_0x1a5b4e(0x44d)]())throw this['_checkAndWaitForCalculationPermission'](_0x3bb669,_0x106d66),this[_0x1a5b4e(0x20e)](),new a[(_0x1a5b4e(0x2bc))]();})),this[_0x26f38f(0x360)](this['_commandService'][_0x26f38f(0x453)]((_0x3a3458,_0x10e925)=>{const _0x44f92e=_0x26f38f;if(_0x3a3458['id']!==B[_0x44f92e(0x392)]['id'])return;const _0x1ebe93=_0x3a3458[_0x44f92e(0x43f)];if(Jt(_0x1ebe93)){const _0x1e3177=a[_0x44f92e(0x32f)]();this['_taskIds'][_0x44f92e(0x272)](_0x1e3177),this[_0x44f92e(0x238)](_0x1e3177);}else{if(Zt(_0x1ebe93)&&this['_taskIds'][_0x44f92e(0x3e3)]>0x0){const _0x13f1b9=this[_0x44f92e(0x45d)][_0x44f92e(0x1ea)]();this[_0x44f92e(0x382)](_0x13f1b9);}}}));}[_0x4a7abe(0x234)](){const _0x4ea102=_0x4a7abe;super[_0x4ea102(0x234)](),this[_0x4ea102(0x310)](),this[_0x4ea102(0x45d)]=[],this['_currentUsage']=0x0,this[_0x4ea102(0x41b)]=0x0,this[_0x4ea102(0x48c)]=0x0;}async[_0x4a7abe(0x2c5)](_0x228dab,_0x32f671){const _0x27be41=_0x4a7abe;for(let _0x2569fd=0x0;_0x2569fd<0x1e;_0x2569fd++)try{if(await this[_0x27be41(0x475)](),this[_0x27be41(0x44d)]()){this['_applyCommand'](_0x228dab,_0x32f671),this['_messageService']['show']({'content':this[_0x27be41(0x271)]['t']('formula.calculation.started'),'type':p[_0x27be41(0x229)][_0x27be41(0x370)]});return;}await new Promise(_0x4a6ba6=>{const _0x366ca1=_0x27be41;this[_0x366ca1(0x437)]=window['setTimeout'](_0x4a6ba6,0x3e8);});}catch(_0x13be00){this[_0x27be41(0x32d)][_0x27be41(0x291)](_0x13be00);}this[_0x27be41(0x3ae)]['show']({'content':this[_0x27be41(0x271)]['t'](_0x27be41(0x1d5)),'type':p[_0x27be41(0x229)][_0x27be41(0x1d0)]});}[_0x4a7abe(0x3b3)](_0x513928,_0x1fc506){const _0x13bf5c=_0x4a7abe;try{this['_commandService'][_0x13bf5c(0x22f)](_0x513928['id'],_0x513928[_0x13bf5c(0x43f)],_0x1fc506);}catch(_0xbbebea){this[_0x13bf5c(0x32d)][_0x13bf5c(0x291)](_0xbbebea);}}[_0x4a7abe(0x47e)](_0x51e56d,_0x5e7583){const _0x437baf=_0x4a7abe;_0x5e7583<this['_lastResponseTimestamp']||(this[_0x437baf(0x48c)]=_0x5e7583,this['_maxFormulaLimit']=Number['parseInt'](_0x51e56d['maxFormulaLimit']),this[_0x437baf(0x25b)]=Number[_0x437baf(0x3d5)](_0x51e56d[_0x437baf(0x33a)]));}async[_0x4a7abe(0x238)](_0x4a87ca){const _0x2ed8fb=_0x4a7abe;var _0x5beb99,_0x181b5a;const _0x4c49bc=Date[_0x2ed8fb(0x46a)]();try{const _0x52cbec=((_0x5beb99=this[_0x2ed8fb(0x365)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5beb99['startFormulaLimitUrl'])||ss,_0x644bc4=(await this[_0x2ed8fb(0x3c0)][_0x2ed8fb(0x1c4)](_0x52cbec,{'body':JSON[_0x2ed8fb(0x1df)]({'taskId':_0x4a87ca})}))[_0x2ed8fb(0x3d1)];if(((_0x181b5a=_0x644bc4[_0x2ed8fb(0x291)])==null?void 0x0:_0x181b5a['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x644bc4['limitInfo'],_0x4c49bc);}catch(_0x2d6ac7){this[_0x2ed8fb(0x32d)][_0x2ed8fb(0x291)](_0x2d6ac7);}}async[_0x4a7abe(0x475)](_0x2767ee){const _0x50e84b=_0x4a7abe;var _0x2ce636,_0x439e89;const _0x2fada2=Date['now']();try{const _0x15d1f3=((_0x2ce636=this[_0x50e84b(0x365)][_0x50e84b(0x3d6)](u[_0x50e84b(0x268)]))==null?void 0x0:_0x2ce636[_0x50e84b(0x3c2)])||ts,_0x35f424=_0x2767ee?_0x15d1f3+_0x50e84b(0x28d)+encodeURIComponent(_0x2767ee):_0x15d1f3,_0x43796d=(await this[_0x50e84b(0x3c0)]['get'](_0x35f424))[_0x50e84b(0x3d1)];if(((_0x439e89=_0x43796d[_0x50e84b(0x291)])==null?void 0x0:_0x439e89['code'])!==G['OK'])return;this[_0x50e84b(0x47e)](_0x43796d['limitInfo'],_0x2fada2);}catch(_0x3016ad){this[_0x50e84b(0x32d)]['error'](_0x3016ad);}}async[_0x4a7abe(0x382)](_0x944747){const _0x190821=_0x4a7abe;var _0x46b3c7,_0xddcc7d;const _0x4a8ed7=Date['now']();try{const _0x17133d=((_0x46b3c7=this[_0x190821(0x365)]['getConfig'](u[_0x190821(0x268)]))==null?void 0x0:_0x46b3c7[_0x190821(0x1d9)])||is,_0x36bc58=(await this[_0x190821(0x3c0)]['post'](_0x17133d,{'body':JSON[_0x190821(0x1df)]({'taskId':_0x944747})}))[_0x190821(0x3d1)];if(((_0xddcc7d=_0x36bc58[_0x190821(0x291)])==null?void 0x0:_0xddcc7d[_0x190821(0x409)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x36bc58[_0x190821(0x306)],_0x4a8ed7);}catch(_0x9a0d0a){this['_logService'][_0x190821(0x291)](_0x9a0d0a);}}[_0x4a7abe(0x44d)](){const _0x215735=_0x4a7abe;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x215735(0x41b)]-this[_0x215735(0x25b)]>0x0;}[_0x4a7abe(0x310)](){const _0x3f4d37=_0x4a7abe;this[_0x3f4d37(0x437)]&&(clearTimeout(this['_pollingInterval']),this[_0x3f4d37(0x437)]=null);}[_0x4a7abe(0x20e)](){const _0x5915fb=_0x4a7abe;this[_0x5915fb(0x3ae)]['show']({'content':this[_0x5915fb(0x271)]['t'](_0x5915fb(0x1e2)),'type':p['MessageType'][_0x5915fb(0x256)]});}[_0x4a7abe(0x471)](_0x11f8e2){const _0x478fec=_0x4a7abe;for(const _0x30a88e of _0x11f8e2){const {unitId:_0x1a816c,sheetId:_0x1c37c2,range:_0x26e626}=_0x30a88e,_0xbd02f5=this[_0x478fec(0x393)][_0x478fec(0x494)](_0x1a816c);if(!_0xbd02f5)continue;const _0x11fc36=_0xbd02f5[_0x478fec(0x2bb)](_0x1c37c2);if(!_0x11fc36)continue;const _0x1b92b6=_0x11fc36[_0x478fec(0x2b7)]();for(let _0x2b555f=_0x26e626[_0x478fec(0x369)];_0x2b555f<=_0x26e626[_0x478fec(0x1ce)];_0x2b555f++)for(let _0x3ff342=_0x26e626['startColumn'];_0x3ff342<=_0x26e626[_0x478fec(0x2fb)];_0x3ff342++){const _0x17f1d=_0x1b92b6[_0x478fec(0x305)](_0x2b555f,_0x3ff342);if(_0x17f1d&&(a[_0x478fec(0x3ee)](_0x17f1d['f'])||a[_0x478fec(0x265)](_0x17f1d['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x4a7abe(0x407)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),L(0x4,a[_0x4a7abe(0x1e6)]),L(0x5,a[_0x4a7abe(0x1dc)]),L(0x6,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],ne);var ns=Object[_0x4a7abe(0x319)],rs=(_0x21cf97,_0xa1e283,_0x4a508c,_0x3a3eab)=>{const _0x6e6dd0=_0x4a7abe;for(var _0x1a10b9=_0x3a3eab>0x1?void 0x0:_0x3a3eab?ns(_0xa1e283,_0x4a508c):_0xa1e283,_0xd92c48=_0x21cf97[_0x6e6dd0(0x3e3)]-0x1,_0x29969c;_0xd92c48>=0x0;_0xd92c48--)(_0x29969c=_0x21cf97[_0xd92c48])&&(_0x1a10b9=_0x29969c(_0x1a10b9)||_0x1a10b9);return _0x1a10b9;},Se=(_0x42fdac,_0x599674)=>(_0x2e260e,_0x55f6aa)=>_0x599674(_0x2e260e,_0x55f6aa,_0x42fdac);let Te=class extends a[_0x4a7abe(0x2de)]{constructor(_0x5407be,_0x2466bf,_0x4f2fc4){const _0x5151ea=_0x4a7abe;super(),_(this,_0x5151ea(0x405),new Map()),_(this,_0x5151ea(0x321),new Map()),_(this,_0x5151ea(0x1bc),!0x1),(this[_0x5151ea(0x365)]=_0x5407be,this[_0x5151ea(0x394)]=_0x2466bf,this[_0x5151ea(0x363)]=_0x4f2fc4);}[_0x4a7abe(0x48d)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x592189=_0x4a7abe;this[_0x592189(0x1bc)]=!0x1;}get[_0x4a7abe(0x487)](){const _0xda1ccd=_0x4a7abe;return this[_0xda1ccd(0x321)];}[_0x4a7abe(0x234)](){const _0x17c5c5=_0x4a7abe;this[_0x17c5c5(0x39f)]()[_0x17c5c5(0x2bf)](()=>super[_0x17c5c5(0x234)]());}async[_0x4a7abe(0x279)](_0x551642){const _0x594656=_0x4a7abe;return this[_0x594656(0x1bc)]?null:this[_0x594656(0x394)][_0x594656(0x419)](u[_0x594656(0x2a9)](_0x551642));}async[_0x4a7abe(0x38f)](_0x45774c,_0x2aa9db){const _0x4502cd=_0x4a7abe;return!!this[_0x4502cd(0x394)][_0x4502cd(0x344)](_0x45774c,_0x2aa9db);}[_0x4a7abe(0x3be)](_0x1c625c,_0x27b393,_0x459bb1,_0x1bbc07){const _0x4206f5=_0x4a7abe,_0x542773=this[_0x4206f5(0x363)][_0x4206f5(0x316)](_0x1c625c);this['_cachedData'][_0x4206f5(0x205)](_0x1c625c,{'unitID':_0x1c625c,'type':_0x27b393,'awaitingChangeset':_0x459bb1,'mutations':_0x1bbc07,'rev':_0x542773}),this[_0x4206f5(0x321)]['has'](_0x1c625c)||this[_0x4206f5(0x30a)](_0x1c625c);}[_0x4a7abe(0x30a)](_0x49a3be){const _0x32c3e4=_0x4a7abe,_0x55e02c=this[_0x32c3e4(0x23d)]();_0x55e02c===0x0?this[_0x32c3e4(0x2ec)](_0x49a3be):this[_0x32c3e4(0x321)][_0x32c3e4(0x205)](_0x49a3be,setTimeout(()=>this[_0x32c3e4(0x2ec)](_0x49a3be),_0x55e02c));}[_0x4a7abe(0x23d)](){const _0x37a656=_0x4a7abe;var _0x5a0c6f;return(_0x5a0c6f=this[_0x37a656(0x365)][_0x37a656(0x3d6)](u[_0x37a656(0x3c6)]))!=null?_0x5a0c6f:u[_0x37a656(0x3a5)];}['_saveCache'](_0x452ae9){const _0x49429b=_0x4a7abe,_0x2f64bb=this[_0x49429b(0x321)][_0x49429b(0x1c8)](_0x452ae9);return _0x2f64bb!==void 0x0&&window[_0x49429b(0x457)](_0x2f64bb),this['_localStorageService'][_0x49429b(0x344)](u[_0x49429b(0x2a9)](_0x452ae9),this[_0x49429b(0x405)][_0x49429b(0x1c8)](_0x452ae9))[_0x49429b(0x2bf)](()=>this[_0x49429b(0x321)][_0x49429b(0x1dd)](_0x452ae9));}async[_0x4a7abe(0x39f)](){const _0x5ec868=_0x4a7abe,_0x34e51c=[];this[_0x5ec868(0x321)]['forEach']((_0x52b694,_0x3ec165)=>{const _0x2096ac=_0x5ec868;window['clearTimeout'](_0x52b694),_0x34e51c[_0x2096ac(0x272)](this[_0x2096ac(0x2ec)](_0x3ec165)[_0x2096ac(0x2bf)](()=>{const _0x2b9761=_0x2096ac;this[_0x2b9761(0x321)]['delete'](_0x3ec165);}));}),await Promise[_0x5ec868(0x2a4)](_0x34e51c);}};Te=rs([Se(0x0,a[_0x4a7abe(0x27c)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x4a7abe(0x32c)](g[_0x4a7abe(0x48b)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x390ff8=_0x4a7abe;super(),_(this,_0x390ff8(0x1ca)),this[_0x390ff8(0x1ca)]=I['fromEvent'](window,'popstate')[_0x390ff8(0x31d)](I[_0x390ff8(0x239)](this[_0x390ff8(0x288)]),I[_0x390ff8(0x232)](0x1),I[_0x390ff8(0x41a)](void 0x0));}[_0x4a7abe(0x3c7)](_0x59cbcf,_0x373abc,_0x51886a=!0x1){const _0x47a94e=_0x4a7abe,_0x119e31=new URL(window[_0x47a94e(0x1fe)][_0x47a94e(0x3dc)]);_0x119e31[_0x47a94e(0x1f0)][_0x47a94e(0x205)](_0x59cbcf,_0x373abc),_0x51886a?window[_0x47a94e(0x34e)]['replaceState']('','',_0x119e31[_0x47a94e(0x442)]()):window['history']['pushState']('','',_0x119e31['toString']());}['removeParam'](_0x299c0b,_0x29fe44=!0x1){const _0x54ffed=_0x4a7abe,_0xbde39e=new URL(window[_0x54ffed(0x1fe)][_0x54ffed(0x3dc)]);_0xbde39e['searchParams'][_0x54ffed(0x1dd)](_0x299c0b),_0x29fe44?window[_0x54ffed(0x34e)][_0x54ffed(0x1d4)]('','',_0xbde39e[_0x54ffed(0x442)]()):window[_0x54ffed(0x34e)][_0x54ffed(0x225)]('','',_0xbde39e['toString']());}['getParam'](_0x3efd35){const _0x4fc4e2=_0x4a7abe;var _0x21bb81;return(_0x21bb81=new URL(window[_0x4fc4e2(0x1fe)][_0x4fc4e2(0x3dc)])[_0x4fc4e2(0x1f0)][_0x4fc4e2(0x1c8)](_0x3efd35))!=null?_0x21bb81:void 0x0;}}var os=Object[_0x4a7abe(0x25e)],as=Object[_0x4a7abe(0x319)],cs=(_0x113e6d,_0x30bb09,_0x49eca0)=>_0x30bb09 in _0x113e6d?os(_0x113e6d,_0x30bb09,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49eca0}):_0x113e6d[_0x30bb09]=_0x49eca0,ls=(_0x40e2de,_0x3909c0,_0x6e3518,_0x1230d7)=>{const _0xf2c6d5=_0x4a7abe;for(var _0x5dcbbe=_0x1230d7>0x1?void 0x0:_0x1230d7?as(_0x3909c0,_0x6e3518):_0x3909c0,_0x21a699=_0x40e2de[_0xf2c6d5(0x3e3)]-0x1,_0x14f0e9;_0x21a699>=0x0;_0x21a699--)(_0x14f0e9=_0x40e2de[_0x21a699])&&(_0x5dcbbe=_0x14f0e9(_0x5dcbbe)||_0x5dcbbe);return _0x5dcbbe;},de=(_0x2b1652,_0x527f8d)=>(_0x24361c,_0x4ffcf8)=>_0x527f8d(_0x24361c,_0x4ffcf8,_0x2b1652),_s=(_0x3023be,_0x44814a,_0x3bac4c)=>cs(_0x3023be,_0x44814a+'',_0x3bac4c);const hs=_0x4a7abe(0x323);exports[_0x4a7abe(0x342)]=class extends a[_0x4a7abe(0x492)]{constructor(_0x2f0a99=Me,_0x301133,_0x2b7adc,_0x27ab71){const _0x2f4ef2=_0x4a7abe;super(),this[_0x2f4ef2(0x264)]=_0x2f0a99,this[_0x2f4ef2(0x1fd)]=_0x301133,this[_0x2f4ef2(0x449)]=_0x2b7adc,this['_configService']=_0x27ab71;const {..._0x50bcc2}=a[_0x2f4ef2(0x2cd)]({},Me,this[_0x2f4ef2(0x264)]);this[_0x2f4ef2(0x365)]['setConfig'](Yt,_0x50bcc2);}[_0x4a7abe(0x2ca)](){const _0x1aa3b6=_0x4a7abe;this[_0x1aa3b6(0x2fe)](),this[_0x1aa3b6(0x424)]();}[_0x4a7abe(0x1ba)](){const _0x3814c2=_0x4a7abe;this[_0x3814c2(0x24f)]();}[_0x4a7abe(0x2fe)](){const _0x32a807=_0x4a7abe;var _0x18ec63;const _0x123e80=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x32a807(0x335)],{'useClass':x[_0x32a807(0x37e)]}],[u[_0x32a807(0x31f)],{'useClass':Te}],[exports[_0x32a807(0x446)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x32a807(0x264)]['enableFrontendLog']&&_0x123e80[_0x32a807(0x272)]([Q]),a[_0x32a807(0x3af)](this[_0x32a807(0x449)],a[_0x32a807(0x3e0)](_0x123e80,(_0x18ec63=this['_config'])==null?void 0x0:_0x18ec63[_0x32a807(0x46d)]));}[_0x4a7abe(0x24f)](){const _0x4a0ee1=_0x4a7abe;this[_0x4a0ee1(0x360)](this['_renderManagerService'][_0x4a0ee1(0x280)](a[_0x4a0ee1(0x483)][_0x4a0ee1(0x3a3)],[Ee])),this[_0x4a0ee1(0x360)](this[_0x4a0ee1(0x1fd)][_0x4a0ee1(0x280)](a[_0x4a0ee1(0x483)][_0x4a0ee1(0x324)],[Ce]));}[_0x4a7abe(0x424)](){const _0x316e7f=_0x4a7abe;a[_0x316e7f(0x378)](this[_0x316e7f(0x449)],[[F],[exports[_0x316e7f(0x446)]],[ie],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this[_0x316e7f(0x264)]['enableFrontendLog']&&a[_0x316e7f(0x378)](this[_0x316e7f(0x449)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x4a7abe(0x2b9),hs),exports[_0x4a7abe(0x342)]=ls([a[_0x4a7abe(0x27a)](u[_0x4a7abe(0x1c1)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),de(0x3,a['IConfigService'])],exports[_0x4a7abe(0x342)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x210771,_0x22e963,_0x42662f,_0x1a0166)=>{for(var _0x2604c2=_0x1a0166>0x1?void 0x0:_0x1a0166?us(_0x22e963,_0x42662f):_0x22e963,_0x4ddb33=_0x210771['length']-0x1,_0x2fcca7;_0x4ddb33>=0x0;_0x4ddb33--)(_0x2fcca7=_0x210771[_0x4ddb33])&&(_0x2604c2=_0x2fcca7(_0x2604c2)||_0x2604c2);return _0x2604c2;},W=(_0x2cd09e,_0x49f322)=>(_0x1597e4,_0x5aa550)=>_0x49f322(_0x1597e4,_0x5aa550,_0x2cd09e);exports['BrowserCollaborationSocketService']=class extends u[_0x4a7abe(0x281)]{constructor(_0x20fe02,_0x5188ae,_0x2a63a5,_0x21e607,_0x318d2a){super(_0x20fe02,_0x5188ae,_0x2a63a5,_0x21e607,_0x318d2a);}async[_0x4a7abe(0x41e)](_0x81658f){const _0x5c717d=_0x4a7abe,_0x584b3e=await this[_0x5c717d(0x2ba)](),_0x3ee088=this[_0x5c717d(0x29d)](_0x81658f,_0x584b3e);return this['_doCreateSocket'](_0x3ee088);}[_0x4a7abe(0x29d)](_0x2213f6,_0x16b0bc){const _0x280ea2=_0x4a7abe,_0x30d8a1=typeof window>'u'?new URL(_0x2213f6):new URL(_0x2213f6,window[_0x280ea2(0x1fe)][_0x280ea2(0x308)]);_0x30d8a1['searchParams'][_0x280ea2(0x205)](_0x280ea2(0x3b1),_0x16b0bc);const _0x5f728b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x280ea2(0x1fe)]['search']);return _0x5f728b[_0x280ea2(0x1c8)](_0x280ea2(0x25f))&&_0x30d8a1[_0x280ea2(0x1f0)][_0x280ea2(0x205)]('runId',_0x5f728b[_0x280ea2(0x1c8)](_0x280ea2(0x25f))),_0x30d8a1[_0x280ea2(0x442)]();}async['_getSessionTicket'](){const _0x369b0f=_0x4a7abe;var _0x57ef8d,_0x13ea26,_0x4c6fdc;const _0x1c42e6=this[_0x369b0f(0x365)][_0x369b0f(0x3d6)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1e1927=(_0x57ef8d=_0x1c42e6==null?void 0x0:_0x1c42e6[_0x369b0f(0x3e2)])!=null?_0x57ef8d:u[_0x369b0f(0x43c)];return(_0x4c6fdc=(_0x13ea26=(await this[_0x369b0f(0x3c0)]['get'](_0x1e1927,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x13ea26[_0x369b0f(0x41d)])!=null?_0x4c6fdc:'';}},exports[_0x4a7abe(0x274)]=Is([W(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),W(0x1,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),W(0x2,a[_0x4a7abe(0x27c)]),W(0x3,a[_0x4a7abe(0x1dc)]),W(0x4,g[_0x4a7abe(0x2c6)])],exports[_0x4a7abe(0x274)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x1d56cc,_0x182b5d,_0x241e24,_0x5ac2c0)=>{const _0x9f4d18=_0x4a7abe;for(var _0x4d5011=_0x5ac2c0>0x1?void 0x0:_0x5ac2c0?Ss(_0x182b5d,_0x241e24):_0x182b5d,_0x1e8f89=_0x1d56cc[_0x9f4d18(0x3e3)]-0x1,_0x301419;_0x1e8f89>=0x0;_0x1e8f89--)(_0x301419=_0x1d56cc[_0x1e8f89])&&(_0x4d5011=_0x301419(_0x4d5011)||_0x4d5011);return _0x4d5011;},fe=(_0x38de57,_0x49ee45)=>(_0x4a22cf,_0xbf337c)=>_0x49ee45(_0x4a22cf,_0xbf337c,_0x38de57);exports['RemoteUniscriptService']=class extends a[_0x4a7abe(0x2de)]{constructor(_0x1a2a84,_0x3ec3b9,_0x1a12fc){const _0x5219d7=_0x4a7abe;super(),this[_0x5219d7(0x40b)]=_0x1a2a84,this[_0x5219d7(0x3c0)]=_0x3ec3b9,this[_0x5219d7(0x365)]=_0x1a12fc;}async[_0x4a7abe(0x326)](_0x6e5623,_0x1325b9,_0x55c94c,..._0x1b50e3){const _0x4a8df5=_0x4a7abe;var _0x30bd09,_0x329df3,_0x47c0aa,_0x29f25e;const _0x1aec45=this[_0x4a8df5(0x40b)][_0x4a8df5(0x460)]();if(!_0x1aec45)throw new Error(_0x4a8df5(0x223));const _0x2123f6=((_0x30bd09=this['_configService'][_0x4a8df5(0x3d6)](u[_0x4a8df5(0x2b2)]))!=null?_0x30bd09:u[_0x4a8df5(0x249)])+'/'+_0x6e5623+_0x4a8df5(0x3cc)+_0x1325b9,_0x50bef8=new URL(window['location'][_0x4a8df5(0x3dc)]),_0x3df2dd={'scriptId':_0x6e5623,'runId':(_0x329df3=_0x50bef8[_0x4a8df5(0x1f0)][_0x4a8df5(0x1c8)]('runId'))!=null?_0x329df3:'','function':_0x1325b9,'unitId':_0x1aec45['getUnitId'](),'argsOfFunction':JSON[_0x4a8df5(0x1df)](_0x1b50e3),'invokeId':(_0x47c0aa=_0x55c94c[_0x4a8df5(0x1be)])!=null?_0x47c0aa:'','executionId':(_0x29f25e=_0x55c94c['executionId'])!=null?_0x29f25e:''};try{const _0x4a7477=await this[_0x4a8df5(0x3c0)][_0x4a8df5(0x1c4)](_0x2123f6,{'body':_0x3df2dd});return _0x4a7477[_0x4a8df5(0x3d1)]['error']&&_0x4a7477[_0x4a8df5(0x3d1)][_0x4a8df5(0x291)][_0x4a8df5(0x409)]!==G['OK']?_0x4a8df5(0x384):_0x4a7477[_0x4a8df5(0x3d1)][_0x4a8df5(0x1c5)];}catch{return'Failed';}}},exports[_0x4a7abe(0x219)]=ds([fe(0x0,a[_0x4a7abe(0x1e6)]),fe(0x1,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),fe(0x2,a[_0x4a7abe(0x27c)])],exports['RemoteUniscriptService']);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x4a7abe(0x2de)]{constructor(){const _0xa95208=_0x4a7abe;super(),_(this,'_id',a[_0xa95208(0x32f)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0xa95208(0x336),null),_(this,'_clearOtherTimers',new Map()),_(this,_0xa95208(0x294),new Map()),this[_0xa95208(0x3a9)]();}[_0x4a7abe(0x234)](){const _0xbc590c=_0x4a7abe;super['dispose'](),this[_0xbc590c(0x33b)]['forEach']((_0x4e1ae6,_0x388b8c)=>this['_removeClearOtherTimer'](_0x388b8c)),this['_heartbeatTimer']&&window[_0xbc590c(0x3f1)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x6a6b5a){const _0x236b77=_0x4a7abe;return this[_0x236b77(0x430)](_0x6a6b5a)['pipe'](I[_0x236b77(0x1e3)]());}[_0x4a7abe(0x3cd)](_0x3f6ec2){const _0x293dea=_0x4a7abe;this['_selfUnitIDs'][_0x293dea(0x299)]===0x0&&this[_0x293dea(0x41f)](),this[_0x293dea(0x482)][_0x293dea(0x3ab)](_0x3f6ec2),this[_0x293dea(0x30f)]({'type':0x0,'memberID':this[_0x293dea(0x33f)],'unitIDs':[_0x3f6ec2],'isForwarded':!0x1});}['disposeUnit'](_0x36abb0){const _0x349801=_0x4a7abe;this[_0x349801(0x482)][_0x349801(0x1dd)](_0x36abb0),this[_0x349801(0x482)][_0x349801(0x299)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4a7abe(0x3a9)](){const _0x3af302=_0x4a7abe;this[_0x3af302(0x360)](a[_0x3af302(0x1e5)](I[_0x3af302(0x3f8)](window,_0x3af302(0x2f3))[_0x3af302(0x1f1)](_0x57a0c4=>{const _0x5d2a70=_0x3af302;if(_0x57a0c4[_0x5d2a70(0x1d3)]!==ye||!_0x57a0c4['newValue'])return;const _0x495158=JSON['parse'](_0x57a0c4[_0x5d2a70(0x202)]);this[_0x5d2a70(0x46b)](_0x495158);}))),window[_0x3af302(0x1c0)]('unload',()=>this[_0x3af302(0x30f)]({'type':0x1,'memberID':this[_0x3af302(0x33f)],'unitIDs':Array[_0x3af302(0x42d)](this[_0x3af302(0x482)])}));}[_0x4a7abe(0x46b)](_0x58fe5f){const _0x5b909f=_0x4a7abe;switch(_0x58fe5f['type']){case 0x0:this['_handleJoinEvent'](_0x58fe5f);break;case 0x1:this['_handleLeaveEvent'](_0x58fe5f);break;case 0x2:this[_0x5b909f(0x2e3)](_0x58fe5f);break;}}[_0x4a7abe(0x433)](_0x345208){const _0xd284ba=_0x4a7abe,{unitIDs:_0x42eacf,memberID:_0x2b98c4,isForwarded:_0x46d163}=_0x345208;_0x42eacf[_0xd284ba(0x2aa)](_0x5e5084=>{const _0x418a59=_0xd284ba;if(!_0x46d163&&this[_0x418a59(0x2cf)][_0x418a59(0x439)](_0x5e5084)&&this['_ensureSubject'](_0x5e5084)['next'](u[_0x418a59(0x3d9)][_0x418a59(0x450)]),!this[_0x418a59(0x2cf)][_0x418a59(0x439)](_0x5e5084)||!this[_0x418a59(0x2cf)][_0x418a59(0x1c8)](_0x5e5084)['has'](_0x2b98c4)){const _0x24377e=this[_0x418a59(0x2cf)][_0x418a59(0x1c8)](_0x5e5084)||new Set();_0x24377e[_0x418a59(0x3ab)](_0x2b98c4),this['_unitOnClients'][_0x418a59(0x205)](_0x5e5084,_0x24377e),this[_0x418a59(0x303)](_0x2b98c4);}}),_0x46d163||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xd284ba(0x482)]],'isForwarded':!0x0});}[_0x4a7abe(0x303)](_0x2967f2){const _0x2dbb5b=_0x4a7abe;this[_0x2dbb5b(0x1fb)](_0x2967f2);const _0x814271=window[_0x2dbb5b(0x417)](()=>{const _0x5980c7=_0x2dbb5b;this[_0x5980c7(0x2cf)]['forEach'](_0x40eb64=>{_0x40eb64['delete'](_0x2967f2);});},we*0x2);this[_0x2dbb5b(0x33b)]['set'](_0x2967f2,_0x814271);}[_0x4a7abe(0x1fb)](_0x2f9db6){const _0x301265=_0x4a7abe;if(this[_0x301265(0x33b)][_0x301265(0x439)](_0x2f9db6)){const _0x5f55b1=this[_0x301265(0x33b)]['get'](_0x2f9db6);_0x5f55b1&&window[_0x301265(0x457)](_0x5f55b1),this[_0x301265(0x33b)][_0x301265(0x205)](_0x2f9db6,null);}}[_0x4a7abe(0x29e)](_0x3a0477){const _0x21d18f=_0x4a7abe,{memberID:_0x380e2a,unitIDs:_0x31db19}=_0x3a0477;_0x31db19[_0x21d18f(0x2aa)](_0x55a4a0=>{const _0x34e1f6=_0x21d18f;var _0x376424;const _0x399974=this[_0x34e1f6(0x2cf)]['get'](_0x55a4a0);_0x399974&&(_0x399974[_0x34e1f6(0x1dd)](_0x380e2a),(_0x376424=this[_0x34e1f6(0x430)](_0x55a4a0))==null||_0x376424['next'](_0x399974[_0x34e1f6(0x299)]===0x0?u[_0x34e1f6(0x3d9)][_0x34e1f6(0x473)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x21d18f(0x1fb)](_0x380e2a);}['_handleHeartbeatEvent'](_0x24563b){const _0x236b66=_0x4a7abe;this[_0x236b66(0x303)](_0x24563b[_0x236b66(0x24d)]);}[_0x4a7abe(0x30f)](_0x49dd52){const _0x1639eb=_0x4a7abe;localStorage[_0x1639eb(0x344)](ye,JSON['stringify'](_0x49dd52));}['_scheduleHeartbeat'](){const _0x49acc1=_0x4a7abe;this['_heartbeatTimer']=window[_0x49acc1(0x2eb)](()=>{const _0x26c37e=_0x49acc1;this[_0x26c37e(0x30f)]({'type':0x2,'memberID':this[_0x26c37e(0x33f)]});},we);}[_0x4a7abe(0x430)](_0x183253){const _0x471e2a=_0x4a7abe;return this['_unitStatus'][_0x471e2a(0x439)](_0x183253)||this[_0x471e2a(0x294)][_0x471e2a(0x205)](_0x183253,new I[(_0x471e2a(0x242))](u['UnitStatus'][_0x471e2a(0x473)])),this[_0x471e2a(0x294)][_0x471e2a(0x1c8)](_0x183253);}}exports[_0x4a7abe(0x2ef)]=Oe,exports[_0x4a7abe(0x45e)]=je,exports[_0x4a7abe(0x352)]=fs,exports[_0x4a7abe(0x2d2)]=ke;
|