@univerjs-pro/collaboration-client-ui 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.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/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/config/config.d.ts +7 -0
- package/lib/types/services/collaboration-socket/collaboration-socket.service.d.ts +1 -0
- package/lib/types/services/local-cache/web-local-cache.service.d.ts +11 -7
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
- package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +0 -32
- package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +0 -35
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +0 -38
- package/lib/types/services/formula-calculation-guard/util.d.ts +0 -11
- package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +0 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xd49935=_0x29e7;(function(_0x86a8d,_0x561401){const _0x1f09e3=_0x29e7,_0x34e800=_0x86a8d();while(!![]){try{const _0xac1db5=-parseInt(_0x1f09e3(0x349))/0x1*(-parseInt(_0x1f09e3(0x396))/0x2)+-parseInt(_0x1f09e3(0x319))/0x3+-parseInt(_0x1f09e3(0x300))/0x4+-parseInt(_0x1f09e3(0x215))/0x5+-parseInt(_0x1f09e3(0xf5))/0x6*(parseInt(_0x1f09e3(0x2c9))/0x7)+parseInt(_0x1f09e3(0x30d))/0x8*(-parseInt(_0x1f09e3(0x19e))/0x9)+-parseInt(_0x1f09e3(0x344))/0xa*(-parseInt(_0x1f09e3(0x10e))/0xb);if(_0xac1db5===_0x561401)break;else _0x34e800['push'](_0x34e800['shift']());}catch(_0x17ea66){_0x34e800['push'](_0x34e800['shift']());}}}(_0x10d5,0xb70ce),Object[_0xd49935(0x16c)](exports,Symbol[_0xd49935(0x324)],{'value':_0xd49935(0xe6)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function _0x29e7(_0x3be5b5,_0x7e267){_0x3be5b5=_0x3be5b5-0xa9;const _0x10d5fb=_0x10d5();let _0x29e71a=_0x10d5fb[_0x3be5b5];return _0x29e71a;}function ee(_0x1036fa){const _0x31741c=_0xd49935;switch(_0x1036fa){case e[_0x31741c(0x2e8)][_0x31741c(0x314)]:return{'icon':(0x0,c['jsx'])(o[_0x31741c(0x336)],{}),'colorClass':'univer-text-red-500','i18nKey':_0x31741c(0x22e),'tooltipKey':_0x31741c(0xea),'clickable':!0x0,'indicator':_0x31741c(0x11b)};case e[_0x31741c(0x2e8)][_0x31741c(0x10b)]:return{'icon':(0x0,c[_0x31741c(0x2f4)])(o['OffLineIcon'],{}),'colorClass':_0x31741c(0x357),'i18nKey':'collaboration-client-ui.collabStatus.conflict','clickable':!0x1,'indicator':'static'};case e[_0x31741c(0x2e8)]['FETCH_MISS']:return{'icon':(0x0,c[_0x31741c(0x2f4)])(o[_0x31741c(0x2fc)],{}),'colorClass':_0x31741c(0x262),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':_0x31741c(0x39e)};case e[_0x31741c(0x2e8)][_0x31741c(0x21e)]:return{'icon':(0x0,c[_0x31741c(0x2f4)])(o[_0x31741c(0x24f)],{}),'colorClass':_0x31741c(0xfa),'i18nKey':_0x31741c(0x1b1),'clickable':!0x1,'indicator':_0x31741c(0x11b)};case e[_0x31741c(0x2e8)]['AWAITING']:case e[_0x31741c(0x2e8)][_0x31741c(0x258)]:return{'icon':(0x0,c[_0x31741c(0x2f4)])(o[_0x31741c(0x2fc)],{}),'colorClass':_0x31741c(0x262),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x31741c(0x39e)};case e[_0x31741c(0x2e8)][_0x31741c(0x1fc)]:return{'icon':(0x0,c['jsx'])(o[_0x31741c(0x2fc)],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x31741c(0x1e4),'clickable':!0x1,'indicator':_0x31741c(0x39e)};case e[_0x31741c(0x2e8)][_0x31741c(0x281)]:return{'icon':(0x0,c[_0x31741c(0x2f4)])(o[_0x31741c(0x24f)],{}),'colorClass':_0x31741c(0x12a),'i18nKey':_0x31741c(0x30a),'clickable':!0x1,'indicator':_0x31741c(0x11b)};}}function te(_0x4710c0){const _0x46ddef=_0xd49935;let {status$:_0x1afe59}=_0x4710c0,_0x295ce0=(0x0,n['useObservable'])(_0x1afe59,e[_0x46ddef(0x2e8)][_0x46ddef(0x21e)]),_0x1a2c85=(0x0,n['useDependency'])(t[_0x46ddef(0xc1)]),_0x49049f=(0x0,n[_0x46ddef(0x1d8)])(e[_0x46ddef(0x104)]),_0x275aa6=(0x0,s['useMemo'])(()=>ee(_0x295ce0),[_0x295ce0]),_0x4742f1=_0x295ce0!==e[_0x46ddef(0x2e8)][_0x46ddef(0x314)],_0x53a7b2=_0x1a2c85['t'](_0x275aa6[_0x46ddef(0x242)]),_0x41523a=_0x275aa6['tooltipKey']?_0x1a2c85['t'](_0x275aa6[_0x46ddef(0x208)]):_0x53a7b2,_0x282f99=(0x0,s['useCallback'])(()=>{_0x4742f1||_0x49049f['reconnect']();},[_0x4742f1,_0x49049f]),_0x38a176=(0x0,s[_0x46ddef(0x2be)])(_0xf61760=>{const _0x3eada0=_0x46ddef;!_0x4742f1&&(_0xf61760[_0x3eada0(0x379)]===_0x3eada0(0xf4)||_0xf61760[_0x3eada0(0x379)]==='\x20')&&(_0xf61760[_0x3eada0(0x290)](),_0x49049f[_0x3eada0(0x2c0)]());},[_0x4742f1,_0x49049f]),_0x5ab59e=(0x0,c[_0x46ddef(0x2f4)])('span',{'className':(0x0,a[_0x46ddef(0x2e5)])(_0x46ddef(0x274),_0x46ddef(0x15b),_0x275aa6['colorClass'],{'univer-animate-spin':_0x275aa6['indicator']===_0x46ddef(0x39e),'univer-animate-pulse':_0x275aa6[_0x46ddef(0x23e)]===_0x46ddef(0x1e2)}),'aria-hidden':_0x46ddef(0xbd),'children':_0x275aa6['icon']}),_0x2989bb=(0x0,c[_0x46ddef(0x2f4)])(_0x46ddef(0x2f0),{'className':(0x0,a[_0x46ddef(0x2e5)])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x46ddef(0x26b),_0x46ddef(0xac),_0x46ddef(0x14f),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x275aa6[_0x46ddef(0x16f)],'univer-cursor-default':!_0x275aa6['clickable']}),'children':_0x5ab59e});return _0x275aa6[_0x46ddef(0x16f)]?(0x0,c[_0x46ddef(0x2f4)])(a[_0x46ddef(0x2d8)],{'title':_0x41523a,'placement':_0x46ddef(0x238),'children':(0x0,c[_0x46ddef(0x2f4)])(_0x46ddef(0x16d),{'type':_0x46ddef(0x16d),'onClick':_0x282f99,'onKeyDown':_0x38a176,'className':(0x0,a[_0x46ddef(0x2e5)])(_0x46ddef(0x2ec),_0x46ddef(0xe4),_0x46ddef(0x1b5),_0x46ddef(0x329)),'aria-label':_0x53a7b2+_0x46ddef(0x1a7)+_0x41523a,'role':_0x46ddef(0x1a9),'aria-live':_0x46ddef(0x305),'aria-atomic':'true','children':_0x2989bb})}):(0x0,c[_0x46ddef(0x2f4)])(a[_0x46ddef(0x2d8)],{'title':_0x41523a,'placement':_0x46ddef(0x238),'children':(0x0,c[_0x46ddef(0x2f4)])(_0x46ddef(0x136),{'className':(0x0,a['clsx'])(_0x46ddef(0x2ec),_0x46ddef(0xe4),_0x46ddef(0x1b5)),'aria-label':_0x53a7b2,'role':_0x46ddef(0x1a9),'aria-live':_0x46ddef(0x305),'aria-atomic':_0x46ddef(0xbd),'children':_0x2989bb})});}function y(_0x412c49){'@babel/helpers - typeof';const _0x22bea8=_0xd49935;return y=typeof Symbol==_0x22bea8(0xe7)&&typeof Symbol[_0x22bea8(0x1de)]==_0x22bea8(0x1ce)?function(_0x2dc7d2){return typeof _0x2dc7d2;}:function(_0x1fd28d){const _0x416845=_0x22bea8;return _0x1fd28d&&typeof Symbol==_0x416845(0xe7)&&_0x1fd28d['constructor']===Symbol&&_0x1fd28d!==Symbol[_0x416845(0xcd)]?'symbol':typeof _0x1fd28d;},y(_0x412c49);}function ne(_0x478580,_0x330609){const _0x3934b9=_0xd49935;if(y(_0x478580)!=_0x3934b9(0x11f)||!_0x478580)return _0x478580;var _0xe2ace6=_0x478580[Symbol[_0x3934b9(0x10a)]];if(_0xe2ace6!==void 0x0){var _0x3540aa=_0xe2ace6[_0x3934b9(0x27f)](_0x478580,_0x330609||_0x3934b9(0x287));if(y(_0x3540aa)!=_0x3934b9(0x11f))return _0x3540aa;throw TypeError(_0x3934b9(0x31a));}return(_0x330609===_0x3934b9(0x32e)?String:Number)(_0x478580);}function re(_0x360a69){const _0x34bc5e=_0xd49935;var _0x370e24=ne(_0x360a69,_0x34bc5e(0x32e));return y(_0x370e24)=='symbol'?_0x370e24:_0x370e24+'';}function b(_0x2ea398,_0x526b5f,_0x36fc62){const _0x510066=_0xd49935;return(_0x526b5f=re(_0x526b5f))in _0x2ea398?Object[_0x510066(0x16c)](_0x2ea398,_0x526b5f,{'value':_0x36fc62,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ea398[_0x526b5f]=_0x36fc62,_0x2ea398;}function x(_0x37c072,_0x4e0aa9){return function(_0x201a00,_0x288f75){_0x4e0aa9(_0x201a00,_0x288f75,_0x37c072);};}function S(_0x51a92d,_0x1d08ff,_0x3029a0,_0x4708f2){const _0x5861ab=_0xd49935;var _0x14bd53=arguments[_0x5861ab(0x22c)],_0x2a005f=_0x14bd53<0x3?_0x1d08ff:_0x4708f2===null?_0x4708f2=Object[_0x5861ab(0x2bd)](_0x1d08ff,_0x3029a0):_0x4708f2,_0x1e1a79;if(typeof Reflect==_0x5861ab(0x11f)&&typeof Reflect[_0x5861ab(0x227)]==_0x5861ab(0xe7))_0x2a005f=Reflect['decorate'](_0x51a92d,_0x1d08ff,_0x3029a0,_0x4708f2);else{for(var _0x2ea849=_0x51a92d[_0x5861ab(0x22c)]-0x1;_0x2ea849>=0x0;_0x2ea849--)(_0x1e1a79=_0x51a92d[_0x2ea849])&&(_0x2a005f=(_0x14bd53<0x3?_0x1e1a79(_0x2a005f):_0x14bd53>0x3?_0x1e1a79(_0x1d08ff,_0x3029a0,_0x2a005f):_0x1e1a79(_0x1d08ff,_0x3029a0))||_0x2a005f);}return _0x14bd53>0x3&&_0x2a005f&&Object['defineProperty'](_0x1d08ff,_0x3029a0,_0x2a005f),_0x2a005f;}let C=class extends t[_0xd49935(0x12f)]{constructor(_0xc62441,_0x2b7453,_0x41ac79,_0x26beae,_0x43aadf){const _0x150321=_0xd49935;super(),this[_0x150321(0x1df)]=_0xc62441,this[_0x150321(0x107)]=_0x2b7453,this[_0x150321(0x2ac)]=_0x41ac79,this[_0x150321(0x162)]=_0x26beae,this[_0x150321(0x155)]=_0x43aadf,b(this,'_status$',new r['BehaviorSubject'](e[_0x150321(0x2e8)][_0x150321(0x21e)])),b(this,_0x150321(0x20c),new Map()),this[_0x150321(0x114)](),this[_0x150321(0x29d)](),this[_0x150321(0x1bc)]();}[_0xd49935(0x2cf)](){const _0x1edb05=_0xd49935;this[_0x1edb05(0x20c)][_0x1edb05(0x141)](_0x1cfd53=>_0x1cfd53[_0x1edb05(0x2cf)]()),this['_presenceStatusRegistrations'][_0x1edb05(0x30e)](),this[_0x1edb05(0x118)][_0x1edb05(0x26d)](),super[_0x1edb05(0x2cf)]();}[_0xd49935(0x29d)](){const _0x56de25=_0xd49935;this[_0x56de25(0x1b7)]((0x0,r['merge'])(this[_0x56de25(0x1df)]['focused$'],this[_0x56de25(0x1df)]['getCurrentTypeOfUnit$'](t[_0x56de25(0x36e)]['UNIVER_DOC']),this[_0x56de25(0x1df)]['getCurrentTypeOfUnit$'](t[_0x56de25(0x36e)][_0x56de25(0x2ea)]))['pipe']((0x0,i[_0x56de25(0x343)])(()=>ie(this[_0x56de25(0x1df)])),(0x0,i[_0x56de25(0x2de)])(),(0x0,r[_0x56de25(0x2b7)])(_0x291d81=>_0x291d81?this['_collaborationController']['getCollabEntity$'](_0x291d81):(0x0,r['of'])(null)),(0x0,r[_0x56de25(0x2b7)])(_0x45a4a4=>_0x45a4a4?_0x45a4a4[_0x56de25(0x251)]:(0x0,r['of'])(e[_0x56de25(0x2e8)][_0x56de25(0x21e)])))[_0x56de25(0x385)](_0x2ace45=>{const _0x54aeed=_0x56de25;this[_0x54aeed(0x118)][_0x54aeed(0x147)](_0x2ace45);}));}[_0xd49935(0x114)](){const _0x4451f1=_0xd49935;this[_0x4451f1(0x1b7)](this[_0x4451f1(0x162)][_0x4451f1(0x35f)](n[_0x4451f1(0x350)][_0x4451f1(0x19f)],()=>(0x0,n[_0x4451f1(0x1e1)])(w({'status$':this['_status$']['asObservable']()}),this[_0x4451f1(0x107)])));}[_0xd49935(0x1bc)](){const _0x1578b3=_0xd49935;let _0x5ab946=this[_0x1578b3(0x155)][_0x1578b3(0x123)][_0x1578b3(0x385)](_0x4aec41=>{const _0x5c4de1=_0x1578b3;this[_0x5c4de1(0x23d)](_0x4aec41);});this[_0x1578b3(0x1b7)]((0x0,t[_0x1578b3(0x277)])(()=>_0x5ab946[_0x1578b3(0x20b)]()));}[_0xd49935(0x23d)](_0x46c3ab){const _0x336be8=_0xd49935;let _0x3c4ef2=new Map(_0x46c3ab[_0x336be8(0x35e)](_0x3a5caa=>_0x3a5caa['statusUIPart']!=null)[_0x336be8(0x343)](_0x368196=>[_0x368196[_0x336be8(0x2aa)],_0x368196]));this['_presenceStatusRegistrations'][_0x336be8(0x141)]((_0x2d93c0,_0x41fa4d)=>{const _0x28d40e=_0x336be8;_0x3c4ef2[_0x28d40e(0x19d)](_0x41fa4d)||(_0x2d93c0[_0x28d40e(0x2cf)](),this[_0x28d40e(0x20c)]['delete'](_0x41fa4d));}),_0x3c4ef2[_0x336be8(0x141)]((_0x2bd416,_0x588279)=>{const _0x125d1d=_0x336be8;this[_0x125d1d(0x20c)][_0x125d1d(0x19d)](_0x588279)||this[_0x125d1d(0x246)](_0x2bd416);});}['_registerPresenceStatusComponent'](_0xf7f82a){const _0x324d2f=_0xd49935;let _0x35963b=_0xf7f82a['statusUIPart'];if(!_0x35963b)return;let _0x429cc8=new t['DisposableCollection'](),_0x4f78a8=new r[(_0x324d2f(0x364))](e[_0x324d2f(0x2e8)][_0x324d2f(0x21e)]);_0x429cc8[_0x324d2f(0x25d)]((0x0,t[_0x324d2f(0x277)])(()=>_0x4f78a8[_0x324d2f(0x26d)]())),_0x429cc8['add'](this[_0x324d2f(0x162)][_0x324d2f(0x35f)](_0x35963b,()=>(0x0,n[_0x324d2f(0x1e1)])(w({'status$':_0x4f78a8[_0x324d2f(0x1a4)]()}),this[_0x324d2f(0x107)])));let _0x577828=this[_0x324d2f(0x1df)][_0x324d2f(0x15a)](_0xf7f82a['unitType'])[_0x324d2f(0x1f7)]((0x0,i[_0x324d2f(0x343)])(_0x3ec5a6=>(_0x3ec5a6==null?void 0x0:_0x3ec5a6[_0x324d2f(0x36a)]())??null),(0x0,i['distinctUntilChanged'])(),(0x0,r[_0x324d2f(0x2b7)])(_0x2e7bb7=>_0x2e7bb7?this[_0x324d2f(0x2ac)][_0x324d2f(0x27c)](_0x2e7bb7):(0x0,r['of'])(null)),(0x0,r[_0x324d2f(0x2b7)])(_0x1f8571=>(_0x1f8571==null?void 0x0:_0x1f8571[_0x324d2f(0x251)])??(0x0,r['of'])(e[_0x324d2f(0x2e8)][_0x324d2f(0x21e)])))[_0x324d2f(0x385)](_0x1cd972=>_0x4f78a8[_0x324d2f(0x147)](_0x1cd972));_0x429cc8['add']((0x0,t['toDisposable'])(()=>_0x577828[_0x324d2f(0x20b)]())),this[_0x324d2f(0x20c)][_0x324d2f(0x2a3)](_0xf7f82a['unitType'],_0x429cc8);}};C=S([x(0x0,t[_0xd49935(0xbb)]),x(0x1,(0x0,t['Inject'])(t['Injector'])),x(0x2,(0x0,t['Inject'])(e[_0xd49935(0x20d)])),x(0x3,n[_0xd49935(0x1cd)]),x(0x4,(0x0,t[_0xd49935(0x37d)])(n[_0xd49935(0x358)]))],C);function ie(_0x516179){const _0x222cca=_0xd49935;let _0x329889=_0x516179[_0x222cca(0x31b)](),_0x55da4f=_0x329889==null?void 0x0:_0x329889['getUnitId']();if(_0x55da4f&&!(0x0,t[_0x222cca(0x13d)])(_0x55da4f))return _0x55da4f;let _0x54fe3f=_0x516179['getCurrentUnitOfType'](t[_0x222cca(0x36e)][_0x222cca(0x11c)]),_0x203614=_0x54fe3f==null?void 0x0:_0x54fe3f[_0x222cca(0x36a)]();if(_0x203614&&!(0x0,t['isInternalEditorID'])(_0x203614))return _0x203614;let _0x21c62c=_0x516179[_0x222cca(0x196)](t['UniverInstanceType'][_0x222cca(0x2ea)]);if(_0x21c62c)return _0x21c62c[_0x222cca(0x36a)]();let _0x1c12d3=_0x516179[_0x222cca(0x24e)](t[_0x222cca(0x36e)][_0x222cca(0x11c)])[_0x222cca(0x37e)](_0x368377=>!(0x0,t[_0x222cca(0x13d)])(_0x368377['getUnitId']()));return _0x1c12d3?_0x1c12d3[_0x222cca(0x36a)]():null;}function w(_0x22a63d){let {status$:_0x267ce8}=_0x22a63d;return function(){const _0x34078b=_0x29e7;return(0x0,c[_0x34078b(0x2f4)])(te,{'status$':_0x267ce8});};}var ae=_0xd49935(0x17c),oe=_0xd49935(0x106);const T={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t[_0xd49935(0x2a7)][_0xd49935(0x179)],'handler':(_0x1d5270,_0x37b73a)=>{const _0x54f4ed=_0xd49935;let _0x1aef89=_0x1d5270[_0x54f4ed(0x36d)](n[_0x54f4ed(0x358)])[_0x54f4ed(0x36d)](_0x37b73a['unitType']);if(!_0x1aef89)return!0x1;switch(_0x37b73a[_0x54f4ed(0x1bd)][_0x54f4ed(0x1cf)]){case _0x54f4ed(0x2a3):return _0x1aef89[_0x54f4ed(0x1ae)](_0x37b73a[_0x54f4ed(0x1bd)][_0x54f4ed(0x1e5)]),!0x0;case _0x54f4ed(0x38d):return _0x1aef89[_0x54f4ed(0x362)](_0x37b73a[_0x54f4ed(0x1bd)][_0x54f4ed(0x16b)],_0x37b73a[_0x54f4ed(0x1bd)][_0x54f4ed(0x121)]),!0x0;case _0x54f4ed(0x30e):return _0x1aef89[_0x54f4ed(0x158)](_0x37b73a[_0x54f4ed(0x1bd)][_0x54f4ed(0x16b)]),!0x0;default:return!0x1;}}},se={};let E=class extends t['RxDisposable']{constructor(_0x48b2ac,_0x182202){const _0x3433e3=_0xd49935;super(),this[_0x3433e3(0x37a)]=_0x48b2ac,this[_0x3433e3(0xaa)]=_0x182202,this[_0x3433e3(0xd1)]();}[_0xd49935(0xd1)](){const _0x592875=_0xd49935;let _0x418219=this;this[_0x592875(0x1b7)](this[_0x592875(0x37a)]['addClipboardHook']({'onBeforePasteImage':async _0x27eaf8=>{const _0x4200c6=_0x592875;let _0x52e405=await _0x418219[_0x4200c6(0xaa)][_0x4200c6(0x1bf)](_0x27eaf8);return _0x52e405?{'source':_0x52e405[_0x4200c6(0x109)],'imageSourceType':_0x52e405[_0x4200c6(0x157)]}:null;}}));}};E=S([x(0x0,f[_0xd49935(0x347)]),x(0x1,t[_0xd49935(0x172)])],E);const ce=[_0xd49935(0x367),_0xd49935(0x254),_0xd49935(0xf3),'red.300','blue.400',_0xd49935(0x2e7)];var D=class extends t[_0xd49935(0x12f)]{constructor(..._0x6cc780){const _0xf2622=_0xd49935;super(..._0x6cc780),b(this,_0xf2622(0x119),new Map()),b(this,_0xf2622(0x339),0x0);}[_0xd49935(0x10f)](_0x4dc929){const _0x79c40=_0xd49935;if(this[_0x79c40(0x119)][_0x79c40(0x19d)](_0x4dc929))return this[_0x79c40(0x119)][_0x79c40(0x36d)](_0x4dc929);let _0x303259=ce[this[_0x79c40(0x339)]];return this[_0x79c40(0x339)]=(this[_0x79c40(0x339)]+0x1)%ce['length'],this[_0x79c40(0x119)][_0x79c40(0x2a3)](_0x4dc929,_0x303259),_0x303259;}};function le(_0x4a494a){const _0x15770e=_0xd49935;let _0x386d2e='';for(let _0x14cedc of _0x4a494a){let {startOffset:_0x377107,endOffset:_0x15414f,isActive:_0x523fee,rangeType:_0x33782d,segmentId:_0x503b1e,segmentPage:_0x27f851}=_0x14cedc;_0x386d2e[_0x15770e(0x22c)]&&(_0x386d2e+=','),_0x386d2e+=_0x377107+':'+_0x15414f+':'+(_0x523fee?'1':'0')+':'+_0x33782d+':'+_0x503b1e+':'+_0x27f851;}return _0x386d2e;}function ue(_0x449c55){const _0x346eed=_0xd49935;let _0x1ae675=_0x449c55['split'](','),_0x2ae909=[];for(let _0x1a8794 of _0x1ae675){let [_0x146f9c,_0xeafcab,_0x1f0aba,_0x96db0b,_0x162c11,_0x1b329c]=_0x1a8794[_0x346eed(0xb5)](':');_0x2ae909[_0x346eed(0x2f6)]({'startOffset':Number(_0x146f9c),'endOffset':Number(_0xeafcab),'collapsed':_0x146f9c===_0xeafcab,'isActive':_0x1f0aba==='1','rangeType':_0x96db0b===t[_0x346eed(0x2a9)][_0x346eed(0x116)]?t[_0x346eed(0x2a9)][_0x346eed(0x116)]:t[_0x346eed(0x2a9)][_0x346eed(0x2e4)],'segmentId':typeof _0x162c11==_0x346eed(0x32e)?String(_0x162c11):'','segmentPage':Number(_0x1b329c??-0x1)});}return _0x2ae909[_0x346eed(0x2e0)](_0x3038f1=>_0x3038f1['isActive'])||(_0x2ae909[0x0][_0x346eed(0x2dd)]=!0x0),_0x2ae909;}var O=class extends t['RxDisposable']{constructor(..._0x57bb3e){const _0x2e187f=_0xd49935;super(..._0x57bb3e),b(this,_0x2e187f(0x1b0),new r['BehaviorSubject'](null)),b(this,_0x2e187f(0x128),this[_0x2e187f(0x1b0)]['asObservable']());}[_0xd49935(0x304)](_0x3e8660){const _0xbd0fd=_0xd49935;let {unitID:_0x355cbe,memberID:_0x12e524,textRanges:_0xf9016b}=_0x3e8660,_0x38f627=le(_0xf9016b);if(_0x38f627==='')return;let _0x33b4fb={'unitID':_0x355cbe,'memberID':_0x12e524,'selection':_0x38f627};this[_0xbd0fd(0x1b0)]['next'](_0x33b4fb);}};let k=class extends t[_0xd49935(0x28a)]{get[_0xd49935(0x18a)](){const _0x49229f=_0xd49935;return this[_0x49229f(0x2a5)][_0x49229f(0x1a8)]();}get[_0xd49935(0x213)](){const _0x2fd3cc=_0xd49935;return this[_0x2fd3cc(0x21b)][_0x2fd3cc(0x1a8)]();}constructor(_0x3a0649,_0x1441ef,_0x4f4d1e,_0x4e1ea4,_0x4ce387,_0x3311fb,_0x1361f4,_0x429e20,_0x2cc310){const _0x377fa8=_0xd49935;super(),this[_0x377fa8(0xb1)]=_0x3a0649,this[_0x377fa8(0x387)]=_0x1441ef,this[_0x377fa8(0x107)]=_0x4f4d1e,this['_colorAssignService']=_0x4e1ea4,this[_0x377fa8(0xc0)]=_0x4ce387,this['_syncEditingCollabCursorService']=_0x3311fb,this['_transformService']=_0x1361f4,this[_0x377fa8(0x1df)]=_0x429e20,this[_0x377fa8(0x102)]=_0x2cc310,b(this,_0x377fa8(0xc3),!0x1),b(this,_0x377fa8(0xd1),!0x1),b(this,_0x377fa8(0x2a5),new r['BehaviorSubject'](new Map())),b(this,_0x377fa8(0x1f9),this[_0x377fa8(0x2a5)][_0x377fa8(0x1a4)]()),b(this,'_roomMembers$',new r[(_0x377fa8(0x364))]([])),b(this,_0x377fa8(0x176),this['_roomMembers$'][_0x377fa8(0x1f7)]((0x0,r[_0x377fa8(0x26e)])(0x12c))),b(this,_0x377fa8(0xf6),(0x0,t['debounce'])(_0x59c598=>{const _0x721fd3=_0x377fa8;let _0xfb10f6={'eventID':l[_0x721fd3(0x177)][_0x721fd3(0x12b)],'data':{'unitID':this['unitID'],'memberID':this[_0x721fd3(0x387)][_0x721fd3(0x10c)](),'selection':le(_0x59c598)}};this[_0x721fd3(0x387)][_0x721fd3(0xb9)](_0xfb10f6,this[_0x721fd3(0xb1)]);},0x64));}[_0xd49935(0x2cf)](){const _0x216558=_0xd49935;super[_0x216558(0x2cf)](),this[_0x216558(0x2a5)][_0x216558(0x147)](new Map()),this[_0x216558(0x2a5)][_0x216558(0x26d)](),this['_roomMembers$'][_0x216558(0x147)]([]),this['_roomMembers$'][_0x216558(0x26d)]();}[_0xd49935(0x16e)](){const _0x5900e9=_0xd49935;this['_init']||(this[_0x5900e9(0xd1)]=!0x0,this[_0x5900e9(0x387)][_0x5900e9(0x2b5)][_0x5900e9(0x1f7)]((0x0,r['takeUntil'])(this[_0x5900e9(0x105)]))[_0x5900e9(0x385)](_0xd561ac=>{const _0x5265ab=_0x5900e9;_0xd561ac===e['SessionStatus'][_0x5265ab(0x222)]?this[_0x5265ab(0x38c)]():this['_toggleOffline']();}),this[_0x5900e9(0x387)][_0x5900e9(0x1f5)][_0x5900e9(0x1f7)]((0x0,r['takeUntil'])(this[_0x5900e9(0x105)]))[_0x5900e9(0x385)](_0x159563=>{const _0x5b2bff=_0x5900e9;let _0x5246fa=_0x159563[_0x5b2bff(0xed)];_0x5246fa===l[_0x5b2bff(0x177)][_0x5b2bff(0x12b)]&&this['_onCursorUpdate'](_0x159563),_0x5246fa===l[_0x5b2bff(0x177)][_0x5b2bff(0x184)]&&this[_0x5b2bff(0x31e)](_0x159563);}),this[_0x5900e9(0x1b7)](this[_0x5900e9(0x102)]['onCommandExecuted'](_0x34d84d=>{const _0x22549d=_0x5900e9;let _0x1892b7=_0x34d84d[_0x22549d(0xbe)];_0x1892b7!=null&&this['_online']&&_0x34d84d['id']===d[_0x22549d(0xe0)]['id']&&_0x1892b7[_0x22549d(0x16b)]===this[_0x22549d(0xb1)]&&_0x1892b7['isEditing']===!0x1&&_0x1892b7[_0x22549d(0x1a1)][_0x22549d(0x22c)]>0x0&&this['_updateLocalCursor'](_0x1892b7[_0x22549d(0x1a1)]);})),this[_0x5900e9(0x371)][_0x5900e9(0x128)]['pipe']((0x0,r[_0x5900e9(0x139)])(this[_0x5900e9(0x105)]))[_0x5900e9(0x385)](_0x5f0a29=>{const _0x34cec9=_0x5900e9;if((_0x5f0a29==null?void 0x0:_0x5f0a29[_0x34cec9(0xb1)])!==this[_0x34cec9(0xb1)])return;let _0x3d0afd={'eventID':l[_0x34cec9(0x177)][_0x34cec9(0x12b)],'data':_0x5f0a29};this[_0x34cec9(0x231)](_0x3d0afd);}),this[_0x5900e9(0x1b7)](this[_0x5900e9(0x102)][_0x5900e9(0x351)](_0x55cba4=>{const _0x4dda70=_0x5900e9;if(_0x55cba4[_0x4dda70(0xbe)]==null)return;let _0x93fee2=_0x55cba4[_0x4dda70(0xbe)];if(_0x55cba4['id']!==d[_0x4dda70(0x1d1)]['id']||_0x93fee2[_0x4dda70(0x16b)]!==this[_0x4dda70(0xb1)])return;let _0x477d7c={'id':_0x4dda70(0x2e2),'params':_0x93fee2},_0x101aae=this[_0x4dda70(0x18a)];for(let [_0x24430d,_0x486a9f]of _0x101aae){let _0xe9ac7d={'id':_0x4dda70(0x2e2),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x486a9f['ranges']}},_0x121a5c=this[_0x4dda70(0x236)]['transformMutation'](_0x477d7c,_0xe9ac7d,!0x1);if((0x0,l[_0x4dda70(0x2a6)])(_0x121a5c))throw _0x121a5c[_0x4dda70(0x370)];_0x101aae['set'](_0x24430d,{..._0x486a9f,'ranges':_0x121a5c['m2Prime'][_0x4dda70(0xbe)][_0x4dda70(0x189)]});}queueMicrotask(()=>{const _0x5a0a9a=_0x4dda70;this[_0x5a0a9a(0x2a5)][_0x5a0a9a(0x147)](_0x101aae);});})));}['_onCursorUpdate'](_0x542bdd){const _0x2c6b67=_0xd49935;var _0x4a602a;let {memberID:_0x1d3895,selection:_0x1d778e}=_0x542bdd[_0x2c6b67(0x30f)],_0x17b32e=ue(_0x1d778e),_0x23ec7d=((_0x4a602a=this[_0x2c6b67(0xc0)][_0x2c6b67(0x279)](this['unitID'],_0x1d3895))==null?void 0x0:_0x4a602a['name'])??_0x2c6b67(0xb8),_0x20d2ee={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1d3895),'name':_0x23ec7d,'ranges':_0x17b32e},_0x53845d=this['cursorInfo'];_0x53845d[_0x2c6b67(0x2a3)](_0x1d3895,_0x20d2ee),this[_0x2c6b67(0x2a5)][_0x2c6b67(0x147)](_0x53845d);}['_onCursorDelete'](_0x106646){const _0x57ec34=_0xd49935;let {memberID:_0x3a2fdf}=_0x106646[_0x57ec34(0x30f)],_0x1623ee=this[_0x57ec34(0x18a)];_0x1623ee[_0x57ec34(0x315)](_0x3a2fdf),this[_0x57ec34(0x2a5)][_0x57ec34(0x147)](_0x1623ee);}[_0xd49935(0x38c)](){const _0x113799=_0xd49935;var _0x50cb29;if(this[_0x113799(0xc3)]=!0x0,((_0x50cb29=this[_0x113799(0x1df)][_0x113799(0x31b)]())==null?void 0x0:_0x50cb29[_0x113799(0x36a)]())!==this[_0x113799(0xb1)])return;let _0x406ebc=this[_0x113799(0x107)]['get'](d[_0x113799(0x167)])[_0x113799(0x1eb)]();Array['isArray'](_0x406ebc)&&_0x406ebc[_0x113799(0x22c)]>0x0&&this[_0x113799(0xf6)](_0x406ebc);}[_0xd49935(0x29a)](){this['_online']=!0x1;}};k=S([x(0x2,(0x0,t[_0xd49935(0x37d)])(t['Injector'])),x(0x3,(0x0,t[_0xd49935(0x37d)])(D)),x(0x4,(0x0,t[_0xd49935(0x37d)])(e[_0xd49935(0x2ab)])),x(0x5,(0x0,t['Inject'])(O)),x(0x6,l[_0xd49935(0x182)]),x(0x7,t[_0xd49935(0xbb)]),x(0x8,t[_0xd49935(0x34c)])],k);const de=()=>{let _0xe9fc7d=[],_0x2064d6=!0x1;return _0x3e2498=>{_0xe9fc7d['push'](_0x3e2498),_0x2064d6||(_0x2064d6=!0x0,setTimeout(()=>{const _0x3e375f=_0x29e7;_0xe9fc7d[_0x3e375f(0x141)](_0x319550=>_0x319550()),_0xe9fc7d=[],_0x2064d6=!0x1;}));};};let A=class extends t[_0xd49935(0x28a)]{get[_0xd49935(0x18a)](){const _0x4e57da=_0xd49935;return this[_0x4e57da(0x2a5)][_0x4e57da(0x1a8)]();}get[_0xd49935(0x213)](){const _0x509251=_0xd49935;return this[_0x509251(0x21b)]['getValue']();}constructor(_0x2a02e2,_0x35980c,_0xdbdc61,_0x4e472f,_0x17f19f,_0x260e41,_0x580887,_0x4d2072){const _0x2b0610=_0xd49935;super(),this[_0x2b0610(0xb1)]=_0x2a02e2,this['_session']=_0x35980c,this[_0x2b0610(0x107)]=_0xdbdc61,this[_0x2b0610(0x29e)]=_0x4e472f,this[_0x2b0610(0xc0)]=_0x17f19f,this[_0x2b0610(0x1df)]=_0x260e41,this[_0x2b0610(0x102)]=_0x580887,this[_0x2b0610(0x186)]=_0x4d2072,b(this,_0x2b0610(0xc3),!0x1),b(this,_0x2b0610(0xd1),!0x1),b(this,_0x2b0610(0x2a5),new r[(_0x2b0610(0x364))](new Map())),b(this,_0x2b0610(0x1f9),this['_cursorInfo$']['asObservable']()),b(this,_0x2b0610(0x21b),new r[(_0x2b0610(0x364))]([])),b(this,'roomMembers$',this['_roomMembers$']['pipe']((0x0,r[_0x2b0610(0x26e)])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x2b0610(0x389)])((_0xb3af52,_0x436108)=>{const _0x4e1718=_0x2b0610;let _0x43fb97={'eventID':l[_0x4e1718(0x177)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x4e1718(0xb1)],'memberID':this['_session'][_0x4e1718(0x10c)](),'selection':(0x0,h[_0x4e1718(0x2a4)])(_0xb3af52,_0x436108['range'])}};this[_0x4e1718(0x387)][_0x4e1718(0xb9)](_0x43fb97,this[_0x4e1718(0xb1)]);},0x64));}[_0xd49935(0x2cf)](){const _0x560a69=_0xd49935;super[_0x560a69(0x2cf)](),this[_0x560a69(0x2a5)][_0x560a69(0x147)](new Map()),this[_0x560a69(0x2a5)][_0x560a69(0x26d)](),this[_0x560a69(0x21b)][_0x560a69(0x147)]([]),this[_0x560a69(0x21b)][_0x560a69(0x26d)]();}[_0xd49935(0x16e)](){const _0x2d86f0=_0xd49935;this['_init']||(this['_init']=!0x0,this['_session'][_0x2d86f0(0x2b5)][_0x2d86f0(0x1f7)]((0x0,r[_0x2d86f0(0x139)])(this[_0x2d86f0(0x105)]))[_0x2d86f0(0x385)](_0x335311=>{const _0x275a06=_0x2d86f0;_0x335311===e[_0x275a06(0x2f5)]['ONLINE']?this[_0x275a06(0x38c)]():this[_0x275a06(0x29a)]();}),this[_0x2d86f0(0x387)][_0x2d86f0(0x1f5)][_0x2d86f0(0x1f7)]((0x0,r[_0x2d86f0(0x139)])(this[_0x2d86f0(0x105)]))['subscribe'](_0x4c3fce=>{const _0x5dd09e=_0x2d86f0;let _0x3ac05a=_0x4c3fce['eventID'];_0x3ac05a===l['CollaborationEvent'][_0x5dd09e(0x12b)]&&this[_0x5dd09e(0x231)](_0x4c3fce),_0x3ac05a===l[_0x5dd09e(0x177)][_0x5dd09e(0x184)]&&this[_0x5dd09e(0x31e)](_0x4c3fce);}),this['_onRefRangeChange'](),this[_0x2d86f0(0x1b7)](this[_0x2d86f0(0x102)][_0x2d86f0(0x351)](_0x285574=>{const _0xf5a7e4=_0x2d86f0;if(this['_online']&&_0x285574['id']===g[_0xf5a7e4(0x377)]['id']&&_0x285574['params'][_0xf5a7e4(0x16b)]===this[_0xf5a7e4(0xb1)]){let _0x14d119=_0x285574[_0xf5a7e4(0xbe)];this[_0xf5a7e4(0xf6)](_0x14d119[_0xf5a7e4(0x25f)],_0x14d119[_0xf5a7e4(0x397)][0x0]);}})));}[_0xd49935(0x231)](_0x3f05cf){const _0x583f87=_0xd49935;var _0x38c48b;let {memberID:_0x276443,selection:_0x2af810}=_0x3f05cf[_0x583f87(0x30f)],{sheetName:_0xe594ce,range:_0x5de03e}=(0x0,h[_0x583f87(0x29c)])(_0x2af810),_0x12a0aa={'name':((_0x38c48b=this['_memberService'][_0x583f87(0x279)](this[_0x583f87(0xb1)],_0x276443))==null?void 0x0:_0x38c48b['name'])??'Unknown\x20user','range':this[_0x583f87(0x143)](_0xe594ce,_0x5de03e),'sheetID':_0xe594ce,'color':this['_colorAssignService'][_0x583f87(0x10f)](_0x276443),'selection':_0x2af810},_0x1dc604=this[_0x583f87(0x18a)];_0x1dc604['set'](_0x276443,_0x12a0aa),this[_0x583f87(0x2a5)]['next'](_0x1dc604);}[_0xd49935(0x31e)](_0xe150ed){const _0x220fba=_0xd49935;let {memberID:_0x4b1dcf}=_0xe150ed[_0x220fba(0x30f)],_0x18d666=this[_0x220fba(0x18a)];_0x18d666['delete'](_0x4b1dcf),this[_0x220fba(0x2a5)][_0x220fba(0x147)](_0x18d666);}[_0xd49935(0x143)](_0x4ca3e5,_0x3f2981){const _0x5ad8b8=_0xd49935;var _0x5867ef;let _0x57054c=(_0x5867ef=this[_0x5ad8b8(0x1df)][_0x5ad8b8(0x32a)](this[_0x5ad8b8(0xb1)],t[_0x5ad8b8(0x36e)][_0x5ad8b8(0x2ea)]))==null||(_0x5867ef=_0x5867ef[_0x5ad8b8(0x13e)](_0x4ca3e5))==null?void 0x0:_0x5867ef[_0x5ad8b8(0x2b1)]();return(_0x57054c==null?void 0x0:_0x57054c[_0x5ad8b8(0x37e)](_0x271d9e=>t['Rectangle'][_0x5ad8b8(0x2ee)](_0x271d9e,_0x3f2981)))||_0x3f2981;}[_0xd49935(0x338)](){const _0x184d08=_0xd49935;let _0x5228d1=new t[(_0x184d08(0x29f))](),_0x4ecd0a=de(),_0x2cf365=()=>{const _0x5240be=_0x184d08;_0x5228d1['dispose']();let _0x14ffca=(_0x2d1984,_0x14cd45,_0xf98a86,_0x13726c)=>{const _0x5071d6=_0x29e7;let _0xc9a48f=[];switch(_0x2d1984['id']){case g[_0x5071d6(0x325)][_0x5071d6(0x14b)]:_0xc9a48f=(0x0,g[_0x5071d6(0x27b)])(_0x2d1984,_0x13726c);break;case g[_0x5071d6(0x325)][_0x5071d6(0xc6)]:_0xc9a48f=(0x0,g['handleDeleteRangeMoveUp'])(_0x2d1984,_0x13726c);break;case g[_0x5071d6(0x325)]['InsertColCommandId']:_0xc9a48f=(0x0,g['handleInsertCol'])(_0x2d1984,_0x13726c);break;case g['EffectRefRangId']['InsertRangeMoveDownCommandId']:_0xc9a48f=(0x0,g[_0x5071d6(0x217)])(_0x2d1984,_0x13726c);break;case g[_0x5071d6(0x325)][_0x5071d6(0x15f)]:_0xc9a48f=(0x0,g[_0x5071d6(0xf8)])(_0x2d1984,_0x13726c);break;case g[_0x5071d6(0x325)]['InsertRowCommandId']:_0xc9a48f=(0x0,g[_0x5071d6(0x256)])(_0x2d1984,_0x13726c);break;case g['EffectRefRangId'][_0x5071d6(0x15c)]:_0xc9a48f=(0x0,g[_0x5071d6(0x308)])(_0x2d1984,_0x13726c);break;case g[_0x5071d6(0x325)]['RemoveColCommandId']:_0xc9a48f=(0x0,g['handleIRemoveCol'])(_0x2d1984,_0x13726c);break;case g[_0x5071d6(0x325)]['RemoveRowCommandId']:_0xc9a48f=(0x0,g[_0x5071d6(0x2b9)])(_0x2d1984,_0x13726c);}let _0x38a477=(0x0,g[_0x5071d6(0x1e7)])(_0xc9a48f,_0x13726c),_0x260d4e=this[_0x5071d6(0x18a)][_0x5071d6(0x36d)](_0x14cd45);if(_0x260d4e&&_0x38a477){let _0x196de4={..._0x260d4e,'range':_0x38a477};this['cursorInfo'][_0x5071d6(0x2a3)](_0x14cd45,_0x196de4),_0x4ecd0a(()=>{const _0x52dc42=_0x5071d6;let _0x5b4afe=this['_refRangeService'][_0x52dc42(0x247)](_0x38a477,_0x4dc057=>(_0x5b4afe[_0x52dc42(0x2cf)](),_0x14ffca(_0x4dc057,_0x14cd45,_0xf98a86,_0x38a477)));_0x5228d1[_0x52dc42(0x25d)](_0x5b4afe);});}return{'redos':[],'undos':[]};};this[_0x5240be(0x18a)][_0x5240be(0x141)]((_0x4caf40,_0x4818f1)=>{const _0x2d8a70=_0x5240be;let {range:_0x271d6f,sheetID:_0x38650d}=_0x4caf40,_0x550d74=this[_0x2d8a70(0x186)][_0x2d8a70(0x247)](_0x271d6f,_0x17170a=>(_0x550d74[_0x2d8a70(0x2cf)](),_0x14ffca(_0x17170a,_0x4818f1,_0x38650d,_0x271d6f)));_0x5228d1[_0x2d8a70(0x25d)](_0x550d74);});};this['disposeWithMe']((0x0,t['toDisposable'])(this['_cursorInfo$']['subscribe'](()=>{_0x2cf365();})));}[_0xd49935(0x38c)](){const _0x556ccc=_0xd49935;var _0x358fda,_0x534459;if(this[_0x556ccc(0xc3)]=!0x0,((_0x358fda=this['_univerInstanceService'][_0x556ccc(0x31b)]())==null?void 0x0:_0x358fda[_0x556ccc(0x36a)]())!==this[_0x556ccc(0xb1)])return;let _0x2388de=(_0x534459=this[_0x556ccc(0x107)][_0x556ccc(0x36d)](g[_0x556ccc(0x346)])[_0x556ccc(0x1ed)]())==null?void 0x0:_0x534459[0x0],_0x468e6f=this[_0x556ccc(0x1df)]['getCurrentUnitOfType'](t[_0x556ccc(0x36e)][_0x556ccc(0x2ea)])[_0x556ccc(0x334)]();_0x2388de&&_0x468e6f&&this[_0x556ccc(0xf6)](_0x468e6f[_0x556ccc(0x398)](),_0x2388de);}[_0xd49935(0x29a)](){const _0x25aa2d=_0xd49935;this[_0x25aa2d(0xc3)]=!0x1;}};A=S([x(0x2,(0x0,t[_0xd49935(0x37d)])(t[_0xd49935(0x17e)])),x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0xd49935(0x37d)])(e[_0xd49935(0x2ab)])),x(0x5,t['IUniverInstanceService']),x(0x6,t['ICommandService']),x(0x7,(0x0,t[_0xd49935(0x37d)])(g[_0xd49935(0x293)]))],A);let j=class extends t[_0xd49935(0x28a)]{constructor(_0x183cdc,_0x194a6a,_0x452561){const _0x4ffb92=_0xd49935;super(),this['_univerInstanceService']=_0x183cdc,this[_0x4ffb92(0x107)]=_0x194a6a,this[_0x4ffb92(0x232)]=_0x452561,b(this,'_entities',new Map()),b(this,_0x4ffb92(0x175),new r['Subject']()),this[_0x4ffb92(0xd1)]();}[_0xd49935(0x2cf)](){const _0x4516c=_0xd49935;super[_0x4516c(0x2cf)](),this['_entityInit$'][_0x4516c(0x26d)](),this[_0x4516c(0x2f8)]['forEach'](_0x5f487a=>_0x5f487a['dispose']());}[_0xd49935(0x14e)](_0x18965b){const _0x5628c4=_0xd49935;let _0x3acda0=this[_0x5628c4(0x2f8)][_0x5628c4(0x36d)](_0x18965b);return _0x3acda0?_0x3acda0['cursorInfo$']:this[_0x5628c4(0x175)][_0x5628c4(0x1f7)]((0x0,r['filter'])(_0x4b08f7=>_0x4b08f7[_0x5628c4(0xb1)]===_0x18965b),(0x0,r[_0x5628c4(0x2b7)])(_0x2bbe62=>_0x2bbe62[_0x5628c4(0x1f9)]));}[_0xd49935(0xd1)](){const _0x424d72=_0xd49935;this[_0x424d72(0x1df)][_0x424d72(0x1b9)](t['UniverInstanceType'][_0x424d72(0x2ea)])[_0x424d72(0x1f7)]((0x0,r['takeUntil'])(this['dispose$']))[_0x424d72(0x385)](async _0x3e33ab=>{const _0x3a007d=_0x424d72;let _0x39d7f1=_0x3e33ab['unit'][_0x3a007d(0x36a)](),_0x300544=await this['_startSheetCollabCursor'](_0x39d7f1);this[_0x3a007d(0x175)]['next'](_0x300544),this[_0x3a007d(0x2f8)][_0x3a007d(0x2a3)](_0x39d7f1,_0x300544);}),this['_univerInstanceService'][_0x424d72(0x1b9)](t[_0x424d72(0x36e)][_0x424d72(0x11c)])[_0x424d72(0x1f7)]((0x0,r[_0x424d72(0x139)])(this[_0x424d72(0x105)]))[_0x424d72(0x1f7)]((0x0,r['filter'])(_0x38ce99=>!_0x38ce99[_0x424d72(0x354)][_0x424d72(0x36a)]()['startsWith']('__')))[_0x424d72(0x385)](async _0x5afdb3=>{const _0x247c31=_0x424d72;let {unit:_0x2d3a88}=_0x5afdb3,_0x3fb363=_0x2d3a88[_0x247c31(0x36a)](),_0x12a144=await this['_startDocCollabCursor'](_0x3fb363);this[_0x247c31(0x175)][_0x247c31(0x147)](_0x12a144),this['_entities'][_0x247c31(0x2a3)](_0x3fb363,_0x12a144);}),(0x0,r[_0x424d72(0x265)])(this[_0x424d72(0x1df)][_0x424d72(0x2a0)](t[_0x424d72(0x36e)][_0x424d72(0x11c)]),this[_0x424d72(0x1df)][_0x424d72(0x2a0)](t[_0x424d72(0x36e)][_0x424d72(0x2ea)]))[_0x424d72(0x1f7)]((0x0,r[_0x424d72(0x139)])(this[_0x424d72(0x105)]))['subscribe'](_0x1d8ad1=>{const _0x960112=_0x424d72;let _0x58c7c9=_0x1d8ad1[_0x960112(0x36a)](),_0x14c083=this['_entities']['get'](_0x58c7c9);_0x14c083&&(_0x14c083[_0x960112(0x2cf)](),this[_0x960112(0x2f8)]['delete'](_0x58c7c9));});}async[_0xd49935(0x1f8)](_0x4afa8e){const _0x2d550d=_0xd49935;let _0x44bae9=await this[_0x2d550d(0x232)]['requireSession'](_0x4afa8e),_0x2a54b6=this[_0x2d550d(0x107)]['createInstance'](A,_0x4afa8e,_0x44bae9);return _0x2a54b6['init'](),_0x2a54b6;}async[_0xd49935(0x18f)](_0x27930d){const _0x25f8d5=_0xd49935;let _0x144d13=await this[_0x25f8d5(0x232)][_0x25f8d5(0x1bb)](_0x27930d),_0x3130bd=this['_injector'][_0x25f8d5(0x1b2)](k,_0x27930d,_0x144d13);return _0x3130bd[_0x25f8d5(0x16e)](),_0x3130bd;}};j=S([x(0x0,t[_0xd49935(0xbb)]),x(0x1,(0x0,t[_0xd49935(0x37d)])(t['Injector'])),x(0x2,(0x0,t[_0xd49935(0x37d)])(e[_0xd49935(0x104)]))],j);function fe(_0xd24a51,_0x4eb4dc){const _0x5541f2=_0xd49935;_0xd24a51[_0x5541f2(0xec)](),_0xd24a51[_0x5541f2(0x202)]=_0x5541f2(0x2d9);let _0x5e6bae=_0xd24a51[_0x5541f2(0x2cd)](_0x4eb4dc)['width'];return _0xd24a51[_0x5541f2(0x2bc)](),Math[_0x5541f2(0x27a)](_0x5e6bae+0x8,0xc8);}function pe(_0x400921,_0x403ced){const _0x3cbdf6=_0xd49935;let {radius:_0x4781aa,width:_0x217407,height:_0x265d7b}=_0x403ced;_0x4781aa??=0x0,_0x217407??=0x1e,_0x265d7b??=0x1e;let _0x4e66e0=0x0,_0x23d634=0x0,_0x2b6ede=0x0;_0x4e66e0=_0x23d634=_0x2b6ede=Math[_0x3cbdf6(0x27a)](_0x4781aa,_0x217407/0x2,_0x265d7b/0x2),_0x400921[_0x3cbdf6(0x2c8)](),_0x400921['moveTo'](_0x4e66e0,0x0),_0x400921[_0x3cbdf6(0x153)](_0x217407-_0x23d634,0x0),_0x400921[_0x3cbdf6(0x108)](_0x217407-_0x23d634,_0x23d634,_0x23d634,Math['PI']*0x3/0x2,0x0,!0x1),_0x400921[_0x3cbdf6(0x153)](_0x217407,_0x265d7b-_0x2b6ede),_0x400921[_0x3cbdf6(0x108)](_0x217407-_0x2b6ede,_0x265d7b-_0x2b6ede,_0x2b6ede,0x0,Math['PI']/0x2,!0x1),_0x400921['lineTo'](0x0,_0x265d7b),_0x400921[_0x3cbdf6(0x153)](0x0,_0x4e66e0),_0x400921[_0x3cbdf6(0x108)](_0x4e66e0,_0x4e66e0,_0x4e66e0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x400921[_0x3cbdf6(0x380)](),_0x403ced[_0x3cbdf6(0xbf)]&&(_0x400921[_0x3cbdf6(0xec)](),_0x400921[_0x3cbdf6(0x297)]=_0x403ced[_0x3cbdf6(0xbf)],_0x403ced[_0x3cbdf6(0x18c)]==='evenodd'?_0x400921[_0x3cbdf6(0xbf)](_0x3cbdf6(0x190)):_0x400921[_0x3cbdf6(0xbf)](),_0x400921[_0x3cbdf6(0x2bc)]());}var me=class e extends p[_0xd49935(0x34d)]{constructor(_0x445738,_0x38b4b8){const _0x4fb61e=_0xd49935;super(_0x445738,_0x38b4b8),b(this,_0x4fb61e(0x352),void 0x0),b(this,'text',void 0x0),this[_0x4fb61e(0x352)]=_0x38b4b8==null?void 0x0:_0x38b4b8[_0x4fb61e(0x352)],this[_0x4fb61e(0x150)]=_0x38b4b8==null?void 0x0:_0x38b4b8[_0x4fb61e(0x150)];}static[_0xd49935(0x185)](_0x48c5d6,_0x746815){const _0x2c70ce=_0xd49935;let {text:_0x60e90f,color:_0x5cbc02}=_0x746815;_0x48c5d6[_0x2c70ce(0xec)](),_0x48c5d6[_0x2c70ce(0x202)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';let _0x362713=_0x48c5d6[_0x2c70ce(0x2cd)](_0x60e90f)[_0x2c70ce(0x2ad)];if(pe(_0x48c5d6,{'height':0x14,'radius':0x4,'width':fe(_0x48c5d6,_0x60e90f),'fill':_0x5cbc02,'evented':!0x1}),_0x48c5d6['fillStyle']=_0x2c70ce(0x366),_0x362713>0xc0){let _0x1d08cc='',_0x1874b5=0x0;for(let _0x5e7752 of _0x60e90f){let _0x5e00b9=_0x48c5d6['measureText'](_0x5e7752)[_0x2c70ce(0x2ad)];if(_0x1874b5+_0x5e00b9<=0xc0-_0x48c5d6[_0x2c70ce(0x2cd)](_0x2c70ce(0x1b8))[_0x2c70ce(0x2ad)])_0x1d08cc+=_0x5e7752,_0x1874b5+=_0x5e00b9;else{_0x1d08cc+=_0x2c70ce(0x1b8);break;}}_0x48c5d6[_0x2c70ce(0x369)](_0x1d08cc,0x4,0xf);}else _0x48c5d6[_0x2c70ce(0x369)](_0x60e90f,0x4,0xf);_0x48c5d6['restore']();}['_draw'](_0x4ce8d4){const _0x3ef5b0=_0xd49935;e[_0x3ef5b0(0x185)](_0x4ce8d4,this);}};const M=_0xd49935(0x203);var he=class{constructor(_0x2f63cf,_0x4f1d75,_0x15ad27,_0x858f48){const _0x12c81c=_0xd49935;this[_0x12c81c(0x156)]=_0x2f63cf,this['_scene']=_0x4f1d75,this[_0x12c81c(0x2b0)]=_0x15ad27,this[_0x12c81c(0x2fe)]=_0x858f48,b(this,_0x12c81c(0x39a),[]),b(this,_0x12c81c(0x17f),null),b(this,_0x12c81c(0x2a1),null),b(this,_0x12c81c(0x1da),null),b(this,'_hideTimer',null),b(this,_0x12c81c(0x210),null),this['_render']();}set[_0xd49935(0x127)](_0x472804){const _0x17d2fc=_0xd49935;_0x472804?(this[_0x17d2fc(0x1da)]&&this[_0x17d2fc(0x1da)][_0x17d2fc(0x259)](),this['_textBubble']&&this[_0x17d2fc(0x2a1)][_0x17d2fc(0xdf)]()):(this[_0x17d2fc(0x1da)]&&this[_0x17d2fc(0x1da)][_0x17d2fc(0xdf)](),this[_0x17d2fc(0x2a1)]&&this[_0x17d2fc(0x2a1)][_0x17d2fc(0x259)]());}[_0xd49935(0x2cf)](){const _0x31e5d0=_0xd49935;for(let _0x495409 of this[_0x31e5d0(0x39a)])_0x495409[_0x31e5d0(0x2cf)]();this[_0x31e5d0(0x2a1)]&&this[_0x31e5d0(0x2a1)]['dispose'](),this['_anchorDot']&&this[_0x31e5d0(0x1da)]['dispose'](),this['_anchor']&&this['_anchor'][_0x31e5d0(0x2cf)](),this[_0x31e5d0(0x210)]&&this[_0x31e5d0(0x210)]();}[_0xd49935(0x126)](){const _0x28b3d2=_0xd49935;let {_docSkeleton:_0x56d23d,_document:_0x1d3335}=this,{color:_0x1a1b1c,name:_0x2d9e57,ranges:_0x3bcdf1}=this[_0x28b3d2(0x156)],_0x2bcbc1=_0x1d3335[_0x28b3d2(0x322)](),{docsLeft:_0x8f3372,docsTop:_0x36b541}=_0x2bcbc1,_0x3e3ce5=new f['NodePositionConvertToCursor'](_0x2bcbc1,_0x56d23d);for(let {startOffset:_0x5209f4,endOffset:_0x13b713,rangeType:_0x551539,segmentId:_0x484dac,segmentPage:_0x402993,collapsed:_0xa7b634,isActive:_0x219320}of _0x3bcdf1){let _0x56092a=_0x56d23d[_0x28b3d2(0x275)](_0x5209f4,!0x0,_0x484dac,_0x402993),_0x354ee1=_0x56d23d['findNodePositionByCharIndex'](_0x13b713,!0x0,_0x484dac,_0x402993);_0x354ee1??=_0x56d23d['findNodePositionByCharIndex'](_0x13b713-0x1,!0x1,_0x484dac,_0x402993);let _0x22a249=ge(_0x56092a,_0x354ee1);if(_0x219320&&_0x22a249[_0x28b3d2(0x335)]){let {contentBoxPointGroup:_0x3e3048}=_0x3e3ce5[_0x28b3d2(0x212)](_0x354ee1,_0x354ee1);if(_0x3e3048[_0x28b3d2(0x22c)]===0x0)continue;this[_0x28b3d2(0x330)](_0x1a1b1c,_0x3e3048,_0x8f3372,_0x36b541,_0x2d9e57),this[_0x28b3d2(0x210)]=this[_0x28b3d2(0x326)]();}if(_0x56092a&&_0x354ee1){if(_0x551539===t[_0x28b3d2(0x2a9)][_0x28b3d2(0x2e4)]){let {pointGroup:_0x45803a}=new f[(_0x28b3d2(0x271))](_0x2bcbc1,_0x56d23d)[_0x28b3d2(0x212)](_0x56092a,_0x354ee1)??{};if(_0x45803a==null||_0x45803a['length']===0x0)continue;this[_0x28b3d2(0x1a0)](_0x1a1b1c,_0x45803a,_0x8f3372,_0x36b541);}else{if(!_0xa7b634&&_0x22a249['canRenderSelection']){let {borderBoxPointGroup:_0x21fba9}=_0x3e3ce5[_0x28b3d2(0x212)](_0x56092a,_0x354ee1);if(_0x21fba9[_0x28b3d2(0x22c)]===0x0)continue;this[_0x28b3d2(0x1c3)](_0x1a1b1c,_0x21fba9,_0x8f3372,_0x36b541);}}}}}[_0xd49935(0x330)](_0x20a2ac,_0x51dffb,_0x19af94,_0x27b86f,_0x5d4d2f){const _0x468262=_0xd49935;let {left:_0x571e27,top:_0x4939ed,height:_0x26cf34}=this[_0x468262(0x1b6)](_0x51dffb),_0x77a489=1.5/this[_0x468262(0x161)](),_0x158f2b=new p['Rect'](M+(0x0,t['generateRandomId'])(0x6),{'left':_0x571e27+_0x19af94-_0x77a489,'top':_0x4939ed+_0x27b86f,'height':_0x26cf34,'width':1.5,'fill':_0x20a2ac||(0x0,p['getColor'])(t[_0x468262(0x318)][_0x468262(0x33f)],0x0),'strokeWidth':_0x77a489,'stroke':_0x468262(0x125),'evented':!0x0});this[_0x468262(0x17f)]=_0x158f2b,this[_0x468262(0x32f)][_0x468262(0x33b)](_0x158f2b,f[_0x468262(0x2fd)]);let _0x339e64=new p[(_0x468262(0x312))](M+(0x0,t[_0x468262(0x2ca)])(0x6),{'left':_0x571e27+_0x19af94-_0x77a489,'top':_0x4939ed+_0x27b86f-0x2,'height':0x4,'width':0x4,'fill':_0x20a2ac||(0x0,p[_0x468262(0x219)])(t[_0x468262(0x318)][_0x468262(0x33f)],0x0),'strokeWidth':0x0,'stroke':_0x20a2ac||(0x0,p['getColor'])(t['COLORS'][_0x468262(0x33f)],0x0),'evented':!0x1});this['_anchorDot']=_0x339e64,this[_0x468262(0x32f)]['addObject'](_0x339e64,f['TEXT_RANGE_LAYER_INDEX']);let _0x521e5d=new me(M+(0x0,t[_0x468262(0x2ca)])(0x6),{'left':_0x571e27+_0x19af94-_0x77a489,'top':_0x4939ed+_0x27b86f-0x14,'text':_0x5d4d2f,'color':_0x20a2ac});this['_textBubble']=_0x521e5d,this[_0x468262(0x32f)][_0x468262(0x33b)](_0x521e5d,f[_0x468262(0x2fd)]),this[_0x468262(0x127)]=!0x1;}[_0xd49935(0x326)](){const _0x119258=_0xd49935;let _0x58c57a=this[_0x119258(0x17f)][_0x119258(0x1cc)][_0x119258(0x317)](()=>{const _0x3afaa1=_0x119258;this[_0x3afaa1(0x127)]=!0x0;}),_0x215b6a=this[_0x119258(0x17f)][_0x119258(0xeb)][_0x119258(0x317)](()=>{const _0x5aca6c=_0x119258;this[_0x5aca6c(0xd5)]&&clearTimeout(this['_hideTimer']),this[_0x5aca6c(0xd5)]=setTimeout(()=>{const _0x2edb61=_0x5aca6c;this[_0x2edb61(0x127)]=!0x1;},0x7d0);});return()=>{const _0x2c2582=_0x119258;_0x58c57a[_0x2c2582(0x20b)](),_0x215b6a[_0x2c2582(0x20b)]();};}[_0xd49935(0x1c3)](_0x4419e5,_0x5150c7,_0x289026,_0x1bfaae){const _0x18ec3b=_0xd49935;let _0x36d5ec=0.2,_0xaf23d9=new t[(_0x18ec3b(0x1fb))](_0x4419e5)['setAlpha'](_0x36d5ec)[_0x18ec3b(0x253)](),_0x168a7f=new p[(_0x18ec3b(0x39f))]('collab-text-range-'+(0x0,t[_0x18ec3b(0x2ca)])(0x6),{'pointsGroup':_0x5150c7,'fill':_0xaf23d9||(0x0,p[_0x18ec3b(0x219)])(t[_0x18ec3b(0x318)]['black'],_0x36d5ec),'left':_0x289026,'top':_0x1bfaae,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x18ec3b(0x39a)][_0x18ec3b(0x2f6)](_0x168a7f),this[_0x18ec3b(0x32f)]['addObject'](_0x168a7f,f[_0x18ec3b(0x2fd)]);}[_0xd49935(0x1a0)](_0x4e21b1,_0x38b4fb,_0x1d434d,_0x267583){const _0x37f973=_0xd49935;let _0x3dcc6=0.2,_0x25db02=new t[(_0x37f973(0x1fb))](_0x4e21b1)[_0x37f973(0x2dc)](_0x3dcc6)[_0x37f973(0x253)](),_0xc469c1=new p['RegularPolygon'](_0x37f973(0x113)+(0x0,t[_0x37f973(0x2ca)])(0x6),{'pointsGroup':_0x38b4fb,'fill':_0x25db02||(0x0,p[_0x37f973(0x219)])(t[_0x37f973(0x318)][_0x37f973(0x33f)],_0x3dcc6),'left':_0x1d434d,'top':_0x267583,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x37f973(0x39a)][_0x37f973(0x2f6)](_0xc469c1),this[_0x37f973(0x32f)][_0x37f973(0x33b)](_0xc469c1,f[_0x37f973(0x2fd)]);}[_0xd49935(0x1b6)](_0x1b7a25){let _0x44685b=_0x1b7a25[0x0],_0xdff9c9=_0x44685b[0x0],_0x86c500=_0x44685b[0x2],{x:_0x4883f9,y:_0x2642a4}=_0xdff9c9,{x:_0x28a757,y:_0x103425}=_0x86c500;return{'left':_0x4883f9,'top':_0x2642a4,'width':_0x28a757-_0x4883f9,'height':_0x103425-_0x2642a4};}[_0xd49935(0x161)](){const _0x447116=_0xd49935;let {scaleX:_0x73f354,scaleY:_0x56b5f5}=this[_0x447116(0x32f)][_0x447116(0x239)]();return Math[_0x447116(0xcb)](_0x73f354,_0x56b5f5);}};function ge(_0x3a3819,_0x24423e){const _0x70075=_0xd49935;if(!_0x24423e)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x3a3819||_0x3a3819[_0x70075(0x2fb)]!==_0x24423e[_0x70075(0x2fb)]||(_0x3a3819[_0x70075(0x2fb)]===p[_0x70075(0x2c7)][_0x70075(0x130)]||_0x3a3819['pageType']===p[_0x70075(0x2c7)]['FOOTER'])&&_0x3a3819['segmentPage']!==_0x24423e[_0x70075(0x188)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x4ba9b9=(0x0,p[_0x70075(0x260)])(_0x3a3819),_0xb1d1e6=(0x0,p[_0x70075(0x260)])(_0x24423e);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x4ba9b9==null||_0xb1d1e6==null?_0x4ba9b9==null&&_0xb1d1e6==null:_0x4ba9b9[_0x70075(0xad)]===_0xb1d1e6['pageIndex']&&_0x4ba9b9['columnGroupId']===_0xb1d1e6[_0x70075(0x1d3)]&&_0x4ba9b9['columnIndex']===_0xb1d1e6[_0x70075(0x15d)]};}let N=class extends t[_0xd49935(0x28a)]{constructor(_0x1c1f1c,_0x52ce57,_0x4415fc,_0x3950eb,_0x16746b){const _0x3db226=_0xd49935;super(),this['_context']=_0x1c1f1c,this[_0x3db226(0x345)]=_0x52ce57,this[_0x3db226(0x34f)]=_0x4415fc,this[_0x3db226(0x102)]=_0x3950eb,this[_0x3db226(0x299)]=_0x16746b,b(this,_0x3db226(0x2db),[]),b(this,_0x3db226(0x39b),[]),this[_0x3db226(0xd1)]();}[_0xd49935(0xd1)](){const _0x197ad1=_0xd49935;let _0x19cd3a=this[_0x197ad1(0x14a)][_0x197ad1(0x16b)],_0x4ea627=this[_0x197ad1(0x345)];this[_0x197ad1(0x1b7)]((0x0,r[_0x197ad1(0x2b3)])([this[_0x197ad1(0x34f)][_0x197ad1(0x14e)](_0x19cd3a),this[_0x197ad1(0x299)][_0x197ad1(0x1ac)]])['pipe']((0x0,i[_0x197ad1(0x343)])(([_0x493286,_0x3687cf])=>({'skeleton':_0x4ea627[_0x197ad1(0xae)](),'cursors':[..._0x493286[_0x197ad1(0x1c8)]()][_0x197ad1(0x263)](_0x16a646=>({..._0x16a646,'color':this[_0x197ad1(0x299)][_0x197ad1(0x1b4)](_0x16a646['color'])}))})))[_0x197ad1(0x385)](_0x219c0a=>{if(this['_removeCollabCursors'](),_0x219c0a){let {skeleton:_0xdeb3c1,cursors:_0x26e814}=_0x219c0a;this['_updateCollabCursors'](_0xdeb3c1,_0x26e814);}})),this['_initResize'](),this[_0x197ad1(0xc2)]();}[_0xd49935(0x341)](_0x141a1b,_0x379870){const _0x657803=_0xd49935;let {scene:_0x1e9ca2,mainComponent:_0x1b94b8}=this[_0x657803(0x14a)],_0x2cce67=_0x379870['map'](_0x6fdbae=>new he(_0x6fdbae,_0x1e9ca2,_0x141a1b,_0x1b94b8));this['_cursorShapes']=_0x2cce67,this[_0x657803(0x39b)]=_0x379870;}[_0xd49935(0x283)](){const _0x50df56=_0xd49935;this[_0x50df56(0xb0)]();let {scene:_0xd44f7,mainComponent:_0xdd1ca8}=this[_0x50df56(0x14a)],_0x5ab84a=this['_docSkeletonManagerService'][_0x50df56(0xae)](),_0x382dec=this['_cursors']['map'](_0x298dc0=>new he(_0x298dc0,_0xd44f7,_0x5ab84a,_0xdd1ca8));this[_0x50df56(0x2db)]=_0x382dec;}[_0xd49935(0xb0)](){const _0x561148=_0xd49935;this['_cursorShapes'][_0x561148(0x141)](_0x50831d=>_0x50831d[_0x561148(0x2cf)]()),this['_cursorShapes']=[];}[_0xd49935(0xc2)](){const _0x210f33=_0xd49935;let _0x2bbf0c=[f[_0x210f33(0x1ea)]['id']];this[_0x210f33(0x1b7)](this[_0x210f33(0x102)][_0x210f33(0x351)](_0x2923db=>{const _0x3347fd=_0x210f33;_0x2bbf0c[_0x3347fd(0x23a)](_0x2923db['id'])&&_0x2923db[_0x3347fd(0xbe)][_0x3347fd(0x16b)]===this[_0x3347fd(0x14a)][_0x3347fd(0x16b)]&&this['_refreshCollabCursors']();}));}[_0xd49935(0xd6)](){const _0x2e6571=_0xd49935;this['disposeWithMe']((0x0,t['fromEventSubject'])(this[_0x2e6571(0x14a)]['engine']['onTransformChange$'])[_0x2e6571(0x1f7)]((0x0,i[_0x2e6571(0x35e)])(_0x2f2e28=>_0x2f2e28[_0x2e6571(0x1cf)]===p[_0x2e6571(0x270)][_0x2e6571(0x37f)]),(0x0,i['throttleTime'])(0x10))[_0x2e6571(0x385)](()=>{this['_refreshCollabCursors']();}));}};N=S([x(0x1,(0x0,t['Inject'])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t[_0xd49935(0x37d)])(j)),x(0x3,t[_0xd49935(0x34c)]),x(0x4,(0x0,t['Inject'])(t[_0xd49935(0x386)]))],N);var _e=class extends p[_0xd49935(0x34d)]{constructor(_0x463d41,_0x49896a){const _0x5ea3d0=_0xd49935;super(_0x463d41,_0x49896a),b(this,_0x5ea3d0(0x234),void 0x0),b(this,_0x5ea3d0(0x20f),!0x1),b(this,'_range',void 0x0),b(this,_0x5ea3d0(0x218),''),b(this,_0x5ea3d0(0x22b),_0x5ea3d0(0x124)),b(this,_0x5ea3d0(0x1af),void 0x0),b(this,_0x5ea3d0(0x120),void 0x0),b(this,'_highlight',void 0x0),b(this,'_highlightSecond',0x4),b(this,_0x5ea3d0(0x399),void 0x0),b(this,'_blinkIntervalTimer',void 0x0),b(this,_0x5ea3d0(0x1ff),!0x0),b(this,_0x5ea3d0(0x228),0x0),b(this,_0x5ea3d0(0x257),_0x5ea3d0(0x1e8)),_0x49896a&&(this[_0x5ea3d0(0x36b)](_0x49896a),_0x49896a[_0x5ea3d0(0x33e)]&&(_0x49896a['highlightSecond']??this[_0x5ea3d0(0x1ab)])&&this[_0x5ea3d0(0x19c)](_0x49896a[_0x5ea3d0(0x2c4)]??this[_0x5ea3d0(0x1ab)])),this['onPointerEnter$'][_0x5ea3d0(0x317)](()=>this[_0x5ea3d0(0x36b)]({'hovered':!0x0})),this[_0x5ea3d0(0xeb)][_0x5ea3d0(0x317)](()=>this[_0x5ea3d0(0x36b)]({'hovered':!0x1}));}[_0xd49935(0xfd)](_0x1581c6){const _0x3ae885=_0xd49935;this[_0x3ae885(0x228)]=_0x1581c6;}[_0xd49935(0x36b)](_0x2ae9ae){const _0xb7c440=_0xd49935;this[_0xb7c440(0x234)]=_0x2ae9ae['color']??this['_color'],this[_0xb7c440(0x20f)]=_0x2ae9ae[_0xb7c440(0x285)]??this[_0xb7c440(0x20f)],this['_range']=_0x2ae9ae[_0xb7c440(0x35b)]??this[_0xb7c440(0x394)],this['_name']=_0x2ae9ae[_0xb7c440(0x191)]??this['_name'],this[_0xb7c440(0x22b)]=_0x2ae9ae['labelPosition']??this['_labelPosition'],this[_0xb7c440(0x1af)]=_0x2ae9ae['backgroundColor']??this[_0xb7c440(0x1af)],this[_0xb7c440(0x120)]=_0x2ae9ae[_0xb7c440(0xdc)]??this[_0xb7c440(0x120)],this['_labelHorizontalPosition']=_0x2ae9ae[_0xb7c440(0x1be)]??this[_0xb7c440(0x257)],_0x2ae9ae['highlightSecond']!==void 0x0&&(this['_highlightSecond']=_0x2ae9ae[_0xb7c440(0x2c4)]),_0x2ae9ae['highlight']!==void 0x0&&(this[_0xb7c440(0x26a)]=_0x2ae9ae[_0xb7c440(0x33e)]),_0x2ae9ae['offsetY']!==void 0x0&&(this['_offsetY']=_0x2ae9ae[_0xb7c440(0x1db)]),this[_0xb7c440(0x383)]({'width':_0x2ae9ae[_0xb7c440(0x2ad)],'height':_0x2ae9ae[_0xb7c440(0x194)]});}['onMouseMove'](_0xc9fd1b){const _0x4c3637=_0xd49935;let {row:_0x98075f,column:_0x1fa8b6}=_0xc9fd1b;if(_0x98075f>=this[_0x4c3637(0x394)]['startRow']&&_0x98075f<=this[_0x4c3637(0x394)]['endRow']&&_0x1fa8b6>=this['_range'][_0x4c3637(0x320)]&&_0x1fa8b6<=this['_range'][_0x4c3637(0x3a1)]){this[_0x4c3637(0x36b)]({'hovered':!0x0});return;}this[_0x4c3637(0x36b)]({'hovered':!0x1});}[_0xd49935(0x19c)](_0x3afb22){const _0x4a121f=_0xd49935;this[_0x4a121f(0xf7)](),this[_0x4a121f(0x1ff)]=!0x0,this[_0x4a121f(0x1d5)]=window[_0x4a121f(0x2c6)](()=>{const _0x545fbb=_0x4a121f;this[_0x545fbb(0x1ff)]=!this[_0x545fbb(0x1ff)],this[_0x545fbb(0x34a)](!0x0);},0x1f4),this[_0x4a121f(0x399)]=window[_0x4a121f(0xab)](()=>{const _0x302f0d=_0x4a121f;this[_0x302f0d(0xf7)](),this[_0x302f0d(0x1ff)]=!0x0,this[_0x302f0d(0x34a)](!0x0);},_0x3afb22*0x3e8);}[_0xd49935(0xf7)](){const _0x4fe3a7=_0xd49935;this['_blinkIntervalTimer']&&=(window['clearInterval'](this[_0x4fe3a7(0x1d5)]),void 0x0),this['_blinkTimer']&&=(window[_0x4fe3a7(0xd8)](this[_0x4fe3a7(0x399)]),void 0x0);}['triggerDblclick'](_0xf5fdfc){return!0x1;}['dispose'](){const _0x41498f=_0xd49935;this[_0x41498f(0xf7)](),super[_0x41498f(0x2cf)]();}['_draw'](_0x5791bd){const _0x3a682f=_0xd49935;let _0x1d12f2=this['_color'],_0x367f6c=this[_0x3a682f(0x1af)];if(this[_0x3a682f(0x26a)]&&!this['_isBlinkVisible']&&(_0x1d12f2=this[_0x3a682f(0x2a2)](this[_0x3a682f(0x234)]),_0x367f6c=this['_backgroundColor']?this[_0x3a682f(0x2a2)](this['_backgroundColor']):void 0x0),p['Rect'][_0x3a682f(0x185)](_0x5791bd,{'width':this[_0x3a682f(0x2ad)],'height':this[_0x3a682f(0x194)],'strokeWidth':this[_0x3a682f(0x1c1)]||1.5,'stroke':_0x1d12f2,'evented':!0x1,'fill':_0x367f6c}),this['_hovered']||this[_0x3a682f(0x120)]){_0x5791bd['save']();let _0x38225d=this[_0x3a682f(0x257)]===_0x3a682f(0x1a6)?-fe(_0x5791bd,this[_0x3a682f(0x218)]):this[_0x3a682f(0x2ad)];_0x5791bd[_0x3a682f(0x166)](0x1,0x0,0x0,0x1,_0x38225d,(this['_labelPosition']===_0x3a682f(0x238)?0x0:-0x14)+(this['_offsetY']??0x0)),me['drawWith'](_0x5791bd,{'text':this[_0x3a682f(0x218)],'color':_0x1d12f2}),_0x5791bd[_0x3a682f(0x2bc)]();}}[_0xd49935(0x2a2)](_0x1777fc){const _0x48eea3=_0xd49935;return _0x1777fc['startsWith']('#')?'rgba('+Number[_0x48eea3(0x26f)](_0x1777fc['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x48eea3(0x26f)](_0x1777fc['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x48eea3(0x26f)](_0x1777fc[_0x48eea3(0x381)](0x5,0x7),0x10)+_0x48eea3(0x198):_0x1777fc[_0x48eea3(0xf9)](_0x48eea3(0x20a))?_0x1777fc['replace'](/[\d.]+\)$/g,_0x48eea3(0x23b)):_0x1777fc[_0x48eea3(0xf9)](_0x48eea3(0xd4))?_0x1777fc[_0x48eea3(0x2f9)](_0x48eea3(0xd4),_0x48eea3(0x20a))['replace'](')',_0x48eea3(0x198)):_0x1777fc;}};let P=class extends t[_0xd49935(0x28a)]{constructor(_0x3246a8,_0x443449,_0xf6c989,_0x24d6e9){const _0x3af14f=_0xd49935;super(),this[_0x3af14f(0x14a)]=_0x3246a8,this[_0x3af14f(0x122)]=_0x443449,this[_0x3af14f(0x34f)]=_0xf6c989,this[_0x3af14f(0x299)]=_0x24d6e9,b(this,_0x3af14f(0x39b),new Set()),b(this,_0x3af14f(0x266),null),b(this,_0x3af14f(0x1f2),null),this[_0x3af14f(0xd1)]();}[_0xd49935(0xd1)](){const _0x47088f=_0xd49935;this[_0x47088f(0x122)][_0x47088f(0x193)][_0x47088f(0x1f7)]((0x0,i[_0x47088f(0x139)])(this['dispose$']),(0x0,i[_0x47088f(0x2b7)])(_0x1acec4=>{const _0x276abb=_0x47088f;if(_0x1acec4){let _0xed67c=_0x1acec4[_0x276abb(0x12c)];return(0x0,r['combineLatest'])(this['_collabCursorController'][_0x276abb(0x14e)](this[_0x276abb(0x14a)][_0x276abb(0x16b)]),this[_0x276abb(0x299)][_0x276abb(0x1ac)])[_0x276abb(0x1f7)]((0x0,i[_0x276abb(0x343)])(([_0x130256,_0x4cee39])=>{let _0x455f23=new Map();return _0x130256['forEach']((_0x94e497,_0x215fed)=>{const _0x3121ed=_0x29e7;if(_0x94e497['sheetID']===_0xed67c){let _0x1f593a={..._0x94e497};_0x1f593a[_0x3121ed(0x352)]=this[_0x3121ed(0x299)]['getColorFromTheme'](_0x94e497[_0x3121ed(0x352)]),_0x455f23[_0x3121ed(0x2a3)](_0x215fed,_0x1f593a);}}),{'skeleton':_0x1acec4,'cursors':_0x455f23};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x47088f(0x385)](({skeleton:_0x51d3c0,cursors:_0x1a1876})=>{this['_removeCollabCursors'](),_0x51d3c0&&this['_updateCollabCursors'](_0x51d3c0,_0x1a1876);}),this[_0x47088f(0x1b7)](this[_0x47088f(0x122)][_0x47088f(0x193)][_0x47088f(0x1f7)]((0x0,i[_0x47088f(0x139)])(this[_0x47088f(0x105)]))[_0x47088f(0x385)](_0x81e0f6=>{const _0x183ebb=_0x47088f;var _0x429568;if(_0x81e0f6==null)return;(_0x429568=this[_0x183ebb(0x1f2)])==null||_0x429568[_0x183ebb(0x20b)](),this[_0x183ebb(0x1f2)]=null;let {skeleton:_0x35b7ad}=_0x81e0f6,{scene:_0x52fce7}=this[_0x183ebb(0x14a)];this[_0x183ebb(0x1f2)]=_0x52fce7[_0x183ebb(0x1c7)][_0x183ebb(0x317)]((0x0,t[_0x183ebb(0x389)])(_0x4f9c2f=>{const _0x1686b8=_0x183ebb;var _0x5d0a9a,_0x3fcd09;let {offsetX:_0xe25fea,offsetY:_0x75f4b6}=_0x4f9c2f,{x:_0x4527eb,y:_0x4eaf15}=_0x52fce7['getCoordRelativeToViewport'](p['Vector2']['FromArray']([_0xe25fea,_0x75f4b6])),{scaleX:_0x13f353,scaleY:_0x55169e}=_0x52fce7['getAncestorScale'](),_0x395b6c=_0x52fce7[_0x1686b8(0x241)](p[_0x1686b8(0x38f)][_0x1686b8(0xc8)]),_0x815604=_0x52fce7['getScrollXYInfoByViewport'](p[_0x1686b8(0x1c0)]['FromArray']([_0x4527eb,_0x4eaf15]),_0x395b6c),_0x1c40f0=_0x35b7ad[_0x1686b8(0x2f2)](_0xe25fea,_0x75f4b6,_0x13f353,_0x55169e,_0x815604);(((_0x5d0a9a=this['_lastPointer'])==null?void 0x0:_0x5d0a9a[_0x1686b8(0x323)])!==_0x1c40f0[_0x1686b8(0x323)]||((_0x3fcd09=this[_0x1686b8(0x266)])==null?void 0x0:_0x3fcd09[_0x1686b8(0x1a3)])!==_0x1c40f0['row'])&&this[_0x1686b8(0x39b)][_0x1686b8(0x141)](_0x2c6bf7=>{const _0x534816=_0x1686b8;_0x2c6bf7[_0x534816(0x28c)](_0x1c40f0);});},0x64));})),this[_0x47088f(0x1b7)]((0x0,t['toDisposable'])(()=>{const _0x5a28ad=_0x47088f;var _0x30750a;(_0x30750a=this[_0x5a28ad(0x1f2)])==null||_0x30750a[_0x5a28ad(0x20b)](),this[_0x5a28ad(0x1f2)]=null;}));}[_0xd49935(0x341)](_0xc32aa3,_0x133463){const _0x336017=_0xd49935;let _0x20d0db=this['_sheetSkeletonManagerService']['getCurrentSkeleton']();if(!_0x20d0db)return;let _0x165006=this['_getSheetObject']();if(!_0x165006)return;this['_cursors']['forEach'](_0xb68a1c=>{const _0x1cfeb7=_0x29e7;_0xb68a1c[_0x1cfeb7(0x34a)]();});let {scene:_0x3d2ac7}=_0x165006,_0x4a9609=ve(Array[_0x336017(0x2df)](_0x133463['values']()))[_0x336017(0x343)](_0x125bd2=>{const _0x2dbde2=_0x336017;let {color:_0x431d12,range:_0x32c302,name:_0x16cdb7,selection:_0x342212,sheetID:_0x4d7b24}=_0x125bd2,{startColumn:_0x5ef4ce,startRow:_0x2eff53,endColumn:_0x3b41ed,endRow:_0x39d430}=_0x32c302,_0x41ed1d=(0x0,_[_0x2dbde2(0x117)])(_0x2eff53,_0x5ef4ce,_0x3d2ac7,_0x20d0db),_0x359566=(0x0,_[_0x2dbde2(0x117)])(_0x39d430,_0x3b41ed,_0x3d2ac7,_0x20d0db),{columnHeaderHeightAndMarginTop:_0x1930c6}=_0x20d0db,{startX:_0x2d0b09,startY:_0x46ba2e}=_0x41ed1d,{endX:_0x55e45f,endY:_0x3fc351}=_0x359566,_0x22ff0d=_0x55e45f-_0x2d0b09,_0x1e841e=_0x3fc351-_0x46ba2e;return new _e(_0x16cdb7,{'labelPosition':_0x46ba2e-_0x1930c6>=0x14?_0x2dbde2(0x124):_0x2dbde2(0x238),'sheetID':_0x4d7b24,'range':_0x32c302,'color':_0x431d12,'name':_0x16cdb7,'selection':_0x342212,'left':_0x2d0b09,'top':_0x46ba2e,'width':_0x22ff0d,'height':_0x1e841e,'evented':!0x1,'zIndex':0x1389});});_0x3d2ac7[_0x336017(0x173)](_0x4a9609,0x1),this[_0x336017(0x39b)]=new Set(_0x4a9609);}['_removeCollabCursors'](){const _0x524275=_0xd49935;var _0x48dbad;(_0x48dbad=this['_cursors'])==null||_0x48dbad[_0x524275(0x141)](_0x5cce67=>_0x5cce67[_0x524275(0x2cf)]());}[_0xd49935(0x131)](){const _0x2638a0=_0xd49935;return(0x0,_[_0x2638a0(0x129)])(this['_context'][_0x2638a0(0x354)],this[_0x2638a0(0x14a)]);}};P=S([x(0x1,(0x0,t[_0xd49935(0x37d)])(_[_0xd49935(0x164)])),x(0x2,(0x0,t[_0xd49935(0x37d)])(j)),x(0x3,(0x0,t[_0xd49935(0x37d)])(t['ThemeService']))],P);function ve(_0x93c7ac){const _0x44223f=_0xd49935;let _0x468c4b=new Map();return _0x93c7ac[_0x44223f(0x141)](_0x463fdb=>{const _0xfa4231=_0x44223f;if(_0x468c4b['has'](_0x463fdb[_0xfa4231(0x1d6)])){let _0x1c547b=_0x468c4b[_0xfa4231(0x36d)](_0x463fdb['selection']);_0x1c547b[_0xfa4231(0x191)]+=',\x20'+_0x463fdb[_0xfa4231(0x191)];}else _0x468c4b['set'](_0x463fdb[_0xfa4231(0x1d6)],_0x463fdb);}),Array[_0x44223f(0x2df)](_0x468c4b[_0x44223f(0x1c8)]());}function F(_0x4337f2){const _0x5d3f30=_0xd49935;return typeof _0x4337f2==_0x5d3f30(0x11f)&&!!_0x4337f2;}function ye(_0x3c8b4c){const _0x2dbe9b=_0xd49935;return _0x3c8b4c[_0x2dbe9b(0xed)]===l[_0x2dbe9b(0x177)][_0x2dbe9b(0x12b)]&&_0x2dbe9b(0x30f)in _0x3c8b4c&&F(_0x3c8b4c[_0x2dbe9b(0x30f)])&&typeof _0x3c8b4c[_0x2dbe9b(0x30f)]['memberID']==_0x2dbe9b(0x32e)&&typeof _0x3c8b4c[_0x2dbe9b(0x30f)][_0x2dbe9b(0x1d6)]==_0x2dbe9b(0x32e);}function be(_0x25f59d){const _0x2464bd=_0xd49935;return _0x25f59d['eventID']===l[_0x2464bd(0x177)][_0x2464bd(0x184)]&&_0x2464bd(0x30f)in _0x25f59d&&F(_0x25f59d[_0x2464bd(0x30f)])&&typeof _0x25f59d[_0x2464bd(0x30f)][_0x2464bd(0x294)]==_0x2464bd(0x32e);}function xe(_0x511783,_0x538c85){const _0x3443df=_0xd49935;let _0x4b5b88;try{_0x4b5b88=JSON['parse'](_0x511783);}catch{return null;}if(!F(_0x4b5b88)||typeof _0x4b5b88['kind']!=_0x3443df(0x32e)||typeof _0x4b5b88[_0x3443df(0x16b)]!=_0x3443df(0x32e)||typeof _0x4b5b88['subUnitId']!=_0x3443df(0x32e))return null;let _0x401d3a=typeof _0x4b5b88[_0x3443df(0x2aa)]==_0x3443df(0x22f)?_0x4b5b88['unitType']:_0x538c85;if(_0x401d3a==null)return null;let _0x18af66=F(_0x4b5b88[_0x3443df(0x1f1)])&&typeof _0x4b5b88[_0x3443df(0x1f1)]['x']==_0x3443df(0x22f)&&Number['isFinite'](_0x4b5b88[_0x3443df(0x1f1)]['x'])&&typeof _0x4b5b88['pointer']['y']==_0x3443df(0x22f)&&Number['isFinite'](_0x4b5b88['pointer']['y'])?{'x':_0x4b5b88['pointer']['x'],'y':_0x4b5b88[_0x3443df(0x1f1)]['y']}:null;return{'kind':_0x4b5b88['kind'],'unitType':_0x401d3a,'unitId':_0x4b5b88[_0x3443df(0x16b)],'subUnitId':_0x4b5b88[_0x3443df(0x25f)],'selectedIds':Array['isArray'](_0x4b5b88[_0x3443df(0x390)])?_0x4b5b88[_0x3443df(0x390)][_0x3443df(0x35e)](_0x38ab98=>typeof _0x38ab98==_0x3443df(0x32e)):[],'focusedId':typeof _0x4b5b88[_0x3443df(0x1ef)]==_0x3443df(0x32e)?_0x4b5b88[_0x3443df(0x1ef)]:null,'pointer':_0x18af66};}function Se(_0x79b22d,_0x4a8367,_0x237fc1){const _0x1b2088=_0xd49935;return{'kind':_0x4a8367,'unitType':_0x79b22d,'unitId':_0x237fc1[_0x1b2088(0x16b)],'subUnitId':_0x237fc1[_0x1b2088(0x25f)],'selectedIds':Array['from'](_0x237fc1[_0x1b2088(0x390)]),'focusedId':_0x237fc1[_0x1b2088(0x1ef)],'pointer':_0x237fc1[_0x1b2088(0x1f1)]?{..._0x237fc1[_0x1b2088(0x1f1)]}:null};}let I=class extends t[_0xd49935(0x28a)]{constructor(_0x5bd0ec,_0xe75da3,_0x2db4d5,_0x532c23,_0x396b24,_0x2e3e3f){const _0x214168=_0xd49935;super(),this['unitId']=_0x5bd0ec,this[_0x214168(0x387)]=_0xe75da3,this[_0x214168(0x388)]=_0x2db4d5,this[_0x214168(0x29e)]=_0x532c23,this[_0x214168(0xc0)]=_0x396b24,this[_0x214168(0x102)]=_0x2e3e3f,b(this,'_online',!0x1),b(this,'_initialized',!0x1);}get[_0xd49935(0x2aa)](){const _0x1e8149=_0xd49935;return this[_0x1e8149(0x388)][_0x1e8149(0x2aa)];}['dispose'](){const _0x18f46e=_0xd49935;this[_0x18f46e(0x307)](),super['dispose']();}[_0xd49935(0x16e)](){const _0x527f82=_0xd49935;this[_0x527f82(0xe5)]||(this['_initialized']=!0x0,this['_session'][_0x527f82(0x2b5)][_0x527f82(0x1f7)]((0x0,r[_0x527f82(0x139)])(this[_0x527f82(0x105)]))['subscribe'](_0x418b1e=>{const _0x465e56=_0x527f82;if(_0x418b1e===e['SessionStatus']['ONLINE']){this[_0x465e56(0xc3)]=!0x0;let _0x207b2b=this[_0x465e56(0x388)][_0x465e56(0x36c)](this['unitId']);_0x207b2b&&this[_0x465e56(0xd3)](_0x207b2b);return;}this['_online']=!0x1,this[_0x465e56(0x307)]();}),this[_0x527f82(0x387)][_0x527f82(0x1f5)]['pipe']((0x0,r[_0x527f82(0x139)])(this[_0x527f82(0x105)]))['subscribe'](_0x5e5865=>{const _0x3c54d2=_0x527f82;ye(_0x5e5865)?this['_handleCursorUpdate'](_0x5e5865):be(_0x5e5865)&&this[_0x3c54d2(0x23c)](_0x5e5865[_0x3c54d2(0x30f)]['memberID']);}),this['_adapter'][_0x527f82(0x151)]['pipe']((0x0,r['filter'])(_0xac8d6=>this[_0x527f82(0xc3)]&&_0xac8d6[_0x527f82(0x16b)]===this[_0x527f82(0x16b)]),(0x0,r[_0x527f82(0x348)])(_0x51ba76=>(0x0,r[_0x527f82(0x2c3)])(_0x51ba76['shareInterval']),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x527f82(0x139)])(this[_0x527f82(0x105)]))['subscribe'](_0x21ad4c=>this[_0x527f82(0xd3)](_0x21ad4c)));}[_0xd49935(0xd3)](_0x3536c0){const _0x311751=_0xd49935;let _0x2b8691=this['_session'][_0x311751(0x10c)]();if(!_0x2b8691||!this['_online'])return;let _0x2a54f5={'eventID':l[_0x311751(0x177)][_0x311751(0x12b)],'data':{'unitID':this[_0x311751(0x16b)],'memberID':_0x2b8691,'selection':JSON['stringify'](Se(this[_0x311751(0x2aa)],this[_0x311751(0x388)][_0x311751(0x2ff)],_0x3536c0))}};this[_0x311751(0x387)][_0x311751(0xb9)](_0x2a54f5,this[_0x311751(0x16b)])[_0x311751(0x291)](()=>void 0x0);}[_0xd49935(0x100)](_0xad08ef){const _0x4090ef=_0xd49935;let {memberID:_0x1d98e7,selection:_0xea9f8d}=_0xad08ef[_0x4090ef(0x30f)];if(_0x1d98e7===this[_0x4090ef(0x387)][_0x4090ef(0x10c)]())return;let _0x171e98=xe(_0xea9f8d,this['unitType']);if(!_0x171e98||_0x171e98[_0x4090ef(0x340)]!==this['_adapter'][_0x4090ef(0x2ff)]||_0x171e98['unitType']!==this['unitType']||_0x171e98[_0x4090ef(0x16b)]!==this[_0x4090ef(0x16b)])return;let _0x419c23=this[_0x4090ef(0xc0)]['getMember'](this[_0x4090ef(0x16b)],_0x1d98e7),_0x2d4edb={'unitId':_0x171e98[_0x4090ef(0x16b)],'subUnitId':_0x171e98['subUnitId'],'selectedIds':_0x171e98['selectedIds'],'focusedId':_0x171e98[_0x4090ef(0x1ef)],'pointer':_0x171e98[_0x4090ef(0x1f1)],'memberId':_0x1d98e7,'color':this[_0x4090ef(0x29e)][_0x4090ef(0x10f)](_0x1d98e7),'name':(_0x419c23==null?void 0x0:_0x419c23[_0x4090ef(0x191)])??_0x1d98e7};this['_commandService'][_0x4090ef(0x2e1)](T['id'],{'unitType':this[_0x4090ef(0x2aa)],'update':{'type':_0x4090ef(0x2a3),'state':_0x2d4edb}})[_0x4090ef(0x291)](()=>void 0x0);}[_0xd49935(0x23c)](_0xcc3113){const _0x229b01=_0xd49935;this[_0x229b01(0x102)][_0x229b01(0x2e1)](T['id'],{'unitType':this['unitType'],'update':{'type':_0x229b01(0x38d),'unitId':this[_0x229b01(0x16b)],'memberId':_0xcc3113}})[_0x229b01(0x291)](()=>void 0x0);}['_clearRemotePresences'](){const _0x5be33c=_0xd49935;this[_0x5be33c(0x102)][_0x5be33c(0x2e1)](T['id'],{'unitType':this[_0x5be33c(0x2aa)],'update':{'type':_0x5be33c(0x30e),'unitId':this[_0x5be33c(0x16b)]}})['catch'](()=>void 0x0);}};I=S([x(0x3,(0x0,t[_0xd49935(0x37d)])(D)),x(0x4,(0x0,t[_0xd49935(0x37d)])(e[_0xd49935(0x2ab)])),x(0x5,(0x0,t[_0xd49935(0x37d)])(t[_0xd49935(0x34c)]))],I);let L=class extends t['RxDisposable']{constructor(_0xf32fe8,_0x95ca5d,_0x5015d1,_0x62f09e){const _0xcd9bbc=_0xd49935;super(),this[_0xcd9bbc(0x1df)]=_0xf32fe8,this['_injector']=_0x95ca5d,this[_0xcd9bbc(0x232)]=_0x5015d1,this[_0xcd9bbc(0xfe)]=_0x62f09e,b(this,_0xcd9bbc(0x35c),!0x1),b(this,_0xcd9bbc(0x2f8),new Map()),b(this,_0xcd9bbc(0xe9),new Map()),b(this,_0xcd9bbc(0xda),new Map()),this[_0xcd9bbc(0xd1)]();}['dispose'](){const _0x3a246b=_0xd49935;this[_0x3a246b(0x35c)]=!0x0,this[_0x3a246b(0xda)][_0x3a246b(0x141)](_0x304ba8=>_0x304ba8[_0x3a246b(0x2cf)]()),this[_0x3a246b(0xda)][_0x3a246b(0x30e)](),this[_0x3a246b(0x2f8)]['forEach'](_0x73250e=>_0x73250e[_0x3a246b(0x2cf)]()),this[_0x3a246b(0x2f8)][_0x3a246b(0x30e)](),this[_0x3a246b(0xe9)][_0x3a246b(0x30e)](),super[_0x3a246b(0x2cf)]();}[_0xd49935(0xd1)](){const _0x26dec6=_0xd49935;this[_0x26dec6(0xfe)]['adapters$']['pipe']((0x0,r[_0x26dec6(0x139)])(this[_0x26dec6(0x105)]))['subscribe'](_0x2d388f=>this[_0x26dec6(0x355)](_0x2d388f));}['_syncAdapters'](_0x449887){const _0x4c686f=_0xd49935;let _0x477808=new Set(_0x449887[_0x4c686f(0x343)](_0x4ae392=>_0x4ae392[_0x4c686f(0x2aa)]));this[_0x4c686f(0xda)][_0x4c686f(0x141)]((_0x4b8e63,_0x53c952)=>{const _0x37c066=_0x4c686f;_0x477808[_0x37c066(0x19d)](_0x53c952)||(_0x4b8e63['dispose'](),this[_0x37c066(0xda)]['delete'](_0x53c952),this[_0x37c066(0x169)](_0x53c952));}),_0x449887['forEach'](_0x28d595=>{const _0x5986df=_0x4c686f;this[_0x5986df(0xda)]['has'](_0x28d595[_0x5986df(0x2aa)])||this['_bindAdapter'](_0x28d595);});}['_bindAdapter'](_0x3dd9ec){const _0x78e0d5=_0xd49935;let _0x206f8e=new t[(_0x78e0d5(0x29f))]();this['_adapterDisposables'][_0x78e0d5(0x2a3)](_0x3dd9ec[_0x78e0d5(0x2aa)],_0x206f8e),_0x206f8e[_0x78e0d5(0x25d)](_0x3dd9ec['activate']()),this[_0x78e0d5(0x1df)]['getAllUnitsForType'](_0x3dd9ec[_0x78e0d5(0x2aa)])[_0x78e0d5(0x141)](_0x1a8c74=>this[_0x78e0d5(0x356)](_0x1a8c74['getUnitId'](),_0x3dd9ec)[_0x78e0d5(0x291)](()=>void 0x0));let _0x3b575a=this[_0x78e0d5(0x1df)][_0x78e0d5(0x1b9)](_0x3dd9ec[_0x78e0d5(0x2aa)])['subscribe'](({unit:_0x3c29fe})=>this['_startEntity'](_0x3c29fe[_0x78e0d5(0x36a)](),_0x3dd9ec)[_0x78e0d5(0x291)](()=>void 0x0));_0x206f8e[_0x78e0d5(0x25d)]((0x0,t[_0x78e0d5(0x277)])(()=>_0x3b575a['unsubscribe']()));let _0x1c10f6=this[_0x78e0d5(0x1df)][_0x78e0d5(0x2a0)](_0x3dd9ec[_0x78e0d5(0x2aa)])[_0x78e0d5(0x385)](_0x999062=>this[_0x78e0d5(0x32b)](_0x999062[_0x78e0d5(0x36a)]()));_0x206f8e[_0x78e0d5(0x25d)]((0x0,t[_0x78e0d5(0x277)])(()=>_0x1c10f6[_0x78e0d5(0x20b)]()));}async[_0xd49935(0x356)](_0x221a5d,_0x8bfc7d){const _0x12d2f7=_0xd49935;if(this[_0x12d2f7(0x2f8)][_0x12d2f7(0x19d)](_0x221a5d)||this['_pendingEntities'][_0x12d2f7(0x19d)](_0x221a5d))return;let _0x36e331={};this[_0x12d2f7(0xe9)][_0x12d2f7(0x2a3)](_0x221a5d,_0x36e331);let _0x21f352=await this[_0x12d2f7(0x232)]['requireSession'](_0x221a5d)[_0x12d2f7(0x291)](_0x45c138=>{const _0x552cff=_0x12d2f7;throw this['_pendingEntities']['get'](_0x221a5d)===_0x36e331&&this['_pendingEntities'][_0x552cff(0x315)](_0x221a5d),_0x45c138;});if(this[_0x12d2f7(0x35c)]||this[_0x12d2f7(0xe9)][_0x12d2f7(0x36d)](_0x221a5d)!==_0x36e331||this[_0x12d2f7(0xfe)][_0x12d2f7(0x36d)](_0x8bfc7d[_0x12d2f7(0x2aa)])!==_0x8bfc7d){this[_0x12d2f7(0xe9)][_0x12d2f7(0x36d)](_0x221a5d)===_0x36e331&&this[_0x12d2f7(0xe9)][_0x12d2f7(0x315)](_0x221a5d);return;}let _0x3a5ca2=this['_injector'][_0x12d2f7(0x1b2)](I,_0x221a5d,_0x21f352,_0x8bfc7d);_0x3a5ca2[_0x12d2f7(0x16e)](),this[_0x12d2f7(0xe9)][_0x12d2f7(0x315)](_0x221a5d),this['_entities'][_0x12d2f7(0x2a3)](_0x221a5d,_0x3a5ca2);}['_disposeEntity'](_0x2eaece){const _0x47922a=_0xd49935;this[_0x47922a(0xe9)]['delete'](_0x2eaece);let _0xf4149e=this['_entities'][_0x47922a(0x36d)](_0x2eaece);_0xf4149e&&(_0xf4149e[_0x47922a(0x2cf)](),this['_entities'][_0x47922a(0x315)](_0x2eaece));}[_0xd49935(0x169)](_0x41a401){const _0x47183e=_0xd49935;this[_0x47183e(0x1df)][_0x47183e(0x24e)](_0x41a401)[_0x47183e(0x141)](_0x1e7d4e=>this['_pendingEntities'][_0x47183e(0x315)](_0x1e7d4e['getUnitId']())),Array['from'](this[_0x47183e(0x2f8)][_0x47183e(0x2ef)]())[_0x47183e(0x141)](([_0x10c2ce,_0x2f9bce])=>{const _0x4fcb16=_0x47183e;_0x2f9bce[_0x4fcb16(0x2aa)]===_0x41a401&&this['_disposeEntity'](_0x10c2ce);});}};L=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0xd49935(0x37d)])(t[_0xd49935(0x17e)])),x(0x2,(0x0,t['Inject'])(e[_0xd49935(0x104)])),x(0x3,(0x0,t['Inject'])(n[_0xd49935(0x358)]))],L);const R={'toast':_0xd49935(0x14d),'actionButton':'!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end'};function _0x10d5(){const _0x52840e=['ONLINE','_conflictNotification','collaboration-client-ui.snapshotLoading.timeout','BrowserCollaborationSocketService','IRenderManagerService','decorate','_offsetY','small','getConfig','_labelPosition','length','_monkeyPatchLogService','collaboration-client-ui.collabStatus.offline','number','UnitStatus','_onCursorUpdate','_collabSessionService','_transformUndoRedoStack','_color','pushState','_transformService','location','bottom','getAncestorScale','includes','0.2)','_removeRemotePresence','_syncPresenceStatusComponents','indicator','[LogService\x20Error]:\x20','getUnhiddenWorksheets','getViewport','i18nKey','wsSessionTicketUrl','collaboration-client-ui.snapshotLoading.refresh','_snapshotLoadingService','_registerPresenceStatusComponent','registerRefRange','message','_transformHistoryAndStateStack','runOnServer','executionId','fromEvent','_trackActiveSaveTask','getAllUnitsForType','OnLineIcon','setUndoRedoMutationParamsCache','status$','ticket','toRgbString','jiqing.500','size','handleInsertRow','_labelHorizontalPosition','AWAITING_WITH_PENDING','hide','packageName','code','CollaborationUIEventId','add','setItem','subUnitId','getDocumentSkeletonColumnPagePathInfo','getUnitStatus$','univer-text-blue-500','flatMap','Error','merge','_lastPointer','RemoteUniscriptService','_cachedData','_updateURLWithCurrentState','_highlight','univer-transition-all\x20univer-duration-200','_clearTimeoutState','complete','debounceTime','parseInt','TRANSFORM_CHANGE_OBSERVABLE_TYPE','NodePositionConvertToRectRange','loadOfflineData','origin','univer-flex\x20univer-items-center\x20univer-justify-center','findNodePositionByCharIndex','reload','toDisposable','enableOfflineEditing','getMember','min','handleDeleteRangeMoveLeft','getCollabEntity$','body','registerCommand','call','UniverLicensePlugin','SYNCED','_retryConflictCacheClear','_refreshCollabCursors','registerBeforeClose','hovered','application/json','default','_initUserListener','unshift','RxDisposable','removeEventListener','onMouseMove','result','_clearOtherTimers','_urlService','preventDefault','catch','_updateSubUnitFromURLParams','RefRangeService','memberID','_getSessionTicket','Workbook','fillStyle','collaboration-client-ui.conflict.content','_themeService','_toggleOffline','then','deserializeRangeWithSheet','_initStatusListener','_colorAssignService','DisposableCollection','getTypeOfUnitDisposed$','_textBubble','_getLighterColor','set','serializeRangeWithSheet','_cursorInfo$','isTransformMutationFailure','CommandType','subunit','DOC_RANGE_TYPE','unitType','MemberService','_collaborationController','width','[RemoteUniscriptService]:\x20no\x20focused\x20unit','snapshot-loading-','_docSkeleton','getMergeData','_docStateChangeManagerService','combineLatest','clearInterval','sessionStatus$','uni.network.url-service','switchMap','UniverCollaborationPlugin','handleIRemoveRow','_logService','IConfigService','restore','getOwnPropertyDescriptor','useCallback','_collaborationUIEventService','reconnect','IMessageService','_initDependencies','timer','highlightSecond','_handleJoinEvent','setInterval','DocumentSkeletonPageType','beginPath','1284164UHrgib','generateRandomId','override','CLOSE_ROOM','measureText','_scheduleHeartbeat','dispose','tableSource','mutations','timedOut','_createSocketURL','_send','_latestStates','ErrorCode','all','Tooltip','bold\x2013px\x20Arial,\x20sans-serif','collaboration-client-ui.permission.content','_cursorShapes','setAlpha','isActive','distinctUntilChanged','from','some','executeCommand','doc.mutation.rich-text-editing','collaboration-client-ui.conflict.processing','RECT','clsx','colno','yellow.400','CollaborationStatus','_setupBeforeClosingHandler','UNIVER_SHEET','OTHER_CLIENTS_EDITING','univer-inline-flex\x20univer-items-center\x20univer-justify-center','collaboration-client-ui.conflict.title','contains','entries','span','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getCellIndexByOffset','collaboration-client-ui.collabStatus.fetchMiss','jsx','SessionStatus','push','[CollaborationDataLoaderController]','_entities','replace','_docTransformStateCacheService','pageType','LoadingMultiIcon','TEXT_RANGE_LAYER_INDEX','_document','presenceKind','5663688EqQMNn','loadUnit','bind','urlChange$','syncEditingCollabCursor','polite','getActiveRange','_clearRemotePresences','handleMoveRange','collaboration-client-ui.session.connection-failed','collaboration-client-ui.collabStatus.synced','removeItem','SheetCollabCursorShape','3982232EXNfeJ','clear','data','onStarting','stringify','Rect','undoState','OFFLINE','delete','_httpService','subscribeEvent','COLORS','3700533UdxbXN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getFocusedUnit','collaboration-client-ui.collaboration.single-unit.warning','ILogService','_onCursorDelete','_collaborationSessionService','startColumn','UniverDocsPlugin','getOffsetConfig','column','toStringTag','EffectRefRangId','_handleHover','setActiveRange','DocIMEInputManagerService','univer-appearance-none','getUnit','_disposeEntity','DependentOn','createSocket','string','_scene','_drawAnchor','registerRenderModule','disableLocalCache','deepClone','getActiveSheet','canRenderAnchor','OffLineIcon','ERROR','_onRefRangeChange','_colorIndex','isArray','addObject','saveOfflineData','WebBrowserSingleActiveUnitService','highlight','black','kind','_updateCollabCursors','_instanceService','map','110vAjRic','_docSkeletonManagerService','SheetsSelectionsService','IDocClipboardService','throttle','1037045qmGpwt','makeDirty','loadedBlocks','ICommandService','Shape','_docTransformIMECacheService','_collabCursorController','BuiltInUIPart','onCommandExecuted','color','_removeClearOtherTimer','unit','_syncAdapters','_startEntity','univer-text-orange-500','IUnitPresenceUIAdapterRegistry','totalBlocks','_unitStatus','range','_isDisposed','timeoutId','filter','registerComponent','_handleHeartbeatEvent','collaboration-client-ui.session.will-retry','removeRemotePresence','timeoutState$','BehaviorSubject','SOCKET_FAILED_RETRY','#FFF','purple.300','disposeUnit','fillText','getUnitId','setShapeProps','getLocalPresence','get','UniverInstanceType','getItem','error','_syncEditingCollabCursorService','addHandlerCallback','_localeService','_config','replaceSelectionInfoWithoutRefresh','now','SetSelectionsOperation','_beforeCloseService','key','_docClipboardService','_activeSaveTaskMap','LOCAL_CACHE_INTERVAL','Inject','find','resize','closePath','slice','[Window\x20Error]:\x20','transformByState','isTransformMutationsWithChangesetSuccess','subscribe','ThemeService','_session','_adapter','debounce','_isVisibleUnit','finally','_toggleOnline','remove','with','SHEET_VIEWPORT_KEY','selectedIds','ILocalStorageService','updateOfflineData','ACTIVE_UNIT_EVENT_CHANNEL','_range','_saveCache','2zaHBXI','selections','getSheetId','_blinkTimer','_shapes','_cursors','transformIMECache','shareReplay','spin','RegularPolygon','startOffset','endColumn','IBeforeCloseService','touchDependencies','Tools','searchParams','_imageIoService','setTimeout','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','pageIndex','getSkeleton','_dataLoaderService','_removeCollabCursors','unitID','_showConflictCacheClearFailedNotification','CONFLICT_PROCESSING','_initEntityListener','split','value','history','Unknown\x20user','send','_initWindowErrorListener','IUniverInstanceService','getStateCache','true','params','fill','_memberService','LocaleService','_initCommandExecutedListener','_online','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_unitOnClients','DeleteRangeMoveUpCommandId','_replaceConflictNotification','VIEW_MAIN','DesktopCollaborationStatusDisplayController','clearOfflineData','max','alert','prototype','href','HTTPService','SUBMIT_CHANGESET_TIMEOUT','_init','LOADING_BLOCKS','_sendLocalPresence','rgb','_hideTimer','_initResize','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','clearTimeout','_handleLeaveEvent','_adapterDisposables','DocCollaborationEntity','showText','_showConflictProcessingNotification','_clearBlockProgressWatch','show','SetTextSelectionsOperation','_disposed','_handleEvent','toString','univer-border-none\x20univer-bg-transparent','_initialized','Module','function','stage','_pendingEntities','collaboration-client-ui.collabClient.tooltip.reconnect','onPointerLeave$','save','eventID','transformMutationsWithChangeset','Failed','_scheduleSaving','saveTaskMap','allSettled','green.600','Enter','6GrfNym','_updateLocalCursor','_stopBlinking','handleInsertRangeMoveRight','startsWith','univer-text-gray-400','createElement','stack','setOffsetY','_adapterRegistry','_setupSubUnitSync','_handleCursorUpdate','_initUnhandledRejectionListener','_commandService','debug','CollaborationSessionService','dispose$','1.0.4','_injector','arc','source','toPrimitive','CONFLICT','getMemberID','registerDependencies','3199207wzHqFy','assignAColorForMemberID','_revisionService','transformStateCache','getSelectionInfo','collab-rect-range-','_initStatusComponent','getParam','TEXT','getCoordByCell','_status$','_assignedColors','getRenderUnitById','static','UNIVER_DOC','MessageType','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','object','_showText','memberId','_sheetSkeletonManagerService','adapters$','top','rgba(255,\x20255,\x20255,\x200.01)','_render','_hover','collabCursorState$','getSheetObject','univer-text-green-500','UPDATE_CURSOR','sheetId','_docTransformSelectionsService','PERMISSION_DENIED','Disposable','HEADER','_getSheetObject','post','runId','getUndoRedoMutationParamsCache','_localCacheService','div','_disabled','_messageService','takeUntil','CollaborationSocketService','setConfig','redoState','isInternalEditorID','getSheetBySheetId','NO_OTHER_CLIENTS_EDITING','storage','forEach','GLOBAL','_getMergeRange','version','getCurrentRevOfUnit','sessionTicket','next','addEventListener','WebSocketService','_context','DeleteRangeMoveLeftCommandId','unload','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','getCollabCursors$','dark:focus:!univer-ring-offset-gray-800','text','localPresence$','_getSaveTimeout','lineTo','exhaustSavingTask','_presenceAdapterRegistry','_cursor','imageSourceType','clearRemotePresences','_ensureSubject','getCurrentTypeOfUnit$','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','MoveRangeCommandId','columnIndex','ILocalCacheService','InsertRangeMoveRightCommandId','collaboration-client-ui.permission.title','_getScale','_uiPartsService','_scheduleClearOtherTimer','SheetSkeletonManagerService','editingUnit','transform','DocSelectionManagerService','m1Prime','_disposeEntitiesForType','endOffset','unitId','defineProperty','button','init','clickable','_registerRenderDependencies','UniverRenderEnginePlugin','IImageIoService','addObjects','backupOfflineData','_entityInit$','roomMembers$','CollaborationEvent','LOCAL_CACHE_INTERVAL_KEY','OPERATION','transformMutation','SetWorksheetActivateCommand','@univerjs-pro/collaboration-client-ui','_uploadLog','Injector','_anchor','_heartbeatTimer','m2Prime','ITransformService','_registerDependencies','USERS_LEAVE','drawWith','_refRangeService','unhandledrejection','segmentPage','textRanges','cursorInfo','options','fillRule','_docSyncEditingCollabCursorService','_renderManagerService','_startDocCollabCursor','evenodd','name','useObservable','currentSkeleton$','height','primary','getCurrentUnitOfType','newValue',',\x200.2)','_selfUnitIDs','INotificationService','lineno','_startBlinking','has','9luDscl','HEADER_MENU','_drawRectRange','ranges','_timeoutState$','row','asObservable','join','left','\x20-\x20','getValue','status','COMPLETE','_highlightSecond','currentTheme$','_updateMessage','setRemotePresence','_backgroundColor','_collabCursorState$','collaboration-client-ui.collabStatus.notCollab','createInstance','_watchBlockProgress','getColorFromTheme','univer-m-0\x20univer-p-0','_getAnchorBounding','disposeWithMe','...','getTypeOfUnitAdded$','IURLService','requireSession','_initPresenceStatusComponents','update','labelHorizontalPosition','saveImage','Vector2','strokeWidth','SnapshotLoadingService','_drawTextRange','getLocalCacheKey','_notificationService','_blockProgressWatches','onPointerMove$','values','_initEvent','UniverDocsUIPlugin','setParam','onPointerEnter$','IUIPartsService','symbol','type','_saveTaskMap','RichTextEditingMutation','collaboration-client-ui.config','columnGroupId','/universer-api/frontend/logs','_blinkIntervalTimer','selection','toISOString','useDependency','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_anchorDot','offsetY','CONFLICT_CACHE_CLEAR_FAILED','every','iterator','_univerInstanceService','collaboration-client-ui.collaboration.closeRoom','connectInjector','pulse','enableDocumentCollaborationUI','collaboration-client-ui.collabStatus.syncing','state','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','runRefRangeMutations','right','Loading','SetDocZoomRatioOperation','getDocRanges','_docSelectionManagerService','getCurrentSelections','state$','focusedId','Warning','pointer','_pointerMoveDisposable','_messageIds','jsxs','event$','/run/','pipe','_startSheetCollabCursor','cursorInfo$','enableFrontendLog','ColorKit','PENDING','[Unhandled\x20Rejection]:\x20','mapTo','_isBlinkVisible','_retryingConflictCacheUnitIDs','collaboration-client-ui.conflict.clearFailed','font','collab-text-anchor-','replaceState','ISocketService','transformRemoteChangeset','_id','tooltipKey','_transformPreviousActiveRange','rgba','unsubscribe','_presenceStatusRegistrations','CollaborationController','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','_hovered','_eventUnsubscribe','prepareTransformSelections','getRangePointData','roomMembers','SnapshotLoadStage','779070FONXym','search','handleInsertRangeMoveDown','_name','getColor','content','_roomMembers$','_localStorageService','_memberID','NOT_COLLAB','_configService','loading','DEFAULT_WS_SESSION_TICKET_URL'];_0x10d5=function(){return _0x52840e;};return _0x10d5();}let z=class extends t[_0xd49935(0x12f)]{constructor(_0x586621,_0x1175ee,_0x754162,_0x51e5ca,_0x2af62e,_0x26646b){const _0x17d108=_0xd49935;super(),this[_0x17d108(0x378)]=_0x586621,this[_0x17d108(0x135)]=_0x1175ee,this[_0x17d108(0x2bf)]=_0x754162,this['_messageService']=_0x51e5ca,this['_notificationService']=_0x2af62e,this[_0x17d108(0x373)]=_0x26646b,b(this,_0x17d108(0x223),null),b(this,'_retryingConflictCacheUnitIDs',new Set()),this[_0x17d108(0x2e9)](),this['_initEvent']();}[_0xd49935(0x2cf)](){const _0x537288=_0xd49935;var _0x5b6d8b;(_0x5b6d8b=this[_0x537288(0x223)])==null||_0x5b6d8b[_0x537288(0x2cf)](),this[_0x537288(0x223)]=null,super[_0x537288(0x2cf)]();}[_0xd49935(0x2e9)](){const _0x250d5d=_0xd49935;this[_0x250d5d(0x1b7)](this[_0x250d5d(0x378)][_0x250d5d(0x284)](()=>{const _0x383984=_0x250d5d;if(this[_0x383984(0x135)][_0x383984(0xf1)][_0x383984(0x255)])return this[_0x383984(0x373)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0xd49935(0x1c9)](){const _0xa06ac=_0xd49935;this[_0xa06ac(0x1b7)](this['_collaborationUIEventService'][_0xa06ac(0x1f5)][_0xa06ac(0x385)](_0x19f915=>{const _0x304702=_0xa06ac;_0x19f915['id']===e['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x304702(0x138)]['show']({'type':a[_0x304702(0x11d)][_0x304702(0x1f0)],'content':this[_0x304702(0x373)]['t'](_0x304702(0x31c))}),_0x19f915['id']===e['CollaborationUIEventId'][_0x304702(0x2cc)]&&this[_0x304702(0x138)]['show']({'type':a[_0x304702(0x11d)][_0x304702(0x1f0)],'content':this['_localeService']['t'](_0x304702(0x1e0))}),_0x19f915['id']===e[_0x304702(0x25c)][_0x304702(0x12e)]&&this[_0x304702(0xc7)]({'title':this[_0x304702(0x373)]['t'](_0x304702(0x160)),'content':this[_0x304702(0x373)]['t'](_0x304702(0x2da)),'type':_0x304702(0x370),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x304702(0x373)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x1d515e=>{const _0x331e6c=_0x304702;_0x1d515e[_0x331e6c(0x290)](),window[_0x331e6c(0x237)]['reload']();}}}),_0x19f915['id']===e[_0x304702(0x25c)][_0x304702(0xb3)]&&this[_0x304702(0xdd)](),_0x19f915['id']===e[_0x304702(0x25c)][_0x304702(0x1dc)]&&_0x19f915[_0x304702(0xb1)]&&this[_0x304702(0xb2)](_0x19f915['unitID']),_0x19f915['id']===e[_0x304702(0x25c)][_0x304702(0x10b)]&&this[_0x304702(0xc7)]({'title':this[_0x304702(0x373)]['t'](_0x304702(0x2ed)),'content':this['_localeService']['t'](_0x304702(0x298)),'type':'error','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x304702(0x373)]['t']('collaboration-client-ui.snapshotLoading.refresh'),'onClick':_0x376755=>{const _0x3f608c=_0x304702;_0x376755[_0x3f608c(0x290)](),window['location'][_0x3f608c(0x276)]();}}}),_0x19f915['id']===e[_0x304702(0x25c)]['JOIN_ROOM_FAILED']&&this[_0x304702(0x138)]['show']({'type':a['MessageType'][_0x304702(0x1f0)],'content':this[_0x304702(0x373)]['t'](_0x19f915[_0x304702(0x30f)]||'')}),_0x19f915['id']===e[_0x304702(0x25c)][_0x304702(0x365)]&&this[_0x304702(0x138)][_0x304702(0xdf)]({'type':a[_0x304702(0x11d)][_0x304702(0x1f0)],'content':this[_0x304702(0x373)]['t'](_0x304702(0x361))}),_0x19f915['id']===e['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x304702(0x138)][_0x304702(0xdf)]({'type':a['MessageType'][_0x304702(0x264)],'content':this[_0x304702(0x373)]['t'](_0x304702(0x309))}),_0x19f915['id']===e[_0x304702(0x25c)][_0x304702(0xd0)]&&this['_messageService'][_0x304702(0xdf)]({'type':a['MessageType']['Error'],'content':this[_0x304702(0x373)]['t']('collaboration-client-ui.session.collaboration-timeout')});}));}['_showConflictProcessingNotification'](){const _0x4d9aec=_0xd49935;this['_replaceConflictNotification']({'title':this['_localeService']['t'](_0x4d9aec(0x2ed)),'content':this[_0x4d9aec(0x373)]['t'](_0x4d9aec(0x2e3)),'type':_0x4d9aec(0x220),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0xd49935(0xb2)](_0xf5f696){const _0x4350f0=_0xd49935;this[_0x4350f0(0xc7)]({'title':this[_0x4350f0(0x373)]['t'](_0x4350f0(0x2ed)),'content':this[_0x4350f0(0x373)]['t'](_0x4350f0(0x201)),'type':_0x4350f0(0x370),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this['_localeService']['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x45c206=>{const _0x5abe42=_0x4350f0;_0x45c206[_0x5abe42(0x290)](),this[_0x5abe42(0x282)](_0xf5f696);}}});}[_0xd49935(0x282)](_0x4e95f3){const _0x3a6aa3=_0xd49935;this['_retryingConflictCacheUnitIDs'][_0x3a6aa3(0x19d)](_0x4e95f3)||(this[_0x3a6aa3(0x200)]['add'](_0x4e95f3),this[_0x3a6aa3(0xdd)](),this[_0x3a6aa3(0x135)]['clearOfflineData'](_0x4e95f3)['then'](()=>window[_0x3a6aa3(0x237)][_0x3a6aa3(0x276)]())[_0x3a6aa3(0x291)](()=>this[_0x3a6aa3(0xb2)](_0x4e95f3))[_0x3a6aa3(0x38b)](()=>this['_retryingConflictCacheUnitIDs'][_0x3a6aa3(0x315)](_0x4e95f3)));}[_0xd49935(0xc7)](_0x3ba81f){const _0x234b73=_0xd49935;var _0xcb0044;(_0xcb0044=this[_0x234b73(0x223)])==null||_0xcb0044['dispose'](),this['_conflictNotification']=this[_0x234b73(0x1c5)][_0x234b73(0xdf)](_0x3ba81f);}};z=S([x(0x0,n[_0xd49935(0x3a2)]),x(0x1,e[_0xd49935(0x15e)]),x(0x2,(0x0,t[_0xd49935(0x37d)])(e['CollaborationUIEventService'])),x(0x3,n[_0xd49935(0x2c1)]),x(0x4,n[_0xd49935(0x19a)]),x(0x5,(0x0,t[_0xd49935(0x37d)])(t['LocaleService']))],z);const B=(0x0,t['createIdentifier'])(_0xd49935(0x2b6));let V=class extends t[_0xd49935(0x28a)]{constructor(_0x5b5950,_0x31dd01,_0x3e2e09,_0x49744d){const _0xfbe137=_0xd49935;super(),this[_0xfbe137(0x28f)]=_0x5b5950,this[_0xfbe137(0x2ba)]=_0x31dd01,this[_0xfbe137(0x102)]=_0x3e2e09,this[_0xfbe137(0xaf)]=_0x49744d,this[_0xfbe137(0xd1)]()[_0xfbe137(0x291)](_0x1eb9d7=>this['_logService'][_0xfbe137(0x370)](_0xfbe137(0x2f7),_0x1eb9d7));}async[_0xd49935(0xd1)](){const _0x5c86b9=_0xd49935;let _0x57ad2c=this[_0x5c86b9(0x28f)][_0x5c86b9(0x115)](_0x5c86b9(0x354)),_0x344116=this[_0x5c86b9(0x28f)][_0x5c86b9(0x115)](_0x5c86b9(0x1cf)),_0x25d476=this[_0x5c86b9(0x28f)][_0x5c86b9(0x115)](_0x5c86b9(0x2a8));if(!_0x57ad2c||!_0x344116){this[_0x5c86b9(0x2ba)][_0x5c86b9(0x103)](_0x5c86b9(0x2f7),_0x5c86b9(0xc4));return;}let _0x70b621=await this[_0x5c86b9(0xaf)][_0x5c86b9(0x301)](_0x57ad2c,Number(_0x344116),_0x25d476);this[_0x5c86b9(0xe1)]||_0x70b621&&_0x70b621 instanceof t[_0x5c86b9(0x296)]&&await this['_setupSubUnitSync'](_0x70b621);}async[_0xd49935(0xff)](_0x42e0df){const _0x3c610e=_0xd49935;await this[_0x3c610e(0x292)](_0x42e0df,!0x0),!this['_disposed']&&(_0x42e0df['activeSheet$']['pipe']((0x0,r[_0x3c610e(0x139)])(this['dispose$']))[_0x3c610e(0x385)](_0x5cdefb=>{_0x5cdefb&&this['_updateURLWithCurrentState'](_0x5cdefb);}),this['_urlService']['urlChange$'][_0x3c610e(0x1f7)]((0x0,r[_0x3c610e(0x139)])(this['dispose$']))[_0x3c610e(0x385)](()=>{const _0x40930b=_0x3c610e;this[_0x40930b(0x292)](_0x42e0df)[_0x40930b(0x291)](_0x4d966e=>this['_logService'][_0x40930b(0x370)](_0x40930b(0x2f7),_0x4d966e));}));}[_0xd49935(0x269)](_0x44030c,_0xc9342=!0x1){const _0x2ba07c=_0xd49935;let _0x974cee=this['_urlService'][_0x2ba07c(0x115)](_0x2ba07c(0x2a8));_0x44030c[_0x2ba07c(0x398)]()!==_0x974cee&&this[_0x2ba07c(0x28f)][_0x2ba07c(0x1cb)](_0x2ba07c(0x2a8),_0x44030c[_0x2ba07c(0x398)](),_0xc9342);}async['_updateSubUnitFromURLParams'](_0x1f97fe,_0x2fc9e4=!0x1){const _0x537357=_0xd49935;var _0x4ec520;let _0x3e91f1=this[_0x537357(0x28f)]['getParam'](_0x537357(0x2a8));if(!_0x3e91f1||!_0x1f97fe['getSheetBySheetId'](_0x3e91f1)){let _0x1e4316=_0x1f97fe[_0x537357(0x240)]()[0x0],_0x146682=_0x1f97fe[_0x537357(0x13e)](_0x1e4316);if(!_0x146682||(this['_updateURLWithCurrentState'](_0x146682,!0x0),this[_0x537357(0xe1)]))return;await this[_0x537357(0x102)][_0x537357(0x2e1)](g[_0x537357(0x17b)]['id'],{'unitId':_0x1f97fe[_0x537357(0x36a)](),'subUnitId':_0x1e4316});return;}(_0x2fc9e4||((_0x4ec520=_0x1f97fe[_0x537357(0x334)]())==null?void 0x0:_0x4ec520[_0x537357(0x398)]())!==_0x3e91f1)&&await this[_0x537357(0x102)]['executeCommand'](g[_0x537357(0x17b)]['id'],{'unitId':_0x1f97fe[_0x537357(0x36a)](),'subUnitId':_0x3e91f1});}};V=S([x(0x0,B),x(0x1,t[_0xd49935(0x31d)]),x(0x2,t['ICommandService']),x(0x3,(0x0,t['Inject'])(e['DataLoaderService']))],V);let H=class{constructor(_0x58f4cb,_0xa051d2){const _0x225377=_0xd49935;this[_0x225377(0x236)]=_0x58f4cb,this[_0x225377(0x18e)]=_0xa051d2;}['transformIMECache'](_0x3b5c21){const _0x336d19=_0xd49935;this['_transformUndoRedoStack'](_0x3b5c21),this[_0x336d19(0x209)](_0x3b5c21);}['transformRemoteChangeset'](_0x5aa602){const _0x1e89d6=_0xd49935;let {unitID:_0x1a623c}=_0x5aa602,{redoCache:_0x1a29a2}=this[_0x1e89d6(0x18e)][_0x1e89d6(0x11a)](_0x1a623c)[_0x1e89d6(0x38e)](f[_0x1e89d6(0x328)])[_0x1e89d6(0x134)]();if(_0x1a29a2[_0x1e89d6(0x22c)]===0x0)return _0x5aa602;let _0x20edde=t[_0x1e89d6(0x3a4)][_0x1e89d6(0x333)](_0x5aa602[_0x1e89d6(0x2d1)][0x0]);for(let _0x39c8aa=0x0;_0x39c8aa<_0x1a29a2[_0x1e89d6(0x22c)];_0x39c8aa++){let _0xade61f={'id':_0x1e89d6(0x2e2),'params':{..._0x1a29a2[_0x39c8aa]}},_0xf897e2=this[_0x1e89d6(0x236)][_0x1e89d6(0x17a)](_0x20edde,_0xade61f,!0x1);if((0x0,l['isTransformMutationFailure'])(_0xf897e2))throw _0xf897e2[_0x1e89d6(0x370)];_0x20edde=_0xf897e2[_0x1e89d6(0x168)];}return{...t[_0x1e89d6(0x3a4)]['deepClone'](_0x5aa602),'mutations':[_0x20edde]};}[_0xd49935(0x233)](_0x9f498b){const _0x248d1d=_0xd49935;let {unitID:_0x3b23b7}=_0x9f498b,_0x317971=this['_renderManagerService']['getRenderUnitById'](_0x3b23b7)[_0x248d1d(0x38e)](f[_0x248d1d(0x328)]),{undoCache:_0x2f52c4,redoCache:_0x4ffa53}=_0x317971[_0x248d1d(0x134)]();if(_0x2f52c4[_0x248d1d(0x22c)]===0x0||_0x4ffa53[_0x248d1d(0x22c)]===0x0)return;let _0x58c170=[],_0x57838d=[],_0x49da33=t['Tools'][_0x248d1d(0x333)](_0x9f498b[_0x248d1d(0x2d1)][0x0]),_0x5b2cf1=t['Tools'][_0x248d1d(0x333)](_0x9f498b[_0x248d1d(0x2d1)][0x0]);for(let _0x29c490=_0x2f52c4['length']-0x1;_0x29c490>=0x0;_0x29c490--){let _0x260644={'id':_0x248d1d(0x2e2),'params':{..._0x2f52c4[_0x29c490]}},_0x3b6ab2={'id':_0x248d1d(0x2e2),'params':{..._0x4ffa53[_0x29c490]}},_0x2b71cb=this[_0x248d1d(0x236)][_0x248d1d(0x17a)](_0x49da33,_0x260644,!0x1),_0x59c85d=this['_transformService'][_0x248d1d(0x17a)](_0x5b2cf1,_0x3b6ab2,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x2b71cb))throw _0x2b71cb[_0x248d1d(0x370)];if((0x0,l[_0x248d1d(0x2a6)])(_0x59c85d))throw _0x59c85d[_0x248d1d(0x370)];_0x58c170['unshift'](_0x2b71cb[_0x248d1d(0x181)]['params']),_0x57838d['unshift'](_0x59c85d[_0x248d1d(0x181)][_0x248d1d(0xbe)]),_0x49da33=_0x2b71cb[_0x248d1d(0x168)],_0x5b2cf1=_0x59c85d[_0x248d1d(0x168)];}_0x317971[_0x248d1d(0x250)]({'undoCache':_0x58c170,'redoCache':_0x57838d});}['_transformPreviousActiveRange'](_0x24d85a){const _0x18d876=_0xd49935;let {unitID:_0x504005}=_0x24d85a,_0x158541=this[_0x18d876(0x18e)][_0x18d876(0x11a)](_0x504005)[_0x18d876(0x38e)](f[_0x18d876(0x328)]),_0x3123aa=_0x158541[_0x18d876(0x306)]();if(_0x3123aa==null)return;let _0x5e8e05=[{'id':_0x18d876(0x2e2),'params':{'unitId':_0x24d85a[_0x18d876(0xb1)],'actions':null,'textRanges':[_0x3123aa]}}],_0x293775=this[_0x18d876(0x236)][_0x18d876(0xee)](_0x24d85a,_0x5e8e05);if(!(0x0,l[_0x18d876(0x384)])(_0x293775))throw _0x293775['error'];let _0x3146f6=_0x293775['m2Prime'][0x0]['params'][_0x18d876(0x189)];Array[_0x18d876(0x33a)](_0x3146f6)&&_0x3146f6[_0x18d876(0x22c)]&&_0x158541[_0x18d876(0x327)](_0x3146f6[0x0]);}};H=S([x(0x0,l[_0xd49935(0x182)]),x(0x1,p[_0xd49935(0x226)])],H);let U=class{constructor(_0x5dcbd6,_0x48ffa5,_0x977cba){const _0x3a3665=_0xd49935;this[_0x3a3665(0x107)]=_0x5dcbd6,this[_0x3a3665(0x236)]=_0x48ffa5,this[_0x3a3665(0x2b2)]=_0x977cba;}[_0xd49935(0x111)](_0x4ae3b2){const _0x2883a9=_0xd49935;this[_0x2883a9(0x249)](_0x4ae3b2);}[_0xd49935(0x206)](_0x3f4a36){const _0xa1e832=_0xd49935;let {unitID:_0x556eb1}=_0x3f4a36,{collaboration:_0x2f6bdf}=this[_0xa1e832(0x2b2)]['getStateCache'](_0x556eb1);if(_0x2f6bdf[_0xa1e832(0x22c)]===0x0)return _0x3f4a36;let _0x258860=t[_0xa1e832(0x3a4)]['deepClone'](_0x3f4a36['mutations'][0x0]);for(let _0x180501=0x0;_0x180501<_0x2f6bdf[_0xa1e832(0x22c)];_0x180501++){let _0x562038={'id':_0xa1e832(0x2e2),'params':{'unitId':_0x2f6bdf[_0x180501][_0xa1e832(0x16b)],..._0x2f6bdf[_0x180501][_0xa1e832(0x13c)]}},_0x21e7e2=this[_0xa1e832(0x236)]['transformMutation'](_0x258860,_0x562038,!0x1);if((0x0,l[_0xa1e832(0x2a6)])(_0x21e7e2))throw _0x21e7e2['error'];_0x258860=_0x21e7e2[_0xa1e832(0x168)];}return{...t[_0xa1e832(0x3a4)][_0xa1e832(0x333)](_0x3f4a36),'mutations':[_0x258860]};}[_0xd49935(0x249)](_0x343ea7){const _0x3afcca=_0xd49935;let {unitID:_0x3ed75c}=_0x343ea7,{history:_0x266697,collaboration:_0x461299}=this['_docStateChangeManagerService'][_0x3afcca(0xbc)](_0x3ed75c);if(_0x266697['length']===0x0&&_0x461299[_0x3afcca(0x22c)]===0x0)return;let _0xafdce8=[],_0x2fdaeb=[],_0x3200d1=t[_0x3afcca(0x3a4)]['deepClone'](_0x343ea7['mutations'][0x0]),_0xb54ea9=t[_0x3afcca(0x3a4)][_0x3afcca(0x333)](_0x343ea7[_0x3afcca(0x2d1)][0x0]);for(let _0x4fc46c=_0x266697['length']-0x1;_0x4fc46c>=0x0;_0x4fc46c--){let _0x236855={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x266697[_0x4fc46c][_0x3afcca(0x16b)],..._0x266697[_0x4fc46c][_0x3afcca(0x313)]}},_0x40db7d={'id':_0x3afcca(0x2e2),'params':{'unitId':_0x266697[_0x4fc46c]['unitId'],..._0x266697[_0x4fc46c][_0x3afcca(0x13c)]}},_0x5ca615=this[_0x3afcca(0x236)]['transformMutation'](_0x3200d1,_0x236855,!0x1),_0x230647=this['_transformService']['transformMutation'](_0xb54ea9,_0x40db7d,!0x1);if((0x0,l[_0x3afcca(0x2a6)])(_0x5ca615))throw _0x5ca615[_0x3afcca(0x370)];if((0x0,l[_0x3afcca(0x2a6)])(_0x230647))throw _0x230647[_0x3afcca(0x370)];_0xafdce8[_0x3afcca(0x289)]({..._0x266697[_0x4fc46c],'undoState':_0x5ca615['m2Prime'][_0x3afcca(0xbe)],'redoState':_0x230647[_0x3afcca(0x181)][_0x3afcca(0xbe)]}),_0x3200d1=_0x5ca615[_0x3afcca(0x168)],_0xb54ea9=_0x230647['m1Prime'];}_0x3200d1=t[_0x3afcca(0x3a4)][_0x3afcca(0x333)](_0x343ea7[_0x3afcca(0x2d1)][0x0]),_0xb54ea9=t['Tools']['deepClone'](_0x343ea7['mutations'][0x0]);for(let _0x32ba5d=_0x461299[_0x3afcca(0x22c)]-0x1;_0x32ba5d>=0x0;_0x32ba5d--){let _0x3072e8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x461299[_0x32ba5d]['unitId'],..._0x461299[_0x32ba5d][_0x3afcca(0x313)]}},_0x13de9f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x461299[_0x32ba5d][_0x3afcca(0x16b)],..._0x461299[_0x32ba5d]['redoState']}},_0x25bc21=this[_0x3afcca(0x236)][_0x3afcca(0x17a)](_0x3200d1,_0x3072e8,!0x1),_0xe2ae12=this[_0x3afcca(0x236)][_0x3afcca(0x17a)](_0xb54ea9,_0x13de9f,!0x1);if((0x0,l[_0x3afcca(0x2a6)])(_0x25bc21))throw _0x25bc21['error'];if((0x0,l['isTransformMutationFailure'])(_0xe2ae12))throw _0xe2ae12['error'];_0x2fdaeb[_0x3afcca(0x289)]({..._0x461299[_0x32ba5d],'undoState':_0x25bc21[_0x3afcca(0x181)][_0x3afcca(0xbe)],'redoState':_0xe2ae12['m2Prime'][_0x3afcca(0xbe)]}),_0x3200d1=_0x25bc21[_0x3afcca(0x168)],_0xb54ea9=_0xe2ae12[_0x3afcca(0x168)];}this[_0x3afcca(0x2b2)]['setStateCache'](_0x3ed75c,{'history':_0xafdce8,'collaboration':_0x2fdaeb});}};U=S([x(0x0,(0x0,t[_0xd49935(0x37d)])(t[_0xd49935(0x17e)])),x(0x1,l[_0xd49935(0x182)]),x(0x2,(0x0,t['Inject'])(d['DocStateChangeManagerService']))],U);let W=class{constructor(_0x1fb09a,_0x435458){const _0x4850f5=_0xd49935;this[_0x4850f5(0x1ec)]=_0x1fb09a,this[_0x4850f5(0x236)]=_0x435458;}[_0xd49935(0x211)](_0x5ac3e0){const _0x48f076=_0xd49935;var _0x477b61;let _0x1d3ac8=this[_0x48f076(0x1ec)][_0x48f076(0x1eb)]()??[],_0x14869b=this['_docSelectionManagerService'][_0x48f076(0x112)]();if(_0x1d3ac8[_0x48f076(0x22c)]===0x0||_0x14869b==null)return null;let _0x3b40fa=_0x5ac3e0[_0x48f076(0xb1)],_0x401a60=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3b40fa,'actions':null,'textRanges':_0x1d3ac8}}],_0xdc1b8b=this[_0x48f076(0x236)][_0x48f076(0xee)](_0x5ac3e0,_0x401a60);if(!(0x0,l[_0x48f076(0x384)])(_0xdc1b8b))throw _0xdc1b8b['error'];let _0x540ca6=(_0x477b61=_0xdc1b8b[_0x48f076(0x181)][0x0])==null?void 0x0:_0x477b61[_0x48f076(0xbe)],_0xd083a=_0x540ca6&&typeof _0x540ca6==_0x48f076(0x11f)&&_0x48f076(0x189)in _0x540ca6?_0x540ca6[_0x48f076(0x189)]:null;if(!Te(_0xd083a))return null;let _0x33bcbb=Ce(_0x5ac3e0[_0x48f076(0x2d1)][_0x48f076(0x2e0)](_0x1422c1=>G(_0x1422c1[_0x48f076(0xbe)]))?_0xd083a[_0x48f076(0x35e)](_0x3f3c2a=>!('tableId'in _0x3f3c2a)):_0xd083a,{..._0x14869b,'options':_0x14869b[_0x48f076(0x18b)]?{..._0x14869b[_0x48f076(0x18b)],'wholeDocument':!0x1}:void 0x0}),_0x642423={'unitId':_0x3b40fa,'subUnitId':_0x3b40fa};this[_0x48f076(0x1ec)][_0x48f076(0x375)](_0x33bcbb,_0x642423);let _0x483038=!0x0;return{'commit':()=>{_0x483038=!0x1;},'rollback':()=>{const _0x9e0497=_0x48f076;_0x483038&&(_0x483038=!0x1,this[_0x9e0497(0x1ec)][_0x9e0497(0x375)](_0x14869b,_0x642423));}};}};W=S([x(0x0,(0x0,t[_0xd49935(0x37d)])(d[_0xd49935(0x167)])),x(0x1,l[_0xd49935(0x182)])],W);function Ce(_0x3bfa45,_0x3e35ae){const _0x4f5b51=_0xd49935;let _0x55f8c6=[],_0xa44b31=[];for(let _0x32c486 of _0x3bfa45)we(_0x32c486)?_0xa44b31[_0x4f5b51(0x2f6)](_0x32c486):_0x55f8c6[_0x4f5b51(0x2f6)](_0x32c486);return{..._0x3e35ae,'textRanges':_0x55f8c6,'rectRanges':_0xa44b31};}function we(_0x57dbce){return'tableId'in _0x57dbce;}function Te(_0x5dbcf1){const _0x2b71c6=_0xd49935;return Array['isArray'](_0x5dbcf1)&&_0x5dbcf1[_0x2b71c6(0x1dd)](_0x56f4aa=>typeof _0x56f4aa==_0x2b71c6(0x11f)&&!!_0x56f4aa&&_0x2b71c6(0x3a0)in _0x56f4aa&&_0x2b71c6(0x16a)in _0x56f4aa);}function G(_0x9a17a){const _0x16b8f5=_0xd49935;return _0x9a17a===_0x16b8f5(0x2d0)?!0x0:Array[_0x16b8f5(0x33a)](_0x9a17a)?_0x9a17a['some'](_0x518412=>G(_0x518412)):!_0x9a17a||typeof _0x9a17a!='object'?!0x1:Object[_0x16b8f5(0x1c8)](_0x9a17a)[_0x16b8f5(0x2e0)](_0x446dfb=>G(_0x446dfb));}let K=class extends t[_0xd49935(0x12f)]{constructor(_0x561e94,_0x1b2366,_0x246f2d,_0x37c68c,_0x141960,_0x31546b,_0x3ba9be){const _0x144a32=_0xd49935;super(),this[_0x144a32(0x2ac)]=_0x561e94,this[_0x144a32(0x34e)]=_0x1b2366,this[_0x144a32(0x2fa)]=_0x246f2d,this[_0x144a32(0x12d)]=_0x37c68c,this[_0x144a32(0x18d)]=_0x141960,this[_0x144a32(0x138)]=_0x31546b,this['_localeService']=_0x3ba9be,b(this,_0x144a32(0x118),new r['BehaviorSubject'](e[_0x144a32(0x2e8)]['NOT_COLLAB'])),this[_0x144a32(0xb4)]();}['_initEntityListener'](){const _0xae5869=_0xd49935;this[_0xae5869(0x1b7)](this[_0xae5869(0x2ac)]['entityInit$'][_0xae5869(0x385)](_0x14e4f0=>{const _0x3d0005=_0xae5869;_0x14e4f0 instanceof e[_0x3d0005(0xdb)]&&_0x14e4f0[_0x3d0005(0x372)]({'onTransformIME':_0x18e82d=>this[_0x3d0005(0x34e)][_0x3d0005(0x39c)](_0x18e82d),'onTransformState':_0x45ee47=>this['_docTransformStateCacheService']['transformStateCache'](_0x45ee47),'onPrepareTransformSelections':_0x179bdc=>this[_0x3d0005(0x12d)]['prepareTransformSelections'](_0x179bdc),'onSyncEditingCollabCursor':_0x10136a=>this[_0x3d0005(0x18d)][_0x3d0005(0x304)](_0x10136a),'onTransformRemoteChangesetByIMECache':_0xe79238=>this[_0x3d0005(0x34e)][_0x3d0005(0x206)](_0xe79238),'onTransformRemoteChangesetByStateCache':_0x2ed102=>this[_0x3d0005(0x2fa)][_0x3d0005(0x206)](_0x2ed102)});}));}};K=S([x(0x0,(0x0,t[_0xd49935(0x37d)])(e[_0xd49935(0x20d)])),x(0x1,(0x0,t[_0xd49935(0x37d)])(H)),x(0x2,(0x0,t[_0xd49935(0x37d)])(U)),x(0x3,(0x0,t[_0xd49935(0x37d)])(W)),x(0x4,(0x0,t['Inject'])(O)),x(0x5,n[_0xd49935(0x2c1)]),x(0x6,(0x0,t[_0xd49935(0x37d)])(t[_0xd49935(0xc1)]))],K);let q=class extends t[_0xd49935(0x12f)]{constructor(_0x75dcab,_0x59b38b,_0x29b9a1,_0x1158a2){const _0x146c23=_0xd49935;super(),this[_0x146c23(0x107)]=_0x75dcab,this[_0x146c23(0x316)]=_0x59b38b,this['_logService']=_0x29b9a1,this[_0x146c23(0x31f)]=_0x1158a2,b(this,_0x146c23(0x21d),void 0x0),this[_0x146c23(0xd1)]();}[_0xd49935(0xd1)](){const _0x49dfa4=_0xd49935;this['_initWindowErrorListener'](),this[_0x49dfa4(0x101)](),this[_0x49dfa4(0x22d)](),this[_0x49dfa4(0x288)]();}[_0xd49935(0x288)](){const _0x2b7287=_0xd49935;this['disposeWithMe'](this['_collaborationSessionService']['socket$'][_0x2b7287(0x385)](_0x2505de=>{const _0x432ece=_0x2b7287;this[_0x432ece(0x21d)]=_0x2505de==null?void 0x0:_0x2505de[_0x432ece(0x294)];}));}[_0xd49935(0xba)](){const _0x2ee686=_0xd49935;let _0x1b62d3=_0x123f84=>{const _0x8c4d83=_0x29e7;var _0x2abc04;this[_0x8c4d83(0x17d)]('error',_0x8c4d83(0x382)+_0x123f84[_0x8c4d83(0x248)]+'\x20at\x20'+_0x123f84['filename']+':'+_0x123f84[_0x8c4d83(0x19b)]+':'+_0x123f84[_0x8c4d83(0x2e6)]+'\x0a'+(((_0x2abc04=_0x123f84[_0x8c4d83(0x370)])==null?void 0x0:_0x2abc04[_0x8c4d83(0xfc)])||''));};window[_0x2ee686(0x148)](_0x2ee686(0x370),_0x1b62d3),this['disposeWithMe'](()=>{const _0x3e4c36=_0x2ee686;window[_0x3e4c36(0x28b)](_0x3e4c36(0x370),_0x1b62d3);});}[_0xd49935(0x101)](){const _0x149e89=_0xd49935;let _0x83a24e=_0xb6d73d=>{const _0x105176=_0x29e7;this[_0x105176(0x17d)]('error',_0x105176(0x1fd)+_0xb6d73d['reason']);};window[_0x149e89(0x148)](_0x149e89(0x187),_0x83a24e),this[_0x149e89(0x1b7)](()=>{const _0x1d96d5=_0x149e89;window[_0x1d96d5(0x28b)](_0x1d96d5(0x187),_0x83a24e);});}[_0xd49935(0x22d)](){const _0x3a28f3=_0xd49935;let _0x42f02d=this[_0x3a28f3(0x2ba)][_0x3a28f3(0x370)][_0x3a28f3(0x302)](this['_logService']);this[_0x3a28f3(0x2ba)][_0x3a28f3(0x370)]=(..._0x2bdb5c)=>{const _0x1c5a6e=_0x3a28f3;let _0x3a7005=_0x2bdb5c[_0x1c5a6e(0x343)](_0x1f20a9=>_0x1f20a9 instanceof Error?_0x1f20a9[_0x1c5a6e(0x248)]+'\x0a'+_0x1f20a9['stack']:String(_0x1f20a9))[_0x1c5a6e(0x1a5)]('\x20');this[_0x1c5a6e(0x17d)](_0x1c5a6e(0x370),_0x1c5a6e(0x23f)+_0x3a7005),_0x42f02d(..._0x2bdb5c);},this['disposeWithMe'](()=>{const _0x51ccdc=_0x3a28f3;this[_0x51ccdc(0x2ba)]['error']=_0x42f02d;});}[_0xd49935(0x17d)](_0x53b436,_0x2de50a){const _0x4df6a7=_0xd49935;try{let _0x205b27={'userId':this['_memberID'],'logLabel':_0x53b436,'content':_0x2de50a};this[_0x4df6a7(0x316)][_0x4df6a7(0x132)](_0x4df6a7(0x1d4),{'body':_0x205b27})[_0x4df6a7(0x291)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t['Inject'])(t[_0xd49935(0x17e)])),x(0x1,(0x0,t[_0xd49935(0x37d)])(m[_0xd49935(0xcf)])),x(0x2,t['ILogService']),x(0x3,(0x0,t[_0xd49935(0x37d)])(e[_0xd49935(0x104)]))],q);function Ee({state$:_0x4e3f56}){const _0x492feb=_0xd49935;let _0x1e64d8=(0x0,n[_0x492feb(0x192)])(_0x4e3f56,null,!0x0);return _0x1e64d8?(0x0,c[_0x492feb(0x1f4)])(_0x492feb(0x136),{'data-u-comp':'snapshot-loading-timeout','role':_0x492feb(0xcc),'className':_0x492feb(0x11e),'children':[(0x0,c[_0x492feb(0x2f4)])(o['WarningIcon'],{'className':_0x492feb(0x20e)}),(0x0,c[_0x492feb(0x2f4)])(_0x492feb(0x2f0),{'children':_0x1e64d8[_0x492feb(0x21a)]}),(0x0,c[_0x492feb(0x2f4)])(a['Button'],{'size':_0x492feb(0x229),'variant':_0x492feb(0x195),'onClick':()=>window[_0x492feb(0x237)][_0x492feb(0x276)](),'children':_0x1e64d8['refreshLabel']})]}):null;}const De=_0xd49935(0x2af);let J=class extends t[_0xd49935(0x12f)]{constructor(_0x20cdd6,_0x2f80c7,_0x2d4eb6,_0x2966c1,_0x1a1c7a,_0x334364){const _0x3f336a=_0xd49935;super(),this[_0x3f336a(0x245)]=_0x20cdd6,this[_0x3f336a(0x138)]=_0x2f80c7,this[_0x3f336a(0x373)]=_0x2d4eb6,this[_0x3f336a(0x107)]=_0x2966c1,this[_0x3f336a(0x28f)]=_0x334364,b(this,_0x3f336a(0x1a2),new r['BehaviorSubject'](null)),b(this,_0x3f336a(0x1f3),new Set()),b(this,_0x3f336a(0x1c6),new Map()),b(this,_0x3f336a(0x2d5),new Map()),b(this,_0x3f336a(0x363),this['_timeoutState$'][_0x3f336a(0x1a4)]());let _0xdc6b28=()=>(0x0,s[_0x3f336a(0xfb)])(Ee,{'state$':this[_0x3f336a(0x363)]});this['disposeWithMe'](_0x1a1c7a[_0x3f336a(0x35f)](n[_0x3f336a(0x350)][_0x3f336a(0x142)],()=>(0x0,n[_0x3f336a(0x1e1)])(_0xdc6b28,this[_0x3f336a(0x107)]))),this['disposeWithMe'](this['_snapshotLoadingService'][_0x3f336a(0x1ee)][_0x3f336a(0x385)](_0xbae8c6=>{const _0x258572=_0x3f336a;this[_0x258572(0x2d5)]=_0xbae8c6,_0xbae8c6['forEach'](_0x4d40be=>this[_0x258572(0x1ad)](_0x4d40be));})),this[_0x3f336a(0x1b7)](this[_0x3f336a(0x28f)][_0x3f336a(0x303)]['subscribe'](()=>{const _0x476c97=_0x3f336a;this[_0x476c97(0x2d5)]['forEach'](_0x1abe14=>this[_0x476c97(0x1ad)](_0x1abe14));}));}[_0xd49935(0x2cf)](){const _0x47d7a2=_0xd49935;this[_0x47d7a2(0x1f3)][_0x47d7a2(0x141)](_0xf038b9=>this['_messageService'][_0x47d7a2(0x38d)](_0xf038b9)),this[_0x47d7a2(0x1f3)]['clear'](),this[_0x47d7a2(0x1c6)][_0x47d7a2(0x141)](({timeoutId:_0x253232})=>clearTimeout(_0x253232)),this[_0x47d7a2(0x1c6)]['clear'](),this[_0x47d7a2(0x1a2)][_0x47d7a2(0x26d)](),super[_0x47d7a2(0x2cf)]();}[_0xd49935(0x1ad)](_0x5ac0e4){const _0x4eda20=_0xd49935;let _0x3f386c=''+De+_0x5ac0e4[_0x4eda20(0x16b)];if(_0x5ac0e4[_0x4eda20(0xe8)]===l['SnapshotLoadStage'][_0x4eda20(0x1aa)]){this[_0x4eda20(0xde)](_0x5ac0e4['unitId']),this[_0x4eda20(0x26c)](_0x5ac0e4[_0x4eda20(0x16b)]),this[_0x4eda20(0x138)][_0x4eda20(0x38d)](_0x3f386c),this['_messageIds'][_0x4eda20(0x315)](_0x3f386c);return;}if(!this[_0x4eda20(0x38a)](_0x5ac0e4['unitId'])){this[_0x4eda20(0xde)](_0x5ac0e4['unitId']),this[_0x4eda20(0x26c)](_0x5ac0e4[_0x4eda20(0x16b)]),this[_0x4eda20(0x138)]['remove'](_0x3f386c),this[_0x4eda20(0x1f3)][_0x4eda20(0x315)](_0x3f386c);return;}if(_0x5ac0e4[_0x4eda20(0xe8)]===l['SnapshotLoadStage'][_0x4eda20(0x337)]){this[_0x4eda20(0xde)](_0x5ac0e4[_0x4eda20(0x16b)]),this[_0x4eda20(0x26c)](_0x5ac0e4[_0x4eda20(0x16b)]),this[_0x4eda20(0x138)][_0x4eda20(0xdf)]({'id':_0x3f386c,'type':a[_0x4eda20(0x11d)]['Error'],'content':this[_0x4eda20(0x373)]['t']('collaboration-client-ui.session.connection-failed')}),this[_0x4eda20(0x1f3)]['delete'](_0x3f386c);return;}if(_0x5ac0e4[_0x4eda20(0xe8)]!==l[_0x4eda20(0x214)][_0x4eda20(0xd2)]||_0x5ac0e4[_0x4eda20(0x359)]<=0xa){this['_clearBlockProgressWatch'](_0x5ac0e4[_0x4eda20(0x16b)]),this[_0x4eda20(0x138)][_0x4eda20(0x38d)](_0x3f386c),this['_messageIds'][_0x4eda20(0x315)](_0x3f386c);return;}this[_0x4eda20(0x1b3)](_0x5ac0e4)||(this[_0x4eda20(0x138)]['show']({'id':_0x3f386c,'type':a[_0x4eda20(0x11d)][_0x4eda20(0x1e9)],'duration':0x1/0x0,'content':this[_0x4eda20(0x373)]['t'](_0x4eda20(0x2f3))+'\x20'+_0x5ac0e4[_0x4eda20(0x34b)]+'/'+_0x5ac0e4[_0x4eda20(0x359)]}),this[_0x4eda20(0x1f3)]['add'](_0x3f386c));}['_watchBlockProgress'](_0x7a2a47){const _0x24f59d=_0xd49935;let _0x35bd5c=this['_blockProgressWatches'][_0x24f59d(0x36d)](_0x7a2a47[_0x24f59d(0x16b)]);if((_0x35bd5c==null?void 0x0:_0x35bd5c['loadedBlocks'])===_0x7a2a47['loadedBlocks'])return _0x35bd5c['timedOut'];this['_clearBlockProgressWatch'](_0x7a2a47['unitId']);let _0x3305eb=setTimeout(()=>{const _0x284953=_0x24f59d;let _0x440af5=this[_0x284953(0x1c6)]['get'](_0x7a2a47[_0x284953(0x16b)]);if(!_0x440af5||_0x440af5[_0x284953(0x35d)]!==_0x3305eb)return;_0x440af5[_0x284953(0x2d2)]=!0x0;let _0x42c90=''+De+_0x7a2a47[_0x284953(0x16b)];this[_0x284953(0x138)]['remove'](_0x42c90),this[_0x284953(0x1f3)][_0x284953(0x315)](_0x42c90),this[_0x284953(0x1a2)][_0x284953(0x147)]({'unitId':_0x7a2a47[_0x284953(0x16b)],'content':this['_localeService']['t'](_0x284953(0x224),String(_0x7a2a47[_0x284953(0x34b)]),String(_0x7a2a47[_0x284953(0x359)])),'refreshLabel':this[_0x284953(0x373)]['t'](_0x284953(0x244))});},0xea60);return this['_blockProgressWatches'][_0x24f59d(0x2a3)](_0x7a2a47[_0x24f59d(0x16b)],{'loadedBlocks':_0x7a2a47[_0x24f59d(0x34b)],'timedOut':!0x1,'timeoutId':_0x3305eb}),!0x1;}['_clearBlockProgressWatch'](_0x26625f){const _0x11a0e0=_0xd49935;let _0x10404c=this[_0x11a0e0(0x1c6)][_0x11a0e0(0x36d)](_0x26625f);_0x10404c&&(clearTimeout(_0x10404c['timeoutId']),this[_0x11a0e0(0x1c6)][_0x11a0e0(0x315)](_0x26625f),this[_0x11a0e0(0x26c)](_0x26625f));}[_0xd49935(0x26c)](_0x368bb6){const _0x4338a5=_0xd49935;var _0x565f6f;((_0x565f6f=this[_0x4338a5(0x1a2)][_0x4338a5(0xb6)])==null?void 0x0:_0x565f6f[_0x4338a5(0x16b)])===_0x368bb6&&this[_0x4338a5(0x1a2)][_0x4338a5(0x147)](null);}[_0xd49935(0x38a)](_0x853fe){const _0x580f62=_0xd49935;let _0x314e8e=this['_urlService'][_0x580f62(0x115)](_0x580f62(0x354));return!_0x314e8e||_0x314e8e===_0x853fe;}};J=S([x(0x0,(0x0,t[_0xd49935(0x37d)])(l[_0xd49935(0x1c2)])),x(0x1,n[_0xd49935(0x2c1)]),x(0x2,(0x0,t[_0xd49935(0x37d)])(t[_0xd49935(0xc1)])),x(0x3,(0x0,t[_0xd49935(0x37d)])(t[_0xd49935(0x17e)])),x(0x4,n['IUIPartsService']),x(0x5,B)],J);let Y=class extends t[_0xd49935(0x12f)]{constructor(_0x571b1a,_0x1179a5,_0xa71566){const _0x55f6ce=_0xd49935;var _0x2ebadb;super(),this[_0x55f6ce(0x21f)]=_0x571b1a,this['_localStorageService']=_0x1179a5,this[_0x55f6ce(0x110)]=_0xa71566,b(this,'_cachedData',new Map()),b(this,_0x55f6ce(0x1d0),new Map()),b(this,_0x55f6ce(0x37b),new Map()),b(this,_0x55f6ce(0x137),!0x1),this[_0x55f6ce(0x137)]=!((_0x2ebadb=this[_0x55f6ce(0x21f)][_0x55f6ce(0x22a)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))!=null&&_0x2ebadb[_0x55f6ce(0x278)]);}[_0xd49935(0x332)](){const _0x4ae530=_0xd49935;this[_0x4ae530(0x137)]=!0x0;}['enableLocalCache'](){const _0x13ff59=_0xd49935;this[_0x13ff59(0x137)]=!0x1;}get[_0xd49935(0xf1)](){const _0x3f132d=_0xd49935;return this[_0x3f132d(0x1d0)];}['dispose'](){const _0x39f10f=_0xd49935;this[_0x39f10f(0x154)]()['then'](()=>super[_0x39f10f(0x2cf)]());}async[_0xd49935(0x272)](_0x18d157){const _0x780bf5=_0xd49935;return this[_0x780bf5(0x137)]?null:this[_0x780bf5(0x21c)][_0x780bf5(0x36f)]((0x0,e[_0x780bf5(0x1c4)])(_0x18d157));}async[_0xd49935(0x33c)](_0x1d911d,_0x1dfd70){const _0x45ae03=_0xd49935;let _0x2e8526=this['_localStorageService'][_0x45ae03(0x25e)]((0x0,e['getLocalCacheKey'])(_0x1d911d),_0x1dfd70);return this['_trackActiveSaveTask'](_0x1d911d,_0x2e8526),!!await _0x2e8526;}async[_0xd49935(0x174)](_0xd77a4e,_0x2207d2){const _0x5e8cf3=_0xd49935;let _0x5aa282=this[_0x5e8cf3(0x268)][_0x5e8cf3(0x36d)](_0xd77a4e)??await this[_0x5e8cf3(0x21c)][_0x5e8cf3(0x36f)]((0x0,e[_0x5e8cf3(0x1c4)])(_0xd77a4e));if(!_0x5aa282)return;let _0x5bee90=Date[_0x5e8cf3(0x376)](),_0x39152e=new Date(_0x5bee90)[_0x5e8cf3(0x1d7)]();await this[_0x5e8cf3(0x21c)]['setItem']((0x0,e[_0x5e8cf3(0x1c4)])(_0xd77a4e)+':backup:'+_0x5bee90,{'reason':_0x2207d2,'createdAt':_0x39152e,'data':_0x5aa282});}async[_0xd49935(0xca)](_0x40ae53){const _0x5e14e2=_0xd49935;let _0x33d9ff=this[_0x5e14e2(0x1d0)]['get'](_0x40ae53);_0x33d9ff!==void 0x0&&(window['clearTimeout'](_0x33d9ff),this[_0x5e14e2(0x1d0)][_0x5e14e2(0x315)](_0x40ae53));let _0x5ed838=this[_0x5e14e2(0x37b)]['get'](_0x40ae53);_0x5ed838&&await Promise[_0x5e14e2(0xf2)](_0x5ed838),this['_cachedData'][_0x5e14e2(0x315)](_0x40ae53),await this[_0x5e14e2(0x21c)][_0x5e14e2(0x30b)]((0x0,e[_0x5e14e2(0x1c4)])(_0x40ae53));}[_0xd49935(0x392)](_0x253b06,_0x1733b9,_0x321a66,_0x270729){const _0x200dee=_0xd49935;let _0x2025bd=this[_0x200dee(0x110)][_0x200dee(0x145)](_0x253b06);this[_0x200dee(0x268)][_0x200dee(0x2a3)](_0x253b06,{'unitID':_0x253b06,'type':_0x1733b9,'awaitingChangeset':_0x321a66,'mutations':_0x270729,'rev':_0x2025bd}),this[_0x200dee(0x1d0)]['has'](_0x253b06)||this[_0x200dee(0xf0)](_0x253b06);}[_0xd49935(0xf0)](_0x352610){const _0x2dc470=_0xd49935;let _0x5089b8=this[_0x2dc470(0x152)]();_0x5089b8===0x0?this['_saveCache'](_0x352610):this['_saveTaskMap'][_0x2dc470(0x2a3)](_0x352610,window[_0x2dc470(0xab)](()=>this[_0x2dc470(0x395)](_0x352610),_0x5089b8));}[_0xd49935(0x152)](){const _0x1f6741=_0xd49935;return this[_0x1f6741(0x21f)][_0x1f6741(0x22a)](e[_0x1f6741(0x178)])??e[_0x1f6741(0x37c)];}[_0xd49935(0x395)](_0xe69aeb){const _0xbd680e=_0xd49935;let _0x5e8073=this['_saveTaskMap']['get'](_0xe69aeb);_0x5e8073!==void 0x0&&window[_0xbd680e(0xd8)](_0x5e8073);let _0x5dcaa5=this['_localStorageService']['setItem']((0x0,e[_0xbd680e(0x1c4)])(_0xe69aeb),this['_cachedData']['get'](_0xe69aeb))['then'](()=>this[_0xbd680e(0x1d0)][_0xbd680e(0x315)](_0xe69aeb));return this[_0xbd680e(0x24d)](_0xe69aeb,_0x5dcaa5),_0x5dcaa5;}[_0xd49935(0x24d)](_0x369177,_0x398097){const _0x35452b=_0xd49935;let _0x4406d4=this[_0x35452b(0x37b)][_0x35452b(0x36d)](_0x369177);_0x4406d4||(_0x4406d4=new Set(),this[_0x35452b(0x37b)][_0x35452b(0x2a3)](_0x369177,_0x4406d4)),_0x4406d4[_0x35452b(0x25d)](_0x398097);let _0x4b5f86=()=>{const _0x137b21=_0x35452b;_0x4406d4[_0x137b21(0x315)](_0x398097),_0x4406d4[_0x137b21(0x255)]===0x0&&this[_0x137b21(0x37b)]['delete'](_0x369177);};_0x398097[_0x35452b(0x29b)](_0x4b5f86,_0x4b5f86);}async[_0xd49935(0x154)](){const _0x5d600d=_0xd49935;let _0x389e33=[];this[_0x5d600d(0x1d0)]['forEach']((_0x15b3ef,_0x2db226)=>{const _0x3285de=_0x5d600d;window[_0x3285de(0xd8)](_0x15b3ef),_0x389e33[_0x3285de(0x2f6)](this[_0x3285de(0x395)](_0x2db226)[_0x3285de(0x29b)](()=>{const _0x400f8e=_0x3285de;this['_saveTaskMap'][_0x400f8e(0x315)](_0x2db226);}));}),await Promise[_0x5d600d(0x2d7)](_0x389e33);}};Y=S([x(0x0,t['IConfigService']),x(0x1,t[_0xd49935(0x391)]),x(0x2,(0x0,t['Inject'])(l['RevisionService']))],Y);var Oe=class extends t[_0xd49935(0x28a)]{constructor(){const _0x1015f7=_0xd49935;super(),b(this,_0x1015f7(0x303),void 0x0),this[_0x1015f7(0x303)]=(0x0,r[_0x1015f7(0x24c)])(window,'popstate')[_0x1015f7(0x1f7)]((0x0,r[_0x1015f7(0x139)])(this[_0x1015f7(0x105)]),(0x0,r[_0x1015f7(0x39d)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x1015f7(0x1fe)])(void 0x0));}[_0xd49935(0x1cb)](_0x4e332f,_0x1216ed,_0x51cb19=!0x1){const _0x3220db=_0xd49935;let _0x59e449=new URL(window['location'][_0x3220db(0xce)]);_0x59e449[_0x3220db(0xa9)]['set'](_0x4e332f,_0x1216ed),_0x51cb19?window[_0x3220db(0xb7)]['replaceState']('','',_0x59e449['toString']()):window['history'][_0x3220db(0x235)]('','',_0x59e449['toString']());}['removeParam'](_0x560551,_0x256a41=!0x1){const _0x36a4f4=_0xd49935;let _0x41d43b=new URL(window[_0x36a4f4(0x237)]['href']);_0x41d43b['searchParams'][_0x36a4f4(0x315)](_0x560551),_0x256a41?window['history'][_0x36a4f4(0x204)]('','',_0x41d43b[_0x36a4f4(0xe3)]()):window['history']['pushState']('','',_0x41d43b[_0x36a4f4(0xe3)]());}[_0xd49935(0x115)](_0x463810){const _0x352e2e=_0xd49935;return new URL(window['location'][_0x352e2e(0xce)])['searchParams']['get'](_0x463810)??void 0x0;}};let X=class extends t['Plugin']{constructor(_0x3aa0db=se,_0x3a0744,_0xa577f0,_0x152082,_0xaf72d8){const _0x6209ba=_0xd49935;super(),this[_0x6209ba(0x374)]=_0x3aa0db,this[_0x6209ba(0x18e)]=_0x3a0744,this[_0x6209ba(0x107)]=_0xa577f0,this[_0x6209ba(0x21f)]=_0x152082,this[_0x6209ba(0x102)]=_0xaf72d8;let {..._0x231220}=(0x0,t[_0x6209ba(0x265)])({},se,this[_0x6209ba(0x374)]);this[_0x6209ba(0x21f)][_0x6209ba(0x13b)](_0x6209ba(0x1d2),_0x231220);}[_0xd49935(0x310)](){const _0x78f2bf=_0xd49935;this[_0x78f2bf(0x183)](),this[_0x78f2bf(0x1b7)](this[_0x78f2bf(0x102)][_0x78f2bf(0x27e)](T)),this['_initDependencies']();}['onRendered'](){const _0x4f56ad=_0xd49935;this[_0x4f56ad(0x170)]();}['_registerDependencies'](){const _0x22a5ff=_0xd49935;var _0xf3bc9c;let _0x5c366e=[[D],[B,{'useClass':Oe}],[m[_0x22a5ff(0x205)],{'useClass':m[_0x22a5ff(0x149)]}],[e[_0x22a5ff(0x15e)],{'useClass':Y}],[C],[z],[j],[L],[V],[J]];this[_0x22a5ff(0x374)]['enableDocumentCollaborationUI']!==!0x1&&_0x5c366e[_0x22a5ff(0x2f6)]([W],[H],[U],[O],[K],[E]),this[_0x22a5ff(0x374)][_0x22a5ff(0x1fa)]&&_0x5c366e[_0x22a5ff(0x2f6)]([q]),(0x0,t[_0x22a5ff(0x10d)])(this[_0x22a5ff(0x107)],(0x0,t['mergeOverrideWithDependencies'])(_0x5c366e,(_0xf3bc9c=this[_0x22a5ff(0x374)])==null?void 0x0:_0xf3bc9c[_0x22a5ff(0x2cb)]));}[_0xd49935(0x170)](){const _0xa52783=_0xd49935;this[_0xa52783(0x374)][_0xa52783(0x1e3)]!==!0x1&&this[_0xa52783(0x1b7)](this[_0xa52783(0x18e)]['registerRenderModule'](t['UniverInstanceType'][_0xa52783(0x11c)],[N])),this[_0xa52783(0x1b7)](this[_0xa52783(0x18e)][_0xa52783(0x331)](t[_0xa52783(0x36e)][_0xa52783(0x2ea)],[P]));}[_0xd49935(0x2c2)](){const _0x5b16b0=_0xd49935;(0x0,t[_0x5b16b0(0x3a3)])(this['_injector'],[[j],[L],[C],[z],[V],[J]]),this[_0x5b16b0(0x374)]['enableDocumentCollaborationUI']!==!0x1&&(0x0,t[_0x5b16b0(0x3a3)])(this[_0x5b16b0(0x107)],[[K],[E]]),this['_config'][_0x5b16b0(0x1fa)]&&(0x0,t['touchDependencies'])(this[_0x5b16b0(0x107)],[[q]]);}};b(X,'pluginName',_0xd49935(0xd7)),b(X,_0xd49935(0x25a),ae),b(X,_0xd49935(0x144),oe),X=S([(0x0,t[_0xd49935(0x32c)])(u[_0xd49935(0x280)],d[_0xd49935(0x321)],p[_0xd49935(0x171)],m['UniverNetworkPlugin'],l[_0xd49935(0x2b8)],f[_0xd49935(0x1ca)],e['UniverCollaborationClientPlugin']),x(0x1,p[_0xd49935(0x226)]),x(0x2,(0x0,t[_0xd49935(0x37d)])(t['Injector'])),x(0x3,t['IConfigService']),x(0x4,t[_0xd49935(0x34c)])],X);let Z=class extends e[_0xd49935(0x13a)]{constructor(_0x58009d,_0x36ca0e,_0x16d7b9,_0x2c4648,_0x3558c7){super(_0x58009d,_0x36ca0e,_0x16d7b9,_0x2c4648,_0x3558c7);}async[_0xd49935(0x32d)](_0x879297){const _0x18f1e7=_0xd49935;let _0x3abe49=await this[_0x18f1e7(0x295)](),_0x45d525=this[_0x18f1e7(0x2d3)](_0x879297,_0x3abe49);return this['_doCreateSocket'](_0x45d525);}[_0xd49935(0x2d3)](_0x5b6461,_0x41b947){const _0x2959c6=_0xd49935;let _0x3b6a62=typeof window>'u'?new URL(_0x5b6461):new URL(_0x5b6461,window[_0x2959c6(0x237)][_0x2959c6(0x273)]);_0x3b6a62[_0x2959c6(0xa9)][_0x2959c6(0x2a3)](_0x2959c6(0x146),_0x41b947);let _0x287cd4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2959c6(0x237)][_0x2959c6(0x216)]);return _0x287cd4[_0x2959c6(0x36d)](_0x2959c6(0x133))&&_0x3b6a62['searchParams'][_0x2959c6(0x2a3)](_0x2959c6(0x133),_0x287cd4[_0x2959c6(0x36d)](_0x2959c6(0x133))),_0x3b6a62[_0x2959c6(0xe3)]();}async[_0xd49935(0x295)](){const _0x183631=_0xd49935;var _0x5009d4;let _0x2dfa0d=this['_configService'][_0x183631(0x22a)](e[_0x183631(0x2f1)]),_0x1469b5=(_0x2dfa0d==null?void 0x0:_0x2dfa0d[_0x183631(0x243)])??e[_0x183631(0x221)];return((_0x5009d4=(await this['_httpService'][_0x183631(0x36d)](_0x1469b5,{'headers':{'Content-Type':_0x183631(0x286)}}))[_0x183631(0x27d)])==null?void 0x0:_0x5009d4[_0x183631(0x252)])??'';}};Z=S([x(0x0,(0x0,t[_0xd49935(0x37d)])(t['Injector'])),x(0x1,(0x0,t['Inject'])(m[_0xd49935(0xcf)])),x(0x2,t['IConfigService']),x(0x3,t[_0xd49935(0x31d)]),x(0x4,l['ISnapshotServerService'])],Z);let Q=class extends t['Disposable']{constructor(_0x7aa1bb,_0x4c23e9,_0x33cb56){const _0x3cde17=_0xd49935;super(),this['_instanceService']=_0x7aa1bb,this[_0x3cde17(0x316)]=_0x4c23e9,this[_0x3cde17(0x21f)]=_0x33cb56;}async[_0xd49935(0x24a)](_0x441866,_0x21892c,_0x3c9a5f,..._0x16016f){const _0x146126=_0xd49935;let _0x1c29df=this[_0x146126(0x342)][_0x146126(0x31b)]();if(!_0x1c29df)throw Error(_0x146126(0x2ae));let _0x3ea5fb=(this['_configService']['getConfig'](e[_0x146126(0x1e6)])??e[_0x146126(0x1d9)])+'/'+_0x441866+_0x146126(0x1f6)+_0x21892c,_0x50199a={'scriptId':_0x441866,'runId':new URL(window[_0x146126(0x237)][_0x146126(0xce)])[_0x146126(0xa9)][_0x146126(0x36d)](_0x146126(0x133))??'','function':_0x21892c,'unitId':_0x1c29df[_0x146126(0x36a)](),'argsOfFunction':JSON[_0x146126(0x311)](_0x16016f),'invokeId':_0x3c9a5f['invokeId']??'','executionId':_0x3c9a5f[_0x146126(0x24b)]??''};try{let _0x74eb75=await this[_0x146126(0x316)][_0x146126(0x132)](_0x3ea5fb,{'body':_0x50199a});return _0x74eb75[_0x146126(0x27d)][_0x146126(0x370)]&&_0x74eb75[_0x146126(0x27d)]['error'][_0x146126(0x25b)]!==v[_0x146126(0x2d6)]['OK']?_0x146126(0xef):_0x74eb75[_0x146126(0x27d)][_0x146126(0x28d)];}catch{return _0x146126(0xef);}}};Q=S([x(0x0,t[_0xd49935(0xbb)]),x(0x1,(0x0,t[_0xd49935(0x37d)])(m[_0xd49935(0xcf)])),x(0x2,t[_0xd49935(0x2bb)])],Q);const ke=0x7530,$=_0xd49935(0x393);var Ae=class extends t[_0xd49935(0x12f)]{constructor(){const _0x3b87a0=_0xd49935;super(),b(this,_0x3b87a0(0x207),(0x0,t[_0x3b87a0(0x2ca)])()),b(this,_0x3b87a0(0x199),new Set()),b(this,_0x3b87a0(0xc5),new Map()),b(this,_0x3b87a0(0x180),null),b(this,_0x3b87a0(0x28e),new Map()),b(this,_0x3b87a0(0x35a),new Map()),this[_0x3b87a0(0xd1)]();}[_0xd49935(0x2cf)](){const _0x3ce396=_0xd49935;super['dispose'](),this[_0x3ce396(0x28e)][_0x3ce396(0x141)]((_0x54acae,_0x1acf5e)=>this[_0x3ce396(0x353)](_0x1acf5e)),this[_0x3ce396(0x180)]&&window[_0x3ce396(0x2b4)](this[_0x3ce396(0x180)]);}[_0xd49935(0x261)](_0x570ef1){const _0x44f1f1=_0xd49935;return this[_0x44f1f1(0x159)](_0x570ef1)[_0x44f1f1(0x1f7)]((0x0,r['distinctUntilChanged'])());}[_0xd49935(0x165)](_0x5c8f02){const _0x4fb811=_0xd49935;this[_0x4fb811(0x199)][_0x4fb811(0x255)]===0x0&&this[_0x4fb811(0x2ce)](),this[_0x4fb811(0x199)][_0x4fb811(0x25d)](_0x5c8f02),this[_0x4fb811(0x2d4)]({'type':0x0,'memberID':this[_0x4fb811(0x207)],'unitIDs':[_0x5c8f02],'isForwarded':!0x1});}[_0xd49935(0x368)](_0x1ca07e){const _0x84b636=_0xd49935;this[_0x84b636(0x199)]['delete'](_0x1ca07e),this[_0x84b636(0x199)]['size']===0x0&&this[_0x84b636(0x180)]&&window['clearInterval'](this[_0x84b636(0x180)]);}[_0xd49935(0xd1)](){const _0x44b176=_0xd49935;this[_0x44b176(0x1b7)]((0x0,t[_0x44b176(0x277)])((0x0,r[_0x44b176(0x24c)])(window,_0x44b176(0x140))[_0x44b176(0x385)](_0x2416b2=>{const _0x3d6a7c=_0x44b176;if(_0x2416b2[_0x3d6a7c(0x379)]!==$||!_0x2416b2[_0x3d6a7c(0x197)])return;let _0x2607c8=JSON['parse'](_0x2416b2[_0x3d6a7c(0x197)]);this[_0x3d6a7c(0xe2)](_0x2607c8);}))),window[_0x44b176(0x148)](_0x44b176(0x14c),()=>this[_0x44b176(0x2d4)]({'type':0x1,'memberID':this[_0x44b176(0x207)],'unitIDs':Array[_0x44b176(0x2df)](this[_0x44b176(0x199)])}));}[_0xd49935(0xe2)](_0xd5b144){const _0x17468d=_0xd49935;switch(_0xd5b144['type']){case 0x0:this[_0x17468d(0x2c5)](_0xd5b144);break;case 0x1:this[_0x17468d(0xd9)](_0xd5b144);break;case 0x2:this[_0x17468d(0x360)](_0xd5b144);}}[_0xd49935(0x2c5)](_0x35c90e){const _0x439c7c=_0xd49935;let {unitIDs:_0x5c50c,memberID:_0x591f8c,isForwarded:_0x14d200}=_0x35c90e;_0x5c50c['forEach'](_0x5dd0e6=>{const _0x2d5c7d=_0x29e7;if(!_0x14d200&&this[_0x2d5c7d(0xc5)][_0x2d5c7d(0x19d)](_0x5dd0e6)&&this[_0x2d5c7d(0x159)](_0x5dd0e6)['next'](e[_0x2d5c7d(0x230)][_0x2d5c7d(0x2eb)]),!this['_unitOnClients'][_0x2d5c7d(0x19d)](_0x5dd0e6)||!this[_0x2d5c7d(0xc5)][_0x2d5c7d(0x36d)](_0x5dd0e6)[_0x2d5c7d(0x19d)](_0x591f8c)){let _0x52b51d=this[_0x2d5c7d(0xc5)][_0x2d5c7d(0x36d)](_0x5dd0e6)||new Set();_0x52b51d['add'](_0x591f8c),this[_0x2d5c7d(0xc5)]['set'](_0x5dd0e6,_0x52b51d),this['_scheduleClearOtherTimer'](_0x591f8c);}}),_0x14d200||this[_0x439c7c(0x2d4)]({'type':0x0,'memberID':this[_0x439c7c(0x207)],'unitIDs':[...this[_0x439c7c(0x199)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5b8cec){const _0x41924e=_0xd49935;this[_0x41924e(0x353)](_0x5b8cec);let _0x3ccece=window['setTimeout'](()=>{const _0x33b830=_0x41924e;this['_unitOnClients'][_0x33b830(0x141)](_0xa08ba6=>{const _0x411e6a=_0x33b830;_0xa08ba6[_0x411e6a(0x315)](_0x5b8cec);});},ke*0x2);this[_0x41924e(0x28e)][_0x41924e(0x2a3)](_0x5b8cec,_0x3ccece);}[_0xd49935(0x353)](_0x2b9675){const _0x20caed=_0xd49935;if(this[_0x20caed(0x28e)][_0x20caed(0x19d)](_0x2b9675)){let _0x537352=this[_0x20caed(0x28e)]['get'](_0x2b9675);_0x537352&&window[_0x20caed(0xd8)](_0x537352),this[_0x20caed(0x28e)][_0x20caed(0x2a3)](_0x2b9675,null);}}[_0xd49935(0xd9)](_0x3e68f1){const _0x2c8132=_0xd49935;let {memberID:_0x3963d4,unitIDs:_0x373852}=_0x3e68f1;_0x373852['forEach'](_0xbe1c03=>{const _0x2b67d5=_0x29e7;var _0x4f0e5f;let _0x146c7c=this[_0x2b67d5(0xc5)][_0x2b67d5(0x36d)](_0xbe1c03);_0x146c7c&&(_0x146c7c[_0x2b67d5(0x315)](_0x3963d4),(_0x4f0e5f=this[_0x2b67d5(0x159)](_0xbe1c03))==null||_0x4f0e5f['next'](_0x146c7c[_0x2b67d5(0x255)]===0x0?e[_0x2b67d5(0x230)][_0x2b67d5(0x13f)]:e[_0x2b67d5(0x230)]['OTHER_CLIENTS_EDITING']));}),this[_0x2c8132(0x353)](_0x3963d4);}[_0xd49935(0x360)](_0x28c8e0){const _0x1d4d5e=_0xd49935;this[_0x1d4d5e(0x163)](_0x28c8e0[_0x1d4d5e(0x294)]);}['_send'](_0x4aa812){const _0x86e685=_0xd49935;localStorage[_0x86e685(0x25e)]($,JSON[_0x86e685(0x311)](_0x4aa812));}[_0xd49935(0x2ce)](){const _0x58226e=_0xd49935;this[_0x58226e(0x180)]=window[_0x58226e(0x2c6)](()=>{const _0x164ab3=_0x58226e;this['_send']({'type':0x2,'memberID':this[_0x164ab3(0x207)]});},ke);}[_0xd49935(0x159)](_0x3bd205){const _0x44aae9=_0xd49935;return this[_0x44aae9(0x35a)]['has'](_0x3bd205)||this[_0x44aae9(0x35a)][_0x44aae9(0x2a3)](_0x3bd205,new r[(_0x44aae9(0x364))](e[_0x44aae9(0x230)][_0x44aae9(0x13f)])),this[_0x44aae9(0x35a)][_0x44aae9(0x36d)](_0x3bd205);}};Object[_0xd49935(0x16c)](exports,_0xd49935(0x225),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0xd49935(0x16c)](exports,_0xd49935(0xc9),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0xd49935(0x1ba)]=B,Object[_0xd49935(0x16c)](exports,_0xd49935(0x267),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0xd49935(0x30c)]=_e,Object[_0xd49935(0x16c)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return X;}}),exports[_0xd49935(0x33d)]=Ae;
|
|
1
|
+
const _0x4a4f45=_0xd371;(function(_0x330247,_0x2e18a1){const _0xed7684=_0xd371,_0x461daf=_0x330247();while(!![]){try{const _0x41023d=parseInt(_0xed7684(0x399))/0x1+parseInt(_0xed7684(0x350))/0x2+-parseInt(_0xed7684(0x2b0))/0x3*(parseInt(_0xed7684(0x335))/0x4)+parseInt(_0xed7684(0x269))/0x5*(parseInt(_0xed7684(0x37c))/0x6)+parseInt(_0xed7684(0x385))/0x7*(parseInt(_0xed7684(0x21f))/0x8)+parseInt(_0xed7684(0x417))/0x9*(parseInt(_0xed7684(0x425))/0xa)+parseInt(_0xed7684(0x28d))/0xb*(-parseInt(_0xed7684(0x391))/0xc);if(_0x41023d===_0x2e18a1)break;else _0x461daf['push'](_0x461daf['shift']());}catch(_0x2d1242){_0x461daf['push'](_0x461daf['shift']());}}}(_0x55ab,0x2a2a9),Object['defineProperty'](exports,Symbol[_0x4a4f45(0x2e9)],{'value':_0x4a4f45(0x38c)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/ui'),r=require('rxjs'),i=require('rxjs/operators'),a=require('@univerjs/design'),o=require('@univerjs/icons'),s=require('react'),c=require('react/jsx-runtime'),l=require('@univerjs-pro/collaboration'),u=require('@univerjs-pro/license'),d=require('@univerjs/docs'),f=require('@univerjs/docs-ui'),p=require('@univerjs/engine-render'),m=require('@univerjs/network'),h=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),_=require('@univerjs/sheets-ui'),v=require('@univerjs/protocol');function ee(_0x2cd692){const _0x395757=_0x4a4f45;switch(_0x2cd692){case e[_0x395757(0x24e)][_0x395757(0x3ef)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x31a)],{}),'colorClass':_0x395757(0x22e),'i18nKey':_0x395757(0x13b),'tooltipKey':'collaboration-client-ui.collabClient.tooltip.reconnect','clickable':!0x0,'indicator':'static'};case e['CollaborationStatus'][_0x395757(0x17e)]:return{'icon':(0x0,c['jsx'])(o[_0x395757(0x31a)],{}),'colorClass':_0x395757(0x3f3),'i18nKey':_0x395757(0x297),'clickable':!0x1,'indicator':'static'};case e[_0x395757(0x24e)][_0x395757(0x2b5)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x415)],{}),'colorClass':_0x395757(0x272),'i18nKey':_0x395757(0x29f),'clickable':!0x1,'indicator':_0x395757(0x206)};case e[_0x395757(0x24e)][_0x395757(0x274)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x1a2)],{}),'colorClass':_0x395757(0x3bc),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x395757(0x2bc)};case e[_0x395757(0x24e)][_0x395757(0x2bb)]:case e[_0x395757(0x24e)][_0x395757(0x2d0)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':_0x395757(0x272),'i18nKey':_0x395757(0x407),'clickable':!0x1,'indicator':_0x395757(0x206)};case e[_0x395757(0x24e)][_0x395757(0x3f5)]:return{'icon':(0x0,c['jsx'])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x395757(0x206)};case e['CollaborationStatus'][_0x395757(0x1b5)]:return{'icon':(0x0,c[_0x395757(0x12b)])(o[_0x395757(0x1a2)],{}),'colorClass':_0x395757(0x128),'i18nKey':_0x395757(0x346),'clickable':!0x1,'indicator':_0x395757(0x2bc)};}}function te(_0x34483b){const _0x3c1898=_0x4a4f45;let {status$:_0x461a0d}=_0x34483b,_0x409f25=(0x0,n['useObservable'])(_0x461a0d,e[_0x3c1898(0x24e)][_0x3c1898(0x274)]),_0x551d31=(0x0,n[_0x3c1898(0x384)])(t[_0x3c1898(0x188)]),_0x482046=(0x0,n[_0x3c1898(0x384)])(e[_0x3c1898(0x3f7)]),_0x40d828=(0x0,s[_0x3c1898(0x2b3)])(()=>ee(_0x409f25),[_0x409f25]),_0x1cd47f=_0x409f25!==e[_0x3c1898(0x24e)][_0x3c1898(0x3ef)],_0x15901b=_0x551d31['t'](_0x40d828[_0x3c1898(0x27a)]),_0x2862ea=_0x40d828['tooltipKey']?_0x551d31['t'](_0x40d828[_0x3c1898(0x298)]):_0x15901b,_0x1222a7=(0x0,s[_0x3c1898(0x3ca)])(()=>{const _0x1baf6a=_0x3c1898;_0x1cd47f||_0x482046[_0x1baf6a(0x1ac)]();},[_0x1cd47f,_0x482046]),_0x57982d=(0x0,s[_0x3c1898(0x3ca)])(_0x389dde=>{const _0x27b867=_0x3c1898;!_0x1cd47f&&(_0x389dde[_0x27b867(0x3d9)]===_0x27b867(0x39a)||_0x389dde[_0x27b867(0x3d9)]==='\x20')&&(_0x389dde['preventDefault'](),_0x482046[_0x27b867(0x1ac)]());},[_0x1cd47f,_0x482046]),_0xa78277=(0x0,c['jsx'])(_0x3c1898(0x2e3),{'className':(0x0,a['clsx'])(_0x3c1898(0x226),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x40d828[_0x3c1898(0x124)],{'univer-animate-spin':_0x40d828[_0x3c1898(0x1f3)]===_0x3c1898(0x206),'univer-animate-pulse':_0x40d828[_0x3c1898(0x1f3)]==='pulse'}),'aria-hidden':'true','children':_0x40d828[_0x3c1898(0x419)]}),_0x419966=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x3c1898(0x40d)])(_0x3c1898(0x226),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x3c1898(0x1db),_0x3c1898(0x2d4),_0x3c1898(0x20f),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x40d828[_0x3c1898(0x329)],'univer-cursor-default':!_0x40d828[_0x3c1898(0x329)]}),'children':_0xa78277});return _0x40d828['clickable']?(0x0,c[_0x3c1898(0x12b)])(a[_0x3c1898(0x1ee)],{'title':_0x2862ea,'placement':_0x3c1898(0x1ef),'children':(0x0,c[_0x3c1898(0x12b)])(_0x3c1898(0x1c6),{'type':_0x3c1898(0x1c6),'onClick':_0x1222a7,'onKeyDown':_0x57982d,'className':(0x0,a['clsx'])(_0x3c1898(0x351),'univer-border-none\x20univer-bg-transparent',_0x3c1898(0x160),'univer-appearance-none'),'aria-label':_0x15901b+_0x3c1898(0x1bd)+_0x2862ea,'role':_0x3c1898(0x30b),'aria-live':_0x3c1898(0x2a3),'aria-atomic':'true','children':_0x419966})}):(0x0,c[_0x3c1898(0x12b)])(a[_0x3c1898(0x1ee)],{'title':_0x2862ea,'placement':'bottom','children':(0x0,c[_0x3c1898(0x12b)])('div',{'className':(0x0,a[_0x3c1898(0x40d)])(_0x3c1898(0x351),'univer-border-none\x20univer-bg-transparent',_0x3c1898(0x160)),'aria-label':_0x15901b,'role':_0x3c1898(0x30b),'aria-live':_0x3c1898(0x2a3),'aria-atomic':_0x3c1898(0x16e),'children':_0x419966})});}function y(_0x54fb50){'@babel/helpers - typeof';const _0x2fe7d4=_0x4a4f45;return y=typeof Symbol==_0x2fe7d4(0x1b1)&&typeof Symbol[_0x2fe7d4(0x203)]==_0x2fe7d4(0x218)?function(_0x17f07f){return typeof _0x17f07f;}:function(_0x5c75d8){const _0xfa0bff=_0x2fe7d4;return _0x5c75d8&&typeof Symbol==_0xfa0bff(0x1b1)&&_0x5c75d8['constructor']===Symbol&&_0x5c75d8!==Symbol[_0xfa0bff(0x259)]?_0xfa0bff(0x218):typeof _0x5c75d8;},y(_0x54fb50);}function ne(_0x2adea8,_0x129518){const _0x1efe18=_0x4a4f45;if(y(_0x2adea8)!=_0x1efe18(0x362)||!_0x2adea8)return _0x2adea8;var _0x2328c5=_0x2adea8[Symbol['toPrimitive']];if(_0x2328c5!==void 0x0){var _0x1e1e94=_0x2328c5[_0x1efe18(0x358)](_0x2adea8,_0x129518||_0x1efe18(0x3f9));if(y(_0x1e1e94)!=_0x1efe18(0x362))return _0x1e1e94;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x129518==='string'?String:Number)(_0x2adea8);}function re(_0x4ec88c){const _0x45252c=_0x4a4f45;var _0x1af578=ne(_0x4ec88c,_0x45252c(0x2cf));return y(_0x1af578)=='symbol'?_0x1af578:_0x1af578+'';}function b(_0x29c31d,_0x58990d,_0x3a6fe1){const _0x5cfe4e=_0x4a4f45;return(_0x58990d=re(_0x58990d))in _0x29c31d?Object[_0x5cfe4e(0x2e7)](_0x29c31d,_0x58990d,{'value':_0x3a6fe1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x29c31d[_0x58990d]=_0x3a6fe1,_0x29c31d;}function x(_0x4bd34c,_0x1aa596){return function(_0x328e4a,_0x236249){_0x1aa596(_0x328e4a,_0x236249,_0x4bd34c);};}function S(_0x454497,_0x388ad3,_0xed2651,_0x30c0f2){const _0xd373bf=_0x4a4f45;var _0x5840cb=arguments[_0xd373bf(0x18e)],_0x47d545=_0x5840cb<0x3?_0x388ad3:_0x30c0f2===null?_0x30c0f2=Object[_0xd373bf(0x360)](_0x388ad3,_0xed2651):_0x30c0f2,_0x19439c;if(typeof Reflect==_0xd373bf(0x362)&&typeof Reflect[_0xd373bf(0x30c)]==_0xd373bf(0x1b1))_0x47d545=Reflect[_0xd373bf(0x30c)](_0x454497,_0x388ad3,_0xed2651,_0x30c0f2);else{for(var _0x46b324=_0x454497[_0xd373bf(0x18e)]-0x1;_0x46b324>=0x0;_0x46b324--)(_0x19439c=_0x454497[_0x46b324])&&(_0x47d545=(_0x5840cb<0x3?_0x19439c(_0x47d545):_0x5840cb>0x3?_0x19439c(_0x388ad3,_0xed2651,_0x47d545):_0x19439c(_0x388ad3,_0xed2651))||_0x47d545);}return _0x5840cb>0x3&&_0x47d545&&Object[_0xd373bf(0x2e7)](_0x388ad3,_0xed2651,_0x47d545),_0x47d545;}let C=class extends t[_0x4a4f45(0x423)]{constructor(_0x42df4f,_0x3b28b5,_0x54a749,_0x4b6e91,_0x6c67e7){const _0x32b76f=_0x4a4f45;super(),this[_0x32b76f(0x25c)]=_0x42df4f,this[_0x32b76f(0x38f)]=_0x3b28b5,this['_collaborationController']=_0x54a749,this[_0x32b76f(0x24a)]=_0x4b6e91,this[_0x32b76f(0x159)]=_0x6c67e7,b(this,_0x32b76f(0x356),new r[(_0x32b76f(0x154))](e[_0x32b76f(0x24e)]['NOT_COLLAB'])),b(this,_0x32b76f(0x33b),new Map()),this[_0x32b76f(0x25f)](),this[_0x32b76f(0x2eb)](),this[_0x32b76f(0x320)]();}[_0x4a4f45(0x288)](){const _0x755723=_0x4a4f45;this['_presenceStatusRegistrations'][_0x755723(0x22c)](_0xf5bf97=>_0xf5bf97[_0x755723(0x288)]()),this[_0x755723(0x33b)][_0x755723(0x337)](),this[_0x755723(0x356)][_0x755723(0x2c6)](),super['dispose']();}['_initStatusListener'](){const _0x2ef0cd=_0x4a4f45;this[_0x2ef0cd(0x2ad)]((0x0,r[_0x2ef0cd(0x42a)])(this['_univerInstanceService']['focused$'],this[_0x2ef0cd(0x25c)][_0x2ef0cd(0x135)](t[_0x2ef0cd(0x397)][_0x2ef0cd(0x19b)]),this[_0x2ef0cd(0x25c)][_0x2ef0cd(0x135)](t['UniverInstanceType'][_0x2ef0cd(0x379)]))[_0x2ef0cd(0x237)]((0x0,i[_0x2ef0cd(0x19c)])(()=>ie(this[_0x2ef0cd(0x25c)])),(0x0,i[_0x2ef0cd(0x1ea)])(),(0x0,r[_0x2ef0cd(0x3cd)])(_0x12b9cc=>_0x12b9cc?this['_collaborationController'][_0x2ef0cd(0x359)](_0x12b9cc):(0x0,r['of'])(null)),(0x0,r[_0x2ef0cd(0x3cd)])(_0x42a8bf=>_0x42a8bf?_0x42a8bf[_0x2ef0cd(0x145)]:(0x0,r['of'])(e['CollaborationStatus'][_0x2ef0cd(0x274)])))[_0x2ef0cd(0x195)](_0x59ccd5=>{const _0x3f5780=_0x2ef0cd;this[_0x3f5780(0x356)]['next'](_0x59ccd5);}));}[_0x4a4f45(0x25f)](){const _0x4cf645=_0x4a4f45;this[_0x4cf645(0x2ad)](this[_0x4cf645(0x24a)][_0x4cf645(0x2fe)](n[_0x4cf645(0x2f5)][_0x4cf645(0x16c)],()=>(0x0,n['connectInjector'])(w({'status$':this[_0x4cf645(0x356)]['asObservable']()}),this[_0x4cf645(0x38f)])));}[_0x4a4f45(0x320)](){const _0x161911=_0x4a4f45;let _0x3197a6=this[_0x161911(0x159)][_0x161911(0x153)]['subscribe'](_0x41baab=>{const _0x80738=_0x161911;this[_0x80738(0x198)](_0x41baab);});this[_0x161911(0x2ad)]((0x0,t[_0x161911(0x2be)])(()=>_0x3197a6[_0x161911(0x372)]()));}[_0x4a4f45(0x198)](_0x1b5424){const _0x5e5ba6=_0x4a4f45;let _0x17d3c9=new Map(_0x1b5424[_0x5e5ba6(0x3e3)](_0x158c64=>_0x158c64[_0x5e5ba6(0x1ed)]!=null)['map'](_0x5b841d=>[_0x5b841d[_0x5e5ba6(0x348)],_0x5b841d]));this[_0x5e5ba6(0x33b)][_0x5e5ba6(0x22c)]((_0x4be28a,_0x624dc2)=>{const _0x4460c6=_0x5e5ba6;_0x17d3c9[_0x4460c6(0x33a)](_0x624dc2)||(_0x4be28a[_0x4460c6(0x288)](),this[_0x4460c6(0x33b)][_0x4460c6(0x426)](_0x624dc2));}),_0x17d3c9['forEach']((_0x560373,_0x7265c5)=>{const _0x4e5069=_0x5e5ba6;this[_0x4e5069(0x33b)]['has'](_0x7265c5)||this[_0x4e5069(0x277)](_0x560373);});}[_0x4a4f45(0x277)](_0x1b70d8){const _0x387324=_0x4a4f45;let _0x2cfc79=_0x1b70d8['statusUIPart'];if(!_0x2cfc79)return;let _0x23d796=new t[(_0x387324(0x403))](),_0x57d1c8=new r[(_0x387324(0x154))](e[_0x387324(0x24e)][_0x387324(0x274)]);_0x23d796['add']((0x0,t[_0x387324(0x2be)])(()=>_0x57d1c8[_0x387324(0x2c6)]())),_0x23d796[_0x387324(0x307)](this[_0x387324(0x24a)][_0x387324(0x2fe)](_0x2cfc79,()=>(0x0,n[_0x387324(0x282)])(w({'status$':_0x57d1c8[_0x387324(0x34c)]()}),this[_0x387324(0x38f)])));let _0x57b21f=this[_0x387324(0x25c)][_0x387324(0x135)](_0x1b70d8['unitType'])[_0x387324(0x237)]((0x0,i['map'])(_0x3e6f2b=>(_0x3e6f2b==null?void 0x0:_0x3e6f2b[_0x387324(0x370)]())??null),(0x0,i[_0x387324(0x1ea)])(),(0x0,r[_0x387324(0x3cd)])(_0xf83c07=>_0xf83c07?this[_0x387324(0x3d5)]['getCollabEntity$'](_0xf83c07):(0x0,r['of'])(null)),(0x0,r[_0x387324(0x3cd)])(_0x177378=>(_0x177378==null?void 0x0:_0x177378[_0x387324(0x145)])??(0x0,r['of'])(e[_0x387324(0x24e)][_0x387324(0x274)])))[_0x387324(0x195)](_0x55886b=>_0x57d1c8['next'](_0x55886b));_0x23d796[_0x387324(0x307)]((0x0,t['toDisposable'])(()=>_0x57b21f['unsubscribe']())),this['_presenceStatusRegistrations'][_0x387324(0x1a1)](_0x1b70d8[_0x387324(0x348)],_0x23d796);}};C=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t['Injector'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e['CollaborationController'])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t[_0x4a4f45(0x289)])(n[_0x4a4f45(0x1b7)]))],C);function ie(_0xe42414){const _0x3557f0=_0x4a4f45;let _0x1fa9a9=_0xe42414['getFocusedUnit'](),_0x5988d2=_0x1fa9a9==null?void 0x0:_0x1fa9a9[_0x3557f0(0x370)]();if(_0x5988d2&&!(0x0,t[_0x3557f0(0x2b7)])(_0x5988d2))return _0x5988d2;let _0x41530e=_0xe42414['getCurrentUnitOfType'](t[_0x3557f0(0x397)]['UNIVER_DOC']),_0x4b93b8=_0x41530e==null?void 0x0:_0x41530e[_0x3557f0(0x370)]();if(_0x4b93b8&&!(0x0,t['isInternalEditorID'])(_0x4b93b8))return _0x4b93b8;let _0x27de35=_0xe42414[_0x3557f0(0x2dc)](t[_0x3557f0(0x397)]['UNIVER_SHEET']);if(_0x27de35)return _0x27de35['getUnitId']();let _0x1f54eb=_0xe42414[_0x3557f0(0x413)](t[_0x3557f0(0x397)][_0x3557f0(0x19b)])['find'](_0x1417aa=>!(0x0,t['isInternalEditorID'])(_0x1417aa[_0x3557f0(0x370)]()));return _0x1f54eb?_0x1f54eb['getUnitId']():null;}function w(_0x2d65bd){let {status$:_0x3da216}=_0x2d65bd;return function(){const _0x55ff28=_0xd371;return(0x0,c[_0x55ff28(0x12b)])(te,{'status$':_0x3da216});};}var ae=_0x4a4f45(0x319),oe=_0x4a4f45(0x1c1);const T={'id':'collaboration-client-ui.operation.update-remote-unit-presence','type':t[_0x4a4f45(0x150)][_0x4a4f45(0x240)],'handler':(_0x5c041b,_0x48cc48)=>{const _0x28064b=_0x4a4f45;let _0x23d72c=_0x5c041b[_0x28064b(0x39f)](n[_0x28064b(0x1b7)])[_0x28064b(0x39f)](_0x48cc48[_0x28064b(0x348)]);if(!_0x23d72c)return!0x1;switch(_0x48cc48['update']['type']){case _0x28064b(0x1a1):return _0x23d72c['setRemotePresence'](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x1a0)]),!0x0;case _0x28064b(0x221):return _0x23d72c[_0x28064b(0x352)](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x3ad)],_0x48cc48[_0x28064b(0x410)][_0x28064b(0x1f0)]),!0x0;case'clear':return _0x23d72c[_0x28064b(0x1f5)](_0x48cc48[_0x28064b(0x410)][_0x28064b(0x3ad)]),!0x0;default:return!0x1;}}},se={};let E=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x31eff7,_0x3fc7e2){const _0x4001f5=_0x4a4f45;super(),this['_docClipboardService']=_0x31eff7,this['_imageIoService']=_0x3fc7e2,this[_0x4001f5(0x332)]();}[_0x4a4f45(0x332)](){const _0x1f5eb7=_0x4a4f45;let _0x2cc5e7=this;this[_0x1f5eb7(0x2ad)](this[_0x1f5eb7(0x1e8)]['addClipboardHook']({'onBeforePasteImage':async _0x282680=>{const _0x437040=_0x1f5eb7;let _0x377d76=await _0x2cc5e7[_0x437040(0x28f)]['saveImage'](_0x282680);return _0x377d76?{'source':_0x377d76[_0x437040(0x167)],'imageSourceType':_0x377d76[_0x437040(0x3b4)]}:null;}}));}};function _0x55ab(){const _0x370281=['_textBubble','EffectRefRangId','_dispose$','_onCursorUpdate','handleInsertCol','[Unhandled\x20Rejection]:\x20','transformMutationsWithChangeset','registerComponent','_anchor','_startDocCollabCursor','_offsetY','purple.300','getItem','params','_revisionService','message','add','_uploadLog','getTypeOfUnitAdded$','visible','status','decorate','collabCursorState$','isActive','ColorKit','resize','jsxs','_adapterRegistry','userId','_assignedColors','find','_clearTimeoutState','setItem','_cursorInfo$','@univerjs-pro/collaboration-client-ui','OffLineIcon','right','Subject','getCoordRelativeToViewport','_getAnchorBounding','LOADING_BLOCKS','_initPresenceStatusComponents','!univer-grid\x20univer-grid-cols-[16px_minmax(0,1fr)]\x20univer-items-start\x20univer-gap-x-1.5\x20univer-gap-y-2','timer','subunit','_getSaveTimeout','enableUrlUnitLoader','isEditing','_updateSubUnitFromURLParams','MoveRangeCommandId','clickable','_normalizeUserId','bold\x2013px\x20Arial,\x20sans-serif','UPDATE_CURSOR','_unitOnClients','transform','_range','assignAColorForMemberID','requireSession','_init','top','keys','716664nOPocd','_registerRenderDependencies','clear','highlightSecond','SheetCollabCursorShape','has','_presenceStatusRegistrations','replace','_beforeCloseService','selection','_highlightSecond','getOffsetConfig','onPointerMove$','collaboration-client-ui.session.collaboration-timeout','transformMutation','IURLService','MessageType','collaboration-client-ui.collabStatus.synced','isArray','unitType','_transformService','RevisionService','SHEET_VIEWPORT_KEY','asObservable','startsWith','isTransformMutationsWithChangesetSuccess','Rectangle','182420RGcsAv','univer-inline-flex\x20univer-items-center\x20univer-justify-center','removeRemotePresence','fromEventSubject','_docTransformIMECacheService','range','_status$','_handleHeartbeatEvent','call','getCollabEntity$','black','getMergeData','allSettled','endColumn','serializeRangeWithSheet','number','getOwnPropertyDescriptor','selectedIds','object','div','rgba','getLocalPresence','_disposed','timeoutId','_initDependencies','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','useObservable','_syncAdapters','setActiveRange','ILocalCacheService','_disabled','...','getUnitId','removeParam','unsubscribe','_pointerMoveDisposable','_memberService','hide','getDocumentSkeletonColumnPagePathInfo','tableId','column','UNIVER_SHEET','_handleLeaveEvent','memberID','171246utFbOp','getCurrentUser','text','_collabCursorState$','socket$','getColorFromTheme','IConfigService','_getScale','useDependency','5754OBMwCQ','GLOBAL','mergeOverrideWithDependencies','DeleteRangeMoveUpCommandId','newValue','loadedBlocks','_online','Module','online$','_docSkeleton','_injector','_render','5683596qHJHyX','_transformHistoryAndStateStack','getValue','save','_blinkIntervalTimer','_watchBlockProgress','UniverInstanceType','_showConflictCacheClearFailedNotification','48378OqRXXM','Enter','getUnitStatus$','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN',',\x200.2)','fillStyle','get','catch','highlight','_updateURLWithCurrentState','_showConflictProcessingNotification','_blockProgressWatches','selections','_retryConflictCacheClear','_updateMessage','reason','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unshift','alert','onMouseMove','unitId','_drawAnchor','code','IBeforeCloseService','_disposeEntity','push','name','imageSourceType','_cachedData','getTypeOfUnitDisposed$','onCommandExecuted','_scheduleClearOtherTimer','_labelHorizontalPosition','createInstance','_handleCursorUpdate','univer-text-gray-400','_clearRemotePresences','makeDirty','_scheduleSaving','presenceKind','override','Workbook','backupOfflineData','addEventListener','InsertRangeMoveRightCommandId','_send','collab-rect-range-','_labelPosition','[LogService\x20Error]:\x20','useCallback','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_docStateChangeManagerService','switchMap','focus','_stopBlinking','slice','/run/','_urlService','ILogService','snapshot-loading-','_collaborationController','getRenderUnitById','_getUserId','_clearOtherTimers','key','parseInt','size','_onCursorDelete','_selfUnitIDs','currentSkeleton$','columnIndex','color','with','lineTo','filter','Tools','_refreshCollabCursors','ERROR','NO_OTHER_CLIENTS_EDITING','USERS_LEAVE','_roomMembers$','_heartbeatTimer','_docSkeletonManagerService','CONFLICT_PROCESSING','getViewport','ErrorCode','OFFLINE','split','dispose$','SessionStatus','univer-text-orange-500','IRenderManagerService','PENDING','CONFLICT_CACHE_CLEAR_FAILED','CollaborationSessionService','mutations','default','_logService','filename','activeSheet$','transformByState','getCurrentSelections','_snapshotLoadingService','_initEntityListener','_listenToOnlineEvent','some','DisposableCollection','createSocket','_collabCursorController','wsSessionTicketUrl','collaboration-client-ui.collabStatus.syncing','prepareTransformSelections','replaceSelectionInfoWithoutRefresh','_disposeEntitiesForType','_saveTaskMap','values','clsx','every','setTimeout','update','FromArray','MemberService','getAllUnitsForType','pointer','LoadingMultiIcon','_retryingConflictCacheUnitIDs','135fyuWrU','setStateCache','icon','startColumn','_setupBeforeClosingHandler','textRanges','collaboration-client-ui.conflict.title','_id','roomMembers$','_colorIndex','_docTransformSelectionsService','_removeCollabCursors','Disposable','_blinkTimer','161030wuKqKz','delete','_initWindowErrorListener','kind','_sheetSkeletonManagerService','merge','visibilityState','#FFF','init','takeUntil','rgba(','endRow','_adapterDisposables','colorClass','_toggleOnline','colno','getColor','univer-text-green-500','_messageIds','loadUnit','jsx','parse','_instanceService','0.2)','Failed','_scheduleHeartbeat','_updateCollabCursors','startRow','_renderManagerService','_listenToOfflineEvent','getCurrentTypeOfUnit$','_document','triggerDblclick','_cursors','min','pushState','collaboration-client-ui.collabStatus.offline','\x20at\x20','univer-fixed\x20univer-left-1/2\x20univer-top-4\x20univer-z-[1001]\x20univer-flex\x20univer-max-w-[calc(100vw-32px)]\x20-univer-translate-x-1/2\x20univer-items-center\x20univer-gap-2\x20univer-rounded-lg\x20univer-bg-gray-0\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-0','next','search','_isBlinkVisible','ISocketService','_syncEditingCollabCursorService','debounce','now','status$','currentTheme$','addObjects','type','enableOfflineEditing','createIdentifier','_commandService','IImageIoService','DocSelectionManagerService','HTTPEventType','showText','CommandType','location','href','adapters$','BehaviorSubject','shareReplay','getParam','disableLocalCache','Unknown\x20user','_presenceAdapterRegistry','deepClone','saveTaskMap','fromEvent','onLine','_initUnhandledRejectionListener','stack','univer-m-0\x20univer-p-0','enableFrontendLog','BrowserCollaborationSocketService','getLocalCacheKey','_onRefRangeChange','flatMap','toISOString','source','_messageService','DOC_RANGE_TYPE','getActiveSheet','collaboration-client-ui.collaboration.closeRoom','HEADER_MENU','_getSheetObject','true','HEADER','eventID','_collaborationSessionService','bind','_notificationService','_docTransformStateCacheService','UnitStatus','engine','_startSheetCollabCursor','/universer-api/frontend/logs','Warning','_removeRemotePresence','getScrollXYInfoByViewport','SetTextSelectionsOperation','_memberID','CONFLICT','_localCacheService','getSheetBySheetId','unit','getSkeleton','state$','doc.mutation.rich-text-editing','DocIMEInputManagerService','runRefRangeMutations','clearTimeout','LocaleService','getConfig','getAncestorScale','SetWorksheetActivateCommand','data','executeCommand','length','searchParams','entityInit$','measureText','_themeService','UniverRenderEnginePlugin','SheetsSelectionsService','subscribe','_docSyncEditingCollabCursorService','getCollabCursors$','_syncPresenceStatusComponents','replaceState','fillText','UNIVER_DOC','map','HTTPService','SOCKET_FAILED_RETRY','setConfig','state','set','OnLineIcon','rgb','_adapter','getDocRanges','handleDeleteRangeMoveUp','runId','getFocusedUnit','_userManagerService','_scene','addHandlerCallback','reconnect','WebBrowserSingleActiveUnitService','transformRemoteChangeset','getMemberID','_clearBlockProgressWatch','function','redoState','offsetY','Shape','SYNCED','row','IUnitPresenceUIAdapterRegistry','_replaceConflictNotification','subUnitId','InsertRangeMoveDownCommandId','pageIndex','CollaborationUIEventService','\x20-\x20','roomMembers','addObject','Plugin','1.1.0','_colorAssignService','_initResize','_latestStates','startOffset','button','UniverLicensePlugin','_trackActiveSaveTask','lineno','_bindAdapter','ACTIVE_UNIT_EVENT_CHANNEL','Error','RegularPolygon','offline','storage','getUndoRedoMutationParamsCache','collaboration-client-ui.conflict.clearFailed','DEFAULT_WS_SESSION_TICKET_URL','_refRangeService','loadOfflineData','_context','toString','SetSelectionsOperation','editingUnit','onPointerEnter$','_pendingEntities','univer-transition-all\x20univer-duration-200','setParam','_hideTimer','ICommandService','registerCommand','focusedId','post','collaboration-client-ui.session.will-retry','_session',':backup:','syncEditingCollabCursor','_showText','_name','_docClipboardService','getMember','distinctUntilChanged','handleInsertRow','transformStateCache','statusUIPart','Tooltip','bottom','memberId','_ensureSubject','_sendLocalPresence','indicator','toRgbString','clearRemotePresences','getSheetObject','stream','disposeUnit','findNodePositionByCharIndex','exhaustSavingTask','VIEW_MAIN','UniverCollaborationClientPlugin','online','Rect','IUniverInstanceService','UniverCollaborationPlugin','saveOfflineData','[CollaborationDataLoaderController]','iterator','subscribeEvent','_drawRectRange','spin','_saveCache','snapshot-loading-timeout','restore','ITransformService','touchDependencies','shareInterval','Loading','send','dark:focus:!univer-ring-offset-gray-800','registerDependencies','_drawTextRange','event$','_toggleOffline','_initEvent','width','urlChange$','visibilitychange','symbol','labelPosition','options','combineLatest','_docSelectionManagerService','height','CollaborationController','2936ibnyXx','NodePositionConvertToCursor','remove','IUIPartsService','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','getStateCache','evenodd','univer-flex\x20univer-items-center\x20univer-justify-center','unload','enableDocumentCollaborationUI','registerRenderModule','setShapeProps','preventDefault','forEach','sheetID','univer-text-red-500','red.300','setInterval','UserManagerService','reload','getCurrentRevOfUnit','timeoutState$','columnGroupId','userID','pipe','_getSessionTicket','OTHER_CLIENTS_EDITING','registerRefRange','_dataLoaderService','_startBlinking','handleDeleteRangeMoveLeft','_localStorageService','_activeSaveTaskMap','OPERATION','from','moveTo','CollaborationEvent','SnapshotLoadStage','getRangePointData','unitID','_cursorShapes','_online$','_localeService','_uiPartsService','LOCAL_CACHE_INTERVAL_KEY','yellow.400','ILocalStorageService','CollaborationStatus','updateOfflineData','_unitStatus','CLOSE_ROOM','transformIMECache','drawWith','undoState','_removeClearOtherTimer','collaboration-client-ui.session.connection-failed','SetDocZoomRatioOperation','beginPath','prototype','_startEntity','content','_univerInstanceService','collaboration-client-ui.conflict.content','handleIRemoveRow','_initStatusComponent','ThemeService','finally','TEXT_RANGE_LAYER_INDEX','collaboration-client-ui.config','_shapes','DesktopCollaborationStatusDisplayController','includes','_updateLocalCursor','_lastPointer','25buyLkG','FOOTER','stringify','pageType','join','Injector','collaboration-client-ui.collaboration.single-unit.warning','debounceTime','UniverDocsPlugin','univer-text-blue-500','DocCollaborationEntity','NOT_COLLAB','sheetId','cursorInfo','_registerPresenceStatusComponent','_getLighterColor','body','i18nKey','_collabSessionService','_anchorDot','ISnapshotServerService','sessionTicket','error','RichTextEditingMutation','_configService','connectInjector','DocumentSkeletonPageType','_initialized','DataLoaderService','_doCreateSocket','_draw','dispose','Inject','all','IMessageService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','11royWuo','generateRandomId','_imageIoService','rgba(255,\x20255,\x20255,\x200.01)','timeout','_entityInit$','_highlight','setUndoRedoMutationParamsCache','show','cursorInfo$','collaboration-client-ui.collabStatus.conflict','tooltipKey','_handleHover','canRenderSelection','CollaborationUIEventId','clearInterval','_handleJoinEvent','_color','collaboration-client-ui.collabStatus.fetchMiss','handleInsertRangeMoveDown','getUnhiddenWorksheets','_conflictNotification','polite','!univer-m-0\x20univer-col-start-2\x20univer-row-start-2\x20univer-justify-self-end','JOIN_ROOM_FAILED','RxDisposable','collaboration-client-ui.snapshotLoading.refresh','_timeoutState$','setAlpha','_createSocketURL','history','_monkeyPatchLogService','disposeWithMe','enableLocalCache','primary','3SQPiFi','then','RemoveColCommandId','useMemo','sessionStatus$','FETCH_MISS','_backgroundColor','isInternalEditorID','_transformUndoRedoStack','_config','createElement','AWAITING','static','_eventUnsubscribe','toDisposable','Vector2','_entities','PERMISSION_DENIED','_cursor','CollaborationSocketService','ranges','arc','complete','InsertRowCommandId','RemoveRowCommandId','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getCoordByCell','font','_hovered','_collaborationUIEventService','_httpService','string','AWAITING_WITH_PENDING','small','collaboration-client-ui.conflict.processing','DocStateChangeManagerService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_initUserListener','Button','stage','setOffsetY','version','executionId','segmentPage','getCurrentUnitOfType','isFinite','getSheetId','removeItem','_isVisibleUnit','GET','isTransformMutationFailure','span','m1Prime','fillRule','backgroundColor','defineProperty','ONLINE','toStringTag','collaboration-client-ui.permission.title','_initStatusListener','_hover','m2Prime','COLORS','clearOfflineData','DeleteRangeMoveLeftCommandId','removeEventListener','closePath','UniverDocsUIPlugin','fill','BuiltInUIPart','timedOut'];_0x55ab=function(){return _0x370281;};return _0x55ab();}E=S([x(0x0,f['IDocClipboardService']),x(0x1,t[_0x4a4f45(0x14c)])],E);const ce=[_0x4a4f45(0x302),'jiqing.500','green.600',_0x4a4f45(0x22f),'blue.400',_0x4a4f45(0x24c)];var D=class extends t[_0x4a4f45(0x423)]{constructor(..._0x2b1df9){const _0xf9a30b=_0x4a4f45;super(..._0x2b1df9),b(this,_0xf9a30b(0x314),new Map()),b(this,_0xf9a30b(0x420),0x0);}[_0x4a4f45(0x330)](_0x21f9e0){const _0x599a0e=_0x4a4f45;if(this[_0x599a0e(0x314)][_0x599a0e(0x33a)](_0x21f9e0))return this[_0x599a0e(0x314)][_0x599a0e(0x39f)](_0x21f9e0);let _0x2b084f=ce[this[_0x599a0e(0x420)]];return this[_0x599a0e(0x420)]=(this[_0x599a0e(0x420)]+0x1)%ce[_0x599a0e(0x18e)],this[_0x599a0e(0x314)][_0x599a0e(0x1a1)](_0x21f9e0,_0x2b084f),_0x2b084f;}};function le(_0x1e5f15){const _0x5dcd73=_0x4a4f45;let _0x308d98='';for(let _0x51b984 of _0x1e5f15){let {startOffset:_0x11dc60,endOffset:_0xc31610,isActive:_0x2abfbe,rangeType:_0x12fd55,segmentId:_0x5cb9a4,segmentPage:_0x2be2a5}=_0x51b984;_0x308d98[_0x5dcd73(0x18e)]&&(_0x308d98+=','),_0x308d98+=_0x11dc60+':'+_0xc31610+':'+(_0x2abfbe?'1':'0')+':'+_0x12fd55+':'+_0x5cb9a4+':'+_0x2be2a5;}return _0x308d98;}function ue(_0xb33801){const _0x132f2f=_0x4a4f45;let _0x32d9d5=_0xb33801[_0x132f2f(0x3f0)](','),_0x32d372=[];for(let _0xe90c58 of _0x32d9d5){let [_0x5318ad,_0xd0f37d,_0x2c64fa,_0x5894b5,_0x1be126,_0x20a9f3]=_0xe90c58['split'](':');_0x32d372[_0x132f2f(0x3b2)]({'startOffset':Number(_0x5318ad),'endOffset':Number(_0xd0f37d),'collapsed':_0x5318ad===_0xd0f37d,'isActive':_0x2c64fa==='1','rangeType':_0x5894b5===t['DOC_RANGE_TYPE']['TEXT']?t[_0x132f2f(0x169)]['TEXT']:t[_0x132f2f(0x169)]['RECT'],'segmentId':typeof _0x1be126==_0x132f2f(0x2cf)?String(_0x1be126):'','segmentPage':Number(_0x20a9f3??-0x1)});}return _0x32d372[_0x132f2f(0x402)](_0x7e9c09=>_0x7e9c09[_0x132f2f(0x30e)])||(_0x32d372[0x0][_0x132f2f(0x30e)]=!0x0),_0x32d372;}var O=class extends t[_0x4a4f45(0x2a6)]{constructor(..._0x3d167d){const _0x250455=_0x4a4f45;super(..._0x3d167d),b(this,_0x250455(0x37f),new r[(_0x250455(0x154))](null)),b(this,_0x250455(0x30d),this[_0x250455(0x37f)][_0x250455(0x34c)]());}[_0x4a4f45(0x1e5)](_0x1e688e){const _0x81accb=_0x4a4f45;let {unitID:_0x5d794f,memberID:_0x25f41d,textRanges:_0x561a70}=_0x1e688e,_0x3541b6=le(_0x561a70);if(_0x3541b6==='')return;let _0xbd380d={'unitID':_0x5d794f,'memberID':_0x25f41d,'selection':_0x3541b6};this[_0x81accb(0x37f)][_0x81accb(0x13e)](_0xbd380d);}};let k=class extends t[_0x4a4f45(0x2a6)]{get['cursorInfo'](){const _0x2db7f4=_0x4a4f45;return this[_0x2db7f4(0x318)]['getValue']();}get[_0x4a4f45(0x1be)](){const _0x21b22b=_0x4a4f45;return this['_roomMembers$'][_0x21b22b(0x393)]();}constructor(_0x4b2878,_0x4919c1,_0x1d7c48,_0x4cb815,_0x2816af,_0x36be6c,_0x5ef2d8,_0x523a7f,_0x291068){const _0x174991=_0x4a4f45;super(),this[_0x174991(0x246)]=_0x4b2878,this[_0x174991(0x1e3)]=_0x4919c1,this[_0x174991(0x38f)]=_0x1d7c48,this[_0x174991(0x1c2)]=_0x4cb815,this['_memberService']=_0x2816af,this[_0x174991(0x142)]=_0x36be6c,this[_0x174991(0x349)]=_0x5ef2d8,this['_univerInstanceService']=_0x523a7f,this['_commandService']=_0x291068,b(this,_0x174991(0x38b),!0x1),b(this,_0x174991(0x332),!0x1),b(this,_0x174991(0x318),new r[(_0x174991(0x154))](new Map())),b(this,'cursorInfo$',this[_0x174991(0x318)][_0x174991(0x34c)]()),b(this,'_roomMembers$',new r[(_0x174991(0x154))]([])),b(this,_0x174991(0x41f),this[_0x174991(0x3e9)][_0x174991(0x237)]((0x0,r[_0x174991(0x270)])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x174991(0x143)])(_0x3c2750=>{const _0x547b91=_0x174991;let _0x560f06={'eventID':l['CollaborationEvent'][_0x547b91(0x32c)],'data':{'unitID':this[_0x547b91(0x246)],'memberID':this[_0x547b91(0x1e3)]['getMemberID'](),'selection':le(_0x3c2750)}};this[_0x547b91(0x1e3)][_0x547b91(0x20e)](_0x560f06,this[_0x547b91(0x246)]);},0x64));}[_0x4a4f45(0x288)](){const _0x5e16ba=_0x4a4f45;super[_0x5e16ba(0x288)](),this[_0x5e16ba(0x318)][_0x5e16ba(0x13e)](new Map()),this[_0x5e16ba(0x318)][_0x5e16ba(0x2c6)](),this['_roomMembers$']['next']([]),this[_0x5e16ba(0x3e9)][_0x5e16ba(0x2c6)]();}[_0x4a4f45(0x42d)](){const _0x5772e7=_0x4a4f45;this['_init']||(this[_0x5772e7(0x332)]=!0x0,this[_0x5772e7(0x1e3)]['sessionStatus$']['pipe']((0x0,r[_0x5772e7(0x42e)])(this[_0x5772e7(0x3f1)]))[_0x5772e7(0x195)](_0x446ed7=>{const _0x41646a=_0x5772e7;_0x446ed7===e[_0x41646a(0x3f2)][_0x41646a(0x2e8)]?this['_toggleOnline']():this[_0x41646a(0x213)]();}),this['_session'][_0x5772e7(0x212)][_0x5772e7(0x237)]((0x0,r[_0x5772e7(0x42e)])(this['dispose$']))[_0x5772e7(0x195)](_0x28ab5e=>{const _0x4ad7d1=_0x5772e7;let _0x41b323=_0x28ab5e[_0x4ad7d1(0x170)];_0x41b323===l[_0x4ad7d1(0x243)]['UPDATE_CURSOR']&&this[_0x4ad7d1(0x2fa)](_0x28ab5e),_0x41b323===l[_0x4ad7d1(0x243)][_0x4ad7d1(0x3e8)]&&this[_0x4ad7d1(0x3dc)](_0x28ab5e);}),this[_0x5772e7(0x2ad)](this['_commandService']['onCommandExecuted'](_0x59123d=>{const _0x3f879d=_0x5772e7;let _0xcae9c8=_0x59123d['params'];_0xcae9c8!=null&&this[_0x3f879d(0x38b)]&&_0x59123d['id']===d[_0x3f879d(0x17c)]['id']&&_0xcae9c8['unitId']===this[_0x3f879d(0x246)]&&_0xcae9c8[_0x3f879d(0x326)]===!0x1&&_0xcae9c8[_0x3f879d(0x2c4)][_0x3f879d(0x18e)]>0x0&&this[_0x3f879d(0x267)](_0xcae9c8[_0x3f879d(0x2c4)]);})),this[_0x5772e7(0x142)][_0x5772e7(0x30d)][_0x5772e7(0x237)]((0x0,r[_0x5772e7(0x42e)])(this[_0x5772e7(0x3f1)]))[_0x5772e7(0x195)](_0x3dc332=>{const _0x48fcc3=_0x5772e7;if((_0x3dc332==null?void 0x0:_0x3dc332['unitID'])!==this[_0x48fcc3(0x246)])return;let _0x1c5046={'eventID':l[_0x48fcc3(0x243)][_0x48fcc3(0x32c)],'data':_0x3dc332};this[_0x48fcc3(0x2fa)](_0x1c5046);}),this[_0x5772e7(0x2ad)](this['_commandService'][_0x5772e7(0x3b7)](_0xf6126d=>{const _0x6f955c=_0x5772e7;if(_0xf6126d[_0x6f955c(0x304)]==null)return;let _0x1086e9=_0xf6126d[_0x6f955c(0x304)];if(_0xf6126d['id']!==d[_0x6f955c(0x280)]['id']||_0x1086e9[_0x6f955c(0x3ad)]!==this[_0x6f955c(0x246)])return;let _0x24ba9d={'id':_0x6f955c(0x184),'params':_0x1086e9},_0x38cf9a=this[_0x6f955c(0x276)];for(let [_0x18067d,_0x1d4bfb]of _0x38cf9a){let _0x4d7a99={'id':_0x6f955c(0x184),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x1d4bfb[_0x6f955c(0x2c4)]}},_0x220865=this[_0x6f955c(0x349)][_0x6f955c(0x343)](_0x24ba9d,_0x4d7a99,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x220865))throw _0x220865[_0x6f955c(0x27f)];_0x38cf9a[_0x6f955c(0x1a1)](_0x18067d,{..._0x1d4bfb,'ranges':_0x220865[_0x6f955c(0x2ed)][_0x6f955c(0x304)][_0x6f955c(0x41c)]});}queueMicrotask(()=>{const _0x3cef99=_0x6f955c;this['_cursorInfo$'][_0x3cef99(0x13e)](_0x38cf9a);});})));}[_0x4a4f45(0x2fa)](_0x4541f8){const _0x116a84=_0x4a4f45;var _0x5b59e;let {memberID:_0x11035a,selection:_0x208c8d}=_0x4541f8[_0x116a84(0x18c)],_0x460567=ue(_0x208c8d),_0x406d73=((_0x5b59e=this[_0x116a84(0x374)]['getMember'](this[_0x116a84(0x246)],_0x11035a))==null?void 0x0:_0x5b59e[_0x116a84(0x3b3)])??'Unknown\x20user',_0x13ab5f={'color':this[_0x116a84(0x1c2)]['assignAColorForMemberID'](_0x11035a),'name':_0x406d73,'ranges':_0x460567},_0x557f0d=this[_0x116a84(0x276)];_0x557f0d[_0x116a84(0x1a1)](_0x11035a,_0x13ab5f),this[_0x116a84(0x318)]['next'](_0x557f0d);}[_0x4a4f45(0x3dc)](_0x1ecae2){const _0xff2642=_0x4a4f45;let {memberID:_0x37b8ec}=_0x1ecae2[_0xff2642(0x18c)],_0x2eabe9=this[_0xff2642(0x276)];_0x2eabe9[_0xff2642(0x426)](_0x37b8ec),this[_0xff2642(0x318)][_0xff2642(0x13e)](_0x2eabe9);}[_0x4a4f45(0x125)](){const _0x5d25b5=_0x4a4f45;var _0x5be400;if(this[_0x5d25b5(0x38b)]=!0x0,((_0x5be400=this[_0x5d25b5(0x25c)]['getFocusedUnit']())==null?void 0x0:_0x5be400['getUnitId']())!==this[_0x5d25b5(0x246)])return;let _0x34a535=this['_injector'][_0x5d25b5(0x39f)](d[_0x5d25b5(0x14d)])[_0x5d25b5(0x1a5)]();Array[_0x5d25b5(0x347)](_0x34a535)&&_0x34a535[_0x5d25b5(0x18e)]>0x0&&this[_0x5d25b5(0x267)](_0x34a535);}[_0x4a4f45(0x213)](){const _0x42e937=_0x4a4f45;this[_0x42e937(0x38b)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x3,(0x0,t[_0x4a4f45(0x289)])(D)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(e['MemberService'])),x(0x5,(0x0,t[_0x4a4f45(0x289)])(O)),x(0x6,l['ITransformService']),x(0x7,t[_0x4a4f45(0x1ff)]),x(0x8,t[_0x4a4f45(0x1de)])],k);const de=()=>{let _0x4fc1e2=[],_0x36c0ae=!0x1;return _0x1d75de=>{_0x4fc1e2['push'](_0x1d75de),_0x36c0ae||(_0x36c0ae=!0x0,setTimeout(()=>{const _0x20fbc4=_0xd371;_0x4fc1e2[_0x20fbc4(0x22c)](_0x535936=>_0x535936()),_0x4fc1e2=[],_0x36c0ae=!0x1;}));};};let A=class extends t[_0x4a4f45(0x2a6)]{get[_0x4a4f45(0x276)](){const _0x44f9d9=_0x4a4f45;return this[_0x44f9d9(0x318)][_0x44f9d9(0x393)]();}get[_0x4a4f45(0x1be)](){const _0x13ba9d=_0x4a4f45;return this[_0x13ba9d(0x3e9)][_0x13ba9d(0x393)]();}constructor(_0x32762e,_0x5569fe,_0x515b63,_0x15309d,_0x128800,_0x574992,_0x47c929,_0x173fa9){const _0x2613cc=_0x4a4f45;super(),this[_0x2613cc(0x246)]=_0x32762e,this[_0x2613cc(0x1e3)]=_0x5569fe,this[_0x2613cc(0x38f)]=_0x515b63,this[_0x2613cc(0x1c2)]=_0x15309d,this['_memberService']=_0x128800,this[_0x2613cc(0x25c)]=_0x574992,this[_0x2613cc(0x14b)]=_0x47c929,this[_0x2613cc(0x1d3)]=_0x173fa9,b(this,_0x2613cc(0x38b),!0x1),b(this,_0x2613cc(0x332),!0x1),b(this,'_cursorInfo$',new r[(_0x2613cc(0x154))](new Map())),b(this,_0x2613cc(0x296),this[_0x2613cc(0x318)][_0x2613cc(0x34c)]()),b(this,'_roomMembers$',new r['BehaviorSubject']([])),b(this,'roomMembers$',this[_0x2613cc(0x3e9)]['pipe']((0x0,r['debounceTime'])(0x12c))),b(this,'_updateLocalCursor',(0x0,t[_0x2613cc(0x143)])((_0x2eaa11,_0x114ac7)=>{const _0xb26ae2=_0x2613cc;let _0x609b64={'eventID':l['CollaborationEvent'][_0xb26ae2(0x32c)],'data':{'unitID':this[_0xb26ae2(0x246)],'memberID':this[_0xb26ae2(0x1e3)][_0xb26ae2(0x1af)](),'selection':(0x0,h[_0xb26ae2(0x35e)])(_0x2eaa11,_0x114ac7[_0xb26ae2(0x355)])}};this[_0xb26ae2(0x1e3)][_0xb26ae2(0x20e)](_0x609b64,this[_0xb26ae2(0x246)]);},0x64));}[_0x4a4f45(0x288)](){const _0x15bcb7=_0x4a4f45;super[_0x15bcb7(0x288)](),this[_0x15bcb7(0x318)][_0x15bcb7(0x13e)](new Map()),this[_0x15bcb7(0x318)][_0x15bcb7(0x2c6)](),this['_roomMembers$']['next']([]),this[_0x15bcb7(0x3e9)][_0x15bcb7(0x2c6)]();}[_0x4a4f45(0x42d)](){const _0x1b225b=_0x4a4f45;this['_init']||(this[_0x1b225b(0x332)]=!0x0,this['_session'][_0x1b225b(0x2b4)][_0x1b225b(0x237)]((0x0,r[_0x1b225b(0x42e)])(this['dispose$']))[_0x1b225b(0x195)](_0x21749b=>{const _0x127d43=_0x1b225b;_0x21749b===e[_0x127d43(0x3f2)][_0x127d43(0x2e8)]?this[_0x127d43(0x125)]():this[_0x127d43(0x213)]();}),this['_session'][_0x1b225b(0x212)][_0x1b225b(0x237)]((0x0,r['takeUntil'])(this[_0x1b225b(0x3f1)]))[_0x1b225b(0x195)](_0x378080=>{const _0x2af9cd=_0x1b225b;let _0x22dc81=_0x378080[_0x2af9cd(0x170)];_0x22dc81===l[_0x2af9cd(0x243)][_0x2af9cd(0x32c)]&&this[_0x2af9cd(0x2fa)](_0x378080),_0x22dc81===l[_0x2af9cd(0x243)][_0x2af9cd(0x3e8)]&&this['_onCursorDelete'](_0x378080);}),this['_onRefRangeChange'](),this[_0x1b225b(0x2ad)](this[_0x1b225b(0x14b)][_0x1b225b(0x3b7)](_0x356d62=>{const _0x2d904d=_0x1b225b;if(this['_online']&&_0x356d62['id']===g[_0x2d904d(0x1d7)]['id']&&_0x356d62['params']['unitId']===this['unitID']){let _0x4f51b5=_0x356d62['params'];this[_0x2d904d(0x267)](_0x4f51b5[_0x2d904d(0x1b9)],_0x4f51b5[_0x2d904d(0x3a5)][0x0]);}})));}[_0x4a4f45(0x2fa)](_0x5352d4){const _0x557bca=_0x4a4f45;var _0x4a22bc;let {memberID:_0x15c422,selection:_0x3c5e0b}=_0x5352d4[_0x557bca(0x18c)],{sheetName:_0x9529ff,range:_0x18e602}=(0x0,h['deserializeRangeWithSheet'])(_0x3c5e0b),_0xffb8f9={'name':((_0x4a22bc=this[_0x557bca(0x374)][_0x557bca(0x1e9)](this[_0x557bca(0x246)],_0x15c422))==null?void 0x0:_0x4a22bc['name'])??_0x557bca(0x158),'range':this['_getMergeRange'](_0x9529ff,_0x18e602),'sheetID':_0x9529ff,'color':this[_0x557bca(0x1c2)][_0x557bca(0x330)](_0x15c422),'selection':_0x3c5e0b},_0x398560=this[_0x557bca(0x276)];_0x398560[_0x557bca(0x1a1)](_0x15c422,_0xffb8f9),this['_cursorInfo$']['next'](_0x398560);}['_onCursorDelete'](_0x5dac19){const _0x541e66=_0x4a4f45;let {memberID:_0x42297d}=_0x5dac19['data'],_0x6e1bed=this['cursorInfo'];_0x6e1bed['delete'](_0x42297d),this[_0x541e66(0x318)]['next'](_0x6e1bed);}['_getMergeRange'](_0x3b136d,_0xb17499){const _0x564510=_0x4a4f45;var _0xee7b34;let _0x5de63f=(_0xee7b34=this['_univerInstanceService']['getUnit'](this[_0x564510(0x246)],t[_0x564510(0x397)]['UNIVER_SHEET']))==null||(_0xee7b34=_0xee7b34[_0x564510(0x180)](_0x3b136d))==null?void 0x0:_0xee7b34[_0x564510(0x35b)]();return(_0x5de63f==null?void 0x0:_0x5de63f[_0x564510(0x315)](_0xff3d51=>t[_0x564510(0x34f)]['contains'](_0xff3d51,_0xb17499)))||_0xb17499;}[_0x4a4f45(0x164)](){const _0x495b40=_0x4a4f45;let _0x324baf=new t[(_0x495b40(0x403))](),_0x106283=de(),_0xf4949f=()=>{const _0x27dcd0=_0x495b40;_0x324baf[_0x27dcd0(0x288)]();let _0x3cc5ff=(_0x3b5dc7,_0x576e59,_0x259a51,_0x3ac3b2)=>{const _0x33644d=_0x27dcd0;let _0x3bbe4c=[];switch(_0x3b5dc7['id']){case g[_0x33644d(0x2f8)][_0x33644d(0x2f0)]:_0x3bbe4c=(0x0,g[_0x33644d(0x23d)])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x388)]:_0x3bbe4c=(0x0,g[_0x33644d(0x1a6)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)]['InsertColCommandId']:_0x3bbe4c=(0x0,g[_0x33644d(0x2fb)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x1ba)]:_0x3bbe4c=(0x0,g[_0x33644d(0x2a0)])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x3c5)]:_0x3bbe4c=(0x0,g['handleInsertRangeMoveRight'])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x2c7)]:_0x3bbe4c=(0x0,g[_0x33644d(0x1eb)])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x328)]:_0x3bbe4c=(0x0,g['handleMoveRange'])(_0x3b5dc7,_0x3ac3b2);break;case g['EffectRefRangId'][_0x33644d(0x2b2)]:_0x3bbe4c=(0x0,g['handleIRemoveCol'])(_0x3b5dc7,_0x3ac3b2);break;case g[_0x33644d(0x2f8)][_0x33644d(0x2c8)]:_0x3bbe4c=(0x0,g[_0x33644d(0x25e)])(_0x3b5dc7,_0x3ac3b2);}let _0x160d3f=(0x0,g[_0x33644d(0x186)])(_0x3bbe4c,_0x3ac3b2),_0x2314f7=this[_0x33644d(0x276)]['get'](_0x576e59);if(_0x2314f7&&_0x160d3f){let _0x4579c6={..._0x2314f7,'range':_0x160d3f};this[_0x33644d(0x276)][_0x33644d(0x1a1)](_0x576e59,_0x4579c6),_0x106283(()=>{const _0x1128a2=_0x33644d;let _0xba3b9e=this['_refRangeService'][_0x1128a2(0x23a)](_0x160d3f,_0x469439=>(_0xba3b9e[_0x1128a2(0x288)](),_0x3cc5ff(_0x469439,_0x576e59,_0x259a51,_0x160d3f)));_0x324baf[_0x1128a2(0x307)](_0xba3b9e);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x27dcd0(0x22c)]((_0x507285,_0x33193e)=>{const _0x477a62=_0x27dcd0;let {range:_0x351f68,sheetID:_0x34d6c1}=_0x507285,_0x39bf87=this[_0x477a62(0x1d3)]['registerRefRange'](_0x351f68,_0x59f482=>(_0x39bf87['dispose'](),_0x3cc5ff(_0x59f482,_0x33193e,_0x34d6c1,_0x351f68)));_0x324baf[_0x477a62(0x307)](_0x39bf87);});};this[_0x495b40(0x2ad)]((0x0,t[_0x495b40(0x2be)])(this['_cursorInfo$'][_0x495b40(0x195)](()=>{_0xf4949f();})));}[_0x4a4f45(0x125)](){const _0x427341=_0x4a4f45;var _0x498241,_0x4e7e2c;if(this[_0x427341(0x38b)]=!0x0,((_0x498241=this[_0x427341(0x25c)]['getFocusedUnit']())==null?void 0x0:_0x498241[_0x427341(0x370)]())!==this[_0x427341(0x246)])return;let _0x3a6b8b=(_0x4e7e2c=this[_0x427341(0x38f)][_0x427341(0x39f)](g[_0x427341(0x194)])[_0x427341(0x3fe)]())==null?void 0x0:_0x4e7e2c[0x0],_0x5b30aa=this['_univerInstanceService'][_0x427341(0x2dc)](t[_0x427341(0x397)][_0x427341(0x379)])['getActiveSheet']();_0x3a6b8b&&_0x5b30aa&&this[_0x427341(0x267)](_0x5b30aa['getSheetId'](),_0x3a6b8b);}[_0x4a4f45(0x213)](){const _0x2bc825=_0x4a4f45;this[_0x2bc825(0x38b)]=!0x1;}};A=S([x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t['Inject'])(e['MemberService'])),x(0x5,t[_0x4a4f45(0x1ff)]),x(0x6,t['ICommandService']),x(0x7,(0x0,t['Inject'])(g['RefRangeService']))],A);let j=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x1a253a,_0x140719,_0x4edd12){const _0x2efd49=_0x4a4f45;super(),this['_univerInstanceService']=_0x1a253a,this[_0x2efd49(0x38f)]=_0x140719,this[_0x2efd49(0x27b)]=_0x4edd12,b(this,_0x2efd49(0x2c0),new Map()),b(this,_0x2efd49(0x292),new r[(_0x2efd49(0x31c))]()),this[_0x2efd49(0x332)]();}[_0x4a4f45(0x288)](){super['dispose'](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0x5ea41c=>_0x5ea41c['dispose']());}[_0x4a4f45(0x197)](_0x421b68){const _0x5e0014=_0x4a4f45;let _0x296a61=this['_entities'][_0x5e0014(0x39f)](_0x421b68);return _0x296a61?_0x296a61[_0x5e0014(0x296)]:this[_0x5e0014(0x292)]['pipe']((0x0,r['filter'])(_0x50e24e=>_0x50e24e[_0x5e0014(0x246)]===_0x421b68),(0x0,r[_0x5e0014(0x3cd)])(_0x2f0c71=>_0x2f0c71[_0x5e0014(0x296)]));}[_0x4a4f45(0x332)](){const _0x12f294=_0x4a4f45;this[_0x12f294(0x25c)][_0x12f294(0x309)](t['UniverInstanceType'][_0x12f294(0x379)])[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this['dispose$']))[_0x12f294(0x195)](async _0x11bfac=>{const _0x14e08e=_0x12f294;let _0x3853bd=_0x11bfac['unit'][_0x14e08e(0x370)](),_0x3d5d44=await this[_0x14e08e(0x177)](_0x3853bd);this['_entityInit$'][_0x14e08e(0x13e)](_0x3d5d44),this[_0x14e08e(0x2c0)][_0x14e08e(0x1a1)](_0x3853bd,_0x3d5d44);}),this['_univerInstanceService'][_0x12f294(0x309)](t[_0x12f294(0x397)][_0x12f294(0x19b)])[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this['dispose$']))['pipe']((0x0,r[_0x12f294(0x3e3)])(_0x1143ff=>!_0x1143ff[_0x12f294(0x181)][_0x12f294(0x370)]()[_0x12f294(0x34d)]('__')))['subscribe'](async _0x482311=>{const _0x6e7596=_0x12f294;let {unit:_0x53557c}=_0x482311,_0x28d39c=_0x53557c[_0x6e7596(0x370)](),_0x1c53aa=await this[_0x6e7596(0x300)](_0x28d39c);this[_0x6e7596(0x292)]['next'](_0x1c53aa),this[_0x6e7596(0x2c0)][_0x6e7596(0x1a1)](_0x28d39c,_0x1c53aa);}),(0x0,r[_0x12f294(0x42a)])(this['_univerInstanceService'][_0x12f294(0x3b6)](t[_0x12f294(0x397)][_0x12f294(0x19b)]),this[_0x12f294(0x25c)][_0x12f294(0x3b6)](t[_0x12f294(0x397)]['UNIVER_SHEET']))[_0x12f294(0x237)]((0x0,r[_0x12f294(0x42e)])(this[_0x12f294(0x3f1)]))['subscribe'](_0x18af87=>{const _0x30c7cf=_0x12f294;let _0x26baa1=_0x18af87[_0x30c7cf(0x370)](),_0xec1094=this[_0x30c7cf(0x2c0)][_0x30c7cf(0x39f)](_0x26baa1);_0xec1094&&(_0xec1094['dispose'](),this['_entities']['delete'](_0x26baa1));});}async['_startSheetCollabCursor'](_0x50af62){const _0x165cc4=_0x4a4f45;let _0x4aacdb=await this['_collabSessionService'][_0x165cc4(0x331)](_0x50af62),_0x55ab29=this[_0x165cc4(0x38f)]['createInstance'](A,_0x50af62,_0x4aacdb);return _0x55ab29[_0x165cc4(0x42d)](),_0x55ab29;}async[_0x4a4f45(0x300)](_0x5eac98){const _0x4689bf=_0x4a4f45;let _0x3aa895=await this[_0x4689bf(0x27b)][_0x4689bf(0x331)](_0x5eac98),_0x4fa006=this['_injector'][_0x4689bf(0x3ba)](k,_0x5eac98,_0x3aa895);return _0x4fa006['init'](),_0x4fa006;}};j=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e['CollaborationSessionService']))],j);function fe(_0x1d3f27,_0x490817){const _0x3ccec1=_0x4a4f45;_0x1d3f27[_0x3ccec1(0x394)](),_0x1d3f27[_0x3ccec1(0x2cb)]=_0x3ccec1(0x32b);let _0x4c63db=_0x1d3f27[_0x3ccec1(0x191)](_0x490817)[_0x3ccec1(0x215)];return _0x1d3f27[_0x3ccec1(0x209)](),Math['min'](_0x4c63db+0x8,0xc8);}function pe(_0x520813,_0x26b6e7){const _0xec80b0=_0x4a4f45;let {radius:_0x4a975f,width:_0x4bdeb1,height:_0x5732d9}=_0x26b6e7;_0x4a975f??=0x0,_0x4bdeb1??=0x1e,_0x5732d9??=0x1e;let _0x563fd5=0x0,_0x578b02=0x0,_0x476972=0x0;_0x563fd5=_0x578b02=_0x476972=Math[_0xec80b0(0x139)](_0x4a975f,_0x4bdeb1/0x2,_0x5732d9/0x2),_0x520813[_0xec80b0(0x258)](),_0x520813[_0xec80b0(0x242)](_0x563fd5,0x0),_0x520813[_0xec80b0(0x3e2)](_0x4bdeb1-_0x578b02,0x0),_0x520813['arc'](_0x4bdeb1-_0x578b02,_0x578b02,_0x578b02,Math['PI']*0x3/0x2,0x0,!0x1),_0x520813[_0xec80b0(0x3e2)](_0x4bdeb1,_0x5732d9-_0x476972),_0x520813[_0xec80b0(0x2c5)](_0x4bdeb1-_0x476972,_0x5732d9-_0x476972,_0x476972,0x0,Math['PI']/0x2,!0x1),_0x520813[_0xec80b0(0x3e2)](0x0,_0x5732d9),_0x520813[_0xec80b0(0x3e2)](0x0,_0x563fd5),_0x520813[_0xec80b0(0x2c5)](_0x563fd5,_0x563fd5,_0x563fd5,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x520813[_0xec80b0(0x2f2)](),_0x26b6e7[_0xec80b0(0x2f4)]&&(_0x520813[_0xec80b0(0x394)](),_0x520813[_0xec80b0(0x39e)]=_0x26b6e7[_0xec80b0(0x2f4)],_0x26b6e7[_0xec80b0(0x2e5)]===_0xec80b0(0x225)?_0x520813[_0xec80b0(0x2f4)]('evenodd'):_0x520813[_0xec80b0(0x2f4)](),_0x520813['restore']());}var me=class e extends p[_0x4a4f45(0x1b4)]{constructor(_0x46191b,_0x2aba63){const _0x11ae79=_0x4a4f45;super(_0x46191b,_0x2aba63),b(this,_0x11ae79(0x3e0),void 0x0),b(this,_0x11ae79(0x37e),void 0x0),this[_0x11ae79(0x3e0)]=_0x2aba63==null?void 0x0:_0x2aba63['color'],this[_0x11ae79(0x37e)]=_0x2aba63==null?void 0x0:_0x2aba63['text'];}static[_0x4a4f45(0x253)](_0x2329f1,_0x52c315){const _0x4ab9f4=_0x4a4f45;let {text:_0x5cf9ef,color:_0x2c15b6}=_0x52c315;_0x2329f1[_0x4ab9f4(0x394)](),_0x2329f1[_0x4ab9f4(0x2cb)]=_0x4ab9f4(0x3cb);let _0x2651f4=_0x2329f1['measureText'](_0x5cf9ef)[_0x4ab9f4(0x215)];if(pe(_0x2329f1,{'height':0x14,'radius':0x4,'width':fe(_0x2329f1,_0x5cf9ef),'fill':_0x2c15b6,'evented':!0x1}),_0x2329f1[_0x4ab9f4(0x39e)]=_0x4ab9f4(0x42c),_0x2651f4>0xc0){let _0x573f9f='',_0x2c7a83=0x0;for(let _0x43bc53 of _0x5cf9ef){let _0x18b305=_0x2329f1[_0x4ab9f4(0x191)](_0x43bc53)[_0x4ab9f4(0x215)];if(_0x2c7a83+_0x18b305<=0xc0-_0x2329f1[_0x4ab9f4(0x191)](_0x4ab9f4(0x36f))[_0x4ab9f4(0x215)])_0x573f9f+=_0x43bc53,_0x2c7a83+=_0x18b305;else{_0x573f9f+=_0x4ab9f4(0x36f);break;}}_0x2329f1[_0x4ab9f4(0x19a)](_0x573f9f,0x4,0xf);}else _0x2329f1['fillText'](_0x5cf9ef,0x4,0xf);_0x2329f1[_0x4ab9f4(0x209)]();}[_0x4a4f45(0x287)](_0x16c650){const _0x4ac63d=_0x4a4f45;e[_0x4ac63d(0x253)](_0x16c650,this);}};const M='collab-text-anchor-';var he=class{constructor(_0x170b0b,_0x1eafbb,_0x59d56e,_0x1224ad){const _0x4bb6f2=_0x4a4f45;this[_0x4bb6f2(0x2c2)]=_0x170b0b,this[_0x4bb6f2(0x1aa)]=_0x1eafbb,this[_0x4bb6f2(0x38e)]=_0x59d56e,this[_0x4bb6f2(0x136)]=_0x1224ad,b(this,'_shapes',[]),b(this,_0x4bb6f2(0x2ff),null),b(this,_0x4bb6f2(0x2f7),null),b(this,_0x4bb6f2(0x27c),null),b(this,_0x4bb6f2(0x1dd),null),b(this,'_eventUnsubscribe',null),this[_0x4bb6f2(0x390)]();}set[_0x4a4f45(0x2ec)](_0x7a760e){const _0xb056fa=_0x4a4f45;_0x7a760e?(this[_0xb056fa(0x27c)]&&this[_0xb056fa(0x27c)][_0xb056fa(0x375)](),this[_0xb056fa(0x2f7)]&&this[_0xb056fa(0x2f7)][_0xb056fa(0x295)]()):(this[_0xb056fa(0x27c)]&&this['_anchorDot']['show'](),this[_0xb056fa(0x2f7)]&&this[_0xb056fa(0x2f7)]['hide']());}[_0x4a4f45(0x288)](){const _0x304655=_0x4a4f45;for(let _0x17ac91 of this[_0x304655(0x264)])_0x17ac91[_0x304655(0x288)]();this[_0x304655(0x2f7)]&&this[_0x304655(0x2f7)][_0x304655(0x288)](),this[_0x304655(0x27c)]&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x304655(0x2ff)][_0x304655(0x288)](),this[_0x304655(0x2bd)]&&this[_0x304655(0x2bd)]();}[_0x4a4f45(0x390)](){const _0x5c8d62=_0x4a4f45;let {_docSkeleton:_0x2915db,_document:_0x5c1df3}=this,{color:_0x26ace0,name:_0x1baeef,ranges:_0x53f4a9}=this['_cursor'],_0x2ab6dd=_0x5c1df3[_0x5c8d62(0x340)](),{docsLeft:_0x226219,docsTop:_0x23b73a}=_0x2ab6dd,_0x2c7b2d=new f[(_0x5c8d62(0x220))](_0x2ab6dd,_0x2915db);for(let {startOffset:_0x595069,endOffset:_0x26ed45,rangeType:_0xb0da95,segmentId:_0xad9a15,segmentPage:_0x199d81,collapsed:_0x305818,isActive:_0x440809}of _0x53f4a9){let _0x6a89b0=_0x2915db[_0x5c8d62(0x1f9)](_0x595069,!0x0,_0xad9a15,_0x199d81),_0x40cc85=_0x2915db[_0x5c8d62(0x1f9)](_0x26ed45,!0x0,_0xad9a15,_0x199d81);_0x40cc85??=_0x2915db[_0x5c8d62(0x1f9)](_0x26ed45-0x1,!0x1,_0xad9a15,_0x199d81);let _0x3a749c=ge(_0x6a89b0,_0x40cc85);if(_0x440809&&_0x3a749c['canRenderAnchor']){let {contentBoxPointGroup:_0x28c027}=_0x2c7b2d[_0x5c8d62(0x245)](_0x40cc85,_0x40cc85);if(_0x28c027[_0x5c8d62(0x18e)]===0x0)continue;this[_0x5c8d62(0x3ae)](_0x26ace0,_0x28c027,_0x226219,_0x23b73a,_0x1baeef),this[_0x5c8d62(0x2bd)]=this[_0x5c8d62(0x299)]();}if(_0x6a89b0&&_0x40cc85){if(_0xb0da95===t['DOC_RANGE_TYPE']['RECT']){let {pointGroup:_0x3b7926}=new f['NodePositionConvertToRectRange'](_0x2ab6dd,_0x2915db)['getRangePointData'](_0x6a89b0,_0x40cc85)??{};if(_0x3b7926==null||_0x3b7926[_0x5c8d62(0x18e)]===0x0)continue;this[_0x5c8d62(0x205)](_0x26ace0,_0x3b7926,_0x226219,_0x23b73a);}else{if(!_0x305818&&_0x3a749c[_0x5c8d62(0x29a)]){let {borderBoxPointGroup:_0x2b8bf3}=_0x2c7b2d[_0x5c8d62(0x245)](_0x6a89b0,_0x40cc85);if(_0x2b8bf3['length']===0x0)continue;this['_drawTextRange'](_0x26ace0,_0x2b8bf3,_0x226219,_0x23b73a);}}}}}[_0x4a4f45(0x3ae)](_0x32e06f,_0x425852,_0x3559f5,_0x41d143,_0x5637d3){const _0x4713ec=_0x4a4f45;let {left:_0x35e8f1,top:_0xae5ed3,height:_0x13472a}=this[_0x4713ec(0x31e)](_0x425852),_0x2e6b10=1.5/this[_0x4713ec(0x383)](),_0x10b784=new p[(_0x4713ec(0x1fe))](M+(0x0,t['generateRandomId'])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143,'height':_0x13472a,'width':1.5,'fill':_0x32e06f||(0x0,p[_0x4713ec(0x127)])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'strokeWidth':_0x2e6b10,'stroke':_0x4713ec(0x290),'evented':!0x0});this[_0x4713ec(0x2ff)]=_0x10b784,this['_scene'][_0x4713ec(0x1bf)](_0x10b784,f[_0x4713ec(0x262)]);let _0x597173=new p[(_0x4713ec(0x1fe))](M+(0x0,t[_0x4713ec(0x28e)])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143-0x2,'height':0x4,'width':0x4,'fill':_0x32e06f||(0x0,p[_0x4713ec(0x127)])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'strokeWidth':0x0,'stroke':_0x32e06f||(0x0,p['getColor'])(t[_0x4713ec(0x2ee)][_0x4713ec(0x35a)],0x0),'evented':!0x1});this[_0x4713ec(0x27c)]=_0x597173,this['_scene'][_0x4713ec(0x1bf)](_0x597173,f[_0x4713ec(0x262)]);let _0x223dd4=new me(M+(0x0,t[_0x4713ec(0x28e)])(0x6),{'left':_0x35e8f1+_0x3559f5-_0x2e6b10,'top':_0xae5ed3+_0x41d143-0x14,'text':_0x5637d3,'color':_0x32e06f});this[_0x4713ec(0x2f7)]=_0x223dd4,this[_0x4713ec(0x1aa)][_0x4713ec(0x1bf)](_0x223dd4,f[_0x4713ec(0x262)]),this[_0x4713ec(0x2ec)]=!0x1;}[_0x4a4f45(0x299)](){const _0x3704bf=_0x4a4f45;let _0x5ee5f9=this[_0x3704bf(0x2ff)]['onPointerEnter$'][_0x3704bf(0x204)](()=>{const _0x2bf1ad=_0x3704bf;this[_0x2bf1ad(0x2ec)]=!0x0;}),_0x5144ed=this[_0x3704bf(0x2ff)]['onPointerLeave$'][_0x3704bf(0x204)](()=>{const _0x2f133e=_0x3704bf;this['_hideTimer']&&clearTimeout(this[_0x2f133e(0x1dd)]),this[_0x2f133e(0x1dd)]=setTimeout(()=>{const _0x5776ae=_0x2f133e;this[_0x5776ae(0x2ec)]=!0x1;},0x7d0);});return()=>{const _0xd9794c=_0x3704bf;_0x5ee5f9[_0xd9794c(0x372)](),_0x5144ed[_0xd9794c(0x372)]();};}[_0x4a4f45(0x211)](_0x47b5c9,_0x31f42e,_0x18e2e2,_0x161985){const _0x137fc8=_0x4a4f45;let _0x58cc20=0.2,_0x27c79c=new t[(_0x137fc8(0x30f))](_0x47b5c9)['setAlpha'](_0x58cc20)[_0x137fc8(0x1f4)](),_0x207830=new p[(_0x137fc8(0x1cd))]('collab-text-range-'+(0x0,t[_0x137fc8(0x28e)])(0x6),{'pointsGroup':_0x31f42e,'fill':_0x27c79c||(0x0,p[_0x137fc8(0x127)])(t[_0x137fc8(0x2ee)][_0x137fc8(0x35a)],_0x58cc20),'left':_0x18e2e2,'top':_0x161985,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x137fc8(0x264)][_0x137fc8(0x3b2)](_0x207830),this[_0x137fc8(0x1aa)][_0x137fc8(0x1bf)](_0x207830,f[_0x137fc8(0x262)]);}[_0x4a4f45(0x205)](_0x7c1cce,_0x23a6bb,_0x13901b,_0x538ecb){const _0x332ac5=_0x4a4f45;let _0x4d60ea=0.2,_0x5c3c49=new t[(_0x332ac5(0x30f))](_0x7c1cce)[_0x332ac5(0x2a9)](_0x4d60ea)['toRgbString'](),_0x4d5a44=new p[(_0x332ac5(0x1cd))](_0x332ac5(0x3c7)+(0x0,t[_0x332ac5(0x28e)])(0x6),{'pointsGroup':_0x23a6bb,'fill':_0x5c3c49||(0x0,p['getColor'])(t[_0x332ac5(0x2ee)][_0x332ac5(0x35a)],_0x4d60ea),'left':_0x13901b,'top':_0x538ecb,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x332ac5(0x264)][_0x332ac5(0x3b2)](_0x4d5a44),this[_0x332ac5(0x1aa)]['addObject'](_0x4d5a44,f[_0x332ac5(0x262)]);}[_0x4a4f45(0x31e)](_0x196953){let _0x5f5121=_0x196953[0x0],_0x37c0c9=_0x5f5121[0x0],_0x502ebb=_0x5f5121[0x2],{x:_0x28dfda,y:_0x58375d}=_0x37c0c9,{x:_0x1a96ad,y:_0x4f4137}=_0x502ebb;return{'left':_0x28dfda,'top':_0x58375d,'width':_0x1a96ad-_0x28dfda,'height':_0x4f4137-_0x58375d};}['_getScale'](){const _0x4b45bf=_0x4a4f45;let {scaleX:_0x5c2042,scaleY:_0x167745}=this[_0x4b45bf(0x1aa)][_0x4b45bf(0x18a)]();return Math['max'](_0x5c2042,_0x167745);}};function ge(_0x3c1d8e,_0x493391){const _0xa841bf=_0x4a4f45;if(!_0x493391)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x3c1d8e||_0x3c1d8e[_0xa841bf(0x26c)]!==_0x493391[_0xa841bf(0x26c)]||(_0x3c1d8e[_0xa841bf(0x26c)]===p[_0xa841bf(0x283)][_0xa841bf(0x16f)]||_0x3c1d8e[_0xa841bf(0x26c)]===p[_0xa841bf(0x283)][_0xa841bf(0x26a)])&&_0x3c1d8e[_0xa841bf(0x2db)]!==_0x493391[_0xa841bf(0x2db)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x584844=(0x0,p[_0xa841bf(0x376)])(_0x3c1d8e),_0x130270=(0x0,p[_0xa841bf(0x376)])(_0x493391);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x584844==null||_0x130270==null?_0x584844==null&&_0x130270==null:_0x584844['pageIndex']===_0x130270[_0xa841bf(0x1bb)]&&_0x584844[_0xa841bf(0x235)]===_0x130270['columnGroupId']&&_0x584844[_0xa841bf(0x3df)]===_0x130270[_0xa841bf(0x3df)]};}let N=class extends t['RxDisposable']{constructor(_0x42edbc,_0x242ec9,_0x429d25,_0x495860,_0x18bf59){const _0x152097=_0x4a4f45;super(),this[_0x152097(0x1d5)]=_0x42edbc,this[_0x152097(0x3eb)]=_0x242ec9,this[_0x152097(0x405)]=_0x429d25,this[_0x152097(0x14b)]=_0x495860,this[_0x152097(0x192)]=_0x18bf59,b(this,_0x152097(0x247),[]),b(this,_0x152097(0x138),[]),this[_0x152097(0x332)]();}[_0x4a4f45(0x332)](){const _0x1d92e8=_0x4a4f45;let _0x38f7f9=this[_0x1d92e8(0x1d5)][_0x1d92e8(0x3ad)],_0x58ca86=this[_0x1d92e8(0x3eb)];this[_0x1d92e8(0x2ad)]((0x0,r[_0x1d92e8(0x21b)])([this[_0x1d92e8(0x405)][_0x1d92e8(0x197)](_0x38f7f9),this['_themeService']['currentTheme$']])[_0x1d92e8(0x237)]((0x0,i[_0x1d92e8(0x19c)])(([_0x51d531,_0x114a7c])=>({'skeleton':_0x58ca86[_0x1d92e8(0x182)](),'cursors':[..._0x51d531[_0x1d92e8(0x40c)]()][_0x1d92e8(0x165)](_0x4dc791=>({..._0x4dc791,'color':this[_0x1d92e8(0x192)][_0x1d92e8(0x381)](_0x4dc791[_0x1d92e8(0x3e0)])}))})))[_0x1d92e8(0x195)](_0x11675a=>{const _0x1a9957=_0x1d92e8;if(this[_0x1a9957(0x422)](),_0x11675a){let {skeleton:_0x3e31be,cursors:_0x3f1ea6}=_0x11675a;this[_0x1a9957(0x131)](_0x3e31be,_0x3f1ea6);}})),this[_0x1d92e8(0x1c3)](),this['_initCommandExecutedListener']();}[_0x4a4f45(0x131)](_0x3ad94f,_0x59396f){const _0x40e461=_0x4a4f45;let {scene:_0xa99f9d,mainComponent:_0x5f556c}=this['_context'],_0x1cf36a=_0x59396f[_0x40e461(0x19c)](_0x36e5a5=>new he(_0x36e5a5,_0xa99f9d,_0x3ad94f,_0x5f556c));this['_cursorShapes']=_0x1cf36a,this[_0x40e461(0x138)]=_0x59396f;}[_0x4a4f45(0x3e5)](){const _0x1dbd98=_0x4a4f45;this[_0x1dbd98(0x422)]();let {scene:_0x48ca0f,mainComponent:_0x10cda5}=this[_0x1dbd98(0x1d5)],_0x3475ee=this[_0x1dbd98(0x3eb)]['getSkeleton'](),_0xed9ca9=this[_0x1dbd98(0x138)][_0x1dbd98(0x19c)](_0x45ebfb=>new he(_0x45ebfb,_0x48ca0f,_0x3475ee,_0x10cda5));this[_0x1dbd98(0x247)]=_0xed9ca9;}[_0x4a4f45(0x422)](){const _0x25b4a8=_0x4a4f45;this[_0x25b4a8(0x247)][_0x25b4a8(0x22c)](_0x5267d9=>_0x5267d9[_0x25b4a8(0x288)]()),this[_0x25b4a8(0x247)]=[];}['_initCommandExecutedListener'](){const _0x48c9c0=_0x4a4f45;let _0x143a32=[f[_0x48c9c0(0x257)]['id']];this['disposeWithMe'](this[_0x48c9c0(0x14b)][_0x48c9c0(0x3b7)](_0x42a258=>{const _0x105e9f=_0x48c9c0;_0x143a32[_0x105e9f(0x266)](_0x42a258['id'])&&_0x42a258['params'][_0x105e9f(0x3ad)]===this[_0x105e9f(0x1d5)][_0x105e9f(0x3ad)]&&this[_0x105e9f(0x3e5)]();}));}[_0x4a4f45(0x1c3)](){const _0x5c742a=_0x4a4f45;this[_0x5c742a(0x2ad)]((0x0,t[_0x5c742a(0x353)])(this[_0x5c742a(0x1d5)][_0x5c742a(0x176)]['onTransformChange$'])[_0x5c742a(0x237)]((0x0,i[_0x5c742a(0x3e3)])(_0x18755d=>_0x18755d['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x5c742a(0x310)]),(0x0,i['throttleTime'])(0x10))[_0x5c742a(0x195)](()=>{const _0xc8cf99=_0x5c742a;this[_0xc8cf99(0x3e5)]();}));}};N=S([x(0x1,(0x0,t[_0x4a4f45(0x289)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(j)),x(0x3,t['ICommandService']),x(0x4,(0x0,t[_0x4a4f45(0x289)])(t['ThemeService']))],N);var _e=class extends p[_0x4a4f45(0x1b4)]{constructor(_0x41186d,_0x17d4e2){const _0x39c818=_0x4a4f45;super(_0x41186d,_0x17d4e2),b(this,_0x39c818(0x29e),void 0x0),b(this,_0x39c818(0x2cc),!0x1),b(this,'_range',void 0x0),b(this,_0x39c818(0x1e7),''),b(this,_0x39c818(0x3c8),'top'),b(this,_0x39c818(0x2b6),void 0x0),b(this,_0x39c818(0x1e6),void 0x0),b(this,_0x39c818(0x293),void 0x0),b(this,_0x39c818(0x33f),0x4),b(this,_0x39c818(0x424),void 0x0),b(this,_0x39c818(0x395),void 0x0),b(this,_0x39c818(0x140),!0x0),b(this,_0x39c818(0x301),0x0),b(this,_0x39c818(0x3b9),_0x39c818(0x31b)),_0x17d4e2&&(this[_0x39c818(0x22a)](_0x17d4e2),_0x17d4e2[_0x39c818(0x3a1)]&&(_0x17d4e2['highlightSecond']??this[_0x39c818(0x33f)])&&this[_0x39c818(0x23c)](_0x17d4e2[_0x39c818(0x338)]??this[_0x39c818(0x33f)])),this[_0x39c818(0x1d9)][_0x39c818(0x204)](()=>this[_0x39c818(0x22a)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x39c818(0x22a)]({'hovered':!0x1}));}[_0x4a4f45(0x2d8)](_0x5981f6){const _0x2cd10e=_0x4a4f45;this[_0x2cd10e(0x301)]=_0x5981f6;}['setShapeProps'](_0x37ae4a){const _0x122aa3=_0x4a4f45;this[_0x122aa3(0x29e)]=_0x37ae4a[_0x122aa3(0x3e0)]??this[_0x122aa3(0x29e)],this[_0x122aa3(0x2cc)]=_0x37ae4a['hovered']??this[_0x122aa3(0x2cc)],this[_0x122aa3(0x32f)]=_0x37ae4a[_0x122aa3(0x355)]??this[_0x122aa3(0x32f)],this[_0x122aa3(0x1e7)]=_0x37ae4a[_0x122aa3(0x3b3)]??this[_0x122aa3(0x1e7)],this[_0x122aa3(0x3c8)]=_0x37ae4a[_0x122aa3(0x219)]??this['_labelPosition'],this['_backgroundColor']=_0x37ae4a[_0x122aa3(0x2e6)]??this[_0x122aa3(0x2b6)],this['_showText']=_0x37ae4a[_0x122aa3(0x14f)]??this[_0x122aa3(0x1e6)],this[_0x122aa3(0x3b9)]=_0x37ae4a['labelHorizontalPosition']??this[_0x122aa3(0x3b9)],_0x37ae4a[_0x122aa3(0x338)]!==void 0x0&&(this[_0x122aa3(0x33f)]=_0x37ae4a[_0x122aa3(0x338)]),_0x37ae4a['highlight']!==void 0x0&&(this[_0x122aa3(0x293)]=_0x37ae4a['highlight']),_0x37ae4a[_0x122aa3(0x1b3)]!==void 0x0&&(this[_0x122aa3(0x301)]=_0x37ae4a[_0x122aa3(0x1b3)]),this[_0x122aa3(0x3fd)]({'width':_0x37ae4a[_0x122aa3(0x215)],'height':_0x37ae4a[_0x122aa3(0x21d)]});}[_0x4a4f45(0x3ac)](_0x150459){const _0x431cb0=_0x4a4f45;let {row:_0x1a77ae,column:_0x5ab0d0}=_0x150459;_0x1a77ae>=this[_0x431cb0(0x32f)][_0x431cb0(0x132)]&&_0x1a77ae<=this[_0x431cb0(0x32f)][_0x431cb0(0x430)]&&_0x5ab0d0>=this[_0x431cb0(0x32f)][_0x431cb0(0x41a)]&&_0x5ab0d0<=this[_0x431cb0(0x32f)][_0x431cb0(0x35d)]?this[_0x431cb0(0x22a)]({'hovered':!0x0}):this[_0x431cb0(0x22a)]({'hovered':!0x1});}[_0x4a4f45(0x23c)](_0x1b8b09){const _0x47274e=_0x4a4f45;this[_0x47274e(0x3cf)](),this[_0x47274e(0x140)]=!0x0,this[_0x47274e(0x395)]=window[_0x47274e(0x230)](()=>{const _0x427118=_0x47274e;this[_0x427118(0x140)]=!this[_0x427118(0x140)],this[_0x427118(0x3be)](!0x0);},0x1f4),this[_0x47274e(0x424)]=window[_0x47274e(0x40f)](()=>{const _0x42336e=_0x47274e;this[_0x42336e(0x3cf)](),this['_isBlinkVisible']=!0x0,this['makeDirty'](!0x0);},_0x1b8b09*0x3e8);}['_stopBlinking'](){const _0x3c401d=_0x4a4f45;this[_0x3c401d(0x395)]&&=(window[_0x3c401d(0x29c)](this[_0x3c401d(0x395)]),void 0x0),this['_blinkTimer']&&=(window['clearTimeout'](this[_0x3c401d(0x424)]),void 0x0);}[_0x4a4f45(0x137)](_0x5d26d8){return!0x1;}['dispose'](){const _0xe3dd68=_0x4a4f45;this[_0xe3dd68(0x3cf)](),super[_0xe3dd68(0x288)]();}[_0x4a4f45(0x287)](_0x2caef9){const _0x6c7b35=_0x4a4f45;let _0x1f3a9a=this[_0x6c7b35(0x29e)],_0x8e81c6=this[_0x6c7b35(0x2b6)];if(this[_0x6c7b35(0x293)]&&!this[_0x6c7b35(0x140)]&&(_0x1f3a9a=this[_0x6c7b35(0x278)](this[_0x6c7b35(0x29e)]),_0x8e81c6=this[_0x6c7b35(0x2b6)]?this['_getLighterColor'](this['_backgroundColor']):void 0x0),p[_0x6c7b35(0x1fe)][_0x6c7b35(0x253)](_0x2caef9,{'width':this['width'],'height':this[_0x6c7b35(0x21d)],'strokeWidth':this['strokeWidth']||1.5,'stroke':_0x1f3a9a,'evented':!0x1,'fill':_0x8e81c6}),this[_0x6c7b35(0x2cc)]||this[_0x6c7b35(0x1e6)]){_0x2caef9[_0x6c7b35(0x394)]();let _0x37ccac=this[_0x6c7b35(0x3b9)]==='left'?-fe(_0x2caef9,this[_0x6c7b35(0x1e7)]):this[_0x6c7b35(0x215)];_0x2caef9[_0x6c7b35(0x32e)](0x1,0x0,0x0,0x1,_0x37ccac,(this['_labelPosition']===_0x6c7b35(0x1ef)?0x0:-0x14)+(this['_offsetY']??0x0)),me[_0x6c7b35(0x253)](_0x2caef9,{'text':this[_0x6c7b35(0x1e7)],'color':_0x1f3a9a}),_0x2caef9[_0x6c7b35(0x209)]();}}['_getLighterColor'](_0x437556){const _0x2b3e6f=_0x4a4f45;return _0x437556[_0x2b3e6f(0x34d)]('#')?_0x2b3e6f(0x42f)+Number['parseInt'](_0x437556[_0x2b3e6f(0x3d0)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x437556[_0x2b3e6f(0x3d0)](0x3,0x5),0x10)+',\x20'+Number[_0x2b3e6f(0x3da)](_0x437556['slice'](0x5,0x7),0x10)+_0x2b3e6f(0x39d):_0x437556[_0x2b3e6f(0x34d)](_0x2b3e6f(0x364))?_0x437556[_0x2b3e6f(0x33c)](/[\d.]+\)$/g,_0x2b3e6f(0x12e)):_0x437556[_0x2b3e6f(0x34d)](_0x2b3e6f(0x1a3))?_0x437556[_0x2b3e6f(0x33c)](_0x2b3e6f(0x1a3),_0x2b3e6f(0x364))[_0x2b3e6f(0x33c)](')',_0x2b3e6f(0x39d)):_0x437556;}};let P=class extends t['RxDisposable']{constructor(_0x4d1fcd,_0x4f6954,_0x1c735d,_0x33d32e){const _0x5364be=_0x4a4f45;super(),this[_0x5364be(0x1d5)]=_0x4d1fcd,this['_sheetSkeletonManagerService']=_0x4f6954,this[_0x5364be(0x405)]=_0x1c735d,this[_0x5364be(0x192)]=_0x33d32e,b(this,_0x5364be(0x138),new Set()),b(this,_0x5364be(0x268),null),b(this,_0x5364be(0x373),null),this[_0x5364be(0x332)]();}[_0x4a4f45(0x332)](){const _0x290410=_0x4a4f45;this[_0x290410(0x429)][_0x290410(0x3de)][_0x290410(0x237)]((0x0,i[_0x290410(0x42e)])(this[_0x290410(0x3f1)]),(0x0,i[_0x290410(0x3cd)])(_0x31349b=>{const _0x584042=_0x290410;if(_0x31349b){let _0x30d8ef=_0x31349b[_0x584042(0x275)];return(0x0,r['combineLatest'])(this[_0x584042(0x405)][_0x584042(0x197)](this[_0x584042(0x1d5)][_0x584042(0x3ad)]),this[_0x584042(0x192)][_0x584042(0x146)])[_0x584042(0x237)]((0x0,i[_0x584042(0x19c)])(([_0x2998b7,_0x2df2ed])=>{const _0x42182b=_0x584042;let _0x1108a0=new Map();return _0x2998b7[_0x42182b(0x22c)]((_0x4000f0,_0x2c10c2)=>{const _0x404fdd=_0x42182b;if(_0x4000f0[_0x404fdd(0x22d)]===_0x30d8ef){let _0x5258ef={..._0x4000f0};_0x5258ef[_0x404fdd(0x3e0)]=this['_themeService']['getColorFromTheme'](_0x4000f0[_0x404fdd(0x3e0)]),_0x1108a0[_0x404fdd(0x1a1)](_0x2c10c2,_0x5258ef);}}),{'skeleton':_0x31349b,'cursors':_0x1108a0};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x290410(0x195)](({skeleton:_0x442e2c,cursors:_0x1c34df})=>{const _0x1e66b1=_0x290410;this[_0x1e66b1(0x422)](),_0x442e2c&&this[_0x1e66b1(0x131)](_0x442e2c,_0x1c34df);}),this[_0x290410(0x2ad)](this[_0x290410(0x429)]['currentSkeleton$'][_0x290410(0x237)]((0x0,i[_0x290410(0x42e)])(this[_0x290410(0x3f1)]))[_0x290410(0x195)](_0xba16ad=>{const _0x42106d=_0x290410;var _0x372a05;if(_0xba16ad==null)return;(_0x372a05=this[_0x42106d(0x373)])==null||_0x372a05[_0x42106d(0x372)](),this[_0x42106d(0x373)]=null;let {skeleton:_0x3c6c88}=_0xba16ad,{scene:_0x12ed39}=this[_0x42106d(0x1d5)];this['_pointerMoveDisposable']=_0x12ed39[_0x42106d(0x341)]['subscribeEvent']((0x0,t['debounce'])(_0x4a0b32=>{const _0x56b531=_0x42106d;var _0x1d7c24,_0x5f4703;let {offsetX:_0x4d53e1,offsetY:_0x34acc4}=_0x4a0b32,{x:_0x55a8e0,y:_0x3d3c81}=_0x12ed39[_0x56b531(0x31d)](p[_0x56b531(0x2bf)][_0x56b531(0x411)]([_0x4d53e1,_0x34acc4])),{scaleX:_0x5d1640,scaleY:_0x3b33be}=_0x12ed39['getAncestorScale'](),_0x22174d=_0x12ed39[_0x56b531(0x3ed)](p[_0x56b531(0x34b)][_0x56b531(0x1fb)]),_0x1790b0=_0x12ed39[_0x56b531(0x17b)](p[_0x56b531(0x2bf)][_0x56b531(0x411)]([_0x55a8e0,_0x3d3c81]),_0x22174d),_0x26e7f0=_0x3c6c88['getCellIndexByOffset'](_0x4d53e1,_0x34acc4,_0x5d1640,_0x3b33be,_0x1790b0);(((_0x1d7c24=this[_0x56b531(0x268)])==null?void 0x0:_0x1d7c24[_0x56b531(0x378)])!==_0x26e7f0[_0x56b531(0x378)]||((_0x5f4703=this[_0x56b531(0x268)])==null?void 0x0:_0x5f4703['row'])!==_0x26e7f0[_0x56b531(0x1b6)])&&this[_0x56b531(0x138)][_0x56b531(0x22c)](_0x1b9381=>{const _0x5b0c7c=_0x56b531;_0x1b9381[_0x5b0c7c(0x3ac)](_0x26e7f0);});},0x64));})),this[_0x290410(0x2ad)]((0x0,t[_0x290410(0x2be)])(()=>{const _0x40b2cb=_0x290410;var _0x505048;(_0x505048=this['_pointerMoveDisposable'])==null||_0x505048['unsubscribe'](),this[_0x40b2cb(0x373)]=null;}));}[_0x4a4f45(0x131)](_0x5c2b0b,_0x3cfd48){const _0x342ff8=_0x4a4f45;let _0x25a824=this[_0x342ff8(0x429)]['getCurrentSkeleton']();if(!_0x25a824)return;let _0x1e769e=this[_0x342ff8(0x16d)]();if(!_0x1e769e)return;this[_0x342ff8(0x138)]['forEach'](_0x342aa7=>{_0x342aa7['makeDirty']();});let {scene:_0x2be782}=_0x1e769e,_0x3421c1=ve(Array[_0x342ff8(0x241)](_0x3cfd48[_0x342ff8(0x40c)]()))[_0x342ff8(0x19c)](_0x5e268b=>{const _0x40df01=_0x342ff8;let {color:_0x2dc04d,range:_0x9f7cc2,name:_0x148129,selection:_0x2e2157,sheetID:_0x4d19ab}=_0x5e268b,{startColumn:_0x5e1f6d,startRow:_0x27d8c2,endColumn:_0x4e3a93,endRow:_0x130b98}=_0x9f7cc2,_0x2eb2de=(0x0,_[_0x40df01(0x2ca)])(_0x27d8c2,_0x5e1f6d,_0x2be782,_0x25a824),_0x4e8159=(0x0,_[_0x40df01(0x2ca)])(_0x130b98,_0x4e3a93,_0x2be782,_0x25a824),{columnHeaderHeightAndMarginTop:_0xb6c76a}=_0x25a824,{startX:_0x55766c,startY:_0x1ef2bf}=_0x2eb2de,{endX:_0x3a631f,endY:_0x168385}=_0x4e8159,_0xabcaf0=_0x3a631f-_0x55766c,_0x1d4f8f=_0x168385-_0x1ef2bf;return new _e(_0x148129,{'labelPosition':_0x1ef2bf-_0xb6c76a>=0x14?_0x40df01(0x333):_0x40df01(0x1ef),'sheetID':_0x4d19ab,'range':_0x9f7cc2,'color':_0x2dc04d,'name':_0x148129,'selection':_0x2e2157,'left':_0x55766c,'top':_0x1ef2bf,'width':_0xabcaf0,'height':_0x1d4f8f,'evented':!0x1,'zIndex':0x1389});});_0x2be782[_0x342ff8(0x147)](_0x3421c1,0x1),this[_0x342ff8(0x138)]=new Set(_0x3421c1);}[_0x4a4f45(0x422)](){const _0x416f36=_0x4a4f45;var _0x3cae27;(_0x3cae27=this[_0x416f36(0x138)])==null||_0x3cae27[_0x416f36(0x22c)](_0x294592=>_0x294592[_0x416f36(0x288)]());}[_0x4a4f45(0x16d)](){const _0x4b5b8c=_0x4a4f45;return(0x0,_[_0x4b5b8c(0x1f6)])(this['_context'][_0x4b5b8c(0x181)],this[_0x4b5b8c(0x1d5)]);}};P=S([x(0x1,(0x0,t[_0x4a4f45(0x289)])(_['SheetSkeletonManagerService'])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(j)),x(0x3,(0x0,t['Inject'])(t[_0x4a4f45(0x260)]))],P);function ve(_0x23ff7d){const _0x2e056b=_0x4a4f45;let _0x4b0f16=new Map();return _0x23ff7d[_0x2e056b(0x22c)](_0x37a9b5=>{const _0x5d4b04=_0x2e056b;if(_0x4b0f16['has'](_0x37a9b5[_0x5d4b04(0x33e)])){let _0x24be63=_0x4b0f16[_0x5d4b04(0x39f)](_0x37a9b5['selection']);_0x24be63[_0x5d4b04(0x3b3)]+=',\x20'+_0x37a9b5[_0x5d4b04(0x3b3)];}else _0x4b0f16[_0x5d4b04(0x1a1)](_0x37a9b5[_0x5d4b04(0x33e)],_0x37a9b5);}),Array[_0x2e056b(0x241)](_0x4b0f16[_0x2e056b(0x40c)]());}function F(_0x2557fe){const _0x165389=_0x4a4f45;return typeof _0x2557fe==_0x165389(0x362)&&!!_0x2557fe;}function ye(_0x3aeaa8){const _0x597b77=_0x4a4f45;return _0x3aeaa8[_0x597b77(0x170)]===l['CollaborationEvent'][_0x597b77(0x32c)]&&_0x597b77(0x18c)in _0x3aeaa8&&F(_0x3aeaa8['data'])&&typeof _0x3aeaa8[_0x597b77(0x18c)][_0x597b77(0x37b)]==_0x597b77(0x2cf)&&typeof _0x3aeaa8[_0x597b77(0x18c)][_0x597b77(0x33e)]==_0x597b77(0x2cf);}function be(_0x962d4c){const _0xb3398=_0x4a4f45;return _0x962d4c[_0xb3398(0x170)]===l['CollaborationEvent'][_0xb3398(0x3e8)]&&_0xb3398(0x18c)in _0x962d4c&&F(_0x962d4c[_0xb3398(0x18c)])&&typeof _0x962d4c[_0xb3398(0x18c)]['memberID']==_0xb3398(0x2cf);}function xe(_0x553dc1,_0x506db6){const _0x23b906=_0x4a4f45;let _0x2c0d9e;try{_0x2c0d9e=JSON[_0x23b906(0x12c)](_0x553dc1);}catch{return null;}if(!F(_0x2c0d9e)||typeof _0x2c0d9e['kind']!=_0x23b906(0x2cf)||typeof _0x2c0d9e['unitId']!=_0x23b906(0x2cf)||typeof _0x2c0d9e[_0x23b906(0x1b9)]!=_0x23b906(0x2cf))return null;let _0x246c4c=typeof _0x2c0d9e[_0x23b906(0x348)]==_0x23b906(0x35f)?_0x2c0d9e['unitType']:_0x506db6;if(_0x246c4c==null)return null;let _0x1fe041=F(_0x2c0d9e[_0x23b906(0x414)])&&typeof _0x2c0d9e[_0x23b906(0x414)]['x']==_0x23b906(0x35f)&&Number[_0x23b906(0x2dd)](_0x2c0d9e[_0x23b906(0x414)]['x'])&&typeof _0x2c0d9e[_0x23b906(0x414)]['y']==_0x23b906(0x35f)&&Number['isFinite'](_0x2c0d9e[_0x23b906(0x414)]['y'])?{'x':_0x2c0d9e['pointer']['x'],'y':_0x2c0d9e[_0x23b906(0x414)]['y']}:null;return{'kind':_0x2c0d9e[_0x23b906(0x428)],'unitType':_0x246c4c,'unitId':_0x2c0d9e[_0x23b906(0x3ad)],'subUnitId':_0x2c0d9e[_0x23b906(0x1b9)],'selectedIds':Array[_0x23b906(0x347)](_0x2c0d9e[_0x23b906(0x361)])?_0x2c0d9e['selectedIds']['filter'](_0x272bc2=>typeof _0x272bc2==_0x23b906(0x2cf)):[],'focusedId':typeof _0x2c0d9e[_0x23b906(0x1e0)]==_0x23b906(0x2cf)?_0x2c0d9e[_0x23b906(0x1e0)]:null,'pointer':_0x1fe041};}function Se(_0x4a793c,_0x391008,_0x250696){const _0x1df1bc=_0x4a4f45;return{'kind':_0x391008,'unitType':_0x4a793c,'unitId':_0x250696['unitId'],'subUnitId':_0x250696['subUnitId'],'selectedIds':Array[_0x1df1bc(0x241)](_0x250696[_0x1df1bc(0x361)]),'focusedId':_0x250696['focusedId'],'pointer':_0x250696[_0x1df1bc(0x414)]?{..._0x250696['pointer']}:null};}let I=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x20b663,_0x1fd7db,_0x2fe18b,_0x509b06,_0x8ec3f7,_0x2886b0){const _0x5e1373=_0x4a4f45;super(),this[_0x5e1373(0x3ad)]=_0x20b663,this[_0x5e1373(0x1e3)]=_0x1fd7db,this['_adapter']=_0x2fe18b,this[_0x5e1373(0x1c2)]=_0x509b06,this['_memberService']=_0x8ec3f7,this[_0x5e1373(0x14b)]=_0x2886b0,b(this,_0x5e1373(0x38b),!0x1),b(this,_0x5e1373(0x284),!0x1);}get[_0x4a4f45(0x348)](){const _0xd05126=_0x4a4f45;return this[_0xd05126(0x1a4)]['unitType'];}[_0x4a4f45(0x288)](){const _0x3914e8=_0x4a4f45;this[_0x3914e8(0x3bd)](),super[_0x3914e8(0x288)]();}[_0x4a4f45(0x42d)](){const _0x1493f5=_0x4a4f45;this[_0x1493f5(0x284)]||(this[_0x1493f5(0x284)]=!0x0,this[_0x1493f5(0x1e3)][_0x1493f5(0x2b4)][_0x1493f5(0x237)]((0x0,r['takeUntil'])(this[_0x1493f5(0x3f1)]))[_0x1493f5(0x195)](_0x15594d=>{const _0x3a4afd=_0x1493f5;if(_0x15594d===e[_0x3a4afd(0x3f2)][_0x3a4afd(0x2e8)]){this[_0x3a4afd(0x38b)]=!0x0;let _0x1fa123=this[_0x3a4afd(0x1a4)][_0x3a4afd(0x365)](this['unitId']);_0x1fa123&&this[_0x3a4afd(0x1f2)](_0x1fa123);}else this[_0x3a4afd(0x38b)]=!0x1,this[_0x3a4afd(0x3bd)]();}),this['_session'][_0x1493f5(0x212)][_0x1493f5(0x237)]((0x0,r[_0x1493f5(0x42e)])(this['dispose$']))[_0x1493f5(0x195)](_0x1cb9ee=>{const _0x5c5cf5=_0x1493f5;ye(_0x1cb9ee)?this['_handleCursorUpdate'](_0x1cb9ee):be(_0x1cb9ee)&&this[_0x5c5cf5(0x17a)](_0x1cb9ee['data']['memberID']);}),this['_adapter']['localPresence$']['pipe']((0x0,r[_0x1493f5(0x3e3)])(_0x299746=>this[_0x1493f5(0x38b)]&&_0x299746['unitId']===this[_0x1493f5(0x3ad)]),(0x0,r['throttle'])(_0x3815c8=>(0x0,r[_0x1493f5(0x322)])(_0x3815c8[_0x1493f5(0x20c)]),{'leading':!0x0,'trailing':!0x0}),(0x0,r['takeUntil'])(this[_0x1493f5(0x3f1)]))[_0x1493f5(0x195)](_0x1faba4=>this[_0x1493f5(0x1f2)](_0x1faba4)));}[_0x4a4f45(0x1f2)](_0xcc52e9){const _0x3fed8c=_0x4a4f45;let _0x18cc98=this['_session'][_0x3fed8c(0x1af)]();if(!_0x18cc98||!this[_0x3fed8c(0x38b)])return;let _0x48e846={'eventID':l[_0x3fed8c(0x243)][_0x3fed8c(0x32c)],'data':{'unitID':this[_0x3fed8c(0x3ad)],'memberID':_0x18cc98,'selection':JSON[_0x3fed8c(0x26b)](Se(this[_0x3fed8c(0x348)],this[_0x3fed8c(0x1a4)][_0x3fed8c(0x3c0)],_0xcc52e9))}};this[_0x3fed8c(0x1e3)]['send'](_0x48e846,this[_0x3fed8c(0x3ad)])[_0x3fed8c(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x3bb)](_0x1cfe8b){const _0x51fb4e=_0x4a4f45;let {memberID:_0x28f4d6,selection:_0x1c6598}=_0x1cfe8b['data'];if(_0x28f4d6===this['_session'][_0x51fb4e(0x1af)]())return;let _0xe45f27=xe(_0x1c6598,this[_0x51fb4e(0x348)]);if(!_0xe45f27||_0xe45f27[_0x51fb4e(0x428)]!==this['_adapter'][_0x51fb4e(0x3c0)]||_0xe45f27[_0x51fb4e(0x348)]!==this[_0x51fb4e(0x348)]||_0xe45f27[_0x51fb4e(0x3ad)]!==this['unitId'])return;let _0x38578e=this[_0x51fb4e(0x374)][_0x51fb4e(0x1e9)](this[_0x51fb4e(0x3ad)],_0x28f4d6),_0x2d6378={'unitId':_0xe45f27['unitId'],'subUnitId':_0xe45f27[_0x51fb4e(0x1b9)],'selectedIds':_0xe45f27[_0x51fb4e(0x361)],'focusedId':_0xe45f27['focusedId'],'pointer':_0xe45f27[_0x51fb4e(0x414)],'memberId':_0x28f4d6,'color':this[_0x51fb4e(0x1c2)][_0x51fb4e(0x330)](_0x28f4d6),'name':(_0x38578e==null?void 0x0:_0x38578e[_0x51fb4e(0x3b3)])??_0x28f4d6};this[_0x51fb4e(0x14b)][_0x51fb4e(0x18d)](T['id'],{'unitType':this[_0x51fb4e(0x348)],'update':{'type':_0x51fb4e(0x1a1),'state':_0x2d6378}})[_0x51fb4e(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x17a)](_0x483d30){const _0x2cb2cd=_0x4a4f45;this[_0x2cb2cd(0x14b)][_0x2cb2cd(0x18d)](T['id'],{'unitType':this[_0x2cb2cd(0x348)],'update':{'type':_0x2cb2cd(0x221),'unitId':this[_0x2cb2cd(0x3ad)],'memberId':_0x483d30}})[_0x2cb2cd(0x3a0)](()=>void 0x0);}[_0x4a4f45(0x3bd)](){const _0x732d07=_0x4a4f45;this[_0x732d07(0x14b)][_0x732d07(0x18d)](T['id'],{'unitType':this[_0x732d07(0x348)],'update':{'type':'clear','unitId':this[_0x732d07(0x3ad)]}})['catch'](()=>void 0x0);}};I=S([x(0x3,(0x0,t['Inject'])(D)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x412)])),x(0x5,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x1de)]))],I);let L=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x52a63e,_0x45c1,_0x3adea9,_0x4d0b0a){const _0x3190d8=_0x4a4f45;super(),this[_0x3190d8(0x25c)]=_0x52a63e,this[_0x3190d8(0x38f)]=_0x45c1,this[_0x3190d8(0x27b)]=_0x3adea9,this['_adapterRegistry']=_0x4d0b0a,b(this,'_isDisposed',!0x1),b(this,_0x3190d8(0x2c0),new Map()),b(this,_0x3190d8(0x1da),new Map()),b(this,_0x3190d8(0x123),new Map()),this[_0x3190d8(0x332)]();}[_0x4a4f45(0x288)](){const _0x10249e=_0x4a4f45;this['_isDisposed']=!0x0,this['_adapterDisposables'][_0x10249e(0x22c)](_0xd79bd6=>_0xd79bd6[_0x10249e(0x288)]()),this['_adapterDisposables'][_0x10249e(0x337)](),this[_0x10249e(0x2c0)][_0x10249e(0x22c)](_0x373b4c=>_0x373b4c['dispose']()),this[_0x10249e(0x2c0)][_0x10249e(0x337)](),this['_pendingEntities'][_0x10249e(0x337)](),super['dispose']();}[_0x4a4f45(0x332)](){const _0x54bc5f=_0x4a4f45;this[_0x54bc5f(0x312)][_0x54bc5f(0x153)][_0x54bc5f(0x237)]((0x0,r['takeUntil'])(this[_0x54bc5f(0x3f1)]))['subscribe'](_0x4e0503=>this[_0x54bc5f(0x36b)](_0x4e0503));}['_syncAdapters'](_0x88669f){const _0x39bfad=_0x4a4f45;let _0x5f27a0=new Set(_0x88669f[_0x39bfad(0x19c)](_0x30a1d6=>_0x30a1d6[_0x39bfad(0x348)]));this[_0x39bfad(0x123)][_0x39bfad(0x22c)]((_0x385dc9,_0x28584e)=>{const _0x2b3ab4=_0x39bfad;_0x5f27a0[_0x2b3ab4(0x33a)](_0x28584e)||(_0x385dc9['dispose'](),this[_0x2b3ab4(0x123)]['delete'](_0x28584e),this['_disposeEntitiesForType'](_0x28584e));}),_0x88669f[_0x39bfad(0x22c)](_0xf8948b=>{const _0x2673bf=_0x39bfad;this[_0x2673bf(0x123)][_0x2673bf(0x33a)](_0xf8948b[_0x2673bf(0x348)])||this[_0x2673bf(0x1ca)](_0xf8948b);});}['_bindAdapter'](_0x253833){const _0x25fb7e=_0x4a4f45;let _0x5d34d3=new t[(_0x25fb7e(0x403))]();this['_adapterDisposables'][_0x25fb7e(0x1a1)](_0x253833[_0x25fb7e(0x348)],_0x5d34d3),_0x5d34d3[_0x25fb7e(0x307)](_0x253833['activate']()),this[_0x25fb7e(0x25c)][_0x25fb7e(0x413)](_0x253833[_0x25fb7e(0x348)])['forEach'](_0x415a73=>this[_0x25fb7e(0x25a)](_0x415a73[_0x25fb7e(0x370)](),_0x253833)[_0x25fb7e(0x3a0)](()=>void 0x0));let _0x49a3f7=this[_0x25fb7e(0x25c)][_0x25fb7e(0x309)](_0x253833['unitType'])[_0x25fb7e(0x195)](({unit:_0x5bb258})=>this[_0x25fb7e(0x25a)](_0x5bb258[_0x25fb7e(0x370)](),_0x253833)[_0x25fb7e(0x3a0)](()=>void 0x0));_0x5d34d3[_0x25fb7e(0x307)]((0x0,t['toDisposable'])(()=>_0x49a3f7[_0x25fb7e(0x372)]()));let _0x4bd6e3=this[_0x25fb7e(0x25c)][_0x25fb7e(0x3b6)](_0x253833[_0x25fb7e(0x348)])[_0x25fb7e(0x195)](_0x5c88f8=>this[_0x25fb7e(0x3b1)](_0x5c88f8[_0x25fb7e(0x370)]()));_0x5d34d3[_0x25fb7e(0x307)]((0x0,t[_0x25fb7e(0x2be)])(()=>_0x4bd6e3[_0x25fb7e(0x372)]()));}async[_0x4a4f45(0x25a)](_0x1eaeb6,_0x1acb1c){const _0x2d9959=_0x4a4f45;if(this[_0x2d9959(0x2c0)][_0x2d9959(0x33a)](_0x1eaeb6)||this[_0x2d9959(0x1da)][_0x2d9959(0x33a)](_0x1eaeb6))return;let _0x37ee38={};this[_0x2d9959(0x1da)][_0x2d9959(0x1a1)](_0x1eaeb6,_0x37ee38);let _0x523026=await this[_0x2d9959(0x27b)][_0x2d9959(0x331)](_0x1eaeb6)[_0x2d9959(0x3a0)](_0x20c3b1=>{const _0x75fd7d=_0x2d9959;throw this['_pendingEntities'][_0x75fd7d(0x39f)](_0x1eaeb6)===_0x37ee38&&this[_0x75fd7d(0x1da)][_0x75fd7d(0x426)](_0x1eaeb6),_0x20c3b1;});if(this['_isDisposed']||this[_0x2d9959(0x1da)][_0x2d9959(0x39f)](_0x1eaeb6)!==_0x37ee38||this[_0x2d9959(0x312)][_0x2d9959(0x39f)](_0x1acb1c['unitType'])!==_0x1acb1c){this[_0x2d9959(0x1da)][_0x2d9959(0x39f)](_0x1eaeb6)===_0x37ee38&&this[_0x2d9959(0x1da)]['delete'](_0x1eaeb6);return;}let _0x368c4b=this[_0x2d9959(0x38f)][_0x2d9959(0x3ba)](I,_0x1eaeb6,_0x523026,_0x1acb1c);_0x368c4b[_0x2d9959(0x42d)](),this['_pendingEntities']['delete'](_0x1eaeb6),this[_0x2d9959(0x2c0)]['set'](_0x1eaeb6,_0x368c4b);}[_0x4a4f45(0x3b1)](_0x46debd){const _0x23296b=_0x4a4f45;this[_0x23296b(0x1da)][_0x23296b(0x426)](_0x46debd);let _0x5b4c23=this[_0x23296b(0x2c0)]['get'](_0x46debd);_0x5b4c23&&(_0x5b4c23[_0x23296b(0x288)](),this[_0x23296b(0x2c0)][_0x23296b(0x426)](_0x46debd));}[_0x4a4f45(0x40a)](_0x51e3e8){const _0x4efc63=_0x4a4f45;this[_0x4efc63(0x25c)][_0x4efc63(0x413)](_0x51e3e8)[_0x4efc63(0x22c)](_0x461fbe=>this[_0x4efc63(0x1da)][_0x4efc63(0x426)](_0x461fbe[_0x4efc63(0x370)]())),Array[_0x4efc63(0x241)](this[_0x4efc63(0x2c0)]['entries']())['forEach'](([_0x27715d,_0x2f9be6])=>{const _0x56ac8a=_0x4efc63;_0x2f9be6[_0x56ac8a(0x348)]===_0x51e3e8&&this['_disposeEntity'](_0x27715d);});}};L=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x3f7)])),x(0x3,(0x0,t[_0x4a4f45(0x289)])(n['IUnitPresenceUIAdapterRegistry']))],L);const R={'toast':_0x4a4f45(0x321),'actionButton':_0x4a4f45(0x2a4)};let z=class extends t['Disposable']{constructor(_0x18e033,_0x5d0519,_0xdd899d,_0x18b193,_0x3c99ef,_0x1c0d41){const _0x1dc027=_0x4a4f45;super(),this[_0x1dc027(0x33d)]=_0x18e033,this[_0x1dc027(0x17f)]=_0x5d0519,this['_collaborationUIEventService']=_0xdd899d,this[_0x1dc027(0x168)]=_0x18b193,this[_0x1dc027(0x173)]=_0x3c99ef,this[_0x1dc027(0x249)]=_0x1c0d41,b(this,'_conflictNotification',null),b(this,'_retryingConflictCacheUnitIDs',new Set()),this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x4a4f45(0x288)](){const _0x873c24=_0x4a4f45;var _0x12e612;(_0x12e612=this[_0x873c24(0x2a2)])==null||_0x12e612[_0x873c24(0x288)](),this[_0x873c24(0x2a2)]=null,super[_0x873c24(0x288)]();}[_0x4a4f45(0x41b)](){const _0x34b142=_0x4a4f45;this[_0x34b142(0x2ad)](this[_0x34b142(0x33d)]['registerBeforeClose'](()=>{const _0x449bd5=_0x34b142;if(this[_0x449bd5(0x17f)]['saveTaskMap'][_0x449bd5(0x3db)])return this[_0x449bd5(0x249)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x4a4f45(0x214)](){const _0x5cc62f=_0x4a4f45;this[_0x5cc62f(0x2ad)](this[_0x5cc62f(0x2cd)][_0x5cc62f(0x212)][_0x5cc62f(0x195)](_0x4375a1=>{const _0x5bd7b1=_0x5cc62f;_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['OTHER_CLIENT_EDITING']&&this[_0x5bd7b1(0x168)]['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this['_localeService']['t'](_0x5bd7b1(0x26f))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x251)]&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x16b))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x2c1)]&&this[_0x5bd7b1(0x1b8)]({'title':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x2ea)),'content':this['_localeService']['t']('collaboration-client-ui.permission.content'),'type':_0x5bd7b1(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x2a7)),'onClick':_0x25a6e2=>{const _0x29ca9a=_0x5bd7b1;_0x25a6e2[_0x29ca9a(0x22b)](),window[_0x29ca9a(0x151)][_0x29ca9a(0x232)]();}}}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x3ec)]&&this[_0x5bd7b1(0x3a3)](),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x3f6)]&&_0x4375a1[_0x5bd7b1(0x246)]&&this[_0x5bd7b1(0x398)](_0x4375a1['unitID'],_0x4375a1[_0x5bd7b1(0x313)]??''),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['CONFLICT']&&this['_replaceConflictNotification']({'title':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x41d)),'content':this['_localeService']['t'](_0x5bd7b1(0x25d)),'type':_0x5bd7b1(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this['_localeService']['t'](_0x5bd7b1(0x2a7)),'onClick':_0x4fc7e2=>{const _0x121ddc=_0x5bd7b1;_0x4fc7e2[_0x121ddc(0x22b)](),window[_0x121ddc(0x151)][_0x121ddc(0x232)]();}}}),_0x4375a1['id']===e['CollaborationUIEventId'][_0x5bd7b1(0x2a5)]&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a['MessageType'][_0x5bd7b1(0x179)],'content':this[_0x5bd7b1(0x249)]['t'](_0x4375a1[_0x5bd7b1(0x18c)]||'')}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)][_0x5bd7b1(0x19e)]&&this['_messageService']['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x179)],'content':this['_localeService']['t'](_0x5bd7b1(0x1e2))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['SOCKET_FAILED']&&this[_0x5bd7b1(0x168)][_0x5bd7b1(0x295)]({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x1cc)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x256))}),_0x4375a1['id']===e[_0x5bd7b1(0x29b)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5bd7b1(0x168)]['show']({'type':a[_0x5bd7b1(0x345)][_0x5bd7b1(0x1cc)],'content':this[_0x5bd7b1(0x249)]['t'](_0x5bd7b1(0x342))});}));}[_0x4a4f45(0x3a3)](){const _0x58a63d=_0x4a4f45;this['_replaceConflictNotification']({'title':this[_0x58a63d(0x249)]['t'](_0x58a63d(0x41d)),'content':this[_0x58a63d(0x249)]['t'](_0x58a63d(0x2d2)),'type':'loading','duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1});}[_0x4a4f45(0x398)](_0x4d3e7d,_0x387412){const _0x5f42de=_0x4a4f45;this['_replaceConflictNotification']({'title':this[_0x5f42de(0x249)]['t'](_0x5f42de(0x41d)),'content':this['_localeService']['t'](_0x5f42de(0x1d1)),'type':_0x5f42de(0x27f),'duration':0x1/0x0,'closable':!0x1,'dismissible':!0x1,'classNames':R,'action':{'label':this[_0x5f42de(0x249)]['t']('collaboration-client-ui.conflict.retry'),'onClick':_0x2a9a46=>{const _0x14f8c6=_0x5f42de;_0x2a9a46[_0x14f8c6(0x22b)](),this['_retryConflictCacheClear'](_0x4d3e7d,_0x387412);}}});}[_0x4a4f45(0x3a6)](_0x3ec285,_0x4263fa){const _0x4acf1c=_0x4a4f45;let _0x1c71f4=_0x3ec285+':'+(_0x4263fa??'');this[_0x4acf1c(0x416)][_0x4acf1c(0x33a)](_0x1c71f4)||(this[_0x4acf1c(0x416)][_0x4acf1c(0x307)](_0x1c71f4),this['_showConflictProcessingNotification'](),this[_0x4acf1c(0x17f)][_0x4acf1c(0x2ef)](_0x3ec285,_0x4263fa)[_0x4acf1c(0x2b1)](()=>window[_0x4acf1c(0x151)]['reload']())[_0x4acf1c(0x3a0)](()=>this[_0x4acf1c(0x398)](_0x3ec285,_0x4263fa))[_0x4acf1c(0x261)](()=>this[_0x4acf1c(0x416)]['delete'](_0x1c71f4)));}[_0x4a4f45(0x1b8)](_0x1f85f9){const _0x19f842=_0x4a4f45;var _0x2e2be2;(_0x2e2be2=this[_0x19f842(0x2a2)])==null||_0x2e2be2[_0x19f842(0x288)](),this['_conflictNotification']=this[_0x19f842(0x173)][_0x19f842(0x295)](_0x1f85f9);}};z=S([x(0x0,n[_0x4a4f45(0x3b0)]),x(0x1,e[_0x4a4f45(0x36d)]),x(0x2,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x1bc)])),x(0x3,n[_0x4a4f45(0x28b)]),x(0x4,n['INotificationService']),x(0x5,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)]))],z);const B=(0x0,t[_0x4a4f45(0x14a)])('uni.network.url-service');let V=class extends t[_0x4a4f45(0x2a6)]{constructor(_0x148202,_0x2ca1fc,_0x5aec71,_0xa7c55){const _0x351ca7=_0x4a4f45;super(),this[_0x351ca7(0x3d2)]=_0x148202,this[_0x351ca7(0x3fa)]=_0x2ca1fc,this[_0x351ca7(0x14b)]=_0x5aec71,this[_0x351ca7(0x23b)]=_0xa7c55,this[_0x351ca7(0x332)]()[_0x351ca7(0x3a0)](_0x5cdbb7=>this['_logService'][_0x351ca7(0x27f)](_0x351ca7(0x202),_0x5cdbb7));}async[_0x4a4f45(0x332)](){const _0x4a3205=_0x4a4f45;let _0x291e23=this[_0x4a3205(0x3d2)]['getParam'](_0x4a3205(0x181)),_0x202cb0=this[_0x4a3205(0x3d2)][_0x4a3205(0x156)](_0x4a3205(0x148)),_0x212c78=this['_urlService'][_0x4a3205(0x156)](_0x4a3205(0x323));if(!_0x291e23||!_0x202cb0){this[_0x4a3205(0x3fa)]['debug'](_0x4a3205(0x202),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x3abb55=await this['_dataLoaderService'][_0x4a3205(0x12a)](_0x291e23,Number(_0x202cb0),_0x212c78);this[_0x4a3205(0x366)]||_0x3abb55&&_0x3abb55 instanceof t[_0x4a3205(0x3c2)]&&await this['_setupSubUnitSync'](_0x3abb55);}async['_setupSubUnitSync'](_0x19e42d){const _0x1a7541=_0x4a4f45;await this[_0x1a7541(0x327)](_0x19e42d,!0x0),!this[_0x1a7541(0x366)]&&(_0x19e42d[_0x1a7541(0x3fc)][_0x1a7541(0x237)]((0x0,r[_0x1a7541(0x42e)])(this[_0x1a7541(0x3f1)]))[_0x1a7541(0x195)](_0x534508=>{const _0x59949f=_0x1a7541;_0x534508&&this[_0x59949f(0x3a2)](_0x534508);}),this[_0x1a7541(0x3d2)][_0x1a7541(0x216)][_0x1a7541(0x237)]((0x0,r[_0x1a7541(0x42e)])(this[_0x1a7541(0x3f1)]))['subscribe'](()=>{const _0x46025c=_0x1a7541;this[_0x46025c(0x327)](_0x19e42d)[_0x46025c(0x3a0)](_0x106dbf=>this['_logService'][_0x46025c(0x27f)](_0x46025c(0x202),_0x106dbf));}));}[_0x4a4f45(0x3a2)](_0x3b7104,_0x4e086c=!0x1){const _0x54e462=_0x4a4f45;let _0x5b29b5=this[_0x54e462(0x3d2)][_0x54e462(0x156)](_0x54e462(0x323));_0x3b7104[_0x54e462(0x2de)]()!==_0x5b29b5&&this['_urlService']['setParam'](_0x54e462(0x323),_0x3b7104['getSheetId'](),_0x4e086c);}async[_0x4a4f45(0x327)](_0x3c7466,_0x522c3f=!0x1){const _0x38a84a=_0x4a4f45;var _0x2636a7;let _0x277e11=this[_0x38a84a(0x3d2)][_0x38a84a(0x156)](_0x38a84a(0x323));if(!_0x277e11||!_0x3c7466['getSheetBySheetId'](_0x277e11)){let _0x17af8e=_0x3c7466[_0x38a84a(0x2a1)]()[0x0],_0x24b23f=_0x3c7466[_0x38a84a(0x180)](_0x17af8e);if(!_0x24b23f||(this[_0x38a84a(0x3a2)](_0x24b23f,!0x0),this[_0x38a84a(0x366)]))return;await this[_0x38a84a(0x14b)][_0x38a84a(0x18d)](g[_0x38a84a(0x18b)]['id'],{'unitId':_0x3c7466[_0x38a84a(0x370)](),'subUnitId':_0x17af8e});}else(_0x522c3f||((_0x2636a7=_0x3c7466[_0x38a84a(0x16a)]())==null?void 0x0:_0x2636a7[_0x38a84a(0x2de)]())!==_0x277e11)&&await this[_0x38a84a(0x14b)][_0x38a84a(0x18d)](g[_0x38a84a(0x18b)]['id'],{'unitId':_0x3c7466[_0x38a84a(0x370)](),'subUnitId':_0x277e11});}};V=S([x(0x0,B),x(0x1,t[_0x4a4f45(0x3d3)]),x(0x2,t['ICommandService']),x(0x3,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x285)]))],V);let H=class{constructor(_0x4ff303,_0x4859f2){const _0x55de85=_0x4a4f45;this[_0x55de85(0x349)]=_0x4ff303,this['_renderManagerService']=_0x4859f2;}[_0x4a4f45(0x252)](_0x517178){this['_transformUndoRedoStack'](_0x517178),this['_transformPreviousActiveRange'](_0x517178);}['transformRemoteChangeset'](_0x227496){const _0x400f67=_0x4a4f45;let {unitID:_0x196f88}=_0x227496,{redoCache:_0x28041e}=this[_0x400f67(0x133)][_0x400f67(0x3d6)](_0x196f88)[_0x400f67(0x3e1)](f[_0x400f67(0x185)])[_0x400f67(0x1d0)]();if(_0x28041e['length']===0x0)return _0x227496;let _0x176789=t['Tools'][_0x400f67(0x15a)](_0x227496[_0x400f67(0x3f8)][0x0]);for(let _0x4400ad=0x0;_0x4400ad<_0x28041e[_0x400f67(0x18e)];_0x4400ad++){let _0x162437={'id':_0x400f67(0x184),'params':{..._0x28041e[_0x4400ad]}},_0x1b9168=this[_0x400f67(0x349)]['transformMutation'](_0x176789,_0x162437,!0x1);if((0x0,l[_0x400f67(0x2e2)])(_0x1b9168))throw _0x1b9168['error'];_0x176789=_0x1b9168[_0x400f67(0x2e4)];}return{...t['Tools'][_0x400f67(0x15a)](_0x227496),'mutations':[_0x176789]};}[_0x4a4f45(0x2b8)](_0x3f9f12){const _0x307652=_0x4a4f45;let {unitID:_0xee5135}=_0x3f9f12,_0x5cff29=this[_0x307652(0x133)][_0x307652(0x3d6)](_0xee5135)[_0x307652(0x3e1)](f['DocIMEInputManagerService']),{undoCache:_0x14df95,redoCache:_0x35c333}=_0x5cff29['getUndoRedoMutationParamsCache']();if(_0x14df95['length']===0x0||_0x35c333['length']===0x0)return;let _0x52e331=[],_0x59cbdb=[],_0xdca74b=t[_0x307652(0x3e4)][_0x307652(0x15a)](_0x3f9f12['mutations'][0x0]),_0x5246d4=t[_0x307652(0x3e4)][_0x307652(0x15a)](_0x3f9f12[_0x307652(0x3f8)][0x0]);for(let _0xc488f4=_0x14df95['length']-0x1;_0xc488f4>=0x0;_0xc488f4--){let _0x47ae2c={'id':'doc.mutation.rich-text-editing','params':{..._0x14df95[_0xc488f4]}},_0x2e3055={'id':_0x307652(0x184),'params':{..._0x35c333[_0xc488f4]}},_0x404489=this[_0x307652(0x349)]['transformMutation'](_0xdca74b,_0x47ae2c,!0x1),_0x3ec91b=this[_0x307652(0x349)]['transformMutation'](_0x5246d4,_0x2e3055,!0x1);if((0x0,l[_0x307652(0x2e2)])(_0x404489))throw _0x404489[_0x307652(0x27f)];if((0x0,l[_0x307652(0x2e2)])(_0x3ec91b))throw _0x3ec91b['error'];_0x52e331['unshift'](_0x404489[_0x307652(0x2ed)][_0x307652(0x304)]),_0x59cbdb[_0x307652(0x3aa)](_0x3ec91b[_0x307652(0x2ed)][_0x307652(0x304)]),_0xdca74b=_0x404489[_0x307652(0x2e4)],_0x5246d4=_0x3ec91b['m1Prime'];}_0x5cff29[_0x307652(0x294)]({'undoCache':_0x52e331,'redoCache':_0x59cbdb});}['_transformPreviousActiveRange'](_0x4e1b72){const _0x46a475=_0x4a4f45;let {unitID:_0x10c8fb}=_0x4e1b72,_0x393e7b=this[_0x46a475(0x133)][_0x46a475(0x3d6)](_0x10c8fb)['with'](f[_0x46a475(0x185)]),_0x482d10=_0x393e7b['getActiveRange']();if(_0x482d10==null)return;let _0x175c08=[{'id':_0x46a475(0x184),'params':{'unitId':_0x4e1b72[_0x46a475(0x246)],'actions':null,'textRanges':[_0x482d10]}}],_0x1d7b17=this['_transformService']['transformMutationsWithChangeset'](_0x4e1b72,_0x175c08);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x1d7b17))throw _0x1d7b17[_0x46a475(0x27f)];let _0x26cf9b=_0x1d7b17[_0x46a475(0x2ed)][0x0][_0x46a475(0x304)][_0x46a475(0x41c)];Array[_0x46a475(0x347)](_0x26cf9b)&&_0x26cf9b[_0x46a475(0x18e)]&&_0x393e7b[_0x46a475(0x36c)](_0x26cf9b[0x0]);}};H=S([x(0x0,l[_0x4a4f45(0x20a)]),x(0x1,p[_0x4a4f45(0x3f4)])],H);let U=class{constructor(_0x3a2a12,_0x318d25,_0x194436){const _0x20458e=_0x4a4f45;this['_injector']=_0x3a2a12,this[_0x20458e(0x349)]=_0x318d25,this[_0x20458e(0x3cc)]=_0x194436;}[_0x4a4f45(0x1ec)](_0x2bf66e){this['_transformHistoryAndStateStack'](_0x2bf66e);}[_0x4a4f45(0x1ae)](_0xffd64a){const _0x126f48=_0x4a4f45;let {unitID:_0x3590b1}=_0xffd64a,{collaboration:_0x7e588c}=this[_0x126f48(0x3cc)]['getStateCache'](_0x3590b1);if(_0x7e588c[_0x126f48(0x18e)]===0x0)return _0xffd64a;let _0x201d2e=t[_0x126f48(0x3e4)]['deepClone'](_0xffd64a['mutations'][0x0]);for(let _0x19d0c8=0x0;_0x19d0c8<_0x7e588c['length'];_0x19d0c8++){let _0x37ca66={'id':_0x126f48(0x184),'params':{'unitId':_0x7e588c[_0x19d0c8][_0x126f48(0x3ad)],..._0x7e588c[_0x19d0c8]['redoState']}},_0xf9fe2e=this[_0x126f48(0x349)][_0x126f48(0x343)](_0x201d2e,_0x37ca66,!0x1);if((0x0,l[_0x126f48(0x2e2)])(_0xf9fe2e))throw _0xf9fe2e['error'];_0x201d2e=_0xf9fe2e[_0x126f48(0x2e4)];}return{...t['Tools'][_0x126f48(0x15a)](_0xffd64a),'mutations':[_0x201d2e]};}[_0x4a4f45(0x392)](_0x3a155e){const _0x115f17=_0x4a4f45;let {unitID:_0x382fdb}=_0x3a155e,{history:_0x5722ba,collaboration:_0x814124}=this['_docStateChangeManagerService'][_0x115f17(0x224)](_0x382fdb);if(_0x5722ba[_0x115f17(0x18e)]===0x0&&_0x814124[_0x115f17(0x18e)]===0x0)return;let _0x1a6276=[],_0x20184b=[],_0x27f6c3=t[_0x115f17(0x3e4)][_0x115f17(0x15a)](_0x3a155e[_0x115f17(0x3f8)][0x0]),_0x2a4f77=t['Tools'][_0x115f17(0x15a)](_0x3a155e[_0x115f17(0x3f8)][0x0]);for(let _0x223814=_0x5722ba['length']-0x1;_0x223814>=0x0;_0x223814--){let _0xf449ac={'id':_0x115f17(0x184),'params':{'unitId':_0x5722ba[_0x223814][_0x115f17(0x3ad)],..._0x5722ba[_0x223814][_0x115f17(0x254)]}},_0x46e08f={'id':_0x115f17(0x184),'params':{'unitId':_0x5722ba[_0x223814][_0x115f17(0x3ad)],..._0x5722ba[_0x223814][_0x115f17(0x1b2)]}},_0x3e39bc=this[_0x115f17(0x349)]['transformMutation'](_0x27f6c3,_0xf449ac,!0x1),_0x3590af=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x2a4f77,_0x46e08f,!0x1);if((0x0,l[_0x115f17(0x2e2)])(_0x3e39bc))throw _0x3e39bc['error'];if((0x0,l[_0x115f17(0x2e2)])(_0x3590af))throw _0x3590af[_0x115f17(0x27f)];_0x1a6276[_0x115f17(0x3aa)]({..._0x5722ba[_0x223814],'undoState':_0x3e39bc['m2Prime']['params'],'redoState':_0x3590af[_0x115f17(0x2ed)][_0x115f17(0x304)]}),_0x27f6c3=_0x3e39bc[_0x115f17(0x2e4)],_0x2a4f77=_0x3590af[_0x115f17(0x2e4)];}_0x27f6c3=t['Tools']['deepClone'](_0x3a155e[_0x115f17(0x3f8)][0x0]),_0x2a4f77=t[_0x115f17(0x3e4)][_0x115f17(0x15a)](_0x3a155e['mutations'][0x0]);for(let _0x4c3546=_0x814124[_0x115f17(0x18e)]-0x1;_0x4c3546>=0x0;_0x4c3546--){let _0xe83481={'id':_0x115f17(0x184),'params':{'unitId':_0x814124[_0x4c3546]['unitId'],..._0x814124[_0x4c3546][_0x115f17(0x254)]}},_0x258cd7={'id':_0x115f17(0x184),'params':{'unitId':_0x814124[_0x4c3546][_0x115f17(0x3ad)],..._0x814124[_0x4c3546]['redoState']}},_0xffaa02=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x27f6c3,_0xe83481,!0x1),_0x57b208=this[_0x115f17(0x349)][_0x115f17(0x343)](_0x2a4f77,_0x258cd7,!0x1);if((0x0,l['isTransformMutationFailure'])(_0xffaa02))throw _0xffaa02['error'];if((0x0,l[_0x115f17(0x2e2)])(_0x57b208))throw _0x57b208['error'];_0x20184b[_0x115f17(0x3aa)]({..._0x814124[_0x4c3546],'undoState':_0xffaa02[_0x115f17(0x2ed)][_0x115f17(0x304)],'redoState':_0x57b208['m2Prime']['params']}),_0x27f6c3=_0xffaa02[_0x115f17(0x2e4)],_0x2a4f77=_0x57b208[_0x115f17(0x2e4)];}this[_0x115f17(0x3cc)][_0x115f17(0x418)](_0x382fdb,{'history':_0x1a6276,'collaboration':_0x20184b});}};U=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x26e)])),x(0x1,l['ITransformService']),x(0x2,(0x0,t['Inject'])(d[_0x4a4f45(0x2d3)]))],U);let W=class{constructor(_0x3409b3,_0x4a7848){const _0x97e219=_0x4a4f45;this[_0x97e219(0x21c)]=_0x3409b3,this[_0x97e219(0x349)]=_0x4a7848;}[_0x4a4f45(0x408)](_0xe277f5){const _0x331135=_0x4a4f45;var _0x211b0c;let _0x259d04=this[_0x331135(0x21c)][_0x331135(0x1a5)]()??[],_0x3eec76=this[_0x331135(0x21c)]['getSelectionInfo']();if(_0x259d04[_0x331135(0x18e)]===0x0||_0x3eec76==null)return null;let _0x5418b8=_0xe277f5[_0x331135(0x246)],_0x408d1e=[{'id':_0x331135(0x184),'params':{'unitId':_0x5418b8,'actions':null,'textRanges':_0x259d04}}],_0x3358b6=this[_0x331135(0x349)][_0x331135(0x2fd)](_0xe277f5,_0x408d1e);if(!(0x0,l[_0x331135(0x34e)])(_0x3358b6))throw _0x3358b6[_0x331135(0x27f)];let _0x94cd98=(_0x211b0c=_0x3358b6[_0x331135(0x2ed)][0x0])==null?void 0x0:_0x211b0c[_0x331135(0x304)],_0x51688b=_0x94cd98&&typeof _0x94cd98==_0x331135(0x362)&&'textRanges'in _0x94cd98?_0x94cd98[_0x331135(0x41c)]:null;if(!Te(_0x51688b))return null;let _0x3b6b7f=Ce(_0xe277f5['mutations'][_0x331135(0x402)](_0x219425=>G(_0x219425[_0x331135(0x304)]))?_0x51688b[_0x331135(0x3e3)](_0xc96a9e=>!('tableId'in _0xc96a9e)):_0x51688b,{..._0x3eec76,'options':_0x3eec76[_0x331135(0x21a)]?{..._0x3eec76[_0x331135(0x21a)],'wholeDocument':!0x1}:void 0x0}),_0x40272b={'unitId':_0x5418b8,'subUnitId':_0x5418b8};this[_0x331135(0x21c)][_0x331135(0x409)](_0x3b6b7f,_0x40272b);let _0x3cf833=!0x0;return{'commit':()=>{_0x3cf833=!0x1;},'rollback':()=>{const _0x2eed0f=_0x331135;_0x3cf833&&(_0x3cf833=!0x1,this[_0x2eed0f(0x21c)][_0x2eed0f(0x409)](_0x3eec76,_0x40272b));}};}};function _0xd371(_0x3fa9bc,_0x4056a6){_0x3fa9bc=_0x3fa9bc-0x123;const _0x55abbb=_0x55ab();let _0xd371fe=_0x55abbb[_0x3fa9bc];return _0xd371fe;}W=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(d[_0x4a4f45(0x14d)])),x(0x1,l['ITransformService'])],W);function Ce(_0x527871,_0x1563cd){const _0x5c518b=_0x4a4f45;let _0x2a3490=[],_0x11596e=[];for(let _0x7a829b of _0x527871)we(_0x7a829b)?_0x11596e[_0x5c518b(0x3b2)](_0x7a829b):_0x2a3490['push'](_0x7a829b);return{..._0x1563cd,'textRanges':_0x2a3490,'rectRanges':_0x11596e};}function we(_0xea31d8){const _0x3edfd0=_0x4a4f45;return _0x3edfd0(0x377)in _0xea31d8;}function Te(_0x22b595){const _0x398376=_0x4a4f45;return Array['isArray'](_0x22b595)&&_0x22b595[_0x398376(0x40e)](_0x370c36=>typeof _0x370c36==_0x398376(0x362)&&!!_0x370c36&&_0x398376(0x1c5)in _0x370c36&&'endOffset'in _0x370c36);}function G(_0x207e9c){const _0x2f9841=_0x4a4f45;return _0x207e9c==='tableSource'?!0x0:Array['isArray'](_0x207e9c)?_0x207e9c[_0x2f9841(0x402)](_0x4190a8=>G(_0x4190a8)):!_0x207e9c||typeof _0x207e9c!=_0x2f9841(0x362)?!0x1:Object['values'](_0x207e9c)[_0x2f9841(0x402)](_0x4ef745=>G(_0x4ef745));}let K=class extends t[_0x4a4f45(0x423)]{constructor(_0x514a16,_0x1165ec,_0x4728f1,_0x141df9,_0x5435a9,_0x77ff1,_0x31c8cc){const _0x3bfcef=_0x4a4f45;super(),this[_0x3bfcef(0x3d5)]=_0x514a16,this[_0x3bfcef(0x354)]=_0x1165ec,this[_0x3bfcef(0x174)]=_0x4728f1,this[_0x3bfcef(0x421)]=_0x141df9,this[_0x3bfcef(0x196)]=_0x5435a9,this['_messageService']=_0x77ff1,this[_0x3bfcef(0x249)]=_0x31c8cc,b(this,_0x3bfcef(0x356),new r['BehaviorSubject'](e[_0x3bfcef(0x24e)]['NOT_COLLAB'])),this[_0x3bfcef(0x400)]();}[_0x4a4f45(0x400)](){const _0x31e03b=_0x4a4f45;this[_0x31e03b(0x2ad)](this[_0x31e03b(0x3d5)][_0x31e03b(0x190)][_0x31e03b(0x195)](_0x3f6ce1=>{const _0x3cf5f2=_0x31e03b;_0x3f6ce1 instanceof e[_0x3cf5f2(0x273)]&&_0x3f6ce1[_0x3cf5f2(0x1ab)]({'onTransformIME':_0x5d77c1=>this[_0x3cf5f2(0x354)][_0x3cf5f2(0x252)](_0x5d77c1),'onTransformState':_0x95d58c=>this[_0x3cf5f2(0x174)][_0x3cf5f2(0x1ec)](_0x95d58c),'onPrepareTransformSelections':_0x4a8f4f=>this['_docTransformSelectionsService'][_0x3cf5f2(0x408)](_0x4a8f4f),'onSyncEditingCollabCursor':_0x524b9c=>this[_0x3cf5f2(0x196)][_0x3cf5f2(0x1e5)](_0x524b9c),'onTransformRemoteChangesetByIMECache':_0x49a091=>this['_docTransformIMECacheService'][_0x3cf5f2(0x1ae)](_0x49a091),'onTransformRemoteChangesetByStateCache':_0x1ce727=>this[_0x3cf5f2(0x174)]['transformRemoteChangeset'](_0x1ce727)});}));}};K=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x21e)])),x(0x1,(0x0,t['Inject'])(H)),x(0x2,(0x0,t[_0x4a4f45(0x289)])(U)),x(0x3,(0x0,t['Inject'])(W)),x(0x4,(0x0,t[_0x4a4f45(0x289)])(O)),x(0x5,n[_0x4a4f45(0x28b)]),x(0x6,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)]))],K);let q=class extends t[_0x4a4f45(0x423)]{constructor(_0x204f3b,_0x1fc7f0,_0xfafa10,_0xb6a38b){const _0x3d318a=_0x4a4f45;super(),this['_injector']=_0x204f3b,this['_httpService']=_0x1fc7f0,this[_0x3d318a(0x3fa)]=_0xfafa10,this[_0x3d318a(0x171)]=_0xb6a38b,b(this,'_memberID',void 0x0),this[_0x3d318a(0x332)]();}[_0x4a4f45(0x332)](){const _0x2d3fa1=_0x4a4f45;this[_0x2d3fa1(0x427)](),this['_initUnhandledRejectionListener'](),this['_monkeyPatchLogService'](),this[_0x2d3fa1(0x2d5)]();}['_initUserListener'](){const _0x3d5e9b=_0x4a4f45;this[_0x3d5e9b(0x2ad)](this[_0x3d5e9b(0x171)][_0x3d5e9b(0x380)][_0x3d5e9b(0x195)](_0x1be1e3=>{const _0x4b8538=_0x3d5e9b;this[_0x4b8538(0x17d)]=_0x1be1e3==null?void 0x0:_0x1be1e3[_0x4b8538(0x37b)];}));}['_initWindowErrorListener'](){const _0x5dfc1a=_0x4a4f45;let _0x1830b0=_0x27a435=>{const _0x488aad=_0xd371;var _0x18232d;this['_uploadLog'](_0x488aad(0x27f),'[Window\x20Error]:\x20'+_0x27a435[_0x488aad(0x306)]+_0x488aad(0x13c)+_0x27a435[_0x488aad(0x3fb)]+':'+_0x27a435[_0x488aad(0x1c9)]+':'+_0x27a435[_0x488aad(0x126)]+'\x0a'+(((_0x18232d=_0x27a435[_0x488aad(0x27f)])==null?void 0x0:_0x18232d[_0x488aad(0x15f)])||''));};window[_0x5dfc1a(0x3c4)]('error',_0x1830b0),this[_0x5dfc1a(0x2ad)](()=>{const _0x5c4e70=_0x5dfc1a;window[_0x5c4e70(0x2f1)](_0x5c4e70(0x27f),_0x1830b0);});}[_0x4a4f45(0x15e)](){const _0x2dcec5=_0x4a4f45;let _0x1f3a38=_0x304541=>{const _0x247c63=_0xd371;this[_0x247c63(0x308)](_0x247c63(0x27f),_0x247c63(0x2fc)+_0x304541[_0x247c63(0x3a8)]);};window[_0x2dcec5(0x3c4)]('unhandledrejection',_0x1f3a38),this[_0x2dcec5(0x2ad)](()=>{window['removeEventListener']('unhandledrejection',_0x1f3a38);});}[_0x4a4f45(0x2ac)](){const _0x8aba54=_0x4a4f45;let _0x53395a=this[_0x8aba54(0x3fa)][_0x8aba54(0x27f)][_0x8aba54(0x172)](this[_0x8aba54(0x3fa)]);this[_0x8aba54(0x3fa)]['error']=(..._0x41a7b8)=>{const _0x36e8f8=_0x8aba54;let _0x5e5e5d=_0x41a7b8[_0x36e8f8(0x19c)](_0x539260=>_0x539260 instanceof Error?_0x539260[_0x36e8f8(0x306)]+'\x0a'+_0x539260[_0x36e8f8(0x15f)]:String(_0x539260))[_0x36e8f8(0x26d)]('\x20');this[_0x36e8f8(0x308)]('error',_0x36e8f8(0x3c9)+_0x5e5e5d),_0x53395a(..._0x41a7b8);},this[_0x8aba54(0x2ad)](()=>{const _0x2b13e6=_0x8aba54;this['_logService'][_0x2b13e6(0x27f)]=_0x53395a;});}[_0x4a4f45(0x308)](_0x5ee3a8,_0x334508){const _0x1a7c14=_0x4a4f45;try{let _0x1131fa={'userId':this[_0x1a7c14(0x17d)],'logLabel':_0x5ee3a8,'content':_0x334508};this[_0x1a7c14(0x2ce)][_0x1a7c14(0x1e1)](_0x1a7c14(0x178),{'body':_0x1131fa})[_0x1a7c14(0x3a0)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t['Inject'])(t['Injector'])),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m[_0x4a4f45(0x19d)])),x(0x2,t[_0x4a4f45(0x3d3)]),x(0x3,(0x0,t[_0x4a4f45(0x289)])(e[_0x4a4f45(0x3f7)]))],q);function Ee({state$:_0x34c713}){const _0x4cb41b=_0x4a4f45;let _0x3491fd=(0x0,n[_0x4cb41b(0x36a)])(_0x34c713,null,!0x0);return _0x3491fd?(0x0,c[_0x4cb41b(0x311)])(_0x4cb41b(0x363),{'data-u-comp':_0x4cb41b(0x208),'role':_0x4cb41b(0x3ab),'className':_0x4cb41b(0x13d),'children':[(0x0,c[_0x4cb41b(0x12b)])(o['WarningIcon'],{'className':_0x4cb41b(0x223)}),(0x0,c[_0x4cb41b(0x12b)])(_0x4cb41b(0x2e3),{'children':_0x3491fd[_0x4cb41b(0x25b)]}),(0x0,c[_0x4cb41b(0x12b)])(a[_0x4cb41b(0x2d6)],{'size':_0x4cb41b(0x2d1),'variant':_0x4cb41b(0x2af),'onClick':()=>window[_0x4cb41b(0x151)][_0x4cb41b(0x232)](),'children':_0x3491fd['refreshLabel']})]}):null;}const De=_0x4a4f45(0x3d4);let J=class extends t[_0x4a4f45(0x423)]{constructor(_0xe11f2d,_0x439ea,_0x54259b,_0x146f61,_0x2cd888,_0x4a994e){const _0x7c7a1e=_0x4a4f45;super(),this[_0x7c7a1e(0x3ff)]=_0xe11f2d,this[_0x7c7a1e(0x168)]=_0x439ea,this[_0x7c7a1e(0x249)]=_0x54259b,this[_0x7c7a1e(0x38f)]=_0x146f61,this['_urlService']=_0x4a994e,b(this,_0x7c7a1e(0x2a8),new r[(_0x7c7a1e(0x154))](null)),b(this,_0x7c7a1e(0x129),new Set()),b(this,_0x7c7a1e(0x3a4),new Map()),b(this,_0x7c7a1e(0x1c4),new Map()),b(this,_0x7c7a1e(0x234),this['_timeoutState$'][_0x7c7a1e(0x34c)]());let _0x5966ac=()=>(0x0,s[_0x7c7a1e(0x2ba)])(Ee,{'state$':this['timeoutState$']});this[_0x7c7a1e(0x2ad)](_0x2cd888['registerComponent'](n[_0x7c7a1e(0x2f5)][_0x7c7a1e(0x386)],()=>(0x0,n[_0x7c7a1e(0x282)])(_0x5966ac,this['_injector']))),this[_0x7c7a1e(0x2ad)](this['_snapshotLoadingService'][_0x7c7a1e(0x183)]['subscribe'](_0xe2d9cf=>{const _0x4a0cb5=_0x7c7a1e;this[_0x4a0cb5(0x1c4)]=_0xe2d9cf,_0xe2d9cf[_0x4a0cb5(0x22c)](_0x29bca2=>this[_0x4a0cb5(0x3a7)](_0x29bca2));})),this[_0x7c7a1e(0x2ad)](this[_0x7c7a1e(0x3d2)]['urlChange$'][_0x7c7a1e(0x195)](()=>{const _0x583d09=_0x7c7a1e;this[_0x583d09(0x1c4)][_0x583d09(0x22c)](_0x28738f=>this['_updateMessage'](_0x28738f));}));}[_0x4a4f45(0x288)](){const _0x34a479=_0x4a4f45;this[_0x34a479(0x129)][_0x34a479(0x22c)](_0x126896=>this[_0x34a479(0x168)][_0x34a479(0x221)](_0x126896)),this[_0x34a479(0x129)][_0x34a479(0x337)](),this[_0x34a479(0x3a4)]['forEach'](({timeoutId:_0x584748})=>clearTimeout(_0x584748)),this[_0x34a479(0x3a4)]['clear'](),this[_0x34a479(0x2a8)]['complete'](),super['dispose']();}['_updateMessage'](_0x5b668e){const _0x65bdbd=_0x4a4f45;let _0x4c5896=''+De+_0x5b668e['unitId'];_0x5b668e['stage']===l[_0x65bdbd(0x244)]['COMPLETE']?(this[_0x65bdbd(0x1b0)](_0x5b668e[_0x65bdbd(0x3ad)]),this['_clearTimeoutState'](_0x5b668e[_0x65bdbd(0x3ad)]),this['_messageService'][_0x65bdbd(0x221)](_0x4c5896),this['_messageIds'][_0x65bdbd(0x426)](_0x4c5896)):this[_0x65bdbd(0x2e0)](_0x5b668e[_0x65bdbd(0x3ad)])?_0x5b668e['stage']===l[_0x65bdbd(0x244)][_0x65bdbd(0x3e6)]?(this[_0x65bdbd(0x1b0)](_0x5b668e[_0x65bdbd(0x3ad)]),this[_0x65bdbd(0x316)](_0x5b668e['unitId']),this['_messageService'][_0x65bdbd(0x295)]({'id':_0x4c5896,'type':a[_0x65bdbd(0x345)]['Error'],'content':this[_0x65bdbd(0x249)]['t'](_0x65bdbd(0x256))}),this['_messageIds'][_0x65bdbd(0x426)](_0x4c5896)):_0x5b668e[_0x65bdbd(0x2d7)]!==l[_0x65bdbd(0x244)][_0x65bdbd(0x31f)]||_0x5b668e['totalBlocks']<=0xa?(this['_clearBlockProgressWatch'](_0x5b668e['unitId']),this[_0x65bdbd(0x168)][_0x65bdbd(0x221)](_0x4c5896),this[_0x65bdbd(0x129)]['delete'](_0x4c5896)):this[_0x65bdbd(0x396)](_0x5b668e)||(this[_0x65bdbd(0x168)][_0x65bdbd(0x295)]({'id':_0x4c5896,'type':a['MessageType'][_0x65bdbd(0x20d)],'duration':0x1/0x0,'content':this[_0x65bdbd(0x249)]['t'](_0x65bdbd(0x29f))+'\x20'+_0x5b668e['loadedBlocks']+'/'+_0x5b668e['totalBlocks']}),this['_messageIds'][_0x65bdbd(0x307)](_0x4c5896)):(this['_clearBlockProgressWatch'](_0x5b668e[_0x65bdbd(0x3ad)]),this[_0x65bdbd(0x316)](_0x5b668e[_0x65bdbd(0x3ad)]),this['_messageService'][_0x65bdbd(0x221)](_0x4c5896),this['_messageIds']['delete'](_0x4c5896));}[_0x4a4f45(0x396)](_0x40842f){const _0x32ddf2=_0x4a4f45;let _0x30397f=this[_0x32ddf2(0x3a4)][_0x32ddf2(0x39f)](_0x40842f[_0x32ddf2(0x3ad)]);if((_0x30397f==null?void 0x0:_0x30397f[_0x32ddf2(0x38a)])===_0x40842f['loadedBlocks'])return _0x30397f[_0x32ddf2(0x2f6)];this['_clearBlockProgressWatch'](_0x40842f[_0x32ddf2(0x3ad)]);let _0x7e779c=setTimeout(()=>{const _0x362ee7=_0x32ddf2;let _0x24e1b1=this['_blockProgressWatches'][_0x362ee7(0x39f)](_0x40842f[_0x362ee7(0x3ad)]);if(!_0x24e1b1||_0x24e1b1['timeoutId']!==_0x7e779c)return;_0x24e1b1[_0x362ee7(0x2f6)]=!0x0;let _0x51ef51=''+De+_0x40842f[_0x362ee7(0x3ad)];this[_0x362ee7(0x168)][_0x362ee7(0x221)](_0x51ef51),this[_0x362ee7(0x129)][_0x362ee7(0x426)](_0x51ef51),this[_0x362ee7(0x2a8)]['next']({'unitId':_0x40842f[_0x362ee7(0x3ad)],'content':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.timeout',String(_0x40842f[_0x362ee7(0x38a)]),String(_0x40842f['totalBlocks'])),'refreshLabel':this[_0x362ee7(0x249)]['t'](_0x362ee7(0x2a7))});},0xea60);return this[_0x32ddf2(0x3a4)][_0x32ddf2(0x1a1)](_0x40842f['unitId'],{'loadedBlocks':_0x40842f['loadedBlocks'],'timedOut':!0x1,'timeoutId':_0x7e779c}),!0x1;}['_clearBlockProgressWatch'](_0x2a7776){const _0x194038=_0x4a4f45;let _0x2a0af7=this[_0x194038(0x3a4)]['get'](_0x2a7776);_0x2a0af7&&(clearTimeout(_0x2a0af7[_0x194038(0x367)]),this[_0x194038(0x3a4)]['delete'](_0x2a7776),this[_0x194038(0x316)](_0x2a7776));}[_0x4a4f45(0x316)](_0x575b0a){const _0x1c1f65=_0x4a4f45;var _0x199725;((_0x199725=this[_0x1c1f65(0x2a8)]['value'])==null?void 0x0:_0x199725[_0x1c1f65(0x3ad)])===_0x575b0a&&this[_0x1c1f65(0x2a8)][_0x1c1f65(0x13e)](null);}[_0x4a4f45(0x2e0)](_0x5b22a2){const _0x5d828a=_0x4a4f45;let _0x145a66=this[_0x5d828a(0x3d2)][_0x5d828a(0x156)](_0x5d828a(0x181));return!_0x145a66||_0x145a66===_0x5b22a2;}};J=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(l['SnapshotLoadingService'])),x(0x1,n['IMessageService']),x(0x2,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x188)])),x(0x3,(0x0,t['Inject'])(t[_0x4a4f45(0x26e)])),x(0x4,n[_0x4a4f45(0x222)]),x(0x5,B)],J);let Y=class extends t[_0x4a4f45(0x423)]{constructor(_0x38af05,_0x2dc3d9,_0x36af13,_0xcdab5,_0x56a748){const _0x5ac1ad=_0x4a4f45;var _0x32231e;super(),this[_0x5ac1ad(0x281)]=_0x38af05,this['_localStorageService']=_0x2dc3d9,this[_0x5ac1ad(0x305)]=_0x36af13,this[_0x5ac1ad(0x3fa)]=_0xcdab5,this[_0x5ac1ad(0x1a9)]=_0x56a748,b(this,_0x5ac1ad(0x3b5),new Map()),b(this,'_saveTaskMap',new Map()),b(this,_0x5ac1ad(0x23f),new Map()),b(this,_0x5ac1ad(0x36e),!0x1),this[_0x5ac1ad(0x36e)]=!((_0x32231e=this[_0x5ac1ad(0x281)][_0x5ac1ad(0x189)](e[_0x5ac1ad(0x369)]))!=null&&_0x32231e[_0x5ac1ad(0x149)]);}[_0x4a4f45(0x157)](){const _0x4b7296=_0x4a4f45;this[_0x4b7296(0x36e)]=!0x0;}[_0x4a4f45(0x2ae)](){const _0x29f0b1=_0x4a4f45;this[_0x29f0b1(0x36e)]=!0x1;}get[_0x4a4f45(0x15b)](){const _0x39d93d=_0x4a4f45;let _0x1efe4d=new Map(this[_0x39d93d(0x40b)]);return this[_0x39d93d(0x23f)]['forEach']((_0x1a46d6,_0x1dc761)=>{const _0x17a24f=_0x39d93d;_0x1efe4d[_0x17a24f(0x33a)](_0x1dc761)||_0x1efe4d[_0x17a24f(0x1a1)](_0x1dc761,0x0);}),_0x1efe4d;}[_0x4a4f45(0x288)](){const _0x214dad=_0x4a4f45;this[_0x214dad(0x366)]||(super[_0x214dad(0x288)](),this[_0x214dad(0x36e)]=!0x0,this[_0x214dad(0x1fa)]()[_0x214dad(0x3a0)](_0x12499a=>this[_0x214dad(0x3fa)][_0x214dad(0x27f)](_0x12499a)));}async[_0x4a4f45(0x1d4)](_0x8eedc4,_0x346ab6){const _0x22ee99=_0x4a4f45;if(this[_0x22ee99(0x36e)])return null;let _0x171d88=this[_0x22ee99(0x3d7)](_0x346ab6),_0x2da613=await this[_0x22ee99(0x23e)]['getItem']((0x0,e[_0x22ee99(0x163)])(_0x8eedc4,_0x171d88));return(_0x2da613==null?void 0x0:_0x2da613[_0x22ee99(0x246)])===_0x8eedc4&&this[_0x22ee99(0x32a)](_0x2da613[_0x22ee99(0x313)])===_0x171d88?_0x2da613:null;}async[_0x4a4f45(0x201)](_0x532db,_0x41a133,_0x263768){const _0x13c7a4=_0x4a4f45;let _0x1dd45b=this[_0x13c7a4(0x3d7)](_0x263768),_0x211b00=(0x0,e[_0x13c7a4(0x163)])(_0x532db,_0x1dd45b),_0x42d93c=this[_0x13c7a4(0x23e)][_0x13c7a4(0x317)](_0x211b00,{..._0x41a133,'unitID':_0x532db,'userId':_0x1dd45b});return this[_0x13c7a4(0x1c8)](_0x211b00,_0x42d93c),!!await _0x42d93c;}async[_0x4a4f45(0x3c3)](_0xba4426,_0x3f0a7c,_0x6124d){const _0x259e93=_0x4a4f45;let _0xe3e556=this[_0x259e93(0x3d7)](_0x6124d),_0x2d31d0=(0x0,e['getLocalCacheKey'])(_0xba4426,_0xe3e556),_0x223aeb=this[_0x259e93(0x3b5)][_0x259e93(0x39f)](_0x2d31d0)??await this[_0x259e93(0x23e)][_0x259e93(0x303)](_0x2d31d0);if(!_0x223aeb||this[_0x259e93(0x32a)](_0x223aeb[_0x259e93(0x313)])!==_0xe3e556||_0x223aeb[_0x259e93(0x246)]!==_0xba4426)return;let _0x5e21e9=Date[_0x259e93(0x144)](),_0x725eda=new Date(_0x5e21e9)[_0x259e93(0x166)]();await this[_0x259e93(0x23e)][_0x259e93(0x317)](_0x2d31d0+_0x259e93(0x1e4)+_0x5e21e9,{'reason':_0x3f0a7c,'createdAt':_0x725eda,'data':_0x223aeb});}async[_0x4a4f45(0x2ef)](_0x6f9556,_0x45da4c){const _0x213d66=_0x4a4f45;let _0x3da780=this[_0x213d66(0x3d7)](_0x45da4c),_0x4e2637=(0x0,e[_0x213d66(0x163)])(_0x6f9556,_0x3da780),_0x346b32=this['_saveTaskMap'][_0x213d66(0x39f)](_0x4e2637);_0x346b32!==void 0x0&&(window[_0x213d66(0x187)](_0x346b32),this[_0x213d66(0x40b)][_0x213d66(0x426)](_0x4e2637));let _0x4c4cbb=this[_0x213d66(0x23f)]['get'](_0x4e2637);_0x4c4cbb&&await Promise[_0x213d66(0x35c)](_0x4c4cbb),this[_0x213d66(0x3b5)][_0x213d66(0x426)](_0x4e2637),await this[_0x213d66(0x23e)][_0x213d66(0x2df)](_0x4e2637);}[_0x4a4f45(0x24f)](_0x2b9b3a,_0x2d95ef,_0xaffed1,_0x482034,_0x38aa9f){const _0x1db4bb=_0x4a4f45;if(this[_0x1db4bb(0x366)])return;let _0x371fbb=this[_0x1db4bb(0x3d7)](_0x38aa9f),_0x45ac2e=(0x0,e[_0x1db4bb(0x163)])(_0x2b9b3a,_0x371fbb),_0x49146e=this['_revisionService'][_0x1db4bb(0x233)](_0x2b9b3a);this[_0x1db4bb(0x3b5)][_0x1db4bb(0x1a1)](_0x45ac2e,{'unitID':_0x2b9b3a,'userId':_0x371fbb,'type':_0x2d95ef,'awaitingChangeset':_0xaffed1,'mutations':_0x482034,'rev':_0x49146e}),this[_0x1db4bb(0x40b)][_0x1db4bb(0x33a)](_0x45ac2e)||this[_0x1db4bb(0x3bf)](_0x45ac2e);}[_0x4a4f45(0x3d7)](_0x14c7a0=((()=>{const _0x2e3b58=_0x4a4f45;var _0x3cfe14;return(_0x3cfe14=this[_0x2e3b58(0x1a9)][_0x2e3b58(0x37d)]())==null?void 0x0:_0x3cfe14[_0x2e3b58(0x236)];})())){const _0x3570d1=_0x4a4f45;return this[_0x3570d1(0x32a)](_0x14c7a0);}['_normalizeUserId'](_0x688ba4){return _0x688ba4===''||_0x688ba4==null?void 0x0:_0x688ba4;}[_0x4a4f45(0x3bf)](_0x570d61){const _0x1282df=_0x4a4f45;let _0x4c4e03=this[_0x1282df(0x324)]();_0x4c4e03===0x0?this['_saveCache'](_0x570d61)[_0x1282df(0x3a0)](_0x47fe71=>this['_logService'][_0x1282df(0x27f)](_0x47fe71)):this[_0x1282df(0x40b)]['set'](_0x570d61,window[_0x1282df(0x40f)](()=>{const _0x146f1e=_0x1282df;this[_0x146f1e(0x207)](_0x570d61)[_0x146f1e(0x3a0)](_0x4a59d6=>this[_0x146f1e(0x3fa)][_0x146f1e(0x27f)](_0x4a59d6));},_0x4c4e03));}[_0x4a4f45(0x324)](){const _0xd45e81=_0x4a4f45;return this[_0xd45e81(0x281)][_0xd45e81(0x189)](e[_0xd45e81(0x24b)])??e['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x259b3e){const _0x35664b=_0x4a4f45;let _0x506f35=this['_saveTaskMap'][_0x35664b(0x39f)](_0x259b3e);_0x506f35!==void 0x0&&window['clearTimeout'](_0x506f35);let _0x1caa40=this[_0x35664b(0x3b5)][_0x35664b(0x39f)](_0x259b3e);if(!_0x1caa40)return Promise['resolve']();let _0x10caf6=this['_activeSaveTaskMap'][_0x35664b(0x39f)](_0x259b3e),_0x157ddb=Promise[_0x35664b(0x35c)](_0x10caf6?[..._0x10caf6]:[])[_0x35664b(0x2b1)](()=>this['_localStorageService'][_0x35664b(0x317)](_0x259b3e,_0x1caa40))[_0x35664b(0x2b1)](()=>{const _0x1dbdcd=_0x35664b;_0x506f35!==void 0x0&&this[_0x1dbdcd(0x40b)]['get'](_0x259b3e)===_0x506f35&&(this[_0x1dbdcd(0x40b)][_0x1dbdcd(0x426)](_0x259b3e),!this[_0x1dbdcd(0x366)]&&this[_0x1dbdcd(0x3b5)]['get'](_0x259b3e)!==_0x1caa40&&this['_scheduleSaving'](_0x259b3e));});return this[_0x35664b(0x1c8)](_0x259b3e,_0x157ddb),_0x157ddb;}['_trackActiveSaveTask'](_0x59d6cc,_0xc82421){const _0x49ec83=_0x4a4f45;let _0x2aedb3=this[_0x49ec83(0x23f)]['get'](_0x59d6cc);_0x2aedb3||(_0x2aedb3=new Set(),this['_activeSaveTaskMap'][_0x49ec83(0x1a1)](_0x59d6cc,_0x2aedb3)),_0x2aedb3[_0x49ec83(0x307)](_0xc82421);let _0x2a1df6=()=>{const _0x6c355d=_0x49ec83;_0x2aedb3['delete'](_0xc82421),_0x2aedb3[_0x6c355d(0x3db)]===0x0&&this[_0x6c355d(0x23f)][_0x6c355d(0x426)](_0x59d6cc);};_0xc82421[_0x49ec83(0x2b1)](_0x2a1df6,_0x2a1df6);}async[_0x4a4f45(0x1fa)](){const _0x194cf7=_0x4a4f45;let _0x357335=[...this['_saveTaskMap'][_0x194cf7(0x334)]()][_0x194cf7(0x19c)](_0x361fa1=>this[_0x194cf7(0x207)](_0x361fa1));for(let _0x4fbb41 of this[_0x194cf7(0x23f)][_0x194cf7(0x40c)]())_0x357335[_0x194cf7(0x3b2)](...[..._0x4fbb41][_0x194cf7(0x19c)](_0x2b5178=>_0x2b5178['then'](()=>void 0x0)));await Promise[_0x194cf7(0x28a)](_0x357335);}};Y=S([x(0x0,t[_0x4a4f45(0x382)]),x(0x1,t[_0x4a4f45(0x24d)]),x(0x2,(0x0,t['Inject'])(l[_0x4a4f45(0x34a)])),x(0x3,t[_0x4a4f45(0x3d3)]),x(0x4,(0x0,t[_0x4a4f45(0x289)])(t[_0x4a4f45(0x231)]))],Y);var Oe=class extends t[_0x4a4f45(0x423)]{get['online'](){const _0x4219e0=_0x4a4f45;return this[_0x4219e0(0x248)]['getValue']();}constructor(){const _0x3b9828=_0x4a4f45;super(),b(this,_0x3b9828(0x248),new r[(_0x3b9828(0x154))](navigator[_0x3b9828(0x15d)])),b(this,_0x3b9828(0x38d),this[_0x3b9828(0x248)][_0x3b9828(0x34c)]()),this[_0x3b9828(0x134)](),this['_listenToOnlineEvent']();}['dispose'](){const _0x327a5b=_0x4a4f45;super[_0x327a5b(0x288)](),this[_0x327a5b(0x248)][_0x327a5b(0x2c6)]();}[_0x4a4f45(0x401)](){const _0x3d3313=_0x4a4f45;this[_0x3d3313(0x2ad)]((0x0,r[_0x3d3313(0x42a)])((0x0,r[_0x3d3313(0x15c)])(window,_0x3d3313(0x1fd)),(0x0,r[_0x3d3313(0x15c)])(window,_0x3d3313(0x3ce)),(0x0,r[_0x3d3313(0x15c)])(document,_0x3d3313(0x217))[_0x3d3313(0x237)]((0x0,r['map'])(()=>document[_0x3d3313(0x42b)]===_0x3d3313(0x30a)),(0x0,r['filter'])(_0x307779=>_0x307779)))[_0x3d3313(0x237)]((0x0,r[_0x3d3313(0x3e3)])(()=>navigator[_0x3d3313(0x15d)]))['subscribe'](()=>this[_0x3d3313(0x248)][_0x3d3313(0x13e)](!0x0)));}['_listenToOfflineEvent'](){const _0x5622ff=_0x4a4f45;this[_0x5622ff(0x2ad)]((0x0,r[_0x5622ff(0x15c)])(window,_0x5622ff(0x1ce))[_0x5622ff(0x195)](()=>this[_0x5622ff(0x248)][_0x5622ff(0x13e)](!0x1)));}},ke=class extends t[_0x4a4f45(0x2a6)]{constructor(){const _0x403981=_0x4a4f45;super(),b(this,'urlChange$',void 0x0),this[_0x403981(0x216)]=(0x0,r['fromEvent'])(window,'popstate')[_0x403981(0x237)]((0x0,r[_0x403981(0x42e)])(this['dispose$']),(0x0,r[_0x403981(0x155)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r['mapTo'])(void 0x0));}[_0x4a4f45(0x1dc)](_0x43e528,_0x3b641f,_0x24bba9=!0x1){const _0x46e856=_0x4a4f45;let _0x4430f5=new URL(window[_0x46e856(0x151)][_0x46e856(0x152)]);_0x4430f5[_0x46e856(0x18f)]['set'](_0x43e528,_0x3b641f),_0x24bba9?window['history'][_0x46e856(0x199)]('','',_0x4430f5[_0x46e856(0x1d6)]()):window[_0x46e856(0x2ab)]['pushState']('','',_0x4430f5[_0x46e856(0x1d6)]());}[_0x4a4f45(0x371)](_0x5a2a28,_0x330b4b=!0x1){const _0x1d0f6d=_0x4a4f45;let _0x6f2d8a=new URL(window[_0x1d0f6d(0x151)][_0x1d0f6d(0x152)]);_0x6f2d8a[_0x1d0f6d(0x18f)][_0x1d0f6d(0x426)](_0x5a2a28),_0x330b4b?window[_0x1d0f6d(0x2ab)][_0x1d0f6d(0x199)]('','',_0x6f2d8a['toString']()):window[_0x1d0f6d(0x2ab)][_0x1d0f6d(0x13a)]('','',_0x6f2d8a[_0x1d0f6d(0x1d6)]());}[_0x4a4f45(0x156)](_0x2004f5){const _0x3052bc=_0x4a4f45;return new URL(window[_0x3052bc(0x151)]['href'])['searchParams']['get'](_0x2004f5)??void 0x0;}};let X=class extends t[_0x4a4f45(0x1c0)]{constructor(_0x3da32f=se,_0x2aafa4,_0x43a89e,_0x579ff0,_0x4ee110){const _0x23420d=_0x4a4f45;super(),this[_0x23420d(0x2b9)]=_0x3da32f,this[_0x23420d(0x133)]=_0x2aafa4,this['_injector']=_0x43a89e,this[_0x23420d(0x281)]=_0x579ff0,this[_0x23420d(0x14b)]=_0x4ee110;let {..._0x403682}=(0x0,t[_0x23420d(0x42a)])({},se,this[_0x23420d(0x2b9)]);this[_0x23420d(0x281)][_0x23420d(0x19f)](_0x23420d(0x263),_0x403682);}['onStarting'](){const _0x3dd58a=_0x4a4f45;this['_registerDependencies'](),this['disposeWithMe'](this[_0x3dd58a(0x14b)][_0x3dd58a(0x1df)](T)),this['_initDependencies']();}['onRendered'](){const _0x165ac2=_0x4a4f45;this[_0x165ac2(0x336)]();}['_registerDependencies'](){const _0x10b9df=_0x4a4f45;var _0x2be72d;let _0x2874c3=[[D],[B,{'useClass':ke}],[m[_0x10b9df(0x141)],{'useClass':m['WebSocketService']}],[e[_0x10b9df(0x36d)],{'useClass':Y}],[e['INetworkConditionService'],{'useClass':Oe}],[C],[z],[j],[L],[J]];this[_0x10b9df(0x2b9)][_0x10b9df(0x325)]!==!0x1&&_0x2874c3[_0x10b9df(0x3b2)]([V]),this['_config'][_0x10b9df(0x228)]!==!0x1&&_0x2874c3['push']([W],[H],[U],[O],[K],[E]),this[_0x10b9df(0x2b9)][_0x10b9df(0x161)]&&_0x2874c3[_0x10b9df(0x3b2)]([q]),(0x0,t[_0x10b9df(0x210)])(this[_0x10b9df(0x38f)],(0x0,t[_0x10b9df(0x387)])(_0x2874c3,(_0x2be72d=this[_0x10b9df(0x2b9)])==null?void 0x0:_0x2be72d[_0x10b9df(0x3c1)]));}[_0x4a4f45(0x336)](){const _0x357469=_0x4a4f45;this[_0x357469(0x2b9)]['enableDocumentCollaborationUI']!==!0x1&&this[_0x357469(0x2ad)](this[_0x357469(0x133)][_0x357469(0x229)](t[_0x357469(0x397)][_0x357469(0x19b)],[N])),this[_0x357469(0x2ad)](this['_renderManagerService'][_0x357469(0x229)](t[_0x357469(0x397)]['UNIVER_SHEET'],[P]));}[_0x4a4f45(0x368)](){const _0x17dd17=_0x4a4f45;(0x0,t['touchDependencies'])(this[_0x17dd17(0x38f)],[[j],[L],[C],[z],[J]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x325)]!==!0x1&&(0x0,t[_0x17dd17(0x20b)])(this['_injector'],[[V]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x228)]!==!0x1&&(0x0,t[_0x17dd17(0x20b)])(this[_0x17dd17(0x38f)],[[K],[E]]),this[_0x17dd17(0x2b9)][_0x17dd17(0x161)]&&(0x0,t[_0x17dd17(0x20b)])(this[_0x17dd17(0x38f)],[[q]]);}};b(X,'pluginName',_0x4a4f45(0x39c)),b(X,'packageName',ae),b(X,_0x4a4f45(0x2d9),oe),X=S([(0x0,t['DependentOn'])(u[_0x4a4f45(0x1c7)],d[_0x4a4f45(0x271)],p[_0x4a4f45(0x193)],m['UniverNetworkPlugin'],l[_0x4a4f45(0x200)],f[_0x4a4f45(0x2f3)],e[_0x4a4f45(0x1fc)]),x(0x1,p[_0x4a4f45(0x3f4)]),x(0x2,(0x0,t['Inject'])(t[_0x4a4f45(0x26e)])),x(0x3,t[_0x4a4f45(0x382)]),x(0x4,t['ICommandService'])],X);let Z=class extends e[_0x4a4f45(0x2c3)]{constructor(_0x2f849c,_0x3c2cc0,_0x1cf1a4,_0x3bc697,_0x4e4ce5){const _0x4f7d50=_0x4a4f45;super(_0x2f849c,_0x3c2cc0,_0x1cf1a4,_0x3bc697,_0x4e4ce5),b(this,_0x4f7d50(0x2f9),new r[(_0x4f7d50(0x31c))]()),this['disposeWithMe'](()=>{const _0x5d0b03=_0x4f7d50;this['_dispose$']['next'](),this[_0x5d0b03(0x2f9)][_0x5d0b03(0x2c6)]();});}async[_0x4a4f45(0x404)](_0x197413){const _0x435a58=_0x4a4f45;let _0x199427=await this[_0x435a58(0x238)](),_0x3fb6a6=this[_0x435a58(0x2aa)](_0x197413,_0x199427);return this[_0x435a58(0x286)](_0x3fb6a6);}[_0x4a4f45(0x2aa)](_0x195acc,_0x42683d){const _0x535021=_0x4a4f45;let _0x4dfc92=typeof window>'u'?new URL(_0x195acc):new URL(_0x195acc,window[_0x535021(0x151)]['origin']);_0x4dfc92['searchParams'][_0x535021(0x1a1)](_0x535021(0x27e),_0x42683d);let _0x294e38=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x535021(0x151)][_0x535021(0x13f)]);return _0x294e38[_0x535021(0x39f)](_0x535021(0x1a7))&&_0x4dfc92[_0x535021(0x18f)]['set'](_0x535021(0x1a7),_0x294e38[_0x535021(0x39f)](_0x535021(0x1a7))),_0x4dfc92[_0x535021(0x1d6)]();}async[_0x4a4f45(0x238)](){const _0x60113d=_0x4a4f45;var _0x55b8a8;let _0x2f0cd1=this[_0x60113d(0x281)]['getConfig'](e[_0x60113d(0x369)]),_0x22bf8a=(_0x2f0cd1==null?void 0x0:_0x2f0cd1[_0x60113d(0x406)])??e[_0x60113d(0x1d2)];return((_0x55b8a8=(await(0x0,r['firstValueFrom'])(this['_httpService'][_0x60113d(0x1f7)](_0x60113d(0x2e1),_0x22bf8a,{'headers':{'Content-Type':'application/json'}})[_0x60113d(0x237)]((0x0,r[_0x60113d(0x3e3)])(_0x21eac0=>_0x21eac0['type']===m[_0x60113d(0x14e)]['Response']),(0x0,r[_0x60113d(0x291)])(0x4e20),(0x0,r[_0x60113d(0x42e)])(this['_dispose$']))))['body'])==null?void 0x0:_0x55b8a8['ticket'])??'';}};Z=S([x(0x0,(0x0,t[_0x4a4f45(0x289)])(t['Injector'])),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m[_0x4a4f45(0x19d)])),x(0x2,t[_0x4a4f45(0x382)]),x(0x3,t[_0x4a4f45(0x3d3)]),x(0x4,l[_0x4a4f45(0x27d)])],Z);let Q=class extends t[_0x4a4f45(0x423)]{constructor(_0x5ed176,_0x2e34b3,_0x5baab8){const _0x3e69e6=_0x4a4f45;super(),this[_0x3e69e6(0x12d)]=_0x5ed176,this[_0x3e69e6(0x2ce)]=_0x2e34b3,this[_0x3e69e6(0x281)]=_0x5baab8;}async['runOnServer'](_0x2e2e0e,_0x562788,_0xbceb11,..._0x21d732){const _0x26f5ea=_0x4a4f45;let _0x47f7c7=this[_0x26f5ea(0x12d)][_0x26f5ea(0x1a8)]();if(!_0x47f7c7)throw Error(_0x26f5ea(0x3a9));let _0xb9fd=(this[_0x26f5ea(0x281)][_0x26f5ea(0x189)](e[_0x26f5ea(0x28c)])??e[_0x26f5ea(0x2c9)])+'/'+_0x2e2e0e+_0x26f5ea(0x3d1)+_0x562788,_0x23c991={'scriptId':_0x2e2e0e,'runId':new URL(window[_0x26f5ea(0x151)][_0x26f5ea(0x152)])[_0x26f5ea(0x18f)][_0x26f5ea(0x39f)](_0x26f5ea(0x1a7))??'','function':_0x562788,'unitId':_0x47f7c7['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x21d732),'invokeId':_0xbceb11['invokeId']??'','executionId':_0xbceb11[_0x26f5ea(0x2da)]??''};try{let _0x18bea5=await this['_httpService']['post'](_0xb9fd,{'body':_0x23c991});return _0x18bea5['body'][_0x26f5ea(0x27f)]&&_0x18bea5[_0x26f5ea(0x279)]['error'][_0x26f5ea(0x3af)]!==v[_0x26f5ea(0x3ee)]['OK']?_0x26f5ea(0x12f):_0x18bea5[_0x26f5ea(0x279)]['result'];}catch{return _0x26f5ea(0x12f);}}};Q=S([x(0x0,t[_0x4a4f45(0x1ff)]),x(0x1,(0x0,t[_0x4a4f45(0x289)])(m['HTTPService'])),x(0x2,t[_0x4a4f45(0x382)])],Q);const Ae=0x7530,$=_0x4a4f45(0x1cb);var je=class extends t[_0x4a4f45(0x423)]{constructor(){const _0xa1375f=_0x4a4f45;super(),b(this,_0xa1375f(0x41e),(0x0,t[_0xa1375f(0x28e)])()),b(this,_0xa1375f(0x3dd),new Set()),b(this,_0xa1375f(0x32d),new Map()),b(this,'_heartbeatTimer',null),b(this,_0xa1375f(0x3d8),new Map()),b(this,_0xa1375f(0x250),new Map()),this[_0xa1375f(0x332)]();}[_0x4a4f45(0x288)](){const _0x28ce97=_0x4a4f45;super[_0x28ce97(0x288)](),this[_0x28ce97(0x3d8)]['forEach']((_0x493197,_0x5e414b)=>this[_0x28ce97(0x255)](_0x5e414b)),this['_heartbeatTimer']&&window[_0x28ce97(0x29c)](this[_0x28ce97(0x3ea)]);}[_0x4a4f45(0x39b)](_0x16d92d){const _0x364090=_0x4a4f45;return this[_0x364090(0x1f1)](_0x16d92d)[_0x364090(0x237)]((0x0,r[_0x364090(0x1ea)])());}[_0x4a4f45(0x1d8)](_0x3aceeb){const _0x489911=_0x4a4f45;this[_0x489911(0x3dd)][_0x489911(0x3db)]===0x0&&this['_scheduleHeartbeat'](),this[_0x489911(0x3dd)]['add'](_0x3aceeb),this[_0x489911(0x3c6)]({'type':0x0,'memberID':this[_0x489911(0x41e)],'unitIDs':[_0x3aceeb],'isForwarded':!0x1});}[_0x4a4f45(0x1f8)](_0x1e5e2f){const _0xf60f93=_0x4a4f45;this[_0xf60f93(0x3dd)][_0xf60f93(0x426)](_0x1e5e2f),this[_0xf60f93(0x3dd)][_0xf60f93(0x3db)]===0x0&&this[_0xf60f93(0x3ea)]&&window['clearInterval'](this[_0xf60f93(0x3ea)]);}[_0x4a4f45(0x332)](){const _0x30c3ae=_0x4a4f45;this[_0x30c3ae(0x2ad)]((0x0,t['toDisposable'])((0x0,r[_0x30c3ae(0x15c)])(window,_0x30c3ae(0x1cf))[_0x30c3ae(0x195)](_0x48276c=>{const _0x126b7e=_0x30c3ae;if(_0x48276c[_0x126b7e(0x3d9)]!==$||!_0x48276c['newValue'])return;let _0x25506a=JSON[_0x126b7e(0x12c)](_0x48276c[_0x126b7e(0x389)]);this['_handleEvent'](_0x25506a);}))),window[_0x30c3ae(0x3c4)](_0x30c3ae(0x227),()=>this[_0x30c3ae(0x3c6)]({'type':0x1,'memberID':this[_0x30c3ae(0x41e)],'unitIDs':Array[_0x30c3ae(0x241)](this[_0x30c3ae(0x3dd)])}));}['_handleEvent'](_0xb75273){const _0x3b1e1d=_0x4a4f45;switch(_0xb75273['type']){case 0x0:this[_0x3b1e1d(0x29d)](_0xb75273);break;case 0x1:this[_0x3b1e1d(0x37a)](_0xb75273);break;case 0x2:this['_handleHeartbeatEvent'](_0xb75273);}}[_0x4a4f45(0x29d)](_0x2fbe3a){const _0x4df67f=_0x4a4f45;let {unitIDs:_0x2a1b71,memberID:_0x763abd,isForwarded:_0x3b45d6}=_0x2fbe3a;_0x2a1b71[_0x4df67f(0x22c)](_0x7b44e5=>{const _0x1af68e=_0x4df67f;if(!_0x3b45d6&&this['_unitOnClients']['has'](_0x7b44e5)&&this['_ensureSubject'](_0x7b44e5)['next'](e[_0x1af68e(0x175)][_0x1af68e(0x239)]),!this['_unitOnClients'][_0x1af68e(0x33a)](_0x7b44e5)||!this[_0x1af68e(0x32d)][_0x1af68e(0x39f)](_0x7b44e5)[_0x1af68e(0x33a)](_0x763abd)){let _0x1ae58f=this['_unitOnClients']['get'](_0x7b44e5)||new Set();_0x1ae58f[_0x1af68e(0x307)](_0x763abd),this['_unitOnClients'][_0x1af68e(0x1a1)](_0x7b44e5,_0x1ae58f),this[_0x1af68e(0x3b8)](_0x763abd);}}),_0x3b45d6||this[_0x4df67f(0x3c6)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5ae461){const _0x4cef02=_0x4a4f45;this[_0x4cef02(0x255)](_0x5ae461);let _0x1f27ff=window[_0x4cef02(0x40f)](()=>{const _0x4f2b4c=_0x4cef02;this[_0x4f2b4c(0x32d)][_0x4f2b4c(0x22c)](_0x3f9149=>{_0x3f9149['delete'](_0x5ae461);});},Ae*0x2);this['_clearOtherTimers']['set'](_0x5ae461,_0x1f27ff);}[_0x4a4f45(0x255)](_0x121b13){const _0x17d4b4=_0x4a4f45;if(this['_clearOtherTimers'][_0x17d4b4(0x33a)](_0x121b13)){let _0x29c707=this['_clearOtherTimers']['get'](_0x121b13);_0x29c707&&window[_0x17d4b4(0x187)](_0x29c707),this['_clearOtherTimers'][_0x17d4b4(0x1a1)](_0x121b13,null);}}[_0x4a4f45(0x37a)](_0x3793c0){const _0x425d7a=_0x4a4f45;let {memberID:_0x256bf3,unitIDs:_0x929b38}=_0x3793c0;_0x929b38[_0x425d7a(0x22c)](_0x4b1607=>{const _0x27f2c8=_0x425d7a;var _0x1ef224;let _0x202303=this['_unitOnClients'][_0x27f2c8(0x39f)](_0x4b1607);_0x202303&&(_0x202303[_0x27f2c8(0x426)](_0x256bf3),(_0x1ef224=this[_0x27f2c8(0x1f1)](_0x4b1607))==null||_0x1ef224[_0x27f2c8(0x13e)](_0x202303[_0x27f2c8(0x3db)]===0x0?e[_0x27f2c8(0x175)]['NO_OTHER_CLIENTS_EDITING']:e[_0x27f2c8(0x175)]['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x256bf3);}[_0x4a4f45(0x357)](_0x172f34){this['_scheduleClearOtherTimer'](_0x172f34['memberID']);}['_send'](_0x3ca964){const _0x526402=_0x4a4f45;localStorage['setItem']($,JSON[_0x526402(0x26b)](_0x3ca964));}[_0x4a4f45(0x130)](){const _0x348af6=_0x4a4f45;this['_heartbeatTimer']=window[_0x348af6(0x230)](()=>{const _0x8189fb=_0x348af6;this[_0x8189fb(0x3c6)]({'type':0x2,'memberID':this[_0x8189fb(0x41e)]});},Ae);}[_0x4a4f45(0x1f1)](_0x23f14c){const _0x44d1fc=_0x4a4f45;return this[_0x44d1fc(0x250)][_0x44d1fc(0x33a)](_0x23f14c)||this[_0x44d1fc(0x250)]['set'](_0x23f14c,new r['BehaviorSubject'](e['UnitStatus'][_0x44d1fc(0x3e7)])),this[_0x44d1fc(0x250)][_0x44d1fc(0x39f)](_0x23f14c);}};Object[_0x4a4f45(0x2e7)](exports,_0x4a4f45(0x162),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x4a4f45(0x265),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x4a4f45(0x344)]=B,Object[_0x4a4f45(0x2e7)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x4a4f45(0x339)]=_e,Object[_0x4a4f45(0x2e7)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return X;}}),exports[_0x4a4f45(0x1ad)]=je;
|