@univerjs-pro/collaboration-client-ui 0.12.3-experimental.20251205-71d07c3 → 0.12.3-experimental.20251205-8c9a6bf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x30e513=_0x2f23;(function(_0x378eb8,_0x19d265){const _0x339175=_0x2f23,_0x3b3b29=_0x378eb8();while(!![]){try{const _0x341d08=-parseInt(_0x339175(0x3e5))/0x1+parseInt(_0x339175(0x2c4))/0x2+parseInt(_0x339175(0x290))/0x3+-parseInt(_0x339175(0x427))/0x4+-parseInt(_0x339175(0x3ca))/0x5*(-parseInt(_0x339175(0x434))/0x6)+parseInt(_0x339175(0x4a9))/0x7+-parseInt(_0x339175(0x475))/0x8;if(_0x341d08===_0x19d265)break;else _0x3b3b29['push'](_0x3b3b29['shift']());}catch(_0x43cca2){_0x3b3b29['push'](_0x3b3b29['shift']());}}}(_0x2ee5,0x73516));var Xe=Object[_0x30e513(0x200)],Ke=(_0x116332,_0x53c758,_0x160dcd)=>_0x53c758 in _0x116332?Xe(_0x116332,_0x53c758,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x160dcd}):_0x116332[_0x53c758]=_0x160dcd,_=(_0xa81caf,_0xce31e6,_0x4fb757)=>Ke(_0xa81caf,typeof _0xce31e6!=_0x30e513(0x296)?_0xce31e6+'':_0xce31e6,_0x4fb757);Object[_0x30e513(0x200)](exports,Symbol[_0x30e513(0x472)],{'value':_0x30e513(0x364)});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:_0x322e2e,..._0x43c1b8}){const _0x2a2181=_0x30e513,{icon:_0x2fef2f,id:_0x23bc2c,className:_0x39e4a8,extend:_0xfe0b8f,..._0x254d9a}=_0x43c1b8,_0x158164=(_0x2a2181(0x24c)+_0x23bc2c+'\x20'+(_0x39e4a8||''))[_0x2a2181(0x274)](),_0x1d33a8=A[_0x2a2181(0x270)]('_'+Qe());return $e(_0x2fef2f,''+_0x23bc2c,{'defIds':_0x2fef2f[_0x2a2181(0x4ac)],'idSuffix':_0x1d33a8['current']},{'ref':_0x322e2e,'className':_0x158164,..._0x254d9a},_0xfe0b8f);}function $e(_0x2ddeed,_0x23694e,_0x357ed3,_0x1102bd,_0x34cf4c){const _0x180754=_0x30e513;return A[_0x180754(0x34d)](_0x2ddeed[_0x180754(0x4b8)],{'key':_0x23694e,...Je(_0x2ddeed,_0x357ed3,_0x34cf4c),..._0x1102bd},(Ze(_0x2ddeed,_0x357ed3)[_0x180754(0x25d)]||[])[_0x180754(0x4b3)]((_0xd26461,_0xdb4137)=>$e(_0xd26461,_0x23694e+'-'+_0x2ddeed[_0x180754(0x4b8)]+'-'+_0xdb4137,_0x357ed3,void 0x0,_0x34cf4c)));}function Je(_0x3de253,_0x323098,_0x59cc63){const _0x5545b3=_0x30e513,_0xb268c7={..._0x3de253[_0x5545b3(0x1f9)]};_0x59cc63!=null&&_0x59cc63['colorChannel1']&&_0xb268c7[_0x5545b3(0x31e)]==='colorChannel1'&&(_0xb268c7[_0x5545b3(0x31e)]=_0x59cc63[_0x5545b3(0x497)]),_0x3de253[_0x5545b3(0x4b8)]===_0x5545b3(0x413)&&_0xb268c7['id']&&(_0xb268c7['id']=_0xb268c7['id']+_0x323098[_0x5545b3(0x357)]),Object[_0x5545b3(0x4bb)](_0xb268c7)[_0x5545b3(0x25c)](([_0xaaf61e,_0x9c436d])=>{const _0x3cad7c=_0x5545b3;_0xaaf61e===_0x3cad7c(0x413)&&typeof _0x9c436d==_0x3cad7c(0x2bb)&&(_0xb268c7[_0xaaf61e]=_0x9c436d[_0x3cad7c(0x2ff)](/url\(#(.*)\)/,_0x3cad7c(0x360)+_0x323098[_0x3cad7c(0x357)]+')'));});const {defIds:_0x1a62ad}=_0x323098;return!_0x1a62ad||_0x1a62ad[_0x5545b3(0x457)]===0x0||(_0x3de253[_0x5545b3(0x4b8)]===_0x5545b3(0x29b)&&_0xb268c7[_0x5545b3(0x26e)]&&(_0xb268c7[_0x5545b3(0x26e)]=_0xb268c7[_0x5545b3(0x26e)]+_0x323098[_0x5545b3(0x357)]),Object[_0x5545b3(0x4bb)](_0xb268c7)[_0x5545b3(0x25c)](([_0x31174a,_0x1dcab0])=>{const _0x896c83=_0x5545b3;typeof _0x1dcab0=='string'&&(_0xb268c7[_0x31174a]=_0x1dcab0[_0x896c83(0x2ff)](/url\(#(.*)\)/,_0x896c83(0x360)+_0x323098[_0x896c83(0x357)]+')'));})),_0xb268c7;}function Ze(_0x3e7b7e,_0x370316){const _0x5b012c=_0x30e513;var _0x1aeb83;const {defIds:_0x3f048e}=_0x370316;return!_0x3f048e||_0x3f048e[_0x5b012c(0x457)]===0x0?_0x3e7b7e:_0x3e7b7e['tag']===_0x5b012c(0x2be)&&((_0x1aeb83=_0x3e7b7e[_0x5b012c(0x25d)])!=null&&_0x1aeb83[_0x5b012c(0x457)])?{..._0x3e7b7e,'children':_0x3e7b7e[_0x5b012c(0x25d)]['map'](_0x315b00=>typeof _0x315b00[_0x5b012c(0x1f9)]['id']==_0x5b012c(0x2bb)&&_0x3f048e&&_0x3f048e[_0x5b012c(0x215)](_0x315b00[_0x5b012c(0x1f9)]['id'])?{..._0x315b00,'attrs':{..._0x315b00[_0x5b012c(0x1f9)],'id':_0x315b00[_0x5b012c(0x1f9)]['id']+_0x370316[_0x5b012c(0x357)]}}:_0x315b00)}:_0x3e7b7e;}function Qe(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}pe['displayName']=_0x30e513(0x3f0);const et={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x30e513(0x226),'width':_0x30e513(0x219),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x30e513(0x44b)},'children':[{'tag':_0x30e513(0x203),'attrs':{'stroke':_0x30e513(0x232),'d':_0x30e513(0x272),'strokeLinecap':_0x30e513(0x486),'strokeLinejoin':_0x30e513(0x486),'strokeWidth':1.2}}]},{'tag':_0x30e513(0x2be),'attrs':{},'children':[{'tag':_0x30e513(0x412),'attrs':{'id':_0x30e513(0x25e)},'children':[{'tag':_0x30e513(0x203),'attrs':{'fill':_0x30e513(0x3bf),'d':_0x30e513(0x23c)}}]}]}],'defIds':[_0x30e513(0x25e)]},xe=A[_0x30e513(0x361)](function(_0x5903bc,_0x388927){const _0x3086ad=_0x30e513;return A[_0x3086ad(0x34d)](pe,Object[_0x3086ad(0x392)]({},_0x5903bc,{'id':_0x3086ad(0x231),'ref':_0x388927,'icon':et}));});xe[_0x30e513(0x421)]=_0x30e513(0x3e1);const tt={'tag':_0x30e513(0x3dc),'attrs':{'xmlns':_0x30e513(0x45f),'fill':'none','viewBox':_0x30e513(0x3f1),'width':_0x30e513(0x219),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x30e513(0x3b5)},'children':[{'tag':_0x30e513(0x203),'attrs':{'stroke':'currentColor','d':_0x30e513(0x470),'strokeLinecap':_0x30e513(0x486),'strokeLinejoin':_0x30e513(0x486),'strokeWidth':1.2}}]},{'tag':_0x30e513(0x2be),'attrs':{},'children':[{'tag':_0x30e513(0x412),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x30e513(0x203),'attrs':{'fill':_0x30e513(0x3bf),'d':_0x30e513(0x23c),'transform':'translate(.97)'}}]}]}],'defIds':[_0x30e513(0x46b)]},Be=A[_0x30e513(0x361)](function(_0x21f385,_0x350445){const _0x28b2c0=_0x30e513;return A['createElement'](pe,Object[_0x28b2c0(0x392)]({},_0x21f385,{'id':_0x28b2c0(0x31b),'ref':_0x350445,'icon':tt}));});Be[_0x30e513(0x421)]=_0x30e513(0x3d1);function st(_0x3c0fe4){const _0x58417e=_0x30e513;switch(_0x3c0fe4){case u[_0x58417e(0x35d)][_0x58417e(0x314)]:return _0x58417e(0x3ff);case u[_0x58417e(0x35d)][_0x58417e(0x2c6)]:return _0x58417e(0x3d9);case u[_0x58417e(0x35d)][_0x58417e(0x40e)]:return _0x58417e(0x21e);case u['CollaborationStatus'][_0x58417e(0x2ba)]:return _0x58417e(0x454);case u[_0x58417e(0x35d)][_0x58417e(0x35a)]:case u[_0x58417e(0x35d)][_0x58417e(0x3be)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0x58417e(0x3df)]:case u['CollaborationStatus']['PENDING']:return'collabStatus.synced';}}function it(_0x466031){const _0x59459c=_0x30e513,{status$:_0x388e06}=_0x466031,_0x1bc5c7=O[_0x59459c(0x438)](_0x388e06,u[_0x59459c(0x35d)]['NOT_COLLAB']),_0x3ea22e=O['useDependency'](a[_0x59459c(0x317)]),_0x2f2328=O[_0x59459c(0x42d)](u[_0x59459c(0x2ef)]),_0x493102=_0x1bc5c7!==u[_0x59459c(0x35d)]['OFFLINE'],_0x45812d=_0x3ea22e['t'](st(_0x1bc5c7)),_0x4df677=_0x493102?M[_0x59459c(0x267)](Be,{}):M[_0x59459c(0x267)](xe,{}),_0x2e650b=A['useCallback'](()=>{_0x493102||_0x2f2328['reconnect']();},[_0x493102,_0x2f2328]);function _0x3ded6d(){const _0x37d800=_0x59459c;return M['jsxs'](_0x37d800(0x387),{'className':_0x37d800(0x276),'onClick':_0x2e650b,'children':[M['jsx'](_0x37d800(0x387),{'className':p[_0x37d800(0x33a)](_0x37d800(0x280),{'univer-text-green-500':_0x493102,'univer-text-red-500':!_0x493102}),'children':_0x4df677}),M[_0x37d800(0x267)](_0x37d800(0x387),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x45812d})]});}return _0x493102?_0x3ded6d():M[_0x59459c(0x267)](p[_0x59459c(0x291)],{'title':_0x3ea22e['t'](_0x59459c(0x309)),'children':_0x3ded6d()});}var nt=Object[_0x30e513(0x45b)],rt=(_0x42134e,_0x2013d7,_0x30b93a,_0x2b697e)=>{const _0x44c14e=_0x30e513;for(var _0x3c4627=_0x2b697e>0x1?void 0x0:_0x2b697e?nt(_0x2013d7,_0x30b93a):_0x2013d7,_0x43ce31=_0x42134e[_0x44c14e(0x457)]-0x1,_0x3039b2;_0x43ce31>=0x0;_0x43ce31--)(_0x3039b2=_0x42134e[_0x43ce31])&&(_0x3c4627=_0x3039b2(_0x3c4627)||_0x3c4627);return _0x3c4627;},K=(_0x439d02,_0x570a54)=>(_0x17f372,_0x25568a)=>_0x570a54(_0x17f372,_0x25568a,_0x439d02);exports[_0x30e513(0x34a)]=class extends a[_0x30e513(0x3c0)]{constructor(_0x484733,_0x1a8177,_0x54b88d,_0x1258c8){const _0x8a188=_0x30e513;super(),_(this,_0x8a188(0x3ae),new I[(_0x8a188(0x213))](u[_0x8a188(0x35d)][_0x8a188(0x2ba)])),(this[_0x8a188(0x4b1)]=_0x484733,this[_0x8a188(0x23e)]=_0x1a8177,this[_0x8a188(0x227)]=_0x54b88d,this[_0x8a188(0x260)]=_0x1258c8,this[_0x8a188(0x2db)](),this[_0x8a188(0x424)]());}['_initStatusListener'](){const _0x2cb367=_0x30e513;this[_0x2cb367(0x2eb)](this[_0x2cb367(0x4b1)][_0x2cb367(0x1f4)][_0x2cb367(0x485)](I[_0x2cb367(0x36e)](()=>{const _0x21dbe4=_0x2cb367,_0x5e84fb=this[_0x21dbe4(0x4b1)][_0x21dbe4(0x4ad)]();return _0x5e84fb?this[_0x21dbe4(0x227)][_0x21dbe4(0x27f)](_0x5e84fb['getUnitId']()):I['of'](null);}),I['switchMap'](_0x4673d8=>_0x4673d8?_0x4673d8[_0x2cb367(0x288)]:I['of'](u[_0x2cb367(0x35d)]['NOT_COLLAB'])))[_0x2cb367(0x376)](_0x2714d8=>{const _0x37adfb=_0x2cb367;this[_0x37adfb(0x3ae)][_0x37adfb(0x44a)](_0x2714d8);}));}[_0x30e513(0x2db)](){const _0x14485e=_0x30e513;this[_0x14485e(0x2eb)](this[_0x14485e(0x260)][_0x14485e(0x4bd)](O[_0x14485e(0x20d)]['HEADER_MENU'],()=>O[_0x14485e(0x2e8)](ot({'status$':this[_0x14485e(0x3ae)]['asObservable']()}),this['_injector'])));}},exports[_0x30e513(0x34a)]=rt([K(0x0,a[_0x30e513(0x202)]),K(0x1,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),K(0x2,a[_0x30e513(0x3f5)](u[_0x30e513(0x45d)])),K(0x3,O[_0x30e513(0x277)])],exports[_0x30e513(0x34a)]);function ot(_0x3010af){const {status$:_0x9db743}=_0x3010af;return function(){const _0x2d5429=_0x2f23;return M[_0x2d5429(0x267)](it,{'status$':_0x9db743});};}const Oe=a[_0x30e513(0x444)](_0x30e513(0x297));var at=Object['getOwnPropertyDescriptor'],ct=(_0x34d8d7,_0x1284a0,_0x53dce0,_0x269967)=>{const _0x457cf9=_0x30e513;for(var _0x385d72=_0x269967>0x1?void 0x0:_0x269967?at(_0x1284a0,_0x53dce0):_0x1284a0,_0x497ae4=_0x34d8d7[_0x457cf9(0x457)]-0x1,_0x4c683a;_0x497ae4>=0x0;_0x497ae4--)(_0x4c683a=_0x34d8d7[_0x497ae4])&&(_0x385d72=_0x4c683a(_0x385d72)||_0x385d72);return _0x385d72;},Y=(_0x4bff05,_0x25196f)=>(_0x38917d,_0x5340f7)=>_0x25196f(_0x38917d,_0x5340f7,_0x4bff05);exports['CollaborationDataLoaderController']=class extends a[_0x30e513(0x2a6)]{constructor(_0x5472fb,_0x6f7346,_0x3b6f44,_0x12f97e,_0x656788){const _0x456f1d=_0x30e513;super(),this[_0x456f1d(0x24a)]=_0x5472fb,this[_0x456f1d(0x479)]=_0x6f7346,this[_0x456f1d(0x289)]=_0x3b6f44,this[_0x456f1d(0x3f2)]=_0x12f97e,_0x656788?_0x656788==null||_0x656788[_0x456f1d(0x302)]()[_0x456f1d(0x343)](()=>this[_0x456f1d(0x38d)]()):(this[_0x456f1d(0x479)][_0x456f1d(0x2fe)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x30e513(0x38d)](){const _0x414aa4=_0x30e513,_0x500ca3=this[_0x414aa4(0x24a)]['getParam'](_0x414aa4(0x322)),_0x28a99f=this[_0x414aa4(0x24a)][_0x414aa4(0x482)](_0x414aa4(0x428)),_0x3260a5=this[_0x414aa4(0x24a)][_0x414aa4(0x482)](_0x414aa4(0x3a8));if(!_0x500ca3||!_0x28a99f){this['_logService'][_0x414aa4(0x2fe)](_0x414aa4(0x28c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x5f5151=await this[_0x414aa4(0x3f2)][_0x414aa4(0x347)](_0x500ca3,Number(_0x28a99f),_0x3260a5);_0x5f5151&&_0x5f5151 instanceof a[_0x414aa4(0x30d)]&&this['_setupSubUnitSync'](_0x5f5151);}async[_0x30e513(0x342)](_0x73a9c0){const _0x7ad512=_0x30e513;await this[_0x7ad512(0x266)](_0x73a9c0),_0x73a9c0['activeSheet$'][_0x7ad512(0x485)](I['takeUntil'](this[_0x7ad512(0x3db)]))[_0x7ad512(0x376)](_0x1fd81a=>{const _0x1a7bd3=_0x7ad512;_0x1fd81a&&this[_0x1a7bd3(0x34b)](_0x1fd81a);}),this['_urlService']['urlChange$'][_0x7ad512(0x485)](I['takeUntil'](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x73a9c0));}[_0x30e513(0x34b)](_0x2a2d2d,_0x3ad703=!0x1){const _0x4288cf=_0x30e513,_0x284876=this[_0x4288cf(0x24a)][_0x4288cf(0x482)]('subunit');_0x2a2d2d[_0x4288cf(0x483)]()!==_0x284876&&this[_0x4288cf(0x24a)]['setParam']('subunit',_0x2a2d2d['getSheetId'](),_0x3ad703);}async[_0x30e513(0x266)](_0x184ee6){const _0x3548a6=_0x30e513;var _0xfc0e2c;const _0x15630a=this[_0x3548a6(0x24a)][_0x3548a6(0x482)](_0x3548a6(0x3a8));if(!_0x15630a||!_0x184ee6[_0x3548a6(0x3fb)](_0x15630a)){const _0x30097d=_0x184ee6['getUnhiddenWorksheets']()[0x0],_0x3435f5=_0x184ee6[_0x3548a6(0x3fb)](_0x30097d);if(!_0x3435f5)return;this[_0x3548a6(0x34b)](_0x3435f5,!0x0),await this[_0x3548a6(0x289)][_0x3548a6(0x478)](v[_0x3548a6(0x235)]['id'],{'unitId':_0x184ee6['getUnitId'](),'subUnitId':_0x30097d});return;}((_0xfc0e2c=_0x184ee6['getActiveSheet']())==null?void 0x0:_0xfc0e2c[_0x3548a6(0x483)]())!==_0x15630a&&await this['_commandService']['executeCommand'](v['SetWorksheetActivateCommand']['id'],{'unitId':_0x184ee6['getUnitId'](),'subUnitId':_0x15630a});}},exports[_0x30e513(0x247)]=ct([Y(0x0,Oe),Y(0x1,a[_0x30e513(0x1f5)]),Y(0x2,a[_0x30e513(0x40a)]),Y(0x3,a['Inject'](u['DataLoaderService'])),Y(0x4,a['Optional'](qe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var lt=Object[_0x30e513(0x45b)],_t=(_0xe79763,_0x4979aa,_0x57f1c5,_0x39f1a4)=>{const _0x159d46=_0x30e513;for(var _0xbc668e=_0x39f1a4>0x1?void 0x0:_0x39f1a4?lt(_0x4979aa,_0x57f1c5):_0x4979aa,_0x1d6231=_0xe79763[_0x159d46(0x457)]-0x1,_0x433046;_0x1d6231>=0x0;_0x1d6231--)(_0x433046=_0xe79763[_0x1d6231])&&(_0xbc668e=_0x433046(_0xbc668e)||_0xbc668e);return _0xbc668e;},De=(_0x3c0614,_0x564f1c)=>(_0xa4fd70,_0x2f83b1)=>_0x564f1c(_0xa4fd70,_0x2f83b1,_0x3c0614);let me=class extends a['RxDisposable']{constructor(_0x32a58e,_0x14c254){const _0x54e019=_0x30e513;super(),this[_0x54e019(0x445)]=_0x32a58e,this[_0x54e019(0x273)]=_0x14c254,this['_init']();}[_0x30e513(0x38d)](){const _0x5450b8=_0x30e513,_0xc3c504=this;this[_0x5450b8(0x2eb)](this[_0x5450b8(0x445)]['addClipboardHook']({'onBeforePasteImage':async _0xb7e1fe=>{const _0x44c4f7=_0x5450b8,_0x407d15=await _0xc3c504[_0x44c4f7(0x273)][_0x44c4f7(0x24d)](_0xb7e1fe);return _0x407d15?{'source':_0x407d15['source'],'imageSourceType':_0x407d15[_0x44c4f7(0x2e9)]}:null;}}));}};me=_t([De(0x0,T[_0x30e513(0x441)]),De(0x1,ze[_0x30e513(0x38e)])],me);const Ne=[_0x30e513(0x3ec),_0x30e513(0x4b2),_0x30e513(0x353),'red.300',_0x30e513(0x41f),'yellow.400'];class Re extends a[_0x30e513(0x3c0)]{constructor(){const _0x3d5fc4=_0x30e513;super(...arguments),_(this,_0x3d5fc4(0x47e),new Map()),_(this,_0x3d5fc4(0x4a3),0x0);}[_0x30e513(0x253)](_0x551285){const _0xf65f39=_0x30e513;if(this[_0xf65f39(0x47e)][_0xf65f39(0x3a7)](_0x551285))return this['_assignedColors'][_0xf65f39(0x3a9)](_0x551285);const _0x3e7cb4=Ne[this[_0xf65f39(0x4a3)]];return this[_0xf65f39(0x4a3)]=(this[_0xf65f39(0x4a3)]+0x1)%Ne['length'],this[_0xf65f39(0x47e)][_0xf65f39(0x416)](_0x551285,_0x3e7cb4),_0x3e7cb4;}}function Fe(_0x22ae17){const _0x100c72=_0x30e513;let _0x5da3b2='';for(const _0x1c7e5c of _0x22ae17){const {startOffset:_0x5be639,endOffset:_0x26c17d,isActive:_0x223a8a,rangeType:_0xe585b0,segmentId:_0x591cd7,segmentPage:_0x238aa2}=_0x1c7e5c;_0x5da3b2[_0x100c72(0x457)]&&(_0x5da3b2+=','),_0x5da3b2+=_0x5be639+':'+_0x26c17d+':'+(_0x223a8a?'1':'0')+':'+_0xe585b0+':'+_0x591cd7+':'+_0x238aa2;}return _0x5da3b2;}function ht(_0xb140cc){const _0x410586=_0x30e513,_0x5daa69=_0xb140cc[_0x410586(0x39a)](','),_0x321022=[];for(const _0x310a0a of _0x5daa69){const [_0x5f5ca9,_0xcf4bbe,_0x5f147e,_0x593faf,_0x345307,_0x2d888b]=_0x310a0a[_0x410586(0x39a)](':');_0x321022[_0x410586(0x293)]({'startOffset':Number(_0x5f5ca9),'endOffset':Number(_0xcf4bbe),'collapsed':_0x5f5ca9===_0xcf4bbe,'isActive':_0x5f147e==='1','rangeType':_0x593faf===a[_0x410586(0x2e0)][_0x410586(0x423)]?a[_0x410586(0x2e0)][_0x410586(0x423)]:a[_0x410586(0x2e0)][_0x410586(0x2d2)],'segmentId':typeof _0x345307==_0x410586(0x2bb)?String(_0x345307):'','segmentPage':Number(_0x2d888b!=null?_0x2d888b:-0x1)});}return _0x321022[_0x410586(0x4b9)](_0x227ec3=>_0x227ec3[_0x410586(0x257)])||(_0x321022[0x0][_0x410586(0x257)]=!0x0),_0x321022;}class be extends a[_0x30e513(0x2a6)]{constructor(){const _0x31c26a=_0x30e513;super(...arguments),_(this,'_collabCursorState$',new I[(_0x31c26a(0x213))](null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x31c26a(0x41d)]());}[_0x30e513(0x395)](_0x4ccb0f){const {unitID:_0x43cb94,memberID:_0x5198bf,textRanges:_0x4a023c}=_0x4ccb0f,_0x4284e1=Fe(_0x4a023c);if(_0x4284e1==='')return;const _0x23e987={'unitID':_0x43cb94,'memberID':_0x5198bf,'selection':_0x4284e1};this['_collabCursorState$']['next'](_0x23e987);}}var ut=Object[_0x30e513(0x45b)],It=(_0x407ee9,_0x45ac2a,_0x27a106,_0x37bf3c)=>{const _0x365860=_0x30e513;for(var _0x491bdf=_0x37bf3c>0x1?void 0x0:_0x37bf3c?ut(_0x45ac2a,_0x27a106):_0x45ac2a,_0x4bbd78=_0x407ee9[_0x365860(0x457)]-0x1,_0x456eee;_0x4bbd78>=0x0;_0x4bbd78--)(_0x456eee=_0x407ee9[_0x4bbd78])&&(_0x491bdf=_0x456eee(_0x491bdf)||_0x491bdf);return _0x491bdf;},U=(_0x32d128,_0x50912e)=>(_0x15286f,_0x45772e)=>_0x50912e(_0x15286f,_0x45772e,_0x32d128);const St=0x12c,dt=0x64;let ve=class extends a['RxDisposable']{constructor(_0x297808,_0x4c0cd9,_0x3750aa,_0x5c62ac,_0x195453,_0x2f0f07,_0x43b43b,_0x169d3d,_0x36bd02){const _0x25136d=_0x30e513;super(),_(this,'_online',!0x1),_(this,'_init',!0x1),_(this,_0x25136d(0x49d),new I[(_0x25136d(0x213))](new Map())),_(this,_0x25136d(0x26a),this[_0x25136d(0x49d)][_0x25136d(0x41d)]()),_(this,_0x25136d(0x3f6),new I[(_0x25136d(0x213))]([])),_(this,_0x25136d(0x3cc),this[_0x25136d(0x3f6)][_0x25136d(0x485)](I[_0x25136d(0x2a5)](St))),_(this,_0x25136d(0x404),a[_0x25136d(0x371)](_0x57fa4b=>{const _0x4c3e3f=_0x25136d,_0x3ba040={'eventID':g[_0x4c3e3f(0x2a1)][_0x4c3e3f(0x304)],'data':{'unitID':this['unitID'],'memberID':this[_0x4c3e3f(0x3b0)][_0x4c3e3f(0x23a)](),'selection':Fe(_0x57fa4b)}};this[_0x4c3e3f(0x3b0)][_0x4c3e3f(0x38f)](_0x3ba040,this[_0x4c3e3f(0x3ea)]);},dt)),(this[_0x25136d(0x3ea)]=_0x297808,this[_0x25136d(0x3b0)]=_0x4c0cd9,this['_injector']=_0x3750aa,this[_0x25136d(0x481)]=_0x5c62ac,this[_0x25136d(0x3b2)]=_0x195453,this[_0x25136d(0x25f)]=_0x2f0f07,this[_0x25136d(0x3fc)]=_0x43b43b,this[_0x25136d(0x4b1)]=_0x169d3d,this[_0x25136d(0x289)]=_0x36bd02);}get[_0x30e513(0x2bc)](){const _0x31b90c=_0x30e513;return this[_0x31b90c(0x49d)]['getValue']();}get[_0x30e513(0x3d5)](){const _0x3657a4=_0x30e513;return this[_0x3657a4(0x3f6)][_0x3657a4(0x237)]();}[_0x30e513(0x3d7)](){const _0x19f5c1=_0x30e513;super[_0x19f5c1(0x3d7)](),this[_0x19f5c1(0x49d)][_0x19f5c1(0x44a)](new Map()),this['_cursorInfo$'][_0x19f5c1(0x47b)](),this[_0x19f5c1(0x3f6)][_0x19f5c1(0x44a)]([]),this[_0x19f5c1(0x3f6)]['complete']();}[_0x30e513(0x220)](){const _0x59fe30=_0x30e513;this[_0x59fe30(0x38d)]||(this[_0x59fe30(0x38d)]=!0x0,this['_session'][_0x59fe30(0x43e)][_0x59fe30(0x485)](I[_0x59fe30(0x367)](this[_0x59fe30(0x3db)]))['subscribe'](_0x12c5a8=>{const _0x123f57=_0x59fe30;_0x12c5a8===u[_0x123f57(0x37a)][_0x123f57(0x2f4)]?this[_0x123f57(0x381)]():this['_toggleOffline']();}),this['_session']['event$'][_0x59fe30(0x485)](I[_0x59fe30(0x367)](this[_0x59fe30(0x3db)]))['subscribe'](_0xbbcd51=>{const _0x12d60d=_0x59fe30,_0x385920=_0xbbcd51['eventID'];_0x385920===g[_0x12d60d(0x2a1)]['UPDATE_CURSOR']&&this[_0x12d60d(0x228)](_0xbbcd51),_0x385920===g['CollaborationEvent'][_0x12d60d(0x366)]&&this[_0x12d60d(0x224)](_0xbbcd51);}),this[_0x59fe30(0x2eb)](this['_commandService'][_0x59fe30(0x2e3)](_0x4214ab=>{const _0x355700=_0x59fe30,_0x4bd12f=_0x4214ab[_0x355700(0x450)];_0x4bd12f!=null&&this[_0x355700(0x2ca)]&&_0x4214ab['id']===V[_0x355700(0x31a)]['id']&&_0x4bd12f['unitId']===this[_0x355700(0x3ea)]&&_0x4bd12f[_0x355700(0x207)]===!0x1&&_0x4bd12f[_0x355700(0x2cf)][_0x355700(0x457)]>0x0&&this[_0x355700(0x404)](_0x4bd12f[_0x355700(0x2cf)]);})),this[_0x59fe30(0x25f)][_0x59fe30(0x48b)]['pipe'](I[_0x59fe30(0x367)](this[_0x59fe30(0x3db)]))['subscribe'](_0x474c97=>{const _0x354415=_0x59fe30;if((_0x474c97==null?void 0x0:_0x474c97[_0x354415(0x3ea)])!==this['unitID'])return;const _0x3c681a={'eventID':g[_0x354415(0x2a1)][_0x354415(0x304)],'data':_0x474c97};this[_0x354415(0x228)](_0x3c681a);}),this['disposeWithMe'](this['_commandService'][_0x59fe30(0x2e3)](_0xe2be52=>{const _0xb6ad99=_0x59fe30;if(_0xe2be52['params']==null)return;const _0x5d706c=_0xe2be52[_0xb6ad99(0x450)];if(_0xe2be52['id']!==V['RichTextEditingMutation']['id']||_0x5d706c['unitId']!==this[_0xb6ad99(0x3ea)])return;const _0x617de={'id':'doc.mutation.rich-text-editing','params':_0x5d706c},_0x2ccc15=this['cursorInfo'];for(const [_0x5096a5,_0x547f5e]of _0x2ccc15){const _0x456276={'id':_0xb6ad99(0x30c),'params':{'unitId':this[_0xb6ad99(0x3ea)],'actions':null,'textRanges':_0x547f5e[_0xb6ad99(0x2cf)]}},_0x3c286e=this[_0xb6ad99(0x3fc)][_0xb6ad99(0x429)](_0x617de,_0x456276,!0x1);if(g[_0xb6ad99(0x365)](_0x3c286e))throw _0x3c286e[_0xb6ad99(0x244)];_0x2ccc15[_0xb6ad99(0x416)](_0x5096a5,{..._0x547f5e,'ranges':_0x3c286e[_0xb6ad99(0x336)][_0xb6ad99(0x450)][_0xb6ad99(0x33f)]});}queueMicrotask(()=>{const _0x4b848c=_0xb6ad99;this[_0x4b848c(0x49d)]['next'](_0x2ccc15);});})));}[_0x30e513(0x228)](_0x528e99){const _0xb64db8=_0x30e513;var _0x2dad40,_0x159271;const {memberID:_0x30abec,selection:_0x52e635}=_0x528e99['data'],_0x15ae37=ht(_0x52e635),_0x380e71=(_0x159271=(_0x2dad40=this[_0xb64db8(0x3b2)]['getMember'](this[_0xb64db8(0x3ea)],_0x30abec))==null?void 0x0:_0x2dad40[_0xb64db8(0x4a4)])!=null?_0x159271:_0xb64db8(0x3a1),_0x7b86b={'color':this[_0xb64db8(0x481)][_0xb64db8(0x253)](_0x30abec),'name':_0x380e71,'ranges':_0x15ae37},_0x45cf99=this[_0xb64db8(0x2bc)];_0x45cf99[_0xb64db8(0x416)](_0x30abec,_0x7b86b),this[_0xb64db8(0x49d)][_0xb64db8(0x44a)](_0x45cf99);}[_0x30e513(0x224)](_0x144f7d){const _0x1281e4=_0x30e513,{memberID:_0x5f2cb8}=_0x144f7d[_0x1281e4(0x430)],_0x25afa5=this[_0x1281e4(0x2bc)];_0x25afa5[_0x1281e4(0x216)](_0x5f2cb8),this[_0x1281e4(0x49d)][_0x1281e4(0x44a)](_0x25afa5);}['_toggleOnline'](){const _0x5bbbc7=_0x30e513;var _0x440d65;if(this[_0x5bbbc7(0x2ca)]=!0x0,((_0x440d65=this[_0x5bbbc7(0x4b1)][_0x5bbbc7(0x4ad)]())==null?void 0x0:_0x440d65[_0x5bbbc7(0x241)]())!==this['unitID'])return;const _0x54405b=this[_0x5bbbc7(0x23e)]['get'](V[_0x5bbbc7(0x1fb)])[_0x5bbbc7(0x383)]();Array[_0x5bbbc7(0x212)](_0x54405b)&&_0x54405b['length']>0x0&&this[_0x5bbbc7(0x404)](_0x54405b);}['_toggleOffline'](){const _0x17e3c6=_0x30e513;this[_0x17e3c6(0x2ca)]=!0x1;}};ve=It([U(0x2,a[_0x30e513(0x3f5)](a['Injector'])),U(0x3,a[_0x30e513(0x3f5)](Re)),U(0x4,a['Inject'](u['MemberService'])),U(0x5,a[_0x30e513(0x3f5)](be)),U(0x6,g[_0x30e513(0x252)]),U(0x7,a['IUniverInstanceService']),U(0x8,a['ICommandService'])],ve);var ft=Object[_0x30e513(0x45b)],mt=(_0x10ccc6,_0x3d1383,_0x328885,_0x4c391a)=>{const _0x48d655=_0x30e513;for(var _0x1ee057=_0x4c391a>0x1?void 0x0:_0x4c391a?ft(_0x3d1383,_0x328885):_0x3d1383,_0x52fa08=_0x10ccc6[_0x48d655(0x457)]-0x1,_0x7059c8;_0x52fa08>=0x0;_0x52fa08--)(_0x7059c8=_0x10ccc6[_0x52fa08])&&(_0x1ee057=_0x7059c8(_0x1ee057)||_0x1ee057);return _0x1ee057;},w=(_0x1b777e,_0x401455)=>(_0x1e605d,_0x54f6e5)=>_0x401455(_0x1e605d,_0x54f6e5,_0x1b777e);const vt=0x12c,gt=0x64,Et=()=>{let _0x5554b6=[],_0x49e60f=!0x1;return _0xbe0ce3=>{const _0x19574d=_0x2f23;_0x5554b6[_0x19574d(0x293)](_0xbe0ce3),_0x49e60f||(_0x49e60f=!0x0,setTimeout(()=>{_0x5554b6['forEach'](_0x7f69b4=>_0x7f69b4()),_0x5554b6=[],_0x49e60f=!0x1;}));};};let ge=class extends a[_0x30e513(0x2a6)]{constructor(_0x34e91d,_0x639360,_0x146645,_0x1beacc,_0x3694ca,_0x430aa9,_0x23b5e3,_0x215980){const _0x516bb5=_0x30e513;super(),_(this,_0x516bb5(0x2ca),!0x1),_(this,_0x516bb5(0x38d),!0x1),_(this,_0x516bb5(0x49d),new I[(_0x516bb5(0x213))](new Map())),_(this,_0x516bb5(0x26a),this['_cursorInfo$'][_0x516bb5(0x41d)]()),_(this,_0x516bb5(0x3f6),new I[(_0x516bb5(0x213))]([])),_(this,'roomMembers$',this[_0x516bb5(0x3f6)][_0x516bb5(0x485)](I[_0x516bb5(0x2a5)](vt))),_(this,_0x516bb5(0x404),a['debounce']((_0x4560ef,_0x1197fe)=>{const _0x1abf99=_0x516bb5,_0x164ba1={'eventID':g[_0x1abf99(0x2a1)][_0x1abf99(0x304)],'data':{'unitID':this['unitID'],'memberID':this[_0x1abf99(0x3b0)]['getMemberID'](),'selection':B[_0x1abf99(0x295)](_0x4560ef,_0x1197fe[_0x1abf99(0x471)])}};this['_session'][_0x1abf99(0x38f)](_0x164ba1,this[_0x1abf99(0x3ea)]);},gt)),(this['unitID']=_0x34e91d,this[_0x516bb5(0x3b0)]=_0x639360,this['_injector']=_0x146645,this[_0x516bb5(0x481)]=_0x1beacc,this[_0x516bb5(0x3b2)]=_0x3694ca,this[_0x516bb5(0x4b1)]=_0x430aa9,this['_commandService']=_0x23b5e3,this[_0x516bb5(0x2d9)]=_0x215980);}get[_0x30e513(0x2bc)](){const _0x25c629=_0x30e513;return this[_0x25c629(0x49d)]['getValue']();}get[_0x30e513(0x3d5)](){const _0xf17936=_0x30e513;return this[_0xf17936(0x3f6)][_0xf17936(0x237)]();}['dispose'](){const _0x18ff7d=_0x30e513;super[_0x18ff7d(0x3d7)](),this[_0x18ff7d(0x49d)][_0x18ff7d(0x44a)](new Map()),this['_cursorInfo$'][_0x18ff7d(0x47b)](),this[_0x18ff7d(0x3f6)][_0x18ff7d(0x44a)]([]),this[_0x18ff7d(0x3f6)][_0x18ff7d(0x47b)]();}[_0x30e513(0x220)](){const _0x4cd578=_0x30e513;this[_0x4cd578(0x38d)]||(this[_0x4cd578(0x38d)]=!0x0,this['_session']['sessionStatus$'][_0x4cd578(0x485)](I[_0x4cd578(0x367)](this[_0x4cd578(0x3db)]))[_0x4cd578(0x376)](_0x5c0164=>{const _0x1c4e48=_0x4cd578;_0x5c0164===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x1c4e48(0x379)]();}),this[_0x4cd578(0x3b0)][_0x4cd578(0x3ef)][_0x4cd578(0x485)](I[_0x4cd578(0x367)](this[_0x4cd578(0x3db)]))['subscribe'](_0x3b182b=>{const _0x4291f1=_0x4cd578,_0x356a6d=_0x3b182b[_0x4291f1(0x46c)];_0x356a6d===g[_0x4291f1(0x2a1)][_0x4291f1(0x304)]&&this[_0x4291f1(0x228)](_0x3b182b),_0x356a6d===g['CollaborationEvent'][_0x4291f1(0x366)]&&this[_0x4291f1(0x224)](_0x3b182b);}),this[_0x4cd578(0x2d4)](),this[_0x4cd578(0x2eb)](this['_commandService'][_0x4cd578(0x2e3)](_0x221379=>{const _0x425d1f=_0x4cd578;if(this[_0x425d1f(0x2ca)]&&_0x221379['id']===v[_0x425d1f(0x467)]['id']&&_0x221379[_0x425d1f(0x450)][_0x425d1f(0x4a1)]===this[_0x425d1f(0x3ea)]){const _0x3131dc=_0x221379[_0x425d1f(0x450)];this[_0x425d1f(0x404)](_0x3131dc[_0x425d1f(0x47c)],_0x3131dc[_0x425d1f(0x49c)][0x0]);}})));}[_0x30e513(0x228)](_0x4baa41){const _0x308bba=_0x30e513;var _0x52866d,_0x558d63;const {memberID:_0x35f5f2,selection:_0x16e2f0}=_0x4baa41[_0x308bba(0x430)],{sheetName:_0x21837a,range:_0x2f567f}=B[_0x308bba(0x24b)](_0x16e2f0),_0x1d3131={'name':(_0x558d63=(_0x52866d=this[_0x308bba(0x3b2)]['getMember'](this[_0x308bba(0x3ea)],_0x35f5f2))==null?void 0x0:_0x52866d['name'])!=null?_0x558d63:_0x308bba(0x3a1),'range':this[_0x308bba(0x447)](_0x21837a,_0x2f567f),'sheetID':_0x21837a,'color':this[_0x308bba(0x481)][_0x308bba(0x253)](_0x35f5f2),'selection':_0x16e2f0},_0x35410a=this['cursorInfo'];_0x35410a['set'](_0x35f5f2,_0x1d3131),this[_0x308bba(0x49d)][_0x308bba(0x44a)](_0x35410a);}[_0x30e513(0x224)](_0xa207cb){const _0x31064e=_0x30e513,{memberID:_0x441f31}=_0xa207cb[_0x31064e(0x430)],_0x2e053f=this[_0x31064e(0x2bc)];_0x2e053f[_0x31064e(0x216)](_0x441f31),this[_0x31064e(0x49d)][_0x31064e(0x44a)](_0x2e053f);}[_0x30e513(0x447)](_0x25861e,_0x4e4ee6){const _0x5471e8=_0x30e513;var _0x5262dd,_0x17c14a;const _0x2a60fd=(_0x17c14a=(_0x5262dd=this[_0x5471e8(0x4b1)][_0x5471e8(0x3e7)](this[_0x5471e8(0x3ea)]))==null?void 0x0:_0x5262dd[_0x5471e8(0x3fb)](_0x25861e))==null?void 0x0:_0x17c14a['getMergeData']();return(_0x2a60fd==null?void 0x0:_0x2a60fd[_0x5471e8(0x1fe)](_0x3fdedd=>a[_0x5471e8(0x346)][_0x5471e8(0x3d2)](_0x3fdedd,_0x4e4ee6)))||_0x4e4ee6;}['_onRefRangeChange'](){const _0x1a9e66=_0x30e513,_0x3f926a=new a[(_0x1a9e66(0x422))](),_0x4a076a=Et(),_0x438a02=()=>{const _0x49b219=_0x1a9e66;_0x3f926a[_0x49b219(0x3d7)]();const _0x49042c=(_0x4325d2,_0x5bce13,_0xe322ef,_0xf084ef)=>{const _0x66aea4=_0x49b219;let _0x2801fb=[];switch(_0x4325d2['id']){case v[_0x66aea4(0x29e)]['DeleteRangeMoveLeftCommandId']:{_0x2801fb=v[_0x66aea4(0x2f3)](_0x4325d2,_0xf084ef);break;}case v['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x2801fb=v[_0x66aea4(0x453)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)]['InsertColCommandId']:{_0x2801fb=v['handleInsertCol'](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x36b)]:{_0x2801fb=v[_0x66aea4(0x26c)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x26f)]:{_0x2801fb=v[_0x66aea4(0x415)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)]['InsertRowCommandId']:{_0x2801fb=v['handleInsertRow'](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x356)]:{_0x2801fb=v[_0x66aea4(0x3bb)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x332)]:{_0x2801fb=v[_0x66aea4(0x41c)](_0x4325d2,_0xf084ef);break;}case v[_0x66aea4(0x29e)][_0x66aea4(0x249)]:{_0x2801fb=v[_0x66aea4(0x28f)](_0x4325d2,_0xf084ef);break;}}const _0x269319=v[_0x66aea4(0x39d)](_0x2801fb,_0xf084ef),_0x58541c=this[_0x66aea4(0x2bc)][_0x66aea4(0x3a9)](_0x5bce13);if(_0x58541c&&_0x269319){const _0x612c7a={..._0x58541c,'range':_0x269319};this[_0x66aea4(0x2bc)]['set'](_0x5bce13,_0x612c7a),_0x4a076a(()=>{const _0x5af5d2=_0x66aea4,_0x4e43b7=this['_refRangeService'][_0x5af5d2(0x316)](_0x269319,_0x1975a1=>(_0x4e43b7[_0x5af5d2(0x3d7)](),_0x49042c(_0x1975a1,_0x5bce13,_0xe322ef,_0x269319)));_0x3f926a['add'](_0x4e43b7);});}return{'redos':[],'undos':[]};};this[_0x49b219(0x2bc)][_0x49b219(0x25c)]((_0x34d548,_0x2b197d)=>{const _0x366b50=_0x49b219,{range:_0x3d9e4f,sheetID:_0x44a241}=_0x34d548,_0x27d27d=this[_0x366b50(0x2d9)][_0x366b50(0x316)](_0x3d9e4f,_0x408571=>(_0x27d27d[_0x366b50(0x3d7)](),_0x49042c(_0x408571,_0x2b197d,_0x44a241,_0x3d9e4f)));_0x3f926a[_0x366b50(0x2e4)](_0x27d27d);});};this[_0x1a9e66(0x2eb)](a[_0x1a9e66(0x3e2)](this[_0x1a9e66(0x49d)][_0x1a9e66(0x376)](()=>{_0x438a02();})));}[_0x30e513(0x381)](){const _0x24d3ec=_0x30e513;var _0x2921cb,_0xcb693b;if(this[_0x24d3ec(0x2ca)]=!0x0,((_0x2921cb=this[_0x24d3ec(0x4b1)][_0x24d3ec(0x4ad)]())==null?void 0x0:_0x2921cb[_0x24d3ec(0x241)]())!==this[_0x24d3ec(0x3ea)])return;const _0x2b4624=(_0xcb693b=this[_0x24d3ec(0x23e)][_0x24d3ec(0x3a9)](v[_0x24d3ec(0x41e)])[_0x24d3ec(0x3d3)]())==null?void 0x0:_0xcb693b[0x0],_0x373c6c=this[_0x24d3ec(0x4b1)][_0x24d3ec(0x43c)](a[_0x24d3ec(0x2c1)][_0x24d3ec(0x230)])[_0x24d3ec(0x391)]();_0x2b4624&&_0x373c6c&&this[_0x24d3ec(0x404)](_0x373c6c[_0x24d3ec(0x483)](),_0x2b4624);}[_0x30e513(0x379)](){const _0x402249=_0x30e513;this[_0x402249(0x2ca)]=!0x1;}};ge=mt([w(0x2,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),w(0x3,a[_0x30e513(0x3f5)](Re)),w(0x4,a['Inject'](u[_0x30e513(0x2c5)])),w(0x5,a[_0x30e513(0x202)]),w(0x6,a['ICommandService']),w(0x7,a[_0x30e513(0x3f5)](v[_0x30e513(0x37e)]))],ge);var Ct=Object[_0x30e513(0x45b)],Tt=(_0x9d6036,_0xf54fbe,_0x4f9396,_0x39ff8e)=>{for(var _0x5ecdc4=_0x39ff8e>0x1?void 0x0:_0x39ff8e?Ct(_0xf54fbe,_0x4f9396):_0xf54fbe,_0x217101=_0x9d6036['length']-0x1,_0x21d2b1;_0x217101>=0x0;_0x217101--)(_0x21d2b1=_0x9d6036[_0x217101])&&(_0x5ecdc4=_0x21d2b1(_0x5ecdc4)||_0x5ecdc4);return _0x5ecdc4;},ce=(_0x49834d,_0x459e05)=>(_0x3e75c1,_0x445558)=>_0x459e05(_0x3e75c1,_0x445558,_0x49834d);let F=class extends a['RxDisposable']{constructor(_0x5dfab4,_0x2dd410,_0x5ae4a8){const _0x36d733=_0x30e513;super(),_(this,_0x36d733(0x218),new Map()),_(this,'_entityInit$',new I['Subject']()),(this[_0x36d733(0x4b1)]=_0x5dfab4,this[_0x36d733(0x23e)]=_0x2dd410,this[_0x36d733(0x2b3)]=_0x5ae4a8,this[_0x36d733(0x38d)]());}[_0x30e513(0x3d7)](){const _0x576d70=_0x30e513;super[_0x576d70(0x3d7)](),this[_0x576d70(0x4a6)][_0x576d70(0x47b)](),this[_0x576d70(0x218)][_0x576d70(0x25c)](_0x4f3ed7=>_0x4f3ed7[_0x576d70(0x3d7)]());}['getCollabCursors$'](_0xe0d032){const _0x518d5b=_0x30e513;return this[_0x518d5b(0x218)][_0x518d5b(0x3a7)](_0xe0d032)?this['_entities']['get'](_0xe0d032)[_0x518d5b(0x26a)]:this[_0x518d5b(0x4a6)][_0x518d5b(0x485)](I[_0x518d5b(0x458)](_0x528f50=>_0x528f50['unitID']===_0xe0d032),I['switchMap'](_0x54abac=>_0x54abac[_0x518d5b(0x26a)]));}[_0x30e513(0x38d)](){const _0x20e02d=_0x30e513;this[_0x20e02d(0x4b1)][_0x20e02d(0x46e)](a[_0x20e02d(0x2c1)][_0x20e02d(0x230)])[_0x20e02d(0x485)](I[_0x20e02d(0x367)](this[_0x20e02d(0x3db)]))['subscribe'](async _0x256388=>{const _0x416d97=_0x20e02d,_0xfea49f=_0x256388[_0x416d97(0x241)](),_0x38fbc9=await this[_0x416d97(0x340)](_0xfea49f);this[_0x416d97(0x4a6)][_0x416d97(0x44a)](_0x38fbc9),this['_entities'][_0x416d97(0x416)](_0xfea49f,_0x38fbc9);}),this[_0x20e02d(0x4b1)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x20e02d(0x4ae)])['pipe'](I[_0x20e02d(0x367)](this['dispose$']))[_0x20e02d(0x485)](I[_0x20e02d(0x458)](_0x1d4ea6=>!_0x1d4ea6['getUnitId']()[_0x20e02d(0x217)]('__')))[_0x20e02d(0x376)](async _0x7a7d4d=>{const _0x3cfdad=_0x20e02d,_0x2173d2=_0x7a7d4d[_0x3cfdad(0x241)](),_0x4b3d46=await this['_startDocCollabCursor'](_0x2173d2);this[_0x3cfdad(0x4a6)][_0x3cfdad(0x44a)](_0x4b3d46),this[_0x3cfdad(0x218)]['set'](_0x2173d2,_0x4b3d46);}),I[_0x20e02d(0x29c)](this[_0x20e02d(0x4b1)][_0x20e02d(0x238)](a[_0x20e02d(0x2c1)][_0x20e02d(0x4ae)]),this[_0x20e02d(0x4b1)][_0x20e02d(0x238)](a[_0x20e02d(0x2c1)]['UNIVER_SHEET']))[_0x20e02d(0x485)](I['takeUntil'](this['dispose$']))[_0x20e02d(0x376)](_0x561e66=>{const _0xf2c118=_0x20e02d,_0x2ad929=_0x561e66['getUnitId'](),_0x421dd3=this[_0xf2c118(0x218)]['get'](_0x2ad929);_0x421dd3&&(_0x421dd3['dispose'](),this[_0xf2c118(0x218)][_0xf2c118(0x216)](_0x2ad929));});}async[_0x30e513(0x340)](_0x3cdac5){const _0x50cc69=_0x30e513,_0x1c0beb=await this[_0x50cc69(0x2b3)][_0x50cc69(0x4b4)](_0x3cdac5),_0x565705=this[_0x50cc69(0x23e)][_0x50cc69(0x480)](ge,_0x3cdac5,_0x1c0beb);return _0x565705[_0x50cc69(0x220)](),_0x565705;}async[_0x30e513(0x2f8)](_0x8d3d35){const _0x47029a=_0x30e513,_0x1cfdbf=await this['_collabSessionService'][_0x47029a(0x4b4)](_0x8d3d35),_0x26158d=this['_injector']['createInstance'](ve,_0x8d3d35,_0x1cfdbf);return _0x26158d[_0x47029a(0x220)](),_0x26158d;}};F=Tt([ce(0x0,a[_0x30e513(0x202)]),ce(0x1,a['Inject'](a['Injector'])),ce(0x2,a[_0x30e513(0x3f5)](u[_0x30e513(0x2ef)]))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x522bfd,_0x20785a){const _0x629ad0=_0x30e513;let {radius:_0xae0819,width:_0x546a6f,height:_0x36c232}=_0x20785a;_0xae0819=_0xae0819!=null?_0xae0819:0x0,_0x546a6f=_0x546a6f!=null?_0x546a6f:0x1e,_0x36c232=_0x36c232!=null?_0x36c232:0x1e;let _0x3c4314=0x0,_0x2dcf14=0x0,_0x28471a=0x0;_0x3c4314=_0x2dcf14=_0x28471a=Math[_0x629ad0(0x34e)](_0xae0819,_0x546a6f/0x2,_0x36c232/0x2),_0x522bfd[_0x629ad0(0x2f6)](),_0x522bfd[_0x629ad0(0x2f2)](_0x3c4314,0x0),_0x522bfd['lineTo'](_0x546a6f-_0x2dcf14,0x0),_0x522bfd[_0x629ad0(0x464)](_0x546a6f-_0x2dcf14,_0x2dcf14,_0x2dcf14,Math['PI']*0x3/0x2,0x0,!0x1),_0x522bfd[_0x629ad0(0x460)](_0x546a6f,_0x36c232-_0x28471a),_0x522bfd[_0x629ad0(0x464)](_0x546a6f-_0x28471a,_0x36c232-_0x28471a,_0x28471a,0x0,Math['PI']/0x2,!0x1),_0x522bfd[_0x629ad0(0x460)](0x0,_0x36c232),_0x522bfd['lineTo'](0x0,_0x3c4314),_0x522bfd[_0x629ad0(0x464)](_0x3c4314,_0x3c4314,_0x3c4314,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x522bfd[_0x629ad0(0x477)](),_0x20785a[_0x629ad0(0x31e)]&&(_0x522bfd[_0x629ad0(0x2e6)](),_0x522bfd[_0x629ad0(0x1f6)]=_0x20785a[_0x629ad0(0x31e)],_0x20785a['fillRule']===_0x629ad0(0x398)?_0x522bfd[_0x629ad0(0x31e)](_0x629ad0(0x398)):_0x522bfd[_0x629ad0(0x31e)](),_0x522bfd[_0x629ad0(0x476)]());}class re extends C[_0x30e513(0x31d)]{constructor(_0x32a8a4,_0x34755d){const _0x1ac9f6=_0x30e513;super(_0x32a8a4,_0x34755d),_(this,'color'),_(this,'text'),(this[_0x1ac9f6(0x39c)]=_0x34755d==null?void 0x0:_0x34755d[_0x1ac9f6(0x39c)],this['text']=_0x34755d==null?void 0x0:_0x34755d[_0x1ac9f6(0x250)]);}static[_0x30e513(0x452)](_0x5c764e,_0x522123){const _0x47749f=_0x30e513,{text:_0x5d716c,color:_0x203e6a}=_0x522123;_0x5c764e['save'](),_0x5c764e[_0x47749f(0x419)]=_0x47749f(0x3c3);const _0x52e994=_0x5c764e[_0x47749f(0x390)](_0x5d716c)[_0x47749f(0x24e)],_0x2e949d=Math[_0x47749f(0x34e)](_0x52e994+0x2*le,Ue);Ot(_0x5c764e,{'height':X,'radius':0x4,'width':_0x2e949d,'fill':_0x203e6a}),_0x5c764e[_0x47749f(0x1f6)]=_0x47749f(0x40c);const _0x300fc6=le,_0x2582be=X-pt,_0x2e336b=Ue-0x2*le;if(_0x52e994>_0x2e336b){let _0x106982='',_0x459977=0x0;for(const _0x989aa of _0x5d716c){const _0x2c3a84=_0x5c764e[_0x47749f(0x390)](_0x989aa)[_0x47749f(0x24e)];if(_0x459977+_0x2c3a84<=_0x2e336b-_0x5c764e[_0x47749f(0x390)](_0x47749f(0x2d8))[_0x47749f(0x24e)])_0x106982+=_0x989aa,_0x459977+=_0x2c3a84;else{_0x106982+='...';break;}}_0x5c764e['fillText'](_0x106982,_0x300fc6,_0x2582be);}else _0x5c764e[_0x47749f(0x370)](_0x5d716c,_0x300fc6,_0x2582be);_0x5c764e['restore']();}[_0x30e513(0x362)](_0x1be85e){re['drawWith'](_0x1be85e,this);}}const _e='collab-text-anchor-',Rt=_0x30e513(0x490),bt=_0x30e513(0x2b5),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x30e513(0x373);class Le{constructor(_0x27bb59,_0x388cf1,_0x4c4552,_0x5d6671){const _0x25728e=_0x30e513;_(this,_0x25728e(0x338),[]),_(this,_0x25728e(0x414),null),_(this,'_textBubble',null),_(this,_0x25728e(0x3aa),null),_(this,_0x25728e(0x30b),null),_(this,'_eventUnsubscribe',null),(this[_0x25728e(0x426)]=_0x27bb59,this['_scene']=_0x388cf1,this[_0x25728e(0x3b1)]=_0x4c4552,this[_0x25728e(0x2b6)]=_0x5d6671,this['_render']());}set['_hover'](_0x113107){const _0x5d495d=_0x30e513;_0x113107?(this[_0x5d495d(0x3aa)]&&this[_0x5d495d(0x3aa)][_0x5d495d(0x3ac)](),this[_0x5d495d(0x233)]&&this['_textBubble'][_0x5d495d(0x258)]()):(this[_0x5d495d(0x3aa)]&&this[_0x5d495d(0x3aa)][_0x5d495d(0x258)](),this[_0x5d495d(0x233)]&&this[_0x5d495d(0x233)]['hide']());}[_0x30e513(0x3d7)](){const _0x29535f=_0x30e513;for(const _0x52601c of this[_0x29535f(0x338)])_0x52601c['dispose']();this['_textBubble']&&this[_0x29535f(0x233)]['dispose'](),this[_0x29535f(0x3aa)]&&this['_anchorDot']['dispose'](),this[_0x29535f(0x414)]&&this[_0x29535f(0x414)]['dispose'](),this[_0x29535f(0x418)]&&this[_0x29535f(0x418)]();}[_0x30e513(0x2b7)](){const _0xdc758a=_0x30e513;var _0x464f0d;const {_docSkeleton:_0x7ee6bb,_document:_0xb7b0dc}=this,{color:_0x48c635,name:_0x7c7b9,ranges:_0x4d1880}=this[_0xdc758a(0x426)],_0x48f213=_0xb7b0dc['getOffsetConfig'](),{docsLeft:_0x395d39,docsTop:_0x31657a}=_0x48f213,_0x46025e=new T[(_0xdc758a(0x22d))](_0x48f213,_0x7ee6bb);for(const {startOffset:_0x1d9e2d,endOffset:_0x5dad36,rangeType:_0x584f0d,segmentId:_0x1e6af0,segmentPage:_0x3c114b,collapsed:_0x392d3a,isActive:_0x2ea1be}of _0x4d1880){const _0x531788=_0x7ee6bb['findNodePositionByCharIndex'](_0x1d9e2d,!0x0,_0x1e6af0,_0x3c114b);let _0x5540ec=_0x7ee6bb[_0xdc758a(0x499)](_0x5dad36,!0x0,_0x1e6af0,_0x3c114b);if(_0x5540ec==null&&(_0x5540ec=_0x7ee6bb[_0xdc758a(0x499)](_0x5dad36-0x1,!0x1,_0x1e6af0,_0x3c114b)),_0x2ea1be){const {contentBoxPointGroup:_0x884012}=_0x46025e[_0xdc758a(0x417)](_0x5540ec,_0x5540ec);if(_0x884012[_0xdc758a(0x457)]===0x0)continue;this[_0xdc758a(0x30e)](_0x48c635,_0x884012,_0x395d39,_0x31657a,_0x7c7b9),this[_0xdc758a(0x418)]=this[_0xdc758a(0x2c7)]();}if(_0x531788&&_0x5540ec){if(_0x584f0d===a[_0xdc758a(0x2e0)][_0xdc758a(0x2d2)]){const _0x4a08ca=new T[(_0xdc758a(0x43b))](_0x48f213,_0x7ee6bb),{pointGroup:_0x370015}=(_0x464f0d=_0x4a08ca['getRangePointData'](_0x531788,_0x5540ec))!=null?_0x464f0d:{};if(_0x370015==null||_0x370015[_0xdc758a(0x457)]===0x0)continue;this[_0xdc758a(0x25b)](_0x48c635,_0x370015,_0x395d39,_0x31657a);}else{if(!_0x392d3a){const {borderBoxPointGroup:_0x5c06d1}=_0x46025e[_0xdc758a(0x417)](_0x531788,_0x5540ec);if(_0x5c06d1[_0xdc758a(0x457)]===0x0)continue;this[_0xdc758a(0x3c6)](_0x48c635,_0x5c06d1,_0x395d39,_0x31657a);}}}}}[_0x30e513(0x30e)](_0x18963e,_0x3922d2,_0x2c2e77,_0x139644,_0xe4fe7a){const _0x1fb410=_0x30e513,_0x1d08d2=this[_0x1fb410(0x275)](_0x3922d2),{left:_0x16eb8f,top:_0x8aad79,height:_0x2dc965}=_0x1d08d2,_0x16d625=this[_0x1fb410(0x2a2)](),_0x268dd8=Nt/_0x16d625,_0x3cd434=new C[(_0x1fb410(0x265))](_e+a[_0x1fb410(0x301)](H),{'left':_0x16eb8f+_0x2c2e77-_0x268dd8,'top':_0x8aad79+_0x139644,'height':_0x2dc965,'width':Dt,'fill':_0x18963e||C[_0x1fb410(0x3fd)](a[_0x1fb410(0x44c)][_0x1fb410(0x3b7)],0x0),'strokeWidth':_0x268dd8,'stroke':Ut,'evented':!0x0});this[_0x1fb410(0x414)]=_0x3cd434,this[_0x1fb410(0x315)]['addObject'](_0x3cd434,T[_0x1fb410(0x393)]);const _0x5394c5=new C[(_0x1fb410(0x265))](_e+a[_0x1fb410(0x301)](H),{'left':_0x16eb8f+_0x2c2e77-_0x268dd8,'top':_0x8aad79+_0x139644-he/0x2,'height':he,'width':he,'fill':_0x18963e||C[_0x1fb410(0x3fd)](a[_0x1fb410(0x44c)][_0x1fb410(0x3b7)],0x0),'strokeWidth':0x0,'stroke':_0x18963e||C['getColor'](a[_0x1fb410(0x44c)][_0x1fb410(0x3b7)],0x0),'evented':!0x1});this[_0x1fb410(0x3aa)]=_0x5394c5,this[_0x1fb410(0x315)][_0x1fb410(0x43a)](_0x5394c5,T[_0x1fb410(0x393)]);const _0x47b00c=new re(_e+a[_0x1fb410(0x301)](H),{'left':_0x16eb8f+_0x2c2e77-_0x268dd8,'top':_0x8aad79+_0x139644-X,'text':_0xe4fe7a,'color':_0x18963e});this[_0x1fb410(0x233)]=_0x47b00c,this[_0x1fb410(0x315)][_0x1fb410(0x43a)](_0x47b00c,T[_0x1fb410(0x393)]),this[_0x1fb410(0x2a3)]=!0x1;}['_handleHover'](){const _0x46e018=_0x30e513,_0xc2e14c=this[_0x46e018(0x414)]['onPointerEnter$'][_0x46e018(0x439)](()=>{const _0xb65286=_0x46e018;this[_0xb65286(0x2a3)]=!0x0;}),_0x625bfa=this[_0x46e018(0x414)][_0x46e018(0x37c)][_0x46e018(0x439)](()=>{const _0x215b2a=_0x46e018;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x215b2a(0x30b)]=setTimeout(()=>{const _0x98d676=_0x215b2a;this[_0x98d676(0x2a3)]=!0x1;},0x7d0);});return()=>{const _0x41bf4b=_0x46e018;_0xc2e14c[_0x41bf4b(0x3d4)](),_0x625bfa[_0x41bf4b(0x3d4)]();};}['_drawTextRange'](_0xa46b2f,_0x5dba76,_0x501b11,_0x91de34){const _0xdd6c63=_0x30e513,_0x4a45f1=new a['ColorKit'](_0xa46b2f)[_0xdd6c63(0x23f)](0.2)[_0xdd6c63(0x394)](),_0x347e0a=new C['RegularPolygon'](Rt+a[_0xdd6c63(0x301)](H),{'pointsGroup':_0x5dba76,'fill':_0x4a45f1||C['getColor'](a[_0xdd6c63(0x44c)][_0xdd6c63(0x3b7)],0.2),'left':_0x501b11,'top':_0x91de34,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xdd6c63(0x293)](_0x347e0a),this[_0xdd6c63(0x315)][_0xdd6c63(0x43a)](_0x347e0a,T['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x537228,_0x1ff1af,_0x49c2df,_0x5d81f8){const _0x463d52=_0x30e513,_0x42b0a8=new a[(_0x463d52(0x3c1))](_0x537228)[_0x463d52(0x23f)](0.2)[_0x463d52(0x394)](),_0x2a62e8=new C[(_0x463d52(0x3c4))](bt+a[_0x463d52(0x301)](H),{'pointsGroup':_0x1ff1af,'fill':_0x42b0a8||C[_0x463d52(0x3fd)](a['COLORS']['black'],0.2),'left':_0x49c2df,'top':_0x5d81f8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x463d52(0x338)][_0x463d52(0x293)](_0x2a62e8),this[_0x463d52(0x315)][_0x463d52(0x43a)](_0x2a62e8,T[_0x463d52(0x393)]);}['_getAnchorBounding'](_0x209113){const _0x3330f3=_0x209113[0x0],_0x4cea36=_0x3330f3[0x0],_0x3c5bdd=_0x3330f3[0x2],{x:_0x3c51b9,y:_0x4df695}=_0x4cea36,{x:_0x10f455,y:_0x39a517}=_0x3c5bdd;return{'left':_0x3c51b9,'top':_0x4df695,'width':_0x10f455-_0x3c51b9,'height':_0x39a517-_0x4df695};}['_getScale'](){const _0x2e97e0=_0x30e513,{scaleX:_0x41091a,scaleY:_0x2e1906}=this[_0x2e97e0(0x315)][_0x2e97e0(0x307)]();return Math['max'](_0x41091a,_0x2e1906);}}var Lt=Object[_0x30e513(0x45b)],Mt=(_0x5b1991,_0x897d2e,_0x33cc08,_0x1f2e0d)=>{const _0x367ae6=_0x30e513;for(var _0x3f2a72=_0x1f2e0d>0x1?void 0x0:_0x1f2e0d?Lt(_0x897d2e,_0x33cc08):_0x897d2e,_0x20ce2d=_0x5b1991[_0x367ae6(0x457)]-0x1,_0xd4e96e;_0x20ce2d>=0x0;_0x20ce2d--)(_0xd4e96e=_0x5b1991[_0x20ce2d])&&(_0x3f2a72=_0xd4e96e(_0x3f2a72)||_0x3f2a72);return _0x3f2a72;},q=(_0x11b6c9,_0x1c8246)=>(_0x111429,_0x1e174e)=>_0x1c8246(_0x111429,_0x1e174e,_0x11b6c9);let Ee=class extends a[_0x30e513(0x2a6)]{constructor(_0x53720e,_0x36632e,_0x145af4,_0x5daeef,_0x5de51f){const _0x36316f=_0x30e513;super(),_(this,_0x36316f(0x20b),[]),_(this,_0x36316f(0x3fe),[]),(this[_0x36316f(0x292)]=_0x53720e,this['_docSkeletonManagerService']=_0x36632e,this[_0x36316f(0x32f)]=_0x145af4,this[_0x36316f(0x289)]=_0x5daeef,this[_0x36316f(0x328)]=_0x5de51f,this['_init']());}[_0x30e513(0x38d)](){const _0x31d60f=_0x30e513,_0x4d8cb9=this[_0x31d60f(0x292)][_0x31d60f(0x4a1)],_0x31fe67=this['_docSkeletonManagerService'];this[_0x31d60f(0x2eb)](I['combineLatest']([this[_0x31d60f(0x32f)][_0x31d60f(0x440)](_0x4d8cb9),this[_0x31d60f(0x328)][_0x31d60f(0x42f)]])['pipe']($[_0x31d60f(0x4b3)](([_0xc4cb30,_0x54d735])=>({'skeleton':_0x31fe67[_0x31d60f(0x46f)](),'cursors':[..._0xc4cb30['values']()]['flatMap'](_0xbeda8f=>({..._0xbeda8f,'color':this['_themeService'][_0x31d60f(0x294)](_0xbeda8f[_0x31d60f(0x39c)])}))})))['subscribe'](_0xd7585b=>{const _0x15363d=_0x31d60f;if(this[_0x15363d(0x299)](),_0xd7585b){const {skeleton:_0x3947b8,cursors:_0x26af42}=_0xd7585b;this[_0x15363d(0x246)](_0x3947b8,_0x26af42);}})),this[_0x31d60f(0x384)](),this[_0x31d60f(0x2ee)]();}[_0x30e513(0x246)](_0x2dc062,_0x174bf9){const _0x4b4b9d=_0x30e513,{scene:_0x5ec006,mainComponent:_0x40e5b0}=this[_0x4b4b9d(0x292)],_0x2eb66f=_0x174bf9[_0x4b4b9d(0x4b3)](_0x5aeed9=>new Le(_0x5aeed9,_0x5ec006,_0x2dc062,_0x40e5b0));this[_0x4b4b9d(0x20b)]=_0x2eb66f,this[_0x4b4b9d(0x3fe)]=_0x174bf9;}[_0x30e513(0x405)](){const _0x1c1805=_0x30e513;this[_0x1c1805(0x299)]();const {scene:_0x106998,mainComponent:_0x8f298}=this[_0x1c1805(0x292)],_0x38e72a=this[_0x1c1805(0x206)][_0x1c1805(0x46f)](),_0xd58ee0=this[_0x1c1805(0x3fe)][_0x1c1805(0x4b3)](_0x33deaa=>new Le(_0x33deaa,_0x106998,_0x38e72a,_0x8f298));this[_0x1c1805(0x20b)]=_0xd58ee0;}[_0x30e513(0x299)](){const _0x5d8830=_0x30e513;this[_0x5d8830(0x20b)][_0x5d8830(0x25c)](_0x518b6c=>_0x518b6c['dispose']()),this['_cursorShapes']=[];}[_0x30e513(0x2ee)](){const _0x34f9a2=_0x30e513,_0x5a103f=[T['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x34f9a2(0x2e3)](_0x920203=>{const _0x5afe28=_0x34f9a2;_0x5a103f[_0x5afe28(0x215)](_0x920203['id'])&&_0x920203[_0x5afe28(0x450)][_0x5afe28(0x4a1)]===this[_0x5afe28(0x292)][_0x5afe28(0x4a1)]&&this['_refreshCollabCursors']();}));}[_0x30e513(0x384)](){const _0x4ff04a=_0x30e513;this['disposeWithMe'](a[_0x4ff04a(0x2ce)](this[_0x4ff04a(0x292)]['engine'][_0x4ff04a(0x40f)])['pipe']($[_0x4ff04a(0x458)](_0x5d8d31=>_0x5d8d31[_0x4ff04a(0x428)]===C[_0x4ff04a(0x327)][_0x4ff04a(0x27d)]),$[_0x4ff04a(0x352)](0x10))[_0x4ff04a(0x376)](()=>{const _0x52f541=_0x4ff04a;this[_0x52f541(0x405)]();}));}};Ee=Mt([q(0x1,a[_0x30e513(0x3f5)](V[_0x30e513(0x287)])),q(0x2,a[_0x30e513(0x3f5)](F)),q(0x3,a[_0x30e513(0x40a)]),q(0x4,a[_0x30e513(0x3f5)](a[_0x30e513(0x23d)]))],Ee);const At=0x1,Pt=1.5;class je extends C['Shape']{constructor(_0x161120,_0x29d174){const _0x2ed95a=_0x30e513;super(_0x161120,_0x29d174),_(this,_0x2ed95a(0x43f)),_(this,_0x2ed95a(0x27e),!0x1),_(this,_0x2ed95a(0x432)),_(this,_0x2ed95a(0x397),''),_(this,_0x2ed95a(0x48d),'top'),_(this,_0x2ed95a(0x29f)),(_0x29d174&&this[_0x2ed95a(0x409)](_0x29d174),this['onPointerEnter$'][_0x2ed95a(0x439)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x2ed95a(0x37c)]['subscribeEvent'](()=>this[_0x2ed95a(0x409)]({'hovered':!0x1})));}[_0x30e513(0x409)](_0x3db201){const _0x5e21f7=_0x30e513;var _0x8966ea,_0x3a3850,_0x2664fa,_0x22e9a6,_0x47489a,_0x182a0c;this[_0x5e21f7(0x43f)]=(_0x8966ea=_0x3db201[_0x5e21f7(0x39c)])!=null?_0x8966ea:this[_0x5e21f7(0x43f)],this[_0x5e21f7(0x27e)]=(_0x3a3850=_0x3db201['hovered'])!=null?_0x3a3850:this[_0x5e21f7(0x27e)],this['_range']=(_0x2664fa=_0x3db201['range'])!=null?_0x2664fa:this[_0x5e21f7(0x432)],this[_0x5e21f7(0x397)]=(_0x22e9a6=_0x3db201[_0x5e21f7(0x4a4)])!=null?_0x22e9a6:this[_0x5e21f7(0x397)],this[_0x5e21f7(0x48d)]=(_0x47489a=_0x3db201[_0x5e21f7(0x308)])!=null?_0x47489a:this[_0x5e21f7(0x48d)],this[_0x5e21f7(0x29f)]=(_0x182a0c=_0x3db201[_0x5e21f7(0x3bd)])!=null?_0x182a0c:this['_backgroundColor'],this[_0x5e21f7(0x334)]({'width':_0x3db201['width'],'height':_0x3db201[_0x5e21f7(0x245)]});}[_0x30e513(0x3c2)](_0x55b168){const _0x453cf5=_0x30e513,{row:_0x1e617e,column:_0x40e888}=_0x55b168;if(_0x1e617e>=this['_range'][_0x453cf5(0x2a9)]&&_0x1e617e<=this[_0x453cf5(0x432)]['endRow']&&_0x40e888>=this[_0x453cf5(0x432)][_0x453cf5(0x44d)]&&_0x40e888<=this[_0x453cf5(0x432)]['endColumn']){this[_0x453cf5(0x409)]({'hovered':!0x0});return;}this[_0x453cf5(0x409)]({'hovered':!0x1});}[_0x30e513(0x221)](_0xf2002e){return!0x1;}[_0x30e513(0x362)](_0x297a4e){const _0x5bf919=_0x30e513;C['Rect']['drawWith'](_0x297a4e,{'width':this[_0x5bf919(0x24e)],'height':this[_0x5bf919(0x245)],'strokeWidth':Pt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5bf919(0x29f)]}),this['_hovered']&&(_0x297a4e[_0x5bf919(0x2e6)](),_0x297a4e[_0x5bf919(0x25a)](0x1,0x0,0x0,0x1,this[_0x5bf919(0x24e)],this[_0x5bf919(0x48d)]==='bottom'?0x0:-X),re[_0x5bf919(0x452)](_0x297a4e,{'text':this[_0x5bf919(0x397)],'color':this['_color']}),_0x297a4e[_0x5bf919(0x476)]());}}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x3970a9,_0x5e6f61,_0x120f51,_0x5c55ab)=>{const _0x4553e9=_0x30e513;for(var _0x498bef=_0x5c55ab>0x1?void 0x0:_0x5c55ab?wt(_0x5e6f61,_0x120f51):_0x5e6f61,_0x4baf0f=_0x3970a9[_0x4553e9(0x457)]-0x1,_0x1341d2;_0x4baf0f>=0x0;_0x4baf0f--)(_0x1341d2=_0x3970a9[_0x4baf0f])&&(_0x498bef=_0x1341d2(_0x498bef)||_0x498bef);return _0x498bef;},ue=(_0x380849,_0x406fb3)=>(_0x2eeebd,_0x1d84f5)=>_0x406fb3(_0x2eeebd,_0x1d84f5,_0x380849);const $t=0x1389;let Ce=class extends a[_0x30e513(0x2a6)]{constructor(_0x5396fb,_0x50c63c,_0x10856e,_0x17f115){const _0x260ab1=_0x30e513;super(),_(this,'_cursors',new Set()),_(this,_0x260ab1(0x239),null),(this[_0x260ab1(0x292)]=_0x5396fb,this['_sheetSkeletonManagerService']=_0x50c63c,this[_0x260ab1(0x32f)]=_0x10856e,this[_0x260ab1(0x328)]=_0x17f115,this['_init']());}['_init'](){const _0x1a5a77=_0x30e513;this[_0x1a5a77(0x3dd)]['currentSkeleton$']['pipe']($[_0x1a5a77(0x367)](this[_0x1a5a77(0x3db)]),$['switchMap'](_0x243353=>{const _0x4ba483=_0x1a5a77;if(_0x243353){const _0x4dbe44=_0x243353[_0x4ba483(0x40b)];return I[_0x4ba483(0x330)](this[_0x4ba483(0x32f)][_0x4ba483(0x440)](this['_context'][_0x4ba483(0x4a1)]),this[_0x4ba483(0x328)][_0x4ba483(0x42f)])['pipe']($['map'](([_0x5219ad,_0x3bb743])=>{const _0x5b7046=_0x4ba483,_0x503a98=new Map();return _0x5219ad[_0x5b7046(0x25c)]((_0x419306,_0x169c01)=>{const _0x31b929=_0x5b7046;if(_0x419306[_0x31b929(0x254)]===_0x4dbe44){const _0x3a1936={..._0x419306};_0x3a1936['color']=this[_0x31b929(0x328)][_0x31b929(0x294)](_0x419306[_0x31b929(0x39c)]),_0x503a98['set'](_0x169c01,_0x3a1936);}}),{'skeleton':_0x243353,'cursors':_0x503a98};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x188f0b,cursors:_0x1b433d})=>{const _0x3080a6=_0x1a5a77;this[_0x3080a6(0x299)](),_0x188f0b&&this[_0x3080a6(0x246)](_0x188f0b,_0x1b433d);}),this[_0x1a5a77(0x3dd)][_0x1a5a77(0x2b9)]['subscribe'](_0x4a99e4=>{const _0x56718d=_0x1a5a77;if(_0x4a99e4==null)return;const {skeleton:_0x5b2fe3}=_0x4a99e4,{scene:_0x404f37}=this[_0x56718d(0x292)];_0x404f37['onPointerMove$'][_0x56718d(0x439)](a[_0x56718d(0x371)](_0x54aecb=>{const _0x381163=_0x56718d;var _0x3d3b72,_0x192b08;const {offsetX:_0x4a8110,offsetY:_0x5ebd40}=_0x54aecb,{x:_0xd13f8c,y:_0x4c2476}=_0x404f37[_0x381163(0x33b)](C[_0x381163(0x240)][_0x381163(0x300)]([_0x4a8110,_0x5ebd40])),{scaleX:_0x30b3d5,scaleY:_0x5d7e7c}=_0x404f37[_0x381163(0x307)](),_0x51cf4c=_0x404f37[_0x381163(0x382)](C[_0x381163(0x389)][_0x381163(0x442)]),_0x462440=_0x404f37[_0x381163(0x1fa)](C['Vector2']['FromArray']([_0xd13f8c,_0x4c2476]),_0x51cf4c),_0x55fbf1=_0x5b2fe3[_0x381163(0x326)](_0x4a8110,_0x5ebd40,_0x30b3d5,_0x5d7e7c,_0x462440);((_0x3d3b72=this['_lastPointer'])==null?void 0x0:_0x3d3b72[_0x381163(0x45a)])===_0x55fbf1['column']&&((_0x192b08=this[_0x381163(0x239)])==null?void 0x0:_0x192b08[_0x381163(0x278)])===_0x55fbf1[_0x381163(0x278)]||this['_cursors'][_0x381163(0x25c)](_0x5d2541=>{_0x5d2541['onMouseMove'](_0x55fbf1);});},0x64));});}[_0x30e513(0x246)](_0x3602af,_0x1568ce){const _0x33c7e0=_0x30e513;var _0x3bc15b;const _0x3d65db=(_0x3bc15b=this[_0x33c7e0(0x3dd)][_0x33c7e0(0x2d6)]())==null?void 0x0:_0x3bc15b['skeleton'];if(!_0x3d65db)return;const _0x464359=this[_0x33c7e0(0x1fc)]();if(!_0x464359)return;this[_0x33c7e0(0x3fe)][_0x33c7e0(0x25c)](_0x58bfeb=>{_0x58bfeb['makeDirty']();});const {scene:_0x5ddd20}=_0x464359,_0x3aa24e=xt(Array['from'](_0x1568ce['values']()))['map'](_0x16f7c1=>{const _0x2a901a=_0x33c7e0,{color:_0x1fd406,range:_0x5c3a2d,name:_0x5b2a3c,selection:_0x49234f,sheetID:_0xf386c9}=_0x16f7c1,{startColumn:_0x3e0c91,startRow:_0x3a503e,endColumn:_0x1c50ad,endRow:_0x136596}=_0x5c3a2d,_0x3b2f3c=J['getCoordByCell'](_0x3a503e,_0x3e0c91,_0x5ddd20,_0x3d65db),_0x236df2=J[_0x2a901a(0x35f)](_0x136596,_0x1c50ad,_0x5ddd20,_0x3d65db),{columnHeaderHeightAndMarginTop:_0x27b78a}=_0x3d65db,{startX:_0x1f0389,startY:_0x245bd9}=_0x3b2f3c,{endX:_0xfe10d8,endY:_0x46329a}=_0x236df2,_0x3d047a=_0xfe10d8-_0x1f0389,_0x3c46f9=_0x46329a-_0x245bd9,_0x23dad4={'labelPosition':_0x245bd9-_0x27b78a>=X?_0x2a901a(0x1fd):_0x2a901a(0x20c),'sheetID':_0xf386c9,'range':_0x5c3a2d,'color':_0x1fd406,'name':_0x5b2a3c,'selection':_0x49234f,'left':_0x1f0389,'top':_0x245bd9,'width':_0x3d047a,'height':_0x3c46f9,'evented':!0x1,'zIndex':$t};return new je(_0x5b2a3c,_0x23dad4);});_0x5ddd20[_0x33c7e0(0x443)](_0x3aa24e,At),this[_0x33c7e0(0x3fe)]=new Set(_0x3aa24e);}[_0x30e513(0x299)](){const _0x39beea=_0x30e513;var _0x404ec9;(_0x404ec9=this['_cursors'])==null||_0x404ec9[_0x39beea(0x25c)](_0x2597a7=>_0x2597a7['dispose']());}[_0x30e513(0x1fc)](){const _0x13deba=_0x30e513;return J[_0x13deba(0x1f7)](this['_context'][_0x13deba(0x322)],this[_0x13deba(0x292)]);}};function _0x2ee5(){const _0x57c2d2=['REDEMPTION_USER_NOT_ELIGIBLE','clsx','getRelativeToViewportCoord','[Unhandled\x20Rejection]:\x20','m1Prime','isFormulaId','textRanges','_startSheetCollabCursor','IConfigService','_setupSubUnitSync','then','getformulaLimitStatusUrl','startFormulaLimitUrl','Rectangle','loadUnit','saveOfflineData','WebBrowserSingleActiveUnitService','DesktopCollaborationStatusDisplayController','_updateURLWithCurrentState','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','createElement','min','_uploadLog','enableFrontendLog','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','throttleTime','green.600','_id','parse','MoveRangeCommandId','idSuffix','_releaseCalculationLimit','formula.calculation.waiting','AWAITING','APPLY_NON_SEQUENTIAL_REVISION','setTimeout','CollaborationStatus','_docTransformIMECacheService','getCoordByCell','url(#$1','forwardRef','_draw','UnitStatus','Module','isTransformMutationFailure','USERS_LEAVE','takeUntil','wsSessionTicketUrl','YUUMI_AI_RUN_FAILED','releaseFormulaLimitUrl','InsertRangeMoveDownCommandId','clearInterval','code','switchMap','stageInfo','fillText','debounce','START_CALCULATION','rgba(255,\x20255,\x20255,\x200.01)','fromEvent','_taskIds','subscribe','PERMISSION_DENIED','WebSocketService','_toggleOffline','SessionStatus','actions','onPointerLeave$','stringify','RefRangeService','HTTPService','application/json','_toggleOnline','getViewport','getDocRanges','_initResize','USER_NOT_FOUND','ILocalCacheService','div','_clearOtherTimers','SHEET_VIEWPORT_KEY','_docSyncEditingCollabCursorService','getItem','_heartbeatTimer','_init','IImageIoService','send','measureText','getActiveSheet','assign','TEXT_RANGE_LAYER_INDEX','toRgbString','syncEditingCollabCursor','INVITE_CODE_ALREADY_BOUND','_name','evenodd','formula.calculation.started','split','NO_OTHER_CLIENTS_EDITING','color','runRefRangeMutations','MOBILE_VERIFY_CODE_MISMATCH','_memberID','INVITE_CODE_HAS_BEEN_UES','Unknown\x20user','_setupBeforeClosingHandler','REDEMPTION_CODE_INACTIVE','_configService','_setFormulaLimitStatus','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','has','subunit','get','_anchorDot','SetFormulaCalculationNotificationMutation','hide','_lastResponseTimestamp','_status$','INTERNAL_ERROR','_session','_docSkeleton','_memberService','_messageService','AUTHORIZE_CODE_ILLEGAL','url(#on-line-icon_clip0_910_349)','YUUMI_NO_CUBOID_FOR_QUESTION','black','session.connection-failed','unshift','unhandledrejection','handleMoveRange','REDEMPTION_CODE_HAS_BEEN_CREATED','backgroundColor','AWAITING_WITH_PENDING','white','Disposable','ColorKit','onMouseMove','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','RegularPolygon','reason','_drawTextRange','NOT_FOUND','body','limitInfo','31550cibrfL','bind','roomMembers$','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getStateCache','_initEntityListener','transformStateCache','OnLineIcon','contains','getCurrentSelections','unsubscribe','roomMembers','SUCCESS','dispose','Error','collabStatus.conflict','deepClone','dispose$','svg','_sheetSkeletonManagerService','_initWindowErrorListener','SYNCED','_createSocketURL','OffLineIcon','toDisposable','INVALID_INVITE_CODE','PY_RUNTIME_SCRIPT_ERROR','430577YagesG','ENTITLE_NEED_BILLING_ADDRESS','getUniverSheetInstance','_checkAndWaitForCalculationPermission','Injector','unitID','YUUMI_CONNECTOR_URL_NOT_FOUND','purple.300','YUUMI_RATE_OVER_LIMIT','saveTaskMap','event$','UniverIcon','0\x200\x2017\x2016','_dataLoaderService','_initDependencies','getUndoRedoMutationParamsCache','Inject','_roomMembers$','ENTITLE_DUP_SUBSCRIPTION','OTHER_CLIENTS_EDITING','size','INotificationService','getSheetBySheetId','_transformService','getColor','_cursors','collabStatus.offline','setConfig','Tools','sessionTicket','undoState','_updateLocalCursor','_refreshCollabCursors','\x20at\x20','_checkCalculationAvailable','DEFAULT_WS_SESSION_TICKET_URL','setShapeProps','ICommandService','sheetId','#FFF','CURRENT_STATUS_CANNOT_OPERATE','FETCH_MISS','onTransformChange$','origin','_scheduleClearOtherTimer','clipPath','mask','_anchor','handleInsertRangeMoveRight','set','getRangePointData','_eventUnsubscribe','font','registerBeforeClose','SNAPSHOT_INVALID_SNAPSHOT','handleIRemoveCol','asObservable','SheetsSelectionsService','blue.400','stack','displayName','DisposableCollection','TEXT','_initStatusListener','onLocalMutation','_cursor','1083204uTnVon','type','transformMutation','ENTITLE_COUPON_EXPIRED','_collaborationSessionService','Plugin','useDependency','UNDEFINED','currentTheme$','data','collaboration.closeRoom','_range','location','540wbqAzY','override','_transformUndoRedoStack','ENTITLE_REPORT_LIMIT_EXCEED','useObservable','subscribeEvent','addObject','NodePositionConvertToRectRange','getCurrentUnitForType','RemoteUniscriptService','sessionStatus$','_color','getCollabCursors$','IDocClipboardService','VIEW_MAIN','addObjects','createIdentifier','_docClipboardService','COMPLETION_FINISHED','_getMergeRange','updateOfflineData','IMessageService','next','url(#off-line-icon_clip0_910_343)','COLORS','startColumn','YUUMI_UNABLE_LOAD_URL','_localStorageService','params','ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','drawWith','handleDeleteRangeMoveUp','collabStatus.notCollab','APPLY_REJECT','ENTITLE_CHAT_LIMIT_EXCEED','length','filter','YUUMI_ASYNCIO_CANCELLED','column','getOwnPropertyDescriptor','getCellMatrix','CollaborationController','ISocketService','http://www.w3.org/2000/svg','lineTo','dirtyRanges','loadOfflineData','runId','arc','urlChange$','_docStateChangeManagerService','SetSelectionsOperation','_showGuardMessage','history','SheetSkeletonManagerService','on-line-icon_clip0_910_349','eventID','APPLY_REVISION_CONFILICT','getTypeOfUnitAdded$','getSkeleton','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','range','toStringTag','unload','DocStateChangeManagerService','12065552pkqavW','restore','closePath','executeCommand','_logService','_unitStatus','complete','subUnitId','_renderManagerService','_assignedColors','IRenderManagerService','createInstance','_colorAssignService','getParam','getSheetId','parseInt','pipe','round','getLocalCacheKey','_registerDependencies','_unitOnClients','disposeUnit','collabCursorState$','_currentUsage','_labelPosition','LICENSE_MAX_UNITS_EXCEEDED','_collaborationUIEventService','collab-text-range-','session.collaboration-timeout','YUUMI_ALL_TABLES_IS_INVALID','searchParams','popstate','_initUserListener','redoState','colorChannel1','YUUMI_URL_COL_OUT_OF_RANGE','findNodePositionByCharIndex','SOCKET_FAILED','getUnitStatus$','selections','_cursorInfo$','_monkeyPatchLogService','entityInit$','CHANGESET_REVISION_CONFILICT','unitId','ENTITLE_INSUFFICIENT_QUOTA','_colorIndex','name','transformSelections','_entityInit$','USER_NOT_INVITED_CODE','OTHER_CLIENT_EDITING','5564216yVpukI','_pollingInterval','_httpService','defIds','getFocusedUnit','UNIVER_DOC','shareReplay','CONNECTOR_DATA_TOO_LARGE','_univerInstanceService','jiqing.500','map','requireSession','/universer-api/license/formula/limit/done','/run/','_doCreateSocket','tag','some','_initUnhandledRejectionListener','entries','ENTITLE_USE_COUPON_NOT_1ST_TRADE','registerComponent','INVALID_ARGUMENT','MOBILE_HAS_BEEN_BOUND','CanceledError','focused$','ILogService','fillStyle','getSheetObject','ticket','attrs','getVpScrollXYInfoByPosToVp','DocSelectionManagerService','_getSheetObject','top','find','pushState','defineProperty','/universer-api/license/formula/limit/status','IUniverInstanceService','path','_handleLeaveEvent','_instanceService','_docSkeletonManagerService','isEditing','getRenderById','REDEMPTION_CODE_NOT_STARTED','now','_cursorShapes','bottom','BuiltInUIPart','APPLY_DUPLICATED','newValue','pluginName','from','isArray','BehaviorSubject','setActiveRange','includes','delete','startsWith','_entities','1em','CollaborationUIEventId','PAYMENT_CHANNEL_NOT_SUPPORT','setInterval','transformRemoteChangeset','collabStatus.fetchMiss','_clearPolling','init','triggerDblclick','CLOSE_ROOM','onStarting','_onCursorDelete','ENTITLE_COUPON_USED_UP','0\x200\x2016\x2016','_collaborationController','_onCursorUpdate','IURLService','getActiveRange','ISnapshotServerService','collaboration-client-ui.config','NodePositionConvertToCursor','exhaustSavingTask','YUUMI_SUBSCRIPTION_NOT_FOUND','UNIVER_SHEET','off-line-icon','currentColor','_textBubble','WebURLService','SetWorksheetActivateCommand','INVITE_CODE_REQUIRED','getValue','getTypeOfUnitDisposed$','_lastPointer','getMemberID','IBeforeCloseService','M0\x200H16V16H0z','ThemeService','_injector','setAlpha','Vector2','getUnitId','[Window\x20Error]:\x20','registerDependencies','error','height','_updateCollabCursors','CollaborationDataLoaderController','_docTransformSelectionsService','RemoveRowCommandId','_urlService','deserializeRangeWithSheet','univerjs-icon\x20univerjs-icon-','saveImage','width','JOIN_ROOM_FAILED','text','RevisionService','ITransformService','assignAColorForMemberID','sheetID','ERROR_AGAIN','UniverCollaborationClientUIPlugin','isActive','show','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','transform','_drawRectRange','forEach','children','off-line-icon_clip0_910_343','_syncEditingCollabCursorService','_uiPartsService','FormulaExecuteStageType','Failed','MessageType','href','Rect','_updateSubUnitFromURLParams','jsx','distinctUntilChanged','_selfUnitIDs','cursorInfo$','DocIMEInputManagerService','handleInsertRangeMoveDown','Success','xlink:href','InsertRangeMoveRightCommandId','useRef','REDEMPTION_CODE_FULLY_REDEEMED','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','_imageIoService','trim','_getAnchorBounding','univer-flex\x20univer-items-center','IUIPartsService','row','UNAUTHENTICATED','message','lineno','post','resize','_hovered','getCollabEntity$','univer-mr-2\x20univer-flex\x20univer-text-xl','_beforeCloseService','_docTransformStateCacheService','with','_send','_removeClearOtherTimer','_getSaveTimeout','DocSkeletonManagerService','status$','_commandService','SOCKET_FAILED_RETRY','editingUnit','[CollaborationDataLoaderController]','UNRECOGNIZED','_transformPreviousActiveRange','handleIRemoveRow','2746725yBCfyd','Tooltip','_context','push','getColorFromTheme','serializeRangeWithSheet','symbol','uni.network.url-service','Warning','_removeCollabCursors','isFormulaString','use','merge','collaboration.single-unit.warning','EffectRefRangId','_backgroundColor','ENTITLE_CAN_NOT_BUY_LOWER_OTP','CollaborationEvent','_getScale','_hover','Loading','debounceTime','RxDisposable','disableLocalCache','toString','startRow','REDEMPTION_USER_REDEEM_TIMES_EXCEED','setItem','createSocket','setUndoRedoMutationParamsCache','touchDependencies','_config','catch','USER_IS_ANONYMOUS','BrowserCollaborationSocketService','_collabSessionService','CollaborationUIEventService','collab-rect-range-','_document','_render','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','currentSkeleton$','NOT_COLLAB','string','cursorInfo','/universer-api/license/formula/limit/start','defs','DocCollaborationEntity','DependentOn','UniverInstanceType','FormulaExecutedStateType','/universer-api/frontend/logs','807102Anvpah','MemberService','CONFLICT','_handleHover','transformIMECache','[LogService\x20Error]:\x20','_online','_scheduleSaving','docStateChange$','addEventListener','fromEventSubject','ranges','_handleJoinEvent','_initCommandInterceptor','RECT','setParam','_onRefRangeChange','transformMutationsWithChangeset','getCurrent','_transformHistoryAndStateStack','...','_refRangeService','_registerRenderDependencies','_initStatusComponent','_getFormulaLimitStatus','LOGIN_TOKEN_PROCESSING_FAILED','WECHAT_HAS_BEEN_BOUND','_notificationService','DOC_RANGE_TYPE','LOGIN_FAILED','SheetCollabCursorShape','onCommandExecuted','add','_startCalculationLimit','save','_getSessionTicket','connectInjector','imageSourceType','LICENSE_EXPORT_SIZE_EXCEEDED','disposeWithMe','_disabled','socket$','_initCommandExecutedListener','CollaborationSessionService','mutations','_handleHeartbeatEvent','moveTo','handleDeleteRangeMoveLeft','ONLINE','getConfig','beginPath','registerRenderModule','_startDocCollabCursor','values','_scheduleHeartbeat','memberID','_cachedData','removeEventListener','debug','replace','FromArray','generateRandomId','whenReady','_handleEvent','UPDATE_CURSOR','_saveTaskMap','clearTimeout','getAncestorScale','labelPosition','collab-client.tooltip.reconnect','EMAIL_HAS_BEEN_BOUND','_hideTimer','doc.mutation.rich-text-editing','Workbook','_drawAnchor','invokeId','replaceDocRanges','onRendered','[RemoteUniscriptService]:\x20no\x20focused\x20unit','selection','OFFLINE','_scene','registerRefRange','LocaleService','LICENSE_IMPORT_SIZE_EXCEEDED','_ensureSubject','SetTextSelectionsOperation','on-line-icon','UniverCollaborationClientPlugin','Shape','fill','ALREADY_EXISTS','replaceState','ENTITLE_INVALID_COUPON_CODE','unit','_saveCache','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_applyCommand','getCellPositionByOffset','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_themeService','_localeService','isTransformMutationsWithChangesetSuccess','REDEMPTION_INVALID_CODE','search','stage','_maxFormulaLimit','_collabCursorController','combineLatest','ENSURE_SNAPSHOT_EXECUTION','RemoveColCommandId','SNAPSHOT_HAS_BEEN_REMOVED','transformByState','session.will-retry','m2Prime','functionsExecutedState','_shapes'];_0x2ee5=function(){return _0x57c2d2;};return _0x2ee5();}Ce=yt([ue(0x1,a[_0x30e513(0x3f5)](J[_0x30e513(0x46a)])),ue(0x2,a['Inject'](F)),ue(0x3,a['Inject'](a[_0x30e513(0x23d)]))],Ce);function xt(_0x2bce9c){const _0x138465=_0x30e513,_0x4f504c=new Map();return _0x2bce9c[_0x138465(0x25c)](_0x3a766d=>{const _0x293bc2=_0x138465;if(_0x4f504c['has'](_0x3a766d['selection'])){const _0x32e3a8=_0x4f504c[_0x293bc2(0x3a9)](_0x3a766d['selection']);_0x32e3a8[_0x293bc2(0x4a4)]+=',\x20'+_0x3a766d[_0x293bc2(0x4a4)];}else _0x4f504c[_0x293bc2(0x416)](_0x3a766d[_0x293bc2(0x313)],_0x3a766d);}),Array[_0x138465(0x211)](_0x4f504c[_0x138465(0x2f9)]());}var Bt=Object[_0x30e513(0x45b)],Ft=(_0x1705af,_0x135227,_0x32d5e7,_0x59fe41)=>{for(var _0x1efe76=_0x59fe41>0x1?void 0x0:_0x59fe41?Bt(_0x135227,_0x32d5e7):_0x135227,_0x28b71a=_0x1705af['length']-0x1,_0x472fbe;_0x28b71a>=0x0;_0x28b71a--)(_0x472fbe=_0x1705af[_0x28b71a])&&(_0x1efe76=_0x472fbe(_0x1efe76)||_0x1efe76);return _0x1efe76;},y=(_0x551089,_0x363c86)=>(_0x414117,_0x5c68c2)=>_0x363c86(_0x414117,_0x5c68c2,_0x551089);let Z=class extends a[_0x30e513(0x3c0)]{constructor(_0x1a4fb9,_0xb1d788,_0x2510ea,_0xfe6f02,_0x3e7f93,_0x1f3d8b){const _0x4e6904=_0x30e513;super(),this['_beforeCloseService']=_0x1a4fb9,this['_localCacheService']=_0xb1d788,this['_collaborationUIEventService']=_0x2510ea,this[_0x4e6904(0x3b3)]=_0xfe6f02,this['_notificationService']=_0x3e7f93,this['_localeService']=_0x1f3d8b,this[_0x4e6904(0x3a2)](),this['_initEvent']();}[_0x30e513(0x3a2)](){const _0x4d00e0=_0x30e513;this[_0x4d00e0(0x2eb)](this[_0x4d00e0(0x281)][_0x4d00e0(0x41a)](()=>{const _0x7b6898=_0x4d00e0;if(this['_localCacheService'][_0x7b6898(0x3ee)][_0x7b6898(0x3f9)])return this[_0x7b6898(0x329)]['t']('collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x23adf6=_0x30e513;this[_0x23adf6(0x2eb)](this[_0x23adf6(0x48f)][_0x23adf6(0x3ef)][_0x23adf6(0x376)](_0x1a4e7f=>{const _0x33a4a5=_0x23adf6;_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x4a8)]&&this[_0x33a4a5(0x3b3)][_0x33a4a5(0x258)]({'type':p['MessageType']['Warning'],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x29d))}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x222)]&&this[_0x33a4a5(0x3b3)][_0x33a4a5(0x258)]({'type':p[_0x33a4a5(0x263)]['Warning'],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x431))}),_0x1a4e7f['id']===u['CollaborationUIEventId'][_0x33a4a5(0x377)]&&this[_0x33a4a5(0x2df)][_0x33a4a5(0x258)]({'title':this[_0x33a4a5(0x329)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':_0x33a4a5(0x244),'duration':0x0}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x2c6)]&&this[_0x33a4a5(0x3b3)]['show']({'type':p[_0x33a4a5(0x263)]['Error'],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x431))+'('+_0x1a4e7f[_0x33a4a5(0x430)]+')'}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x24f)]&&this['_messageService'][_0x33a4a5(0x258)]({'type':p[_0x33a4a5(0x263)][_0x33a4a5(0x298)],'content':this[_0x33a4a5(0x329)]['t'](_0x1a4e7f[_0x33a4a5(0x430)]||'')}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x28a)]&&this[_0x33a4a5(0x3b3)][_0x33a4a5(0x258)]({'type':p[_0x33a4a5(0x263)]['Warning'],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x335))}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)][_0x33a4a5(0x49a)]&&this['_messageService']['show']({'type':p[_0x33a4a5(0x263)][_0x33a4a5(0x3d8)],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x3b8))}),_0x1a4e7f['id']===u[_0x33a4a5(0x21a)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x33a4a5(0x3b3)][_0x33a4a5(0x258)]({'type':p[_0x33a4a5(0x263)][_0x33a4a5(0x3d8)],'content':this[_0x33a4a5(0x329)]['t'](_0x33a4a5(0x491))});}));}};Z=Ft([y(0x0,O[_0x30e513(0x23b)]),y(0x1,u[_0x30e513(0x386)]),y(0x2,a[_0x30e513(0x3f5)](u[_0x30e513(0x2b4)])),y(0x3,O['IMessageService']),y(0x4,O[_0x30e513(0x3fa)]),y(0x5,a[_0x30e513(0x3f5)](a[_0x30e513(0x317)]))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x51ea66,_0x6009c,_0x8aa504,_0xe11f0)=>{const _0x2b8c1d=_0x30e513;for(var _0x29df22=_0xe11f0>0x1?void 0x0:_0xe11f0?jt(_0x6009c,_0x8aa504):_0x6009c,_0x5b579d=_0x51ea66[_0x2b8c1d(0x457)]-0x1,_0x26e240;_0x5b579d>=0x0;_0x5b579d--)(_0x26e240=_0x51ea66[_0x5b579d])&&(_0x29df22=_0x26e240(_0x29df22)||_0x29df22);return _0x29df22;},z=(_0x29e1fe,_0x141d8b)=>(_0x4e830a,_0x57a22f)=>_0x141d8b(_0x4e830a,_0x57a22f,_0x29e1fe);let Q=class extends a[_0x30e513(0x3c0)]{constructor(_0x5531e8,_0x239101,_0x24494f,_0x5873ed){const _0x3df121=_0x30e513;super(),_(this,_0x3df121(0x39f)),(this[_0x3df121(0x23e)]=_0x5531e8,this[_0x3df121(0x4ab)]=_0x239101,this['_logService']=_0x24494f,this[_0x3df121(0x42b)]=_0x5873ed,this[_0x3df121(0x38d)]());}['_init'](){const _0x4328be=_0x30e513;this[_0x4328be(0x3de)](),this[_0x4328be(0x4ba)](),this['_monkeyPatchLogService'](),this[_0x4328be(0x495)]();}[_0x30e513(0x495)](){const _0x1d99b0=_0x30e513;this[_0x1d99b0(0x2eb)](this['_collaborationSessionService'][_0x1d99b0(0x2ed)]['subscribe'](_0x546ebf=>{const _0x211e64=_0x1d99b0;this['_memberID']=_0x546ebf==null?void 0x0:_0x546ebf[_0x211e64(0x2fb)];}));}['_initWindowErrorListener'](){const _0x542146=_0x30e513,_0x456e75=_0x1736bd=>{const _0x5e1ba3=_0x2f23;var _0xf0829d;this[_0x5e1ba3(0x34f)](_0x5e1ba3(0x244),_0x5e1ba3(0x242)+_0x1736bd[_0x5e1ba3(0x27a)]+_0x5e1ba3(0x406)+_0x1736bd['filename']+':'+_0x1736bd[_0x5e1ba3(0x27b)]+':'+_0x1736bd['colno']+'\x0a'+(((_0xf0829d=_0x1736bd['error'])==null?void 0x0:_0xf0829d[_0x5e1ba3(0x420)])||''));};window['addEventListener'](_0x542146(0x244),_0x456e75),this[_0x542146(0x2eb)](()=>{const _0x1cbb32=_0x542146;window[_0x1cbb32(0x2fd)]('error',_0x456e75);});}['_initUnhandledRejectionListener'](){const _0x58af50=_0x30e513,_0x2107fb=_0x4a8d82=>{const _0x2f4846=_0x2f23;this[_0x2f4846(0x34f)](_0x2f4846(0x244),_0x2f4846(0x33c)+_0x4a8d82[_0x2f4846(0x3c5)]);};window['addEventListener'](_0x58af50(0x3ba),_0x2107fb),this[_0x58af50(0x2eb)](()=>{const _0x100a78=_0x58af50;window[_0x100a78(0x2fd)](_0x100a78(0x3ba),_0x2107fb);});}[_0x30e513(0x49e)](){const _0x58948a=_0x30e513,_0x13f596=this['_logService'][_0x58948a(0x244)][_0x58948a(0x3cb)](this[_0x58948a(0x479)]);this[_0x58948a(0x479)][_0x58948a(0x244)]=(..._0x461bab)=>{const _0x32aecb=_0x58948a,_0x4c89dc=_0x461bab[_0x32aecb(0x4b3)](_0x2d7410=>_0x2d7410 instanceof Error?_0x2d7410[_0x32aecb(0x27a)]+'\x0a'+_0x2d7410['stack']:String(_0x2d7410))['join']('\x20');this[_0x32aecb(0x34f)](_0x32aecb(0x244),_0x32aecb(0x2c9)+_0x4c89dc),_0x13f596(..._0x461bab);},this[_0x58948a(0x2eb)](()=>{this['_logService']['error']=_0x13f596;});}['_uploadLog'](_0x13a30f,_0x47cd27){const _0x1106dd=_0x30e513;try{const _0x1002d0={'userId':this[_0x1106dd(0x39f)],'logLabel':_0x13a30f,'content':_0x47cd27};this[_0x1106dd(0x4ab)]['post'](_0x1106dd(0x2c3),{'body':_0x1002d0})[_0x1106dd(0x2b0)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),z(0x1,a[_0x30e513(0x3f5)](x[_0x30e513(0x37f)])),z(0x2,a[_0x30e513(0x1f5)]),z(0x3,a['Inject'](u[_0x30e513(0x2ef)]))],Q);const Yt=_0x30e513(0x22c),Me={};var Ht=Object['getOwnPropertyDescriptor'],Wt=(_0x12b289,_0x45f1d2,_0x4e30a7,_0x22f550)=>{for(var _0x481972=_0x22f550>0x1?void 0x0:_0x22f550?Ht(_0x45f1d2,_0x4e30a7):_0x45f1d2,_0x54df02=_0x12b289['length']-0x1,_0x57af4c;_0x54df02>=0x0;_0x54df02--)(_0x57af4c=_0x12b289[_0x54df02])&&(_0x481972=_0x57af4c(_0x481972)||_0x481972);return _0x481972;},Ae=(_0x4743eb,_0x1160de)=>(_0x2ab03f,_0x53bcb5)=>_0x1160de(_0x2ab03f,_0x53bcb5,_0x4743eb);let ee=class{constructor(_0x27cf12,_0x21e819){const _0x3c8620=_0x30e513;this[_0x3c8620(0x3fc)]=_0x27cf12,this['_renderManagerService']=_0x21e819;}[_0x30e513(0x2c8)](_0x261b78){const _0x5c0489=_0x30e513;this[_0x5c0489(0x436)](_0x261b78),this[_0x5c0489(0x28e)](_0x261b78);}['transformRemoteChangeset'](_0x2a3b51){const _0x4d7ef6=_0x30e513,{unitID:_0x2fcd7c}=_0x2a3b51,_0x15b91b=this[_0x4d7ef6(0x47d)][_0x4d7ef6(0x208)](_0x2fcd7c)[_0x4d7ef6(0x283)](T['DocIMEInputManagerService']),{redoCache:_0x2a1834}=_0x15b91b[_0x4d7ef6(0x3f4)]();if(_0x2a1834['length']===0x0)return _0x2a3b51;let _0x26ecc5=a[_0x4d7ef6(0x401)][_0x4d7ef6(0x3da)](_0x2a3b51[_0x4d7ef6(0x2f0)][0x0]);for(let _0x17f4be=0x0;_0x17f4be<_0x2a1834['length'];_0x17f4be++){const _0x5700c1={'id':'doc.mutation.rich-text-editing','params':{..._0x2a1834[_0x17f4be]}},_0x211b79=this['_transformService'][_0x4d7ef6(0x429)](_0x26ecc5,_0x5700c1,!0x1);if(g[_0x4d7ef6(0x365)](_0x211b79))throw _0x211b79[_0x4d7ef6(0x244)];_0x26ecc5=_0x211b79[_0x4d7ef6(0x33d)];}return{...a[_0x4d7ef6(0x401)][_0x4d7ef6(0x3da)](_0x2a3b51),'mutations':[_0x26ecc5]};}[_0x30e513(0x436)](_0x297ddc){const _0x294f96=_0x30e513,{unitID:_0x47ee73}=_0x297ddc,_0x5c73d1=this[_0x294f96(0x47d)]['getRenderById'](_0x47ee73)['with'](T[_0x294f96(0x26b)]),{undoCache:_0x2fdf3d,redoCache:_0x12fb8c}=_0x5c73d1[_0x294f96(0x3f4)]();if(_0x2fdf3d[_0x294f96(0x457)]===0x0||_0x12fb8c[_0x294f96(0x457)]===0x0)return;const _0x447705=[],_0x31bdc3=[];let _0x4a7f9d=a[_0x294f96(0x401)]['deepClone'](_0x297ddc[_0x294f96(0x2f0)][0x0]),_0x41302=a[_0x294f96(0x401)]['deepClone'](_0x297ddc[_0x294f96(0x2f0)][0x0]);for(let _0xd5e126=_0x2fdf3d['length']-0x1;_0xd5e126>=0x0;_0xd5e126--){const _0x3fb1ab={'id':_0x294f96(0x30c),'params':{..._0x2fdf3d[_0xd5e126]}},_0x41825f={'id':_0x294f96(0x30c),'params':{..._0x12fb8c[_0xd5e126]}},_0x3c5875=this[_0x294f96(0x3fc)][_0x294f96(0x429)](_0x4a7f9d,_0x3fb1ab,!0x1),_0x52b2a5=this[_0x294f96(0x3fc)][_0x294f96(0x429)](_0x41302,_0x41825f,!0x1);if(g[_0x294f96(0x365)](_0x3c5875))throw _0x3c5875[_0x294f96(0x244)];if(g[_0x294f96(0x365)](_0x52b2a5))throw _0x52b2a5[_0x294f96(0x244)];_0x447705['unshift'](_0x3c5875[_0x294f96(0x336)]['params']),_0x31bdc3[_0x294f96(0x3b9)](_0x52b2a5[_0x294f96(0x336)][_0x294f96(0x450)]),_0x4a7f9d=_0x3c5875[_0x294f96(0x33d)],_0x41302=_0x52b2a5[_0x294f96(0x33d)];}_0x5c73d1[_0x294f96(0x2ad)]({'undoCache':_0x447705,'redoCache':_0x31bdc3});}[_0x30e513(0x28e)](_0x54f894){const _0x8cf38e=_0x30e513,{unitID:_0x2ec4f8}=_0x54f894,_0x30f7d1=this['_renderManagerService']['getRenderById'](_0x2ec4f8)[_0x8cf38e(0x283)](T[_0x8cf38e(0x26b)]),_0x3aa3a8=_0x30f7d1[_0x8cf38e(0x22a)]();if(_0x3aa3a8==null)return;const _0x57cfe3=[{'id':_0x8cf38e(0x30c),'params':{'unitId':_0x54f894[_0x8cf38e(0x3ea)],'actions':null,'textRanges':[_0x3aa3a8]}}],_0x746b35=this['_transformService'][_0x8cf38e(0x2d5)](_0x54f894,_0x57cfe3);if(!g[_0x8cf38e(0x32a)](_0x746b35))throw _0x746b35['error'];const _0x252ed1=_0x746b35['m2Prime'][0x0][_0x8cf38e(0x450)][_0x8cf38e(0x33f)];Array[_0x8cf38e(0x212)](_0x252ed1)&&_0x252ed1[_0x8cf38e(0x457)]&&_0x30f7d1[_0x8cf38e(0x214)](_0x252ed1[0x0]);}};ee=Wt([Ae(0x0,g[_0x30e513(0x252)]),Ae(0x1,C['IRenderManagerService'])],ee);var Vt=Object[_0x30e513(0x45b)],Gt=(_0x57e4d9,_0x394bf1,_0x90c69b,_0x1cf7ac)=>{const _0x2c221c=_0x30e513;for(var _0x37a6b6=_0x1cf7ac>0x1?void 0x0:_0x1cf7ac?Vt(_0x394bf1,_0x90c69b):_0x394bf1,_0x3b83c5=_0x57e4d9[_0x2c221c(0x457)]-0x1,_0x1542b1;_0x3b83c5>=0x0;_0x3b83c5--)(_0x1542b1=_0x57e4d9[_0x3b83c5])&&(_0x37a6b6=_0x1542b1(_0x37a6b6)||_0x37a6b6);return _0x37a6b6;},Ie=(_0x4e08b5,_0x1dfac5)=>(_0x42265d,_0xad5ecb)=>_0x1dfac5(_0x42265d,_0xad5ecb,_0x4e08b5);let te=class{constructor(_0x3dcadb,_0x3af1ae,_0x59f3e0){const _0x332cd0=_0x30e513;this['_injector']=_0x3dcadb,this['_transformService']=_0x3af1ae,this[_0x332cd0(0x466)]=_0x59f3e0;}[_0x30e513(0x3d0)](_0x59e488){const _0x46d691=_0x30e513;this[_0x46d691(0x2d7)](_0x59e488);}[_0x30e513(0x21d)](_0x546711){const _0x3d3dd8=_0x30e513,{unitID:_0x3402ef}=_0x546711,{collaboration:_0x202799}=this[_0x3d3dd8(0x466)]['getStateCache'](_0x3402ef);if(_0x202799['length']===0x0)return _0x546711;let _0x1e9df0=a['Tools'][_0x3d3dd8(0x3da)](_0x546711['mutations'][0x0]);for(let _0x4ee605=0x0;_0x4ee605<_0x202799[_0x3d3dd8(0x457)];_0x4ee605++){const _0x12b229={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x202799[_0x4ee605][_0x3d3dd8(0x4a1)],..._0x202799[_0x4ee605][_0x3d3dd8(0x496)]}},_0x58912b=this[_0x3d3dd8(0x3fc)][_0x3d3dd8(0x429)](_0x1e9df0,_0x12b229,!0x1);if(g[_0x3d3dd8(0x365)](_0x58912b))throw _0x58912b[_0x3d3dd8(0x244)];_0x1e9df0=_0x58912b[_0x3d3dd8(0x33d)];}return{...a['Tools'][_0x3d3dd8(0x3da)](_0x546711),'mutations':[_0x1e9df0]};}[_0x30e513(0x2d7)](_0x489c24){const _0x4b2eea=_0x30e513,{unitID:_0x4c9d8c}=_0x489c24,{history:_0x314379,collaboration:_0x2c3c9c}=this[_0x4b2eea(0x466)][_0x4b2eea(0x3ce)](_0x4c9d8c);if(_0x314379['length']===0x0&&_0x2c3c9c[_0x4b2eea(0x457)]===0x0)return;const _0x27aecd=[],_0x174106=[];let _0x16d335=a[_0x4b2eea(0x401)]['deepClone'](_0x489c24[_0x4b2eea(0x2f0)][0x0]),_0x244dba=a[_0x4b2eea(0x401)][_0x4b2eea(0x3da)](_0x489c24['mutations'][0x0]);for(let _0x2c20d5=_0x314379[_0x4b2eea(0x457)]-0x1;_0x2c20d5>=0x0;_0x2c20d5--){const _0x25d124={'id':_0x4b2eea(0x30c),'params':{'unitId':_0x314379[_0x2c20d5][_0x4b2eea(0x4a1)],..._0x314379[_0x2c20d5]['undoState']}},_0xafd389={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x314379[_0x2c20d5][_0x4b2eea(0x4a1)],..._0x314379[_0x2c20d5]['redoState']}},_0x3134c7=this[_0x4b2eea(0x3fc)][_0x4b2eea(0x429)](_0x16d335,_0x25d124,!0x1),_0x2deda3=this['_transformService']['transformMutation'](_0x244dba,_0xafd389,!0x1);if(g[_0x4b2eea(0x365)](_0x3134c7))throw _0x3134c7['error'];if(g[_0x4b2eea(0x365)](_0x2deda3))throw _0x2deda3[_0x4b2eea(0x244)];_0x27aecd[_0x4b2eea(0x3b9)]({..._0x314379[_0x2c20d5],'undoState':_0x3134c7[_0x4b2eea(0x336)][_0x4b2eea(0x450)],'redoState':_0x2deda3[_0x4b2eea(0x336)][_0x4b2eea(0x450)]}),_0x16d335=_0x3134c7[_0x4b2eea(0x33d)],_0x244dba=_0x2deda3[_0x4b2eea(0x33d)];}_0x16d335=a[_0x4b2eea(0x401)]['deepClone'](_0x489c24[_0x4b2eea(0x2f0)][0x0]),_0x244dba=a[_0x4b2eea(0x401)][_0x4b2eea(0x3da)](_0x489c24[_0x4b2eea(0x2f0)][0x0]);for(let _0x329949=_0x2c3c9c[_0x4b2eea(0x457)]-0x1;_0x329949>=0x0;_0x329949--){const _0x2fa36b={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2c3c9c[_0x329949][_0x4b2eea(0x4a1)],..._0x2c3c9c[_0x329949][_0x4b2eea(0x403)]}},_0x3fa9b8={'id':_0x4b2eea(0x30c),'params':{'unitId':_0x2c3c9c[_0x329949][_0x4b2eea(0x4a1)],..._0x2c3c9c[_0x329949]['redoState']}},_0xee5c3a=this['_transformService'][_0x4b2eea(0x429)](_0x16d335,_0x2fa36b,!0x1),_0x115952=this[_0x4b2eea(0x3fc)][_0x4b2eea(0x429)](_0x244dba,_0x3fa9b8,!0x1);if(g[_0x4b2eea(0x365)](_0xee5c3a))throw _0xee5c3a[_0x4b2eea(0x244)];if(g[_0x4b2eea(0x365)](_0x115952))throw _0x115952[_0x4b2eea(0x244)];_0x174106[_0x4b2eea(0x3b9)]({..._0x2c3c9c[_0x329949],'undoState':_0xee5c3a[_0x4b2eea(0x336)][_0x4b2eea(0x450)],'redoState':_0x115952['m2Prime']['params']}),_0x16d335=_0xee5c3a['m1Prime'],_0x244dba=_0x115952[_0x4b2eea(0x33d)];}this[_0x4b2eea(0x466)]['setStateCache'](_0x4c9d8c,{'history':_0x27aecd,'collaboration':_0x174106});}};te=Gt([Ie(0x0,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),Ie(0x1,g['ITransformService']),Ie(0x2,a[_0x30e513(0x3f5)](T[_0x30e513(0x474)]))],te);var Xt=Object[_0x30e513(0x45b)],Kt=(_0x4c4f95,_0x4911e4,_0x3cfac2,_0x3001a2)=>{for(var _0x323092=_0x3001a2>0x1?void 0x0:_0x3001a2?Xt(_0x4911e4,_0x3cfac2):_0x4911e4,_0x24539c=_0x4c4f95['length']-0x1,_0x3ab761;_0x24539c>=0x0;_0x24539c--)(_0x3ab761=_0x4c4f95[_0x24539c])&&(_0x323092=_0x3ab761(_0x323092)||_0x323092);return _0x323092;},Pe=(_0x5620b9,_0x3f22d8)=>(_0x3b86fd,_0x338612)=>_0x3f22d8(_0x3b86fd,_0x338612,_0x5620b9);let se=class{constructor(_0x9b0927,_0x45143f){const _0x2ecc20=_0x30e513;this['_injector']=_0x9b0927,this[_0x2ecc20(0x3fc)]=_0x45143f;}['transformSelections'](_0x348213){const _0x2fc302=_0x30e513;var _0x2c7903;const _0x28a5dc=this[_0x2fc302(0x23e)][_0x2fc302(0x3a9)](V[_0x2fc302(0x1fb)]),_0x42715a=(_0x2c7903=_0x28a5dc[_0x2fc302(0x383)]())!=null?_0x2c7903:[];if(_0x42715a['length']===0x0)return;const _0x2418b7=_0x348213[_0x2fc302(0x3ea)],_0x4be6b4=[{'id':_0x2fc302(0x30c),'params':{'unitId':_0x2418b7,'actions':null,'textRanges':_0x42715a}}],_0x2a8ef2=this[_0x2fc302(0x3fc)]['transformMutationsWithChangeset'](_0x348213,_0x4be6b4);if(!g['isTransformMutationsWithChangesetSuccess'](_0x2a8ef2))throw _0x2a8ef2[_0x2fc302(0x244)];const _0x152922=_0x2a8ef2[_0x2fc302(0x336)][0x0][_0x2fc302(0x450)][_0x2fc302(0x33f)];Array['isArray'](_0x152922)&&_0x152922['length']&&_0x28a5dc[_0x2fc302(0x310)](_0x152922,{'unitId':_0x2418b7,'subUnitId':_0x2418b7},!0x1);}};se=Kt([Pe(0x0,a['Inject'](a[_0x30e513(0x3e9)])),Pe(0x1,g[_0x30e513(0x252)])],se);var qt=Object[_0x30e513(0x45b)],zt=(_0x47b44b,_0x2992fa,_0x325f30,_0x316140)=>{for(var _0x154a9d=_0x316140>0x1?void 0x0:_0x316140?qt(_0x2992fa,_0x325f30):_0x2992fa,_0x4c6ef8=_0x47b44b['length']-0x1,_0x162e73;_0x4c6ef8>=0x0;_0x4c6ef8--)(_0x162e73=_0x47b44b[_0x4c6ef8])&&(_0x154a9d=_0x162e73(_0x154a9d)||_0x154a9d);return _0x154a9d;},N=(_0x23fa71,_0x5be5ce)=>(_0x37770c,_0x67be26)=>_0x5be5ce(_0x37770c,_0x67be26,_0x23fa71);let ie=class extends a[_0x30e513(0x3c0)]{constructor(_0x1aece9,_0x2802fe,_0x28ec41,_0x2ad414,_0x15461b,_0x260f5a,_0xf3b3b4,_0x6dd3){const _0x1efbef=_0x30e513;super(),_(this,_0x1efbef(0x3ae),new I[(_0x1efbef(0x213))](u[_0x1efbef(0x35d)]['NOT_COLLAB'])),(this[_0x1efbef(0x466)]=_0x1aece9,this[_0x1efbef(0x227)]=_0x2802fe,this[_0x1efbef(0x35e)]=_0x28ec41,this['_docTransformStateCacheService']=_0x2ad414,this[_0x1efbef(0x248)]=_0x15461b,this['_docSyncEditingCollabCursorService']=_0x260f5a,this[_0x1efbef(0x3b3)]=_0xf3b3b4,this['_localeService']=_0x6dd3,this[_0x1efbef(0x3cf)]());}[_0x30e513(0x3cf)](){const _0xec0f69=_0x30e513;this[_0xec0f69(0x2eb)](this[_0xec0f69(0x227)][_0xec0f69(0x49f)][_0xec0f69(0x376)](_0x388c27=>{const _0x4bb1e3=_0xec0f69,_0x102959=this[_0x4bb1e3(0x466)][_0x4bb1e3(0x2cc)][_0x4bb1e3(0x376)](_0x490a0a=>{const _0x3ad4bb=_0x4bb1e3;if(_0x490a0a==null)return;const {unitId:_0x585dbb,redoState:_0x1804c5,commandId:_0x20b4b5}=_0x490a0a;if(_0x585dbb!==_0x388c27[_0x3ad4bb(0x3ea)])return;const _0x476b8d={'id':_0x20b4b5,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x585dbb,'actions':_0x1804c5[_0x3ad4bb(0x37b)],'textRanges':null}};_0x388c27[_0x3ad4bb(0x425)](_0x476b8d);});if(_0x388c27['disposeWithMe'](_0x102959),_0x388c27 instanceof u[_0x4bb1e3(0x2bf)]){const _0x49b1e3={'onTransformIME':_0x629ed4=>this[_0x4bb1e3(0x35e)][_0x4bb1e3(0x2c8)](_0x629ed4),'onTransformState':_0x3b0269=>this[_0x4bb1e3(0x282)]['transformStateCache'](_0x3b0269),'onTransformSelections':_0x28b2e9=>this['_docTransformSelectionsService'][_0x4bb1e3(0x4a5)](_0x28b2e9),'onSyncEditingCollabCursor':_0x117e03=>this[_0x4bb1e3(0x38a)][_0x4bb1e3(0x395)](_0x117e03),'onTransformRemoteChangesetByIMECache':_0x43440b=>this[_0x4bb1e3(0x35e)][_0x4bb1e3(0x21d)](_0x43440b),'onTransformRemoteChangesetByStateCache':_0x2563ed=>this[_0x4bb1e3(0x282)]['transformRemoteChangeset'](_0x2563ed)};_0x388c27['addHandlerCallback'](_0x49b1e3);}}));}};ie=zt([N(0x0,a[_0x30e513(0x3f5)](T[_0x30e513(0x474)])),N(0x1,a[_0x30e513(0x3f5)](u[_0x30e513(0x45d)])),N(0x2,a[_0x30e513(0x3f5)](ee)),N(0x3,a[_0x30e513(0x3f5)](te)),N(0x4,a[_0x30e513(0x3f5)](se)),N(0x5,a['Inject'](be)),N(0x6,O[_0x30e513(0x449)]),N(0x7,a[_0x30e513(0x3f5)](a[_0x30e513(0x317)]))],ie);var G=(_0x32094e=>(_0x32094e[_0x32094e[_0x30e513(0x42e)]=0x0]=_0x30e513(0x42e),_0x32094e[_0x32094e['OK']=0x1]='OK',_0x32094e[_0x32094e['INTERNAL_ERROR']=0x2]=_0x30e513(0x3af),_0x32094e[_0x32094e[_0x30e513(0x377)]=0x3]=_0x30e513(0x377),_0x32094e[_0x32094e[_0x30e513(0x3c7)]=0x4]=_0x30e513(0x3c7),_0x32094e[_0x32094e[_0x30e513(0x279)]=0x5]=_0x30e513(0x279),_0x32094e[_0x32094e[_0x30e513(0x31f)]=0x6]=_0x30e513(0x31f),_0x32094e[_0x32094e[_0x30e513(0x4be)]=0x7]='INVALID_ARGUMENT',_0x32094e[_0x32094e['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x32094e[_0x32094e[_0x30e513(0x446)]=0x9]='COMPLETION_FINISHED',_0x32094e[_0x32094e[_0x30e513(0x2e1)]=0xa]='LOGIN_FAILED',_0x32094e[_0x32094e[_0x30e513(0x39e)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x32094e[_0x32094e[_0x30e513(0x3cd)]=0xc]=_0x30e513(0x3cd),_0x32094e[_0x32094e['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x32094e[_0x32094e[_0x30e513(0x34c)]=0xe]=_0x30e513(0x34c),_0x32094e[_0x32094e[_0x30e513(0x3b4)]=0xf]='AUTHORIZE_CODE_ILLEGAL',_0x32094e[_0x32094e[_0x30e513(0x2dd)]=0x10]=_0x30e513(0x2dd),_0x32094e[_0x32094e[_0x30e513(0x40d)]=0x64]='CURRENT_STATUS_CANNOT_OPERATE',_0x32094e[_0x32094e[_0x30e513(0x255)]=0x65]=_0x30e513(0x255),_0x32094e[_0x32094e[_0x30e513(0x385)]=0xc9]=_0x30e513(0x385),_0x32094e[_0x32094e[_0x30e513(0x2b1)]=0xca]='USER_IS_ANONYMOUS',_0x32094e[_0x32094e[_0x30e513(0x4a0)]=0x1389]=_0x30e513(0x4a0),_0x32094e[_0x32094e[_0x30e513(0x41b)]=0x1771]=_0x30e513(0x41b),_0x32094e[_0x32094e[_0x30e513(0x333)]=0x1772]=_0x30e513(0x333),_0x32094e[_0x32094e[_0x30e513(0x331)]=0x1773]=_0x30e513(0x331),_0x32094e[_0x32094e[_0x30e513(0x455)]=0x1b59]=_0x30e513(0x455),_0x32094e[_0x32094e[_0x30e513(0x35b)]=0x1b5a]=_0x30e513(0x35b),_0x32094e[_0x32094e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x30e513(0x46d),_0x32094e[_0x32094e['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x32094e[_0x32094e[_0x30e513(0x20e)]=0x1b5d]='APPLY_DUPLICATED',_0x32094e[_0x32094e[_0x30e513(0x4b0)]=0x1f41]=_0x30e513(0x4b0),_0x32094e[_0x32094e[_0x30e513(0x48e)]=0x2329]=_0x30e513(0x48e),_0x32094e[_0x32094e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x30e513(0x3a6),_0x32094e[_0x32094e[_0x30e513(0x318)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x32094e[_0x32094e[_0x30e513(0x2ea)]=0x232c]=_0x30e513(0x2ea),_0x32094e[_0x32094e['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x32094e[_0x32094e[_0x30e513(0x44e)]=0x2711]=_0x30e513(0x44e),_0x32094e[_0x32094e[_0x30e513(0x498)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x32094e[_0x32094e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x30e513(0x3ed),_0x32094e[_0x32094e[_0x30e513(0x22f)]=0x2714]=_0x30e513(0x22f),_0x32094e[_0x32094e[_0x30e513(0x3b6)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x32094e[_0x32094e[_0x30e513(0x459)]=0x271b]=_0x30e513(0x459),_0x32094e[_0x32094e['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x30e513(0x324),_0x32094e[_0x32094e[_0x30e513(0x492)]=0x271d]=_0x30e513(0x492),_0x32094e[_0x32094e['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x30e513(0x259),_0x32094e[_0x32094e[_0x30e513(0x369)]=0x271f]=_0x30e513(0x369),_0x32094e[_0x32094e['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]=_0x30e513(0x3eb),_0x32094e[_0x32094e[_0x30e513(0x3e4)]=0x2af9]=_0x30e513(0x3e4),_0x32094e[_0x32094e[_0x30e513(0x3a0)]=0x2ee1]=_0x30e513(0x3a0),_0x32094e[_0x32094e[_0x30e513(0x3e3)]=0x2ee2]='INVALID_INVITE_CODE',_0x32094e[_0x32094e['INVITE_CODE_REQUIRED']=0x2ee3]=_0x30e513(0x236),_0x32094e[_0x32094e[_0x30e513(0x4a7)]=0x2ee4]=_0x30e513(0x4a7),_0x32094e[_0x32094e[_0x30e513(0x396)]=0x2ee5]=_0x30e513(0x396),_0x32094e[_0x32094e[_0x30e513(0x2de)]=0x32c9]=_0x30e513(0x2de),_0x32094e[_0x32094e[_0x30e513(0x4bf)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x32094e[_0x32094e['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x30e513(0x30a),_0x32094e[_0x32094e[_0x30e513(0x2a0)]=0x36b1]=_0x30e513(0x2a0),_0x32094e[_0x32094e['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT']=0x36b2]=_0x30e513(0x451),_0x32094e[_0x32094e[_0x30e513(0x3f7)]=0x36b3]=_0x30e513(0x3f7),_0x32094e[_0x32094e[_0x30e513(0x21b)]=0x36b4]=_0x30e513(0x21b),_0x32094e[_0x32094e[_0x30e513(0x321)]=0x36b5]='ENTITLE_INVALID_COUPON_CODE',_0x32094e[_0x32094e[_0x30e513(0x42a)]=0x36b6]='ENTITLE_COUPON_EXPIRED',_0x32094e[_0x32094e[_0x30e513(0x225)]=0x36b7]='ENTITLE_COUPON_USED_UP',_0x32094e[_0x32094e[_0x30e513(0x4bc)]=0x36b8]=_0x30e513(0x4bc),_0x32094e[_0x32094e[_0x30e513(0x456)]=0x3715]=_0x30e513(0x456),_0x32094e[_0x32094e[_0x30e513(0x437)]=0x3716]=_0x30e513(0x437),_0x32094e[_0x32094e[_0x30e513(0x4a2)]=0x3717]=_0x30e513(0x4a2),_0x32094e[_0x32094e[_0x30e513(0x3e6)]=0x37dd]=_0x30e513(0x3e6),_0x32094e[_0x32094e[_0x30e513(0x32b)]=0x3a99]='REDEMPTION_INVALID_CODE',_0x32094e[_0x32094e[_0x30e513(0x3a3)]=0x3a9a]='REDEMPTION_CODE_INACTIVE',_0x32094e[_0x32094e[_0x30e513(0x271)]=0x3a9b]=_0x30e513(0x271),_0x32094e[_0x32094e[_0x30e513(0x209)]=0x3a9c]=_0x30e513(0x209),_0x32094e[_0x32094e['REDEMPTION_USER_NOT_ELIGIBLE']=0x3a9d]=_0x30e513(0x339),_0x32094e[_0x32094e[_0x30e513(0x2aa)]=0x3a9e]=_0x30e513(0x2aa),_0x32094e[_0x32094e[_0x30e513(0x3bc)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x32094e[_0x32094e['DATA_SOURCE_TOO_LARGE']=0x3e81]='DATA_SOURCE_TOO_LARGE',_0x32094e[_0x32094e[_0x30e513(0x28d)]=-0x1]=_0x30e513(0x28d),_0x32094e))(G||{});function Jt(_0x21fe7e){const _0x3aca82=_0x30e513;var _0x2bad81,_0x31eb45;const _0x1b37a8=(_0x2bad81=_0x21fe7e['stageInfo'])==null?void 0x0:_0x2bad81[_0x3aca82(0x32d)],_0x2dcc86=((_0x31eb45=_0x21fe7e[_0x3aca82(0x36f)])==null?void 0x0:_0x31eb45['totalFormulasToCalculate'])||0x0;return _0x1b37a8===B[_0x3aca82(0x261)][_0x3aca82(0x372)]&&_0x2dcc86>0x0;}function Zt(_0x4ca2d8){const _0x520afd=_0x30e513;return _0x4ca2d8[_0x520afd(0x337)]===B[_0x520afd(0x2c2)][_0x520afd(0x3d6)];}var Qt=Object[_0x30e513(0x45b)],es=(_0x568ed0,_0x2685c0,_0x16f755,_0x2e6e57)=>{const _0x44831c=_0x30e513;for(var _0x5758d5=_0x2e6e57>0x1?void 0x0:_0x2e6e57?Qt(_0x2685c0,_0x16f755):_0x2685c0,_0x33f739=_0x568ed0[_0x44831c(0x457)]-0x1,_0x1b1b63;_0x33f739>=0x0;_0x33f739--)(_0x1b1b63=_0x568ed0[_0x33f739])&&(_0x5758d5=_0x1b1b63(_0x5758d5)||_0x5758d5);return _0x5758d5;},L=(_0x411cea,_0x5a9670)=>(_0x20ac93,_0x22a0e6)=>_0x5a9670(_0x20ac93,_0x22a0e6,_0x411cea);const ts=_0x30e513(0x201),ss=_0x30e513(0x2bd),is=_0x30e513(0x4b5);let ne=class extends a['Disposable']{constructor(_0x5b8a35,_0x2cce5a,_0x18e3f7,_0x599b01,_0x4a4ad8,_0x2e20a7,_0x5214a0){const _0x1eaad9=_0x30e513;super(),_(this,'_pollingInterval',null),_(this,_0x1eaad9(0x32e),0x0),_(this,'_currentUsage',0x0),_(this,'_taskIds',[]),_(this,_0x1eaad9(0x3ad),0x0),(this[_0x1eaad9(0x3b3)]=_0x5b8a35,this[_0x1eaad9(0x289)]=_0x2cce5a,this[_0x1eaad9(0x3a4)]=_0x18e3f7,this['_httpService']=_0x599b01,this[_0x1eaad9(0x4b1)]=_0x4a4ad8,this[_0x1eaad9(0x479)]=_0x2e20a7,this[_0x1eaad9(0x329)]=_0x5214a0,this[_0x1eaad9(0x2d1)]());}[_0x30e513(0x2d1)](){const _0x5f4aeb=_0x30e513;this['disposeWithMe'](this[_0x5f4aeb(0x289)]['beforeCommandExecuted']((_0x2973ce,_0x2b2cf6)=>{const _0xc99c19=_0x5f4aeb;var _0x59e549;if(_0x2973ce['id']!==B['SetFormulaCalculationStartMutation']['id'])return;const _0x641a6c=_0x2973ce['params'];if(!this['_hasFormulaInDirtyRanges']((_0x59e549=_0x641a6c[_0xc99c19(0x461)])!=null?_0x59e549:[]))return;if(!this[_0xc99c19(0x407)]())throw this[_0xc99c19(0x3e8)](_0x2973ce,_0x2b2cf6),this[_0xc99c19(0x468)](),new a[(_0xc99c19(0x1f3))]();})),this['disposeWithMe'](this[_0x5f4aeb(0x289)]['onCommandExecuted']((_0x5162cf,_0x1bd9c8)=>{const _0x3db9b8=_0x5f4aeb;if(_0x5162cf['id']!==B[_0x3db9b8(0x3ab)]['id'])return;const _0x2593f6=_0x5162cf[_0x3db9b8(0x450)];if(Jt(_0x2593f6)){const _0x5d36c5=a[_0x3db9b8(0x301)]();this['_taskIds'][_0x3db9b8(0x293)](_0x5d36c5),this[_0x3db9b8(0x2e5)](_0x5d36c5);}else{if(Zt(_0x2593f6)&&this[_0x3db9b8(0x375)][_0x3db9b8(0x457)]>0x0){const _0x47c94b=this[_0x3db9b8(0x375)]['shift']();this[_0x3db9b8(0x358)](_0x47c94b);}}}));}[_0x30e513(0x3d7)](){const _0x48c16c=_0x30e513;super[_0x48c16c(0x3d7)](),this['_clearPolling'](),this['_taskIds']=[],this[_0x48c16c(0x48c)]=0x0,this['_maxFormulaLimit']=0x0,this[_0x48c16c(0x3ad)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x13e9a6,_0x32027f){const _0xee9dd2=_0x30e513;for(let _0x19be50=0x0;_0x19be50<0x1e;_0x19be50++)try{if(await this[_0xee9dd2(0x2dc)](),this['_checkCalculationAvailable']()){this[_0xee9dd2(0x325)](_0x13e9a6,_0x32027f),this[_0xee9dd2(0x3b3)][_0xee9dd2(0x258)]({'content':this[_0xee9dd2(0x329)]['t'](_0xee9dd2(0x399)),'type':p[_0xee9dd2(0x263)][_0xee9dd2(0x26d)]});return;}await new Promise(_0x596ad5=>{const _0x3bf7af=_0xee9dd2;this[_0x3bf7af(0x4aa)]=window[_0x3bf7af(0x35c)](_0x596ad5,0x3e8);});}catch(_0x20dceb){this['_logService']['error'](_0x20dceb);}this[_0xee9dd2(0x3b3)][_0xee9dd2(0x258)]({'content':this[_0xee9dd2(0x329)]['t']('formula.calculation.unable'),'type':p[_0xee9dd2(0x263)][_0xee9dd2(0x3d8)]});}[_0x30e513(0x325)](_0x8ca294,_0x3b093c){const _0xfe903f=_0x30e513;try{this['_commandService'][_0xfe903f(0x478)](_0x8ca294['id'],_0x8ca294['params'],_0x3b093c);}catch(_0x20f243){this[_0xfe903f(0x479)][_0xfe903f(0x244)](_0x20f243);}}[_0x30e513(0x3a5)](_0x1be274,_0x276ab0){const _0xb9ba3d=_0x30e513;_0x276ab0<this[_0xb9ba3d(0x3ad)]||(this[_0xb9ba3d(0x3ad)]=_0x276ab0,this[_0xb9ba3d(0x32e)]=Number[_0xb9ba3d(0x484)](_0x1be274['maxFormulaLimit']),this['_currentUsage']=Number['parseInt'](_0x1be274['currentUsage']));}async[_0x30e513(0x2e5)](_0x30fad6){const _0x1662ec=_0x30e513;var _0x36ebdc,_0x737e76;const _0xe3510f=Date[_0x1662ec(0x20a)]();try{const _0x2b2e43=((_0x36ebdc=this['_configService'][_0x1662ec(0x2f5)](u[_0x1662ec(0x351)]))==null?void 0x0:_0x36ebdc[_0x1662ec(0x345)])||ss,_0x2ba344=(await this[_0x1662ec(0x4ab)]['post'](_0x2b2e43,{'body':JSON[_0x1662ec(0x37d)]({'taskId':_0x30fad6})}))[_0x1662ec(0x3c8)];if(((_0x737e76=_0x2ba344[_0x1662ec(0x244)])==null?void 0x0:_0x737e76['code'])!==G['OK'])return;this[_0x1662ec(0x3a5)](_0x2ba344[_0x1662ec(0x3c9)],_0xe3510f);}catch(_0x4de578){this[_0x1662ec(0x479)]['error'](_0x4de578);}}async['_getFormulaLimitStatus'](_0x4bfbbe){const _0x19fda1=_0x30e513;var _0x368fe1,_0x3387b3;const _0xbc4679=Date[_0x19fda1(0x20a)]();try{const _0x3cf428=((_0x368fe1=this[_0x19fda1(0x3a4)][_0x19fda1(0x2f5)](u[_0x19fda1(0x351)]))==null?void 0x0:_0x368fe1[_0x19fda1(0x344)])||ts,_0x474aad=_0x4bfbbe?_0x3cf428+'?taskId='+encodeURIComponent(_0x4bfbbe):_0x3cf428,_0x3ca951=(await this[_0x19fda1(0x4ab)][_0x19fda1(0x3a9)](_0x474aad))[_0x19fda1(0x3c8)];if(((_0x3387b3=_0x3ca951[_0x19fda1(0x244)])==null?void 0x0:_0x3387b3[_0x19fda1(0x36d)])!==G['OK'])return;this[_0x19fda1(0x3a5)](_0x3ca951[_0x19fda1(0x3c9)],_0xbc4679);}catch(_0x1f9d84){this['_logService'][_0x19fda1(0x244)](_0x1f9d84);}}async['_releaseCalculationLimit'](_0x500dca){const _0x13f708=_0x30e513;var _0x556f26,_0x37e77c;const _0x463b90=Date[_0x13f708(0x20a)]();try{const _0x4f53a7=((_0x556f26=this[_0x13f708(0x3a4)][_0x13f708(0x2f5)](u[_0x13f708(0x351)]))==null?void 0x0:_0x556f26[_0x13f708(0x36a)])||is,_0x1d1b9d=(await this[_0x13f708(0x4ab)][_0x13f708(0x27c)](_0x4f53a7,{'body':JSON[_0x13f708(0x37d)]({'taskId':_0x500dca})}))[_0x13f708(0x3c8)];if(((_0x37e77c=_0x1d1b9d['error'])==null?void 0x0:_0x37e77c['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x1d1b9d[_0x13f708(0x3c9)],_0x463b90);}catch(_0x39e1a3){this[_0x13f708(0x479)][_0x13f708(0x244)](_0x39e1a3);}}['_checkCalculationAvailable'](){const _0x52c716=_0x30e513;return this[_0x52c716(0x32e)]===0x0?!0x0:this[_0x52c716(0x32e)]-this[_0x52c716(0x48c)]>0x0;}[_0x30e513(0x21f)](){const _0x50c5f8=_0x30e513;this[_0x50c5f8(0x4aa)]&&(clearTimeout(this[_0x50c5f8(0x4aa)]),this[_0x50c5f8(0x4aa)]=null);}['_showGuardMessage'](){const _0x17f9ca=_0x30e513;this[_0x17f9ca(0x3b3)]['show']({'content':this['_localeService']['t'](_0x17f9ca(0x359)),'type':p['MessageType'][_0x17f9ca(0x2a4)]});}['_hasFormulaInDirtyRanges'](_0x5b2517){const _0x14cd0f=_0x30e513;for(const _0x2c667b of _0x5b2517){const {unitId:_0x4ba3a9,sheetId:_0xe8fb92,range:_0x4b9d16}=_0x2c667b,_0x24e9b6=this[_0x14cd0f(0x4b1)]['getUnit'](_0x4ba3a9);if(!_0x24e9b6)continue;const _0x8e65d0=_0x24e9b6[_0x14cd0f(0x3fb)](_0xe8fb92);if(!_0x8e65d0)continue;const _0x218211=_0x8e65d0[_0x14cd0f(0x45c)]();for(let _0x1b607e=_0x4b9d16[_0x14cd0f(0x2a9)];_0x1b607e<=_0x4b9d16['endRow'];_0x1b607e++)for(let _0x2b4422=_0x4b9d16['startColumn'];_0x2b4422<=_0x4b9d16['endColumn'];_0x2b4422++){const _0x4c40d7=_0x218211[_0x14cd0f(0x237)](_0x1b607e,_0x2b4422);if(_0x4c40d7&&(a[_0x14cd0f(0x29a)](_0x4c40d7['f'])||a[_0x14cd0f(0x33e)](_0x4c40d7['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a['Inject'](O['IMessageService'])),L(0x1,a[_0x30e513(0x40a)]),L(0x2,a['IConfigService']),L(0x3,a[_0x30e513(0x3f5)](x['HTTPService'])),L(0x4,a[_0x30e513(0x202)]),L(0x5,a[_0x30e513(0x1f5)]),L(0x6,a[_0x30e513(0x3f5)](a[_0x30e513(0x317)]))],ne);var ns=Object[_0x30e513(0x45b)],rs=(_0x484e78,_0x7bac53,_0x165627,_0x217ec4)=>{const _0x243612=_0x30e513;for(var _0xa37ed0=_0x217ec4>0x1?void 0x0:_0x217ec4?ns(_0x7bac53,_0x165627):_0x7bac53,_0x6a2adb=_0x484e78[_0x243612(0x457)]-0x1,_0x2dacbd;_0x6a2adb>=0x0;_0x6a2adb--)(_0x2dacbd=_0x484e78[_0x6a2adb])&&(_0xa37ed0=_0x2dacbd(_0xa37ed0)||_0xa37ed0);return _0xa37ed0;},Se=(_0x8119c7,_0x2bb237)=>(_0x1a4b8e,_0xdaa85f)=>_0x2bb237(_0x1a4b8e,_0xdaa85f,_0x8119c7);let Te=class extends a['Disposable']{constructor(_0x37a5b1,_0x1fe9db,_0x33b5c5){const _0xefe456=_0x30e513;super(),_(this,'_cachedData',new Map()),_(this,_0xefe456(0x305),new Map()),_(this,_0xefe456(0x2ec),!0x1),(this[_0xefe456(0x3a4)]=_0x37a5b1,this[_0xefe456(0x44f)]=_0x1fe9db,this['_revisionService']=_0x33b5c5);}[_0x30e513(0x2a7)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x3dfc09=_0x30e513;this[_0x3dfc09(0x2ec)]=!0x1;}get[_0x30e513(0x3ee)](){const _0x6702d8=_0x30e513;return this[_0x6702d8(0x305)];}[_0x30e513(0x3d7)](){const _0x22e2d6=_0x30e513;this[_0x22e2d6(0x22e)]()[_0x22e2d6(0x343)](()=>super[_0x22e2d6(0x3d7)]());}async[_0x30e513(0x462)](_0x57b493){const _0x3f2a44=_0x30e513;return this[_0x3f2a44(0x2ec)]?null:this[_0x3f2a44(0x44f)][_0x3f2a44(0x38b)](u[_0x3f2a44(0x487)](_0x57b493));}async[_0x30e513(0x348)](_0x1f9ec4,_0x40b2b5){const _0x18c861=_0x30e513;return!!this[_0x18c861(0x44f)][_0x18c861(0x2ab)](_0x1f9ec4,_0x40b2b5);}[_0x30e513(0x448)](_0x4c1db0,_0x15b20d,_0x114ecb,_0x3d0286){const _0x4285ec=_0x30e513,_0x11cb6b=this['_revisionService']['getCurrentRevOfUnit'](_0x4c1db0);this['_cachedData'][_0x4285ec(0x416)](_0x4c1db0,{'unitID':_0x4c1db0,'type':_0x15b20d,'awaitingChangeset':_0x114ecb,'mutations':_0x3d0286,'rev':_0x11cb6b}),this[_0x4285ec(0x305)]['has'](_0x4c1db0)||this[_0x4285ec(0x2cb)](_0x4c1db0);}[_0x30e513(0x2cb)](_0x982444){const _0x6185f9=_0x30e513,_0x4dc5a3=this[_0x6185f9(0x286)]();_0x4dc5a3===0x0?this[_0x6185f9(0x323)](_0x982444):this[_0x6185f9(0x305)][_0x6185f9(0x416)](_0x982444,setTimeout(()=>this[_0x6185f9(0x323)](_0x982444),_0x4dc5a3));}['_getSaveTimeout'](){const _0x2c97ac=_0x30e513;var _0x1481ba;return(_0x1481ba=this[_0x2c97ac(0x3a4)][_0x2c97ac(0x2f5)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x1481ba:u['LOCAL_CACHE_INTERVAL'];}[_0x30e513(0x323)](_0xccf11){const _0x2d1e36=_0x30e513,_0x34e71c=this['_saveTaskMap'][_0x2d1e36(0x3a9)](_0xccf11);return _0x34e71c!==void 0x0&&window[_0x2d1e36(0x306)](_0x34e71c),this[_0x2d1e36(0x44f)]['setItem'](u['getLocalCacheKey'](_0xccf11),this[_0x2d1e36(0x2fc)]['get'](_0xccf11))[_0x2d1e36(0x343)](()=>this[_0x2d1e36(0x305)][_0x2d1e36(0x216)](_0xccf11));}async[_0x30e513(0x22e)](){const _0x325735=_0x30e513,_0x624188=[];this[_0x325735(0x305)][_0x325735(0x25c)]((_0x24ca76,_0x264b8f)=>{const _0x5d38a3=_0x325735;window[_0x5d38a3(0x306)](_0x24ca76),_0x624188[_0x5d38a3(0x293)](this[_0x5d38a3(0x323)](_0x264b8f)[_0x5d38a3(0x343)](()=>{const _0x209052=_0x5d38a3;this['_saveTaskMap'][_0x209052(0x216)](_0x264b8f);}));}),await Promise['all'](_0x624188);}};Te=rs([Se(0x0,a[_0x30e513(0x341)]),Se(0x1,a['ILocalStorageService']),Se(0x2,a[_0x30e513(0x3f5)](g[_0x30e513(0x251)]))],Te);function _0x2f23(_0x274674,_0x905554){_0x274674=_0x274674-0x1f3;const _0x2ee5de=_0x2ee5();let _0x2f2374=_0x2ee5de[_0x274674];return _0x2f2374;}class ke extends a[_0x30e513(0x2a6)]{constructor(){const _0x1519ad=_0x30e513;super(),_(this,_0x1519ad(0x465)),this['urlChange$']=I[_0x1519ad(0x374)](window,_0x1519ad(0x494))[_0x1519ad(0x485)](I[_0x1519ad(0x367)](this[_0x1519ad(0x3db)]),I[_0x1519ad(0x4af)](0x1),I['mapTo'](void 0x0));}[_0x30e513(0x2d3)](_0x5abb6f,_0x528c1a,_0x38bad1=!0x1){const _0x4c441a=_0x30e513,_0x3395a6=new URL(window['location'][_0x4c441a(0x264)]);_0x3395a6[_0x4c441a(0x493)]['set'](_0x5abb6f,_0x528c1a),_0x38bad1?window['history'][_0x4c441a(0x320)]('','',_0x3395a6['toString']()):window[_0x4c441a(0x469)][_0x4c441a(0x1ff)]('','',_0x3395a6[_0x4c441a(0x2a8)]());}['removeParam'](_0x342dd0,_0x30a8f9=!0x1){const _0x352cd7=_0x30e513,_0x141b5e=new URL(window[_0x352cd7(0x433)][_0x352cd7(0x264)]);_0x141b5e[_0x352cd7(0x493)][_0x352cd7(0x216)](_0x342dd0),_0x30a8f9?window[_0x352cd7(0x469)][_0x352cd7(0x320)]('','',_0x141b5e[_0x352cd7(0x2a8)]()):window[_0x352cd7(0x469)]['pushState']('','',_0x141b5e[_0x352cd7(0x2a8)]());}[_0x30e513(0x482)](_0x514b7f){const _0x536ff0=_0x30e513;var _0x83bac8;return(_0x83bac8=new URL(window[_0x536ff0(0x433)][_0x536ff0(0x264)])[_0x536ff0(0x493)][_0x536ff0(0x3a9)](_0x514b7f))!=null?_0x83bac8:void 0x0;}}var os=Object[_0x30e513(0x200)],as=Object[_0x30e513(0x45b)],cs=(_0x30c0b2,_0x3f17dc,_0x7a542b)=>_0x3f17dc in _0x30c0b2?os(_0x30c0b2,_0x3f17dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7a542b}):_0x30c0b2[_0x3f17dc]=_0x7a542b,ls=(_0x3160a3,_0x18b56b,_0x56139a,_0x4dd76c)=>{for(var _0x31603b=_0x4dd76c>0x1?void 0x0:_0x4dd76c?as(_0x18b56b,_0x56139a):_0x18b56b,_0x126114=_0x3160a3['length']-0x1,_0xc62ec4;_0x126114>=0x0;_0x126114--)(_0xc62ec4=_0x3160a3[_0x126114])&&(_0x31603b=_0xc62ec4(_0x31603b)||_0x31603b);return _0x31603b;},de=(_0x224ba1,_0xf213a5)=>(_0x623b05,_0x37554a)=>_0xf213a5(_0x623b05,_0x37554a,_0x224ba1),_s=(_0x554b90,_0x2c091a,_0x78606d)=>cs(_0x554b90,_0x2c091a+'',_0x78606d);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x30e513(0x256)]=class extends a[_0x30e513(0x42c)]{constructor(_0x2fcd3c=Me,_0x19de63,_0x34731f,_0x5b72fa){const _0x4f896f=_0x30e513;super(),this['_config']=_0x2fcd3c,this[_0x4f896f(0x47d)]=_0x19de63,this['_injector']=_0x34731f,this['_configService']=_0x5b72fa;const {..._0x4fc62e}=a[_0x4f896f(0x29c)]({},Me,this['_config']);this['_configService'][_0x4f896f(0x400)](Yt,_0x4fc62e);}[_0x30e513(0x223)](){const _0x4312c3=_0x30e513;this['_registerDependencies'](),this[_0x4312c3(0x3f3)]();}[_0x30e513(0x311)](){const _0x1326fb=_0x30e513;this[_0x1326fb(0x2da)]();}[_0x30e513(0x488)](){const _0x36f01e=_0x30e513;var _0x10d814;const _0x1bf588=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x36f01e(0x45e)],{'useClass':x[_0x36f01e(0x378)]}],[u[_0x36f01e(0x386)],{'useClass':Te}],[exports[_0x36f01e(0x34a)]],[ie],[Z],[F],[me],[exports[_0x36f01e(0x247)]]];this['_config'][_0x36f01e(0x350)]&&_0x1bf588[_0x36f01e(0x293)]([Q]),a[_0x36f01e(0x243)](this['_injector'],a['mergeOverrideWithDependencies'](_0x1bf588,(_0x10d814=this[_0x36f01e(0x2af)])==null?void 0x0:_0x10d814[_0x36f01e(0x435)]));}[_0x30e513(0x2da)](){const _0x59a029=_0x30e513;this[_0x59a029(0x2eb)](this[_0x59a029(0x47d)][_0x59a029(0x2f7)](a['UniverInstanceType'][_0x59a029(0x4ae)],[Ee])),this[_0x59a029(0x2eb)](this[_0x59a029(0x47d)]['registerRenderModule'](a[_0x59a029(0x2c1)][_0x59a029(0x230)],[Ce]));}['_initDependencies'](){const _0x173308=_0x30e513;a[_0x173308(0x2ae)](this[_0x173308(0x23e)],[[F],[exports[_0x173308(0x34a)]],[ie],[Z],[exports[_0x173308(0x247)]],[ne]]),this['_config'][_0x173308(0x350)]&&a['touchDependencies'](this['_injector'],[[Q]]);}},_s(exports[_0x30e513(0x256)],_0x30e513(0x210),hs),exports[_0x30e513(0x256)]=ls([a[_0x30e513(0x2c0)](u[_0x30e513(0x31c)]),de(0x1,C[_0x30e513(0x47f)]),de(0x2,a[_0x30e513(0x3f5)](a['Injector'])),de(0x3,a[_0x30e513(0x341)])],exports['UniverCollaborationClientUIPlugin']);var us=Object['getOwnPropertyDescriptor'],Is=(_0x363917,_0x186e08,_0x409b2d,_0x51fbca)=>{const _0x42485c=_0x30e513;for(var _0x41c186=_0x51fbca>0x1?void 0x0:_0x51fbca?us(_0x186e08,_0x409b2d):_0x186e08,_0x15bfe5=_0x363917[_0x42485c(0x457)]-0x1,_0x6b2360;_0x15bfe5>=0x0;_0x15bfe5--)(_0x6b2360=_0x363917[_0x15bfe5])&&(_0x41c186=_0x6b2360(_0x41c186)||_0x41c186);return _0x41c186;},W=(_0x5de2e5,_0x2cca8f)=>(_0x87412,_0x6c11ea)=>_0x2cca8f(_0x87412,_0x6c11ea,_0x5de2e5);exports[_0x30e513(0x2b2)]=class extends u['CollaborationSocketService']{constructor(_0x1306d9,_0x472a95,_0x3fadac,_0x26ff74,_0x331ebb){super(_0x1306d9,_0x472a95,_0x3fadac,_0x26ff74,_0x331ebb);}async[_0x30e513(0x2ac)](_0x30c0b5){const _0x8255fb=_0x30e513,_0x538f35=await this[_0x8255fb(0x2e7)](),_0x4d910b=this['_createSocketURL'](_0x30c0b5,_0x538f35);return this[_0x8255fb(0x4b7)](_0x4d910b);}[_0x30e513(0x3e0)](_0x52ed2e,_0x29af62){const _0x47bbd9=_0x30e513,_0x3d1498=typeof window>'u'?new URL(_0x52ed2e):new URL(_0x52ed2e,window[_0x47bbd9(0x433)][_0x47bbd9(0x410)]);_0x3d1498[_0x47bbd9(0x493)]['set'](_0x47bbd9(0x402),_0x29af62);const _0x4ca4a0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x47bbd9(0x32c)]);return _0x4ca4a0[_0x47bbd9(0x3a9)]('runId')&&_0x3d1498[_0x47bbd9(0x493)][_0x47bbd9(0x416)]('runId',_0x4ca4a0[_0x47bbd9(0x3a9)]('runId')),_0x3d1498[_0x47bbd9(0x2a8)]();}async[_0x30e513(0x2e7)](){const _0x2fa43c=_0x30e513;var _0x10eef6,_0x44166e,_0x107e55;const _0x312db2=this['_configService'][_0x2fa43c(0x2f5)](u[_0x2fa43c(0x351)]),_0x1a3a58=(_0x10eef6=_0x312db2==null?void 0x0:_0x312db2[_0x2fa43c(0x368)])!=null?_0x10eef6:u[_0x2fa43c(0x408)];return(_0x107e55=(_0x44166e=(await this[_0x2fa43c(0x4ab)]['get'](_0x1a3a58,{'headers':{'Content-Type':_0x2fa43c(0x380)}}))[_0x2fa43c(0x3c8)])==null?void 0x0:_0x44166e[_0x2fa43c(0x1f8)])!=null?_0x107e55:'';}},exports[_0x30e513(0x2b2)]=Is([W(0x0,a[_0x30e513(0x3f5)](a[_0x30e513(0x3e9)])),W(0x1,a[_0x30e513(0x3f5)](x[_0x30e513(0x37f)])),W(0x2,a[_0x30e513(0x341)]),W(0x3,a['ILogService']),W(0x4,g[_0x30e513(0x22b)])],exports['BrowserCollaborationSocketService']);var Ss=Object['getOwnPropertyDescriptor'],ds=(_0x2c0e7b,_0x489dd2,_0x3e2e40,_0x2af615)=>{const _0x5c9692=_0x30e513;for(var _0x2463ec=_0x2af615>0x1?void 0x0:_0x2af615?Ss(_0x489dd2,_0x3e2e40):_0x489dd2,_0x58d4a6=_0x2c0e7b[_0x5c9692(0x457)]-0x1,_0x789a4;_0x58d4a6>=0x0;_0x58d4a6--)(_0x789a4=_0x2c0e7b[_0x58d4a6])&&(_0x2463ec=_0x789a4(_0x2463ec)||_0x2463ec);return _0x2463ec;},fe=(_0x3f4ef3,_0x13b049)=>(_0x2866d1,_0x652d05)=>_0x13b049(_0x2866d1,_0x652d05,_0x3f4ef3);exports['RemoteUniscriptService']=class extends a[_0x30e513(0x3c0)]{constructor(_0x296876,_0xbaafef,_0x4bc0a9){const _0x3a5cac=_0x30e513;super(),this[_0x3a5cac(0x205)]=_0x296876,this[_0x3a5cac(0x4ab)]=_0xbaafef,this['_configService']=_0x4bc0a9;}async['runOnServer'](_0xbed634,_0x3c6c4d,_0x4b6b72,..._0xde4c95){const _0x29027e=_0x30e513;var _0x1f4ea8,_0x14a9af,_0x4a1ca7,_0x1ff9c7;const _0x3a4ec3=this[_0x29027e(0x205)][_0x29027e(0x4ad)]();if(!_0x3a4ec3)throw new Error(_0x29027e(0x312));const _0x50b15e=((_0x1f4ea8=this[_0x29027e(0x3a4)]['getConfig'](u[_0x29027e(0x2b8)]))!=null?_0x1f4ea8:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0xbed634+_0x29027e(0x4b6)+_0x3c6c4d,_0x32ae5a=new URL(window[_0x29027e(0x433)][_0x29027e(0x264)]),_0x10ef0e={'scriptId':_0xbed634,'runId':(_0x14a9af=_0x32ae5a['searchParams']['get'](_0x29027e(0x463)))!=null?_0x14a9af:'','function':_0x3c6c4d,'unitId':_0x3a4ec3[_0x29027e(0x241)](),'argsOfFunction':JSON[_0x29027e(0x37d)](_0xde4c95),'invokeId':(_0x4a1ca7=_0x4b6b72[_0x29027e(0x30f)])!=null?_0x4a1ca7:'','executionId':(_0x1ff9c7=_0x4b6b72['executionId'])!=null?_0x1ff9c7:''};try{const _0x2daba4=await this[_0x29027e(0x4ab)]['post'](_0x50b15e,{'body':_0x10ef0e});return _0x2daba4[_0x29027e(0x3c8)][_0x29027e(0x244)]&&_0x2daba4[_0x29027e(0x3c8)][_0x29027e(0x244)][_0x29027e(0x36d)]!==G['OK']?_0x29027e(0x262):_0x2daba4[_0x29027e(0x3c8)]['result'];}catch{return'Failed';}}},exports[_0x30e513(0x43d)]=ds([fe(0x0,a[_0x30e513(0x202)]),fe(0x1,a['Inject'](x[_0x30e513(0x37f)])),fe(0x2,a[_0x30e513(0x341)])],exports[_0x30e513(0x43d)]);const we=0x7530,ye='ACTIVE_UNIT_EVENT_CHANNEL';class fs extends a['Disposable']{constructor(){const _0x46b81c=_0x30e513;super(),_(this,_0x46b81c(0x354),a[_0x46b81c(0x301)]()),_(this,_0x46b81c(0x269),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x46b81c(0x38c),null),_(this,'_clearOtherTimers',new Map()),_(this,'_unitStatus',new Map()),this[_0x46b81c(0x38d)]();}['dispose'](){const _0xa1c5a4=_0x30e513;super['dispose'](),this[_0xa1c5a4(0x388)][_0xa1c5a4(0x25c)]((_0x285463,_0x331655)=>this['_removeClearOtherTimer'](_0x331655)),this[_0xa1c5a4(0x38c)]&&window[_0xa1c5a4(0x36c)](this[_0xa1c5a4(0x38c)]);}[_0x30e513(0x49b)](_0x4b882c){const _0x305457=_0x30e513;return this[_0x305457(0x319)](_0x4b882c)[_0x305457(0x485)](I[_0x305457(0x268)]());}[_0x30e513(0x28b)](_0x4c76f1){const _0x3c8df3=_0x30e513;this[_0x3c8df3(0x269)]['size']===0x0&&this[_0x3c8df3(0x2fa)](),this[_0x3c8df3(0x269)][_0x3c8df3(0x2e4)](_0x4c76f1),this[_0x3c8df3(0x284)]({'type':0x0,'memberID':this[_0x3c8df3(0x354)],'unitIDs':[_0x4c76f1],'isForwarded':!0x1});}[_0x30e513(0x48a)](_0x47dc20){const _0x54985f=_0x30e513;this[_0x54985f(0x269)][_0x54985f(0x216)](_0x47dc20),this[_0x54985f(0x269)][_0x54985f(0x3f9)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this['_heartbeatTimer']);}[_0x30e513(0x38d)](){const _0x16e815=_0x30e513;this[_0x16e815(0x2eb)](a['toDisposable'](I[_0x16e815(0x374)](window,'storage')[_0x16e815(0x376)](_0x22d0a0=>{const _0x10696d=_0x16e815;if(_0x22d0a0['key']!==ye||!_0x22d0a0[_0x10696d(0x20f)])return;const _0x313ec3=JSON[_0x10696d(0x355)](_0x22d0a0[_0x10696d(0x20f)]);this[_0x10696d(0x303)](_0x313ec3);}))),window[_0x16e815(0x2cd)](_0x16e815(0x473),()=>this[_0x16e815(0x284)]({'type':0x1,'memberID':this[_0x16e815(0x354)],'unitIDs':Array[_0x16e815(0x211)](this['_selfUnitIDs'])}));}[_0x30e513(0x303)](_0x521d3d){const _0x47f17b=_0x30e513;switch(_0x521d3d[_0x47f17b(0x428)]){case 0x0:this[_0x47f17b(0x2d0)](_0x521d3d);break;case 0x1:this[_0x47f17b(0x204)](_0x521d3d);break;case 0x2:this[_0x47f17b(0x2f1)](_0x521d3d);break;}}[_0x30e513(0x2d0)](_0x229672){const _0x28a7d9=_0x30e513,{unitIDs:_0x25b855,memberID:_0x285d20,isForwarded:_0x49c124}=_0x229672;_0x25b855[_0x28a7d9(0x25c)](_0xcdbc8b=>{const _0x31d888=_0x28a7d9;if(!_0x49c124&&this[_0x31d888(0x489)][_0x31d888(0x3a7)](_0xcdbc8b)&&this[_0x31d888(0x319)](_0xcdbc8b)[_0x31d888(0x44a)](u[_0x31d888(0x363)][_0x31d888(0x3f8)]),!this['_unitOnClients'][_0x31d888(0x3a7)](_0xcdbc8b)||!this[_0x31d888(0x489)][_0x31d888(0x3a9)](_0xcdbc8b)[_0x31d888(0x3a7)](_0x285d20)){const _0x2e7c1b=this[_0x31d888(0x489)]['get'](_0xcdbc8b)||new Set();_0x2e7c1b[_0x31d888(0x2e4)](_0x285d20),this['_unitOnClients'][_0x31d888(0x416)](_0xcdbc8b,_0x2e7c1b),this[_0x31d888(0x411)](_0x285d20);}}),_0x49c124||this[_0x28a7d9(0x284)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x28a7d9(0x269)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x57f2b7){const _0x41fee7=_0x30e513;this[_0x41fee7(0x285)](_0x57f2b7);const _0x55ace5=window['setTimeout'](()=>{const _0x358e92=_0x41fee7;this['_unitOnClients'][_0x358e92(0x25c)](_0x295c14=>{const _0x166bf9=_0x358e92;_0x295c14[_0x166bf9(0x216)](_0x57f2b7);});},we*0x2);this['_clearOtherTimers'][_0x41fee7(0x416)](_0x57f2b7,_0x55ace5);}[_0x30e513(0x285)](_0x2115dc){const _0x1cbf3e=_0x30e513;if(this[_0x1cbf3e(0x388)][_0x1cbf3e(0x3a7)](_0x2115dc)){const _0x337e42=this[_0x1cbf3e(0x388)][_0x1cbf3e(0x3a9)](_0x2115dc);_0x337e42&&window[_0x1cbf3e(0x306)](_0x337e42),this[_0x1cbf3e(0x388)]['set'](_0x2115dc,null);}}[_0x30e513(0x204)](_0x27f45a){const _0x149038=_0x30e513,{memberID:_0x5442d6,unitIDs:_0x4eb076}=_0x27f45a;_0x4eb076[_0x149038(0x25c)](_0x391810=>{const _0x292295=_0x149038;var _0x21a328;const _0x3a8949=this[_0x292295(0x489)][_0x292295(0x3a9)](_0x391810);_0x3a8949&&(_0x3a8949[_0x292295(0x216)](_0x5442d6),(_0x21a328=this['_ensureSubject'](_0x391810))==null||_0x21a328[_0x292295(0x44a)](_0x3a8949[_0x292295(0x3f9)]===0x0?u[_0x292295(0x363)][_0x292295(0x39b)]:u['UnitStatus'][_0x292295(0x3f8)]));}),this[_0x149038(0x285)](_0x5442d6);}[_0x30e513(0x2f1)](_0x32acf8){const _0x248cda=_0x30e513;this[_0x248cda(0x411)](_0x32acf8['memberID']);}[_0x30e513(0x284)](_0x360875){const _0x26372e=_0x30e513;localStorage[_0x26372e(0x2ab)](ye,JSON[_0x26372e(0x37d)](_0x360875));}[_0x30e513(0x2fa)](){const _0x2a00a1=_0x30e513;this['_heartbeatTimer']=window[_0x2a00a1(0x21c)](()=>{const _0x27222c=_0x2a00a1;this[_0x27222c(0x284)]({'type':0x2,'memberID':this['_id']});},we);}[_0x30e513(0x319)](_0x10da48){const _0x2e0af8=_0x30e513;return this[_0x2e0af8(0x47a)]['has'](_0x10da48)||this[_0x2e0af8(0x47a)][_0x2e0af8(0x416)](_0x10da48,new I[(_0x2e0af8(0x213))](u[_0x2e0af8(0x363)][_0x2e0af8(0x39b)])),this[_0x2e0af8(0x47a)][_0x2e0af8(0x3a9)](_0x10da48);}}exports[_0x30e513(0x229)]=Oe,exports[_0x30e513(0x2e2)]=je,exports[_0x30e513(0x349)]=fs,exports[_0x30e513(0x234)]=ke;
|
|
1
|
+
'use strict';const _0x164b20=_0x2fa9;(function(_0x2e6f06,_0x3a5722){const _0x44e276=_0x2fa9,_0x2248a3=_0x2e6f06();while(!![]){try{const _0xffccce=parseInt(_0x44e276(0x2c9))/0x1*(-parseInt(_0x44e276(0x233))/0x2)+-parseInt(_0x44e276(0x43a))/0x3*(parseInt(_0x44e276(0x433))/0x4)+-parseInt(_0x44e276(0x257))/0x5+parseInt(_0x44e276(0x246))/0x6+-parseInt(_0x44e276(0x310))/0x7*(parseInt(_0x44e276(0x331))/0x8)+parseInt(_0x44e276(0x41c))/0x9+parseInt(_0x44e276(0x2bf))/0xa;if(_0xffccce===_0x3a5722)break;else _0x2248a3['push'](_0x2248a3['shift']());}catch(_0x3509a2){_0x2248a3['push'](_0x2248a3['shift']());}}}(_0x2054,0x6f701));var Xe=Object[_0x164b20(0x3a7)],Ke=(_0x3f6ded,_0x2e1c38,_0x53ae4a)=>_0x2e1c38 in _0x3f6ded?Xe(_0x3f6ded,_0x2e1c38,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53ae4a}):_0x3f6ded[_0x2e1c38]=_0x53ae4a,_=(_0x4ae037,_0x4319f8,_0x23a617)=>Ke(_0x4ae037,typeof _0x4319f8!=_0x164b20(0x304)?_0x4319f8+'':_0x4319f8,_0x23a617);Object[_0x164b20(0x3a7)](exports,Symbol['toStringTag'],{'value':_0x164b20(0x39d)});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:_0x58c778,..._0x1c8f78}){const _0x3e59f8=_0x164b20,{icon:_0x1a8917,id:_0x141b74,className:_0x192602,extend:_0xa0ce6c,..._0x53ce11}=_0x1c8f78,_0x1fdfd1=(_0x3e59f8(0x459)+_0x141b74+'\x20'+(_0x192602||''))[_0x3e59f8(0x41d)](),_0x31656e=A[_0x3e59f8(0x22f)]('_'+Qe());return $e(_0x1a8917,''+_0x141b74,{'defIds':_0x1a8917[_0x3e59f8(0x452)],'idSuffix':_0x31656e['current']},{'ref':_0x58c778,'className':_0x1fdfd1,..._0x53ce11},_0xa0ce6c);}function $e(_0x221610,_0x483ef2,_0x52e72a,_0x253ac4,_0x3d9a2b){const _0x456ad3=_0x164b20;return A[_0x456ad3(0x251)](_0x221610['tag'],{'key':_0x483ef2,...Je(_0x221610,_0x52e72a,_0x3d9a2b),..._0x253ac4},(Ze(_0x221610,_0x52e72a)[_0x456ad3(0x42d)]||[])[_0x456ad3(0x470)]((_0x25c11d,_0x532117)=>$e(_0x25c11d,_0x483ef2+'-'+_0x221610[_0x456ad3(0x321)]+'-'+_0x532117,_0x52e72a,void 0x0,_0x3d9a2b)));}function Je(_0x592424,_0xa81c50,_0x2464bf){const _0x45d658=_0x164b20,_0x543be3={..._0x592424[_0x45d658(0x294)]};_0x2464bf!=null&&_0x2464bf[_0x45d658(0x48e)]&&_0x543be3[_0x45d658(0x2a6)]==='colorChannel1'&&(_0x543be3[_0x45d658(0x2a6)]=_0x2464bf[_0x45d658(0x48e)]),_0x592424[_0x45d658(0x321)]===_0x45d658(0x338)&&_0x543be3['id']&&(_0x543be3['id']=_0x543be3['id']+_0xa81c50[_0x45d658(0x26f)]),Object[_0x45d658(0x3d3)](_0x543be3)[_0x45d658(0x24e)](([_0x3e9743,_0x1fbfd5])=>{const _0x4db68e=_0x45d658;_0x3e9743===_0x4db68e(0x338)&&typeof _0x1fbfd5=='string'&&(_0x543be3[_0x3e9743]=_0x1fbfd5['replace'](/url\(#(.*)\)/,_0x4db68e(0x439)+_0xa81c50[_0x4db68e(0x26f)]+')'));});const {defIds:_0x1ee4e7}=_0xa81c50;return!_0x1ee4e7||_0x1ee4e7[_0x45d658(0x384)]===0x0||(_0x592424[_0x45d658(0x321)]===_0x45d658(0x47c)&&_0x543be3['xlink:href']&&(_0x543be3[_0x45d658(0x213)]=_0x543be3[_0x45d658(0x213)]+_0xa81c50['idSuffix']),Object['entries'](_0x543be3)[_0x45d658(0x24e)](([_0x3833ad,_0x5199e0])=>{const _0x120b93=_0x45d658;typeof _0x5199e0==_0x120b93(0x333)&&(_0x543be3[_0x3833ad]=_0x5199e0[_0x120b93(0x238)](/url\(#(.*)\)/,_0x120b93(0x439)+_0xa81c50['idSuffix']+')'));})),_0x543be3;}function Ze(_0x1941af,_0x2c4435){const _0x471dec=_0x164b20;var _0xdefafc;const {defIds:_0x4b43d9}=_0x2c4435;return!_0x4b43d9||_0x4b43d9[_0x471dec(0x384)]===0x0?_0x1941af:_0x1941af[_0x471dec(0x321)]===_0x471dec(0x1eb)&&((_0xdefafc=_0x1941af['children'])!=null&&_0xdefafc[_0x471dec(0x384)])?{..._0x1941af,'children':_0x1941af[_0x471dec(0x42d)][_0x471dec(0x470)](_0x454a2f=>typeof _0x454a2f[_0x471dec(0x294)]['id']=='string'&&_0x4b43d9&&_0x4b43d9['includes'](_0x454a2f[_0x471dec(0x294)]['id'])?{..._0x454a2f,'attrs':{..._0x454a2f[_0x471dec(0x294)],'id':_0x454a2f[_0x471dec(0x294)]['id']+_0x2c4435[_0x471dec(0x26f)]}}:_0x454a2f)}:_0x1941af;}function Qe(){const _0x52d7bf=_0x164b20;return Math[_0x52d7bf(0x29e)]()[_0x52d7bf(0x241)](0x24)[_0x52d7bf(0x28b)](0x2,0x8);}pe['displayName']=_0x164b20(0x205);const et={'tag':_0x164b20(0x32b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x164b20(0x363),'viewBox':_0x164b20(0x330),'width':_0x164b20(0x2a5),'height':_0x164b20(0x2a5)},'children':[{'tag':'g','attrs':{'clipPath':_0x164b20(0x24d)},'children':[{'tag':_0x164b20(0x393),'attrs':{'stroke':_0x164b20(0x34b),'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':'round','strokeLinejoin':_0x164b20(0x207),'strokeWidth':1.2}}]},{'tag':_0x164b20(0x1eb),'attrs':{},'children':[{'tag':_0x164b20(0x2b9),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x164b20(0x393),'attrs':{'fill':'white','d':_0x164b20(0x39b)}}]}]}],'defIds':[_0x164b20(0x28c)]},xe=A[_0x164b20(0x1dd)](function(_0x60a6a,_0x3353b9){const _0x368fd2=_0x164b20;return A['createElement'](pe,Object[_0x368fd2(0x394)]({},_0x60a6a,{'id':_0x368fd2(0x329),'ref':_0x3353b9,'icon':et}));});xe[_0x164b20(0x418)]='OffLineIcon';const tt={'tag':_0x164b20(0x32b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x164b20(0x363),'viewBox':_0x164b20(0x3da),'width':_0x164b20(0x2a5),'height':_0x164b20(0x2a5)},'children':[{'tag':'g','attrs':{'clipPath':_0x164b20(0x3a8)},'children':[{'tag':_0x164b20(0x393),'attrs':{'stroke':_0x164b20(0x34b),'d':_0x164b20(0x242),'strokeLinecap':_0x164b20(0x207),'strokeLinejoin':_0x164b20(0x207),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x164b20(0x3e4)},'children':[{'tag':'path','attrs':{'fill':_0x164b20(0x2c1),'d':'M0\x200H16V16H0z','transform':_0x164b20(0x481)}}]}]}],'defIds':[_0x164b20(0x3e4)]},Be=A[_0x164b20(0x1dd)](function(_0x5d3c51,_0x51a5e6){const _0x34292d=_0x164b20;return A[_0x34292d(0x251)](pe,Object['assign']({},_0x5d3c51,{'id':'on-line-icon','ref':_0x51a5e6,'icon':tt}));});Be[_0x164b20(0x418)]=_0x164b20(0x2e3);function st(_0x407a82){const _0x242b8b=_0x164b20;switch(_0x407a82){case u['CollaborationStatus']['OFFLINE']:return'collabStatus.offline';case u['CollaborationStatus'][_0x242b8b(0x3f1)]:return _0x242b8b(0x37b);case u[_0x242b8b(0x499)][_0x242b8b(0x43c)]:return _0x242b8b(0x404);case u['CollaborationStatus'][_0x242b8b(0x21e)]:return _0x242b8b(0x225);case u[_0x242b8b(0x499)][_0x242b8b(0x2d7)]:case u[_0x242b8b(0x499)][_0x242b8b(0x30c)]:return _0x242b8b(0x35b);case u[_0x242b8b(0x499)]['SYNCED']:case u[_0x242b8b(0x499)][_0x242b8b(0x2bc)]:return _0x242b8b(0x32a);}}function it(_0x212953){const _0x29b75c=_0x164b20,{status$:_0x50d8aa}=_0x212953,_0x5a7c61=O[_0x29b75c(0x228)](_0x50d8aa,u['CollaborationStatus'][_0x29b75c(0x21e)]),_0x2111e2=O[_0x29b75c(0x3b7)](a['LocaleService']),_0x584ebb=O['useDependency'](u[_0x29b75c(0x449)]),_0x42afbf=_0x5a7c61!==u[_0x29b75c(0x499)][_0x29b75c(0x271)],_0x28035a=_0x2111e2['t'](st(_0x5a7c61)),_0x2473d0=_0x42afbf?M[_0x29b75c(0x46a)](Be,{}):M['jsx'](xe,{}),_0x5dce82=A[_0x29b75c(0x3f5)](()=>{const _0x5cd209=_0x29b75c;_0x42afbf||_0x584ebb[_0x5cd209(0x42c)]();},[_0x42afbf,_0x584ebb]);function _0x4c6f8d(){const _0x1eefae=_0x29b75c;return M['jsxs']('div',{'className':_0x1eefae(0x424),'onClick':_0x5dce82,'children':[M[_0x1eefae(0x46a)](_0x1eefae(0x20f),{'className':p[_0x1eefae(0x3a3)](_0x1eefae(0x248),{'univer-text-green-500':_0x42afbf,'univer-text-red-500':!_0x42afbf}),'children':_0x2473d0}),M['jsx'](_0x1eefae(0x20f),{'className':_0x1eefae(0x2dc),'children':_0x28035a})]});}return _0x42afbf?_0x4c6f8d():M[_0x29b75c(0x46a)](p[_0x29b75c(0x3ba)],{'title':_0x2111e2['t'](_0x29b75c(0x2e0)),'children':_0x4c6f8d()});}var nt=Object[_0x164b20(0x413)],rt=(_0x429af6,_0x3a7153,_0x47d98b,_0x475921)=>{const _0x4c7812=_0x164b20;for(var _0x4fa86b=_0x475921>0x1?void 0x0:_0x475921?nt(_0x3a7153,_0x47d98b):_0x3a7153,_0x20d84b=_0x429af6[_0x4c7812(0x384)]-0x1,_0x27eec5;_0x20d84b>=0x0;_0x20d84b--)(_0x27eec5=_0x429af6[_0x20d84b])&&(_0x4fa86b=_0x27eec5(_0x4fa86b)||_0x4fa86b);return _0x4fa86b;},K=(_0x351159,_0x56e4e0)=>(_0x45c0a7,_0x385c3e)=>_0x56e4e0(_0x45c0a7,_0x385c3e,_0x351159);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x164b20(0x1f0)]{constructor(_0x2f34e2,_0x33a1c3,_0x1d62e1,_0xa6da7d){const _0x277da4=_0x164b20;super(),_(this,_0x277da4(0x2f2),new I[(_0x277da4(0x268))](u['CollaborationStatus'][_0x277da4(0x21e)])),(this[_0x277da4(0x37d)]=_0x2f34e2,this[_0x277da4(0x332)]=_0x33a1c3,this['_collaborationController']=_0x1d62e1,this[_0x277da4(0x2cf)]=_0xa6da7d,this['_initStatusComponent'](),this[_0x277da4(0x239)]());}[_0x164b20(0x239)](){const _0xeadb26=_0x164b20;this[_0xeadb26(0x2c8)](this[_0xeadb26(0x37d)][_0xeadb26(0x25c)][_0xeadb26(0x2b3)](I['switchMap'](()=>{const _0x4e9ca0=_0xeadb26,_0x45e23e=this[_0x4e9ca0(0x37d)]['getFocusedUnit']();return _0x45e23e?this['_collaborationController'][_0x4e9ca0(0x400)](_0x45e23e['getUnitId']()):I['of'](null);}),I[_0xeadb26(0x375)](_0x1212d1=>_0x1212d1?_0x1212d1[_0xeadb26(0x23b)]:I['of'](u[_0xeadb26(0x499)]['NOT_COLLAB'])))[_0xeadb26(0x2df)](_0x5ec882=>{const _0x5573b1=_0xeadb26;this[_0x5573b1(0x2f2)]['next'](_0x5ec882);}));}['_initStatusComponent'](){const _0x320da2=_0x164b20;this[_0x320da2(0x2c8)](this[_0x320da2(0x2cf)][_0x320da2(0x365)](O[_0x320da2(0x3b6)][_0x320da2(0x445)],()=>O[_0x320da2(0x291)](ot({'status$':this[_0x320da2(0x2f2)][_0x320da2(0x2e2)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=rt([K(0x0,a[_0x164b20(0x24b)]),K(0x1,a[_0x164b20(0x3bb)](a['Injector'])),K(0x2,a[_0x164b20(0x3bb)](u[_0x164b20(0x401)])),K(0x3,O['IUIPartsService'])],exports[_0x164b20(0x409)]);function ot(_0x45ccf4){const {status$:_0x2dffcf}=_0x45ccf4;return function(){const _0x1523d7=_0x2fa9;return M[_0x1523d7(0x46a)](it,{'status$':_0x2dffcf});};}const Oe=a[_0x164b20(0x219)](_0x164b20(0x437));var at=Object[_0x164b20(0x413)],ct=(_0x565f19,_0x182c5b,_0x66b731,_0x28e841)=>{const _0x1f6c8c=_0x164b20;for(var _0x22d48c=_0x28e841>0x1?void 0x0:_0x28e841?at(_0x182c5b,_0x66b731):_0x182c5b,_0xc6fd87=_0x565f19[_0x1f6c8c(0x384)]-0x1,_0x562606;_0xc6fd87>=0x0;_0xc6fd87--)(_0x562606=_0x565f19[_0xc6fd87])&&(_0x22d48c=_0x562606(_0x22d48c)||_0x22d48c);return _0x22d48c;},Y=(_0x2715b2,_0x4c352d)=>(_0x4b0067,_0x214c24)=>_0x4c352d(_0x4b0067,_0x214c24,_0x2715b2);exports[_0x164b20(0x429)]=class extends a['RxDisposable']{constructor(_0x587b4e,_0xd797ab,_0x4d4ed9,_0x24df06,_0x3c4dc4){const _0x45bc66=_0x164b20;super(),this[_0x45bc66(0x235)]=_0x587b4e,this['_logService']=_0xd797ab,this['_commandService']=_0x4d4ed9,this['_dataLoaderService']=_0x24df06,_0x3c4dc4?_0x3c4dc4==null||_0x3c4dc4[_0x45bc66(0x300)]()[_0x45bc66(0x473)](()=>this[_0x45bc66(0x414)]()):(this[_0x45bc66(0x1ff)]['debug']('[CollaborationDataLoaderController]',_0x45bc66(0x3a6)),this['_init']());}async[_0x164b20(0x414)](){const _0x810ccc=_0x164b20,_0x305015=this['_urlService'][_0x810ccc(0x220)](_0x810ccc(0x27e)),_0x51b1ef=this[_0x810ccc(0x235)][_0x810ccc(0x220)](_0x810ccc(0x45a)),_0x6dd0ac=this[_0x810ccc(0x235)][_0x810ccc(0x220)](_0x810ccc(0x466));if(!_0x305015||!_0x51b1ef){this['_logService']['debug'](_0x810ccc(0x493),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x238101=await this[_0x810ccc(0x468)][_0x810ccc(0x395)](_0x305015,Number(_0x51b1ef),_0x6dd0ac);_0x238101&&_0x238101 instanceof a[_0x810ccc(0x210)]&&this[_0x810ccc(0x200)](_0x238101);}async[_0x164b20(0x200)](_0x39473c){const _0x352502=_0x164b20;await this[_0x352502(0x366)](_0x39473c),_0x39473c[_0x352502(0x2c4)][_0x352502(0x2b3)](I[_0x352502(0x327)](this[_0x352502(0x2a4)]))[_0x352502(0x2df)](_0x16e88f=>{const _0x4766e1=_0x352502;_0x16e88f&&this[_0x4766e1(0x312)](_0x16e88f);}),this[_0x352502(0x235)][_0x352502(0x209)][_0x352502(0x2b3)](I[_0x352502(0x327)](this[_0x352502(0x2a4)]))['subscribe'](()=>this[_0x352502(0x366)](_0x39473c));}[_0x164b20(0x312)](_0x3795fb,_0x1777d0=!0x1){const _0x88482d=_0x164b20,_0x1b7ade=this['_urlService'][_0x88482d(0x220)](_0x88482d(0x466));_0x3795fb[_0x88482d(0x3a2)]()!==_0x1b7ade&&this[_0x88482d(0x235)][_0x88482d(0x22c)](_0x88482d(0x466),_0x3795fb['getSheetId'](),_0x1777d0);}async[_0x164b20(0x366)](_0xf8893d){const _0x5a3b04=_0x164b20;var _0x391512;const _0x105802=this[_0x5a3b04(0x235)][_0x5a3b04(0x220)]('subunit');if(!_0x105802||!_0xf8893d[_0x5a3b04(0x247)](_0x105802)){const _0x49c365=_0xf8893d[_0x5a3b04(0x1fd)]()[0x0],_0x49193a=_0xf8893d[_0x5a3b04(0x247)](_0x49c365);if(!_0x49193a)return;this['_updateURLWithCurrentState'](_0x49193a,!0x0),await this[_0x5a3b04(0x355)][_0x5a3b04(0x485)](v[_0x5a3b04(0x318)]['id'],{'unitId':_0xf8893d[_0x5a3b04(0x438)](),'subUnitId':_0x49c365});return;}((_0x391512=_0xf8893d[_0x5a3b04(0x480)]())==null?void 0x0:_0x391512[_0x5a3b04(0x3a2)]())!==_0x105802&&await this[_0x5a3b04(0x355)][_0x5a3b04(0x485)](v[_0x5a3b04(0x318)]['id'],{'unitId':_0xf8893d[_0x5a3b04(0x438)](),'subUnitId':_0x105802});}},exports[_0x164b20(0x429)]=ct([Y(0x0,Oe),Y(0x1,a[_0x164b20(0x484)]),Y(0x2,a[_0x164b20(0x31c)]),Y(0x3,a['Inject'](u[_0x164b20(0x3de)])),Y(0x4,a[_0x164b20(0x270)](qe[_0x164b20(0x3b2)]))],exports[_0x164b20(0x429)]);var lt=Object[_0x164b20(0x413)],_t=(_0x5f3fed,_0x4a2092,_0x55df76,_0x366ba9)=>{const _0x59dd34=_0x164b20;for(var _0x418a35=_0x366ba9>0x1?void 0x0:_0x366ba9?lt(_0x4a2092,_0x55df76):_0x4a2092,_0x2bed52=_0x5f3fed[_0x59dd34(0x384)]-0x1,_0x1e673e;_0x2bed52>=0x0;_0x2bed52--)(_0x1e673e=_0x5f3fed[_0x2bed52])&&(_0x418a35=_0x1e673e(_0x418a35)||_0x418a35);return _0x418a35;},De=(_0x157208,_0xc1d584)=>(_0x1e5d90,_0x1681c1)=>_0xc1d584(_0x1e5d90,_0x1681c1,_0x157208);let me=class extends a[_0x164b20(0x314)]{constructor(_0x4e5da9,_0x2aeb6c){const _0x1090e6=_0x164b20;super(),this['_docClipboardService']=_0x4e5da9,this['_imageIoService']=_0x2aeb6c,this[_0x1090e6(0x414)]();}[_0x164b20(0x414)](){const _0x3c4afb=_0x164b20,_0x5d70e0=this;this[_0x3c4afb(0x2c8)](this[_0x3c4afb(0x1fa)][_0x3c4afb(0x21f)]({'onBeforePasteImage':async _0x3d7784=>{const _0x3f089e=_0x3c4afb,_0x3dd2f5=await _0x5d70e0['_imageIoService']['saveImage'](_0x3d7784);return _0x3dd2f5?{'source':_0x3dd2f5[_0x3f089e(0x279)],'imageSourceType':_0x3dd2f5[_0x3f089e(0x322)]}:null;}}));}};me=_t([De(0x0,T[_0x164b20(0x1d5)]),De(0x1,ze[_0x164b20(0x307)])],me);const Ne=['purple.300','jiqing.500',_0x164b20(0x259),'red.300',_0x164b20(0x34e),_0x164b20(0x317)];class Re extends a['Disposable']{constructor(){const _0x44aa8c=_0x164b20;super(...arguments),_(this,_0x44aa8c(0x3e8),new Map()),_(this,_0x44aa8c(0x3fd),0x0);}[_0x164b20(0x446)](_0xc4a555){const _0x1436d2=_0x164b20;if(this[_0x1436d2(0x3e8)][_0x1436d2(0x2fc)](_0xc4a555))return this['_assignedColors'][_0x1436d2(0x410)](_0xc4a555);const _0x2260aa=Ne[this[_0x1436d2(0x3fd)]];return this[_0x1436d2(0x3fd)]=(this[_0x1436d2(0x3fd)]+0x1)%Ne[_0x1436d2(0x384)],this[_0x1436d2(0x3e8)][_0x1436d2(0x264)](_0xc4a555,_0x2260aa),_0x2260aa;}}function Fe(_0x2fe933){const _0x5d0eb0=_0x164b20;let _0x4ec0e7='';for(const _0x2a418d of _0x2fe933){const {startOffset:_0x2a7f98,endOffset:_0xb21747,isActive:_0x127662,rangeType:_0x58e3e5,segmentId:_0x1d07c0,segmentPage:_0x301d62}=_0x2a418d;_0x4ec0e7[_0x5d0eb0(0x384)]&&(_0x4ec0e7+=','),_0x4ec0e7+=_0x2a7f98+':'+_0xb21747+':'+(_0x127662?'1':'0')+':'+_0x58e3e5+':'+_0x1d07c0+':'+_0x301d62;}return _0x4ec0e7;}function ht(_0x3fe685){const _0x241fc8=_0x164b20,_0x1425b5=_0x3fe685[_0x241fc8(0x3f0)](','),_0x174645=[];for(const _0x55e995 of _0x1425b5){const [_0x5dbe53,_0x44635e,_0x4eda93,_0x102036,_0x1124d4,_0x550d21]=_0x55e995[_0x241fc8(0x3f0)](':');_0x174645[_0x241fc8(0x2b6)]({'startOffset':Number(_0x5dbe53),'endOffset':Number(_0x44635e),'collapsed':_0x5dbe53===_0x44635e,'isActive':_0x4eda93==='1','rangeType':_0x102036===a[_0x241fc8(0x462)][_0x241fc8(0x297)]?a['DOC_RANGE_TYPE'][_0x241fc8(0x297)]:a[_0x241fc8(0x462)][_0x241fc8(0x465)],'segmentId':typeof _0x1124d4==_0x241fc8(0x333)?String(_0x1124d4):'','segmentPage':Number(_0x550d21!=null?_0x550d21:-0x1)});}return _0x174645[_0x241fc8(0x1e2)](_0x208195=>_0x208195[_0x241fc8(0x371)])||(_0x174645[0x0][_0x241fc8(0x371)]=!0x0),_0x174645;}class be extends a[_0x164b20(0x314)]{constructor(){const _0x390a51=_0x164b20;super(...arguments),_(this,'_collabCursorState$',new I[(_0x390a51(0x268))](null)),_(this,'collabCursorState$',this[_0x390a51(0x386)][_0x390a51(0x2e2)]());}[_0x164b20(0x392)](_0x255694){const _0x4c0b24=_0x164b20,{unitID:_0x28928c,memberID:_0x29672c,textRanges:_0x2e1e8c}=_0x255694,_0x3cd043=Fe(_0x2e1e8c);if(_0x3cd043==='')return;const _0x1a801f={'unitID':_0x28928c,'memberID':_0x29672c,'selection':_0x3cd043};this[_0x4c0b24(0x386)][_0x4c0b24(0x276)](_0x1a801f);}}var ut=Object['getOwnPropertyDescriptor'],It=(_0x34b61b,_0x5b3c94,_0x457cbf,_0x56109f)=>{for(var _0x3555c6=_0x56109f>0x1?void 0x0:_0x56109f?ut(_0x5b3c94,_0x457cbf):_0x5b3c94,_0x50ab19=_0x34b61b['length']-0x1,_0x1517d7;_0x50ab19>=0x0;_0x50ab19--)(_0x1517d7=_0x34b61b[_0x50ab19])&&(_0x3555c6=_0x1517d7(_0x3555c6)||_0x3555c6);return _0x3555c6;},U=(_0x23abcc,_0x2c2bd1)=>(_0x21cfe7,_0x1b8710)=>_0x2c2bd1(_0x21cfe7,_0x1b8710,_0x23abcc);const St=0x12c,dt=0x64;let ve=class extends a[_0x164b20(0x314)]{constructor(_0x52560d,_0x57783e,_0x472a74,_0x5f18c3,_0x1538ce,_0x26e058,_0x595403,_0x35a7dd,_0x4a5f63){const _0x5273a8=_0x164b20;super(),_(this,_0x5273a8(0x35f),!0x1),_(this,_0x5273a8(0x414),!0x1),_(this,_0x5273a8(0x497),new I['BehaviorSubject'](new Map())),_(this,_0x5273a8(0x421),this[_0x5273a8(0x497)][_0x5273a8(0x2e2)]()),_(this,'_roomMembers$',new I[(_0x5273a8(0x268))]([])),_(this,_0x5273a8(0x3ca),this['_roomMembers$'][_0x5273a8(0x2b3)](I['debounceTime'](St))),_(this,_0x5273a8(0x2b0),a[_0x5273a8(0x269)](_0x2e70d2=>{const _0x54c17b=_0x5273a8,_0x9f3445={'eventID':g[_0x54c17b(0x2be)][_0x54c17b(0x3ac)],'data':{'unitID':this[_0x54c17b(0x324)],'memberID':this[_0x54c17b(0x48a)][_0x54c17b(0x3f7)](),'selection':Fe(_0x2e70d2)}};this[_0x54c17b(0x48a)][_0x54c17b(0x45d)](_0x9f3445,this[_0x54c17b(0x324)]);},dt)),(this['unitID']=_0x52560d,this['_session']=_0x57783e,this['_injector']=_0x472a74,this[_0x5273a8(0x21b)]=_0x5f18c3,this[_0x5273a8(0x25a)]=_0x1538ce,this[_0x5273a8(0x216)]=_0x26e058,this['_transformService']=_0x595403,this[_0x5273a8(0x37d)]=_0x35a7dd,this['_commandService']=_0x4a5f63);}get[_0x164b20(0x40f)](){const _0x364815=_0x164b20;return this[_0x364815(0x497)][_0x364815(0x26c)]();}get[_0x164b20(0x23c)](){const _0x416ed4=_0x164b20;return this['_roomMembers$'][_0x416ed4(0x26c)]();}['dispose'](){const _0x42be16=_0x164b20;super[_0x42be16(0x469)](),this[_0x42be16(0x497)][_0x42be16(0x276)](new Map()),this[_0x42be16(0x497)][_0x42be16(0x38f)](),this[_0x42be16(0x3c3)]['next']([]),this[_0x42be16(0x3c3)][_0x42be16(0x38f)]();}[_0x164b20(0x2dd)](){const _0x97577f=_0x164b20;this['_init']||(this[_0x97577f(0x414)]=!0x0,this[_0x97577f(0x48a)][_0x97577f(0x3c0)][_0x97577f(0x2b3)](I[_0x97577f(0x327)](this[_0x97577f(0x2a4)]))[_0x97577f(0x2df)](_0x4c2ada=>{const _0x5933b1=_0x97577f;_0x4c2ada===u[_0x5933b1(0x344)][_0x5933b1(0x40d)]?this['_toggleOnline']():this[_0x5933b1(0x43e)]();}),this[_0x97577f(0x48a)][_0x97577f(0x372)][_0x97577f(0x2b3)](I[_0x97577f(0x327)](this[_0x97577f(0x2a4)]))[_0x97577f(0x2df)](_0x51a13d=>{const _0xaae57=_0x97577f,_0x169fb0=_0x51a13d[_0xaae57(0x39e)];_0x169fb0===g[_0xaae57(0x2be)]['UPDATE_CURSOR']&&this[_0xaae57(0x3dd)](_0x51a13d),_0x169fb0===g[_0xaae57(0x2be)][_0xaae57(0x214)]&&this['_onCursorDelete'](_0x51a13d);}),this[_0x97577f(0x2c8)](this[_0x97577f(0x355)][_0x97577f(0x20d)](_0x493039=>{const _0x5d7236=_0x97577f,_0x4f99a4=_0x493039['params'];_0x4f99a4!=null&&this[_0x5d7236(0x35f)]&&_0x493039['id']===V[_0x5d7236(0x274)]['id']&&_0x4f99a4[_0x5d7236(0x256)]===this['unitID']&&_0x4f99a4[_0x5d7236(0x3d8)]===!0x1&&_0x4f99a4[_0x5d7236(0x1c7)][_0x5d7236(0x384)]>0x0&&this['_updateLocalCursor'](_0x4f99a4[_0x5d7236(0x1c7)]);})),this[_0x97577f(0x216)][_0x97577f(0x1e6)]['pipe'](I[_0x97577f(0x327)](this[_0x97577f(0x2a4)]))[_0x97577f(0x2df)](_0x5655e6=>{const _0x293ca0=_0x97577f;if((_0x5655e6==null?void 0x0:_0x5655e6[_0x293ca0(0x324)])!==this[_0x293ca0(0x324)])return;const _0x18b6ab={'eventID':g[_0x293ca0(0x2be)][_0x293ca0(0x3ac)],'data':_0x5655e6};this['_onCursorUpdate'](_0x18b6ab);}),this[_0x97577f(0x2c8)](this[_0x97577f(0x355)][_0x97577f(0x20d)](_0x59797d=>{const _0x2ecc7f=_0x97577f;if(_0x59797d[_0x2ecc7f(0x2fb)]==null)return;const _0x1be9cc=_0x59797d[_0x2ecc7f(0x2fb)];if(_0x59797d['id']!==V[_0x2ecc7f(0x428)]['id']||_0x1be9cc[_0x2ecc7f(0x256)]!==this[_0x2ecc7f(0x324)])return;const _0xfa40ef={'id':'doc.mutation.rich-text-editing','params':_0x1be9cc},_0xb18427=this[_0x2ecc7f(0x40f)];for(const [_0x55ed14,_0x4b1549]of _0xb18427){const _0x564d5d={'id':_0x2ecc7f(0x1dc),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4b1549[_0x2ecc7f(0x1c7)]}},_0x26f0ec=this[_0x2ecc7f(0x34c)][_0x2ecc7f(0x255)](_0xfa40ef,_0x564d5d,!0x1);if(g['isTransformMutationFailure'](_0x26f0ec))throw _0x26f0ec[_0x2ecc7f(0x1d8)];_0xb18427['set'](_0x55ed14,{..._0x4b1549,'ranges':_0x26f0ec['m2Prime'][_0x2ecc7f(0x2fb)][_0x2ecc7f(0x347)]});}queueMicrotask(()=>{const _0x339f08=_0x2ecc7f;this['_cursorInfo$'][_0x339f08(0x276)](_0xb18427);});})));}[_0x164b20(0x3dd)](_0x13badb){const _0x32d0ff=_0x164b20;var _0x39d384,_0xdd707b;const {memberID:_0x1a835c,selection:_0x469bca}=_0x13badb['data'],_0x3c0ec5=ht(_0x469bca),_0x4b3b77=(_0xdd707b=(_0x39d384=this['_memberService'][_0x32d0ff(0x1e0)](this[_0x32d0ff(0x324)],_0x1a835c))==null?void 0x0:_0x39d384[_0x32d0ff(0x3c7)])!=null?_0xdd707b:_0x32d0ff(0x1f8),_0x23aaf2={'color':this[_0x32d0ff(0x21b)][_0x32d0ff(0x446)](_0x1a835c),'name':_0x4b3b77,'ranges':_0x3c0ec5},_0x5c363d=this['cursorInfo'];_0x5c363d[_0x32d0ff(0x264)](_0x1a835c,_0x23aaf2),this[_0x32d0ff(0x497)][_0x32d0ff(0x276)](_0x5c363d);}[_0x164b20(0x218)](_0x3f717e){const _0xaa4d6=_0x164b20,{memberID:_0x4eb0e3}=_0x3f717e['data'],_0x2a0c95=this[_0xaa4d6(0x40f)];_0x2a0c95[_0xaa4d6(0x44e)](_0x4eb0e3),this[_0xaa4d6(0x497)][_0xaa4d6(0x276)](_0x2a0c95);}[_0x164b20(0x328)](){const _0x6a5c5a=_0x164b20;var _0x19048e;if(this[_0x6a5c5a(0x35f)]=!0x0,((_0x19048e=this[_0x6a5c5a(0x37d)][_0x6a5c5a(0x453)]())==null?void 0x0:_0x19048e[_0x6a5c5a(0x438)]())!==this[_0x6a5c5a(0x324)])return;const _0x4aa5e8=this['_injector'][_0x6a5c5a(0x410)](V[_0x6a5c5a(0x21a)])['getDocRanges']();Array['isArray'](_0x4aa5e8)&&_0x4aa5e8[_0x6a5c5a(0x384)]>0x0&&this['_updateLocalCursor'](_0x4aa5e8);}[_0x164b20(0x43e)](){const _0x35f966=_0x164b20;this[_0x35f966(0x35f)]=!0x1;}};ve=It([U(0x2,a[_0x164b20(0x3bb)](a[_0x164b20(0x31f)])),U(0x3,a[_0x164b20(0x3bb)](Re)),U(0x4,a[_0x164b20(0x3bb)](u[_0x164b20(0x2c6)])),U(0x5,a[_0x164b20(0x3bb)](be)),U(0x6,g['ITransformService']),U(0x7,a['IUniverInstanceService']),U(0x8,a[_0x164b20(0x31c)])],ve);var ft=Object['getOwnPropertyDescriptor'],mt=(_0x2b0ef5,_0x5e9aaf,_0x5d9e25,_0x50085d)=>{for(var _0x4a658c=_0x50085d>0x1?void 0x0:_0x50085d?ft(_0x5e9aaf,_0x5d9e25):_0x5e9aaf,_0x23a547=_0x2b0ef5['length']-0x1,_0x224639;_0x23a547>=0x0;_0x23a547--)(_0x224639=_0x2b0ef5[_0x23a547])&&(_0x4a658c=_0x224639(_0x4a658c)||_0x4a658c);return _0x4a658c;},w=(_0xf83819,_0x2d15a8)=>(_0x44f852,_0x48f6ec)=>_0x2d15a8(_0x44f852,_0x48f6ec,_0xf83819);const vt=0x12c,gt=0x64,Et=()=>{let _0x3d90a3=[],_0x42285c=!0x1;return _0x7d3d2d=>{const _0x581dd5=_0x2fa9;_0x3d90a3[_0x581dd5(0x2b6)](_0x7d3d2d),_0x42285c||(_0x42285c=!0x0,setTimeout(()=>{const _0x2f36aa=_0x581dd5;_0x3d90a3[_0x2f36aa(0x24e)](_0x1d0c1f=>_0x1d0c1f()),_0x3d90a3=[],_0x42285c=!0x1;}));};};let ge=class extends a[_0x164b20(0x314)]{constructor(_0x5e9707,_0x2675e4,_0x28f599,_0x5eac72,_0x549feb,_0x664a51,_0xc0c219,_0x299d96){const _0x664c74=_0x164b20;super(),_(this,_0x664c74(0x35f),!0x1),_(this,_0x664c74(0x414),!0x1),_(this,_0x664c74(0x497),new I[(_0x664c74(0x268))](new Map())),_(this,_0x664c74(0x421),this['_cursorInfo$'][_0x664c74(0x2e2)]()),_(this,'_roomMembers$',new I[(_0x664c74(0x268))]([])),_(this,'roomMembers$',this['_roomMembers$'][_0x664c74(0x2b3)](I['debounceTime'](vt))),_(this,'_updateLocalCursor',a['debounce']((_0x3e4770,_0x1aeaa3)=>{const _0x4eb73c=_0x664c74,_0x3ea700={'eventID':g['CollaborationEvent'][_0x4eb73c(0x3ac)],'data':{'unitID':this[_0x4eb73c(0x324)],'memberID':this[_0x4eb73c(0x48a)][_0x4eb73c(0x3f7)](),'selection':B[_0x4eb73c(0x28f)](_0x3e4770,_0x1aeaa3[_0x4eb73c(0x40a)])}};this['_session'][_0x4eb73c(0x45d)](_0x3ea700,this[_0x4eb73c(0x324)]);},gt)),(this[_0x664c74(0x324)]=_0x5e9707,this[_0x664c74(0x48a)]=_0x2675e4,this[_0x664c74(0x332)]=_0x28f599,this['_colorAssignService']=_0x5eac72,this[_0x664c74(0x25a)]=_0x549feb,this[_0x664c74(0x37d)]=_0x664a51,this['_commandService']=_0xc0c219,this['_refRangeService']=_0x299d96);}get[_0x164b20(0x40f)](){return this['_cursorInfo$']['getValue']();}get[_0x164b20(0x23c)](){const _0x163a11=_0x164b20;return this[_0x163a11(0x3c3)][_0x163a11(0x26c)]();}[_0x164b20(0x469)](){const _0x57e722=_0x164b20;super[_0x57e722(0x469)](),this[_0x57e722(0x497)][_0x57e722(0x276)](new Map()),this[_0x57e722(0x497)][_0x57e722(0x38f)](),this[_0x57e722(0x3c3)][_0x57e722(0x276)]([]),this[_0x57e722(0x3c3)][_0x57e722(0x38f)]();}[_0x164b20(0x2dd)](){const _0x25a2ce=_0x164b20;this[_0x25a2ce(0x414)]||(this[_0x25a2ce(0x414)]=!0x0,this[_0x25a2ce(0x48a)][_0x25a2ce(0x3c0)][_0x25a2ce(0x2b3)](I[_0x25a2ce(0x327)](this['dispose$']))[_0x25a2ce(0x2df)](_0x3f19cd=>{const _0x34e650=_0x25a2ce;_0x3f19cd===u['SessionStatus'][_0x34e650(0x40d)]?this['_toggleOnline']():this[_0x34e650(0x43e)]();}),this[_0x25a2ce(0x48a)][_0x25a2ce(0x372)][_0x25a2ce(0x2b3)](I['takeUntil'](this[_0x25a2ce(0x2a4)]))['subscribe'](_0x1b7a88=>{const _0x5d40d2=_0x25a2ce,_0x5a5747=_0x1b7a88[_0x5d40d2(0x39e)];_0x5a5747===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x5d40d2(0x3dd)](_0x1b7a88),_0x5a5747===g[_0x5d40d2(0x2be)][_0x5d40d2(0x214)]&&this[_0x5d40d2(0x218)](_0x1b7a88);}),this[_0x25a2ce(0x2c3)](),this[_0x25a2ce(0x2c8)](this[_0x25a2ce(0x355)][_0x25a2ce(0x20d)](_0x559178=>{const _0x29b34d=_0x25a2ce;if(this[_0x29b34d(0x35f)]&&_0x559178['id']===v['SetSelectionsOperation']['id']&&_0x559178[_0x29b34d(0x2fb)]['unitId']===this['unitID']){const _0x29f7be=_0x559178[_0x29b34d(0x2fb)];this[_0x29b34d(0x2b0)](_0x29f7be[_0x29b34d(0x293)],_0x29f7be[_0x29b34d(0x451)][0x0]);}})));}[_0x164b20(0x3dd)](_0x4d30a3){const _0x341858=_0x164b20;var _0x518f9c,_0x56cfdb;const {memberID:_0x51e8a4,selection:_0x5e2fd4}=_0x4d30a3[_0x341858(0x226)],{sheetName:_0x2e18f0,range:_0x1d514b}=B[_0x341858(0x3ec)](_0x5e2fd4),_0x9a683f={'name':(_0x56cfdb=(_0x518f9c=this[_0x341858(0x25a)][_0x341858(0x1e0)](this[_0x341858(0x324)],_0x51e8a4))==null?void 0x0:_0x518f9c['name'])!=null?_0x56cfdb:_0x341858(0x1f8),'range':this[_0x341858(0x41f)](_0x2e18f0,_0x1d514b),'sheetID':_0x2e18f0,'color':this[_0x341858(0x21b)][_0x341858(0x446)](_0x51e8a4),'selection':_0x5e2fd4},_0x847a92=this['cursorInfo'];_0x847a92['set'](_0x51e8a4,_0x9a683f),this['_cursorInfo$'][_0x341858(0x276)](_0x847a92);}[_0x164b20(0x218)](_0x1c4100){const _0xcaf41=_0x164b20,{memberID:_0x27a946}=_0x1c4100['data'],_0x240262=this[_0xcaf41(0x40f)];_0x240262['delete'](_0x27a946),this['_cursorInfo$']['next'](_0x240262);}[_0x164b20(0x41f)](_0x50e8d0,_0x5649ad){const _0x5b980b=_0x164b20;var _0x4f2c7e,_0x2faf5a;const _0x13ca28=(_0x2faf5a=(_0x4f2c7e=this[_0x5b980b(0x37d)][_0x5b980b(0x346)](this[_0x5b980b(0x324)]))==null?void 0x0:_0x4f2c7e[_0x5b980b(0x247)](_0x50e8d0))==null?void 0x0:_0x2faf5a[_0x5b980b(0x360)]();return(_0x13ca28==null?void 0x0:_0x13ca28['find'](_0x3aa7b7=>a[_0x5b980b(0x2b7)]['contains'](_0x3aa7b7,_0x5649ad)))||_0x5649ad;}['_onRefRangeChange'](){const _0x56ec40=_0x164b20,_0x5863ea=new a[(_0x56ec40(0x24a))](),_0x277ba3=Et(),_0x33f806=()=>{const _0x158ffe=_0x56ec40;_0x5863ea[_0x158ffe(0x469)]();const _0x55ea76=(_0x4503fe,_0x50cdfd,_0x30cc5c,_0x54efad)=>{const _0x4ae8ba=_0x158ffe;let _0x3fe26a=[];switch(_0x4503fe['id']){case v[_0x4ae8ba(0x454)]['DeleteRangeMoveLeftCommandId']:{_0x3fe26a=v[_0x4ae8ba(0x1ce)](_0x4503fe,_0x54efad);break;}case v[_0x4ae8ba(0x454)][_0x4ae8ba(0x388)]:{_0x3fe26a=v['handleDeleteRangeMoveUp'](_0x4503fe,_0x54efad);break;}case v['EffectRefRangId']['InsertColCommandId']:{_0x3fe26a=v['handleInsertCol'](_0x4503fe,_0x54efad);break;}case v['EffectRefRangId'][_0x4ae8ba(0x277)]:{_0x3fe26a=v['handleInsertRangeMoveDown'](_0x4503fe,_0x54efad);break;}case v[_0x4ae8ba(0x454)][_0x4ae8ba(0x1e4)]:{_0x3fe26a=v['handleInsertRangeMoveRight'](_0x4503fe,_0x54efad);break;}case v[_0x4ae8ba(0x454)][_0x4ae8ba(0x2fa)]:{_0x3fe26a=v[_0x4ae8ba(0x496)](_0x4503fe,_0x54efad);break;}case v[_0x4ae8ba(0x454)][_0x4ae8ba(0x3b1)]:{_0x3fe26a=v['handleMoveRange'](_0x4503fe,_0x54efad);break;}case v[_0x4ae8ba(0x454)][_0x4ae8ba(0x348)]:{_0x3fe26a=v[_0x4ae8ba(0x1f7)](_0x4503fe,_0x54efad);break;}case v[_0x4ae8ba(0x454)][_0x4ae8ba(0x425)]:{_0x3fe26a=v[_0x4ae8ba(0x1d3)](_0x4503fe,_0x54efad);break;}}const _0x4344fe=v[_0x4ae8ba(0x319)](_0x3fe26a,_0x54efad),_0x5ac7b4=this['cursorInfo'][_0x4ae8ba(0x410)](_0x50cdfd);if(_0x5ac7b4&&_0x4344fe){const _0x4a3a14={..._0x5ac7b4,'range':_0x4344fe};this['cursorInfo'][_0x4ae8ba(0x264)](_0x50cdfd,_0x4a3a14),_0x277ba3(()=>{const _0x96f3e3=_0x4ae8ba,_0x36ab48=this[_0x96f3e3(0x2f9)][_0x96f3e3(0x3d7)](_0x4344fe,_0x3424dc=>(_0x36ab48[_0x96f3e3(0x469)](),_0x55ea76(_0x3424dc,_0x50cdfd,_0x30cc5c,_0x4344fe)));_0x5863ea[_0x96f3e3(0x38c)](_0x36ab48);});}return{'redos':[],'undos':[]};};this[_0x158ffe(0x40f)][_0x158ffe(0x24e)]((_0x5ea3ea,_0x4736ef)=>{const _0x8eacac=_0x158ffe,{range:_0x1daab1,sheetID:_0x186682}=_0x5ea3ea,_0x55c753=this[_0x8eacac(0x2f9)][_0x8eacac(0x3d7)](_0x1daab1,_0x3ea9d3=>(_0x55c753[_0x8eacac(0x469)](),_0x55ea76(_0x3ea9d3,_0x4736ef,_0x186682,_0x1daab1)));_0x5863ea[_0x8eacac(0x38c)](_0x55c753);});};this[_0x56ec40(0x2c8)](a['toDisposable'](this[_0x56ec40(0x497)]['subscribe'](()=>{_0x33f806();})));}[_0x164b20(0x328)](){const _0x1367d1=_0x164b20;var _0x50acb9,_0x5f3aec;if(this[_0x1367d1(0x35f)]=!0x0,((_0x50acb9=this[_0x1367d1(0x37d)]['getFocusedUnit']())==null?void 0x0:_0x50acb9[_0x1367d1(0x438)]())!==this[_0x1367d1(0x324)])return;const _0x4433f1=(_0x5f3aec=this[_0x1367d1(0x332)][_0x1367d1(0x410)](v['SheetsSelectionsService'])[_0x1367d1(0x3ff)]())==null?void 0x0:_0x5f3aec[0x0],_0x546f91=this[_0x1367d1(0x37d)]['getCurrentUnitForType'](a[_0x1367d1(0x352)]['UNIVER_SHEET'])[_0x1367d1(0x480)]();_0x4433f1&&_0x546f91&&this[_0x1367d1(0x2b0)](_0x546f91[_0x1367d1(0x3a2)](),_0x4433f1);}['_toggleOffline'](){const _0x12e83d=_0x164b20;this[_0x12e83d(0x35f)]=!0x1;}};ge=mt([w(0x2,a[_0x164b20(0x3bb)](a[_0x164b20(0x31f)])),w(0x3,a[_0x164b20(0x3bb)](Re)),w(0x4,a[_0x164b20(0x3bb)](u[_0x164b20(0x2c6)])),w(0x5,a[_0x164b20(0x24b)]),w(0x6,a[_0x164b20(0x31c)]),w(0x7,a['Inject'](v[_0x164b20(0x390)]))],ge);var Ct=Object[_0x164b20(0x413)],Tt=(_0x48a0d5,_0x957ab,_0x255620,_0x55c295)=>{const _0x5ca17f=_0x164b20;for(var _0x4a1404=_0x55c295>0x1?void 0x0:_0x55c295?Ct(_0x957ab,_0x255620):_0x957ab,_0x5cd727=_0x48a0d5[_0x5ca17f(0x384)]-0x1,_0x221390;_0x5cd727>=0x0;_0x5cd727--)(_0x221390=_0x48a0d5[_0x5cd727])&&(_0x4a1404=_0x221390(_0x4a1404)||_0x4a1404);return _0x4a1404;},ce=(_0x4ef867,_0x1ae16a)=>(_0x53d29c,_0xd9864)=>_0x1ae16a(_0x53d29c,_0xd9864,_0x4ef867);let F=class extends a[_0x164b20(0x314)]{constructor(_0x383e31,_0x18207a,_0x240a72){const _0x1eb8b4=_0x164b20;super(),_(this,_0x1eb8b4(0x3f6),new Map()),_(this,_0x1eb8b4(0x30a),new I[(_0x1eb8b4(0x2e1))]()),(this[_0x1eb8b4(0x37d)]=_0x383e31,this['_injector']=_0x18207a,this[_0x1eb8b4(0x2b1)]=_0x240a72,this[_0x1eb8b4(0x414)]());}[_0x164b20(0x469)](){const _0x4c866c=_0x164b20;super[_0x4c866c(0x469)](),this[_0x4c866c(0x30a)][_0x4c866c(0x38f)](),this[_0x4c866c(0x3f6)][_0x4c866c(0x24e)](_0x5e3c4f=>_0x5e3c4f['dispose']());}[_0x164b20(0x3e6)](_0x4f54f9){const _0x3276d4=_0x164b20;return this[_0x3276d4(0x3f6)][_0x3276d4(0x2fc)](_0x4f54f9)?this['_entities']['get'](_0x4f54f9)[_0x3276d4(0x421)]:this[_0x3276d4(0x30a)]['pipe'](I[_0x3276d4(0x1e1)](_0x4705eb=>_0x4705eb[_0x3276d4(0x324)]===_0x4f54f9),I[_0x3276d4(0x375)](_0x4eb3a4=>_0x4eb3a4[_0x3276d4(0x421)]));}[_0x164b20(0x414)](){const _0x38375e=_0x164b20;this[_0x38375e(0x37d)][_0x38375e(0x227)](a[_0x38375e(0x352)][_0x38375e(0x23d)])[_0x38375e(0x2b3)](I[_0x38375e(0x327)](this[_0x38375e(0x2a4)]))['subscribe'](async _0x59e6e2=>{const _0x389545=_0x38375e,_0x412689=_0x59e6e2['getUnitId'](),_0x53891f=await this['_startSheetCollabCursor'](_0x412689);this[_0x389545(0x30a)][_0x389545(0x276)](_0x53891f),this[_0x389545(0x3f6)][_0x389545(0x264)](_0x412689,_0x53891f);}),this[_0x38375e(0x37d)][_0x38375e(0x227)](a[_0x38375e(0x352)][_0x38375e(0x2ef)])['pipe'](I[_0x38375e(0x327)](this[_0x38375e(0x2a4)]))[_0x38375e(0x2b3)](I[_0x38375e(0x1e1)](_0x295a4a=>!_0x295a4a[_0x38375e(0x438)]()[_0x38375e(0x486)]('__')))[_0x38375e(0x2df)](async _0x3f129b=>{const _0x43953c=_0x38375e,_0x2482a3=_0x3f129b[_0x43953c(0x438)](),_0x2ae8d7=await this[_0x43953c(0x2a2)](_0x2482a3);this[_0x43953c(0x30a)][_0x43953c(0x276)](_0x2ae8d7),this[_0x43953c(0x3f6)][_0x43953c(0x264)](_0x2482a3,_0x2ae8d7);}),I[_0x38375e(0x431)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x38375e(0x352)][_0x38375e(0x2ef)]),this['_univerInstanceService'][_0x38375e(0x44a)](a[_0x38375e(0x352)][_0x38375e(0x23d)]))['pipe'](I[_0x38375e(0x327)](this['dispose$']))[_0x38375e(0x2df)](_0x14907d=>{const _0x1174f3=_0x38375e,_0x3afded=_0x14907d[_0x1174f3(0x438)](),_0x25ab80=this['_entities'][_0x1174f3(0x410)](_0x3afded);_0x25ab80&&(_0x25ab80[_0x1174f3(0x469)](),this[_0x1174f3(0x3f6)]['delete'](_0x3afded));});}async[_0x164b20(0x230)](_0x5cc252){const _0x53e693=_0x164b20,_0x3fd398=await this[_0x53e693(0x2b1)][_0x53e693(0x2cb)](_0x5cc252),_0x9c4dfd=this['_injector'][_0x53e693(0x2e9)](ge,_0x5cc252,_0x3fd398);return _0x9c4dfd[_0x53e693(0x2dd)](),_0x9c4dfd;}async[_0x164b20(0x2a2)](_0x3a9c06){const _0x48d784=_0x164b20,_0x3c8813=await this[_0x48d784(0x2b1)][_0x48d784(0x2cb)](_0x3a9c06),_0x167526=this['_injector']['createInstance'](ve,_0x3a9c06,_0x3c8813);return _0x167526[_0x48d784(0x2dd)](),_0x167526;}};F=Tt([ce(0x0,a[_0x164b20(0x24b)]),ce(0x1,a['Inject'](a[_0x164b20(0x31f)])),ce(0x2,a['Inject'](u['CollaborationSessionService']))],F);const X=0x14,Ue=0xc8,le=0x4,pt=0x5;function Ot(_0x491b3f,_0x21a89d){const _0x967d3c=_0x164b20;let {radius:_0x588b4d,width:_0x47896c,height:_0x2d5f83}=_0x21a89d;_0x588b4d=_0x588b4d!=null?_0x588b4d:0x0,_0x47896c=_0x47896c!=null?_0x47896c:0x1e,_0x2d5f83=_0x2d5f83!=null?_0x2d5f83:0x1e;let _0x4d6c22=0x0,_0x59e114=0x0,_0x3f65ed=0x0;_0x4d6c22=_0x59e114=_0x3f65ed=Math[_0x967d3c(0x31a)](_0x588b4d,_0x47896c/0x2,_0x2d5f83/0x2),_0x491b3f[_0x967d3c(0x22d)](),_0x491b3f[_0x967d3c(0x296)](_0x4d6c22,0x0),_0x491b3f['lineTo'](_0x47896c-_0x59e114,0x0),_0x491b3f[_0x967d3c(0x48f)](_0x47896c-_0x59e114,_0x59e114,_0x59e114,Math['PI']*0x3/0x2,0x0,!0x1),_0x491b3f['lineTo'](_0x47896c,_0x2d5f83-_0x3f65ed),_0x491b3f[_0x967d3c(0x48f)](_0x47896c-_0x3f65ed,_0x2d5f83-_0x3f65ed,_0x3f65ed,0x0,Math['PI']/0x2,!0x1),_0x491b3f[_0x967d3c(0x288)](0x0,_0x2d5f83),_0x491b3f[_0x967d3c(0x288)](0x0,_0x4d6c22),_0x491b3f[_0x967d3c(0x48f)](_0x4d6c22,_0x4d6c22,_0x4d6c22,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x491b3f[_0x967d3c(0x3e9)](),_0x21a89d[_0x967d3c(0x2a6)]&&(_0x491b3f[_0x967d3c(0x361)](),_0x491b3f[_0x967d3c(0x35d)]=_0x21a89d[_0x967d3c(0x2a6)],_0x21a89d['fillRule']===_0x967d3c(0x28e)?_0x491b3f[_0x967d3c(0x2a6)](_0x967d3c(0x28e)):_0x491b3f['fill'](),_0x491b3f[_0x967d3c(0x45c)]());}class re extends C['Shape']{constructor(_0x1fe9ca,_0x15e212){const _0xe45333=_0x164b20;super(_0x1fe9ca,_0x15e212),_(this,_0xe45333(0x487)),_(this,_0xe45333(0x2ba)),(this[_0xe45333(0x487)]=_0x15e212==null?void 0x0:_0x15e212[_0xe45333(0x487)],this['text']=_0x15e212==null?void 0x0:_0x15e212[_0xe45333(0x2ba)]);}static[_0x164b20(0x3f4)](_0x33607d,_0x5e1116){const _0x5e208a=_0x164b20,{text:_0x2c6188,color:_0x1b889d}=_0x5e1116;_0x33607d[_0x5e208a(0x361)](),_0x33607d[_0x5e208a(0x202)]=_0x5e208a(0x3f9);const _0x3c975a=_0x33607d[_0x5e208a(0x301)](_0x2c6188)['width'],_0x4072c0=Math['min'](_0x3c975a+0x2*le,Ue);Ot(_0x33607d,{'height':X,'radius':0x4,'width':_0x4072c0,'fill':_0x1b889d}),_0x33607d[_0x5e208a(0x35d)]=_0x5e208a(0x2ca);const _0x511668=le,_0xd2e3e7=X-pt,_0x4dada5=Ue-0x2*le;if(_0x3c975a>_0x4dada5){let _0x180311='',_0x33914a=0x0;for(const _0x550cd2 of _0x2c6188){const _0x324f99=_0x33607d[_0x5e208a(0x301)](_0x550cd2)[_0x5e208a(0x358)];if(_0x33914a+_0x324f99<=_0x4dada5-_0x33607d[_0x5e208a(0x301)](_0x5e208a(0x1cc))[_0x5e208a(0x358)])_0x180311+=_0x550cd2,_0x33914a+=_0x324f99;else{_0x180311+=_0x5e208a(0x1cc);break;}}_0x33607d['fillText'](_0x180311,_0x511668,_0xd2e3e7);}else _0x33607d[_0x5e208a(0x498)](_0x2c6188,_0x511668,_0xd2e3e7);_0x33607d[_0x5e208a(0x45c)]();}[_0x164b20(0x38d)](_0x28127a){const _0x27ad67=_0x164b20;re[_0x27ad67(0x3f4)](_0x28127a,this);}}const _e=_0x164b20(0x325),Rt='collab-text-range-',bt=_0x164b20(0x204),H=0x6,Dt=1.5,he=0x4,Nt=1.5,Ut=_0x164b20(0x46e);class Le{constructor(_0x1a1e1d,_0x58d999,_0x33127f,_0x55a7f2){const _0x224f51=_0x164b20;_(this,_0x224f51(0x309),[]),_(this,'_anchor',null),_(this,_0x224f51(0x1d4),null),_(this,_0x224f51(0x25e),null),_(this,'_hideTimer',null),_(this,_0x224f51(0x2bd),null),(this[_0x224f51(0x24f)]=_0x1a1e1d,this[_0x224f51(0x387)]=_0x58d999,this['_docSkeleton']=_0x33127f,this[_0x224f51(0x3cf)]=_0x55a7f2,this['_render']());}set[_0x164b20(0x2c5)](_0x39ab6b){const _0xd31631=_0x164b20;_0x39ab6b?(this[_0xd31631(0x25e)]&&this['_anchorDot'][_0xd31631(0x2db)](),this['_textBubble']&&this[_0xd31631(0x1d4)]['show']()):(this['_anchorDot']&&this['_anchorDot'][_0xd31631(0x2d3)](),this['_textBubble']&&this[_0xd31631(0x1d4)][_0xd31631(0x2db)]());}['dispose'](){const _0x14b02b=_0x164b20;for(const _0x3fc90b of this[_0x14b02b(0x309)])_0x3fc90b[_0x14b02b(0x469)]();this['_textBubble']&&this[_0x14b02b(0x1d4)][_0x14b02b(0x469)](),this[_0x14b02b(0x25e)]&&this[_0x14b02b(0x25e)][_0x14b02b(0x469)](),this[_0x14b02b(0x1df)]&&this[_0x14b02b(0x1df)]['dispose'](),this[_0x14b02b(0x2bd)]&&this[_0x14b02b(0x2bd)]();}[_0x164b20(0x36a)](){const _0xf390c7=_0x164b20;var _0x3abba7;const {_docSkeleton:_0x3e7860,_document:_0x14efa0}=this,{color:_0x194af5,name:_0x224b84,ranges:_0x4c8c6d}=this[_0xf390c7(0x24f)],_0x5535d7=_0x14efa0['getOffsetConfig'](),{docsLeft:_0x1a076d,docsTop:_0x217729}=_0x5535d7,_0x5aaebd=new T['NodePositionConvertToCursor'](_0x5535d7,_0x3e7860);for(const {startOffset:_0x57e138,endOffset:_0x27d404,rangeType:_0x3ccd37,segmentId:_0x3c7312,segmentPage:_0x26a2c5,collapsed:_0x160a54,isActive:_0x57dfd6}of _0x4c8c6d){const _0x4e3fdf=_0x3e7860['findNodePositionByCharIndex'](_0x57e138,!0x0,_0x3c7312,_0x26a2c5);let _0x1d8e17=_0x3e7860[_0xf390c7(0x2d8)](_0x27d404,!0x0,_0x3c7312,_0x26a2c5);if(_0x1d8e17==null&&(_0x1d8e17=_0x3e7860['findNodePositionByCharIndex'](_0x27d404-0x1,!0x1,_0x3c7312,_0x26a2c5)),_0x57dfd6){const {contentBoxPointGroup:_0x3c9259}=_0x5aaebd[_0xf390c7(0x33f)](_0x1d8e17,_0x1d8e17);if(_0x3c9259[_0xf390c7(0x384)]===0x0)continue;this['_drawAnchor'](_0x194af5,_0x3c9259,_0x1a076d,_0x217729,_0x224b84),this[_0xf390c7(0x2bd)]=this[_0xf390c7(0x37c)]();}if(_0x4e3fdf&&_0x1d8e17){if(_0x3ccd37===a['DOC_RANGE_TYPE'][_0xf390c7(0x465)]){const _0x26cc80=new T[(_0xf390c7(0x2ec))](_0x5535d7,_0x3e7860),{pointGroup:_0x5a71ee}=(_0x3abba7=_0x26cc80[_0xf390c7(0x33f)](_0x4e3fdf,_0x1d8e17))!=null?_0x3abba7:{};if(_0x5a71ee==null||_0x5a71ee[_0xf390c7(0x384)]===0x0)continue;this[_0xf390c7(0x33e)](_0x194af5,_0x5a71ee,_0x1a076d,_0x217729);}else{if(!_0x160a54){const {borderBoxPointGroup:_0x5bcbe0}=_0x5aaebd[_0xf390c7(0x33f)](_0x4e3fdf,_0x1d8e17);if(_0x5bcbe0[_0xf390c7(0x384)]===0x0)continue;this['_drawTextRange'](_0x194af5,_0x5bcbe0,_0x1a076d,_0x217729);}}}}}[_0x164b20(0x48c)](_0x522709,_0xed1922,_0x1c64a8,_0x55a883,_0x1ddd36){const _0xbc8599=_0x164b20,_0x3a35b7=this[_0xbc8599(0x2de)](_0xed1922),{left:_0xbb1b1b,top:_0xa705e9,height:_0x3ccba7}=_0x3a35b7,_0x5cca90=this[_0xbc8599(0x25b)](),_0x4852fc=Nt/_0x5cca90,_0x4734ea=new C[(_0xbc8599(0x472))](_e+a[_0xbc8599(0x292)](H),{'left':_0xbb1b1b+_0x1c64a8-_0x4852fc,'top':_0xa705e9+_0x55a883,'height':_0x3ccba7,'width':Dt,'fill':_0x522709||C[_0xbc8599(0x385)](a[_0xbc8599(0x380)][_0xbc8599(0x1d0)],0x0),'strokeWidth':_0x4852fc,'stroke':Ut,'evented':!0x0});this[_0xbc8599(0x1df)]=_0x4734ea,this[_0xbc8599(0x387)][_0xbc8599(0x379)](_0x4734ea,T[_0xbc8599(0x217)]);const _0x50d33f=new C[(_0xbc8599(0x472))](_e+a['generateRandomId'](H),{'left':_0xbb1b1b+_0x1c64a8-_0x4852fc,'top':_0xa705e9+_0x55a883-he/0x2,'height':he,'width':he,'fill':_0x522709||C[_0xbc8599(0x385)](a['COLORS'][_0xbc8599(0x1d0)],0x0),'strokeWidth':0x0,'stroke':_0x522709||C[_0xbc8599(0x385)](a[_0xbc8599(0x380)][_0xbc8599(0x1d0)],0x0),'evented':!0x1});this[_0xbc8599(0x25e)]=_0x50d33f,this['_scene'][_0xbc8599(0x379)](_0x50d33f,T[_0xbc8599(0x217)]);const _0x909aa5=new re(_e+a['generateRandomId'](H),{'left':_0xbb1b1b+_0x1c64a8-_0x4852fc,'top':_0xa705e9+_0x55a883-X,'text':_0x1ddd36,'color':_0x522709});this['_textBubble']=_0x909aa5,this['_scene'][_0xbc8599(0x379)](_0x909aa5,T[_0xbc8599(0x217)]),this[_0xbc8599(0x2c5)]=!0x1;}[_0x164b20(0x37c)](){const _0x2cb927=_0x164b20,_0x385a98=this[_0x2cb927(0x1df)][_0x2cb927(0x302)]['subscribeEvent'](()=>{const _0x56a872=_0x2cb927;this[_0x56a872(0x2c5)]=!0x0;}),_0x508c42=this[_0x2cb927(0x1df)][_0x2cb927(0x342)][_0x2cb927(0x364)](()=>{const _0x3a8f5d=_0x2cb927;this[_0x3a8f5d(0x1db)]&&clearTimeout(this[_0x3a8f5d(0x1db)]),this[_0x3a8f5d(0x1db)]=setTimeout(()=>{const _0x172dcd=_0x3a8f5d;this[_0x172dcd(0x2c5)]=!0x1;},0x7d0);});return()=>{const _0x4e2ed8=_0x2cb927;_0x385a98[_0x4e2ed8(0x253)](),_0x508c42[_0x4e2ed8(0x253)]();};}[_0x164b20(0x374)](_0x17bf55,_0x47b856,_0x32d9dc,_0x247f1c){const _0x1838a2=_0x164b20,_0x1f7cde=new a[(_0x1838a2(0x3db))](_0x17bf55)[_0x1838a2(0x1d2)](0.2)[_0x1838a2(0x3b0)](),_0x3c15ad=new C[(_0x1838a2(0x206))](Rt+a[_0x1838a2(0x292)](H),{'pointsGroup':_0x47b856,'fill':_0x1f7cde||C[_0x1838a2(0x385)](a[_0x1838a2(0x380)][_0x1838a2(0x1d0)],0.2),'left':_0x32d9dc,'top':_0x247f1c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1838a2(0x309)][_0x1838a2(0x2b6)](_0x3c15ad),this[_0x1838a2(0x387)]['addObject'](_0x3c15ad,T[_0x1838a2(0x217)]);}[_0x164b20(0x33e)](_0x30bcc8,_0xf62aa7,_0x19deae,_0x235dc8){const _0x497a30=_0x164b20,_0x3c51bd=new a[(_0x497a30(0x3db))](_0x30bcc8)[_0x497a30(0x1d2)](0.2)[_0x497a30(0x3b0)](),_0x1b2425=new C[(_0x497a30(0x206))](bt+a[_0x497a30(0x292)](H),{'pointsGroup':_0xf62aa7,'fill':_0x3c51bd||C[_0x497a30(0x385)](a[_0x497a30(0x380)][_0x497a30(0x1d0)],0.2),'left':_0x19deae,'top':_0x235dc8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x497a30(0x309)][_0x497a30(0x2b6)](_0x1b2425),this[_0x497a30(0x387)][_0x497a30(0x379)](_0x1b2425,T[_0x497a30(0x217)]);}[_0x164b20(0x2de)](_0x121b99){const _0x4c4f48=_0x121b99[0x0],_0x58a215=_0x4c4f48[0x0],_0x17bdb9=_0x4c4f48[0x2],{x:_0x161c80,y:_0x1250c1}=_0x58a215,{x:_0x84a88b,y:_0x2e40c2}=_0x17bdb9;return{'left':_0x161c80,'top':_0x1250c1,'width':_0x84a88b-_0x161c80,'height':_0x2e40c2-_0x1250c1};}[_0x164b20(0x25b)](){const _0x3af8d1=_0x164b20,{scaleX:_0x5a832c,scaleY:_0x2a78cf}=this[_0x3af8d1(0x387)][_0x3af8d1(0x475)]();return Math[_0x3af8d1(0x464)](_0x5a832c,_0x2a78cf);}}var Lt=Object[_0x164b20(0x413)],Mt=(_0x593c2f,_0x5c09cb,_0x59017b,_0x5035b8)=>{const _0x5a99c7=_0x164b20;for(var _0x6d7e60=_0x5035b8>0x1?void 0x0:_0x5035b8?Lt(_0x5c09cb,_0x59017b):_0x5c09cb,_0x384497=_0x593c2f[_0x5a99c7(0x384)]-0x1,_0x1019ec;_0x384497>=0x0;_0x384497--)(_0x1019ec=_0x593c2f[_0x384497])&&(_0x6d7e60=_0x1019ec(_0x6d7e60)||_0x6d7e60);return _0x6d7e60;},q=(_0x348b6f,_0x3fa3bd)=>(_0x43352f,_0x41f454)=>_0x3fa3bd(_0x43352f,_0x41f454,_0x348b6f);let Ee=class extends a[_0x164b20(0x314)]{constructor(_0x3ad270,_0x178dd6,_0x59155f,_0x546052,_0x42bad6){const _0x547c50=_0x164b20;super(),_(this,_0x547c50(0x47a),[]),_(this,_0x547c50(0x2e6),[]),(this[_0x547c50(0x1e5)]=_0x3ad270,this[_0x547c50(0x282)]=_0x178dd6,this[_0x547c50(0x351)]=_0x59155f,this[_0x547c50(0x355)]=_0x546052,this['_themeService']=_0x42bad6,this[_0x547c50(0x414)]());}[_0x164b20(0x414)](){const _0xafcb86=_0x164b20,_0x101f1e=this['_context'][_0xafcb86(0x256)],_0x534f65=this['_docSkeletonManagerService'];this[_0xafcb86(0x2c8)](I['combineLatest']([this['_collabCursorController'][_0xafcb86(0x3e6)](_0x101f1e),this[_0xafcb86(0x1ee)][_0xafcb86(0x3ce)]])[_0xafcb86(0x2b3)]($['map'](([_0x23142a,_0x497a36])=>({'skeleton':_0x534f65[_0xafcb86(0x31b)](),'cursors':[..._0x23142a['values']()]['flatMap'](_0xb566c0=>({..._0xb566c0,'color':this[_0xafcb86(0x1ee)]['getColorFromTheme'](_0xb566c0[_0xafcb86(0x487)])}))})))[_0xafcb86(0x2df)](_0x3e8685=>{const _0x558ce7=_0xafcb86;if(this[_0x558ce7(0x22b)](),_0x3e8685){const {skeleton:_0x14bcf2,cursors:_0x18e84c}=_0x3e8685;this[_0x558ce7(0x490)](_0x14bcf2,_0x18e84c);}})),this[_0xafcb86(0x260)](),this[_0xafcb86(0x3ae)]();}[_0x164b20(0x490)](_0x427109,_0x443911){const _0x3891ca=_0x164b20,{scene:_0x5d2b82,mainComponent:_0x255c18}=this[_0x3891ca(0x1e5)],_0x515cd3=_0x443911[_0x3891ca(0x470)](_0x2a61ce=>new Le(_0x2a61ce,_0x5d2b82,_0x427109,_0x255c18));this[_0x3891ca(0x47a)]=_0x515cd3,this[_0x3891ca(0x2e6)]=_0x443911;}[_0x164b20(0x265)](){const _0xb7d9a8=_0x164b20;this['_removeCollabCursors']();const {scene:_0xe2c4aa,mainComponent:_0x580f31}=this[_0xb7d9a8(0x1e5)],_0x5c4eee=this[_0xb7d9a8(0x282)][_0xb7d9a8(0x31b)](),_0x405c4a=this[_0xb7d9a8(0x2e6)][_0xb7d9a8(0x470)](_0x56c2a7=>new Le(_0x56c2a7,_0xe2c4aa,_0x5c4eee,_0x580f31));this[_0xb7d9a8(0x47a)]=_0x405c4a;}[_0x164b20(0x22b)](){const _0x9f01e0=_0x164b20;this[_0x9f01e0(0x47a)]['forEach'](_0xbcb6f1=>_0xbcb6f1[_0x9f01e0(0x469)]()),this[_0x9f01e0(0x47a)]=[];}[_0x164b20(0x3ae)](){const _0x181c8e=_0x164b20,_0x22ce35=[T['SetDocZoomRatioOperation']['id']];this[_0x181c8e(0x2c8)](this[_0x181c8e(0x355)]['onCommandExecuted'](_0xd504d3=>{const _0x30031a=_0x181c8e;_0x22ce35[_0x30031a(0x343)](_0xd504d3['id'])&&_0xd504d3['params'][_0x30031a(0x256)]===this[_0x30031a(0x1e5)][_0x30031a(0x256)]&&this['_refreshCollabCursors']();}));}[_0x164b20(0x260)](){const _0x261122=_0x164b20;this['disposeWithMe'](a[_0x261122(0x3af)](this[_0x261122(0x1e5)]['engine']['onTransformChange$'])[_0x261122(0x2b3)]($[_0x261122(0x1e1)](_0x5d7ef4=>_0x5d7ef4[_0x261122(0x45a)]===C['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x261122(0x495)](0x10))[_0x261122(0x2df)](()=>{this['_refreshCollabCursors']();}));}};Ee=Mt([q(0x1,a[_0x164b20(0x3bb)](V[_0x164b20(0x356)])),q(0x2,a[_0x164b20(0x3bb)](F)),q(0x3,a[_0x164b20(0x31c)]),q(0x4,a[_0x164b20(0x3bb)](a[_0x164b20(0x3c8)]))],Ee);const At=0x1,Pt=1.5;class je extends C[_0x164b20(0x3fa)]{constructor(_0x35e682,_0x245e1b){const _0x53edfb=_0x164b20;super(_0x35e682,_0x245e1b),_(this,'_color'),_(this,_0x53edfb(0x2d2),!0x1),_(this,_0x53edfb(0x2f0)),_(this,_0x53edfb(0x23e),''),_(this,_0x53edfb(0x2f4),_0x53edfb(0x37a)),_(this,_0x53edfb(0x1f4)),(_0x245e1b&&this[_0x53edfb(0x2a0)](_0x245e1b),this[_0x53edfb(0x302)][_0x53edfb(0x364)](()=>this[_0x53edfb(0x2a0)]({'hovered':!0x0})),this[_0x53edfb(0x342)]['subscribeEvent'](()=>this[_0x53edfb(0x2a0)]({'hovered':!0x1})));}[_0x164b20(0x2a0)](_0x55067a){const _0x33adcd=_0x164b20;var _0x499b2c,_0x5a9f3b,_0x4fdfde,_0xd19b81,_0x29b254,_0x1ab62a;this[_0x33adcd(0x208)]=(_0x499b2c=_0x55067a[_0x33adcd(0x487)])!=null?_0x499b2c:this['_color'],this['_hovered']=(_0x5a9f3b=_0x55067a[_0x33adcd(0x1d1)])!=null?_0x5a9f3b:this[_0x33adcd(0x2d2)],this[_0x33adcd(0x2f0)]=(_0x4fdfde=_0x55067a[_0x33adcd(0x40a)])!=null?_0x4fdfde:this[_0x33adcd(0x2f0)],this[_0x33adcd(0x23e)]=(_0xd19b81=_0x55067a[_0x33adcd(0x3c7)])!=null?_0xd19b81:this[_0x33adcd(0x23e)],this['_labelPosition']=(_0x29b254=_0x55067a[_0x33adcd(0x1c9)])!=null?_0x29b254:this[_0x33adcd(0x2f4)],this[_0x33adcd(0x1f4)]=(_0x1ab62a=_0x55067a[_0x33adcd(0x46c)])!=null?_0x1ab62a:this[_0x33adcd(0x1f4)],this['transformByState']({'width':_0x55067a[_0x33adcd(0x358)],'height':_0x55067a[_0x33adcd(0x3ea)]});}[_0x164b20(0x27d)](_0x164be3){const _0x443def=_0x164b20,{row:_0x5eefd1,column:_0x348378}=_0x164be3;if(_0x5eefd1>=this[_0x443def(0x2f0)]['startRow']&&_0x5eefd1<=this['_range'][_0x443def(0x21c)]&&_0x348378>=this[_0x443def(0x2f0)][_0x443def(0x39c)]&&_0x348378<=this[_0x443def(0x2f0)]['endColumn']){this[_0x443def(0x2a0)]({'hovered':!0x0});return;}this[_0x443def(0x2a0)]({'hovered':!0x1});}['triggerDblclick'](_0x14c769){return!0x1;}[_0x164b20(0x38d)](_0x4d44d2){const _0x25281a=_0x164b20;C[_0x25281a(0x472)][_0x25281a(0x3f4)](_0x4d44d2,{'width':this[_0x25281a(0x358)],'height':this[_0x25281a(0x3ea)],'strokeWidth':Pt,'stroke':this[_0x25281a(0x208)],'evented':!0x1,'fill':this[_0x25281a(0x1f4)]}),this[_0x25281a(0x2d2)]&&(_0x4d44d2[_0x25281a(0x361)](),_0x4d44d2['transform'](0x1,0x0,0x0,0x1,this[_0x25281a(0x358)],this[_0x25281a(0x2f4)]===_0x25281a(0x3be)?0x0:-X),re[_0x25281a(0x3f4)](_0x4d44d2,{'text':this[_0x25281a(0x23e)],'color':this[_0x25281a(0x208)]}),_0x4d44d2[_0x25281a(0x45c)]());}}var wt=Object[_0x164b20(0x413)],yt=(_0x468248,_0x5ce3af,_0x3fec30,_0x2bbce7)=>{const _0xe1c8c3=_0x164b20;for(var _0x3e5a17=_0x2bbce7>0x1?void 0x0:_0x2bbce7?wt(_0x5ce3af,_0x3fec30):_0x5ce3af,_0x59518a=_0x468248[_0xe1c8c3(0x384)]-0x1,_0x226b5c;_0x59518a>=0x0;_0x59518a--)(_0x226b5c=_0x468248[_0x59518a])&&(_0x3e5a17=_0x226b5c(_0x3e5a17)||_0x3e5a17);return _0x3e5a17;},ue=(_0x2293d1,_0x4c90b7)=>(_0x5f579e,_0xebfda1)=>_0x4c90b7(_0x5f579e,_0xebfda1,_0x2293d1);const $t=0x1389;let Ce=class extends a[_0x164b20(0x314)]{constructor(_0x316b29,_0x3287f4,_0x206384,_0x4d220c){const _0x5ddd06=_0x164b20;super(),_(this,'_cursors',new Set()),_(this,'_lastPointer',null),(this[_0x5ddd06(0x1e5)]=_0x316b29,this[_0x5ddd06(0x479)]=_0x3287f4,this[_0x5ddd06(0x351)]=_0x206384,this['_themeService']=_0x4d220c,this[_0x5ddd06(0x414)]());}[_0x164b20(0x414)](){const _0x58095f=_0x164b20;this[_0x58095f(0x479)][_0x58095f(0x33a)]['pipe']($[_0x58095f(0x327)](this[_0x58095f(0x2a4)]),$[_0x58095f(0x375)](_0x2a1e65=>{const _0x148018=_0x58095f;if(_0x2a1e65){const _0x442ad5=_0x2a1e65['sheetId'];return I[_0x148018(0x2e7)](this[_0x148018(0x351)][_0x148018(0x3e6)](this[_0x148018(0x1e5)][_0x148018(0x256)]),this[_0x148018(0x1ee)][_0x148018(0x3ce)])[_0x148018(0x2b3)]($['map'](([_0x12ae74,_0x46946a])=>{const _0x3d11a9=_0x148018,_0x558d9f=new Map();return _0x12ae74[_0x3d11a9(0x24e)]((_0x1a8c82,_0x34420a)=>{const _0x458e47=_0x3d11a9;if(_0x1a8c82[_0x458e47(0x20a)]===_0x442ad5){const _0x8a4930={..._0x1a8c82};_0x8a4930[_0x458e47(0x487)]=this[_0x458e47(0x1ee)]['getColorFromTheme'](_0x1a8c82['color']),_0x558d9f[_0x458e47(0x264)](_0x34420a,_0x8a4930);}}),{'skeleton':_0x2a1e65,'cursors':_0x558d9f};}));}return I['of']({'skeleton':null,'cursors':new Map()});}))[_0x58095f(0x2df)](({skeleton:_0x5361d0,cursors:_0x592b53})=>{const _0x2cb1c4=_0x58095f;this['_removeCollabCursors'](),_0x5361d0&&this[_0x2cb1c4(0x490)](_0x5361d0,_0x592b53);}),this[_0x58095f(0x479)]['currentSkeleton$'][_0x58095f(0x2df)](_0x447f7f=>{const _0x579f30=_0x58095f;if(_0x447f7f==null)return;const {skeleton:_0x549d53}=_0x447f7f,{scene:_0x2a749d}=this['_context'];_0x2a749d[_0x579f30(0x345)]['subscribeEvent'](a[_0x579f30(0x269)](_0x41292e=>{const _0x408103=_0x579f30;var _0x172088,_0x1b4975;const {offsetX:_0x57d61a,offsetY:_0x530081}=_0x41292e,{x:_0x460392,y:_0x44e7d8}=_0x2a749d[_0x408103(0x362)](C['Vector2'][_0x408103(0x39f)]([_0x57d61a,_0x530081])),{scaleX:_0x4cffe4,scaleY:_0x20b4b3}=_0x2a749d['getAncestorScale'](),_0x4ca463=_0x2a749d['getViewport'](C[_0x408103(0x2a7)][_0x408103(0x42e)]),_0x18f59b=_0x2a749d[_0x408103(0x280)](C[_0x408103(0x47f)][_0x408103(0x39f)]([_0x460392,_0x44e7d8]),_0x4ca463),_0x2380b5=_0x549d53[_0x408103(0x1ef)](_0x57d61a,_0x530081,_0x4cffe4,_0x20b4b3,_0x18f59b);((_0x172088=this['_lastPointer'])==null?void 0x0:_0x172088[_0x408103(0x285)])===_0x2380b5[_0x408103(0x285)]&&((_0x1b4975=this[_0x408103(0x2c7)])==null?void 0x0:_0x1b4975[_0x408103(0x1de)])===_0x2380b5[_0x408103(0x1de)]||this[_0x408103(0x2e6)][_0x408103(0x24e)](_0x4c8150=>{const _0x2a5406=_0x408103;_0x4c8150[_0x2a5406(0x27d)](_0x2380b5);});},0x64));});}[_0x164b20(0x490)](_0x105b30,_0x134d3b){const _0x10de83=_0x164b20;var _0x5cb1ac;const _0x5f21ac=(_0x5cb1ac=this[_0x10de83(0x479)][_0x10de83(0x211)]())==null?void 0x0:_0x5cb1ac['skeleton'];if(!_0x5f21ac)return;const _0x419d73=this[_0x10de83(0x3cd)]();if(!_0x419d73)return;this[_0x10de83(0x2e6)][_0x10de83(0x24e)](_0x3854be=>{const _0x452c87=_0x10de83;_0x3854be[_0x452c87(0x381)]();});const {scene:_0x20f4e9}=_0x419d73,_0x39b8a4=xt(Array['from'](_0x134d3b[_0x10de83(0x2aa)]()))[_0x10de83(0x470)](_0x35b5e2=>{const _0x5b7471=_0x10de83,{color:_0xaf5baf,range:_0x5a59d6,name:_0x411393,selection:_0x3b5940,sheetID:_0x24d92d}=_0x35b5e2,{startColumn:_0x3142d7,startRow:_0x1fd723,endColumn:_0xb423ae,endRow:_0x21623f}=_0x5a59d6,_0x54944e=J[_0x5b7471(0x215)](_0x1fd723,_0x3142d7,_0x20f4e9,_0x5f21ac),_0x2a65f9=J[_0x5b7471(0x215)](_0x21623f,_0xb423ae,_0x20f4e9,_0x5f21ac),{columnHeaderHeightAndMarginTop:_0x18bd5e}=_0x5f21ac,{startX:_0x141dff,startY:_0x498a7e}=_0x54944e,{endX:_0x16364e,endY:_0x2f882d}=_0x2a65f9,_0x3631cf=_0x16364e-_0x141dff,_0x55b704=_0x2f882d-_0x498a7e,_0x78ba7a={'labelPosition':_0x498a7e-_0x18bd5e>=X?'top':_0x5b7471(0x3be),'sheetID':_0x24d92d,'range':_0x5a59d6,'color':_0xaf5baf,'name':_0x411393,'selection':_0x3b5940,'left':_0x141dff,'top':_0x498a7e,'width':_0x3631cf,'height':_0x55b704,'evented':!0x1,'zIndex':$t};return new je(_0x411393,_0x78ba7a);});_0x20f4e9[_0x10de83(0x448)](_0x39b8a4,At),this[_0x10de83(0x2e6)]=new Set(_0x39b8a4);}[_0x164b20(0x22b)](){const _0x36a877=_0x164b20;var _0x3fcc99;(_0x3fcc99=this[_0x36a877(0x2e6)])==null||_0x3fcc99['forEach'](_0x23e4e2=>_0x23e4e2[_0x36a877(0x469)]());}[_0x164b20(0x3cd)](){const _0x3e4aac=_0x164b20;return J[_0x3e4aac(0x391)](this[_0x3e4aac(0x1e5)][_0x3e4aac(0x27e)],this[_0x3e4aac(0x1e5)]);}};Ce=yt([ue(0x1,a[_0x164b20(0x3bb)](J[_0x164b20(0x2e5)])),ue(0x2,a[_0x164b20(0x3bb)](F)),ue(0x3,a['Inject'](a[_0x164b20(0x3c8)]))],Ce);function _0x2fa9(_0x416120,_0x28f1ee){_0x416120=_0x416120-0x1c7;const _0x20543a=_0x2054();let _0x2fa9f6=_0x20543a[_0x416120];return _0x2fa9f6;}function xt(_0x577cbe){const _0x1a681c=_0x164b20,_0x1ede8e=new Map();return _0x577cbe[_0x1a681c(0x24e)](_0x104e2f=>{const _0x136350=_0x1a681c;if(_0x1ede8e['has'](_0x104e2f[_0x136350(0x3f2)])){const _0x21b01c=_0x1ede8e[_0x136350(0x410)](_0x104e2f[_0x136350(0x3f2)]);_0x21b01c[_0x136350(0x3c7)]+=',\x20'+_0x104e2f[_0x136350(0x3c7)];}else _0x1ede8e[_0x136350(0x264)](_0x104e2f['selection'],_0x104e2f);}),Array[_0x1a681c(0x3c4)](_0x1ede8e[_0x1a681c(0x2aa)]());}var Bt=Object[_0x164b20(0x413)],Ft=(_0xf6dba9,_0x429719,_0x265c70,_0x1930c4)=>{const _0x24e9e5=_0x164b20;for(var _0x3e44d3=_0x1930c4>0x1?void 0x0:_0x1930c4?Bt(_0x429719,_0x265c70):_0x429719,_0x21a0f1=_0xf6dba9[_0x24e9e5(0x384)]-0x1,_0x2bee7c;_0x21a0f1>=0x0;_0x21a0f1--)(_0x2bee7c=_0xf6dba9[_0x21a0f1])&&(_0x3e44d3=_0x2bee7c(_0x3e44d3)||_0x3e44d3);return _0x3e44d3;},y=(_0x636cc5,_0x1c1b05)=>(_0x3afb3f,_0x18c692)=>_0x1c1b05(_0x3afb3f,_0x18c692,_0x636cc5);let Z=class extends a[_0x164b20(0x1f0)]{constructor(_0x3e43b5,_0x28c4b9,_0x41dfc4,_0x25b937,_0x328d29,_0x1d5f06){const _0x404719=_0x164b20;super(),this[_0x404719(0x2d0)]=_0x3e43b5,this[_0x404719(0x42b)]=_0x28c4b9,this[_0x404719(0x3df)]=_0x41dfc4,this[_0x404719(0x353)]=_0x25b937,this[_0x404719(0x232)]=_0x328d29,this['_localeService']=_0x1d5f06,this[_0x404719(0x43d)](),this[_0x404719(0x3d4)]();}[_0x164b20(0x43d)](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x520e91=_0x2fa9;if(this[_0x520e91(0x42b)][_0x520e91(0x2d6)][_0x520e91(0x243)])return this[_0x520e91(0x419)]['t'](_0x520e91(0x461));}));}['_initEvent'](){const _0x57a30c=_0x164b20;this[_0x57a30c(0x2c8)](this['_collaborationUIEventService'][_0x57a30c(0x372)][_0x57a30c(0x2df)](_0x21ff71=>{const _0x3c44ac=_0x57a30c;_0x21ff71['id']===u[_0x3c44ac(0x2ae)][_0x3c44ac(0x397)]&&this[_0x3c44ac(0x353)][_0x3c44ac(0x2d3)]({'type':p['MessageType'][_0x3c44ac(0x2b4)],'content':this[_0x3c44ac(0x419)]['t'](_0x3c44ac(0x2ad))}),_0x21ff71['id']===u[_0x3c44ac(0x2ae)][_0x3c44ac(0x3f3)]&&this['_messageService']['show']({'type':p['MessageType'][_0x3c44ac(0x2b4)],'content':this['_localeService']['t'](_0x3c44ac(0x236))}),_0x21ff71['id']===u[_0x3c44ac(0x2ae)][_0x3c44ac(0x48d)]&&this[_0x3c44ac(0x232)][_0x3c44ac(0x2d3)]({'title':this[_0x3c44ac(0x419)]['t'](_0x3c44ac(0x494)),'content':this['_localeService']['t'](_0x3c44ac(0x456)),'type':_0x3c44ac(0x1d8),'duration':0x0}),_0x21ff71['id']===u[_0x3c44ac(0x2ae)]['CONFLICT']&&this[_0x3c44ac(0x353)][_0x3c44ac(0x2d3)]({'type':p[_0x3c44ac(0x275)][_0x3c44ac(0x44d)],'content':this[_0x3c44ac(0x419)]['t'](_0x3c44ac(0x236))+'('+_0x21ff71[_0x3c44ac(0x226)]+')'}),_0x21ff71['id']===u[_0x3c44ac(0x2ae)][_0x3c44ac(0x221)]&&this[_0x3c44ac(0x353)][_0x3c44ac(0x2d3)]({'type':p[_0x3c44ac(0x275)][_0x3c44ac(0x2b4)],'content':this[_0x3c44ac(0x419)]['t'](_0x21ff71[_0x3c44ac(0x226)]||'')}),_0x21ff71['id']===u[_0x3c44ac(0x2ae)][_0x3c44ac(0x278)]&&this['_messageService'][_0x3c44ac(0x2d3)]({'type':p['MessageType']['Warning'],'content':this[_0x3c44ac(0x419)]['t']('session.will-retry')}),_0x21ff71['id']===u[_0x3c44ac(0x2ae)][_0x3c44ac(0x306)]&&this[_0x3c44ac(0x353)][_0x3c44ac(0x2d3)]({'type':p[_0x3c44ac(0x275)][_0x3c44ac(0x44d)],'content':this[_0x3c44ac(0x419)]['t'](_0x3c44ac(0x3e2))}),_0x21ff71['id']===u['CollaborationUIEventId'][_0x3c44ac(0x299)]&&this[_0x3c44ac(0x353)]['show']({'type':p['MessageType'][_0x3c44ac(0x44d)],'content':this[_0x3c44ac(0x419)]['t']('session.collaboration-timeout')});}));}};function _0x2054(){const _0x27f135=['ENTITLE_UPDOWN_GRADE_NOT_SUPPORT','_render','IRenderManagerService','SetFormulaCalculationNotificationMutation','_startCalculationLimit','SUCCESS','_getSessionTicket','INVALID_INVITE_CODE','isActive','event$','APPLY_DUPLICATED','_drawTextRange','switchMap','ENTITLE_USE_COUPON_NOT_1ST_TRADE','location','m2Prime','addObject','top','collabStatus.conflict','_handleHover','_univerInstanceService','_maxFormulaLimit','getCellMatrix','COLORS','makeDirty','IBeforeCloseService','TOO_MANY_REQUESTS','length','getColor','_collabCursorState$','_scene','DeleteRangeMoveUpCommandId','setTimeout','distinctUntilChanged','stack','add','_draw','DependentOn','complete','RefRangeService','getSheetObject','syncEditingCollabCursor','path','assign','loadUnit','_doCreateSocket','OTHER_CLIENT_EDITING','_docStateChangeManagerService','UniverCollaborationClientUIPlugin','_initUnhandledRejectionListener','M0\x200H16V16H0z','startColumn','Module','eventID','FromArray','CanceledError','limitInfo','getSheetId','clsx','WebSocketService','formula.calculation.waiting','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','defineProperty','url(#on-line-icon_clip0_910_349)','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_id','fromEvent','UPDATE_CURSOR','SetFormulaCalculationStartMutation','_initCommandExecutedListener','fromEventSubject','toRgbString','MoveRangeCommandId','IRemoteInstanceService','_scheduleHeartbeat','_getSaveTimeout','removeParam','BuiltInUIPart','useDependency','key','UNRECOGNIZED','Tooltip','Inject','maxFormulaLimit','_httpService','bottom','INVALID_ARGUMENT','sessionStatus$','_docTransformSelectionsService','PY_RUNTIME_SCRIPT_ERROR','_roomMembers$','from','reason','ticket','name','ThemeService','_unitStatus','roomMembers$','ENSURE_SNAPSHOT_EXECUTION','actions','_getSheetObject','currentTheme$','_document','touchDependencies','LOCAL_CACHE_INTERVAL_KEY','REDEMPTION_INVALID_CODE','entries','_initEvent','isTransformMutationFailure','/universer-api/license/formula/limit/start','registerRefRange','isEditing','_handleEvent','0\x200\x2017\x2016','ColorKit','WebURLService','_onCursorUpdate','DataLoaderService','_collaborationUIEventService','YUUMI_NO_CUBOID_FOR_QUESTION','ILocalStorageService','session.connection-failed','_handleLeaveEvent','on-line-icon_clip0_910_349','_pollingInterval','getCollabCursors$','_docTransformStateCacheService','_assignedColors','closePath','height','OTHER_CLIENTS_EDITING','deserializeRangeWithSheet','_instanceService','unhandledrejection','DocStateChangeManagerService','split','CONFLICT','selection','CLOSE_ROOM','drawWith','useCallback','_entities','getMemberID','ENTITLE_REPORT_LIMIT_EXCEED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','Shape','pluginName','deepClone','_colorIndex','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','getCurrentSelections','getCollabEntity$','CollaborationController','formula.calculation.started','YUUMI_CONNECTOR_URL_NOT_FOUND','collabStatus.fetchMiss','USER_NOT_INVITED_CODE','YUUMI_ASYNCIO_CANCELLED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','REDEMPTION_CODE_NOT_STARTED','DesktopCollaborationStatusDisplayController','range','transformSelections','runId','ONLINE','clearInterval','cursorInfo','get','m1Prime','/universer-api/license/formula/limit/status','getOwnPropertyDescriptor','_init','addHandlerCallback','REDEMPTION_CODE_HAS_BEEN_CREATED','href','displayName','_localeService','Success','_config','2929572Webrxy','trim','_send','_getMergeRange','EMAIL_VERIFY_CODE_MISMATCH','cursorInfo$','disableLocalCache','REDEMPTION_USER_REDEEM_TIMES_EXCEED','univer-flex\x20univer-items-center','RemoveRowCommandId','removeEventListener','APPLY_NON_SEQUENTIAL_REVISION','RichTextEditingMutation','CollaborationDataLoaderController','all','_localCacheService','reconnect','children','VIEW_MAIN','join','_lastResponseTimestamp','merge','searchParams','508vZdVhz','ITransformService','_initWindowErrorListener','SNAPSHOT_HAS_BEEN_REMOVED','uni.network.url-service','getUnitId','url(#$1','15603yTbdEK','USER_IS_ANONYMOUS','FETCH_MISS','_setupBeforeClosingHandler','_toggleOffline','NOT_FOUND','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_URL_COL_OUT_OF_RANGE','_revisionService','MOBILE_VERIFY_CODE_MISMATCH','getLocalCacheKey','HEADER_MENU','assignAColorForMemberID','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','addObjects','CollaborationSessionService','getTypeOfUnitDisposed$','_configService','APPLY_PERMISSION_DENIED','Error','delete','editingUnit','ENTITLE_COUPON_USED_UP','selections','defIds','getFocusedUnit','EffectRefRangId','_initUserListener','permission.content','code','_initEntityListener','univerjs-icon\x20univerjs-icon-','type','isFormulaId','restore','send','stageInfo','_setFormulaLimitStatus','_registerRenderDependencies','collaboration.offline-data-not-saved','DOC_RANGE_TYPE','beforeCommandExecuted','max','RECT','subunit','_transformUndoRedoStack','_dataLoaderService','dispose','jsx','LocaleService','backgroundColor','YUUMI_UNABLE_LOAD_URL','rgba(255,\x20255,\x20255,\x200.01)','IConfigService','map','ILocalCacheService','Rect','then','_getFormulaLimitStatus','getAncestorScale','ENTITLE_CAN_NOT_BUY_LOWER_OTP','LICENSE_EXPORT_SIZE_EXCEEDED','_handleHeartbeatEvent','_sheetSkeletonManagerService','_cursorShapes','INVITE_CODE_REQUIRED','use','CONNECTOR_DATA_TOO_LARGE','application/json','Vector2','getActiveSheet','translate(.97)','invokeId','_clearPolling','ILogService','executeCommand','startsWith','color','SheetCollabCursorShape','CURRENT_STATUS_CANNOT_OPERATE','_session','_collaborationSessionService','_drawAnchor','PERMISSION_DENIED','colorChannel1','arc','_updateCollabCursors','START_CALCULATION','saveOfflineData','[CollaborationDataLoaderController]','permission.title','throttleTime','handleInsertRow','_cursorInfo$','fillText','CollaborationStatus','ranges','Tools','labelPosition','getDocRanges','ERROR_AGAIN','...','newValue','handleDeleteRangeMoveLeft','_disabled','black','hovered','setAlpha','handleIRemoveRow','_textBubble','IDocClipboardService','REDEMPTION_CODE_INACTIVE','[Window\x20Error]:\x20','error','UnitStatus','replaceState','_hideTimer','doc.mutation.rich-text-editing','forwardRef','row','_anchor','getMember','filter','some','_transformPreviousActiveRange','InsertRangeMoveRightCommandId','_context','collabCursorState$','currentUsage','_applyCommand','pushState','LICENSE_IMPORT_SIZE_EXCEEDED','defs','?taskId=','_scheduleSaving','_themeService','getCellPositionByOffset','Disposable','ISnapshotServerService','enableFrontendLog','MUTATION','_backgroundColor','transformStateCache','redoState','handleIRemoveCol','Unknown\x20user','_transformHistoryAndStateStack','_docClipboardService','functionsExecutedState','_initCommandInterceptor','getUnhiddenWorksheets','_taskIds','_logService','_setupSubUnitSync','ALREADY_EXISTS','font','transformRemoteChangeset','collab-rect-range-','UniverIcon','RegularPolygon','round','_color','urlChange$','sheetID','_currentUsage','getConfig','onCommandExecuted','DocCollaborationEntity','div','Workbook','getCurrent','toDisposable','xlink:href','USERS_LEAVE','getCoordByCell','_syncEditingCollabCursorService','TEXT_RANGE_LAYER_INDEX','_onCursorDelete','createIdentifier','DocSelectionManagerService','_colorAssignService','endRow','_selfUnitIDs','NOT_COLLAB','addClipboardHook','getParam','JOIN_ROOM_FAILED','_localStorageService','runOnServer','[Unhandled\x20Rejection]:\x20','collabStatus.notCollab','data','getTypeOfUnitAdded$','useObservable','CommandType','INTERNAL_ERROR','_removeCollabCursors','setParam','beginPath','_docSyncEditingCollabCursorService','useRef','_startSheetCollabCursor','FormulaExecutedStateType','_notificationService','141896MQAQxf','REDEMPTION_USER_NOT_ELIGIBLE','_urlService','collaboration.closeRoom','ENTITLE_COUPON_EXPIRED','replace','_initStatusListener','DEFAULT_WS_SESSION_TICKET_URL','status$','roomMembers','UNIVER_SHEET','_name','now','createSocket','toString','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','size','search','onRendered','4973064JmZgXD','getSheetBySheetId','univer-mr-2\x20univer-flex\x20univer-text-xl','unload','DisposableCollection','IUniverInstanceService','_docTransformIMECacheService','url(#off-line-icon_clip0_910_343)','forEach','_cursor','stage','createElement','LOGIN_FAILED','unsubscribe','_renderManagerService','transformMutation','unitId','3490350HsvDDP','LICENSE_DISTRO_REJECTED','green.600','_memberService','_getScale','focused$','[LogService\x20Error]:\x20','_anchorDot','releaseFormulaLimitUrl','_initResize','RemoteUniscriptService','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_initDependencies','set','_refreshCollabCursors','with','undoState','BehaviorSubject','debounce','transformIMECache','_showGuardMessage','getValue','getUnitStatus$','_collaborationController','idSuffix','Optional','OFFLINE','onStarting','_hasFormulaInDirtyRanges','SetTextSelectionsOperation','MessageType','next','InsertRangeMoveDownCommandId','SOCKET_FAILED_RETRY','source','DATA_SOURCE_TOO_LARGE','body','updateOfflineData','onMouseMove','unit','CollaborationUIEventService','getVpScrollXYInfoByPosToVp','collaboration-client-ui.config','_docSkeletonManagerService','lineno','message','column','_cachedData','getUndoRedoMutationParamsCache','lineTo','_registerDependencies','USER_NOT_FOUND','substring','off-line-icon_clip0_910_343','socket$','evenodd','serializeRangeWithSheet','_releaseCalculationLimit','connectInjector','generateRandomId','subUnitId','attrs','getStateCache','moveTo','TEXT','getRenderById','SUBMIT_CHANGESET_TIMEOUT','_createSocketURL','enableLocalCache','Loading','transformMutationsWithChangeset','random','APPLY_REVISION_CONFILICT','setShapeProps','dirtyRanges','_startDocCollabCursor','_uploadLog','dispose$','1em','fill','SHEET_VIEWPORT_KEY','INVITE_CODE_HAS_BEEN_UES','post','values','getformulaLimitStatusUrl','stringify','collaboration.single-unit.warning','CollaborationUIEventId','WECHAT_HAS_BEEN_BOUND','_updateLocalCursor','_collabSessionService','exhaustSavingTask','pipe','Warning','startRow','push','Rectangle','MOBILE_HAS_BEEN_BOUND','clipPath','text','UNAUTHENTICATED','PENDING','_eventUnsubscribe','CollaborationEvent','15001070dNqhpi','_monkeyPatchLogService','white','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_onRefRangeChange','activeSheet$','_hover','MemberService','_lastPointer','disposeWithMe','9JsSsiT','#FFF','requireSession','UNDEFINED','setActiveRange','executionId','_uiPartsService','_beforeCloseService','parse','_hovered','show','SNAPSHOT_INVALID_SNAPSHOT','onLocalMutation','saveTaskMap','AWAITING','findNodePositionByCharIndex','addEventListener','_unitOnClients','hide','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','init','_getAnchorBounding','subscribe','collab-client.tooltip.reconnect','Subject','asObservable','OnLineIcon','shareReplay','SheetSkeletonManagerService','_cursors','combineLatest','startFormulaLimitUrl','createInstance','_removeClearOtherTimer','LOGIN_TOKEN_PROCESSING_FAILED','NodePositionConvertToRectRange','_ensureSubject','isFormulaString','UNIVER_DOC','_range','popstate','_status$','unshift','_labelPosition','ENTITLE_INVALID_COUPON_CODE','ENTITLE_INSUFFICIENT_QUOTA','clearTimeout','YUUMI_AI_RUN_FAILED','_refRangeService','InsertRowCommandId','params','has','BrowserCollaborationSocketService','setItem','CollaborationSocketService','whenReady','measureText','onPointerEnter$','INVITE_CODE_ALREADY_BOUND','symbol','isTransformMutationsWithChangesetSuccess','SOCKET_FAILED','IImageIoService','history','_shapes','_entityInit$','\x20at\x20','AWAITING_WITH_PENDING','APPLY_REJECT','AUTHORIZE_CODE_ILLEGAL','HTTPService','1406167LszuoY','COMPLETION_FINISHED','_updateURLWithCurrentState','mapTo','RxDisposable','_scheduleClearOtherTimer','registerRenderModule','yellow.400','SetWorksheetActivateCommand','runRefRangeMutations','min','getSkeleton','ICommandService','CHANGESET_REVISION_CONFILICT','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Injector','endColumn','tag','imageSourceType','sessionTicket','unitID','collab-text-anchor-','override','takeUntil','_toggleOnline','off-line-icon','collabStatus.synced','svg','_checkCalculationAvailable','_heartbeatTimer','YUUMI_ALL_TABLES_IS_INVALID','ENTITLE_DUP_SUBSCRIPTION','0\x200\x2016\x2016','8iJqEJh','_injector','string','EMAIL_HAS_BEEN_BOUND','LICENSE_MAX_UNITS_EXCEEDED','getActiveRange','ACTIVE_UNIT_EVENT_CHANNEL','mask','_saveCache','currentSkeleton$','ISocketService','getUnit','_clearOtherTimers','_drawRectRange','getRangePointData','DocIMEInputManagerService','ENTITLE_CHAT_LIMIT_EXCEED','onPointerLeave$','includes','SessionStatus','onPointerMove$','getUniverSheetInstance','textRanges','RemoveColCommandId','memberID','filename','currentColor','_transformService','catch','blue.400','NO_OTHER_CLIENTS_EDITING','isArray','_collabCursorController','UniverInstanceType','_messageService','IMessageService','_commandService','DocSkeletonManagerService','FormulaExecuteStageType','width','mutations','/universer-api/frontend/logs','collabStatus.syncing','REDEMPTION_CODE_FULLY_REDEEMED','fillStyle','_saveTaskMap','_online','getMergeData','save','getRelativeToViewportCoord','none','subscribeEvent','registerComponent','_updateSubUnitFromURLParams','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_memberID'];_0x2054=function(){return _0x27f135;};return _0x2054();}Z=Ft([y(0x0,O[_0x164b20(0x382)]),y(0x1,u[_0x164b20(0x471)]),y(0x2,a[_0x164b20(0x3bb)](u[_0x164b20(0x27f)])),y(0x3,O[_0x164b20(0x354)]),y(0x4,O['INotificationService']),y(0x5,a[_0x164b20(0x3bb)](a[_0x164b20(0x46b)]))],Z);var jt=Object['getOwnPropertyDescriptor'],kt=(_0x3cfe8c,_0x4ef4ba,_0x51d9e2,_0x444044)=>{for(var _0x219fd9=_0x444044>0x1?void 0x0:_0x444044?jt(_0x4ef4ba,_0x51d9e2):_0x4ef4ba,_0x3848c2=_0x3cfe8c['length']-0x1,_0x289cf3;_0x3848c2>=0x0;_0x3848c2--)(_0x289cf3=_0x3cfe8c[_0x3848c2])&&(_0x219fd9=_0x289cf3(_0x219fd9)||_0x219fd9);return _0x219fd9;},z=(_0x4642b5,_0x32f7e1)=>(_0xca47a7,_0x3c39f6)=>_0x32f7e1(_0xca47a7,_0x3c39f6,_0x4642b5);let Q=class extends a[_0x164b20(0x1f0)]{constructor(_0x113671,_0x38feb1,_0x5e9c87,_0x316368){const _0x173fa2=_0x164b20;super(),_(this,_0x173fa2(0x368)),(this[_0x173fa2(0x332)]=_0x113671,this['_httpService']=_0x38feb1,this['_logService']=_0x5e9c87,this[_0x173fa2(0x48b)]=_0x316368,this[_0x173fa2(0x414)]());}['_init'](){const _0xa2ad4d=_0x164b20;this['_initWindowErrorListener'](),this[_0xa2ad4d(0x39a)](),this[_0xa2ad4d(0x2c0)](),this[_0xa2ad4d(0x455)]();}[_0x164b20(0x455)](){const _0x21966e=_0x164b20;this[_0x21966e(0x2c8)](this['_collaborationSessionService'][_0x21966e(0x28d)][_0x21966e(0x2df)](_0x29d472=>{const _0x21d9bc=_0x21966e;this[_0x21d9bc(0x368)]=_0x29d472==null?void 0x0:_0x29d472[_0x21d9bc(0x349)];}));}[_0x164b20(0x435)](){const _0x54c1bb=_0x164b20,_0x4df9dd=_0x9bb01e=>{const _0xd8a550=_0x2fa9;var _0xd5d7a8;this[_0xd8a550(0x2a3)](_0xd8a550(0x1d8),_0xd8a550(0x1d7)+_0x9bb01e[_0xd8a550(0x284)]+_0xd8a550(0x30b)+_0x9bb01e[_0xd8a550(0x34a)]+':'+_0x9bb01e[_0xd8a550(0x283)]+':'+_0x9bb01e['colno']+'\x0a'+(((_0xd5d7a8=_0x9bb01e[_0xd8a550(0x1d8)])==null?void 0x0:_0xd5d7a8[_0xd8a550(0x38b)])||''));};window[_0x54c1bb(0x2d9)](_0x54c1bb(0x1d8),_0x4df9dd),this[_0x54c1bb(0x2c8)](()=>{const _0x46a137=_0x54c1bb;window[_0x46a137(0x426)]('error',_0x4df9dd);});}[_0x164b20(0x39a)](){const _0x529a08=_0x164b20,_0x1495c6=_0x5034d1=>{const _0x50be8a=_0x2fa9;this[_0x50be8a(0x2a3)](_0x50be8a(0x1d8),_0x50be8a(0x224)+_0x5034d1[_0x50be8a(0x3c5)]);};window[_0x529a08(0x2d9)](_0x529a08(0x3ee),_0x1495c6),this[_0x529a08(0x2c8)](()=>{const _0x3d3029=_0x529a08;window[_0x3d3029(0x426)]('unhandledrejection',_0x1495c6);});}[_0x164b20(0x2c0)](){const _0x3f16c5=_0x164b20,_0x12689f=this[_0x3f16c5(0x1ff)][_0x3f16c5(0x1d8)]['bind'](this[_0x3f16c5(0x1ff)]);this[_0x3f16c5(0x1ff)][_0x3f16c5(0x1d8)]=(..._0x5ee682)=>{const _0xd92eb8=_0x3f16c5,_0x14b4e1=_0x5ee682[_0xd92eb8(0x470)](_0x33c43d=>_0x33c43d instanceof Error?_0x33c43d[_0xd92eb8(0x284)]+'\x0a'+_0x33c43d[_0xd92eb8(0x38b)]:String(_0x33c43d))[_0xd92eb8(0x42f)]('\x20');this[_0xd92eb8(0x2a3)](_0xd92eb8(0x1d8),_0xd92eb8(0x25d)+_0x14b4e1),_0x12689f(..._0x5ee682);},this['disposeWithMe'](()=>{const _0x25bfd3=_0x3f16c5;this['_logService'][_0x25bfd3(0x1d8)]=_0x12689f;});}['_uploadLog'](_0xc12265,_0x407716){const _0x30bd9c=_0x164b20;try{const _0x4f623c={'userId':this[_0x30bd9c(0x368)],'logLabel':_0xc12265,'content':_0x407716};this['_httpService'][_0x30bd9c(0x2a9)](_0x30bd9c(0x35a),{'body':_0x4f623c})[_0x30bd9c(0x34d)](()=>{});}catch{}}};Q=kt([z(0x0,a[_0x164b20(0x3bb)](a['Injector'])),z(0x1,a[_0x164b20(0x3bb)](x[_0x164b20(0x30f)])),z(0x2,a['ILogService']),z(0x3,a['Inject'](u['CollaborationSessionService']))],Q);const Yt=_0x164b20(0x281),Me={};var Ht=Object[_0x164b20(0x413)],Wt=(_0x5def13,_0x3668df,_0x22afc0,_0x15b655)=>{const _0x213fee=_0x164b20;for(var _0xd5d393=_0x15b655>0x1?void 0x0:_0x15b655?Ht(_0x3668df,_0x22afc0):_0x3668df,_0x4653e6=_0x5def13[_0x213fee(0x384)]-0x1,_0x903788;_0x4653e6>=0x0;_0x4653e6--)(_0x903788=_0x5def13[_0x4653e6])&&(_0xd5d393=_0x903788(_0xd5d393)||_0xd5d393);return _0xd5d393;},Ae=(_0x4eae21,_0x433e4c)=>(_0x5e0bc6,_0x106665)=>_0x433e4c(_0x5e0bc6,_0x106665,_0x4eae21);let ee=class{constructor(_0x4d8076,_0x52b7b3){const _0x103bee=_0x164b20;this[_0x103bee(0x34c)]=_0x4d8076,this[_0x103bee(0x254)]=_0x52b7b3;}[_0x164b20(0x26a)](_0xfaec70){const _0x4829be=_0x164b20;this[_0x4829be(0x467)](_0xfaec70),this['_transformPreviousActiveRange'](_0xfaec70);}[_0x164b20(0x203)](_0x75d3b3){const _0x3132c4=_0x164b20,{unitID:_0x44d86c}=_0x75d3b3,_0x68112f=this['_renderManagerService'][_0x3132c4(0x298)](_0x44d86c)[_0x3132c4(0x266)](T[_0x3132c4(0x340)]),{redoCache:_0x468450}=_0x68112f[_0x3132c4(0x287)]();if(_0x468450[_0x3132c4(0x384)]===0x0)return _0x75d3b3;let _0x30b5cb=a[_0x3132c4(0x1c8)][_0x3132c4(0x3fc)](_0x75d3b3['mutations'][0x0]);for(let _0x1808e7=0x0;_0x1808e7<_0x468450[_0x3132c4(0x384)];_0x1808e7++){const _0x5474c5={'id':_0x3132c4(0x1dc),'params':{..._0x468450[_0x1808e7]}},_0x43db7b=this[_0x3132c4(0x34c)][_0x3132c4(0x255)](_0x30b5cb,_0x5474c5,!0x1);if(g[_0x3132c4(0x3d5)](_0x43db7b))throw _0x43db7b[_0x3132c4(0x1d8)];_0x30b5cb=_0x43db7b[_0x3132c4(0x411)];}return{...a[_0x3132c4(0x1c8)]['deepClone'](_0x75d3b3),'mutations':[_0x30b5cb]};}[_0x164b20(0x467)](_0xd49fa9){const _0x29f66f=_0x164b20,{unitID:_0x2d2bb4}=_0xd49fa9,_0x1521ae=this[_0x29f66f(0x254)]['getRenderById'](_0x2d2bb4)[_0x29f66f(0x266)](T['DocIMEInputManagerService']),{undoCache:_0x4c08f5,redoCache:_0x28bfb0}=_0x1521ae[_0x29f66f(0x287)]();if(_0x4c08f5['length']===0x0||_0x28bfb0[_0x29f66f(0x384)]===0x0)return;const _0x5b9666=[],_0x534714=[];let _0x5c6c1d=a[_0x29f66f(0x1c8)][_0x29f66f(0x3fc)](_0xd49fa9[_0x29f66f(0x359)][0x0]),_0x5232c3=a[_0x29f66f(0x1c8)]['deepClone'](_0xd49fa9[_0x29f66f(0x359)][0x0]);for(let _0x46edc5=_0x4c08f5[_0x29f66f(0x384)]-0x1;_0x46edc5>=0x0;_0x46edc5--){const _0x878dcf={'id':_0x29f66f(0x1dc),'params':{..._0x4c08f5[_0x46edc5]}},_0x144cbc={'id':_0x29f66f(0x1dc),'params':{..._0x28bfb0[_0x46edc5]}},_0x56220c=this[_0x29f66f(0x34c)][_0x29f66f(0x255)](_0x5c6c1d,_0x878dcf,!0x1),_0x127db3=this['_transformService'][_0x29f66f(0x255)](_0x5232c3,_0x144cbc,!0x1);if(g[_0x29f66f(0x3d5)](_0x56220c))throw _0x56220c[_0x29f66f(0x1d8)];if(g[_0x29f66f(0x3d5)](_0x127db3))throw _0x127db3['error'];_0x5b9666[_0x29f66f(0x2f3)](_0x56220c[_0x29f66f(0x378)][_0x29f66f(0x2fb)]),_0x534714['unshift'](_0x127db3[_0x29f66f(0x378)][_0x29f66f(0x2fb)]),_0x5c6c1d=_0x56220c[_0x29f66f(0x411)],_0x5232c3=_0x127db3[_0x29f66f(0x411)];}_0x1521ae['setUndoRedoMutationParamsCache']({'undoCache':_0x5b9666,'redoCache':_0x534714});}[_0x164b20(0x1e3)](_0x2ff9a9){const _0xa8d341=_0x164b20,{unitID:_0xa48182}=_0x2ff9a9,_0x220466=this[_0xa8d341(0x254)][_0xa8d341(0x298)](_0xa48182)[_0xa8d341(0x266)](T[_0xa8d341(0x340)]),_0x45781e=_0x220466[_0xa8d341(0x336)]();if(_0x45781e==null)return;const _0x52545b=[{'id':_0xa8d341(0x1dc),'params':{'unitId':_0x2ff9a9['unitID'],'actions':null,'textRanges':[_0x45781e]}}],_0x4a736a=this[_0xa8d341(0x34c)][_0xa8d341(0x29d)](_0x2ff9a9,_0x52545b);if(!g[_0xa8d341(0x305)](_0x4a736a))throw _0x4a736a['error'];const _0x417064=_0x4a736a[_0xa8d341(0x378)][0x0][_0xa8d341(0x2fb)]['textRanges'];Array[_0xa8d341(0x350)](_0x417064)&&_0x417064[_0xa8d341(0x384)]&&_0x220466[_0xa8d341(0x2cd)](_0x417064[0x0]);}};ee=Wt([Ae(0x0,g[_0x164b20(0x434)]),Ae(0x1,C[_0x164b20(0x36b)])],ee);var Vt=Object[_0x164b20(0x413)],Gt=(_0x3aa26a,_0x7e929b,_0x3e53a1,_0x543402)=>{for(var _0x37b513=_0x543402>0x1?void 0x0:_0x543402?Vt(_0x7e929b,_0x3e53a1):_0x7e929b,_0x231e43=_0x3aa26a['length']-0x1,_0x3ff918;_0x231e43>=0x0;_0x231e43--)(_0x3ff918=_0x3aa26a[_0x231e43])&&(_0x37b513=_0x3ff918(_0x37b513)||_0x37b513);return _0x37b513;},Ie=(_0x52b785,_0x3ed3fd)=>(_0x213c5d,_0x1cad66)=>_0x3ed3fd(_0x213c5d,_0x1cad66,_0x52b785);let te=class{constructor(_0x267690,_0x43c050,_0x2b1ded){const _0x2f57ce=_0x164b20;this['_injector']=_0x267690,this[_0x2f57ce(0x34c)]=_0x43c050,this['_docStateChangeManagerService']=_0x2b1ded;}[_0x164b20(0x1f5)](_0x3bf34c){const _0x295d79=_0x164b20;this[_0x295d79(0x1f9)](_0x3bf34c);}[_0x164b20(0x203)](_0x5531b3){const _0x3f7cf5=_0x164b20,{unitID:_0x4a81cc}=_0x5531b3,{collaboration:_0x246343}=this[_0x3f7cf5(0x398)][_0x3f7cf5(0x295)](_0x4a81cc);if(_0x246343[_0x3f7cf5(0x384)]===0x0)return _0x5531b3;let _0x59b7a6=a[_0x3f7cf5(0x1c8)][_0x3f7cf5(0x3fc)](_0x5531b3[_0x3f7cf5(0x359)][0x0]);for(let _0x100316=0x0;_0x100316<_0x246343[_0x3f7cf5(0x384)];_0x100316++){const _0x5a50c5={'id':_0x3f7cf5(0x1dc),'params':{'unitId':_0x246343[_0x100316][_0x3f7cf5(0x256)],..._0x246343[_0x100316][_0x3f7cf5(0x1f6)]}},_0x2c8f90=this[_0x3f7cf5(0x34c)][_0x3f7cf5(0x255)](_0x59b7a6,_0x5a50c5,!0x1);if(g[_0x3f7cf5(0x3d5)](_0x2c8f90))throw _0x2c8f90['error'];_0x59b7a6=_0x2c8f90['m1Prime'];}return{...a['Tools'][_0x3f7cf5(0x3fc)](_0x5531b3),'mutations':[_0x59b7a6]};}['_transformHistoryAndStateStack'](_0x3003a3){const _0x43ff54=_0x164b20,{unitID:_0x26ab1c}=_0x3003a3,{history:_0x25b16e,collaboration:_0x3cc4d7}=this[_0x43ff54(0x398)]['getStateCache'](_0x26ab1c);if(_0x25b16e[_0x43ff54(0x384)]===0x0&&_0x3cc4d7[_0x43ff54(0x384)]===0x0)return;const _0x2193a7=[],_0x105d85=[];let _0x67f952=a[_0x43ff54(0x1c8)][_0x43ff54(0x3fc)](_0x3003a3[_0x43ff54(0x359)][0x0]),_0x4be37d=a['Tools'][_0x43ff54(0x3fc)](_0x3003a3['mutations'][0x0]);for(let _0x25176f=_0x25b16e[_0x43ff54(0x384)]-0x1;_0x25176f>=0x0;_0x25176f--){const _0x4b0fa3={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x25b16e[_0x25176f]['unitId'],..._0x25b16e[_0x25176f][_0x43ff54(0x267)]}},_0x471552={'id':_0x43ff54(0x1dc),'params':{'unitId':_0x25b16e[_0x25176f]['unitId'],..._0x25b16e[_0x25176f][_0x43ff54(0x1f6)]}},_0x337547=this['_transformService'][_0x43ff54(0x255)](_0x67f952,_0x4b0fa3,!0x1),_0x914fd=this[_0x43ff54(0x34c)][_0x43ff54(0x255)](_0x4be37d,_0x471552,!0x1);if(g[_0x43ff54(0x3d5)](_0x337547))throw _0x337547['error'];if(g[_0x43ff54(0x3d5)](_0x914fd))throw _0x914fd['error'];_0x2193a7[_0x43ff54(0x2f3)]({..._0x25b16e[_0x25176f],'undoState':_0x337547[_0x43ff54(0x378)]['params'],'redoState':_0x914fd[_0x43ff54(0x378)][_0x43ff54(0x2fb)]}),_0x67f952=_0x337547[_0x43ff54(0x411)],_0x4be37d=_0x914fd[_0x43ff54(0x411)];}_0x67f952=a[_0x43ff54(0x1c8)][_0x43ff54(0x3fc)](_0x3003a3[_0x43ff54(0x359)][0x0]),_0x4be37d=a[_0x43ff54(0x1c8)]['deepClone'](_0x3003a3[_0x43ff54(0x359)][0x0]);for(let _0x3e9992=_0x3cc4d7[_0x43ff54(0x384)]-0x1;_0x3e9992>=0x0;_0x3e9992--){const _0x293c50={'id':_0x43ff54(0x1dc),'params':{'unitId':_0x3cc4d7[_0x3e9992][_0x43ff54(0x256)],..._0x3cc4d7[_0x3e9992][_0x43ff54(0x267)]}},_0x4d3c3d={'id':_0x43ff54(0x1dc),'params':{'unitId':_0x3cc4d7[_0x3e9992][_0x43ff54(0x256)],..._0x3cc4d7[_0x3e9992][_0x43ff54(0x1f6)]}},_0xb9a9f3=this[_0x43ff54(0x34c)][_0x43ff54(0x255)](_0x67f952,_0x293c50,!0x1),_0xab6c02=this[_0x43ff54(0x34c)][_0x43ff54(0x255)](_0x4be37d,_0x4d3c3d,!0x1);if(g[_0x43ff54(0x3d5)](_0xb9a9f3))throw _0xb9a9f3['error'];if(g[_0x43ff54(0x3d5)](_0xab6c02))throw _0xab6c02[_0x43ff54(0x1d8)];_0x105d85['unshift']({..._0x3cc4d7[_0x3e9992],'undoState':_0xb9a9f3[_0x43ff54(0x378)][_0x43ff54(0x2fb)],'redoState':_0xab6c02[_0x43ff54(0x378)][_0x43ff54(0x2fb)]}),_0x67f952=_0xb9a9f3[_0x43ff54(0x411)],_0x4be37d=_0xab6c02[_0x43ff54(0x411)];}this[_0x43ff54(0x398)]['setStateCache'](_0x26ab1c,{'history':_0x2193a7,'collaboration':_0x105d85});}};te=Gt([Ie(0x0,a[_0x164b20(0x3bb)](a[_0x164b20(0x31f)])),Ie(0x1,g[_0x164b20(0x434)]),Ie(0x2,a['Inject'](T[_0x164b20(0x3ef)]))],te);var Xt=Object['getOwnPropertyDescriptor'],Kt=(_0x3d5769,_0x441f29,_0x3e3df3,_0x13550c)=>{const _0x540a75=_0x164b20;for(var _0x586c5d=_0x13550c>0x1?void 0x0:_0x13550c?Xt(_0x441f29,_0x3e3df3):_0x441f29,_0x719a3=_0x3d5769[_0x540a75(0x384)]-0x1,_0x39c1b9;_0x719a3>=0x0;_0x719a3--)(_0x39c1b9=_0x3d5769[_0x719a3])&&(_0x586c5d=_0x39c1b9(_0x586c5d)||_0x586c5d);return _0x586c5d;},Pe=(_0x2a9dc7,_0x571aee)=>(_0x2a9835,_0x333ec4)=>_0x571aee(_0x2a9835,_0x333ec4,_0x2a9dc7);let se=class{constructor(_0xce74f3,_0x3d579b){const _0x2881d2=_0x164b20;this[_0x2881d2(0x332)]=_0xce74f3,this[_0x2881d2(0x34c)]=_0x3d579b;}[_0x164b20(0x40b)](_0x382aa4){const _0x223372=_0x164b20;var _0x17ce59;const _0x56d62e=this[_0x223372(0x332)][_0x223372(0x410)](V[_0x223372(0x21a)]),_0x59d73b=(_0x17ce59=_0x56d62e[_0x223372(0x1ca)]())!=null?_0x17ce59:[];if(_0x59d73b[_0x223372(0x384)]===0x0)return;const _0x594c5e=_0x382aa4[_0x223372(0x324)],_0x9487e3=[{'id':_0x223372(0x1dc),'params':{'unitId':_0x594c5e,'actions':null,'textRanges':_0x59d73b}}],_0x287ac2=this[_0x223372(0x34c)][_0x223372(0x29d)](_0x382aa4,_0x9487e3);if(!g['isTransformMutationsWithChangesetSuccess'](_0x287ac2))throw _0x287ac2[_0x223372(0x1d8)];const _0x5a01f9=_0x287ac2[_0x223372(0x378)][0x0]['params']['textRanges'];Array[_0x223372(0x350)](_0x5a01f9)&&_0x5a01f9[_0x223372(0x384)]&&_0x56d62e['replaceDocRanges'](_0x5a01f9,{'unitId':_0x594c5e,'subUnitId':_0x594c5e},!0x1);}};se=Kt([Pe(0x0,a[_0x164b20(0x3bb)](a[_0x164b20(0x31f)])),Pe(0x1,g['ITransformService'])],se);var qt=Object['getOwnPropertyDescriptor'],zt=(_0x4bbd87,_0x5552fc,_0x1d12ca,_0x426388)=>{for(var _0x3c05ef=_0x426388>0x1?void 0x0:_0x426388?qt(_0x5552fc,_0x1d12ca):_0x5552fc,_0x5172a3=_0x4bbd87['length']-0x1,_0x34bacd;_0x5172a3>=0x0;_0x5172a3--)(_0x34bacd=_0x4bbd87[_0x5172a3])&&(_0x3c05ef=_0x34bacd(_0x3c05ef)||_0x3c05ef);return _0x3c05ef;},N=(_0x29a4b7,_0x3a86d5)=>(_0x59f01f,_0x1fbe70)=>_0x3a86d5(_0x59f01f,_0x1fbe70,_0x29a4b7);let ie=class extends a['Disposable']{constructor(_0x181af3,_0x49b14e,_0x157f23,_0x161873,_0x5676e,_0x139056,_0x43be93,_0xd00a0f){const _0x9f39b8=_0x164b20;super(),_(this,_0x9f39b8(0x2f2),new I[(_0x9f39b8(0x268))](u[_0x9f39b8(0x499)][_0x9f39b8(0x21e)])),(this[_0x9f39b8(0x398)]=_0x181af3,this[_0x9f39b8(0x26e)]=_0x49b14e,this['_docTransformIMECacheService']=_0x157f23,this[_0x9f39b8(0x3e7)]=_0x161873,this[_0x9f39b8(0x3c1)]=_0x5676e,this[_0x9f39b8(0x22e)]=_0x139056,this['_messageService']=_0x43be93,this[_0x9f39b8(0x419)]=_0xd00a0f,this[_0x9f39b8(0x458)]());}['_initEntityListener'](){this['disposeWithMe'](this['_collaborationController']['entityInit$']['subscribe'](_0x40668e=>{const _0x2c6d60=_0x2fa9,_0x35a556=this['_docStateChangeManagerService']['docStateChange$'][_0x2c6d60(0x2df)](_0x282a60=>{const _0x2df964=_0x2c6d60;if(_0x282a60==null)return;const {unitId:_0x233e16,redoState:_0xeb471a,commandId:_0x1e0863}=_0x282a60;if(_0x233e16!==_0x40668e[_0x2df964(0x324)])return;const _0x2a31a0={'id':_0x1e0863,'type':a[_0x2df964(0x229)][_0x2df964(0x1f3)],'params':{'unitId':_0x233e16,'actions':_0xeb471a[_0x2df964(0x3cc)],'textRanges':null}};_0x40668e[_0x2df964(0x2d5)](_0x2a31a0);});if(_0x40668e[_0x2c6d60(0x2c8)](_0x35a556),_0x40668e instanceof u[_0x2c6d60(0x20e)]){const _0x2a8ed3={'onTransformIME':_0x4324cd=>this['_docTransformIMECacheService'][_0x2c6d60(0x26a)](_0x4324cd),'onTransformState':_0x117237=>this[_0x2c6d60(0x3e7)]['transformStateCache'](_0x117237),'onTransformSelections':_0x4ccee5=>this['_docTransformSelectionsService'][_0x2c6d60(0x40b)](_0x4ccee5),'onSyncEditingCollabCursor':_0x3998ec=>this[_0x2c6d60(0x22e)][_0x2c6d60(0x392)](_0x3998ec),'onTransformRemoteChangesetByIMECache':_0x3dfa20=>this[_0x2c6d60(0x24c)][_0x2c6d60(0x203)](_0x3dfa20),'onTransformRemoteChangesetByStateCache':_0x3d4375=>this[_0x2c6d60(0x3e7)][_0x2c6d60(0x203)](_0x3d4375)};_0x40668e[_0x2c6d60(0x415)](_0x2a8ed3);}}));}};ie=zt([N(0x0,a[_0x164b20(0x3bb)](T[_0x164b20(0x3ef)])),N(0x1,a[_0x164b20(0x3bb)](u['CollaborationController'])),N(0x2,a['Inject'](ee)),N(0x3,a[_0x164b20(0x3bb)](te)),N(0x4,a[_0x164b20(0x3bb)](se)),N(0x5,a[_0x164b20(0x3bb)](be)),N(0x6,O[_0x164b20(0x354)]),N(0x7,a['Inject'](a[_0x164b20(0x46b)]))],ie);var G=(_0x46f232=>(_0x46f232[_0x46f232[_0x164b20(0x2cc)]=0x0]=_0x164b20(0x2cc),_0x46f232[_0x46f232['OK']=0x1]='OK',_0x46f232[_0x46f232[_0x164b20(0x22a)]=0x2]=_0x164b20(0x22a),_0x46f232[_0x46f232[_0x164b20(0x48d)]=0x3]='PERMISSION_DENIED',_0x46f232[_0x46f232[_0x164b20(0x43f)]=0x4]='NOT_FOUND',_0x46f232[_0x46f232[_0x164b20(0x2bb)]=0x5]=_0x164b20(0x2bb),_0x46f232[_0x46f232[_0x164b20(0x201)]=0x6]=_0x164b20(0x201),_0x46f232[_0x46f232[_0x164b20(0x3bf)]=0x7]=_0x164b20(0x3bf),_0x46f232[_0x46f232[_0x164b20(0x383)]=0x8]=_0x164b20(0x383),_0x46f232[_0x46f232[_0x164b20(0x311)]=0x9]=_0x164b20(0x311),_0x46f232[_0x46f232[_0x164b20(0x252)]=0xa]=_0x164b20(0x252),_0x46f232[_0x46f232[_0x164b20(0x443)]=0xb]=_0x164b20(0x443),_0x46f232[_0x46f232['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x164b20(0x3fe),_0x46f232[_0x46f232[_0x164b20(0x420)]=0xd]=_0x164b20(0x420),_0x46f232[_0x46f232['EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xe]='EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x46f232[_0x46f232[_0x164b20(0x30e)]=0xf]=_0x164b20(0x30e),_0x46f232[_0x46f232[_0x164b20(0x2eb)]=0x10]=_0x164b20(0x2eb),_0x46f232[_0x46f232[_0x164b20(0x489)]=0x64]=_0x164b20(0x489),_0x46f232[_0x46f232['ERROR_AGAIN']=0x65]=_0x164b20(0x1cb),_0x46f232[_0x46f232['USER_NOT_FOUND']=0xc9]=_0x164b20(0x28a),_0x46f232[_0x46f232[_0x164b20(0x43b)]=0xca]=_0x164b20(0x43b),_0x46f232[_0x46f232[_0x164b20(0x31d)]=0x1389]=_0x164b20(0x31d),_0x46f232[_0x46f232['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x164b20(0x2d4),_0x46f232[_0x46f232[_0x164b20(0x436)]=0x1772]=_0x164b20(0x436),_0x46f232[_0x46f232[_0x164b20(0x3cb)]=0x1773]=_0x164b20(0x3cb),_0x46f232[_0x46f232[_0x164b20(0x30d)]=0x1b59]=_0x164b20(0x30d),_0x46f232[_0x46f232[_0x164b20(0x427)]=0x1b5a]=_0x164b20(0x427),_0x46f232[_0x46f232['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x164b20(0x29f),_0x46f232[_0x46f232['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x164b20(0x44c),_0x46f232[_0x46f232[_0x164b20(0x373)]=0x1b5d]=_0x164b20(0x373),_0x46f232[_0x46f232[_0x164b20(0x47d)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x46f232[_0x46f232[_0x164b20(0x335)]=0x2329]=_0x164b20(0x335),_0x46f232[_0x46f232[_0x164b20(0x367)]=0x232a]=_0x164b20(0x367),_0x46f232[_0x46f232[_0x164b20(0x1ea)]=0x232b]=_0x164b20(0x1ea),_0x46f232[_0x46f232[_0x164b20(0x477)]=0x232c]=_0x164b20(0x477),_0x46f232[_0x46f232[_0x164b20(0x258)]=0x232d]=_0x164b20(0x258),_0x46f232[_0x46f232[_0x164b20(0x46d)]=0x2711]=_0x164b20(0x46d),_0x46f232[_0x46f232[_0x164b20(0x441)]=0x2712]=_0x164b20(0x441),_0x46f232[_0x46f232['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x46f232[_0x46f232[_0x164b20(0x440)]=0x2714]=_0x164b20(0x440),_0x46f232[_0x46f232[_0x164b20(0x3e0)]=0x271a]=_0x164b20(0x3e0),_0x46f232[_0x46f232['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x164b20(0x406),_0x46f232[_0x46f232[_0x164b20(0x2c2)]=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x46f232[_0x46f232[_0x164b20(0x32e)]=0x271d]=_0x164b20(0x32e),_0x46f232[_0x46f232[_0x164b20(0x447)]=0x271e]=_0x164b20(0x447),_0x46f232[_0x46f232[_0x164b20(0x2f8)]=0x271f]=_0x164b20(0x2f8),_0x46f232[_0x46f232[_0x164b20(0x403)]=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x46f232[_0x46f232[_0x164b20(0x3c2)]=0x2af9]=_0x164b20(0x3c2),_0x46f232[_0x46f232['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x164b20(0x2a8),_0x46f232[_0x46f232[_0x164b20(0x370)]=0x2ee2]=_0x164b20(0x370),_0x46f232[_0x46f232[_0x164b20(0x47b)]=0x2ee3]=_0x164b20(0x47b),_0x46f232[_0x46f232['USER_NOT_INVITED_CODE']=0x2ee4]=_0x164b20(0x405),_0x46f232[_0x46f232[_0x164b20(0x303)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x46f232[_0x46f232['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x164b20(0x2af),_0x46f232[_0x46f232['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x164b20(0x2b8),_0x46f232[_0x46f232[_0x164b20(0x334)]=0x32cb]=_0x164b20(0x334),_0x46f232[_0x46f232[_0x164b20(0x476)]=0x36b1]=_0x164b20(0x476),_0x46f232[_0x46f232[_0x164b20(0x369)]=0x36b2]=_0x164b20(0x369),_0x46f232[_0x46f232['ENTITLE_DUP_SUBSCRIPTION']=0x36b3]=_0x164b20(0x32f),_0x46f232[_0x46f232['PAYMENT_CHANNEL_NOT_SUPPORT']=0x36b4]='PAYMENT_CHANNEL_NOT_SUPPORT',_0x46f232[_0x46f232[_0x164b20(0x2f5)]=0x36b5]=_0x164b20(0x2f5),_0x46f232[_0x46f232[_0x164b20(0x237)]=0x36b6]=_0x164b20(0x237),_0x46f232[_0x46f232[_0x164b20(0x450)]=0x36b7]=_0x164b20(0x450),_0x46f232[_0x46f232[_0x164b20(0x376)]=0x36b8]=_0x164b20(0x376),_0x46f232[_0x46f232[_0x164b20(0x341)]=0x3715]=_0x164b20(0x341),_0x46f232[_0x46f232[_0x164b20(0x3f8)]=0x3716]='ENTITLE_REPORT_LIMIT_EXCEED',_0x46f232[_0x46f232[_0x164b20(0x2f6)]=0x3717]='ENTITLE_INSUFFICIENT_QUOTA',_0x46f232[_0x46f232['ENTITLE_NEED_BILLING_ADDRESS']=0x37dd]='ENTITLE_NEED_BILLING_ADDRESS',_0x46f232[_0x46f232[_0x164b20(0x3d2)]=0x3a99]=_0x164b20(0x3d2),_0x46f232[_0x46f232['REDEMPTION_CODE_INACTIVE']=0x3a9a]=_0x164b20(0x1d6),_0x46f232[_0x46f232[_0x164b20(0x35c)]=0x3a9b]=_0x164b20(0x35c),_0x46f232[_0x46f232['REDEMPTION_CODE_NOT_STARTED']=0x3a9c]=_0x164b20(0x408),_0x46f232[_0x46f232[_0x164b20(0x234)]=0x3a9d]=_0x164b20(0x234),_0x46f232[_0x46f232[_0x164b20(0x423)]=0x3a9e]='REDEMPTION_USER_REDEEM_TIMES_EXCEED',_0x46f232[_0x46f232[_0x164b20(0x416)]=0x3a9f]='REDEMPTION_CODE_HAS_BEEN_CREATED',_0x46f232[_0x46f232[_0x164b20(0x27a)]=0x3e81]=_0x164b20(0x27a),_0x46f232[_0x46f232[_0x164b20(0x3b9)]=-0x1]='UNRECOGNIZED',_0x46f232))(G||{});function Jt(_0xc59bf5){const _0x2681d5=_0x164b20;var _0x2d2db5,_0x1723e6;const _0x46072f=(_0x2d2db5=_0xc59bf5[_0x2681d5(0x45e)])==null?void 0x0:_0x2d2db5[_0x2681d5(0x250)],_0x52fb01=((_0x1723e6=_0xc59bf5[_0x2681d5(0x45e)])==null?void 0x0:_0x1723e6['totalFormulasToCalculate'])||0x0;return _0x46072f===B[_0x2681d5(0x357)][_0x2681d5(0x491)]&&_0x52fb01>0x0;}function Zt(_0x4e575c){const _0x1f6430=_0x164b20;return _0x4e575c[_0x1f6430(0x1fb)]===B[_0x1f6430(0x231)][_0x1f6430(0x36e)];}var Qt=Object['getOwnPropertyDescriptor'],es=(_0x2a8730,_0x55b831,_0x4ac3e0,_0x505fad)=>{const _0x1fad45=_0x164b20;for(var _0x21311d=_0x505fad>0x1?void 0x0:_0x505fad?Qt(_0x55b831,_0x4ac3e0):_0x55b831,_0x4465a5=_0x2a8730[_0x1fad45(0x384)]-0x1,_0x322c60;_0x4465a5>=0x0;_0x4465a5--)(_0x322c60=_0x2a8730[_0x4465a5])&&(_0x21311d=_0x322c60(_0x21311d)||_0x21311d);return _0x21311d;},L=(_0x197618,_0x52d797)=>(_0x1466f1,_0x3a3b9f)=>_0x52d797(_0x1466f1,_0x3a3b9f,_0x197618);const ts=_0x164b20(0x412),ss=_0x164b20(0x3d6),is='/universer-api/license/formula/limit/done';let ne=class extends a['Disposable']{constructor(_0x1f865a,_0x2f9328,_0x59dcf8,_0x3fab96,_0x373c2c,_0x32cffa,_0x29430c){const _0x3a11b9=_0x164b20;super(),_(this,_0x3a11b9(0x3e5),null),_(this,_0x3a11b9(0x37e),0x0),_(this,'_currentUsage',0x0),_(this,_0x3a11b9(0x1fe),[]),_(this,_0x3a11b9(0x430),0x0),(this[_0x3a11b9(0x353)]=_0x1f865a,this[_0x3a11b9(0x355)]=_0x2f9328,this[_0x3a11b9(0x44b)]=_0x59dcf8,this['_httpService']=_0x3fab96,this[_0x3a11b9(0x37d)]=_0x373c2c,this[_0x3a11b9(0x1ff)]=_0x32cffa,this[_0x3a11b9(0x419)]=_0x29430c,this[_0x3a11b9(0x1fc)]());}['_initCommandInterceptor'](){const _0x101f47=_0x164b20;this[_0x101f47(0x2c8)](this[_0x101f47(0x355)][_0x101f47(0x463)]((_0x4d9320,_0x3c65ec)=>{const _0x481a30=_0x101f47;var _0x50d706;if(_0x4d9320['id']!==B[_0x481a30(0x3ad)]['id'])return;const _0x38213d=_0x4d9320[_0x481a30(0x2fb)];if(!this[_0x481a30(0x273)]((_0x50d706=_0x38213d[_0x481a30(0x2a1)])!=null?_0x50d706:[]))return;if(!this[_0x481a30(0x32c)]())throw this['_checkAndWaitForCalculationPermission'](_0x4d9320,_0x3c65ec),this[_0x481a30(0x26b)](),new a[(_0x481a30(0x3a0))]();})),this[_0x101f47(0x2c8)](this[_0x101f47(0x355)][_0x101f47(0x20d)]((_0x18f640,_0x5290ca)=>{const _0x2d5963=_0x101f47;if(_0x18f640['id']!==B[_0x2d5963(0x36c)]['id'])return;const _0x20e3ef=_0x18f640[_0x2d5963(0x2fb)];if(Jt(_0x20e3ef)){const _0x3f42e4=a[_0x2d5963(0x292)]();this[_0x2d5963(0x1fe)][_0x2d5963(0x2b6)](_0x3f42e4),this[_0x2d5963(0x36d)](_0x3f42e4);}else{if(Zt(_0x20e3ef)&&this[_0x2d5963(0x1fe)]['length']>0x0){const _0x3133d1=this[_0x2d5963(0x1fe)]['shift']();this[_0x2d5963(0x290)](_0x3133d1);}}}));}[_0x164b20(0x469)](){const _0x4a934e=_0x164b20;super[_0x4a934e(0x469)](),this[_0x4a934e(0x483)](),this['_taskIds']=[],this[_0x4a934e(0x20b)]=0x0,this[_0x4a934e(0x37e)]=0x0,this[_0x4a934e(0x430)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x15b7dc,_0x3aff02){const _0x251ea7=_0x164b20;for(let _0x575c72=0x0;_0x575c72<0x1e;_0x575c72++)try{if(await this[_0x251ea7(0x474)](),this[_0x251ea7(0x32c)]()){this[_0x251ea7(0x1e8)](_0x15b7dc,_0x3aff02),this[_0x251ea7(0x353)]['show']({'content':this[_0x251ea7(0x419)]['t'](_0x251ea7(0x402)),'type':p['MessageType'][_0x251ea7(0x41a)]});return;}await new Promise(_0x121c51=>{const _0x418564=_0x251ea7;this[_0x418564(0x3e5)]=window[_0x418564(0x389)](_0x121c51,0x3e8);});}catch(_0x482ea5){this[_0x251ea7(0x1ff)]['error'](_0x482ea5);}this[_0x251ea7(0x353)][_0x251ea7(0x2d3)]({'content':this[_0x251ea7(0x419)]['t']('formula.calculation.unable'),'type':p[_0x251ea7(0x275)][_0x251ea7(0x44d)]});}[_0x164b20(0x1e8)](_0x2ca062,_0x4276ea){const _0x2b6e41=_0x164b20;try{this[_0x2b6e41(0x355)][_0x2b6e41(0x485)](_0x2ca062['id'],_0x2ca062[_0x2b6e41(0x2fb)],_0x4276ea);}catch(_0xdb1065){this[_0x2b6e41(0x1ff)][_0x2b6e41(0x1d8)](_0xdb1065);}}[_0x164b20(0x45f)](_0x2b432f,_0x4da439){const _0x1a3ea3=_0x164b20;_0x4da439<this[_0x1a3ea3(0x430)]||(this[_0x1a3ea3(0x430)]=_0x4da439,this[_0x1a3ea3(0x37e)]=Number['parseInt'](_0x2b432f[_0x1a3ea3(0x3bc)]),this['_currentUsage']=Number['parseInt'](_0x2b432f[_0x1a3ea3(0x1e7)]));}async['_startCalculationLimit'](_0x297e7a){const _0x5b9ce7=_0x164b20;var _0x102265,_0x2c470a;const _0x46739d=Date[_0x5b9ce7(0x23f)]();try{const _0x5167f3=((_0x102265=this[_0x5b9ce7(0x44b)][_0x5b9ce7(0x20c)](u[_0x5b9ce7(0x31e)]))==null?void 0x0:_0x102265[_0x5b9ce7(0x2e8)])||ss,_0x428a64=(await this[_0x5b9ce7(0x3bd)][_0x5b9ce7(0x2a9)](_0x5167f3,{'body':JSON[_0x5b9ce7(0x2ac)]({'taskId':_0x297e7a})}))[_0x5b9ce7(0x27b)];if(((_0x2c470a=_0x428a64[_0x5b9ce7(0x1d8)])==null?void 0x0:_0x2c470a[_0x5b9ce7(0x457)])!==G['OK'])return;this[_0x5b9ce7(0x45f)](_0x428a64[_0x5b9ce7(0x3a1)],_0x46739d);}catch(_0x368f40){this[_0x5b9ce7(0x1ff)][_0x5b9ce7(0x1d8)](_0x368f40);}}async[_0x164b20(0x474)](_0x40baa9){const _0x227cfc=_0x164b20;var _0x517a2d,_0x26b2c1;const _0x29195a=Date['now']();try{const _0x2fff15=((_0x517a2d=this[_0x227cfc(0x44b)][_0x227cfc(0x20c)](u[_0x227cfc(0x31e)]))==null?void 0x0:_0x517a2d[_0x227cfc(0x2ab)])||ts,_0x307f6d=_0x40baa9?_0x2fff15+_0x227cfc(0x1ec)+encodeURIComponent(_0x40baa9):_0x2fff15,_0x536fd1=(await this['_httpService'][_0x227cfc(0x410)](_0x307f6d))[_0x227cfc(0x27b)];if(((_0x26b2c1=_0x536fd1[_0x227cfc(0x1d8)])==null?void 0x0:_0x26b2c1['code'])!==G['OK'])return;this['_setFormulaLimitStatus'](_0x536fd1[_0x227cfc(0x3a1)],_0x29195a);}catch(_0x30b8e5){this[_0x227cfc(0x1ff)][_0x227cfc(0x1d8)](_0x30b8e5);}}async['_releaseCalculationLimit'](_0xd68c0e){const _0x156703=_0x164b20;var _0x46389a,_0x3f4f31;const _0x1676e4=Date[_0x156703(0x23f)]();try{const _0x69fffb=((_0x46389a=this[_0x156703(0x44b)]['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x46389a[_0x156703(0x25f)])||is,_0x944c57=(await this['_httpService'][_0x156703(0x2a9)](_0x69fffb,{'body':JSON['stringify']({'taskId':_0xd68c0e})}))[_0x156703(0x27b)];if(((_0x3f4f31=_0x944c57['error'])==null?void 0x0:_0x3f4f31[_0x156703(0x457)])!==G['OK'])return;this[_0x156703(0x45f)](_0x944c57[_0x156703(0x3a1)],_0x1676e4);}catch(_0x3e2e88){this[_0x156703(0x1ff)]['error'](_0x3e2e88);}}[_0x164b20(0x32c)](){const _0x4d9ad3=_0x164b20;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x4d9ad3(0x37e)]-this['_currentUsage']>0x0;}[_0x164b20(0x483)](){const _0x3aa519=_0x164b20;this[_0x3aa519(0x3e5)]&&(clearTimeout(this[_0x3aa519(0x3e5)]),this[_0x3aa519(0x3e5)]=null);}[_0x164b20(0x26b)](){const _0x29f817=_0x164b20;this[_0x29f817(0x353)][_0x29f817(0x2d3)]({'content':this[_0x29f817(0x419)]['t'](_0x29f817(0x3a5)),'type':p[_0x29f817(0x275)][_0x29f817(0x29c)]});}[_0x164b20(0x273)](_0x2bc469){const _0x451a85=_0x164b20;for(const _0x17b9f0 of _0x2bc469){const {unitId:_0x28d96,sheetId:_0x5408e6,range:_0xf636b7}=_0x17b9f0,_0x3f01d9=this['_univerInstanceService'][_0x451a85(0x33c)](_0x28d96);if(!_0x3f01d9)continue;const _0x45653d=_0x3f01d9['getSheetBySheetId'](_0x5408e6);if(!_0x45653d)continue;const _0x2f0956=_0x45653d[_0x451a85(0x37f)]();for(let _0x30cda0=_0xf636b7[_0x451a85(0x2b5)];_0x30cda0<=_0xf636b7[_0x451a85(0x21c)];_0x30cda0++)for(let _0x961f66=_0xf636b7[_0x451a85(0x39c)];_0x961f66<=_0xf636b7[_0x451a85(0x320)];_0x961f66++){const _0x1231f7=_0x2f0956[_0x451a85(0x26c)](_0x30cda0,_0x961f66);if(_0x1231f7&&(a[_0x451a85(0x2ee)](_0x1231f7['f'])||a[_0x451a85(0x45b)](_0x1231f7['si'])))return!0x0;}}return!0x1;}};ne=es([L(0x0,a[_0x164b20(0x3bb)](O[_0x164b20(0x354)])),L(0x1,a['ICommandService']),L(0x2,a[_0x164b20(0x46f)]),L(0x3,a['Inject'](x[_0x164b20(0x30f)])),L(0x4,a[_0x164b20(0x24b)]),L(0x5,a[_0x164b20(0x484)]),L(0x6,a['Inject'](a[_0x164b20(0x46b)]))],ne);var ns=Object[_0x164b20(0x413)],rs=(_0x890de1,_0x57c06f,_0x36d1c9,_0x620efc)=>{const _0x47571b=_0x164b20;for(var _0x367a61=_0x620efc>0x1?void 0x0:_0x620efc?ns(_0x57c06f,_0x36d1c9):_0x57c06f,_0x4bf159=_0x890de1[_0x47571b(0x384)]-0x1,_0x269a88;_0x4bf159>=0x0;_0x4bf159--)(_0x269a88=_0x890de1[_0x4bf159])&&(_0x367a61=_0x269a88(_0x367a61)||_0x367a61);return _0x367a61;},Se=(_0x472a87,_0x4f62e0)=>(_0x161fb7,_0x1ab755)=>_0x4f62e0(_0x161fb7,_0x1ab755,_0x472a87);let Te=class extends a['Disposable']{constructor(_0x38675e,_0x480e76,_0x447171){const _0x40cc81=_0x164b20;super(),_(this,_0x40cc81(0x286),new Map()),_(this,'_saveTaskMap',new Map()),_(this,_0x40cc81(0x1cf),!0x1),(this[_0x40cc81(0x44b)]=_0x38675e,this[_0x40cc81(0x222)]=_0x480e76,this[_0x40cc81(0x442)]=_0x447171);}[_0x164b20(0x422)](){this['_disabled']=!0x0;}[_0x164b20(0x29b)](){const _0x43bde2=_0x164b20;this[_0x43bde2(0x1cf)]=!0x1;}get[_0x164b20(0x2d6)](){const _0x532720=_0x164b20;return this[_0x532720(0x35e)];}[_0x164b20(0x469)](){const _0xf65b19=_0x164b20;this[_0xf65b19(0x2b2)]()[_0xf65b19(0x473)](()=>super[_0xf65b19(0x469)]());}async['loadOfflineData'](_0x26fe46){const _0x3fb8e7=_0x164b20;return this[_0x3fb8e7(0x1cf)]?null:this[_0x3fb8e7(0x222)]['getItem'](u['getLocalCacheKey'](_0x26fe46));}async[_0x164b20(0x492)](_0x50f124,_0x1f5e8c){const _0x4a1774=_0x164b20;return!!this[_0x4a1774(0x222)][_0x4a1774(0x2fe)](_0x50f124,_0x1f5e8c);}[_0x164b20(0x27c)](_0x1edc6e,_0x4bd8d1,_0x2e9dc2,_0xdf9271){const _0x1e241e=_0x164b20,_0x19b29d=this[_0x1e241e(0x442)]['getCurrentRevOfUnit'](_0x1edc6e);this[_0x1e241e(0x286)][_0x1e241e(0x264)](_0x1edc6e,{'unitID':_0x1edc6e,'type':_0x4bd8d1,'awaitingChangeset':_0x2e9dc2,'mutations':_0xdf9271,'rev':_0x19b29d}),this[_0x1e241e(0x35e)][_0x1e241e(0x2fc)](_0x1edc6e)||this['_scheduleSaving'](_0x1edc6e);}[_0x164b20(0x1ed)](_0x3f8eb5){const _0x549483=_0x164b20,_0x21a3fb=this[_0x549483(0x3b4)]();_0x21a3fb===0x0?this[_0x549483(0x339)](_0x3f8eb5):this[_0x549483(0x35e)]['set'](_0x3f8eb5,setTimeout(()=>this[_0x549483(0x339)](_0x3f8eb5),_0x21a3fb));}[_0x164b20(0x3b4)](){const _0x6f073c=_0x164b20;var _0x3d97ec;return(_0x3d97ec=this[_0x6f073c(0x44b)]['getConfig'](u[_0x6f073c(0x3d1)]))!=null?_0x3d97ec:u['LOCAL_CACHE_INTERVAL'];}[_0x164b20(0x339)](_0x192bd2){const _0x1b20d6=_0x164b20,_0x326d36=this['_saveTaskMap'][_0x1b20d6(0x410)](_0x192bd2);return _0x326d36!==void 0x0&&window['clearTimeout'](_0x326d36),this[_0x1b20d6(0x222)]['setItem'](u[_0x1b20d6(0x444)](_0x192bd2),this[_0x1b20d6(0x286)][_0x1b20d6(0x410)](_0x192bd2))['then'](()=>this[_0x1b20d6(0x35e)][_0x1b20d6(0x44e)](_0x192bd2));}async[_0x164b20(0x2b2)](){const _0x5db149=_0x164b20,_0xea01e=[];this[_0x5db149(0x35e)]['forEach']((_0x494206,_0x50ce2a)=>{const _0x379fff=_0x5db149;window['clearTimeout'](_0x494206),_0xea01e['push'](this['_saveCache'](_0x50ce2a)[_0x379fff(0x473)](()=>{const _0x41dd9d=_0x379fff;this['_saveTaskMap'][_0x41dd9d(0x44e)](_0x50ce2a);}));}),await Promise[_0x5db149(0x42a)](_0xea01e);}};Te=rs([Se(0x0,a[_0x164b20(0x46f)]),Se(0x1,a[_0x164b20(0x3e1)]),Se(0x2,a['Inject'](g['RevisionService']))],Te);class ke extends a[_0x164b20(0x314)]{constructor(){const _0x5107dd=_0x164b20;super(),_(this,_0x5107dd(0x209)),this['urlChange$']=I[_0x5107dd(0x3ab)](window,_0x5107dd(0x2f1))[_0x5107dd(0x2b3)](I[_0x5107dd(0x327)](this[_0x5107dd(0x2a4)]),I[_0x5107dd(0x2e4)](0x1),I[_0x5107dd(0x313)](void 0x0));}[_0x164b20(0x22c)](_0x5b479d,_0x351165,_0x2c436d=!0x1){const _0x587789=_0x164b20,_0xd68627=new URL(window['location'][_0x587789(0x417)]);_0xd68627[_0x587789(0x432)][_0x587789(0x264)](_0x5b479d,_0x351165),_0x2c436d?window['history'][_0x587789(0x1da)]('','',_0xd68627[_0x587789(0x241)]()):window['history']['pushState']('','',_0xd68627[_0x587789(0x241)]());}[_0x164b20(0x3b5)](_0xec5346,_0x2f8f53=!0x1){const _0x489716=_0x164b20,_0x637805=new URL(window[_0x489716(0x377)][_0x489716(0x417)]);_0x637805['searchParams'][_0x489716(0x44e)](_0xec5346),_0x2f8f53?window[_0x489716(0x308)][_0x489716(0x1da)]('','',_0x637805[_0x489716(0x241)]()):window[_0x489716(0x308)][_0x489716(0x1e9)]('','',_0x637805[_0x489716(0x241)]());}[_0x164b20(0x220)](_0x5d091e){const _0x4bbdfd=_0x164b20;var _0x4c9edf;return(_0x4c9edf=new URL(window['location'][_0x4bbdfd(0x417)])[_0x4bbdfd(0x432)]['get'](_0x5d091e))!=null?_0x4c9edf:void 0x0;}}var os=Object[_0x164b20(0x3a7)],as=Object[_0x164b20(0x413)],cs=(_0x601734,_0x50c022,_0x2feb5c)=>_0x50c022 in _0x601734?os(_0x601734,_0x50c022,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2feb5c}):_0x601734[_0x50c022]=_0x2feb5c,ls=(_0x861e63,_0x353b37,_0x40c912,_0x232918)=>{const _0x396c5f=_0x164b20;for(var _0xa55d0c=_0x232918>0x1?void 0x0:_0x232918?as(_0x353b37,_0x40c912):_0x353b37,_0x5b374e=_0x861e63[_0x396c5f(0x384)]-0x1,_0x4da4a4;_0x5b374e>=0x0;_0x5b374e--)(_0x4da4a4=_0x861e63[_0x5b374e])&&(_0xa55d0c=_0x4da4a4(_0xa55d0c)||_0xa55d0c);return _0xa55d0c;},de=(_0x5971a1,_0x21b09e)=>(_0x2d8c4c,_0x8febbb)=>_0x21b09e(_0x2d8c4c,_0x8febbb,_0x5971a1),_s=(_0x36c76b,_0xa0b27a,_0x4e13e8)=>cs(_0x36c76b,_0xa0b27a+'',_0x4e13e8);const hs='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x164b20(0x399)]=class extends a['Plugin']{constructor(_0x1a7410=Me,_0x116aba,_0x3417d4,_0x59040d){const _0x44a770=_0x164b20;super(),this['_config']=_0x1a7410,this[_0x44a770(0x254)]=_0x116aba,this[_0x44a770(0x332)]=_0x3417d4,this[_0x44a770(0x44b)]=_0x59040d;const {..._0x287942}=a['merge']({},Me,this[_0x44a770(0x41b)]);this[_0x44a770(0x44b)]['setConfig'](Yt,_0x287942);}[_0x164b20(0x272)](){const _0x8daa64=_0x164b20;this[_0x8daa64(0x289)](),this[_0x8daa64(0x263)]();}[_0x164b20(0x245)](){const _0x539cc7=_0x164b20;this[_0x539cc7(0x460)]();}[_0x164b20(0x289)](){const _0x6395a8=_0x164b20;var _0x24d477;const _0x262a63=[[Re],[ne],[se],[ee],[te],[be],[Oe,{'useClass':ke}],[x[_0x6395a8(0x33b)],{'useClass':x[_0x6395a8(0x3a4)]}],[u[_0x6395a8(0x471)],{'useClass':Te}],[exports[_0x6395a8(0x409)]],[ie],[Z],[F],[me],[exports[_0x6395a8(0x429)]]];this['_config'][_0x6395a8(0x1f2)]&&_0x262a63[_0x6395a8(0x2b6)]([Q]),a['registerDependencies'](this[_0x6395a8(0x332)],a['mergeOverrideWithDependencies'](_0x262a63,(_0x24d477=this['_config'])==null?void 0x0:_0x24d477[_0x6395a8(0x326)]));}[_0x164b20(0x460)](){const _0x2243d6=_0x164b20;this['disposeWithMe'](this[_0x2243d6(0x254)][_0x2243d6(0x316)](a[_0x2243d6(0x352)][_0x2243d6(0x2ef)],[Ee])),this[_0x2243d6(0x2c8)](this['_renderManagerService'][_0x2243d6(0x316)](a[_0x2243d6(0x352)][_0x2243d6(0x23d)],[Ce]));}[_0x164b20(0x263)](){const _0x3a02ae=_0x164b20;a[_0x3a02ae(0x3d0)](this['_injector'],[[F],[exports[_0x3a02ae(0x409)]],[ie],[Z],[exports[_0x3a02ae(0x429)]],[ne]]),this[_0x3a02ae(0x41b)]['enableFrontendLog']&&a[_0x3a02ae(0x3d0)](this[_0x3a02ae(0x332)],[[Q]]);}},_s(exports[_0x164b20(0x399)],_0x164b20(0x3fb),hs),exports[_0x164b20(0x399)]=ls([a[_0x164b20(0x38e)](u['UniverCollaborationClientPlugin']),de(0x1,C['IRenderManagerService']),de(0x2,a[_0x164b20(0x3bb)](a[_0x164b20(0x31f)])),de(0x3,a[_0x164b20(0x46f)])],exports[_0x164b20(0x399)]);var us=Object[_0x164b20(0x413)],Is=(_0x22f0c1,_0x569a4f,_0x2b8464,_0x224c11)=>{const _0x3119e2=_0x164b20;for(var _0x47c290=_0x224c11>0x1?void 0x0:_0x224c11?us(_0x569a4f,_0x2b8464):_0x569a4f,_0x47256b=_0x22f0c1[_0x3119e2(0x384)]-0x1,_0x1c7867;_0x47256b>=0x0;_0x47256b--)(_0x1c7867=_0x22f0c1[_0x47256b])&&(_0x47c290=_0x1c7867(_0x47c290)||_0x47c290);return _0x47c290;},W=(_0x1b98f0,_0xbaad2c)=>(_0x232dda,_0x1c2231)=>_0xbaad2c(_0x232dda,_0x1c2231,_0x1b98f0);exports[_0x164b20(0x2fd)]=class extends u[_0x164b20(0x2ff)]{constructor(_0x5d4c98,_0x1d8274,_0x21ef71,_0x39c688,_0xd7feea){super(_0x5d4c98,_0x1d8274,_0x21ef71,_0x39c688,_0xd7feea);}async[_0x164b20(0x240)](_0x4d34e7){const _0x42a68e=_0x164b20,_0x4c9c3e=await this[_0x42a68e(0x36f)](),_0x2a7d65=this[_0x42a68e(0x29a)](_0x4d34e7,_0x4c9c3e);return this[_0x42a68e(0x396)](_0x2a7d65);}[_0x164b20(0x29a)](_0x5cca1f,_0xce5153){const _0x49cb77=_0x164b20,_0x2df1c9=typeof window>'u'?new URL(_0x5cca1f):new URL(_0x5cca1f,window[_0x49cb77(0x377)]['origin']);_0x2df1c9[_0x49cb77(0x432)][_0x49cb77(0x264)](_0x49cb77(0x323),_0xce5153);const _0x1b6325=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x49cb77(0x244)]);return _0x1b6325[_0x49cb77(0x410)](_0x49cb77(0x40c))&&_0x2df1c9[_0x49cb77(0x432)]['set'](_0x49cb77(0x40c),_0x1b6325[_0x49cb77(0x410)](_0x49cb77(0x40c))),_0x2df1c9['toString']();}async[_0x164b20(0x36f)](){const _0xd0c36a=_0x164b20;var _0x581155,_0x27133f,_0x54af7b;const _0x31af39=this['_configService'][_0xd0c36a(0x20c)](u[_0xd0c36a(0x31e)]),_0x34831c=(_0x581155=_0x31af39==null?void 0x0:_0x31af39['wsSessionTicketUrl'])!=null?_0x581155:u[_0xd0c36a(0x23a)];return(_0x54af7b=(_0x27133f=(await this['_httpService'][_0xd0c36a(0x410)](_0x34831c,{'headers':{'Content-Type':_0xd0c36a(0x47e)}}))['body'])==null?void 0x0:_0x27133f[_0xd0c36a(0x3c6)])!=null?_0x54af7b:'';}},exports[_0x164b20(0x2fd)]=Is([W(0x0,a[_0x164b20(0x3bb)](a[_0x164b20(0x31f)])),W(0x1,a[_0x164b20(0x3bb)](x[_0x164b20(0x30f)])),W(0x2,a[_0x164b20(0x46f)]),W(0x3,a[_0x164b20(0x484)]),W(0x4,g[_0x164b20(0x1f1)])],exports[_0x164b20(0x2fd)]);var Ss=Object[_0x164b20(0x413)],ds=(_0x33af08,_0x227363,_0x4f9844,_0x4e3dec)=>{const _0x1e93a9=_0x164b20;for(var _0x33f623=_0x4e3dec>0x1?void 0x0:_0x4e3dec?Ss(_0x227363,_0x4f9844):_0x227363,_0x9e1746=_0x33af08[_0x1e93a9(0x384)]-0x1,_0xb3e644;_0x9e1746>=0x0;_0x9e1746--)(_0xb3e644=_0x33af08[_0x9e1746])&&(_0x33f623=_0xb3e644(_0x33f623)||_0x33f623);return _0x33f623;},fe=(_0x4269c5,_0x542862)=>(_0x5a9c4e,_0x3089a1)=>_0x542862(_0x5a9c4e,_0x3089a1,_0x4269c5);exports[_0x164b20(0x261)]=class extends a[_0x164b20(0x1f0)]{constructor(_0x30ecde,_0x312d13,_0x401621){const _0x3d5bcd=_0x164b20;super(),this[_0x3d5bcd(0x3ed)]=_0x30ecde,this[_0x3d5bcd(0x3bd)]=_0x312d13,this[_0x3d5bcd(0x44b)]=_0x401621;}async[_0x164b20(0x223)](_0x277017,_0x409620,_0x37541e,..._0x271018){const _0x14f938=_0x164b20;var _0x4a81f5,_0x3ebfc4,_0x3620fa,_0x414e20;const _0x36b963=this[_0x14f938(0x3ed)][_0x14f938(0x453)]();if(!_0x36b963)throw new Error(_0x14f938(0x262));const _0x59b517=((_0x4a81f5=this[_0x14f938(0x44b)][_0x14f938(0x20c)](u[_0x14f938(0x407)]))!=null?_0x4a81f5:u[_0x14f938(0x3a9)])+'/'+_0x277017+'/run/'+_0x409620,_0x781bec=new URL(window[_0x14f938(0x377)]['href']),_0x57c724={'scriptId':_0x277017,'runId':(_0x3ebfc4=_0x781bec[_0x14f938(0x432)][_0x14f938(0x410)](_0x14f938(0x40c)))!=null?_0x3ebfc4:'','function':_0x409620,'unitId':_0x36b963['getUnitId'](),'argsOfFunction':JSON[_0x14f938(0x2ac)](_0x271018),'invokeId':(_0x3620fa=_0x37541e[_0x14f938(0x482)])!=null?_0x3620fa:'','executionId':(_0x414e20=_0x37541e[_0x14f938(0x2ce)])!=null?_0x414e20:''};try{const _0x4d5e8e=await this[_0x14f938(0x3bd)][_0x14f938(0x2a9)](_0x59b517,{'body':_0x57c724});return _0x4d5e8e[_0x14f938(0x27b)][_0x14f938(0x1d8)]&&_0x4d5e8e[_0x14f938(0x27b)]['error'][_0x14f938(0x457)]!==G['OK']?'Failed':_0x4d5e8e[_0x14f938(0x27b)]['result'];}catch{return'Failed';}}},exports[_0x164b20(0x261)]=ds([fe(0x0,a['IUniverInstanceService']),fe(0x1,a['Inject'](x['HTTPService'])),fe(0x2,a['IConfigService'])],exports[_0x164b20(0x261)]);const we=0x7530,ye=_0x164b20(0x337);class fs extends a['Disposable']{constructor(){const _0x9bd054=_0x164b20;super(),_(this,_0x9bd054(0x3aa),a['generateRandomId']()),_(this,_0x9bd054(0x21d),new Set()),_(this,_0x9bd054(0x2da),new Map()),_(this,_0x9bd054(0x32d),null),_(this,_0x9bd054(0x33d),new Map()),_(this,_0x9bd054(0x3c9),new Map()),this['_init']();}[_0x164b20(0x469)](){const _0xaf5a0b=_0x164b20;super['dispose'](),this[_0xaf5a0b(0x33d)][_0xaf5a0b(0x24e)]((_0x203fcd,_0x58702c)=>this['_removeClearOtherTimer'](_0x58702c)),this[_0xaf5a0b(0x32d)]&&window[_0xaf5a0b(0x40e)](this[_0xaf5a0b(0x32d)]);}[_0x164b20(0x26d)](_0x5cc567){const _0x30711a=_0x164b20;return this['_ensureSubject'](_0x5cc567)['pipe'](I[_0x30711a(0x38a)]());}[_0x164b20(0x44f)](_0x5dfe12){const _0x197de9=_0x164b20;this[_0x197de9(0x21d)][_0x197de9(0x243)]===0x0&&this[_0x197de9(0x3b3)](),this[_0x197de9(0x21d)][_0x197de9(0x38c)](_0x5dfe12),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5dfe12],'isForwarded':!0x1});}['disposeUnit'](_0x75fac9){const _0x20f4fd=_0x164b20;this[_0x20f4fd(0x21d)][_0x20f4fd(0x44e)](_0x75fac9),this[_0x20f4fd(0x21d)][_0x20f4fd(0x243)]===0x0&&this['_heartbeatTimer']&&window['clearInterval'](this[_0x20f4fd(0x32d)]);}['_init'](){const _0x256aa5=_0x164b20;this['disposeWithMe'](a[_0x256aa5(0x212)](I[_0x256aa5(0x3ab)](window,'storage')[_0x256aa5(0x2df)](_0x20c0a0=>{const _0x429902=_0x256aa5;if(_0x20c0a0[_0x429902(0x3b8)]!==ye||!_0x20c0a0[_0x429902(0x1cd)])return;const _0x2cae95=JSON[_0x429902(0x2d1)](_0x20c0a0['newValue']);this[_0x429902(0x3d9)](_0x2cae95);}))),window[_0x256aa5(0x2d9)](_0x256aa5(0x249),()=>this['_send']({'type':0x1,'memberID':this[_0x256aa5(0x3aa)],'unitIDs':Array['from'](this[_0x256aa5(0x21d)])}));}[_0x164b20(0x3d9)](_0x50b500){const _0x32761e=_0x164b20;switch(_0x50b500[_0x32761e(0x45a)]){case 0x0:this['_handleJoinEvent'](_0x50b500);break;case 0x1:this['_handleLeaveEvent'](_0x50b500);break;case 0x2:this['_handleHeartbeatEvent'](_0x50b500);break;}}['_handleJoinEvent'](_0x38aa4f){const _0x4cc2ac=_0x164b20,{unitIDs:_0x5cc255,memberID:_0x5bd650,isForwarded:_0x43b81a}=_0x38aa4f;_0x5cc255[_0x4cc2ac(0x24e)](_0x1b44b2=>{const _0x45cfdb=_0x4cc2ac;if(!_0x43b81a&&this[_0x45cfdb(0x2da)]['has'](_0x1b44b2)&&this[_0x45cfdb(0x2ed)](_0x1b44b2)[_0x45cfdb(0x276)](u[_0x45cfdb(0x1d9)][_0x45cfdb(0x3eb)]),!this[_0x45cfdb(0x2da)][_0x45cfdb(0x2fc)](_0x1b44b2)||!this[_0x45cfdb(0x2da)][_0x45cfdb(0x410)](_0x1b44b2)[_0x45cfdb(0x2fc)](_0x5bd650)){const _0x587539=this[_0x45cfdb(0x2da)][_0x45cfdb(0x410)](_0x1b44b2)||new Set();_0x587539[_0x45cfdb(0x38c)](_0x5bd650),this['_unitOnClients']['set'](_0x1b44b2,_0x587539),this['_scheduleClearOtherTimer'](_0x5bd650);}}),_0x43b81a||this[_0x4cc2ac(0x41e)]({'type':0x0,'memberID':this[_0x4cc2ac(0x3aa)],'unitIDs':[...this[_0x4cc2ac(0x21d)]],'isForwarded':!0x0});}[_0x164b20(0x315)](_0x5c159a){const _0x3bbb66=_0x164b20;this[_0x3bbb66(0x2ea)](_0x5c159a);const _0x4b8a85=window[_0x3bbb66(0x389)](()=>{const _0x3030e5=_0x3bbb66;this[_0x3030e5(0x2da)]['forEach'](_0x48c23a=>{_0x48c23a['delete'](_0x5c159a);});},we*0x2);this['_clearOtherTimers'][_0x3bbb66(0x264)](_0x5c159a,_0x4b8a85);}['_removeClearOtherTimer'](_0x13af99){const _0x5c349c=_0x164b20;if(this[_0x5c349c(0x33d)][_0x5c349c(0x2fc)](_0x13af99)){const _0x41536a=this[_0x5c349c(0x33d)][_0x5c349c(0x410)](_0x13af99);_0x41536a&&window[_0x5c349c(0x2f7)](_0x41536a),this[_0x5c349c(0x33d)][_0x5c349c(0x264)](_0x13af99,null);}}[_0x164b20(0x3e3)](_0x1dfa92){const _0x59891e=_0x164b20,{memberID:_0x24dddf,unitIDs:_0x577923}=_0x1dfa92;_0x577923[_0x59891e(0x24e)](_0x22e749=>{const _0x5c8f6b=_0x59891e;var _0x52eb9d;const _0x224b1b=this[_0x5c8f6b(0x2da)][_0x5c8f6b(0x410)](_0x22e749);_0x224b1b&&(_0x224b1b[_0x5c8f6b(0x44e)](_0x24dddf),(_0x52eb9d=this['_ensureSubject'](_0x22e749))==null||_0x52eb9d[_0x5c8f6b(0x276)](_0x224b1b[_0x5c8f6b(0x243)]===0x0?u['UnitStatus'][_0x5c8f6b(0x34f)]:u[_0x5c8f6b(0x1d9)][_0x5c8f6b(0x3eb)]));}),this['_removeClearOtherTimer'](_0x24dddf);}[_0x164b20(0x478)](_0x1a5d7c){const _0x4e993c=_0x164b20;this[_0x4e993c(0x315)](_0x1a5d7c[_0x4e993c(0x349)]);}[_0x164b20(0x41e)](_0x285fb1){const _0x9820b3=_0x164b20;localStorage[_0x9820b3(0x2fe)](ye,JSON['stringify'](_0x285fb1));}[_0x164b20(0x3b3)](){const _0x395c0b=_0x164b20;this[_0x395c0b(0x32d)]=window['setInterval'](()=>{const _0x3f0ce9=_0x395c0b;this[_0x3f0ce9(0x41e)]({'type':0x2,'memberID':this[_0x3f0ce9(0x3aa)]});},we);}[_0x164b20(0x2ed)](_0x879c13){const _0x494d88=_0x164b20;return this[_0x494d88(0x3c9)][_0x494d88(0x2fc)](_0x879c13)||this[_0x494d88(0x3c9)][_0x494d88(0x264)](_0x879c13,new I['BehaviorSubject'](u[_0x494d88(0x1d9)][_0x494d88(0x34f)])),this[_0x494d88(0x3c9)][_0x494d88(0x410)](_0x879c13);}}exports['IURLService']=Oe,exports[_0x164b20(0x488)]=je,exports['WebBrowserSingleActiveUnitService']=fs,exports[_0x164b20(0x3dc)]=ke;
|