@univerjs-pro/collaboration-client-ui 1.0.0-beta.0 → 1.0.0-beta.2
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.css +10 -22
- 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/commands/operations/update-remote-unit-presence.operation.d.ts +25 -0
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +2 -4
- package/lib/types/controllers/collab-cursor/unit-presence-collab-cursor-entity.d.ts +38 -0
- package/lib/types/controllers/collab-cursor/unit-presence-collab-cursor.controller.d.ts +21 -0
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +8 -13
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +1 -2
- package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +3 -15
- package/lib/types/locale/en-US.d.ts +0 -1
- package/lib/types/models/cursor.d.ts +0 -25
- package/lib/types/plugin.d.ts +3 -2
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +3 -3
- package/lib/types/views/components/SnapshotLoadingTimeout.d.ts +0 -4
- package/lib/types/views/shapes/doc-collab-cursor.d.ts +6 -1
- 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 +19 -23
- package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +0 -31
- 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 -34
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +0 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x246bb0=_0x55a3;(function(_0x2519f3,_0xc3298){const _0xc8d3be=_0x55a3,_0x2aa5ba=_0x2519f3();while(!![]){try{const _0x421873=parseInt(_0xc8d3be(0x28b))/0x1*(parseInt(_0xc8d3be(0x328))/0x2)+parseInt(_0xc8d3be(0x2aa))/0x3*(parseInt(_0xc8d3be(0x280))/0x4)+parseInt(_0xc8d3be(0xdd))/0x5+-parseInt(_0xc8d3be(0x21b))/0x6*(parseInt(_0xc8d3be(0x12d))/0x7)+parseInt(_0xc8d3be(0x253))/0x8*(-parseInt(_0xc8d3be(0x116))/0x9)+-parseInt(_0xc8d3be(0x342))/0xa+-parseInt(_0xc8d3be(0x106))/0xb*(-parseInt(_0xc8d3be(0x2f3))/0xc);if(_0x421873===_0xc3298)break;else _0x2aa5ba['push'](_0x2aa5ba['shift']());}catch(_0x546130){_0x2aa5ba['push'](_0x2aa5ba['shift']());}}}(_0x48ff,0xede29),Object[_0x246bb0(0x120)](exports,Symbol[_0x246bb0(0x125)],{'value':'Module'}));let e=require('@univerjs-pro/boards-ui'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs/core'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('rxjs/operators'),o=require('@univerjs/design'),s=require('@univerjs/icons'),c=require('react'),l=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration'),d=require('@univerjs-pro/license'),f=require('@univerjs/docs'),p=require('@univerjs/docs-ui'),m=require('@univerjs/engine-render'),h=require('@univerjs/network'),g=require('@univerjs/engine-formula'),_=require('@univerjs/sheets'),v=require('@univerjs-pro/slides-ui'),y=require('@univerjs/sheets-ui'),ee=require('@univerjs/rpc'),b=require('@univerjs/protocol');function te(_0x52df35){const _0xe7a967=_0x246bb0;switch(_0x52df35){case t['CollaborationStatus'][_0xe7a967(0x28d)]:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0xf9)],{}),'colorClass':_0xe7a967(0x1f5),'i18nKey':_0xe7a967(0x11f),'tooltipKey':_0xe7a967(0x22e),'clickable':!0x0,'indicator':'static'};case t[_0xe7a967(0x335)]['CONFLICT']:return{'icon':(0x0,l['jsx'])(s[_0xe7a967(0xf9)],{}),'colorClass':_0xe7a967(0x306),'i18nKey':_0xe7a967(0x1e2),'clickable':!0x1,'indicator':_0xe7a967(0x276)};case t[_0xe7a967(0x335)]['FETCH_MISS']:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s['LoadingMultiIcon'],{}),'colorClass':_0xe7a967(0x13c),'i18nKey':'collaboration-client-ui.collabStatus.fetchMiss','clickable':!0x1,'indicator':'spin'};case t[_0xe7a967(0x335)][_0xe7a967(0x344)]:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0x2c2)],{}),'colorClass':'univer-text-gray-400','i18nKey':_0xe7a967(0x36b),'clickable':!0x1,'indicator':_0xe7a967(0x276)};case t[_0xe7a967(0x335)][_0xe7a967(0x243)]:case t[_0xe7a967(0x335)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0xea)],{}),'colorClass':_0xe7a967(0x13c),'i18nKey':_0xe7a967(0x17d),'clickable':!0x1,'indicator':_0xe7a967(0x1c1)};case t[_0xe7a967(0x335)][_0xe7a967(0x2ca)]:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0xea)],{}),'colorClass':_0xe7a967(0x13c),'i18nKey':_0xe7a967(0x17d),'clickable':!0x1,'indicator':_0xe7a967(0x1c1)};case t['CollaborationStatus']['SYNCED']:return{'icon':(0x0,l[_0xe7a967(0x30f)])(s[_0xe7a967(0x2c2)],{}),'colorClass':_0xe7a967(0x134),'i18nKey':_0xe7a967(0x3a7),'clickable':!0x1,'indicator':_0xe7a967(0x276)};}}function ne(_0xed9e9a){const _0x28c22c=_0x246bb0;let {status$:_0x31c7ec}=_0xed9e9a,_0x4c09fa=(0x0,r[_0x28c22c(0x3ca)])(_0x31c7ec,t[_0x28c22c(0x335)][_0x28c22c(0x344)]),_0x27a1fc=(0x0,r[_0x28c22c(0xcd)])(n[_0x28c22c(0x266)]),_0x437b45=(0x0,r['useDependency'])(t[_0x28c22c(0x2d9)]),_0x12cfdf=(0x0,c[_0x28c22c(0x149)])(()=>te(_0x4c09fa),[_0x4c09fa]),_0x523dfd=_0x4c09fa!==t[_0x28c22c(0x335)][_0x28c22c(0x28d)],_0x281841=_0x27a1fc['t'](_0x12cfdf[_0x28c22c(0x138)]),_0x28c485=_0x12cfdf[_0x28c22c(0x24c)]?_0x27a1fc['t'](_0x12cfdf[_0x28c22c(0x24c)]):_0x281841,_0x5dbf76=(0x0,c[_0x28c22c(0x26d)])(()=>{const _0x558a1b=_0x28c22c;_0x523dfd||_0x437b45[_0x558a1b(0x211)]();},[_0x523dfd,_0x437b45]),_0x4522d9=(0x0,c[_0x28c22c(0x26d)])(_0x12a298=>{const _0x2646b7=_0x28c22c;!_0x523dfd&&(_0x12a298['key']===_0x2646b7(0x29d)||_0x12a298[_0x2646b7(0x13f)]==='\x20')&&(_0x12a298['preventDefault'](),_0x437b45[_0x2646b7(0x211)]());},[_0x523dfd,_0x437b45]),_0x1e76d7=(0x0,l[_0x28c22c(0x30f)])('span',{'className':(0x0,o[_0x28c22c(0x11c)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x28c22c(0x263),_0x12cfdf[_0x28c22c(0x170)],{'univer-animate-spin':_0x12cfdf['indicator']===_0x28c22c(0x1c1),'univer-animate-pulse':_0x12cfdf[_0x28c22c(0x103)]===_0x28c22c(0x3a6)}),'aria-hidden':'true','children':_0x12cfdf[_0x28c22c(0x2b0)]}),_0x37e28f=(0x0,l[_0x28c22c(0x30f)])(_0x28c22c(0x126),{'className':(0x0,o['clsx'])(_0x28c22c(0x246),'univer-h-8\x20univer-w-8\x20univer-rounded-lg',_0x28c22c(0x1f7),_0x28c22c(0x18d),_0x28c22c(0x36c),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x12cfdf[_0x28c22c(0x187)],'univer-cursor-default':!_0x12cfdf[_0x28c22c(0x187)]}),'children':_0x1e76d7});return _0x12cfdf[_0x28c22c(0x187)]?(0x0,l[_0x28c22c(0x30f)])(o['Tooltip'],{'title':_0x28c485,'placement':_0x28c22c(0x31b),'children':(0x0,l[_0x28c22c(0x30f)])('button',{'type':_0x28c22c(0x35d),'onClick':_0x5dbf76,'onKeyDown':_0x4522d9,'className':(0x0,o[_0x28c22c(0x11c)])(_0x28c22c(0x270),'univer-border-none\x20univer-bg-transparent',_0x28c22c(0x1a4),'univer-appearance-none'),'aria-label':_0x281841+_0x28c22c(0x236)+_0x28c485,'role':_0x28c22c(0x333),'aria-live':'polite','aria-atomic':_0x28c22c(0xde),'children':_0x37e28f})}):(0x0,l[_0x28c22c(0x30f)])(o['Tooltip'],{'title':_0x28c485,'placement':_0x28c22c(0x31b),'children':(0x0,l[_0x28c22c(0x30f)])(_0x28c22c(0x392),{'className':(0x0,o[_0x28c22c(0x11c)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x28c22c(0x10f),_0x28c22c(0x1a4)),'aria-label':_0x281841,'role':'status','aria-live':_0x28c22c(0x195),'aria-atomic':'true','children':_0x37e28f})});}function x(_0x2a0110){'@babel/helpers - typeof';const _0x2e6f23=_0x246bb0;return x=typeof Symbol==_0x2e6f23(0x2c7)&&typeof Symbol[_0x2e6f23(0x29a)]==_0x2e6f23(0xf1)?function(_0x2236ce){return typeof _0x2236ce;}:function(_0x1be915){const _0x35dfab=_0x2e6f23;return _0x1be915&&typeof Symbol=='function'&&_0x1be915[_0x35dfab(0x38e)]===Symbol&&_0x1be915!==Symbol[_0x35dfab(0x38d)]?_0x35dfab(0xf1):typeof _0x1be915;},x(_0x2a0110);}function re(_0x2ef1c0,_0x3bd63f){const _0x132c82=_0x246bb0;if(x(_0x2ef1c0)!=_0x132c82(0x14d)||!_0x2ef1c0)return _0x2ef1c0;var _0x375e6d=_0x2ef1c0[Symbol[_0x132c82(0x1bd)]];if(_0x375e6d!==void 0x0){var _0x22cabb=_0x375e6d[_0x132c82(0x2b2)](_0x2ef1c0,_0x3bd63f||_0x132c82(0x3b7));if(x(_0x22cabb)!=_0x132c82(0x14d))return _0x22cabb;throw TypeError(_0x132c82(0x124));}return(_0x3bd63f===_0x132c82(0x227)?String:Number)(_0x2ef1c0);}function ie(_0x47f310){const _0x363d95=_0x246bb0;var _0x84a639=re(_0x47f310,_0x363d95(0x227));return x(_0x84a639)=='symbol'?_0x84a639:_0x84a639+'';}function S(_0x573342,_0x113f0d,_0x284113){return(_0x113f0d=ie(_0x113f0d))in _0x573342?Object['defineProperty'](_0x573342,_0x113f0d,{'value':_0x284113,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x573342[_0x113f0d]=_0x284113,_0x573342;}function C(_0x26878d,_0x464a37){return function(_0x18916c,_0x57762b){_0x464a37(_0x18916c,_0x57762b,_0x26878d);};}function w(_0x4daa98,_0x200099,_0x32134,_0x1926f3){const _0x5128fd=_0x246bb0;var _0x1d2c1c=arguments[_0x5128fd(0x192)],_0x4e3ff1=_0x1d2c1c<0x3?_0x200099:_0x1926f3===null?_0x1926f3=Object[_0x5128fd(0x201)](_0x200099,_0x32134):_0x1926f3,_0x3482a9;if(typeof Reflect==_0x5128fd(0x14d)&&typeof Reflect[_0x5128fd(0x326)]==_0x5128fd(0x2c7))_0x4e3ff1=Reflect[_0x5128fd(0x326)](_0x4daa98,_0x200099,_0x32134,_0x1926f3);else{for(var _0x5b6356=_0x4daa98[_0x5128fd(0x192)]-0x1;_0x5b6356>=0x0;_0x5b6356--)(_0x3482a9=_0x4daa98[_0x5b6356])&&(_0x4e3ff1=(_0x1d2c1c<0x3?_0x3482a9(_0x4e3ff1):_0x1d2c1c>0x3?_0x3482a9(_0x200099,_0x32134,_0x4e3ff1):_0x3482a9(_0x200099,_0x32134))||_0x4e3ff1);}return _0x1d2c1c>0x3&&_0x4e3ff1&&Object[_0x5128fd(0x120)](_0x200099,_0x32134,_0x4e3ff1),_0x4e3ff1;}let T=class extends n['Disposable']{constructor(_0x1106c2,_0x1d8eee,_0x5be3a6,_0x1dd127){const _0x4a20d2=_0x246bb0;super(),this[_0x4a20d2(0x123)]=_0x1106c2,this[_0x4a20d2(0x257)]=_0x1d8eee,this[_0x4a20d2(0x2a3)]=_0x5be3a6,this[_0x4a20d2(0x3d0)]=_0x1dd127,S(this,_0x4a20d2(0x3bb),new i[(_0x4a20d2(0x2b7))](t[_0x4a20d2(0x335)][_0x4a20d2(0x344)])),this[_0x4a20d2(0x1c7)](),this[_0x4a20d2(0x3a3)]();}[_0x246bb0(0x3a3)](){const _0x4b55b4=_0x246bb0;this['disposeWithMe']((0x0,i[_0x4b55b4(0x2ff)])(this[_0x4b55b4(0x123)]['focused$'],this[_0x4b55b4(0x123)][_0x4b55b4(0x14c)](n['UniverInstanceType'][_0x4b55b4(0x1cd)]),this[_0x4b55b4(0x123)][_0x4b55b4(0x14c)](n[_0x4b55b4(0xd2)][_0x4b55b4(0x1e6)]))[_0x4b55b4(0x319)]((0x0,a[_0x4b55b4(0x1cb)])(()=>ae(this[_0x4b55b4(0x123)])),(0x0,a[_0x4b55b4(0x22a)])(),(0x0,i['switchMap'])(_0x479b51=>_0x479b51?this[_0x4b55b4(0x2a3)]['getCollabEntity$'](_0x479b51):(0x0,i['of'])(null)),(0x0,i[_0x4b55b4(0x283)])(_0x1753f0=>_0x1753f0?_0x1753f0[_0x4b55b4(0x2dd)]:(0x0,i['of'])(t[_0x4b55b4(0x335)][_0x4b55b4(0x344)])))[_0x4b55b4(0x173)](_0x116a40=>{this['_status$']['next'](_0x116a40);}));}[_0x246bb0(0x1c7)](){const _0x1de8b7=_0x246bb0;this[_0x1de8b7(0x275)](this['_uiPartsService'][_0x1de8b7(0x33e)](r[_0x1de8b7(0x265)]['HEADER_MENU'],()=>(0x0,r[_0x1de8b7(0x3ad)])(se({'status$':this[_0x1de8b7(0x3bb)][_0x1de8b7(0x191)]()}),this[_0x1de8b7(0x257)])));}};T=w([C(0x0,n['IUniverInstanceService']),C(0x1,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x35f)])),C(0x3,r[_0x246bb0(0x235)])],T);let E=class extends n[_0x246bb0(0x13d)]{constructor(_0xc985b0,_0x2b1db4,_0x26b20d,_0x5b0c63){const _0x2a1e8e=_0x246bb0;super(),this['_univerInstanceService']=_0xc985b0,this['_injector']=_0x2b1db4,this[_0x2a1e8e(0x2a3)]=_0x26b20d,this['_uiPartsService']=_0x5b0c63,S(this,'_status$',new i[(_0x2a1e8e(0x2b7))](t[_0x2a1e8e(0x335)]['NOT_COLLAB'])),this['_initStatusComponent'](),this[_0x2a1e8e(0x3a3)]();}[_0x246bb0(0x3a3)](){const _0x1f20fd=_0x246bb0;this[_0x1f20fd(0x275)]((0x0,i[_0x1f20fd(0x2ff)])((0x0,i['of'])(null),this[_0x1f20fd(0x123)]['getCurrentTypeOfUnit$'](n['UniverInstanceType'][_0x1f20fd(0x291)]))[_0x1f20fd(0x319)]((0x0,a[_0x1f20fd(0x1cb)])(()=>oe(this[_0x1f20fd(0x123)])),(0x0,a[_0x1f20fd(0x22a)])(),(0x0,i[_0x1f20fd(0x283)])(_0x4b371b=>_0x4b371b?this[_0x1f20fd(0x2a3)][_0x1f20fd(0x39c)](_0x4b371b):(0x0,i['of'])(null)),(0x0,i[_0x1f20fd(0x283)])(_0x2d5f6f=>_0x2d5f6f?_0x2d5f6f[_0x1f20fd(0x2dd)]:(0x0,i['of'])(t[_0x1f20fd(0x335)][_0x1f20fd(0x344)])))[_0x1f20fd(0x173)](_0x3f9ba1=>{const _0x491331=_0x1f20fd;this[_0x491331(0x3bb)][_0x491331(0x264)](_0x3f9ba1);}));}['_initStatusComponent'](){const _0x748b3f=_0x246bb0;this[_0x748b3f(0x275)](this[_0x748b3f(0x3d0)][_0x748b3f(0x33e)](e['BOARD_TOP_RIGHT_MENU_LEADING_PART'],()=>(0x0,r['connectInjector'])(se({'status$':this[_0x748b3f(0x3bb)]['asObservable']()}),this[_0x748b3f(0x257)])));}};function _0x55a3(_0x3546c1,_0x324980){_0x3546c1=_0x3546c1-0xc3;const _0x48ffa7=_0x48ff();let _0x55a309=_0x48ffa7[_0x3546c1];return _0x55a309;}E=w([C(0x0,n[_0x246bb0(0x324)]),C(0x1,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x35f)])),C(0x3,r['IUIPartsService'])],E);function ae(_0x59a4a8){const _0x4ea45f=_0x246bb0;let _0x9a7b3f=_0x59a4a8['getFocusedUnit'](),_0x15d81a=_0x9a7b3f==null?void 0x0:_0x9a7b3f[_0x4ea45f(0x313)]();if(_0x15d81a&&!(0x0,n[_0x4ea45f(0x3a8)])(_0x15d81a))return _0x15d81a;let _0x7bda6f=_0x59a4a8['getCurrentUnitOfType'](n[_0x4ea45f(0xd2)]['UNIVER_DOC']),_0x48e405=_0x7bda6f==null?void 0x0:_0x7bda6f[_0x4ea45f(0x313)]();if(_0x48e405&&!(0x0,n['isInternalEditorID'])(_0x48e405))return _0x48e405;let _0x3d94d1=_0x59a4a8['getCurrentUnitOfType'](n[_0x4ea45f(0xd2)][_0x4ea45f(0x1e6)]);if(_0x3d94d1)return _0x3d94d1[_0x4ea45f(0x313)]();let _0x441949=_0x59a4a8[_0x4ea45f(0x3c2)](n[_0x4ea45f(0xd2)]['UNIVER_DOC'])[_0x4ea45f(0x37a)](_0x4cb4bc=>!(0x0,n[_0x4ea45f(0x3a8)])(_0x4cb4bc[_0x4ea45f(0x313)]()));return _0x441949?_0x441949[_0x4ea45f(0x313)]():null;}function oe(_0x5221a0){const _0x2febd5=_0x246bb0;let _0x22eff1=_0x5221a0[_0x2febd5(0x12c)](n['UniverInstanceType'][_0x2febd5(0x291)]);return(_0x22eff1==null?void 0x0:_0x22eff1[_0x2febd5(0x313)]())??null;}function se(_0x179a6f){let {status$:_0x43475c}=_0x179a6f;return function(){const _0x39a3a3=_0x55a3;return(0x0,l[_0x39a3a3(0x30f)])(ne,{'status$':_0x43475c});};}var ce=_0x246bb0(0x2ba),le=_0x246bb0(0x2d3);const ue={};let D=class extends n[_0x246bb0(0x2db)]{constructor(_0x505286,_0x1a5ca2){const _0x3b2ccf=_0x246bb0;super(),this[_0x3b2ccf(0x20b)]=_0x505286,this[_0x3b2ccf(0x331)]=_0x1a5ca2,this['_init']();}['_init'](){const _0x205f32=_0x246bb0;let _0x5b35c5=this;this['disposeWithMe'](this[_0x205f32(0x20b)]['addClipboardHook']({'onBeforePasteImage':async _0x3f9dce=>{const _0x535d54=_0x205f32;let _0x1e8be3=await _0x5b35c5[_0x535d54(0x331)][_0x535d54(0x1a8)](_0x3f9dce);return _0x1e8be3?{'source':_0x1e8be3['source'],'imageSourceType':_0x1e8be3[_0x535d54(0x1d3)]}:null;}}));}};D=w([C(0x0,p[_0x246bb0(0x260)]),C(0x1,n[_0x246bb0(0x230)])],D);function de(_0x1f9b30,_0x309f0a){const _0x31e465=_0x246bb0;_0x1f9b30[_0x31e465(0x341)](),_0x1f9b30[_0x31e465(0x37e)]=_0x31e465(0x2d4);let _0x399381=_0x1f9b30[_0x31e465(0x1c6)](_0x309f0a)[_0x31e465(0x1b2)];return _0x1f9b30['restore'](),Math[_0x31e465(0x23c)](_0x399381+0x8,0xc8);}function fe(_0x2cc0da,_0x5df5fb){const _0x4b004a=_0x246bb0;let {radius:_0x42c824,width:_0x9996d1,height:_0x434362}=_0x5df5fb;_0x42c824??=0x0,_0x9996d1??=0x1e,_0x434362??=0x1e;let _0x2cdb9e=0x0,_0x10a7d9=0x0,_0x450b9c=0x0;_0x2cdb9e=_0x10a7d9=_0x450b9c=Math['min'](_0x42c824,_0x9996d1/0x2,_0x434362/0x2),_0x2cc0da['beginPath'](),_0x2cc0da[_0x4b004a(0x1f6)](_0x2cdb9e,0x0),_0x2cc0da['lineTo'](_0x9996d1-_0x10a7d9,0x0),_0x2cc0da['arc'](_0x9996d1-_0x10a7d9,_0x10a7d9,_0x10a7d9,Math['PI']*0x3/0x2,0x0,!0x1),_0x2cc0da['lineTo'](_0x9996d1,_0x434362-_0x450b9c),_0x2cc0da[_0x4b004a(0xf5)](_0x9996d1-_0x450b9c,_0x434362-_0x450b9c,_0x450b9c,0x0,Math['PI']/0x2,!0x1),_0x2cc0da[_0x4b004a(0x1e3)](0x0,_0x434362),_0x2cc0da[_0x4b004a(0x1e3)](0x0,_0x2cdb9e),_0x2cc0da[_0x4b004a(0xf5)](_0x2cdb9e,_0x2cdb9e,_0x2cdb9e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2cc0da['closePath'](),_0x5df5fb[_0x4b004a(0x343)]&&(_0x2cc0da[_0x4b004a(0x341)](),_0x2cc0da['fillStyle']=_0x5df5fb[_0x4b004a(0x343)],_0x5df5fb['fillRule']===_0x4b004a(0x15c)?_0x2cc0da[_0x4b004a(0x343)](_0x4b004a(0x15c)):_0x2cc0da[_0x4b004a(0x343)](),_0x2cc0da['restore']());}var O=class e extends m[_0x246bb0(0x2c0)]{constructor(_0x4ed0a3,_0x573c2b){const _0x22cb2f=_0x246bb0;super(_0x4ed0a3,_0x573c2b),S(this,'color',void 0x0),S(this,_0x22cb2f(0x113),void 0x0),this[_0x22cb2f(0x26e)]=_0x573c2b==null?void 0x0:_0x573c2b['color'],this['text']=_0x573c2b==null?void 0x0:_0x573c2b[_0x22cb2f(0x113)];}static[_0x246bb0(0x387)](_0x187f34,_0x4a3037){const _0x329d17=_0x246bb0;let {text:_0x26003e,color:_0x32f076}=_0x4a3037;_0x187f34[_0x329d17(0x341)](),_0x187f34[_0x329d17(0x37e)]=_0x329d17(0x2f0);let _0xe1f156=_0x187f34[_0x329d17(0x1c6)](_0x26003e)[_0x329d17(0x1b2)];if(fe(_0x187f34,{'height':0x14,'radius':0x4,'width':de(_0x187f34,_0x26003e),'fill':_0x32f076,'evented':!0x1}),_0x187f34['fillStyle']=_0x329d17(0x18b),_0xe1f156>0xc0){let _0x434326='',_0x26a048=0x0;for(let _0x3c6cda of _0x26003e){let _0x13b034=_0x187f34[_0x329d17(0x1c6)](_0x3c6cda)[_0x329d17(0x1b2)];if(_0x26a048+_0x13b034<=0xc0-_0x187f34[_0x329d17(0x1c6)](_0x329d17(0x388))[_0x329d17(0x1b2)])_0x434326+=_0x3c6cda,_0x26a048+=_0x13b034;else{_0x434326+='...';break;}}_0x187f34[_0x329d17(0x3c7)](_0x434326,0x4,0xf);}else _0x187f34[_0x329d17(0x3c7)](_0x26003e,0x4,0xf);_0x187f34[_0x329d17(0x1dd)]();}[_0x246bb0(0x2b4)](_0x24e26f){const _0x10ee72=_0x246bb0;e[_0x10ee72(0x387)](_0x24e26f,this);}};const k=0x138a;var pe=class extends m[_0x246bb0(0x2c0)]{constructor(_0x1861f9,_0x515bec){const _0x58854c=_0x246bb0;super(_0x1861f9,{..._0x515bec,'evented':!0x1}),S(this,_0x58854c(0x2d5),'#4f46e5'),S(this,_0x58854c(0x2ad),''),S(this,_0x58854c(0x3a0),!0x0),_0x515bec&&this[_0x58854c(0x351)](_0x515bec);}[_0x246bb0(0x351)](_0x1bccc0){const _0x454e1e=_0x246bb0;this[_0x454e1e(0x2d5)]=_0x1bccc0[_0x454e1e(0x26e)]??this[_0x454e1e(0x2d5)],this[_0x454e1e(0x2ad)]=_0x1bccc0[_0x454e1e(0x21e)]??this[_0x454e1e(0x2ad)],this[_0x454e1e(0x3a0)]=_0x1bccc0[_0x454e1e(0x24f)]??this[_0x454e1e(0x3a0)],this[_0x454e1e(0x294)]=!0x1,this[_0x454e1e(0x238)]({'left':_0x1bccc0['left']??this[_0x454e1e(0x33c)],'top':_0x1bccc0[_0x454e1e(0x2f5)]??this[_0x454e1e(0x2f5)],'width':_0x1bccc0[_0x454e1e(0x1b2)]??this[_0x454e1e(0x1b2)],'height':_0x1bccc0[_0x454e1e(0x128)]??this[_0x454e1e(0x128)],'angle':_0x1bccc0[_0x454e1e(0x10d)]??this['angle']});}[_0x246bb0(0x2b4)](_0x52f6c9){const _0x47db49=_0x246bb0;_0x52f6c9['save'](),_0x52f6c9['strokeStyle']=this[_0x47db49(0x2d5)],_0x52f6c9['lineWidth']=this['strokeWidth']||1.5,_0x52f6c9['setLineDash']([0x6,0x4]),_0x52f6c9[_0x47db49(0x19d)](0x0,0x0,this[_0x47db49(0x1b2)],this[_0x47db49(0x128)]),_0x52f6c9[_0x47db49(0x1dd)](),this[_0x47db49(0x3a0)]&&(_0x52f6c9[_0x47db49(0x341)](),_0x52f6c9[_0x47db49(0x32d)](0x1,0x0,0x0,0x1,this[_0x47db49(0x1b2)],-0x14),O[_0x47db49(0x387)](_0x52f6c9,{'text':this[_0x47db49(0x2ad)],'color':this[_0x47db49(0x2d5)]}),_0x52f6c9['restore']());}};const me=[_0x246bb0(0x19b),'jiqing.500',_0x246bb0(0x1f2),_0x246bb0(0x156),_0x246bb0(0x245),_0x246bb0(0x129)];var A=class extends n['Disposable']{constructor(..._0xba6306){const _0xda6c55=_0x246bb0;super(..._0xba6306),S(this,_0xda6c55(0x18f),new Map()),S(this,'_colorIndex',0x0);}[_0x246bb0(0x17f)](_0x5964b6){const _0x3181e9=_0x246bb0;if(this[_0x3181e9(0x18f)][_0x3181e9(0x2eb)](_0x5964b6))return this[_0x3181e9(0x18f)][_0x3181e9(0x2e5)](_0x5964b6);let _0x358b14=me[this[_0x3181e9(0x2ed)]];return this[_0x3181e9(0x2ed)]=(this[_0x3181e9(0x2ed)]+0x1)%me[_0x3181e9(0x192)],this[_0x3181e9(0x18f)][_0x3181e9(0x2f4)](_0x5964b6,_0x358b14),_0x358b14;}};function he(_0x2abe4c){const _0x1fcb0b=_0x246bb0;let _0x17c57a;try{_0x17c57a=JSON[_0x1fcb0b(0x1ab)](_0x2abe4c);}catch{return null;}if(typeof _0x17c57a!='object'||!_0x17c57a)return null;let _0x3c3891=_0x17c57a;if(_0x3c3891[_0x1fcb0b(0x37b)]!==_0x1fcb0b(0x317)||typeof _0x3c3891[_0x1fcb0b(0x193)]!=_0x1fcb0b(0x227)||typeof _0x3c3891[_0x1fcb0b(0x3bc)]!=_0x1fcb0b(0x227))return null;let _0x562e91=Array['isArray'](_0x3c3891[_0x1fcb0b(0x21d)])?_0x3c3891[_0x1fcb0b(0x21d)][_0x1fcb0b(0x18a)](_0x4673c6=>typeof _0x4673c6==_0x1fcb0b(0x227)):[],_0x2d9ccb=typeof _0x3c3891['focusedId']==_0x1fcb0b(0x227)?_0x3c3891[_0x1fcb0b(0x16e)]:null;return{'kind':'board-element-selection','unitId':_0x3c3891[_0x1fcb0b(0x193)],'subUnitId':_0x3c3891['subUnitId'],'selectedIds':_0x562e91,'focusedId':_0x2d9ccb};}let j=class extends n[_0x246bb0(0x2db)]{get[_0x246bb0(0x30a)](){const _0x331233=_0x246bb0;return this[_0x331233(0x361)][_0x331233(0x288)]();}get[_0x246bb0(0x277)](){const _0x2958a2=_0x246bb0;return this[_0x2958a2(0x185)]['getValue']();}constructor(_0x336747,_0x3d12d9,_0x2a3d53,_0x5d98e7,_0x1d89ff){const _0x1f0389=_0x246bb0;super(),this[_0x1f0389(0x2a7)]=_0x336747,this[_0x1f0389(0x3c6)]=_0x3d12d9,this[_0x1f0389(0x147)]=_0x2a3d53,this[_0x1f0389(0x286)]=_0x5d98e7,this[_0x1f0389(0x1f4)]=_0x1d89ff,S(this,_0x1f0389(0xf4),!0x1),S(this,_0x1f0389(0x244),!0x1),S(this,_0x1f0389(0x361),new i['BehaviorSubject'](new Map())),S(this,_0x1f0389(0x27b),this[_0x1f0389(0x361)][_0x1f0389(0x191)]()),S(this,'_roomMembers$',new i[(_0x1f0389(0x2b7))]([])),S(this,'roomMembers$',this[_0x1f0389(0x185)][_0x1f0389(0x319)]((0x0,i[_0x1f0389(0x1f1)])(0x12c))),S(this,_0x1f0389(0x2c9),(0x0,n[_0x1f0389(0x225)])(_0xf81ac=>{const _0x351aec=_0x1f0389;let _0x513c96=_0xf81ac[_0x351aec(0x2c5)];if(!_0x513c96||_0x513c96[_0x351aec(0x193)]!==this[_0x351aec(0x2a7)])return;let _0x5045d3={'kind':_0x351aec(0x317),'unitId':_0x513c96[_0x351aec(0x193)],'subUnitId':_0x513c96[_0x351aec(0x3bc)],'selectedIds':_0xf81ac[_0x351aec(0x21d)][_0x351aec(0x18a)](_0x376901=>typeof _0x376901==_0x351aec(0x227)),'focusedId':_0xf81ac[_0x351aec(0x16e)]},_0x26f779={'eventID':u[_0x351aec(0x26a)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x351aec(0x2a7)],'memberID':this[_0x351aec(0x3c6)][_0x351aec(0x262)](),'selection':JSON[_0x351aec(0x146)](_0x5045d3)}};this[_0x351aec(0x3c6)][_0x351aec(0x207)](_0x26f779,this['unitID']);},0x64));}[_0x246bb0(0x20f)](){const _0x43bf14=_0x246bb0;super['dispose'](),this[_0x43bf14(0x361)][_0x43bf14(0x264)](new Map()),this[_0x43bf14(0x361)][_0x43bf14(0x1b3)](),this[_0x43bf14(0x185)]['next']([]),this[_0x43bf14(0x185)][_0x43bf14(0x1b3)]();}[_0x246bb0(0x213)](){const _0x2e9a3e=_0x246bb0;this[_0x2e9a3e(0x244)]||(this[_0x2e9a3e(0x244)]=!0x0,this[_0x2e9a3e(0x3c6)]['sessionStatus$'][_0x2e9a3e(0x319)]((0x0,i[_0x2e9a3e(0x119)])(this[_0x2e9a3e(0x22c)]))['subscribe'](_0xd80f51=>{const _0x1175bb=_0x2e9a3e;_0xd80f51===t[_0x1175bb(0x1be)][_0x1175bb(0x25e)]?this[_0x1175bb(0x274)]():this['_toggleOffline']();}),this[_0x2e9a3e(0x3c6)][_0x2e9a3e(0x1a3)][_0x2e9a3e(0x319)]((0x0,i['takeUntil'])(this['dispose$']))[_0x2e9a3e(0x173)](_0x1f6678=>{const _0x56cfce=_0x2e9a3e;let _0x85ee11=_0x1f6678[_0x56cfce(0x2ec)];_0x85ee11===u['CollaborationEvent'][_0x56cfce(0x2d7)]&&this[_0x56cfce(0x27d)](_0x1f6678),_0x85ee11===u[_0x56cfce(0x26a)][_0x56cfce(0xfb)]&&this[_0x56cfce(0xec)](_0x1f6678);}),this['_boardElementStateService'][_0x2e9a3e(0x323)][_0x2e9a3e(0x319)]((0x0,i[_0x2e9a3e(0x119)])(this[_0x2e9a3e(0x22c)]))[_0x2e9a3e(0x173)](_0xad0848=>{const _0x22145a=_0x2e9a3e;this[_0x22145a(0xf4)]&&this[_0x22145a(0x2c9)](_0xad0848);}));}[_0x246bb0(0x27d)](_0x3d3e35){const _0x5c31f9=_0x246bb0;var _0x445cf0,_0x52603c,_0x1525ec;let {memberID:_0x298bdc,selection:_0x281f49}=_0x3d3e35[_0x5c31f9(0x32a)];if(_0x298bdc===((_0x445cf0=(_0x52603c=this[_0x5c31f9(0x3c6)])['getMemberID'])==null?void 0x0:_0x445cf0[_0x5c31f9(0x2b2)](_0x52603c)))return;let _0x4c407c=he(_0x281f49);if(!_0x4c407c||_0x4c407c[_0x5c31f9(0x193)]!==this[_0x5c31f9(0x2a7)])return;let _0x318ba9=((_0x1525ec=this[_0x5c31f9(0x286)][_0x5c31f9(0x130)](this[_0x5c31f9(0x2a7)],_0x298bdc))==null?void 0x0:_0x1525ec[_0x5c31f9(0x21e)])??_0x5c31f9(0x197),_0x7c225d={'color':this[_0x5c31f9(0x147)][_0x5c31f9(0x17f)](_0x298bdc),'name':_0x318ba9,'unitId':_0x4c407c[_0x5c31f9(0x193)],'subUnitId':_0x4c407c['subUnitId'],'selectedIds':_0x4c407c[_0x5c31f9(0x21d)],'focusedId':_0x4c407c[_0x5c31f9(0x16e)],'selection':_0x281f49},_0x49b0e1=new Map(this[_0x5c31f9(0x30a)]);_0x49b0e1['set'](_0x298bdc,_0x7c225d),this[_0x5c31f9(0x361)][_0x5c31f9(0x264)](_0x49b0e1);}['_onCursorDelete'](_0xa05d2d){const _0x12d7f0=_0x246bb0;let {memberID:_0x5baca3}=_0xa05d2d['data'],_0x431f94=new Map(this[_0x12d7f0(0x30a)]);_0x431f94[_0x12d7f0(0x296)](_0x5baca3),this['_cursorInfo$']['next'](_0x431f94);}[_0x246bb0(0x274)](){const _0x296d30=_0x246bb0;this['_online']=!0x0,this[_0x296d30(0x2c9)](this['_boardElementStateService'][_0x296d30(0x312)]());}[_0x246bb0(0x1c4)](){const _0x38594a=_0x246bb0;this[_0x38594a(0xf4)]=!0x1;}};j=w([C(0x2,(0x0,n[_0x246bb0(0x1a6)])(A)),C(0x3,(0x0,n['Inject'])(t[_0x246bb0(0x204)])),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(e[_0x246bb0(0x35e)]))],j);function ge(_0x2de8ec){const _0x416f9b=_0x246bb0;let _0xfe5528='';for(let _0x424ff0 of _0x2de8ec){let {startOffset:_0x3f1424,endOffset:_0x21330c,isActive:_0x539d4f,rangeType:_0x31693f,segmentId:_0x5cb648,segmentPage:_0xa46a60}=_0x424ff0;_0xfe5528[_0x416f9b(0x192)]&&(_0xfe5528+=','),_0xfe5528+=_0x3f1424+':'+_0x21330c+':'+(_0x539d4f?'1':'0')+':'+_0x31693f+':'+_0x5cb648+':'+_0xa46a60;}return _0xfe5528;}function _0x48ff(){const _0x52cb31=['[CollaborationDataLoaderController]','isEditing','_memberService','mutations','getValue','_updateURLWithCurrentState','_shortcutService','89627ROHVDo','getObject','OFFLINE','_initUnhandledRejectionListener','getActiveSlide','IRemoteInstanceService','UNIVER_BOARD','packageName','subscribeEvent','evented','_createSocketURL','delete','ILocalCacheService','snapshot-loading-','clear','iterator','_sheetLoadingRenderService','range','Enter','_clearTimeoutState','SUCCESS','buildDrawingOKey','startColumn','getCollabCursors$','_collaborationController','IBeforeCloseService','DEFAULT_WS_SESSION_TICKET_URL','previewCellData','unitID','BrowserCollaborationSocketService','isArray','46353GClzxH','/run/','InsertRangeMoveRightCommandId','_name','addHandlerCallback','_initEvent','icon','_onRefRangeChange','call','searchParams','_draw','location','getTypeOfUnitDisposed$','BehaviorSubject','getScrollXYInfoByViewport','getItem','@univerjs-pro/collaboration-client-ui','releaseFormulaLimitUrl','whenReady','SetTextSelectionsOperation','rgba','small','Shape','Warning','OnLineIcon','RECT','reason','context','getRangePointData','function','startRow','_updateLocalCursor','PENDING','_offsetY','_updateSheetPreview','_scheduleHeartbeat','onMouseMove','getUnit','_clearPolling','UniverDocsUIPlugin','getActivePageId','1.0.0-beta.0','bold\x2013px\x20Arial,\x20sans-serif','_color','from','UPDATE_CURSOR','unhandledrejection','CollaborationSessionService','getConfig','RxDisposable','message','status$','collaboration-client-ui.permission.title','flatMap','_highlight','startPluginsForType','toISOString','search','m2Prime','get','some','transformSelections','DocSkeletonManagerService','_cursor','Success','has','eventID','_colorIndex','_transformPreviousActiveRange','collaboration-client-ui.snapshotLoading.refresh','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','clearTimeout','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','816euNIkM','set','top','Subject','stage','SnapshotLoadStage','RemoveColCommandId','UniverNetworkPlugin','collaboration-client-ui.formula.calculation.unable','_startCalculationLimit','_handleEvent','show','merge','snapshot-loading-timeout','getCoordByCell','backupOfflineData','_uploadLog','_interactionBlocked$','setOffsetY','univer-text-orange-500','_collabSessionService','href','backgroundColor','cursorInfo','newValue','_unitStatus','getFocusedUnit','combineLatest','jsx','sheetID','DependentOn','getSnapshot','getUnitId','transformRemoteChangeset','getFormulaLimitStatusUrl','_logService','board-element-selection','urlChange$','pipe','RichTextEditingMutation','bottom','subunit','deserializeRangeWithSheet','_syncEditingCollabCursorService','getDocRanges','IConfigService','activeSheetId',':backup:','state$','IUniverInstanceService','setAlpha','decorate','getRenderUnitById','26SQekjg','_getSaveTimeout','data','DocCollaborationEntity','_scheduleRender','transform','_docTransformIMECacheService','syncEditingCollabCursor','requireSession','_imageIoService','_getSheetLoadingRenderService','status','_eventUnsubscribe','CollaborationStatus','registerBeforeClose','_watchBlockProgress','black','pushState','_updateSubUnitFromURLParams','InsertColCommandId','left','isActive','registerComponent','addEventListener','_shapes','save','10459970YEYfxR','fill','NOT_COLLAB','UniverRenderEnginePlugin','add','contains','collaboration-client-ui.conflict.content','_stopBlinking','createElement','IShortcutService','_isVisibleUnit','_initCommandExecutedListener','_selfUnitIDs','forEach','resolve','setShapeProps','_scheduleSaving','WebSocketService','SheetSkeletonManagerService','SUBMIT_CHANGESET_TIMEOUT','_highlightSecond','getParam','removeObjects','_setupBeforeClosingHandler','unit','getActiveRange','forceDisable','button','IBoardElementStateService','CollaborationController','parseInt','_cursorInfo$','Rect','removeEventListener','unshift','_renderManagerService','unsubscribe','_releaseCalculationLimit','_transformHistoryAndStateStack','snapshot-loading-interaction-guard','right','collaboration-client-ui.collabStatus.notCollab','dark:focus:!univer-ring-offset-gray-800','_memberID','_isApplyingOverlays','_updateCollabCursors','_anchor','SOCKET_FAILED_RETRY','roomMembers$','exhaustSavingTask','labelPosition','serializeRangeWithSheet','PERMISSION_DENIED','_pluginService','SheetsSelectionsService','_monkeyPatchLogService','find','kind','_snapshotLoadingService','_blinkIntervalTimer','font','PluginService','strokeWidth','RevisionService','_setInteractionBlocked','createInstance','selections','_cursorShapes','collaboration-client-ui.formula.calculation.waiting','drawWith','...','Fragment','isTransformMutationsWithChangesetSuccess','EffectRefRangId','TEXT','prototype','constructor','getActiveSheet','override','body','div','collaboration-client-ui.formula.calculation.started','handleDeleteRangeMoveLeft','removeParam','split','DocSelectionManagerService','COMPLETE','transformIMECache','loadOfflineData','getCurrentSkeleton','getCollabEntity$','getUnhiddenWorksheets','SHEET_VIEWPORT_KEY','timeoutState$','_showText','_getSessionTicket','clearInterval','_initStatusListener','resize','disposeUnit','pulse','collaboration-client-ui.collabStatus.synced','isInternalEditorID','activeSlideId$','onStarting','saveTaskMap','_getSceneObjectByKey','connectInjector','_removeCollabCursors','_localeService','Tools','_pointerMoveDisposable','disableLocalCache','triggerDblclick','join','_handoffPreview','MoveRangeCommandId','default','UniverDocsPlugin','_saveCache','_startBlinking','_status$','subUnitId','_entities','Optional','CLOSE_ROOM','OTHER_CLIENT_EDITING','onCommandExecuted','getAllUnitsForType','transformMutation','setTimeout','ThemeService','_session','fillText','_hideTimer','_getObjectBounds','useObservable','deepClone','CollaborationSocketService','_getAnchorBounding','_disabled','getViewport','_uiPartsService','IURLService','MessageType','toString','Button','Vector2','univer-size-4\x20univer-shrink-0\x20univer-text-amber-500','collabCursorState$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','OTHER_CLIENTS_EDITING','collab-rect-range-','with','getId','useDependency','_latestCursors','size','params','m1Prime','UniverInstanceType','_transformUndoRedoStack','_backgroundColor','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-white\x20univer-px-3\x20univer-py-2\x20univer-text-sm\x20univer-text-gray-900\x20univer-shadow-lg\x20dark:!univer-bg-gray-700\x20dark:!univer-text-white','_handoffUnitIds','_send','_blinkTimer','_currentUsage','SetWorksheetActivateCommand','currentUsage','wsSessionTicketUrl','751680dwxfsh','true','_refreshCollabCursors','_cursors','timedOut','Failed','removeObject','mapTo','filename','SetFormulaCalculationNotificationMutation','handleDeleteRangeMoveUp','_pollingInterval','remove','LoadingMultiIcon','_updateMessage','_onCursorDelete','ColorKit','offsetY','_beforeCloseService','RemoveRowCommandId','symbol','GLOBAL','_configService','_online','arc','_removeClearOtherTimer','_dataLoaderService','_sheetSkeletonManagerService','OffLineIcon','getAncestorScale','USERS_LEAVE','ranges','_docSkeletonManagerService','_id','jsxs','/universer-api/license/formula/limit/start','_scene','ILogService','indicator','history','getSheetBySheetId','300311eIcOzg','_lastPointer','univer-fixed\x20univer-inset-0\x20univer-z-[1000]\x20univer-cursor-wait','doc.mutation.rich-text-editing','_drawAnchor','_latestStates','currentSkeleton$','angle','FromArray','univer-border-none\x20univer-bg-transparent','setItem','push','currentTheme$','text','_handleHeartbeatEvent','getLocalCacheKey','24543HfVzlp','workbookShell','selection','takeUntil','enableDocumentCollaborationUI','_cachedData','clsx','addObject','ISheetLoadingRenderService','collaboration-client-ui.collabStatus.offline','defineProperty','ISnapshotServerService','getCoordRelativeToViewport','_univerInstanceService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toStringTag','span','_initEntityListener','height','yellow.400','SOCKET_FAILED','_localStorageService','getCurrentUnitOfType','7wvQwbX','_messageIds','?taskId=','getMember','UNIVER_SLIDE','LOCAL_CACHE_INTERVAL_KEY','storage','univer-text-green-500','RegularPolygon','executeCommand','_handleJoinEvent','i18nKey','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ISlideDrawingStateService','type','univer-text-blue-500','Disposable','onPointerMove$','key','socket$','Injector','_unitOnClients','_checkAndWaitForCalculationPermission','highlight','_setFormulaLimitStatus','stringify','_colorAssignService','collaboration-client-ui.collabStatus.fetchMiss','useMemo','highlightSecond','_saveTaskMap','getCurrentTypeOfUnit$','object','getTypeOfUnitAdded$','_context','[RemoteUniscriptService]:\x20no\x20focused\x20unit','DesktopCollaborationStatusDisplayController','showSkeleton','stageInfo','_clearOtherTimers','DocIMEInputManagerService','red.300','setParam','collaboration-client-ui.collaboration.single-unit.warning','collaboration-client-ui.permission.content','_collaborationSessionService','_docTransformStateCacheService','evenodd','_urlService','fromEvent','CollaborationUIEventId','_getMergeRange','findNodePositionByCharIndex','handleInsertRangeMoveDown','handleMoveRange','0.2)','handleInsertRangeMoveRight','[Window\x20Error]:\x20','collaboration-client-ui.collaboration.closeRoom','toDisposable','invokeId','redoState','_messageService','isFormulaString','post','focusedId','generateRandomId','colorClass','memberID','onPointerLeave$','subscribe','ticket','UniverCollaborationPlugin','undoState','START_CALCULATION','colno','_textBubble','TRANSFORM_CHANGE_OBSERVABLE_TYPE','scene','_range','collaboration-client-ui.collabStatus.syncing','_initDependencies','assignAColorForMemberID','version','toRgbString','isTransformMutationFailure','LOADING_BLOCKS','getUnitStatus$','_roomMembers$','ICommandService','clickable','_instanceService','runRefRangeMutations','filter','#FFF','touchDependencies','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','_collaborationUIEventService','_assignedColors','CanceledError','asObservable','length','unitId','COLORS','polite','_maxFormulaLimit','Unknown\x20user','column','_taskIds','row','purple.300','SnapshotLoadingService','strokeRect','values','shift','_render','collab-text-range-','collaboration-client-ui.session.connection-failed','event$','univer-m-0\x20univer-p-0','_timeoutState$','Inject','_hover','saveImage','_collabCursorState$','_themeService','parse','_httpService','timeoutId','_ensureSubject','error','all','value','width','complete','hide','_initCommandInterceptor','UniverCollaborationClientPlugin','_hidePreview','_getLighterColor','registerRenderModule','_showGuardMessage','_drawRectRange','_getScale','toPrimitive','SessionStatus',',\x200.2)','CONFLICT','spin','code','NodePositionConvertToRectRange','_toggleOffline','_checkCalculationAvailable','measureText','_initStatusComponent','getCellIndexByOffset','totalBlocks','_labelPosition','map','_startBoardCollabCursor','UNIVER_DOC','_refRangeService','_shortcutBlock','DeleteRangeMoveUpCommandId','IMessageService','now','imageSourceType','_applyCommand','_registerDependencies','NodePositionConvertToCursor','_transformService','getColor','_lastResponseTimestamp','getRealBound','endRow','_localCacheService','restore','functionsExecutedState','slide-element-selection','WebBrowserSingleActiveUnitService','_initUserListener','collaboration-client-ui.collabStatus.conflict','lineTo','_commandService','_notificationService','UNIVER_SHEET','_renderScheduled','collab-text-anchor-','setConfig','WarningIcon','collaboration-client-ui.session.collaboration-timeout','setInterval','_docSyncEditingCollabCursorService','sessionStatus$','HTTPService','_getFormulaLimitStatus','debounceTime','green.600','uni.network.url-service','_boardElementStateService','univer-text-red-500','moveTo','univer-transition-all\x20univer-duration-200','ACTIVE_UNIT_EVENT_CHANNEL','INotificationService','/universer-api/license/formula/limit/done','_hovered','_docTransformSelectionsService','ERROR','_getSheetObject','onRendered','collaboration-client-ui.config','getOwnPropertyDescriptor','getCurrentRevOfUnit','_slideDrawingStateService','MemberService','rgb','addObject$','send','slice','mergeOverrideWithDependencies','Workbook','_docClipboardService','_config','_registerRenderDependencies','Loading','dispose','makeDirty','reconnect','Error','init','_initWindowErrorListener','handoff','limitInfo','InsertRangeMoveDownCommandId','_collabCursorController','DisposableCollection','_clearBlockProgressWatch','637158fwyksv','popstate','selectedIds','name','getColorFromTheme','registerRefRange','getMergeData','_document','onPointerEnter$','_entityInit$','debounce','updateOfflineData','string','setActiveRange','UniverLicensePlugin','distinctUntilChanged','startsWith','dispose$','_revisionService','collaboration-client-ui.collabClient.tooltip.reconnect','_labelHorizontalPosition','IImageIoService','_hasFormulaInDirtyRanges','_previewUnitId','previewReady','JOIN_ROOM_FAILED','IUIPartsService','\x20-\x20','DOC_RANGE_TYPE','transformByState','handleInsertRow','maxFormulaLimit','loadedBlocks','min','stack','collaboration-client-ui.snapshotLoading.timeout','_startSlideCollabCursor','getSheetId','_blockProgressWatches','engine','AWAITING','_init','blue.400','univer-flex\x20univer-items-center\x20univer-justify-center','getObjectIncludeInGroup','getUndoRedoMutationParamsCache','executionId','board-collab-cursor-','_isBlinkVisible','tooltipKey','runId','alert','showText','textRanges','_doCreateSocket','UnitStatus','3928GnTnwP','_startDocCollabCursor','totalFormulasToCalculate','startFormulaLimitUrl','_injector','DeleteRangeMoveLeftCommandId','replaceState','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_docStateChangeManagerService','labelHorizontalPosition','replace','ONLINE','replaceDocRanges','IDocClipboardService','TEXT_RANGE_LAYER_INDEX','getMemberID','univer-text-xl\x20univer-transition-colors\x20univer-duration-200','next','BuiltInUIPart','LocaleService','dirtyRanges','saveOfflineData','endColumn','CollaborationEvent','_anchorDot','getStateCache','useCallback','color','createSocket','univer-inline-flex\x20univer-items-center\x20univer-justify-center','setStateCache','handleIRemoveCol','isFormulaId','_toggleOnline','disposeWithMe','static','roomMembers','sheetId','_heartbeatTimer','ErrorCode','cursorInfo$','_scheduleClearOtherTimer','_onCursorUpdate','then','addObjects','76eXfsAt','getSkeleton','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','switchMap'];_0x48ff=function(){return _0x52cb31;};return _0x48ff();}function _e(_0x391907){const _0x4f8837=_0x246bb0;let _0x1cb3c1=_0x391907[_0x4f8837(0x396)](','),_0x2ea962=[];for(let _0xaddacb of _0x1cb3c1){let [_0x6d8e99,_0x5bb2b0,_0x32d960,_0x205bc1,_0x4e62b7,_0x5b83d1]=_0xaddacb['split'](':');_0x2ea962[_0x4f8837(0x111)]({'startOffset':Number(_0x6d8e99),'endOffset':Number(_0x5bb2b0),'collapsed':_0x6d8e99===_0x5bb2b0,'isActive':_0x32d960==='1','rangeType':_0x205bc1===n['DOC_RANGE_TYPE'][_0x4f8837(0x38c)]?n[_0x4f8837(0x237)][_0x4f8837(0x38c)]:n[_0x4f8837(0x237)][_0x4f8837(0x2c3)],'segmentId':typeof _0x4e62b7=='string'?String(_0x4e62b7):'','segmentPage':Number(_0x5b83d1??-0x1)});}return _0x2ea962[_0x4f8837(0x2e6)](_0x55c519=>_0x55c519[_0x4f8837(0x33d)])||(_0x2ea962[0x0]['isActive']=!0x0),_0x2ea962;}var M=class extends n['RxDisposable']{constructor(..._0x134f4f){const _0x5899f2=_0x246bb0;super(..._0x134f4f),S(this,_0x5899f2(0x1a9),new i[(_0x5899f2(0x2b7))](null)),S(this,_0x5899f2(0xc7),this[_0x5899f2(0x1a9)][_0x5899f2(0x191)]());}[_0x246bb0(0x32f)](_0x54ae68){const _0x4ae9fe=_0x246bb0;let {unitID:_0x54d78d,memberID:_0x5a0b16,textRanges:_0x2b3ca2}=_0x54ae68,_0x5cdea2=ge(_0x2b3ca2);if(_0x5cdea2==='')return;let _0x16bdb7={'unitID':_0x54d78d,'memberID':_0x5a0b16,'selection':_0x5cdea2};this['_collabCursorState$'][_0x4ae9fe(0x264)](_0x16bdb7);}};let N=class extends n[_0x246bb0(0x2db)]{get[_0x246bb0(0x30a)](){const _0x4cf03e=_0x246bb0;return this[_0x4cf03e(0x361)][_0x4cf03e(0x288)]();}get[_0x246bb0(0x277)](){const _0x578612=_0x246bb0;return this[_0x578612(0x185)][_0x578612(0x288)]();}constructor(_0x1bb1bd,_0x2e4cfd,_0x491e4a,_0x249051,_0x3fb5df,_0x574a8f,_0xe253cf,_0x8f5d5b,_0x244800){const _0x585395=_0x246bb0;super(),this[_0x585395(0x2a7)]=_0x1bb1bd,this[_0x585395(0x3c6)]=_0x2e4cfd,this[_0x585395(0x257)]=_0x491e4a,this[_0x585395(0x147)]=_0x249051,this[_0x585395(0x286)]=_0x3fb5df,this['_syncEditingCollabCursorService']=_0x574a8f,this[_0x585395(0x1d7)]=_0xe253cf,this['_univerInstanceService']=_0x8f5d5b,this[_0x585395(0x1e4)]=_0x244800,S(this,_0x585395(0xf4),!0x1),S(this,_0x585395(0x244),!0x1),S(this,_0x585395(0x361),new i['BehaviorSubject'](new Map())),S(this,'cursorInfo$',this[_0x585395(0x361)][_0x585395(0x191)]()),S(this,_0x585395(0x185),new i[(_0x585395(0x2b7))]([])),S(this,_0x585395(0x372),this[_0x585395(0x185)][_0x585395(0x319)]((0x0,i[_0x585395(0x1f1)])(0x12c))),S(this,_0x585395(0x2c9),(0x0,n[_0x585395(0x225)])(_0x2646d1=>{const _0x517f5d=_0x585395;let _0xc06a13={'eventID':u[_0x517f5d(0x26a)][_0x517f5d(0x2d7)],'data':{'unitID':this[_0x517f5d(0x2a7)],'memberID':this['_session']['getMemberID'](),'selection':ge(_0x2646d1)}};this[_0x517f5d(0x3c6)]['send'](_0xc06a13,this[_0x517f5d(0x2a7)]);},0x64));}['dispose'](){const _0x52d9bb=_0x246bb0;super[_0x52d9bb(0x20f)](),this[_0x52d9bb(0x361)][_0x52d9bb(0x264)](new Map()),this['_cursorInfo$'][_0x52d9bb(0x1b3)](),this['_roomMembers$'][_0x52d9bb(0x264)]([]),this['_roomMembers$']['complete']();}[_0x246bb0(0x213)](){const _0x190422=_0x246bb0;this[_0x190422(0x244)]||(this[_0x190422(0x244)]=!0x0,this[_0x190422(0x3c6)][_0x190422(0x1ee)][_0x190422(0x319)]((0x0,i[_0x190422(0x119)])(this[_0x190422(0x22c)]))['subscribe'](_0x2a6f02=>{const _0x19c51e=_0x190422;_0x2a6f02===t[_0x19c51e(0x1be)][_0x19c51e(0x25e)]?this[_0x19c51e(0x274)]():this[_0x19c51e(0x1c4)]();}),this['_session'][_0x190422(0x1a3)][_0x190422(0x319)]((0x0,i[_0x190422(0x119)])(this['dispose$']))[_0x190422(0x173)](_0x2b59f3=>{const _0x49568f=_0x190422;let _0x566da7=_0x2b59f3[_0x49568f(0x2ec)];_0x566da7===u[_0x49568f(0x26a)][_0x49568f(0x2d7)]&&this[_0x49568f(0x27d)](_0x2b59f3),_0x566da7===u[_0x49568f(0x26a)][_0x49568f(0xfb)]&&this['_onCursorDelete'](_0x2b59f3);}),this[_0x190422(0x275)](this['_commandService']['onCommandExecuted'](_0x24a025=>{const _0x51121c=_0x190422;let _0x231f02=_0x24a025['params'];_0x231f02!=null&&this['_online']&&_0x24a025['id']===f[_0x51121c(0x2bd)]['id']&&_0x231f02[_0x51121c(0x193)]===this[_0x51121c(0x2a7)]&&_0x231f02[_0x51121c(0x285)]===!0x1&&_0x231f02['ranges']['length']>0x0&&this[_0x51121c(0x2c9)](_0x231f02['ranges']);})),this[_0x190422(0x31e)][_0x190422(0xc7)][_0x190422(0x319)]((0x0,i[_0x190422(0x119)])(this[_0x190422(0x22c)]))[_0x190422(0x173)](_0x3a22bb=>{const _0x5e5697=_0x190422;if((_0x3a22bb==null?void 0x0:_0x3a22bb[_0x5e5697(0x2a7)])!==this[_0x5e5697(0x2a7)])return;let _0xfc596c={'eventID':u[_0x5e5697(0x26a)][_0x5e5697(0x2d7)],'data':_0x3a22bb};this['_onCursorUpdate'](_0xfc596c);}),this[_0x190422(0x275)](this[_0x190422(0x1e4)][_0x190422(0x3c1)](_0x5f4aa2=>{const _0x2215fe=_0x190422;if(_0x5f4aa2['params']==null)return;let _0x195432=_0x5f4aa2[_0x2215fe(0xd0)];if(_0x5f4aa2['id']!==f[_0x2215fe(0x31a)]['id']||_0x195432[_0x2215fe(0x193)]!==this['unitID'])return;let _0x3f3e95={'id':'doc.mutation.rich-text-editing','params':_0x195432},_0xc4f663=this[_0x2215fe(0x30a)];for(let [_0x210f58,_0xb82aef]of _0xc4f663){let _0x264768={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x2215fe(0x2a7)],'actions':null,'textRanges':_0xb82aef[_0x2215fe(0xfc)]}},_0x367f41=this[_0x2215fe(0x1d7)][_0x2215fe(0x3c3)](_0x3f3e95,_0x264768,!0x1);if((0x0,u[_0x2215fe(0x182)])(_0x367f41))throw _0x367f41[_0x2215fe(0x1af)];_0xc4f663['set'](_0x210f58,{..._0xb82aef,'ranges':_0x367f41[_0x2215fe(0x2e4)][_0x2215fe(0xd0)]['textRanges']});}queueMicrotask(()=>{const _0x5dd486=_0x2215fe;this[_0x5dd486(0x361)][_0x5dd486(0x264)](_0xc4f663);});})));}[_0x246bb0(0x27d)](_0x36380b){const _0x14c157=_0x246bb0;var _0x40329a;let {memberID:_0x50a134,selection:_0x53d3db}=_0x36380b['data'],_0x460775=_e(_0x53d3db),_0x3a1e4c=((_0x40329a=this[_0x14c157(0x286)][_0x14c157(0x130)](this[_0x14c157(0x2a7)],_0x50a134))==null?void 0x0:_0x40329a[_0x14c157(0x21e)])??_0x14c157(0x197),_0x1a7c66={'color':this[_0x14c157(0x147)]['assignAColorForMemberID'](_0x50a134),'name':_0x3a1e4c,'ranges':_0x460775},_0x507711=this[_0x14c157(0x30a)];_0x507711['set'](_0x50a134,_0x1a7c66),this['_cursorInfo$'][_0x14c157(0x264)](_0x507711);}[_0x246bb0(0xec)](_0x4a19ba){const _0x22a98f=_0x246bb0;let {memberID:_0x2b62ec}=_0x4a19ba['data'],_0x25922c=this['cursorInfo'];_0x25922c['delete'](_0x2b62ec),this[_0x22a98f(0x361)][_0x22a98f(0x264)](_0x25922c);}['_toggleOnline'](){const _0x307159=_0x246bb0;var _0x4e76f8;if(this['_online']=!0x0,((_0x4e76f8=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x4e76f8[_0x307159(0x313)]())!==this['unitID'])return;let _0x2bc031=this[_0x307159(0x257)][_0x307159(0x2e5)](f[_0x307159(0x397)])[_0x307159(0x31f)]();Array[_0x307159(0x2a9)](_0x2bc031)&&_0x2bc031[_0x307159(0x192)]>0x0&&this[_0x307159(0x2c9)](_0x2bc031);}['_toggleOffline'](){this['_online']=!0x1;}};N=w([C(0x2,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(A)),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x204)])),C(0x5,(0x0,n[_0x246bb0(0x1a6)])(M)),C(0x6,u['ITransformService']),C(0x7,n['IUniverInstanceService']),C(0x8,n['ICommandService'])],N);const ve=()=>{let _0xa7da24=[],_0xeb758e=!0x1;return _0xc8c17c=>{const _0x4a4a3f=_0x55a3;_0xa7da24[_0x4a4a3f(0x111)](_0xc8c17c),_0xeb758e||(_0xeb758e=!0x0,setTimeout(()=>{const _0x4b6250=_0x4a4a3f;_0xa7da24[_0x4b6250(0x34f)](_0x45b4c0=>_0x45b4c0()),_0xa7da24=[],_0xeb758e=!0x1;}));};};let P=class extends n[_0x246bb0(0x2db)]{get[_0x246bb0(0x30a)](){const _0x5e28b7=_0x246bb0;return this[_0x5e28b7(0x361)]['getValue']();}get[_0x246bb0(0x277)](){const _0x486150=_0x246bb0;return this[_0x486150(0x185)]['getValue']();}constructor(_0x48eb06,_0x2855f4,_0x3c0402,_0x15efb8,_0x38e463,_0x294d04,_0x18bd9a,_0x56d031){const _0x2f22ef=_0x246bb0;super(),this[_0x2f22ef(0x2a7)]=_0x48eb06,this[_0x2f22ef(0x3c6)]=_0x2855f4,this['_injector']=_0x3c0402,this[_0x2f22ef(0x147)]=_0x15efb8,this[_0x2f22ef(0x286)]=_0x38e463,this[_0x2f22ef(0x123)]=_0x294d04,this[_0x2f22ef(0x1e4)]=_0x18bd9a,this[_0x2f22ef(0x1ce)]=_0x56d031,S(this,_0x2f22ef(0xf4),!0x1),S(this,_0x2f22ef(0x244),!0x1),S(this,_0x2f22ef(0x361),new i[(_0x2f22ef(0x2b7))](new Map())),S(this,'cursorInfo$',this[_0x2f22ef(0x361)][_0x2f22ef(0x191)]()),S(this,_0x2f22ef(0x185),new i[(_0x2f22ef(0x2b7))]([])),S(this,_0x2f22ef(0x372),this[_0x2f22ef(0x185)][_0x2f22ef(0x319)]((0x0,i[_0x2f22ef(0x1f1)])(0x12c))),S(this,_0x2f22ef(0x2c9),(0x0,n[_0x2f22ef(0x225)])((_0x2a652a,_0x3f297b)=>{const _0x1e4068=_0x2f22ef;let _0x1bcf6e={'eventID':u[_0x1e4068(0x26a)][_0x1e4068(0x2d7)],'data':{'unitID':this[_0x1e4068(0x2a7)],'memberID':this[_0x1e4068(0x3c6)][_0x1e4068(0x262)](),'selection':(0x0,g[_0x1e4068(0x375)])(_0x2a652a,_0x3f297b[_0x1e4068(0x29c)])}};this[_0x1e4068(0x3c6)]['send'](_0x1bcf6e,this[_0x1e4068(0x2a7)]);},0x64));}[_0x246bb0(0x20f)](){const _0x1e09a1=_0x246bb0;super[_0x1e09a1(0x20f)](),this[_0x1e09a1(0x361)][_0x1e09a1(0x264)](new Map()),this[_0x1e09a1(0x361)]['complete'](),this[_0x1e09a1(0x185)][_0x1e09a1(0x264)]([]),this[_0x1e09a1(0x185)][_0x1e09a1(0x1b3)]();}[_0x246bb0(0x213)](){const _0x35e9cf=_0x246bb0;this[_0x35e9cf(0x244)]||(this['_init']=!0x0,this[_0x35e9cf(0x3c6)][_0x35e9cf(0x1ee)][_0x35e9cf(0x319)]((0x0,i[_0x35e9cf(0x119)])(this[_0x35e9cf(0x22c)]))[_0x35e9cf(0x173)](_0x1376b2=>{const _0x15892a=_0x35e9cf;_0x1376b2===t['SessionStatus'][_0x15892a(0x25e)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x35e9cf(0x3c6)][_0x35e9cf(0x1a3)][_0x35e9cf(0x319)]((0x0,i[_0x35e9cf(0x119)])(this['dispose$']))['subscribe'](_0x152fda=>{const _0x48d9de=_0x35e9cf;let _0x2528f1=_0x152fda[_0x48d9de(0x2ec)];_0x2528f1===u['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x48d9de(0x27d)](_0x152fda),_0x2528f1===u[_0x48d9de(0x26a)][_0x48d9de(0xfb)]&&this['_onCursorDelete'](_0x152fda);}),this[_0x35e9cf(0x2b1)](),this[_0x35e9cf(0x275)](this['_commandService']['onCommandExecuted'](_0x3525db=>{const _0x25c823=_0x35e9cf;if(this[_0x25c823(0xf4)]&&_0x3525db['id']===_['SetSelectionsOperation']['id']&&_0x3525db[_0x25c823(0xd0)][_0x25c823(0x193)]===this[_0x25c823(0x2a7)]){let _0x3cabcd=_0x3525db['params'];this[_0x25c823(0x2c9)](_0x3cabcd['subUnitId'],_0x3cabcd[_0x25c823(0x384)][0x0]);}})));}['_onCursorUpdate'](_0x4b6bee){const _0x142109=_0x246bb0;var _0x265f75;let {memberID:_0x212565,selection:_0xb9afe1}=_0x4b6bee[_0x142109(0x32a)],{sheetName:_0x4f6ef2,range:_0x25c12a}=(0x0,g[_0x142109(0x31d)])(_0xb9afe1),_0x4853cd={'name':((_0x265f75=this[_0x142109(0x286)][_0x142109(0x130)](this[_0x142109(0x2a7)],_0x212565))==null?void 0x0:_0x265f75['name'])??'Unknown\x20user','range':this[_0x142109(0x160)](_0x4f6ef2,_0x25c12a),'sheetID':_0x4f6ef2,'color':this['_colorAssignService'][_0x142109(0x17f)](_0x212565),'selection':_0xb9afe1},_0x11a3d4=this['cursorInfo'];_0x11a3d4[_0x142109(0x2f4)](_0x212565,_0x4853cd),this[_0x142109(0x361)][_0x142109(0x264)](_0x11a3d4);}['_onCursorDelete'](_0x57bbb8){const _0x37d202=_0x246bb0;let {memberID:_0xd5e4a3}=_0x57bbb8[_0x37d202(0x32a)],_0x2e1caa=this[_0x37d202(0x30a)];_0x2e1caa['delete'](_0xd5e4a3),this[_0x37d202(0x361)][_0x37d202(0x264)](_0x2e1caa);}[_0x246bb0(0x160)](_0x18b90b,_0x443481){const _0x53b280=_0x246bb0;var _0x38ca84;let _0x54629e=(_0x38ca84=this['_univerInstanceService']['getUnit'](this[_0x53b280(0x2a7)],n[_0x53b280(0xd2)]['UNIVER_SHEET']))==null||(_0x38ca84=_0x38ca84[_0x53b280(0x105)](_0x18b90b))==null?void 0x0:_0x38ca84[_0x53b280(0x221)]();return(_0x54629e==null?void 0x0:_0x54629e[_0x53b280(0x37a)](_0x17838d=>n['Rectangle'][_0x53b280(0x347)](_0x17838d,_0x443481)))||_0x443481;}[_0x246bb0(0x2b1)](){const _0x4fd703=_0x246bb0;let _0x444a66=new n[(_0x4fd703(0x219))](),_0x2bd6f2=ve(),_0x31ac71=()=>{const _0xceace4=_0x4fd703;_0x444a66[_0xceace4(0x20f)]();let _0x4e2157=(_0x76ca20,_0xe8f645,_0x4151b5,_0x417087)=>{const _0x1d97e3=_0xceace4;let _0x41c641=[];switch(_0x76ca20['id']){case _['EffectRefRangId'][_0x1d97e3(0x258)]:_0x41c641=(0x0,_[_0x1d97e3(0x394)])(_0x76ca20,_0x417087);break;case _['EffectRefRangId'][_0x1d97e3(0x1d0)]:_0x41c641=(0x0,_[_0x1d97e3(0xe7)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x33b)]:_0x41c641=(0x0,_['handleInsertCol'])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x217)]:_0x41c641=(0x0,_[_0x1d97e3(0x162)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x2ac)]:_0x41c641=(0x0,_[_0x1d97e3(0x165)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)]['InsertRowCommandId']:_0x41c641=(0x0,_[_0x1d97e3(0x239)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x3b6)]:_0x41c641=(0x0,_[_0x1d97e3(0x163)])(_0x76ca20,_0x417087);break;case _[_0x1d97e3(0x38b)][_0x1d97e3(0x2f9)]:_0x41c641=(0x0,_[_0x1d97e3(0x272)])(_0x76ca20,_0x417087);break;case _['EffectRefRangId'][_0x1d97e3(0xf0)]:_0x41c641=(0x0,_['handleIRemoveRow'])(_0x76ca20,_0x417087);break;}let _0x44b6e8=(0x0,_[_0x1d97e3(0x189)])(_0x41c641,_0x417087),_0x3c01b5=this[_0x1d97e3(0x30a)][_0x1d97e3(0x2e5)](_0xe8f645);if(_0x3c01b5&&_0x44b6e8){let _0x419fb1={..._0x3c01b5,'range':_0x44b6e8};this[_0x1d97e3(0x30a)][_0x1d97e3(0x2f4)](_0xe8f645,_0x419fb1),_0x2bd6f2(()=>{const _0x586b3e=_0x1d97e3;let _0x29f14c=this[_0x586b3e(0x1ce)][_0x586b3e(0x220)](_0x44b6e8,_0x1fea5a=>(_0x29f14c[_0x586b3e(0x20f)](),_0x4e2157(_0x1fea5a,_0xe8f645,_0x4151b5,_0x44b6e8)));_0x444a66[_0x586b3e(0x346)](_0x29f14c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xceace4(0x34f)]((_0x426da2,_0xc58752)=>{const _0x470534=_0xceace4;let {range:_0xe314ef,sheetID:_0x3eaa34}=_0x426da2,_0x2193d1=this[_0x470534(0x1ce)][_0x470534(0x220)](_0xe314ef,_0x4a5d16=>(_0x2193d1[_0x470534(0x20f)](),_0x4e2157(_0x4a5d16,_0xc58752,_0x3eaa34,_0xe314ef)));_0x444a66['add'](_0x2193d1);});};this['disposeWithMe']((0x0,n['toDisposable'])(this[_0x4fd703(0x361)][_0x4fd703(0x173)](()=>{_0x31ac71();})));}[_0x246bb0(0x274)](){const _0x5f47e9=_0x246bb0;var _0x4aa7a2,_0x30e5af;if(this[_0x5f47e9(0xf4)]=!0x0,((_0x4aa7a2=this['_univerInstanceService'][_0x5f47e9(0x30d)]())==null?void 0x0:_0x4aa7a2[_0x5f47e9(0x313)]())!==this[_0x5f47e9(0x2a7)])return;let _0x3b641e=(_0x30e5af=this[_0x5f47e9(0x257)][_0x5f47e9(0x2e5)](_[_0x5f47e9(0x378)])['getCurrentSelections']())==null?void 0x0:_0x30e5af[0x0],_0xa2b9dc=this[_0x5f47e9(0x123)][_0x5f47e9(0x12c)](n[_0x5f47e9(0xd2)][_0x5f47e9(0x1e6)])['getActiveSheet']();_0x3b641e&&_0xa2b9dc&&this[_0x5f47e9(0x2c9)](_0xa2b9dc[_0x5f47e9(0x240)](),_0x3b641e);}[_0x246bb0(0x1c4)](){this['_online']=!0x1;}};P=w([C(0x2,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(A)),C(0x4,(0x0,n['Inject'])(t[_0x246bb0(0x204)])),C(0x5,n['IUniverInstanceService']),C(0x6,n['ICommandService']),C(0x7,(0x0,n[_0x246bb0(0x1a6)])(_['RefRangeService']))],P);function ye(_0x32d1fa){const _0x2cd5db=_0x246bb0;let _0x115e3f;try{_0x115e3f=JSON[_0x2cd5db(0x1ab)](_0x32d1fa);}catch{return null;}if(typeof _0x115e3f!=_0x2cd5db(0x14d)||!_0x115e3f)return null;let _0x48e25b=_0x115e3f;if(_0x48e25b['kind']!==_0x2cd5db(0x1df)||typeof _0x48e25b[_0x2cd5db(0x193)]!=_0x2cd5db(0x227)||typeof _0x48e25b['subUnitId']!=_0x2cd5db(0x227))return null;let _0x3678df=Array[_0x2cd5db(0x2a9)](_0x48e25b[_0x2cd5db(0x21d)])?_0x48e25b[_0x2cd5db(0x21d)][_0x2cd5db(0x18a)](_0x5ed87d=>typeof _0x5ed87d==_0x2cd5db(0x227)):[],_0x248c3c=typeof _0x48e25b[_0x2cd5db(0x16e)]=='string'?_0x48e25b[_0x2cd5db(0x16e)]:null;return{'kind':_0x2cd5db(0x1df),'unitId':_0x48e25b[_0x2cd5db(0x193)],'subUnitId':_0x48e25b[_0x2cd5db(0x3bc)],'selectedIds':_0x3678df,'focusedId':_0x248c3c};}let F=class extends n[_0x246bb0(0x2db)]{get['cursorInfo'](){const _0x46687a=_0x246bb0;return this[_0x46687a(0x361)][_0x46687a(0x288)]();}get[_0x246bb0(0x277)](){const _0x164080=_0x246bb0;return this[_0x164080(0x185)][_0x164080(0x288)]();}constructor(_0x55a2d3,_0x2d38a0,_0x1e8674,_0x25ac81,_0x287fb3){const _0x3d562c=_0x246bb0;super(),this[_0x3d562c(0x2a7)]=_0x55a2d3,this['_session']=_0x2d38a0,this[_0x3d562c(0x147)]=_0x1e8674,this[_0x3d562c(0x286)]=_0x25ac81,this[_0x3d562c(0x203)]=_0x287fb3,S(this,_0x3d562c(0xf4),!0x1),S(this,_0x3d562c(0x244),!0x1),S(this,_0x3d562c(0x361),new i[(_0x3d562c(0x2b7))](new Map())),S(this,_0x3d562c(0x27b),this[_0x3d562c(0x361)][_0x3d562c(0x191)]()),S(this,_0x3d562c(0x185),new i[(_0x3d562c(0x2b7))]([])),S(this,'roomMembers$',this[_0x3d562c(0x185)]['pipe']((0x0,i[_0x3d562c(0x1f1)])(0x12c))),S(this,'_updateLocalCursor',(0x0,n[_0x3d562c(0x225)])(_0x4bdb6d=>{const _0x4b01a9=_0x3d562c;let _0xc17d41=_0x4bdb6d[_0x4b01a9(0x2c5)];if(!_0xc17d41||_0xc17d41[_0x4b01a9(0x193)]!==this[_0x4b01a9(0x2a7)])return;let _0x4bf3a1={'kind':_0x4b01a9(0x1df),'unitId':_0xc17d41[_0x4b01a9(0x193)],'subUnitId':_0xc17d41[_0x4b01a9(0x3bc)],'selectedIds':_0x4bdb6d['selectedIds']['filter'](_0x484f94=>typeof _0x484f94==_0x4b01a9(0x227)),'focusedId':_0x4bdb6d[_0x4b01a9(0x16e)]},_0x35f39e={'eventID':u[_0x4b01a9(0x26a)][_0x4b01a9(0x2d7)],'data':{'unitID':this[_0x4b01a9(0x2a7)],'memberID':this[_0x4b01a9(0x3c6)]['getMemberID'](),'selection':JSON[_0x4b01a9(0x146)](_0x4bf3a1)}};this['_session'][_0x4b01a9(0x207)](_0x35f39e,this['unitID']);},0x64));}[_0x246bb0(0x20f)](){const _0x23cda1=_0x246bb0;super[_0x23cda1(0x20f)](),this[_0x23cda1(0x361)][_0x23cda1(0x264)](new Map()),this[_0x23cda1(0x361)][_0x23cda1(0x1b3)](),this[_0x23cda1(0x185)][_0x23cda1(0x264)]([]),this['_roomMembers$'][_0x23cda1(0x1b3)]();}['init'](){const _0x1b98c2=_0x246bb0;this[_0x1b98c2(0x244)]||(this['_init']=!0x0,this[_0x1b98c2(0x3c6)][_0x1b98c2(0x1ee)][_0x1b98c2(0x319)]((0x0,i['takeUntil'])(this[_0x1b98c2(0x22c)]))[_0x1b98c2(0x173)](_0x5d80f6=>{const _0x13f43a=_0x1b98c2;_0x5d80f6===t['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x13f43a(0x1c4)]();}),this[_0x1b98c2(0x3c6)][_0x1b98c2(0x1a3)]['pipe']((0x0,i[_0x1b98c2(0x119)])(this[_0x1b98c2(0x22c)]))[_0x1b98c2(0x173)](_0x12d1b2=>{const _0x53805f=_0x1b98c2;let _0x1bee4a=_0x12d1b2[_0x53805f(0x2ec)];_0x1bee4a===u[_0x53805f(0x26a)]['UPDATE_CURSOR']&&this[_0x53805f(0x27d)](_0x12d1b2),_0x1bee4a===u['CollaborationEvent']['USERS_LEAVE']&&this['_onCursorDelete'](_0x12d1b2);}),this[_0x1b98c2(0x203)][_0x1b98c2(0x323)][_0x1b98c2(0x319)]((0x0,i[_0x1b98c2(0x119)])(this[_0x1b98c2(0x22c)]))[_0x1b98c2(0x173)](_0x460208=>{const _0xa0b181=_0x1b98c2;this[_0xa0b181(0xf4)]&&this[_0xa0b181(0x2c9)](_0x460208);}));}[_0x246bb0(0x27d)](_0x13e6f2){const _0x550087=_0x246bb0;var _0x32375f,_0x5ac24c,_0x383a98;let {memberID:_0x22d67d,selection:_0x7e384b}=_0x13e6f2[_0x550087(0x32a)];if(_0x22d67d===((_0x32375f=(_0x5ac24c=this[_0x550087(0x3c6)])[_0x550087(0x262)])==null?void 0x0:_0x32375f['call'](_0x5ac24c)))return;let _0x1e1251=ye(_0x7e384b);if(!_0x1e1251||_0x1e1251[_0x550087(0x193)]!==this['unitID'])return;let _0x465175=((_0x383a98=this[_0x550087(0x286)][_0x550087(0x130)](this[_0x550087(0x2a7)],_0x22d67d))==null?void 0x0:_0x383a98[_0x550087(0x21e)])??_0x550087(0x197),_0x1d1bd2={'color':this[_0x550087(0x147)][_0x550087(0x17f)](_0x22d67d),'name':_0x465175,'unitId':_0x1e1251[_0x550087(0x193)],'subUnitId':_0x1e1251['subUnitId'],'selectedIds':_0x1e1251[_0x550087(0x21d)],'focusedId':_0x1e1251[_0x550087(0x16e)],'selection':_0x7e384b},_0x137264=new Map(this[_0x550087(0x30a)]);_0x137264[_0x550087(0x2f4)](_0x22d67d,_0x1d1bd2),this[_0x550087(0x361)][_0x550087(0x264)](_0x137264);}[_0x246bb0(0xec)](_0x2ef6b8){const _0x16f41f=_0x246bb0;let {memberID:_0x113ce0}=_0x2ef6b8[_0x16f41f(0x32a)],_0x3402e7=new Map(this[_0x16f41f(0x30a)]);_0x3402e7[_0x16f41f(0x296)](_0x113ce0),this[_0x16f41f(0x361)][_0x16f41f(0x264)](_0x3402e7);}[_0x246bb0(0x274)](){const _0x3a8d77=_0x246bb0;this['_online']=!0x0,this[_0x3a8d77(0x2c9)](this[_0x3a8d77(0x203)]['getSnapshot']());}['_toggleOffline'](){const _0x42df83=_0x246bb0;this[_0x42df83(0xf4)]=!0x1;}};F=w([C(0x2,(0x0,n[_0x246bb0(0x1a6)])(A)),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x204)])),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(v[_0x246bb0(0x13a)]))],F);let I=class extends n[_0x246bb0(0x2db)]{constructor(_0x261c5e,_0x145fd4,_0x181e2d){const _0x55d6c4=_0x246bb0;super(),this[_0x55d6c4(0x123)]=_0x261c5e,this['_injector']=_0x145fd4,this[_0x55d6c4(0x307)]=_0x181e2d,S(this,_0x55d6c4(0x3bd),new Map()),S(this,_0x55d6c4(0x224),new i[(_0x55d6c4(0x2f6))]()),this[_0x55d6c4(0x244)]();}[_0x246bb0(0x20f)](){const _0x4df186=_0x246bb0;super[_0x4df186(0x20f)](),this['_entityInit$']['complete'](),this[_0x4df186(0x3bd)][_0x4df186(0x34f)](_0x12daa0=>_0x12daa0[_0x4df186(0x20f)]());}['getCollabCursors$'](_0x10e0cd){const _0xa285a8=_0x246bb0;return this[_0xa285a8(0x3bd)][_0xa285a8(0x2eb)](_0x10e0cd)?this[_0xa285a8(0x3bd)][_0xa285a8(0x2e5)](_0x10e0cd)['cursorInfo$']:this['_entityInit$'][_0xa285a8(0x319)]((0x0,i[_0xa285a8(0x18a)])(_0x1ab93a=>_0x1ab93a['unitID']===_0x10e0cd),(0x0,i[_0xa285a8(0x283)])(_0x2576cf=>_0x2576cf['cursorInfo$']));}[_0x246bb0(0x244)](){const _0x2e93ce=_0x246bb0;this['_univerInstanceService'][_0x2e93ce(0x14e)](n[_0x2e93ce(0xd2)][_0x2e93ce(0x1e6)])[_0x2e93ce(0x319)]((0x0,i[_0x2e93ce(0x119)])(this[_0x2e93ce(0x22c)]))[_0x2e93ce(0x173)](async _0x2a7ea9=>{const _0x11ba3c=_0x2e93ce;let _0x599809=_0x2a7ea9['unit'][_0x11ba3c(0x313)](),_0x56cf99=await this['_startSheetCollabCursor'](_0x599809);this[_0x11ba3c(0x224)][_0x11ba3c(0x264)](_0x56cf99),this[_0x11ba3c(0x3bd)]['set'](_0x599809,_0x56cf99);}),this[_0x2e93ce(0x123)]['getTypeOfUnitAdded$'](n[_0x2e93ce(0xd2)]['UNIVER_DOC'])['pipe']((0x0,i['takeUntil'])(this['dispose$']))[_0x2e93ce(0x319)]((0x0,i[_0x2e93ce(0x18a)])(_0x8ba82f=>!_0x8ba82f[_0x2e93ce(0x35a)]['getUnitId']()[_0x2e93ce(0x22b)]('__')))['subscribe'](async _0x387d56=>{const _0x382831=_0x2e93ce;let {unit:_0x3c414e}=_0x387d56,_0x485d87=_0x3c414e[_0x382831(0x313)](),_0x28728c=await this[_0x382831(0x254)](_0x485d87);this[_0x382831(0x224)][_0x382831(0x264)](_0x28728c),this[_0x382831(0x3bd)][_0x382831(0x2f4)](_0x485d87,_0x28728c);}),this[_0x2e93ce(0x123)]['getTypeOfUnitAdded$'](n['UniverInstanceType']['UNIVER_SLIDE'])[_0x2e93ce(0x319)]((0x0,i['takeUntil'])(this[_0x2e93ce(0x22c)]))[_0x2e93ce(0x173)](async _0x2f0a84=>{const _0x245bc4=_0x2e93ce;let _0x1c15b6=_0x2f0a84[_0x245bc4(0x35a)][_0x245bc4(0x313)](),_0x16d643=await this['_startSlideCollabCursor'](_0x1c15b6);this['_entityInit$'][_0x245bc4(0x264)](_0x16d643),this[_0x245bc4(0x3bd)][_0x245bc4(0x2f4)](_0x1c15b6,_0x16d643);}),this[_0x2e93ce(0x123)]['getTypeOfUnitAdded$'](n['UniverInstanceType'][_0x2e93ce(0x291)])['pipe']((0x0,i[_0x2e93ce(0x119)])(this[_0x2e93ce(0x22c)]))[_0x2e93ce(0x173)](async _0x2a70ba=>{const _0x43d90c=_0x2e93ce;let _0x427c4a=_0x2a70ba[_0x43d90c(0x35a)]['getUnitId'](),_0x3361c7=await this['_startBoardCollabCursor'](_0x427c4a);this[_0x43d90c(0x224)][_0x43d90c(0x264)](_0x3361c7),this['_entities'][_0x43d90c(0x2f4)](_0x427c4a,_0x3361c7);}),(0x0,i['merge'])(this[_0x2e93ce(0x123)][_0x2e93ce(0x2b6)](n[_0x2e93ce(0xd2)][_0x2e93ce(0x1cd)]),this[_0x2e93ce(0x123)][_0x2e93ce(0x2b6)](n[_0x2e93ce(0xd2)][_0x2e93ce(0x1e6)]),this[_0x2e93ce(0x123)][_0x2e93ce(0x2b6)](n[_0x2e93ce(0xd2)][_0x2e93ce(0x131)]),this[_0x2e93ce(0x123)][_0x2e93ce(0x2b6)](n[_0x2e93ce(0xd2)]['UNIVER_BOARD']))['pipe']((0x0,i[_0x2e93ce(0x119)])(this['dispose$']))[_0x2e93ce(0x173)](_0x5f266=>{const _0x50c1ec=_0x2e93ce;let _0x4ea1ae=_0x5f266[_0x50c1ec(0x313)](),_0x31138e=this['_entities'][_0x50c1ec(0x2e5)](_0x4ea1ae);_0x31138e&&(_0x31138e[_0x50c1ec(0x20f)](),this['_entities'][_0x50c1ec(0x296)](_0x4ea1ae));});}async['_startSheetCollabCursor'](_0x860822){const _0x58f10b=_0x246bb0;let _0x30ac7e=await this[_0x58f10b(0x307)][_0x58f10b(0x330)](_0x860822),_0x292033=this[_0x58f10b(0x257)][_0x58f10b(0x383)](P,_0x860822,_0x30ac7e);return _0x292033[_0x58f10b(0x213)](),_0x292033;}async[_0x246bb0(0x254)](_0x1be226){const _0x22b5f6=_0x246bb0;let _0x3acaa8=await this[_0x22b5f6(0x307)]['requireSession'](_0x1be226),_0x5dc8e6=this[_0x22b5f6(0x257)][_0x22b5f6(0x383)](N,_0x1be226,_0x3acaa8);return _0x5dc8e6[_0x22b5f6(0x213)](),_0x5dc8e6;}async[_0x246bb0(0x23f)](_0x179509){const _0x36cf08=_0x246bb0;let _0x57be5a=await this['_collabSessionService'][_0x36cf08(0x330)](_0x179509),_0x45e347=this[_0x36cf08(0x257)]['createInstance'](F,_0x179509,_0x57be5a);return _0x45e347[_0x36cf08(0x213)](),_0x45e347;}async[_0x246bb0(0x1cc)](_0x12ff7c){const _0x3f3098=_0x246bb0;let _0x5cd1ab=await this[_0x3f3098(0x307)][_0x3f3098(0x330)](_0x12ff7c),_0x506428=this[_0x3f3098(0x257)][_0x3f3098(0x383)](j,_0x12ff7c,_0x5cd1ab);return _0x506428[_0x3f3098(0x213)](),_0x506428;}};I=w([C(0x0,n[_0x246bb0(0x324)]),C(0x1,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x2d9)]))],I);let L=class extends n[_0x246bb0(0x2db)]{constructor(_0x4c5b55,_0x2f5c38,_0xc4e5d2){const _0x1e772d=_0x246bb0;super(),this[_0x1e772d(0x14f)]=_0x4c5b55,this['_collabCursorController']=_0x2f5c38,this[_0x1e772d(0x1aa)]=_0xc4e5d2,S(this,'_cursors',new Set()),S(this,_0x1e772d(0x1e7),!0x1),S(this,_0x1e772d(0x36e),!0x1),S(this,'_latestCursors',new Map()),this[_0x1e772d(0x244)]();}['dispose'](){this['_removeCollabCursors'](),super['dispose']();}[_0x246bb0(0x244)](){const _0x646daa=_0x246bb0;let _0x38033b=this[_0x646daa(0x218)][_0x646daa(0x2a2)](this[_0x646daa(0x14f)]['unitId']);this[_0x646daa(0x275)]((0x0,n[_0x646daa(0x168)])((0x0,i['combineLatest'])([_0x38033b,this[_0x646daa(0x14f)][_0x646daa(0x35a)]['theme$'],this['_themeService'][_0x646daa(0x112)]])[_0x646daa(0x319)]((0x0,i[_0x646daa(0x119)])(this[_0x646daa(0x22c)]))[_0x646daa(0x173)](([_0x1eb6d2])=>{const _0xfeabcb=_0x646daa;let _0x50cd79=this[_0xfeabcb(0x14f)]['unit'][_0xfeabcb(0x2d2)](),_0x3b89b6=new Map();_0x1eb6d2['forEach']((_0x35a7df,_0x73af99)=>{const _0x456ae1=_0xfeabcb;_0x35a7df[_0x456ae1(0x3bc)]===_0x50cd79&&_0x3b89b6[_0x456ae1(0x2f4)](_0x73af99,{..._0x35a7df,'color':this[_0x456ae1(0x1aa)][_0x456ae1(0x21f)](_0x35a7df['color'])});}),this[_0xfeabcb(0xce)]=_0x3b89b6,this['_scheduleRender']();})));let _0x23019b=this[_0x646daa(0x14f)][_0x646daa(0x17b)];this[_0x646daa(0x275)]((0x0,n[_0x646daa(0x168)])(_0x23019b[_0x646daa(0x206)][_0x646daa(0x319)]((0x0,i[_0x646daa(0x119)])(this['dispose$']))[_0x646daa(0x173)](()=>{const _0x31beaf=_0x646daa;this[_0x31beaf(0x36e)]||this[_0x31beaf(0x32c)]();})));}['_scheduleRender'](){const _0x282eaf=_0x246bb0;this['_renderScheduled']||(this[_0x282eaf(0x1e7)]=!0x0,Promise['resolve']()[_0x282eaf(0x27e)](()=>{const _0x422226=_0x282eaf;this[_0x422226(0x1e7)]=!0x1,this[_0x422226(0x1a0)]();}));}[_0x246bb0(0x1a0)](){const _0x5bf401=_0x246bb0;this['_removeCollabCursors']();let _0x572891=this[_0x5bf401(0x14f)][_0x5bf401(0x35a)][_0x5bf401(0x2d2)](),_0x49b8aa=[];if(this['_latestCursors'][_0x5bf401(0x34f)]((_0x45b589,_0x39584f)=>{const _0x25fd30=_0x5bf401;_0x45b589['subUnitId']===_0x572891&&_0x45b589[_0x25fd30(0x21d)]['forEach'](_0x41df21=>{const _0x5bc7e1=_0x25fd30;let _0x329e66=(0x0,e['getBoardElementRenderObjectKey'])(_0x45b589[_0x5bc7e1(0x193)],_0x41df21),_0x243d16=this['_getSceneObjectByKey'](_0x329e66);if(!_0x243d16)return;let _0x38ca25=this[_0x5bc7e1(0x3c9)](_0x243d16);_0x49b8aa[_0x5bc7e1(0x111)](new pe(_0x5bc7e1(0x24a)+_0x39584f+'-'+_0x41df21,{..._0x45b589,'left':_0x38ca25[_0x5bc7e1(0x33c)],'top':_0x38ca25['top'],'width':_0x38ca25[_0x5bc7e1(0x1b2)],'height':_0x38ca25['height'],'angle':_0x243d16[_0x5bc7e1(0x10d)],'evented':!0x1,'zIndex':k}));});}),_0x49b8aa[_0x5bf401(0x192)]===0x0){this[_0x5bf401(0x14f)][_0x5bf401(0x17b)]['makeDirty'](!0x0);return;}this[_0x5bf401(0x36e)]=!0x0,this[_0x5bf401(0x14f)][_0x5bf401(0x17b)]['addObjects'](_0x49b8aa,k),this[_0x5bf401(0x36e)]=!0x1,this[_0x5bf401(0xe0)]=new Set(_0x49b8aa),this[_0x5bf401(0x14f)][_0x5bf401(0x17b)][_0x5bf401(0x210)](!0x0);}[_0x246bb0(0x3ae)](){const _0x7cc58e=_0x246bb0;let _0x37050a=Array['from'](this[_0x7cc58e(0xe0)]);if(_0x37050a['length']===0x0)return;let _0x16ddc=this['_context'][_0x7cc58e(0x17b)];_0x7cc58e(0x358)in _0x16ddc&&typeof _0x16ddc[_0x7cc58e(0x358)]==_0x7cc58e(0x2c7)?_0x16ddc[_0x7cc58e(0x358)](_0x37050a):_0x37050a['forEach'](_0x23276a=>{const _0x10b713=_0x7cc58e;_0x10b713(0xe3)in _0x16ddc&&typeof _0x16ddc[_0x10b713(0xe3)]==_0x10b713(0x2c7)?_0x16ddc[_0x10b713(0xe3)](_0x23276a):_0x23276a[_0x10b713(0x20f)]();}),this[_0x7cc58e(0xe0)][_0x7cc58e(0x299)](),_0x16ddc[_0x7cc58e(0x210)](!0x0);}[_0x246bb0(0x3ac)](_0x146cf2){const _0x36fbca=_0x246bb0;var _0x500265;let _0x3531b9=this[_0x36fbca(0x14f)][_0x36fbca(0x17b)];return((_0x500265=_0x3531b9[_0x36fbca(0x247)])==null?void 0x0:_0x500265['call'](_0x3531b9,_0x146cf2))??_0x3531b9[_0x36fbca(0x28c)](_0x146cf2)??null;}[_0x246bb0(0x3c9)](_0x6274b9){const _0x3cde59=_0x246bb0;var _0x2ac06e;let _0x5cbe42=_0x6274b9;return((_0x2ac06e=_0x5cbe42[_0x3cde59(0x1da)])==null?void 0x0:_0x2ac06e[_0x3cde59(0x2b2)](_0x5cbe42))??{'left':_0x6274b9[_0x3cde59(0x33c)],'top':_0x6274b9[_0x3cde59(0x2f5)],'width':_0x6274b9[_0x3cde59(0x1b2)],'height':_0x6274b9['height']};}};L=w([C(0x1,(0x0,n[_0x246bb0(0x1a6)])(I)),C(0x2,(0x0,n['Inject'])(n['ThemeService']))],L);const R=_0x246bb0(0x1e8);var be=class{constructor(_0x40b920,_0x277fe5,_0x19d010,_0x28d868){const _0x2851da=_0x246bb0;this[_0x2851da(0x2e9)]=_0x40b920,this[_0x2851da(0x101)]=_0x277fe5,this['_docSkeleton']=_0x19d010,this[_0x2851da(0x222)]=_0x28d868,S(this,_0x2851da(0x340),[]),S(this,'_anchor',null),S(this,_0x2851da(0x179),null),S(this,_0x2851da(0x26b),null),S(this,_0x2851da(0x3c8),null),S(this,_0x2851da(0x334),null),this[_0x2851da(0x1a0)]();}set[_0x246bb0(0x1a7)](_0x2ff124){const _0x47e4fb=_0x246bb0;_0x2ff124?(this['_anchorDot']&&this[_0x47e4fb(0x26b)][_0x47e4fb(0x1b4)](),this[_0x47e4fb(0x179)]&&this[_0x47e4fb(0x179)][_0x47e4fb(0x2fe)]()):(this[_0x47e4fb(0x26b)]&&this[_0x47e4fb(0x26b)][_0x47e4fb(0x2fe)](),this[_0x47e4fb(0x179)]&&this[_0x47e4fb(0x179)][_0x47e4fb(0x1b4)]());}[_0x246bb0(0x20f)](){const _0x3a78b2=_0x246bb0;for(let _0x6c3c4c of this['_shapes'])_0x6c3c4c['dispose']();this[_0x3a78b2(0x179)]&&this[_0x3a78b2(0x179)][_0x3a78b2(0x20f)](),this['_anchorDot']&&this[_0x3a78b2(0x26b)][_0x3a78b2(0x20f)](),this[_0x3a78b2(0x370)]&&this[_0x3a78b2(0x370)][_0x3a78b2(0x20f)](),this['_eventUnsubscribe']&&this[_0x3a78b2(0x334)]();}[_0x246bb0(0x1a0)](){const _0x29097d=_0x246bb0;let {_docSkeleton:_0x1c0634,_document:_0x2ee77}=this,{color:_0x1dca28,name:_0x4c16b1,ranges:_0x47fdd5}=this['_cursor'],_0x23ad77=_0x2ee77['getOffsetConfig'](),{docsLeft:_0x1c5cd3,docsTop:_0x485906}=_0x23ad77,_0x231c9d=new p[(_0x29097d(0x1d6))](_0x23ad77,_0x1c0634);for(let {startOffset:_0x10c3bb,endOffset:_0x273a9f,rangeType:_0x516fd4,segmentId:_0x5bd8fe,segmentPage:_0x5991da,collapsed:_0x1f1507,isActive:_0x55ca6e}of _0x47fdd5){let _0x362a0d=_0x1c0634[_0x29097d(0x161)](_0x10c3bb,!0x0,_0x5bd8fe,_0x5991da),_0x2b0634=_0x1c0634[_0x29097d(0x161)](_0x273a9f,!0x0,_0x5bd8fe,_0x5991da);if(_0x2b0634??=_0x1c0634[_0x29097d(0x161)](_0x273a9f-0x1,!0x1,_0x5bd8fe,_0x5991da),_0x55ca6e){let {contentBoxPointGroup:_0x5040c7}=_0x231c9d['getRangePointData'](_0x2b0634,_0x2b0634);if(_0x5040c7[_0x29097d(0x192)]===0x0)continue;this[_0x29097d(0x10a)](_0x1dca28,_0x5040c7,_0x1c5cd3,_0x485906,_0x4c16b1),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x362a0d&&_0x2b0634){if(_0x516fd4===n[_0x29097d(0x237)][_0x29097d(0x2c3)]){let {pointGroup:_0x124970}=new p[(_0x29097d(0x1c3))](_0x23ad77,_0x1c0634)[_0x29097d(0x2c6)](_0x362a0d,_0x2b0634)??{};if(_0x124970==null||_0x124970[_0x29097d(0x192)]===0x0)continue;this[_0x29097d(0x1bb)](_0x1dca28,_0x124970,_0x1c5cd3,_0x485906);}else{if(!_0x1f1507){let {borderBoxPointGroup:_0x10971e}=_0x231c9d['getRangePointData'](_0x362a0d,_0x2b0634);if(_0x10971e[_0x29097d(0x192)]===0x0)continue;this['_drawTextRange'](_0x1dca28,_0x10971e,_0x1c5cd3,_0x485906);}}}}}[_0x246bb0(0x10a)](_0x101a6f,_0x1ac5ec,_0x2c693e,_0x271ee5,_0x464df3){const _0x4b692b=_0x246bb0;let {left:_0x43519,top:_0x5217f9,height:_0x371e3d}=this[_0x4b692b(0x3cd)](_0x1ac5ec),_0x2e61a4=1.5/this[_0x4b692b(0x1bc)](),_0x53729c=new m[(_0x4b692b(0x362))](R+(0x0,n[_0x4b692b(0x16f)])(0x6),{'left':_0x43519+_0x2c693e-_0x2e61a4,'top':_0x5217f9+_0x271ee5,'height':_0x371e3d,'width':1.5,'fill':_0x101a6f||(0x0,m[_0x4b692b(0x1d8)])(n['COLORS']['black'],0x0),'strokeWidth':_0x2e61a4,'stroke':'rgba(255,\x20255,\x20255,\x200.01)','evented':!0x0});this[_0x4b692b(0x370)]=_0x53729c,this[_0x4b692b(0x101)][_0x4b692b(0x11d)](_0x53729c,p[_0x4b692b(0x261)]);let _0x2a5bdf=new m[(_0x4b692b(0x362))](R+(0x0,n['generateRandomId'])(0x6),{'left':_0x43519+_0x2c693e-_0x2e61a4,'top':_0x5217f9+_0x271ee5-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x101a6f||(0x0,m[_0x4b692b(0x1d8)])(n[_0x4b692b(0x194)][_0x4b692b(0x338)],0x0),'strokeWidth':0x0,'stroke':_0x101a6f||(0x0,m[_0x4b692b(0x1d8)])(n[_0x4b692b(0x194)][_0x4b692b(0x338)],0x0),'evented':!0x1});this['_anchorDot']=_0x2a5bdf,this[_0x4b692b(0x101)]['addObject'](_0x2a5bdf,p['TEXT_RANGE_LAYER_INDEX']);let _0x17fdd6=new O(R+(0x0,n[_0x4b692b(0x16f)])(0x6),{'left':_0x43519+_0x2c693e-_0x2e61a4,'top':_0x5217f9+_0x271ee5-0x14,'text':_0x464df3,'color':_0x101a6f});this['_textBubble']=_0x17fdd6,this[_0x4b692b(0x101)][_0x4b692b(0x11d)](_0x17fdd6,p[_0x4b692b(0x261)]),this[_0x4b692b(0x1a7)]=!0x1;}['_handleHover'](){const _0x1cbb0e=_0x246bb0;let _0x5e181f=this['_anchor']['onPointerEnter$'][_0x1cbb0e(0x293)](()=>{const _0x5c6652=_0x1cbb0e;this[_0x5c6652(0x1a7)]=!0x0;}),_0x40a79b=this[_0x1cbb0e(0x370)][_0x1cbb0e(0x172)]['subscribeEvent'](()=>{const _0x461e06=_0x1cbb0e;this[_0x461e06(0x3c8)]&&clearTimeout(this[_0x461e06(0x3c8)]),this['_hideTimer']=setTimeout(()=>{const _0x48f83f=_0x461e06;this[_0x48f83f(0x1a7)]=!0x1;},0x7d0);});return()=>{const _0x321cd4=_0x1cbb0e;_0x5e181f[_0x321cd4(0x366)](),_0x40a79b[_0x321cd4(0x366)]();};}['_drawTextRange'](_0x39baaf,_0x514952,_0x322787,_0x101ac9){const _0x1d5b29=_0x246bb0;let _0x4f9017=0.2,_0x5ceef8=new n[(_0x1d5b29(0xed))](_0x39baaf)[_0x1d5b29(0x325)](_0x4f9017)['toRgbString'](),_0x42cd6b=new m[(_0x1d5b29(0x135))](_0x1d5b29(0x1a1)+(0x0,n[_0x1d5b29(0x16f)])(0x6),{'pointsGroup':_0x514952,'fill':_0x5ceef8||(0x0,m['getColor'])(n['COLORS'][_0x1d5b29(0x338)],_0x4f9017),'left':_0x322787,'top':_0x101ac9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1d5b29(0x111)](_0x42cd6b),this[_0x1d5b29(0x101)][_0x1d5b29(0x11d)](_0x42cd6b,p['TEXT_RANGE_LAYER_INDEX']);}[_0x246bb0(0x1bb)](_0x16b0f6,_0x40526c,_0x458579,_0x43d186){const _0x1c35f7=_0x246bb0;let _0x458780=0.2,_0x3654ee=new n[(_0x1c35f7(0xed))](_0x16b0f6)['setAlpha'](_0x458780)[_0x1c35f7(0x181)](),_0x1b53d7=new m[(_0x1c35f7(0x135))](_0x1c35f7(0xca)+(0x0,n[_0x1c35f7(0x16f)])(0x6),{'pointsGroup':_0x40526c,'fill':_0x3654ee||(0x0,m[_0x1c35f7(0x1d8)])(n[_0x1c35f7(0x194)]['black'],_0x458780),'left':_0x458579,'top':_0x43d186,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1c35f7(0x340)][_0x1c35f7(0x111)](_0x1b53d7),this['_scene'][_0x1c35f7(0x11d)](_0x1b53d7,p[_0x1c35f7(0x261)]);}[_0x246bb0(0x3cd)](_0x3b99e0){let _0x18ef0f=_0x3b99e0[0x0],_0x1f213e=_0x18ef0f[0x0],_0x304340=_0x18ef0f[0x2],{x:_0x176ec2,y:_0x3677c1}=_0x1f213e,{x:_0x216d15,y:_0x3a88e0}=_0x304340;return{'left':_0x176ec2,'top':_0x3677c1,'width':_0x216d15-_0x176ec2,'height':_0x3a88e0-_0x3677c1};}[_0x246bb0(0x1bc)](){const _0x53d739=_0x246bb0;let {scaleX:_0x44dec1,scaleY:_0x4edc74}=this[_0x53d739(0x101)][_0x53d739(0xfa)]();return Math['max'](_0x44dec1,_0x4edc74);}};let z=class extends n[_0x246bb0(0x2db)]{constructor(_0x52b842,_0x1b919e,_0x153183,_0x3d05c0,_0x408795){const _0x53490c=_0x246bb0;super(),this[_0x53490c(0x14f)]=_0x52b842,this[_0x53490c(0xfd)]=_0x1b919e,this[_0x53490c(0x218)]=_0x153183,this['_commandService']=_0x3d05c0,this[_0x53490c(0x1aa)]=_0x408795,S(this,_0x53490c(0x385),[]),S(this,_0x53490c(0xe0),[]),this[_0x53490c(0x244)]();}['_init'](){const _0x56bcab=_0x246bb0;let _0x4b86aa=this['_context'][_0x56bcab(0x193)],_0x797ea3=this['_docSkeletonManagerService'];this[_0x56bcab(0x275)]((0x0,i[_0x56bcab(0x30e)])([this['_collabCursorController'][_0x56bcab(0x2a2)](_0x4b86aa),this[_0x56bcab(0x1aa)][_0x56bcab(0x112)]])[_0x56bcab(0x319)]((0x0,a[_0x56bcab(0x1cb)])(([_0x505d77,_0x5ac9f5])=>({'skeleton':_0x797ea3[_0x56bcab(0x281)](),'cursors':[..._0x505d77[_0x56bcab(0x19e)]()][_0x56bcab(0x2df)](_0x4893d9=>({..._0x4893d9,'color':this[_0x56bcab(0x1aa)][_0x56bcab(0x21f)](_0x4893d9[_0x56bcab(0x26e)])}))})))[_0x56bcab(0x173)](_0x159320=>{const _0x1b38cf=_0x56bcab;if(this[_0x1b38cf(0x3ae)](),_0x159320){let {skeleton:_0x3c7919,cursors:_0x583828}=_0x159320;this['_updateCollabCursors'](_0x3c7919,_0x583828);}})),this['_initResize'](),this[_0x56bcab(0x34d)]();}['_updateCollabCursors'](_0x50d8b7,_0x25c72b){const _0x36e674=_0x246bb0;let {scene:_0x1427e7,mainComponent:_0x1f5ef9}=this[_0x36e674(0x14f)],_0x528fb7=_0x25c72b['map'](_0x20d589=>new be(_0x20d589,_0x1427e7,_0x50d8b7,_0x1f5ef9));this['_cursorShapes']=_0x528fb7,this[_0x36e674(0xe0)]=_0x25c72b;}['_refreshCollabCursors'](){const _0x46546c=_0x246bb0;this[_0x46546c(0x3ae)]();let {scene:_0x5c57fb,mainComponent:_0xa89756}=this[_0x46546c(0x14f)],_0x2197a9=this[_0x46546c(0xfd)]['getSkeleton'](),_0x79f416=this[_0x46546c(0xe0)][_0x46546c(0x1cb)](_0x34e03b=>new be(_0x34e03b,_0x5c57fb,_0x2197a9,_0xa89756));this[_0x46546c(0x385)]=_0x79f416;}[_0x246bb0(0x3ae)](){const _0x35f13e=_0x246bb0;this[_0x35f13e(0x385)]['forEach'](_0x3fb39d=>_0x3fb39d['dispose']()),this['_cursorShapes']=[];}[_0x246bb0(0x34d)](){const _0x1c41f4=_0x246bb0;let _0x388bb7=[p['SetDocZoomRatioOperation']['id']];this[_0x1c41f4(0x275)](this[_0x1c41f4(0x1e4)][_0x1c41f4(0x3c1)](_0x5dbcb3=>{const _0x40b348=_0x1c41f4;_0x388bb7['includes'](_0x5dbcb3['id'])&&_0x5dbcb3[_0x40b348(0xd0)][_0x40b348(0x193)]===this['_context'][_0x40b348(0x193)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x464310=_0x246bb0;this[_0x464310(0x275)]((0x0,n['fromEventSubject'])(this[_0x464310(0x14f)][_0x464310(0x242)]['onTransformChange$'])[_0x464310(0x319)]((0x0,a['filter'])(_0x341951=>_0x341951[_0x464310(0x13b)]===m[_0x464310(0x17a)][_0x464310(0x3a4)]),(0x0,a['throttleTime'])(0x10))['subscribe'](()=>{const _0x563fd8=_0x464310;this[_0x563fd8(0xdf)]();}));}};z=w([C(0x1,(0x0,n[_0x246bb0(0x1a6)])(f[_0x246bb0(0x2e8)])),C(0x2,(0x0,n['Inject'])(I)),C(0x3,n[_0x246bb0(0x186)]),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(n['ThemeService']))],z);var xe=class extends m['Shape']{constructor(_0x1f1867,_0x52c568){const _0x33def9=_0x246bb0;super(_0x1f1867,_0x52c568),S(this,_0x33def9(0x2d5),void 0x0),S(this,_0x33def9(0x1fb),!0x1),S(this,'_range',void 0x0),S(this,'_name',''),S(this,_0x33def9(0x1ca),'top'),S(this,_0x33def9(0xd4),void 0x0),S(this,_0x33def9(0x3a0),void 0x0),S(this,_0x33def9(0x2e0),void 0x0),S(this,_0x33def9(0x356),0x4),S(this,_0x33def9(0xd8),void 0x0),S(this,'_blinkIntervalTimer',void 0x0),S(this,_0x33def9(0x24b),!0x0),S(this,_0x33def9(0x2cb),0x0),S(this,'_labelHorizontalPosition',_0x33def9(0x36a)),_0x52c568&&(this[_0x33def9(0x351)](_0x52c568),_0x52c568[_0x33def9(0x144)]&&(_0x52c568[_0x33def9(0x14a)]??this[_0x33def9(0x356)])&&this['_startBlinking'](_0x52c568[_0x33def9(0x14a)]??this[_0x33def9(0x356)])),this[_0x33def9(0x223)][_0x33def9(0x293)](()=>this[_0x33def9(0x351)]({'hovered':!0x0})),this[_0x33def9(0x172)][_0x33def9(0x293)](()=>this[_0x33def9(0x351)]({'hovered':!0x1}));}[_0x246bb0(0x305)](_0x365d49){const _0x1484cf=_0x246bb0;this[_0x1484cf(0x2cb)]=_0x365d49;}['setShapeProps'](_0x29cb77){const _0x39c8ec=_0x246bb0;this[_0x39c8ec(0x2d5)]=_0x29cb77['color']??this[_0x39c8ec(0x2d5)],this[_0x39c8ec(0x1fb)]=_0x29cb77['hovered']??this['_hovered'],this[_0x39c8ec(0x17c)]=_0x29cb77[_0x39c8ec(0x29c)]??this[_0x39c8ec(0x17c)],this[_0x39c8ec(0x2ad)]=_0x29cb77[_0x39c8ec(0x21e)]??this['_name'],this[_0x39c8ec(0x1ca)]=_0x29cb77[_0x39c8ec(0x374)]??this[_0x39c8ec(0x1ca)],this[_0x39c8ec(0xd4)]=_0x29cb77[_0x39c8ec(0x309)]??this['_backgroundColor'],this[_0x39c8ec(0x3a0)]=_0x29cb77[_0x39c8ec(0x24f)]??this[_0x39c8ec(0x3a0)],this[_0x39c8ec(0x22f)]=_0x29cb77[_0x39c8ec(0x25c)]??this['_labelHorizontalPosition'],_0x29cb77[_0x39c8ec(0x14a)]!==void 0x0&&(this['_highlightSecond']=_0x29cb77['highlightSecond']),_0x29cb77['highlight']!==void 0x0&&(this[_0x39c8ec(0x2e0)]=_0x29cb77[_0x39c8ec(0x144)]),_0x29cb77[_0x39c8ec(0xee)]!==void 0x0&&(this['_offsetY']=_0x29cb77[_0x39c8ec(0xee)]),this[_0x39c8ec(0x238)]({'width':_0x29cb77[_0x39c8ec(0x1b2)],'height':_0x29cb77[_0x39c8ec(0x128)]});}[_0x246bb0(0x2ce)](_0x1fdc45){const _0x3ceceb=_0x246bb0;let {row:_0x599ebe,column:_0x1357b0}=_0x1fdc45;if(_0x599ebe>=this['_range'][_0x3ceceb(0x2c8)]&&_0x599ebe<=this['_range']['endRow']&&_0x1357b0>=this[_0x3ceceb(0x17c)][_0x3ceceb(0x2a1)]&&_0x1357b0<=this[_0x3ceceb(0x17c)][_0x3ceceb(0x269)]){this[_0x3ceceb(0x351)]({'hovered':!0x0});return;}this[_0x3ceceb(0x351)]({'hovered':!0x1});}[_0x246bb0(0x3ba)](_0x1be7fd){const _0x54d1e9=_0x246bb0;this[_0x54d1e9(0x349)](),this['_isBlinkVisible']=!0x0,this[_0x54d1e9(0x37d)]=window[_0x54d1e9(0x1ec)](()=>{const _0x1fe271=_0x54d1e9;this[_0x1fe271(0x24b)]=!this[_0x1fe271(0x24b)],this['makeDirty'](!0x0);},0x1f4),this[_0x54d1e9(0xd8)]=window[_0x54d1e9(0x3c4)](()=>{const _0x1a81b7=_0x54d1e9;this[_0x1a81b7(0x349)](),this[_0x1a81b7(0x24b)]=!0x0,this[_0x1a81b7(0x210)](!0x0);},_0x1be7fd*0x3e8);}[_0x246bb0(0x349)](){const _0x4cc502=_0x246bb0;this[_0x4cc502(0x37d)]&&=(window['clearInterval'](this[_0x4cc502(0x37d)]),void 0x0),this[_0x4cc502(0xd8)]&&=(window[_0x4cc502(0x2f1)](this[_0x4cc502(0xd8)]),void 0x0);}[_0x246bb0(0x3b3)](_0x521287){return!0x1;}[_0x246bb0(0x20f)](){const _0x5115e7=_0x246bb0;this[_0x5115e7(0x349)](),super[_0x5115e7(0x20f)]();}['_draw'](_0x39aa98){const _0x5e5b36=_0x246bb0;let _0x49399a=this[_0x5e5b36(0x2d5)],_0x56b7e4=this[_0x5e5b36(0xd4)];if(this[_0x5e5b36(0x2e0)]&&!this[_0x5e5b36(0x24b)]&&(_0x49399a=this[_0x5e5b36(0x1b8)](this[_0x5e5b36(0x2d5)]),_0x56b7e4=this['_backgroundColor']?this['_getLighterColor'](this[_0x5e5b36(0xd4)]):void 0x0),m[_0x5e5b36(0x362)][_0x5e5b36(0x387)](_0x39aa98,{'width':this[_0x5e5b36(0x1b2)],'height':this['height'],'strokeWidth':this[_0x5e5b36(0x380)]||1.5,'stroke':_0x49399a,'evented':!0x1,'fill':_0x56b7e4}),this[_0x5e5b36(0x1fb)]||this[_0x5e5b36(0x3a0)]){_0x39aa98['save']();let _0x59eee5=this[_0x5e5b36(0x22f)]===_0x5e5b36(0x33c)?-de(_0x39aa98,this[_0x5e5b36(0x2ad)]):this[_0x5e5b36(0x1b2)];_0x39aa98[_0x5e5b36(0x32d)](0x1,0x0,0x0,0x1,_0x59eee5,(this[_0x5e5b36(0x1ca)]===_0x5e5b36(0x31b)?0x0:-0x14)+(this[_0x5e5b36(0x2cb)]??0x0)),O[_0x5e5b36(0x387)](_0x39aa98,{'text':this[_0x5e5b36(0x2ad)],'color':_0x49399a}),_0x39aa98[_0x5e5b36(0x1dd)]();}}['_getLighterColor'](_0x2b83ed){const _0x1bb546=_0x246bb0;return _0x2b83ed[_0x1bb546(0x22b)]('#')?'rgba('+Number[_0x1bb546(0x360)](_0x2b83ed[_0x1bb546(0x208)](0x1,0x3),0x10)+',\x20'+Number[_0x1bb546(0x360)](_0x2b83ed[_0x1bb546(0x208)](0x3,0x5),0x10)+',\x20'+Number[_0x1bb546(0x360)](_0x2b83ed[_0x1bb546(0x208)](0x5,0x7),0x10)+_0x1bb546(0x1bf):_0x2b83ed['startsWith']('rgba')?_0x2b83ed[_0x1bb546(0x25d)](/[\d.]+\)$/g,_0x1bb546(0x164)):_0x2b83ed[_0x1bb546(0x22b)]('rgb')?_0x2b83ed[_0x1bb546(0x25d)](_0x1bb546(0x205),_0x1bb546(0x2be))[_0x1bb546(0x25d)](')',_0x1bb546(0x1bf)):_0x2b83ed;}};let B=class extends n[_0x246bb0(0x2db)]{constructor(_0x2107f2,_0x2025d9,_0x38ef7a,_0x323069){const _0x100c3a=_0x246bb0;super(),this[_0x100c3a(0x14f)]=_0x2107f2,this[_0x100c3a(0xf8)]=_0x2025d9,this[_0x100c3a(0x218)]=_0x38ef7a,this[_0x100c3a(0x1aa)]=_0x323069,S(this,'_cursors',new Set()),S(this,_0x100c3a(0x107),null),S(this,_0x100c3a(0x3b1),null),this['_init']();}['_init'](){const _0x48bc25=_0x246bb0;this[_0x48bc25(0xf8)][_0x48bc25(0x10c)][_0x48bc25(0x319)]((0x0,a[_0x48bc25(0x119)])(this[_0x48bc25(0x22c)]),(0x0,a[_0x48bc25(0x283)])(_0x5c6ac1=>{const _0x4d0cbb=_0x48bc25;if(_0x5c6ac1){let _0x4478ae=_0x5c6ac1[_0x4d0cbb(0x278)];return(0x0,i[_0x4d0cbb(0x30e)])(this[_0x4d0cbb(0x218)][_0x4d0cbb(0x2a2)](this[_0x4d0cbb(0x14f)][_0x4d0cbb(0x193)]),this['_themeService'][_0x4d0cbb(0x112)])['pipe']((0x0,a[_0x4d0cbb(0x1cb)])(([_0x9aeb6,_0x84560])=>{const _0x2a079e=_0x4d0cbb;let _0xd8ea69=new Map();return _0x9aeb6[_0x2a079e(0x34f)]((_0x1a4eab,_0x3e49dc)=>{const _0x3bb393=_0x2a079e;if(_0x1a4eab[_0x3bb393(0x310)]===_0x4478ae){let _0x7c44e={..._0x1a4eab};_0x7c44e[_0x3bb393(0x26e)]=this[_0x3bb393(0x1aa)][_0x3bb393(0x21f)](_0x1a4eab['color']),_0xd8ea69[_0x3bb393(0x2f4)](_0x3e49dc,_0x7c44e);}}),{'skeleton':_0x5c6ac1,'cursors':_0xd8ea69};}));}return(0x0,i['of'])({'skeleton':null,'cursors':new Map()});}))[_0x48bc25(0x173)](({skeleton:_0x59053f,cursors:_0x26415f})=>{const _0x2849b6=_0x48bc25;this[_0x2849b6(0x3ae)](),_0x59053f&&this[_0x2849b6(0x36f)](_0x59053f,_0x26415f);}),this['disposeWithMe'](this[_0x48bc25(0xf8)][_0x48bc25(0x10c)][_0x48bc25(0x319)]((0x0,a[_0x48bc25(0x119)])(this['dispose$']))['subscribe'](_0x2ff677=>{const _0x31ec9c=_0x48bc25;var _0x89ebc9;if(_0x2ff677==null)return;(_0x89ebc9=this[_0x31ec9c(0x3b1)])==null||_0x89ebc9['unsubscribe'](),this[_0x31ec9c(0x3b1)]=null;let {skeleton:_0x3176a7}=_0x2ff677,{scene:_0x5ee8d6}=this[_0x31ec9c(0x14f)];this[_0x31ec9c(0x3b1)]=_0x5ee8d6[_0x31ec9c(0x13e)][_0x31ec9c(0x293)]((0x0,n[_0x31ec9c(0x225)])(_0x4ff03e=>{const _0x41d73a=_0x31ec9c;var _0x8ecc4c,_0x1cae4d;let {offsetX:_0x1569c2,offsetY:_0x19bbd5}=_0x4ff03e,{x:_0x1f9dcc,y:_0x50062c}=_0x5ee8d6[_0x41d73a(0x122)](m[_0x41d73a(0xc5)][_0x41d73a(0x10e)]([_0x1569c2,_0x19bbd5])),{scaleX:_0x1940d5,scaleY:_0x56068a}=_0x5ee8d6[_0x41d73a(0xfa)](),_0x5700b4=_0x5ee8d6[_0x41d73a(0x3cf)](m[_0x41d73a(0x39e)]['VIEW_MAIN']),_0x325f08=_0x5ee8d6[_0x41d73a(0x2b8)](m[_0x41d73a(0xc5)][_0x41d73a(0x10e)]([_0x1f9dcc,_0x50062c]),_0x5700b4),_0x253b17=_0x3176a7[_0x41d73a(0x1c8)](_0x1569c2,_0x19bbd5,_0x1940d5,_0x56068a,_0x325f08);(((_0x8ecc4c=this['_lastPointer'])==null?void 0x0:_0x8ecc4c[_0x41d73a(0x198)])!==_0x253b17['column']||((_0x1cae4d=this['_lastPointer'])==null?void 0x0:_0x1cae4d[_0x41d73a(0x19a)])!==_0x253b17[_0x41d73a(0x19a)])&&this[_0x41d73a(0xe0)]['forEach'](_0x497e8d=>{const _0x1efb07=_0x41d73a;_0x497e8d[_0x1efb07(0x2ce)](_0x253b17);});},0x64));})),this[_0x48bc25(0x275)]((0x0,n['toDisposable'])(()=>{const _0xd7ff7b=_0x48bc25;var _0x57f60c;(_0x57f60c=this[_0xd7ff7b(0x3b1)])==null||_0x57f60c[_0xd7ff7b(0x366)](),this[_0xd7ff7b(0x3b1)]=null;}));}['_updateCollabCursors'](_0x1f06ee,_0x1b5c87){const _0x4cfcf9=_0x246bb0;let _0x28b54e=this[_0x4cfcf9(0xf8)][_0x4cfcf9(0x39b)]();if(!_0x28b54e)return;let _0xfe47bd=this['_getSheetObject']();if(!_0xfe47bd)return;this['_cursors']['forEach'](_0x133cbb=>{const _0x4052e3=_0x4cfcf9;_0x133cbb[_0x4052e3(0x210)]();});let {scene:_0x237559}=_0xfe47bd,_0x59779c=Se(Array[_0x4cfcf9(0x2d6)](_0x1b5c87[_0x4cfcf9(0x19e)]()))['map'](_0x1af55c=>{const _0x21685f=_0x4cfcf9;let {color:_0x537de8,range:_0x3e7b99,name:_0xae0b0e,selection:_0x349bbf,sheetID:_0x44cdff}=_0x1af55c,{startColumn:_0x1f82d9,startRow:_0xf06428,endColumn:_0x589873,endRow:_0x3cce34}=_0x3e7b99,_0x126b35=(0x0,y[_0x21685f(0x301)])(_0xf06428,_0x1f82d9,_0x237559,_0x28b54e),_0x48a59e=(0x0,y[_0x21685f(0x301)])(_0x3cce34,_0x589873,_0x237559,_0x28b54e),{columnHeaderHeightAndMarginTop:_0x5448e4}=_0x28b54e,{startX:_0x2143e5,startY:_0x289e33}=_0x126b35,{endX:_0xe59308,endY:_0x5d635e}=_0x48a59e,_0x4f2a0b=_0xe59308-_0x2143e5,_0x408d91=_0x5d635e-_0x289e33;return new xe(_0xae0b0e,{'labelPosition':_0x289e33-_0x5448e4>=0x14?_0x21685f(0x2f5):'bottom','sheetID':_0x44cdff,'range':_0x3e7b99,'color':_0x537de8,'name':_0xae0b0e,'selection':_0x349bbf,'left':_0x2143e5,'top':_0x289e33,'width':_0x4f2a0b,'height':_0x408d91,'evented':!0x1,'zIndex':0x1389});});_0x237559[_0x4cfcf9(0x27f)](_0x59779c,0x1),this[_0x4cfcf9(0xe0)]=new Set(_0x59779c);}[_0x246bb0(0x3ae)](){const _0x19616d=_0x246bb0;var _0x3d2db2;(_0x3d2db2=this[_0x19616d(0xe0)])==null||_0x3d2db2[_0x19616d(0x34f)](_0x1301bf=>_0x1301bf[_0x19616d(0x20f)]());}[_0x246bb0(0x1fe)](){const _0x48d39d=_0x246bb0;return(0x0,y['getSheetObject'])(this[_0x48d39d(0x14f)][_0x48d39d(0x35a)],this[_0x48d39d(0x14f)]);}};B=w([C(0x1,(0x0,n['Inject'])(y[_0x246bb0(0x354)])),C(0x2,(0x0,n['Inject'])(I)),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x3c5)]))],B);function Se(_0x432484){const _0x373ed3=_0x246bb0;let _0x187671=new Map();return _0x432484[_0x373ed3(0x34f)](_0x582329=>{const _0x53b452=_0x373ed3;if(_0x187671[_0x53b452(0x2eb)](_0x582329[_0x53b452(0x118)])){let _0x5e129d=_0x187671[_0x53b452(0x2e5)](_0x582329[_0x53b452(0x118)]);_0x5e129d[_0x53b452(0x21e)]+=',\x20'+_0x582329[_0x53b452(0x21e)];}else _0x187671[_0x53b452(0x2f4)](_0x582329['selection'],_0x582329);}),Array[_0x373ed3(0x2d6)](_0x187671['values']());}let V=class extends n[_0x246bb0(0x2db)]{constructor(_0x178124,_0x4083c4,_0x3e65fe){const _0x34ed92=_0x246bb0;super(),this[_0x34ed92(0x14f)]=_0x178124,this['_collabCursorController']=_0x4083c4,this[_0x34ed92(0x1aa)]=_0x3e65fe,S(this,'_cursors',new Set()),S(this,_0x34ed92(0x1e7),!0x1),S(this,'_isApplyingOverlays',!0x1),S(this,_0x34ed92(0xce),new Map()),this[_0x34ed92(0x244)]();}[_0x246bb0(0x20f)](){const _0x275f03=_0x246bb0;this[_0x275f03(0x3ae)](),super[_0x275f03(0x20f)]();}['_init'](){const _0x379b89=_0x246bb0;let _0x58ddaf=this[_0x379b89(0x14f)][_0x379b89(0x35a)]['pageManager'][_0x379b89(0x3a9)],_0x2f589a=this[_0x379b89(0x218)]['getCollabCursors$'](this[_0x379b89(0x14f)][_0x379b89(0x193)]);this[_0x379b89(0x275)]((0x0,n[_0x379b89(0x168)])((0x0,i[_0x379b89(0x30e)])([_0x2f589a,_0x58ddaf,this[_0x379b89(0x1aa)]['currentTheme$']])[_0x379b89(0x319)]((0x0,i[_0x379b89(0x119)])(this[_0x379b89(0x22c)]))[_0x379b89(0x173)](([_0x3381b4,_0x458f87])=>{const _0x5b3ed3=_0x379b89;let _0x4fad45=new Map();_0x3381b4[_0x5b3ed3(0x34f)]((_0x5d8c48,_0xa1998e)=>{const _0x3caafd=_0x5b3ed3;_0x5d8c48[_0x3caafd(0x3bc)]===_0x458f87&&_0x4fad45['set'](_0xa1998e,{..._0x5d8c48,'color':this['_themeService']['getColorFromTheme'](_0x5d8c48[_0x3caafd(0x26e)])});}),this['_latestCursors']=_0x4fad45,this[_0x5b3ed3(0x32c)]();})));let _0x1e55eb=this[_0x379b89(0x14f)][_0x379b89(0x17b)];this['disposeWithMe']((0x0,n[_0x379b89(0x168)])(_0x1e55eb[_0x379b89(0x206)][_0x379b89(0x319)]((0x0,i[_0x379b89(0x119)])(this[_0x379b89(0x22c)]))['subscribe'](()=>{const _0x4596d7=_0x379b89;this['_isApplyingOverlays']||this[_0x4596d7(0x32c)]();})));}[_0x246bb0(0x32c)](){const _0x2c6c3a=_0x246bb0;this['_renderScheduled']||(this['_renderScheduled']=!0x0,Promise[_0x2c6c3a(0x350)]()[_0x2c6c3a(0x27e)](()=>{const _0x310572=_0x2c6c3a;this[_0x310572(0x1e7)]=!0x1,this[_0x310572(0x1a0)]();}));}[_0x246bb0(0x1a0)](){const _0x5ad70c=_0x246bb0;var _0x218850;this[_0x5ad70c(0x3ae)]();let _0x515e5d=(_0x218850=this[_0x5ad70c(0x14f)][_0x5ad70c(0x35a)]['pageManager'][_0x5ad70c(0x28f)]())==null?void 0x0:_0x218850[_0x5ad70c(0xcc)]();if(!_0x515e5d)return;let _0x4e70f6=[];if(this[_0x5ad70c(0xce)][_0x5ad70c(0x34f)]((_0x22a9bf,_0x242734)=>{const _0x4f70f0=_0x5ad70c;_0x22a9bf[_0x4f70f0(0x3bc)]===_0x515e5d&&_0x22a9bf[_0x4f70f0(0x21d)][_0x4f70f0(0x34f)](_0x2601ed=>{const _0x4ec218=_0x4f70f0;let _0x204f36=(0x0,v[_0x4ec218(0x2a0)])(_0x22a9bf[_0x4ec218(0x193)],_0x22a9bf[_0x4ec218(0x3bc)],_0x2601ed),_0x1db6ab=this['_getSceneObjectByKey'](_0x204f36);if(!_0x1db6ab)return;let _0xea8a26=this[_0x4ec218(0x3c9)](_0x1db6ab);_0x4e70f6[_0x4ec218(0x111)](new pe('slide-collab-cursor-'+_0x242734+'-'+_0x2601ed,{..._0x22a9bf,'left':_0xea8a26[_0x4ec218(0x33c)],'top':_0xea8a26[_0x4ec218(0x2f5)],'width':_0xea8a26[_0x4ec218(0x1b2)],'height':_0xea8a26[_0x4ec218(0x128)],'angle':_0x1db6ab[_0x4ec218(0x10d)],'evented':!0x1,'zIndex':k}));});}),_0x4e70f6['length']===0x0){this[_0x5ad70c(0x14f)][_0x5ad70c(0x17b)][_0x5ad70c(0x210)](!0x0);return;}this[_0x5ad70c(0x36e)]=!0x0,this['_context'][_0x5ad70c(0x17b)][_0x5ad70c(0x27f)](_0x4e70f6,k),this['_isApplyingOverlays']=!0x1,this[_0x5ad70c(0xe0)]=new Set(_0x4e70f6),this[_0x5ad70c(0x14f)][_0x5ad70c(0x17b)][_0x5ad70c(0x210)](!0x0);}[_0x246bb0(0x3ae)](){const _0x43e51a=_0x246bb0;let _0x22b7e5=Array['from'](this[_0x43e51a(0xe0)]);if(_0x22b7e5[_0x43e51a(0x192)]===0x0)return;let _0x2694b4=this['_context'][_0x43e51a(0x17b)];'removeObjects'in _0x2694b4&&typeof _0x2694b4[_0x43e51a(0x358)]==_0x43e51a(0x2c7)?_0x2694b4[_0x43e51a(0x358)](_0x22b7e5):_0x22b7e5[_0x43e51a(0x34f)](_0x565395=>{const _0x4e1659=_0x43e51a;_0x4e1659(0xe3)in _0x2694b4&&typeof _0x2694b4[_0x4e1659(0xe3)]==_0x4e1659(0x2c7)?_0x2694b4[_0x4e1659(0xe3)](_0x565395):_0x565395[_0x4e1659(0x20f)]();}),this['_cursors'][_0x43e51a(0x299)](),_0x2694b4[_0x43e51a(0x210)](!0x0);}[_0x246bb0(0x3ac)](_0x46c4e1){const _0x3a32bb=_0x246bb0;var _0x3b2dfd;let _0x4b2a52=this[_0x3a32bb(0x14f)][_0x3a32bb(0x17b)];return((_0x3b2dfd=_0x4b2a52['getObjectIncludeInGroup'])==null?void 0x0:_0x3b2dfd['call'](_0x4b2a52,_0x46c4e1))??_0x4b2a52[_0x3a32bb(0x28c)](_0x46c4e1)??null;}[_0x246bb0(0x3c9)](_0x3ee831){const _0x4dbb37=_0x246bb0;var _0x3f978c;let _0x49bb4d=_0x3ee831;return((_0x3f978c=_0x49bb4d[_0x4dbb37(0x1da)])==null?void 0x0:_0x3f978c[_0x4dbb37(0x2b2)](_0x49bb4d))??{'left':_0x3ee831[_0x4dbb37(0x33c)],'top':_0x3ee831[_0x4dbb37(0x2f5)],'width':_0x3ee831['width'],'height':_0x3ee831['height']};}};V=w([C(0x1,(0x0,n[_0x246bb0(0x1a6)])(I)),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(n['ThemeService']))],V);let H=class extends n[_0x246bb0(0x13d)]{constructor(_0x83551e,_0xe4ac63,_0x3f2e49,_0x1f5dc5,_0x25ef42,_0x2a3f50){const _0x261ce4=_0x246bb0;super(),this[_0x261ce4(0xef)]=_0x83551e,this[_0x261ce4(0x1dc)]=_0xe4ac63,this[_0x261ce4(0x18e)]=_0x3f2e49,this[_0x261ce4(0x16b)]=_0x1f5dc5,this[_0x261ce4(0x1e5)]=_0x25ef42,this[_0x261ce4(0x3af)]=_0x2a3f50,this[_0x261ce4(0x359)](),this[_0x261ce4(0x2af)]();}[_0x246bb0(0x359)](){const _0x2e520d=_0x246bb0;this[_0x2e520d(0x275)](this[_0x2e520d(0xef)][_0x2e520d(0x336)](()=>{const _0x37355b=_0x2e520d;if(this[_0x37355b(0x1dc)][_0x37355b(0x3ab)]['size'])return this['_localeService']['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}['_initEvent'](){const _0x4cc066=_0x246bb0;this[_0x4cc066(0x275)](this['_collaborationUIEventService'][_0x4cc066(0x1a3)]['subscribe'](_0xec3aa4=>{const _0x173d79=_0x4cc066;_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x3c0)]&&this[_0x173d79(0x16b)]['show']({'type':o[_0x173d79(0x3d2)][_0x173d79(0x2c1)],'content':this[_0x173d79(0x3af)]['t'](_0x173d79(0x158))}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x3bf)]&&this[_0x173d79(0x16b)][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)][_0x173d79(0x2c1)],'content':this[_0x173d79(0x3af)]['t'](_0x173d79(0x167))}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x376)]&&this[_0x173d79(0x1e5)][_0x173d79(0x2fe)]({'title':this[_0x173d79(0x3af)]['t'](_0x173d79(0x2de)),'content':this[_0x173d79(0x3af)]['t'](_0x173d79(0x159)),'type':'error','duration':0x0}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x1c0)]&&this[_0x173d79(0x1e5)][_0x173d79(0x2fe)]({'title':this[_0x173d79(0x3af)]['t']('collaboration-client-ui.conflict.title'),'content':this[_0x173d79(0x3af)]['t'](_0x173d79(0x348)),'type':_0x173d79(0x1af),'duration':0x0}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x234)]&&this['_messageService'][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)][_0x173d79(0x2c1)],'content':this[_0x173d79(0x3af)]['t'](_0xec3aa4['data']||'')}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x371)]&&this[_0x173d79(0x16b)][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)]['Warning'],'content':this['_localeService']['t']('collaboration-client-ui.session.will-retry')}),_0xec3aa4['id']===t['CollaborationUIEventId'][_0x173d79(0x12a)]&&this['_messageService'][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)][_0x173d79(0x212)],'content':this['_localeService']['t'](_0x173d79(0x1a2))}),_0xec3aa4['id']===t[_0x173d79(0x15f)][_0x173d79(0x355)]&&this[_0x173d79(0x16b)][_0x173d79(0x2fe)]({'type':o[_0x173d79(0x3d2)]['Error'],'content':this['_localeService']['t'](_0x173d79(0x1eb))});}));}};H=w([C(0x0,r[_0x246bb0(0x2a4)]),C(0x1,t[_0x246bb0(0x297)]),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(t['CollaborationUIEventService'])),C(0x3,r[_0x246bb0(0x1d1)]),C(0x4,r[_0x246bb0(0x1f9)]),C(0x5,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x266)]))],H);const U=(0x0,n['createIdentifier'])(_0x246bb0(0x1f3));let W=class extends n[_0x246bb0(0x2db)]{constructor(_0x50b9c8,_0x1f1df4,_0x56573e,_0x277e1e,_0x4bb0c3){const _0x704ac0=_0x246bb0;super(),this[_0x704ac0(0x15d)]=_0x50b9c8,this[_0x704ac0(0x316)]=_0x1f1df4,this[_0x704ac0(0x1e4)]=_0x56573e,this[_0x704ac0(0xf7)]=_0x277e1e,_0x4bb0c3?_0x4bb0c3[_0x704ac0(0x2bc)]()[_0x704ac0(0x27e)](()=>this[_0x704ac0(0x244)]()):(this[_0x704ac0(0x316)]['debug'](_0x704ac0(0x284),_0x704ac0(0xc8)),this[_0x704ac0(0x244)]());}async[_0x246bb0(0x244)](){const _0x58baa7=_0x246bb0;let _0x43740a=this['_urlService']['getParam'](_0x58baa7(0x35a)),_0x3d1c74=this['_urlService']['getParam'](_0x58baa7(0x13b)),_0x2f1c13=this[_0x58baa7(0x15d)][_0x58baa7(0x357)](_0x58baa7(0x31c));if(!_0x43740a||!_0x3d1c74){this[_0x58baa7(0x316)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}let _0x4b9cee=await this['_dataLoaderService']['loadUnit'](_0x43740a,Number(_0x3d1c74),_0x2f1c13);_0x4b9cee&&_0x4b9cee instanceof n[_0x58baa7(0x20a)]&&this['_setupSubUnitSync'](_0x4b9cee);}async['_setupSubUnitSync'](_0x4ba964){const _0x3654a1=_0x246bb0;await this[_0x3654a1(0x33a)](_0x4ba964),_0x4ba964['activeSheet$'][_0x3654a1(0x319)]((0x0,i[_0x3654a1(0x119)])(this[_0x3654a1(0x22c)]))['subscribe'](_0x4ac24e=>{const _0x1e3c94=_0x3654a1;_0x4ac24e&&this[_0x1e3c94(0x289)](_0x4ac24e);}),this['_urlService'][_0x3654a1(0x318)][_0x3654a1(0x319)]((0x0,i[_0x3654a1(0x119)])(this['dispose$']))[_0x3654a1(0x173)](()=>this['_updateSubUnitFromURLParams'](_0x4ba964));}[_0x246bb0(0x289)](_0x4c3c9b,_0x414ba0=!0x1){const _0x4a81b9=_0x246bb0;let _0x1af6c1=this[_0x4a81b9(0x15d)][_0x4a81b9(0x357)](_0x4a81b9(0x31c));_0x4c3c9b[_0x4a81b9(0x240)]()!==_0x1af6c1&&this['_urlService'][_0x4a81b9(0x157)](_0x4a81b9(0x31c),_0x4c3c9b[_0x4a81b9(0x240)](),_0x414ba0);}async[_0x246bb0(0x33a)](_0x4fa0b2){const _0x57aa0e=_0x246bb0;var _0x139859;let _0x565426=this[_0x57aa0e(0x15d)][_0x57aa0e(0x357)]('subunit');if(!_0x565426||!_0x4fa0b2['getSheetBySheetId'](_0x565426)){let _0x3c6f33=_0x4fa0b2[_0x57aa0e(0x39d)]()[0x0],_0x37c669=_0x4fa0b2[_0x57aa0e(0x105)](_0x3c6f33);if(!_0x37c669)return;this[_0x57aa0e(0x289)](_0x37c669,!0x0),await this[_0x57aa0e(0x1e4)][_0x57aa0e(0x136)](_[_0x57aa0e(0xda)]['id'],{'unitId':_0x4fa0b2[_0x57aa0e(0x313)](),'subUnitId':_0x3c6f33});return;}((_0x139859=_0x4fa0b2[_0x57aa0e(0x38f)]())==null?void 0x0:_0x139859['getSheetId']())!==_0x565426&&await this[_0x57aa0e(0x1e4)][_0x57aa0e(0x136)](_[_0x57aa0e(0xda)]['id'],{'unitId':_0x4fa0b2[_0x57aa0e(0x313)](),'subUnitId':_0x565426});}};W=w([C(0x0,U),C(0x1,n[_0x246bb0(0x102)]),C(0x2,n[_0x246bb0(0x186)]),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(t['DataLoaderService'])),C(0x4,(0x0,n[_0x246bb0(0x3be)])(ee[_0x246bb0(0x290)]))],W);let G=class{constructor(_0x368ed6,_0x108def){const _0x41ba40=_0x246bb0;this[_0x41ba40(0x1d7)]=_0x368ed6,this[_0x41ba40(0x365)]=_0x108def;}['transformIMECache'](_0x3580c2){const _0x4531fd=_0x246bb0;this[_0x4531fd(0xd3)](_0x3580c2),this[_0x4531fd(0x2ee)](_0x3580c2);}['transformRemoteChangeset'](_0x53a4f5){const _0x2e64bd=_0x246bb0;let {unitID:_0x5cf11a}=_0x53a4f5,{redoCache:_0x3984e2}=this[_0x2e64bd(0x365)][_0x2e64bd(0x327)](_0x5cf11a)[_0x2e64bd(0xcb)](p[_0x2e64bd(0x155)])[_0x2e64bd(0x248)]();if(_0x3984e2[_0x2e64bd(0x192)]===0x0)return _0x53a4f5;let _0x5b7678=n['Tools'][_0x2e64bd(0x3cb)](_0x53a4f5[_0x2e64bd(0x287)][0x0]);for(let _0x30c52e=0x0;_0x30c52e<_0x3984e2[_0x2e64bd(0x192)];_0x30c52e++){let _0x96cd6a={'id':_0x2e64bd(0x109),'params':{..._0x3984e2[_0x30c52e]}},_0x2b8628=this['_transformService'][_0x2e64bd(0x3c3)](_0x5b7678,_0x96cd6a,!0x1);if((0x0,u[_0x2e64bd(0x182)])(_0x2b8628))throw _0x2b8628[_0x2e64bd(0x1af)];_0x5b7678=_0x2b8628[_0x2e64bd(0xd1)];}return{...n[_0x2e64bd(0x3b0)][_0x2e64bd(0x3cb)](_0x53a4f5),'mutations':[_0x5b7678]};}[_0x246bb0(0xd3)](_0x55730f){const _0x594f54=_0x246bb0;let {unitID:_0x3b7d4a}=_0x55730f,_0x539e9f=this[_0x594f54(0x365)][_0x594f54(0x327)](_0x3b7d4a)[_0x594f54(0xcb)](p[_0x594f54(0x155)]),{undoCache:_0x2f98ee,redoCache:_0x149e0c}=_0x539e9f[_0x594f54(0x248)]();if(_0x2f98ee[_0x594f54(0x192)]===0x0||_0x149e0c[_0x594f54(0x192)]===0x0)return;let _0xbb0856=[],_0x5bf3a8=[],_0x22eb4b=n[_0x594f54(0x3b0)][_0x594f54(0x3cb)](_0x55730f[_0x594f54(0x287)][0x0]),_0x1081a8=n['Tools'][_0x594f54(0x3cb)](_0x55730f[_0x594f54(0x287)][0x0]);for(let _0x3bfe1a=_0x2f98ee[_0x594f54(0x192)]-0x1;_0x3bfe1a>=0x0;_0x3bfe1a--){let _0x3ce8b1={'id':'doc.mutation.rich-text-editing','params':{..._0x2f98ee[_0x3bfe1a]}},_0x55528b={'id':'doc.mutation.rich-text-editing','params':{..._0x149e0c[_0x3bfe1a]}},_0x2caabd=this[_0x594f54(0x1d7)][_0x594f54(0x3c3)](_0x22eb4b,_0x3ce8b1,!0x1),_0x153b7e=this[_0x594f54(0x1d7)]['transformMutation'](_0x1081a8,_0x55528b,!0x1);if((0x0,u[_0x594f54(0x182)])(_0x2caabd))throw _0x2caabd['error'];if((0x0,u[_0x594f54(0x182)])(_0x153b7e))throw _0x153b7e['error'];_0xbb0856[_0x594f54(0x364)](_0x2caabd[_0x594f54(0x2e4)]['params']),_0x5bf3a8[_0x594f54(0x364)](_0x153b7e[_0x594f54(0x2e4)][_0x594f54(0xd0)]),_0x22eb4b=_0x2caabd[_0x594f54(0xd1)],_0x1081a8=_0x153b7e[_0x594f54(0xd1)];}_0x539e9f['setUndoRedoMutationParamsCache']({'undoCache':_0xbb0856,'redoCache':_0x5bf3a8});}[_0x246bb0(0x2ee)](_0xb94a31){const _0x15d230=_0x246bb0;let {unitID:_0x22cdfe}=_0xb94a31,_0x69ef6a=this[_0x15d230(0x365)][_0x15d230(0x327)](_0x22cdfe)[_0x15d230(0xcb)](p[_0x15d230(0x155)]),_0x3c2764=_0x69ef6a[_0x15d230(0x35b)]();if(_0x3c2764==null)return;let _0x46f474=[{'id':_0x15d230(0x109),'params':{'unitId':_0xb94a31[_0x15d230(0x2a7)],'actions':null,'textRanges':[_0x3c2764]}}],_0x42e568=this[_0x15d230(0x1d7)]['transformMutationsWithChangeset'](_0xb94a31,_0x46f474);if(!(0x0,u[_0x15d230(0x38a)])(_0x42e568))throw _0x42e568[_0x15d230(0x1af)];let _0x6b0c8f=_0x42e568['m2Prime'][0x0]['params']['textRanges'];Array[_0x15d230(0x2a9)](_0x6b0c8f)&&_0x6b0c8f[_0x15d230(0x192)]&&_0x69ef6a[_0x15d230(0x228)](_0x6b0c8f[0x0]);}};G=w([C(0x0,u['ITransformService']),C(0x1,m['IRenderManagerService'])],G);let K=class{constructor(_0x143605,_0x2f56e1,_0x204551){const _0x229055=_0x246bb0;this[_0x229055(0x257)]=_0x143605,this[_0x229055(0x1d7)]=_0x2f56e1,this[_0x229055(0x25b)]=_0x204551;}['transformStateCache'](_0x23a57c){const _0x4950ff=_0x246bb0;this[_0x4950ff(0x368)](_0x23a57c);}[_0x246bb0(0x314)](_0x5afa09){const _0x1d5e6f=_0x246bb0;let {unitID:_0x17d18e}=_0x5afa09,{collaboration:_0xe96e14}=this[_0x1d5e6f(0x25b)]['getStateCache'](_0x17d18e);if(_0xe96e14['length']===0x0)return _0x5afa09;let _0x5e1633=n[_0x1d5e6f(0x3b0)][_0x1d5e6f(0x3cb)](_0x5afa09[_0x1d5e6f(0x287)][0x0]);for(let _0x22c879=0x0;_0x22c879<_0xe96e14[_0x1d5e6f(0x192)];_0x22c879++){let _0x5cc26c={'id':_0x1d5e6f(0x109),'params':{'unitId':_0xe96e14[_0x22c879][_0x1d5e6f(0x193)],..._0xe96e14[_0x22c879][_0x1d5e6f(0x16a)]}},_0x5b9313=this[_0x1d5e6f(0x1d7)][_0x1d5e6f(0x3c3)](_0x5e1633,_0x5cc26c,!0x1);if((0x0,u[_0x1d5e6f(0x182)])(_0x5b9313))throw _0x5b9313[_0x1d5e6f(0x1af)];_0x5e1633=_0x5b9313[_0x1d5e6f(0xd1)];}return{...n[_0x1d5e6f(0x3b0)][_0x1d5e6f(0x3cb)](_0x5afa09),'mutations':[_0x5e1633]};}['_transformHistoryAndStateStack'](_0x29baaa){const _0x4b6cef=_0x246bb0;let {unitID:_0x27e4f6}=_0x29baaa,{history:_0x54249e,collaboration:_0x491d62}=this[_0x4b6cef(0x25b)][_0x4b6cef(0x26c)](_0x27e4f6);if(_0x54249e[_0x4b6cef(0x192)]===0x0&&_0x491d62[_0x4b6cef(0x192)]===0x0)return;let _0x41205c=[],_0x5c574f=[],_0x3197b0=n[_0x4b6cef(0x3b0)]['deepClone'](_0x29baaa[_0x4b6cef(0x287)][0x0]),_0xf77aad=n['Tools'][_0x4b6cef(0x3cb)](_0x29baaa[_0x4b6cef(0x287)][0x0]);for(let _0x1d8c72=_0x54249e[_0x4b6cef(0x192)]-0x1;_0x1d8c72>=0x0;_0x1d8c72--){let _0x263f48={'id':_0x4b6cef(0x109),'params':{'unitId':_0x54249e[_0x1d8c72][_0x4b6cef(0x193)],..._0x54249e[_0x1d8c72]['undoState']}},_0x2e48aa={'id':_0x4b6cef(0x109),'params':{'unitId':_0x54249e[_0x1d8c72][_0x4b6cef(0x193)],..._0x54249e[_0x1d8c72][_0x4b6cef(0x16a)]}},_0x1565ba=this[_0x4b6cef(0x1d7)][_0x4b6cef(0x3c3)](_0x3197b0,_0x263f48,!0x1),_0x141a08=this[_0x4b6cef(0x1d7)][_0x4b6cef(0x3c3)](_0xf77aad,_0x2e48aa,!0x1);if((0x0,u['isTransformMutationFailure'])(_0x1565ba))throw _0x1565ba[_0x4b6cef(0x1af)];if((0x0,u[_0x4b6cef(0x182)])(_0x141a08))throw _0x141a08['error'];_0x41205c[_0x4b6cef(0x364)]({..._0x54249e[_0x1d8c72],'undoState':_0x1565ba['m2Prime'][_0x4b6cef(0xd0)],'redoState':_0x141a08[_0x4b6cef(0x2e4)][_0x4b6cef(0xd0)]}),_0x3197b0=_0x1565ba['m1Prime'],_0xf77aad=_0x141a08[_0x4b6cef(0xd1)];}_0x3197b0=n['Tools']['deepClone'](_0x29baaa['mutations'][0x0]),_0xf77aad=n[_0x4b6cef(0x3b0)][_0x4b6cef(0x3cb)](_0x29baaa[_0x4b6cef(0x287)][0x0]);for(let _0xfe8a0e=_0x491d62[_0x4b6cef(0x192)]-0x1;_0xfe8a0e>=0x0;_0xfe8a0e--){let _0x43c697={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x491d62[_0xfe8a0e][_0x4b6cef(0x193)],..._0x491d62[_0xfe8a0e][_0x4b6cef(0x176)]}},_0x4cb316={'id':_0x4b6cef(0x109),'params':{'unitId':_0x491d62[_0xfe8a0e][_0x4b6cef(0x193)],..._0x491d62[_0xfe8a0e][_0x4b6cef(0x16a)]}},_0x10d5cf=this[_0x4b6cef(0x1d7)][_0x4b6cef(0x3c3)](_0x3197b0,_0x43c697,!0x1),_0x256732=this[_0x4b6cef(0x1d7)][_0x4b6cef(0x3c3)](_0xf77aad,_0x4cb316,!0x1);if((0x0,u[_0x4b6cef(0x182)])(_0x10d5cf))throw _0x10d5cf[_0x4b6cef(0x1af)];if((0x0,u[_0x4b6cef(0x182)])(_0x256732))throw _0x256732[_0x4b6cef(0x1af)];_0x5c574f[_0x4b6cef(0x364)]({..._0x491d62[_0xfe8a0e],'undoState':_0x10d5cf['m2Prime']['params'],'redoState':_0x256732['m2Prime']['params']}),_0x3197b0=_0x10d5cf[_0x4b6cef(0xd1)],_0xf77aad=_0x256732['m1Prime'];}this[_0x4b6cef(0x25b)][_0x4b6cef(0x271)](_0x27e4f6,{'history':_0x41205c,'collaboration':_0x5c574f});}};K=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x1,u['ITransformService']),C(0x2,(0x0,n[_0x246bb0(0x1a6)])(f['DocStateChangeManagerService']))],K);let q=class{constructor(_0x251fd3,_0x20c7c8){const _0x38fc67=_0x246bb0;this[_0x38fc67(0x257)]=_0x251fd3,this[_0x38fc67(0x1d7)]=_0x20c7c8;}[_0x246bb0(0x2e7)](_0x3d88bf){const _0x546ebf=_0x246bb0;let _0x10ed61=this[_0x546ebf(0x257)][_0x546ebf(0x2e5)](f[_0x546ebf(0x397)]),_0x122d8a=_0x10ed61['getDocRanges']()??[];if(_0x122d8a['length']===0x0)return;let _0x57b4f8=_0x3d88bf['unitID'],_0x3ae7d9=[{'id':_0x546ebf(0x109),'params':{'unitId':_0x57b4f8,'actions':null,'textRanges':_0x122d8a}}],_0xd8b120=this['_transformService']['transformMutationsWithChangeset'](_0x3d88bf,_0x3ae7d9);if(!(0x0,u['isTransformMutationsWithChangesetSuccess'])(_0xd8b120))throw _0xd8b120[_0x546ebf(0x1af)];let _0x3e0f27=_0xd8b120['m2Prime'][0x0]['params'][_0x546ebf(0x250)];Array[_0x546ebf(0x2a9)](_0x3e0f27)&&_0x3e0f27[_0x546ebf(0x192)]&&_0x10ed61[_0x546ebf(0x25f)](_0x3e0f27,{'unitId':_0x57b4f8,'subUnitId':_0x57b4f8},!0x1);}};q=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(n['Injector'])),C(0x1,u['ITransformService'])],q);let J=class extends n[_0x246bb0(0x13d)]{constructor(_0x506687,_0x3247aa,_0x522494,_0x2dc3a6,_0x3dcbd6,_0x23b875,_0x502723){const _0x154940=_0x246bb0;super(),this['_collaborationController']=_0x506687,this[_0x154940(0x32e)]=_0x3247aa,this[_0x154940(0x15b)]=_0x522494,this[_0x154940(0x1fc)]=_0x2dc3a6,this['_docSyncEditingCollabCursorService']=_0x3dcbd6,this[_0x154940(0x16b)]=_0x23b875,this[_0x154940(0x3af)]=_0x502723,S(this,_0x154940(0x3bb),new i[(_0x154940(0x2b7))](t[_0x154940(0x335)][_0x154940(0x344)])),this['_initEntityListener']();}[_0x246bb0(0x127)](){const _0x3e1130=_0x246bb0;this[_0x3e1130(0x275)](this['_collaborationController']['entityInit$']['subscribe'](_0x1d3276=>{const _0x22794c=_0x3e1130;_0x1d3276 instanceof t[_0x22794c(0x32b)]&&_0x1d3276[_0x22794c(0x2ae)]({'onTransformIME':_0x2e665a=>this['_docTransformIMECacheService'][_0x22794c(0x399)](_0x2e665a),'onTransformState':_0x8f93b9=>this[_0x22794c(0x15b)]['transformStateCache'](_0x8f93b9),'onTransformSelections':_0x3f82e3=>this['_docTransformSelectionsService'][_0x22794c(0x2e7)](_0x3f82e3),'onSyncEditingCollabCursor':_0x115478=>this[_0x22794c(0x1ed)][_0x22794c(0x32f)](_0x115478),'onTransformRemoteChangesetByIMECache':_0x2013fc=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x2013fc),'onTransformRemoteChangesetByStateCache':_0x152b2b=>this[_0x22794c(0x15b)]['transformRemoteChangeset'](_0x152b2b)});}));}};J=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(t[_0x246bb0(0x35f)])),C(0x1,(0x0,n[_0x246bb0(0x1a6)])(G)),C(0x2,(0x0,n['Inject'])(K)),C(0x3,(0x0,n['Inject'])(q)),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(M)),C(0x5,r[_0x246bb0(0x1d1)]),C(0x6,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x266)]))],J);let Y=class extends n[_0x246bb0(0x13d)]{constructor(_0x582c80,_0x2a6cd5,_0x4e0fca,_0x568f38){const _0x19a751=_0x246bb0;super(),this[_0x19a751(0x257)]=_0x582c80,this[_0x19a751(0x1ac)]=_0x2a6cd5,this[_0x19a751(0x316)]=_0x4e0fca,this[_0x19a751(0x15a)]=_0x568f38,S(this,_0x19a751(0x36d),void 0x0),this['_init']();}[_0x246bb0(0x244)](){const _0x18d247=_0x246bb0;this['_initWindowErrorListener'](),this[_0x18d247(0x28e)](),this[_0x18d247(0x379)](),this['_initUserListener']();}[_0x246bb0(0x1e1)](){const _0x179e07=_0x246bb0;this[_0x179e07(0x275)](this[_0x179e07(0x15a)][_0x179e07(0x140)][_0x179e07(0x173)](_0x588f3a=>{const _0x1f3a0a=_0x179e07;this[_0x1f3a0a(0x36d)]=_0x588f3a==null?void 0x0:_0x588f3a['memberID'];}));}[_0x246bb0(0x214)](){const _0x38db9e=_0x246bb0;let _0xf704ee=_0x43d01a=>{const _0x29f5ce=_0x55a3;var _0x3755e2;this['_uploadLog']('error',_0x29f5ce(0x166)+_0x43d01a[_0x29f5ce(0x2dc)]+'\x20at\x20'+_0x43d01a[_0x29f5ce(0xe5)]+':'+_0x43d01a['lineno']+':'+_0x43d01a[_0x29f5ce(0x178)]+'\x0a'+(((_0x3755e2=_0x43d01a[_0x29f5ce(0x1af)])==null?void 0x0:_0x3755e2[_0x29f5ce(0x23d)])||''));};window['addEventListener'](_0x38db9e(0x1af),_0xf704ee),this[_0x38db9e(0x275)](()=>{const _0x5c1049=_0x38db9e;window[_0x5c1049(0x363)](_0x5c1049(0x1af),_0xf704ee);});}['_initUnhandledRejectionListener'](){const _0x37c4a8=_0x246bb0;let _0x5ea2f7=_0x225bea=>{const _0xffe116=_0x55a3;this[_0xffe116(0x303)]('error','[Unhandled\x20Rejection]:\x20'+_0x225bea[_0xffe116(0x2c4)]);};window[_0x37c4a8(0x33f)](_0x37c4a8(0x2d8),_0x5ea2f7),this[_0x37c4a8(0x275)](()=>{const _0x360814=_0x37c4a8;window[_0x360814(0x363)](_0x360814(0x2d8),_0x5ea2f7);});}[_0x246bb0(0x379)](){const _0x269c5c=_0x246bb0;let _0x4f4d9d=this['_logService'][_0x269c5c(0x1af)]['bind'](this[_0x269c5c(0x316)]);this[_0x269c5c(0x316)][_0x269c5c(0x1af)]=(..._0x2562c9)=>{const _0x313c11=_0x269c5c;let _0x3f68f3=_0x2562c9['map'](_0x4e2f64=>_0x4e2f64 instanceof Error?_0x4e2f64['message']+'\x0a'+_0x4e2f64[_0x313c11(0x23d)]:String(_0x4e2f64))[_0x313c11(0x3b4)]('\x20');this[_0x313c11(0x303)](_0x313c11(0x1af),'[LogService\x20Error]:\x20'+_0x3f68f3),_0x4f4d9d(..._0x2562c9);},this[_0x269c5c(0x275)](()=>{const _0x16f717=_0x269c5c;this[_0x16f717(0x316)][_0x16f717(0x1af)]=_0x4f4d9d;});}['_uploadLog'](_0x458543,_0x228a2c){const _0x572127=_0x246bb0;try{let _0x3b16ac={'userId':this[_0x572127(0x36d)],'logLabel':_0x458543,'content':_0x228a2c};this[_0x572127(0x1ac)][_0x572127(0x16d)]('/universer-api/frontend/logs',{'body':_0x3b16ac})['catch'](()=>{});}catch{}}};Y=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x1,(0x0,n[_0x246bb0(0x1a6)])(h[_0x246bb0(0x1ef)])),C(0x2,n[_0x246bb0(0x102)]),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(t['CollaborationSessionService']))],Y);function Ce({state$:_0x17804b,interactionBlocked$:_0x2792bf}){const _0x1bddcf=_0x246bb0;return(0x0,l[_0x1bddcf(0xff)])(l[_0x1bddcf(0x389)],{'children':[(0x0,r[_0x1bddcf(0x3ca)])(_0x2792bf,!0x1,!0x0)&&(0x0,l[_0x1bddcf(0x30f)])(_0x1bddcf(0x392),{'data-u-comp':_0x1bddcf(0x369),'aria-hidden':!0x0,'className':_0x1bddcf(0x108)}),(0x0,l[_0x1bddcf(0x30f)])(we,{'state$':_0x17804b})]});}function we({state$:_0x1960d5}){const _0x3f51ff=_0x246bb0;let _0x17c8c1=(0x0,r[_0x3f51ff(0x3ca)])(_0x1960d5,null,!0x0);return _0x17c8c1?(0x0,l[_0x3f51ff(0xff)])(_0x3f51ff(0x392),{'data-u-comp':_0x3f51ff(0x300),'role':_0x3f51ff(0x24e),'className':_0x3f51ff(0xd5),'children':[(0x0,l['jsx'])(s[_0x3f51ff(0x1ea)],{'className':_0x3f51ff(0xc6)}),(0x0,l['jsx'])(_0x3f51ff(0x126),{'children':_0x17c8c1['content']}),(0x0,l[_0x3f51ff(0x30f)])(o[_0x3f51ff(0xc4)],{'size':_0x3f51ff(0x2bf),'variant':'primary','onClick':()=>window[_0x3f51ff(0x2b5)]['reload'](),'children':_0x17c8c1['refreshLabel']})]}):null;}const X=_0x246bb0(0x298);let Z=class extends n['Disposable']{constructor(_0x52243b,_0x5590c3,_0x200b46,_0x5ba7a8,_0x3acb75,_0x9be66b,_0xc0031d,_0x1b97c5){const _0x62da8=_0x246bb0;super(),this[_0x62da8(0x37c)]=_0x52243b,this[_0x62da8(0x16b)]=_0x5590c3,this['_localeService']=_0x200b46,this['_injector']=_0x5ba7a8,this[_0x62da8(0x377)]=_0x3acb75,this[_0x62da8(0x28a)]=_0xc0031d,this['_urlService']=_0x1b97c5,S(this,'_timeoutState$',new i[(_0x62da8(0x2b7))](null)),S(this,'_interactionBlocked$',new i[(_0x62da8(0x2b7))](!0x1)),S(this,_0x62da8(0x12e),new Set()),S(this,_0x62da8(0x241),new Map()),S(this,_0x62da8(0xd6),new Set()),S(this,_0x62da8(0x10b),new Map()),S(this,_0x62da8(0x232),void 0x0),S(this,_0x62da8(0x1cf),void 0x0),S(this,_0x62da8(0x29b),void 0x0),S(this,_0x62da8(0x39f),this[_0x62da8(0x1a5)]['asObservable']());let _0x1820d5=()=>(0x0,c[_0x62da8(0x34a)])(Ce,{'state$':this[_0x62da8(0x39f)],'interactionBlocked$':this[_0x62da8(0x304)]});this[_0x62da8(0x275)](_0x9be66b['registerComponent'](r[_0x62da8(0x265)][_0x62da8(0xf2)],()=>(0x0,r[_0x62da8(0x3ad)])(_0x1820d5,this[_0x62da8(0x257)]))),this['disposeWithMe'](this['_snapshotLoadingService'][_0x62da8(0x323)][_0x62da8(0x173)](_0x50667b=>{const _0x1517ac=_0x62da8;this[_0x1517ac(0x10b)]=_0x50667b,_0x50667b['forEach'](_0x561c1b=>{const _0x747512=_0x1517ac;this[_0x747512(0xeb)](_0x561c1b),this[_0x747512(0x2cc)](_0x561c1b);});})),this['disposeWithMe'](this['_urlService'][_0x62da8(0x318)]['subscribe'](()=>{const _0x165cd3=_0x62da8;this[_0x165cd3(0x10b)][_0x165cd3(0x34f)](_0x33eb28=>{const _0x5c23a1=_0x165cd3;this[_0x5c23a1(0xeb)](_0x33eb28),this[_0x5c23a1(0x2cc)](_0x33eb28);});}));}[_0x246bb0(0x20f)](){const _0x2b1c22=_0x246bb0;var _0x52d94b;if(this[_0x2b1c22(0x12e)][_0x2b1c22(0x34f)](_0x4966f5=>this['_messageService'][_0x2b1c22(0xe9)](_0x4966f5)),this[_0x2b1c22(0x12e)]['clear'](),this['_previewUnitId']){var _0x4d93f2;(_0x4d93f2=this[_0x2b1c22(0x29b)])==null||_0x4d93f2[_0x2b1c22(0x1b4)](this['_previewUnitId']);}this['_previewUnitId']=void 0x0,this[_0x2b1c22(0x241)][_0x2b1c22(0x34f)](({timeoutId:_0x1583fa})=>clearTimeout(_0x1583fa)),this[_0x2b1c22(0x241)][_0x2b1c22(0x299)](),(_0x52d94b=this[_0x2b1c22(0x1cf)])==null||_0x52d94b['dispose'](),this['_shortcutBlock']=void 0x0,this[_0x2b1c22(0x1a5)][_0x2b1c22(0x1b3)](),this['_interactionBlocked$'][_0x2b1c22(0x1b3)](),super['dispose']();}[_0x246bb0(0xeb)](_0xb28f05){const _0x30adaf=_0x246bb0;let _0x50afd4=''+X+_0xb28f05['unitId'];if(_0xb28f05[_0x30adaf(0x2f7)]===u['SnapshotLoadStage'][_0x30adaf(0x398)]){if(this[_0x30adaf(0x21a)](_0xb28f05[_0x30adaf(0x193)]),this[_0x30adaf(0x34c)](_0xb28f05[_0x30adaf(0x193)])&&this[_0x30adaf(0x232)]===_0xb28f05[_0x30adaf(0x193)]){this[_0x30adaf(0x16b)][_0x30adaf(0x2fe)]({'id':_0x50afd4,'type':o[_0x30adaf(0x3d2)][_0x30adaf(0x20e)],'duration':0x1/0x0,'content':this['_localeService']['t']('collaboration-client-ui.snapshotLoading.loadingSheet')}),this[_0x30adaf(0x12e)][_0x30adaf(0x346)](_0x50afd4);return;}this[_0x30adaf(0x29e)](_0xb28f05[_0x30adaf(0x193)]),this['_messageService'][_0x30adaf(0xe9)](_0x50afd4),this[_0x30adaf(0x12e)][_0x30adaf(0x296)](_0x50afd4);return;}if(!this['_isVisibleUnit'](_0xb28f05['unitId'])){this[_0x30adaf(0x21a)](_0xb28f05[_0x30adaf(0x193)]),this[_0x30adaf(0x29e)](_0xb28f05[_0x30adaf(0x193)]),this[_0x30adaf(0x16b)][_0x30adaf(0xe9)](_0x50afd4),this[_0x30adaf(0x12e)][_0x30adaf(0x296)](_0x50afd4);return;}if(_0xb28f05[_0x30adaf(0x2f7)]===u[_0x30adaf(0x2f8)][_0x30adaf(0x1fd)]){this[_0x30adaf(0x21a)](_0xb28f05['unitId']),this[_0x30adaf(0x29e)](_0xb28f05['unitId']),this[_0x30adaf(0x16b)]['show']({'id':_0x50afd4,'type':o[_0x30adaf(0x3d2)]['Error'],'content':this[_0x30adaf(0x3af)]['t'](_0x30adaf(0x1a2))}),this[_0x30adaf(0x12e)][_0x30adaf(0x296)](_0x50afd4);return;}if(_0xb28f05[_0x30adaf(0x2f7)]!==u['SnapshotLoadStage'][_0x30adaf(0x183)]||_0xb28f05[_0x30adaf(0x1c9)]<=0xa){this[_0x30adaf(0x21a)](_0xb28f05[_0x30adaf(0x193)]),this['_messageService'][_0x30adaf(0xe9)](_0x50afd4),this['_messageIds']['delete'](_0x50afd4);return;}this['_watchBlockProgress'](_0xb28f05)||(this[_0x30adaf(0x16b)][_0x30adaf(0x2fe)]({'id':_0x50afd4,'type':o['MessageType'][_0x30adaf(0x20e)],'duration':0x1/0x0,'content':this[_0x30adaf(0x3af)]['t'](_0x30adaf(0x148))+'\x20'+_0xb28f05[_0x30adaf(0x23b)]+'/'+_0xb28f05[_0x30adaf(0x1c9)]}),this[_0x30adaf(0x12e)][_0x30adaf(0x346)](_0x50afd4));}[_0x246bb0(0x337)](_0x3a9296){const _0x1b28a0=_0x246bb0;let _0x5a599d=this[_0x1b28a0(0x241)][_0x1b28a0(0x2e5)](_0x3a9296['unitId']);if((_0x5a599d==null?void 0x0:_0x5a599d['loadedBlocks'])===_0x3a9296[_0x1b28a0(0x23b)])return _0x5a599d[_0x1b28a0(0xe1)];this[_0x1b28a0(0x21a)](_0x3a9296[_0x1b28a0(0x193)]);let _0x21703a=setTimeout(()=>{const _0x377aac=_0x1b28a0;let _0x5e3bc5=this['_blockProgressWatches'][_0x377aac(0x2e5)](_0x3a9296[_0x377aac(0x193)]);if(!_0x5e3bc5||_0x5e3bc5[_0x377aac(0x1ad)]!==_0x21703a)return;_0x5e3bc5['timedOut']=!0x0;let _0x2dc4c1=''+X+_0x3a9296[_0x377aac(0x193)];this[_0x377aac(0x16b)]['remove'](_0x2dc4c1),this['_messageIds'][_0x377aac(0x296)](_0x2dc4c1),this['_timeoutState$'][_0x377aac(0x264)]({'unitId':_0x3a9296[_0x377aac(0x193)],'content':this[_0x377aac(0x3af)]['t'](_0x377aac(0x23e),String(_0x3a9296[_0x377aac(0x23b)]),String(_0x3a9296['totalBlocks'])),'refreshLabel':this[_0x377aac(0x3af)]['t']('collaboration-client-ui.snapshotLoading.refresh')});},0xea60);return this['_blockProgressWatches'][_0x1b28a0(0x2f4)](_0x3a9296['unitId'],{'loadedBlocks':_0x3a9296[_0x1b28a0(0x23b)],'timedOut':!0x1,'timeoutId':_0x21703a}),!0x1;}['_clearBlockProgressWatch'](_0x3f366d){const _0x2e9255=_0x246bb0;let _0x46735f=this[_0x2e9255(0x241)][_0x2e9255(0x2e5)](_0x3f366d);_0x46735f&&(clearTimeout(_0x46735f[_0x2e9255(0x1ad)]),this['_blockProgressWatches']['delete'](_0x3f366d),this[_0x2e9255(0x29e)](_0x3f366d));}[_0x246bb0(0x29e)](_0x42c139){const _0x526ef4=_0x246bb0;var _0x3d7ca5;((_0x3d7ca5=this['_timeoutState$']['value'])==null?void 0x0:_0x3d7ca5['unitId'])===_0x42c139&&this[_0x526ef4(0x1a5)][_0x526ef4(0x264)](null);}[_0x246bb0(0x2cc)](_0x5e9a95){const _0x49cded=_0x246bb0;if(_0x5e9a95[_0x49cded(0x2f7)]===u['SnapshotLoadStage']['LOADING_SNAPSHOT']&&this[_0x49cded(0xd6)][_0x49cded(0x296)](_0x5e9a95[_0x49cded(0x193)]),!this['_isVisibleUnit'](_0x5e9a95['unitId'])){this['_hidePreview'](_0x5e9a95[_0x49cded(0x193)]);return;}if(_0x5e9a95[_0x49cded(0x2f7)]===u['SnapshotLoadStage']['ERROR']||_0x5e9a95[_0x49cded(0x1c9)]<=0xa){this[_0x49cded(0x1b7)](_0x5e9a95[_0x49cded(0x193)]);return;}if(_0x5e9a95[_0x49cded(0x2f7)]===u['SnapshotLoadStage'][_0x49cded(0x398)]){this['_handoffPreview'](_0x5e9a95[_0x49cded(0x193)]);return;}if(_0x5e9a95[_0x49cded(0x2f7)]===u[_0x49cded(0x2f8)][_0x49cded(0x183)]&&_0x5e9a95['workbookShell']&&_0x5e9a95[_0x49cded(0x321)]){let _0x3a2a3c=this[_0x49cded(0x332)]();if(!_0x3a2a3c)return;this['_previewUnitId']&&this[_0x49cded(0x232)]!==_0x5e9a95['unitId']&&this[_0x49cded(0x1b7)](this[_0x49cded(0x232)]),_0x3a2a3c[_0x49cded(0x152)](_0x5e9a95[_0x49cded(0x117)],_0x5e9a95[_0x49cded(0x321)]),this[_0x49cded(0x232)]=_0x5e9a95['unitId'],this[_0x49cded(0x382)](!0x0),_0x5e9a95[_0x49cded(0x233)]&&_0x3a2a3c['show'](_0x5e9a95[_0x49cded(0x117)],_0x5e9a95['activeSheetId'],_0x5e9a95[_0x49cded(0x2a6)]);}}[_0x246bb0(0x3b5)](_0x466109){const _0x3060ea=_0x246bb0;if(this[_0x3060ea(0x232)]!==_0x466109||this[_0x3060ea(0xd6)][_0x3060ea(0x2eb)](_0x466109))return;let _0x3757b9=this[_0x3060ea(0x29b)];_0x3757b9&&(this[_0x3060ea(0xd6)]['add'](_0x466109),_0x3757b9[_0x3060ea(0x215)](_0x466109,0x2710)[_0x3060ea(0x27e)](_0x3177dc=>{const _0x17fa8b=_0x3060ea;if(this[_0x17fa8b(0x232)]!==_0x466109)return;if(_0x3177dc){let _0x406b9e=''+X+_0x466109;this['_messageService']['remove'](_0x406b9e),this[_0x17fa8b(0x12e)][_0x17fa8b(0x296)](_0x406b9e),this[_0x17fa8b(0x232)]=void 0x0,this[_0x17fa8b(0x382)](!0x1);return;}let _0x1f9ac0=''+X+_0x466109;this[_0x17fa8b(0x16b)]['remove'](_0x1f9ac0),this[_0x17fa8b(0x12e)][_0x17fa8b(0x296)](_0x1f9ac0),this[_0x17fa8b(0x1a5)][_0x17fa8b(0x264)]({'unitId':_0x466109,'content':this[_0x17fa8b(0x3af)]['t'](_0x17fa8b(0x1a2)),'refreshLabel':this[_0x17fa8b(0x3af)]['t'](_0x17fa8b(0x2ef))});}));}['_hidePreview'](_0x5c56ca){const _0x8d3fee=_0x246bb0;var _0x4b1500;this[_0x8d3fee(0x232)]===_0x5c56ca&&((_0x4b1500=this[_0x8d3fee(0x29b)])==null||_0x4b1500['hide'](_0x5c56ca),this[_0x8d3fee(0x232)]=void 0x0,this[_0x8d3fee(0x382)](!0x1));}[_0x246bb0(0x382)](_0x2b54ac){const _0x32624e=_0x246bb0;if(_0x2b54ac!==this[_0x32624e(0x304)][_0x32624e(0x1b1)]){if(_0x2b54ac)this[_0x32624e(0x1cf)]=this[_0x32624e(0x28a)][_0x32624e(0x35c)]();else{var _0x4977b3;(_0x4977b3=this[_0x32624e(0x1cf)])==null||_0x4977b3['dispose'](),this['_shortcutBlock']=void 0x0;}this[_0x32624e(0x304)]['next'](_0x2b54ac);}}[_0x246bb0(0x34c)](_0x445b3c){const _0x1ccdac=_0x246bb0;let _0xd2e9fd=this[_0x1ccdac(0x15d)][_0x1ccdac(0x357)]('unit');return!_0xd2e9fd||_0xd2e9fd===_0x445b3c;}[_0x246bb0(0x332)](){const _0x5639eb=_0x246bb0;return this['_sheetLoadingRenderService']?this[_0x5639eb(0x29b)]:(this[_0x5639eb(0x377)][_0x5639eb(0x2e1)](n[_0x5639eb(0xd2)]['UNIVER_SHEET']),this[_0x5639eb(0x257)]['has'](y['ISheetLoadingRenderService'])&&(this['_sheetLoadingRenderService']=this[_0x5639eb(0x257)]['get'](y[_0x5639eb(0x11e)])),this[_0x5639eb(0x29b)]);}};Z=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(u[_0x246bb0(0x19c)])),C(0x1,r[_0x246bb0(0x1d1)]),C(0x2,(0x0,n['Inject'])(n[_0x246bb0(0x266)])),C(0x3,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x4,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x37f)])),C(0x5,r[_0x246bb0(0x235)]),C(0x6,r[_0x246bb0(0x34b)]),C(0x7,U)],Z);function Te(_0x96a0c1){const _0x3a7af8=_0x246bb0;var _0x487be8,_0x347adc;let _0x6e848=(_0x487be8=_0x96a0c1[_0x3a7af8(0x153)])==null?void 0x0:_0x487be8[_0x3a7af8(0x2f7)],_0x69a051=((_0x347adc=_0x96a0c1[_0x3a7af8(0x153)])==null?void 0x0:_0x347adc[_0x3a7af8(0x255)])||0x0;return _0x6e848===g['FormulaExecuteStageType'][_0x3a7af8(0x177)]&&_0x69a051>0x0;}function Ee(_0x36cced){const _0x2c790a=_0x246bb0;return _0x36cced[_0x2c790a(0x1de)]===g['FormulaExecutedStateType'][_0x2c790a(0x29f)];}let Q=class extends n[_0x246bb0(0x13d)]{constructor(_0x44451c,_0x152511,_0x22bcf7,_0x580ab1,_0x474af8,_0x13f7da,_0x3ef3a6){const _0x484bed=_0x246bb0;super(),this['_messageService']=_0x44451c,this[_0x484bed(0x1e4)]=_0x152511,this[_0x484bed(0xf3)]=_0x22bcf7,this[_0x484bed(0x1ac)]=_0x580ab1,this[_0x484bed(0x123)]=_0x474af8,this[_0x484bed(0x316)]=_0x13f7da,this[_0x484bed(0x3af)]=_0x3ef3a6,S(this,_0x484bed(0xe8),null),S(this,'_maxFormulaLimit',0x0),S(this,_0x484bed(0xd9),0x0),S(this,_0x484bed(0x199),[]),S(this,_0x484bed(0x1d9),0x0),this[_0x484bed(0x1b5)]();}[_0x246bb0(0x1b5)](){const _0x70777=_0x246bb0;this[_0x70777(0x275)](this[_0x70777(0x1e4)]['beforeCommandExecuted']((_0x133ef3,_0x521989)=>{const _0x42df81=_0x70777;if(_0x133ef3['id']!==g['SetFormulaCalculationStartMutation']['id'])return;let _0x546faa=_0x133ef3[_0x42df81(0xd0)];if(this[_0x42df81(0x231)](_0x546faa[_0x42df81(0x267)]??[])&&!this['_checkCalculationAvailable']())throw this[_0x42df81(0x143)](_0x133ef3,_0x521989),this[_0x42df81(0x1ba)](),new n[(_0x42df81(0x190))]();})),this[_0x70777(0x275)](this['_commandService'][_0x70777(0x3c1)]((_0x5d6916,_0x48cb21)=>{const _0x38436a=_0x70777;if(_0x5d6916['id']!==g[_0x38436a(0xe6)]['id'])return;let _0x5ed3ac=_0x5d6916[_0x38436a(0xd0)];if(Te(_0x5ed3ac)){let _0x2ad79a=(0x0,n[_0x38436a(0x16f)])();this[_0x38436a(0x199)][_0x38436a(0x111)](_0x2ad79a),this[_0x38436a(0x2fc)](_0x2ad79a);}else{if(Ee(_0x5ed3ac)&&this['_taskIds'][_0x38436a(0x192)]>0x0){let _0x476bcd=this[_0x38436a(0x199)][_0x38436a(0x19f)]();this[_0x38436a(0x367)](_0x476bcd);}}}));}[_0x246bb0(0x20f)](){const _0x5d01ce=_0x246bb0;super[_0x5d01ce(0x20f)](),this[_0x5d01ce(0x2d0)](),this[_0x5d01ce(0x199)]=[],this[_0x5d01ce(0xd9)]=0x0,this[_0x5d01ce(0x196)]=0x0,this[_0x5d01ce(0x1d9)]=0x0;}async[_0x246bb0(0x143)](_0x5803e4,_0x3eac3a){const _0x593db6=_0x246bb0;for(let _0x2c1d43=0x0;_0x2c1d43<0x1e;_0x2c1d43++)try{if(await this[_0x593db6(0x1f0)](),this[_0x593db6(0x1c5)]()){this[_0x593db6(0x1d4)](_0x5803e4,_0x3eac3a),this[_0x593db6(0x16b)][_0x593db6(0x2fe)]({'content':this[_0x593db6(0x3af)]['t'](_0x593db6(0x393)),'type':o[_0x593db6(0x3d2)][_0x593db6(0x2ea)]});return;}await new Promise(_0x571221=>{const _0x5e1467=_0x593db6;this[_0x5e1467(0xe8)]=window[_0x5e1467(0x3c4)](_0x571221,0x3e8);});}catch(_0x3f79ea){this[_0x593db6(0x316)][_0x593db6(0x1af)](_0x3f79ea);}this['_messageService']['show']({'content':this[_0x593db6(0x3af)]['t'](_0x593db6(0x2fb)),'type':o[_0x593db6(0x3d2)][_0x593db6(0x212)]});}[_0x246bb0(0x1d4)](_0x34c3bd,_0x2801f8){const _0x11a81f=_0x246bb0;try{this[_0x11a81f(0x1e4)][_0x11a81f(0x136)](_0x34c3bd['id'],_0x34c3bd[_0x11a81f(0xd0)],_0x2801f8);}catch(_0x246a55){this['_logService'][_0x11a81f(0x1af)](_0x246a55);}}['_setFormulaLimitStatus'](_0x4ddce5,_0x101f69){const _0x148c92=_0x246bb0;_0x101f69<this[_0x148c92(0x1d9)]||(this[_0x148c92(0x1d9)]=_0x101f69,this[_0x148c92(0x196)]=Number[_0x148c92(0x360)](_0x4ddce5[_0x148c92(0x23a)]),this[_0x148c92(0xd9)]=Number[_0x148c92(0x360)](_0x4ddce5[_0x148c92(0xdb)]));}async[_0x246bb0(0x2fc)](_0x54b3cf){const _0x1f183f=_0x246bb0;let _0x38bbd2=Date[_0x1f183f(0x1d2)]();try{var _0x146c3d,_0x39d4ea;let _0x3a9b33=((_0x146c3d=this[_0x1f183f(0xf3)][_0x1f183f(0x2da)](t[_0x1f183f(0x139)]))==null?void 0x0:_0x146c3d[_0x1f183f(0x256)])||_0x1f183f(0x100),_0x531725=(await this[_0x1f183f(0x1ac)][_0x1f183f(0x16d)](_0x3a9b33,{'body':JSON[_0x1f183f(0x146)]({'taskId':_0x54b3cf})}))['body'];if(((_0x39d4ea=_0x531725['error'])==null?void 0x0:_0x39d4ea[_0x1f183f(0x1c2)])!==b['ErrorCode']['OK'])return;this[_0x1f183f(0x145)](_0x531725['limitInfo'],_0x38bbd2);}catch(_0x3bdf3b){this['_logService'][_0x1f183f(0x1af)](_0x3bdf3b);}}async['_getFormulaLimitStatus'](_0x3ce376){const _0x470d82=_0x246bb0;let _0xd26ce8=Date[_0x470d82(0x1d2)]();try{var _0x4f0192,_0x4fd795;let _0x191d94=((_0x4f0192=this[_0x470d82(0xf3)][_0x470d82(0x2da)](t[_0x470d82(0x139)]))==null?void 0x0:_0x4f0192[_0x470d82(0x315)])||'/universer-api/license/formula/limit/status',_0x459201=_0x3ce376?_0x191d94+_0x470d82(0x12f)+encodeURIComponent(_0x3ce376):_0x191d94,_0x264288=(await this[_0x470d82(0x1ac)][_0x470d82(0x2e5)](_0x459201))[_0x470d82(0x391)];if(((_0x4fd795=_0x264288['error'])==null?void 0x0:_0x4fd795['code'])!==b['ErrorCode']['OK'])return;this['_setFormulaLimitStatus'](_0x264288[_0x470d82(0x216)],_0xd26ce8);}catch(_0xe7c5fe){this['_logService'][_0x470d82(0x1af)](_0xe7c5fe);}}async['_releaseCalculationLimit'](_0x4984a3){const _0x2522cf=_0x246bb0;let _0x1b4dfb=Date[_0x2522cf(0x1d2)]();try{var _0x3ff1d0,_0x3c0b70;let _0xf0aa4f=((_0x3ff1d0=this[_0x2522cf(0xf3)]['getConfig'](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3ff1d0[_0x2522cf(0x2bb)])||_0x2522cf(0x1fa),_0x316fd4=(await this['_httpService'][_0x2522cf(0x16d)](_0xf0aa4f,{'body':JSON[_0x2522cf(0x146)]({'taskId':_0x4984a3})}))[_0x2522cf(0x391)];if(((_0x3c0b70=_0x316fd4[_0x2522cf(0x1af)])==null?void 0x0:_0x3c0b70[_0x2522cf(0x1c2)])!==b[_0x2522cf(0x27a)]['OK'])return;this[_0x2522cf(0x145)](_0x316fd4[_0x2522cf(0x216)],_0x1b4dfb);}catch(_0x54ffb4){this['_logService']['error'](_0x54ffb4);}}[_0x246bb0(0x1c5)](){const _0x4fbd94=_0x246bb0;return this[_0x4fbd94(0x196)]===0x0||this[_0x4fbd94(0x196)]-this[_0x4fbd94(0xd9)]>0x0;}[_0x246bb0(0x2d0)](){const _0x37ded3=_0x246bb0;this['_pollingInterval']&&=(clearTimeout(this[_0x37ded3(0xe8)]),null);}['_showGuardMessage'](){const _0x3421b8=_0x246bb0;this[_0x3421b8(0x16b)][_0x3421b8(0x2fe)]({'content':this[_0x3421b8(0x3af)]['t'](_0x3421b8(0x386)),'type':o[_0x3421b8(0x3d2)][_0x3421b8(0x20e)]});}['_hasFormulaInDirtyRanges'](_0x1fcd04){const _0x451bc9=_0x246bb0;for(let _0x5add5e of _0x1fcd04){let {unitId:_0x421afb,sheetId:_0x253dcd,range:_0x505843}=_0x5add5e,_0x2a0cd5=this[_0x451bc9(0x123)][_0x451bc9(0x2cf)](_0x421afb,n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x2a0cd5)continue;let _0x4a00b3=_0x2a0cd5[_0x451bc9(0x105)](_0x253dcd);if(!_0x4a00b3)continue;let _0x37713a=_0x4a00b3['getCellMatrix']();for(let _0x3567f7=_0x505843[_0x451bc9(0x2c8)];_0x3567f7<=_0x505843[_0x451bc9(0x1db)];_0x3567f7++)for(let _0x572bee=_0x505843['startColumn'];_0x572bee<=_0x505843[_0x451bc9(0x269)];_0x572bee++){let _0x241178=_0x37713a[_0x451bc9(0x288)](_0x3567f7,_0x572bee);if(_0x241178&&((0x0,n[_0x451bc9(0x16c)])(_0x241178['f'])||(0x0,n[_0x451bc9(0x273)])(_0x241178['si'])))return!0x0;}}return!0x1;}};Q=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(r[_0x246bb0(0x1d1)])),C(0x1,n[_0x246bb0(0x186)]),C(0x2,n[_0x246bb0(0x320)]),C(0x3,(0x0,n[_0x246bb0(0x1a6)])(h[_0x246bb0(0x1ef)])),C(0x4,n[_0x246bb0(0x324)]),C(0x5,n[_0x246bb0(0x102)]),C(0x6,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x266)]))],Q);let De=class extends n[_0x246bb0(0x13d)]{constructor(_0x5047d2,_0x415fe7,_0x790e67){const _0x4a56ca=_0x246bb0;super(),this[_0x4a56ca(0xf3)]=_0x5047d2,this['_localStorageService']=_0x415fe7,this[_0x4a56ca(0x22d)]=_0x790e67,S(this,_0x4a56ca(0x11b),new Map()),S(this,_0x4a56ca(0x14b),new Map()),S(this,_0x4a56ca(0x3ce),!0x1);}[_0x246bb0(0x3b2)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x220892=_0x246bb0;this[_0x220892(0x3ce)]=!0x1;}get[_0x246bb0(0x3ab)](){const _0x1561db=_0x246bb0;return this[_0x1561db(0x14b)];}[_0x246bb0(0x20f)](){const _0x17c7bf=_0x246bb0;this[_0x17c7bf(0x373)]()[_0x17c7bf(0x27e)](()=>super[_0x17c7bf(0x20f)]());}async[_0x246bb0(0x39a)](_0x410b25){const _0x7ee850=_0x246bb0;return this[_0x7ee850(0x3ce)]?null:this[_0x7ee850(0x12b)][_0x7ee850(0x2b9)]((0x0,t[_0x7ee850(0x115)])(_0x410b25));}async[_0x246bb0(0x268)](_0x4ead58,_0x4135d8){const _0x193f5a=_0x246bb0;return!!this[_0x193f5a(0x12b)][_0x193f5a(0x110)]((0x0,t[_0x193f5a(0x115)])(_0x4ead58),_0x4135d8);}async[_0x246bb0(0x302)](_0x5c6e45,_0x2a2a02){const _0x517f04=_0x246bb0;let _0x506483=this[_0x517f04(0x11b)]['get'](_0x5c6e45)??await this[_0x517f04(0x12b)][_0x517f04(0x2b9)]((0x0,t['getLocalCacheKey'])(_0x5c6e45));if(!_0x506483)return;let _0x1d6247=Date['now'](),_0x26e735=new Date(_0x1d6247)[_0x517f04(0x2e2)]();await this[_0x517f04(0x12b)][_0x517f04(0x110)]((0x0,t[_0x517f04(0x115)])(_0x5c6e45)+_0x517f04(0x322)+_0x1d6247,{'reason':_0x2a2a02,'createdAt':_0x26e735,'data':_0x506483});}[_0x246bb0(0x226)](_0x19c4a9,_0x5d2c0f,_0x7749b4,_0x73d34c){const _0xdcfd05=_0x246bb0;let _0x4aa080=this[_0xdcfd05(0x22d)][_0xdcfd05(0x202)](_0x19c4a9);this[_0xdcfd05(0x11b)][_0xdcfd05(0x2f4)](_0x19c4a9,{'unitID':_0x19c4a9,'type':_0x5d2c0f,'awaitingChangeset':_0x7749b4,'mutations':_0x73d34c,'rev':_0x4aa080}),this['_saveTaskMap']['has'](_0x19c4a9)||this[_0xdcfd05(0x352)](_0x19c4a9);}[_0x246bb0(0x352)](_0x22d3d1){const _0x567560=_0x246bb0;let _0x196351=this[_0x567560(0x329)]();_0x196351===0x0?this[_0x567560(0x3b9)](_0x22d3d1):this[_0x567560(0x14b)]['set'](_0x22d3d1,window[_0x567560(0x3c4)](()=>this['_saveCache'](_0x22d3d1),_0x196351));}['_getSaveTimeout'](){const _0x4bd3dc=_0x246bb0;return this[_0x4bd3dc(0xf3)][_0x4bd3dc(0x2da)](t[_0x4bd3dc(0x132)])??t['LOCAL_CACHE_INTERVAL'];}[_0x246bb0(0x3b9)](_0x8b99db){const _0xec4691=_0x246bb0;let _0x5a71d7=this[_0xec4691(0x14b)][_0xec4691(0x2e5)](_0x8b99db);return _0x5a71d7!==void 0x0&&window[_0xec4691(0x2f1)](_0x5a71d7),this[_0xec4691(0x12b)][_0xec4691(0x110)]((0x0,t[_0xec4691(0x115)])(_0x8b99db),this[_0xec4691(0x11b)][_0xec4691(0x2e5)](_0x8b99db))['then'](()=>this[_0xec4691(0x14b)][_0xec4691(0x296)](_0x8b99db));}async[_0x246bb0(0x373)](){const _0x4c2c7b=_0x246bb0;let _0x428245=[];this[_0x4c2c7b(0x14b)]['forEach']((_0x40463b,_0x4d82b0)=>{const _0x559d6e=_0x4c2c7b;window['clearTimeout'](_0x40463b),_0x428245[_0x559d6e(0x111)](this[_0x559d6e(0x3b9)](_0x4d82b0)[_0x559d6e(0x27e)](()=>{const _0x592c6b=_0x559d6e;this[_0x592c6b(0x14b)][_0x592c6b(0x296)](_0x4d82b0);}));}),await Promise[_0x4c2c7b(0x1b0)](_0x428245);}};De=w([C(0x0,n[_0x246bb0(0x320)]),C(0x1,n['ILocalStorageService']),C(0x2,(0x0,n['Inject'])(u[_0x246bb0(0x381)]))],De);var Oe=class extends n[_0x246bb0(0x2db)]{constructor(){const _0x3a3693=_0x246bb0;super(),S(this,_0x3a3693(0x318),void 0x0),this['urlChange$']=(0x0,i[_0x3a3693(0x15e)])(window,_0x3a3693(0x21c))['pipe']((0x0,i[_0x3a3693(0x119)])(this['dispose$']),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,i[_0x3a3693(0xe4)])(void 0x0));}[_0x246bb0(0x157)](_0x16de3d,_0x5b367a,_0x172a9b=!0x1){const _0x18dd64=_0x246bb0;let _0x159d01=new URL(window[_0x18dd64(0x2b5)][_0x18dd64(0x308)]);_0x159d01[_0x18dd64(0x2b3)]['set'](_0x16de3d,_0x5b367a),_0x172a9b?window[_0x18dd64(0x104)][_0x18dd64(0x259)]('','',_0x159d01[_0x18dd64(0xc3)]()):window[_0x18dd64(0x104)][_0x18dd64(0x339)]('','',_0x159d01[_0x18dd64(0xc3)]());}[_0x246bb0(0x395)](_0xf37fd5,_0x5907bd=!0x1){const _0x57e4c9=_0x246bb0;let _0x40bbc6=new URL(window[_0x57e4c9(0x2b5)]['href']);_0x40bbc6['searchParams']['delete'](_0xf37fd5),_0x5907bd?window[_0x57e4c9(0x104)][_0x57e4c9(0x259)]('','',_0x40bbc6[_0x57e4c9(0xc3)]()):window[_0x57e4c9(0x104)][_0x57e4c9(0x339)]('','',_0x40bbc6[_0x57e4c9(0xc3)]());}[_0x246bb0(0x357)](_0x15b217){const _0x38fc7e=_0x246bb0;return new URL(window[_0x38fc7e(0x2b5)][_0x38fc7e(0x308)])[_0x38fc7e(0x2b3)]['get'](_0x15b217)??void 0x0;}};let $=class extends n['Plugin']{constructor(_0x50578e=ue,_0x15356a,_0x5ba9b3,_0x2e94c2){const _0x32c45c=_0x246bb0;super(),this['_config']=_0x50578e,this[_0x32c45c(0x365)]=_0x15356a,this[_0x32c45c(0x257)]=_0x5ba9b3,this[_0x32c45c(0xf3)]=_0x2e94c2;let {..._0x292814}=(0x0,n[_0x32c45c(0x2ff)])({},ue,this[_0x32c45c(0x20c)]);this['_configService'][_0x32c45c(0x1e9)](_0x32c45c(0x200),_0x292814);}[_0x246bb0(0x3aa)](){const _0x231a42=_0x246bb0;this[_0x231a42(0x1d5)](),this[_0x231a42(0x17e)]();}[_0x246bb0(0x1ff)](){const _0x1c3c55=_0x246bb0;this[_0x1c3c55(0x20d)]();}[_0x246bb0(0x1d5)](){const _0x3faaa5=_0x246bb0;var _0x584727;let _0x449797=[[A],[Q],[U,{'useClass':Oe}],[h['ISocketService'],{'useClass':h[_0x3faaa5(0x353)]}],[t[_0x3faaa5(0x297)],{'useClass':De}],[T],[E],[H],[I],[W],[Z]];this[_0x3faaa5(0x20c)]['enableDocumentCollaborationUI']!==!0x1&&_0x449797['push']([q],[G],[K],[M],[J],[D]),this[_0x3faaa5(0x20c)]['enableFrontendLog']&&_0x449797[_0x3faaa5(0x111)]([Y]),(0x0,n['registerDependencies'])(this[_0x3faaa5(0x257)],(0x0,n[_0x3faaa5(0x209)])(_0x449797,(_0x584727=this[_0x3faaa5(0x20c)])==null?void 0x0:_0x584727[_0x3faaa5(0x390)]));}[_0x246bb0(0x20d)](){const _0x4bceef=_0x246bb0;this['_config']['enableDocumentCollaborationUI']!==!0x1&&this['disposeWithMe'](this[_0x4bceef(0x365)][_0x4bceef(0x1b9)](n['UniverInstanceType'][_0x4bceef(0x1cd)],[z])),this[_0x4bceef(0x275)](this['_renderManagerService'][_0x4bceef(0x1b9)](n[_0x4bceef(0xd2)][_0x4bceef(0x1e6)],[B])),this['disposeWithMe'](this[_0x4bceef(0x365)][_0x4bceef(0x1b9)](n[_0x4bceef(0xd2)][_0x4bceef(0x131)],[V])),this['disposeWithMe'](this[_0x4bceef(0x365)]['registerRenderModule'](n[_0x4bceef(0xd2)][_0x4bceef(0x291)],[L]));}[_0x246bb0(0x17e)](){const _0x389f30=_0x246bb0;(0x0,n[_0x389f30(0x18c)])(this[_0x389f30(0x257)],[[I],[T],[E],[H],[W],[Q],[Z]]),this[_0x389f30(0x20c)][_0x389f30(0x11a)]!==!0x1&&(0x0,n['touchDependencies'])(this[_0x389f30(0x257)],[[J],[D]]),this[_0x389f30(0x20c)]['enableFrontendLog']&&(0x0,n[_0x389f30(0x18c)])(this[_0x389f30(0x257)],[[Y]]);}};S($,'pluginName',_0x246bb0(0x282)),S($,_0x246bb0(0x292),ce),S($,_0x246bb0(0x180),le),$=w([(0x0,n[_0x246bb0(0x311)])(d[_0x246bb0(0x229)],f[_0x246bb0(0x3b8)],m[_0x246bb0(0x345)],h[_0x246bb0(0x2fa)],u[_0x246bb0(0x175)],p[_0x246bb0(0x2d1)],t[_0x246bb0(0x1b6)]),C(0x1,m['IRenderManagerService']),C(0x2,(0x0,n['Inject'])(n[_0x246bb0(0x141)])),C(0x3,n[_0x246bb0(0x320)])],$);let ke=class extends t[_0x246bb0(0x3cc)]{constructor(_0x403f18,_0x19404c,_0x5eefe4,_0xbf0a77,_0xff6933){super(_0x403f18,_0x19404c,_0x5eefe4,_0xbf0a77,_0xff6933);}async[_0x246bb0(0x26f)](_0x4b5744){const _0x1fb85d=_0x246bb0;let _0x4013fc=await this[_0x1fb85d(0x3a1)](),_0x20405b=this[_0x1fb85d(0x295)](_0x4b5744,_0x4013fc);return this[_0x1fb85d(0x251)](_0x20405b);}[_0x246bb0(0x295)](_0x4f68aa,_0x316c56){const _0x535d65=_0x246bb0;let _0x4738d3=typeof window>'u'?new URL(_0x4f68aa):new URL(_0x4f68aa,window[_0x535d65(0x2b5)]['origin']);_0x4738d3[_0x535d65(0x2b3)]['set']('sessionTicket',_0x316c56);let _0xa9bdc1=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x535d65(0x2b5)][_0x535d65(0x2e3)]);return _0xa9bdc1[_0x535d65(0x2e5)]('runId')&&_0x4738d3[_0x535d65(0x2b3)][_0x535d65(0x2f4)](_0x535d65(0x24d),_0xa9bdc1[_0x535d65(0x2e5)](_0x535d65(0x24d))),_0x4738d3[_0x535d65(0xc3)]();}async[_0x246bb0(0x3a1)](){const _0x4a19fa=_0x246bb0;var _0x37a6a4;let _0x5cbcdb=this[_0x4a19fa(0xf3)][_0x4a19fa(0x2da)](t[_0x4a19fa(0x139)]),_0x2efb77=(_0x5cbcdb==null?void 0x0:_0x5cbcdb[_0x4a19fa(0xdc)])??t[_0x4a19fa(0x2a5)];return((_0x37a6a4=(await this['_httpService'][_0x4a19fa(0x2e5)](_0x2efb77,{'headers':{'Content-Type':'application/json'}}))[_0x4a19fa(0x391)])==null?void 0x0:_0x37a6a4[_0x4a19fa(0x174)])??'';}};ke=w([C(0x0,(0x0,n[_0x246bb0(0x1a6)])(n[_0x246bb0(0x141)])),C(0x1,(0x0,n['Inject'])(h[_0x246bb0(0x1ef)])),C(0x2,n[_0x246bb0(0x320)]),C(0x3,n['ILogService']),C(0x4,u[_0x246bb0(0x121)])],ke);let Ae=class extends n[_0x246bb0(0x13d)]{constructor(_0x1a1fba,_0x2526c6,_0x2298e1){const _0x4cf5b2=_0x246bb0;super(),this[_0x4cf5b2(0x188)]=_0x1a1fba,this['_httpService']=_0x2526c6,this[_0x4cf5b2(0xf3)]=_0x2298e1;}async['runOnServer'](_0x375fb5,_0x31f8d5,_0x17ba05,..._0x3d7778){const _0x3241f9=_0x246bb0;let _0x9914ce=this[_0x3241f9(0x188)][_0x3241f9(0x30d)]();if(!_0x9914ce)throw Error(_0x3241f9(0x150));let _0x50172d=(this[_0x3241f9(0xf3)][_0x3241f9(0x2da)](t[_0x3241f9(0x2f2)])??t[_0x3241f9(0x25a)])+'/'+_0x375fb5+_0x3241f9(0x2ab)+_0x31f8d5,_0x3f5537={'scriptId':_0x375fb5,'runId':new URL(window['location']['href'])[_0x3241f9(0x2b3)]['get'](_0x3241f9(0x24d))??'','function':_0x31f8d5,'unitId':_0x9914ce[_0x3241f9(0x313)](),'argsOfFunction':JSON['stringify'](_0x3d7778),'invokeId':_0x17ba05[_0x3241f9(0x169)]??'','executionId':_0x17ba05[_0x3241f9(0x249)]??''};try{let _0x528179=await this[_0x3241f9(0x1ac)][_0x3241f9(0x16d)](_0x50172d,{'body':_0x3f5537});return _0x528179[_0x3241f9(0x391)]['error']&&_0x528179[_0x3241f9(0x391)][_0x3241f9(0x1af)][_0x3241f9(0x1c2)]!==b[_0x3241f9(0x27a)]['OK']?_0x3241f9(0xe2):_0x528179[_0x3241f9(0x391)]['result'];}catch{return _0x3241f9(0xe2);}}};Ae=w([C(0x0,n['IUniverInstanceService']),C(0x1,(0x0,n[_0x246bb0(0x1a6)])(h[_0x246bb0(0x1ef)])),C(0x2,n[_0x246bb0(0x320)])],Ae);const je=0x7530,Me=_0x246bb0(0x1f8);var Ne=class extends n[_0x246bb0(0x13d)]{constructor(){const _0x25f4d7=_0x246bb0;super(),S(this,_0x25f4d7(0xfe),(0x0,n['generateRandomId'])()),S(this,_0x25f4d7(0x34e),new Set()),S(this,_0x25f4d7(0x142),new Map()),S(this,'_heartbeatTimer',null),S(this,_0x25f4d7(0x154),new Map()),S(this,_0x25f4d7(0x30c),new Map()),this[_0x25f4d7(0x244)]();}[_0x246bb0(0x20f)](){const _0xd9dad3=_0x246bb0;super['dispose'](),this[_0xd9dad3(0x154)][_0xd9dad3(0x34f)]((_0x551895,_0x13d44a)=>this['_removeClearOtherTimer'](_0x13d44a)),this[_0xd9dad3(0x279)]&&window[_0xd9dad3(0x3a2)](this[_0xd9dad3(0x279)]);}[_0x246bb0(0x184)](_0x5ba969){const _0x2823a3=_0x246bb0;return this[_0x2823a3(0x1ae)](_0x5ba969)[_0x2823a3(0x319)]((0x0,i[_0x2823a3(0x22a)])());}['editingUnit'](_0x4c0735){const _0x180b05=_0x246bb0;this[_0x180b05(0x34e)][_0x180b05(0xcf)]===0x0&&this[_0x180b05(0x2cd)](),this['_selfUnitIDs']['add'](_0x4c0735),this[_0x180b05(0xd7)]({'type':0x0,'memberID':this[_0x180b05(0xfe)],'unitIDs':[_0x4c0735],'isForwarded':!0x1});}[_0x246bb0(0x3a5)](_0x2f06ae){const _0x1f68f9=_0x246bb0;this['_selfUnitIDs'][_0x1f68f9(0x296)](_0x2f06ae),this[_0x1f68f9(0x34e)][_0x1f68f9(0xcf)]===0x0&&this['_heartbeatTimer']&&window[_0x1f68f9(0x3a2)](this[_0x1f68f9(0x279)]);}[_0x246bb0(0x244)](){const _0x3b1347=_0x246bb0;this[_0x3b1347(0x275)]((0x0,n['toDisposable'])((0x0,i[_0x3b1347(0x15e)])(window,_0x3b1347(0x133))[_0x3b1347(0x173)](_0x2f3ee5=>{const _0xb1291c=_0x3b1347;if(_0x2f3ee5[_0xb1291c(0x13f)]!==Me||!_0x2f3ee5[_0xb1291c(0x30b)])return;let _0x5f1f6c=JSON[_0xb1291c(0x1ab)](_0x2f3ee5[_0xb1291c(0x30b)]);this['_handleEvent'](_0x5f1f6c);}))),window['addEventListener']('unload',()=>this[_0x3b1347(0xd7)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x3b1347(0x34e)])}));}[_0x246bb0(0x2fd)](_0x18f972){const _0x3e34b0=_0x246bb0;switch(_0x18f972['type']){case 0x0:this[_0x3e34b0(0x137)](_0x18f972);break;case 0x1:this['_handleLeaveEvent'](_0x18f972);break;case 0x2:this[_0x3e34b0(0x114)](_0x18f972);break;}}[_0x246bb0(0x137)](_0xf94120){const _0x1896b4=_0x246bb0;let {unitIDs:_0x587987,memberID:_0x11c833,isForwarded:_0x2249a6}=_0xf94120;_0x587987['forEach'](_0x205a75=>{const _0x174545=_0x55a3;if(!_0x2249a6&&this[_0x174545(0x142)][_0x174545(0x2eb)](_0x205a75)&&this[_0x174545(0x1ae)](_0x205a75)[_0x174545(0x264)](t[_0x174545(0x252)][_0x174545(0xc9)]),!this['_unitOnClients']['has'](_0x205a75)||!this[_0x174545(0x142)]['get'](_0x205a75)[_0x174545(0x2eb)](_0x11c833)){let _0x4cb2da=this[_0x174545(0x142)][_0x174545(0x2e5)](_0x205a75)||new Set();_0x4cb2da['add'](_0x11c833),this[_0x174545(0x142)][_0x174545(0x2f4)](_0x205a75,_0x4cb2da),this[_0x174545(0x27c)](_0x11c833);}}),_0x2249a6||this[_0x1896b4(0xd7)]({'type':0x0,'memberID':this[_0x1896b4(0xfe)],'unitIDs':[...this[_0x1896b4(0x34e)]],'isForwarded':!0x0});}[_0x246bb0(0x27c)](_0x527c55){const _0x48dec9=_0x246bb0;this['_removeClearOtherTimer'](_0x527c55);let _0x261097=window[_0x48dec9(0x3c4)](()=>{const _0x221de3=_0x48dec9;this['_unitOnClients'][_0x221de3(0x34f)](_0x5e5387=>{const _0x2c2ac0=_0x221de3;_0x5e5387[_0x2c2ac0(0x296)](_0x527c55);});},je*0x2);this[_0x48dec9(0x154)][_0x48dec9(0x2f4)](_0x527c55,_0x261097);}[_0x246bb0(0xf6)](_0x11fc0){const _0x4ccbaf=_0x246bb0;if(this[_0x4ccbaf(0x154)][_0x4ccbaf(0x2eb)](_0x11fc0)){let _0x275321=this[_0x4ccbaf(0x154)][_0x4ccbaf(0x2e5)](_0x11fc0);_0x275321&&window['clearTimeout'](_0x275321),this[_0x4ccbaf(0x154)]['set'](_0x11fc0,null);}}['_handleLeaveEvent'](_0x1d52ba){const _0x4585b0=_0x246bb0;let {memberID:_0x3a94d2,unitIDs:_0x5c50c8}=_0x1d52ba;_0x5c50c8[_0x4585b0(0x34f)](_0x29717b=>{const _0xf2b3c5=_0x4585b0;var _0x35f00c;let _0x48395e=this['_unitOnClients'][_0xf2b3c5(0x2e5)](_0x29717b);_0x48395e&&(_0x48395e[_0xf2b3c5(0x296)](_0x3a94d2),(_0x35f00c=this['_ensureSubject'](_0x29717b))==null||_0x35f00c['next'](_0x48395e[_0xf2b3c5(0xcf)]===0x0?t[_0xf2b3c5(0x252)]['NO_OTHER_CLIENTS_EDITING']:t[_0xf2b3c5(0x252)][_0xf2b3c5(0xc9)]));}),this[_0x4585b0(0xf6)](_0x3a94d2);}[_0x246bb0(0x114)](_0x40b813){const _0x344477=_0x246bb0;this['_scheduleClearOtherTimer'](_0x40b813[_0x344477(0x171)]);}[_0x246bb0(0xd7)](_0xba96db){const _0x553b1a=_0x246bb0;localStorage['setItem'](Me,JSON[_0x553b1a(0x146)](_0xba96db));}['_scheduleHeartbeat'](){const _0x5f4ae6=_0x246bb0;this[_0x5f4ae6(0x279)]=window['setInterval'](()=>{const _0x46ca48=_0x5f4ae6;this[_0x46ca48(0xd7)]({'type':0x2,'memberID':this[_0x46ca48(0xfe)]});},je);}['_ensureSubject'](_0x5cd807){const _0x35bfa7=_0x246bb0;return this['_unitStatus'][_0x35bfa7(0x2eb)](_0x5cd807)||this[_0x35bfa7(0x30c)][_0x35bfa7(0x2f4)](_0x5cd807,new i[(_0x35bfa7(0x2b7))](t[_0x35bfa7(0x252)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x35bfa7(0x2e5)](_0x5cd807);}};Object[_0x246bb0(0x120)](exports,_0x246bb0(0x2a8),{'enumerable':!0x0,'get':function(){return ke;}}),Object['defineProperty'](exports,_0x246bb0(0x151),{'enumerable':!0x0,'get':function(){return T;}}),exports[_0x246bb0(0x3d1)]=U,Object[_0x246bb0(0x120)](exports,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return Ae;}}),exports['SheetCollabCursorShape']=xe,Object[_0x246bb0(0x120)](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x246bb0(0x1e0)]=Ne;
|
|
1
|
+
const _0x31b914=_0x432a;(function(_0x3a2f13,_0x411182){const _0x5c72e0=_0x432a,_0x39e5a5=_0x3a2f13();while(!![]){try{const _0x239c14=-parseInt(_0x5c72e0(0x29f))/0x1*(parseInt(_0x5c72e0(0x1ab))/0x2)+parseInt(_0x5c72e0(0x219))/0x3+parseInt(_0x5c72e0(0x376))/0x4*(-parseInt(_0x5c72e0(0x111))/0x5)+-parseInt(_0x5c72e0(0x16e))/0x6*(parseInt(_0x5c72e0(0x293))/0x7)+parseInt(_0x5c72e0(0x29a))/0x8+-parseInt(_0x5c72e0(0x164))/0x9+parseInt(_0x5c72e0(0x182))/0xa;if(_0x239c14===_0x411182)break;else _0x39e5a5['push'](_0x39e5a5['shift']());}catch(_0x147ff5){_0x39e5a5['push'](_0x39e5a5['shift']());}}}(_0x2abb,0x95e03),Object['defineProperty'](exports,Symbol[_0x31b914(0x2f3)],{'value':'Module'}));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(_0x18b95b){const _0x3abc40=_0x31b914;switch(_0x18b95b){case e[_0x3abc40(0x2f9)][_0x3abc40(0x1aa)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x188)],{}),'colorClass':_0x3abc40(0x1ed),'i18nKey':_0x3abc40(0x254),'tooltipKey':_0x3abc40(0x1ac),'clickable':!0x0,'indicator':_0x3abc40(0x249)};case e[_0x3abc40(0x2f9)][_0x3abc40(0x2aa)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x188)],{}),'colorClass':_0x3abc40(0x2d8),'i18nKey':_0x3abc40(0x1f5),'clickable':!0x1,'indicator':_0x3abc40(0x249)};case e['CollaborationStatus'][_0x3abc40(0x33b)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3abc40(0x212),'clickable':!0x1,'indicator':'spin'};case e[_0x3abc40(0x2f9)][_0x3abc40(0x367)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x3a9)],{}),'colorClass':_0x3abc40(0x2a6),'i18nKey':_0x3abc40(0x113),'clickable':!0x1,'indicator':_0x3abc40(0x249)};case e[_0x3abc40(0x2f9)][_0x3abc40(0x1d7)]:case e[_0x3abc40(0x2f9)]['AWAITING_WITH_PENDING']:return{'icon':(0x0,c[_0x3abc40(0x311)])(o['LoadingMultiIcon'],{}),'colorClass':'univer-text-blue-500','i18nKey':_0x3abc40(0x24a),'clickable':!0x1,'indicator':'spin'};case e['CollaborationStatus']['PENDING']:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x38c)],{}),'colorClass':'univer-text-blue-500','i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x3abc40(0x3f3)};case e[_0x3abc40(0x2f9)][_0x3abc40(0x1dc)]:return{'icon':(0x0,c[_0x3abc40(0x311)])(o[_0x3abc40(0x3a9)],{}),'colorClass':_0x3abc40(0x3ab),'i18nKey':_0x3abc40(0x266),'clickable':!0x1,'indicator':_0x3abc40(0x249)};}}function te(_0x4e5000){const _0x1c732d=_0x31b914;let {status$:_0x697409}=_0x4e5000,_0xa729ca=(0x0,n[_0x1c732d(0x146)])(_0x697409,e[_0x1c732d(0x2f9)][_0x1c732d(0x367)]),_0x358d6a=(0x0,n[_0x1c732d(0x1fc)])(t['LocaleService']),_0x5ccecd=(0x0,n[_0x1c732d(0x1fc)])(e[_0x1c732d(0x137)]),_0x9fa3da=(0x0,s[_0x1c732d(0x134)])(()=>ee(_0xa729ca),[_0xa729ca]),_0x470906=_0xa729ca!==e[_0x1c732d(0x2f9)]['OFFLINE'],_0x5ece2f=_0x358d6a['t'](_0x9fa3da['i18nKey']),_0x71fb5c=_0x9fa3da[_0x1c732d(0x1de)]?_0x358d6a['t'](_0x9fa3da['tooltipKey']):_0x5ece2f,_0x476079=(0x0,s['useCallback'])(()=>{_0x470906||_0x5ccecd['reconnect']();},[_0x470906,_0x5ccecd]),_0x238dc0=(0x0,s[_0x1c732d(0x390)])(_0x486955=>{const _0x292a31=_0x1c732d;!_0x470906&&(_0x486955[_0x292a31(0x2fe)]===_0x292a31(0x1c0)||_0x486955['key']==='\x20')&&(_0x486955[_0x292a31(0x235)](),_0x5ccecd[_0x292a31(0x1b8)]());},[_0x470906,_0x5ccecd]),_0x2861ad=(0x0,c[_0x1c732d(0x311)])(_0x1c732d(0x128),{'className':(0x0,a[_0x1c732d(0x3e4)])(_0x1c732d(0x348),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x9fa3da['colorClass'],{'univer-animate-spin':_0x9fa3da[_0x1c732d(0x101)]===_0x1c732d(0x3f3),'univer-animate-pulse':_0x9fa3da[_0x1c732d(0x101)]==='pulse'}),'aria-hidden':_0x1c732d(0x149),'children':_0x9fa3da[_0x1c732d(0x304)]}),_0x41396b=(0x0,c['jsx'])('span',{'className':(0x0,a[_0x1c732d(0x3e4)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x1c732d(0x3f7),_0x1c732d(0x262),_0x1c732d(0x15f),_0x1c732d(0x3b2),{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700':_0x9fa3da[_0x1c732d(0x1ef)],'univer-cursor-default':!_0x9fa3da['clickable']}),'children':_0x2861ad});return _0x9fa3da[_0x1c732d(0x1ef)]?(0x0,c[_0x1c732d(0x311)])(a['Tooltip'],{'title':_0x71fb5c,'placement':'bottom','children':(0x0,c[_0x1c732d(0x311)])(_0x1c732d(0x39f),{'type':_0x1c732d(0x39f),'onClick':_0x476079,'onKeyDown':_0x238dc0,'className':(0x0,a[_0x1c732d(0x3e4)])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x1c732d(0x3da),_0x1c732d(0x227),_0x1c732d(0x3b6)),'aria-label':_0x5ece2f+_0x1c732d(0x3fa)+_0x71fb5c,'role':_0x1c732d(0x3dc),'aria-live':_0x1c732d(0x312),'aria-atomic':'true','children':_0x41396b})}):(0x0,c['jsx'])(a[_0x1c732d(0x130)],{'title':_0x71fb5c,'placement':'bottom','children':(0x0,c['jsx'])(_0x1c732d(0x3bd),{'className':(0x0,a[_0x1c732d(0x3e4)])(_0x1c732d(0x1ec),_0x1c732d(0x3da),_0x1c732d(0x227)),'aria-label':_0x5ece2f,'role':_0x1c732d(0x3dc),'aria-live':_0x1c732d(0x312),'aria-atomic':_0x1c732d(0x149),'children':_0x41396b})});}function y(_0x152fd1){'@babel/helpers - typeof';const _0x2c3d7d=_0x31b914;return y=typeof Symbol=='function'&&typeof Symbol[_0x2c3d7d(0x286)]==_0x2c3d7d(0x142)?function(_0xcae7f2){return typeof _0xcae7f2;}:function(_0x28aa27){const _0xea5e7d=_0x2c3d7d;return _0x28aa27&&typeof Symbol==_0xea5e7d(0x261)&&_0x28aa27[_0xea5e7d(0x206)]===Symbol&&_0x28aa27!==Symbol[_0xea5e7d(0x2f7)]?_0xea5e7d(0x142):typeof _0x28aa27;},y(_0x152fd1);}function ne(_0x22e90e,_0x4db68f){const _0x352d98=_0x31b914;if(y(_0x22e90e)!='object'||!_0x22e90e)return _0x22e90e;var _0x1130e6=_0x22e90e[Symbol['toPrimitive']];if(_0x1130e6!==void 0x0){var _0x1bfec9=_0x1130e6[_0x352d98(0x13f)](_0x22e90e,_0x4db68f||_0x352d98(0x160));if(y(_0x1bfec9)!=_0x352d98(0x22b))return _0x1bfec9;throw TypeError(_0x352d98(0x14d));}return(_0x4db68f===_0x352d98(0x184)?String:Number)(_0x22e90e);}function re(_0x5c49ad){const _0x350013=_0x31b914;var _0x3be854=ne(_0x5c49ad,_0x350013(0x184));return y(_0x3be854)==_0x350013(0x142)?_0x3be854:_0x3be854+'';}function b(_0x4ebcb1,_0x84236,_0x2c71f5){const _0x1849a1=_0x31b914;return(_0x84236=re(_0x84236))in _0x4ebcb1?Object[_0x1849a1(0x19a)](_0x4ebcb1,_0x84236,{'value':_0x2c71f5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebcb1[_0x84236]=_0x2c71f5,_0x4ebcb1;}function x(_0x59d725,_0x42ec88){return function(_0x5ca2f8,_0x34b401){_0x42ec88(_0x5ca2f8,_0x34b401,_0x59d725);};}function S(_0xb6472e,_0x5ee25d,_0x45834f,_0x4c25e0){const _0x582688=_0x31b914;var _0x312ec5=arguments[_0x582688(0x18a)],_0x505322=_0x312ec5<0x3?_0x5ee25d:_0x4c25e0===null?_0x4c25e0=Object['getOwnPropertyDescriptor'](_0x5ee25d,_0x45834f):_0x4c25e0,_0xda8db0;if(typeof Reflect==_0x582688(0x22b)&&typeof Reflect[_0x582688(0x22e)]==_0x582688(0x261))_0x505322=Reflect[_0x582688(0x22e)](_0xb6472e,_0x5ee25d,_0x45834f,_0x4c25e0);else{for(var _0x3176ff=_0xb6472e['length']-0x1;_0x3176ff>=0x0;_0x3176ff--)(_0xda8db0=_0xb6472e[_0x3176ff])&&(_0x505322=(_0x312ec5<0x3?_0xda8db0(_0x505322):_0x312ec5>0x3?_0xda8db0(_0x5ee25d,_0x45834f,_0x505322):_0xda8db0(_0x5ee25d,_0x45834f))||_0x505322);}return _0x312ec5>0x3&&_0x505322&&Object[_0x582688(0x19a)](_0x5ee25d,_0x45834f,_0x505322),_0x505322;}let C=class extends t[_0x31b914(0x382)]{constructor(_0x540f20,_0x40524f,_0x36879d,_0x5f06a0,_0x243e80){const _0x2e75f4=_0x31b914;super(),this[_0x2e75f4(0x320)]=_0x540f20,this[_0x2e75f4(0x2d6)]=_0x40524f,this[_0x2e75f4(0x18c)]=_0x36879d,this[_0x2e75f4(0x1ae)]=_0x5f06a0,this[_0x2e75f4(0x1f2)]=_0x243e80,b(this,_0x2e75f4(0x296),new r['BehaviorSubject'](e[_0x2e75f4(0x2f9)]['NOT_COLLAB'])),b(this,_0x2e75f4(0x17e),new Map()),this[_0x2e75f4(0x39e)](),this[_0x2e75f4(0x2cc)](),this[_0x2e75f4(0x3ac)]();}[_0x31b914(0x1bd)](){const _0x10f494=_0x31b914;this['_presenceStatusRegistrations']['forEach'](_0x2197e6=>_0x2197e6[_0x10f494(0x1bd)]()),this[_0x10f494(0x17e)]['clear'](),this[_0x10f494(0x296)]['complete'](),super['dispose']();}[_0x31b914(0x2cc)](){const _0xf83026=_0x31b914;this[_0xf83026(0x1c5)]((0x0,r[_0xf83026(0x2c9)])(this[_0xf83026(0x320)]['focused$'],this[_0xf83026(0x320)][_0xf83026(0x2d9)](t[_0xf83026(0x2f0)][_0xf83026(0x221)]),this[_0xf83026(0x320)][_0xf83026(0x2d9)](t['UniverInstanceType'][_0xf83026(0x321)]))[_0xf83026(0x1c3)]((0x0,i[_0xf83026(0x2a9)])(()=>ie(this[_0xf83026(0x320)])),(0x0,i['distinctUntilChanged'])(),(0x0,r[_0xf83026(0x105)])(_0x283c5d=>_0x283c5d?this[_0xf83026(0x18c)][_0xf83026(0x207)](_0x283c5d):(0x0,r['of'])(null)),(0x0,r[_0xf83026(0x105)])(_0x3838cc=>_0x3838cc?_0x3838cc['status$']:(0x0,r['of'])(e[_0xf83026(0x2f9)][_0xf83026(0x367)])))[_0xf83026(0x151)](_0x1bd7e9=>{const _0x21f4dc=_0xf83026;this[_0x21f4dc(0x296)]['next'](_0x1bd7e9);}));}[_0x31b914(0x39e)](){const _0x37d145=_0x31b914;this['disposeWithMe'](this[_0x37d145(0x1ae)][_0x37d145(0x400)](n['BuiltInUIPart'][_0x37d145(0x19c)],()=>(0x0,n[_0x37d145(0x381)])(ae({'status$':this[_0x37d145(0x296)]['asObservable']()}),this[_0x37d145(0x2d6)])));}[_0x31b914(0x3ac)](){const _0x24e188=_0x31b914;let _0x2d0e21=this['_presenceAdapterRegistry'][_0x24e188(0x1e2)][_0x24e188(0x151)](_0x4c582a=>{this['_syncPresenceStatusComponents'](_0x4c582a);});this['disposeWithMe']((0x0,t['toDisposable'])(()=>_0x2d0e21[_0x24e188(0x338)]()));}['_syncPresenceStatusComponents'](_0x6e79e5){const _0x34b49d=_0x31b914;let _0x425fc3=new Map(_0x6e79e5['filter'](_0x3dd5f1=>_0x3dd5f1[_0x34b49d(0x200)]!=null)['map'](_0x269573=>[_0x269573[_0x34b49d(0x238)],_0x269573]));this[_0x34b49d(0x17e)]['forEach']((_0x5ba06e,_0x4a6560)=>{const _0x2fd64d=_0x34b49d;_0x425fc3['has'](_0x4a6560)||(_0x5ba06e[_0x2fd64d(0x1bd)](),this[_0x2fd64d(0x17e)][_0x2fd64d(0x255)](_0x4a6560));}),_0x425fc3[_0x34b49d(0x363)]((_0xa5afd4,_0xbdee54)=>{const _0x3b917c=_0x34b49d;this[_0x3b917c(0x17e)][_0x3b917c(0x218)](_0xbdee54)||this[_0x3b917c(0x3a8)](_0xa5afd4);});}[_0x31b914(0x3a8)](_0x54b7e2){const _0x374582=_0x31b914;let _0x48e17b=_0x54b7e2[_0x374582(0x200)];if(!_0x48e17b)return;let _0xee1625=new t[(_0x374582(0x27e))](),_0x5c573d=new r[(_0x374582(0x336))](e[_0x374582(0x2f9)][_0x374582(0x367)]);_0xee1625['add']((0x0,t[_0x374582(0x406)])(()=>_0x5c573d['complete']())),_0xee1625[_0x374582(0x230)](this[_0x374582(0x1ae)]['registerComponent'](_0x48e17b,()=>(0x0,n[_0x374582(0x381)])(ae({'status$':_0x5c573d[_0x374582(0x2f2)]()}),this[_0x374582(0x2d6)])));let _0x36d9c8=this['_univerInstanceService'][_0x374582(0x2d9)](_0x54b7e2['unitType'])[_0x374582(0x1c3)]((0x0,i[_0x374582(0x2a9)])(_0x196b2d=>(_0x196b2d==null?void 0x0:_0x196b2d[_0x374582(0x30c)]())??null),(0x0,i[_0x374582(0x17a)])(),(0x0,r[_0x374582(0x105)])(_0x312721=>_0x312721?this[_0x374582(0x18c)][_0x374582(0x207)](_0x312721):(0x0,r['of'])(null)),(0x0,r['switchMap'])(_0x5b78aa=>(_0x5b78aa==null?void 0x0:_0x5b78aa[_0x374582(0x2f8)])??(0x0,r['of'])(e[_0x374582(0x2f9)]['NOT_COLLAB'])))[_0x374582(0x151)](_0x5ba69b=>_0x5c573d['next'](_0x5ba69b));_0xee1625[_0x374582(0x230)]((0x0,t[_0x374582(0x406)])(()=>_0x36d9c8[_0x374582(0x338)]())),this['_presenceStatusRegistrations'][_0x374582(0x3c2)](_0x54b7e2[_0x374582(0x238)],_0xee1625);}};C=S([x(0x0,t[_0x31b914(0x3e9)]),x(0x1,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x2,(0x0,t['Inject'])(e[_0x31b914(0x385)])),x(0x3,n['IUIPartsService']),x(0x4,(0x0,t[_0x31b914(0x3f6)])(n[_0x31b914(0x3fe)]))],C);function ie(_0x14994f){const _0x4b7994=_0x31b914;let _0x5b856b=_0x14994f[_0x4b7994(0x2ef)](),_0x144362=_0x5b856b==null?void 0x0:_0x5b856b[_0x4b7994(0x30c)]();if(_0x144362&&!(0x0,t[_0x4b7994(0x2fa)])(_0x144362))return _0x144362;let _0x346a34=_0x14994f[_0x4b7994(0x402)](t[_0x4b7994(0x2f0)][_0x4b7994(0x221)]),_0x552d0d=_0x346a34==null?void 0x0:_0x346a34[_0x4b7994(0x30c)]();if(_0x552d0d&&!(0x0,t[_0x4b7994(0x2fa)])(_0x552d0d))return _0x552d0d;let _0x1f4426=_0x14994f['getCurrentUnitOfType'](t[_0x4b7994(0x2f0)][_0x4b7994(0x321)]);if(_0x1f4426)return _0x1f4426[_0x4b7994(0x30c)]();let _0x2bba11=_0x14994f[_0x4b7994(0x36c)](t[_0x4b7994(0x2f0)]['UNIVER_DOC'])[_0x4b7994(0x358)](_0x59f0f1=>!(0x0,t[_0x4b7994(0x2fa)])(_0x59f0f1['getUnitId']()));return _0x2bba11?_0x2bba11[_0x4b7994(0x30c)]():null;}function _0x2abb(){const _0x1d0969=['transformMutationsWithChangeset','runId','getItem','_startEntity','deepClone','startOffset','_initEvent','clearRemotePresences','update','saveTaskMap','addClipboardHook','_disabled','override','functionsExecutedState','getMemberID','endColumn','_releaseCalculationLimit','JOIN_ROOM_FAILED','columnGroupId','BehaviorSubject','_name','unsubscribe','getSkeleton','RECT','FETCH_MISS','InsertRowCommandId','_showText','collab-rect-range-','SOCKET_FAILED','value','_collaborationSessionService','_setFormulaLimitStatus','_assignedColors','init','size','deserializeRangeWithSheet','focusedId','univer-flex\x20univer-items-center\x20univer-justify-center','createElement','content','InsertRangeMoveRightCommandId','_disposeEntity','_setupBeforeClosingHandler','totalFormulasToCalculate','search','_bindAdapter','currentSkeleton$','labelPosition','backgroundColor','Vector2','_entityInit$','enableFrontendLog','_initWindowErrorListener','find','CollaborationUIEventId','ticket','getCurrentSelections','SheetsSelectionsService','CommandType','highlight','strokeWidth','drawWith','_initResize','catch','forEach','UniverDocsPlugin','IMessageService','INotificationService','NOT_COLLAB','setUndoRedoMutationParamsCache','_pointerMoveDisposable','IDocClipboardService','_memberID','getAllUnitsForType','uni.network.url-service','_selfUnitIDs','cursorInfo$','registerDependencies','debounce','then','_clearTimeoutState','assignAColorForMemberID','redoState','72PkwxFz',':backup:','NO_OTHER_CLIENTS_EDITING','_isVisibleUnit','_drawAnchor','Error','makeDirty','stage','offsetY','_dataLoaderService','_hovered','connectInjector','Disposable','_adapter','next','CollaborationController','replace','transform','WebBrowserSingleActiveUnitService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','LocaleService','IConfigService','LoadingMultiIcon','toRgbString','rgba','_startCalculationLimit','useCallback','from','COLORS','sessionTicket','startsWith','isTransformMutationFailure','ONLINE','_hasFormulaInDirtyRanges','debounceTime','_currentUsage','_onCursorDelete','_unitStatus','UniverRenderEnginePlugin','editingUnit','_initStatusComponent','button','_adapterDisposables','highlightSecond','_cursorInfo$','collaboration-client-ui.formula.calculation.started','reload','SessionStatus','Injector','getActiveSheet','_registerPresenceStatusComponent','OnLineIcon','result','univer-text-green-500','_initPresenceStatusComponents','/universer-api/license/formula/limit/start','_getLighterColor','/universer-api/license/formula/limit/done','_docTransformStateCacheService','getViewport','dark:focus:!univer-ring-offset-gray-800','onStarting','_render','_syncEditingCollabCursorService','univer-appearance-none','_drawTextRange','_cursors','timer','_updateCollabCursors','_initDependencies','_transformPreviousActiveRange','div','sessionStatus$','_transformUndoRedoStack','_removeClearOtherTimer','clearInterval','set','registerRenderModule','requireSession','_isBlinkVisible','FromArray','_offsetY','_labelPosition','UniverLicensePlugin','mapTo','exhaustSavingTask','replaceDocRanges','lineTo','fillRule','eventID','getCollabCursors$','color','_context','_timeoutState$','saveImage','join','RemoteUniscriptService','_handleHeartbeatEvent','handleInsertRangeMoveRight','hide','univer-border-none\x20univer-bg-transparent','_updateMessage','status','subunit','OTHER_CLIENTS_EDITING','lineno','totalBlocks','closePath','pushState','registerBeforeClose','clsx','_urlService','handleIRemoveCol','slice','[LogService\x20Error]:\x20','IUniverInstanceService','_scheduleSaving','right','version','combineLatest','GLOBAL','getScrollXYInfoByViewport','addEventListener','width','params','spin','getTypeOfUnitDisposed$','_config','Inject','univer-h-8\x20univer-w-8\x20univer-rounded-lg','min','UniverCollaborationClientPlugin','\x20-\x20','setParam','_configService','subscribeEvent','IUnitPresenceUIAdapterRegistry','setShapeProps','registerComponent','small','getCurrentUnitOfType','DocIMEInputManagerService','ISocketService','updateOfflineData','toDisposable','_scheduleClearOtherTimer','WebSocketService','primary','ERROR','registerRefRange','addObject','_createSocketURL','SUCCESS','enableDocumentCollaborationUI','message','rgba(255,\x20255,\x20255,\x200.01)','_syncAdapters','indicator','getValue','loadUnit','snapshot-loading-timeout','switchMap','addObjects','_cursorShapes','_color','_refRangeService','_cursor','getRangePointData','BrowserCollaborationSocketService','IURLService','Rect','_anchorDot','SetTextSelectionsOperation','241320rTabEr','left','collaboration-client-ui.collabStatus.notCollab','clear','getUnit','_heartbeatTimer','stringify','collaboration-client-ui.config','startRow','MemberService','_themeService','_highlightSecond','_docTransformSelectionsService','getCurrentSkeleton','EffectRefRangId','rgba(','_handleJoinEvent','_getAnchorBounding','_entities','DocStateChangeManagerService','findNodePositionByCharIndex','_pollingInterval','transformIMECache','span','_monkeyPatchLogService','_getMergeRange','FOOTER','_disposed','_handleLeaveEvent','SnapshotLoadStage','_removeRemotePresence','Tooltip','_sheetSkeletonManagerService','SetFormulaCalculationNotificationMutation','_lastPointer','useMemo','_draw','_httpService','CollaborationSessionService','getDocumentSkeletonColumnPagePathInfo','_docClipboardService','startColumn','jiqing.500','_unitOnClients','_highlight','_stopBlinking','call','segmentPage','_blinkIntervalTimer','symbol','getLocalPresence','measureText','doc.mutation.rich-text-editing','useObservable','LOADING_BLOCKS','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','true','_transformService','with','_instanceService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ThemeService','unit','@univerjs-pro/collaboration-client-ui','subscribe','_collabCursorController','m2Prime','collaboration-client-ui.formula.calculation.waiting','show','socket$','IUIPartsService','getRenderUnitById','SetFormulaCalculationStartMutation','_colorIndex','timeoutId','Shape','_applyCommand','_clearRemotePresences','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','default','red.300','yellow.400','collaboration-client-ui.snapshotLoading.refresh','1284993fkUdft','type','getSheetObject','unitId','loadOfflineData','jsxs','currentUsage','handleIRemoveRow','_getFormulaLimitStatus','USERS_LEAVE','552bNrhvW','handleInsertRow','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','maxFormulaLimit','_localCacheService','onPointerLeave$','generateRandomId','history','body','getActiveRange','rgb','tableId','distinctUntilChanged','pointer','?taskId=','_startDocCollabCursor','_presenceStatusRegistrations','getFormulaLimitStatusUrl','onCommandExecuted','filter','12622520ZZAtZW','1.0.0-beta.2','string','SetSelectionsOperation','SheetSkeletonManagerService','isFormulaString','OffLineIcon','HEADER','length','getAncestorScale','_collaborationController','clearTimeout','_onRefRangeChange','mutations','MessageType','DEFAULT_WS_SESSION_TICKET_URL','range','collaboration-client-ui.formula.calculation.unable','_initEntityListener','ITransformService','subUnitId','getSheetId','isFinite','endRow','defineProperty','removeParam','HEADER_MENU','CLOSE_ROOM','[CollaborationDataLoaderController]','_uploadLog','_initUserListener','UPDATE_CURSOR','getColor','_session','_setupSubUnitSync','_imageIoService','_maxFormulaLimit','RxDisposable','columnIndex','text','OFFLINE','248726fYGyTo','collaboration-client-ui.collabClient.tooltip.reconnect','getStateCache','_uiPartsService','RemoveRowCommandId','_latestStates','selectedIds','touchDependencies','DocumentSkeletonPageType','parseInt','font','green.600','SetWorksheetActivateCommand','reconnect','enableLocalCache','kind','_range','transformRemoteChangeset','dispose','replaceState','isEditing','Enter','fillText','state$','pipe','shareReplay','disposeWithMe','_checkCalculationAvailable','onPointerMove$','canRenderAnchor','_notificationService','setInterval','_refreshCollabCursors','stageInfo','_saveTaskMap','_lastResponseTimestamp','CanceledError','_startSheetCollabCursor','canRenderSelection','_removeCollabCursors','timeoutState$','timedOut','_getSaveTimeout','createIdentifier','AWAITING','textRanges','urlChange$','DesktopCollaborationStatusDisplayController','entries','SYNCED','application/json','tooltipKey','location','UniverDocsUIPlugin','OTHER_CLIENT_EDITING','adapters$','invokeId','0.2)','_scheduleHeartbeat','runOnServer','_registerDependencies','name','LOCAL_CACHE_INTERVAL_KEY','BuiltInUIPart','SOCKET_FAILED_RETRY','univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-text-red-500','_hideTimer','clickable','PERMISSION_DENIED','_toggleOffline','_presenceAdapterRegistry','RevisionService','dispose$','collaboration-client-ui.collabStatus.conflict','_onCursorUpdate','activate','CollaborationEvent','setActiveRange','row','_updateSubUnitFromURLParams','useDependency','collaboration-client-ui.session.will-retry','DataLoaderService','collaboration-client-ui.conflict.title','statusUIPart','split','disposeUnit','_initialized','_docSyncEditingCollabCursorService','_roomMembers$','constructor','getCollabEntity$','code','\x20at\x20','collaboration-client-ui.permission.title','_handleCursorUpdate','_docSelectionManagerService','_cachedData','_clearOtherTimers','RegularPolygon','_snapshotLoadingService','SetDocZoomRatioOperation','collaboration-client-ui.collabStatus.fetchMiss','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_clearPolling','getParam','selection','onMouseMove','has','1506306PjJuLw','Loading','_collaborationUIEventService','_logService','moveTo','presenceKind','beginPath','post','UNIVER_DOC','_taskIds',',\x200.2)','ILocalStorageService','saveOfflineData','save','univer-m-0\x20univer-p-0','_sendLocalPresence','Failed','DeleteRangeMoveUpCommandId','object','_docSkeleton','restore','decorate','transformMutation','add','collabCursorState$','TEXT_RANGE_LAYER_INDEX','_localStorageService','Button','preventDefault','[Unhandled\x20Rejection]:\x20','_scene','unitType','setStateCache','_colorAssignService','_textBubble','_blinkTimer','ErrorCode','UnitStatus','_init','_handleHover','_startBlinking','_localeService','_blockProgressWatches','IImageIoService','_renderManagerService','get','remove','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','static','collaboration-client-ui.collabStatus.syncing','collaboration-client-ui.permission.content','evenodd','loadedBlocks','handleMoveRange','Warning','number','TEXT','fillStyle','/run/','collaboration-client-ui.collabStatus.offline','delete','takeUntil','getSheetBySheetId','bind','searchParams','getCellIndexByOffset','arc','resize','ColorKit','collab-text-anchor-','_online','RichTextEditingMutation','function','univer-transition-all\x20univer-duration-200','roomMembers','_send','alert','collaboration-client-ui.collabStatus.synced','_shapes','triggerDblclick','_id','_collabCursorState$','collaboration-client-ui.collaboration.single-unit.warning','executeCommand','pageIndex','_messageService','colno','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_anchor','_initUnhandledRejectionListener','runRefRangeMutations','_adapterRegistry','labelHorizontalPosition','handleDeleteRangeMoveLeft','transformSelections','_memberService','_updateLocalCursor','startFormulaLimitUrl','getLocalCacheKey','getCoordByCell','_toggleOnline','DisposableCollection','_revisionService','setConfig','column','getTypeOfUnitAdded$','dirtyRanges','_getSessionTicket','collaboration-client-ui.snapshotLoading.timeout','iterator','activeSheet$','unhandledrejection','storage','ranges','disableLocalCache','_doCreateSocket','handleDeleteRangeMoveUp','mergeOverrideWithDependencies','getMergeData','_handleEvent','getConfig','values','45997dhtZom','throttleTime','getCurrentRevOfUnit','_status$','send','localPresence$','beforeCommandExecuted','6709496dZALUP','collaboration-client-ui.session.collaboration-timeout','MoveRangeCommandId','cursorInfo','[RemoteUniscriptService]:\x20no\x20focused\x20unit','3Bvdwty','syncEditingCollabCursor','_drawRectRange','DocCollaborationEntity','_commandService','DocSelectionManagerService','undoState','univer-text-gray-400','_eventUnsubscribe','_messageIds','map','CONFLICT','SnapshotLoadingService','reason','_saveCache','_docSkeletonManagerService','_backgroundColor','now','onPointerEnter$','currentTheme$','getUndoRedoMutationParamsCache','createSocket','transformStateCache','data','Workbook','popstate','_labelHorizontalPosition','toString','/universer-api/frontend/logs','event$','sheetId','bottom','some','getCoordRelativeToViewport','height','options','unload','parse','_docStateChangeManagerService','getMember','onRendered','NodePositionConvertToCursor','merge','_initCommandExecutedListener','createInstance','_initStatusListener','releaseFormulaLimitUrl','_pendingEntities','_updateURLWithCurrentState','top','unshift','throttle','Unknown\x20user','error','registerCommand','_injector','setItem','univer-text-orange-500','getCurrentTypeOfUnit$','setAlpha','setTimeout','getColorFromTheme','_clearBlockProgressWatch','ISnapshotServerService','imageSourceType','isTransformMutationsWithChangesetSuccess','isArray','entityInit$','ILogService','href','purple.300','packageName','every','DOC_RANGE_TYPE','Tools','_checkAndWaitForCalculationPermission','_registerRenderDependencies','unitID','Rectangle','fill','getFocusedUnit','UniverInstanceType','getDocRanges','asObservable','toStringTag','memberID','_hover','removeEventListener','prototype','status$','CollaborationStatus','isInternalEditorID','ICommandService','newValue','InsertRangeMoveDownCommandId','key','collaboration-client-ui.session.connection-failed','DependentOn','complete','_getScale','UniverNetworkPlugin','icon','source','_watchBlockProgress','pageType','[Window\x20Error]:\x20','_docTransformIMECacheService','m1Prime','fromEvent','getUnitId','collab-text-range-','stack','_beforeCloseService','push','jsx','polite','HTTPService','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','_showGuardMessage','black','setRemotePresence','_ensureSubject','setOffsetY','_disposeEntitiesForType','_collabSessionService','_getSheetObject','getUnitStatus$','VIEW_MAIN','collaboration-client-ui.operation.update-remote-unit-presence','_univerInstanceService','UNIVER_SHEET','collaboration-client-ui.collaboration.offline-data-not-saved'];_0x2abb=function(){return _0x1d0969;};return _0x2abb();}function ae(_0x2751f2){let {status$:_0x23df37}=_0x2751f2;return function(){return(0x0,c['jsx'])(te,{'status$':_0x23df37});};}var oe=_0x31b914(0x150),se=_0x31b914(0x183);const w={'id':_0x31b914(0x31f),'type':t[_0x31b914(0x35d)]['OPERATION'],'handler':(_0xc54fd,_0xfbf37d)=>{const _0x37431e=_0x31b914;let _0x4d105a=_0xc54fd[_0x37431e(0x246)](n[_0x37431e(0x3fe)])[_0x37431e(0x246)](_0xfbf37d['unitType']);if(!_0x4d105a)return!0x1;switch(_0xfbf37d[_0x37431e(0x32b)][_0x37431e(0x165)]){case _0x37431e(0x3c2):return _0x4d105a[_0x37431e(0x317)](_0xfbf37d['update']['state']),!0x0;case _0x37431e(0x247):return _0x4d105a['removeRemotePresence'](_0xfbf37d[_0x37431e(0x32b)]['unitId'],_0xfbf37d['update']['memberId']),!0x0;case _0x37431e(0x114):return _0x4d105a[_0x37431e(0x32a)](_0xfbf37d[_0x37431e(0x32b)][_0x37431e(0x167)]),!0x0;default:return!0x1;}}},ce={};let T=class extends t['RxDisposable']{constructor(_0x88475b,_0x12786c){const _0x482f68=_0x31b914;super(),this['_docClipboardService']=_0x88475b,this[_0x482f68(0x1a5)]=_0x12786c,this[_0x482f68(0x23f)]();}[_0x31b914(0x23f)](){const _0x45c311=_0x31b914;let _0x5216b6=this;this['disposeWithMe'](this[_0x45c311(0x139)][_0x45c311(0x32d)]({'onBeforePasteImage':async _0x1c91ae=>{const _0x4459fb=_0x45c311;let _0x357a86=await _0x5216b6['_imageIoService'][_0x4459fb(0x3d4)](_0x1c91ae);return _0x357a86?{'source':_0x357a86[_0x4459fb(0x305)],'imageSourceType':_0x357a86[_0x4459fb(0x2df)]}:null;}}));}};T=S([x(0x0,f[_0x31b914(0x36a)]),x(0x1,t[_0x31b914(0x244)])],T);const le=[_0x31b914(0x2e5),_0x31b914(0x13b),_0x31b914(0x1b6),_0x31b914(0x161),'blue.400',_0x31b914(0x162)];var E=class extends t[_0x31b914(0x382)]{constructor(..._0x2a1ef9){const _0x28d32e=_0x31b914;super(..._0x2a1ef9),b(this,'_assignedColors',new Map()),b(this,_0x28d32e(0x15a),0x0);}[_0x31b914(0x374)](_0x21e7c5){const _0xdca2c9=_0x31b914;if(this[_0xdca2c9(0x343)][_0xdca2c9(0x218)](_0x21e7c5))return this['_assignedColors'][_0xdca2c9(0x246)](_0x21e7c5);let _0xf8b300=le[this[_0xdca2c9(0x15a)]];return this[_0xdca2c9(0x15a)]=(this[_0xdca2c9(0x15a)]+0x1)%le[_0xdca2c9(0x18a)],this[_0xdca2c9(0x343)][_0xdca2c9(0x3c2)](_0x21e7c5,_0xf8b300),_0xf8b300;}};function ue(_0x291cab){let _0x1d56a7='';for(let _0x3befd8 of _0x291cab){let {startOffset:_0x21d38c,endOffset:_0x35aa26,isActive:_0x805ad8,rangeType:_0x3d54a8,segmentId:_0x25b978,segmentPage:_0x2b77f1}=_0x3befd8;_0x1d56a7['length']&&(_0x1d56a7+=','),_0x1d56a7+=_0x21d38c+':'+_0x35aa26+':'+(_0x805ad8?'1':'0')+':'+_0x3d54a8+':'+_0x25b978+':'+_0x2b77f1;}return _0x1d56a7;}function de(_0x4e507f){const _0x39a81d=_0x31b914;let _0x4e72d8=_0x4e507f[_0x39a81d(0x201)](','),_0x543394=[];for(let _0x147703 of _0x4e72d8){let [_0x3ab994,_0x3077fe,_0x58e185,_0x258561,_0x5ec80e,_0x22c5da]=_0x147703[_0x39a81d(0x201)](':');_0x543394[_0x39a81d(0x310)]({'startOffset':Number(_0x3ab994),'endOffset':Number(_0x3077fe),'collapsed':_0x3ab994===_0x3077fe,'isActive':_0x58e185==='1','rangeType':_0x258561===t[_0x39a81d(0x2e8)][_0x39a81d(0x251)]?t['DOC_RANGE_TYPE'][_0x39a81d(0x251)]:t[_0x39a81d(0x2e8)][_0x39a81d(0x33a)],'segmentId':typeof _0x5ec80e=='string'?String(_0x5ec80e):'','segmentPage':Number(_0x22c5da??-0x1)});}return _0x543394[_0x39a81d(0x2bf)](_0x5c374a=>_0x5c374a['isActive'])||(_0x543394[0x0]['isActive']=!0x0),_0x543394;}var D=class extends t[_0x31b914(0x1a7)]{constructor(..._0x22bc1e){const _0xf872a0=_0x31b914;super(..._0x22bc1e),b(this,_0xf872a0(0x26a),new r['BehaviorSubject'](null)),b(this,_0xf872a0(0x231),this['_collabCursorState$'][_0xf872a0(0x2f2)]());}[_0x31b914(0x2a0)](_0x568418){const _0x334440=_0x31b914;let {unitID:_0x299e4b,memberID:_0x5971b9,textRanges:_0xbf46b0}=_0x568418,_0x1b7fb3=ue(_0xbf46b0);if(_0x1b7fb3==='')return;let _0x26e39a={'unitID':_0x299e4b,'memberID':_0x5971b9,'selection':_0x1b7fb3};this['_collabCursorState$'][_0x334440(0x384)](_0x26e39a);}};let O=class extends t[_0x31b914(0x1a7)]{get[_0x31b914(0x29d)](){const _0x5eb833=_0x31b914;return this[_0x5eb833(0x3a2)][_0x5eb833(0x102)]();}get['roomMembers'](){const _0x2efd89=_0x31b914;return this[_0x2efd89(0x205)][_0x2efd89(0x102)]();}constructor(_0x2b213c,_0x2793bd,_0x3f98e9,_0x4da5fb,_0x5669e9,_0x263ff6,_0x7669a8,_0x99e765,_0x2e047f){const _0x13ea13=_0x31b914;super(),this[_0x13ea13(0x2ec)]=_0x2b213c,this[_0x13ea13(0x1a3)]=_0x2793bd,this[_0x13ea13(0x2d6)]=_0x3f98e9,this[_0x13ea13(0x23a)]=_0x4da5fb,this[_0x13ea13(0x278)]=_0x5669e9,this[_0x13ea13(0x3b5)]=_0x263ff6,this['_transformService']=_0x7669a8,this['_univerInstanceService']=_0x99e765,this['_commandService']=_0x2e047f,b(this,_0x13ea13(0x25f),!0x1),b(this,_0x13ea13(0x23f),!0x1),b(this,'_cursorInfo$',new r[(_0x13ea13(0x336))](new Map())),b(this,'cursorInfo$',this['_cursorInfo$'][_0x13ea13(0x2f2)]()),b(this,'_roomMembers$',new r[(_0x13ea13(0x336))]([])),b(this,'roomMembers$',this[_0x13ea13(0x205)][_0x13ea13(0x1c3)]((0x0,r[_0x13ea13(0x398)])(0x12c))),b(this,_0x13ea13(0x279),(0x0,t['debounce'])(_0x4a1303=>{const _0x16001=_0x13ea13;let _0x32b073={'eventID':l[_0x16001(0x1f8)][_0x16001(0x1a1)],'data':{'unitID':this[_0x16001(0x2ec)],'memberID':this[_0x16001(0x1a3)][_0x16001(0x331)](),'selection':ue(_0x4a1303)}};this['_session'][_0x16001(0x297)](_0x32b073,this['unitID']);},0x64));}[_0x31b914(0x1bd)](){const _0x3f76a0=_0x31b914;super[_0x3f76a0(0x1bd)](),this[_0x3f76a0(0x3a2)]['next'](new Map()),this[_0x3f76a0(0x3a2)][_0x3f76a0(0x301)](),this[_0x3f76a0(0x205)][_0x3f76a0(0x384)]([]),this[_0x3f76a0(0x205)][_0x3f76a0(0x301)]();}[_0x31b914(0x344)](){const _0x54ab9b=_0x31b914;this['_init']||(this['_init']=!0x0,this[_0x54ab9b(0x1a3)][_0x54ab9b(0x3be)][_0x54ab9b(0x1c3)]((0x0,r[_0x54ab9b(0x256)])(this[_0x54ab9b(0x1f4)]))['subscribe'](_0x205746=>{const _0x4eb9=_0x54ab9b;_0x205746===e['SessionStatus'][_0x4eb9(0x396)]?this[_0x4eb9(0x27d)]():this['_toggleOffline']();}),this['_session'][_0x54ab9b(0x2bc)][_0x54ab9b(0x1c3)]((0x0,r[_0x54ab9b(0x256)])(this[_0x54ab9b(0x1f4)]))[_0x54ab9b(0x151)](_0x7818b=>{const _0x8189c5=_0x54ab9b;let _0x5d5d3d=_0x7818b[_0x8189c5(0x3cf)];_0x5d5d3d===l[_0x8189c5(0x1f8)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x7818b),_0x5d5d3d===l[_0x8189c5(0x1f8)][_0x8189c5(0x16d)]&&this[_0x8189c5(0x39a)](_0x7818b);}),this['disposeWithMe'](this['_commandService'][_0x54ab9b(0x180)](_0x85e0b6=>{const _0x2163e5=_0x54ab9b;let _0x7388e2=_0x85e0b6[_0x2163e5(0x3f2)];_0x7388e2!=null&&this['_online']&&_0x85e0b6['id']===d[_0x2163e5(0x110)]['id']&&_0x7388e2[_0x2163e5(0x167)]===this[_0x2163e5(0x2ec)]&&_0x7388e2[_0x2163e5(0x1bf)]===!0x1&&_0x7388e2[_0x2163e5(0x28a)]['length']>0x0&&this[_0x2163e5(0x279)](_0x7388e2[_0x2163e5(0x28a)]);})),this[_0x54ab9b(0x3b5)][_0x54ab9b(0x231)][_0x54ab9b(0x1c3)]((0x0,r[_0x54ab9b(0x256)])(this[_0x54ab9b(0x1f4)]))[_0x54ab9b(0x151)](_0xe0767f=>{const _0x1fca86=_0x54ab9b;if((_0xe0767f==null?void 0x0:_0xe0767f[_0x1fca86(0x2ec)])!==this[_0x1fca86(0x2ec)])return;let _0x204b9b={'eventID':l[_0x1fca86(0x1f8)][_0x1fca86(0x1a1)],'data':_0xe0767f};this[_0x1fca86(0x1f6)](_0x204b9b);}),this[_0x54ab9b(0x1c5)](this[_0x54ab9b(0x2a3)][_0x54ab9b(0x180)](_0x1afd42=>{const _0x5a0158=_0x54ab9b;if(_0x1afd42[_0x5a0158(0x3f2)]==null)return;let _0x56dd34=_0x1afd42[_0x5a0158(0x3f2)];if(_0x1afd42['id']!==d[_0x5a0158(0x260)]['id']||_0x56dd34[_0x5a0158(0x167)]!==this['unitID'])return;let _0x52e6f8={'id':'doc.mutation.rich-text-editing','params':_0x56dd34},_0x5314cf=this[_0x5a0158(0x29d)];for(let [_0x54fe7c,_0x276dce]of _0x5314cf){let _0x4f3494={'id':_0x5a0158(0x145),'params':{'unitId':this[_0x5a0158(0x2ec)],'actions':null,'textRanges':_0x276dce[_0x5a0158(0x28a)]}},_0x5c7b58=this[_0x5a0158(0x14a)][_0x5a0158(0x22f)](_0x52e6f8,_0x4f3494,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x5c7b58))throw _0x5c7b58[_0x5a0158(0x2d4)];_0x5314cf[_0x5a0158(0x3c2)](_0x54fe7c,{..._0x276dce,'ranges':_0x5c7b58[_0x5a0158(0x153)]['params'][_0x5a0158(0x1d8)]});}queueMicrotask(()=>{const _0x45fbc1=_0x5a0158;this[_0x45fbc1(0x3a2)][_0x45fbc1(0x384)](_0x5314cf);});})));}[_0x31b914(0x1f6)](_0x32affc){const _0x3593c0=_0x31b914;var _0x4452db;let {memberID:_0x410658,selection:_0x4b74df}=_0x32affc[_0x3593c0(0x2b6)],_0x41e4de=de(_0x4b74df),_0x1d5c8c=((_0x4452db=this[_0x3593c0(0x278)][_0x3593c0(0x2c6)](this[_0x3593c0(0x2ec)],_0x410658))==null?void 0x0:_0x4452db[_0x3593c0(0x1e8)])??_0x3593c0(0x2d3),_0x5bea06={'color':this[_0x3593c0(0x23a)][_0x3593c0(0x374)](_0x410658),'name':_0x1d5c8c,'ranges':_0x41e4de},_0xad9f1f=this[_0x3593c0(0x29d)];_0xad9f1f[_0x3593c0(0x3c2)](_0x410658,_0x5bea06),this[_0x3593c0(0x3a2)][_0x3593c0(0x384)](_0xad9f1f);}[_0x31b914(0x39a)](_0x9a434a){const _0x5d9748=_0x31b914;let {memberID:_0x175c7e}=_0x9a434a[_0x5d9748(0x2b6)],_0x29bc0a=this[_0x5d9748(0x29d)];_0x29bc0a[_0x5d9748(0x255)](_0x175c7e),this[_0x5d9748(0x3a2)][_0x5d9748(0x384)](_0x29bc0a);}['_toggleOnline'](){const _0x24887d=_0x31b914;var _0x55b866;if(this['_online']=!0x0,((_0x55b866=this['_univerInstanceService'][_0x24887d(0x2ef)]())==null?void 0x0:_0x55b866['getUnitId']())!==this[_0x24887d(0x2ec)])return;let _0xb649c6=this[_0x24887d(0x2d6)][_0x24887d(0x246)](d[_0x24887d(0x2a4)])['getDocRanges']();Array[_0x24887d(0x2e1)](_0xb649c6)&&_0xb649c6[_0x24887d(0x18a)]>0x0&&this[_0x24887d(0x279)](_0xb649c6);}[_0x31b914(0x1f1)](){const _0x281706=_0x31b914;this[_0x281706(0x25f)]=!0x1;}};O=S([x(0x2,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x3,(0x0,t[_0x31b914(0x3f6)])(E)),x(0x4,(0x0,t['Inject'])(e[_0x31b914(0x11a)])),x(0x5,(0x0,t[_0x31b914(0x3f6)])(D)),x(0x6,l[_0x31b914(0x195)]),x(0x7,t[_0x31b914(0x3e9)]),x(0x8,t[_0x31b914(0x2fb)])],O);const fe=()=>{let _0x402aeb=[],_0x2b5fa0=!0x1;return _0xb1582e=>{const _0x343cb8=_0x432a;_0x402aeb[_0x343cb8(0x310)](_0xb1582e),_0x2b5fa0||(_0x2b5fa0=!0x0,setTimeout(()=>{const _0x22a988=_0x343cb8;_0x402aeb[_0x22a988(0x363)](_0x3f015a=>_0x3f015a()),_0x402aeb=[],_0x2b5fa0=!0x1;}));};};let k=class extends t[_0x31b914(0x1a7)]{get[_0x31b914(0x29d)](){const _0x415e47=_0x31b914;return this[_0x415e47(0x3a2)][_0x415e47(0x102)]();}get[_0x31b914(0x263)](){const _0x3e6ace=_0x31b914;return this[_0x3e6ace(0x205)][_0x3e6ace(0x102)]();}constructor(_0x3fc864,_0x35a51a,_0x3399f3,_0x588540,_0x33beab,_0x2d9834,_0x3c8a04,_0x41db95){const _0x26b11b=_0x31b914;super(),this['unitID']=_0x3fc864,this['_session']=_0x35a51a,this['_injector']=_0x3399f3,this[_0x26b11b(0x23a)]=_0x588540,this[_0x26b11b(0x278)]=_0x33beab,this[_0x26b11b(0x320)]=_0x2d9834,this[_0x26b11b(0x2a3)]=_0x3c8a04,this[_0x26b11b(0x109)]=_0x41db95,b(this,'_online',!0x1),b(this,_0x26b11b(0x23f),!0x1),b(this,_0x26b11b(0x3a2),new r[(_0x26b11b(0x336))](new Map())),b(this,_0x26b11b(0x36f),this[_0x26b11b(0x3a2)][_0x26b11b(0x2f2)]()),b(this,_0x26b11b(0x205),new r['BehaviorSubject']([])),b(this,'roomMembers$',this[_0x26b11b(0x205)]['pipe']((0x0,r[_0x26b11b(0x398)])(0x12c))),b(this,_0x26b11b(0x279),(0x0,t[_0x26b11b(0x371)])((_0x21f0d4,_0x335c2b)=>{const _0x58a439=_0x26b11b;let _0x9a5922={'eventID':l[_0x58a439(0x1f8)][_0x58a439(0x1a1)],'data':{'unitID':this[_0x58a439(0x2ec)],'memberID':this[_0x58a439(0x1a3)][_0x58a439(0x331)](),'selection':(0x0,h['serializeRangeWithSheet'])(_0x21f0d4,_0x335c2b[_0x58a439(0x192)])}};this[_0x58a439(0x1a3)][_0x58a439(0x297)](_0x9a5922,this[_0x58a439(0x2ec)]);},0x64));}[_0x31b914(0x1bd)](){const _0x452dc1=_0x31b914;super[_0x452dc1(0x1bd)](),this[_0x452dc1(0x3a2)][_0x452dc1(0x384)](new Map()),this[_0x452dc1(0x3a2)][_0x452dc1(0x301)](),this['_roomMembers$'][_0x452dc1(0x384)]([]),this[_0x452dc1(0x205)]['complete']();}['init'](){const _0x234db9=_0x31b914;this[_0x234db9(0x23f)]||(this[_0x234db9(0x23f)]=!0x0,this['_session'][_0x234db9(0x3be)][_0x234db9(0x1c3)]((0x0,r['takeUntil'])(this[_0x234db9(0x1f4)]))['subscribe'](_0x3eb95d=>{const _0x1fb6f4=_0x234db9;_0x3eb95d===e[_0x1fb6f4(0x3a5)][_0x1fb6f4(0x396)]?this[_0x1fb6f4(0x27d)]():this[_0x1fb6f4(0x1f1)]();}),this[_0x234db9(0x1a3)][_0x234db9(0x2bc)]['pipe']((0x0,r[_0x234db9(0x256)])(this[_0x234db9(0x1f4)]))[_0x234db9(0x151)](_0x50afde=>{const _0x29a236=_0x234db9;let _0x380aab=_0x50afde[_0x29a236(0x3cf)];_0x380aab===l[_0x29a236(0x1f8)][_0x29a236(0x1a1)]&&this['_onCursorUpdate'](_0x50afde),_0x380aab===l[_0x29a236(0x1f8)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x50afde);}),this[_0x234db9(0x18e)](),this['disposeWithMe'](this['_commandService'][_0x234db9(0x180)](_0x5b61c3=>{const _0x54b529=_0x234db9;if(this[_0x54b529(0x25f)]&&_0x5b61c3['id']===g[_0x54b529(0x185)]['id']&&_0x5b61c3[_0x54b529(0x3f2)][_0x54b529(0x167)]===this['unitID']){let _0x50d1a5=_0x5b61c3[_0x54b529(0x3f2)];this[_0x54b529(0x279)](_0x50d1a5[_0x54b529(0x196)],_0x50d1a5['selections'][0x0]);}})));}['_onCursorUpdate'](_0xcdf68a){const _0x28ea5e=_0x31b914;var _0x16c887;let {memberID:_0x40f40,selection:_0x307abc}=_0xcdf68a[_0x28ea5e(0x2b6)],{sheetName:_0x2c2e20,range:_0x578cc6}=(0x0,h[_0x28ea5e(0x346)])(_0x307abc),_0x4f459a={'name':((_0x16c887=this['_memberService'][_0x28ea5e(0x2c6)](this[_0x28ea5e(0x2ec)],_0x40f40))==null?void 0x0:_0x16c887[_0x28ea5e(0x1e8)])??_0x28ea5e(0x2d3),'range':this[_0x28ea5e(0x12a)](_0x2c2e20,_0x578cc6),'sheetID':_0x2c2e20,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x40f40),'selection':_0x307abc},_0x5ae958=this['cursorInfo'];_0x5ae958[_0x28ea5e(0x3c2)](_0x40f40,_0x4f459a),this[_0x28ea5e(0x3a2)]['next'](_0x5ae958);}[_0x31b914(0x39a)](_0x263d83){const _0x78eb32=_0x31b914;let {memberID:_0x4183a6}=_0x263d83[_0x78eb32(0x2b6)],_0x23f3bf=this['cursorInfo'];_0x23f3bf[_0x78eb32(0x255)](_0x4183a6),this[_0x78eb32(0x3a2)][_0x78eb32(0x384)](_0x23f3bf);}[_0x31b914(0x12a)](_0x32b4a3,_0x44212f){const _0x161ac7=_0x31b914;var _0x170fb8;let _0x2d0408=(_0x170fb8=this['_univerInstanceService'][_0x161ac7(0x115)](this['unitID'],t[_0x161ac7(0x2f0)][_0x161ac7(0x321)]))==null||(_0x170fb8=_0x170fb8[_0x161ac7(0x257)](_0x32b4a3))==null?void 0x0:_0x170fb8[_0x161ac7(0x28f)]();return(_0x2d0408==null?void 0x0:_0x2d0408[_0x161ac7(0x358)](_0x149f3b=>t[_0x161ac7(0x2ed)]['contains'](_0x149f3b,_0x44212f)))||_0x44212f;}[_0x31b914(0x18e)](){const _0x4c8954=_0x31b914;let _0x1d5945=new t[(_0x4c8954(0x27e))](),_0x3124ef=fe(),_0x2614c4=()=>{const _0x25b659=_0x4c8954;_0x1d5945[_0x25b659(0x1bd)]();let _0x1b34cd=(_0x3e3f02,_0x4b2c92,_0xf4adff,_0x2f0dbb)=>{const _0xfbb4fc=_0x25b659;let _0x2aae90=[];switch(_0x3e3f02['id']){case g[_0xfbb4fc(0x11f)]['DeleteRangeMoveLeftCommandId']:_0x2aae90=(0x0,g[_0xfbb4fc(0x276)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x22a)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x28d)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)]['InsertColCommandId']:_0x2aae90=(0x0,g['handleInsertCol'])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x2fd)]:_0x2aae90=(0x0,g['handleInsertRangeMoveDown'])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x34b)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x3d8)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x33c)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x16f)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x29c)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x24e)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)]['RemoveColCommandId']:_0x2aae90=(0x0,g[_0xfbb4fc(0x3e6)])(_0x3e3f02,_0x2f0dbb);break;case g[_0xfbb4fc(0x11f)][_0xfbb4fc(0x1af)]:_0x2aae90=(0x0,g[_0xfbb4fc(0x16b)])(_0x3e3f02,_0x2f0dbb);break;}let _0x5188ea=(0x0,g[_0xfbb4fc(0x273)])(_0x2aae90,_0x2f0dbb),_0x750308=this[_0xfbb4fc(0x29d)][_0xfbb4fc(0x246)](_0x4b2c92);if(_0x750308&&_0x5188ea){let _0x4f5eb1={..._0x750308,'range':_0x5188ea};this[_0xfbb4fc(0x29d)][_0xfbb4fc(0x3c2)](_0x4b2c92,_0x4f5eb1),_0x3124ef(()=>{const _0xd4828e=_0xfbb4fc;let _0x2abb97=this[_0xd4828e(0x109)]['registerRefRange'](_0x5188ea,_0x4b7c91=>(_0x2abb97[_0xd4828e(0x1bd)](),_0x1b34cd(_0x4b7c91,_0x4b2c92,_0xf4adff,_0x5188ea)));_0x1d5945[_0xd4828e(0x230)](_0x2abb97);});}return{'redos':[],'undos':[]};};this[_0x25b659(0x29d)][_0x25b659(0x363)]((_0x2a7190,_0x1265b8)=>{const _0x4f1cf8=_0x25b659;let {range:_0x580c82,sheetID:_0x284810}=_0x2a7190,_0x265368=this[_0x4f1cf8(0x109)][_0x4f1cf8(0x40b)](_0x580c82,_0xe42024=>(_0x265368[_0x4f1cf8(0x1bd)](),_0x1b34cd(_0xe42024,_0x1265b8,_0x284810,_0x580c82)));_0x1d5945[_0x4f1cf8(0x230)](_0x265368);});};this[_0x4c8954(0x1c5)]((0x0,t[_0x4c8954(0x406)])(this['_cursorInfo$']['subscribe'](()=>{_0x2614c4();})));}[_0x31b914(0x27d)](){const _0x471f7a=_0x31b914;var _0x4f77b7,_0x53cb94;if(this[_0x471f7a(0x25f)]=!0x0,((_0x4f77b7=this['_univerInstanceService'][_0x471f7a(0x2ef)]())==null?void 0x0:_0x4f77b7[_0x471f7a(0x30c)]())!==this[_0x471f7a(0x2ec)])return;let _0x52cde1=(_0x53cb94=this[_0x471f7a(0x2d6)][_0x471f7a(0x246)](g[_0x471f7a(0x35c)])[_0x471f7a(0x35b)]())==null?void 0x0:_0x53cb94[0x0],_0x1d6a9e=this[_0x471f7a(0x320)][_0x471f7a(0x402)](t[_0x471f7a(0x2f0)][_0x471f7a(0x321)])[_0x471f7a(0x3a7)]();_0x52cde1&&_0x1d6a9e&&this[_0x471f7a(0x279)](_0x1d6a9e[_0x471f7a(0x197)](),_0x52cde1);}[_0x31b914(0x1f1)](){const _0x10b706=_0x31b914;this[_0x10b706(0x25f)]=!0x1;}};k=S([x(0x2,(0x0,t[_0x31b914(0x3f6)])(t['Injector'])),x(0x3,(0x0,t['Inject'])(E)),x(0x4,(0x0,t['Inject'])(e['MemberService'])),x(0x5,t[_0x31b914(0x3e9)]),x(0x6,t[_0x31b914(0x2fb)]),x(0x7,(0x0,t[_0x31b914(0x3f6)])(g['RefRangeService']))],k);let A=class extends t[_0x31b914(0x1a7)]{constructor(_0x19c4d6,_0x3b3611,_0x1a8cdc){const _0x1aa102=_0x31b914;super(),this[_0x1aa102(0x320)]=_0x19c4d6,this[_0x1aa102(0x2d6)]=_0x3b3611,this[_0x1aa102(0x31b)]=_0x1a8cdc,b(this,_0x1aa102(0x123),new Map()),b(this,'_entityInit$',new r['Subject']()),this[_0x1aa102(0x23f)]();}[_0x31b914(0x1bd)](){const _0x4adbd1=_0x31b914;super[_0x4adbd1(0x1bd)](),this[_0x4adbd1(0x355)][_0x4adbd1(0x301)](),this['_entities']['forEach'](_0x12ee86=>_0x12ee86['dispose']());}['getCollabCursors$'](_0x3f8e0b){const _0x35b572=_0x31b914;let _0x502d52=this[_0x35b572(0x123)][_0x35b572(0x246)](_0x3f8e0b);return _0x502d52?_0x502d52[_0x35b572(0x36f)]:this['_entityInit$'][_0x35b572(0x1c3)]((0x0,r[_0x35b572(0x181)])(_0x22c6c4=>_0x22c6c4[_0x35b572(0x2ec)]===_0x3f8e0b),(0x0,r[_0x35b572(0x105)])(_0x11063c=>_0x11063c[_0x35b572(0x36f)]));}[_0x31b914(0x23f)](){const _0x499a8d=_0x31b914;this[_0x499a8d(0x320)]['getTypeOfUnitAdded$'](t[_0x499a8d(0x2f0)][_0x499a8d(0x321)])[_0x499a8d(0x1c3)]((0x0,r['takeUntil'])(this[_0x499a8d(0x1f4)]))[_0x499a8d(0x151)](async _0x573b9e=>{const _0x2bdf51=_0x499a8d;let _0x1edcc5=_0x573b9e['unit'][_0x2bdf51(0x30c)](),_0x404d16=await this[_0x2bdf51(0x1d0)](_0x1edcc5);this[_0x2bdf51(0x355)][_0x2bdf51(0x384)](_0x404d16),this[_0x2bdf51(0x123)][_0x2bdf51(0x3c2)](_0x1edcc5,_0x404d16);}),this[_0x499a8d(0x320)][_0x499a8d(0x282)](t[_0x499a8d(0x2f0)][_0x499a8d(0x221)])[_0x499a8d(0x1c3)]((0x0,r[_0x499a8d(0x256)])(this[_0x499a8d(0x1f4)]))[_0x499a8d(0x1c3)]((0x0,r[_0x499a8d(0x181)])(_0x3f433c=>!_0x3f433c['unit']['getUnitId']()[_0x499a8d(0x394)]('__')))[_0x499a8d(0x151)](async _0x9f8ecd=>{const _0x7f3766=_0x499a8d;let {unit:_0x2929d5}=_0x9f8ecd,_0x4733e1=_0x2929d5['getUnitId'](),_0xacb144=await this['_startDocCollabCursor'](_0x4733e1);this[_0x7f3766(0x355)][_0x7f3766(0x384)](_0xacb144),this['_entities'][_0x7f3766(0x3c2)](_0x4733e1,_0xacb144);}),(0x0,r[_0x499a8d(0x2c9)])(this['_univerInstanceService'][_0x499a8d(0x3f4)](t['UniverInstanceType'][_0x499a8d(0x221)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x499a8d(0x321)]))['pipe']((0x0,r[_0x499a8d(0x256)])(this[_0x499a8d(0x1f4)]))[_0x499a8d(0x151)](_0x333f0e=>{const _0x37f88d=_0x499a8d;let _0x535c26=_0x333f0e['getUnitId'](),_0x3d1537=this[_0x37f88d(0x123)]['get'](_0x535c26);_0x3d1537&&(_0x3d1537[_0x37f88d(0x1bd)](),this[_0x37f88d(0x123)]['delete'](_0x535c26));});}async[_0x31b914(0x1d0)](_0x4b6032){const _0x37076c=_0x31b914;let _0x4c288a=await this[_0x37076c(0x31b)][_0x37076c(0x3c4)](_0x4b6032),_0x353779=this[_0x37076c(0x2d6)][_0x37076c(0x2cb)](k,_0x4b6032,_0x4c288a);return _0x353779[_0x37076c(0x344)](),_0x353779;}async[_0x31b914(0x17d)](_0x48ccc9){const _0x1fd149=_0x31b914;let _0x169a3a=await this[_0x1fd149(0x31b)][_0x1fd149(0x3c4)](_0x48ccc9),_0x83ccbe=this[_0x1fd149(0x2d6)][_0x1fd149(0x2cb)](O,_0x48ccc9,_0x169a3a);return _0x83ccbe[_0x1fd149(0x344)](),_0x83ccbe;}};A=S([x(0x0,t['IUniverInstanceService']),x(0x1,(0x0,t[_0x31b914(0x3f6)])(t['Injector'])),x(0x2,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x137)]))],A);function j(_0x407126,_0x2dbb57){const _0x2a389f=_0x31b914;_0x407126[_0x2a389f(0x226)](),_0x407126[_0x2a389f(0x1b5)]='bold\x2013px\x20Arial,\x20sans-serif';let _0x2087f3=_0x407126[_0x2a389f(0x144)](_0x2dbb57)[_0x2a389f(0x3f1)];return _0x407126['restore'](),Math[_0x2a389f(0x3f8)](_0x2087f3+0x8,0xc8);}function pe(_0x183e3b,_0x1eb1fe){const _0x463b7d=_0x31b914;let {radius:_0x3a3def,width:_0x1aac7b,height:_0x40ff58}=_0x1eb1fe;_0x3a3def??=0x0,_0x1aac7b??=0x1e,_0x40ff58??=0x1e;let _0x5b047b=0x0,_0x458054=0x0,_0x35e94b=0x0;_0x5b047b=_0x458054=_0x35e94b=Math['min'](_0x3a3def,_0x1aac7b/0x2,_0x40ff58/0x2),_0x183e3b[_0x463b7d(0x21f)](),_0x183e3b[_0x463b7d(0x21d)](_0x5b047b,0x0),_0x183e3b[_0x463b7d(0x3cd)](_0x1aac7b-_0x458054,0x0),_0x183e3b[_0x463b7d(0x25b)](_0x1aac7b-_0x458054,_0x458054,_0x458054,Math['PI']*0x3/0x2,0x0,!0x1),_0x183e3b[_0x463b7d(0x3cd)](_0x1aac7b,_0x40ff58-_0x35e94b),_0x183e3b['arc'](_0x1aac7b-_0x35e94b,_0x40ff58-_0x35e94b,_0x35e94b,0x0,Math['PI']/0x2,!0x1),_0x183e3b['lineTo'](0x0,_0x40ff58),_0x183e3b[_0x463b7d(0x3cd)](0x0,_0x5b047b),_0x183e3b[_0x463b7d(0x25b)](_0x5b047b,_0x5b047b,_0x5b047b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x183e3b[_0x463b7d(0x3e1)](),_0x1eb1fe[_0x463b7d(0x2ee)]&&(_0x183e3b[_0x463b7d(0x226)](),_0x183e3b[_0x463b7d(0x252)]=_0x1eb1fe[_0x463b7d(0x2ee)],_0x1eb1fe[_0x463b7d(0x3ce)]===_0x463b7d(0x24c)?_0x183e3b['fill']('evenodd'):_0x183e3b[_0x463b7d(0x2ee)](),_0x183e3b[_0x463b7d(0x22d)]());}var me=class e extends p[_0x31b914(0x15c)]{constructor(_0x289fb3,_0x57f1b5){const _0x3f3da9=_0x31b914;super(_0x289fb3,_0x57f1b5),b(this,_0x3f3da9(0x3d1),void 0x0),b(this,_0x3f3da9(0x1a9),void 0x0),this[_0x3f3da9(0x3d1)]=_0x57f1b5==null?void 0x0:_0x57f1b5[_0x3f3da9(0x3d1)],this['text']=_0x57f1b5==null?void 0x0:_0x57f1b5['text'];}static[_0x31b914(0x360)](_0x120414,_0x2a5590){const _0x4ee457=_0x31b914;let {text:_0x275474,color:_0x472881}=_0x2a5590;_0x120414[_0x4ee457(0x226)](),_0x120414['font']=_0x4ee457(0x248);let _0x3dda3d=_0x120414[_0x4ee457(0x144)](_0x275474)[_0x4ee457(0x3f1)];if(pe(_0x120414,{'height':0x14,'radius':0x4,'width':j(_0x120414,_0x275474),'fill':_0x472881,'evented':!0x1}),_0x120414[_0x4ee457(0x252)]='#FFF',_0x3dda3d>0xc0){let _0x119705='',_0x1c1f91=0x0;for(let _0x4cb296 of _0x275474){let _0x415bc6=_0x120414['measureText'](_0x4cb296)[_0x4ee457(0x3f1)];if(_0x1c1f91+_0x415bc6<=0xc0-_0x120414[_0x4ee457(0x144)]('...')[_0x4ee457(0x3f1)])_0x119705+=_0x4cb296,_0x1c1f91+=_0x415bc6;else{_0x119705+='...';break;}}_0x120414['fillText'](_0x119705,0x4,0xf);}else _0x120414[_0x4ee457(0x1c1)](_0x275474,0x4,0xf);_0x120414[_0x4ee457(0x22d)]();}['_draw'](_0x341161){const _0xd617f8=_0x31b914;e[_0xd617f8(0x360)](_0x341161,this);}};const M=_0x31b914(0x25e);var N=class{constructor(_0x49a0fd,_0x4f9f77,_0x16d778,_0x3b0d45){const _0x364586=_0x31b914;this[_0x364586(0x10a)]=_0x49a0fd,this[_0x364586(0x237)]=_0x4f9f77,this[_0x364586(0x22c)]=_0x16d778,this['_document']=_0x3b0d45,b(this,_0x364586(0x267),[]),b(this,_0x364586(0x271),null),b(this,_0x364586(0x23b),null),b(this,_0x364586(0x10f),null),b(this,_0x364586(0x1ee),null),b(this,_0x364586(0x2a7),null),this[_0x364586(0x3b4)]();}set['_hover'](_0x3d2130){const _0x5c57d8=_0x31b914;_0x3d2130?(this[_0x5c57d8(0x10f)]&&this[_0x5c57d8(0x10f)][_0x5c57d8(0x3d9)](),this[_0x5c57d8(0x23b)]&&this[_0x5c57d8(0x23b)]['show']()):(this['_anchorDot']&&this[_0x5c57d8(0x10f)][_0x5c57d8(0x155)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x31b914(0x1bd)](){const _0x4fef39=_0x31b914;for(let _0x155ac0 of this['_shapes'])_0x155ac0[_0x4fef39(0x1bd)]();this['_textBubble']&&this[_0x4fef39(0x23b)][_0x4fef39(0x1bd)](),this[_0x4fef39(0x10f)]&&this[_0x4fef39(0x10f)]['dispose'](),this[_0x4fef39(0x271)]&&this[_0x4fef39(0x271)][_0x4fef39(0x1bd)](),this[_0x4fef39(0x2a7)]&&this[_0x4fef39(0x2a7)]();}[_0x31b914(0x3b4)](){const _0x203da2=_0x31b914;let {_docSkeleton:_0x5c7b4e,_document:_0x5f3658}=this,{color:_0x25af9c,name:_0x5e56a3,ranges:_0x3cf510}=this['_cursor'],_0x5032c4=_0x5f3658['getOffsetConfig'](),{docsLeft:_0x43151b,docsTop:_0x1a0621}=_0x5032c4,_0xf53fb2=new f[(_0x203da2(0x2c8))](_0x5032c4,_0x5c7b4e);for(let {startOffset:_0x740b73,endOffset:_0x5020e8,rangeType:_0x4d511c,segmentId:_0x2e9479,segmentPage:_0x24e248,collapsed:_0x43a927,isActive:_0x2302a3}of _0x3cf510){let _0x4fe509=_0x5c7b4e[_0x203da2(0x125)](_0x740b73,!0x0,_0x2e9479,_0x24e248),_0x571a32=_0x5c7b4e['findNodePositionByCharIndex'](_0x5020e8,!0x0,_0x2e9479,_0x24e248);_0x571a32??=_0x5c7b4e['findNodePositionByCharIndex'](_0x5020e8-0x1,!0x1,_0x2e9479,_0x24e248);let _0x415a95=he(_0x4fe509,_0x571a32);if(_0x2302a3&&_0x415a95[_0x203da2(0x1c8)]){let {contentBoxPointGroup:_0x56fb3c}=_0xf53fb2[_0x203da2(0x10b)](_0x571a32,_0x571a32);if(_0x56fb3c[_0x203da2(0x18a)]===0x0)continue;this[_0x203da2(0x37a)](_0x25af9c,_0x56fb3c,_0x43151b,_0x1a0621,_0x5e56a3),this[_0x203da2(0x2a7)]=this[_0x203da2(0x240)]();}if(_0x4fe509&&_0x571a32){if(_0x4d511c===t[_0x203da2(0x2e8)]['RECT']){let {pointGroup:_0x260b7a}=new f['NodePositionConvertToRectRange'](_0x5032c4,_0x5c7b4e)[_0x203da2(0x10b)](_0x4fe509,_0x571a32)??{};if(_0x260b7a==null||_0x260b7a[_0x203da2(0x18a)]===0x0)continue;this[_0x203da2(0x2a1)](_0x25af9c,_0x260b7a,_0x43151b,_0x1a0621);}else{if(!_0x43a927&&_0x415a95[_0x203da2(0x1d1)]){let {borderBoxPointGroup:_0x311e54}=_0xf53fb2['getRangePointData'](_0x4fe509,_0x571a32);if(_0x311e54[_0x203da2(0x18a)]===0x0)continue;this[_0x203da2(0x3b7)](_0x25af9c,_0x311e54,_0x43151b,_0x1a0621);}}}}}[_0x31b914(0x37a)](_0x40b857,_0x312d01,_0x2f59d8,_0x35d767,_0x4c69e2){const _0x30f7d2=_0x31b914;let {left:_0x41f555,top:_0x4d4ac7,height:_0x5d08be}=this[_0x30f7d2(0x122)](_0x312d01),_0xda4861=1.5/this[_0x30f7d2(0x302)](),_0x4f3700=new p[(_0x30f7d2(0x10e))](M+(0x0,t[_0x30f7d2(0x174)])(0x6),{'left':_0x41f555+_0x2f59d8-_0xda4861,'top':_0x4d4ac7+_0x35d767,'height':_0x5d08be,'width':1.5,'fill':_0x40b857||(0x0,p[_0x30f7d2(0x1a2)])(t['COLORS'][_0x30f7d2(0x316)],0x0),'strokeWidth':_0xda4861,'stroke':_0x30f7d2(0xff),'evented':!0x0});this[_0x30f7d2(0x271)]=_0x4f3700,this[_0x30f7d2(0x237)][_0x30f7d2(0x40c)](_0x4f3700,f[_0x30f7d2(0x232)]);let _0x5d214f=new p['Rect'](M+(0x0,t[_0x30f7d2(0x174)])(0x6),{'left':_0x41f555+_0x2f59d8-_0xda4861,'top':_0x4d4ac7+_0x35d767-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x40b857||(0x0,p[_0x30f7d2(0x1a2)])(t[_0x30f7d2(0x392)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x40b857||(0x0,p[_0x30f7d2(0x1a2)])(t[_0x30f7d2(0x392)][_0x30f7d2(0x316)],0x0),'evented':!0x1});this[_0x30f7d2(0x10f)]=_0x5d214f,this[_0x30f7d2(0x237)][_0x30f7d2(0x40c)](_0x5d214f,f[_0x30f7d2(0x232)]);let _0x215e29=new me(M+(0x0,t['generateRandomId'])(0x6),{'left':_0x41f555+_0x2f59d8-_0xda4861,'top':_0x4d4ac7+_0x35d767-0x14,'text':_0x4c69e2,'color':_0x40b857});this['_textBubble']=_0x215e29,this['_scene'][_0x30f7d2(0x40c)](_0x215e29,f[_0x30f7d2(0x232)]),this['_hover']=!0x1;}[_0x31b914(0x240)](){const _0x4f899a=_0x31b914;let _0xf0cb35=this['_anchor'][_0x4f899a(0x2b1)][_0x4f899a(0x3fd)](()=>{const _0x3b6d5d=_0x4f899a;this[_0x3b6d5d(0x2f5)]=!0x0;}),_0xb2ede4=this[_0x4f899a(0x271)][_0x4f899a(0x173)][_0x4f899a(0x3fd)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x482207=_0x432a;this[_0x482207(0x2f5)]=!0x1;},0x7d0);});return()=>{const _0x4009d8=_0x4f899a;_0xf0cb35[_0x4009d8(0x338)](),_0xb2ede4['unsubscribe']();};}['_drawTextRange'](_0x3c89f6,_0x3709cc,_0x5691e0,_0x1070d3){const _0x44680a=_0x31b914;let _0x509dfa=0.2,_0xeb046e=new t[(_0x44680a(0x25d))](_0x3c89f6)[_0x44680a(0x2da)](_0x509dfa)[_0x44680a(0x38d)](),_0x49ef0f=new p[(_0x44680a(0x20f))](_0x44680a(0x30d)+(0x0,t[_0x44680a(0x174)])(0x6),{'pointsGroup':_0x3709cc,'fill':_0xeb046e||(0x0,p[_0x44680a(0x1a2)])(t[_0x44680a(0x392)][_0x44680a(0x316)],_0x509dfa),'left':_0x5691e0,'top':_0x1070d3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x44680a(0x267)]['push'](_0x49ef0f),this[_0x44680a(0x237)]['addObject'](_0x49ef0f,f[_0x44680a(0x232)]);}[_0x31b914(0x2a1)](_0x213ea8,_0x3a508a,_0x1bbd8a,_0x13ae76){const _0x37a3b8=_0x31b914;let _0x39f612=0.2,_0x2ad13e=new t['ColorKit'](_0x213ea8)['setAlpha'](_0x39f612)[_0x37a3b8(0x38d)](),_0x1dffae=new p[(_0x37a3b8(0x20f))](_0x37a3b8(0x33e)+(0x0,t[_0x37a3b8(0x174)])(0x6),{'pointsGroup':_0x3a508a,'fill':_0x2ad13e||(0x0,p[_0x37a3b8(0x1a2)])(t['COLORS']['black'],_0x39f612),'left':_0x1bbd8a,'top':_0x13ae76,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x37a3b8(0x267)]['push'](_0x1dffae),this[_0x37a3b8(0x237)][_0x37a3b8(0x40c)](_0x1dffae,f[_0x37a3b8(0x232)]);}[_0x31b914(0x122)](_0x40b34e){let _0x208219=_0x40b34e[0x0],_0x57dae0=_0x208219[0x0],_0x2eace9=_0x208219[0x2],{x:_0x58e625,y:_0x2c2156}=_0x57dae0,{x:_0x5b1949,y:_0x3771de}=_0x2eace9;return{'left':_0x58e625,'top':_0x2c2156,'width':_0x5b1949-_0x58e625,'height':_0x3771de-_0x2c2156};}[_0x31b914(0x302)](){const _0x39ba80=_0x31b914;let {scaleX:_0x2dfc35,scaleY:_0x283c08}=this[_0x39ba80(0x237)][_0x39ba80(0x18b)]();return Math['max'](_0x2dfc35,_0x283c08);}};function he(_0x41f44d,_0x3a8771){const _0x18c369=_0x31b914;if(!_0x3a8771)return{'canRenderAnchor':!0x1,'canRenderSelection':!0x1};if(!_0x41f44d||_0x41f44d['pageType']!==_0x3a8771[_0x18c369(0x307)]||(_0x41f44d[_0x18c369(0x307)]===p[_0x18c369(0x1b3)][_0x18c369(0x189)]||_0x41f44d['pageType']===p['DocumentSkeletonPageType'][_0x18c369(0x12b)])&&_0x41f44d[_0x18c369(0x140)]!==_0x3a8771[_0x18c369(0x140)])return{'canRenderAnchor':!0x0,'canRenderSelection':!0x1};let _0x4e8e0f=(0x0,p[_0x18c369(0x138)])(_0x41f44d),_0x3a9146=(0x0,p[_0x18c369(0x138)])(_0x3a8771);return{'canRenderAnchor':!0x0,'canRenderSelection':_0x4e8e0f==null||_0x3a9146==null?_0x4e8e0f==null&&_0x3a9146==null:_0x4e8e0f[_0x18c369(0x26d)]===_0x3a9146['pageIndex']&&_0x4e8e0f[_0x18c369(0x335)]===_0x3a9146[_0x18c369(0x335)]&&_0x4e8e0f['columnIndex']===_0x3a9146[_0x18c369(0x1a8)]};}let P=class extends t[_0x31b914(0x1a7)]{constructor(_0x56e0fc,_0x219cf3,_0x3549d7,_0x47fe9a,_0xb85d66){const _0x1e9deb=_0x31b914;super(),this[_0x1e9deb(0x3d2)]=_0x56e0fc,this['_docSkeletonManagerService']=_0x219cf3,this[_0x1e9deb(0x152)]=_0x3549d7,this[_0x1e9deb(0x2a3)]=_0x47fe9a,this[_0x1e9deb(0x11b)]=_0xb85d66,b(this,_0x1e9deb(0x107),[]),b(this,_0x1e9deb(0x3b8),[]),this[_0x1e9deb(0x23f)]();}['_init'](){const _0x311a9b=_0x31b914;let _0x4064a7=this[_0x311a9b(0x3d2)]['unitId'],_0x87cb50=this[_0x311a9b(0x2ae)];this['disposeWithMe']((0x0,r[_0x311a9b(0x3ed)])([this[_0x311a9b(0x152)][_0x311a9b(0x3d0)](_0x4064a7),this[_0x311a9b(0x11b)][_0x311a9b(0x2b2)]])[_0x311a9b(0x1c3)]((0x0,i[_0x311a9b(0x2a9)])(([_0x1fc3a3,_0x209efe])=>({'skeleton':_0x87cb50[_0x311a9b(0x339)](),'cursors':[..._0x1fc3a3['values']()]['flatMap'](_0x38a9b4=>({..._0x38a9b4,'color':this['_themeService'][_0x311a9b(0x2dc)](_0x38a9b4[_0x311a9b(0x3d1)])}))})))[_0x311a9b(0x151)](_0x36c2d5=>{const _0xf5465c=_0x311a9b;if(this[_0xf5465c(0x1d2)](),_0x36c2d5){let {skeleton:_0x375591,cursors:_0x5244b8}=_0x36c2d5;this['_updateCollabCursors'](_0x375591,_0x5244b8);}})),this[_0x311a9b(0x361)](),this[_0x311a9b(0x2ca)]();}[_0x31b914(0x3ba)](_0x1918e4,_0x28bdae){const _0x522cbd=_0x31b914;let {scene:_0xbba6c0,mainComponent:_0x39cfcd}=this[_0x522cbd(0x3d2)],_0x456d91=_0x28bdae[_0x522cbd(0x2a9)](_0x42bdfe=>new N(_0x42bdfe,_0xbba6c0,_0x1918e4,_0x39cfcd));this[_0x522cbd(0x107)]=_0x456d91,this['_cursors']=_0x28bdae;}[_0x31b914(0x1cb)](){const _0x5452ee=_0x31b914;this[_0x5452ee(0x1d2)]();let {scene:_0x1617cc,mainComponent:_0x550857}=this[_0x5452ee(0x3d2)],_0x133765=this['_docSkeletonManagerService'][_0x5452ee(0x339)](),_0x2b0164=this[_0x5452ee(0x3b8)][_0x5452ee(0x2a9)](_0x166768=>new N(_0x166768,_0x1617cc,_0x133765,_0x550857));this[_0x5452ee(0x107)]=_0x2b0164;}[_0x31b914(0x1d2)](){const _0x54ee78=_0x31b914;this['_cursorShapes'][_0x54ee78(0x363)](_0x5008b5=>_0x5008b5['dispose']()),this[_0x54ee78(0x107)]=[];}['_initCommandExecutedListener'](){const _0x35e052=_0x31b914;let _0x38c3d1=[f[_0x35e052(0x211)]['id']];this[_0x35e052(0x1c5)](this['_commandService'][_0x35e052(0x180)](_0x53ed00=>{const _0x561540=_0x35e052;_0x38c3d1['includes'](_0x53ed00['id'])&&_0x53ed00[_0x561540(0x3f2)][_0x561540(0x167)]===this[_0x561540(0x3d2)]['unitId']&&this[_0x561540(0x1cb)]();}));}[_0x31b914(0x361)](){const _0x51fce9=_0x31b914;this['disposeWithMe']((0x0,t['fromEventSubject'])(this[_0x51fce9(0x3d2)]['engine']['onTransformChange$'])[_0x51fce9(0x1c3)]((0x0,i[_0x51fce9(0x181)])(_0x496cf6=>_0x496cf6[_0x51fce9(0x165)]===p[_0x51fce9(0x213)][_0x51fce9(0x25c)]),(0x0,i[_0x51fce9(0x294)])(0x10))[_0x51fce9(0x151)](()=>{const _0x42eeaf=_0x51fce9;this[_0x42eeaf(0x1cb)]();}));}};P=S([x(0x1,(0x0,t[_0x31b914(0x3f6)])(d['DocSkeletonManagerService'])),x(0x2,(0x0,t[_0x31b914(0x3f6)])(A)),x(0x3,t[_0x31b914(0x2fb)]),x(0x4,(0x0,t[_0x31b914(0x3f6)])(t['ThemeService']))],P);var ge=class extends p[_0x31b914(0x15c)]{constructor(_0x14ccee,_0x4dcf35){const _0x30bbb3=_0x31b914;super(_0x14ccee,_0x4dcf35),b(this,_0x30bbb3(0x108),void 0x0),b(this,_0x30bbb3(0x380),!0x1),b(this,_0x30bbb3(0x1bb),void 0x0),b(this,_0x30bbb3(0x337),''),b(this,_0x30bbb3(0x3c8),_0x30bbb3(0x2d0)),b(this,_0x30bbb3(0x2af),void 0x0),b(this,'_showText',void 0x0),b(this,_0x30bbb3(0x13d),void 0x0),b(this,'_highlightSecond',0x4),b(this,_0x30bbb3(0x23c),void 0x0),b(this,_0x30bbb3(0x141),void 0x0),b(this,'_isBlinkVisible',!0x0),b(this,_0x30bbb3(0x3c7),0x0),b(this,_0x30bbb3(0x2b9),_0x30bbb3(0x3eb)),_0x4dcf35&&(this[_0x30bbb3(0x3ff)](_0x4dcf35),_0x4dcf35[_0x30bbb3(0x35e)]&&(_0x4dcf35[_0x30bbb3(0x3a1)]??this['_highlightSecond'])&&this[_0x30bbb3(0x241)](_0x4dcf35[_0x30bbb3(0x3a1)]??this[_0x30bbb3(0x11c)])),this[_0x30bbb3(0x2b1)][_0x30bbb3(0x3fd)](()=>this[_0x30bbb3(0x3ff)]({'hovered':!0x0})),this[_0x30bbb3(0x173)][_0x30bbb3(0x3fd)](()=>this[_0x30bbb3(0x3ff)]({'hovered':!0x1}));}[_0x31b914(0x319)](_0x1de9ec){const _0x20b40f=_0x31b914;this[_0x20b40f(0x3c7)]=_0x1de9ec;}[_0x31b914(0x3ff)](_0x55a7bd){const _0x440200=_0x31b914;this['_color']=_0x55a7bd[_0x440200(0x3d1)]??this[_0x440200(0x108)],this['_hovered']=_0x55a7bd['hovered']??this[_0x440200(0x380)],this[_0x440200(0x1bb)]=_0x55a7bd[_0x440200(0x192)]??this[_0x440200(0x1bb)],this[_0x440200(0x337)]=_0x55a7bd[_0x440200(0x1e8)]??this[_0x440200(0x337)],this[_0x440200(0x3c8)]=_0x55a7bd[_0x440200(0x352)]??this[_0x440200(0x3c8)],this[_0x440200(0x2af)]=_0x55a7bd[_0x440200(0x353)]??this[_0x440200(0x2af)],this['_showText']=_0x55a7bd['showText']??this[_0x440200(0x33d)],this[_0x440200(0x2b9)]=_0x55a7bd[_0x440200(0x275)]??this[_0x440200(0x2b9)],_0x55a7bd['highlightSecond']!==void 0x0&&(this['_highlightSecond']=_0x55a7bd[_0x440200(0x3a1)]),_0x55a7bd[_0x440200(0x35e)]!==void 0x0&&(this[_0x440200(0x13d)]=_0x55a7bd[_0x440200(0x35e)]),_0x55a7bd[_0x440200(0x37e)]!==void 0x0&&(this[_0x440200(0x3c7)]=_0x55a7bd[_0x440200(0x37e)]),this['transformByState']({'width':_0x55a7bd[_0x440200(0x3f1)],'height':_0x55a7bd[_0x440200(0x2c1)]});}[_0x31b914(0x217)](_0x31f524){const _0x403767=_0x31b914;let {row:_0x30e35f,column:_0x4abc2b}=_0x31f524;if(_0x30e35f>=this[_0x403767(0x1bb)][_0x403767(0x119)]&&_0x30e35f<=this[_0x403767(0x1bb)][_0x403767(0x199)]&&_0x4abc2b>=this[_0x403767(0x1bb)]['startColumn']&&_0x4abc2b<=this[_0x403767(0x1bb)][_0x403767(0x332)]){this[_0x403767(0x3ff)]({'hovered':!0x0});return;}this[_0x403767(0x3ff)]({'hovered':!0x1});}['_startBlinking'](_0x19da85){const _0x556130=_0x31b914;this[_0x556130(0x13e)](),this['_isBlinkVisible']=!0x0,this['_blinkIntervalTimer']=window[_0x556130(0x1ca)](()=>{const _0x3e1428=_0x556130;this[_0x3e1428(0x3c5)]=!this[_0x3e1428(0x3c5)],this[_0x3e1428(0x37c)](!0x0);},0x1f4),this[_0x556130(0x23c)]=window[_0x556130(0x2db)](()=>{const _0x2f9a93=_0x556130;this[_0x2f9a93(0x13e)](),this['_isBlinkVisible']=!0x0,this[_0x2f9a93(0x37c)](!0x0);},_0x19da85*0x3e8);}['_stopBlinking'](){const _0x384d7a=_0x31b914;this[_0x384d7a(0x141)]&&=(window[_0x384d7a(0x3c1)](this[_0x384d7a(0x141)]),void 0x0),this['_blinkTimer']&&=(window[_0x384d7a(0x18d)](this['_blinkTimer']),void 0x0);}[_0x31b914(0x268)](_0x3d82d8){return!0x1;}['dispose'](){const _0x3f56a5=_0x31b914;this['_stopBlinking'](),super[_0x3f56a5(0x1bd)]();}[_0x31b914(0x135)](_0x53d1ff){const _0xa4e246=_0x31b914;let _0x1646c0=this['_color'],_0x252314=this['_backgroundColor'];if(this[_0xa4e246(0x13d)]&&!this[_0xa4e246(0x3c5)]&&(_0x1646c0=this[_0xa4e246(0x3ae)](this[_0xa4e246(0x108)]),_0x252314=this[_0xa4e246(0x2af)]?this[_0xa4e246(0x3ae)](this[_0xa4e246(0x2af)]):void 0x0),p[_0xa4e246(0x10e)]['drawWith'](_0x53d1ff,{'width':this[_0xa4e246(0x3f1)],'height':this[_0xa4e246(0x2c1)],'strokeWidth':this[_0xa4e246(0x35f)]||1.5,'stroke':_0x1646c0,'evented':!0x1,'fill':_0x252314}),this[_0xa4e246(0x380)]||this[_0xa4e246(0x33d)]){_0x53d1ff[_0xa4e246(0x226)]();let _0x309039=this[_0xa4e246(0x2b9)]===_0xa4e246(0x112)?-j(_0x53d1ff,this['_name']):this[_0xa4e246(0x3f1)];_0x53d1ff[_0xa4e246(0x387)](0x1,0x0,0x0,0x1,_0x309039,(this['_labelPosition']===_0xa4e246(0x2be)?0x0:-0x14)+(this[_0xa4e246(0x3c7)]??0x0)),me[_0xa4e246(0x360)](_0x53d1ff,{'text':this[_0xa4e246(0x337)],'color':_0x1646c0}),_0x53d1ff[_0xa4e246(0x22d)]();}}['_getLighterColor'](_0x565e80){const _0x52f695=_0x31b914;return _0x565e80[_0x52f695(0x394)]('#')?_0x52f695(0x120)+Number[_0x52f695(0x1b4)](_0x565e80['slice'](0x1,0x3),0x10)+',\x20'+Number[_0x52f695(0x1b4)](_0x565e80['slice'](0x3,0x5),0x10)+',\x20'+Number[_0x52f695(0x1b4)](_0x565e80[_0x52f695(0x3e7)](0x5,0x7),0x10)+_0x52f695(0x223):_0x565e80[_0x52f695(0x394)](_0x52f695(0x38e))?_0x565e80[_0x52f695(0x386)](/[\d.]+\)$/g,_0x52f695(0x1e4)):_0x565e80['startsWith'](_0x52f695(0x178))?_0x565e80[_0x52f695(0x386)]('rgb',_0x52f695(0x38e))[_0x52f695(0x386)](')',',\x200.2)'):_0x565e80;}};let F=class extends t[_0x31b914(0x1a7)]{constructor(_0x2981a7,_0x4e0b2a,_0x2ee1a0,_0x513a88){const _0x598ad9=_0x31b914;super(),this[_0x598ad9(0x3d2)]=_0x2981a7,this[_0x598ad9(0x131)]=_0x4e0b2a,this['_collabCursorController']=_0x2ee1a0,this[_0x598ad9(0x11b)]=_0x513a88,b(this,_0x598ad9(0x3b8),new Set()),b(this,_0x598ad9(0x133),null),b(this,_0x598ad9(0x369),null),this[_0x598ad9(0x23f)]();}[_0x31b914(0x23f)](){const _0x5794d3=_0x31b914;this[_0x5794d3(0x131)][_0x5794d3(0x351)][_0x5794d3(0x1c3)]((0x0,i['takeUntil'])(this[_0x5794d3(0x1f4)]),(0x0,i['switchMap'])(_0xff5ca=>{const _0x2c96c4=_0x5794d3;if(_0xff5ca){let _0x30632e=_0xff5ca[_0x2c96c4(0x2bd)];return(0x0,r[_0x2c96c4(0x3ed)])(this[_0x2c96c4(0x152)][_0x2c96c4(0x3d0)](this[_0x2c96c4(0x3d2)][_0x2c96c4(0x167)]),this[_0x2c96c4(0x11b)]['currentTheme$'])[_0x2c96c4(0x1c3)]((0x0,i[_0x2c96c4(0x2a9)])(([_0x518b7e,_0x5b1198])=>{const _0x7a499=_0x2c96c4;let _0x2296dd=new Map();return _0x518b7e[_0x7a499(0x363)]((_0x4c41ca,_0x150b3b)=>{const _0x2e8dde=_0x7a499;if(_0x4c41ca['sheetID']===_0x30632e){let _0x11d778={..._0x4c41ca};_0x11d778['color']=this[_0x2e8dde(0x11b)][_0x2e8dde(0x2dc)](_0x4c41ca[_0x2e8dde(0x3d1)]),_0x2296dd[_0x2e8dde(0x3c2)](_0x150b3b,_0x11d778);}}),{'skeleton':_0xff5ca,'cursors':_0x2296dd};}));}return(0x0,r['of'])({'skeleton':null,'cursors':new Map()});}))[_0x5794d3(0x151)](({skeleton:_0x24efc8,cursors:_0x31e75a})=>{const _0x281953=_0x5794d3;this[_0x281953(0x1d2)](),_0x24efc8&&this[_0x281953(0x3ba)](_0x24efc8,_0x31e75a);}),this['disposeWithMe'](this[_0x5794d3(0x131)][_0x5794d3(0x351)][_0x5794d3(0x1c3)]((0x0,i['takeUntil'])(this['dispose$']))[_0x5794d3(0x151)](_0x3a4fc5=>{const _0x44641e=_0x5794d3;var _0x32c1b4;if(_0x3a4fc5==null)return;(_0x32c1b4=this[_0x44641e(0x369)])==null||_0x32c1b4['unsubscribe'](),this[_0x44641e(0x369)]=null;let {skeleton:_0x259068}=_0x3a4fc5,{scene:_0x143583}=this[_0x44641e(0x3d2)];this['_pointerMoveDisposable']=_0x143583[_0x44641e(0x1c7)]['subscribeEvent']((0x0,t[_0x44641e(0x371)])(_0xad7684=>{const _0x4fcc75=_0x44641e;var _0x240bf3,_0x3e1356;let {offsetX:_0x4f078f,offsetY:_0x15c9f8}=_0xad7684,{x:_0x18b585,y:_0x3d575a}=_0x143583[_0x4fcc75(0x2c0)](p[_0x4fcc75(0x354)][_0x4fcc75(0x3c6)]([_0x4f078f,_0x15c9f8])),{scaleX:_0x15b9ae,scaleY:_0x41c9f1}=_0x143583['getAncestorScale'](),_0x4755a3=_0x143583[_0x4fcc75(0x3b1)](p['SHEET_VIEWPORT_KEY'][_0x4fcc75(0x31e)]),_0x1e489c=_0x143583[_0x4fcc75(0x3ef)](p[_0x4fcc75(0x354)]['FromArray']([_0x18b585,_0x3d575a]),_0x4755a3),_0x120b96=_0x259068[_0x4fcc75(0x25a)](_0x4f078f,_0x15c9f8,_0x15b9ae,_0x41c9f1,_0x1e489c);(((_0x240bf3=this[_0x4fcc75(0x133)])==null?void 0x0:_0x240bf3['column'])!==_0x120b96[_0x4fcc75(0x281)]||((_0x3e1356=this[_0x4fcc75(0x133)])==null?void 0x0:_0x3e1356[_0x4fcc75(0x1fa)])!==_0x120b96[_0x4fcc75(0x1fa)])&&this[_0x4fcc75(0x3b8)][_0x4fcc75(0x363)](_0x4b8d50=>{_0x4b8d50['onMouseMove'](_0x120b96);});},0x64));})),this[_0x5794d3(0x1c5)]((0x0,t[_0x5794d3(0x406)])(()=>{const _0x116c2a=_0x5794d3;var _0x2dba3e;(_0x2dba3e=this[_0x116c2a(0x369)])==null||_0x2dba3e[_0x116c2a(0x338)](),this['_pointerMoveDisposable']=null;}));}[_0x31b914(0x3ba)](_0xec42dd,_0x3f01d6){const _0xfd71a5=_0x31b914;let _0x2179a3=this[_0xfd71a5(0x131)][_0xfd71a5(0x11e)]();if(!_0x2179a3)return;let _0x1a2f19=this['_getSheetObject']();if(!_0x1a2f19)return;this[_0xfd71a5(0x3b8)][_0xfd71a5(0x363)](_0x5d7248=>{const _0x95f02e=_0xfd71a5;_0x5d7248[_0x95f02e(0x37c)]();});let {scene:_0x18435d}=_0x1a2f19,_0x4b5cfe=_e(Array[_0xfd71a5(0x391)](_0x3f01d6[_0xfd71a5(0x292)]()))['map'](_0x479879=>{const _0x1123bb=_0xfd71a5;let {color:_0x5bc464,range:_0x4d7d07,name:_0x55de8a,selection:_0x1e8d58,sheetID:_0x54c926}=_0x479879,{startColumn:_0x2f8b53,startRow:_0x147830,endColumn:_0x5454c5,endRow:_0x4c5d61}=_0x4d7d07,_0x2fc68b=(0x0,_[_0x1123bb(0x27c)])(_0x147830,_0x2f8b53,_0x18435d,_0x2179a3),_0x202122=(0x0,_[_0x1123bb(0x27c)])(_0x4c5d61,_0x5454c5,_0x18435d,_0x2179a3),{columnHeaderHeightAndMarginTop:_0x13d261}=_0x2179a3,{startX:_0x20a573,startY:_0x3c368f}=_0x2fc68b,{endX:_0x2dcce2,endY:_0x49a93f}=_0x202122,_0x5c25eb=_0x2dcce2-_0x20a573,_0x4ed057=_0x49a93f-_0x3c368f;return new ge(_0x55de8a,{'labelPosition':_0x3c368f-_0x13d261>=0x14?_0x1123bb(0x2d0):_0x1123bb(0x2be),'sheetID':_0x54c926,'range':_0x4d7d07,'color':_0x5bc464,'name':_0x55de8a,'selection':_0x1e8d58,'left':_0x20a573,'top':_0x3c368f,'width':_0x5c25eb,'height':_0x4ed057,'evented':!0x1,'zIndex':0x1389});});_0x18435d[_0xfd71a5(0x106)](_0x4b5cfe,0x1),this[_0xfd71a5(0x3b8)]=new Set(_0x4b5cfe);}[_0x31b914(0x1d2)](){const _0x383f89=_0x31b914;var _0x29893c;(_0x29893c=this['_cursors'])==null||_0x29893c[_0x383f89(0x363)](_0x42ff26=>_0x42ff26['dispose']());}[_0x31b914(0x31c)](){const _0xfa8786=_0x31b914;return(0x0,_[_0xfa8786(0x166)])(this[_0xfa8786(0x3d2)][_0xfa8786(0x14f)],this[_0xfa8786(0x3d2)]);}};F=S([x(0x1,(0x0,t[_0x31b914(0x3f6)])(_[_0x31b914(0x186)])),x(0x2,(0x0,t[_0x31b914(0x3f6)])(A)),x(0x3,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x14e)]))],F);function _e(_0x5810d8){const _0x54b81d=_0x31b914;let _0x383381=new Map();return _0x5810d8[_0x54b81d(0x363)](_0x48688a=>{const _0x553632=_0x54b81d;if(_0x383381[_0x553632(0x218)](_0x48688a[_0x553632(0x216)])){let _0x5dd9ea=_0x383381[_0x553632(0x246)](_0x48688a[_0x553632(0x216)]);_0x5dd9ea['name']+=',\x20'+_0x48688a[_0x553632(0x1e8)];}else _0x383381[_0x553632(0x3c2)](_0x48688a[_0x553632(0x216)],_0x48688a);}),Array[_0x54b81d(0x391)](_0x383381[_0x54b81d(0x292)]());}function I(_0x320779){const _0x5ed254=_0x31b914;return typeof _0x320779==_0x5ed254(0x22b)&&!!_0x320779;}function ve(_0x1ae033){const _0x14a4ca=_0x31b914;return _0x1ae033['eventID']===l[_0x14a4ca(0x1f8)][_0x14a4ca(0x1a1)]&&_0x14a4ca(0x2b6)in _0x1ae033&&I(_0x1ae033['data'])&&typeof _0x1ae033[_0x14a4ca(0x2b6)]['memberID']==_0x14a4ca(0x184)&&typeof _0x1ae033[_0x14a4ca(0x2b6)][_0x14a4ca(0x216)]==_0x14a4ca(0x184);}function _0x432a(_0x22722f,_0x3b0b72){_0x22722f=_0x22722f-0xfe;const _0x2abbcd=_0x2abb();let _0x432afa=_0x2abbcd[_0x22722f];return _0x432afa;}function ye(_0x537ffb){const _0x425feb=_0x31b914;return _0x537ffb[_0x425feb(0x3cf)]===l[_0x425feb(0x1f8)][_0x425feb(0x16d)]&&_0x425feb(0x2b6)in _0x537ffb&&I(_0x537ffb[_0x425feb(0x2b6)])&&typeof _0x537ffb[_0x425feb(0x2b6)][_0x425feb(0x2f4)]==_0x425feb(0x184);}function be(_0x5731c7,_0x133f9c){const _0x5e60e9=_0x31b914;let _0x584318;try{_0x584318=JSON[_0x5e60e9(0x2c4)](_0x5731c7);}catch{return null;}if(!I(_0x584318)||typeof _0x584318['kind']!=_0x5e60e9(0x184)||typeof _0x584318[_0x5e60e9(0x167)]!='string'||typeof _0x584318[_0x5e60e9(0x196)]!=_0x5e60e9(0x184))return null;let _0x38ff70=typeof _0x584318['unitType']==_0x5e60e9(0x250)?_0x584318['unitType']:_0x133f9c;if(_0x38ff70==null)return null;let _0x1dcbd6=I(_0x584318['pointer'])&&typeof _0x584318[_0x5e60e9(0x17b)]['x']==_0x5e60e9(0x250)&&Number['isFinite'](_0x584318[_0x5e60e9(0x17b)]['x'])&&typeof _0x584318[_0x5e60e9(0x17b)]['y']=='number'&&Number[_0x5e60e9(0x198)](_0x584318[_0x5e60e9(0x17b)]['y'])?{'x':_0x584318['pointer']['x'],'y':_0x584318[_0x5e60e9(0x17b)]['y']}:null;return{'kind':_0x584318[_0x5e60e9(0x1ba)],'unitType':_0x38ff70,'unitId':_0x584318[_0x5e60e9(0x167)],'subUnitId':_0x584318[_0x5e60e9(0x196)],'selectedIds':Array[_0x5e60e9(0x2e1)](_0x584318['selectedIds'])?_0x584318[_0x5e60e9(0x1b1)][_0x5e60e9(0x181)](_0x5066d4=>typeof _0x5066d4==_0x5e60e9(0x184)):[],'focusedId':typeof _0x584318['focusedId']==_0x5e60e9(0x184)?_0x584318[_0x5e60e9(0x347)]:null,'pointer':_0x1dcbd6};}function xe(_0x816f49,_0x2a89c3,_0x94b2f2){const _0x70d8f6=_0x31b914;return{'kind':_0x2a89c3,'unitType':_0x816f49,'unitId':_0x94b2f2[_0x70d8f6(0x167)],'subUnitId':_0x94b2f2[_0x70d8f6(0x196)],'selectedIds':Array[_0x70d8f6(0x391)](_0x94b2f2[_0x70d8f6(0x1b1)]),'focusedId':_0x94b2f2[_0x70d8f6(0x347)],'pointer':_0x94b2f2[_0x70d8f6(0x17b)]?{..._0x94b2f2[_0x70d8f6(0x17b)]}:null};}let L=class extends t['RxDisposable']{constructor(_0x152219,_0x8f973f,_0x489ed0,_0x38a7aa,_0x206dad,_0x41f429){const _0xcf36bd=_0x31b914;super(),this['unitId']=_0x152219,this[_0xcf36bd(0x1a3)]=_0x8f973f,this[_0xcf36bd(0x383)]=_0x489ed0,this[_0xcf36bd(0x23a)]=_0x38a7aa,this[_0xcf36bd(0x278)]=_0x206dad,this[_0xcf36bd(0x2a3)]=_0x41f429,b(this,_0xcf36bd(0x25f),!0x1),b(this,_0xcf36bd(0x203),!0x1);}get[_0x31b914(0x238)](){const _0x13372c=_0x31b914;return this[_0x13372c(0x383)][_0x13372c(0x238)];}[_0x31b914(0x1bd)](){const _0x179fd1=_0x31b914;this[_0x179fd1(0x15e)](),super[_0x179fd1(0x1bd)]();}[_0x31b914(0x344)](){const _0x301560=_0x31b914;this[_0x301560(0x203)]||(this['_initialized']=!0x0,this['_session']['sessionStatus$'][_0x301560(0x1c3)]((0x0,r['takeUntil'])(this[_0x301560(0x1f4)]))[_0x301560(0x151)](_0x1cb38b=>{const _0x4e1c18=_0x301560;if(_0x1cb38b===e['SessionStatus'][_0x4e1c18(0x396)]){this['_online']=!0x0;let _0x4f7201=this[_0x4e1c18(0x383)][_0x4e1c18(0x143)](this[_0x4e1c18(0x167)]);_0x4f7201&&this[_0x4e1c18(0x228)](_0x4f7201);return;}this[_0x4e1c18(0x25f)]=!0x1,this[_0x4e1c18(0x15e)]();}),this[_0x301560(0x1a3)][_0x301560(0x2bc)][_0x301560(0x1c3)]((0x0,r['takeUntil'])(this['dispose$']))['subscribe'](_0x5e7530=>{const _0x40d31a=_0x301560;ve(_0x5e7530)?this[_0x40d31a(0x20b)](_0x5e7530):ye(_0x5e7530)&&this[_0x40d31a(0x12f)](_0x5e7530[_0x40d31a(0x2b6)][_0x40d31a(0x2f4)]);}),this[_0x301560(0x383)][_0x301560(0x298)][_0x301560(0x1c3)]((0x0,r[_0x301560(0x181)])(_0x417c8b=>this[_0x301560(0x25f)]&&_0x417c8b['unitId']===this[_0x301560(0x167)]),(0x0,r[_0x301560(0x2d2)])(_0x1bd119=>(0x0,r[_0x301560(0x3b9)])(_0x1bd119['shareInterval']),{'leading':!0x0,'trailing':!0x0}),(0x0,r[_0x301560(0x256)])(this[_0x301560(0x1f4)]))[_0x301560(0x151)](_0x5896aa=>this['_sendLocalPresence'](_0x5896aa)));}[_0x31b914(0x228)](_0x29ddf1){const _0x1975bb=_0x31b914;let _0x55ffca=this[_0x1975bb(0x1a3)][_0x1975bb(0x331)]();if(!_0x55ffca||!this[_0x1975bb(0x25f)])return;let _0x5568e5={'eventID':l['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x1975bb(0x167)],'memberID':_0x55ffca,'selection':JSON[_0x1975bb(0x117)](xe(this[_0x1975bb(0x238)],this['_adapter'][_0x1975bb(0x21e)],_0x29ddf1))}};this[_0x1975bb(0x1a3)][_0x1975bb(0x297)](_0x5568e5,this[_0x1975bb(0x167)])['catch'](()=>void 0x0);}[_0x31b914(0x20b)](_0xb270da){const _0x1968b9=_0x31b914;let {memberID:_0x38fa60,selection:_0x524428}=_0xb270da[_0x1968b9(0x2b6)];if(_0x38fa60===this[_0x1968b9(0x1a3)][_0x1968b9(0x331)]())return;let _0x574425=be(_0x524428,this[_0x1968b9(0x238)]);if(!_0x574425||_0x574425[_0x1968b9(0x1ba)]!==this[_0x1968b9(0x383)][_0x1968b9(0x21e)]||_0x574425[_0x1968b9(0x238)]!==this[_0x1968b9(0x238)]||_0x574425[_0x1968b9(0x167)]!==this[_0x1968b9(0x167)])return;let _0x1a907e=this[_0x1968b9(0x278)][_0x1968b9(0x2c6)](this[_0x1968b9(0x167)],_0x38fa60),_0x1b2ad3={'unitId':_0x574425[_0x1968b9(0x167)],'subUnitId':_0x574425[_0x1968b9(0x196)],'selectedIds':_0x574425[_0x1968b9(0x1b1)],'focusedId':_0x574425[_0x1968b9(0x347)],'pointer':_0x574425[_0x1968b9(0x17b)],'memberId':_0x38fa60,'color':this[_0x1968b9(0x23a)][_0x1968b9(0x374)](_0x38fa60),'name':(_0x1a907e==null?void 0x0:_0x1a907e[_0x1968b9(0x1e8)])??_0x38fa60};this[_0x1968b9(0x2a3)]['executeCommand'](w['id'],{'unitType':this[_0x1968b9(0x238)],'update':{'type':'set','state':_0x1b2ad3}})[_0x1968b9(0x362)](()=>void 0x0);}[_0x31b914(0x12f)](_0x5649f5){const _0x2634e4=_0x31b914;this[_0x2634e4(0x2a3)][_0x2634e4(0x26c)](w['id'],{'unitType':this[_0x2634e4(0x238)],'update':{'type':_0x2634e4(0x247),'unitId':this[_0x2634e4(0x167)],'memberId':_0x5649f5}})['catch'](()=>void 0x0);}['_clearRemotePresences'](){const _0x450e13=_0x31b914;this[_0x450e13(0x2a3)]['executeCommand'](w['id'],{'unitType':this['unitType'],'update':{'type':'clear','unitId':this[_0x450e13(0x167)]}})['catch'](()=>void 0x0);}};L=S([x(0x3,(0x0,t['Inject'])(E)),x(0x4,(0x0,t[_0x31b914(0x3f6)])(e['MemberService'])),x(0x5,(0x0,t['Inject'])(t['ICommandService']))],L);let R=class extends t[_0x31b914(0x1a7)]{constructor(_0x4855a0,_0x408666,_0x2c1d5f,_0x4924b3){const _0x18f320=_0x31b914;super(),this[_0x18f320(0x320)]=_0x4855a0,this['_injector']=_0x408666,this[_0x18f320(0x31b)]=_0x2c1d5f,this[_0x18f320(0x274)]=_0x4924b3,b(this,'_isDisposed',!0x1),b(this,'_entities',new Map()),b(this,_0x18f320(0x2ce),new Map()),b(this,_0x18f320(0x3a0),new Map()),this['_init']();}[_0x31b914(0x1bd)](){const _0x39a131=_0x31b914;this['_isDisposed']=!0x0,this[_0x39a131(0x3a0)][_0x39a131(0x363)](_0x583b60=>_0x583b60[_0x39a131(0x1bd)]()),this['_adapterDisposables'][_0x39a131(0x114)](),this['_entities']['forEach'](_0x1b2191=>_0x1b2191[_0x39a131(0x1bd)]()),this[_0x39a131(0x123)]['clear'](),this[_0x39a131(0x2ce)][_0x39a131(0x114)](),super['dispose']();}[_0x31b914(0x23f)](){const _0x401cd7=_0x31b914;this['_adapterRegistry']['adapters$']['pipe']((0x0,r[_0x401cd7(0x256)])(this['dispose$']))['subscribe'](_0x4764cc=>this[_0x401cd7(0x100)](_0x4764cc));}['_syncAdapters'](_0x4d7d8d){const _0x336bfd=_0x31b914;let _0x56efcb=new Set(_0x4d7d8d[_0x336bfd(0x2a9)](_0x45b451=>_0x45b451[_0x336bfd(0x238)]));this[_0x336bfd(0x3a0)][_0x336bfd(0x363)]((_0x6cff2e,_0x20b3be)=>{const _0x17469e=_0x336bfd;_0x56efcb[_0x17469e(0x218)](_0x20b3be)||(_0x6cff2e['dispose'](),this[_0x17469e(0x3a0)][_0x17469e(0x255)](_0x20b3be),this[_0x17469e(0x31a)](_0x20b3be));}),_0x4d7d8d[_0x336bfd(0x363)](_0x3f75c1=>{const _0x65624=_0x336bfd;this[_0x65624(0x3a0)]['has'](_0x3f75c1[_0x65624(0x238)])||this[_0x65624(0x350)](_0x3f75c1);});}[_0x31b914(0x350)](_0x2dd75f){const _0x3321bd=_0x31b914;let _0x212465=new t[(_0x3321bd(0x27e))]();this['_adapterDisposables']['set'](_0x2dd75f[_0x3321bd(0x238)],_0x212465),_0x212465['add'](_0x2dd75f[_0x3321bd(0x1f7)]()),this['_univerInstanceService']['getAllUnitsForType'](_0x2dd75f[_0x3321bd(0x238)])[_0x3321bd(0x363)](_0x36342c=>this[_0x3321bd(0x326)](_0x36342c[_0x3321bd(0x30c)](),_0x2dd75f)['catch'](()=>void 0x0));let _0x928bf2=this[_0x3321bd(0x320)][_0x3321bd(0x282)](_0x2dd75f['unitType'])[_0x3321bd(0x151)](({unit:_0x19a09c})=>this[_0x3321bd(0x326)](_0x19a09c[_0x3321bd(0x30c)](),_0x2dd75f)[_0x3321bd(0x362)](()=>void 0x0));_0x212465[_0x3321bd(0x230)]((0x0,t[_0x3321bd(0x406)])(()=>_0x928bf2[_0x3321bd(0x338)]()));let _0x1839c0=this[_0x3321bd(0x320)]['getTypeOfUnitDisposed$'](_0x2dd75f[_0x3321bd(0x238)])[_0x3321bd(0x151)](_0x416ab0=>this[_0x3321bd(0x34c)](_0x416ab0[_0x3321bd(0x30c)]()));_0x212465[_0x3321bd(0x230)]((0x0,t[_0x3321bd(0x406)])(()=>_0x1839c0[_0x3321bd(0x338)]()));}async[_0x31b914(0x326)](_0x4744e4,_0x10902b){const _0x46b95a=_0x31b914;if(this['_entities'][_0x46b95a(0x218)](_0x4744e4)||this[_0x46b95a(0x2ce)][_0x46b95a(0x218)](_0x4744e4))return;let _0x597017={};this[_0x46b95a(0x2ce)][_0x46b95a(0x3c2)](_0x4744e4,_0x597017);let _0x1e9cbe=await this[_0x46b95a(0x31b)]['requireSession'](_0x4744e4)['catch'](_0x1c8a13=>{const _0x128711=_0x46b95a;throw this[_0x128711(0x2ce)][_0x128711(0x246)](_0x4744e4)===_0x597017&&this['_pendingEntities'][_0x128711(0x255)](_0x4744e4),_0x1c8a13;});if(this['_isDisposed']||this[_0x46b95a(0x2ce)][_0x46b95a(0x246)](_0x4744e4)!==_0x597017||this[_0x46b95a(0x274)][_0x46b95a(0x246)](_0x10902b[_0x46b95a(0x238)])!==_0x10902b){this[_0x46b95a(0x2ce)][_0x46b95a(0x246)](_0x4744e4)===_0x597017&&this['_pendingEntities'][_0x46b95a(0x255)](_0x4744e4);return;}let _0x2b192d=this[_0x46b95a(0x2d6)][_0x46b95a(0x2cb)](L,_0x4744e4,_0x1e9cbe,_0x10902b);_0x2b192d[_0x46b95a(0x344)](),this[_0x46b95a(0x2ce)][_0x46b95a(0x255)](_0x4744e4),this[_0x46b95a(0x123)][_0x46b95a(0x3c2)](_0x4744e4,_0x2b192d);}[_0x31b914(0x34c)](_0x329759){const _0x21143d=_0x31b914;this[_0x21143d(0x2ce)][_0x21143d(0x255)](_0x329759);let _0x5b6230=this[_0x21143d(0x123)][_0x21143d(0x246)](_0x329759);_0x5b6230&&(_0x5b6230[_0x21143d(0x1bd)](),this[_0x21143d(0x123)]['delete'](_0x329759));}[_0x31b914(0x31a)](_0x21b088){const _0x9e8cf6=_0x31b914;this[_0x9e8cf6(0x320)][_0x9e8cf6(0x36c)](_0x21b088)[_0x9e8cf6(0x363)](_0x17325e=>this[_0x9e8cf6(0x2ce)]['delete'](_0x17325e[_0x9e8cf6(0x30c)]())),Array['from'](this['_entities'][_0x9e8cf6(0x1db)]())[_0x9e8cf6(0x363)](([_0x1dd94a,_0x288285])=>{const _0x1c4bbe=_0x9e8cf6;_0x288285['unitType']===_0x21b088&&this[_0x1c4bbe(0x34c)](_0x1dd94a);});}};R=S([x(0x0,t[_0x31b914(0x3e9)]),x(0x1,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x2,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x137)])),x(0x3,(0x0,t[_0x31b914(0x3f6)])(n[_0x31b914(0x3fe)]))],R);let z=class extends t[_0x31b914(0x382)]{constructor(_0x166ad7,_0x214ca5,_0x2b0b73,_0x5403ac,_0x3d9c70,_0x537b1d){const _0x70e0c9=_0x31b914;super(),this['_beforeCloseService']=_0x166ad7,this[_0x70e0c9(0x172)]=_0x214ca5,this[_0x70e0c9(0x21b)]=_0x2b0b73,this['_messageService']=_0x5403ac,this['_notificationService']=_0x3d9c70,this[_0x70e0c9(0x242)]=_0x537b1d,this['_setupBeforeClosingHandler'](),this[_0x70e0c9(0x329)]();}[_0x31b914(0x34d)](){const _0xe0871e=_0x31b914;this[_0xe0871e(0x1c5)](this[_0xe0871e(0x30f)][_0xe0871e(0x3e3)](()=>{const _0xa9fbda=_0xe0871e;if(this[_0xa9fbda(0x172)][_0xa9fbda(0x32c)][_0xa9fbda(0x345)])return this[_0xa9fbda(0x242)]['t'](_0xa9fbda(0x322));}));}['_initEvent'](){const _0x561d16=_0x31b914;this[_0x561d16(0x1c5)](this[_0x561d16(0x21b)]['event$'][_0x561d16(0x151)](_0x544088=>{const _0x5104d5=_0x561d16;_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x1e1)]&&this[_0x5104d5(0x26e)][_0x5104d5(0x155)]({'type':a[_0x5104d5(0x190)][_0x5104d5(0x24f)],'content':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x26b))}),_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x19d)]&&this['_messageService'][_0x5104d5(0x155)]({'type':a[_0x5104d5(0x190)][_0x5104d5(0x24f)],'content':this[_0x5104d5(0x242)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x1f0)]&&this['_notificationService'][_0x5104d5(0x155)]({'title':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x20a)),'content':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x24b)),'type':_0x5104d5(0x2d4),'duration':0x0}),_0x544088['id']===e['CollaborationUIEventId'][_0x5104d5(0x2aa)]&&this[_0x5104d5(0x1c9)][_0x5104d5(0x155)]({'title':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x1ff)),'content':this['_localeService']['t']('collaboration-client-ui.conflict.content'),'type':_0x5104d5(0x2d4),'duration':0x0}),_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x334)]&&this['_messageService']['show']({'type':a[_0x5104d5(0x190)][_0x5104d5(0x24f)],'content':this[_0x5104d5(0x242)]['t'](_0x544088[_0x5104d5(0x2b6)]||'')}),_0x544088['id']===e[_0x5104d5(0x359)][_0x5104d5(0x1eb)]&&this['_messageService'][_0x5104d5(0x155)]({'type':a[_0x5104d5(0x190)]['Warning'],'content':this['_localeService']['t'](_0x5104d5(0x1fd))}),_0x544088['id']===e['CollaborationUIEventId'][_0x5104d5(0x33f)]&&this[_0x5104d5(0x26e)][_0x5104d5(0x155)]({'type':a['MessageType'][_0x5104d5(0x37b)],'content':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x2ff))}),_0x544088['id']===e[_0x5104d5(0x359)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5104d5(0x26e)]['show']({'type':a[_0x5104d5(0x190)]['Error'],'content':this[_0x5104d5(0x242)]['t'](_0x5104d5(0x29b))});}));}};z=S([x(0x0,n['IBeforeCloseService']),x(0x1,e['ILocalCacheService']),x(0x2,(0x0,t[_0x31b914(0x3f6)])(e['CollaborationUIEventService'])),x(0x3,n[_0x31b914(0x365)]),x(0x4,n[_0x31b914(0x366)]),x(0x5,(0x0,t['Inject'])(t[_0x31b914(0x38a)]))],z);const B=(0x0,t[_0x31b914(0x1d6)])(_0x31b914(0x36d));let V=class extends t[_0x31b914(0x1a7)]{constructor(_0x2aa5fa,_0x506d25,_0x1ad063,_0x20b32d){const _0x27dfe7=_0x31b914;super(),this[_0x27dfe7(0x3e5)]=_0x2aa5fa,this['_logService']=_0x506d25,this[_0x27dfe7(0x2a3)]=_0x1ad063,this[_0x27dfe7(0x37f)]=_0x20b32d,this[_0x27dfe7(0x23f)]()[_0x27dfe7(0x362)](_0x475c36=>this[_0x27dfe7(0x21c)]['error'](_0x27dfe7(0x19e),_0x475c36));}async[_0x31b914(0x23f)](){const _0x45202d=_0x31b914;let _0x3acb24=this['_urlService']['getParam'](_0x45202d(0x14f)),_0x123222=this[_0x45202d(0x3e5)]['getParam']('type'),_0x3822d3=this[_0x45202d(0x3e5)][_0x45202d(0x215)](_0x45202d(0x3dd));if(!_0x3acb24||!_0x123222){this[_0x45202d(0x21c)]['debug']('[CollaborationDataLoaderController]',_0x45202d(0x270));return;}let _0x4b504e=await this[_0x45202d(0x37f)][_0x45202d(0x103)](_0x3acb24,Number(_0x123222),_0x3822d3);this[_0x45202d(0x12c)]||_0x4b504e&&_0x4b504e instanceof t[_0x45202d(0x2b7)]&&await this[_0x45202d(0x1a4)](_0x4b504e);}async[_0x31b914(0x1a4)](_0x587c74){const _0x43124e=_0x31b914;await this['_updateSubUnitFromURLParams'](_0x587c74),!this[_0x43124e(0x12c)]&&(_0x587c74[_0x43124e(0x287)][_0x43124e(0x1c3)]((0x0,r[_0x43124e(0x256)])(this['dispose$']))[_0x43124e(0x151)](_0x249b10=>{const _0x223cab=_0x43124e;_0x249b10&&this[_0x223cab(0x2cf)](_0x249b10);}),this[_0x43124e(0x3e5)][_0x43124e(0x1d9)]['pipe']((0x0,r[_0x43124e(0x256)])(this['dispose$']))['subscribe'](()=>{const _0xccbdc5=_0x43124e;this[_0xccbdc5(0x1fb)](_0x587c74)[_0xccbdc5(0x362)](_0x515a6a=>this['_logService'][_0xccbdc5(0x2d4)]('[CollaborationDataLoaderController]',_0x515a6a));}));}[_0x31b914(0x2cf)](_0x10cc47,_0x4d6eda=!0x1){const _0x3dfb37=_0x31b914;let _0xcfdeb=this['_urlService']['getParam'](_0x3dfb37(0x3dd));_0x10cc47['getSheetId']()!==_0xcfdeb&&this[_0x3dfb37(0x3e5)][_0x3dfb37(0x3fb)](_0x3dfb37(0x3dd),_0x10cc47[_0x3dfb37(0x197)](),_0x4d6eda);}async['_updateSubUnitFromURLParams'](_0x5f48be){const _0x8b131=_0x31b914;var _0x4b14f3;let _0x26ad3b=this[_0x8b131(0x3e5)][_0x8b131(0x215)](_0x8b131(0x3dd));if(!_0x26ad3b||!_0x5f48be['getSheetBySheetId'](_0x26ad3b)){let _0x4ca129=_0x5f48be['getUnhiddenWorksheets']()[0x0],_0x5eb68a=_0x5f48be['getSheetBySheetId'](_0x4ca129);if(!_0x5eb68a||(this[_0x8b131(0x2cf)](_0x5eb68a,!0x0),this[_0x8b131(0x12c)]))return;await this[_0x8b131(0x2a3)][_0x8b131(0x26c)](g[_0x8b131(0x1b7)]['id'],{'unitId':_0x5f48be[_0x8b131(0x30c)](),'subUnitId':_0x4ca129});return;}((_0x4b14f3=_0x5f48be[_0x8b131(0x3a7)]())==null?void 0x0:_0x4b14f3['getSheetId']())!==_0x26ad3b&&await this[_0x8b131(0x2a3)][_0x8b131(0x26c)](g[_0x8b131(0x1b7)]['id'],{'unitId':_0x5f48be[_0x8b131(0x30c)](),'subUnitId':_0x26ad3b});}};V=S([x(0x0,B),x(0x1,t['ILogService']),x(0x2,t['ICommandService']),x(0x3,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x1fe)]))],V);let H=class{constructor(_0x3d9881,_0x51c90d){const _0x3c7aad=_0x31b914;this[_0x3c7aad(0x14a)]=_0x3d9881,this['_renderManagerService']=_0x51c90d;}['transformIMECache'](_0x1ecbd7){const _0x509830=_0x31b914;this['_transformUndoRedoStack'](_0x1ecbd7),this[_0x509830(0x3bc)](_0x1ecbd7);}[_0x31b914(0x1bc)](_0x1c3496){const _0x50c32a=_0x31b914;let {unitID:_0x4a1427}=_0x1c3496,{redoCache:_0x3f1978}=this[_0x50c32a(0x245)][_0x50c32a(0x158)](_0x4a1427)[_0x50c32a(0x14b)](f['DocIMEInputManagerService'])[_0x50c32a(0x2b3)]();if(_0x3f1978['length']===0x0)return _0x1c3496;let _0x4ef05e=t[_0x50c32a(0x2e9)][_0x50c32a(0x327)](_0x1c3496[_0x50c32a(0x18f)][0x0]);for(let _0x1d0a1f=0x0;_0x1d0a1f<_0x3f1978[_0x50c32a(0x18a)];_0x1d0a1f++){let _0x188de7={'id':'doc.mutation.rich-text-editing','params':{..._0x3f1978[_0x1d0a1f]}},_0x2c975e=this[_0x50c32a(0x14a)][_0x50c32a(0x22f)](_0x4ef05e,_0x188de7,!0x1);if((0x0,l[_0x50c32a(0x395)])(_0x2c975e))throw _0x2c975e[_0x50c32a(0x2d4)];_0x4ef05e=_0x2c975e[_0x50c32a(0x30a)];}return{...t['Tools'][_0x50c32a(0x327)](_0x1c3496),'mutations':[_0x4ef05e]};}[_0x31b914(0x3bf)](_0x4e4885){const _0x4197ea=_0x31b914;let {unitID:_0x1034de}=_0x4e4885,_0x3d0608=this[_0x4197ea(0x245)]['getRenderUnitById'](_0x1034de)[_0x4197ea(0x14b)](f[_0x4197ea(0x403)]),{undoCache:_0xa2d235,redoCache:_0x45e0b5}=_0x3d0608[_0x4197ea(0x2b3)]();if(_0xa2d235[_0x4197ea(0x18a)]===0x0||_0x45e0b5['length']===0x0)return;let _0x3afb4f=[],_0x4cac14=[],_0x1dfaa8=t[_0x4197ea(0x2e9)][_0x4197ea(0x327)](_0x4e4885[_0x4197ea(0x18f)][0x0]),_0x27b82b=t['Tools'][_0x4197ea(0x327)](_0x4e4885[_0x4197ea(0x18f)][0x0]);for(let _0x60d209=_0xa2d235[_0x4197ea(0x18a)]-0x1;_0x60d209>=0x0;_0x60d209--){let _0x162bea={'id':_0x4197ea(0x145),'params':{..._0xa2d235[_0x60d209]}},_0x4834cd={'id':_0x4197ea(0x145),'params':{..._0x45e0b5[_0x60d209]}},_0xa5144d=this[_0x4197ea(0x14a)]['transformMutation'](_0x1dfaa8,_0x162bea,!0x1),_0xca5416=this[_0x4197ea(0x14a)][_0x4197ea(0x22f)](_0x27b82b,_0x4834cd,!0x1);if((0x0,l[_0x4197ea(0x395)])(_0xa5144d))throw _0xa5144d[_0x4197ea(0x2d4)];if((0x0,l[_0x4197ea(0x395)])(_0xca5416))throw _0xca5416[_0x4197ea(0x2d4)];_0x3afb4f[_0x4197ea(0x2d1)](_0xa5144d[_0x4197ea(0x153)][_0x4197ea(0x3f2)]),_0x4cac14[_0x4197ea(0x2d1)](_0xca5416[_0x4197ea(0x153)][_0x4197ea(0x3f2)]),_0x1dfaa8=_0xa5144d[_0x4197ea(0x30a)],_0x27b82b=_0xca5416[_0x4197ea(0x30a)];}_0x3d0608[_0x4197ea(0x368)]({'undoCache':_0x3afb4f,'redoCache':_0x4cac14});}[_0x31b914(0x3bc)](_0x1458d1){const _0x4f5e88=_0x31b914;let {unitID:_0x886887}=_0x1458d1,_0x291648=this[_0x4f5e88(0x245)][_0x4f5e88(0x158)](_0x886887)[_0x4f5e88(0x14b)](f['DocIMEInputManagerService']),_0x2a3010=_0x291648[_0x4f5e88(0x177)]();if(_0x2a3010==null)return;let _0x48681e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1458d1[_0x4f5e88(0x2ec)],'actions':null,'textRanges':[_0x2a3010]}}],_0x40bd3e=this[_0x4f5e88(0x14a)][_0x4f5e88(0x323)](_0x1458d1,_0x48681e);if(!(0x0,l['isTransformMutationsWithChangesetSuccess'])(_0x40bd3e))throw _0x40bd3e['error'];let _0xb2b20c=_0x40bd3e[_0x4f5e88(0x153)][0x0][_0x4f5e88(0x3f2)]['textRanges'];Array[_0x4f5e88(0x2e1)](_0xb2b20c)&&_0xb2b20c[_0x4f5e88(0x18a)]&&_0x291648[_0x4f5e88(0x1f9)](_0xb2b20c[0x0]);}};H=S([x(0x0,l[_0x31b914(0x195)]),x(0x1,p['IRenderManagerService'])],H);let U=class{constructor(_0x226626,_0x425899,_0x31268e){const _0x255158=_0x31b914;this[_0x255158(0x2d6)]=_0x226626,this[_0x255158(0x14a)]=_0x425899,this[_0x255158(0x2c5)]=_0x31268e;}[_0x31b914(0x2b5)](_0x4a91ea){this['_transformHistoryAndStateStack'](_0x4a91ea);}[_0x31b914(0x1bc)](_0x400ac8){const _0xbff152=_0x31b914;let {unitID:_0x504ce3}=_0x400ac8,{collaboration:_0x200c8e}=this[_0xbff152(0x2c5)]['getStateCache'](_0x504ce3);if(_0x200c8e[_0xbff152(0x18a)]===0x0)return _0x400ac8;let _0x2f508f=t[_0xbff152(0x2e9)][_0xbff152(0x327)](_0x400ac8[_0xbff152(0x18f)][0x0]);for(let _0x28022c=0x0;_0x28022c<_0x200c8e['length'];_0x28022c++){let _0x17993d={'id':_0xbff152(0x145),'params':{'unitId':_0x200c8e[_0x28022c]['unitId'],..._0x200c8e[_0x28022c][_0xbff152(0x375)]}},_0x3efc92=this[_0xbff152(0x14a)]['transformMutation'](_0x2f508f,_0x17993d,!0x1);if((0x0,l['isTransformMutationFailure'])(_0x3efc92))throw _0x3efc92[_0xbff152(0x2d4)];_0x2f508f=_0x3efc92['m1Prime'];}return{...t[_0xbff152(0x2e9)][_0xbff152(0x327)](_0x400ac8),'mutations':[_0x2f508f]};}['_transformHistoryAndStateStack'](_0x52a077){const _0x406583=_0x31b914;let {unitID:_0x9bb8a9}=_0x52a077,{history:_0x2d725e,collaboration:_0x35b2dd}=this[_0x406583(0x2c5)][_0x406583(0x1ad)](_0x9bb8a9);if(_0x2d725e[_0x406583(0x18a)]===0x0&&_0x35b2dd['length']===0x0)return;let _0x52508f=[],_0x384c6f=[],_0x557567=t[_0x406583(0x2e9)][_0x406583(0x327)](_0x52a077['mutations'][0x0]),_0x37ea4c=t[_0x406583(0x2e9)][_0x406583(0x327)](_0x52a077[_0x406583(0x18f)][0x0]);for(let _0x4410c1=_0x2d725e[_0x406583(0x18a)]-0x1;_0x4410c1>=0x0;_0x4410c1--){let _0x3cc704={'id':_0x406583(0x145),'params':{'unitId':_0x2d725e[_0x4410c1][_0x406583(0x167)],..._0x2d725e[_0x4410c1]['undoState']}},_0x44feeb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2d725e[_0x4410c1][_0x406583(0x167)],..._0x2d725e[_0x4410c1]['redoState']}},_0x336484=this['_transformService'][_0x406583(0x22f)](_0x557567,_0x3cc704,!0x1),_0x4954f5=this[_0x406583(0x14a)]['transformMutation'](_0x37ea4c,_0x44feeb,!0x1);if((0x0,l[_0x406583(0x395)])(_0x336484))throw _0x336484[_0x406583(0x2d4)];if((0x0,l[_0x406583(0x395)])(_0x4954f5))throw _0x4954f5['error'];_0x52508f[_0x406583(0x2d1)]({..._0x2d725e[_0x4410c1],'undoState':_0x336484[_0x406583(0x153)][_0x406583(0x3f2)],'redoState':_0x4954f5[_0x406583(0x153)]['params']}),_0x557567=_0x336484[_0x406583(0x30a)],_0x37ea4c=_0x4954f5['m1Prime'];}_0x557567=t[_0x406583(0x2e9)][_0x406583(0x327)](_0x52a077[_0x406583(0x18f)][0x0]),_0x37ea4c=t[_0x406583(0x2e9)]['deepClone'](_0x52a077[_0x406583(0x18f)][0x0]);for(let _0x59f888=_0x35b2dd['length']-0x1;_0x59f888>=0x0;_0x59f888--){let _0xd0b22={'id':_0x406583(0x145),'params':{'unitId':_0x35b2dd[_0x59f888][_0x406583(0x167)],..._0x35b2dd[_0x59f888][_0x406583(0x2a5)]}},_0x319dcd={'id':_0x406583(0x145),'params':{'unitId':_0x35b2dd[_0x59f888][_0x406583(0x167)],..._0x35b2dd[_0x59f888][_0x406583(0x375)]}},_0x390cbe=this[_0x406583(0x14a)][_0x406583(0x22f)](_0x557567,_0xd0b22,!0x1),_0x3a8818=this[_0x406583(0x14a)][_0x406583(0x22f)](_0x37ea4c,_0x319dcd,!0x1);if((0x0,l[_0x406583(0x395)])(_0x390cbe))throw _0x390cbe[_0x406583(0x2d4)];if((0x0,l['isTransformMutationFailure'])(_0x3a8818))throw _0x3a8818[_0x406583(0x2d4)];_0x384c6f[_0x406583(0x2d1)]({..._0x35b2dd[_0x59f888],'undoState':_0x390cbe['m2Prime']['params'],'redoState':_0x3a8818[_0x406583(0x153)][_0x406583(0x3f2)]}),_0x557567=_0x390cbe[_0x406583(0x30a)],_0x37ea4c=_0x3a8818[_0x406583(0x30a)];}this[_0x406583(0x2c5)][_0x406583(0x239)](_0x9bb8a9,{'history':_0x52508f,'collaboration':_0x384c6f});}};U=S([x(0x0,(0x0,t['Inject'])(t[_0x31b914(0x3a6)])),x(0x1,l[_0x31b914(0x195)]),x(0x2,(0x0,t[_0x31b914(0x3f6)])(d[_0x31b914(0x124)]))],U);let W=class{constructor(_0x517f21,_0x41f6c4){const _0x36dda7=_0x31b914;this[_0x36dda7(0x20c)]=_0x517f21,this[_0x36dda7(0x14a)]=_0x41f6c4;}[_0x31b914(0x277)](_0x518057){const _0xb1864c=_0x31b914;var _0x42ad9f;let _0x15f004=this[_0xb1864c(0x20c)][_0xb1864c(0x2f1)]()??[],_0x2c8627=this[_0xb1864c(0x20c)]['getSelectionInfo']();if(_0x15f004[_0xb1864c(0x18a)]===0x0)return;let _0x56c765=_0x518057['unitID'],_0x37b637=[{'id':_0xb1864c(0x145),'params':{'unitId':_0x56c765,'actions':null,'textRanges':_0x15f004}}],_0xc8dd0b=this['_transformService'][_0xb1864c(0x323)](_0x518057,_0x37b637);if(!(0x0,l[_0xb1864c(0x2e0)])(_0xc8dd0b))throw _0xc8dd0b[_0xb1864c(0x2d4)];let _0x4930dc=(_0x42ad9f=_0xc8dd0b[_0xb1864c(0x153)][0x0])==null?void 0x0:_0x42ad9f['params'],_0x3a4889=_0x4930dc&&typeof _0x4930dc=='object'&&_0xb1864c(0x1d8)in _0x4930dc?_0x4930dc[_0xb1864c(0x1d8)]:null;if(!Se(_0x3a4889))return;let _0x406857=_0x518057[_0xb1864c(0x18f)]['some'](_0x34e87b=>G(_0x34e87b[_0xb1864c(0x3f2)]))?_0x3a4889==null?void 0x0:_0x3a4889[_0xb1864c(0x181)](_0x3103b4=>!(_0xb1864c(0x179)in _0x3103b4)):_0x3a4889;Array[_0xb1864c(0x2e1)](_0x406857)&&this[_0xb1864c(0x20c)][_0xb1864c(0x3cc)](_0x406857,{'unitId':_0x56c765,'subUnitId':_0x56c765},!0x1,_0x2c8627!=null&&_0x2c8627[_0xb1864c(0x2c2)]?{..._0x2c8627['options'],'wholeDocument':!0x1}:void 0x0);}};W=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(d['DocSelectionManagerService'])),x(0x1,l[_0x31b914(0x195)])],W);function Se(_0x58f14a){const _0x43b10c=_0x31b914;return Array[_0x43b10c(0x2e1)](_0x58f14a)&&_0x58f14a[_0x43b10c(0x2e7)](_0x53443d=>typeof _0x53443d==_0x43b10c(0x22b)&&!!_0x53443d&&_0x43b10c(0x328)in _0x53443d&&'endOffset'in _0x53443d);}function G(_0x2fea80){const _0x30495e=_0x31b914;return _0x2fea80==='tableSource'?!0x0:Array[_0x30495e(0x2e1)](_0x2fea80)?_0x2fea80[_0x30495e(0x2bf)](_0x4f2193=>G(_0x4f2193)):!_0x2fea80||typeof _0x2fea80!='object'?!0x1:Object['values'](_0x2fea80)[_0x30495e(0x2bf)](_0x910c57=>G(_0x910c57));}let K=class extends t[_0x31b914(0x382)]{constructor(_0x16cc5d,_0x1af418,_0x481054,_0x496b94,_0x38f558,_0x29c063,_0x1b9173){const _0x24c83f=_0x31b914;super(),this[_0x24c83f(0x18c)]=_0x16cc5d,this[_0x24c83f(0x309)]=_0x1af418,this[_0x24c83f(0x3b0)]=_0x481054,this[_0x24c83f(0x11d)]=_0x496b94,this[_0x24c83f(0x204)]=_0x38f558,this[_0x24c83f(0x26e)]=_0x29c063,this[_0x24c83f(0x242)]=_0x1b9173,b(this,_0x24c83f(0x296),new r[(_0x24c83f(0x336))](e[_0x24c83f(0x2f9)][_0x24c83f(0x367)])),this[_0x24c83f(0x194)]();}[_0x31b914(0x194)](){const _0x1ea8cc=_0x31b914;this[_0x1ea8cc(0x1c5)](this[_0x1ea8cc(0x18c)][_0x1ea8cc(0x2e2)][_0x1ea8cc(0x151)](_0x4a748e=>{const _0x1062ef=_0x1ea8cc;_0x4a748e instanceof e[_0x1062ef(0x2a2)]&&_0x4a748e['addHandlerCallback']({'onTransformIME':_0xd68bba=>this[_0x1062ef(0x309)][_0x1062ef(0x127)](_0xd68bba),'onTransformState':_0x514469=>this[_0x1062ef(0x3b0)][_0x1062ef(0x2b5)](_0x514469),'onTransformSelections':_0x573d9c=>this[_0x1062ef(0x11d)]['transformSelections'](_0x573d9c),'onSyncEditingCollabCursor':_0x226b38=>this[_0x1062ef(0x204)][_0x1062ef(0x2a0)](_0x226b38),'onTransformRemoteChangesetByIMECache':_0x1fea52=>this['_docTransformIMECacheService'][_0x1062ef(0x1bc)](_0x1fea52),'onTransformRemoteChangesetByStateCache':_0x38491f=>this[_0x1062ef(0x3b0)][_0x1062ef(0x1bc)](_0x38491f)});}));}};K=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x385)])),x(0x1,(0x0,t[_0x31b914(0x3f6)])(H)),x(0x2,(0x0,t[_0x31b914(0x3f6)])(U)),x(0x3,(0x0,t[_0x31b914(0x3f6)])(W)),x(0x4,(0x0,t[_0x31b914(0x3f6)])(D)),x(0x5,n['IMessageService']),x(0x6,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x38a)]))],K);let q=class extends t['Disposable']{constructor(_0x16156d,_0x5f28e3,_0x40a2e6,_0x47c790){const _0x1bb836=_0x31b914;super(),this['_injector']=_0x16156d,this[_0x1bb836(0x136)]=_0x5f28e3,this[_0x1bb836(0x21c)]=_0x40a2e6,this[_0x1bb836(0x341)]=_0x47c790,b(this,'_memberID',void 0x0),this['_init']();}[_0x31b914(0x23f)](){const _0x5c7b27=_0x31b914;this[_0x5c7b27(0x357)](),this['_initUnhandledRejectionListener'](),this[_0x5c7b27(0x129)](),this[_0x5c7b27(0x1a0)]();}[_0x31b914(0x1a0)](){const _0x1af7f8=_0x31b914;this['disposeWithMe'](this[_0x1af7f8(0x341)][_0x1af7f8(0x156)][_0x1af7f8(0x151)](_0x59dea3=>{const _0x3087aa=_0x1af7f8;this[_0x3087aa(0x36b)]=_0x59dea3==null?void 0x0:_0x59dea3[_0x3087aa(0x2f4)];}));}[_0x31b914(0x357)](){const _0x4055aa=_0x31b914;let _0x32f5b1=_0xd080ac=>{const _0x5abec=_0x432a;var _0x26a914;this[_0x5abec(0x19f)](_0x5abec(0x2d4),_0x5abec(0x308)+_0xd080ac[_0x5abec(0xfe)]+_0x5abec(0x209)+_0xd080ac['filename']+':'+_0xd080ac[_0x5abec(0x3df)]+':'+_0xd080ac[_0x5abec(0x26f)]+'\x0a'+(((_0x26a914=_0xd080ac[_0x5abec(0x2d4)])==null?void 0x0:_0x26a914[_0x5abec(0x30e)])||''));};window['addEventListener'](_0x4055aa(0x2d4),_0x32f5b1),this[_0x4055aa(0x1c5)](()=>{const _0x8562c6=_0x4055aa;window[_0x8562c6(0x2f6)](_0x8562c6(0x2d4),_0x32f5b1);});}[_0x31b914(0x272)](){const _0xe953a8=_0x31b914;let _0x22c9f6=_0x10a34e=>{const _0x3cb263=_0x432a;this[_0x3cb263(0x19f)](_0x3cb263(0x2d4),_0x3cb263(0x236)+_0x10a34e[_0x3cb263(0x2ac)]);};window[_0xe953a8(0x3f0)](_0xe953a8(0x288),_0x22c9f6),this[_0xe953a8(0x1c5)](()=>{const _0x56b2f7=_0xe953a8;window[_0x56b2f7(0x2f6)]('unhandledrejection',_0x22c9f6);});}[_0x31b914(0x129)](){const _0x1c2662=_0x31b914;let _0x2e27db=this[_0x1c2662(0x21c)][_0x1c2662(0x2d4)][_0x1c2662(0x258)](this[_0x1c2662(0x21c)]);this[_0x1c2662(0x21c)][_0x1c2662(0x2d4)]=(..._0x1ff8b5)=>{const _0x486276=_0x1c2662;let _0x1d2bb4=_0x1ff8b5[_0x486276(0x2a9)](_0x3f6472=>_0x3f6472 instanceof Error?_0x3f6472['message']+'\x0a'+_0x3f6472[_0x486276(0x30e)]:String(_0x3f6472))[_0x486276(0x3d5)]('\x20');this[_0x486276(0x19f)](_0x486276(0x2d4),_0x486276(0x3e8)+_0x1d2bb4),_0x2e27db(..._0x1ff8b5);},this[_0x1c2662(0x1c5)](()=>{const _0x4918c2=_0x1c2662;this[_0x4918c2(0x21c)][_0x4918c2(0x2d4)]=_0x2e27db;});}[_0x31b914(0x19f)](_0x45646d,_0x50dbc5){const _0x39f520=_0x31b914;try{let _0x29d82d={'userId':this['_memberID'],'logLabel':_0x45646d,'content':_0x50dbc5};this[_0x39f520(0x136)][_0x39f520(0x220)](_0x39f520(0x2bb),{'body':_0x29d82d})[_0x39f520(0x362)](()=>{});}catch{}}};q=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x1,(0x0,t[_0x31b914(0x3f6)])(m[_0x31b914(0x313)])),x(0x2,t[_0x31b914(0x2e3)]),x(0x3,(0x0,t[_0x31b914(0x3f6)])(e[_0x31b914(0x137)]))],q);function Ce({state$:_0x2d6af2}){const _0x1ad210=_0x31b914;let _0xef1897=(0x0,n[_0x1ad210(0x146)])(_0x2d6af2,null,!0x0);return _0xef1897?(0x0,c[_0x1ad210(0x169)])('div',{'data-u-comp':_0x1ad210(0x104),'role':_0x1ad210(0x265),'className':_0x1ad210(0x314),'children':[(0x0,c[_0x1ad210(0x311)])(o['WarningIcon'],{'className':'univer-size-4\x20univer-shrink-0\x20univer-text-amber-500'}),(0x0,c[_0x1ad210(0x311)])(_0x1ad210(0x128),{'children':_0xef1897[_0x1ad210(0x34a)]}),(0x0,c[_0x1ad210(0x311)])(a[_0x1ad210(0x234)],{'size':_0x1ad210(0x401),'variant':_0x1ad210(0x409),'onClick':()=>window[_0x1ad210(0x1df)][_0x1ad210(0x3a4)](),'children':_0xef1897['refreshLabel']})]}):null;}const we='snapshot-loading-';let J=class extends t[_0x31b914(0x382)]{constructor(_0x47db2e,_0x59e352,_0x257c0f,_0x27d82e,_0x3ff7d3,_0x2ae225){const _0x1fb19d=_0x31b914;super(),this[_0x1fb19d(0x210)]=_0x47db2e,this[_0x1fb19d(0x26e)]=_0x59e352,this[_0x1fb19d(0x242)]=_0x257c0f,this['_injector']=_0x27d82e,this[_0x1fb19d(0x3e5)]=_0x2ae225,b(this,'_timeoutState$',new r['BehaviorSubject'](null)),b(this,_0x1fb19d(0x2a8),new Set()),b(this,_0x1fb19d(0x243),new Map()),b(this,_0x1fb19d(0x1b0),new Map()),b(this,_0x1fb19d(0x1d3),this[_0x1fb19d(0x3d3)][_0x1fb19d(0x2f2)]());let _0x341b33=()=>(0x0,s[_0x1fb19d(0x349)])(Ce,{'state$':this[_0x1fb19d(0x1d3)]});this[_0x1fb19d(0x1c5)](_0x3ff7d3[_0x1fb19d(0x400)](n[_0x1fb19d(0x1ea)][_0x1fb19d(0x3ee)],()=>(0x0,n[_0x1fb19d(0x381)])(_0x341b33,this['_injector']))),this[_0x1fb19d(0x1c5)](this[_0x1fb19d(0x210)][_0x1fb19d(0x1c2)][_0x1fb19d(0x151)](_0x33d258=>{const _0x339eb1=_0x1fb19d;this[_0x339eb1(0x1b0)]=_0x33d258,_0x33d258[_0x339eb1(0x363)](_0x5a08ce=>this[_0x339eb1(0x3db)](_0x5a08ce));})),this[_0x1fb19d(0x1c5)](this[_0x1fb19d(0x3e5)][_0x1fb19d(0x1d9)][_0x1fb19d(0x151)](()=>{const _0x687cfe=_0x1fb19d;this[_0x687cfe(0x1b0)][_0x687cfe(0x363)](_0xee4311=>this[_0x687cfe(0x3db)](_0xee4311));}));}[_0x31b914(0x1bd)](){const _0x41254f=_0x31b914;this['_messageIds']['forEach'](_0x1d221f=>this[_0x41254f(0x26e)][_0x41254f(0x247)](_0x1d221f)),this[_0x41254f(0x2a8)][_0x41254f(0x114)](),this[_0x41254f(0x243)][_0x41254f(0x363)](({timeoutId:_0x458676})=>clearTimeout(_0x458676)),this[_0x41254f(0x243)][_0x41254f(0x114)](),this[_0x41254f(0x3d3)][_0x41254f(0x301)](),super[_0x41254f(0x1bd)]();}[_0x31b914(0x3db)](_0x3ebe60){const _0x3f37a7=_0x31b914;let _0x10a671=''+we+_0x3ebe60[_0x3f37a7(0x167)];if(_0x3ebe60['stage']===l['SnapshotLoadStage']['COMPLETE']){this[_0x3f37a7(0x2dd)](_0x3ebe60['unitId']),this['_clearTimeoutState'](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x26e)]['remove'](_0x10a671),this[_0x3f37a7(0x2a8)][_0x3f37a7(0x255)](_0x10a671);return;}if(!this[_0x3f37a7(0x379)](_0x3ebe60['unitId'])){this[_0x3f37a7(0x2dd)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x373)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x26e)][_0x3f37a7(0x247)](_0x10a671),this[_0x3f37a7(0x2a8)]['delete'](_0x10a671);return;}if(_0x3ebe60[_0x3f37a7(0x37d)]===l[_0x3f37a7(0x12e)][_0x3f37a7(0x40a)]){this[_0x3f37a7(0x2dd)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x373)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x26e)][_0x3f37a7(0x155)]({'id':_0x10a671,'type':a['MessageType'][_0x3f37a7(0x37b)],'content':this[_0x3f37a7(0x242)]['t'](_0x3f37a7(0x2ff))}),this[_0x3f37a7(0x2a8)]['delete'](_0x10a671);return;}if(_0x3ebe60['stage']!==l[_0x3f37a7(0x12e)][_0x3f37a7(0x147)]||_0x3ebe60[_0x3f37a7(0x3e0)]<=0xa){this[_0x3f37a7(0x2dd)](_0x3ebe60[_0x3f37a7(0x167)]),this[_0x3f37a7(0x26e)][_0x3f37a7(0x247)](_0x10a671),this[_0x3f37a7(0x2a8)][_0x3f37a7(0x255)](_0x10a671);return;}this['_watchBlockProgress'](_0x3ebe60)||(this[_0x3f37a7(0x26e)][_0x3f37a7(0x155)]({'id':_0x10a671,'type':a['MessageType']['Loading'],'duration':0x1/0x0,'content':this[_0x3f37a7(0x242)]['t'](_0x3f37a7(0x212))+'\x20'+_0x3ebe60[_0x3f37a7(0x24d)]+'/'+_0x3ebe60[_0x3f37a7(0x3e0)]}),this[_0x3f37a7(0x2a8)][_0x3f37a7(0x230)](_0x10a671));}[_0x31b914(0x306)](_0x597e08){const _0x36e972=_0x31b914;let _0x4d9103=this['_blockProgressWatches'][_0x36e972(0x246)](_0x597e08[_0x36e972(0x167)]);if((_0x4d9103==null?void 0x0:_0x4d9103['loadedBlocks'])===_0x597e08[_0x36e972(0x24d)])return _0x4d9103[_0x36e972(0x1d4)];this[_0x36e972(0x2dd)](_0x597e08[_0x36e972(0x167)]);let _0x1e4d44=setTimeout(()=>{const _0x1bdef4=_0x36e972;let _0x25ed5c=this[_0x1bdef4(0x243)][_0x1bdef4(0x246)](_0x597e08[_0x1bdef4(0x167)]);if(!_0x25ed5c||_0x25ed5c[_0x1bdef4(0x15b)]!==_0x1e4d44)return;_0x25ed5c[_0x1bdef4(0x1d4)]=!0x0;let _0x56f4e8=''+we+_0x597e08['unitId'];this[_0x1bdef4(0x26e)]['remove'](_0x56f4e8),this['_messageIds'][_0x1bdef4(0x255)](_0x56f4e8),this[_0x1bdef4(0x3d3)][_0x1bdef4(0x384)]({'unitId':_0x597e08[_0x1bdef4(0x167)],'content':this[_0x1bdef4(0x242)]['t'](_0x1bdef4(0x285),String(_0x597e08[_0x1bdef4(0x24d)]),String(_0x597e08[_0x1bdef4(0x3e0)])),'refreshLabel':this[_0x1bdef4(0x242)]['t'](_0x1bdef4(0x163))});},0xea60);return this['_blockProgressWatches']['set'](_0x597e08[_0x36e972(0x167)],{'loadedBlocks':_0x597e08[_0x36e972(0x24d)],'timedOut':!0x1,'timeoutId':_0x1e4d44}),!0x1;}[_0x31b914(0x2dd)](_0x3b51f9){const _0x32217a=_0x31b914;let _0x4a4e48=this[_0x32217a(0x243)]['get'](_0x3b51f9);_0x4a4e48&&(clearTimeout(_0x4a4e48[_0x32217a(0x15b)]),this['_blockProgressWatches']['delete'](_0x3b51f9),this[_0x32217a(0x373)](_0x3b51f9));}[_0x31b914(0x373)](_0x3ec947){const _0x43e5f9=_0x31b914;var _0x3c8d23;((_0x3c8d23=this['_timeoutState$'][_0x43e5f9(0x340)])==null?void 0x0:_0x3c8d23[_0x43e5f9(0x167)])===_0x3ec947&&this[_0x43e5f9(0x3d3)]['next'](null);}[_0x31b914(0x379)](_0x16d9ed){const _0x5f31ac=_0x31b914;let _0x4d48fb=this[_0x5f31ac(0x3e5)][_0x5f31ac(0x215)]('unit');return!_0x4d48fb||_0x4d48fb===_0x16d9ed;}};J=S([x(0x0,(0x0,t['Inject'])(l[_0x31b914(0x2ab)])),x(0x1,n[_0x31b914(0x365)]),x(0x2,(0x0,t[_0x31b914(0x3f6)])(t['LocaleService'])),x(0x3,(0x0,t[_0x31b914(0x3f6)])(t['Injector'])),x(0x4,n[_0x31b914(0x157)]),x(0x5,B)],J);function Te(_0x33d829){const _0x5e5f87=_0x31b914;var _0x749a54,_0x33755c;let _0x3c4c0e=(_0x749a54=_0x33d829[_0x5e5f87(0x1cc)])==null?void 0x0:_0x749a54[_0x5e5f87(0x37d)],_0x2b5285=((_0x33755c=_0x33d829[_0x5e5f87(0x1cc)])==null?void 0x0:_0x33755c[_0x5e5f87(0x34e)])||0x0;return _0x3c4c0e===h['FormulaExecuteStageType']['START_CALCULATION']&&_0x2b5285>0x0;}function Ee(_0x9333e3){const _0x20f09f=_0x31b914;return _0x9333e3[_0x20f09f(0x330)]===h['FormulaExecutedStateType'][_0x20f09f(0x40e)];}let Y=class extends t[_0x31b914(0x382)]{constructor(_0x3ad048,_0x48b6e0,_0x1148c7,_0x42cfa3,_0x103182,_0xb12cd6,_0x2a90a9){const _0x2398eb=_0x31b914;super(),this['_messageService']=_0x3ad048,this['_commandService']=_0x48b6e0,this['_configService']=_0x1148c7,this['_httpService']=_0x42cfa3,this[_0x2398eb(0x320)]=_0x103182,this[_0x2398eb(0x21c)]=_0xb12cd6,this[_0x2398eb(0x242)]=_0x2a90a9,b(this,_0x2398eb(0x126),null),b(this,_0x2398eb(0x1a6),0x0),b(this,_0x2398eb(0x399),0x0),b(this,_0x2398eb(0x222),[]),b(this,_0x2398eb(0x1ce),0x0),this['_initCommandInterceptor']();}['_initCommandInterceptor'](){const _0x2de1db=_0x31b914;this[_0x2de1db(0x1c5)](this['_commandService'][_0x2de1db(0x299)]((_0x5a06f4,_0x3dd0a4)=>{const _0x1045e3=_0x2de1db;if(_0x5a06f4['id']!==h[_0x1045e3(0x159)]['id'])return;let _0x5478b9=_0x5a06f4['params'];if(this[_0x1045e3(0x397)](_0x5478b9[_0x1045e3(0x283)]??[])&&!this[_0x1045e3(0x1c6)]())throw this[_0x1045e3(0x2ea)](_0x5a06f4,_0x3dd0a4),this[_0x1045e3(0x315)](),new t[(_0x1045e3(0x1cf))]();})),this['disposeWithMe'](this[_0x2de1db(0x2a3)][_0x2de1db(0x180)]((_0x4bcd58,_0x26cd37)=>{const _0x250756=_0x2de1db;if(_0x4bcd58['id']!==h[_0x250756(0x132)]['id'])return;let _0x7e4220=_0x4bcd58[_0x250756(0x3f2)];if(Te(_0x7e4220)){let _0x275961=(0x0,t[_0x250756(0x174)])();this[_0x250756(0x222)]['push'](_0x275961),this[_0x250756(0x38f)](_0x275961);}else{if(Ee(_0x7e4220)&&this[_0x250756(0x222)]['length']>0x0){let _0x13a72e=this[_0x250756(0x222)]['shift']();this['_releaseCalculationLimit'](_0x13a72e);}}}));}[_0x31b914(0x1bd)](){const _0x447523=_0x31b914;super[_0x447523(0x1bd)](),this[_0x447523(0x214)](),this['_taskIds']=[],this['_currentUsage']=0x0,this['_maxFormulaLimit']=0x0,this[_0x447523(0x1ce)]=0x0;}async[_0x31b914(0x2ea)](_0x1da45e,_0x50774e){const _0x5e8a7f=_0x31b914;for(let _0x678936=0x0;_0x678936<0x1e;_0x678936++)try{if(await this[_0x5e8a7f(0x16c)](),this['_checkCalculationAvailable']()){this[_0x5e8a7f(0x15d)](_0x1da45e,_0x50774e),this[_0x5e8a7f(0x26e)][_0x5e8a7f(0x155)]({'content':this[_0x5e8a7f(0x242)]['t'](_0x5e8a7f(0x3a3)),'type':a['MessageType']['Success']});return;}await new Promise(_0x24eddf=>{const _0x1695b7=_0x5e8a7f;this[_0x1695b7(0x126)]=window['setTimeout'](_0x24eddf,0x3e8);});}catch(_0x162299){this[_0x5e8a7f(0x21c)]['error'](_0x162299);}this['_messageService']['show']({'content':this['_localeService']['t'](_0x5e8a7f(0x193)),'type':a[_0x5e8a7f(0x190)][_0x5e8a7f(0x37b)]});}['_applyCommand'](_0x54d617,_0x5c6ffc){const _0x12db05=_0x31b914;try{this[_0x12db05(0x2a3)][_0x12db05(0x26c)](_0x54d617['id'],_0x54d617[_0x12db05(0x3f2)],_0x5c6ffc);}catch(_0x19c7c2){this[_0x12db05(0x21c)][_0x12db05(0x2d4)](_0x19c7c2);}}[_0x31b914(0x342)](_0x307b95,_0x30a525){const _0x44ebf8=_0x31b914;_0x30a525<this['_lastResponseTimestamp']||(this[_0x44ebf8(0x1ce)]=_0x30a525,this[_0x44ebf8(0x1a6)]=Number['parseInt'](_0x307b95[_0x44ebf8(0x171)]),this[_0x44ebf8(0x399)]=Number[_0x44ebf8(0x1b4)](_0x307b95[_0x44ebf8(0x16a)]));}async[_0x31b914(0x38f)](_0x2f6b90){const _0x1c6232=_0x31b914;let _0x394f23=Date[_0x1c6232(0x2b0)]();try{var _0x250f64,_0x1a9913;let _0x3bde16=((_0x250f64=this[_0x1c6232(0x3fc)][_0x1c6232(0x291)](e[_0x1c6232(0x170)]))==null?void 0x0:_0x250f64[_0x1c6232(0x27a)])||_0x1c6232(0x3ad),_0x3f386f=(await this['_httpService'][_0x1c6232(0x220)](_0x3bde16,{'body':JSON[_0x1c6232(0x117)]({'taskId':_0x2f6b90})}))[_0x1c6232(0x176)];if(((_0x1a9913=_0x3f386f['error'])==null?void 0x0:_0x1a9913['code'])!==v['ErrorCode']['OK'])return;this[_0x1c6232(0x342)](_0x3f386f['limitInfo'],_0x394f23);}catch(_0x2a670f){this[_0x1c6232(0x21c)][_0x1c6232(0x2d4)](_0x2a670f);}}async[_0x31b914(0x16c)](_0x1fd63e){const _0x40d708=_0x31b914;let _0x12dca8=Date['now']();try{var _0x560895,_0x3859c8;let _0x9d71bc=((_0x560895=this[_0x40d708(0x3fc)]['getConfig'](e[_0x40d708(0x170)]))==null?void 0x0:_0x560895[_0x40d708(0x17f)])||'/universer-api/license/formula/limit/status',_0x199ede=_0x1fd63e?_0x9d71bc+_0x40d708(0x17c)+encodeURIComponent(_0x1fd63e):_0x9d71bc,_0x2f7a7b=(await this[_0x40d708(0x136)][_0x40d708(0x246)](_0x199ede))[_0x40d708(0x176)];if(((_0x3859c8=_0x2f7a7b[_0x40d708(0x2d4)])==null?void 0x0:_0x3859c8['code'])!==v[_0x40d708(0x23d)]['OK'])return;this[_0x40d708(0x342)](_0x2f7a7b['limitInfo'],_0x12dca8);}catch(_0x38182b){this[_0x40d708(0x21c)][_0x40d708(0x2d4)](_0x38182b);}}async[_0x31b914(0x333)](_0x3c5d10){const _0x1d1500=_0x31b914;let _0x2bfbc4=Date[_0x1d1500(0x2b0)]();try{var _0x534107,_0x30a750;let _0x4043bf=((_0x534107=this[_0x1d1500(0x3fc)][_0x1d1500(0x291)](e[_0x1d1500(0x170)]))==null?void 0x0:_0x534107[_0x1d1500(0x2cd)])||_0x1d1500(0x3af),_0x4bc8d2=(await this[_0x1d1500(0x136)][_0x1d1500(0x220)](_0x4043bf,{'body':JSON['stringify']({'taskId':_0x3c5d10})}))[_0x1d1500(0x176)];if(((_0x30a750=_0x4bc8d2[_0x1d1500(0x2d4)])==null?void 0x0:_0x30a750[_0x1d1500(0x208)])!==v[_0x1d1500(0x23d)]['OK'])return;this[_0x1d1500(0x342)](_0x4bc8d2['limitInfo'],_0x2bfbc4);}catch(_0x3d51df){this[_0x1d1500(0x21c)][_0x1d1500(0x2d4)](_0x3d51df);}}[_0x31b914(0x1c6)](){const _0x4ceb18=_0x31b914;return this[_0x4ceb18(0x1a6)]===0x0||this['_maxFormulaLimit']-this[_0x4ceb18(0x399)]>0x0;}[_0x31b914(0x214)](){const _0x556c8b=_0x31b914;this[_0x556c8b(0x126)]&&=(clearTimeout(this[_0x556c8b(0x126)]),null);}[_0x31b914(0x315)](){const _0x46db6a=_0x31b914;this[_0x46db6a(0x26e)][_0x46db6a(0x155)]({'content':this[_0x46db6a(0x242)]['t'](_0x46db6a(0x154)),'type':a[_0x46db6a(0x190)][_0x46db6a(0x21a)]});}['_hasFormulaInDirtyRanges'](_0x5147f3){const _0x1ea3dc=_0x31b914;for(let _0x55c8b3 of _0x5147f3){let {unitId:_0x90fc36,sheetId:_0x2a8c1a,range:_0x1ef6ee}=_0x55c8b3,_0x311cff=this[_0x1ea3dc(0x320)][_0x1ea3dc(0x115)](_0x90fc36,t[_0x1ea3dc(0x2f0)][_0x1ea3dc(0x321)]);if(!_0x311cff)continue;let _0x1db214=_0x311cff[_0x1ea3dc(0x257)](_0x2a8c1a);if(!_0x1db214)continue;let _0x425e9=_0x1db214['getCellMatrix']();for(let _0x7b39d8=_0x1ef6ee['startRow'];_0x7b39d8<=_0x1ef6ee['endRow'];_0x7b39d8++)for(let _0x9b2d60=_0x1ef6ee[_0x1ea3dc(0x13a)];_0x9b2d60<=_0x1ef6ee[_0x1ea3dc(0x332)];_0x9b2d60++){let _0x4302f1=_0x425e9[_0x1ea3dc(0x102)](_0x7b39d8,_0x9b2d60);if(_0x4302f1&&((0x0,t[_0x1ea3dc(0x187)])(_0x4302f1['f'])||(0x0,t['isFormulaId'])(_0x4302f1['si'])))return!0x0;}}return!0x1;}};Y=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(n['IMessageService'])),x(0x1,t[_0x31b914(0x2fb)]),x(0x2,t[_0x31b914(0x38b)]),x(0x3,(0x0,t[_0x31b914(0x3f6)])(m['HTTPService'])),x(0x4,t[_0x31b914(0x3e9)]),x(0x5,t['ILogService']),x(0x6,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x38a)]))],Y);let X=class extends t[_0x31b914(0x382)]{constructor(_0x16bd06,_0x1d6610,_0x56d4b9){const _0x44428d=_0x31b914;super(),this[_0x44428d(0x3fc)]=_0x16bd06,this[_0x44428d(0x233)]=_0x1d6610,this[_0x44428d(0x27f)]=_0x56d4b9,b(this,_0x44428d(0x20d),new Map()),b(this,_0x44428d(0x1cd),new Map()),b(this,_0x44428d(0x32e),!0x1);}[_0x31b914(0x28b)](){const _0x3fcb2b=_0x31b914;this[_0x3fcb2b(0x32e)]=!0x0;}[_0x31b914(0x1b9)](){const _0x25ead9=_0x31b914;this[_0x25ead9(0x32e)]=!0x1;}get[_0x31b914(0x32c)](){return this['_saveTaskMap'];}[_0x31b914(0x1bd)](){const _0x252554=_0x31b914;this['exhaustSavingTask']()[_0x252554(0x372)](()=>super[_0x252554(0x1bd)]());}async[_0x31b914(0x168)](_0x50b154){const _0x29585a=_0x31b914;return this[_0x29585a(0x32e)]?null:this[_0x29585a(0x233)][_0x29585a(0x325)]((0x0,e['getLocalCacheKey'])(_0x50b154));}async[_0x31b914(0x225)](_0x56085f,_0x4160dd){const _0x26ba69=_0x31b914;return!!this[_0x26ba69(0x233)]['setItem']((0x0,e[_0x26ba69(0x27b)])(_0x56085f),_0x4160dd);}async['backupOfflineData'](_0x167f39,_0x1fc8e2){const _0x5068bd=_0x31b914;let _0x1bf76d=this[_0x5068bd(0x20d)][_0x5068bd(0x246)](_0x167f39)??await this[_0x5068bd(0x233)][_0x5068bd(0x325)]((0x0,e['getLocalCacheKey'])(_0x167f39));if(!_0x1bf76d)return;let _0x22f7f0=Date['now'](),_0x455ffc=new Date(_0x22f7f0)['toISOString']();await this[_0x5068bd(0x233)]['setItem']((0x0,e[_0x5068bd(0x27b)])(_0x167f39)+_0x5068bd(0x377)+_0x22f7f0,{'reason':_0x1fc8e2,'createdAt':_0x455ffc,'data':_0x1bf76d});}[_0x31b914(0x405)](_0x5401dd,_0x2cd84a,_0x564f10,_0x1c050a){const _0x515d0c=_0x31b914;let _0x3bc8ae=this[_0x515d0c(0x27f)][_0x515d0c(0x295)](_0x5401dd);this['_cachedData']['set'](_0x5401dd,{'unitID':_0x5401dd,'type':_0x2cd84a,'awaitingChangeset':_0x564f10,'mutations':_0x1c050a,'rev':_0x3bc8ae}),this['_saveTaskMap'][_0x515d0c(0x218)](_0x5401dd)||this[_0x515d0c(0x3ea)](_0x5401dd);}[_0x31b914(0x3ea)](_0x5f324e){const _0x282f04=_0x31b914;let _0x59ec08=this[_0x282f04(0x1d5)]();_0x59ec08===0x0?this[_0x282f04(0x2ad)](_0x5f324e):this[_0x282f04(0x1cd)]['set'](_0x5f324e,window['setTimeout'](()=>this[_0x282f04(0x2ad)](_0x5f324e),_0x59ec08));}[_0x31b914(0x1d5)](){const _0x342e63=_0x31b914;return this[_0x342e63(0x3fc)][_0x342e63(0x291)](e[_0x342e63(0x1e9)])??e['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x14472d){const _0x47c466=_0x31b914;let _0x2ccb53=this['_saveTaskMap'][_0x47c466(0x246)](_0x14472d);return _0x2ccb53!==void 0x0&&window[_0x47c466(0x18d)](_0x2ccb53),this[_0x47c466(0x233)][_0x47c466(0x2d7)]((0x0,e[_0x47c466(0x27b)])(_0x14472d),this[_0x47c466(0x20d)][_0x47c466(0x246)](_0x14472d))[_0x47c466(0x372)](()=>this[_0x47c466(0x1cd)][_0x47c466(0x255)](_0x14472d));}async[_0x31b914(0x3cb)](){const _0x1b8b73=_0x31b914;let _0x1cd71a=[];this[_0x1b8b73(0x1cd)][_0x1b8b73(0x363)]((_0x26cfa9,_0x46534f)=>{const _0x4717db=_0x1b8b73;window['clearTimeout'](_0x26cfa9),_0x1cd71a[_0x4717db(0x310)](this['_saveCache'](_0x46534f)['then'](()=>{const _0x3b5164=_0x4717db;this[_0x3b5164(0x1cd)][_0x3b5164(0x255)](_0x46534f);}));}),await Promise['all'](_0x1cd71a);}};X=S([x(0x0,t['IConfigService']),x(0x1,t[_0x31b914(0x224)]),x(0x2,(0x0,t[_0x31b914(0x3f6)])(l[_0x31b914(0x1f3)]))],X);var De=class extends t['RxDisposable']{constructor(){const _0x4d308b=_0x31b914;super(),b(this,'urlChange$',void 0x0),this[_0x4d308b(0x1d9)]=(0x0,r[_0x4d308b(0x30b)])(window,_0x4d308b(0x2b8))[_0x4d308b(0x1c3)]((0x0,r['takeUntil'])(this[_0x4d308b(0x1f4)]),(0x0,r[_0x4d308b(0x1c4)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,r[_0x4d308b(0x3ca)])(void 0x0));}[_0x31b914(0x3fb)](_0xfc4be,_0x577e01,_0x105234=!0x1){const _0x143456=_0x31b914;let _0x2461a1=new URL(window[_0x143456(0x1df)]['href']);_0x2461a1[_0x143456(0x259)][_0x143456(0x3c2)](_0xfc4be,_0x577e01),_0x105234?window[_0x143456(0x175)][_0x143456(0x1be)]('','',_0x2461a1['toString']()):window[_0x143456(0x175)][_0x143456(0x3e2)]('','',_0x2461a1[_0x143456(0x2ba)]());}[_0x31b914(0x19b)](_0x46b9f6,_0x11edf7=!0x1){const _0x5cbc20=_0x31b914;let _0x485d6f=new URL(window['location'][_0x5cbc20(0x2e4)]);_0x485d6f[_0x5cbc20(0x259)][_0x5cbc20(0x255)](_0x46b9f6),_0x11edf7?window['history'][_0x5cbc20(0x1be)]('','',_0x485d6f['toString']()):window[_0x5cbc20(0x175)][_0x5cbc20(0x3e2)]('','',_0x485d6f[_0x5cbc20(0x2ba)]());}['getParam'](_0x2963eb){const _0x1c1596=_0x31b914;return new URL(window[_0x1c1596(0x1df)][_0x1c1596(0x2e4)])['searchParams'][_0x1c1596(0x246)](_0x2963eb)??void 0x0;}};let Z=class extends t['Plugin']{constructor(_0x231dfa=ce,_0x303861,_0x4d259b,_0x32348a,_0x4e5d74){const _0x339ff7=_0x31b914;super(),this['_config']=_0x231dfa,this[_0x339ff7(0x245)]=_0x303861,this['_injector']=_0x4d259b,this[_0x339ff7(0x3fc)]=_0x32348a,this[_0x339ff7(0x2a3)]=_0x4e5d74;let {..._0xc9e9e9}=(0x0,t['merge'])({},ce,this[_0x339ff7(0x3f5)]);this['_configService'][_0x339ff7(0x280)](_0x339ff7(0x118),_0xc9e9e9);}[_0x31b914(0x3b3)](){const _0x39b9c5=_0x31b914;this['_registerDependencies'](),this[_0x39b9c5(0x1c5)](this[_0x39b9c5(0x2a3)][_0x39b9c5(0x2d5)](w)),this['_initDependencies']();}[_0x31b914(0x2c7)](){const _0x127b63=_0x31b914;this[_0x127b63(0x2eb)]();}[_0x31b914(0x1e7)](){const _0x562265=_0x31b914;var _0x211c69;let _0x4e1091=[[E],[Y],[B,{'useClass':De}],[m[_0x562265(0x404)],{'useClass':m[_0x562265(0x408)]}],[e['ILocalCacheService'],{'useClass':X}],[C],[z],[A],[R],[V],[J]];this[_0x562265(0x3f5)][_0x562265(0x40f)]!==!0x1&&_0x4e1091[_0x562265(0x310)]([W],[H],[U],[D],[K],[T]),this[_0x562265(0x3f5)][_0x562265(0x356)]&&_0x4e1091[_0x562265(0x310)]([q]),(0x0,t[_0x562265(0x370)])(this[_0x562265(0x2d6)],(0x0,t[_0x562265(0x28e)])(_0x4e1091,(_0x211c69=this[_0x562265(0x3f5)])==null?void 0x0:_0x211c69[_0x562265(0x32f)]));}['_registerRenderDependencies'](){const _0x56fbc9=_0x31b914;this[_0x56fbc9(0x3f5)][_0x56fbc9(0x40f)]!==!0x1&&this[_0x56fbc9(0x1c5)](this[_0x56fbc9(0x245)][_0x56fbc9(0x3c3)](t[_0x56fbc9(0x2f0)][_0x56fbc9(0x221)],[P])),this['disposeWithMe'](this[_0x56fbc9(0x245)]['registerRenderModule'](t[_0x56fbc9(0x2f0)][_0x56fbc9(0x321)],[F]));}[_0x31b914(0x3bb)](){const _0x40ccd9=_0x31b914;(0x0,t[_0x40ccd9(0x1b2)])(this[_0x40ccd9(0x2d6)],[[A],[R],[C],[z],[V],[Y],[J]]),this['_config'][_0x40ccd9(0x40f)]!==!0x1&&(0x0,t[_0x40ccd9(0x1b2)])(this['_injector'],[[K],[T]]),this['_config'][_0x40ccd9(0x356)]&&(0x0,t[_0x40ccd9(0x1b2)])(this[_0x40ccd9(0x2d6)],[[q]]);}};b(Z,'pluginName','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN'),b(Z,_0x31b914(0x2e6),oe),b(Z,_0x31b914(0x3ec),se),Z=S([(0x0,t[_0x31b914(0x300)])(u[_0x31b914(0x3c9)],d[_0x31b914(0x364)],p[_0x31b914(0x39c)],m[_0x31b914(0x303)],l['UniverCollaborationPlugin'],f[_0x31b914(0x1e0)],e[_0x31b914(0x3f9)]),x(0x1,p['IRenderManagerService']),x(0x2,(0x0,t[_0x31b914(0x3f6)])(t['Injector'])),x(0x3,t[_0x31b914(0x38b)]),x(0x4,t['ICommandService'])],Z);let Q=class extends e['CollaborationSocketService']{constructor(_0x5237a0,_0x3d85c6,_0xb582f0,_0xba1025,_0x201221){super(_0x5237a0,_0x3d85c6,_0xb582f0,_0xba1025,_0x201221);}async[_0x31b914(0x2b4)](_0x2f2fd1){const _0x3cefca=_0x31b914;let _0xdc1e3d=await this['_getSessionTicket'](),_0x509108=this[_0x3cefca(0x40d)](_0x2f2fd1,_0xdc1e3d);return this[_0x3cefca(0x28c)](_0x509108);}[_0x31b914(0x40d)](_0x553fb0,_0xbde421){const _0x5a96f3=_0x31b914;let _0x1ab5b3=typeof window>'u'?new URL(_0x553fb0):new URL(_0x553fb0,window[_0x5a96f3(0x1df)]['origin']);_0x1ab5b3[_0x5a96f3(0x259)]['set'](_0x5a96f3(0x393),_0xbde421);let _0x34a9b4=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5a96f3(0x1df)][_0x5a96f3(0x34f)]);return _0x34a9b4[_0x5a96f3(0x246)](_0x5a96f3(0x324))&&_0x1ab5b3['searchParams'][_0x5a96f3(0x3c2)](_0x5a96f3(0x324),_0x34a9b4[_0x5a96f3(0x246)]('runId')),_0x1ab5b3[_0x5a96f3(0x2ba)]();}async[_0x31b914(0x284)](){const _0x3758a0=_0x31b914;var _0x233983;let _0x543c3e=this[_0x3758a0(0x3fc)][_0x3758a0(0x291)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x34adbb=(_0x543c3e==null?void 0x0:_0x543c3e['wsSessionTicketUrl'])??e[_0x3758a0(0x191)];return((_0x233983=(await this[_0x3758a0(0x136)][_0x3758a0(0x246)](_0x34adbb,{'headers':{'Content-Type':_0x3758a0(0x1dd)}}))[_0x3758a0(0x176)])==null?void 0x0:_0x233983[_0x3758a0(0x35a)])??'';}};Q=S([x(0x0,(0x0,t[_0x31b914(0x3f6)])(t[_0x31b914(0x3a6)])),x(0x1,(0x0,t[_0x31b914(0x3f6)])(m[_0x31b914(0x313)])),x(0x2,t[_0x31b914(0x38b)]),x(0x3,t[_0x31b914(0x2e3)]),x(0x4,l[_0x31b914(0x2de)])],Q);let $=class extends t['Disposable']{constructor(_0x5fc377,_0x428bc3,_0x81bbc8){const _0x3fce5a=_0x31b914;super(),this['_instanceService']=_0x5fc377,this[_0x3fce5a(0x136)]=_0x428bc3,this[_0x3fce5a(0x3fc)]=_0x81bbc8;}async[_0x31b914(0x1e6)](_0x4d5959,_0x41a9a1,_0x1b1ede,..._0x3c2bc6){const _0x153683=_0x31b914;let _0x597e1d=this[_0x153683(0x14c)]['getFocusedUnit']();if(!_0x597e1d)throw Error(_0x153683(0x29e));let _0x6828d9=(this[_0x153683(0x3fc)][_0x153683(0x291)](e[_0x153683(0x389)])??e[_0x153683(0x148)])+'/'+_0x4d5959+_0x153683(0x253)+_0x41a9a1,_0x1dd805={'scriptId':_0x4d5959,'runId':new URL(window[_0x153683(0x1df)]['href'])['searchParams'][_0x153683(0x246)](_0x153683(0x324))??'','function':_0x41a9a1,'unitId':_0x597e1d[_0x153683(0x30c)](),'argsOfFunction':JSON['stringify'](_0x3c2bc6),'invokeId':_0x1b1ede[_0x153683(0x1e3)]??'','executionId':_0x1b1ede['executionId']??''};try{let _0x547b90=await this[_0x153683(0x136)][_0x153683(0x220)](_0x6828d9,{'body':_0x1dd805});return _0x547b90['body'][_0x153683(0x2d4)]&&_0x547b90[_0x153683(0x176)][_0x153683(0x2d4)][_0x153683(0x208)]!==v[_0x153683(0x23d)]['OK']?_0x153683(0x229):_0x547b90[_0x153683(0x176)][_0x153683(0x3aa)];}catch{return'Failed';}}};$=S([x(0x0,t[_0x31b914(0x3e9)]),x(0x1,(0x0,t['Inject'])(m[_0x31b914(0x313)])),x(0x2,t[_0x31b914(0x38b)])],$);const Oe=0x7530,ke='ACTIVE_UNIT_EVENT_CHANNEL';var Ae=class extends t[_0x31b914(0x382)]{constructor(){const _0x3bb354=_0x31b914;super(),b(this,_0x3bb354(0x269),(0x0,t[_0x3bb354(0x174)])()),b(this,_0x3bb354(0x36e),new Set()),b(this,_0x3bb354(0x13c),new Map()),b(this,_0x3bb354(0x116),null),b(this,_0x3bb354(0x20e),new Map()),b(this,'_unitStatus',new Map()),this[_0x3bb354(0x23f)]();}[_0x31b914(0x1bd)](){const _0x3462a0=_0x31b914;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x172024,_0x571fb8)=>this[_0x3462a0(0x3c0)](_0x571fb8)),this['_heartbeatTimer']&&window[_0x3462a0(0x3c1)](this['_heartbeatTimer']);}[_0x31b914(0x31d)](_0x320368){const _0xa7185f=_0x31b914;return this[_0xa7185f(0x318)](_0x320368)['pipe']((0x0,r['distinctUntilChanged'])());}[_0x31b914(0x39d)](_0x3cf2b6){const _0x2e2b5c=_0x31b914;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x2e2b5c(0x36e)][_0x2e2b5c(0x230)](_0x3cf2b6),this['_send']({'type':0x0,'memberID':this[_0x2e2b5c(0x269)],'unitIDs':[_0x3cf2b6],'isForwarded':!0x1});}[_0x31b914(0x202)](_0x78b516){const _0x253ff0=_0x31b914;this[_0x253ff0(0x36e)]['delete'](_0x78b516),this[_0x253ff0(0x36e)][_0x253ff0(0x345)]===0x0&&this[_0x253ff0(0x116)]&&window[_0x253ff0(0x3c1)](this[_0x253ff0(0x116)]);}[_0x31b914(0x23f)](){const _0x49268d=_0x31b914;this[_0x49268d(0x1c5)]((0x0,t[_0x49268d(0x406)])((0x0,r[_0x49268d(0x30b)])(window,_0x49268d(0x289))[_0x49268d(0x151)](_0x4e5396=>{const _0x129fcb=_0x49268d;if(_0x4e5396[_0x129fcb(0x2fe)]!==ke||!_0x4e5396[_0x129fcb(0x2fc)])return;let _0x569388=JSON['parse'](_0x4e5396['newValue']);this[_0x129fcb(0x290)](_0x569388);}))),window[_0x49268d(0x3f0)](_0x49268d(0x2c3),()=>this[_0x49268d(0x264)]({'type':0x1,'memberID':this[_0x49268d(0x269)],'unitIDs':Array[_0x49268d(0x391)](this[_0x49268d(0x36e)])}));}[_0x31b914(0x290)](_0x58996a){const _0x21b963=_0x31b914;switch(_0x58996a[_0x21b963(0x165)]){case 0x0:this[_0x21b963(0x121)](_0x58996a);break;case 0x1:this[_0x21b963(0x12d)](_0x58996a);break;case 0x2:this[_0x21b963(0x3d7)](_0x58996a);break;}}[_0x31b914(0x121)](_0xf87190){const _0x27b3f5=_0x31b914;let {unitIDs:_0x2a3ee7,memberID:_0xdf784b,isForwarded:_0x73c379}=_0xf87190;_0x2a3ee7['forEach'](_0x248ffe=>{const _0x53f774=_0x432a;if(!_0x73c379&&this[_0x53f774(0x13c)][_0x53f774(0x218)](_0x248ffe)&&this[_0x53f774(0x318)](_0x248ffe)[_0x53f774(0x384)](e[_0x53f774(0x23e)][_0x53f774(0x3de)]),!this[_0x53f774(0x13c)][_0x53f774(0x218)](_0x248ffe)||!this['_unitOnClients']['get'](_0x248ffe)[_0x53f774(0x218)](_0xdf784b)){let _0x23896a=this[_0x53f774(0x13c)]['get'](_0x248ffe)||new Set();_0x23896a[_0x53f774(0x230)](_0xdf784b),this[_0x53f774(0x13c)][_0x53f774(0x3c2)](_0x248ffe,_0x23896a),this[_0x53f774(0x407)](_0xdf784b);}}),_0x73c379||this[_0x27b3f5(0x264)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x27b3f5(0x36e)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x9ec91d){const _0x59042e=_0x31b914;this[_0x59042e(0x3c0)](_0x9ec91d);let _0x1d909a=window[_0x59042e(0x2db)](()=>{const _0x1b24ff=_0x59042e;this[_0x1b24ff(0x13c)]['forEach'](_0x50c500=>{const _0x357a89=_0x1b24ff;_0x50c500[_0x357a89(0x255)](_0x9ec91d);});},Oe*0x2);this[_0x59042e(0x20e)]['set'](_0x9ec91d,_0x1d909a);}['_removeClearOtherTimer'](_0x344b1){const _0x57186e=_0x31b914;if(this[_0x57186e(0x20e)][_0x57186e(0x218)](_0x344b1)){let _0x2d9b09=this['_clearOtherTimers'][_0x57186e(0x246)](_0x344b1);_0x2d9b09&&window['clearTimeout'](_0x2d9b09),this[_0x57186e(0x20e)]['set'](_0x344b1,null);}}[_0x31b914(0x12d)](_0x443a4e){const _0x21b83e=_0x31b914;let {memberID:_0x3e47cb,unitIDs:_0x2d396c}=_0x443a4e;_0x2d396c[_0x21b83e(0x363)](_0xb23cbc=>{const _0x96ec60=_0x21b83e;var _0x3f266d;let _0x17596e=this['_unitOnClients'][_0x96ec60(0x246)](_0xb23cbc);_0x17596e&&(_0x17596e[_0x96ec60(0x255)](_0x3e47cb),(_0x3f266d=this['_ensureSubject'](_0xb23cbc))==null||_0x3f266d[_0x96ec60(0x384)](_0x17596e[_0x96ec60(0x345)]===0x0?e[_0x96ec60(0x23e)][_0x96ec60(0x378)]:e[_0x96ec60(0x23e)][_0x96ec60(0x3de)]));}),this[_0x21b83e(0x3c0)](_0x3e47cb);}[_0x31b914(0x3d7)](_0x2d789b){const _0x311073=_0x31b914;this[_0x311073(0x407)](_0x2d789b[_0x311073(0x2f4)]);}[_0x31b914(0x264)](_0x1e6aa5){const _0x154bcc=_0x31b914;localStorage[_0x154bcc(0x2d7)](ke,JSON['stringify'](_0x1e6aa5));}[_0x31b914(0x1e5)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x420fac=_0x432a;this[_0x420fac(0x264)]({'type':0x2,'memberID':this['_id']});},Oe);}['_ensureSubject'](_0x1cfba8){const _0x2bddb6=_0x31b914;return this[_0x2bddb6(0x39b)][_0x2bddb6(0x218)](_0x1cfba8)||this['_unitStatus'][_0x2bddb6(0x3c2)](_0x1cfba8,new r[(_0x2bddb6(0x336))](e[_0x2bddb6(0x23e)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x2bddb6(0x39b)][_0x2bddb6(0x246)](_0x1cfba8);}};Object[_0x31b914(0x19a)](exports,_0x31b914(0x10c),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,_0x31b914(0x1da),{'enumerable':!0x0,'get':function(){return C;}}),exports[_0x31b914(0x10d)]=B,Object[_0x31b914(0x19a)](exports,_0x31b914(0x3d6),{'enumerable':!0x0,'get':function(){return $;}}),exports['SheetCollabCursorShape']=ge,Object['defineProperty'](exports,'UniverCollaborationClientUIPlugin',{'enumerable':!0x0,'get':function(){return Z;}}),exports[_0x31b914(0x388)]=Ae;
|