@univerjs-pro/collaboration-client-ui 0.12.4-insiders.20251211-c28f914 → 0.12.4-insiders.20251212-6c41730
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x104dc6=_0x39d4;(function(_0x583688,_0x20aca3){const _0xa00cf3=_0x39d4,_0x875e9f=_0x583688();while(!![]){try{const _0x56764c=-parseInt(_0xa00cf3(0xe4))/0x1+parseInt(_0xa00cf3(0x11e))/0x2*(-parseInt(_0xa00cf3(0x2a4))/0x3)+-parseInt(_0xa00cf3(0x2c3))/0x4+-parseInt(_0xa00cf3(0x124))/0x5*(-parseInt(_0xa00cf3(0x17c))/0x6)+-parseInt(_0xa00cf3(0x230))/0x7+-parseInt(_0xa00cf3(0x210))/0x8*(parseInt(_0xa00cf3(0xfe))/0x9)+parseInt(_0xa00cf3(0x2ba))/0xa;if(_0x56764c===_0x20aca3)break;else _0x875e9f['push'](_0x875e9f['shift']());}catch(_0x2c1fc6){_0x875e9f['push'](_0x875e9f['shift']());}}}(_0x326a,0xafbd3));var Xe=Object[_0x104dc6(0x156)],Ke=(_0x591c02,_0x41e09c,_0x4273b7)=>_0x41e09c in _0x591c02?Xe(_0x591c02,_0x41e09c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4273b7}):_0x591c02[_0x41e09c]=_0x4273b7,_=(_0x51db21,_0x5dd43a,_0xc862f)=>Ke(_0x51db21,typeof _0x5dd43a!=_0x104dc6(0x277)?_0x5dd43a+'':_0x5dd43a,_0xc862f);Object[_0x104dc6(0x156)](exports,Symbol[_0x104dc6(0x2a1)],{'value':_0x104dc6(0x110)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x23ff87,..._0x3a6fc1}){const _0x462f1d=_0x104dc6,{icon:_0x5187f6,id:_0x2d1778,className:_0x5366ea,extend:_0x1cdb6c,..._0x1c9676}=_0x3a6fc1,_0x59efb2=('univerjs-icon\x20univerjs-icon-'+_0x2d1778+'\x20'+(_0x5366ea||''))[_0x462f1d(0x2f0)](),_0xe556eb=A[_0x462f1d(0x378)]('_'+Qe());return $e(_0x5187f6,''+_0x2d1778,{'defIds':_0x5187f6['defIds'],'idSuffix':_0xe556eb[_0x462f1d(0x190)]},{'ref':_0x23ff87,'className':_0x59efb2,..._0x1c9676},_0x1cdb6c);}function $e(_0x4f3e62,_0x16f9b9,_0x4b6cd2,_0x433dd1,_0x1e65a3){const _0x89ab16=_0x104dc6;return A['createElement'](_0x4f3e62['tag'],{'key':_0x16f9b9,...Je(_0x4f3e62,_0x4b6cd2,_0x1e65a3),..._0x433dd1},(Ze(_0x4f3e62,_0x4b6cd2)[_0x89ab16(0x1e5)]||[])[_0x89ab16(0x2ff)]((_0x454198,_0x36a389)=>$e(_0x454198,_0x16f9b9+'-'+_0x4f3e62['tag']+'-'+_0x36a389,_0x4b6cd2,void 0x0,_0x1e65a3)));}function Je(_0x471f76,_0x594f63,_0xa2cacf){const _0x13cafb=_0x104dc6,_0x1347ff={..._0x471f76[_0x13cafb(0x363)]};_0xa2cacf!=null&&_0xa2cacf[_0x13cafb(0x2c1)]&&_0x1347ff['fill']===_0x13cafb(0x2c1)&&(_0x1347ff[_0x13cafb(0x38e)]=_0xa2cacf['colorChannel1']),_0x471f76['tag']==='mask'&&_0x1347ff['id']&&(_0x1347ff['id']=_0x1347ff['id']+_0x594f63[_0x13cafb(0x1c9)]),Object[_0x13cafb(0x134)](_0x1347ff)[_0x13cafb(0x197)](([_0x50aa8d,_0x3598d9])=>{const _0x57b240=_0x13cafb;_0x50aa8d==='mask'&&typeof _0x3598d9==_0x57b240(0x1ce)&&(_0x1347ff[_0x50aa8d]=_0x3598d9[_0x57b240(0xd0)](/url\(#(.*)\)/,_0x57b240(0x226)+_0x594f63['idSuffix']+')'));});const {defIds:_0x4a84b0}=_0x594f63;return!_0x4a84b0||_0x4a84b0[_0x13cafb(0x338)]===0x0||(_0x471f76['tag']===_0x13cafb(0x2df)&&_0x1347ff[_0x13cafb(0x27d)]&&(_0x1347ff[_0x13cafb(0x27d)]=_0x1347ff[_0x13cafb(0x27d)]+_0x594f63[_0x13cafb(0x1c9)]),Object[_0x13cafb(0x134)](_0x1347ff)[_0x13cafb(0x197)](([_0x1beedc,_0x802b10])=>{const _0x59e665=_0x13cafb;typeof _0x802b10==_0x59e665(0x1ce)&&(_0x1347ff[_0x1beedc]=_0x802b10[_0x59e665(0xd0)](/url\(#(.*)\)/,_0x59e665(0x226)+_0x594f63[_0x59e665(0x1c9)]+')'));})),_0x1347ff;}function Ze(_0x3c07c5,_0x2ed89e){const _0x105148=_0x104dc6;var _0x2fd033;const {defIds:_0x51a5fe}=_0x2ed89e;return!_0x51a5fe||_0x51a5fe[_0x105148(0x338)]===0x0?_0x3c07c5:_0x3c07c5['tag']===_0x105148(0x1a7)&&((_0x2fd033=_0x3c07c5[_0x105148(0x1e5)])!=null&&_0x2fd033['length'])?{..._0x3c07c5,'children':_0x3c07c5[_0x105148(0x1e5)][_0x105148(0x2ff)](_0x4d3338=>typeof _0x4d3338[_0x105148(0x363)]['id']=='string'&&_0x51a5fe&&_0x51a5fe['includes'](_0x4d3338['attrs']['id'])?{..._0x4d3338,'attrs':{..._0x4d3338[_0x105148(0x363)],'id':_0x4d3338[_0x105148(0x363)]['id']+_0x2ed89e[_0x105148(0x1c9)]}}:_0x4d3338)}:_0x3c07c5;}function _0x39d4(_0x15180a,_0x322f43){_0x15180a=_0x15180a-0xcd;const _0x326ade=_0x326a();let _0x39d44c=_0x326ade[_0x15180a];return _0x39d44c;}function Qe(){const _0x22a536=_0x104dc6;return Math['random']()[_0x22a536(0x16b)](0x24)[_0x22a536(0x199)](0x2,0x8);}pe[_0x104dc6(0x1a0)]=_0x104dc6(0x311);const et={'tag':_0x104dc6(0x11d),'attrs':{'xmlns':_0x104dc6(0x1bf),'fill':'none','viewBox':_0x104dc6(0x384),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x104dc6(0x1f6)},'children':[{'tag':_0x104dc6(0x262),'attrs':{'stroke':'currentColor','d':_0x104dc6(0x243),'strokeLinecap':'round','strokeLinejoin':_0x104dc6(0x1b5),'strokeWidth':1.2}}]},{'tag':_0x104dc6(0x1a7),'attrs':{},'children':[{'tag':_0x104dc6(0x374),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x104dc6(0x262),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x104dc6(0x2b1)]},xe=A[_0x104dc6(0x179)](function(_0x48ec06,_0x1d3c9a){const _0x420b33=_0x104dc6;return A[_0x420b33(0xf1)](pe,Object[_0x420b33(0xfb)]({},_0x48ec06,{'id':_0x420b33(0x1b3),'ref':_0x1d3c9a,'icon':et}));});xe[_0x104dc6(0x1a0)]='OffLineIcon';const tt={'tag':_0x104dc6(0x11d),'attrs':{'xmlns':_0x104dc6(0x1bf),'fill':'none','viewBox':_0x104dc6(0x36d),'width':_0x104dc6(0xcd),'height':_0x104dc6(0xcd)},'children':[{'tag':'g','attrs':{'clipPath':_0x104dc6(0x358)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x104dc6(0x14b),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x104dc6(0x1a7),'attrs':{},'children':[{'tag':_0x104dc6(0x374),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x104dc6(0x262),'attrs':{'fill':_0x104dc6(0x2c0),'d':_0x104dc6(0x2cf),'transform':_0x104dc6(0x20f)}}]}]}],'defIds':[_0x104dc6(0x274)]},Be=A['forwardRef'](function(_0x2c8725,_0x152098){const _0x313da0=_0x104dc6;return A[_0x313da0(0xf1)](pe,Object[_0x313da0(0xfb)]({},_0x2c8725,{'id':_0x313da0(0x2e8),'ref':_0x152098,'icon':tt}));});Be[_0x104dc6(0x1a0)]=_0x104dc6(0x353);function st(_0x1dc5e2){const _0xdc354c=_0x104dc6;switch(_0x1dc5e2){case u['CollaborationStatus'][_0xdc354c(0x388)]:return _0xdc354c(0xe9);case u[_0xdc354c(0x1bc)][_0xdc354c(0x236)]:return _0xdc354c(0x13a);case u[_0xdc354c(0x1bc)][_0xdc354c(0x2ed)]:return'collabStatus.fetchMiss';case u[_0xdc354c(0x1bc)][_0xdc354c(0x137)]:return _0xdc354c(0x2a5);case u[_0xdc354c(0x1bc)]['AWAITING']:case u[_0xdc354c(0x1bc)]['AWAITING_WITH_PENDING']:return _0xdc354c(0x109);case u['CollaborationStatus']['SYNCED']:case u[_0xdc354c(0x1bc)][_0xdc354c(0x348)]:return _0xdc354c(0x2f1);}}function it(_0x3cb43a){const _0x29b42b=_0x104dc6,{status$:_0x2e05fa}=_0x3cb43a,_0x14276e=O[_0x29b42b(0x26f)](_0x2e05fa,u[_0x29b42b(0x1bc)][_0x29b42b(0x137)]),_0x177abe=O[_0x29b42b(0x107)](a[_0x29b42b(0x2f2)]),_0x3adef7=O[_0x29b42b(0x107)](u[_0x29b42b(0x389)]),_0x3e8b90=_0x14276e!==u['CollaborationStatus']['OFFLINE'],_0x31f2f1=_0x177abe['t'](st(_0x14276e)),_0x10fa72=_0x3e8b90?M[_0x29b42b(0x2a7)](Be,{}):M['jsx'](xe,{}),_0x3a1f1c=A['useCallback'](()=>{const _0x45243d=_0x29b42b;_0x3e8b90||_0x3adef7[_0x45243d(0x229)]();},[_0x3e8b90,_0x3adef7]);function _0x31cebf(){const _0x25a249=_0x29b42b;return M['jsxs'](_0x25a249(0x184),{'className':_0x25a249(0x337),'onClick':_0x3a1f1c,'children':[M['jsx'](_0x25a249(0x184),{'className':p[_0x25a249(0x208)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x3e8b90,'univer-text-red-500':!_0x3e8b90}),'children':_0x10fa72}),M[_0x25a249(0x2a7)]('div',{'className':_0x25a249(0x125),'children':_0x31f2f1})]});}return _0x3e8b90?_0x31cebf():M[_0x29b42b(0x2a7)](p[_0x29b42b(0x10e)],{'title':_0x177abe['t'](_0x29b42b(0x16d)),'children':_0x31cebf()});}var nt=Object['getOwnPropertyDescriptor'],rt=(_0x3e1a75,_0x22f628,_0xdd444a,_0x8c17c8)=>{const _0x5b88c9=_0x104dc6;for(var _0x1e887b=_0x8c17c8>0x1?void 0x0:_0x8c17c8?nt(_0x22f628,_0xdd444a):_0x22f628,_0x4e2d41=_0x3e1a75[_0x5b88c9(0x338)]-0x1,_0x1bcec4;_0x4e2d41>=0x0;_0x4e2d41--)(_0x1bcec4=_0x3e1a75[_0x4e2d41])&&(_0x1e887b=_0x1bcec4(_0x1e887b)||_0x1e887b);return _0x1e887b;},K=(_0x3bf339,_0x49aca6)=>(_0x36cf73,_0x59dbe7)=>_0x49aca6(_0x36cf73,_0x59dbe7,_0x3bf339);exports[_0x104dc6(0x351)]=class extends a[_0x104dc6(0x191)]{constructor(_0x59a21c,_0x447fb5,_0x1e4a48,_0x18372d){const _0x23aa7f=_0x104dc6;super(),_(this,'_status$',new I[(_0x23aa7f(0x1b7))](u[_0x23aa7f(0x1bc)][_0x23aa7f(0x137)])),(this[_0x23aa7f(0x297)]=_0x59a21c,this[_0x23aa7f(0x33c)]=_0x447fb5,this[_0x23aa7f(0x2e1)]=_0x1e4a48,this[_0x23aa7f(0x1de)]=_0x18372d,this[_0x23aa7f(0x128)](),this['_initStatusListener']());}[_0x104dc6(0xf8)](){const _0x2fa002=_0x104dc6;this[_0x2fa002(0x186)](this[_0x2fa002(0x297)][_0x2fa002(0x354)][_0x2fa002(0x368)](I['switchMap'](()=>{const _0xfd2959=_0x2fa002,_0x290ea1=this[_0xfd2959(0x297)][_0xfd2959(0x239)]();return _0x290ea1?this[_0xfd2959(0x2e1)][_0xfd2959(0x321)](_0x290ea1['getUnitId']()):I['of'](null);}),I[_0x2fa002(0x1fe)](_0x1f2fde=>_0x1f2fde?_0x1f2fde['status$']:I['of'](u[_0x2fa002(0x1bc)]['NOT_COLLAB'])))[_0x2fa002(0x104)](_0x161a2f=>{const _0xd53a0e=_0x2fa002;this[_0xd53a0e(0x20c)][_0xd53a0e(0x1f0)](_0x161a2f);}));}['_initStatusComponent'](){const _0xe5f1aa=_0x104dc6;this[_0xe5f1aa(0x186)](this[_0xe5f1aa(0x1de)]['registerComponent'](O[_0xe5f1aa(0x309)][_0xe5f1aa(0x306)],()=>O['connectInjector'](ot({'status$':this[_0xe5f1aa(0x20c)][_0xe5f1aa(0x18c)]()}),this[_0xe5f1aa(0x33c)])));}},exports[_0x104dc6(0x351)]=rt([K(0x0,a['IUniverInstanceService']),K(0x1,a[_0x104dc6(0x359)](a['Injector'])),K(0x2,a[_0x104dc6(0x359)](u['CollaborationController'])),K(0x3,O[_0x104dc6(0x30b)])],exports[_0x104dc6(0x351)]);function ot(_0x5f82d3){const {status$:_0x2f4828}=_0x5f82d3;return function(){const _0x2e0679=_0x39d4;return M[_0x2e0679(0x2a7)](it,{'status$':_0x2f4828});};}const Oe=a[_0x104dc6(0x383)](_0x104dc6(0xd5));var at=Object[_0x104dc6(0x194)],ct=(_0x4ed10b,_0xd785c4,_0x578b4a,_0x25ac62)=>{const _0x2d026c=_0x104dc6;for(var _0x2d1ddb=_0x25ac62>0x1?void 0x0:_0x25ac62?at(_0xd785c4,_0x578b4a):_0xd785c4,_0x2507e9=_0x4ed10b[_0x2d026c(0x338)]-0x1,_0x5b42aa;_0x2507e9>=0x0;_0x2507e9--)(_0x5b42aa=_0x4ed10b[_0x2507e9])&&(_0x2d1ddb=_0x5b42aa(_0x2d1ddb)||_0x2d1ddb);return _0x2d1ddb;},Y=(_0x3c448b,_0x4a8bcd)=>(_0x3bf9f7,_0x3753a9)=>_0x4a8bcd(_0x3bf9f7,_0x3753a9,_0x3c448b);exports['CollaborationDataLoaderController']=class extends a[_0x104dc6(0x320)]{constructor(_0x2083e7,_0x20c767,_0x47f0b9,_0x56b9fb,_0x3059ab){const _0x388471=_0x104dc6;super(),this['_urlService']=_0x2083e7,this['_logService']=_0x20c767,this[_0x388471(0x2ce)]=_0x47f0b9,this[_0x388471(0x153)]=_0x56b9fb,_0x3059ab?_0x3059ab==null||_0x3059ab['whenReady']()[_0x388471(0xed)](()=>this[_0x388471(0x27e)]()):(this['_logService']['debug'](_0x388471(0x369),_0x388471(0x394)),this[_0x388471(0x27e)]());}async[_0x104dc6(0x27e)](){const _0x28ba29=_0x104dc6,_0x51ebb3=this['_urlService']['getParam'](_0x28ba29(0x291)),_0x178597=this[_0x28ba29(0x23a)][_0x28ba29(0x33b)](_0x28ba29(0x1c2)),_0x425147=this[_0x28ba29(0x23a)][_0x28ba29(0x33b)](_0x28ba29(0x1e8));if(!_0x51ebb3||!_0x178597){this[_0x28ba29(0x1af)][_0x28ba29(0x22b)](_0x28ba29(0x369),_0x28ba29(0x142));return;}const _0x47ff7b=await this[_0x28ba29(0x153)][_0x28ba29(0xf4)](_0x51ebb3,Number(_0x178597),_0x425147);_0x47ff7b&&_0x47ff7b instanceof a[_0x28ba29(0x327)]&&this['_setupSubUnitSync'](_0x47ff7b);}async[_0x104dc6(0x2d7)](_0x4292d5){const _0x37108e=_0x104dc6;await this[_0x37108e(0x162)](_0x4292d5),_0x4292d5[_0x37108e(0x1fc)]['pipe'](I['takeUntil'](this[_0x37108e(0x1a4)]))[_0x37108e(0x104)](_0x1a0265=>{const _0x4686c7=_0x37108e;_0x1a0265&&this[_0x4686c7(0xe5)](_0x1a0265);}),this[_0x37108e(0x23a)][_0x37108e(0x313)][_0x37108e(0x368)](I[_0x37108e(0x295)](this[_0x37108e(0x1a4)]))['subscribe'](()=>this[_0x37108e(0x162)](_0x4292d5));}[_0x104dc6(0xe5)](_0xa17827,_0x2bd75b=!0x1){const _0x47cbed=_0x104dc6,_0x324ebf=this[_0x47cbed(0x23a)][_0x47cbed(0x33b)](_0x47cbed(0x1e8));_0xa17827[_0x47cbed(0x279)]()!==_0x324ebf&&this['_urlService'][_0x47cbed(0x213)](_0x47cbed(0x1e8),_0xa17827[_0x47cbed(0x279)](),_0x2bd75b);}async['_updateSubUnitFromURLParams'](_0x232f49){const _0x511def=_0x104dc6;var _0x42ff05;const _0x5228ba=this['_urlService'][_0x511def(0x33b)](_0x511def(0x1e8));if(!_0x5228ba||!_0x232f49[_0x511def(0x1bb)](_0x5228ba)){const _0xd93b6e=_0x232f49[_0x511def(0x18b)]()[0x0],_0x1bb6b3=_0x232f49[_0x511def(0x1bb)](_0xd93b6e);if(!_0x1bb6b3)return;this[_0x511def(0xe5)](_0x1bb6b3,!0x0),await this[_0x511def(0x2ce)][_0x511def(0x22c)](v[_0x511def(0x28a)]['id'],{'unitId':_0x232f49['getUnitId'](),'subUnitId':_0xd93b6e});return;}((_0x42ff05=_0x232f49[_0x511def(0x330)]())==null?void 0x0:_0x42ff05[_0x511def(0x279)]())!==_0x5228ba&&await this[_0x511def(0x2ce)]['executeCommand'](v[_0x511def(0x28a)]['id'],{'unitId':_0x232f49[_0x511def(0x303)](),'subUnitId':_0x5228ba});}},exports[_0x104dc6(0x2ad)]=ct([Y(0x0,Oe),Y(0x1,a[_0x104dc6(0x32c)]),Y(0x2,a[_0x104dc6(0x37e)]),Y(0x3,a[_0x104dc6(0x359)](u[_0x104dc6(0x23d)])),Y(0x4,a['Optional'](qe[_0x104dc6(0x382)]))],exports['CollaborationDataLoaderController']);var lt=Object[_0x104dc6(0x194)],_t=(_0x16b33c,_0x22566c,_0x5b0c9a,_0x182d05)=>{const _0x546031=_0x104dc6;for(var _0x5ae1a5=_0x182d05>0x1?void 0x0:_0x182d05?lt(_0x22566c,_0x5b0c9a):_0x22566c,_0x53ec9e=_0x16b33c[_0x546031(0x338)]-0x1,_0x30d427;_0x53ec9e>=0x0;_0x53ec9e--)(_0x30d427=_0x16b33c[_0x53ec9e])&&(_0x5ae1a5=_0x30d427(_0x5ae1a5)||_0x5ae1a5);return _0x5ae1a5;},De=(_0x1ed5c3,_0x26c945)=>(_0x4bae9a,_0x126066)=>_0x26c945(_0x4bae9a,_0x126066,_0x1ed5c3);let me=class extends a[_0x104dc6(0x320)]{constructor(_0x9e82ed,_0x405062){const _0x53f0b6=_0x104dc6;super(),this[_0x53f0b6(0x2d5)]=_0x9e82ed,this[_0x53f0b6(0x195)]=_0x405062,this[_0x53f0b6(0x27e)]();}[_0x104dc6(0x27e)](){const _0x5ac896=_0x104dc6,_0x456c6a=this;this[_0x5ac896(0x186)](this[_0x5ac896(0x2d5)][_0x5ac896(0x1c8)]({'onBeforePasteImage':async _0x59a90b=>{const _0x2470a7=_0x5ac896,_0x167008=await _0x456c6a[_0x2470a7(0x195)][_0x2470a7(0x301)](_0x59a90b);return _0x167008?{'source':_0x167008[_0x2470a7(0x112)],'imageSourceType':_0x167008[_0x2470a7(0x1c7)]}:null;}}));}};me=_t([De(0x0,T[_0x104dc6(0x267)]),De(0x1,ze[_0x104dc6(0x166)])],me);const Ne=[_0x104dc6(0x154),_0x104dc6(0x2d1),_0x104dc6(0x1c3),_0x104dc6(0x2be),'blue.400',_0x104dc6(0x1ca)];class Re extends a['Disposable']{constructor(){const _0x258e76=_0x104dc6;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x258e76(0x139),0x0);}[_0x104dc6(0x332)](_0x88852f){const _0x833d5e=_0x104dc6;if(this[_0x833d5e(0x228)][_0x833d5e(0x235)](_0x88852f))return this['_assignedColors'][_0x833d5e(0x254)](_0x88852f);const _0x25bebd=Ne[this[_0x833d5e(0x139)]];return this[_0x833d5e(0x139)]=(this[_0x833d5e(0x139)]+0x1)%Ne['length'],this[_0x833d5e(0x228)][_0x833d5e(0x257)](_0x88852f,_0x25bebd),_0x25bebd;}}function Fe(_0x19f475){const _0x520ba0=_0x104dc6;let _0x4ef666='';for(const _0x4fc8aa of _0x19f475){const {startOffset:_0x3fb536,endOffset:_0x1a7079,isActive:_0x1b3307,rangeType:_0x8cc797,segmentId:_0x46f345,segmentPage:_0x2c7b24}=_0x4fc8aa;_0x4ef666[_0x520ba0(0x338)]&&(_0x4ef666+=','),_0x4ef666+=_0x3fb536+':'+_0x1a7079+':'+(_0x1b3307?'1':'0')+':'+_0x8cc797+':'+_0x46f345+':'+_0x2c7b24;}return _0x4ef666;}function ht(_0x5c4875){const _0x46e3d6=_0x104dc6,_0xf94f05=_0x5c4875[_0x46e3d6(0x278)](','),_0x23310c=[];for(const _0x4d2513 of _0xf94f05){const [_0x43990c,_0x521961,_0x4f5aa3,_0x42f6c1,_0x189328,_0x1b81d]=_0x4d2513[_0x46e3d6(0x278)](':');_0x23310c['push']({'startOffset':Number(_0x43990c),'endOffset':Number(_0x521961),'collapsed':_0x43990c===_0x521961,'isActive':_0x4f5aa3==='1','rangeType':_0x42f6c1===a[_0x46e3d6(0x165)][_0x46e3d6(0x2fc)]?a['DOC_RANGE_TYPE']['TEXT']:a['DOC_RANGE_TYPE'][_0x46e3d6(0x39a)],'segmentId':typeof _0x189328==_0x46e3d6(0x1ce)?String(_0x189328):'','segmentPage':Number(_0x1b81d!=null?_0x1b81d:-0x1)});}return _0x23310c[_0x46e3d6(0x18f)](_0x375b82=>_0x375b82[_0x46e3d6(0x1e1)])||(_0x23310c[0x0][_0x46e3d6(0x1e1)]=!0x0),_0x23310c;}class be extends a['RxDisposable']{constructor(){const _0x3b21a8=_0x104dc6;super(...arguments),_(this,_0x3b21a8(0x25b),new I[(_0x3b21a8(0x1b7))](null)),_(this,_0x3b21a8(0x14a),this[_0x3b21a8(0x25b)][_0x3b21a8(0x18c)]());}['syncEditingCollabCursor'](_0x233caf){const _0x5a92ca=_0x104dc6,{unitID:_0x220e7a,memberID:_0x48c7a5,textRanges:_0x324cf6}=_0x233caf,_0x422444=Fe(_0x324cf6);if(_0x422444==='')return;const _0x6ee427={'unitID':_0x220e7a,'memberID':_0x48c7a5,'selection':_0x422444};this[_0x5a92ca(0x25b)][_0x5a92ca(0x1f0)](_0x6ee427);}}var ut=Object[_0x104dc6(0x194)],It=(_0x3fac35,_0x170b58,_0x4bdd1c,_0x4a6381)=>{const _0x42cfb5=_0x104dc6;for(var _0x1f1f21=_0x4a6381>0x1?void 0x0:_0x4a6381?ut(_0x170b58,_0x4bdd1c):_0x170b58,_0x271093=_0x3fac35[_0x42cfb5(0x338)]-0x1,_0x54fc84;_0x271093>=0x0;_0x271093--)(_0x54fc84=_0x3fac35[_0x271093])&&(_0x1f1f21=_0x54fc84(_0x1f1f21)||_0x1f1f21);return _0x1f1f21;},U=(_0x18dadb,_0x3ff066)=>(_0x2ed576,_0x390d3)=>_0x3ff066(_0x2ed576,_0x390d3,_0x18dadb);const St=0x12c,dt=0x64;let ve=class extends a[_0x104dc6(0x320)]{constructor(_0x468f0f,_0x3102b8,_0x25320f,_0x8d56f0,_0x1bef45,_0x246166,_0x3664e3,_0x56fb17,_0x1d41a4){const _0x326c24=_0x104dc6;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,'_cursorInfo$',new I[(_0x326c24(0x1b7))](new Map())),_(this,_0x326c24(0x129),this[_0x326c24(0x141)][_0x326c24(0x18c)]()),_(this,_0x326c24(0x1fd),new I[(_0x326c24(0x1b7))]([])),_(this,_0x326c24(0x26b),this[_0x326c24(0x1fd)][_0x326c24(0x368)](I['debounceTime'](St))),_(this,'_updateLocalCursor',a['debounce'](_0x2f0bac=>{const _0x35d61a=_0x326c24,_0x534f57={'eventID':g[_0x35d61a(0xdd)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x35d61a(0x1dc)][_0x35d61a(0x35f)](),'selection':Fe(_0x2f0bac)}};this['_session'][_0x35d61a(0x299)](_0x534f57,this[_0x35d61a(0x27b)]);},dt)),(this[_0x326c24(0x27b)]=_0x468f0f,this[_0x326c24(0x1dc)]=_0x3102b8,this['_injector']=_0x25320f,this[_0x326c24(0x20a)]=_0x8d56f0,this[_0x326c24(0x2bd)]=_0x1bef45,this[_0x326c24(0x170)]=_0x246166,this['_transformService']=_0x3664e3,this['_univerInstanceService']=_0x56fb17,this[_0x326c24(0x2ce)]=_0x1d41a4);}get[_0x104dc6(0x322)](){const _0xf61a99=_0x104dc6;return this['_cursorInfo$'][_0xf61a99(0x2c9)]();}get[_0x104dc6(0x131)](){const _0x799f01=_0x104dc6;return this[_0x799f01(0x1fd)]['getValue']();}[_0x104dc6(0x16f)](){const _0x19938a=_0x104dc6;super[_0x19938a(0x16f)](),this[_0x19938a(0x141)][_0x19938a(0x1f0)](new Map()),this[_0x19938a(0x141)]['complete'](),this[_0x19938a(0x1fd)][_0x19938a(0x1f0)]([]),this[_0x19938a(0x1fd)][_0x19938a(0x24c)]();}['init'](){const _0x3b018c=_0x104dc6;this[_0x3b018c(0x27e)]||(this[_0x3b018c(0x27e)]=!0x0,this[_0x3b018c(0x1dc)][_0x3b018c(0x118)][_0x3b018c(0x368)](I['takeUntil'](this['dispose$']))[_0x3b018c(0x104)](_0x2639c1=>{const _0x31e2be=_0x3b018c;_0x2639c1===u[_0x31e2be(0x328)][_0x31e2be(0x241)]?this[_0x31e2be(0x12a)]():this[_0x31e2be(0x173)]();}),this['_session'][_0x3b018c(0x114)][_0x3b018c(0x368)](I[_0x3b018c(0x295)](this['dispose$']))[_0x3b018c(0x104)](_0x3826ff=>{const _0x16b73b=_0x3b018c,_0x44a822=_0x3826ff[_0x16b73b(0xfa)];_0x44a822===g[_0x16b73b(0xdd)][_0x16b73b(0x36a)]&&this[_0x16b73b(0x24b)](_0x3826ff),_0x44a822===g[_0x16b73b(0xdd)][_0x16b73b(0x1b1)]&&this[_0x16b73b(0x39b)](_0x3826ff);}),this[_0x3b018c(0x186)](this[_0x3b018c(0x2ce)][_0x3b018c(0x281)](_0xe9ccdd=>{const _0x3ff3ea=_0x3b018c,_0x368bdc=_0xe9ccdd['params'];_0x368bdc!=null&&this[_0x3ff3ea(0x2b3)]&&_0xe9ccdd['id']===V[_0x3ff3ea(0x12d)]['id']&&_0x368bdc['unitId']===this['unitID']&&_0x368bdc['isEditing']===!0x1&&_0x368bdc['ranges'][_0x3ff3ea(0x338)]>0x0&&this[_0x3ff3ea(0xeb)](_0x368bdc['ranges']);})),this[_0x3b018c(0x170)][_0x3b018c(0x14a)][_0x3b018c(0x368)](I['takeUntil'](this[_0x3b018c(0x1a4)]))[_0x3b018c(0x104)](_0x1d6fa6=>{const _0x33d9b0=_0x3b018c;if((_0x1d6fa6==null?void 0x0:_0x1d6fa6[_0x33d9b0(0x27b)])!==this['unitID'])return;const _0x51f2ba={'eventID':g[_0x33d9b0(0xdd)]['UPDATE_CURSOR'],'data':_0x1d6fa6};this[_0x33d9b0(0x24b)](_0x51f2ba);}),this[_0x3b018c(0x186)](this[_0x3b018c(0x2ce)][_0x3b018c(0x281)](_0x158faf=>{const _0x512a7d=_0x3b018c;if(_0x158faf['params']==null)return;const _0x4c47ed=_0x158faf['params'];if(_0x158faf['id']!==V[_0x512a7d(0x339)]['id']||_0x4c47ed[_0x512a7d(0x22a)]!==this['unitID'])return;const _0x26bc2a={'id':_0x512a7d(0x2c6),'params':_0x4c47ed},_0x3f734a=this[_0x512a7d(0x322)];for(const [_0x3aeb86,_0x1bbab0]of _0x3f734a){const _0x445211={'id':_0x512a7d(0x2c6),'params':{'unitId':this[_0x512a7d(0x27b)],'actions':null,'textRanges':_0x1bbab0[_0x512a7d(0x304)]}},_0x50a506=this[_0x512a7d(0x35c)]['transformMutation'](_0x26bc2a,_0x445211,!0x1);if(g[_0x512a7d(0x17e)](_0x50a506))throw _0x50a506[_0x512a7d(0x2b9)];_0x3f734a['set'](_0x3aeb86,{..._0x1bbab0,'ranges':_0x50a506[_0x512a7d(0x221)][_0x512a7d(0x147)]['textRanges']});}queueMicrotask(()=>{const _0x15b687=_0x512a7d;this[_0x15b687(0x141)][_0x15b687(0x1f0)](_0x3f734a);});})));}['_onCursorUpdate'](_0x23bd5e){const _0x5873ee=_0x104dc6;var _0x2f9d78,_0x3caa6d;const {memberID:_0x53e132,selection:_0x29732c}=_0x23bd5e['data'],_0x57abd2=ht(_0x29732c),_0x474a2d=(_0x3caa6d=(_0x2f9d78=this[_0x5873ee(0x2bd)][_0x5873ee(0x233)](this[_0x5873ee(0x27b)],_0x53e132))==null?void 0x0:_0x2f9d78[_0x5873ee(0x334)])!=null?_0x3caa6d:_0x5873ee(0x37d),_0x1815cc={'color':this['_colorAssignService'][_0x5873ee(0x332)](_0x53e132),'name':_0x474a2d,'ranges':_0x57abd2},_0x4d3595=this[_0x5873ee(0x322)];_0x4d3595[_0x5873ee(0x257)](_0x53e132,_0x1815cc),this[_0x5873ee(0x141)][_0x5873ee(0x1f0)](_0x4d3595);}[_0x104dc6(0x39b)](_0x2217b1){const _0x4a26b4=_0x104dc6,{memberID:_0x7b4829}=_0x2217b1[_0x4a26b4(0x183)],_0x284bc7=this[_0x4a26b4(0x322)];_0x284bc7[_0x4a26b4(0x1da)](_0x7b4829),this['_cursorInfo$'][_0x4a26b4(0x1f0)](_0x284bc7);}[_0x104dc6(0x12a)](){const _0x3bee3a=_0x104dc6;var _0xd2e29;if(this[_0x3bee3a(0x2b3)]=!0x0,((_0xd2e29=this[_0x3bee3a(0x297)]['getFocusedUnit']())==null?void 0x0:_0xd2e29[_0x3bee3a(0x303)]())!==this['unitID'])return;const _0x586947=this[_0x3bee3a(0x33c)][_0x3bee3a(0x254)](V['DocSelectionManagerService'])[_0x3bee3a(0x34f)]();Array['isArray'](_0x586947)&&_0x586947[_0x3bee3a(0x338)]>0x0&&this['_updateLocalCursor'](_0x586947);}[_0x104dc6(0x173)](){const _0x530fef=_0x104dc6;this[_0x530fef(0x2b3)]=!0x1;}};ve=It([U(0x2,a[_0x104dc6(0x359)](a[_0x104dc6(0x14e)])),U(0x3,a[_0x104dc6(0x359)](Re)),U(0x4,a[_0x104dc6(0x359)](u['MemberService'])),U(0x5,a[_0x104dc6(0x359)](be)),U(0x6,g[_0x104dc6(0x2bc)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x104dc6(0x37e)])],ve);var ft=Object[_0x104dc6(0x194)],mt=(_0x284dc8,_0x3c1f56,_0x3dc507,_0x5e3cf3)=>{const _0x4fb1a6=_0x104dc6;for(var _0x388691=_0x5e3cf3>0x1?void 0x0:_0x5e3cf3?ft(_0x3c1f56,_0x3dc507):_0x3c1f56,_0x5389eb=_0x284dc8[_0x4fb1a6(0x338)]-0x1,_0x2ad7a3;_0x5389eb>=0x0;_0x5389eb--)(_0x2ad7a3=_0x284dc8[_0x5389eb])&&(_0x388691=_0x2ad7a3(_0x388691)||_0x388691);return _0x388691;},w=(_0x539fa8,_0x5e76f8)=>(_0x441f14,_0xac7674)=>_0x5e76f8(_0x441f14,_0xac7674,_0x539fa8);const vt=0x12c,gt=0x64,Et=()=>{let _0x27c6ff=[],_0x50a2cb=!0x1;return _0x4ad4e3=>{const _0x57297a=_0x39d4;_0x27c6ff[_0x57297a(0x219)](_0x4ad4e3),_0x50a2cb||(_0x50a2cb=!0x0,setTimeout(()=>{const _0x411c9f=_0x57297a;_0x27c6ff[_0x411c9f(0x197)](_0x280266=>_0x280266()),_0x27c6ff=[],_0x50a2cb=!0x1;}));};};let ge=class extends a[_0x104dc6(0x320)]{constructor(_0x41a421,_0x34f86a,_0x3d9c05,_0x5c2764,_0x28b6ba,_0x3323bf,_0x4c89c1,_0x17679c){const _0x1b1e99=_0x104dc6;super(),_(this,_0x1b1e99(0x2b3),!0x1),_(this,_0x1b1e99(0x27e),!0x1),_(this,_0x1b1e99(0x141),new I[(_0x1b1e99(0x1b7))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x1b1e99(0x18c)]()),_(this,_0x1b1e99(0x1fd),new I[(_0x1b1e99(0x1b7))]([])),_(this,_0x1b1e99(0x26b),this[_0x1b1e99(0x1fd)][_0x1b1e99(0x368)](I[_0x1b1e99(0x108)](vt))),_(this,'_updateLocalCursor',a[_0x1b1e99(0x151)]((_0x51100b,_0x200ae1)=>{const _0x1b4556=_0x1b1e99,_0x28dc7f={'eventID':g[_0x1b4556(0xdd)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1b4556(0x27b)],'memberID':this[_0x1b4556(0x1dc)][_0x1b4556(0x35f)](),'selection':B['serializeRangeWithSheet'](_0x51100b,_0x200ae1[_0x1b4556(0x390)])}};this['_session'][_0x1b4556(0x299)](_0x28dc7f,this['unitID']);},gt)),(this[_0x1b1e99(0x27b)]=_0x41a421,this[_0x1b1e99(0x1dc)]=_0x34f86a,this[_0x1b1e99(0x33c)]=_0x3d9c05,this['_colorAssignService']=_0x5c2764,this['_memberService']=_0x28b6ba,this['_univerInstanceService']=_0x3323bf,this[_0x1b1e99(0x2ce)]=_0x4c89c1,this[_0x1b1e99(0x1df)]=_0x17679c);}get['cursorInfo'](){const _0x57afed=_0x104dc6;return this[_0x57afed(0x141)][_0x57afed(0x2c9)]();}get[_0x104dc6(0x131)](){const _0x2f5ffa=_0x104dc6;return this[_0x2f5ffa(0x1fd)][_0x2f5ffa(0x2c9)]();}[_0x104dc6(0x16f)](){const _0x10e1c5=_0x104dc6;super[_0x10e1c5(0x16f)](),this['_cursorInfo$'][_0x10e1c5(0x1f0)](new Map()),this[_0x10e1c5(0x141)][_0x10e1c5(0x24c)](),this[_0x10e1c5(0x1fd)][_0x10e1c5(0x1f0)]([]),this[_0x10e1c5(0x1fd)][_0x10e1c5(0x24c)]();}[_0x104dc6(0x29d)](){const _0x586426=_0x104dc6;this[_0x586426(0x27e)]||(this[_0x586426(0x27e)]=!0x0,this[_0x586426(0x1dc)][_0x586426(0x118)]['pipe'](I[_0x586426(0x295)](this['dispose$']))[_0x586426(0x104)](_0x5ab9bf=>{const _0x1fb3c7=_0x586426;_0x5ab9bf===u[_0x1fb3c7(0x328)][_0x1fb3c7(0x241)]?this[_0x1fb3c7(0x12a)]():this[_0x1fb3c7(0x173)]();}),this['_session'][_0x586426(0x114)]['pipe'](I[_0x586426(0x295)](this['dispose$']))[_0x586426(0x104)](_0x3d9b75=>{const _0x591b86=_0x586426,_0x30d471=_0x3d9b75[_0x591b86(0xfa)];_0x30d471===g['CollaborationEvent'][_0x591b86(0x36a)]&&this[_0x591b86(0x24b)](_0x3d9b75),_0x30d471===g[_0x591b86(0xdd)][_0x591b86(0x1b1)]&&this['_onCursorDelete'](_0x3d9b75);}),this['_onRefRangeChange'](),this[_0x586426(0x186)](this[_0x586426(0x2ce)]['onCommandExecuted'](_0x4d275c=>{const _0x4ce831=_0x586426;if(this[_0x4ce831(0x2b3)]&&_0x4d275c['id']===v[_0x4ce831(0x163)]['id']&&_0x4d275c['params'][_0x4ce831(0x22a)]===this[_0x4ce831(0x27b)]){const _0x5c6a75=_0x4d275c[_0x4ce831(0x147)];this['_updateLocalCursor'](_0x5c6a75[_0x4ce831(0x1d5)],_0x5c6a75[_0x4ce831(0x377)][0x0]);}})));}[_0x104dc6(0x24b)](_0x5c4570){const _0x3affbf=_0x104dc6;var _0x5f3132,_0x5e0802;const {memberID:_0x2f6bd9,selection:_0x49a84f}=_0x5c4570[_0x3affbf(0x183)],{sheetName:_0x4b5795,range:_0x1b9edc}=B[_0x3affbf(0x329)](_0x49a84f),_0x40f9ff={'name':(_0x5e0802=(_0x5f3132=this[_0x3affbf(0x2bd)][_0x3affbf(0x233)](this['unitID'],_0x2f6bd9))==null?void 0x0:_0x5f3132[_0x3affbf(0x334)])!=null?_0x5e0802:_0x3affbf(0x37d),'range':this[_0x3affbf(0x204)](_0x4b5795,_0x1b9edc),'sheetID':_0x4b5795,'color':this[_0x3affbf(0x20a)][_0x3affbf(0x332)](_0x2f6bd9),'selection':_0x49a84f},_0x1739b2=this[_0x3affbf(0x322)];_0x1739b2['set'](_0x2f6bd9,_0x40f9ff),this['_cursorInfo$'][_0x3affbf(0x1f0)](_0x1739b2);}[_0x104dc6(0x39b)](_0x17a4dc){const _0x2f35d0=_0x104dc6,{memberID:_0x5e1ebd}=_0x17a4dc[_0x2f35d0(0x183)],_0x60cbd9=this[_0x2f35d0(0x322)];_0x60cbd9[_0x2f35d0(0x1da)](_0x5e1ebd),this['_cursorInfo$'][_0x2f35d0(0x1f0)](_0x60cbd9);}[_0x104dc6(0x204)](_0x29a442,_0x712851){const _0x36fb2d=_0x104dc6;var _0x48789b,_0x40b3b2;const _0x48bc4b=(_0x40b3b2=(_0x48789b=this['_univerInstanceService'][_0x36fb2d(0x379)](this[_0x36fb2d(0x27b)]))==null?void 0x0:_0x48789b[_0x36fb2d(0x1bb)](_0x29a442))==null?void 0x0:_0x40b3b2['getMergeData']();return(_0x48bc4b==null?void 0x0:_0x48bc4b[_0x36fb2d(0x2d8)](_0x58fa35=>a[_0x36fb2d(0x15a)]['contains'](_0x58fa35,_0x712851)))||_0x712851;}[_0x104dc6(0x2b5)](){const _0x6bd83b=_0x104dc6,_0x2ec748=new a[(_0x6bd83b(0x32f))](),_0x219fb7=Et(),_0x5d664f=()=>{const _0x2b64f7=_0x6bd83b;_0x2ec748[_0x2b64f7(0x16f)]();const _0x27fe2e=(_0x381626,_0x14c314,_0x1efb86,_0x1cf503)=>{const _0x472324=_0x2b64f7;let _0x37694a=[];switch(_0x381626['id']){case v[_0x472324(0x175)][_0x472324(0x2bb)]:{_0x37694a=v[_0x472324(0x25f)](_0x381626,_0x1cf503);break;}case v[_0x472324(0x175)][_0x472324(0x37a)]:{_0x37694a=v[_0x472324(0x1bd)](_0x381626,_0x1cf503);break;}case v[_0x472324(0x175)][_0x472324(0x26d)]:{_0x37694a=v['handleInsertCol'](_0x381626,_0x1cf503);break;}case v['EffectRefRangId'][_0x472324(0x1f5)]:{_0x37694a=v[_0x472324(0x275)](_0x381626,_0x1cf503);break;}case v['EffectRefRangId'][_0x472324(0x1fa)]:{_0x37694a=v['handleInsertRangeMoveRight'](_0x381626,_0x1cf503);break;}case v[_0x472324(0x175)]['InsertRowCommandId']:{_0x37694a=v[_0x472324(0x2f9)](_0x381626,_0x1cf503);break;}case v[_0x472324(0x175)]['MoveRangeCommandId']:{_0x37694a=v[_0x472324(0x255)](_0x381626,_0x1cf503);break;}case v['EffectRefRangId'][_0x472324(0x2e5)]:{_0x37694a=v[_0x472324(0x307)](_0x381626,_0x1cf503);break;}case v[_0x472324(0x175)][_0x472324(0x11f)]:{_0x37694a=v[_0x472324(0x1d0)](_0x381626,_0x1cf503);break;}}const _0x2142c4=v[_0x472324(0x290)](_0x37694a,_0x1cf503),_0x210f4a=this[_0x472324(0x322)][_0x472324(0x254)](_0x14c314);if(_0x210f4a&&_0x2142c4){const _0x2d5f48={..._0x210f4a,'range':_0x2142c4};this[_0x472324(0x322)]['set'](_0x14c314,_0x2d5f48),_0x219fb7(()=>{const _0x3423ff=_0x472324,_0x1cd911=this[_0x3423ff(0x1df)]['registerRefRange'](_0x2142c4,_0x35fd9d=>(_0x1cd911['dispose'](),_0x27fe2e(_0x35fd9d,_0x14c314,_0x1efb86,_0x2142c4)));_0x2ec748[_0x3423ff(0x15b)](_0x1cd911);});}return{'redos':[],'undos':[]};};this[_0x2b64f7(0x322)][_0x2b64f7(0x197)]((_0x151e84,_0x1896c1)=>{const _0x52ee99=_0x2b64f7,{range:_0x599112,sheetID:_0xb534fb}=_0x151e84,_0x58dd3f=this[_0x52ee99(0x1df)][_0x52ee99(0x19e)](_0x599112,_0x2ecf49=>(_0x58dd3f[_0x52ee99(0x16f)](),_0x27fe2e(_0x2ecf49,_0x1896c1,_0xb534fb,_0x599112)));_0x2ec748[_0x52ee99(0x15b)](_0x58dd3f);});};this[_0x6bd83b(0x186)](a[_0x6bd83b(0x365)](this['_cursorInfo$'][_0x6bd83b(0x104)](()=>{_0x5d664f();})));}[_0x104dc6(0x12a)](){const _0x1c1b9b=_0x104dc6;var _0x2ba9c1,_0x473db4;if(this[_0x1c1b9b(0x2b3)]=!0x0,((_0x2ba9c1=this['_univerInstanceService'][_0x1c1b9b(0x239)]())==null?void 0x0:_0x2ba9c1['getUnitId']())!==this[_0x1c1b9b(0x27b)])return;const _0xce296c=(_0x473db4=this[_0x1c1b9b(0x33c)][_0x1c1b9b(0x254)](v[_0x1c1b9b(0x13e)])['getCurrentSelections']())==null?void 0x0:_0x473db4[0x0],_0x4cbf37=this[_0x1c1b9b(0x297)][_0x1c1b9b(0x27f)](a[_0x1c1b9b(0x344)][_0x1c1b9b(0x381)])[_0x1c1b9b(0x330)]();_0xce296c&&_0x4cbf37&&this[_0x1c1b9b(0xeb)](_0x4cbf37[_0x1c1b9b(0x279)](),_0xce296c);}[_0x104dc6(0x173)](){const _0x45deb6=_0x104dc6;this[_0x45deb6(0x2b3)]=!0x1;}};ge=mt([w(0x2,a['Inject'](a[_0x104dc6(0x14e)])),w(0x3,a[_0x104dc6(0x359)](Re)),w(0x4,a['Inject'](u[_0x104dc6(0x17a)])),w(0x5,a[_0x104dc6(0x2c8)]),w(0x6,a[_0x104dc6(0x37e)]),w(0x7,a[_0x104dc6(0x359)](v[_0x104dc6(0x1a2)]))],ge);var Ct=Object[_0x104dc6(0x194)],Tt=(_0x5969f3,_0x44f094,_0x420315,_0x49265f)=>{const _0x15ccea=_0x104dc6;for(var _0x5c3125=_0x49265f>0x1?void 0x0:_0x49265f?Ct(_0x44f094,_0x420315):_0x44f094,_0x122524=_0x5969f3[_0x15ccea(0x338)]-0x1,_0x25e285;_0x122524>=0x0;_0x122524--)(_0x25e285=_0x5969f3[_0x122524])&&(_0x5c3125=_0x25e285(_0x5c3125)||_0x5c3125);return _0x5c3125;},ce=(_0x3f77a7,_0x45d257)=>(_0x20c1cc,_0x45cd11)=>_0x45d257(_0x20c1cc,_0x45cd11,_0x3f77a7);let F=class extends a[_0x104dc6(0x320)]{constructor(_0x9e45f7,_0x26cbfc,_0x255e27){const _0x347651=_0x104dc6;super(),_(this,_0x347651(0x220),new Map()),_(this,_0x347651(0x211),new I[(_0x347651(0x1f8))]()),(this[_0x347651(0x297)]=_0x9e45f7,this[_0x347651(0x33c)]=_0x26cbfc,this['_collabSessionService']=_0x255e27,this['_init']());}['dispose'](){const _0x3992c0=_0x104dc6;super[_0x3992c0(0x16f)](),this[_0x3992c0(0x211)][_0x3992c0(0x24c)](),this[_0x3992c0(0x220)][_0x3992c0(0x197)](_0x3b09a0=>_0x3b09a0['dispose']());}[_0x104dc6(0x2e7)](_0x5a9bd6){const _0x4c74c3=_0x104dc6;return this[_0x4c74c3(0x220)][_0x4c74c3(0x235)](_0x5a9bd6)?this[_0x4c74c3(0x220)][_0x4c74c3(0x254)](_0x5a9bd6)[_0x4c74c3(0x129)]:this[_0x4c74c3(0x211)][_0x4c74c3(0x368)](I[_0x4c74c3(0x387)](_0x606a2f=>_0x606a2f[_0x4c74c3(0x27b)]===_0x5a9bd6),I[_0x4c74c3(0x1fe)](_0x2f5a2c=>_0x2f5a2c[_0x4c74c3(0x129)]));}[_0x104dc6(0x27e)](){const _0x33569c=_0x104dc6;this[_0x33569c(0x297)][_0x33569c(0x1b6)](a[_0x33569c(0x344)][_0x33569c(0x381)])[_0x33569c(0x368)](I[_0x33569c(0x295)](this[_0x33569c(0x1a4)]))[_0x33569c(0x104)](async _0x21b381=>{const _0x499f5b=_0x33569c,_0x23997c=_0x21b381[_0x499f5b(0x303)](),_0x1c6ffc=await this['_startSheetCollabCursor'](_0x23997c);this[_0x499f5b(0x211)][_0x499f5b(0x1f0)](_0x1c6ffc),this[_0x499f5b(0x220)]['set'](_0x23997c,_0x1c6ffc);}),this[_0x33569c(0x297)][_0x33569c(0x1b6)](a[_0x33569c(0x344)][_0x33569c(0x1d6)])['pipe'](I[_0x33569c(0x295)](this[_0x33569c(0x1a4)]))[_0x33569c(0x368)](I[_0x33569c(0x387)](_0x4776ac=>!_0x4776ac[_0x33569c(0x303)]()['startsWith']('__')))[_0x33569c(0x104)](async _0x2b2ad4=>{const _0x607609=_0x33569c,_0x5e34b5=_0x2b2ad4[_0x607609(0x303)](),_0x1521ff=await this[_0x607609(0x35a)](_0x5e34b5);this[_0x607609(0x211)][_0x607609(0x1f0)](_0x1521ff),this[_0x607609(0x220)][_0x607609(0x257)](_0x5e34b5,_0x1521ff);}),I['merge'](this[_0x33569c(0x297)][_0x33569c(0x395)](a[_0x33569c(0x344)]['UNIVER_DOC']),this[_0x33569c(0x297)][_0x33569c(0x395)](a[_0x33569c(0x344)][_0x33569c(0x381)]))['pipe'](I['takeUntil'](this[_0x33569c(0x1a4)]))[_0x33569c(0x104)](_0x523e87=>{const _0x493420=_0x33569c,_0x149256=_0x523e87['getUnitId'](),_0x647d90=this[_0x493420(0x220)][_0x493420(0x254)](_0x149256);_0x647d90&&(_0x647d90[_0x493420(0x16f)](),this[_0x493420(0x220)]['delete'](_0x149256));});}async['_startSheetCollabCursor'](_0x3e4350){const _0x55fdc5=_0x104dc6,_0x2635b9=await this[_0x55fdc5(0x343)]['requireSession'](_0x3e4350),_0x18c3dc=this['_injector'][_0x55fdc5(0xdc)](ge,_0x3e4350,_0x2635b9);return _0x18c3dc['init'](),_0x18c3dc;}async[_0x104dc6(0x35a)](_0x7f0061){const _0x483ff8=_0x104dc6,_0x266882=await this[_0x483ff8(0x343)][_0x483ff8(0x28d)](_0x7f0061),_0x3ec54d=this['_injector']['createInstance'](ve,_0x7f0061,_0x266882);return _0x3ec54d[_0x483ff8(0x29d)](),_0x3ec54d;}};F=Tt([ce(0x0,a[_0x104dc6(0x2c8)]),ce(0x1,a[_0x104dc6(0x359)](a[_0x104dc6(0x14e)])),ce(0x2,a['Inject'](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x6e7558,_0x5b1e6e){const _0x54eaf8=_0x104dc6;let {radius:_0x10afb3,width:_0x112eb6,height:_0x596c51}=_0x5b1e6e;_0x10afb3=_0x10afb3!=null?_0x10afb3:0x0,_0x112eb6=_0x112eb6!=null?_0x112eb6:0x1e,_0x596c51=_0x596c51!=null?_0x596c51:0x1e;let _0x98a089=0x0,_0x188e44=0x0,_0x3d781a=0x0;_0x98a089=_0x188e44=_0x3d781a=Math[_0x54eaf8(0x1e6)](_0x10afb3,_0x112eb6/0x2,_0x596c51/0x2),_0x6e7558[_0x54eaf8(0x265)](),_0x6e7558[_0x54eaf8(0x2b6)](_0x98a089,0x0),_0x6e7558[_0x54eaf8(0x23f)](_0x112eb6-_0x188e44,0x0),_0x6e7558['arc'](_0x112eb6-_0x188e44,_0x188e44,_0x188e44,Math['PI']*0x3/0x2,0x0,!0x1),_0x6e7558[_0x54eaf8(0x23f)](_0x112eb6,_0x596c51-_0x3d781a),_0x6e7558[_0x54eaf8(0x259)](_0x112eb6-_0x3d781a,_0x596c51-_0x3d781a,_0x3d781a,0x0,Math['PI']/0x2,!0x1),_0x6e7558[_0x54eaf8(0x23f)](0x0,_0x596c51),_0x6e7558['lineTo'](0x0,_0x98a089),_0x6e7558[_0x54eaf8(0x259)](_0x98a089,_0x98a089,_0x98a089,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x6e7558[_0x54eaf8(0xd2)](),_0x5b1e6e[_0x54eaf8(0x38e)]&&(_0x6e7558[_0x54eaf8(0x31c)](),_0x6e7558['fillStyle']=_0x5b1e6e[_0x54eaf8(0x38e)],_0x5b1e6e[_0x54eaf8(0x193)]===_0x54eaf8(0x2d2)?_0x6e7558['fill']('evenodd'):_0x6e7558[_0x54eaf8(0x38e)](),_0x6e7558[_0x54eaf8(0x352)]());}class re extends C[_0x104dc6(0x256)]{constructor(_0x815ca3,_0x420b58){const _0xe94ea5=_0x104dc6;super(_0x815ca3,_0x420b58),_(this,_0xe94ea5(0x324)),_(this,_0xe94ea5(0x1c1)),(this[_0xe94ea5(0x324)]=_0x420b58==null?void 0x0:_0x420b58['color'],this[_0xe94ea5(0x1c1)]=_0x420b58==null?void 0x0:_0x420b58['text']);}static[_0x104dc6(0x203)](_0x43c551,_0x58fe9d){const _0xabbcdd=_0x104dc6,{text:_0x5b5c5f,color:_0x137910}=_0x58fe9d;_0x43c551[_0xabbcdd(0x31c)](),_0x43c551[_0xabbcdd(0x224)]=_0xabbcdd(0x273);const _0x239256=_0x43c551['measureText'](_0x5b5c5f)[_0xabbcdd(0x2aa)],_0x13b2e9=Math['min'](_0x239256+0x2*le,Ue);Ot(_0x43c551,{'height':X,'radius':0x4,'width':_0x13b2e9,'fill':_0x137910}),_0x43c551['fillStyle']='#FFF';const _0x19311c=le,_0x1659eb=X-pt,_0x4d9a7b=Ue-0x2*le;if(_0x239256>_0x4d9a7b){let _0x5e022f='',_0x500334=0x0;for(const _0xbedce4 of _0x5b5c5f){const _0x33a61c=_0x43c551['measureText'](_0xbedce4)[_0xabbcdd(0x2aa)];if(_0x500334+_0x33a61c<=_0x4d9a7b-_0x43c551[_0xabbcdd(0x333)](_0xabbcdd(0x25d))[_0xabbcdd(0x2aa)])_0x5e022f+=_0xbedce4,_0x500334+=_0x33a61c;else{_0x5e022f+=_0xabbcdd(0x25d);break;}}_0x43c551[_0xabbcdd(0x331)](_0x5e022f,_0x19311c,_0x1659eb);}else _0x43c551[_0xabbcdd(0x331)](_0x5b5c5f,_0x19311c,_0x1659eb);_0x43c551['restore']();}[_0x104dc6(0x1a1)](_0x364412){re['drawWith'](_0x364412,this);}}const _e=_0x104dc6(0x10c),Rt=_0x104dc6(0x2a2),bt=_0x104dc6(0x2c5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x104dc6(0x1c4);class Le{constructor(_0x174b68,_0x417f0d,_0x5cec31,_0x4b615d){const _0x6b8c4f=_0x104dc6;_(this,_0x6b8c4f(0x34e),[]),_(this,_0x6b8c4f(0x26a),null),_(this,_0x6b8c4f(0xdf),null),_(this,_0x6b8c4f(0x222),null),_(this,_0x6b8c4f(0x14f),null),_(this,_0x6b8c4f(0x27a),null),(this[_0x6b8c4f(0x1ed)]=_0x174b68,this[_0x6b8c4f(0x33a)]=_0x417f0d,this[_0x6b8c4f(0x240)]=_0x5cec31,this[_0x6b8c4f(0x397)]=_0x4b615d,this[_0x6b8c4f(0x293)]());}set[_0x104dc6(0x29c)](_0x635320){const _0x368f73=_0x104dc6;_0x635320?(this[_0x368f73(0x222)]&&this[_0x368f73(0x222)]['hide'](),this[_0x368f73(0xdf)]&&this[_0x368f73(0xdf)]['show']()):(this[_0x368f73(0x222)]&&this['_anchorDot']['show'](),this[_0x368f73(0xdf)]&&this[_0x368f73(0xdf)][_0x368f73(0x119)]());}['dispose'](){const _0x37675f=_0x104dc6;for(const _0xcede0d of this['_shapes'])_0xcede0d[_0x37675f(0x16f)]();this[_0x37675f(0xdf)]&&this['_textBubble'][_0x37675f(0x16f)](),this[_0x37675f(0x222)]&&this[_0x37675f(0x222)][_0x37675f(0x16f)](),this[_0x37675f(0x26a)]&&this[_0x37675f(0x26a)][_0x37675f(0x16f)](),this[_0x37675f(0x27a)]&&this[_0x37675f(0x27a)]();}[_0x104dc6(0x293)](){const _0x1323ca=_0x104dc6;var _0x4b023e;const {_docSkeleton:_0x4f5fba,_document:_0x4f22ae}=this,{color:_0x381d1a,name:_0x314efb,ranges:_0x154e33}=this[_0x1323ca(0x1ed)],_0x415960=_0x4f22ae[_0x1323ca(0x21b)](),{docsLeft:_0xe6b8a,docsTop:_0x2aa572}=_0x415960,_0xb650f9=new T[(_0x1323ca(0x2e0))](_0x415960,_0x4f5fba);for(const {startOffset:_0x4b07bf,endOffset:_0x1df36e,rangeType:_0x1120ea,segmentId:_0xdd0e33,segmentPage:_0x3a1640,collapsed:_0x15d85a,isActive:_0x424b45}of _0x154e33){const _0x1fd497=_0x4f5fba[_0x1323ca(0x205)](_0x4b07bf,!0x0,_0xdd0e33,_0x3a1640);let _0x1a0396=_0x4f5fba['findNodePositionByCharIndex'](_0x1df36e,!0x0,_0xdd0e33,_0x3a1640);if(_0x1a0396==null&&(_0x1a0396=_0x4f5fba[_0x1323ca(0x205)](_0x1df36e-0x1,!0x1,_0xdd0e33,_0x3a1640)),_0x424b45){const {contentBoxPointGroup:_0x2c367a}=_0xb650f9[_0x1323ca(0x1ee)](_0x1a0396,_0x1a0396);if(_0x2c367a[_0x1323ca(0x338)]===0x0)continue;this['_drawAnchor'](_0x381d1a,_0x2c367a,_0xe6b8a,_0x2aa572,_0x314efb),this[_0x1323ca(0x27a)]=this[_0x1323ca(0x140)]();}if(_0x1fd497&&_0x1a0396){if(_0x1120ea===a[_0x1323ca(0x165)][_0x1323ca(0x39a)]){const _0x21a86e=new T[(_0x1323ca(0x1c0))](_0x415960,_0x4f5fba),{pointGroup:_0xe93679}=(_0x4b023e=_0x21a86e[_0x1323ca(0x1ee)](_0x1fd497,_0x1a0396))!=null?_0x4b023e:{};if(_0xe93679==null||_0xe93679[_0x1323ca(0x338)]===0x0)continue;this['_drawRectRange'](_0x381d1a,_0xe93679,_0xe6b8a,_0x2aa572);}else{if(!_0x15d85a){const {borderBoxPointGroup:_0x2410d7}=_0xb650f9[_0x1323ca(0x1ee)](_0x1fd497,_0x1a0396);if(_0x2410d7[_0x1323ca(0x338)]===0x0)continue;this[_0x1323ca(0xef)](_0x381d1a,_0x2410d7,_0xe6b8a,_0x2aa572);}}}}}['_drawAnchor'](_0x3c85b2,_0x34783f,_0x2b110f,_0x2da5ae,_0x23b70b){const _0xb7f276=_0x104dc6,_0x4eaa47=this[_0xb7f276(0x364)](_0x34783f),{left:_0x2157d4,top:_0x55888f,height:_0x5c5bb0}=_0x4eaa47,_0x56c3ae=this[_0xb7f276(0x37b)](),_0x30bf4c=Nt/_0x56c3ae,_0xd8fdd5=new C[(_0xb7f276(0x148))](_e+a[_0xb7f276(0x116)](H),{'left':_0x2157d4+_0x2b110f-_0x30bf4c,'top':_0x55888f+_0x2da5ae,'height':_0x5c5bb0,'width':Dt,'fill':_0x3c85b2||C[_0xb7f276(0x373)](a['COLORS'][_0xb7f276(0x342)],0x0),'strokeWidth':_0x30bf4c,'stroke':Ut,'evented':!0x0});this['_anchor']=_0xd8fdd5,this[_0xb7f276(0x33a)]['addObject'](_0xd8fdd5,T[_0xb7f276(0x200)]);const _0x55ece0=new C[(_0xb7f276(0x148))](_e+a['generateRandomId'](H),{'left':_0x2157d4+_0x2b110f-_0x30bf4c,'top':_0x55888f+_0x2da5ae-he/0x2,'height':he,'width':he,'fill':_0x3c85b2||C[_0xb7f276(0x373)](a[_0xb7f276(0x29e)][_0xb7f276(0x342)],0x0),'strokeWidth':0x0,'stroke':_0x3c85b2||C[_0xb7f276(0x373)](a[_0xb7f276(0x29e)][_0xb7f276(0x342)],0x0),'evented':!0x1});this[_0xb7f276(0x222)]=_0x55ece0,this[_0xb7f276(0x33a)]['addObject'](_0x55ece0,T[_0xb7f276(0x200)]);const _0x1eeeb9=new re(_e+a[_0xb7f276(0x116)](H),{'left':_0x2157d4+_0x2b110f-_0x30bf4c,'top':_0x55888f+_0x2da5ae-X,'text':_0x23b70b,'color':_0x3c85b2});this['_textBubble']=_0x1eeeb9,this['_scene'][_0xb7f276(0x32d)](_0x1eeeb9,T['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x104dc6(0x140)](){const _0x437f6c=_0x104dc6,_0x474553=this[_0x437f6c(0x26a)]['onPointerEnter$'][_0x437f6c(0x28e)](()=>{this['_hover']=!0x0;}),_0x5a1e52=this['_anchor'][_0x437f6c(0x231)][_0x437f6c(0x28e)](()=>{const _0x3634e8=_0x437f6c;this['_hideTimer']&&clearTimeout(this[_0x3634e8(0x14f)]),this[_0x3634e8(0x14f)]=setTimeout(()=>{const _0x7b4bff=_0x3634e8;this[_0x7b4bff(0x29c)]=!0x1;},0x7d0);});return()=>{const _0x5297d6=_0x437f6c;_0x474553['unsubscribe'](),_0x5a1e52[_0x5297d6(0x24f)]();};}[_0x104dc6(0xef)](_0x5b8e83,_0x4d3b67,_0x119b4d,_0x5e654b){const _0x2acb73=_0x104dc6,_0x5218b9=new a[(_0x2acb73(0xfc))](_0x5b8e83)[_0x2acb73(0x1b4)](0.2)[_0x2acb73(0x27c)](),_0x426224=new C['RegularPolygon'](Rt+a['generateRandomId'](H),{'pointsGroup':_0x4d3b67,'fill':_0x5218b9||C[_0x2acb73(0x373)](a[_0x2acb73(0x29e)][_0x2acb73(0x342)],0.2),'left':_0x119b4d,'top':_0x5e654b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2acb73(0x34e)][_0x2acb73(0x219)](_0x426224),this['_scene'][_0x2acb73(0x32d)](_0x426224,T[_0x2acb73(0x200)]);}[_0x104dc6(0x237)](_0x370520,_0x39f26a,_0x1fd05f,_0x57cea6){const _0x43ccac=_0x104dc6,_0x5c9e58=new a[(_0x43ccac(0xfc))](_0x370520)[_0x43ccac(0x1b4)](0.2)['toRgbString'](),_0x325f0b=new C[(_0x43ccac(0xd4))](bt+a[_0x43ccac(0x116)](H),{'pointsGroup':_0x39f26a,'fill':_0x5c9e58||C['getColor'](a[_0x43ccac(0x29e)][_0x43ccac(0x342)],0.2),'left':_0x1fd05f,'top':_0x57cea6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x43ccac(0x34e)][_0x43ccac(0x219)](_0x325f0b),this['_scene'][_0x43ccac(0x32d)](_0x325f0b,T[_0x43ccac(0x200)]);}[_0x104dc6(0x364)](_0xd9ef){const _0x38f048=_0xd9ef[0x0],_0x4765b4=_0x38f048[0x0],_0x32c008=_0x38f048[0x2],{x:_0x1d5a7,y:_0x4cfb74}=_0x4765b4,{x:_0x378989,y:_0x9cf853}=_0x32c008;return{'left':_0x1d5a7,'top':_0x4cfb74,'width':_0x378989-_0x1d5a7,'height':_0x9cf853-_0x4cfb74};}[_0x104dc6(0x37b)](){const _0x471b03=_0x104dc6,{scaleX:_0x4e1eee,scaleY:_0x11abd5}=this[_0x471b03(0x33a)]['getAncestorScale']();return Math[_0x471b03(0x396)](_0x4e1eee,_0x11abd5);}}var Lt=Object[_0x104dc6(0x194)],Mt=(_0x254d21,_0x106255,_0x6a5bce,_0x520959)=>{for(var _0x2b8bd7=_0x520959>0x1?void 0x0:_0x520959?Lt(_0x106255,_0x6a5bce):_0x106255,_0xb939a6=_0x254d21['length']-0x1,_0x3b5769;_0xb939a6>=0x0;_0xb939a6--)(_0x3b5769=_0x254d21[_0xb939a6])&&(_0x2b8bd7=_0x3b5769(_0x2b8bd7)||_0x2b8bd7);return _0x2b8bd7;},q=(_0x1c70e1,_0x179373)=>(_0x29d3f8,_0x542c3f)=>_0x179373(_0x29d3f8,_0x542c3f,_0x1c70e1);let Ee=class extends a[_0x104dc6(0x320)]{constructor(_0x53e58a,_0x672453,_0xbdef98,_0x3f8ae9,_0x2f3213){const _0x2e1b76=_0x104dc6;super(),_(this,'_cursorShapes',[]),_(this,_0x2e1b76(0xd3),[]),(this[_0x2e1b76(0xd6)]=_0x53e58a,this['_docSkeletonManagerService']=_0x672453,this[_0x2e1b76(0x1cb)]=_0xbdef98,this[_0x2e1b76(0x2ce)]=_0x3f8ae9,this[_0x2e1b76(0x271)]=_0x2f3213,this[_0x2e1b76(0x27e)]());}[_0x104dc6(0x27e)](){const _0x4cff1d=_0x104dc6,_0x471484=this[_0x4cff1d(0xd6)][_0x4cff1d(0x22a)],_0x2de8a6=this[_0x4cff1d(0x350)];this['disposeWithMe'](I[_0x4cff1d(0x32e)]([this[_0x4cff1d(0x1cb)]['getCollabCursors$'](_0x471484),this['_themeService'][_0x4cff1d(0x21f)]])[_0x4cff1d(0x368)]($[_0x4cff1d(0x2ff)](([_0x58a0c4,_0x4a514e])=>({'skeleton':_0x2de8a6[_0x4cff1d(0x123)](),'cursors':[..._0x58a0c4[_0x4cff1d(0x2ac)]()]['flatMap'](_0x155ca9=>({..._0x155ca9,'color':this['_themeService'][_0x4cff1d(0x371)](_0x155ca9[_0x4cff1d(0x324)])}))})))[_0x4cff1d(0x104)](_0xaa3476=>{const _0xbf1f3a=_0x4cff1d;if(this[_0xbf1f3a(0x12b)](),_0xaa3476){const {skeleton:_0x34acb4,cursors:_0x2819f2}=_0xaa3476;this['_updateCollabCursors'](_0x34acb4,_0x2819f2);}})),this[_0x4cff1d(0x34d)](),this[_0x4cff1d(0x263)]();}[_0x104dc6(0x34c)](_0x4e4396,_0x58481c){const _0x546b5f=_0x104dc6,{scene:_0x859a3,mainComponent:_0x2ad124}=this[_0x546b5f(0xd6)],_0x3dd53c=_0x58481c[_0x546b5f(0x2ff)](_0x25e547=>new Le(_0x25e547,_0x859a3,_0x4e4396,_0x2ad124));this[_0x546b5f(0x2c4)]=_0x3dd53c,this[_0x546b5f(0xd3)]=_0x58481c;}[_0x104dc6(0xda)](){const _0x11d128=_0x104dc6;this[_0x11d128(0x12b)]();const {scene:_0x4e0ab8,mainComponent:_0x457a7a}=this[_0x11d128(0xd6)],_0x26c73f=this['_docSkeletonManagerService'][_0x11d128(0x123)](),_0x582f6b=this[_0x11d128(0xd3)][_0x11d128(0x2ff)](_0x158a44=>new Le(_0x158a44,_0x4e0ab8,_0x26c73f,_0x457a7a));this[_0x11d128(0x2c4)]=_0x582f6b;}[_0x104dc6(0x12b)](){const _0x3afa7d=_0x104dc6;this['_cursorShapes'][_0x3afa7d(0x197)](_0x5762ef=>_0x5762ef[_0x3afa7d(0x16f)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x400563=_0x104dc6,_0x285cad=[T['SetDocZoomRatioOperation']['id']];this[_0x400563(0x186)](this[_0x400563(0x2ce)][_0x400563(0x281)](_0x11bc56=>{const _0x278e9d=_0x400563;_0x285cad[_0x278e9d(0x11b)](_0x11bc56['id'])&&_0x11bc56['params'][_0x278e9d(0x22a)]===this[_0x278e9d(0xd6)][_0x278e9d(0x22a)]&&this[_0x278e9d(0xda)]();}));}['_initResize'](){const _0x5546a3=_0x104dc6;this[_0x5546a3(0x186)](a[_0x5546a3(0x1cf)](this[_0x5546a3(0xd6)][_0x5546a3(0x349)][_0x5546a3(0x245)])[_0x5546a3(0x368)]($[_0x5546a3(0x387)](_0x45ed0b=>_0x45ed0b[_0x5546a3(0x1c2)]===C[_0x5546a3(0x30f)][_0x5546a3(0x2a3)]),$[_0x5546a3(0x120)](0x10))[_0x5546a3(0x104)](()=>{const _0x2a8d4b=_0x5546a3;this[_0x2a8d4b(0xda)]();}));}};Ee=Mt([q(0x1,a[_0x104dc6(0x359)](V[_0x104dc6(0x1ec)])),q(0x2,a[_0x104dc6(0x359)](F)),q(0x3,a['ICommandService']),q(0x4,a[_0x104dc6(0x359)](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x104dc6(0x256)]{constructor(_0x5ac5f1,_0x1c96b0){const _0xa0b486=_0x104dc6;super(_0x5ac5f1,_0x1c96b0),_(this,'_color'),_(this,_0xa0b486(0x280),!0x1),_(this,_0xa0b486(0x1ad)),_(this,_0xa0b486(0x317),''),_(this,'_labelPosition',_0xa0b486(0x2da)),_(this,_0xa0b486(0x28b)),(_0x1c96b0&&this[_0xa0b486(0x285)](_0x1c96b0),this[_0xa0b486(0x23b)]['subscribeEvent'](()=>this[_0xa0b486(0x285)]({'hovered':!0x0})),this[_0xa0b486(0x231)]['subscribeEvent'](()=>this[_0xa0b486(0x285)]({'hovered':!0x1})));}[_0x104dc6(0x285)](_0xe819cf){const _0x3bcb9f=_0x104dc6;var _0xddb558,_0x27abba,_0x5d669f,_0x58a850,_0x350c5c,_0x170798;this[_0x3bcb9f(0x372)]=(_0xddb558=_0xe819cf['color'])!=null?_0xddb558:this[_0x3bcb9f(0x372)],this[_0x3bcb9f(0x280)]=(_0x27abba=_0xe819cf[_0x3bcb9f(0x2ef)])!=null?_0x27abba:this['_hovered'],this[_0x3bcb9f(0x1ad)]=(_0x5d669f=_0xe819cf[_0x3bcb9f(0x390)])!=null?_0x5d669f:this['_range'],this[_0x3bcb9f(0x317)]=(_0x58a850=_0xe819cf['name'])!=null?_0x58a850:this[_0x3bcb9f(0x317)],this[_0x3bcb9f(0x11c)]=(_0x350c5c=_0xe819cf[_0x3bcb9f(0x250)])!=null?_0x350c5c:this['_labelPosition'],this[_0x3bcb9f(0x28b)]=(_0x170798=_0xe819cf[_0x3bcb9f(0x249)])!=null?_0x170798:this[_0x3bcb9f(0x28b)],this[_0x3bcb9f(0x360)]({'width':_0xe819cf['width'],'height':_0xe819cf[_0x3bcb9f(0x2f5)]});}[_0x104dc6(0x19f)](_0xcc9803){const _0x573123=_0x104dc6,{row:_0x2e4bb3,column:_0x961d53}=_0xcc9803;if(_0x2e4bb3>=this['_range'][_0x573123(0x296)]&&_0x2e4bb3<=this['_range'][_0x573123(0x2d9)]&&_0x961d53>=this[_0x573123(0x1ad)][_0x573123(0x25e)]&&_0x961d53<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x573123(0x285)]({'hovered':!0x1});}[_0x104dc6(0x1dd)](_0x2b1f78){return!0x1;}['_draw'](_0xaf6619){const _0x1bdda0=_0x104dc6;C[_0x1bdda0(0x148)][_0x1bdda0(0x203)](_0xaf6619,{'width':this[_0x1bdda0(0x2aa)],'height':this[_0x1bdda0(0x2f5)],'strokeWidth':Pt,'stroke':this[_0x1bdda0(0x372)],'evented':!0x1,'fill':this[_0x1bdda0(0x28b)]}),this['_hovered']&&(_0xaf6619[_0x1bdda0(0x31c)](),_0xaf6619[_0x1bdda0(0x28c)](0x1,0x0,0x0,0x1,this[_0x1bdda0(0x2aa)],this[_0x1bdda0(0x11c)]===_0x1bdda0(0x19c)?0x0:-X),re[_0x1bdda0(0x203)](_0xaf6619,{'text':this['_name'],'color':this['_color']}),_0xaf6619[_0x1bdda0(0x352)]());}}var wt=Object[_0x104dc6(0x194)],yt=(_0x56b02e,_0x29467d,_0x40a4aa,_0x571a05)=>{const _0x14cc01=_0x104dc6;for(var _0x47ccb2=_0x571a05>0x1?void 0x0:_0x571a05?wt(_0x29467d,_0x40a4aa):_0x29467d,_0x29eedd=_0x56b02e[_0x14cc01(0x338)]-0x1,_0x2756e0;_0x29eedd>=0x0;_0x29eedd--)(_0x2756e0=_0x56b02e[_0x29eedd])&&(_0x47ccb2=_0x2756e0(_0x47ccb2)||_0x47ccb2);return _0x47ccb2;},ue=(_0x1ac077,_0x2dbb44)=>(_0x4637c4,_0x34ccc5)=>_0x2dbb44(_0x4637c4,_0x34ccc5,_0x1ac077);const $t=0x1389;let Ce=class extends a[_0x104dc6(0x320)]{constructor(_0x171457,_0x8f66f0,_0x1e8846,_0x1f6668){const _0x146b2b=_0x104dc6;super(),_(this,_0x146b2b(0xd3),new Set()),_(this,'_lastPointer',null),(this[_0x146b2b(0xd6)]=_0x171457,this[_0x146b2b(0x1ae)]=_0x8f66f0,this['_collabCursorController']=_0x1e8846,this[_0x146b2b(0x271)]=_0x1f6668,this['_init']());}[_0x104dc6(0x27e)](){const _0x36447b=_0x104dc6;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x36447b(0x368)]($[_0x36447b(0x295)](this[_0x36447b(0x1a4)]),$[_0x36447b(0x1fe)](_0x50329b=>{const _0x5ba363=_0x36447b;if(_0x50329b){const _0x43543d=_0x50329b[_0x5ba363(0x29a)];return I[_0x5ba363(0x32e)](this[_0x5ba363(0x1cb)]['getCollabCursors$'](this[_0x5ba363(0xd6)][_0x5ba363(0x22a)]),this['_themeService'][_0x5ba363(0x21f)])[_0x5ba363(0x368)]($[_0x5ba363(0x2ff)](([_0xbf3cce,_0x420eb1])=>{const _0x44ac63=_0x5ba363,_0x5dfba8=new Map();return _0xbf3cce[_0x44ac63(0x197)]((_0x33afea,_0x503042)=>{const _0x307606=_0x44ac63;if(_0x33afea[_0x307606(0x346)]===_0x43543d){const _0x241281={..._0x33afea};_0x241281[_0x307606(0x324)]=this['_themeService'][_0x307606(0x371)](_0x33afea['color']),_0x5dfba8[_0x307606(0x257)](_0x503042,_0x241281);}}),{'skeleton':_0x50329b,'cursors':_0x5dfba8};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x36447b(0x104)](({skeleton:_0x315fa5,cursors:_0x2ff1a8})=>{const _0xfd433a=_0x36447b;this[_0xfd433a(0x12b)](),_0x315fa5&&this[_0xfd433a(0x34c)](_0x315fa5,_0x2ff1a8);}),this[_0x36447b(0x1ae)][_0x36447b(0x19a)][_0x36447b(0x104)](_0x47fc32=>{const _0x3595eb=_0x36447b;if(_0x47fc32==null)return;const {skeleton:_0xb5dc72}=_0x47fc32,{scene:_0xc573f2}=this[_0x3595eb(0xd6)];_0xc573f2[_0x3595eb(0x37c)][_0x3595eb(0x28e)](a[_0x3595eb(0x151)](_0xed01d5=>{const _0x2c334b=_0x3595eb;var _0xd5e0b7,_0x4f7acd;const {offsetX:_0x3afdac,offsetY:_0x1a92e8}=_0xed01d5,{x:_0xce1f5c,y:_0x22ca48}=_0xc573f2[_0x2c334b(0x214)](C[_0x2c334b(0x1fb)][_0x2c334b(0x157)]([_0x3afdac,_0x1a92e8])),{scaleX:_0x175ce9,scaleY:_0xa16290}=_0xc573f2['getAncestorScale'](),_0x1ba3c6=_0xc573f2[_0x2c334b(0x282)](C[_0x2c334b(0x36f)]['VIEW_MAIN']),_0x5964b5=_0xc573f2[_0x2c334b(0x143)](C[_0x2c334b(0x1fb)][_0x2c334b(0x157)]([_0xce1f5c,_0x22ca48]),_0x1ba3c6),_0x3624ff=_0xb5dc72['getCellPositionByOffset'](_0x3afdac,_0x1a92e8,_0x175ce9,_0xa16290,_0x5964b5);((_0xd5e0b7=this[_0x2c334b(0x393)])==null?void 0x0:_0xd5e0b7[_0x2c334b(0x1d3)])===_0x3624ff[_0x2c334b(0x1d3)]&&((_0x4f7acd=this[_0x2c334b(0x393)])==null?void 0x0:_0x4f7acd[_0x2c334b(0x21d)])===_0x3624ff[_0x2c334b(0x21d)]||this[_0x2c334b(0xd3)][_0x2c334b(0x197)](_0x3a6190=>{const _0x5ab3da=_0x2c334b;_0x3a6190[_0x5ab3da(0x19f)](_0x3624ff);});},0x64));});}[_0x104dc6(0x34c)](_0x870651,_0x950b23){const _0x55f31e=_0x104dc6;var _0x48f194;const _0x53f70f=(_0x48f194=this[_0x55f31e(0x1ae)][_0x55f31e(0x39d)]())==null?void 0x0:_0x48f194['skeleton'];if(!_0x53f70f)return;const _0x27ee6a=this[_0x55f31e(0x12c)]();if(!_0x27ee6a)return;this[_0x55f31e(0xd3)][_0x55f31e(0x197)](_0x1e03af=>{_0x1e03af['makeDirty']();});const {scene:_0x2ec2b7}=_0x27ee6a,_0x10f0de=xt(Array[_0x55f31e(0x38f)](_0x950b23[_0x55f31e(0x2ac)]()))['map'](_0x5bfea5=>{const _0x167a5f=_0x55f31e,{color:_0x58e4c5,range:_0x58eeff,name:_0x10b088,selection:_0x46118e,sheetID:_0x45f5e1}=_0x5bfea5,{startColumn:_0x298f01,startRow:_0x4536ed,endColumn:_0x437586,endRow:_0x5a7722}=_0x58eeff,_0x35677a=J['getCoordByCell'](_0x4536ed,_0x298f01,_0x2ec2b7,_0x53f70f),_0x379262=J['getCoordByCell'](_0x5a7722,_0x437586,_0x2ec2b7,_0x53f70f),{columnHeaderHeightAndMarginTop:_0x523528}=_0x53f70f,{startX:_0x4d1a40,startY:_0x5744f3}=_0x35677a,{endX:_0x31b757,endY:_0x25f406}=_0x379262,_0x2bc6b6=_0x31b757-_0x4d1a40,_0x3dfd09=_0x25f406-_0x5744f3,_0x4c12be={'labelPosition':_0x5744f3-_0x523528>=X?_0x167a5f(0x2da):_0x167a5f(0x19c),'sheetID':_0x45f5e1,'range':_0x58eeff,'color':_0x58e4c5,'name':_0x10b088,'selection':_0x46118e,'left':_0x4d1a40,'top':_0x5744f3,'width':_0x2bc6b6,'height':_0x3dfd09,'evented':!0x1,'zIndex':$t};return new je(_0x10b088,_0x4c12be);});_0x2ec2b7[_0x55f31e(0x1c6)](_0x10f0de,At),this['_cursors']=new Set(_0x10f0de);}[_0x104dc6(0x12b)](){const _0x3793e4=_0x104dc6;var _0x36f6ef;(_0x36f6ef=this['_cursors'])==null||_0x36f6ef[_0x3793e4(0x197)](_0x39f0e5=>_0x39f0e5[_0x3793e4(0x16f)]());}['_getSheetObject'](){const _0x200907=_0x104dc6;return J[_0x200907(0x347)](this[_0x200907(0xd6)]['unit'],this[_0x200907(0xd6)]);}};Ce=yt([ue(0x1,a[_0x104dc6(0x359)](J[_0x104dc6(0x2fe)])),ue(0x2,a[_0x104dc6(0x359)](F)),ue(0x3,a[_0x104dc6(0x359)](a[_0x104dc6(0x177)]))],Ce);function xt(_0x285d0b){const _0x1b46a0=_0x104dc6,_0x206f11=new Map();return _0x285d0b[_0x1b46a0(0x197)](_0xb61d53=>{const _0x2f7a51=_0x1b46a0;if(_0x206f11[_0x2f7a51(0x235)](_0xb61d53[_0x2f7a51(0x164)])){const _0x271104=_0x206f11[_0x2f7a51(0x254)](_0xb61d53[_0x2f7a51(0x164)]);_0x271104[_0x2f7a51(0x334)]+=',\x20'+_0xb61d53[_0x2f7a51(0x334)];}else _0x206f11[_0x2f7a51(0x257)](_0xb61d53[_0x2f7a51(0x164)],_0xb61d53);}),Array[_0x1b46a0(0x38f)](_0x206f11[_0x1b46a0(0x2ac)]());}var Bt=Object[_0x104dc6(0x194)],Ft=(_0x3da858,_0x1bfb6a,_0x247975,_0x1e7b6f)=>{const _0x48e19f=_0x104dc6;for(var _0x20cb97=_0x1e7b6f>0x1?void 0x0:_0x1e7b6f?Bt(_0x1bfb6a,_0x247975):_0x1bfb6a,_0x1776cc=_0x3da858[_0x48e19f(0x338)]-0x1,_0x453e5b;_0x1776cc>=0x0;_0x1776cc--)(_0x453e5b=_0x3da858[_0x1776cc])&&(_0x20cb97=_0x453e5b(_0x20cb97)||_0x20cb97);return _0x20cb97;},y=(_0x52ec1c,_0x44e487)=>(_0x5bfb4a,_0x24705d)=>_0x44e487(_0x5bfb4a,_0x24705d,_0x52ec1c);let Z=class extends a[_0x104dc6(0x191)]{constructor(_0x58675f,_0x1676b8,_0xde1040,_0x438670,_0x537c62,_0x472e00){const _0xae5e8c=_0x104dc6;super(),this[_0xae5e8c(0x127)]=_0x58675f,this['_localCacheService']=_0x1676b8,this['_collaborationUIEventService']=_0xde1040,this['_messageService']=_0x438670,this['_notificationService']=_0x537c62,this[_0xae5e8c(0x2e2)]=_0x472e00,this[_0xae5e8c(0x1c5)](),this[_0xae5e8c(0x31d)]();}[_0x104dc6(0x1c5)](){const _0x459332=_0x104dc6;this[_0x459332(0x186)](this[_0x459332(0x127)]['registerBeforeClose'](()=>{const _0x3042e4=_0x459332;if(this[_0x3042e4(0x292)][_0x3042e4(0x167)][_0x3042e4(0x1f7)])return this[_0x3042e4(0x2e2)]['t'](_0x3042e4(0x2ca));}));}[_0x104dc6(0x31d)](){const _0x17499a=_0x104dc6;this[_0x17499a(0x186)](this[_0x17499a(0x2fa)][_0x17499a(0x114)]['subscribe'](_0x50347e=>{const _0x7bf40e=_0x17499a;_0x50347e['id']===u[_0x7bf40e(0x2a6)][_0x7bf40e(0x1b9)]&&this[_0x7bf40e(0x22d)][_0x7bf40e(0x121)]({'type':p['MessageType'][_0x7bf40e(0x18a)],'content':this[_0x7bf40e(0x2e2)]['t']('collaboration.single-unit.warning')}),_0x50347e['id']===u[_0x7bf40e(0x2a6)][_0x7bf40e(0xe6)]&&this['_messageService'][_0x7bf40e(0x121)]({'type':p[_0x7bf40e(0x2f4)]['Warning'],'content':this['_localeService']['t'](_0x7bf40e(0x323))}),_0x50347e['id']===u[_0x7bf40e(0x2a6)][_0x7bf40e(0x399)]&&this[_0x7bf40e(0x31b)][_0x7bf40e(0x121)]({'title':this['_localeService']['t'](_0x7bf40e(0x345)),'content':this[_0x7bf40e(0x2e2)]['t']('permission.content'),'type':_0x7bf40e(0x2b9),'duration':0x0}),_0x50347e['id']===u['CollaborationUIEventId'][_0x7bf40e(0x236)]&&this[_0x7bf40e(0x22d)][_0x7bf40e(0x121)]({'type':p[_0x7bf40e(0x2f4)][_0x7bf40e(0x29b)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x50347e['data']+')'}),_0x50347e['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x7bf40e(0x22d)][_0x7bf40e(0x121)]({'type':p[_0x7bf40e(0x2f4)][_0x7bf40e(0x18a)],'content':this['_localeService']['t'](_0x50347e[_0x7bf40e(0x183)]||'')}),_0x50347e['id']===u[_0x7bf40e(0x2a6)][_0x7bf40e(0x305)]&&this['_messageService'][_0x7bf40e(0x121)]({'type':p[_0x7bf40e(0x2f4)][_0x7bf40e(0x18a)],'content':this[_0x7bf40e(0x2e2)]['t']('session.will-retry')}),_0x50347e['id']===u[_0x7bf40e(0x2a6)][_0x7bf40e(0x106)]&&this['_messageService'][_0x7bf40e(0x121)]({'type':p[_0x7bf40e(0x2f4)][_0x7bf40e(0x29b)],'content':this[_0x7bf40e(0x2e2)]['t'](_0x7bf40e(0x144))}),_0x50347e['id']===u[_0x7bf40e(0x2a6)][_0x7bf40e(0x206)]&&this[_0x7bf40e(0x22d)][_0x7bf40e(0x121)]({'type':p['MessageType'][_0x7bf40e(0x29b)],'content':this[_0x7bf40e(0x2e2)]['t'](_0x7bf40e(0x24d))});}));}};Z=Ft([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x104dc6(0x21c)]),y(0x2,a[_0x104dc6(0x359)](u[_0x104dc6(0x375)])),y(0x3,O[_0x104dc6(0x386)]),y(0x4,O['INotificationService']),y(0x5,a[_0x104dc6(0x359)](a[_0x104dc6(0x2f2)]))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x2a4692,_0x1a9af7,_0x4cf9ed,_0x2b01ac)=>{for(var _0x1ba4e2=_0x2b01ac>0x1?void 0x0:_0x2b01ac?jt(_0x1a9af7,_0x4cf9ed):_0x1a9af7,_0x36e8bf=_0x2a4692['length']-0x1,_0x37533c;_0x36e8bf>=0x0;_0x36e8bf--)(_0x37533c=_0x2a4692[_0x36e8bf])&&(_0x1ba4e2=_0x37533c(_0x1ba4e2)||_0x1ba4e2);return _0x1ba4e2;},z=(_0x909514,_0x36aa7b)=>(_0x4121ac,_0x5b9d10)=>_0x36aa7b(_0x4121ac,_0x5b9d10,_0x909514);let Q=class extends a[_0x104dc6(0x191)]{constructor(_0x31fa13,_0x386f7e,_0x36119d,_0x1adb3e){const _0x59ea8d=_0x104dc6;super(),_(this,_0x59ea8d(0x1e3)),(this[_0x59ea8d(0x33c)]=_0x31fa13,this['_httpService']=_0x386f7e,this['_logService']=_0x36119d,this[_0x59ea8d(0x17d)]=_0x1adb3e,this[_0x59ea8d(0x27e)]());}[_0x104dc6(0x27e)](){const _0x579c51=_0x104dc6;this['_initWindowErrorListener'](),this[_0x579c51(0x284)](),this[_0x579c51(0x111)](),this['_initUserListener']();}[_0x104dc6(0x207)](){const _0x1bfbe1=_0x104dc6;this[_0x1bfbe1(0x186)](this[_0x1bfbe1(0x17d)][_0x1bfbe1(0x152)][_0x1bfbe1(0x104)](_0x1dc711=>{const _0x33ea05=_0x1bfbe1;this[_0x33ea05(0x1e3)]=_0x1dc711==null?void 0x0:_0x1dc711['memberID'];}));}['_initWindowErrorListener'](){const _0x52170f=_0x104dc6,_0x5b19c7=_0x4e16e0=>{const _0x3177a2=_0x39d4;var _0x123aa4;this[_0x3177a2(0x315)](_0x3177a2(0x2b9),_0x3177a2(0x33e)+_0x4e16e0[_0x3177a2(0x185)]+_0x3177a2(0x2e3)+_0x4e16e0['filename']+':'+_0x4e16e0[_0x3177a2(0x21e)]+':'+_0x4e16e0[_0x3177a2(0xce)]+'\x0a'+(((_0x123aa4=_0x4e16e0[_0x3177a2(0x2b9)])==null?void 0x0:_0x123aa4[_0x3177a2(0x325)])||''));};window['addEventListener'](_0x52170f(0x2b9),_0x5b19c7),this['disposeWithMe'](()=>{const _0x59495b=_0x52170f;window[_0x59495b(0x286)](_0x59495b(0x2b9),_0x5b19c7);});}[_0x104dc6(0x284)](){const _0x507bf2=_0x104dc6,_0x4035ad=_0x20b87d=>{const _0x116fc8=_0x39d4;this[_0x116fc8(0x315)](_0x116fc8(0x2b9),_0x116fc8(0x38a)+_0x20b87d[_0x116fc8(0xd9)]);};window['addEventListener'](_0x507bf2(0x10b),_0x4035ad),this['disposeWithMe'](()=>{const _0x45aad4=_0x507bf2;window[_0x45aad4(0x286)](_0x45aad4(0x10b),_0x4035ad);});}[_0x104dc6(0x111)](){const _0x566e49=_0x104dc6,_0x3514a4=this[_0x566e49(0x1af)][_0x566e49(0x2b9)][_0x566e49(0x187)](this[_0x566e49(0x1af)]);this[_0x566e49(0x1af)][_0x566e49(0x2b9)]=(..._0x299886)=>{const _0x52b9cd=_0x566e49,_0xd087a7=_0x299886[_0x52b9cd(0x2ff)](_0x24a851=>_0x24a851 instanceof Error?_0x24a851[_0x52b9cd(0x185)]+'\x0a'+_0x24a851[_0x52b9cd(0x325)]:String(_0x24a851))[_0x52b9cd(0x2ea)]('\x20');this['_uploadLog'](_0x52b9cd(0x2b9),_0x52b9cd(0x238)+_0xd087a7),_0x3514a4(..._0x299886);},this['disposeWithMe'](()=>{const _0xf7affb=_0x566e49;this[_0xf7affb(0x1af)][_0xf7affb(0x2b9)]=_0x3514a4;});}['_uploadLog'](_0x219c0e,_0x353281){const _0x3055ed=_0x104dc6;try{const _0x5992c8={'userId':this[_0x3055ed(0x1e3)],'logLabel':_0x219c0e,'content':_0x353281};this[_0x3055ed(0x234)][_0x3055ed(0x1eb)](_0x3055ed(0x15d),{'body':_0x5992c8})[_0x3055ed(0x1ef)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x104dc6(0x359)](a[_0x104dc6(0x14e)])),z(0x1,a['Inject'](x['HTTPService'])),z(0x2,a[_0x104dc6(0x32c)]),z(0x3,a[_0x104dc6(0x359)](u[_0x104dc6(0x389)]))],Q);const Yt=_0x104dc6(0x39c),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x48c7e7,_0x457a7c,_0x377fc3,_0x15c742)=>{const _0x55bfc0=_0x104dc6;for(var _0x50ade9=_0x15c742>0x1?void 0x0:_0x15c742?Ht(_0x457a7c,_0x377fc3):_0x457a7c,_0x5b105f=_0x48c7e7[_0x55bfc0(0x338)]-0x1,_0x92675b;_0x5b105f>=0x0;_0x5b105f--)(_0x92675b=_0x48c7e7[_0x5b105f])&&(_0x50ade9=_0x92675b(_0x50ade9)||_0x50ade9);return _0x50ade9;},Ae=(_0x552613,_0x11ff92)=>(_0x59a7e6,_0x28bc7)=>_0x11ff92(_0x59a7e6,_0x28bc7,_0x552613);let ee=class{constructor(_0x149aa8,_0x5dbd5c){const _0x429784=_0x104dc6;this['_transformService']=_0x149aa8,this[_0x429784(0xff)]=_0x5dbd5c;}['transformIMECache'](_0x2daf88){const _0x5a0fec=_0x104dc6;this['_transformUndoRedoStack'](_0x2daf88),this[_0x5a0fec(0x1b0)](_0x2daf88);}['transformRemoteChangeset'](_0x51e1b1){const _0x20cec8=_0x104dc6,{unitID:_0x5a1a82}=_0x51e1b1,_0x3bec3f=this[_0x20cec8(0xff)]['getRenderById'](_0x5a1a82)[_0x20cec8(0x155)](T[_0x20cec8(0x355)]),{redoCache:_0x395e2f}=_0x3bec3f[_0x20cec8(0x232)]();if(_0x395e2f[_0x20cec8(0x338)]===0x0)return _0x51e1b1;let _0x121324=a[_0x20cec8(0x23c)]['deepClone'](_0x51e1b1[_0x20cec8(0x244)][0x0]);for(let _0x28a4b5=0x0;_0x28a4b5<_0x395e2f[_0x20cec8(0x338)];_0x28a4b5++){const _0x52402c={'id':'doc.mutation.rich-text-editing','params':{..._0x395e2f[_0x28a4b5]}},_0x23bea1=this['_transformService'][_0x20cec8(0x1e2)](_0x121324,_0x52402c,!0x1);if(g[_0x20cec8(0x17e)](_0x23bea1))throw _0x23bea1[_0x20cec8(0x2b9)];_0x121324=_0x23bea1['m1Prime'];}return{...a[_0x20cec8(0x23c)][_0x20cec8(0xea)](_0x51e1b1),'mutations':[_0x121324]};}['_transformUndoRedoStack'](_0xb86a1d){const _0x21093d=_0x104dc6,{unitID:_0x36538e}=_0xb86a1d,_0x46e2ab=this[_0x21093d(0xff)][_0x21093d(0x380)](_0x36538e)[_0x21093d(0x155)](T[_0x21093d(0x355)]),{undoCache:_0xbe425a,redoCache:_0x1f3134}=_0x46e2ab['getUndoRedoMutationParamsCache']();if(_0xbe425a[_0x21093d(0x338)]===0x0||_0x1f3134[_0x21093d(0x338)]===0x0)return;const _0x57948e=[],_0x12ff73=[];let _0x51e206=a['Tools'][_0x21093d(0xea)](_0xb86a1d[_0x21093d(0x244)][0x0]),_0x1056f0=a['Tools'][_0x21093d(0xea)](_0xb86a1d[_0x21093d(0x244)][0x0]);for(let _0x52a9fe=_0xbe425a['length']-0x1;_0x52a9fe>=0x0;_0x52a9fe--){const _0x53a5c0={'id':_0x21093d(0x2c6),'params':{..._0xbe425a[_0x52a9fe]}},_0x4121fb={'id':'doc.mutation.rich-text-editing','params':{..._0x1f3134[_0x52a9fe]}},_0x58c3d3=this['_transformService'][_0x21093d(0x1e2)](_0x51e206,_0x53a5c0,!0x1),_0x25fc97=this[_0x21093d(0x35c)][_0x21093d(0x1e2)](_0x1056f0,_0x4121fb,!0x1);if(g[_0x21093d(0x17e)](_0x58c3d3))throw _0x58c3d3[_0x21093d(0x2b9)];if(g[_0x21093d(0x17e)](_0x25fc97))throw _0x25fc97[_0x21093d(0x2b9)];_0x57948e[_0x21093d(0x1b2)](_0x58c3d3[_0x21093d(0x221)][_0x21093d(0x147)]),_0x12ff73[_0x21093d(0x1b2)](_0x25fc97[_0x21093d(0x221)][_0x21093d(0x147)]),_0x51e206=_0x58c3d3[_0x21093d(0x302)],_0x1056f0=_0x25fc97['m1Prime'];}_0x46e2ab['setUndoRedoMutationParamsCache']({'undoCache':_0x57948e,'redoCache':_0x12ff73});}[_0x104dc6(0x1b0)](_0x185ea6){const _0x3a859e=_0x104dc6,{unitID:_0x455265}=_0x185ea6,_0x2fcc8c=this[_0x3a859e(0xff)][_0x3a859e(0x380)](_0x455265)[_0x3a859e(0x155)](T['DocIMEInputManagerService']),_0x5d284b=_0x2fcc8c[_0x3a859e(0x16a)]();if(_0x5d284b==null)return;const _0x4d7198=[{'id':_0x3a859e(0x2c6),'params':{'unitId':_0x185ea6[_0x3a859e(0x27b)],'actions':null,'textRanges':[_0x5d284b]}}],_0x48fbbc=this[_0x3a859e(0x35c)]['transformMutationsWithChangeset'](_0x185ea6,_0x4d7198);if(!g['isTransformMutationsWithChangesetSuccess'](_0x48fbbc))throw _0x48fbbc[_0x3a859e(0x2b9)];const _0x5d6fe3=_0x48fbbc[_0x3a859e(0x221)][0x0]['params'][_0x3a859e(0x2ab)];Array[_0x3a859e(0x15c)](_0x5d6fe3)&&_0x5d6fe3['length']&&_0x2fcc8c[_0x3a859e(0x135)](_0x5d6fe3[0x0]);}};ee=Wt([Ae(0x0,g[_0x104dc6(0x2bc)]),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object['getOwnPropertyDescriptor'],Gt=(_0x2c2159,_0x46a2be,_0x49b8c6,_0x1912bd)=>{const _0x96e4c2=_0x104dc6;for(var _0x1b02b8=_0x1912bd>0x1?void 0x0:_0x1912bd?Vt(_0x46a2be,_0x49b8c6):_0x46a2be,_0x56af63=_0x2c2159[_0x96e4c2(0x338)]-0x1,_0x32afd3;_0x56af63>=0x0;_0x56af63--)(_0x32afd3=_0x2c2159[_0x56af63])&&(_0x1b02b8=_0x32afd3(_0x1b02b8)||_0x1b02b8);return _0x1b02b8;},Ie=(_0x3c0c8b,_0x39c315)=>(_0x492fc4,_0x5bf044)=>_0x39c315(_0x492fc4,_0x5bf044,_0x3c0c8b);let te=class{constructor(_0x309117,_0x545688,_0x5a11dc){const _0x1dd927=_0x104dc6;this[_0x1dd927(0x33c)]=_0x309117,this[_0x1dd927(0x35c)]=_0x545688,this['_docStateChangeManagerService']=_0x5a11dc;}[_0x104dc6(0xf3)](_0x6cbbfb){const _0x531183=_0x104dc6;this[_0x531183(0x2e9)](_0x6cbbfb);}['transformRemoteChangeset'](_0x256c85){const _0x1ac9ba=_0x104dc6,{unitID:_0xcbd4b4}=_0x256c85,{collaboration:_0x1db45f}=this['_docStateChangeManagerService'][_0x1ac9ba(0x1f1)](_0xcbd4b4);if(_0x1db45f['length']===0x0)return _0x256c85;let _0x43c222=a[_0x1ac9ba(0x23c)][_0x1ac9ba(0xea)](_0x256c85[_0x1ac9ba(0x244)][0x0]);for(let _0x3e3ca3=0x0;_0x3e3ca3<_0x1db45f['length'];_0x3e3ca3++){const _0x4acd7b={'id':_0x1ac9ba(0x2c6),'params':{'unitId':_0x1db45f[_0x3e3ca3][_0x1ac9ba(0x22a)],..._0x1db45f[_0x3e3ca3][_0x1ac9ba(0x251)]}},_0x3a36f2=this[_0x1ac9ba(0x35c)][_0x1ac9ba(0x1e2)](_0x43c222,_0x4acd7b,!0x1);if(g[_0x1ac9ba(0x17e)](_0x3a36f2))throw _0x3a36f2[_0x1ac9ba(0x2b9)];_0x43c222=_0x3a36f2['m1Prime'];}return{...a['Tools']['deepClone'](_0x256c85),'mutations':[_0x43c222]};}[_0x104dc6(0x2e9)](_0x3a797c){const _0x53ab9d=_0x104dc6,{unitID:_0x124841}=_0x3a797c,{history:_0x46a61c,collaboration:_0x43c71a}=this['_docStateChangeManagerService']['getStateCache'](_0x124841);if(_0x46a61c[_0x53ab9d(0x338)]===0x0&&_0x43c71a['length']===0x0)return;const _0x12323a=[],_0x39e6b8=[];let _0x112f80=a[_0x53ab9d(0x23c)][_0x53ab9d(0xea)](_0x3a797c['mutations'][0x0]),_0x3454dc=a['Tools'][_0x53ab9d(0xea)](_0x3a797c[_0x53ab9d(0x244)][0x0]);for(let _0x5cce11=_0x46a61c[_0x53ab9d(0x338)]-0x1;_0x5cce11>=0x0;_0x5cce11--){const _0x170f05={'id':_0x53ab9d(0x2c6),'params':{'unitId':_0x46a61c[_0x5cce11]['unitId'],..._0x46a61c[_0x5cce11][_0x53ab9d(0x10f)]}},_0x432769={'id':_0x53ab9d(0x2c6),'params':{'unitId':_0x46a61c[_0x5cce11]['unitId'],..._0x46a61c[_0x5cce11][_0x53ab9d(0x251)]}},_0x5359dd=this[_0x53ab9d(0x35c)][_0x53ab9d(0x1e2)](_0x112f80,_0x170f05,!0x1),_0xd5ab2c=this[_0x53ab9d(0x35c)][_0x53ab9d(0x1e2)](_0x3454dc,_0x432769,!0x1);if(g[_0x53ab9d(0x17e)](_0x5359dd))throw _0x5359dd[_0x53ab9d(0x2b9)];if(g['isTransformMutationFailure'](_0xd5ab2c))throw _0xd5ab2c['error'];_0x12323a[_0x53ab9d(0x1b2)]({..._0x46a61c[_0x5cce11],'undoState':_0x5359dd[_0x53ab9d(0x221)]['params'],'redoState':_0xd5ab2c[_0x53ab9d(0x221)][_0x53ab9d(0x147)]}),_0x112f80=_0x5359dd['m1Prime'],_0x3454dc=_0xd5ab2c[_0x53ab9d(0x302)];}_0x112f80=a[_0x53ab9d(0x23c)][_0x53ab9d(0xea)](_0x3a797c[_0x53ab9d(0x244)][0x0]),_0x3454dc=a[_0x53ab9d(0x23c)][_0x53ab9d(0xea)](_0x3a797c[_0x53ab9d(0x244)][0x0]);for(let _0x12594f=_0x43c71a[_0x53ab9d(0x338)]-0x1;_0x12594f>=0x0;_0x12594f--){const _0x56c082={'id':_0x53ab9d(0x2c6),'params':{'unitId':_0x43c71a[_0x12594f][_0x53ab9d(0x22a)],..._0x43c71a[_0x12594f][_0x53ab9d(0x10f)]}},_0x112e17={'id':_0x53ab9d(0x2c6),'params':{'unitId':_0x43c71a[_0x12594f][_0x53ab9d(0x22a)],..._0x43c71a[_0x12594f][_0x53ab9d(0x251)]}},_0x3257d0=this['_transformService']['transformMutation'](_0x112f80,_0x56c082,!0x1),_0x5dc038=this[_0x53ab9d(0x35c)]['transformMutation'](_0x3454dc,_0x112e17,!0x1);if(g[_0x53ab9d(0x17e)](_0x3257d0))throw _0x3257d0[_0x53ab9d(0x2b9)];if(g['isTransformMutationFailure'](_0x5dc038))throw _0x5dc038[_0x53ab9d(0x2b9)];_0x39e6b8[_0x53ab9d(0x1b2)]({..._0x43c71a[_0x12594f],'undoState':_0x3257d0['m2Prime']['params'],'redoState':_0x5dc038[_0x53ab9d(0x221)][_0x53ab9d(0x147)]}),_0x112f80=_0x3257d0['m1Prime'],_0x3454dc=_0x5dc038[_0x53ab9d(0x302)];}this[_0x53ab9d(0x2af)]['setStateCache'](_0x124841,{'history':_0x12323a,'collaboration':_0x39e6b8});}};te=Gt([Ie(0x0,a[_0x104dc6(0x359)](a[_0x104dc6(0x14e)])),Ie(0x1,g[_0x104dc6(0x2bc)]),Ie(0x2,a[_0x104dc6(0x359)](T[_0x104dc6(0x11a)]))],te);var Xt=Object[_0x104dc6(0x194)],Kt=(_0x1863ef,_0x44e6ec,_0x5decfc,_0x14d878)=>{const _0x1e5a98=_0x104dc6;for(var _0x2c2c0b=_0x14d878>0x1?void 0x0:_0x14d878?Xt(_0x44e6ec,_0x5decfc):_0x44e6ec,_0x6630dd=_0x1863ef[_0x1e5a98(0x338)]-0x1,_0x199ea5;_0x6630dd>=0x0;_0x6630dd--)(_0x199ea5=_0x1863ef[_0x6630dd])&&(_0x2c2c0b=_0x199ea5(_0x2c2c0b)||_0x2c2c0b);return _0x2c2c0b;},Pe=(_0x35e822,_0x4eb1a9)=>(_0x21b073,_0x23455f)=>_0x4eb1a9(_0x21b073,_0x23455f,_0x35e822);let se=class{constructor(_0x38d4f0,_0x44a0e5){const _0x3dcd8f=_0x104dc6;this[_0x3dcd8f(0x33c)]=_0x38d4f0,this[_0x3dcd8f(0x35c)]=_0x44a0e5;}[_0x104dc6(0x391)](_0x419293){const _0x54d7d4=_0x104dc6;var _0x2791e7;const _0x1dddec=this[_0x54d7d4(0x33c)][_0x54d7d4(0x254)](V[_0x54d7d4(0x14d)]),_0x4c6806=(_0x2791e7=_0x1dddec[_0x54d7d4(0x34f)]())!=null?_0x2791e7:[];if(_0x4c6806[_0x54d7d4(0x338)]===0x0)return;const _0x1f4bcd=_0x419293[_0x54d7d4(0x27b)],_0x597831=[{'id':_0x54d7d4(0x2c6),'params':{'unitId':_0x1f4bcd,'actions':null,'textRanges':_0x4c6806}}],_0x423355=this[_0x54d7d4(0x35c)][_0x54d7d4(0x25a)](_0x419293,_0x597831);if(!g[_0x54d7d4(0x294)](_0x423355))throw _0x423355['error'];const _0x2fafbd=_0x423355[_0x54d7d4(0x221)][0x0][_0x54d7d4(0x147)][_0x54d7d4(0x2ab)];Array['isArray'](_0x2fafbd)&&_0x2fafbd['length']&&_0x1dddec[_0x54d7d4(0x1ea)](_0x2fafbd,{'unitId':_0x1f4bcd,'subUnitId':_0x1f4bcd},!0x1);}};se=Kt([Pe(0x0,a[_0x104dc6(0x359)](a[_0x104dc6(0x14e)])),Pe(0x1,g['ITransformService'])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x4fb9d1,_0x37b6c1,_0x2ea1a2,_0x42e356)=>{const _0x6ec817=_0x104dc6;for(var _0x4c9fbf=_0x42e356>0x1?void 0x0:_0x42e356?qt(_0x37b6c1,_0x2ea1a2):_0x37b6c1,_0x7933ae=_0x4fb9d1[_0x6ec817(0x338)]-0x1,_0x4140c4;_0x7933ae>=0x0;_0x7933ae--)(_0x4140c4=_0x4fb9d1[_0x7933ae])&&(_0x4c9fbf=_0x4140c4(_0x4c9fbf)||_0x4c9fbf);return _0x4c9fbf;},N=(_0x1d5694,_0xd02475)=>(_0x24f274,_0xf487af)=>_0xd02475(_0x24f274,_0xf487af,_0x1d5694);let ie=class extends a['Disposable']{constructor(_0x5e1fb8,_0xbc16be,_0x5501e4,_0x24dc78,_0x1923f1,_0x1bd8fa,_0x166c1f,_0x337fe7){const _0xc2ca50=_0x104dc6;super(),_(this,_0xc2ca50(0x20c),new I['BehaviorSubject'](u[_0xc2ca50(0x1bc)][_0xc2ca50(0x137)])),(this[_0xc2ca50(0x2af)]=_0x5e1fb8,this[_0xc2ca50(0x2e1)]=_0xbc16be,this['_docTransformIMECacheService']=_0x5501e4,this['_docTransformStateCacheService']=_0x24dc78,this['_docTransformSelectionsService']=_0x1923f1,this[_0xc2ca50(0x225)]=_0x1bd8fa,this[_0xc2ca50(0x22d)]=_0x166c1f,this['_localeService']=_0x337fe7,this[_0xc2ca50(0x223)]());}['_initEntityListener'](){const _0x451a34=_0x104dc6;this[_0x451a34(0x186)](this[_0x451a34(0x2e1)][_0x451a34(0x264)][_0x451a34(0x104)](_0x1b92d7=>{const _0x52619b=_0x451a34,_0x5e5f67=this[_0x52619b(0x2af)][_0x52619b(0x2ae)][_0x52619b(0x104)](_0x303536=>{const _0x270537=_0x52619b;if(_0x303536==null)return;const {unitId:_0x49780e,redoState:_0x2b2c12,commandId:_0x1456cd}=_0x303536;if(_0x49780e!==_0x1b92d7[_0x270537(0x27b)])return;const _0x20e9a9={'id':_0x1456cd,'type':a[_0x270537(0x308)]['MUTATION'],'params':{'unitId':_0x49780e,'actions':_0x2b2c12[_0x270537(0x2dc)],'textRanges':null}};_0x1b92d7[_0x270537(0x30c)](_0x20e9a9);});if(_0x1b92d7[_0x52619b(0x186)](_0x5e5f67),_0x1b92d7 instanceof u[_0x52619b(0x283)]){const _0x428fe4={'onTransformIME':_0x5de19f=>this[_0x52619b(0x38c)][_0x52619b(0x1f2)](_0x5de19f),'onTransformState':_0x1d6a42=>this[_0x52619b(0x1cd)]['transformStateCache'](_0x1d6a42),'onTransformSelections':_0x321cd9=>this[_0x52619b(0x314)][_0x52619b(0x391)](_0x321cd9),'onSyncEditingCollabCursor':_0x435baa=>this['_docSyncEditingCollabCursorService'][_0x52619b(0x25c)](_0x435baa),'onTransformRemoteChangesetByIMECache':_0x28450a=>this[_0x52619b(0x38c)][_0x52619b(0x2dd)](_0x28450a),'onTransformRemoteChangesetByStateCache':_0x227746=>this[_0x52619b(0x1cd)][_0x52619b(0x2dd)](_0x227746)};_0x1b92d7[_0x52619b(0x2f6)](_0x428fe4);}}));}};ie=zt([N(0x0,a[_0x104dc6(0x359)](T[_0x104dc6(0x11a)])),N(0x1,a['Inject'](u[_0x104dc6(0x376)])),N(0x2,a[_0x104dc6(0x359)](ee)),N(0x3,a[_0x104dc6(0x359)](te)),N(0x4,a[_0x104dc6(0x359)](se)),N(0x5,a[_0x104dc6(0x359)](be)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x104dc6(0x2f2)]))],ie);var G=(_0x2a12ac=>(_0x2a12ac[_0x2a12ac[_0x104dc6(0x188)]=0x0]=_0x104dc6(0x188),_0x2a12ac[_0x2a12ac['OK']=0x1]='OK',_0x2a12ac[_0x2a12ac['INTERNAL_ERROR']=0x2]=_0x104dc6(0x1e0),_0x2a12ac[_0x2a12ac[_0x104dc6(0x399)]=0x3]=_0x104dc6(0x399),_0x2a12ac[_0x2a12ac[_0x104dc6(0x1ab)]=0x4]=_0x104dc6(0x1ab),_0x2a12ac[_0x2a12ac[_0x104dc6(0x276)]=0x5]=_0x104dc6(0x276),_0x2a12ac[_0x2a12ac[_0x104dc6(0x289)]=0x6]=_0x104dc6(0x289),_0x2a12ac[_0x2a12ac[_0x104dc6(0x115)]=0x7]=_0x104dc6(0x115),_0x2a12ac[_0x2a12ac[_0x104dc6(0x1a8)]=0x8]=_0x104dc6(0x1a8),_0x2a12ac[_0x2a12ac[_0x104dc6(0x2b2)]=0x9]='COMPLETION_FINISHED',_0x2a12ac[_0x2a12ac[_0x104dc6(0x196)]=0xa]=_0x104dc6(0x196),_0x2a12ac[_0x2a12ac[_0x104dc6(0x361)]=0xb]=_0x104dc6(0x361),_0x2a12ac[_0x2a12ac[_0x104dc6(0x36c)]=0xc]=_0x104dc6(0x36c),_0x2a12ac[_0x2a12ac[_0x104dc6(0x24a)]=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x2a12ac[_0x2a12ac[_0x104dc6(0x288)]=0xe]=_0x104dc6(0x288),_0x2a12ac[_0x2a12ac[_0x104dc6(0x216)]=0xf]=_0x104dc6(0x216),_0x2a12ac[_0x2a12ac[_0x104dc6(0xe0)]=0x10]=_0x104dc6(0xe0),_0x2a12ac[_0x2a12ac[_0x104dc6(0xf5)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x2a12ac[_0x2a12ac['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x2a12ac[_0x2a12ac['USER_NOT_FOUND']=0xc9]='USER_NOT_FOUND',_0x2a12ac[_0x2a12ac['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x2a12ac[_0x2a12ac[_0x104dc6(0x367)]=0x1389]=_0x104dc6(0x367),_0x2a12ac[_0x2a12ac[_0x104dc6(0x38b)]=0x1771]=_0x104dc6(0x38b),_0x2a12ac[_0x2a12ac[_0x104dc6(0x168)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2a12ac[_0x2a12ac[_0x104dc6(0x1a6)]=0x1773]=_0x104dc6(0x1a6),_0x2a12ac[_0x2a12ac[_0x104dc6(0x2b0)]=0x1b59]=_0x104dc6(0x2b0),_0x2a12ac[_0x2a12ac[_0x104dc6(0xf6)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2a12ac[_0x2a12ac[_0x104dc6(0x181)]=0x1b5b]=_0x104dc6(0x181),_0x2a12ac[_0x2a12ac['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x104dc6(0x370),_0x2a12ac[_0x2a12ac[_0x104dc6(0x133)]=0x1b5d]=_0x104dc6(0x133),_0x2a12ac[_0x2a12ac[_0x104dc6(0x33f)]=0x1f41]=_0x104dc6(0x33f),_0x2a12ac[_0x2a12ac[_0x104dc6(0xd8)]=0x2329]=_0x104dc6(0xd8),_0x2a12ac[_0x2a12ac[_0x104dc6(0xdb)]=0x232a]=_0x104dc6(0xdb),_0x2a12ac[_0x2a12ac[_0x104dc6(0x2f8)]=0x232b]=_0x104dc6(0x2f8),_0x2a12ac[_0x2a12ac[_0x104dc6(0xf9)]=0x232c]=_0x104dc6(0xf9),_0x2a12ac[_0x2a12ac[_0x104dc6(0x316)]=0x232d]=_0x104dc6(0x316),_0x2a12ac[_0x2a12ac[_0x104dc6(0x217)]=0x2711]=_0x104dc6(0x217),_0x2a12ac[_0x2a12ac['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x104dc6(0x1d7),_0x2a12ac[_0x2a12ac['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2a12ac[_0x2a12ac[_0x104dc6(0x103)]=0x2714]=_0x104dc6(0x103),_0x2a12ac[_0x2a12ac['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x104dc6(0xcf),_0x2a12ac[_0x2a12ac[_0x104dc6(0x2d6)]=0x271b]=_0x104dc6(0x2d6),_0x2a12ac[_0x2a12ac[_0x104dc6(0xe7)]=0x271c]=_0x104dc6(0xe7),_0x2a12ac[_0x2a12ac[_0x104dc6(0x15e)]=0x271d]=_0x104dc6(0x15e),_0x2a12ac[_0x2a12ac[_0x104dc6(0x2b4)]=0x271e]=_0x104dc6(0x2b4),_0x2a12ac[_0x2a12ac[_0x104dc6(0x1b8)]=0x271f]=_0x104dc6(0x1b8),_0x2a12ac[_0x2a12ac[_0x104dc6(0x385)]=0x2720]=_0x104dc6(0x385),_0x2a12ac[_0x2a12ac[_0x104dc6(0xf7)]=0x2af9]=_0x104dc6(0xf7),_0x2a12ac[_0x2a12ac[_0x104dc6(0x34a)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x2a12ac[_0x2a12ac[_0x104dc6(0x2cc)]=0x2ee2]='INVALID_INVITE_CODE',_0x2a12ac[_0x2a12ac['INVITE_CODE_REQUIRED']=0x2ee3]=_0x104dc6(0x212),_0x2a12ac[_0x2a12ac[_0x104dc6(0xe2)]=0x2ee4]=_0x104dc6(0xe2),_0x2a12ac[_0x2a12ac[_0x104dc6(0x242)]=0x2ee5]=_0x104dc6(0x242),_0x2a12ac[_0x2a12ac[_0x104dc6(0x318)]=0x32c9]=_0x104dc6(0x318),_0x2a12ac[_0x2a12ac[_0x104dc6(0x287)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x2a12ac[_0x2a12ac[_0x104dc6(0x19d)]=0x32cb]=_0x104dc6(0x19d),_0x2a12ac[_0x2a12ac[_0x104dc6(0x1be)]=0x36b1]=_0x104dc6(0x1be),_0x2a12ac[_0x2a12ac['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x104dc6(0x13d),_0x2a12ac[_0x2a12ac['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x104dc6(0x171),_0x2a12ac[_0x2a12ac['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x104dc6(0x2b8),_0x2a12ac[_0x2a12ac[_0x104dc6(0x392)]=0x36b5]=_0x104dc6(0x392),_0x2a12ac[_0x2a12ac['ENTITLE_COUPON_EXPIRED']=0x36b6]=_0x104dc6(0x260),_0x2a12ac[_0x2a12ac['ENTITLE_COUPON_USED_UP']=0x36b7]=_0x104dc6(0x2fb),_0x2a12ac[_0x2a12ac[_0x104dc6(0x130)]=0x36b8]=_0x104dc6(0x130),_0x2a12ac[_0x2a12ac[_0x104dc6(0x126)]=0x3715]=_0x104dc6(0x126),_0x2a12ac[_0x2a12ac[_0x104dc6(0x2e4)]=0x3716]=_0x104dc6(0x2e4),_0x2a12ac[_0x2a12ac[_0x104dc6(0x2cb)]=0x3717]=_0x104dc6(0x2cb),_0x2a12ac[_0x2a12ac[_0x104dc6(0x198)]=0x37dd]=_0x104dc6(0x198),_0x2a12ac[_0x2a12ac['REDEMPTION_INVALID_CODE']=0x3a99]=_0x104dc6(0x31e),_0x2a12ac[_0x2a12ac['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x104dc6(0x248),_0x2a12ac[_0x2a12ac['REDEMPTION_CODE_FULLY_REDEEMED']=0x3a9b]=_0x104dc6(0x319),_0x2a12ac[_0x2a12ac['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x104dc6(0x247),_0x2a12ac[_0x2a12ac[_0x104dc6(0x266)]=0x3a9d]=_0x104dc6(0x266),_0x2a12ac[_0x2a12ac[_0x104dc6(0x12f)]=0x3a9e]=_0x104dc6(0x12f),_0x2a12ac[_0x2a12ac[_0x104dc6(0x1cc)]=0x3a9f]=_0x104dc6(0x1cc),_0x2a12ac[_0x2a12ac[_0x104dc6(0x192)]=0x3e81]=_0x104dc6(0x192),_0x2a12ac[_0x2a12ac[_0x104dc6(0x269)]=-0x1]=_0x104dc6(0x269),_0x2a12ac))(G||{});function Jt(_0x4e3923){const _0x1418c8=_0x104dc6;var _0x5cac85,_0x2eec7d;const _0x1be4da=(_0x5cac85=_0x4e3923[_0x1418c8(0x18d)])==null?void 0x0:_0x5cac85[_0x1418c8(0x35d)],_0x4fcffe=((_0x2eec7d=_0x4e3923[_0x1418c8(0x18d)])==null?void 0x0:_0x2eec7d[_0x1418c8(0x2a0)])||0x0;return _0x1be4da===B['FormulaExecuteStageType']['START_CALCULATION']&&_0x4fcffe>0x0;}function Zt(_0x4ed33b){const _0x540ec8=_0x104dc6;return _0x4ed33b['functionsExecutedState']===B[_0x540ec8(0x1ff)]['SUCCESS'];}var Qt=Object[_0x104dc6(0x194)],es=(_0x3241c2,_0x163ad5,_0x4079c9,_0x45ff26)=>{const _0x2a1755=_0x104dc6;for(var _0x2e5def=_0x45ff26>0x1?void 0x0:_0x45ff26?Qt(_0x163ad5,_0x4079c9):_0x163ad5,_0xd0d4bc=_0x3241c2[_0x2a1755(0x338)]-0x1,_0xbbf545;_0xd0d4bc>=0x0;_0xd0d4bc--)(_0xbbf545=_0x3241c2[_0xd0d4bc])&&(_0x2e5def=_0xbbf545(_0x2e5def)||_0x2e5def);return _0x2e5def;},L=(_0x5cbff2,_0x25ecfc)=>(_0xc964f0,_0x118c06)=>_0x25ecfc(_0xc964f0,_0x118c06,_0x5cbff2);const ts=_0x104dc6(0x1d8),ss=_0x104dc6(0x246),is=_0x104dc6(0x2fd);let ne=class extends a[_0x104dc6(0x191)]{constructor(_0x3152d6,_0x53d5f8,_0xc77a8d,_0x163880,_0x15d84f,_0x2aa4a5,_0x7366e2){const _0x3df241=_0x104dc6;super(),_(this,'_pollingInterval',null),_(this,_0x3df241(0x18e),0x0),_(this,'_currentUsage',0x0),_(this,_0x3df241(0x312),[]),_(this,'_lastResponseTimestamp',0x0),(this[_0x3df241(0x22d)]=_0x3152d6,this[_0x3df241(0x2ce)]=_0x53d5f8,this[_0x3df241(0x253)]=_0xc77a8d,this[_0x3df241(0x234)]=_0x163880,this[_0x3df241(0x297)]=_0x15d84f,this['_logService']=_0x2aa4a5,this[_0x3df241(0x2e2)]=_0x7366e2,this[_0x3df241(0x2db)]());}[_0x104dc6(0x2db)](){const _0x4493c2=_0x104dc6;this[_0x4493c2(0x186)](this[_0x4493c2(0x2ce)]['beforeCommandExecuted']((_0x41ced2,_0x545d0a)=>{const _0x31938f=_0x4493c2;var _0x1b65eb;if(_0x41ced2['id']!==B[_0x31938f(0x2cd)]['id'])return;const _0xe95163=_0x41ced2[_0x31938f(0x147)];if(!this['_hasFormulaInDirtyRanges']((_0x1b65eb=_0xe95163[_0x31938f(0x35b)])!=null?_0x1b65eb:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x31938f(0x13c)](_0x41ced2,_0x545d0a),this[_0x31938f(0x132)](),new a[(_0x31938f(0x1d9))]();})),this[_0x4493c2(0x186)](this[_0x4493c2(0x2ce)]['onCommandExecuted']((_0x29f7c5,_0x439f77)=>{const _0x52c818=_0x4493c2;if(_0x29f7c5['id']!==B[_0x52c818(0x398)]['id'])return;const _0x32ef93=_0x29f7c5[_0x52c818(0x147)];if(Jt(_0x32ef93)){const _0x3b7286=a[_0x52c818(0x116)]();this[_0x52c818(0x312)][_0x52c818(0x219)](_0x3b7286),this[_0x52c818(0x215)](_0x3b7286);}else{if(Zt(_0x32ef93)&&this['_taskIds'][_0x52c818(0x338)]>0x0){const _0x44d0ad=this[_0x52c818(0x312)][_0x52c818(0x13f)]();this[_0x52c818(0x32a)](_0x44d0ad);}}}));}[_0x104dc6(0x16f)](){const _0x33b934=_0x104dc6;super[_0x33b934(0x16f)](),this[_0x33b934(0x298)](),this[_0x33b934(0x312)]=[],this[_0x33b934(0x300)]=0x0,this[_0x33b934(0x18e)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x104dc6(0x13c)](_0x25f495,_0x37269a){const _0x2d15f8=_0x104dc6;for(let _0x126638=0x0;_0x126638<0x1e;_0x126638++)try{if(await this[_0x2d15f8(0x202)](),this[_0x2d15f8(0x261)]()){this[_0x2d15f8(0x145)](_0x25f495,_0x37269a),this[_0x2d15f8(0x22d)][_0x2d15f8(0x121)]({'content':this['_localeService']['t']('formula.calculation.started'),'type':p[_0x2d15f8(0x2f4)]['Success']});return;}await new Promise(_0x1c6e5b=>{const _0x3c6b66=_0x2d15f8;this[_0x3c6b66(0x30d)]=window[_0x3c6b66(0x20e)](_0x1c6e5b,0x3e8);});}catch(_0x2d3b82){this[_0x2d15f8(0x1af)][_0x2d15f8(0x2b9)](_0x2d3b82);}this[_0x2d15f8(0x22d)][_0x2d15f8(0x121)]({'content':this[_0x2d15f8(0x2e2)]['t'](_0x2d15f8(0x136)),'type':p['MessageType'][_0x2d15f8(0x29b)]});}[_0x104dc6(0x145)](_0x5e5434,_0x3ce241){const _0x21a192=_0x104dc6;try{this[_0x21a192(0x2ce)]['executeCommand'](_0x5e5434['id'],_0x5e5434[_0x21a192(0x147)],_0x3ce241);}catch(_0x1d5ef1){this[_0x21a192(0x1af)][_0x21a192(0x2b9)](_0x1d5ef1);}}[_0x104dc6(0x20b)](_0x2043f5,_0x335d6a){const _0x38c427=_0x104dc6;_0x335d6a<this[_0x38c427(0x1ba)]||(this['_lastResponseTimestamp']=_0x335d6a,this['_maxFormulaLimit']=Number[_0x38c427(0x176)](_0x2043f5[_0x38c427(0x30a)]),this[_0x38c427(0x300)]=Number[_0x38c427(0x176)](_0x2043f5[_0x38c427(0x201)]));}async[_0x104dc6(0x215)](_0x303b58){const _0x169bee=_0x104dc6;var _0x3ff267,_0x6c8165;const _0x377d0a=Date[_0x169bee(0x33d)]();try{const _0xa8cdcb=((_0x3ff267=this[_0x169bee(0x253)][_0x169bee(0x149)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3ff267['startFormulaLimitUrl'])||ss,_0x32dd4f=(await this[_0x169bee(0x234)][_0x169bee(0x1eb)](_0xa8cdcb,{'body':JSON[_0x169bee(0x2b7)]({'taskId':_0x303b58})}))['body'];if(((_0x6c8165=_0x32dd4f['error'])==null?void 0x0:_0x6c8165[_0x169bee(0x21a)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x32dd4f[_0x169bee(0xec)],_0x377d0a);}catch(_0x5ca2fd){this[_0x169bee(0x1af)][_0x169bee(0x2b9)](_0x5ca2fd);}}async[_0x104dc6(0x202)](_0x30c986){const _0x120f1d=_0x104dc6;var _0x21fe6d,_0x402832;const _0x224215=Date[_0x120f1d(0x33d)]();try{const _0x17c99b=((_0x21fe6d=this['_configService'][_0x120f1d(0x149)](u[_0x120f1d(0x117)]))==null?void 0x0:_0x21fe6d[_0x120f1d(0x2d4)])||ts,_0x149fff=_0x30c986?_0x17c99b+'?taskId='+encodeURIComponent(_0x30c986):_0x17c99b,_0x22db1b=(await this['_httpService'][_0x120f1d(0x254)](_0x149fff))[_0x120f1d(0x32b)];if(((_0x402832=_0x22db1b[_0x120f1d(0x2b9)])==null?void 0x0:_0x402832[_0x120f1d(0x21a)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x22db1b['limitInfo'],_0x224215);}catch(_0x364783){this[_0x120f1d(0x1af)][_0x120f1d(0x2b9)](_0x364783);}}async['_releaseCalculationLimit'](_0x17a4ca){const _0x5b38eb=_0x104dc6;var _0x2e277e,_0x1e1f71;const _0x249536=Date[_0x5b38eb(0x33d)]();try{const _0x5c2305=((_0x2e277e=this[_0x5b38eb(0x253)][_0x5b38eb(0x149)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x2e277e['releaseFormulaLimitUrl'])||is,_0x38a7cc=(await this[_0x5b38eb(0x234)][_0x5b38eb(0x1eb)](_0x5c2305,{'body':JSON[_0x5b38eb(0x2b7)]({'taskId':_0x17a4ca})}))[_0x5b38eb(0x32b)];if(((_0x1e1f71=_0x38a7cc[_0x5b38eb(0x2b9)])==null?void 0x0:_0x1e1f71[_0x5b38eb(0x21a)])!==G['OK'])return;this[_0x5b38eb(0x20b)](_0x38a7cc[_0x5b38eb(0xec)],_0x249536);}catch(_0x518516){this[_0x5b38eb(0x1af)][_0x5b38eb(0x2b9)](_0x518516);}}[_0x104dc6(0x261)](){const _0x269933=_0x104dc6;return this[_0x269933(0x18e)]===0x0?!0x0:this[_0x269933(0x18e)]-this[_0x269933(0x300)]>0x0;}['_clearPolling'](){const _0x12b116=_0x104dc6;this[_0x12b116(0x30d)]&&(clearTimeout(this['_pollingInterval']),this[_0x12b116(0x30d)]=null);}[_0x104dc6(0x132)](){const _0x533415=_0x104dc6;this[_0x533415(0x22d)][_0x533415(0x121)]({'content':this[_0x533415(0x2e2)]['t']('formula.calculation.waiting'),'type':p[_0x533415(0x2f4)][_0x533415(0x101)]});}['_hasFormulaInDirtyRanges'](_0x341465){const _0x5b5a68=_0x104dc6;for(const _0x2bc81f of _0x341465){const {unitId:_0x4cebae,sheetId:_0x2274e1,range:_0x69e041}=_0x2bc81f,_0x579762=this['_univerInstanceService'][_0x5b5a68(0x17f)](_0x4cebae);if(!_0x579762)continue;const _0x3d1305=_0x579762[_0x5b5a68(0x1bb)](_0x2274e1);if(!_0x3d1305)continue;const _0x12e9c2=_0x3d1305[_0x5b5a68(0x160)]();for(let _0x877fd5=_0x69e041[_0x5b5a68(0x296)];_0x877fd5<=_0x69e041[_0x5b5a68(0x2d9)];_0x877fd5++)for(let _0x193c34=_0x69e041['startColumn'];_0x193c34<=_0x69e041[_0x5b5a68(0x10d)];_0x193c34++){const _0x114ea8=_0x12e9c2['getValue'](_0x877fd5,_0x193c34);if(_0x114ea8&&(a['isFormulaString'](_0x114ea8['f'])||a[_0x5b5a68(0xd7)](_0x114ea8['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x104dc6(0x359)](O[_0x104dc6(0x386)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x104dc6(0x359)](x[_0x104dc6(0x252)])),L(0x4,a[_0x104dc6(0x2c8)]),L(0x5,a[_0x104dc6(0x32c)]),L(0x6,a[_0x104dc6(0x359)](a['LocaleService']))],ne);function _0x326a(){const _0xb1231=['replaceDocRanges','post','DocSkeletonManagerService','_cursor','getRangePointData','catch','next','getStateCache','transformIMECache','runOnServer','pushState','InsertRangeMoveDownCommandId','url(#off-line-icon_clip0_910_343)','size','Subject','NO_OTHER_CLIENTS_EDITING','InsertRangeMoveRightCommandId','Vector2','activeSheet$','_roomMembers$','switchMap','FormulaExecutedStateType','TEXT_RANGE_LAYER_INDEX','currentUsage','_getFormulaLimitStatus','drawWith','_getMergeRange','findNodePositionByCharIndex','SUBMIT_CHANGESET_TIMEOUT','_initUserListener','clsx','distinctUntilChanged','_colorAssignService','_setFormulaLimitStatus','_status$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','setTimeout','translate(.97)','568ImGlQV','_entityInit$','INVITE_CODE_REQUIRED','setParam','getRelativeToViewportCoord','_startCalculationLimit','AUTHORIZE_CODE_ILLEGAL','YUUMI_UNABLE_LOAD_URL','enableLocalCache','push','code','getOffsetConfig','ILocalCacheService','row','lineno','currentTheme$','_entities','m2Prime','_anchorDot','_initEntityListener','font','_docSyncEditingCollabCursorService','url(#$1','_localStorageService','_assignedColors','reconnect','unitId','debug','executeCommand','_messageService','RemoteUniscriptService','getItem','3543344ZfDOSI','onPointerLeave$','getUndoRedoMutationParamsCache','getMember','_httpService','has','CONFLICT','_drawRectRange','[LogService\x20Error]:\x20','getFocusedUnit','_urlService','onPointerEnter$','Tools','DataLoaderService','addEventListener','lineTo','_docSkeleton','ONLINE','INVITE_CODE_ALREADY_BOUND','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','mutations','onTransformChange$','/universer-api/license/formula/limit/start','REDEMPTION_CODE_NOT_STARTED','REDEMPTION_CODE_INACTIVE','backgroundColor','EMAIL_VERIFY_CODE_MISMATCH','_onCursorUpdate','complete','session.collaboration-timeout','_id','unsubscribe','labelPosition','redoState','HTTPService','_configService','get','handleMoveRange','Shape','set','_heartbeatTimer','arc','transformMutationsWithChangeset','_collabCursorState$','syncEditingCollabCursor','...','startColumn','handleDeleteRangeMoveLeft','ENTITLE_COUPON_EXPIRED','_checkCalculationAvailable','path','_initCommandExecutedListener','entityInit$','beginPath','REDEMPTION_USER_NOT_ELIGIBLE','IDocClipboardService','mergeOverrideWithDependencies','UNRECOGNIZED','_anchor','roomMembers$','_revisionService','InsertColCommandId','replaceState','useObservable','_initDependencies','_themeService','UnitStatus','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','on-line-icon_clip0_910_349','handleInsertRangeMoveDown','UNAUTHENTICATED','symbol','split','getSheetId','_eventUnsubscribe','unitID','toRgbString','xlink:href','_init','getCurrentUnitForType','_hovered','onCommandExecuted','getViewport','DocCollaborationEntity','_initUnhandledRejectionListener','setShapeProps','removeEventListener','MOBILE_HAS_BEEN_BOUND','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','ALREADY_EXISTS','SetWorksheetActivateCommand','_backgroundColor','transform','requireSession','subscribeEvent','enableFrontendLog','runRefRangeMutations','unit','_localCacheService','_render','isTransformMutationsWithChangesetSuccess','takeUntil','startRow','_univerInstanceService','_clearPolling','send','sheetId','Error','_hover','init','COLORS','override','totalFormulasToCalculate','toStringTag','collab-text-range-','resize','203865JRwBOA','collabStatus.notCollab','CollaborationUIEventId','jsx','origin','pluginName','width','textRanges','values','CollaborationDataLoaderController','docStateChange$','_docStateChangeManagerService','APPLY_REJECT','off-line-icon_clip0_910_343','COMPLETION_FINISHED','_online','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','_onRefRangeChange','moveTo','stringify','PAYMENT_CHANNEL_NOT_SUPPORT','error','28328720fLStWi','DeleteRangeMoveLeftCommandId','ITransformService','_memberService','red.300','editingUnit','white','colorChannel1','searchParams','4792200YoaByO','_cursorShapes','collab-rect-range-','doc.mutation.rich-text-editing','_handleJoinEvent','IUniverInstanceService','getValue','collaboration.offline-data-not-saved','ENTITLE_INSUFFICIENT_QUOTA','INVALID_INVITE_CODE','SetFormulaCalculationStartMutation','_commandService','M0\x200H16V16H0z','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','jiqing.500','evenodd','WebSocketService','getformulaLimitStatusUrl','_docClipboardService','YUUMI_ASYNCIO_CANCELLED','_setupSubUnitSync','find','endRow','top','_initCommandInterceptor','actions','transformRemoteChangeset','invokeId','use','NodePositionConvertToCursor','_collaborationController','_localeService','\x20at\x20','ENTITLE_REPORT_LIMIT_EXCEED','RemoveColCommandId','BrowserCollaborationSocketService','getCollabCursors$','on-line-icon','_transformHistoryAndStateStack','join','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','memberID','FETCH_MISS','UniverCollaborationClientPlugin','hovered','trim','collabStatus.synced','LocaleService','WebBrowserSingleActiveUnitService','MessageType','height','addHandlerCallback','fromEvent','LICENSE_IMPORT_SIZE_EXCEEDED','handleInsertRow','_collaborationUIEventService','ENTITLE_COUPON_USED_UP','TEXT','/universer-api/license/formula/limit/done','SheetSkeletonManagerService','map','_currentUsage','saveImage','m1Prime','getUnitId','ranges','SOCKET_FAILED_RETRY','HEADER_MENU','handleIRemoveCol','CommandType','BuiltInUIPart','maxFormulaLimit','IUIPartsService','onLocalMutation','_pollingInterval','location','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_scheduleClearOtherTimer','UniverIcon','_taskIds','urlChange$','_docTransformSelectionsService','_uploadLog','LICENSE_DISTRO_REJECTED','_name','WECHAT_HAS_BEEN_BOUND','REDEMPTION_CODE_FULLY_REDEEMED','history','_notificationService','save','_initEvent','REDEMPTION_INVALID_CODE','getUnitStatus$','RxDisposable','getCollabEntity$','cursorInfo','collaboration.closeRoom','color','stack','ISocketService','Workbook','SessionStatus','deserializeRangeWithSheet','_releaseCalculationLimit','body','ILogService','addObject','combineLatest','DisposableCollection','getActiveSheet','fillText','assignAColorForMemberID','measureText','name','_disabled','clearInterval','univer-flex\x20univer-items-center','length','RichTextEditingMutation','_scene','getParam','_injector','now','[Window\x20Error]:\x20','CONNECTOR_DATA_TOO_LARGE','ticket','_instanceService','black','_collabSessionService','UniverInstanceType','permission.title','sheetID','getSheetObject','PENDING','engine','INVITE_CODE_HAS_BEEN_UES','/run/','_updateCollabCursors','_initResize','_shapes','getDocRanges','_docSkeletonManagerService','DesktopCollaborationStatusDisplayController','restore','OnLineIcon','focused$','DocIMEInputManagerService','_handleHeartbeatEvent','[RemoteUniscriptService]:\x20no\x20focused\x20unit','url(#on-line-icon_clip0_910_349)','Inject','_startDocCollabCursor','dirtyRanges','_transformService','stage','_config','getMemberID','transformByState','MOBILE_VERIFY_CODE_MISMATCH','clearTimeout','attrs','_getAnchorBounding','toDisposable','registerRenderModule','CHANGESET_REVISION_CONFILICT','pipe','[CollaborationDataLoaderController]','UPDATE_CURSOR','_getSessionTicket','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','0\x200\x2017\x2016','_registerDependencies','SHEET_VIEWPORT_KEY','APPLY_PERMISSION_DENIED','getColorFromTheme','_color','getColor','clipPath','CollaborationUIEventService','CollaborationController','selections','useRef','getUniverSheetInstance','DeleteRangeMoveUpCommandId','_getScale','onPointerMove$','Unknown\x20user','ICommandService','onStarting','getRenderById','UNIVER_SHEET','IRemoteInstanceService','createIdentifier','0\x200\x2016\x2016','YUUMI_CONNECTOR_URL_NOT_FOUND','IMessageService','filter','OFFLINE','CollaborationSessionService','[Unhandled\x20Rejection]:\x20','SNAPSHOT_INVALID_SNAPSHOT','_docTransformIMECacheService','_cachedData','fill','from','range','transformSelections','ENTITLE_INVALID_COUPON_CODE','_lastPointer','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getTypeOfUnitDisposed$','max','_document','SetFormulaCalculationNotificationMutation','PERMISSION_DENIED','RECT','_onCursorDelete','collaboration-client-ui.config','getCurrent','1em','colno','YUUMI_NO_CUBOID_FOR_QUESTION','replace','runId','closePath','_cursors','RegularPolygon','uni.network.url-service','_context','isFormulaId','LICENSE_MAX_UNITS_EXCEEDED','reason','_refreshCollabCursors','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','createInstance','CollaborationEvent','_ensureSubject','_textBubble','LOGIN_TOKEN_PROCESSING_FAILED','getLocalCacheKey','USER_NOT_INVITED_CODE','setItem','746028KhyGCb','_updateURLWithCurrentState','CLOSE_ROOM','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_send','collabStatus.offline','deepClone','_updateLocalCursor','limitInfo','then','result','_drawTextRange','_unitStatus','createElement','removeParam','transformStateCache','loadUnit','CURRENT_STATUS_CANNOT_OPERATE','APPLY_NON_SEQUENTIAL_REVISION','PY_RUNTIME_SCRIPT_ERROR','_initStatusListener','LICENSE_EXPORT_SIZE_EXCEEDED','eventID','assign','ColorKit','storage','10683fvHpcq','_renderManagerService','_saveTaskMap','Loading','getCurrentRevOfUnit','YUUMI_SUBSCRIPTION_NOT_FOUND','subscribe','_handleEvent','SOCKET_FAILED','useDependency','debounceTime','collabStatus.syncing','createSocket','unhandledrejection','collab-text-anchor-','endColumn','Tooltip','undoState','Module','_monkeyPatchLogService','source','touchDependencies','event$','INVALID_ARGUMENT','generateRandomId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','sessionStatus$','hide','DocStateChangeManagerService','includes','_labelPosition','svg','2amYGjA','RemoveRowCommandId','throttleTime','show','popstate','getSkeleton','5Luigml','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','ENTITLE_CHAT_LIMIT_EXCEED','_beforeCloseService','_initStatusComponent','cursorInfo$','_toggleOnline','_removeCollabCursors','_getSheetObject','SetTextSelectionsOperation','setInterval','REDEMPTION_USER_REDEEM_TIMES_EXCEED','ENTITLE_USE_COUPON_NOT_1ST_TRADE','roomMembers','_showGuardMessage','APPLY_DUPLICATED','entries','setActiveRange','formula.calculation.unable','NOT_COLLAB','unload','_colorIndex','collabStatus.conflict','_handleLeaveEvent','_checkAndWaitForCalculationPermission','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','SheetsSelectionsService','shift','_handleHover','_cursorInfo$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getVpScrollXYInfoByPosToVp','session.connection-failed','_applyCommand','IRenderManagerService','params','Rect','getConfig','collabCursorState$','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','updateOfflineData','DocSelectionManagerService','Injector','_hideTimer','search','debounce','socket$','_dataLoaderService','purple.300','with','defineProperty','FromArray','ILocalStorageService','newValue','Rectangle','add','isArray','/universer-api/frontend/logs','YUUMI_ALL_TABLES_IS_INVALID','loadOfflineData','getCellMatrix','key','_updateSubUnitFromURLParams','SetSelectionsOperation','selection','DOC_RANGE_TYPE','IImageIoService','saveTaskMap','SNAPSHOT_HAS_BEEN_REMOVED','sessionTicket','getActiveRange','toString','exhaustSavingTask','collab-client.tooltip.reconnect','wsSessionTicketUrl','dispose','_syncEditingCollabCursorService','ENTITLE_DUP_SUBSCRIPTION','ISnapshotServerService','_toggleOffline','onRendered','EffectRefRangId','parseInt','ThemeService','_registerRenderDependencies','forwardRef','MemberService','_doCreateSocket','2936742aNTNZV','_collaborationSessionService','isTransformMutationFailure','getUnit','_clearOtherTimers','APPLY_REVISION_CONFILICT','saveOfflineData','data','div','message','disposeWithMe','bind','UNDEFINED','_scheduleHeartbeat','Warning','getUnhiddenWorksheets','asObservable','stageInfo','_maxFormulaLimit','some','current','Disposable','DATA_SOURCE_TOO_LARGE','fillRule','getOwnPropertyDescriptor','_imageIoService','LOGIN_FAILED','forEach','ENTITLE_NEED_BILLING_ADDRESS','substring','currentSkeleton$','_unitOnClients','bottom','EMAIL_HAS_BEEN_BOUND','registerRefRange','onMouseMove','displayName','_draw','RefRangeService','_scheduleSaving','dispose$','_getSaveTimeout','ENSURE_SNAPSHOT_EXECUTION','defs','TOO_MANY_REQUESTS','RevisionService','_removeClearOtherTimer','NOT_FOUND','href','_range','_sheetSkeletonManagerService','_logService','_transformPreviousActiveRange','USERS_LEAVE','unshift','off-line-icon','setAlpha','round','getTypeOfUnitAdded$','BehaviorSubject','YUUMI_AI_RUN_FAILED','OTHER_CLIENT_EDITING','_lastResponseTimestamp','getSheetBySheetId','CollaborationStatus','handleDeleteRangeMoveUp','ENTITLE_CAN_NOT_BUY_LOWER_OTP','http://www.w3.org/2000/svg','NodePositionConvertToRectRange','text','type','green.600','rgba(255,\x20255,\x20255,\x200.01)','_setupBeforeClosingHandler','addObjects','imageSourceType','addClipboardHook','idSuffix','yellow.400','_collabCursorController','REDEMPTION_CODE_HAS_BEEN_CREATED','_docTransformStateCacheService','string','fromEventSubject','handleIRemoveRow','_createSocketURL','_selfUnitIDs','column','IConfigService','subUnitId','UNIVER_DOC','YUUMI_URL_COL_OUT_OF_RANGE','/universer-api/license/formula/limit/status','CanceledError','delete','UniverCollaborationClientUIPlugin','_session','triggerDblclick','_uiPartsService','_refRangeService','INTERNAL_ERROR','isActive','transformMutation','_memberID','_saveCache','children','min','Failed','subunit','disposeUnit'];_0x326a=function(){return _0xb1231;};return _0x326a();}var ns=Object[_0x104dc6(0x194)],rs=(_0x3983fb,_0x5c02c9,_0x3686a2,_0x28a1d0)=>{const _0x446a0c=_0x104dc6;for(var _0x209b7d=_0x28a1d0>0x1?void 0x0:_0x28a1d0?ns(_0x5c02c9,_0x3686a2):_0x5c02c9,_0x5694ce=_0x3983fb[_0x446a0c(0x338)]-0x1,_0x1fad6a;_0x5694ce>=0x0;_0x5694ce--)(_0x1fad6a=_0x3983fb[_0x5694ce])&&(_0x209b7d=_0x1fad6a(_0x209b7d)||_0x209b7d);return _0x209b7d;},Se=(_0x2113ed,_0x2479ab)=>(_0x2bfb08,_0x403d9d)=>_0x2479ab(_0x2bfb08,_0x403d9d,_0x2113ed);let Te=class extends a[_0x104dc6(0x191)]{constructor(_0x55c598,_0x264564,_0x2ef320){const _0x4c91c5=_0x104dc6;super(),_(this,_0x4c91c5(0x38d),new Map()),_(this,'_saveTaskMap',new Map()),_(this,'_disabled',!0x1),(this[_0x4c91c5(0x253)]=_0x55c598,this[_0x4c91c5(0x227)]=_0x264564,this['_revisionService']=_0x2ef320);}['disableLocalCache'](){const _0x6b4938=_0x104dc6;this[_0x6b4938(0x335)]=!0x0;}[_0x104dc6(0x218)](){const _0x362dc1=_0x104dc6;this[_0x362dc1(0x335)]=!0x1;}get[_0x104dc6(0x167)](){const _0x4c7e3c=_0x104dc6;return this[_0x4c7e3c(0x100)];}[_0x104dc6(0x16f)](){const _0x591de7=_0x104dc6;this[_0x591de7(0x16c)]()[_0x591de7(0xed)](()=>super[_0x591de7(0x16f)]());}async[_0x104dc6(0x15f)](_0x12c31a){const _0x41fd47=_0x104dc6;return this[_0x41fd47(0x335)]?null:this[_0x41fd47(0x227)][_0x41fd47(0x22f)](u[_0x41fd47(0xe1)](_0x12c31a));}async[_0x104dc6(0x182)](_0x52bcad,_0x553935){return!!this['_localStorageService']['setItem'](_0x52bcad,_0x553935);}[_0x104dc6(0x14c)](_0x1b32f9,_0x50a0d8,_0x32466c,_0xf57d3c){const _0x489832=_0x104dc6,_0x21c447=this[_0x489832(0x26c)][_0x489832(0x102)](_0x1b32f9);this[_0x489832(0x38d)][_0x489832(0x257)](_0x1b32f9,{'unitID':_0x1b32f9,'type':_0x50a0d8,'awaitingChangeset':_0x32466c,'mutations':_0xf57d3c,'rev':_0x21c447}),this[_0x489832(0x100)][_0x489832(0x235)](_0x1b32f9)||this[_0x489832(0x1a3)](_0x1b32f9);}[_0x104dc6(0x1a3)](_0x466fcf){const _0x42f829=_0x104dc6,_0x2bc18e=this['_getSaveTimeout']();_0x2bc18e===0x0?this[_0x42f829(0x1e4)](_0x466fcf):this['_saveTaskMap'][_0x42f829(0x257)](_0x466fcf,setTimeout(()=>this[_0x42f829(0x1e4)](_0x466fcf),_0x2bc18e));}[_0x104dc6(0x1a5)](){const _0x19f80a=_0x104dc6;var _0x2ca188;return(_0x2ca188=this[_0x19f80a(0x253)][_0x19f80a(0x149)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x2ca188:u['LOCAL_CACHE_INTERVAL'];}[_0x104dc6(0x1e4)](_0x3881e9){const _0xe02fa7=_0x104dc6,_0x5abb57=this[_0xe02fa7(0x100)][_0xe02fa7(0x254)](_0x3881e9);return _0x5abb57!==void 0x0&&window[_0xe02fa7(0x362)](_0x5abb57),this[_0xe02fa7(0x227)][_0xe02fa7(0xe3)](u[_0xe02fa7(0xe1)](_0x3881e9),this[_0xe02fa7(0x38d)][_0xe02fa7(0x254)](_0x3881e9))[_0xe02fa7(0xed)](()=>this[_0xe02fa7(0x100)][_0xe02fa7(0x1da)](_0x3881e9));}async[_0x104dc6(0x16c)](){const _0x4e3247=_0x104dc6,_0x247742=[];this[_0x4e3247(0x100)][_0x4e3247(0x197)]((_0xc10d35,_0x4806b7)=>{const _0xfbee85=_0x4e3247;window[_0xfbee85(0x362)](_0xc10d35),_0x247742[_0xfbee85(0x219)](this[_0xfbee85(0x1e4)](_0x4806b7)['then'](()=>{const _0x5bd959=_0xfbee85;this['_saveTaskMap'][_0x5bd959(0x1da)](_0x4806b7);}));}),await Promise['all'](_0x247742);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0x104dc6(0x158)]),Se(0x2,a[_0x104dc6(0x359)](g[_0x104dc6(0x1a9)]))],Te);class ke extends a[_0x104dc6(0x320)]{constructor(){const _0x903adf=_0x104dc6;super(),_(this,_0x903adf(0x313)),this['urlChange$']=I[_0x903adf(0x2f7)](window,_0x903adf(0x122))[_0x903adf(0x368)](I[_0x903adf(0x295)](this[_0x903adf(0x1a4)]),I['shareReplay'](0x1),I['mapTo'](void 0x0));}['setParam'](_0x59bec9,_0x43a356,_0x4cd22d=!0x1){const _0x1d742f=_0x104dc6,_0x215106=new URL(window['location'][_0x1d742f(0x1ac)]);_0x215106[_0x1d742f(0x2c2)][_0x1d742f(0x257)](_0x59bec9,_0x43a356),_0x4cd22d?window[_0x1d742f(0x31a)][_0x1d742f(0x26e)]('','',_0x215106[_0x1d742f(0x16b)]()):window[_0x1d742f(0x31a)]['pushState']('','',_0x215106[_0x1d742f(0x16b)]());}[_0x104dc6(0xf2)](_0xe2ed1e,_0x12490e=!0x1){const _0x232322=_0x104dc6,_0x79cecb=new URL(window['location']['href']);_0x79cecb['searchParams'][_0x232322(0x1da)](_0xe2ed1e),_0x12490e?window[_0x232322(0x31a)][_0x232322(0x26e)]('','',_0x79cecb['toString']()):window['history'][_0x232322(0x1f4)]('','',_0x79cecb[_0x232322(0x16b)]());}[_0x104dc6(0x33b)](_0x550b56){const _0x44d480=_0x104dc6;var _0x5e099b;return(_0x5e099b=new URL(window[_0x44d480(0x30e)][_0x44d480(0x1ac)])[_0x44d480(0x2c2)][_0x44d480(0x254)](_0x550b56))!=null?_0x5e099b:void 0x0;}}var os=Object['defineProperty'],as=Object['getOwnPropertyDescriptor'],cs=(_0x2ba5fa,_0x5d6c47,_0x299527)=>_0x5d6c47 in _0x2ba5fa?os(_0x2ba5fa,_0x5d6c47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x299527}):_0x2ba5fa[_0x5d6c47]=_0x299527,ls=(_0x495036,_0x3a5a20,_0x1bae0b,_0x5b993d)=>{const _0x24336b=_0x104dc6;for(var _0x517dc4=_0x5b993d>0x1?void 0x0:_0x5b993d?as(_0x3a5a20,_0x1bae0b):_0x3a5a20,_0x3b201f=_0x495036[_0x24336b(0x338)]-0x1,_0x16905d;_0x3b201f>=0x0;_0x3b201f--)(_0x16905d=_0x495036[_0x3b201f])&&(_0x517dc4=_0x16905d(_0x517dc4)||_0x517dc4);return _0x517dc4;},de=(_0x4763c8,_0x811973)=>(_0x29b10e,_0xb8b542)=>_0x811973(_0x29b10e,_0xb8b542,_0x4763c8),_s=(_0x1b34df,_0x441fcf,_0x2950ef)=>cs(_0x1b34df,_0x441fcf+'',_0x2950ef);const hs=_0x104dc6(0x2eb);exports[_0x104dc6(0x1db)]=class extends a['Plugin']{constructor(_0x33c189=Me,_0x4a878c,_0x5bbf35,_0x35dc0b){const _0x160478=_0x104dc6;super(),this[_0x160478(0x35e)]=_0x33c189,this['_renderManagerService']=_0x4a878c,this[_0x160478(0x33c)]=_0x5bbf35,this[_0x160478(0x253)]=_0x35dc0b;const {..._0x3d38cc}=a['merge']({},Me,this[_0x160478(0x35e)]);this[_0x160478(0x253)]['setConfig'](Yt,_0x3d38cc);}[_0x104dc6(0x37f)](){const _0x3eba0e=_0x104dc6;this[_0x3eba0e(0x36e)](),this['_initDependencies']();}[_0x104dc6(0x174)](){this['_registerRenderDependencies']();}[_0x104dc6(0x36e)](){const _0x39d501=_0x104dc6;var _0x43e131;const _0x2ffaa6=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x39d501(0x326)],{'useClass':x[_0x39d501(0x2d3)]}],[u[_0x39d501(0x21c)],{'useClass':Te}],[exports[_0x39d501(0x351)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x39d501(0x35e)][_0x39d501(0x28f)]&&_0x2ffaa6[_0x39d501(0x219)]([Q]),a['registerDependencies'](this['_injector'],a[_0x39d501(0x268)](_0x2ffaa6,(_0x43e131=this[_0x39d501(0x35e)])==null?void 0x0:_0x43e131[_0x39d501(0x29f)]));}[_0x104dc6(0x178)](){const _0x178ca0=_0x104dc6;this['disposeWithMe'](this[_0x178ca0(0xff)][_0x178ca0(0x366)](a[_0x178ca0(0x344)][_0x178ca0(0x1d6)],[Ee])),this[_0x178ca0(0x186)](this[_0x178ca0(0xff)][_0x178ca0(0x366)](a[_0x178ca0(0x344)][_0x178ca0(0x381)],[Ce]));}[_0x104dc6(0x270)](){const _0x44e422=_0x104dc6;a[_0x44e422(0x113)](this[_0x44e422(0x33c)],[[F],[exports[_0x44e422(0x351)]],[ie],[Z],[exports[_0x44e422(0x2ad)]],[ne]]),this[_0x44e422(0x35e)]['enableFrontendLog']&&a[_0x44e422(0x113)](this[_0x44e422(0x33c)],[[Q]]);}},_s(exports[_0x104dc6(0x1db)],_0x104dc6(0x2a9),hs),exports[_0x104dc6(0x1db)]=ls([a['DependentOn'](u[_0x104dc6(0x2ee)]),de(0x1,C[_0x104dc6(0x146)]),de(0x2,a[_0x104dc6(0x359)](a[_0x104dc6(0x14e)])),de(0x3,a[_0x104dc6(0x1d4)])],exports[_0x104dc6(0x1db)]);var us=Object[_0x104dc6(0x194)],Is=(_0x25d639,_0x30b857,_0x327838,_0x13a368)=>{const _0x6ca8c4=_0x104dc6;for(var _0x42a641=_0x13a368>0x1?void 0x0:_0x13a368?us(_0x30b857,_0x327838):_0x30b857,_0x37813f=_0x25d639[_0x6ca8c4(0x338)]-0x1,_0x2a45ad;_0x37813f>=0x0;_0x37813f--)(_0x2a45ad=_0x25d639[_0x37813f])&&(_0x42a641=_0x2a45ad(_0x42a641)||_0x42a641);return _0x42a641;},W=(_0x3e9c7b,_0x175213)=>(_0x3b6864,_0x5ebf2e)=>_0x175213(_0x3b6864,_0x5ebf2e,_0x3e9c7b);exports[_0x104dc6(0x2e6)]=class extends u['CollaborationSocketService']{constructor(_0x49ac60,_0x376791,_0x248323,_0x26c41f,_0x462ff9){super(_0x49ac60,_0x376791,_0x248323,_0x26c41f,_0x462ff9);}async[_0x104dc6(0x10a)](_0x3eae6a){const _0xcc8632=_0x104dc6,_0x16f443=await this[_0xcc8632(0x36b)](),_0x1bec1b=this['_createSocketURL'](_0x3eae6a,_0x16f443);return this[_0xcc8632(0x17b)](_0x1bec1b);}[_0x104dc6(0x1d1)](_0x8613ff,_0x2dca97){const _0x1b2ef4=_0x104dc6,_0x693be4=typeof window>'u'?new URL(_0x8613ff):new URL(_0x8613ff,window[_0x1b2ef4(0x30e)][_0x1b2ef4(0x2a8)]);_0x693be4[_0x1b2ef4(0x2c2)][_0x1b2ef4(0x257)](_0x1b2ef4(0x169),_0x2dca97);const _0x21ec15=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1b2ef4(0x30e)][_0x1b2ef4(0x150)]);return _0x21ec15[_0x1b2ef4(0x254)]('runId')&&_0x693be4['searchParams'][_0x1b2ef4(0x257)](_0x1b2ef4(0xd1),_0x21ec15[_0x1b2ef4(0x254)](_0x1b2ef4(0xd1))),_0x693be4['toString']();}async[_0x104dc6(0x36b)](){const _0x25fb92=_0x104dc6;var _0x299691,_0x3649f7,_0x3a34cf;const _0x1066ce=this[_0x25fb92(0x253)][_0x25fb92(0x149)](u[_0x25fb92(0x117)]),_0x9531c8=(_0x299691=_0x1066ce==null?void 0x0:_0x1066ce[_0x25fb92(0x16e)])!=null?_0x299691:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3a34cf=(_0x3649f7=(await this['_httpService'][_0x25fb92(0x254)](_0x9531c8,{'headers':{'Content-Type':'application/json'}}))[_0x25fb92(0x32b)])==null?void 0x0:_0x3649f7[_0x25fb92(0x340)])!=null?_0x3a34cf:'';}},exports[_0x104dc6(0x2e6)]=Is([W(0x0,a[_0x104dc6(0x359)](a['Injector'])),W(0x1,a['Inject'](x['HTTPService'])),W(0x2,a[_0x104dc6(0x1d4)]),W(0x3,a[_0x104dc6(0x32c)]),W(0x4,g[_0x104dc6(0x172)])],exports[_0x104dc6(0x2e6)]);var Ss=Object[_0x104dc6(0x194)],ds=(_0x40d278,_0x5caa7e,_0x49130a,_0x5122b6)=>{const _0x52c963=_0x104dc6;for(var _0x5419e2=_0x5122b6>0x1?void 0x0:_0x5122b6?Ss(_0x5caa7e,_0x49130a):_0x5caa7e,_0x100385=_0x40d278[_0x52c963(0x338)]-0x1,_0x24547b;_0x100385>=0x0;_0x100385--)(_0x24547b=_0x40d278[_0x100385])&&(_0x5419e2=_0x24547b(_0x5419e2)||_0x5419e2);return _0x5419e2;},fe=(_0x52ac3c,_0x535504)=>(_0x18b808,_0x16c63b)=>_0x535504(_0x18b808,_0x16c63b,_0x52ac3c);exports[_0x104dc6(0x22e)]=class extends a[_0x104dc6(0x191)]{constructor(_0x4d703d,_0x257183,_0x3e6509){super(),this['_instanceService']=_0x4d703d,this['_httpService']=_0x257183,this['_configService']=_0x3e6509;}async[_0x104dc6(0x1f3)](_0x484e7a,_0x9d7d9d,_0x35e58f,..._0x3b4037){const _0x21f3dc=_0x104dc6;var _0x13d1c1,_0x18d038,_0x56e603,_0x9f43c;const _0x3baa55=this[_0x21f3dc(0x341)][_0x21f3dc(0x239)]();if(!_0x3baa55)throw new Error(_0x21f3dc(0x357));const _0x1c2452=((_0x13d1c1=this[_0x21f3dc(0x253)][_0x21f3dc(0x149)](u[_0x21f3dc(0x2d0)]))!=null?_0x13d1c1:u[_0x21f3dc(0x20d)])+'/'+_0x484e7a+_0x21f3dc(0x34b)+_0x9d7d9d,_0x411a86=new URL(window[_0x21f3dc(0x30e)][_0x21f3dc(0x1ac)]),_0x57b2cc={'scriptId':_0x484e7a,'runId':(_0x18d038=_0x411a86[_0x21f3dc(0x2c2)][_0x21f3dc(0x254)](_0x21f3dc(0xd1)))!=null?_0x18d038:'','function':_0x9d7d9d,'unitId':_0x3baa55[_0x21f3dc(0x303)](),'argsOfFunction':JSON[_0x21f3dc(0x2b7)](_0x3b4037),'invokeId':(_0x56e603=_0x35e58f[_0x21f3dc(0x2de)])!=null?_0x56e603:'','executionId':(_0x9f43c=_0x35e58f['executionId'])!=null?_0x9f43c:''};try{const _0x3a8469=await this[_0x21f3dc(0x234)][_0x21f3dc(0x1eb)](_0x1c2452,{'body':_0x57b2cc});return _0x3a8469['body']['error']&&_0x3a8469[_0x21f3dc(0x32b)][_0x21f3dc(0x2b9)]['code']!==G['OK']?_0x21f3dc(0x1e7):_0x3a8469[_0x21f3dc(0x32b)][_0x21f3dc(0xee)];}catch{return _0x21f3dc(0x1e7);}}},exports[_0x104dc6(0x22e)]=ds([fe(0x0,a['IUniverInstanceService']),fe(0x1,a[_0x104dc6(0x359)](x[_0x104dc6(0x252)])),fe(0x2,a[_0x104dc6(0x1d4)])],exports[_0x104dc6(0x22e)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a['Disposable']{constructor(){const _0x2fe37f=_0x104dc6;super(),_(this,_0x2fe37f(0x24e),a[_0x2fe37f(0x116)]()),_(this,_0x2fe37f(0x1d2),new Set()),_(this,_0x2fe37f(0x19b),new Map()),_(this,_0x2fe37f(0x258),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x956433=_0x104dc6;super[_0x956433(0x16f)](),this[_0x956433(0x180)]['forEach']((_0x4129ad,_0x232ceb)=>this[_0x956433(0x1aa)](_0x232ceb)),this[_0x956433(0x258)]&&window[_0x956433(0x336)](this[_0x956433(0x258)]);}[_0x104dc6(0x31f)](_0x1e70ac){const _0x56f6a8=_0x104dc6;return this[_0x56f6a8(0xde)](_0x1e70ac)['pipe'](I[_0x56f6a8(0x209)]());}[_0x104dc6(0x2bf)](_0x22a1ec){const _0x1f3595=_0x104dc6;this[_0x1f3595(0x1d2)][_0x1f3595(0x1f7)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1f3595(0x1d2)][_0x1f3595(0x15b)](_0x22a1ec),this['_send']({'type':0x0,'memberID':this[_0x1f3595(0x24e)],'unitIDs':[_0x22a1ec],'isForwarded':!0x1});}[_0x104dc6(0x1e9)](_0x5ceb28){const _0x58586d=_0x104dc6;this[_0x58586d(0x1d2)][_0x58586d(0x1da)](_0x5ceb28),this['_selfUnitIDs'][_0x58586d(0x1f7)]===0x0&&this[_0x58586d(0x258)]&&window[_0x58586d(0x336)](this[_0x58586d(0x258)]);}['_init'](){const _0x5bee1d=_0x104dc6;this[_0x5bee1d(0x186)](a[_0x5bee1d(0x365)](I['fromEvent'](window,_0x5bee1d(0xfd))['subscribe'](_0x8e9dd4=>{const _0x43dd42=_0x5bee1d;if(_0x8e9dd4[_0x43dd42(0x161)]!==ye||!_0x8e9dd4[_0x43dd42(0x159)])return;const _0x4effac=JSON['parse'](_0x8e9dd4[_0x43dd42(0x159)]);this['_handleEvent'](_0x4effac);}))),window[_0x5bee1d(0x23e)](_0x5bee1d(0x138),()=>this[_0x5bee1d(0xe8)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5bee1d(0x38f)](this['_selfUnitIDs'])}));}[_0x104dc6(0x105)](_0xba8a30){const _0x2c4663=_0x104dc6;switch(_0xba8a30[_0x2c4663(0x1c2)]){case 0x0:this[_0x2c4663(0x2c7)](_0xba8a30);break;case 0x1:this[_0x2c4663(0x13b)](_0xba8a30);break;case 0x2:this[_0x2c4663(0x356)](_0xba8a30);break;}}[_0x104dc6(0x2c7)](_0x30aba2){const _0x259577=_0x104dc6,{unitIDs:_0x9ff697,memberID:_0x1686a5,isForwarded:_0x366fc6}=_0x30aba2;_0x9ff697[_0x259577(0x197)](_0x23e0c0=>{const _0x4748c0=_0x259577;if(!_0x366fc6&&this['_unitOnClients'][_0x4748c0(0x235)](_0x23e0c0)&&this[_0x4748c0(0xde)](_0x23e0c0)[_0x4748c0(0x1f0)](u[_0x4748c0(0x272)]['OTHER_CLIENTS_EDITING']),!this[_0x4748c0(0x19b)]['has'](_0x23e0c0)||!this[_0x4748c0(0x19b)]['get'](_0x23e0c0)['has'](_0x1686a5)){const _0x14e9d8=this['_unitOnClients'][_0x4748c0(0x254)](_0x23e0c0)||new Set();_0x14e9d8[_0x4748c0(0x15b)](_0x1686a5),this[_0x4748c0(0x19b)][_0x4748c0(0x257)](_0x23e0c0,_0x14e9d8),this[_0x4748c0(0x310)](_0x1686a5);}}),_0x366fc6||this[_0x259577(0xe8)]({'type':0x0,'memberID':this[_0x259577(0x24e)],'unitIDs':[...this[_0x259577(0x1d2)]],'isForwarded':!0x0});}[_0x104dc6(0x310)](_0xf4209a){const _0x2767fb=_0x104dc6;this[_0x2767fb(0x1aa)](_0xf4209a);const _0x433ffe=window[_0x2767fb(0x20e)](()=>{const _0x37f19e=_0x2767fb;this['_unitOnClients'][_0x37f19e(0x197)](_0x9d3048=>{_0x9d3048['delete'](_0xf4209a);});},we*0x2);this[_0x2767fb(0x180)]['set'](_0xf4209a,_0x433ffe);}[_0x104dc6(0x1aa)](_0x1d3c7a){const _0x421f95=_0x104dc6;if(this[_0x421f95(0x180)][_0x421f95(0x235)](_0x1d3c7a)){const _0x18f1e6=this['_clearOtherTimers'][_0x421f95(0x254)](_0x1d3c7a);_0x18f1e6&&window[_0x421f95(0x362)](_0x18f1e6),this[_0x421f95(0x180)]['set'](_0x1d3c7a,null);}}['_handleLeaveEvent'](_0xe75561){const _0x545668=_0x104dc6,{memberID:_0x54f253,unitIDs:_0x3d9006}=_0xe75561;_0x3d9006[_0x545668(0x197)](_0x475d4a=>{const _0x3e408e=_0x545668;var _0x1b3001;const _0x38590e=this[_0x3e408e(0x19b)][_0x3e408e(0x254)](_0x475d4a);_0x38590e&&(_0x38590e[_0x3e408e(0x1da)](_0x54f253),(_0x1b3001=this[_0x3e408e(0xde)](_0x475d4a))==null||_0x1b3001[_0x3e408e(0x1f0)](_0x38590e[_0x3e408e(0x1f7)]===0x0?u[_0x3e408e(0x272)]['NO_OTHER_CLIENTS_EDITING']:u[_0x3e408e(0x272)]['OTHER_CLIENTS_EDITING']));}),this[_0x545668(0x1aa)](_0x54f253);}['_handleHeartbeatEvent'](_0x3bd372){const _0x58c357=_0x104dc6;this[_0x58c357(0x310)](_0x3bd372[_0x58c357(0x2ec)]);}[_0x104dc6(0xe8)](_0x3ed32a){const _0x207db3=_0x104dc6;localStorage['setItem'](ye,JSON[_0x207db3(0x2b7)](_0x3ed32a));}[_0x104dc6(0x189)](){const _0x22f763=_0x104dc6;this[_0x22f763(0x258)]=window[_0x22f763(0x12e)](()=>{const _0x5d4c2f=_0x22f763;this[_0x5d4c2f(0xe8)]({'type':0x2,'memberID':this[_0x5d4c2f(0x24e)]});},we);}[_0x104dc6(0xde)](_0xec280f){const _0x42e868=_0x104dc6;return this['_unitStatus']['has'](_0xec280f)||this[_0x42e868(0xf0)][_0x42e868(0x257)](_0xec280f,new I[(_0x42e868(0x1b7))](u[_0x42e868(0x272)][_0x42e868(0x1f9)])),this['_unitStatus'][_0x42e868(0x254)](_0xec280f);}}exports['IURLService']=Oe,exports['SheetCollabCursorShape']=je,exports[_0x104dc6(0x2f3)]=fs,exports['WebURLService']=ke;
|
|
1
|
+
'use strict';const _0x5f4c13=_0x1124;(function(_0x211d30,_0x1b3ad4){const _0x356d71=_0x1124,_0x77f8ed=_0x211d30();while(!![]){try{const _0x48607a=-parseInt(_0x356d71(0x187))/0x1+-parseInt(_0x356d71(0x15a))/0x2*(parseInt(_0x356d71(0x1fc))/0x3)+-parseInt(_0x356d71(0x379))/0x4*(parseInt(_0x356d71(0x2db))/0x5)+-parseInt(_0x356d71(0x32a))/0x6+-parseInt(_0x356d71(0x3ce))/0x7*(parseInt(_0x356d71(0x30f))/0x8)+-parseInt(_0x356d71(0x2de))/0x9+-parseInt(_0x356d71(0x1a6))/0xa*(-parseInt(_0x356d71(0x212))/0xb);if(_0x48607a===_0x1b3ad4)break;else _0x77f8ed['push'](_0x77f8ed['shift']());}catch(_0xedd025){_0x77f8ed['push'](_0x77f8ed['shift']());}}}(_0x38fa,0x79abd));var Xe=Object[_0x5f4c13(0x214)],Ke=(_0x368558,_0x53bb82,_0x37a5ce)=>_0x53bb82 in _0x368558?Xe(_0x368558,_0x53bb82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37a5ce}):_0x368558[_0x53bb82]=_0x37a5ce,_=(_0x4e492d,_0x353606,_0x520e5b)=>Ke(_0x4e492d,typeof _0x353606!=_0x5f4c13(0x172)?_0x353606+'':_0x353606,_0x520e5b);Object[_0x5f4c13(0x214)](exports,Symbol['toStringTag'],{'value':_0x5f4c13(0x258)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0xad38a3,..._0x2641a3}){const _0x5b3305=_0x5f4c13,{icon:_0x5b1cfb,id:_0x1e1b04,className:_0x39f2a8,extend:_0x4546e2,..._0x27efca}=_0x2641a3,_0x3a3ac2=(_0x5b3305(0x2cc)+_0x1e1b04+'\x20'+(_0x39f2a8||''))[_0x5b3305(0x15e)](),_0x1cb52b=A[_0x5b3305(0x23b)]('_'+Qe());return $e(_0x5b1cfb,''+_0x1e1b04,{'defIds':_0x5b1cfb['defIds'],'idSuffix':_0x1cb52b['current']},{'ref':_0xad38a3,'className':_0x3a3ac2,..._0x27efca},_0x4546e2);}function $e(_0x52df74,_0x161966,_0x533c9a,_0x14257e,_0x5cdb96){const _0x2e2a5e=_0x5f4c13;return A[_0x2e2a5e(0x208)](_0x52df74['tag'],{'key':_0x161966,...Je(_0x52df74,_0x533c9a,_0x5cdb96),..._0x14257e},(Ze(_0x52df74,_0x533c9a)[_0x2e2a5e(0x3ab)]||[])[_0x2e2a5e(0x13c)]((_0x14aba9,_0x33552f)=>$e(_0x14aba9,_0x161966+'-'+_0x52df74[_0x2e2a5e(0x32b)]+'-'+_0x33552f,_0x533c9a,void 0x0,_0x5cdb96)));}function Je(_0x46afc5,_0x2d99ff,_0x386136){const _0x414d54=_0x5f4c13,_0x18de96={..._0x46afc5['attrs']};_0x386136!=null&&_0x386136[_0x414d54(0x321)]&&_0x18de96[_0x414d54(0x233)]===_0x414d54(0x321)&&(_0x18de96['fill']=_0x386136[_0x414d54(0x321)]),_0x46afc5['tag']===_0x414d54(0x268)&&_0x18de96['id']&&(_0x18de96['id']=_0x18de96['id']+_0x2d99ff[_0x414d54(0x232)]),Object[_0x414d54(0x362)](_0x18de96)[_0x414d54(0x3ac)](([_0x372225,_0x53bcae])=>{const _0x58bbfc=_0x414d54;_0x372225===_0x58bbfc(0x268)&&typeof _0x53bcae==_0x58bbfc(0x260)&&(_0x18de96[_0x372225]=_0x53bcae[_0x58bbfc(0x246)](/url\(#(.*)\)/,_0x58bbfc(0x20a)+_0x2d99ff[_0x58bbfc(0x232)]+')'));});const {defIds:_0x2ccb5a}=_0x2d99ff;return!_0x2ccb5a||_0x2ccb5a[_0x414d54(0x231)]===0x0||(_0x46afc5[_0x414d54(0x32b)]==='use'&&_0x18de96[_0x414d54(0x395)]&&(_0x18de96[_0x414d54(0x395)]=_0x18de96[_0x414d54(0x395)]+_0x2d99ff['idSuffix']),Object['entries'](_0x18de96)['forEach'](([_0xb251f,_0x30eca7])=>{const _0x58e025=_0x414d54;typeof _0x30eca7=='string'&&(_0x18de96[_0xb251f]=_0x30eca7['replace'](/url\(#(.*)\)/,_0x58e025(0x20a)+_0x2d99ff['idSuffix']+')'));})),_0x18de96;}function Ze(_0x9724cb,_0x56d01d){const _0x186b57=_0x5f4c13;var _0x233a34;const {defIds:_0x1b906b}=_0x56d01d;return!_0x1b906b||_0x1b906b[_0x186b57(0x231)]===0x0?_0x9724cb:_0x9724cb[_0x186b57(0x32b)]===_0x186b57(0x27c)&&((_0x233a34=_0x9724cb['children'])!=null&&_0x233a34[_0x186b57(0x231)])?{..._0x9724cb,'children':_0x9724cb[_0x186b57(0x3ab)][_0x186b57(0x13c)](_0x3fd7cc=>typeof _0x3fd7cc[_0x186b57(0x1db)]['id']==_0x186b57(0x260)&&_0x1b906b&&_0x1b906b['includes'](_0x3fd7cc[_0x186b57(0x1db)]['id'])?{..._0x3fd7cc,'attrs':{..._0x3fd7cc['attrs'],'id':_0x3fd7cc[_0x186b57(0x1db)]['id']+_0x56d01d[_0x186b57(0x232)]}}:_0x3fd7cc)}:_0x9724cb;}function Qe(){const _0x14fbb4=_0x5f4c13;return Math[_0x14fbb4(0x1b2)]()[_0x14fbb4(0x327)](0x24)[_0x14fbb4(0x137)](0x2,0x8);}pe[_0x5f4c13(0x30a)]='UniverIcon';const et={'tag':_0x5f4c13(0x2f0),'attrs':{'xmlns':_0x5f4c13(0x3b0),'fill':_0x5f4c13(0x130),'viewBox':_0x5f4c13(0x2b6),'width':_0x5f4c13(0x2d7),'height':_0x5f4c13(0x2d7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x5f4c13(0x1ec),'attrs':{'stroke':_0x5f4c13(0x33a),'d':_0x5f4c13(0x33c),'strokeLinecap':'round','strokeLinejoin':_0x5f4c13(0x2df),'strokeWidth':1.2}}]},{'tag':_0x5f4c13(0x27c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x5f4c13(0x1ec),'attrs':{'fill':'white','d':_0x5f4c13(0x2cd)}}]}]}],'defIds':[_0x5f4c13(0x398)]},xe=A[_0x5f4c13(0x225)](function(_0x5ff3be,_0x4c5313){const _0x583cac=_0x5f4c13;return A['createElement'](pe,Object['assign']({},_0x5ff3be,{'id':_0x583cac(0x2f3),'ref':_0x4c5313,'icon':et}));});xe[_0x5f4c13(0x30a)]=_0x5f4c13(0x306);const tt={'tag':_0x5f4c13(0x2f0),'attrs':{'xmlns':_0x5f4c13(0x3b0),'fill':'none','viewBox':_0x5f4c13(0x1b3),'width':'1em','height':_0x5f4c13(0x2d7)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f4c13(0x2aa)},'children':[{'tag':_0x5f4c13(0x1ec),'attrs':{'stroke':_0x5f4c13(0x33a),'d':_0x5f4c13(0x287),'strokeLinecap':'round','strokeLinejoin':_0x5f4c13(0x2df),'strokeWidth':1.2}}]},{'tag':_0x5f4c13(0x27c),'attrs':{},'children':[{'tag':_0x5f4c13(0x18b),'attrs':{'id':_0x5f4c13(0x12c)},'children':[{'tag':'path','attrs':{'fill':_0x5f4c13(0x3de),'d':_0x5f4c13(0x2cd),'transform':_0x5f4c13(0x3bb)}}]}]}],'defIds':[_0x5f4c13(0x12c)]},Be=A[_0x5f4c13(0x225)](function(_0x6fbfea,_0x519f70){const _0x2f8304=_0x5f4c13;return A[_0x2f8304(0x208)](pe,Object[_0x2f8304(0x2ca)]({},_0x6fbfea,{'id':'on-line-icon','ref':_0x519f70,'icon':tt}));});Be[_0x5f4c13(0x30a)]=_0x5f4c13(0x37c);function st(_0x2c8d18){const _0x2d94b2=_0x5f4c13;switch(_0x2c8d18){case u[_0x2d94b2(0x376)][_0x2d94b2(0x177)]:return'collabStatus.offline';case u[_0x2d94b2(0x376)][_0x2d94b2(0x3b5)]:return'collabStatus.conflict';case u[_0x2d94b2(0x376)][_0x2d94b2(0x34e)]:return _0x2d94b2(0x144);case u[_0x2d94b2(0x376)]['NOT_COLLAB']:return _0x2d94b2(0x284);case u[_0x2d94b2(0x376)]['AWAITING']:case u[_0x2d94b2(0x376)][_0x2d94b2(0x365)]:return _0x2d94b2(0x2e5);case u['CollaborationStatus']['SYNCED']:case u[_0x2d94b2(0x376)]['PENDING']:return _0x2d94b2(0x3dd);}}function it(_0xdfbced){const _0xb6ea8b=_0x5f4c13,{status$:_0x245d2b}=_0xdfbced,_0x51af9d=O[_0xb6ea8b(0x298)](_0x245d2b,u[_0xb6ea8b(0x376)][_0xb6ea8b(0x347)]),_0x318408=O[_0xb6ea8b(0x15d)](a[_0xb6ea8b(0x2b2)]),_0x3aa45a=O['useDependency'](u[_0xb6ea8b(0x38f)]),_0x56afd3=_0x51af9d!==u[_0xb6ea8b(0x376)]['OFFLINE'],_0x5d981f=_0x318408['t'](st(_0x51af9d)),_0x50dc47=_0x56afd3?M[_0xb6ea8b(0x392)](Be,{}):M['jsx'](xe,{}),_0x300925=A['useCallback'](()=>{const _0x2b37b1=_0xb6ea8b;_0x56afd3||_0x3aa45a[_0x2b37b1(0x1ce)]();},[_0x56afd3,_0x3aa45a]);function _0x2a2471(){const _0xe816c0=_0xb6ea8b;return M['jsxs'](_0xe816c0(0x2a9),{'className':'univer-flex\x20univer-items-center','onClick':_0x300925,'children':[M[_0xe816c0(0x392)](_0xe816c0(0x2a9),{'className':p[_0xe816c0(0x176)](_0xe816c0(0x2bb),{'univer-text-green-500':_0x56afd3,'univer-text-red-500':!_0x56afd3}),'children':_0x50dc47}),M[_0xe816c0(0x392)]('div',{'className':_0xe816c0(0x126),'children':_0x5d981f})]});}return _0x56afd3?_0x2a2471():M[_0xb6ea8b(0x392)](p[_0xb6ea8b(0x167)],{'title':_0x318408['t'](_0xb6ea8b(0x2b1)),'children':_0x2a2471()});}var nt=Object[_0x5f4c13(0x1ee)],rt=(_0x22ea4f,_0x46b4af,_0x584bdb,_0x45ff7f)=>{const _0x2a3426=_0x5f4c13;for(var _0x5eef31=_0x45ff7f>0x1?void 0x0:_0x45ff7f?nt(_0x46b4af,_0x584bdb):_0x46b4af,_0x25a710=_0x22ea4f[_0x2a3426(0x231)]-0x1,_0x26f5c7;_0x25a710>=0x0;_0x25a710--)(_0x26f5c7=_0x22ea4f[_0x25a710])&&(_0x5eef31=_0x26f5c7(_0x5eef31)||_0x5eef31);return _0x5eef31;},K=(_0x4db39c,_0x12eb0a)=>(_0x140324,_0x1e537e)=>_0x12eb0a(_0x140324,_0x1e537e,_0x4db39c);exports[_0x5f4c13(0x386)]=class extends a[_0x5f4c13(0x28f)]{constructor(_0x1ecfa9,_0x23aa2e,_0x44211d,_0x32dcee){const _0x26a593=_0x5f4c13;super(),_(this,_0x26a593(0x16b),new I['BehaviorSubject'](u[_0x26a593(0x376)][_0x26a593(0x347)])),(this[_0x26a593(0x1fe)]=_0x1ecfa9,this[_0x26a593(0x1fd)]=_0x23aa2e,this[_0x26a593(0x217)]=_0x44211d,this[_0x26a593(0x12e)]=_0x32dcee,this[_0x26a593(0x1ff)](),this['_initStatusListener']());}[_0x5f4c13(0x1e9)](){const _0x1c87c3=_0x5f4c13;this[_0x1c87c3(0x3da)](this[_0x1c87c3(0x1fe)][_0x1c87c3(0x1c8)][_0x1c87c3(0x336)](I[_0x1c87c3(0x12d)](()=>{const _0x462cb1=_0x1c87c3,_0x2ab65f=this[_0x462cb1(0x1fe)][_0x462cb1(0x337)]();return _0x2ab65f?this[_0x462cb1(0x217)][_0x462cb1(0x23f)](_0x2ab65f[_0x462cb1(0x272)]()):I['of'](null);}),I[_0x1c87c3(0x12d)](_0x38ae2f=>_0x38ae2f?_0x38ae2f[_0x1c87c3(0x2fd)]:I['of'](u[_0x1c87c3(0x376)][_0x1c87c3(0x347)])))['subscribe'](_0x1ab59c=>{this['_status$']['next'](_0x1ab59c);}));}[_0x5f4c13(0x1ff)](){const _0x488041=_0x5f4c13;this[_0x488041(0x3da)](this[_0x488041(0x12e)][_0x488041(0x17d)](O[_0x488041(0x3a7)][_0x488041(0x3af)],()=>O[_0x488041(0x1e6)](ot({'status$':this[_0x488041(0x16b)]['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x5f4c13(0x12a)]),K(0x1,a['Inject'](a[_0x5f4c13(0x349)])),K(0x2,a[_0x5f4c13(0x21b)](u['CollaborationController'])),K(0x3,O['IUIPartsService'])],exports[_0x5f4c13(0x386)]);function ot(_0x375dbd){const {status$:_0x2a8811}=_0x375dbd;return function(){const _0x2d85df=_0x1124;return M[_0x2d85df(0x392)](it,{'status$':_0x2a8811});};}const Oe=a[_0x5f4c13(0x34f)](_0x5f4c13(0x359));var at=Object[_0x5f4c13(0x1ee)],ct=(_0x1354ea,_0x53db52,_0x10bb40,_0x115be1)=>{const _0x2926e7=_0x5f4c13;for(var _0x57c0e5=_0x115be1>0x1?void 0x0:_0x115be1?at(_0x53db52,_0x10bb40):_0x53db52,_0x14be76=_0x1354ea[_0x2926e7(0x231)]-0x1,_0x15a58d;_0x14be76>=0x0;_0x14be76--)(_0x15a58d=_0x1354ea[_0x14be76])&&(_0x57c0e5=_0x15a58d(_0x57c0e5)||_0x57c0e5);return _0x57c0e5;},Y=(_0x554583,_0x5c4207)=>(_0x442187,_0x4ab954)=>_0x5c4207(_0x442187,_0x4ab954,_0x554583);exports[_0x5f4c13(0x24c)]=class extends a['RxDisposable']{constructor(_0x359c7a,_0x1f4da9,_0x58078a,_0x36a823,_0x1d78bc){const _0x59d2a5=_0x5f4c13;super(),this[_0x59d2a5(0x13a)]=_0x359c7a,this['_logService']=_0x1f4da9,this[_0x59d2a5(0x274)]=_0x58078a,this[_0x59d2a5(0x2a7)]=_0x36a823,_0x1d78bc?_0x1d78bc==null||_0x1d78bc[_0x59d2a5(0x354)]()[_0x59d2a5(0x314)](()=>this[_0x59d2a5(0x335)]()):(this['_logService'][_0x59d2a5(0x222)](_0x59d2a5(0x149),_0x59d2a5(0x1e7)),this[_0x59d2a5(0x335)]());}async['_init'](){const _0xceea70=_0x5f4c13,_0x4bf0af=this[_0xceea70(0x13a)][_0xceea70(0x269)](_0xceea70(0x352)),_0x5472db=this[_0xceea70(0x13a)][_0xceea70(0x269)]('type'),_0x5188d5=this[_0xceea70(0x13a)]['getParam'](_0xceea70(0x257));if(!_0x4bf0af||!_0x5472db){this[_0xceea70(0x277)][_0xceea70(0x222)](_0xceea70(0x149),_0xceea70(0x13d));return;}const _0x2bd857=await this[_0xceea70(0x2a7)][_0xceea70(0x2f5)](_0x4bf0af,Number(_0x5472db),_0x5188d5);_0x2bd857&&_0x2bd857 instanceof a[_0xceea70(0x30e)]&&this[_0xceea70(0x2c7)](_0x2bd857);}async[_0x5f4c13(0x2c7)](_0x398146){const _0x1acfc7=_0x5f4c13;await this[_0x1acfc7(0x39e)](_0x398146),_0x398146[_0x1acfc7(0x316)]['pipe'](I['takeUntil'](this['dispose$']))[_0x1acfc7(0x154)](_0x5e400=>{_0x5e400&&this['_updateURLWithCurrentState'](_0x5e400);}),this[_0x1acfc7(0x13a)][_0x1acfc7(0x396)]['pipe'](I[_0x1acfc7(0x3c7)](this['dispose$']))[_0x1acfc7(0x154)](()=>this[_0x1acfc7(0x39e)](_0x398146));}[_0x5f4c13(0x387)](_0x59833e,_0x13d7fa=!0x1){const _0x2f04b2=_0x5f4c13,_0x5710be=this[_0x2f04b2(0x13a)][_0x2f04b2(0x269)]('subunit');_0x59833e[_0x2f04b2(0x2d6)]()!==_0x5710be&&this['_urlService'][_0x2f04b2(0x201)](_0x2f04b2(0x257),_0x59833e[_0x2f04b2(0x2d6)](),_0x13d7fa);}async[_0x5f4c13(0x39e)](_0xd7b762){const _0x4179ba=_0x5f4c13;var _0x1407e5;const _0x2f1364=this[_0x4179ba(0x13a)][_0x4179ba(0x269)](_0x4179ba(0x257));if(!_0x2f1364||!_0xd7b762[_0x4179ba(0x2b9)](_0x2f1364)){const _0x28d8f3=_0xd7b762[_0x4179ba(0x202)]()[0x0],_0x488a3a=_0xd7b762['getSheetBySheetId'](_0x28d8f3);if(!_0x488a3a)return;this[_0x4179ba(0x387)](_0x488a3a,!0x0),await this[_0x4179ba(0x274)][_0x4179ba(0x2a0)](v[_0x4179ba(0x370)]['id'],{'unitId':_0xd7b762[_0x4179ba(0x272)](),'subUnitId':_0x28d8f3});return;}((_0x1407e5=_0xd7b762[_0x4179ba(0x373)]())==null?void 0x0:_0x1407e5[_0x4179ba(0x2d6)]())!==_0x2f1364&&await this[_0x4179ba(0x274)][_0x4179ba(0x2a0)](v['SetWorksheetActivateCommand']['id'],{'unitId':_0xd7b762[_0x4179ba(0x272)](),'subUnitId':_0x2f1364});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a['ILogService']),Y(0x2,a[_0x5f4c13(0x1f4)]),Y(0x3,a[_0x5f4c13(0x21b)](u[_0x5f4c13(0x164)])),Y(0x4,a[_0x5f4c13(0x1da)](qe[_0x5f4c13(0x282)]))],exports[_0x5f4c13(0x24c)]);var lt=Object[_0x5f4c13(0x1ee)],_t=(_0x363793,_0x2bfad3,_0x179b9f,_0x296e50)=>{const _0x3d400d=_0x5f4c13;for(var _0x2cce1e=_0x296e50>0x1?void 0x0:_0x296e50?lt(_0x2bfad3,_0x179b9f):_0x2bfad3,_0x122ead=_0x363793[_0x3d400d(0x231)]-0x1,_0x3fcca1;_0x122ead>=0x0;_0x122ead--)(_0x3fcca1=_0x363793[_0x122ead])&&(_0x2cce1e=_0x3fcca1(_0x2cce1e)||_0x2cce1e);return _0x2cce1e;},De=(_0x44d753,_0x1f326a)=>(_0x28dee2,_0x582433)=>_0x1f326a(_0x28dee2,_0x582433,_0x44d753);let me=class extends a['RxDisposable']{constructor(_0x1ef203,_0x1995f3){const _0x3d0dc2=_0x5f4c13;super(),this['_docClipboardService']=_0x1ef203,this[_0x3d0dc2(0x31c)]=_0x1995f3,this[_0x3d0dc2(0x335)]();}['_init'](){const _0x5643ff=_0x5f4c13,_0x2cae76=this;this['disposeWithMe'](this[_0x5643ff(0x1cd)]['addClipboardHook']({'onBeforePasteImage':async _0x30694a=>{const _0x311471=_0x5643ff,_0x2cb767=await _0x2cae76[_0x311471(0x31c)][_0x311471(0x357)](_0x30694a);return _0x2cb767?{'source':_0x2cb767[_0x311471(0x1b9)],'imageSourceType':_0x2cb767[_0x311471(0x22a)]}:null;}}));}};me=_t([De(0x0,T[_0x5f4c13(0x12b)]),De(0x1,ze[_0x5f4c13(0x3b1)])],me);const Ne=[_0x5f4c13(0x3ae),_0x5f4c13(0x292),'green.600',_0x5f4c13(0x383),_0x5f4c13(0x364),_0x5f4c13(0x19e)];class Re extends a['Disposable']{constructor(){const _0xbcd07c=_0x5f4c13;super(...arguments),_(this,_0xbcd07c(0x198),new Map()),_(this,_0xbcd07c(0x299),0x0);}[_0x5f4c13(0x39f)](_0x430d8c){const _0x183fff=_0x5f4c13;if(this[_0x183fff(0x198)][_0x183fff(0x17f)](_0x430d8c))return this['_assignedColors'][_0x183fff(0x389)](_0x430d8c);const _0x400f63=Ne[this[_0x183fff(0x299)]];return this[_0x183fff(0x299)]=(this['_colorIndex']+0x1)%Ne[_0x183fff(0x231)],this[_0x183fff(0x198)][_0x183fff(0x310)](_0x430d8c,_0x400f63),_0x400f63;}}function Fe(_0x4d2e81){const _0x3dcf5f=_0x5f4c13;let _0x12312f='';for(const _0x5fb033 of _0x4d2e81){const {startOffset:_0xd4aa53,endOffset:_0x2b8d57,isActive:_0x159c79,rangeType:_0x409e38,segmentId:_0x281089,segmentPage:_0x5e6de1}=_0x5fb033;_0x12312f[_0x3dcf5f(0x231)]&&(_0x12312f+=','),_0x12312f+=_0xd4aa53+':'+_0x2b8d57+':'+(_0x159c79?'1':'0')+':'+_0x409e38+':'+_0x281089+':'+_0x5e6de1;}return _0x12312f;}function ht(_0x5c27b7){const _0x12a4b2=_0x5f4c13,_0x56cfee=_0x5c27b7[_0x12a4b2(0x289)](','),_0x4fabc2=[];for(const _0x35a784 of _0x56cfee){const [_0x25844b,_0x4c5f45,_0x46f08a,_0x4bb133,_0x4e3c1b,_0x153375]=_0x35a784['split'](':');_0x4fabc2[_0x12a4b2(0x261)]({'startOffset':Number(_0x25844b),'endOffset':Number(_0x4c5f45),'collapsed':_0x25844b===_0x4c5f45,'isActive':_0x46f08a==='1','rangeType':_0x4bb133===a[_0x12a4b2(0x16d)][_0x12a4b2(0x148)]?a[_0x12a4b2(0x16d)][_0x12a4b2(0x148)]:a[_0x12a4b2(0x16d)]['RECT'],'segmentId':typeof _0x4e3c1b==_0x12a4b2(0x260)?String(_0x4e3c1b):'','segmentPage':Number(_0x153375!=null?_0x153375:-0x1)});}return _0x4fabc2[_0x12a4b2(0x1b8)](_0x13fead=>_0x13fead['isActive'])||(_0x4fabc2[0x0]['isActive']=!0x0),_0x4fabc2;}class be extends a[_0x5f4c13(0x1f7)]{constructor(){const _0x27d681=_0x5f4c13;super(...arguments),_(this,_0x27d681(0x2ee),new I[(_0x27d681(0x2ed))](null)),_(this,'collabCursorState$',this[_0x27d681(0x2ee)][_0x27d681(0x1dc)]());}[_0x5f4c13(0x3c1)](_0x41e9ed){const _0x5ee3f8=_0x5f4c13,{unitID:_0x424bc6,memberID:_0x3b64da,textRanges:_0x460de0}=_0x41e9ed,_0x364334=Fe(_0x460de0);if(_0x364334==='')return;const _0x1952f7={'unitID':_0x424bc6,'memberID':_0x3b64da,'selection':_0x364334};this['_collabCursorState$'][_0x5ee3f8(0x302)](_0x1952f7);}}var ut=Object[_0x5f4c13(0x1ee)],It=(_0x35ecd5,_0x270819,_0x2209ec,_0x331aac)=>{const _0x256cab=_0x5f4c13;for(var _0x315d35=_0x331aac>0x1?void 0x0:_0x331aac?ut(_0x270819,_0x2209ec):_0x270819,_0x2fec73=_0x35ecd5[_0x256cab(0x231)]-0x1,_0x5d4a3b;_0x2fec73>=0x0;_0x2fec73--)(_0x5d4a3b=_0x35ecd5[_0x2fec73])&&(_0x315d35=_0x5d4a3b(_0x315d35)||_0x315d35);return _0x315d35;},U=(_0x3bc4fb,_0x2d5a2d)=>(_0x4ce27a,_0x4a8da9)=>_0x2d5a2d(_0x4ce27a,_0x4a8da9,_0x3bc4fb);const St=0x12c,dt=0x64;let ve=class extends a[_0x5f4c13(0x1f7)]{constructor(_0x18ec84,_0x283063,_0x35d439,_0x116259,_0x5c1779,_0x5c825d,_0x21a6c7,_0x1b9fc8,_0x1d14ce){const _0x3bdc57=_0x5f4c13;super(),_(this,_0x3bdc57(0x20f),!0x1),_(this,_0x3bdc57(0x335),!0x1),_(this,_0x3bdc57(0x1df),new I[(_0x3bdc57(0x2ed))](new Map())),_(this,_0x3bdc57(0x23c),this[_0x3bdc57(0x1df)]['asObservable']()),_(this,'_roomMembers$',new I['BehaviorSubject']([])),_(this,_0x3bdc57(0x155),this['_roomMembers$'][_0x3bdc57(0x336)](I['debounceTime'](St))),_(this,_0x3bdc57(0x331),a['debounce'](_0x57c1cb=>{const _0x2fd12b=_0x3bdc57,_0x19b7c5={'eventID':g[_0x2fd12b(0x30d)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':Fe(_0x57c1cb)}};this['_session'][_0x2fd12b(0x19f)](_0x19b7c5,this[_0x2fd12b(0x26a)]);},dt)),(this[_0x3bdc57(0x26a)]=_0x18ec84,this[_0x3bdc57(0x263)]=_0x283063,this['_injector']=_0x35d439,this['_colorAssignService']=_0x116259,this['_memberService']=_0x5c1779,this[_0x3bdc57(0x2f4)]=_0x5c825d,this['_transformService']=_0x21a6c7,this[_0x3bdc57(0x1fe)]=_0x1b9fc8,this[_0x3bdc57(0x274)]=_0x1d14ce);}get['cursorInfo'](){const _0x1c20c1=_0x5f4c13;return this[_0x1c20c1(0x1df)][_0x1c20c1(0x2cf)]();}get[_0x5f4c13(0x34c)](){const _0x5c10df=_0x5f4c13;return this['_roomMembers$'][_0x5c10df(0x2cf)]();}['dispose'](){const _0x37c814=_0x5f4c13;super[_0x37c814(0x18f)](),this[_0x37c814(0x1df)][_0x37c814(0x302)](new Map()),this['_cursorInfo$'][_0x37c814(0x382)](),this['_roomMembers$'][_0x37c814(0x302)]([]),this[_0x37c814(0x22d)]['complete']();}[_0x5f4c13(0x353)](){const _0x3a866a=_0x5f4c13;this[_0x3a866a(0x335)]||(this['_init']=!0x0,this[_0x3a866a(0x263)][_0x3a866a(0x3e0)][_0x3a866a(0x336)](I[_0x3a866a(0x3c7)](this[_0x3a866a(0x2ce)]))[_0x3a866a(0x154)](_0x28d3f6=>{const _0x52c285=_0x3a866a;_0x28d3f6===u['SessionStatus'][_0x52c285(0x210)]?this['_toggleOnline']():this[_0x52c285(0x3d1)]();}),this[_0x3a866a(0x263)][_0x3a866a(0x38b)][_0x3a866a(0x336)](I[_0x3a866a(0x3c7)](this[_0x3a866a(0x2ce)]))['subscribe'](_0x41c5dc=>{const _0x2c5b83=_0x3a866a,_0x1a4c3c=_0x41c5dc[_0x2c5b83(0x2c0)];_0x1a4c3c===g['CollaborationEvent'][_0x2c5b83(0x2a3)]&&this[_0x2c5b83(0x3ad)](_0x41c5dc),_0x1a4c3c===g[_0x2c5b83(0x30d)][_0x2c5b83(0x139)]&&this[_0x2c5b83(0x319)](_0x41c5dc);}),this[_0x3a866a(0x3da)](this[_0x3a866a(0x274)][_0x3a866a(0x3d8)](_0x1fd3f2=>{const _0x3ed44d=_0x3a866a,_0x54e18a=_0x1fd3f2[_0x3ed44d(0x346)];_0x54e18a!=null&&this[_0x3ed44d(0x20f)]&&_0x1fd3f2['id']===V[_0x3ed44d(0x2ab)]['id']&&_0x54e18a[_0x3ed44d(0x34a)]===this[_0x3ed44d(0x26a)]&&_0x54e18a['isEditing']===!0x1&&_0x54e18a['ranges'][_0x3ed44d(0x231)]>0x0&&this[_0x3ed44d(0x331)](_0x54e18a[_0x3ed44d(0x36e)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x3a866a(0x336)](I[_0x3a866a(0x3c7)](this['dispose$']))[_0x3a866a(0x154)](_0x4a4984=>{const _0x462216=_0x3a866a;if((_0x4a4984==null?void 0x0:_0x4a4984[_0x462216(0x26a)])!==this[_0x462216(0x26a)])return;const _0x35fdcf={'eventID':g[_0x462216(0x30d)][_0x462216(0x2a3)],'data':_0x4a4984};this[_0x462216(0x3ad)](_0x35fdcf);}),this[_0x3a866a(0x3da)](this[_0x3a866a(0x274)]['onCommandExecuted'](_0x1540a3=>{const _0x985c48=_0x3a866a;if(_0x1540a3['params']==null)return;const _0x4fbeeb=_0x1540a3['params'];if(_0x1540a3['id']!==V[_0x985c48(0x24e)]['id']||_0x4fbeeb[_0x985c48(0x34a)]!==this[_0x985c48(0x26a)])return;const _0x3862e2={'id':_0x985c48(0x209),'params':_0x4fbeeb},_0xf2e6bc=this[_0x985c48(0x1c5)];for(const [_0x458ba6,_0x3e15d6]of _0xf2e6bc){const _0x1b3362={'id':_0x985c48(0x209),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3e15d6['ranges']}},_0x4307a9=this['_transformService'][_0x985c48(0x31d)](_0x3862e2,_0x1b3362,!0x1);if(g[_0x985c48(0x140)](_0x4307a9))throw _0x4307a9[_0x985c48(0x1dd)];_0xf2e6bc[_0x985c48(0x310)](_0x458ba6,{..._0x3e15d6,'ranges':_0x4307a9[_0x985c48(0x3c4)]['params'][_0x985c48(0x304)]});}queueMicrotask(()=>{const _0x249a29=_0x985c48;this[_0x249a29(0x1df)][_0x249a29(0x302)](_0xf2e6bc);});})));}[_0x5f4c13(0x3ad)](_0x4e3ebc){const _0x5ae3ea=_0x5f4c13;var _0x53a9d9,_0x2fc61d;const {memberID:_0x1957a2,selection:_0x4d4a43}=_0x4e3ebc[_0x5ae3ea(0x31f)],_0x4cca04=ht(_0x4d4a43),_0x2ab69d=(_0x2fc61d=(_0x53a9d9=this[_0x5ae3ea(0x22c)][_0x5ae3ea(0x1bc)](this[_0x5ae3ea(0x26a)],_0x1957a2))==null?void 0x0:_0x53a9d9[_0x5ae3ea(0x25c)])!=null?_0x2fc61d:_0x5ae3ea(0x14c),_0xd9ac7a={'color':this[_0x5ae3ea(0x324)][_0x5ae3ea(0x39f)](_0x1957a2),'name':_0x2ab69d,'ranges':_0x4cca04},_0x371b92=this[_0x5ae3ea(0x1c5)];_0x371b92[_0x5ae3ea(0x310)](_0x1957a2,_0xd9ac7a),this[_0x5ae3ea(0x1df)][_0x5ae3ea(0x302)](_0x371b92);}[_0x5f4c13(0x319)](_0x1d60a0){const _0x2c0d34=_0x5f4c13,{memberID:_0x290b04}=_0x1d60a0[_0x2c0d34(0x31f)],_0x571d06=this[_0x2c0d34(0x1c5)];_0x571d06[_0x2c0d34(0x1aa)](_0x290b04),this['_cursorInfo$']['next'](_0x571d06);}[_0x5f4c13(0x3a0)](){const _0x3b63c2=_0x5f4c13;var _0x18ede9;if(this[_0x3b63c2(0x20f)]=!0x0,((_0x18ede9=this['_univerInstanceService'][_0x3b63c2(0x337)]())==null?void 0x0:_0x18ede9[_0x3b63c2(0x272)]())!==this[_0x3b63c2(0x26a)])return;const _0x3d6c4d=this[_0x3b63c2(0x1fd)]['get'](V[_0x3b63c2(0x345)])[_0x3b63c2(0x192)]();Array['isArray'](_0x3d6c4d)&&_0x3d6c4d[_0x3b63c2(0x231)]>0x0&&this[_0x3b63c2(0x331)](_0x3d6c4d);}['_toggleOffline'](){const _0x204599=_0x5f4c13;this[_0x204599(0x20f)]=!0x1;}};ve=It([U(0x2,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),U(0x3,a[_0x5f4c13(0x21b)](Re)),U(0x4,a[_0x5f4c13(0x21b)](u['MemberService'])),U(0x5,a[_0x5f4c13(0x21b)](be)),U(0x6,g[_0x5f4c13(0x2e7)]),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x5f4c13(0x1f4)])],ve);var ft=Object[_0x5f4c13(0x1ee)],mt=(_0x359d86,_0x5c8946,_0x5ef26b,_0x45aab2)=>{const _0x3b38a0=_0x5f4c13;for(var _0x1c7b67=_0x45aab2>0x1?void 0x0:_0x45aab2?ft(_0x5c8946,_0x5ef26b):_0x5c8946,_0x3a23a2=_0x359d86[_0x3b38a0(0x231)]-0x1,_0xdc02c8;_0x3a23a2>=0x0;_0x3a23a2--)(_0xdc02c8=_0x359d86[_0x3a23a2])&&(_0x1c7b67=_0xdc02c8(_0x1c7b67)||_0x1c7b67);return _0x1c7b67;},w=(_0x2d53b8,_0x178e4c)=>(_0x468778,_0x4341f7)=>_0x178e4c(_0x468778,_0x4341f7,_0x2d53b8);const vt=0x12c,gt=0x64,Et=()=>{let _0x18c29a=[],_0x64da93=!0x1;return _0x599b8b=>{_0x18c29a['push'](_0x599b8b),_0x64da93||(_0x64da93=!0x0,setTimeout(()=>{const _0xc2482c=_0x1124;_0x18c29a[_0xc2482c(0x3ac)](_0x1fd010=>_0x1fd010()),_0x18c29a=[],_0x64da93=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x59267c,_0x14988f,_0x2f9cf0,_0x147449,_0x2e09a6,_0x12d359,_0x51d980,_0x1f9428){const _0x164b5d=_0x5f4c13;super(),_(this,_0x164b5d(0x20f),!0x1),_(this,_0x164b5d(0x335),!0x1),_(this,'_cursorInfo$',new I[(_0x164b5d(0x2ed))](new Map())),_(this,_0x164b5d(0x23c),this[_0x164b5d(0x1df)]['asObservable']()),_(this,_0x164b5d(0x22d),new I[(_0x164b5d(0x2ed))]([])),_(this,'roomMembers$',this[_0x164b5d(0x22d)][_0x164b5d(0x336)](I[_0x164b5d(0x2a8)](vt))),_(this,'_updateLocalCursor',a[_0x164b5d(0x163)]((_0x41a85e,_0x4d6789)=>{const _0x6e622e=_0x164b5d,_0x595106={'eventID':g[_0x6e622e(0x30d)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x6e622e(0x26a)],'memberID':this[_0x6e622e(0x263)][_0x6e622e(0x13e)](),'selection':B[_0x6e622e(0x3cf)](_0x41a85e,_0x4d6789[_0x6e622e(0x342)])}};this[_0x6e622e(0x263)][_0x6e622e(0x19f)](_0x595106,this[_0x6e622e(0x26a)]);},gt)),(this['unitID']=_0x59267c,this[_0x164b5d(0x263)]=_0x14988f,this[_0x164b5d(0x1fd)]=_0x2f9cf0,this[_0x164b5d(0x324)]=_0x147449,this[_0x164b5d(0x22c)]=_0x2e09a6,this[_0x164b5d(0x1fe)]=_0x12d359,this[_0x164b5d(0x274)]=_0x51d980,this[_0x164b5d(0x3e2)]=_0x1f9428);}get[_0x5f4c13(0x1c5)](){const _0x3989eb=_0x5f4c13;return this[_0x3989eb(0x1df)][_0x3989eb(0x2cf)]();}get[_0x5f4c13(0x34c)](){const _0x5de91b=_0x5f4c13;return this[_0x5de91b(0x22d)][_0x5de91b(0x2cf)]();}[_0x5f4c13(0x18f)](){const _0x22f95d=_0x5f4c13;super['dispose'](),this[_0x22f95d(0x1df)][_0x22f95d(0x302)](new Map()),this['_cursorInfo$'][_0x22f95d(0x382)](),this['_roomMembers$'][_0x22f95d(0x302)]([]),this['_roomMembers$'][_0x22f95d(0x382)]();}[_0x5f4c13(0x353)](){const _0x22dacd=_0x5f4c13;this[_0x22dacd(0x335)]||(this['_init']=!0x0,this[_0x22dacd(0x263)][_0x22dacd(0x3e0)][_0x22dacd(0x336)](I[_0x22dacd(0x3c7)](this[_0x22dacd(0x2ce)]))[_0x22dacd(0x154)](_0x1b9717=>{const _0x43a150=_0x22dacd;_0x1b9717===u[_0x43a150(0x378)]['ONLINE']?this[_0x43a150(0x3a0)]():this[_0x43a150(0x3d1)]();}),this[_0x22dacd(0x263)][_0x22dacd(0x38b)][_0x22dacd(0x336)](I[_0x22dacd(0x3c7)](this[_0x22dacd(0x2ce)]))['subscribe'](_0x68ff4d=>{const _0x55755e=_0x22dacd,_0x17e826=_0x68ff4d['eventID'];_0x17e826===g[_0x55755e(0x30d)][_0x55755e(0x2a3)]&&this[_0x55755e(0x3ad)](_0x68ff4d),_0x17e826===g['CollaborationEvent']['USERS_LEAVE']&&this[_0x55755e(0x319)](_0x68ff4d);}),this['_onRefRangeChange'](),this[_0x22dacd(0x3da)](this[_0x22dacd(0x274)][_0x22dacd(0x3d8)](_0x5dc585=>{const _0x302f73=_0x22dacd;if(this[_0x302f73(0x20f)]&&_0x5dc585['id']===v[_0x302f73(0x307)]['id']&&_0x5dc585[_0x302f73(0x346)][_0x302f73(0x34a)]===this['unitID']){const _0x20da38=_0x5dc585[_0x302f73(0x346)];this[_0x302f73(0x331)](_0x20da38[_0x302f73(0x283)],_0x20da38[_0x302f73(0x2d0)][0x0]);}})));}['_onCursorUpdate'](_0x2ec254){const _0x2243d2=_0x5f4c13;var _0x27f2e4,_0x36993d;const {memberID:_0x2b5225,selection:_0xd1a963}=_0x2ec254[_0x2243d2(0x31f)],{sheetName:_0x982153,range:_0x33fab1}=B[_0x2243d2(0x195)](_0xd1a963),_0x27c26b={'name':(_0x36993d=(_0x27f2e4=this[_0x2243d2(0x22c)][_0x2243d2(0x1bc)](this['unitID'],_0x2b5225))==null?void 0x0:_0x27f2e4[_0x2243d2(0x25c)])!=null?_0x36993d:'Unknown\x20user','range':this[_0x2243d2(0x1a8)](_0x982153,_0x33fab1),'sheetID':_0x982153,'color':this[_0x2243d2(0x324)][_0x2243d2(0x39f)](_0x2b5225),'selection':_0xd1a963},_0x518e44=this['cursorInfo'];_0x518e44[_0x2243d2(0x310)](_0x2b5225,_0x27c26b),this[_0x2243d2(0x1df)][_0x2243d2(0x302)](_0x518e44);}[_0x5f4c13(0x319)](_0x3bc8f2){const _0x2e1e87=_0x5f4c13,{memberID:_0x2c8288}=_0x3bc8f2[_0x2e1e87(0x31f)],_0x10b90b=this[_0x2e1e87(0x1c5)];_0x10b90b[_0x2e1e87(0x1aa)](_0x2c8288),this[_0x2e1e87(0x1df)][_0x2e1e87(0x302)](_0x10b90b);}[_0x5f4c13(0x1a8)](_0x5591e8,_0x3116c0){const _0x3368ae=_0x5f4c13;var _0x52681c,_0x5b20c9;const _0x5d36a2=(_0x5b20c9=(_0x52681c=this[_0x3368ae(0x1fe)]['getUniverSheetInstance'](this[_0x3368ae(0x26a)]))==null?void 0x0:_0x52681c[_0x3368ae(0x2b9)](_0x5591e8))==null?void 0x0:_0x5b20c9['getMergeData']();return(_0x5d36a2==null?void 0x0:_0x5d36a2[_0x3368ae(0x295)](_0x122c6c=>a[_0x3368ae(0x293)][_0x3368ae(0x229)](_0x122c6c,_0x3116c0)))||_0x3116c0;}[_0x5f4c13(0x224)](){const _0x790519=_0x5f4c13,_0x53779a=new a[(_0x790519(0x36d))](),_0x14afac=Et(),_0x24036d=()=>{const _0x3044a1=_0x790519;_0x53779a['dispose']();const _0x4013be=(_0x5202b5,_0x3dd9b3,_0x5ed125,_0x270732)=>{const _0x2f8417=_0x1124;let _0x1acae0=[];switch(_0x5202b5['id']){case v[_0x2f8417(0x1cf)]['DeleteRangeMoveLeftCommandId']:{_0x1acae0=v['handleDeleteRangeMoveLeft'](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x17b)]:{_0x1acae0=v[_0x2f8417(0x15f)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x264)]:{_0x1acae0=v[_0x2f8417(0x37f)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)]['InsertRangeMoveDownCommandId']:{_0x1acae0=v['handleInsertRangeMoveDown'](_0x5202b5,_0x270732);break;}case v['EffectRefRangId'][_0x2f8417(0x162)]:{_0x1acae0=v['handleInsertRangeMoveRight'](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x27b)]:{_0x1acae0=v['handleInsertRow'](_0x5202b5,_0x270732);break;}case v['EffectRefRangId'][_0x2f8417(0x254)]:{_0x1acae0=v[_0x2f8417(0x3b4)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)][_0x2f8417(0x16e)]:{_0x1acae0=v[_0x2f8417(0x3db)](_0x5202b5,_0x270732);break;}case v[_0x2f8417(0x1cf)]['RemoveRowCommandId']:{_0x1acae0=v[_0x2f8417(0x2c1)](_0x5202b5,_0x270732);break;}}const _0x186931=v[_0x2f8417(0x32e)](_0x1acae0,_0x270732),_0x1a63c6=this[_0x2f8417(0x1c5)][_0x2f8417(0x389)](_0x3dd9b3);if(_0x1a63c6&&_0x186931){const _0x5345f4={..._0x1a63c6,'range':_0x186931};this['cursorInfo']['set'](_0x3dd9b3,_0x5345f4),_0x14afac(()=>{const _0x454036=_0x2f8417,_0x1f85b0=this[_0x454036(0x3e2)][_0x454036(0x329)](_0x186931,_0xef98bc=>(_0x1f85b0[_0x454036(0x18f)](),_0x4013be(_0xef98bc,_0x3dd9b3,_0x5ed125,_0x186931)));_0x53779a['add'](_0x1f85b0);});}return{'redos':[],'undos':[]};};this[_0x3044a1(0x1c5)][_0x3044a1(0x3ac)]((_0x371c43,_0x308470)=>{const _0x56d00f=_0x3044a1,{range:_0x25d552,sheetID:_0x5cd087}=_0x371c43,_0x5ee91f=this['_refRangeService'][_0x56d00f(0x329)](_0x25d552,_0xc913b1=>(_0x5ee91f[_0x56d00f(0x18f)](),_0x4013be(_0xc913b1,_0x308470,_0x5cd087,_0x25d552)));_0x53779a['add'](_0x5ee91f);});};this[_0x790519(0x3da)](a[_0x790519(0x11e)](this[_0x790519(0x1df)][_0x790519(0x154)](()=>{_0x24036d();})));}[_0x5f4c13(0x3a0)](){const _0x3d2f03=_0x5f4c13;var _0x14723a,_0x40d6e9;if(this[_0x3d2f03(0x20f)]=!0x0,((_0x14723a=this[_0x3d2f03(0x1fe)][_0x3d2f03(0x337)]())==null?void 0x0:_0x14723a[_0x3d2f03(0x272)]())!==this[_0x3d2f03(0x26a)])return;const _0x3a5b47=(_0x40d6e9=this[_0x3d2f03(0x1fd)][_0x3d2f03(0x389)](v['SheetsSelectionsService'])[_0x3d2f03(0x14a)]())==null?void 0x0:_0x40d6e9[0x0],_0xf8137d=this['_univerInstanceService'][_0x3d2f03(0x3b3)](a[_0x3d2f03(0x1ea)]['UNIVER_SHEET'])[_0x3d2f03(0x373)]();_0x3a5b47&&_0xf8137d&&this[_0x3d2f03(0x331)](_0xf8137d['getSheetId'](),_0x3a5b47);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),w(0x3,a[_0x5f4c13(0x21b)](Re)),w(0x4,a[_0x5f4c13(0x21b)](u[_0x5f4c13(0x1d0)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x5f4c13(0x1f4)]),w(0x7,a[_0x5f4c13(0x21b)](v[_0x5f4c13(0x21f)]))],ge);var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x226ce1,_0x2cca2c,_0x33a60d,_0x34e044)=>{const _0x4cc3a3=_0x5f4c13;for(var _0x1d359e=_0x34e044>0x1?void 0x0:_0x34e044?Ct(_0x2cca2c,_0x33a60d):_0x2cca2c,_0x2f4eab=_0x226ce1[_0x4cc3a3(0x231)]-0x1,_0x25337d;_0x2f4eab>=0x0;_0x2f4eab--)(_0x25337d=_0x226ce1[_0x2f4eab])&&(_0x1d359e=_0x25337d(_0x1d359e)||_0x1d359e);return _0x1d359e;},ce=(_0x2e52cc,_0x6ad805)=>(_0x17bb69,_0xe43149)=>_0x6ad805(_0x17bb69,_0xe43149,_0x2e52cc);let F=class extends a['RxDisposable']{constructor(_0x3af97e,_0x5e07ec,_0xc12fb0){const _0x3ccbb5=_0x5f4c13;super(),_(this,_0x3ccbb5(0x25b),new Map()),_(this,'_entityInit$',new I[(_0x3ccbb5(0x1e3))]()),(this['_univerInstanceService']=_0x3af97e,this[_0x3ccbb5(0x1fd)]=_0x5e07ec,this[_0x3ccbb5(0x363)]=_0xc12fb0,this['_init']());}[_0x5f4c13(0x18f)](){const _0x527638=_0x5f4c13;super[_0x527638(0x18f)](),this[_0x527638(0x350)][_0x527638(0x382)](),this[_0x527638(0x25b)][_0x527638(0x3ac)](_0x254745=>_0x254745['dispose']());}[_0x5f4c13(0x174)](_0x326b5b){const _0x4df667=_0x5f4c13;return this[_0x4df667(0x25b)][_0x4df667(0x17f)](_0x326b5b)?this['_entities'][_0x4df667(0x389)](_0x326b5b)[_0x4df667(0x23c)]:this[_0x4df667(0x350)]['pipe'](I['filter'](_0x88b812=>_0x88b812[_0x4df667(0x26a)]===_0x326b5b),I['switchMap'](_0x5ea81f=>_0x5ea81f[_0x4df667(0x23c)]));}[_0x5f4c13(0x335)](){const _0x45cf05=_0x5f4c13;this[_0x45cf05(0x1fe)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x45cf05(0x235)])['pipe'](I[_0x45cf05(0x3c7)](this[_0x45cf05(0x2ce)]))[_0x45cf05(0x154)](async _0x219775=>{const _0x572117=_0x45cf05,_0x10f740=_0x219775[_0x572117(0x272)](),_0x26e782=await this[_0x572117(0x391)](_0x10f740);this['_entityInit$'][_0x572117(0x302)](_0x26e782),this[_0x572117(0x25b)][_0x572117(0x310)](_0x10f740,_0x26e782);}),this[_0x45cf05(0x1fe)][_0x45cf05(0x296)](a[_0x45cf05(0x1ea)][_0x45cf05(0x340)])[_0x45cf05(0x336)](I[_0x45cf05(0x3c7)](this[_0x45cf05(0x2ce)]))[_0x45cf05(0x336)](I[_0x45cf05(0x33b)](_0x1df7a9=>!_0x1df7a9[_0x45cf05(0x272)]()[_0x45cf05(0x317)]('__')))['subscribe'](async _0x4a2ad2=>{const _0x43c969=_0x45cf05,_0x585441=_0x4a2ad2['getUnitId'](),_0x3ce635=await this[_0x43c969(0x200)](_0x585441);this[_0x43c969(0x350)][_0x43c969(0x302)](_0x3ce635),this['_entities'][_0x43c969(0x310)](_0x585441,_0x3ce635);}),I[_0x45cf05(0x1e2)](this['_univerInstanceService'][_0x45cf05(0x2d3)](a[_0x45cf05(0x1ea)][_0x45cf05(0x340)]),this['_univerInstanceService'][_0x45cf05(0x2d3)](a[_0x45cf05(0x1ea)]['UNIVER_SHEET']))[_0x45cf05(0x336)](I[_0x45cf05(0x3c7)](this[_0x45cf05(0x2ce)]))[_0x45cf05(0x154)](_0x328047=>{const _0x1cc528=_0x45cf05,_0x31c489=_0x328047[_0x1cc528(0x272)](),_0x48c6e9=this[_0x1cc528(0x25b)][_0x1cc528(0x389)](_0x31c489);_0x48c6e9&&(_0x48c6e9['dispose'](),this[_0x1cc528(0x25b)]['delete'](_0x31c489));});}async['_startSheetCollabCursor'](_0x12f475){const _0x336212=_0x5f4c13,_0x2ac6a3=await this[_0x336212(0x363)]['requireSession'](_0x12f475),_0x297eaa=this[_0x336212(0x1fd)][_0x336212(0x21c)](ge,_0x12f475,_0x2ac6a3);return _0x297eaa['init'](),_0x297eaa;}async[_0x5f4c13(0x200)](_0x500ba0){const _0x14c40f=_0x5f4c13,_0xc62d10=await this[_0x14c40f(0x363)][_0x14c40f(0x3a8)](_0x500ba0),_0x3a47ef=this[_0x14c40f(0x1fd)][_0x14c40f(0x21c)](ve,_0x500ba0,_0xc62d10);return _0x3a47ef['init'](),_0x3a47ef;}};F=Tt([ce(0x0,a[_0x5f4c13(0x12a)]),ce(0x1,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),ce(0x2,a[_0x5f4c13(0x21b)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0xb56f2f,_0x2b5927){const _0xd606d2=_0x5f4c13;let {radius:_0x123a32,width:_0x20a15a,height:_0x340692}=_0x2b5927;_0x123a32=_0x123a32!=null?_0x123a32:0x0,_0x20a15a=_0x20a15a!=null?_0x20a15a:0x1e,_0x340692=_0x340692!=null?_0x340692:0x1e;let _0x359428=0x0,_0x12e774=0x0,_0x42ff54=0x0;_0x359428=_0x12e774=_0x42ff54=Math[_0xd606d2(0x1d5)](_0x123a32,_0x20a15a/0x2,_0x340692/0x2),_0xb56f2f[_0xd606d2(0x175)](),_0xb56f2f['moveTo'](_0x359428,0x0),_0xb56f2f[_0xd606d2(0x309)](_0x20a15a-_0x12e774,0x0),_0xb56f2f[_0xd606d2(0x196)](_0x20a15a-_0x12e774,_0x12e774,_0x12e774,Math['PI']*0x3/0x2,0x0,!0x1),_0xb56f2f[_0xd606d2(0x309)](_0x20a15a,_0x340692-_0x42ff54),_0xb56f2f[_0xd606d2(0x196)](_0x20a15a-_0x42ff54,_0x340692-_0x42ff54,_0x42ff54,0x0,Math['PI']/0x2,!0x1),_0xb56f2f[_0xd606d2(0x309)](0x0,_0x340692),_0xb56f2f[_0xd606d2(0x309)](0x0,_0x359428),_0xb56f2f[_0xd606d2(0x196)](_0x359428,_0x359428,_0x359428,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xb56f2f[_0xd606d2(0x199)](),_0x2b5927[_0xd606d2(0x233)]&&(_0xb56f2f[_0xd606d2(0x247)](),_0xb56f2f[_0xd606d2(0x291)]=_0x2b5927['fill'],_0x2b5927[_0xd606d2(0x2e6)]==='evenodd'?_0xb56f2f[_0xd606d2(0x233)](_0xd606d2(0x20e)):_0xb56f2f[_0xd606d2(0x233)](),_0xb56f2f[_0xd606d2(0x146)]());}class re extends C['Shape']{constructor(_0x14d916,_0x4c1caf){const _0x5ce37b=_0x5f4c13;super(_0x14d916,_0x4c1caf),_(this,_0x5ce37b(0x3d5)),_(this,_0x5ce37b(0x339)),(this[_0x5ce37b(0x3d5)]=_0x4c1caf==null?void 0x0:_0x4c1caf['color'],this[_0x5ce37b(0x339)]=_0x4c1caf==null?void 0x0:_0x4c1caf[_0x5ce37b(0x339)]);}static[_0x5f4c13(0x3e6)](_0x197a14,_0x3ccbfb){const _0x1059df=_0x5f4c13,{text:_0x57ae38,color:_0x1b1b2e}=_0x3ccbfb;_0x197a14[_0x1059df(0x247)](),_0x197a14[_0x1059df(0x29e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x17534b=_0x197a14['measureText'](_0x57ae38)[_0x1059df(0x1a9)],_0x390d11=Math[_0x1059df(0x1d5)](_0x17534b+0x2*le,Ue);Ot(_0x197a14,{'height':X,'radius':0x4,'width':_0x390d11,'fill':_0x1b1b2e}),_0x197a14['fillStyle']='#FFF';const _0xb0cb93=le,_0x1d5778=X-pt,_0x249c68=Ue-0x2*le;if(_0x17534b>_0x249c68){let _0x5c5e82='',_0x77be12=0x0;for(const _0x119932 of _0x57ae38){const _0x252da2=_0x197a14[_0x1059df(0x16c)](_0x119932)['width'];if(_0x77be12+_0x252da2<=_0x249c68-_0x197a14[_0x1059df(0x16c)]('...')[_0x1059df(0x1a9)])_0x5c5e82+=_0x119932,_0x77be12+=_0x252da2;else{_0x5c5e82+=_0x1059df(0x2da);break;}}_0x197a14['fillText'](_0x5c5e82,_0xb0cb93,_0x1d5778);}else _0x197a14[_0x1059df(0x390)](_0x57ae38,_0xb0cb93,_0x1d5778);_0x197a14[_0x1059df(0x146)]();}[_0x5f4c13(0x305)](_0x85e1d2){const _0x55a4b4=_0x5f4c13;re[_0x55a4b4(0x3e6)](_0x85e1d2,this);}}const _e='collab-text-anchor-',Rt='collab-text-range-',bt=_0x5f4c13(0x341),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x5f4c13(0x3bf);class Le{constructor(_0x1251cf,_0xac1d40,_0x4ac58d,_0x2000bf){const _0x536408=_0x5f4c13;_(this,_0x536408(0x11c),[]),_(this,_0x536408(0x141),null),_(this,_0x536408(0x3b9),null),_(this,_0x536408(0x3e3),null),_(this,_0x536408(0x207),null),_(this,_0x536408(0x2b8),null),(this[_0x536408(0x3cd)]=_0x1251cf,this[_0x536408(0x22e)]=_0xac1d40,this[_0x536408(0x33f)]=_0x4ac58d,this['_document']=_0x2000bf,this[_0x536408(0x15c)]());}set[_0x5f4c13(0x371)](_0x3cca63){const _0x33f8ce=_0x5f4c13;_0x3cca63?(this[_0x33f8ce(0x3e3)]&&this[_0x33f8ce(0x3e3)][_0x33f8ce(0x150)](),this[_0x33f8ce(0x3b9)]&&this[_0x33f8ce(0x3b9)][_0x33f8ce(0x3b8)]()):(this[_0x33f8ce(0x3e3)]&&this[_0x33f8ce(0x3e3)][_0x33f8ce(0x3b8)](),this[_0x33f8ce(0x3b9)]&&this[_0x33f8ce(0x3b9)]['hide']());}[_0x5f4c13(0x18f)](){const _0x18f32c=_0x5f4c13;for(const _0x482cf5 of this['_shapes'])_0x482cf5[_0x18f32c(0x18f)]();this[_0x18f32c(0x3b9)]&&this[_0x18f32c(0x3b9)]['dispose'](),this[_0x18f32c(0x3e3)]&&this[_0x18f32c(0x3e3)][_0x18f32c(0x18f)](),this['_anchor']&&this[_0x18f32c(0x141)][_0x18f32c(0x18f)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}['_render'](){const _0x13fbd5=_0x5f4c13;var _0x4901e6;const {_docSkeleton:_0x360d69,_document:_0x58fdd6}=this,{color:_0x4e7fa1,name:_0x1c5b3c,ranges:_0x420954}=this[_0x13fbd5(0x3cd)],_0x3d6b4a=_0x58fdd6[_0x13fbd5(0x1e1)](),{docsLeft:_0x289993,docsTop:_0x28fb40}=_0x3d6b4a,_0x4896e8=new T[(_0x13fbd5(0x3e5))](_0x3d6b4a,_0x360d69);for(const {startOffset:_0x351ae5,endOffset:_0x1c1d75,rangeType:_0x58e128,segmentId:_0x3d3dab,segmentPage:_0x5d10ac,collapsed:_0x54d474,isActive:_0x59d790}of _0x420954){const _0x130aa3=_0x360d69[_0x13fbd5(0x29c)](_0x351ae5,!0x0,_0x3d3dab,_0x5d10ac);let _0x3e17e3=_0x360d69['findNodePositionByCharIndex'](_0x1c1d75,!0x0,_0x3d3dab,_0x5d10ac);if(_0x3e17e3==null&&(_0x3e17e3=_0x360d69[_0x13fbd5(0x29c)](_0x1c1d75-0x1,!0x1,_0x3d3dab,_0x5d10ac)),_0x59d790){const {contentBoxPointGroup:_0x3badd2}=_0x4896e8['getRangePointData'](_0x3e17e3,_0x3e17e3);if(_0x3badd2[_0x13fbd5(0x231)]===0x0)continue;this[_0x13fbd5(0x3e4)](_0x4e7fa1,_0x3badd2,_0x289993,_0x28fb40,_0x1c5b3c),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x130aa3&&_0x3e17e3){if(_0x58e128===a[_0x13fbd5(0x16d)][_0x13fbd5(0x1cc)]){const _0x12bc44=new T['NodePositionConvertToRectRange'](_0x3d6b4a,_0x360d69),{pointGroup:_0x4b7ae8}=(_0x4901e6=_0x12bc44[_0x13fbd5(0x185)](_0x130aa3,_0x3e17e3))!=null?_0x4901e6:{};if(_0x4b7ae8==null||_0x4b7ae8[_0x13fbd5(0x231)]===0x0)continue;this[_0x13fbd5(0x288)](_0x4e7fa1,_0x4b7ae8,_0x289993,_0x28fb40);}else{if(!_0x54d474){const {borderBoxPointGroup:_0x45a646}=_0x4896e8[_0x13fbd5(0x185)](_0x130aa3,_0x3e17e3);if(_0x45a646[_0x13fbd5(0x231)]===0x0)continue;this['_drawTextRange'](_0x4e7fa1,_0x45a646,_0x289993,_0x28fb40);}}}}}[_0x5f4c13(0x3e4)](_0x274ce3,_0x2af668,_0x17c5c3,_0x586edb,_0x13e7fd){const _0x247707=_0x5f4c13,_0x187b71=this[_0x247707(0x2ea)](_0x2af668),{left:_0x57b3bb,top:_0x2fb376,height:_0x1601a4}=_0x187b71,_0x4a0140=this['_getScale'](),_0x50d6ea=Nt/_0x4a0140,_0x45fbd7=new C[(_0x247707(0x124))](_e+a[_0x247707(0x1c6)](H),{'left':_0x57b3bb+_0x17c5c3-_0x50d6ea,'top':_0x2fb376+_0x586edb,'height':_0x1601a4,'width':Dt,'fill':_0x274ce3||C['getColor'](a['COLORS'][_0x247707(0x133)],0x0),'strokeWidth':_0x50d6ea,'stroke':Ut,'evented':!0x0});this[_0x247707(0x141)]=_0x45fbd7,this['_scene'][_0x247707(0x23d)](_0x45fbd7,T[_0x247707(0x1ed)]);const _0x372435=new C[(_0x247707(0x124))](_e+a[_0x247707(0x1c6)](H),{'left':_0x57b3bb+_0x17c5c3-_0x50d6ea,'top':_0x2fb376+_0x586edb-he/0x2,'height':he,'width':he,'fill':_0x274ce3||C[_0x247707(0x29a)](a['COLORS'][_0x247707(0x133)],0x0),'strokeWidth':0x0,'stroke':_0x274ce3||C[_0x247707(0x29a)](a[_0x247707(0x1b4)][_0x247707(0x133)],0x0),'evented':!0x1});this[_0x247707(0x3e3)]=_0x372435,this[_0x247707(0x22e)]['addObject'](_0x372435,T[_0x247707(0x1ed)]);const _0x26d3e4=new re(_e+a[_0x247707(0x1c6)](H),{'left':_0x57b3bb+_0x17c5c3-_0x50d6ea,'top':_0x2fb376+_0x586edb-X,'text':_0x13e7fd,'color':_0x274ce3});this[_0x247707(0x3b9)]=_0x26d3e4,this[_0x247707(0x22e)][_0x247707(0x23d)](_0x26d3e4,T[_0x247707(0x1ed)]),this[_0x247707(0x371)]=!0x1;}[_0x5f4c13(0x3dc)](){const _0xa88612=_0x5f4c13,_0x332fdc=this[_0xa88612(0x141)]['onPointerEnter$'][_0xa88612(0x377)](()=>{this['_hover']=!0x0;}),_0x275e1c=this['_anchor']['onPointerLeave$'][_0xa88612(0x377)](()=>{const _0x2091a6=_0xa88612;this[_0x2091a6(0x207)]&&clearTimeout(this['_hideTimer']),this[_0x2091a6(0x207)]=setTimeout(()=>{const _0x4d494b=_0x2091a6;this[_0x4d494b(0x371)]=!0x1;},0x7d0);});return()=>{const _0x3b207a=_0xa88612;_0x332fdc[_0x3b207a(0x35e)](),_0x275e1c[_0x3b207a(0x35e)]();};}['_drawTextRange'](_0xecaee5,_0x27d30d,_0xc10c11,_0x3dea8e){const _0x430bf1=_0x5f4c13,_0x23cba9=new a[(_0x430bf1(0x1b5))](_0xecaee5)[_0x430bf1(0x244)](0.2)[_0x430bf1(0x351)](),_0x5ac6b5=new C[(_0x430bf1(0x2e2))](Rt+a['generateRandomId'](H),{'pointsGroup':_0x27d30d,'fill':_0x23cba9||C['getColor'](a[_0x430bf1(0x1b4)][_0x430bf1(0x133)],0.2),'left':_0xc10c11,'top':_0x3dea8e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x430bf1(0x11c)][_0x430bf1(0x261)](_0x5ac6b5),this[_0x430bf1(0x22e)]['addObject'](_0x5ac6b5,T['TEXT_RANGE_LAYER_INDEX']);}[_0x5f4c13(0x288)](_0x348eae,_0x574c78,_0x247b96,_0x40e30a){const _0x981c16=_0x5f4c13,_0x2d853a=new a['ColorKit'](_0x348eae)[_0x981c16(0x244)](0.2)[_0x981c16(0x351)](),_0x337736=new C['RegularPolygon'](bt+a[_0x981c16(0x1c6)](H),{'pointsGroup':_0x574c78,'fill':_0x2d853a||C['getColor'](a[_0x981c16(0x1b4)][_0x981c16(0x133)],0.2),'left':_0x247b96,'top':_0x40e30a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x981c16(0x11c)][_0x981c16(0x261)](_0x337736),this['_scene']['addObject'](_0x337736,T[_0x981c16(0x1ed)]);}[_0x5f4c13(0x2ea)](_0x4d930a){const _0x1f325c=_0x4d930a[0x0],_0x30dbde=_0x1f325c[0x0],_0x39f6d9=_0x1f325c[0x2],{x:_0xf9939e,y:_0x15818c}=_0x30dbde,{x:_0x59b346,y:_0x56560a}=_0x39f6d9;return{'left':_0xf9939e,'top':_0x15818c,'width':_0x59b346-_0xf9939e,'height':_0x56560a-_0x15818c};}['_getScale'](){const _0x4716fa=_0x5f4c13,{scaleX:_0x165e77,scaleY:_0x23aa05}=this[_0x4716fa(0x22e)]['getAncestorScale']();return Math['max'](_0x165e77,_0x23aa05);}}var Lt=Object[_0x5f4c13(0x1ee)],Mt=(_0x2767f4,_0x4d1163,_0x40b907,_0x3677b6)=>{for(var _0x6c4d30=_0x3677b6>0x1?void 0x0:_0x3677b6?Lt(_0x4d1163,_0x40b907):_0x4d1163,_0x35cba8=_0x2767f4['length']-0x1,_0x33a828;_0x35cba8>=0x0;_0x35cba8--)(_0x33a828=_0x2767f4[_0x35cba8])&&(_0x6c4d30=_0x33a828(_0x6c4d30)||_0x6c4d30);return _0x6c4d30;},q=(_0x19108b,_0x51222a)=>(_0x44829c,_0x83bd7e)=>_0x51222a(_0x44829c,_0x83bd7e,_0x19108b);let Ee=class extends a[_0x5f4c13(0x1f7)]{constructor(_0x19ea0c,_0x1d5771,_0x36b5e1,_0x41597c,_0x37bf98){const _0x4fd501=_0x5f4c13;super(),_(this,_0x4fd501(0x2f8),[]),_(this,_0x4fd501(0x3d7),[]),(this['_context']=_0x19ea0c,this[_0x4fd501(0x28c)]=_0x1d5771,this[_0x4fd501(0x205)]=_0x36b5e1,this[_0x4fd501(0x274)]=_0x41597c,this[_0x4fd501(0x3a9)]=_0x37bf98,this[_0x4fd501(0x335)]());}[_0x5f4c13(0x335)](){const _0x56d194=_0x5f4c13,_0x197658=this[_0x56d194(0x3a1)]['unitId'],_0x2d6bc3=this[_0x56d194(0x28c)];this[_0x56d194(0x3da)](I['combineLatest']([this[_0x56d194(0x205)][_0x56d194(0x174)](_0x197658),this[_0x56d194(0x3a9)][_0x56d194(0x1eb)]])[_0x56d194(0x336)]($['map'](([_0xe4aa35,_0x45470b])=>({'skeleton':_0x2d6bc3[_0x56d194(0x179)](),'cursors':[..._0xe4aa35[_0x56d194(0x18c)]()][_0x56d194(0x308)](_0x524904=>({..._0x524904,'color':this[_0x56d194(0x3a9)][_0x56d194(0x2c6)](_0x524904['color'])}))})))['subscribe'](_0x12ae84=>{const _0x5b9f6a=_0x56d194;if(this[_0x5b9f6a(0x2f6)](),_0x12ae84){const {skeleton:_0xf3adcc,cursors:_0x18162e}=_0x12ae84;this[_0x5b9f6a(0x2fe)](_0xf3adcc,_0x18162e);}})),this['_initResize'](),this[_0x56d194(0x1d6)]();}[_0x5f4c13(0x2fe)](_0x257383,_0x4ca6b2){const _0x30355c=_0x5f4c13,{scene:_0x330f4a,mainComponent:_0x48aa23}=this[_0x30355c(0x3a1)],_0x204cc5=_0x4ca6b2[_0x30355c(0x13c)](_0x55f806=>new Le(_0x55f806,_0x330f4a,_0x257383,_0x48aa23));this[_0x30355c(0x2f8)]=_0x204cc5,this[_0x30355c(0x3d7)]=_0x4ca6b2;}[_0x5f4c13(0x2c4)](){const _0x1c99e9=_0x5f4c13;this[_0x1c99e9(0x2f6)]();const {scene:_0xe0fe71,mainComponent:_0x355a0a}=this[_0x1c99e9(0x3a1)],_0xb9d842=this[_0x1c99e9(0x28c)][_0x1c99e9(0x179)](),_0x15e8a5=this[_0x1c99e9(0x3d7)][_0x1c99e9(0x13c)](_0x7dfd9=>new Le(_0x7dfd9,_0xe0fe71,_0xb9d842,_0x355a0a));this[_0x1c99e9(0x2f8)]=_0x15e8a5;}[_0x5f4c13(0x2f6)](){const _0x56a979=_0x5f4c13;this[_0x56a979(0x2f8)][_0x56a979(0x3ac)](_0x23774f=>_0x23774f[_0x56a979(0x18f)]()),this[_0x56a979(0x2f8)]=[];}[_0x5f4c13(0x1d6)](){const _0xbbedfa=_0x5f4c13,_0x7b985=[T[_0xbbedfa(0x2ba)]['id']];this[_0xbbedfa(0x3da)](this[_0xbbedfa(0x274)][_0xbbedfa(0x3d8)](_0x385d8c=>{const _0x1f52e0=_0xbbedfa;_0x7b985[_0x1f52e0(0x31e)](_0x385d8c['id'])&&_0x385d8c[_0x1f52e0(0x346)][_0x1f52e0(0x34a)]===this[_0x1f52e0(0x3a1)][_0x1f52e0(0x34a)]&&this[_0x1f52e0(0x2c4)]();}));}[_0x5f4c13(0x26f)](){const _0x1028c5=_0x5f4c13;this[_0x1028c5(0x3da)](a[_0x1028c5(0x2a5)](this[_0x1028c5(0x3a1)][_0x1028c5(0x3c0)]['onTransformChange$'])['pipe']($[_0x1028c5(0x33b)](_0x206df3=>_0x206df3[_0x1028c5(0x1c4)]===C[_0x1028c5(0x3d9)][_0x1028c5(0x33e)]),$[_0x1028c5(0x21e)](0x10))[_0x1028c5(0x154)](()=>{const _0x3a19af=_0x1028c5;this[_0x3a19af(0x2c4)]();}));}};Ee=Mt([q(0x1,a[_0x5f4c13(0x21b)](V['DocSkeletonManagerService'])),q(0x2,a[_0x5f4c13(0x21b)](F)),q(0x3,a[_0x5f4c13(0x1f4)]),q(0x4,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x328)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x5f4c13(0x19d)]{constructor(_0x1a7e33,_0x19e35a){const _0x26acdb=_0x5f4c13;super(_0x1a7e33,_0x19e35a),_(this,_0x26acdb(0x1ca)),_(this,_0x26acdb(0x151),!0x1),_(this,_0x26acdb(0x27e)),_(this,_0x26acdb(0x181),''),_(this,_0x26acdb(0x262),_0x26acdb(0x320)),_(this,_0x26acdb(0x3bd)),(_0x19e35a&&this[_0x26acdb(0x250)](_0x19e35a),this['onPointerEnter$'][_0x26acdb(0x377)](()=>this[_0x26acdb(0x250)]({'hovered':!0x0})),this[_0x26acdb(0x240)][_0x26acdb(0x377)](()=>this[_0x26acdb(0x250)]({'hovered':!0x1})));}[_0x5f4c13(0x250)](_0x2cd84b){const _0x344b34=_0x5f4c13;var _0x1149dc,_0x258db1,_0x34a000,_0x3e5af0,_0x2b8242,_0xb8db62;this['_color']=(_0x1149dc=_0x2cd84b[_0x344b34(0x3d5)])!=null?_0x1149dc:this[_0x344b34(0x1ca)],this[_0x344b34(0x151)]=(_0x258db1=_0x2cd84b['hovered'])!=null?_0x258db1:this['_hovered'],this['_range']=(_0x34a000=_0x2cd84b['range'])!=null?_0x34a000:this['_range'],this['_name']=(_0x3e5af0=_0x2cd84b[_0x344b34(0x25c)])!=null?_0x3e5af0:this[_0x344b34(0x181)],this[_0x344b34(0x262)]=(_0x2b8242=_0x2cd84b[_0x344b34(0x14e)])!=null?_0x2b8242:this[_0x344b34(0x262)],this[_0x344b34(0x3bd)]=(_0xb8db62=_0x2cd84b[_0x344b34(0x294)])!=null?_0xb8db62:this[_0x344b34(0x3bd)],this[_0x344b34(0x243)]({'width':_0x2cd84b[_0x344b34(0x1a9)],'height':_0x2cd84b[_0x344b34(0x14f)]});}[_0x5f4c13(0x204)](_0x53a7d0){const _0x7f71b7=_0x5f4c13,{row:_0x237ed9,column:_0x2adc7f}=_0x53a7d0;if(_0x237ed9>=this['_range'][_0x7f71b7(0x1a7)]&&_0x237ed9<=this['_range'][_0x7f71b7(0x1d1)]&&_0x2adc7f>=this[_0x7f71b7(0x27e)]['startColumn']&&_0x2adc7f<=this[_0x7f71b7(0x27e)][_0x7f71b7(0x1ba)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x7f71b7(0x250)]({'hovered':!0x1});}[_0x5f4c13(0x36f)](_0x55193b){return!0x1;}[_0x5f4c13(0x305)](_0x53823f){const _0x30928f=_0x5f4c13;C[_0x30928f(0x124)]['drawWith'](_0x53823f,{'width':this[_0x30928f(0x1a9)],'height':this[_0x30928f(0x14f)],'strokeWidth':Pt,'stroke':this[_0x30928f(0x1ca)],'evented':!0x1,'fill':this[_0x30928f(0x3bd)]}),this['_hovered']&&(_0x53823f[_0x30928f(0x247)](),_0x53823f[_0x30928f(0x193)](0x1,0x0,0x0,0x1,this[_0x30928f(0x1a9)],this[_0x30928f(0x262)]===_0x30928f(0x2ff)?0x0:-X),re[_0x30928f(0x3e6)](_0x53823f,{'text':this['_name'],'color':this['_color']}),_0x53823f[_0x30928f(0x146)]());}}var wt=Object[_0x5f4c13(0x1ee)],yt=(_0x1ac4e1,_0x47915c,_0x7b3b90,_0x5d9674)=>{const _0x17cb2b=_0x5f4c13;for(var _0x2bf50f=_0x5d9674>0x1?void 0x0:_0x5d9674?wt(_0x47915c,_0x7b3b90):_0x47915c,_0x241552=_0x1ac4e1[_0x17cb2b(0x231)]-0x1,_0x177027;_0x241552>=0x0;_0x241552--)(_0x177027=_0x1ac4e1[_0x241552])&&(_0x2bf50f=_0x177027(_0x2bf50f)||_0x2bf50f);return _0x2bf50f;},ue=(_0x581fd6,_0x38efe3)=>(_0x4eae19,_0x362ffd)=>_0x38efe3(_0x4eae19,_0x362ffd,_0x581fd6);const $t=0x1389;let Ce=class extends a[_0x5f4c13(0x1f7)]{constructor(_0x2582d0,_0x256bfe,_0x55dfe0,_0x50369c){const _0x24fbcf=_0x5f4c13;super(),_(this,_0x24fbcf(0x3d7),new Set()),_(this,_0x24fbcf(0x186),null),(this[_0x24fbcf(0x3a1)]=_0x2582d0,this[_0x24fbcf(0x129)]=_0x256bfe,this[_0x24fbcf(0x205)]=_0x55dfe0,this[_0x24fbcf(0x3a9)]=_0x50369c,this['_init']());}[_0x5f4c13(0x335)](){const _0x2e199a=_0x5f4c13;this['_sheetSkeletonManagerService'][_0x2e199a(0x156)][_0x2e199a(0x336)]($[_0x2e199a(0x3c7)](this[_0x2e199a(0x2ce)]),$['switchMap'](_0x593699=>{const _0x2a2f92=_0x2e199a;if(_0x593699){const _0x2c4a84=_0x593699[_0x2a2f92(0x12f)];return I[_0x2a2f92(0x18d)](this[_0x2a2f92(0x205)][_0x2a2f92(0x174)](this[_0x2a2f92(0x3a1)][_0x2a2f92(0x34a)]),this[_0x2a2f92(0x3a9)]['currentTheme$'])[_0x2a2f92(0x336)]($[_0x2a2f92(0x13c)](([_0x1542c5,_0x5cca96])=>{const _0x56e6f2=new Map();return _0x1542c5['forEach']((_0x25d556,_0x2de047)=>{const _0x6b3ea7=_0x1124;if(_0x25d556[_0x6b3ea7(0x2bd)]===_0x2c4a84){const _0x18f5f5={..._0x25d556};_0x18f5f5[_0x6b3ea7(0x3d5)]=this[_0x6b3ea7(0x3a9)][_0x6b3ea7(0x2c6)](_0x25d556['color']),_0x56e6f2[_0x6b3ea7(0x310)](_0x2de047,_0x18f5f5);}}),{'skeleton':_0x593699,'cursors':_0x56e6f2};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x2e199a(0x154)](({skeleton:_0x4cc95f,cursors:_0x16dcfa})=>{const _0x364f95=_0x2e199a;this['_removeCollabCursors'](),_0x4cc95f&&this[_0x364f95(0x2fe)](_0x4cc95f,_0x16dcfa);}),this[_0x2e199a(0x129)]['currentSkeleton$'][_0x2e199a(0x154)](_0x3208b1=>{const _0x4d2c4e=_0x2e199a;if(_0x3208b1==null)return;const {skeleton:_0x18b46a}=_0x3208b1,{scene:_0x1cc7e1}=this[_0x4d2c4e(0x3a1)];_0x1cc7e1[_0x4d2c4e(0x32d)][_0x4d2c4e(0x377)](a[_0x4d2c4e(0x163)](_0x3165f5=>{const _0x1c452b=_0x4d2c4e;var _0x5848b3,_0xe56812;const {offsetX:_0x13379a,offsetY:_0x27c754}=_0x3165f5,{x:_0x58f981,y:_0x1969d9}=_0x1cc7e1[_0x1c452b(0x356)](C[_0x1c452b(0x270)][_0x1c452b(0x2d4)]([_0x13379a,_0x27c754])),{scaleX:_0x369abd,scaleY:_0x320052}=_0x1cc7e1[_0x1c452b(0x16a)](),_0x1392bf=_0x1cc7e1['getViewport'](C[_0x1c452b(0x120)]['VIEW_MAIN']),_0x275e26=_0x1cc7e1[_0x1c452b(0x32c)](C[_0x1c452b(0x270)][_0x1c452b(0x2d4)]([_0x58f981,_0x1969d9]),_0x1392bf),_0x5cc3ea=_0x18b46a[_0x1c452b(0x236)](_0x13379a,_0x27c754,_0x369abd,_0x320052,_0x275e26);((_0x5848b3=this['_lastPointer'])==null?void 0x0:_0x5848b3[_0x1c452b(0x248)])===_0x5cc3ea[_0x1c452b(0x248)]&&((_0xe56812=this[_0x1c452b(0x186)])==null?void 0x0:_0xe56812['row'])===_0x5cc3ea[_0x1c452b(0x1b7)]||this[_0x1c452b(0x3d7)][_0x1c452b(0x3ac)](_0x5a6ec6=>{const _0x4c842d=_0x1c452b;_0x5a6ec6[_0x4c842d(0x204)](_0x5cc3ea);});},0x64));});}[_0x5f4c13(0x2fe)](_0x5b2c10,_0x8ddf23){const _0x53e760=_0x5f4c13;var _0x1fae01;const _0x2dfe83=(_0x1fae01=this[_0x53e760(0x129)][_0x53e760(0x2f9)]())==null?void 0x0:_0x1fae01[_0x53e760(0x2a1)];if(!_0x2dfe83)return;const _0x2c09b8=this['_getSheetObject']();if(!_0x2c09b8)return;this[_0x53e760(0x3d7)][_0x53e760(0x3ac)](_0x4c97c0=>{const _0x4f25d6=_0x53e760;_0x4c97c0[_0x4f25d6(0x23e)]();});const {scene:_0x36bb47}=_0x2c09b8,_0x391e14=xt(Array[_0x53e760(0x25d)](_0x8ddf23['values']()))['map'](_0x4faee8=>{const _0x45f711=_0x53e760,{color:_0x4e8ed0,range:_0x3f8277,name:_0x5f2ab7,selection:_0x23389e,sheetID:_0x3bdd1f}=_0x4faee8,{startColumn:_0x3449ff,startRow:_0x14d5f8,endColumn:_0x6357eb,endRow:_0x4b7010}=_0x3f8277,_0x15df49=J[_0x45f711(0x15b)](_0x14d5f8,_0x3449ff,_0x36bb47,_0x2dfe83),_0x4350c5=J[_0x45f711(0x15b)](_0x4b7010,_0x6357eb,_0x36bb47,_0x2dfe83),{columnHeaderHeightAndMarginTop:_0x1cbed8}=_0x2dfe83,{startX:_0x28714b,startY:_0x436f38}=_0x15df49,{endX:_0x565fa1,endY:_0x117823}=_0x4350c5,_0xdf5a0e=_0x565fa1-_0x28714b,_0x313b16=_0x117823-_0x436f38,_0x5d2d3c={'labelPosition':_0x436f38-_0x1cbed8>=X?_0x45f711(0x320):_0x45f711(0x2ff),'sheetID':_0x3bdd1f,'range':_0x3f8277,'color':_0x4e8ed0,'name':_0x5f2ab7,'selection':_0x23389e,'left':_0x28714b,'top':_0x436f38,'width':_0xdf5a0e,'height':_0x313b16,'evented':!0x1,'zIndex':$t};return new je(_0x5f2ab7,_0x5d2d3c);});_0x36bb47[_0x53e760(0x22b)](_0x391e14,At),this['_cursors']=new Set(_0x391e14);}[_0x5f4c13(0x2f6)](){const _0xcbccc5=_0x5f4c13;var _0x4e4523;(_0x4e4523=this[_0xcbccc5(0x3d7)])==null||_0x4e4523['forEach'](_0x5c1837=>_0x5c1837[_0xcbccc5(0x18f)]());}[_0x5f4c13(0x368)](){const _0x1f7ef9=_0x5f4c13;return J[_0x1f7ef9(0x3bc)](this[_0x1f7ef9(0x3a1)]['unit'],this[_0x1f7ef9(0x3a1)]);}};Ce=yt([ue(0x1,a[_0x5f4c13(0x21b)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x5f4c13(0x21b)](F)),ue(0x3,a[_0x5f4c13(0x21b)](a['ThemeService']))],Ce);function xt(_0x5b1d65){const _0x5d91b5=_0x5f4c13,_0x32cd56=new Map();return _0x5b1d65['forEach'](_0x4612c1=>{const _0xa66938=_0x1124;if(_0x32cd56[_0xa66938(0x17f)](_0x4612c1[_0xa66938(0x29d)])){const _0xfa9583=_0x32cd56[_0xa66938(0x389)](_0x4612c1[_0xa66938(0x29d)]);_0xfa9583['name']+=',\x20'+_0x4612c1[_0xa66938(0x25c)];}else _0x32cd56[_0xa66938(0x310)](_0x4612c1[_0xa66938(0x29d)],_0x4612c1);}),Array[_0x5d91b5(0x25d)](_0x32cd56[_0x5d91b5(0x18c)]());}var Bt=Object[_0x5f4c13(0x1ee)],Ft=(_0x5ca936,_0x194353,_0x3edb2d,_0x27a719)=>{const _0x23e5e4=_0x5f4c13;for(var _0x48c3df=_0x27a719>0x1?void 0x0:_0x27a719?Bt(_0x194353,_0x3edb2d):_0x194353,_0x325f9c=_0x5ca936[_0x23e5e4(0x231)]-0x1,_0x5cc1ce;_0x325f9c>=0x0;_0x325f9c--)(_0x5cc1ce=_0x5ca936[_0x325f9c])&&(_0x48c3df=_0x5cc1ce(_0x48c3df)||_0x48c3df);return _0x48c3df;},y=(_0x59f3f9,_0x61b16a)=>(_0x1dfb25,_0x2b9c41)=>_0x61b16a(_0x1dfb25,_0x2b9c41,_0x59f3f9);let Z=class extends a[_0x5f4c13(0x28f)]{constructor(_0x284d45,_0x4de98a,_0x32d260,_0x5dee29,_0x1e4da4,_0x5b93d7){const _0x3bc978=_0x5f4c13;super(),this[_0x3bc978(0x19c)]=_0x284d45,this[_0x3bc978(0x239)]=_0x4de98a,this[_0x3bc978(0x3c6)]=_0x32d260,this['_messageService']=_0x5dee29,this[_0x3bc978(0x1d4)]=_0x1e4da4,this[_0x3bc978(0x2f1)]=_0x5b93d7,this[_0x3bc978(0x1c0)](),this[_0x3bc978(0x3ba)]();}[_0x5f4c13(0x1c0)](){const _0x1997b6=_0x5f4c13;this[_0x1997b6(0x3da)](this[_0x1997b6(0x19c)]['registerBeforeClose'](()=>{const _0x19be37=_0x1997b6;if(this[_0x19be37(0x239)]['saveTaskMap']['size'])return this[_0x19be37(0x2f1)]['t'](_0x19be37(0x2ac));}));}[_0x5f4c13(0x3ba)](){const _0x54af07=_0x5f4c13;this[_0x54af07(0x3da)](this['_collaborationUIEventService']['event$'][_0x54af07(0x154)](_0x3810f6=>{const _0x4acc38=_0x54af07;_0x3810f6['id']===u[_0x4acc38(0x145)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t']('collaboration.single-unit.warning')}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x1c7)]&&this[_0x4acc38(0x266)]['show']({'type':p[_0x4acc38(0x143)][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x388))}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x39b)]&&this[_0x4acc38(0x1d4)][_0x4acc38(0x3b8)]({'title':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x1c1)),'content':this['_localeService']['t'](_0x4acc38(0x275)),'type':_0x4acc38(0x1dd),'duration':0x0}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x3b5)]&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x159)],'content':this['_localeService']['t'](_0x4acc38(0x388))+'('+_0x3810f6['data']+')'}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x1a2)]&&this[_0x4acc38(0x266)][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t'](_0x3810f6[_0x4acc38(0x31f)]||'')}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x30c)]&&this[_0x4acc38(0x266)][_0x4acc38(0x3b8)]({'type':p['MessageType'][_0x4acc38(0x1c3)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x1d2))}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x281)]&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x159)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x2e0))}),_0x3810f6['id']===u[_0x4acc38(0x145)][_0x4acc38(0x3c2)]&&this['_messageService'][_0x4acc38(0x3b8)]({'type':p[_0x4acc38(0x143)][_0x4acc38(0x159)],'content':this[_0x4acc38(0x2f1)]['t'](_0x4acc38(0x14b))});}));}};Z=Ft([y(0x0,O[_0x5f4c13(0x32f)]),y(0x1,u[_0x5f4c13(0x2e3)]),y(0x2,a[_0x5f4c13(0x21b)](u['CollaborationUIEventService'])),y(0x3,O[_0x5f4c13(0x117)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x5f4c13(0x2b2)]))],Z);var jt=Object[_0x5f4c13(0x1ee)],kt=(_0x1629fd,_0xa9cf9d,_0x37e2ba,_0x1f9e3c)=>{const _0x233d44=_0x5f4c13;for(var _0x112311=_0x1f9e3c>0x1?void 0x0:_0x1f9e3c?jt(_0xa9cf9d,_0x37e2ba):_0xa9cf9d,_0x1a9998=_0x1629fd[_0x233d44(0x231)]-0x1,_0x85c6cd;_0x1a9998>=0x0;_0x1a9998--)(_0x85c6cd=_0x1629fd[_0x1a9998])&&(_0x112311=_0x85c6cd(_0x112311)||_0x112311);return _0x112311;},z=(_0x56332e,_0x2413d2)=>(_0x2906fb,_0x53b2d5)=>_0x2413d2(_0x2906fb,_0x53b2d5,_0x56332e);let Q=class extends a[_0x5f4c13(0x28f)]{constructor(_0x2b3f92,_0x33175b,_0x31fc08,_0x42ee19){const _0x22db24=_0x5f4c13;super(),_(this,_0x22db24(0x1e4)),(this[_0x22db24(0x1fd)]=_0x2b3f92,this[_0x22db24(0x381)]=_0x33175b,this[_0x22db24(0x277)]=_0x31fc08,this[_0x22db24(0x3c5)]=_0x42ee19,this['_init']());}[_0x5f4c13(0x335)](){const _0x3297d7=_0x5f4c13;this['_initWindowErrorListener'](),this[_0x3297d7(0x348)](),this[_0x3297d7(0x28d)](),this[_0x3297d7(0x372)]();}['_initUserListener'](){const _0x588b87=_0x5f4c13;this[_0x588b87(0x3da)](this[_0x588b87(0x3c5)][_0x588b87(0x1fa)][_0x588b87(0x154)](_0x2a8e0f=>{const _0x203320=_0x588b87;this[_0x203320(0x1e4)]=_0x2a8e0f==null?void 0x0:_0x2a8e0f[_0x203320(0x26d)];}));}['_initWindowErrorListener'](){const _0x2231df=_0x5f4c13,_0x144644=_0x3c8396=>{const _0x25a568=_0x1124;var _0x329a30;this['_uploadLog']('error',_0x25a568(0x2ec)+_0x3c8396[_0x25a568(0x17c)]+_0x25a568(0x37d)+_0x3c8396['filename']+':'+_0x3c8396['lineno']+':'+_0x3c8396[_0x25a568(0x227)]+'\x0a'+(((_0x329a30=_0x3c8396['error'])==null?void 0x0:_0x329a30[_0x25a568(0x355)])||''));};window[_0x2231df(0x2ae)](_0x2231df(0x1dd),_0x144644),this[_0x2231df(0x3da)](()=>{const _0x16c1ef=_0x2231df;window[_0x16c1ef(0x1ab)](_0x16c1ef(0x1dd),_0x144644);});}['_initUnhandledRejectionListener'](){const _0x14cefc=_0x5f4c13,_0x476d73=_0x2c6401=>{const _0x49b1cf=_0x1124;this[_0x49b1cf(0x1f3)]('error',_0x49b1cf(0x119)+_0x2c6401['reason']);};window[_0x14cefc(0x2ae)](_0x14cefc(0x2a2),_0x476d73),this['disposeWithMe'](()=>{const _0x53d8c2=_0x14cefc;window[_0x53d8c2(0x1ab)](_0x53d8c2(0x2a2),_0x476d73);});}['_monkeyPatchLogService'](){const _0x121626=_0x5f4c13,_0x530ab2=this[_0x121626(0x277)][_0x121626(0x1dd)][_0x121626(0x300)](this[_0x121626(0x277)]);this[_0x121626(0x277)][_0x121626(0x1dd)]=(..._0x51b972)=>{const _0x32f0b8=_0x121626,_0x336616=_0x51b972[_0x32f0b8(0x13c)](_0x5e064e=>_0x5e064e instanceof Error?_0x5e064e[_0x32f0b8(0x17c)]+'\x0a'+_0x5e064e[_0x32f0b8(0x355)]:String(_0x5e064e))[_0x32f0b8(0x343)]('\x20');this[_0x32f0b8(0x1f3)](_0x32f0b8(0x1dd),'[LogService\x20Error]:\x20'+_0x336616),_0x530ab2(..._0x51b972);},this['disposeWithMe'](()=>{const _0x4a9ca1=_0x121626;this[_0x4a9ca1(0x277)][_0x4a9ca1(0x1dd)]=_0x530ab2;});}[_0x5f4c13(0x1f3)](_0x180934,_0x36bc87){const _0x241a57=_0x5f4c13;try{const _0x3b2ded={'userId':this[_0x241a57(0x1e4)],'logLabel':_0x180934,'content':_0x36bc87};this[_0x241a57(0x381)][_0x241a57(0x35a)](_0x241a57(0x1bf),{'body':_0x3b2ded})[_0x241a57(0x1b0)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x5f4c13(0x349)])),z(0x1,a[_0x5f4c13(0x21b)](x[_0x5f4c13(0x166)])),z(0x2,a[_0x5f4c13(0x1c9)]),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0x5f4c13(0x361),Me={};var Ht=Object[_0x5f4c13(0x1ee)],Wt=(_0x21dd2c,_0x359e20,_0xda0319,_0x313781)=>{for(var _0x4a0bf6=_0x313781>0x1?void 0x0:_0x313781?Ht(_0x359e20,_0xda0319):_0x359e20,_0x14e44a=_0x21dd2c['length']-0x1,_0x9bc4ca;_0x14e44a>=0x0;_0x14e44a--)(_0x9bc4ca=_0x21dd2c[_0x14e44a])&&(_0x4a0bf6=_0x9bc4ca(_0x4a0bf6)||_0x4a0bf6);return _0x4a0bf6;},Ae=(_0x6cbee3,_0xa634e8)=>(_0x1eeb08,_0x47a568)=>_0xa634e8(_0x1eeb08,_0x47a568,_0x6cbee3);let ee=class{constructor(_0x5ca068,_0x10aced){const _0x1183fd=_0x5f4c13;this[_0x1183fd(0x301)]=_0x5ca068,this['_renderManagerService']=_0x10aced;}['transformIMECache'](_0x36e7b8){const _0x1825cf=_0x5f4c13;this['_transformUndoRedoStack'](_0x36e7b8),this[_0x1825cf(0x153)](_0x36e7b8);}[_0x5f4c13(0x184)](_0x184398){const _0x38c6f0=_0x5f4c13,{unitID:_0x4fb255}=_0x184398,_0x6f1020=this[_0x38c6f0(0x3be)]['getRenderById'](_0x4fb255)[_0x38c6f0(0x158)](T[_0x38c6f0(0x125)]),{redoCache:_0x38c9d4}=_0x6f1020[_0x38c6f0(0x194)]();if(_0x38c9d4[_0x38c6f0(0x231)]===0x0)return _0x184398;let _0x5adeac=a['Tools']['deepClone'](_0x184398[_0x38c6f0(0x165)][0x0]);for(let _0x492fff=0x0;_0x492fff<_0x38c9d4[_0x38c6f0(0x231)];_0x492fff++){const _0x49a384={'id':_0x38c6f0(0x209),'params':{..._0x38c9d4[_0x492fff]}},_0x5969fb=this[_0x38c6f0(0x301)][_0x38c6f0(0x31d)](_0x5adeac,_0x49a384,!0x1);if(g[_0x38c6f0(0x140)](_0x5969fb))throw _0x5969fb[_0x38c6f0(0x1dd)];_0x5adeac=_0x5969fb[_0x38c6f0(0x219)];}return{...a[_0x38c6f0(0x17a)][_0x38c6f0(0x230)](_0x184398),'mutations':[_0x5adeac]};}[_0x5f4c13(0x318)](_0x59c8ee){const _0x3f19d9=_0x5f4c13,{unitID:_0x1e8d59}=_0x59c8ee,_0x5f10a3=this[_0x3f19d9(0x3be)][_0x3f19d9(0x39c)](_0x1e8d59)[_0x3f19d9(0x158)](T['DocIMEInputManagerService']),{undoCache:_0x586c15,redoCache:_0x2d1b45}=_0x5f10a3['getUndoRedoMutationParamsCache']();if(_0x586c15[_0x3f19d9(0x231)]===0x0||_0x2d1b45[_0x3f19d9(0x231)]===0x0)return;const _0x49bb85=[],_0x5ca3fc=[];let _0xf401d5=a[_0x3f19d9(0x17a)][_0x3f19d9(0x230)](_0x59c8ee[_0x3f19d9(0x165)][0x0]),_0x50ccfc=a[_0x3f19d9(0x17a)][_0x3f19d9(0x230)](_0x59c8ee['mutations'][0x0]);for(let _0x144d43=_0x586c15['length']-0x1;_0x144d43>=0x0;_0x144d43--){const _0x1ecf85={'id':_0x3f19d9(0x209),'params':{..._0x586c15[_0x144d43]}},_0x1f261c={'id':_0x3f19d9(0x209),'params':{..._0x2d1b45[_0x144d43]}},_0x497353=this[_0x3f19d9(0x301)][_0x3f19d9(0x31d)](_0xf401d5,_0x1ecf85,!0x1),_0x4c8f5d=this['_transformService'][_0x3f19d9(0x31d)](_0x50ccfc,_0x1f261c,!0x1);if(g[_0x3f19d9(0x140)](_0x497353))throw _0x497353[_0x3f19d9(0x1dd)];if(g[_0x3f19d9(0x140)](_0x4c8f5d))throw _0x4c8f5d[_0x3f19d9(0x1dd)];_0x49bb85['unshift'](_0x497353[_0x3f19d9(0x3c4)][_0x3f19d9(0x346)]),_0x5ca3fc['unshift'](_0x4c8f5d['m2Prime']['params']),_0xf401d5=_0x497353[_0x3f19d9(0x219)],_0x50ccfc=_0x4c8f5d[_0x3f19d9(0x219)];}_0x5f10a3['setUndoRedoMutationParamsCache']({'undoCache':_0x49bb85,'redoCache':_0x5ca3fc});}[_0x5f4c13(0x153)](_0x257fb0){const _0x2bce4e=_0x5f4c13,{unitID:_0x51330c}=_0x257fb0,_0xd592cf=this[_0x2bce4e(0x3be)][_0x2bce4e(0x39c)](_0x51330c)[_0x2bce4e(0x158)](T[_0x2bce4e(0x125)]),_0x344970=_0xd592cf['getActiveRange']();if(_0x344970==null)return;const _0x348b9c=[{'id':_0x2bce4e(0x209),'params':{'unitId':_0x257fb0['unitID'],'actions':null,'textRanges':[_0x344970]}}],_0x31c850=this['_transformService'][_0x2bce4e(0x2b5)](_0x257fb0,_0x348b9c);if(!g[_0x2bce4e(0x36c)](_0x31c850))throw _0x31c850['error'];const _0x2f0a4e=_0x31c850['m2Prime'][0x0][_0x2bce4e(0x346)]['textRanges'];Array[_0x2bce4e(0x180)](_0x2f0a4e)&&_0x2f0a4e[_0x2bce4e(0x231)]&&_0xd592cf['setActiveRange'](_0x2f0a4e[0x0]);}};ee=Wt([Ae(0x0,g[_0x5f4c13(0x2e7)]),Ae(0x1,C[_0x5f4c13(0x18a)])],ee);var Vt=Object[_0x5f4c13(0x1ee)],Gt=(_0x464ff2,_0x517e50,_0x1d00d4,_0x2f7cda)=>{const _0x31cae0=_0x5f4c13;for(var _0x22802c=_0x2f7cda>0x1?void 0x0:_0x2f7cda?Vt(_0x517e50,_0x1d00d4):_0x517e50,_0x4414bf=_0x464ff2[_0x31cae0(0x231)]-0x1,_0xe018f2;_0x4414bf>=0x0;_0x4414bf--)(_0xe018f2=_0x464ff2[_0x4414bf])&&(_0x22802c=_0xe018f2(_0x22802c)||_0x22802c);return _0x22802c;},Ie=(_0x24a403,_0x49e420)=>(_0x15a378,_0x52f2e1)=>_0x49e420(_0x15a378,_0x52f2e1,_0x24a403);let te=class{constructor(_0x5f21ac,_0x1179a0,_0x179d83){const _0x42676a=_0x5f4c13;this[_0x42676a(0x1fd)]=_0x5f21ac,this['_transformService']=_0x1179a0,this['_docStateChangeManagerService']=_0x179d83;}[_0x5f4c13(0x2be)](_0x3759bb){const _0x3febeb=_0x5f4c13;this[_0x3febeb(0x3cc)](_0x3759bb);}[_0x5f4c13(0x184)](_0xd56b22){const _0xcb7f73=_0x5f4c13,{unitID:_0xb6d38}=_0xd56b22,{collaboration:_0x3a4817}=this[_0xcb7f73(0x322)]['getStateCache'](_0xb6d38);if(_0x3a4817[_0xcb7f73(0x231)]===0x0)return _0xd56b22;let _0x402586=a[_0xcb7f73(0x17a)][_0xcb7f73(0x230)](_0xd56b22['mutations'][0x0]);for(let _0x13a4b7=0x0;_0x13a4b7<_0x3a4817[_0xcb7f73(0x231)];_0x13a4b7++){const _0x878e2d={'id':_0xcb7f73(0x209),'params':{'unitId':_0x3a4817[_0x13a4b7]['unitId'],..._0x3a4817[_0x13a4b7][_0xcb7f73(0x213)]}},_0x353cad=this['_transformService']['transformMutation'](_0x402586,_0x878e2d,!0x1);if(g[_0xcb7f73(0x140)](_0x353cad))throw _0x353cad[_0xcb7f73(0x1dd)];_0x402586=_0x353cad[_0xcb7f73(0x219)];}return{...a['Tools'][_0xcb7f73(0x230)](_0xd56b22),'mutations':[_0x402586]};}[_0x5f4c13(0x3cc)](_0x98b3a2){const _0x20b463=_0x5f4c13,{unitID:_0x4a0fa3}=_0x98b3a2,{history:_0x28929e,collaboration:_0x116c12}=this[_0x20b463(0x322)][_0x20b463(0x265)](_0x4a0fa3);if(_0x28929e['length']===0x0&&_0x116c12['length']===0x0)return;const _0x1d16c9=[],_0xe60ff8=[];let _0x404a0e=a[_0x20b463(0x17a)][_0x20b463(0x230)](_0x98b3a2[_0x20b463(0x165)][0x0]),_0x241633=a[_0x20b463(0x17a)][_0x20b463(0x230)](_0x98b3a2[_0x20b463(0x165)][0x0]);for(let _0x788cd6=_0x28929e[_0x20b463(0x231)]-0x1;_0x788cd6>=0x0;_0x788cd6--){const _0x479855={'id':_0x20b463(0x209),'params':{'unitId':_0x28929e[_0x788cd6][_0x20b463(0x34a)],..._0x28929e[_0x788cd6][_0x20b463(0x2f2)]}},_0x1cd71b={'id':_0x20b463(0x209),'params':{'unitId':_0x28929e[_0x788cd6]['unitId'],..._0x28929e[_0x788cd6]['redoState']}},_0x490061=this[_0x20b463(0x301)][_0x20b463(0x31d)](_0x404a0e,_0x479855,!0x1),_0x91123c=this[_0x20b463(0x301)]['transformMutation'](_0x241633,_0x1cd71b,!0x1);if(g[_0x20b463(0x140)](_0x490061))throw _0x490061[_0x20b463(0x1dd)];if(g[_0x20b463(0x140)](_0x91123c))throw _0x91123c['error'];_0x1d16c9['unshift']({..._0x28929e[_0x788cd6],'undoState':_0x490061[_0x20b463(0x3c4)][_0x20b463(0x346)],'redoState':_0x91123c['m2Prime'][_0x20b463(0x346)]}),_0x404a0e=_0x490061['m1Prime'],_0x241633=_0x91123c[_0x20b463(0x219)];}_0x404a0e=a[_0x20b463(0x17a)][_0x20b463(0x230)](_0x98b3a2['mutations'][0x0]),_0x241633=a[_0x20b463(0x17a)]['deepClone'](_0x98b3a2[_0x20b463(0x165)][0x0]);for(let _0x1de79a=_0x116c12['length']-0x1;_0x1de79a>=0x0;_0x1de79a--){const _0x58577e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x116c12[_0x1de79a]['unitId'],..._0x116c12[_0x1de79a][_0x20b463(0x2f2)]}},_0x1bbac3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x116c12[_0x1de79a][_0x20b463(0x34a)],..._0x116c12[_0x1de79a]['redoState']}},_0x59e72f=this[_0x20b463(0x301)][_0x20b463(0x31d)](_0x404a0e,_0x58577e,!0x1),_0x3021c3=this[_0x20b463(0x301)][_0x20b463(0x31d)](_0x241633,_0x1bbac3,!0x1);if(g[_0x20b463(0x140)](_0x59e72f))throw _0x59e72f[_0x20b463(0x1dd)];if(g[_0x20b463(0x140)](_0x3021c3))throw _0x3021c3[_0x20b463(0x1dd)];_0xe60ff8[_0x20b463(0x2cb)]({..._0x116c12[_0x1de79a],'undoState':_0x59e72f[_0x20b463(0x3c4)][_0x20b463(0x346)],'redoState':_0x3021c3['m2Prime'][_0x20b463(0x346)]}),_0x404a0e=_0x59e72f[_0x20b463(0x219)],_0x241633=_0x3021c3['m1Prime'];}this[_0x20b463(0x322)][_0x20b463(0x21a)](_0x4a0fa3,{'history':_0x1d16c9,'collaboration':_0xe60ff8});}};te=Gt([Ie(0x0,a['Inject'](a[_0x5f4c13(0x349)])),Ie(0x1,g[_0x5f4c13(0x2e7)]),Ie(0x2,a['Inject'](T[_0x5f4c13(0x2bf)]))],te);var Xt=Object[_0x5f4c13(0x1ee)],Kt=(_0xc47d4e,_0x5d74cb,_0x5abea4,_0x478af8)=>{for(var _0x1c08d1=_0x478af8>0x1?void 0x0:_0x478af8?Xt(_0x5d74cb,_0x5abea4):_0x5d74cb,_0x3a25ed=_0xc47d4e['length']-0x1,_0x3b50de;_0x3a25ed>=0x0;_0x3a25ed--)(_0x3b50de=_0xc47d4e[_0x3a25ed])&&(_0x1c08d1=_0x3b50de(_0x1c08d1)||_0x1c08d1);return _0x1c08d1;},Pe=(_0x117300,_0x358384)=>(_0x3768a8,_0x401b12)=>_0x358384(_0x3768a8,_0x401b12,_0x117300);let se=class{constructor(_0x490725,_0xbf3034){const _0x242b40=_0x5f4c13;this[_0x242b40(0x1fd)]=_0x490725,this['_transformService']=_0xbf3034;}['transformSelections'](_0x2be1f2){const _0x13f95f=_0x5f4c13;var _0x28312f;const _0x1d8254=this[_0x13f95f(0x1fd)][_0x13f95f(0x389)](V[_0x13f95f(0x345)]),_0x14fead=(_0x28312f=_0x1d8254[_0x13f95f(0x192)]())!=null?_0x28312f:[];if(_0x14fead[_0x13f95f(0x231)]===0x0)return;const _0x224af6=_0x2be1f2[_0x13f95f(0x26a)],_0x448e0d=[{'id':_0x13f95f(0x209),'params':{'unitId':_0x224af6,'actions':null,'textRanges':_0x14fead}}],_0x150ad7=this[_0x13f95f(0x301)][_0x13f95f(0x2b5)](_0x2be1f2,_0x448e0d);if(!g[_0x13f95f(0x36c)](_0x150ad7))throw _0x150ad7[_0x13f95f(0x1dd)];const _0x4f4b66=_0x150ad7['m2Prime'][0x0]['params'][_0x13f95f(0x304)];Array[_0x13f95f(0x180)](_0x4f4b66)&&_0x4f4b66[_0x13f95f(0x231)]&&_0x1d8254['replaceDocRanges'](_0x4f4b66,{'unitId':_0x224af6,'subUnitId':_0x224af6},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x5f4c13(0x349)])),Pe(0x1,g[_0x5f4c13(0x2e7)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x10ae08,_0x4adc77,_0x124af8,_0x532b77)=>{const _0x281c59=_0x5f4c13;for(var _0x5a3b1e=_0x532b77>0x1?void 0x0:_0x532b77?qt(_0x4adc77,_0x124af8):_0x4adc77,_0x384a87=_0x10ae08[_0x281c59(0x231)]-0x1,_0x31ac85;_0x384a87>=0x0;_0x384a87--)(_0x31ac85=_0x10ae08[_0x384a87])&&(_0x5a3b1e=_0x31ac85(_0x5a3b1e)||_0x5a3b1e);return _0x5a3b1e;},N=(_0x71a510,_0x141bd0)=>(_0x209062,_0x2a4274)=>_0x141bd0(_0x209062,_0x2a4274,_0x71a510);let ie=class extends a[_0x5f4c13(0x28f)]{constructor(_0x5c2e45,_0x4d84ee,_0x21c0f2,_0x12061e,_0x19e7e2,_0x249d74,_0x131102,_0x43dd29){const _0x1fccdc=_0x5f4c13;super(),_(this,'_status$',new I[(_0x1fccdc(0x2ed))](u[_0x1fccdc(0x376)][_0x1fccdc(0x347)])),(this['_docStateChangeManagerService']=_0x5c2e45,this[_0x1fccdc(0x217)]=_0x4d84ee,this[_0x1fccdc(0x245)]=_0x21c0f2,this[_0x1fccdc(0x325)]=_0x12061e,this[_0x1fccdc(0x1a4)]=_0x19e7e2,this['_docSyncEditingCollabCursorService']=_0x249d74,this['_messageService']=_0x131102,this[_0x1fccdc(0x2f1)]=_0x43dd29,this[_0x1fccdc(0x26e)]());}[_0x5f4c13(0x26e)](){const _0x38e68e=_0x5f4c13;this['disposeWithMe'](this['_collaborationController']['entityInit$'][_0x38e68e(0x154)](_0x2b8a2c=>{const _0x259de9=_0x38e68e,_0x195bd3=this[_0x259de9(0x322)][_0x259de9(0x332)][_0x259de9(0x154)](_0x3bb7a6=>{const _0x38f2b1=_0x259de9;if(_0x3bb7a6==null)return;const {unitId:_0x57fc40,redoState:_0x41369f,commandId:_0x2e66b1}=_0x3bb7a6;if(_0x57fc40!==_0x2b8a2c[_0x38f2b1(0x26a)])return;const _0x115b88={'id':_0x2e66b1,'type':a[_0x38f2b1(0x3d0)][_0x38f2b1(0x16f)],'params':{'unitId':_0x57fc40,'actions':_0x41369f[_0x38f2b1(0x2ef)],'textRanges':null}};_0x2b8a2c[_0x38f2b1(0x216)](_0x115b88);});if(_0x2b8a2c[_0x259de9(0x3da)](_0x195bd3),_0x2b8a2c instanceof u[_0x259de9(0x255)]){const _0x16f50b={'onTransformIME':_0x13696f=>this['_docTransformIMECacheService'][_0x259de9(0x369)](_0x13696f),'onTransformState':_0x3ed189=>this['_docTransformStateCacheService']['transformStateCache'](_0x3ed189),'onTransformSelections':_0x1e6f9a=>this[_0x259de9(0x1a4)][_0x259de9(0x1fb)](_0x1e6f9a),'onSyncEditingCollabCursor':_0x304f51=>this[_0x259de9(0x2ad)]['syncEditingCollabCursor'](_0x304f51),'onTransformRemoteChangesetByIMECache':_0x39e545=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x39e545),'onTransformRemoteChangesetByStateCache':_0x1b5597=>this[_0x259de9(0x325)]['transformRemoteChangeset'](_0x1b5597)};_0x2b8a2c[_0x259de9(0x2dc)](_0x16f50b);}}));}};ie=zt([N(0x0,a['Inject'](T[_0x5f4c13(0x2bf)])),N(0x1,a[_0x5f4c13(0x21b)](u['CollaborationController'])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x5f4c13(0x21b)](te)),N(0x4,a[_0x5f4c13(0x21b)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x5f4c13(0x117)]),N(0x7,a[_0x5f4c13(0x21b)](a['LocaleService']))],ie);var G=(_0x51631e=>(_0x51631e[_0x51631e[_0x5f4c13(0x128)]=0x0]=_0x5f4c13(0x128),_0x51631e[_0x51631e['OK']=0x1]='OK',_0x51631e[_0x51631e[_0x5f4c13(0x1af)]=0x2]='INTERNAL_ERROR',_0x51631e[_0x51631e[_0x5f4c13(0x39b)]=0x3]=_0x5f4c13(0x39b),_0x51631e[_0x51631e[_0x5f4c13(0x11a)]=0x4]=_0x5f4c13(0x11a),_0x51631e[_0x51631e[_0x5f4c13(0x27d)]=0x5]=_0x5f4c13(0x27d),_0x51631e[_0x51631e[_0x5f4c13(0x135)]=0x6]=_0x5f4c13(0x135),_0x51631e[_0x51631e[_0x5f4c13(0x190)]=0x7]=_0x5f4c13(0x190),_0x51631e[_0x51631e[_0x5f4c13(0x2c3)]=0x8]=_0x5f4c13(0x2c3),_0x51631e[_0x51631e[_0x5f4c13(0x303)]=0x9]=_0x5f4c13(0x303),_0x51631e[_0x51631e['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0x51631e[_0x51631e[_0x5f4c13(0x3a6)]=0xb]=_0x5f4c13(0x3a6),_0x51631e[_0x51631e[_0x5f4c13(0x1d9)]=0xc]=_0x5f4c13(0x1d9),_0x51631e[_0x51631e['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x5f4c13(0x1cb),_0x51631e[_0x51631e['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x51631e[_0x51631e[_0x5f4c13(0x1a3)]=0xf]=_0x5f4c13(0x1a3),_0x51631e[_0x51631e[_0x5f4c13(0x333)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x51631e[_0x51631e[_0x5f4c13(0x2b7)]=0x64]=_0x5f4c13(0x2b7),_0x51631e[_0x51631e['ERROR_AGAIN']=0x65]=_0x5f4c13(0x2d1),_0x51631e[_0x51631e['USER_NOT_FOUND']=0xc9]=_0x5f4c13(0x14d),_0x51631e[_0x51631e[_0x5f4c13(0x280)]=0xca]=_0x5f4c13(0x280),_0x51631e[_0x51631e[_0x5f4c13(0x218)]=0x1389]=_0x5f4c13(0x218),_0x51631e[_0x51631e[_0x5f4c13(0x344)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x51631e[_0x51631e[_0x5f4c13(0x286)]=0x1772]=_0x5f4c13(0x286),_0x51631e[_0x51631e[_0x5f4c13(0x3a5)]=0x1773]=_0x5f4c13(0x3a5),_0x51631e[_0x51631e[_0x5f4c13(0x20b)]=0x1b59]=_0x5f4c13(0x20b),_0x51631e[_0x51631e[_0x5f4c13(0x18e)]=0x1b5a]=_0x5f4c13(0x18e),_0x51631e[_0x51631e[_0x5f4c13(0x189)]=0x1b5b]=_0x5f4c13(0x189),_0x51631e[_0x51631e[_0x5f4c13(0x251)]=0x1b5c]=_0x5f4c13(0x251),_0x51631e[_0x51631e[_0x5f4c13(0x35f)]=0x1b5d]=_0x5f4c13(0x35f),_0x51631e[_0x51631e[_0x5f4c13(0x157)]=0x1f41]=_0x5f4c13(0x157),_0x51631e[_0x51631e[_0x5f4c13(0x394)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x51631e[_0x51631e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5f4c13(0x39d),_0x51631e[_0x51631e[_0x5f4c13(0x20c)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x51631e[_0x51631e[_0x5f4c13(0x24b)]=0x232c]=_0x5f4c13(0x24b),_0x51631e[_0x51631e['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5f4c13(0x2a4),_0x51631e[_0x51631e[_0x5f4c13(0x26b)]=0x2711]=_0x5f4c13(0x26b),_0x51631e[_0x51631e[_0x5f4c13(0x285)]=0x2712]=_0x5f4c13(0x285),_0x51631e[_0x51631e[_0x5f4c13(0x215)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x51631e[_0x51631e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5f4c13(0x3cb),_0x51631e[_0x51631e[_0x5f4c13(0x1d7)]=0x271a]=_0x5f4c13(0x1d7),_0x51631e[_0x51631e[_0x5f4c13(0x31a)]=0x271b]=_0x5f4c13(0x31a),_0x51631e[_0x51631e[_0x5f4c13(0x1f2)]=0x271c]=_0x5f4c13(0x1f2),_0x51631e[_0x51631e[_0x5f4c13(0x234)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x51631e[_0x51631e[_0x5f4c13(0x38c)]=0x271e]=_0x5f4c13(0x38c),_0x51631e[_0x51631e[_0x5f4c13(0x19b)]=0x271f]=_0x5f4c13(0x19b),_0x51631e[_0x51631e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x51631e[_0x51631e[_0x5f4c13(0x211)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x51631e[_0x51631e[_0x5f4c13(0x276)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x51631e[_0x51631e[_0x5f4c13(0x13b)]=0x2ee2]=_0x5f4c13(0x13b),_0x51631e[_0x51631e[_0x5f4c13(0x1b6)]=0x2ee3]=_0x5f4c13(0x1b6),_0x51631e[_0x51631e['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x51631e[_0x51631e[_0x5f4c13(0x11d)]=0x2ee5]=_0x5f4c13(0x11d),_0x51631e[_0x51631e[_0x5f4c13(0x1ac)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x51631e[_0x51631e['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x51631e[_0x51631e[_0x5f4c13(0x2b4)]=0x32cb]=_0x5f4c13(0x2b4),_0x51631e[_0x51631e[_0x5f4c13(0x1ef)]=0x36b1]=_0x5f4c13(0x1ef),_0x51631e[_0x51631e[_0x5f4c13(0x37b)]=0x36b2]=_0x5f4c13(0x37b),_0x51631e[_0x51631e['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x5f4c13(0x24f),_0x51631e[_0x51631e[_0x5f4c13(0x3c8)]=0x36b4]=_0x5f4c13(0x3c8),_0x51631e[_0x51631e[_0x5f4c13(0x1a1)]=0x36b5]=_0x5f4c13(0x1a1),_0x51631e[_0x51631e[_0x5f4c13(0x367)]=0x36b6]=_0x5f4c13(0x367),_0x51631e[_0x51631e[_0x5f4c13(0x30b)]=0x36b7]=_0x5f4c13(0x30b),_0x51631e[_0x51631e['ENTITLE_USE_COUPON_NOT_1ST_TRADE']=0x36b8]=_0x5f4c13(0x197),_0x51631e[_0x51631e[_0x5f4c13(0x237)]=0x3715]=_0x5f4c13(0x237),_0x51631e[_0x51631e[_0x5f4c13(0x1e8)]=0x3716]=_0x5f4c13(0x1e8),_0x51631e[_0x51631e[_0x5f4c13(0x271)]=0x3717]=_0x5f4c13(0x271),_0x51631e[_0x51631e[_0x5f4c13(0x161)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x51631e[_0x51631e[_0x5f4c13(0x24a)]=0x3a99]=_0x5f4c13(0x24a),_0x51631e[_0x51631e['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x5f4c13(0x34d),_0x51631e[_0x51631e[_0x5f4c13(0x23a)]=0x3a9b]=_0x5f4c13(0x23a),_0x51631e[_0x51631e['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x51631e[_0x51631e[_0x5f4c13(0x34b)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x51631e[_0x51631e[_0x5f4c13(0x188)]=0x3a9e]=_0x5f4c13(0x188),_0x51631e[_0x51631e[_0x5f4c13(0x223)]=0x3a9f]=_0x5f4c13(0x223),_0x51631e[_0x51631e[_0x5f4c13(0x249)]=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x51631e[_0x51631e[_0x5f4c13(0x226)]=-0x1]=_0x5f4c13(0x226),_0x51631e))(G||{});function Jt(_0x35f608){const _0x4b8e9b=_0x5f4c13;var _0x1aef9d,_0x303811;const _0x395f82=(_0x1aef9d=_0x35f608[_0x4b8e9b(0x37e)])==null?void 0x0:_0x1aef9d[_0x4b8e9b(0x1f6)],_0x4709b8=((_0x303811=_0x35f608[_0x4b8e9b(0x37e)])==null?void 0x0:_0x303811['totalFormulasToCalculate'])||0x0;return _0x395f82===B[_0x4b8e9b(0x375)][_0x4b8e9b(0x31b)]&&_0x4709b8>0x0;}function Zt(_0x120bc2){const _0x15a252=_0x5f4c13;return _0x120bc2['functionsExecutedState']===B[_0x15a252(0x123)][_0x15a252(0x2fc)];}var Qt=Object[_0x5f4c13(0x1ee)],es=(_0x4aa16a,_0x46485e,_0x18350d,_0x3e01c2)=>{const _0x83ba7d=_0x5f4c13;for(var _0x35e9db=_0x3e01c2>0x1?void 0x0:_0x3e01c2?Qt(_0x46485e,_0x18350d):_0x46485e,_0x17805a=_0x4aa16a[_0x83ba7d(0x231)]-0x1,_0x5c4e70;_0x17805a>=0x0;_0x17805a--)(_0x5c4e70=_0x4aa16a[_0x17805a])&&(_0x35e9db=_0x5c4e70(_0x35e9db)||_0x35e9db);return _0x35e9db;},L=(_0x5271c3,_0x1106b8)=>(_0x143c61,_0x251aaa)=>_0x1106b8(_0x143c61,_0x251aaa,_0x5271c3);const ts=_0x5f4c13(0x393),ss=_0x5f4c13(0x13f),is=_0x5f4c13(0x3a4);let ne=class extends a['Disposable']{constructor(_0x2b3b27,_0x5876ce,_0x35fd78,_0x221597,_0x8c4d9b,_0x499c38,_0x28bd03){const _0x348019=_0x5f4c13;super(),_(this,_0x348019(0x2af),null),_(this,_0x348019(0x3e1),0x0),_(this,_0x348019(0x259),0x0),_(this,'_taskIds',[]),_(this,_0x348019(0x399),0x0),(this['_messageService']=_0x2b3b27,this[_0x348019(0x274)]=_0x5876ce,this[_0x348019(0x29f)]=_0x35fd78,this['_httpService']=_0x221597,this[_0x348019(0x1fe)]=_0x8c4d9b,this[_0x348019(0x277)]=_0x499c38,this[_0x348019(0x2f1)]=_0x28bd03,this[_0x348019(0x1d3)]());}[_0x5f4c13(0x1d3)](){const _0x3de4e5=_0x5f4c13;this[_0x3de4e5(0x3da)](this[_0x3de4e5(0x274)][_0x3de4e5(0x1d8)]((_0x57f4a7,_0xbe681f)=>{const _0x26baca=_0x3de4e5;var _0x1cd23e;if(_0x57f4a7['id']!==B[_0x26baca(0x27a)]['id'])return;const _0x311893=_0x57f4a7['params'];if(!this[_0x26baca(0x26c)]((_0x1cd23e=_0x311893['dirtyRanges'])!=null?_0x1cd23e:[]))return;if(!this[_0x26baca(0x134)]())throw this[_0x26baca(0x1de)](_0x57f4a7,_0xbe681f),this[_0x26baca(0x315)](),new a[(_0x26baca(0x1f8))]();})),this[_0x3de4e5(0x3da)](this[_0x3de4e5(0x274)][_0x3de4e5(0x3d8)]((_0x323043,_0x46dfec)=>{const _0x15cec2=_0x3de4e5;if(_0x323043['id']!==B[_0x15cec2(0x297)]['id'])return;const _0x2a40b4=_0x323043[_0x15cec2(0x346)];if(Jt(_0x2a40b4)){const _0x564f67=a['generateRandomId']();this['_taskIds']['push'](_0x564f67),this[_0x15cec2(0x3d2)](_0x564f67);}else{if(Zt(_0x2a40b4)&&this[_0x15cec2(0x178)][_0x15cec2(0x231)]>0x0){const _0x10bb83=this[_0x15cec2(0x178)][_0x15cec2(0x2c9)]();this[_0x15cec2(0x182)](_0x10bb83);}}}));}['dispose'](){const _0x388cfa=_0x5f4c13;super[_0x388cfa(0x18f)](),this[_0x388cfa(0x25f)](),this[_0x388cfa(0x178)]=[],this[_0x388cfa(0x259)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x388cfa(0x399)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x4bb3a3,_0x193369){const _0x28258e=_0x5f4c13;for(let _0x5153ee=0x0;_0x5153ee<0x1e;_0x5153ee++)try{if(await this['_getFormulaLimitStatus'](),this[_0x28258e(0x134)]()){this[_0x28258e(0x334)](_0x4bb3a3,_0x193369),this['_messageService']['show']({'content':this[_0x28258e(0x2f1)]['t'](_0x28258e(0x267)),'type':p[_0x28258e(0x143)][_0x28258e(0x147)]});return;}await new Promise(_0x194104=>{const _0xc4b217=_0x28258e;this[_0xc4b217(0x2af)]=window[_0xc4b217(0x25e)](_0x194104,0x3e8);});}catch(_0x2fca3a){this[_0x28258e(0x277)][_0x28258e(0x1dd)](_0x2fca3a);}this['_messageService'][_0x28258e(0x3b8)]({'content':this[_0x28258e(0x2f1)]['t'](_0x28258e(0x2c8)),'type':p['MessageType'][_0x28258e(0x159)]});}[_0x5f4c13(0x334)](_0x7075fa,_0x272bd3){const _0x22a02b=_0x5f4c13;try{this['_commandService'][_0x22a02b(0x2a0)](_0x7075fa['id'],_0x7075fa[_0x22a02b(0x346)],_0x272bd3);}catch(_0x249a68){this['_logService'][_0x22a02b(0x1dd)](_0x249a68);}}[_0x5f4c13(0x1ad)](_0x2742e3,_0x1f10d1){const _0x50bc48=_0x5f4c13;_0x1f10d1<this[_0x50bc48(0x399)]||(this[_0x50bc48(0x399)]=_0x1f10d1,this[_0x50bc48(0x3e1)]=Number['parseInt'](_0x2742e3[_0x50bc48(0x138)]),this[_0x50bc48(0x259)]=Number['parseInt'](_0x2742e3[_0x50bc48(0x160)]));}async[_0x5f4c13(0x3d2)](_0x2ee553){const _0x669a6d=_0x5f4c13;var _0x53d8fe,_0x4caf83;const _0x36ffd2=Date[_0x669a6d(0x25a)]();try{const _0x5ed464=((_0x53d8fe=this[_0x669a6d(0x29f)][_0x669a6d(0x37a)](u[_0x669a6d(0x278)]))==null?void 0x0:_0x53d8fe[_0x669a6d(0x21d)])||ss,_0x41c0df=(await this[_0x669a6d(0x381)][_0x669a6d(0x35a)](_0x5ed464,{'body':JSON[_0x669a6d(0x241)]({'taskId':_0x2ee553})}))[_0x669a6d(0x136)];if(((_0x4caf83=_0x41c0df[_0x669a6d(0x1dd)])==null?void 0x0:_0x4caf83[_0x669a6d(0x2bc)])!==G['OK'])return;this[_0x669a6d(0x1ad)](_0x41c0df['limitInfo'],_0x36ffd2);}catch(_0x43c983){this['_logService']['error'](_0x43c983);}}async['_getFormulaLimitStatus'](_0x184a1f){const _0x51ae2f=_0x5f4c13;var _0x57909f,_0x3ebf37;const _0x16cb23=Date[_0x51ae2f(0x25a)]();try{const _0x5f380d=((_0x57909f=this[_0x51ae2f(0x29f)][_0x51ae2f(0x37a)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x57909f[_0x51ae2f(0x366)])||ts,_0x5e7709=_0x184a1f?_0x5f380d+_0x51ae2f(0x313)+encodeURIComponent(_0x184a1f):_0x5f380d,_0x4caee9=(await this[_0x51ae2f(0x381)][_0x51ae2f(0x389)](_0x5e7709))[_0x51ae2f(0x136)];if(((_0x3ebf37=_0x4caee9[_0x51ae2f(0x1dd)])==null?void 0x0:_0x3ebf37[_0x51ae2f(0x2bc)])!==G['OK'])return;this[_0x51ae2f(0x1ad)](_0x4caee9[_0x51ae2f(0x2eb)],_0x16cb23);}catch(_0x23d4ce){this['_logService'][_0x51ae2f(0x1dd)](_0x23d4ce);}}async['_releaseCalculationLimit'](_0x3e156e){const _0x7e78cb=_0x5f4c13;var _0x2fb262,_0x54de4f;const _0x1afa05=Date[_0x7e78cb(0x25a)]();try{const _0x8df14f=((_0x2fb262=this[_0x7e78cb(0x29f)]['getConfig'](u[_0x7e78cb(0x278)]))==null?void 0x0:_0x2fb262[_0x7e78cb(0x142)])||is,_0x38c75c=(await this[_0x7e78cb(0x381)][_0x7e78cb(0x35a)](_0x8df14f,{'body':JSON['stringify']({'taskId':_0x3e156e})}))['body'];if(((_0x54de4f=_0x38c75c[_0x7e78cb(0x1dd)])==null?void 0x0:_0x54de4f[_0x7e78cb(0x2bc)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x38c75c[_0x7e78cb(0x2eb)],_0x1afa05);}catch(_0x1d9e4b){this[_0x7e78cb(0x277)][_0x7e78cb(0x1dd)](_0x1d9e4b);}}[_0x5f4c13(0x134)](){const _0x31d177=_0x5f4c13;return this[_0x31d177(0x3e1)]===0x0?!0x0:this[_0x31d177(0x3e1)]-this[_0x31d177(0x259)]>0x0;}[_0x5f4c13(0x25f)](){const _0x177729=_0x5f4c13;this[_0x177729(0x2af)]&&(clearTimeout(this[_0x177729(0x2af)]),this[_0x177729(0x2af)]=null);}['_showGuardMessage'](){const _0x908450=_0x5f4c13;this[_0x908450(0x266)][_0x908450(0x3b8)]({'content':this[_0x908450(0x2f1)]['t'](_0x908450(0x397)),'type':p['MessageType'][_0x908450(0x242)]});}['_hasFormulaInDirtyRanges'](_0x836b45){const _0x60d3ae=_0x5f4c13;for(const _0x34b12d of _0x836b45){const {unitId:_0x947efe,sheetId:_0x5f25c5,range:_0x5a84d5}=_0x34b12d,_0x2d5e21=this[_0x60d3ae(0x1fe)][_0x60d3ae(0x19a)](_0x947efe);if(!_0x2d5e21)continue;const _0x430566=_0x2d5e21[_0x60d3ae(0x2b9)](_0x5f25c5);if(!_0x430566)continue;const _0x5425ad=_0x430566['getCellMatrix']();for(let _0x410c03=_0x5a84d5[_0x60d3ae(0x1a7)];_0x410c03<=_0x5a84d5[_0x60d3ae(0x1d1)];_0x410c03++)for(let _0x4893d5=_0x5a84d5[_0x60d3ae(0x170)];_0x4893d5<=_0x5a84d5[_0x60d3ae(0x1ba)];_0x4893d5++){const _0x1b1e75=_0x5425ad[_0x60d3ae(0x2cf)](_0x410c03,_0x4893d5);if(_0x1b1e75&&(a[_0x60d3ae(0x221)](_0x1b1e75['f'])||a[_0x60d3ae(0x1bd)](_0x1b1e75['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x5f4c13(0x21b)](O[_0x5f4c13(0x117)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x5f4c13(0x21b)](x[_0x5f4c13(0x166)])),L(0x4,a[_0x5f4c13(0x12a)]),L(0x5,a[_0x5f4c13(0x1c9)]),L(0x6,a['Inject'](a[_0x5f4c13(0x2b2)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x14fc27,_0x5b229b,_0x4bfdc0,_0x20c9d5)=>{const _0x399f74=_0x5f4c13;for(var _0x575ef5=_0x20c9d5>0x1?void 0x0:_0x20c9d5?ns(_0x5b229b,_0x4bfdc0):_0x5b229b,_0x53a0ae=_0x14fc27[_0x399f74(0x231)]-0x1,_0x320b31;_0x53a0ae>=0x0;_0x53a0ae--)(_0x320b31=_0x14fc27[_0x53a0ae])&&(_0x575ef5=_0x320b31(_0x575ef5)||_0x575ef5);return _0x575ef5;},Se=(_0x4c48be,_0x297506)=>(_0x4a0082,_0x5d9395)=>_0x297506(_0x4a0082,_0x5d9395,_0x4c48be);let Te=class extends a[_0x5f4c13(0x28f)]{constructor(_0x30eeba,_0x108573,_0x164196){const _0x3e096e=_0x5f4c13;super(),_(this,_0x3e096e(0x24d),new Map()),_(this,_0x3e096e(0x169),new Map()),_(this,_0x3e096e(0x35b),!0x1),(this[_0x3e096e(0x29f)]=_0x30eeba,this['_localStorageService']=_0x108573,this[_0x3e096e(0x206)]=_0x164196);}[_0x5f4c13(0x2b3)](){const _0x5bbb5d=_0x5f4c13;this[_0x5bbb5d(0x35b)]=!0x0;}[_0x5f4c13(0x330)](){const _0x595235=_0x5f4c13;this[_0x595235(0x35b)]=!0x1;}get[_0x5f4c13(0x3b7)](){const _0x30611b=_0x5f4c13;return this[_0x30611b(0x169)];}[_0x5f4c13(0x18f)](){const _0x27b600=_0x5f4c13;this['exhaustSavingTask']()[_0x27b600(0x314)](()=>super['dispose']());}async[_0x5f4c13(0x38a)](_0x3fa261){const _0x4a5e1a=_0x5f4c13;return this[_0x4a5e1a(0x35b)]?null:this[_0x4a5e1a(0x311)][_0x4a5e1a(0x3b6)](u['getLocalCacheKey'](_0x3fa261));}async[_0x5f4c13(0x238)](_0x39bc73,_0x333efe){const _0x4c3726=_0x5f4c13;return!!this[_0x4c3726(0x311)][_0x4c3726(0x3df)](_0x39bc73,_0x333efe);}[_0x5f4c13(0x122)](_0x5adb0c,_0x2fe4e1,_0x2ade1b,_0x576756){const _0x49cbb6=_0x5f4c13,_0x14097b=this[_0x49cbb6(0x206)][_0x49cbb6(0x173)](_0x5adb0c);this[_0x49cbb6(0x24d)]['set'](_0x5adb0c,{'unitID':_0x5adb0c,'type':_0x2fe4e1,'awaitingChangeset':_0x2ade1b,'mutations':_0x576756,'rev':_0x14097b}),this['_saveTaskMap'][_0x49cbb6(0x17f)](_0x5adb0c)||this['_scheduleSaving'](_0x5adb0c);}[_0x5f4c13(0x380)](_0x5c5564){const _0x5607ed=_0x5f4c13,_0x14875c=this['_getSaveTimeout']();_0x14875c===0x0?this['_saveCache'](_0x5c5564):this[_0x5607ed(0x169)]['set'](_0x5c5564,setTimeout(()=>this[_0x5607ed(0x22f)](_0x5c5564),_0x14875c));}[_0x5f4c13(0x2d2)](){const _0x1e6518=_0x5f4c13;var _0x16a015;return(_0x16a015=this[_0x1e6518(0x29f)][_0x1e6518(0x37a)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x16a015:u[_0x1e6518(0x20d)];}[_0x5f4c13(0x22f)](_0x57ac00){const _0x50e62d=_0x5f4c13,_0x47b629=this[_0x50e62d(0x169)]['get'](_0x57ac00);return _0x47b629!==void 0x0&&window[_0x50e62d(0x127)](_0x47b629),this[_0x50e62d(0x311)][_0x50e62d(0x3df)](u[_0x50e62d(0x3b2)](_0x57ac00),this['_cachedData'][_0x50e62d(0x389)](_0x57ac00))['then'](()=>this[_0x50e62d(0x169)][_0x50e62d(0x1aa)](_0x57ac00));}async[_0x5f4c13(0x3a3)](){const _0x52f894=_0x5f4c13,_0x3ebc77=[];this[_0x52f894(0x169)][_0x52f894(0x3ac)]((_0x2f7de8,_0x27b18b)=>{const _0x19b823=_0x52f894;window['clearTimeout'](_0x2f7de8),_0x3ebc77[_0x19b823(0x261)](this[_0x19b823(0x22f)](_0x27b18b)[_0x19b823(0x314)](()=>{const _0x592454=_0x19b823;this[_0x592454(0x169)]['delete'](_0x27b18b);}));}),await Promise[_0x52f894(0x3d6)](_0x3ebc77);}};Te=rs([Se(0x0,a[_0x5f4c13(0x118)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a['Inject'](g[_0x5f4c13(0x17e)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x41cde1=_0x5f4c13;super(),_(this,_0x41cde1(0x396)),this[_0x41cde1(0x396)]=I[_0x41cde1(0x203)](window,'popstate')[_0x41cde1(0x336)](I[_0x41cde1(0x3c7)](this[_0x41cde1(0x2ce)]),I['shareReplay'](0x1),I['mapTo'](void 0x0));}['setParam'](_0x573b98,_0x1f57d4,_0x212255=!0x1){const _0x17f133=_0x5f4c13,_0x22eb7b=new URL(window[_0x17f133(0x2e1)][_0x17f133(0x36a)]);_0x22eb7b[_0x17f133(0x2e4)]['set'](_0x573b98,_0x1f57d4),_0x212255?window[_0x17f133(0x279)][_0x17f133(0x3d3)]('','',_0x22eb7b[_0x17f133(0x327)]()):window['history']['pushState']('','',_0x22eb7b[_0x17f133(0x327)]());}['removeParam'](_0x55de73,_0x2634c2=!0x1){const _0x15fbd5=_0x5f4c13,_0x58283c=new URL(window[_0x15fbd5(0x2e1)][_0x15fbd5(0x36a)]);_0x58283c[_0x15fbd5(0x2e4)][_0x15fbd5(0x1aa)](_0x55de73),_0x2634c2?window['history'][_0x15fbd5(0x3d3)]('','',_0x58283c[_0x15fbd5(0x327)]()):window[_0x15fbd5(0x279)][_0x15fbd5(0x28a)]('','',_0x58283c[_0x15fbd5(0x327)]());}['getParam'](_0x541776){const _0x291218=_0x5f4c13;var _0x4a22d1;return(_0x4a22d1=new URL(window['location'][_0x291218(0x36a)])[_0x291218(0x2e4)]['get'](_0x541776))!=null?_0x4a22d1:void 0x0;}}function _0x38fa(){const _0x48a9d3=['colorChannel1','_docStateChangeManagerService','_selfUnitIDs','_colorAssignService','_docTransformStateCacheService','ISnapshotServerService','toString','ThemeService','registerRefRange','2680356KXJMbC','tag','getVpScrollXYInfoByPosToVp','onPointerMove$','runRefRangeMutations','IBeforeCloseService','enableLocalCache','_updateLocalCursor','docStateChange$','LOGIN_TOKEN_PROCESSING_FAILED','_applyCommand','_init','pipe','getFocusedUnit','_clearOtherTimers','text','currentColor','filter','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','distinctUntilChanged','resize','_docSkeleton','UNIVER_DOC','collab-rect-range-','range','join','SNAPSHOT_INVALID_SNAPSHOT','DocSelectionManagerService','params','NOT_COLLAB','_initUnhandledRejectionListener','Injector','unitId','REDEMPTION_USER_NOT_ELIGIBLE','roomMembers','REDEMPTION_CODE_INACTIVE','FETCH_MISS','createIdentifier','_entityInit$','toRgbString','unit','init','whenReady','stack','getRelativeToViewportCoord','saveImage','Failed','uni.network.url-service','post','_disabled','size','DependentOn','unsubscribe','APPLY_DUPLICATED','ticket','collaboration-client-ui.config','entries','_collabSessionService','blue.400','AWAITING_WITH_PENDING','getformulaLimitStatusUrl','ENTITLE_COUPON_EXPIRED','_getSheetObject','transformIMECache','href','enableFrontendLog','isTransformMutationsWithChangesetSuccess','DisposableCollection','ranges','triggerDblclick','SetWorksheetActivateCommand','_hover','_initUserListener','getActiveSheet','invokeId','FormulaExecuteStageType','CollaborationStatus','subscribeEvent','SessionStatus','4YIzcJA','getConfig','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','OnLineIcon','\x20at\x20','stageInfo','handleInsertCol','_scheduleSaving','_httpService','complete','red.300','application/json','CollaborationSocketService','DesktopCollaborationStatusDisplayController','_updateURLWithCurrentState','collaboration.closeRoom','get','loadOfflineData','event$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','NO_OTHER_CLIENTS_EDITING','SheetCollabCursorShape','CollaborationSessionService','fillText','_startSheetCollabCursor','jsx','/universer-api/license/formula/limit/status','LICENSE_MAX_UNITS_EXCEEDED','xlink:href','urlChange$','formula.calculation.waiting','off-line-icon_clip0_910_343','_lastResponseTimestamp','key','PERMISSION_DENIED','getRenderById','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_updateSubUnitFromURLParams','assignAColorForMemberID','_toggleOnline','_context','_send','exhaustSavingTask','/universer-api/license/formula/limit/done','ENSURE_SNAPSHOT_EXECUTION','MOBILE_VERIFY_CODE_MISMATCH','BuiltInUIPart','requireSession','_themeService','_unitOnClients','children','forEach','_onCursorUpdate','purple.300','HEADER_MENU','http://www.w3.org/2000/svg','IImageIoService','getLocalCacheKey','getCurrentUnitForType','handleMoveRange','CONFLICT','getItem','saveTaskMap','show','_textBubble','_initEvent','translate(.97)','getSheetObject','_backgroundColor','_renderManagerService','rgba(255,\x20255,\x20255,\x200.01)','engine','syncEditingCollabCursor','SUBMIT_CHANGESET_TIMEOUT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','m2Prime','_collaborationSessionService','_collaborationUIEventService','takeUntil','PAYMENT_CHANNEL_NOT_SUPPORT','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_registerDependencies','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformHistoryAndStateStack','_cursor','7ACOIMM','serializeRangeWithSheet','CommandType','_toggleOffline','_startCalculationLimit','replaceState','setConfig','color','all','_cursors','onCommandExecuted','TRANSFORM_CHANGE_OBSERVABLE_TYPE','disposeWithMe','handleIRemoveCol','_handleHover','collabStatus.synced','white','setItem','sessionStatus$','_maxFormulaLimit','_refRangeService','_anchorDot','_drawAnchor','NodePositionConvertToCursor','drawWith','IMessageService','IConfigService','[Unhandled\x20Rejection]:\x20','NOT_FOUND','_config','_shapes','INVITE_CODE_ALREADY_BOUND','toDisposable','RemoteUniscriptService','SHEET_VIEWPORT_KEY','_handleJoinEvent','updateOfflineData','FormulaExecutedStateType','Rect','DocIMEInputManagerService','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','clearTimeout','UNDEFINED','_sheetSkeletonManagerService','IUniverInstanceService','IDocClipboardService','on-line-icon_clip0_910_349','switchMap','_uiPartsService','sheetId','none','unload','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','black','_checkCalculationAvailable','ALREADY_EXISTS','body','substring','maxFormulaLimit','USERS_LEAVE','_urlService','INVALID_INVITE_CODE','map','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getMemberID','/universer-api/license/formula/limit/start','isTransformMutationFailure','_anchor','releaseFormulaLimitUrl','MessageType','collabStatus.fetchMiss','CollaborationUIEventId','restore','Success','TEXT','[CollaborationDataLoaderController]','getCurrentSelections','session.collaboration-timeout','Unknown\x20user','USER_NOT_FOUND','labelPosition','height','hide','_hovered','IURLService','_transformPreviousActiveRange','subscribe','roomMembers$','currentSkeleton$','CONNECTOR_DATA_TOO_LARGE','with','Error','2oGYxxd','getCoordByCell','_render','useDependency','trim','handleDeleteRangeMoveUp','currentUsage','ENTITLE_NEED_BILLING_ADDRESS','InsertRangeMoveRightCommandId','debounce','DataLoaderService','mutations','HTTPService','Tooltip','_ensureSubject','_saveTaskMap','getAncestorScale','_status$','measureText','DOC_RANGE_TYPE','RemoveColCommandId','MUTATION','startColumn','UnitStatus','symbol','getCurrentRevOfUnit','getCollabCursors$','beginPath','clsx','OFFLINE','_taskIds','getSkeleton','Tools','DeleteRangeMoveUpCommandId','message','registerComponent','RevisionService','has','isArray','_name','_releaseCalculationLimit','add','transformRemoteChangeset','getRangePointData','_lastPointer','774141HepIyK','REDEMPTION_USER_REDEEM_TIMES_EXCEED','APPLY_REVISION_CONFILICT','IRenderManagerService','clipPath','values','combineLatest','APPLY_NON_SEQUENTIAL_REVISION','dispose','INVALID_ARGUMENT','registerRenderModule','getDocRanges','transform','getUndoRedoMutationParamsCache','deserializeRangeWithSheet','arc','ENTITLE_USE_COUPON_NOT_1ST_TRADE','_assignedColors','closePath','getUnit','YUUMI_AI_RUN_FAILED','_beforeCloseService','Shape','yellow.400','send','_removeClearOtherTimer','ENTITLE_INVALID_COUPON_CODE','JOIN_ROOM_FAILED','AUTHORIZE_CODE_ILLEGAL','_docTransformSelectionsService','_scheduleHeartbeat','643690MQXPlt','startRow','_getMergeRange','width','delete','removeEventListener','WECHAT_HAS_BEEN_BOUND','_setFormulaLimitStatus','_initDependencies','INTERNAL_ERROR','catch','_createSocketURL','random','0\x200\x2017\x2016','COLORS','ColorKit','INVITE_CODE_REQUIRED','row','some','source','endColumn','result','getMember','isFormulaId','runId','/universer-api/frontend/logs','_setupBeforeClosingHandler','permission.title','BrowserCollaborationSocketService','Warning','type','cursorInfo','generateRandomId','CLOSE_ROOM','focused$','ILogService','_color','EMAIL_VERIFY_CODE_MISMATCH','RECT','_docClipboardService','reconnect','EffectRefRangId','MemberService','endRow','session.will-retry','_initCommandInterceptor','_notificationService','min','_initCommandExecutedListener','YUUMI_NO_CUBOID_FOR_QUESTION','beforeCommandExecuted','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','Optional','attrs','asObservable','error','_checkAndWaitForCalculationPermission','_cursorInfo$','newValue','getOffsetConfig','merge','Subject','_memberID','disposeUnit','connectInjector','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ENTITLE_REPORT_LIMIT_EXCEED','_initStatusListener','UniverInstanceType','currentTheme$','path','TEXT_RANGE_LAYER_INDEX','getOwnPropertyDescriptor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','ISocketService','getUnitStatus$','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_uploadLog','ICommandService','search','stage','RxDisposable','CanceledError','_handleLeaveEvent','socket$','transformSelections','2304309jMeHcW','_injector','_univerInstanceService','_initStatusComponent','_startDocCollabCursor','setParam','getUnhiddenWorksheets','fromEvent','onMouseMove','_collabCursorController','_revisionService','_hideTimer','createElement','doc.mutation.rich-text-editing','url(#$1','APPLY_REJECT','LICENSE_IMPORT_SIZE_EXCEEDED','LOCAL_CACHE_INTERVAL','evenodd','_online','ONLINE','PY_RUNTIME_SCRIPT_ERROR','748QRTgaK','redoState','defineProperty','YUUMI_RATE_OVER_LIMIT','onLocalMutation','_collaborationController','CHANGESET_REVISION_CONFILICT','m1Prime','setStateCache','Inject','createInstance','startFormulaLimitUrl','throttleTime','RefRangeService','_heartbeatTimer','isFormulaString','debug','REDEMPTION_CODE_HAS_BEEN_CREATED','_onRefRangeChange','forwardRef','UNRECOGNIZED','colno','_handleHeartbeatEvent','contains','imageSourceType','addObjects','_memberService','_roomMembers$','_scene','_saveCache','deepClone','length','idSuffix','fill','YUUMI_ALL_TABLES_IS_INVALID','UNIVER_SHEET','getCellPositionByOffset','ENTITLE_CHAT_LIMIT_EXCEED','saveOfflineData','_localCacheService','REDEMPTION_CODE_FULLY_REDEEMED','useRef','cursorInfo$','addObject','makeDirty','getCollabEntity$','onPointerLeave$','stringify','Loading','transformByState','setAlpha','_docTransformIMECacheService','replace','save','column','DATA_SOURCE_TOO_LARGE','REDEMPTION_INVALID_CODE','LICENSE_EXPORT_SIZE_EXCEEDED','CollaborationDataLoaderController','_cachedData','RichTextEditingMutation','ENTITLE_DUP_SUBSCRIPTION','setShapeProps','APPLY_PERMISSION_DENIED','parse','_scheduleClearOtherTimer','MoveRangeCommandId','DocCollaborationEntity','UniverCollaborationClientUIPlugin','subunit','Module','_currentUsage','now','_entities','name','from','setTimeout','_clearPolling','string','push','_labelPosition','_session','InsertColCommandId','getStateCache','_messageService','formula.calculation.started','mask','getParam','unitID','YUUMI_UNABLE_LOAD_URL','_hasFormulaInDirtyRanges','memberID','_initEntityListener','_initResize','Vector2','ENTITLE_INSUFFICIENT_QUOTA','getUnitId','touchDependencies','_commandService','permission.content','INVITE_CODE_HAS_BEEN_UES','_logService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','history','SetFormulaCalculationStartMutation','InsertRowCommandId','defs','UNAUTHENTICATED','_range','ACTIVE_UNIT_EVENT_CHANNEL','USER_IS_ANONYMOUS','SOCKET_FAILED','IRemoteInstanceService','subUnitId','collabStatus.notCollab','YUUMI_URL_COL_OUT_OF_RANGE','SNAPSHOT_HAS_BEEN_REMOVED','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','_drawRectRange','split','pushState','onRendered','_docSkeletonManagerService','_monkeyPatchLogService','clearInterval','Disposable','runOnServer','fillStyle','jiqing.500','Rectangle','backgroundColor','find','getTypeOfUnitAdded$','SetFormulaCalculationNotificationMutation','useObservable','_colorIndex','getColor','DEFAULT_WS_SESSION_TICKET_URL','findNodePositionByCharIndex','selection','font','_configService','executeCommand','skeleton','unhandledrejection','UPDATE_CURSOR','LICENSE_DISTRO_REJECTED','fromEventSubject','_instanceService','_dataLoaderService','debounceTime','div','url(#on-line-icon_clip0_910_349)','SetTextSelectionsOperation','collaboration.offline-data-not-saved','_docSyncEditingCollabCursorService','addEventListener','_pollingInterval','_id','collab-client.tooltip.reconnect','LocaleService','disableLocalCache','EMAIL_HAS_BEEN_BOUND','transformMutationsWithChangeset','0\x200\x2016\x2016','CURRENT_STATUS_CANNOT_OPERATE','_eventUnsubscribe','getSheetBySheetId','SetDocZoomRatioOperation','univer-mr-2\x20univer-flex\x20univer-text-xl','code','sheetID','transformStateCache','DocStateChangeManagerService','eventID','handleIRemoveRow','pluginName','TOO_MANY_REQUESTS','_refreshCollabCursors','OTHER_CLIENTS_EDITING','getColorFromTheme','_setupSubUnitSync','formula.calculation.unable','shift','assign','unshift','univerjs-icon\x20univerjs-icon-','M0\x200H16V16H0z','dispose$','getValue','selections','ERROR_AGAIN','_getSaveTimeout','getTypeOfUnitDisposed$','FromArray','_registerRenderDependencies','getSheetId','1em','override','_handleEvent','...','3037505plIWKq','addHandlerCallback','origin','7219782bQSAyp','round','session.connection-failed','location','RegularPolygon','ILocalCacheService','searchParams','collabStatus.syncing','fillRule','ITransformService','WebURLService','_getSessionTicket','_getAnchorBounding','limitInfo','[Window\x20Error]:\x20','BehaviorSubject','_collabCursorState$','actions','svg','_localeService','undoState','off-line-icon','_syncEditingCollabCursorService','loadUnit','_removeCollabCursors','setInterval','_cursorShapes','getCurrent','storage','sessionTicket','SUCCESS','status$','_updateCollabCursors','bottom','bind','_transformService','next','COMPLETION_FINISHED','textRanges','_draw','OffLineIcon','SetSelectionsOperation','flatMap','lineTo','displayName','ENTITLE_COUPON_USED_UP','SOCKET_FAILED_RETRY','CollaborationEvent','Workbook','3840464TQvekF','set','_localStorageService','_unitStatus','?taskId=','then','_showGuardMessage','activeSheet$','startsWith','_transformUndoRedoStack','_onCursorDelete','YUUMI_ASYNCIO_CANCELLED','START_CALCULATION','_imageIoService','transformMutation','includes','data','top'];_0x38fa=function(){return _0x48a9d3;};return _0x38fa();}function _0x1124(_0x5417d4,_0x6553bb){_0x5417d4=_0x5417d4-0x117;const _0x38fa46=_0x38fa();let _0x112425=_0x38fa46[_0x5417d4];return _0x112425;}var os=Object[_0x5f4c13(0x214)],as=Object['getOwnPropertyDescriptor'],cs=(_0x1f6e45,_0x495c78,_0x12fd0b)=>_0x495c78 in _0x1f6e45?os(_0x1f6e45,_0x495c78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12fd0b}):_0x1f6e45[_0x495c78]=_0x12fd0b,ls=(_0x49278e,_0x4c2ab2,_0x357453,_0x16da87)=>{const _0x342f75=_0x5f4c13;for(var _0x33b971=_0x16da87>0x1?void 0x0:_0x16da87?as(_0x4c2ab2,_0x357453):_0x4c2ab2,_0x29589b=_0x49278e[_0x342f75(0x231)]-0x1,_0x12cce0;_0x29589b>=0x0;_0x29589b--)(_0x12cce0=_0x49278e[_0x29589b])&&(_0x33b971=_0x12cce0(_0x33b971)||_0x33b971);return _0x33b971;},de=(_0x4c285d,_0x3ebf7e)=>(_0x1f02ac,_0x1da275)=>_0x3ebf7e(_0x1f02ac,_0x1da275,_0x4c285d),_s=(_0x192820,_0x493d7e,_0x26e7c6)=>cs(_0x192820,_0x493d7e+'',_0x26e7c6);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x1020aa=Me,_0x3bc6ab,_0x419627,_0x390433){const _0x514ba5=_0x5f4c13;super(),this[_0x514ba5(0x11b)]=_0x1020aa,this[_0x514ba5(0x3be)]=_0x3bc6ab,this[_0x514ba5(0x1fd)]=_0x419627,this[_0x514ba5(0x29f)]=_0x390433;const {..._0x156cf4}=a[_0x514ba5(0x1e2)]({},Me,this[_0x514ba5(0x11b)]);this['_configService'][_0x514ba5(0x3d4)](Yt,_0x156cf4);}['onStarting'](){const _0x2fc145=_0x5f4c13;this['_registerDependencies'](),this[_0x2fc145(0x1ae)]();}[_0x5f4c13(0x28b)](){const _0x15a294=_0x5f4c13;this[_0x15a294(0x2d5)]();}[_0x5f4c13(0x3ca)](){const _0x528f01=_0x5f4c13;var _0x28348e;const _0x119004=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x528f01(0x1f0)],{'useClass':x['WebSocketService']}],[u['ILocalCacheService'],{'useClass':Te}],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x528f01(0x11b)][_0x528f01(0x36b)]&&_0x119004['push']([Q]),a['registerDependencies'](this[_0x528f01(0x1fd)],a['mergeOverrideWithDependencies'](_0x119004,(_0x28348e=this['_config'])==null?void 0x0:_0x28348e[_0x528f01(0x2d8)]));}[_0x5f4c13(0x2d5)](){const _0x3e94bc=_0x5f4c13;this[_0x3e94bc(0x3da)](this[_0x3e94bc(0x3be)][_0x3e94bc(0x191)](a['UniverInstanceType']['UNIVER_DOC'],[Ee])),this[_0x3e94bc(0x3da)](this['_renderManagerService'][_0x3e94bc(0x191)](a['UniverInstanceType']['UNIVER_SHEET'],[Ce]));}[_0x5f4c13(0x1ae)](){const _0x149c92=_0x5f4c13;a[_0x149c92(0x273)](this[_0x149c92(0x1fd)],[[F],[exports[_0x149c92(0x386)]],[ie],[Z],[exports[_0x149c92(0x24c)]],[ne]]),this[_0x149c92(0x11b)][_0x149c92(0x36b)]&&a[_0x149c92(0x273)](this[_0x149c92(0x1fd)],[[Q]]);}},_s(exports[_0x5f4c13(0x256)],_0x5f4c13(0x2c2),hs),exports[_0x5f4c13(0x256)]=ls([a[_0x5f4c13(0x35d)](u['UniverCollaborationClientPlugin']),de(0x1,C[_0x5f4c13(0x18a)]),de(0x2,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),de(0x3,a['IConfigService'])],exports[_0x5f4c13(0x256)]);var us=Object[_0x5f4c13(0x1ee)],Is=(_0xd54244,_0x17ebd4,_0x2123c1,_0x319503)=>{const _0x165077=_0x5f4c13;for(var _0x5c9f56=_0x319503>0x1?void 0x0:_0x319503?us(_0x17ebd4,_0x2123c1):_0x17ebd4,_0x5656d2=_0xd54244[_0x165077(0x231)]-0x1,_0xb4d356;_0x5656d2>=0x0;_0x5656d2--)(_0xb4d356=_0xd54244[_0x5656d2])&&(_0x5c9f56=_0xb4d356(_0x5c9f56)||_0x5c9f56);return _0x5c9f56;},W=(_0x2844bc,_0x4631f2)=>(_0x9d2b1c,_0x290977)=>_0x4631f2(_0x9d2b1c,_0x290977,_0x2844bc);exports[_0x5f4c13(0x1c2)]=class extends u[_0x5f4c13(0x385)]{constructor(_0x5911db,_0x4639dc,_0x454df8,_0x5e2928,_0x502cd9){super(_0x5911db,_0x4639dc,_0x454df8,_0x5e2928,_0x502cd9);}async['createSocket'](_0x3309e3){const _0x4421ad=_0x5f4c13,_0x39771f=await this['_getSessionTicket'](),_0xef7795=this[_0x4421ad(0x1b1)](_0x3309e3,_0x39771f);return this['_doCreateSocket'](_0xef7795);}[_0x5f4c13(0x1b1)](_0x58ecb5,_0x2ca527){const _0x1d974f=_0x5f4c13,_0x40d3ba=typeof window>'u'?new URL(_0x58ecb5):new URL(_0x58ecb5,window[_0x1d974f(0x2e1)][_0x1d974f(0x2dd)]);_0x40d3ba['searchParams'][_0x1d974f(0x310)](_0x1d974f(0x2fb),_0x2ca527);const _0x3948cf=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1d974f(0x1f5)]);return _0x3948cf[_0x1d974f(0x389)]('runId')&&_0x40d3ba[_0x1d974f(0x2e4)][_0x1d974f(0x310)](_0x1d974f(0x1be),_0x3948cf['get']('runId')),_0x40d3ba[_0x1d974f(0x327)]();}async[_0x5f4c13(0x2e9)](){const _0x5d28d6=_0x5f4c13;var _0x27d324,_0x1a4916,_0x1d4e62;const _0xbb415=this[_0x5d28d6(0x29f)]['getConfig'](u[_0x5d28d6(0x278)]),_0x1012b7=(_0x27d324=_0xbb415==null?void 0x0:_0xbb415['wsSessionTicketUrl'])!=null?_0x27d324:u[_0x5d28d6(0x29b)];return(_0x1d4e62=(_0x1a4916=(await this[_0x5d28d6(0x381)]['get'](_0x1012b7,{'headers':{'Content-Type':_0x5d28d6(0x384)}}))[_0x5d28d6(0x136)])==null?void 0x0:_0x1a4916[_0x5d28d6(0x360)])!=null?_0x1d4e62:'';}},exports['BrowserCollaborationSocketService']=Is([W(0x0,a[_0x5f4c13(0x21b)](a[_0x5f4c13(0x349)])),W(0x1,a[_0x5f4c13(0x21b)](x['HTTPService'])),W(0x2,a[_0x5f4c13(0x118)]),W(0x3,a[_0x5f4c13(0x1c9)]),W(0x4,g[_0x5f4c13(0x326)])],exports['BrowserCollaborationSocketService']);var Ss=Object[_0x5f4c13(0x1ee)],ds=(_0x538f46,_0x3107a2,_0x56d443,_0x2db13a)=>{for(var _0x3ae2de=_0x2db13a>0x1?void 0x0:_0x2db13a?Ss(_0x3107a2,_0x56d443):_0x3107a2,_0x45c3c2=_0x538f46['length']-0x1,_0x4c0d54;_0x45c3c2>=0x0;_0x45c3c2--)(_0x4c0d54=_0x538f46[_0x45c3c2])&&(_0x3ae2de=_0x4c0d54(_0x3ae2de)||_0x3ae2de);return _0x3ae2de;},fe=(_0x59377d,_0xaed835)=>(_0x136864,_0x2c7bb6)=>_0xaed835(_0x136864,_0x2c7bb6,_0x59377d);exports['RemoteUniscriptService']=class extends a[_0x5f4c13(0x28f)]{constructor(_0x3a01dd,_0x2a2ec4,_0x30d400){const _0x2aa58a=_0x5f4c13;super(),this['_instanceService']=_0x3a01dd,this[_0x2aa58a(0x381)]=_0x2a2ec4,this[_0x2aa58a(0x29f)]=_0x30d400;}async[_0x5f4c13(0x290)](_0x19e1d6,_0x47c5fc,_0xac8892,..._0x2afb22){const _0x70a1ca=_0x5f4c13;var _0x3adc55,_0x3271bd,_0x3e49a5,_0x3a5999;const _0x1496e0=this[_0x70a1ca(0x2a6)]['getFocusedUnit']();if(!_0x1496e0)throw new Error(_0x70a1ca(0x3c3));const _0x5157db=((_0x3adc55=this['_configService']['getConfig'](u[_0x70a1ca(0x3c9)]))!=null?_0x3adc55:u[_0x70a1ca(0x132)])+'/'+_0x19e1d6+'/run/'+_0x47c5fc,_0x359d77=new URL(window['location']['href']),_0x31c568={'scriptId':_0x19e1d6,'runId':(_0x3271bd=_0x359d77[_0x70a1ca(0x2e4)][_0x70a1ca(0x389)](_0x70a1ca(0x1be)))!=null?_0x3271bd:'','function':_0x47c5fc,'unitId':_0x1496e0[_0x70a1ca(0x272)](),'argsOfFunction':JSON[_0x70a1ca(0x241)](_0x2afb22),'invokeId':(_0x3e49a5=_0xac8892[_0x70a1ca(0x374)])!=null?_0x3e49a5:'','executionId':(_0x3a5999=_0xac8892['executionId'])!=null?_0x3a5999:''};try{const _0x19ce9a=await this[_0x70a1ca(0x381)]['post'](_0x5157db,{'body':_0x31c568});return _0x19ce9a[_0x70a1ca(0x136)]['error']&&_0x19ce9a[_0x70a1ca(0x136)][_0x70a1ca(0x1dd)][_0x70a1ca(0x2bc)]!==G['OK']?'Failed':_0x19ce9a['body'][_0x70a1ca(0x1bb)];}catch{return _0x70a1ca(0x358);}}},exports[_0x5f4c13(0x11f)]=ds([fe(0x0,a[_0x5f4c13(0x12a)]),fe(0x1,a[_0x5f4c13(0x21b)](x['HTTPService'])),fe(0x2,a[_0x5f4c13(0x118)])],exports['RemoteUniscriptService']);const we=0x7530,ye=_0x5f4c13(0x27f);class fs extends a['Disposable']{constructor(){const _0x2ae517=_0x5f4c13;super(),_(this,_0x2ae517(0x2b0),a['generateRandomId']()),_(this,_0x2ae517(0x323),new Set()),_(this,_0x2ae517(0x3aa),new Map()),_(this,_0x2ae517(0x220),null),_(this,_0x2ae517(0x338),new Map()),_(this,_0x2ae517(0x312),new Map()),this['_init']();}[_0x5f4c13(0x18f)](){const _0x41ded5=_0x5f4c13;super[_0x41ded5(0x18f)](),this['_clearOtherTimers'][_0x41ded5(0x3ac)]((_0x4d5b2e,_0x2250f9)=>this[_0x41ded5(0x1a0)](_0x2250f9)),this[_0x41ded5(0x220)]&&window['clearInterval'](this[_0x41ded5(0x220)]);}[_0x5f4c13(0x1f1)](_0x4de2f8){const _0xdfb90e=_0x5f4c13;return this[_0xdfb90e(0x168)](_0x4de2f8)[_0xdfb90e(0x336)](I[_0xdfb90e(0x33d)]());}['editingUnit'](_0x3783e2){const _0x4353da=_0x5f4c13;this[_0x4353da(0x323)][_0x4353da(0x35c)]===0x0&&this[_0x4353da(0x1a5)](),this[_0x4353da(0x323)][_0x4353da(0x183)](_0x3783e2),this['_send']({'type':0x0,'memberID':this[_0x4353da(0x2b0)],'unitIDs':[_0x3783e2],'isForwarded':!0x1});}[_0x5f4c13(0x1e5)](_0x49921d){const _0x7c28aa=_0x5f4c13;this[_0x7c28aa(0x323)][_0x7c28aa(0x1aa)](_0x49921d),this['_selfUnitIDs']['size']===0x0&&this[_0x7c28aa(0x220)]&&window[_0x7c28aa(0x28e)](this[_0x7c28aa(0x220)]);}[_0x5f4c13(0x335)](){const _0x2a7180=_0x5f4c13;this[_0x2a7180(0x3da)](a[_0x2a7180(0x11e)](I[_0x2a7180(0x203)](window,_0x2a7180(0x2fa))[_0x2a7180(0x154)](_0x305976=>{const _0x8867ee=_0x2a7180;if(_0x305976[_0x8867ee(0x39a)]!==ye||!_0x305976[_0x8867ee(0x1e0)])return;const _0x489c7e=JSON[_0x8867ee(0x252)](_0x305976['newValue']);this[_0x8867ee(0x2d9)](_0x489c7e);}))),window[_0x2a7180(0x2ae)](_0x2a7180(0x131),()=>this[_0x2a7180(0x3a2)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2a7180(0x25d)](this[_0x2a7180(0x323)])}));}[_0x5f4c13(0x2d9)](_0x58b057){const _0x5ebe3c=_0x5f4c13;switch(_0x58b057[_0x5ebe3c(0x1c4)]){case 0x0:this[_0x5ebe3c(0x121)](_0x58b057);break;case 0x1:this[_0x5ebe3c(0x1f9)](_0x58b057);break;case 0x2:this['_handleHeartbeatEvent'](_0x58b057);break;}}['_handleJoinEvent'](_0x45a2fa){const _0xc6a88f=_0x5f4c13,{unitIDs:_0x43284f,memberID:_0x40a885,isForwarded:_0x3df383}=_0x45a2fa;_0x43284f[_0xc6a88f(0x3ac)](_0x16cb77=>{const _0x4ec61d=_0xc6a88f;if(!_0x3df383&&this[_0x4ec61d(0x3aa)][_0x4ec61d(0x17f)](_0x16cb77)&&this['_ensureSubject'](_0x16cb77)['next'](u[_0x4ec61d(0x171)][_0x4ec61d(0x2c5)]),!this[_0x4ec61d(0x3aa)][_0x4ec61d(0x17f)](_0x16cb77)||!this['_unitOnClients']['get'](_0x16cb77)[_0x4ec61d(0x17f)](_0x40a885)){const _0x21eeab=this['_unitOnClients']['get'](_0x16cb77)||new Set();_0x21eeab[_0x4ec61d(0x183)](_0x40a885),this[_0x4ec61d(0x3aa)]['set'](_0x16cb77,_0x21eeab),this[_0x4ec61d(0x253)](_0x40a885);}}),_0x3df383||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xc6a88f(0x323)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5cd849){const _0x34bfb6=_0x5f4c13;this['_removeClearOtherTimer'](_0x5cd849);const _0x3de51a=window[_0x34bfb6(0x25e)](()=>{const _0x175e27=_0x34bfb6;this[_0x175e27(0x3aa)]['forEach'](_0x5c4098=>{const _0x43a354=_0x175e27;_0x5c4098[_0x43a354(0x1aa)](_0x5cd849);});},we*0x2);this['_clearOtherTimers'][_0x34bfb6(0x310)](_0x5cd849,_0x3de51a);}[_0x5f4c13(0x1a0)](_0x11317f){const _0x13a086=_0x5f4c13;if(this[_0x13a086(0x338)][_0x13a086(0x17f)](_0x11317f)){const _0x3180ce=this[_0x13a086(0x338)][_0x13a086(0x389)](_0x11317f);_0x3180ce&&window[_0x13a086(0x127)](_0x3180ce),this['_clearOtherTimers'][_0x13a086(0x310)](_0x11317f,null);}}['_handleLeaveEvent'](_0x276c8a){const _0x10a920=_0x5f4c13,{memberID:_0x2215f2,unitIDs:_0x49375e}=_0x276c8a;_0x49375e[_0x10a920(0x3ac)](_0x2c403d=>{const _0x4514c9=_0x10a920;var _0x20a71f;const _0x48d5e3=this[_0x4514c9(0x3aa)][_0x4514c9(0x389)](_0x2c403d);_0x48d5e3&&(_0x48d5e3[_0x4514c9(0x1aa)](_0x2215f2),(_0x20a71f=this[_0x4514c9(0x168)](_0x2c403d))==null||_0x20a71f[_0x4514c9(0x302)](_0x48d5e3[_0x4514c9(0x35c)]===0x0?u[_0x4514c9(0x171)][_0x4514c9(0x38d)]:u['UnitStatus'][_0x4514c9(0x2c5)]));}),this[_0x10a920(0x1a0)](_0x2215f2);}[_0x5f4c13(0x228)](_0x210836){const _0x2d9dbc=_0x5f4c13;this['_scheduleClearOtherTimer'](_0x210836[_0x2d9dbc(0x26d)]);}[_0x5f4c13(0x3a2)](_0x35b4ea){const _0x149a4b=_0x5f4c13;localStorage[_0x149a4b(0x3df)](ye,JSON['stringify'](_0x35b4ea));}[_0x5f4c13(0x1a5)](){const _0x16307f=_0x5f4c13;this[_0x16307f(0x220)]=window[_0x16307f(0x2f7)](()=>{const _0x6aa876=_0x16307f;this[_0x6aa876(0x3a2)]({'type':0x2,'memberID':this[_0x6aa876(0x2b0)]});},we);}[_0x5f4c13(0x168)](_0x51242f){const _0x396891=_0x5f4c13;return this[_0x396891(0x312)][_0x396891(0x17f)](_0x51242f)||this['_unitStatus'][_0x396891(0x310)](_0x51242f,new I['BehaviorSubject'](u[_0x396891(0x171)][_0x396891(0x38d)])),this[_0x396891(0x312)][_0x396891(0x389)](_0x51242f);}}exports[_0x5f4c13(0x152)]=Oe,exports[_0x5f4c13(0x38e)]=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x5f4c13(0x2e8)]=ke;
|