@univerjs-pro/collaboration-client-ui 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -0
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/sk-SK.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4a7abe=_0xdbe3;(function(_0x4f7829,_0x4f61a7){const _0x31b171=_0xdbe3,_0x469216=_0x4f7829();while(!![]){try{const _0x405d30=-parseInt(_0x31b171(0x30e))/0x1+parseInt(_0x31b171(0x3a6))/0x2+-parseInt(_0x31b171(0x429))/0x3*(-parseInt(_0x31b171(0x1d1))/0x4)+parseInt(_0x31b171(0x3a0))/0x5+parseInt(_0x31b171(0x488))/0x6+parseInt(_0x31b171(0x209))/0x7*(-parseInt(_0x31b171(0x2b3))/0x8)+parseInt(_0x31b171(0x39b))/0x9*(-parseInt(_0x31b171(0x212))/0xa);if(_0x405d30===_0x4f61a7)break;else _0x469216['push'](_0x469216['shift']());}catch(_0x28045a){_0x469216['push'](_0x469216['shift']());}}}(_0x3550,0xded0a));var Xe=Object[_0x4a7abe(0x25e)],Ke=(_0x1513ca,_0x1c9a95,_0x550757)=>_0x1c9a95 in _0x1513ca?Xe(_0x1513ca,_0x1c9a95,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x550757}):_0x1513ca[_0x1c9a95]=_0x550757,_=(_0x529ced,_0x3ac635,_0x36fbf7)=>Ke(_0x529ced,typeof _0x3ac635!=_0x4a7abe(0x2fc)?_0x3ac635+'':_0x3ac635,_0x36fbf7);Object['defineProperty'](exports,Symbol[_0x4a7abe(0x3ef)],{'value':_0x4a7abe(0x252)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x31c6ab,..._0x588389}){const _0x151412=_0x4a7abe,{icon:_0x2a5f13,id:_0x37e5ee,className:_0x5d6aac,extend:_0x4773ca,..._0x2e2ddd}=_0x588389,_0x471ee0=(_0x151412(0x31b)+_0x37e5ee+'\x20'+(_0x5d6aac||''))[_0x151412(0x2fd)](),_0x345bc8=A[_0x151412(0x23b)]('_'+Qe());return $e(_0x2a5f13,''+_0x37e5ee,{'defIds':_0x2a5f13['defIds'],'idSuffix':_0x345bc8['current']},{'ref':_0x31c6ab,'className':_0x471ee0,..._0x2e2ddd},_0x4773ca);}function $e(_0x2f8396,_0xf76121,_0x2ca74e,_0xb05f7b,_0x136d71){const _0x56200e=_0x4a7abe;return A['createElement'](_0x2f8396[_0x56200e(0x37f)],{'key':_0xf76121,...Je(_0x2f8396,_0x2ca74e,_0x136d71),..._0xb05f7b},(Ze(_0x2f8396,_0x2ca74e)[_0x56200e(0x341)]||[])[_0x56200e(0x314)]((_0x1b5fcc,_0x300e56)=>$e(_0x1b5fcc,_0xf76121+'-'+_0x2f8396['tag']+'-'+_0x300e56,_0x2ca74e,void 0x0,_0x136d71)));}function Je(_0x2f354c,_0x3a3ac9,_0x4a24b9){const _0x1e2734=_0x4a7abe,_0x21eed6={..._0x2f354c['attrs']};_0x4a24b9!=null&&_0x4a24b9[_0x1e2734(0x23f)]&&_0x21eed6[_0x1e2734(0x42c)]==='colorChannel1'&&(_0x21eed6[_0x1e2734(0x42c)]=_0x4a24b9[_0x1e2734(0x23f)]),_0x2f354c[_0x1e2734(0x37f)]===_0x1e2734(0x204)&&_0x21eed6['id']&&(_0x21eed6['id']=_0x21eed6['id']+_0x3a3ac9['idSuffix']),Object[_0x1e2734(0x236)](_0x21eed6)[_0x1e2734(0x2aa)](([_0x10bf47,_0x3704c0])=>{const _0x4ae7e6=_0x1e2734;_0x10bf47===_0x4ae7e6(0x204)&&typeof _0x3704c0==_0x4ae7e6(0x32b)&&(_0x21eed6[_0x10bf47]=_0x3704c0['replace'](/url\(#(.*)\)/,_0x4ae7e6(0x3ba)+_0x3a3ac9[_0x4ae7e6(0x472)]+')'));});const {defIds:_0x556def}=_0x3a3ac9;return!_0x556def||_0x556def[_0x1e2734(0x3e3)]===0x0||(_0x2f354c[_0x1e2734(0x37f)]===_0x1e2734(0x35b)&&_0x21eed6[_0x1e2734(0x215)]&&(_0x21eed6[_0x1e2734(0x215)]=_0x21eed6[_0x1e2734(0x215)]+_0x3a3ac9['idSuffix']),Object[_0x1e2734(0x236)](_0x21eed6)[_0x1e2734(0x2aa)](([_0x4ff696,_0x40e85d])=>{const _0x19c1cf=_0x1e2734;typeof _0x40e85d=='string'&&(_0x21eed6[_0x4ff696]=_0x40e85d[_0x19c1cf(0x36f)](/url\(#(.*)\)/,'url(#$1'+_0x3a3ac9[_0x19c1cf(0x472)]+')'));})),_0x21eed6;}function Ze(_0x235df5,_0x40efd5){const _0x51d6cb=_0x4a7abe;var _0x288df9;const {defIds:_0x5117c3}=_0x40efd5;return!_0x5117c3||_0x5117c3[_0x51d6cb(0x3e3)]===0x0?_0x235df5:_0x235df5[_0x51d6cb(0x37f)]===_0x51d6cb(0x441)&&((_0x288df9=_0x235df5[_0x51d6cb(0x341)])!=null&&_0x288df9[_0x51d6cb(0x3e3)])?{..._0x235df5,'children':_0x235df5['children'][_0x51d6cb(0x314)](_0x145077=>typeof _0x145077['attrs']['id']==_0x51d6cb(0x32b)&&_0x5117c3&&_0x5117c3[_0x51d6cb(0x3fc)](_0x145077[_0x51d6cb(0x3fa)]['id'])?{..._0x145077,'attrs':{..._0x145077[_0x51d6cb(0x3fa)],'id':_0x145077[_0x51d6cb(0x3fa)]['id']+_0x40efd5['idSuffix']}}:_0x145077)}:_0x235df5;}function Qe(){const _0x576e0c=_0x4a7abe;return Math[_0x576e0c(0x33d)]()[_0x576e0c(0x442)](0x24)[_0x576e0c(0x27d)](0x2,0x8);}pe[_0x4a7abe(0x438)]=_0x4a7abe(0x340);const et={'tag':_0x4a7abe(0x432),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4a7abe(0x415),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'stroke':_0x4a7abe(0x3e9),'d':_0x4a7abe(0x411),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4a7abe(0x441),'attrs':{},'children':[{'tag':_0x4a7abe(0x406),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'fill':_0x4a7abe(0x44f),'d':_0x4a7abe(0x357)}}]}]}],'defIds':[_0x4a7abe(0x26b)]},xe=A[_0x4a7abe(0x1c3)](function(_0x1edf92,_0x6c02d5){const _0x461e68=_0x4a7abe;return A['createElement'](pe,Object['assign']({},_0x1edf92,{'id':_0x461e68(0x2d8),'ref':_0x6c02d5,'icon':et}));});xe['displayName']=_0x4a7abe(0x3fb);const tt={'tag':_0x4a7abe(0x432),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4a7abe(0x47f),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4a7abe(0x445)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a7abe(0x2c1)},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'stroke':_0x4a7abe(0x3e9),'d':_0x4a7abe(0x1e0),'strokeLinecap':_0x4a7abe(0x381),'strokeLinejoin':_0x4a7abe(0x381),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a7abe(0x406),'attrs':{'id':_0x4a7abe(0x458)},'children':[{'tag':_0x4a7abe(0x28c),'attrs':{'fill':'white','d':_0x4a7abe(0x357),'transform':_0x4a7abe(0x266)}}]}]}],'defIds':[_0x4a7abe(0x458)]},Be=A[_0x4a7abe(0x1c3)](function(_0x390add,_0x4fdb46){const _0x50432e=_0x4a7abe;return A[_0x50432e(0x40e)](pe,Object[_0x50432e(0x1ee)]({},_0x390add,{'id':_0x50432e(0x2c9),'ref':_0x4fdb46,'icon':tt}));});Be[_0x4a7abe(0x438)]='OnLineIcon';function st(_0x6ae967){const _0x3da826=_0x4a7abe;switch(_0x6ae967){case u[_0x3da826(0x1bb)]['OFFLINE']:return _0x3da826(0x28f);case u['CollaborationStatus'][_0x3da826(0x431)]:return _0x3da826(0x404);case u[_0x3da826(0x1bb)]['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x3da826(0x1bb)][_0x3da826(0x2f4)]:return _0x3da826(0x3b9);case u[_0x3da826(0x1bb)][_0x3da826(0x25c)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x3da826(0x3f5);case u[_0x3da826(0x1bb)][_0x3da826(0x21d)]:case u[_0x3da826(0x1bb)][_0x3da826(0x3c3)]:return _0x3da826(0x2e9);}}function it(_0x2208ae){const _0x270970=_0x4a7abe,{status$:_0x354a8c}=_0x2208ae,_0x52f502=O[_0x270970(0x391)](_0x354a8c,u['CollaborationStatus']['NOT_COLLAB']),_0x224281=O[_0x270970(0x218)](a['LocaleService']),_0x6d954e=O[_0x270970(0x218)](u['CollaborationSessionService']),_0x144ee4=_0x52f502!==u[_0x270970(0x1bb)][_0x270970(0x257)],_0x481e32=_0x224281['t'](st(_0x52f502)),_0x465707=_0x144ee4?M[_0x270970(0x261)](Be,{}):M[_0x270970(0x261)](xe,{}),_0x12429e=A[_0x270970(0x3b0)](()=>{const _0x2e2ea2=_0x270970;_0x144ee4||_0x6d954e[_0x2e2ea2(0x224)]();},[_0x144ee4,_0x6d954e]);function _0x249f26(){const _0x4f6eda=_0x270970;return M[_0x4f6eda(0x36a)]('div',{'className':_0x4f6eda(0x386),'onClick':_0x12429e,'children':[M[_0x4f6eda(0x261)](_0x4f6eda(0x2e7),{'className':p[_0x4f6eda(0x3e4)](_0x4f6eda(0x1b7),{'univer-text-green-500':_0x144ee4,'univer-text-red-500':!_0x144ee4}),'children':_0x465707}),M[_0x4f6eda(0x261)](_0x4f6eda(0x2e7),{'className':_0x4f6eda(0x1cc),'children':_0x481e32})]});}return _0x144ee4?_0x249f26():M[_0x270970(0x261)](p[_0x270970(0x479)],{'title':_0x224281['t'](_0x270970(0x2d3)),'children':_0x249f26()});}var nt=Object[_0x4a7abe(0x319)],rt=(_0x5d2156,_0x51e758,_0x2042d7,_0x15bb2d)=>{const _0x4e3cc5=_0x4a7abe;for(var _0x6f9a62=_0x15bb2d>0x1?void 0x0:_0x15bb2d?nt(_0x51e758,_0x2042d7):_0x51e758,_0x33f341=_0x5d2156[_0x4e3cc5(0x3e3)]-0x1,_0xcc74fb;_0x33f341>=0x0;_0x33f341--)(_0xcc74fb=_0x5d2156[_0x33f341])&&(_0x6f9a62=_0xcc74fb(_0x6f9a62)||_0x6f9a62);return _0x6f9a62;},K=(_0x5285a9,_0x2dd431)=>(_0x1a1323,_0x5f2744)=>_0x2dd431(_0x1a1323,_0x5f2744,_0x5285a9);exports[_0x4a7abe(0x446)]=class extends a[_0x4a7abe(0x2de)]{constructor(_0x4c8c12,_0x3a10ad,_0x113f71,_0x20e7e7){const _0x46c346=_0x4a7abe;super(),_(this,_0x46c346(0x489),new I['BehaviorSubject'](u[_0x46c346(0x1bb)][_0x46c346(0x2f4)])),(this[_0x46c346(0x393)]=_0x4c8c12,this[_0x46c346(0x449)]=_0x3a10ad,this[_0x46c346(0x24e)]=_0x113f71,this[_0x46c346(0x39d)]=_0x20e7e7,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x4a7abe(0x372)](){const _0x4ab49d=_0x4a7abe;this[_0x4ab49d(0x360)](this['_univerInstanceService'][_0x4ab49d(0x253)][_0x4ab49d(0x31d)](I[_0x4ab49d(0x1ef)](()=>{const _0x51e0e3=_0x4ab49d,_0x3adba0=this[_0x51e0e3(0x393)][_0x51e0e3(0x460)]();return _0x3adba0?this[_0x51e0e3(0x24e)][_0x51e0e3(0x46e)](_0x3adba0['getUnitId']()):I['of'](null);}),I[_0x4ab49d(0x1ef)](_0x1e0466=>_0x1e0466?_0x1e0466[_0x4ab49d(0x444)]:I['of'](u[_0x4ab49d(0x1bb)][_0x4ab49d(0x2f4)])))[_0x4ab49d(0x1f1)](_0x3da364=>{const _0x126590=_0x4ab49d;this[_0x126590(0x489)]['next'](_0x3da364);}));}[_0x4a7abe(0x233)](){const _0x270bd0=_0x4a7abe;this[_0x270bd0(0x360)](this['_uiPartsService'][_0x270bd0(0x2fa)](O[_0x270bd0(0x440)][_0x270bd0(0x2bd)],()=>O['connectInjector'](ot({'status$':this['_status$']['asObservable']()}),this[_0x270bd0(0x449)])));}},exports[_0x4a7abe(0x446)]=rt([K(0x0,a[_0x4a7abe(0x1e6)]),K(0x1,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),K(0x2,a[_0x4a7abe(0x32c)](u['CollaborationController'])),K(0x3,O[_0x4a7abe(0x462)])],exports['DesktopCollaborationStatusDisplayController']);function ot(_0x35a843){const {status$:_0x2fb081}=_0x35a843;return function(){const _0x3c7275=_0xdbe3;return M[_0x3c7275(0x261)](it,{'status$':_0x2fb081});};}const Oe=a['createIdentifier']('uni.network.url-service');var at=Object[_0x4a7abe(0x319)],ct=(_0x2b2180,_0x242231,_0x3ffaf4,_0x56db1e)=>{const _0x380fae=_0x4a7abe;for(var _0x5f1f30=_0x56db1e>0x1?void 0x0:_0x56db1e?at(_0x242231,_0x3ffaf4):_0x242231,_0x3957e7=_0x2b2180[_0x380fae(0x3e3)]-0x1,_0x2eb675;_0x3957e7>=0x0;_0x3957e7--)(_0x2eb675=_0x2b2180[_0x3957e7])&&(_0x5f1f30=_0x2eb675(_0x5f1f30)||_0x5f1f30);return _0x5f1f30;},Y=(_0x5cd0e0,_0x5b7552)=>(_0x291737,_0x5cb6d4)=>_0x5b7552(_0x291737,_0x5cb6d4,_0x5cd0e0);exports[_0x4a7abe(0x30d)]=class extends a['RxDisposable']{constructor(_0x26019f,_0x52cd89,_0x21c360,_0x20bbb0,_0x374f19){const _0x13d8ec=_0x4a7abe;super(),this[_0x13d8ec(0x2d7)]=_0x26019f,this[_0x13d8ec(0x32d)]=_0x52cd89,this[_0x13d8ec(0x263)]=_0x21c360,this[_0x13d8ec(0x333)]=_0x20bbb0,_0x374f19?_0x374f19==null||_0x374f19[_0x13d8ec(0x469)]()[_0x13d8ec(0x2bf)](()=>this[_0x13d8ec(0x3a9)]()):(this['_logService']['debug'](_0x13d8ec(0x3b7),_0x13d8ec(0x2d5)),this[_0x13d8ec(0x3a9)]());}async['_init'](){const _0x280c96=_0x4a7abe,_0x1a31da=this[_0x280c96(0x2d7)][_0x280c96(0x47c)]('unit'),_0x5aa70c=this[_0x280c96(0x2d7)][_0x280c96(0x47c)](_0x280c96(0x2b1)),_0x2e3069=this[_0x280c96(0x2d7)][_0x280c96(0x47c)](_0x280c96(0x2ce));if(!_0x1a31da||!_0x5aa70c){this[_0x280c96(0x32d)][_0x280c96(0x377)]('[CollaborationDataLoaderController]',_0x280c96(0x3df));return;}const _0x3615e7=await this[_0x280c96(0x333)][_0x280c96(0x251)](_0x1a31da,Number(_0x5aa70c),_0x2e3069);_0x3615e7&&_0x3615e7 instanceof a[_0x280c96(0x293)]&&this['_setupSubUnitSync'](_0x3615e7);}async[_0x4a7abe(0x258)](_0x3c7503){const _0x1b142a=_0x4a7abe;await this[_0x1b142a(0x40d)](_0x3c7503),_0x3c7503[_0x1b142a(0x423)][_0x1b142a(0x31d)](I['takeUntil'](this[_0x1b142a(0x288)]))['subscribe'](_0x3f1b3f=>{_0x3f1b3f&&this['_updateURLWithCurrentState'](_0x3f1b3f);}),this[_0x1b142a(0x2d7)][_0x1b142a(0x1ca)][_0x1b142a(0x31d)](I[_0x1b142a(0x239)](this[_0x1b142a(0x288)]))['subscribe'](()=>this[_0x1b142a(0x40d)](_0x3c7503));}['_updateURLWithCurrentState'](_0x45a553,_0x4fecc2=!0x1){const _0x3777c7=_0x4a7abe,_0x326403=this[_0x3777c7(0x2d7)]['getParam'](_0x3777c7(0x2ce));_0x45a553[_0x3777c7(0x338)]()!==_0x326403&&this[_0x3777c7(0x2d7)][_0x3777c7(0x3c7)]('subunit',_0x45a553[_0x3777c7(0x338)](),_0x4fecc2);}async[_0x4a7abe(0x40d)](_0x271472){const _0x10e304=_0x4a7abe;var _0x3f6c91;const _0x323d5e=this[_0x10e304(0x2d7)]['getParam'](_0x10e304(0x2ce));if(!_0x323d5e||!_0x271472[_0x10e304(0x2bb)](_0x323d5e)){const _0x3382e3=_0x271472[_0x10e304(0x1ed)]()[0x0],_0x7c3e6a=_0x271472[_0x10e304(0x2bb)](_0x3382e3);if(!_0x7c3e6a)return;this[_0x10e304(0x312)](_0x7c3e6a,!0x0),await this[_0x10e304(0x263)]['executeCommand'](v[_0x10e304(0x351)]['id'],{'unitId':_0x271472['getUnitId'](),'subUnitId':_0x3382e3});return;}((_0x3f6c91=_0x271472[_0x10e304(0x3bd)]())==null?void 0x0:_0x3f6c91[_0x10e304(0x338)]())!==_0x323d5e&&await this['_commandService'][_0x10e304(0x22f)](v[_0x10e304(0x351)]['id'],{'unitId':_0x271472[_0x10e304(0x201)](),'subUnitId':_0x323d5e});}},exports[_0x4a7abe(0x30d)]=ct([Y(0x0,Oe),Y(0x1,a[_0x4a7abe(0x1dc)]),Y(0x2,a[_0x4a7abe(0x434)]),Y(0x3,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x3b6)])),Y(0x4,a[_0x4a7abe(0x3ed)](qe[_0x4a7abe(0x313)]))],exports[_0x4a7abe(0x30d)]);var lt=Object[_0x4a7abe(0x319)],_t=(_0x21786a,_0x23ea2d,_0x3dfd6d,_0x7bc1d4)=>{const _0x1f1d73=_0x4a7abe;for(var _0x48a524=_0x7bc1d4>0x1?void 0x0:_0x7bc1d4?lt(_0x23ea2d,_0x3dfd6d):_0x23ea2d,_0x17407d=_0x21786a[_0x1f1d73(0x3e3)]-0x1,_0x4c72ab;_0x17407d>=0x0;_0x17407d--)(_0x4c72ab=_0x21786a[_0x17407d])&&(_0x48a524=_0x4c72ab(_0x48a524)||_0x48a524);return _0x48a524;},De=(_0x293997,_0x27e9ce)=>(_0x5e3324,_0x5641fd)=>_0x27e9ce(_0x5e3324,_0x5641fd,_0x293997);let me=class extends a[_0x4a7abe(0x3cf)]{constructor(_0xa3b3ae,_0x432396){const _0x11804b=_0x4a7abe;super(),this['_docClipboardService']=_0xa3b3ae,this['_imageIoService']=_0x432396,this[_0x11804b(0x3a9)]();}[_0x4a7abe(0x3a9)](){const _0x3e86d7=_0x4a7abe,_0x4172fd=this;this['disposeWithMe'](this['_docClipboardService'][_0x3e86d7(0x1da)]({'onBeforePasteImage':async _0xdd0457=>{const _0x40287f=_0x3e86d7,_0x5770bb=await _0x4172fd[_0x40287f(0x461)][_0x40287f(0x36e)](_0xdd0457);return _0x5770bb?{'source':_0x5770bb[_0x40287f(0x2dd)],'imageSourceType':_0x5770bb[_0x40287f(0x27f)]}:null;}}));}};function _0xdbe3(_0x30b648,_0x45d520){_0x30b648=_0x30b648-0x1b7;const _0x355068=_0x3550();let _0xdbe337=_0x355068[_0x30b648];return _0xdbe337;}me=_t([De(0x0,T[_0x4a7abe(0x44b)]),De(0x1,ze['IImageIoService'])],me);const Ne=[_0x4a7abe(0x454),_0x4a7abe(0x368),'green.600',_0x4a7abe(0x480),_0x4a7abe(0x3f7),_0x4a7abe(0x42f)];class Re extends a[_0x4a7abe(0x2de)]{constructor(){const _0x56a5e9=_0x4a7abe;super(...arguments),_(this,_0x56a5e9(0x2e2),new Map()),_(this,_0x56a5e9(0x2e5),0x0);}[_0x4a7abe(0x1de)](_0x4e9fde){const _0x1fcedb=_0x4a7abe;if(this['_assignedColors'][_0x1fcedb(0x439)](_0x4e9fde))return this['_assignedColors'][_0x1fcedb(0x1c8)](_0x4e9fde);const _0x1af8e7=Ne[this[_0x1fcedb(0x2e5)]];return this[_0x1fcedb(0x2e5)]=(this[_0x1fcedb(0x2e5)]+0x1)%Ne['length'],this[_0x1fcedb(0x2e2)]['set'](_0x4e9fde,_0x1af8e7),_0x1af8e7;}}function Fe(_0x352967){const _0x5e1c06=_0x4a7abe;let _0x3d639e='';for(const _0x5df97b of _0x352967){const {startOffset:_0x54d00c,endOffset:_0x1e0d32,isActive:_0x3e4862,rangeType:_0x1b2fb3,segmentId:_0x4b16b3,segmentPage:_0x162df3}=_0x5df97b;_0x3d639e[_0x5e1c06(0x3e3)]&&(_0x3d639e+=','),_0x3d639e+=_0x54d00c+':'+_0x1e0d32+':'+(_0x3e4862?'1':'0')+':'+_0x1b2fb3+':'+_0x4b16b3+':'+_0x162df3;}return _0x3d639e;}function ht(_0x4b7278){const _0x78000f=_0x4a7abe,_0x3cba74=_0x4b7278['split'](','),_0x115849=[];for(const _0x1173e1 of _0x3cba74){const [_0x1e4c9a,_0x9cec3c,_0x442e0e,_0x3151ec,_0x1361d5,_0x58176d]=_0x1173e1[_0x78000f(0x255)](':');_0x115849[_0x78000f(0x272)]({'startOffset':Number(_0x1e4c9a),'endOffset':Number(_0x9cec3c),'collapsed':_0x1e4c9a===_0x9cec3c,'isActive':_0x442e0e==='1','rangeType':_0x3151ec===a[_0x78000f(0x27b)][_0x78000f(0x262)]?a[_0x78000f(0x27b)][_0x78000f(0x262)]:a[_0x78000f(0x27b)][_0x78000f(0x2c7)],'segmentId':typeof _0x1361d5==_0x78000f(0x32b)?String(_0x1361d5):'','segmentPage':Number(_0x58176d!=null?_0x58176d:-0x1)});}return _0x115849[_0x78000f(0x22b)](_0x1430c1=>_0x1430c1['isActive'])||(_0x115849[0x0][_0x78000f(0x38b)]=!0x0),_0x115849;}class be extends a['RxDisposable']{constructor(){const _0x40b382=_0x4a7abe;super(...arguments),_(this,_0x40b382(0x448),new I[(_0x40b382(0x242))](null)),_(this,_0x40b382(0x1e8),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x468d67){const _0x26c934=_0x4a7abe,{unitID:_0x2e685f,memberID:_0x467531,textRanges:_0x25b953}=_0x468d67,_0x6f7bcc=Fe(_0x25b953);if(_0x6f7bcc==='')return;const _0x48e480={'unitID':_0x2e685f,'memberID':_0x467531,'selection':_0x6f7bcc};this[_0x26c934(0x448)][_0x26c934(0x435)](_0x48e480);}}var ut=Object[_0x4a7abe(0x319)],It=(_0x421997,_0x3077d3,_0x5435d1,_0xe520c2)=>{const _0x32d1dc=_0x4a7abe;for(var _0x39e3f2=_0xe520c2>0x1?void 0x0:_0xe520c2?ut(_0x3077d3,_0x5435d1):_0x3077d3,_0x23f9f1=_0x421997[_0x32d1dc(0x3e3)]-0x1,_0x268806;_0x23f9f1>=0x0;_0x23f9f1--)(_0x268806=_0x421997[_0x23f9f1])&&(_0x39e3f2=_0x268806(_0x39e3f2)||_0x39e3f2);return _0x39e3f2;},U=(_0x3481cd,_0x10989d)=>(_0x18d3d0,_0x53a600)=>_0x10989d(_0x18d3d0,_0x53a600,_0x3481cd);const St=0x12c,dt=0x64;let ve=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x1db430,_0x39ce4c,_0x44afcd,_0x2153de,_0x307441,_0x140178,_0x5418f0,_0x4eb565,_0x459054){const _0x19f28c=_0x4a7abe;super(),_(this,'_online',!0x1),_(this,_0x19f28c(0x3a9),!0x1),_(this,_0x19f28c(0x20b),new I[(_0x19f28c(0x242))](new Map())),_(this,_0x19f28c(0x2ac),this[_0x19f28c(0x20b)][_0x19f28c(0x389)]()),_(this,_0x19f28c(0x277),new I[(_0x19f28c(0x242))]([])),_(this,_0x19f28c(0x348),this['_roomMembers$'][_0x19f28c(0x31d)](I['debounceTime'](St))),_(this,_0x19f28c(0x2af),a[_0x19f28c(0x40a)](_0x42de6f=>{const _0x1d1c33=_0x19f28c,_0x38272c={'eventID':g[_0x1d1c33(0x3a1)][_0x1d1c33(0x222)],'data':{'unitID':this[_0x1d1c33(0x1f5)],'memberID':this[_0x1d1c33(0x2c8)][_0x1d1c33(0x3f9)](),'selection':Fe(_0x42de6f)}};this[_0x1d1c33(0x2c8)][_0x1d1c33(0x1f6)](_0x38272c,this['unitID']);},dt)),(this[_0x19f28c(0x1f5)]=_0x1db430,this[_0x19f28c(0x2c8)]=_0x39ce4c,this[_0x19f28c(0x449)]=_0x44afcd,this['_colorAssignService']=_0x2153de,this[_0x19f28c(0x295)]=_0x307441,this[_0x19f28c(0x2a1)]=_0x140178,this[_0x19f28c(0x3d4)]=_0x5418f0,this[_0x19f28c(0x393)]=_0x4eb565,this[_0x19f28c(0x263)]=_0x459054);}get[_0x4a7abe(0x346)](){const _0xe93db8=_0x4a7abe;return this['_cursorInfo$'][_0xe93db8(0x305)]();}get[_0x4a7abe(0x45b)](){const _0x8600b5=_0x4a7abe;return this[_0x8600b5(0x277)][_0x8600b5(0x305)]();}['dispose'](){const _0x640844=_0x4a7abe;super['dispose'](),this['_cursorInfo$'][_0x640844(0x435)](new Map()),this[_0x640844(0x20b)][_0x640844(0x3e6)](),this[_0x640844(0x277)]['next']([]),this[_0x640844(0x277)][_0x640844(0x3e6)]();}[_0x4a7abe(0x2a0)](){const _0x7d422a=_0x4a7abe;this[_0x7d422a(0x3a9)]||(this[_0x7d422a(0x3a9)]=!0x0,this[_0x7d422a(0x2c8)][_0x7d422a(0x353)]['pipe'](I[_0x7d422a(0x239)](this[_0x7d422a(0x288)]))[_0x7d422a(0x1f1)](_0x17dd53=>{const _0x4651ad=_0x7d422a;_0x17dd53===u[_0x4651ad(0x493)][_0x4651ad(0x413)]?this[_0x4651ad(0x221)]():this[_0x4651ad(0x3d3)]();}),this[_0x7d422a(0x2c8)][_0x7d422a(0x1cb)][_0x7d422a(0x31d)](I['takeUntil'](this[_0x7d422a(0x288)]))[_0x7d422a(0x1f1)](_0x515628=>{const _0x1a220d=_0x7d422a,_0x40321e=_0x515628[_0x1a220d(0x451)];_0x40321e===g[_0x1a220d(0x3a1)]['UPDATE_CURSOR']&&this[_0x1a220d(0x2a5)](_0x515628),_0x40321e===g[_0x1a220d(0x3a1)][_0x1a220d(0x1cd)]&&this[_0x1a220d(0x416)](_0x515628);}),this[_0x7d422a(0x360)](this[_0x7d422a(0x263)][_0x7d422a(0x453)](_0x4e2a38=>{const _0x43a275=_0x7d422a,_0x1103e8=_0x4e2a38[_0x43a275(0x43f)];_0x1103e8!=null&&this[_0x43a275(0x3d2)]&&_0x4e2a38['id']===V[_0x43a275(0x362)]['id']&&_0x1103e8['unitId']===this[_0x43a275(0x1f5)]&&_0x1103e8['isEditing']===!0x1&&_0x1103e8[_0x43a275(0x44c)][_0x43a275(0x3e3)]>0x0&&this['_updateLocalCursor'](_0x1103e8[_0x43a275(0x44c)]);})),this[_0x7d422a(0x2a1)][_0x7d422a(0x1e8)]['pipe'](I['takeUntil'](this[_0x7d422a(0x288)]))['subscribe'](_0xb00e46=>{const _0x5548a4=_0x7d422a;if((_0xb00e46==null?void 0x0:_0xb00e46[_0x5548a4(0x1f5)])!==this[_0x5548a4(0x1f5)])return;const _0x2b1ab3={'eventID':g[_0x5548a4(0x3a1)]['UPDATE_CURSOR'],'data':_0xb00e46};this[_0x5548a4(0x2a5)](_0x2b1ab3);}),this['disposeWithMe'](this[_0x7d422a(0x263)][_0x7d422a(0x453)](_0x507973=>{const _0x3f91e3=_0x7d422a;if(_0x507973[_0x3f91e3(0x43f)]==null)return;const _0x1fd4bc=_0x507973[_0x3f91e3(0x43f)];if(_0x507973['id']!==V[_0x3f91e3(0x30c)]['id']||_0x1fd4bc[_0x3f91e3(0x1c7)]!==this['unitID'])return;const _0x3d8f07={'id':_0x3f91e3(0x354),'params':_0x1fd4bc},_0x519d2a=this[_0x3f91e3(0x346)];for(const [_0x1c9331,_0x1bbe78]of _0x519d2a){const _0x1f6dcb={'id':_0x3f91e3(0x354),'params':{'unitId':this[_0x3f91e3(0x1f5)],'actions':null,'textRanges':_0x1bbe78['ranges']}},_0x433074=this['_transformService'][_0x3f91e3(0x2dc)](_0x3d8f07,_0x1f6dcb,!0x1);if(g[_0x3f91e3(0x408)](_0x433074))throw _0x433074[_0x3f91e3(0x291)];_0x519d2a[_0x3f91e3(0x205)](_0x1c9331,{..._0x1bbe78,'ranges':_0x433074['m2Prime'][_0x3f91e3(0x43f)]['textRanges']});}queueMicrotask(()=>{const _0x12a27c=_0x3f91e3;this[_0x12a27c(0x20b)][_0x12a27c(0x435)](_0x519d2a);});})));}[_0x4a7abe(0x2a5)](_0x961017){const _0x51fe4e=_0x4a7abe;var _0x128e87,_0x7a2dde;const {memberID:_0x44f0f6,selection:_0x282b1b}=_0x961017[_0x51fe4e(0x3c8)],_0x418f36=ht(_0x282b1b),_0x34504d=(_0x7a2dde=(_0x128e87=this['_memberService']['getMember'](this[_0x51fe4e(0x1f5)],_0x44f0f6))==null?void 0x0:_0x128e87['name'])!=null?_0x7a2dde:_0x51fe4e(0x20a),_0xee5c4b={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x44f0f6),'name':_0x34504d,'ranges':_0x418f36},_0x2a0511=this[_0x51fe4e(0x346)];_0x2a0511['set'](_0x44f0f6,_0xee5c4b),this[_0x51fe4e(0x20b)][_0x51fe4e(0x435)](_0x2a0511);}['_onCursorDelete'](_0x1e910b){const _0x2893f2=_0x4a7abe,{memberID:_0x4b7c84}=_0x1e910b[_0x2893f2(0x3c8)],_0x3da558=this[_0x2893f2(0x346)];_0x3da558['delete'](_0x4b7c84),this[_0x2893f2(0x20b)][_0x2893f2(0x435)](_0x3da558);}[_0x4a7abe(0x221)](){const _0x474f2c=_0x4a7abe;var _0xb2a90;if(this['_online']=!0x0,((_0xb2a90=this[_0x474f2c(0x393)][_0x474f2c(0x460)]())==null?void 0x0:_0xb2a90[_0x474f2c(0x201)]())!==this[_0x474f2c(0x1f5)])return;const _0xc138ba=this[_0x474f2c(0x449)][_0x474f2c(0x1c8)](V[_0x474f2c(0x325)])['getDocRanges']();Array[_0x474f2c(0x3b5)](_0xc138ba)&&_0xc138ba[_0x474f2c(0x3e3)]>0x0&&this[_0x474f2c(0x2af)](_0xc138ba);}[_0x4a7abe(0x3d3)](){const _0x380bca=_0x4a7abe;this[_0x380bca(0x3d2)]=!0x1;}};ve=It([U(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),U(0x3,a['Inject'](Re)),U(0x4,a['Inject'](u[_0x4a7abe(0x230)])),U(0x5,a[_0x4a7abe(0x32c)](be)),U(0x6,g[_0x4a7abe(0x2f2)]),U(0x7,a[_0x4a7abe(0x1e6)]),U(0x8,a['ICommandService'])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x2d6075,_0x2c471d,_0x1e1c6c,_0x2cb4ef)=>{for(var _0x42a7b8=_0x2cb4ef>0x1?void 0x0:_0x2cb4ef?ft(_0x2c471d,_0x1e1c6c):_0x2c471d,_0x3cab63=_0x2d6075['length']-0x1,_0x3c7e50;_0x3cab63>=0x0;_0x3cab63--)(_0x3c7e50=_0x2d6075[_0x3cab63])&&(_0x42a7b8=_0x3c7e50(_0x42a7b8)||_0x42a7b8);return _0x42a7b8;},w=(_0x98c20b,_0x473e62)=>(_0x4649dc,_0xd66aed)=>_0x473e62(_0x4649dc,_0xd66aed,_0x98c20b);const vt=0x12c,gt=0x64,Et=()=>{let _0x164feb=[],_0x4bf412=!0x1;return _0x5bc21b=>{_0x164feb['push'](_0x5bc21b),_0x4bf412||(_0x4bf412=!0x0,setTimeout(()=>{const _0x3536d6=_0xdbe3;_0x164feb[_0x3536d6(0x2aa)](_0x271670=>_0x271670()),_0x164feb=[],_0x4bf412=!0x1;}));};};let ge=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x38a5cd,_0x193b80,_0x3ba474,_0x12526f,_0x498821,_0x39adc3,_0x3df02d,_0x4eee34){const _0x18c53b=_0x4a7abe;super(),_(this,_0x18c53b(0x3d2),!0x1),_(this,_0x18c53b(0x3a9),!0x1),_(this,_0x18c53b(0x20b),new I[(_0x18c53b(0x242))](new Map())),_(this,_0x18c53b(0x2ac),this[_0x18c53b(0x20b)][_0x18c53b(0x389)]()),_(this,'_roomMembers$',new I[(_0x18c53b(0x242))]([])),_(this,_0x18c53b(0x348),this['_roomMembers$'][_0x18c53b(0x31d)](I[_0x18c53b(0x304)](vt))),_(this,_0x18c53b(0x2af),a[_0x18c53b(0x40a)]((_0x43513f,_0x4fba47)=>{const _0x365918=_0x18c53b,_0xa42c8d={'eventID':g[_0x365918(0x3a1)][_0x365918(0x222)],'data':{'unitID':this[_0x365918(0x1f5)],'memberID':this[_0x365918(0x2c8)][_0x365918(0x3f9)](),'selection':B[_0x365918(0x361)](_0x43513f,_0x4fba47[_0x365918(0x1f8)])}};this[_0x365918(0x2c8)][_0x365918(0x1f6)](_0xa42c8d,this[_0x365918(0x1f5)]);},gt)),(this[_0x18c53b(0x1f5)]=_0x38a5cd,this['_session']=_0x193b80,this['_injector']=_0x3ba474,this['_colorAssignService']=_0x12526f,this[_0x18c53b(0x295)]=_0x498821,this[_0x18c53b(0x393)]=_0x39adc3,this['_commandService']=_0x3df02d,this[_0x18c53b(0x349)]=_0x4eee34);}get['cursorInfo'](){const _0x22b3cf=_0x4a7abe;return this['_cursorInfo$'][_0x22b3cf(0x305)]();}get[_0x4a7abe(0x45b)](){const _0x52a1eb=_0x4a7abe;return this[_0x52a1eb(0x277)][_0x52a1eb(0x305)]();}[_0x4a7abe(0x234)](){const _0x2b2e64=_0x4a7abe;super['dispose'](),this[_0x2b2e64(0x20b)][_0x2b2e64(0x435)](new Map()),this[_0x2b2e64(0x20b)]['complete'](),this[_0x2b2e64(0x277)][_0x2b2e64(0x435)]([]),this[_0x2b2e64(0x277)][_0x2b2e64(0x3e6)]();}[_0x4a7abe(0x2a0)](){const _0x42415c=_0x4a7abe;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x42415c(0x31d)](I[_0x42415c(0x239)](this[_0x42415c(0x288)]))[_0x42415c(0x1f1)](_0x354050=>{const _0x3d681a=_0x42415c;_0x354050===u[_0x3d681a(0x493)][_0x3d681a(0x413)]?this[_0x3d681a(0x221)]():this['_toggleOffline']();}),this['_session'][_0x42415c(0x1cb)]['pipe'](I[_0x42415c(0x239)](this[_0x42415c(0x288)]))[_0x42415c(0x1f1)](_0x5585de=>{const _0x4ff517=_0x42415c,_0x1643c5=_0x5585de[_0x4ff517(0x451)];_0x1643c5===g[_0x4ff517(0x3a1)][_0x4ff517(0x222)]&&this[_0x4ff517(0x2a5)](_0x5585de),_0x1643c5===g[_0x4ff517(0x3a1)][_0x4ff517(0x1cd)]&&this[_0x4ff517(0x416)](_0x5585de);}),this[_0x42415c(0x3e5)](),this[_0x42415c(0x360)](this[_0x42415c(0x263)][_0x42415c(0x453)](_0x595f7c=>{const _0x258dfd=_0x42415c;if(this[_0x258dfd(0x3d2)]&&_0x595f7c['id']===v[_0x258dfd(0x327)]['id']&&_0x595f7c['params'][_0x258dfd(0x1c7)]===this[_0x258dfd(0x1f5)]){const _0x4e0537=_0x595f7c[_0x258dfd(0x43f)];this['_updateLocalCursor'](_0x4e0537[_0x258dfd(0x1f7)],_0x4e0537[_0x258dfd(0x3d8)][0x0]);}})));}[_0x4a7abe(0x2a5)](_0x15fde9){const _0xf3fd0e=_0x4a7abe;var _0x5b3751,_0x9008c2;const {memberID:_0x4913a8,selection:_0x802b24}=_0x15fde9['data'],{sheetName:_0x108710,range:_0x4492ea}=B[_0xf3fd0e(0x269)](_0x802b24),_0x47dce6={'name':(_0x9008c2=(_0x5b3751=this[_0xf3fd0e(0x295)][_0xf3fd0e(0x339)](this['unitID'],_0x4913a8))==null?void 0x0:_0x5b3751['name'])!=null?_0x9008c2:'Unknown\x20user','range':this[_0xf3fd0e(0x481)](_0x108710,_0x4492ea),'sheetID':_0x108710,'color':this[_0xf3fd0e(0x376)][_0xf3fd0e(0x1de)](_0x4913a8),'selection':_0x802b24},_0x58e48d=this[_0xf3fd0e(0x346)];_0x58e48d[_0xf3fd0e(0x205)](_0x4913a8,_0x47dce6),this[_0xf3fd0e(0x20b)][_0xf3fd0e(0x435)](_0x58e48d);}[_0x4a7abe(0x416)](_0x172fbf){const _0x142218=_0x4a7abe,{memberID:_0x1afc3a}=_0x172fbf[_0x142218(0x3c8)],_0x29efd7=this[_0x142218(0x346)];_0x29efd7['delete'](_0x1afc3a),this[_0x142218(0x20b)][_0x142218(0x435)](_0x29efd7);}[_0x4a7abe(0x481)](_0x14b492,_0x359a9b){const _0x492fac=_0x4a7abe;var _0x7b169d,_0x1187c0;const _0x2e6c68=(_0x1187c0=(_0x7b169d=this[_0x492fac(0x393)][_0x492fac(0x26d)](this[_0x492fac(0x1f5)]))==null?void 0x0:_0x7b169d[_0x492fac(0x2bb)](_0x14b492))==null?void 0x0:_0x1187c0['getMergeData']();return(_0x2e6c68==null?void 0x0:_0x2e6c68[_0x492fac(0x3ec)](_0x196134=>a[_0x492fac(0x278)][_0x492fac(0x375)](_0x196134,_0x359a9b)))||_0x359a9b;}['_onRefRangeChange'](){const _0x1a6105=_0x4a7abe,_0x718dd=new a['DisposableCollection'](),_0x351b03=Et(),_0x164829=()=>{const _0x4f8018=_0xdbe3;_0x718dd[_0x4f8018(0x234)]();const _0x45af14=(_0x2b3a8f,_0x36d3bf,_0x3fa491,_0x20774a)=>{const _0x5793de=_0x4f8018;let _0x93bd0b=[];switch(_0x2b3a8f['id']){case v['EffectRefRangId'][_0x5793de(0x37c)]:{_0x93bd0b=v[_0x5793de(0x388)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)]['DeleteRangeMoveUpCommandId']:{_0x93bd0b=v['handleDeleteRangeMoveUp'](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId'][_0x5793de(0x1e1)]:{_0x93bd0b=v[_0x5793de(0x38e)](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x93bd0b=v[_0x5793de(0x3ea)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x401)]:{_0x93bd0b=v[_0x5793de(0x317)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x31c)]:{_0x93bd0b=v['handleInsertRow'](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)]['MoveRangeCommandId']:{_0x93bd0b=v[_0x5793de(0x20c)](_0x2b3a8f,_0x20774a);break;}case v[_0x5793de(0x286)][_0x5793de(0x3ac)]:{_0x93bd0b=v['handleIRemoveCol'](_0x2b3a8f,_0x20774a);break;}case v['EffectRefRangId'][_0x5793de(0x44e)]:{_0x93bd0b=v[_0x5793de(0x283)](_0x2b3a8f,_0x20774a);break;}}const _0x27d22b=v[_0x5793de(0x359)](_0x93bd0b,_0x20774a),_0x4d9049=this[_0x5793de(0x346)][_0x5793de(0x1c8)](_0x36d3bf);if(_0x4d9049&&_0x27d22b){const _0x34726b={..._0x4d9049,'range':_0x27d22b};this[_0x5793de(0x346)][_0x5793de(0x205)](_0x36d3bf,_0x34726b),_0x351b03(()=>{const _0x5023f1=_0x5793de,_0x260f1e=this[_0x5023f1(0x349)][_0x5023f1(0x2a2)](_0x27d22b,_0x3644a7=>(_0x260f1e[_0x5023f1(0x234)](),_0x45af14(_0x3644a7,_0x36d3bf,_0x3fa491,_0x27d22b)));_0x718dd[_0x5023f1(0x3ab)](_0x260f1e);});}return{'redos':[],'undos':[]};};this[_0x4f8018(0x346)]['forEach']((_0x8ae339,_0x1d0b98)=>{const _0x355fd4=_0x4f8018,{range:_0x388595,sheetID:_0x4216ae}=_0x8ae339,_0x103b7c=this[_0x355fd4(0x349)][_0x355fd4(0x2a2)](_0x388595,_0x514eaf=>(_0x103b7c[_0x355fd4(0x234)](),_0x45af14(_0x514eaf,_0x1d0b98,_0x4216ae,_0x388595)));_0x718dd[_0x355fd4(0x3ab)](_0x103b7c);});};this[_0x1a6105(0x360)](a[_0x1a6105(0x1e5)](this[_0x1a6105(0x20b)]['subscribe'](()=>{_0x164829();})));}['_toggleOnline'](){const _0x520f1c=_0x4a7abe;var _0x50f799,_0x4f0c97;if(this['_online']=!0x0,((_0x50f799=this[_0x520f1c(0x393)]['getFocusedUnit']())==null?void 0x0:_0x50f799[_0x520f1c(0x201)]())!==this[_0x520f1c(0x1f5)])return;const _0xe59169=(_0x4f0c97=this[_0x520f1c(0x449)][_0x520f1c(0x1c8)](v['SheetsSelectionsService'])[_0x520f1c(0x21e)]())==null?void 0x0:_0x4f0c97[0x0],_0xdc95fa=this[_0x520f1c(0x393)]['getCurrentUnitForType'](a[_0x520f1c(0x483)][_0x520f1c(0x324)])[_0x520f1c(0x3bd)]();_0xe59169&&_0xdc95fa&&this[_0x520f1c(0x2af)](_0xdc95fa[_0x520f1c(0x338)](),_0xe59169);}['_toggleOffline'](){this['_online']=!0x1;}};ge=mt([w(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),w(0x3,a['Inject'](Re)),w(0x4,a['Inject'](u[_0x4a7abe(0x230)])),w(0x5,a[_0x4a7abe(0x1e6)]),w(0x6,a[_0x4a7abe(0x434)]),w(0x7,a[_0x4a7abe(0x32c)](v[_0x4a7abe(0x478)]))],ge);var Ct=Object[_0x4a7abe(0x319)],Tt=(_0x29e448,_0x19bae5,_0x3b9d23,_0xab429c)=>{const _0x32e321=_0x4a7abe;for(var _0x3ee39f=_0xab429c>0x1?void 0x0:_0xab429c?Ct(_0x19bae5,_0x3b9d23):_0x19bae5,_0x37e57d=_0x29e448[_0x32e321(0x3e3)]-0x1,_0x5c605a;_0x37e57d>=0x0;_0x37e57d--)(_0x5c605a=_0x29e448[_0x37e57d])&&(_0x3ee39f=_0x5c605a(_0x3ee39f)||_0x3ee39f);return _0x3ee39f;},ce=(_0x357b6d,_0x542f10)=>(_0x328e2f,_0x41bdbc)=>_0x542f10(_0x328e2f,_0x41bdbc,_0x357b6d);let F=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x48a779,_0x1ddba2,_0x453473){const _0x1864dc=_0x4a7abe;super(),_(this,'_entities',new Map()),_(this,_0x1864dc(0x2df),new I[(_0x1864dc(0x315))]()),(this['_univerInstanceService']=_0x48a779,this[_0x1864dc(0x449)]=_0x1ddba2,this[_0x1864dc(0x28b)]=_0x453473,this[_0x1864dc(0x3a9)]());}[_0x4a7abe(0x234)](){const _0x35153e=_0x4a7abe;super[_0x35153e(0x234)](),this[_0x35153e(0x2df)][_0x35153e(0x3e6)](),this[_0x35153e(0x226)][_0x35153e(0x2aa)](_0x5e1e67=>_0x5e1e67['dispose']());}[_0x4a7abe(0x3a2)](_0x4df0df){const _0x51399e=_0x4a7abe;return this[_0x51399e(0x226)][_0x51399e(0x439)](_0x4df0df)?this['_entities'][_0x51399e(0x1c8)](_0x4df0df)[_0x51399e(0x2ac)]:this['_entityInit$'][_0x51399e(0x31d)](I['filter'](_0x507ef2=>_0x507ef2[_0x51399e(0x1f5)]===_0x4df0df),I[_0x51399e(0x1ef)](_0x38e94c=>_0x38e94c['cursorInfo$']));}[_0x4a7abe(0x3a9)](){const _0x2d8eb0=_0x4a7abe;this[_0x2d8eb0(0x393)][_0x2d8eb0(0x228)](a[_0x2d8eb0(0x483)]['UNIVER_SHEET'])[_0x2d8eb0(0x31d)](I[_0x2d8eb0(0x239)](this['dispose$']))['subscribe'](async _0x372b24=>{const _0x34558c=_0x2d8eb0,_0x36cfe1=_0x372b24[_0x34558c(0x201)](),_0x5d1c23=await this[_0x34558c(0x485)](_0x36cfe1);this[_0x34558c(0x2df)]['next'](_0x5d1c23),this[_0x34558c(0x226)]['set'](_0x36cfe1,_0x5d1c23);}),this['_univerInstanceService'][_0x2d8eb0(0x228)](a[_0x2d8eb0(0x483)][_0x2d8eb0(0x3a3)])[_0x2d8eb0(0x31d)](I['takeUntil'](this[_0x2d8eb0(0x288)]))[_0x2d8eb0(0x31d)](I[_0x2d8eb0(0x1f9)](_0x12ab22=>!_0x12ab22['getUnitId']()[_0x2d8eb0(0x270)]('__')))[_0x2d8eb0(0x1f1)](async _0x18e047=>{const _0x3b3817=_0x2d8eb0,_0x2a0d58=_0x18e047[_0x3b3817(0x201)](),_0x310105=await this[_0x3b3817(0x2a6)](_0x2a0d58);this[_0x3b3817(0x2df)]['next'](_0x310105),this[_0x3b3817(0x226)][_0x3b3817(0x205)](_0x2a0d58,_0x310105);}),I[_0x2d8eb0(0x2cd)](this[_0x2d8eb0(0x393)][_0x2d8eb0(0x241)](a[_0x2d8eb0(0x483)][_0x2d8eb0(0x3a3)]),this[_0x2d8eb0(0x393)][_0x2d8eb0(0x241)](a[_0x2d8eb0(0x483)]['UNIVER_SHEET']))['pipe'](I[_0x2d8eb0(0x239)](this[_0x2d8eb0(0x288)]))[_0x2d8eb0(0x1f1)](_0x4dc6a4=>{const _0x489c28=_0x2d8eb0,_0x1a52a2=_0x4dc6a4[_0x489c28(0x201)](),_0x5fc84=this[_0x489c28(0x226)]['get'](_0x1a52a2);_0x5fc84&&(_0x5fc84['dispose'](),this['_entities'][_0x489c28(0x1dd)](_0x1a52a2));});}async[_0x4a7abe(0x485)](_0x1565af){const _0x43580b=_0x4a7abe,_0x1e54eb=await this[_0x43580b(0x28b)][_0x43580b(0x311)](_0x1565af),_0x53f1d9=this[_0x43580b(0x449)][_0x43580b(0x20d)](ge,_0x1565af,_0x1e54eb);return _0x53f1d9['init'](),_0x53f1d9;}async[_0x4a7abe(0x2a6)](_0x3d6d24){const _0x1d629f=_0x4a7abe,_0xbb0d15=await this[_0x1d629f(0x28b)]['requireSession'](_0x3d6d24),_0x59b61d=this[_0x1d629f(0x449)]['createInstance'](ve,_0x3d6d24,_0xbb0d15);return _0x59b61d['init'](),_0x59b61d;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a['Inject'](a[_0x4a7abe(0x22c)])),ce(0x2,a[_0x4a7abe(0x32c)](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x2525f,_0x3ad9f0){const _0x143559=_0x4a7abe;let {radius:_0x427836,width:_0x4f7a95,height:_0x5249e0}=_0x3ad9f0;_0x427836=_0x427836!=null?_0x427836:0x0,_0x4f7a95=_0x4f7a95!=null?_0x4f7a95:0x1e,_0x5249e0=_0x5249e0!=null?_0x5249e0:0x1e;let _0xcf68f7=0x0,_0x26dc24=0x0,_0x463b82=0x0;_0xcf68f7=_0x26dc24=_0x463b82=Math[_0x143559(0x35d)](_0x427836,_0x4f7a95/0x2,_0x5249e0/0x2),_0x2525f[_0x143559(0x343)](),_0x2525f['moveTo'](_0xcf68f7,0x0),_0x2525f['lineTo'](_0x4f7a95-_0x26dc24,0x0),_0x2525f[_0x143559(0x21b)](_0x4f7a95-_0x26dc24,_0x26dc24,_0x26dc24,Math['PI']*0x3/0x2,0x0,!0x1),_0x2525f[_0x143559(0x34a)](_0x4f7a95,_0x5249e0-_0x463b82),_0x2525f[_0x143559(0x21b)](_0x4f7a95-_0x463b82,_0x5249e0-_0x463b82,_0x463b82,0x0,Math['PI']/0x2,!0x1),_0x2525f[_0x143559(0x34a)](0x0,_0x5249e0),_0x2525f[_0x143559(0x34a)](0x0,_0xcf68f7),_0x2525f[_0x143559(0x21b)](_0xcf68f7,_0xcf68f7,_0xcf68f7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2525f['closePath'](),_0x3ad9f0[_0x143559(0x42c)]&&(_0x2525f[_0x143559(0x2ae)](),_0x2525f[_0x143559(0x26a)]=_0x3ad9f0['fill'],_0x3ad9f0[_0x143559(0x455)]==='evenodd'?_0x2525f[_0x143559(0x42c)](_0x143559(0x421)):_0x2525f[_0x143559(0x42c)](),_0x2525f['restore']());}class re extends C[_0x4a7abe(0x40c)]{constructor(_0x9d450f,_0x41f07e){const _0x2442d8=_0x4a7abe;super(_0x9d450f,_0x41f07e),_(this,'color'),_(this,_0x2442d8(0x285)),(this['color']=_0x41f07e==null?void 0x0:_0x41f07e['color'],this[_0x2442d8(0x285)]=_0x41f07e==null?void 0x0:_0x41f07e[_0x2442d8(0x285)]);}static[_0x4a7abe(0x328)](_0x262fb4,_0x1c36b9){const _0x5bd17f=_0x4a7abe,{text:_0x9f1aed,color:_0x5e5b00}=_0x1c36b9;_0x262fb4[_0x5bd17f(0x2ae)](),_0x262fb4[_0x5bd17f(0x292)]=_0x5bd17f(0x231);const _0x53d261=_0x262fb4['measureText'](_0x9f1aed)[_0x5bd17f(0x2f0)],_0x185507=Math['min'](_0x53d261+0x2*le,Ue);Ot(_0x262fb4,{'height':X,'radius':0x4,'width':_0x185507,'fill':_0x5e5b00}),_0x262fb4[_0x5bd17f(0x26a)]='#FFF';const _0x2463b4=le,_0x2290dd=X-pt,_0x599fb7=Ue-0x2*le;if(_0x53d261>_0x599fb7){let _0x50fb34='',_0xa7f91f=0x0;for(const _0x11ab7c of _0x9f1aed){const _0x54fb0c=_0x262fb4['measureText'](_0x11ab7c)[_0x5bd17f(0x2f0)];if(_0xa7f91f+_0x54fb0c<=_0x599fb7-_0x262fb4[_0x5bd17f(0x2ab)]('...')[_0x5bd17f(0x2f0)])_0x50fb34+=_0x11ab7c,_0xa7f91f+=_0x54fb0c;else{_0x50fb34+=_0x5bd17f(0x45c);break;}}_0x262fb4[_0x5bd17f(0x3e8)](_0x50fb34,_0x2463b4,_0x2290dd);}else _0x262fb4[_0x5bd17f(0x3e8)](_0x9f1aed,_0x2463b4,_0x2290dd);_0x262fb4[_0x5bd17f(0x46f)]();}['_draw'](_0x1c8d36){const _0x2c03b2=_0x4a7abe;re[_0x2c03b2(0x328)](_0x1c8d36,this);}}const _e=_0x4a7abe(0x2a7),Rt=_0x4a7abe(0x3ca),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x4a7abe(0x1bf);class Le{constructor(_0x41e70f,_0x3de8ce,_0x349927,_0x14100d){const _0xe101c3=_0x4a7abe;_(this,_0xe101c3(0x414),[]),_(this,_0xe101c3(0x3c9),null),_(this,'_textBubble',null),_(this,_0xe101c3(0x3f3),null),_(this,_0xe101c3(0x2f1),null),_(this,_0xe101c3(0x37d),null),(this['_cursor']=_0x41e70f,this[_0xe101c3(0x25a)]=_0x3de8ce,this[_0xe101c3(0x398)]=_0x349927,this[_0xe101c3(0x200)]=_0x14100d,this[_0xe101c3(0x250)]());}set[_0x4a7abe(0x243)](_0x4f5d51){const _0x319e0c=_0x4a7abe;_0x4f5d51?(this['_anchorDot']&&this[_0x319e0c(0x3f3)][_0x319e0c(0x227)](),this['_textBubble']&&this['_textBubble'][_0x319e0c(0x23e)]()):(this[_0x319e0c(0x3f3)]&&this[_0x319e0c(0x3f3)][_0x319e0c(0x23e)](),this[_0x319e0c(0x3aa)]&&this['_textBubble']['hide']());}['dispose'](){const _0x43cb30=_0x4a7abe;for(const _0x54d11c of this[_0x43cb30(0x414)])_0x54d11c[_0x43cb30(0x234)]();this[_0x43cb30(0x3aa)]&&this[_0x43cb30(0x3aa)]['dispose'](),this['_anchorDot']&&this[_0x43cb30(0x3f3)][_0x43cb30(0x234)](),this[_0x43cb30(0x3c9)]&&this[_0x43cb30(0x3c9)]['dispose'](),this[_0x43cb30(0x37d)]&&this[_0x43cb30(0x37d)]();}[_0x4a7abe(0x250)](){const _0x5da584=_0x4a7abe;var _0x200d6e;const {_docSkeleton:_0x1fa6ae,_document:_0x30ddbc}=this,{color:_0x89e5f5,name:_0x369267,ranges:_0x55e22b}=this['_cursor'],_0x3453f1=_0x30ddbc['getOffsetConfig'](),{docsLeft:_0x357b52,docsTop:_0x4a9815}=_0x3453f1,_0x1c4048=new T[(_0x5da584(0x2a8))](_0x3453f1,_0x1fa6ae);for(const {startOffset:_0x3ad5cf,endOffset:_0x1f294a,rangeType:_0xc7f038,segmentId:_0x30bc22,segmentPage:_0x25ec20,collapsed:_0x1a161a,isActive:_0x5974fd}of _0x55e22b){const _0x144d0e=_0x1fa6ae['findNodePositionByCharIndex'](_0x3ad5cf,!0x0,_0x30bc22,_0x25ec20);let _0x1cbe35=_0x1fa6ae['findNodePositionByCharIndex'](_0x1f294a,!0x0,_0x30bc22,_0x25ec20);if(_0x1cbe35==null&&(_0x1cbe35=_0x1fa6ae[_0x5da584(0x214)](_0x1f294a-0x1,!0x1,_0x30bc22,_0x25ec20)),_0x5974fd){const {contentBoxPointGroup:_0x2e1889}=_0x1c4048['getRangePointData'](_0x1cbe35,_0x1cbe35);if(_0x2e1889['length']===0x0)continue;this[_0x5da584(0x3f6)](_0x89e5f5,_0x2e1889,_0x357b52,_0x4a9815,_0x369267),this['_eventUnsubscribe']=this[_0x5da584(0x276)]();}if(_0x144d0e&&_0x1cbe35){if(_0xc7f038===a[_0x5da584(0x27b)][_0x5da584(0x2c7)]){const _0x8b8313=new T[(_0x5da584(0x2be))](_0x3453f1,_0x1fa6ae),{pointGroup:_0x155dbb}=(_0x200d6e=_0x8b8313[_0x5da584(0x29c)](_0x144d0e,_0x1cbe35))!=null?_0x200d6e:{};if(_0x155dbb==null||_0x155dbb[_0x5da584(0x3e3)]===0x0)continue;this[_0x5da584(0x3b8)](_0x89e5f5,_0x155dbb,_0x357b52,_0x4a9815);}else{if(!_0x1a161a){const {borderBoxPointGroup:_0x741225}=_0x1c4048['getRangePointData'](_0x144d0e,_0x1cbe35);if(_0x741225[_0x5da584(0x3e3)]===0x0)continue;this[_0x5da584(0x490)](_0x89e5f5,_0x741225,_0x357b52,_0x4a9815);}}}}}[_0x4a7abe(0x3f6)](_0x32eba2,_0x5efcc7,_0x109e3d,_0x229c00,_0x234f30){const _0x56802b=_0x4a7abe,_0x59546a=this[_0x56802b(0x2c0)](_0x5efcc7),{left:_0x2e53e0,top:_0x259ea0,height:_0x12db8a}=_0x59546a,_0x1ffa1f=this['_getScale'](),_0x2f4569=Nt/_0x1ffa1f,_0x5c106=new C[(_0x56802b(0x412))](_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00,'height':_0x12db8a,'width':Dt,'fill':_0x32eba2||C[_0x56802b(0x397)](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'strokeWidth':_0x2f4569,'stroke':Ut,'evented':!0x0});this['_anchor']=_0x5c106,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x5c106,T[_0x56802b(0x1f4)]);const _0x13bcc5=new C[(_0x56802b(0x412))](_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00-he/0x2,'height':he,'width':he,'fill':_0x32eba2||C[_0x56802b(0x397)](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'strokeWidth':0x0,'stroke':_0x32eba2||C['getColor'](a[_0x56802b(0x379)][_0x56802b(0x318)],0x0),'evented':!0x1});this[_0x56802b(0x3f3)]=_0x13bcc5,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x13bcc5,T['TEXT_RANGE_LAYER_INDEX']);const _0x176c38=new re(_e+a[_0x56802b(0x32f)](H),{'left':_0x2e53e0+_0x109e3d-_0x2f4569,'top':_0x259ea0+_0x229c00-X,'text':_0x234f30,'color':_0x32eba2});this[_0x56802b(0x3aa)]=_0x176c38,this[_0x56802b(0x25a)][_0x56802b(0x443)](_0x176c38,T[_0x56802b(0x1f4)]),this[_0x56802b(0x243)]=!0x1;}[_0x4a7abe(0x276)](){const _0x2e0836=_0x4a7abe,_0x33e148=this[_0x2e0836(0x3c9)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x11c9a4=_0x2e0836;this[_0x11c9a4(0x243)]=!0x0;}),_0x5c94c7=this['_anchor'][_0x2e0836(0x371)][_0x2e0836(0x2db)](()=>{const _0x4907b5=_0x2e0836;this[_0x4907b5(0x2f1)]&&clearTimeout(this[_0x4907b5(0x2f1)]),this[_0x4907b5(0x2f1)]=setTimeout(()=>{const _0x1f42a5=_0x4907b5;this[_0x1f42a5(0x243)]=!0x1;},0x7d0);});return()=>{const _0x2faba1=_0x2e0836;_0x33e148['unsubscribe'](),_0x5c94c7[_0x2faba1(0x2c4)]();};}[_0x4a7abe(0x490)](_0x3a7c3c,_0x34a9a1,_0x57ba70,_0xb45625){const _0x349bc9=_0x4a7abe,_0x43f454=new a['ColorKit'](_0x3a7c3c)['setAlpha'](0.2)['toRgbString'](),_0x283b2f=new C[(_0x349bc9(0x207))](Rt+a[_0x349bc9(0x32f)](H),{'pointsGroup':_0x34a9a1,'fill':_0x43f454||C[_0x349bc9(0x397)](a[_0x349bc9(0x379)]['black'],0.2),'left':_0x57ba70,'top':_0xb45625,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x349bc9(0x414)]['push'](_0x283b2f),this[_0x349bc9(0x25a)][_0x349bc9(0x443)](_0x283b2f,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4a7abe(0x3b8)](_0x555ba0,_0x11d653,_0x251bad,_0x3088dd){const _0x2944d8=_0x4a7abe,_0xdf8370=new a[(_0x2944d8(0x48f))](_0x555ba0)[_0x2944d8(0x380)](0.2)[_0x2944d8(0x2e6)](),_0x2f3428=new C[(_0x2944d8(0x207))](bt+a[_0x2944d8(0x32f)](H),{'pointsGroup':_0x11d653,'fill':_0xdf8370||C[_0x2944d8(0x397)](a['COLORS']['black'],0.2),'left':_0x251bad,'top':_0x3088dd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2944d8(0x414)][_0x2944d8(0x272)](_0x2f3428),this['_scene']['addObject'](_0x2f3428,T['TEXT_RANGE_LAYER_INDEX']);}[_0x4a7abe(0x2c0)](_0x11a69d){const _0x44b7a9=_0x11a69d[0x0],_0x20d1b7=_0x44b7a9[0x0],_0x5638d8=_0x44b7a9[0x2],{x:_0x769aa4,y:_0x23a3e5}=_0x20d1b7,{x:_0x353a3a,y:_0x2d250d}=_0x5638d8;return{'left':_0x769aa4,'top':_0x23a3e5,'width':_0x353a3a-_0x769aa4,'height':_0x2d250d-_0x23a3e5};}[_0x4a7abe(0x1f2)](){const _0x2a1905=_0x4a7abe,{scaleX:_0x4ab412,scaleY:_0x469cde}=this[_0x2a1905(0x25a)][_0x2a1905(0x45f)]();return Math['max'](_0x4ab412,_0x469cde);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x262cf7,_0x30f1aa,_0x477f9a,_0x57d6e0)=>{const _0x1bdb68=_0x4a7abe;for(var _0x46e1fc=_0x57d6e0>0x1?void 0x0:_0x57d6e0?Lt(_0x30f1aa,_0x477f9a):_0x30f1aa,_0x45ee3f=_0x262cf7[_0x1bdb68(0x3e3)]-0x1,_0x36c107;_0x45ee3f>=0x0;_0x45ee3f--)(_0x36c107=_0x262cf7[_0x45ee3f])&&(_0x46e1fc=_0x36c107(_0x46e1fc)||_0x46e1fc);return _0x46e1fc;},q=(_0x63aec7,_0x28195c)=>(_0x559e5f,_0x29c930)=>_0x28195c(_0x559e5f,_0x29c930,_0x63aec7);let Ee=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x359f13,_0x4dc287,_0x5da428,_0x42252b,_0x4a7c05){const _0x8ca2ba=_0x4a7abe;super(),_(this,_0x8ca2ba(0x34f),[]),_(this,_0x8ca2ba(0x247),[]),(this['_context']=_0x359f13,this[_0x8ca2ba(0x30b)]=_0x4dc287,this[_0x8ca2ba(0x1fc)]=_0x5da428,this[_0x8ca2ba(0x263)]=_0x42252b,this['_themeService']=_0x4a7c05,this['_init']());}[_0x4a7abe(0x3a9)](){const _0x5425c6=_0x4a7abe,_0x2af4a7=this['_context'][_0x5425c6(0x1c7)],_0x3ce163=this['_docSkeletonManagerService'];this[_0x5425c6(0x360)](I[_0x5425c6(0x26e)]([this[_0x5425c6(0x1fc)][_0x5425c6(0x3a2)](_0x2af4a7),this['_themeService'][_0x5425c6(0x418)]])[_0x5425c6(0x31d)]($[_0x5425c6(0x314)](([_0x21a53b,_0xd15346])=>({'skeleton':_0x3ce163['getSkeleton'](),'cursors':[..._0x21a53b[_0x5425c6(0x329)]()][_0x5425c6(0x47d)](_0xd209cc=>({..._0xd209cc,'color':this[_0x5425c6(0x3e7)][_0x5425c6(0x400)](_0xd209cc[_0x5425c6(0x217)])}))})))['subscribe'](_0x58735a=>{const _0x1c040d=_0x5425c6;if(this[_0x1c040d(0x42b)](),_0x58735a){const {skeleton:_0x128a41,cursors:_0x25721c}=_0x58735a;this[_0x1c040d(0x459)](_0x128a41,_0x25721c);}})),this['_initResize'](),this[_0x5425c6(0x2cc)]();}['_updateCollabCursors'](_0x5b874b,_0x2f6e99){const _0x51e9a3=_0x4a7abe,{scene:_0x33e282,mainComponent:_0x1073b8}=this['_context'],_0x4a9392=_0x2f6e99[_0x51e9a3(0x314)](_0x3a4422=>new Le(_0x3a4422,_0x33e282,_0x5b874b,_0x1073b8));this[_0x51e9a3(0x34f)]=_0x4a9392,this[_0x51e9a3(0x247)]=_0x2f6e99;}['_refreshCollabCursors'](){const _0x30dab5=_0x4a7abe;this['_removeCollabCursors']();const {scene:_0x3b1a7a,mainComponent:_0x4fad72}=this[_0x30dab5(0x42e)],_0x3a194e=this[_0x30dab5(0x30b)][_0x30dab5(0x3da)](),_0x27c997=this[_0x30dab5(0x247)]['map'](_0x3750a2=>new Le(_0x3750a2,_0x3b1a7a,_0x3a194e,_0x4fad72));this[_0x30dab5(0x34f)]=_0x27c997;}[_0x4a7abe(0x42b)](){const _0xd3e235=_0x4a7abe;this[_0xd3e235(0x34f)][_0xd3e235(0x2aa)](_0x14183a=>_0x14183a[_0xd3e235(0x234)]()),this[_0xd3e235(0x34f)]=[];}['_initCommandExecutedListener'](){const _0x254c9e=_0x4a7abe,_0x222845=[T[_0x254c9e(0x22d)]['id']];this['disposeWithMe'](this[_0x254c9e(0x263)][_0x254c9e(0x453)](_0x25cc50=>{const _0x44b017=_0x254c9e;_0x222845[_0x44b017(0x3fc)](_0x25cc50['id'])&&_0x25cc50[_0x44b017(0x43f)]['unitId']===this[_0x44b017(0x42e)][_0x44b017(0x1c7)]&&this['_refreshCollabCursors']();}));}[_0x4a7abe(0x3bb)](){const _0x1ffc77=_0x4a7abe;this['disposeWithMe'](a[_0x1ffc77(0x350)](this[_0x1ffc77(0x42e)]['engine'][_0x1ffc77(0x1b9)])[_0x1ffc77(0x31d)]($[_0x1ffc77(0x1f9)](_0x19ff53=>_0x19ff53[_0x1ffc77(0x2b1)]===C[_0x1ffc77(0x3a8)][_0x1ffc77(0x452)]),$[_0x1ffc77(0x387)](0x10))[_0x1ffc77(0x1f1)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x4a7abe(0x32c)](V[_0x4a7abe(0x29a)])),q(0x2,a[_0x4a7abe(0x32c)](F)),q(0x3,a[_0x4a7abe(0x434)]),q(0x4,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x20f)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x4a7abe(0x40c)]{constructor(_0x537ea7,_0x4dddb7){const _0x53db83=_0x4a7abe;super(_0x537ea7,_0x4dddb7),_(this,_0x53db83(0x3f0)),_(this,'_hovered',!0x1),_(this,'_range'),_(this,_0x53db83(0x3bf),''),_(this,_0x53db83(0x260),_0x53db83(0x28e)),_(this,_0x53db83(0x1db)),(_0x4dddb7&&this[_0x53db83(0x426)](_0x4dddb7),this[_0x53db83(0x203)][_0x53db83(0x2db)](()=>this[_0x53db83(0x426)]({'hovered':!0x0})),this[_0x53db83(0x371)][_0x53db83(0x2db)](()=>this[_0x53db83(0x426)]({'hovered':!0x1})));}[_0x4a7abe(0x426)](_0x47bda6){const _0x55789c=_0x4a7abe;var _0x1e9091,_0x12594d,_0x518de4,_0x1d23a8,_0x5f2d09,_0x5bafb6;this['_color']=(_0x1e9091=_0x47bda6['color'])!=null?_0x1e9091:this[_0x55789c(0x3f0)],this[_0x55789c(0x21f)]=(_0x12594d=_0x47bda6['hovered'])!=null?_0x12594d:this[_0x55789c(0x21f)],this[_0x55789c(0x23c)]=(_0x518de4=_0x47bda6[_0x55789c(0x1f8)])!=null?_0x518de4:this['_range'],this[_0x55789c(0x3bf)]=(_0x1d23a8=_0x47bda6[_0x55789c(0x1eb)])!=null?_0x1d23a8:this[_0x55789c(0x3bf)],this[_0x55789c(0x260)]=(_0x5f2d09=_0x47bda6['labelPosition'])!=null?_0x5f2d09:this[_0x55789c(0x260)],this[_0x55789c(0x1db)]=(_0x5bafb6=_0x47bda6[_0x55789c(0x2ed)])!=null?_0x5bafb6:this[_0x55789c(0x1db)],this['transformByState']({'width':_0x47bda6['width'],'height':_0x47bda6['height']});}[_0x4a7abe(0x273)](_0x5c6fab){const _0x13a003=_0x4a7abe,{row:_0x4d584a,column:_0x168a2d}=_0x5c6fab;if(_0x4d584a>=this[_0x13a003(0x23c)][_0x13a003(0x369)]&&_0x4d584a<=this[_0x13a003(0x23c)][_0x13a003(0x1ce)]&&_0x168a2d>=this[_0x13a003(0x23c)]['startColumn']&&_0x168a2d<=this[_0x13a003(0x23c)][_0x13a003(0x2fb)]){this[_0x13a003(0x426)]({'hovered':!0x0});return;}this[_0x13a003(0x426)]({'hovered':!0x1});}[_0x4a7abe(0x367)](_0x5cb3eb){return!0x1;}['_draw'](_0x13a15b){const _0x668880=_0x4a7abe;C['Rect'][_0x668880(0x328)](_0x13a15b,{'width':this[_0x668880(0x2f0)],'height':this[_0x668880(0x25d)],'strokeWidth':Pt,'stroke':this[_0x668880(0x3f0)],'evented':!0x1,'fill':this[_0x668880(0x1db)]}),this[_0x668880(0x21f)]&&(_0x13a15b[_0x668880(0x2ae)](),_0x13a15b[_0x668880(0x32a)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x668880(0x3ce)?0x0:-X),re[_0x668880(0x328)](_0x13a15b,{'text':this['_name'],'color':this[_0x668880(0x3f0)]}),_0x13a15b[_0x668880(0x46f)]());}}function _0x3550(){const _0x721d9d=['getMember','currentUsage','_clearOtherTimers','_docSyncEditingCollabCursorService','random','stage','_id','UniverIcon','children','UniverCollaborationClientUIPlugin','beginPath','setItem','REDEMPTION_CODE_INACTIVE','cursorInfo','REDEMPTION_USER_NOT_ELIGIBLE','roomMembers$','_refRangeService','lineTo','LICENSE_MAX_UNITS_EXCEEDED','\x20at\x20','INTERNAL_ERROR','history','_cursorShapes','fromEventSubject','SetWorksheetActivateCommand','WebBrowserSingleActiveUnitService','sessionStatus$','doc.mutation.rich-text-editing','textRanges','transformSelections','M0\x200H16V16H0z','FromArray','runRefRangeMutations','dirtyRanges','use','_initEntityListener','min','ENTITLE_COUPON_USED_UP','_lastPointer','disposeWithMe','serializeRangeWithSheet','SetTextSelectionsOperation','_revisionService','colno','_configService','collaboration.closeRoom','triggerDblclick','jiqing.500','startRow','jsxs','APPLY_NON_SEQUENTIAL_REVISION','REDEMPTION_CODE_NOT_STARTED','_initUserListener','saveImage','replace','Success','onPointerLeave$','_initStatusListener','unhandledrejection','SetFormulaCalculationStartMutation','contains','_colorAssignService','debug','touchDependencies','COLORS','INVITE_CODE_HAS_BEEN_UES','stack','DeleteRangeMoveLeftCommandId','_eventUnsubscribe','WebSocketService','tag','setAlpha','round','_releaseCalculationLimit','_monkeyPatchLogService','Failed','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','univer-flex\x20univer-items-center','throttleTime','handleDeleteRangeMoveLeft','asObservable','APPLY_PERMISSION_DENIED','isActive','_initUnhandledRejectionListener','LocaleService','handleInsertCol','saveOfflineData','WECHAT_HAS_BEEN_BOUND','useObservable','SetFormulaCalculationNotificationMutation','_univerInstanceService','_localStorageService','ENTITLE_COUPON_EXPIRED','_initEvent','getColor','_docSkeleton','_docStateChangeManagerService','[Window\x20Error]:\x20','117smTXfu','INVITE_CODE_REQUIRED','_uiPartsService','SOCKET_FAILED','exhaustSavingTask','2277125XQmDCO','CollaborationEvent','getCollabCursors$','UNIVER_DOC','NOT_FOUND','LOCAL_CACHE_INTERVAL','2552326ZprbPP','HTTPService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_init','_textBubble','add','RemoveColCommandId','TOO_MANY_REQUESTS','_messageService','registerDependencies','useCallback','sessionTicket','START_CALCULATION','_applyCommand','_transformHistoryAndStateStack','isArray','DataLoaderService','[CollaborationDataLoaderController]','_drawRectRange','collabStatus.notCollab','url(#$1','_initResize','REDEMPTION_USER_REDEEM_TIMES_EXCEED','getActiveSheet','updateOfflineData','_name','_httpService','_localCacheService','getFormulaLimitStatusUrl','PENDING','INotificationService','collaboration.single-unit.warning','LOCAL_CACHE_INTERVAL_KEY','setParam','data','_anchor','collab-text-range-','AUTHORIZE_CODE_ILLEGAL','/run/','editingUnit','bottom','RxDisposable','getActiveRange','body','_online','_toggleOffline','_transformService','parseInt','getConfig','INVALID_ARGUMENT','selections','UnitStatus','getSkeleton','USER_NOT_INVITED_CODE','href','ENTITLE_CHAT_LIMIT_EXCEED','ENTITLE_CAN_NOT_BUY_LOWER_OTP','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','mergeOverrideWithDependencies','syncEditingCollabCursor','wsSessionTicketUrl','length','clsx','_onRefRangeChange','complete','_themeService','fillText','currentColor','handleInsertRangeMoveDown','with','find','Optional','isFormulaString','toStringTag','_color','clearInterval','getCoordByCell','_anchorDot','docStateChange$','collabStatus.syncing','_drawAnchor','blue.400','fromEvent','getMemberID','attrs','OffLineIcon','includes','YUUMI_ALL_TABLES_IS_INVALID','/universer-api/frontend/logs','REDEMPTION_CODE_FULLY_REDEEMED','getColorFromTheme','InsertRangeMoveRightCommandId','m1Prime','addObjects','collabStatus.conflict','_cachedData','clipPath','IMessageService','isTransformMutationFailure','code','debounce','_instanceService','Shape','_updateSubUnitFromURLParams','createElement','LICENSE_EXPORT_SIZE_EXCEEDED','unit','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','Rect','ONLINE','_shapes','0\x200\x2016\x2016','_onCursorDelete','setTimeout','currentTheme$','getItem','mapTo','_maxFormulaLimit','_sheetSkeletonManagerService','ticket','createSocket','_scheduleHeartbeat','actions','evenodd','undoState','activeSheet$','_initDependencies','beforeCommandExecuted','setShapeProps','_docTransformSelectionsService','getRelativeToViewportCoord','2124PFplxb','CommandType','_removeCollabCursors','fill','from','_context','yellow.400','_ensureSubject','CONFLICT','svg','_handleJoinEvent','ICommandService','next','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_pollingInterval','displayName','has','permission.title','SUBMIT_CHANGESET_TIMEOUT','DEFAULT_WS_SESSION_TICKET_URL','MOBILE_VERIFY_CODE_MISMATCH','SNAPSHOT_INVALID_SNAPSHOT','params','BuiltInUIPart','defs','toString','addObject','status$','1em','DesktopCollaborationStatusDisplayController','USER_IS_ANONYMOUS','_collabCursorState$','_injector','_initCommandInterceptor','IDocClipboardService','ranges','_checkCalculationAvailable','RemoveRowCommandId','white','OTHER_CLIENTS_EDITING','eventID','resize','onCommandExecuted','purple.300','fillRule','/universer-api/license/formula/limit/start','clearTimeout','on-line-icon_clip0_910_349','_updateCollabCursors','APPLY_REVISION_CONFILICT','roomMembers','...','_taskIds','SheetCollabCursorShape','getAncestorScale','getFocusedUnit','_imageIoService','IUIPartsService','getVpScrollXYInfoByPosToVp','transformStateCache','onLocalMutation','SheetSkeletonManagerService','replaceDocRanges','redoState','whenReady','now','_handleEvent','YUUMI_NO_CUBOID_FOR_QUESTION','override','getCollabEntity$','restore','SOCKET_FAILED_RETRY','_hasFormulaInDirtyRanges','idSuffix','NO_OTHER_CLIENTS_EDITING','_transformPreviousActiveRange','_getFormulaLimitStatus','EMAIL_HAS_BEEN_BOUND','ALREADY_EXISTS','RefRangeService','Tooltip','_memberID','_docTransformIMECacheService','getParam','flatMap','_setFormulaLimitStatus','none','red.300','_getMergeRange','_selfUnitIDs','UniverInstanceType','FormulaExecuteStageType','_startSheetCollabCursor','totalFormulasToCalculate','saveTaskMap','10080864ntUGfx','_status$','transformMutationsWithChangeset','RevisionService','_lastResponseTimestamp','disableLocalCache','PY_RUNTIME_SCRIPT_ERROR','ColorKit','_drawTextRange','ENTITLE_INVALID_COUPON_CODE','Plugin','SessionStatus','getUnit','univer-mr-2\x20univer-flex\x20univer-text-xl','setStateCache','onTransformChange$','onRendered','CollaborationStatus','_disabled','CHANGESET_REVISION_CONFILICT','invokeId','rgba(255,\x20255,\x20255,\x200.01)','addEventListener','UniverCollaborationClientPlugin','functionsExecutedState','forwardRef','post','result','_transformUndoRedoStack','unitId','get','entityInit$','urlChange$','event$','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','USERS_LEAVE','endRow','USER_NOT_FOUND','Error','6764hNwMLO','MOBILE_HAS_BEEN_BOUND','key','replaceState','formula.calculation.unable','CollaborationController','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_notificationService','releaseFormulaLimitUrl','addClipboardHook','_backgroundColor','ILogService','delete','assignAColorForMemberID','stringify','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','InsertColCommandId','formula.calculation.waiting','distinctUntilChanged','CollaborationUIEventId','toDisposable','IUniverInstanceService','LICENSE_IMPORT_SIZE_EXCEEDED','collabCursorState$','join','shift','name','Vector2','getUnhiddenWorksheets','assign','switchMap','searchParams','subscribe','_getScale','YUUMI_UNABLE_LOAD_URL','TEXT_RANGE_LAYER_INDEX','unitID','send','subUnitId','range','filter','DocStateChangeManagerService','_removeClearOtherTimer','_collabCursorController','_renderManagerService','location','CollaborationUIEventService','_document','getUnitId','newValue','onPointerEnter$','mask','set','YUUMI_URL_COL_OUT_OF_RANGE','RegularPolygon','registerBeforeClose','7snBShG','Unknown\x20user','_cursorInfo$','handleMoveRange','createInstance','_showGuardMessage','ThemeService','catch','[Unhandled\x20Rejection]:\x20','742810pnGEYC','UNRECOGNIZED','findNodePositionByCharIndex','xlink:href','getRenderById','color','useDependency','RemoteUniscriptService','lineno','arc','UNDEFINED','SYNCED','getCurrentSelections','_hovered','LOGIN_TOKEN_PROCESSING_FAILED','_toggleOnline','UPDATE_CURSOR','[RemoteUniscriptService]:\x20no\x20focused\x20unit','reconnect','pushState','_entities','hide','getTypeOfUnitAdded$','MessageType','IBeforeCloseService','some','Injector','SetDocZoomRatioOperation','session.collaboration-timeout','executeCommand','MemberService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','shareReplay','_initStatusComponent','dispose','YUUMI_AI_RUN_FAILED','entries','row','_startCalculationLimit','takeUntil','setActiveRange','useRef','_range','_getSaveTimeout','show','colorChannel1','ENTITLE_REPORT_LIMIT_EXCEED','getTypeOfUnitDisposed$','BehaviorSubject','_hover','_collaborationUIEventService','REDEMPTION_CODE_HAS_BEEN_CREATED','LICENSE_DISTRO_REJECTED','_cursors','skeleton','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','IRenderManagerService','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','/universer-api/license/formula/limit/status','memberID','_collaborationController','_registerRenderDependencies','_render','loadUnit','Module','focused$','PAYMENT_CHANNEL_NOT_SUPPORT','split','Loading','OFFLINE','_setupSubUnitSync','message','_scene','_currentUsage','AWAITING','height','defineProperty','runId','_labelPosition','jsx','TEXT','_commandService','_config','isFormulaId','translate(.97)','EMAIL_VERIFY_CODE_MISMATCH','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','deserializeRangeWithSheet','fillStyle','off-line-icon_clip0_910_343','session.connection-failed','getUniverSheetInstance','combineLatest','stageInfo','startsWith','_localeService','push','onMouseMove','BrowserCollaborationSocketService','APPLY_DUPLICATED','_handleHover','_roomMembers$','Rectangle','loadOfflineData','DependentOn','DOC_RANGE_TYPE','IConfigService','substring','/universer-api/license/formula/limit/done','imageSourceType','registerRenderModule','CollaborationSocketService','currentSkeleton$','handleIRemoveRow','filename','text','EffectRefRangId','SNAPSHOT_HAS_BEEN_REMOVED','dispose$','APPLY_REJECT','removeEventListener','_collabSessionService','path','?taskId=','top','collabStatus.offline','ENTITLE_USE_COUPON_NOT_1ST_TRADE','error','font','Workbook','_unitStatus','_memberService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','PERMISSION_DENIED','isTransformMutationsWithChangesetSuccess','size','DocSkeletonManagerService','UNAUTHENTICATED','getRangePointData','_createSocketURL','_handleLeaveEvent','_collaborationSessionService','init','_syncEditingCollabCursorService','registerRefRange','deepClone','all','_onCursorUpdate','_startDocCollabCursor','collab-text-anchor-','NodePositionConvertToCursor','getLocalCacheKey','forEach','measureText','cursorInfo$','m2Prime','save','_updateLocalCursor','DocIMEInputManagerService','type','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','13281232OzTRXD','getCellPositionByOffset','selection','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getCellMatrix','YUUMI_ASYNCIO_CANCELLED','pluginName','_getSessionTicket','getSheetBySheetId','CanceledError','HEADER_MENU','NodePositionConvertToRectRange','then','_getAnchorBounding','url(#on-line-icon_clip0_910_349)','transformIMECache','YUUMI_CONNECTOR_URL_NOT_FOUND','unsubscribe','_checkAndWaitForCalculationPermission','ISnapshotServerService','RECT','_session','on-line-icon','onStarting','_docTransformStateCacheService','_initCommandExecutedListener','merge','subunit','_unitOnClients','ENTITLE_NEED_BILLING_ADDRESS','LOGIN_FAILED','WebURLService','collab-client.tooltip.reconnect','_initWindowErrorListener','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','session.will-retry','_urlService','off-line-icon','socket$','mutations','subscribeEvent','transformMutation','source','Disposable','_entityInit$','reason','CONNECTOR_DATA_TOO_LARGE','_assignedColors','_handleHeartbeatEvent','getUndoRedoMutationParamsCache','_colorIndex','toRgbString','div','[LogService\x20Error]:\x20','collabStatus.synced','_setupBeforeClosingHandler','setInterval','_saveCache','backgroundColor','_beforeCloseService','IURLService','width','_hideTimer','ITransformService','storage','NOT_COLLAB','ENTITLE_DUP_SUBSCRIPTION','transformRemoteChangeset','addHandlerCallback','INVALID_INVITE_CODE','CollaborationSessionService','registerComponent','endColumn','symbol','trim','_registerDependencies','unshift','getStateCache','MUTATION','YUUMI_SUBSCRIPTION_NOT_FOUND','_scheduleClearOtherTimer','debounceTime','getValue','limitInfo','_uploadLog','origin','SUCCESS','_scheduleSaving','_docSkeletonManagerService','RichTextEditingMutation','CollaborationDataLoaderController','1070503KzYION','_send','_clearPolling','requireSession','_updateURLWithCurrentState','IRemoteInstanceService','map','Subject','getCurrentRevOfUnit','handleInsertRangeMoveRight','black','getOwnPropertyDescriptor','REDEMPTION_INVALID_CODE','univerjs-icon\x20univerjs-icon-','InsertRowCommandId','pipe','COMPLETION_FINISHED','ILocalCacheService','DATA_SOURCE_TOO_LARGE','_saveTaskMap','CURRENT_STATUS_CANNOT_OPERATE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','UNIVER_SHEET','DocSelectionManagerService','runOnServer','SetSelectionsOperation','drawWith','values','transform','string','Inject','_logService','_getSheetObject','generateRandomId','OTHER_CLIENT_EDITING','ENTITLE_INSUFFICIENT_QUOTA','getViewport','_dataLoaderService','YUUMI_RATE_OVER_LIMIT','ISocketService','_heartbeatTimer','Tools','getSheetId'];_0x3550=function(){return _0x721d9d;};return _0x3550();}var wt=Object[_0x4a7abe(0x319)],yt=(_0x587126,_0x21f875,_0x3338e4,_0x253f5c)=>{const _0x474f8=_0x4a7abe;for(var _0x478f0b=_0x253f5c>0x1?void 0x0:_0x253f5c?wt(_0x21f875,_0x3338e4):_0x21f875,_0x1442a4=_0x587126[_0x474f8(0x3e3)]-0x1,_0x459a06;_0x1442a4>=0x0;_0x1442a4--)(_0x459a06=_0x587126[_0x1442a4])&&(_0x478f0b=_0x459a06(_0x478f0b)||_0x478f0b);return _0x478f0b;},ue=(_0x532fc7,_0x5de633)=>(_0x1e8793,_0x222798)=>_0x5de633(_0x1e8793,_0x222798,_0x532fc7);const $t=0x1389;let Ce=class extends a[_0x4a7abe(0x3cf)]{constructor(_0x182ab7,_0x29264e,_0xec329,_0x384c85){const _0x5cb118=_0x4a7abe;super(),_(this,_0x5cb118(0x247),new Set()),_(this,_0x5cb118(0x35f),null),(this[_0x5cb118(0x42e)]=_0x182ab7,this['_sheetSkeletonManagerService']=_0x29264e,this[_0x5cb118(0x1fc)]=_0xec329,this[_0x5cb118(0x3e7)]=_0x384c85,this[_0x5cb118(0x3a9)]());}[_0x4a7abe(0x3a9)](){const _0x13631c=_0x4a7abe;this[_0x13631c(0x41c)]['currentSkeleton$']['pipe']($[_0x13631c(0x239)](this['dispose$']),$['switchMap'](_0x2921e5=>{const _0x822019=_0x13631c;if(_0x2921e5){const _0x3e8fb9=_0x2921e5['sheetId'];return I[_0x822019(0x26e)](this['_collabCursorController'][_0x822019(0x3a2)](this['_context'][_0x822019(0x1c7)]),this[_0x822019(0x3e7)][_0x822019(0x418)])['pipe']($[_0x822019(0x314)](([_0x213e66,_0x2dfe56])=>{const _0x589de8=_0x822019,_0x3573b1=new Map();return _0x213e66[_0x589de8(0x2aa)]((_0x490583,_0x13d2f7)=>{const _0x2d30b4=_0x589de8;if(_0x490583['sheetID']===_0x3e8fb9){const _0x4d68ba={..._0x490583};_0x4d68ba[_0x2d30b4(0x217)]=this[_0x2d30b4(0x3e7)][_0x2d30b4(0x400)](_0x490583[_0x2d30b4(0x217)]),_0x3573b1['set'](_0x13d2f7,_0x4d68ba);}}),{'skeleton':_0x2921e5,'cursors':_0x3573b1};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x13631c(0x1f1)](({skeleton:_0x2dbc1,cursors:_0x20619a})=>{const _0xa6e18f=_0x13631c;this[_0xa6e18f(0x42b)](),_0x2dbc1&&this[_0xa6e18f(0x459)](_0x2dbc1,_0x20619a);}),this['_sheetSkeletonManagerService'][_0x13631c(0x282)][_0x13631c(0x1f1)](_0x347a44=>{const _0x583510=_0x13631c;if(_0x347a44==null)return;const {skeleton:_0x4e7ec1}=_0x347a44,{scene:_0x8ba0f8}=this[_0x583510(0x42e)];_0x8ba0f8['onPointerMove$'][_0x583510(0x2db)](a[_0x583510(0x40a)](_0x46f583=>{const _0x49f000=_0x583510;var _0x473446,_0xeeb589;const {offsetX:_0x194d8b,offsetY:_0x55b181}=_0x46f583,{x:_0x140ba8,y:_0x48752e}=_0x8ba0f8[_0x49f000(0x428)](C[_0x49f000(0x1ec)]['FromArray']([_0x194d8b,_0x55b181])),{scaleX:_0x126b0a,scaleY:_0x5b2d7c}=_0x8ba0f8[_0x49f000(0x45f)](),_0x1d2e16=_0x8ba0f8[_0x49f000(0x332)](C['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x5385f6=_0x8ba0f8[_0x49f000(0x463)](C['Vector2'][_0x49f000(0x358)]([_0x140ba8,_0x48752e]),_0x1d2e16),_0x34b3ca=_0x4e7ec1[_0x49f000(0x2b4)](_0x194d8b,_0x55b181,_0x126b0a,_0x5b2d7c,_0x5385f6);((_0x473446=this[_0x49f000(0x35f)])==null?void 0x0:_0x473446['column'])===_0x34b3ca['column']&&((_0xeeb589=this[_0x49f000(0x35f)])==null?void 0x0:_0xeeb589['row'])===_0x34b3ca[_0x49f000(0x237)]||this[_0x49f000(0x247)][_0x49f000(0x2aa)](_0x5d4ca2=>{_0x5d4ca2['onMouseMove'](_0x34b3ca);});},0x64));});}['_updateCollabCursors'](_0x569e35,_0xe09400){const _0xdd576e=_0x4a7abe;var _0x3968f9;const _0x8f9a6c=(_0x3968f9=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x3968f9[_0xdd576e(0x248)];if(!_0x8f9a6c)return;const _0x50b5fd=this[_0xdd576e(0x32e)]();if(!_0x50b5fd)return;this[_0xdd576e(0x247)][_0xdd576e(0x2aa)](_0x368606=>{_0x368606['makeDirty']();});const {scene:_0x32edab}=_0x50b5fd,_0x15c206=xt(Array[_0xdd576e(0x42d)](_0xe09400['values']()))[_0xdd576e(0x314)](_0x4a8e36=>{const _0x465e2e=_0xdd576e,{color:_0x5134a0,range:_0x704997,name:_0x5bc3d3,selection:_0xdfec17,sheetID:_0x45de84}=_0x4a8e36,{startColumn:_0x1a4c8b,startRow:_0x42e426,endColumn:_0xc4110d,endRow:_0x41f48f}=_0x704997,_0x17b610=J[_0x465e2e(0x3f2)](_0x42e426,_0x1a4c8b,_0x32edab,_0x8f9a6c),_0x7c6d74=J['getCoordByCell'](_0x41f48f,_0xc4110d,_0x32edab,_0x8f9a6c),{columnHeaderHeightAndMarginTop:_0x2d35bf}=_0x8f9a6c,{startX:_0x18c97c,startY:_0x3ea8ea}=_0x17b610,{endX:_0x2d3370,endY:_0x4a291a}=_0x7c6d74,_0xbc5c5f=_0x2d3370-_0x18c97c,_0x54fc60=_0x4a291a-_0x3ea8ea,_0x2442b1={'labelPosition':_0x3ea8ea-_0x2d35bf>=X?_0x465e2e(0x28e):_0x465e2e(0x3ce),'sheetID':_0x45de84,'range':_0x704997,'color':_0x5134a0,'name':_0x5bc3d3,'selection':_0xdfec17,'left':_0x18c97c,'top':_0x3ea8ea,'width':_0xbc5c5f,'height':_0x54fc60,'evented':!0x1,'zIndex':$t};return new je(_0x5bc3d3,_0x2442b1);});_0x32edab[_0xdd576e(0x403)](_0x15c206,At),this['_cursors']=new Set(_0x15c206);}['_removeCollabCursors'](){const _0x44a3db=_0x4a7abe;var _0x440d9f;(_0x440d9f=this['_cursors'])==null||_0x440d9f[_0x44a3db(0x2aa)](_0x19f345=>_0x19f345[_0x44a3db(0x234)]());}[_0x4a7abe(0x32e)](){const _0x5a095f=_0x4a7abe;return J['getSheetObject'](this['_context'][_0x5a095f(0x410)],this[_0x5a095f(0x42e)]);}};Ce=yt([ue(0x1,a[_0x4a7abe(0x32c)](J[_0x4a7abe(0x466)])),ue(0x2,a[_0x4a7abe(0x32c)](F)),ue(0x3,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x20f)]))],Ce);function xt(_0xa4741b){const _0x17ce17=_0x4a7abe,_0x44095d=new Map();return _0xa4741b['forEach'](_0x64fee4=>{const _0x259e86=_0xdbe3;if(_0x44095d['has'](_0x64fee4[_0x259e86(0x2b5)])){const _0x2e7589=_0x44095d[_0x259e86(0x1c8)](_0x64fee4[_0x259e86(0x2b5)]);_0x2e7589['name']+=',\x20'+_0x64fee4[_0x259e86(0x1eb)];}else _0x44095d[_0x259e86(0x205)](_0x64fee4[_0x259e86(0x2b5)],_0x64fee4);}),Array[_0x17ce17(0x42d)](_0x44095d[_0x17ce17(0x329)]());}var Bt=Object['getOwnPropertyDescriptor'],Ft=(_0x36bcb1,_0xc9178f,_0x142632,_0x1fa59f)=>{const _0x4cd36f=_0x4a7abe;for(var _0xbf3285=_0x1fa59f>0x1?void 0x0:_0x1fa59f?Bt(_0xc9178f,_0x142632):_0xc9178f,_0x4df951=_0x36bcb1[_0x4cd36f(0x3e3)]-0x1,_0x4f9372;_0x4df951>=0x0;_0x4df951--)(_0x4f9372=_0x36bcb1[_0x4df951])&&(_0xbf3285=_0x4f9372(_0xbf3285)||_0xbf3285);return _0xbf3285;},y=(_0x254f36,_0x338118)=>(_0x19dd2a,_0x3e662c)=>_0x338118(_0x19dd2a,_0x3e662c,_0x254f36);let Z=class extends a[_0x4a7abe(0x2de)]{constructor(_0x4c7432,_0x1c558,_0xde35cc,_0xf668ea,_0x2a5f8b,_0x17b3c6){const _0x19d6ad=_0x4a7abe;super(),this[_0x19d6ad(0x2ee)]=_0x4c7432,this[_0x19d6ad(0x3c1)]=_0x1c558,this['_collaborationUIEventService']=_0xde35cc,this['_messageService']=_0xf668ea,this[_0x19d6ad(0x1d8)]=_0x2a5f8b,this[_0x19d6ad(0x271)]=_0x17b3c6,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4a7abe(0x2ea)](){const _0x3099ed=_0x4a7abe;this[_0x3099ed(0x360)](this['_beforeCloseService'][_0x3099ed(0x208)](()=>{const _0x494a91=_0x3099ed;if(this[_0x494a91(0x3c1)][_0x494a91(0x487)][_0x494a91(0x299)])return this[_0x494a91(0x271)]['t']('collaboration.offline-data-not-saved');}));}[_0x4a7abe(0x396)](){const _0x328378=_0x4a7abe;this[_0x328378(0x360)](this[_0x328378(0x244)][_0x328378(0x1cb)][_0x328378(0x1f1)](_0x4634a1=>{const _0x58301b=_0x328378;_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x330)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x3c5))}),_0x4634a1['id']===u[_0x58301b(0x1e4)]['CLOSE_ROOM']&&this['_messageService'][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this['_localeService']['t'](_0x58301b(0x366))}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x297)]&&this[_0x58301b(0x1d8)][_0x58301b(0x23e)]({'title':this[_0x58301b(0x271)]['t'](_0x58301b(0x43a)),'content':this[_0x58301b(0x271)]['t']('permission.content'),'type':_0x58301b(0x291),'duration':0x0}),_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x431)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)][_0x58301b(0x1d0)],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x366))+'('+_0x4634a1['data']+')'}),_0x4634a1['id']===u[_0x58301b(0x1e4)]['JOIN_ROOM_FAILED']&&this[_0x58301b(0x3ae)]['show']({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x4634a1['data']||'')}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x470)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)]['Warning'],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x2d6))}),_0x4634a1['id']===u['CollaborationUIEventId'][_0x58301b(0x39e)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p['MessageType'][_0x58301b(0x1d0)],'content':this['_localeService']['t'](_0x58301b(0x26c))}),_0x4634a1['id']===u[_0x58301b(0x1e4)][_0x58301b(0x43b)]&&this[_0x58301b(0x3ae)][_0x58301b(0x23e)]({'type':p[_0x58301b(0x229)][_0x58301b(0x1d0)],'content':this[_0x58301b(0x271)]['t'](_0x58301b(0x22e))});}));}};Z=Ft([y(0x0,O[_0x4a7abe(0x22a)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x1ff)])),y(0x3,O['IMessageService']),y(0x4,O[_0x4a7abe(0x3c4)]),y(0x5,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],Z);var jt=Object[_0x4a7abe(0x319)],kt=(_0x13175c,_0x5b945a,_0x9182a3,_0x1bb8ad)=>{for(var _0x2a3813=_0x1bb8ad>0x1?void 0x0:_0x1bb8ad?jt(_0x5b945a,_0x9182a3):_0x5b945a,_0x3775cc=_0x13175c['length']-0x1,_0x19ce22;_0x3775cc>=0x0;_0x3775cc--)(_0x19ce22=_0x13175c[_0x3775cc])&&(_0x2a3813=_0x19ce22(_0x2a3813)||_0x2a3813);return _0x2a3813;},z=(_0x53c7e4,_0x19e17c)=>(_0x413bb4,_0x116aee)=>_0x19e17c(_0x413bb4,_0x116aee,_0x53c7e4);let Q=class extends a[_0x4a7abe(0x2de)]{constructor(_0x331803,_0x476f39,_0x4734b6,_0x1f7c99){const _0x2cfc4b=_0x4a7abe;super(),_(this,'_memberID'),(this[_0x2cfc4b(0x449)]=_0x331803,this[_0x2cfc4b(0x3c0)]=_0x476f39,this[_0x2cfc4b(0x32d)]=_0x4734b6,this[_0x2cfc4b(0x29f)]=_0x1f7c99,this[_0x2cfc4b(0x3a9)]());}['_init'](){const _0x5afa18=_0x4a7abe;this[_0x5afa18(0x2d4)](),this[_0x5afa18(0x38c)](),this[_0x5afa18(0x383)](),this[_0x5afa18(0x36d)]();}[_0x4a7abe(0x36d)](){const _0x4a238a=_0x4a7abe;this['disposeWithMe'](this[_0x4a238a(0x29f)][_0x4a238a(0x2d9)][_0x4a238a(0x1f1)](_0x4fe711=>{const _0x59cb3f=_0x4a238a;this[_0x59cb3f(0x47a)]=_0x4fe711==null?void 0x0:_0x4fe711[_0x59cb3f(0x24d)];}));}[_0x4a7abe(0x2d4)](){const _0x3afa54=_0x4a7abe,_0x29222c=_0x37c0e2=>{const _0x13a13f=_0xdbe3;var _0x3cddc7;this[_0x13a13f(0x307)](_0x13a13f(0x291),_0x13a13f(0x39a)+_0x37c0e2['message']+_0x13a13f(0x34c)+_0x37c0e2[_0x13a13f(0x284)]+':'+_0x37c0e2[_0x13a13f(0x21a)]+':'+_0x37c0e2[_0x13a13f(0x364)]+'\x0a'+(((_0x3cddc7=_0x37c0e2[_0x13a13f(0x291)])==null?void 0x0:_0x3cddc7[_0x13a13f(0x37b)])||''));};window[_0x3afa54(0x1c0)](_0x3afa54(0x291),_0x29222c),this[_0x3afa54(0x360)](()=>{const _0x5275df=_0x3afa54;window[_0x5275df(0x28a)](_0x5275df(0x291),_0x29222c);});}[_0x4a7abe(0x38c)](){const _0x271e38=_0x4a7abe,_0x5e2911=_0x481406=>{const _0x10bfca=_0xdbe3;this[_0x10bfca(0x307)](_0x10bfca(0x291),_0x10bfca(0x211)+_0x481406[_0x10bfca(0x2e0)]);};window[_0x271e38(0x1c0)](_0x271e38(0x373),_0x5e2911),this[_0x271e38(0x360)](()=>{const _0x5b39ab=_0x271e38;window[_0x5b39ab(0x28a)](_0x5b39ab(0x373),_0x5e2911);});}['_monkeyPatchLogService'](){const _0x1be364=_0x4a7abe,_0x344fbf=this[_0x1be364(0x32d)]['error']['bind'](this['_logService']);this[_0x1be364(0x32d)][_0x1be364(0x291)]=(..._0x5b2e47)=>{const _0x50e5e0=_0x1be364,_0x32a271=_0x5b2e47[_0x50e5e0(0x314)](_0x189cca=>_0x189cca instanceof Error?_0x189cca[_0x50e5e0(0x259)]+'\x0a'+_0x189cca['stack']:String(_0x189cca))[_0x50e5e0(0x1e9)]('\x20');this[_0x50e5e0(0x307)](_0x50e5e0(0x291),_0x50e5e0(0x2e8)+_0x32a271),_0x344fbf(..._0x5b2e47);},this[_0x1be364(0x360)](()=>{const _0x1781b5=_0x1be364;this[_0x1781b5(0x32d)][_0x1781b5(0x291)]=_0x344fbf;});}[_0x4a7abe(0x307)](_0x5471df,_0x26ea07){const _0xbe93ce=_0x4a7abe;try{const _0x1749dd={'userId':this['_memberID'],'logLabel':_0x5471df,'content':_0x26ea07};this[_0xbe93ce(0x3c0)][_0xbe93ce(0x1c4)](_0xbe93ce(0x3fe),{'body':_0x1749dd})[_0xbe93ce(0x210)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a[_0x4a7abe(0x22c)])),z(0x1,a['Inject'](x[_0x4a7abe(0x3a7)])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u[_0x4a7abe(0x2f9)]))],Q);const Yt='collaboration-client-ui.config',Me={};var Ht=Object[_0x4a7abe(0x319)],Wt=(_0xf137f9,_0x282274,_0x53c2d4,_0x423e77)=>{const _0x132415=_0x4a7abe;for(var _0x3428aa=_0x423e77>0x1?void 0x0:_0x423e77?Ht(_0x282274,_0x53c2d4):_0x282274,_0x202289=_0xf137f9[_0x132415(0x3e3)]-0x1,_0x1ecbee;_0x202289>=0x0;_0x202289--)(_0x1ecbee=_0xf137f9[_0x202289])&&(_0x3428aa=_0x1ecbee(_0x3428aa)||_0x3428aa);return _0x3428aa;},Ae=(_0x2b93d7,_0x4f797d)=>(_0x2956f0,_0x4e3448)=>_0x4f797d(_0x2956f0,_0x4e3448,_0x2b93d7);let ee=class{constructor(_0x310e45,_0x5686a7){const _0x2e484c=_0x4a7abe;this['_transformService']=_0x310e45,this[_0x2e484c(0x1fd)]=_0x5686a7;}[_0x4a7abe(0x2c2)](_0x4e2f7e){const _0x2ba60e=_0x4a7abe;this[_0x2ba60e(0x1c6)](_0x4e2f7e),this[_0x2ba60e(0x474)](_0x4e2f7e);}[_0x4a7abe(0x2f6)](_0x708a72){const _0x417341=_0x4a7abe,{unitID:_0x4921a6}=_0x708a72,_0x36de3b=this[_0x417341(0x1fd)][_0x417341(0x216)](_0x4921a6)[_0x417341(0x3eb)](T['DocIMEInputManagerService']),{redoCache:_0x2843c7}=_0x36de3b[_0x417341(0x2e4)]();if(_0x2843c7['length']===0x0)return _0x708a72;let _0x5e1db8=a['Tools'][_0x417341(0x2a3)](_0x708a72[_0x417341(0x2da)][0x0]);for(let _0x35777a=0x0;_0x35777a<_0x2843c7['length'];_0x35777a++){const _0x33fa66={'id':_0x417341(0x354),'params':{..._0x2843c7[_0x35777a]}},_0x3a786a=this[_0x417341(0x3d4)][_0x417341(0x2dc)](_0x5e1db8,_0x33fa66,!0x1);if(g['isTransformMutationFailure'](_0x3a786a))throw _0x3a786a['error'];_0x5e1db8=_0x3a786a[_0x417341(0x402)];}return{...a[_0x417341(0x337)][_0x417341(0x2a3)](_0x708a72),'mutations':[_0x5e1db8]};}[_0x4a7abe(0x1c6)](_0x1a6e5e){const _0x1fb974=_0x4a7abe,{unitID:_0x50116f}=_0x1a6e5e,_0x1d4ecc=this[_0x1fb974(0x1fd)][_0x1fb974(0x216)](_0x50116f)[_0x1fb974(0x3eb)](T[_0x1fb974(0x2b0)]),{undoCache:_0xe0f278,redoCache:_0x59b16d}=_0x1d4ecc['getUndoRedoMutationParamsCache']();if(_0xe0f278['length']===0x0||_0x59b16d[_0x1fb974(0x3e3)]===0x0)return;const _0x1cb71=[],_0x2fbf81=[];let _0x4ce7b8=a[_0x1fb974(0x337)][_0x1fb974(0x2a3)](_0x1a6e5e[_0x1fb974(0x2da)][0x0]),_0x3fc5be=a[_0x1fb974(0x337)][_0x1fb974(0x2a3)](_0x1a6e5e['mutations'][0x0]);for(let _0xf66db3=_0xe0f278[_0x1fb974(0x3e3)]-0x1;_0xf66db3>=0x0;_0xf66db3--){const _0x5a1b60={'id':_0x1fb974(0x354),'params':{..._0xe0f278[_0xf66db3]}},_0x1e8809={'id':_0x1fb974(0x354),'params':{..._0x59b16d[_0xf66db3]}},_0x1f4c36=this[_0x1fb974(0x3d4)]['transformMutation'](_0x4ce7b8,_0x5a1b60,!0x1),_0x1984ec=this[_0x1fb974(0x3d4)][_0x1fb974(0x2dc)](_0x3fc5be,_0x1e8809,!0x1);if(g[_0x1fb974(0x408)](_0x1f4c36))throw _0x1f4c36[_0x1fb974(0x291)];if(g['isTransformMutationFailure'](_0x1984ec))throw _0x1984ec[_0x1fb974(0x291)];_0x1cb71['unshift'](_0x1f4c36[_0x1fb974(0x2ad)]['params']),_0x2fbf81[_0x1fb974(0x2ff)](_0x1984ec[_0x1fb974(0x2ad)][_0x1fb974(0x43f)]),_0x4ce7b8=_0x1f4c36[_0x1fb974(0x402)],_0x3fc5be=_0x1984ec['m1Prime'];}_0x1d4ecc['setUndoRedoMutationParamsCache']({'undoCache':_0x1cb71,'redoCache':_0x2fbf81});}[_0x4a7abe(0x474)](_0x362680){const _0x1a7f6c=_0x4a7abe,{unitID:_0x4a0b84}=_0x362680,_0x4924c2=this[_0x1a7f6c(0x1fd)]['getRenderById'](_0x4a0b84)[_0x1a7f6c(0x3eb)](T[_0x1a7f6c(0x2b0)]),_0x22d9b7=_0x4924c2[_0x1a7f6c(0x3d0)]();if(_0x22d9b7==null)return;const _0x2c7f83=[{'id':_0x1a7f6c(0x354),'params':{'unitId':_0x362680['unitID'],'actions':null,'textRanges':[_0x22d9b7]}}],_0x10a899=this['_transformService']['transformMutationsWithChangeset'](_0x362680,_0x2c7f83);if(!g[_0x1a7f6c(0x298)](_0x10a899))throw _0x10a899['error'];const _0x1ccd92=_0x10a899['m2Prime'][0x0]['params'][_0x1a7f6c(0x355)];Array[_0x1a7f6c(0x3b5)](_0x1ccd92)&&_0x1ccd92[_0x1a7f6c(0x3e3)]&&_0x4924c2[_0x1a7f6c(0x23a)](_0x1ccd92[0x0]);}};ee=Wt([Ae(0x0,g[_0x4a7abe(0x2f2)]),Ae(0x1,C[_0x4a7abe(0x24a)])],ee);var Vt=Object[_0x4a7abe(0x319)],Gt=(_0x59995b,_0x4886c0,_0x58e30d,_0x4a83a6)=>{const _0xc8270f=_0x4a7abe;for(var _0x14203a=_0x4a83a6>0x1?void 0x0:_0x4a83a6?Vt(_0x4886c0,_0x58e30d):_0x4886c0,_0x14504a=_0x59995b[_0xc8270f(0x3e3)]-0x1,_0xe009ec;_0x14504a>=0x0;_0x14504a--)(_0xe009ec=_0x59995b[_0x14504a])&&(_0x14203a=_0xe009ec(_0x14203a)||_0x14203a);return _0x14203a;},Ie=(_0x5226cb,_0x185afb)=>(_0x3e4661,_0x3622e4)=>_0x185afb(_0x3e4661,_0x3622e4,_0x5226cb);let te=class{constructor(_0x25f974,_0x3edf63,_0xf26462){const _0x438617=_0x4a7abe;this[_0x438617(0x449)]=_0x25f974,this['_transformService']=_0x3edf63,this[_0x438617(0x399)]=_0xf26462;}[_0x4a7abe(0x464)](_0x4cdc7f){this['_transformHistoryAndStateStack'](_0x4cdc7f);}[_0x4a7abe(0x2f6)](_0x4ba2f8){const _0x9b0a42=_0x4a7abe,{unitID:_0x1a078a}=_0x4ba2f8,{collaboration:_0x5be3f9}=this['_docStateChangeManagerService']['getStateCache'](_0x1a078a);if(_0x5be3f9[_0x9b0a42(0x3e3)]===0x0)return _0x4ba2f8;let _0x5233d6=a[_0x9b0a42(0x337)]['deepClone'](_0x4ba2f8[_0x9b0a42(0x2da)][0x0]);for(let _0x32024e=0x0;_0x32024e<_0x5be3f9['length'];_0x32024e++){const _0x34a9d3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5be3f9[_0x32024e][_0x9b0a42(0x1c7)],..._0x5be3f9[_0x32024e][_0x9b0a42(0x468)]}},_0x997396=this[_0x9b0a42(0x3d4)][_0x9b0a42(0x2dc)](_0x5233d6,_0x34a9d3,!0x1);if(g[_0x9b0a42(0x408)](_0x997396))throw _0x997396['error'];_0x5233d6=_0x997396['m1Prime'];}return{...a['Tools']['deepClone'](_0x4ba2f8),'mutations':[_0x5233d6]};}[_0x4a7abe(0x3b4)](_0x297746){const _0x844299=_0x4a7abe,{unitID:_0x349b00}=_0x297746,{history:_0x4ce08d,collaboration:_0x7efe33}=this[_0x844299(0x399)][_0x844299(0x300)](_0x349b00);if(_0x4ce08d['length']===0x0&&_0x7efe33[_0x844299(0x3e3)]===0x0)return;const _0x348f42=[],_0x2f134e=[];let _0x4b1b05=a[_0x844299(0x337)][_0x844299(0x2a3)](_0x297746[_0x844299(0x2da)][0x0]),_0xa6c23e=a[_0x844299(0x337)]['deepClone'](_0x297746[_0x844299(0x2da)][0x0]);for(let _0x2e2f15=_0x4ce08d[_0x844299(0x3e3)]-0x1;_0x2e2f15>=0x0;_0x2e2f15--){const _0x22c640={'id':_0x844299(0x354),'params':{'unitId':_0x4ce08d[_0x2e2f15][_0x844299(0x1c7)],..._0x4ce08d[_0x2e2f15]['undoState']}},_0x1efc48={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ce08d[_0x2e2f15][_0x844299(0x1c7)],..._0x4ce08d[_0x2e2f15]['redoState']}},_0x223267=this[_0x844299(0x3d4)][_0x844299(0x2dc)](_0x4b1b05,_0x22c640,!0x1),_0xf2b24e=this[_0x844299(0x3d4)]['transformMutation'](_0xa6c23e,_0x1efc48,!0x1);if(g[_0x844299(0x408)](_0x223267))throw _0x223267[_0x844299(0x291)];if(g[_0x844299(0x408)](_0xf2b24e))throw _0xf2b24e[_0x844299(0x291)];_0x348f42[_0x844299(0x2ff)]({..._0x4ce08d[_0x2e2f15],'undoState':_0x223267['m2Prime'][_0x844299(0x43f)],'redoState':_0xf2b24e[_0x844299(0x2ad)]['params']}),_0x4b1b05=_0x223267['m1Prime'],_0xa6c23e=_0xf2b24e['m1Prime'];}_0x4b1b05=a[_0x844299(0x337)][_0x844299(0x2a3)](_0x297746[_0x844299(0x2da)][0x0]),_0xa6c23e=a[_0x844299(0x337)]['deepClone'](_0x297746[_0x844299(0x2da)][0x0]);for(let _0x5d3356=_0x7efe33['length']-0x1;_0x5d3356>=0x0;_0x5d3356--){const _0xee86f2={'id':_0x844299(0x354),'params':{'unitId':_0x7efe33[_0x5d3356][_0x844299(0x1c7)],..._0x7efe33[_0x5d3356][_0x844299(0x422)]}},_0x5a5247={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x7efe33[_0x5d3356][_0x844299(0x1c7)],..._0x7efe33[_0x5d3356][_0x844299(0x468)]}},_0x333b77=this['_transformService']['transformMutation'](_0x4b1b05,_0xee86f2,!0x1),_0x55d69a=this['_transformService'][_0x844299(0x2dc)](_0xa6c23e,_0x5a5247,!0x1);if(g[_0x844299(0x408)](_0x333b77))throw _0x333b77['error'];if(g[_0x844299(0x408)](_0x55d69a))throw _0x55d69a[_0x844299(0x291)];_0x2f134e[_0x844299(0x2ff)]({..._0x7efe33[_0x5d3356],'undoState':_0x333b77[_0x844299(0x2ad)][_0x844299(0x43f)],'redoState':_0x55d69a[_0x844299(0x2ad)][_0x844299(0x43f)]}),_0x4b1b05=_0x333b77[_0x844299(0x402)],_0xa6c23e=_0x55d69a[_0x844299(0x402)];}this['_docStateChangeManagerService'][_0x844299(0x1b8)](_0x349b00,{'history':_0x348f42,'collaboration':_0x2f134e});}};te=Gt([Ie(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),Ie(0x1,g[_0x4a7abe(0x2f2)]),Ie(0x2,a[_0x4a7abe(0x32c)](T[_0x4a7abe(0x1fa)]))],te);var Xt=Object[_0x4a7abe(0x319)],Kt=(_0x310483,_0x399182,_0x35e49a,_0xb3c3bb)=>{for(var _0x640f36=_0xb3c3bb>0x1?void 0x0:_0xb3c3bb?Xt(_0x399182,_0x35e49a):_0x399182,_0xbd98a7=_0x310483['length']-0x1,_0xb4065;_0xbd98a7>=0x0;_0xbd98a7--)(_0xb4065=_0x310483[_0xbd98a7])&&(_0x640f36=_0xb4065(_0x640f36)||_0x640f36);return _0x640f36;},Pe=(_0x4500ab,_0x2d0c38)=>(_0x1f73b0,_0x28e623)=>_0x2d0c38(_0x1f73b0,_0x28e623,_0x4500ab);let se=class{constructor(_0x3c5781,_0x216b1c){const _0x3ca883=_0x4a7abe;this[_0x3ca883(0x449)]=_0x3c5781,this['_transformService']=_0x216b1c;}['transformSelections'](_0x345e04){const _0x3e3304=_0x4a7abe;var _0x4d62c1;const _0x41c6f9=this['_injector'][_0x3e3304(0x1c8)](V[_0x3e3304(0x325)]),_0x2e079b=(_0x4d62c1=_0x41c6f9['getDocRanges']())!=null?_0x4d62c1:[];if(_0x2e079b[_0x3e3304(0x3e3)]===0x0)return;const _0x47daf7=_0x345e04[_0x3e3304(0x1f5)],_0x303dba=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x47daf7,'actions':null,'textRanges':_0x2e079b}}],_0x52fae6=this[_0x3e3304(0x3d4)][_0x3e3304(0x48a)](_0x345e04,_0x303dba);if(!g[_0x3e3304(0x298)](_0x52fae6))throw _0x52fae6[_0x3e3304(0x291)];const _0x4dfe34=_0x52fae6['m2Prime'][0x0][_0x3e3304(0x43f)][_0x3e3304(0x355)];Array['isArray'](_0x4dfe34)&&_0x4dfe34[_0x3e3304(0x3e3)]&&_0x41c6f9[_0x3e3304(0x467)](_0x4dfe34,{'unitId':_0x47daf7,'subUnitId':_0x47daf7},!0x1);}};se=Kt([Pe(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),Pe(0x1,g[_0x4a7abe(0x2f2)])],se);var qt=Object[_0x4a7abe(0x319)],zt=(_0x330aa5,_0x4c5109,_0x246e7b,_0x5170cc)=>{const _0xc2cf0b=_0x4a7abe;for(var _0xbef097=_0x5170cc>0x1?void 0x0:_0x5170cc?qt(_0x4c5109,_0x246e7b):_0x4c5109,_0x123132=_0x330aa5[_0xc2cf0b(0x3e3)]-0x1,_0xd5de0a;_0x123132>=0x0;_0x123132--)(_0xd5de0a=_0x330aa5[_0x123132])&&(_0xbef097=_0xd5de0a(_0xbef097)||_0xbef097);return _0xbef097;},N=(_0x31af66,_0x197be6)=>(_0x45f057,_0x10719c)=>_0x197be6(_0x45f057,_0x10719c,_0x31af66);let ie=class extends a[_0x4a7abe(0x2de)]{constructor(_0x2e79a4,_0x3f2a31,_0x736f1f,_0x3c4f50,_0x5ade71,_0xb44b56,_0x3b451a,_0x39be62){const _0x1a3573=_0x4a7abe;super(),_(this,_0x1a3573(0x489),new I[(_0x1a3573(0x242))](u[_0x1a3573(0x1bb)][_0x1a3573(0x2f4)])),(this[_0x1a3573(0x399)]=_0x2e79a4,this[_0x1a3573(0x24e)]=_0x3f2a31,this[_0x1a3573(0x47b)]=_0x736f1f,this[_0x1a3573(0x2cb)]=_0x3c4f50,this[_0x1a3573(0x427)]=_0x5ade71,this[_0x1a3573(0x33c)]=_0xb44b56,this[_0x1a3573(0x3ae)]=_0x3b451a,this[_0x1a3573(0x271)]=_0x39be62,this[_0x1a3573(0x35c)]());}[_0x4a7abe(0x35c)](){const _0x297aaa=_0x4a7abe;this[_0x297aaa(0x360)](this[_0x297aaa(0x24e)][_0x297aaa(0x1c9)][_0x297aaa(0x1f1)](_0x986c2=>{const _0x539c2b=_0x297aaa,_0x34da63=this[_0x539c2b(0x399)][_0x539c2b(0x3f4)][_0x539c2b(0x1f1)](_0x1acd78=>{const _0x107148=_0x539c2b;if(_0x1acd78==null)return;const {unitId:_0x3563a3,redoState:_0x1d8739,commandId:_0x52aeb1}=_0x1acd78;if(_0x3563a3!==_0x986c2[_0x107148(0x1f5)])return;const _0x426f22={'id':_0x52aeb1,'type':a[_0x107148(0x42a)][_0x107148(0x301)],'params':{'unitId':_0x3563a3,'actions':_0x1d8739[_0x107148(0x420)],'textRanges':null}};_0x986c2[_0x107148(0x465)](_0x426f22);});if(_0x986c2[_0x539c2b(0x360)](_0x34da63),_0x986c2 instanceof u['DocCollaborationEntity']){const _0xf03e1d={'onTransformIME':_0x19ce83=>this[_0x539c2b(0x47b)]['transformIMECache'](_0x19ce83),'onTransformState':_0x1bd960=>this[_0x539c2b(0x2cb)][_0x539c2b(0x464)](_0x1bd960),'onTransformSelections':_0x258883=>this[_0x539c2b(0x427)][_0x539c2b(0x356)](_0x258883),'onSyncEditingCollabCursor':_0x115d82=>this['_docSyncEditingCollabCursorService'][_0x539c2b(0x3e1)](_0x115d82),'onTransformRemoteChangesetByIMECache':_0x3f4c79=>this[_0x539c2b(0x47b)]['transformRemoteChangeset'](_0x3f4c79),'onTransformRemoteChangesetByStateCache':_0x352b1c=>this[_0x539c2b(0x2cb)][_0x539c2b(0x2f6)](_0x352b1c)};_0x986c2[_0x539c2b(0x2f7)](_0xf03e1d);}}));}};ie=zt([N(0x0,a[_0x4a7abe(0x32c)](T[_0x4a7abe(0x1fa)])),N(0x1,a[_0x4a7abe(0x32c)](u[_0x4a7abe(0x1d6)])),N(0x2,a[_0x4a7abe(0x32c)](ee)),N(0x3,a['Inject'](te)),N(0x4,a[_0x4a7abe(0x32c)](se)),N(0x5,a[_0x4a7abe(0x32c)](be)),N(0x6,O[_0x4a7abe(0x407)]),N(0x7,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],ie);var G=(_0x3e8a3c=>(_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x21c)]=0x0]=_0x4a7abe(0x21c),_0x3e8a3c[_0x3e8a3c['OK']=0x1]='OK',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x34d)]=0x2]='INTERNAL_ERROR',_0x3e8a3c[_0x3e8a3c['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3a4)]=0x4]=_0x4a7abe(0x3a4),_0x3e8a3c[_0x3e8a3c['UNAUTHENTICATED']=0x5]=_0x4a7abe(0x29b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x477)]=0x6]=_0x4a7abe(0x477),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3d7)]=0x7]=_0x4a7abe(0x3d7),_0x3e8a3c[_0x3e8a3c['TOO_MANY_REQUESTS']=0x8]=_0x4a7abe(0x3ad),_0x3e8a3c[_0x3e8a3c['COMPLETION_FINISHED']=0x9]=_0x4a7abe(0x31e),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2d1)]=0xa]=_0x4a7abe(0x2d1),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x43d)]=0xb]=_0x4a7abe(0x43d),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x385)]=0xc]=_0x4a7abe(0x385),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x267)]=0xd]=_0x4a7abe(0x267),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x436)]=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x3e8a3c[_0x3e8a3c['AUTHORIZE_CODE_ILLEGAL']=0xf]=_0x4a7abe(0x3cb),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x220)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x3e8a3c[_0x3e8a3c['CURRENT_STATUS_CANNOT_OPERATE']=0x64]=_0x4a7abe(0x322),_0x3e8a3c[_0x3e8a3c['ERROR_AGAIN']=0x65]='ERROR_AGAIN',_0x3e8a3c[_0x3e8a3c['USER_NOT_FOUND']=0xc9]=_0x4a7abe(0x1cf),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x447)]=0xca]=_0x4a7abe(0x447),_0x3e8a3c[_0x3e8a3c['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4a7abe(0x1bd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x43e)]=0x1771]=_0x4a7abe(0x43e),_0x3e8a3c[_0x3e8a3c['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4a7abe(0x287),_0x3e8a3c[_0x3e8a3c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x289)]=0x1b59]=_0x4a7abe(0x289),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x36b)]=0x1b5a]=_0x4a7abe(0x36b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x45a)]=0x1b5b]=_0x4a7abe(0x45a),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x38a)]=0x1b5c]=_0x4a7abe(0x38a),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x275)]=0x1b5d]='APPLY_DUPLICATED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2e1)]=0x1f41]=_0x4a7abe(0x2e1),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x34b)]=0x2329]=_0x4a7abe(0x34b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x296)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1e7)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x40f)]=0x232c]=_0x4a7abe(0x40f),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x246)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1f3)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x206)]=0x2712]=_0x4a7abe(0x206),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x334)]=0x2713]=_0x4a7abe(0x334),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x302)]=0x2714]=_0x4a7abe(0x302),_0x3e8a3c[_0x3e8a3c['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x4a7abe(0x46c),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2b8)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1d7)]=0x271c]=_0x4a7abe(0x1d7),_0x3e8a3c[_0x3e8a3c['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x4a7abe(0x3fd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2b6)]=0x271e]=_0x4a7abe(0x2b6),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x235)]=0x271f]=_0x4a7abe(0x235),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2c3)]=0x2720]=_0x4a7abe(0x2c3),_0x3e8a3c[_0x3e8a3c['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x4a7abe(0x48e),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x37a)]=0x2ee1]=_0x4a7abe(0x37a),_0x3e8a3c[_0x3e8a3c['INVALID_INVITE_CODE']=0x2ee2]=_0x4a7abe(0x2f8),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x39c)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3db)]=0x2ee4]=_0x4a7abe(0x3db),_0x3e8a3c[_0x3e8a3c['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x390)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x1d2)]=0x32ca]=_0x4a7abe(0x1d2),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x476)]=0x32cb]=_0x4a7abe(0x476),_0x3e8a3c[_0x3e8a3c['ENTITLE_CAN_NOT_BUY_LOWER_OTP']=0x36b1]=_0x4a7abe(0x3de),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x24b)]=0x36b2]=_0x4a7abe(0x24b),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2f5)]=0x36b3]=_0x4a7abe(0x2f5),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x254)]=0x36b4]=_0x4a7abe(0x254),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x491)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x395)]=0x36b6]=_0x4a7abe(0x395),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x35e)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x290)]=0x36b8]=_0x4a7abe(0x290),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3dd)]=0x3715]=_0x4a7abe(0x3dd),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x240)]=0x3716]=_0x4a7abe(0x240),_0x3e8a3c[_0x3e8a3c['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x4a7abe(0x331),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x2d0)]=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x31a)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x3e8a3c[_0x3e8a3c['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x4a7abe(0x345),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3ff)]=0x3a9b]='REDEMPTION_CODE_FULLY_REDEEMED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x36c)]=0x3a9c]='REDEMPTION_CODE_NOT_STARTED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x347)]=0x3a9d]=_0x4a7abe(0x347),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x3bc)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x245)]=0x3a9f]=_0x4a7abe(0x245),_0x3e8a3c[_0x3e8a3c[_0x4a7abe(0x320)]=0x3e81]=_0x4a7abe(0x320),_0x3e8a3c[_0x3e8a3c['UNRECOGNIZED']=-0x1]=_0x4a7abe(0x213),_0x3e8a3c))(G||{});function Jt(_0x570c74){const _0x48a5d3=_0x4a7abe;var _0x54b533,_0x21f9e5;const _0x24f296=(_0x54b533=_0x570c74[_0x48a5d3(0x26f)])==null?void 0x0:_0x54b533[_0x48a5d3(0x33e)],_0x3d376c=((_0x21f9e5=_0x570c74[_0x48a5d3(0x26f)])==null?void 0x0:_0x21f9e5[_0x48a5d3(0x486)])||0x0;return _0x24f296===B[_0x48a5d3(0x484)][_0x48a5d3(0x3b2)]&&_0x3d376c>0x0;}function Zt(_0x3524a4){const _0x58d8b3=_0x4a7abe;return _0x3524a4[_0x58d8b3(0x1c2)]===B['FormulaExecutedStateType'][_0x58d8b3(0x309)];}var Qt=Object[_0x4a7abe(0x319)],es=(_0x5d5d42,_0x212455,_0x1c1832,_0x1a8815)=>{for(var _0x3b3e78=_0x1a8815>0x1?void 0x0:_0x1a8815?Qt(_0x212455,_0x1c1832):_0x212455,_0x3c7392=_0x5d5d42['length']-0x1,_0x2a0c1b;_0x3c7392>=0x0;_0x3c7392--)(_0x2a0c1b=_0x5d5d42[_0x3c7392])&&(_0x3b3e78=_0x2a0c1b(_0x3b3e78)||_0x3b3e78);return _0x3b3e78;},L=(_0x5be2cb,_0x594972)=>(_0x2c179f,_0x11d669)=>_0x594972(_0x2c179f,_0x11d669,_0x5be2cb);const ts=_0x4a7abe(0x24c),ss=_0x4a7abe(0x456),is=_0x4a7abe(0x27e);let ne=class extends a[_0x4a7abe(0x2de)]{constructor(_0x1a5c28,_0x50709a,_0xf4f448,_0x27dd4e,_0x4139cf,_0x214833,_0x1c2791){const _0x28805a=_0x4a7abe;super(),_(this,_0x28805a(0x437),null),_(this,'_maxFormulaLimit',0x0),_(this,_0x28805a(0x25b),0x0),_(this,_0x28805a(0x45d),[]),_(this,_0x28805a(0x48c),0x0),(this[_0x28805a(0x3ae)]=_0x1a5c28,this['_commandService']=_0x50709a,this['_configService']=_0xf4f448,this['_httpService']=_0x27dd4e,this['_univerInstanceService']=_0x4139cf,this['_logService']=_0x214833,this[_0x28805a(0x271)]=_0x1c2791,this[_0x28805a(0x44a)]());}[_0x4a7abe(0x44a)](){const _0x26f38f=_0x4a7abe;this[_0x26f38f(0x360)](this[_0x26f38f(0x263)][_0x26f38f(0x425)]((_0x3bb669,_0x106d66)=>{const _0x1a5b4e=_0x26f38f;var _0xccbd60;if(_0x3bb669['id']!==B[_0x1a5b4e(0x374)]['id'])return;const _0x351a92=_0x3bb669[_0x1a5b4e(0x43f)];if(!this[_0x1a5b4e(0x471)]((_0xccbd60=_0x351a92[_0x1a5b4e(0x35a)])!=null?_0xccbd60:[]))return;if(!this[_0x1a5b4e(0x44d)]())throw this['_checkAndWaitForCalculationPermission'](_0x3bb669,_0x106d66),this[_0x1a5b4e(0x20e)](),new a[(_0x1a5b4e(0x2bc))]();})),this[_0x26f38f(0x360)](this['_commandService'][_0x26f38f(0x453)]((_0x3a3458,_0x10e925)=>{const _0x44f92e=_0x26f38f;if(_0x3a3458['id']!==B[_0x44f92e(0x392)]['id'])return;const _0x1ebe93=_0x3a3458[_0x44f92e(0x43f)];if(Jt(_0x1ebe93)){const _0x1e3177=a[_0x44f92e(0x32f)]();this['_taskIds'][_0x44f92e(0x272)](_0x1e3177),this[_0x44f92e(0x238)](_0x1e3177);}else{if(Zt(_0x1ebe93)&&this['_taskIds'][_0x44f92e(0x3e3)]>0x0){const _0x13f1b9=this[_0x44f92e(0x45d)][_0x44f92e(0x1ea)]();this[_0x44f92e(0x382)](_0x13f1b9);}}}));}[_0x4a7abe(0x234)](){const _0x4ea102=_0x4a7abe;super[_0x4ea102(0x234)](),this[_0x4ea102(0x310)](),this[_0x4ea102(0x45d)]=[],this['_currentUsage']=0x0,this[_0x4ea102(0x41b)]=0x0,this[_0x4ea102(0x48c)]=0x0;}async[_0x4a7abe(0x2c5)](_0x228dab,_0x32f671){const _0x27be41=_0x4a7abe;for(let _0x2569fd=0x0;_0x2569fd<0x1e;_0x2569fd++)try{if(await this[_0x27be41(0x475)](),this[_0x27be41(0x44d)]()){this['_applyCommand'](_0x228dab,_0x32f671),this['_messageService']['show']({'content':this[_0x27be41(0x271)]['t']('formula.calculation.started'),'type':p[_0x27be41(0x229)][_0x27be41(0x370)]});return;}await new Promise(_0x4a6ba6=>{const _0x366ca1=_0x27be41;this[_0x366ca1(0x437)]=window['setTimeout'](_0x4a6ba6,0x3e8);});}catch(_0x13be00){this[_0x27be41(0x32d)][_0x27be41(0x291)](_0x13be00);}this[_0x27be41(0x3ae)]['show']({'content':this[_0x27be41(0x271)]['t'](_0x27be41(0x1d5)),'type':p[_0x27be41(0x229)][_0x27be41(0x1d0)]});}[_0x4a7abe(0x3b3)](_0x513928,_0x1fc506){const _0x13bf5c=_0x4a7abe;try{this['_commandService'][_0x13bf5c(0x22f)](_0x513928['id'],_0x513928[_0x13bf5c(0x43f)],_0x1fc506);}catch(_0xbbebea){this[_0x13bf5c(0x32d)][_0x13bf5c(0x291)](_0xbbebea);}}[_0x4a7abe(0x47e)](_0x51e56d,_0x5e7583){const _0x437baf=_0x4a7abe;_0x5e7583<this['_lastResponseTimestamp']||(this[_0x437baf(0x48c)]=_0x5e7583,this['_maxFormulaLimit']=Number['parseInt'](_0x51e56d['maxFormulaLimit']),this[_0x437baf(0x25b)]=Number[_0x437baf(0x3d5)](_0x51e56d[_0x437baf(0x33a)]));}async[_0x4a7abe(0x238)](_0x4a87ca){const _0x2ed8fb=_0x4a7abe;var _0x5beb99,_0x181b5a;const _0x4c49bc=Date[_0x2ed8fb(0x46a)]();try{const _0x52cbec=((_0x5beb99=this[_0x2ed8fb(0x365)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x5beb99['startFormulaLimitUrl'])||ss,_0x644bc4=(await this[_0x2ed8fb(0x3c0)][_0x2ed8fb(0x1c4)](_0x52cbec,{'body':JSON[_0x2ed8fb(0x1df)]({'taskId':_0x4a87ca})}))[_0x2ed8fb(0x3d1)];if(((_0x181b5a=_0x644bc4[_0x2ed8fb(0x291)])==null?void 0x0:_0x181b5a['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x644bc4['limitInfo'],_0x4c49bc);}catch(_0x2d6ac7){this[_0x2ed8fb(0x32d)][_0x2ed8fb(0x291)](_0x2d6ac7);}}async[_0x4a7abe(0x475)](_0x2767ee){const _0x50e84b=_0x4a7abe;var _0x2ce636,_0x439e89;const _0x2fada2=Date['now']();try{const _0x15d1f3=((_0x2ce636=this[_0x50e84b(0x365)][_0x50e84b(0x3d6)](u[_0x50e84b(0x268)]))==null?void 0x0:_0x2ce636[_0x50e84b(0x3c2)])||ts,_0x35f424=_0x2767ee?_0x15d1f3+_0x50e84b(0x28d)+encodeURIComponent(_0x2767ee):_0x15d1f3,_0x43796d=(await this[_0x50e84b(0x3c0)]['get'](_0x35f424))[_0x50e84b(0x3d1)];if(((_0x439e89=_0x43796d[_0x50e84b(0x291)])==null?void 0x0:_0x439e89['code'])!==G['OK'])return;this[_0x50e84b(0x47e)](_0x43796d['limitInfo'],_0x2fada2);}catch(_0x3016ad){this[_0x50e84b(0x32d)]['error'](_0x3016ad);}}async[_0x4a7abe(0x382)](_0x944747){const _0x190821=_0x4a7abe;var _0x46b3c7,_0xddcc7d;const _0x4a8ed7=Date['now']();try{const _0x17133d=((_0x46b3c7=this[_0x190821(0x365)]['getConfig'](u[_0x190821(0x268)]))==null?void 0x0:_0x46b3c7[_0x190821(0x1d9)])||is,_0x36bc58=(await this[_0x190821(0x3c0)]['post'](_0x17133d,{'body':JSON[_0x190821(0x1df)]({'taskId':_0x944747})}))[_0x190821(0x3d1)];if(((_0xddcc7d=_0x36bc58[_0x190821(0x291)])==null?void 0x0:_0xddcc7d[_0x190821(0x409)])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x36bc58[_0x190821(0x306)],_0x4a8ed7);}catch(_0x9a0d0a){this['_logService'][_0x190821(0x291)](_0x9a0d0a);}}[_0x4a7abe(0x44d)](){const _0x215735=_0x4a7abe;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x215735(0x41b)]-this[_0x215735(0x25b)]>0x0;}[_0x4a7abe(0x310)](){const _0x3f4d37=_0x4a7abe;this[_0x3f4d37(0x437)]&&(clearTimeout(this['_pollingInterval']),this[_0x3f4d37(0x437)]=null);}[_0x4a7abe(0x20e)](){const _0x5915fb=_0x4a7abe;this[_0x5915fb(0x3ae)]['show']({'content':this[_0x5915fb(0x271)]['t'](_0x5915fb(0x1e2)),'type':p['MessageType'][_0x5915fb(0x256)]});}[_0x4a7abe(0x471)](_0x11f8e2){const _0x478fec=_0x4a7abe;for(const _0x30a88e of _0x11f8e2){const {unitId:_0x1a816c,sheetId:_0x1c37c2,range:_0x26e626}=_0x30a88e,_0xbd02f5=this[_0x478fec(0x393)][_0x478fec(0x494)](_0x1a816c);if(!_0xbd02f5)continue;const _0x11fc36=_0xbd02f5[_0x478fec(0x2bb)](_0x1c37c2);if(!_0x11fc36)continue;const _0x1b92b6=_0x11fc36[_0x478fec(0x2b7)]();for(let _0x2b555f=_0x26e626[_0x478fec(0x369)];_0x2b555f<=_0x26e626[_0x478fec(0x1ce)];_0x2b555f++)for(let _0x3ff342=_0x26e626['startColumn'];_0x3ff342<=_0x26e626[_0x478fec(0x2fb)];_0x3ff342++){const _0x17f1d=_0x1b92b6[_0x478fec(0x305)](_0x2b555f,_0x3ff342);if(_0x17f1d&&(a[_0x478fec(0x3ee)](_0x17f1d['f'])||a[_0x478fec(0x265)](_0x17f1d['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O[_0x4a7abe(0x407)])),L(0x1,a['ICommandService']),L(0x2,a['IConfigService']),L(0x3,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),L(0x4,a[_0x4a7abe(0x1e6)]),L(0x5,a[_0x4a7abe(0x1dc)]),L(0x6,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x38d)]))],ne);var ns=Object[_0x4a7abe(0x319)],rs=(_0x21cf97,_0xa1e283,_0x4a508c,_0x3a3eab)=>{const _0x6e6dd0=_0x4a7abe;for(var _0x1a10b9=_0x3a3eab>0x1?void 0x0:_0x3a3eab?ns(_0xa1e283,_0x4a508c):_0xa1e283,_0xd92c48=_0x21cf97[_0x6e6dd0(0x3e3)]-0x1,_0x29969c;_0xd92c48>=0x0;_0xd92c48--)(_0x29969c=_0x21cf97[_0xd92c48])&&(_0x1a10b9=_0x29969c(_0x1a10b9)||_0x1a10b9);return _0x1a10b9;},Se=(_0x42fdac,_0x599674)=>(_0x2e260e,_0x55f6aa)=>_0x599674(_0x2e260e,_0x55f6aa,_0x42fdac);let Te=class extends a[_0x4a7abe(0x2de)]{constructor(_0x5407be,_0x2466bf,_0x4f2fc4){const _0x5151ea=_0x4a7abe;super(),_(this,_0x5151ea(0x405),new Map()),_(this,_0x5151ea(0x321),new Map()),_(this,_0x5151ea(0x1bc),!0x1),(this[_0x5151ea(0x365)]=_0x5407be,this[_0x5151ea(0x394)]=_0x2466bf,this[_0x5151ea(0x363)]=_0x4f2fc4);}[_0x4a7abe(0x48d)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x592189=_0x4a7abe;this[_0x592189(0x1bc)]=!0x1;}get[_0x4a7abe(0x487)](){const _0xda1ccd=_0x4a7abe;return this[_0xda1ccd(0x321)];}[_0x4a7abe(0x234)](){const _0x17c5c5=_0x4a7abe;this[_0x17c5c5(0x39f)]()[_0x17c5c5(0x2bf)](()=>super[_0x17c5c5(0x234)]());}async[_0x4a7abe(0x279)](_0x551642){const _0x594656=_0x4a7abe;return this[_0x594656(0x1bc)]?null:this[_0x594656(0x394)][_0x594656(0x419)](u[_0x594656(0x2a9)](_0x551642));}async[_0x4a7abe(0x38f)](_0x45774c,_0x2aa9db){const _0x4502cd=_0x4a7abe;return!!this[_0x4502cd(0x394)][_0x4502cd(0x344)](_0x45774c,_0x2aa9db);}[_0x4a7abe(0x3be)](_0x1c625c,_0x27b393,_0x459bb1,_0x1bbc07){const _0x4206f5=_0x4a7abe,_0x542773=this[_0x4206f5(0x363)][_0x4206f5(0x316)](_0x1c625c);this['_cachedData'][_0x4206f5(0x205)](_0x1c625c,{'unitID':_0x1c625c,'type':_0x27b393,'awaitingChangeset':_0x459bb1,'mutations':_0x1bbc07,'rev':_0x542773}),this[_0x4206f5(0x321)]['has'](_0x1c625c)||this[_0x4206f5(0x30a)](_0x1c625c);}[_0x4a7abe(0x30a)](_0x49a3be){const _0x32c3e4=_0x4a7abe,_0x55e02c=this[_0x32c3e4(0x23d)]();_0x55e02c===0x0?this[_0x32c3e4(0x2ec)](_0x49a3be):this[_0x32c3e4(0x321)][_0x32c3e4(0x205)](_0x49a3be,setTimeout(()=>this[_0x32c3e4(0x2ec)](_0x49a3be),_0x55e02c));}[_0x4a7abe(0x23d)](){const _0x37a656=_0x4a7abe;var _0x5a0c6f;return(_0x5a0c6f=this[_0x37a656(0x365)][_0x37a656(0x3d6)](u[_0x37a656(0x3c6)]))!=null?_0x5a0c6f:u[_0x37a656(0x3a5)];}['_saveCache'](_0x452ae9){const _0x49429b=_0x4a7abe,_0x2f64bb=this[_0x49429b(0x321)][_0x49429b(0x1c8)](_0x452ae9);return _0x2f64bb!==void 0x0&&window[_0x49429b(0x457)](_0x2f64bb),this['_localStorageService'][_0x49429b(0x344)](u[_0x49429b(0x2a9)](_0x452ae9),this[_0x49429b(0x405)][_0x49429b(0x1c8)](_0x452ae9))[_0x49429b(0x2bf)](()=>this[_0x49429b(0x321)][_0x49429b(0x1dd)](_0x452ae9));}async[_0x4a7abe(0x39f)](){const _0x5ec868=_0x4a7abe,_0x34e51c=[];this[_0x5ec868(0x321)]['forEach']((_0x52b694,_0x3ec165)=>{const _0x2096ac=_0x5ec868;window['clearTimeout'](_0x52b694),_0x34e51c[_0x2096ac(0x272)](this[_0x2096ac(0x2ec)](_0x3ec165)[_0x2096ac(0x2bf)](()=>{const _0x2b9761=_0x2096ac;this[_0x2b9761(0x321)]['delete'](_0x3ec165);}));}),await Promise[_0x5ec868(0x2a4)](_0x34e51c);}};Te=rs([Se(0x0,a[_0x4a7abe(0x27c)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x4a7abe(0x32c)](g[_0x4a7abe(0x48b)]))],Te);class ke extends a['RxDisposable']{constructor(){const _0x390ff8=_0x4a7abe;super(),_(this,_0x390ff8(0x1ca)),this[_0x390ff8(0x1ca)]=I['fromEvent'](window,'popstate')[_0x390ff8(0x31d)](I[_0x390ff8(0x239)](this[_0x390ff8(0x288)]),I[_0x390ff8(0x232)](0x1),I[_0x390ff8(0x41a)](void 0x0));}[_0x4a7abe(0x3c7)](_0x59cbcf,_0x373abc,_0x51886a=!0x1){const _0x47a94e=_0x4a7abe,_0x119e31=new URL(window[_0x47a94e(0x1fe)][_0x47a94e(0x3dc)]);_0x119e31[_0x47a94e(0x1f0)][_0x47a94e(0x205)](_0x59cbcf,_0x373abc),_0x51886a?window[_0x47a94e(0x34e)]['replaceState']('','',_0x119e31[_0x47a94e(0x442)]()):window['history']['pushState']('','',_0x119e31['toString']());}['removeParam'](_0x299c0b,_0x29fe44=!0x1){const _0x54ffed=_0x4a7abe,_0xbde39e=new URL(window[_0x54ffed(0x1fe)][_0x54ffed(0x3dc)]);_0xbde39e['searchParams'][_0x54ffed(0x1dd)](_0x299c0b),_0x29fe44?window[_0x54ffed(0x34e)][_0x54ffed(0x1d4)]('','',_0xbde39e[_0x54ffed(0x442)]()):window[_0x54ffed(0x34e)][_0x54ffed(0x225)]('','',_0xbde39e['toString']());}['getParam'](_0x3efd35){const _0x4fc4e2=_0x4a7abe;var _0x21bb81;return(_0x21bb81=new URL(window[_0x4fc4e2(0x1fe)][_0x4fc4e2(0x3dc)])[_0x4fc4e2(0x1f0)][_0x4fc4e2(0x1c8)](_0x3efd35))!=null?_0x21bb81:void 0x0;}}var os=Object[_0x4a7abe(0x25e)],as=Object[_0x4a7abe(0x319)],cs=(_0x113e6d,_0x30bb09,_0x49eca0)=>_0x30bb09 in _0x113e6d?os(_0x113e6d,_0x30bb09,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49eca0}):_0x113e6d[_0x30bb09]=_0x49eca0,ls=(_0x40e2de,_0x3909c0,_0x6e3518,_0x1230d7)=>{const _0xf2c6d5=_0x4a7abe;for(var _0x5dcbbe=_0x1230d7>0x1?void 0x0:_0x1230d7?as(_0x3909c0,_0x6e3518):_0x3909c0,_0x21a699=_0x40e2de[_0xf2c6d5(0x3e3)]-0x1,_0x14f0e9;_0x21a699>=0x0;_0x21a699--)(_0x14f0e9=_0x40e2de[_0x21a699])&&(_0x5dcbbe=_0x14f0e9(_0x5dcbbe)||_0x5dcbbe);return _0x5dcbbe;},de=(_0x2b1652,_0x527f8d)=>(_0x24361c,_0x4ffcf8)=>_0x527f8d(_0x24361c,_0x4ffcf8,_0x2b1652),_s=(_0x3023be,_0x44814a,_0x3bac4c)=>cs(_0x3023be,_0x44814a+'',_0x3bac4c);const hs=_0x4a7abe(0x323);exports[_0x4a7abe(0x342)]=class extends a[_0x4a7abe(0x492)]{constructor(_0x2f0a99=Me,_0x301133,_0x2b7adc,_0x27ab71){const _0x2f4ef2=_0x4a7abe;super(),this[_0x2f4ef2(0x264)]=_0x2f0a99,this[_0x2f4ef2(0x1fd)]=_0x301133,this[_0x2f4ef2(0x449)]=_0x2b7adc,this['_configService']=_0x27ab71;const {..._0x50bcc2}=a[_0x2f4ef2(0x2cd)]({},Me,this[_0x2f4ef2(0x264)]);this[_0x2f4ef2(0x365)]['setConfig'](Yt,_0x50bcc2);}[_0x4a7abe(0x2ca)](){const _0x1aa3b6=_0x4a7abe;this[_0x1aa3b6(0x2fe)](),this[_0x1aa3b6(0x424)]();}[_0x4a7abe(0x1ba)](){const _0x3814c2=_0x4a7abe;this[_0x3814c2(0x24f)]();}[_0x4a7abe(0x2fe)](){const _0x32a807=_0x4a7abe;var _0x18ec63;const _0x123e80=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x32a807(0x335)],{'useClass':x[_0x32a807(0x37e)]}],[u[_0x32a807(0x31f)],{'useClass':Te}],[exports[_0x32a807(0x446)]],[ie],[Z],[F],[me],[exports['CollaborationDataLoaderController']]];this[_0x32a807(0x264)]['enableFrontendLog']&&_0x123e80[_0x32a807(0x272)]([Q]),a[_0x32a807(0x3af)](this[_0x32a807(0x449)],a[_0x32a807(0x3e0)](_0x123e80,(_0x18ec63=this['_config'])==null?void 0x0:_0x18ec63[_0x32a807(0x46d)]));}[_0x4a7abe(0x24f)](){const _0x4a0ee1=_0x4a7abe;this[_0x4a0ee1(0x360)](this['_renderManagerService'][_0x4a0ee1(0x280)](a[_0x4a0ee1(0x483)][_0x4a0ee1(0x3a3)],[Ee])),this[_0x4a0ee1(0x360)](this[_0x4a0ee1(0x1fd)][_0x4a0ee1(0x280)](a[_0x4a0ee1(0x483)][_0x4a0ee1(0x324)],[Ce]));}[_0x4a7abe(0x424)](){const _0x316e7f=_0x4a7abe;a[_0x316e7f(0x378)](this[_0x316e7f(0x449)],[[F],[exports[_0x316e7f(0x446)]],[ie],[Z],[exports['CollaborationDataLoaderController']],[ne]]),this[_0x316e7f(0x264)]['enableFrontendLog']&&a[_0x316e7f(0x378)](this[_0x316e7f(0x449)],[[Q]]);}},_s(exports['UniverCollaborationClientUIPlugin'],_0x4a7abe(0x2b9),hs),exports[_0x4a7abe(0x342)]=ls([a[_0x4a7abe(0x27a)](u[_0x4a7abe(0x1c1)]),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),de(0x3,a['IConfigService'])],exports[_0x4a7abe(0x342)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x210771,_0x22e963,_0x42662f,_0x1a0166)=>{for(var _0x2604c2=_0x1a0166>0x1?void 0x0:_0x1a0166?us(_0x22e963,_0x42662f):_0x22e963,_0x4ddb33=_0x210771['length']-0x1,_0x2fcca7;_0x4ddb33>=0x0;_0x4ddb33--)(_0x2fcca7=_0x210771[_0x4ddb33])&&(_0x2604c2=_0x2fcca7(_0x2604c2)||_0x2604c2);return _0x2604c2;},W=(_0x2cd09e,_0x49f322)=>(_0x1597e4,_0x5aa550)=>_0x49f322(_0x1597e4,_0x5aa550,_0x2cd09e);exports['BrowserCollaborationSocketService']=class extends u[_0x4a7abe(0x281)]{constructor(_0x20fe02,_0x5188ae,_0x2a63a5,_0x21e607,_0x318d2a){super(_0x20fe02,_0x5188ae,_0x2a63a5,_0x21e607,_0x318d2a);}async[_0x4a7abe(0x41e)](_0x81658f){const _0x5c717d=_0x4a7abe,_0x584b3e=await this[_0x5c717d(0x2ba)](),_0x3ee088=this[_0x5c717d(0x29d)](_0x81658f,_0x584b3e);return this['_doCreateSocket'](_0x3ee088);}[_0x4a7abe(0x29d)](_0x2213f6,_0x16b0bc){const _0x280ea2=_0x4a7abe,_0x30d8a1=typeof window>'u'?new URL(_0x2213f6):new URL(_0x2213f6,window[_0x280ea2(0x1fe)][_0x280ea2(0x308)]);_0x30d8a1['searchParams'][_0x280ea2(0x205)](_0x280ea2(0x3b1),_0x16b0bc);const _0x5f728b=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x280ea2(0x1fe)]['search']);return _0x5f728b[_0x280ea2(0x1c8)](_0x280ea2(0x25f))&&_0x30d8a1[_0x280ea2(0x1f0)][_0x280ea2(0x205)]('runId',_0x5f728b[_0x280ea2(0x1c8)](_0x280ea2(0x25f))),_0x30d8a1[_0x280ea2(0x442)]();}async['_getSessionTicket'](){const _0x369b0f=_0x4a7abe;var _0x57ef8d,_0x13ea26,_0x4c6fdc;const _0x1c42e6=this[_0x369b0f(0x365)][_0x369b0f(0x3d6)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x1e1927=(_0x57ef8d=_0x1c42e6==null?void 0x0:_0x1c42e6[_0x369b0f(0x3e2)])!=null?_0x57ef8d:u[_0x369b0f(0x43c)];return(_0x4c6fdc=(_0x13ea26=(await this[_0x369b0f(0x3c0)]['get'](_0x1e1927,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x13ea26[_0x369b0f(0x41d)])!=null?_0x4c6fdc:'';}},exports[_0x4a7abe(0x274)]=Is([W(0x0,a[_0x4a7abe(0x32c)](a[_0x4a7abe(0x22c)])),W(0x1,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),W(0x2,a[_0x4a7abe(0x27c)]),W(0x3,a[_0x4a7abe(0x1dc)]),W(0x4,g[_0x4a7abe(0x2c6)])],exports[_0x4a7abe(0x274)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x1d56cc,_0x182b5d,_0x241e24,_0x5ac2c0)=>{const _0x9f4d18=_0x4a7abe;for(var _0x4d5011=_0x5ac2c0>0x1?void 0x0:_0x5ac2c0?Ss(_0x182b5d,_0x241e24):_0x182b5d,_0x1e8f89=_0x1d56cc[_0x9f4d18(0x3e3)]-0x1,_0x301419;_0x1e8f89>=0x0;_0x1e8f89--)(_0x301419=_0x1d56cc[_0x1e8f89])&&(_0x4d5011=_0x301419(_0x4d5011)||_0x4d5011);return _0x4d5011;},fe=(_0x38de57,_0x49ee45)=>(_0x4a22cf,_0xbf337c)=>_0x49ee45(_0x4a22cf,_0xbf337c,_0x38de57);exports['RemoteUniscriptService']=class extends a[_0x4a7abe(0x2de)]{constructor(_0x1a2a84,_0x3ec3b9,_0x1a12fc){const _0x5219d7=_0x4a7abe;super(),this[_0x5219d7(0x40b)]=_0x1a2a84,this[_0x5219d7(0x3c0)]=_0x3ec3b9,this[_0x5219d7(0x365)]=_0x1a12fc;}async[_0x4a7abe(0x326)](_0x6e5623,_0x1325b9,_0x55c94c,..._0x1b50e3){const _0x4a8df5=_0x4a7abe;var _0x30bd09,_0x329df3,_0x47c0aa,_0x29f25e;const _0x1aec45=this[_0x4a8df5(0x40b)][_0x4a8df5(0x460)]();if(!_0x1aec45)throw new Error(_0x4a8df5(0x223));const _0x2123f6=((_0x30bd09=this['_configService'][_0x4a8df5(0x3d6)](u[_0x4a8df5(0x2b2)]))!=null?_0x30bd09:u[_0x4a8df5(0x249)])+'/'+_0x6e5623+_0x4a8df5(0x3cc)+_0x1325b9,_0x50bef8=new URL(window['location'][_0x4a8df5(0x3dc)]),_0x3df2dd={'scriptId':_0x6e5623,'runId':(_0x329df3=_0x50bef8[_0x4a8df5(0x1f0)][_0x4a8df5(0x1c8)]('runId'))!=null?_0x329df3:'','function':_0x1325b9,'unitId':_0x1aec45['getUnitId'](),'argsOfFunction':JSON[_0x4a8df5(0x1df)](_0x1b50e3),'invokeId':(_0x47c0aa=_0x55c94c[_0x4a8df5(0x1be)])!=null?_0x47c0aa:'','executionId':(_0x29f25e=_0x55c94c['executionId'])!=null?_0x29f25e:''};try{const _0x4a7477=await this[_0x4a8df5(0x3c0)][_0x4a8df5(0x1c4)](_0x2123f6,{'body':_0x3df2dd});return _0x4a7477[_0x4a8df5(0x3d1)]['error']&&_0x4a7477[_0x4a8df5(0x3d1)][_0x4a8df5(0x291)][_0x4a8df5(0x409)]!==G['OK']?_0x4a8df5(0x384):_0x4a7477[_0x4a8df5(0x3d1)][_0x4a8df5(0x1c5)];}catch{return'Failed';}}},exports[_0x4a7abe(0x219)]=ds([fe(0x0,a[_0x4a7abe(0x1e6)]),fe(0x1,a[_0x4a7abe(0x32c)](x[_0x4a7abe(0x3a7)])),fe(0x2,a[_0x4a7abe(0x27c)])],exports['RemoteUniscriptService']);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a[_0x4a7abe(0x2de)]{constructor(){const _0xa95208=_0x4a7abe;super(),_(this,'_id',a[_0xa95208(0x32f)]()),_(this,'_selfUnitIDs',new Set()),_(this,'_unitOnClients',new Map()),_(this,_0xa95208(0x336),null),_(this,'_clearOtherTimers',new Map()),_(this,_0xa95208(0x294),new Map()),this[_0xa95208(0x3a9)]();}[_0x4a7abe(0x234)](){const _0xbc590c=_0x4a7abe;super['dispose'](),this[_0xbc590c(0x33b)]['forEach']((_0x4e1ae6,_0x388b8c)=>this['_removeClearOtherTimer'](_0x388b8c)),this['_heartbeatTimer']&&window[_0xbc590c(0x3f1)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x6a6b5a){const _0x236b77=_0x4a7abe;return this[_0x236b77(0x430)](_0x6a6b5a)['pipe'](I[_0x236b77(0x1e3)]());}[_0x4a7abe(0x3cd)](_0x3f6ec2){const _0x293dea=_0x4a7abe;this['_selfUnitIDs'][_0x293dea(0x299)]===0x0&&this[_0x293dea(0x41f)](),this[_0x293dea(0x482)][_0x293dea(0x3ab)](_0x3f6ec2),this[_0x293dea(0x30f)]({'type':0x0,'memberID':this[_0x293dea(0x33f)],'unitIDs':[_0x3f6ec2],'isForwarded':!0x1});}['disposeUnit'](_0x36abb0){const _0x349801=_0x4a7abe;this[_0x349801(0x482)][_0x349801(0x1dd)](_0x36abb0),this[_0x349801(0x482)][_0x349801(0x299)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4a7abe(0x3a9)](){const _0x3af302=_0x4a7abe;this[_0x3af302(0x360)](a[_0x3af302(0x1e5)](I[_0x3af302(0x3f8)](window,_0x3af302(0x2f3))[_0x3af302(0x1f1)](_0x57a0c4=>{const _0x5d2a70=_0x3af302;if(_0x57a0c4[_0x5d2a70(0x1d3)]!==ye||!_0x57a0c4['newValue'])return;const _0x495158=JSON['parse'](_0x57a0c4[_0x5d2a70(0x202)]);this[_0x5d2a70(0x46b)](_0x495158);}))),window[_0x3af302(0x1c0)]('unload',()=>this[_0x3af302(0x30f)]({'type':0x1,'memberID':this[_0x3af302(0x33f)],'unitIDs':Array[_0x3af302(0x42d)](this[_0x3af302(0x482)])}));}[_0x4a7abe(0x46b)](_0x58fe5f){const _0x5b909f=_0x4a7abe;switch(_0x58fe5f['type']){case 0x0:this['_handleJoinEvent'](_0x58fe5f);break;case 0x1:this['_handleLeaveEvent'](_0x58fe5f);break;case 0x2:this[_0x5b909f(0x2e3)](_0x58fe5f);break;}}[_0x4a7abe(0x433)](_0x345208){const _0xd284ba=_0x4a7abe,{unitIDs:_0x42eacf,memberID:_0x2b98c4,isForwarded:_0x46d163}=_0x345208;_0x42eacf[_0xd284ba(0x2aa)](_0x5e5084=>{const _0x418a59=_0xd284ba;if(!_0x46d163&&this[_0x418a59(0x2cf)][_0x418a59(0x439)](_0x5e5084)&&this['_ensureSubject'](_0x5e5084)['next'](u[_0x418a59(0x3d9)][_0x418a59(0x450)]),!this[_0x418a59(0x2cf)][_0x418a59(0x439)](_0x5e5084)||!this[_0x418a59(0x2cf)][_0x418a59(0x1c8)](_0x5e5084)['has'](_0x2b98c4)){const _0x24377e=this[_0x418a59(0x2cf)][_0x418a59(0x1c8)](_0x5e5084)||new Set();_0x24377e[_0x418a59(0x3ab)](_0x2b98c4),this['_unitOnClients'][_0x418a59(0x205)](_0x5e5084,_0x24377e),this[_0x418a59(0x303)](_0x2b98c4);}}),_0x46d163||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0xd284ba(0x482)]],'isForwarded':!0x0});}[_0x4a7abe(0x303)](_0x2967f2){const _0x2dbb5b=_0x4a7abe;this[_0x2dbb5b(0x1fb)](_0x2967f2);const _0x814271=window[_0x2dbb5b(0x417)](()=>{const _0x5980c7=_0x2dbb5b;this[_0x5980c7(0x2cf)]['forEach'](_0x40eb64=>{_0x40eb64['delete'](_0x2967f2);});},we*0x2);this[_0x2dbb5b(0x33b)]['set'](_0x2967f2,_0x814271);}[_0x4a7abe(0x1fb)](_0x2f9db6){const _0x301265=_0x4a7abe;if(this[_0x301265(0x33b)][_0x301265(0x439)](_0x2f9db6)){const _0x5f55b1=this[_0x301265(0x33b)]['get'](_0x2f9db6);_0x5f55b1&&window[_0x301265(0x457)](_0x5f55b1),this[_0x301265(0x33b)][_0x301265(0x205)](_0x2f9db6,null);}}[_0x4a7abe(0x29e)](_0x3a0477){const _0x21d18f=_0x4a7abe,{memberID:_0x380e2a,unitIDs:_0x31db19}=_0x3a0477;_0x31db19[_0x21d18f(0x2aa)](_0x55a4a0=>{const _0x34e1f6=_0x21d18f;var _0x376424;const _0x399974=this[_0x34e1f6(0x2cf)]['get'](_0x55a4a0);_0x399974&&(_0x399974[_0x34e1f6(0x1dd)](_0x380e2a),(_0x376424=this[_0x34e1f6(0x430)](_0x55a4a0))==null||_0x376424['next'](_0x399974[_0x34e1f6(0x299)]===0x0?u[_0x34e1f6(0x3d9)][_0x34e1f6(0x473)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x21d18f(0x1fb)](_0x380e2a);}['_handleHeartbeatEvent'](_0x24563b){const _0x236b66=_0x4a7abe;this[_0x236b66(0x303)](_0x24563b[_0x236b66(0x24d)]);}[_0x4a7abe(0x30f)](_0x49dd52){const _0x1639eb=_0x4a7abe;localStorage[_0x1639eb(0x344)](ye,JSON['stringify'](_0x49dd52));}['_scheduleHeartbeat'](){const _0x49acc1=_0x4a7abe;this['_heartbeatTimer']=window[_0x49acc1(0x2eb)](()=>{const _0x26c37e=_0x49acc1;this[_0x26c37e(0x30f)]({'type':0x2,'memberID':this[_0x26c37e(0x33f)]});},we);}[_0x4a7abe(0x430)](_0x183253){const _0x471e2a=_0x4a7abe;return this['_unitStatus'][_0x471e2a(0x439)](_0x183253)||this[_0x471e2a(0x294)][_0x471e2a(0x205)](_0x183253,new I[(_0x471e2a(0x242))](u['UnitStatus'][_0x471e2a(0x473)])),this[_0x471e2a(0x294)][_0x471e2a(0x1c8)](_0x183253);}}exports[_0x4a7abe(0x2ef)]=Oe,exports[_0x4a7abe(0x45e)]=je,exports[_0x4a7abe(0x352)]=fs,exports[_0x4a7abe(0x2d2)]=ke;
|
|
1
|
+
'use strict';const _0x5f0329=_0x38d6;(function(_0x5b5b1f,_0x2abe35){const _0x281a83=_0x38d6,_0x47d377=_0x5b5b1f();while(!![]){try{const _0x5a1bab=-parseInt(_0x281a83(0x2bc))/0x1+parseInt(_0x281a83(0x302))/0x2*(parseInt(_0x281a83(0x3a4))/0x3)+-parseInt(_0x281a83(0x3eb))/0x4+-parseInt(_0x281a83(0x271))/0x5*(-parseInt(_0x281a83(0x227))/0x6)+-parseInt(_0x281a83(0x170))/0x7+parseInt(_0x281a83(0x158))/0x8*(parseInt(_0x281a83(0x1f9))/0x9)+parseInt(_0x281a83(0x147))/0xa;if(_0x5a1bab===_0x2abe35)break;else _0x47d377['push'](_0x47d377['shift']());}catch(_0xa50518){_0x47d377['push'](_0x47d377['shift']());}}}(_0x5d04,0xca3a7));var Xe=Object['defineProperty'],Ke=(_0x4de849,_0x59b21d,_0x5a0c96)=>_0x59b21d in _0x4de849?Xe(_0x4de849,_0x59b21d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a0c96}):_0x4de849[_0x59b21d]=_0x5a0c96,_=(_0x4b9b87,_0x54ee9d,_0x2052d7)=>Ke(_0x4b9b87,typeof _0x54ee9d!=_0x5f0329(0x280)?_0x54ee9d+'':_0x54ee9d,_0x2052d7);Object[_0x5f0329(0x39c)](exports,Symbol[_0x5f0329(0x3c2)],{'value':_0x5f0329(0x219)});const M=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),I=require('rxjs'),p=require('@univerjs/design'),A=require('react'),qe=require('@univerjs/rpc'),v=require('@univerjs/sheets'),C=require('@univerjs/engine-render'),x=require('@univerjs/network'),T=require('@univerjs/docs-ui'),ze=require('@univerjs/drawing'),g=require('@univerjs-pro/collaboration'),V=require('@univerjs/docs'),B=require('@univerjs/engine-formula'),$=require('rxjs/operators'),J=require('@univerjs/sheets-ui');function pe({ref:_0x3ee8e4,..._0x329c5a}){const _0x4c4c04=_0x5f0329,{icon:_0x56048f,id:_0x237ee8,className:_0x5f1cad,extend:_0xfb13b3,..._0x99193c}=_0x329c5a,_0x69f28e=(_0x4c4c04(0x166)+_0x237ee8+'\x20'+(_0x5f1cad||''))[_0x4c4c04(0x36e)](),_0x1da78f=A[_0x4c4c04(0x2ac)]('_'+Qe());return $e(_0x56048f,''+_0x237ee8,{'defIds':_0x56048f[_0x4c4c04(0x274)],'idSuffix':_0x1da78f[_0x4c4c04(0x3bc)]},{'ref':_0x3ee8e4,'className':_0x69f28e,..._0x99193c},_0xfb13b3);}function $e(_0x309d03,_0xf0e11b,_0x134c48,_0x249a5e,_0x40cf95){const _0x221eed=_0x5f0329;return A[_0x221eed(0x2c9)](_0x309d03[_0x221eed(0x389)],{'key':_0xf0e11b,...Je(_0x309d03,_0x134c48,_0x40cf95),..._0x249a5e},(Ze(_0x309d03,_0x134c48)['children']||[])[_0x221eed(0x30d)]((_0x4c8a88,_0x29df3d)=>$e(_0x4c8a88,_0xf0e11b+'-'+_0x309d03['tag']+'-'+_0x29df3d,_0x134c48,void 0x0,_0x40cf95)));}function Je(_0x5dcc64,_0x389ca7,_0x9f6ba2){const _0xc9ed24=_0x5f0329,_0x456580={..._0x5dcc64[_0xc9ed24(0x29b)]};_0x9f6ba2!=null&&_0x9f6ba2['colorChannel1']&&_0x456580[_0xc9ed24(0x40b)]===_0xc9ed24(0x167)&&(_0x456580['fill']=_0x9f6ba2[_0xc9ed24(0x167)]),_0x5dcc64[_0xc9ed24(0x389)]===_0xc9ed24(0x18c)&&_0x456580['id']&&(_0x456580['id']=_0x456580['id']+_0x389ca7[_0xc9ed24(0x228)]),Object['entries'](_0x456580)['forEach'](([_0x41ca17,_0x1b69a2])=>{const _0xeaa80=_0xc9ed24;_0x41ca17==='mask'&&typeof _0x1b69a2==_0xeaa80(0x277)&&(_0x456580[_0x41ca17]=_0x1b69a2[_0xeaa80(0x1e6)](/url\(#(.*)\)/,_0xeaa80(0x18f)+_0x389ca7[_0xeaa80(0x228)]+')'));});const {defIds:_0x37485d}=_0x389ca7;return!_0x37485d||_0x37485d['length']===0x0||(_0x5dcc64[_0xc9ed24(0x389)]===_0xc9ed24(0x208)&&_0x456580[_0xc9ed24(0x1f6)]&&(_0x456580[_0xc9ed24(0x1f6)]=_0x456580['xlink:href']+_0x389ca7['idSuffix']),Object['entries'](_0x456580)[_0xc9ed24(0x205)](([_0x1964eb,_0x188f0b])=>{const _0x2abd8c=_0xc9ed24;typeof _0x188f0b==_0x2abd8c(0x277)&&(_0x456580[_0x1964eb]=_0x188f0b[_0x2abd8c(0x1e6)](/url\(#(.*)\)/,_0x2abd8c(0x18f)+_0x389ca7['idSuffix']+')'));})),_0x456580;}function Ze(_0x240d61,_0x51d2b6){const _0x354361=_0x5f0329;var _0x503407;const {defIds:_0x3a5c59}=_0x51d2b6;return!_0x3a5c59||_0x3a5c59['length']===0x0?_0x240d61:_0x240d61[_0x354361(0x389)]==='defs'&&((_0x503407=_0x240d61[_0x354361(0x189)])!=null&&_0x503407[_0x354361(0x23b)])?{..._0x240d61,'children':_0x240d61[_0x354361(0x189)][_0x354361(0x30d)](_0x287028=>typeof _0x287028[_0x354361(0x29b)]['id']=='string'&&_0x3a5c59&&_0x3a5c59[_0x354361(0x1ac)](_0x287028[_0x354361(0x29b)]['id'])?{..._0x287028,'attrs':{..._0x287028[_0x354361(0x29b)],'id':_0x287028[_0x354361(0x29b)]['id']+_0x51d2b6[_0x354361(0x228)]}}:_0x287028)}:_0x240d61;}function Qe(){const _0x165c2d=_0x5f0329;return Math[_0x165c2d(0x1f8)]()[_0x165c2d(0x3a8)](0x24)[_0x165c2d(0x25d)](0x2,0x8);}pe[_0x5f0329(0x324)]=_0x5f0329(0x28b);const et={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5f0329(0x231),'viewBox':_0x5f0329(0x3a0),'width':'1em','height':_0x5f0329(0x192)},'children':[{'tag':'g','attrs':{'clipPath':_0x5f0329(0x3b3)},'children':[{'tag':_0x5f0329(0x341),'attrs':{'stroke':_0x5f0329(0x377),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x5f0329(0x413),'strokeLinejoin':_0x5f0329(0x413),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5f0329(0x216),'attrs':{'id':_0x5f0329(0x3fb)},'children':[{'tag':_0x5f0329(0x341),'attrs':{'fill':_0x5f0329(0x38d),'d':_0x5f0329(0x1c8)}}]}]}],'defIds':[_0x5f0329(0x3fb)]},xe=A[_0x5f0329(0x310)](function(_0x17fb59,_0x4f3009){const _0x2e8845=_0x5f0329;return A[_0x2e8845(0x2c9)](pe,Object['assign']({},_0x17fb59,{'id':_0x2e8845(0x326),'ref':_0x4f3009,'icon':et}));});xe[_0x5f0329(0x324)]=_0x5f0329(0x30a);const tt={'tag':_0x5f0329(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x5f0329(0x192),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x5f0329(0x341),'attrs':{'stroke':_0x5f0329(0x377),'d':_0x5f0329(0x30b),'strokeLinecap':_0x5f0329(0x413),'strokeLinejoin':_0x5f0329(0x413),'strokeWidth':1.2}}]},{'tag':_0x5f0329(0x32a),'attrs':{},'children':[{'tag':_0x5f0329(0x216),'attrs':{'id':_0x5f0329(0x288)},'children':[{'tag':_0x5f0329(0x341),'attrs':{'fill':_0x5f0329(0x38d),'d':_0x5f0329(0x1c8),'transform':'translate(.97)'}}]}]}],'defIds':[_0x5f0329(0x288)]},Be=A[_0x5f0329(0x310)](function(_0x3121a3,_0xbe1f5d){const _0x2248e9=_0x5f0329;return A[_0x2248e9(0x2c9)](pe,Object[_0x2248e9(0x19b)]({},_0x3121a3,{'id':'on-line-icon','ref':_0xbe1f5d,'icon':tt}));});Be[_0x5f0329(0x324)]='OnLineIcon';function st(_0x14b783){const _0x186e9e=_0x5f0329;switch(_0x14b783){case u[_0x186e9e(0x39d)][_0x186e9e(0x3c4)]:return _0x186e9e(0x308);case u['CollaborationStatus'][_0x186e9e(0x3ea)]:return _0x186e9e(0x27b);case u[_0x186e9e(0x39d)]['FETCH_MISS']:return _0x186e9e(0x409);case u[_0x186e9e(0x39d)][_0x186e9e(0x353)]:return _0x186e9e(0x1d8);case u['CollaborationStatus']['AWAITING']:case u[_0x186e9e(0x39d)][_0x186e9e(0x3c0)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0x186e9e(0x175)]:case u['CollaborationStatus'][_0x186e9e(0x2d8)]:return _0x186e9e(0x3b2);}}function it(_0x41e69e){const _0x305e84=_0x5f0329,{status$:_0x226f82}=_0x41e69e,_0xd2a258=O['useObservable'](_0x226f82,u[_0x305e84(0x39d)][_0x305e84(0x353)]),_0x4f5a80=O['useDependency'](a['LocaleService']),_0x3f562b=O['useDependency'](u[_0x305e84(0x3a9)]),_0x328521=_0xd2a258!==u[_0x305e84(0x39d)][_0x305e84(0x3c4)],_0x425246=_0x4f5a80['t'](st(_0xd2a258)),_0x542c97=_0x328521?M['jsx'](Be,{}):M['jsx'](xe,{}),_0x3d1f47=A[_0x305e84(0x1c5)](()=>{_0x328521||_0x3f562b['reconnect']();},[_0x328521,_0x3f562b]);function _0x37104a(){const _0x408688=_0x305e84;return M['jsxs'](_0x408688(0x1ff),{'className':_0x408688(0x25a),'onClick':_0x3d1f47,'children':[M[_0x408688(0x154)](_0x408688(0x1ff),{'className':p['clsx'](_0x408688(0x29e),{'univer-text-green-500':_0x328521,'univer-text-red-500':!_0x328521}),'children':_0x542c97}),M['jsx'](_0x408688(0x1ff),{'className':_0x408688(0x392),'children':_0x425246})]});}return _0x328521?_0x37104a():M[_0x305e84(0x154)](p[_0x305e84(0x412)],{'title':_0x4f5a80['t'](_0x305e84(0x211)),'children':_0x37104a()});}var nt=Object[_0x5f0329(0x2e9)],rt=(_0x142fb1,_0x41f6b0,_0x2f352f,_0x2750eb)=>{const _0xedad37=_0x5f0329;for(var _0x513d7c=_0x2750eb>0x1?void 0x0:_0x2750eb?nt(_0x41f6b0,_0x2f352f):_0x41f6b0,_0x490b48=_0x142fb1[_0xedad37(0x23b)]-0x1,_0x5ae74b;_0x490b48>=0x0;_0x490b48--)(_0x5ae74b=_0x142fb1[_0x490b48])&&(_0x513d7c=_0x5ae74b(_0x513d7c)||_0x513d7c);return _0x513d7c;},K=(_0x2fb9cb,_0x540edd)=>(_0x3cdad2,_0x4083e7)=>_0x540edd(_0x3cdad2,_0x4083e7,_0x2fb9cb);exports[_0x5f0329(0x236)]=class extends a[_0x5f0329(0x248)]{constructor(_0x38aa14,_0x323232,_0x2cfa29,_0x90b3b4){const _0x4af6d6=_0x5f0329;super(),_(this,_0x4af6d6(0x27e),new I[(_0x4af6d6(0x406))](u[_0x4af6d6(0x39d)][_0x4af6d6(0x353)])),(this[_0x4af6d6(0x2c8)]=_0x38aa14,this[_0x4af6d6(0x180)]=_0x323232,this[_0x4af6d6(0x1f5)]=_0x2cfa29,this['_uiPartsService']=_0x90b3b4,this['_initStatusComponent'](),this[_0x4af6d6(0x199)]());}[_0x5f0329(0x199)](){const _0x15f19d=_0x5f0329;this[_0x15f19d(0x385)](this[_0x15f19d(0x2c8)][_0x15f19d(0x327)][_0x15f19d(0x217)](I[_0x15f19d(0x188)](()=>{const _0x29e549=_0x15f19d,_0x51bfef=this[_0x29e549(0x2c8)][_0x29e549(0x242)]();return _0x51bfef?this[_0x29e549(0x1f5)][_0x29e549(0x1a2)](_0x51bfef[_0x29e549(0x1cf)]()):I['of'](null);}),I[_0x15f19d(0x188)](_0x305b06=>_0x305b06?_0x305b06[_0x15f19d(0x371)]:I['of'](u[_0x15f19d(0x39d)][_0x15f19d(0x353)])))['subscribe'](_0x4ab362=>{const _0x147449=_0x15f19d;this[_0x147449(0x27e)]['next'](_0x4ab362);}));}[_0x5f0329(0x150)](){const _0x4f3fba=_0x5f0329;this[_0x4f3fba(0x385)](this[_0x4f3fba(0x35e)][_0x4f3fba(0x1cd)](O['BuiltInUIPart'][_0x4f3fba(0x3c5)],()=>O[_0x4f3fba(0x2de)](ot({'status$':this[_0x4f3fba(0x27e)]['asObservable']()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x5f0329(0x2c0)]),K(0x1,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),K(0x2,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x196)])),K(0x3,O[_0x5f0329(0x2ea)])],exports[_0x5f0329(0x236)]);function ot(_0x424b34){const {status$:_0x360995}=_0x424b34;return function(){const _0x5f5718=_0x38d6;return M[_0x5f5718(0x154)](it,{'status$':_0x360995});};}const Oe=a[_0x5f0329(0x244)](_0x5f0329(0x185));var at=Object[_0x5f0329(0x2e9)],ct=(_0xf0d952,_0x89ee2,_0x18623b,_0x13781b)=>{const _0x40d6c7=_0x5f0329;for(var _0x37d5f4=_0x13781b>0x1?void 0x0:_0x13781b?at(_0x89ee2,_0x18623b):_0x89ee2,_0x48d12c=_0xf0d952[_0x40d6c7(0x23b)]-0x1,_0x277a66;_0x48d12c>=0x0;_0x48d12c--)(_0x277a66=_0xf0d952[_0x48d12c])&&(_0x37d5f4=_0x277a66(_0x37d5f4)||_0x37d5f4);return _0x37d5f4;},Y=(_0x1200e4,_0x5ab0c2)=>(_0x41de93,_0x537941)=>_0x5ab0c2(_0x41de93,_0x537941,_0x1200e4);exports[_0x5f0329(0x34b)]=class extends a[_0x5f0329(0x3f4)]{constructor(_0x2cc23a,_0x457ef2,_0x7d457a,_0x1ef260,_0x263ef1){const _0x12648d=_0x5f0329;super(),this[_0x12648d(0x1f7)]=_0x2cc23a,this[_0x12648d(0x181)]=_0x457ef2,this[_0x12648d(0x3b8)]=_0x7d457a,this[_0x12648d(0x2fb)]=_0x1ef260,_0x263ef1?_0x263ef1==null||_0x263ef1['whenReady']()[_0x12648d(0x29f)](()=>this[_0x12648d(0x1a0)]()):(this['_logService'][_0x12648d(0x1da)](_0x12648d(0x36d),_0x12648d(0x17c)),this['_init']());}async[_0x5f0329(0x1a0)](){const _0x2803f9=_0x5f0329,_0x46c240=this[_0x2803f9(0x1f7)]['getParam'](_0x2803f9(0x321)),_0x161330=this[_0x2803f9(0x1f7)][_0x2803f9(0x1e7)]('type'),_0xb9b4bd=this[_0x2803f9(0x1f7)][_0x2803f9(0x1e7)](_0x2803f9(0x2dc));if(!_0x46c240||!_0x161330){this['_logService'][_0x2803f9(0x1da)](_0x2803f9(0x36d),_0x2803f9(0x2a6));return;}const _0x436fbc=await this['_dataLoaderService'][_0x2803f9(0x33d)](_0x46c240,Number(_0x161330),_0xb9b4bd);_0x436fbc&&_0x436fbc instanceof a['Workbook']&&this[_0x2803f9(0x266)](_0x436fbc);}async['_setupSubUnitSync'](_0x50b0c1){const _0xe5b5ee=_0x5f0329;await this[_0xe5b5ee(0x318)](_0x50b0c1),_0x50b0c1['activeSheet$'][_0xe5b5ee(0x217)](I[_0xe5b5ee(0x28e)](this[_0xe5b5ee(0x3f8)]))[_0xe5b5ee(0x2c2)](_0x320e4b=>{const _0x457cc6=_0xe5b5ee;_0x320e4b&&this[_0x457cc6(0x293)](_0x320e4b);}),this[_0xe5b5ee(0x1f7)][_0xe5b5ee(0x345)][_0xe5b5ee(0x217)](I[_0xe5b5ee(0x28e)](this[_0xe5b5ee(0x3f8)]))[_0xe5b5ee(0x2c2)](()=>this['_updateSubUnitFromURLParams'](_0x50b0c1));}[_0x5f0329(0x293)](_0x1429f6,_0x42bd5a=!0x1){const _0x57e221=_0x5f0329,_0x121e03=this[_0x57e221(0x1f7)][_0x57e221(0x1e7)]('subunit');_0x1429f6[_0x57e221(0x264)]()!==_0x121e03&&this['_urlService'][_0x57e221(0x2b0)](_0x57e221(0x2dc),_0x1429f6[_0x57e221(0x264)](),_0x42bd5a);}async[_0x5f0329(0x318)](_0x194f13){const _0x286732=_0x5f0329;var _0x1675b4;const _0x336e1e=this[_0x286732(0x1f7)][_0x286732(0x1e7)](_0x286732(0x2dc));if(!_0x336e1e||!_0x194f13['getSheetBySheetId'](_0x336e1e)){const _0x24e3e2=_0x194f13['getUnhiddenWorksheets']()[0x0],_0x244eb6=_0x194f13[_0x286732(0x223)](_0x24e3e2);if(!_0x244eb6)return;this[_0x286732(0x293)](_0x244eb6,!0x0),await this['_commandService']['executeCommand'](v[_0x286732(0x1f4)]['id'],{'unitId':_0x194f13[_0x286732(0x1cf)](),'subUnitId':_0x24e3e2});return;}((_0x1675b4=_0x194f13[_0x286732(0x1c4)]())==null?void 0x0:_0x1675b4[_0x286732(0x264)]())!==_0x336e1e&&await this[_0x286732(0x3b8)][_0x286732(0x1df)](v[_0x286732(0x1f4)]['id'],{'unitId':_0x194f13[_0x286732(0x1cf)](),'subUnitId':_0x336e1e});}},exports['CollaborationDataLoaderController']=ct([Y(0x0,Oe),Y(0x1,a[_0x5f0329(0x254)]),Y(0x2,a[_0x5f0329(0x1b7)]),Y(0x3,a[_0x5f0329(0x2b6)](u['DataLoaderService'])),Y(0x4,a['Optional'](qe[_0x5f0329(0x21b)]))],exports[_0x5f0329(0x34b)]);var lt=Object[_0x5f0329(0x2e9)],_t=(_0x176c70,_0x33c310,_0xca54a,_0x84b6a8)=>{const _0x28423b=_0x5f0329;for(var _0x1de527=_0x84b6a8>0x1?void 0x0:_0x84b6a8?lt(_0x33c310,_0xca54a):_0x33c310,_0x2ef29e=_0x176c70[_0x28423b(0x23b)]-0x1,_0x7d0493;_0x2ef29e>=0x0;_0x2ef29e--)(_0x7d0493=_0x176c70[_0x2ef29e])&&(_0x1de527=_0x7d0493(_0x1de527)||_0x1de527);return _0x1de527;},De=(_0x23ca48,_0x34805f)=>(_0x4c6b99,_0x2e6439)=>_0x34805f(_0x4c6b99,_0x2e6439,_0x23ca48);let me=class extends a[_0x5f0329(0x3f4)]{constructor(_0x5207cd,_0x2a453b){const _0x4c3160=_0x5f0329;super(),this[_0x4c3160(0x1ed)]=_0x5207cd,this[_0x4c3160(0x186)]=_0x2a453b,this[_0x4c3160(0x1a0)]();}['_init'](){const _0x1c7a24=_0x5f0329,_0x38c996=this;this[_0x1c7a24(0x385)](this[_0x1c7a24(0x1ed)]['addClipboardHook']({'onBeforePasteImage':async _0x1ac72c=>{const _0x3353e9=_0x1c7a24,_0x5ddfc3=await _0x38c996['_imageIoService'][_0x3353e9(0x296)](_0x1ac72c);return _0x5ddfc3?{'source':_0x5ddfc3[_0x3353e9(0x3ab)],'imageSourceType':_0x5ddfc3[_0x3353e9(0x1db)]}:null;}}));}};me=_t([De(0x0,T[_0x5f0329(0x273)]),De(0x1,ze[_0x5f0329(0x381)])],me);const Ne=[_0x5f0329(0x252),'jiqing.500',_0x5f0329(0x339),_0x5f0329(0x3d9),_0x5f0329(0x1d4),_0x5f0329(0x38e)];class Re extends a['Disposable']{constructor(){const _0x182204=_0x5f0329;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x182204(0x30e),0x0);}['assignAColorForMemberID'](_0x74465a){const _0x4d837f=_0x5f0329;if(this[_0x4d837f(0x2f5)][_0x4d837f(0x397)](_0x74465a))return this[_0x4d837f(0x2f5)][_0x4d837f(0x222)](_0x74465a);const _0x4b3ee6=Ne[this[_0x4d837f(0x30e)]];return this[_0x4d837f(0x30e)]=(this['_colorIndex']+0x1)%Ne[_0x4d837f(0x23b)],this['_assignedColors']['set'](_0x74465a,_0x4b3ee6),_0x4b3ee6;}}function Fe(_0x560645){const _0x53a376=_0x5f0329;let _0x50c5c2='';for(const _0x3b1f5b of _0x560645){const {startOffset:_0x31a172,endOffset:_0x33b616,isActive:_0x938a04,rangeType:_0x4b3f05,segmentId:_0x1f6575,segmentPage:_0x65fd6}=_0x3b1f5b;_0x50c5c2[_0x53a376(0x23b)]&&(_0x50c5c2+=','),_0x50c5c2+=_0x31a172+':'+_0x33b616+':'+(_0x938a04?'1':'0')+':'+_0x4b3f05+':'+_0x1f6575+':'+_0x65fd6;}return _0x50c5c2;}function ht(_0x195611){const _0x294ae1=_0x5f0329,_0x45e777=_0x195611[_0x294ae1(0x395)](','),_0xc37ffc=[];for(const _0x1b4b69 of _0x45e777){const [_0x430116,_0x54a6c7,_0xf68515,_0x1d8da7,_0x8a453,_0x5d65f6]=_0x1b4b69[_0x294ae1(0x395)](':');_0xc37ffc[_0x294ae1(0x375)]({'startOffset':Number(_0x430116),'endOffset':Number(_0x54a6c7),'collapsed':_0x430116===_0x54a6c7,'isActive':_0xf68515==='1','rangeType':_0x1d8da7===a['DOC_RANGE_TYPE'][_0x294ae1(0x2fc)]?a[_0x294ae1(0x416)][_0x294ae1(0x2fc)]:a[_0x294ae1(0x416)][_0x294ae1(0x2c4)],'segmentId':typeof _0x8a453==_0x294ae1(0x277)?String(_0x8a453):'','segmentPage':Number(_0x5d65f6!=null?_0x5d65f6:-0x1)});}return _0xc37ffc['some'](_0xa37d11=>_0xa37d11[_0x294ae1(0x21a)])||(_0xc37ffc[0x0][_0x294ae1(0x21a)]=!0x0),_0xc37ffc;}class be extends a[_0x5f0329(0x3f4)]{constructor(){const _0x5ea34a=_0x5f0329;super(...arguments),_(this,_0x5ea34a(0x269),new I[(_0x5ea34a(0x406))](null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x5ea34a(0x23e)]());}[_0x5f0329(0x30f)](_0x174e98){const _0x49746d=_0x5f0329,{unitID:_0x5855bb,memberID:_0x2be97f,textRanges:_0x2bbe26}=_0x174e98,_0xe02a3e=Fe(_0x2bbe26);if(_0xe02a3e==='')return;const _0x4ce52f={'unitID':_0x5855bb,'memberID':_0x2be97f,'selection':_0xe02a3e};this[_0x49746d(0x269)]['next'](_0x4ce52f);}}var ut=Object[_0x5f0329(0x2e9)],It=(_0x1a1a2a,_0x1ac0a0,_0x5e98a1,_0x253561)=>{for(var _0x1a94b5=_0x253561>0x1?void 0x0:_0x253561?ut(_0x1ac0a0,_0x5e98a1):_0x1ac0a0,_0x508847=_0x1a1a2a['length']-0x1,_0x2f0e25;_0x508847>=0x0;_0x508847--)(_0x2f0e25=_0x1a1a2a[_0x508847])&&(_0x1a94b5=_0x2f0e25(_0x1a94b5)||_0x1a94b5);return _0x1a94b5;},U=(_0x20e6ed,_0x18a646)=>(_0x8503b0,_0x180ab5)=>_0x18a646(_0x8503b0,_0x180ab5,_0x20e6ed);const St=0x12c,dt=0x64;let ve=class extends a[_0x5f0329(0x3f4)]{constructor(_0x5ae95f,_0x583706,_0x2303cf,_0x36b7d1,_0x22e943,_0x254f32,_0xc75384,_0x10b54f,_0x5e1dce){const _0x4d0529=_0x5f0329;super(),_(this,_0x4d0529(0x1ce),!0x1),_(this,_0x4d0529(0x1a0),!0x1),_(this,_0x4d0529(0x1b3),new I[(_0x4d0529(0x406))](new Map())),_(this,_0x4d0529(0x2da),this[_0x4d0529(0x1b3)][_0x4d0529(0x23e)]()),_(this,'_roomMembers$',new I[(_0x4d0529(0x406))]([])),_(this,_0x4d0529(0x149),this['_roomMembers$']['pipe'](I[_0x4d0529(0x316)](St))),_(this,_0x4d0529(0x260),a[_0x4d0529(0x1fc)](_0x1739a4=>{const _0x2067da=_0x4d0529,_0x46737d={'eventID':g[_0x2067da(0x24f)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2067da(0x398)],'memberID':this['_session'][_0x2067da(0x3fa)](),'selection':Fe(_0x1739a4)}};this[_0x2067da(0x3c6)]['send'](_0x46737d,this['unitID']);},dt)),(this[_0x4d0529(0x398)]=_0x5ae95f,this[_0x4d0529(0x3c6)]=_0x583706,this['_injector']=_0x2303cf,this[_0x4d0529(0x2fa)]=_0x36b7d1,this[_0x4d0529(0x1a8)]=_0x22e943,this[_0x4d0529(0x26b)]=_0x254f32,this[_0x4d0529(0x261)]=_0xc75384,this[_0x4d0529(0x2c8)]=_0x10b54f,this['_commandService']=_0x5e1dce);}get[_0x5f0329(0x368)](){const _0x15b936=_0x5f0329;return this[_0x15b936(0x1b3)]['getValue']();}get[_0x5f0329(0x41b)](){const _0x3d9746=_0x5f0329;return this[_0x3d9746(0x2a5)][_0x3d9746(0x259)]();}[_0x5f0329(0x26d)](){const _0x491fad=_0x5f0329;super[_0x491fad(0x26d)](),this['_cursorInfo$'][_0x491fad(0x24a)](new Map()),this[_0x491fad(0x1b3)][_0x491fad(0x2f6)](),this[_0x491fad(0x2a5)][_0x491fad(0x24a)]([]),this[_0x491fad(0x2a5)]['complete']();}[_0x5f0329(0x237)](){const _0x5b29aa=_0x5f0329;this['_init']||(this[_0x5b29aa(0x1a0)]=!0x0,this['_session']['sessionStatus$']['pipe'](I['takeUntil'](this[_0x5b29aa(0x3f8)]))['subscribe'](_0x4ec61f=>{const _0x35ed0a=_0x5b29aa;_0x4ec61f===u['SessionStatus'][_0x35ed0a(0x148)]?this[_0x35ed0a(0x18e)]():this[_0x35ed0a(0x160)]();}),this[_0x5b29aa(0x3c6)]['event$'][_0x5b29aa(0x217)](I['takeUntil'](this[_0x5b29aa(0x3f8)]))[_0x5b29aa(0x2c2)](_0x43ea09=>{const _0x4d68d4=_0x5b29aa,_0x1d54ea=_0x43ea09['eventID'];_0x1d54ea===g[_0x4d68d4(0x24f)][_0x4d68d4(0x187)]&&this[_0x4d68d4(0x3f2)](_0x43ea09),_0x1d54ea===g['CollaborationEvent'][_0x4d68d4(0x347)]&&this['_onCursorDelete'](_0x43ea09);}),this[_0x5b29aa(0x385)](this[_0x5b29aa(0x3b8)][_0x5b29aa(0x171)](_0x39c192=>{const _0x14124d=_0x5b29aa,_0x5f0889=_0x39c192[_0x14124d(0x355)];_0x5f0889!=null&&this[_0x14124d(0x1ce)]&&_0x39c192['id']===V[_0x14124d(0x292)]['id']&&_0x5f0889['unitId']===this['unitID']&&_0x5f0889['isEditing']===!0x1&&_0x5f0889[_0x14124d(0x3cd)][_0x14124d(0x23b)]>0x0&&this[_0x14124d(0x260)](_0x5f0889[_0x14124d(0x3cd)]);})),this[_0x5b29aa(0x26b)][_0x5b29aa(0x243)]['pipe'](I[_0x5b29aa(0x28e)](this['dispose$']))[_0x5b29aa(0x2c2)](_0x23e1b3=>{const _0x560f2e=_0x5b29aa;if((_0x23e1b3==null?void 0x0:_0x23e1b3[_0x560f2e(0x398)])!==this[_0x560f2e(0x398)])return;const _0x3c7e51={'eventID':g[_0x560f2e(0x24f)][_0x560f2e(0x187)],'data':_0x23e1b3};this[_0x560f2e(0x3f2)](_0x3c7e51);}),this[_0x5b29aa(0x385)](this['_commandService'][_0x5b29aa(0x171)](_0x333d5b=>{const _0x44d847=_0x5b29aa;if(_0x333d5b['params']==null)return;const _0x1f45a0=_0x333d5b[_0x44d847(0x355)];if(_0x333d5b['id']!==V[_0x44d847(0x351)]['id']||_0x1f45a0[_0x44d847(0x3b6)]!==this[_0x44d847(0x398)])return;const _0x332f6c={'id':_0x44d847(0x2e2),'params':_0x1f45a0},_0x3dd5d8=this[_0x44d847(0x368)];for(const [_0xc53429,_0x480b1d]of _0x3dd5d8){const _0x50fbc8={'id':_0x44d847(0x2e2),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x480b1d['ranges']}},_0x1029c2=this[_0x44d847(0x261)][_0x44d847(0x3fd)](_0x332f6c,_0x50fbc8,!0x1);if(g['isTransformMutationFailure'](_0x1029c2))throw _0x1029c2[_0x44d847(0x146)];_0x3dd5d8[_0x44d847(0x3c7)](_0xc53429,{..._0x480b1d,'ranges':_0x1029c2[_0x44d847(0x325)]['params']['textRanges']});}queueMicrotask(()=>{const _0x5ef5ba=_0x44d847;this[_0x5ef5ba(0x1b3)][_0x5ef5ba(0x24a)](_0x3dd5d8);});})));}['_onCursorUpdate'](_0x5de1aa){const _0x51d8c1=_0x5f0329;var _0x5e3e98,_0xad8fb0;const {memberID:_0x280fe3,selection:_0x24bea8}=_0x5de1aa[_0x51d8c1(0x403)],_0x1a2b71=ht(_0x24bea8),_0x4fc499=(_0xad8fb0=(_0x5e3e98=this[_0x51d8c1(0x1a8)][_0x51d8c1(0x1a1)](this['unitID'],_0x280fe3))==null?void 0x0:_0x5e3e98[_0x51d8c1(0x3d6)])!=null?_0xad8fb0:'Unknown\x20user',_0x4ff00a={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x280fe3),'name':_0x4fc499,'ranges':_0x1a2b71},_0x13c818=this['cursorInfo'];_0x13c818[_0x51d8c1(0x3c7)](_0x280fe3,_0x4ff00a),this[_0x51d8c1(0x1b3)][_0x51d8c1(0x24a)](_0x13c818);}['_onCursorDelete'](_0xafb143){const _0x3fe769=_0x5f0329,{memberID:_0x2c0879}=_0xafb143[_0x3fe769(0x403)],_0x5a58b9=this[_0x3fe769(0x368)];_0x5a58b9[_0x3fe769(0x263)](_0x2c0879),this['_cursorInfo$'][_0x3fe769(0x24a)](_0x5a58b9);}[_0x5f0329(0x18e)](){const _0x4a486c=_0x5f0329;var _0x2d861a;if(this[_0x4a486c(0x1ce)]=!0x0,((_0x2d861a=this[_0x4a486c(0x2c8)][_0x4a486c(0x242)]())==null?void 0x0:_0x2d861a[_0x4a486c(0x1cf)]())!==this[_0x4a486c(0x398)])return;const _0x835bbb=this['_injector'][_0x4a486c(0x222)](V[_0x4a486c(0x14b)])[_0x4a486c(0x182)]();Array[_0x4a486c(0x234)](_0x835bbb)&&_0x835bbb[_0x4a486c(0x23b)]>0x0&&this[_0x4a486c(0x260)](_0x835bbb);}['_toggleOffline'](){const _0x10a5b7=_0x5f0329;this[_0x10a5b7(0x1ce)]=!0x1;}};ve=It([U(0x2,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),U(0x3,a[_0x5f0329(0x2b6)](Re)),U(0x4,a['Inject'](u[_0x5f0329(0x2f2)])),U(0x5,a[_0x5f0329(0x2b6)](be)),U(0x6,g[_0x5f0329(0x3a1)]),U(0x7,a[_0x5f0329(0x2c0)]),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x5f0329(0x2e9)],mt=(_0x33f149,_0x4faf04,_0x515d0f,_0x554fb2)=>{const _0x7ef6ed=_0x5f0329;for(var _0x32806f=_0x554fb2>0x1?void 0x0:_0x554fb2?ft(_0x4faf04,_0x515d0f):_0x4faf04,_0x1ec51f=_0x33f149[_0x7ef6ed(0x23b)]-0x1,_0x2ec5cf;_0x1ec51f>=0x0;_0x1ec51f--)(_0x2ec5cf=_0x33f149[_0x1ec51f])&&(_0x32806f=_0x2ec5cf(_0x32806f)||_0x32806f);return _0x32806f;},w=(_0x2ae135,_0x586c31)=>(_0x4ec077,_0x491373)=>_0x586c31(_0x4ec077,_0x491373,_0x2ae135);const vt=0x12c,gt=0x64,Et=()=>{let _0x1d60aa=[],_0x2c2f70=!0x1;return _0x15a88b=>{const _0x2a6d78=_0x38d6;_0x1d60aa[_0x2a6d78(0x375)](_0x15a88b),_0x2c2f70||(_0x2c2f70=!0x0,setTimeout(()=>{const _0x45de0a=_0x2a6d78;_0x1d60aa[_0x45de0a(0x205)](_0x3fa6a9=>_0x3fa6a9()),_0x1d60aa=[],_0x2c2f70=!0x1;}));};};let ge=class extends a['RxDisposable']{constructor(_0x75196f,_0x1e3c89,_0x3f116b,_0x944f36,_0x281f8c,_0x263f48,_0x12c88f,_0x4f472c){const _0x289a09=_0x5f0329;super(),_(this,_0x289a09(0x1ce),!0x1),_(this,_0x289a09(0x1a0),!0x1),_(this,_0x289a09(0x1b3),new I[(_0x289a09(0x406))](new Map())),_(this,_0x289a09(0x2da),this[_0x289a09(0x1b3)][_0x289a09(0x23e)]()),_(this,'_roomMembers$',new I[(_0x289a09(0x406))]([])),_(this,_0x289a09(0x149),this[_0x289a09(0x2a5)][_0x289a09(0x217)](I[_0x289a09(0x316)](vt))),_(this,_0x289a09(0x260),a[_0x289a09(0x1fc)]((_0x249d34,_0x2cb4e1)=>{const _0x383a2a=_0x289a09,_0x3da6ff={'eventID':g['CollaborationEvent'][_0x383a2a(0x187)],'data':{'unitID':this['unitID'],'memberID':this[_0x383a2a(0x3c6)][_0x383a2a(0x3fa)](),'selection':B[_0x383a2a(0x322)](_0x249d34,_0x2cb4e1[_0x383a2a(0x26c)])}};this['_session'][_0x383a2a(0x1b2)](_0x3da6ff,this[_0x383a2a(0x398)]);},gt)),(this[_0x289a09(0x398)]=_0x75196f,this[_0x289a09(0x3c6)]=_0x1e3c89,this['_injector']=_0x3f116b,this[_0x289a09(0x2fa)]=_0x944f36,this['_memberService']=_0x281f8c,this[_0x289a09(0x2c8)]=_0x263f48,this['_commandService']=_0x12c88f,this[_0x289a09(0x3fc)]=_0x4f472c);}get[_0x5f0329(0x368)](){const _0x441fce=_0x5f0329;return this[_0x441fce(0x1b3)][_0x441fce(0x259)]();}get[_0x5f0329(0x41b)](){const _0x180b5e=_0x5f0329;return this[_0x180b5e(0x2a5)][_0x180b5e(0x259)]();}[_0x5f0329(0x26d)](){const _0x4b511d=_0x5f0329;super[_0x4b511d(0x26d)](),this[_0x4b511d(0x1b3)]['next'](new Map()),this[_0x4b511d(0x1b3)]['complete'](),this[_0x4b511d(0x2a5)][_0x4b511d(0x24a)]([]),this['_roomMembers$']['complete']();}[_0x5f0329(0x237)](){const _0x925a7d=_0x5f0329;this[_0x925a7d(0x1a0)]||(this[_0x925a7d(0x1a0)]=!0x0,this['_session']['sessionStatus$'][_0x925a7d(0x217)](I['takeUntil'](this['dispose$']))[_0x925a7d(0x2c2)](_0x44ee11=>{const _0x2d03f2=_0x925a7d;_0x44ee11===u[_0x2d03f2(0x417)][_0x2d03f2(0x148)]?this['_toggleOnline']():this[_0x2d03f2(0x160)]();}),this[_0x925a7d(0x3c6)][_0x925a7d(0x2f8)][_0x925a7d(0x217)](I[_0x925a7d(0x28e)](this[_0x925a7d(0x3f8)]))['subscribe'](_0x537cc4=>{const _0x2d8d2e=_0x925a7d,_0x3af049=_0x537cc4[_0x2d8d2e(0x240)];_0x3af049===g['CollaborationEvent'][_0x2d8d2e(0x187)]&&this['_onCursorUpdate'](_0x537cc4),_0x3af049===g[_0x2d8d2e(0x24f)][_0x2d8d2e(0x347)]&&this[_0x2d8d2e(0x1aa)](_0x537cc4);}),this[_0x925a7d(0x374)](),this[_0x925a7d(0x385)](this[_0x925a7d(0x3b8)][_0x925a7d(0x171)](_0x292419=>{const _0x12f237=_0x925a7d;if(this[_0x12f237(0x1ce)]&&_0x292419['id']===v[_0x12f237(0x17d)]['id']&&_0x292419[_0x12f237(0x355)][_0x12f237(0x3b6)]===this[_0x12f237(0x398)]){const _0x183821=_0x292419[_0x12f237(0x355)];this['_updateLocalCursor'](_0x183821[_0x12f237(0x25e)],_0x183821[_0x12f237(0x23d)][0x0]);}})));}['_onCursorUpdate'](_0x590a8){const _0x3ed456=_0x5f0329;var _0x21c5e8,_0x1f2edd;const {memberID:_0x3da4e2,selection:_0x36f606}=_0x590a8[_0x3ed456(0x403)],{sheetName:_0xa9c551,range:_0x201566}=B[_0x3ed456(0x365)](_0x36f606),_0x20a3c2={'name':(_0x1f2edd=(_0x21c5e8=this[_0x3ed456(0x1a8)]['getMember'](this[_0x3ed456(0x398)],_0x3da4e2))==null?void 0x0:_0x21c5e8[_0x3ed456(0x3d6)])!=null?_0x1f2edd:_0x3ed456(0x3d5),'range':this[_0x3ed456(0x2ef)](_0xa9c551,_0x201566),'sheetID':_0xa9c551,'color':this[_0x3ed456(0x2fa)][_0x3ed456(0x2e1)](_0x3da4e2),'selection':_0x36f606},_0xa58db5=this[_0x3ed456(0x368)];_0xa58db5[_0x3ed456(0x3c7)](_0x3da4e2,_0x20a3c2),this['_cursorInfo$']['next'](_0xa58db5);}[_0x5f0329(0x1aa)](_0x2da3e6){const _0x5e9a4e=_0x5f0329,{memberID:_0x4535ce}=_0x2da3e6[_0x5e9a4e(0x403)],_0x3b6db1=this[_0x5e9a4e(0x368)];_0x3b6db1[_0x5e9a4e(0x263)](_0x4535ce),this[_0x5e9a4e(0x1b3)][_0x5e9a4e(0x24a)](_0x3b6db1);}[_0x5f0329(0x2ef)](_0x3d90e7,_0x325b9b){const _0x4fbb8b=_0x5f0329;var _0x5795e7,_0x498930;const _0x292f53=(_0x498930=(_0x5795e7=this[_0x4fbb8b(0x2c8)][_0x4fbb8b(0x342)](this[_0x4fbb8b(0x398)]))==null?void 0x0:_0x5795e7[_0x4fbb8b(0x223)](_0x3d90e7))==null?void 0x0:_0x498930[_0x4fbb8b(0x320)]();return(_0x292f53==null?void 0x0:_0x292f53['find'](_0x3def52=>a[_0x4fbb8b(0x255)][_0x4fbb8b(0x253)](_0x3def52,_0x325b9b)))||_0x325b9b;}['_onRefRangeChange'](){const _0x2c83c4=_0x5f0329,_0x216e76=new a['DisposableCollection'](),_0x198c0e=Et(),_0x5bfb53=()=>{const _0x47fc33=_0x38d6;_0x216e76[_0x47fc33(0x26d)]();const _0x49a148=(_0x1954db,_0x19c217,_0x519022,_0x58e200)=>{const _0x2a26d5=_0x47fc33;let _0x59c586=[];switch(_0x1954db['id']){case v[_0x2a26d5(0x1a5)]['DeleteRangeMoveLeftCommandId']:{_0x59c586=v[_0x2a26d5(0x3f6)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x1fe)]:{_0x59c586=v[_0x2a26d5(0x334)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)]['InsertColCommandId']:{_0x59c586=v['handleInsertCol'](_0x1954db,_0x58e200);break;}case v['EffectRefRangId'][_0x2a26d5(0x3f1)]:{_0x59c586=v['handleInsertRangeMoveDown'](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x405)]:{_0x59c586=v[_0x2a26d5(0x1b6)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)]['InsertRowCommandId']:{_0x59c586=v['handleInsertRow'](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x31a)]:{_0x59c586=v[_0x2a26d5(0x25f)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x1ec)]:{_0x59c586=v[_0x2a26d5(0x370)](_0x1954db,_0x58e200);break;}case v[_0x2a26d5(0x1a5)][_0x2a26d5(0x27a)]:{_0x59c586=v[_0x2a26d5(0x3e4)](_0x1954db,_0x58e200);break;}}const _0x1ba043=v[_0x2a26d5(0x16d)](_0x59c586,_0x58e200),_0x4e633e=this[_0x2a26d5(0x368)][_0x2a26d5(0x222)](_0x19c217);if(_0x4e633e&&_0x1ba043){const _0xff2b13={..._0x4e633e,'range':_0x1ba043};this[_0x2a26d5(0x368)][_0x2a26d5(0x3c7)](_0x19c217,_0xff2b13),_0x198c0e(()=>{const _0xd1cbc8=_0x2a26d5,_0x464004=this[_0xd1cbc8(0x3fc)][_0xd1cbc8(0x2d4)](_0x1ba043,_0x328aec=>(_0x464004[_0xd1cbc8(0x26d)](),_0x49a148(_0x328aec,_0x19c217,_0x519022,_0x1ba043)));_0x216e76[_0xd1cbc8(0x262)](_0x464004);});}return{'redos':[],'undos':[]};};this[_0x47fc33(0x368)]['forEach']((_0x3df547,_0x436b3e)=>{const _0x460211=_0x47fc33,{range:_0x1cbecb,sheetID:_0x13d451}=_0x3df547,_0x404910=this[_0x460211(0x3fc)]['registerRefRange'](_0x1cbecb,_0x2174a9=>(_0x404910[_0x460211(0x26d)](),_0x49a148(_0x2174a9,_0x436b3e,_0x13d451,_0x1cbecb)));_0x216e76[_0x460211(0x262)](_0x404910);});};this[_0x2c83c4(0x385)](a['toDisposable'](this['_cursorInfo$']['subscribe'](()=>{_0x5bfb53();})));}[_0x5f0329(0x18e)](){const _0x389629=_0x5f0329;var _0x191664,_0x4a6027;if(this['_online']=!0x0,((_0x191664=this['_univerInstanceService'][_0x389629(0x242)]())==null?void 0x0:_0x191664[_0x389629(0x1cf)]())!==this['unitID'])return;const _0x3d213c=(_0x4a6027=this[_0x389629(0x180)]['get'](v[_0x389629(0x173)])[_0x389629(0x1e1)]())==null?void 0x0:_0x4a6027[0x0],_0x43fbab=this[_0x389629(0x2c8)][_0x389629(0x309)](a[_0x389629(0x2dd)]['UNIVER_SHEET'])[_0x389629(0x1c4)]();_0x3d213c&&_0x43fbab&&this['_updateLocalCursor'](_0x43fbab[_0x389629(0x264)](),_0x3d213c);}[_0x5f0329(0x160)](){const _0x2b7c03=_0x5f0329;this[_0x2b7c03(0x1ce)]=!0x1;}};ge=mt([w(0x2,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),w(0x3,a['Inject'](Re)),w(0x4,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x2f2)])),w(0x5,a[_0x5f0329(0x2c0)]),w(0x6,a[_0x5f0329(0x1b7)]),w(0x7,a[_0x5f0329(0x2b6)](v[_0x5f0329(0x224)]))],ge);function _0x5d04(){const _0x4b6ea3=['transformStateCache','max','height','IImageIoService','Error','getUnit','sessionTicket','disposeWithMe','_transformHistoryAndStateStack','APPLY_PERMISSION_DENIED','collab-text-anchor-','tag','_monkeyPatchLogService','YUUMI_SUBSCRIPTION_NOT_FOUND','RevisionService','white','yellow.400','?taskId=','isTransformMutationsWithChangesetSuccess','Injector','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','endRow','save','split','drawWith','has','unitID','REDEMPTION_CODE_HAS_BEEN_CREATED','_textBubble','distinctUntilChanged','defineProperty','CollaborationStatus','runOnServer','_updateCollabCursors','0\x200\x2016\x2016','ITransformService','limitInfo','setItem','2255181IqcRmX','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','invokeId','CLOSE_ROOM','toString','CollaborationSessionService','JOIN_ROOM_FAILED','source','entityInit$','setActiveRange','closePath','fillStyle','INotificationService','ALREADY_EXISTS','collabStatus.synced','url(#off-line-icon_clip0_910_343)','LICENSE_EXPORT_SIZE_EXCEEDED','_id','unitId','createInstance','_commandService','RegularPolygon','YUUMI_ASYNCIO_CANCELLED','UNRECOGNIZED','current','evenodd','_pollingInterval','ENTITLE_CAN_NOT_BUY_LOWER_OTP','AWAITING_WITH_PENDING','ENTITLE_COUPON_USED_UP','toStringTag','searchParams','OFFLINE','HEADER_MENU','_session','set','_removeClearOtherTimer','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','INVALID_INVITE_CODE','from','FormulaExecutedStateType','ranges','engine','getActiveRange','getColorFromTheme','getCurrentRevOfUnit','setShapeProps','enableLocalCache','_createSocketURL','Unknown\x20user','name','_messageService','NO_OTHER_CLIENTS_EDITING','red.300','show','override','beginPath','column','_selfUnitIDs','collab-text-range-','MOBILE_HAS_BEEN_BOUND','EMAIL_VERIFY_CODE_MISMATCH','_name','DependentOn','handleIRemoveRow','START_CALCULATION','_startSheetCollabCursor','_releaseCalculationLimit','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_maxFormulaLimit','CONFLICT','4221380WkgdwB','_config','location','PAYMENT_CHANNEL_NOT_SUPPORT','CONNECTOR_DATA_TOO_LARGE','clearTimeout','InsertRangeMoveDownCommandId','_onCursorUpdate','ENTITLE_DUP_SUBSCRIPTION','RxDisposable','YUUMI_RATE_OVER_LIMIT','handleDeleteRangeMoveLeft','formula.calculation.waiting','dispose$','ENTITLE_INVALID_COUPON_CODE','getMemberID','off-line-icon_clip0_910_343','_refRangeService','transformMutation','getCellMatrix','_clearOtherTimers','_saveTaskMap','AUTHORIZE_CODE_ILLEGAL','touchDependencies','data','COLORS','InsertRangeMoveRightCommandId','BehaviorSubject','USER_NOT_INVITED_CODE','formula.calculation.unable','collabStatus.fetchMiss','UNAUTHENTICATED','fill','SetFormulaCalculationNotificationMutation','getOffsetConfig','_context','_initCommandInterceptor','removeParam','YUUMI_URL_COL_OUT_OF_RANGE','Tooltip','round','disposeUnit','APPLY_REVISION_CONFILICT','DOC_RANGE_TYPE','SessionStatus','_send','unshift','_instanceService','roomMembers','_range','_memberID','ENTITLE_USE_COUPON_NOT_1ST_TRADE','ticket','replaceState','_startCalculationLimit','error','16823300ssEizu','ONLINE','roomMembers$','IMessageService','DocSelectionManagerService','CollaborationSocketService','/universer-api/license/formula/limit/status','_getSessionTicket','socket$','_initStatusComponent','getCellPositionByOffset','_hovered','_removeCollabCursors','jsx','LOGIN_FAILED','collaboration-client-ui.config','_document','16QbhWwX','_hover','NodePositionConvertToRectRange','LOCAL_CACHE_INTERVAL','SNAPSHOT_HAS_BEEN_REMOVED','combineLatest','top','REDEMPTION_CODE_INACTIVE','_toggleOffline','releaseFormulaLimitUrl','_scheduleClearOtherTimer','getCollabCursors$','Rect','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','univerjs-icon\x20univerjs-icon-','colorChannel1','_configService','_getAnchorBounding','black','undoState','stack','runRefRangeMutations','_docStateChangeManagerService','filename','6112225vlhxwM','onCommandExecuted','MessageType','SheetsSelectionsService','result','SYNCED','svg','href','bind','makeDirty','SOCKET_FAILED_RETRY','_initResize','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','SetSelectionsOperation','formula.calculation.started','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_injector','_logService','getDocRanges','_taskIds','getLocalCacheKey','uni.network.url-service','_imageIoService','UPDATE_CURSOR','switchMap','children','_registerDependencies','_getScale','mask','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_toggleOnline','url(#$1','_httpService','onRendered','1em','onStarting','join','_saveCache','CollaborationController','SetFormulaCalculationStartMutation','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_initStatusListener','isFormulaString','assign','registerBeforeClose','_refreshCollabCursors','ILocalCacheService','setConfig','_init','getMember','getCollabEntity$','sheetId','_anchorDot','EffectRefRangId','IConfigService','registerDependencies','_memberService','_getFormulaLimitStatus','_onCursorDelete','skeleton','includes','body','type','_unitStatus','sheetID','INVALID_ARGUMENT','send','_cursorInfo$','_cursors','transformIMECache','handleInsertRangeMoveRight','ICommandService','executionId','[Unhandled\x20Rejection]:\x20','size','dirtyRanges','SUCCESS','ENTITLE_COUPON_EXPIRED','WebBrowserSingleActiveUnitService','ENTITLE_NEED_BILLING_ADDRESS','BrowserCollaborationSocketService','UNDEFINED','parse','shareReplay','getActiveSheet','useCallback','startsWith','TOO_MANY_REQUESTS','M0\x200H16V16H0z','IBeforeCloseService','_handleEvent','beforeCommandExecuted','DEFAULT_WS_SESSION_TICKET_URL','registerComponent','_online','getUnitId','session.collaboration-timeout','transformByState','INVITE_CODE_HAS_BEEN_UES','_docTransformSelectionsService','blue.400','REDEMPTION_USER_REDEEM_TIMES_EXCEED','pushState','_clearPolling','collabStatus.notCollab','_docSyncEditingCollabCursorService','debug','imageSourceType','NodePositionConvertToCursor','now','merge','executeCommand','getStateCache','getCurrentSelections','replaceDocRanges','message','row','subscribeEvent','replace','getParam','endColumn','PY_RUNTIME_SCRIPT_ERROR','key','popstate','RemoveColCommandId','_docClipboardService','Plugin','setStateCache','stringify','search','WebSocketService','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SetWorksheetActivateCommand','_collaborationController','xlink:href','_urlService','random','3128103LWszPw','restore','createSocket','debounce','INVITE_CODE_REQUIRED','DeleteRangeMoveUpCommandId','div','getItem','\x20at\x20','_hideTimer','_cursor','_doCreateSocket','forEach','_collaborationUIEventService','transformRemoteChangeset','use','_draw','bottom','currentUsage','hovered','totalFormulasToCalculate','YUUMI_UNABLE_LOAD_URL','ColorKit','collaboration.single-unit.warning','collab-client.tooltip.reconnect','deepClone','post','reason','arc','clipPath','pipe','mergeOverrideWithDependencies','Module','isActive','IRemoteInstanceService','runId','LOCAL_CACHE_INTERVAL_KEY','getRenderById','_currentUsage','application/json','_shapes','get','getSheetBySheetId','RefRangeService','SUBMIT_CHANGESET_TIMEOUT','_revisionService','1919658JnmKpJ','idSuffix','UniverCollaborationClientUIPlugin','DocCollaborationEntity','_cursorShapes','REDEMPTION_CODE_FULLY_REDEEMED','FromArray','_getSheetObject','_collabCursorController','_beforeCloseService','none','_collaborationSessionService','_scheduleHeartbeat','isArray','_drawTextRange','DesktopCollaborationStatusDisplayController','init','_docSkeletonManagerService','_initCommandExecutedListener','_unitOnClients','length','redoState','selections','asObservable','UNIVER_DOC','eventID','with','getFocusedUnit','collabCursorState$','createIdentifier','NOT_FOUND','hide','getViewport','Disposable','_color','next','/universer-api/license/formula/limit/done','_lastResponseTimestamp','_initUserListener','YUUMI_NO_CUBOID_FOR_QUESTION','CollaborationEvent','_drawRectRange','_backgroundColor','purple.300','contains','ILogService','Rectangle','setUndoRedoMutationParamsCache','ACTIVE_UNIT_EVENT_CHANNEL','getFormulaLimitStatusUrl','getValue','univer-flex\x20univer-items-center','permission.content','_localeService','substring','subUnitId','handleMoveRange','_updateLocalCursor','_transformService','add','delete','getSheetId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_setupSubUnitSync','[RemoteUniscriptService]:\x20no\x20focused\x20unit','exhaustSavingTask','_collabCursorState$','_initEntityListener','_syncEditingCollabCursorService','range','dispose','_initDependencies','WECHAT_HAS_BEEN_BOUND','_cachedData','20XJMnua','startRow','IDocClipboardService','defIds','#FFF','collaboration.closeRoom','string','currentTheme$','_renderManagerService','RemoveRowCommandId','collabStatus.conflict','storage','UnitStatus','_status$','_scheduleSaving','symbol','addObjects','values','RemoteUniscriptService','setInterval','_initUnhandledRejectionListener','_applyCommand','_initWindowErrorListener','on-line-icon_clip0_910_349','_getSaveTimeout','_initEvent','UniverIcon','SOCKET_FAILED','HTTPService','takeUntil','textRanges','all','toRgbString','SetTextSelectionsOperation','_updateURLWithCurrentState','Shape','throttleTime','saveImage','stageInfo','rgba(255,\x20255,\x20255,\x200.01)','labelPosition','clearInterval','attrs','CHANGESET_REVISION_CONFILICT','lineno','univer-mr-2\x20univer-flex\x20univer-text-xl','then','LocaleService','getVpScrollXYInfoByPosToVp','permission.title','ILocalStorageService','_localStorageService','_roomMembers$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Loading','_entities','ENTITLE_CHAT_LIMIT_EXCEED','DocIMEInputManagerService','moveTo','useRef','LICENSE_MAX_UNITS_EXCEEDED','UNIVER_SHEET','_themeService','setParam','_heartbeatTimer','_collabSessionService','OTHER_CLIENT_EDITING','ENSURE_SNAPSHOT_EXECUTION','backgroundColor','Inject','generateRandomId','lineTo','_showGuardMessage','getSheetObject','getRelativeToViewportCoord','1652116CvnAut','IRenderManagerService','currentSkeleton$','color','IUniverInstanceService','PERMISSION_DENIED','subscribe','TRANSFORM_CHANGE_OBSERVABLE_TYPE','RECT','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_eventUnsubscribe','transformSelections','_univerInstanceService','createElement','CollaborationUIEventService','getColor','onMouseMove','actions','resize','session.will-retry','MOBILE_VERIFY_CODE_MISMATCH','SHEET_VIEWPORT_KEY','[Window\x20Error]:\x20','...','registerRefRange','triggerDblclick','APPLY_REJECT','history','PENDING','_ensureSubject','cursorInfo$','_lastPointer','subunit','UniverInstanceType','connectInjector','addObject','CommandType','assignAColorForMemberID','doc.mutation.rich-text-editing','m1Prime','getCurrent','SetDocZoomRatioOperation','INVITE_CODE_ALREADY_BOUND','CollaborationUIEventId','collaboration.offline-data-not-saved','getOwnPropertyDescriptor','IUIPartsService','Tools','REDEMPTION_USER_NOT_ELIGIBLE','_registerRenderDependencies','DocStateChangeManagerService','_getMergeRange','Vector2','addEventListener','MemberService','_disabled','transformMutationsWithChangeset','_assignedColors','complete','Success','event$','getCoordByCell','_colorAssignService','_dataLoaderService','TEXT','_uploadLog','getRangePointData','getAncestorScale','requireSession','functionsExecutedState','2qTeYGe','disableLocalCache','_handleHeartbeatEvent','VIEW_MAIN','unsubscribe','_docTransformStateCacheService','collabStatus.offline','getCurrentUnitForType','OffLineIcon','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','flatMap','map','_colorIndex','syncEditingCollabCursor','forwardRef','_docTransformIMECacheService','_startDocCollabCursor','transform','enableFrontendLog','_handleJoinEvent','debounceTime','removeEventListener','_updateSubUnitFromURLParams','getTypeOfUnitAdded$','MoveRangeCommandId','ENTITLE_REPORT_LIMIT_EXCEED','_handleHover','/universer-api/frontend/logs','registerRenderModule','setTimeout','getMergeData','unit','serializeRangeWithSheet','getTypeOfUnitDisposed$','displayName','m2Prime','off-line-icon','focused$','isTransformMutationFailure','_anchor','defs','mapTo','CanceledError','_transformPreviousActiveRange','REDEMPTION_INVALID_CODE','APPLY_NON_SEQUENTIAL_REVISION','_handleLeaveEvent','startColumn','_scene','ERROR_AGAIN','handleDeleteRangeMoveUp','/universer-api/license/formula/limit/start','TEXT_RANGE_LAYER_INDEX','_checkCalculationAvailable','width','green.600','_checkAndWaitForCalculationPermission','_render','selection','loadUnit','onPointerLeave$','_drawAnchor','IURLService','path','getUniverSheetInstance','SheetCollabCursorShape','USER_NOT_FOUND','urlChange$','text','USERS_LEAVE','fromEvent','REDEMPTION_CODE_NOT_STARTED','origin','CollaborationDataLoaderController','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_labelPosition','YUUMI_CONNECTOR_URL_NOT_FOUND','fillRule','CURRENT_STATUS_CANNOT_OPERATE','RichTextEditingMutation','code','NOT_COLLAB','_localCacheService','params','getConfig','Subject','APPLY_DUPLICATED','Warning','LOGIN_TOKEN_PROCESSING_FAILED','session.connection-failed','unhandledrejection','onPointerEnter$','_uiPartsService','_setFormulaLimitStatus','_sheetSkeletonManagerService','memberID','measureText','fillText','ENTITLE_INSUFFICIENT_QUOTA','deserializeRangeWithSheet','mutations','min','cursorInfo','_entityInit$','pluginName','DATA_SOURCE_TOO_LARGE','COMPLETION_FINISHED','[CollaborationDataLoaderController]','trim','YUUMI_ALL_TABLES_IS_INVALID','handleIRemoveCol','status$','filter','saveTaskMap','_onRefRangeChange','push','INTERNAL_ERROR','currentColor','newValue','_transformUndoRedoStack','EMAIL_HAS_BEEN_BOUND','findNodePositionByCharIndex','setAlpha','catch'];_0x5d04=function(){return _0x4b6ea3;};return _0x5d04();}var Ct=Object['getOwnPropertyDescriptor'],Tt=(_0x422fe8,_0x431ea1,_0x513f1f,_0x1e676c)=>{const _0x340ca1=_0x5f0329;for(var _0xdcc7ff=_0x1e676c>0x1?void 0x0:_0x1e676c?Ct(_0x431ea1,_0x513f1f):_0x431ea1,_0x1f75ae=_0x422fe8[_0x340ca1(0x23b)]-0x1,_0x18358b;_0x1f75ae>=0x0;_0x1f75ae--)(_0x18358b=_0x422fe8[_0x1f75ae])&&(_0xdcc7ff=_0x18358b(_0xdcc7ff)||_0xdcc7ff);return _0xdcc7ff;},ce=(_0xf59a03,_0x30fef2)=>(_0x595afd,_0x4e60e8)=>_0x30fef2(_0x595afd,_0x4e60e8,_0xf59a03);let F=class extends a[_0x5f0329(0x3f4)]{constructor(_0x3b3892,_0x61ff62,_0x28ccf5){const _0x45b615=_0x5f0329;super(),_(this,'_entities',new Map()),_(this,_0x45b615(0x369),new I[(_0x45b615(0x357))]()),(this['_univerInstanceService']=_0x3b3892,this['_injector']=_0x61ff62,this['_collabSessionService']=_0x28ccf5,this['_init']());}[_0x5f0329(0x26d)](){const _0x6a2d26=_0x5f0329;super[_0x6a2d26(0x26d)](),this[_0x6a2d26(0x369)][_0x6a2d26(0x2f6)](),this[_0x6a2d26(0x2a8)][_0x6a2d26(0x205)](_0x214f28=>_0x214f28[_0x6a2d26(0x26d)]());}['getCollabCursors$'](_0x18324a){const _0x27c3dd=_0x5f0329;return this[_0x27c3dd(0x2a8)][_0x27c3dd(0x397)](_0x18324a)?this['_entities'][_0x27c3dd(0x222)](_0x18324a)[_0x27c3dd(0x2da)]:this[_0x27c3dd(0x369)][_0x27c3dd(0x217)](I[_0x27c3dd(0x372)](_0x27447c=>_0x27447c['unitID']===_0x18324a),I['switchMap'](_0xe5762e=>_0xe5762e[_0x27c3dd(0x2da)]));}[_0x5f0329(0x1a0)](){const _0x81c95b=_0x5f0329;this[_0x81c95b(0x2c8)][_0x81c95b(0x319)](a['UniverInstanceType'][_0x81c95b(0x2ae)])[_0x81c95b(0x217)](I['takeUntil'](this[_0x81c95b(0x3f8)]))[_0x81c95b(0x2c2)](async _0x4690cc=>{const _0x392370=_0x81c95b,_0x1eb62f=_0x4690cc[_0x392370(0x1cf)](),_0x4fde42=await this[_0x392370(0x3e6)](_0x1eb62f);this[_0x392370(0x369)][_0x392370(0x24a)](_0x4fde42),this[_0x392370(0x2a8)][_0x392370(0x3c7)](_0x1eb62f,_0x4fde42);}),this[_0x81c95b(0x2c8)][_0x81c95b(0x319)](a[_0x81c95b(0x2dd)][_0x81c95b(0x23f)])[_0x81c95b(0x217)](I[_0x81c95b(0x28e)](this[_0x81c95b(0x3f8)]))['pipe'](I[_0x81c95b(0x372)](_0x14ce85=>!_0x14ce85[_0x81c95b(0x1cf)]()[_0x81c95b(0x1c6)]('__')))[_0x81c95b(0x2c2)](async _0x3e447c=>{const _0x371a43=_0x81c95b,_0x571285=_0x3e447c[_0x371a43(0x1cf)](),_0x43358a=await this[_0x371a43(0x312)](_0x571285);this[_0x371a43(0x369)][_0x371a43(0x24a)](_0x43358a),this[_0x371a43(0x2a8)]['set'](_0x571285,_0x43358a);}),I['merge'](this[_0x81c95b(0x2c8)][_0x81c95b(0x323)](a[_0x81c95b(0x2dd)]['UNIVER_DOC']),this[_0x81c95b(0x2c8)][_0x81c95b(0x323)](a[_0x81c95b(0x2dd)][_0x81c95b(0x2ae)]))[_0x81c95b(0x217)](I['takeUntil'](this[_0x81c95b(0x3f8)]))[_0x81c95b(0x2c2)](_0x29cd48=>{const _0x5d1375=_0x81c95b,_0x3fb7da=_0x29cd48[_0x5d1375(0x1cf)](),_0x5dcd33=this['_entities'][_0x5d1375(0x222)](_0x3fb7da);_0x5dcd33&&(_0x5dcd33['dispose'](),this[_0x5d1375(0x2a8)][_0x5d1375(0x263)](_0x3fb7da));});}async[_0x5f0329(0x3e6)](_0x51e696){const _0x3887b8=_0x5f0329,_0x42e83d=await this['_collabSessionService'][_0x3887b8(0x300)](_0x51e696),_0xa8cb2b=this[_0x3887b8(0x180)][_0x3887b8(0x3b7)](ge,_0x51e696,_0x42e83d);return _0xa8cb2b[_0x3887b8(0x237)](),_0xa8cb2b;}async[_0x5f0329(0x312)](_0x14f49e){const _0x288ab4=_0x5f0329,_0x7a1bbe=await this[_0x288ab4(0x2b2)]['requireSession'](_0x14f49e),_0x3e85f9=this[_0x288ab4(0x180)][_0x288ab4(0x3b7)](ve,_0x14f49e,_0x7a1bbe);return _0x3e85f9[_0x288ab4(0x237)](),_0x3e85f9;}};F=Tt([ce(0x0,a['IUniverInstanceService']),ce(0x1,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),ce(0x2,a['Inject'](u[_0x5f0329(0x3a9)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x4b44dc,_0x13f18c){const _0x4ef707=_0x5f0329;let {radius:_0x361979,width:_0xf37bdb,height:_0x15302b}=_0x13f18c;_0x361979=_0x361979!=null?_0x361979:0x0,_0xf37bdb=_0xf37bdb!=null?_0xf37bdb:0x1e,_0x15302b=_0x15302b!=null?_0x15302b:0x1e;let _0x145c17=0x0,_0x3d989b=0x0,_0x1263b4=0x0;_0x145c17=_0x3d989b=_0x1263b4=Math[_0x4ef707(0x367)](_0x361979,_0xf37bdb/0x2,_0x15302b/0x2),_0x4b44dc[_0x4ef707(0x3dc)](),_0x4b44dc[_0x4ef707(0x2ab)](_0x145c17,0x0),_0x4b44dc[_0x4ef707(0x2b8)](_0xf37bdb-_0x3d989b,0x0),_0x4b44dc[_0x4ef707(0x215)](_0xf37bdb-_0x3d989b,_0x3d989b,_0x3d989b,Math['PI']*0x3/0x2,0x0,!0x1),_0x4b44dc[_0x4ef707(0x2b8)](_0xf37bdb,_0x15302b-_0x1263b4),_0x4b44dc[_0x4ef707(0x215)](_0xf37bdb-_0x1263b4,_0x15302b-_0x1263b4,_0x1263b4,0x0,Math['PI']/0x2,!0x1),_0x4b44dc['lineTo'](0x0,_0x15302b),_0x4b44dc[_0x4ef707(0x2b8)](0x0,_0x145c17),_0x4b44dc[_0x4ef707(0x215)](_0x145c17,_0x145c17,_0x145c17,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4b44dc[_0x4ef707(0x3ae)](),_0x13f18c[_0x4ef707(0x40b)]&&(_0x4b44dc['save'](),_0x4b44dc['fillStyle']=_0x13f18c[_0x4ef707(0x40b)],_0x13f18c[_0x4ef707(0x34f)]===_0x4ef707(0x3bd)?_0x4b44dc['fill'](_0x4ef707(0x3bd)):_0x4b44dc[_0x4ef707(0x40b)](),_0x4b44dc[_0x4ef707(0x1fa)]());}class re extends C[_0x5f0329(0x294)]{constructor(_0x5bf6e3,_0x4b9872){const _0x2d74bf=_0x5f0329;super(_0x5bf6e3,_0x4b9872),_(this,'color'),_(this,_0x2d74bf(0x346)),(this[_0x2d74bf(0x2bf)]=_0x4b9872==null?void 0x0:_0x4b9872[_0x2d74bf(0x2bf)],this[_0x2d74bf(0x346)]=_0x4b9872==null?void 0x0:_0x4b9872[_0x2d74bf(0x346)]);}static[_0x5f0329(0x396)](_0x2a14a9,_0x507bbf){const _0x356f8c=_0x5f0329,{text:_0x1ffd10,color:_0x5af9f4}=_0x507bbf;_0x2a14a9[_0x356f8c(0x394)](),_0x2a14a9['font']=_0x356f8c(0x18d);const _0x2a52e4=_0x2a14a9['measureText'](_0x1ffd10)['width'],_0x30b5ff=Math[_0x356f8c(0x367)](_0x2a52e4+0x2*le,Ue);Ot(_0x2a14a9,{'height':X,'radius':0x4,'width':_0x30b5ff,'fill':_0x5af9f4}),_0x2a14a9[_0x356f8c(0x3af)]=_0x356f8c(0x275);const _0x339eb6=le,_0x57fbaf=X-pt,_0x1e1539=Ue-0x2*le;if(_0x2a52e4>_0x1e1539){let _0x4addd1='',_0x29334e=0x0;for(const _0xa13c0a of _0x1ffd10){const _0x24c90d=_0x2a14a9[_0x356f8c(0x362)](_0xa13c0a)[_0x356f8c(0x338)];if(_0x29334e+_0x24c90d<=_0x1e1539-_0x2a14a9[_0x356f8c(0x362)]('...')[_0x356f8c(0x338)])_0x4addd1+=_0xa13c0a,_0x29334e+=_0x24c90d;else{_0x4addd1+=_0x356f8c(0x2d3);break;}}_0x2a14a9['fillText'](_0x4addd1,_0x339eb6,_0x57fbaf);}else _0x2a14a9[_0x356f8c(0x363)](_0x1ffd10,_0x339eb6,_0x57fbaf);_0x2a14a9['restore']();}[_0x5f0329(0x209)](_0x3289bc){re['drawWith'](_0x3289bc,this);}}const _e=_0x5f0329(0x388),Rt=_0x5f0329(0x3df),bt='collab-rect-range-',H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x5f0329(0x298);class Le{constructor(_0x1fea77,_0x13aeb6,_0x122c8,_0x4b8bf4){const _0x40c305=_0x5f0329;_(this,'_shapes',[]),_(this,_0x40c305(0x329),null),_(this,_0x40c305(0x39a),null),_(this,'_anchorDot',null),_(this,'_hideTimer',null),_(this,_0x40c305(0x2c6),null),(this[_0x40c305(0x203)]=_0x1fea77,this[_0x40c305(0x332)]=_0x13aeb6,this['_docSkeleton']=_0x122c8,this[_0x40c305(0x157)]=_0x4b8bf4,this[_0x40c305(0x33b)]());}set[_0x5f0329(0x159)](_0x26b132){const _0x2f3422=_0x5f0329;_0x26b132?(this['_anchorDot']&&this[_0x2f3422(0x1a4)]['hide'](),this['_textBubble']&&this['_textBubble'][_0x2f3422(0x3da)]()):(this[_0x2f3422(0x1a4)]&&this[_0x2f3422(0x1a4)][_0x2f3422(0x3da)](),this[_0x2f3422(0x39a)]&&this['_textBubble'][_0x2f3422(0x246)]());}['dispose'](){const _0x1e9704=_0x5f0329;for(const _0x2a8b64 of this[_0x1e9704(0x221)])_0x2a8b64[_0x1e9704(0x26d)]();this[_0x1e9704(0x39a)]&&this[_0x1e9704(0x39a)][_0x1e9704(0x26d)](),this['_anchorDot']&&this['_anchorDot'][_0x1e9704(0x26d)](),this[_0x1e9704(0x329)]&&this['_anchor']['dispose'](),this[_0x1e9704(0x2c6)]&&this[_0x1e9704(0x2c6)]();}[_0x5f0329(0x33b)](){const _0x1e7858=_0x5f0329;var _0x137de4;const {_docSkeleton:_0x458f0e,_document:_0x102d9f}=this,{color:_0x443713,name:_0x49f7af,ranges:_0x252137}=this['_cursor'],_0x39e58d=_0x102d9f[_0x1e7858(0x40d)](),{docsLeft:_0x52b44c,docsTop:_0xa6459c}=_0x39e58d,_0x4fd616=new T[(_0x1e7858(0x1dc))](_0x39e58d,_0x458f0e);for(const {startOffset:_0x1fb182,endOffset:_0xb88cc9,rangeType:_0x2750df,segmentId:_0x46858d,segmentPage:_0x1d5891,collapsed:_0xad1f0a,isActive:_0x3b27a2}of _0x252137){const _0x182925=_0x458f0e[_0x1e7858(0x37b)](_0x1fb182,!0x0,_0x46858d,_0x1d5891);let _0x9a033e=_0x458f0e[_0x1e7858(0x37b)](_0xb88cc9,!0x0,_0x46858d,_0x1d5891);if(_0x9a033e==null&&(_0x9a033e=_0x458f0e['findNodePositionByCharIndex'](_0xb88cc9-0x1,!0x1,_0x46858d,_0x1d5891)),_0x3b27a2){const {contentBoxPointGroup:_0x3006c5}=_0x4fd616[_0x1e7858(0x2fe)](_0x9a033e,_0x9a033e);if(_0x3006c5[_0x1e7858(0x23b)]===0x0)continue;this[_0x1e7858(0x33f)](_0x443713,_0x3006c5,_0x52b44c,_0xa6459c,_0x49f7af),this[_0x1e7858(0x2c6)]=this[_0x1e7858(0x31c)]();}if(_0x182925&&_0x9a033e){if(_0x2750df===a[_0x1e7858(0x416)][_0x1e7858(0x2c4)]){const _0x1e9787=new T[(_0x1e7858(0x15a))](_0x39e58d,_0x458f0e),{pointGroup:_0x356bed}=(_0x137de4=_0x1e9787[_0x1e7858(0x2fe)](_0x182925,_0x9a033e))!=null?_0x137de4:{};if(_0x356bed==null||_0x356bed[_0x1e7858(0x23b)]===0x0)continue;this[_0x1e7858(0x250)](_0x443713,_0x356bed,_0x52b44c,_0xa6459c);}else{if(!_0xad1f0a){const {borderBoxPointGroup:_0x2ddf4f}=_0x4fd616[_0x1e7858(0x2fe)](_0x182925,_0x9a033e);if(_0x2ddf4f[_0x1e7858(0x23b)]===0x0)continue;this['_drawTextRange'](_0x443713,_0x2ddf4f,_0x52b44c,_0xa6459c);}}}}}[_0x5f0329(0x33f)](_0x47c36c,_0x2ea1aa,_0x1e4962,_0x200e60,_0xa144a){const _0x49c675=_0x5f0329,_0x247044=this['_getAnchorBounding'](_0x2ea1aa),{left:_0x2b0f2c,top:_0x55baeb,height:_0x5574f6}=_0x247044,_0x1af632=this[_0x49c675(0x18b)](),_0xe74e9f=Nt/_0x1af632,_0x3f1332=new C['Rect'](_e+a[_0x49c675(0x2b7)](H),{'left':_0x2b0f2c+_0x1e4962-_0xe74e9f,'top':_0x55baeb+_0x200e60,'height':_0x5574f6,'width':Dt,'fill':_0x47c36c||C[_0x49c675(0x2cb)](a['COLORS'][_0x49c675(0x16a)],0x0),'strokeWidth':_0xe74e9f,'stroke':Ut,'evented':!0x0});this[_0x49c675(0x329)]=_0x3f1332,this['_scene'][_0x49c675(0x2df)](_0x3f1332,T['TEXT_RANGE_LAYER_INDEX']);const _0xf9976f=new C[(_0x49c675(0x164))](_e+a[_0x49c675(0x2b7)](H),{'left':_0x2b0f2c+_0x1e4962-_0xe74e9f,'top':_0x55baeb+_0x200e60-he/0x2,'height':he,'width':he,'fill':_0x47c36c||C[_0x49c675(0x2cb)](a[_0x49c675(0x404)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x47c36c||C[_0x49c675(0x2cb)](a[_0x49c675(0x404)][_0x49c675(0x16a)],0x0),'evented':!0x1});this[_0x49c675(0x1a4)]=_0xf9976f,this[_0x49c675(0x332)]['addObject'](_0xf9976f,T[_0x49c675(0x336)]);const _0x560296=new re(_e+a['generateRandomId'](H),{'left':_0x2b0f2c+_0x1e4962-_0xe74e9f,'top':_0x55baeb+_0x200e60-X,'text':_0xa144a,'color':_0x47c36c});this['_textBubble']=_0x560296,this['_scene'][_0x49c675(0x2df)](_0x560296,T[_0x49c675(0x336)]),this[_0x49c675(0x159)]=!0x1;}[_0x5f0329(0x31c)](){const _0x5b251d=_0x5f0329,_0x4892cb=this['_anchor'][_0x5b251d(0x35d)][_0x5b251d(0x1e5)](()=>{const _0x1de0e7=_0x5b251d;this[_0x1de0e7(0x159)]=!0x0;}),_0x3667f6=this[_0x5b251d(0x329)][_0x5b251d(0x33e)][_0x5b251d(0x1e5)](()=>{const _0x5d8dda=_0x5b251d;this[_0x5d8dda(0x202)]&&clearTimeout(this[_0x5d8dda(0x202)]),this[_0x5d8dda(0x202)]=setTimeout(()=>{const _0x118939=_0x5d8dda;this[_0x118939(0x159)]=!0x1;},0x7d0);});return()=>{const _0x351567=_0x5b251d;_0x4892cb[_0x351567(0x306)](),_0x3667f6[_0x351567(0x306)]();};}[_0x5f0329(0x235)](_0x55656d,_0x46ec61,_0x1e0548,_0x333fc4){const _0x2d259f=_0x5f0329,_0x14187a=new a[(_0x2d259f(0x20f))](_0x55656d)[_0x2d259f(0x37c)](0.2)['toRgbString'](),_0x3b6a76=new C[(_0x2d259f(0x3b9))](Rt+a[_0x2d259f(0x2b7)](H),{'pointsGroup':_0x46ec61,'fill':_0x14187a||C[_0x2d259f(0x2cb)](a[_0x2d259f(0x404)][_0x2d259f(0x16a)],0.2),'left':_0x1e0548,'top':_0x333fc4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d259f(0x221)][_0x2d259f(0x375)](_0x3b6a76),this[_0x2d259f(0x332)][_0x2d259f(0x2df)](_0x3b6a76,T['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x29a282,_0x2cc6bf,_0x1203d0,_0x1b1f74){const _0x4bc093=_0x5f0329,_0x502f1a=new a[(_0x4bc093(0x20f))](_0x29a282)[_0x4bc093(0x37c)](0.2)[_0x4bc093(0x291)](),_0xfcca82=new C[(_0x4bc093(0x3b9))](bt+a['generateRandomId'](H),{'pointsGroup':_0x2cc6bf,'fill':_0x502f1a||C[_0x4bc093(0x2cb)](a[_0x4bc093(0x404)][_0x4bc093(0x16a)],0.2),'left':_0x1203d0,'top':_0x1b1f74,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4bc093(0x221)][_0x4bc093(0x375)](_0xfcca82),this[_0x4bc093(0x332)][_0x4bc093(0x2df)](_0xfcca82,T[_0x4bc093(0x336)]);}[_0x5f0329(0x169)](_0x104989){const _0x35a0d4=_0x104989[0x0],_0x8b9b02=_0x35a0d4[0x0],_0x5d4599=_0x35a0d4[0x2],{x:_0x16520c,y:_0x153a72}=_0x8b9b02,{x:_0x474819,y:_0x259204}=_0x5d4599;return{'left':_0x16520c,'top':_0x153a72,'width':_0x474819-_0x16520c,'height':_0x259204-_0x153a72};}['_getScale'](){const _0x21569=_0x5f0329,{scaleX:_0xc77579,scaleY:_0x21cc1d}=this['_scene'][_0x21569(0x2ff)]();return Math[_0x21569(0x37f)](_0xc77579,_0x21cc1d);}}var Lt=Object['getOwnPropertyDescriptor'],Mt=(_0x329390,_0x2a6c3a,_0x28ed09,_0x37a37d)=>{for(var _0x4c1661=_0x37a37d>0x1?void 0x0:_0x37a37d?Lt(_0x2a6c3a,_0x28ed09):_0x2a6c3a,_0xdc0470=_0x329390['length']-0x1,_0x4b3f85;_0xdc0470>=0x0;_0xdc0470--)(_0x4b3f85=_0x329390[_0xdc0470])&&(_0x4c1661=_0x4b3f85(_0x4c1661)||_0x4c1661);return _0x4c1661;},q=(_0x3f702f,_0x2a3cf3)=>(_0x112e4f,_0xfcc84c)=>_0x2a3cf3(_0x112e4f,_0xfcc84c,_0x3f702f);let Ee=class extends a[_0x5f0329(0x3f4)]{constructor(_0x1b7e93,_0x37443a,_0x3faa44,_0x43fca6,_0x18f84f){const _0x5a37cb=_0x5f0329;super(),_(this,_0x5a37cb(0x22b),[]),_(this,_0x5a37cb(0x1b4),[]),(this['_context']=_0x1b7e93,this[_0x5a37cb(0x238)]=_0x37443a,this[_0x5a37cb(0x22f)]=_0x3faa44,this[_0x5a37cb(0x3b8)]=_0x43fca6,this['_themeService']=_0x18f84f,this[_0x5a37cb(0x1a0)]());}['_init'](){const _0x483ae9=_0x5f0329,_0x48106f=this['_context'][_0x483ae9(0x3b6)],_0x386eb6=this[_0x483ae9(0x238)];this[_0x483ae9(0x385)](I[_0x483ae9(0x15d)]([this[_0x483ae9(0x22f)][_0x483ae9(0x163)](_0x48106f),this[_0x483ae9(0x2af)][_0x483ae9(0x278)]])[_0x483ae9(0x217)]($[_0x483ae9(0x30d)](([_0x1c4feb,_0x2f4643])=>({'skeleton':_0x386eb6['getSkeleton'](),'cursors':[..._0x1c4feb[_0x483ae9(0x282)]()][_0x483ae9(0x30c)](_0x1caa78=>({..._0x1caa78,'color':this['_themeService'][_0x483ae9(0x3d0)](_0x1caa78[_0x483ae9(0x2bf)])}))})))['subscribe'](_0x1db8c9=>{const _0x3e86cd=_0x483ae9;if(this[_0x3e86cd(0x153)](),_0x1db8c9){const {skeleton:_0x26fa2f,cursors:_0x85abc7}=_0x1db8c9;this[_0x3e86cd(0x39f)](_0x26fa2f,_0x85abc7);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x5f0329(0x39f)](_0x3b6e5e,_0x57abb4){const _0x2b45c9=_0x5f0329,{scene:_0x589460,mainComponent:_0x30c69b}=this[_0x2b45c9(0x40e)],_0x51c582=_0x57abb4['map'](_0x5318b0=>new Le(_0x5318b0,_0x589460,_0x3b6e5e,_0x30c69b));this[_0x2b45c9(0x22b)]=_0x51c582,this[_0x2b45c9(0x1b4)]=_0x57abb4;}[_0x5f0329(0x19d)](){const _0x3fdda1=_0x5f0329;this[_0x3fdda1(0x153)]();const {scene:_0x29c44c,mainComponent:_0x230849}=this['_context'],_0x1a0247=this['_docSkeletonManagerService']['getSkeleton'](),_0x5cf9f8=this[_0x3fdda1(0x1b4)][_0x3fdda1(0x30d)](_0x23c15a=>new Le(_0x23c15a,_0x29c44c,_0x1a0247,_0x230849));this[_0x3fdda1(0x22b)]=_0x5cf9f8;}[_0x5f0329(0x153)](){const _0x46e4ef=_0x5f0329;this[_0x46e4ef(0x22b)][_0x46e4ef(0x205)](_0x3f86e4=>_0x3f86e4['dispose']()),this[_0x46e4ef(0x22b)]=[];}[_0x5f0329(0x239)](){const _0x5d5a35=_0x5f0329,_0x473674=[T[_0x5d5a35(0x2e5)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x455060=>{const _0xb972c=_0x5d5a35;_0x473674[_0xb972c(0x1ac)](_0x455060['id'])&&_0x455060[_0xb972c(0x355)][_0xb972c(0x3b6)]===this[_0xb972c(0x40e)][_0xb972c(0x3b6)]&&this[_0xb972c(0x19d)]();}));}[_0x5f0329(0x17b)](){const _0x571ca9=_0x5f0329;this['disposeWithMe'](a['fromEventSubject'](this[_0x571ca9(0x40e)][_0x571ca9(0x3ce)]['onTransformChange$'])[_0x571ca9(0x217)]($[_0x571ca9(0x372)](_0x5aa027=>_0x5aa027[_0x571ca9(0x1ae)]===C[_0x571ca9(0x2c3)][_0x571ca9(0x2ce)]),$[_0x571ca9(0x295)](0x10))[_0x571ca9(0x2c2)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x5f0329(0x2b6)](V['DocSkeletonManagerService'])),q(0x2,a[_0x5f0329(0x2b6)](F)),q(0x3,a[_0x5f0329(0x1b7)]),q(0x4,a[_0x5f0329(0x2b6)](a['ThemeService']))],Ee);const At=0x1,Pt=1.5;function _0x38d6(_0x288b37,_0x25ce15){_0x288b37=_0x288b37-0x140;const _0x5d04ce=_0x5d04();let _0x38d6b2=_0x5d04ce[_0x288b37];return _0x38d6b2;}class je extends C['Shape']{constructor(_0x6300c6,_0x413e79){const _0x5c569c=_0x5f0329;super(_0x6300c6,_0x413e79),_(this,_0x5c569c(0x249)),_(this,_0x5c569c(0x152),!0x1),_(this,_0x5c569c(0x140)),_(this,_0x5c569c(0x3e2),''),_(this,_0x5c569c(0x34d),_0x5c569c(0x15e)),_(this,_0x5c569c(0x251)),(_0x413e79&&this[_0x5c569c(0x3d2)](_0x413e79),this[_0x5c569c(0x35d)][_0x5c569c(0x1e5)](()=>this[_0x5c569c(0x3d2)]({'hovered':!0x0})),this['onPointerLeave$'][_0x5c569c(0x1e5)](()=>this[_0x5c569c(0x3d2)]({'hovered':!0x1})));}['setShapeProps'](_0x1fc3f6){const _0x2e9d40=_0x5f0329;var _0x28e388,_0x5b9bff,_0x4ca670,_0x4c9a11,_0x5ed5ae,_0x5279f7;this['_color']=(_0x28e388=_0x1fc3f6['color'])!=null?_0x28e388:this[_0x2e9d40(0x249)],this[_0x2e9d40(0x152)]=(_0x5b9bff=_0x1fc3f6[_0x2e9d40(0x20c)])!=null?_0x5b9bff:this[_0x2e9d40(0x152)],this['_range']=(_0x4ca670=_0x1fc3f6['range'])!=null?_0x4ca670:this[_0x2e9d40(0x140)],this['_name']=(_0x4c9a11=_0x1fc3f6['name'])!=null?_0x4c9a11:this[_0x2e9d40(0x3e2)],this[_0x2e9d40(0x34d)]=(_0x5ed5ae=_0x1fc3f6[_0x2e9d40(0x299)])!=null?_0x5ed5ae:this[_0x2e9d40(0x34d)],this[_0x2e9d40(0x251)]=(_0x5279f7=_0x1fc3f6[_0x2e9d40(0x2b5)])!=null?_0x5279f7:this[_0x2e9d40(0x251)],this[_0x2e9d40(0x1d1)]({'width':_0x1fc3f6[_0x2e9d40(0x338)],'height':_0x1fc3f6[_0x2e9d40(0x380)]});}[_0x5f0329(0x2cc)](_0x13f0e9){const _0x3bbbc4=_0x5f0329,{row:_0x205275,column:_0x3fae64}=_0x13f0e9;if(_0x205275>=this[_0x3bbbc4(0x140)][_0x3bbbc4(0x272)]&&_0x205275<=this[_0x3bbbc4(0x140)][_0x3bbbc4(0x393)]&&_0x3fae64>=this['_range'][_0x3bbbc4(0x331)]&&_0x3fae64<=this[_0x3bbbc4(0x140)][_0x3bbbc4(0x1e8)]){this[_0x3bbbc4(0x3d2)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5f0329(0x2d5)](_0x5d945d){return!0x1;}['_draw'](_0x5e2f1c){const _0xc94ced=_0x5f0329;C[_0xc94ced(0x164)][_0xc94ced(0x396)](_0x5e2f1c,{'width':this[_0xc94ced(0x338)],'height':this[_0xc94ced(0x380)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc94ced(0x251)]}),this[_0xc94ced(0x152)]&&(_0x5e2f1c[_0xc94ced(0x394)](),_0x5e2f1c[_0xc94ced(0x313)](0x1,0x0,0x0,0x1,this[_0xc94ced(0x338)],this[_0xc94ced(0x34d)]===_0xc94ced(0x20a)?0x0:-X),re[_0xc94ced(0x396)](_0x5e2f1c,{'text':this['_name'],'color':this[_0xc94ced(0x249)]}),_0x5e2f1c[_0xc94ced(0x1fa)]());}}var wt=Object[_0x5f0329(0x2e9)],yt=(_0x585c8a,_0x52f7e9,_0x469347,_0xa41eb6)=>{const _0x3c3a44=_0x5f0329;for(var _0x5ef895=_0xa41eb6>0x1?void 0x0:_0xa41eb6?wt(_0x52f7e9,_0x469347):_0x52f7e9,_0x502e83=_0x585c8a[_0x3c3a44(0x23b)]-0x1,_0x333bd6;_0x502e83>=0x0;_0x502e83--)(_0x333bd6=_0x585c8a[_0x502e83])&&(_0x5ef895=_0x333bd6(_0x5ef895)||_0x5ef895);return _0x5ef895;},ue=(_0x4f0562,_0x15b14a)=>(_0x5757d9,_0x51336e)=>_0x15b14a(_0x5757d9,_0x51336e,_0x4f0562);const $t=0x1389;let Ce=class extends a[_0x5f0329(0x3f4)]{constructor(_0x1f0f2e,_0x13483f,_0x5341e3,_0x5416d8){const _0x5cd777=_0x5f0329;super(),_(this,'_cursors',new Set()),_(this,_0x5cd777(0x2db),null),(this[_0x5cd777(0x40e)]=_0x1f0f2e,this[_0x5cd777(0x360)]=_0x13483f,this['_collabCursorController']=_0x5341e3,this[_0x5cd777(0x2af)]=_0x5416d8,this[_0x5cd777(0x1a0)]());}[_0x5f0329(0x1a0)](){const _0x5319d8=_0x5f0329;this['_sheetSkeletonManagerService'][_0x5319d8(0x2be)][_0x5319d8(0x217)]($[_0x5319d8(0x28e)](this[_0x5319d8(0x3f8)]),$[_0x5319d8(0x188)](_0x37d310=>{const _0x1e646a=_0x5319d8;if(_0x37d310){const _0x4d4723=_0x37d310[_0x1e646a(0x1a3)];return I[_0x1e646a(0x15d)](this[_0x1e646a(0x22f)][_0x1e646a(0x163)](this[_0x1e646a(0x40e)]['unitId']),this[_0x1e646a(0x2af)][_0x1e646a(0x278)])[_0x1e646a(0x217)]($[_0x1e646a(0x30d)](([_0x588355,_0x523060])=>{const _0x3411b1=_0x1e646a,_0x474389=new Map();return _0x588355[_0x3411b1(0x205)]((_0x291ec7,_0x2ebb36)=>{const _0x3e2697=_0x3411b1;if(_0x291ec7[_0x3e2697(0x1b0)]===_0x4d4723){const _0x47f321={..._0x291ec7};_0x47f321[_0x3e2697(0x2bf)]=this[_0x3e2697(0x2af)]['getColorFromTheme'](_0x291ec7[_0x3e2697(0x2bf)]),_0x474389['set'](_0x2ebb36,_0x47f321);}}),{'skeleton':_0x37d310,'cursors':_0x474389};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x5319d8(0x2c2)](({skeleton:_0x490f85,cursors:_0x121917})=>{const _0x3ecb78=_0x5319d8;this[_0x3ecb78(0x153)](),_0x490f85&&this[_0x3ecb78(0x39f)](_0x490f85,_0x121917);}),this['_sheetSkeletonManagerService'][_0x5319d8(0x2be)]['subscribe'](_0x4c3cd3=>{const _0x2502e8=_0x5319d8;if(_0x4c3cd3==null)return;const {skeleton:_0x633ebf}=_0x4c3cd3,{scene:_0x185c72}=this['_context'];_0x185c72['onPointerMove$']['subscribeEvent'](a[_0x2502e8(0x1fc)](_0x3d162e=>{const _0x47cd4d=_0x2502e8;var _0x2255ba,_0x39b8ac;const {offsetX:_0x571012,offsetY:_0xbc4547}=_0x3d162e,{x:_0x3b4ad8,y:_0x16786d}=_0x185c72[_0x47cd4d(0x2bb)](C['Vector2'][_0x47cd4d(0x22d)]([_0x571012,_0xbc4547])),{scaleX:_0x5a36fc,scaleY:_0x3a7cde}=_0x185c72[_0x47cd4d(0x2ff)](),_0x56d833=_0x185c72[_0x47cd4d(0x247)](C[_0x47cd4d(0x2d1)][_0x47cd4d(0x305)]),_0x5ef7bf=_0x185c72[_0x47cd4d(0x2a1)](C[_0x47cd4d(0x2f0)][_0x47cd4d(0x22d)]([_0x3b4ad8,_0x16786d]),_0x56d833),_0x29779d=_0x633ebf[_0x47cd4d(0x151)](_0x571012,_0xbc4547,_0x5a36fc,_0x3a7cde,_0x5ef7bf);((_0x2255ba=this['_lastPointer'])==null?void 0x0:_0x2255ba[_0x47cd4d(0x3dd)])===_0x29779d[_0x47cd4d(0x3dd)]&&((_0x39b8ac=this[_0x47cd4d(0x2db)])==null?void 0x0:_0x39b8ac[_0x47cd4d(0x1e4)])===_0x29779d[_0x47cd4d(0x1e4)]||this['_cursors']['forEach'](_0x35a669=>{const _0x1dac24=_0x47cd4d;_0x35a669[_0x1dac24(0x2cc)](_0x29779d);});},0x64));});}[_0x5f0329(0x39f)](_0x308d31,_0x2f825b){const _0x479ada=_0x5f0329;var _0x5a6534;const _0xb8a2e9=(_0x5a6534=this[_0x479ada(0x360)][_0x479ada(0x2e4)]())==null?void 0x0:_0x5a6534[_0x479ada(0x1ab)];if(!_0xb8a2e9)return;const _0x55001f=this[_0x479ada(0x22e)]();if(!_0x55001f)return;this['_cursors']['forEach'](_0x4b2fb8=>{const _0x2b5f63=_0x479ada;_0x4b2fb8[_0x2b5f63(0x179)]();});const {scene:_0x2dc4fb}=_0x55001f,_0x8c3769=xt(Array[_0x479ada(0x3cb)](_0x2f825b[_0x479ada(0x282)]()))[_0x479ada(0x30d)](_0x14631f=>{const _0xeee61b=_0x479ada,{color:_0x51483a,range:_0x39b15b,name:_0x46a4f8,selection:_0x33b1d3,sheetID:_0x228f4d}=_0x14631f,{startColumn:_0x418c26,startRow:_0x6a9224,endColumn:_0xd365a0,endRow:_0x1c9598}=_0x39b15b,_0x51a7ff=J[_0xeee61b(0x2f9)](_0x6a9224,_0x418c26,_0x2dc4fb,_0xb8a2e9),_0x53663d=J[_0xeee61b(0x2f9)](_0x1c9598,_0xd365a0,_0x2dc4fb,_0xb8a2e9),{columnHeaderHeightAndMarginTop:_0x2259bd}=_0xb8a2e9,{startX:_0x1a6ca9,startY:_0x2ab560}=_0x51a7ff,{endX:_0x204504,endY:_0x5bccea}=_0x53663d,_0x23fa05=_0x204504-_0x1a6ca9,_0x592358=_0x5bccea-_0x2ab560,_0x542b06={'labelPosition':_0x2ab560-_0x2259bd>=X?_0xeee61b(0x15e):_0xeee61b(0x20a),'sheetID':_0x228f4d,'range':_0x39b15b,'color':_0x51483a,'name':_0x46a4f8,'selection':_0x33b1d3,'left':_0x1a6ca9,'top':_0x2ab560,'width':_0x23fa05,'height':_0x592358,'evented':!0x1,'zIndex':$t};return new je(_0x46a4f8,_0x542b06);});_0x2dc4fb[_0x479ada(0x281)](_0x8c3769,At),this[_0x479ada(0x1b4)]=new Set(_0x8c3769);}[_0x5f0329(0x153)](){const _0x5763c8=_0x5f0329;var _0x3c0b5e;(_0x3c0b5e=this[_0x5763c8(0x1b4)])==null||_0x3c0b5e['forEach'](_0x59fb85=>_0x59fb85[_0x5763c8(0x26d)]());}['_getSheetObject'](){const _0x151972=_0x5f0329;return J[_0x151972(0x2ba)](this['_context'][_0x151972(0x321)],this[_0x151972(0x40e)]);}};Ce=yt([ue(0x1,a[_0x5f0329(0x2b6)](J['SheetSkeletonManagerService'])),ue(0x2,a[_0x5f0329(0x2b6)](F)),ue(0x3,a[_0x5f0329(0x2b6)](a['ThemeService']))],Ce);function xt(_0x1ac203){const _0x1b3ab8=_0x5f0329,_0x510ded=new Map();return _0x1ac203[_0x1b3ab8(0x205)](_0x2f500c=>{const _0x353a01=_0x1b3ab8;if(_0x510ded['has'](_0x2f500c['selection'])){const _0x132518=_0x510ded['get'](_0x2f500c[_0x353a01(0x33c)]);_0x132518['name']+=',\x20'+_0x2f500c[_0x353a01(0x3d6)];}else _0x510ded[_0x353a01(0x3c7)](_0x2f500c[_0x353a01(0x33c)],_0x2f500c);}),Array[_0x1b3ab8(0x3cb)](_0x510ded[_0x1b3ab8(0x282)]());}var Bt=Object[_0x5f0329(0x2e9)],Ft=(_0x2e18bd,_0x442e73,_0x4035e7,_0x2ea9a6)=>{const _0x38abe3=_0x5f0329;for(var _0x2c99f0=_0x2ea9a6>0x1?void 0x0:_0x2ea9a6?Bt(_0x442e73,_0x4035e7):_0x442e73,_0x338502=_0x2e18bd[_0x38abe3(0x23b)]-0x1,_0x267d10;_0x338502>=0x0;_0x338502--)(_0x267d10=_0x2e18bd[_0x338502])&&(_0x2c99f0=_0x267d10(_0x2c99f0)||_0x2c99f0);return _0x2c99f0;},y=(_0x4e1eb5,_0x2222c6)=>(_0x2012f1,_0x448bab)=>_0x2222c6(_0x2012f1,_0x448bab,_0x4e1eb5);let Z=class extends a[_0x5f0329(0x248)]{constructor(_0x124f00,_0x216cc9,_0x277f44,_0x1d6ede,_0x969709,_0x22d0ec){const _0x3e2dd2=_0x5f0329;super(),this[_0x3e2dd2(0x230)]=_0x124f00,this[_0x3e2dd2(0x354)]=_0x216cc9,this[_0x3e2dd2(0x206)]=_0x277f44,this[_0x3e2dd2(0x3d7)]=_0x1d6ede,this['_notificationService']=_0x969709,this[_0x3e2dd2(0x25c)]=_0x22d0ec,this['_setupBeforeClosingHandler'](),this[_0x3e2dd2(0x28a)]();}['_setupBeforeClosingHandler'](){const _0x33b614=_0x5f0329;this[_0x33b614(0x385)](this[_0x33b614(0x230)][_0x33b614(0x19c)](()=>{const _0x50d6c2=_0x33b614;if(this['_localCacheService']['saveTaskMap'][_0x50d6c2(0x1ba)])return this[_0x50d6c2(0x25c)]['t'](_0x50d6c2(0x2e8));}));}['_initEvent'](){const _0x112992=_0x5f0329;this[_0x112992(0x385)](this[_0x112992(0x206)][_0x112992(0x2f8)]['subscribe'](_0x20812d=>{const _0x536873=_0x112992;_0x20812d['id']===u[_0x536873(0x2e7)][_0x536873(0x2b3)]&&this[_0x536873(0x3d7)][_0x536873(0x3da)]({'type':p[_0x536873(0x172)][_0x536873(0x359)],'content':this[_0x536873(0x25c)]['t'](_0x536873(0x210))}),_0x20812d['id']===u['CollaborationUIEventId'][_0x536873(0x3a7)]&&this['_messageService'][_0x536873(0x3da)]({'type':p['MessageType']['Warning'],'content':this[_0x536873(0x25c)]['t']('collaboration.closeRoom')}),_0x20812d['id']===u[_0x536873(0x2e7)][_0x536873(0x2c1)]&&this['_notificationService'][_0x536873(0x3da)]({'title':this[_0x536873(0x25c)]['t'](_0x536873(0x2a2)),'content':this[_0x536873(0x25c)]['t'](_0x536873(0x25b)),'type':_0x536873(0x146),'duration':0x0}),_0x20812d['id']===u[_0x536873(0x2e7)]['CONFLICT']&&this['_messageService'][_0x536873(0x3da)]({'type':p[_0x536873(0x172)][_0x536873(0x382)],'content':this[_0x536873(0x25c)]['t'](_0x536873(0x276))+'('+_0x20812d[_0x536873(0x403)]+')'}),_0x20812d['id']===u[_0x536873(0x2e7)][_0x536873(0x3aa)]&&this[_0x536873(0x3d7)][_0x536873(0x3da)]({'type':p[_0x536873(0x172)][_0x536873(0x359)],'content':this[_0x536873(0x25c)]['t'](_0x20812d[_0x536873(0x403)]||'')}),_0x20812d['id']===u['CollaborationUIEventId'][_0x536873(0x17a)]&&this[_0x536873(0x3d7)][_0x536873(0x3da)]({'type':p[_0x536873(0x172)][_0x536873(0x359)],'content':this[_0x536873(0x25c)]['t'](_0x536873(0x2cf))}),_0x20812d['id']===u['CollaborationUIEventId'][_0x536873(0x28c)]&&this['_messageService']['show']({'type':p[_0x536873(0x172)][_0x536873(0x382)],'content':this['_localeService']['t'](_0x536873(0x35b))}),_0x20812d['id']===u[_0x536873(0x2e7)][_0x536873(0x225)]&&this['_messageService']['show']({'type':p[_0x536873(0x172)][_0x536873(0x382)],'content':this[_0x536873(0x25c)]['t'](_0x536873(0x1d0))});}));}};Z=Ft([y(0x0,O[_0x5f0329(0x1c9)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x2ca)])),y(0x3,O[_0x5f0329(0x14a)]),y(0x4,O[_0x5f0329(0x3b0)]),y(0x5,a[_0x5f0329(0x2b6)](a['LocaleService']))],Z);var jt=Object[_0x5f0329(0x2e9)],kt=(_0x34ab3e,_0x506ea8,_0x1a1d0b,_0x1f5edc)=>{const _0x264ed3=_0x5f0329;for(var _0x5ceacf=_0x1f5edc>0x1?void 0x0:_0x1f5edc?jt(_0x506ea8,_0x1a1d0b):_0x506ea8,_0x4d9b4f=_0x34ab3e[_0x264ed3(0x23b)]-0x1,_0x133d28;_0x4d9b4f>=0x0;_0x4d9b4f--)(_0x133d28=_0x34ab3e[_0x4d9b4f])&&(_0x5ceacf=_0x133d28(_0x5ceacf)||_0x5ceacf);return _0x5ceacf;},z=(_0x191a53,_0x31ed1b)=>(_0xdce3cf,_0x5a9570)=>_0x31ed1b(_0xdce3cf,_0x5a9570,_0x191a53);let Q=class extends a[_0x5f0329(0x248)]{constructor(_0x15080e,_0x333564,_0x31e386,_0x263faf){const _0xea7b21=_0x5f0329;super(),_(this,_0xea7b21(0x141)),(this[_0xea7b21(0x180)]=_0x15080e,this['_httpService']=_0x333564,this[_0xea7b21(0x181)]=_0x31e386,this[_0xea7b21(0x232)]=_0x263faf,this[_0xea7b21(0x1a0)]());}['_init'](){const _0xc7592d=_0x5f0329;this['_initWindowErrorListener'](),this[_0xc7592d(0x285)](),this[_0xc7592d(0x38a)](),this[_0xc7592d(0x24d)]();}[_0x5f0329(0x24d)](){const _0x240304=_0x5f0329;this[_0x240304(0x385)](this[_0x240304(0x232)][_0x240304(0x14f)][_0x240304(0x2c2)](_0x2e1edb=>{const _0x4b11ea=_0x240304;this[_0x4b11ea(0x141)]=_0x2e1edb==null?void 0x0:_0x2e1edb[_0x4b11ea(0x361)];}));}[_0x5f0329(0x287)](){const _0xab8df0=_0x5f0329,_0x2516cf=_0x3dcf6b=>{const _0xb06ccd=_0x38d6;var _0x5259cd;this['_uploadLog'](_0xb06ccd(0x146),_0xb06ccd(0x2d2)+_0x3dcf6b[_0xb06ccd(0x1e3)]+_0xb06ccd(0x201)+_0x3dcf6b[_0xb06ccd(0x16f)]+':'+_0x3dcf6b[_0xb06ccd(0x29d)]+':'+_0x3dcf6b['colno']+'\x0a'+(((_0x5259cd=_0x3dcf6b['error'])==null?void 0x0:_0x5259cd[_0xb06ccd(0x16c)])||''));};window[_0xab8df0(0x2f1)]('error',_0x2516cf),this['disposeWithMe'](()=>{const _0x5574b8=_0xab8df0;window[_0x5574b8(0x317)](_0x5574b8(0x146),_0x2516cf);});}[_0x5f0329(0x285)](){const _0x425e9c=_0x5f0329,_0x3d44e4=_0x555d11=>{const _0x42759b=_0x38d6;this[_0x42759b(0x2fd)]('error',_0x42759b(0x1b9)+_0x555d11[_0x42759b(0x214)]);};window['addEventListener'](_0x425e9c(0x35c),_0x3d44e4),this['disposeWithMe'](()=>{const _0x16f20d=_0x425e9c;window['removeEventListener'](_0x16f20d(0x35c),_0x3d44e4);});}['_monkeyPatchLogService'](){const _0xd5b9fc=_0x5f0329,_0x4fcea3=this[_0xd5b9fc(0x181)][_0xd5b9fc(0x146)][_0xd5b9fc(0x178)](this[_0xd5b9fc(0x181)]);this[_0xd5b9fc(0x181)]['error']=(..._0x2d9754)=>{const _0x29dc8c=_0xd5b9fc,_0x204bfb=_0x2d9754[_0x29dc8c(0x30d)](_0x1de0d7=>_0x1de0d7 instanceof Error?_0x1de0d7[_0x29dc8c(0x1e3)]+'\x0a'+_0x1de0d7[_0x29dc8c(0x16c)]:String(_0x1de0d7))[_0x29dc8c(0x194)]('\x20');this['_uploadLog'](_0x29dc8c(0x146),'[LogService\x20Error]:\x20'+_0x204bfb),_0x4fcea3(..._0x2d9754);},this[_0xd5b9fc(0x385)](()=>{const _0x4ac45e=_0xd5b9fc;this[_0x4ac45e(0x181)][_0x4ac45e(0x146)]=_0x4fcea3;});}[_0x5f0329(0x2fd)](_0x15ba61,_0x47f90f){const _0x158034=_0x5f0329;try{const _0x5d12a7={'userId':this[_0x158034(0x141)],'logLabel':_0x15ba61,'content':_0x47f90f};this[_0x158034(0x190)][_0x158034(0x213)](_0x158034(0x31d),{'body':_0x5d12a7})[_0x158034(0x37d)](()=>{});}catch{}}};Q=kt([z(0x0,a['Inject'](a['Injector'])),z(0x1,a[_0x5f0329(0x2b6)](x[_0x5f0329(0x28d)])),z(0x2,a['ILogService']),z(0x3,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x3a9)]))],Q);const Yt=_0x5f0329(0x156),Me={};var Ht=Object[_0x5f0329(0x2e9)],Wt=(_0x4150ec,_0x482cba,_0x528eb7,_0x20b8e5)=>{const _0x1e7cd2=_0x5f0329;for(var _0x265cd2=_0x20b8e5>0x1?void 0x0:_0x20b8e5?Ht(_0x482cba,_0x528eb7):_0x482cba,_0x204487=_0x4150ec[_0x1e7cd2(0x23b)]-0x1,_0x2ea741;_0x204487>=0x0;_0x204487--)(_0x2ea741=_0x4150ec[_0x204487])&&(_0x265cd2=_0x2ea741(_0x265cd2)||_0x265cd2);return _0x265cd2;},Ae=(_0x118071,_0x80c551)=>(_0xaa347c,_0x54c511)=>_0x80c551(_0xaa347c,_0x54c511,_0x118071);let ee=class{constructor(_0x1e053a,_0x349d23){const _0x544ba4=_0x5f0329;this[_0x544ba4(0x261)]=_0x1e053a,this['_renderManagerService']=_0x349d23;}[_0x5f0329(0x1b5)](_0x53c2d8){const _0x48a4b7=_0x5f0329;this['_transformUndoRedoStack'](_0x53c2d8),this[_0x48a4b7(0x32d)](_0x53c2d8);}[_0x5f0329(0x207)](_0xf11ed8){const _0x4a6dbb=_0x5f0329,{unitID:_0x3ea70d}=_0xf11ed8,_0x27bb08=this['_renderManagerService'][_0x4a6dbb(0x21e)](_0x3ea70d)[_0x4a6dbb(0x241)](T[_0x4a6dbb(0x2aa)]),{redoCache:_0x306f62}=_0x27bb08['getUndoRedoMutationParamsCache']();if(_0x306f62[_0x4a6dbb(0x23b)]===0x0)return _0xf11ed8;let _0x54303a=a[_0x4a6dbb(0x2eb)][_0x4a6dbb(0x212)](_0xf11ed8['mutations'][0x0]);for(let _0x2349ab=0x0;_0x2349ab<_0x306f62['length'];_0x2349ab++){const _0x489948={'id':_0x4a6dbb(0x2e2),'params':{..._0x306f62[_0x2349ab]}},_0x305db1=this[_0x4a6dbb(0x261)][_0x4a6dbb(0x3fd)](_0x54303a,_0x489948,!0x1);if(g['isTransformMutationFailure'](_0x305db1))throw _0x305db1[_0x4a6dbb(0x146)];_0x54303a=_0x305db1['m1Prime'];}return{...a[_0x4a6dbb(0x2eb)][_0x4a6dbb(0x212)](_0xf11ed8),'mutations':[_0x54303a]};}[_0x5f0329(0x379)](_0x38494b){const _0x3059ae=_0x5f0329,{unitID:_0x1fd914}=_0x38494b,_0xac32c4=this['_renderManagerService'][_0x3059ae(0x21e)](_0x1fd914)[_0x3059ae(0x241)](T['DocIMEInputManagerService']),{undoCache:_0x5db27a,redoCache:_0x5580a3}=_0xac32c4['getUndoRedoMutationParamsCache']();if(_0x5db27a[_0x3059ae(0x23b)]===0x0||_0x5580a3[_0x3059ae(0x23b)]===0x0)return;const _0x3d04cc=[],_0xab7afb=[];let _0x4fffeb=a['Tools'][_0x3059ae(0x212)](_0x38494b[_0x3059ae(0x366)][0x0]),_0x32d6a6=a[_0x3059ae(0x2eb)][_0x3059ae(0x212)](_0x38494b['mutations'][0x0]);for(let _0x26b742=_0x5db27a[_0x3059ae(0x23b)]-0x1;_0x26b742>=0x0;_0x26b742--){const _0x2d4f74={'id':_0x3059ae(0x2e2),'params':{..._0x5db27a[_0x26b742]}},_0x45e8d8={'id':_0x3059ae(0x2e2),'params':{..._0x5580a3[_0x26b742]}},_0x7f799b=this[_0x3059ae(0x261)][_0x3059ae(0x3fd)](_0x4fffeb,_0x2d4f74,!0x1),_0x198299=this[_0x3059ae(0x261)][_0x3059ae(0x3fd)](_0x32d6a6,_0x45e8d8,!0x1);if(g[_0x3059ae(0x328)](_0x7f799b))throw _0x7f799b[_0x3059ae(0x146)];if(g[_0x3059ae(0x328)](_0x198299))throw _0x198299['error'];_0x3d04cc[_0x3059ae(0x419)](_0x7f799b[_0x3059ae(0x325)][_0x3059ae(0x355)]),_0xab7afb['unshift'](_0x198299[_0x3059ae(0x325)]['params']),_0x4fffeb=_0x7f799b[_0x3059ae(0x2e3)],_0x32d6a6=_0x198299[_0x3059ae(0x2e3)];}_0xac32c4[_0x3059ae(0x256)]({'undoCache':_0x3d04cc,'redoCache':_0xab7afb});}['_transformPreviousActiveRange'](_0x3c3be5){const _0x5e2535=_0x5f0329,{unitID:_0x1598e4}=_0x3c3be5,_0x2628fa=this[_0x5e2535(0x279)][_0x5e2535(0x21e)](_0x1598e4)[_0x5e2535(0x241)](T[_0x5e2535(0x2aa)]),_0x528a91=_0x2628fa[_0x5e2535(0x3cf)]();if(_0x528a91==null)return;const _0x5f27fb=[{'id':_0x5e2535(0x2e2),'params':{'unitId':_0x3c3be5[_0x5e2535(0x398)],'actions':null,'textRanges':[_0x528a91]}}],_0x4abf20=this[_0x5e2535(0x261)][_0x5e2535(0x2f4)](_0x3c3be5,_0x5f27fb);if(!g['isTransformMutationsWithChangesetSuccess'](_0x4abf20))throw _0x4abf20[_0x5e2535(0x146)];const _0x3da84f=_0x4abf20[_0x5e2535(0x325)][0x0]['params'][_0x5e2535(0x28f)];Array['isArray'](_0x3da84f)&&_0x3da84f[_0x5e2535(0x23b)]&&_0x2628fa[_0x5e2535(0x3ad)](_0x3da84f[0x0]);}};ee=Wt([Ae(0x0,g['ITransformService']),Ae(0x1,C[_0x5f0329(0x2bd)])],ee);var Vt=Object[_0x5f0329(0x2e9)],Gt=(_0x3044dd,_0x42a335,_0x4764ab,_0x5e8699)=>{const _0x51b736=_0x5f0329;for(var _0x37d925=_0x5e8699>0x1?void 0x0:_0x5e8699?Vt(_0x42a335,_0x4764ab):_0x42a335,_0xca91f9=_0x3044dd[_0x51b736(0x23b)]-0x1,_0x17797e;_0xca91f9>=0x0;_0xca91f9--)(_0x17797e=_0x3044dd[_0xca91f9])&&(_0x37d925=_0x17797e(_0x37d925)||_0x37d925);return _0x37d925;},Ie=(_0x1584d4,_0x1b4230)=>(_0x3b02c4,_0x1c7f7b)=>_0x1b4230(_0x3b02c4,_0x1c7f7b,_0x1584d4);let te=class{constructor(_0x5ac749,_0x126255,_0xd7f2db){const _0xd7c066=_0x5f0329;this[_0xd7c066(0x180)]=_0x5ac749,this[_0xd7c066(0x261)]=_0x126255,this[_0xd7c066(0x16e)]=_0xd7f2db;}['transformStateCache'](_0x5f9b2b){const _0x549b07=_0x5f0329;this[_0x549b07(0x386)](_0x5f9b2b);}[_0x5f0329(0x207)](_0x35f6ef){const _0x2b6040=_0x5f0329,{unitID:_0x5ced3e}=_0x35f6ef,{collaboration:_0x4882a1}=this[_0x2b6040(0x16e)][_0x2b6040(0x1e0)](_0x5ced3e);if(_0x4882a1[_0x2b6040(0x23b)]===0x0)return _0x35f6ef;let _0x4287bc=a['Tools']['deepClone'](_0x35f6ef[_0x2b6040(0x366)][0x0]);for(let _0x22b63a=0x0;_0x22b63a<_0x4882a1[_0x2b6040(0x23b)];_0x22b63a++){const _0x1e415f={'id':_0x2b6040(0x2e2),'params':{'unitId':_0x4882a1[_0x22b63a][_0x2b6040(0x3b6)],..._0x4882a1[_0x22b63a][_0x2b6040(0x23c)]}},_0x5420ed=this[_0x2b6040(0x261)]['transformMutation'](_0x4287bc,_0x1e415f,!0x1);if(g['isTransformMutationFailure'](_0x5420ed))throw _0x5420ed['error'];_0x4287bc=_0x5420ed['m1Prime'];}return{...a[_0x2b6040(0x2eb)]['deepClone'](_0x35f6ef),'mutations':[_0x4287bc]};}[_0x5f0329(0x386)](_0x1c54f3){const _0x1dc119=_0x5f0329,{unitID:_0x2a48e0}=_0x1c54f3,{history:_0x528899,collaboration:_0x123416}=this[_0x1dc119(0x16e)][_0x1dc119(0x1e0)](_0x2a48e0);if(_0x528899['length']===0x0&&_0x123416[_0x1dc119(0x23b)]===0x0)return;const _0x47edd5=[],_0x1c9126=[];let _0x24bb0c=a[_0x1dc119(0x2eb)][_0x1dc119(0x212)](_0x1c54f3[_0x1dc119(0x366)][0x0]),_0x416b60=a[_0x1dc119(0x2eb)][_0x1dc119(0x212)](_0x1c54f3[_0x1dc119(0x366)][0x0]);for(let _0x5d4b04=_0x528899[_0x1dc119(0x23b)]-0x1;_0x5d4b04>=0x0;_0x5d4b04--){const _0x203233={'id':_0x1dc119(0x2e2),'params':{'unitId':_0x528899[_0x5d4b04][_0x1dc119(0x3b6)],..._0x528899[_0x5d4b04][_0x1dc119(0x16b)]}},_0x5ade85={'id':_0x1dc119(0x2e2),'params':{'unitId':_0x528899[_0x5d4b04]['unitId'],..._0x528899[_0x5d4b04][_0x1dc119(0x23c)]}},_0x218443=this[_0x1dc119(0x261)]['transformMutation'](_0x24bb0c,_0x203233,!0x1),_0x1d5860=this['_transformService']['transformMutation'](_0x416b60,_0x5ade85,!0x1);if(g[_0x1dc119(0x328)](_0x218443))throw _0x218443[_0x1dc119(0x146)];if(g[_0x1dc119(0x328)](_0x1d5860))throw _0x1d5860[_0x1dc119(0x146)];_0x47edd5['unshift']({..._0x528899[_0x5d4b04],'undoState':_0x218443[_0x1dc119(0x325)]['params'],'redoState':_0x1d5860[_0x1dc119(0x325)]['params']}),_0x24bb0c=_0x218443[_0x1dc119(0x2e3)],_0x416b60=_0x1d5860[_0x1dc119(0x2e3)];}_0x24bb0c=a[_0x1dc119(0x2eb)]['deepClone'](_0x1c54f3[_0x1dc119(0x366)][0x0]),_0x416b60=a['Tools']['deepClone'](_0x1c54f3[_0x1dc119(0x366)][0x0]);for(let _0x5150de=_0x123416[_0x1dc119(0x23b)]-0x1;_0x5150de>=0x0;_0x5150de--){const _0x442e65={'id':_0x1dc119(0x2e2),'params':{'unitId':_0x123416[_0x5150de][_0x1dc119(0x3b6)],..._0x123416[_0x5150de][_0x1dc119(0x16b)]}},_0x217810={'id':_0x1dc119(0x2e2),'params':{'unitId':_0x123416[_0x5150de][_0x1dc119(0x3b6)],..._0x123416[_0x5150de][_0x1dc119(0x23c)]}},_0x31d84f=this[_0x1dc119(0x261)]['transformMutation'](_0x24bb0c,_0x442e65,!0x1),_0x28ba37=this[_0x1dc119(0x261)][_0x1dc119(0x3fd)](_0x416b60,_0x217810,!0x1);if(g[_0x1dc119(0x328)](_0x31d84f))throw _0x31d84f[_0x1dc119(0x146)];if(g[_0x1dc119(0x328)](_0x28ba37))throw _0x28ba37[_0x1dc119(0x146)];_0x1c9126['unshift']({..._0x123416[_0x5150de],'undoState':_0x31d84f['m2Prime'][_0x1dc119(0x355)],'redoState':_0x28ba37['m2Prime'][_0x1dc119(0x355)]}),_0x24bb0c=_0x31d84f[_0x1dc119(0x2e3)],_0x416b60=_0x28ba37['m1Prime'];}this[_0x1dc119(0x16e)][_0x1dc119(0x1ef)](_0x2a48e0,{'history':_0x47edd5,'collaboration':_0x1c9126});}};te=Gt([Ie(0x0,a[_0x5f0329(0x2b6)](a['Injector'])),Ie(0x1,g[_0x5f0329(0x3a1)]),Ie(0x2,a[_0x5f0329(0x2b6)](T[_0x5f0329(0x2ee)]))],te);var Xt=Object[_0x5f0329(0x2e9)],Kt=(_0x17dfb5,_0x3e0c94,_0x5e8f9f,_0x162702)=>{const _0x3a1abb=_0x5f0329;for(var _0xf03299=_0x162702>0x1?void 0x0:_0x162702?Xt(_0x3e0c94,_0x5e8f9f):_0x3e0c94,_0x349dc8=_0x17dfb5[_0x3a1abb(0x23b)]-0x1,_0x2ce48a;_0x349dc8>=0x0;_0x349dc8--)(_0x2ce48a=_0x17dfb5[_0x349dc8])&&(_0xf03299=_0x2ce48a(_0xf03299)||_0xf03299);return _0xf03299;},Pe=(_0x36f2ed,_0x2e178e)=>(_0x572eb2,_0x4a17a0)=>_0x2e178e(_0x572eb2,_0x4a17a0,_0x36f2ed);let se=class{constructor(_0xc76b0d,_0x52a62d){const _0x51869d=_0x5f0329;this[_0x51869d(0x180)]=_0xc76b0d,this['_transformService']=_0x52a62d;}['transformSelections'](_0x31df14){const _0x32c93a=_0x5f0329;var _0xeceb51;const _0x32bd92=this[_0x32c93a(0x180)][_0x32c93a(0x222)](V[_0x32c93a(0x14b)]),_0x287e77=(_0xeceb51=_0x32bd92[_0x32c93a(0x182)]())!=null?_0xeceb51:[];if(_0x287e77[_0x32c93a(0x23b)]===0x0)return;const _0x15588b=_0x31df14['unitID'],_0x5eaee0=[{'id':_0x32c93a(0x2e2),'params':{'unitId':_0x15588b,'actions':null,'textRanges':_0x287e77}}],_0x25d234=this[_0x32c93a(0x261)][_0x32c93a(0x2f4)](_0x31df14,_0x5eaee0);if(!g[_0x32c93a(0x390)](_0x25d234))throw _0x25d234[_0x32c93a(0x146)];const _0x413a06=_0x25d234[_0x32c93a(0x325)][0x0]['params']['textRanges'];Array[_0x32c93a(0x234)](_0x413a06)&&_0x413a06['length']&&_0x32bd92[_0x32c93a(0x1e2)](_0x413a06,{'unitId':_0x15588b,'subUnitId':_0x15588b},!0x1);}};se=Kt([Pe(0x0,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),Pe(0x1,g[_0x5f0329(0x3a1)])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x4a1874,_0x13c5ce,_0x31794d,_0xc321fd)=>{const _0x257afc=_0x5f0329;for(var _0x1d04d0=_0xc321fd>0x1?void 0x0:_0xc321fd?qt(_0x13c5ce,_0x31794d):_0x13c5ce,_0x121379=_0x4a1874[_0x257afc(0x23b)]-0x1,_0x1ec14f;_0x121379>=0x0;_0x121379--)(_0x1ec14f=_0x4a1874[_0x121379])&&(_0x1d04d0=_0x1ec14f(_0x1d04d0)||_0x1d04d0);return _0x1d04d0;},N=(_0x296fe7,_0x21460e)=>(_0x48e12f,_0x4bff61)=>_0x21460e(_0x48e12f,_0x4bff61,_0x296fe7);let ie=class extends a[_0x5f0329(0x248)]{constructor(_0x584890,_0x1ebc45,_0x468b7e,_0x3a2957,_0x45f833,_0x3dd03d,_0x116f3d,_0x335ded){const _0x5162bd=_0x5f0329;super(),_(this,'_status$',new I[(_0x5162bd(0x406))](u[_0x5162bd(0x39d)][_0x5162bd(0x353)])),(this[_0x5162bd(0x16e)]=_0x584890,this[_0x5162bd(0x1f5)]=_0x1ebc45,this[_0x5162bd(0x311)]=_0x468b7e,this[_0x5162bd(0x307)]=_0x3a2957,this[_0x5162bd(0x1d3)]=_0x45f833,this[_0x5162bd(0x1d9)]=_0x3dd03d,this[_0x5162bd(0x3d7)]=_0x116f3d,this[_0x5162bd(0x25c)]=_0x335ded,this[_0x5162bd(0x26a)]());}[_0x5f0329(0x26a)](){const _0x53f3a1=_0x5f0329;this['disposeWithMe'](this['_collaborationController'][_0x53f3a1(0x3ac)][_0x53f3a1(0x2c2)](_0x6a7bc8=>{const _0x61ffcf=_0x53f3a1,_0x49c955=this[_0x61ffcf(0x16e)]['docStateChange$'][_0x61ffcf(0x2c2)](_0x5228fc=>{const _0x2b61ce=_0x61ffcf;if(_0x5228fc==null)return;const {unitId:_0x50fd9e,redoState:_0x1ac379,commandId:_0x3b620f}=_0x5228fc;if(_0x50fd9e!==_0x6a7bc8['unitID'])return;const _0xf04be4={'id':_0x3b620f,'type':a[_0x2b61ce(0x2e0)]['MUTATION'],'params':{'unitId':_0x50fd9e,'actions':_0x1ac379[_0x2b61ce(0x2cd)],'textRanges':null}};_0x6a7bc8['onLocalMutation'](_0xf04be4);});if(_0x6a7bc8['disposeWithMe'](_0x49c955),_0x6a7bc8 instanceof u[_0x61ffcf(0x22a)]){const _0x58b9d9={'onTransformIME':_0x1e318b=>this['_docTransformIMECacheService'][_0x61ffcf(0x1b5)](_0x1e318b),'onTransformState':_0x1f9950=>this[_0x61ffcf(0x307)][_0x61ffcf(0x37e)](_0x1f9950),'onTransformSelections':_0x44e9b2=>this['_docTransformSelectionsService'][_0x61ffcf(0x2c7)](_0x44e9b2),'onSyncEditingCollabCursor':_0x24708b=>this['_docSyncEditingCollabCursorService'][_0x61ffcf(0x30f)](_0x24708b),'onTransformRemoteChangesetByIMECache':_0x568fbb=>this['_docTransformIMECacheService'][_0x61ffcf(0x207)](_0x568fbb),'onTransformRemoteChangesetByStateCache':_0x4e2704=>this[_0x61ffcf(0x307)][_0x61ffcf(0x207)](_0x4e2704)};_0x6a7bc8['addHandlerCallback'](_0x58b9d9);}}));}};ie=zt([N(0x0,a['Inject'](T[_0x5f0329(0x2ee)])),N(0x1,a[_0x5f0329(0x2b6)](u[_0x5f0329(0x196)])),N(0x2,a[_0x5f0329(0x2b6)](ee)),N(0x3,a[_0x5f0329(0x2b6)](te)),N(0x4,a[_0x5f0329(0x2b6)](se)),N(0x5,a[_0x5f0329(0x2b6)](be)),N(0x6,O[_0x5f0329(0x14a)]),N(0x7,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x2a0)]))],ie);var G=(_0x5aa3c4=>(_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1c1)]=0x0]='UNDEFINED',_0x5aa3c4[_0x5aa3c4['OK']=0x1]='OK',_0x5aa3c4[_0x5aa3c4['INTERNAL_ERROR']=0x2]=_0x5f0329(0x376),_0x5aa3c4[_0x5aa3c4['PERMISSION_DENIED']=0x3]=_0x5f0329(0x2c1),_0x5aa3c4[_0x5aa3c4['NOT_FOUND']=0x4]=_0x5f0329(0x245),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x40a)]=0x5]=_0x5f0329(0x40a),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3b1)]=0x6]=_0x5f0329(0x3b1),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1b1)]=0x7]=_0x5f0329(0x1b1),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1c7)]=0x8]='TOO_MANY_REQUESTS',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x36c)]=0x9]=_0x5f0329(0x36c),_0x5aa3c4[_0x5aa3c4['LOGIN_FAILED']=0xa]=_0x5f0329(0x155),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2d0)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x34c)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3e1)]=0xd]=_0x5f0329(0x3e1),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2c5)]=0xe]=_0x5f0329(0x2c5),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x401)]=0xf]=_0x5f0329(0x401),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x35a)]=0x10]='LOGIN_TOKEN_PROCESSING_FAILED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x350)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x333)]=0x65]=_0x5f0329(0x333),_0x5aa3c4[_0x5aa3c4['USER_NOT_FOUND']=0xc9]=_0x5f0329(0x344),_0x5aa3c4[_0x5aa3c4['USER_IS_ANONYMOUS']=0xca]='USER_IS_ANONYMOUS',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x29c)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5aa3c4[_0x5aa3c4['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x15c)]=0x1772]=_0x5f0329(0x15c),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2b4)]=0x1773]=_0x5f0329(0x2b4),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2d6)]=0x1b59]='APPLY_REJECT',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x32f)]=0x1b5a]=_0x5f0329(0x32f),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x415)]=0x1b5b]=_0x5f0329(0x415),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x387)]=0x1b5c]=_0x5f0329(0x387),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x358)]=0x1b5d]='APPLY_DUPLICATED',_0x5aa3c4[_0x5aa3c4['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x5f0329(0x3ef),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2ad)]=0x2329]=_0x5f0329(0x2ad),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3a5)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x5aa3c4[_0x5aa3c4['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3b4)]=0x232c]=_0x5f0329(0x3b4),_0x5aa3c4[_0x5aa3c4['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x5aa3c4[_0x5aa3c4['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5f0329(0x20e),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x411)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3f5)]=0x2713]=_0x5f0329(0x3f5),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x38b)]=0x2714]=_0x5f0329(0x38b),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x24e)]=0x271a]=_0x5f0329(0x24e),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3ba)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1f3)]=0x271c]=_0x5f0329(0x1f3),_0x5aa3c4[_0x5aa3c4['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x5f0329(0x36f),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x165)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x5aa3c4[_0x5aa3c4['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x34e)]=0x2720]=_0x5f0329(0x34e),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1e9)]=0x2af9]=_0x5f0329(0x1e9),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1d2)]=0x2ee1]=_0x5f0329(0x1d2),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3ca)]=0x2ee2]=_0x5f0329(0x3ca),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1fd)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x5aa3c4[_0x5aa3c4['USER_NOT_INVITED_CODE']=0x2ee4]=_0x5f0329(0x407),_0x5aa3c4[_0x5aa3c4['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5f0329(0x2e6),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x26f)]=0x32c9]=_0x5f0329(0x26f),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3e0)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x37a)]=0x32cb]=_0x5f0329(0x37a),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3bf)]=0x36b1]=_0x5f0329(0x3bf),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3e8)]=0x36b2]='ENTITLE_UPDOWN_GRADE_NOT_SUPPORT',_0x5aa3c4[_0x5aa3c4['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x5f0329(0x3f3),_0x5aa3c4[_0x5aa3c4['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]=_0x5f0329(0x3ee),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3f9)]=0x36b5]=_0x5f0329(0x3f9),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1bd)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3c1)]=0x36b7]=_0x5f0329(0x3c1),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x142)]=0x36b8]=_0x5f0329(0x142),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2a9)]=0x3715]=_0x5f0329(0x2a9),_0x5aa3c4[_0x5aa3c4['ENTITLE_REPORT_LIMIT_EXCEED']=0x3716]=_0x5f0329(0x31b),_0x5aa3c4[_0x5aa3c4['ENTITLE_INSUFFICIENT_QUOTA']=0x3717]=_0x5f0329(0x364),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1bf)]=0x37dd]=_0x5f0329(0x1bf),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x32e)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x15f)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x22c)]=0x3a9b]=_0x5f0329(0x22c),_0x5aa3c4[_0x5aa3c4['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x5f0329(0x349),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x2ec)]=0x3a9d]='REDEMPTION_USER_NOT_ELIGIBLE',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x1d5)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x399)]=0x3a9f]=_0x5f0329(0x399),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x36b)]=0x3e81]=_0x5f0329(0x36b),_0x5aa3c4[_0x5aa3c4[_0x5f0329(0x3bb)]=-0x1]=_0x5f0329(0x3bb),_0x5aa3c4))(G||{});function Jt(_0x3eff97){const _0x12f9ac=_0x5f0329;var _0x3df19f,_0xfbcb1f;const _0x7f75a3=(_0x3df19f=_0x3eff97['stageInfo'])==null?void 0x0:_0x3df19f['stage'],_0x10f2f8=((_0xfbcb1f=_0x3eff97[_0x12f9ac(0x297)])==null?void 0x0:_0xfbcb1f[_0x12f9ac(0x20d)])||0x0;return _0x7f75a3===B['FormulaExecuteStageType'][_0x12f9ac(0x3e5)]&&_0x10f2f8>0x0;}function Zt(_0x39f318){const _0xf5fe8e=_0x5f0329;return _0x39f318[_0xf5fe8e(0x301)]===B[_0xf5fe8e(0x3cc)][_0xf5fe8e(0x1bc)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x41860b,_0x1ec3e0,_0x556592,_0x532ee2)=>{for(var _0x107a15=_0x532ee2>0x1?void 0x0:_0x532ee2?Qt(_0x1ec3e0,_0x556592):_0x1ec3e0,_0x24026d=_0x41860b['length']-0x1,_0x27856e;_0x24026d>=0x0;_0x24026d--)(_0x27856e=_0x41860b[_0x24026d])&&(_0x107a15=_0x27856e(_0x107a15)||_0x107a15);return _0x107a15;},L=(_0x57f4f5,_0x36e0de)=>(_0x14b30a,_0x55a279)=>_0x36e0de(_0x14b30a,_0x55a279,_0x57f4f5);const ts=_0x5f0329(0x14d),ss=_0x5f0329(0x335),is=_0x5f0329(0x24b);let ne=class extends a['Disposable']{constructor(_0xa201f6,_0x4bdb0d,_0x2376b8,_0x33cd6f,_0x3df7e7,_0x58cbc3,_0x5f004f){const _0x87f9a0=_0x5f0329;super(),_(this,_0x87f9a0(0x3be),null),_(this,_0x87f9a0(0x3e9),0x0),_(this,_0x87f9a0(0x21f),0x0),_(this,_0x87f9a0(0x183),[]),_(this,_0x87f9a0(0x24c),0x0),(this[_0x87f9a0(0x3d7)]=_0xa201f6,this[_0x87f9a0(0x3b8)]=_0x4bdb0d,this['_configService']=_0x2376b8,this[_0x87f9a0(0x190)]=_0x33cd6f,this['_univerInstanceService']=_0x3df7e7,this[_0x87f9a0(0x181)]=_0x58cbc3,this['_localeService']=_0x5f004f,this[_0x87f9a0(0x40f)]());}['_initCommandInterceptor'](){const _0x21ece4=_0x5f0329;this[_0x21ece4(0x385)](this['_commandService'][_0x21ece4(0x1cb)]((_0x312ead,_0xa116b9)=>{const _0x13a15b=_0x21ece4;var _0x364c7b;if(_0x312ead['id']!==B[_0x13a15b(0x197)]['id'])return;const _0x9d2bf3=_0x312ead[_0x13a15b(0x355)];if(!this['_hasFormulaInDirtyRanges']((_0x364c7b=_0x9d2bf3[_0x13a15b(0x1bb)])!=null?_0x364c7b:[]))return;if(!this['_checkCalculationAvailable']())throw this[_0x13a15b(0x33a)](_0x312ead,_0xa116b9),this[_0x13a15b(0x2b9)](),new a[(_0x13a15b(0x32c))]();})),this[_0x21ece4(0x385)](this['_commandService'][_0x21ece4(0x171)]((_0x3c5459,_0x4c9066)=>{const _0xf70013=_0x21ece4;if(_0x3c5459['id']!==B[_0xf70013(0x40c)]['id'])return;const _0x8290f4=_0x3c5459[_0xf70013(0x355)];if(Jt(_0x8290f4)){const _0x4f939a=a[_0xf70013(0x2b7)]();this[_0xf70013(0x183)]['push'](_0x4f939a),this['_startCalculationLimit'](_0x4f939a);}else{if(Zt(_0x8290f4)&&this[_0xf70013(0x183)][_0xf70013(0x23b)]>0x0){const _0x489317=this[_0xf70013(0x183)]['shift']();this['_releaseCalculationLimit'](_0x489317);}}}));}[_0x5f0329(0x26d)](){const _0x3c6731=_0x5f0329;super['dispose'](),this['_clearPolling'](),this[_0x3c6731(0x183)]=[],this[_0x3c6731(0x21f)]=0x0,this[_0x3c6731(0x3e9)]=0x0,this['_lastResponseTimestamp']=0x0;}async[_0x5f0329(0x33a)](_0x11dbef,_0x3d85bc){const _0x4de2af=_0x5f0329;for(let _0x2056b5=0x0;_0x2056b5<0x1e;_0x2056b5++)try{if(await this[_0x4de2af(0x1a9)](),this[_0x4de2af(0x337)]()){this['_applyCommand'](_0x11dbef,_0x3d85bc),this[_0x4de2af(0x3d7)][_0x4de2af(0x3da)]({'content':this[_0x4de2af(0x25c)]['t'](_0x4de2af(0x17e)),'type':p['MessageType'][_0x4de2af(0x2f7)]});return;}await new Promise(_0x283d78=>{const _0x4ad00a=_0x4de2af;this['_pollingInterval']=window[_0x4ad00a(0x31f)](_0x283d78,0x3e8);});}catch(_0x2357a4){this[_0x4de2af(0x181)][_0x4de2af(0x146)](_0x2357a4);}this['_messageService'][_0x4de2af(0x3da)]({'content':this[_0x4de2af(0x25c)]['t'](_0x4de2af(0x408)),'type':p[_0x4de2af(0x172)][_0x4de2af(0x382)]});}[_0x5f0329(0x286)](_0x4c2648,_0xf1fa1f){const _0x572d3e=_0x5f0329;try{this['_commandService'][_0x572d3e(0x1df)](_0x4c2648['id'],_0x4c2648[_0x572d3e(0x355)],_0xf1fa1f);}catch(_0xd45b7f){this[_0x572d3e(0x181)][_0x572d3e(0x146)](_0xd45b7f);}}['_setFormulaLimitStatus'](_0x36b46a,_0x140814){const _0x58eedb=_0x5f0329;_0x140814<this[_0x58eedb(0x24c)]||(this[_0x58eedb(0x24c)]=_0x140814,this[_0x58eedb(0x3e9)]=Number['parseInt'](_0x36b46a['maxFormulaLimit']),this[_0x58eedb(0x21f)]=Number['parseInt'](_0x36b46a[_0x58eedb(0x20b)]));}async[_0x5f0329(0x145)](_0x1511b2){const _0x5f2c7a=_0x5f0329;var _0x10e3ea,_0x334d59;const _0x1c0e95=Date[_0x5f2c7a(0x1dd)]();try{const _0x3ca58d=((_0x10e3ea=this['_configService'][_0x5f2c7a(0x356)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x10e3ea['startFormulaLimitUrl'])||ss,_0x1fb2f8=(await this['_httpService'][_0x5f2c7a(0x213)](_0x3ca58d,{'body':JSON['stringify']({'taskId':_0x1511b2})}))['body'];if(((_0x334d59=_0x1fb2f8[_0x5f2c7a(0x146)])==null?void 0x0:_0x334d59[_0x5f2c7a(0x352)])!==G['OK'])return;this[_0x5f2c7a(0x35f)](_0x1fb2f8[_0x5f2c7a(0x3a2)],_0x1c0e95);}catch(_0x179e47){this[_0x5f2c7a(0x181)]['error'](_0x179e47);}}async['_getFormulaLimitStatus'](_0x32f345){const _0x47538e=_0x5f0329;var _0x2aa98c,_0x527155;const _0x3888f3=Date['now']();try{const _0x4cec91=((_0x2aa98c=this['_configService'][_0x47538e(0x356)](u[_0x47538e(0x3c9)]))==null?void 0x0:_0x2aa98c[_0x47538e(0x258)])||ts,_0x412251=_0x32f345?_0x4cec91+_0x47538e(0x38f)+encodeURIComponent(_0x32f345):_0x4cec91,_0x431777=(await this[_0x47538e(0x190)]['get'](_0x412251))[_0x47538e(0x1ad)];if(((_0x527155=_0x431777[_0x47538e(0x146)])==null?void 0x0:_0x527155[_0x47538e(0x352)])!==G['OK'])return;this[_0x47538e(0x35f)](_0x431777[_0x47538e(0x3a2)],_0x3888f3);}catch(_0x4c6dbc){this[_0x47538e(0x181)][_0x47538e(0x146)](_0x4c6dbc);}}async[_0x5f0329(0x3e7)](_0x1f8fea){const _0x3ce73c=_0x5f0329;var _0x1738b7,_0x17771b;const _0x59c0ff=Date[_0x3ce73c(0x1dd)]();try{const _0x308331=((_0x1738b7=this[_0x3ce73c(0x168)][_0x3ce73c(0x356)](u[_0x3ce73c(0x3c9)]))==null?void 0x0:_0x1738b7[_0x3ce73c(0x161)])||is,_0x1c600f=(await this[_0x3ce73c(0x190)][_0x3ce73c(0x213)](_0x308331,{'body':JSON['stringify']({'taskId':_0x1f8fea})}))['body'];if(((_0x17771b=_0x1c600f[_0x3ce73c(0x146)])==null?void 0x0:_0x17771b['code'])!==G['OK'])return;this[_0x3ce73c(0x35f)](_0x1c600f['limitInfo'],_0x59c0ff);}catch(_0x5e79e5){this[_0x3ce73c(0x181)][_0x3ce73c(0x146)](_0x5e79e5);}}[_0x5f0329(0x337)](){const _0x126350=_0x5f0329;return this[_0x126350(0x3e9)]===0x0?!0x0:this[_0x126350(0x3e9)]-this[_0x126350(0x21f)]>0x0;}[_0x5f0329(0x1d7)](){const _0x5b84b3=_0x5f0329;this['_pollingInterval']&&(clearTimeout(this[_0x5b84b3(0x3be)]),this[_0x5b84b3(0x3be)]=null);}['_showGuardMessage'](){const _0x46f8d9=_0x5f0329;this[_0x46f8d9(0x3d7)]['show']({'content':this[_0x46f8d9(0x25c)]['t'](_0x46f8d9(0x3f7)),'type':p['MessageType'][_0x46f8d9(0x2a7)]});}['_hasFormulaInDirtyRanges'](_0x1fa342){const _0x539777=_0x5f0329;for(const _0x32a94c of _0x1fa342){const {unitId:_0x5cb66a,sheetId:_0x4a86f6,range:_0x901482}=_0x32a94c,_0xe99256=this[_0x539777(0x2c8)][_0x539777(0x383)](_0x5cb66a);if(!_0xe99256)continue;const _0x575be5=_0xe99256[_0x539777(0x223)](_0x4a86f6);if(!_0x575be5)continue;const _0x397820=_0x575be5[_0x539777(0x3fe)]();for(let _0x77f7f2=_0x901482['startRow'];_0x77f7f2<=_0x901482[_0x539777(0x393)];_0x77f7f2++)for(let _0x491e3d=_0x901482[_0x539777(0x331)];_0x491e3d<=_0x901482[_0x539777(0x1e8)];_0x491e3d++){const _0x2688e2=_0x397820[_0x539777(0x259)](_0x77f7f2,_0x491e3d);if(_0x2688e2&&(a[_0x539777(0x19a)](_0x2688e2['f'])||a['isFormulaId'](_0x2688e2['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x5f0329(0x2b6)](O[_0x5f0329(0x14a)])),L(0x1,a[_0x5f0329(0x1b7)]),L(0x2,a[_0x5f0329(0x1a6)]),L(0x3,a[_0x5f0329(0x2b6)](x[_0x5f0329(0x28d)])),L(0x4,a['IUniverInstanceService']),L(0x5,a[_0x5f0329(0x254)]),L(0x6,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x2a0)]))],ne);var ns=Object['getOwnPropertyDescriptor'],rs=(_0x5ae076,_0x5905bc,_0x21c39c,_0x2990f6)=>{const _0x16f966=_0x5f0329;for(var _0x147b06=_0x2990f6>0x1?void 0x0:_0x2990f6?ns(_0x5905bc,_0x21c39c):_0x5905bc,_0xdeb087=_0x5ae076[_0x16f966(0x23b)]-0x1,_0x14573d;_0xdeb087>=0x0;_0xdeb087--)(_0x14573d=_0x5ae076[_0xdeb087])&&(_0x147b06=_0x14573d(_0x147b06)||_0x147b06);return _0x147b06;},Se=(_0xc1092,_0x39e507)=>(_0x20f61c,_0x4aa93b)=>_0x39e507(_0x20f61c,_0x4aa93b,_0xc1092);let Te=class extends a[_0x5f0329(0x248)]{constructor(_0x1c8a8e,_0x38907e,_0x50ee95){const _0x357f8f=_0x5f0329;super(),_(this,_0x357f8f(0x270),new Map()),_(this,_0x357f8f(0x400),new Map()),_(this,_0x357f8f(0x2f3),!0x1),(this[_0x357f8f(0x168)]=_0x1c8a8e,this['_localStorageService']=_0x38907e,this['_revisionService']=_0x50ee95);}[_0x5f0329(0x303)](){const _0x1f24d3=_0x5f0329;this[_0x1f24d3(0x2f3)]=!0x0;}[_0x5f0329(0x3d3)](){const _0x1afab3=_0x5f0329;this[_0x1afab3(0x2f3)]=!0x1;}get[_0x5f0329(0x373)](){const _0x2f177d=_0x5f0329;return this[_0x2f177d(0x400)];}[_0x5f0329(0x26d)](){const _0x15cab0=_0x5f0329;this[_0x15cab0(0x268)]()[_0x15cab0(0x29f)](()=>super[_0x15cab0(0x26d)]());}async['loadOfflineData'](_0x6928a2){const _0x385796=_0x5f0329;return this['_disabled']?null:this['_localStorageService'][_0x385796(0x200)](u[_0x385796(0x184)](_0x6928a2));}async['saveOfflineData'](_0x29f3b7,_0x422555){return!!this['_localStorageService']['setItem'](_0x29f3b7,_0x422555);}['updateOfflineData'](_0xd3f650,_0x385488,_0x35649c,_0x1e0cd2){const _0x47983a=_0x5f0329,_0x4ddd81=this[_0x47983a(0x226)][_0x47983a(0x3d1)](_0xd3f650);this[_0x47983a(0x270)][_0x47983a(0x3c7)](_0xd3f650,{'unitID':_0xd3f650,'type':_0x385488,'awaitingChangeset':_0x35649c,'mutations':_0x1e0cd2,'rev':_0x4ddd81}),this[_0x47983a(0x400)]['has'](_0xd3f650)||this[_0x47983a(0x27f)](_0xd3f650);}[_0x5f0329(0x27f)](_0x464095){const _0x4bf36b=_0x5f0329,_0x4ef66=this['_getSaveTimeout']();_0x4ef66===0x0?this['_saveCache'](_0x464095):this['_saveTaskMap'][_0x4bf36b(0x3c7)](_0x464095,setTimeout(()=>this[_0x4bf36b(0x195)](_0x464095),_0x4ef66));}[_0x5f0329(0x289)](){const _0x5dc1cf=_0x5f0329;var _0x15751b;return(_0x15751b=this[_0x5dc1cf(0x168)]['getConfig'](u[_0x5dc1cf(0x21d)]))!=null?_0x15751b:u[_0x5dc1cf(0x15b)];}[_0x5f0329(0x195)](_0x4a1147){const _0x1ceff5=_0x5f0329,_0x2b4c25=this[_0x1ceff5(0x400)][_0x1ceff5(0x222)](_0x4a1147);return _0x2b4c25!==void 0x0&&window[_0x1ceff5(0x3f0)](_0x2b4c25),this[_0x1ceff5(0x2a4)][_0x1ceff5(0x3a3)](u[_0x1ceff5(0x184)](_0x4a1147),this[_0x1ceff5(0x270)][_0x1ceff5(0x222)](_0x4a1147))['then'](()=>this['_saveTaskMap'][_0x1ceff5(0x263)](_0x4a1147));}async[_0x5f0329(0x268)](){const _0x44e2c7=_0x5f0329,_0x3efb7d=[];this['_saveTaskMap']['forEach']((_0x20a57f,_0x18b5a9)=>{const _0x24509d=_0x38d6;window[_0x24509d(0x3f0)](_0x20a57f),_0x3efb7d['push'](this['_saveCache'](_0x18b5a9)[_0x24509d(0x29f)](()=>{const _0x26ae6e=_0x24509d;this['_saveTaskMap'][_0x26ae6e(0x263)](_0x18b5a9);}));}),await Promise[_0x44e2c7(0x290)](_0x3efb7d);}};Te=rs([Se(0x0,a['IConfigService']),Se(0x1,a[_0x5f0329(0x2a3)]),Se(0x2,a[_0x5f0329(0x2b6)](g[_0x5f0329(0x38c)]))],Te);class ke extends a[_0x5f0329(0x3f4)]{constructor(){const _0x501466=_0x5f0329;super(),_(this,'urlChange$'),this[_0x501466(0x345)]=I[_0x501466(0x348)](window,_0x501466(0x1eb))['pipe'](I[_0x501466(0x28e)](this[_0x501466(0x3f8)]),I[_0x501466(0x1c3)](0x1),I[_0x501466(0x32b)](void 0x0));}[_0x5f0329(0x2b0)](_0x45fa6e,_0x1018b9,_0xc0f6b8=!0x1){const _0x5041c7=_0x5f0329,_0x155d34=new URL(window[_0x5041c7(0x3ed)][_0x5041c7(0x177)]);_0x155d34[_0x5041c7(0x3c3)]['set'](_0x45fa6e,_0x1018b9),_0xc0f6b8?window[_0x5041c7(0x2d7)][_0x5041c7(0x144)]('','',_0x155d34[_0x5041c7(0x3a8)]()):window[_0x5041c7(0x2d7)][_0x5041c7(0x1d6)]('','',_0x155d34[_0x5041c7(0x3a8)]());}[_0x5f0329(0x410)](_0x2e93e0,_0x15fdfd=!0x1){const _0x4afc8d=_0x5f0329,_0x27708f=new URL(window[_0x4afc8d(0x3ed)][_0x4afc8d(0x177)]);_0x27708f[_0x4afc8d(0x3c3)]['delete'](_0x2e93e0),_0x15fdfd?window[_0x4afc8d(0x2d7)][_0x4afc8d(0x144)]('','',_0x27708f[_0x4afc8d(0x3a8)]()):window[_0x4afc8d(0x2d7)][_0x4afc8d(0x1d6)]('','',_0x27708f['toString']());}['getParam'](_0x33bbb4){const _0x517c93=_0x5f0329;var _0x1d2f14;return(_0x1d2f14=new URL(window[_0x517c93(0x3ed)][_0x517c93(0x177)])[_0x517c93(0x3c3)]['get'](_0x33bbb4))!=null?_0x1d2f14:void 0x0;}}var os=Object[_0x5f0329(0x39c)],as=Object[_0x5f0329(0x2e9)],cs=(_0x250e4c,_0x4a11ca,_0x538a62)=>_0x4a11ca in _0x250e4c?os(_0x250e4c,_0x4a11ca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x538a62}):_0x250e4c[_0x4a11ca]=_0x538a62,ls=(_0x31f775,_0x10359f,_0x5e3806,_0x2a3981)=>{for(var _0x55d791=_0x2a3981>0x1?void 0x0:_0x2a3981?as(_0x10359f,_0x5e3806):_0x10359f,_0x553780=_0x31f775['length']-0x1,_0x5c6aa4;_0x553780>=0x0;_0x553780--)(_0x5c6aa4=_0x31f775[_0x553780])&&(_0x55d791=_0x5c6aa4(_0x55d791)||_0x55d791);return _0x55d791;},de=(_0x37a7e8,_0xef0c1f)=>(_0x42183a,_0x24b43d)=>_0xef0c1f(_0x42183a,_0x24b43d,_0x37a7e8),_s=(_0x2325f3,_0x1d2b86,_0x1bf14f)=>cs(_0x2325f3,_0x1d2b86+'',_0x1bf14f);const hs=_0x5f0329(0x17f);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5f0329(0x1ee)]{constructor(_0x2307c0=Me,_0x715d23,_0x30fd61,_0x2875d8){const _0x51a141=_0x5f0329;super(),this[_0x51a141(0x3ec)]=_0x2307c0,this[_0x51a141(0x279)]=_0x715d23,this[_0x51a141(0x180)]=_0x30fd61,this[_0x51a141(0x168)]=_0x2875d8;const {..._0x3230dd}=a[_0x51a141(0x1de)]({},Me,this['_config']);this[_0x51a141(0x168)][_0x51a141(0x19f)](Yt,_0x3230dd);}[_0x5f0329(0x193)](){const _0x2ee306=_0x5f0329;this[_0x2ee306(0x18a)](),this[_0x2ee306(0x26e)]();}[_0x5f0329(0x191)](){const _0x2c32f9=_0x5f0329;this[_0x2c32f9(0x2ed)]();}[_0x5f0329(0x18a)](){const _0x5c8e95=_0x5f0329;var _0x189036;const _0x199f0f=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x['ISocketService'],{'useClass':x[_0x5c8e95(0x1f2)]}],[u[_0x5c8e95(0x19e)],{'useClass':Te}],[exports[_0x5c8e95(0x236)]],[ie],[Z],[F],[me],[exports[_0x5c8e95(0x34b)]]];this[_0x5c8e95(0x3ec)][_0x5c8e95(0x314)]&&_0x199f0f['push']([Q]),a[_0x5c8e95(0x1a7)](this[_0x5c8e95(0x180)],a[_0x5c8e95(0x218)](_0x199f0f,(_0x189036=this[_0x5c8e95(0x3ec)])==null?void 0x0:_0x189036[_0x5c8e95(0x3db)]));}[_0x5f0329(0x2ed)](){const _0x2793c0=_0x5f0329;this['disposeWithMe'](this['_renderManagerService'][_0x2793c0(0x31e)](a[_0x2793c0(0x2dd)][_0x2793c0(0x23f)],[Ee])),this[_0x2793c0(0x385)](this[_0x2793c0(0x279)][_0x2793c0(0x31e)](a[_0x2793c0(0x2dd)]['UNIVER_SHEET'],[Ce]));}[_0x5f0329(0x26e)](){const _0x3d16e3=_0x5f0329;a[_0x3d16e3(0x402)](this[_0x3d16e3(0x180)],[[F],[exports['DesktopCollaborationStatusDisplayController']],[ie],[Z],[exports[_0x3d16e3(0x34b)]],[ne]]),this[_0x3d16e3(0x3ec)][_0x3d16e3(0x314)]&&a[_0x3d16e3(0x402)](this[_0x3d16e3(0x180)],[[Q]]);}},_s(exports[_0x5f0329(0x229)],_0x5f0329(0x36a),hs),exports['UniverCollaborationClientUIPlugin']=ls([a[_0x5f0329(0x3e3)](u['UniverCollaborationClientPlugin']),de(0x1,C['IRenderManagerService']),de(0x2,a['Inject'](a[_0x5f0329(0x391)])),de(0x3,a[_0x5f0329(0x1a6)])],exports[_0x5f0329(0x229)]);var us=Object['getOwnPropertyDescriptor'],Is=(_0x204b9d,_0x25a34a,_0x3d1582,_0x332d35)=>{const _0x10c281=_0x5f0329;for(var _0x4c88fb=_0x332d35>0x1?void 0x0:_0x332d35?us(_0x25a34a,_0x3d1582):_0x25a34a,_0x24ee72=_0x204b9d[_0x10c281(0x23b)]-0x1,_0x4809a1;_0x24ee72>=0x0;_0x24ee72--)(_0x4809a1=_0x204b9d[_0x24ee72])&&(_0x4c88fb=_0x4809a1(_0x4c88fb)||_0x4c88fb);return _0x4c88fb;},W=(_0x513163,_0x4a4c79)=>(_0x10e1b5,_0x3b36e2)=>_0x4a4c79(_0x10e1b5,_0x3b36e2,_0x513163);exports[_0x5f0329(0x1c0)]=class extends u[_0x5f0329(0x14c)]{constructor(_0x39cc8c,_0x133654,_0x2f1868,_0x5a4cc0,_0x1f5181){super(_0x39cc8c,_0x133654,_0x2f1868,_0x5a4cc0,_0x1f5181);}async[_0x5f0329(0x1fb)](_0x5a5dd5){const _0x24def8=_0x5f0329,_0x21aa2f=await this[_0x24def8(0x14e)](),_0x29dd19=this[_0x24def8(0x3d4)](_0x5a5dd5,_0x21aa2f);return this[_0x24def8(0x204)](_0x29dd19);}['_createSocketURL'](_0x4f1642,_0x5781b5){const _0x1066d9=_0x5f0329,_0x17f49d=typeof window>'u'?new URL(_0x4f1642):new URL(_0x4f1642,window['location'][_0x1066d9(0x34a)]);_0x17f49d['searchParams']['set'](_0x1066d9(0x384),_0x5781b5);const _0x182b32=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1066d9(0x3ed)][_0x1066d9(0x1f1)]);return _0x182b32[_0x1066d9(0x222)](_0x1066d9(0x21c))&&_0x17f49d[_0x1066d9(0x3c3)][_0x1066d9(0x3c7)](_0x1066d9(0x21c),_0x182b32['get']('runId')),_0x17f49d[_0x1066d9(0x3a8)]();}async[_0x5f0329(0x14e)](){const _0x1edc0a=_0x5f0329;var _0x9db7ef,_0x24e1b0,_0x473a0c;const _0x389c36=this['_configService'][_0x1edc0a(0x356)](u[_0x1edc0a(0x3c9)]),_0xd38901=(_0x9db7ef=_0x389c36==null?void 0x0:_0x389c36['wsSessionTicketUrl'])!=null?_0x9db7ef:u[_0x1edc0a(0x1cc)];return(_0x473a0c=(_0x24e1b0=(await this['_httpService'][_0x1edc0a(0x222)](_0xd38901,{'headers':{'Content-Type':_0x1edc0a(0x220)}}))[_0x1edc0a(0x1ad)])==null?void 0x0:_0x24e1b0[_0x1edc0a(0x143)])!=null?_0x473a0c:'';}},exports[_0x5f0329(0x1c0)]=Is([W(0x0,a[_0x5f0329(0x2b6)](a[_0x5f0329(0x391)])),W(0x1,a[_0x5f0329(0x2b6)](x[_0x5f0329(0x28d)])),W(0x2,a[_0x5f0329(0x1a6)]),W(0x3,a[_0x5f0329(0x254)]),W(0x4,g['ISnapshotServerService'])],exports[_0x5f0329(0x1c0)]);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0xc4b4d2,_0x1b77cf,_0x5ceaa2,_0x30969c)=>{const _0x23c70d=_0x5f0329;for(var _0x19f0b2=_0x30969c>0x1?void 0x0:_0x30969c?Ss(_0x1b77cf,_0x5ceaa2):_0x1b77cf,_0x21fd30=_0xc4b4d2[_0x23c70d(0x23b)]-0x1,_0x18d539;_0x21fd30>=0x0;_0x21fd30--)(_0x18d539=_0xc4b4d2[_0x21fd30])&&(_0x19f0b2=_0x18d539(_0x19f0b2)||_0x19f0b2);return _0x19f0b2;},fe=(_0x48c47c,_0x2de0b2)=>(_0x1763df,_0x1dff8b)=>_0x2de0b2(_0x1763df,_0x1dff8b,_0x48c47c);exports['RemoteUniscriptService']=class extends a[_0x5f0329(0x248)]{constructor(_0x31a28b,_0x5f178b,_0x47160c){const _0x1c109a=_0x5f0329;super(),this[_0x1c109a(0x41a)]=_0x31a28b,this['_httpService']=_0x5f178b,this[_0x1c109a(0x168)]=_0x47160c;}async[_0x5f0329(0x39e)](_0x39404f,_0x3c0130,_0x1ccff1,..._0x17322f){const _0x15c166=_0x5f0329;var _0x3b869c,_0x43c26d,_0x72527e,_0x1b54cd;const _0x356276=this[_0x15c166(0x41a)][_0x15c166(0x242)]();if(!_0x356276)throw new Error(_0x15c166(0x267));const _0x10e140=((_0x3b869c=this[_0x15c166(0x168)]['getConfig'](u[_0x15c166(0x265)]))!=null?_0x3b869c:u[_0x15c166(0x198)])+'/'+_0x39404f+'/run/'+_0x3c0130,_0x4510df=new URL(window['location'][_0x15c166(0x177)]),_0x468621={'scriptId':_0x39404f,'runId':(_0x43c26d=_0x4510df[_0x15c166(0x3c3)][_0x15c166(0x222)]('runId'))!=null?_0x43c26d:'','function':_0x3c0130,'unitId':_0x356276[_0x15c166(0x1cf)](),'argsOfFunction':JSON[_0x15c166(0x1f0)](_0x17322f),'invokeId':(_0x72527e=_0x1ccff1[_0x15c166(0x3a6)])!=null?_0x72527e:'','executionId':(_0x1b54cd=_0x1ccff1[_0x15c166(0x1b8)])!=null?_0x1b54cd:''};try{const _0x65074b=await this[_0x15c166(0x190)]['post'](_0x10e140,{'body':_0x468621});return _0x65074b[_0x15c166(0x1ad)][_0x15c166(0x146)]&&_0x65074b['body']['error'][_0x15c166(0x352)]!==G['OK']?'Failed':_0x65074b[_0x15c166(0x1ad)][_0x15c166(0x174)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=ds([fe(0x0,a[_0x5f0329(0x2c0)]),fe(0x1,a[_0x5f0329(0x2b6)](x[_0x5f0329(0x28d)])),fe(0x2,a['IConfigService'])],exports[_0x5f0329(0x283)]);const we=0x7530,ye=_0x5f0329(0x257);class fs extends a['Disposable']{constructor(){const _0x2ffea6=_0x5f0329;super(),_(this,'_id',a[_0x2ffea6(0x2b7)]()),_(this,_0x2ffea6(0x3de),new Set()),_(this,_0x2ffea6(0x23a),new Map()),_(this,_0x2ffea6(0x2b1),null),_(this,_0x2ffea6(0x3ff),new Map()),_(this,'_unitStatus',new Map()),this[_0x2ffea6(0x1a0)]();}[_0x5f0329(0x26d)](){const _0x31684c=_0x5f0329;super[_0x31684c(0x26d)](),this['_clearOtherTimers']['forEach']((_0x1ddbe4,_0x1715ad)=>this[_0x31684c(0x3c8)](_0x1715ad)),this[_0x31684c(0x2b1)]&&window[_0x31684c(0x29a)](this[_0x31684c(0x2b1)]);}['getUnitStatus$'](_0x2833f2){const _0x18e3ef=_0x5f0329;return this[_0x18e3ef(0x2d9)](_0x2833f2)[_0x18e3ef(0x217)](I[_0x18e3ef(0x39b)]());}['editingUnit'](_0x332510){const _0x36e5d5=_0x5f0329;this[_0x36e5d5(0x3de)][_0x36e5d5(0x1ba)]===0x0&&this[_0x36e5d5(0x233)](),this[_0x36e5d5(0x3de)][_0x36e5d5(0x262)](_0x332510),this[_0x36e5d5(0x418)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x332510],'isForwarded':!0x1});}[_0x5f0329(0x414)](_0x3a04f1){const _0x49c24f=_0x5f0329;this[_0x49c24f(0x3de)]['delete'](_0x3a04f1),this[_0x49c24f(0x3de)][_0x49c24f(0x1ba)]===0x0&&this[_0x49c24f(0x2b1)]&&window[_0x49c24f(0x29a)](this['_heartbeatTimer']);}[_0x5f0329(0x1a0)](){const _0x4ba810=_0x5f0329;this[_0x4ba810(0x385)](a['toDisposable'](I[_0x4ba810(0x348)](window,_0x4ba810(0x27c))[_0x4ba810(0x2c2)](_0x454d32=>{const _0x24e98b=_0x4ba810;if(_0x454d32[_0x24e98b(0x1ea)]!==ye||!_0x454d32[_0x24e98b(0x378)])return;const _0x2a1072=JSON[_0x24e98b(0x1c2)](_0x454d32[_0x24e98b(0x378)]);this[_0x24e98b(0x1ca)](_0x2a1072);}))),window[_0x4ba810(0x2f1)]('unload',()=>this[_0x4ba810(0x418)]({'type':0x1,'memberID':this[_0x4ba810(0x3b5)],'unitIDs':Array[_0x4ba810(0x3cb)](this[_0x4ba810(0x3de)])}));}['_handleEvent'](_0x231ca6){const _0x5cdfc2=_0x5f0329;switch(_0x231ca6[_0x5cdfc2(0x1ae)]){case 0x0:this[_0x5cdfc2(0x315)](_0x231ca6);break;case 0x1:this[_0x5cdfc2(0x330)](_0x231ca6);break;case 0x2:this[_0x5cdfc2(0x304)](_0x231ca6);break;}}[_0x5f0329(0x315)](_0x10f0fb){const _0x2f3371=_0x5f0329,{unitIDs:_0x1c4cd1,memberID:_0x2fa3a7,isForwarded:_0x5d17f8}=_0x10f0fb;_0x1c4cd1[_0x2f3371(0x205)](_0x17c234=>{const _0x4481fc=_0x2f3371;if(!_0x5d17f8&&this[_0x4481fc(0x23a)][_0x4481fc(0x397)](_0x17c234)&&this[_0x4481fc(0x2d9)](_0x17c234)[_0x4481fc(0x24a)](u[_0x4481fc(0x27d)]['OTHER_CLIENTS_EDITING']),!this[_0x4481fc(0x23a)][_0x4481fc(0x397)](_0x17c234)||!this[_0x4481fc(0x23a)][_0x4481fc(0x222)](_0x17c234)[_0x4481fc(0x397)](_0x2fa3a7)){const _0xb98d8c=this['_unitOnClients'][_0x4481fc(0x222)](_0x17c234)||new Set();_0xb98d8c[_0x4481fc(0x262)](_0x2fa3a7),this[_0x4481fc(0x23a)][_0x4481fc(0x3c7)](_0x17c234,_0xb98d8c),this[_0x4481fc(0x162)](_0x2fa3a7);}}),_0x5d17f8||this[_0x2f3371(0x418)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2f3371(0x3de)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xd7655e){const _0x15c2d0=_0x5f0329;this[_0x15c2d0(0x3c8)](_0xd7655e);const _0x4de1af=window[_0x15c2d0(0x31f)](()=>{const _0x245e3e=_0x15c2d0;this[_0x245e3e(0x23a)][_0x245e3e(0x205)](_0x20a9bc=>{const _0x210752=_0x245e3e;_0x20a9bc[_0x210752(0x263)](_0xd7655e);});},we*0x2);this[_0x15c2d0(0x3ff)][_0x15c2d0(0x3c7)](_0xd7655e,_0x4de1af);}[_0x5f0329(0x3c8)](_0x3abd47){const _0x2fc572=_0x5f0329;if(this[_0x2fc572(0x3ff)]['has'](_0x3abd47)){const _0x1aff15=this[_0x2fc572(0x3ff)][_0x2fc572(0x222)](_0x3abd47);_0x1aff15&&window[_0x2fc572(0x3f0)](_0x1aff15),this['_clearOtherTimers'][_0x2fc572(0x3c7)](_0x3abd47,null);}}[_0x5f0329(0x330)](_0x3510d2){const _0x1737d3=_0x5f0329,{memberID:_0x284a4a,unitIDs:_0x567c3a}=_0x3510d2;_0x567c3a[_0x1737d3(0x205)](_0x17ac4a=>{const _0x208cee=_0x1737d3;var _0x5382c4;const _0x3405b6=this[_0x208cee(0x23a)][_0x208cee(0x222)](_0x17ac4a);_0x3405b6&&(_0x3405b6[_0x208cee(0x263)](_0x284a4a),(_0x5382c4=this[_0x208cee(0x2d9)](_0x17ac4a))==null||_0x5382c4['next'](_0x3405b6[_0x208cee(0x1ba)]===0x0?u[_0x208cee(0x27d)][_0x208cee(0x3d8)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0x1737d3(0x3c8)](_0x284a4a);}[_0x5f0329(0x304)](_0x28f0a8){const _0x35efac=_0x5f0329;this[_0x35efac(0x162)](_0x28f0a8[_0x35efac(0x361)]);}['_send'](_0x4bf840){const _0x57e3b1=_0x5f0329;localStorage[_0x57e3b1(0x3a3)](ye,JSON['stringify'](_0x4bf840));}[_0x5f0329(0x233)](){const _0x2dcc8c=_0x5f0329;this[_0x2dcc8c(0x2b1)]=window[_0x2dcc8c(0x284)](()=>{const _0x4c9800=_0x2dcc8c;this[_0x4c9800(0x418)]({'type':0x2,'memberID':this[_0x4c9800(0x3b5)]});},we);}[_0x5f0329(0x2d9)](_0x277478){const _0x41952=_0x5f0329;return this[_0x41952(0x1af)][_0x41952(0x397)](_0x277478)||this[_0x41952(0x1af)][_0x41952(0x3c7)](_0x277478,new I[(_0x41952(0x406))](u[_0x41952(0x27d)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus']['get'](_0x277478);}}exports[_0x5f0329(0x340)]=Oe,exports[_0x5f0329(0x343)]=je,exports[_0x5f0329(0x1be)]=fs,exports['WebURLService']=ke;
|