@univerjs-pro/collaboration-client-ui 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/plugin.d.ts +2 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -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 +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xa8fcb3=_0x2702;(function(_0x4e79cc,_0x65186e){const _0x3138d8=_0x2702,_0x5a023e=_0x4e79cc();while(!![]){try{const _0x1b2715=-parseInt(_0x3138d8(0x217))/0x1*(-parseInt(_0x3138d8(0x1a0))/0x2)+parseInt(_0x3138d8(0x1e4))/0x3*(-parseInt(_0x3138d8(0x183))/0x4)+parseInt(_0x3138d8(0x269))/0x5*(parseInt(_0x3138d8(0x86))/0x6)+-parseInt(_0x3138d8(0x318))/0x7*(parseInt(_0x3138d8(0x344))/0x8)+parseInt(_0x3138d8(0x2c6))/0x9*(parseInt(_0x3138d8(0x14f))/0xa)+-parseInt(_0x3138d8(0x156))/0xb+-parseInt(_0x3138d8(0x2cf))/0xc;if(_0x1b2715===_0x65186e)break;else _0x5a023e['push'](_0x5a023e['shift']());}catch(_0x1be374){_0x5a023e['push'](_0x5a023e['shift']());}}}(_0xd5ca,0x84267));var Xe=Object[_0xa8fcb3(0x2e1)],Ke=(_0xc307,_0x24b676,_0x4c5d97)=>_0x24b676 in _0xc307?Xe(_0xc307,_0x24b676,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c5d97}):_0xc307[_0x24b676]=_0x4c5d97,_=(_0x848e51,_0x3a3526,_0x1dcd87)=>Ke(_0x848e51,typeof _0x3a3526!=_0xa8fcb3(0x99)?_0x3a3526+'':_0x3a3526,_0x1dcd87);Object[_0xa8fcb3(0x2e1)](exports,Symbol[_0xa8fcb3(0x260)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),T=require('@univerjs/engine-render'),x=require('@univerjs/network'),C=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x2f9ecf,..._0x2567c4}){const _0x339cc1=_0xa8fcb3,{icon:_0x1fcd2b,id:_0x6dba2b,className:_0x227926,extend:_0x5d4966,..._0x2b9808}=_0x2567c4,_0x275908=(_0x339cc1(0x265)+_0x6dba2b+'\x20'+(_0x227926||''))[_0x339cc1(0x2cb)](),_0x57a37d=A[_0x339cc1(0xed)]('_'+Qe());return $e(_0x1fcd2b,''+_0x6dba2b,{'defIds':_0x1fcd2b[_0x339cc1(0x1d4)],'idSuffix':_0x57a37d['current']},{'ref':_0x2f9ecf,'className':_0x275908,..._0x2b9808},_0x5d4966);}function $e(_0x1e2160,_0x271119,_0x182e40,_0x2332d0,_0x52171e){const _0x9b5a1f=_0xa8fcb3;return A[_0x9b5a1f(0xfc)](_0x1e2160[_0x9b5a1f(0x21e)],{'key':_0x271119,...Je(_0x1e2160,_0x182e40,_0x52171e),..._0x2332d0},(Ze(_0x1e2160,_0x182e40)[_0x9b5a1f(0x125)]||[])[_0x9b5a1f(0x141)]((_0x34d135,_0x11a6a4)=>$e(_0x34d135,_0x271119+'-'+_0x1e2160[_0x9b5a1f(0x21e)]+'-'+_0x11a6a4,_0x182e40,void 0x0,_0x52171e)));}function Je(_0x3d796d,_0x29b9a2,_0x18caa4){const _0x4c3af7=_0xa8fcb3,_0x315ba7={..._0x3d796d[_0x4c3af7(0x245)]};_0x18caa4!=null&&_0x18caa4[_0x4c3af7(0x263)]&&_0x315ba7[_0x4c3af7(0x204)]===_0x4c3af7(0x263)&&(_0x315ba7[_0x4c3af7(0x204)]=_0x18caa4[_0x4c3af7(0x263)]),_0x3d796d[_0x4c3af7(0x21e)]===_0x4c3af7(0xe5)&&_0x315ba7['id']&&(_0x315ba7['id']=_0x315ba7['id']+_0x29b9a2[_0x4c3af7(0x181)]),Object[_0x4c3af7(0xc9)](_0x315ba7)[_0x4c3af7(0x2b4)](([_0x2e01dc,_0x440aa6])=>{const _0x2d8c79=_0x4c3af7;_0x2e01dc===_0x2d8c79(0xe5)&&typeof _0x440aa6==_0x2d8c79(0x27e)&&(_0x315ba7[_0x2e01dc]=_0x440aa6[_0x2d8c79(0x13a)](/url\(#(.*)\)/,'url(#$1'+_0x29b9a2[_0x2d8c79(0x181)]+')'));});const {defIds:_0x304c90}=_0x29b9a2;return!_0x304c90||_0x304c90[_0x4c3af7(0x250)]===0x0||(_0x3d796d[_0x4c3af7(0x21e)]===_0x4c3af7(0xec)&&_0x315ba7[_0x4c3af7(0x237)]&&(_0x315ba7[_0x4c3af7(0x237)]=_0x315ba7['xlink:href']+_0x29b9a2[_0x4c3af7(0x181)]),Object[_0x4c3af7(0xc9)](_0x315ba7)[_0x4c3af7(0x2b4)](([_0x5f1b02,_0xbf868b])=>{const _0x2d92ef=_0x4c3af7;typeof _0xbf868b=='string'&&(_0x315ba7[_0x5f1b02]=_0xbf868b['replace'](/url\(#(.*)\)/,_0x2d92ef(0x22d)+_0x29b9a2[_0x2d92ef(0x181)]+')'));})),_0x315ba7;}function Ze(_0x42b74c,_0x284777){const _0x38b52d=_0xa8fcb3;var _0x3f6664;const {defIds:_0x3768fb}=_0x284777;return!_0x3768fb||_0x3768fb[_0x38b52d(0x250)]===0x0?_0x42b74c:_0x42b74c['tag']==='defs'&&((_0x3f6664=_0x42b74c[_0x38b52d(0x125)])!=null&&_0x3f6664[_0x38b52d(0x250)])?{..._0x42b74c,'children':_0x42b74c[_0x38b52d(0x125)][_0x38b52d(0x141)](_0x150be8=>typeof _0x150be8['attrs']['id']==_0x38b52d(0x27e)&&_0x3768fb&&_0x3768fb[_0x38b52d(0x27b)](_0x150be8['attrs']['id'])?{..._0x150be8,'attrs':{..._0x150be8[_0x38b52d(0x245)],'id':_0x150be8['attrs']['id']+_0x284777[_0x38b52d(0x181)]}}:_0x150be8)}:_0x42b74c;}function Qe(){const _0x3e1571=_0xa8fcb3;return Math[_0x3e1571(0x323)]()['toString'](0x24)[_0x3e1571(0x2c3)](0x2,0x8);}pe[_0xa8fcb3(0x304)]='UniverIcon';const et={'tag':_0xa8fcb3(0x2f7),'attrs':{'xmlns':_0xa8fcb3(0x2aa),'fill':'none','viewBox':_0xa8fcb3(0x1bb),'width':_0xa8fcb3(0x127),'height':_0xa8fcb3(0x127)},'children':[{'tag':'g','attrs':{'clipPath':_0xa8fcb3(0x25b)},'children':[{'tag':_0xa8fcb3(0x1b6),'attrs':{'stroke':_0xa8fcb3(0x1b2),'d':_0xa8fcb3(0xd7),'strokeLinecap':_0xa8fcb3(0x231),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xa8fcb3(0xc4)},'children':[{'tag':_0xa8fcb3(0x1b6),'attrs':{'fill':'white','d':_0xa8fcb3(0x278)}}]}]}],'defIds':[_0xa8fcb3(0xc4)]},xe=A['forwardRef'](function(_0xdceb0f,_0xccc22d){const _0x4cef0e=_0xa8fcb3;return A[_0x4cef0e(0xfc)](pe,Object[_0x4cef0e(0x30b)]({},_0xdceb0f,{'id':'off-line-icon','ref':_0xccc22d,'icon':et}));});xe[_0xa8fcb3(0x304)]=_0xa8fcb3(0x30c);const tt={'tag':'svg','attrs':{'xmlns':_0xa8fcb3(0x2aa),'fill':_0xa8fcb3(0x1da),'viewBox':_0xa8fcb3(0xb4),'width':_0xa8fcb3(0x127),'height':_0xa8fcb3(0x127)},'children':[{'tag':'g','attrs':{'clipPath':_0xa8fcb3(0x7f)},'children':[{'tag':_0xa8fcb3(0x1b6),'attrs':{'stroke':_0xa8fcb3(0x1b2),'d':_0xa8fcb3(0x1d3),'strokeLinecap':_0xa8fcb3(0x231),'strokeLinejoin':_0xa8fcb3(0x231),'strokeWidth':1.2}}]},{'tag':_0xa8fcb3(0xf1),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xa8fcb3(0x201)},'children':[{'tag':_0xa8fcb3(0x1b6),'attrs':{'fill':_0xa8fcb3(0x7b),'d':'M0\x200H16V16H0z','transform':_0xa8fcb3(0xfd)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},Be=A[_0xa8fcb3(0x116)](function(_0x224e5d,_0x26917d){const _0x1a63ee=_0xa8fcb3;return A[_0x1a63ee(0xfc)](pe,Object[_0x1a63ee(0x30b)]({},_0x224e5d,{'id':'on-line-icon','ref':_0x26917d,'icon':tt}));});Be[_0xa8fcb3(0x304)]='OnLineIcon';function it(_0x5ca0a3){const _0x4ece94=_0xa8fcb3;switch(_0x5ca0a3){case u[_0x4ece94(0x2db)][_0x4ece94(0x117)]:return _0x4ece94(0xdd);case u['CollaborationStatus']['CONFLICT']:return _0x4ece94(0x146);case u[_0x4ece94(0x2db)][_0x4ece94(0x13f)]:return _0x4ece94(0x2dc);case u[_0x4ece94(0x2db)]['NOT_COLLAB']:return _0x4ece94(0x296);case u[_0x4ece94(0x2db)][_0x4ece94(0xcd)]:case u['CollaborationStatus'][_0x4ece94(0x104)]:return _0x4ece94(0x275);case u[_0x4ece94(0x2db)]['SYNCED']:case u['CollaborationStatus'][_0x4ece94(0x1d6)]:return'collabStatus.synced';}}function st(_0x8d3486){const _0xd7157f=_0xa8fcb3,{status$:_0x27e730}=_0x8d3486,_0x23a18e=O[_0xd7157f(0xd8)](_0x27e730,u['CollaborationStatus'][_0xd7157f(0x1c3)]),_0x5014e8=O[_0xd7157f(0x331)](a[_0xd7157f(0x1b3)]),_0x451633=O[_0xd7157f(0x331)](u[_0xd7157f(0x9b)]),_0x20e8e7=_0x23a18e!==u[_0xd7157f(0x2db)]['OFFLINE'],_0x1c66e1=_0x5014e8['t'](it(_0x23a18e)),_0x47f812=_0x20e8e7?M[_0xd7157f(0x30e)](Be,{}):M['jsx'](xe,{}),_0x50713=A[_0xd7157f(0x280)](()=>{_0x20e8e7||_0x451633['reconnect']();},[_0x20e8e7,_0x451633]);function _0x30ffc8(){const _0x125fb6=_0xd7157f;return M[_0x125fb6(0x321)](_0x125fb6(0x13e),{'className':_0x125fb6(0x169),'onClick':_0x50713,'children':[M[_0x125fb6(0x30e)](_0x125fb6(0x13e),{'className':p[_0x125fb6(0x9e)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x20e8e7,'univer-text-red-500':!_0x20e8e7}),'children':_0x47f812}),M['jsx'](_0x125fb6(0x13e),{'className':_0x125fb6(0x158),'children':_0x1c66e1})]});}return _0x20e8e7?_0x30ffc8():M[_0xd7157f(0x30e)](p[_0xd7157f(0x1e6)],{'title':_0x5014e8['t'](_0xd7157f(0xeb)),'children':_0x30ffc8()});}var nt=Object[_0xa8fcb3(0x2c0)],rt=(_0x38089b,_0x34adb3,_0x45622d,_0xb112dc)=>{const _0x2293c5=_0xa8fcb3;for(var _0x1750f1=_0xb112dc>0x1?void 0x0:_0xb112dc?nt(_0x34adb3,_0x45622d):_0x34adb3,_0x337830=_0x38089b[_0x2293c5(0x250)]-0x1,_0x30bcdf;_0x337830>=0x0;_0x337830--)(_0x30bcdf=_0x38089b[_0x337830])&&(_0x1750f1=_0x30bcdf(_0x1750f1)||_0x1750f1);return _0x1750f1;},K=(_0x22e8cf,_0x5c61bb)=>(_0x56c287,_0x26fcea)=>_0x5c61bb(_0x56c287,_0x26fcea,_0x22e8cf);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x57c763,_0x457a62,_0x96dd34,_0x354973){const _0x36c291=_0xa8fcb3;super(),_(this,_0x36c291(0x299),new I[(_0x36c291(0x87))](u['CollaborationStatus'][_0x36c291(0x1c3)])),(this[_0x36c291(0x140)]=_0x57c763,this[_0x36c291(0x137)]=_0x457a62,this[_0x36c291(0x30d)]=_0x96dd34,this[_0x36c291(0x15f)]=_0x354973,this[_0x36c291(0x102)](),this[_0x36c291(0x22e)]());}[_0xa8fcb3(0x22e)](){const _0x44422b=_0xa8fcb3;this[_0x44422b(0x111)](this['_univerInstanceService'][_0x44422b(0x10c)][_0x44422b(0x1a1)](I[_0x44422b(0x14c)](()=>{const _0x235080=_0x44422b,_0x56c7f5=this[_0x235080(0x140)]['getFocusedUnit']();return _0x56c7f5?this['_collaborationController'][_0x235080(0x1fe)](_0x56c7f5[_0x235080(0x1b5)]()):I['of'](null);}),I['switchMap'](_0x27dc61=>_0x27dc61?_0x27dc61[_0x44422b(0x234)]:I['of'](u[_0x44422b(0x2db)]['NOT_COLLAB'])))['subscribe'](_0x144562=>{const _0x5438f0=_0x44422b;this['_status$'][_0x5438f0(0x1c9)](_0x144562);}));}['_initStatusComponent'](){const _0x4824f8=_0xa8fcb3;this['disposeWithMe'](this[_0x4824f8(0x15f)][_0x4824f8(0x20e)](O['BuiltInUIPart'][_0x4824f8(0x213)],()=>O['connectInjector'](ot({'status$':this[_0x4824f8(0x299)][_0x4824f8(0x167)]()}),this[_0x4824f8(0x137)])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a['Inject'](a[_0xa8fcb3(0x1c7)])),K(0x2,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x1f8)])),K(0x3,O[_0xa8fcb3(0x26e)])],exports[_0xa8fcb3(0x2f3)]);function ot(_0xa33694){const {status$:_0x4b85a0}=_0xa33694;return function(){const _0x3ccea5=_0x2702;return M[_0x3ccea5(0x30e)](st,{'status$':_0x4b85a0});};}const Oe=a[_0xa8fcb3(0x33e)](_0xa8fcb3(0x266));var at=Object[_0xa8fcb3(0x2c0)],ct=(_0x2c7744,_0x173c92,_0x409794,_0x5d65aa)=>{const _0x36f250=_0xa8fcb3;for(var _0x1393b2=_0x5d65aa>0x1?void 0x0:_0x5d65aa?at(_0x173c92,_0x409794):_0x173c92,_0x326fcf=_0x2c7744[_0x36f250(0x250)]-0x1,_0x46293b;_0x326fcf>=0x0;_0x326fcf--)(_0x46293b=_0x2c7744[_0x326fcf])&&(_0x1393b2=_0x46293b(_0x1393b2)||_0x1393b2);return _0x1393b2;},Y=(_0x92c023,_0x4ab120)=>(_0x2d592e,_0xb4aecd)=>_0x4ab120(_0x2d592e,_0xb4aecd,_0x92c023);exports[_0xa8fcb3(0x254)]=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x4164e9,_0x41d30f,_0x345212,_0x155b47,_0x5a38c3){const _0x428c43=_0xa8fcb3;super(),this[_0x428c43(0x19d)]=_0x4164e9,this[_0x428c43(0x25a)]=_0x41d30f,this[_0x428c43(0x72)]=_0x345212,this[_0x428c43(0xc2)]=_0x155b47,_0x5a38c3?_0x5a38c3==null||_0x5a38c3[_0x428c43(0x319)]()['then'](()=>this[_0x428c43(0x24a)]()):(this[_0x428c43(0x25a)][_0x428c43(0x18e)](_0x428c43(0xcb),_0x428c43(0x6c)),this[_0x428c43(0x24a)]());}async['_init'](){const _0x3eff7f=_0xa8fcb3,_0x33df73=this['_urlService'][_0x3eff7f(0x287)](_0x3eff7f(0x2ff)),_0x2841e6=this[_0x3eff7f(0x19d)]['getParam'](_0x3eff7f(0x289)),_0x13ecae=this['_urlService'][_0x3eff7f(0x287)]('subunit');if(!_0x33df73||!_0x2841e6){this['_logService'][_0x3eff7f(0x18e)]('[CollaborationDataLoaderController]',_0x3eff7f(0x152));return;}const _0x4f9b24=await this[_0x3eff7f(0xc2)][_0x3eff7f(0x173)](_0x33df73,Number(_0x2841e6),_0x13ecae);_0x4f9b24&&_0x4f9b24 instanceof a[_0x3eff7f(0xc7)]&&this[_0x3eff7f(0x31d)](_0x4f9b24);}async[_0xa8fcb3(0x31d)](_0x3dd56a){const _0x4793f8=_0xa8fcb3;await this['_updateSubUnitFromURLParams'](_0x3dd56a),_0x3dd56a[_0x4793f8(0x112)]['pipe'](I[_0x4793f8(0x19e)](this[_0x4793f8(0x358)]))['subscribe'](_0x4bbe5c=>{const _0x2ae409=_0x4793f8;_0x4bbe5c&&this[_0x2ae409(0x2f1)](_0x4bbe5c);}),this[_0x4793f8(0x19d)][_0x4793f8(0x27c)][_0x4793f8(0x1a1)](I[_0x4793f8(0x19e)](this[_0x4793f8(0x358)]))[_0x4793f8(0x185)](()=>this[_0x4793f8(0x182)](_0x3dd56a));}[_0xa8fcb3(0x2f1)](_0x210589,_0x486c6a=!0x1){const _0x453f54=_0xa8fcb3,_0x49b903=this[_0x453f54(0x19d)]['getParam'](_0x453f54(0x1c2));_0x210589['getSheetId']()!==_0x49b903&&this['_urlService']['setParam']('subunit',_0x210589[_0x453f54(0x288)](),_0x486c6a);}async[_0xa8fcb3(0x182)](_0x4fa575){const _0x462d39=_0xa8fcb3;var _0x514736;const _0x4f3982=this[_0x462d39(0x19d)][_0x462d39(0x287)](_0x462d39(0x1c2));if(!_0x4f3982||!_0x4fa575[_0x462d39(0x1ab)](_0x4f3982)){const _0x11ddd8=_0x4fa575[_0x462d39(0x138)]()[0x0],_0x2d2cb5=_0x4fa575[_0x462d39(0x1ab)](_0x11ddd8);if(!_0x2d2cb5)return;this[_0x462d39(0x2f1)](_0x2d2cb5,!0x0),await this[_0x462d39(0x72)]['executeCommand'](g[_0x462d39(0x2f2)]['id'],{'unitId':_0x4fa575[_0x462d39(0x1b5)](),'subUnitId':_0x11ddd8});return;}((_0x514736=_0x4fa575[_0x462d39(0x1f7)]())==null?void 0x0:_0x514736[_0x462d39(0x288)]())!==_0x4f3982&&await this[_0x462d39(0x72)][_0x462d39(0xa8)](g[_0x462d39(0x2f2)]['id'],{'unitId':_0x4fa575[_0x462d39(0x1b5)](),'subUnitId':_0x4f3982});}},exports[_0xa8fcb3(0x254)]=ct([Y(0x0,Oe),Y(0x1,a[_0xa8fcb3(0x284)]),Y(0x2,a[_0xa8fcb3(0x233)]),Y(0x3,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x11d)])),Y(0x4,a[_0xa8fcb3(0x1d0)](qe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var lt=Object[_0xa8fcb3(0x2c0)],_t=(_0x32ca85,_0x202c27,_0x2fc32f,_0x5419bd)=>{const _0x3e85b2=_0xa8fcb3;for(var _0x28f5fa=_0x5419bd>0x1?void 0x0:_0x5419bd?lt(_0x202c27,_0x2fc32f):_0x202c27,_0x4a25c9=_0x32ca85[_0x3e85b2(0x250)]-0x1,_0x345709;_0x4a25c9>=0x0;_0x4a25c9--)(_0x345709=_0x32ca85[_0x4a25c9])&&(_0x28f5fa=_0x345709(_0x28f5fa)||_0x28f5fa);return _0x28f5fa;},De=(_0x35bd5f,_0x4d3ca3)=>(_0x20244b,_0x2038bb)=>_0x4d3ca3(_0x20244b,_0x2038bb,_0x35bd5f);let me=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x2d8479,_0x1ab442){const _0x561aa8=_0xa8fcb3;super(),this[_0x561aa8(0x2d7)]=_0x2d8479,this[_0x561aa8(0x2ae)]=_0x1ab442,this[_0x561aa8(0x24a)]();}[_0xa8fcb3(0x24a)](){const _0x7e33bb=_0xa8fcb3,_0x343e92=this;this[_0x7e33bb(0x111)](this[_0x7e33bb(0x2d7)]['addClipboardHook']({'onBeforePasteImage':async _0x3c632c=>{const _0x505018=_0x7e33bb,_0x294589=await _0x343e92[_0x505018(0x2ae)]['saveImage'](_0x3c632c);return _0x294589?{'source':_0x294589[_0x505018(0xbe)],'imageSourceType':_0x294589[_0x505018(0x332)]}:null;}}));}};me=_t([De(0x0,C[_0xa8fcb3(0x1ee)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0xa8fcb3(0x310),_0xa8fcb3(0x2d1),_0xa8fcb3(0x1f9),_0xa8fcb3(0x28e),'blue.400',_0xa8fcb3(0x2d4)];class be extends a[_0xa8fcb3(0x1ca)]{constructor(){const _0x1354a0=_0xa8fcb3;super(...arguments),_(this,_0x1354a0(0x21d),new Map()),_(this,_0x1354a0(0x301),0x0);}['assignAColorForMemberID'](_0x478b4e){const _0x4490cb=_0xa8fcb3;if(this[_0x4490cb(0x21d)][_0x4490cb(0x339)](_0x478b4e))return this[_0x4490cb(0x21d)]['get'](_0x478b4e);const _0x159e80=Ne[this[_0x4490cb(0x301)]];return this[_0x4490cb(0x301)]=(this[_0x4490cb(0x301)]+0x1)%Ne['length'],this[_0x4490cb(0x21d)][_0x4490cb(0x2a9)](_0x478b4e,_0x159e80),_0x159e80;}}function ke(_0x5d1236){const _0x1cc8a0=_0xa8fcb3;let _0x4bfb71='';for(const _0x517178 of _0x5d1236){const {startOffset:_0x4fb722,endOffset:_0x1c3e01,isActive:_0x29b5ba,rangeType:_0x3b4bef,segmentId:_0x1b413a,segmentPage:_0x16e84a}=_0x517178;_0x4bfb71[_0x1cc8a0(0x250)]&&(_0x4bfb71+=','),_0x4bfb71+=_0x4fb722+':'+_0x1c3e01+':'+(_0x29b5ba?'1':'0')+':'+_0x3b4bef+':'+_0x1b413a+':'+_0x16e84a;}return _0x4bfb71;}function ht(_0xcf3a06){const _0x3ace0b=_0xa8fcb3,_0x59686b=_0xcf3a06[_0x3ace0b(0x357)](','),_0x46e960=[];for(const _0x1a02d4 of _0x59686b){const [_0x5e3632,_0x426868,_0x44447c,_0x359ee4,_0xbaa671,_0x1bf278]=_0x1a02d4['split'](':');_0x46e960[_0x3ace0b(0x336)]({'startOffset':Number(_0x5e3632),'endOffset':Number(_0x426868),'collapsed':_0x5e3632===_0x426868,'isActive':_0x44447c==='1','rangeType':_0x359ee4===a[_0x3ace0b(0x33a)][_0x3ace0b(0xd0)]?a[_0x3ace0b(0x33a)][_0x3ace0b(0xd0)]:a[_0x3ace0b(0x33a)][_0x3ace0b(0x270)],'segmentId':typeof _0xbaa671==_0x3ace0b(0x27e)?String(_0xbaa671):'','segmentPage':Number(_0x1bf278!=null?_0x1bf278:-0x1)});}return _0x46e960[_0x3ace0b(0xe6)](_0x2f31e1=>_0x2f31e1[_0x3ace0b(0x192)])||(_0x46e960[0x0]['isActive']=!0x0),_0x46e960;}class Re extends a[_0xa8fcb3(0x1e1)]{constructor(){const _0x5593bc=_0xa8fcb3;super(...arguments),_(this,'_collabCursorState$',new I[(_0x5593bc(0x87))](null)),_(this,_0x5593bc(0x29c),this[_0x5593bc(0x1ac)][_0x5593bc(0x167)]());}[_0xa8fcb3(0x98)](_0x5b4ab5){const _0x4e0b8d=_0xa8fcb3,{unitID:_0x593ad4,memberID:_0x3dc235,textRanges:_0x4c468c}=_0x5b4ab5,_0x1ec401=ke(_0x4c468c);if(_0x1ec401==='')return;const _0x531afe={'unitID':_0x593ad4,'memberID':_0x3dc235,'selection':_0x1ec401};this[_0x4e0b8d(0x1ac)]['next'](_0x531afe);}}var ut=Object[_0xa8fcb3(0x2c0)],It=(_0x5d1f59,_0x9be3be,_0x22d328,_0x5c7fc2)=>{for(var _0x3f3e68=_0x5c7fc2>0x1?void 0x0:_0x5c7fc2?ut(_0x9be3be,_0x22d328):_0x9be3be,_0x300cdd=_0x5d1f59['length']-0x1,_0x1bc7de;_0x300cdd>=0x0;_0x300cdd--)(_0x1bc7de=_0x5d1f59[_0x300cdd])&&(_0x3f3e68=_0x1bc7de(_0x3f3e68)||_0x3f3e68);return _0x3f3e68;},U=(_0x59bfde,_0x486e28)=>(_0x10bd2a,_0x48c1b6)=>_0x486e28(_0x10bd2a,_0x48c1b6,_0x59bfde);const dt=0x12c,St=0x64;let ge=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x28a00,_0x1075ba,_0x20f2a2,_0x25c263,_0x579e58,_0x11b3cb,_0x5cf5e0,_0x370e4e,_0xb88bb){const _0x1e24b0=_0xa8fcb3;super(),_(this,'_online',!0x1),_(this,_0x1e24b0(0x24a),!0x1),_(this,_0x1e24b0(0x17e),new I[(_0x1e24b0(0x87))](new Map())),_(this,_0x1e24b0(0x6b),this['_cursorInfo$']['asObservable']()),_(this,_0x1e24b0(0x7d),new I[(_0x1e24b0(0x87))]([])),_(this,_0x1e24b0(0x274),this[_0x1e24b0(0x7d)]['pipe'](I[_0x1e24b0(0x151)](dt))),_(this,'_updateLocalCursor',a[_0x1e24b0(0x1fb)](_0x260493=>{const _0x5897f7=_0x1e24b0,_0x39439e={'eventID':v[_0x5897f7(0x161)][_0x5897f7(0x206)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x5897f7(0x135)](),'selection':ke(_0x260493)}};this[_0x5897f7(0x24b)][_0x5897f7(0x1bd)](_0x39439e,this[_0x5897f7(0x1a9)]);},St)),(this[_0x1e24b0(0x1a9)]=_0x28a00,this[_0x1e24b0(0x24b)]=_0x1075ba,this['_injector']=_0x20f2a2,this['_colorAssignService']=_0x25c263,this[_0x1e24b0(0x130)]=_0x579e58,this['_syncEditingCollabCursorService']=_0x11b3cb,this[_0x1e24b0(0x238)]=_0x5cf5e0,this[_0x1e24b0(0x140)]=_0x370e4e,this['_commandService']=_0xb88bb);}get[_0xa8fcb3(0xde)](){const _0x303fa1=_0xa8fcb3;return this[_0x303fa1(0x17e)][_0x303fa1(0x2ec)]();}get[_0xa8fcb3(0x212)](){const _0x311ee0=_0xa8fcb3;return this[_0x311ee0(0x7d)]['getValue']();}[_0xa8fcb3(0x229)](){const _0x2c26f4=_0xa8fcb3;super['dispose'](),this[_0x2c26f4(0x17e)][_0x2c26f4(0x1c9)](new Map()),this['_cursorInfo$']['complete'](),this[_0x2c26f4(0x7d)][_0x2c26f4(0x1c9)]([]),this[_0x2c26f4(0x7d)][_0x2c26f4(0x35d)]();}[_0xa8fcb3(0x172)](){const _0x288b56=_0xa8fcb3;this[_0x288b56(0x24a)]||(this[_0x288b56(0x24a)]=!0x0,this[_0x288b56(0x24b)][_0x288b56(0x30f)][_0x288b56(0x1a1)](I[_0x288b56(0x19e)](this['dispose$']))[_0x288b56(0x185)](_0x31f566=>{const _0x4ea322=_0x288b56;_0x31f566===u['SessionStatus'][_0x4ea322(0x1e9)]?this['_toggleOnline']():this[_0x4ea322(0x292)]();}),this[_0x288b56(0x24b)][_0x288b56(0x187)]['pipe'](I[_0x288b56(0x19e)](this[_0x288b56(0x358)]))[_0x288b56(0x185)](_0xa65e69=>{const _0x4e13a6=_0x288b56,_0x3390b8=_0xa65e69[_0x4e13a6(0x306)];_0x3390b8===v[_0x4e13a6(0x161)][_0x4e13a6(0x206)]&&this[_0x4e13a6(0xfe)](_0xa65e69),_0x3390b8===v[_0x4e13a6(0x161)][_0x4e13a6(0x2e9)]&&this['_onCursorDelete'](_0xa65e69);}),this[_0x288b56(0x111)](this['_commandService'][_0x288b56(0xc6)](_0x16d59a=>{const _0x5c128a=_0x288b56,_0x1e6a54=_0x16d59a[_0x5c128a(0x215)];_0x1e6a54!=null&&this['_online']&&_0x16d59a['id']===V[_0x5c128a(0x73)]['id']&&_0x1e6a54[_0x5c128a(0x2b0)]===this[_0x5c128a(0x1a9)]&&_0x1e6a54[_0x5c128a(0xa1)]===!0x1&&_0x1e6a54['ranges']['length']>0x0&&this['_updateLocalCursor'](_0x1e6a54[_0x5c128a(0x194)]);})),this[_0x288b56(0x1b0)]['collabCursorState$'][_0x288b56(0x1a1)](I['takeUntil'](this[_0x288b56(0x358)]))[_0x288b56(0x185)](_0x5d328c=>{const _0x5d2ef9=_0x288b56;if((_0x5d328c==null?void 0x0:_0x5d328c['unitID'])!==this[_0x5d2ef9(0x1a9)])return;const _0x5d0dc5={'eventID':v[_0x5d2ef9(0x161)]['UPDATE_CURSOR'],'data':_0x5d328c};this['_onCursorUpdate'](_0x5d0dc5);}),this[_0x288b56(0x111)](this[_0x288b56(0x72)][_0x288b56(0xc6)](_0x50b3f7=>{const _0x52c8e1=_0x288b56;if(_0x50b3f7[_0x52c8e1(0x215)]==null)return;const _0x196f5b=_0x50b3f7[_0x52c8e1(0x215)];if(_0x50b3f7['id']!==V[_0x52c8e1(0x2e4)]['id']||_0x196f5b[_0x52c8e1(0x2b0)]!==this[_0x52c8e1(0x1a9)])return;const _0x36634c={'id':_0x52c8e1(0x218),'params':_0x196f5b},_0x3fe0ab=this['cursorInfo'];for(const [_0x315fb1,_0x66e5bb]of _0x3fe0ab){const _0x5107fd={'id':_0x52c8e1(0x218),'params':{'unitId':this[_0x52c8e1(0x1a9)],'actions':null,'textRanges':_0x66e5bb[_0x52c8e1(0x194)]}},_0x565804=this['_transformService'][_0x52c8e1(0x2ca)](_0x36634c,_0x5107fd,!0x1);if(v['isTransformMutationFailure'](_0x565804))throw _0x565804[_0x52c8e1(0x123)];_0x3fe0ab['set'](_0x315fb1,{..._0x66e5bb,'ranges':_0x565804[_0x52c8e1(0x246)][_0x52c8e1(0x215)]['textRanges']});}queueMicrotask(()=>{const _0xa15a7e=_0x52c8e1;this['_cursorInfo$'][_0xa15a7e(0x1c9)](_0x3fe0ab);});})));}[_0xa8fcb3(0xfe)](_0xcd4304){const _0x14c5f2=_0xa8fcb3;var _0x32a248,_0x5da154;const {memberID:_0x94dab5,selection:_0x317971}=_0xcd4304[_0x14c5f2(0x28f)],_0x4d61ba=ht(_0x317971),_0x4e6a27=(_0x5da154=(_0x32a248=this[_0x14c5f2(0x130)]['getMember'](this['unitID'],_0x94dab5))==null?void 0x0:_0x32a248[_0x14c5f2(0x10b)])!=null?_0x5da154:'Unknown\x20user',_0x5e72e7={'color':this[_0x14c5f2(0x256)][_0x14c5f2(0x216)](_0x94dab5),'name':_0x4e6a27,'ranges':_0x4d61ba},_0x28d339=this[_0x14c5f2(0xde)];_0x28d339['set'](_0x94dab5,_0x5e72e7),this[_0x14c5f2(0x17e)][_0x14c5f2(0x1c9)](_0x28d339);}[_0xa8fcb3(0x1e3)](_0x402e7d){const _0x3e676b=_0xa8fcb3,{memberID:_0x665e69}=_0x402e7d[_0x3e676b(0x28f)],_0x3ac121=this['cursorInfo'];_0x3ac121[_0x3e676b(0x295)](_0x665e69),this[_0x3e676b(0x17e)][_0x3e676b(0x1c9)](_0x3ac121);}['_toggleOnline'](){const _0x547646=_0xa8fcb3;var _0x5a6747;if(this[_0x547646(0x1bc)]=!0x0,((_0x5a6747=this[_0x547646(0x140)][_0x547646(0x20d)]())==null?void 0x0:_0x5a6747[_0x547646(0x1b5)]())!==this['unitID'])return;const _0xb0f07f=this[_0x547646(0x137)][_0x547646(0x27d)](V[_0x547646(0x159)])['getDocRanges']();Array['isArray'](_0xb0f07f)&&_0xb0f07f[_0x547646(0x250)]>0x0&&this[_0x547646(0xf0)](_0xb0f07f);}[_0xa8fcb3(0x292)](){const _0x22aabf=_0xa8fcb3;this[_0x22aabf(0x1bc)]=!0x1;}};ge=It([U(0x2,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),U(0x3,a['Inject'](be)),U(0x4,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0xa3)])),U(0x5,a[_0xa8fcb3(0x271)](Re)),U(0x6,v[_0xa8fcb3(0x227)]),U(0x7,a['IUniverInstanceService']),U(0x8,a['ICommandService'])],ge);var ft=Object[_0xa8fcb3(0x2c0)],mt=(_0x34b762,_0x7998ea,_0x2fac13,_0x18d5aa)=>{const _0x192614=_0xa8fcb3;for(var _0x495f66=_0x18d5aa>0x1?void 0x0:_0x18d5aa?ft(_0x7998ea,_0x2fac13):_0x7998ea,_0x4c1766=_0x34b762[_0x192614(0x250)]-0x1,_0xab69f8;_0x4c1766>=0x0;_0x4c1766--)(_0xab69f8=_0x34b762[_0x4c1766])&&(_0x495f66=_0xab69f8(_0x495f66)||_0x495f66);return _0x495f66;},w=(_0x2ee061,_0x7b18ac)=>(_0x4f0f25,_0x40bde1)=>_0x7b18ac(_0x4f0f25,_0x40bde1,_0x2ee061);const gt=0x12c,vt=0x64,Et=()=>{let _0x5f024d=[],_0x5091cc=!0x1;return _0x1bd262=>{const _0x504b22=_0x2702;_0x5f024d[_0x504b22(0x336)](_0x1bd262),_0x5091cc||(_0x5091cc=!0x0,setTimeout(()=>{_0x5f024d['forEach'](_0x32c3c4=>_0x32c3c4()),_0x5f024d=[],_0x5091cc=!0x1;}));};};let ve=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x51d0df,_0x19e732,_0x5de490,_0x5a29bf,_0x4ef712,_0x4aba76,_0x4e9475,_0x16172d){const _0x1d56bd=_0xa8fcb3;super(),_(this,_0x1d56bd(0x1bc),!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x1d56bd(0x87))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x1d56bd(0x167)]()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x1d56bd(0x274),this['_roomMembers$'][_0x1d56bd(0x1a1)](I[_0x1d56bd(0x151)](gt))),_(this,'_updateLocalCursor',a[_0x1d56bd(0x1fb)]((_0x546526,_0xe8487)=>{const _0x1825fb=_0x1d56bd,_0x86ed1e={'eventID':v[_0x1825fb(0x161)][_0x1825fb(0x206)],'data':{'unitID':this[_0x1825fb(0x1a9)],'memberID':this[_0x1825fb(0x24b)][_0x1825fb(0x135)](),'selection':B[_0x1825fb(0xd4)](_0x546526,_0xe8487[_0x1825fb(0x34a)])}};this[_0x1825fb(0x24b)]['send'](_0x86ed1e,this[_0x1825fb(0x1a9)]);},vt)),(this['unitID']=_0x51d0df,this[_0x1d56bd(0x24b)]=_0x19e732,this[_0x1d56bd(0x137)]=_0x5de490,this[_0x1d56bd(0x256)]=_0x5a29bf,this[_0x1d56bd(0x130)]=_0x4ef712,this['_univerInstanceService']=_0x4aba76,this[_0x1d56bd(0x72)]=_0x4e9475,this[_0x1d56bd(0x1ef)]=_0x16172d);}get[_0xa8fcb3(0xde)](){const _0x36ed20=_0xa8fcb3;return this[_0x36ed20(0x17e)][_0x36ed20(0x2ec)]();}get['roomMembers'](){const _0x47a396=_0xa8fcb3;return this[_0x47a396(0x7d)][_0x47a396(0x2ec)]();}['dispose'](){const _0x5a7560=_0xa8fcb3;super['dispose'](),this[_0x5a7560(0x17e)]['next'](new Map()),this[_0x5a7560(0x17e)][_0x5a7560(0x35d)](),this[_0x5a7560(0x7d)][_0x5a7560(0x1c9)]([]),this[_0x5a7560(0x7d)][_0x5a7560(0x35d)]();}[_0xa8fcb3(0x172)](){const _0x3dbf8e=_0xa8fcb3;this[_0x3dbf8e(0x24a)]||(this[_0x3dbf8e(0x24a)]=!0x0,this['_session'][_0x3dbf8e(0x30f)][_0x3dbf8e(0x1a1)](I[_0x3dbf8e(0x19e)](this['dispose$']))[_0x3dbf8e(0x185)](_0x3df8d5=>{const _0x145ad2=_0x3dbf8e;_0x3df8d5===u[_0x145ad2(0xab)][_0x145ad2(0x1e9)]?this[_0x145ad2(0x20f)]():this[_0x145ad2(0x292)]();}),this[_0x3dbf8e(0x24b)][_0x3dbf8e(0x187)][_0x3dbf8e(0x1a1)](I[_0x3dbf8e(0x19e)](this[_0x3dbf8e(0x358)]))[_0x3dbf8e(0x185)](_0xaf2175=>{const _0x117bd3=_0x3dbf8e,_0x31805d=_0xaf2175['eventID'];_0x31805d===v[_0x117bd3(0x161)][_0x117bd3(0x206)]&&this[_0x117bd3(0xfe)](_0xaf2175),_0x31805d===v[_0x117bd3(0x161)][_0x117bd3(0x2e9)]&&this['_onCursorDelete'](_0xaf2175);}),this[_0x3dbf8e(0xd9)](),this[_0x3dbf8e(0x111)](this[_0x3dbf8e(0x72)][_0x3dbf8e(0xc6)](_0x26f51f=>{const _0x1c4741=_0x3dbf8e;if(this[_0x1c4741(0x1bc)]&&_0x26f51f['id']===g['SetSelectionsOperation']['id']&&_0x26f51f[_0x1c4741(0x215)][_0x1c4741(0x2b0)]===this['unitID']){const _0x41c18b=_0x26f51f[_0x1c4741(0x215)];this[_0x1c4741(0xf0)](_0x41c18b['subUnitId'],_0x41c18b['selections'][0x0]);}})));}[_0xa8fcb3(0xfe)](_0x3b1761){const _0x1dccbe=_0xa8fcb3;var _0x57f5f0,_0x3fd840;const {memberID:_0x4cb1fc,selection:_0x3bd2f1}=_0x3b1761[_0x1dccbe(0x28f)],{sheetName:_0x2d7fb7,range:_0x25fb6a}=B[_0x1dccbe(0x175)](_0x3bd2f1),_0x4dca06={'name':(_0x3fd840=(_0x57f5f0=this[_0x1dccbe(0x130)]['getMember'](this['unitID'],_0x4cb1fc))==null?void 0x0:_0x57f5f0['name'])!=null?_0x3fd840:_0x1dccbe(0x16d),'range':this[_0x1dccbe(0x17a)](_0x2d7fb7,_0x25fb6a),'sheetID':_0x2d7fb7,'color':this[_0x1dccbe(0x256)][_0x1dccbe(0x216)](_0x4cb1fc),'selection':_0x3bd2f1},_0x5592f6=this[_0x1dccbe(0xde)];_0x5592f6[_0x1dccbe(0x2a9)](_0x4cb1fc,_0x4dca06),this['_cursorInfo$']['next'](_0x5592f6);}['_onCursorDelete'](_0x4ea3af){const _0x4c3d27=_0xa8fcb3,{memberID:_0x1d3959}=_0x4ea3af[_0x4c3d27(0x28f)],_0x11febc=this[_0x4c3d27(0xde)];_0x11febc[_0x4c3d27(0x295)](_0x1d3959),this[_0x4c3d27(0x17e)][_0x4c3d27(0x1c9)](_0x11febc);}[_0xa8fcb3(0x17a)](_0x28a652,_0x58494b){const _0x352c4a=_0xa8fcb3;var _0x196cae,_0x5367c2;const _0x3bce9f=(_0x5367c2=(_0x196cae=this[_0x352c4a(0x140)][_0x352c4a(0x101)](this[_0x352c4a(0x1a9)]))==null?void 0x0:_0x196cae['getSheetBySheetId'](_0x28a652))==null?void 0x0:_0x5367c2[_0x352c4a(0x221)]();return(_0x3bce9f==null?void 0x0:_0x3bce9f['find'](_0x390983=>a[_0x352c4a(0x2d8)][_0x352c4a(0xd2)](_0x390983,_0x58494b)))||_0x58494b;}[_0xa8fcb3(0xd9)](){const _0xebb8fd=_0xa8fcb3,_0x5b0b25=new a[(_0xebb8fd(0x12c))](),_0x5ca4cf=Et(),_0x1383b3=()=>{const _0x219e5d=_0xebb8fd;_0x5b0b25[_0x219e5d(0x229)]();const _0xd240b9=(_0x34ecca,_0x5856a1,_0x1110bf,_0x1dc48a)=>{const _0x103fe6=_0x219e5d;let _0x9fe712=[];switch(_0x34ecca['id']){case g[_0x103fe6(0x88)]['DeleteRangeMoveLeftCommandId']:{_0x9fe712=g['handleDeleteRangeMoveLeft'](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)][_0x103fe6(0x243)]:{_0x9fe712=g[_0x103fe6(0x25f)](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)]['InsertColCommandId']:{_0x9fe712=g[_0x103fe6(0x35c)](_0x34ecca,_0x1dc48a);break;}case g['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x9fe712=g[_0x103fe6(0x32e)](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)][_0x103fe6(0x334)]:{_0x9fe712=g['handleInsertRangeMoveRight'](_0x34ecca,_0x1dc48a);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x9fe712=g[_0x103fe6(0x11c)](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)][_0x103fe6(0xa6)]:{_0x9fe712=g['handleMoveRange'](_0x34ecca,_0x1dc48a);break;}case g['EffectRefRangId'][_0x103fe6(0x1b9)]:{_0x9fe712=g[_0x103fe6(0x34c)](_0x34ecca,_0x1dc48a);break;}case g[_0x103fe6(0x88)]['RemoveRowCommandId']:{_0x9fe712=g[_0x103fe6(0x307)](_0x34ecca,_0x1dc48a);break;}}const _0x111236=g[_0x103fe6(0x22c)](_0x9fe712,_0x1dc48a),_0x4b8f2a=this[_0x103fe6(0xde)][_0x103fe6(0x27d)](_0x5856a1);if(_0x4b8f2a&&_0x111236){const _0x300226={..._0x4b8f2a,'range':_0x111236};this['cursorInfo'][_0x103fe6(0x2a9)](_0x5856a1,_0x300226),_0x5ca4cf(()=>{const _0x17a488=_0x103fe6,_0x4b91a3=this[_0x17a488(0x1ef)][_0x17a488(0xc5)](_0x111236,_0x5024c6=>(_0x4b91a3[_0x17a488(0x229)](),_0xd240b9(_0x5024c6,_0x5856a1,_0x1110bf,_0x111236)));_0x5b0b25['add'](_0x4b91a3);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x219e5d(0x2b4)]((_0x43b683,_0x57cf74)=>{const _0xa27a6c=_0x219e5d,{range:_0x74666f,sheetID:_0xf75fe6}=_0x43b683,_0x1af5f9=this[_0xa27a6c(0x1ef)][_0xa27a6c(0xc5)](_0x74666f,_0x2fcb1d=>(_0x1af5f9[_0xa27a6c(0x229)](),_0xd240b9(_0x2fcb1d,_0x57cf74,_0xf75fe6,_0x74666f)));_0x5b0b25[_0xa27a6c(0x14e)](_0x1af5f9);});};this[_0xebb8fd(0x111)](a[_0xebb8fd(0x9a)](this[_0xebb8fd(0x17e)][_0xebb8fd(0x185)](()=>{_0x1383b3();})));}['_toggleOnline'](){const _0x19399e=_0xa8fcb3;var _0xf4240f,_0x276a2a;if(this['_online']=!0x0,((_0xf4240f=this['_univerInstanceService'][_0x19399e(0x20d)]())==null?void 0x0:_0xf4240f[_0x19399e(0x1b5)]())!==this[_0x19399e(0x1a9)])return;const _0x48bf73=(_0x276a2a=this[_0x19399e(0x137)]['get'](g[_0x19399e(0xe2)])[_0x19399e(0x12d)]())==null?void 0x0:_0x276a2a[0x0],_0x435727=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x19399e(0x351)][_0x19399e(0x26b)])[_0x19399e(0x1f7)]();_0x48bf73&&_0x435727&&this['_updateLocalCursor'](_0x435727[_0x19399e(0x288)](),_0x48bf73);}['_toggleOffline'](){const _0x4d5005=_0xa8fcb3;this[_0x4d5005(0x1bc)]=!0x1;}};ve=mt([w(0x2,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),w(0x3,a['Inject'](be)),w(0x4,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0xa3)])),w(0x5,a[_0xa8fcb3(0x2f5)]),w(0x6,a[_0xa8fcb3(0x233)]),w(0x7,a[_0xa8fcb3(0x271)](g[_0xa8fcb3(0x21c)]))],ve);var Tt=Object[_0xa8fcb3(0x2c0)],Ct=(_0x45266a,_0x2188dd,_0x1340e6,_0x7512f)=>{const _0x1eb4e7=_0xa8fcb3;for(var _0x431607=_0x7512f>0x1?void 0x0:_0x7512f?Tt(_0x2188dd,_0x1340e6):_0x2188dd,_0x1d2bbe=_0x45266a[_0x1eb4e7(0x250)]-0x1,_0x39ea2d;_0x1d2bbe>=0x0;_0x1d2bbe--)(_0x39ea2d=_0x45266a[_0x1d2bbe])&&(_0x431607=_0x39ea2d(_0x431607)||_0x431607);return _0x431607;},ce=(_0x25b8bf,_0x1a686f)=>(_0x31f863,_0x2473d6)=>_0x1a686f(_0x31f863,_0x2473d6,_0x25b8bf);let k=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x3d1c32,_0x499aee,_0x599051){const _0x2b81a5=_0xa8fcb3;super(),_(this,'_entities',new Map()),_(this,_0x2b81a5(0x349),new I[(_0x2b81a5(0x33d))]()),(this[_0x2b81a5(0x140)]=_0x3d1c32,this['_injector']=_0x499aee,this['_collabSessionService']=_0x599051,this['_init']());}[_0xa8fcb3(0x229)](){const _0x13df9d=_0xa8fcb3;super[_0x13df9d(0x229)](),this['_entityInit$']['complete'](),this[_0x13df9d(0xe7)][_0x13df9d(0x2b4)](_0x235859=>_0x235859[_0x13df9d(0x229)]());}['getCollabCursors$'](_0x35425b){const _0x4b4cdf=_0xa8fcb3;return this[_0x4b4cdf(0xe7)][_0x4b4cdf(0x339)](_0x35425b)?this[_0x4b4cdf(0xe7)][_0x4b4cdf(0x27d)](_0x35425b)[_0x4b4cdf(0x6b)]:this['_entityInit$'][_0x4b4cdf(0x1a1)](I['filter'](_0x15f51f=>_0x15f51f[_0x4b4cdf(0x1a9)]===_0x35425b),I[_0x4b4cdf(0x14c)](_0x35dc2c=>_0x35dc2c[_0x4b4cdf(0x6b)]));}[_0xa8fcb3(0x24a)](){const _0x504180=_0xa8fcb3;this[_0x504180(0x140)][_0x504180(0x1c1)](a[_0x504180(0x351)][_0x504180(0x26b)])[_0x504180(0x1a1)](I[_0x504180(0x19e)](this[_0x504180(0x358)]))['subscribe'](async _0x44bb6d=>{const _0x4ad356=_0x504180,_0x37ac15=_0x44bb6d[_0x4ad356(0x1b5)](),_0x560f7a=await this[_0x4ad356(0x264)](_0x37ac15);this[_0x4ad356(0x349)][_0x4ad356(0x1c9)](_0x560f7a),this[_0x4ad356(0xe7)][_0x4ad356(0x2a9)](_0x37ac15,_0x560f7a);}),this[_0x504180(0x140)][_0x504180(0x1c1)](a[_0x504180(0x351)][_0x504180(0xf2)])['pipe'](I[_0x504180(0x19e)](this['dispose$']))[_0x504180(0x1a1)](I[_0x504180(0x154)](_0x300fc9=>!_0x300fc9[_0x504180(0x1b5)]()[_0x504180(0x163)]('__')))[_0x504180(0x185)](async _0x143681=>{const _0x43baaf=_0x504180,_0x17237d=_0x143681[_0x43baaf(0x1b5)](),_0x5b3c4e=await this[_0x43baaf(0xfa)](_0x17237d);this[_0x43baaf(0x349)][_0x43baaf(0x1c9)](_0x5b3c4e),this['_entities']['set'](_0x17237d,_0x5b3c4e);}),I['merge'](this[_0x504180(0x140)][_0x504180(0x2df)](a[_0x504180(0x351)][_0x504180(0xf2)]),this['_univerInstanceService'][_0x504180(0x2df)](a[_0x504180(0x351)][_0x504180(0x26b)]))[_0x504180(0x1a1)](I[_0x504180(0x19e)](this['dispose$']))[_0x504180(0x185)](_0x13527e=>{const _0x34a50c=_0x504180,_0x4b9612=_0x13527e[_0x34a50c(0x1b5)](),_0xb53ed8=this[_0x34a50c(0xe7)][_0x34a50c(0x27d)](_0x4b9612);_0xb53ed8&&(_0xb53ed8['dispose'](),this['_entities']['delete'](_0x4b9612));});}async[_0xa8fcb3(0x264)](_0x9f1858){const _0x28a869=_0xa8fcb3,_0x5dc06a=await this[_0x28a869(0x2ac)]['requireSession'](_0x9f1858),_0xa2357d=this[_0x28a869(0x137)][_0x28a869(0x26c)](ve,_0x9f1858,_0x5dc06a);return _0xa2357d[_0x28a869(0x172)](),_0xa2357d;}async[_0xa8fcb3(0xfa)](_0x59bec5){const _0x1cabe7=_0xa8fcb3,_0x16ff04=await this[_0x1cabe7(0x2ac)][_0x1cabe7(0x19a)](_0x59bec5),_0x39bc2a=this[_0x1cabe7(0x137)][_0x1cabe7(0x26c)](ge,_0x59bec5,_0x16ff04);return _0x39bc2a[_0x1cabe7(0x172)](),_0x39bc2a;}};k=Ct([ce(0x0,a[_0xa8fcb3(0x2f5)]),ce(0x1,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),ce(0x2,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x9b)]))],k);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x5580d4,_0x4b81c6){const _0x38f7b3=_0xa8fcb3;let {radius:_0x4edf2f,width:_0x298716,height:_0x2c8c76}=_0x4b81c6;_0x4edf2f=_0x4edf2f!=null?_0x4edf2f:0x0,_0x298716=_0x298716!=null?_0x298716:0x1e,_0x2c8c76=_0x2c8c76!=null?_0x2c8c76:0x1e;let _0x4ba96b=0x0,_0x10bd28=0x0,_0x491855=0x0;_0x4ba96b=_0x10bd28=_0x491855=Math['min'](_0x4edf2f,_0x298716/0x2,_0x2c8c76/0x2),_0x5580d4[_0x38f7b3(0x26d)](),_0x5580d4['moveTo'](_0x4ba96b,0x0),_0x5580d4[_0x38f7b3(0xfb)](_0x298716-_0x10bd28,0x0),_0x5580d4[_0x38f7b3(0x18a)](_0x298716-_0x10bd28,_0x10bd28,_0x10bd28,Math['PI']*0x3/0x2,0x0,!0x1),_0x5580d4['lineTo'](_0x298716,_0x2c8c76-_0x491855),_0x5580d4[_0x38f7b3(0x18a)](_0x298716-_0x491855,_0x2c8c76-_0x491855,_0x491855,0x0,Math['PI']/0x2,!0x1),_0x5580d4['lineTo'](0x0,_0x2c8c76),_0x5580d4['lineTo'](0x0,_0x4ba96b),_0x5580d4[_0x38f7b3(0x18a)](_0x4ba96b,_0x4ba96b,_0x4ba96b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5580d4[_0x38f7b3(0x219)](),_0x4b81c6[_0x38f7b3(0x204)]&&(_0x5580d4[_0x38f7b3(0x19b)](),_0x5580d4[_0x38f7b3(0x2ef)]=_0x4b81c6[_0x38f7b3(0x204)],_0x4b81c6[_0x38f7b3(0xb3)]===_0x38f7b3(0x2fc)?_0x5580d4['fill']('evenodd'):_0x5580d4[_0x38f7b3(0x204)](),_0x5580d4[_0x38f7b3(0x2ed)]());}class re extends T[_0xa8fcb3(0x31f)]{constructor(_0x593d23,_0x532fdb){const _0x4b8518=_0xa8fcb3;super(_0x593d23,_0x532fdb),_(this,'color'),_(this,_0x4b8518(0x1ce)),(this[_0x4b8518(0xdf)]=_0x532fdb==null?void 0x0:_0x532fdb[_0x4b8518(0xdf)],this[_0x4b8518(0x1ce)]=_0x532fdb==null?void 0x0:_0x532fdb['text']);}static['drawWith'](_0x39b29c,_0x24e613){const _0x241ec2=_0xa8fcb3,{text:_0x4906ce,color:_0x126d30}=_0x24e613;_0x39b29c[_0x241ec2(0x19b)](),_0x39b29c[_0x241ec2(0x2b5)]=_0x241ec2(0x2ea);const _0x4eafec=_0x39b29c[_0x241ec2(0x249)](_0x4906ce)[_0x241ec2(0x200)],_0x11259f=Math[_0x241ec2(0xd1)](_0x4eafec+0x2*le,Ue);Ot(_0x39b29c,{'height':X,'radius':0x4,'width':_0x11259f,'fill':_0x126d30}),_0x39b29c[_0x241ec2(0x2ef)]=_0x241ec2(0x1db);const _0x2aad12=le,_0x4a20e9=X-pt,_0x4b6e4d=Ue-0x2*le;if(_0x4eafec>_0x4b6e4d){let _0x2b8d32='',_0x3ba289=0x0;for(const _0x3a8baa of _0x4906ce){const _0x5c6657=_0x39b29c[_0x241ec2(0x249)](_0x3a8baa)['width'];if(_0x3ba289+_0x5c6657<=_0x4b6e4d-_0x39b29c[_0x241ec2(0x249)](_0x241ec2(0x320))[_0x241ec2(0x200)])_0x2b8d32+=_0x3a8baa,_0x3ba289+=_0x5c6657;else{_0x2b8d32+=_0x241ec2(0x320);break;}}_0x39b29c[_0x241ec2(0x251)](_0x2b8d32,_0x2aad12,_0x4a20e9);}else _0x39b29c[_0x241ec2(0x251)](_0x4906ce,_0x2aad12,_0x4a20e9);_0x39b29c[_0x241ec2(0x2ed)]();}[_0xa8fcb3(0xe4)](_0x41821f){re['drawWith'](_0x41821f,this);}}const _e=_0xa8fcb3(0x115),bt=_0xa8fcb3(0x165),Rt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0xa8fcb3(0x179);class Le{constructor(_0xa85ef2,_0x2b545b,_0x11ab2c,_0x44f609){const _0x1a9402=_0xa8fcb3;_(this,'_shapes',[]),_(this,_0x1a9402(0x147),null),_(this,'_textBubble',null),_(this,_0x1a9402(0x23f),null),_(this,_0x1a9402(0xd3),null),_(this,_0x1a9402(0x31c),null),(this[_0x1a9402(0x338)]=_0xa85ef2,this[_0x1a9402(0x24f)]=_0x2b545b,this[_0x1a9402(0xcf)]=_0x11ab2c,this[_0x1a9402(0x133)]=_0x44f609,this[_0x1a9402(0x354)]());}set['_hover'](_0x214aaa){const _0x3f0fae=_0xa8fcb3;_0x214aaa?(this[_0x3f0fae(0x23f)]&&this[_0x3f0fae(0x23f)]['hide'](),this[_0x3f0fae(0xe1)]&&this[_0x3f0fae(0xe1)][_0x3f0fae(0xbc)]()):(this[_0x3f0fae(0x23f)]&&this[_0x3f0fae(0x23f)][_0x3f0fae(0xbc)](),this['_textBubble']&&this[_0x3f0fae(0xe1)][_0x3f0fae(0x90)]());}[_0xa8fcb3(0x229)](){const _0x503570=_0xa8fcb3;for(const _0x5ee62e of this[_0x503570(0xf7)])_0x5ee62e[_0x503570(0x229)]();this[_0x503570(0xe1)]&&this[_0x503570(0xe1)][_0x503570(0x229)](),this[_0x503570(0x23f)]&&this[_0x503570(0x23f)][_0x503570(0x229)](),this['_anchor']&&this[_0x503570(0x147)][_0x503570(0x229)](),this['_eventUnsubscribe']&&this[_0x503570(0x31c)]();}[_0xa8fcb3(0x354)](){const _0x5b5f7f=_0xa8fcb3;var _0x53b386;const {_docSkeleton:_0x68f300,_document:_0x5019aa}=this,{color:_0x5f2a86,name:_0x422c72,ranges:_0x28d706}=this['_cursor'],_0x344938=_0x5019aa['getOffsetConfig'](),{docsLeft:_0x1cb39e,docsTop:_0x129867}=_0x344938,_0x277204=new C['NodePositionConvertToCursor'](_0x344938,_0x68f300);for(const {startOffset:_0x42cf40,endOffset:_0x40abf4,rangeType:_0x3aa78e,segmentId:_0x383476,segmentPage:_0x4d39ef,collapsed:_0x20e36b,isActive:_0x1a1e2c}of _0x28d706){const _0x3516bd=_0x68f300[_0x5b5f7f(0x6e)](_0x42cf40,!0x0,_0x383476,_0x4d39ef);let _0x296a67=_0x68f300[_0x5b5f7f(0x6e)](_0x40abf4,!0x0,_0x383476,_0x4d39ef);if(_0x296a67==null&&(_0x296a67=_0x68f300['findNodePositionByCharIndex'](_0x40abf4-0x1,!0x1,_0x383476,_0x4d39ef)),_0x1a1e2c){const {contentBoxPointGroup:_0x23cd7f}=_0x277204[_0x5b5f7f(0xa5)](_0x296a67,_0x296a67);if(_0x23cd7f['length']===0x0)continue;this[_0x5b5f7f(0x2a4)](_0x5f2a86,_0x23cd7f,_0x1cb39e,_0x129867,_0x422c72),this[_0x5b5f7f(0x31c)]=this['_handleHover']();}if(_0x3516bd&&_0x296a67){if(_0x3aa78e===a['DOC_RANGE_TYPE'][_0x5b5f7f(0x270)]){const _0x4308b3=new C['NodePositionConvertToRectRange'](_0x344938,_0x68f300),{pointGroup:_0x4f2627}=(_0x53b386=_0x4308b3[_0x5b5f7f(0xa5)](_0x3516bd,_0x296a67))!=null?_0x53b386:{};if(_0x4f2627==null||_0x4f2627[_0x5b5f7f(0x250)]===0x0)continue;this['_drawRectRange'](_0x5f2a86,_0x4f2627,_0x1cb39e,_0x129867);}else{if(!_0x20e36b){const {borderBoxPointGroup:_0x489cd1}=_0x277204[_0x5b5f7f(0xa5)](_0x3516bd,_0x296a67);if(_0x489cd1[_0x5b5f7f(0x250)]===0x0)continue;this[_0x5b5f7f(0x335)](_0x5f2a86,_0x489cd1,_0x1cb39e,_0x129867);}}}}}['_drawAnchor'](_0x5879a7,_0x96ef8a,_0x59700a,_0x265859,_0x4b3d13){const _0x1fe291=_0xa8fcb3,_0x3d9ffa=this[_0x1fe291(0x294)](_0x96ef8a),{left:_0x882855,top:_0x780dfd,height:_0x58d06a}=_0x3d9ffa,_0xb073ec=this['_getScale'](),_0x5dfc30=Nt/_0xb073ec,_0x53d50a=new T['Rect'](_e+a[_0x1fe291(0x124)](H),{'left':_0x882855+_0x59700a-_0x5dfc30,'top':_0x780dfd+_0x265859,'height':_0x58d06a,'width':Dt,'fill':_0x5879a7||T[_0x1fe291(0x340)](a[_0x1fe291(0x1c8)][_0x1fe291(0x293)],0x0),'strokeWidth':_0x5dfc30,'stroke':Ut,'evented':!0x0});this[_0x1fe291(0x147)]=_0x53d50a,this['_scene'][_0x1fe291(0x10e)](_0x53d50a,C['TEXT_RANGE_LAYER_INDEX']);const _0x5ea20d=new T['Rect'](_e+a['generateRandomId'](H),{'left':_0x882855+_0x59700a-_0x5dfc30,'top':_0x780dfd+_0x265859-he/0x2,'height':he,'width':he,'fill':_0x5879a7||T[_0x1fe291(0x340)](a[_0x1fe291(0x1c8)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x5879a7||T[_0x1fe291(0x340)](a[_0x1fe291(0x1c8)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x5ea20d,this[_0x1fe291(0x24f)][_0x1fe291(0x10e)](_0x5ea20d,C[_0x1fe291(0x23b)]);const _0x472163=new re(_e+a[_0x1fe291(0x124)](H),{'left':_0x882855+_0x59700a-_0x5dfc30,'top':_0x780dfd+_0x265859-X,'text':_0x4b3d13,'color':_0x5879a7});this[_0x1fe291(0xe1)]=_0x472163,this[_0x1fe291(0x24f)][_0x1fe291(0x10e)](_0x472163,C['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0xa8fcb3(0x33c)](){const _0x2e83bf=_0xa8fcb3,_0x10abcf=this[_0x2e83bf(0x147)][_0x2e83bf(0x16f)]['subscribeEvent'](()=>{const _0x6bbdd4=_0x2e83bf;this[_0x6bbdd4(0x6f)]=!0x0;}),_0x55314f=this[_0x2e83bf(0x147)][_0x2e83bf(0xbb)][_0x2e83bf(0x2b8)](()=>{const _0x11aeb1=_0x2e83bf;this[_0x11aeb1(0xd3)]&&clearTimeout(this[_0x11aeb1(0xd3)]),this[_0x11aeb1(0xd3)]=setTimeout(()=>{const _0x503cc9=_0x11aeb1;this[_0x503cc9(0x6f)]=!0x1;},0x7d0);});return()=>{const _0x2ffca2=_0x2e83bf;_0x10abcf[_0x2ffca2(0x203)](),_0x55314f['unsubscribe']();};}[_0xa8fcb3(0x335)](_0x2478d0,_0x3d9705,_0x1aa3b3,_0x191639){const _0x383e39=_0xa8fcb3,_0x56f90b=new a[(_0x383e39(0x346))](_0x2478d0)[_0x383e39(0x2e7)](0.2)[_0x383e39(0x2a3)](),_0x5a3e3c=new T['RegularPolygon'](bt+a[_0x383e39(0x124)](H),{'pointsGroup':_0x3d9705,'fill':_0x56f90b||T[_0x383e39(0x340)](a['COLORS']['black'],0.2),'left':_0x1aa3b3,'top':_0x191639,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x383e39(0xf7)][_0x383e39(0x336)](_0x5a3e3c),this['_scene'][_0x383e39(0x10e)](_0x5a3e3c,C['TEXT_RANGE_LAYER_INDEX']);}[_0xa8fcb3(0x16c)](_0x176d48,_0x41976a,_0x561ee7,_0x64593a){const _0x55f04d=_0xa8fcb3,_0x8ad1fc=new a[(_0x55f04d(0x346))](_0x176d48)[_0x55f04d(0x2e7)](0.2)[_0x55f04d(0x2a3)](),_0x5a350c=new T['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0x41976a,'fill':_0x8ad1fc||T[_0x55f04d(0x340)](a[_0x55f04d(0x1c8)][_0x55f04d(0x293)],0.2),'left':_0x561ee7,'top':_0x64593a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x55f04d(0x336)](_0x5a350c),this[_0x55f04d(0x24f)][_0x55f04d(0x10e)](_0x5a350c,C[_0x55f04d(0x23b)]);}[_0xa8fcb3(0x294)](_0x4a63f6){const _0x32f541=_0x4a63f6[0x0],_0x61c48=_0x32f541[0x0],_0x3261c9=_0x32f541[0x2],{x:_0x5262f0,y:_0x416414}=_0x61c48,{x:_0x55ab0f,y:_0x15d279}=_0x3261c9;return{'left':_0x5262f0,'top':_0x416414,'width':_0x55ab0f-_0x5262f0,'height':_0x15d279-_0x416414};}[_0xa8fcb3(0x32f)](){const _0xe1cf8b=_0xa8fcb3,{scaleX:_0x5cdf1b,scaleY:_0x48fa21}=this['_scene'][_0xe1cf8b(0x226)]();return Math['max'](_0x5cdf1b,_0x48fa21);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x43ebd8,_0x54aaac,_0x5827f2,_0x37b4cf)=>{const _0xdfc892=_0xa8fcb3;for(var _0x20c8f9=_0x37b4cf>0x1?void 0x0:_0x37b4cf?Lt(_0x54aaac,_0x5827f2):_0x54aaac,_0x3e4384=_0x43ebd8[_0xdfc892(0x250)]-0x1,_0x114a63;_0x3e4384>=0x0;_0x3e4384--)(_0x114a63=_0x43ebd8[_0x3e4384])&&(_0x20c8f9=_0x114a63(_0x20c8f9)||_0x20c8f9);return _0x20c8f9;},q=(_0x321cb1,_0x40a6b4)=>(_0x298786,_0x507ef2)=>_0x40a6b4(_0x298786,_0x507ef2,_0x321cb1);let Ee=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0x44cbed,_0x396393,_0x55d6dc,_0x64a497,_0x5006fe){const _0xc34afc=_0xa8fcb3;super(),_(this,_0xc34afc(0x1aa),[]),_(this,_0xc34afc(0xca),[]),(this[_0xc34afc(0x16b)]=_0x44cbed,this[_0xc34afc(0x2c2)]=_0x396393,this[_0xc34afc(0x118)]=_0x55d6dc,this[_0xc34afc(0x72)]=_0x64a497,this['_themeService']=_0x5006fe,this['_init']());}[_0xa8fcb3(0x24a)](){const _0x33bd6=_0xa8fcb3,_0x4b8763=this[_0x33bd6(0x16b)][_0x33bd6(0x2b0)],_0x4a5a50=this[_0x33bd6(0x2c2)];this[_0x33bd6(0x111)](I[_0x33bd6(0x329)]([this[_0x33bd6(0x118)][_0x33bd6(0x2ce)](_0x4b8763),this['_themeService'][_0x33bd6(0x2cc)]])[_0x33bd6(0x1a1)]($[_0x33bd6(0x141)](([_0x7ef665,_0x2ea41f])=>({'skeleton':_0x4a5a50[_0x33bd6(0x139)](),'cursors':[..._0x7ef665[_0x33bd6(0x120)]()]['flatMap'](_0x3d6fbe=>({..._0x3d6fbe,'color':this['_themeService'][_0x33bd6(0x1cd)](_0x3d6fbe[_0x33bd6(0xdf)])}))})))[_0x33bd6(0x185)](_0x200fcf=>{const _0x98bd39=_0x33bd6;if(this[_0x98bd39(0x178)](),_0x200fcf){const {skeleton:_0xeb84d,cursors:_0x5b91d2}=_0x200fcf;this['_updateCollabCursors'](_0xeb84d,_0x5b91d2);}})),this[_0x33bd6(0x32d)](),this[_0x33bd6(0x315)]();}[_0xa8fcb3(0x100)](_0x216137,_0x2a5ece){const _0xdb7bc6=_0xa8fcb3,{scene:_0x199b18,mainComponent:_0xf4e364}=this[_0xdb7bc6(0x16b)],_0xaff7c9=_0x2a5ece['map'](_0x1d0c8c=>new Le(_0x1d0c8c,_0x199b18,_0x216137,_0xf4e364));this[_0xdb7bc6(0x1aa)]=_0xaff7c9,this[_0xdb7bc6(0xca)]=_0x2a5ece;}['_refreshCollabCursors'](){const _0x40019c=_0xa8fcb3;this[_0x40019c(0x178)]();const {scene:_0xeca0a3,mainComponent:_0x2b0c53}=this[_0x40019c(0x16b)],_0x1e91ab=this['_docSkeletonManagerService'][_0x40019c(0x139)](),_0x510463=this[_0x40019c(0xca)]['map'](_0x494208=>new Le(_0x494208,_0xeca0a3,_0x1e91ab,_0x2b0c53));this['_cursorShapes']=_0x510463;}[_0xa8fcb3(0x178)](){const _0x55de8e=_0xa8fcb3;this['_cursorShapes'][_0x55de8e(0x2b4)](_0x2abf89=>_0x2abf89['dispose']()),this[_0x55de8e(0x1aa)]=[];}[_0xa8fcb3(0x315)](){const _0x5dd013=_0xa8fcb3,_0x23823f=[C[_0x5dd013(0xac)]['id']];this[_0x5dd013(0x111)](this[_0x5dd013(0x72)][_0x5dd013(0xc6)](_0x19a9f5=>{const _0x463026=_0x5dd013;_0x23823f[_0x463026(0x27b)](_0x19a9f5['id'])&&_0x19a9f5[_0x463026(0x215)][_0x463026(0x2b0)]===this[_0x463026(0x16b)][_0x463026(0x2b0)]&&this[_0x463026(0x34d)]();}));}['_initResize'](){const _0x3baa86=_0xa8fcb3;this[_0x3baa86(0x111)](a[_0x3baa86(0x2a0)](this[_0x3baa86(0x16b)][_0x3baa86(0x267)]['onTransformChange$'])[_0x3baa86(0x1a1)]($[_0x3baa86(0x154)](_0x52fb4c=>_0x52fb4c['type']===T['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x3baa86(0x91)](0x10))[_0x3baa86(0x185)](()=>{const _0x1e07d3=_0x3baa86;this[_0x1e07d3(0x34d)]();}));}};Ee=Mt([q(0x1,a[_0xa8fcb3(0x271)](V[_0xa8fcb3(0x26a)])),q(0x2,a['Inject'](k)),q(0x3,a[_0xa8fcb3(0x233)]),q(0x4,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x126)]))],Ee);const At=0x1,Pt=1.5;class Fe extends T[_0xa8fcb3(0x31f)]{constructor(_0x19d3df,_0x46ce3f){const _0x324c63=_0xa8fcb3;var _0x15b0eb,_0x25c1d7;super(_0x19d3df,_0x46ce3f),_(this,_0x324c63(0x2cd)),_(this,_0x324c63(0x1ec),!0x1),_(this,_0x324c63(0x2b3)),_(this,_0x324c63(0x2d3),''),_(this,_0x324c63(0x1d7),_0x324c63(0x1bf)),_(this,_0x324c63(0xa9)),_(this,_0x324c63(0x128)),_(this,_0x324c63(0x2f8)),_(this,'_highlightSecond',0x4),_(this,'_blinkTimer'),_(this,_0x324c63(0x17c)),_(this,_0x324c63(0x150),!0x0),_(this,_0x324c63(0x308),0x0),(_0x46ce3f&&(this[_0x324c63(0x94)](_0x46ce3f),_0x46ce3f[_0x324c63(0x14a)]&&((_0x15b0eb=_0x46ce3f[_0x324c63(0x25c)])!=null?_0x15b0eb:this['_highlightSecond'])&&this[_0x324c63(0x228)]((_0x25c1d7=_0x46ce3f[_0x324c63(0x25c)])!=null?_0x25c1d7:this[_0x324c63(0x171)])),this['onPointerEnter$'][_0x324c63(0x2b8)](()=>this[_0x324c63(0x94)]({'hovered':!0x0})),this[_0x324c63(0xbb)]['subscribeEvent'](()=>this[_0x324c63(0x94)]({'hovered':!0x1})));}['setOffsetY'](_0x496831){const _0x302af6=_0xa8fcb3;this[_0x302af6(0x308)]=_0x496831;}[_0xa8fcb3(0x94)](_0x5eac57){const _0x481d88=_0xa8fcb3;var _0x3cf0f1,_0x247369,_0x4172dd,_0x45eb07,_0xa70e75,_0x24c693,_0x50aca0;this[_0x481d88(0x2cd)]=(_0x3cf0f1=_0x5eac57[_0x481d88(0xdf)])!=null?_0x3cf0f1:this[_0x481d88(0x2cd)],this[_0x481d88(0x1ec)]=(_0x247369=_0x5eac57[_0x481d88(0x314)])!=null?_0x247369:this[_0x481d88(0x1ec)],this[_0x481d88(0x2b3)]=(_0x4172dd=_0x5eac57['range'])!=null?_0x4172dd:this[_0x481d88(0x2b3)],this[_0x481d88(0x2d3)]=(_0x45eb07=_0x5eac57[_0x481d88(0x10b)])!=null?_0x45eb07:this[_0x481d88(0x2d3)],this[_0x481d88(0x1d7)]=(_0xa70e75=_0x5eac57[_0x481d88(0xf6)])!=null?_0xa70e75:this['_labelPosition'],this[_0x481d88(0xa9)]=(_0x24c693=_0x5eac57[_0x481d88(0x166)])!=null?_0x24c693:this[_0x481d88(0xa9)],this[_0x481d88(0x128)]=(_0x50aca0=_0x5eac57[_0x481d88(0x2a1)])!=null?_0x50aca0:this[_0x481d88(0x128)],_0x5eac57['highlightSecond']!==void 0x0&&(this[_0x481d88(0x171)]=_0x5eac57[_0x481d88(0x25c)]),_0x5eac57['highlight']!==void 0x0&&(this[_0x481d88(0x2f8)]=_0x5eac57[_0x481d88(0x14a)]),_0x5eac57[_0x481d88(0x193)]!==void 0x0&&(this[_0x481d88(0x308)]=_0x5eac57[_0x481d88(0x193)]),this[_0x481d88(0x77)]({'width':_0x5eac57[_0x481d88(0x200)],'height':_0x5eac57['height']});}[_0xa8fcb3(0x347)](_0x1c7a5d){const _0x503d96=_0xa8fcb3,{row:_0x4bf788,column:_0x3b712e}=_0x1c7a5d;if(_0x4bf788>=this['_range'][_0x503d96(0x2bc)]&&_0x4bf788<=this[_0x503d96(0x2b3)][_0x503d96(0x241)]&&_0x3b712e>=this[_0x503d96(0x2b3)][_0x503d96(0xf3)]&&_0x3b712e<=this[_0x503d96(0x2b3)]['endColumn']){this[_0x503d96(0x94)]({'hovered':!0x0});return;}this[_0x503d96(0x94)]({'hovered':!0x1});}[_0xa8fcb3(0x228)](_0x59b471){const _0x3e73d9=_0xa8fcb3;this[_0x3e73d9(0x15c)](),this[_0x3e73d9(0x150)]=!0x0,this['_blinkIntervalTimer']=window[_0x3e73d9(0x148)](()=>{const _0x2b709f=_0x3e73d9;this['_isBlinkVisible']=!this[_0x2b709f(0x150)],this[_0x2b709f(0x134)](!0x0);},0x1f4),this[_0x3e73d9(0x22f)]=window[_0x3e73d9(0x132)](()=>{const _0x22e7f3=_0x3e73d9;this[_0x22e7f3(0x15c)](),this[_0x22e7f3(0x150)]=!0x0,this[_0x22e7f3(0x134)](!0x0);},_0x59b471*0x3e8);}[_0xa8fcb3(0x15c)](){const _0x59eb14=_0xa8fcb3;this[_0x59eb14(0x17c)]&&(window['clearInterval'](this[_0x59eb14(0x17c)]),this[_0x59eb14(0x17c)]=void 0x0),this[_0x59eb14(0x22f)]&&(window[_0x59eb14(0x16a)](this[_0x59eb14(0x22f)]),this[_0x59eb14(0x22f)]=void 0x0);}[_0xa8fcb3(0x1e5)](_0x25b325){return!0x1;}[_0xa8fcb3(0x229)](){this['_stopBlinking'](),super['dispose']();}[_0xa8fcb3(0xe4)](_0x3e57d6){const _0x490d8d=_0xa8fcb3;var _0x3012ee,_0x1eb941;let _0x456e29=this[_0x490d8d(0x2cd)],_0x1b8fd6=this[_0x490d8d(0xa9)];this[_0x490d8d(0x2f8)]&&!this['_isBlinkVisible']&&(_0x456e29=this[_0x490d8d(0x2a6)](this['_color']),_0x1b8fd6=this[_0x490d8d(0xa9)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),T[_0x490d8d(0x2a7)][_0x490d8d(0x2b6)](_0x3e57d6,{'width':this[_0x490d8d(0x200)],'height':this[_0x490d8d(0x247)],'strokeWidth':(_0x3012ee=this[_0x490d8d(0x211)])!=null?_0x3012ee:Pt,'stroke':_0x456e29,'evented':!0x1,'fill':_0x1b8fd6}),(this[_0x490d8d(0x1ec)]||this[_0x490d8d(0x128)])&&(_0x3e57d6[_0x490d8d(0x19b)](),_0x3e57d6[_0x490d8d(0xaa)](0x1,0x0,0x0,0x1,this[_0x490d8d(0x200)],(this[_0x490d8d(0x1d7)]===_0x490d8d(0x1cf)?0x0:-X)+((_0x1eb941=this[_0x490d8d(0x308)])!=null?_0x1eb941:0x0)),re['drawWith'](_0x3e57d6,{'text':this[_0x490d8d(0x2d3)],'color':_0x456e29}),_0x3e57d6[_0x490d8d(0x2ed)]());}[_0xa8fcb3(0x2a6)](_0x51314f){const _0x3762f4=_0xa8fcb3;if(_0x51314f[_0x3762f4(0x163)]('#')){const _0x76f788=Number[_0x3762f4(0x26f)](_0x51314f[_0x3762f4(0x76)](0x1,0x3),0x10),_0x511e5b=Number['parseInt'](_0x51314f[_0x3762f4(0x76)](0x3,0x5),0x10),_0x4eb600=Number[_0x3762f4(0x26f)](_0x51314f[_0x3762f4(0x76)](0x5,0x7),0x10);return _0x3762f4(0xf4)+_0x76f788+',\x20'+_0x511e5b+',\x20'+_0x4eb600+_0x3762f4(0x313);}return _0x51314f[_0x3762f4(0x163)](_0x3762f4(0x23a))?_0x51314f[_0x3762f4(0x13a)](/[\d.]+\)$/g,_0x3762f4(0xe0)):_0x51314f[_0x3762f4(0x163)](_0x3762f4(0x2d9))?_0x51314f[_0x3762f4(0x13a)](_0x3762f4(0x2d9),'rgba')[_0x3762f4(0x13a)](')',_0x3762f4(0x313)):_0x51314f;}}var wt=Object[_0xa8fcb3(0x2c0)],yt=(_0x5916cd,_0x4aa858,_0x51f804,_0x3990af)=>{const _0x944ec=_0xa8fcb3;for(var _0x4ece18=_0x3990af>0x1?void 0x0:_0x3990af?wt(_0x4aa858,_0x51f804):_0x4aa858,_0x19a028=_0x5916cd[_0x944ec(0x250)]-0x1,_0x2d2d3a;_0x19a028>=0x0;_0x19a028--)(_0x2d2d3a=_0x5916cd[_0x19a028])&&(_0x4ece18=_0x2d2d3a(_0x4ece18)||_0x4ece18);return _0x4ece18;},ue=(_0x4bd53c,_0x26a104)=>(_0x985ba5,_0x290f21)=>_0x26a104(_0x985ba5,_0x290f21,_0x4bd53c);const $t=0x1389;let Te=class extends a[_0xa8fcb3(0x1e1)]{constructor(_0xf66331,_0x180bea,_0x2c6ef4,_0x514301){const _0x2d6d3a=_0xa8fcb3;super(),_(this,_0x2d6d3a(0xca),new Set()),_(this,_0x2d6d3a(0x279),null),(this[_0x2d6d3a(0x16b)]=_0xf66331,this[_0x2d6d3a(0x230)]=_0x180bea,this[_0x2d6d3a(0x118)]=_0x2c6ef4,this[_0x2d6d3a(0x9f)]=_0x514301,this['_init']());}['_init'](){const _0x14c3ff=_0xa8fcb3;this[_0x14c3ff(0x230)][_0x14c3ff(0x11e)][_0x14c3ff(0x1a1)]($[_0x14c3ff(0x19e)](this['dispose$']),$[_0x14c3ff(0x14c)](_0x300ba6=>{const _0x1057d4=_0x14c3ff;if(_0x300ba6){const _0x479a53=_0x300ba6[_0x1057d4(0x1d2)];return I['combineLatest'](this[_0x1057d4(0x118)]['getCollabCursors$'](this[_0x1057d4(0x16b)][_0x1057d4(0x2b0)]),this[_0x1057d4(0x9f)][_0x1057d4(0x2cc)])['pipe']($['map'](([_0x55fdaa,_0x3bd9d5])=>{const _0x163b95=_0x1057d4,_0x182610=new Map();return _0x55fdaa[_0x163b95(0x2b4)]((_0x2e8188,_0x30a1ac)=>{const _0x27c91d=_0x163b95;if(_0x2e8188[_0x27c91d(0x202)]===_0x479a53){const _0x4e6b1d={..._0x2e8188};_0x4e6b1d[_0x27c91d(0xdf)]=this[_0x27c91d(0x9f)]['getColorFromTheme'](_0x2e8188[_0x27c91d(0xdf)]),_0x182610['set'](_0x30a1ac,_0x4e6b1d);}}),{'skeleton':_0x300ba6,'cursors':_0x182610};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x14c3ff(0x185)](({skeleton:_0x387207,cursors:_0x54d9ab})=>{this['_removeCollabCursors'](),_0x387207&&this['_updateCollabCursors'](_0x387207,_0x54d9ab);}),this[_0x14c3ff(0x230)][_0x14c3ff(0x11e)][_0x14c3ff(0x185)](_0x260f5c=>{const _0x5702b7=_0x14c3ff;if(_0x260f5c==null)return;const {skeleton:_0x3c9c0f}=_0x260f5c,{scene:_0x17320b}=this['_context'];_0x17320b[_0x5702b7(0x17f)][_0x5702b7(0x2b8)](a[_0x5702b7(0x1fb)](_0xf57886=>{const _0x29cfd5=_0x5702b7;var _0x2681ae,_0x2fb5d3;const {offsetX:_0x27a82d,offsetY:_0x3b737b}=_0xf57886,{x:_0x47173d,y:_0x47f51a}=_0x17320b['getRelativeToViewportCoord'](T[_0x29cfd5(0x1e8)][_0x29cfd5(0x1cb)]([_0x27a82d,_0x3b737b])),{scaleX:_0x89af71,scaleY:_0x588bbd}=_0x17320b[_0x29cfd5(0x226)](),_0x4804a2=_0x17320b[_0x29cfd5(0x18c)](T[_0x29cfd5(0x1b1)][_0x29cfd5(0x13c)]),_0x3bb2ec=_0x17320b[_0x29cfd5(0x342)](T[_0x29cfd5(0x1e8)][_0x29cfd5(0x1cb)]([_0x47173d,_0x47f51a]),_0x4804a2),_0x2e6756=_0x3c9c0f[_0x29cfd5(0x1a5)](_0x27a82d,_0x3b737b,_0x89af71,_0x588bbd,_0x3bb2ec);((_0x2681ae=this[_0x29cfd5(0x279)])==null?void 0x0:_0x2681ae[_0x29cfd5(0x24e)])===_0x2e6756[_0x29cfd5(0x24e)]&&((_0x2fb5d3=this['_lastPointer'])==null?void 0x0:_0x2fb5d3[_0x29cfd5(0xda)])===_0x2e6756[_0x29cfd5(0xda)]||this[_0x29cfd5(0xca)][_0x29cfd5(0x2b4)](_0x69a3bf=>{const _0x2b9664=_0x29cfd5;_0x69a3bf[_0x2b9664(0x347)](_0x2e6756);});},0x64));});}[_0xa8fcb3(0x100)](_0x5098e1,_0x4c3f3c){const _0x129f89=_0xa8fcb3;var _0xbff60f;const _0x11c051=(_0xbff60f=this[_0x129f89(0x230)][_0x129f89(0x1eb)]())==null?void 0x0:_0xbff60f[_0x129f89(0x7e)];if(!_0x11c051)return;const _0x14b81c=this[_0x129f89(0x2b7)]();if(!_0x14b81c)return;this[_0x129f89(0xca)][_0x129f89(0x2b4)](_0x4444c5=>{const _0x26aa9e=_0x129f89;_0x4444c5[_0x26aa9e(0x134)]();});const {scene:_0x2ac953}=_0x14b81c,_0x36996c=xt(Array['from'](_0x4c3f3c[_0x129f89(0x120)]()))[_0x129f89(0x141)](_0x1201ad=>{const _0x5708cb=_0x129f89,{color:_0x173b58,range:_0x32911f,name:_0xeb3964,selection:_0x3feadf,sheetID:_0x3019e7}=_0x1201ad,{startColumn:_0x33a16c,startRow:_0xf78dba,endColumn:_0x31fc10,endRow:_0x247d85}=_0x32911f,_0x46f1e6=J[_0x5708cb(0x29a)](_0xf78dba,_0x33a16c,_0x2ac953,_0x11c051),_0x2a7137=J[_0x5708cb(0x29a)](_0x247d85,_0x31fc10,_0x2ac953,_0x11c051),{columnHeaderHeightAndMarginTop:_0xe4e693}=_0x11c051,{startX:_0x3754d4,startY:_0x17c5bd}=_0x46f1e6,{endX:_0x202fd1,endY:_0x409c3e}=_0x2a7137,_0x19d934=_0x202fd1-_0x3754d4,_0x4c1788=_0x409c3e-_0x17c5bd,_0x1940fc={'labelPosition':_0x17c5bd-_0xe4e693>=X?_0x5708cb(0x1bf):_0x5708cb(0x1cf),'sheetID':_0x3019e7,'range':_0x32911f,'color':_0x173b58,'name':_0xeb3964,'selection':_0x3feadf,'left':_0x3754d4,'top':_0x17c5bd,'width':_0x19d934,'height':_0x4c1788,'evented':!0x1,'zIndex':$t};return new Fe(_0xeb3964,_0x1940fc);});_0x2ac953[_0x129f89(0x18b)](_0x36996c,At),this[_0x129f89(0xca)]=new Set(_0x36996c);}[_0xa8fcb3(0x178)](){const _0x7040e2=_0xa8fcb3;var _0x3690c0;(_0x3690c0=this[_0x7040e2(0xca)])==null||_0x3690c0[_0x7040e2(0x2b4)](_0x1dd7a5=>_0x1dd7a5[_0x7040e2(0x229)]());}[_0xa8fcb3(0x2b7)](){const _0x3446fd=_0xa8fcb3;return J[_0x3446fd(0x297)](this[_0x3446fd(0x16b)][_0x3446fd(0x2ff)],this[_0x3446fd(0x16b)]);}};Te=yt([ue(0x1,a[_0xa8fcb3(0x271)](J[_0xa8fcb3(0x2d2)])),ue(0x2,a[_0xa8fcb3(0x271)](k)),ue(0x3,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x126)]))],Te);function xt(_0x519406){const _0x740251=_0xa8fcb3,_0x410b5c=new Map();return _0x519406[_0x740251(0x2b4)](_0x4fc14f=>{const _0x5a5966=_0x740251;if(_0x410b5c[_0x5a5966(0x339)](_0x4fc14f[_0x5a5966(0x214)])){const _0x5b1bcc=_0x410b5c[_0x5a5966(0x27d)](_0x4fc14f['selection']);_0x5b1bcc[_0x5a5966(0x10b)]+=',\x20'+_0x4fc14f[_0x5a5966(0x10b)];}else _0x410b5c[_0x5a5966(0x2a9)](_0x4fc14f['selection'],_0x4fc14f);}),Array['from'](_0x410b5c[_0x740251(0x120)]());}var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x419475,_0x40530a,_0x488770,_0x594c85)=>{const _0x3699d8=_0xa8fcb3;for(var _0x3aca06=_0x594c85>0x1?void 0x0:_0x594c85?Bt(_0x40530a,_0x488770):_0x40530a,_0x4df196=_0x419475[_0x3699d8(0x250)]-0x1,_0x5531ba;_0x4df196>=0x0;_0x4df196--)(_0x5531ba=_0x419475[_0x4df196])&&(_0x3aca06=_0x5531ba(_0x3aca06)||_0x3aca06);return _0x3aca06;},y=(_0x1edfc5,_0x292aaa)=>(_0x3678f6,_0xec04a9)=>_0x292aaa(_0x3678f6,_0xec04a9,_0x1edfc5);let Z=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x58ac87,_0x36403e,_0x469c46,_0x3fa843,_0x295e08,_0x57ace7){const _0xdc6cc6=_0xa8fcb3;super(),this[_0xdc6cc6(0x1f3)]=_0x58ac87,this[_0xdc6cc6(0x1ea)]=_0x36403e,this[_0xdc6cc6(0xe9)]=_0x469c46,this[_0xdc6cc6(0x10a)]=_0x3fa843,this['_notificationService']=_0x295e08,this[_0xdc6cc6(0x1fa)]=_0x57ace7,this[_0xdc6cc6(0x1ba)](),this[_0xdc6cc6(0x2f6)]();}[_0xa8fcb3(0x1ba)](){const _0x5bd71b=_0xa8fcb3;this[_0x5bd71b(0x111)](this[_0x5bd71b(0x1f3)]['registerBeforeClose'](()=>{const _0x1eac14=_0x5bd71b;if(this['_localCacheService'][_0x1eac14(0x14d)][_0x1eac14(0x239)])return this['_localeService']['t'](_0x1eac14(0x20b));}));}[_0xa8fcb3(0x2f6)](){const _0x4f466f=_0xa8fcb3;this[_0x4f466f(0x111)](this['_collaborationUIEventService'][_0x4f466f(0x187)][_0x4f466f(0x185)](_0x12110f=>{const _0x14c9eb=_0x4f466f;_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0x2b2)]&&this['_messageService'][_0x14c9eb(0xbc)]({'type':p[_0x14c9eb(0x199)][_0x14c9eb(0x70)],'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x248))}),_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0x106)]&&this[_0x14c9eb(0x10a)][_0x14c9eb(0xbc)]({'type':p['MessageType'][_0x14c9eb(0x70)],'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x1fd))}),_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0x1b4)]&&this['_notificationService'][_0x14c9eb(0xbc)]({'title':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x78)),'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x162)),'type':_0x14c9eb(0x123),'duration':0x0}),_0x12110f['id']===u[_0x14c9eb(0xf8)]['CONFLICT']&&this[_0x14c9eb(0x10a)][_0x14c9eb(0xbc)]({'type':p['MessageType']['Error'],'content':this['_localeService']['t'](_0x14c9eb(0x1fd))+'('+_0x12110f[_0x14c9eb(0x28f)]+')'}),_0x12110f['id']===u['CollaborationUIEventId'][_0x14c9eb(0x75)]&&this['_messageService'][_0x14c9eb(0xbc)]({'type':p[_0x14c9eb(0x199)][_0x14c9eb(0x70)],'content':this['_localeService']['t'](_0x12110f['data']||'')}),_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0xce)]&&this[_0x14c9eb(0x10a)]['show']({'type':p['MessageType'][_0x14c9eb(0x70)],'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x207))}),_0x12110f['id']===u[_0x14c9eb(0xf8)][_0x14c9eb(0x2f9)]&&this[_0x14c9eb(0x10a)]['show']({'type':p[_0x14c9eb(0x199)][_0x14c9eb(0x190)],'content':this[_0x14c9eb(0x1fa)]['t'](_0x14c9eb(0x35b))}),_0x12110f['id']===u['CollaborationUIEventId'][_0x14c9eb(0x2d6)]&&this[_0x14c9eb(0x10a)][_0x14c9eb(0xbc)]({'type':p[_0x14c9eb(0x199)][_0x14c9eb(0x190)],'content':this['_localeService']['t'](_0x14c9eb(0x240))});}));}};Z=kt([y(0x0,O[_0xa8fcb3(0x28b)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x22a)])),y(0x3,O[_0xa8fcb3(0x2af)]),y(0x4,O[_0xa8fcb3(0xc8)]),y(0x5,a[_0xa8fcb3(0x271)](a['LocaleService']))],Z);var Ft=Object[_0xa8fcb3(0x2c0)],jt=(_0x5ea06e,_0x859b02,_0x71e485,_0x341cdc)=>{const _0x35f09c=_0xa8fcb3;for(var _0x99bc8d=_0x341cdc>0x1?void 0x0:_0x341cdc?Ft(_0x859b02,_0x71e485):_0x859b02,_0x5438b9=_0x5ea06e[_0x35f09c(0x250)]-0x1,_0x50a01c;_0x5438b9>=0x0;_0x5438b9--)(_0x50a01c=_0x5ea06e[_0x5438b9])&&(_0x99bc8d=_0x50a01c(_0x99bc8d)||_0x99bc8d);return _0x99bc8d;},z=(_0x1e1d2f,_0x4813b8)=>(_0x516601,_0x527a6)=>_0x4813b8(_0x516601,_0x527a6,_0x1e1d2f);let Q=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x35eb3a,_0x83b893,_0x53b628,_0x33f039){const _0xd0d618=_0xa8fcb3;super(),_(this,_0xd0d618(0x2bb)),(this[_0xd0d618(0x137)]=_0x35eb3a,this[_0xd0d618(0x1c4)]=_0x83b893,this['_logService']=_0x53b628,this[_0xd0d618(0x12f)]=_0x33f039,this['_init']());}[_0xa8fcb3(0x24a)](){const _0x177499=_0xa8fcb3;this[_0x177499(0x302)](),this['_initUnhandledRejectionListener'](),this[_0x177499(0x330)](),this[_0x177499(0x10f)]();}['_initUserListener'](){const _0x4eaefe=_0xa8fcb3;this[_0x4eaefe(0x111)](this['_collaborationSessionService']['socket$'][_0x4eaefe(0x185)](_0xdd2c5e=>{this['_memberID']=_0xdd2c5e==null?void 0x0:_0xdd2c5e['memberID'];}));}[_0xa8fcb3(0x302)](){const _0x45c272=_0xa8fcb3,_0x2a511c=_0xd34125=>{const _0x47999e=_0x2702;var _0x42b608;this['_uploadLog']('error',_0x47999e(0x21b)+_0xd34125[_0x47999e(0xaf)]+_0x47999e(0xba)+_0xd34125['filename']+':'+_0xd34125[_0x47999e(0x153)]+':'+_0xd34125[_0x47999e(0xe8)]+'\x0a'+(((_0x42b608=_0xd34125[_0x47999e(0x123)])==null?void 0x0:_0x42b608[_0x47999e(0xcc)])||''));};window[_0x45c272(0x261)](_0x45c272(0x123),_0x2a511c),this['disposeWithMe'](()=>{const _0x526b15=_0x45c272;window[_0x526b15(0x2eb)](_0x526b15(0x123),_0x2a511c);});}[_0xa8fcb3(0x2ad)](){const _0x31199e=_0xa8fcb3,_0x2b6436=_0x4d23c4=>{const _0x1b646b=_0x2702;this[_0x1b646b(0x191)](_0x1b646b(0x123),'[Unhandled\x20Rejection]:\x20'+_0x4d23c4[_0x1b646b(0x19f)]);};window[_0x31199e(0x261)]('unhandledrejection',_0x2b6436),this[_0x31199e(0x111)](()=>{const _0x26b08b=_0x31199e;window[_0x26b08b(0x2eb)](_0x26b08b(0x160),_0x2b6436);});}[_0xa8fcb3(0x330)](){const _0x5e7351=_0xa8fcb3,_0x25ade0=this[_0x5e7351(0x25a)][_0x5e7351(0x123)][_0x5e7351(0x30a)](this['_logService']);this['_logService'][_0x5e7351(0x123)]=(..._0x527e05)=>{const _0x1295c2=_0x5e7351,_0x123f92=_0x527e05[_0x1295c2(0x141)](_0x473630=>_0x473630 instanceof Error?_0x473630[_0x1295c2(0xaf)]+'\x0a'+_0x473630[_0x1295c2(0xcc)]:String(_0x473630))['join']('\x20');this[_0x1295c2(0x191)]('error',_0x1295c2(0x168)+_0x123f92),_0x25ade0(..._0x527e05);},this['disposeWithMe'](()=>{const _0x22cfbc=_0x5e7351;this[_0x22cfbc(0x25a)][_0x22cfbc(0x123)]=_0x25ade0;});}[_0xa8fcb3(0x191)](_0x48b840,_0x30ce70){const _0x89f7cc=_0xa8fcb3;try{const _0x12f01a={'userId':this[_0x89f7cc(0x2bb)],'logLabel':_0x48b840,'content':_0x30ce70};this[_0x89f7cc(0x1c4)][_0x89f7cc(0x305)](_0x89f7cc(0x1f4),{'body':_0x12f01a})[_0x89f7cc(0x15b)](()=>{});}catch{}}};Q=jt([z(0x0,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),z(0x1,a['Inject'](x[_0xa8fcb3(0x196)])),z(0x2,a[_0xa8fcb3(0x284)]),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0xa8fcb3(0x7c),Me={};var Ht=Object[_0xa8fcb3(0x2c0)],Wt=(_0x8c7ec,_0x313ef5,_0x3934a4,_0x300291)=>{const _0x2230ff=_0xa8fcb3;for(var _0x46a848=_0x300291>0x1?void 0x0:_0x300291?Ht(_0x313ef5,_0x3934a4):_0x313ef5,_0x459c91=_0x8c7ec[_0x2230ff(0x250)]-0x1,_0xa40f91;_0x459c91>=0x0;_0x459c91--)(_0xa40f91=_0x8c7ec[_0x459c91])&&(_0x46a848=_0xa40f91(_0x46a848)||_0x46a848);return _0x46a848;},Ae=(_0x247793,_0x250311)=>(_0x526325,_0x316087)=>_0x250311(_0x526325,_0x316087,_0x247793);let ee=class{constructor(_0x4217e3,_0x188dd5){const _0x4c2f50=_0xa8fcb3;this[_0x4c2f50(0x238)]=_0x4217e3,this[_0x4c2f50(0x71)]=_0x188dd5;}[_0xa8fcb3(0x268)](_0x1c0af6){const _0x3086b6=_0xa8fcb3;this[_0x3086b6(0xb0)](_0x1c0af6),this[_0x3086b6(0x2fe)](_0x1c0af6);}[_0xa8fcb3(0xb8)](_0xaa4258){const _0x4b2b71=_0xa8fcb3,{unitID:_0x40e813}=_0xaa4258,_0x378a47=this[_0x4b2b71(0x71)][_0x4b2b71(0x136)](_0x40e813)[_0x4b2b71(0x11f)](C[_0x4b2b71(0x107)]),{redoCache:_0x19d263}=_0x378a47[_0x4b2b71(0x131)]();if(_0x19d263[_0x4b2b71(0x250)]===0x0)return _0xaa4258;let _0x351249=a[_0x4b2b71(0xc1)]['deepClone'](_0xaa4258[_0x4b2b71(0x35a)][0x0]);for(let _0x36e20d=0x0;_0x36e20d<_0x19d263[_0x4b2b71(0x250)];_0x36e20d++){const _0x19f96f={'id':'doc.mutation.rich-text-editing','params':{..._0x19d263[_0x36e20d]}},_0x19f332=this[_0x4b2b71(0x238)][_0x4b2b71(0x2ca)](_0x351249,_0x19f96f,!0x1);if(v[_0x4b2b71(0x1af)](_0x19f332))throw _0x19f332[_0x4b2b71(0x123)];_0x351249=_0x19f332[_0x4b2b71(0x1a8)];}return{...a['Tools']['deepClone'](_0xaa4258),'mutations':[_0x351249]};}[_0xa8fcb3(0xb0)](_0x5622ed){const _0x45221c=_0xa8fcb3,{unitID:_0x54b4e5}=_0x5622ed,_0x118ebb=this[_0x45221c(0x71)]['getRenderById'](_0x54b4e5)[_0x45221c(0x11f)](C[_0x45221c(0x107)]),{undoCache:_0x2ce7ec,redoCache:_0x41f6fc}=_0x118ebb[_0x45221c(0x131)]();if(_0x2ce7ec[_0x45221c(0x250)]===0x0||_0x41f6fc[_0x45221c(0x250)]===0x0)return;const _0x257e29=[],_0x2ab8f3=[];let _0x46d248=a[_0x45221c(0xc1)][_0x45221c(0x244)](_0x5622ed['mutations'][0x0]),_0x35d6dd=a[_0x45221c(0xc1)][_0x45221c(0x244)](_0x5622ed['mutations'][0x0]);for(let _0x4db4a7=_0x2ce7ec['length']-0x1;_0x4db4a7>=0x0;_0x4db4a7--){const _0x49bb3b={'id':_0x45221c(0x218),'params':{..._0x2ce7ec[_0x4db4a7]}},_0x28319b={'id':_0x45221c(0x218),'params':{..._0x41f6fc[_0x4db4a7]}},_0x34b645=this['_transformService'][_0x45221c(0x2ca)](_0x46d248,_0x49bb3b,!0x1),_0x32b016=this[_0x45221c(0x238)][_0x45221c(0x2ca)](_0x35d6dd,_0x28319b,!0x1);if(v[_0x45221c(0x1af)](_0x34b645))throw _0x34b645[_0x45221c(0x123)];if(v[_0x45221c(0x1af)](_0x32b016))throw _0x32b016['error'];_0x257e29[_0x45221c(0x17b)](_0x34b645[_0x45221c(0x246)]['params']),_0x2ab8f3[_0x45221c(0x17b)](_0x32b016['m2Prime'][_0x45221c(0x215)]),_0x46d248=_0x34b645[_0x45221c(0x1a8)],_0x35d6dd=_0x32b016[_0x45221c(0x1a8)];}_0x118ebb[_0x45221c(0x22b)]({'undoCache':_0x257e29,'redoCache':_0x2ab8f3});}[_0xa8fcb3(0x2fe)](_0x101a59){const _0x220304=_0xa8fcb3,{unitID:_0x180c01}=_0x101a59,_0x529f6b=this[_0x220304(0x71)][_0x220304(0x136)](_0x180c01)[_0x220304(0x11f)](C[_0x220304(0x107)]),_0x2d0cc4=_0x529f6b[_0x220304(0x170)]();if(_0x2d0cc4==null)return;const _0x57e23a=[{'id':_0x220304(0x218),'params':{'unitId':_0x101a59[_0x220304(0x1a9)],'actions':null,'textRanges':[_0x2d0cc4]}}],_0x15b0f0=this['_transformService'][_0x220304(0x2f0)](_0x101a59,_0x57e23a);if(!v['isTransformMutationsWithChangesetSuccess'](_0x15b0f0))throw _0x15b0f0[_0x220304(0x123)];const _0x3125c5=_0x15b0f0['m2Prime'][0x0][_0x220304(0x215)][_0x220304(0xb9)];Array[_0x220304(0x2e3)](_0x3125c5)&&_0x3125c5[_0x220304(0x250)]&&_0x529f6b[_0x220304(0x83)](_0x3125c5[0x0]);}};ee=Wt([Ae(0x0,v[_0xa8fcb3(0x227)]),Ae(0x1,T[_0xa8fcb3(0x144)])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x20e7ad,_0x19b90b,_0x3c97c7,_0x49c0ee)=>{const _0x4e9ae8=_0xa8fcb3;for(var _0x1b0b92=_0x49c0ee>0x1?void 0x0:_0x49c0ee?Vt(_0x19b90b,_0x3c97c7):_0x19b90b,_0x5080df=_0x20e7ad[_0x4e9ae8(0x250)]-0x1,_0x5eaf0e;_0x5080df>=0x0;_0x5080df--)(_0x5eaf0e=_0x20e7ad[_0x5080df])&&(_0x1b0b92=_0x5eaf0e(_0x1b0b92)||_0x1b0b92);return _0x1b0b92;},Ie=(_0x24ea78,_0x43f011)=>(_0x485dae,_0x1e8c82)=>_0x43f011(_0x485dae,_0x1e8c82,_0x24ea78);let te=class{constructor(_0x4b808b,_0x48af12,_0x5190b4){const _0x2cdcb7=_0xa8fcb3;this['_injector']=_0x4b808b,this['_transformService']=_0x48af12,this[_0x2cdcb7(0x1c5)]=_0x5190b4;}[_0xa8fcb3(0x13d)](_0x1a8b8e){const _0x161e11=_0xa8fcb3;this[_0x161e11(0x119)](_0x1a8b8e);}[_0xa8fcb3(0xb8)](_0x471085){const _0x270c60=_0xa8fcb3,{unitID:_0x2b3d33}=_0x471085,{collaboration:_0x2ae6e9}=this[_0x270c60(0x1c5)]['getStateCache'](_0x2b3d33);if(_0x2ae6e9[_0x270c60(0x250)]===0x0)return _0x471085;let _0x22da86=a['Tools']['deepClone'](_0x471085[_0x270c60(0x35a)][0x0]);for(let _0x2bc8b0=0x0;_0x2bc8b0<_0x2ae6e9[_0x270c60(0x250)];_0x2bc8b0++){const _0x5019bf={'id':_0x270c60(0x218),'params':{'unitId':_0x2ae6e9[_0x2bc8b0][_0x270c60(0x2b0)],..._0x2ae6e9[_0x2bc8b0]['redoState']}},_0x124fe3=this['_transformService']['transformMutation'](_0x22da86,_0x5019bf,!0x1);if(v[_0x270c60(0x1af)](_0x124fe3))throw _0x124fe3[_0x270c60(0x123)];_0x22da86=_0x124fe3[_0x270c60(0x1a8)];}return{...a['Tools'][_0x270c60(0x244)](_0x471085),'mutations':[_0x22da86]};}[_0xa8fcb3(0x119)](_0x2e0010){const _0x46b396=_0xa8fcb3,{unitID:_0x141b52}=_0x2e0010,{history:_0x19613b,collaboration:_0x1ce3dd}=this[_0x46b396(0x1c5)][_0x46b396(0x31b)](_0x141b52);if(_0x19613b[_0x46b396(0x250)]===0x0&&_0x1ce3dd[_0x46b396(0x250)]===0x0)return;const _0x587ab6=[],_0xfa4d28=[];let _0x3d4cb8=a[_0x46b396(0xc1)][_0x46b396(0x244)](_0x2e0010['mutations'][0x0]),_0x3c4fe4=a[_0x46b396(0xc1)][_0x46b396(0x244)](_0x2e0010[_0x46b396(0x35a)][0x0]);for(let _0xe226d2=_0x19613b[_0x46b396(0x250)]-0x1;_0xe226d2>=0x0;_0xe226d2--){const _0x407dd1={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x19613b[_0xe226d2][_0x46b396(0x2b0)],..._0x19613b[_0xe226d2][_0x46b396(0x184)]}},_0x45e2c7={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x19613b[_0xe226d2][_0x46b396(0x2b0)],..._0x19613b[_0xe226d2][_0x46b396(0xe3)]}},_0x15e546=this[_0x46b396(0x238)][_0x46b396(0x2ca)](_0x3d4cb8,_0x407dd1,!0x1),_0x16ae37=this[_0x46b396(0x238)][_0x46b396(0x2ca)](_0x3c4fe4,_0x45e2c7,!0x1);if(v[_0x46b396(0x1af)](_0x15e546))throw _0x15e546['error'];if(v['isTransformMutationFailure'](_0x16ae37))throw _0x16ae37['error'];_0x587ab6[_0x46b396(0x17b)]({..._0x19613b[_0xe226d2],'undoState':_0x15e546[_0x46b396(0x246)][_0x46b396(0x215)],'redoState':_0x16ae37[_0x46b396(0x246)][_0x46b396(0x215)]}),_0x3d4cb8=_0x15e546[_0x46b396(0x1a8)],_0x3c4fe4=_0x16ae37[_0x46b396(0x1a8)];}_0x3d4cb8=a[_0x46b396(0xc1)][_0x46b396(0x244)](_0x2e0010[_0x46b396(0x35a)][0x0]),_0x3c4fe4=a['Tools'][_0x46b396(0x244)](_0x2e0010[_0x46b396(0x35a)][0x0]);for(let _0x200ef2=_0x1ce3dd[_0x46b396(0x250)]-0x1;_0x200ef2>=0x0;_0x200ef2--){const _0x17a9d8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ce3dd[_0x200ef2][_0x46b396(0x2b0)],..._0x1ce3dd[_0x200ef2][_0x46b396(0x184)]}},_0x222eb1={'id':_0x46b396(0x218),'params':{'unitId':_0x1ce3dd[_0x200ef2][_0x46b396(0x2b0)],..._0x1ce3dd[_0x200ef2][_0x46b396(0xe3)]}},_0x480776=this[_0x46b396(0x238)]['transformMutation'](_0x3d4cb8,_0x17a9d8,!0x1),_0x2694e3=this['_transformService']['transformMutation'](_0x3c4fe4,_0x222eb1,!0x1);if(v[_0x46b396(0x1af)](_0x480776))throw _0x480776[_0x46b396(0x123)];if(v[_0x46b396(0x1af)](_0x2694e3))throw _0x2694e3[_0x46b396(0x123)];_0xfa4d28[_0x46b396(0x17b)]({..._0x1ce3dd[_0x200ef2],'undoState':_0x480776[_0x46b396(0x246)][_0x46b396(0x215)],'redoState':_0x2694e3[_0x46b396(0x246)][_0x46b396(0x215)]}),_0x3d4cb8=_0x480776[_0x46b396(0x1a8)],_0x3c4fe4=_0x2694e3['m1Prime'];}this['_docStateChangeManagerService'][_0x46b396(0x34f)](_0x141b52,{'history':_0x587ab6,'collaboration':_0xfa4d28});}};te=Gt([Ie(0x0,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),Ie(0x1,v[_0xa8fcb3(0x227)]),Ie(0x2,a['Inject'](C[_0xa8fcb3(0x28a)]))],te);var Xt=Object[_0xa8fcb3(0x2c0)],Kt=(_0x353af5,_0x1daf17,_0x50bd0a,_0x130c18)=>{const _0x4b495f=_0xa8fcb3;for(var _0x331ba8=_0x130c18>0x1?void 0x0:_0x130c18?Xt(_0x1daf17,_0x50bd0a):_0x1daf17,_0x1fd5f8=_0x353af5[_0x4b495f(0x250)]-0x1,_0x5b4353;_0x1fd5f8>=0x0;_0x1fd5f8--)(_0x5b4353=_0x353af5[_0x1fd5f8])&&(_0x331ba8=_0x5b4353(_0x331ba8)||_0x331ba8);return _0x331ba8;},Pe=(_0x3efade,_0x1ae317)=>(_0x17fca9,_0x7626ed)=>_0x1ae317(_0x17fca9,_0x7626ed,_0x3efade);let ie=class{constructor(_0x1eb1ac,_0x3aebf5){const _0x5b596b=_0xa8fcb3;this[_0x5b596b(0x137)]=_0x1eb1ac,this['_transformService']=_0x3aebf5;}[_0xa8fcb3(0x85)](_0x37f15c){const _0x244dc1=_0xa8fcb3;var _0x3e487b;const _0x5109f7=this['_injector']['get'](V[_0x244dc1(0x159)]),_0x48ba5d=(_0x3e487b=_0x5109f7['getDocRanges']())!=null?_0x3e487b:[];if(_0x48ba5d[_0x244dc1(0x250)]===0x0)return;const _0xe99154=_0x37f15c['unitID'],_0x256042=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xe99154,'actions':null,'textRanges':_0x48ba5d}}],_0x149b4e=this[_0x244dc1(0x238)][_0x244dc1(0x2f0)](_0x37f15c,_0x256042);if(!v[_0x244dc1(0x359)](_0x149b4e))throw _0x149b4e[_0x244dc1(0x123)];const _0x5dfe1f=_0x149b4e['m2Prime'][0x0][_0x244dc1(0x215)]['textRanges'];Array['isArray'](_0x5dfe1f)&&_0x5dfe1f[_0x244dc1(0x250)]&&_0x5109f7[_0x244dc1(0x259)](_0x5dfe1f,{'unitId':_0xe99154,'subUnitId':_0xe99154},!0x1);}};ie=Kt([Pe(0x0,a['Inject'](a[_0xa8fcb3(0x1c7)])),Pe(0x1,v[_0xa8fcb3(0x227)])],ie);var qt=Object[_0xa8fcb3(0x2c0)],zt=(_0x3d7abd,_0x2bb3f4,_0x5bcfba,_0x4e735b)=>{const _0x177276=_0xa8fcb3;for(var _0x190c4c=_0x4e735b>0x1?void 0x0:_0x4e735b?qt(_0x2bb3f4,_0x5bcfba):_0x2bb3f4,_0x3aa9f5=_0x3d7abd[_0x177276(0x250)]-0x1,_0x142adb;_0x3aa9f5>=0x0;_0x3aa9f5--)(_0x142adb=_0x3d7abd[_0x3aa9f5])&&(_0x190c4c=_0x142adb(_0x190c4c)||_0x190c4c);return _0x190c4c;},N=(_0x36d410,_0x3f7b28)=>(_0x3e61b3,_0xfea064)=>_0x3f7b28(_0x3e61b3,_0xfea064,_0x36d410);let se=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x31477b,_0x10e31b,_0x332e2d,_0x5bca66,_0x4f98cb,_0x203843,_0x112b15,_0xb277f6){const _0x232357=_0xa8fcb3;super(),_(this,'_status$',new I['BehaviorSubject'](u['CollaborationStatus'][_0x232357(0x1c3)])),(this[_0x232357(0x1c5)]=_0x31477b,this[_0x232357(0x30d)]=_0x10e31b,this[_0x232357(0x18d)]=_0x332e2d,this[_0x232357(0xa4)]=_0x5bca66,this[_0x232357(0x255)]=_0x4f98cb,this[_0x232357(0x29d)]=_0x203843,this[_0x232357(0x10a)]=_0x112b15,this[_0x232357(0x1fa)]=_0xb277f6,this[_0x232357(0x2d0)]());}[_0xa8fcb3(0x2d0)](){const _0x16bb09=_0xa8fcb3;this['disposeWithMe'](this[_0x16bb09(0x30d)][_0x16bb09(0x82)][_0x16bb09(0x185)](_0x5ebc05=>{const _0x310636=_0x16bb09,_0x1544de=this[_0x310636(0x1c5)][_0x310636(0xea)][_0x310636(0x185)](_0x2da63b=>{const _0x2a180f=_0x310636;if(_0x2da63b==null)return;const {unitId:_0x3c0217,redoState:_0x2b20c9,commandId:_0x3da0b8}=_0x2da63b;if(_0x3c0217!==_0x5ebc05[_0x2a180f(0x1a9)])return;const _0x5f0899={'id':_0x3da0b8,'type':a[_0x2a180f(0x9c)][_0x2a180f(0x80)],'params':{'unitId':_0x3c0217,'actions':_0x2b20c9[_0x2a180f(0x236)],'textRanges':null}};_0x5ebc05[_0x2a180f(0x222)](_0x5f0899);});if(_0x5ebc05[_0x310636(0x111)](_0x1544de),_0x5ebc05 instanceof u[_0x310636(0x282)]){const _0x207b6d={'onTransformIME':_0x48a015=>this[_0x310636(0x18d)][_0x310636(0x268)](_0x48a015),'onTransformState':_0x30798f=>this[_0x310636(0xa4)][_0x310636(0x13d)](_0x30798f),'onTransformSelections':_0x5c8578=>this[_0x310636(0x255)][_0x310636(0x85)](_0x5c8578),'onSyncEditingCollabCursor':_0x47b0a5=>this[_0x310636(0x29d)]['syncEditingCollabCursor'](_0x47b0a5),'onTransformRemoteChangesetByIMECache':_0x3f1173=>this['_docTransformIMECacheService'][_0x310636(0xb8)](_0x3f1173),'onTransformRemoteChangesetByStateCache':_0x24a01b=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x24a01b)};_0x5ebc05['addHandlerCallback'](_0x207b6d);}}));}};se=zt([N(0x0,a['Inject'](C[_0xa8fcb3(0x28a)])),N(0x1,a[_0xa8fcb3(0x271)](u[_0xa8fcb3(0x1f8)])),N(0x2,a[_0xa8fcb3(0x271)](ee)),N(0x3,a[_0xa8fcb3(0x271)](te)),N(0x4,a['Inject'](ie)),N(0x5,a[_0xa8fcb3(0x271)](Re)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],se);var G=(_0x306027=>(_0x306027[_0x306027['UNDEFINED']=0x0]=_0xa8fcb3(0x27a),_0x306027[_0x306027['OK']=0x1]='OK',_0x306027[_0x306027[_0xa8fcb3(0x235)]=0x2]=_0xa8fcb3(0x235),_0x306027[_0x306027[_0xa8fcb3(0x1b4)]=0x3]=_0xa8fcb3(0x1b4),_0x306027[_0x306027[_0xa8fcb3(0x232)]=0x4]=_0xa8fcb3(0x232),_0x306027[_0x306027[_0xa8fcb3(0xb2)]=0x5]=_0xa8fcb3(0xb2),_0x306027[_0x306027[_0xa8fcb3(0x2b1)]=0x6]=_0xa8fcb3(0x2b1),_0x306027[_0x306027[_0xa8fcb3(0x197)]=0x7]=_0xa8fcb3(0x197),_0x306027[_0x306027[_0xa8fcb3(0x2fb)]=0x8]=_0xa8fcb3(0x2fb),_0x306027[_0x306027[_0xa8fcb3(0x28d)]=0x9]=_0xa8fcb3(0x28d),_0x306027[_0x306027[_0xa8fcb3(0x8f)]=0xa]='LOGIN_FAILED',_0x306027[_0x306027[_0xa8fcb3(0x12a)]=0xb]=_0xa8fcb3(0x12a),_0x306027[_0x306027[_0xa8fcb3(0x2e2)]=0xc]=_0xa8fcb3(0x2e2),_0x306027[_0x306027[_0xa8fcb3(0x2de)]=0xd]=_0xa8fcb3(0x2de),_0x306027[_0x306027[_0xa8fcb3(0x2a2)]=0xe]=_0xa8fcb3(0x2a2),_0x306027[_0x306027['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0xa8fcb3(0x8d),_0x306027[_0x306027[_0xa8fcb3(0x273)]=0x10]=_0xa8fcb3(0x273),_0x306027[_0x306027[_0xa8fcb3(0x11a)]=0x64]=_0xa8fcb3(0x11a),_0x306027[_0x306027[_0xa8fcb3(0x2dd)]=0x65]=_0xa8fcb3(0x2dd),_0x306027[_0x306027[_0xa8fcb3(0x189)]=0xc9]=_0xa8fcb3(0x189),_0x306027[_0x306027[_0xa8fcb3(0x253)]=0xca]=_0xa8fcb3(0x253),_0x306027[_0x306027[_0xa8fcb3(0x343)]=0x1389]=_0xa8fcb3(0x343),_0x306027[_0x306027[_0xa8fcb3(0x2b9)]=0x1771]=_0xa8fcb3(0x2b9),_0x306027[_0x306027['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xa8fcb3(0xf5),_0x306027[_0x306027['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0xa8fcb3(0x1ad),_0x306027[_0x306027['APPLY_REJECT']=0x1b59]=_0xa8fcb3(0x2a5),_0x306027[_0x306027[_0xa8fcb3(0x262)]=0x1b5a]=_0xa8fcb3(0x262),_0x306027[_0x306027[_0xa8fcb3(0x2c5)]=0x1b5b]=_0xa8fcb3(0x2c5),_0x306027[_0x306027['APPLY_PERMISSION_DENIED']=0x1b5c]=_0xa8fcb3(0x8c),_0x306027[_0x306027[_0xa8fcb3(0x21f)]=0x1b5d]=_0xa8fcb3(0x21f),_0x306027[_0x306027['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0xa8fcb3(0x277),_0x306027[_0x306027[_0xa8fcb3(0xbf)]=0x2329]=_0xa8fcb3(0xbf),_0x306027[_0x306027[_0xa8fcb3(0x129)]=0x232a]=_0xa8fcb3(0x129),_0x306027[_0x306027['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xa8fcb3(0x209),_0x306027[_0x306027[_0xa8fcb3(0x195)]=0x232c]=_0xa8fcb3(0x195),_0x306027[_0x306027[_0xa8fcb3(0x311)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x306027[_0x306027[_0xa8fcb3(0x258)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x306027[_0x306027[_0xa8fcb3(0x1e0)]=0x2712]=_0xa8fcb3(0x1e0),_0x306027[_0x306027['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x306027[_0x306027[_0xa8fcb3(0x1d1)]=0x2714]=_0xa8fcb3(0x1d1),_0x306027[_0x306027[_0xa8fcb3(0x142)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x306027[_0x306027[_0xa8fcb3(0x1e7)]=0x271b]=_0xa8fcb3(0x1e7),_0x306027[_0x306027[_0xa8fcb3(0x79)]=0x271c]=_0xa8fcb3(0x79),_0x306027[_0x306027[_0xa8fcb3(0x84)]=0x271d]=_0xa8fcb3(0x84),_0x306027[_0x306027[_0xa8fcb3(0x2bd)]=0x271e]=_0xa8fcb3(0x2bd),_0x306027[_0x306027['YUUMI_AI_RUN_FAILED']=0x271f]=_0xa8fcb3(0x21a),_0x306027[_0x306027[_0xa8fcb3(0x291)]=0x2720]=_0xa8fcb3(0x291),_0x306027[_0x306027['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0xa8fcb3(0xae),_0x306027[_0x306027[_0xa8fcb3(0x25d)]=0x2ee1]=_0xa8fcb3(0x25d),_0x306027[_0x306027[_0xa8fcb3(0x2c4)]=0x2ee2]=_0xa8fcb3(0x2c4),_0x306027[_0x306027['INVITE_CODE_REQUIRED']=0x2ee3]=_0xa8fcb3(0x1f1),_0x306027[_0x306027[_0xa8fcb3(0xef)]=0x2ee4]=_0xa8fcb3(0xef),_0x306027[_0x306027['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x306027[_0x306027['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0xa8fcb3(0x1c0),_0x306027[_0x306027[_0xa8fcb3(0x1fc)]=0x32ca]=_0xa8fcb3(0x1fc),_0x306027[_0x306027[_0xa8fcb3(0x1a2)]=0x32cb]=_0xa8fcb3(0x1a2),_0x306027[_0x306027[_0xa8fcb3(0x1ff)]=0x36b1]=_0xa8fcb3(0x1ff),_0x306027[_0x306027[_0xa8fcb3(0x7a)]=0x36b2]=_0xa8fcb3(0x7a),_0x306027[_0x306027['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0xa8fcb3(0x285),_0x306027[_0x306027[_0xa8fcb3(0x15e)]=0x36b4]=_0xa8fcb3(0x15e),_0x306027[_0x306027[_0xa8fcb3(0x28c)]=0x36b5]=_0xa8fcb3(0x28c),_0x306027[_0x306027['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0xa8fcb3(0x1d9),_0x306027[_0x306027[_0xa8fcb3(0x2bf)]=0x36b7]=_0xa8fcb3(0x2bf),_0x306027[_0x306027[_0xa8fcb3(0x1d5)]=0x36b8]=_0xa8fcb3(0x1d5),_0x306027[_0x306027['ENTITLE_CHAT_LIMIT_EXCEED']=0x3715]='ENTITLE_CHAT_LIMIT_EXCEED',_0x306027[_0x306027['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0xa8fcb3(0x2fa),_0x306027[_0x306027[_0xa8fcb3(0x220)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x306027[_0x306027['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]=_0xa8fcb3(0x34b),_0x306027[_0x306027['REDEMPTION_INVALID_CODE']=0x3a99]=_0xa8fcb3(0x1dd),_0x306027[_0x306027[_0xa8fcb3(0x1a3)]=0x3a9a]=_0xa8fcb3(0x1a3),_0x306027[_0x306027[_0xa8fcb3(0x32b)]=0x3a9b]=_0xa8fcb3(0x32b),_0x306027[_0x306027['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0xa8fcb3(0x2c7),_0x306027[_0x306027[_0xa8fcb3(0x2e8)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x306027[_0x306027[_0xa8fcb3(0x2e0)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x306027[_0x306027[_0xa8fcb3(0x1c6)]=0x3a9f]=_0xa8fcb3(0x1c6),_0x306027[_0x306027[_0xa8fcb3(0xc3)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x306027[_0x306027[_0xa8fcb3(0x341)]=-0x1]='UNRECOGNIZED',_0x306027))(G||{});function Jt(_0x59e94c){const _0x5ce27f=_0xa8fcb3;var _0x33c395,_0x32ae53;const _0xf79597=(_0x33c395=_0x59e94c[_0x5ce27f(0x19c)])==null?void 0x0:_0x33c395[_0x5ce27f(0x14b)],_0x507158=((_0x32ae53=_0x59e94c['stageInfo'])==null?void 0x0:_0x32ae53[_0x5ce27f(0x312)])||0x0;return _0xf79597===B[_0x5ce27f(0x108)][_0x5ce27f(0x20a)]&&_0x507158>0x0;}function Zt(_0xc135a4){const _0x3fcd16=_0xa8fcb3;return _0xc135a4[_0x3fcd16(0x1cc)]===B[_0x3fcd16(0xd6)][_0x3fcd16(0x283)];}var Qt=Object[_0xa8fcb3(0x2c0)],ei=(_0x4d41f5,_0x488cd8,_0x3146aa,_0x4b1d41)=>{for(var _0x1234ae=_0x4b1d41>0x1?void 0x0:_0x4b1d41?Qt(_0x488cd8,_0x3146aa):_0x488cd8,_0x5a6cc5=_0x4d41f5['length']-0x1,_0x4036d2;_0x5a6cc5>=0x0;_0x5a6cc5--)(_0x4036d2=_0x4d41f5[_0x5a6cc5])&&(_0x1234ae=_0x4036d2(_0x1234ae)||_0x1234ae);return _0x1234ae;},L=(_0x2d6851,_0x17ae04)=>(_0x410059,_0x786fd6)=>_0x17ae04(_0x410059,_0x786fd6,_0x2d6851);const ti=_0xa8fcb3(0x27f),ii='/universer-api/license/formula/limit/start',si='/universer-api/license/formula/limit/done';let ne=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x816f54,_0x40d602,_0x1afc0d,_0x3d17bf,_0x4aa44a,_0x272e6d,_0x8fd77){const _0x33f075=_0xa8fcb3;super(),_(this,_0x33f075(0x16e),null),_(this,_0x33f075(0x281),0x0),_(this,_0x33f075(0x110),0x0),_(this,_0x33f075(0x121),[]),_(this,_0x33f075(0x1df),0x0),(this['_messageService']=_0x816f54,this[_0x33f075(0x72)]=_0x40d602,this['_configService']=_0x1afc0d,this[_0x33f075(0x1c4)]=_0x3d17bf,this['_univerInstanceService']=_0x4aa44a,this[_0x33f075(0x25a)]=_0x272e6d,this[_0x33f075(0x1fa)]=_0x8fd77,this['_initCommandInterceptor']());}[_0xa8fcb3(0x326)](){const _0x5b96d8=_0xa8fcb3;this[_0x5b96d8(0x111)](this[_0x5b96d8(0x72)][_0x5b96d8(0x33f)]((_0x2a3102,_0x526cb9)=>{const _0x5c9a74=_0x5b96d8;var _0x3f5981;if(_0x2a3102['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x2b9f6c=_0x2a3102[_0x5c9a74(0x215)];if(!this[_0x5c9a74(0x18f)]((_0x3f5981=_0x2b9f6c['dirtyRanges'])!=null?_0x3f5981:[]))return;if(!this[_0x5c9a74(0x25e)]())throw this[_0x5c9a74(0x164)](_0x2a3102,_0x526cb9),this[_0x5c9a74(0x32a)](),new a['CanceledError']();})),this[_0x5b96d8(0x111)](this['_commandService'][_0x5b96d8(0xc6)]((_0x241ed8,_0x522e96)=>{const _0x299ea9=_0x5b96d8;if(_0x241ed8['id']!==B[_0x299ea9(0x89)]['id'])return;const _0x5240d8=_0x241ed8[_0x299ea9(0x215)];if(Jt(_0x5240d8)){const _0x1abb34=a[_0x299ea9(0x124)]();this[_0x299ea9(0x121)][_0x299ea9(0x336)](_0x1abb34),this[_0x299ea9(0x205)](_0x1abb34);}else{if(Zt(_0x5240d8)&&this[_0x299ea9(0x121)][_0x299ea9(0x250)]>0x0){const _0x1710f9=this[_0x299ea9(0x121)][_0x299ea9(0x2d5)]();this['_releaseCalculationLimit'](_0x1710f9);}}}));}[_0xa8fcb3(0x229)](){const _0x193277=_0xa8fcb3;super[_0x193277(0x229)](),this[_0x193277(0x20c)](),this[_0x193277(0x121)]=[],this[_0x193277(0x110)]=0x0,this[_0x193277(0x281)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0xf8955a,_0x4e2b7c){const _0x3783e3=_0xa8fcb3;for(let _0x5ac5eb=0x0;_0x5ac5eb<0x1e;_0x5ac5eb++)try{if(await this['_getFormulaLimitStatus'](),this[_0x3783e3(0x25e)]()){this[_0x3783e3(0xf9)](_0xf8955a,_0x4e2b7c),this[_0x3783e3(0x10a)]['show']({'content':this[_0x3783e3(0x1fa)]['t'](_0x3783e3(0x143)),'type':p['MessageType'][_0x3783e3(0x2fd)]});return;}await new Promise(_0xb3957c=>{const _0x4817e3=_0x3783e3;this[_0x4817e3(0x16e)]=window['setTimeout'](_0xb3957c,0x3e8);});}catch(_0x153c00){this[_0x3783e3(0x25a)][_0x3783e3(0x123)](_0x153c00);}this['_messageService']['show']({'content':this[_0x3783e3(0x1fa)]['t'](_0x3783e3(0x113)),'type':p[_0x3783e3(0x199)][_0x3783e3(0x190)]});}[_0xa8fcb3(0xf9)](_0x5361c7,_0x40f446){const _0x4a357a=_0xa8fcb3;try{this[_0x4a357a(0x72)][_0x4a357a(0xa8)](_0x5361c7['id'],_0x5361c7[_0x4a357a(0x215)],_0x40f446);}catch(_0x577500){this[_0x4a357a(0x25a)]['error'](_0x577500);}}[_0xa8fcb3(0x2ab)](_0xd97e62,_0x748b00){const _0x2b87ea=_0xa8fcb3;_0x748b00<this[_0x2b87ea(0x1df)]||(this[_0x2b87ea(0x1df)]=_0x748b00,this[_0x2b87ea(0x281)]=Number[_0x2b87ea(0x26f)](_0xd97e62[_0x2b87ea(0x92)]),this['_currentUsage']=Number[_0x2b87ea(0x26f)](_0xd97e62[_0x2b87ea(0x257)]));}async[_0xa8fcb3(0x205)](_0x4d196a){const _0x133f66=_0xa8fcb3;var _0x451307,_0x4c9ba4;const _0xc7e5d5=Date[_0x133f66(0x322)]();try{const _0x25d8a0=((_0x451307=this['_configService']['getConfig'](u[_0x133f66(0x8e)]))==null?void 0x0:_0x451307[_0x133f66(0x2da)])||ii,_0x2a96e3=(await this['_httpService'][_0x133f66(0x305)](_0x25d8a0,{'body':JSON['stringify']({'taskId':_0x4d196a})}))[_0x133f66(0x1f0)];if(((_0x4c9ba4=_0x2a96e3[_0x133f66(0x123)])==null?void 0x0:_0x4c9ba4['code'])!==G['OK'])return;this[_0x133f66(0x2ab)](_0x2a96e3[_0x133f66(0x74)],_0xc7e5d5);}catch(_0x45d633){this[_0x133f66(0x25a)]['error'](_0x45d633);}}async['_getFormulaLimitStatus'](_0x2c708c){const _0x67af67=_0xa8fcb3;var _0xa5f9e4,_0x310b06;const _0xaf02ef=Date[_0x67af67(0x322)]();try{const _0xfef121=((_0xa5f9e4=this[_0x67af67(0x34e)][_0x67af67(0x186)](u[_0x67af67(0x8e)]))==null?void 0x0:_0xa5f9e4[_0x67af67(0x2c1)])||ti,_0xec47de=_0x2c708c?_0xfef121+_0x67af67(0xb6)+encodeURIComponent(_0x2c708c):_0xfef121,_0x1688bf=(await this[_0x67af67(0x1c4)][_0x67af67(0x27d)](_0xec47de))['body'];if(((_0x310b06=_0x1688bf['error'])==null?void 0x0:_0x310b06[_0x67af67(0x2be)])!==G['OK'])return;this[_0x67af67(0x2ab)](_0x1688bf['limitInfo'],_0xaf02ef);}catch(_0x13bc8a){this['_logService'][_0x67af67(0x123)](_0x13bc8a);}}async['_releaseCalculationLimit'](_0x31d297){const _0x5010e7=_0xa8fcb3;var _0x27da59,_0xa845c4;const _0x43123b=Date[_0x5010e7(0x322)]();try{const _0x12a15c=((_0x27da59=this['_configService'][_0x5010e7(0x186)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x27da59[_0x5010e7(0x9d)])||si,_0x198b42=(await this['_httpService']['post'](_0x12a15c,{'body':JSON[_0x5010e7(0x1f6)]({'taskId':_0x31d297})}))[_0x5010e7(0x1f0)];if(((_0xa845c4=_0x198b42['error'])==null?void 0x0:_0xa845c4[_0x5010e7(0x2be)])!==G['OK'])return;this[_0x5010e7(0x2ab)](_0x198b42['limitInfo'],_0x43123b);}catch(_0x3674e1){this[_0x5010e7(0x25a)][_0x5010e7(0x123)](_0x3674e1);}}[_0xa8fcb3(0x25e)](){const _0x2be403=_0xa8fcb3;return this[_0x2be403(0x281)]===0x0?!0x0:this['_maxFormulaLimit']-this['_currentUsage']>0x0;}[_0xa8fcb3(0x20c)](){const _0x398f89=_0xa8fcb3;this[_0x398f89(0x16e)]&&(clearTimeout(this[_0x398f89(0x16e)]),this['_pollingInterval']=null);}[_0xa8fcb3(0x32a)](){const _0x366dda=_0xa8fcb3;this[_0x366dda(0x10a)][_0x366dda(0xbc)]({'content':this[_0x366dda(0x1fa)]['t'](_0x366dda(0x272)),'type':p[_0x366dda(0x199)][_0x366dda(0x11b)]});}[_0xa8fcb3(0x18f)](_0x20d65b){const _0x3e2502=_0xa8fcb3;for(const _0x522049 of _0x20d65b){const {unitId:_0x1589a3,sheetId:_0xd1cfc3,range:_0x225156}=_0x522049,_0x171f0f=this[_0x3e2502(0x140)]['getUnit'](_0x1589a3);if(!_0x171f0f)continue;const _0x319cdd=_0x171f0f[_0x3e2502(0x1ab)](_0xd1cfc3);if(!_0x319cdd)continue;const _0x42a238=_0x319cdd[_0x3e2502(0x105)]();for(let _0x1ca73b=_0x225156[_0x3e2502(0x2bc)];_0x1ca73b<=_0x225156[_0x3e2502(0x241)];_0x1ca73b++)for(let _0x2c5a6=_0x225156[_0x3e2502(0xf3)];_0x2c5a6<=_0x225156['endColumn'];_0x2c5a6++){const _0x1718ba=_0x42a238[_0x3e2502(0x2ec)](_0x1ca73b,_0x2c5a6);if(_0x1718ba&&(a[_0x3e2502(0x32c)](_0x1718ba['f'])||a[_0x3e2502(0x1b8)](_0x1718ba['si'])))return!0x0;}}return!0x1;}};ne=ei([L(0x0,a['Inject'](O[_0xa8fcb3(0x2af)])),L(0x1,a[_0xa8fcb3(0x233)]),L(0x2,a[_0xa8fcb3(0x12b)]),L(0x3,a[_0xa8fcb3(0x271)](x[_0xa8fcb3(0x196)])),L(0x4,a[_0xa8fcb3(0x2f5)]),L(0x5,a[_0xa8fcb3(0x284)]),L(0x6,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1b3)]))],ne);var ni=Object[_0xa8fcb3(0x2c0)],ri=(_0x4f3132,_0x421904,_0x496775,_0x4363fe)=>{const _0x5c6d0f=_0xa8fcb3;for(var _0x4e4847=_0x4363fe>0x1?void 0x0:_0x4363fe?ni(_0x421904,_0x496775):_0x421904,_0xe970bc=_0x4f3132[_0x5c6d0f(0x250)]-0x1,_0xe8cd98;_0xe970bc>=0x0;_0xe970bc--)(_0xe8cd98=_0x4f3132[_0xe970bc])&&(_0x4e4847=_0xe8cd98(_0x4e4847)||_0x4e4847);return _0x4e4847;},de=(_0x5c30fc,_0x15f3b3)=>(_0x52e99d,_0x553640)=>_0x15f3b3(_0x52e99d,_0x553640,_0x5c30fc);let Ce=class extends a['Disposable']{constructor(_0x4daf57,_0x106bbb,_0x317ad7){const _0x3b7061=_0xa8fcb3;super(),_(this,_0x3b7061(0x17d),new Map()),_(this,_0x3b7061(0x1ae),new Map()),_(this,_0x3b7061(0x109),!0x1),(this[_0x3b7061(0x34e)]=_0x4daf57,this['_localStorageService']=_0x106bbb,this['_revisionService']=_0x317ad7);}['disableLocalCache'](){const _0x3affbe=_0xa8fcb3;this[_0x3affbe(0x109)]=!0x0;}[_0xa8fcb3(0x177)](){const _0xba9141=_0xa8fcb3;this[_0xba9141(0x109)]=!0x1;}get[_0xa8fcb3(0x14d)](){const _0x579347=_0xa8fcb3;return this[_0x579347(0x1ae)];}[_0xa8fcb3(0x229)](){const _0x46dab7=_0xa8fcb3;this[_0x46dab7(0x352)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x224bfd){const _0x3ad9b8=_0xa8fcb3;return this[_0x3ad9b8(0x109)]?null:this[_0x3ad9b8(0x2a8)][_0x3ad9b8(0x356)](u[_0x3ad9b8(0x174)](_0x224bfd));}async[_0xa8fcb3(0x2c9)](_0x1e905f,_0x47d7ec){const _0x1809ee=_0xa8fcb3;return!!this[_0x1809ee(0x2a8)][_0x1809ee(0x224)](_0x1e905f,_0x47d7ec);}[_0xa8fcb3(0x208)](_0x7e12d5,_0x24517d,_0x165a83,_0x4fea7d){const _0x5d2b56=_0xa8fcb3,_0x51d37b=this[_0x5d2b56(0x286)][_0x5d2b56(0x252)](_0x7e12d5);this[_0x5d2b56(0x17d)][_0x5d2b56(0x2a9)](_0x7e12d5,{'unitID':_0x7e12d5,'type':_0x24517d,'awaitingChangeset':_0x165a83,'mutations':_0x4fea7d,'rev':_0x51d37b}),this['_saveTaskMap'][_0x5d2b56(0x339)](_0x7e12d5)||this[_0x5d2b56(0x8b)](_0x7e12d5);}[_0xa8fcb3(0x8b)](_0x54f016){const _0xb36665=_0xa8fcb3,_0x3a614a=this[_0xb36665(0x2f4)]();_0x3a614a===0x0?this['_saveCache'](_0x54f016):this['_saveTaskMap'][_0xb36665(0x2a9)](_0x54f016,setTimeout(()=>this['_saveCache'](_0x54f016),_0x3a614a));}[_0xa8fcb3(0x2f4)](){const _0x583aef=_0xa8fcb3;var _0x54a3d6;return(_0x54a3d6=this[_0x583aef(0x34e)][_0x583aef(0x186)](u[_0x583aef(0x157)]))!=null?_0x54a3d6:u[_0x583aef(0xdc)];}[_0xa8fcb3(0xee)](_0x294f12){const _0x1765b4=_0xa8fcb3,_0x8caeb5=this[_0x1765b4(0x1ae)]['get'](_0x294f12);return _0x8caeb5!==void 0x0&&window[_0x1765b4(0x16a)](_0x8caeb5),this[_0x1765b4(0x2a8)]['setItem'](u[_0x1765b4(0x174)](_0x294f12),this[_0x1765b4(0x17d)]['get'](_0x294f12))['then'](()=>this[_0x1765b4(0x1ae)][_0x1765b4(0x295)](_0x294f12));}async['exhaustSavingTask'](){const _0x4639b4=_0xa8fcb3,_0x360952=[];this['_saveTaskMap'][_0x4639b4(0x2b4)]((_0x3ad0f8,_0xb78e15)=>{const _0x565ebf=_0x4639b4;window['clearTimeout'](_0x3ad0f8),_0x360952['push'](this[_0x565ebf(0xee)](_0xb78e15)['then'](()=>{const _0x34f7a2=_0x565ebf;this[_0x34f7a2(0x1ae)][_0x34f7a2(0x295)](_0xb78e15);}));}),await Promise['all'](_0x360952);}};Ce=ri([de(0x0,a['IConfigService']),de(0x1,a[_0xa8fcb3(0x15d)]),de(0x2,a[_0xa8fcb3(0x271)](v['RevisionService']))],Ce);class je extends a['RxDisposable']{constructor(){const _0x549b2b=_0xa8fcb3;super(),_(this,_0x549b2b(0x27c)),this[_0x549b2b(0x27c)]=I[_0x549b2b(0x325)](window,_0x549b2b(0x103))[_0x549b2b(0x1a1)](I['takeUntil'](this[_0x549b2b(0x358)]),I[_0x549b2b(0x1d8)](0x1),I[_0x549b2b(0xad)](void 0x0));}['setParam'](_0x54bd43,_0x2b770a,_0x2b9d26=!0x1){const _0x1a3407=_0xa8fcb3,_0x388048=new URL(window[_0x1a3407(0x1a7)][_0x1a3407(0x324)]);_0x388048[_0x1a3407(0x242)][_0x1a3407(0x2a9)](_0x54bd43,_0x2b770a),_0x2b9d26?window[_0x1a3407(0x1f2)][_0x1a3407(0x1b7)]('','',_0x388048[_0x1a3407(0x24c)]()):window['history']['pushState']('','',_0x388048[_0x1a3407(0x24c)]());}[_0xa8fcb3(0x1e2)](_0x326564,_0x252384=!0x1){const _0x550c7d=_0xa8fcb3,_0x2cab65=new URL(window[_0x550c7d(0x1a7)][_0x550c7d(0x324)]);_0x2cab65[_0x550c7d(0x242)][_0x550c7d(0x295)](_0x326564),_0x252384?window[_0x550c7d(0x1f2)][_0x550c7d(0x1b7)]('','',_0x2cab65['toString']()):window[_0x550c7d(0x1f2)]['pushState']('','',_0x2cab65[_0x550c7d(0x24c)]());}[_0xa8fcb3(0x287)](_0x394be3){const _0x18beda=_0xa8fcb3;var _0x28c779;return(_0x28c779=new URL(window[_0x18beda(0x1a7)]['href'])[_0x18beda(0x242)][_0x18beda(0x27d)](_0x394be3))!=null?_0x28c779:void 0x0;}}var oi=Object['defineProperty'],ai=Object[_0xa8fcb3(0x2c0)],ci=(_0x56c33b,_0x5d9bb7,_0x58e6ea)=>_0x5d9bb7 in _0x56c33b?oi(_0x56c33b,_0x5d9bb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58e6ea}):_0x56c33b[_0x5d9bb7]=_0x58e6ea,li=(_0x1226df,_0x4b89a9,_0x5c9922,_0x1d7b0e)=>{const _0x214476=_0xa8fcb3;for(var _0x54ec2d=_0x1d7b0e>0x1?void 0x0:_0x1d7b0e?ai(_0x4b89a9,_0x5c9922):_0x4b89a9,_0x6f39a=_0x1226df[_0x214476(0x250)]-0x1,_0x443fc0;_0x6f39a>=0x0;_0x6f39a--)(_0x443fc0=_0x1226df[_0x6f39a])&&(_0x54ec2d=_0x443fc0(_0x54ec2d)||_0x54ec2d);return _0x54ec2d;},Se=(_0xc87758,_0x142a0b)=>(_0x43b197,_0x4b4da2)=>_0x142a0b(_0x43b197,_0x4b4da2,_0xc87758),_i=(_0x30f555,_0x3c85c2,_0x592f89)=>ci(_0x30f555,_0x3c85c2+'',_0x592f89);function _0xd5ca(){const _0x5d3701=['LICENSE_IMPORT_SIZE_EXCEEDED','START_CALCULATION','collaboration.offline-data-not-saved','_clearPolling','getFocusedUnit','registerComponent','_toggleOnline','_registerRenderDependencies','strokeWidth','roomMembers','HEADER_MENU','selection','params','assignAColorForMemberID','7zUNaVa','doc.mutation.rich-text-editing','closePath','YUUMI_AI_RUN_FAILED','[Window\x20Error]:\x20','RefRangeService','_assignedColors','tag','APPLY_DUPLICATED','ENTITLE_INSUFFICIENT_QUOTA','getMergeData','onLocalMutation','_config','setItem','_id','getAncestorScale','ITransformService','_startBlinking','dispose','CollaborationUIEventService','setUndoRedoMutationParamsCache','runRefRangeMutations','url(#$1','_initStatusListener','_blinkTimer','_sheetSkeletonManagerService','round','NOT_FOUND','ICommandService','status$','INTERNAL_ERROR','actions','xlink:href','_transformService','size','rgba','TEXT_RANGE_LAYER_INDEX','memberID','search','_createSocketURL','_anchorDot','session.collaboration-timeout','endRow','searchParams','DeleteRangeMoveUpCommandId','deepClone','attrs','m2Prime','height','collaboration.single-unit.warning','measureText','_init','_session','toString','_initDependencies','column','_scene','length','fillText','getCurrentRevOfUnit','USER_IS_ANONYMOUS','CollaborationDataLoaderController','_docTransformSelectionsService','_colorAssignService','currentUsage','YUUMI_UNABLE_LOAD_URL','replaceDocRanges','_logService','url(#off-line-icon_clip0_910_343)','highlightSecond','INVITE_CODE_HAS_BEEN_UES','_checkCalculationAvailable','handleDeleteRangeMoveUp','toStringTag','addEventListener','APPLY_NON_SEQUENTIAL_REVISION','colorChannel1','_startSheetCollabCursor','univerjs-icon\x20univerjs-icon-','uni.network.url-service','engine','transformIMECache','15qGBPIb','DocSkeletonManagerService','UNIVER_SHEET','createInstance','beginPath','IUIPartsService','parseInt','RECT','Inject','formula.calculation.waiting','LOGIN_TOKEN_PROCESSING_FAILED','roomMembers$','collabStatus.syncing','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CONNECTOR_DATA_TOO_LARGE','M0\x200H16V16H0z','_lastPointer','UNDEFINED','includes','urlChange$','get','string','/universer-api/license/formula/limit/status','useCallback','_maxFormulaLimit','DocCollaborationEntity','SUCCESS','ILogService','ENTITLE_DUP_SUBSCRIPTION','_revisionService','getParam','getSheetId','type','DocStateChangeManagerService','IBeforeCloseService','ENTITLE_INVALID_COUPON_CODE','COMPLETION_FINISHED','red.300','data','/run/','YUUMI_CONNECTOR_URL_NOT_FOUND','_toggleOffline','black','_getAnchorBounding','delete','collabStatus.notCollab','getSheetObject','parse','_status$','getCoordByCell','UnitStatus','collabCursorState$','_docSyncEditingCollabCursorService','onStarting','clearInterval','fromEventSubject','showText','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','toRgbString','_drawAnchor','APPLY_REJECT','_getLighterColor','Rect','_localStorageService','set','http://www.w3.org/2000/svg','_setFormulaLimitStatus','_collabSessionService','_initUnhandledRejectionListener','_imageIoService','IMessageService','unitId','ALREADY_EXISTS','OTHER_CLIENT_EDITING','_range','forEach','font','drawWith','_getSheetObject','subscribeEvent','SNAPSHOT_INVALID_SNAPSHOT','WebSocketService','_memberID','startRow','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','code','ENTITLE_COUPON_USED_UP','getOwnPropertyDescriptor','getFormulaLimitStatusUrl','_docSkeletonManagerService','substring','INVALID_INVITE_CODE','APPLY_REVISION_CONFILICT','450990gkeweE','REDEMPTION_CODE_NOT_STARTED','BrowserCollaborationSocketService','saveOfflineData','transformMutation','trim','currentTheme$','_color','getCollabCursors$','5716584giwmAw','_initEntityListener','jiqing.500','SheetSkeletonManagerService','_name','yellow.400','shift','SUBMIT_CHANGESET_TIMEOUT','_docClipboardService','Rectangle','rgb','startFormulaLimitUrl','CollaborationStatus','collabStatus.fetchMiss','ERROR_AGAIN','EMAIL_VERIFY_CODE_MISMATCH','getTypeOfUnitDisposed$','REDEMPTION_USER_REDEEM_TIMES_EXCEED','defineProperty','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','isArray','RichTextEditingMutation','disposeUnit','touchDependencies','setAlpha','REDEMPTION_USER_NOT_ELIGIBLE','USERS_LEAVE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','removeEventListener','getValue','restore','_handleLeaveEvent','fillStyle','transformMutationsWithChangeset','_updateURLWithCurrentState','SetWorksheetActivateCommand','DesktopCollaborationStatusDisplayController','_getSaveTimeout','IUniverInstanceService','_initEvent','svg','_highlight','SOCKET_FAILED','ENTITLE_REPORT_LIMIT_EXCEED','TOO_MANY_REQUESTS','evenodd','Success','_transformPreviousActiveRange','unit','runOnServer','_colorIndex','_initWindowErrorListener','unload','displayName','post','eventID','handleIRemoveRow','_offsetY','enableFrontendLog','bind','assign','OffLineIcon','_collaborationController','jsx','sessionStatus$','purple.300','LICENSE_DISTRO_REJECTED','totalFormulasToCalculate',',\x200.2)','hovered','_initCommandExecutedListener','_ensureSubject','_unitStatus','14IqtoHi','whenReady','_instanceService','getStateCache','_eventUnsubscribe','_setupSubUnitSync','SheetCollabCursorShape','Shape','...','jsxs','now','random','href','fromEvent','_initCommandInterceptor','ISnapshotServerService','runId','combineLatest','_showGuardMessage','REDEMPTION_CODE_FULLY_REDEEMED','isFormulaString','_initResize','handleInsertRangeMoveDown','_getScale','_monkeyPatchLogService','useDependency','imageSourceType','Failed','InsertRangeMoveRightCommandId','_drawTextRange','push','WebBrowserSingleActiveUnitService','_cursor','has','DOC_RANGE_TYPE','_handleJoinEvent','_handleHover','Subject','createIdentifier','beforeCommandExecuted','getColor','UNRECOGNIZED','getVpScrollXYInfoByPosToVp','CHANGESET_REVISION_CONFILICT','610352CaMiqY','newValue','ColorKit','onMouseMove','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_entityInit$','range','ENTITLE_NEED_BILLING_ADDRESS','handleIRemoveCol','_refreshCollabCursors','_configService','setStateCache','Plugin','UniverInstanceType','exhaustSavingTask','merge','_render','invokeId','getItem','split','dispose$','isTransformMutationsWithChangesetSuccess','mutations','session.connection-failed','handleInsertCol','complete','cursorInfo$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_doCreateSocket','findNodePositionByCharIndex','_hover','Warning','_renderManagerService','_commandService','SetTextSelectionsOperation','limitInfo','JOIN_ROOM_FAILED','slice','transformByState','permission.title','YUUMI_TABLE_NOT_FOUND_IN_UNIT','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','white','collaboration-client-ui.config','_roomMembers$','skeleton','url(#on-line-icon_clip0_910_349)','MUTATION','wsSessionTicketUrl','entityInit$','setActiveRange','YUUMI_ALL_TABLES_IS_INVALID','transformSelections','1515102flqajt','BehaviorSubject','EffectRefRangId','SetFormulaCalculationNotificationMutation','key','_scheduleSaving','APPLY_PERMISSION_DENIED','AUTHORIZE_CODE_ILLEGAL','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LOGIN_FAILED','hide','throttleTime','maxFormulaLimit','WebURLService','setShapeProps','DEFAULT_WS_SESSION_TICKET_URL','storage','RemoteUniscriptService','syncEditingCollabCursor','symbol','toDisposable','CollaborationSessionService','CommandType','releaseFormulaLimitUrl','clsx','_themeService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','isEditing','_clearOtherTimers','MemberService','_docTransformStateCacheService','getRangePointData','MoveRangeCommandId','_scheduleHeartbeat','executeCommand','_backgroundColor','transform','SessionStatus','SetDocZoomRatioOperation','mapTo','PY_RUNTIME_SCRIPT_ERROR','message','_transformUndoRedoStack','registerRenderModule','UNAUTHENTICATED','fillRule','0\x200\x2017\x2016','UniverCollaborationClientUIPlugin','?taskId=','distinctUntilChanged','transformRemoteChangeset','textRanges','\x20at\x20','onPointerLeave$','show','origin','source','LICENSE_MAX_UNITS_EXCEEDED','result','Tools','_dataLoaderService','DATA_SOURCE_TOO_LARGE','off-line-icon_clip0_910_343','registerRefRange','onCommandExecuted','Workbook','INotificationService','entries','_cursors','[CollaborationDataLoaderController]','stack','AWAITING','SOCKET_FAILED_RETRY','_docSkeleton','TEXT','min','contains','_hideTimer','serializeRangeWithSheet','NO_OTHER_CLIENTS_EDITING','FormulaExecutedStateType','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','useObservable','_onRefRangeChange','row','executionId','LOCAL_CACHE_INTERVAL','collabStatus.offline','cursorInfo','color','0.2)','_textBubble','SheetsSelectionsService','redoState','_draw','mask','some','_entities','colno','_collaborationUIEventService','docStateChange$','collab-client.tooltip.reconnect','use','useRef','_saveCache','USER_NOT_INVITED_CODE','_updateLocalCursor','defs','UNIVER_DOC','startColumn','rgba(','SNAPSHOT_HAS_BEEN_REMOVED','labelPosition','_shapes','CollaborationUIEventId','_applyCommand','_startDocCollabCursor','lineTo','createElement','translate(.97)','_onCursorUpdate','override','_updateCollabCursors','getUniverSheetInstance','_initStatusComponent','popstate','AWAITING_WITH_PENDING','getCellMatrix','CLOSE_ROOM','DocIMEInputManagerService','FormulaExecuteStageType','_disabled','_messageService','name','focused$','_removeClearOtherTimer','addObject','_initUserListener','_currentUsage','disposeWithMe','activeSheet$','formula.calculation.unable','_heartbeatTimer','collab-text-anchor-','forwardRef','OFFLINE','_collabCursorController','_transformHistoryAndStateStack','CURRENT_STATUS_CANNOT_OPERATE','Loading','handleInsertRow','DataLoaderService','currentSkeleton$','with','values','_taskIds','_scheduleClearOtherTimer','error','generateRandomId','children','ThemeService','1em','_showText','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MOBILE_VERIFY_CODE_MISMATCH','IConfigService','DisposableCollection','getCurrentSelections','ILocalCacheService','_collaborationSessionService','_memberService','getUndoRedoMutationParamsCache','setTimeout','_document','makeDirty','getMemberID','getRenderById','_injector','getUnhiddenWorksheets','getSkeleton','replace','createSocket','VIEW_MAIN','transformStateCache','div','FETCH_MISS','_univerInstanceService','map','YUUMI_NO_CUBOID_FOR_QUESTION','formula.calculation.started','IRenderManagerService','ticket','collabStatus.conflict','_anchor','setInterval','mergeOverrideWithDependencies','highlight','stage','switchMap','saveTaskMap','add','100WNPsdz','_isBlinkVisible','debounceTime','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','lineno','filter','from','2131987cDaBGB','LOCAL_CACHE_INTERVAL_KEY','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','DocSelectionManagerService','DependentOn','catch','_stopBlinking','ILocalStorageService','PAYMENT_CHANNEL_NOT_SUPPORT','_uiPartsService','unhandledrejection','CollaborationEvent','permission.content','startsWith','_checkAndWaitForCalculationPermission','collab-text-range-','backgroundColor','asObservable','[LogService\x20Error]:\x20','univer-flex\x20univer-items-center','clearTimeout','_context','_drawRectRange','Unknown\x20user','_pollingInterval','onPointerEnter$','getActiveRange','_highlightSecond','init','loadUnit','getLocalCacheKey','deserializeRangeWithSheet','UniverCollaborationClientPlugin','enableLocalCache','_removeCollabCursors','rgba(255,\x20255,\x20255,\x200.01)','_getMergeRange','unshift','_blinkIntervalTimer','_cachedData','_cursorInfo$','onPointerMove$','_handleEvent','idSuffix','_updateSubUnitFromURLParams','1014316wTbFul','undoState','subscribe','getConfig','event$','ACTIVE_UNIT_EVENT_CHANNEL','USER_NOT_FOUND','arc','addObjects','getViewport','_docTransformIMECacheService','debug','_hasFormulaInDirtyRanges','Error','_uploadLog','isActive','offsetY','ranges','LICENSE_EXPORT_SIZE_EXCEEDED','HTTPService','INVALID_ARGUMENT','pluginName','MessageType','requireSession','save','stageInfo','_urlService','takeUntil','reason','102572sdFANM','pipe','EMAIL_HAS_BEEN_BOUND','REDEMPTION_CODE_INACTIVE','_selfUnitIDs','getCellPositionByOffset','OTHER_CLIENTS_EDITING','location','m1Prime','unitID','_cursorShapes','getSheetBySheetId','_collabCursorState$','ENSURE_SNAPSHOT_EXECUTION','_saveTaskMap','isTransformMutationFailure','_syncEditingCollabCursorService','SHEET_VIEWPORT_KEY','currentColor','LocaleService','PERMISSION_DENIED','getUnitId','path','replaceState','isFormulaId','RemoveColCommandId','_setupBeforeClosingHandler','0\x200\x2016\x2016','_online','send','CollaborationSocketService','top','WECHAT_HAS_BEEN_BOUND','getTypeOfUnitAdded$','subunit','NOT_COLLAB','_httpService','_docStateChangeManagerService','REDEMPTION_CODE_HAS_BEEN_CREATED','Injector','COLORS','next','Disposable','FromArray','functionsExecutedState','getColorFromTheme','text','bottom','Optional','YUUMI_SUBSCRIPTION_NOT_FOUND','sheetId','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','defIds','ENTITLE_USE_COUPON_NOT_1ST_TRADE','PENDING','_labelPosition','shareReplay','ENTITLE_COUPON_EXPIRED','none','#FFF','_getSessionTicket','REDEMPTION_INVALID_CODE','_send','_lastResponseTimestamp','YUUMI_URL_COL_OUT_OF_RANGE','RxDisposable','removeParam','_onCursorDelete','3ejHvlo','triggerDblclick','Tooltip','YUUMI_ASYNCIO_CANCELLED','Vector2','ONLINE','_localCacheService','getCurrent','_hovered','_unitOnClients','IDocClipboardService','_refRangeService','body','INVITE_CODE_REQUIRED','history','_beforeCloseService','/universer-api/frontend/logs','_registerDependencies','stringify','getActiveSheet','CollaborationController','green.600','_localeService','debounce','MOBILE_HAS_BEEN_BOUND','collaboration.closeRoom','getCollabEntity$','ENTITLE_CAN_NOT_BUY_LOWER_OTP','width','on-line-icon_clip0_910_349','sheetID','unsubscribe','fill','_startCalculationLimit','UPDATE_CURSOR','session.will-retry','updateOfflineData'];_0xd5ca=function(){return _0x5d3701;};return _0xd5ca();}const hi='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0xa8fcb3(0xb5)]=class extends a[_0xa8fcb3(0x350)]{constructor(_0x1f5632=Me,_0x4242ba,_0x5b0884,_0x27d26d){const _0x2eb3b3=_0xa8fcb3;super(),this[_0x2eb3b3(0x223)]=_0x1f5632,this[_0x2eb3b3(0x71)]=_0x4242ba,this[_0x2eb3b3(0x137)]=_0x5b0884,this[_0x2eb3b3(0x34e)]=_0x27d26d;const {..._0x2d5596}=a[_0x2eb3b3(0x353)]({},Me,this['_config']);this[_0x2eb3b3(0x34e)]['setConfig'](Yt,_0x2d5596);}[_0xa8fcb3(0x29e)](){const _0x105f10=_0xa8fcb3;this['_registerDependencies'](),this[_0x105f10(0x24d)]();}['onRendered'](){const _0xffb220=_0xa8fcb3;this[_0xffb220(0x210)]();}[_0xa8fcb3(0x1f5)](){const _0x5d7947=_0xa8fcb3;var _0xf93a84;const _0xac08db=[[be],[ne],[ie],[ee],[te],[Re],[Oe,{'useClass':je}],[x['ISocketService'],{'useClass':x[_0x5d7947(0x2ba)]}],[u[_0x5d7947(0x12e)],{'useClass':Ce}],[exports[_0x5d7947(0x2f3)]],[se],[Z],[k],[me],[exports[_0x5d7947(0x254)]]];this['_config']['enableFrontendLog']&&_0xac08db[_0x5d7947(0x336)]([Q]),a['registerDependencies'](this[_0x5d7947(0x137)],a[_0x5d7947(0x149)](_0xac08db,(_0xf93a84=this[_0x5d7947(0x223)])==null?void 0x0:_0xf93a84[_0x5d7947(0xff)]));}[_0xa8fcb3(0x210)](){const _0x25a9e7=_0xa8fcb3;this[_0x25a9e7(0x111)](this[_0x25a9e7(0x71)][_0x25a9e7(0xb1)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this[_0x25a9e7(0x111)](this[_0x25a9e7(0x71)][_0x25a9e7(0xb1)](a['UniverInstanceType']['UNIVER_SHEET'],[Te]));}[_0xa8fcb3(0x24d)](){const _0xf834f9=_0xa8fcb3;a[_0xf834f9(0x2e6)](this[_0xf834f9(0x137)],[[k],[exports[_0xf834f9(0x2f3)]],[se],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this['_config'][_0xf834f9(0x309)]&&a['touchDependencies'](this[_0xf834f9(0x137)],[[Q]]);}},_i(exports['UniverCollaborationClientUIPlugin'],_0xa8fcb3(0x198),hi),exports['UniverCollaborationClientUIPlugin']=li([a[_0xa8fcb3(0x15a)](u[_0xa8fcb3(0x176)]),Se(0x1,T[_0xa8fcb3(0x144)]),Se(0x2,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),Se(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var ui=Object[_0xa8fcb3(0x2c0)],Ii=(_0x1e2281,_0x1e08ab,_0x2a6747,_0x1f85ca)=>{const _0x1cf842=_0xa8fcb3;for(var _0x967e57=_0x1f85ca>0x1?void 0x0:_0x1f85ca?ui(_0x1e08ab,_0x2a6747):_0x1e08ab,_0x5ad46a=_0x1e2281[_0x1cf842(0x250)]-0x1,_0x17d985;_0x5ad46a>=0x0;_0x5ad46a--)(_0x17d985=_0x1e2281[_0x5ad46a])&&(_0x967e57=_0x17d985(_0x967e57)||_0x967e57);return _0x967e57;},W=(_0x3c71c8,_0x3f3a6b)=>(_0xede2c2,_0x162836)=>_0x3f3a6b(_0xede2c2,_0x162836,_0x3c71c8);exports[_0xa8fcb3(0x2c8)]=class extends u[_0xa8fcb3(0x1be)]{constructor(_0x20a7d3,_0x2bfaa8,_0x495538,_0x1a0207,_0x58a72d){super(_0x20a7d3,_0x2bfaa8,_0x495538,_0x1a0207,_0x58a72d);}async[_0xa8fcb3(0x13b)](_0x208661){const _0x2595a0=_0xa8fcb3,_0x37853f=await this[_0x2595a0(0x1dc)](),_0xc23349=this[_0x2595a0(0x23e)](_0x208661,_0x37853f);return this[_0x2595a0(0x6d)](_0xc23349);}[_0xa8fcb3(0x23e)](_0x4667af,_0x22dde2){const _0x1ee27c=_0xa8fcb3,_0x58ec5f=typeof window>'u'?new URL(_0x4667af):new URL(_0x4667af,window[_0x1ee27c(0x1a7)][_0x1ee27c(0xbd)]);_0x58ec5f[_0x1ee27c(0x242)][_0x1ee27c(0x2a9)]('sessionTicket',_0x22dde2);const _0x413b58=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1ee27c(0x23d)]);return _0x413b58[_0x1ee27c(0x27d)](_0x1ee27c(0x328))&&_0x58ec5f['searchParams'][_0x1ee27c(0x2a9)](_0x1ee27c(0x328),_0x413b58[_0x1ee27c(0x27d)](_0x1ee27c(0x328))),_0x58ec5f[_0x1ee27c(0x24c)]();}async[_0xa8fcb3(0x1dc)](){const _0x131c9e=_0xa8fcb3;var _0x365196,_0x5eaaed,_0x5b74b4;const _0x247c8b=this[_0x131c9e(0x34e)][_0x131c9e(0x186)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x559ee7=(_0x365196=_0x247c8b==null?void 0x0:_0x247c8b[_0x131c9e(0x81)])!=null?_0x365196:u[_0x131c9e(0x95)];return(_0x5b74b4=(_0x5eaaed=(await this['_httpService'][_0x131c9e(0x27d)](_0x559ee7,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x5eaaed[_0x131c9e(0x145)])!=null?_0x5b74b4:'';}},exports[_0xa8fcb3(0x2c8)]=Ii([W(0x0,a[_0xa8fcb3(0x271)](a[_0xa8fcb3(0x1c7)])),W(0x1,a[_0xa8fcb3(0x271)](x[_0xa8fcb3(0x196)])),W(0x2,a[_0xa8fcb3(0x12b)]),W(0x3,a[_0xa8fcb3(0x284)]),W(0x4,v[_0xa8fcb3(0x327)])],exports[_0xa8fcb3(0x2c8)]);var di=Object[_0xa8fcb3(0x2c0)],Si=(_0x86f036,_0x3c3bfb,_0x2abc2d,_0x31a833)=>{const _0x2ddc9f=_0xa8fcb3;for(var _0x595f27=_0x31a833>0x1?void 0x0:_0x31a833?di(_0x3c3bfb,_0x2abc2d):_0x3c3bfb,_0xa76f94=_0x86f036[_0x2ddc9f(0x250)]-0x1,_0x50aa96;_0xa76f94>=0x0;_0xa76f94--)(_0x50aa96=_0x86f036[_0xa76f94])&&(_0x595f27=_0x50aa96(_0x595f27)||_0x595f27);return _0x595f27;},fe=(_0x20a5de,_0x1eb237)=>(_0x36136d,_0x15311c)=>_0x1eb237(_0x36136d,_0x15311c,_0x20a5de);function _0x2702(_0x578ab2,_0x19060e){_0x578ab2=_0x578ab2-0x6b;const _0xd5ca7b=_0xd5ca();let _0x270228=_0xd5ca7b[_0x578ab2];return _0x270228;}exports['RemoteUniscriptService']=class extends a[_0xa8fcb3(0x1ca)]{constructor(_0x49e024,_0x14610f,_0x1ec609){const _0x34856e=_0xa8fcb3;super(),this[_0x34856e(0x31a)]=_0x49e024,this[_0x34856e(0x1c4)]=_0x14610f,this['_configService']=_0x1ec609;}async[_0xa8fcb3(0x300)](_0x33af70,_0x38b37f,_0x1e53d7,..._0x21e3c3){const _0x2e6ea6=_0xa8fcb3;var _0x32d614,_0x455938,_0x24e08d,_0x217511;const _0x53d6d8=this[_0x2e6ea6(0x31a)][_0x2e6ea6(0x20d)]();if(!_0x53d6d8)throw new Error(_0x2e6ea6(0xa0));const _0x3f2c23=((_0x32d614=this[_0x2e6ea6(0x34e)][_0x2e6ea6(0x186)](u[_0x2e6ea6(0x276)]))!=null?_0x32d614:u[_0x2e6ea6(0x348)])+'/'+_0x33af70+_0x2e6ea6(0x290)+_0x38b37f,_0x3756b8=new URL(window[_0x2e6ea6(0x1a7)]['href']),_0x3ffcdd={'scriptId':_0x33af70,'runId':(_0x455938=_0x3756b8[_0x2e6ea6(0x242)]['get'](_0x2e6ea6(0x328)))!=null?_0x455938:'','function':_0x38b37f,'unitId':_0x53d6d8['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x21e3c3),'invokeId':(_0x24e08d=_0x1e53d7[_0x2e6ea6(0x355)])!=null?_0x24e08d:'','executionId':(_0x217511=_0x1e53d7[_0x2e6ea6(0xdb)])!=null?_0x217511:''};try{const _0xa7ef7f=await this['_httpService'][_0x2e6ea6(0x305)](_0x3f2c23,{'body':_0x3ffcdd});return _0xa7ef7f['body'][_0x2e6ea6(0x123)]&&_0xa7ef7f[_0x2e6ea6(0x1f0)][_0x2e6ea6(0x123)][_0x2e6ea6(0x2be)]!==G['OK']?_0x2e6ea6(0x333):_0xa7ef7f[_0x2e6ea6(0x1f0)][_0x2e6ea6(0xc0)];}catch{return _0x2e6ea6(0x333);}}},exports['RemoteUniscriptService']=Si([fe(0x0,a[_0xa8fcb3(0x2f5)]),fe(0x1,a[_0xa8fcb3(0x271)](x[_0xa8fcb3(0x196)])),fe(0x2,a[_0xa8fcb3(0x12b)])],exports[_0xa8fcb3(0x97)]);const we=0x7530,ye=_0xa8fcb3(0x188);class fi extends a[_0xa8fcb3(0x1ca)]{constructor(){const _0x1fcc71=_0xa8fcb3;super(),_(this,'_id',a[_0x1fcc71(0x124)]()),_(this,_0x1fcc71(0x1a4),new Set()),_(this,_0x1fcc71(0x1ed),new Map()),_(this,_0x1fcc71(0x114),null),_(this,_0x1fcc71(0xa2),new Map()),_(this,'_unitStatus',new Map()),this[_0x1fcc71(0x24a)]();}[_0xa8fcb3(0x229)](){const _0x311d49=_0xa8fcb3;super[_0x311d49(0x229)](),this[_0x311d49(0xa2)][_0x311d49(0x2b4)]((_0x458afc,_0x594c27)=>this[_0x311d49(0x10d)](_0x594c27)),this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1209b3){const _0x26e1b1=_0xa8fcb3;return this[_0x26e1b1(0x316)](_0x1209b3)[_0x26e1b1(0x1a1)](I[_0x26e1b1(0xb7)]());}['editingUnit'](_0xeb44de){const _0x378efb=_0xa8fcb3;this[_0x378efb(0x1a4)][_0x378efb(0x239)]===0x0&&this[_0x378efb(0xa7)](),this[_0x378efb(0x1a4)]['add'](_0xeb44de),this[_0x378efb(0x1de)]({'type':0x0,'memberID':this[_0x378efb(0x225)],'unitIDs':[_0xeb44de],'isForwarded':!0x1});}[_0xa8fcb3(0x2e5)](_0x1ede0e){const _0x1d2067=_0xa8fcb3;this[_0x1d2067(0x1a4)][_0x1d2067(0x295)](_0x1ede0e),this['_selfUnitIDs'][_0x1d2067(0x239)]===0x0&&this[_0x1d2067(0x114)]&&window[_0x1d2067(0x29f)](this['_heartbeatTimer']);}['_init'](){const _0x2dfc5d=_0xa8fcb3;this['disposeWithMe'](a['toDisposable'](I[_0x2dfc5d(0x325)](window,_0x2dfc5d(0x96))['subscribe'](_0x4353ed=>{const _0x36be52=_0x2dfc5d;if(_0x4353ed[_0x36be52(0x8a)]!==ye||!_0x4353ed[_0x36be52(0x345)])return;const _0x171a1c=JSON[_0x36be52(0x298)](_0x4353ed['newValue']);this[_0x36be52(0x180)](_0x171a1c);}))),window[_0x2dfc5d(0x261)](_0x2dfc5d(0x303),()=>this[_0x2dfc5d(0x1de)]({'type':0x1,'memberID':this[_0x2dfc5d(0x225)],'unitIDs':Array[_0x2dfc5d(0x155)](this[_0x2dfc5d(0x1a4)])}));}['_handleEvent'](_0x4522db){const _0x3e4fd9=_0xa8fcb3;switch(_0x4522db[_0x3e4fd9(0x289)]){case 0x0:this[_0x3e4fd9(0x33b)](_0x4522db);break;case 0x1:this[_0x3e4fd9(0x2ee)](_0x4522db);break;case 0x2:this['_handleHeartbeatEvent'](_0x4522db);break;}}[_0xa8fcb3(0x33b)](_0x60af17){const _0x4050fd=_0xa8fcb3,{unitIDs:_0x5e6bbf,memberID:_0x5b4840,isForwarded:_0x38ea24}=_0x60af17;_0x5e6bbf[_0x4050fd(0x2b4)](_0x2c6e91=>{const _0x5590e0=_0x4050fd;if(!_0x38ea24&&this[_0x5590e0(0x1ed)][_0x5590e0(0x339)](_0x2c6e91)&&this[_0x5590e0(0x316)](_0x2c6e91)[_0x5590e0(0x1c9)](u[_0x5590e0(0x29b)][_0x5590e0(0x1a6)]),!this['_unitOnClients']['has'](_0x2c6e91)||!this[_0x5590e0(0x1ed)][_0x5590e0(0x27d)](_0x2c6e91)[_0x5590e0(0x339)](_0x5b4840)){const _0x4ef7f1=this[_0x5590e0(0x1ed)][_0x5590e0(0x27d)](_0x2c6e91)||new Set();_0x4ef7f1[_0x5590e0(0x14e)](_0x5b4840),this[_0x5590e0(0x1ed)][_0x5590e0(0x2a9)](_0x2c6e91,_0x4ef7f1),this[_0x5590e0(0x122)](_0x5b4840);}}),_0x38ea24||this[_0x4050fd(0x1de)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4050fd(0x1a4)]],'isForwarded':!0x0});}[_0xa8fcb3(0x122)](_0x5479d8){const _0x4edd59=_0xa8fcb3;this['_removeClearOtherTimer'](_0x5479d8);const _0x50eae9=window[_0x4edd59(0x132)](()=>{const _0x285088=_0x4edd59;this['_unitOnClients'][_0x285088(0x2b4)](_0x3aae3b=>{const _0x449bca=_0x285088;_0x3aae3b[_0x449bca(0x295)](_0x5479d8);});},we*0x2);this['_clearOtherTimers']['set'](_0x5479d8,_0x50eae9);}[_0xa8fcb3(0x10d)](_0x1cfbe8){const _0x639796=_0xa8fcb3;if(this[_0x639796(0xa2)]['has'](_0x1cfbe8)){const _0x1acf25=this['_clearOtherTimers'][_0x639796(0x27d)](_0x1cfbe8);_0x1acf25&&window[_0x639796(0x16a)](_0x1acf25),this[_0x639796(0xa2)][_0x639796(0x2a9)](_0x1cfbe8,null);}}[_0xa8fcb3(0x2ee)](_0x185d40){const _0x10d33e=_0xa8fcb3,{memberID:_0x571365,unitIDs:_0x152c33}=_0x185d40;_0x152c33[_0x10d33e(0x2b4)](_0x3ce844=>{const _0x168613=_0x10d33e;var _0x178b94;const _0x407cba=this[_0x168613(0x1ed)]['get'](_0x3ce844);_0x407cba&&(_0x407cba[_0x168613(0x295)](_0x571365),(_0x178b94=this[_0x168613(0x316)](_0x3ce844))==null||_0x178b94[_0x168613(0x1c9)](_0x407cba['size']===0x0?u[_0x168613(0x29b)]['NO_OTHER_CLIENTS_EDITING']:u[_0x168613(0x29b)][_0x168613(0x1a6)]));}),this['_removeClearOtherTimer'](_0x571365);}['_handleHeartbeatEvent'](_0x332ca1){const _0x1d8a89=_0xa8fcb3;this[_0x1d8a89(0x122)](_0x332ca1[_0x1d8a89(0x23c)]);}[_0xa8fcb3(0x1de)](_0x1c8989){const _0x523303=_0xa8fcb3;localStorage[_0x523303(0x224)](ye,JSON['stringify'](_0x1c8989));}[_0xa8fcb3(0xa7)](){const _0x26101f=_0xa8fcb3;this[_0x26101f(0x114)]=window[_0x26101f(0x148)](()=>{const _0x944637=_0x26101f;this[_0x944637(0x1de)]({'type':0x2,'memberID':this[_0x944637(0x225)]});},we);}[_0xa8fcb3(0x316)](_0xa8175d){const _0x287c3a=_0xa8fcb3;return this[_0x287c3a(0x317)][_0x287c3a(0x339)](_0xa8175d)||this[_0x287c3a(0x317)][_0x287c3a(0x2a9)](_0xa8175d,new I[(_0x287c3a(0x87))](u[_0x287c3a(0x29b)][_0x287c3a(0xd5)])),this['_unitStatus']['get'](_0xa8175d);}}exports['IURLService']=Oe,exports[_0xa8fcb3(0x31e)]=Fe,exports[_0xa8fcb3(0x337)]=fi,exports[_0xa8fcb3(0x93)]=je;
|
|
1
|
+
'use strict';const _0x400d5f=_0x1c4b;(function(_0x379331,_0x20f4b8){const _0x3c5508=_0x1c4b,_0x4a3423=_0x379331();while(!![]){try{const _0x2af551=-parseInt(_0x3c5508(0x262))/0x1*(parseInt(_0x3c5508(0x457))/0x2)+parseInt(_0x3c5508(0x41d))/0x3+parseInt(_0x3c5508(0x456))/0x4*(-parseInt(_0x3c5508(0x4c1))/0x5)+parseInt(_0x3c5508(0x23b))/0x6*(parseInt(_0x3c5508(0x388))/0x7)+-parseInt(_0x3c5508(0x353))/0x8+parseInt(_0x3c5508(0x3c5))/0x9+parseInt(_0x3c5508(0x3fc))/0xa;if(_0x2af551===_0x20f4b8)break;else _0x4a3423['push'](_0x4a3423['shift']());}catch(_0x35a383){_0x4a3423['push'](_0x4a3423['shift']());}}}(_0x2b87,0x87895));var qe=Object[_0x400d5f(0x380)],ze=(_0x1c1f39,_0x54bb6d,_0xc51576)=>_0x54bb6d in _0x1c1f39?qe(_0x1c1f39,_0x54bb6d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc51576}):_0x1c1f39[_0x54bb6d]=_0xc51576,_=(_0x3d3560,_0x20a34d,_0x296bb1)=>ze(_0x3d3560,typeof _0x20a34d!=_0x400d5f(0x235)?_0x20a34d+'':_0x20a34d,_0x296bb1);Object[_0x400d5f(0x380)](exports,Symbol[_0x400d5f(0x344)],{'value':'Module'});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),Je=require('@univerjs/rpc'),g=require('@univerjs/sheets'),T=require('@univerjs/engine-render'),x=require('@univerjs/network'),C=require('@univerjs/docs-ui'),Ze=require('@univerjs/drawing'),v=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x1aff98,..._0x40f268}){const _0x13eb01=_0x400d5f,{icon:_0x17cdc3,id:_0x5ea1b2,className:_0xda062f,extend:_0x3c22e5,..._0x497642}=_0x40f268,_0x40fbbf=(_0x13eb01(0x46d)+_0x5ea1b2+'\x20'+(_0xda062f||''))[_0x13eb01(0x39a)](),_0x85296f=A[_0x13eb01(0x27f)]('_'+tt());return xe(_0x17cdc3,''+_0x5ea1b2,{'defIds':_0x17cdc3[_0x13eb01(0x391)],'idSuffix':_0x85296f[_0x13eb01(0x2c8)]},{'ref':_0x1aff98,'className':_0x40fbbf,..._0x497642},_0x3c22e5);}function xe(_0x40d9d6,_0xd1ea86,_0x7e025d,_0x340737,_0x53aa21){const _0x13066f=_0x400d5f;return A[_0x13066f(0x207)](_0x40d9d6['tag'],{'key':_0xd1ea86,...Qe(_0x40d9d6,_0x7e025d,_0x53aa21),..._0x340737},(et(_0x40d9d6,_0x7e025d)['children']||[])['map']((_0x33a6a6,_0x14ad62)=>xe(_0x33a6a6,_0xd1ea86+'-'+_0x40d9d6[_0x13066f(0x4d4)]+'-'+_0x14ad62,_0x7e025d,void 0x0,_0x53aa21)));}function Qe(_0x501efe,_0x1a8ec6,_0x18738f){const _0x2a22b0=_0x400d5f,_0x2dbd2a={..._0x501efe[_0x2a22b0(0x358)]};_0x18738f!=null&&_0x18738f[_0x2a22b0(0x300)]&&_0x2dbd2a[_0x2a22b0(0x243)]===_0x2a22b0(0x300)&&(_0x2dbd2a[_0x2a22b0(0x243)]=_0x18738f[_0x2a22b0(0x300)]),_0x501efe['tag']===_0x2a22b0(0x496)&&_0x2dbd2a['id']&&(_0x2dbd2a['id']=_0x2dbd2a['id']+_0x1a8ec6['idSuffix']),Object[_0x2a22b0(0x2de)](_0x2dbd2a)[_0x2a22b0(0x2ed)](([_0x24136f,_0x3b7810])=>{const _0x42ca0d=_0x2a22b0;_0x24136f==='mask'&&typeof _0x3b7810==_0x42ca0d(0x340)&&(_0x2dbd2a[_0x24136f]=_0x3b7810['replace'](/url\(#(.*)\)/,_0x42ca0d(0x2e8)+_0x1a8ec6[_0x42ca0d(0x30a)]+')'));});const {defIds:_0x243c78}=_0x1a8ec6;return!_0x243c78||_0x243c78[_0x2a22b0(0x365)]===0x0||(_0x501efe[_0x2a22b0(0x4d4)]===_0x2a22b0(0x3b7)&&_0x2dbd2a[_0x2a22b0(0x490)]&&(_0x2dbd2a[_0x2a22b0(0x490)]=_0x2dbd2a[_0x2a22b0(0x490)]+_0x1a8ec6[_0x2a22b0(0x30a)]),Object[_0x2a22b0(0x2de)](_0x2dbd2a)[_0x2a22b0(0x2ed)](([_0x19b9ca,_0x469678])=>{const _0x13d088=_0x2a22b0;typeof _0x469678==_0x13d088(0x340)&&(_0x2dbd2a[_0x19b9ca]=_0x469678['replace'](/url\(#(.*)\)/,_0x13d088(0x2e8)+_0x1a8ec6['idSuffix']+')'));})),_0x2dbd2a;}function et(_0x1cfcb2,_0x2056af){const _0x363944=_0x400d5f;var _0x2a9bcf;const {defIds:_0x5a9ddb}=_0x2056af;return!_0x5a9ddb||_0x5a9ddb[_0x363944(0x365)]===0x0?_0x1cfcb2:_0x1cfcb2[_0x363944(0x4d4)]===_0x363944(0x42d)&&((_0x2a9bcf=_0x1cfcb2[_0x363944(0x40b)])!=null&&_0x2a9bcf[_0x363944(0x365)])?{..._0x1cfcb2,'children':_0x1cfcb2[_0x363944(0x40b)][_0x363944(0x354)](_0x347f40=>typeof _0x347f40['attrs']['id']==_0x363944(0x340)&&_0x5a9ddb&&_0x5a9ddb[_0x363944(0x398)](_0x347f40[_0x363944(0x358)]['id'])?{..._0x347f40,'attrs':{..._0x347f40[_0x363944(0x358)],'id':_0x347f40[_0x363944(0x358)]['id']+_0x2056af[_0x363944(0x30a)]}}:_0x347f40)}:_0x1cfcb2;}function tt(){const _0x429643=_0x400d5f;return Math[_0x429643(0x4e4)]()[_0x429643(0x2dd)](0x24)[_0x429643(0x2d5)](0x2,0x8);}pe['displayName']=_0x400d5f(0x4ed);const it={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x400d5f(0x315),'width':_0x400d5f(0x435),'height':_0x400d5f(0x435)},'children':[{'tag':'g','attrs':{'clipPath':_0x400d5f(0x2ba)},'children':[{'tag':'path','attrs':{'stroke':_0x400d5f(0x4e3),'d':_0x400d5f(0x4ee),'strokeLinecap':_0x400d5f(0x1f6),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x400d5f(0x2b3),'attrs':{'id':_0x400d5f(0x475)},'children':[{'tag':_0x400d5f(0x322),'attrs':{'fill':_0x400d5f(0x211),'d':_0x400d5f(0x2fd)}}]}]}],'defIds':[_0x400d5f(0x475)]},Be=A[_0x400d5f(0x4e0)](function(_0x2151a7,_0xe7349d){return A['createElement'](pe,Object['assign']({},_0x2151a7,{'id':'off-line-icon','ref':_0xe7349d,'icon':it}));});Be[_0x400d5f(0x34b)]=_0x400d5f(0x3d7);const st={'tag':_0x400d5f(0x2e5),'attrs':{'xmlns':_0x400d5f(0x469),'fill':'none','viewBox':_0x400d5f(0x357),'width':_0x400d5f(0x435),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x400d5f(0x322),'attrs':{'stroke':_0x400d5f(0x4e3),'d':_0x400d5f(0x4a6),'strokeLinecap':_0x400d5f(0x1f6),'strokeLinejoin':_0x400d5f(0x1f6),'strokeWidth':1.2}}]},{'tag':_0x400d5f(0x42d),'attrs':{},'children':[{'tag':_0x400d5f(0x2b3),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x400d5f(0x322),'attrs':{'fill':_0x400d5f(0x211),'d':'M0\x200H16V16H0z','transform':_0x400d5f(0x476)}}]}]}],'defIds':[_0x400d5f(0x34c)]},ke=A[_0x400d5f(0x4e0)](function(_0x3da08f,_0x33fba1){const _0x336d0e=_0x400d5f;return A[_0x336d0e(0x207)](pe,Object['assign']({},_0x3da08f,{'id':_0x336d0e(0x319),'ref':_0x33fba1,'icon':st}));});ke[_0x400d5f(0x34b)]=_0x400d5f(0x389);function nt(_0x39d3db){const _0x8922d1=_0x400d5f;switch(_0x39d3db){case u[_0x8922d1(0x478)][_0x8922d1(0x437)]:return _0x8922d1(0x3e8);case u[_0x8922d1(0x478)]['CONFLICT']:return'collabStatus.conflict';case u['CollaborationStatus'][_0x8922d1(0x214)]:return _0x8922d1(0x217);case u['CollaborationStatus']['NOT_COLLAB']:return _0x8922d1(0x3a5);case u[_0x8922d1(0x478)][_0x8922d1(0x355)]:case u[_0x8922d1(0x478)][_0x8922d1(0x44e)]:return'collabStatus.syncing';case u[_0x8922d1(0x478)][_0x8922d1(0x342)]:case u[_0x8922d1(0x478)][_0x8922d1(0x1ff)]:return'collabStatus.synced';}}function rt(_0x3a98df){const _0xcad839=_0x400d5f,{status$:_0x12efc4}=_0x3a98df,_0x412f21=O[_0xcad839(0x29a)](_0x12efc4,u['CollaborationStatus'][_0xcad839(0x371)]),_0x3706ee=O[_0xcad839(0x4c8)](a[_0xcad839(0x24c)]),_0x2bfa73=O[_0xcad839(0x4c8)](u[_0xcad839(0x4dd)]),_0x27c00a=_0x412f21!==u[_0xcad839(0x478)][_0xcad839(0x437)],_0x3a5f45=_0x3706ee['t'](nt(_0x412f21)),_0x445198=_0x27c00a?M[_0xcad839(0x2ef)](ke,{}):M[_0xcad839(0x2ef)](Be,{}),_0x521b0b=A['useCallback'](()=>{const _0x3354ba=_0xcad839;_0x27c00a||_0x2bfa73[_0x3354ba(0x4b9)]();},[_0x27c00a,_0x2bfa73]);function _0x323b20(){const _0x37eaed=_0xcad839;return M[_0x37eaed(0x219)](_0x37eaed(0x24d),{'className':_0x37eaed(0x428),'onClick':_0x521b0b,'children':[M[_0x37eaed(0x2ef)]('div',{'className':p[_0x37eaed(0x308)](_0x37eaed(0x47d),{'univer-text-green-500':_0x27c00a,'univer-text-red-500':!_0x27c00a}),'children':_0x445198}),M[_0x37eaed(0x2ef)](_0x37eaed(0x24d),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x3a5f45})]});}return _0x27c00a?_0x323b20():M[_0xcad839(0x2ef)](p['Tooltip'],{'title':_0x3706ee['t']('collab-client.tooltip.reconnect'),'children':_0x323b20()});}var ot=Object[_0x400d5f(0x329)],at=(_0x1edbf6,_0x7e1824,_0x241d2c,_0x25da05)=>{const _0x223f7d=_0x400d5f;for(var _0x378805=_0x25da05>0x1?void 0x0:_0x25da05?ot(_0x7e1824,_0x241d2c):_0x7e1824,_0x373a0a=_0x1edbf6[_0x223f7d(0x365)]-0x1,_0x3a6c64;_0x373a0a>=0x0;_0x373a0a--)(_0x3a6c64=_0x1edbf6[_0x373a0a])&&(_0x378805=_0x3a6c64(_0x378805)||_0x378805);return _0x378805;},K=(_0x37b6bb,_0x64693c)=>(_0x3e4f8c,_0x30ddd6)=>_0x64693c(_0x3e4f8c,_0x30ddd6,_0x37b6bb);function _0x1c4b(_0x3b18b5,_0x5db4f6){_0x3b18b5=_0x3b18b5-0x1f2;const _0x2b8787=_0x2b87();let _0x1c4b5b=_0x2b8787[_0x3b18b5];return _0x1c4b5b;}exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x400d5f(0x2a2)]{constructor(_0x574a30,_0x4c75e4,_0xb83f64,_0x12b3d4){const _0x215dcb=_0x400d5f;super(),_(this,_0x215dcb(0x3c9),new I['BehaviorSubject'](u[_0x215dcb(0x478)]['NOT_COLLAB'])),(this[_0x215dcb(0x4b3)]=_0x574a30,this['_injector']=_0x4c75e4,this[_0x215dcb(0x2f0)]=_0xb83f64,this[_0x215dcb(0x1f2)]=_0x12b3d4,this[_0x215dcb(0x4b8)](),this[_0x215dcb(0x403)]());}[_0x400d5f(0x403)](){const _0x3b89d8=_0x400d5f;this['disposeWithMe'](this['_univerInstanceService'][_0x3b89d8(0x38e)][_0x3b89d8(0x2b4)](I[_0x3b89d8(0x43c)](()=>{const _0x15efa1=_0x3b89d8,_0x41bd21=this[_0x15efa1(0x4b3)][_0x15efa1(0x2bd)]();return _0x41bd21?this[_0x15efa1(0x2f0)][_0x15efa1(0x266)](_0x41bd21[_0x15efa1(0x33d)]()):I['of'](null);}),I[_0x3b89d8(0x43c)](_0x160c70=>_0x160c70?_0x160c70[_0x3b89d8(0x4ce)]:I['of'](u[_0x3b89d8(0x478)][_0x3b89d8(0x371)])))[_0x3b89d8(0x247)](_0x24e15b=>{const _0x150c2b=_0x3b89d8;this[_0x150c2b(0x3c9)]['next'](_0x24e15b);}));}[_0x400d5f(0x4b8)](){const _0x47ae83=_0x400d5f;this['disposeWithMe'](this[_0x47ae83(0x1f2)][_0x47ae83(0x4a5)](O[_0x47ae83(0x287)][_0x47ae83(0x200)],()=>O['connectInjector'](ct({'status$':this[_0x47ae83(0x3c9)][_0x47ae83(0x3c6)]()}),this[_0x47ae83(0x2b6)])));}},exports[_0x400d5f(0x449)]=at([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x400d5f(0x4b6)](a['Injector'])),K(0x2,a[_0x400d5f(0x4b6)](u[_0x400d5f(0x205)])),K(0x3,O[_0x400d5f(0x3cc)])],exports[_0x400d5f(0x449)]);function ct(_0x42da9e){const {status$:_0x4ea5e4}=_0x42da9e;return function(){return M['jsx'](rt,{'status$':_0x4ea5e4});};}const Oe=a[_0x400d5f(0x21f)](_0x400d5f(0x22f));var lt=Object[_0x400d5f(0x329)],_t=(_0x53f10f,_0x5e0ebf,_0x16c72a,_0x182dc0)=>{const _0x1a9e35=_0x400d5f;for(var _0x338a39=_0x182dc0>0x1?void 0x0:_0x182dc0?lt(_0x5e0ebf,_0x16c72a):_0x5e0ebf,_0x3cdb00=_0x53f10f[_0x1a9e35(0x365)]-0x1,_0x2d1514;_0x3cdb00>=0x0;_0x3cdb00--)(_0x2d1514=_0x53f10f[_0x3cdb00])&&(_0x338a39=_0x2d1514(_0x338a39)||_0x338a39);return _0x338a39;},Y=(_0x5a3aec,_0x22daca)=>(_0x148ca6,_0x595d35)=>_0x22daca(_0x148ca6,_0x595d35,_0x5a3aec);exports[_0x400d5f(0x327)]=class extends a['RxDisposable']{constructor(_0xce3a94,_0x8c7bf9,_0x48ba21,_0x13c85b,_0x204713){const _0x25ab18=_0x400d5f;super(),this[_0x25ab18(0x223)]=_0xce3a94,this['_logService']=_0x8c7bf9,this[_0x25ab18(0x3e3)]=_0x48ba21,this[_0x25ab18(0x3d3)]=_0x13c85b,_0x204713?_0x204713==null||_0x204713['whenReady']()[_0x25ab18(0x369)](()=>this[_0x25ab18(0x37c)]()):(this[_0x25ab18(0x275)][_0x25ab18(0x43e)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x25ab18(0x37c)]());}async['_init'](){const _0x1d04fb=_0x400d5f,_0x548911=this[_0x1d04fb(0x223)][_0x1d04fb(0x36a)]('unit'),_0x202dfa=this[_0x1d04fb(0x223)]['getParam']('type'),_0x467b95=this[_0x1d04fb(0x223)][_0x1d04fb(0x36a)](_0x1d04fb(0x24e));if(!_0x548911||!_0x202dfa){this[_0x1d04fb(0x275)]['debug'](_0x1d04fb(0x2c3),_0x1d04fb(0x24b));return;}const _0x3f3575=await this[_0x1d04fb(0x3d3)][_0x1d04fb(0x49f)](_0x548911,Number(_0x202dfa),_0x467b95);_0x3f3575&&_0x3f3575 instanceof a[_0x1d04fb(0x38d)]&&this[_0x1d04fb(0x3a2)](_0x3f3575);}async[_0x400d5f(0x3a2)](_0x3a197e){const _0x280488=_0x400d5f;await this[_0x280488(0x420)](_0x3a197e),_0x3a197e[_0x280488(0x49d)][_0x280488(0x2b4)](I[_0x280488(0x289)](this[_0x280488(0x3b6)]))[_0x280488(0x247)](_0x4772d6=>{_0x4772d6&&this['_updateURLWithCurrentState'](_0x4772d6);}),this['_urlService'][_0x280488(0x26d)][_0x280488(0x2b4)](I[_0x280488(0x289)](this[_0x280488(0x3b6)]))[_0x280488(0x247)](()=>this['_updateSubUnitFromURLParams'](_0x3a197e));}[_0x400d5f(0x498)](_0x5e479b,_0x3301a4=!0x1){const _0x12e959=_0x400d5f,_0x109fb0=this[_0x12e959(0x223)][_0x12e959(0x36a)](_0x12e959(0x24e));_0x5e479b[_0x12e959(0x4a7)]()!==_0x109fb0&&this[_0x12e959(0x223)][_0x12e959(0x417)](_0x12e959(0x24e),_0x5e479b['getSheetId'](),_0x3301a4);}async[_0x400d5f(0x420)](_0x120e0c){const _0x3550ed=_0x400d5f;var _0x209d84;const _0x4c15c8=this[_0x3550ed(0x223)][_0x3550ed(0x36a)](_0x3550ed(0x24e));if(!_0x4c15c8||!_0x120e0c['getSheetBySheetId'](_0x4c15c8)){const _0x2a0753=_0x120e0c['getUnhiddenWorksheets']()[0x0],_0x4b2aba=_0x120e0c[_0x3550ed(0x307)](_0x2a0753);if(!_0x4b2aba)return;this[_0x3550ed(0x498)](_0x4b2aba,!0x0),await this[_0x3550ed(0x3e3)][_0x3550ed(0x44f)](g[_0x3550ed(0x3da)]['id'],{'unitId':_0x120e0c[_0x3550ed(0x33d)](),'subUnitId':_0x2a0753});return;}((_0x209d84=_0x120e0c[_0x3550ed(0x42b)]())==null?void 0x0:_0x209d84[_0x3550ed(0x4a7)]())!==_0x4c15c8&&await this[_0x3550ed(0x3e3)][_0x3550ed(0x44f)](g[_0x3550ed(0x3da)]['id'],{'unitId':_0x120e0c[_0x3550ed(0x33d)](),'subUnitId':_0x4c15c8});}},exports[_0x400d5f(0x327)]=_t([Y(0x0,Oe),Y(0x1,a[_0x400d5f(0x363)]),Y(0x2,a['ICommandService']),Y(0x3,a[_0x400d5f(0x4b6)](u['DataLoaderService'])),Y(0x4,a['Optional'](Je[_0x400d5f(0x3eb)]))],exports['CollaborationDataLoaderController']);const ht=_0x400d5f(0x324),ut=_0x400d5f(0x41f),Fe={'name':ht,'version':ut};var It=Object[_0x400d5f(0x329)],dt=(_0x13ed48,_0x4a3031,_0x541514,_0x4f931c)=>{for(var _0x3e105f=_0x4f931c>0x1?void 0x0:_0x4f931c?It(_0x4a3031,_0x541514):_0x4a3031,_0x329cae=_0x13ed48['length']-0x1,_0x4bd2fd;_0x329cae>=0x0;_0x329cae--)(_0x4bd2fd=_0x13ed48[_0x329cae])&&(_0x3e105f=_0x4bd2fd(_0x3e105f)||_0x3e105f);return _0x3e105f;},Ne=(_0x1edf1a,_0x32c309)=>(_0xc807f3,_0x1a1e3f)=>_0x32c309(_0xc807f3,_0x1a1e3f,_0x1edf1a);let me=class extends a[_0x400d5f(0x400)]{constructor(_0x46a8dc,_0xc7d61a){const _0x460bb5=_0x400d5f;super(),this[_0x460bb5(0x34e)]=_0x46a8dc,this[_0x460bb5(0x2f6)]=_0xc7d61a,this[_0x460bb5(0x37c)]();}['_init'](){const _0xf0f33b=_0x400d5f,_0x3c32c9=this;this[_0xf0f33b(0x29d)](this[_0xf0f33b(0x34e)][_0xf0f33b(0x309)]({'onBeforePasteImage':async _0x13f3a8=>{const _0x52f71b=_0xf0f33b,_0x2fb78b=await _0x3c32c9[_0x52f71b(0x2f6)]['saveImage'](_0x13f3a8);return _0x2fb78b?{'source':_0x2fb78b['source'],'imageSourceType':_0x2fb78b[_0x52f71b(0x3e5)]}:null;}}));}};me=dt([Ne(0x0,C[_0x400d5f(0x3dc)]),Ne(0x1,Ze[_0x400d5f(0x351)])],me);const Ue=[_0x400d5f(0x312),'jiqing.500',_0x400d5f(0x36f),_0x400d5f(0x4e9),_0x400d5f(0x3d4),_0x400d5f(0x1f4)];class be extends a[_0x400d5f(0x2a2)]{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x400d5f(0x49b)](_0x454b9b){const _0x3d40c0=_0x400d5f;if(this[_0x3d40c0(0x2d7)][_0x3d40c0(0x42e)](_0x454b9b))return this[_0x3d40c0(0x2d7)][_0x3d40c0(0x28b)](_0x454b9b);const _0x48048e=Ue[this['_colorIndex']];return this[_0x3d40c0(0x2d3)]=(this[_0x3d40c0(0x2d3)]+0x1)%Ue[_0x3d40c0(0x365)],this[_0x3d40c0(0x2d7)][_0x3d40c0(0x20c)](_0x454b9b,_0x48048e),_0x48048e;}}function je(_0x305c80){const _0x3a62cb=_0x400d5f;let _0x53525f='';for(const _0x26836c of _0x305c80){const {startOffset:_0x147a9a,endOffset:_0xfbbaac,isActive:_0x2aae86,rangeType:_0x4e0ff6,segmentId:_0x226387,segmentPage:_0x4b58fd}=_0x26836c;_0x53525f[_0x3a62cb(0x365)]&&(_0x53525f+=','),_0x53525f+=_0x147a9a+':'+_0xfbbaac+':'+(_0x2aae86?'1':'0')+':'+_0x4e0ff6+':'+_0x226387+':'+_0x4b58fd;}return _0x53525f;}function St(_0x5bbe75){const _0x3dd607=_0x400d5f,_0x34afa0=_0x5bbe75[_0x3dd607(0x43d)](','),_0x59cd2c=[];for(const _0x248751 of _0x34afa0){const [_0x261b5c,_0x23b11f,_0x470b93,_0x50d1a7,_0x1702be,_0x475dab]=_0x248751[_0x3dd607(0x43d)](':');_0x59cd2c[_0x3dd607(0x3a8)]({'startOffset':Number(_0x261b5c),'endOffset':Number(_0x23b11f),'collapsed':_0x261b5c===_0x23b11f,'isActive':_0x470b93==='1','rangeType':_0x50d1a7===a[_0x3dd607(0x228)][_0x3dd607(0x4ef)]?a[_0x3dd607(0x228)][_0x3dd607(0x4ef)]:a['DOC_RANGE_TYPE'][_0x3dd607(0x3f7)],'segmentId':typeof _0x1702be==_0x3dd607(0x340)?String(_0x1702be):'','segmentPage':Number(_0x475dab!=null?_0x475dab:-0x1)});}return _0x59cd2c[_0x3dd607(0x2e6)](_0x16046f=>_0x16046f[_0x3dd607(0x4c2)])||(_0x59cd2c[0x0][_0x3dd607(0x4c2)]=!0x0),_0x59cd2c;}class Re extends a[_0x400d5f(0x400)]{constructor(){const _0x5e3df5=_0x400d5f;super(...arguments),_(this,_0x5e3df5(0x2bb),new I[(_0x5e3df5(0x1fd))](null)),_(this,_0x5e3df5(0x227),this[_0x5e3df5(0x2bb)][_0x5e3df5(0x3c6)]());}['syncEditingCollabCursor'](_0x352446){const _0x45a7cd=_0x400d5f,{unitID:_0xdf8328,memberID:_0x5148db,textRanges:_0x4e0738}=_0x352446,_0x254dcc=je(_0x4e0738);if(_0x254dcc==='')return;const _0x4b7e18={'unitID':_0xdf8328,'memberID':_0x5148db,'selection':_0x254dcc};this[_0x45a7cd(0x2bb)][_0x45a7cd(0x21d)](_0x4b7e18);}}var ft=Object['getOwnPropertyDescriptor'],mt=(_0x29e931,_0x3a6738,_0x884a4f,_0x4cb25b)=>{const _0x382036=_0x400d5f;for(var _0x48a16f=_0x4cb25b>0x1?void 0x0:_0x4cb25b?ft(_0x3a6738,_0x884a4f):_0x3a6738,_0xf80e98=_0x29e931[_0x382036(0x365)]-0x1,_0x551287;_0xf80e98>=0x0;_0xf80e98--)(_0x551287=_0x29e931[_0xf80e98])&&(_0x48a16f=_0x551287(_0x48a16f)||_0x48a16f);return _0x48a16f;},U=(_0x547f07,_0xaf489f)=>(_0x9ebfa8,_0x39cc45)=>_0xaf489f(_0x9ebfa8,_0x39cc45,_0x547f07);const gt=0x12c,vt=0x64;let ge=class extends a[_0x400d5f(0x400)]{constructor(_0x21cddf,_0x59db64,_0x639b51,_0x337c8a,_0x12c7a0,_0x43f700,_0x3e8280,_0x1f763f,_0xf3080e){const _0x18e2b1=_0x400d5f;super(),_(this,'_online',!0x1),_(this,_0x18e2b1(0x37c),!0x1),_(this,_0x18e2b1(0x231),new I[(_0x18e2b1(0x1fd))](new Map())),_(this,_0x18e2b1(0x33f),this[_0x18e2b1(0x231)][_0x18e2b1(0x3c6)]()),_(this,_0x18e2b1(0x4e2),new I['BehaviorSubject']([])),_(this,_0x18e2b1(0x280),this[_0x18e2b1(0x4e2)][_0x18e2b1(0x2b4)](I[_0x18e2b1(0x41b)](gt))),_(this,_0x18e2b1(0x451),a[_0x18e2b1(0x472)](_0x1b129d=>{const _0xcfcc70=_0x18e2b1,_0x29ef64={'eventID':v['CollaborationEvent'][_0xcfcc70(0x2ca)],'data':{'unitID':this[_0xcfcc70(0x35c)],'memberID':this[_0xcfcc70(0x2cb)]['getMemberID'](),'selection':je(_0x1b129d)}};this['_session'][_0xcfcc70(0x370)](_0x29ef64,this['unitID']);},vt)),(this[_0x18e2b1(0x35c)]=_0x21cddf,this[_0x18e2b1(0x2cb)]=_0x59db64,this[_0x18e2b1(0x2b6)]=_0x639b51,this['_colorAssignService']=_0x337c8a,this[_0x18e2b1(0x431)]=_0x12c7a0,this['_syncEditingCollabCursorService']=_0x43f700,this[_0x18e2b1(0x3bd)]=_0x3e8280,this[_0x18e2b1(0x4b3)]=_0x1f763f,this[_0x18e2b1(0x3e3)]=_0xf3080e);}get[_0x400d5f(0x499)](){const _0x19c3db=_0x400d5f;return this[_0x19c3db(0x231)][_0x19c3db(0x26a)]();}get[_0x400d5f(0x347)](){const _0x29f3a5=_0x400d5f;return this[_0x29f3a5(0x4e2)][_0x29f3a5(0x26a)]();}[_0x400d5f(0x22c)](){const _0x2eca30=_0x400d5f;super[_0x2eca30(0x22c)](),this[_0x2eca30(0x231)]['next'](new Map()),this[_0x2eca30(0x231)][_0x2eca30(0x2b5)](),this[_0x2eca30(0x4e2)]['next']([]),this[_0x2eca30(0x4e2)][_0x2eca30(0x2b5)]();}['init'](){const _0x5b117a=_0x400d5f;this[_0x5b117a(0x37c)]||(this[_0x5b117a(0x37c)]=!0x0,this[_0x5b117a(0x2cb)][_0x5b117a(0x385)]['pipe'](I['takeUntil'](this[_0x5b117a(0x3b6)]))[_0x5b117a(0x247)](_0x5ac4c1=>{const _0x232b61=_0x5b117a;_0x5ac4c1===u[_0x232b61(0x3ee)][_0x232b61(0x37d)]?this['_toggleOnline']():this[_0x232b61(0x36d)]();}),this[_0x5b117a(0x2cb)][_0x5b117a(0x402)]['pipe'](I['takeUntil'](this[_0x5b117a(0x3b6)]))[_0x5b117a(0x247)](_0x5ec7e9=>{const _0x4a0fe7=_0x5b117a,_0x1d4ece=_0x5ec7e9['eventID'];_0x1d4ece===v[_0x4a0fe7(0x2ea)][_0x4a0fe7(0x2ca)]&&this[_0x4a0fe7(0x47a)](_0x5ec7e9),_0x1d4ece===v[_0x4a0fe7(0x2ea)][_0x4a0fe7(0x204)]&&this[_0x4a0fe7(0x47c)](_0x5ec7e9);}),this[_0x5b117a(0x29d)](this['_commandService'][_0x5b117a(0x203)](_0x151532=>{const _0x2e5771=_0x5b117a,_0x6db408=_0x151532[_0x2e5771(0x2b0)];_0x6db408!=null&&this['_online']&&_0x151532['id']===V[_0x2e5771(0x202)]['id']&&_0x6db408['unitId']===this[_0x2e5771(0x35c)]&&_0x6db408[_0x2e5771(0x296)]===!0x1&&_0x6db408[_0x2e5771(0x2b8)]['length']>0x0&&this[_0x2e5771(0x451)](_0x6db408[_0x2e5771(0x2b8)]);})),this['_syncEditingCollabCursorService'][_0x5b117a(0x227)]['pipe'](I[_0x5b117a(0x289)](this[_0x5b117a(0x3b6)]))[_0x5b117a(0x247)](_0x19bdec=>{const _0x5a8b12=_0x5b117a;if((_0x19bdec==null?void 0x0:_0x19bdec[_0x5a8b12(0x35c)])!==this[_0x5a8b12(0x35c)])return;const _0x41f5ad={'eventID':v['CollaborationEvent'][_0x5a8b12(0x2ca)],'data':_0x19bdec};this[_0x5a8b12(0x47a)](_0x41f5ad);}),this[_0x5b117a(0x29d)](this['_commandService']['onCommandExecuted'](_0x4a02d2=>{const _0x584f6e=_0x5b117a;if(_0x4a02d2['params']==null)return;const _0x460ef1=_0x4a02d2['params'];if(_0x4a02d2['id']!==V[_0x584f6e(0x4bd)]['id']||_0x460ef1[_0x584f6e(0x35f)]!==this[_0x584f6e(0x35c)])return;const _0x278507={'id':_0x584f6e(0x4cb),'params':_0x460ef1},_0x137241=this['cursorInfo'];for(const [_0x47d2c6,_0x3870cc]of _0x137241){const _0x18696e={'id':_0x584f6e(0x4cb),'params':{'unitId':this[_0x584f6e(0x35c)],'actions':null,'textRanges':_0x3870cc['ranges']}},_0x51f777=this[_0x584f6e(0x3bd)][_0x584f6e(0x2c1)](_0x278507,_0x18696e,!0x1);if(v[_0x584f6e(0x447)](_0x51f777))throw _0x51f777[_0x584f6e(0x481)];_0x137241[_0x584f6e(0x20c)](_0x47d2c6,{..._0x3870cc,'ranges':_0x51f777[_0x584f6e(0x2fa)][_0x584f6e(0x2b0)]['textRanges']});}queueMicrotask(()=>{const _0x38ddbb=_0x584f6e;this[_0x38ddbb(0x231)][_0x38ddbb(0x21d)](_0x137241);});})));}[_0x400d5f(0x47a)](_0x2176e3){const _0x13c825=_0x400d5f;var _0x4e2612,_0x5645c9;const {memberID:_0x5eef0b,selection:_0x415773}=_0x2176e3['data'],_0x3d15d5=St(_0x415773),_0x597caf=(_0x5645c9=(_0x4e2612=this[_0x13c825(0x431)][_0x13c825(0x36e)](this[_0x13c825(0x35c)],_0x5eef0b))==null?void 0x0:_0x4e2612[_0x13c825(0x341)])!=null?_0x5645c9:_0x13c825(0x4c7),_0x461f25={'color':this[_0x13c825(0x26e)][_0x13c825(0x49b)](_0x5eef0b),'name':_0x597caf,'ranges':_0x3d15d5},_0x3a8fd5=this[_0x13c825(0x499)];_0x3a8fd5['set'](_0x5eef0b,_0x461f25),this[_0x13c825(0x231)]['next'](_0x3a8fd5);}[_0x400d5f(0x47c)](_0x1a8246){const _0x1975d0=_0x400d5f,{memberID:_0x45118a}=_0x1a8246[_0x1975d0(0x2c5)],_0x5bb6f9=this['cursorInfo'];_0x5bb6f9[_0x1975d0(0x30e)](_0x45118a),this[_0x1975d0(0x231)]['next'](_0x5bb6f9);}[_0x400d5f(0x224)](){const _0x282796=_0x400d5f;var _0x2b6822;if(this[_0x282796(0x4eb)]=!0x0,((_0x2b6822=this[_0x282796(0x4b3)]['getFocusedUnit']())==null?void 0x0:_0x2b6822['getUnitId']())!==this[_0x282796(0x35c)])return;const _0x1e9e36=this[_0x282796(0x2b6)][_0x282796(0x28b)](V[_0x282796(0x468)])[_0x282796(0x225)]();Array[_0x282796(0x3a4)](_0x1e9e36)&&_0x1e9e36[_0x282796(0x365)]>0x0&&this[_0x282796(0x451)](_0x1e9e36);}[_0x400d5f(0x36d)](){const _0x51753e=_0x400d5f;this[_0x51753e(0x4eb)]=!0x1;}};ge=mt([U(0x2,a[_0x400d5f(0x4b6)](a[_0x400d5f(0x426)])),U(0x3,a[_0x400d5f(0x4b6)](be)),U(0x4,a[_0x400d5f(0x4b6)](u[_0x400d5f(0x3b2)])),U(0x5,a[_0x400d5f(0x4b6)](Re)),U(0x6,v['ITransformService']),U(0x7,a[_0x400d5f(0x22b)]),U(0x8,a[_0x400d5f(0x2d2)])],ge);var Et=Object[_0x400d5f(0x329)],Tt=(_0x3f284f,_0x5105ad,_0x1f811f,_0x308939)=>{const _0x5c1f01=_0x400d5f;for(var _0x377532=_0x308939>0x1?void 0x0:_0x308939?Et(_0x5105ad,_0x1f811f):_0x5105ad,_0x4036fc=_0x3f284f[_0x5c1f01(0x365)]-0x1,_0x22873f;_0x4036fc>=0x0;_0x4036fc--)(_0x22873f=_0x3f284f[_0x4036fc])&&(_0x377532=_0x22873f(_0x377532)||_0x377532);return _0x377532;},w=(_0x103439,_0x113d15)=>(_0x22c7c3,_0x15ec27)=>_0x113d15(_0x22c7c3,_0x15ec27,_0x103439);const Ct=0x12c,pt=0x64,Ot=()=>{let _0x29830e=[],_0x5ad41e=!0x1;return _0x179e19=>{_0x29830e['push'](_0x179e19),_0x5ad41e||(_0x5ad41e=!0x0,setTimeout(()=>{const _0x1a672e=_0x1c4b;_0x29830e[_0x1a672e(0x2ed)](_0xd20f34=>_0xd20f34()),_0x29830e=[],_0x5ad41e=!0x1;}));};};let ve=class extends a[_0x400d5f(0x400)]{constructor(_0x4922e2,_0x3deb53,_0x30934e,_0x12b947,_0x4e76b7,_0x27dcca,_0x476d7d,_0x372739){const _0x5773dc=_0x400d5f;super(),_(this,_0x5773dc(0x4eb),!0x1),_(this,_0x5773dc(0x37c),!0x1),_(this,_0x5773dc(0x231),new I[(_0x5773dc(0x1fd))](new Map())),_(this,_0x5773dc(0x33f),this[_0x5773dc(0x231)][_0x5773dc(0x3c6)]()),_(this,_0x5773dc(0x4e2),new I[(_0x5773dc(0x1fd))]([])),_(this,_0x5773dc(0x280),this[_0x5773dc(0x4e2)]['pipe'](I[_0x5773dc(0x41b)](Ct))),_(this,_0x5773dc(0x451),a['debounce']((_0x1100d6,_0x156009)=>{const _0x224391=_0x5773dc,_0x206f4e={'eventID':v['CollaborationEvent'][_0x224391(0x2ca)],'data':{'unitID':this[_0x224391(0x35c)],'memberID':this[_0x224391(0x2cb)][_0x224391(0x2ce)](),'selection':B['serializeRangeWithSheet'](_0x1100d6,_0x156009[_0x224391(0x4b7)])}};this[_0x224391(0x2cb)]['send'](_0x206f4e,this[_0x224391(0x35c)]);},pt)),(this['unitID']=_0x4922e2,this['_session']=_0x3deb53,this[_0x5773dc(0x2b6)]=_0x30934e,this['_colorAssignService']=_0x12b947,this['_memberService']=_0x4e76b7,this[_0x5773dc(0x4b3)]=_0x27dcca,this[_0x5773dc(0x3e3)]=_0x476d7d,this[_0x5773dc(0x362)]=_0x372739);}get['cursorInfo'](){const _0x58e05b=_0x400d5f;return this[_0x58e05b(0x231)][_0x58e05b(0x26a)]();}get[_0x400d5f(0x347)](){const _0x1aef41=_0x400d5f;return this[_0x1aef41(0x4e2)][_0x1aef41(0x26a)]();}[_0x400d5f(0x22c)](){const _0x135915=_0x400d5f;super[_0x135915(0x22c)](),this['_cursorInfo$'][_0x135915(0x21d)](new Map()),this[_0x135915(0x231)][_0x135915(0x2b5)](),this[_0x135915(0x4e2)][_0x135915(0x21d)]([]),this['_roomMembers$'][_0x135915(0x2b5)]();}[_0x400d5f(0x301)](){const _0x5a1a5e=_0x400d5f;this['_init']||(this[_0x5a1a5e(0x37c)]=!0x0,this['_session'][_0x5a1a5e(0x385)][_0x5a1a5e(0x2b4)](I['takeUntil'](this[_0x5a1a5e(0x3b6)]))[_0x5a1a5e(0x247)](_0x30fc2f=>{const _0x2d4f33=_0x5a1a5e;_0x30fc2f===u['SessionStatus'][_0x2d4f33(0x37d)]?this['_toggleOnline']():this[_0x2d4f33(0x36d)]();}),this[_0x5a1a5e(0x2cb)][_0x5a1a5e(0x402)]['pipe'](I[_0x5a1a5e(0x289)](this['dispose$']))[_0x5a1a5e(0x247)](_0x4c955e=>{const _0xacb5c3=_0x5a1a5e,_0x4e7d2d=_0x4c955e[_0xacb5c3(0x3e2)];_0x4e7d2d===v['CollaborationEvent']['UPDATE_CURSOR']&&this[_0xacb5c3(0x47a)](_0x4c955e),_0x4e7d2d===v[_0xacb5c3(0x2ea)]['USERS_LEAVE']&&this[_0xacb5c3(0x47c)](_0x4c955e);}),this[_0x5a1a5e(0x2b1)](),this[_0x5a1a5e(0x29d)](this[_0x5a1a5e(0x3e3)][_0x5a1a5e(0x203)](_0x578b5d=>{const _0x2f6e65=_0x5a1a5e;if(this['_online']&&_0x578b5d['id']===g[_0x2f6e65(0x303)]['id']&&_0x578b5d[_0x2f6e65(0x2b0)][_0x2f6e65(0x35f)]===this[_0x2f6e65(0x35c)]){const _0x58379f=_0x578b5d[_0x2f6e65(0x2b0)];this[_0x2f6e65(0x451)](_0x58379f[_0x2f6e65(0x27b)],_0x58379f[_0x2f6e65(0x3a6)][0x0]);}})));}['_onCursorUpdate'](_0x395530){const _0x187b68=_0x400d5f;var _0x2ea8a3,_0x1791f1;const {memberID:_0x413fe8,selection:_0x591fb7}=_0x395530[_0x187b68(0x2c5)],{sheetName:_0xaedd24,range:_0x31689a}=B[_0x187b68(0x372)](_0x591fb7),_0x28a486={'name':(_0x1791f1=(_0x2ea8a3=this[_0x187b68(0x431)][_0x187b68(0x36e)](this[_0x187b68(0x35c)],_0x413fe8))==null?void 0x0:_0x2ea8a3['name'])!=null?_0x1791f1:'Unknown\x20user','range':this[_0x187b68(0x31b)](_0xaedd24,_0x31689a),'sheetID':_0xaedd24,'color':this[_0x187b68(0x26e)][_0x187b68(0x49b)](_0x413fe8),'selection':_0x591fb7},_0x11e526=this['cursorInfo'];_0x11e526[_0x187b68(0x20c)](_0x413fe8,_0x28a486),this[_0x187b68(0x231)][_0x187b68(0x21d)](_0x11e526);}['_onCursorDelete'](_0x22c1be){const _0x3e8cd9=_0x400d5f,{memberID:_0x6cfd29}=_0x22c1be[_0x3e8cd9(0x2c5)],_0x51241c=this[_0x3e8cd9(0x499)];_0x51241c[_0x3e8cd9(0x30e)](_0x6cfd29),this[_0x3e8cd9(0x231)][_0x3e8cd9(0x21d)](_0x51241c);}[_0x400d5f(0x31b)](_0x3081ef,_0x44633d){const _0x33d731=_0x400d5f;var _0x2d5be9,_0x7c7b1c;const _0x26fa22=(_0x7c7b1c=(_0x2d5be9=this[_0x33d731(0x4b3)][_0x33d731(0x485)](this[_0x33d731(0x35c)]))==null?void 0x0:_0x2d5be9[_0x33d731(0x307)](_0x3081ef))==null?void 0x0:_0x7c7b1c['getMergeData']();return(_0x26fa22==null?void 0x0:_0x26fa22[_0x33d731(0x421)](_0x2950ad=>a['Rectangle'][_0x33d731(0x46c)](_0x2950ad,_0x44633d)))||_0x44633d;}[_0x400d5f(0x2b1)](){const _0x56c568=_0x400d5f,_0x29ba03=new a[(_0x56c568(0x2df))](),_0x516315=Ot(),_0x2b85cb=()=>{const _0x3ac53c=_0x56c568;_0x29ba03[_0x3ac53c(0x22c)]();const _0x1e34a1=(_0x3d1c07,_0x523954,_0x43dbd5,_0x477ba3)=>{const _0x45e6fa=_0x3ac53c;let _0x2d6af3=[];switch(_0x3d1c07['id']){case g[_0x45e6fa(0x326)][_0x45e6fa(0x2e0)]:{_0x2d6af3=g[_0x45e6fa(0x480)](_0x3d1c07,_0x477ba3);break;}case g['EffectRefRangId'][_0x45e6fa(0x4dc)]:{_0x2d6af3=g[_0x45e6fa(0x2d9)](_0x3d1c07,_0x477ba3);break;}case g['EffectRefRangId'][_0x45e6fa(0x467)]:{_0x2d6af3=g[_0x45e6fa(0x2a7)](_0x3d1c07,_0x477ba3);break;}case g[_0x45e6fa(0x326)][_0x45e6fa(0x3fd)]:{_0x2d6af3=g[_0x45e6fa(0x4c4)](_0x3d1c07,_0x477ba3);break;}case g[_0x45e6fa(0x326)][_0x45e6fa(0x43f)]:{_0x2d6af3=g['handleInsertRangeMoveRight'](_0x3d1c07,_0x477ba3);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x2d6af3=g[_0x45e6fa(0x2c4)](_0x3d1c07,_0x477ba3);break;}case g[_0x45e6fa(0x326)][_0x45e6fa(0x35d)]:{_0x2d6af3=g[_0x45e6fa(0x2b9)](_0x3d1c07,_0x477ba3);break;}case g[_0x45e6fa(0x326)][_0x45e6fa(0x42a)]:{_0x2d6af3=g['handleIRemoveCol'](_0x3d1c07,_0x477ba3);break;}case g[_0x45e6fa(0x326)]['RemoveRowCommandId']:{_0x2d6af3=g[_0x45e6fa(0x3f8)](_0x3d1c07,_0x477ba3);break;}}const _0x4aad70=g[_0x45e6fa(0x39d)](_0x2d6af3,_0x477ba3),_0x20949a=this['cursorInfo'][_0x45e6fa(0x28b)](_0x523954);if(_0x20949a&&_0x4aad70){const _0x3add9b={..._0x20949a,'range':_0x4aad70};this[_0x45e6fa(0x499)][_0x45e6fa(0x20c)](_0x523954,_0x3add9b),_0x516315(()=>{const _0x4ade57=_0x45e6fa,_0x51ca9a=this[_0x4ade57(0x362)][_0x4ade57(0x484)](_0x4aad70,_0x203749=>(_0x51ca9a[_0x4ade57(0x22c)](),_0x1e34a1(_0x203749,_0x523954,_0x43dbd5,_0x4aad70)));_0x29ba03['add'](_0x51ca9a);});}return{'redos':[],'undos':[]};};this[_0x3ac53c(0x499)][_0x3ac53c(0x2ed)]((_0x2b85bf,_0xea1078)=>{const _0x5c8976=_0x3ac53c,{range:_0x18c561,sheetID:_0x48a692}=_0x2b85bf,_0x1dca5a=this['_refRangeService']['registerRefRange'](_0x18c561,_0x19a2c5=>(_0x1dca5a[_0x5c8976(0x22c)](),_0x1e34a1(_0x19a2c5,_0xea1078,_0x48a692,_0x18c561)));_0x29ba03[_0x5c8976(0x4a2)](_0x1dca5a);});};this['disposeWithMe'](a[_0x56c568(0x4b5)](this[_0x56c568(0x231)][_0x56c568(0x247)](()=>{_0x2b85cb();})));}[_0x400d5f(0x224)](){const _0x199513=_0x400d5f;var _0x356b87,_0x2af8df;if(this[_0x199513(0x4eb)]=!0x0,((_0x356b87=this[_0x199513(0x4b3)][_0x199513(0x2bd)]())==null?void 0x0:_0x356b87[_0x199513(0x33d)]())!==this[_0x199513(0x35c)])return;const _0x164443=(_0x2af8df=this[_0x199513(0x2b6)][_0x199513(0x28b)](g[_0x199513(0x246)])['getCurrentSelections']())==null?void 0x0:_0x2af8df[0x0],_0xcf06e=this[_0x199513(0x4b3)][_0x199513(0x259)](a[_0x199513(0x30b)][_0x199513(0x201)])[_0x199513(0x42b)]();_0x164443&&_0xcf06e&&this[_0x199513(0x451)](_0xcf06e[_0x199513(0x4a7)](),_0x164443);}[_0x400d5f(0x36d)](){const _0x4a563d=_0x400d5f;this[_0x4a563d(0x4eb)]=!0x1;}};ve=Tt([w(0x2,a[_0x400d5f(0x4b6)](a[_0x400d5f(0x426)])),w(0x3,a[_0x400d5f(0x4b6)](be)),w(0x4,a[_0x400d5f(0x4b6)](u[_0x400d5f(0x3b2)])),w(0x5,a[_0x400d5f(0x22b)]),w(0x6,a[_0x400d5f(0x2d2)]),w(0x7,a['Inject'](g[_0x400d5f(0x405)]))],ve);var bt=Object[_0x400d5f(0x329)],Rt=(_0x8fb2f2,_0x24183f,_0x165dd1,_0x440ae8)=>{const _0x466ac5=_0x400d5f;for(var _0x3cc27=_0x440ae8>0x1?void 0x0:_0x440ae8?bt(_0x24183f,_0x165dd1):_0x24183f,_0x561819=_0x8fb2f2[_0x466ac5(0x365)]-0x1,_0x25b0d2;_0x561819>=0x0;_0x561819--)(_0x25b0d2=_0x8fb2f2[_0x561819])&&(_0x3cc27=_0x25b0d2(_0x3cc27)||_0x3cc27);return _0x3cc27;},ce=(_0x55713f,_0x31c87e)=>(_0x578d0,_0x195b1b)=>_0x31c87e(_0x578d0,_0x195b1b,_0x55713f);let k=class extends a[_0x400d5f(0x400)]{constructor(_0x3d2146,_0x45161a,_0x1ad43a){const _0x227e3f=_0x400d5f;super(),_(this,_0x227e3f(0x3c2),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x227e3f(0x4b3)]=_0x3d2146,this[_0x227e3f(0x2b6)]=_0x45161a,this['_collabSessionService']=_0x1ad43a,this['_init']());}[_0x400d5f(0x22c)](){const _0x52ced4=_0x400d5f;super['dispose'](),this['_entityInit$']['complete'](),this[_0x52ced4(0x3c2)]['forEach'](_0x2dcc6c=>_0x2dcc6c['dispose']());}[_0x400d5f(0x265)](_0x3a1718){const _0x568a65=_0x400d5f;return this[_0x568a65(0x3c2)][_0x568a65(0x42e)](_0x3a1718)?this[_0x568a65(0x3c2)][_0x568a65(0x28b)](_0x3a1718)[_0x568a65(0x33f)]:this['_entityInit$'][_0x568a65(0x2b4)](I[_0x568a65(0x32c)](_0x48f38b=>_0x48f38b[_0x568a65(0x35c)]===_0x3a1718),I[_0x568a65(0x43c)](_0x4efe31=>_0x4efe31['cursorInfo$']));}[_0x400d5f(0x37c)](){const _0x44604a=_0x400d5f;this[_0x44604a(0x4b3)][_0x44604a(0x2c0)](a[_0x44604a(0x30b)]['UNIVER_SHEET'])[_0x44604a(0x2b4)](I['takeUntil'](this[_0x44604a(0x3b6)]))['subscribe'](async _0x14ce73=>{const _0x450976=_0x44604a,_0x256635=_0x14ce73[_0x450976(0x33d)](),_0x4ba524=await this[_0x450976(0x260)](_0x256635);this[_0x450976(0x3d0)][_0x450976(0x21d)](_0x4ba524),this[_0x450976(0x3c2)][_0x450976(0x20c)](_0x256635,_0x4ba524);}),this[_0x44604a(0x4b3)][_0x44604a(0x2c0)](a['UniverInstanceType'][_0x44604a(0x20e)])[_0x44604a(0x2b4)](I[_0x44604a(0x289)](this[_0x44604a(0x3b6)]))[_0x44604a(0x2b4)](I[_0x44604a(0x32c)](_0x2b9166=>!_0x2b9166[_0x44604a(0x33d)]()[_0x44604a(0x29f)]('__')))[_0x44604a(0x247)](async _0x214464=>{const _0x7e90ca=_0x44604a,_0x3d64ad=_0x214464['getUnitId'](),_0x3fe7f5=await this['_startDocCollabCursor'](_0x3d64ad);this['_entityInit$'][_0x7e90ca(0x21d)](_0x3fe7f5),this[_0x7e90ca(0x3c2)][_0x7e90ca(0x20c)](_0x3d64ad,_0x3fe7f5);}),I['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x44604a(0x30b)]['UNIVER_DOC']),this[_0x44604a(0x4b3)][_0x44604a(0x412)](a['UniverInstanceType'][_0x44604a(0x201)]))[_0x44604a(0x2b4)](I[_0x44604a(0x289)](this[_0x44604a(0x3b6)]))['subscribe'](_0x495b84=>{const _0x158309=_0x44604a,_0x750cec=_0x495b84['getUnitId'](),_0x43ad51=this[_0x158309(0x3c2)]['get'](_0x750cec);_0x43ad51&&(_0x43ad51[_0x158309(0x22c)](),this[_0x158309(0x3c2)]['delete'](_0x750cec));});}async[_0x400d5f(0x260)](_0x2c054a){const _0xa738d5=_0x400d5f,_0x50e24d=await this[_0xa738d5(0x288)]['requireSession'](_0x2c054a),_0x59bf9f=this['_injector'][_0xa738d5(0x455)](ve,_0x2c054a,_0x50e24d);return _0x59bf9f['init'](),_0x59bf9f;}async[_0x400d5f(0x438)](_0x3fd3e5){const _0x379b22=_0x400d5f,_0x3840f7=await this[_0x379b22(0x288)][_0x379b22(0x349)](_0x3fd3e5),_0xadf645=this['_injector'][_0x379b22(0x455)](ge,_0x3fd3e5,_0x3840f7);return _0xadf645[_0x379b22(0x301)](),_0xadf645;}};k=Rt([ce(0x0,a[_0x400d5f(0x22b)]),ce(0x1,a[_0x400d5f(0x4b6)](a[_0x400d5f(0x426)])),ce(0x2,a[_0x400d5f(0x4b6)](u[_0x400d5f(0x4dd)]))],k);const X=0x14,Le=0xc8,le=0x4,Dt=0x5;function Nt(_0x3f15a2,_0x189a01){const _0x221e11=_0x400d5f;let {radius:_0x14d0cb,width:_0x2e1e3f,height:_0x4f9273}=_0x189a01;_0x14d0cb=_0x14d0cb!=null?_0x14d0cb:0x0,_0x2e1e3f=_0x2e1e3f!=null?_0x2e1e3f:0x1e,_0x4f9273=_0x4f9273!=null?_0x4f9273:0x1e;let _0x4d21a0=0x0,_0xc643a9=0x0,_0x372434=0x0;_0x4d21a0=_0xc643a9=_0x372434=Math[_0x221e11(0x459)](_0x14d0cb,_0x2e1e3f/0x2,_0x4f9273/0x2),_0x3f15a2[_0x221e11(0x4ab)](),_0x3f15a2[_0x221e11(0x1f7)](_0x4d21a0,0x0),_0x3f15a2['lineTo'](_0x2e1e3f-_0xc643a9,0x0),_0x3f15a2[_0x221e11(0x36b)](_0x2e1e3f-_0xc643a9,_0xc643a9,_0xc643a9,Math['PI']*0x3/0x2,0x0,!0x1),_0x3f15a2[_0x221e11(0x3df)](_0x2e1e3f,_0x4f9273-_0x372434),_0x3f15a2[_0x221e11(0x36b)](_0x2e1e3f-_0x372434,_0x4f9273-_0x372434,_0x372434,0x0,Math['PI']/0x2,!0x1),_0x3f15a2['lineTo'](0x0,_0x4f9273),_0x3f15a2[_0x221e11(0x3df)](0x0,_0x4d21a0),_0x3f15a2[_0x221e11(0x36b)](_0x4d21a0,_0x4d21a0,_0x4d21a0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3f15a2[_0x221e11(0x492)](),_0x189a01['fill']&&(_0x3f15a2[_0x221e11(0x4c6)](),_0x3f15a2[_0x221e11(0x236)]=_0x189a01[_0x221e11(0x243)],_0x189a01[_0x221e11(0x3e1)]===_0x221e11(0x3f4)?_0x3f15a2[_0x221e11(0x243)](_0x221e11(0x3f4)):_0x3f15a2[_0x221e11(0x243)](),_0x3f15a2[_0x221e11(0x27d)]());}class re extends T['Shape']{constructor(_0x3503a6,_0x16df37){const _0x145b38=_0x400d5f;super(_0x3503a6,_0x16df37),_(this,_0x145b38(0x333)),_(this,_0x145b38(0x274)),(this[_0x145b38(0x333)]=_0x16df37==null?void 0x0:_0x16df37[_0x145b38(0x333)],this[_0x145b38(0x274)]=_0x16df37==null?void 0x0:_0x16df37[_0x145b38(0x274)]);}static[_0x400d5f(0x3ff)](_0xc88095,_0x22872a){const _0x52a5fb=_0x400d5f,{text:_0x35777a,color:_0x31567a}=_0x22872a;_0xc88095[_0x52a5fb(0x4c6)](),_0xc88095[_0x52a5fb(0x2e9)]=_0x52a5fb(0x2b2);const _0x2f2a40=_0xc88095[_0x52a5fb(0x2ab)](_0x35777a)[_0x52a5fb(0x20f)],_0x3d1b4c=Math[_0x52a5fb(0x459)](_0x2f2a40+0x2*le,Le);Nt(_0xc88095,{'height':X,'radius':0x4,'width':_0x3d1b4c,'fill':_0x31567a}),_0xc88095['fillStyle']='#FFF';const _0x31bafc=le,_0x3b2e2e=X-Dt,_0xec5201=Le-0x2*le;if(_0x2f2a40>_0xec5201){let _0x27fb89='',_0x28e52c=0x0;for(const _0x54c3ea of _0x35777a){const _0x16ed58=_0xc88095[_0x52a5fb(0x2ab)](_0x54c3ea)[_0x52a5fb(0x20f)];if(_0x28e52c+_0x16ed58<=_0xec5201-_0xc88095[_0x52a5fb(0x2ab)](_0x52a5fb(0x4b4))[_0x52a5fb(0x20f)])_0x27fb89+=_0x54c3ea,_0x28e52c+=_0x16ed58;else{_0x27fb89+=_0x52a5fb(0x4b4);break;}}_0xc88095['fillText'](_0x27fb89,_0x31bafc,_0x3b2e2e);}else _0xc88095[_0x52a5fb(0x35e)](_0x35777a,_0x31bafc,_0x3b2e2e);_0xc88095['restore']();}[_0x400d5f(0x34d)](_0x2d2be6){const _0x17f038=_0x400d5f;re[_0x17f038(0x3ff)](_0x2d2be6,this);}}const _e=_0x400d5f(0x393),Ut=_0x400d5f(0x25e),Lt=_0x400d5f(0x2a5),H=0x6,Mt=1.5,he=0x4,At=1.5,Pt=_0x400d5f(0x232);class Me{constructor(_0x47e8aa,_0x1318d3,_0xdf8be1,_0x582cf4){const _0x1433cd=_0x400d5f;_(this,_0x1433cd(0x4c9),[]),_(this,_0x1433cd(0x49c),null),_(this,_0x1433cd(0x473),null),_(this,_0x1433cd(0x345),null),_(this,_0x1433cd(0x479),null),_(this,'_eventUnsubscribe',null),(this[_0x1433cd(0x2a9)]=_0x47e8aa,this['_scene']=_0x1318d3,this['_docSkeleton']=_0xdf8be1,this[_0x1433cd(0x4d1)]=_0x582cf4,this['_render']());}set[_0x400d5f(0x44b)](_0xb3238e){const _0x4d7d2b=_0x400d5f;_0xb3238e?(this[_0x4d7d2b(0x345)]&&this[_0x4d7d2b(0x345)][_0x4d7d2b(0x360)](),this[_0x4d7d2b(0x473)]&&this[_0x4d7d2b(0x473)][_0x4d7d2b(0x276)]()):(this[_0x4d7d2b(0x345)]&&this[_0x4d7d2b(0x345)][_0x4d7d2b(0x276)](),this['_textBubble']&&this['_textBubble'][_0x4d7d2b(0x360)]());}['dispose'](){const _0x10d441=_0x400d5f;for(const _0x5b5799 of this[_0x10d441(0x4c9)])_0x5b5799[_0x10d441(0x22c)]();this[_0x10d441(0x473)]&&this[_0x10d441(0x473)]['dispose'](),this[_0x10d441(0x345)]&&this[_0x10d441(0x345)][_0x10d441(0x22c)](),this[_0x10d441(0x49c)]&&this[_0x10d441(0x49c)][_0x10d441(0x22c)](),this[_0x10d441(0x249)]&&this[_0x10d441(0x249)]();}[_0x400d5f(0x282)](){const _0x2edf2e=_0x400d5f;var _0x9130a4;const {_docSkeleton:_0x36479f,_document:_0x3bdc03}=this,{color:_0x30c968,name:_0x34ae65,ranges:_0x495113}=this[_0x2edf2e(0x2a9)],_0x3c760e=_0x3bdc03[_0x2edf2e(0x395)](),{docsLeft:_0x1052b8,docsTop:_0x5830e2}=_0x3c760e,_0x379da2=new C[(_0x2edf2e(0x2d4))](_0x3c760e,_0x36479f);for(const {startOffset:_0x43f369,endOffset:_0x538fa0,rangeType:_0x28c312,segmentId:_0x2bafab,segmentPage:_0x3225ff,collapsed:_0x2a8743,isActive:_0x35a320}of _0x495113){const _0x4b1311=_0x36479f[_0x2edf2e(0x28a)](_0x43f369,!0x0,_0x2bafab,_0x3225ff);let _0x5ada65=_0x36479f[_0x2edf2e(0x28a)](_0x538fa0,!0x0,_0x2bafab,_0x3225ff);if(_0x5ada65==null&&(_0x5ada65=_0x36479f[_0x2edf2e(0x28a)](_0x538fa0-0x1,!0x1,_0x2bafab,_0x3225ff)),_0x35a320){const {contentBoxPointGroup:_0xa495de}=_0x379da2[_0x2edf2e(0x1fe)](_0x5ada65,_0x5ada65);if(_0xa495de['length']===0x0)continue;this['_drawAnchor'](_0x30c968,_0xa495de,_0x1052b8,_0x5830e2,_0x34ae65),this[_0x2edf2e(0x249)]=this[_0x2edf2e(0x3f5)]();}if(_0x4b1311&&_0x5ada65){if(_0x28c312===a['DOC_RANGE_TYPE'][_0x2edf2e(0x3f7)]){const _0x4fec12=new C[(_0x2edf2e(0x23e))](_0x3c760e,_0x36479f),{pointGroup:_0x4a047d}=(_0x9130a4=_0x4fec12[_0x2edf2e(0x1fe)](_0x4b1311,_0x5ada65))!=null?_0x9130a4:{};if(_0x4a047d==null||_0x4a047d[_0x2edf2e(0x365)]===0x0)continue;this[_0x2edf2e(0x470)](_0x30c968,_0x4a047d,_0x1052b8,_0x5830e2);}else{if(!_0x2a8743){const {borderBoxPointGroup:_0x51e21e}=_0x379da2[_0x2edf2e(0x1fe)](_0x4b1311,_0x5ada65);if(_0x51e21e[_0x2edf2e(0x365)]===0x0)continue;this[_0x2edf2e(0x323)](_0x30c968,_0x51e21e,_0x1052b8,_0x5830e2);}}}}}['_drawAnchor'](_0x453e75,_0x5aa3f7,_0x935e03,_0x6df6b6,_0xfd5758){const _0x595bc3=_0x400d5f,_0x5afcb5=this[_0x595bc3(0x356)](_0x5aa3f7),{left:_0x2ea4cf,top:_0x434e3b,height:_0x49e44b}=_0x5afcb5,_0x493bab=this[_0x595bc3(0x4d2)](),_0x4dc647=At/_0x493bab,_0x5772c1=new T[(_0x595bc3(0x460))](_e+a['generateRandomId'](H),{'left':_0x2ea4cf+_0x935e03-_0x4dc647,'top':_0x434e3b+_0x6df6b6,'height':_0x49e44b,'width':Mt,'fill':_0x453e75||T['getColor'](a['COLORS'][_0x595bc3(0x4df)],0x0),'strokeWidth':_0x4dc647,'stroke':Pt,'evented':!0x0});this[_0x595bc3(0x49c)]=_0x5772c1,this[_0x595bc3(0x25f)][_0x595bc3(0x49e)](_0x5772c1,C['TEXT_RANGE_LAYER_INDEX']);const _0x56266c=new T[(_0x595bc3(0x460))](_e+a[_0x595bc3(0x404)](H),{'left':_0x2ea4cf+_0x935e03-_0x4dc647,'top':_0x434e3b+_0x6df6b6-he/0x2,'height':he,'width':he,'fill':_0x453e75||T['getColor'](a[_0x595bc3(0x375)][_0x595bc3(0x4df)],0x0),'strokeWidth':0x0,'stroke':_0x453e75||T[_0x595bc3(0x2ec)](a[_0x595bc3(0x375)][_0x595bc3(0x4df)],0x0),'evented':!0x1});this[_0x595bc3(0x345)]=_0x56266c,this[_0x595bc3(0x25f)][_0x595bc3(0x49e)](_0x56266c,C[_0x595bc3(0x2f7)]);const _0x250b13=new re(_e+a['generateRandomId'](H),{'left':_0x2ea4cf+_0x935e03-_0x4dc647,'top':_0x434e3b+_0x6df6b6-X,'text':_0xfd5758,'color':_0x453e75});this[_0x595bc3(0x473)]=_0x250b13,this[_0x595bc3(0x25f)][_0x595bc3(0x49e)](_0x250b13,C[_0x595bc3(0x2f7)]),this[_0x595bc3(0x44b)]=!0x1;}[_0x400d5f(0x3f5)](){const _0xed8a0e=_0x400d5f,_0x4ffa51=this['_anchor']['onPointerEnter$'][_0xed8a0e(0x21b)](()=>{this['_hover']=!0x0;}),_0x259d43=this['_anchor'][_0xed8a0e(0x4d0)][_0xed8a0e(0x21b)](()=>{const _0x35529c=_0xed8a0e;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x35529c(0x479)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4cc0bd=_0xed8a0e;_0x4ffa51[_0x4cc0bd(0x3bf)](),_0x259d43[_0x4cc0bd(0x3bf)]();};}[_0x400d5f(0x323)](_0x54d9fe,_0x5bc1fb,_0x4fc745,_0x27c83a){const _0x14e062=_0x400d5f,_0x1290bd=new a[(_0x14e062(0x3ae))](_0x54d9fe)[_0x14e062(0x292)](0.2)['toRgbString'](),_0x22dabe=new T[(_0x14e062(0x411))](Ut+a[_0x14e062(0x404)](H),{'pointsGroup':_0x5bc1fb,'fill':_0x1290bd||T[_0x14e062(0x2ec)](a['COLORS'][_0x14e062(0x4df)],0.2),'left':_0x4fc745,'top':_0x27c83a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x14e062(0x3a8)](_0x22dabe),this['_scene']['addObject'](_0x22dabe,C[_0x14e062(0x2f7)]);}[_0x400d5f(0x470)](_0x23f7e6,_0x43a540,_0x579a19,_0xb5471d){const _0x308a87=_0x400d5f,_0x2f3f64=new a[(_0x308a87(0x3ae))](_0x23f7e6)['setAlpha'](0.2)[_0x308a87(0x423)](),_0x42cc35=new T[(_0x308a87(0x411))](Lt+a[_0x308a87(0x404)](H),{'pointsGroup':_0x43a540,'fill':_0x2f3f64||T[_0x308a87(0x2ec)](a['COLORS'][_0x308a87(0x4df)],0.2),'left':_0x579a19,'top':_0xb5471d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x42cc35),this['_scene'][_0x308a87(0x49e)](_0x42cc35,C['TEXT_RANGE_LAYER_INDEX']);}[_0x400d5f(0x356)](_0x3a63d7){const _0x5edab7=_0x3a63d7[0x0],_0x25300c=_0x5edab7[0x0],_0x1322a9=_0x5edab7[0x2],{x:_0x10f644,y:_0x38764f}=_0x25300c,{x:_0x1ff050,y:_0x38ba75}=_0x1322a9;return{'left':_0x10f644,'top':_0x38764f,'width':_0x1ff050-_0x10f644,'height':_0x38ba75-_0x38764f};}[_0x400d5f(0x4d2)](){const _0x36e57e=_0x400d5f,{scaleX:_0x2ce634,scaleY:_0x20f087}=this['_scene'][_0x36e57e(0x3d1)]();return Math[_0x36e57e(0x48a)](_0x2ce634,_0x20f087);}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x1c4ce0,_0xbc5414,_0x546b6c,_0x2df166)=>{const _0x1d38d8=_0x400d5f;for(var _0x48b701=_0x2df166>0x1?void 0x0:_0x2df166?wt(_0xbc5414,_0x546b6c):_0xbc5414,_0x10a543=_0x1c4ce0[_0x1d38d8(0x365)]-0x1,_0xdfd445;_0x10a543>=0x0;_0x10a543--)(_0xdfd445=_0x1c4ce0[_0x10a543])&&(_0x48b701=_0xdfd445(_0x48b701)||_0x48b701);return _0x48b701;},q=(_0x589a5b,_0x3d247f)=>(_0xc5b40d,_0x38fd38)=>_0x3d247f(_0xc5b40d,_0x38fd38,_0x589a5b);let Ee=class extends a[_0x400d5f(0x400)]{constructor(_0x11a0de,_0x5a5b95,_0x25d3ce,_0x56ae13,_0x5e8c5c){const _0x73a686=_0x400d5f;super(),_(this,'_cursorShapes',[]),_(this,_0x73a686(0x23f),[]),(this[_0x73a686(0x2ad)]=_0x11a0de,this[_0x73a686(0x3bc)]=_0x5a5b95,this[_0x73a686(0x325)]=_0x25d3ce,this[_0x73a686(0x3e3)]=_0x56ae13,this[_0x73a686(0x390)]=_0x5e8c5c,this[_0x73a686(0x37c)]());}[_0x400d5f(0x37c)](){const _0x44e792=_0x400d5f,_0x5bec10=this[_0x44e792(0x2ad)][_0x44e792(0x35f)],_0x4c6320=this['_docSkeletonManagerService'];this[_0x44e792(0x29d)](I[_0x44e792(0x253)]([this['_collabCursorController']['getCollabCursors$'](_0x5bec10),this[_0x44e792(0x390)][_0x44e792(0x381)]])[_0x44e792(0x2b4)]($[_0x44e792(0x354)](([_0x541279,_0xbe1462])=>({'skeleton':_0x4c6320[_0x44e792(0x4db)](),'cursors':[..._0x541279[_0x44e792(0x3d8)]()][_0x44e792(0x1fa)](_0x7770c3=>({..._0x7770c3,'color':this[_0x44e792(0x390)]['getColorFromTheme'](_0x7770c3[_0x44e792(0x333)])}))})))['subscribe'](_0x363377=>{const _0x4ca863=_0x44e792;if(this[_0x4ca863(0x33e)](),_0x363377){const {skeleton:_0x128973,cursors:_0x46b428}=_0x363377;this[_0x4ca863(0x2d6)](_0x128973,_0x46b428);}})),this[_0x44e792(0x226)](),this[_0x44e792(0x320)]();}['_updateCollabCursors'](_0x57b1bb,_0xe35e4a){const _0x55b788=_0x400d5f,{scene:_0x3778a7,mainComponent:_0x31803f}=this['_context'],_0x1f919d=_0xe35e4a[_0x55b788(0x354)](_0x44e639=>new Me(_0x44e639,_0x3778a7,_0x57b1bb,_0x31803f));this[_0x55b788(0x383)]=_0x1f919d,this[_0x55b788(0x23f)]=_0xe35e4a;}[_0x400d5f(0x313)](){const _0x3b9969=_0x400d5f;this[_0x3b9969(0x33e)]();const {scene:_0x53b5e2,mainComponent:_0x4011e4}=this[_0x3b9969(0x2ad)],_0x352aab=this['_docSkeletonManagerService'][_0x3b9969(0x4db)](),_0x1f045b=this[_0x3b9969(0x23f)][_0x3b9969(0x354)](_0x3c53c8=>new Me(_0x3c53c8,_0x53b5e2,_0x352aab,_0x4011e4));this[_0x3b9969(0x383)]=_0x1f045b;}['_removeCollabCursors'](){const _0x49dab2=_0x400d5f;this['_cursorShapes']['forEach'](_0x1dbacd=>_0x1dbacd[_0x49dab2(0x22c)]()),this[_0x49dab2(0x383)]=[];}[_0x400d5f(0x320)](){const _0x1bb2b5=_0x400d5f,_0x243ebc=[C[_0x1bb2b5(0x3c7)]['id']];this['disposeWithMe'](this[_0x1bb2b5(0x3e3)][_0x1bb2b5(0x203)](_0xe1cfec=>{const _0x2c022f=_0x1bb2b5;_0x243ebc['includes'](_0xe1cfec['id'])&&_0xe1cfec[_0x2c022f(0x2b0)][_0x2c022f(0x35f)]===this[_0x2c022f(0x2ad)][_0x2c022f(0x35f)]&&this[_0x2c022f(0x313)]();}));}[_0x400d5f(0x226)](){const _0x5db9c4=_0x400d5f;this[_0x5db9c4(0x29d)](a[_0x5db9c4(0x448)](this[_0x5db9c4(0x2ad)][_0x5db9c4(0x28c)]['onTransformChange$'])['pipe']($[_0x5db9c4(0x32c)](_0x16cc38=>_0x16cc38[_0x5db9c4(0x27c)]===T[_0x5db9c4(0x22a)][_0x5db9c4(0x378)]),$['throttleTime'](0x10))[_0x5db9c4(0x247)](()=>{this['_refreshCollabCursors']();}));}};Ee=yt([q(0x1,a[_0x400d5f(0x4b6)](V[_0x400d5f(0x408)])),q(0x2,a[_0x400d5f(0x4b6)](k)),q(0x3,a[_0x400d5f(0x2d2)]),q(0x4,a[_0x400d5f(0x4b6)](a[_0x400d5f(0x331)]))],Ee);const $t=0x1,xt=1.5;class Ye extends T[_0x400d5f(0x3fb)]{constructor(_0x2c9316,_0x46d62c){const _0x560183=_0x400d5f;var _0x466079,_0x185bd2;super(_0x2c9316,_0x46d62c),_(this,'_color'),_(this,_0x560183(0x2f4),!0x1),_(this,_0x560183(0x40a)),_(this,_0x560183(0x314),''),_(this,_0x560183(0x3fa),_0x560183(0x387)),_(this,'_backgroundColor'),_(this,'_showText'),_(this,'_highlight'),_(this,_0x560183(0x32a),0x4),_(this,_0x560183(0x26f)),_(this,'_blinkIntervalTimer'),_(this,'_isBlinkVisible',!0x0),_(this,_0x560183(0x441),0x0),(_0x46d62c&&(this[_0x560183(0x2da)](_0x46d62c),_0x46d62c[_0x560183(0x361)]&&((_0x466079=_0x46d62c[_0x560183(0x42c)])!=null?_0x466079:this[_0x560183(0x32a)])&&this[_0x560183(0x396)]((_0x185bd2=_0x46d62c[_0x560183(0x42c)])!=null?_0x185bd2:this[_0x560183(0x32a)])),this['onPointerEnter$'][_0x560183(0x21b)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x560183(0x4d0)][_0x560183(0x21b)](()=>this[_0x560183(0x2da)]({'hovered':!0x1})));}['setOffsetY'](_0x9d201a){const _0x24214a=_0x400d5f;this[_0x24214a(0x441)]=_0x9d201a;}['setShapeProps'](_0x30839b){const _0x10f087=_0x400d5f;var _0x52a8fe,_0x4dbca3,_0x54a22e,_0x1a9618,_0x1dd5e3,_0x5b8ea9,_0x522e49;this[_0x10f087(0x2a0)]=(_0x52a8fe=_0x30839b[_0x10f087(0x333)])!=null?_0x52a8fe:this[_0x10f087(0x2a0)],this['_hovered']=(_0x4dbca3=_0x30839b[_0x10f087(0x2cc)])!=null?_0x4dbca3:this[_0x10f087(0x2f4)],this['_range']=(_0x54a22e=_0x30839b[_0x10f087(0x4b7)])!=null?_0x54a22e:this[_0x10f087(0x40a)],this[_0x10f087(0x314)]=(_0x1a9618=_0x30839b[_0x10f087(0x341)])!=null?_0x1a9618:this[_0x10f087(0x314)],this['_labelPosition']=(_0x1dd5e3=_0x30839b[_0x10f087(0x2db)])!=null?_0x1dd5e3:this[_0x10f087(0x3fa)],this[_0x10f087(0x482)]=(_0x5b8ea9=_0x30839b[_0x10f087(0x39e)])!=null?_0x5b8ea9:this[_0x10f087(0x482)],this[_0x10f087(0x38f)]=(_0x522e49=_0x30839b[_0x10f087(0x339)])!=null?_0x522e49:this[_0x10f087(0x38f)],_0x30839b[_0x10f087(0x42c)]!==void 0x0&&(this['_highlightSecond']=_0x30839b[_0x10f087(0x42c)]),_0x30839b[_0x10f087(0x361)]!==void 0x0&&(this['_highlight']=_0x30839b[_0x10f087(0x361)]),_0x30839b[_0x10f087(0x3d6)]!==void 0x0&&(this[_0x10f087(0x441)]=_0x30839b[_0x10f087(0x3d6)]),this[_0x10f087(0x270)]({'width':_0x30839b['width'],'height':_0x30839b[_0x10f087(0x4a9)]});}['onMouseMove'](_0x343f7e){const _0x2aa5b5=_0x400d5f,{row:_0x52b228,column:_0x383973}=_0x343f7e;if(_0x52b228>=this[_0x2aa5b5(0x40a)][_0x2aa5b5(0x364)]&&_0x52b228<=this[_0x2aa5b5(0x40a)][_0x2aa5b5(0x454)]&&_0x383973>=this[_0x2aa5b5(0x40a)][_0x2aa5b5(0x4d3)]&&_0x383973<=this['_range'][_0x2aa5b5(0x40e)]){this[_0x2aa5b5(0x2da)]({'hovered':!0x0});return;}this[_0x2aa5b5(0x2da)]({'hovered':!0x1});}[_0x400d5f(0x396)](_0x45aa7a){const _0x930116=_0x400d5f;this['_stopBlinking'](),this[_0x930116(0x3c0)]=!0x0,this['_blinkIntervalTimer']=window['setInterval'](()=>{const _0x33f4e6=_0x930116;this['_isBlinkVisible']=!this[_0x33f4e6(0x3c0)],this[_0x33f4e6(0x23a)](!0x0);},0x1f4),this[_0x930116(0x26f)]=window[_0x930116(0x261)](()=>{const _0x480b15=_0x930116;this['_stopBlinking'](),this[_0x480b15(0x3c0)]=!0x0,this[_0x480b15(0x23a)](!0x0);},_0x45aa7a*0x3e8);}[_0x400d5f(0x290)](){const _0xa4b750=_0x400d5f;this[_0xa4b750(0x4cd)]&&(window[_0xa4b750(0x368)](this[_0xa4b750(0x4cd)]),this[_0xa4b750(0x4cd)]=void 0x0),this[_0xa4b750(0x26f)]&&(window[_0xa4b750(0x233)](this[_0xa4b750(0x26f)]),this[_0xa4b750(0x26f)]=void 0x0);}[_0x400d5f(0x4bf)](_0x4e3e79){return!0x1;}['dispose'](){const _0x60e7ab=_0x400d5f;this[_0x60e7ab(0x290)](),super[_0x60e7ab(0x22c)]();}[_0x400d5f(0x34d)](_0x2c2c8b){const _0x2ecaa2=_0x400d5f;var _0x28c492,_0x10be76;let _0x22dc2e=this[_0x2ecaa2(0x2a0)],_0x834755=this[_0x2ecaa2(0x482)];this[_0x2ecaa2(0x2e3)]&&!this[_0x2ecaa2(0x3c0)]&&(_0x22dc2e=this[_0x2ecaa2(0x21c)](this['_color']),_0x834755=this[_0x2ecaa2(0x482)]?this[_0x2ecaa2(0x21c)](this[_0x2ecaa2(0x482)]):void 0x0),T['Rect'][_0x2ecaa2(0x3ff)](_0x2c2c8b,{'width':this[_0x2ecaa2(0x20f)],'height':this[_0x2ecaa2(0x4a9)],'strokeWidth':(_0x28c492=this[_0x2ecaa2(0x461)])!=null?_0x28c492:xt,'stroke':_0x22dc2e,'evented':!0x1,'fill':_0x834755}),(this[_0x2ecaa2(0x2f4)]||this['_showText'])&&(_0x2c2c8b[_0x2ecaa2(0x4c6)](),_0x2c2c8b['transform'](0x1,0x0,0x0,0x1,this[_0x2ecaa2(0x20f)],(this[_0x2ecaa2(0x3fa)]===_0x2ecaa2(0x346)?0x0:-X)+((_0x10be76=this['_offsetY'])!=null?_0x10be76:0x0)),re['drawWith'](_0x2c2c8b,{'text':this['_name'],'color':_0x22dc2e}),_0x2c2c8b['restore']());}[_0x400d5f(0x21c)](_0x3606c3){const _0x2252a2=_0x400d5f;if(_0x3606c3[_0x2252a2(0x29f)]('#')){const _0x4a611f=Number[_0x2252a2(0x3cf)](_0x3606c3['slice'](0x1,0x3),0x10),_0x50d829=Number[_0x2252a2(0x3cf)](_0x3606c3['slice'](0x3,0x5),0x10),_0x262128=Number[_0x2252a2(0x3cf)](_0x3606c3[_0x2252a2(0x220)](0x5,0x7),0x10);return _0x2252a2(0x2f3)+_0x4a611f+',\x20'+_0x50d829+',\x20'+_0x262128+_0x2252a2(0x47f);}return _0x3606c3[_0x2252a2(0x29f)](_0x2252a2(0x213))?_0x3606c3[_0x2252a2(0x2ff)](/[\d.]+\)$/g,_0x2252a2(0x413)):_0x3606c3[_0x2252a2(0x29f)](_0x2252a2(0x463))?_0x3606c3[_0x2252a2(0x2ff)](_0x2252a2(0x463),_0x2252a2(0x213))[_0x2252a2(0x2ff)](')',',\x200.2)'):_0x3606c3;}}var Bt=Object[_0x400d5f(0x329)],kt=(_0x2f5b3b,_0x547068,_0x103be7,_0x9774a6)=>{for(var _0x378640=_0x9774a6>0x1?void 0x0:_0x9774a6?Bt(_0x547068,_0x103be7):_0x547068,_0x1b3f47=_0x2f5b3b['length']-0x1,_0x1e2ed8;_0x1b3f47>=0x0;_0x1b3f47--)(_0x1e2ed8=_0x2f5b3b[_0x1b3f47])&&(_0x378640=_0x1e2ed8(_0x378640)||_0x378640);return _0x378640;},ue=(_0x1d5a72,_0x40dfe8)=>(_0x2ed4f3,_0x2f6568)=>_0x40dfe8(_0x2ed4f3,_0x2f6568,_0x1d5a72);const Ft=0x1389;let Te=class extends a[_0x400d5f(0x400)]{constructor(_0x96526b,_0x4afad5,_0x4efb39,_0xcd206f){const _0x2cad40=_0x400d5f;super(),_(this,_0x2cad40(0x23f),new Set()),_(this,_0x2cad40(0x32d),null),(this[_0x2cad40(0x2ad)]=_0x96526b,this[_0x2cad40(0x386)]=_0x4afad5,this['_collabCursorController']=_0x4efb39,this[_0x2cad40(0x390)]=_0xcd206f,this[_0x2cad40(0x37c)]());}[_0x400d5f(0x37c)](){const _0x3d65c0=_0x400d5f;this[_0x3d65c0(0x386)][_0x3d65c0(0x2f1)]['pipe']($[_0x3d65c0(0x289)](this['dispose$']),$[_0x3d65c0(0x43c)](_0x34dade=>{const _0x20d8f9=_0x3d65c0;if(_0x34dade){const _0xd99d93=_0x34dade[_0x20d8f9(0x2eb)];return I[_0x20d8f9(0x253)](this[_0x20d8f9(0x325)][_0x20d8f9(0x265)](this[_0x20d8f9(0x2ad)][_0x20d8f9(0x35f)]),this[_0x20d8f9(0x390)][_0x20d8f9(0x381)])[_0x20d8f9(0x2b4)]($['map'](([_0x4d4e8a,_0x13eecc])=>{const _0x260d82=new Map();return _0x4d4e8a['forEach']((_0x3cf7dc,_0x1c25d8)=>{const _0xc131c9=_0x1c4b;if(_0x3cf7dc[_0xc131c9(0x230)]===_0xd99d93){const _0x3df9be={..._0x3cf7dc};_0x3df9be[_0xc131c9(0x333)]=this[_0xc131c9(0x390)][_0xc131c9(0x234)](_0x3cf7dc['color']),_0x260d82[_0xc131c9(0x20c)](_0x1c25d8,_0x3df9be);}}),{'skeleton':_0x34dade,'cursors':_0x260d82};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x3d65c0(0x247)](({skeleton:_0x1b2d70,cursors:_0x400246})=>{const _0x38fd44=_0x3d65c0;this[_0x38fd44(0x33e)](),_0x1b2d70&&this[_0x38fd44(0x2d6)](_0x1b2d70,_0x400246);}),this[_0x3d65c0(0x386)]['currentSkeleton$'][_0x3d65c0(0x247)](_0x4a7a49=>{const _0x1464b0=_0x3d65c0;if(_0x4a7a49==null)return;const {skeleton:_0x143f49}=_0x4a7a49,{scene:_0x27a19e}=this[_0x1464b0(0x2ad)];_0x27a19e[_0x1464b0(0x44c)][_0x1464b0(0x21b)](a['debounce'](_0x4cec49=>{const _0x1df806=_0x1464b0;var _0x377f66,_0x375799;const {offsetX:_0x26ec20,offsetY:_0x1b7c76}=_0x4cec49,{x:_0x2a426a,y:_0x38893a}=_0x27a19e[_0x1df806(0x3c3)](T[_0x1df806(0x48e)][_0x1df806(0x432)]([_0x26ec20,_0x1b7c76])),{scaleX:_0x44f518,scaleY:_0x5d84f1}=_0x27a19e['getAncestorScale'](),_0x19892c=_0x27a19e[_0x1df806(0x310)](T[_0x1df806(0x3b3)][_0x1df806(0x3b0)]),_0x1509d5=_0x27a19e[_0x1df806(0x21a)](T['Vector2'][_0x1df806(0x432)]([_0x2a426a,_0x38893a]),_0x19892c),_0x1fef3c=_0x143f49[_0x1df806(0x442)](_0x26ec20,_0x1b7c76,_0x44f518,_0x5d84f1,_0x1509d5);((_0x377f66=this[_0x1df806(0x32d)])==null?void 0x0:_0x377f66['column'])===_0x1fef3c[_0x1df806(0x4d5)]&&((_0x375799=this['_lastPointer'])==null?void 0x0:_0x375799[_0x1df806(0x4de)])===_0x1fef3c[_0x1df806(0x4de)]||this['_cursors']['forEach'](_0x497e56=>{const _0x35a18e=_0x1df806;_0x497e56[_0x35a18e(0x286)](_0x1fef3c);});},0x64));});}[_0x400d5f(0x2d6)](_0xb3a426,_0x5722d6){const _0x17fc29=_0x400d5f;var _0x1c83c3;const _0x3eb89d=(_0x1c83c3=this[_0x17fc29(0x386)][_0x17fc29(0x466)]())==null?void 0x0:_0x1c83c3['skeleton'];if(!_0x3eb89d)return;const _0x1eb673=this[_0x17fc29(0x397)]();if(!_0x1eb673)return;this['_cursors']['forEach'](_0x1c0e4c=>{const _0x5bb532=_0x17fc29;_0x1c0e4c[_0x5bb532(0x23a)]();});const {scene:_0x3d662d}=_0x1eb673,_0xb1f1d4=jt(Array[_0x17fc29(0x2fe)](_0x5722d6[_0x17fc29(0x3d8)]()))[_0x17fc29(0x354)](_0x3e0e0f=>{const _0x408c6a=_0x17fc29,{color:_0x5565c8,range:_0xdc9745,name:_0x6b73a,selection:_0xcd10b5,sheetID:_0x45596e}=_0x3e0e0f,{startColumn:_0x252abb,startRow:_0x142091,endColumn:_0x5c0e4e,endRow:_0x1bb685}=_0xdc9745,_0x32195c=J[_0x408c6a(0x3c1)](_0x142091,_0x252abb,_0x3d662d,_0x3eb89d),_0x3f62b9=J['getCoordByCell'](_0x1bb685,_0x5c0e4e,_0x3d662d,_0x3eb89d),{columnHeaderHeightAndMarginTop:_0x228e1a}=_0x3eb89d,{startX:_0x1a4b29,startY:_0x34de65}=_0x32195c,{endX:_0x56f217,endY:_0x58ecd9}=_0x3f62b9,_0x3b7afd=_0x56f217-_0x1a4b29,_0x452a5a=_0x58ecd9-_0x34de65,_0x123674={'labelPosition':_0x34de65-_0x228e1a>=X?_0x408c6a(0x387):_0x408c6a(0x346),'sheetID':_0x45596e,'range':_0xdc9745,'color':_0x5565c8,'name':_0x6b73a,'selection':_0xcd10b5,'left':_0x1a4b29,'top':_0x34de65,'width':_0x3b7afd,'height':_0x452a5a,'evented':!0x1,'zIndex':Ft};return new Ye(_0x6b73a,_0x123674);});_0x3d662d[_0x17fc29(0x244)](_0xb1f1d4,$t),this[_0x17fc29(0x23f)]=new Set(_0xb1f1d4);}['_removeCollabCursors'](){const _0x328124=_0x400d5f;var _0x338d67;(_0x338d67=this['_cursors'])==null||_0x338d67[_0x328124(0x2ed)](_0x36d26c=>_0x36d26c[_0x328124(0x22c)]());}[_0x400d5f(0x397)](){const _0x5a46c2=_0x400d5f;return J[_0x5a46c2(0x493)](this[_0x5a46c2(0x2ad)][_0x5a46c2(0x4a4)],this['_context']);}};Te=kt([ue(0x1,a[_0x400d5f(0x4b6)](J[_0x400d5f(0x422)])),ue(0x2,a[_0x400d5f(0x4b6)](k)),ue(0x3,a[_0x400d5f(0x4b6)](a[_0x400d5f(0x331)]))],Te);function jt(_0x2bb7c0){const _0x3664cb=_0x400d5f,_0x2c90cb=new Map();return _0x2bb7c0[_0x3664cb(0x2ed)](_0x297b32=>{const _0x3791cd=_0x3664cb;if(_0x2c90cb[_0x3791cd(0x42e)](_0x297b32[_0x3791cd(0x216)])){const _0x3e62da=_0x2c90cb[_0x3791cd(0x28b)](_0x297b32[_0x3791cd(0x216)]);_0x3e62da[_0x3791cd(0x341)]+=',\x20'+_0x297b32['name'];}else _0x2c90cb[_0x3791cd(0x20c)](_0x297b32['selection'],_0x297b32);}),Array['from'](_0x2c90cb['values']());}var Yt=Object[_0x400d5f(0x329)],Ht=(_0x4121bc,_0x4e36d1,_0xc72750,_0x207299)=>{const _0x3abc82=_0x400d5f;for(var _0x414d50=_0x207299>0x1?void 0x0:_0x207299?Yt(_0x4e36d1,_0xc72750):_0x4e36d1,_0x53b04f=_0x4121bc[_0x3abc82(0x365)]-0x1,_0x5b76e6;_0x53b04f>=0x0;_0x53b04f--)(_0x5b76e6=_0x4121bc[_0x53b04f])&&(_0x414d50=_0x5b76e6(_0x414d50)||_0x414d50);return _0x414d50;},y=(_0x537e06,_0xbe0bb3)=>(_0x38c6bd,_0x22c284)=>_0xbe0bb3(_0x38c6bd,_0x22c284,_0x537e06);function _0x2b87(){const _0x449eb0=['contains','univerjs-icon\x20univerjs-icon-','code','redoState','_drawRectRange','NO_OTHER_CLIENTS_EDITING','debounce','_textBubble','INVALID_INVITE_CODE','off-line-icon_clip0_910_343','translate(.97)','_currentUsage','CollaborationStatus','_hideTimer','_onCursorUpdate','pluginName','_onCursorDelete','univer-mr-2\x20univer-flex\x20univer-text-xl','Loading',',\x200.2)','handleDeleteRangeMoveLeft','error','_backgroundColor','registerRenderModule','registerRefRange','getUniverSheetInstance','ENTITLE_INVALID_COUPON_CODE','getUnit','DEFAULT_WS_SESSION_TICKET_URL','APPLY_REVISION_CONFILICT','max','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','catch','_releaseCalculationLimit','Vector2','APPLY_PERMISSION_DENIED','xlink:href','Failed','closePath','getSheetObject','_configService','_docStateChangeManagerService','mask','_docTransformIMECacheService','_updateURLWithCurrentState','cursorInfo','REDEMPTION_CODE_NOT_STARTED','assignAColorForMemberID','_anchor','activeSheet$','addObject','loadUnit','_handleJoinEvent','_showGuardMessage','add','location','unit','registerComponent','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','getSheetId','MOBILE_HAS_BEEN_BOUND','height','SetFormulaCalculationStartMutation','beginPath','Error','mapTo','IRenderManagerService','textRanges','replaceState','transformIMECache','getCurrentRevOfUnit','_univerInstanceService','...','toDisposable','Inject','range','_initStatusComponent','reconnect','dirtyRanges','WebSocketService','getFormulaLimitStatusUrl','RichTextEditingMutation','CollaborationUIEventService','triggerDblclick','_disabled','40XFYGll','isActive','saveTaskMap','handleInsertRangeMoveDown','_handleEvent','save','Unknown\x20user','useDependency','_shapes','startFormulaLimitUrl','doc.mutation.rich-text-editing','_taskIds','_blinkIntervalTimer','status$','transformRemoteChangeset','onPointerLeave$','_document','_getScale','startColumn','tag','column','DependentOn','message','invokeId','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','LOGIN_TOKEN_PROCESSING_FAILED','getSkeleton','DeleteRangeMoveUpCommandId','CollaborationSessionService','row','black','forwardRef','getActiveRange','_roomMembers$','currentColor','random','ALREADY_EXISTS','registerBeforeClose','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','stageInfo','red.300','stringify','_online','socket$','UniverIcon','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','TEXT','IMessageService','[LogService\x20Error]:\x20','_uiPartsService','USER_NOT_FOUND','yellow.400','_memberID','round','moveTo','_pollingInterval','/universer-api/license/formula/limit/start','flatMap','PY_RUNTIME_SCRIPT_ERROR','wsSessionTicketUrl','BehaviorSubject','getRangePointData','PENDING','HEADER_MENU','UNIVER_SHEET','SetTextSelectionsOperation','onCommandExecuted','USERS_LEAVE','CollaborationController','maxFormulaLimit','createElement','href','/universer-api/frontend/logs','updateOfflineData','exhaustSavingTask','set','_initWindowErrorListener','UNIVER_DOC','width','popstate','white','post','rgba','FETCH_MISS','replaceDocRanges','selection','collabStatus.fetchMiss','ILocalStorageService','jsxs','getVpScrollXYInfoByPosToVp','subscribeEvent','_getLighterColor','next','_ensureSubject','createIdentifier','slice','docStateChange$','getStateCache','_urlService','_toggleOnline','getDocRanges','_initResize','collabCursorState$','DOC_RANGE_TYPE','/universer-api/license/formula/limit/status','TRANSFORM_CHANGE_OBSERVABLE_TYPE','IUniverInstanceService','dispose','DocIMEInputManagerService','MOBILE_VERIFY_CODE_MISMATCH','uni.network.url-service','sheetID','_cursorInfo$','rgba(255,\x20255,\x20255,\x200.01)','clearTimeout','getColorFromTheme','symbol','fillStyle','_initUnhandledRejectionListener','disableLocalCache','[Window\x20Error]:\x20','makeDirty','432yFUtze','CLOSE_ROOM','unshift','NodePositionConvertToRectRange','_cursors','all','_renderManagerService','_unitOnClients','fill','addObjects','SheetCollabCursorShape','SheetsSelectionsService','subscribe','INVITE_CODE_ALREADY_BOUND','_eventUnsubscribe','entityInit$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LocaleService','div','subunit','_messageService','ENTITLE_USE_COUPON_NOT_1ST_TRADE','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SNAPSHOT_INVALID_SNAPSHOT','combineLatest','_docTransformSelectionsService','INVITE_CODE_HAS_BEEN_UES','REDEMPTION_CODE_INACTIVE','_docTransformStateCacheService','SOCKET_FAILED_RETRY','getCurrentUnitForType','setUndoRedoMutationParamsCache','UnitStatus','memberID','transformMutationsWithChangeset','collab-text-range-','_scene','_startSheetCollabCursor','setTimeout','50qvLnFp','actions','_uploadLog','getCollabCursors$','getCollabEntity$','WebBrowserSingleActiveUnitService','size','Success','getValue','_config','Tools','urlChange$','_colorAssignService','_blinkTimer','transformByState','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','CollaborationUIEventId','searchParams','text','_logService','show','IBeforeCloseService','getUnitStatus$','formula.calculation.started','setInterval','subUnitId','type','restore','UniverCollaborationClientPlugin','useRef','roomMembers$','setItem','_render','USER_NOT_INVITED_CODE','DocCollaborationEntity','_id','onMouseMove','BuiltInUIPart','_collabSessionService','takeUntil','findNodePositionByCharIndex','get','engine','ENTITLE_REPORT_LIMIT_EXCEED','_initUserListener','limitInfo','_stopBlinking','getConfig','setAlpha','sessionTicket','LOCAL_CACHE_INTERVAL_KEY','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','isEditing','OTHER_CLIENTS_EDITING','ENTITLE_COUPON_USED_UP','YUUMI_AI_RUN_FAILED','useObservable','collaboration-client-ui.config','shareReplay','disposeWithMe','_unitStatus','startsWith','_color','YUUMI_TABLE_NOT_FOUND_IN_UNIT','Disposable','YUUMI_ASYNCIO_CANCELLED','_hasFormulaInDirtyRanges','collab-rect-range-','_httpService','handleInsertCol','_checkAndWaitForCalculationPermission','_cursor','_collaborationUIEventService','measureText','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_context','LICENSE_IMPORT_SIZE_EXCEEDED','LICENSE_EXPORT_SIZE_EXCEEDED','params','_onRefRangeChange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','clipPath','pipe','complete','_injector','distinctUntilChanged','ranges','handleMoveRange','url(#off-line-icon_clip0_910_343)','_collabCursorState$','permission.title','getFocusedUnit','reason','APPLY_DUPLICATED','getTypeOfUnitAdded$','transformMutation','HTTPService','[CollaborationDataLoaderController]','handleInsertRow','data','_localeService','_localStorageService','current','EMAIL_VERIFY_CODE_MISMATCH','UPDATE_CURSOR','_session','hovered','key','getMemberID','_send','REDEMPTION_INVALID_CODE','YUUMI_NO_CUBOID_FOR_QUESTION','ICommandService','_colorIndex','NodePositionConvertToCursor','substring','_updateCollabCursors','_assignedColors','AUTHORIZE_CODE_ILLEGAL','handleDeleteRangeMoveUp','setShapeProps','labelPosition','releaseFormulaLimitUrl','toString','entries','DisposableCollection','DeleteRangeMoveLeftCommandId','createSocket','_initCommandInterceptor','_highlight','getItem','svg','some','UniverCollaborationClientUIPlugin','url(#$1','font','CollaborationEvent','sheetId','getColor','forEach','session.will-retry','jsx','_collaborationController','currentSkeleton$','_registerDependencies','rgba(','_hovered','packageName','_imageIoService','TEXT_RANGE_LAYER_INDEX','_selfUnitIDs','ERROR_AGAIN','m2Prime','permission.content','YUUMI_SUBSCRIPTION_NOT_FOUND','M0\x200H16V16H0z','from','replace','colorChannel1','init','ENTITLE_INSUFFICIENT_QUOTA','SetSelectionsOperation','ITransformService','formula.calculation.waiting','now','getSheetBySheetId','clsx','addClipboardHook','idSuffix','UniverInstanceType','REDEMPTION_USER_NOT_ELIGIBLE','enableFrontendLog','delete','getRenderById','getViewport','SUCCESS','purple.300','_refreshCollabCursors','_name','0\x200\x2016\x2016','_getSessionTicket','collaboration.closeRoom','_lastResponseTimestamp','on-line-icon','touchDependencies','_getMergeRange','_maxFormulaLimit','ISnapshotServerService','_scheduleHeartbeat','APPLY_REJECT','_initCommandExecutedListener','collaboration.single-unit.warning','path','_drawTextRange','@univerjs-pro/collaboration-client-ui','_collabCursorController','EffectRefRangId','CollaborationDataLoaderController','runOnServer','getOwnPropertyDescriptor','_highlightSecond','setActiveRange','filter','_lastPointer','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','BrowserCollaborationSocketService','JOIN_ROOM_FAILED','ThemeService','PAYMENT_CHANNEL_NOT_SUPPORT','color','CONFLICT','loadOfflineData','totalFormulasToCalculate','TOO_MANY_REQUESTS','YUUMI_RATE_OVER_LIMIT','showText','ENSURE_SNAPSHOT_EXECUTION','WECHAT_HAS_BEEN_BOUND','ILocalCacheService','getUnitId','_removeCollabCursors','cursorInfo$','string','name','SYNCED','_transformUndoRedoStack','toStringTag','_anchorDot','bottom','roomMembers','IConfigService','requireSession','_initEntityListener','displayName','on-line-icon_clip0_910_349','_draw','_docClipboardService','YUUMI_URL_COL_OUT_OF_RANGE','NOT_FOUND','IImageIoService','YUUMI_UNABLE_LOAD_URL','4316944ZtVJsO','map','AWAITING','_getAnchorBounding','0\x200\x2017\x2016','attrs','_createSocketURL','removeParam','LOCAL_CACHE_INTERVAL','unitID','MoveRangeCommandId','fillText','unitId','hide','highlight','_refRangeService','ILogService','startRow','length','stage','SetFormulaCalculationNotificationMutation','clearInterval','then','getParam','arc','_cachedData','_toggleOffline','getMember','green.600','send','NOT_COLLAB','deserializeRangeWithSheet','_scheduleClearOtherTimer','isTransformMutationsWithChangesetSuccess','COLORS','_monkeyPatchLogService','_initDependencies','resize','CanceledError','application/json','runId','_init','ONLINE','bind','_initEvent','defineProperty','currentTheme$','onRendered','_cursorShapes','USER_IS_ANONYMOUS','sessionStatus$','_sheetSkeletonManagerService','top','4011eTjAFN','OnLineIcon','_registerRenderDependencies','_scheduleSaving','OTHER_CLIENT_EDITING','Workbook','focused$','_showText','_themeService','defIds','DocStateChangeManagerService','collab-text-anchor-','deepClone','getOffsetConfig','_startBlinking','_getSheetObject','includes','CommandType','trim','fromEvent','addEventListener','runRefRangeMutations','backgroundColor','PERMISSION_DENIED','_getSaveTimeout','MessageType','_setupSubUnitSync','?taskId=','isArray','collabStatus.notCollab','selections','registerDependencies','push','UNRECOGNIZED','EMAIL_HAS_BEEN_BOUND','_notificationService','FormulaExecuteStageType','_handleHeartbeatEvent','ColorKit','MUTATION','VIEW_MAIN','ENTITLE_DUP_SUBSCRIPTION','MemberService','SHEET_VIEWPORT_KEY','COMPLETION_FINISHED','newValue','dispose$','use','_revisionService','version','REDEMPTION_CODE_FULLY_REDEEMED','onLocalMutation','_docSkeletonManagerService','_transformService','UNAUTHENTICATED','unsubscribe','_isBlinkVisible','getCoordByCell','_entities','getRelativeToViewportCoord','IURLService','5376276PUxZle','asObservable','SetDocZoomRatioOperation','_beforeCloseService','_status$','_clearOtherTimers','UNDEFINED','IUIPartsService','RemoteUniscriptService','undoState','parseInt','_entityInit$','getAncestorScale','_checkCalculationAvailable','_dataLoaderService','blue.400','lineno','offsetY','OffLineIcon','values','ticket','SetWorksheetActivateCommand','body','IDocClipboardService','pushState','filename','lineTo','_setupBeforeClosingHandler','fillRule','eventID','_commandService','_saveTaskMap','imageSourceType','RevisionService','_collaborationSessionService','collabStatus.offline','stack','\x20at\x20','IRemoteInstanceService','ACTIVE_UNIT_EVENT_CHANNEL','_getFormulaLimitStatus','SessionStatus','CHANGESET_REVISION_CONFILICT','ENTITLE_COUPON_EXPIRED','APPLY_NON_SEQUENTIAL_REVISION','getUndoRedoMutationParamsCache','disposeUnit','evenodd','_handleHover','_handleLeaveEvent','RECT','handleIRemoveRow','transformSelections','_labelPosition','Shape','1489180GAtXEr','InsertRangeMoveDownCommandId','_localCacheService','drawWith','RxDisposable','_instanceService','event$','_initStatusListener','generateRandomId','RefRangeService','_heartbeatTimer','Plugin','DocSkeletonManagerService','transformStateCache','_range','children','isFormulaId','START_CALCULATION','endColumn','LICENSE_DISTRO_REJECTED','INTERNAL_ERROR','RegularPolygon','getTypeOfUnitDisposed$','0.2)','YUUMI_CONNECTOR_URL_NOT_FOUND','INVALID_ARGUMENT','history','setParam','with','WebURLService','YUUMI_ALL_TABLES_IS_INVALID','debounceTime','unhandledrejection','3081393ZGyMNb','search','0.17.0','_updateSubUnitFromURLParams','find','SheetSkeletonManagerService','toRgbString','CURRENT_STATUS_CANNOT_OPERATE','ENTITLE_CHAT_LIMIT_EXCEED','Injector','merge','univer-flex\x20univer-items-center','formula.calculation.unable','RemoveColCommandId','getActiveSheet','highlightSecond','defs','has','mutations','LOGIN_FAILED','_memberService','FromArray','join','_clearPolling','1em','_transformPreviousActiveRange','OFFLINE','_startDocCollabCursor','Warning','onStarting','m1Prime','switchMap','split','debug','InsertRangeMoveRightCommandId','[Unhandled\x20Rejection]:\x20','_offsetY','getCellPositionByOffset','_applyCommand','_transformHistoryAndStateStack','setStateCache','_setFormulaLimitStatus','isTransformMutationFailure','fromEventSubject','DesktopCollaborationStatusDisplayController','CollaborationSocketService','_hover','onPointerMove$','SNAPSHOT_HAS_BEEN_REMOVED','AWAITING_WITH_PENDING','executeCommand','collaboration.offline-data-not-saved','_updateLocalCursor','REDEMPTION_USER_REDEEM_TIMES_EXCEED','CONNECTOR_DATA_TOO_LARGE','endRow','createInstance','241372oQbQAx','9486QfZpcr','removeEventListener','min','_removeClearOtherTimer','editingUnit','beforeCommandExecuted','ENTITLE_CAN_NOT_BUY_LOWER_OTP','/run/','_docSyncEditingCollabCursorService','Rect','strokeWidth','INVITE_CODE_REQUIRED','rgb','ENTITLE_NEED_BILLING_ADDRESS','REDEMPTION_CODE_HAS_BEEN_CREATED','getCurrent','InsertColCommandId','DocSelectionManagerService','http://www.w3.org/2000/svg','_saveCache','DATA_SOURCE_TOO_LARGE'];_0x2b87=function(){return _0x449eb0;};return _0x2b87();}let Z=class extends a[_0x400d5f(0x2a2)]{constructor(_0x50d6ee,_0xb979dc,_0x1b1849,_0x272042,_0x793c30,_0x15d4ca){const _0x466579=_0x400d5f;super(),this['_beforeCloseService']=_0x50d6ee,this[_0x466579(0x3fe)]=_0xb979dc,this[_0x466579(0x2aa)]=_0x1b1849,this[_0x466579(0x24f)]=_0x272042,this['_notificationService']=_0x793c30,this[_0x466579(0x2c6)]=_0x15d4ca,this[_0x466579(0x3e0)](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x5bb9e0=_0x400d5f;this['disposeWithMe'](this[_0x5bb9e0(0x3c8)][_0x5bb9e0(0x4e6)](()=>{const _0x558f94=_0x5bb9e0;if(this[_0x558f94(0x3fe)][_0x558f94(0x4c3)]['size'])return this[_0x558f94(0x2c6)]['t'](_0x558f94(0x450));}));}[_0x400d5f(0x37f)](){const _0x4ea29a=_0x400d5f;this[_0x4ea29a(0x29d)](this[_0x4ea29a(0x2aa)]['event$'][_0x4ea29a(0x247)](_0x25c4b3=>{const _0x894dfb=_0x4ea29a;_0x25c4b3['id']===u['CollaborationUIEventId'][_0x894dfb(0x38c)]&&this[_0x894dfb(0x24f)][_0x894dfb(0x276)]({'type':p['MessageType'][_0x894dfb(0x439)],'content':this[_0x894dfb(0x2c6)]['t'](_0x894dfb(0x321))}),_0x25c4b3['id']===u['CollaborationUIEventId'][_0x894dfb(0x23c)]&&this[_0x894dfb(0x24f)]['show']({'type':p[_0x894dfb(0x3a1)][_0x894dfb(0x439)],'content':this['_localeService']['t'](_0x894dfb(0x317))}),_0x25c4b3['id']===u[_0x894dfb(0x272)]['PERMISSION_DENIED']&&this[_0x894dfb(0x3ab)][_0x894dfb(0x276)]({'title':this[_0x894dfb(0x2c6)]['t'](_0x894dfb(0x2bc)),'content':this[_0x894dfb(0x2c6)]['t'](_0x894dfb(0x2fb)),'type':_0x894dfb(0x481),'duration':0x0}),_0x25c4b3['id']===u[_0x894dfb(0x272)][_0x894dfb(0x334)]&&this[_0x894dfb(0x24f)][_0x894dfb(0x276)]({'type':p['MessageType'][_0x894dfb(0x4ac)],'content':this['_localeService']['t'](_0x894dfb(0x317))+'('+_0x25c4b3[_0x894dfb(0x2c5)]+')'}),_0x25c4b3['id']===u[_0x894dfb(0x272)][_0x894dfb(0x330)]&&this[_0x894dfb(0x24f)]['show']({'type':p[_0x894dfb(0x3a1)]['Warning'],'content':this['_localeService']['t'](_0x25c4b3['data']||'')}),_0x25c4b3['id']===u[_0x894dfb(0x272)][_0x894dfb(0x258)]&&this[_0x894dfb(0x24f)]['show']({'type':p[_0x894dfb(0x3a1)][_0x894dfb(0x439)],'content':this[_0x894dfb(0x2c6)]['t'](_0x894dfb(0x2ee))}),_0x25c4b3['id']===u[_0x894dfb(0x272)]['SOCKET_FAILED']&&this[_0x894dfb(0x24f)][_0x894dfb(0x276)]({'type':p[_0x894dfb(0x3a1)][_0x894dfb(0x4ac)],'content':this[_0x894dfb(0x2c6)]['t']('session.connection-failed')}),_0x25c4b3['id']===u[_0x894dfb(0x272)]['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':p['MessageType'][_0x894dfb(0x4ac)],'content':this[_0x894dfb(0x2c6)]['t']('session.collaboration-timeout')});}));}};Z=Ht([y(0x0,O[_0x400d5f(0x277)]),y(0x1,u[_0x400d5f(0x33c)]),y(0x2,a['Inject'](u[_0x400d5f(0x4be)])),y(0x3,O[_0x400d5f(0x4f0)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x400d5f(0x24c)]))],Z);const Wt=_0x400d5f(0x29b),Ae={};var Vt=Object[_0x400d5f(0x329)],Gt=(_0x52169e,_0x3a0493,_0x4aad26,_0x36e2c7)=>{const _0x312e4c=_0x400d5f;for(var _0x1c77b9=_0x36e2c7>0x1?void 0x0:_0x36e2c7?Vt(_0x3a0493,_0x4aad26):_0x3a0493,_0xbb185a=_0x52169e[_0x312e4c(0x365)]-0x1,_0x38c811;_0xbb185a>=0x0;_0xbb185a--)(_0x38c811=_0x52169e[_0xbb185a])&&(_0x1c77b9=_0x38c811(_0x1c77b9)||_0x1c77b9);return _0x1c77b9;},Pe=(_0x14c1c0,_0x6e8f6c)=>(_0x8b25ba,_0x228875)=>_0x6e8f6c(_0x8b25ba,_0x228875,_0x14c1c0);let Q=class{constructor(_0x5b4c98,_0x189ebc){const _0x290a2f=_0x400d5f;this[_0x290a2f(0x3bd)]=_0x5b4c98,this[_0x290a2f(0x241)]=_0x189ebc;}['transformIMECache'](_0x41a954){const _0x466e60=_0x400d5f;this[_0x466e60(0x343)](_0x41a954),this['_transformPreviousActiveRange'](_0x41a954);}[_0x400d5f(0x4cf)](_0x59ccae){const _0x1e6e06=_0x400d5f,{unitID:_0x51f4fb}=_0x59ccae,_0x4c32ca=this['_renderManagerService'][_0x1e6e06(0x30f)](_0x51f4fb)['with'](C[_0x1e6e06(0x22d)]),{redoCache:_0x24aeac}=_0x4c32ca[_0x1e6e06(0x3f2)]();if(_0x24aeac[_0x1e6e06(0x365)]===0x0)return _0x59ccae;let _0xa6f4d8=a[_0x1e6e06(0x26c)][_0x1e6e06(0x394)](_0x59ccae[_0x1e6e06(0x42f)][0x0]);for(let _0x780ffb=0x0;_0x780ffb<_0x24aeac[_0x1e6e06(0x365)];_0x780ffb++){const _0x339586={'id':_0x1e6e06(0x4cb),'params':{..._0x24aeac[_0x780ffb]}},_0x1f22c6=this['_transformService'][_0x1e6e06(0x2c1)](_0xa6f4d8,_0x339586,!0x1);if(v[_0x1e6e06(0x447)](_0x1f22c6))throw _0x1f22c6['error'];_0xa6f4d8=_0x1f22c6['m1Prime'];}return{...a[_0x1e6e06(0x26c)][_0x1e6e06(0x394)](_0x59ccae),'mutations':[_0xa6f4d8]};}[_0x400d5f(0x343)](_0x4478fc){const _0x1d1e37=_0x400d5f,{unitID:_0x5a6b34}=_0x4478fc,_0x4f9765=this[_0x1d1e37(0x241)][_0x1d1e37(0x30f)](_0x5a6b34)[_0x1d1e37(0x418)](C['DocIMEInputManagerService']),{undoCache:_0x279f22,redoCache:_0x2cad2a}=_0x4f9765[_0x1d1e37(0x3f2)]();if(_0x279f22[_0x1d1e37(0x365)]===0x0||_0x2cad2a['length']===0x0)return;const _0x10eca1=[],_0x24fe85=[];let _0x4e9269=a['Tools'][_0x1d1e37(0x394)](_0x4478fc[_0x1d1e37(0x42f)][0x0]),_0x380a8c=a[_0x1d1e37(0x26c)][_0x1d1e37(0x394)](_0x4478fc[_0x1d1e37(0x42f)][0x0]);for(let _0x29f5e9=_0x279f22[_0x1d1e37(0x365)]-0x1;_0x29f5e9>=0x0;_0x29f5e9--){const _0x216641={'id':_0x1d1e37(0x4cb),'params':{..._0x279f22[_0x29f5e9]}},_0x464358={'id':'doc.mutation.rich-text-editing','params':{..._0x2cad2a[_0x29f5e9]}},_0x44e82b=this[_0x1d1e37(0x3bd)]['transformMutation'](_0x4e9269,_0x216641,!0x1),_0x52b7b3=this[_0x1d1e37(0x3bd)][_0x1d1e37(0x2c1)](_0x380a8c,_0x464358,!0x1);if(v[_0x1d1e37(0x447)](_0x44e82b))throw _0x44e82b[_0x1d1e37(0x481)];if(v[_0x1d1e37(0x447)](_0x52b7b3))throw _0x52b7b3[_0x1d1e37(0x481)];_0x10eca1[_0x1d1e37(0x23d)](_0x44e82b[_0x1d1e37(0x2fa)][_0x1d1e37(0x2b0)]),_0x24fe85[_0x1d1e37(0x23d)](_0x52b7b3['m2Prime'][_0x1d1e37(0x2b0)]),_0x4e9269=_0x44e82b['m1Prime'],_0x380a8c=_0x52b7b3[_0x1d1e37(0x43b)];}_0x4f9765[_0x1d1e37(0x25a)]({'undoCache':_0x10eca1,'redoCache':_0x24fe85});}[_0x400d5f(0x436)](_0x2245f0){const _0x3221d2=_0x400d5f,{unitID:_0x4d41e7}=_0x2245f0,_0x43deb2=this['_renderManagerService'][_0x3221d2(0x30f)](_0x4d41e7)[_0x3221d2(0x418)](C[_0x3221d2(0x22d)]),_0x54ce78=_0x43deb2[_0x3221d2(0x4e1)]();if(_0x54ce78==null)return;const _0x3f8f96=[{'id':_0x3221d2(0x4cb),'params':{'unitId':_0x2245f0[_0x3221d2(0x35c)],'actions':null,'textRanges':[_0x54ce78]}}],_0x4e0baa=this[_0x3221d2(0x3bd)][_0x3221d2(0x25d)](_0x2245f0,_0x3f8f96);if(!v['isTransformMutationsWithChangesetSuccess'](_0x4e0baa))throw _0x4e0baa[_0x3221d2(0x481)];const _0x32d2cc=_0x4e0baa[_0x3221d2(0x2fa)][0x0]['params'][_0x3221d2(0x4af)];Array[_0x3221d2(0x3a4)](_0x32d2cc)&&_0x32d2cc[_0x3221d2(0x365)]&&_0x43deb2[_0x3221d2(0x32b)](_0x32d2cc[0x0]);}};Q=Gt([Pe(0x0,v['ITransformService']),Pe(0x1,T[_0x400d5f(0x4ae)])],Q);var Xt=Object[_0x400d5f(0x329)],Kt=(_0x35b74f,_0x4d53bc,_0x2b5cef,_0x54db33)=>{for(var _0x299bdd=_0x54db33>0x1?void 0x0:_0x54db33?Xt(_0x4d53bc,_0x2b5cef):_0x4d53bc,_0x56941c=_0x35b74f['length']-0x1,_0x1b1a8d;_0x56941c>=0x0;_0x56941c--)(_0x1b1a8d=_0x35b74f[_0x56941c])&&(_0x299bdd=_0x1b1a8d(_0x299bdd)||_0x299bdd);return _0x299bdd;},Ie=(_0x343aca,_0x153f1a)=>(_0x52236d,_0x51e547)=>_0x153f1a(_0x52236d,_0x51e547,_0x343aca);let ee=class{constructor(_0x17efa0,_0x130b56,_0x44a269){const _0x4d6aca=_0x400d5f;this['_injector']=_0x17efa0,this[_0x4d6aca(0x3bd)]=_0x130b56,this[_0x4d6aca(0x495)]=_0x44a269;}['transformStateCache'](_0x4ff8da){const _0x1eaf38=_0x400d5f;this[_0x1eaf38(0x444)](_0x4ff8da);}[_0x400d5f(0x4cf)](_0x193da3){const _0x2954ec=_0x400d5f,{unitID:_0x2c6842}=_0x193da3,{collaboration:_0x3bbdd2}=this[_0x2954ec(0x495)][_0x2954ec(0x222)](_0x2c6842);if(_0x3bbdd2[_0x2954ec(0x365)]===0x0)return _0x193da3;let _0x3255cf=a[_0x2954ec(0x26c)][_0x2954ec(0x394)](_0x193da3[_0x2954ec(0x42f)][0x0]);for(let _0x39bdd6=0x0;_0x39bdd6<_0x3bbdd2[_0x2954ec(0x365)];_0x39bdd6++){const _0x4da0d4={'id':_0x2954ec(0x4cb),'params':{'unitId':_0x3bbdd2[_0x39bdd6][_0x2954ec(0x35f)],..._0x3bbdd2[_0x39bdd6]['redoState']}},_0x3e8def=this['_transformService'][_0x2954ec(0x2c1)](_0x3255cf,_0x4da0d4,!0x1);if(v[_0x2954ec(0x447)](_0x3e8def))throw _0x3e8def[_0x2954ec(0x481)];_0x3255cf=_0x3e8def[_0x2954ec(0x43b)];}return{...a[_0x2954ec(0x26c)][_0x2954ec(0x394)](_0x193da3),'mutations':[_0x3255cf]};}[_0x400d5f(0x444)](_0x398117){const _0x1952fa=_0x400d5f,{unitID:_0x5c5385}=_0x398117,{history:_0x4acad6,collaboration:_0x14fa9e}=this[_0x1952fa(0x495)][_0x1952fa(0x222)](_0x5c5385);if(_0x4acad6['length']===0x0&&_0x14fa9e[_0x1952fa(0x365)]===0x0)return;const _0x2e894c=[],_0x1419e8=[];let _0xfaa87d=a[_0x1952fa(0x26c)][_0x1952fa(0x394)](_0x398117['mutations'][0x0]),_0x1f7bca=a[_0x1952fa(0x26c)][_0x1952fa(0x394)](_0x398117[_0x1952fa(0x42f)][0x0]);for(let _0x9c991a=_0x4acad6[_0x1952fa(0x365)]-0x1;_0x9c991a>=0x0;_0x9c991a--){const _0x48ef16={'id':_0x1952fa(0x4cb),'params':{'unitId':_0x4acad6[_0x9c991a][_0x1952fa(0x35f)],..._0x4acad6[_0x9c991a]['undoState']}},_0xeeed7e={'id':_0x1952fa(0x4cb),'params':{'unitId':_0x4acad6[_0x9c991a][_0x1952fa(0x35f)],..._0x4acad6[_0x9c991a][_0x1952fa(0x46f)]}},_0x52d2b1=this['_transformService']['transformMutation'](_0xfaa87d,_0x48ef16,!0x1),_0x564e3f=this[_0x1952fa(0x3bd)]['transformMutation'](_0x1f7bca,_0xeeed7e,!0x1);if(v[_0x1952fa(0x447)](_0x52d2b1))throw _0x52d2b1[_0x1952fa(0x481)];if(v[_0x1952fa(0x447)](_0x564e3f))throw _0x564e3f[_0x1952fa(0x481)];_0x2e894c[_0x1952fa(0x23d)]({..._0x4acad6[_0x9c991a],'undoState':_0x52d2b1[_0x1952fa(0x2fa)][_0x1952fa(0x2b0)],'redoState':_0x564e3f[_0x1952fa(0x2fa)][_0x1952fa(0x2b0)]}),_0xfaa87d=_0x52d2b1['m1Prime'],_0x1f7bca=_0x564e3f[_0x1952fa(0x43b)];}_0xfaa87d=a['Tools']['deepClone'](_0x398117[_0x1952fa(0x42f)][0x0]),_0x1f7bca=a[_0x1952fa(0x26c)][_0x1952fa(0x394)](_0x398117[_0x1952fa(0x42f)][0x0]);for(let _0x3d672d=_0x14fa9e[_0x1952fa(0x365)]-0x1;_0x3d672d>=0x0;_0x3d672d--){const _0x270a58={'id':_0x1952fa(0x4cb),'params':{'unitId':_0x14fa9e[_0x3d672d][_0x1952fa(0x35f)],..._0x14fa9e[_0x3d672d][_0x1952fa(0x3ce)]}},_0x175a24={'id':_0x1952fa(0x4cb),'params':{'unitId':_0x14fa9e[_0x3d672d]['unitId'],..._0x14fa9e[_0x3d672d][_0x1952fa(0x46f)]}},_0x5041e7=this[_0x1952fa(0x3bd)][_0x1952fa(0x2c1)](_0xfaa87d,_0x270a58,!0x1),_0x2fa8d2=this['_transformService']['transformMutation'](_0x1f7bca,_0x175a24,!0x1);if(v[_0x1952fa(0x447)](_0x5041e7))throw _0x5041e7['error'];if(v[_0x1952fa(0x447)](_0x2fa8d2))throw _0x2fa8d2[_0x1952fa(0x481)];_0x1419e8['unshift']({..._0x14fa9e[_0x3d672d],'undoState':_0x5041e7[_0x1952fa(0x2fa)][_0x1952fa(0x2b0)],'redoState':_0x2fa8d2[_0x1952fa(0x2fa)][_0x1952fa(0x2b0)]}),_0xfaa87d=_0x5041e7[_0x1952fa(0x43b)],_0x1f7bca=_0x2fa8d2[_0x1952fa(0x43b)];}this['_docStateChangeManagerService'][_0x1952fa(0x445)](_0x5c5385,{'history':_0x2e894c,'collaboration':_0x1419e8});}};ee=Kt([Ie(0x0,a[_0x400d5f(0x4b6)](a[_0x400d5f(0x426)])),Ie(0x1,v[_0x400d5f(0x304)]),Ie(0x2,a[_0x400d5f(0x4b6)](C['DocStateChangeManagerService']))],ee);var qt=Object['getOwnPropertyDescriptor'],zt=(_0xaf4d04,_0xaaf58e,_0x40cc7c,_0x18138e)=>{const _0x1c6ab8=_0x400d5f;for(var _0x21952a=_0x18138e>0x1?void 0x0:_0x18138e?qt(_0xaaf58e,_0x40cc7c):_0xaaf58e,_0x3de113=_0xaf4d04[_0x1c6ab8(0x365)]-0x1,_0x5155c7;_0x3de113>=0x0;_0x3de113--)(_0x5155c7=_0xaf4d04[_0x3de113])&&(_0x21952a=_0x5155c7(_0x21952a)||_0x21952a);return _0x21952a;},we=(_0x39c6b1,_0x569052)=>(_0xa305ce,_0x4c46b0)=>_0x569052(_0xa305ce,_0x4c46b0,_0x39c6b1);let te=class{constructor(_0x16872d,_0x49a8d5){this['_injector']=_0x16872d,this['_transformService']=_0x49a8d5;}[_0x400d5f(0x3f9)](_0x2f25e5){const _0x13bac9=_0x400d5f;var _0x3761ca;const _0x3e9e40=this['_injector'][_0x13bac9(0x28b)](V[_0x13bac9(0x468)]),_0x9f88c7=(_0x3761ca=_0x3e9e40[_0x13bac9(0x225)]())!=null?_0x3761ca:[];if(_0x9f88c7[_0x13bac9(0x365)]===0x0)return;const _0x2c79e6=_0x2f25e5['unitID'],_0x144973=[{'id':_0x13bac9(0x4cb),'params':{'unitId':_0x2c79e6,'actions':null,'textRanges':_0x9f88c7}}],_0x25be47=this['_transformService'][_0x13bac9(0x25d)](_0x2f25e5,_0x144973);if(!v[_0x13bac9(0x374)](_0x25be47))throw _0x25be47['error'];const _0x328a35=_0x25be47[_0x13bac9(0x2fa)][0x0]['params'][_0x13bac9(0x4af)];Array[_0x13bac9(0x3a4)](_0x328a35)&&_0x328a35[_0x13bac9(0x365)]&&_0x3e9e40[_0x13bac9(0x215)](_0x328a35,{'unitId':_0x2c79e6,'subUnitId':_0x2c79e6},!0x1);}};te=zt([we(0x0,a[_0x400d5f(0x4b6)](a['Injector'])),we(0x1,v[_0x400d5f(0x304)])],te);var Jt=Object[_0x400d5f(0x329)],Zt=(_0x10941b,_0x2b2e25,_0x3ad1ef,_0x130218)=>{const _0x5af1fa=_0x400d5f;for(var _0x3b9f1b=_0x130218>0x1?void 0x0:_0x130218?Jt(_0x2b2e25,_0x3ad1ef):_0x2b2e25,_0x514e83=_0x10941b[_0x5af1fa(0x365)]-0x1,_0x36015a;_0x514e83>=0x0;_0x514e83--)(_0x36015a=_0x10941b[_0x514e83])&&(_0x3b9f1b=_0x36015a(_0x3b9f1b)||_0x3b9f1b);return _0x3b9f1b;},N=(_0x1046ac,_0x1077d4)=>(_0x168fa8,_0x375836)=>_0x1077d4(_0x168fa8,_0x375836,_0x1046ac);let ie=class extends a[_0x400d5f(0x2a2)]{constructor(_0x3c2778,_0x34835f,_0x108d33,_0x44c3f6,_0xfb6085,_0x5b26c1,_0x3642c4,_0x2b41f6){const _0x19b161=_0x400d5f;super(),_(this,_0x19b161(0x3c9),new I[(_0x19b161(0x1fd))](u['CollaborationStatus'][_0x19b161(0x371)])),(this[_0x19b161(0x495)]=_0x3c2778,this[_0x19b161(0x2f0)]=_0x34835f,this[_0x19b161(0x497)]=_0x108d33,this[_0x19b161(0x257)]=_0x44c3f6,this[_0x19b161(0x254)]=_0xfb6085,this['_docSyncEditingCollabCursorService']=_0x5b26c1,this[_0x19b161(0x24f)]=_0x3642c4,this['_localeService']=_0x2b41f6,this['_initEntityListener']());}[_0x400d5f(0x34a)](){const _0x4d9019=_0x400d5f;this[_0x4d9019(0x29d)](this[_0x4d9019(0x2f0)][_0x4d9019(0x24a)][_0x4d9019(0x247)](_0x2dc8bf=>{const _0x232026=_0x4d9019,_0x36c0ab=this[_0x232026(0x495)][_0x232026(0x221)][_0x232026(0x247)](_0x2a8958=>{const _0x1e6ae0=_0x232026;if(_0x2a8958==null)return;const {unitId:_0x5be475,redoState:_0x2e05d3,commandId:_0x176339}=_0x2a8958;if(_0x5be475!==_0x2dc8bf[_0x1e6ae0(0x35c)])return;const _0x1202e3={'id':_0x176339,'type':a[_0x1e6ae0(0x399)][_0x1e6ae0(0x3af)],'params':{'unitId':_0x5be475,'actions':_0x2e05d3[_0x1e6ae0(0x263)],'textRanges':null}};_0x2dc8bf[_0x1e6ae0(0x3bb)](_0x1202e3);});if(_0x2dc8bf[_0x232026(0x29d)](_0x36c0ab),_0x2dc8bf instanceof u[_0x232026(0x284)]){const _0x49c254={'onTransformIME':_0x6c9a01=>this[_0x232026(0x497)][_0x232026(0x4b1)](_0x6c9a01),'onTransformState':_0x15fb20=>this[_0x232026(0x257)][_0x232026(0x409)](_0x15fb20),'onTransformSelections':_0xc5c408=>this[_0x232026(0x254)][_0x232026(0x3f9)](_0xc5c408),'onSyncEditingCollabCursor':_0x1c846d=>this[_0x232026(0x45f)]['syncEditingCollabCursor'](_0x1c846d),'onTransformRemoteChangesetByIMECache':_0x331501=>this['_docTransformIMECacheService'][_0x232026(0x4cf)](_0x331501),'onTransformRemoteChangesetByStateCache':_0x2d699f=>this[_0x232026(0x257)][_0x232026(0x4cf)](_0x2d699f)};_0x2dc8bf['addHandlerCallback'](_0x49c254);}}));}};ie=Zt([N(0x0,a[_0x400d5f(0x4b6)](C[_0x400d5f(0x392)])),N(0x1,a['Inject'](u[_0x400d5f(0x205)])),N(0x2,a[_0x400d5f(0x4b6)](Q)),N(0x3,a[_0x400d5f(0x4b6)](ee)),N(0x4,a[_0x400d5f(0x4b6)](te)),N(0x5,a[_0x400d5f(0x4b6)](Re)),N(0x6,O['IMessageService']),N(0x7,a[_0x400d5f(0x4b6)](a[_0x400d5f(0x24c)]))],ie);var Qt=Object[_0x400d5f(0x329)],ei=(_0x1f5b8c,_0x56fc3a,_0x7506ae,_0x4bc4b7)=>{const _0x530ec=_0x400d5f;for(var _0x5b04a1=_0x4bc4b7>0x1?void 0x0:_0x4bc4b7?Qt(_0x56fc3a,_0x7506ae):_0x56fc3a,_0x533170=_0x1f5b8c[_0x530ec(0x365)]-0x1,_0x582b31;_0x533170>=0x0;_0x533170--)(_0x582b31=_0x1f5b8c[_0x533170])&&(_0x5b04a1=_0x582b31(_0x5b04a1)||_0x5b04a1);return _0x5b04a1;},z=(_0x398b7b,_0x351ab3)=>(_0x3d7263,_0x4f9866)=>_0x351ab3(_0x3d7263,_0x4f9866,_0x398b7b);let se=class extends a[_0x400d5f(0x2a2)]{constructor(_0x341134,_0x395feb,_0x23e1f6,_0x5609da){const _0x4c89d0=_0x400d5f;super(),_(this,_0x4c89d0(0x1f5)),(this[_0x4c89d0(0x2b6)]=_0x341134,this[_0x4c89d0(0x2a6)]=_0x395feb,this['_logService']=_0x23e1f6,this['_collaborationSessionService']=_0x5609da,this[_0x4c89d0(0x37c)]());}['_init'](){const _0x5e3189=_0x400d5f;this[_0x5e3189(0x20d)](),this[_0x5e3189(0x237)](),this[_0x5e3189(0x376)](),this[_0x5e3189(0x28e)]();}[_0x400d5f(0x28e)](){const _0xb15029=_0x400d5f;this[_0xb15029(0x29d)](this[_0xb15029(0x3e7)][_0xb15029(0x4ec)][_0xb15029(0x247)](_0x5d6b05=>{const _0x22cac0=_0xb15029;this[_0x22cac0(0x1f5)]=_0x5d6b05==null?void 0x0:_0x5d6b05[_0x22cac0(0x25c)];}));}['_initWindowErrorListener'](){const _0x33fef7=_0x400d5f,_0x4acea8=_0xf34834=>{const _0x1b5d91=_0x1c4b;var _0x5b76bb;this[_0x1b5d91(0x264)](_0x1b5d91(0x481),_0x1b5d91(0x239)+_0xf34834[_0x1b5d91(0x4d7)]+_0x1b5d91(0x3ea)+_0xf34834[_0x1b5d91(0x3de)]+':'+_0xf34834[_0x1b5d91(0x3d5)]+':'+_0xf34834['colno']+'\x0a'+(((_0x5b76bb=_0xf34834[_0x1b5d91(0x481)])==null?void 0x0:_0x5b76bb[_0x1b5d91(0x3e9)])||''));};window[_0x33fef7(0x39c)](_0x33fef7(0x481),_0x4acea8),this[_0x33fef7(0x29d)](()=>{const _0x3070dc=_0x33fef7;window[_0x3070dc(0x458)]('error',_0x4acea8);});}['_initUnhandledRejectionListener'](){const _0x32ee00=_0x400d5f,_0x205f1e=_0x563fa5=>{const _0x2a85be=_0x1c4b;this[_0x2a85be(0x264)](_0x2a85be(0x481),_0x2a85be(0x440)+_0x563fa5[_0x2a85be(0x2be)]);};window[_0x32ee00(0x39c)](_0x32ee00(0x41c),_0x205f1e),this['disposeWithMe'](()=>{const _0x3d37b5=_0x32ee00;window[_0x3d37b5(0x458)](_0x3d37b5(0x41c),_0x205f1e);});}[_0x400d5f(0x376)](){const _0x1a80c4=_0x400d5f,_0x5a5db2=this['_logService'][_0x1a80c4(0x481)][_0x1a80c4(0x37e)](this[_0x1a80c4(0x275)]);this[_0x1a80c4(0x275)][_0x1a80c4(0x481)]=(..._0x540125)=>{const _0x4fcc2c=_0x1a80c4,_0x39d63f=_0x540125[_0x4fcc2c(0x354)](_0x1875c5=>_0x1875c5 instanceof Error?_0x1875c5[_0x4fcc2c(0x4d7)]+'\x0a'+_0x1875c5[_0x4fcc2c(0x3e9)]:String(_0x1875c5))[_0x4fcc2c(0x433)]('\x20');this[_0x4fcc2c(0x264)](_0x4fcc2c(0x481),_0x4fcc2c(0x4f1)+_0x39d63f),_0x5a5db2(..._0x540125);},this[_0x1a80c4(0x29d)](()=>{this['_logService']['error']=_0x5a5db2;});}[_0x400d5f(0x264)](_0x44e900,_0x1d781a){const _0x4bd77e=_0x400d5f;try{const _0x2cba97={'userId':this[_0x4bd77e(0x1f5)],'logLabel':_0x44e900,'content':_0x1d781a};this[_0x4bd77e(0x2a6)]['post'](_0x4bd77e(0x209),{'body':_0x2cba97})[_0x4bd77e(0x48c)](()=>{});}catch{}}};se=ei([z(0x0,a[_0x400d5f(0x4b6)](a[_0x400d5f(0x426)])),z(0x1,a[_0x400d5f(0x4b6)](x[_0x400d5f(0x2c2)])),z(0x2,a[_0x400d5f(0x363)]),z(0x3,a[_0x400d5f(0x4b6)](u['CollaborationSessionService']))],se);var G=(_0x266097=>(_0x266097[_0x266097[_0x400d5f(0x3cb)]=0x0]=_0x400d5f(0x3cb),_0x266097[_0x266097['OK']=0x1]='OK',_0x266097[_0x266097[_0x400d5f(0x410)]=0x2]=_0x400d5f(0x410),_0x266097[_0x266097[_0x400d5f(0x39f)]=0x3]='PERMISSION_DENIED',_0x266097[_0x266097[_0x400d5f(0x350)]=0x4]=_0x400d5f(0x350),_0x266097[_0x266097[_0x400d5f(0x3be)]=0x5]=_0x400d5f(0x3be),_0x266097[_0x266097[_0x400d5f(0x4e5)]=0x6]='ALREADY_EXISTS',_0x266097[_0x266097[_0x400d5f(0x415)]=0x7]=_0x400d5f(0x415),_0x266097[_0x266097[_0x400d5f(0x337)]=0x8]='TOO_MANY_REQUESTS',_0x266097[_0x266097[_0x400d5f(0x3b4)]=0x9]=_0x400d5f(0x3b4),_0x266097[_0x266097[_0x400d5f(0x430)]=0xa]='LOGIN_FAILED',_0x266097[_0x266097['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x400d5f(0x22e),_0x266097[_0x266097[_0x400d5f(0x4d9)]=0xc]=_0x400d5f(0x4d9),_0x266097[_0x266097['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x400d5f(0x2c9),_0x266097[_0x266097[_0x400d5f(0x4e7)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x266097[_0x266097[_0x400d5f(0x2d8)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x266097[_0x266097[_0x400d5f(0x4da)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x266097[_0x266097[_0x400d5f(0x424)]=0x64]=_0x400d5f(0x424),_0x266097[_0x266097[_0x400d5f(0x2f9)]=0x65]=_0x400d5f(0x2f9),_0x266097[_0x266097[_0x400d5f(0x1f3)]=0xc9]=_0x400d5f(0x1f3),_0x266097[_0x266097[_0x400d5f(0x384)]=0xca]='USER_IS_ANONYMOUS',_0x266097[_0x266097[_0x400d5f(0x3ef)]=0x1389]=_0x400d5f(0x3ef),_0x266097[_0x266097[_0x400d5f(0x252)]=0x1771]=_0x400d5f(0x252),_0x266097[_0x266097[_0x400d5f(0x44d)]=0x1772]=_0x400d5f(0x44d),_0x266097[_0x266097[_0x400d5f(0x33a)]=0x1773]=_0x400d5f(0x33a),_0x266097[_0x266097[_0x400d5f(0x31f)]=0x1b59]='APPLY_REJECT',_0x266097[_0x266097[_0x400d5f(0x3f1)]=0x1b5a]=_0x400d5f(0x3f1),_0x266097[_0x266097[_0x400d5f(0x489)]=0x1b5b]=_0x400d5f(0x489),_0x266097[_0x266097['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x400d5f(0x48f),_0x266097[_0x266097[_0x400d5f(0x2bf)]=0x1b5d]=_0x400d5f(0x2bf),_0x266097[_0x266097[_0x400d5f(0x453)]=0x1f41]=_0x400d5f(0x453),_0x266097[_0x266097['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x266097[_0x266097[_0x400d5f(0x251)]=0x232a]=_0x400d5f(0x251),_0x266097[_0x266097[_0x400d5f(0x2ae)]=0x232b]=_0x400d5f(0x2ae),_0x266097[_0x266097[_0x400d5f(0x2af)]=0x232c]=_0x400d5f(0x2af),_0x266097[_0x266097[_0x400d5f(0x40f)]=0x232d]=_0x400d5f(0x40f),_0x266097[_0x266097[_0x400d5f(0x352)]=0x2711]=_0x400d5f(0x352),_0x266097[_0x266097[_0x400d5f(0x34f)]=0x2712]=_0x400d5f(0x34f),_0x266097[_0x266097['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x400d5f(0x338),_0x266097[_0x266097['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x400d5f(0x2fc),_0x266097[_0x266097[_0x400d5f(0x2d1)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x266097[_0x266097['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x400d5f(0x2a3),_0x266097[_0x266097[_0x400d5f(0x2a1)]=0x271c]=_0x400d5f(0x2a1),_0x266097[_0x266097['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x400d5f(0x41a),_0x266097[_0x266097[_0x400d5f(0x2ac)]=0x271e]=_0x400d5f(0x2ac),_0x266097[_0x266097[_0x400d5f(0x299)]=0x271f]=_0x400d5f(0x299),_0x266097[_0x266097[_0x400d5f(0x414)]=0x2720]=_0x400d5f(0x414),_0x266097[_0x266097[_0x400d5f(0x1fb)]=0x2af9]=_0x400d5f(0x1fb),_0x266097[_0x266097[_0x400d5f(0x255)]=0x2ee1]=_0x400d5f(0x255),_0x266097[_0x266097[_0x400d5f(0x474)]=0x2ee2]=_0x400d5f(0x474),_0x266097[_0x266097[_0x400d5f(0x462)]=0x2ee3]=_0x400d5f(0x462),_0x266097[_0x266097[_0x400d5f(0x283)]=0x2ee4]=_0x400d5f(0x283),_0x266097[_0x266097[_0x400d5f(0x248)]=0x2ee5]=_0x400d5f(0x248),_0x266097[_0x266097[_0x400d5f(0x33b)]=0x32c9]=_0x400d5f(0x33b),_0x266097[_0x266097[_0x400d5f(0x4a8)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x266097[_0x266097['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x400d5f(0x3aa),_0x266097[_0x266097[_0x400d5f(0x45d)]=0x36b1]=_0x400d5f(0x45d),_0x266097[_0x266097[_0x400d5f(0x271)]=0x36b2]=_0x400d5f(0x271),_0x266097[_0x266097[_0x400d5f(0x3b1)]=0x36b3]='ENTITLE_DUP_SUBSCRIPTION',_0x266097[_0x266097[_0x400d5f(0x332)]=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x266097[_0x266097['ENTITLE_INVALID_COUPON_CODE']=0x36b5]=_0x400d5f(0x486),_0x266097[_0x266097[_0x400d5f(0x3f0)]=0x36b6]=_0x400d5f(0x3f0),_0x266097[_0x266097[_0x400d5f(0x298)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x266097[_0x266097['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x400d5f(0x250),_0x266097[_0x266097[_0x400d5f(0x425)]=0x3715]=_0x400d5f(0x425),_0x266097[_0x266097['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x400d5f(0x28d),_0x266097[_0x266097[_0x400d5f(0x302)]=0x3717]=_0x400d5f(0x302),_0x266097[_0x266097[_0x400d5f(0x464)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x266097[_0x266097[_0x400d5f(0x2d0)]=0x3a99]=_0x400d5f(0x2d0),_0x266097[_0x266097['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x400d5f(0x256),_0x266097[_0x266097[_0x400d5f(0x3ba)]=0x3a9b]=_0x400d5f(0x3ba),_0x266097[_0x266097[_0x400d5f(0x49a)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x266097[_0x266097[_0x400d5f(0x30c)]=0x3a9d]=_0x400d5f(0x30c),_0x266097[_0x266097[_0x400d5f(0x452)]=0x3a9e]=_0x400d5f(0x452),_0x266097[_0x266097[_0x400d5f(0x465)]=0x3a9f]=_0x400d5f(0x465),_0x266097[_0x266097[_0x400d5f(0x46b)]=0x3e81]=_0x400d5f(0x46b),_0x266097[_0x266097[_0x400d5f(0x3a9)]=-0x1]='UNRECOGNIZED',_0x266097))(G||{});function ti(_0x5e527e){const _0xa5f99c=_0x400d5f;var _0x4e8b82,_0x2baf9e;const _0x1e6dda=(_0x4e8b82=_0x5e527e['stageInfo'])==null?void 0x0:_0x4e8b82[_0xa5f99c(0x366)],_0x320cd9=((_0x2baf9e=_0x5e527e[_0xa5f99c(0x4e8)])==null?void 0x0:_0x2baf9e[_0xa5f99c(0x336)])||0x0;return _0x1e6dda===B[_0xa5f99c(0x3ac)][_0xa5f99c(0x40d)]&&_0x320cd9>0x0;}function ii(_0x31471c){const _0x3544ca=_0x400d5f;return _0x31471c['functionsExecutedState']===B['FormulaExecutedStateType'][_0x3544ca(0x311)];}var si=Object['getOwnPropertyDescriptor'],ni=(_0x2c0f5f,_0xa74714,_0x2f3b08,_0x433a50)=>{for(var _0x35caea=_0x433a50>0x1?void 0x0:_0x433a50?si(_0xa74714,_0x2f3b08):_0xa74714,_0x2c5b91=_0x2c0f5f['length']-0x1,_0x168283;_0x2c5b91>=0x0;_0x2c5b91--)(_0x168283=_0x2c0f5f[_0x2c5b91])&&(_0x35caea=_0x168283(_0x35caea)||_0x35caea);return _0x35caea;},L=(_0xc0883f,_0x2446cd)=>(_0x34256c,_0x10792d)=>_0x2446cd(_0x34256c,_0x10792d,_0xc0883f);const ri=_0x400d5f(0x229),oi=_0x400d5f(0x1f9),ai='/universer-api/license/formula/limit/done';let ne=class extends a['Disposable']{constructor(_0x4e4597,_0x392cf9,_0x56b5a6,_0x375a13,_0x2a52f0,_0x4e2b25,_0x4e8951){const _0x4085bd=_0x400d5f;super(),_(this,_0x4085bd(0x1f8),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x4085bd(0x477),0x0),_(this,_0x4085bd(0x4cc),[]),_(this,_0x4085bd(0x318),0x0),(this[_0x4085bd(0x24f)]=_0x4e4597,this[_0x4085bd(0x3e3)]=_0x392cf9,this[_0x4085bd(0x494)]=_0x56b5a6,this[_0x4085bd(0x2a6)]=_0x375a13,this['_univerInstanceService']=_0x2a52f0,this[_0x4085bd(0x275)]=_0x4e2b25,this['_localeService']=_0x4e8951,this[_0x4085bd(0x2e2)]());}['_initCommandInterceptor'](){const _0x543d16=_0x400d5f;this[_0x543d16(0x29d)](this[_0x543d16(0x3e3)][_0x543d16(0x45c)]((_0x4d0711,_0xc9637c)=>{const _0x1af8d6=_0x543d16;var _0x4c17f8;if(_0x4d0711['id']!==B[_0x1af8d6(0x4aa)]['id'])return;const _0x3ac3d8=_0x4d0711[_0x1af8d6(0x2b0)];if(!this[_0x1af8d6(0x2a4)]((_0x4c17f8=_0x3ac3d8[_0x1af8d6(0x4ba)])!=null?_0x4c17f8:[]))return;if(!this[_0x1af8d6(0x3d2)]())throw this[_0x1af8d6(0x2a8)](_0x4d0711,_0xc9637c),this[_0x1af8d6(0x4a1)](),new a[(_0x1af8d6(0x379))]();})),this[_0x543d16(0x29d)](this[_0x543d16(0x3e3)][_0x543d16(0x203)]((_0x331ae9,_0x5a9144)=>{const _0x15e387=_0x543d16;if(_0x331ae9['id']!==B[_0x15e387(0x367)]['id'])return;const _0x5b3dc1=_0x331ae9[_0x15e387(0x2b0)];if(ti(_0x5b3dc1)){const _0x24fb29=a[_0x15e387(0x404)]();this['_taskIds'][_0x15e387(0x3a8)](_0x24fb29),this['_startCalculationLimit'](_0x24fb29);}else{if(ii(_0x5b3dc1)&&this[_0x15e387(0x4cc)][_0x15e387(0x365)]>0x0){const _0x46af1f=this[_0x15e387(0x4cc)]['shift']();this[_0x15e387(0x48d)](_0x46af1f);}}}));}[_0x400d5f(0x22c)](){const _0x552004=_0x400d5f;super[_0x552004(0x22c)](),this[_0x552004(0x434)](),this[_0x552004(0x4cc)]=[],this[_0x552004(0x477)]=0x0,this[_0x552004(0x31c)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x400d5f(0x2a8)](_0x2b141c,_0x196b7f){const _0x8e997e=_0x400d5f;for(let _0x3c42eb=0x0;_0x3c42eb<0x1e;_0x3c42eb++)try{if(await this[_0x8e997e(0x3ed)](),this[_0x8e997e(0x3d2)]()){this[_0x8e997e(0x443)](_0x2b141c,_0x196b7f),this[_0x8e997e(0x24f)][_0x8e997e(0x276)]({'content':this[_0x8e997e(0x2c6)]['t'](_0x8e997e(0x279)),'type':p[_0x8e997e(0x3a1)][_0x8e997e(0x269)]});return;}await new Promise(_0x43945d=>{const _0x1bba0b=_0x8e997e;this[_0x1bba0b(0x1f8)]=window['setTimeout'](_0x43945d,0x3e8);});}catch(_0x1f6f8a){this['_logService']['error'](_0x1f6f8a);}this['_messageService'][_0x8e997e(0x276)]({'content':this[_0x8e997e(0x2c6)]['t'](_0x8e997e(0x429)),'type':p[_0x8e997e(0x3a1)][_0x8e997e(0x4ac)]});}[_0x400d5f(0x443)](_0x3ae488,_0x30caad){const _0x2d396e=_0x400d5f;try{this[_0x2d396e(0x3e3)][_0x2d396e(0x44f)](_0x3ae488['id'],_0x3ae488[_0x2d396e(0x2b0)],_0x30caad);}catch(_0x103014){this[_0x2d396e(0x275)]['error'](_0x103014);}}['_setFormulaLimitStatus'](_0x4005b1,_0x28ce40){const _0x4f6459=_0x400d5f;_0x28ce40<this['_lastResponseTimestamp']||(this[_0x4f6459(0x318)]=_0x28ce40,this[_0x4f6459(0x31c)]=Number[_0x4f6459(0x3cf)](_0x4005b1[_0x4f6459(0x206)]),this[_0x4f6459(0x477)]=Number[_0x4f6459(0x3cf)](_0x4005b1['currentUsage']));}async['_startCalculationLimit'](_0x491ee8){const _0x705e40=_0x400d5f;var _0x4b5e60,_0x6a43d3;const _0x332458=Date['now']();try{const _0x278363=((_0x4b5e60=this['_configService'][_0x705e40(0x291)](u[_0x705e40(0x48b)]))==null?void 0x0:_0x4b5e60[_0x705e40(0x4ca)])||oi,_0x2c923e=(await this['_httpService'][_0x705e40(0x212)](_0x278363,{'body':JSON['stringify']({'taskId':_0x491ee8})}))[_0x705e40(0x3db)];if(((_0x6a43d3=_0x2c923e['error'])==null?void 0x0:_0x6a43d3[_0x705e40(0x46e)])!==G['OK'])return;this[_0x705e40(0x446)](_0x2c923e[_0x705e40(0x28f)],_0x332458);}catch(_0x30b451){this[_0x705e40(0x275)]['error'](_0x30b451);}}async['_getFormulaLimitStatus'](_0x5e628c){const _0x27cb0=_0x400d5f;var _0x28da26,_0x27e11a;const _0x2cae39=Date[_0x27cb0(0x306)]();try{const _0x4477e6=((_0x28da26=this[_0x27cb0(0x494)]['getConfig'](u[_0x27cb0(0x48b)]))==null?void 0x0:_0x28da26[_0x27cb0(0x4bc)])||ri,_0x4a1358=_0x5e628c?_0x4477e6+_0x27cb0(0x3a3)+encodeURIComponent(_0x5e628c):_0x4477e6,_0x4b7c03=(await this[_0x27cb0(0x2a6)][_0x27cb0(0x28b)](_0x4a1358))['body'];if(((_0x27e11a=_0x4b7c03[_0x27cb0(0x481)])==null?void 0x0:_0x27e11a[_0x27cb0(0x46e)])!==G['OK'])return;this[_0x27cb0(0x446)](_0x4b7c03[_0x27cb0(0x28f)],_0x2cae39);}catch(_0x223247){this[_0x27cb0(0x275)][_0x27cb0(0x481)](_0x223247);}}async[_0x400d5f(0x48d)](_0x5c4e61){const _0x6cb778=_0x400d5f;var _0x1bee8b,_0x543cd3;const _0x40e0ed=Date['now']();try{const _0x28bc51=((_0x1bee8b=this[_0x6cb778(0x494)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x1bee8b[_0x6cb778(0x2dc)])||ai,_0x3b4f17=(await this[_0x6cb778(0x2a6)][_0x6cb778(0x212)](_0x28bc51,{'body':JSON['stringify']({'taskId':_0x5c4e61})}))['body'];if(((_0x543cd3=_0x3b4f17[_0x6cb778(0x481)])==null?void 0x0:_0x543cd3['code'])!==G['OK'])return;this[_0x6cb778(0x446)](_0x3b4f17[_0x6cb778(0x28f)],_0x40e0ed);}catch(_0x163329){this['_logService'][_0x6cb778(0x481)](_0x163329);}}[_0x400d5f(0x3d2)](){const _0x10ace6=_0x400d5f;return this[_0x10ace6(0x31c)]===0x0?!0x0:this['_maxFormulaLimit']-this[_0x10ace6(0x477)]>0x0;}[_0x400d5f(0x434)](){const _0x48cb49=_0x400d5f;this[_0x48cb49(0x1f8)]&&(clearTimeout(this[_0x48cb49(0x1f8)]),this['_pollingInterval']=null);}[_0x400d5f(0x4a1)](){const _0x1192f6=_0x400d5f;this[_0x1192f6(0x24f)]['show']({'content':this['_localeService']['t'](_0x1192f6(0x305)),'type':p[_0x1192f6(0x3a1)][_0x1192f6(0x47e)]});}[_0x400d5f(0x2a4)](_0x58fc99){const _0xb6dbf=_0x400d5f;for(const _0x1e7c01 of _0x58fc99){const {unitId:_0x496877,sheetId:_0x3dac1c,range:_0xb58707}=_0x1e7c01,_0x316a87=this[_0xb6dbf(0x4b3)][_0xb6dbf(0x487)](_0x496877);if(!_0x316a87)continue;const _0x5dbfe6=_0x316a87['getSheetBySheetId'](_0x3dac1c);if(!_0x5dbfe6)continue;const _0x330a6a=_0x5dbfe6['getCellMatrix']();for(let _0x401737=_0xb58707[_0xb6dbf(0x364)];_0x401737<=_0xb58707['endRow'];_0x401737++)for(let _0x4994cb=_0xb58707[_0xb6dbf(0x4d3)];_0x4994cb<=_0xb58707[_0xb6dbf(0x40e)];_0x4994cb++){const _0x57eff1=_0x330a6a[_0xb6dbf(0x26a)](_0x401737,_0x4994cb);if(_0x57eff1&&(a['isFormulaString'](_0x57eff1['f'])||a[_0xb6dbf(0x40c)](_0x57eff1['si'])))return!0x0;}}return!0x1;}};ne=ni([L(0x0,a['Inject'](O[_0x400d5f(0x4f0)])),L(0x1,a['ICommandService']),L(0x2,a[_0x400d5f(0x348)]),L(0x3,a[_0x400d5f(0x4b6)](x[_0x400d5f(0x2c2)])),L(0x4,a[_0x400d5f(0x22b)]),L(0x5,a['ILogService']),L(0x6,a[_0x400d5f(0x4b6)](a['LocaleService']))],ne);var ci=Object[_0x400d5f(0x329)],li=(_0x10a497,_0x41d6ec,_0x200d27,_0x2c944f)=>{const _0x1ce47e=_0x400d5f;for(var _0x399156=_0x2c944f>0x1?void 0x0:_0x2c944f?ci(_0x41d6ec,_0x200d27):_0x41d6ec,_0x339c3c=_0x10a497[_0x1ce47e(0x365)]-0x1,_0x2f083b;_0x339c3c>=0x0;_0x339c3c--)(_0x2f083b=_0x10a497[_0x339c3c])&&(_0x399156=_0x2f083b(_0x399156)||_0x399156);return _0x399156;},de=(_0x113cc4,_0x49f2a3)=>(_0x2e99d7,_0x5a7e95)=>_0x49f2a3(_0x2e99d7,_0x5a7e95,_0x113cc4);let Ce=class extends a['Disposable']{constructor(_0x4c8a1f,_0x55ef34,_0x1f5859){const _0x427b69=_0x400d5f;super(),_(this,_0x427b69(0x36c),new Map()),_(this,_0x427b69(0x3e4),new Map()),_(this,'_disabled',!0x1),(this[_0x427b69(0x494)]=_0x4c8a1f,this[_0x427b69(0x2c7)]=_0x55ef34,this[_0x427b69(0x3b8)]=_0x1f5859);}[_0x400d5f(0x238)](){const _0x5693e2=_0x400d5f;this[_0x5693e2(0x4c0)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x400d5f(0x4c3)](){const _0x193442=_0x400d5f;return this[_0x193442(0x3e4)];}[_0x400d5f(0x22c)](){const _0x314496=_0x400d5f;this[_0x314496(0x20b)]()[_0x314496(0x369)](()=>super[_0x314496(0x22c)]());}async[_0x400d5f(0x335)](_0x1ccbdc){const _0x1413f6=_0x400d5f;return this[_0x1413f6(0x4c0)]?null:this['_localStorageService'][_0x1413f6(0x2e4)](u['getLocalCacheKey'](_0x1ccbdc));}async['saveOfflineData'](_0x2cb07b,_0x337fe1){const _0x1a124b=_0x400d5f;return!!this[_0x1a124b(0x2c7)][_0x1a124b(0x281)](_0x2cb07b,_0x337fe1);}[_0x400d5f(0x20a)](_0x4cce81,_0x24a7ee,_0x3d3cd8,_0x1816cc){const _0x2fd7d2=_0x400d5f,_0x446ff7=this[_0x2fd7d2(0x3b8)][_0x2fd7d2(0x4b2)](_0x4cce81);this['_cachedData'][_0x2fd7d2(0x20c)](_0x4cce81,{'unitID':_0x4cce81,'type':_0x24a7ee,'awaitingChangeset':_0x3d3cd8,'mutations':_0x1816cc,'rev':_0x446ff7}),this[_0x2fd7d2(0x3e4)]['has'](_0x4cce81)||this[_0x2fd7d2(0x38b)](_0x4cce81);}[_0x400d5f(0x38b)](_0x4d525d){const _0x462e59=_0x400d5f,_0x3ef2f8=this[_0x462e59(0x3a0)]();_0x3ef2f8===0x0?this['_saveCache'](_0x4d525d):this['_saveTaskMap']['set'](_0x4d525d,setTimeout(()=>this['_saveCache'](_0x4d525d),_0x3ef2f8));}['_getSaveTimeout'](){const _0x251af7=_0x400d5f;var _0x12cba9;return(_0x12cba9=this[_0x251af7(0x494)][_0x251af7(0x291)](u[_0x251af7(0x294)]))!=null?_0x12cba9:u[_0x251af7(0x35b)];}[_0x400d5f(0x46a)](_0xa34f17){const _0x3dc6cc=_0x400d5f,_0xe9600e=this[_0x3dc6cc(0x3e4)][_0x3dc6cc(0x28b)](_0xa34f17);return _0xe9600e!==void 0x0&&window[_0x3dc6cc(0x233)](_0xe9600e),this['_localStorageService'][_0x3dc6cc(0x281)](u['getLocalCacheKey'](_0xa34f17),this[_0x3dc6cc(0x36c)][_0x3dc6cc(0x28b)](_0xa34f17))[_0x3dc6cc(0x369)](()=>this['_saveTaskMap'][_0x3dc6cc(0x30e)](_0xa34f17));}async['exhaustSavingTask'](){const _0x1cbee9=_0x400d5f,_0x2f4c5e=[];this[_0x1cbee9(0x3e4)][_0x1cbee9(0x2ed)]((_0x66cbe2,_0x4d2849)=>{const _0x3fd6db=_0x1cbee9;window['clearTimeout'](_0x66cbe2),_0x2f4c5e[_0x3fd6db(0x3a8)](this['_saveCache'](_0x4d2849)['then'](()=>{this['_saveTaskMap']['delete'](_0x4d2849);}));}),await Promise[_0x1cbee9(0x240)](_0x2f4c5e);}};Ce=li([de(0x0,a[_0x400d5f(0x348)]),de(0x1,a[_0x400d5f(0x218)]),de(0x2,a[_0x400d5f(0x4b6)](v[_0x400d5f(0x3e6)]))],Ce);class He extends a['RxDisposable']{constructor(){const _0xb4c8ae=_0x400d5f;super(),_(this,'urlChange$'),this[_0xb4c8ae(0x26d)]=I[_0xb4c8ae(0x39b)](window,_0xb4c8ae(0x210))[_0xb4c8ae(0x2b4)](I['takeUntil'](this[_0xb4c8ae(0x3b6)]),I[_0xb4c8ae(0x29c)](0x1),I[_0xb4c8ae(0x4ad)](void 0x0));}['setParam'](_0x3f5dbb,_0x3da701,_0x1f0741=!0x1){const _0x4eab68=_0x400d5f,_0x10b50e=new URL(window[_0x4eab68(0x4a3)][_0x4eab68(0x208)]);_0x10b50e[_0x4eab68(0x273)][_0x4eab68(0x20c)](_0x3f5dbb,_0x3da701),_0x1f0741?window[_0x4eab68(0x416)][_0x4eab68(0x4b0)]('','',_0x10b50e[_0x4eab68(0x2dd)]()):window[_0x4eab68(0x416)][_0x4eab68(0x3dd)]('','',_0x10b50e[_0x4eab68(0x2dd)]());}[_0x400d5f(0x35a)](_0x1851bb,_0x13c0b7=!0x1){const _0x5b12bc=_0x400d5f,_0x2e30b8=new URL(window[_0x5b12bc(0x4a3)][_0x5b12bc(0x208)]);_0x2e30b8[_0x5b12bc(0x273)][_0x5b12bc(0x30e)](_0x1851bb),_0x13c0b7?window['history'][_0x5b12bc(0x4b0)]('','',_0x2e30b8[_0x5b12bc(0x2dd)]()):window[_0x5b12bc(0x416)][_0x5b12bc(0x3dd)]('','',_0x2e30b8['toString']());}['getParam'](_0x51012f){const _0x1b4718=_0x400d5f;var _0x171022;return(_0x171022=new URL(window[_0x1b4718(0x4a3)][_0x1b4718(0x208)])['searchParams'][_0x1b4718(0x28b)](_0x51012f))!=null?_0x171022:void 0x0;}}var _i=Object[_0x400d5f(0x380)],hi=Object[_0x400d5f(0x329)],ui=(_0x2a5158,_0x1ef411,_0x213ae8)=>_0x1ef411 in _0x2a5158?_i(_0x2a5158,_0x1ef411,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x213ae8}):_0x2a5158[_0x1ef411]=_0x213ae8,Ii=(_0x834c49,_0x18362a,_0x2526f0,_0x1dcfff)=>{const _0x35d23b=_0x400d5f;for(var _0x440ece=_0x1dcfff>0x1?void 0x0:_0x1dcfff?hi(_0x18362a,_0x2526f0):_0x18362a,_0x3230c2=_0x834c49[_0x35d23b(0x365)]-0x1,_0x5bfa6d;_0x3230c2>=0x0;_0x3230c2--)(_0x5bfa6d=_0x834c49[_0x3230c2])&&(_0x440ece=_0x5bfa6d(_0x440ece)||_0x440ece);return _0x440ece;},Se=(_0x4cd871,_0x58deaf)=>(_0x54fcc1,_0x4ff629)=>_0x58deaf(_0x54fcc1,_0x4ff629,_0x4cd871),De=(_0x12cfaa,_0x176d2b,_0x41b55b)=>ui(_0x12cfaa,typeof _0x176d2b!=_0x400d5f(0x235)?_0x176d2b+'':_0x176d2b,_0x41b55b);exports[_0x400d5f(0x2e7)]=class extends a[_0x400d5f(0x407)]{constructor(_0x557370=Ae,_0x36e503,_0x3a4b4c,_0x20655e){const _0x10c0a3=_0x400d5f;super(),this[_0x10c0a3(0x26b)]=_0x557370,this['_renderManagerService']=_0x36e503,this[_0x10c0a3(0x2b6)]=_0x3a4b4c,this[_0x10c0a3(0x494)]=_0x20655e;const {..._0x34ca59}=a[_0x10c0a3(0x427)]({},Ae,this[_0x10c0a3(0x26b)]);this['_configService']['setConfig'](Wt,_0x34ca59);}[_0x400d5f(0x43a)](){const _0x19d97a=_0x400d5f;this[_0x19d97a(0x2f2)](),this['_initDependencies']();}[_0x400d5f(0x382)](){const _0x556fdc=_0x400d5f;this[_0x556fdc(0x38a)]();}[_0x400d5f(0x2f2)](){const _0x535303=_0x400d5f;var _0x11c0f7;const _0x7edddf=[[be],[ne],[te],[Q],[ee],[Re],[Oe,{'useClass':He}],[x['ISocketService'],{'useClass':x[_0x535303(0x4bb)]}],[u[_0x535303(0x33c)],{'useClass':Ce}],[exports[_0x535303(0x449)]],[ie],[Z],[k],[me],[exports['CollaborationDataLoaderController']]];this[_0x535303(0x26b)][_0x535303(0x30d)]&&_0x7edddf[_0x535303(0x3a8)]([se]),a[_0x535303(0x3a7)](this[_0x535303(0x2b6)],a['mergeOverrideWithDependencies'](_0x7edddf,(_0x11c0f7=this[_0x535303(0x26b)])==null?void 0x0:_0x11c0f7['override']));}[_0x400d5f(0x38a)](){const _0x4ec220=_0x400d5f;this['disposeWithMe'](this[_0x4ec220(0x241)][_0x4ec220(0x483)](a[_0x4ec220(0x30b)][_0x4ec220(0x20e)],[Ee])),this[_0x4ec220(0x29d)](this[_0x4ec220(0x241)][_0x4ec220(0x483)](a[_0x4ec220(0x30b)]['UNIVER_SHEET'],[Te]));}[_0x400d5f(0x377)](){const _0x2f875c=_0x400d5f;a['touchDependencies'](this['_injector'],[[k],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x2f875c(0x327)]],[ne]]),this['_config'][_0x2f875c(0x30d)]&&a[_0x2f875c(0x31a)](this[_0x2f875c(0x2b6)],[[se]]);}},De(exports[_0x400d5f(0x2e7)],_0x400d5f(0x47b),_0x400d5f(0x32e)),De(exports[_0x400d5f(0x2e7)],_0x400d5f(0x2f5),Fe[_0x400d5f(0x341)]),De(exports[_0x400d5f(0x2e7)],_0x400d5f(0x3b9),Fe[_0x400d5f(0x3b9)]),exports[_0x400d5f(0x2e7)]=Ii([a[_0x400d5f(0x4d6)](u[_0x400d5f(0x27e)]),Se(0x1,T[_0x400d5f(0x4ae)]),Se(0x2,a[_0x400d5f(0x4b6)](a[_0x400d5f(0x426)])),Se(0x3,a[_0x400d5f(0x348)])],exports[_0x400d5f(0x2e7)]);var di=Object[_0x400d5f(0x329)],Si=(_0xae6436,_0x35fb09,_0x4e4d5e,_0x486a89)=>{const _0x211668=_0x400d5f;for(var _0x38cebc=_0x486a89>0x1?void 0x0:_0x486a89?di(_0x35fb09,_0x4e4d5e):_0x35fb09,_0x21d35e=_0xae6436[_0x211668(0x365)]-0x1,_0x504723;_0x21d35e>=0x0;_0x21d35e--)(_0x504723=_0xae6436[_0x21d35e])&&(_0x38cebc=_0x504723(_0x38cebc)||_0x38cebc);return _0x38cebc;},W=(_0x5917d9,_0x1a3218)=>(_0x2a4c52,_0x13af0d)=>_0x1a3218(_0x2a4c52,_0x13af0d,_0x5917d9);exports[_0x400d5f(0x32f)]=class extends u[_0x400d5f(0x44a)]{constructor(_0x2608e1,_0x56a921,_0x138e86,_0x71f668,_0x255741){super(_0x2608e1,_0x56a921,_0x138e86,_0x71f668,_0x255741);}async[_0x400d5f(0x2e1)](_0x14faa2){const _0x454dcf=_0x400d5f,_0x53eaa2=await this[_0x454dcf(0x316)](),_0x2c2eab=this[_0x454dcf(0x359)](_0x14faa2,_0x53eaa2);return this['_doCreateSocket'](_0x2c2eab);}[_0x400d5f(0x359)](_0x1f9cb4,_0x136781){const _0x86eb4=_0x400d5f,_0x26d846=typeof window>'u'?new URL(_0x1f9cb4):new URL(_0x1f9cb4,window[_0x86eb4(0x4a3)]['origin']);_0x26d846['searchParams']['set'](_0x86eb4(0x293),_0x136781);const _0x5ceae4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x86eb4(0x4a3)][_0x86eb4(0x41e)]);return _0x5ceae4[_0x86eb4(0x28b)](_0x86eb4(0x37b))&&_0x26d846['searchParams'][_0x86eb4(0x20c)]('runId',_0x5ceae4['get'](_0x86eb4(0x37b))),_0x26d846['toString']();}async[_0x400d5f(0x316)](){const _0x4b0a04=_0x400d5f;var _0x5d52f9,_0x20b14d,_0x4fb832;const _0x35fda1=this['_configService'][_0x4b0a04(0x291)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0xcb4550=(_0x5d52f9=_0x35fda1==null?void 0x0:_0x35fda1[_0x4b0a04(0x1fc)])!=null?_0x5d52f9:u[_0x4b0a04(0x488)];return(_0x4fb832=(_0x20b14d=(await this[_0x4b0a04(0x2a6)]['get'](_0xcb4550,{'headers':{'Content-Type':_0x4b0a04(0x37a)}}))[_0x4b0a04(0x3db)])==null?void 0x0:_0x20b14d[_0x4b0a04(0x3d9)])!=null?_0x4fb832:'';}},exports['BrowserCollaborationSocketService']=Si([W(0x0,a[_0x400d5f(0x4b6)](a['Injector'])),W(0x1,a[_0x400d5f(0x4b6)](x[_0x400d5f(0x2c2)])),W(0x2,a[_0x400d5f(0x348)]),W(0x3,a[_0x400d5f(0x363)]),W(0x4,v[_0x400d5f(0x31d)])],exports['BrowserCollaborationSocketService']);var fi=Object[_0x400d5f(0x329)],mi=(_0x32551f,_0x3d60d2,_0x267b61,_0xf0cdf0)=>{const _0x37ca0b=_0x400d5f;for(var _0x4657ec=_0xf0cdf0>0x1?void 0x0:_0xf0cdf0?fi(_0x3d60d2,_0x267b61):_0x3d60d2,_0x41de83=_0x32551f[_0x37ca0b(0x365)]-0x1,_0x11d3fc;_0x41de83>=0x0;_0x41de83--)(_0x11d3fc=_0x32551f[_0x41de83])&&(_0x4657ec=_0x11d3fc(_0x4657ec)||_0x4657ec);return _0x4657ec;},fe=(_0x53ab6d,_0x5b4a34)=>(_0x5036f9,_0x4330eb)=>_0x5b4a34(_0x5036f9,_0x4330eb,_0x53ab6d);exports[_0x400d5f(0x3cd)]=class extends a['Disposable']{constructor(_0x514c08,_0x29743b,_0x4dad3d){const _0x2ec23c=_0x400d5f;super(),this[_0x2ec23c(0x401)]=_0x514c08,this[_0x2ec23c(0x2a6)]=_0x29743b,this['_configService']=_0x4dad3d;}async[_0x400d5f(0x328)](_0x32f113,_0x51a883,_0x4a8ef0,..._0x338b60){const _0x2cffb0=_0x400d5f;var _0x197fc1,_0x55b544,_0x2e1fad,_0x4f27cc;const _0x108044=this[_0x2cffb0(0x401)]['getFocusedUnit']();if(!_0x108044)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x4eba0d=((_0x197fc1=this['_configService'][_0x2cffb0(0x291)](u[_0x2cffb0(0x295)]))!=null?_0x197fc1:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x32f113+_0x2cffb0(0x45e)+_0x51a883,_0x5bc9dd=new URL(window[_0x2cffb0(0x4a3)][_0x2cffb0(0x208)]),_0x8804cf={'scriptId':_0x32f113,'runId':(_0x55b544=_0x5bc9dd[_0x2cffb0(0x273)][_0x2cffb0(0x28b)]('runId'))!=null?_0x55b544:'','function':_0x51a883,'unitId':_0x108044['getUnitId'](),'argsOfFunction':JSON[_0x2cffb0(0x4ea)](_0x338b60),'invokeId':(_0x2e1fad=_0x4a8ef0[_0x2cffb0(0x4d8)])!=null?_0x2e1fad:'','executionId':(_0x4f27cc=_0x4a8ef0['executionId'])!=null?_0x4f27cc:''};try{const _0x48b359=await this[_0x2cffb0(0x2a6)][_0x2cffb0(0x212)](_0x4eba0d,{'body':_0x8804cf});return _0x48b359[_0x2cffb0(0x3db)][_0x2cffb0(0x481)]&&_0x48b359[_0x2cffb0(0x3db)]['error'][_0x2cffb0(0x46e)]!==G['OK']?_0x2cffb0(0x491):_0x48b359[_0x2cffb0(0x3db)]['result'];}catch{return _0x2cffb0(0x491);}}},exports[_0x400d5f(0x3cd)]=mi([fe(0x0,a[_0x400d5f(0x22b)]),fe(0x1,a['Inject'](x['HTTPService'])),fe(0x2,a[_0x400d5f(0x348)])],exports[_0x400d5f(0x3cd)]);const ye=0x7530,$e=_0x400d5f(0x3ec);class gi extends a[_0x400d5f(0x2a2)]{constructor(){const _0x7aa87a=_0x400d5f;super(),_(this,_0x7aa87a(0x285),a[_0x7aa87a(0x404)]()),_(this,_0x7aa87a(0x2f8),new Set()),_(this,_0x7aa87a(0x242),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x7aa87a(0x37c)]();}['dispose'](){const _0x4531ef=_0x400d5f;super[_0x4531ef(0x22c)](),this[_0x4531ef(0x3ca)]['forEach']((_0x302971,_0x4fd229)=>this[_0x4531ef(0x45a)](_0x4fd229)),this[_0x4531ef(0x406)]&&window[_0x4531ef(0x368)](this[_0x4531ef(0x406)]);}[_0x400d5f(0x278)](_0x36fb95){const _0x1c4934=_0x400d5f;return this[_0x1c4934(0x21e)](_0x36fb95)[_0x1c4934(0x2b4)](I[_0x1c4934(0x2b7)]());}[_0x400d5f(0x45b)](_0x10eb2d){const _0x2a9533=_0x400d5f;this[_0x2a9533(0x2f8)][_0x2a9533(0x268)]===0x0&&this['_scheduleHeartbeat'](),this[_0x2a9533(0x2f8)][_0x2a9533(0x4a2)](_0x10eb2d),this[_0x2a9533(0x2cf)]({'type':0x0,'memberID':this[_0x2a9533(0x285)],'unitIDs':[_0x10eb2d],'isForwarded':!0x1});}[_0x400d5f(0x3f3)](_0x1e4c0c){const _0x1fe175=_0x400d5f;this[_0x1fe175(0x2f8)][_0x1fe175(0x30e)](_0x1e4c0c),this[_0x1fe175(0x2f8)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x1fe175(0x368)](this[_0x1fe175(0x406)]);}[_0x400d5f(0x37c)](){const _0x53ffa9=_0x400d5f;this['disposeWithMe'](a[_0x53ffa9(0x4b5)](I[_0x53ffa9(0x39b)](window,'storage')[_0x53ffa9(0x247)](_0x50a07d=>{const _0x55b66d=_0x53ffa9;if(_0x50a07d[_0x55b66d(0x2cd)]!==$e||!_0x50a07d['newValue'])return;const _0x4f1671=JSON['parse'](_0x50a07d[_0x55b66d(0x3b5)]);this[_0x55b66d(0x4c5)](_0x4f1671);}))),window[_0x53ffa9(0x39c)]('unload',()=>this[_0x53ffa9(0x2cf)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x53ffa9(0x2fe)](this[_0x53ffa9(0x2f8)])}));}[_0x400d5f(0x4c5)](_0x16b5af){const _0xb8c361=_0x400d5f;switch(_0x16b5af['type']){case 0x0:this[_0xb8c361(0x4a0)](_0x16b5af);break;case 0x1:this[_0xb8c361(0x3f6)](_0x16b5af);break;case 0x2:this[_0xb8c361(0x3ad)](_0x16b5af);break;}}[_0x400d5f(0x4a0)](_0x4be938){const _0x51e0af=_0x400d5f,{unitIDs:_0x30556f,memberID:_0x5d17fa,isForwarded:_0x3c153c}=_0x4be938;_0x30556f[_0x51e0af(0x2ed)](_0x5d59e1=>{const _0x5f0db8=_0x51e0af;if(!_0x3c153c&&this['_unitOnClients']['has'](_0x5d59e1)&&this[_0x5f0db8(0x21e)](_0x5d59e1)[_0x5f0db8(0x21d)](u[_0x5f0db8(0x25b)][_0x5f0db8(0x297)]),!this[_0x5f0db8(0x242)][_0x5f0db8(0x42e)](_0x5d59e1)||!this[_0x5f0db8(0x242)]['get'](_0x5d59e1)[_0x5f0db8(0x42e)](_0x5d17fa)){const _0xf47feb=this[_0x5f0db8(0x242)][_0x5f0db8(0x28b)](_0x5d59e1)||new Set();_0xf47feb[_0x5f0db8(0x4a2)](_0x5d17fa),this['_unitOnClients'][_0x5f0db8(0x20c)](_0x5d59e1,_0xf47feb),this[_0x5f0db8(0x373)](_0x5d17fa);}}),_0x3c153c||this['_send']({'type':0x0,'memberID':this[_0x51e0af(0x285)],'unitIDs':[...this[_0x51e0af(0x2f8)]],'isForwarded':!0x0});}[_0x400d5f(0x373)](_0x4c2637){const _0x4a6203=_0x400d5f;this[_0x4a6203(0x45a)](_0x4c2637);const _0x57d29b=window[_0x4a6203(0x261)](()=>{const _0x33b3d4=_0x4a6203;this[_0x33b3d4(0x242)]['forEach'](_0xec7bf=>{_0xec7bf['delete'](_0x4c2637);});},ye*0x2);this[_0x4a6203(0x3ca)][_0x4a6203(0x20c)](_0x4c2637,_0x57d29b);}[_0x400d5f(0x45a)](_0x1ad9c3){const _0x4273a3=_0x400d5f;if(this[_0x4273a3(0x3ca)][_0x4273a3(0x42e)](_0x1ad9c3)){const _0x2c25e5=this[_0x4273a3(0x3ca)][_0x4273a3(0x28b)](_0x1ad9c3);_0x2c25e5&&window[_0x4273a3(0x233)](_0x2c25e5),this[_0x4273a3(0x3ca)][_0x4273a3(0x20c)](_0x1ad9c3,null);}}[_0x400d5f(0x3f6)](_0x5c60ad){const _0x532d2d=_0x400d5f,{memberID:_0xf02c8c,unitIDs:_0x7730c5}=_0x5c60ad;_0x7730c5['forEach'](_0x129eda=>{const _0x1caf62=_0x1c4b;var _0x14d6aa;const _0x365cde=this[_0x1caf62(0x242)][_0x1caf62(0x28b)](_0x129eda);_0x365cde&&(_0x365cde['delete'](_0xf02c8c),(_0x14d6aa=this[_0x1caf62(0x21e)](_0x129eda))==null||_0x14d6aa[_0x1caf62(0x21d)](_0x365cde[_0x1caf62(0x268)]===0x0?u['UnitStatus'][_0x1caf62(0x471)]:u[_0x1caf62(0x25b)][_0x1caf62(0x297)]));}),this[_0x532d2d(0x45a)](_0xf02c8c);}[_0x400d5f(0x3ad)](_0x189c18){const _0x26e4bd=_0x400d5f;this[_0x26e4bd(0x373)](_0x189c18[_0x26e4bd(0x25c)]);}['_send'](_0x1bb3c9){const _0x29bb1f=_0x400d5f;localStorage[_0x29bb1f(0x281)]($e,JSON[_0x29bb1f(0x4ea)](_0x1bb3c9));}[_0x400d5f(0x31e)](){const _0x3d107c=_0x400d5f;this['_heartbeatTimer']=window[_0x3d107c(0x27a)](()=>{const _0x242e00=_0x3d107c;this[_0x242e00(0x2cf)]({'type':0x2,'memberID':this[_0x242e00(0x285)]});},ye);}['_ensureSubject'](_0x3c7247){const _0x3013b3=_0x400d5f;return this[_0x3013b3(0x29e)][_0x3013b3(0x42e)](_0x3c7247)||this[_0x3013b3(0x29e)][_0x3013b3(0x20c)](_0x3c7247,new I['BehaviorSubject'](u[_0x3013b3(0x25b)][_0x3013b3(0x471)])),this[_0x3013b3(0x29e)][_0x3013b3(0x28b)](_0x3c7247);}}exports[_0x400d5f(0x3c4)]=Oe,exports[_0x400d5f(0x245)]=Ye,exports[_0x400d5f(0x267)]=gi,exports[_0x400d5f(0x419)]=He;
|