@univerjs-pro/collaboration-client-ui 0.10.8-nightly.202509200616 → 0.10.9-experimental.20250925-61b61a0

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.
Files changed (49) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +16 -16
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x165fca=_0x4150;(function(_0x521c74,_0x2680c5){const _0x434dfe=_0x4150,_0x11b803=_0x521c74();while(!![]){try{const _0x4da5ab=-parseInt(_0x434dfe(0x1af))/0x1+-parseInt(_0x434dfe(0x1a5))/0x2+-parseInt(_0x434dfe(0x1a4))/0x3+-parseInt(_0x434dfe(0x1ad))/0x4+-parseInt(_0x434dfe(0x1ab))/0x5+parseInt(_0x434dfe(0x1a8))/0x6*(-parseInt(_0x434dfe(0x1a9))/0x7)+parseInt(_0x434dfe(0x1b0))/0x8;if(_0x4da5ab===_0x2680c5)break;else _0x11b803['push'](_0x11b803['shift']());}catch(_0x1a36e2){_0x11b803['push'](_0x11b803['shift']());}}}(_0x6555,0xb80b5));function _0x6555(){const _0x17f27d=['300738lmyNMv','35ekpOcA','_injector','3084900fxHOdX','FUniver','328292gIRMrM','RemoteUniscriptService','1239852RMAbcv','30037960dRqcBl','runOnServer','868785QIFGsM','1043570zCPkIv','get','extend'];_0x6555=function(){return _0x17f27d;};return _0x6555();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');function _0x4150(_0x48fb9b,_0x5833a2){const _0x6555f0=_0x6555();return _0x4150=function(_0x41500b,_0x3132e4){_0x41500b=_0x41500b-0x1a4;let _0x2e3eb6=_0x6555f0[_0x41500b];return _0x2e3eb6;},_0x4150(_0x48fb9b,_0x5833a2);}class c extends e['FUniver']{[_0x165fca(0x1b1)](_0x434686,_0x515f46,..._0x38d921){const _0x141d32=_0x165fca;return this[_0x141d32(0x1aa)][_0x141d32(0x1a6)](t[_0x141d32(0x1ae)])[_0x141d32(0x1b1)](_0x434686,_0x515f46,{},..._0x38d921);}}e[_0x165fca(0x1ac)][_0x165fca(0x1a7)](c);
1
+ 'use strict';const _0x4252c5=_0x52a8;(function(_0x4f25d0,_0x2ba2f0){const _0x52ca1c=_0x52a8,_0x4ad612=_0x4f25d0();while(!![]){try{const _0x301aae=-parseInt(_0x52ca1c(0xb9))/0x1+-parseInt(_0x52ca1c(0xb3))/0x2+-parseInt(_0x52ca1c(0xb0))/0x3*(-parseInt(_0x52ca1c(0xac))/0x4)+parseInt(_0x52ca1c(0xb5))/0x5+parseInt(_0x52ca1c(0xb6))/0x6*(parseInt(_0x52ca1c(0xae))/0x7)+-parseInt(_0x52ca1c(0xaf))/0x8*(parseInt(_0x52ca1c(0xb8))/0x9)+parseInt(_0x52ca1c(0xb7))/0xa;if(_0x301aae===_0x2ba2f0)break;else _0x4ad612['push'](_0x4ad612['shift']());}catch(_0x51f4c4){_0x4ad612['push'](_0x4ad612['shift']());}}}(_0x2178,0xd9dae));function _0x52a8(_0x2356cc,_0x4ac187){const _0x217875=_0x2178();return _0x52a8=function(_0x52a8fd,_0x4d9c3e){_0x52a8fd=_0x52a8fd-0xac;let _0x185b87=_0x217875[_0x52a8fd];return _0x185b87;},_0x52a8(_0x2356cc,_0x4ac187);}function _0x2178(){const _0xfc5075=['6766410ejSflQ','12uqWwzG','3930590IBWazA','1587987cuxMTI','1106111UbRAiB','RemoteUniscriptService','988900RCneTi','extend','4857167qOximA','8pkONwS','3zUvFoH','FUniver','get','2412880PfQtlb','_injector'];_0x2178=function(){return _0xfc5075;};return _0x2178();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require('@univerjs/core/facade');class c extends e[_0x4252c5(0xb1)]{['runOnServer'](_0x1d7348,_0x4c99cc,..._0x537526){const _0x51c3c1=_0x4252c5;return this[_0x51c3c1(0xb4)][_0x51c3c1(0xb2)](t[_0x51c3c1(0xba)])['runOnServer'](_0x1d7348,_0x4c99cc,{},..._0x537526);}}e[_0x4252c5(0xb1)][_0x4252c5(0xad)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x56e0a9=_0x4119;(function(_0x653a0e,_0x5791fd){const _0x2cf722=_0x4119,_0x42620e=_0x653a0e();while(!![]){try{const _0x2703d4=-parseInt(_0x2cf722(0x291))/0x1+-parseInt(_0x2cf722(0x2f0))/0x2+parseInt(_0x2cf722(0x1ee))/0x3*(parseInt(_0x2cf722(0x2a2))/0x4)+-parseInt(_0x2cf722(0x2ae))/0x5*(-parseInt(_0x2cf722(0x23c))/0x6)+-parseInt(_0x2cf722(0x383))/0x7+-parseInt(_0x2cf722(0x1d6))/0x8*(-parseInt(_0x2cf722(0x277))/0x9)+parseInt(_0x2cf722(0x280))/0xa;if(_0x2703d4===_0x5791fd)break;else _0x42620e['push'](_0x42620e['shift']());}catch(_0x3c587f){_0x42620e['push'](_0x42620e['shift']());}}}(_0x4745,0x93c29));var We=Object[_0x56e0a9(0x35c)],Ve=(_0x2b3251,_0xeff127,_0x446759)=>_0xeff127 in _0x2b3251?We(_0x2b3251,_0xeff127,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x446759}):_0x2b3251[_0xeff127]=_0x446759,h=(_0xca6d0f,_0x274e02,_0x2a46ac)=>Ve(_0xca6d0f,typeof _0x274e02!='symbol'?_0x274e02+'':_0x274e02,_0x2a46ac);Object[_0x56e0a9(0x35c)](exports,Symbol[_0x56e0a9(0x367)],{'value':_0x56e0a9(0x2ac)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x23f539=_0x56e0a9;return b=Object[_0x23f539(0x2b5)]||function(_0x38fb19){const _0x4f068c=_0x23f539;for(var _0x49430f,_0x1232e5=0x1,_0x506525=arguments[_0x4f068c(0x202)];_0x1232e5<_0x506525;_0x1232e5++){_0x49430f=arguments[_0x1232e5];for(var _0x12cf3e in _0x49430f)Object['prototype'][_0x4f068c(0x214)]['call'](_0x49430f,_0x12cf3e)&&(_0x38fb19[_0x12cf3e]=_0x49430f[_0x12cf3e]);}return _0x38fb19;},b['apply'](this,arguments);},Ke=function(_0x414418,_0x27f1cd){const _0x10e1ce=_0x56e0a9;var _0x307a15={};for(var _0x4271b6 in _0x414418)Object[_0x10e1ce(0x30f)][_0x10e1ce(0x214)][_0x10e1ce(0x240)](_0x414418,_0x4271b6)&&_0x27f1cd[_0x10e1ce(0x300)](_0x4271b6)<0x0&&(_0x307a15[_0x4271b6]=_0x414418[_0x4271b6]);if(_0x414418!=null&&typeof Object[_0x10e1ce(0x231)]==_0x10e1ce(0x29e)){for(var _0x4395a8=0x0,_0x4271b6=Object[_0x10e1ce(0x231)](_0x414418);_0x4395a8<_0x4271b6[_0x10e1ce(0x202)];_0x4395a8++)_0x27f1cd[_0x10e1ce(0x300)](_0x4271b6[_0x4395a8])<0x0&&Object[_0x10e1ce(0x30f)]['propertyIsEnumerable'][_0x10e1ce(0x240)](_0x414418,_0x4271b6[_0x4395a8])&&(_0x307a15[_0x4271b6[_0x4395a8]]=_0x414418[_0x4271b6[_0x4395a8]]);}return _0x307a15;},ge=M[_0x56e0a9(0x38c)](function(_0x4d7b08,_0x47a1d2){const _0x325dba=_0x56e0a9;var _0x5d7b83=_0x4d7b08[_0x325dba(0x322)],_0x18b166=_0x4d7b08['id'],_0x3453ec=_0x4d7b08[_0x325dba(0x3e9)],_0x30d119=_0x4d7b08[_0x325dba(0x24f)],_0x21a8a9=Ke(_0x4d7b08,[_0x325dba(0x322),'id','className','extend']),_0xe47297=_0x325dba(0x31c)[_0x325dba(0x265)](_0x18b166,'\x20')[_0x325dba(0x265)](_0x3453ec||'')[_0x325dba(0x30e)](),_0x20ec61=M[_0x325dba(0x260)]('_'[_0x325dba(0x265)](Je()));return Pe(_0x5d7b83,''['concat'](_0x18b166),{'defIds':_0x5d7b83['defIds'],'idSuffix':_0x20ec61['current']},b({'ref':_0x47a1d2,'className':_0xe47297},_0x21a8a9),_0x30d119);});function Pe(_0x268b79,_0x58230f,_0x31cb45,_0x2ac852,_0x530622){const _0x5afe5f=_0x56e0a9;return M['createElement'](_0x268b79[_0x5afe5f(0x241)],b(b({'key':_0x58230f},qe(_0x268b79,_0x31cb45,_0x530622)),_0x2ac852),(ze(_0x268b79,_0x31cb45)[_0x5afe5f(0x3d6)]||[])['map'](function(_0x125b09,_0xc14385){const _0x45ffb2=_0x5afe5f;return Pe(_0x125b09,''[_0x45ffb2(0x265)](_0x58230f,'-')[_0x45ffb2(0x265)](_0x268b79['tag'],'-')[_0x45ffb2(0x265)](_0xc14385),_0x31cb45,void 0x0,_0x530622);}));}function qe(_0x5c0f8d,_0x418978,_0x468878){const _0x104294=_0x56e0a9;var _0x2d2443=b({},_0x5c0f8d[_0x104294(0x1c7)]);_0x468878!=null&&_0x468878[_0x104294(0x1bc)]&&_0x2d2443[_0x104294(0x2ba)]===_0x104294(0x1bc)&&(_0x2d2443[_0x104294(0x2ba)]=_0x468878[_0x104294(0x1bc)]),_0x5c0f8d[_0x104294(0x241)]===_0x104294(0x24e)&&_0x2d2443['id']&&(_0x2d2443['id']=_0x2d2443['id']+_0x418978[_0x104294(0x1a9)]),Object[_0x104294(0x196)](_0x2d2443)[_0x104294(0x302)](function(_0x4c2c01){const _0x6902ca=_0x104294;var _0x107d90=_0x4c2c01[0x0],_0x5127e6=_0x4c2c01[0x1];_0x107d90===_0x6902ca(0x24e)&&typeof _0x5127e6==_0x6902ca(0x359)&&(_0x2d2443[_0x107d90]=_0x5127e6['replace'](/url\(#(.*)\)/,_0x6902ca(0x2b9)[_0x6902ca(0x265)](_0x418978[_0x6902ca(0x1a9)],')')));});var _0x5cd798=_0x418978['defIds'];return!_0x5cd798||_0x5cd798['length']===0x0||(_0x5c0f8d[_0x104294(0x241)]===_0x104294(0x194)&&_0x2d2443[_0x104294(0x3aa)]&&(_0x2d2443[_0x104294(0x3aa)]=_0x2d2443['xlink:href']+_0x418978['idSuffix']),Object[_0x104294(0x196)](_0x2d2443)['forEach'](function(_0x51e669){const _0x7fd719=_0x104294;var _0xf22fa6=_0x51e669[0x0],_0x208dd8=_0x51e669[0x1];typeof _0x208dd8=='string'&&(_0x2d2443[_0xf22fa6]=_0x208dd8[_0x7fd719(0x3db)](/url\(#(.*)\)/,_0x7fd719(0x2b9)['concat'](_0x418978['idSuffix'],')')));})),_0x2d2443;}function ze(_0x785943,_0x30962f){const _0x52e8ad=_0x56e0a9;var _0x3e791d,_0x23e3cf=_0x30962f[_0x52e8ad(0x323)];return!_0x23e3cf||_0x23e3cf['length']===0x0?_0x785943:_0x785943[_0x52e8ad(0x241)]===_0x52e8ad(0x25c)&&(!((_0x3e791d=_0x785943[_0x52e8ad(0x3d6)])===null||_0x3e791d===void 0x0)&&_0x3e791d[_0x52e8ad(0x202)])?b(b({},_0x785943),{'children':_0x785943[_0x52e8ad(0x3d6)][_0x52e8ad(0x2f4)](function(_0x2ba224){const _0x215496=_0x52e8ad;return typeof _0x2ba224['attrs']['id']=='string'&&_0x23e3cf&&_0x23e3cf[_0x215496(0x2ff)](_0x2ba224[_0x215496(0x1c7)]['id'])?b(b({},_0x2ba224),{'attrs':b(b({},_0x2ba224[_0x215496(0x1c7)]),{'id':_0x2ba224[_0x215496(0x1c7)]['id']+_0x30962f[_0x215496(0x1a9)]})}):_0x2ba224;})}):_0x785943;}function Je(){const _0x4075a0=_0x56e0a9;return Math[_0x4075a0(0x1b8)]()[_0x4075a0(0x3c3)](0x24)[_0x4075a0(0x2e2)](0x2,0x8);}ge['displayName']=_0x56e0a9(0x2d3);function _0x4119(_0x1565f8,_0xa4f28c){const _0x4745a2=_0x4745();return _0x4119=function(_0x4119e2,_0x420f0d){_0x4119e2=_0x4119e2-0x193;let _0x1f4fad=_0x4745a2[_0x4119e2];return _0x1f4fad;},_0x4119(_0x1565f8,_0xa4f28c);}var Ze={'tag':_0x56e0a9(0x3e6),'attrs':{'xmlns':_0x56e0a9(0x219),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x56e0a9(0x380),'height':_0x56e0a9(0x380)},'children':[{'tag':'g','attrs':{'clipPath':_0x56e0a9(0x299)},'children':[{'tag':_0x56e0a9(0x200),'attrs':{'stroke':_0x56e0a9(0x267),'d':_0x56e0a9(0x337),'strokeLinecap':_0x56e0a9(0x1ce),'strokeLinejoin':_0x56e0a9(0x1ce),'strokeWidth':1.2}}]},{'tag':_0x56e0a9(0x25c),'attrs':{},'children':[{'tag':_0x56e0a9(0x2d1),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x56e0a9(0x200),'attrs':{'fill':_0x56e0a9(0x1ff),'d':_0x56e0a9(0x2bf)}}]}]}],'defIds':[_0x56e0a9(0x26d)]},we=M[_0x56e0a9(0x38c)](function(_0x2a1185,_0x44afad){const _0x337a55=_0x56e0a9;return M['createElement'](ge,Object[_0x337a55(0x2b5)]({},_0x2a1185,{'id':_0x337a55(0x390),'ref':_0x44afad,'icon':Ze}));});we[_0x56e0a9(0x2df)]='OffLineIcon';var Qe={'tag':_0x56e0a9(0x3e6),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x56e0a9(0x29c),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x56e0a9(0x380)},'children':[{'tag':'g','attrs':{'clipPath':_0x56e0a9(0x408)},'children':[{'tag':_0x56e0a9(0x200),'attrs':{'stroke':'currentColor','d':_0x56e0a9(0x336),'strokeLinecap':_0x56e0a9(0x1ce),'strokeLinejoin':_0x56e0a9(0x1ce),'strokeWidth':1.2}}]},{'tag':_0x56e0a9(0x25c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x56e0a9(0x200),'attrs':{'fill':_0x56e0a9(0x1ff),'d':_0x56e0a9(0x2bf),'transform':'translate(.97)'}}]}]}],'defIds':[_0x56e0a9(0x366)]},Ae=M['forwardRef'](function(_0x2e1cf9,_0xce7bfd){const _0x4fdca7=_0x56e0a9;return M[_0x4fdca7(0x315)](ge,Object[_0x4fdca7(0x2b5)]({},_0x2e1cf9,{'id':_0x4fdca7(0x3df),'ref':_0xce7bfd,'icon':Qe}));});Ae[_0x56e0a9(0x2df)]=_0x56e0a9(0x368);function et(_0x49ecc9){const _0x5a681a=_0x56e0a9;switch(_0x49ecc9){case u[_0x5a681a(0x3ca)][_0x5a681a(0x278)]:return _0x5a681a(0x3dc);case u[_0x5a681a(0x3ca)]['CONFLICT']:return _0x5a681a(0x3c4);case u['CollaborationStatus']['FETCH_MISS']:return'collabStatus.fetchMiss';case u[_0x5a681a(0x3ca)][_0x5a681a(0x209)]:return'collabStatus.notCollab';case u[_0x5a681a(0x3ca)]['AWAITING']:case u[_0x5a681a(0x3ca)]['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x5a681a(0x3ca)][_0x5a681a(0x33c)]:case u[_0x5a681a(0x3ca)][_0x5a681a(0x24a)]:return _0x5a681a(0x3f4);}}function tt(_0x52ece5){const _0x59d8f0=_0x56e0a9,{status$:_0x5847cc}=_0x52ece5,_0x330f57=O[_0x59d8f0(0x34e)](_0x5847cc,u[_0x59d8f0(0x3ca)][_0x59d8f0(0x209)]),_0xddd0e1=O[_0x59d8f0(0x3d4)](a[_0x59d8f0(0x3ff)]),_0x10cddb=O[_0x59d8f0(0x3d4)](u[_0x59d8f0(0x30b)]),_0xc559bc=_0x330f57!==u[_0x59d8f0(0x3ca)][_0x59d8f0(0x278)],_0x1f25c6=_0xddd0e1['t'](et(_0x330f57)),_0x1eb8ae=_0xc559bc?P[_0x59d8f0(0x3bd)](Ae,{}):P[_0x59d8f0(0x3bd)](we,{}),_0x53f6ca=M[_0x59d8f0(0x351)](()=>{_0xc559bc||_0x10cddb['reconnect']();},[_0xc559bc,_0x10cddb]);function _0x3c4290(){const _0x26c683=_0x59d8f0;return P[_0x26c683(0x23d)](_0x26c683(0x2c9),{'className':_0x26c683(0x3d8),'onClick':_0x53f6ca,'children':[P[_0x26c683(0x3bd)](_0x26c683(0x2c9),{'className':D['clsx'](_0x26c683(0x1fd),{'univer-text-green-500':_0xc559bc,'univer-text-red-500':!_0xc559bc}),'children':_0x1eb8ae}),P[_0x26c683(0x3bd)](_0x26c683(0x2c9),{'className':_0x26c683(0x354),'children':_0x1f25c6})]});}return _0xc559bc?_0x3c4290():P[_0x59d8f0(0x3bd)](D['Tooltip'],{'title':_0xddd0e1['t']('collab-client.tooltip.reconnect'),'children':_0x3c4290()});}var st=Object[_0x56e0a9(0x2a6)],it=(_0x547d2f,_0x539e5c,_0x5519c5,_0x1a8045)=>{const _0x17f53b=_0x56e0a9;for(var _0x3efdf1=_0x1a8045>0x1?void 0x0:_0x1a8045?st(_0x539e5c,_0x5519c5):_0x539e5c,_0x43815a=_0x547d2f[_0x17f53b(0x202)]-0x1,_0x5c260a;_0x43815a>=0x0;_0x43815a--)(_0x5c260a=_0x547d2f[_0x43815a])&&(_0x3efdf1=_0x5c260a(_0x3efdf1)||_0x3efdf1);return _0x3efdf1;},V=(_0x47acb1,_0x528a79)=>(_0x3f6b7c,_0x487cee)=>_0x528a79(_0x3f6b7c,_0x487cee,_0x47acb1);exports[_0x56e0a9(0x31f)]=class extends a[_0x56e0a9(0x229)]{constructor(_0x42e20a,_0x51d5e9,_0x286271,_0x30ae8f){const _0x49aa02=_0x56e0a9;super(),h(this,'_status$',new d[(_0x49aa02(0x230))](u[_0x49aa02(0x3ca)][_0x49aa02(0x209)])),(this['_univerInstanceService']=_0x42e20a,this['_injector']=_0x51d5e9,this[_0x49aa02(0x26f)]=_0x286271,this['_uiPartsService']=_0x30ae8f,this[_0x49aa02(0x397)](),this[_0x49aa02(0x34c)]());}['_initStatusListener'](){const _0x11a148=_0x56e0a9;this[_0x11a148(0x39f)](this[_0x11a148(0x2f8)][_0x11a148(0x3f7)][_0x11a148(0x2d7)](d[_0x11a148(0x2c3)](()=>{const _0x509194=_0x11a148,_0x44b336=this['_univerInstanceService'][_0x509194(0x345)]();return _0x44b336?this[_0x509194(0x26f)][_0x509194(0x2f5)](_0x44b336['getUnitId']()):d['of'](null);}),d['switchMap'](_0x363f82=>_0x363f82?_0x363f82['status$']:d['of'](u[_0x11a148(0x3ca)][_0x11a148(0x209)])))[_0x11a148(0x2b1)](_0x292868=>{const _0x53a2eb=_0x11a148;this[_0x53a2eb(0x3fa)][_0x53a2eb(0x33d)](_0x292868);}));}['_initStatusComponent'](){const _0x4964eb=_0x56e0a9;this[_0x4964eb(0x39f)](this['_uiPartsService']['registerComponent'](O[_0x4964eb(0x1c3)][_0x4964eb(0x404)],()=>O[_0x4964eb(0x2eb)](nt({'status$':this['_status$'][_0x4964eb(0x290)]()}),this[_0x4964eb(0x263)])));}},exports['DesktopCollaborationStatusDisplayController']=it([V(0x0,a[_0x56e0a9(0x2b7)]),V(0x1,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x1dd)])),V(0x2,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x394)])),V(0x3,O[_0x56e0a9(0x20d)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0x529329){const {status$:_0x5b4ef7}=_0x529329;return function(){const _0xf9ae80=_0x4119;return P[_0xf9ae80(0x3bd)](tt,{'status$':_0x5b4ef7});};}const me=a['createIdentifier'](_0x56e0a9(0x1da));var rt=Object[_0x56e0a9(0x2a6)],ot=(_0x2a9aec,_0xad7089,_0x736c9b,_0x5e5d66)=>{for(var _0x329d47=_0x5e5d66>0x1?void 0x0:_0x5e5d66?rt(_0xad7089,_0x736c9b):_0xad7089,_0x4125c1=_0x2a9aec['length']-0x1,_0x6b249f;_0x4125c1>=0x0;_0x4125c1--)(_0x6b249f=_0x2a9aec[_0x4125c1])&&(_0x329d47=_0x6b249f(_0x329d47)||_0x329d47);return _0x329d47;},k=(_0x33120c,_0x59c9a9)=>(_0x481dc6,_0x44fee7)=>_0x59c9a9(_0x481dc6,_0x44fee7,_0x33120c);exports[_0x56e0a9(0x304)]=class extends a[_0x56e0a9(0x356)]{constructor(_0x345a4b,_0xe159a1,_0x5b6c11,_0x3e08d1,_0x5e0ddf){const _0x305346=_0x56e0a9;super(),this[_0x305346(0x1c4)]=_0x345a4b,this[_0x305346(0x2c0)]=_0xe159a1,this[_0x305346(0x1c5)]=_0x5b6c11,this['_dataLoaderService']=_0x3e08d1,_0x5e0ddf?_0x5e0ddf==null||_0x5e0ddf[_0x305346(0x195)]()['then'](()=>this[_0x305346(0x2dd)]()):(this[_0x305346(0x2c0)][_0x305346(0x20b)](_0x305346(0x252),_0x305346(0x1de)),this[_0x305346(0x2dd)]());}async['_init'](){const _0xcbf81b=_0x56e0a9,_0x436808=this['_urlService']['getParam'](_0xcbf81b(0x37e)),_0x4bc7f0=this[_0xcbf81b(0x1c4)]['getParam'](_0xcbf81b(0x305)),_0xc90df7=this[_0xcbf81b(0x1c4)][_0xcbf81b(0x365)]('subunit');if(!_0x436808||!_0x4bc7f0){this['_logService'][_0xcbf81b(0x20b)](_0xcbf81b(0x252),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x1cd336=await this[_0xcbf81b(0x243)][_0xcbf81b(0x23f)](_0x436808,Number(_0x4bc7f0),_0xc90df7);_0x1cd336&&_0x1cd336 instanceof a[_0xcbf81b(0x205)]&&this[_0xcbf81b(0x1bd)](_0x1cd336);}async['_setupSubUnitSync'](_0x516197){const _0x5c5e25=_0x56e0a9;await this['_updateSubUnitFromURLParams'](_0x516197),_0x516197['activeSheet$'][_0x5c5e25(0x2d7)](d[_0x5c5e25(0x1d4)](this[_0x5c5e25(0x2ab)]))[_0x5c5e25(0x2b1)](_0x3c974c=>{const _0x5a6673=_0x5c5e25;_0x3c974c&&this[_0x5a6673(0x311)](_0x3c974c);}),this['_urlService']['urlChange$']['pipe'](d['takeUntil'](this[_0x5c5e25(0x2ab)]))[_0x5c5e25(0x2b1)](()=>this[_0x5c5e25(0x379)](_0x516197));}[_0x56e0a9(0x311)](_0x24aec9,_0x5c7f1a=!0x1){const _0x24a374=_0x56e0a9,_0x29f07b=this['_urlService'][_0x24a374(0x365)](_0x24a374(0x1ae));_0x24aec9[_0x24a374(0x206)]()!==_0x29f07b&&this[_0x24a374(0x1c4)]['setParam'](_0x24a374(0x1ae),_0x24aec9[_0x24a374(0x206)](),_0x5c7f1a);}async[_0x56e0a9(0x379)](_0x1ae3c1){const _0x3818c=_0x56e0a9;var _0x4bff1f;const _0x48f0ea=this['_urlService'][_0x3818c(0x365)](_0x3818c(0x1ae));if(!_0x48f0ea||!_0x1ae3c1['getSheetBySheetId'](_0x48f0ea)){const _0x4e0f8e=_0x1ae3c1[_0x3818c(0x2e5)]()[0x0],_0x1f1f48=_0x1ae3c1[_0x3818c(0x256)](_0x4e0f8e);if(!_0x1f1f48)return;this[_0x3818c(0x311)](_0x1f1f48,!0x0),await this[_0x3818c(0x1c5)][_0x3818c(0x3e0)](g[_0x3818c(0x1f7)]['id'],{'unitId':_0x1ae3c1['getUnitId'](),'subUnitId':_0x4e0f8e});return;}((_0x4bff1f=_0x1ae3c1[_0x3818c(0x2c5)]())==null?void 0x0:_0x4bff1f[_0x3818c(0x206)]())!==_0x48f0ea&&await this[_0x3818c(0x1c5)]['executeCommand'](g[_0x3818c(0x1f7)]['id'],{'unitId':_0x1ae3c1[_0x3818c(0x2b0)](),'subUnitId':_0x48f0ea});}},exports[_0x56e0a9(0x304)]=ot([k(0x0,me),k(0x1,a[_0x56e0a9(0x215)]),k(0x2,a[_0x56e0a9(0x2a9)]),k(0x3,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x208)])),k(0x4,a['Optional'](Xe['IRemoteInstanceService']))],exports['CollaborationDataLoaderController']);var at=Object[_0x56e0a9(0x2a6)],ct=(_0x2ab086,_0x27ed5d,_0x206293,_0x1edf64)=>{for(var _0x371bcc=_0x1edf64>0x1?void 0x0:_0x1edf64?at(_0x27ed5d,_0x206293):_0x27ed5d,_0x134d15=_0x2ab086['length']-0x1,_0x54b407;_0x134d15>=0x0;_0x134d15--)(_0x54b407=_0x2ab086[_0x134d15])&&(_0x371bcc=_0x54b407(_0x371bcc)||_0x371bcc);return _0x371bcc;},be=(_0x38f4bb,_0xa80311)=>(_0x340ec1,_0x263cda)=>_0xa80311(_0x340ec1,_0x263cda,_0x38f4bb);let ue=class extends a[_0x56e0a9(0x356)]{constructor(_0x13ffe1,_0x48d651){const _0x4d6466=_0x56e0a9;super(),this[_0x4d6466(0x31a)]=_0x13ffe1,this[_0x4d6466(0x28a)]=_0x48d651,this[_0x4d6466(0x2dd)]();}['_init'](){const _0x32da8b=_0x56e0a9,_0x29d24d=this;this['disposeWithMe'](this[_0x32da8b(0x31a)]['addClipboardHook']({'onBeforePasteImage':async _0xdd7f4d=>{const _0x280123=_0x32da8b,_0x398f1a=await _0x29d24d[_0x280123(0x28a)][_0x280123(0x1ef)](_0xdd7f4d);return _0x398f1a?{'source':_0x398f1a[_0x280123(0x3e1)],'imageSourceType':_0x398f1a[_0x280123(0x248)]}:null;}}));}};ue=ct([be(0x0,E[_0x56e0a9(0x344)]),be(0x1,Ge[_0x56e0a9(0x1d9)])],ue);const Oe=[_0x56e0a9(0x26c),'jiqing.500',_0x56e0a9(0x370),'red.300',_0x56e0a9(0x2b6),'yellow.400'];class Ce extends a[_0x56e0a9(0x229)]{constructor(){const _0x4c4b06=_0x56e0a9;super(...arguments),h(this,_0x4c4b06(0x3fc),new Map()),h(this,_0x4c4b06(0x381),0x0);}['assignAColorForMemberID'](_0x4141f9){const _0x1a751a=_0x56e0a9;if(this[_0x1a751a(0x3fc)]['has'](_0x4141f9))return this[_0x1a751a(0x3fc)]['get'](_0x4141f9);const _0x1d6037=Oe[this[_0x1a751a(0x381)]];return this[_0x1a751a(0x381)]=(this[_0x1a751a(0x381)]+0x1)%Oe[_0x1a751a(0x202)],this[_0x1a751a(0x3fc)][_0x1a751a(0x39e)](_0x4141f9,_0x1d6037),_0x1d6037;}}function ye(_0x142f41){const _0x4b17c7=_0x56e0a9;let _0x1c7eab='';for(const _0x438679 of _0x142f41){const {startOffset:_0x5250d0,endOffset:_0x4ec95a,isActive:_0x140503,rangeType:_0x588bf2,segmentId:_0x4951a3,segmentPage:_0xbc2079}=_0x438679;_0x1c7eab[_0x4b17c7(0x202)]&&(_0x1c7eab+=','),_0x1c7eab+=_0x5250d0+':'+_0x4ec95a+':'+(_0x140503?'1':'0')+':'+_0x588bf2+':'+_0x4951a3+':'+_0xbc2079;}return _0x1c7eab;}function lt(_0x36b7fc){const _0x572428=_0x56e0a9,_0x180ae4=_0x36b7fc[_0x572428(0x3f8)](','),_0x49abf7=[];for(const _0x34a14c of _0x180ae4){const [_0x26b763,_0x2aa4e3,_0x5acd48,_0x4faee6,_0x38387e,_0x27f3f7]=_0x34a14c[_0x572428(0x3f8)](':');_0x49abf7[_0x572428(0x22e)]({'startOffset':Number(_0x26b763),'endOffset':Number(_0x2aa4e3),'collapsed':_0x26b763===_0x2aa4e3,'isActive':_0x5acd48==='1','rangeType':_0x4faee6===a['DOC_RANGE_TYPE'][_0x572428(0x210)]?a[_0x572428(0x319)][_0x572428(0x210)]:a['DOC_RANGE_TYPE'][_0x572428(0x31b)],'segmentId':typeof _0x38387e==_0x572428(0x359)?String(_0x38387e):'','segmentPage':Number(_0x27f3f7!=null?_0x27f3f7:-0x1)});}return _0x49abf7[_0x572428(0x2cb)](_0xca7a40=>_0xca7a40[_0x572428(0x2ee)])||(_0x49abf7[0x0][_0x572428(0x2ee)]=!0x0),_0x49abf7;}class pe extends a[_0x56e0a9(0x356)]{constructor(){const _0x3aa2ee=_0x56e0a9;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,'collabCursorState$',this[_0x3aa2ee(0x227)][_0x3aa2ee(0x290)]());}[_0x56e0a9(0x1b4)](_0x4c97de){const _0x4b2a25=_0x56e0a9,{unitID:_0x56f049,memberID:_0x22f52c,textRanges:_0xf4f60c}=_0x4c97de,_0x3c3d32=ye(_0xf4f60c);if(_0x3c3d32==='')return;const _0x29265e={'unitID':_0x56f049,'memberID':_0x22f52c,'selection':_0x3c3d32};this[_0x4b2a25(0x227)][_0x4b2a25(0x33d)](_0x29265e);}}var _t=Object[_0x56e0a9(0x2a6)],ht=(_0x5018f6,_0xa7806d,_0x27f6f3,_0x3e135b)=>{const _0x3846e0=_0x56e0a9;for(var _0xd94760=_0x3e135b>0x1?void 0x0:_0x3e135b?_t(_0xa7806d,_0x27f6f3):_0xa7806d,_0x43abfb=_0x5018f6[_0x3846e0(0x202)]-0x1,_0x40bfcc;_0x43abfb>=0x0;_0x43abfb--)(_0x40bfcc=_0x5018f6[_0x43abfb])&&(_0xd94760=_0x40bfcc(_0xd94760)||_0xd94760);return _0xd94760;},L=(_0x555b6e,_0x18a2a1)=>(_0x3af8cc,_0x3dfebd)=>_0x18a2a1(_0x3af8cc,_0x3dfebd,_0x555b6e);const ut=0x12c,dt=0x64;let de=class extends a[_0x56e0a9(0x356)]{constructor(_0x482707,_0x23b0c3,_0x28568b,_0x4d78b5,_0xe9915e,_0xec0401,_0x3d87c9,_0x30fa14,_0x1996f1){const _0x28fbf2=_0x56e0a9;super(),h(this,'_online',!0x1),h(this,_0x28fbf2(0x2dd),!0x1),h(this,_0x28fbf2(0x282),new d[(_0x28fbf2(0x230))](new Map())),h(this,'cursorInfo$',this[_0x28fbf2(0x282)][_0x28fbf2(0x290)]()),h(this,'_roomMembers$',new d[(_0x28fbf2(0x230))]([])),h(this,_0x28fbf2(0x1a2),this[_0x28fbf2(0x334)][_0x28fbf2(0x2d7)](d[_0x28fbf2(0x373)](ut))),h(this,_0x28fbf2(0x2d8),a[_0x28fbf2(0x303)](_0x42b227=>{const _0x28a63d=_0x28fbf2,_0x3fb5f0={'eventID':m[_0x28a63d(0x2e4)][_0x28a63d(0x288)],'data':{'unitID':this[_0x28a63d(0x1ea)],'memberID':this[_0x28a63d(0x317)][_0x28a63d(0x2ea)](),'selection':ye(_0x42b227)}};this[_0x28a63d(0x317)][_0x28a63d(0x389)](_0x3fb5f0,this[_0x28a63d(0x1ea)]);},dt)),(this[_0x28fbf2(0x1ea)]=_0x482707,this['_session']=_0x23b0c3,this[_0x28fbf2(0x263)]=_0x28568b,this[_0x28fbf2(0x38f)]=_0x4d78b5,this[_0x28fbf2(0x201)]=_0xe9915e,this[_0x28fbf2(0x30d)]=_0xec0401,this[_0x28fbf2(0x1bb)]=_0x3d87c9,this[_0x28fbf2(0x2f8)]=_0x30fa14,this['_commandService']=_0x1996f1);}get[_0x56e0a9(0x2e6)](){const _0x1dedb4=_0x56e0a9;return this[_0x1dedb4(0x282)][_0x1dedb4(0x35d)]();}get[_0x56e0a9(0x2ef)](){const _0x5f49e7=_0x56e0a9;return this['_roomMembers$'][_0x5f49e7(0x35d)]();}['dispose'](){const _0x291839=_0x56e0a9;super[_0x291839(0x1d5)](),this[_0x291839(0x282)]['next'](new Map()),this['_cursorInfo$'][_0x291839(0x2b8)](),this[_0x291839(0x334)][_0x291839(0x33d)]([]),this[_0x291839(0x334)][_0x291839(0x2b8)]();}[_0x56e0a9(0x1be)](){const _0x19ef30=_0x56e0a9;this[_0x19ef30(0x2dd)]||(this[_0x19ef30(0x2dd)]=!0x0,this[_0x19ef30(0x317)]['sessionStatus$'][_0x19ef30(0x2d7)](d[_0x19ef30(0x1d4)](this[_0x19ef30(0x2ab)]))[_0x19ef30(0x2b1)](_0x3eb417=>{const _0x53713b=_0x19ef30;_0x3eb417===u['SessionStatus']['ONLINE']?this[_0x53713b(0x1b2)]():this[_0x53713b(0x3fb)]();}),this[_0x19ef30(0x317)]['event$'][_0x19ef30(0x2d7)](d['takeUntil'](this[_0x19ef30(0x2ab)]))[_0x19ef30(0x2b1)](_0xfdcd22=>{const _0x2a719a=_0x19ef30,_0x2c667b=_0xfdcd22[_0x2a719a(0x32e)];_0x2c667b===m[_0x2a719a(0x2e4)]['UPDATE_CURSOR']&&this[_0x2a719a(0x3f0)](_0xfdcd22),_0x2c667b===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x2a719a(0x348)](_0xfdcd22);}),this[_0x19ef30(0x39f)](this[_0x19ef30(0x1c5)][_0x19ef30(0x350)](_0x4db8af=>{const _0x34090c=_0x19ef30,_0x99759c=_0x4db8af[_0x34090c(0x2e3)];_0x99759c!=null&&this[_0x34090c(0x3d3)]&&_0x4db8af['id']===Y[_0x34090c(0x2fe)]['id']&&_0x99759c['unitId']===this['unitID']&&_0x99759c['isEditing']===!0x1&&_0x99759c[_0x34090c(0x2e1)][_0x34090c(0x202)]>0x0&&this[_0x34090c(0x2d8)](_0x99759c[_0x34090c(0x2e1)]);})),this[_0x19ef30(0x30d)][_0x19ef30(0x279)][_0x19ef30(0x2d7)](d[_0x19ef30(0x1d4)](this['dispose$']))[_0x19ef30(0x2b1)](_0x3ffa77=>{const _0x1b6d7b=_0x19ef30;if((_0x3ffa77==null?void 0x0:_0x3ffa77[_0x1b6d7b(0x1ea)])!==this[_0x1b6d7b(0x1ea)])return;const _0x3abbc4={'eventID':m[_0x1b6d7b(0x2e4)][_0x1b6d7b(0x288)],'data':_0x3ffa77};this[_0x1b6d7b(0x3f0)](_0x3abbc4);}),this[_0x19ef30(0x39f)](this['_commandService'][_0x19ef30(0x350)](_0x34569c=>{const _0x11cec2=_0x19ef30;if(_0x34569c[_0x11cec2(0x2e3)]==null)return;const _0x22ddde=_0x34569c[_0x11cec2(0x2e3)];if(_0x34569c['id']!==Y[_0x11cec2(0x1e7)]['id']||_0x22ddde[_0x11cec2(0x377)]!==this[_0x11cec2(0x1ea)])return;const _0x2ca278={'id':'doc.mutation.rich-text-editing','params':_0x22ddde},_0x3a9e98=this['cursorInfo'];for(const [_0x2cc7f5,_0x433628]of _0x3a9e98){const _0x54f127={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x11cec2(0x1ea)],'actions':null,'textRanges':_0x433628[_0x11cec2(0x2e1)]}},_0x5c4571=this[_0x11cec2(0x1bb)][_0x11cec2(0x331)](_0x2ca278,_0x54f127,!0x1);if(m['isTransformMutationFailure'](_0x5c4571))throw _0x5c4571[_0x11cec2(0x2f3)];_0x3a9e98['set'](_0x2cc7f5,{..._0x433628,'ranges':_0x5c4571[_0x11cec2(0x1ab)][_0x11cec2(0x2e3)][_0x11cec2(0x3e7)]});}queueMicrotask(()=>{const _0x4e3b1b=_0x11cec2;this[_0x4e3b1b(0x282)][_0x4e3b1b(0x33d)](_0x3a9e98);});})));}[_0x56e0a9(0x3f0)](_0x23fad3){const _0x352ff3=_0x56e0a9;var _0x890060,_0x102eef;const {memberID:_0x3941a5,selection:_0x3dc470}=_0x23fad3[_0x352ff3(0x400)],_0x4fdcbe=lt(_0x3dc470),_0x2ca57e=(_0x102eef=(_0x890060=this['_memberService']['getMember'](this['unitID'],_0x3941a5))==null?void 0x0:_0x890060[_0x352ff3(0x36d)])!=null?_0x102eef:_0x352ff3(0x3a0),_0x42710b={'color':this[_0x352ff3(0x38f)][_0x352ff3(0x2af)](_0x3941a5),'name':_0x2ca57e,'ranges':_0x4fdcbe},_0x3103d6=this[_0x352ff3(0x2e6)];_0x3103d6[_0x352ff3(0x39e)](_0x3941a5,_0x42710b),this[_0x352ff3(0x282)][_0x352ff3(0x33d)](_0x3103d6);}[_0x56e0a9(0x348)](_0x131f2a){const _0x2140a6=_0x56e0a9,{memberID:_0x4c8c69}=_0x131f2a[_0x2140a6(0x400)],_0x1f522d=this[_0x2140a6(0x2e6)];_0x1f522d[_0x2140a6(0x32f)](_0x4c8c69),this[_0x2140a6(0x282)][_0x2140a6(0x33d)](_0x1f522d);}[_0x56e0a9(0x1b2)](){const _0x90a074=_0x56e0a9;var _0x205b92;if(this[_0x90a074(0x3d3)]=!0x0,((_0x205b92=this[_0x90a074(0x2f8)][_0x90a074(0x345)]())==null?void 0x0:_0x205b92['getUnitId']())!==this['unitID'])return;const _0x4b0f3b=this['_injector']['get'](Y[_0x90a074(0x24b)])['getDocRanges']();Array[_0x90a074(0x244)](_0x4b0f3b)&&_0x4b0f3b['length']>0x0&&this[_0x90a074(0x2d8)](_0x4b0f3b);}[_0x56e0a9(0x3fb)](){const _0xe2ccec=_0x56e0a9;this[_0xe2ccec(0x3d3)]=!0x1;}};de=ht([L(0x2,a['Inject'](a['Injector'])),L(0x3,a[_0x56e0a9(0x39b)](Ce)),L(0x4,a['Inject'](u[_0x56e0a9(0x308)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x56e0a9(0x1d7)]),L(0x7,a[_0x56e0a9(0x2b7)]),L(0x8,a[_0x56e0a9(0x2a9)])],de);var St=Object[_0x56e0a9(0x2a6)],ft=(_0x4a80fe,_0x485407,_0x24003f,_0x3c0c73)=>{const _0x5642e6=_0x56e0a9;for(var _0x508608=_0x3c0c73>0x1?void 0x0:_0x3c0c73?St(_0x485407,_0x24003f):_0x485407,_0x1a878d=_0x4a80fe[_0x5642e6(0x202)]-0x1,_0x284b5a;_0x1a878d>=0x0;_0x1a878d--)(_0x284b5a=_0x4a80fe[_0x1a878d])&&(_0x508608=_0x284b5a(_0x508608)||_0x508608);return _0x508608;},A=(_0x2fb98a,_0x3d85e7)=>(_0x8dc5de,_0x4aa771)=>_0x3d85e7(_0x8dc5de,_0x4aa771,_0x2fb98a);const It=0x12c,vt=0x64,gt=()=>{let _0x29478f=[],_0x4406bc=!0x1;return _0x56e282=>{const _0x19f9b5=_0x4119;_0x29478f[_0x19f9b5(0x22e)](_0x56e282),_0x4406bc||(_0x4406bc=!0x0,setTimeout(()=>{const _0x518512=_0x19f9b5;_0x29478f[_0x518512(0x302)](_0x173024=>_0x173024()),_0x29478f=[],_0x4406bc=!0x1;}));};};let Se=class extends a[_0x56e0a9(0x356)]{constructor(_0x3bde07,_0x491dbf,_0xe3f4ea,_0x2cd768,_0x5150a1,_0xd3405b,_0x5d2f9e,_0x39db60){const _0x388dcc=_0x56e0a9;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x388dcc(0x282),new d['BehaviorSubject'](new Map())),h(this,_0x388dcc(0x328),this[_0x388dcc(0x282)]['asObservable']()),h(this,_0x388dcc(0x334),new d[(_0x388dcc(0x230))]([])),h(this,_0x388dcc(0x1a2),this['_roomMembers$'][_0x388dcc(0x2d7)](d[_0x388dcc(0x373)](It))),h(this,_0x388dcc(0x2d8),a[_0x388dcc(0x303)]((_0xce94b,_0x31597a)=>{const _0x40f4b=_0x388dcc,_0x1bca36={'eventID':m['CollaborationEvent'][_0x40f4b(0x288)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x40f4b(0x2ea)](),'selection':Ee[_0x40f4b(0x3ee)](_0xce94b,_0x31597a[_0x40f4b(0x3c1)])}};this[_0x40f4b(0x317)][_0x40f4b(0x389)](_0x1bca36,this['unitID']);},vt)),(this[_0x388dcc(0x1ea)]=_0x3bde07,this[_0x388dcc(0x317)]=_0x491dbf,this['_injector']=_0xe3f4ea,this[_0x388dcc(0x38f)]=_0x2cd768,this[_0x388dcc(0x201)]=_0x5150a1,this[_0x388dcc(0x2f8)]=_0xd3405b,this['_commandService']=_0x5d2f9e,this[_0x388dcc(0x1c1)]=_0x39db60);}get[_0x56e0a9(0x2e6)](){const _0x5678ac=_0x56e0a9;return this[_0x5678ac(0x282)]['getValue']();}get['roomMembers'](){const _0x26cce5=_0x56e0a9;return this[_0x26cce5(0x334)]['getValue']();}[_0x56e0a9(0x1d5)](){const _0x3279ed=_0x56e0a9;super[_0x3279ed(0x1d5)](),this['_cursorInfo$']['next'](new Map()),this[_0x3279ed(0x282)][_0x3279ed(0x2b8)](),this[_0x3279ed(0x334)][_0x3279ed(0x33d)]([]),this[_0x3279ed(0x334)]['complete']();}['init'](){const _0x25ad6c=_0x56e0a9;this[_0x25ad6c(0x2dd)]||(this['_init']=!0x0,this[_0x25ad6c(0x317)]['sessionStatus$'][_0x25ad6c(0x2d7)](d[_0x25ad6c(0x1d4)](this[_0x25ad6c(0x2ab)]))[_0x25ad6c(0x2b1)](_0x48797c=>{const _0x232e6b=_0x25ad6c;_0x48797c===u[_0x232e6b(0x2fb)][_0x232e6b(0x332)]?this['_toggleOnline']():this[_0x232e6b(0x3fb)]();}),this[_0x25ad6c(0x317)][_0x25ad6c(0x29b)][_0x25ad6c(0x2d7)](d[_0x25ad6c(0x1d4)](this[_0x25ad6c(0x2ab)]))[_0x25ad6c(0x2b1)](_0x34fa96=>{const _0x4a2a95=_0x25ad6c,_0x273993=_0x34fa96['eventID'];_0x273993===m['CollaborationEvent'][_0x4a2a95(0x288)]&&this[_0x4a2a95(0x3f0)](_0x34fa96),_0x273993===m[_0x4a2a95(0x2e4)][_0x4a2a95(0x1cc)]&&this[_0x4a2a95(0x348)](_0x34fa96);}),this[_0x25ad6c(0x2c4)](),this['disposeWithMe'](this[_0x25ad6c(0x1c5)][_0x25ad6c(0x350)](_0x3ce42a=>{const _0x71d005=_0x25ad6c;if(this[_0x71d005(0x3d3)]&&_0x3ce42a['id']===g[_0x71d005(0x409)]['id']&&_0x3ce42a[_0x71d005(0x2e3)]['unitId']===this['unitID']){const _0x16fb87=_0x3ce42a[_0x71d005(0x2e3)];this[_0x71d005(0x2d8)](_0x16fb87[_0x71d005(0x1c6)],_0x16fb87[_0x71d005(0x1ba)][0x0]);}})));}['_onCursorUpdate'](_0x480fb4){const _0x945eec=_0x56e0a9;var _0x4f2847,_0xb473c0;const {memberID:_0x5346d5,selection:_0xf84602}=_0x480fb4[_0x945eec(0x400)],{sheetName:_0x54d4bc,range:_0x1f1140}=Ee[_0x945eec(0x386)](_0xf84602),_0x12d603={'name':(_0xb473c0=(_0x4f2847=this['_memberService'][_0x945eec(0x2fa)](this[_0x945eec(0x1ea)],_0x5346d5))==null?void 0x0:_0x4f2847[_0x945eec(0x36d)])!=null?_0xb473c0:_0x945eec(0x3a0),'range':this[_0x945eec(0x3ef)](_0x54d4bc,_0x1f1140),'sheetID':_0x54d4bc,'color':this['_colorAssignService'][_0x945eec(0x2af)](_0x5346d5),'selection':_0xf84602},_0x23367c=this[_0x945eec(0x2e6)];_0x23367c[_0x945eec(0x39e)](_0x5346d5,_0x12d603),this['_cursorInfo$']['next'](_0x23367c);}[_0x56e0a9(0x348)](_0x4e61a3){const _0x32c989=_0x56e0a9,{memberID:_0x59e686}=_0x4e61a3[_0x32c989(0x400)],_0x3698a4=this[_0x32c989(0x2e6)];_0x3698a4['delete'](_0x59e686),this['_cursorInfo$']['next'](_0x3698a4);}[_0x56e0a9(0x3ef)](_0x481942,_0x150c11){const _0xc8fe08=_0x56e0a9;var _0x1da0a0,_0x2c0b22;const _0x3fd94f=(_0x2c0b22=(_0x1da0a0=this[_0xc8fe08(0x2f8)][_0xc8fe08(0x39c)](this[_0xc8fe08(0x1ea)]))==null?void 0x0:_0x1da0a0[_0xc8fe08(0x256)](_0x481942))==null?void 0x0:_0x2c0b22[_0xc8fe08(0x3b4)]();return(_0x3fd94f==null?void 0x0:_0x3fd94f[_0xc8fe08(0x32a)](_0x565c5f=>a[_0xc8fe08(0x1ca)][_0xc8fe08(0x32d)](_0x565c5f,_0x150c11)))||_0x150c11;}[_0x56e0a9(0x2c4)](){const _0x1bbb60=_0x56e0a9,_0x30b8a7=new a[(_0x1bbb60(0x37f))](),_0x3cf0d8=gt(),_0x3eef51=()=>{const _0x5e26ec=_0x1bbb60;_0x30b8a7[_0x5e26ec(0x1d5)]();const _0x485ae3=(_0x344cc9,_0x4ae558,_0x48fed0,_0x59927b)=>{const _0x3649e2=_0x5e26ec;let _0x21400a=[];switch(_0x344cc9['id']){case g[_0x3649e2(0x193)][_0x3649e2(0x307)]:{_0x21400a=g['handleDeleteRangeMoveLeft'](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x405)]:{_0x21400a=g[_0x3649e2(0x301)](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x362)]:{_0x21400a=g[_0x3649e2(0x327)](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x36e)]:{_0x21400a=g['handleInsertRangeMoveDown'](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)]['InsertRangeMoveRightCommandId']:{_0x21400a=g[_0x3649e2(0x2f2)](_0x344cc9,_0x59927b);break;}case g['EffectRefRangId'][_0x3649e2(0x2bc)]:{_0x21400a=g[_0x3649e2(0x1e2)](_0x344cc9,_0x59927b);break;}case g['EffectRefRangId'][_0x3649e2(0x385)]:{_0x21400a=g['handleMoveRange'](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x294)]:{_0x21400a=g[_0x3649e2(0x1a6)](_0x344cc9,_0x59927b);break;}case g[_0x3649e2(0x193)][_0x3649e2(0x32c)]:{_0x21400a=g[_0x3649e2(0x38d)](_0x344cc9,_0x59927b);break;}}const _0x563617=g[_0x3649e2(0x1d3)](_0x21400a,_0x59927b),_0xa41413=this['cursorInfo'][_0x3649e2(0x31d)](_0x4ae558);if(_0xa41413&&_0x563617){const _0x5aed2c={..._0xa41413,'range':_0x563617};this['cursorInfo'][_0x3649e2(0x39e)](_0x4ae558,_0x5aed2c),_0x3cf0d8(()=>{const _0x54abc0=_0x3649e2,_0x5ca99b=this['_refRangeService'][_0x54abc0(0x203)](_0x563617,_0x55f9f7=>(_0x5ca99b['dispose'](),_0x485ae3(_0x55f9f7,_0x4ae558,_0x48fed0,_0x563617)));_0x30b8a7[_0x54abc0(0x247)](_0x5ca99b);});}return{'redos':[],'undos':[]};};this[_0x5e26ec(0x2e6)][_0x5e26ec(0x302)]((_0x2271be,_0x3afc09)=>{const _0x272a62=_0x5e26ec,{range:_0x33f0da,sheetID:_0x49fb77}=_0x2271be,_0x1f9db9=this[_0x272a62(0x1c1)][_0x272a62(0x203)](_0x33f0da,_0xf46214=>(_0x1f9db9[_0x272a62(0x1d5)](),_0x485ae3(_0xf46214,_0x3afc09,_0x49fb77,_0x33f0da)));_0x30b8a7[_0x272a62(0x247)](_0x1f9db9);});};this['disposeWithMe'](a[_0x1bbb60(0x3b8)](this[_0x1bbb60(0x282)][_0x1bbb60(0x2b1)](()=>{_0x3eef51();})));}[_0x56e0a9(0x1b2)](){const _0x5adc6e=_0x56e0a9;var _0x1682c1,_0x228b0b;if(this[_0x5adc6e(0x3d3)]=!0x0,((_0x1682c1=this[_0x5adc6e(0x2f8)][_0x5adc6e(0x345)]())==null?void 0x0:_0x1682c1[_0x5adc6e(0x2b0)]())!==this[_0x5adc6e(0x1ea)])return;const _0x2da741=(_0x228b0b=this[_0x5adc6e(0x263)][_0x5adc6e(0x31d)](g[_0x5adc6e(0x274)])[_0x5adc6e(0x22d)]())==null?void 0x0:_0x228b0b[0x0],_0x39c6f2=this['_univerInstanceService'][_0x5adc6e(0x284)](a['UniverInstanceType'][_0x5adc6e(0x38e)])[_0x5adc6e(0x2c5)]();_0x2da741&&_0x39c6f2&&this[_0x5adc6e(0x2d8)](_0x39c6f2[_0x5adc6e(0x206)](),_0x2da741);}[_0x56e0a9(0x3fb)](){this['_online']=!0x1;}};Se=ft([A(0x2,a['Inject'](a['Injector'])),A(0x3,a[_0x56e0a9(0x39b)](Ce)),A(0x4,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x308)])),A(0x5,a[_0x56e0a9(0x2b7)]),A(0x6,a[_0x56e0a9(0x2a9)]),A(0x7,a[_0x56e0a9(0x39b)](g['RefRangeService']))],Se);var mt=Object[_0x56e0a9(0x2a6)],Ct=(_0x5d19c4,_0x4e851e,_0x380485,_0x1d299f)=>{for(var _0xaf97b0=_0x1d299f>0x1?void 0x0:_0x1d299f?mt(_0x4e851e,_0x380485):_0x4e851e,_0x3b5c03=_0x5d19c4['length']-0x1,_0x800f48;_0x3b5c03>=0x0;_0x3b5c03--)(_0x800f48=_0x5d19c4[_0x3b5c03])&&(_0xaf97b0=_0x800f48(_0xaf97b0)||_0xaf97b0);return _0xaf97b0;},ie=(_0x52bdbb,_0x25b00f)=>(_0x3faaf8,_0x420cf1)=>_0x25b00f(_0x3faaf8,_0x420cf1,_0x52bdbb);let x=class extends a[_0x56e0a9(0x356)]{constructor(_0x2bc6d4,_0x185110,_0x1b4266){const _0x288f9e=_0x56e0a9;super(),h(this,_0x288f9e(0x329),new Map()),h(this,_0x288f9e(0x3c5),new d[(_0x288f9e(0x3dd))]()),(this[_0x288f9e(0x2f8)]=_0x2bc6d4,this[_0x288f9e(0x263)]=_0x185110,this['_collabSessionService']=_0x1b4266,this[_0x288f9e(0x2dd)]());}[_0x56e0a9(0x1d5)](){const _0x3dca72=_0x56e0a9;super[_0x3dca72(0x1d5)](),this[_0x3dca72(0x3c5)][_0x3dca72(0x2b8)](),this[_0x3dca72(0x329)][_0x3dca72(0x302)](_0x1f78c5=>_0x1f78c5[_0x3dca72(0x1d5)]());}[_0x56e0a9(0x40b)](_0x3a7dc7){const _0x354f90=_0x56e0a9;return this[_0x354f90(0x329)][_0x354f90(0x1e0)](_0x3a7dc7)?this[_0x354f90(0x329)]['get'](_0x3a7dc7)['cursorInfo$']:this[_0x354f90(0x3c5)][_0x354f90(0x2d7)](d[_0x354f90(0x276)](_0x370ee0=>_0x370ee0[_0x354f90(0x1ea)]===_0x3a7dc7),d[_0x354f90(0x2c3)](_0x2cbf21=>_0x2cbf21[_0x354f90(0x328)]));}[_0x56e0a9(0x2dd)](){const _0x330378=_0x56e0a9;this['_univerInstanceService'][_0x330378(0x1d8)](a[_0x330378(0x295)]['UNIVER_SHEET'])[_0x330378(0x2d7)](d[_0x330378(0x1d4)](this[_0x330378(0x2ab)]))['subscribe'](async _0x40817e=>{const _0x42cc91=_0x330378,_0x2b3679=_0x40817e[_0x42cc91(0x2b0)](),_0x56448a=await this['_startSheetCollabCursor'](_0x2b3679);this['_entityInit$']['next'](_0x56448a),this[_0x42cc91(0x329)][_0x42cc91(0x39e)](_0x2b3679,_0x56448a);}),this[_0x330378(0x2f8)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x330378(0x3fe)])[_0x330378(0x2d7)](d[_0x330378(0x1d4)](this['dispose$']))[_0x330378(0x2d7)](d[_0x330378(0x276)](_0x4fbe6a=>!_0x4fbe6a[_0x330378(0x2b0)]()['startsWith']('__')))[_0x330378(0x2b1)](async _0x14e941=>{const _0x90815a=_0x330378,_0x5ad4a4=_0x14e941[_0x90815a(0x2b0)](),_0x5eaeb4=await this[_0x90815a(0x19a)](_0x5ad4a4);this[_0x90815a(0x3c5)][_0x90815a(0x33d)](_0x5eaeb4),this['_entities'][_0x90815a(0x39e)](_0x5ad4a4,_0x5eaeb4);}),d[_0x330378(0x3a5)](this[_0x330378(0x2f8)][_0x330378(0x21c)](a['UniverInstanceType'][_0x330378(0x3fe)]),this[_0x330378(0x2f8)][_0x330378(0x21c)](a[_0x330378(0x295)][_0x330378(0x38e)]))[_0x330378(0x2d7)](d[_0x330378(0x1d4)](this[_0x330378(0x2ab)]))['subscribe'](_0xd5c480=>{const _0x454873=_0x330378,_0x5ab26c=_0xd5c480[_0x454873(0x2b0)](),_0x435b0a=this[_0x454873(0x329)]['get'](_0x5ab26c);_0x435b0a&&(_0x435b0a[_0x454873(0x1d5)](),this[_0x454873(0x329)][_0x454873(0x32f)](_0x5ab26c));});}async[_0x56e0a9(0x212)](_0x2df4cb){const _0x1ec8b0=_0x56e0a9,_0x245ba6=await this[_0x1ec8b0(0x36f)][_0x1ec8b0(0x3f2)](_0x2df4cb),_0x33266a=this['_injector'][_0x1ec8b0(0x2a1)](Se,_0x2df4cb,_0x245ba6);return _0x33266a[_0x1ec8b0(0x1be)](),_0x33266a;}async[_0x56e0a9(0x19a)](_0x4c2cb2){const _0x5b42dc=_0x56e0a9,_0x29cbe3=await this['_collabSessionService'][_0x5b42dc(0x3f2)](_0x4c2cb2),_0x1ae35a=this[_0x5b42dc(0x263)][_0x5b42dc(0x2a1)](de,_0x4c2cb2,_0x29cbe3);return _0x1ae35a['init'](),_0x1ae35a;}};x=Ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x1dd)])),ie(0x2,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x30b)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x167720,_0xb8abf2){const _0x4304ce=_0x56e0a9;let {radius:_0x587e4f,width:_0x5a9418,height:_0x6ef79e}=_0xb8abf2;_0x587e4f=_0x587e4f!=null?_0x587e4f:0x0,_0x5a9418=_0x5a9418!=null?_0x5a9418:0x1e,_0x6ef79e=_0x6ef79e!=null?_0x6ef79e:0x1e;let _0x50b6f6=0x0,_0x3afea1=0x0,_0x688c8a=0x0;_0x50b6f6=_0x3afea1=_0x688c8a=Math[_0x4304ce(0x364)](_0x587e4f,_0x5a9418/0x2,_0x6ef79e/0x2),_0x167720['beginPath'](),_0x167720[_0x4304ce(0x353)](_0x50b6f6,0x0),_0x167720[_0x4304ce(0x1b3)](_0x5a9418-_0x3afea1,0x0),_0x167720[_0x4304ce(0x1f4)](_0x5a9418-_0x3afea1,_0x3afea1,_0x3afea1,Math['PI']*0x3/0x2,0x0,!0x1),_0x167720[_0x4304ce(0x1b3)](_0x5a9418,_0x6ef79e-_0x688c8a),_0x167720['arc'](_0x5a9418-_0x688c8a,_0x6ef79e-_0x688c8a,_0x688c8a,0x0,Math['PI']/0x2,!0x1),_0x167720[_0x4304ce(0x1b3)](0x0,_0x6ef79e),_0x167720[_0x4304ce(0x1b3)](0x0,_0x50b6f6),_0x167720[_0x4304ce(0x1f4)](_0x50b6f6,_0x50b6f6,_0x50b6f6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x167720[_0x4304ce(0x1d1)](),_0xb8abf2[_0x4304ce(0x2ba)]&&(_0x167720[_0x4304ce(0x306)](),_0x167720[_0x4304ce(0x22f)]=_0xb8abf2[_0x4304ce(0x2ba)],_0xb8abf2[_0x4304ce(0x2f7)]==='evenodd'?_0x167720['fill'](_0x4304ce(0x1f1)):_0x167720[_0x4304ce(0x2ba)](),_0x167720[_0x4304ce(0x318)]());}class ee extends p[_0x56e0a9(0x2aa)]{constructor(_0x561648,_0x11fa7a){const _0x376931=_0x56e0a9;super(_0x561648,_0x11fa7a),h(this,_0x376931(0x40c)),h(this,_0x376931(0x287)),(this[_0x376931(0x40c)]=_0x11fa7a==null?void 0x0:_0x11fa7a[_0x376931(0x40c)],this[_0x376931(0x287)]=_0x11fa7a==null?void 0x0:_0x11fa7a['text']);}static['drawWith'](_0x648338,_0x16a6d6){const _0x574126=_0x56e0a9,{text:_0x52eb0c,color:_0x1f4d23}=_0x16a6d6;_0x648338['save'](),_0x648338['font']=_0x574126(0x258);const _0xd643c0=_0x648338[_0x574126(0x20e)](_0x52eb0c)['width'],_0xe16b5b=Math[_0x574126(0x364)](_0xd643c0+0x2*ne,Te);Et(_0x648338,{'height':W,'radius':0x4,'width':_0xe16b5b,'fill':_0x1f4d23}),_0x648338[_0x574126(0x22f)]='#FFF';const _0x2a83cf=ne,_0x3f0659=W-pt,_0x57b026=Te-0x2*ne;if(_0xd643c0>_0x57b026){let _0x3b81f4='',_0x1208f7=0x0;for(const _0xcd7c9 of _0x52eb0c){const _0x49619d=_0x648338[_0x574126(0x20e)](_0xcd7c9)[_0x574126(0x3c8)];if(_0x1208f7+_0x49619d<=_0x57b026-_0x648338[_0x574126(0x20e)]('...')[_0x574126(0x3c8)])_0x3b81f4+=_0xcd7c9,_0x1208f7+=_0x49619d;else{_0x3b81f4+='...';break;}}_0x648338[_0x574126(0x1f8)](_0x3b81f4,_0x2a83cf,_0x3f0659);}else _0x648338[_0x574126(0x1f8)](_0x52eb0c,_0x2a83cf,_0x3f0659);_0x648338['restore']();}[_0x56e0a9(0x2ec)](_0x578ec1){const _0xa90857=_0x56e0a9;ee[_0xa90857(0x3b0)](_0x578ec1,this);}}const re='collab-text-anchor-',bt=_0x56e0a9(0x339),Ot=_0x56e0a9(0x261),F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt=_0x56e0a9(0x391);class Re{constructor(_0x559dd5,_0x597af4,_0x24907c,_0x3c22d9){const _0x2e6115=_0x56e0a9;h(this,_0x2e6115(0x2b2),[]),h(this,'_anchor',null),h(this,_0x2e6115(0x38a),null),h(this,_0x2e6115(0x35b),null),h(this,_0x2e6115(0x1d2),null),h(this,_0x2e6115(0x22a),null),(this[_0x2e6115(0x2c7)]=_0x559dd5,this[_0x2e6115(0x3ea)]=_0x597af4,this['_docSkeleton']=_0x24907c,this[_0x2e6115(0x298)]=_0x3c22d9,this['_render']());}set[_0x56e0a9(0x3b6)](_0x10d9ff){const _0x22ad9f=_0x56e0a9;_0x10d9ff?(this[_0x22ad9f(0x35b)]&&this[_0x22ad9f(0x35b)][_0x22ad9f(0x273)](),this['_textBubble']&&this[_0x22ad9f(0x38a)][_0x22ad9f(0x3b5)]()):(this['_anchorDot']&&this['_anchorDot'][_0x22ad9f(0x3b5)](),this[_0x22ad9f(0x38a)]&&this[_0x22ad9f(0x38a)]['hide']());}['dispose'](){const _0x41fe9a=_0x56e0a9;for(const _0x1cee4a of this[_0x41fe9a(0x2b2)])_0x1cee4a['dispose']();this[_0x41fe9a(0x38a)]&&this[_0x41fe9a(0x38a)][_0x41fe9a(0x1d5)](),this[_0x41fe9a(0x35b)]&&this[_0x41fe9a(0x35b)][_0x41fe9a(0x1d5)](),this[_0x41fe9a(0x22c)]&&this[_0x41fe9a(0x22c)][_0x41fe9a(0x1d5)](),this[_0x41fe9a(0x22a)]&&this['_eventUnsubscribe']();}[_0x56e0a9(0x3a6)](){const _0x129e72=_0x56e0a9;var _0x403297;const {_docSkeleton:_0x52fe24,_document:_0x30d4c5}=this,{color:_0x4951b4,name:_0x37fbb0,ranges:_0x15322c}=this[_0x129e72(0x2c7)],_0x82b12e=_0x30d4c5[_0x129e72(0x316)](),{docsLeft:_0xf30152,docsTop:_0x1216b8}=_0x82b12e,_0x145362=new E['NodePositionConvertToCursor'](_0x82b12e,_0x52fe24);for(const {startOffset:_0x541619,endOffset:_0x46f6e3,rangeType:_0x403658,segmentId:_0x26ca0f,segmentPage:_0x3f12ef,collapsed:_0x4ce5f1,isActive:_0x276596}of _0x15322c){const _0x170220=_0x52fe24[_0x129e72(0x384)](_0x541619,!0x0,_0x26ca0f,_0x3f12ef);let _0x1d5bcf=_0x52fe24[_0x129e72(0x384)](_0x46f6e3,!0x0,_0x26ca0f,_0x3f12ef);if(_0x1d5bcf==null&&(_0x1d5bcf=_0x52fe24[_0x129e72(0x384)](_0x46f6e3-0x1,!0x1,_0x26ca0f,_0x3f12ef)),_0x276596){const {contentBoxPointGroup:_0x3e1def}=_0x145362[_0x129e72(0x1e9)](_0x1d5bcf,_0x1d5bcf);if(_0x3e1def['length']===0x0)continue;this[_0x129e72(0x2d0)](_0x4951b4,_0x3e1def,_0xf30152,_0x1216b8,_0x37fbb0),this[_0x129e72(0x22a)]=this[_0x129e72(0x1ac)]();}if(_0x170220&&_0x1d5bcf){if(_0x403658===a[_0x129e72(0x319)][_0x129e72(0x31b)]){const _0x5aeed9=new E[(_0x129e72(0x1c2))](_0x82b12e,_0x52fe24),{pointGroup:_0x50b4c2}=(_0x403297=_0x5aeed9[_0x129e72(0x1e9)](_0x170220,_0x1d5bcf))!=null?_0x403297:{};if(_0x50b4c2==null||_0x50b4c2[_0x129e72(0x202)]===0x0)continue;this['_drawRectRange'](_0x4951b4,_0x50b4c2,_0xf30152,_0x1216b8);}else{if(!_0x4ce5f1){const {borderBoxPointGroup:_0x31e31b}=_0x145362[_0x129e72(0x1e9)](_0x170220,_0x1d5bcf);if(_0x31e31b[_0x129e72(0x202)]===0x0)continue;this[_0x129e72(0x2fd)](_0x4951b4,_0x31e31b,_0xf30152,_0x1216b8);}}}}}[_0x56e0a9(0x2d0)](_0x28db8f,_0x26e73f,_0x38c148,_0x18b2e4,_0x5d8c33){const _0x59e656=_0x56e0a9,_0x437216=this[_0x59e656(0x2ca)](_0x26e73f),{left:_0xb3ab71,top:_0x561961,height:_0x50d1e2}=_0x437216,_0x336fe6=this[_0x59e656(0x2fc)](),_0x24cf58=Rt/_0x336fe6,_0x47b673=new p['Rect'](re+a[_0x59e656(0x2a0)](F),{'left':_0xb3ab71+_0x38c148-_0x24cf58,'top':_0x561961+_0x18b2e4,'height':_0x50d1e2,'width':Tt,'fill':_0x28db8f||p['getColor'](a[_0x59e656(0x309)]['black'],0x0),'strokeWidth':_0x24cf58,'stroke':Dt,'evented':!0x0});this[_0x59e656(0x22c)]=_0x47b673,this[_0x59e656(0x3ea)][_0x59e656(0x3f3)](_0x47b673,E[_0x59e656(0x338)]);const _0x13b720=new p[(_0x59e656(0x363))](re+a[_0x59e656(0x2a0)](F),{'left':_0xb3ab71+_0x38c148-_0x24cf58,'top':_0x561961+_0x18b2e4-oe/0x2,'height':oe,'width':oe,'fill':_0x28db8f||p['getColor'](a[_0x59e656(0x309)][_0x59e656(0x1e6)],0x0),'strokeWidth':0x0,'stroke':_0x28db8f||p[_0x59e656(0x220)](a[_0x59e656(0x309)][_0x59e656(0x1e6)],0x0),'evented':!0x1});this[_0x59e656(0x35b)]=_0x13b720,this[_0x59e656(0x3ea)]['addObject'](_0x13b720,E['TEXT_RANGE_LAYER_INDEX']);const _0x461ac8=new ee(re+a[_0x59e656(0x2a0)](F),{'left':_0xb3ab71+_0x38c148-_0x24cf58,'top':_0x561961+_0x18b2e4-W,'text':_0x5d8c33,'color':_0x28db8f});this[_0x59e656(0x38a)]=_0x461ac8,this[_0x59e656(0x3ea)][_0x59e656(0x3f3)](_0x461ac8,E[_0x59e656(0x338)]),this[_0x59e656(0x3b6)]=!0x1;}[_0x56e0a9(0x1ac)](){const _0x360e0=_0x56e0a9,_0x4716ab=this[_0x360e0(0x22c)][_0x360e0(0x28d)][_0x360e0(0x25d)](()=>{this['_hover']=!0x0;}),_0x2e8981=this[_0x360e0(0x22c)][_0x360e0(0x3be)]['subscribeEvent'](()=>{const _0x2cbe85=_0x360e0;this['_hideTimer']&&clearTimeout(this[_0x2cbe85(0x1d2)]),this[_0x2cbe85(0x1d2)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x400cb3=_0x360e0;_0x4716ab['unsubscribe'](),_0x2e8981[_0x400cb3(0x2b4)]();};}[_0x56e0a9(0x2fd)](_0x52bac0,_0x1a449d,_0x53458c,_0x3e4952){const _0x3c68d2=_0x56e0a9,_0x46898c=new a[(_0x3c68d2(0x36b))](_0x52bac0)['setAlpha'](0.2)[_0x3c68d2(0x297)](),_0x4c10d3=new p[(_0x3c68d2(0x402))](bt+a['generateRandomId'](F),{'pointsGroup':_0x1a449d,'fill':_0x46898c||p['getColor'](a[_0x3c68d2(0x309)][_0x3c68d2(0x1e6)],0.2),'left':_0x53458c,'top':_0x3e4952,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3c68d2(0x22e)](_0x4c10d3),this[_0x3c68d2(0x3ea)][_0x3c68d2(0x3f3)](_0x4c10d3,E[_0x3c68d2(0x338)]);}['_drawRectRange'](_0x45355d,_0x5918f0,_0x41eb3b,_0x17980c){const _0x2f056d=_0x56e0a9,_0x343ed6=new a['ColorKit'](_0x45355d)[_0x2f056d(0x29d)](0.2)[_0x2f056d(0x297)](),_0x3ef859=new p[(_0x2f056d(0x402))](Ot+a[_0x2f056d(0x2a0)](F),{'pointsGroup':_0x5918f0,'fill':_0x343ed6||p[_0x2f056d(0x220)](a[_0x2f056d(0x309)]['black'],0.2),'left':_0x41eb3b,'top':_0x17980c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2f056d(0x2b2)][_0x2f056d(0x22e)](_0x3ef859),this[_0x2f056d(0x3ea)][_0x2f056d(0x3f3)](_0x3ef859,E[_0x2f056d(0x338)]);}[_0x56e0a9(0x2ca)](_0x556f60){const _0x44d4d1=_0x556f60[0x0],_0x5e44da=_0x44d4d1[0x0],_0x2aa563=_0x44d4d1[0x2],{x:_0x580e6c,y:_0x3a52aa}=_0x5e44da,{x:_0x34adc8,y:_0x17bc70}=_0x2aa563;return{'left':_0x580e6c,'top':_0x3a52aa,'width':_0x34adc8-_0x580e6c,'height':_0x17bc70-_0x3a52aa};}[_0x56e0a9(0x2fc)](){const _0x2a6a72=_0x56e0a9,{scaleX:_0x3b5dd5,scaleY:_0x53ed8c}=this[_0x2a6a72(0x3ea)][_0x2a6a72(0x1ed)]();return Math[_0x2a6a72(0x216)](_0x3b5dd5,_0x53ed8c);}}var Ut=Object[_0x56e0a9(0x2a6)],Nt=(_0x3fd818,_0xf979ad,_0x5a464e,_0x5f5036)=>{for(var _0x1fceb1=_0x5f5036>0x1?void 0x0:_0x5f5036?Ut(_0xf979ad,_0x5a464e):_0xf979ad,_0x5a3da7=_0x3fd818['length']-0x1,_0x185d02;_0x5a3da7>=0x0;_0x5a3da7--)(_0x185d02=_0x3fd818[_0x5a3da7])&&(_0x1fceb1=_0x185d02(_0x1fceb1)||_0x1fceb1);return _0x1fceb1;},X=(_0x799737,_0x2269f6)=>(_0x3bdc59,_0x511f69)=>_0x2269f6(_0x3bdc59,_0x511f69,_0x799737);let fe=class extends a[_0x56e0a9(0x356)]{constructor(_0x263125,_0xdc502b,_0x4b2409,_0x5363f3,_0x574750){const _0x37a251=_0x56e0a9;super(),h(this,_0x37a251(0x3e2),[]),h(this,'_cursors',[]),(this[_0x37a251(0x2f1)]=_0x263125,this[_0x37a251(0x34d)]=_0xdc502b,this['_collabCursorController']=_0x4b2409,this[_0x37a251(0x1c5)]=_0x5363f3,this[_0x37a251(0x26e)]=_0x574750,this[_0x37a251(0x2dd)]());}[_0x56e0a9(0x2dd)](){const _0x59e8a1=_0x56e0a9,_0x16dac4=this[_0x59e8a1(0x2f1)][_0x59e8a1(0x377)],_0x4c1b15=this['_docSkeletonManagerService'];this[_0x59e8a1(0x39f)](d[_0x59e8a1(0x3e3)]([this['_collabCursorController']['getCollabCursors$'](_0x16dac4),this[_0x59e8a1(0x26e)][_0x59e8a1(0x406)]])['pipe']($[_0x59e8a1(0x2f4)](([_0x58fd74,_0x54f2ab])=>({'skeleton':_0x4c1b15[_0x59e8a1(0x1a7)](),'cursors':[..._0x58fd74['values']()][_0x59e8a1(0x3a2)](_0x4ec4b9=>({..._0x4ec4b9,'color':this[_0x59e8a1(0x26e)][_0x59e8a1(0x281)](_0x4ec4b9[_0x59e8a1(0x40c)])}))})))[_0x59e8a1(0x2b1)](_0x5064cb=>{const _0x4a24f1=_0x59e8a1;if(this[_0x4a24f1(0x382)](),_0x5064cb){const {skeleton:_0x5f13ca,cursors:_0x103490}=_0x5064cb;this[_0x4a24f1(0x1b1)](_0x5f13ca,_0x103490);}})),this['_initResize'](),this[_0x59e8a1(0x349)]();}[_0x56e0a9(0x1b1)](_0x4646f1,_0x2b1f50){const _0x449f04=_0x56e0a9,{scene:_0x1b8e16,mainComponent:_0x105c47}=this[_0x449f04(0x2f1)],_0x5b3bc5=_0x2b1f50[_0x449f04(0x2f4)](_0x3e5653=>new Re(_0x3e5653,_0x1b8e16,_0x4646f1,_0x105c47));this[_0x449f04(0x3e2)]=_0x5b3bc5,this['_cursors']=_0x2b1f50;}['_refreshCollabCursors'](){const _0x505ec2=_0x56e0a9;this[_0x505ec2(0x382)]();const {scene:_0x253c14,mainComponent:_0x12dc29}=this[_0x505ec2(0x2f1)],_0x4164a1=this[_0x505ec2(0x34d)]['getSkeleton'](),_0x5e2d99=this['_cursors'][_0x505ec2(0x2f4)](_0xaa948c=>new Re(_0xaa948c,_0x253c14,_0x4164a1,_0x12dc29));this[_0x505ec2(0x3e2)]=_0x5e2d99;}[_0x56e0a9(0x382)](){const _0x5afa15=_0x56e0a9;this['_cursorShapes'][_0x5afa15(0x302)](_0x5ea953=>_0x5ea953[_0x5afa15(0x1d5)]()),this[_0x5afa15(0x3e2)]=[];}[_0x56e0a9(0x349)](){const _0x76ac33=_0x56e0a9,_0xe1dab3=[E[_0x76ac33(0x3c6)]['id']];this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x5465f7=>{const _0x4094c6=_0x76ac33;_0xe1dab3[_0x4094c6(0x2ff)](_0x5465f7['id'])&&_0x5465f7[_0x4094c6(0x2e3)][_0x4094c6(0x377)]===this['_context']['unitId']&&this[_0x4094c6(0x2a5)]();}));}[_0x56e0a9(0x19f)](){const _0x583bdc=_0x56e0a9;this[_0x583bdc(0x39f)](a['fromEventSubject'](this[_0x583bdc(0x2f1)][_0x583bdc(0x3d7)][_0x583bdc(0x236)])[_0x583bdc(0x2d7)]($[_0x583bdc(0x276)](_0x1e57c2=>_0x1e57c2[_0x583bdc(0x305)]===p[_0x583bdc(0x3a3)]['resize']),$[_0x583bdc(0x3ad)](0x10))[_0x583bdc(0x2b1)](()=>{const _0xfce448=_0x583bdc;this[_0xfce448(0x2a5)]();}));}};fe=Nt([X(0x1,a[_0x56e0a9(0x39b)](Y[_0x56e0a9(0x40d)])),X(0x2,a[_0x56e0a9(0x39b)](x)),X(0x3,a['ICommandService']),X(0x4,a[_0x56e0a9(0x39b)](a['ThemeService']))],fe);const Mt=0x1,Lt=1.5;class $e extends p[_0x56e0a9(0x2aa)]{constructor(_0x2b2542,_0x3c5542){const _0x402381=_0x56e0a9;super(_0x2b2542,_0x3c5542),h(this,'_color'),h(this,_0x402381(0x293),!0x1),h(this,_0x402381(0x204)),h(this,_0x402381(0x2d4),''),h(this,_0x402381(0x34f),_0x402381(0x2be)),h(this,_0x402381(0x3f5)),(_0x3c5542&&this[_0x402381(0x312)](_0x3c5542),this[_0x402381(0x28d)][_0x402381(0x25d)](()=>this[_0x402381(0x312)]({'hovered':!0x0})),this[_0x402381(0x3be)][_0x402381(0x25d)](()=>this[_0x402381(0x312)]({'hovered':!0x1})));}[_0x56e0a9(0x312)](_0x1fc59a){const _0x3653c4=_0x56e0a9;var _0x45c78c,_0x3b39d8,_0x4a8cb2,_0x450728,_0x1d9ba6,_0x1d0a9b;this['_color']=(_0x45c78c=_0x1fc59a[_0x3653c4(0x40c)])!=null?_0x45c78c:this[_0x3653c4(0x242)],this[_0x3653c4(0x293)]=(_0x3b39d8=_0x1fc59a[_0x3653c4(0x20a)])!=null?_0x3b39d8:this['_hovered'],this[_0x3653c4(0x204)]=(_0x4a8cb2=_0x1fc59a[_0x3653c4(0x3c1)])!=null?_0x4a8cb2:this[_0x3653c4(0x204)],this[_0x3653c4(0x2d4)]=(_0x450728=_0x1fc59a[_0x3653c4(0x36d)])!=null?_0x450728:this[_0x3653c4(0x2d4)],this['_labelPosition']=(_0x1d9ba6=_0x1fc59a['labelPosition'])!=null?_0x1d9ba6:this[_0x3653c4(0x34f)],this[_0x3653c4(0x3f5)]=(_0x1d0a9b=_0x1fc59a[_0x3653c4(0x213)])!=null?_0x1d0a9b:this['_backgroundColor'],this[_0x3653c4(0x357)]({'width':_0x1fc59a[_0x3653c4(0x3c8)],'height':_0x1fc59a[_0x3653c4(0x262)]});}[_0x56e0a9(0x3de)](_0x3af8be){const _0x22e455=_0x56e0a9,{row:_0x31f338,column:_0x54171c}=_0x3af8be;if(_0x31f338>=this[_0x22e455(0x204)][_0x22e455(0x20f)]&&_0x31f338<=this[_0x22e455(0x204)][_0x22e455(0x28b)]&&_0x54171c>=this['_range'][_0x22e455(0x238)]&&_0x54171c<=this[_0x22e455(0x204)]['endColumn']){this[_0x22e455(0x312)]({'hovered':!0x0});return;}this[_0x22e455(0x312)]({'hovered':!0x1});}[_0x56e0a9(0x2a7)](_0x32a9e5){return!0x1;}[_0x56e0a9(0x2ec)](_0x3e156d){const _0x3d83a5=_0x56e0a9;p[_0x3d83a5(0x363)][_0x3d83a5(0x3b0)](_0x3e156d,{'width':this[_0x3d83a5(0x3c8)],'height':this['height'],'strokeWidth':Lt,'stroke':this[_0x3d83a5(0x242)],'evented':!0x1,'fill':this[_0x3d83a5(0x3f5)]}),this[_0x3d83a5(0x293)]&&(_0x3e156d[_0x3d83a5(0x306)](),_0x3e156d[_0x3d83a5(0x1a8)](0x1,0x0,0x0,0x1,this[_0x3d83a5(0x3c8)],this[_0x3d83a5(0x34f)]===_0x3d83a5(0x232)?0x0:-W),ee[_0x3d83a5(0x3b0)](_0x3e156d,{'text':this[_0x3d83a5(0x2d4)],'color':this[_0x3d83a5(0x242)]}),_0x3e156d[_0x3d83a5(0x318)]());}}var Pt=Object[_0x56e0a9(0x2a6)],wt=(_0x53c34c,_0x220c33,_0x4aa8ae,_0x5e5c88)=>{for(var _0xaff276=_0x5e5c88>0x1?void 0x0:_0x5e5c88?Pt(_0x220c33,_0x4aa8ae):_0x220c33,_0x22a0f1=_0x53c34c['length']-0x1,_0x2bad21;_0x22a0f1>=0x0;_0x22a0f1--)(_0x2bad21=_0x53c34c[_0x22a0f1])&&(_0xaff276=_0x2bad21(_0xaff276)||_0xaff276);return _0xaff276;},ae=(_0x153f6f,_0x36adf7)=>(_0x384a89,_0x2ae37b)=>_0x36adf7(_0x384a89,_0x2ae37b,_0x153f6f);const At=0x1389;let Ie=class extends a[_0x56e0a9(0x356)]{constructor(_0x309c24,_0x230f63,_0xb2da45,_0x5e3c67){const _0x445ed8=_0x56e0a9;super(),h(this,'_cursors',new Set()),h(this,'_lastPointer',null),(this[_0x445ed8(0x2f1)]=_0x309c24,this[_0x445ed8(0x1f9)]=_0x230f63,this[_0x445ed8(0x234)]=_0xb2da45,this['_themeService']=_0x5e3c67,this[_0x445ed8(0x2dd)]());}[_0x56e0a9(0x2dd)](){const _0x241eb1=_0x56e0a9;this['_sheetSkeletonManagerService'][_0x241eb1(0x21a)][_0x241eb1(0x2d7)]($[_0x241eb1(0x1d4)](this[_0x241eb1(0x2ab)]),$[_0x241eb1(0x2c3)](_0xddcacd=>{const _0x187575=_0x241eb1;if(_0xddcacd){const _0x5109fc=_0xddcacd[_0x187575(0x355)];return d[_0x187575(0x3e3)](this['_collabCursorController'][_0x187575(0x40b)](this['_context'][_0x187575(0x377)]),this[_0x187575(0x26e)][_0x187575(0x406)])[_0x187575(0x2d7)]($[_0x187575(0x2f4)](([_0x2fcc37,_0x3862d1])=>{const _0x2dc8f5=_0x187575,_0x513cfa=new Map();return _0x2fcc37[_0x2dc8f5(0x302)]((_0x1c4184,_0x5beb63)=>{const _0x1927d4=_0x2dc8f5;if(_0x1c4184[_0x1927d4(0x352)]===_0x5109fc){const _0x3b044d={..._0x1c4184};_0x3b044d[_0x1927d4(0x40c)]=this[_0x1927d4(0x26e)][_0x1927d4(0x281)](_0x1c4184[_0x1927d4(0x40c)]),_0x513cfa[_0x1927d4(0x39e)](_0x5beb63,_0x3b044d);}}),{'skeleton':_0xddcacd,'cursors':_0x513cfa};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x241eb1(0x2b1)](({skeleton:_0x46a2e4,cursors:_0x503737})=>{const _0x327aa6=_0x241eb1;this[_0x327aa6(0x382)](),_0x46a2e4&&this['_updateCollabCursors'](_0x46a2e4,_0x503737);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x532b47=>{const _0x5ac0d9=_0x241eb1;if(_0x532b47==null)return;const {skeleton:_0x54c88f}=_0x532b47,{scene:_0x4d4302}=this[_0x5ac0d9(0x2f1)];_0x4d4302[_0x5ac0d9(0x22b)][_0x5ac0d9(0x25d)](a[_0x5ac0d9(0x303)](_0x5edbc=>{const _0x1060d7=_0x5ac0d9;var _0xa697d0,_0x2da776;const {offsetX:_0x2d21d9,offsetY:_0x1e931a}=_0x5edbc,{x:_0x171d99,y:_0x3016c4}=_0x4d4302[_0x1060d7(0x3f6)](p[_0x1060d7(0x2e9)][_0x1060d7(0x1fe)]([_0x2d21d9,_0x1e931a])),{scaleX:_0x4ca7a9,scaleY:_0x3ce9d9}=_0x4d4302[_0x1060d7(0x1ed)](),_0x6bea35=_0x4d4302[_0x1060d7(0x1b5)](p[_0x1060d7(0x29f)][_0x1060d7(0x25e)]),_0x345b64=_0x4d4302[_0x1060d7(0x21e)](p['Vector2']['FromArray']([_0x171d99,_0x3016c4]),_0x6bea35),_0x245baa=_0x54c88f['getCellPositionByOffset'](_0x2d21d9,_0x1e931a,_0x4ca7a9,_0x3ce9d9,_0x345b64);((_0xa697d0=this[_0x1060d7(0x378)])==null?void 0x0:_0xa697d0[_0x1060d7(0x314)])===_0x245baa[_0x1060d7(0x314)]&&((_0x2da776=this[_0x1060d7(0x378)])==null?void 0x0:_0x2da776[_0x1060d7(0x27f)])===_0x245baa[_0x1060d7(0x27f)]||this['_cursors']['forEach'](_0x58d86f=>{const _0x23d8e1=_0x1060d7;_0x58d86f[_0x23d8e1(0x3de)](_0x245baa);});},0x64));});}[_0x56e0a9(0x1b1)](_0x2577ae,_0x1dbc57){const _0xc09262=_0x56e0a9;var _0x5fe814;const _0x3d9915=(_0x5fe814=this[_0xc09262(0x1f9)]['getCurrent']())==null?void 0x0:_0x5fe814[_0xc09262(0x32b)];if(!_0x3d9915)return;const _0x15bb16=this['_getSheetObject']();if(!_0x15bb16)return;this[_0xc09262(0x374)][_0xc09262(0x302)](_0x434e80=>{const _0x38f1f5=_0xc09262;_0x434e80[_0x38f1f5(0x320)]();});const {scene:_0x4a0474}=_0x15bb16,_0x4260e6=yt(Array['from'](_0x1dbc57[_0xc09262(0x375)]()))[_0xc09262(0x2f4)](_0x4757ea=>{const _0x5c024c=_0xc09262,{color:_0x17017b,range:_0x3bb073,name:_0xf56217,selection:_0x10008c,sheetID:_0x1489ba}=_0x4757ea,{startColumn:_0xda8541,startRow:_0x294424,endColumn:_0xa2f783,endRow:_0x3a6504}=_0x3bb073,_0x390666=G[_0x5c024c(0x3ae)](_0x294424,_0xda8541,_0x4a0474,_0x3d9915),_0x6ef7b1=G[_0x5c024c(0x3ae)](_0x3a6504,_0xa2f783,_0x4a0474,_0x3d9915),{columnHeaderHeightAndMarginTop:_0x4cfd73}=_0x3d9915,{startX:_0x23f8d4,startY:_0x3735de}=_0x390666,{endX:_0x14e401,endY:_0x84297c}=_0x6ef7b1,_0x54b872=_0x14e401-_0x23f8d4,_0x7d27ef=_0x84297c-_0x3735de,_0x4f3275={'labelPosition':_0x3735de-_0x4cfd73>=W?_0x5c024c(0x2be):_0x5c024c(0x232),'sheetID':_0x1489ba,'range':_0x3bb073,'color':_0x17017b,'name':_0xf56217,'selection':_0x10008c,'left':_0x23f8d4,'top':_0x3735de,'width':_0x54b872,'height':_0x7d27ef,'evented':!0x1,'zIndex':At};return new $e(_0xf56217,_0x4f3275);});_0x4a0474['addObjects'](_0x4260e6,Mt),this[_0xc09262(0x374)]=new Set(_0x4260e6);}[_0x56e0a9(0x382)](){const _0x27d2f4=_0x56e0a9;var _0x5e7fd8;(_0x5e7fd8=this['_cursors'])==null||_0x5e7fd8['forEach'](_0x52b7a5=>_0x52b7a5[_0x27d2f4(0x1d5)]());}[_0x56e0a9(0x226)](){const _0x1bff94=_0x56e0a9;return G[_0x1bff94(0x292)](this[_0x1bff94(0x2f1)][_0x1bff94(0x37e)],this[_0x1bff94(0x2f1)]);}};Ie=wt([ae(0x1,a[_0x56e0a9(0x39b)](G['SheetSkeletonManagerService'])),ae(0x2,a[_0x56e0a9(0x39b)](x)),ae(0x3,a[_0x56e0a9(0x39b)](a['ThemeService']))],Ie);function yt(_0x285fc3){const _0x589fb2=_0x56e0a9,_0x3c1cda=new Map();return _0x285fc3[_0x589fb2(0x302)](_0x473c91=>{const _0x3d6066=_0x589fb2;if(_0x3c1cda[_0x3d6066(0x1e0)](_0x473c91[_0x3d6066(0x1e4)])){const _0x221460=_0x3c1cda[_0x3d6066(0x31d)](_0x473c91[_0x3d6066(0x1e4)]);_0x221460['name']+=',\x20'+_0x473c91['name'];}else _0x3c1cda[_0x3d6066(0x39e)](_0x473c91[_0x3d6066(0x1e4)],_0x473c91);}),Array['from'](_0x3c1cda[_0x589fb2(0x375)]());}var $t=Object[_0x56e0a9(0x2a6)],xt=(_0x1014a4,_0x5ade69,_0x42fe5c,_0x117f50)=>{const _0x198099=_0x56e0a9;for(var _0x207226=_0x117f50>0x1?void 0x0:_0x117f50?$t(_0x5ade69,_0x42fe5c):_0x5ade69,_0x257a9c=_0x1014a4[_0x198099(0x202)]-0x1,_0x1f66df;_0x257a9c>=0x0;_0x257a9c--)(_0x1f66df=_0x1014a4[_0x257a9c])&&(_0x207226=_0x1f66df(_0x207226)||_0x207226);return _0x207226;},y=(_0x5f2a0a,_0x42cf5f)=>(_0x408c73,_0x46eb6f)=>_0x42cf5f(_0x408c73,_0x46eb6f,_0x5f2a0a);let q=class extends a[_0x56e0a9(0x229)]{constructor(_0x520e30,_0xdf3f36,_0x5a02d5,_0x7e55bd,_0x349551,_0x150e48){const _0x509e9e=_0x56e0a9;super(),this['_beforeCloseService']=_0x520e30,this[_0x509e9e(0x2d6)]=_0xdf3f36,this['_collaborationUIEventService']=_0x5a02d5,this[_0x509e9e(0x1a0)]=_0x7e55bd,this[_0x509e9e(0x237)]=_0x349551,this[_0x509e9e(0x1e5)]=_0x150e48,this[_0x509e9e(0x1aa)](),this[_0x509e9e(0x3ab)]();}[_0x56e0a9(0x1aa)](){const _0x28f897=_0x56e0a9;this[_0x28f897(0x39f)](this[_0x28f897(0x36c)]['registerBeforeClose'](()=>{const _0x153e9c=_0x28f897;if(this[_0x153e9c(0x2d6)][_0x153e9c(0x399)][_0x153e9c(0x283)])return this[_0x153e9c(0x1e5)]['t'](_0x153e9c(0x250));}));}[_0x56e0a9(0x3ab)](){const _0x1cfe12=_0x56e0a9;this[_0x1cfe12(0x39f)](this[_0x1cfe12(0x228)][_0x1cfe12(0x29b)][_0x1cfe12(0x2b1)](_0x1606ff=>{const _0x4fd92a=_0x1cfe12;_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x259)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D[_0x4fd92a(0x2b3)][_0x4fd92a(0x19c)],'content':this['_localeService']['t'](_0x4fd92a(0x275))}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x254)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D[_0x4fd92a(0x2b3)][_0x4fd92a(0x19c)],'content':this['_localeService']['t'](_0x4fd92a(0x1c8))}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x3b9)]&&this[_0x4fd92a(0x237)][_0x4fd92a(0x3b5)]({'title':this[_0x4fd92a(0x1e5)]['t']('permission.title'),'content':this[_0x4fd92a(0x1e5)]['t']('permission.content'),'type':_0x4fd92a(0x2f3),'duration':0x0}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x1db)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D[_0x4fd92a(0x2b3)][_0x4fd92a(0x3af)],'content':this[_0x4fd92a(0x1e5)]['t']('collaboration.closeRoom')+'('+_0x1606ff[_0x4fd92a(0x400)]+')'}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x398)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D['MessageType'][_0x4fd92a(0x19c)],'content':this[_0x4fd92a(0x1e5)]['t'](_0x1606ff[_0x4fd92a(0x400)]||'')}),_0x1606ff['id']===u[_0x4fd92a(0x2cd)][_0x4fd92a(0x27c)]&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D['MessageType']['Warning'],'content':this[_0x4fd92a(0x1e5)]['t'](_0x4fd92a(0x26a))}),_0x1606ff['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x4fd92a(0x1a0)][_0x4fd92a(0x3b5)]({'type':D[_0x4fd92a(0x2b3)][_0x4fd92a(0x3af)],'content':this[_0x4fd92a(0x1e5)]['t'](_0x4fd92a(0x1ad))}),_0x1606ff['id']===u['CollaborationUIEventId'][_0x4fd92a(0x253)]&&this[_0x4fd92a(0x1a0)]['show']({'type':D[_0x4fd92a(0x2b3)]['Error'],'content':this[_0x4fd92a(0x1e5)]['t'](_0x4fd92a(0x1cd))});}));}};q=xt([y(0x0,O['IBeforeCloseService']),y(0x1,u[_0x56e0a9(0x1c0)]),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O['INotificationService']),y(0x5,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x3ff)]))],q);const Bt=_0x56e0a9(0x3d9),De={};function _0x4745(){const _0x18365d=['CONNECTOR_DATA_TOO_LARGE','event$','none','setAlpha','function','SHEET_VIEWPORT_KEY','generateRandomId','createInstance','43412qXybMo','_cachedData','YUUMI_RATE_OVER_LIMIT','_refreshCollabCursors','getOwnPropertyDescriptor','triggerDblclick','PY_RUNTIME_SCRIPT_ERROR','ICommandService','Shape','dispose$','Module','transformMutationsWithChangeset','5QPdNvU','assignAColorForMemberID','getUnitId','subscribe','_shapes','MessageType','unsubscribe','assign','blue.400','IUniverInstanceService','complete','url(#$1','fill','executionId','InsertRowCommandId','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','top','M0\x200H16V16H0z','_logService','_transformHistoryAndStateStack','ticket','switchMap','_onRefRangeChange','getActiveSheet','UnitStatus','_cursor','saveOfflineData','div','_getAnchorBounding','some','INTERNAL_ERROR','CollaborationUIEventId','_config','_scheduleHeartbeat','_drawAnchor','clipPath','location','UniverIcon','_name','replaceState','_localCacheService','pipe','_updateLocalCursor','INVITE_CODE_HAS_BEEN_UES','_handleEvent','BrowserCollaborationSocketService','code','_init','YUUMI_ALL_TABLES_IS_INVALID','displayName','IConfigService','ranges','substring','params','CollaborationEvent','getUnhiddenWorksheets','cursorInfo','COMPLETION_FINISHED','_removeClearOtherTimer','Vector2','getMemberID','connectInjector','_draw','redoState','isActive','roomMembers','1218574fpnbNa','_context','handleInsertRangeMoveRight','error','map','getCollabEntity$','_send','fillRule','_univerInstanceService','HTTPService','getMember','SessionStatus','_getScale','_drawTextRange','SetTextSelectionsOperation','includes','indexOf','handleDeleteRangeMoveUp','forEach','debounce','CollaborationDataLoaderController','type','save','DeleteRangeMoveLeftCommandId','MemberService','COLORS','INVALID_INVITE_CODE','CollaborationSessionService','LICENSE_IMPORT_SIZE_EXCEEDED','_syncEditingCollabCursorService','trim','prototype','_unitStatus','_updateURLWithCurrentState','setShapeProps','onStarting','column','createElement','getOffsetConfig','_session','restore','DOC_RANGE_TYPE','_docClipboardService','RECT','univerjs-icon\x20univerjs-icon-','get','_docTransformStateCacheService','DesktopCollaborationStatusDisplayController','makeDirty','MUTATION','icon','defIds','_registerRenderDependencies','post','MOBILE_VERIFY_CODE_MISMATCH','handleInsertCol','cursorInfo$','_entities','find','skeleton','RemoveRowCommandId','contains','eventID','delete','Tools','transformMutation','ONLINE','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_roomMembers$','registerDependencies','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','TEXT_RANGE_LAYER_INDEX','collab-text-range-','invokeId','m1Prime','SYNCED','next','onLocalMutation','clearTimeout','_initEntityListener','YUUMI_SUBSCRIPTION_NOT_FOUND','UNRECOGNIZED','getUnitStatus$','IDocClipboardService','getFocusedUnit','mergeOverrideWithDependencies','ACTIVE_UNIT_EVENT_CHANNEL','_onCursorDelete','_initCommandExecutedListener','getRenderById','setConfig','_initStatusListener','_docSkeletonManagerService','useObservable','_labelPosition','onCommandExecuted','useCallback','sheetID','moveTo','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','sheetId','RxDisposable','transformByState','ENSURE_SNAPSHOT_EXECUTION','string','_configService','_anchorDot','defineProperty','getValue','UniverCollaborationClientPlugin','_clearOtherTimers','shareReplay','_saveTaskMap','InsertColCommandId','Rect','min','getParam','on-line-icon_clip0_910_349','toStringTag','OnLineIcon','runOnServer','ALREADY_EXISTS','ColorKit','_beforeCloseService','name','InsertRangeMoveDownCommandId','_collabSessionService','green.600','_ensureSubject','Failed','debounceTime','_cursors','values','SheetCollabCursorShape','unitId','_lastPointer','_updateSubUnitFromURLParams','searchParams','unshift','APPLY_NON_SEQUENTIAL_REVISION','history','unit','DisposableCollection','1em','_colorIndex','_removeCollabCursors','8130115WbrHLj','findNodePositionByCharIndex','MoveRangeCommandId','deserializeRangeWithSheet','WebBrowserSingleActiveUnitService','getActiveRange','send','_textBubble','_localStorageService','forwardRef','handleIRemoveRow','UNIVER_SHEET','_colorAssignService','off-line-icon','rgba(255,\x20255,\x20255,\x200.01)','INVITE_CODE_REQUIRED','_scheduleSaving','CollaborationController','getConfig','EMAIL_HAS_BEEN_BOUND','_initStatusComponent','JOIN_ROOM_FAILED','saveTaskMap','UNAUTHENTICATED','Inject','getUniverSheetInstance','LICENSE_DISTRO_REJECTED','set','disposeWithMe','Unknown\x20user','exhaustSavingTask','flatMap','TRANSFORM_CHANGE_OBSERVABLE_TYPE','setActiveRange','merge','_render','UniverCollaborationClientUIPlugin','href','key','xlink:href','_initEvent','disposeUnit','throttleTime','getCoordByCell','Error','drawWith','setParam','LICENSE_EXPORT_SIZE_EXCEEDED','pluginName','getMergeData','show','_hover','docStateChange$','toDisposable','PERMISSION_DENIED','entityInit$','LOCAL_CACHE_INTERVAL','transformSelections','jsx','onPointerLeave$','_initDependencies','setItem','range','DocIMEInputManagerService','toString','collabStatus.conflict','_entityInit$','SetDocZoomRatioOperation','SNAPSHOT_HAS_BEEN_REMOVED','width','setStateCache','CollaborationStatus','_handleHeartbeatEvent','_docTransformIMECacheService','_doCreateSocket','CollaborationSocketService','override','INVITE_CODE_ALREADY_BOUND','addHandlerCallback','APPLY_PERMISSION_DENIED','_online','useDependency','RemoteUniscriptService','children','engine','univer-flex\x20univer-items-center','collaboration-client-ui.config','setInterval','replace','collabStatus.offline','Subject','onMouseMove','on-line-icon','executeCommand','source','_cursorShapes','combineLatest','_id','from','svg','textRanges','enableLocalCache','className','_scene','_registerDependencies','UNDEFINED','[RemoteUniscriptService]:\x20no\x20focused\x20unit','serializeRangeWithSheet','_getMergeRange','_onCursorUpdate','isTransformMutationsWithChangesetSuccess','requireSession','addObject','collabStatus.synced','_backgroundColor','getRelativeToViewportCoord','focused$','split','WECHAT_HAS_BEEN_BOUND','_status$','_toggleOffline','_assignedColors','YUUMI_UNABLE_LOAD_URL','UNIVER_DOC','LocaleService','data','sessionTicket','RegularPolygon','unload','HEADER_MENU','DeleteRangeMoveUpCommandId','currentTheme$','pushState','url(#on-line-icon_clip0_910_349)','SetSelectionsOperation','_revisionService','getCollabCursors$','color','DocSkeletonManagerService','_docTransformSelectionsService','EffectRefRangId','use','whenReady','entries','with','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','createSocket','_startDocCollabCursor','storage','Warning','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_selfUnitIDs','_initResize','_messageService','LICENSE_MAX_UNITS_EXCEEDED','roomMembers$','_disabled','_unitOnClients','undoState','handleIRemoveCol','getSkeleton','transform','idSuffix','_setupBeforeClosingHandler','m2Prime','_handleHover','session.connection-failed','subunit','deepClone','newValue','_updateCollabCursors','_toggleOnline','lineTo','syncEditingCollabCursor','getViewport','_docSyncEditingCollabCursorService','YUUMI_CONNECTOR_URL_NOT_FOUND','random','popstate','selections','_transformService','colorChannel1','_setupSubUnitSync','init','mutations','ILocalCacheService','_refRangeService','NodePositionConvertToRectRange','BuiltInUIPart','_urlService','_commandService','subUnitId','attrs','collaboration.closeRoom','SNAPSHOT_INVALID_SNAPSHOT','Rectangle','parse','USERS_LEAVE','session.collaboration-timeout','round','_transformUndoRedoStack','updateOfflineData','closePath','_hideTimer','runRefRangeMutations','takeUntil','dispose','5189432zDFaYd','ITransformService','getTypeOfUnitAdded$','IImageIoService','uni.network.url-service','CONFLICT','getCurrentRevOfUnit','Injector','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_getSaveTimeout','has','EMAIL_VERIFY_CODE_MISMATCH','handleInsertRow','DEFAULT_WS_SESSION_TICKET_URL','selection','_localeService','black','RichTextEditingMutation','OTHER_CLIENTS_EDITING','getRangePointData','unitID','registerRenderModule','_renderManagerService','getAncestorScale','306FLYHIv','saveImage','replaceDocRanges','evenodd','then','IURLService','arc','_instanceService','clearInterval','SetWorksheetActivateCommand','fillText','_sheetSkeletonManagerService','onRendered','getUndoRedoMutationParamsCache','doc.mutation.rich-text-editing','univer-mr-2\x20univer-flex\x20univer-text-xl','FromArray','white','path','_memberService','length','registerRefRange','_range','Workbook','getSheetId','YUUMI_TABLE_NOT_FOUND_IN_UNIT','DataLoaderService','NOT_COLLAB','hovered','debug','APPLY_DUPLICATED','IUIPartsService','measureText','startRow','TEXT','_scheduleClearOtherTimer','_startSheetCollabCursor','backgroundColor','hasOwnProperty','ILogService','max','_createSocketURL','getStateCache','http://www.w3.org/2000/svg','currentSkeleton$','/run/','getTypeOfUnitDisposed$','_docStateChangeManagerService','getVpScrollXYInfoByPosToVp','runId','getColor','getLocalCacheKey','urlChange$','LOGIN_FAILED','MOBILE_HAS_BEEN_BOUND','mapTo','_getSheetObject','_collabCursorState$','_collaborationUIEventService','Disposable','_eventUnsubscribe','onPointerMove$','_anchor','getCurrentSelections','push','fillStyle','BehaviorSubject','getOwnPropertySymbols','bottom','YUUMI_AI_RUN_FAILED','_collabCursorController','APPLY_REVISION_CONFILICT','onTransformChange$','_notificationService','startColumn','editingUnit','getDocRanges','DocCollaborationEntity','4682598cFkJwa','jsxs','wsSessionTicketUrl','loadUnit','call','tag','_color','_dataLoaderService','isArray','body','fromEvent','add','imageSourceType','NOT_FOUND','PENDING','DocSelectionManagerService','RevisionService','getItem','mask','extend','collaboration-client.offline-data-not-saved','LOCAL_CACHE_INTERVAL_KEY','[CollaborationDataLoaderController]','SUBMIT_CHANGESET_TIMEOUT','CLOSE_ROOM','transformRemoteChangeset','getSheetBySheetId','CHANGESET_REVISION_CONFILICT','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','OTHER_CLIENT_EDITING','WebSocketService','YUUMI_URL_COL_OUT_OF_RANGE','defs','subscribeEvent','VIEW_MAIN','_heartbeatTimer','useRef','collab-rect-range-','height','_injector','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','concat','APPLY_REJECT','currentColor','isTransformMutationFailure','INVALID_ARGUMENT','session.will-retry','_getSessionTicket','purple.300','off-line-icon_clip0_910_343','_themeService','_collaborationController','result','setTimeout','_saveCache','hide','SheetsSelectionsService','collaboration.single-unit.warning','filter','9KAydvF','OFFLINE','collabCursorState$','_httpService','NO_OTHER_CLIENTS_EDITING','SOCKET_FAILED_RETRY','all','DependentOn','row','6112390QMOAHP','getColorFromTheme','_cursorInfo$','size','getCurrentUnitForType','_handleLeaveEvent','distinctUntilChanged','text','UPDATE_CURSOR','USER_NOT_INVITED_CODE','_imageIoService','endRow','_transformPreviousActiveRange','onPointerEnter$','transformStateCache','setUndoRedoMutationParamsCache','asObservable','771400ufViVH','getSheetObject','_hovered','RemoveColCommandId','UniverInstanceType','transformIMECache','toRgbString','_document','url(#off-line-icon_clip0_910_343)'];_0x4745=function(){return _0x18365d;};return _0x4745();}var jt=Object[_0x56e0a9(0x2a6)],kt=(_0x3f72d4,_0xb2523e,_0x5ec031,_0x1bff6f)=>{for(var _0x18a3b2=_0x1bff6f>0x1?void 0x0:_0x1bff6f?jt(_0xb2523e,_0x5ec031):_0xb2523e,_0xc8bb27=_0x3f72d4['length']-0x1,_0x1a07a3;_0xc8bb27>=0x0;_0xc8bb27--)(_0x1a07a3=_0x3f72d4[_0xc8bb27])&&(_0x18a3b2=_0x1a07a3(_0x18a3b2)||_0x18a3b2);return _0x18a3b2;},Ue=(_0x496333,_0x386f91)=>(_0x5a1677,_0x57bd05)=>_0x386f91(_0x5a1677,_0x57bd05,_0x496333);let z=class{constructor(_0x1b9b5e,_0x2faf08){this['_transformService']=_0x1b9b5e,this['_renderManagerService']=_0x2faf08;}[_0x56e0a9(0x296)](_0x4feb47){const _0x2d97f5=_0x56e0a9;this[_0x2d97f5(0x1cf)](_0x4feb47),this[_0x2d97f5(0x28c)](_0x4feb47);}[_0x56e0a9(0x255)](_0x3f75b1){const _0x457210=_0x56e0a9,{unitID:_0x284335}=_0x3f75b1,_0x4afcbf=this['_renderManagerService'][_0x457210(0x34a)](_0x284335)[_0x457210(0x197)](E[_0x457210(0x3c2)]),{redoCache:_0x58e41e}=_0x4afcbf[_0x457210(0x1fb)]();if(_0x58e41e[_0x457210(0x202)]===0x0)return _0x3f75b1;let _0x539dd9=a[_0x457210(0x330)][_0x457210(0x1af)](_0x3f75b1['mutations'][0x0]);for(let _0x3dc0b5=0x0;_0x3dc0b5<_0x58e41e[_0x457210(0x202)];_0x3dc0b5++){const _0x14f08a={'id':_0x457210(0x1fc),'params':{..._0x58e41e[_0x3dc0b5]}},_0x354921=this[_0x457210(0x1bb)][_0x457210(0x331)](_0x539dd9,_0x14f08a,!0x1);if(m[_0x457210(0x268)](_0x354921))throw _0x354921['error'];_0x539dd9=_0x354921[_0x457210(0x33b)];}return{...a[_0x457210(0x330)][_0x457210(0x1af)](_0x3f75b1),'mutations':[_0x539dd9]};}['_transformUndoRedoStack'](_0x3ccba5){const _0x54bab9=_0x56e0a9,{unitID:_0x413ec0}=_0x3ccba5,_0x26574c=this['_renderManagerService'][_0x54bab9(0x34a)](_0x413ec0)[_0x54bab9(0x197)](E['DocIMEInputManagerService']),{undoCache:_0x13d655,redoCache:_0xf08f74}=_0x26574c['getUndoRedoMutationParamsCache']();if(_0x13d655[_0x54bab9(0x202)]===0x0||_0xf08f74[_0x54bab9(0x202)]===0x0)return;const _0x26aa85=[],_0x22a15c=[];let _0x279a59=a[_0x54bab9(0x330)]['deepClone'](_0x3ccba5[_0x54bab9(0x1bf)][0x0]),_0x52416a=a['Tools'][_0x54bab9(0x1af)](_0x3ccba5[_0x54bab9(0x1bf)][0x0]);for(let _0x6cceb3=_0x13d655[_0x54bab9(0x202)]-0x1;_0x6cceb3>=0x0;_0x6cceb3--){const _0x5a1cde={'id':_0x54bab9(0x1fc),'params':{..._0x13d655[_0x6cceb3]}},_0x188ca0={'id':_0x54bab9(0x1fc),'params':{..._0xf08f74[_0x6cceb3]}},_0x1475e5=this[_0x54bab9(0x1bb)][_0x54bab9(0x331)](_0x279a59,_0x5a1cde,!0x1),_0x2daa8b=this[_0x54bab9(0x1bb)][_0x54bab9(0x331)](_0x52416a,_0x188ca0,!0x1);if(m[_0x54bab9(0x268)](_0x1475e5))throw _0x1475e5[_0x54bab9(0x2f3)];if(m[_0x54bab9(0x268)](_0x2daa8b))throw _0x2daa8b[_0x54bab9(0x2f3)];_0x26aa85[_0x54bab9(0x37b)](_0x1475e5['m2Prime'][_0x54bab9(0x2e3)]),_0x22a15c[_0x54bab9(0x37b)](_0x2daa8b[_0x54bab9(0x1ab)][_0x54bab9(0x2e3)]),_0x279a59=_0x1475e5[_0x54bab9(0x33b)],_0x52416a=_0x2daa8b[_0x54bab9(0x33b)];}_0x26574c[_0x54bab9(0x28f)]({'undoCache':_0x26aa85,'redoCache':_0x22a15c});}[_0x56e0a9(0x28c)](_0x428ab4){const _0x175688=_0x56e0a9,{unitID:_0x4762de}=_0x428ab4,_0x5b1411=this[_0x175688(0x1ec)][_0x175688(0x34a)](_0x4762de)[_0x175688(0x197)](E['DocIMEInputManagerService']),_0x54660d=_0x5b1411[_0x175688(0x388)]();if(_0x54660d==null)return;const _0x29cf02=[{'id':_0x175688(0x1fc),'params':{'unitId':_0x428ab4[_0x175688(0x1ea)],'actions':null,'textRanges':[_0x54660d]}}],_0x5e43a5=this['_transformService'][_0x175688(0x2ad)](_0x428ab4,_0x29cf02);if(!m['isTransformMutationsWithChangesetSuccess'](_0x5e43a5))throw _0x5e43a5['error'];const _0x16cd86=_0x5e43a5[_0x175688(0x1ab)][0x0]['params']['textRanges'];Array[_0x175688(0x244)](_0x16cd86)&&_0x16cd86[_0x175688(0x202)]&&_0x5b1411[_0x175688(0x3a4)](_0x16cd86[0x0]);}};z=kt([Ue(0x0,m[_0x56e0a9(0x1d7)]),Ue(0x1,p['IRenderManagerService'])],z);var Ft=Object[_0x56e0a9(0x2a6)],Ht=(_0x22205f,_0x3e4d0c,_0x5756e2,_0x248750)=>{const _0x166e0e=_0x56e0a9;for(var _0x205363=_0x248750>0x1?void 0x0:_0x248750?Ft(_0x3e4d0c,_0x5756e2):_0x3e4d0c,_0x1e568b=_0x22205f[_0x166e0e(0x202)]-0x1,_0x16b67e;_0x1e568b>=0x0;_0x1e568b--)(_0x16b67e=_0x22205f[_0x1e568b])&&(_0x205363=_0x16b67e(_0x205363)||_0x205363);return _0x205363;},ce=(_0x289b19,_0x29f118)=>(_0x350fba,_0x1fede1)=>_0x29f118(_0x350fba,_0x1fede1,_0x289b19);let J=class{constructor(_0x50b512,_0x2099f5,_0x24179a){const _0x41d745=_0x56e0a9;this['_injector']=_0x50b512,this[_0x41d745(0x1bb)]=_0x2099f5,this[_0x41d745(0x21d)]=_0x24179a;}[_0x56e0a9(0x28e)](_0x4c395d){this['_transformHistoryAndStateStack'](_0x4c395d);}[_0x56e0a9(0x255)](_0x3d62c2){const _0x1deae0=_0x56e0a9,{unitID:_0x54b297}=_0x3d62c2,{collaboration:_0x556687}=this[_0x1deae0(0x21d)]['getStateCache'](_0x54b297);if(_0x556687[_0x1deae0(0x202)]===0x0)return _0x3d62c2;let _0x3339c0=a[_0x1deae0(0x330)]['deepClone'](_0x3d62c2['mutations'][0x0]);for(let _0x5e93ac=0x0;_0x5e93ac<_0x556687[_0x1deae0(0x202)];_0x5e93ac++){const _0x47992d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x556687[_0x5e93ac][_0x1deae0(0x377)],..._0x556687[_0x5e93ac][_0x1deae0(0x2ed)]}},_0x1ad148=this[_0x1deae0(0x1bb)]['transformMutation'](_0x3339c0,_0x47992d,!0x1);if(m['isTransformMutationFailure'](_0x1ad148))throw _0x1ad148[_0x1deae0(0x2f3)];_0x3339c0=_0x1ad148[_0x1deae0(0x33b)];}return{...a[_0x1deae0(0x330)][_0x1deae0(0x1af)](_0x3d62c2),'mutations':[_0x3339c0]};}[_0x56e0a9(0x2c1)](_0x488f7e){const _0x5284e5=_0x56e0a9,{unitID:_0x37f686}=_0x488f7e,{history:_0x25fe91,collaboration:_0x464e17}=this[_0x5284e5(0x21d)][_0x5284e5(0x218)](_0x37f686);if(_0x25fe91['length']===0x0&&_0x464e17[_0x5284e5(0x202)]===0x0)return;const _0x2440a6=[],_0x2e492e=[];let _0x1df9e4=a[_0x5284e5(0x330)][_0x5284e5(0x1af)](_0x488f7e[_0x5284e5(0x1bf)][0x0]),_0x330b75=a[_0x5284e5(0x330)][_0x5284e5(0x1af)](_0x488f7e[_0x5284e5(0x1bf)][0x0]);for(let _0x263d53=_0x25fe91[_0x5284e5(0x202)]-0x1;_0x263d53>=0x0;_0x263d53--){const _0x4a6d2c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x25fe91[_0x263d53][_0x5284e5(0x377)],..._0x25fe91[_0x263d53][_0x5284e5(0x1a5)]}},_0x308183={'id':_0x5284e5(0x1fc),'params':{'unitId':_0x25fe91[_0x263d53][_0x5284e5(0x377)],..._0x25fe91[_0x263d53][_0x5284e5(0x2ed)]}},_0x5ed22a=this[_0x5284e5(0x1bb)][_0x5284e5(0x331)](_0x1df9e4,_0x4a6d2c,!0x1),_0x2c9a55=this[_0x5284e5(0x1bb)][_0x5284e5(0x331)](_0x330b75,_0x308183,!0x1);if(m[_0x5284e5(0x268)](_0x5ed22a))throw _0x5ed22a[_0x5284e5(0x2f3)];if(m[_0x5284e5(0x268)](_0x2c9a55))throw _0x2c9a55[_0x5284e5(0x2f3)];_0x2440a6['unshift']({..._0x25fe91[_0x263d53],'undoState':_0x5ed22a['m2Prime'][_0x5284e5(0x2e3)],'redoState':_0x2c9a55[_0x5284e5(0x1ab)][_0x5284e5(0x2e3)]}),_0x1df9e4=_0x5ed22a[_0x5284e5(0x33b)],_0x330b75=_0x2c9a55[_0x5284e5(0x33b)];}_0x1df9e4=a[_0x5284e5(0x330)][_0x5284e5(0x1af)](_0x488f7e[_0x5284e5(0x1bf)][0x0]),_0x330b75=a[_0x5284e5(0x330)][_0x5284e5(0x1af)](_0x488f7e[_0x5284e5(0x1bf)][0x0]);for(let _0x5c2aca=_0x464e17['length']-0x1;_0x5c2aca>=0x0;_0x5c2aca--){const _0x434444={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x464e17[_0x5c2aca]['unitId'],..._0x464e17[_0x5c2aca]['undoState']}},_0x1d6706={'id':_0x5284e5(0x1fc),'params':{'unitId':_0x464e17[_0x5c2aca][_0x5284e5(0x377)],..._0x464e17[_0x5c2aca]['redoState']}},_0xe5a228=this['_transformService'][_0x5284e5(0x331)](_0x1df9e4,_0x434444,!0x1),_0x126330=this[_0x5284e5(0x1bb)][_0x5284e5(0x331)](_0x330b75,_0x1d6706,!0x1);if(m[_0x5284e5(0x268)](_0xe5a228))throw _0xe5a228[_0x5284e5(0x2f3)];if(m[_0x5284e5(0x268)](_0x126330))throw _0x126330['error'];_0x2e492e[_0x5284e5(0x37b)]({..._0x464e17[_0x5c2aca],'undoState':_0xe5a228[_0x5284e5(0x1ab)][_0x5284e5(0x2e3)],'redoState':_0x126330[_0x5284e5(0x1ab)][_0x5284e5(0x2e3)]}),_0x1df9e4=_0xe5a228[_0x5284e5(0x33b)],_0x330b75=_0x126330['m1Prime'];}this[_0x5284e5(0x21d)][_0x5284e5(0x3c9)](_0x37f686,{'history':_0x2440a6,'collaboration':_0x2e492e});}};J=Ht([ce(0x0,a['Inject'](a[_0x56e0a9(0x1dd)])),ce(0x1,m['ITransformService']),ce(0x2,a[_0x56e0a9(0x39b)](E['DocStateChangeManagerService']))],J);var Yt=Object[_0x56e0a9(0x2a6)],Wt=(_0x5ebdf9,_0x1c2df1,_0x38f8ee,_0x33481f)=>{const _0x153e48=_0x56e0a9;for(var _0xda6632=_0x33481f>0x1?void 0x0:_0x33481f?Yt(_0x1c2df1,_0x38f8ee):_0x1c2df1,_0x3e510e=_0x5ebdf9[_0x153e48(0x202)]-0x1,_0x4df563;_0x3e510e>=0x0;_0x3e510e--)(_0x4df563=_0x5ebdf9[_0x3e510e])&&(_0xda6632=_0x4df563(_0xda6632)||_0xda6632);return _0xda6632;},Ne=(_0x59ceb4,_0x4e5d80)=>(_0x50bdb2,_0x1252f8)=>_0x4e5d80(_0x50bdb2,_0x1252f8,_0x59ceb4);let Z=class{constructor(_0x1ecedc,_0x113bf1){const _0x339f4f=_0x56e0a9;this[_0x339f4f(0x263)]=_0x1ecedc,this['_transformService']=_0x113bf1;}[_0x56e0a9(0x3bc)](_0x4b6f68){const _0x6f810f=_0x56e0a9;var _0x2c7442;const _0x523e21=this[_0x6f810f(0x263)][_0x6f810f(0x31d)](Y[_0x6f810f(0x24b)]),_0x46a39e=(_0x2c7442=_0x523e21[_0x6f810f(0x23a)]())!=null?_0x2c7442:[];if(_0x46a39e[_0x6f810f(0x202)]===0x0)return;const _0x1a483a=_0x4b6f68['unitID'],_0x53521a=[{'id':_0x6f810f(0x1fc),'params':{'unitId':_0x1a483a,'actions':null,'textRanges':_0x46a39e}}],_0x2ae9c0=this['_transformService'][_0x6f810f(0x2ad)](_0x4b6f68,_0x53521a);if(!m[_0x6f810f(0x3f1)](_0x2ae9c0))throw _0x2ae9c0[_0x6f810f(0x2f3)];const _0x8443cb=_0x2ae9c0[_0x6f810f(0x1ab)][0x0]['params'][_0x6f810f(0x3e7)];Array['isArray'](_0x8443cb)&&_0x8443cb[_0x6f810f(0x202)]&&_0x523e21[_0x6f810f(0x1f0)](_0x8443cb,{'unitId':_0x1a483a,'subUnitId':_0x1a483a},!0x1);}};Z=Wt([Ne(0x0,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x1dd)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x56e0a9(0x2a6)],Xt=(_0x55460a,_0x4b3387,_0xee3939,_0x1c60bc)=>{const _0x48a855=_0x56e0a9;for(var _0x4cbad0=_0x1c60bc>0x1?void 0x0:_0x1c60bc?Vt(_0x4b3387,_0xee3939):_0x4b3387,_0x415a25=_0x55460a[_0x48a855(0x202)]-0x1,_0x433f46;_0x415a25>=0x0;_0x415a25--)(_0x433f46=_0x55460a[_0x415a25])&&(_0x4cbad0=_0x433f46(_0x4cbad0)||_0x4cbad0);return _0x4cbad0;},N=(_0x187bcb,_0x50f71a)=>(_0xdaa05a,_0x36a6f6)=>_0x50f71a(_0xdaa05a,_0x36a6f6,_0x187bcb);let Q=class extends a[_0x56e0a9(0x229)]{constructor(_0x324892,_0x40774a,_0x33faaf,_0x4468e7,_0x35d7bb,_0x3058e9,_0x47e0c9,_0xc14477){const _0x3bdd75=_0x56e0a9;super(),h(this,'_status$',new d[(_0x3bdd75(0x230))](u[_0x3bdd75(0x3ca)][_0x3bdd75(0x209)])),(this[_0x3bdd75(0x21d)]=_0x324892,this[_0x3bdd75(0x26f)]=_0x40774a,this['_docTransformIMECacheService']=_0x33faaf,this['_docTransformStateCacheService']=_0x4468e7,this[_0x3bdd75(0x40e)]=_0x35d7bb,this[_0x3bdd75(0x1b6)]=_0x3058e9,this[_0x3bdd75(0x1a0)]=_0x47e0c9,this[_0x3bdd75(0x1e5)]=_0xc14477,this[_0x3bdd75(0x340)]());}[_0x56e0a9(0x340)](){const _0x381833=_0x56e0a9;this[_0x381833(0x39f)](this['_collaborationController'][_0x381833(0x3ba)]['subscribe'](_0x1dc445=>{const _0x1ca001=_0x381833,_0x2869f6=this[_0x1ca001(0x21d)][_0x1ca001(0x3b7)][_0x1ca001(0x2b1)](_0xc3f945=>{const _0x255841=_0x1ca001;if(_0xc3f945==null)return;const {unitId:_0x708259,redoState:_0x69a560,commandId:_0x1eb4ed}=_0xc3f945;if(_0x708259!==_0x1dc445[_0x255841(0x1ea)])return;const _0xfa3995={'id':_0x1eb4ed,'type':a['CommandType'][_0x255841(0x321)],'params':{'unitId':_0x708259,'actions':_0x69a560['actions'],'textRanges':null}};_0x1dc445[_0x255841(0x33e)](_0xfa3995);});if(_0x1dc445[_0x1ca001(0x39f)](_0x2869f6),_0x1dc445 instanceof u[_0x1ca001(0x23b)]){const _0x4ef09c={'onTransformIME':_0x31e48c=>this[_0x1ca001(0x3cc)][_0x1ca001(0x296)](_0x31e48c),'onTransformState':_0x3ae0fe=>this[_0x1ca001(0x31e)]['transformStateCache'](_0x3ae0fe),'onTransformSelections':_0x30f9c4=>this[_0x1ca001(0x40e)][_0x1ca001(0x3bc)](_0x30f9c4),'onSyncEditingCollabCursor':_0x16039e=>this['_docSyncEditingCollabCursorService'][_0x1ca001(0x1b4)](_0x16039e),'onTransformRemoteChangesetByIMECache':_0x481ce3=>this[_0x1ca001(0x3cc)][_0x1ca001(0x255)](_0x481ce3),'onTransformRemoteChangesetByStateCache':_0x46d7f1=>this[_0x1ca001(0x31e)][_0x1ca001(0x255)](_0x46d7f1)};_0x1dc445[_0x1ca001(0x3d1)](_0x4ef09c);}}));}};Q=Xt([N(0x0,a[_0x56e0a9(0x39b)](E['DocStateChangeManagerService'])),N(0x1,a[_0x56e0a9(0x39b)](u[_0x56e0a9(0x394)])),N(0x2,a[_0x56e0a9(0x39b)](z)),N(0x3,a[_0x56e0a9(0x39b)](J)),N(0x4,a[_0x56e0a9(0x39b)](Z)),N(0x5,a['Inject'](pe)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x56e0a9(0x3ff)]))],Q);var Gt=Object[_0x56e0a9(0x2a6)],Kt=(_0x17506f,_0x2ee1a3,_0x4b8811,_0x1d1104)=>{const _0x331e90=_0x56e0a9;for(var _0x393111=_0x1d1104>0x1?void 0x0:_0x1d1104?Gt(_0x2ee1a3,_0x4b8811):_0x2ee1a3,_0x5564b1=_0x17506f[_0x331e90(0x202)]-0x1,_0x389476;_0x5564b1>=0x0;_0x5564b1--)(_0x389476=_0x17506f[_0x5564b1])&&(_0x393111=_0x389476(_0x393111)||_0x393111);return _0x393111;},le=(_0x34d74b,_0x50fd00)=>(_0x3a641,_0x122619)=>_0x50fd00(_0x3a641,_0x122619,_0x34d74b);let ve=class extends a[_0x56e0a9(0x229)]{constructor(_0x567f14,_0xa5baa9,_0x3e5f3d){const _0xeb78cc=_0x56e0a9;super(),h(this,_0xeb78cc(0x2a3),new Map()),h(this,_0xeb78cc(0x361),new Map()),h(this,_0xeb78cc(0x1a3),!0x1),(this[_0xeb78cc(0x35a)]=_0x567f14,this[_0xeb78cc(0x38b)]=_0xa5baa9,this[_0xeb78cc(0x40a)]=_0x3e5f3d);}['disableLocalCache'](){const _0x1c069c=_0x56e0a9;this[_0x1c069c(0x1a3)]=!0x0;}[_0x56e0a9(0x3e8)](){this['_disabled']=!0x1;}get[_0x56e0a9(0x399)](){const _0x2622f6=_0x56e0a9;return this[_0x2622f6(0x361)];}[_0x56e0a9(0x1d5)](){const _0x50be08=_0x56e0a9;this[_0x50be08(0x3a1)]()[_0x50be08(0x1f2)](()=>super[_0x50be08(0x1d5)]());}async['loadOfflineData'](_0xdbb787){const _0x977357=_0x56e0a9;return this[_0x977357(0x1a3)]?null:this[_0x977357(0x38b)][_0x977357(0x24d)](u[_0x977357(0x221)](_0xdbb787));}async[_0x56e0a9(0x2c8)](_0x2862de,_0x51c508){const _0x1ea52b=_0x56e0a9;return!!this[_0x1ea52b(0x38b)][_0x1ea52b(0x3c0)](_0x2862de,_0x51c508);}[_0x56e0a9(0x1d0)](_0x1f9dca,_0x3d317c,_0x43cbcf,_0x3bd5ea){const _0x382b57=_0x56e0a9,_0xd386e5=this[_0x382b57(0x40a)][_0x382b57(0x1dc)](_0x1f9dca);this['_cachedData']['set'](_0x1f9dca,{'unitID':_0x1f9dca,'type':_0x3d317c,'awaitingChangeset':_0x43cbcf,'mutations':_0x3bd5ea,'rev':_0xd386e5}),this[_0x382b57(0x361)][_0x382b57(0x1e0)](_0x1f9dca)||this[_0x382b57(0x393)](_0x1f9dca);}[_0x56e0a9(0x393)](_0x4d2935){const _0xd5a970=_0x56e0a9,_0x4ce278=this[_0xd5a970(0x1df)]();_0x4ce278===0x0?this[_0xd5a970(0x272)](_0x4d2935):this[_0xd5a970(0x361)]['set'](_0x4d2935,setTimeout(()=>this[_0xd5a970(0x272)](_0x4d2935),_0x4ce278));}['_getSaveTimeout'](){const _0xde431=_0x56e0a9;var _0x4cd0fd;return(_0x4cd0fd=this[_0xde431(0x35a)][_0xde431(0x395)](u[_0xde431(0x251)]))!=null?_0x4cd0fd:u[_0xde431(0x3bb)];}[_0x56e0a9(0x272)](_0x20f544){const _0x10a53a=_0x56e0a9,_0x4f981a=this[_0x10a53a(0x361)][_0x10a53a(0x31d)](_0x20f544);return _0x4f981a!==void 0x0&&window[_0x10a53a(0x33f)](_0x4f981a),this[_0x10a53a(0x38b)][_0x10a53a(0x3c0)](u[_0x10a53a(0x221)](_0x20f544),this[_0x10a53a(0x2a3)][_0x10a53a(0x31d)](_0x20f544))[_0x10a53a(0x1f2)](()=>this['_saveTaskMap'][_0x10a53a(0x32f)](_0x20f544));}async[_0x56e0a9(0x3a1)](){const _0x3d16dc=_0x56e0a9,_0x3dc84e=[];this[_0x3d16dc(0x361)]['forEach']((_0x29c918,_0x465383)=>{const _0x1c21a5=_0x3d16dc;window[_0x1c21a5(0x33f)](_0x29c918),_0x3dc84e['push'](this[_0x1c21a5(0x272)](_0x465383)[_0x1c21a5(0x1f2)](()=>{const _0x298d1f=_0x1c21a5;this[_0x298d1f(0x361)][_0x298d1f(0x32f)](_0x465383);}));}),await Promise[_0x3d16dc(0x27d)](_0x3dc84e);}};ve=Kt([le(0x0,a['IConfigService']),le(0x1,a['ILocalStorageService']),le(0x2,a[_0x56e0a9(0x39b)](m[_0x56e0a9(0x24c)]))],ve);class xe extends a['RxDisposable']{constructor(){const _0x455d54=_0x56e0a9;super(),h(this,_0x455d54(0x222)),this[_0x455d54(0x222)]=d[_0x455d54(0x246)](window,_0x455d54(0x1b9))['pipe'](d[_0x455d54(0x1d4)](this[_0x455d54(0x2ab)]),d[_0x455d54(0x360)](0x1),d[_0x455d54(0x225)](void 0x0));}[_0x56e0a9(0x3b1)](_0xd64637,_0x1231dc,_0x510022=!0x1){const _0x110bad=_0x56e0a9,_0x272d0d=new URL(window['location']['href']);_0x272d0d[_0x110bad(0x37a)]['set'](_0xd64637,_0x1231dc),_0x510022?window[_0x110bad(0x37d)][_0x110bad(0x2d5)]('','',_0x272d0d['toString']()):window['history'][_0x110bad(0x407)]('','',_0x272d0d[_0x110bad(0x3c3)]());}['removeParam'](_0x564c7a,_0x360331=!0x1){const _0x330462=_0x56e0a9,_0x39161b=new URL(window[_0x330462(0x2d2)]['href']);_0x39161b['searchParams'][_0x330462(0x32f)](_0x564c7a),_0x360331?window[_0x330462(0x37d)]['replaceState']('','',_0x39161b['toString']()):window[_0x330462(0x37d)][_0x330462(0x407)]('','',_0x39161b[_0x330462(0x3c3)]());}[_0x56e0a9(0x365)](_0x512987){const _0x139a02=_0x56e0a9;var _0xb011b3;return(_0xb011b3=new URL(window[_0x139a02(0x2d2)][_0x139a02(0x3a8)])[_0x139a02(0x37a)][_0x139a02(0x31d)](_0x512987))!=null?_0xb011b3:void 0x0;}}var qt=Object[_0x56e0a9(0x35c)],zt=Object[_0x56e0a9(0x2a6)],Jt=(_0x2d3163,_0x4b3aac,_0x383fb2)=>_0x4b3aac in _0x2d3163?qt(_0x2d3163,_0x4b3aac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x383fb2}):_0x2d3163[_0x4b3aac]=_0x383fb2,Zt=(_0xbcde48,_0x1682a0,_0x11ef75,_0x4d6013)=>{const _0x51f1f8=_0x56e0a9;for(var _0x1bb3e5=_0x4d6013>0x1?void 0x0:_0x4d6013?zt(_0x1682a0,_0x11ef75):_0x1682a0,_0x3d8a4b=_0xbcde48[_0x51f1f8(0x202)]-0x1,_0x5a8dee;_0x3d8a4b>=0x0;_0x3d8a4b--)(_0x5a8dee=_0xbcde48[_0x3d8a4b])&&(_0x1bb3e5=_0x5a8dee(_0x1bb3e5)||_0x1bb3e5);return _0x1bb3e5;},_e=(_0x160fe9,_0x268914)=>(_0x308088,_0x49fce3)=>_0x268914(_0x308088,_0x49fce3,_0x160fe9),Qt=(_0x19300b,_0x19f2eb,_0x2c768c)=>Jt(_0x19300b,_0x19f2eb+'',_0x2c768c);const es=_0x56e0a9(0x333);exports[_0x56e0a9(0x3a7)]=class extends a['Plugin']{constructor(_0x11657c=De,_0x370ed6,_0x2aa569,_0x5d8009){const _0x3b4b5f=_0x56e0a9;super(),this[_0x3b4b5f(0x2ce)]=_0x11657c,this[_0x3b4b5f(0x1ec)]=_0x370ed6,this[_0x3b4b5f(0x263)]=_0x2aa569,this[_0x3b4b5f(0x35a)]=_0x5d8009;const {..._0x217b97}=a['merge']({},De,this[_0x3b4b5f(0x2ce)]);this[_0x3b4b5f(0x35a)][_0x3b4b5f(0x34b)](Bt,_0x217b97);}[_0x56e0a9(0x313)](){const _0x3bd445=_0x56e0a9;this['_registerDependencies'](),this[_0x3bd445(0x3bf)]();}[_0x56e0a9(0x1fa)](){const _0x236f1c=_0x56e0a9;this[_0x236f1c(0x324)]();}[_0x56e0a9(0x3eb)](){const _0x45eac0=_0x56e0a9;var _0x2ea788;const _0x570b07=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K['ISocketService'],{'useClass':K[_0x45eac0(0x25a)]}],[u[_0x45eac0(0x1c0)],{'useClass':ve}],[exports[_0x45eac0(0x31f)]],[Q],[q],[x],[ue],[exports[_0x45eac0(0x304)]]];a[_0x45eac0(0x335)](this['_injector'],a[_0x45eac0(0x346)](_0x570b07,(_0x2ea788=this['_config'])==null?void 0x0:_0x2ea788[_0x45eac0(0x3cf)]));}['_registerRenderDependencies'](){const _0x2695b8=_0x56e0a9;this['disposeWithMe'](this['_renderManagerService'][_0x2695b8(0x1eb)](a['UniverInstanceType'][_0x2695b8(0x3fe)],[fe])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x2695b8(0x295)][_0x2695b8(0x38e)],[Ie]));}[_0x56e0a9(0x3bf)](){const _0x4fb987=_0x56e0a9;a['touchDependencies'](this[_0x4fb987(0x263)],[[x],[exports[_0x4fb987(0x31f)]],[Q],[q],[exports[_0x4fb987(0x304)]]]);}},Qt(exports[_0x56e0a9(0x3a7)],_0x56e0a9(0x3b3),es),exports[_0x56e0a9(0x3a7)]=Zt([a[_0x56e0a9(0x27e)](u[_0x56e0a9(0x35e)]),_e(0x1,p['IRenderManagerService']),_e(0x2,a['Inject'](a[_0x56e0a9(0x1dd)])),_e(0x3,a['IConfigService'])],exports[_0x56e0a9(0x3a7)]);var ts=Object[_0x56e0a9(0x2a6)],ss=(_0x54790b,_0x46c6ea,_0x146a2e,_0x4f7d40)=>{const _0x3d3791=_0x56e0a9;for(var _0xb5706e=_0x4f7d40>0x1?void 0x0:_0x4f7d40?ts(_0x46c6ea,_0x146a2e):_0x46c6ea,_0x2a4e0f=_0x54790b[_0x3d3791(0x202)]-0x1,_0x412728;_0x2a4e0f>=0x0;_0x2a4e0f--)(_0x412728=_0x54790b[_0x2a4e0f])&&(_0xb5706e=_0x412728(_0xb5706e)||_0xb5706e);return _0xb5706e;},H=(_0x42a010,_0x232000)=>(_0x50d35e,_0x35fbcb)=>_0x232000(_0x50d35e,_0x35fbcb,_0x42a010);exports[_0x56e0a9(0x2db)]=class extends u[_0x56e0a9(0x3ce)]{constructor(_0x56af95,_0x46fb09,_0x316fc6,_0x4eb1c7,_0x36143e){super(_0x56af95,_0x46fb09,_0x316fc6,_0x4eb1c7,_0x36143e);}async[_0x56e0a9(0x199)](_0x4f47c6){const _0x447b03=_0x56e0a9,_0x3231aa=await this[_0x447b03(0x26b)](),_0x5edbf7=this[_0x447b03(0x217)](_0x4f47c6,_0x3231aa);return this[_0x447b03(0x3cd)](_0x5edbf7);}[_0x56e0a9(0x217)](_0x1beb29,_0x1aa4d9){const _0x4a4956=_0x56e0a9,_0x3c55f4=typeof window>'u'?new URL(_0x1beb29):new URL(_0x1beb29,window[_0x4a4956(0x2d2)]['origin']);_0x3c55f4[_0x4a4956(0x37a)][_0x4a4956(0x39e)](_0x4a4956(0x401),_0x1aa4d9);const _0x4d6892=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x4d6892[_0x4a4956(0x31d)](_0x4a4956(0x21f))&&_0x3c55f4[_0x4a4956(0x37a)]['set'](_0x4a4956(0x21f),_0x4d6892[_0x4a4956(0x31d)](_0x4a4956(0x21f))),_0x3c55f4['toString']();}async[_0x56e0a9(0x26b)](){const _0x992b0b=_0x56e0a9;var _0xad26f1,_0x3224af,_0x31dbbf;const _0x4ba94c=this[_0x992b0b(0x35a)][_0x992b0b(0x395)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x2f05d3=(_0xad26f1=_0x4ba94c==null?void 0x0:_0x4ba94c[_0x992b0b(0x23e)])!=null?_0xad26f1:u[_0x992b0b(0x1e3)];return(_0x31dbbf=(_0x3224af=(await this[_0x992b0b(0x27a)][_0x992b0b(0x31d)](_0x2f05d3,{'headers':{'Content-Type':'application/json'}}))[_0x992b0b(0x245)])==null?void 0x0:_0x3224af[_0x992b0b(0x2c2)])!=null?_0x31dbbf:'';}},exports[_0x56e0a9(0x2db)]=ss([H(0x0,a[_0x56e0a9(0x39b)](a[_0x56e0a9(0x1dd)])),H(0x1,a[_0x56e0a9(0x39b)](K['HTTPService'])),H(0x2,a['IConfigService']),H(0x3,a[_0x56e0a9(0x215)]),H(0x4,m['ISnapshotServerService'])],exports[_0x56e0a9(0x2db)]);var Be=(_0x437925=>(_0x437925[_0x437925[_0x56e0a9(0x3ec)]=0x0]='UNDEFINED',_0x437925[_0x437925['OK']=0x1]='OK',_0x437925[_0x437925[_0x56e0a9(0x2cc)]=0x2]='INTERNAL_ERROR',_0x437925[_0x437925['PERMISSION_DENIED']=0x3]=_0x56e0a9(0x3b9),_0x437925[_0x437925[_0x56e0a9(0x249)]=0x4]=_0x56e0a9(0x249),_0x437925[_0x437925[_0x56e0a9(0x39a)]=0x5]='UNAUTHENTICATED',_0x437925[_0x437925['ALREADY_EXISTS']=0x6]=_0x56e0a9(0x36a),_0x437925[_0x437925[_0x56e0a9(0x269)]=0x7]='INVALID_ARGUMENT',_0x437925[_0x437925['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x437925[_0x437925[_0x56e0a9(0x2e7)]=0x9]=_0x56e0a9(0x2e7),_0x437925[_0x437925[_0x56e0a9(0x223)]=0xa]=_0x56e0a9(0x223),_0x437925[_0x437925[_0x56e0a9(0x326)]=0xb]=_0x56e0a9(0x326),_0x437925[_0x437925[_0x56e0a9(0x264)]=0xc]=_0x56e0a9(0x264),_0x437925[_0x437925[_0x56e0a9(0x1e1)]=0xd]=_0x56e0a9(0x1e1),_0x437925[_0x437925[_0x56e0a9(0x2bd)]=0xe]=_0x56e0a9(0x2bd),_0x437925[_0x437925['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x56e0a9(0x257),_0x437925[_0x437925['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x56e0a9(0x1c9),_0x437925[_0x437925['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x56e0a9(0x3c7),_0x437925[_0x437925['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x56e0a9(0x358),_0x437925[_0x437925['APPLY_REJECT']=0x1b59]=_0x56e0a9(0x266),_0x437925[_0x437925[_0x56e0a9(0x37c)]=0x1b5a]=_0x56e0a9(0x37c),_0x437925[_0x437925[_0x56e0a9(0x235)]=0x1b5b]=_0x56e0a9(0x235),_0x437925[_0x437925['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x56e0a9(0x3d2),_0x437925[_0x437925['APPLY_DUPLICATED']=0x1b5d]=_0x56e0a9(0x20c),_0x437925[_0x437925[_0x56e0a9(0x29a)]=0x1f41]=_0x56e0a9(0x29a),_0x437925[_0x437925[_0x56e0a9(0x1a1)]=0x2329]=_0x56e0a9(0x1a1),_0x437925[_0x437925['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x56e0a9(0x19d),_0x437925[_0x437925[_0x56e0a9(0x30c)]=0x232b]=_0x56e0a9(0x30c),_0x437925[_0x437925[_0x56e0a9(0x3b2)]=0x232c]=_0x56e0a9(0x3b2),_0x437925[_0x437925['LICENSE_DISTRO_REJECTED']=0x232d]=_0x56e0a9(0x39d),_0x437925[_0x437925[_0x56e0a9(0x3fd)]=0x2711]=_0x56e0a9(0x3fd),_0x437925[_0x437925[_0x56e0a9(0x25b)]=0x2712]=_0x56e0a9(0x25b),_0x437925[_0x437925[_0x56e0a9(0x2a4)]=0x2713]=_0x56e0a9(0x2a4),_0x437925[_0x437925[_0x56e0a9(0x341)]=0x2714]=_0x56e0a9(0x341),_0x437925[_0x437925['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x437925[_0x437925['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x437925[_0x437925[_0x56e0a9(0x207)]=0x271c]=_0x56e0a9(0x207),_0x437925[_0x437925[_0x56e0a9(0x2de)]=0x271d]=_0x56e0a9(0x2de),_0x437925[_0x437925[_0x56e0a9(0x198)]=0x271e]=_0x56e0a9(0x198),_0x437925[_0x437925['YUUMI_AI_RUN_FAILED']=0x271f]=_0x56e0a9(0x233),_0x437925[_0x437925[_0x56e0a9(0x1b7)]=0x2720]=_0x56e0a9(0x1b7),_0x437925[_0x437925[_0x56e0a9(0x2a8)]=0x2af9]=_0x56e0a9(0x2a8),_0x437925[_0x437925[_0x56e0a9(0x2d9)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x437925[_0x437925[_0x56e0a9(0x30a)]=0x2ee2]=_0x56e0a9(0x30a),_0x437925[_0x437925[_0x56e0a9(0x392)]=0x2ee3]=_0x56e0a9(0x392),_0x437925[_0x437925[_0x56e0a9(0x289)]=0x2ee4]=_0x56e0a9(0x289),_0x437925[_0x437925[_0x56e0a9(0x3d0)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x437925[_0x437925['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x56e0a9(0x3f9),_0x437925[_0x437925[_0x56e0a9(0x224)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x437925[_0x437925[_0x56e0a9(0x396)]=0x32cb]=_0x56e0a9(0x396),_0x437925[_0x437925[_0x56e0a9(0x342)]=-0x1]=_0x56e0a9(0x342),_0x437925))(Be||{}),is=Object['getOwnPropertyDescriptor'],ns=(_0x5ec17e,_0x9fb59a,_0x3c2cb3,_0x52e903)=>{const _0x228061=_0x56e0a9;for(var _0x16598a=_0x52e903>0x1?void 0x0:_0x52e903?is(_0x9fb59a,_0x3c2cb3):_0x9fb59a,_0x4ccfb2=_0x5ec17e[_0x228061(0x202)]-0x1,_0x156516;_0x4ccfb2>=0x0;_0x4ccfb2--)(_0x156516=_0x5ec17e[_0x4ccfb2])&&(_0x16598a=_0x156516(_0x16598a)||_0x16598a);return _0x16598a;},he=(_0x256bcc,_0x4fbd82)=>(_0x24328a,_0x5d0177)=>_0x4fbd82(_0x24328a,_0x5d0177,_0x256bcc);exports['RemoteUniscriptService']=class extends a[_0x56e0a9(0x229)]{constructor(_0x2d4311,_0x4cd05d,_0x40bf55){const _0x18b451=_0x56e0a9;super(),this[_0x18b451(0x1f5)]=_0x2d4311,this['_httpService']=_0x4cd05d,this[_0x18b451(0x35a)]=_0x40bf55;}async[_0x56e0a9(0x369)](_0x10bb89,_0x59151b,_0x55800c,..._0x58c1de){const _0x46ac79=_0x56e0a9;var _0x1fb627,_0x533f38,_0x47e4ab,_0x525750;const _0x52223c=this[_0x46ac79(0x1f5)][_0x46ac79(0x345)]();if(!_0x52223c)throw new Error(_0x46ac79(0x3ed));const _0x1359f6=((_0x1fb627=this[_0x46ac79(0x35a)][_0x46ac79(0x395)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x1fb627:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x10bb89+_0x46ac79(0x21b)+_0x59151b,_0x48c90f=new URL(window['location']['href']),_0x51f2df={'scriptId':_0x10bb89,'runId':(_0x533f38=_0x48c90f[_0x46ac79(0x37a)]['get'](_0x46ac79(0x21f)))!=null?_0x533f38:'','function':_0x59151b,'unitId':_0x52223c[_0x46ac79(0x2b0)](),'argsOfFunction':JSON['stringify'](_0x58c1de),'invokeId':(_0x47e4ab=_0x55800c[_0x46ac79(0x33a)])!=null?_0x47e4ab:'','executionId':(_0x525750=_0x55800c[_0x46ac79(0x2bb)])!=null?_0x525750:''};try{const _0x5c6998=await this[_0x46ac79(0x27a)][_0x46ac79(0x325)](_0x1359f6,{'body':_0x51f2df});return _0x5c6998['body']['error']&&_0x5c6998[_0x46ac79(0x245)][_0x46ac79(0x2f3)][_0x46ac79(0x2dc)]!==Be['OK']?_0x46ac79(0x372):_0x5c6998[_0x46ac79(0x245)][_0x46ac79(0x270)];}catch{return _0x46ac79(0x372);}}},exports[_0x56e0a9(0x3d5)]=ns([he(0x0,a['IUniverInstanceService']),he(0x1,a[_0x56e0a9(0x39b)](K[_0x56e0a9(0x2f9)])),he(0x2,a[_0x56e0a9(0x2e0)])],exports[_0x56e0a9(0x3d5)]);const Me=0x7530,Le=_0x56e0a9(0x347);class rs extends a[_0x56e0a9(0x229)]{constructor(){const _0x26a3a9=_0x56e0a9;super(),h(this,_0x26a3a9(0x3e4),a[_0x26a3a9(0x2a0)]()),h(this,_0x26a3a9(0x19e),new Set()),h(this,_0x26a3a9(0x1a4),new Map()),h(this,'_heartbeatTimer',null),h(this,_0x26a3a9(0x35f),new Map()),h(this,_0x26a3a9(0x310),new Map()),this[_0x26a3a9(0x2dd)]();}['dispose'](){const _0x58ebee=_0x56e0a9;super['dispose'](),this[_0x58ebee(0x35f)][_0x58ebee(0x302)]((_0x1d932f,_0x2f0936)=>this[_0x58ebee(0x2e8)](_0x2f0936)),this[_0x58ebee(0x25f)]&&window[_0x58ebee(0x1f6)](this['_heartbeatTimer']);}[_0x56e0a9(0x343)](_0x12799e){const _0x595f61=_0x56e0a9;return this[_0x595f61(0x371)](_0x12799e)[_0x595f61(0x2d7)](d[_0x595f61(0x286)]());}[_0x56e0a9(0x239)](_0x17844f){const _0x14b021=_0x56e0a9;this[_0x14b021(0x19e)][_0x14b021(0x283)]===0x0&&this[_0x14b021(0x2cf)](),this[_0x14b021(0x19e)][_0x14b021(0x247)](_0x17844f),this[_0x14b021(0x2f6)]({'type':0x0,'memberID':this[_0x14b021(0x3e4)],'unitIDs':[_0x17844f],'isForwarded':!0x1});}[_0x56e0a9(0x3ac)](_0x1fa1ca){const _0x482ec8=_0x56e0a9;this[_0x482ec8(0x19e)][_0x482ec8(0x32f)](_0x1fa1ca),this[_0x482ec8(0x19e)]['size']===0x0&&this[_0x482ec8(0x25f)]&&window[_0x482ec8(0x1f6)](this['_heartbeatTimer']);}[_0x56e0a9(0x2dd)](){const _0x5dfb34=_0x56e0a9;this['disposeWithMe'](a[_0x5dfb34(0x3b8)](d[_0x5dfb34(0x246)](window,_0x5dfb34(0x19b))[_0x5dfb34(0x2b1)](_0x2cb24f=>{const _0x8b3114=_0x5dfb34;if(_0x2cb24f[_0x8b3114(0x3a9)]!==Le||!_0x2cb24f[_0x8b3114(0x1b0)])return;const _0x300578=JSON[_0x8b3114(0x1cb)](_0x2cb24f[_0x8b3114(0x1b0)]);this[_0x8b3114(0x2da)](_0x300578);}))),window['addEventListener'](_0x5dfb34(0x403),()=>this[_0x5dfb34(0x2f6)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x5dfb34(0x3e5)](this[_0x5dfb34(0x19e)])}));}[_0x56e0a9(0x2da)](_0xa36c2c){const _0x4d1a4d=_0x56e0a9;switch(_0xa36c2c[_0x4d1a4d(0x305)]){case 0x0:this['_handleJoinEvent'](_0xa36c2c);break;case 0x1:this[_0x4d1a4d(0x285)](_0xa36c2c);break;case 0x2:this[_0x4d1a4d(0x3cb)](_0xa36c2c);break;}}['_handleJoinEvent'](_0x395ed7){const _0x2a95d8=_0x56e0a9,{unitIDs:_0x5958d7,memberID:_0x2dcc86,isForwarded:_0xad05a8}=_0x395ed7;_0x5958d7[_0x2a95d8(0x302)](_0x32b551=>{const _0x427498=_0x2a95d8;if(!_0xad05a8&&this['_unitOnClients'][_0x427498(0x1e0)](_0x32b551)&&this[_0x427498(0x371)](_0x32b551)[_0x427498(0x33d)](u[_0x427498(0x2c6)]['OTHER_CLIENTS_EDITING']),!this[_0x427498(0x1a4)][_0x427498(0x1e0)](_0x32b551)||!this[_0x427498(0x1a4)][_0x427498(0x31d)](_0x32b551)[_0x427498(0x1e0)](_0x2dcc86)){const _0x2c55e1=this['_unitOnClients'][_0x427498(0x31d)](_0x32b551)||new Set();_0x2c55e1[_0x427498(0x247)](_0x2dcc86),this[_0x427498(0x1a4)][_0x427498(0x39e)](_0x32b551,_0x2c55e1),this[_0x427498(0x211)](_0x2dcc86);}}),_0xad05a8||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2a95d8(0x19e)]],'isForwarded':!0x0});}[_0x56e0a9(0x211)](_0x50ccbb){const _0x22fc1b=_0x56e0a9;this['_removeClearOtherTimer'](_0x50ccbb);const _0x58105e=window[_0x22fc1b(0x271)](()=>{const _0x47f67f=_0x22fc1b;this['_unitOnClients'][_0x47f67f(0x302)](_0x467643=>{const _0x39b2e0=_0x47f67f;_0x467643[_0x39b2e0(0x32f)](_0x50ccbb);});},Me*0x2);this[_0x22fc1b(0x35f)][_0x22fc1b(0x39e)](_0x50ccbb,_0x58105e);}[_0x56e0a9(0x2e8)](_0x3a248f){const _0x58f2ea=_0x56e0a9;if(this[_0x58f2ea(0x35f)][_0x58f2ea(0x1e0)](_0x3a248f)){const _0x417f71=this['_clearOtherTimers']['get'](_0x3a248f);_0x417f71&&window[_0x58f2ea(0x33f)](_0x417f71),this[_0x58f2ea(0x35f)][_0x58f2ea(0x39e)](_0x3a248f,null);}}['_handleLeaveEvent'](_0x5fe7d4){const _0x164a98=_0x56e0a9,{memberID:_0xb1c23a,unitIDs:_0x5a4b34}=_0x5fe7d4;_0x5a4b34[_0x164a98(0x302)](_0x21ea46=>{const _0x13f677=_0x164a98;var _0xe88e12;const _0x50844a=this[_0x13f677(0x1a4)][_0x13f677(0x31d)](_0x21ea46);_0x50844a&&(_0x50844a[_0x13f677(0x32f)](_0xb1c23a),(_0xe88e12=this[_0x13f677(0x371)](_0x21ea46))==null||_0xe88e12['next'](_0x50844a[_0x13f677(0x283)]===0x0?u[_0x13f677(0x2c6)][_0x13f677(0x27b)]:u[_0x13f677(0x2c6)][_0x13f677(0x1e8)]));}),this[_0x164a98(0x2e8)](_0xb1c23a);}[_0x56e0a9(0x3cb)](_0x4cadc1){const _0x3f8324=_0x56e0a9;this[_0x3f8324(0x211)](_0x4cadc1['memberID']);}['_send'](_0x443afd){const _0x1f82d6=_0x56e0a9;localStorage[_0x1f82d6(0x3c0)](Le,JSON['stringify'](_0x443afd));}[_0x56e0a9(0x2cf)](){const _0x49b80c=_0x56e0a9;this[_0x49b80c(0x25f)]=window[_0x49b80c(0x3da)](()=>{const _0x2e3a6e=_0x49b80c;this[_0x2e3a6e(0x2f6)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x2bd3ae){const _0x3c4e19=_0x56e0a9;return this['_unitStatus'][_0x3c4e19(0x1e0)](_0x2bd3ae)||this[_0x3c4e19(0x310)][_0x3c4e19(0x39e)](_0x2bd3ae,new d[(_0x3c4e19(0x230))](u[_0x3c4e19(0x2c6)][_0x3c4e19(0x27b)])),this[_0x3c4e19(0x310)]['get'](_0x2bd3ae);}}exports[_0x56e0a9(0x1f3)]=me,exports[_0x56e0a9(0x376)]=$e,exports[_0x56e0a9(0x387)]=rs,exports['WebURLService']=xe;
1
+ 'use strict';const _0x42373d=_0x45b0;(function(_0x52bc97,_0x655842){const _0x100eb7=_0x45b0,_0x410da5=_0x52bc97();while(!![]){try{const _0x5527dd=-parseInt(_0x100eb7(0x1e5))/0x1+-parseInt(_0x100eb7(0x1e8))/0x2+parseInt(_0x100eb7(0x229))/0x3*(-parseInt(_0x100eb7(0x242))/0x4)+parseInt(_0x100eb7(0x107))/0x5*(-parseInt(_0x100eb7(0x26b))/0x6)+parseInt(_0x100eb7(0x25d))/0x7+parseInt(_0x100eb7(0x228))/0x8*(parseInt(_0x100eb7(0x1fd))/0x9)+parseInt(_0x100eb7(0x109))/0xa;if(_0x5527dd===_0x655842)break;else _0x410da5['push'](_0x410da5['shift']());}catch(_0xb87070){_0x410da5['push'](_0x410da5['shift']());}}}(_0x5ac0,0x65d82));var We=Object[_0x42373d(0x172)],Ve=(_0x149b3e,_0x2aa582,_0x1bf02a)=>_0x2aa582 in _0x149b3e?We(_0x149b3e,_0x2aa582,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bf02a}):_0x149b3e[_0x2aa582]=_0x1bf02a,h=(_0x4035c1,_0x4827a1,_0x330e8c)=>Ve(_0x4035c1,typeof _0x4827a1!=_0x42373d(0x222)?_0x4827a1+'':_0x4827a1,_0x330e8c);Object[_0x42373d(0x172)](exports,Symbol[_0x42373d(0x20f)],{'value':_0x42373d(0x15c)});const P=require('react/jsx-runtime'),u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),O=require('@univerjs/ui'),d=require('rxjs'),D=require('@univerjs/design'),M=require('react'),Xe=require('@univerjs/rpc'),g=require('@univerjs/sheets'),p=require('@univerjs/engine-render'),K=require('@univerjs/network'),E=require('@univerjs/docs-ui'),Ge=require('@univerjs/drawing'),m=require('@univerjs-pro/collaboration'),Y=require('@univerjs/docs'),Ee=require('@univerjs/engine-formula'),$=require('rxjs/operators'),G=require('@univerjs/sheets-ui');var b=function(){const _0x35e7ec=_0x42373d;return b=Object[_0x35e7ec(0x321)]||function(_0x28e177){const _0x56c402=_0x35e7ec;for(var _0x1699ed,_0xf74295=0x1,_0x4277c8=arguments[_0x56c402(0x345)];_0xf74295<_0x4277c8;_0xf74295++){_0x1699ed=arguments[_0xf74295];for(var _0x42b586 in _0x1699ed)Object[_0x56c402(0x14d)]['hasOwnProperty'][_0x56c402(0x237)](_0x1699ed,_0x42b586)&&(_0x28e177[_0x42b586]=_0x1699ed[_0x42b586]);}return _0x28e177;},b[_0x35e7ec(0x26d)](this,arguments);},Ke=function(_0x4a7eae,_0x27bbfb){const _0x8a89e9=_0x42373d;var _0x58be6e={};for(var _0x28d3ce in _0x4a7eae)Object['prototype'][_0x8a89e9(0x17a)][_0x8a89e9(0x237)](_0x4a7eae,_0x28d3ce)&&_0x27bbfb[_0x8a89e9(0x1e7)](_0x28d3ce)<0x0&&(_0x58be6e[_0x28d3ce]=_0x4a7eae[_0x28d3ce]);if(_0x4a7eae!=null&&typeof Object[_0x8a89e9(0x178)]=='function'){for(var _0x4bf042=0x0,_0x28d3ce=Object[_0x8a89e9(0x178)](_0x4a7eae);_0x4bf042<_0x28d3ce[_0x8a89e9(0x345)];_0x4bf042++)_0x27bbfb[_0x8a89e9(0x1e7)](_0x28d3ce[_0x4bf042])<0x0&&Object[_0x8a89e9(0x14d)][_0x8a89e9(0x32b)][_0x8a89e9(0x237)](_0x4a7eae,_0x28d3ce[_0x4bf042])&&(_0x58be6e[_0x28d3ce[_0x4bf042]]=_0x4a7eae[_0x28d3ce[_0x4bf042]]);}return _0x58be6e;},ge=M[_0x42373d(0x2b5)](function(_0xa6caab,_0x1b2c2b){const _0x3d4a39=_0x42373d;var _0x33689c=_0xa6caab[_0x3d4a39(0x2dc)],_0x375c6c=_0xa6caab['id'],_0x41a5da=_0xa6caab[_0x3d4a39(0x29b)],_0x131dc0=_0xa6caab['extend'],_0x28c96c=Ke(_0xa6caab,[_0x3d4a39(0x2dc),'id',_0x3d4a39(0x29b),_0x3d4a39(0x10e)]),_0x48b70d=_0x3d4a39(0x35a)['concat'](_0x375c6c,'\x20')[_0x3d4a39(0x2ca)](_0x41a5da||'')[_0x3d4a39(0x276)](),_0x2a2a3e=M[_0x3d4a39(0x164)]('_'[_0x3d4a39(0x2ca)](Je()));return Pe(_0x33689c,''['concat'](_0x375c6c),{'defIds':_0x33689c['defIds'],'idSuffix':_0x2a2a3e[_0x3d4a39(0x1b8)]},b({'ref':_0x1b2c2b,'className':_0x48b70d},_0x28c96c),_0x131dc0);});function Pe(_0x410e10,_0x336cb6,_0x57d2ef,_0x440383,_0xa18eb5){const _0x33eeae=_0x42373d;return M[_0x33eeae(0x279)](_0x410e10[_0x33eeae(0x20b)],b(b({'key':_0x336cb6},qe(_0x410e10,_0x57d2ef,_0xa18eb5)),_0x440383),(ze(_0x410e10,_0x57d2ef)[_0x33eeae(0x133)]||[])['map'](function(_0x1405c0,_0x5ed082){const _0x30ad7f=_0x33eeae;return Pe(_0x1405c0,''[_0x30ad7f(0x2ca)](_0x336cb6,'-')['concat'](_0x410e10[_0x30ad7f(0x20b)],'-')[_0x30ad7f(0x2ca)](_0x5ed082),_0x57d2ef,void 0x0,_0xa18eb5);}));}function qe(_0x5f0fd0,_0x52ecf4,_0x1fb6da){const _0x1a28f0=_0x42373d;var _0x110d25=b({},_0x5f0fd0[_0x1a28f0(0x335)]);_0x1fb6da!=null&&_0x1fb6da['colorChannel1']&&_0x110d25[_0x1a28f0(0x194)]===_0x1a28f0(0x2d0)&&(_0x110d25['fill']=_0x1fb6da[_0x1a28f0(0x2d0)]),_0x5f0fd0[_0x1a28f0(0x20b)]===_0x1a28f0(0x2f6)&&_0x110d25['id']&&(_0x110d25['id']=_0x110d25['id']+_0x52ecf4['idSuffix']),Object[_0x1a28f0(0x1f4)](_0x110d25)[_0x1a28f0(0x21a)](function(_0x3a52d7){const _0x5f0d46=_0x1a28f0;var _0x3c5d44=_0x3a52d7[0x0],_0x5290a7=_0x3a52d7[0x1];_0x3c5d44===_0x5f0d46(0x2f6)&&typeof _0x5290a7=='string'&&(_0x110d25[_0x3c5d44]=_0x5290a7[_0x5f0d46(0x1f7)](/url\(#(.*)\)/,_0x5f0d46(0x374)[_0x5f0d46(0x2ca)](_0x52ecf4[_0x5f0d46(0x2d6)],')')));});var _0x365ade=_0x52ecf4[_0x1a28f0(0x20c)];return!_0x365ade||_0x365ade[_0x1a28f0(0x345)]===0x0||(_0x5f0fd0['tag']===_0x1a28f0(0x1af)&&_0x110d25[_0x1a28f0(0x137)]&&(_0x110d25[_0x1a28f0(0x137)]=_0x110d25[_0x1a28f0(0x137)]+_0x52ecf4[_0x1a28f0(0x2d6)]),Object[_0x1a28f0(0x1f4)](_0x110d25)['forEach'](function(_0x29eb09){const _0x3ea9da=_0x1a28f0;var _0x2e0c1a=_0x29eb09[0x0],_0x41429f=_0x29eb09[0x1];typeof _0x41429f=='string'&&(_0x110d25[_0x2e0c1a]=_0x41429f[_0x3ea9da(0x1f7)](/url\(#(.*)\)/,_0x3ea9da(0x374)['concat'](_0x52ecf4[_0x3ea9da(0x2d6)],')')));})),_0x110d25;}function ze(_0x3df713,_0x2b06de){const _0xaa787f=_0x42373d;var _0x5d96ce,_0x3596d0=_0x2b06de[_0xaa787f(0x20c)];return!_0x3596d0||_0x3596d0[_0xaa787f(0x345)]===0x0?_0x3df713:_0x3df713[_0xaa787f(0x20b)]===_0xaa787f(0x1ec)&&(!((_0x5d96ce=_0x3df713[_0xaa787f(0x133)])===null||_0x5d96ce===void 0x0)&&_0x5d96ce[_0xaa787f(0x345)])?b(b({},_0x3df713),{'children':_0x3df713[_0xaa787f(0x133)]['map'](function(_0x222708){const _0x5ae21f=_0xaa787f;return typeof _0x222708[_0x5ae21f(0x335)]['id']=='string'&&_0x3596d0&&_0x3596d0[_0x5ae21f(0x1cc)](_0x222708[_0x5ae21f(0x335)]['id'])?b(b({},_0x222708),{'attrs':b(b({},_0x222708['attrs']),{'id':_0x222708['attrs']['id']+_0x2b06de[_0x5ae21f(0x2d6)]})}):_0x222708;})}):_0x3df713;}function Je(){const _0x4f07da=_0x42373d;return Math['random']()[_0x4f07da(0x29d)](0x24)[_0x4f07da(0x1ab)](0x2,0x8);}ge[_0x42373d(0x2c3)]=_0x42373d(0x1ee);var Ze={'tag':_0x42373d(0x16e),'attrs':{'xmlns':_0x42373d(0x1d8),'fill':_0x42373d(0x21d),'viewBox':_0x42373d(0x21e),'width':'1em','height':_0x42373d(0x2fe)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x42373d(0x285),'attrs':{'stroke':_0x42373d(0x233),'d':_0x42373d(0x2cf),'strokeLinecap':_0x42373d(0x37d),'strokeLinejoin':_0x42373d(0x37d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x42373d(0x26e),'attrs':{'id':_0x42373d(0x1d9)},'children':[{'tag':_0x42373d(0x285),'attrs':{'fill':_0x42373d(0x305),'d':_0x42373d(0x122)}}]}]}],'defIds':[_0x42373d(0x1d9)]},we=M[_0x42373d(0x2b5)](function(_0x42b48d,_0x3b6c4a){const _0x1afa7f=_0x42373d;return M['createElement'](ge,Object[_0x1afa7f(0x321)]({},_0x42b48d,{'id':'off-line-icon','ref':_0x3b6c4a,'icon':Ze}));});we['displayName']='OffLineIcon';var Qe={'tag':_0x42373d(0x16e),'attrs':{'xmlns':_0x42373d(0x1d8),'fill':'none','viewBox':_0x42373d(0x168),'width':'1em','height':_0x42373d(0x2fe)},'children':[{'tag':'g','attrs':{'clipPath':_0x42373d(0x376)},'children':[{'tag':_0x42373d(0x285),'attrs':{'stroke':_0x42373d(0x233),'d':_0x42373d(0x378),'strokeLinecap':_0x42373d(0x37d),'strokeLinejoin':_0x42373d(0x37d),'strokeWidth':1.2}}]},{'tag':_0x42373d(0x1ec),'attrs':{},'children':[{'tag':_0x42373d(0x26e),'attrs':{'id':_0x42373d(0x1d6)},'children':[{'tag':_0x42373d(0x285),'attrs':{'fill':_0x42373d(0x305),'d':_0x42373d(0x122),'transform':_0x42373d(0x387)}}]}]}],'defIds':[_0x42373d(0x1d6)]},Ae=M[_0x42373d(0x2b5)](function(_0x43313f,_0x3e8aba){const _0x58cb5e=_0x42373d;return M[_0x58cb5e(0x279)](ge,Object[_0x58cb5e(0x321)]({},_0x43313f,{'id':_0x58cb5e(0x2ff),'ref':_0x3e8aba,'icon':Qe}));});Ae['displayName']=_0x42373d(0x2fb);function et(_0x3e8e87){const _0xece36c=_0x42373d;switch(_0x3e8e87){case u[_0xece36c(0x2ed)][_0xece36c(0x11b)]:return'collabStatus.offline';case u[_0xece36c(0x2ed)][_0xece36c(0x205)]:return'collabStatus.conflict';case u['CollaborationStatus'][_0xece36c(0x2c7)]:return _0xece36c(0x21f);case u[_0xece36c(0x2ed)]['NOT_COLLAB']:return _0xece36c(0x2aa);case u['CollaborationStatus']['AWAITING']:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0xece36c(0x173);case u[_0xece36c(0x2ed)][_0xece36c(0x232)]:case u[_0xece36c(0x2ed)][_0xece36c(0x1ac)]:return _0xece36c(0x2ec);}}function _0x5ac0(){const _0x42be25=['_config','defs','getMember','UniverIcon','NOT_FOUND','values','RegularPolygon','result','UNDEFINED','entries','deepClone','_initDependencies','replace','RemoveColCommandId','unitId','registerDependencies','DependentOn','_handleJoinEvent','9obNDPv','collab-text-anchor-','_saveTaskMap','handleInsertRangeMoveRight','BrowserCollaborationSocketService','/run/','_name','_getMergeRange','CONFLICT','history','MUTATION','textRanges','clearInterval','hide','tag','defIds','createIdentifier','INVALID_ARGUMENT','toStringTag','getSheetBySheetId','doc.mutation.rich-text-editing','exhaustSavingTask','range','transformIMECache','_revisionService','_cursors','search','imageSourceType','COLORS','forEach','_unitOnClients','CollaborationController','none','0\x200\x2016\x2016','collabStatus.fetchMiss','OTHER_CLIENTS_EDITING','InsertColCommandId','symbol','YUUMI_ASYNCIO_CANCELLED','show','TOO_MANY_REQUESTS','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_registerDependencies','6396200VrUnfP','12PangZQ','_anchorDot','font','setAlpha','_commandService','addHandlerCallback','_localStorageService','ITransformService','getOffsetConfig','SYNCED','currentColor','blue.400','IRemoteInstanceService','source','call','collabCursorState$','sessionStatus$','Error','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_shapes','triggerDblclick','getConfig','Disposable','WebURLService','ICommandService','777884PlhnQn','complete','getCurrentSelections','save','_updateCollabCursors','_removeClearOtherTimer','_drawAnchor','getCurrentRevOfUnit','replaceState','setItem','deserializeRangeWithSheet','_entities','body','MessageType','_context','_color','_getSheetObject','width','debug','getRelativeToViewportCoord','pipe','_toggleOffline','wsSessionTicketUrl','[CollaborationDataLoaderController]','IDocClipboardService','NodePositionConvertToCursor','ISnapshotServerService','2049474qTLUNv','getUnitStatus$','isActive','fromEventSubject','has','_memberService','Shape','name','isTransformMutationsWithChangesetSuccess','NodePositionConvertToRectRange','getCoordByCell','_notificationService','text','handleDeleteRangeMoveLeft','280938XJHIMf','collaboration-client.offline-data-not-saved','apply','clipPath','cursorInfo$','CollaborationUIEventService','get','handleInsertCol','_eventUnsubscribe','UniverCollaborationClientUIPlugin','BuiltInUIPart','trim','_heartbeatTimer','_colorIndex','createElement','delete','addObject','_renderManagerService','contains','IConfigService','getSheetId','addEventListener','subscribe','ticket','requireSession','registerRenderModule','path','getTypeOfUnitAdded$','_initEvent','onPointerLeave$','UNIVER_DOC','RemoteUniscriptService','_getSaveTimeout','CLOSE_ROOM','ILocalStorageService','ONLINE','dispose$','Vector2','_initStatusListener','_disabled','jsxs','string','registerRefRange','_anchor','_online','_setupBeforeClosingHandler','_handleHover','_themeService','className','runId','toString','getAncestorScale','Workbook','connectInjector','_localeService','Warning','IUIPartsService','pushState','collab-client.tooltip.reconnect','asObservable','collaboration.closeRoom','IMessageService','getValue','collabStatus.notCollab','from','CollaborationSessionService','DEFAULT_WS_SESSION_TICKET_URL','getUndoRedoMutationParamsCache','handleMoveRange','generateRandomId','_labelPosition','setUndoRedoMutationParamsCache','debounce','m2Prime','forwardRef','searchParams','toRgbString','invokeId','mutations','_handleLeaveEvent','setShapeProps','_docSkeleton','LocaleService','params','UNIVER_SHEET','parse','useObservable','_backgroundColor','displayName','RevisionService','set','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','FETCH_MISS','isEditing','measureText','concat','UNRECOGNIZED','switchMap','ILocalCacheService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','colorChannel1','COMPLETION_FINISHED','Unknown\x20user','_toggleOnline','transformMutation','JOIN_ROOM_FAILED','idSuffix','_univerInstanceService','div','code','IBeforeCloseService','_updateLocalCursor','icon','_updateSubUnitFromURLParams','redoState','unload','MoveRangeCommandId','ColorKit','_document','_selfUnitIDs','engine','...','YUUMI_UNABLE_LOAD_URL','YUUMI_URL_COL_OUT_OF_RANGE','error','type','sheetID','Tooltip','collabStatus.synced','CollaborationStatus','SheetsSelectionsService','YUUMI_SUBSCRIPTION_NOT_FOUND','_cachedData','getDocRanges','_handleEvent','getMemberID','_session','_startDocCollabCursor','mask','SNAPSHOT_INVALID_SNAPSHOT','ThemeService','SetTextSelectionsOperation','DocIMEInputManagerService','OnLineIcon','event$','assignAColorForMemberID','1em','on-line-icon','_onCursorUpdate','getUnhiddenWorksheets','_roomMembers$','height','startRow','white','YUUMI_CONNECTOR_URL_NOT_FOUND','onLocalMutation','arc','color','getUnitId','onMouseMove','saveTaskMap','labelPosition','_scene','_hideTimer','beginPath','_configService','onPointerMove$','_setupSubUnitSync','DocStateChangeManagerService','transformMutationsWithChangeset','_initEntityListener','EMAIL_HAS_BEEN_BOUND','PY_RUNTIME_SCRIPT_ERROR','TEXT_RANGE_LAYER_INDEX','jsx','split','getCellPositionByOffset','getOwnPropertyDescriptor','APPLY_NON_SEQUENTIAL_REVISION','UNAUTHENTICATED','DocCollaborationEntity','assign','yellow.400','distinctUntilChanged','href','evenodd','_saveCache','handleInsertRangeMoveDown','uni.network.url-service','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_initCommandExecutedListener','propertyIsEnumerable','_render','UniverInstanceType','APPLY_PERMISSION_DENIED','createInstance','_clearOtherTimers','find','entityInit$','init','getActiveRange','attrs','LICENSE_EXPORT_SIZE_EXCEEDED','_transformService','getSheetObject','top','_dataLoaderService','SheetSkeletonManagerService','APPLY_DUPLICATED','APPLY_REVISION_CONFILICT','collaboration-client-ui.config','WebBrowserSingleActiveUnitService','SOCKET_FAILED_RETRY','_messageService','_entityInit$','UPDATE_CURSOR','_docTransformSelectionsService','length','CommandType','LICENSE_IMPORT_SIZE_EXCEEDED','actions','bottom','_drawRectRange','transformByState','map','ENSURE_SNAPSHOT_EXECUTION','onCommandExecuted','_handleHeartbeatEvent','_send','InsertRangeMoveRightCommandId','useDependency','INVITE_CODE_REQUIRED','roomMembers$','clsx','INTERNAL_ERROR','_getAnchorBounding','getCurrentUnitForType','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','univerjs-icon\x20univerjs-icon-','syncEditingCollabCursor','EffectRefRangId','unshift','DOC_RANGE_TYPE','Rect','some','#FFF','IRenderManagerService','_startSheetCollabCursor','_onRefRangeChange','takeUntil','key','getStateCache','SNAPSHOT_HAS_BEEN_REMOVED','INotificationService','green.600','_scheduleHeartbeat','_initResize','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','memberID','loadUnit','dispose','data','_docTransformStateCacheService','CollaborationSocketService','url(#$1','then','url(#on-line-icon_clip0_910_349)','getLocalCacheKey','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','YUUMI_NO_CUBOID_FOR_QUESTION','SHEET_VIEWPORT_KEY','SheetCollabCursorShape','CollaborationEvent','round','CollaborationDataLoaderController','next','fromEvent','black','permission.title','sessionTicket','_transformHistoryAndStateStack','selections','_collabCursorController','translate(.97)','LOCAL_CACHE_INTERVAL_KEY','_sheetSkeletonManagerService','merge','editingUnit','disposeUnit','column','25RLajGF','subunit','14824490IjornR','USERS_LEAVE','_transformUndoRedoStack','BehaviorSubject','LICENSE_DISTRO_REJECTED','extend','subscribeEvent','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','INVITE_CODE_HAS_BEEN_UES','sheetId','_refRangeService','skeleton','size','_collaborationController','SOCKET_FAILED','addClipboardHook','fillText','_injector','OFFLINE','disableLocalCache','push','_draw','WECHAT_HAS_BEEN_BOUND','stringify','filter','M0\x200H16V16H0z','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','moveTo','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_updateURLWithCurrentState','getCollabCursors$','_logService','NO_OTHER_CLIENTS_EDITING','_ensureSubject','SetWorksheetActivateCommand','LOCAL_CACHE_INTERVAL','Rectangle','IUniverInstanceService','transformStateCache','getSkeleton','_assignedColors','unit','children','location','RefRangeService','_docSyncEditingCollabCursorService','xlink:href','min','RxDisposable','combineLatest','transform','_doCreateSocket','unsubscribe','LOGIN_FAILED','_initStatusComponent','setInterval','InsertRangeMoveDownCommandId','RichTextEditingMutation','debounceTime','executeCommand','HTTPService','INVALID_INVITE_CODE','all','_collabSessionService','urlChange$','getUniverSheetInstance','endRow','MOBILE_VERIFY_CODE_MISMATCH','prototype','InsertRowCommandId','_range','_collabCursorState$','getItem','YUUMI_ALL_TABLES_IS_INVALID','getCurrent','Tools','_onCursorDelete','override','_instanceService','_registerRenderDependencies','UniverCollaborationClientPlugin','CollaborationUIEventId','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Module','lineTo','popstate','replaceDocRanges','CONNECTOR_DATA_TOO_LARGE','send','selection','_docClipboardService','useRef','TEXT','_hovered','PERMISSION_DENIED','0\x200\x2017\x2016','Subject','_docSkeletonManagerService','USER_NOT_INVITED_CODE','getRangePointData','_scheduleClearOtherTimer','svg','add','SUBMIT_CHANGESET_TIMEOUT','session.collaboration-timeout','defineProperty','collabStatus.syncing','findNodePositionByCharIndex','MOBILE_HAS_BEEN_BOUND','_urlService','fillRule','getOwnPropertySymbols','_cursorInfo$','hasOwnProperty','CHANGESET_REVISION_CONFILICT','setStateCache','DataLoaderService','status$','endColumn','setTimeout','drawWith','storage','collaboration.single-unit.warning','_unitStatus','isTransformMutationFailure','_colorAssignService','ranges','_imageIoService','loadOfflineData','getRenderById','_lastPointer','enableLocalCache','handleInsertRow','onStarting','disposeWithMe','_cursor','ACTIVE_UNIT_EVENT_CHANNEL','jiqing.500','onTransformChange$','fill','_docTransformIMECacheService','OTHER_CLIENT_EDITING','Failed','fillStyle','_uiPartsService','_init','getCollabEntity$','_docStateChangeManagerService','UnitStatus','_localCacheService','_drawTextRange','RemoveRowCommandId','backgroundColor','useCallback','subUnitId','Injector','_scheduleSaving','MemberService','_httpService','reconnect','_cursorShapes','YUUMI_AI_RUN_FAILED','substring','PENDING','INVITE_CODE_ALREADY_BOUND','_id','use','getColorFromTheme','permission.content','_getScale','onPointerEnter$','DesktopCollaborationStatusDisplayController','_removeCollabCursors','updateOfflineData','DisposableCollection','current','getActiveSheet','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','NOT_COLLAB','_status$','roomMembers','SessionStatus','[RemoteUniscriptService]:\x20no\x20focused\x20unit','unitID','with','red.300','isArray','startsWith','restore','DocSelectionManagerService','getFocusedUnit','eventID','hovered','YUUMI_RATE_OVER_LIMIT','newValue','includes','_refreshCollabCursors','cursorInfo','transformSelections','_hover','SetSelectionsOperation','toDisposable','LICENSE_MAX_UNITS_EXCEEDED','ALREADY_EXISTS','clearTimeout','on-line-icon_clip0_910_349','startColumn','http://www.w3.org/2000/svg','off-line-icon_clip0_910_343','getColor','transformRemoteChangeset','FromArray','m1Prime','getParam','undoState','saveImage','_textBubble','getTypeOfUnitDisposed$','row','currentTheme$','621360lgPCay','_syncEditingCollabCursorService','indexOf','1048486vpbeRs','Inject','currentSkeleton$'];_0x5ac0=function(){return _0x42be25;};return _0x5ac0();}function tt(_0x437cc3){const _0x22b095=_0x42373d,{status$:_0x1d119b}=_0x437cc3,_0x5294ab=O[_0x22b095(0x2c1)](_0x1d119b,u[_0x22b095(0x2ed)][_0x22b095(0x1bb)]),_0x25b63c=O[_0x22b095(0x352)](a[_0x22b095(0x2bd)]),_0x575435=O[_0x22b095(0x352)](u[_0x22b095(0x2ac)]),_0x5a2564=_0x5294ab!==u[_0x22b095(0x2ed)][_0x22b095(0x11b)],_0x90989c=_0x25b63c['t'](et(_0x5294ab)),_0x4e8691=_0x5a2564?P[_0x22b095(0x31a)](Ae,{}):P[_0x22b095(0x31a)](we,{}),_0x15aa14=M[_0x22b095(0x1a2)](()=>{const _0x2bdf20=_0x22b095;_0x5a2564||_0x575435[_0x2bdf20(0x1a8)]();},[_0x5a2564,_0x575435]);function _0x220f30(){const _0x3b489b=_0x22b095;return P[_0x3b489b(0x293)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x15aa14,'children':[P['jsx'](_0x3b489b(0x2d8),{'className':D[_0x3b489b(0x355)]('univer-mr-2\x20univer-flex\x20univer-text-xl',{'univer-text-green-500':_0x5a2564,'univer-text-red-500':!_0x5a2564}),'children':_0x4e8691}),P[_0x3b489b(0x31a)](_0x3b489b(0x2d8),{'className':_0x3b489b(0x23b),'children':_0x90989c})]});}return _0x5a2564?_0x220f30():P[_0x22b095(0x31a)](D[_0x22b095(0x2eb)],{'title':_0x25b63c['t'](_0x22b095(0x2a5)),'children':_0x220f30()});}var st=Object[_0x42373d(0x31d)],it=(_0xd514f,_0x5abce9,_0x455aa6,_0x31adf6)=>{const _0x44d6a5=_0x42373d;for(var _0xadf5=_0x31adf6>0x1?void 0x0:_0x31adf6?st(_0x5abce9,_0x455aa6):_0x5abce9,_0x1e7370=_0xd514f[_0x44d6a5(0x345)]-0x1,_0x432e59;_0x1e7370>=0x0;_0x1e7370--)(_0x432e59=_0xd514f[_0x1e7370])&&(_0xadf5=_0x432e59(_0xadf5)||_0xadf5);return _0xadf5;},V=(_0x8d0df1,_0x2df7a6)=>(_0x360967,_0x32fda6)=>_0x2df7a6(_0x360967,_0x32fda6,_0x8d0df1);exports[_0x42373d(0x1b4)]=class extends a[_0x42373d(0x23f)]{constructor(_0x43460d,_0x539996,_0x158b13,_0x22ba54){const _0x52181c=_0x42373d;super(),h(this,_0x52181c(0x1bc),new d['BehaviorSubject'](u[_0x52181c(0x2ed)][_0x52181c(0x1bb)])),(this[_0x52181c(0x2d7)]=_0x43460d,this[_0x52181c(0x11a)]=_0x539996,this[_0x52181c(0x116)]=_0x158b13,this[_0x52181c(0x199)]=_0x22ba54,this['_initStatusComponent'](),this[_0x52181c(0x291)]());}['_initStatusListener'](){const _0x3f8017=_0x42373d;this[_0x3f8017(0x18f)](this['_univerInstanceService']['focused$'][_0x3f8017(0x256)](d[_0x3f8017(0x2cc)](()=>{const _0xfe01b=_0x3f8017,_0x283e5a=this[_0xfe01b(0x2d7)][_0xfe01b(0x1c7)]();return _0x283e5a?this[_0xfe01b(0x116)][_0xfe01b(0x19b)](_0x283e5a[_0xfe01b(0x30a)]()):d['of'](null);}),d['switchMap'](_0x63a9eb=>_0x63a9eb?_0x63a9eb[_0x3f8017(0x17e)]:d['of'](u['CollaborationStatus'][_0x3f8017(0x1bb)])))[_0x3f8017(0x281)](_0x19b83e=>{const _0x1c802d=_0x3f8017;this[_0x1c802d(0x1bc)][_0x1c802d(0x37f)](_0x19b83e);}));}[_0x42373d(0x13f)](){const _0x103bab=_0x42373d;this[_0x103bab(0x18f)](this['_uiPartsService']['registerComponent'](O[_0x103bab(0x275)]['HEADER_MENU'],()=>O[_0x103bab(0x2a0)](nt({'status$':this[_0x103bab(0x1bc)][_0x103bab(0x2a6)]()}),this[_0x103bab(0x11a)])));}},exports['DesktopCollaborationStatusDisplayController']=it([V(0x0,a[_0x42373d(0x12e)]),V(0x1,a[_0x42373d(0x1e9)](a['Injector'])),V(0x2,a[_0x42373d(0x1e9)](u[_0x42373d(0x21c)])),V(0x3,O[_0x42373d(0x2a3)])],exports['DesktopCollaborationStatusDisplayController']);function nt(_0xdc94b7){const {status$:_0x497761}=_0xdc94b7;return function(){const _0x5c3b20=_0x45b0;return P[_0x5c3b20(0x31a)](tt,{'status$':_0x497761});};}const me=a[_0x42373d(0x20d)](_0x42373d(0x328));var rt=Object[_0x42373d(0x31d)],ot=(_0x58aec8,_0x2968a3,_0x101640,_0x189a9f)=>{const _0x26beb2=_0x42373d;for(var _0x38bb54=_0x189a9f>0x1?void 0x0:_0x189a9f?rt(_0x2968a3,_0x101640):_0x2968a3,_0x383c2f=_0x58aec8[_0x26beb2(0x345)]-0x1,_0x272a86;_0x383c2f>=0x0;_0x383c2f--)(_0x272a86=_0x58aec8[_0x383c2f])&&(_0x38bb54=_0x272a86(_0x38bb54)||_0x38bb54);return _0x38bb54;},k=(_0x423682,_0x32b645)=>(_0x46e56f,_0x49d27a)=>_0x32b645(_0x46e56f,_0x49d27a,_0x423682);exports[_0x42373d(0x37e)]=class extends a[_0x42373d(0x139)]{constructor(_0x56bc07,_0x221257,_0x151e9f,_0x82c730,_0x1e97cc){const _0x43ec7f=_0x42373d;super(),this[_0x43ec7f(0x176)]=_0x56bc07,this[_0x43ec7f(0x128)]=_0x221257,this[_0x43ec7f(0x22d)]=_0x151e9f,this[_0x43ec7f(0x33a)]=_0x82c730,_0x1e97cc?_0x1e97cc==null||_0x1e97cc['whenReady']()[_0x43ec7f(0x375)](()=>this['_init']()):(this['_logService'][_0x43ec7f(0x254)](_0x43ec7f(0x259),_0x43ec7f(0x125)),this[_0x43ec7f(0x19a)]());}async[_0x42373d(0x19a)](){const _0x1962a2=_0x42373d,_0x5d15da=this[_0x1962a2(0x176)][_0x1962a2(0x1de)]('unit'),_0x2ef410=this['_urlService'][_0x1962a2(0x1de)](_0x1962a2(0x2e9)),_0x263b49=this['_urlService'][_0x1962a2(0x1de)]('subunit');if(!_0x5d15da||!_0x2ef410){this[_0x1962a2(0x128)][_0x1962a2(0x254)](_0x1962a2(0x259),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x264aa7=await this[_0x1962a2(0x33a)][_0x1962a2(0x36f)](_0x5d15da,Number(_0x2ef410),_0x263b49);_0x264aa7&&_0x264aa7 instanceof a[_0x1962a2(0x29f)]&&this['_setupSubUnitSync'](_0x264aa7);}async[_0x42373d(0x313)](_0x3cc46c){const _0x4164bf=_0x42373d;await this[_0x4164bf(0x2dd)](_0x3cc46c),_0x3cc46c['activeSheet$'][_0x4164bf(0x256)](d[_0x4164bf(0x365)](this[_0x4164bf(0x28f)]))[_0x4164bf(0x281)](_0x2ccebe=>{const _0x141339=_0x4164bf;_0x2ccebe&&this[_0x141339(0x126)](_0x2ccebe);}),this[_0x4164bf(0x176)][_0x4164bf(0x149)]['pipe'](d['takeUntil'](this[_0x4164bf(0x28f)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x3cc46c));}['_updateURLWithCurrentState'](_0x5148ab,_0x300912=!0x1){const _0x3081f6=_0x42373d,_0x36404e=this['_urlService'][_0x3081f6(0x1de)](_0x3081f6(0x108));_0x5148ab[_0x3081f6(0x27f)]()!==_0x36404e&&this[_0x3081f6(0x176)]['setParam'](_0x3081f6(0x108),_0x5148ab[_0x3081f6(0x27f)](),_0x300912);}async['_updateSubUnitFromURLParams'](_0x41e112){const _0x2facdf=_0x42373d;var _0x5502eb;const _0x1d6ab6=this[_0x2facdf(0x176)]['getParam'](_0x2facdf(0x108));if(!_0x1d6ab6||!_0x41e112['getSheetBySheetId'](_0x1d6ab6)){const _0x5b8035=_0x41e112[_0x2facdf(0x301)]()[0x0],_0x1eba91=_0x41e112[_0x2facdf(0x210)](_0x5b8035);if(!_0x1eba91)return;this[_0x2facdf(0x126)](_0x1eba91,!0x0),await this[_0x2facdf(0x22d)][_0x2facdf(0x144)](g[_0x2facdf(0x12b)]['id'],{'unitId':_0x41e112[_0x2facdf(0x30a)](),'subUnitId':_0x5b8035});return;}((_0x5502eb=_0x41e112[_0x2facdf(0x1b9)]())==null?void 0x0:_0x5502eb[_0x2facdf(0x27f)]())!==_0x1d6ab6&&await this[_0x2facdf(0x22d)][_0x2facdf(0x144)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x41e112[_0x2facdf(0x30a)](),'subUnitId':_0x1d6ab6});}},exports['CollaborationDataLoaderController']=ot([k(0x0,me),k(0x1,a['ILogService']),k(0x2,a[_0x42373d(0x241)]),k(0x3,a[_0x42373d(0x1e9)](u[_0x42373d(0x17d)])),k(0x4,a['Optional'](Xe[_0x42373d(0x235)]))],exports['CollaborationDataLoaderController']);var at=Object[_0x42373d(0x31d)],ct=(_0xfb0eb8,_0x37632e,_0x3216d8,_0x5d7a29)=>{const _0x243b17=_0x42373d;for(var _0x44e71e=_0x5d7a29>0x1?void 0x0:_0x5d7a29?at(_0x37632e,_0x3216d8):_0x37632e,_0x5ee304=_0xfb0eb8[_0x243b17(0x345)]-0x1,_0x388921;_0x5ee304>=0x0;_0x5ee304--)(_0x388921=_0xfb0eb8[_0x5ee304])&&(_0x44e71e=_0x388921(_0x44e71e)||_0x44e71e);return _0x44e71e;},be=(_0x586467,_0x515afb)=>(_0x3724ff,_0x226d2a)=>_0x515afb(_0x3724ff,_0x226d2a,_0x586467);let ue=class extends a[_0x42373d(0x139)]{constructor(_0x5afc71,_0x512f45){const _0x5dc4ae=_0x42373d;super(),this[_0x5dc4ae(0x163)]=_0x5afc71,this[_0x5dc4ae(0x188)]=_0x512f45,this[_0x5dc4ae(0x19a)]();}[_0x42373d(0x19a)](){const _0x337c3f=_0x42373d,_0x2cbbd8=this;this[_0x337c3f(0x18f)](this['_docClipboardService'][_0x337c3f(0x118)]({'onBeforePasteImage':async _0x4067bf=>{const _0x27394a=_0x337c3f,_0x1f76e9=await _0x2cbbd8[_0x27394a(0x188)][_0x27394a(0x1e0)](_0x4067bf);return _0x1f76e9?{'source':_0x1f76e9[_0x27394a(0x236)],'imageSourceType':_0x1f76e9[_0x27394a(0x218)]}:null;}}));}};ue=ct([be(0x0,E[_0x42373d(0x25a)]),be(0x1,Ge['IImageIoService'])],ue);const Oe=['purple.300',_0x42373d(0x192),_0x42373d(0x36a),_0x42373d(0x1c2),_0x42373d(0x234),_0x42373d(0x322)];class Ce extends a['Disposable']{constructor(){const _0x5d4aed=_0x42373d;super(...arguments),h(this,_0x5d4aed(0x131),new Map()),h(this,_0x5d4aed(0x278),0x0);}['assignAColorForMemberID'](_0x31da81){const _0x73da4a=_0x42373d;if(this['_assignedColors'][_0x73da4a(0x261)](_0x31da81))return this['_assignedColors']['get'](_0x31da81);const _0xead4=Oe[this[_0x73da4a(0x278)]];return this[_0x73da4a(0x278)]=(this[_0x73da4a(0x278)]+0x1)%Oe[_0x73da4a(0x345)],this['_assignedColors'][_0x73da4a(0x2c5)](_0x31da81,_0xead4),_0xead4;}}function ye(_0x5ea961){let _0x35aa30='';for(const _0x515ae0 of _0x5ea961){const {startOffset:_0x466b2d,endOffset:_0x384588,isActive:_0x49c8b4,rangeType:_0x1f4574,segmentId:_0x10a062,segmentPage:_0x25b7e4}=_0x515ae0;_0x35aa30['length']&&(_0x35aa30+=','),_0x35aa30+=_0x466b2d+':'+_0x384588+':'+(_0x49c8b4?'1':'0')+':'+_0x1f4574+':'+_0x10a062+':'+_0x25b7e4;}return _0x35aa30;}function lt(_0x4cc272){const _0x2d5977=_0x42373d,_0x135623=_0x4cc272[_0x2d5977(0x31b)](','),_0x1a9eb3=[];for(const _0x3c8257 of _0x135623){const [_0x27ef79,_0x4803d3,_0x430def,_0x2d2e61,_0x265aa6,_0x4ac647]=_0x3c8257[_0x2d5977(0x31b)](':');_0x1a9eb3[_0x2d5977(0x11d)]({'startOffset':Number(_0x27ef79),'endOffset':Number(_0x4803d3),'collapsed':_0x27ef79===_0x4803d3,'isActive':_0x430def==='1','rangeType':_0x2d2e61===a[_0x2d5977(0x35e)][_0x2d5977(0x165)]?a[_0x2d5977(0x35e)][_0x2d5977(0x165)]:a[_0x2d5977(0x35e)]['RECT'],'segmentId':typeof _0x265aa6==_0x2d5977(0x294)?String(_0x265aa6):'','segmentPage':Number(_0x4ac647!=null?_0x4ac647:-0x1)});}return _0x1a9eb3[_0x2d5977(0x360)](_0x14c7d2=>_0x14c7d2[_0x2d5977(0x25f)])||(_0x1a9eb3[0x0][_0x2d5977(0x25f)]=!0x0),_0x1a9eb3;}class pe extends a[_0x42373d(0x139)]{constructor(){const _0x44b5ed=_0x42373d;super(...arguments),h(this,_0x44b5ed(0x150),new d[(_0x44b5ed(0x10c))](null)),h(this,_0x44b5ed(0x238),this[_0x44b5ed(0x150)]['asObservable']());}[_0x42373d(0x35b)](_0x56ae98){const _0x18b7db=_0x42373d,{unitID:_0x4ff7bf,memberID:_0x21785b,textRanges:_0x403812}=_0x56ae98,_0x3b5fb5=ye(_0x403812);if(_0x3b5fb5==='')return;const _0x22c16c={'unitID':_0x4ff7bf,'memberID':_0x21785b,'selection':_0x3b5fb5};this[_0x18b7db(0x150)][_0x18b7db(0x37f)](_0x22c16c);}}var _t=Object['getOwnPropertyDescriptor'],ht=(_0x3d5ef3,_0xa63a7c,_0x34d793,_0x169622)=>{for(var _0x48a8e3=_0x169622>0x1?void 0x0:_0x169622?_t(_0xa63a7c,_0x34d793):_0xa63a7c,_0x56b65f=_0x3d5ef3['length']-0x1,_0x23cd4e;_0x56b65f>=0x0;_0x56b65f--)(_0x23cd4e=_0x3d5ef3[_0x56b65f])&&(_0x48a8e3=_0x23cd4e(_0x48a8e3)||_0x48a8e3);return _0x48a8e3;},L=(_0x16815a,_0x58c3a3)=>(_0x5d3a0b,_0x2375f7)=>_0x58c3a3(_0x5d3a0b,_0x2375f7,_0x16815a);const ut=0x12c,dt=0x64;let de=class extends a[_0x42373d(0x139)]{constructor(_0x2b799b,_0x557cf5,_0x5e866b,_0x94076,_0x47a31b,_0xcf64c5,_0x16b6a8,_0x2fae01,_0x1bf413){const _0x4c0c83=_0x42373d;super(),h(this,_0x4c0c83(0x297),!0x1),h(this,_0x4c0c83(0x19a),!0x1),h(this,_0x4c0c83(0x179),new d[(_0x4c0c83(0x10c))](new Map())),h(this,_0x4c0c83(0x26f),this['_cursorInfo$'][_0x4c0c83(0x2a6)]()),h(this,_0x4c0c83(0x302),new d[(_0x4c0c83(0x10c))]([])),h(this,_0x4c0c83(0x354),this['_roomMembers$']['pipe'](d[_0x4c0c83(0x143)](ut))),h(this,'_updateLocalCursor',a['debounce'](_0x202ce6=>{const _0x4d97e9=_0x4c0c83,_0x2d882c={'eventID':m[_0x4d97e9(0x37c)][_0x4d97e9(0x343)],'data':{'unitID':this[_0x4d97e9(0x1c0)],'memberID':this[_0x4d97e9(0x2f4)][_0x4d97e9(0x2f3)](),'selection':ye(_0x202ce6)}};this[_0x4d97e9(0x2f4)][_0x4d97e9(0x161)](_0x2d882c,this['unitID']);},dt)),(this[_0x4c0c83(0x1c0)]=_0x2b799b,this['_session']=_0x557cf5,this[_0x4c0c83(0x11a)]=_0x5e866b,this[_0x4c0c83(0x186)]=_0x94076,this['_memberService']=_0x47a31b,this[_0x4c0c83(0x1e6)]=_0xcf64c5,this[_0x4c0c83(0x337)]=_0x16b6a8,this[_0x4c0c83(0x2d7)]=_0x2fae01,this[_0x4c0c83(0x22d)]=_0x1bf413);}get[_0x42373d(0x1ce)](){const _0x5db0d1=_0x42373d;return this[_0x5db0d1(0x179)][_0x5db0d1(0x2a9)]();}get[_0x42373d(0x1bd)](){const _0x3121e1=_0x42373d;return this[_0x3121e1(0x302)]['getValue']();}['dispose'](){const _0x355b4b=_0x42373d;super[_0x355b4b(0x370)](),this['_cursorInfo$']['next'](new Map()),this[_0x355b4b(0x179)]['complete'](),this[_0x355b4b(0x302)][_0x355b4b(0x37f)]([]),this['_roomMembers$'][_0x355b4b(0x243)]();}[_0x42373d(0x333)](){const _0x580621=_0x42373d;this[_0x580621(0x19a)]||(this[_0x580621(0x19a)]=!0x0,this['_session'][_0x580621(0x239)][_0x580621(0x256)](d[_0x580621(0x365)](this['dispose$']))[_0x580621(0x281)](_0x4e5388=>{const _0x56a6e6=_0x580621;_0x4e5388===u[_0x56a6e6(0x1be)][_0x56a6e6(0x28e)]?this[_0x56a6e6(0x2d3)]():this[_0x56a6e6(0x257)]();}),this[_0x580621(0x2f4)][_0x580621(0x2fc)]['pipe'](d['takeUntil'](this[_0x580621(0x28f)]))[_0x580621(0x281)](_0x12d69e=>{const _0x2aed4d=_0x580621,_0x345f93=_0x12d69e[_0x2aed4d(0x1c8)];_0x345f93===m[_0x2aed4d(0x37c)][_0x2aed4d(0x343)]&&this['_onCursorUpdate'](_0x12d69e),_0x345f93===m[_0x2aed4d(0x37c)][_0x2aed4d(0x10a)]&&this[_0x2aed4d(0x155)](_0x12d69e);}),this[_0x580621(0x18f)](this[_0x580621(0x22d)][_0x580621(0x34e)](_0xfa3ecf=>{const _0x47276b=_0x580621,_0x400c3f=_0xfa3ecf['params'];_0x400c3f!=null&&this['_online']&&_0xfa3ecf['id']===Y[_0x47276b(0x2f9)]['id']&&_0x400c3f[_0x47276b(0x1f9)]===this[_0x47276b(0x1c0)]&&_0x400c3f[_0x47276b(0x2c8)]===!0x1&&_0x400c3f[_0x47276b(0x187)][_0x47276b(0x345)]>0x0&&this[_0x47276b(0x2db)](_0x400c3f[_0x47276b(0x187)]);})),this[_0x580621(0x1e6)][_0x580621(0x238)]['pipe'](d[_0x580621(0x365)](this[_0x580621(0x28f)]))[_0x580621(0x281)](_0x39ad21=>{const _0x37a47e=_0x580621;if((_0x39ad21==null?void 0x0:_0x39ad21[_0x37a47e(0x1c0)])!==this[_0x37a47e(0x1c0)])return;const _0x5af589={'eventID':m[_0x37a47e(0x37c)]['UPDATE_CURSOR'],'data':_0x39ad21};this[_0x37a47e(0x300)](_0x5af589);}),this[_0x580621(0x18f)](this[_0x580621(0x22d)]['onCommandExecuted'](_0x27db49=>{const _0x3feff5=_0x580621;if(_0x27db49['params']==null)return;const _0x1b3ca4=_0x27db49[_0x3feff5(0x2be)];if(_0x27db49['id']!==Y[_0x3feff5(0x142)]['id']||_0x1b3ca4[_0x3feff5(0x1f9)]!==this[_0x3feff5(0x1c0)])return;const _0x371654={'id':_0x3feff5(0x211),'params':_0x1b3ca4},_0x333d8e=this['cursorInfo'];for(const [_0x3c170a,_0x13bc2d]of _0x333d8e){const _0x59fd91={'id':_0x3feff5(0x211),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x13bc2d[_0x3feff5(0x187)]}},_0x1ac8f7=this[_0x3feff5(0x337)][_0x3feff5(0x2d4)](_0x371654,_0x59fd91,!0x1);if(m['isTransformMutationFailure'](_0x1ac8f7))throw _0x1ac8f7[_0x3feff5(0x2e8)];_0x333d8e['set'](_0x3c170a,{..._0x13bc2d,'ranges':_0x1ac8f7['m2Prime'][_0x3feff5(0x2be)][_0x3feff5(0x208)]});}queueMicrotask(()=>{const _0x35442e=_0x3feff5;this[_0x35442e(0x179)][_0x35442e(0x37f)](_0x333d8e);});})));}[_0x42373d(0x300)](_0x241958){const _0x146ea7=_0x42373d;var _0x4c8124,_0x3c0073;const {memberID:_0x3a8dfc,selection:_0x19bc36}=_0x241958[_0x146ea7(0x371)],_0x1e83d2=lt(_0x19bc36),_0x3a7702=(_0x3c0073=(_0x4c8124=this[_0x146ea7(0x262)][_0x146ea7(0x1ed)](this[_0x146ea7(0x1c0)],_0x3a8dfc))==null?void 0x0:_0x4c8124['name'])!=null?_0x3c0073:_0x146ea7(0x2d2),_0x173318={'color':this['_colorAssignService'][_0x146ea7(0x2fd)](_0x3a8dfc),'name':_0x3a7702,'ranges':_0x1e83d2},_0x37b909=this[_0x146ea7(0x1ce)];_0x37b909[_0x146ea7(0x2c5)](_0x3a8dfc,_0x173318),this[_0x146ea7(0x179)]['next'](_0x37b909);}[_0x42373d(0x155)](_0x260fb0){const _0x27862b=_0x42373d,{memberID:_0x314b5b}=_0x260fb0[_0x27862b(0x371)],_0x292897=this[_0x27862b(0x1ce)];_0x292897[_0x27862b(0x27a)](_0x314b5b),this['_cursorInfo$'][_0x27862b(0x37f)](_0x292897);}[_0x42373d(0x2d3)](){const _0x4d72ba=_0x42373d;var _0x3b3f9f;if(this[_0x4d72ba(0x297)]=!0x0,((_0x3b3f9f=this[_0x4d72ba(0x2d7)][_0x4d72ba(0x1c7)]())==null?void 0x0:_0x3b3f9f['getUnitId']())!==this[_0x4d72ba(0x1c0)])return;const _0x44eb1b=this['_injector'][_0x4d72ba(0x271)](Y[_0x4d72ba(0x1c6)])[_0x4d72ba(0x2f1)]();Array[_0x4d72ba(0x1c3)](_0x44eb1b)&&_0x44eb1b[_0x4d72ba(0x345)]>0x0&&this[_0x4d72ba(0x2db)](_0x44eb1b);}[_0x42373d(0x257)](){this['_online']=!0x1;}};de=ht([L(0x2,a[_0x42373d(0x1e9)](a['Injector'])),L(0x3,a[_0x42373d(0x1e9)](Ce)),L(0x4,a['Inject'](u[_0x42373d(0x1a6)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x42373d(0x230)]),L(0x7,a[_0x42373d(0x12e)]),L(0x8,a[_0x42373d(0x241)])],de);var St=Object[_0x42373d(0x31d)],ft=(_0x309e06,_0x4296c8,_0x469e64,_0x58191f)=>{const _0x4e2df8=_0x42373d;for(var _0xe78ab7=_0x58191f>0x1?void 0x0:_0x58191f?St(_0x4296c8,_0x469e64):_0x4296c8,_0x5c6462=_0x309e06[_0x4e2df8(0x345)]-0x1,_0x26afa3;_0x5c6462>=0x0;_0x5c6462--)(_0x26afa3=_0x309e06[_0x5c6462])&&(_0xe78ab7=_0x26afa3(_0xe78ab7)||_0xe78ab7);return _0xe78ab7;},A=(_0x4b7edc,_0x2e3090)=>(_0x5696a3,_0x4e7b4c)=>_0x2e3090(_0x5696a3,_0x4e7b4c,_0x4b7edc);const It=0x12c,vt=0x64,gt=()=>{let _0x44a523=[],_0x223da8=!0x1;return _0x3a7381=>{_0x44a523['push'](_0x3a7381),_0x223da8||(_0x223da8=!0x0,setTimeout(()=>{_0x44a523['forEach'](_0x1c9408=>_0x1c9408()),_0x44a523=[],_0x223da8=!0x1;}));};};let Se=class extends a[_0x42373d(0x139)]{constructor(_0x1944b4,_0x34d39e,_0x247e00,_0x52075c,_0x148e2f,_0x36892b,_0x6981c6,_0x4143ef){const _0x5e4a22=_0x42373d;super(),h(this,_0x5e4a22(0x297),!0x1),h(this,_0x5e4a22(0x19a),!0x1),h(this,_0x5e4a22(0x179),new d[(_0x5e4a22(0x10c))](new Map())),h(this,'cursorInfo$',this[_0x5e4a22(0x179)][_0x5e4a22(0x2a6)]()),h(this,_0x5e4a22(0x302),new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x5e4a22(0x302)][_0x5e4a22(0x256)](d['debounceTime'](It))),h(this,_0x5e4a22(0x2db),a[_0x5e4a22(0x2b3)]((_0xb06202,_0x3ae492)=>{const _0x2d54ae=_0x5e4a22,_0x2336b5={'eventID':m[_0x2d54ae(0x37c)][_0x2d54ae(0x343)],'data':{'unitID':this[_0x2d54ae(0x1c0)],'memberID':this[_0x2d54ae(0x2f4)][_0x2d54ae(0x2f3)](),'selection':Ee['serializeRangeWithSheet'](_0xb06202,_0x3ae492['range'])}};this[_0x2d54ae(0x2f4)][_0x2d54ae(0x161)](_0x2336b5,this[_0x2d54ae(0x1c0)]);},vt)),(this[_0x5e4a22(0x1c0)]=_0x1944b4,this['_session']=_0x34d39e,this[_0x5e4a22(0x11a)]=_0x247e00,this[_0x5e4a22(0x186)]=_0x52075c,this[_0x5e4a22(0x262)]=_0x148e2f,this[_0x5e4a22(0x2d7)]=_0x36892b,this['_commandService']=_0x6981c6,this[_0x5e4a22(0x113)]=_0x4143ef);}get[_0x42373d(0x1ce)](){const _0x218a80=_0x42373d;return this[_0x218a80(0x179)][_0x218a80(0x2a9)]();}get[_0x42373d(0x1bd)](){const _0x5757d7=_0x42373d;return this[_0x5757d7(0x302)][_0x5757d7(0x2a9)]();}[_0x42373d(0x370)](){const _0x71ad8f=_0x42373d;super[_0x71ad8f(0x370)](),this[_0x71ad8f(0x179)][_0x71ad8f(0x37f)](new Map()),this[_0x71ad8f(0x179)][_0x71ad8f(0x243)](),this[_0x71ad8f(0x302)]['next']([]),this['_roomMembers$'][_0x71ad8f(0x243)]();}['init'](){const _0x5d2955=_0x42373d;this[_0x5d2955(0x19a)]||(this['_init']=!0x0,this[_0x5d2955(0x2f4)][_0x5d2955(0x239)][_0x5d2955(0x256)](d[_0x5d2955(0x365)](this[_0x5d2955(0x28f)]))[_0x5d2955(0x281)](_0x4fee96=>{const _0x4d64cc=_0x5d2955;_0x4fee96===u[_0x4d64cc(0x1be)][_0x4d64cc(0x28e)]?this[_0x4d64cc(0x2d3)]():this[_0x4d64cc(0x257)]();}),this[_0x5d2955(0x2f4)][_0x5d2955(0x2fc)]['pipe'](d[_0x5d2955(0x365)](this[_0x5d2955(0x28f)]))[_0x5d2955(0x281)](_0x2f5d4a=>{const _0x28ec13=_0x5d2955,_0x60c1c0=_0x2f5d4a[_0x28ec13(0x1c8)];_0x60c1c0===m['CollaborationEvent'][_0x28ec13(0x343)]&&this[_0x28ec13(0x300)](_0x2f5d4a),_0x60c1c0===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x28ec13(0x155)](_0x2f5d4a);}),this[_0x5d2955(0x364)](),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x4e4c64=>{const _0x428445=_0x5d2955;if(this[_0x428445(0x297)]&&_0x4e4c64['id']===g[_0x428445(0x1d1)]['id']&&_0x4e4c64[_0x428445(0x2be)][_0x428445(0x1f9)]===this[_0x428445(0x1c0)]){const _0x2d184c=_0x4e4c64[_0x428445(0x2be)];this[_0x428445(0x2db)](_0x2d184c[_0x428445(0x1a3)],_0x2d184c[_0x428445(0x385)][0x0]);}})));}[_0x42373d(0x300)](_0xf22ced){const _0x14904d=_0x42373d;var _0xd92f9e,_0x13d534;const {memberID:_0x4f4210,selection:_0x417086}=_0xf22ced['data'],{sheetName:_0x593b48,range:_0x285e3e}=Ee[_0x14904d(0x24c)](_0x417086),_0x35fe9b={'name':(_0x13d534=(_0xd92f9e=this['_memberService'][_0x14904d(0x1ed)](this[_0x14904d(0x1c0)],_0x4f4210))==null?void 0x0:_0xd92f9e[_0x14904d(0x264)])!=null?_0x13d534:_0x14904d(0x2d2),'range':this[_0x14904d(0x204)](_0x593b48,_0x285e3e),'sheetID':_0x593b48,'color':this[_0x14904d(0x186)][_0x14904d(0x2fd)](_0x4f4210),'selection':_0x417086},_0x4b320c=this[_0x14904d(0x1ce)];_0x4b320c[_0x14904d(0x2c5)](_0x4f4210,_0x35fe9b),this['_cursorInfo$']['next'](_0x4b320c);}[_0x42373d(0x155)](_0x141997){const _0x47658d=_0x42373d,{memberID:_0x1b8173}=_0x141997['data'],_0x2f8582=this['cursorInfo'];_0x2f8582[_0x47658d(0x27a)](_0x1b8173),this[_0x47658d(0x179)][_0x47658d(0x37f)](_0x2f8582);}['_getMergeRange'](_0x2cf0a8,_0xbe25d8){const _0x5b088a=_0x42373d;var _0x11d2eb,_0x339cb6;const _0x1b9ab1=(_0x339cb6=(_0x11d2eb=this[_0x5b088a(0x2d7)][_0x5b088a(0x14a)](this[_0x5b088a(0x1c0)]))==null?void 0x0:_0x11d2eb['getSheetBySheetId'](_0x2cf0a8))==null?void 0x0:_0x339cb6['getMergeData']();return(_0x1b9ab1==null?void 0x0:_0x1b9ab1[_0x5b088a(0x331)](_0x5aca3d=>a[_0x5b088a(0x12d)][_0x5b088a(0x27d)](_0x5aca3d,_0xbe25d8)))||_0xbe25d8;}[_0x42373d(0x364)](){const _0x31251e=_0x42373d,_0x397ffe=new a[(_0x31251e(0x1b7))](),_0x191e78=gt(),_0x8670d7=()=>{const _0x2740c9=_0x31251e;_0x397ffe['dispose']();const _0x1cf68d=(_0x7a9a0c,_0x41cdf7,_0x541b7d,_0x3d4b96)=>{const _0xb646da=_0x45b0;let _0x1e509c=[];switch(_0x7a9a0c['id']){case g[_0xb646da(0x35c)]['DeleteRangeMoveLeftCommandId']:{_0x1e509c=g[_0xb646da(0x26a)](_0x7a9a0c,_0x3d4b96);break;}case g[_0xb646da(0x35c)]['DeleteRangeMoveUpCommandId']:{_0x1e509c=g['handleDeleteRangeMoveUp'](_0x7a9a0c,_0x3d4b96);break;}case g[_0xb646da(0x35c)][_0xb646da(0x221)]:{_0x1e509c=g[_0xb646da(0x272)](_0x7a9a0c,_0x3d4b96);break;}case g[_0xb646da(0x35c)][_0xb646da(0x141)]:{_0x1e509c=g[_0xb646da(0x327)](_0x7a9a0c,_0x3d4b96);break;}case g[_0xb646da(0x35c)][_0xb646da(0x351)]:{_0x1e509c=g[_0xb646da(0x200)](_0x7a9a0c,_0x3d4b96);break;}case g['EffectRefRangId'][_0xb646da(0x14e)]:{_0x1e509c=g[_0xb646da(0x18d)](_0x7a9a0c,_0x3d4b96);break;}case g['EffectRefRangId'][_0xb646da(0x2e0)]:{_0x1e509c=g[_0xb646da(0x2af)](_0x7a9a0c,_0x3d4b96);break;}case g[_0xb646da(0x35c)][_0xb646da(0x1f8)]:{_0x1e509c=g['handleIRemoveCol'](_0x7a9a0c,_0x3d4b96);break;}case g['EffectRefRangId'][_0xb646da(0x1a0)]:{_0x1e509c=g['handleIRemoveRow'](_0x7a9a0c,_0x3d4b96);break;}}const _0x50a260=g['runRefRangeMutations'](_0x1e509c,_0x3d4b96),_0x21ad90=this[_0xb646da(0x1ce)][_0xb646da(0x271)](_0x41cdf7);if(_0x21ad90&&_0x50a260){const _0x281a8b={..._0x21ad90,'range':_0x50a260};this[_0xb646da(0x1ce)][_0xb646da(0x2c5)](_0x41cdf7,_0x281a8b),_0x191e78(()=>{const _0x3aed91=_0xb646da,_0x3eca6d=this[_0x3aed91(0x113)]['registerRefRange'](_0x50a260,_0xfe9c7d=>(_0x3eca6d[_0x3aed91(0x370)](),_0x1cf68d(_0xfe9c7d,_0x41cdf7,_0x541b7d,_0x50a260)));_0x397ffe['add'](_0x3eca6d);});}return{'redos':[],'undos':[]};};this[_0x2740c9(0x1ce)][_0x2740c9(0x21a)]((_0x3e492d,_0x41f86)=>{const _0x3a0c59=_0x2740c9,{range:_0x35ade6,sheetID:_0x31f02f}=_0x3e492d,_0x5a46ee=this[_0x3a0c59(0x113)][_0x3a0c59(0x295)](_0x35ade6,_0x366c5c=>(_0x5a46ee[_0x3a0c59(0x370)](),_0x1cf68d(_0x366c5c,_0x41f86,_0x31f02f,_0x35ade6)));_0x397ffe[_0x3a0c59(0x16f)](_0x5a46ee);});};this[_0x31251e(0x18f)](a[_0x31251e(0x1d2)](this['_cursorInfo$'][_0x31251e(0x281)](()=>{_0x8670d7();})));}['_toggleOnline'](){const _0x334507=_0x42373d;var _0x598140,_0x14051d;if(this[_0x334507(0x297)]=!0x0,((_0x598140=this[_0x334507(0x2d7)][_0x334507(0x1c7)]())==null?void 0x0:_0x598140[_0x334507(0x30a)]())!==this['unitID'])return;const _0x2f2baa=(_0x14051d=this[_0x334507(0x11a)]['get'](g[_0x334507(0x2ee)])[_0x334507(0x244)]())==null?void 0x0:_0x14051d[0x0],_0x4f7a44=this['_univerInstanceService'][_0x334507(0x358)](a[_0x334507(0x32d)][_0x334507(0x2bf)])[_0x334507(0x1b9)]();_0x2f2baa&&_0x4f7a44&&this[_0x334507(0x2db)](_0x4f7a44['getSheetId'](),_0x2f2baa);}[_0x42373d(0x257)](){this['_online']=!0x1;}};Se=ft([A(0x2,a[_0x42373d(0x1e9)](a[_0x42373d(0x1a4)])),A(0x3,a[_0x42373d(0x1e9)](Ce)),A(0x4,a[_0x42373d(0x1e9)](u[_0x42373d(0x1a6)])),A(0x5,a[_0x42373d(0x12e)]),A(0x6,a[_0x42373d(0x241)]),A(0x7,a[_0x42373d(0x1e9)](g[_0x42373d(0x135)]))],Se);var mt=Object[_0x42373d(0x31d)],Ct=(_0x3743f9,_0x10499f,_0x45de76,_0x145f5a)=>{const _0x10623c=_0x42373d;for(var _0x314fb0=_0x145f5a>0x1?void 0x0:_0x145f5a?mt(_0x10499f,_0x45de76):_0x10499f,_0x474035=_0x3743f9[_0x10623c(0x345)]-0x1,_0x5d7f39;_0x474035>=0x0;_0x474035--)(_0x5d7f39=_0x3743f9[_0x474035])&&(_0x314fb0=_0x5d7f39(_0x314fb0)||_0x314fb0);return _0x314fb0;},ie=(_0x3c1697,_0x16349d)=>(_0x29fb0d,_0x124784)=>_0x16349d(_0x29fb0d,_0x124784,_0x3c1697);let x=class extends a['RxDisposable']{constructor(_0x37ff3b,_0x2b0580,_0x2c0948){const _0x4d98c6=_0x42373d;super(),h(this,_0x4d98c6(0x24d),new Map()),h(this,_0x4d98c6(0x342),new d[(_0x4d98c6(0x169))]()),(this[_0x4d98c6(0x2d7)]=_0x37ff3b,this['_injector']=_0x2b0580,this['_collabSessionService']=_0x2c0948,this[_0x4d98c6(0x19a)]());}[_0x42373d(0x370)](){const _0x1afbda=_0x42373d;super[_0x1afbda(0x370)](),this[_0x1afbda(0x342)][_0x1afbda(0x243)](),this[_0x1afbda(0x24d)]['forEach'](_0x1afacc=>_0x1afacc['dispose']());}[_0x42373d(0x127)](_0x328fc8){const _0x1c5aa9=_0x42373d;return this[_0x1c5aa9(0x24d)][_0x1c5aa9(0x261)](_0x328fc8)?this[_0x1c5aa9(0x24d)][_0x1c5aa9(0x271)](_0x328fc8)['cursorInfo$']:this[_0x1c5aa9(0x342)][_0x1c5aa9(0x256)](d[_0x1c5aa9(0x121)](_0xba2a26=>_0xba2a26[_0x1c5aa9(0x1c0)]===_0x328fc8),d[_0x1c5aa9(0x2cc)](_0x121d23=>_0x121d23[_0x1c5aa9(0x26f)]));}['_init'](){const _0x110a95=_0x42373d;this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x110a95(0x2bf)])['pipe'](d[_0x110a95(0x365)](this['dispose$']))[_0x110a95(0x281)](async _0x2e15e2=>{const _0x5ab92b=_0x110a95,_0x48429e=_0x2e15e2['getUnitId'](),_0x512ed1=await this[_0x5ab92b(0x363)](_0x48429e);this['_entityInit$'][_0x5ab92b(0x37f)](_0x512ed1),this[_0x5ab92b(0x24d)][_0x5ab92b(0x2c5)](_0x48429e,_0x512ed1);}),this['_univerInstanceService'][_0x110a95(0x286)](a[_0x110a95(0x32d)][_0x110a95(0x289)])[_0x110a95(0x256)](d[_0x110a95(0x365)](this[_0x110a95(0x28f)]))[_0x110a95(0x256)](d['filter'](_0x517a5d=>!_0x517a5d[_0x110a95(0x30a)]()[_0x110a95(0x1c4)]('__')))[_0x110a95(0x281)](async _0x812a80=>{const _0x466170=_0x110a95,_0x3eee89=_0x812a80[_0x466170(0x30a)](),_0x2a720d=await this[_0x466170(0x2f5)](_0x3eee89);this[_0x466170(0x342)][_0x466170(0x37f)](_0x2a720d),this[_0x466170(0x24d)][_0x466170(0x2c5)](_0x3eee89,_0x2a720d);}),d[_0x110a95(0x38a)](this[_0x110a95(0x2d7)][_0x110a95(0x1e2)](a[_0x110a95(0x32d)][_0x110a95(0x289)]),this[_0x110a95(0x2d7)][_0x110a95(0x1e2)](a[_0x110a95(0x32d)][_0x110a95(0x2bf)]))[_0x110a95(0x256)](d[_0x110a95(0x365)](this[_0x110a95(0x28f)]))[_0x110a95(0x281)](_0x3d74aa=>{const _0x1957af=_0x110a95,_0x1be8e2=_0x3d74aa[_0x1957af(0x30a)](),_0x41af87=this[_0x1957af(0x24d)][_0x1957af(0x271)](_0x1be8e2);_0x41af87&&(_0x41af87['dispose'](),this[_0x1957af(0x24d)]['delete'](_0x1be8e2));});}async[_0x42373d(0x363)](_0x117698){const _0x2d5af7=_0x42373d,_0x312aca=await this[_0x2d5af7(0x148)]['requireSession'](_0x117698),_0x37a9a2=this['_injector'][_0x2d5af7(0x32f)](Se,_0x117698,_0x312aca);return _0x37a9a2[_0x2d5af7(0x333)](),_0x37a9a2;}async[_0x42373d(0x2f5)](_0x1a1c1c){const _0x4095b1=_0x42373d,_0x1f2bfa=await this[_0x4095b1(0x148)][_0x4095b1(0x283)](_0x1a1c1c),_0x703b62=this[_0x4095b1(0x11a)][_0x4095b1(0x32f)](de,_0x1a1c1c,_0x1f2bfa);return _0x703b62[_0x4095b1(0x333)](),_0x703b62;}};x=Ct([ie(0x0,a[_0x42373d(0x12e)]),ie(0x1,a[_0x42373d(0x1e9)](a[_0x42373d(0x1a4)])),ie(0x2,a['Inject'](u[_0x42373d(0x2ac)]))],x);const W=0x14,Te=0xc8,ne=0x4,pt=0x5;function Et(_0x19edce,_0x526163){const _0x14fba9=_0x42373d;let {radius:_0x219cb1,width:_0x1e6f17,height:_0x39938b}=_0x526163;_0x219cb1=_0x219cb1!=null?_0x219cb1:0x0,_0x1e6f17=_0x1e6f17!=null?_0x1e6f17:0x1e,_0x39938b=_0x39938b!=null?_0x39938b:0x1e;let _0x5b7019=0x0,_0x4a054c=0x0,_0x3cddc6=0x0;_0x5b7019=_0x4a054c=_0x3cddc6=Math[_0x14fba9(0x138)](_0x219cb1,_0x1e6f17/0x2,_0x39938b/0x2),_0x19edce[_0x14fba9(0x310)](),_0x19edce[_0x14fba9(0x124)](_0x5b7019,0x0),_0x19edce[_0x14fba9(0x15d)](_0x1e6f17-_0x4a054c,0x0),_0x19edce[_0x14fba9(0x308)](_0x1e6f17-_0x4a054c,_0x4a054c,_0x4a054c,Math['PI']*0x3/0x2,0x0,!0x1),_0x19edce[_0x14fba9(0x15d)](_0x1e6f17,_0x39938b-_0x3cddc6),_0x19edce[_0x14fba9(0x308)](_0x1e6f17-_0x3cddc6,_0x39938b-_0x3cddc6,_0x3cddc6,0x0,Math['PI']/0x2,!0x1),_0x19edce[_0x14fba9(0x15d)](0x0,_0x39938b),_0x19edce[_0x14fba9(0x15d)](0x0,_0x5b7019),_0x19edce[_0x14fba9(0x308)](_0x5b7019,_0x5b7019,_0x5b7019,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x19edce['closePath'](),_0x526163['fill']&&(_0x19edce[_0x14fba9(0x245)](),_0x19edce[_0x14fba9(0x198)]=_0x526163[_0x14fba9(0x194)],_0x526163[_0x14fba9(0x177)]===_0x14fba9(0x325)?_0x19edce[_0x14fba9(0x194)](_0x14fba9(0x325)):_0x19edce[_0x14fba9(0x194)](),_0x19edce['restore']());}class ee extends p[_0x42373d(0x263)]{constructor(_0x1e5ac8,_0x2f9d30){const _0x50b449=_0x42373d;super(_0x1e5ac8,_0x2f9d30),h(this,_0x50b449(0x309)),h(this,_0x50b449(0x269)),(this[_0x50b449(0x309)]=_0x2f9d30==null?void 0x0:_0x2f9d30[_0x50b449(0x309)],this[_0x50b449(0x269)]=_0x2f9d30==null?void 0x0:_0x2f9d30[_0x50b449(0x269)]);}static[_0x42373d(0x181)](_0x2bde24,_0x369754){const _0x567376=_0x42373d,{text:_0x3f0bb7,color:_0x55ec6f}=_0x369754;_0x2bde24[_0x567376(0x245)](),_0x2bde24[_0x567376(0x22b)]=_0x567376(0x2ce);const _0x165abc=_0x2bde24['measureText'](_0x3f0bb7)[_0x567376(0x253)],_0x53b016=Math[_0x567376(0x138)](_0x165abc+0x2*ne,Te);Et(_0x2bde24,{'height':W,'radius':0x4,'width':_0x53b016,'fill':_0x55ec6f}),_0x2bde24['fillStyle']=_0x567376(0x361);const _0x2891b3=ne,_0x26243e=W-pt,_0x388894=Te-0x2*ne;if(_0x165abc>_0x388894){let _0x20cbc6='',_0x1631e9=0x0;for(const _0xcf2a9f of _0x3f0bb7){const _0x3864c2=_0x2bde24[_0x567376(0x2c9)](_0xcf2a9f)[_0x567376(0x253)];if(_0x1631e9+_0x3864c2<=_0x388894-_0x2bde24['measureText'](_0x567376(0x2e5))[_0x567376(0x253)])_0x20cbc6+=_0xcf2a9f,_0x1631e9+=_0x3864c2;else{_0x20cbc6+=_0x567376(0x2e5);break;}}_0x2bde24[_0x567376(0x119)](_0x20cbc6,_0x2891b3,_0x26243e);}else _0x2bde24[_0x567376(0x119)](_0x3f0bb7,_0x2891b3,_0x26243e);_0x2bde24[_0x567376(0x1c5)]();}[_0x42373d(0x11e)](_0x2cb306){const _0x45b9ba=_0x42373d;ee[_0x45b9ba(0x181)](_0x2cb306,this);}}const re=_0x42373d(0x1fe),bt='collab-text-range-',Ot='collab-rect-range-',F=0x6,Tt=1.5,oe=0x4,Rt=1.5,Dt='rgba(255,\x20255,\x20255,\x200.01)';class Re{constructor(_0x559c45,_0x1ca489,_0x103431,_0x2a21eb){const _0x257e8b=_0x42373d;h(this,_0x257e8b(0x23c),[]),h(this,_0x257e8b(0x296),null),h(this,'_textBubble',null),h(this,_0x257e8b(0x22a),null),h(this,'_hideTimer',null),h(this,_0x257e8b(0x273),null),(this['_cursor']=_0x559c45,this[_0x257e8b(0x30e)]=_0x1ca489,this[_0x257e8b(0x2bc)]=_0x103431,this[_0x257e8b(0x2e2)]=_0x2a21eb,this['_render']());}set[_0x42373d(0x1d0)](_0x1361f8){const _0x182d9e=_0x42373d;_0x1361f8?(this[_0x182d9e(0x22a)]&&this[_0x182d9e(0x22a)][_0x182d9e(0x20a)](),this['_textBubble']&&this[_0x182d9e(0x1e1)][_0x182d9e(0x224)]()):(this[_0x182d9e(0x22a)]&&this[_0x182d9e(0x22a)]['show'](),this[_0x182d9e(0x1e1)]&&this[_0x182d9e(0x1e1)][_0x182d9e(0x20a)]());}[_0x42373d(0x370)](){const _0x544a24=_0x42373d;for(const _0x28dc6f of this[_0x544a24(0x23c)])_0x28dc6f[_0x544a24(0x370)]();this[_0x544a24(0x1e1)]&&this[_0x544a24(0x1e1)][_0x544a24(0x370)](),this[_0x544a24(0x22a)]&&this['_anchorDot'][_0x544a24(0x370)](),this[_0x544a24(0x296)]&&this['_anchor'][_0x544a24(0x370)](),this[_0x544a24(0x273)]&&this['_eventUnsubscribe']();}[_0x42373d(0x32c)](){const _0x4ecb8e=_0x42373d;var _0x18e56e;const {_docSkeleton:_0x2c6650,_document:_0x538744}=this,{color:_0x4d9beb,name:_0x2a7dc8,ranges:_0x540951}=this[_0x4ecb8e(0x190)],_0x21bbeb=_0x538744[_0x4ecb8e(0x231)](),{docsLeft:_0x50d54d,docsTop:_0x5d402f}=_0x21bbeb,_0x192493=new E[(_0x4ecb8e(0x25b))](_0x21bbeb,_0x2c6650);for(const {startOffset:_0x206058,endOffset:_0x3166f9,rangeType:_0x44d608,segmentId:_0x56e142,segmentPage:_0x111cbb,collapsed:_0x205903,isActive:_0x127c33}of _0x540951){const _0x51436c=_0x2c6650[_0x4ecb8e(0x174)](_0x206058,!0x0,_0x56e142,_0x111cbb);let _0x366891=_0x2c6650[_0x4ecb8e(0x174)](_0x3166f9,!0x0,_0x56e142,_0x111cbb);if(_0x366891==null&&(_0x366891=_0x2c6650[_0x4ecb8e(0x174)](_0x3166f9-0x1,!0x1,_0x56e142,_0x111cbb)),_0x127c33){const {contentBoxPointGroup:_0x2dd74b}=_0x192493[_0x4ecb8e(0x16c)](_0x366891,_0x366891);if(_0x2dd74b['length']===0x0)continue;this[_0x4ecb8e(0x248)](_0x4d9beb,_0x2dd74b,_0x50d54d,_0x5d402f,_0x2a7dc8),this[_0x4ecb8e(0x273)]=this[_0x4ecb8e(0x299)]();}if(_0x51436c&&_0x366891){if(_0x44d608===a[_0x4ecb8e(0x35e)]['RECT']){const _0x19fc59=new E[(_0x4ecb8e(0x266))](_0x21bbeb,_0x2c6650),{pointGroup:_0x6a6273}=(_0x18e56e=_0x19fc59[_0x4ecb8e(0x16c)](_0x51436c,_0x366891))!=null?_0x18e56e:{};if(_0x6a6273==null||_0x6a6273[_0x4ecb8e(0x345)]===0x0)continue;this[_0x4ecb8e(0x34a)](_0x4d9beb,_0x6a6273,_0x50d54d,_0x5d402f);}else{if(!_0x205903){const {borderBoxPointGroup:_0xef353e}=_0x192493[_0x4ecb8e(0x16c)](_0x51436c,_0x366891);if(_0xef353e[_0x4ecb8e(0x345)]===0x0)continue;this[_0x4ecb8e(0x19f)](_0x4d9beb,_0xef353e,_0x50d54d,_0x5d402f);}}}}}[_0x42373d(0x248)](_0x3fa5ac,_0x1ff117,_0x1e8bcd,_0x33db19,_0x29d1c1){const _0x61c95c=_0x42373d,_0x376091=this[_0x61c95c(0x357)](_0x1ff117),{left:_0x5d8bc4,top:_0x16cd76,height:_0x441b4f}=_0x376091,_0x286d73=this['_getScale'](),_0x51c391=Rt/_0x286d73,_0x3e9424=new p[(_0x61c95c(0x35f))](re+a[_0x61c95c(0x2b0)](F),{'left':_0x5d8bc4+_0x1e8bcd-_0x51c391,'top':_0x16cd76+_0x33db19,'height':_0x441b4f,'width':Tt,'fill':_0x3fa5ac||p[_0x61c95c(0x1da)](a[_0x61c95c(0x219)][_0x61c95c(0x381)],0x0),'strokeWidth':_0x51c391,'stroke':Dt,'evented':!0x0});this['_anchor']=_0x3e9424,this[_0x61c95c(0x30e)][_0x61c95c(0x27b)](_0x3e9424,E[_0x61c95c(0x319)]);const _0x5bf604=new p[(_0x61c95c(0x35f))](re+a[_0x61c95c(0x2b0)](F),{'left':_0x5d8bc4+_0x1e8bcd-_0x51c391,'top':_0x16cd76+_0x33db19-oe/0x2,'height':oe,'width':oe,'fill':_0x3fa5ac||p[_0x61c95c(0x1da)](a[_0x61c95c(0x219)][_0x61c95c(0x381)],0x0),'strokeWidth':0x0,'stroke':_0x3fa5ac||p[_0x61c95c(0x1da)](a['COLORS']['black'],0x0),'evented':!0x1});this[_0x61c95c(0x22a)]=_0x5bf604,this['_scene'][_0x61c95c(0x27b)](_0x5bf604,E['TEXT_RANGE_LAYER_INDEX']);const _0x11dccb=new ee(re+a['generateRandomId'](F),{'left':_0x5d8bc4+_0x1e8bcd-_0x51c391,'top':_0x16cd76+_0x33db19-W,'text':_0x29d1c1,'color':_0x3fa5ac});this[_0x61c95c(0x1e1)]=_0x11dccb,this['_scene'][_0x61c95c(0x27b)](_0x11dccb,E[_0x61c95c(0x319)]),this[_0x61c95c(0x1d0)]=!0x1;}[_0x42373d(0x299)](){const _0x3bcf98=_0x42373d,_0x1dc4af=this[_0x3bcf98(0x296)][_0x3bcf98(0x1b3)][_0x3bcf98(0x10f)](()=>{this['_hover']=!0x0;}),_0x4978d2=this[_0x3bcf98(0x296)][_0x3bcf98(0x288)][_0x3bcf98(0x10f)](()=>{const _0x5d68ac=_0x3bcf98;this[_0x5d68ac(0x30f)]&&clearTimeout(this[_0x5d68ac(0x30f)]),this[_0x5d68ac(0x30f)]=setTimeout(()=>{const _0x36b152=_0x5d68ac;this[_0x36b152(0x1d0)]=!0x1;},0x7d0);});return()=>{const _0x49d852=_0x3bcf98;_0x1dc4af[_0x49d852(0x13d)](),_0x4978d2[_0x49d852(0x13d)]();};}[_0x42373d(0x19f)](_0x4c6024,_0x577229,_0x468f3b,_0x45f04e){const _0x6c44d3=_0x42373d,_0x3074f4=new a['ColorKit'](_0x4c6024)['setAlpha'](0.2)[_0x6c44d3(0x2b7)](),_0x123b1d=new p[(_0x6c44d3(0x1f1))](bt+a[_0x6c44d3(0x2b0)](F),{'pointsGroup':_0x577229,'fill':_0x3074f4||p[_0x6c44d3(0x1da)](a[_0x6c44d3(0x219)][_0x6c44d3(0x381)],0.2),'left':_0x468f3b,'top':_0x45f04e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x6c44d3(0x23c)][_0x6c44d3(0x11d)](_0x123b1d),this[_0x6c44d3(0x30e)][_0x6c44d3(0x27b)](_0x123b1d,E['TEXT_RANGE_LAYER_INDEX']);}[_0x42373d(0x34a)](_0x49740e,_0x106fba,_0x801a58,_0x1f734f){const _0x646494=_0x42373d,_0x5e69c0=new a[(_0x646494(0x2e1))](_0x49740e)[_0x646494(0x22c)](0.2)['toRgbString'](),_0xaeb861=new p[(_0x646494(0x1f1))](Ot+a[_0x646494(0x2b0)](F),{'pointsGroup':_0x106fba,'fill':_0x5e69c0||p['getColor'](a['COLORS'][_0x646494(0x381)],0.2),'left':_0x801a58,'top':_0x1f734f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x646494(0x23c)]['push'](_0xaeb861),this[_0x646494(0x30e)][_0x646494(0x27b)](_0xaeb861,E[_0x646494(0x319)]);}[_0x42373d(0x357)](_0x3dc577){const _0x205f04=_0x3dc577[0x0],_0x169826=_0x205f04[0x0],_0x5c6ee2=_0x205f04[0x2],{x:_0x3f8964,y:_0x187251}=_0x169826,{x:_0x3f2773,y:_0x26fc51}=_0x5c6ee2;return{'left':_0x3f8964,'top':_0x187251,'width':_0x3f2773-_0x3f8964,'height':_0x26fc51-_0x187251};}[_0x42373d(0x1b2)](){const _0x18e959=_0x42373d,{scaleX:_0x5f0518,scaleY:_0x235a46}=this[_0x18e959(0x30e)][_0x18e959(0x29e)]();return Math['max'](_0x5f0518,_0x235a46);}}var Ut=Object[_0x42373d(0x31d)],Nt=(_0x5cd0e4,_0x252fdf,_0x32a1a8,_0x443507)=>{const _0x57fd8e=_0x42373d;for(var _0x26743f=_0x443507>0x1?void 0x0:_0x443507?Ut(_0x252fdf,_0x32a1a8):_0x252fdf,_0x5d73e5=_0x5cd0e4[_0x57fd8e(0x345)]-0x1,_0x5421f1;_0x5d73e5>=0x0;_0x5d73e5--)(_0x5421f1=_0x5cd0e4[_0x5d73e5])&&(_0x26743f=_0x5421f1(_0x26743f)||_0x26743f);return _0x26743f;},X=(_0x239178,_0x5055aa)=>(_0x2c87a4,_0xed8a11)=>_0x5055aa(_0x2c87a4,_0xed8a11,_0x239178);let fe=class extends a[_0x42373d(0x139)]{constructor(_0x185d59,_0x4c451d,_0x218a60,_0x3c0088,_0x335793){const _0x3cccd8=_0x42373d;super(),h(this,'_cursorShapes',[]),h(this,_0x3cccd8(0x216),[]),(this['_context']=_0x185d59,this[_0x3cccd8(0x16a)]=_0x4c451d,this[_0x3cccd8(0x386)]=_0x218a60,this[_0x3cccd8(0x22d)]=_0x3c0088,this[_0x3cccd8(0x29a)]=_0x335793,this[_0x3cccd8(0x19a)]());}[_0x42373d(0x19a)](){const _0x500e0a=_0x42373d,_0x35ed24=this[_0x500e0a(0x250)]['unitId'],_0x5534ea=this[_0x500e0a(0x16a)];this[_0x500e0a(0x18f)](d[_0x500e0a(0x13a)]([this[_0x500e0a(0x386)][_0x500e0a(0x127)](_0x35ed24),this['_themeService']['currentTheme$']])[_0x500e0a(0x256)]($[_0x500e0a(0x34c)](([_0xfe4889,_0xadc884])=>({'skeleton':_0x5534ea[_0x500e0a(0x130)](),'cursors':[..._0xfe4889[_0x500e0a(0x1f0)]()]['flatMap'](_0x1d68a0=>({..._0x1d68a0,'color':this[_0x500e0a(0x29a)][_0x500e0a(0x1b0)](_0x1d68a0[_0x500e0a(0x309)])}))})))[_0x500e0a(0x281)](_0x2d6c4b=>{const _0x1a8117=_0x500e0a;if(this['_removeCollabCursors'](),_0x2d6c4b){const {skeleton:_0x18f43a,cursors:_0x1fd906}=_0x2d6c4b;this[_0x1a8117(0x246)](_0x18f43a,_0x1fd906);}})),this[_0x500e0a(0x36c)](),this[_0x500e0a(0x32a)]();}['_updateCollabCursors'](_0x37baed,_0x44a7a6){const _0x3c60c9=_0x42373d,{scene:_0x4ba173,mainComponent:_0x6a8429}=this[_0x3c60c9(0x250)],_0x271df9=_0x44a7a6[_0x3c60c9(0x34c)](_0xcf8f52=>new Re(_0xcf8f52,_0x4ba173,_0x37baed,_0x6a8429));this[_0x3c60c9(0x1a9)]=_0x271df9,this[_0x3c60c9(0x216)]=_0x44a7a6;}[_0x42373d(0x1cd)](){const _0x4c945f=_0x42373d;this[_0x4c945f(0x1b5)]();const {scene:_0x253bc5,mainComponent:_0x525f09}=this['_context'],_0x2ae0f5=this[_0x4c945f(0x16a)][_0x4c945f(0x130)](),_0x147742=this[_0x4c945f(0x216)][_0x4c945f(0x34c)](_0x1dd712=>new Re(_0x1dd712,_0x253bc5,_0x2ae0f5,_0x525f09));this['_cursorShapes']=_0x147742;}[_0x42373d(0x1b5)](){const _0x4a87ee=_0x42373d;this['_cursorShapes'][_0x4a87ee(0x21a)](_0x233c58=>_0x233c58[_0x4a87ee(0x370)]()),this[_0x4a87ee(0x1a9)]=[];}[_0x42373d(0x32a)](){const _0x58328d=_0x42373d,_0x3b3bb9=[E['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x58328d(0x22d)]['onCommandExecuted'](_0x1f45d5=>{const _0x215680=_0x58328d;_0x3b3bb9['includes'](_0x1f45d5['id'])&&_0x1f45d5['params'][_0x215680(0x1f9)]===this[_0x215680(0x250)][_0x215680(0x1f9)]&&this[_0x215680(0x1cd)]();}));}[_0x42373d(0x36c)](){const _0x2bfad7=_0x42373d;this['disposeWithMe'](a[_0x2bfad7(0x260)](this[_0x2bfad7(0x250)][_0x2bfad7(0x2e4)][_0x2bfad7(0x193)])['pipe']($[_0x2bfad7(0x121)](_0xcf33bf=>_0xcf33bf[_0x2bfad7(0x2e9)]===p[_0x2bfad7(0x15b)]['resize']),$['throttleTime'](0x10))[_0x2bfad7(0x281)](()=>{const _0x15f4c0=_0x2bfad7;this[_0x15f4c0(0x1cd)]();}));}};fe=Nt([X(0x1,a[_0x42373d(0x1e9)](Y['DocSkeletonManagerService'])),X(0x2,a[_0x42373d(0x1e9)](x)),X(0x3,a['ICommandService']),X(0x4,a[_0x42373d(0x1e9)](a[_0x42373d(0x2f8)]))],fe);const Mt=0x1,Lt=1.5;class $e extends p['Shape']{constructor(_0x405be4,_0x285756){const _0x21c578=_0x42373d;super(_0x405be4,_0x285756),h(this,_0x21c578(0x251)),h(this,_0x21c578(0x166),!0x1),h(this,_0x21c578(0x14f)),h(this,'_name',''),h(this,_0x21c578(0x2b1),_0x21c578(0x339)),h(this,_0x21c578(0x2c2)),(_0x285756&&this['setShapeProps'](_0x285756),this[_0x21c578(0x1b3)][_0x21c578(0x10f)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x21c578(0x288)][_0x21c578(0x10f)](()=>this[_0x21c578(0x2bb)]({'hovered':!0x1})));}['setShapeProps'](_0x14580c){const _0x54ed4c=_0x42373d;var _0x1262c1,_0x43b9be,_0x17905c,_0x57b078,_0x102fdc,_0x8981c7;this['_color']=(_0x1262c1=_0x14580c[_0x54ed4c(0x309)])!=null?_0x1262c1:this[_0x54ed4c(0x251)],this['_hovered']=(_0x43b9be=_0x14580c[_0x54ed4c(0x1c9)])!=null?_0x43b9be:this['_hovered'],this[_0x54ed4c(0x14f)]=(_0x17905c=_0x14580c[_0x54ed4c(0x213)])!=null?_0x17905c:this['_range'],this['_name']=(_0x57b078=_0x14580c[_0x54ed4c(0x264)])!=null?_0x57b078:this[_0x54ed4c(0x203)],this[_0x54ed4c(0x2b1)]=(_0x102fdc=_0x14580c[_0x54ed4c(0x30d)])!=null?_0x102fdc:this['_labelPosition'],this[_0x54ed4c(0x2c2)]=(_0x8981c7=_0x14580c[_0x54ed4c(0x1a1)])!=null?_0x8981c7:this[_0x54ed4c(0x2c2)],this[_0x54ed4c(0x34b)]({'width':_0x14580c[_0x54ed4c(0x253)],'height':_0x14580c[_0x54ed4c(0x303)]});}[_0x42373d(0x30b)](_0x44a026){const _0x6ffae7=_0x42373d,{row:_0x25eb5a,column:_0x2db891}=_0x44a026;if(_0x25eb5a>=this[_0x6ffae7(0x14f)][_0x6ffae7(0x304)]&&_0x25eb5a<=this[_0x6ffae7(0x14f)][_0x6ffae7(0x14b)]&&_0x2db891>=this[_0x6ffae7(0x14f)][_0x6ffae7(0x1d7)]&&_0x2db891<=this[_0x6ffae7(0x14f)][_0x6ffae7(0x17f)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x6ffae7(0x2bb)]({'hovered':!0x1});}[_0x42373d(0x23d)](_0xa23225){return!0x1;}[_0x42373d(0x11e)](_0x1475e9){const _0x5a1d57=_0x42373d;p[_0x5a1d57(0x35f)][_0x5a1d57(0x181)](_0x1475e9,{'width':this[_0x5a1d57(0x253)],'height':this[_0x5a1d57(0x303)],'strokeWidth':Lt,'stroke':this[_0x5a1d57(0x251)],'evented':!0x1,'fill':this[_0x5a1d57(0x2c2)]}),this['_hovered']&&(_0x1475e9['save'](),_0x1475e9[_0x5a1d57(0x13b)](0x1,0x0,0x0,0x1,this[_0x5a1d57(0x253)],this['_labelPosition']==='bottom'?0x0:-W),ee[_0x5a1d57(0x181)](_0x1475e9,{'text':this['_name'],'color':this['_color']}),_0x1475e9['restore']());}}var Pt=Object[_0x42373d(0x31d)],wt=(_0x54b36f,_0x4eb2e3,_0x5f3f9f,_0x45827b)=>{const _0x51438b=_0x42373d;for(var _0x3a4ac7=_0x45827b>0x1?void 0x0:_0x45827b?Pt(_0x4eb2e3,_0x5f3f9f):_0x4eb2e3,_0x46b005=_0x54b36f[_0x51438b(0x345)]-0x1,_0x247277;_0x46b005>=0x0;_0x46b005--)(_0x247277=_0x54b36f[_0x46b005])&&(_0x3a4ac7=_0x247277(_0x3a4ac7)||_0x3a4ac7);return _0x3a4ac7;},ae=(_0x3b86cb,_0x104780)=>(_0x1ade97,_0x49aa52)=>_0x104780(_0x1ade97,_0x49aa52,_0x3b86cb);const At=0x1389;let Ie=class extends a[_0x42373d(0x139)]{constructor(_0x3384a1,_0x73a6d0,_0x553a82,_0x4f89c6){const _0x28562f=_0x42373d;super(),h(this,'_cursors',new Set()),h(this,_0x28562f(0x18b),null),(this[_0x28562f(0x250)]=_0x3384a1,this['_sheetSkeletonManagerService']=_0x73a6d0,this[_0x28562f(0x386)]=_0x553a82,this[_0x28562f(0x29a)]=_0x4f89c6,this['_init']());}[_0x42373d(0x19a)](){const _0x37e244=_0x42373d;this[_0x37e244(0x389)][_0x37e244(0x1ea)][_0x37e244(0x256)]($['takeUntil'](this[_0x37e244(0x28f)]),$[_0x37e244(0x2cc)](_0x420428=>{const _0x58c608=_0x37e244;if(_0x420428){const _0x403758=_0x420428[_0x58c608(0x112)];return d[_0x58c608(0x13a)](this['_collabCursorController'][_0x58c608(0x127)](this[_0x58c608(0x250)]['unitId']),this[_0x58c608(0x29a)][_0x58c608(0x1e4)])[_0x58c608(0x256)]($[_0x58c608(0x34c)](([_0x3257f2,_0x5a809e])=>{const _0xa0381d=_0x58c608,_0x46b733=new Map();return _0x3257f2[_0xa0381d(0x21a)]((_0x11b9ed,_0x420652)=>{const _0x534b19=_0xa0381d;if(_0x11b9ed[_0x534b19(0x2ea)]===_0x403758){const _0x18ff10={..._0x11b9ed};_0x18ff10[_0x534b19(0x309)]=this[_0x534b19(0x29a)]['getColorFromTheme'](_0x11b9ed[_0x534b19(0x309)]),_0x46b733['set'](_0x420652,_0x18ff10);}}),{'skeleton':_0x420428,'cursors':_0x46b733};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x37e244(0x281)](({skeleton:_0x1d60ce,cursors:_0xb4b27d})=>{const _0x4b590a=_0x37e244;this[_0x4b590a(0x1b5)](),_0x1d60ce&&this[_0x4b590a(0x246)](_0x1d60ce,_0xb4b27d);}),this[_0x37e244(0x389)][_0x37e244(0x1ea)][_0x37e244(0x281)](_0x7584b1=>{const _0x2c030b=_0x37e244;if(_0x7584b1==null)return;const {skeleton:_0x141c78}=_0x7584b1,{scene:_0x3fe21e}=this['_context'];_0x3fe21e[_0x2c030b(0x312)][_0x2c030b(0x10f)](a[_0x2c030b(0x2b3)](_0x37fd49=>{const _0x1fbaea=_0x2c030b;var _0x4f8f40,_0x2bdb71;const {offsetX:_0x1fbb23,offsetY:_0x2290ca}=_0x37fd49,{x:_0x50f330,y:_0x2ba789}=_0x3fe21e[_0x1fbaea(0x255)](p[_0x1fbaea(0x290)]['FromArray']([_0x1fbb23,_0x2290ca])),{scaleX:_0x452a5e,scaleY:_0x54c2a9}=_0x3fe21e[_0x1fbaea(0x29e)](),_0x33da9d=_0x3fe21e['getViewport'](p[_0x1fbaea(0x37a)]['VIEW_MAIN']),_0x533ee1=_0x3fe21e['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x1fbaea(0x1dc)]([_0x50f330,_0x2ba789]),_0x33da9d),_0x4214fb=_0x141c78[_0x1fbaea(0x31c)](_0x1fbb23,_0x2290ca,_0x452a5e,_0x54c2a9,_0x533ee1);((_0x4f8f40=this[_0x1fbaea(0x18b)])==null?void 0x0:_0x4f8f40[_0x1fbaea(0x106)])===_0x4214fb['column']&&((_0x2bdb71=this['_lastPointer'])==null?void 0x0:_0x2bdb71[_0x1fbaea(0x1e3)])===_0x4214fb[_0x1fbaea(0x1e3)]||this[_0x1fbaea(0x216)][_0x1fbaea(0x21a)](_0x494141=>{_0x494141['onMouseMove'](_0x4214fb);});},0x64));});}[_0x42373d(0x246)](_0x1ff7c2,_0x1f44fd){const _0x16b342=_0x42373d;var _0x5450ab;const _0x328886=(_0x5450ab=this[_0x16b342(0x389)][_0x16b342(0x153)]())==null?void 0x0:_0x5450ab[_0x16b342(0x114)];if(!_0x328886)return;const _0x5eb809=this[_0x16b342(0x252)]();if(!_0x5eb809)return;this[_0x16b342(0x216)][_0x16b342(0x21a)](_0x1d81a5=>{_0x1d81a5['makeDirty']();});const {scene:_0x1561bb}=_0x5eb809,_0x1eda7c=yt(Array['from'](_0x1f44fd[_0x16b342(0x1f0)]()))[_0x16b342(0x34c)](_0x41ad5b=>{const _0x401389=_0x16b342,{color:_0x5898d3,range:_0xb65ac1,name:_0x17c6de,selection:_0x42e466,sheetID:_0x455cf9}=_0x41ad5b,{startColumn:_0x50952e,startRow:_0x23a692,endColumn:_0x4997f5,endRow:_0x38eff8}=_0xb65ac1,_0x20ebee=G[_0x401389(0x267)](_0x23a692,_0x50952e,_0x1561bb,_0x328886),_0x5422a5=G['getCoordByCell'](_0x38eff8,_0x4997f5,_0x1561bb,_0x328886),{columnHeaderHeightAndMarginTop:_0x40546b}=_0x328886,{startX:_0x238e79,startY:_0x2a62db}=_0x20ebee,{endX:_0x525aab,endY:_0x5725ed}=_0x5422a5,_0x46d04e=_0x525aab-_0x238e79,_0x27fabb=_0x5725ed-_0x2a62db,_0x491890={'labelPosition':_0x2a62db-_0x40546b>=W?'top':_0x401389(0x349),'sheetID':_0x455cf9,'range':_0xb65ac1,'color':_0x5898d3,'name':_0x17c6de,'selection':_0x42e466,'left':_0x238e79,'top':_0x2a62db,'width':_0x46d04e,'height':_0x27fabb,'evented':!0x1,'zIndex':At};return new $e(_0x17c6de,_0x491890);});_0x1561bb['addObjects'](_0x1eda7c,Mt),this[_0x16b342(0x216)]=new Set(_0x1eda7c);}[_0x42373d(0x1b5)](){const _0x132d8a=_0x42373d;var _0x433f71;(_0x433f71=this[_0x132d8a(0x216)])==null||_0x433f71[_0x132d8a(0x21a)](_0x533015=>_0x533015[_0x132d8a(0x370)]());}[_0x42373d(0x252)](){const _0xffb580=_0x42373d;return G[_0xffb580(0x338)](this[_0xffb580(0x250)][_0xffb580(0x132)],this[_0xffb580(0x250)]);}};Ie=wt([ae(0x1,a[_0x42373d(0x1e9)](G[_0x42373d(0x33b)])),ae(0x2,a[_0x42373d(0x1e9)](x)),ae(0x3,a['Inject'](a['ThemeService']))],Ie);function yt(_0x425033){const _0x4394f5=_0x42373d,_0x48b074=new Map();return _0x425033[_0x4394f5(0x21a)](_0x4ee3a3=>{const _0x5d2915=_0x4394f5;if(_0x48b074[_0x5d2915(0x261)](_0x4ee3a3[_0x5d2915(0x162)])){const _0x493264=_0x48b074[_0x5d2915(0x271)](_0x4ee3a3[_0x5d2915(0x162)]);_0x493264[_0x5d2915(0x264)]+=',\x20'+_0x4ee3a3[_0x5d2915(0x264)];}else _0x48b074[_0x5d2915(0x2c5)](_0x4ee3a3['selection'],_0x4ee3a3);}),Array[_0x4394f5(0x2ab)](_0x48b074[_0x4394f5(0x1f0)]());}var $t=Object[_0x42373d(0x31d)],xt=(_0x2f708d,_0x2228d4,_0x474ca6,_0x43964f)=>{for(var _0x994a8b=_0x43964f>0x1?void 0x0:_0x43964f?$t(_0x2228d4,_0x474ca6):_0x2228d4,_0xa2e6db=_0x2f708d['length']-0x1,_0x3e7216;_0xa2e6db>=0x0;_0xa2e6db--)(_0x3e7216=_0x2f708d[_0xa2e6db])&&(_0x994a8b=_0x3e7216(_0x994a8b)||_0x994a8b);return _0x994a8b;},y=(_0x244c49,_0x18650f)=>(_0x29b5cf,_0x1c8b5c)=>_0x18650f(_0x29b5cf,_0x1c8b5c,_0x244c49);let q=class extends a['Disposable']{constructor(_0x5363cc,_0x35707c,_0x17f079,_0x26f251,_0xa9d1d1,_0x52f66b){const _0xde8b6c=_0x42373d;super(),this['_beforeCloseService']=_0x5363cc,this[_0xde8b6c(0x19e)]=_0x35707c,this['_collaborationUIEventService']=_0x17f079,this[_0xde8b6c(0x341)]=_0x26f251,this[_0xde8b6c(0x268)]=_0xa9d1d1,this['_localeService']=_0x52f66b,this[_0xde8b6c(0x298)](),this[_0xde8b6c(0x287)]();}[_0x42373d(0x298)](){const _0x5cc42a=_0x42373d;this[_0x5cc42a(0x18f)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x41b3a7=_0x5cc42a;if(this[_0x41b3a7(0x19e)][_0x41b3a7(0x30c)]['size'])return this[_0x41b3a7(0x2a1)]['t'](_0x41b3a7(0x26c));}));}['_initEvent'](){const _0x53e345=_0x42373d;this[_0x53e345(0x18f)](this['_collaborationUIEventService'][_0x53e345(0x2fc)][_0x53e345(0x281)](_0x4f8c49=>{const _0x5d2cc4=_0x53e345;_0x4f8c49['id']===u[_0x5d2cc4(0x15a)][_0x5d2cc4(0x196)]&&this[_0x5d2cc4(0x341)][_0x5d2cc4(0x224)]({'type':D['MessageType'][_0x5d2cc4(0x2a2)],'content':this[_0x5d2cc4(0x2a1)]['t'](_0x5d2cc4(0x183))}),_0x4f8c49['id']===u[_0x5d2cc4(0x15a)][_0x5d2cc4(0x28c)]&&this[_0x5d2cc4(0x341)]['show']({'type':D[_0x5d2cc4(0x24f)]['Warning'],'content':this[_0x5d2cc4(0x2a1)]['t']('collaboration.closeRoom')}),_0x4f8c49['id']===u[_0x5d2cc4(0x15a)][_0x5d2cc4(0x167)]&&this['_notificationService']['show']({'title':this['_localeService']['t'](_0x5d2cc4(0x382)),'content':this[_0x5d2cc4(0x2a1)]['t'](_0x5d2cc4(0x1b1)),'type':_0x5d2cc4(0x2e8),'duration':0x0}),_0x4f8c49['id']===u[_0x5d2cc4(0x15a)][_0x5d2cc4(0x205)]&&this[_0x5d2cc4(0x341)][_0x5d2cc4(0x224)]({'type':D[_0x5d2cc4(0x24f)][_0x5d2cc4(0x23a)],'content':this[_0x5d2cc4(0x2a1)]['t'](_0x5d2cc4(0x2a7))+'('+_0x4f8c49[_0x5d2cc4(0x371)]+')'}),_0x4f8c49['id']===u[_0x5d2cc4(0x15a)][_0x5d2cc4(0x2d5)]&&this[_0x5d2cc4(0x341)]['show']({'type':D[_0x5d2cc4(0x24f)][_0x5d2cc4(0x2a2)],'content':this[_0x5d2cc4(0x2a1)]['t'](_0x4f8c49[_0x5d2cc4(0x371)]||'')}),_0x4f8c49['id']===u[_0x5d2cc4(0x15a)][_0x5d2cc4(0x340)]&&this[_0x5d2cc4(0x341)]['show']({'type':D[_0x5d2cc4(0x24f)][_0x5d2cc4(0x2a2)],'content':this[_0x5d2cc4(0x2a1)]['t']('session.will-retry')}),_0x4f8c49['id']===u[_0x5d2cc4(0x15a)][_0x5d2cc4(0x117)]&&this[_0x5d2cc4(0x341)]['show']({'type':D[_0x5d2cc4(0x24f)][_0x5d2cc4(0x23a)],'content':this[_0x5d2cc4(0x2a1)]['t']('session.connection-failed')}),_0x4f8c49['id']===u[_0x5d2cc4(0x15a)][_0x5d2cc4(0x170)]&&this[_0x5d2cc4(0x341)][_0x5d2cc4(0x224)]({'type':D['MessageType'][_0x5d2cc4(0x23a)],'content':this[_0x5d2cc4(0x2a1)]['t'](_0x5d2cc4(0x171))});}));}};q=xt([y(0x0,O[_0x42373d(0x2da)]),y(0x1,u[_0x42373d(0x2cd)]),y(0x2,a['Inject'](u[_0x42373d(0x270)])),y(0x3,O[_0x42373d(0x2a8)]),y(0x4,O[_0x42373d(0x369)]),y(0x5,a['Inject'](a[_0x42373d(0x2bd)]))],q);const Bt=_0x42373d(0x33e),De={};var jt=Object[_0x42373d(0x31d)],kt=(_0x446714,_0x332ee6,_0x5b7e97,_0x27c850)=>{for(var _0x278a81=_0x27c850>0x1?void 0x0:_0x27c850?jt(_0x332ee6,_0x5b7e97):_0x332ee6,_0x3042a9=_0x446714['length']-0x1,_0x22cf97;_0x3042a9>=0x0;_0x3042a9--)(_0x22cf97=_0x446714[_0x3042a9])&&(_0x278a81=_0x22cf97(_0x278a81)||_0x278a81);return _0x278a81;},Ue=(_0x4615d0,_0x2b47ca)=>(_0x45650f,_0x2d31b2)=>_0x2b47ca(_0x45650f,_0x2d31b2,_0x4615d0);let z=class{constructor(_0x39e4ae,_0x5cc296){const _0x227ad4=_0x42373d;this[_0x227ad4(0x337)]=_0x39e4ae,this['_renderManagerService']=_0x5cc296;}[_0x42373d(0x214)](_0x5d6b9a){const _0x47d452=_0x42373d;this[_0x47d452(0x10b)](_0x5d6b9a),this['_transformPreviousActiveRange'](_0x5d6b9a);}['transformRemoteChangeset'](_0x55465d){const _0x5d044c=_0x42373d,{unitID:_0x8d1ed4}=_0x55465d,_0x4f2083=this[_0x5d044c(0x27c)]['getRenderById'](_0x8d1ed4)[_0x5d044c(0x1c1)](E[_0x5d044c(0x2fa)]),{redoCache:_0x225d68}=_0x4f2083[_0x5d044c(0x2ae)]();if(_0x225d68[_0x5d044c(0x345)]===0x0)return _0x55465d;let _0x8aa591=a[_0x5d044c(0x154)][_0x5d044c(0x1f5)](_0x55465d[_0x5d044c(0x2b9)][0x0]);for(let _0x56454e=0x0;_0x56454e<_0x225d68['length'];_0x56454e++){const _0xbee866={'id':_0x5d044c(0x211),'params':{..._0x225d68[_0x56454e]}},_0x5221c6=this[_0x5d044c(0x337)]['transformMutation'](_0x8aa591,_0xbee866,!0x1);if(m[_0x5d044c(0x185)](_0x5221c6))throw _0x5221c6[_0x5d044c(0x2e8)];_0x8aa591=_0x5221c6['m1Prime'];}return{...a[_0x5d044c(0x154)]['deepClone'](_0x55465d),'mutations':[_0x8aa591]};}['_transformUndoRedoStack'](_0xe66fe4){const _0x75244f=_0x42373d,{unitID:_0xfaa804}=_0xe66fe4,_0x593b3a=this[_0x75244f(0x27c)][_0x75244f(0x18a)](_0xfaa804)[_0x75244f(0x1c1)](E['DocIMEInputManagerService']),{undoCache:_0x51f78e,redoCache:_0x5ea1e6}=_0x593b3a['getUndoRedoMutationParamsCache']();if(_0x51f78e['length']===0x0||_0x5ea1e6[_0x75244f(0x345)]===0x0)return;const _0x38a535=[],_0x3e241a=[];let _0x310fa1=a[_0x75244f(0x154)][_0x75244f(0x1f5)](_0xe66fe4[_0x75244f(0x2b9)][0x0]),_0xe061b=a[_0x75244f(0x154)][_0x75244f(0x1f5)](_0xe66fe4[_0x75244f(0x2b9)][0x0]);for(let _0x400889=_0x51f78e[_0x75244f(0x345)]-0x1;_0x400889>=0x0;_0x400889--){const _0x56acb7={'id':_0x75244f(0x211),'params':{..._0x51f78e[_0x400889]}},_0x2e294f={'id':_0x75244f(0x211),'params':{..._0x5ea1e6[_0x400889]}},_0x2cea21=this['_transformService'][_0x75244f(0x2d4)](_0x310fa1,_0x56acb7,!0x1),_0x38a67c=this['_transformService'][_0x75244f(0x2d4)](_0xe061b,_0x2e294f,!0x1);if(m[_0x75244f(0x185)](_0x2cea21))throw _0x2cea21[_0x75244f(0x2e8)];if(m[_0x75244f(0x185)](_0x38a67c))throw _0x38a67c['error'];_0x38a535[_0x75244f(0x35d)](_0x2cea21[_0x75244f(0x2b4)][_0x75244f(0x2be)]),_0x3e241a[_0x75244f(0x35d)](_0x38a67c[_0x75244f(0x2b4)][_0x75244f(0x2be)]),_0x310fa1=_0x2cea21[_0x75244f(0x1dd)],_0xe061b=_0x38a67c['m1Prime'];}_0x593b3a[_0x75244f(0x2b2)]({'undoCache':_0x38a535,'redoCache':_0x3e241a});}['_transformPreviousActiveRange'](_0x3351bd){const _0x409358=_0x42373d,{unitID:_0x2a3103}=_0x3351bd,_0x31d92c=this[_0x409358(0x27c)]['getRenderById'](_0x2a3103)['with'](E[_0x409358(0x2fa)]),_0x558a97=_0x31d92c[_0x409358(0x334)]();if(_0x558a97==null)return;const _0x90890c=[{'id':_0x409358(0x211),'params':{'unitId':_0x3351bd[_0x409358(0x1c0)],'actions':null,'textRanges':[_0x558a97]}}],_0x54651b=this[_0x409358(0x337)][_0x409358(0x315)](_0x3351bd,_0x90890c);if(!m[_0x409358(0x265)](_0x54651b))throw _0x54651b['error'];const _0x96382c=_0x54651b['m2Prime'][0x0][_0x409358(0x2be)][_0x409358(0x208)];Array[_0x409358(0x1c3)](_0x96382c)&&_0x96382c['length']&&_0x31d92c['setActiveRange'](_0x96382c[0x0]);}};z=kt([Ue(0x0,m[_0x42373d(0x230)]),Ue(0x1,p[_0x42373d(0x362)])],z);var Ft=Object[_0x42373d(0x31d)],Ht=(_0x418180,_0xd17ae7,_0x2d7bdd,_0xd56c24)=>{const _0x5d2922=_0x42373d;for(var _0x3b9edc=_0xd56c24>0x1?void 0x0:_0xd56c24?Ft(_0xd17ae7,_0x2d7bdd):_0xd17ae7,_0x44e545=_0x418180[_0x5d2922(0x345)]-0x1,_0x29e018;_0x44e545>=0x0;_0x44e545--)(_0x29e018=_0x418180[_0x44e545])&&(_0x3b9edc=_0x29e018(_0x3b9edc)||_0x3b9edc);return _0x3b9edc;},ce=(_0x252719,_0x522d34)=>(_0x5f39d4,_0x2fad8c)=>_0x522d34(_0x5f39d4,_0x2fad8c,_0x252719);let J=class{constructor(_0x28b932,_0x2107ef,_0x9de395){const _0x3738c8=_0x42373d;this[_0x3738c8(0x11a)]=_0x28b932,this[_0x3738c8(0x337)]=_0x2107ef,this[_0x3738c8(0x19c)]=_0x9de395;}[_0x42373d(0x12f)](_0x239228){const _0x277578=_0x42373d;this[_0x277578(0x384)](_0x239228);}[_0x42373d(0x1db)](_0x52c077){const _0x4d3763=_0x42373d,{unitID:_0x19fbb5}=_0x52c077,{collaboration:_0x1fba42}=this[_0x4d3763(0x19c)][_0x4d3763(0x367)](_0x19fbb5);if(_0x1fba42[_0x4d3763(0x345)]===0x0)return _0x52c077;let _0x46f9d0=a[_0x4d3763(0x154)][_0x4d3763(0x1f5)](_0x52c077[_0x4d3763(0x2b9)][0x0]);for(let _0x1728bd=0x0;_0x1728bd<_0x1fba42['length'];_0x1728bd++){const _0x2e7ab8={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1fba42[_0x1728bd]['unitId'],..._0x1fba42[_0x1728bd]['redoState']}},_0x4c68c1=this[_0x4d3763(0x337)]['transformMutation'](_0x46f9d0,_0x2e7ab8,!0x1);if(m[_0x4d3763(0x185)](_0x4c68c1))throw _0x4c68c1[_0x4d3763(0x2e8)];_0x46f9d0=_0x4c68c1['m1Prime'];}return{...a['Tools'][_0x4d3763(0x1f5)](_0x52c077),'mutations':[_0x46f9d0]};}[_0x42373d(0x384)](_0x76edd1){const _0x5a5636=_0x42373d,{unitID:_0x3c5261}=_0x76edd1,{history:_0x47bbb2,collaboration:_0x1787af}=this['_docStateChangeManagerService'][_0x5a5636(0x367)](_0x3c5261);if(_0x47bbb2['length']===0x0&&_0x1787af[_0x5a5636(0x345)]===0x0)return;const _0x1621c=[],_0xc81e1c=[];let _0x2367ac=a[_0x5a5636(0x154)][_0x5a5636(0x1f5)](_0x76edd1[_0x5a5636(0x2b9)][0x0]),_0x433278=a[_0x5a5636(0x154)][_0x5a5636(0x1f5)](_0x76edd1[_0x5a5636(0x2b9)][0x0]);for(let _0x55dc26=_0x47bbb2[_0x5a5636(0x345)]-0x1;_0x55dc26>=0x0;_0x55dc26--){const _0x226d59={'id':_0x5a5636(0x211),'params':{'unitId':_0x47bbb2[_0x55dc26][_0x5a5636(0x1f9)],..._0x47bbb2[_0x55dc26][_0x5a5636(0x1df)]}},_0x278caa={'id':_0x5a5636(0x211),'params':{'unitId':_0x47bbb2[_0x55dc26][_0x5a5636(0x1f9)],..._0x47bbb2[_0x55dc26][_0x5a5636(0x2de)]}},_0x182362=this['_transformService'][_0x5a5636(0x2d4)](_0x2367ac,_0x226d59,!0x1),_0x4b7ee9=this['_transformService']['transformMutation'](_0x433278,_0x278caa,!0x1);if(m['isTransformMutationFailure'](_0x182362))throw _0x182362[_0x5a5636(0x2e8)];if(m[_0x5a5636(0x185)](_0x4b7ee9))throw _0x4b7ee9[_0x5a5636(0x2e8)];_0x1621c['unshift']({..._0x47bbb2[_0x55dc26],'undoState':_0x182362[_0x5a5636(0x2b4)]['params'],'redoState':_0x4b7ee9[_0x5a5636(0x2b4)][_0x5a5636(0x2be)]}),_0x2367ac=_0x182362[_0x5a5636(0x1dd)],_0x433278=_0x4b7ee9['m1Prime'];}_0x2367ac=a['Tools']['deepClone'](_0x76edd1[_0x5a5636(0x2b9)][0x0]),_0x433278=a['Tools']['deepClone'](_0x76edd1[_0x5a5636(0x2b9)][0x0]);for(let _0x1c7781=_0x1787af[_0x5a5636(0x345)]-0x1;_0x1c7781>=0x0;_0x1c7781--){const _0x2a6aed={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1787af[_0x1c7781][_0x5a5636(0x1f9)],..._0x1787af[_0x1c7781][_0x5a5636(0x1df)]}},_0x13aee2={'id':_0x5a5636(0x211),'params':{'unitId':_0x1787af[_0x1c7781]['unitId'],..._0x1787af[_0x1c7781]['redoState']}},_0x215e90=this[_0x5a5636(0x337)]['transformMutation'](_0x2367ac,_0x2a6aed,!0x1),_0xf808bf=this['_transformService'][_0x5a5636(0x2d4)](_0x433278,_0x13aee2,!0x1);if(m['isTransformMutationFailure'](_0x215e90))throw _0x215e90['error'];if(m[_0x5a5636(0x185)](_0xf808bf))throw _0xf808bf['error'];_0xc81e1c[_0x5a5636(0x35d)]({..._0x1787af[_0x1c7781],'undoState':_0x215e90['m2Prime']['params'],'redoState':_0xf808bf['m2Prime']['params']}),_0x2367ac=_0x215e90[_0x5a5636(0x1dd)],_0x433278=_0xf808bf[_0x5a5636(0x1dd)];}this[_0x5a5636(0x19c)][_0x5a5636(0x17c)](_0x3c5261,{'history':_0x1621c,'collaboration':_0xc81e1c});}};J=Ht([ce(0x0,a[_0x42373d(0x1e9)](a[_0x42373d(0x1a4)])),ce(0x1,m[_0x42373d(0x230)]),ce(0x2,a[_0x42373d(0x1e9)](E[_0x42373d(0x314)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x4daa4b,_0x3c4caa,_0x8618e0,_0x3243d4)=>{const _0x24f6f7=_0x42373d;for(var _0x532945=_0x3243d4>0x1?void 0x0:_0x3243d4?Yt(_0x3c4caa,_0x8618e0):_0x3c4caa,_0x3ea10b=_0x4daa4b[_0x24f6f7(0x345)]-0x1,_0x403f67;_0x3ea10b>=0x0;_0x3ea10b--)(_0x403f67=_0x4daa4b[_0x3ea10b])&&(_0x532945=_0x403f67(_0x532945)||_0x532945);return _0x532945;},Ne=(_0x2dfd9d,_0x5cba83)=>(_0x3b0835,_0x4ad18e)=>_0x5cba83(_0x3b0835,_0x4ad18e,_0x2dfd9d);let Z=class{constructor(_0x1b6a83,_0x204a1f){const _0x22707d=_0x42373d;this[_0x22707d(0x11a)]=_0x1b6a83,this['_transformService']=_0x204a1f;}[_0x42373d(0x1cf)](_0x111b1f){const _0x11117e=_0x42373d;var _0x16d5ef;const _0x209673=this[_0x11117e(0x11a)]['get'](Y[_0x11117e(0x1c6)]),_0x424fa4=(_0x16d5ef=_0x209673[_0x11117e(0x2f1)]())!=null?_0x16d5ef:[];if(_0x424fa4[_0x11117e(0x345)]===0x0)return;const _0x4cf20d=_0x111b1f[_0x11117e(0x1c0)],_0x1ac4fd=[{'id':_0x11117e(0x211),'params':{'unitId':_0x4cf20d,'actions':null,'textRanges':_0x424fa4}}],_0x3299c8=this[_0x11117e(0x337)][_0x11117e(0x315)](_0x111b1f,_0x1ac4fd);if(!m[_0x11117e(0x265)](_0x3299c8))throw _0x3299c8[_0x11117e(0x2e8)];const _0x859893=_0x3299c8[_0x11117e(0x2b4)][0x0]['params'][_0x11117e(0x208)];Array[_0x11117e(0x1c3)](_0x859893)&&_0x859893[_0x11117e(0x345)]&&_0x209673[_0x11117e(0x15f)](_0x859893,{'unitId':_0x4cf20d,'subUnitId':_0x4cf20d},!0x1);}};Z=Wt([Ne(0x0,a[_0x42373d(0x1e9)](a[_0x42373d(0x1a4)])),Ne(0x1,m[_0x42373d(0x230)])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x2839c7,_0x44df97,_0x44cfd7,_0x405b36)=>{const _0x315a65=_0x42373d;for(var _0x4154b4=_0x405b36>0x1?void 0x0:_0x405b36?Vt(_0x44df97,_0x44cfd7):_0x44df97,_0x2bd431=_0x2839c7[_0x315a65(0x345)]-0x1,_0x50db8e;_0x2bd431>=0x0;_0x2bd431--)(_0x50db8e=_0x2839c7[_0x2bd431])&&(_0x4154b4=_0x50db8e(_0x4154b4)||_0x4154b4);return _0x4154b4;},N=(_0x495cf4,_0xc619d8)=>(_0x49e146,_0x3d4763)=>_0xc619d8(_0x49e146,_0x3d4763,_0x495cf4);function _0x45b0(_0xdcea1f,_0x402de1){const _0x5ac091=_0x5ac0();return _0x45b0=function(_0x45b073,_0x44a269){_0x45b073=_0x45b073-0x106;let _0x32ec82=_0x5ac091[_0x45b073];return _0x32ec82;},_0x45b0(_0xdcea1f,_0x402de1);}let Q=class extends a[_0x42373d(0x23f)]{constructor(_0x2eae10,_0x4d713c,_0x4adb60,_0x522e4c,_0x558a30,_0x1da232,_0x340af6,_0x15c5ce){const _0x4962df=_0x42373d;super(),h(this,_0x4962df(0x1bc),new d[(_0x4962df(0x10c))](u[_0x4962df(0x2ed)][_0x4962df(0x1bb)])),(this['_docStateChangeManagerService']=_0x2eae10,this[_0x4962df(0x116)]=_0x4d713c,this['_docTransformIMECacheService']=_0x4adb60,this[_0x4962df(0x372)]=_0x522e4c,this[_0x4962df(0x344)]=_0x558a30,this[_0x4962df(0x136)]=_0x1da232,this[_0x4962df(0x341)]=_0x340af6,this[_0x4962df(0x2a1)]=_0x15c5ce,this[_0x4962df(0x316)]());}[_0x42373d(0x316)](){const _0x1f1dac=_0x42373d;this[_0x1f1dac(0x18f)](this[_0x1f1dac(0x116)][_0x1f1dac(0x332)][_0x1f1dac(0x281)](_0xed3e0b=>{const _0x397367=_0x1f1dac,_0x9bfe6=this[_0x397367(0x19c)]['docStateChange$'][_0x397367(0x281)](_0x594bfd=>{const _0x438abc=_0x397367;if(_0x594bfd==null)return;const {unitId:_0x4354c1,redoState:_0x39fe41,commandId:_0x3cc30b}=_0x594bfd;if(_0x4354c1!==_0xed3e0b[_0x438abc(0x1c0)])return;const _0x4116a2={'id':_0x3cc30b,'type':a[_0x438abc(0x346)][_0x438abc(0x207)],'params':{'unitId':_0x4354c1,'actions':_0x39fe41[_0x438abc(0x348)],'textRanges':null}};_0xed3e0b[_0x438abc(0x307)](_0x4116a2);});if(_0xed3e0b['disposeWithMe'](_0x9bfe6),_0xed3e0b instanceof u[_0x397367(0x320)]){const _0x2e262b={'onTransformIME':_0x3fd71c=>this[_0x397367(0x195)]['transformIMECache'](_0x3fd71c),'onTransformState':_0x302625=>this['_docTransformStateCacheService']['transformStateCache'](_0x302625),'onTransformSelections':_0x1a4f21=>this[_0x397367(0x344)]['transformSelections'](_0x1a4f21),'onSyncEditingCollabCursor':_0x17fd59=>this[_0x397367(0x136)][_0x397367(0x35b)](_0x17fd59),'onTransformRemoteChangesetByIMECache':_0x402995=>this[_0x397367(0x195)][_0x397367(0x1db)](_0x402995),'onTransformRemoteChangesetByStateCache':_0x54498c=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x54498c)};_0xed3e0b[_0x397367(0x22e)](_0x2e262b);}}));}};Q=Xt([N(0x0,a[_0x42373d(0x1e9)](E[_0x42373d(0x314)])),N(0x1,a[_0x42373d(0x1e9)](u['CollaborationController'])),N(0x2,a[_0x42373d(0x1e9)](z)),N(0x3,a[_0x42373d(0x1e9)](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x42373d(0x1e9)](pe)),N(0x6,O['IMessageService']),N(0x7,a[_0x42373d(0x1e9)](a[_0x42373d(0x2bd)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x3bf777,_0x38f33f,_0x333894,_0xeb7e4e)=>{const _0x168a3e=_0x42373d;for(var _0x4d2963=_0xeb7e4e>0x1?void 0x0:_0xeb7e4e?Gt(_0x38f33f,_0x333894):_0x38f33f,_0x1d2c74=_0x3bf777[_0x168a3e(0x345)]-0x1,_0x537acc;_0x1d2c74>=0x0;_0x1d2c74--)(_0x537acc=_0x3bf777[_0x1d2c74])&&(_0x4d2963=_0x537acc(_0x4d2963)||_0x4d2963);return _0x4d2963;},le=(_0x32bbc0,_0x8d3898)=>(_0x4bc026,_0x1bdc53)=>_0x8d3898(_0x4bc026,_0x1bdc53,_0x32bbc0);let ve=class extends a[_0x42373d(0x23f)]{constructor(_0x1becf0,_0x4c8e6b,_0x314d0a){const _0x5e2b50=_0x42373d;super(),h(this,_0x5e2b50(0x2f0),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x5e2b50(0x292),!0x1),(this['_configService']=_0x1becf0,this[_0x5e2b50(0x22f)]=_0x4c8e6b,this[_0x5e2b50(0x215)]=_0x314d0a);}[_0x42373d(0x11c)](){const _0x34a253=_0x42373d;this[_0x34a253(0x292)]=!0x0;}[_0x42373d(0x18c)](){const _0x118a39=_0x42373d;this[_0x118a39(0x292)]=!0x1;}get[_0x42373d(0x30c)](){const _0x22d66b=_0x42373d;return this[_0x22d66b(0x1ff)];}[_0x42373d(0x370)](){const _0x44e322=_0x42373d;this[_0x44e322(0x212)]()['then'](()=>super[_0x44e322(0x370)]());}async[_0x42373d(0x189)](_0x45b463){const _0x4cbe8a=_0x42373d;return this['_disabled']?null:this['_localStorageService'][_0x4cbe8a(0x151)](u[_0x4cbe8a(0x377)](_0x45b463));}async['saveOfflineData'](_0x3d05cf,_0x1a3fd7){const _0x18ac80=_0x42373d;return!!this[_0x18ac80(0x22f)][_0x18ac80(0x24b)](_0x3d05cf,_0x1a3fd7);}[_0x42373d(0x1b6)](_0xd86861,_0x22d3a2,_0x32447b,_0x58eb43){const _0x27f3d4=_0x42373d,_0x3c9a18=this[_0x27f3d4(0x215)][_0x27f3d4(0x249)](_0xd86861);this[_0x27f3d4(0x2f0)]['set'](_0xd86861,{'unitID':_0xd86861,'type':_0x22d3a2,'awaitingChangeset':_0x32447b,'mutations':_0x58eb43,'rev':_0x3c9a18}),this[_0x27f3d4(0x1ff)][_0x27f3d4(0x261)](_0xd86861)||this['_scheduleSaving'](_0xd86861);}[_0x42373d(0x1a5)](_0x1876c7){const _0x37c7be=_0x42373d,_0x1b8dbb=this[_0x37c7be(0x28b)]();_0x1b8dbb===0x0?this[_0x37c7be(0x326)](_0x1876c7):this[_0x37c7be(0x1ff)]['set'](_0x1876c7,setTimeout(()=>this[_0x37c7be(0x326)](_0x1876c7),_0x1b8dbb));}[_0x42373d(0x28b)](){const _0x327408=_0x42373d;var _0x4a0387;return(_0x4a0387=this[_0x327408(0x311)][_0x327408(0x23e)](u[_0x327408(0x388)]))!=null?_0x4a0387:u[_0x327408(0x12c)];}['_saveCache'](_0x519e04){const _0x5ebdad=_0x42373d,_0x2fe9b2=this[_0x5ebdad(0x1ff)][_0x5ebdad(0x271)](_0x519e04);return _0x2fe9b2!==void 0x0&&window[_0x5ebdad(0x1d5)](_0x2fe9b2),this['_localStorageService'][_0x5ebdad(0x24b)](u[_0x5ebdad(0x377)](_0x519e04),this['_cachedData'][_0x5ebdad(0x271)](_0x519e04))[_0x5ebdad(0x375)](()=>this[_0x5ebdad(0x1ff)][_0x5ebdad(0x27a)](_0x519e04));}async[_0x42373d(0x212)](){const _0x545f0b=_0x42373d,_0x45e52f=[];this[_0x545f0b(0x1ff)][_0x545f0b(0x21a)]((_0x566a3c,_0x635b60)=>{const _0x104b32=_0x545f0b;window[_0x104b32(0x1d5)](_0x566a3c),_0x45e52f[_0x104b32(0x11d)](this[_0x104b32(0x326)](_0x635b60)['then'](()=>{const _0x1371b9=_0x104b32;this[_0x1371b9(0x1ff)][_0x1371b9(0x27a)](_0x635b60);}));}),await Promise[_0x545f0b(0x147)](_0x45e52f);}};ve=Kt([le(0x0,a[_0x42373d(0x27e)]),le(0x1,a[_0x42373d(0x28d)]),le(0x2,a[_0x42373d(0x1e9)](m[_0x42373d(0x2c4)]))],ve);class xe extends a[_0x42373d(0x139)]{constructor(){const _0x48ff45=_0x42373d;super(),h(this,_0x48ff45(0x149)),this['urlChange$']=d[_0x48ff45(0x380)](window,_0x48ff45(0x15e))[_0x48ff45(0x256)](d[_0x48ff45(0x365)](this['dispose$']),d['shareReplay'](0x1),d['mapTo'](void 0x0));}['setParam'](_0x12ea72,_0x21b648,_0x4c6657=!0x1){const _0xb9868d=_0x42373d,_0x51b5fe=new URL(window['location'][_0xb9868d(0x324)]);_0x51b5fe[_0xb9868d(0x2b6)][_0xb9868d(0x2c5)](_0x12ea72,_0x21b648),_0x4c6657?window['history'][_0xb9868d(0x24a)]('','',_0x51b5fe[_0xb9868d(0x29d)]()):window[_0xb9868d(0x206)]['pushState']('','',_0x51b5fe[_0xb9868d(0x29d)]());}['removeParam'](_0x13a628,_0x5497f0=!0x1){const _0x496971=_0x42373d,_0x25f1b8=new URL(window['location'][_0x496971(0x324)]);_0x25f1b8['searchParams'][_0x496971(0x27a)](_0x13a628),_0x5497f0?window[_0x496971(0x206)][_0x496971(0x24a)]('','',_0x25f1b8[_0x496971(0x29d)]()):window[_0x496971(0x206)][_0x496971(0x2a4)]('','',_0x25f1b8[_0x496971(0x29d)]());}['getParam'](_0x816943){const _0x1b70f9=_0x42373d;var _0x108b9b;return(_0x108b9b=new URL(window[_0x1b70f9(0x134)]['href'])[_0x1b70f9(0x2b6)]['get'](_0x816943))!=null?_0x108b9b:void 0x0;}}var qt=Object['defineProperty'],zt=Object[_0x42373d(0x31d)],Jt=(_0x27432d,_0x1528a1,_0x2411a3)=>_0x1528a1 in _0x27432d?qt(_0x27432d,_0x1528a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2411a3}):_0x27432d[_0x1528a1]=_0x2411a3,Zt=(_0x1830f9,_0x3bb317,_0x474c2c,_0x32799d)=>{const _0x3f90e3=_0x42373d;for(var _0x9b2dd1=_0x32799d>0x1?void 0x0:_0x32799d?zt(_0x3bb317,_0x474c2c):_0x3bb317,_0x5fa3c1=_0x1830f9[_0x3f90e3(0x345)]-0x1,_0x28044c;_0x5fa3c1>=0x0;_0x5fa3c1--)(_0x28044c=_0x1830f9[_0x5fa3c1])&&(_0x9b2dd1=_0x28044c(_0x9b2dd1)||_0x9b2dd1);return _0x9b2dd1;},_e=(_0x299f9a,_0x4a4d75)=>(_0x3891cb,_0x9b31c)=>_0x4a4d75(_0x3891cb,_0x9b31c,_0x299f9a),Qt=(_0x1e4931,_0x427dae,_0x126080)=>Jt(_0x1e4931,_0x427dae+'',_0x126080);const es=_0x42373d(0x359);exports[_0x42373d(0x274)]=class extends a['Plugin']{constructor(_0x34c7f2=De,_0x36d747,_0x5a8424,_0x1e39a7){const _0x6e54a0=_0x42373d;super(),this[_0x6e54a0(0x1eb)]=_0x34c7f2,this[_0x6e54a0(0x27c)]=_0x36d747,this[_0x6e54a0(0x11a)]=_0x5a8424,this[_0x6e54a0(0x311)]=_0x1e39a7;const {..._0x5e6933}=a[_0x6e54a0(0x38a)]({},De,this[_0x6e54a0(0x1eb)]);this[_0x6e54a0(0x311)]['setConfig'](Bt,_0x5e6933);}[_0x42373d(0x18e)](){const _0x1cd7db=_0x42373d;this['_registerDependencies'](),this[_0x1cd7db(0x1f6)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x42373d(0x227)](){const _0x9eff02=_0x42373d;var _0x219fd6;const _0x232e0b=[[Ce],[Z],[z],[J],[pe],[me,{'useClass':xe}],[K['ISocketService'],{'useClass':K['WebSocketService']}],[u[_0x9eff02(0x2cd)],{'useClass':ve}],[exports[_0x9eff02(0x1b4)]],[Q],[q],[x],[ue],[exports[_0x9eff02(0x37e)]]];a[_0x9eff02(0x1fa)](this['_injector'],a['mergeOverrideWithDependencies'](_0x232e0b,(_0x219fd6=this[_0x9eff02(0x1eb)])==null?void 0x0:_0x219fd6[_0x9eff02(0x156)]));}[_0x42373d(0x158)](){const _0xd8caba=_0x42373d;this['disposeWithMe'](this[_0xd8caba(0x27c)][_0xd8caba(0x284)](a[_0xd8caba(0x32d)][_0xd8caba(0x289)],[fe])),this['disposeWithMe'](this[_0xd8caba(0x27c)][_0xd8caba(0x284)](a[_0xd8caba(0x32d)][_0xd8caba(0x2bf)],[Ie]));}[_0x42373d(0x1f6)](){const _0x2f51b3=_0x42373d;a['touchDependencies'](this[_0x2f51b3(0x11a)],[[x],[exports[_0x2f51b3(0x1b4)]],[Q],[q],[exports[_0x2f51b3(0x37e)]]]);}},Qt(exports[_0x42373d(0x274)],'pluginName',es),exports[_0x42373d(0x274)]=Zt([a[_0x42373d(0x1fb)](u[_0x42373d(0x159)]),_e(0x1,p[_0x42373d(0x362)]),_e(0x2,a[_0x42373d(0x1e9)](a[_0x42373d(0x1a4)])),_e(0x3,a[_0x42373d(0x27e)])],exports[_0x42373d(0x274)]);var ts=Object[_0x42373d(0x31d)],ss=(_0x354af1,_0x3d3aee,_0x59ea76,_0x2056e6)=>{const _0x34643d=_0x42373d;for(var _0x485cec=_0x2056e6>0x1?void 0x0:_0x2056e6?ts(_0x3d3aee,_0x59ea76):_0x3d3aee,_0x39e5a9=_0x354af1[_0x34643d(0x345)]-0x1,_0x38f2bb;_0x39e5a9>=0x0;_0x39e5a9--)(_0x38f2bb=_0x354af1[_0x39e5a9])&&(_0x485cec=_0x38f2bb(_0x485cec)||_0x485cec);return _0x485cec;},H=(_0x3f7142,_0x4c22b9)=>(_0xb0a4d8,_0x3a8c9f)=>_0x4c22b9(_0xb0a4d8,_0x3a8c9f,_0x3f7142);exports[_0x42373d(0x201)]=class extends u[_0x42373d(0x373)]{constructor(_0xfa1909,_0x2295f6,_0x3022de,_0x1cd7fe,_0x64f542){super(_0xfa1909,_0x2295f6,_0x3022de,_0x1cd7fe,_0x64f542);}async['createSocket'](_0x3079ba){const _0x11377a=_0x42373d,_0x51673e=await this['_getSessionTicket'](),_0x10baae=this['_createSocketURL'](_0x3079ba,_0x51673e);return this[_0x11377a(0x13c)](_0x10baae);}['_createSocketURL'](_0x357412,_0x3e7285){const _0x54f944=_0x42373d,_0x954fa1=typeof window>'u'?new URL(_0x357412):new URL(_0x357412,window[_0x54f944(0x134)]['origin']);_0x954fa1['searchParams'][_0x54f944(0x2c5)](_0x54f944(0x383),_0x3e7285);const _0x3f42d2=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x54f944(0x134)][_0x54f944(0x217)]);return _0x3f42d2[_0x54f944(0x271)](_0x54f944(0x29c))&&_0x954fa1[_0x54f944(0x2b6)][_0x54f944(0x2c5)](_0x54f944(0x29c),_0x3f42d2[_0x54f944(0x271)](_0x54f944(0x29c))),_0x954fa1[_0x54f944(0x29d)]();}async['_getSessionTicket'](){const _0x56eac3=_0x42373d;var _0x25922,_0x2f8002,_0x57715f;const _0x3c1d7a=this[_0x56eac3(0x311)][_0x56eac3(0x23e)](u[_0x56eac3(0x36d)]),_0x198e46=(_0x25922=_0x3c1d7a==null?void 0x0:_0x3c1d7a[_0x56eac3(0x258)])!=null?_0x25922:u[_0x56eac3(0x2ad)];return(_0x57715f=(_0x2f8002=(await this['_httpService'][_0x56eac3(0x271)](_0x198e46,{'headers':{'Content-Type':'application/json'}}))['body'])==null?void 0x0:_0x2f8002[_0x56eac3(0x282)])!=null?_0x57715f:'';}},exports[_0x42373d(0x201)]=ss([H(0x0,a[_0x42373d(0x1e9)](a[_0x42373d(0x1a4)])),H(0x1,a[_0x42373d(0x1e9)](K[_0x42373d(0x145)])),H(0x2,a[_0x42373d(0x27e)]),H(0x3,a['ILogService']),H(0x4,m[_0x42373d(0x25c)])],exports['BrowserCollaborationSocketService']);var Be=(_0x1788c4=>(_0x1788c4[_0x1788c4[_0x42373d(0x1f3)]=0x0]='UNDEFINED',_0x1788c4[_0x1788c4['OK']=0x1]='OK',_0x1788c4[_0x1788c4[_0x42373d(0x356)]=0x2]=_0x42373d(0x356),_0x1788c4[_0x1788c4[_0x42373d(0x167)]=0x3]=_0x42373d(0x167),_0x1788c4[_0x1788c4['NOT_FOUND']=0x4]=_0x42373d(0x1ef),_0x1788c4[_0x1788c4[_0x42373d(0x31f)]=0x5]=_0x42373d(0x31f),_0x1788c4[_0x1788c4['ALREADY_EXISTS']=0x6]=_0x42373d(0x1d4),_0x1788c4[_0x1788c4[_0x42373d(0x20e)]=0x7]='INVALID_ARGUMENT',_0x1788c4[_0x1788c4['TOO_MANY_REQUESTS']=0x8]=_0x42373d(0x225),_0x1788c4[_0x1788c4[_0x42373d(0x2d1)]=0x9]='COMPLETION_FINISHED',_0x1788c4[_0x1788c4[_0x42373d(0x13e)]=0xa]=_0x42373d(0x13e),_0x1788c4[_0x1788c4['MOBILE_VERIFY_CODE_MISMATCH']=0xb]=_0x42373d(0x14c),_0x1788c4[_0x1788c4[_0x42373d(0x110)]=0xc]=_0x42373d(0x110),_0x1788c4[_0x1788c4['EMAIL_VERIFY_CODE_MISMATCH']=0xd]='EMAIL_VERIFY_CODE_MISMATCH',_0x1788c4[_0x1788c4[_0x42373d(0x329)]=0xe]=_0x42373d(0x329),_0x1788c4[_0x1788c4[_0x42373d(0x17b)]=0x1389]=_0x42373d(0x17b),_0x1788c4[_0x1788c4[_0x42373d(0x2f7)]=0x1771]=_0x42373d(0x2f7),_0x1788c4[_0x1788c4[_0x42373d(0x368)]=0x1772]=_0x42373d(0x368),_0x1788c4[_0x1788c4['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x42373d(0x34d),_0x1788c4[_0x1788c4['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x1788c4[_0x1788c4['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x42373d(0x31e),_0x1788c4[_0x1788c4['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x42373d(0x33d),_0x1788c4[_0x1788c4[_0x42373d(0x32e)]=0x1b5c]=_0x42373d(0x32e),_0x1788c4[_0x1788c4[_0x42373d(0x33c)]=0x1b5d]=_0x42373d(0x33c),_0x1788c4[_0x1788c4[_0x42373d(0x160)]=0x1f41]=_0x42373d(0x160),_0x1788c4[_0x1788c4[_0x42373d(0x1d3)]=0x2329]=_0x42373d(0x1d3),_0x1788c4[_0x1788c4['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x42373d(0x123),_0x1788c4[_0x1788c4[_0x42373d(0x347)]=0x232b]=_0x42373d(0x347),_0x1788c4[_0x1788c4[_0x42373d(0x336)]=0x232c]=_0x42373d(0x336),_0x1788c4[_0x1788c4[_0x42373d(0x10d)]=0x232d]=_0x42373d(0x10d),_0x1788c4[_0x1788c4[_0x42373d(0x2e6)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1788c4[_0x1788c4[_0x42373d(0x2e7)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1788c4[_0x1788c4[_0x42373d(0x1ca)]=0x2713]=_0x42373d(0x1ca),_0x1788c4[_0x1788c4[_0x42373d(0x2ef)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1788c4[_0x1788c4['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x42373d(0x379),_0x1788c4[_0x1788c4[_0x42373d(0x223)]=0x271b]=_0x42373d(0x223),_0x1788c4[_0x1788c4['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]='YUUMI_TABLE_NOT_FOUND_IN_UNIT',_0x1788c4[_0x1788c4[_0x42373d(0x152)]=0x271d]=_0x42373d(0x152),_0x1788c4[_0x1788c4[_0x42373d(0x1ba)]=0x271e]=_0x42373d(0x1ba),_0x1788c4[_0x1788c4['YUUMI_AI_RUN_FAILED']=0x271f]=_0x42373d(0x1aa),_0x1788c4[_0x1788c4[_0x42373d(0x306)]=0x2720]=_0x42373d(0x306),_0x1788c4[_0x1788c4['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x42373d(0x318),_0x1788c4[_0x1788c4[_0x42373d(0x111)]=0x2ee1]=_0x42373d(0x111),_0x1788c4[_0x1788c4['INVALID_INVITE_CODE']=0x2ee2]=_0x42373d(0x146),_0x1788c4[_0x1788c4['INVITE_CODE_REQUIRED']=0x2ee3]=_0x42373d(0x353),_0x1788c4[_0x1788c4['USER_NOT_INVITED_CODE']=0x2ee4]=_0x42373d(0x16b),_0x1788c4[_0x1788c4[_0x42373d(0x1ad)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x1788c4[_0x1788c4['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x42373d(0x11f),_0x1788c4[_0x1788c4[_0x42373d(0x175)]=0x32ca]=_0x42373d(0x175),_0x1788c4[_0x1788c4[_0x42373d(0x317)]=0x32cb]=_0x42373d(0x317),_0x1788c4[_0x1788c4[_0x42373d(0x2cb)]=-0x1]='UNRECOGNIZED',_0x1788c4))(Be||{}),is=Object[_0x42373d(0x31d)],ns=(_0x5c3061,_0x2f6011,_0x4c9979,_0x52ed44)=>{for(var _0x5c1f61=_0x52ed44>0x1?void 0x0:_0x52ed44?is(_0x2f6011,_0x4c9979):_0x2f6011,_0x40697b=_0x5c3061['length']-0x1,_0x49a587;_0x40697b>=0x0;_0x40697b--)(_0x49a587=_0x5c3061[_0x40697b])&&(_0x5c1f61=_0x49a587(_0x5c1f61)||_0x5c1f61);return _0x5c1f61;},he=(_0x1ddda3,_0x2ce632)=>(_0x3e9f14,_0x14ac58)=>_0x2ce632(_0x3e9f14,_0x14ac58,_0x1ddda3);exports['RemoteUniscriptService']=class extends a[_0x42373d(0x23f)]{constructor(_0x30d1cf,_0x445e77,_0x3f1b6f){const _0x295e01=_0x42373d;super(),this['_instanceService']=_0x30d1cf,this[_0x295e01(0x1a7)]=_0x445e77,this['_configService']=_0x3f1b6f;}async['runOnServer'](_0x287037,_0x5ba75b,_0x28745d,..._0x37e523){const _0x5654d1=_0x42373d;var _0x462967,_0x68c00b,_0x581c87,_0x196446;const _0x1def7d=this[_0x5654d1(0x157)]['getFocusedUnit']();if(!_0x1def7d)throw new Error(_0x5654d1(0x1bf));const _0x505a2c=((_0x462967=this[_0x5654d1(0x311)][_0x5654d1(0x23e)](u[_0x5654d1(0x226)]))!=null?_0x462967:u[_0x5654d1(0x2c6)])+'/'+_0x287037+_0x5654d1(0x202)+_0x5ba75b,_0x11d2f4=new URL(window[_0x5654d1(0x134)][_0x5654d1(0x324)]),_0xdafd51={'scriptId':_0x287037,'runId':(_0x68c00b=_0x11d2f4['searchParams'][_0x5654d1(0x271)]('runId'))!=null?_0x68c00b:'','function':_0x5ba75b,'unitId':_0x1def7d[_0x5654d1(0x30a)](),'argsOfFunction':JSON[_0x5654d1(0x120)](_0x37e523),'invokeId':(_0x581c87=_0x28745d[_0x5654d1(0x2b8)])!=null?_0x581c87:'','executionId':(_0x196446=_0x28745d['executionId'])!=null?_0x196446:''};try{const _0x9c1eea=await this['_httpService']['post'](_0x505a2c,{'body':_0xdafd51});return _0x9c1eea[_0x5654d1(0x24e)][_0x5654d1(0x2e8)]&&_0x9c1eea[_0x5654d1(0x24e)][_0x5654d1(0x2e8)][_0x5654d1(0x2d9)]!==Be['OK']?_0x5654d1(0x197):_0x9c1eea['body'][_0x5654d1(0x1f2)];}catch{return'Failed';}}},exports[_0x42373d(0x28a)]=ns([he(0x0,a[_0x42373d(0x12e)]),he(0x1,a[_0x42373d(0x1e9)](K[_0x42373d(0x145)])),he(0x2,a[_0x42373d(0x27e)])],exports[_0x42373d(0x28a)]);const Me=0x7530,Le=_0x42373d(0x191);class rs extends a[_0x42373d(0x23f)]{constructor(){const _0x224dd7=_0x42373d;super(),h(this,'_id',a[_0x224dd7(0x2b0)]()),h(this,_0x224dd7(0x2e3),new Set()),h(this,_0x224dd7(0x21b),new Map()),h(this,_0x224dd7(0x277),null),h(this,_0x224dd7(0x330),new Map()),h(this,'_unitStatus',new Map()),this[_0x224dd7(0x19a)]();}[_0x42373d(0x370)](){const _0x8b7e13=_0x42373d;super[_0x8b7e13(0x370)](),this[_0x8b7e13(0x330)][_0x8b7e13(0x21a)]((_0x2c76fd,_0x435831)=>this[_0x8b7e13(0x247)](_0x435831)),this['_heartbeatTimer']&&window[_0x8b7e13(0x209)](this[_0x8b7e13(0x277)]);}[_0x42373d(0x25e)](_0x1be87a){const _0x360dd7=_0x42373d;return this[_0x360dd7(0x12a)](_0x1be87a)[_0x360dd7(0x256)](d[_0x360dd7(0x323)]());}[_0x42373d(0x38b)](_0x5ac26e){const _0xdbe77f=_0x42373d;this[_0xdbe77f(0x2e3)][_0xdbe77f(0x115)]===0x0&&this[_0xdbe77f(0x36b)](),this[_0xdbe77f(0x2e3)][_0xdbe77f(0x16f)](_0x5ac26e),this['_send']({'type':0x0,'memberID':this[_0xdbe77f(0x1ae)],'unitIDs':[_0x5ac26e],'isForwarded':!0x1});}[_0x42373d(0x38c)](_0xc8d70b){const _0x1cccca=_0x42373d;this[_0x1cccca(0x2e3)][_0x1cccca(0x27a)](_0xc8d70b),this[_0x1cccca(0x2e3)][_0x1cccca(0x115)]===0x0&&this[_0x1cccca(0x277)]&&window['clearInterval'](this[_0x1cccca(0x277)]);}[_0x42373d(0x19a)](){const _0x330189=_0x42373d;this['disposeWithMe'](a['toDisposable'](d[_0x330189(0x380)](window,_0x330189(0x182))[_0x330189(0x281)](_0x2c781f=>{const _0x3bf4a3=_0x330189;if(_0x2c781f[_0x3bf4a3(0x366)]!==Le||!_0x2c781f[_0x3bf4a3(0x1cb)])return;const _0x58bdcc=JSON[_0x3bf4a3(0x2c0)](_0x2c781f['newValue']);this['_handleEvent'](_0x58bdcc);}))),window[_0x330189(0x280)](_0x330189(0x2df),()=>this['_send']({'type':0x1,'memberID':this[_0x330189(0x1ae)],'unitIDs':Array[_0x330189(0x2ab)](this[_0x330189(0x2e3)])}));}[_0x42373d(0x2f2)](_0x13646d){const _0xb30864=_0x42373d;switch(_0x13646d[_0xb30864(0x2e9)]){case 0x0:this[_0xb30864(0x1fc)](_0x13646d);break;case 0x1:this['_handleLeaveEvent'](_0x13646d);break;case 0x2:this[_0xb30864(0x34f)](_0x13646d);break;}}[_0x42373d(0x1fc)](_0x5c41f1){const _0xf8c58c=_0x42373d,{unitIDs:_0x15bce4,memberID:_0x1cbcdd,isForwarded:_0x13b3d4}=_0x5c41f1;_0x15bce4[_0xf8c58c(0x21a)](_0xbb0774=>{const _0x11645a=_0xf8c58c;if(!_0x13b3d4&&this[_0x11645a(0x21b)][_0x11645a(0x261)](_0xbb0774)&&this['_ensureSubject'](_0xbb0774)[_0x11645a(0x37f)](u[_0x11645a(0x19d)][_0x11645a(0x220)]),!this['_unitOnClients'][_0x11645a(0x261)](_0xbb0774)||!this[_0x11645a(0x21b)]['get'](_0xbb0774)[_0x11645a(0x261)](_0x1cbcdd)){const _0x2880cc=this[_0x11645a(0x21b)][_0x11645a(0x271)](_0xbb0774)||new Set();_0x2880cc[_0x11645a(0x16f)](_0x1cbcdd),this[_0x11645a(0x21b)]['set'](_0xbb0774,_0x2880cc),this[_0x11645a(0x16d)](_0x1cbcdd);}}),_0x13b3d4||this['_send']({'type':0x0,'memberID':this[_0xf8c58c(0x1ae)],'unitIDs':[...this[_0xf8c58c(0x2e3)]],'isForwarded':!0x0});}[_0x42373d(0x16d)](_0x5517ef){const _0x3d96ff=_0x42373d;this[_0x3d96ff(0x247)](_0x5517ef);const _0x4c60f3=window[_0x3d96ff(0x180)](()=>{const _0xe58d86=_0x3d96ff;this[_0xe58d86(0x21b)]['forEach'](_0x3a8292=>{const _0x6d59a4=_0xe58d86;_0x3a8292[_0x6d59a4(0x27a)](_0x5517ef);});},Me*0x2);this[_0x3d96ff(0x330)][_0x3d96ff(0x2c5)](_0x5517ef,_0x4c60f3);}[_0x42373d(0x247)](_0x42c3d9){const _0x38ca68=_0x42373d;if(this[_0x38ca68(0x330)]['has'](_0x42c3d9)){const _0x130048=this['_clearOtherTimers'][_0x38ca68(0x271)](_0x42c3d9);_0x130048&&window[_0x38ca68(0x1d5)](_0x130048),this[_0x38ca68(0x330)][_0x38ca68(0x2c5)](_0x42c3d9,null);}}[_0x42373d(0x2ba)](_0xe5ec32){const _0xf37201=_0x42373d,{memberID:_0x6b0a89,unitIDs:_0x187423}=_0xe5ec32;_0x187423[_0xf37201(0x21a)](_0xa8e502=>{const _0x1d8194=_0xf37201;var _0x5a0ff9;const _0x36a82d=this[_0x1d8194(0x21b)][_0x1d8194(0x271)](_0xa8e502);_0x36a82d&&(_0x36a82d[_0x1d8194(0x27a)](_0x6b0a89),(_0x5a0ff9=this['_ensureSubject'](_0xa8e502))==null||_0x5a0ff9[_0x1d8194(0x37f)](_0x36a82d[_0x1d8194(0x115)]===0x0?u['UnitStatus'][_0x1d8194(0x129)]:u[_0x1d8194(0x19d)][_0x1d8194(0x220)]));}),this[_0xf37201(0x247)](_0x6b0a89);}[_0x42373d(0x34f)](_0x3e5ee7){const _0x16d4e5=_0x42373d;this[_0x16d4e5(0x16d)](_0x3e5ee7[_0x16d4e5(0x36e)]);}[_0x42373d(0x350)](_0x48c522){const _0x21d56d=_0x42373d;localStorage['setItem'](Le,JSON[_0x21d56d(0x120)](_0x48c522));}[_0x42373d(0x36b)](){const _0x39f35e=_0x42373d;this[_0x39f35e(0x277)]=window[_0x39f35e(0x140)](()=>{const _0x453bee=_0x39f35e;this[_0x453bee(0x350)]({'type':0x2,'memberID':this[_0x453bee(0x1ae)]});},Me);}['_ensureSubject'](_0x516297){const _0x56aa7d=_0x42373d;return this['_unitStatus'][_0x56aa7d(0x261)](_0x516297)||this[_0x56aa7d(0x184)]['set'](_0x516297,new d[(_0x56aa7d(0x10c))](u['UnitStatus'][_0x56aa7d(0x129)])),this[_0x56aa7d(0x184)]['get'](_0x516297);}}exports['IURLService']=me,exports[_0x42373d(0x37b)]=$e,exports[_0x42373d(0x33f)]=rs,exports[_0x42373d(0x240)]=xe;
@@ -1 +1 @@
1
- 'use strict';const _0x2a5726=_0x3fcd;function _0x198b(){const _0x310499=['Click\x20to\x20Reconnect','189hUnMqq','4FQhhys','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','18448EguYlg','29051iLnqOC','1557jvhmMR','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Syncing...','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','exports','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Syncing\x20server\x20data...','347354VsaTbn','10250oULTRG','Connection\x20failed,\x20please\x20check\x20your\x20network.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20Conflict','2068053FBJkOa','189648leIbtL','4045225aArXBJ','77404ZEpxve'];_0x198b=function(){return _0x310499;};return _0x198b();}(function(_0x456bb1,_0x46ae9c){const _0x17d61d=_0x3fcd,_0x34ec2d=_0x456bb1();while(!![]){try{const _0x1e24b4=parseInt(_0x17d61d(0xdd))/0x1+parseInt(_0x17d61d(0xe6))/0x2+-parseInt(_0x17d61d(0xe3))/0x3*(-parseInt(_0x17d61d(0xe9))/0x4)+parseInt(_0x17d61d(0xe5))/0x5+parseInt(_0x17d61d(0xe4))/0x6*(parseInt(_0x17d61d(0xe8))/0x7)+parseInt(_0x17d61d(0xed))/0x8*(parseInt(_0x17d61d(0xef))/0x9)+-parseInt(_0x17d61d(0xde))/0xa*(parseInt(_0x17d61d(0xee))/0xb);if(_0x1e24b4===_0x46ae9c)break;else _0x34ec2d['push'](_0x34ec2d['shift']());}catch(_0x557723){_0x34ec2d['push'](_0x34ec2d['shift']());}}}(_0x198b,0x68ed5));const e={'collab-client':{'tooltip':{'reconnect':_0x2a5726(0xe7)}},'collabStatus':{'fetchMiss':_0x2a5726(0xf5),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':'Synced','syncing':_0x2a5726(0xf1),'offline':_0x2a5726(0xeb)},'session':{'connection-failed':_0x2a5726(0xdf),'will-retry':_0x2a5726(0xea),'room-full':_0x2a5726(0xf2),'collaboration-timeout':_0x2a5726(0xf4)},'conflict':{'title':_0x2a5726(0xe2),'content':_0x2a5726(0xf0)},'permission':{'title':'Authentication\x20Error','content':_0x2a5726(0xec)},'collaboration':{'single-unit':{'warning':_0x2a5726(0xe0)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x2a5726(0xe1)}},o=e;function _0x3fcd(_0x275b82,_0x383e74){const _0x198bb3=_0x198b();return _0x3fcd=function(_0x3fcd16,_0x4759bb){_0x3fcd16=_0x3fcd16-0xdd;let _0x44d167=_0x198bb3[_0x3fcd16];return _0x44d167;},_0x3fcd(_0x275b82,_0x383e74);}module[_0x2a5726(0xf3)]=o;
1
+ 'use strict';const _0x384158=_0x3488;function _0x3488(_0x3fca4f,_0x29b77a){const _0x35f944=_0x35f9();return _0x3488=function(_0x348812,_0xb3655e){_0x348812=_0x348812-0x179;let _0x5684d1=_0x35f944[_0x348812];return _0x5684d1;},_0x3488(_0x3fca4f,_0x29b77a);}(function(_0x32351e,_0x25e443){const _0x38441a=_0x3488,_0x28d040=_0x32351e();while(!![]){try{const _0x22c48e=parseInt(_0x38441a(0x180))/0x1+-parseInt(_0x38441a(0x183))/0x2*(parseInt(_0x38441a(0x17c))/0x3)+-parseInt(_0x38441a(0x18a))/0x4*(-parseInt(_0x38441a(0x17e))/0x5)+parseInt(_0x38441a(0x186))/0x6*(-parseInt(_0x38441a(0x17b))/0x7)+-parseInt(_0x38441a(0x18c))/0x8*(parseInt(_0x38441a(0x17a))/0x9)+-parseInt(_0x38441a(0x188))/0xa+parseInt(_0x38441a(0x189))/0xb;if(_0x22c48e===_0x25e443)break;else _0x28d040['push'](_0x28d040['shift']());}catch(_0x5ea8c2){_0x28d040['push'](_0x28d040['shift']());}}}(_0x35f9,0x8adcf));const e={'collab-client':{'tooltip':{'reconnect':_0x384158(0x18f)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x384158(0x17f),'notCollab':_0x384158(0x18e),'synced':'Synced','syncing':_0x384158(0x18d),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x384158(0x181),'will-retry':_0x384158(0x17d),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x384158(0x18b),'content':_0x384158(0x182)},'permission':{'title':_0x384158(0x187),'content':_0x384158(0x179)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x384158(0x184)},'auth':{'needGotoLoginAlert':_0x384158(0x185)}},o=e;function _0x35f9(){const _0x5959fb=['3472iBVONI','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','1665978SnQfTM','Authentication\x20Error','10446500RqvhoS','23934889OySTVh','424WaIGPa','Collaboration\x20Conflict','16624ycembX','Syncing...','Local\x20file','Click\x20to\x20Reconnect','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','1611FbQpDU','14taNWCW','591adkapM','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','2885NNkDSS','Edit\x20conflicts','645652otJFpj','Connection\x20failed,\x20please\x20check\x20your\x20network.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'];_0x35f9=function(){return _0x5959fb;};return _0x35f9();}module['exports']=o;