@univerjs-pro/collaboration-client 0.2.7 → 0.2.9

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 (52) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +0 -1
  4. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +0 -1
  5. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +0 -1
  6. package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +0 -1
  7. package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +0 -1
  8. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +0 -1
  9. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +0 -1
  10. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +0 -1
  11. package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +0 -1
  12. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -1
  13. package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +0 -1
  14. package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -1
  15. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +0 -1
  16. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -1
  17. package/lib/types/controllers/collaboration/utils/empty.d.ts +0 -1
  18. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -1
  19. package/lib/types/controllers/file-name/file-name.controller.d.ts +0 -1
  20. package/lib/types/locale/en-US.d.ts +0 -1
  21. package/lib/types/locale/ru-RU.d.ts +0 -1
  22. package/lib/types/locale/vi-VN.d.ts +0 -1
  23. package/lib/types/locale/zh-TW.d.ts +0 -1
  24. package/lib/types/models/cursor.d.ts +0 -1
  25. package/lib/types/plugin.d.ts +1 -2
  26. package/lib/types/services/auth-server/auth-server.service.d.ts +0 -1
  27. package/lib/types/services/auth-server/authz-io-http.service.d.ts +0 -1
  28. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -1
  29. package/lib/types/services/color-assign/color-assign.service.d.ts +0 -1
  30. package/lib/types/services/comment/comment.service.d.ts +0 -1
  31. package/lib/types/services/image-remote/image-io.service.d.ts +3 -3
  32. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -1
  33. package/lib/types/services/local-cache/local-cache.service.d.ts +0 -1
  34. package/lib/types/services/member/member.service.d.ts +0 -1
  35. package/lib/types/services/permission/permission.service.d.ts +0 -1
  36. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +0 -1
  37. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -1
  38. package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +0 -1
  39. package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -1
  40. package/lib/types/services/socket/serialize.d.ts +0 -1
  41. package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +0 -1
  42. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +0 -1
  43. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +0 -1
  44. package/lib/types/services/url/url.service.d.ts +0 -1
  45. package/lib/types/services/url/web-url.service.d.ts +0 -1
  46. package/lib/types/views/components/CollabStatus.d.ts +0 -1
  47. package/lib/types/views/components/CollabStatus.stories.d.ts +0 -1
  48. package/lib/types/views/shapes/doc-collab-cursor.d.ts +0 -1
  49. package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +0 -1
  50. package/lib/types/views/shapes/text-bubble.shape.d.ts +0 -1
  51. package/lib/umd/index.js +1 -1
  52. package/package.json +27 -27
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5d419f=_0x3130;(function(_0x2a4417,_0x1488ec){const _0x5345b1=_0x3130,_0x3c14e4=_0x2a4417();while(!![]){try{const _0x16cbce=parseInt(_0x5345b1(0x245))/0x1*(parseInt(_0x5345b1(0x380))/0x2)+parseInt(_0x5345b1(0x13e))/0x3+-parseInt(_0x5345b1(0x449))/0x4+-parseInt(_0x5345b1(0x20c))/0x5+-parseInt(_0x5345b1(0x15d))/0x6+-parseInt(_0x5345b1(0x47b))/0x7+-parseInt(_0x5345b1(0x41b))/0x8*(-parseInt(_0x5345b1(0x396))/0x9);if(_0x16cbce===_0x1488ec)break;else _0x3c14e4['push'](_0x3c14e4['shift']());}catch(_0x3d5e1f){_0x3c14e4['push'](_0x3c14e4['shift']());}}}(_0x2f90,0xba254));var $t=Object[_0x5d419f(0x19b)],xt=(_0x403412,_0xca3431,_0x2e4f11)=>_0xca3431 in _0x403412?$t(_0x403412,_0xca3431,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e4f11}):_0x403412[_0xca3431]=_0x2e4f11,u=(_0x300a71,_0x4291f2,_0x29d2bf)=>xt(_0x300a71,typeof _0x4291f2!=_0x5d419f(0x1e1)?_0x4291f2+'':_0x4291f2,_0x29d2bf);Object['defineProperty'](exports,Symbol[_0x5d419f(0x29b)],{'value':_0x5d419f(0x1b6)});const o=require(_0x5d419f(0x35b)),p=require(_0x5d419f(0x2a4)),Q=require(_0x5d419f(0x483)),N=require('@univerjs/ui'),_=require(_0x5d419f(0x41c)),v=require(_0x5d419f(0x158)),C=require(_0x5d419f(0xc5)),P=require(_0x5d419f(0xd4)),U=require(_0x5d419f(0x46f)),A=require('@univerjs/drawing'),b=require(_0x5d419f(0x423)),Ye=require(_0x5d419f(0x276)),$e=require(_0x5d419f(0x2c8)),J=require(_0x5d419f(0x3f6)),y=require(_0x5d419f(0x348)),Ht=require(_0x5d419f(0x27e)),kt=require(_0x5d419f(0x440)),ct=_0x5d419f(0x1c5),Bt='/universer-api/snapshot',lt=_0x5d419f(0x457),ht='SEND_CHANGESET_TIMEOUT',Ft=0x7d0,_t=_0x5d419f(0x2cf),Vt='ws://127.0.0.1:8000/universer-api/comb/connect',ut=_0x5d419f(0xec),Wt=0x7530,xe=_0x5d419f(0x2f3),dt=0x2710,Gt=_0x5d419f(0x283),Yt=0x4e20,Kt=_0x5d419f(0x2cb),Xt=0x3,St='LOCAL_CACHE_INTERVAL',qt=0x3e8,vt=_0x5d419f(0x26b),zt=_0x5d419f(0x394),mt='LOGIN_URL_KEY',Jt=_0x5d419f(0x444);var gt=(_0x13c684=>(_0x13c684[_0x13c684['UNDEFINED']=0x0]=_0x5d419f(0xa8),_0x13c684[_0x13c684['OK']=0x1]='OK',_0x13c684[_0x13c684[_0x5d419f(0x1a4)]=0x2]=_0x5d419f(0x1a4),_0x13c684[_0x13c684[_0x5d419f(0x116)]=0x3]='PERMISSION_DENIED',_0x13c684[_0x13c684[_0x5d419f(0x285)]=0x4]=_0x5d419f(0x285),_0x13c684[_0x13c684[_0x5d419f(0xee)]=0x5]=_0x5d419f(0xee),_0x13c684[_0x13c684[_0x5d419f(0x3ec)]=0x6]=_0x5d419f(0x3ec),_0x13c684[_0x13c684[_0x5d419f(0x1a5)]=0x7]=_0x5d419f(0x1a5),_0x13c684[_0x13c684[_0x5d419f(0x14d)]=0x8]='TOO_MANY_REQUESTS',_0x13c684[_0x13c684[_0x5d419f(0x15e)]=0x9]=_0x5d419f(0x15e),_0x13c684[_0x13c684[_0x5d419f(0x3ee)]=0x1389]=_0x5d419f(0x3ee),_0x13c684[_0x13c684[_0x5d419f(0x1e2)]=0x1771]=_0x5d419f(0x1e2),_0x13c684[_0x13c684[_0x5d419f(0x1f3)]=0x1772]=_0x5d419f(0x1f3),_0x13c684[_0x13c684['APPLY_REJECT']=0x1b59]=_0x5d419f(0x35d),_0x13c684[_0x13c684[_0x5d419f(0x312)]=0x1b5a]=_0x5d419f(0x312),_0x13c684[_0x13c684[_0x5d419f(0xb2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x13c684[_0x13c684[_0x5d419f(0x48b)]=0x1b5c]=_0x5d419f(0x48b),_0x13c684[_0x13c684[_0x5d419f(0x2a6)]=0x1f41]=_0x5d419f(0x2a6),_0x13c684[_0x13c684[_0x5d419f(0x178)]=0x2329]=_0x5d419f(0x178),_0x13c684[_0x13c684['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5d419f(0x30d),_0x13c684[_0x13c684['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x13c684[_0x13c684['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x13c684[_0x13c684[_0x5d419f(0xa6)]=0x232d]=_0x5d419f(0xa6),_0x13c684[_0x13c684['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x5d419f(0x3ac),_0x13c684[_0x13c684[_0x5d419f(0x145)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x13c684[_0x13c684[_0x5d419f(0x13b)]=0x2713]=_0x5d419f(0x13b),_0x13c684[_0x13c684[_0x5d419f(0xb6)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x13c684[_0x13c684[_0x5d419f(0x44c)]=-0x1]=_0x5d419f(0x44c),_0x13c684))(gt||{}),j=(_0x26fe5e=>(_0x26fe5e[_0x26fe5e[_0x5d419f(0x12c)]=0x0]=_0x5d419f(0x12c),_0x26fe5e[_0x26fe5e[_0x5d419f(0x24c)]=0x1]=_0x5d419f(0x24c),_0x26fe5e[_0x26fe5e[_0x5d419f(0x11f)]=0x2]=_0x5d419f(0x11f),_0x26fe5e[_0x26fe5e[_0x5d419f(0x395)]=0x3]='UNIVER_SLIDE',_0x26fe5e[_0x26fe5e[_0x5d419f(0x44c)]=-0x1]='UNRECOGNIZED',_0x26fe5e))(j||{}),T=(_0x40c10b=>(_0x40c10b[_0x40c10b[_0x5d419f(0x351)]=0x0]=_0x5d419f(0x351),_0x40c10b[_0x40c10b[_0x5d419f(0x234)]=0x1]=_0x5d419f(0x234),_0x40c10b[_0x40c10b['JOIN']=0x2]=_0x5d419f(0xcb),_0x40c10b[_0x40c10b[_0x5d419f(0x36e)]=0x3]=_0x5d419f(0x36e),_0x40c10b[_0x40c10b[_0x5d419f(0x2b8)]=0x4]=_0x5d419f(0x2b8),_0x40c10b[_0x40c10b[_0x5d419f(0x166)]=0x5]='HEARTBEAT',_0x40c10b[_0x40c10b['RECV']=0x6]='RECV',_0x40c10b[_0x40c10b[_0x5d419f(0x44c)]=-0x1]=_0x5d419f(0x44c),_0x40c10b))(T||{}),He=(_0x14d08e=>(_0x14d08e[_0x14d08e[_0x5d419f(0x2d7)]=0x0]=_0x5d419f(0x2d7),_0x14d08e[_0x14d08e['OK']=0x1]='OK',_0x14d08e[_0x14d08e[_0x5d419f(0x3c0)]=0x2]='FAIL',_0x14d08e[_0x14d08e[_0x5d419f(0x44c)]=-0x1]=_0x5d419f(0x44c),_0x14d08e))(He||{}),Zt=Object['defineProperty'],Qt=Object[_0x5d419f(0x113)],es=(_0x3f4177,_0x32ba13,_0xa41f6,_0x5c602e)=>{const _0x40b51b=_0x5d419f;for(var _0x5d2130=_0x5c602e>0x1?void 0x0:_0x5c602e?Qt(_0x32ba13,_0xa41f6):_0x32ba13,_0x5c525f=_0x3f4177[_0x40b51b(0xe5)]-0x1,_0x5c3e03;_0x5c525f>=0x0;_0x5c525f--)(_0x5c3e03=_0x3f4177[_0x5c525f])&&(_0x5d2130=(_0x5c602e?_0x5c3e03(_0x32ba13,_0xa41f6,_0x5d2130):_0x5c3e03(_0x5d2130))||_0x5d2130);return _0x5c602e&&_0x5d2130&&Zt(_0x32ba13,_0xa41f6,_0x5d2130),_0x5d2130;},Ke=(_0x42d078,_0x1dbb93)=>(_0x585a2e,_0x15803d)=>_0x1dbb93(_0x585a2e,_0x15803d,_0x42d078);let Y=class extends o[_0x5d419f(0x24f)]{constructor(_0x49256c,_0x2dec43){const _0x734a36=_0x5d419f;super(),u(this,_0x734a36(0x37c),new Map()),(this[_0x734a36(0x473)]=_0x49256c,this[_0x734a36(0x43f)]=_0x2dec43,this[_0x734a36(0x1e0)](o['toDisposable'](v['merge'](this[_0x734a36(0x473)]['getTypeOfUnitDisposed$'](o[_0x734a36(0x464)]['UNIVER_SHEET'])[_0x734a36(0x106)](C['map'](_0x65b75d=>_0x65b75d[_0x734a36(0x100)]())),this[_0x734a36(0x473)]['getTypeOfUnitDisposed$'](o[_0x734a36(0x464)]['UNIVER_DOC'])[_0x734a36(0x106)](C[_0x734a36(0xd9)](_0xd4a0c0=>_0xd4a0c0[_0x734a36(0x100)]())),this[_0x734a36(0x473)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x734a36(0x395)])[_0x734a36(0x106)](C[_0x734a36(0xd9)](_0x403c4c=>_0x403c4c[_0x734a36(0x100)]())))[_0x734a36(0x17f)](_0x4a000c=>this[_0x734a36(0x335)](_0x4a000c)))));}['setCurrentUser'](_0x26a032){const _0x32c1de=_0x5d419f;this[_0x32c1de(0x43f)][_0x32c1de(0x104)](_0x26a032);}[_0x5d419f(0x323)](){const _0x1fc654=_0x5d419f;return this[_0x1fc654(0x43f)][_0x1fc654(0x323)]();}['updateMember'](_0x5deae6,_0x169a63){const _0x18224f=_0x5d419f;let _0x2b53bb=this['_roomMembers'][_0x18224f(0x3ad)](_0x5deae6);_0x2b53bb||(_0x2b53bb=new ts(),this['_roomMembers'][_0x18224f(0x22c)](_0x5deae6,_0x2b53bb)),_0x2b53bb[_0x18224f(0xa1)](_0x169a63);}[_0x5d419f(0x2bb)](_0x37c293,_0x52a3ed){const _0x5e44e0=_0x5d419f,_0x1334b3=this[_0x5e44e0(0x37c)][_0x5e44e0(0x3ad)](_0x37c293);_0x1334b3&&_0x1334b3[_0x5e44e0(0x2bb)](_0x52a3ed);}[_0x5d419f(0x22a)](_0x1c425d){const _0x2c4949=_0x5d419f;return this['_roomMembers'][_0x2c4949(0x3ad)](_0x1c425d);}[_0x5d419f(0x1b4)](_0x5f1530,_0x1a1658){const _0x259f84=_0x5d419f,_0x12234d=this['_roomMembers']['get'](_0x5f1530);if(_0x12234d)return _0x12234d[_0x259f84(0x1b4)](_0x1a1658);}[_0x5d419f(0x335)](_0x23b2cf){const _0x187a41=_0x5d419f,_0x42cf61=this['_roomMembers'][_0x187a41(0x3ad)](_0x23b2cf);_0x42cf61&&(_0x42cf61[_0x187a41(0xdc)](),this[_0x187a41(0x37c)]['delete'](_0x23b2cf));}[_0x5d419f(0xdc)](){const _0x20e474=_0x5d419f;this[_0x20e474(0x37c)][_0x20e474(0x19d)](_0x3f8aef=>_0x3f8aef['dispose']()),this['_roomMembers'][_0x20e474(0xa3)]();}};Y=es([Ke(0x0,o['IUniverInstanceService']),Ke(0x1,o[_0x5d419f(0x28b)](o[_0x5d419f(0x1d5)]))],Y);class ts extends o[_0x5d419f(0x24f)]{constructor(){const _0x584df0=_0x5d419f;super(...arguments),u(this,_0x584df0(0x306),new Map());}['dispose'](){this['_members']['clear']();}[_0x5d419f(0xa1)](_0x3602fb){const _0x1cdb5e=_0x5d419f;this[_0x1cdb5e(0x306)][_0x1cdb5e(0x22c)](_0x3602fb[_0x1cdb5e(0x3b5)],_0x3602fb);}['removeMember'](_0x18ab53){const _0x3e6252=_0x5d419f;this[_0x3e6252(0x306)][_0x3e6252(0x455)](_0x18ab53);}['getMember'](_0x4727cd){const _0x3458c9=_0x5d419f;return this[_0x3458c9(0x306)][_0x3458c9(0x3ad)](_0x4727cd);}}function ft(_0x5c4b1b){const _0x92b466=_0x5d419f;var _0x8070aa,_0x23e93f,_0x2ec6d5,_0xb50fd4;const _0xd9d9d7=_0x5c4b1b['data'],_0x1779ce=JSON[_0x92b466(0x447)](_0xd9d9d7);switch(_0x1779ce[_0x92b466(0x482)]){case T[_0x92b466(0x166)]:case T['HELLO']:{const _0x5d2223=_0x1779ce[_0x92b466(0x2bc)];return{..._0x1779ce,'data':_0x5d2223,'cmd':_0x1779ce[_0x92b466(0x482)]};}case T[_0x92b466(0xcb)]:{const _0x49512=_0x1779ce[_0x92b466(0xfb)];return{..._0x1779ce,'data':_0x49512,'cmd':_0x1779ce['cmd']};}case T[_0x92b466(0x2b7)]:{const _0x5a1cbf=_0x1779ce['collaMsg'];switch(_0x5a1cbf[_0x92b466(0x17b)]){case _[_0x92b466(0xaa)][_0x92b466(0x17d)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':(_0x8070aa=_0x5a1cbf[_0x92b466(0x3e8)])==null?void 0x0:_0x8070aa['cs']},'cmd':_0x1779ce['cmd']};case _['CollaborationEvent'][_0x92b466(0x3af)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':(_0x23e93f=_0x5a1cbf[_0x92b466(0x311)])==null?void 0x0:_0x23e93f['cs']},'cmd':_0x1779ce[_0x92b466(0x482)]};case _['CollaborationEvent'][_0x92b466(0x3a7)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':(_0x2ec6d5=_0x5a1cbf['newCsEvent'])==null?void 0x0:_0x2ec6d5['cs']},'cmd':_0x1779ce[_0x92b466(0x482)]};case _[_0x92b466(0xaa)][_0x92b466(0x3f9)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':(_0xb50fd4=_0x5a1cbf[_0x92b466(0x222)])==null?void 0x0:_0xb50fd4['cs']},'cmd':_0x1779ce[_0x92b466(0x482)]};case _[_0x92b466(0xaa)][_0x92b466(0x22f)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':_0x5a1cbf[_0x92b466(0x3b0)]},'cmd':_0x1779ce[_0x92b466(0x482)]};case _[_0x92b466(0xaa)][_0x92b466(0x39b)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':_0x5a1cbf[_0x92b466(0x2ec)]},'cmd':_0x1779ce[_0x92b466(0x482)]};case _[_0x92b466(0xaa)][_0x92b466(0x220)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':_0x5a1cbf[_0x92b466(0x418)]},'cmd':_0x1779ce['cmd']};case _[_0x92b466(0xaa)][_0x92b466(0x3e5)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':_0x5a1cbf[_0x92b466(0x212)]},'cmd':_0x1779ce[_0x92b466(0x482)]};case _[_0x92b466(0xaa)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x92b466(0xaa)][_0x92b466(0x458)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':_0x5a1cbf[_0x92b466(0x368)]},'cmd':_0x1779ce[_0x92b466(0x482)]};case _['CollaborationEvent'][_0x92b466(0x172)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':_0x5a1cbf[_0x92b466(0x212)]},'cmd':_0x1779ce['cmd']};case _['CollaborationEvent'][_0x92b466(0x228)]:return{..._0x1779ce,'data':_0x5a1cbf,'cmd':_0x1779ce[_0x92b466(0x482)]};case _['CollaborationEvent'][_0x92b466(0x16f)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':_0x5a1cbf[_0x92b466(0x26c)]},'cmd':_0x1779ce[_0x92b466(0x482)]};case _[_0x92b466(0xaa)][_0x92b466(0x111)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':_0x5a1cbf[_0x92b466(0x1cf)]},'cmd':_0x1779ce[_0x92b466(0x482)]};case _[_0x92b466(0xaa)][_0x92b466(0x120)]:return{..._0x1779ce,'data':{..._0x5a1cbf,'data':_0x5a1cbf['shouldCloseConn']},'cmd':_0x1779ce[_0x92b466(0x482)]};default:return _0x1779ce;}}default:return _0x1779ce;}}function It(_0x34d51c){const _0x1c3d44=_0x5d419f;switch(_0x34d51c[_0x1c3d44(0x482)]){case T[_0x1c3d44(0x166)]:case T[_0x1c3d44(0x234)]:return JSON[_0x1c3d44(0x461)]({'cmd':_0x34d51c[_0x1c3d44(0x482)],'routeKey':_0x34d51c[_0x1c3d44(0x236)]});case T[_0x1c3d44(0x2b8)]:{let _0x252875;switch(_0x34d51c[_0x1c3d44(0x435)][_0x1c3d44(0x17b)]){case _[_0x1c3d44(0xaa)][_0x1c3d44(0x22f)]:{_0x252875={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x34d51c[_0x1c3d44(0x435)]['data']};break;}case _[_0x1c3d44(0xaa)]['USERS_LEAVE']:{_0x252875={'eventID':_[_0x1c3d44(0xaa)][_0x1c3d44(0x220)],'leaveEvent':_0x34d51c['data'][_0x1c3d44(0x435)]};break;}case _[_0x1c3d44(0xaa)][_0x1c3d44(0x39b)]:{_0x252875={'eventID':_[_0x1c3d44(0xaa)][_0x1c3d44(0x39b)],'joinEvent':_0x34d51c[_0x1c3d44(0x435)][_0x1c3d44(0x435)]};break;}case _[_0x1c3d44(0xaa)][_0x1c3d44(0x3e5)]:{_0x252875={'eventID':_[_0x1c3d44(0xaa)][_0x1c3d44(0x3e5)],'liveShareNewHost':_0x34d51c[_0x1c3d44(0x435)][_0x1c3d44(0x435)]};break;}case _[_0x1c3d44(0xaa)][_0x1c3d44(0x458)]:{_0x252875={'eventID':_[_0x1c3d44(0xaa)][_0x1c3d44(0x458)],'liveShareOperation':_0x34d51c['data'][_0x1c3d44(0x435)]};break;}case _[_0x1c3d44(0xaa)]['LIVESHARE_TERMINATE']:{_0x252875={'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x34d51c[_0x1c3d44(0x435)][_0x1c3d44(0x435)]};break;}case _[_0x1c3d44(0xaa)][_0x1c3d44(0x1a2)]:{_0x252875={'eventID':_[_0x1c3d44(0xaa)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x34d51c[_0x1c3d44(0x435)][_0x1c3d44(0x435)]};break;}case _['CollaborationEvent'][_0x1c3d44(0x30a)]:{_0x252875={'eventID':_[_0x1c3d44(0xaa)][_0x1c3d44(0x30a)]};break;}default:_0x252875={'eventID':_0x34d51c[_0x1c3d44(0x435)][_0x1c3d44(0x17b)]};}return JSON['stringify']({'cmd':_0x34d51c[_0x1c3d44(0x482)],'routeKey':_0x34d51c[_0x1c3d44(0x236)],'collaMsg':_0x252875});}case T['JOIN']:return JSON[_0x1c3d44(0x461)]({'cmd':_0x34d51c[_0x1c3d44(0x482)],'routeKey':_0x34d51c['routeKey'],'joinReq':_0x34d51c[_0x1c3d44(0x435)]});case T[_0x1c3d44(0x36e)]:return JSON[_0x1c3d44(0x461)]({'cmd':_0x34d51c[_0x1c3d44(0x482)],'routeKey':_0x34d51c[_0x1c3d44(0x236)],'leaveReq':_0x34d51c[_0x1c3d44(0x435)]});default:throw new Error(_0x1c3d44(0x37f));}}var ss=Object[_0x5d419f(0x19b)],is=Object[_0x5d419f(0x113)],ns=(_0x3039f2,_0x38b723,_0x46edaf,_0x56a3ca)=>{const _0x1e5fd1=_0x5d419f;for(var _0x10162a=_0x56a3ca>0x1?void 0x0:_0x56a3ca?is(_0x38b723,_0x46edaf):_0x38b723,_0x520700=_0x3039f2[_0x1e5fd1(0xe5)]-0x1,_0x39af6d;_0x520700>=0x0;_0x520700--)(_0x39af6d=_0x3039f2[_0x520700])&&(_0x10162a=(_0x56a3ca?_0x39af6d(_0x38b723,_0x46edaf,_0x10162a):_0x39af6d(_0x10162a))||_0x10162a);return _0x56a3ca&&_0x10162a&&ss(_0x38b723,_0x46edaf,_0x10162a),_0x10162a;},se=(_0x2be487,_0x4b34c4)=>(_0x31ab84,_0x47dc0e)=>_0x4b34c4(_0x31ab84,_0x47dc0e,_0x2be487);const ke=o[_0x5d419f(0x10a)](_0x5d419f(0x30e));function rs(_0x37e537,_0x3d1f94,_0x188071){const _0x2294c8=_0x5d419f;return _0x37e537+'/'+_0x3d1f94+_0x2294c8(0x2ff)+_0x188071+'/new_changes';}exports[_0x5d419f(0x2f1)]=class{constructor(_0xa9b778,_0x2d9ccc,_0x116f3d,_0x27e23b,_0x148684){const _0x5e4f07=_0x5d419f;this['_http']=_0xa9b778,this['_ws']=_0x2d9ccc,this[_0x5e4f07(0x1c8)]=_0x116f3d,this[_0x5e4f07(0x13a)]=_0x27e23b,this[_0x5e4f07(0x249)]=_0x148684;}[_0x5d419f(0x256)](_0x7f374b){const _0x19512e=_0x5d419f,_0x24076b=this[_0x19512e(0x129)][_0x19512e(0x256)](_0x7f374b);if(!_0x24076b)throw new Error(_0x19512e(0x165));const _0x129538=new o[(_0x19512e(0x170))](),_0x1049e1=new v[(_0x19512e(0xbe))]();_0x129538[_0x19512e(0x182)](o[_0x19512e(0x32d)](_0x24076b['close$'][_0x19512e(0x17f)](_0x2c7f94=>_0x1049e1[_0x19512e(0x2e6)](_0x2c7f94)))),_0x129538[_0x19512e(0x182)](o[_0x19512e(0x32d)](()=>_0x1049e1[_0x19512e(0xaf)]()));const _0x4010c2=new v[(_0x19512e(0xbe))]();_0x129538[_0x19512e(0x182)](o[_0x19512e(0x32d)](_0x24076b[_0x19512e(0x2b6)][_0x19512e(0x17f)](_0xef8908=>_0x4010c2[_0x19512e(0x2e6)](_0xef8908)))),_0x129538[_0x19512e(0x182)](o[_0x19512e(0x32d)](()=>_0x4010c2['complete']()));const _0x20d3d8=new v['Subject']();_0x129538[_0x19512e(0x182)](o['toDisposable'](_0x24076b['message$'][_0x19512e(0x17f)](_0xe34148=>{const _0x525deb=_0x19512e,_0x259c11=ft(_0xe34148);_0x20d3d8[_0x525deb(0x2e6)](_0x259c11);}))),_0x129538[_0x19512e(0x182)](o['toDisposable'](()=>_0x20d3d8[_0x19512e(0xaf)]()));const _0x2c31a6=()=>{const _0x53865a=_0x19512e;_0x4010c2['next'](new Event(_0x53865a(0x108))),_0x1049e1[_0x53865a(0x2e6)](new CloseEvent('connection\x20error')),_0x1436cf[_0x53865a(0x29d)]();},_0x1436cf={'memberID':'','close$':_0x1049e1[_0x19512e(0x130)](),'error$':_0x4010c2[_0x19512e(0x130)](),'open$':_0x24076b[_0x19512e(0xc9)],'message$':_0x20d3d8[_0x19512e(0x130)](),'send':_0x390fbd=>{const _0xda35ef=_0x19512e;if(_0x390fbd[_0xda35ef(0x482)]===T[_0xda35ef(0x2b8)]){if(_0x390fbd[_0xda35ef(0x435)][_0xda35ef(0x17b)]===_[_0xda35ef(0xaa)][_0xda35ef(0xf7)]){this[_0xda35ef(0x27f)](_0x1436cf,_0x390fbd[_0xda35ef(0x435)])[_0xda35ef(0x208)](_0xb38f71=>{const _0x53f6b9=_0xda35ef;this[_0x53f6b9(0x13a)][_0x53f6b9(0x1b7)](_0xb38f71),_0x2c31a6();});return;}if(_0x390fbd[_0xda35ef(0x435)][_0xda35ef(0x17b)]===_[_0xda35ef(0xaa)]['FETCH_MISSING']){const _0x2ec3d8=_0x390fbd['data'];this['_fetchMissChangesets'](_0x2ec3d8)[_0xda35ef(0x371)](_0xabd788=>{const _0x54f097=_0xda35ef;_0x20d3d8[_0x54f097(0x2e6)]({'cmd':T[_0x54f097(0x2b7)],'code':He['OK'],'routeKey':_0x2ec3d8[_0x54f097(0x435)]['unitID'],'routeType':'','data':{'eventID':_[_0x54f097(0xaa)][_0x54f097(0x1b2)],'data':{'changesets':_0xabd788}}});})['catch'](_0x15719c=>{const _0x34a903=_0xda35ef;this[_0x34a903(0x13a)]['error'](_0x15719c),_0x2c31a6();});return;}}_0x24076b[_0xda35ef(0x142)](It(_0x390fbd));},'close':()=>{const _0x167759=_0x19512e;_0x24076b['close'](),_0x129538[_0x167759(0xdc)]();}};return _0x1436cf;}async[_0x5d419f(0x27f)](_0x380922,_0xcb18ba){const _0x51fb8b=_0x5d419f;var _0x41edad;const {unitType:_0x462a4b,unitID:_0x58d5e1,changeset:_0x4217d1}=_0xcb18ba['data'],_0x4fa3b8={'unitID':_0x58d5e1,'memberID':_0x380922[_0x51fb8b(0x3b5)],'type':_0x462a4b,'changeset':_[_0x51fb8b(0x3c3)](_0x4217d1)},_0x240700=rs((_0x41edad=this['_configService'][_0x51fb8b(0x11c)](vt))!=null?_0x41edad:zt,_0x462a4b,_0x58d5e1);try{await this[_0x51fb8b(0x30b)][_0x51fb8b(0xd0)](_0x240700,{'body':_0x4fa3b8});}catch(_0x2c69e7){throw this[_0x51fb8b(0x13a)][_0x51fb8b(0x1b7)](_0x51fb8b(0x24d),_0x51fb8b(0x217)),_0x2c69e7;}}async[_0x5d419f(0x3fe)](_0x257744){const _0x3cb8d4=_0x5d419f,{unitID:_0x3d8a39,from:_0x30213c,to:_0x478d69,unitType:_0x460b24}=_0x257744['data'];return(await this[_0x3cb8d4(0x249)][_0x3cb8d4(0x213)]({'metadata':void 0x0},{'unitID':_0x3d8a39,'type':_0x460b24,'from':_0x30213c,'to':_0x478d69}))['changesets'];}},exports[_0x5d419f(0x2f1)]=ns([se(0x0,o[_0x5d419f(0x28b)](U['HTTPService'])),se(0x1,o[_0x5d419f(0x28b)](U['WebSocketService'])),se(0x2,o[_0x5d419f(0x2d3)]),se(0x3,o[_0x5d419f(0x37a)]),se(0x4,o[_0x5d419f(0x422)])],exports[_0x5d419f(0x2f1)]);class Be{constructor(){const _0x376dc0=_0x5d419f;u(this,_0x376dc0(0x2a8),new v[(_0x376dc0(0xbe))]()),u(this,_0x376dc0(0x2b3),this[_0x376dc0(0x2a8)]['asObservable']());}[_0x5d419f(0x406)](_0x45a750){const _0x5bdeed=_0x5d419f;this[_0x5bdeed(0x2a8)]['next'](_0x45a750);}}var os=Object[_0x5d419f(0x19b)],as=Object[_0x5d419f(0x113)],pt=(_0x1a32cf,_0x3b4d9c,_0x1c7954,_0x222e5f)=>{const _0x4dd34b=_0x5d419f;for(var _0x4a1a18=_0x222e5f>0x1?void 0x0:_0x222e5f?as(_0x3b4d9c,_0x1c7954):_0x3b4d9c,_0x387be1=_0x1a32cf[_0x4dd34b(0xe5)]-0x1,_0x573638;_0x387be1>=0x0;_0x387be1--)(_0x573638=_0x1a32cf[_0x387be1])&&(_0x4a1a18=(_0x222e5f?_0x573638(_0x3b4d9c,_0x1c7954,_0x4a1a18):_0x573638(_0x4a1a18))||_0x4a1a18);return _0x222e5f&&_0x4a1a18&&os(_0x3b4d9c,_0x1c7954,_0x4a1a18),_0x4a1a18;},w=(_0xd173f3,_0x4f6c29)=>(_0x32839b,_0x17573d)=>_0x4f6c29(_0x32839b,_0x17573d,_0xd173f3),G=(_0x1c1fbd=>(_0x1c1fbd[_0x1c1fbd[_0x5d419f(0x1de)]=0x0]='IDLE',_0x1c1fbd[_0x1c1fbd['JOINING']=0x1]=_0x5d419f(0x42b),_0x1c1fbd[_0x1c1fbd['OFFLINE']=0x2]='OFFLINE',_0x1c1fbd[_0x1c1fbd[_0x5d419f(0xc7)]=0x3]='ONLINE',_0x1c1fbd))(G||{});exports['CollaborationSession']=class extends o[_0x5d419f(0x3a0)]{constructor(_0xfc8029,_0x344f2b,_0x203384,_0x453ad8,_0x381db9,_0x287b49,_0x5cac8d,_0x27cb47,_0x58c965){const _0x4842ca=_0x5d419f;super(),u(this,_0x4842ca(0x3fc),new v[(_0x4842ca(0x474))](0x0)),u(this,'sessionStatus$',this[_0x4842ca(0x3fc)][_0x4842ca(0x130)]()),u(this,_0x4842ca(0x292),new v[(_0x4842ca(0xbe))]()),u(this,_0x4842ca(0x242),this[_0x4842ca(0x292)]['asObservable']()),u(this,_0x4842ca(0x2a2)),u(this,_0x4842ca(0x42f)),u(this,_0x4842ca(0x317)),(this[_0x4842ca(0xc6)]=_0xfc8029,this['_logService']=_0x203384,this['_beforeCloseService']=_0x453ad8,this['_messageService']=_0x381db9,this[_0x4842ca(0x1c8)]=_0x287b49,this[_0x4842ca(0x1a1)]=_0x5cac8d,this[_0x4842ca(0xe1)]=_0x27cb47,this['_commentService']=_0x58c965,_0x344f2b[_0x4842ca(0x106)](C['takeUntil'](this[_0x4842ca(0xed)]))['subscribe'](_0x12b85e=>{const _0x310827=_0x4842ca;var _0x2768c3;typeof _0x12b85e>'u'||(this['_socket']=_0x12b85e,_0x12b85e?(this[_0x310827(0x2aa)](_0x12b85e),this[_0x310827(0x42f)]=this[_0x310827(0x2a2)]['message$'][_0x310827(0x17f)](_0x2f14a9=>{const _0x1e7f68=_0x310827;_0x2f14a9[_0x1e7f68(0x236)]===this[_0x1e7f68(0xc6)]&&this[_0x1e7f68(0x408)](_0x2f14a9);})):(this[_0x310827(0x3fc)]['next'](0x2),(_0x2768c3=this['_socketMessageSubscription'])==null||_0x2768c3[_0x310827(0x1dc)](),this[_0x310827(0x42f)]=null));}),this[_0x4842ca(0x1e0)](this[_0x4842ca(0x156)][_0x4842ca(0x434)](()=>{const _0x376e44=_0x4842ca;var _0xa586fc;(_0xa586fc=this[_0x376e44(0x2a2)])==null||_0xa586fc[_0x376e44(0x142)]({'cmd':T[_0x376e44(0x36e)],'data':{'roomID':this[_0x376e44(0xc6)]}});})));}get[_0x5d419f(0x193)](){const _0x2385b4=_0x5d419f;return this[_0x2385b4(0x3fc)][_0x2385b4(0x365)]();}[_0x5d419f(0xfe)](){const _0x25d085=_0x5d419f;var _0x4af5ea,_0x4f624c;return(_0x4f624c=(_0x4af5ea=this[_0x25d085(0x2a2)])==null?void 0x0:_0x4af5ea['memberID'])!=null?_0x4f624c:null;}['dispose'](){const _0x274aa3=_0x5d419f;super[_0x274aa3(0xdc)](),this[_0x274aa3(0xed)][_0x274aa3(0x2e6)](),this[_0x274aa3(0xed)]['complete']();}[_0x5d419f(0x29d)](){const _0x544abe=_0x5d419f;var _0x56f1cc,_0xcb3524;(_0x56f1cc=this[_0x544abe(0x2a2)])==null||_0x56f1cc[_0x544abe(0x142)]({'cmd':T['LEAVE'],'data':{'roomID':this['_unitID']}}),this['_event$'][_0x544abe(0xaf)](),this[_0x544abe(0x3fc)][_0x544abe(0xaf)](),(_0xcb3524=this[_0x544abe(0x2a2)])==null||_0xcb3524['close'](),this[_0x544abe(0xdc)]();}[_0x5d419f(0x408)](_0x1792bd){const _0x203820=_0x5d419f;_0x1792bd['cmd']===T['JOIN']?this[_0x203820(0x316)](_0x1792bd):_0x1792bd[_0x203820(0x482)]===T[_0x203820(0x2b7)]&&this[_0x203820(0x11b)](_0x1792bd);}[_0x5d419f(0x2aa)](_0x2b44f1){const _0x5bc789=_0x5d419f;this['_sessionStatus$'][_0x5bc789(0x2e6)](0x1),_0x2b44f1[_0x5bc789(0x142)]({'cmd':T[_0x5bc789(0xcb)],'routeKey':this[_0x5bc789(0xc6)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5bc789(0xc6)]}]}});}[_0x5d419f(0x316)](_0x20c5a3){const _0xce55a=_0x5d419f;var _0x5d0679;if(_0x20c5a3[_0xce55a(0x1d3)]===He[_0xce55a(0x3c0)]){this[_0xce55a(0x179)]['show']({'type':Q[_0xce55a(0x2ca)][_0xce55a(0x2b5)],'content':this[_0xce55a(0x1a1)]['t'](_0xce55a(0x35f))}),this[_0xce55a(0x3fc)][_0xce55a(0x2e6)](0x2);return;}this['_sessionStatus$'][_0xce55a(0x2e6)](0x3);const _0x24cef5=(_0x5d0679=_0x20c5a3[_0xce55a(0x435)][_0xce55a(0x3e1)][this[_0xce55a(0xc6)]])==null?void 0x0:_0x5d0679[_0xce55a(0x14b)];_0x24cef5&&_0x24cef5[_0xce55a(0x19d)](_0x4ac543=>this[_0xce55a(0xe1)][_0xce55a(0xa1)](this[_0xce55a(0xc6)],_0x4ac543));}[_0x5d419f(0x11b)](_0x298c9c){const _0x501908=_0x5d419f;try{const _0x4178bc=_0x298c9c[_0x501908(0x435)];switch(_0x4178bc['eventID']){case _['CollaborationEvent'][_0x501908(0x39b)]:this[_0x501908(0x331)](_0x4178bc),this['_event$'][_0x501908(0x2e6)](_0x4178bc);break;case _[_0x501908(0xaa)][_0x501908(0x220)]:this[_0x501908(0x34d)](_0x4178bc),this[_0x501908(0x292)]['next'](_0x4178bc);break;case _[_0x501908(0xaa)]['CHANGESET_ACK']:this[_0x501908(0x1d9)](),this['_event$'][_0x501908(0x2e6)](_0x4178bc);break;case _['CollaborationEvent']['MSG_FOR_ERROR']:this[_0x501908(0x13a)][_0x501908(0x1b7)](_0x501908(0x3bf)+JSON[_0x501908(0x461)](_0x4178bc)),this[_0x501908(0x292)][_0x501908(0x2e6)](_0x4178bc);break;case _['CollaborationEvent'][_0x501908(0x16f)]:this['_commentService']['onCommentUpdate'](_0x4178bc[_0x501908(0x435)]),this['_event$']['next'](_0x4178bc);break;default:this[_0x501908(0x292)][_0x501908(0x2e6)](_0x4178bc);}}catch(_0x1cfb42){this['_logService'][_0x501908(0x1b7)](_0x1cfb42,_0x298c9c);}}['_onUserJoin'](_0x901f1c){const _0x598694=_0x5d419f;this[_0x598694(0xe1)][_0x598694(0xa1)](this[_0x598694(0xc6)],_0x901f1c[_0x598694(0x435)]);}[_0x5d419f(0x34d)](_0x5c90ed){const _0x506b65=_0x5d419f;this[_0x506b65(0xe1)][_0x506b65(0x2bb)](this[_0x506b65(0xc6)],_0x5c90ed['data']['memberID']);}async[_0x5d419f(0x142)](_0x1ac71b,_0x458e25){const _0x21b83f=_0x5d419f;if(this['sessionStatus']!==0x3||!this[_0x21b83f(0x2a2)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1ac71b[_0x21b83f(0x17b)]===_[_0x21b83f(0xaa)][_0x21b83f(0x3a7)]&&this[_0x21b83f(0x223)](),this[_0x21b83f(0x2a2)][_0x21b83f(0x142)]({'cmd':T[_0x21b83f(0x2b8)],'routeKey':_0x458e25,'routeType':'','data':_0x1ac71b});}catch(_0x466bec){this['_logService'][_0x21b83f(0x1b7)](_0x466bec);}}[_0x5d419f(0x223)](){const _0x59cf81=_0x5d419f;var _0x3c26a4;this[_0x59cf81(0x317)]=window[_0x59cf81(0x3d9)](()=>{const _0x3793d6=_0x59cf81;this[_0x3793d6(0x317)]=null,this[_0x3793d6(0x179)]['show']({'type':Q['MessageType']['Error'],'content':this[_0x3793d6(0x1a1)]['t'](_0x3793d6(0x160))});},(_0x3c26a4=this['_configService'][_0x59cf81(0x11c)](xe))!=null?_0x3c26a4:dt);}[_0x5d419f(0x1d9)](){const _0x5ab772=_0x5d419f;this[_0x5ab772(0x317)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x5ab772(0x317)]=null);}},exports[_0x5d419f(0x2e4)]=pt([w(0x2,o['ILogService']),w(0x3,N[_0x5d419f(0x419)]),w(0x4,N['IMessageService']),w(0x5,o[_0x5d419f(0x2d3)]),w(0x6,o[_0x5d419f(0x28b)](o['LocaleService'])),w(0x7,o['Inject'](Y)),w(0x8,o['Inject'](Be))],exports[_0x5d419f(0x2e4)]),exports[_0x5d419f(0x334)]=class extends o[_0x5d419f(0x24f)]{constructor(_0x59ef58,_0x1503a4,_0x5d9752,_0x162bb8,_0x1cbf92,_0x1347d5){const _0x1f2cc=_0x5d419f;super(),u(this,_0x1f2cc(0x36f),new v['BehaviorSubject'](void 0x0)),u(this,_0x1f2cc(0x196),new Map()),u(this,_0x1f2cc(0x2db),new v[(_0x1f2cc(0x474))](0x0)),u(this,_0x1f2cc(0x2c5),this[_0x1f2cc(0x2db)]['asObservable']()),u(this,'_socketReady',!0x1),u(this,_0x1f2cc(0x198)),u(this,_0x1f2cc(0x475)),u(this,_0x1f2cc(0x48c)),u(this,_0x1f2cc(0x37d),0x0),(this[_0x1f2cc(0x207)]=_0x59ef58,this['_localeService']=_0x1503a4,this[_0x1f2cc(0x179)]=_0x5d9752,this[_0x1f2cc(0x13a)]=_0x162bb8,this[_0x1f2cc(0x1c8)]=_0x1cbf92,this[_0x1f2cc(0x2fc)]=_0x1347d5);}get[_0x5d419f(0x2a2)](){const _0xcdfc07=_0x5d419f;return this['_socket$'][_0xcdfc07(0x365)]();}[_0x5d419f(0xdc)](){const _0xb5a061=_0x5d419f;super['dispose'](),this['_sessions']['forEach'](_0x1d6482=>_0x1d6482[_0xb5a061(0xdc)]()),this[_0xb5a061(0x196)]['clear'](),this['_status$']['complete']();}async[_0x5d419f(0x1ff)](_0xd01244){const _0x579211=_0x5d419f;if(this[_0x579211(0x196)][_0x579211(0x153)](_0xd01244))return this['_sessions'][_0x579211(0x3ad)](_0xd01244);this[_0x579211(0x3cb)]();const _0x30eb1d=this['_injector'][_0x579211(0x347)](exports[_0x579211(0x2e4)],_0xd01244,this[_0x579211(0x36f)][_0x579211(0x130)]());return this[_0x579211(0x196)][_0x579211(0x22c)](_0xd01244,_0x30eb1d),_0x30eb1d;}[_0x5d419f(0x3cd)](_0x7384ab){const _0x52f4f2=_0x5d419f;var _0x468512;const _0x573248=this[_0x52f4f2(0x196)][_0x52f4f2(0x3ad)](_0x7384ab);_0x573248&&(this['_sessions'][_0x52f4f2(0x455)](_0x7384ab),_0x573248['close']()),this[_0x52f4f2(0x196)]['size']||(_0x468512=this['_socket'])==null||_0x468512[_0x52f4f2(0x29d)]();}[_0x5d419f(0x354)](){const _0x255d6f=_0x5d419f;var _0x5017d0;const _0x12e7d7=(_0x5017d0=this[_0x255d6f(0x1c8)]['getConfig'](_t))!=null?_0x5017d0:Vt;return this[_0x255d6f(0x2fc)][_0x255d6f(0x256)](_0x12e7d7);}['_tryEnsureSocket'](){const _0x5741d6=_0x5d419f;try{const _0x29f085=this[_0x5741d6(0x354)]();if(_0x29f085){const _0x485783=_0x29f085[_0x5741d6(0x142)];_0x29f085[_0x5741d6(0x142)]=_0xad865=>(this['_rescheduleHeartbeatEvent'](),_0x485783['apply'](_0x29f085,[_0xad865])),_0x29f085[_0x5741d6(0x18f)][_0x5741d6(0x17f)](_0xa58a8e=>this[_0x5741d6(0x253)](_0x29f085,_0xa58a8e)),_0x29f085[_0x5741d6(0x2b6)][_0x5741d6(0x106)](C[_0x5741d6(0x189)](0x1))['subscribe'](_0x15a709=>this[_0x5741d6(0x13a)][_0x5741d6(0x1b7)]('[CollaborationSessionService]:\x20socket\x20error',_0x15a709)),_0x29f085[_0x5741d6(0xc9)][_0x5741d6(0x106)](C[_0x5741d6(0x189)](0x1))[_0x5741d6(0x17f)](()=>{const _0x39661a=_0x5741d6;this[_0x39661a(0x450)](_0x29f085);}),_0x29f085[_0x5741d6(0x42a)][_0x5741d6(0x106)](C[_0x5741d6(0x189)](0x1))['subscribe'](_0x57af50=>{const _0x4e0e1b=_0x5741d6;this['_logService'][_0x4e0e1b(0x27d)](_0x4e0e1b(0x2e5),_0x4e0e1b(0x31b),_0x57af50),this['_onConnectionFailed']();});}}catch(_0x7e6e30){this[_0x5741d6(0x13a)]['error'](_0x7e6e30),this[_0x5741d6(0x27b)]();}}[_0x5d419f(0x450)](_0x35fd87){const _0x5cb0a2=_0x5d419f;this[_0x5cb0a2(0x13a)][_0x5cb0a2(0x27d)](_0x5cb0a2(0x2e5),_0x5cb0a2(0x41e)),_0x35fd87[_0x5cb0a2(0x142)]({'cmd':T['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x5d419f(0x27b)](){const _0x44a624=_0x5d419f;var _0x272d1a;this[_0x44a624(0x2db)]['next'](0x2),this['_socket$']['next'](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this[_0x44a624(0x24b)]=!0x1,this[_0x44a624(0x37d)]<((_0x272d1a=this['_configService'][_0x44a624(0x11c)](Kt))!=null?_0x272d1a:Xt)?(this[_0x44a624(0x133)](this['_retryCount']),this[_0x44a624(0x37d)]+=0x1):this['_messageService'][_0x44a624(0x1b3)]({'type':Q['MessageType']['Error'],'content':this[_0x44a624(0x1a1)]['t'](_0x44a624(0x393))});}[_0x5d419f(0x133)](_0x2a5a2c){const _0x519bcc=_0x5d419f;var _0x1a721a;const _0x61627=((_0x1a721a=this[_0x519bcc(0x1c8)][_0x519bcc(0x11c)](Gt))!=null?_0x1a721a:Yt)*0x2**_0x2a5a2c;this[_0x519bcc(0x179)]['show']({'type':Q[_0x519bcc(0x2ca)]['Warning'],'content':this[_0x519bcc(0x1a1)]['t'](_0x519bcc(0x25d))}),this[_0x519bcc(0x48c)]=setTimeout(()=>{const _0x21f761=_0x519bcc;this[_0x21f761(0x3cb)](),clearTimeout(this[_0x21f761(0x48c)]),this[_0x21f761(0x48c)]=null;},_0x61627);}[_0x5d419f(0x47d)](){const _0x5575d7=_0x5d419f;var _0x3c7bd3;this[_0x5575d7(0x1f5)](),this[_0x5575d7(0x198)]=setTimeout(()=>this[_0x5575d7(0x186)](),(_0x3c7bd3=this['_configService'][_0x5575d7(0x11c)](ut))!=null?_0x3c7bd3:Wt);}[_0x5d419f(0x186)](){const _0x564996=_0x5d419f;this[_0x564996(0x2a2)][_0x564996(0x142)]({'cmd':T[_0x564996(0x166)]}),this['_waitForHeartbeatResponse']();}[_0x5d419f(0x43e)](){const _0x1f8764=_0x5d419f;var _0xee1bfb;this['_timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](),(_0xee1bfb=this['_configService'][_0x1f8764(0x11c)](xe))!=null?_0xee1bfb:dt);}[_0x5d419f(0x253)](_0x59ad30,_0x5914d3){const _0x39f875=_0x5d419f,{cmd:_0x3aafce}=_0x5914d3;_0x3aafce===T[_0x39f875(0x234)]&&!this[_0x39f875(0x24b)]&&(_0x59ad30[_0x39f875(0x3b5)]=_0x5914d3[_0x39f875(0x435)][_0x39f875(0x3b5)],this['_socket$']['next'](_0x59ad30),this[_0x39f875(0x2db)][_0x39f875(0x2e6)](0x3),this['_socketReady']=!0x0),_0x3aafce===T['HEARTBEAT']&&this[_0x39f875(0x1d2)](),this[_0x39f875(0x47d)]();}[_0x5d419f(0x1f5)](){const _0xa4c63f=_0x5d419f;this[_0xa4c63f(0x198)]!=null&&(clearTimeout(this[_0xa4c63f(0x198)]),this[_0xa4c63f(0x198)]=null);}[_0x5d419f(0x1d2)](){const _0x482a37=_0x5d419f;this[_0x482a37(0x475)]!=null&&(clearTimeout(this[_0x482a37(0x475)]),this[_0x482a37(0x475)]=null);}},exports[_0x5d419f(0x334)]=pt([w(0x0,o[_0x5d419f(0x28b)](o['Injector'])),w(0x1,o[_0x5d419f(0x28b)](o[_0x5d419f(0x159)])),w(0x2,N[_0x5d419f(0x3fd)]),w(0x3,o[_0x5d419f(0x37a)]),w(0x4,o[_0x5d419f(0x2d3)]),w(0x5,ke)],exports['CollaborationSessionService']);var cs=Object[_0x5d419f(0x19b)],ls=Object[_0x5d419f(0x113)],hs=(_0x669f83,_0x554f95,_0x5bf6e0,_0x5eb209)=>{const _0x28c67f=_0x5d419f;for(var _0x2044a0=_0x5eb209>0x1?void 0x0:_0x5eb209?ls(_0x554f95,_0x5bf6e0):_0x554f95,_0x1499f1=_0x669f83[_0x28c67f(0xe5)]-0x1,_0x1738a7;_0x1499f1>=0x0;_0x1499f1--)(_0x1738a7=_0x669f83[_0x1499f1])&&(_0x2044a0=(_0x5eb209?_0x1738a7(_0x554f95,_0x5bf6e0,_0x2044a0):_0x1738a7(_0x2044a0))||_0x2044a0);return _0x5eb209&&_0x2044a0&&cs(_0x554f95,_0x5bf6e0,_0x2044a0),_0x2044a0;},ie=(_0x19f0d6,_0x1e93e7)=>(_0x401d55,_0x1ba361)=>_0x1e93e7(_0x401d55,_0x1ba361,_0x19f0d6);exports['LocalCacheService']=class extends o[_0x5d419f(0x24f)]{constructor(_0x1c0cdf,_0x1867a6,_0x324af6,_0x3f168b,_0x8b6165){const _0x41e3cd=_0x5d419f;super(),u(this,_0x41e3cd(0x16a),new Map()),u(this,'_saveTaskMap',new Map()),u(this,_0x41e3cd(0x2bd),!0x1),(this['_configService']=_0x1c0cdf,this[_0x41e3cd(0x21b)]=_0x1867a6,this[_0x41e3cd(0x156)]=_0x324af6,this[_0x41e3cd(0x1a1)]=_0x3f168b,this['_revisionService']=_0x8b6165,this['_setupBeforeClosingHandler']());}[_0x5d419f(0x28a)](){const _0x208eb8=_0x5d419f;this[_0x208eb8(0x2bd)]=!0x0;}[_0x5d419f(0x374)](){this['_disabled']=!0x1;}['dispose'](){const _0xbd5f95=_0x5d419f;this[_0xbd5f95(0x3e0)]()[_0xbd5f95(0x371)](()=>super['dispose']());}async[_0x5d419f(0xe3)](_0x2a4815){const _0x179800=_0x5d419f;return this[_0x179800(0x2bd)]?null:this[_0x179800(0x21b)]['getItem'](Xe(_0x2a4815));}async[_0x5d419f(0x121)](_0xb41e0b,_0x1cab23){return!!this['_localStorageService']['setItem'](_0xb41e0b,_0x1cab23);}[_0x5d419f(0x47a)](_0x49cc9d,_0x1795b3,_0x435899,_0x305c0c){const _0x4754bf=_0x5d419f,_0x533d6a=this[_0x4754bf(0xf3)][_0x4754bf(0x1c6)](_0x49cc9d);this[_0x4754bf(0x16a)][_0x4754bf(0x22c)](_0x49cc9d,{'unitID':_0x49cc9d,'type':_0x1795b3,'awaitingChangeset':_0x435899,'mutations':_0x305c0c,'rev':_0x533d6a}),this[_0x4754bf(0x3d8)][_0x4754bf(0x153)](_0x49cc9d)||this[_0x4754bf(0x1a0)](_0x49cc9d);}[_0x5d419f(0x1a0)](_0x17757b){const _0x16b68f=_0x5d419f,_0x22cf88=this['_getSaveTimeout']();_0x22cf88===0x0?this[_0x16b68f(0x246)](_0x17757b):this[_0x16b68f(0x3d8)][_0x16b68f(0x22c)](_0x17757b,setTimeout(()=>this[_0x16b68f(0x246)](_0x17757b),_0x22cf88));}[_0x5d419f(0x17c)](){const _0x1cc2fb=_0x5d419f;var _0x39392d;return(_0x39392d=this[_0x1cc2fb(0x1c8)][_0x1cc2fb(0x11c)](St))!=null?_0x39392d:qt;}[_0x5d419f(0x246)](_0x1c1e51){const _0x3c5119=_0x5d419f,_0x303aff=this[_0x3c5119(0x3d8)][_0x3c5119(0x3ad)](_0x1c1e51);return _0x303aff!==void 0x0&&window[_0x3c5119(0x195)](_0x303aff),this[_0x3c5119(0x21b)][_0x3c5119(0xa7)](Xe(_0x1c1e51),this[_0x3c5119(0x16a)][_0x3c5119(0x3ad)](_0x1c1e51))['then'](()=>this[_0x3c5119(0x3d8)][_0x3c5119(0x455)](_0x1c1e51));}async[_0x5d419f(0x3e0)](){const _0x53fd3e=_0x5d419f,_0x590398=[];this[_0x53fd3e(0x3d8)][_0x53fd3e(0x19d)]((_0x47b76c,_0x2a4395)=>{const _0x48eb54=_0x53fd3e;window['clearTimeout'](_0x47b76c),_0x590398['push'](this[_0x48eb54(0x246)](_0x2a4395)[_0x48eb54(0x371)](()=>{const _0x578dfc=_0x48eb54;this[_0x578dfc(0x3d8)][_0x578dfc(0x455)](_0x2a4395);}));}),await Promise[_0x53fd3e(0x2f0)](_0x590398);}[_0x5d419f(0x372)](){const _0x53c04b=_0x5d419f;this[_0x53c04b(0x1e0)](this[_0x53c04b(0x156)]['registerBeforeClose'](()=>{const _0x5ae328=_0x53c04b;if(this['_saveTaskMap']['size'])return this[_0x5ae328(0x1a1)]['t'](_0x5ae328(0x363));}));}},exports[_0x5d419f(0x3f2)]=hs([ie(0x0,o[_0x5d419f(0x2d3)]),ie(0x1,o['ILocalStorageService']),ie(0x2,N[_0x5d419f(0x419)]),ie(0x3,o['Inject'](o[_0x5d419f(0x159)])),ie(0x4,o[_0x5d419f(0x28b)](_['RevisionService']))],exports[_0x5d419f(0x3f2)]);function Xe(_0x4c5efd){const _0x34e0b0=_0x5d419f;return _0x34e0b0(0x157)+_0x4c5efd;}const pe=o[_0x5d419f(0x10a)](_0x5d419f(0x2b1));var Ct=(_0x1d9939=>(_0x1d9939[_0x1d9939[_0x5d419f(0x168)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1d9939[_0x1d9939[_0x5d419f(0x2d0)]=0x1]=_0x5d419f(0x2d0),_0x1d9939))(Ct||{});const qe=0x7530,ze=_0x5d419f(0x112);class _s extends o[_0x5d419f(0x24f)]{constructor(){const _0x2d2aa9=_0x5d419f;super(),u(this,_0x2d2aa9(0x479),o[_0x2d2aa9(0x215)]['generateRandomId']()),u(this,'_selfUnitIDs',new Set()),u(this,_0x2d2aa9(0x428),new Map()),u(this,_0x2d2aa9(0x21a),null),u(this,_0x2d2aa9(0xca),new Map()),u(this,_0x2d2aa9(0x12d),new Map()),this[_0x2d2aa9(0x470)]();}['dispose'](){const _0x53f2e6=_0x5d419f;super[_0x53f2e6(0xdc)](),this[_0x53f2e6(0xca)]['forEach']((_0x55774b,_0x3b7f20)=>this[_0x53f2e6(0x188)](_0x3b7f20)),this[_0x53f2e6(0x21a)]&&window[_0x53f2e6(0x33d)](this[_0x53f2e6(0x21a)]);}[_0x5d419f(0x45a)](_0x2a3ee2){const _0x39e6ba=_0x5d419f;return this[_0x39e6ba(0x1be)](_0x2a3ee2)[_0x39e6ba(0x106)](v[_0x39e6ba(0x20d)]());}[_0x5d419f(0x1bb)](_0x580f4a){const _0x5307e6=_0x5d419f;this[_0x5307e6(0x203)][_0x5307e6(0x43a)]===0x0&&this[_0x5307e6(0x2e8)](),this['_selfUnitIDs'][_0x5307e6(0x182)](_0x580f4a),this[_0x5307e6(0x39f)]({'type':0x0,'memberID':this[_0x5307e6(0x479)],'unitIDs':[_0x580f4a],'isForwarded':!0x1});}['disposeUnit'](_0x3f69ea){const _0x44641d=_0x5d419f;this[_0x44641d(0x203)][_0x44641d(0x455)](_0x3f69ea),this['_selfUnitIDs'][_0x44641d(0x43a)]===0x0&&this[_0x44641d(0x21a)]&&window[_0x44641d(0x33d)](this[_0x44641d(0x21a)]);}[_0x5d419f(0x470)](){const _0x14ddfa=_0x5d419f;this[_0x14ddfa(0x1e0)](o['toDisposable'](v[_0x14ddfa(0x266)](window,_0x14ddfa(0x3f5))[_0x14ddfa(0x17f)](_0x43a3e3=>{const _0x1963df=_0x14ddfa;if(_0x43a3e3[_0x1963df(0x258)]!==ze||!_0x43a3e3[_0x1963df(0x320)])return;const _0x41ecda=JSON['parse'](_0x43a3e3['newValue']);this[_0x1963df(0x3d4)](_0x41ecda);}))),window[_0x14ddfa(0x40f)](_0x14ddfa(0x400),()=>this[_0x14ddfa(0x39f)]({'type':0x1,'memberID':this[_0x14ddfa(0x479)],'unitIDs':Array[_0x14ddfa(0x3b4)](this[_0x14ddfa(0x203)])}));}[_0x5d419f(0x3d4)](_0x432713){const _0x4cb812=_0x5d419f;switch(_0x432713[_0x4cb812(0x441)]){case 0x0:this['_handleJoinEvent'](_0x432713);break;case 0x1:this[_0x4cb812(0x3df)](_0x432713);break;case 0x2:this[_0x4cb812(0x173)](_0x432713);break;}}['_handleJoinEvent'](_0x2bd0a8){const _0x2350a9=_0x5d419f,{unitIDs:_0x198db1,memberID:_0x362dc1,isForwarded:_0xaa0209}=_0x2bd0a8;_0x198db1['forEach'](_0x457a47=>{const _0x40317d=_0x3130;if(!_0xaa0209&&this[_0x40317d(0x428)][_0x40317d(0x153)](_0x457a47)&&this[_0x40317d(0x1be)](_0x457a47)[_0x40317d(0x2e6)](0x1),!this[_0x40317d(0x428)][_0x40317d(0x153)](_0x457a47)||!this['_unitOnClients'][_0x40317d(0x3ad)](_0x457a47)[_0x40317d(0x153)](_0x362dc1)){const _0x3ecb6c=this[_0x40317d(0x428)]['get'](_0x457a47)||new Set();_0x3ecb6c[_0x40317d(0x182)](_0x362dc1),this[_0x40317d(0x428)]['set'](_0x457a47,_0x3ecb6c),this[_0x40317d(0x45e)](_0x362dc1);}}),_0xaa0209||this[_0x2350a9(0x39f)]({'type':0x0,'memberID':this[_0x2350a9(0x479)],'unitIDs':[...this[_0x2350a9(0x203)]],'isForwarded':!0x0});}[_0x5d419f(0x45e)](_0x57f602){const _0x37a614=_0x5d419f;this[_0x37a614(0x188)](_0x57f602);const _0x1ecebb=window['setTimeout'](()=>{const _0x4714b0=_0x37a614;this[_0x4714b0(0x428)][_0x4714b0(0x19d)](_0xabbbb3=>{_0xabbbb3['delete'](_0x57f602);});},qe*0x2);this[_0x37a614(0xca)]['set'](_0x57f602,_0x1ecebb);}[_0x5d419f(0x188)](_0x1fe423){const _0x4ebb9f=_0x5d419f;if(this[_0x4ebb9f(0xca)]['has'](_0x1fe423)){const _0x1422af=this['_clearOtherTimers'][_0x4ebb9f(0x3ad)](_0x1fe423);_0x1422af&&window[_0x4ebb9f(0x195)](_0x1422af),this[_0x4ebb9f(0xca)][_0x4ebb9f(0x22c)](_0x1fe423,null);}}[_0x5d419f(0x3df)](_0x2eef7d){const _0x323438=_0x5d419f,{memberID:_0xe88dac,unitIDs:_0x45e50a}=_0x2eef7d;_0x45e50a[_0x323438(0x19d)](_0x34bfd5=>{const _0x2c7288=_0x323438;var _0x2d5901;const _0x5ced3c=this['_unitOnClients'][_0x2c7288(0x3ad)](_0x34bfd5);_0x5ced3c&&(_0x5ced3c[_0x2c7288(0x455)](_0xe88dac),(_0x2d5901=this[_0x2c7288(0x1be)](_0x34bfd5))==null||_0x2d5901[_0x2c7288(0x2e6)](_0x5ced3c[_0x2c7288(0x43a)]===0x0?0x0:0x1));}),this[_0x323438(0x188)](_0xe88dac);}['_handleHeartbeatEvent'](_0x199ca6){const _0x3ed78f=_0x5d419f;this['_scheduleClearOtherTimer'](_0x199ca6[_0x3ed78f(0x3b5)]);}[_0x5d419f(0x39f)](_0x28f0dd){const _0x445627=_0x5d419f;localStorage[_0x445627(0xa7)](ze,JSON['stringify'](_0x28f0dd));}[_0x5d419f(0x2e8)](){const _0x1a8c75=_0x5d419f;this[_0x1a8c75(0x21a)]=window[_0x1a8c75(0x339)](()=>{const _0x4504fd=_0x1a8c75;this[_0x4504fd(0x39f)]({'type':0x2,'memberID':this[_0x4504fd(0x479)]});},qe);}[_0x5d419f(0x1be)](_0x6eb060){const _0x1ce101=_0x5d419f;return this['_unitStatus'][_0x1ce101(0x153)](_0x6eb060)||this[_0x1ce101(0x12d)]['set'](_0x6eb060,new v['BehaviorSubject'](0x0)),this[_0x1ce101(0x12d)][_0x1ce101(0x3ad)](_0x6eb060);}}var us=Object[_0x5d419f(0x19b)],ds=Object[_0x5d419f(0x113)],Ss=(_0x126245,_0x2b5169,_0x1e6e8f,_0x4ccfa8)=>{const _0x2e0a3a=_0x5d419f;for(var _0x26fbc4=_0x4ccfa8>0x1?void 0x0:_0x4ccfa8?ds(_0x2b5169,_0x1e6e8f):_0x2b5169,_0x9f4f43=_0x126245[_0x2e0a3a(0xe5)]-0x1,_0x5e0c7a;_0x9f4f43>=0x0;_0x9f4f43--)(_0x5e0c7a=_0x126245[_0x9f4f43])&&(_0x26fbc4=(_0x4ccfa8?_0x5e0c7a(_0x2b5169,_0x1e6e8f,_0x26fbc4):_0x5e0c7a(_0x26fbc4))||_0x26fbc4);return _0x4ccfa8&&_0x26fbc4&&us(_0x2b5169,_0x1e6e8f,_0x26fbc4),_0x26fbc4;},Je=(_0x4a8909,_0x536053)=>(_0x4354fc,_0x588e2a)=>_0x536053(_0x4354fc,_0x588e2a,_0x4a8909);let ve=class{constructor(_0x2c6b07,_0x18d68b){const _0x566467=_0x5d419f;this[_0x566467(0x207)]=_0x2c6b07,this[_0x566467(0x132)]=_0x18d68b;}[_0x5d419f(0x3e2)](_0x324e8d){const _0x1966cc=_0x5d419f;this[_0x1966cc(0x148)](_0x324e8d),this[_0x1966cc(0x118)](_0x324e8d);}['transformRemoteChangeset'](_0x4e771d){const _0x48c79=_0x5d419f,_0x2fe657=this['_injector'][_0x48c79(0x3ad)](P[_0x48c79(0x3ca)]),{redoCache:_0x5e4e8d}=_0x2fe657[_0x48c79(0x44b)]();if(_0x5e4e8d[_0x48c79(0xe5)]===0x0)return _0x4e771d;let _0x145289=o[_0x48c79(0x215)][_0x48c79(0x350)](_0x4e771d['mutations'][0x0]);for(let _0x31acf4=0x0;_0x31acf4<_0x5e4e8d[_0x48c79(0xe5)];_0x31acf4++){const _0x28e865={'id':_0x48c79(0x477),'params':{..._0x5e4e8d[_0x31acf4]}},_0x3381ce=this[_0x48c79(0x132)]['transformMutation'](_0x145289,_0x28e865,!0x1);if(_[_0x48c79(0x1c7)](_0x3381ce))throw _0x3381ce[_0x48c79(0x1b7)];_0x145289=_0x3381ce[_0x48c79(0x233)];}return{...o[_0x48c79(0x215)][_0x48c79(0x350)](_0x4e771d),'mutations':[_0x145289]};}[_0x5d419f(0x148)](_0x3fbcef){const _0x4eb8ce=_0x5d419f,_0x99c4c5=this[_0x4eb8ce(0x207)]['get'](P[_0x4eb8ce(0x3ca)]),{undoCache:_0xe6e060,redoCache:_0x4a0354}=_0x99c4c5[_0x4eb8ce(0x44b)]();if(_0xe6e060[_0x4eb8ce(0xe5)]===0x0||_0x4a0354[_0x4eb8ce(0xe5)]===0x0)return;const _0x5b7ac1=[],_0x2241d0=[];let _0x15108a=o[_0x4eb8ce(0x215)][_0x4eb8ce(0x350)](_0x3fbcef['mutations'][0x0]),_0x32088d=o['Tools'][_0x4eb8ce(0x350)](_0x3fbcef[_0x4eb8ce(0x282)][0x0]);for(let _0x3a4c95=_0xe6e060[_0x4eb8ce(0xe5)]-0x1;_0x3a4c95>=0x0;_0x3a4c95--){const _0x31c20d={'id':'doc.mutation.rich-text-editing','params':{..._0xe6e060[_0x3a4c95]}},_0x416f56={'id':'doc.mutation.rich-text-editing','params':{..._0x4a0354[_0x3a4c95]}},_0x40450a=this[_0x4eb8ce(0x132)][_0x4eb8ce(0x1e8)](_0x15108a,_0x31c20d,!0x1),_0x1e0d98=this[_0x4eb8ce(0x132)]['transformMutation'](_0x32088d,_0x416f56,!0x1);if(_[_0x4eb8ce(0x1c7)](_0x40450a))throw _0x40450a[_0x4eb8ce(0x1b7)];if(_['isTransformMutationFailure'](_0x1e0d98))throw _0x1e0d98['error'];_0x5b7ac1[_0x4eb8ce(0xd8)](_0x40450a[_0x4eb8ce(0x16d)][_0x4eb8ce(0x46a)]),_0x2241d0['unshift'](_0x1e0d98[_0x4eb8ce(0x16d)]['params']),_0x15108a=_0x40450a[_0x4eb8ce(0x233)],_0x32088d=_0x1e0d98[_0x4eb8ce(0x233)];}_0x99c4c5['setUndoRedoMutationParamsCache']({'undoCache':_0x5b7ac1,'redoCache':_0x2241d0});}['_transformPreviousActiveRange'](_0x294357){const _0x401f95=_0x5d419f,_0x3b6e95=this[_0x401f95(0x207)][_0x401f95(0x3ad)](P['IMEInputManagerService']),_0x1e4735=_0x3b6e95['getActiveRange']();if(_0x1e4735==null)return;const _0x239230=[{'id':_0x401f95(0x477),'params':{'unitId':_0x294357[_0x401f95(0xf9)],'actions':null,'textRanges':[_0x1e4735]}}],_0x3b7f67=this[_0x401f95(0x132)][_0x401f95(0x366)](_0x294357,_0x239230);if(!_[_0x401f95(0x37e)](_0x3b7f67))throw _0x3b7f67[_0x401f95(0x1b7)];const _0x5bf29d=_0x3b7f67[_0x401f95(0x16d)][0x0][_0x401f95(0x46a)][_0x401f95(0x2de)];Array[_0x401f95(0x2c9)](_0x5bf29d)&&_0x5bf29d[_0x401f95(0xe5)]&&_0x3b6e95[_0x401f95(0x362)](_0x5bf29d[0x0]);}};ve=Ss([Je(0x0,o['Inject'](o[_0x5d419f(0x1e7)])),Je(0x1,_[_0x5d419f(0xbd)])],ve);var vs=Object[_0x5d419f(0x19b)],ms=Object[_0x5d419f(0x113)],gs=(_0x38d9c3,_0x1272f6,_0x2b12ee,_0x95d8b9)=>{for(var _0x31eea9=_0x95d8b9>0x1?void 0x0:_0x95d8b9?ms(_0x1272f6,_0x2b12ee):_0x1272f6,_0x3f9bf4=_0x38d9c3['length']-0x1,_0x1fb5f3;_0x3f9bf4>=0x0;_0x3f9bf4--)(_0x1fb5f3=_0x38d9c3[_0x3f9bf4])&&(_0x31eea9=(_0x95d8b9?_0x1fb5f3(_0x1272f6,_0x2b12ee,_0x31eea9):_0x1fb5f3(_0x31eea9))||_0x31eea9);return _0x95d8b9&&_0x31eea9&&vs(_0x1272f6,_0x2b12ee,_0x31eea9),_0x31eea9;},Ze=(_0x237b2a,_0x2ee4bc)=>(_0x4346ad,_0x276068)=>_0x2ee4bc(_0x4346ad,_0x276068,_0x237b2a);let me=class{constructor(_0x19eba3,_0x223e32){const _0x4ae07b=_0x5d419f;this['_injector']=_0x19eba3,this[_0x4ae07b(0x132)]=_0x223e32;}[_0x5d419f(0x1e6)](_0x1a8bc7){const _0xde4353=_0x5d419f;var _0x35921a;const _0xee05a9=this[_0xde4353(0x207)]['get'](P[_0xde4353(0xc0)]),_0x87ef7a=(_0x35921a=_0xee05a9[_0xde4353(0x12b)]())!=null?_0x35921a:[],_0x55d378=_0x87ef7a==null?void 0x0:_0x87ef7a[_0xde4353(0xd9)](P[_0xde4353(0x469)]);if(_0x55d378['length']===0x0)return;const _0x4abd65=[{'id':_0xde4353(0x477),'params':{'unitId':_0x1a8bc7[_0xde4353(0xf9)],'actions':null,'textRanges':_0x55d378}}],_0x1507b1=this[_0xde4353(0x132)]['transformMutationsWithChangeset'](_0x1a8bc7,_0x4abd65);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1507b1))throw _0x1507b1['error'];const _0x4e9dcd=_0x1507b1['m2Prime'][0x0][_0xde4353(0x46a)][_0xde4353(0x2de)];Array['isArray'](_0x4e9dcd)&&_0x4e9dcd['length']&&_0xee05a9[_0xde4353(0x114)](_0x4e9dcd,!0x1);}};me=gs([Ze(0x0,o[_0x5d419f(0x28b)](o['Injector'])),Ze(0x1,_[_0x5d419f(0xbd)])],me);function Et(_0x100188){let _0x52ac43='';for(const _0x5e48b8 of _0x100188){const {startOffset:_0x42728d,endOffset:_0x29b94a,isActive:_0x908675}=_0x5e48b8;_0x52ac43['length']&&(_0x52ac43+=','),_0x52ac43+=_0x42728d+':'+_0x29b94a+':'+(_0x908675?'1':'0');}return _0x52ac43;}function fs(_0x6c45dc){const _0x39f31f=_0x5d419f,_0x1e4552=_0x6c45dc[_0x39f31f(0x177)](','),_0x4caeb3=[];for(const _0x5bca53 of _0x1e4552){const [_0x2b63f8,_0x35ba29,_0x44406c]=_0x5bca53[_0x39f31f(0x177)](':');_0x4caeb3[_0x39f31f(0x151)]({'startOffset':Number(_0x2b63f8),'endOffset':Number(_0x35ba29),'collapsed':_0x2b63f8===_0x35ba29,'isActive':_0x44406c==='1'});}return _0x4caeb3[_0x39f31f(0x33c)](_0x23c870=>_0x23c870[_0x39f31f(0x229)])||(_0x4caeb3[0x0]['isActive']=!0x0),_0x4caeb3;}class Fe extends o[_0x5d419f(0x3a0)]{constructor(){const _0x1b8459=_0x5d419f;super(...arguments),u(this,_0x1b8459(0x29f),new v[(_0x1b8459(0x474))](null)),u(this,_0x1b8459(0x26e),this[_0x1b8459(0x29f)][_0x1b8459(0x130)]());}[_0x5d419f(0x32b)](_0x22140e){const _0x1c44e9=_0x5d419f,{unitID:_0x598355,memberID:_0xeaa17d,textRanges:_0x307ecd}=_0x22140e,_0x58353f=Et(_0x307ecd),_0x22b2cc={'unitID':_0x598355,'memberID':_0xeaa17d,'selection':_0x58353f};this[_0x1c44e9(0x29f)][_0x1c44e9(0x2e6)](_0x22b2cc);}}function _0x2f90(){const _0x5f4e6b=['InsertRangeMoveRightCommandId','uni.network.url-service','transformChangesets','createInstance','react','_drawRectRange','measureText','image/bmp','_collaborationSessionService','_onUserLeave','ICommandService','_transformSelections','deepClone','UNKNOWN_CMD','_awaitingChangeset','font','_createSocket','_entities','_sendingTimer','[OfflineState]:\x20received\x20rejection.','_drawTextRange','transformStack\x20failed!','verdancy600','@univerjs/core','[PendingState]:\x20received\x20rejection.','APPLY_REJECT','HEARTBEAT_TIMEOUT_KEY','session.room-full','conflict.content','collab-text-range-','setActiveRange','collaboration-client.offline-data-not-saved','tag','getValue','transformMutationsWithChangeset','_labelPosition','liveShareOperation','[OfflineState]:\x20received\x20changeset.','DeleteRangeMoveUpCommandId','_scheduleTimestamp','onTransformRemoteChangesetByIMECache','evenodd','LEAVE','_socket$','assignAColorForMemberID','then','_setupBeforeClosingHandler','resolve','enableLocalCache','currentTheme$','collabStatus.notCollab','attrs','find','onStateChange','ILogService','_colorAssignService','_roomMembers','_retryCount','isTransformMutationsWithChangesetSuccess','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','3216xfCHvR','getCoordByCell','toRgbString','_loadDoc','updatePermissionPoint','_onCursorUpdate','originalMeta','onTransformIME','awaitingChangeset','getInterceptPoints','round','[SyncedState]:\x20received\x20acknowledgement.','_color','onMouseMove','IUIPartsService','unit','handleIRemoveRow','_hovered','isTransformMutationsWithChangesetFailure','session.connection-failed','/universer-api/comb','UNIVER_SLIDE','4311yVTAgW','propertyIsEnumerable','objectType','CommandType','{fileID}','USERS_ENTER','svg','resize','conflict','_send','RxDisposable','_onRemoteACK','mergeOverrideWithDependencies','handleMoveRange','_executeRemoteChangeset','offline','unknown','NEW_CHANGESETS','activeSheet$','_initMergeInterceptor','ranges','_getUploadFileURL','YUUMI_UNABLE_LOAD_URL','get','loadDoc','CHANGESET_ACK','updateCursorEvent','hasOwnProperty','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','black','from','memberID','reject','Rect','permission.content','getOwnPropertySymbols','registerRefRange','addImageSourceCache','Unknown\x20user','/collaborator','#FFF','save\x20fail\x20reason\x20is\x20','FAIL','_collaborationPaused','[PendingState]:\x20received\x20acknowledgement.','parseChangesetToProtocol','url(#$1','getSheetBySheetId','session','permission.title','_cursorShapes','_startCollaboration','IMEInputManagerService','_tryEnsureSocket','update','closeSession','...','POST','_urlService','getViewport','colorChannel1','_handleHover','_handleEvent','_disableEditing','replaceState','ERROR_IMAGE','_saveTaskMap','setTimeout','_getAPIPrefix','focused$','saveChangeset','_snapshotService','useRef','_handleLeaveEvent','exhaustSavingTask','roomInfos','transformIMECache','handleInsertRangeMoveDown','translate(.97)','LIVESHARE_NEW_HOST','_docSkeleton','getCurrent','permissionRejEvent','fillText','_cursorInfo$','cursorInfo$','ALREADY_EXISTS','/-/object/-/batch_allowed','CHANGESET_REVISION_CONFILICT','_createInitialStateImpl','startRow','_updateLocalCursor','LocalCacheService','univerjs-icon\x20univerjs-icon-','CompressMutationService','storage','@univerjs/sheets-ui','EmptyMutation','FileId','CHANGESET_REJ','substring','_cursors','_sessionStatus$','IMessageService','_fetchMissChangesets','_anchorDot','unload','_isPermissionRej','status','IUndoRedoService','ThresholdInterceptorFactory','univer-online-status-icon','onCommentUpdate','_eventUnsubscribe','_onCombEvent','transformUndoRedo','onload','saveSheetBlock','makeDirty','onSyncEditingCollabCursor','getActiveSheet','addEventListener','trim','?size=','EffectRefRangId','rev','appendMutation','_sheetSkeletonManagerService','_clearScheduledTask','_drawAnchor','leaveEvent','IBeforeCloseService','encodeURIComponent','36856yWlbdx','@univerjs-pro/collaboration','RemoveRowCommandId','socket\x20open.','onRemoteChangeset','beginPath','awaiting','ISnapshotServerService','@univerjs/engine-render','collab-rect-range-','XHRHTTPImplementation','LifecycleStages','/object/','_unitOnClients','_imageSourceCache','close$','JOINING','snapshot','_roomMembers$','[CollaborationEntity]','_socketMessageSubscription','failed\x20to\x20apply\x20missed\x20changesets!','_unlockTransition','hide','body','registerOnClose','data','Rectangle','column','INotificationService','moveTo','size','_transformStack','_lastPointer','url','_waitForHeartbeatResponse','_userManagerService','@univerjs/rpc','type','pauseCollaboration','objectID','/universer-api/oidc/authpage','delay','title','parse','prototype','5928640rEqwxh','registerHTTPInterceptor','getUndoRedoMutationParamsCache','UNRECOGNIZED','textEncoder','BuiltInUIPart','_remoteChangesetQueue','_onConnectionOpen','putCollaborators','append','getFocusedUnit','executeCommand','delete','_initCloseConn','SNAPSHOT_URL_KEY','LIVESHARE_OPERATION','call','getUnitStatus$','_onConflict','encode','conflict.title','_scheduleClearOtherTimer','FETCH_MISS','SheetCollaborationEntity','stringify','_updateCollabCursors','_registerDependencies','UniverInstanceType','sheetId','mapDocumentTypeToUniverType','toString','M0\x200H16V16H0z','serializeDocRange','params','/rev/','Optional','objectActions','/-/object/list','@univerjs/network','_init','_transitionLocked','_compressMutationService','_univerInstanceService','BehaviorSubject','_timeoutTimer','_initUnitPermissionChange','doc.mutation.rich-text-editing','reduce','_id','updateOfflineData','2896005ftIdDy','IImageIoService','_rescheduleHeartbeatEvent','_render','getCurrentSelections','_docTransformSelectionsService','_entityInit$','cmd','@univerjs/design','getCollabCursors$','enableOfflineEditing','_backgroundColor','_singleActiveUnitService','_setupSubUnitSync','IPermissionService','takeUntil','APPLY_PERMISSION_DENIED','_retryConnectingTimer','_applyRemoteChangeset','updateMember','urlChange$','clear','[OfflineState]:\x20received\x20acknowledgement.','_schedule','LICENSE_DISTRO_REJECTED','setItem','UNDEFINED','collabStatus.conflict','CollaborationEvent','roomMembers','entries','pending','deserializeToCombResponse','complete','OnLifecycle','RichTextEditingMutation','APPLY_REVISION_CONFILICT','SetSelectionsOperation','/universer-api/authz','xlink:href','YUUMI_SUBSCRIPTION_NOT_FOUND','_decreaseWaiting','getUnitType','onTransformChange$','?url=','roomMembers$','[CollaborationState]:\x20apply\x20error!','ITransformService','Subject','CommentService','TextSelectionManagerService','SetWorksheetActivateCommand','Univer','getColor','_draw','rxjs/operators','_unitID','ONLINE','image/jpg','open$','_clearOtherTimers','JOIN','getSkeleton','_lockTransition','_redoStacks','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','post','onMissedChangesetFetched','setParam','\x0aAfter:\x20','@univerjs/docs','allowed','LOGIN_URL_KEY','Error','unshift','map','range','_pendingMutations','dispose','RefRangeService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','InsertSheetMutation','InsertRangeMoveDownCommandId','_memberService','random','loadOfflineData','_acknowledgedAwaitingChangeset','length','backgroundColor','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','currentSkeleton$','OFFLINE','searchParams','displayName','HEARTBEAT_INTERVAL','dispose$','UNAUTHENTICATED','_updateState','forwardRef','slice','_onRemoteChangeset','_revisionService','runRefRangeMutations','color','combineLatest','SUBMIT_CHANGESET','_hideTimer','unitID','getParam','joinRsp','ImageUploadStatusType','UniverCollaborationClientPlugin','getMemberID','onSendChangeset','getUnitId','defs','create','debounceTime','setCurrentUser','startsWith','pipe','0\x200\x2016\x2016','connection\x20error','enableSingleActiveInstanceLock','createIdentifier','top','batchAllowed','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_collabCursorController','objects','_HTTPService','UPDATE_PERMISSION_OBJ','ACTIVE_UNIT_EVENT_CHANNEL','getOwnPropertyDescriptor','replaceTextRanges','JSONX','PERMISSION_DENIED','COMPRESS_MUTATION_SEND','_transformPreviousActiveRange','onlineStatusIcon','_getSnapshotAPIPrefix','_onRecvEvent','getConfig','_getScale','HTTPService','UNIVER_SHEET','SHOULD_CLOSE_CONN','saveOfflineData','&to=','Workbook','onPointerLeave$','[FetchMissState]','getCellPositionByOffset','CollaborationController','COLLAB_WEB_SOCKET_URL_KEY','_ws','HTTPRequest','getDocRanges','UNIVER_UNKNOWN','_unitStatus','result','_initModules','asObservable','UniverIcon','_transformService','_scheduleReconnection','/block/','width','SYNCED','image/jpeg','AWAITING','fetchThroughInterceptors','_logService','YUUMI_RATE_OVER_LIMIT','name','BASE64','3167415rhwNaH','_transformIMECache','current','children','send','_syncEditingCollabCursor','_clearUndo','YUUMI_URL_COL_OUT_OF_RANGE','HEADER_MENU','loadSheet','_transformUndoRedoStack','IURLService','CONFLICT','members','getCollabEntity','TOO_MANY_REQUESTS','FromArray','CollaborationStatusDisplay','handleInsertRow','push','_onRefRangeChange','has','_substituteRedoStack','_refRangeService','_beforeCloseService','unit-cache-','rxjs','LocaleService','subunit','VIEWPORT_KEY','_transformUndoredo','2324280ovvANE','COMPLETION_FINISHED','DEFAULT_FILE_NAME','session.collaboration-timeout','registerComponent','_type','[UniverCollaborationClientPlugin]','_startDocCollabCursor','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','HEARTBEAT','compose','NO_OTHER_CLIENTS_EDITING','#fff','_cachedData','url(#on-line-single_clip0_910_349)','onlyLocal','m2Prime','getTime','COMMENT_UPDATE','DisposableCollection','getWorkbookSelections','LIVESHARE_TERMINATE','_handleHeartbeatEvent','synced','ImageSourceType','gold400','split','LICENSE_MAX_UNITS_EXCEEDED','_messageService','href','eventID','_getSaveTimeout','PERMISSION_REJ','Plugin','subscribe','sheetID','IUniverInstanceService','add','deleteCollaborator','list','createCollaborator','_sendHeartbeat','_transformRemoteChangesetByIMECache','_removeClearOtherTimer','take','src','path','/universer-api/snapshot/','_initResize','DocStateChangeManagerService','message$','fetching\x20missing\x20changesets\x20from\x20','OnLineSingle','selection','sessionStatus','onlineStatus','clearTimeout','_sessions','baseRev','_sendHeartbeatTimer','subscribeEvent','AuthzIoHttpService','defineProperty','RemoveColCommandId','forEach','MergeInterceptorFactory','on-line-single_clip0_910_349','_scheduleSaving','_localeService','LIVESHARE_REQUEST_HOST','currentColor','INTERNAL_ERROR','INVALID_ARGUMENT','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','RevisionService','div','1em','replace','localeService','init','_onLocalMutation','MUTATION','shareReplay','univer-offline','ColorKit','PSEUDO_FETCH_MISSING_RESULT','show','getMember','listRoles','Module','error','indexOf','auth.needGotoLoginAlert','0\x200\x2017\x2016','editingUnit','string','_name','_ensureSubject','getResourcesRequest','extend','collaboratorID','parseProtocolChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getImage','SNAPSHOT_SERVER_URL_KEY','getCurrentRevForDocument','isTransformMutationFailure','_configService','NOT_COLLAB','resend','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','toggleOnline','_getSignURL','_waitCount','updatePermissionObjEvent','idSuffix','onRendered','_clearTimeoutTimer','code','onPointerEnter$','UserManagerService','onRemoteAck','_createInitialState','icon','_clearCollaborationTimeoutTimer','none','SEND_CHANGESET_TIMEOUT_KEY','unsubscribe','_removeCollabCursors','IDLE','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','disposeWithMe','symbol','SNAPSHOT_INVALID_SNAPSHOT','/role','univer-online-status','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','transformSelections','Injector','transformMutation','_getMergeRange','defIds','addObject','collabStatus.offline','Vector2','purple300','Error\x20on\x20receiving\x20event','_undoStacks','ImageIoService','_context','SNAPSHOT_HAS_BEEN_REMOVED','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','_clearHeartbeatTimer','_themeService','action','incrementRevForDocument','saveSnapshot','_createHandler','ICollaborationSocketService','/allowed','toggleOffline','registerRenderModule','requireSession','_notificationService','switchMap','SheetCollabCursorShape','_selfUnitIDs','jiqing500','univer-online','_commandService','_injector','catch','\x0aCurrent:\x20','selections','filter','2185735NNEtiB','distinctUntilChanged','hovered','UUID','startColumn','fillStyle','liveShareNewHost','fetchMissingChangesets','resourceIDs','Tools','on-line-single','submit\x20changeset\x20error!','_startSheetCollabCursor','_toggleOnline','_heartbeatTimer','_localStorageService','online','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','handleIRemoveCol','method','USERS_LEAVE','UniverCollaborationPlugin','csRejEvent','_scheduleCollaborationTimeoutTimer','[SyncedState]:\x20received\x20rejection.','getTypeOfUnitDisposed$','_docTransformIMECacheService','every','MSG_FOR_ERROR','isActive','getRoom','_getLoginPath','set','getUnitOnRev','IContextService','UPDATE_CURSOR','_scene','interceptor','height','m1Prime','HELLO','put','routeKey','pluginName','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','socketService','_substituteUndoStack','_collaborationController','EXCHANGE_SIGN_URL_SERVER_URL_KEY','getTypeOfUnitAdded$','popstate','_state','_clearRedo','_getSendChangesetTimeout','event$','_change$','values','137ikyAAB','_saveCache','apply','_range','_snapshotServerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_socketReady','UNIVER_DOC','[CollaborationSession]','DependentOn','Disposable','onCommandExecuted','[PendingState]:\x20unhandled\x20univer\x20type:\x20','sheets','_onMessage','_textBubble','transformByState','createSocket','_updateStatus','key','actions','_permissionService','_updateSubUnitFromURLParams','lineTo','session.will-retry','_registerRenderDependencies','getUnhiddenWorksheets','_undoRedoService','findNodePositionByCharIndex','off-line-single_clip0_910_343','_colorIndex','_clearLocalCache','clipPath','fromEvent','fetch_missing','_collabSessionService','pushState','DataLoaderController','COLLAB_SUBMIT_CHANGESET_URL','commentUpdateEvent','drawWith','collabCursorState$','\x20-\x20','getUniverSheetInstance','getRangePointData','_uiPartsService','FETCH_MISSING','enableAuthServer','min','@univerjs/engine-formula','_cursor','AWAITING_WITH_PENDING','InsertRowCommandId','IRenderManagerService','_onConnectionFailed','override','debug','clsx','_submitChangeset','userID','mapTo','mutations','RETRY_CONNECTING_INTERVAL','isTransformChangesetsSuccess','NOT_FOUND','red300','location','COLORS','_handler','disableLocalCache','Inject','fromEventSubject','subUnitId','fill','LocalUndoRedoService','getImageSourceCache','COMPRESS_MUTATION_APPLY','_event$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_updateURLWithCurrentState','transformRemoteChangeset','bottom','SnapshotServerOverHTTPService','arc','createElement','whenReady','toStringTag','SheetsSelectionsService','close','_shapes','_collabCursorState$','history','className','_socket','_document','@univerjs/sheets','roles','CONNECTOR_DATA_TOO_LARGE','initWorkbookPermissionChange','_commentUpdate$','_online','_joinRoom','_getCurrentRevision','generateRandomId','unitId','c1Prime','fromCollab','_renderManagerService','univer-pro.collaboration-client.single-active-unit-service','DocSkeletonManagerService','commentUpdate$','_toggleOffline','Warning','error$','RECV','INGEST','[CollaborationUndoRedoService]','PENDING','removeMember','infoRsp','_disabled','COLLAB_SUBMIT_CHANGESET_URL_KEY','image/png','collabStatus.fetchMiss','merge','_docSkeletonManagerService','deserializeRangeWithSheet','_initStatusComponent','status$','isInternalEditorID','setAlpha','lodash/debounce','isArray','MessageType','RETRY_CONNECTING_MAX_COUNT','sessionStatus$','_assignedColors','/fetchmissing?from=','COLLAB_WEB_SOCKET_URL','OTHER_CLIENTS_EDITING','awaiting_with_pending','text','IConfigService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_getAnchorBounding','onTransformSelections','UNKNOWN_CODE','off-line-single','json','isPermissionRej','_status$','_sheetTransformSelectionsService','getSheetId','textRanges','url(#off-line-single_clip0_910_343)','SUCCUSS','_syncEditingCollabCursorService','_docStateChangeManagerService','blue400','CollaborationSession','[CollaborationSessionService]','next','DesktopCollaborationStatusDisplayController','_scheduleHeartbeat','_getCtorByUniverType','endRow','_incrementRevisionNumber','joinEvent','getCollabEntity$','_session','restore','all','CollaborationSocketService','_localCacheService','HEARTBEAT_TIMEOUT','_anchor','collabStatus.syncing','not_collab','DeleteRangeMoveLeftCommandId','_httpService','_loadSheet','state','ThemeService','_socketService','_onRemoteRejected','IHTTPImplementation','/unit/','Starting','WebSocketService','concat','IRemoteInstanceService','useDependency','assign','_members','setShapeProps','endColumn','[DataLoaderController]','LIVESHARE_FETCH_OPERATIONS','_http','_getAPIPrefixPath','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','univer-pro.collaboration-client-socket-service','WebURLService','\x20to\x20','csAckEvent','APPLY_NON_SEQUENTIAL_REVISION','serializeCombRequest','confirm','save','_onJoinRoomEvent','_collaborationTimeoutTimer','onRemoteRej','isValidRectRange','revision','socket\x20close','_updateLocalCache','onlineStatusTitle','_checkMissing','updateCollaborator','newValue','\x20in\x20_schedule.','_getUndoStack','getCurrentUser','Shape','max','_replayCachedMutations','_config','labelPosition','_docSyncEditingCollabCursorService','_state$','syncEditingCollabCursor','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','toDisposable','getSheetObject','/universer-api/file/{fileID}/sign-url','_refreshCollabCursors','_onUserJoin','_hover','cursorInfo','CollaborationSessionService','_removeRoom','Ready','editing\x20status\x20changed\x20to','_onCursorDelete','setInterval','RegularPolygon','TEXT_RANGE_LAYER_INDEX','some','clearInterval','closePath','MoveRangeCommandId','b64DecodeUnicode','WorkbookEditablePermission','_onFetchMissResult','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.'];_0x2f90=function(){return _0x5f4e6b;};return _0x2f90();}var Is=Object[_0x5d419f(0x19b)],ps=Object['getOwnPropertyDescriptor'],Cs=(_0x7c172b,_0x58f6c2,_0x47c4ff,_0x5f1b82)=>{const _0x218ce1=_0x5d419f;for(var _0x4fb86b=_0x5f1b82>0x1?void 0x0:_0x5f1b82?ps(_0x58f6c2,_0x47c4ff):_0x58f6c2,_0x5559fc=_0x7c172b[_0x218ce1(0xe5)]-0x1,_0x3dbddd;_0x5559fc>=0x0;_0x5559fc--)(_0x3dbddd=_0x7c172b[_0x5559fc])&&(_0x4fb86b=(_0x5f1b82?_0x3dbddd(_0x58f6c2,_0x47c4ff,_0x4fb86b):_0x3dbddd(_0x4fb86b))||_0x4fb86b);return _0x5f1b82&&_0x4fb86b&&Is(_0x58f6c2,_0x47c4ff,_0x4fb86b),_0x4fb86b;},Qe=(_0x2c37cd,_0x5bbdf0)=>(_0x2ad556,_0x2bccfb)=>_0x5bbdf0(_0x2ad556,_0x2bccfb,_0x2c37cd);function Es(_0xe3e897){const _0x343904=_0x5d419f,{unitID:_0x210abd,mutations:_0x41559e}=_0xe3e897;return{'unitId':_0x210abd,'subUnitId':_0x41559e[0x0][_0x343904(0x46a)][_0x343904(0x28d)]};}let ge=class{constructor(_0x1c7779,_0x484854){this['_injector']=_0x1c7779,this['_transformService']=_0x484854;}['transformSelections'](_0x44be1a){const _0x4ff9c7=_0x5d419f;var _0x3022f0,_0x57cf08,_0x397e9b;const _0x1652c4=this[_0x4ff9c7(0x207)][_0x4ff9c7(0x3ad)](p[_0x4ff9c7(0x29c)]),{unitId:_0x2cd7fe,subUnitId:_0x4a499d}=Es(_0x44be1a),_0x3bbcec=_0x1652c4[_0x4ff9c7(0x171)](_0x2cd7fe)['getCurrentSelections']();if(_0x3bbcec['length']===0x0||!_0x2cd7fe||!_0x4a499d)return;const _0x2c8134=[{'id':p[_0x4ff9c7(0xb3)]['id'],'params':{'unitId':_0x2cd7fe,'subUnitId':_0x4a499d,'selections':o['Tools'][_0x4ff9c7(0x350)](_0x3bbcec)}}],_0x404446=this['_transformService'][_0x4ff9c7(0x366)](_0x44be1a,_0x2c8134);if(!_[_0x4ff9c7(0x37e)](_0x404446))throw _0x404446[_0x4ff9c7(0x1b7)];const _0x3ce191=(_0x397e9b=(_0x57cf08=(_0x3022f0=_0x404446[_0x4ff9c7(0x16d)][0x0])==null?void 0x0:_0x3022f0['params'])==null?void 0x0:_0x57cf08['selections'])!=null?_0x397e9b:_0x3bbcec;Array[_0x4ff9c7(0x2c9)](_0x3ce191)&&_0x3ce191[_0x4ff9c7(0xe5)]&&this[_0x4ff9c7(0x207)][_0x4ff9c7(0x3ad)](o[_0x4ff9c7(0x34e)])[_0x4ff9c7(0x454)](p[_0x4ff9c7(0xb3)]['id'],{'unitId':_0x2cd7fe,'subUnitId':_0x4a499d,'selections':_0x3ce191});}};ge=Cs([Qe(0x0,o['Inject'](o[_0x5d419f(0x1e7)])),Qe(0x1,_['ITransformService'])],ge);const bs=new Set([p[_0x5d419f(0xdf)]['id']]);function et(_0x13242b,_0x14042e,_0x5905e6,_0x232991,_0x2da581){const _0x3350c9=_0x5d419f;var _0x5080d4,_0x2f0480,_0x41125f,_0x356a29;const _0x2d52e5=[];for(const _0x34a00c of _0x13242b)if(bs[_0x3350c9(0x153)](_0x34a00c['id'])){if(_0x2d52e5[_0x3350c9(0xe5)]>0x0)break;_0x2d52e5[_0x3350c9(0x151)](_0x34a00c);break;}else _0x2d52e5[_0x3350c9(0x151)](_0x34a00c);const _0x4f87d1=(_0x2f0480=(_0x5080d4=_0x2da581[_0x3350c9(0x323)]())==null?void 0x0:_0x5080d4['userID'])!=null?_0x2f0480:_0x3350c9(0x3a6),_0x4abf21=(_0x356a29=(_0x41125f=_0x2da581['getCurrentUser']())==null?void 0x0:_0x41125f[_0x3350c9(0x3b5)])!=null?_0x356a29:'unknown';return{'changeset':{'unitID':_0x14042e,'type':_[_0x3350c9(0x466)](_0x5905e6[_0x3350c9(0xb8)](_0x14042e)),'baseRev':_0x232991[_0x3350c9(0x1c6)](_0x14042e),'revision':0x0,'userID':_0x4f87d1,'memberID':_0x4abf21,'mutations':_0x2d52e5},'pendingMutations':_0x13242b[_0x3350c9(0xf1)](_0x2d52e5['length'])};}function Ts(_0x153532,_0x42c0aa,_0x314f9e,_0x200373,_0xaa2660){const _0x5cbfa8=_0x5d419f;var _0x4c4d38,_0x243a2b,_0x23f0b4,_0x1ded86;const _0x2010bb=[_0x153532[_0x5cbfa8(0x478)]((_0x158533,_0x50d485)=>{const _0x1b2cc7=_0x5cbfa8;var _0x598849;const {id:_0x2722a9}=_0x158533,{id:_0x58314c,type:_0x549b88}=_0x50d485,_0x388778=(_0x598849=_0x158533['params'])!=null?_0x598849:{'actions':null},_0x507fef=_0x50d485[_0x1b2cc7(0x46a)];if(_0x2722a9&&_0x2722a9!==_0x58314c)throw new Error(_0x1b2cc7(0xe7)+_0x2722a9+_0x1b2cc7(0x26f)+_0x58314c+'.');return{..._0x158533,'id':_0x58314c,'type':_0x549b88,'params':{'unitId':_0x507fef['unitId'],'textRanges':_0x507fef['textRanges'],'actions':o[_0x1b2cc7(0x115)][_0x1b2cc7(0x167)](_0x388778[_0x1b2cc7(0x259)],_0x507fef[_0x1b2cc7(0x259)])}};},{})],_0x23b4be=(_0x243a2b=(_0x4c4d38=_0xaa2660[_0x5cbfa8(0x323)]())==null?void 0x0:_0x4c4d38[_0x5cbfa8(0x280)])!=null?_0x243a2b:_0x5cbfa8(0x3a6),_0x56f950=(_0x1ded86=(_0x23f0b4=_0xaa2660[_0x5cbfa8(0x323)]())==null?void 0x0:_0x23f0b4[_0x5cbfa8(0x3b5)])!=null?_0x1ded86:'unknown';return{'changeset':{'unitID':_0x42c0aa,'type':_[_0x5cbfa8(0x466)](_0x314f9e['getUnitType'](_0x42c0aa)),'baseRev':_0x200373[_0x5cbfa8(0x1c6)](_0x42c0aa),'revision':0x0,'userID':_0x23b4be,'memberID':_0x56f950,'mutations':_0x2010bb},'pendingMutations':[]};}const Rs={'id':p[_0x5d419f(0x3f7)]['id'],'type':o[_0x5d419f(0x399)]['MUTATION'],'params':{}};var Os=Object[_0x5d419f(0x19b)],Ds=Object[_0x5d419f(0x113)],K=(_0x3f5129,_0x40d324,_0x4d14fb,_0x16f8c7)=>{const _0x18156c=_0x5d419f;for(var _0x34cf07=_0x16f8c7>0x1?void 0x0:_0x16f8c7?Ds(_0x40d324,_0x4d14fb):_0x40d324,_0x2b7085=_0x3f5129[_0x18156c(0xe5)]-0x1,_0x2ca3b9;_0x2b7085>=0x0;_0x2b7085--)(_0x2ca3b9=_0x3f5129[_0x2b7085])&&(_0x34cf07=(_0x16f8c7?_0x2ca3b9(_0x40d324,_0x4d14fb,_0x34cf07):_0x2ca3b9(_0x34cf07))||_0x34cf07);return _0x16f8c7&&_0x34cf07&&Os(_0x40d324,_0x4d14fb,_0x34cf07),_0x34cf07;},m=(_0x13be92,_0x154b38)=>(_0x993e3c,_0x197a73)=>_0x154b38(_0x993e3c,_0x197a73,_0x13be92),D=(_0x1ec08d=>(_0x1ec08d['NOT_COLLAB']=_0x5d419f(0x2f6),_0x1ec08d[_0x5d419f(0x136)]='synced',_0x1ec08d[_0x5d419f(0x2ba)]=_0x5d419f(0xad),_0x1ec08d['AWAITING']=_0x5d419f(0x421),_0x1ec08d[_0x5d419f(0x278)]=_0x5d419f(0x2d1),_0x1ec08d[_0x5d419f(0x45f)]=_0x5d419f(0x267),_0x1ec08d[_0x5d419f(0x14a)]=_0x5d419f(0x39e),_0x1ec08d[_0x5d419f(0xe9)]=_0x5d419f(0x3a5),_0x1ec08d))(D||{});class X{constructor(_0x10e266,_0x4013af,_0x3ee054,_0x139ff2,_0x119cd4,_0x298196,_0x40c8b6,_0x47f4c0,_0x3ac4e8){const _0x496e81=_0x5d419f;u(this,_0x496e81(0x352),null),u(this,_0x496e81(0xdb),[]),(this[_0x496e81(0xf9)]=_0x10e266,this[_0x496e81(0x441)]=_0x4013af,this[_0x496e81(0x289)]=_0x119cd4,this['_commandService']=_0x298196,this['_undoRedoService']=_0x40c8b6,this[_0x496e81(0xf3)]=_0x47f4c0,this[_0x496e81(0x2f2)]=_0x3ac4e8,this[_0x496e81(0x352)]=_0x3ee054,this[_0x496e81(0xdb)]=_0x139ff2);}[_0x5d419f(0x31e)](_0x28ef88){const _0x574478=_0x5d419f,_0x257c84=this[_0x574478(0xf3)][_0x574478(0x1c6)](this[_0x574478(0xf9)]);return _0x28ef88['revision']>_0x257c84+0x1?(this[_0x574478(0x289)]['onMissingChangesets']({'from':_0x257c84,'to':_0x28ef88[_0x574478(0x31a)]-0x1}),!0x0):!0x1;}[_0x5d419f(0x15c)](_0x3710be){const _0x53375d=_0x5d419f;this[_0x53375d(0x260)]['transformUndoRedo'](this[_0x53375d(0xf9)],_0x3710be);}[_0x5d419f(0x34f)](_0x3e20a1){const _0x41a416=_0x5d419f;var _0x32a14e,_0xe04a94;(_0xe04a94=(_0x32a14e=this[_0x41a416(0x289)])[_0x41a416(0x2d6)])==null||_0xe04a94[_0x41a416(0x459)](_0x32a14e,_0x3e20a1);}[_0x5d419f(0x13f)](_0xc6fe2d){const _0x31e54a=_0x5d419f;var _0x376373,_0x3d9871;return(_0x3d9871=(_0x376373=this['_handler'])[_0x31e54a(0x387)])==null?void 0x0:_0x3d9871[_0x31e54a(0x459)](_0x376373,_0xc6fe2d);}[_0x5d419f(0x187)](_0x54fcad){const _0x24fdd7=_0x5d419f;var _0x1ac2fa,_0x58ba10,_0x204971;return(_0x204971=(_0x58ba10=(_0x1ac2fa=this['_handler'])[_0x24fdd7(0x36c)])==null?void 0x0:_0x58ba10[_0x24fdd7(0x459)](_0x1ac2fa,_0x54fcad))!=null?_0x204971:_0x54fcad;}[_0x5d419f(0x143)](_0x7385bf){const _0x210c4a=_0x5d419f;var _0x17f459,_0x1a6bf1;if(this['type']===j[_0x210c4a(0x24c)]){const {unitID:_0x42c83d,mutations:_0x1c99b0,memberID:_0xd1bf68}=_0x7385bf,_0x2f509b=_0x1c99b0[0x0]['params'][_0x210c4a(0x2de)];Array['isArray'](_0x2f509b)&&_0x2f509b[_0x210c4a(0xe5)]>0x0&&((_0x1a6bf1=(_0x17f459=this[_0x210c4a(0x289)])[_0x210c4a(0x40d)])==null||_0x1a6bf1[_0x210c4a(0x459)](_0x17f459,{'unitID':_0x42c83d,'memberID':_0xd1bf68,'textRanges':_0x2f509b}));}}[_0x5d419f(0x31c)](){const _0xccdaf5=_0x5d419f;this['_localCacheService']['updateOfflineData'](this['unitID'],this['type'],this[_0xccdaf5(0x352)],this[_0xccdaf5(0xdb)]);}[_0x5d419f(0x2ab)](){const _0xbade71=_0x5d419f;return this[_0xbade71(0xf3)]['getCurrentRevForDocument'](this[_0xbade71(0xf9)]);}[_0x5d419f(0x2eb)](){const _0x1c9b5f=_0x5d419f;this[_0x1c9b5f(0xf3)][_0x1c9b5f(0x1f8)](this[_0x1c9b5f(0xf9)]);}['_executeRemoteChangeset'](_0x82b02b){const _0x368cf9=_0x5d419f;var _0x18b821;const _0x943ac1=this[_0x368cf9(0x187)](_0x82b02b),_0x58abc7=o['sequenceExecute'](_0x943ac1['mutations'],this[_0x368cf9(0x206)],{'fromCollab':!0x0});if(!_0x58abc7[_0x368cf9(0x12e)])throw _0x58abc7[_0x368cf9(0x1b7)]instanceof Error?_0x58abc7[_0x368cf9(0x1b7)]:new Error((_0x18b821=_0x58abc7[_0x368cf9(0x1b7)])!=null?_0x18b821:_0x368cf9(0xbc));this['_transformIMECache'](_0x943ac1),this['_transformUndoredo'](_0x82b02b),this[_0x368cf9(0x34f)](_0x943ac1),this['_syncEditingCollabCursor'](_0x943ac1),this[_0x368cf9(0x2eb)]();}}let ce=class extends X{constructor(_0x396ba1,_0x16a79f,_0x1f76fb,_0x2119d7,_0x51c66e,_0x1126ce,_0xebbca5,_0x539bba,_0x1bdb3d,_0x395cbe){const _0x1f05cb=_0x5d419f;super(_0x396ba1,_0x16a79f,null,[],_0x1f76fb,_0x539bba,_0xebbca5,_0x2119d7,_0x51c66e),u(this,'status',_0x1f05cb(0x174)),(this[_0x1f05cb(0x207)]=_0x1126ce,this[_0x1f05cb(0x13a)]=_0x1bdb3d,this[_0x1f05cb(0x132)]=_0x395cbe);}[_0x5d419f(0x414)](_0x3534d1){const _0x3736f5=_0x5d419f,_0x4b2adf=this[_0x3736f5(0x207)][_0x3736f5(0x347)]($,this['unitID'],this[_0x3736f5(0x441)],[_0x3534d1],this[_0x3736f5(0x289)]);return _0x4b2adf[_0x3736f5(0xa5)](),_0x4b2adf[_0x3736f5(0x31c)](),_0x4b2adf;}[_0x5d419f(0x41f)](_0x5e5ebf){const _0x29942c=_0x5d419f;if(this['_checkMissing'](_0x5e5ebf))return this[_0x29942c(0x207)]['createInstance'](H,this['unitID'],this[_0x29942c(0x441)],null,[],null,[_0x5e5ebf],this[_0x29942c(0x289)]);try{const _0x5f24b0=this[_0x29942c(0x132)][_0x29942c(0x366)](_0x5e5ebf,[Rs]);if(_[_0x29942c(0x37e)](_0x5f24b0)){const {c1Prime:_0x42f709}=_0x5f24b0;return this[_0x29942c(0x3a4)](_0x42f709),this;}throw _0x5f24b0[_0x29942c(0x1b7)];}catch(_0xda3548){return this[_0x29942c(0x13a)][_0x29942c(0x1b7)](_0xda3548),this[_0x29942c(0x45b)](!0x1);}}[_0x5d419f(0x45b)](_0x141726){const _0xf16a5c=_0x5d419f;return this['_injector'][_0xf16a5c(0x347)](B,this[_0xf16a5c(0xf9)],this[_0xf16a5c(0x441)],null,[],this[_0xf16a5c(0x289)],_0x141726);}[_0x5d419f(0x1d6)](){const _0x425a23=_0x5d419f;throw new Error(_0x425a23(0x38b));}[_0x5d419f(0x318)](){const _0x433486=_0x5d419f;throw new Error(_0x433486(0x224));}[_0x5d419f(0x1fd)](){const _0x399dab=_0x5d419f;return this[_0x399dab(0x207)][_0x399dab(0x347)](F,this[_0x399dab(0xf9)],this[_0x399dab(0x441)],null,[],this[_0x399dab(0x289)]);}[_0x5d419f(0x1cc)](){return this;}[_0x5d419f(0x1ca)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ce=K([m(0x3,o['Inject'](_[_0x5d419f(0x1a7)])),m(0x4,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x3f2)])),m(0x5,o[_0x5d419f(0x28b)](o[_0x5d419f(0x1e7)])),m(0x6,o[_0x5d419f(0x403)]),m(0x7,o['ICommandService']),m(0x8,o[_0x5d419f(0x37a)]),m(0x9,_[_0x5d419f(0xbd)])],ce);let $=class extends X{constructor(_0x12a323,_0x362f77,_0x3bb067,_0x305b90,_0x30b659,_0x3e4d8a,_0x50f840,_0x33d32a,_0x5dfb59,_0x30e4d1,_0x441b0a,_0x59814a,_0x23a492,_0x1aae63){const _0x36c8fe=_0x5d419f;super(_0x12a323,_0x362f77,null,_0x3bb067,_0x305b90,_0x30e4d1,_0x1aae63,_0x3e4d8a,_0x50f840),u(this,'status',_0x36c8fe(0xad)),u(this,_0x36c8fe(0x36b),null),u(this,_0x36c8fe(0x356),null),(this[_0x36c8fe(0x207)]=_0x30b659,this[_0x36c8fe(0xe1)]=_0x33d32a,this[_0x36c8fe(0x13a)]=_0x5dfb59,this[_0x36c8fe(0x1c8)]=_0x441b0a,this[_0x36c8fe(0x132)]=_0x59814a,this[_0x36c8fe(0x473)]=_0x23a492);}[_0x5d419f(0x414)](_0x31cb77){const _0x3fc0b5=_0x5d419f;return this[_0x3fc0b5(0xdb)]['push'](_0x31cb77),this[_0x3fc0b5(0x31c)](),this;}[_0x5d419f(0x41f)](_0x20fde6){const _0x3e512a=_0x5d419f;if(this['_checkMissing'](_0x20fde6))return this[_0x3e512a(0x416)](),this[_0x3e512a(0x207)]['createInstance'](H,this[_0x3e512a(0xf9)],this[_0x3e512a(0x441)],null,this['_pendingMutations'],null,[_0x20fde6],this['_handler']);try{const _0x1742bb=this[_0x3e512a(0x132)][_0x3e512a(0x366)](_0x20fde6,this[_0x3e512a(0xdb)]);if(_[_0x3e512a(0x37e)](_0x1742bb)){const {c1Prime:_0x3f6486,m2Prime:_0x1ab460}=_0x1742bb;this[_0x3e512a(0x3a4)](_0x3f6486);const _0x1b7b92=this[_0x3e512a(0x207)][_0x3e512a(0x347)]($,this[_0x3e512a(0xf9)],this[_0x3e512a(0x441)],_0x1ab460,this[_0x3e512a(0x289)]);return this[_0x3e512a(0x416)](),_0x1b7b92[_0x3e512a(0xa5)](this[_0x3e512a(0x36b)]?Math['max'](0x0,new Date()[_0x3e512a(0x16e)]()-this[_0x3e512a(0x36b)]):this[_0x3e512a(0x241)]()),_0x1b7b92;}throw _0x1742bb[_0x3e512a(0x1b7)];}catch(_0x1c2e5e){return this[_0x3e512a(0x13a)][_0x3e512a(0x1b7)](_0x1c2e5e),this[_0x3e512a(0x45b)](!0x1);}}['onRemoteAck'](){const _0x3745b3=_0x5d419f;throw new Error(_0x3745b3(0x3c2));}[_0x5d419f(0x318)](){const _0x2695e2=_0x5d419f;throw new Error(_0x2695e2(0x35c));}[_0x5d419f(0x1fd)](){const _0x5f3fec=_0x5d419f;return this[_0x5f3fec(0x416)](),this['_injector'][_0x5f3fec(0x347)](F,this[_0x5f3fec(0xf9)],this['type'],null,this['_pendingMutations'],this[_0x5f3fec(0x289)]);}[_0x5d419f(0x1cc)](){return this;}[_0x5d419f(0xa5)](_0x38fcb4){const _0x4968a0=_0x5d419f;_0x38fcb4=_0x38fcb4!=null?_0x38fcb4:this['_getSendChangesetTimeout'](),this[_0x4968a0(0x36b)]=new Date()[_0x4968a0(0x16e)](),this[_0x4968a0(0x356)]=setTimeout(()=>{const _0x2ffe4f=_0x4968a0;this['_clearScheduledTask']();let _0x3032ab=null;switch(this[_0x2ffe4f(0x441)]){case j[_0x2ffe4f(0x11f)]:{_0x3032ab=et(this['_pendingMutations'],this[_0x2ffe4f(0xf9)],this[_0x2ffe4f(0x473)],this[_0x2ffe4f(0xf3)],this['_memberService']);break;}case j[_0x2ffe4f(0x24c)]:{this[_0x2ffe4f(0xdb)][_0x2ffe4f(0x227)](_0x414708=>_0x414708['id']===P[_0x2ffe4f(0xb1)]['id'])?_0x3032ab=Ts(this[_0x2ffe4f(0xdb)],this[_0x2ffe4f(0xf9)],this[_0x2ffe4f(0x473)],this[_0x2ffe4f(0xf3)],this[_0x2ffe4f(0xe1)]):_0x3032ab=et(this['_pendingMutations'],this[_0x2ffe4f(0xf9)],this['_univerInstanceService'],this[_0x2ffe4f(0xf3)],this[_0x2ffe4f(0xe1)]);break;}default:throw new Error(_0x2ffe4f(0x251)+this['type']+_0x2ffe4f(0x321));}const {changeset:_0x7a689a,pendingMutations:_0x242d11}=_0x3032ab;this[_0x2ffe4f(0x289)][_0x2ffe4f(0xff)](_0x7a689a);const _0x30ad64=_0x242d11['length']?this['_injector']['createInstance'](x,this[_0x2ffe4f(0xf9)],this[_0x2ffe4f(0x441)],_0x7a689a,_0x242d11,this[_0x2ffe4f(0x289)]):this[_0x2ffe4f(0x207)][_0x2ffe4f(0x347)](k,this[_0x2ffe4f(0xf9)],this[_0x2ffe4f(0x441)],_0x7a689a,this['_handler']);_0x30ad64[_0x2ffe4f(0x31c)](),this[_0x2ffe4f(0x289)][_0x2ffe4f(0x379)](this,_0x30ad64);},_0x38fcb4);}[_0x5d419f(0x241)](){const _0x1dc1aa=_0x5d419f;var _0x568d2a;return(_0x568d2a=this[_0x1dc1aa(0x1c8)]['getConfig'](ht))!=null?_0x568d2a:Ft;}[_0x5d419f(0x1ca)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5d419f(0x416)](){const _0x348670=_0x5d419f;this[_0x348670(0x356)]!=null&&(clearTimeout(this[_0x348670(0x356)]),this[_0x348670(0x356)]=null);}[_0x5d419f(0x45b)](_0x2707f2){const _0xac3dcb=_0x5d419f;return this[_0xac3dcb(0x416)](),this[_0xac3dcb(0x207)][_0xac3dcb(0x347)](B,this[_0xac3dcb(0xf9)],this[_0xac3dcb(0x441)],null,this[_0xac3dcb(0xdb)],this['_handler'],_0x2707f2);}};$=K([m(0x4,o[_0x5d419f(0x28b)](o['Injector'])),m(0x5,o['Inject'](_[_0x5d419f(0x1a7)])),m(0x6,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x3f2)])),m(0x7,o[_0x5d419f(0x28b)](Y)),m(0x8,o['ILogService']),m(0x9,o[_0x5d419f(0x34e)]),m(0xa,o[_0x5d419f(0x2d3)]),m(0xb,_[_0x5d419f(0xbd)]),m(0xc,o[_0x5d419f(0x181)]),m(0xd,o[_0x5d419f(0x403)])],$);let k=class extends X{constructor(_0x2dc732,_0x123811,_0x5c1b4b,_0x12f827,_0x317759,_0x5ac909,_0x44d87c,_0x44f04a,_0x1b6f9a,_0x1d077c,_0x4eae1c){const _0x16a176=_0x5d419f;super(_0x2dc732,_0x123811,_0x5c1b4b,[],_0x12f827,_0x44f04a,_0x4eae1c,_0x5ac909,_0x44d87c),u(this,_0x16a176(0x402),_0x16a176(0x421)),(this[_0x16a176(0x207)]=_0x317759,this['_logService']=_0x1b6f9a,this[_0x16a176(0x132)]=_0x1d077c);}[_0x5d419f(0x414)](_0x14b42a){const _0x4ce314=_0x5d419f,_0x298fb7=this['_injector']['createInstance'](x,this['unitID'],this['type'],this[_0x4ce314(0x352)],[_0x14b42a],this[_0x4ce314(0x289)]);return _0x298fb7[_0x4ce314(0x31c)](),_0x298fb7;}[_0x5d419f(0x41f)](_0x50e9d4){const _0x14ff6c=_0x5d419f;if(this[_0x14ff6c(0x31e)](_0x50e9d4))return this[_0x14ff6c(0x207)][_0x14ff6c(0x347)](H,this[_0x14ff6c(0xf9)],this[_0x14ff6c(0x441)],this['_awaitingChangeset'],[],null,[_0x50e9d4],this[_0x14ff6c(0x289)]);try{const _0x49e16a=this[_0x14ff6c(0x132)][_0x14ff6c(0x346)]([_0x50e9d4],[this[_0x14ff6c(0x352)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x49e16a)){const {c1Prime:_0x55c616,c2Prime:_0x47049d}=_0x49e16a;this[_0x14ff6c(0x3a4)](_0x55c616[0x0]),_0x47049d[0x0]['baseRev']=this[_0x14ff6c(0x2ab)]();const _0x7627e8=this[_0x14ff6c(0x207)][_0x14ff6c(0x347)](k,this[_0x14ff6c(0xf9)],this[_0x14ff6c(0x441)],_0x47049d[0x0],this[_0x14ff6c(0x289)]);return _0x7627e8[_0x14ff6c(0x31c)](),_0x7627e8;}return this[_0x14ff6c(0x45b)](!0x1);}catch(_0x2c2d0c){return this[_0x14ff6c(0x13a)][_0x14ff6c(0x1b7)](_0x2c2d0c),this[_0x14ff6c(0x45b)](!0x1);}}[_0x5d419f(0x1d6)](_0x5b5c23){const _0x591ced=_0x5d419f,_0x38e4=this[_0x591ced(0xf3)][_0x591ced(0x1c6)](this[_0x591ced(0xf9)]);if(_0x5b5c23['revision']<_0x38e4-0x1)return this;if(this[_0x591ced(0x31e)](_0x5b5c23))return this[_0x591ced(0x207)][_0x591ced(0x347)](H,this[_0x591ced(0xf9)],this[_0x591ced(0x441)],null,[],this[_0x591ced(0x352)],[],this[_0x591ced(0x289)]);this['_incrementRevisionNumber']();const _0x126861=this[_0x591ced(0x207)][_0x591ced(0x347)](ce,this[_0x591ced(0xf9)],this['type'],this[_0x591ced(0x289)]);return _0x126861['_updateLocalCache'](),_0x126861;}[_0x5d419f(0x318)](_0x426b6b){const _0x19177f=_0x5d419f;return this[_0x19177f(0x45b)](!!(_0x426b6b!=null&&_0x426b6b[_0x19177f(0x2da)]));}[_0x5d419f(0x1fd)](){const _0x5d006f=_0x5d419f;return this[_0x5d006f(0x207)]['createInstance'](F,this[_0x5d006f(0xf9)],this['type'],this[_0x5d006f(0x352)],[],this[_0x5d006f(0x289)]);}[_0x5d419f(0x1cc)](){return this;}[_0x5d419f(0x1ca)](){const _0xa39246=_0x5d419f;this[_0xa39246(0x289)][_0xa39246(0xff)](this[_0xa39246(0x352)]);}[_0x5d419f(0x45b)](_0x4f9e49){const _0x9a9d05=_0x5d419f;return this[_0x9a9d05(0x207)][_0x9a9d05(0x347)](B,this[_0x9a9d05(0xf9)],this['type'],this[_0x9a9d05(0x352)],[],this[_0x9a9d05(0x289)],_0x4f9e49);}};k=K([m(0x4,o[_0x5d419f(0x28b)](o[_0x5d419f(0x1e7)])),m(0x5,o[_0x5d419f(0x28b)](_['RevisionService'])),m(0x6,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x3f2)])),m(0x7,o[_0x5d419f(0x34e)]),m(0x8,o[_0x5d419f(0x37a)]),m(0x9,_[_0x5d419f(0xbd)]),m(0xa,o['IUndoRedoService'])],k);let x=class extends X{constructor(_0xdfeed8,_0x28d1ed,_0x546de5,_0x2b101a,_0x592284,_0x3feffc,_0x15b6e9,_0x1e3c3c,_0x1091ba,_0x1a5e87,_0x227c57,_0x58116f){const _0x3d7e6b=_0x5d419f;super(_0xdfeed8,_0x28d1ed,_0x546de5,_0x2b101a,_0x592284,_0x1091ba,_0x58116f,_0x15b6e9,_0x1e3c3c),u(this,_0x3d7e6b(0x402),_0x3d7e6b(0x2d1)),(this[_0x3d7e6b(0x207)]=_0x3feffc,this[_0x3d7e6b(0x13a)]=_0x1a5e87,this[_0x3d7e6b(0x132)]=_0x227c57);}[_0x5d419f(0x414)](_0x29faa7){return this['_pendingMutations']['push'](_0x29faa7),this;}[_0x5d419f(0x41f)](_0x3fa71d){const _0x35de1e=_0x5d419f;if(this[_0x35de1e(0x31e)](_0x3fa71d))return this['_injector'][_0x35de1e(0x347)](H,this[_0x35de1e(0xf9)],this[_0x35de1e(0x441)],this['_awaitingChangeset'],this[_0x35de1e(0xdb)],null,[_0x3fa71d],this[_0x35de1e(0x289)]);try{const _0x473b26=this[_0x35de1e(0x132)][_0x35de1e(0x346)]([_0x3fa71d],[this[_0x35de1e(0x352)]],!0x1);if(_[_0x35de1e(0x284)](_0x473b26)){const {c1Prime:_0x54e2f7,c2Prime:_0x318c5b}=_0x473b26,_0xf679a6=this[_0x35de1e(0x132)][_0x35de1e(0x366)](_0x54e2f7[0x0],this[_0x35de1e(0xdb)]);if(_[_0x35de1e(0x37e)](_0xf679a6)){const {c1Prime:_0x4bfc31,m2Prime:_0x14648}=_0xf679a6;return this['_executeRemoteChangeset'](_0x4bfc31),_0x318c5b[0x0]['baseRev']=this[_0x35de1e(0x2ab)](),this[_0x35de1e(0x207)][_0x35de1e(0x347)](x,this[_0x35de1e(0xf9)],this['type'],_0x318c5b[0x0],_0x14648,this[_0x35de1e(0x289)]);}throw _0xf679a6['error'];}throw _0x473b26[_0x35de1e(0x1b7)];}catch(_0x25a238){return this[_0x35de1e(0x13a)][_0x35de1e(0x1b7)](_0x25a238),this[_0x35de1e(0x45b)](!0x1);}}[_0x5d419f(0x1d6)](_0x1cc18a){const _0x820283=_0x5d419f;if(this[_0x820283(0x31e)](_0x1cc18a))return this[_0x820283(0x207)][_0x820283(0x347)](H,this[_0x820283(0xf9)],this[_0x820283(0x441)],null,this[_0x820283(0xdb)],this['_awaitingChangeset'],[],this[_0x820283(0x289)]);this[_0x820283(0x2eb)]();const _0x446e98=this[_0x820283(0x207)][_0x820283(0x347)]($,this[_0x820283(0xf9)],this[_0x820283(0x441)],this[_0x820283(0xdb)],this[_0x820283(0x289)]);return _0x446e98[_0x820283(0xa5)](),_0x446e98['_updateLocalCache'](),_0x446e98;}['onRemoteRej'](_0x535c63){const _0x25f652=_0x5d419f;return this[_0x25f652(0x45b)](!!(_0x535c63!=null&&_0x535c63[_0x25f652(0x2da)]));}[_0x5d419f(0x1fd)](){const _0x3220fd=_0x5d419f;return this[_0x3220fd(0x207)][_0x3220fd(0x347)](F,this['unitID'],this[_0x3220fd(0x441)],this[_0x3220fd(0x352)],this[_0x3220fd(0xdb)],this['_handler']);}['toggleOnline'](){return this;}[_0x5d419f(0x1ca)](){const _0x4efe03=_0x5d419f;this[_0x4efe03(0x289)]['onSendChangeset'](this[_0x4efe03(0x352)]);}[_0x5d419f(0x45b)](_0x29321a){const _0x52da04=_0x5d419f;return this['_injector']['createInstance'](B,this['unitID'],this[_0x52da04(0x441)],null,this[_0x52da04(0xdb)],this['_handler'],_0x29321a);}};x=K([m(0x5,o[_0x5d419f(0x28b)](o[_0x5d419f(0x1e7)])),m(0x6,o['Inject'](_[_0x5d419f(0x1a7)])),m(0x7,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x3f2)])),m(0x8,o[_0x5d419f(0x34e)]),m(0x9,o[_0x5d419f(0x37a)]),m(0xa,_['ITransformService']),m(0xb,o[_0x5d419f(0x403)])],x);let B=class extends X{constructor(_0x4c12a6,_0x2d202b,_0xae9e7a,_0xe58726,_0x1db480,_0x2ca575=!0x1,_0x557ec3,_0x26b1d5,_0x1b051d,_0x509a8a,_0x237c6c,_0xaa10d9,_0xcd2489){const _0x2c66ed=_0x5d419f;super(_0x4c12a6,_0x2d202b,_0xae9e7a,_0xe58726,_0x1db480,_0x26b1d5,_0x1b051d,_0x237c6c,_0x509a8a),u(this,_0x2c66ed(0x402),_0x2c66ed(0x39e)),(this[_0x2c66ed(0x401)]=_0x2ca575,this['_permissionService']=_0x557ec3,this[_0x2c66ed(0x1a1)]=_0xaa10d9,this[_0x2c66ed(0x200)]=_0xcd2489,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x2c66ed(0x3d5)]());}[_0x5d419f(0x414)](){return this;}[_0x5d419f(0x41f)](){return this;}['onRemoteAck'](){return this;}[_0x5d419f(0x318)](){return this;}[_0x5d419f(0x1fd)](){return this;}[_0x5d419f(0x1cc)](){return this;}['resend'](){const _0x389cdd=_0x5d419f;throw new Error(_0x389cdd(0xcf));}[_0x5d419f(0x264)](){const _0x56a705=_0x5d419f;this[_0x56a705(0x2f2)][_0x56a705(0x47a)](this['unitID'],this['type'],null,[]);}['_showConflictNotification'](){const _0x2a0d60=_0x5d419f;this[_0x2a0d60(0x401)]?this[_0x2a0d60(0x200)][_0x2a0d60(0x1b3)]({'title':this[_0x2a0d60(0x1a1)]['t'](_0x2a0d60(0x3c7)),'content':this['_localeService']['t'](_0x2a0d60(0x3b8)),'type':'error','duration':0x0}):this[_0x2a0d60(0x200)][_0x2a0d60(0x1b3)]({'title':this[_0x2a0d60(0x1a1)]['t'](_0x2a0d60(0x45d)),'content':this[_0x2a0d60(0x1a1)]['t'](_0x2a0d60(0x360)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x47bac2=_0x5d419f;this[_0x47bac2(0x25a)][_0x47bac2(0x384)](new p[(_0x47bac2(0x341))](this[_0x47bac2(0xf9)])['id'],!0x1);}};B=K([m(0x6,o[_0x5d419f(0x28b)](o[_0x5d419f(0x489)])),m(0x7,o[_0x5d419f(0x34e)]),m(0x8,o[_0x5d419f(0x403)]),m(0x9,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x3f2)])),m(0xa,o[_0x5d419f(0x28b)](_[_0x5d419f(0x1a7)])),m(0xb,o['Inject'](o[_0x5d419f(0x159)])),m(0xc,N[_0x5d419f(0x438)])],B);let F=class extends X{constructor(_0x17e9cd,_0x558355,_0xefda70,_0x19c860,_0x11c69d,_0x2d3d69,_0x6c04da,_0x265ebb,_0x4bfcb3,_0x5da699){const _0x3ac6ac=_0x5d419f;super(_0x17e9cd,_0x558355,_0xefda70,_0x19c860,_0x11c69d,_0x4bfcb3,_0x5da699,_0x6c04da,_0x265ebb),u(this,'status','offline'),this[_0x3ac6ac(0x207)]=_0x2d3d69;}[_0x5d419f(0x414)](_0x1559d1){const _0x31418d=_0x5d419f;return this[_0x31418d(0xdb)][_0x31418d(0x151)](_0x1559d1),this[_0x31418d(0x31c)](),this;}[_0x5d419f(0x41f)](_0x4d9ed0){const _0x311905=_0x5d419f;throw new Error(_0x311905(0x369));}[_0x5d419f(0x1d6)](){const _0x28d593=_0x5d419f;throw new Error(_0x28d593(0xa4));}[_0x5d419f(0x318)](){const _0x243193=_0x5d419f;throw new Error(_0x243193(0x357));}[_0x5d419f(0x1fd)](){return this;}[_0x5d419f(0x1cc)](){const _0x458cb9=_0x5d419f,{_injector:_0x5fe1a9,_pendingMutations:_0x408384,_awaitingChangeset:_0x268733,unitID:_0x1e9582,_handler:_0x445457,type:_0x32d651}=this,_0x1bb46d=bt(_0x5fe1a9,_0x1e9582,_0x32d651,_0x268733,_0x408384,_0x445457);return _0x1bb46d instanceof $?_0x1bb46d[_0x458cb9(0xa5)]():(_0x1bb46d instanceof x||_0x1bb46d instanceof k)&&_0x1bb46d[_0x458cb9(0x1ca)](),_0x1bb46d;}[_0x5d419f(0x1ca)](){const _0x5bfe1f=_0x5d419f;throw new Error(_0x5bfe1f(0x32c));}};F=K([m(0x5,o[_0x5d419f(0x28b)](o[_0x5d419f(0x1e7)])),m(0x6,o[_0x5d419f(0x28b)](_[_0x5d419f(0x1a7)])),m(0x7,o['Inject'](exports[_0x5d419f(0x3f2)])),m(0x8,o[_0x5d419f(0x34e)]),m(0x9,o[_0x5d419f(0x403)])],F);let H=class extends X{constructor(_0x479ccc,_0x2f9fd0,_0x531d52,_0x3d12f9,_0x573ec2,_0x282a48,_0x130f21,_0x447668,_0x40c8d1,_0x318094,_0x5248a8,_0x2553d0,_0x2f3124,_0x5e5aa0){const _0x261c41=_0x5d419f;super(_0x479ccc,_0x2f9fd0,_0x531d52,_0x3d12f9,_0x130f21,_0x2553d0,_0x2f3124,_0x40c8d1,_0x318094),u(this,_0x261c41(0x402),_0x261c41(0x267)),(this[_0x261c41(0xe4)]=_0x573ec2,this['_queuedRemoteChangesets']=_0x282a48,this['_injector']=_0x447668,this['_logService']=_0x5248a8,this[_0x261c41(0x132)]=_0x5e5aa0);}[_0x5d419f(0xd1)](_0x1b76c0){const _0x1e6fce=_0x5d419f;try{const _0x2ac138=[..._0x1b76c0,...this['_queuedRemoteChangesets']],_0x581e61=[this[_0x1e6fce(0x352)]||this[_0x1e6fce(0xe4)]]['filter'](_0xc2b8a1=>!!_0xc2b8a1);let _0x3553f0,_0x715999;if(_0x581e61[_0x1e6fce(0xe5)]){const _0xad19b8=this['_transformService']['transformChangesets'](_0x2ac138,_0x581e61,!0x1);if(!_['isTransformChangesetsSuccess'](_0xad19b8))throw _0xad19b8[_0x1e6fce(0x1b7)];_0x3553f0=_0xad19b8[_0x1e6fce(0x2ae)],_0x715999=_0xad19b8['c2Prime'];}else _0x3553f0=_0x2ac138,_0x715999=[];let _0x9e711f=this['_pendingMutations'];_0x3553f0[_0x1e6fce(0x19d)](_0x25013b=>{const _0x5b3672=_0x1e6fce;let _0x33ec8c;if(_0x9e711f[_0x5b3672(0xe5)]){const _0xb25673=this[_0x5b3672(0x132)][_0x5b3672(0x366)](_0x25013b,_0x9e711f);if(!_[_0x5b3672(0x37e)](_0xb25673))throw _0xb25673['error'];_0x33ec8c=_0xb25673[_0x5b3672(0x2ae)],_0x9e711f=_0xb25673[_0x5b3672(0x16d)];}else _0x33ec8c=_0x25013b;this[_0x5b3672(0x3a4)](_0x33ec8c);}),this[_0x1e6fce(0xe4)]&&this[_0x1e6fce(0x2eb)](),this[_0x1e6fce(0x352)]&&_0x715999[_0x1e6fce(0xe5)]&&(_0x715999[0x0]['baseRev']=this[_0x1e6fce(0x2ab)]());let _0x1e4095;if(this['_awaitingChangeset']&&_0x9e711f['length']!==0x0)_0x1e4095=this[_0x1e6fce(0x207)][_0x1e6fce(0x347)](x,this[_0x1e6fce(0xf9)],this[_0x1e6fce(0x441)],_0x715999[0x0],_0x9e711f,this[_0x1e6fce(0x289)]);else{if(this[_0x1e6fce(0x352)]&&_0x9e711f[_0x1e6fce(0xe5)]===0x0)_0x715999[0x0][_0x1e6fce(0x197)]=this[_0x1e6fce(0x2ab)](),_0x1e4095=this[_0x1e6fce(0x207)][_0x1e6fce(0x347)](k,this['unitID'],this[_0x1e6fce(0x441)],_0x715999[0x0],this[_0x1e6fce(0x289)]);else{if(_0x9e711f[_0x1e6fce(0xe5)]!==0x0){const _0x551100=this[_0x1e6fce(0x207)][_0x1e6fce(0x347)]($,this[_0x1e6fce(0xf9)],this['type'],_0x9e711f,this[_0x1e6fce(0x289)]);_0x551100[_0x1e6fce(0xa5)](),_0x1e4095=_0x551100;}else _0x1e4095=this[_0x1e6fce(0x207)]['createInstance'](ce,this[_0x1e6fce(0xf9)],this[_0x1e6fce(0x441)],this[_0x1e6fce(0x289)]);}}return _0x1e4095[_0x1e6fce(0x31c)](),_0x1e4095;}catch(_0x11c2c3){return this[_0x1e6fce(0x13a)][_0x1e6fce(0x1b7)](_0x1e6fce(0x125),_0x1e6fce(0x430),_0x11c2c3),this[_0x1e6fce(0x207)][_0x1e6fce(0x347)](B,this[_0x1e6fce(0xf9)],this[_0x1e6fce(0x441)],this['_awaitingChangeset'],this[_0x1e6fce(0xdb)],this[_0x1e6fce(0x289)],!0x1);}}[_0x5d419f(0x1ca)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5d419f(0x414)](_0x5de41b){const _0x5b9df3=_0x5d419f;return this[_0x5b9df3(0xdb)]['push'](_0x5de41b),this;}['onRemoteChangeset'](_0x493d4b){const _0x13c131=_0x5d419f;return this['_queuedRemoteChangesets'][_0x13c131(0x151)](_0x493d4b),this;}[_0x5d419f(0x1d6)](_0x361946){const _0x158b32=_0x5d419f;if(this[_0x158b32(0x352)])return this['_acknowledgedAwaitingChangeset']=this[_0x158b32(0x352)],this['_awaitingChangeset']=null,this;throw new Error(_0x158b32(0x238));}[_0x5d419f(0x318)](_0x1cf782){const _0x4dc97b=_0x5d419f;return this[_0x4dc97b(0x45b)](!!(_0x1cf782!=null&&_0x1cf782[_0x4dc97b(0x2da)]));}[_0x5d419f(0x1fd)](){const _0x3d5e01=_0x5d419f;return this[_0x3d5e01(0x207)][_0x3d5e01(0x347)](F,this['unitID'],this[_0x3d5e01(0x441)],this[_0x3d5e01(0x352)],this[_0x3d5e01(0xdb)],this[_0x3d5e01(0x289)]);}[_0x5d419f(0x1cc)](){return this;}['_onConflict'](_0x36ecb7){const _0x5709ec=_0x5d419f;return this[_0x5709ec(0x207)][_0x5709ec(0x347)](B,this[_0x5709ec(0xf9)],this[_0x5709ec(0x441)],this['_awaitingChangeset'],this[_0x5709ec(0xdb)],this[_0x5709ec(0x289)],_0x36ecb7);}};H=K([m(0x7,o['Inject'](o[_0x5d419f(0x1e7)])),m(0x8,o[_0x5d419f(0x28b)](_[_0x5d419f(0x1a7)])),m(0x9,o[_0x5d419f(0x28b)](exports['LocalCacheService'])),m(0xa,o[_0x5d419f(0x37a)]),m(0xb,o['ICommandService']),m(0xc,o[_0x5d419f(0x403)]),m(0xd,_[_0x5d419f(0xbd)])],H);function bt(_0x3a91b7,_0x1005f4,_0x490b72,_0x2ed6d0,_0x575f48,_0x2eebc8){const _0x3a03ba=_0x5d419f;return _0x2ed6d0&&_0x575f48['length']?_0x3a91b7[_0x3a03ba(0x347)](x,_0x1005f4,_0x490b72,_0x2ed6d0,_0x575f48,_0x2eebc8):_0x2ed6d0?_0x3a91b7[_0x3a03ba(0x347)](k,_0x1005f4,_0x490b72,_0x2ed6d0,_0x2eebc8):_0x575f48['length']?_0x3a91b7[_0x3a03ba(0x347)]($,_0x1005f4,_0x490b72,_0x575f48,_0x2eebc8):_0x3a91b7[_0x3a03ba(0x347)](ce,_0x1005f4,_0x490b72,_0x2eebc8);}var Ps=Object['defineProperty'],Us=Object[_0x5d419f(0x113)],Ce=(_0x359917,_0x3dbbab,_0x183d38,_0x2f6085)=>{const _0x564d21=_0x5d419f;for(var _0x19f875=_0x2f6085>0x1?void 0x0:_0x2f6085?Us(_0x3dbbab,_0x183d38):_0x3dbbab,_0x268d49=_0x359917[_0x564d21(0xe5)]-0x1,_0x1b4da2;_0x268d49>=0x0;_0x268d49--)(_0x1b4da2=_0x359917[_0x268d49])&&(_0x19f875=(_0x2f6085?_0x1b4da2(_0x3dbbab,_0x183d38,_0x19f875):_0x1b4da2(_0x19f875))||_0x19f875);return _0x2f6085&&_0x19f875&&Ps(_0x3dbbab,_0x183d38,_0x19f875),_0x19f875;},I=(_0x2f57df,_0xb66ea6)=>(_0x3e7a00,_0x1a0239)=>_0xb66ea6(_0x3e7a00,_0x1a0239,_0x2f57df);exports[_0x5d419f(0x127)]=class extends o['RxDisposable']{constructor(_0x517f07,_0x2eb406,_0x159c82){const _0x4e1616=_0x5d419f;super(),u(this,_0x4e1616(0x355),new Map()),u(this,_0x4e1616(0x481),new v['Subject']()),(this['_injector']=_0x517f07,this[_0x4e1616(0x268)]=_0x2eb406,this[_0x4e1616(0x473)]=_0x159c82,this[_0x4e1616(0x470)]());}[_0x5d419f(0xdc)](){const _0x5f5be0=_0x5d419f;super[_0x5f5be0(0xdc)](),this[_0x5f5be0(0x355)]['forEach'](_0x1b27e3=>_0x1b27e3[_0x5f5be0(0xdc)]()),this[_0x5f5be0(0x355)][_0x5f5be0(0xa3)]();}['getCollabEntity'](_0x40516c){const _0xc32000=_0x5d419f;var _0x43066f;return(_0x43066f=this[_0xc32000(0x355)][_0xc32000(0x3ad)](_0x40516c))!=null?_0x43066f:null;}['getCollabEntity$'](_0x33ed69){const _0x11f433=_0x5d419f,_0x447ebe=this[_0x11f433(0x14c)](_0x33ed69);return _0x447ebe?v['of'](_0x447ebe):this[_0x11f433(0x481)][_0x11f433(0x106)](C[_0x11f433(0x20b)](_0x12fdd2=>_0x12fdd2[_0x11f433(0xf9)]===_0x33ed69));}[_0x5d419f(0x470)](){const _0x3e0bd7=_0x5d419f;this[_0x3e0bd7(0x473)]['getTypeOfUnitAdded$'](o[_0x3e0bd7(0x464)][_0x3e0bd7(0x11f)])[_0x3e0bd7(0x106)](v[_0x3e0bd7(0x48a)](this['dispose$']),C[_0x3e0bd7(0x445)](0x10))[_0x3e0bd7(0x17f)](async _0x31d665=>{const _0x58d6b5=_0x3e0bd7,_0x1b1633=_0x31d665[_0x58d6b5(0x100)](),_0x46cdcc=await this['_startCollaboration'](_0x1b1633,j[_0x58d6b5(0x11f)]);this[_0x58d6b5(0x355)][_0x58d6b5(0x22c)](_0x1b1633,_0x46cdcc);}),this['_univerInstanceService'][_0x3e0bd7(0x23d)](o[_0x3e0bd7(0x464)][_0x3e0bd7(0x24c)])['pipe'](v['takeUntil'](this[_0x3e0bd7(0xed)]),C[_0x3e0bd7(0x445)](0x10))[_0x3e0bd7(0x106)](C['filter'](_0x3d0c48=>!_0x3d0c48['getUnitId']()[_0x3e0bd7(0x105)]('__')))['subscribe'](async _0x5d5b57=>{const _0x13edc5=_0x3e0bd7,_0x211c56=_0x5d5b57[_0x13edc5(0x100)](),_0x5666a5=await this[_0x13edc5(0x3c9)](_0x211c56,j['UNIVER_DOC']);this[_0x13edc5(0x355)][_0x13edc5(0x22c)](_0x211c56,_0x5666a5);}),v['merge'](this[_0x3e0bd7(0x473)][_0x3e0bd7(0x225)](o[_0x3e0bd7(0x464)][_0x3e0bd7(0x11f)]),this[_0x3e0bd7(0x473)][_0x3e0bd7(0x225)](o[_0x3e0bd7(0x464)][_0x3e0bd7(0x24c)]))[_0x3e0bd7(0x106)](v[_0x3e0bd7(0x48a)](this[_0x3e0bd7(0xed)]))[_0x3e0bd7(0x17f)](_0x4d7c21=>{const _0x229f43=_0x3e0bd7,_0x41cfd4=_0x4d7c21['getUnitId'](),_0x4abee5=this[_0x229f43(0x355)][_0x229f43(0x3ad)](_0x41cfd4);_0x4abee5&&(_0x4abee5[_0x229f43(0xdc)](),this[_0x229f43(0x355)][_0x229f43(0x455)](_0x41cfd4));});}async[_0x5d419f(0x3c9)](_0xf658cd,_0x4797bb){const _0x2f155f=_0x5d419f,_0x1f106f=await this[_0x2f155f(0x268)][_0x2f155f(0x1ff)](_0xf658cd),_0x561098=this[_0x2f155f(0x207)][_0x2f155f(0x347)](this[_0x2f155f(0x2e9)](_0x4797bb),_0xf658cd,_0x4797bb,_0x1f106f);return await _0x561098[_0x2f155f(0x1ac)](),this['_entityInit$'][_0x2f155f(0x2e6)](_0x561098),_0x561098;}[_0x5d419f(0x2e9)](_0xd0e85a){const _0x2d1d47=_0x5d419f;switch(_0xd0e85a){case j[_0x2d1d47(0x24c)]:return ye;case j['UNIVER_SHEET']:return exports['SheetCollaborationEntity'];default:throw new Error(_0x2d1d47(0x293)+_0xd0e85a);}}},exports[_0x5d419f(0x127)]=Ce([o[_0x5d419f(0xb0)](o[_0x5d419f(0x426)][_0x5d419f(0x300)],exports['CollaborationController']),I(0x0,o['Inject'](o[_0x5d419f(0x1e7)])),I(0x1,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x334)])),I(0x2,o[_0x5d419f(0x181)])],exports[_0x5d419f(0x127)]);let fe=class extends o['RxDisposable']{constructor(_0x20f0a2,_0x307b1b,_0x147115,_0x3145c5,_0x4e0327,_0x19707b,_0x477e08,_0x13496d,_0x36900b,_0x52c073,_0x3a77f3,_0x4ad047,_0x43acba){const _0x11306d=_0x5d419f;super(),u(this,_0x11306d(0x32a),new v[(_0x11306d(0x474))](null)),u(this,'state$',this[_0x11306d(0x32a)]['asObservable']()),u(this,_0x11306d(0x23f)),u(this,_0x11306d(0x3c1),!0x1),u(this,_0x11306d(0x2c5),this['state$']['pipe'](C[_0x11306d(0xd9)](_0x20d173=>_0x20d173?_0x20d173['status']:D[_0x11306d(0xe9)]),C['shareReplay'](0x1))),u(this,_0x11306d(0x471),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x11306d(0xf9)]=_0x20f0a2,this[_0x11306d(0x162)]=_0x307b1b,this['_session']=_0x147115,this[_0x11306d(0x207)]=_0x3145c5,this[_0x11306d(0x2f2)]=_0x4e0327,this[_0x11306d(0x472)]=_0x19707b,this['_localeService']=_0x477e08,this[_0x11306d(0xf3)]=_0x13496d,this[_0x11306d(0x13a)]=_0x36900b,this[_0x11306d(0x206)]=_0x52c073,this[_0x11306d(0x179)]=_0x3a77f3,this[_0x11306d(0x25a)]=_0x4ad047,this['_singleActiveUnitService']=_0x43acba);}get['state'](){return this['_state'];}async[_0x5d419f(0x1ac)](){const _0x3a19a2=_0x5d419f;if(this[_0x3a19a2(0x2fa)])throw new Error(_0x3a19a2(0x10d));await this[_0x3a19a2(0x470)]();}[_0x5d419f(0x442)](){const _0x22e547=_0x5d419f;return this[_0x22e547(0x3c1)]=!0x0,o['toDisposable'](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x5d419f(0xef)](_0x276b1d){const _0x33a407=_0x5d419f;this[_0x33a407(0x23f)]=_0x276b1d,this[_0x33a407(0x32a)]['next'](_0x276b1d);}async[_0x5d419f(0x470)](){const _0x213e10=_0x5d419f;var _0x406f4c;return this[_0x213e10(0xef)](await this[_0x213e10(0x1d7)]()),this[_0x213e10(0x487)]&&((_0x406f4c=this[_0x213e10(0x487)])==null||_0x406f4c[_0x213e10(0x1bb)](this[_0x213e10(0xf9)]),this['disposeWithMe'](o[_0x213e10(0x32d)](this[_0x213e10(0x487)][_0x213e10(0x45a)](this[_0x213e10(0xf9)])[_0x213e10(0x17f)](_0x3c3e73=>{const _0x73a35c=_0x213e10;this[_0x73a35c(0x13a)][_0x73a35c(0x27d)](_0x73a35c(0x42e),_0x73a35c(0x337),_0x3c3e73),_0x3c3e73===Ct[_0x73a35c(0x2d0)]?(this[_0x73a35c(0x179)][_0x73a35c(0x1b3)]({'content':this[_0x73a35c(0x1a1)]['t']('collaboration.single-unit.warning'),'type':Q[_0x73a35c(0x2ca)][_0x73a35c(0x2b5)]}),this[_0x73a35c(0x25a)][_0x73a35c(0x384)](new p[(_0x73a35c(0x341))](this[_0x73a35c(0xf9)])['id'],!0x1)):this['_permissionService'][_0x73a35c(0x384)](new p[(_0x73a35c(0x341))](this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](o['toDisposable'](this[_0x213e10(0x2ee)]['sessionStatus$'][_0x213e10(0x17f)](_0x1c42c2=>{const _0x3b92ad=_0x213e10;_0x1c42c2===G[_0x3b92ad(0xc7)]?this[_0x3b92ad(0x219)]():_0x1c42c2===G[_0x3b92ad(0xe9)]&&this[_0x3b92ad(0x2b4)]();}))),this[_0x213e10(0x1e0)](o[_0x213e10(0x32d)](this[_0x213e10(0x2ee)][_0x213e10(0x242)]['subscribe'](_0x5e1bbb=>{const _0x44287f=_0x213e10;try{switch(_0x5e1bbb[_0x44287f(0x17b)]){case _[_0x44287f(0xaa)]['NEW_CHANGESETS']:{this[_0x44287f(0xf2)](_[_0x44287f(0x1c2)](_0x5e1bbb[_0x44287f(0x435)]));break;}case _['CollaborationEvent'][_0x44287f(0x3af)]:{this['_onRemoteACK'](_0x5e1bbb[_0x44287f(0x435)]);break;}case _[_0x44287f(0xaa)][_0x44287f(0x3f9)]:{this[_0x44287f(0x2fd)]();break;}case _[_0x44287f(0xaa)][_0x44287f(0x1b2)]:{this[_0x44287f(0x342)](_0x5e1bbb[_0x44287f(0x435)]['changesets'][_0x44287f(0xd9)](_0x5a2a11=>_[_0x44287f(0x1c2)](_0x5a2a11)));break;}case _[_0x44287f(0xaa)]['PERMISSION_REJ']:this[_0x44287f(0x2fd)]({'isPermissionRej':!0x0});}}catch(_0x1af4db){throw console[_0x44287f(0x1b7)](_0x44287f(0x1ef),_0x1af4db),_0x1af4db;}}))),this[_0x213e10(0x23f)];}[_0x5d419f(0x431)](){const _0x4c8f1c=_0x5d419f;this[_0x4c8f1c(0x471)]=!0x1;}[_0x5d419f(0xcd)](){const _0x5457b4=_0x5d419f;if(this['_transitionLocked'])throw new Error(_0x5457b4(0x3b2));this['_transitionLocked']=!0x0;}[_0x5d419f(0x1ad)](_0xb9f322){const _0x2c7324=_0x5d419f;this['_lockTransition'](),this[_0x2c7324(0xef)](this['_state'][_0x2c7324(0x414)](_0xb9f322)),this[_0x2c7324(0x431)]();}[_0x5d419f(0xf2)](_0x413c58){const _0x43fade=_0x5d419f;if(!(_0x413c58[_0x43fade(0x31a)]<=this[_0x43fade(0xf3)][_0x43fade(0x1c6)](this[_0x43fade(0xf9)]))){if(this[_0x43fade(0x3c1)]){this['_remoteChangesetQueue']['push'](_0x413c58);return;}this[_0x43fade(0xa0)](_0x413c58);}}['_exhaustRemoteChangesetQueue'](){const _0x7447e1=_0x5d419f;this[_0x7447e1(0x44f)]['forEach'](_0x1dd3bb=>this[_0x7447e1(0xa0)](_0x1dd3bb)),this[_0x7447e1(0x44f)]=[];}[_0x5d419f(0xa0)](_0x2ca99e){const _0x2b958a=_0x5d419f,_0x4eadb1=this[_0x2b958a(0x472)][_0x2b958a(0x231)][_0x2b958a(0x139)](this[_0x2b958a(0x472)][_0x2b958a(0x231)][_0x2b958a(0x389)]()[_0x2b958a(0x291)])(_0x2ca99e['mutations'],null)||_0x2ca99e['mutations'],_0x1999bc={..._0x2ca99e,'mutations':_0x4eadb1};this['_lockTransition'](),this['_updateState'](this[_0x2b958a(0x23f)]['onRemoteChangeset'](_0x1999bc)),this[_0x2b958a(0x431)]();}[_0x5d419f(0x3a1)](_0x493a3a){const _0x34c81a=_0x5d419f;this[_0x34c81a(0xcd)](),this[_0x34c81a(0xef)](this[_0x34c81a(0x23f)][_0x34c81a(0x1d6)](_0x493a3a)),this[_0x34c81a(0x431)]();}['_onRemoteRejected'](_0x3d3ae2){const _0x2ea3ed=_0x5d419f;this['_lockTransition'](),this[_0x2ea3ed(0xef)](this[_0x2ea3ed(0x23f)]['onRemoteRej'](_0x3d3ae2)),this[_0x2ea3ed(0x431)]();}[_0x5d419f(0x342)](_0x2c744f){const _0x1f73af=_0x5d419f;if(!(this[_0x1f73af(0x23f)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x2f136a=_0x2c744f[_0x1f73af(0xd9)](_0x2f2d72=>{const _0x43f7f3=_0x1f73af,_0x32292a=this[_0x43f7f3(0x472)][_0x43f7f3(0x231)][_0x43f7f3(0x139)](this['_compressMutationService']['interceptor'][_0x43f7f3(0x389)]()['COMPRESS_MUTATION_APPLY'])(_0x2f2d72[_0x43f7f3(0x282)],null)||_0x2f2d72[_0x43f7f3(0x282)];return{..._0x2f2d72,'mutations':_0x32292a};});this[_0x1f73af(0xcd)](),this[_0x1f73af(0xef)](this['_state'][_0x1f73af(0xd1)](_0x2f136a)),this[_0x1f73af(0x431)]();}[_0x5d419f(0x2b4)](){const _0x428bcb=_0x5d419f;this[_0x428bcb(0xcd)](),this['_updateState'](this[_0x428bcb(0x23f)][_0x428bcb(0x1fd)]()),this[_0x428bcb(0x431)]();}[_0x5d419f(0x219)](){const _0x3abbe7=_0x5d419f;this['_lockTransition'](),this[_0x3abbe7(0xef)](this['_state'][_0x3abbe7(0x1cc)]()),this[_0x3abbe7(0x431)]();}async['_createInitialState'](){return new Promise(_0x5b8c90=>{const _0x59cf45=_0x3130;this['_session'][_0x59cf45(0x2cc)][_0x59cf45(0x106)](C[_0x59cf45(0x189)](0x1))[_0x59cf45(0x17f)](async _0x1dc1ad=>{const _0xcf7773=_0x59cf45;_0x5b8c90(await this[_0xcf7773(0x3ef)](_0x1dc1ad===G[_0xcf7773(0xc7)]));});});}['_createHandler'](){const _0x2b5276=this['unitID'];return{'onStateChange':(_0x5915ad,_0x5555eb)=>{const _0xfa72ac=_0x3130;if(_0x5915ad!==this['_state'])throw new Error(_0xfa72ac(0x1df)+_0x5915ad['status']+_0xfa72ac(0xd3)+_0x5555eb[_0xfa72ac(0x402)]+_0xfa72ac(0x209)+this[_0xfa72ac(0x23f)][_0xfa72ac(0x402)]);this[_0xfa72ac(0xef)](_0x5555eb);},'onSendChangeset':_0xc6eb5=>{const _0x53a510=_0x3130,_0x161c70={'eventID':_[_0x53a510(0xaa)]['SUBMIT_CHANGESET'],'data':{'unitID':_0xc6eb5[_0x53a510(0xf9)],'unitType':this[_0x53a510(0x162)],'changeset':_0xc6eb5,'memberID':this['_session']['getMemberID']()}};this[_0x53a510(0x2ee)][_0x53a510(0x142)](_0x161c70,this[_0x53a510(0xf9)]);},'onMissingChangesets':({from:_0x3764dd,to:_0x5fc27d})=>{const _0x1ed762=_0x3130;this['_logService']['debug'](_0x1ed762(0x42e),_0x1ed762(0x190)+_0x3764dd+_0x1ed762(0x310)+_0x5fc27d);const _0x17c7eb={'eventID':_[_0x1ed762(0xaa)][_0x1ed762(0x273)],'data':{'unitID':_0x2b5276,'unitType':this[_0x1ed762(0x162)],'from':_0x3764dd,'to':_0x5fc27d}};this[_0x1ed762(0x2ee)][_0x1ed762(0x142)](_0x17c7eb,this[_0x1ed762(0xf9)]);}};}async['_createInitialStateImpl'](_0x559a84){const _0x151536=_0x5d419f;var _0x306cd0,_0x146e47;const _0x48633b=await this[_0x151536(0x2f2)]['loadOfflineData'](this['unitID']),_0x53e14=(_0x306cd0=_0x48633b==null?void 0x0:_0x48633b[_0x151536(0x282)])!=null?_0x306cd0:[],_0x58d1b1=(_0x146e47=_0x48633b==null?void 0x0:_0x48633b['awaitingChangeset'])!=null?_0x146e47:null,_0x11c3b7=this['unitID'];try{this[_0x151536(0x326)](_0x58d1b1,_0x53e14);}catch(_0x3bb6fa){this[_0x151536(0x13a)][_0x151536(0x1b7)](_0x3bb6fa);}const _0x5e8d33=this[_0x151536(0x1fa)]();if(_0x559a84){const _0x497415=bt(this[_0x151536(0x207)],_0x11c3b7,this['_type'],_0x58d1b1,_0x53e14,_0x5e8d33);return _0x497415 instanceof $?_0x497415[_0x151536(0xa5)]():(_0x497415 instanceof x||_0x497415 instanceof k)&&_0x497415[_0x151536(0x1ca)](),_0x497415;}return this[_0x151536(0x207)]['createInstance'](F,_0x11c3b7,this[_0x151536(0x162)],_0x58d1b1,_0x53e14,_0x5e8d33);}[_0x5d419f(0x326)](_0x2e2692,_0x47d593){const _0x49705a=_0x5d419f;var _0x53bd0f,_0x45e877;const _0x193f3b=this[_0x49705a(0x472)][_0x49705a(0x231)]['fetchThroughInterceptors'](this[_0x49705a(0x472)]['interceptor'][_0x49705a(0x389)]()[_0x49705a(0x291)]);(_0x53bd0f=_0x193f3b((_0x2e2692==null?void 0x0:_0x2e2692[_0x49705a(0x282)])||[],null))==null||_0x53bd0f['forEach'](_0x41e8f1=>this[_0x49705a(0x206)][_0x49705a(0x454)](_0x41e8f1['id'],_0x41e8f1[_0x49705a(0x46a)])),(_0x45e877=_0x193f3b(_0x47d593||[],null))==null||_0x45e877['forEach'](_0x200042=>this['_commandService'][_0x49705a(0x454)](_0x200042['id'],_0x200042[_0x49705a(0x46a)]));}};fe=Ce([I(0x3,o[_0x5d419f(0x28b)](o['Injector'])),I(0x4,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x3f2)])),I(0x5,o[_0x5d419f(0x28b)](_['CompressMutationService'])),I(0x6,o['Inject'](o['LocaleService'])),I(0x7,o[_0x5d419f(0x28b)](_['RevisionService'])),I(0x8,o[_0x5d419f(0x37a)]),I(0x9,o[_0x5d419f(0x34e)]),I(0xa,N[_0x5d419f(0x3fd)]),I(0xb,o[_0x5d419f(0x489)]),I(0xc,o[_0x5d419f(0x46c)](pe))],fe);let ye=class extends fe{constructor(_0x32873d,_0x382fb1,_0x44d372,_0x399c7a,_0x5e928f,_0x485fdd,_0x329858,_0xd81dd1,_0xdd035d,_0xbd1068,_0x5f35ed,_0x4c35cc,_0x512015,_0x34c80f,_0x53b309,_0x3b57ee,_0x53348b){const _0x2c9925=_0x5d419f;super(_0x32873d,_0x382fb1,_0x44d372,_0x399c7a,_0x5e928f,_0x485fdd,_0x329858,_0xd81dd1,_0x512015,_0x34c80f,_0x53b309,_0x3b57ee,_0x53348b),this[_0x2c9925(0xf9)]=_0x32873d,this['type']=_0x382fb1,this[_0x2c9925(0x3c6)]=_0x44d372,this[_0x2c9925(0x2e2)]=_0xdd035d,this[_0x2c9925(0x226)]=_0xbd1068,this[_0x2c9925(0x480)]=_0x5f35ed,this[_0x2c9925(0x329)]=_0x4c35cc;}[_0x5d419f(0x1fa)](){const _0x5f40da=_0x5d419f,_0x21e5e2=super['_createHandler']();return _0x21e5e2['onTransformIME']=_0x1f899b=>this['_docTransformIMECacheService'][_0x5f40da(0x3e2)](_0x1f899b),_0x21e5e2[_0x5f40da(0x2d6)]=_0x4d96be=>this[_0x5f40da(0x480)][_0x5f40da(0x1e6)](_0x4d96be),_0x21e5e2['onSyncEditingCollabCursor']=_0x3997fd=>this[_0x5f40da(0x329)]['syncEditingCollabCursor'](_0x3997fd),_0x21e5e2[_0x5f40da(0x36c)]=_0x527f30=>this['_docTransformIMECacheService'][_0x5f40da(0x295)](_0x527f30),_0x21e5e2;}async[_0x5d419f(0x470)](){const _0x5c30b2=_0x5d419f,_0x183681=await super['_init']();return this[_0x5c30b2(0x1e0)](this[_0x5c30b2(0x206)][_0x5c30b2(0x250)]((_0x17ecb7,_0x2761cf)=>{const _0x54b0bc=_0x5c30b2;if(_0x17ecb7['type']!==o[_0x54b0bc(0x399)][_0x54b0bc(0x1ae)]||_0x2761cf!=null&&_0x2761cf['fromCollab']||_0x2761cf!=null&&_0x2761cf[_0x54b0bc(0x16c)])return;const _0x42e592=_0x17ecb7[_0x54b0bc(0x46a)];if((_0x42e592==null?void 0x0:_0x42e592['unitId'])!==this[_0x54b0bc(0xf9)])return;let _0xb3e125=_0x17ecb7;if(_0xb3e125['id']===P[_0x54b0bc(0xb1)]['id']){const _0x5a0709=_0xb3e125['params'];_0xb3e125={'id':P[_0x54b0bc(0xb1)]['id'],'type':o['CommandType']['MUTATION'],'params':{'unitId':_0x5a0709[_0x54b0bc(0x2ad)],'actions':_0x5a0709[_0x54b0bc(0x259)],'textRanges':null}};}const _0x48eb6c=this['_compressMutationService'][_0x54b0bc(0x231)]['fetchThroughInterceptors'](this[_0x54b0bc(0x472)][_0x54b0bc(0x231)][_0x54b0bc(0x389)]()[_0x54b0bc(0x117)])([_0xb3e125],null)||[_0xb3e125];this['_onLocalMutation'](_0x48eb6c[0x0]);})),_0x183681;}};ye=Ce([I(0x3,o['Inject'](o[_0x5d419f(0x1e7)])),I(0x4,o[_0x5d419f(0x28b)](exports['LocalCacheService'])),I(0x5,o[_0x5d419f(0x28b)](_[_0x5d419f(0x3f4)])),I(0x6,o[_0x5d419f(0x28b)](o[_0x5d419f(0x159)])),I(0x7,o[_0x5d419f(0x28b)](_[_0x5d419f(0x1a7)])),I(0x8,o[_0x5d419f(0x28b)](P[_0x5d419f(0x18e)])),I(0x9,o[_0x5d419f(0x28b)](ve)),I(0xa,o[_0x5d419f(0x28b)](me)),I(0xb,o[_0x5d419f(0x28b)](Fe)),I(0xc,o[_0x5d419f(0x37a)]),I(0xd,o[_0x5d419f(0x34e)]),I(0xe,N[_0x5d419f(0x3fd)]),I(0xf,o[_0x5d419f(0x489)]),I(0x10,o['Optional'](pe))],ye),exports[_0x5d419f(0x460)]=class extends fe{constructor(_0x185199,_0xe67738,_0x4fe2ca,_0x509265,_0x51f6a1,_0x33388a,_0x2c0a8c,_0x417f5c,_0xcc2bfe,_0x597ab1,_0x534526,_0x2a3b47,_0x344f50,_0x17f2fc){const _0x2b6f56=_0x5d419f;super(_0x185199,_0xe67738,_0x4fe2ca,_0x509265,_0x51f6a1,_0x33388a,_0x2c0a8c,_0x417f5c,_0x597ab1,_0x534526,_0x2a3b47,_0x344f50,_0x17f2fc),this['unitID']=_0x185199,this[_0x2b6f56(0x441)]=_0xe67738,this[_0x2b6f56(0x3c6)]=_0x4fe2ca,this[_0x2b6f56(0x2dc)]=_0xcc2bfe;}['_createHandler'](){const _0x21e147=_0x5d419f,_0xa36b14=super[_0x21e147(0x1fa)]();return _0xa36b14['onTransformSelections']=_0xd25b8b=>this[_0x21e147(0x2dc)][_0x21e147(0x1e6)](_0xd25b8b),_0xa36b14;}async[_0x5d419f(0x470)](){const _0x517a30=_0x5d419f,_0x1f2aaa=await super[_0x517a30(0x470)]();return this[_0x517a30(0x1e0)](this[_0x517a30(0x206)][_0x517a30(0x250)]((_0x2fb263,_0x3b210f)=>{const _0x5efb8c=_0x517a30;if(_0x2fb263[_0x5efb8c(0x441)]!==o[_0x5efb8c(0x399)][_0x5efb8c(0x1ae)]||_0x3b210f!=null&&_0x3b210f[_0x5efb8c(0x2af)]||_0x3b210f!=null&&_0x3b210f[_0x5efb8c(0x16c)])return;const _0x423c95=_0x2fb263[_0x5efb8c(0x46a)];if((_0x423c95==null?void 0x0:_0x423c95[_0x5efb8c(0x2ad)])!==this[_0x5efb8c(0xf9)])return;const _0xd8cd68=_0x2fb263,_0x484ab3=this[_0x5efb8c(0x472)][_0x5efb8c(0x231)][_0x5efb8c(0x139)](this['_compressMutationService']['interceptor'][_0x5efb8c(0x389)]()['COMPRESS_MUTATION_SEND'])([_0xd8cd68],null)||[_0xd8cd68];this[_0x5efb8c(0x1ad)](_0x484ab3[0x0]);})),_0x1f2aaa;}},exports['SheetCollaborationEntity']=Ce([I(0x3,o[_0x5d419f(0x28b)](o['Injector'])),I(0x4,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x3f2)])),I(0x5,o['Inject'](_[_0x5d419f(0x3f4)])),I(0x6,o['Inject'](o['LocaleService'])),I(0x7,o[_0x5d419f(0x28b)](_[_0x5d419f(0x1a7)])),I(0x8,o[_0x5d419f(0x28b)](ge)),I(0x9,o['ILogService']),I(0xa,o[_0x5d419f(0x34e)]),I(0xb,N[_0x5d419f(0x3fd)]),I(0xc,o['IPermissionService']),I(0xd,o[_0x5d419f(0x46c)](pe))],exports[_0x5d419f(0x460)]);const tt=[_0x5d419f(0x1ee),_0x5d419f(0x204),_0x5d419f(0x35a),_0x5d419f(0x286),_0x5d419f(0x2e3),_0x5d419f(0x176)];class Ve extends o['Disposable']{constructor(){const _0x3ad9e5=_0x5d419f;super(...arguments),u(this,_0x3ad9e5(0x2cd),new Map()),u(this,_0x3ad9e5(0x263),0x0);}[_0x5d419f(0x370)](_0x4f26b0){const _0x4f40a5=_0x5d419f;if(this['_assignedColors']['has'](_0x4f26b0))return this[_0x4f40a5(0x2cd)][_0x4f40a5(0x3ad)](_0x4f26b0);const _0xeef5ae=tt[this[_0x4f40a5(0x263)]];return this[_0x4f40a5(0x263)]=(this[_0x4f40a5(0x263)]+0x1)%tt[_0x4f40a5(0xe5)],this[_0x4f40a5(0x2cd)]['set'](_0x4f26b0,_0xeef5ae),_0xeef5ae;}}var Ms=Object[_0x5d419f(0x19b)],ws=Object['getOwnPropertyDescriptor'],ys=(_0x24dcb8,_0x4d2e07,_0x7c3cba,_0x3677d8)=>{for(var _0x3b04f3=_0x3677d8>0x1?void 0x0:_0x3677d8?ws(_0x4d2e07,_0x7c3cba):_0x4d2e07,_0x3caf29=_0x24dcb8['length']-0x1,_0x5b23ab;_0x3caf29>=0x0;_0x3caf29--)(_0x5b23ab=_0x24dcb8[_0x3caf29])&&(_0x3b04f3=(_0x3677d8?_0x5b23ab(_0x4d2e07,_0x7c3cba,_0x3b04f3):_0x5b23ab(_0x3b04f3))||_0x3b04f3);return _0x3677d8&&_0x3b04f3&&Ms(_0x4d2e07,_0x7c3cba,_0x3b04f3),_0x3b04f3;},q=(_0x41b07c,_0xbeafe7)=>(_0x3fbb7f,_0x1af24d)=>_0xbeafe7(_0x3fbb7f,_0x1af24d,_0x41b07c);const Ls=0x12c,Ns=0x64,As=()=>{let _0x1928d7=[],_0xa7dd77=!0x1;return _0x3a3d39=>{const _0x27147a=_0x3130;_0x1928d7[_0x27147a(0x151)](_0x3a3d39),_0xa7dd77||(_0xa7dd77=!0x0,setTimeout(()=>{_0x1928d7['forEach'](_0x1afc02=>_0x1afc02()),_0x1928d7=[],_0xa7dd77=!0x1;}));};};let Le=class extends o[_0x5d419f(0x3a0)]{constructor(_0x2b7859,_0x1f98cf,_0x331aa3,_0x46edec,_0x432ef2,_0x51d0a6,_0x16f051,_0x3e97e0){const _0x3fc58a=_0x5d419f;super(),u(this,'_online',!0x1),u(this,'_init',!0x1),u(this,_0x3fc58a(0x3ea),new v[(_0x3fc58a(0x474))](new Map())),u(this,'cursorInfo$',this[_0x3fc58a(0x3ea)]['asObservable']()),u(this,'_roomMembers$',new v[(_0x3fc58a(0x474))]([])),u(this,'roomMembers$',this[_0x3fc58a(0x42d)][_0x3fc58a(0x106)](v[_0x3fc58a(0x103)](Ls))),u(this,_0x3fc58a(0x3f1),$e((_0x515ac7,_0x1ac455)=>{const _0x55adf0=_0x3fc58a,_0x12934d={'eventID':_[_0x55adf0(0xaa)][_0x55adf0(0x22f)],'data':{'unitID':this[_0x55adf0(0xf9)],'memberID':this['_session'][_0x55adf0(0xfe)](),'selection':Ye['serializeRangeWithSheet'](_0x515ac7,_0x1ac455['range'])}};this[_0x55adf0(0x2ee)][_0x55adf0(0x142)](_0x12934d,this[_0x55adf0(0xf9)]);},Ns)),(this[_0x3fc58a(0xf9)]=_0x2b7859,this[_0x3fc58a(0x2ee)]=_0x1f98cf,this[_0x3fc58a(0x207)]=_0x331aa3,this[_0x3fc58a(0x37b)]=_0x46edec,this[_0x3fc58a(0xe1)]=_0x432ef2,this[_0x3fc58a(0x473)]=_0x51d0a6,this[_0x3fc58a(0x206)]=_0x16f051,this[_0x3fc58a(0x155)]=_0x3e97e0);}get[_0x5d419f(0x333)](){const _0x3cfcdf=_0x5d419f;return this[_0x3cfcdf(0x3ea)]['getValue']();}get[_0x5d419f(0xab)](){const _0x1807a5=_0x5d419f;return this[_0x1807a5(0x42d)]['getValue']();}[_0x5d419f(0xdc)](){const _0x26c43b=_0x5d419f;super[_0x26c43b(0xdc)](),this[_0x26c43b(0x3ea)]['next'](new Map()),this[_0x26c43b(0x3ea)][_0x26c43b(0xaf)](),this['_roomMembers$'][_0x26c43b(0x2e6)]([]),this[_0x26c43b(0x42d)][_0x26c43b(0xaf)]();}[_0x5d419f(0x1ac)](){const _0x2c0189=_0x5d419f;this['_init']||(this[_0x2c0189(0x470)]=!0x0,this[_0x2c0189(0x2ee)][_0x2c0189(0x2cc)][_0x2c0189(0x106)](v[_0x2c0189(0x48a)](this['dispose$']))[_0x2c0189(0x17f)](_0x56f2b1=>{const _0xaab2ce=_0x2c0189;_0x56f2b1===G[_0xaab2ce(0xc7)]?this['_toggleOnline']():this[_0xaab2ce(0x2b4)]();}),this[_0x2c0189(0x2ee)]['event$']['pipe'](v['takeUntil'](this[_0x2c0189(0xed)]))[_0x2c0189(0x17f)](_0x35e061=>{const _0x52a33d=_0x2c0189,_0x5b75f5=_0x35e061[_0x52a33d(0x17b)];_0x5b75f5===_[_0x52a33d(0xaa)][_0x52a33d(0x22f)]&&this[_0x52a33d(0x385)](_0x35e061),_0x5b75f5===_[_0x52a33d(0xaa)][_0x52a33d(0x220)]&&this[_0x52a33d(0x338)](_0x35e061);}),this[_0x2c0189(0x152)](),this[_0x2c0189(0x1e0)](this['_commandService'][_0x2c0189(0x250)](_0x5a35c8=>{const _0x5b358e=_0x2c0189;if(this[_0x5b358e(0x2a9)]&&_0x5a35c8['id']===p['SetSelectionsOperation']['id']&&_0x5a35c8[_0x5b358e(0x46a)][_0x5b358e(0x2ad)]===this[_0x5b358e(0xf9)]){const _0x296086=_0x5a35c8[_0x5b358e(0x46a)];this[_0x5b358e(0x3f1)](_0x296086[_0x5b358e(0x28d)],_0x296086[_0x5b358e(0x20a)][0x0]);}})));}['_onCursorUpdate'](_0x1e322a){const _0xed97a2=_0x5d419f;var _0x35f4b4,_0x43c5e4;const {memberID:_0x28092d,selection:_0x3bb5b3}=_0x1e322a[_0xed97a2(0x435)],{sheetName:_0x39ae2f,range:_0x4d5f96}=Ye[_0xed97a2(0x2c3)](_0x3bb5b3),_0x4d0807={'name':(_0x43c5e4=(_0x35f4b4=this[_0xed97a2(0xe1)][_0xed97a2(0x1b4)](this[_0xed97a2(0xf9)],_0x28092d))==null?void 0x0:_0x35f4b4[_0xed97a2(0x13c)])!=null?_0x43c5e4:_0xed97a2(0x3bc),'range':this[_0xed97a2(0x1e9)](_0x39ae2f,_0x4d5f96),'sheetID':_0x39ae2f,'color':this[_0xed97a2(0x37b)][_0xed97a2(0x370)](_0x28092d),'selection':_0x3bb5b3},_0x5383d5=this[_0xed97a2(0x333)];_0x5383d5[_0xed97a2(0x22c)](_0x28092d,_0x4d0807),this[_0xed97a2(0x3ea)]['next'](_0x5383d5);}[_0x5d419f(0x338)](_0x1db8d2){const _0x4a1d09=_0x5d419f,{memberID:_0x390c47}=_0x1db8d2[_0x4a1d09(0x435)],_0x460db1=this[_0x4a1d09(0x333)];_0x460db1[_0x4a1d09(0x455)](_0x390c47),this[_0x4a1d09(0x3ea)][_0x4a1d09(0x2e6)](_0x460db1);}[_0x5d419f(0x1e9)](_0x159786,_0x4539ab){const _0x5b12e3=_0x5d419f;var _0x3aff89,_0xe93725;const _0x4102fb=(_0xe93725=(_0x3aff89=this[_0x5b12e3(0x473)][_0x5b12e3(0x270)](this[_0x5b12e3(0xf9)]))==null?void 0x0:_0x3aff89[_0x5b12e3(0x3c5)](_0x159786))==null?void 0x0:_0xe93725['getMergeData']();return(_0x4102fb==null?void 0x0:_0x4102fb['find'](_0x49292e=>o[_0x5b12e3(0x436)]['contains'](_0x49292e,_0x4539ab)))||_0x4539ab;}[_0x5d419f(0x152)](){const _0x1dd0f2=_0x5d419f,_0x637f5c=new o[(_0x1dd0f2(0x170))](),_0xbf1c4=As(),_0x26be6d=()=>{const _0xca88c1=_0x1dd0f2;_0x637f5c[_0xca88c1(0xdc)]();const _0x563ee5=(_0x5c7763,_0x44e266,_0xb71535,_0x2c14f4)=>{const _0x1b64e1=_0xca88c1;let _0x11aa81=[];switch(_0x5c7763['id']){case p[_0x1b64e1(0x412)][_0x1b64e1(0x2f7)]:{_0x11aa81=p['handleDeleteRangeMoveLeft'](_0x5c7763,_0x2c14f4);break;}case p[_0x1b64e1(0x412)][_0x1b64e1(0x36a)]:{_0x11aa81=p['handleDeleteRangeMoveUp'](_0x5c7763,_0x2c14f4);break;}case p['EffectRefRangId']['InsertColCommandId']:{_0x11aa81=p['handleInsertCol'](_0x5c7763,_0x2c14f4);break;}case p[_0x1b64e1(0x412)][_0x1b64e1(0xe0)]:{_0x11aa81=p[_0x1b64e1(0x3e3)](_0x5c7763,_0x2c14f4);break;}case p[_0x1b64e1(0x412)][_0x1b64e1(0x344)]:{_0x11aa81=p['handleInsertRangeMoveRight'](_0x5c7763,_0x2c14f4);break;}case p[_0x1b64e1(0x412)][_0x1b64e1(0x279)]:{_0x11aa81=p[_0x1b64e1(0x150)](_0x5c7763,_0x2c14f4);break;}case p['EffectRefRangId'][_0x1b64e1(0x33f)]:{_0x11aa81=p[_0x1b64e1(0x3a3)](_0x5c7763,_0x2c14f4);break;}case p['EffectRefRangId'][_0x1b64e1(0x19c)]:{_0x11aa81=p[_0x1b64e1(0x21e)](_0x5c7763,_0x2c14f4);break;}case p['EffectRefRangId'][_0x1b64e1(0x41d)]:{_0x11aa81=p[_0x1b64e1(0x390)](_0x5c7763,_0x2c14f4);break;}}const _0x10cf0f=p[_0x1b64e1(0xf4)](_0x11aa81,_0x2c14f4),_0x4549db=this[_0x1b64e1(0x333)]['get'](_0x44e266);if(_0x4549db&&_0x10cf0f){const _0x51d90a={..._0x4549db,'range':_0x10cf0f};this[_0x1b64e1(0x333)][_0x1b64e1(0x22c)](_0x44e266,_0x51d90a),_0xbf1c4(()=>{const _0x24ccd3=_0x1b64e1,_0x566a32=this['_refRangeService'][_0x24ccd3(0x3ba)](_0x10cf0f,_0x254c63=>(_0x566a32[_0x24ccd3(0xdc)](),_0x563ee5(_0x254c63,_0x44e266,_0xb71535,_0x10cf0f)));_0x637f5c[_0x24ccd3(0x182)](_0x566a32);});}return{'redos':[],'undos':[]};};this[_0xca88c1(0x333)][_0xca88c1(0x19d)]((_0x3647cd,_0x2f6c35)=>{const _0x5c41b0=_0xca88c1,{range:_0x258862,sheetID:_0x1783e1}=_0x3647cd,_0x5cfc1c=this[_0x5c41b0(0x155)][_0x5c41b0(0x3ba)](_0x258862,_0x613631=>(_0x5cfc1c[_0x5c41b0(0xdc)](),_0x563ee5(_0x613631,_0x2f6c35,_0x1783e1,_0x258862)));_0x637f5c['add'](_0x5cfc1c);});};this[_0x1dd0f2(0x1e0)](o[_0x1dd0f2(0x32d)](this[_0x1dd0f2(0x3ea)][_0x1dd0f2(0x17f)](()=>{_0x26be6d();})));}[_0x5d419f(0x219)](){const _0x4a5c78=_0x5d419f;var _0x4b9b0a,_0x1a4c79;if(this[_0x4a5c78(0x2a9)]=!0x0,((_0x4b9b0a=this['_univerInstanceService'][_0x4a5c78(0x453)]())==null?void 0x0:_0x4b9b0a['getUnitId']())!==this['unitID'])return;const _0x1455eb=(_0x1a4c79=this[_0x4a5c78(0x207)]['get'](p[_0x4a5c78(0x29c)])[_0x4a5c78(0x47f)]())==null?void 0x0:_0x1a4c79[0x0],_0x192c20=this[_0x4a5c78(0x473)]['getCurrentUnitForType'](o['UniverInstanceType'][_0x4a5c78(0x11f)])[_0x4a5c78(0x40e)]();_0x1455eb&&_0x192c20&&this[_0x4a5c78(0x3f1)](_0x192c20[_0x4a5c78(0x2dd)](),_0x1455eb);}[_0x5d419f(0x2b4)](){this['_online']=!0x1;}};Le=ys([q(0x2,o['Inject'](o[_0x5d419f(0x1e7)])),q(0x3,o[_0x5d419f(0x28b)](Ve)),q(0x4,o[_0x5d419f(0x28b)](Y)),q(0x5,o[_0x5d419f(0x181)]),q(0x6,o[_0x5d419f(0x34e)]),q(0x7,o[_0x5d419f(0x28b)](p[_0x5d419f(0xdd)]))],Le);var js=Object['defineProperty'],$s=Object[_0x5d419f(0x113)],xs=(_0x23af45,_0xe6d98e,_0x37220c,_0x29c453)=>{const _0x4bab8a=_0x5d419f;for(var _0x29c50f=_0x29c453>0x1?void 0x0:_0x29c453?$s(_0xe6d98e,_0x37220c):_0xe6d98e,_0x483e29=_0x23af45[_0x4bab8a(0xe5)]-0x1,_0xba1d1;_0x483e29>=0x0;_0x483e29--)(_0xba1d1=_0x23af45[_0x483e29])&&(_0x29c50f=(_0x29c453?_0xba1d1(_0xe6d98e,_0x37220c,_0x29c50f):_0xba1d1(_0x29c50f))||_0x29c50f);return _0x29c453&&_0x29c50f&&js(_0xe6d98e,_0x37220c,_0x29c50f),_0x29c50f;},W=(_0x3c1ab8,_0x39986a)=>(_0x427617,_0x5317f1)=>_0x39986a(_0x427617,_0x5317f1,_0x3c1ab8);const Hs=0x12c,ks=0x64;let Ne=class extends o[_0x5d419f(0x3a0)]{constructor(_0x1abad7,_0x469e87,_0x2c3498,_0x175f33,_0x322e39,_0x5f3bb2,_0x1a56d1,_0xc0f8c0,_0x358b22){const _0x20137c=_0x5d419f;super(),u(this,_0x20137c(0x2a9),!0x1),u(this,_0x20137c(0x470),!0x1),u(this,'_cursorInfo$',new v[(_0x20137c(0x474))](new Map())),u(this,_0x20137c(0x3eb),this['_cursorInfo$']['asObservable']()),u(this,_0x20137c(0x42d),new v[(_0x20137c(0x474))]([])),u(this,_0x20137c(0xbb),this[_0x20137c(0x42d)]['pipe'](v[_0x20137c(0x103)](Hs))),u(this,_0x20137c(0x3f1),$e(_0x4016d6=>{const _0x3ac116=_0x20137c,_0x268a46={'eventID':_[_0x3ac116(0xaa)][_0x3ac116(0x22f)],'data':{'unitID':this[_0x3ac116(0xf9)],'memberID':this[_0x3ac116(0x2ee)][_0x3ac116(0xfe)](),'selection':Et(_0x4016d6)}};this[_0x3ac116(0x2ee)][_0x3ac116(0x142)](_0x268a46,this[_0x3ac116(0xf9)]);},ks)),(this['unitID']=_0x1abad7,this[_0x20137c(0x2ee)]=_0x469e87,this['_injector']=_0x2c3498,this[_0x20137c(0x37b)]=_0x175f33,this[_0x20137c(0xe1)]=_0x322e39,this[_0x20137c(0x2e1)]=_0x5f3bb2,this[_0x20137c(0x132)]=_0x1a56d1,this[_0x20137c(0x473)]=_0xc0f8c0,this[_0x20137c(0x206)]=_0x358b22);}get[_0x5d419f(0x333)](){const _0x16e9ca=_0x5d419f;return this[_0x16e9ca(0x3ea)]['getValue']();}get[_0x5d419f(0xab)](){const _0x122449=_0x5d419f;return this[_0x122449(0x42d)][_0x122449(0x365)]();}[_0x5d419f(0xdc)](){const _0x2a8cff=_0x5d419f;super['dispose'](),this[_0x2a8cff(0x3ea)][_0x2a8cff(0x2e6)](new Map()),this[_0x2a8cff(0x3ea)]['complete'](),this[_0x2a8cff(0x42d)][_0x2a8cff(0x2e6)]([]),this[_0x2a8cff(0x42d)][_0x2a8cff(0xaf)]();}[_0x5d419f(0x1ac)](){const _0x13354f=_0x5d419f;this[_0x13354f(0x470)]||(this[_0x13354f(0x470)]=!0x0,this[_0x13354f(0x2ee)][_0x13354f(0x2cc)]['pipe'](v['takeUntil'](this[_0x13354f(0xed)]))[_0x13354f(0x17f)](_0x4dae=>{const _0x30c982=_0x13354f;_0x4dae===G[_0x30c982(0xc7)]?this[_0x30c982(0x219)]():this[_0x30c982(0x2b4)]();}),this[_0x13354f(0x2ee)][_0x13354f(0x242)][_0x13354f(0x106)](v['takeUntil'](this['dispose$']))[_0x13354f(0x17f)](_0x43426e=>{const _0x56c9c5=_0x13354f,_0x5dade3=_0x43426e[_0x56c9c5(0x17b)];_0x5dade3===_['CollaborationEvent'][_0x56c9c5(0x22f)]&&this[_0x56c9c5(0x385)](_0x43426e),_0x5dade3===_['CollaborationEvent'][_0x56c9c5(0x220)]&&this['_onCursorDelete'](_0x43426e);}),this[_0x13354f(0x1e0)](this[_0x13354f(0x206)]['onCommandExecuted'](_0x461406=>{const _0x3df602=_0x13354f,_0x40dd9a=_0x461406[_0x3df602(0x46a)];_0x40dd9a!=null&&this[_0x3df602(0x2a9)]&&_0x461406['id']===P['SetTextSelectionsOperation']['id']&&_0x40dd9a[_0x3df602(0x2ad)]===this[_0x3df602(0xf9)]&&_0x40dd9a['isEditing']===!0x1&&this[_0x3df602(0x3f1)](_0x40dd9a[_0x3df602(0x3aa)]);})),this['_syncEditingCollabCursorService'][_0x13354f(0x26e)]['pipe'](v['takeUntil'](this[_0x13354f(0xed)]))[_0x13354f(0x17f)](_0xa389ad=>{const _0x184dac=_0x13354f;if((_0xa389ad==null?void 0x0:_0xa389ad[_0x184dac(0xf9)])!==this['unitID'])return;const _0x2dda18={'eventID':_[_0x184dac(0xaa)][_0x184dac(0x22f)],'data':_0xa389ad};this[_0x184dac(0x385)](_0x2dda18);}),this['disposeWithMe'](this['_commandService'][_0x13354f(0x250)](_0x44d78e=>{const _0x36a94d=_0x13354f;if(_0x44d78e[_0x36a94d(0x46a)]==null)return;const _0x401a94=_0x44d78e[_0x36a94d(0x46a)];if(_0x44d78e['id']!==P[_0x36a94d(0xb1)]['id']||_0x401a94[_0x36a94d(0x2ad)]!==this[_0x36a94d(0xf9)])return;const _0x1f196e={'id':'doc.mutation.rich-text-editing','params':_0x401a94},_0x458dd5=this[_0x36a94d(0x333)];for(const [_0x21c5fa,_0x5bbee7]of _0x458dd5){const _0x411e54={'id':_0x36a94d(0x477),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5bbee7[_0x36a94d(0x3aa)]}},_0x402267=this['_transformService']['transformMutation'](_0x1f196e,_0x411e54,!0x1);if(_[_0x36a94d(0x1c7)](_0x402267))throw _0x402267[_0x36a94d(0x1b7)];_0x458dd5[_0x36a94d(0x22c)](_0x21c5fa,{..._0x5bbee7,'ranges':_0x402267['m2Prime'][_0x36a94d(0x46a)]['textRanges']});}queueMicrotask(()=>{const _0xb1c20=_0x36a94d;this[_0xb1c20(0x3ea)][_0xb1c20(0x2e6)](_0x458dd5);});})));}['_onCursorUpdate'](_0x4199ee){const _0x4fa842=_0x5d419f;var _0x538c0b,_0x7e143a;const {memberID:_0x36983f,selection:_0x40718d}=_0x4199ee['data'],_0x2d3898=fs(_0x40718d),_0x24cb0c=(_0x7e143a=(_0x538c0b=this[_0x4fa842(0xe1)][_0x4fa842(0x1b4)](this[_0x4fa842(0xf9)],_0x36983f))==null?void 0x0:_0x538c0b[_0x4fa842(0x13c)])!=null?_0x7e143a:_0x4fa842(0x3bc),_0x2f3c2f={'color':this[_0x4fa842(0x37b)][_0x4fa842(0x370)](_0x36983f),'name':_0x24cb0c,'ranges':_0x2d3898},_0x4b8e40=this[_0x4fa842(0x333)];_0x4b8e40[_0x4fa842(0x22c)](_0x36983f,_0x2f3c2f),this[_0x4fa842(0x3ea)][_0x4fa842(0x2e6)](_0x4b8e40);}[_0x5d419f(0x338)](_0x30926b){const _0x4f4d89=_0x5d419f,{memberID:_0x18ab37}=_0x30926b[_0x4f4d89(0x435)],_0x427c8d=this['cursorInfo'];_0x427c8d[_0x4f4d89(0x455)](_0x18ab37),this['_cursorInfo$'][_0x4f4d89(0x2e6)](_0x427c8d);}['_toggleOnline'](){const _0x2a6e91=_0x5d419f;var _0x26fb33;if(this['_online']=!0x0,((_0x26fb33=this[_0x2a6e91(0x473)][_0x2a6e91(0x453)]())==null?void 0x0:_0x26fb33[_0x2a6e91(0x100)]())!==this[_0x2a6e91(0xf9)])return;const _0x2895ab=this['_injector']['get'](P[_0x2a6e91(0xc0)])[_0x2a6e91(0x12b)](),_0x501c44=_0x2895ab==null?void 0x0:_0x2895ab[_0x2a6e91(0xd9)](P[_0x2a6e91(0x469)]);Array['isArray'](_0x501c44)&&_0x501c44[_0x2a6e91(0xe5)]>0x0&&this['_updateLocalCursor'](_0x501c44);}[_0x5d419f(0x2b4)](){const _0x1eef58=_0x5d419f;this[_0x1eef58(0x2a9)]=!0x1;}};Ne=xs([W(0x2,o[_0x5d419f(0x28b)](o[_0x5d419f(0x1e7)])),W(0x3,o['Inject'](Ve)),W(0x4,o[_0x5d419f(0x28b)](Y)),W(0x5,o[_0x5d419f(0x28b)](Fe)),W(0x6,_[_0x5d419f(0xbd)]),W(0x7,o[_0x5d419f(0x181)]),W(0x8,o[_0x5d419f(0x34e)])],Ne);var Bs=Object[_0x5d419f(0x19b)],Fs=Object[_0x5d419f(0x113)],Vs=(_0x15b157,_0x3aa31f,_0x2e2da7,_0x4ac525)=>{for(var _0x8de8a1=_0x4ac525>0x1?void 0x0:_0x4ac525?Fs(_0x3aa31f,_0x2e2da7):_0x3aa31f,_0x4baf8f=_0x15b157['length']-0x1,_0x2b8b89;_0x4baf8f>=0x0;_0x4baf8f--)(_0x2b8b89=_0x15b157[_0x4baf8f])&&(_0x8de8a1=(_0x4ac525?_0x2b8b89(_0x3aa31f,_0x2e2da7,_0x8de8a1):_0x2b8b89(_0x8de8a1))||_0x8de8a1);return _0x4ac525&&_0x8de8a1&&Bs(_0x3aa31f,_0x2e2da7,_0x8de8a1),_0x8de8a1;},Re=(_0x1572ec,_0x565a6a)=>(_0x53e8b1,_0x4f0a8d)=>_0x565a6a(_0x53e8b1,_0x4f0a8d,_0x1572ec);let Z=class extends o[_0x5d419f(0x3a0)]{constructor(_0x1c8042,_0x401bcf,_0x21eda0){const _0x497268=_0x5d419f;super(),u(this,'_entities',new Map()),u(this,_0x497268(0x481),new v[(_0x497268(0xbe))]()),(this[_0x497268(0x473)]=_0x1c8042,this['_injector']=_0x401bcf,this[_0x497268(0x268)]=_0x21eda0,this[_0x497268(0x470)]());}[_0x5d419f(0xdc)](){const _0x3c2482=_0x5d419f;super[_0x3c2482(0xdc)](),this[_0x3c2482(0x481)][_0x3c2482(0xaf)](),this['_entities'][_0x3c2482(0x19d)](_0x5954c1=>_0x5954c1[_0x3c2482(0xdc)]());}[_0x5d419f(0x484)](_0x368d74){const _0x5e627b=_0x5d419f;return this['_entities']['has'](_0x368d74)?this['_entities'][_0x5e627b(0x3ad)](_0x368d74)['cursorInfo$']:this[_0x5e627b(0x481)][_0x5e627b(0x106)](v[_0x5e627b(0x20b)](_0x2c58c3=>_0x2c58c3['unitID']===_0x368d74),v[_0x5e627b(0x201)](_0x23bd55=>_0x23bd55[_0x5e627b(0x3eb)]));}['_init'](){const _0x540bc2=_0x5d419f;this['_univerInstanceService'][_0x540bc2(0x23d)](o['UniverInstanceType'][_0x540bc2(0x11f)])[_0x540bc2(0x106)](v['takeUntil'](this[_0x540bc2(0xed)]))[_0x540bc2(0x17f)](async _0x58d743=>{const _0x2ea765=_0x540bc2,_0x4028c5=_0x58d743[_0x2ea765(0x100)](),_0x4feee5=await this[_0x2ea765(0x218)](_0x4028c5);this[_0x2ea765(0x481)][_0x2ea765(0x2e6)](_0x4feee5),this[_0x2ea765(0x355)][_0x2ea765(0x22c)](_0x4028c5,_0x4feee5);}),this[_0x540bc2(0x473)]['getTypeOfUnitAdded$'](o[_0x540bc2(0x464)][_0x540bc2(0x24c)])['pipe'](v[_0x540bc2(0x48a)](this[_0x540bc2(0xed)]))[_0x540bc2(0x106)](v[_0x540bc2(0x20b)](_0x11b782=>!_0x11b782[_0x540bc2(0x100)]()['startsWith']('__')))['subscribe'](async _0x714e94=>{const _0x2b3977=_0x540bc2,_0x57ee0f=_0x714e94[_0x2b3977(0x100)](),_0x8248a7=await this[_0x2b3977(0x164)](_0x57ee0f);this[_0x2b3977(0x481)]['next'](_0x8248a7),this[_0x2b3977(0x355)][_0x2b3977(0x22c)](_0x57ee0f,_0x8248a7);}),v[_0x540bc2(0x2c1)](this[_0x540bc2(0x473)][_0x540bc2(0x225)](o['UniverInstanceType'][_0x540bc2(0x24c)]),this[_0x540bc2(0x473)][_0x540bc2(0x225)](o[_0x540bc2(0x464)][_0x540bc2(0x11f)]))[_0x540bc2(0x106)](v[_0x540bc2(0x48a)](this[_0x540bc2(0xed)]))[_0x540bc2(0x17f)](_0x509db4=>{const _0x2f6908=_0x540bc2,_0x45dd8a=_0x509db4[_0x2f6908(0x100)](),_0x5008ff=this[_0x2f6908(0x355)]['get'](_0x45dd8a);_0x5008ff&&(_0x5008ff['dispose'](),this[_0x2f6908(0x355)][_0x2f6908(0x455)](_0x45dd8a));});}async['_startSheetCollabCursor'](_0x1a5198){const _0x5ee656=_0x5d419f,_0xa0098=await this[_0x5ee656(0x268)]['requireSession'](_0x1a5198),_0x40eb2c=this[_0x5ee656(0x207)][_0x5ee656(0x347)](Le,_0x1a5198,_0xa0098);return _0x40eb2c['init'](),_0x40eb2c;}async['_startDocCollabCursor'](_0x3b3d30){const _0x5b4fe0=_0x5d419f,_0x46ffda=await this[_0x5b4fe0(0x268)][_0x5b4fe0(0x1ff)](_0x3b3d30),_0x39ae55=this[_0x5b4fe0(0x207)][_0x5b4fe0(0x347)](Ne,_0x3b3d30,_0x46ffda);return _0x39ae55[_0x5b4fe0(0x1ac)](),_0x39ae55;}};Z=Vs([o['OnLifecycle'](o[_0x5d419f(0x426)]['Starting'],Z),Re(0x0,o[_0x5d419f(0x181)]),Re(0x1,o[_0x5d419f(0x28b)](o['Injector'])),Re(0x2,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x334)]))],Z);const le=0x14,st=0xc8,Oe=0x4,Ws=0x5;function Gs(_0x3a5b2f,_0x35bf55){const _0x35910b=_0x5d419f;let {radius:_0x1be1c4,width:_0x4a0649,height:_0x5303be}=_0x35bf55;_0x1be1c4=_0x1be1c4!=null?_0x1be1c4:0x0,_0x4a0649=_0x4a0649!=null?_0x4a0649:0x1e,_0x5303be=_0x5303be!=null?_0x5303be:0x1e;let _0xf28a67=0x0,_0x272caf=0x0,_0x14b9ed=0x0;_0xf28a67=_0x272caf=_0x14b9ed=Math['min'](_0x1be1c4,_0x4a0649/0x2,_0x5303be/0x2),_0x3a5b2f[_0x35910b(0x420)](),_0x3a5b2f[_0x35910b(0x439)](_0xf28a67,0x0),_0x3a5b2f[_0x35910b(0x25c)](_0x4a0649-_0x272caf,0x0),_0x3a5b2f[_0x35910b(0x298)](_0x4a0649-_0x272caf,_0x272caf,_0x272caf,Math['PI']*0x3/0x2,0x0,!0x1),_0x3a5b2f['lineTo'](_0x4a0649,_0x5303be-_0x14b9ed),_0x3a5b2f['arc'](_0x4a0649-_0x14b9ed,_0x5303be-_0x14b9ed,_0x14b9ed,0x0,Math['PI']/0x2,!0x1),_0x3a5b2f[_0x35910b(0x25c)](0x0,_0x5303be),_0x3a5b2f['lineTo'](0x0,_0xf28a67),_0x3a5b2f[_0x35910b(0x298)](_0xf28a67,_0xf28a67,_0xf28a67,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3a5b2f[_0x35910b(0x33e)](),_0x35bf55[_0x35910b(0x28e)]&&(_0x3a5b2f[_0x35910b(0x315)](),_0x3a5b2f['fillStyle']=_0x35bf55[_0x35910b(0x28e)],_0x35bf55['fillRule']===_0x35910b(0x36d)?_0x3a5b2f['fill']('evenodd'):_0x3a5b2f[_0x35910b(0x28e)](),_0x3a5b2f['restore']());}class Ee extends b['Shape']{constructor(_0x1a8bae,_0x327576){const _0x1974f2=_0x5d419f;super(_0x1a8bae,_0x327576),u(this,_0x1974f2(0xf5)),u(this,_0x1974f2(0x2d2)),(this['color']=_0x327576==null?void 0x0:_0x327576['color'],this[_0x1974f2(0x2d2)]=_0x327576==null?void 0x0:_0x327576[_0x1974f2(0x2d2)]);}static[_0x5d419f(0x26d)](_0x44a937,_0x21d18f){const _0x5e2e8a=_0x5d419f,{text:_0x43de03,color:_0x312cb3}=_0x21d18f;_0x44a937[_0x5e2e8a(0x315)](),_0x44a937[_0x5e2e8a(0x353)]=_0x5e2e8a(0x1cb);const _0x161e70=_0x44a937[_0x5e2e8a(0x34a)](_0x43de03)[_0x5e2e8a(0x135)],_0x572846=Math[_0x5e2e8a(0x275)](_0x161e70+0x2*Oe,st);Gs(_0x44a937,{'height':le,'radius':0x4,'width':_0x572846,'fill':_0x312cb3,'evented':!0x1}),_0x44a937[_0x5e2e8a(0x211)]=_0x5e2e8a(0x3be);const _0x2b1a02=Oe,_0x59d083=le-Ws,_0x1e5cc5=st-0x2*Oe;if(_0x161e70>_0x1e5cc5){let _0x4c7309='',_0x2cb0fd=0x0;for(const _0x3ef81f of _0x43de03){const _0x1ed25d=_0x44a937[_0x5e2e8a(0x34a)](_0x3ef81f)['width'];if(_0x2cb0fd+_0x1ed25d<=_0x1e5cc5-_0x44a937['measureText'](_0x5e2e8a(0x3ce))[_0x5e2e8a(0x135)])_0x4c7309+=_0x3ef81f,_0x2cb0fd+=_0x1ed25d;else{_0x4c7309+=_0x5e2e8a(0x3ce);break;}}_0x44a937[_0x5e2e8a(0x3e9)](_0x4c7309,_0x2b1a02,_0x59d083);}else _0x44a937[_0x5e2e8a(0x3e9)](_0x43de03,_0x2b1a02,_0x59d083);_0x44a937[_0x5e2e8a(0x2ef)]();}[_0x5d419f(0xc4)](_0x524fa8){const _0x3b0acd=_0x5d419f;Ee[_0x3b0acd(0x26d)](_0x524fa8,this);}}const Ys=0x1,Ks=1.5;class Tt extends b[_0x5d419f(0x324)]{constructor(_0x225b9c,_0x43d3b6){const _0x4aaafe=_0x5d419f;super(_0x225b9c,_0x43d3b6),u(this,_0x4aaafe(0x38c)),u(this,_0x4aaafe(0x391),!0x1),u(this,_0x4aaafe(0x248)),u(this,'_name',''),u(this,_0x4aaafe(0x367),_0x4aaafe(0x10b)),u(this,_0x4aaafe(0x486)),(_0x43d3b6&&this[_0x4aaafe(0x307)](_0x43d3b6),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x4aaafe(0x307)]({'hovered':!0x0})),this[_0x4aaafe(0x124)][_0x4aaafe(0x199)](()=>this[_0x4aaafe(0x307)]({'hovered':!0x1})));}['setShapeProps'](_0x30cd58){const _0x2cc752=_0x5d419f;var _0x13f5cc,_0x2a3f77,_0x55de9d,_0xe1e48b,_0x3d3970,_0x2a21a8;this[_0x2cc752(0x38c)]=(_0x13f5cc=_0x30cd58[_0x2cc752(0xf5)])!=null?_0x13f5cc:this[_0x2cc752(0x38c)],this[_0x2cc752(0x391)]=(_0x2a3f77=_0x30cd58[_0x2cc752(0x20e)])!=null?_0x2a3f77:this[_0x2cc752(0x391)],this['_range']=(_0x55de9d=_0x30cd58[_0x2cc752(0xda)])!=null?_0x55de9d:this[_0x2cc752(0x248)],this[_0x2cc752(0x1bd)]=(_0xe1e48b=_0x30cd58[_0x2cc752(0x13c)])!=null?_0xe1e48b:this[_0x2cc752(0x1bd)],this[_0x2cc752(0x367)]=(_0x3d3970=_0x30cd58[_0x2cc752(0x328)])!=null?_0x3d3970:this[_0x2cc752(0x367)],this[_0x2cc752(0x486)]=(_0x2a21a8=_0x30cd58[_0x2cc752(0xe6)])!=null?_0x2a21a8:this[_0x2cc752(0x486)],this[_0x2cc752(0x255)]({'width':_0x30cd58[_0x2cc752(0x135)],'height':_0x30cd58['height']});}[_0x5d419f(0x38d)](_0x4bc745){const _0x54e1be=_0x5d419f,{row:_0x26351f,column:_0x4e2c12}=_0x4bc745;if(_0x26351f>=this[_0x54e1be(0x248)][_0x54e1be(0x3f0)]&&_0x26351f<=this[_0x54e1be(0x248)][_0x54e1be(0x2ea)]&&_0x4e2c12>=this[_0x54e1be(0x248)][_0x54e1be(0x210)]&&_0x4e2c12<=this['_range'][_0x54e1be(0x308)]){this[_0x54e1be(0x307)]({'hovered':!0x0});return;}this[_0x54e1be(0x307)]({'hovered':!0x1});}['triggerDblclick'](_0x15bffe){return!0x1;}[_0x5d419f(0xc4)](_0x2c59da){const _0x461281=_0x5d419f;b[_0x461281(0x3b7)][_0x461281(0x26d)](_0x2c59da,{'width':this['width'],'height':this[_0x461281(0x232)],'strokeWidth':Ks,'stroke':this[_0x461281(0x38c)],'evented':!0x1,'fill':this[_0x461281(0x486)]}),this[_0x461281(0x391)]&&(_0x2c59da[_0x461281(0x315)](),_0x2c59da['transform'](0x1,0x0,0x0,0x1,this[_0x461281(0x135)],this[_0x461281(0x367)]===_0x461281(0x296)?0x0:-le),Ee[_0x461281(0x26d)](_0x2c59da,{'text':this[_0x461281(0x1bd)],'color':this[_0x461281(0x38c)]}),_0x2c59da[_0x461281(0x2ef)]());}}var Xs=Object[_0x5d419f(0x19b)],qs=Object[_0x5d419f(0x113)],zs=(_0x38b634,_0x599120,_0x1b5739,_0x28eda0)=>{const _0x402944=_0x5d419f;for(var _0x4ca034=_0x28eda0>0x1?void 0x0:_0x28eda0?qs(_0x599120,_0x1b5739):_0x599120,_0xcc8740=_0x38b634[_0x402944(0xe5)]-0x1,_0x34e487;_0xcc8740>=0x0;_0xcc8740--)(_0x34e487=_0x38b634[_0xcc8740])&&(_0x4ca034=(_0x28eda0?_0x34e487(_0x599120,_0x1b5739,_0x4ca034):_0x34e487(_0x4ca034))||_0x4ca034);return _0x28eda0&&_0x4ca034&&Xs(_0x599120,_0x1b5739,_0x4ca034),_0x4ca034;},De=(_0x28e24c,_0x13e5b9)=>(_0x5a5ce7,_0x55f5a1)=>_0x13e5b9(_0x5a5ce7,_0x55f5a1,_0x28e24c);const Js=0x1389;let Ae=class extends o[_0x5d419f(0x3a0)]{constructor(_0x551049,_0x22e4b5,_0x195671,_0x34e238){const _0x5eadec=_0x5d419f;super(),u(this,_0x5eadec(0x3fb),new Set()),u(this,_0x5eadec(0x43c),null),(this[_0x5eadec(0x1f2)]=_0x551049,this[_0x5eadec(0x415)]=_0x22e4b5,this[_0x5eadec(0x10e)]=_0x195671,this[_0x5eadec(0x1f6)]=_0x34e238,this[_0x5eadec(0x470)]());}[_0x5d419f(0x470)](){const _0x53b255=_0x5d419f;this[_0x53b255(0x415)][_0x53b255(0xe8)][_0x53b255(0x106)](C[_0x53b255(0x48a)](this[_0x53b255(0xed)]),C['switchMap'](_0x14cafa=>{const _0x548da0=_0x53b255;if(_0x14cafa){const _0x384fa5=_0x14cafa[_0x548da0(0x465)];return v['combineLatest'](this['_collabCursorController']['getCollabCursors$'](this[_0x548da0(0x1f2)][_0x548da0(0x2ad)]),this[_0x548da0(0x1f6)][_0x548da0(0x375)])[_0x548da0(0x106)](C[_0x548da0(0xd9)](([_0x44241c,_0x5918bb])=>{const _0x4e6047=_0x548da0,_0x6837f6=new Map();return _0x44241c[_0x4e6047(0x19d)]((_0x79a44b,_0x26cce7)=>{const _0xfcf25f=_0x4e6047;if(_0x79a44b[_0xfcf25f(0x180)]===_0x384fa5){const _0x212aa5={..._0x79a44b};_0x212aa5[_0xfcf25f(0xf5)]=_0x5918bb[_0x79a44b['color']],_0x6837f6[_0xfcf25f(0x22c)](_0x26cce7,_0x212aa5);}}),{'skeleton':_0x14cafa,'cursors':_0x6837f6};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x53c2eb,cursors:_0x2d343d})=>{const _0x531e7f=_0x53b255;this[_0x531e7f(0x1dd)](),_0x53c2eb&&this[_0x531e7f(0x462)](_0x53c2eb,_0x2d343d);}),this['_sheetSkeletonManagerService'][_0x53b255(0xe8)][_0x53b255(0x17f)](_0xa48035=>{const _0x2dbddc=_0x53b255;if(_0xa48035==null)return;const {skeleton:_0x2b23fb}=_0xa48035,{scene:_0x2b656d}=this['_context'];_0x2b656d['onPointerMove$'][_0x2dbddc(0x199)]($e(_0x116fb8=>{const _0x1677e9=_0x2dbddc;var _0x2bcea7,_0x1cc76a;const {offsetX:_0x31cd9d,offsetY:_0x4e4ff8}=_0x116fb8,{x:_0x1b2300,y:_0x595b16}=_0x2b656d['getRelativeToViewportCoord'](b['Vector2'][_0x1677e9(0x14e)]([_0x31cd9d,_0x4e4ff8])),{scaleX:_0x3e90fa,scaleY:_0x29eaf7}=_0x2b656d['getAncestorScale'](),_0x5e6a5c=_0x2b656d[_0x1677e9(0x3d1)](J[_0x1677e9(0x15b)]['VIEW_MAIN']),_0x485795=_0x2b656d['getVpScrollXYInfoByPosToVp'](b[_0x1677e9(0x1ed)]['FromArray']([_0x1b2300,_0x595b16]),_0x5e6a5c),_0x4c25ee=_0x2b23fb[_0x1677e9(0x126)](_0x31cd9d,_0x4e4ff8,_0x3e90fa,_0x29eaf7,_0x485795);((_0x2bcea7=this[_0x1677e9(0x43c)])==null?void 0x0:_0x2bcea7[_0x1677e9(0x437)])===_0x4c25ee['column']&&((_0x1cc76a=this[_0x1677e9(0x43c)])==null?void 0x0:_0x1cc76a['row'])===_0x4c25ee['row']||this[_0x1677e9(0x3fb)][_0x1677e9(0x19d)](_0x548fc5=>{const _0x51beda=_0x1677e9;_0x548fc5[_0x51beda(0x38d)](_0x4c25ee);});},0x64));});}[_0x5d419f(0x462)](_0x210d1d,_0x56bd07){const _0xf6850c=_0x5d419f;var _0xfb0e19;const _0xfb7759=(_0xfb0e19=this[_0xf6850c(0x415)][_0xf6850c(0x3e7)]())==null?void 0x0:_0xfb0e19['skeleton'];if(!_0xfb7759)return;const _0x25eb3e=this['_getSheetObject']();if(!_0x25eb3e)return;this[_0xf6850c(0x3fb)][_0xf6850c(0x19d)](_0x56b5c7=>{const _0x3b6b0a=_0xf6850c;_0x56b5c7[_0x3b6b0a(0x40c)]();});const {scene:_0x58d112}=_0x25eb3e,_0x190004=Zs(Array[_0xf6850c(0x3b4)](_0x56bd07[_0xf6850c(0x244)]()))[_0xf6850c(0xd9)](_0x51b40e=>{const _0x3272f9=_0xf6850c,{color:_0x9450a7,range:_0x2bb5fd,name:_0x2cfd52,selection:_0x51f0ab,sheetID:_0x582951}=_0x51b40e,{startColumn:_0x5b8b29,startRow:_0x1839fa,endColumn:_0x3c3125,endRow:_0x2aebb7}=_0x2bb5fd,_0x322834=J[_0x3272f9(0x381)](_0x1839fa,_0x5b8b29,_0x58d112,_0xfb7759),_0x903590=J['getCoordByCell'](_0x2aebb7,_0x3c3125,_0x58d112,_0xfb7759),{columnHeaderHeightAndMarginTop:_0x301b5c}=_0xfb7759,{startX:_0x516378,startY:_0x3d6b7a}=_0x322834,{endX:_0x29a339,endY:_0x310cd8}=_0x903590,_0x1daa98=_0x29a339-_0x516378,_0x5cac5e=_0x310cd8-_0x3d6b7a,_0x24a483={'labelPosition':_0x3d6b7a-_0x301b5c>=le?_0x3272f9(0x10b):_0x3272f9(0x296),'sheetID':_0x582951,'range':_0x2bb5fd,'color':_0x9450a7,'name':_0x2cfd52,'selection':_0x51f0ab,'left':_0x516378,'top':_0x3d6b7a,'width':_0x1daa98,'height':_0x5cac5e,'evented':!0x1,'zIndex':Js};return new Tt(_0x2cfd52,_0x24a483);});_0x58d112['addObjects'](_0x190004,Ys),this[_0xf6850c(0x3fb)]=new Set(_0x190004);}[_0x5d419f(0x1dd)](){const _0x424bd3=_0x5d419f;var _0xb4b02d;(_0xb4b02d=this[_0x424bd3(0x3fb)])==null||_0xb4b02d[_0x424bd3(0x19d)](_0x55a70e=>_0x55a70e['dispose']());}['_getSheetObject'](){const _0x32b90c=_0x5d419f;return J[_0x32b90c(0x32e)](this[_0x32b90c(0x1f2)][_0x32b90c(0x38f)],this['_context']);}};Ae=zs([De(0x1,o[_0x5d419f(0x28b)](J['SheetSkeletonManagerService'])),De(0x2,o['Inject'](Z)),De(0x3,o['Inject'](o[_0x5d419f(0x2fb)]))],Ae);function Zs(_0x4f8996){const _0x3a93e3=_0x5d419f,_0x2a84a4=new Map();return _0x4f8996['forEach'](_0x4cb8bf=>{const _0x4a5db8=_0x3130;if(_0x2a84a4[_0x4a5db8(0x153)](_0x4cb8bf['selection'])){const _0x1f16b0=_0x2a84a4[_0x4a5db8(0x3ad)](_0x4cb8bf[_0x4a5db8(0x192)]);_0x1f16b0['name']+=',\x20'+_0x4cb8bf[_0x4a5db8(0x13c)];}else _0x2a84a4[_0x4a5db8(0x22c)](_0x4cb8bf[_0x4a5db8(0x192)],_0x4cb8bf);}),Array[_0x3a93e3(0x3b4)](_0x2a84a4[_0x3a93e3(0x244)]());}var L=function(){const _0x4f19ef=_0x5d419f;return L=Object[_0x4f19ef(0x305)]||function(_0x2b03ef){const _0x497f73=_0x4f19ef;for(var _0x31cbf6,_0x283e43=0x1,_0x41d5b4=arguments[_0x497f73(0xe5)];_0x283e43<_0x41d5b4;_0x283e43++){_0x31cbf6=arguments[_0x283e43];for(var _0x5dba54 in _0x31cbf6)Object[_0x497f73(0x448)][_0x497f73(0x3b1)][_0x497f73(0x459)](_0x31cbf6,_0x5dba54)&&(_0x2b03ef[_0x5dba54]=_0x31cbf6[_0x5dba54]);}return _0x2b03ef;},L[_0x4f19ef(0x247)](this,arguments);},Qs=function(_0x21e6f2,_0x59b81a){const _0x973ad2=_0x5d419f;var _0x31262a={};for(var _0x108989 in _0x21e6f2)Object[_0x973ad2(0x448)][_0x973ad2(0x3b1)][_0x973ad2(0x459)](_0x21e6f2,_0x108989)&&_0x59b81a[_0x973ad2(0x1b8)](_0x108989)<0x0&&(_0x31262a[_0x108989]=_0x21e6f2[_0x108989]);if(_0x21e6f2!=null&&typeof Object[_0x973ad2(0x3b9)]=='function'){for(var _0x45782c=0x0,_0x108989=Object[_0x973ad2(0x3b9)](_0x21e6f2);_0x45782c<_0x108989['length'];_0x45782c++)_0x59b81a[_0x973ad2(0x1b8)](_0x108989[_0x45782c])<0x0&&Object[_0x973ad2(0x448)][_0x973ad2(0x397)][_0x973ad2(0x459)](_0x21e6f2,_0x108989[_0x45782c])&&(_0x31262a[_0x108989[_0x45782c]]=_0x21e6f2[_0x108989[_0x45782c]]);}return _0x31262a;},We=y[_0x5d419f(0xf0)](function(_0x58cde6,_0x230c95){const _0x4317be=_0x5d419f;var _0x3e32fa=_0x58cde6[_0x4317be(0x1d8)],_0x22c2bf=_0x58cde6['id'],_0xd03c5=_0x58cde6['className'],_0x5b3834=_0x58cde6[_0x4317be(0x1c0)],_0x266cdb=Qs(_0x58cde6,[_0x4317be(0x1d8),'id',_0x4317be(0x2a1),_0x4317be(0x1c0)]),_0x5e11b4=_0x4317be(0x3f3)[_0x4317be(0x302)](_0x22c2bf,'\x20')[_0x4317be(0x302)](_0xd03c5||'')[_0x4317be(0x410)](),_0x217e7c=y[_0x4317be(0x3de)]('_'[_0x4317be(0x302)](si()));return Rt(_0x3e32fa,''['concat'](_0x22c2bf),{'defIds':_0x3e32fa['defIds'],'idSuffix':_0x217e7c[_0x4317be(0x140)]},L({'ref':_0x230c95,'className':_0x5e11b4},_0x266cdb),_0x5b3834);});function Rt(_0x32343e,_0x35e38f,_0x204c75,_0x17d722,_0x4caa53){const _0x456002=_0x5d419f;return y['createElement'](_0x32343e[_0x456002(0x364)],L(L({'key':_0x35e38f},ei(_0x32343e,_0x204c75,_0x4caa53)),_0x17d722),(ti(_0x32343e,_0x204c75)[_0x456002(0x141)]||[])['map'](function(_0x4434bf,_0x4829e4){const _0x9fe8f4=_0x456002;return Rt(_0x4434bf,''['concat'](_0x35e38f,'-')[_0x9fe8f4(0x302)](_0x32343e[_0x9fe8f4(0x364)],'-')['concat'](_0x4829e4),_0x204c75,void 0x0,_0x4caa53);}));}function ei(_0x130284,_0x106713,_0x4dc5ad){const _0xdcbb6f=_0x5d419f;var _0x9fb13=L({},_0x130284['attrs']);_0x4dc5ad!=null&&_0x4dc5ad['colorChannel1']&&_0x9fb13[_0xdcbb6f(0x28e)]===_0xdcbb6f(0x3d2)&&(_0x9fb13[_0xdcbb6f(0x28e)]=_0x4dc5ad['colorChannel1']);var _0x6c63c0=_0x106713[_0xdcbb6f(0x1ea)];return!_0x6c63c0||_0x6c63c0[_0xdcbb6f(0xe5)]===0x0||(_0x130284[_0xdcbb6f(0x364)]==='use'&&_0x9fb13[_0xdcbb6f(0xb5)]&&(_0x9fb13[_0xdcbb6f(0xb5)]=_0x9fb13['xlink:href']+_0x106713[_0xdcbb6f(0x1d0)]),Object[_0xdcbb6f(0xac)](_0x9fb13)[_0xdcbb6f(0x19d)](function(_0x1875c0){const _0x3bbaf8=_0xdcbb6f;var _0x5957c4=_0x1875c0[0x0],_0x393515=_0x1875c0[0x1];typeof _0x393515=='string'&&(_0x9fb13[_0x5957c4]=_0x393515[_0x3bbaf8(0x1aa)](/url\(#(.*)\)/,_0x3bbaf8(0x3c4)[_0x3bbaf8(0x302)](_0x106713[_0x3bbaf8(0x1d0)],')')));})),_0x9fb13;}function ti(_0x15a8cc,_0x22c463){const _0x4536e2=_0x5d419f;var _0x205fd7,_0x265307=_0x22c463[_0x4536e2(0x1ea)];return!_0x265307||_0x265307[_0x4536e2(0xe5)]===0x0?_0x15a8cc:_0x15a8cc[_0x4536e2(0x364)]===_0x4536e2(0x101)&&(!((_0x205fd7=_0x15a8cc[_0x4536e2(0x141)])===null||_0x205fd7===void 0x0)&&_0x205fd7['length'])?L(L({},_0x15a8cc),{'children':_0x15a8cc[_0x4536e2(0x141)][_0x4536e2(0xd9)](function(_0x78c319){const _0x13d2eb=_0x4536e2;return typeof _0x78c319[_0x13d2eb(0x377)]['id']==_0x13d2eb(0x1bc)&&_0x265307&&_0x265307['indexOf'](_0x78c319[_0x13d2eb(0x377)]['id'])>-0x1?L(L({},_0x78c319),{'attrs':L(L({},_0x78c319['attrs']),{'id':_0x78c319[_0x13d2eb(0x377)]['id']+_0x22c463[_0x13d2eb(0x1d0)]})}):_0x78c319;})}):_0x15a8cc;}function si(){const _0x2e8bee=_0x5d419f;return Math[_0x2e8bee(0xe2)]()[_0x2e8bee(0x467)](0x24)[_0x2e8bee(0x3fa)](0x2,0x8);}We[_0x5d419f(0xeb)]=_0x5d419f(0x131);var ii={'tag':'svg','attrs':{'fill':_0x5d419f(0x1da),'viewBox':_0x5d419f(0x107),'width':_0x5d419f(0x1a9),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5d419f(0x2df)},'children':[{'tag':_0x5d419f(0x18b),'attrs':{'stroke':_0x5d419f(0x1a3),'d':_0x5d419f(0x1a6),'strokeLinecap':_0x5d419f(0x38a),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x5d419f(0x101),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x5d419f(0x18b),'attrs':{'fill':_0x5d419f(0x169),'d':_0x5d419f(0x468)}}]}]}],'defIds':[_0x5d419f(0x262)]},Ot=y['forwardRef'](function(_0x5a686a,_0x583a88){const _0x3aa2c9=_0x5d419f;return y[_0x3aa2c9(0x299)](We,Object[_0x3aa2c9(0x305)]({},_0x5a686a,{'id':_0x3aa2c9(0x2d8),'ref':_0x583a88,'icon':ii}));});Ot[_0x5d419f(0xeb)]='OffLineSingle';var ni={'tag':_0x5d419f(0x39c),'attrs':{'fill':_0x5d419f(0x1da),'viewBox':_0x5d419f(0x1ba),'width':_0x5d419f(0x1a9),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5d419f(0x16b)},'children':[{'tag':_0x5d419f(0x18b),'attrs':{'stroke':_0x5d419f(0x1a3),'d':_0x5d419f(0x1f4),'strokeLinecap':_0x5d419f(0x38a),'strokeLinejoin':_0x5d419f(0x38a),'strokeWidth':1.2}}]},{'tag':_0x5d419f(0x101),'attrs':{},'children':[{'tag':_0x5d419f(0x265),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x5d419f(0x18b),'attrs':{'fill':_0x5d419f(0x169),'d':'M0\x200H16V16H0z','transform':_0x5d419f(0x3e4)}}]}]}],'defIds':[_0x5d419f(0x19f)]},Dt=y['forwardRef'](function(_0x213706,_0x4e09a4){const _0xc13f00=_0x5d419f;return y[_0xc13f00(0x299)](We,Object['assign']({},_0x213706,{'id':_0xc13f00(0x216),'ref':_0x4e09a4,'icon':ni}));});Dt[_0x5d419f(0xeb)]=_0x5d419f(0x191);const ri=_0x5d419f(0x405),oi='univer-online-status-title',ai=_0x5d419f(0x1e4),ci=_0x5d419f(0x205),li=_0x5d419f(0x1b0),ne={'onlineStatusIcon':ri,'onlineStatusTitle':oi,'onlineStatus':ai,'online':ci,'offline':li};function hi(_0x4760b){const _0x5474aa=_0x5d419f;switch(_0x4760b){case D[_0x5474aa(0xe9)]:return _0x5474aa(0x1ec);case D[_0x5474aa(0x14a)]:return _0x5474aa(0xa9);case D[_0x5474aa(0x45f)]:return _0x5474aa(0x2c0);case D[_0x5474aa(0x1c9)]:return _0x5474aa(0x376);case D[_0x5474aa(0x2ba)]:case D[_0x5474aa(0x138)]:case D[_0x5474aa(0x278)]:return _0x5474aa(0x2f5);case D[_0x5474aa(0x136)]:return'collabStatus.synced';}}function Pt(_0x18b5bd){const _0x1252d1=_0x5d419f,{status$:_0xdddd1f}=_0x18b5bd,_0x414d33=N['useObservable'](_0xdddd1f,D[_0x1252d1(0x1c9)]),_0x23e125=o[_0x1252d1(0x304)](o[_0x1252d1(0x159)]),_0x2897b6=_0x414d33!==D[_0x1252d1(0xe9)],_0x343e74=_0x23e125['t'](hi(_0x414d33)),_0x4264af=Ht(ne[_0x1252d1(0x194)],{[ne[_0x1252d1(0x21c)]]:_0x2897b6,[ne['offline']]:!_0x2897b6}),_0x26ba66=_0x2897b6?y[_0x1252d1(0x299)](Dt,null):y[_0x1252d1(0x299)](Ot,null);return y['createElement'](_0x1252d1(0x1a8),{'className':_0x4264af},y[_0x1252d1(0x299)](_0x1252d1(0x1a8),{'className':ne[_0x1252d1(0x119)]},_0x26ba66),y['createElement'](_0x1252d1(0x1a8),{'className':ne[_0x1252d1(0x31d)]},_0x343e74));}var _i=Object[_0x5d419f(0x19b)],ui=Object[_0x5d419f(0x113)],di=(_0x564181,_0x30a17d,_0x496367,_0x19fa6)=>{const _0x5f9ff8=_0x5d419f;for(var _0x348510=_0x19fa6>0x1?void 0x0:_0x19fa6?ui(_0x30a17d,_0x496367):_0x30a17d,_0x4b624c=_0x564181[_0x5f9ff8(0xe5)]-0x1,_0x532260;_0x4b624c>=0x0;_0x4b624c--)(_0x532260=_0x564181[_0x4b624c])&&(_0x348510=(_0x19fa6?_0x532260(_0x30a17d,_0x496367,_0x348510):_0x532260(_0x348510))||_0x348510);return _0x19fa6&&_0x348510&&_i(_0x30a17d,_0x496367,_0x348510),_0x348510;},he=(_0x3ced8b,_0x94e7ec)=>(_0x3d3e70,_0x7506ae)=>_0x94e7ec(_0x3d3e70,_0x7506ae,_0x3ced8b);exports[_0x5d419f(0x2e7)]=class extends o[_0x5d419f(0x24f)]{constructor(_0x3a138c,_0x2dd60d,_0x2ad896,_0x3b78b0){const _0x6e9f94=_0x5d419f;super(),u(this,'_status$',new v[(_0x6e9f94(0x474))](D[_0x6e9f94(0x1c9)])),(this[_0x6e9f94(0x473)]=_0x3a138c,this[_0x6e9f94(0x272)]=_0x2dd60d,this[_0x6e9f94(0x207)]=_0x2ad896,this[_0x6e9f94(0x23b)]=_0x3b78b0,this[_0x6e9f94(0x2c4)](),this['_initStatusListener']());}[_0x5d419f(0x2c4)](){const _0x22e09c=_0x5d419f;this[_0x22e09c(0x1e0)](this[_0x22e09c(0x272)][_0x22e09c(0x161)](N[_0x22e09c(0x44e)][_0x22e09c(0x146)],()=>o['connectInjector'](Si({'status$':this[_0x22e09c(0x2db)][_0x22e09c(0x130)]()}),this[_0x22e09c(0x207)])));}['_initStatusListener'](){const _0x1c7fa5=_0x5d419f;this[_0x1c7fa5(0x1e0)](o[_0x1c7fa5(0x32d)](this[_0x1c7fa5(0x473)]['focused$'][_0x1c7fa5(0x106)](v[_0x1c7fa5(0x201)](()=>{const _0x3075dd=_0x1c7fa5,_0x1df1e4=this[_0x3075dd(0x473)]['getFocusedUnit']();return _0x1df1e4?this[_0x3075dd(0x23b)][_0x3075dd(0x2ed)](_0x1df1e4['getUnitId']()):v['of'](null);}),v['switchMap'](_0x29aa6f=>_0x29aa6f?_0x29aa6f[_0x1c7fa5(0x2c5)]:v['of'](D['NOT_COLLAB'])))['subscribe'](_0x1d1c2f=>{const _0x2b3af8=_0x1c7fa5;this[_0x2b3af8(0x2db)][_0x2b3af8(0x2e6)](_0x1d1c2f);})));}},exports[_0x5d419f(0x2e7)]=di([o[_0x5d419f(0xb0)](o[_0x5d419f(0x426)][_0x5d419f(0x300)],exports[_0x5d419f(0x2e7)]),he(0x0,o[_0x5d419f(0x181)]),he(0x1,N[_0x5d419f(0x38e)]),he(0x2,o[_0x5d419f(0x28b)](o[_0x5d419f(0x1e7)])),he(0x3,o['Inject'](exports['CollaborationController']))],exports[_0x5d419f(0x2e7)]);function Si(_0x4a602d){const {status$:_0x2c3e58}=_0x4a602d;return function(){const _0x463bbc=_0x3130;return y[_0x463bbc(0x299)](Pt,{'status$':_0x2c3e58});};}const Ge=o['createIdentifier'](_0x5d419f(0x345));var vi=Object[_0x5d419f(0x19b)],mi=Object[_0x5d419f(0x113)],gi=(_0x4ab57c,_0x274eca,_0x19b994,_0x14654d)=>{for(var _0x118e57=_0x14654d>0x1?void 0x0:_0x14654d?mi(_0x274eca,_0x19b994):_0x274eca,_0x7c93f0=_0x4ab57c['length']-0x1,_0x27d01d;_0x7c93f0>=0x0;_0x7c93f0--)(_0x27d01d=_0x4ab57c[_0x7c93f0])&&(_0x118e57=(_0x14654d?_0x27d01d(_0x274eca,_0x19b994,_0x118e57):_0x27d01d(_0x118e57))||_0x118e57);return _0x14654d&&_0x118e57&&vi(_0x274eca,_0x19b994,_0x118e57),_0x118e57;},z=(_0x41fc17,_0x8ebae0)=>(_0x130631,_0x228dbb)=>_0x8ebae0(_0x130631,_0x228dbb,_0x41fc17);exports[_0x5d419f(0x26a)]=class extends o[_0x5d419f(0x3a0)]{constructor(_0x24078b,_0x472261,_0x5ed390,_0x5346da,_0x3394b0,_0xb7b5dd){const _0x5994fa=_0x5d419f;super(),this['_urlService']=_0x24078b,this[_0x5994fa(0x13a)]=_0x472261,this[_0x5994fa(0x206)]=_0x5ed390,this[_0x5994fa(0x2f2)]=_0x5346da,this['_snapshotService']=_0x3394b0,_0xb7b5dd?_0xb7b5dd==null||_0xb7b5dd[_0x5994fa(0x29a)]()[_0x5994fa(0x371)](()=>this[_0x5994fa(0x470)]()):(this[_0x5994fa(0x13a)][_0x5994fa(0x27d)](_0x5994fa(0x309),_0x5994fa(0x2d4)),this[_0x5994fa(0x470)]());}async[_0x5d419f(0x470)](){const _0x389df7=_0x5d419f,_0x2889ca=this[_0x389df7(0x3d0)]['getParam']('unit'),_0x3319cf=this[_0x389df7(0x3d0)]['getParam'](_0x389df7(0x441));if(!_0x2889ca||!_0x3319cf){this[_0x389df7(0x13a)]['debug'](_0x389df7(0x309),_0x389df7(0x343));return;}switch(Number(_0x3319cf)){case j[_0x389df7(0x11f)]:{const _0x4b472b=await this[_0x389df7(0x2f9)](_0x2889ca);this[_0x389df7(0x488)](_0x4b472b);break;}case j[_0x389df7(0x24c)]:{await this[_0x389df7(0x383)](_0x2889ca);break;}default:{this[_0x389df7(0x13a)]['error'](_0x389df7(0x309),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x5d419f(0x488)](_0x296a1f){const _0x14527d=_0x5d419f;await this[_0x14527d(0x25b)](_0x296a1f),_0x296a1f[_0x14527d(0x3a8)][_0x14527d(0x106)](v['takeUntil'](this[_0x14527d(0xed)]))['subscribe'](_0x528ce5=>{const _0x38c4b0=_0x14527d;_0x528ce5&&this[_0x38c4b0(0x294)](_0x528ce5);}),this[_0x14527d(0x3d0)][_0x14527d(0xa2)][_0x14527d(0x106)](v['takeUntil'](this['dispose$']))[_0x14527d(0x17f)](()=>this[_0x14527d(0x25b)](_0x296a1f));}[_0x5d419f(0x294)](_0x2889f1,_0xe6f499=!0x1){const _0x4273a1=_0x5d419f,_0x2539de=this['_urlService']['getParam']('subunit');_0x2889f1['getSheetId']()!==_0x2539de&&this[_0x4273a1(0x3d0)][_0x4273a1(0xd2)]('subunit',_0x2889f1['getSheetId'](),_0xe6f499);}async[_0x5d419f(0x25b)](_0x5bf8dc){const _0x192fdd=_0x5d419f;var _0x596bfc;const _0x3152ac=this[_0x192fdd(0x3d0)][_0x192fdd(0xfa)](_0x192fdd(0x15a));if(!_0x3152ac||!_0x5bf8dc[_0x192fdd(0x3c5)](_0x3152ac)){const _0x27e032=_0x5bf8dc[_0x192fdd(0x25f)]()[0x0],_0x2f7e2d=_0x5bf8dc[_0x192fdd(0x3c5)](_0x27e032);if(!_0x2f7e2d)return;this[_0x192fdd(0x294)](_0x2f7e2d,!0x0),await this[_0x192fdd(0x206)][_0x192fdd(0x454)](p[_0x192fdd(0xc1)]['id'],{'unitId':_0x5bf8dc[_0x192fdd(0x100)](),'subUnitId':_0x27e032});return;}((_0x596bfc=_0x5bf8dc[_0x192fdd(0x40e)]())==null?void 0x0:_0x596bfc[_0x192fdd(0x2dd)]())!==_0x3152ac&&await this[_0x192fdd(0x206)][_0x192fdd(0x454)](p[_0x192fdd(0xc1)]['id'],{'unitId':_0x5bf8dc['getUnitId'](),'subUnitId':_0x3152ac});}async[_0x5d419f(0x2f9)](_0xc22318){const _0x2601c7=_0x5d419f;let _0x333b6b=0x0;const _0x45e7fa=await this[_0x2601c7(0x2f2)][_0x2601c7(0xe3)](_0xc22318);return _0x45e7fa&&(_0x45e7fa[_0x2601c7(0x388)]||_0x45e7fa[_0x2601c7(0x282)][_0x2601c7(0xe5)]!==0x0)&&(_0x333b6b=_0x45e7fa['rev']),_0x333b6b===0x0&&this[_0x2601c7(0x13a)]['debug'](_0x2601c7(0x309),_0x2601c7(0x1c3)),this[_0x2601c7(0x3dd)][_0x2601c7(0x147)](_0xc22318,_0x333b6b);}async[_0x5d419f(0x383)](_0xa1550b){const _0x511180=_0x5d419f;let _0x37c55e=0x0;const _0x5acc8c=await this[_0x511180(0x2f2)][_0x511180(0xe3)](_0xa1550b);return _0x5acc8c&&(_0x5acc8c[_0x511180(0x388)]||_0x5acc8c[_0x511180(0x282)][_0x511180(0xe5)]!==0x0)&&(_0x37c55e=_0x5acc8c[_0x511180(0x413)]),_0x37c55e===0x0&&this['_logService'][_0x511180(0x27d)](_0x511180(0x309),_0x511180(0x1c3)),this[_0x511180(0x3dd)][_0x511180(0x3ae)](_0xa1550b,_0x37c55e);}},exports[_0x5d419f(0x26a)]=gi([o[_0x5d419f(0xb0)](o[_0x5d419f(0x426)][_0x5d419f(0x300)],exports[_0x5d419f(0x26a)]),z(0x0,Ge),z(0x1,o[_0x5d419f(0x37a)]),z(0x2,o['ICommandService']),z(0x3,o['Inject'](exports['LocalCacheService'])),z(0x4,o[_0x5d419f(0x28b)](_['SnapshotService'])),z(0x5,o['Optional'](kt[_0x5d419f(0x303)]))],exports[_0x5d419f(0x26a)]);var fi=Object[_0x5d419f(0x19b)],Ii=Object['getOwnPropertyDescriptor'],pi=(_0x2680bd,_0x2b1ef4,_0x33e85e,_0x2e0c7a)=>{const _0x14669f=_0x5d419f;for(var _0x418eee=_0x2e0c7a>0x1?void 0x0:_0x2e0c7a?Ii(_0x2b1ef4,_0x33e85e):_0x2b1ef4,_0x1f1a59=_0x2680bd[_0x14669f(0xe5)]-0x1,_0x441729;_0x1f1a59>=0x0;_0x1f1a59--)(_0x441729=_0x2680bd[_0x1f1a59])&&(_0x418eee=(_0x2e0c7a?_0x441729(_0x2b1ef4,_0x33e85e,_0x418eee):_0x441729(_0x418eee))||_0x418eee);return _0x2e0c7a&&_0x418eee&&fi(_0x2b1ef4,_0x33e85e,_0x418eee),_0x418eee;},it=(_0xdcf2d4,_0x59fcf7)=>(_0x2c4aa2,_0x58995a)=>_0x59fcf7(_0x2c4aa2,_0x58995a,_0xdcf2d4);const Ci=_0x5d419f(0x15f),Ei=_0x5d419f(0xc2);let ue=class extends o[_0x5d419f(0x24f)]{constructor(_0xb160f8,_0x29afe1){const _0x18cef8=_0x5d419f;super(),this[_0x18cef8(0x473)]=_0xb160f8,this[_0x18cef8(0x1c8)]=_0x29afe1,this[_0x18cef8(0x470)]();}[_0x5d419f(0x470)](){const _0xb9d4a6=_0x5d419f;this['disposeWithMe'](o[_0xb9d4a6(0x32d)](this['_univerInstanceService'][_0xb9d4a6(0x3db)][_0xb9d4a6(0x17f)](()=>{const _0x323cac=_0xb9d4a6;var _0x182633;const _0x39b499=this[_0x323cac(0x473)][_0x323cac(0x453)]();let _0x295aa3=(_0x182633=this[_0x323cac(0x1c8)][_0x323cac(0x11c)](Ci))!=null?_0x182633:Ei;_0x39b499 instanceof o[_0x323cac(0x123)]&&(_0x295aa3=_0x39b499[_0x323cac(0x13c)]),document[_0x323cac(0x446)]=_0x295aa3;})));}};ue=pi([o[_0x5d419f(0xb0)](o['LifecycleStages'][_0x5d419f(0x336)],ue),it(0x0,o[_0x5d419f(0x181)]),it(0x1,o[_0x5d419f(0x2d3)])],ue);var bi=Object[_0x5d419f(0x19b)],Ti=Object[_0x5d419f(0x113)],Ri=(_0x3dbcf7,_0x2c84cb,_0x54d4b1,_0x42695c)=>{const _0x1ec1e7=_0x5d419f;for(var _0x553a66=_0x42695c>0x1?void 0x0:_0x42695c?Ti(_0x2c84cb,_0x54d4b1):_0x2c84cb,_0x16189d=_0x3dbcf7[_0x1ec1e7(0xe5)]-0x1,_0x44bd9b;_0x16189d>=0x0;_0x16189d--)(_0x44bd9b=_0x3dbcf7[_0x16189d])&&(_0x553a66=(_0x42695c?_0x44bd9b(_0x2c84cb,_0x54d4b1,_0x553a66):_0x44bd9b(_0x553a66))||_0x553a66);return _0x42695c&&_0x553a66&&bi(_0x2c84cb,_0x54d4b1,_0x553a66),_0x553a66;},nt=(_0xba3e14,_0x2d26b6)=>(_0x3a9ee0,_0x52916d)=>_0x2d26b6(_0x3a9ee0,_0x52916d,_0xba3e14);exports[_0x5d419f(0x297)]=class{constructor(_0x5db813,_0x1c8955){const _0x35160f=_0x5d419f;this[_0x35160f(0x1c8)]=_0x5db813,this[_0x35160f(0x2f8)]=_0x1c8955;}async[_0x5d419f(0x22d)](_0x4dbaf4,_0x2bd669){const _0x272f03=_0x5d419f;var _0x1c2e18;const {unitID:_0x1e4448,type:_0x5c0c3d,revision:_0x111fdb=0x0}=_0x2bd669,_0x1a43bc=this[_0x272f03(0x11a)]()+'/'+_0x5c0c3d+_0x272f03(0x2ff)+_0x1e4448+_0x272f03(0x46b)+_0x111fdb,_0x1d5e74=(await this[_0x272f03(0x2f8)][_0x272f03(0x3ad)](_0x1a43bc))[_0x272f03(0x433)],_0x2ea6a9=(_0x1c2e18=_0x1d5e74[_0x272f03(0x42c)])==null?void 0x0:_0x1c2e18['workbook'];if(_0x2ea6a9){const _0x2c3587=_0x2ea6a9==null?void 0x0:_0x2ea6a9[_0x272f03(0x386)],_0x32dfbc=o[_0x272f03(0x44d)][_0x272f03(0x45c)](o[_0x272f03(0x340)](_0x2c3587));_0x2ea6a9[_0x272f03(0x386)]=_0x32dfbc,Object[_0x272f03(0xac)](_0x2ea6a9[_0x272f03(0x252)])[_0x272f03(0x19d)](([,_0x1b9375])=>{const _0x254de6=_0x272f03,_0x105457=_0x1b9375[_0x254de6(0x386)],_0x134610=o[_0x254de6(0x44d)][_0x254de6(0x45c)](o[_0x254de6(0x340)](_0x105457));_0x1b9375[_0x254de6(0x386)]=_0x134610;});}return _0x1d5e74;}async['getSheetBlock'](_0x17f167,_0x267c44){const _0x573192=_0x5d419f,{unitID:_0xc8bc0,type:_0x5f22e4,blockID:_0x3816b8}=_0x267c44,_0x177d65=this[_0x573192(0x3da)]()+'/'+_0x5f22e4+_0x573192(0x2ff)+_0xc8bc0+_0x573192(0x134)+_0x3816b8;return(await this[_0x573192(0x2f8)]['get'](_0x177d65))[_0x573192(0x433)];}async[_0x5d419f(0x213)](_0x1a5f55,_0x2d61f8){const _0x10607e=_0x5d419f,{unitID:_0x5a9fb9,type:_0x195781,from:_0x1ab1c2,to:_0x5a3218}=_0x2d61f8,_0x26b9e9=this['_getAPIPrefix']()+'/'+_0x195781+_0x10607e(0x2ff)+_0x5a9fb9+_0x10607e(0x2ce)+_0x1ab1c2+_0x10607e(0x122)+_0x5a3218;return(await this['_httpService'][_0x10607e(0x3ad)](_0x26b9e9))[_0x10607e(0x433)];}[_0x5d419f(0x11a)](){const _0x4ff36c=_0x5d419f;var _0xda800b;return(_0xda800b=this[_0x4ff36c(0x1c8)]['getConfig'](lt))!=null?_0xda800b:this[_0x4ff36c(0x3da)]();}[_0x5d419f(0x3da)](){const _0xa0bc2d=_0x5d419f;var _0xb2d21c;return(_0xb2d21c=this[_0xa0bc2d(0x1c8)][_0xa0bc2d(0x11c)](ct))!=null?_0xb2d21c:Bt;}async[_0x5d419f(0x1bf)](_0x53e0f0,_0xaa45c2){const _0xada076=_0x5d419f,_0x487a6a=_0xada076(0x18c)+_0xaa45c2[_0xada076(0x441)]+_0xada076(0x2ff)+_0xaa45c2[_0xada076(0xf9)]+'/resources';return(await this['_httpService'][_0xada076(0x3ad)](_0x487a6a,{'params':{'resourceId':JSON[_0xada076(0x461)](_0xaa45c2[_0xada076(0x214)])}}))[_0xada076(0x433)];}[_0x5d419f(0x1f9)](){const _0x56682c=_0x5d419f;throw new Error(_0x56682c(0xde));}[_0x5d419f(0x40b)](){const _0x2869c3=_0x5d419f;throw new Error(_0x2869c3(0xde));}[_0x5d419f(0x3dc)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x5d419f(0x297)]=Ri([nt(0x0,o[_0x5d419f(0x2d3)]),nt(0x1,o[_0x5d419f(0x28b)](U[_0x5d419f(0x11e)]))],exports['SnapshotServerOverHTTPService']);var Oi=Object[_0x5d419f(0x19b)],Di=Object[_0x5d419f(0x113)],Pi=(_0xa5a942,_0x317452,_0x52d878,_0x5e87d6)=>{const _0x41912c=_0x5d419f;for(var _0x31d5ed=_0x5e87d6>0x1?void 0x0:_0x5e87d6?Di(_0x317452,_0x52d878):_0x317452,_0x15a3c9=_0xa5a942[_0x41912c(0xe5)]-0x1,_0x5d6ad9;_0x15a3c9>=0x0;_0x15a3c9--)(_0x5d6ad9=_0xa5a942[_0x15a3c9])&&(_0x31d5ed=(_0x5e87d6?_0x5d6ad9(_0x317452,_0x52d878,_0x31d5ed):_0x5d6ad9(_0x31d5ed))||_0x31d5ed);return _0x5e87d6&&_0x31d5ed&&Oi(_0x317452,_0x52d878,_0x31d5ed),_0x31d5ed;},re=(_0xd9ef4e,_0x3fbdaa)=>(_0x522148,_0x134605)=>_0x3fbdaa(_0x522148,_0x134605,_0xd9ef4e);let je=class extends o[_0x5d419f(0x28f)]{constructor(_0x28546e,_0x161159,_0x5a089b,_0x432c1b,_0x4ff3b5){const _0x495893=_0x5d419f;super(_0x28546e,_0x161159,_0x5a089b),this[_0x495893(0x132)]=_0x432c1b,this[_0x495893(0x13a)]=_0x4ff3b5;}[_0x5d419f(0x409)](_0x20c886,_0x380c02){const _0x3940bf=_0x5d419f,_0x5f0936=this[_0x3940bf(0x322)](_0x20c886);if(_0x5f0936)try{const _0x35b2ab=this[_0x3940bf(0x43b)](_0x5f0936,_0x380c02);this[_0x3940bf(0x23a)](_0x20c886,_0x35b2ab);}catch(_0x518bed){this[_0x3940bf(0x13a)][_0x3940bf(0x1b7)](_0x3940bf(0x2b9),_0x518bed),this[_0x3940bf(0x144)](_0x20c886);}const _0x1dfbf5=this['_getRedoStack'](_0x20c886);if(_0x1dfbf5)try{const _0x146b8b=this[_0x3940bf(0x43b)](_0x1dfbf5,_0x380c02);this[_0x3940bf(0x154)](_0x20c886,_0x146b8b);}catch(_0x4fce86){this[_0x3940bf(0x13a)][_0x3940bf(0x1b7)](_0x4fce86),this['_clearRedo'](_0x20c886);}}['_clearUndo'](_0x311b19){const _0x56e24e=_0x5d419f,_0x58b9bd=this[_0x56e24e(0x322)](_0x311b19);_0x58b9bd&&(_0x58b9bd['length']=0x0,this[_0x56e24e(0x257)]());}[_0x5d419f(0x240)](_0x49bab5){const _0x561fd8=_0x5d419f,_0x2c830d=this['_getRedoStack'](_0x49bab5);_0x2c830d&&(_0x2c830d[_0x561fd8(0xe5)]=0x0,this['_updateStatus']());}[_0x5d419f(0x23a)](_0x15795b,_0x498fb3){const _0xc8f570=_0x5d419f;this[_0xc8f570(0x1f0)]['set'](_0x15795b,_0x498fb3),this[_0xc8f570(0x257)]();}['_substituteRedoStack'](_0x35fbe4,_0x2e697c){const _0x15b06f=_0x5d419f;this[_0x15b06f(0xce)]['set'](_0x35fbe4,_0x2e697c),this[_0x15b06f(0x257)]();}['_transformStack'](_0x1e2252,_0x16bae4){const _0x4a214b=_0x5d419f,_0x4870bb=[];let _0x39678a=_0x16bae4,_0x3d3200=_0x16bae4;for(let _0x55ce12=_0x1e2252[_0x4a214b(0xe5)]-0x1;_0x55ce12>=0x0;_0x55ce12--){const {unitID:_0x4a5977,undoMutations:_0x28d816,redoMutations:_0x5abbbb}=_0x1e2252[_0x55ce12],_0x32ccb4=this[_0x4a214b(0x132)][_0x4a214b(0x366)](_0x39678a,_0x28d816),_0x2b16db=this[_0x4a214b(0x132)][_0x4a214b(0x366)](_0x3d3200,_0x5abbbb);if(_[_0x4a214b(0x392)](_0x32ccb4)||_[_0x4a214b(0x392)](_0x2b16db)){this[_0x4a214b(0x13a)][_0x4a214b(0x1b7)](_0x4a214b(0x2b9),_0x4a214b(0x359),_0x32ccb4,_0x2b16db);break;}_0x39678a=_0x32ccb4[_0x4a214b(0x2ae)],_0x3d3200=_0x2b16db['c1Prime'],_0x4870bb[_0x4a214b(0x151)]({'unitID':_0x4a5977,'undoMutations':_0x32ccb4['m2Prime'],'redoMutations':_0x2b16db[_0x4a214b(0x16d)]});}return _0x4870bb['reverse']();}};je=Pi([re(0x0,o[_0x5d419f(0x181)]),re(0x1,o['ICommandService']),re(0x2,o[_0x5d419f(0x22e)]),re(0x3,_[_0x5d419f(0xbd)]),re(0x4,o[_0x5d419f(0x37a)])],je);class Ut extends o[_0x5d419f(0x3a0)]{constructor(){const _0x3df73c=_0x5d419f;super(),u(this,_0x3df73c(0xa2)),this[_0x3df73c(0xa2)]=v[_0x3df73c(0x266)](window,_0x3df73c(0x23e))[_0x3df73c(0x106)](v[_0x3df73c(0x48a)](this[_0x3df73c(0xed)]),v[_0x3df73c(0x1af)](0x1),v[_0x3df73c(0x281)](void 0x0));}[_0x5d419f(0xd2)](_0x1c740a,_0x44c6ff,_0x10d30c=!0x1){const _0x401b01=_0x5d419f,_0xa2a569=new URL(window[_0x401b01(0x287)][_0x401b01(0x17a)]);_0xa2a569[_0x401b01(0xea)][_0x401b01(0x22c)](_0x1c740a,_0x44c6ff),_0x10d30c?window[_0x401b01(0x2a0)][_0x401b01(0x3d6)]('','',_0xa2a569[_0x401b01(0x467)]()):window[_0x401b01(0x2a0)][_0x401b01(0x269)]('','',_0xa2a569[_0x401b01(0x467)]());}['removeParam'](_0x2d280b,_0xdd88b0=!0x1){const _0xa77de=_0x5d419f,_0x39b8dd=new URL(window['location'][_0xa77de(0x17a)]);_0x39b8dd[_0xa77de(0xea)][_0xa77de(0x455)](_0x2d280b),_0xdd88b0?window[_0xa77de(0x2a0)]['replaceState']('','',_0x39b8dd['toString']()):window['history'][_0xa77de(0x269)]('','',_0x39b8dd[_0xa77de(0x467)]());}[_0x5d419f(0xfa)](_0x52003d){const _0x565665=_0x5d419f;var _0x22a6fc;return(_0x22a6fc=new URL(window[_0x565665(0x287)][_0x565665(0x17a)])[_0x565665(0xea)]['get'](_0x52003d))!=null?_0x22a6fc:void 0x0;}}const Pe='collab-text-anchor-',Ui=_0x5d419f(0x361),Mi=_0x5d419f(0x424),oe=0x6,wi=1.5,Ue=0x4,yi=1.5,Li='rgba(255,\x20255,\x20255,\x200.01)';class rt{constructor(_0x150063,_0xe2dd94,_0x3bd40a,_0x4f5812){const _0x1c7579=_0x5d419f;u(this,_0x1c7579(0x29e),[]),u(this,_0x1c7579(0x2f4),null),u(this,_0x1c7579(0x254),null),u(this,_0x1c7579(0x3ff),null),u(this,_0x1c7579(0xf8),null),u(this,_0x1c7579(0x407),null),(this[_0x1c7579(0x277)]=_0x150063,this['_scene']=_0xe2dd94,this[_0x1c7579(0x3e6)]=_0x3bd40a,this[_0x1c7579(0x2a3)]=_0x4f5812,this[_0x1c7579(0x47e)]());}set['_hover'](_0x4f1d20){const _0x3cb222=_0x5d419f;_0x4f1d20?(this[_0x3cb222(0x3ff)]&&this[_0x3cb222(0x3ff)][_0x3cb222(0x432)](),this['_textBubble']&&this[_0x3cb222(0x254)][_0x3cb222(0x1b3)]()):(this['_anchorDot']&&this[_0x3cb222(0x3ff)]['show'](),this[_0x3cb222(0x254)]&&this[_0x3cb222(0x254)]['hide']());}[_0x5d419f(0xdc)](){const _0x259a1a=_0x5d419f;for(const _0x42b38a of this[_0x259a1a(0x29e)])_0x42b38a['dispose']();this[_0x259a1a(0x254)]&&this['_textBubble']['dispose'](),this[_0x259a1a(0x3ff)]&&this[_0x259a1a(0x3ff)]['dispose'](),this['_anchor']&&this[_0x259a1a(0x2f4)][_0x259a1a(0xdc)](),this[_0x259a1a(0x407)]&&this[_0x259a1a(0x407)]();}[_0x5d419f(0x47e)](){const _0x3cfc7c=_0x5d419f;var _0x229556;const {_docSkeleton:_0x1900ed,_document:_0x48f193}=this,{color:_0x3f655a,name:_0x1440ea,ranges:_0x1ea6be}=this[_0x3cfc7c(0x277)],_0x59d105=_0x48f193['getOffsetConfig'](),{docsLeft:_0x53adc4,docsTop:_0x8928e4}=_0x59d105,_0x35a33c=new b['NodePositionConvertToCursor'](_0x59d105,_0x1900ed);for(const {startOffset:_0x26ba4b,endOffset:_0x5665df,collapsed:_0x489221,isActive:_0x11c0c6}of _0x1ea6be){const _0x3d56f6=_0x1900ed[_0x3cfc7c(0x261)](_0x26ba4b),_0x41c6f5=_0x1900ed[_0x3cfc7c(0x261)](_0x5665df);if(_0x11c0c6){const {contentBoxPointGroup:_0x51d791}=_0x35a33c[_0x3cfc7c(0x271)](_0x41c6f5,_0x41c6f5);if(_0x51d791[_0x3cfc7c(0xe5)]===0x0)continue;this[_0x3cfc7c(0x417)](_0x3f655a,_0x51d791,_0x53adc4,_0x8928e4,_0x1440ea),this[_0x3cfc7c(0x407)]=this['_handleHover']();}if(!_0x489221&&_0x3d56f6&&_0x41c6f5){if(b[_0x3cfc7c(0x319)](_0x3d56f6,_0x41c6f5)){const _0x336987=new b['NodePositionConvertToRectRange'](_0x59d105,_0x1900ed),{pointGroup:_0x1e9cae}=(_0x229556=_0x336987['getRangePointData'](_0x3d56f6,_0x41c6f5))!=null?_0x229556:{};if(_0x1e9cae==null||_0x1e9cae[_0x3cfc7c(0xe5)]===0x0)continue;this['_drawRectRange'](_0x3f655a,_0x1e9cae,_0x53adc4,_0x8928e4);}else{const {contentBoxPointGroup:_0x571170}=_0x35a33c[_0x3cfc7c(0x271)](_0x3d56f6,_0x41c6f5);if(_0x571170[_0x3cfc7c(0xe5)]===0x0)continue;this[_0x3cfc7c(0x358)](_0x3f655a,_0x571170,_0x53adc4,_0x8928e4);}}}}['_drawAnchor'](_0x58a3dc,_0x21048f,_0x4a2d8b,_0x5a0183,_0x59bc9a){const _0x21184e=_0x5d419f,_0xf1ee8e=this[_0x21184e(0x2d5)](_0x21048f),{left:_0x2e584a,top:_0x5b379b,height:_0x1abd5a}=_0xf1ee8e,_0x4c331f=this[_0x21184e(0x11d)](),_0x34b2ea=yi/_0x4c331f,_0x1d0b7f=new b[(_0x21184e(0x3b7))](Pe+o[_0x21184e(0x215)]['generateRandomId'](oe),{'left':_0x2e584a+_0x4a2d8b-_0x34b2ea,'top':_0x5b379b+_0x5a0183,'height':_0x1abd5a,'width':wi,'fill':_0x58a3dc||b[_0x21184e(0xc3)](o[_0x21184e(0x288)][_0x21184e(0x3b3)],0x0),'strokeWidth':_0x34b2ea,'stroke':Li,'evented':!0x0});this[_0x21184e(0x2f4)]=_0x1d0b7f,this['_scene'][_0x21184e(0x1eb)](_0x1d0b7f,b['TEXT_RANGE_LAYER_INDEX']);const _0x9aed40=new b[(_0x21184e(0x3b7))](Pe+o[_0x21184e(0x215)][_0x21184e(0x2ac)](oe),{'left':_0x2e584a+_0x4a2d8b-_0x34b2ea,'top':_0x5b379b+_0x5a0183-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x58a3dc||b[_0x21184e(0xc3)](o['COLORS'][_0x21184e(0x3b3)],0x0),'strokeWidth':0x0,'stroke':_0x58a3dc||b['getColor'](o['COLORS'][_0x21184e(0x3b3)],0x0),'evented':!0x1});this[_0x21184e(0x3ff)]=_0x9aed40,this[_0x21184e(0x230)][_0x21184e(0x1eb)](_0x9aed40,b[_0x21184e(0x33b)]);const _0x401bd1=new Ee(Pe+o['Tools'][_0x21184e(0x2ac)](oe),{'left':_0x2e584a+_0x4a2d8b-_0x34b2ea,'top':_0x5b379b+_0x5a0183-le,'text':_0x59bc9a,'color':_0x58a3dc});this[_0x21184e(0x254)]=_0x401bd1,this[_0x21184e(0x230)][_0x21184e(0x1eb)](_0x401bd1,b[_0x21184e(0x33b)]),this[_0x21184e(0x332)]=!0x1;}[_0x5d419f(0x3d3)](){const _0x3a390d=_0x5d419f,_0x46277e=this['_anchor'][_0x3a390d(0x1d4)][_0x3a390d(0x199)](()=>{this['_hover']=!0x0;}),_0x168d47=this[_0x3a390d(0x2f4)][_0x3a390d(0x124)][_0x3a390d(0x199)](()=>{const _0x5448a5=_0x3a390d;this[_0x5448a5(0xf8)]&&clearTimeout(this[_0x5448a5(0xf8)]),this[_0x5448a5(0xf8)]=setTimeout(()=>{const _0x1b7a3c=_0x5448a5;this[_0x1b7a3c(0x332)]=!0x1;},0x7d0);});return()=>{const _0x587b16=_0x3a390d;_0x46277e[_0x587b16(0x1dc)](),_0x168d47['unsubscribe']();};}['_drawTextRange'](_0x86bf78,_0x3fb2f4,_0x288e10,_0x2b4aa8){const _0xea8ed=_0x5d419f,_0x56d62a=new o[(_0xea8ed(0x1b1))](_0x86bf78)[_0xea8ed(0x2c7)](0.2)[_0xea8ed(0x382)](),_0x2e5e6c=new b[(_0xea8ed(0x33a))](Ui+o[_0xea8ed(0x215)][_0xea8ed(0x2ac)](oe),{'pointsGroup':_0x3fb2f4,'fill':_0x56d62a||b[_0xea8ed(0xc3)](o[_0xea8ed(0x288)][_0xea8ed(0x3b3)],0.2),'left':_0x288e10,'top':_0x2b4aa8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xea8ed(0x29e)][_0xea8ed(0x151)](_0x2e5e6c),this['_scene'][_0xea8ed(0x1eb)](_0x2e5e6c,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5d419f(0x349)](_0x2367d8,_0xd19afc,_0x32f5b5,_0x1b7785){const _0x3fbc07=_0x5d419f,_0x4adcb8=new o['ColorKit'](_0x2367d8)['setAlpha'](0.2)['toRgbString'](),_0x171203=new b['RegularPolygon'](Mi+o[_0x3fbc07(0x215)][_0x3fbc07(0x2ac)](oe),{'pointsGroup':_0xd19afc,'fill':_0x4adcb8||b[_0x3fbc07(0xc3)](o[_0x3fbc07(0x288)][_0x3fbc07(0x3b3)],0.2),'left':_0x32f5b5,'top':_0x1b7785,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3fbc07(0x29e)][_0x3fbc07(0x151)](_0x171203),this[_0x3fbc07(0x230)]['addObject'](_0x171203,b[_0x3fbc07(0x33b)]);}[_0x5d419f(0x2d5)](_0x5092c3){const _0x16621a=_0x5092c3[0x0],_0xe544f6=_0x16621a[0x0],_0x2dfec3=_0x16621a[0x2],{x:_0x1b807b,y:_0x393d3a}=_0xe544f6,{x:_0x2c5081,y:_0x40493f}=_0x2dfec3;return{'left':_0x1b807b,'top':_0x393d3a,'width':_0x2c5081-_0x1b807b,'height':_0x40493f-_0x393d3a};}['_getScale'](){const _0x37af6e=_0x5d419f,{scaleX:_0x336dfd,scaleY:_0x306079}=this[_0x37af6e(0x230)]['getAncestorScale']();return Math[_0x37af6e(0x325)](_0x336dfd,_0x306079);}}var Ni=Object[_0x5d419f(0x19b)],Ai=Object[_0x5d419f(0x113)],ji=(_0x307749,_0x2a74b4,_0x122589,_0x24ab4d)=>{for(var _0x5ae25a=_0x24ab4d>0x1?void 0x0:_0x24ab4d?Ai(_0x2a74b4,_0x122589):_0x2a74b4,_0x29de52=_0x307749['length']-0x1,_0x1f9b78;_0x29de52>=0x0;_0x29de52--)(_0x1f9b78=_0x307749[_0x29de52])&&(_0x5ae25a=(_0x24ab4d?_0x1f9b78(_0x2a74b4,_0x122589,_0x5ae25a):_0x1f9b78(_0x5ae25a))||_0x5ae25a);return _0x24ab4d&&_0x5ae25a&&Ni(_0x2a74b4,_0x122589,_0x5ae25a),_0x5ae25a;},_e=(_0x27ae32,_0x496a69)=>(_0x2face5,_0x1f5cc7)=>_0x496a69(_0x2face5,_0x1f5cc7,_0x27ae32);let de=class extends o[_0x5d419f(0x3a0)]{constructor(_0x201a8e,_0x17123c,_0x2d7601,_0xfd8bff,_0x287028){const _0x1b71d5=_0x5d419f;super(),u(this,_0x1b71d5(0x3c8),[]),u(this,_0x1b71d5(0x3fb),[]),(this['_context']=_0x201a8e,this['_docSkeletonManagerService']=_0x17123c,this[_0x1b71d5(0x10e)]=_0x2d7601,this[_0x1b71d5(0x206)]=_0xfd8bff,this[_0x1b71d5(0x1f6)]=_0x287028,this[_0x1b71d5(0x470)]());}[_0x5d419f(0x470)](){const _0x5bfbbe=_0x5d419f,_0x370ed0=this[_0x5bfbbe(0x1f2)][_0x5bfbbe(0x2ad)],_0x37c239=this[_0x5bfbbe(0x2c2)];this[_0x5bfbbe(0x1e0)](v[_0x5bfbbe(0xf6)]([this[_0x5bfbbe(0x10e)][_0x5bfbbe(0x484)](_0x370ed0),this[_0x5bfbbe(0x1f6)]['currentTheme$']])['pipe'](C['map'](([_0x4095df,_0x459fc9])=>({'skeleton':_0x37c239[_0x5bfbbe(0xcc)](),'cursors':[..._0x4095df[_0x5bfbbe(0x244)]()]['flatMap'](_0x4dfd52=>({..._0x4dfd52,'color':_0x459fc9[_0x4dfd52[_0x5bfbbe(0xf5)]]}))})))[_0x5bfbbe(0x17f)](_0x8c2c9f=>{const _0x120b56=_0x5bfbbe;if(this['_removeCollabCursors'](),_0x8c2c9f){const {skeleton:_0x2b046c,cursors:_0x49af43}=_0x8c2c9f;this[_0x120b56(0x462)](_0x2b046c,_0x49af43);}})),this[_0x5bfbbe(0x18d)](),this['_initCommandExecutedListener']();}[_0x5d419f(0x462)](_0x386391,_0x5af26e){const _0xacd540=_0x5d419f,{scene:_0x368e6a,mainComponent:_0x2d729e}=this[_0xacd540(0x1f2)],_0x348912=_0x5af26e[_0xacd540(0xd9)](_0x4b7a60=>new rt(_0x4b7a60,_0x368e6a,_0x386391,_0x2d729e));this[_0xacd540(0x3c8)]=_0x348912,this[_0xacd540(0x3fb)]=_0x5af26e;}[_0x5d419f(0x330)](){const _0x15fd56=_0x5d419f;this['_removeCollabCursors']();const {scene:_0x4bf52e,mainComponent:_0x307f1c}=this['_context'],_0x3ff766=this[_0x15fd56(0x2c2)][_0x15fd56(0xcc)](),_0x57e7db=this[_0x15fd56(0x3fb)]['map'](_0x126ba0=>new rt(_0x126ba0,_0x4bf52e,_0x3ff766,_0x307f1c));this['_cursorShapes']=_0x57e7db;}[_0x5d419f(0x1dd)](){const _0x5e4f1e=_0x5d419f;this[_0x5e4f1e(0x3c8)][_0x5e4f1e(0x19d)](_0x33ed5d=>_0x33ed5d[_0x5e4f1e(0xdc)]()),this[_0x5e4f1e(0x3c8)]=[];}['_initCommandExecutedListener'](){const _0x2c10ea=_0x5d419f,_0x1edf6d=[P['SetDocZoomRatioOperation']['id']];this[_0x2c10ea(0x1e0)](this[_0x2c10ea(0x206)][_0x2c10ea(0x250)](_0x46989c=>{const _0x11b84f=_0x2c10ea;_0x1edf6d['includes'](_0x46989c['id'])&&_0x46989c['params'][_0x11b84f(0x2ad)]===this['_context']['unitId']&&this['_refreshCollabCursors']();}));}[_0x5d419f(0x18d)](){const _0x32ca87=_0x5d419f;this[_0x32ca87(0x1e0)](o[_0x32ca87(0x28c)](this[_0x32ca87(0x1f2)]['engine'][_0x32ca87(0xb9)])[_0x32ca87(0x106)](C[_0x32ca87(0x20b)](_0x441bae=>_0x441bae[_0x32ca87(0x441)]===b[_0x32ca87(0x24a)][_0x32ca87(0x39d)]),C['throttleTime'](0x10))[_0x32ca87(0x17f)](()=>{const _0x239421=_0x32ca87;this[_0x239421(0x330)]();}));}};de=ji([o[_0x5d419f(0xb0)](o[_0x5d419f(0x426)]['Steady'],de),_e(0x1,o['Inject'](P[_0x5d419f(0x2b2)])),_e(0x2,o[_0x5d419f(0x28b)](Z)),_e(0x3,o['ICommandService']),_e(0x4,o['Inject'](o[_0x5d419f(0x2fb)]))],de);var $i=Object[_0x5d419f(0x19b)],xi=Object['getOwnPropertyDescriptor'],Hi=(_0x24433e,_0x5c5cbf,_0x447f9c,_0x308966)=>{const _0xf486db=_0x5d419f;for(var _0x360e7d=_0x308966>0x1?void 0x0:_0x308966?xi(_0x5c5cbf,_0x447f9c):_0x5c5cbf,_0x2e9a3a=_0x24433e[_0xf486db(0xe5)]-0x1,_0x12a346;_0x2e9a3a>=0x0;_0x2e9a3a--)(_0x12a346=_0x24433e[_0x2e9a3a])&&(_0x360e7d=(_0x308966?_0x12a346(_0x5c5cbf,_0x447f9c,_0x360e7d):_0x12a346(_0x360e7d))||_0x360e7d);return _0x308966&&_0x360e7d&&$i(_0x5c5cbf,_0x447f9c,_0x360e7d),_0x360e7d;},Me=(_0x2d8acd,_0x58edec)=>(_0x3c325d,_0x6fcce0)=>_0x58edec(_0x3c325d,_0x6fcce0,_0x2d8acd);let Ie=class{constructor(_0xf83fa,_0x4780db,_0x4c4700){const _0x7c0ea6=_0x5d419f;this[_0x7c0ea6(0x1c8)]=_0xf83fa,this['_httpService']=_0x4780db,this[_0x7c0ea6(0x1ab)]=_0x4c4700,this[_0x7c0ea6(0x1ac)]();}['init'](){const _0x9c5b8f=_0x5d419f;this[_0x9c5b8f(0x2f8)][_0x9c5b8f(0x44a)]({'priority':0x1,'interceptor':(_0x49f914,_0x22f916)=>_0x22f916(_0x49f914)[_0x9c5b8f(0x106)](v['concatMap'](async _0x509301=>{const _0x29824b=_0x9c5b8f,_0x4c48dd=_0x509301;if(_0x4c48dd[_0x29824b(0x402)]===0x191&&window[_0x29824b(0x314)](this[_0x29824b(0x1ab)]['t'](_0x29824b(0x1b9)))){const _0x18eda6=window[_0x29824b(0x41a)](window[_0x29824b(0x287)][_0x29824b(0x17a)]);window[_0x29824b(0x287)]['href']=this[_0x29824b(0x22b)]()+_0x29824b(0xba)+_0x18eda6;}return _0x4c48dd;}))});}[_0x5d419f(0x22b)](){const _0x4e3387=_0x5d419f;var _0x32856f;return(_0x32856f=this[_0x4e3387(0x1c8)][_0x4e3387(0x11c)](mt))!=null?_0x32856f:Jt;}};Ie=Hi([Me(0x0,o[_0x5d419f(0x2d3)]),Me(0x1,o[_0x5d419f(0x28b)](U['HTTPService'])),Me(0x2,o['Inject'](o[_0x5d419f(0x159)]))],Ie);var ki=Object['defineProperty'],Bi=Object['getOwnPropertyDescriptor'],Fi=(_0x3a923b,_0x33f4f2,_0xd83275,_0x4108fb)=>{const _0x2029e1=_0x5d419f;for(var _0x66002a=_0x4108fb>0x1?void 0x0:_0x4108fb?Bi(_0x33f4f2,_0xd83275):_0x33f4f2,_0x44551e=_0x3a923b[_0x2029e1(0xe5)]-0x1,_0x25df33;_0x44551e>=0x0;_0x44551e--)(_0x25df33=_0x3a923b[_0x44551e])&&(_0x66002a=(_0x4108fb?_0x25df33(_0x33f4f2,_0xd83275,_0x66002a):_0x25df33(_0x66002a))||_0x66002a);return _0x4108fb&&_0x66002a&&ki(_0x33f4f2,_0xd83275,_0x66002a),_0x66002a;},ot=(_0xb6c312,_0x30086b)=>(_0x1df8ab,_0x347811)=>_0x30086b(_0x1df8ab,_0x347811,_0xb6c312);const Mt='AUTHZ_URL_KEY',Vi=_0x5d419f(0xb4);exports[_0x5d419f(0x19a)]=class extends o['Disposable']{constructor(_0x38a2db,_0xe6d4bd){const _0x4a4f08=_0x5d419f;super(),this['_HTTPService']=_0x38a2db,this[_0x4a4f08(0x1c8)]=_0xe6d4bd,this[_0x4a4f08(0x3a9)]();}[_0x5d419f(0x3a9)](){const _0x2a68f7=_0x5d419f,_0x453901=this;this[_0x2a68f7(0x1e0)](this[_0x2a68f7(0x110)][_0x2a68f7(0x44a)]({'priority':0x3e7,'interceptor':U[_0x2a68f7(0x19e)]({'isMatch'(_0x3b1eea){const _0x173fa0=_0x2a68f7;var _0x4b31fe;if(_0x3b1eea[_0x173fa0(0x21f)]===_0x173fa0(0x3cf)&&((_0x4b31fe=_0x3b1eea['requestParams'])!=null&&_0x4b31fe['body'])){const {objectID:_0x29c14b,objectType:_0x53e6b0}=_0x3b1eea['requestParams'][_0x173fa0(0x433)]||{};if(!_0x29c14b||_0x53e6b0===void 0x0)return!0x1;const _0x2f7869=_0x453901[_0x173fa0(0x30c)]()+'/'+_0x53e6b0+'/object/'+_0x29c14b+_0x173fa0(0x1fc);if(_0x3b1eea[_0x173fa0(0x43d)]===_0x2f7869)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3b4b03){const _0xcb9fc=_0x2a68f7;var _0x42e57b;return(_0x42e57b=_0x3b4b03['requestParams'])==null?void 0x0:_0x42e57b[_0xcb9fc(0x433)];},'mergeParamsToRequest'(_0x4eecc4,_0x1de9eb){const _0xee36a2=_0x2a68f7,_0x359b93=_0x453901[_0xee36a2(0x30c)]()+_0xee36a2(0x3ed),_0x4ee77a=_0x4eecc4[_0xee36a2(0x478)]((_0x204d3a,_0x536693)=>{const _0x673029=_0xee36a2,{unitID:_0xa30d4,objectID:_0x356949,objectType:_0x36127c,actions:_0x1a2d5c}=_0x536693;return _0x204d3a[_0xa30d4]||(_0x204d3a[_0xa30d4]={}),_0x204d3a[_0xa30d4][_0x356949]||(_0x204d3a[_0xa30d4][_0x356949]={'objectID':_0x356949,'objectType':_0x36127c,'actions':[]}),_0x204d3a[_0xa30d4][_0x356949]['actions'][_0x673029(0x151)](..._0x1a2d5c),_0x204d3a;},{}),_0x30eeab=[];for(const _0x22e8df in _0x4ee77a)for(const _0x490761 in _0x4ee77a[_0x22e8df]){const {actions:_0x17de7c,objectType:_0x5cded9}=_0x4ee77a[_0x22e8df][_0x490761],_0x1cfb6c=[...new Set(_0x17de7c)];_0x30eeab['push']({'unitID':_0x22e8df,'objectID':_0x490761,'objectType':_0x5cded9,'actions':_0x1cfb6c});}return new U[(_0xee36a2(0x12a))](_0xee36a2(0x3cf),_0x359b93,{'headers':_0x1de9eb['headers'],'withCredentials':_0x1de9eb['withCredentials'],'responseType':_0x1de9eb['responseType'],'body':{'requests':_0x30eeab}});}},{'distributeResult'(_0x1c8e9b,_0xa40eab){const _0x1aee60=_0x2a68f7,{objectActions:_0x1bc142}=_0x1c8e9b;return _0xa40eab[_0x1aee60(0xd9)](_0xd81cd3=>{const _0x44cddd=_0x1aee60,{unitID:_0x2a71b7,objectID:_0x41cfe4,actions:_0x58f90c}=_0xd81cd3,_0x170954=_0x1bc142[_0x44cddd(0x378)](_0x176431=>_0x176431[_0x44cddd(0xf9)]===_0x2a71b7&&_0x176431[_0x44cddd(0x443)]===_0x41cfe4),_0x3f0c81=_0x58f90c[_0x44cddd(0xd9)](_0x462a10=>_0x170954==null?void 0x0:_0x170954['actions'][_0x44cddd(0x378)](_0x549d54=>_0x549d54[_0x44cddd(0x1f7)]===_0x462a10))['filter'](_0x456033=>!!_0x456033);return{'config':_0xd81cd3,'result':{'actions':_0x3f0c81,'error':_0x1c8e9b[_0x44cddd(0x1b7)]}};});}})}));}[_0x5d419f(0x30c)](){const _0x144ee5=_0x5d419f;var _0x48df9a;return(_0x48df9a=this[_0x144ee5(0x1c8)][_0x144ee5(0x11c)](Mt))!=null?_0x48df9a:Vi;}async[_0x5d419f(0x102)](_0x1496e9){const _0x1b9e21=_0x5d419f,_0x324eee=this['_getAPIPrefixPath']()+'/'+_0x1496e9[_0x1b9e21(0x398)]+'/object';return(await this['_HTTPService']['post'](_0x324eee,{'body':_0x1496e9}))[_0x1b9e21(0x433)][_0x1b9e21(0x443)]||'';}async[_0x5d419f(0x184)](_0x26b315){const _0x26c951=_0x5d419f,_0x4405e8=this[_0x26c951(0x30c)]()+_0x26c951(0x46e);return(await this[_0x26c951(0x110)][_0x26c951(0xd0)](_0x4405e8,{'body':_0x26b315}))[_0x26c951(0x433)][_0x26c951(0x10f)];}async[_0x5d419f(0x3cc)](_0x3e9c11){const _0x1af509=_0x5d419f,_0x540676=this[_0x1af509(0x30c)]()+'/'+_0x3e9c11[_0x1af509(0x398)]+'/object/'+_0x3e9c11[_0x1af509(0x443)];await this[_0x1af509(0x110)][_0x1af509(0x235)](_0x540676,{'body':_0x3e9c11});}async[_0x5d419f(0xd5)](_0x59b829){const _0xd6ce7c=_0x5d419f,_0x1614b3=this['_getAPIPrefixPath']()+'/'+_0x59b829[_0xd6ce7c(0x398)]+_0xd6ce7c(0x427)+_0x59b829['objectID']+_0xd6ce7c(0x1fc);return(await this[_0xd6ce7c(0x110)][_0xd6ce7c(0xd0)](_0x1614b3,{'body':_0x59b829}))['body'][_0xd6ce7c(0x259)];}async[_0x5d419f(0x10c)](_0x348c1b){const _0x108696=_0x5d419f,_0x3c61dd=this[_0x108696(0x30c)]()+_0x108696(0x3ed);return(await this[_0x108696(0x110)][_0x108696(0xd0)](_0x3c61dd,{'body':{'requests':_0x348c1b}}))[_0x108696(0x433)][_0x108696(0x46d)];}async[_0x5d419f(0x1b5)](_0x1cf760){const _0x4b55c7=_0x5d419f,_0xc08bf1=this[_0x4b55c7(0x30c)]()+'/'+_0x1cf760[_0x4b55c7(0x398)]+_0x4b55c7(0x1e3),_0x36f58a=await this[_0x4b55c7(0x110)][_0x4b55c7(0xd0)](_0xc08bf1,{'body':_0x1cf760});return{'roles':_0x36f58a[_0x4b55c7(0x433)][_0x4b55c7(0x2a5)],'actions':_0x36f58a[_0x4b55c7(0x433)][_0x4b55c7(0x259)]};}async[_0x5d419f(0x183)](_0x2880e5){const _0x2bb6af=_0x5d419f,_0xb1acea=this[_0x2bb6af(0x30c)]()+'/collaborator';await this[_0x2bb6af(0x110)]['delete'](_0xb1acea,{'params':{'collaboratorID':_0x2880e5[_0x2bb6af(0x1c1)],'objectID':_0x2880e5[_0x2bb6af(0x443)],'unitID':_0x2880e5[_0x2bb6af(0xf9)]}});}async[_0x5d419f(0x31f)](_0x1ef559){const _0x34226a=_0x5d419f,_0x36b247=this['_getAPIPrefixPath']()+_0x34226a(0x3bd);await this['_HTTPService']['patch'](_0x36b247,{'body':_0x1ef559});}async[_0x5d419f(0x185)](_0x30acba){const _0x13b7a0=_0x5d419f,_0x1945d9=this[_0x13b7a0(0x30c)]()+_0x13b7a0(0x3bd);await this['_HTTPService'][_0x13b7a0(0xd0)](_0x1945d9,{'body':_0x30acba});}async['listCollaborators'](_0x4be794){const _0x5afd07=_0x5d419f,_0xebd3dc=this[_0x5afd07(0x30c)]()+'/collaborator';return(await this[_0x5afd07(0x110)]['get'](_0xebd3dc,{'params':{'objectID':_0x4be794[_0x5afd07(0x443)],'unitID':_0x4be794[_0x5afd07(0xf9)]}}))[_0x5afd07(0x433)]['collaborators'];}async[_0x5d419f(0x451)](_0x467f10){const _0x2de2bc=_0x5d419f,_0x4b2a6f=this['_getAPIPrefixPath']()+_0x2de2bc(0x3bd);await this[_0x2de2bc(0x110)]['put'](_0x4b2a6f,{'body':_0x467f10});}},exports[_0x5d419f(0x19a)]=Fi([ot(0x0,o['Inject'](U[_0x5d419f(0x11e)])),ot(0x1,o['Inject'](o[_0x5d419f(0x2d3)]))],exports[_0x5d419f(0x19a)]);var Wi=Object['defineProperty'],Gi=Object[_0x5d419f(0x113)],Yi=(_0x58ed36,_0x56ad27,_0x1b0ea1,_0x3ce5d5)=>{const _0x422892=_0x5d419f;for(var _0x29ee56=_0x3ce5d5>0x1?void 0x0:_0x3ce5d5?Gi(_0x56ad27,_0x1b0ea1):_0x56ad27,_0x7a4dc6=_0x58ed36[_0x422892(0xe5)]-0x1,_0x3d6d23;_0x7a4dc6>=0x0;_0x7a4dc6--)(_0x3d6d23=_0x58ed36[_0x7a4dc6])&&(_0x29ee56=(_0x3ce5d5?_0x3d6d23(_0x56ad27,_0x1b0ea1,_0x29ee56):_0x3d6d23(_0x29ee56))||_0x29ee56);return _0x3ce5d5&&_0x29ee56&&Wi(_0x56ad27,_0x1b0ea1,_0x29ee56),_0x29ee56;},at=(_0xd9a7fc,_0x210dcd)=>(_0x5c6784,_0x283446)=>_0x210dcd(_0x5c6784,_0x283446,_0xd9a7fc);const Ki=[_0x5d419f(0x2bf),_0x5d419f(0x137),_0x5d419f(0xc8),'image/gif',_0x5d419f(0x34b)],Xi=0x5*0x400*0x400,qi=_0x5d419f(0x1e5),zi='/universer-api/stream/file/upload',Ji=_0x5d419f(0x23c),Zi=_0x5d419f(0x32f);exports[_0x5d419f(0x1f1)]=class{constructor(_0x213c44,_0x2c44d7){const _0xf653d1=_0x5d419f;u(this,'_waitCount',0x0),u(this,'_change$',new v[(_0xf653d1(0xbe))]()),u(this,'change$',this[_0xf653d1(0x243)]),u(this,_0xf653d1(0x429),new Map()),(this[_0xf653d1(0x2f8)]=_0x213c44,this['_configService']=_0x2c44d7);}['setWaitCount'](_0x3157a2){const _0x53c305=_0x5d419f;this[_0x53c305(0x1ce)]=_0x3157a2,this[_0x53c305(0x243)]['next'](_0x3157a2);}[_0x5d419f(0x290)](_0x517594,_0x415a3a){const _0x5cbb21=_0x5d419f;if(_0x415a3a===A[_0x5cbb21(0x175)][_0x5cbb21(0x13d)]){const _0x1cda09=new Image();return _0x1cda09[_0x5cbb21(0x18a)]=_0x517594,_0x1cda09;}return this[_0x5cbb21(0x429)][_0x5cbb21(0x3ad)](_0x517594);}[_0x5d419f(0x3bb)](_0x189be3,_0x1d5717,_0x457313){const _0x2726f5=_0x5d419f;_0x1d5717===A['ImageSourceType'][_0x2726f5(0x13d)]||_0x457313==null||this['_imageSourceCache'][_0x2726f5(0x22c)](_0x189be3,_0x457313);}async[_0x5d419f(0x1c4)](_0x48837f){const _0x585af6=_0x5d419f;try{const _0xa2bed9=this['_replaceFileID'](this[_0x585af6(0x1cd)](),''+_0x48837f),_0x4b7df2=(await this[_0x585af6(0x2f8)]['get'](_0xa2bed9))['body'];return _0x4b7df2['error']&&_0x4b7df2[_0x585af6(0x1b7)][_0x585af6(0x1d3)]===gt['OK']?Promise[_0x585af6(0x373)](_0x4b7df2[_0x585af6(0x43d)]):Promise[_0x585af6(0x3b6)](_0x4b7df2[_0x585af6(0x1b7)]);}catch(_0x4e45bf){return Promise[_0x585af6(0x3b6)](_0x4e45bf);}}async['saveImage'](_0x2cd9a1){const _0x387d60=_0x5d419f;let _0x41307b='';if(!Ki['includes'](_0x2cd9a1[_0x387d60(0x441)]))return this[_0x387d60(0xb7)](),Promise['reject'](new Error(A['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0x2cd9a1[_0x387d60(0x43a)]>Xi)return this[_0x387d60(0xb7)](),Promise[_0x387d60(0x3b6)](new Error(A[_0x387d60(0xfc)]['ERROR_EXCEED_SIZE']));try{const _0xec61b9=new FormData();_0xec61b9[_0x387d60(0x452)]('file',_0x2cd9a1);const _0x4c9de4=this[_0x387d60(0x3ab)]()+_0x387d60(0x411)+_0x2cd9a1[_0x387d60(0x43a)][_0x387d60(0x467)](),_0x218466=await(await fetch(_0x4c9de4,{'method':_0x387d60(0x3cf),'body':_0xec61b9}))[_0x387d60(0x2d9)]();if(typeof _0x218466[_0x387d60(0x3f8)]!=_0x387d60(0x1bc))return this['_decreaseWaiting'](),Promise[_0x387d60(0x3b6)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));_0x41307b=_0x218466[_0x387d60(0x3f8)];}catch{return this[_0x387d60(0xb7)](),Promise[_0x387d60(0x3b6)](new Error(A[_0x387d60(0xfc)][_0x387d60(0x3d7)]));}return new Promise((_0xa2114a,_0x59133d)=>{const _0x1d89b4=_0x387d60,_0x4fb6af=new FileReader();_0x4fb6af['readAsDataURL'](_0x2cd9a1),_0x4fb6af[_0x1d89b4(0x40a)]=_0x14ceb1=>{const _0x4269e0=_0x1d89b4;var _0x2c94e4;const _0x1c6345=(_0x2c94e4=_0x14ceb1['target'])==null?void 0x0:_0x2c94e4['result'];if(_0x1c6345==null){this['_decreaseWaiting'](),_0x59133d(new Error(A[_0x4269e0(0xfc)]['ERROR_IMAGE']));return;}const _0x474739=o[_0x4269e0(0x215)][_0x4269e0(0x2ac)](0x6);_0xa2114a({'imageId':_0x474739,'imageSourceType':A['ImageSourceType'][_0x4269e0(0x20f)],'source':_0x41307b,'base64Cache':_0x1c6345,'status':A['ImageUploadStatusType'][_0x4269e0(0x2e0)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x2fe6ae=_0x5d419f;var _0x43ed3f;return(_0x43ed3f=this[_0x2fe6ae(0x1c8)][_0x2fe6ae(0x11c)](qi))!=null?_0x43ed3f:zi;}['_getSignURL'](){const _0x4061c2=_0x5d419f;var _0x3d3687;return(_0x3d3687=this[_0x4061c2(0x1c8)][_0x4061c2(0x11c)](Ji))!=null?_0x3d3687:Zi;}['_replaceFileID'](_0x2bc645,_0x32a691){const _0x269ca2=_0x5d419f;return _0x2bc645['replace'](_0x269ca2(0x39a),_0x32a691);}[_0x5d419f(0xb7)](){const _0x5dd8f2=_0x5d419f;this['_waitCount']-=0x1,this['_change$'][_0x5dd8f2(0x2e6)](this[_0x5dd8f2(0x1ce)]);}},exports[_0x5d419f(0x1f1)]=Yi([at(0x0,o['Inject'](U[_0x5d419f(0x11e)])),at(0x1,o['IConfigService'])],exports['ImageIoService']);function _0x3130(_0x2a122f,_0x47f50b){const _0x2f90d6=_0x2f90();return _0x3130=function(_0x31305f,_0x1604cf){_0x31305f=_0x31305f-0xa0;let _0x379e8b=_0x2f90d6[_0x31305f];return _0x379e8b;},_0x3130(_0x2a122f,_0x47f50b);}var Qi=Object[_0x5d419f(0x19b)],en=Object[_0x5d419f(0x113)],tn=(_0x4898c8,_0x2f53fb,_0x4e6c06,_0x3afdb8)=>{const _0x2488ac=_0x5d419f;for(var _0x2ff83e=_0x3afdb8>0x1?void 0x0:_0x3afdb8?en(_0x2f53fb,_0x4e6c06):_0x2f53fb,_0x29266a=_0x4898c8[_0x2488ac(0xe5)]-0x1,_0x79b35a;_0x29266a>=0x0;_0x29266a--)(_0x79b35a=_0x4898c8[_0x29266a])&&(_0x2ff83e=(_0x3afdb8?_0x79b35a(_0x2f53fb,_0x4e6c06,_0x2ff83e):_0x79b35a(_0x2ff83e))||_0x2ff83e);return _0x3afdb8&&_0x2ff83e&&Qi(_0x2f53fb,_0x4e6c06,_0x2ff83e),_0x2ff83e;},ae=(_0x220f9a,_0x23eaaa)=>(_0xf21096,_0x3364ed)=>_0x23eaaa(_0xf21096,_0x3364ed,_0x220f9a);let Se=class extends o['RxDisposable']{constructor(_0x609c23,_0x135095,_0x393596,_0x42886d,_0x48b063){const _0xb9145e=_0x5d419f;super(),this[_0xb9145e(0x207)]=_0x609c23,this[_0xb9145e(0x473)]=_0x135095,this[_0xb9145e(0x25a)]=_0x393596,this['_collaborationSessionService']=_0x42886d,this[_0xb9145e(0x1a1)]=_0x48b063,this[_0xb9145e(0x476)](),this[_0xb9145e(0x456)]();}[_0x5d419f(0x456)](){const _0xb8bae7=_0x5d419f,_0x11ccfc=async _0x251cc0=>{const _0xb2b2df=_0x3130;(await this[_0xb2b2df(0x34c)][_0xb2b2df(0x1ff)](_0x251cc0))['event$'][_0xb2b2df(0x106)](C['filter'](_0x349234=>_0x349234[_0xb2b2df(0x17b)]===_[_0xb2b2df(0xaa)][_0xb2b2df(0x120)]),C[_0xb2b2df(0x48a)](this['dispose$']))[_0xb2b2df(0x17f)](_0x32539e=>{const _0x4069f1=_0xb2b2df,_0x21c1af=_0x32539e,{reason:_0x10d1a8}=_0x21c1af[_0x4069f1(0x435)];this['_injector'][_0x4069f1(0x3ad)](N[_0x4069f1(0x3fd)])[_0x4069f1(0x1b3)]({'type':Q['MessageType'][_0x4069f1(0xd7)],'content':this[_0x4069f1(0x1a1)]['t']('collaboration.closeRoom')+'('+_0x10d1a8+')'}),this[_0x4069f1(0x25a)][_0x4069f1(0x384)](new p[(_0x4069f1(0x341))](_0x251cc0)['id'],!0x1),this[_0x4069f1(0x34c)][_0x4069f1(0x3cd)](_0x251cc0);});};v[_0xb8bae7(0x2c1)](this['_univerInstanceService'][_0xb8bae7(0x23d)](o[_0xb8bae7(0x464)][_0xb8bae7(0x11f)]),this[_0xb8bae7(0x473)][_0xb8bae7(0x23d)](o[_0xb8bae7(0x464)][_0xb8bae7(0x24c)]))[_0xb8bae7(0x106)](C['map'](_0x3c2966=>_0x3c2966['getUnitId']()),C[_0xb8bae7(0x20b)](_0x29b34f=>!o['isInternalEditorID'](_0x29b34f)),C[_0xb8bae7(0x48a)](this[_0xb8bae7(0xed)]))[_0xb8bae7(0x17f)](_0x1a22b6=>{_0x11ccfc(_0x1a22b6);});}[_0x5d419f(0x476)](){const _0x282ab8=_0x5d419f,_0x19f158=async _0x471e87=>{const _0x2151e0=_0x3130;(await this[_0x2151e0(0x34c)][_0x2151e0(0x1ff)](_0x471e87))[_0x2151e0(0x242)]['pipe'](C[_0x2151e0(0x20b)](_0xd65b7b=>_0xd65b7b[_0x2151e0(0x17b)]===_[_0x2151e0(0xaa)]['UPDATE_PERMISSION_OBJ']),C[_0x2151e0(0x48a)](this[_0x2151e0(0xed)]))[_0x2151e0(0x17f)](_0x312036=>{const _0xb701e5=_0x2151e0,_0xea97e5=_0x312036,{objectId:_0x360afe}=_0xea97e5[_0xb701e5(0x435)];_0x360afe===_0x471e87&&this[_0xb701e5(0x207)][_0xb701e5(0x3ad)](J['SheetPermissionInitController'])[_0xb701e5(0x2a7)](_0x471e87);});};v[_0x282ab8(0x2c1)](this['_univerInstanceService'][_0x282ab8(0x23d)](o[_0x282ab8(0x464)]['UNIVER_SHEET']),this[_0x282ab8(0x473)][_0x282ab8(0x23d)](o[_0x282ab8(0x464)][_0x282ab8(0x24c)]))['pipe'](C[_0x282ab8(0xd9)](_0x3a2c46=>_0x3a2c46[_0x282ab8(0x100)]()),C[_0x282ab8(0x20b)](_0x5a157b=>!o[_0x282ab8(0x2c6)](_0x5a157b)),C[_0x282ab8(0x48a)](this[_0x282ab8(0xed)]))['subscribe'](_0x3571e5=>{_0x19f158(_0x3571e5);});}};Se=tn([o[_0x5d419f(0xb0)](o[_0x5d419f(0x426)][_0x5d419f(0x300)],Se),ae(0x0,o[_0x5d419f(0x28b)](o['Injector'])),ae(0x1,o[_0x5d419f(0x181)]),ae(0x2,o['IPermissionService']),ae(0x3,o[_0x5d419f(0x28b)](exports[_0x5d419f(0x334)])),ae(0x4,o[_0x5d419f(0x28b)](o[_0x5d419f(0x159)]))],Se);var wt=Object[_0x5d419f(0x19b)],sn=Object[_0x5d419f(0x113)],nn=(_0xdf6aa5,_0xa80cfd,_0x212901)=>_0xa80cfd in _0xdf6aa5?wt(_0xdf6aa5,_0xa80cfd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x212901}):_0xdf6aa5[_0xa80cfd]=_0x212901,rn=(_0x3e1844,_0x217956,_0x10492e,_0x55edc8)=>{const _0x5eb0cc=_0x5d419f;for(var _0x300658=_0x55edc8>0x1?void 0x0:_0x55edc8?sn(_0x217956,_0x10492e):_0x217956,_0x295e7b=_0x3e1844[_0x5eb0cc(0xe5)]-0x1,_0x45afee;_0x295e7b>=0x0;_0x295e7b--)(_0x45afee=_0x3e1844[_0x295e7b])&&(_0x300658=(_0x55edc8?_0x45afee(_0x217956,_0x10492e,_0x300658):_0x45afee(_0x300658))||_0x300658);return _0x55edc8&&_0x300658&&wt(_0x217956,_0x10492e,_0x300658),_0x300658;},we=(_0x435a3e,_0xab5aaa)=>(_0x4185f0,_0x2c26ba)=>_0xab5aaa(_0x4185f0,_0x2c26ba,_0x435a3e),on=(_0x47b260,_0xae3554,_0x32b50e)=>nn(_0x47b260,_0xae3554+'',_0x32b50e);const an='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports['UniverCollaborationClientPlugin']=class extends o[_0x5d419f(0x17e)]{constructor(_0x251e64,_0x1b31a0,_0xd796f7,_0x34bb3a){const _0x4d549c=_0x5d419f;super(),this[_0x4d549c(0x327)]=_0x251e64,this[_0x4d549c(0x13a)]=_0x1b31a0,this[_0x4d549c(0x2b0)]=_0xd796f7,this[_0x4d549c(0x207)]=_0x34bb3a;}['onStarting'](_0x2579b4){const _0x562afc=_0x5d419f;this[_0x562afc(0x463)](_0x2579b4);}[_0x5d419f(0x1d1)](){const _0x1176ca=_0x5d419f;this[_0x1176ca(0x25e)]();}[_0x5d419f(0x463)](_0x12fb6e){const _0x4271da=_0x5d419f;var _0x393178,_0x209b07,_0x30551d,_0x14eb54;_0x12fb6e[_0x4271da(0x153)](o[_0x4271da(0x403)])&&this[_0x4271da(0x13a)][_0x4271da(0x1b7)](_0x4271da(0x163),_0x4271da(0x21d));let _0x3cf856=[[o[_0x4271da(0x403)],{'useClass':je}],[exports[_0x4271da(0x334)]],[Ve],[U[_0x4271da(0x11e)]],[Ge,{'useClass':Ut}],[Y],[exports[_0x4271da(0x3f2)]],[U[_0x4271da(0x301)]],[ge],[me],[ve],[Fe],[Ie],[Be],[Se],[ke,{'useClass':(_0x209b07=(_0x393178=this[_0x4271da(0x327)])==null?void 0x0:_0x393178[_0x4271da(0x239)])!=null?_0x209b07:exports['CollaborationSocketService']}],[U[_0x4271da(0x2fe)],{'useClass':U[_0x4271da(0x425)]}],[o[_0x4271da(0x422)],{'useClass':exports[_0x4271da(0x297)]}],[o['IAuthzIoService'],{'useClass':exports[_0x4271da(0x19a)]}],[A[_0x4271da(0x47c)],{'useClass':exports['ImageIoService']}],[exports[_0x4271da(0x127)]],[exports[_0x4271da(0x26a)]],[exports[_0x4271da(0x2e7)]],[ue],[Z]];(_0x30551d=this['_config'])!=null&&_0x30551d[_0x4271da(0x109)]&&_0x3cf856['push']([pe,{'useClass':_s}]),_0x3cf856=o[_0x4271da(0x3a2)](_0x3cf856,(_0x14eb54=this[_0x4271da(0x327)])==null?void 0x0:_0x14eb54[_0x4271da(0x27c)]),_0x3cf856[_0x4271da(0x19d)](_0x21fd21=>_0x12fb6e[_0x4271da(0x182)](_0x21fd21)),this[_0x4271da(0x12f)]();}[_0x5d419f(0x25e)](){const _0x3d3dc5=_0x5d419f;this[_0x3d3dc5(0x1e0)](this[_0x3d3dc5(0x2b0)][_0x3d3dc5(0x1fe)](o[_0x3d3dc5(0x464)][_0x3d3dc5(0x24c)],[de])),this[_0x3d3dc5(0x1e0)](this['_renderManagerService'][_0x3d3dc5(0x1fe)](o[_0x3d3dc5(0x464)][_0x3d3dc5(0x11f)],[Ae]));}['_initModules'](){const _0x448beb=_0x5d419f;var _0x386247,_0x32dacf;this['_injector'][_0x448beb(0x3ad)](U['HTTPService'])[_0x448beb(0x44a)]({'priority':0x14,'interceptor':U[_0x448beb(0x404)]({'maxParallel':0x6})}),(_0x386247=this[_0x448beb(0x327)])!=null&&_0x386247[_0x448beb(0x485)]||this[_0x448beb(0x207)][_0x448beb(0x3ad)](exports[_0x448beb(0x3f2)])[_0x448beb(0x28a)](),(_0x32dacf=this[_0x448beb(0x327)])!=null&&_0x32dacf[_0x448beb(0x274)]&&this[_0x448beb(0x207)]['get'](Ie);}},on(exports[_0x5d419f(0xfd)],_0x5d419f(0x237),an),exports[_0x5d419f(0xfd)]=rn([o[_0x5d419f(0x24e)](_[_0x5d419f(0x221)]),we(0x1,o[_0x5d419f(0x37a)]),we(0x2,b[_0x5d419f(0x27a)]),we(0x3,o['Inject'](o[_0x5d419f(0x1e7)]))],exports[_0x5d419f(0xfd)]),exports['AUTHZ_URL_KEY']=Mt,exports[_0x5d419f(0x2be)]=vt,exports[_0x5d419f(0x128)]=_t,exports['CollaborationStatus']=D,exports[_0x5d419f(0x14f)]=Pt,exports[_0x5d419f(0xbf)]=Be,exports['HEARTBEAT_INTERVAL_KEY']=ut,exports[_0x5d419f(0x35e)]=xe,exports[_0x5d419f(0x1fb)]=ke,exports[_0x5d419f(0x149)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x5d419f(0xd6)]=mt,exports[_0x5d419f(0x1db)]=ht,exports['SNAPSHOT_SERVER_URL_KEY']=ct,exports['SNAPSHOT_URL_KEY']=lt,exports['SessionStatus']=G,exports[_0x5d419f(0x202)]=Tt,exports[_0x5d419f(0x30f)]=Ut,exports[_0x5d419f(0xae)]=ft,exports[_0x5d419f(0x313)]=It;
1
+ 'use strict';const _0x3022d6=_0xbc10;(function(_0x137f62,_0x25dadd){const _0x5ae9e6=_0xbc10,_0x19d4bc=_0x137f62();while(!![]){try{const _0x1c8c05=parseInt(_0x5ae9e6(0x247))/0x1*(parseInt(_0x5ae9e6(0x3ed))/0x2)+-parseInt(_0x5ae9e6(0x1b5))/0x3+-parseInt(_0x5ae9e6(0x2c1))/0x4*(parseInt(_0x5ae9e6(0x430))/0x5)+-parseInt(_0x5ae9e6(0x27d))/0x6*(parseInt(_0x5ae9e6(0xcb))/0x7)+parseInt(_0x5ae9e6(0x14c))/0x8+parseInt(_0x5ae9e6(0xd9))/0x9+parseInt(_0x5ae9e6(0xa3))/0xa*(-parseInt(_0x5ae9e6(0x228))/0xb);if(_0x1c8c05===_0x25dadd)break;else _0x19d4bc['push'](_0x19d4bc['shift']());}catch(_0x355c8b){_0x19d4bc['push'](_0x19d4bc['shift']());}}}(_0x1991,0x31338));var xt=Object[_0x3022d6(0x131)],Ht=(_0x344738,_0x2f667c,_0x2c472e)=>_0x2f667c in _0x344738?xt(_0x344738,_0x2f667c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c472e}):_0x344738[_0x2f667c]=_0x2c472e,u=(_0x1560d5,_0x321f50,_0x42d4af)=>Ht(_0x1560d5,typeof _0x321f50!='symbol'?_0x321f50+'':_0x321f50,_0x42d4af);Object['defineProperty'](exports,Symbol[_0x3022d6(0x19b)],{'value':_0x3022d6(0x11c)});const o=require(_0x3022d6(0x315)),p=require('@univerjs/sheets'),Q=require(_0x3022d6(0x8b)),L=require(_0x3022d6(0xea)),_=require(_0x3022d6(0x31d)),v=require(_0x3022d6(0x2c6)),E=require(_0x3022d6(0x1cf)),P=require(_0x3022d6(0x417)),U=require('@univerjs/network'),A=require(_0x3022d6(0x453)),b=require(_0x3022d6(0x214)),Ke=require('@univerjs/engine-formula'),xe=require(_0x3022d6(0x8f)),J=require(_0x3022d6(0x294)),y=require('react'),kt=require(_0x3022d6(0x7e)),Bt=require(_0x3022d6(0x23c)),ct=_0x3022d6(0x351),Vt=_0x3022d6(0x45f),lt=_0x3022d6(0xcf),ht=_0x3022d6(0x445),Wt=0x7d0,_t=_0x3022d6(0x3df),Ft=_0x3022d6(0x1e3),ut=_0x3022d6(0x29a),Gt=0x7530,He='HEARTBEAT_TIMEOUT',dt=0x2710,Yt=_0x3022d6(0x3b7),Kt=0x4e20,Xt=_0x3022d6(0x451),qt=0x3,St=_0x3022d6(0x15f),zt=0x3e8,vt=_0x3022d6(0x1ba),Jt=_0x3022d6(0x458),mt='LOGIN_URL_KEY',Zt=_0x3022d6(0x3c7);var gt=(_0x40fb7e=>(_0x40fb7e[_0x40fb7e[_0x3022d6(0x2fc)]=0x0]='UNDEFINED',_0x40fb7e[_0x40fb7e['OK']=0x1]='OK',_0x40fb7e[_0x40fb7e[_0x3022d6(0xba)]=0x2]='INTERNAL_ERROR',_0x40fb7e[_0x40fb7e['PERMISSION_DENIED']=0x3]=_0x3022d6(0x1a9),_0x40fb7e[_0x40fb7e[_0x3022d6(0x3e8)]=0x4]=_0x3022d6(0x3e8),_0x40fb7e[_0x40fb7e[_0x3022d6(0x18c)]=0x5]=_0x3022d6(0x18c),_0x40fb7e[_0x40fb7e[_0x3022d6(0x466)]=0x6]=_0x3022d6(0x466),_0x40fb7e[_0x40fb7e['INVALID_ARGUMENT']=0x7]=_0x3022d6(0x1bf),_0x40fb7e[_0x40fb7e[_0x3022d6(0x2a0)]=0x8]=_0x3022d6(0x2a0),_0x40fb7e[_0x40fb7e[_0x3022d6(0x24b)]=0x9]=_0x3022d6(0x24b),_0x40fb7e[_0x40fb7e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x3022d6(0x105),_0x40fb7e[_0x40fb7e[_0x3022d6(0x1eb)]=0x1771]=_0x3022d6(0x1eb),_0x40fb7e[_0x40fb7e[_0x3022d6(0x428)]=0x1772]=_0x3022d6(0x428),_0x40fb7e[_0x40fb7e[_0x3022d6(0x207)]=0x1b59]=_0x3022d6(0x207),_0x40fb7e[_0x40fb7e[_0x3022d6(0x3da)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x40fb7e[_0x40fb7e[_0x3022d6(0x340)]=0x1b5b]=_0x3022d6(0x340),_0x40fb7e[_0x40fb7e[_0x3022d6(0xd0)]=0x1b5c]=_0x3022d6(0xd0),_0x40fb7e[_0x40fb7e['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3022d6(0x2aa),_0x40fb7e[_0x40fb7e[_0x3022d6(0x91)]=0x2329]=_0x3022d6(0x91),_0x40fb7e[_0x40fb7e[_0x3022d6(0x85)]=0x232a]=_0x3022d6(0x85),_0x40fb7e[_0x40fb7e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3022d6(0x1b9),_0x40fb7e[_0x40fb7e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3022d6(0x1b8),_0x40fb7e[_0x40fb7e[_0x3022d6(0x169)]=0x232d]=_0x3022d6(0x169),_0x40fb7e[_0x40fb7e[_0x3022d6(0x33b)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x40fb7e[_0x40fb7e[_0x3022d6(0x212)]=0x2712]=_0x3022d6(0x212),_0x40fb7e[_0x40fb7e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x3022d6(0x2ef),_0x40fb7e[_0x40fb7e[_0x3022d6(0x1be)]=0x2714]=_0x3022d6(0x1be),_0x40fb7e[_0x40fb7e[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x40fb7e))(gt||{}),j=(_0x4d4b84=>(_0x4d4b84[_0x4d4b84[_0x3022d6(0x380)]=0x0]=_0x3022d6(0x380),_0x4d4b84[_0x4d4b84[_0x3022d6(0x237)]=0x1]=_0x3022d6(0x237),_0x4d4b84[_0x4d4b84['UNIVER_SHEET']=0x2]=_0x3022d6(0x2c0),_0x4d4b84[_0x4d4b84[_0x3022d6(0x16c)]=0x3]=_0x3022d6(0x16c),_0x4d4b84[_0x4d4b84[_0x3022d6(0x413)]=0x4]=_0x3022d6(0x413),_0x4d4b84[_0x4d4b84['UNRECOGNIZED']=-0x1]=_0x3022d6(0x322),_0x4d4b84))(j||{}),T=(_0x263be1=>(_0x263be1[_0x263be1[_0x3022d6(0x349)]=0x0]=_0x3022d6(0x349),_0x263be1[_0x263be1[_0x3022d6(0x24a)]=0x1]='HELLO',_0x263be1[_0x263be1[_0x3022d6(0x157)]=0x2]=_0x3022d6(0x157),_0x263be1[_0x263be1['LEAVE']=0x3]=_0x3022d6(0xdc),_0x263be1[_0x263be1[_0x3022d6(0x145)]=0x4]=_0x3022d6(0x145),_0x263be1[_0x263be1[_0x3022d6(0x462)]=0x5]=_0x3022d6(0x462),_0x263be1[_0x263be1[_0x3022d6(0x40c)]=0x6]='RECV',_0x263be1[_0x263be1[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x263be1))(T||{}),ke=(_0x2b0903=>(_0x2b0903[_0x2b0903[_0x3022d6(0x249)]=0x0]='UNKNOWN_CODE',_0x2b0903[_0x2b0903['OK']=0x1]='OK',_0x2b0903[_0x2b0903['FAIL']=0x2]=_0x3022d6(0x2ff),_0x2b0903[_0x2b0903[_0x3022d6(0x322)]=-0x1]=_0x3022d6(0x322),_0x2b0903))(ke||{}),ft=(_0x23a8bb=>(_0x23a8bb[_0x23a8bb[_0x3022d6(0x357)]=0x0]=_0x3022d6(0x357),_0x23a8bb[_0x23a8bb['HttpImport']=0x1]=_0x3022d6(0x3fb),_0x23a8bb[_0x23a8bb[_0x3022d6(0x355)]=0x2]=_0x3022d6(0x355),_0x23a8bb[_0x23a8bb[_0x3022d6(0x449)]=0x3]=_0x3022d6(0x449),_0x23a8bb[_0x23a8bb[_0x3022d6(0x23a)]=0x4]='UnitSnapshot',_0x23a8bb[_0x23a8bb[_0x3022d6(0x322)]=-0x1]='UNRECOGNIZED',_0x23a8bb))(ft||{}),Qt=Object[_0x3022d6(0x131)],es=Object[_0x3022d6(0x2b4)],ts=(_0x4211d1,_0x380bb5,_0x1bcdc6,_0x4178f2)=>{const _0x18c44f=_0x3022d6;for(var _0x22f674=_0x4178f2>0x1?void 0x0:_0x4178f2?es(_0x380bb5,_0x1bcdc6):_0x380bb5,_0x19dad2=_0x4211d1[_0x18c44f(0x2ce)]-0x1,_0x445e22;_0x19dad2>=0x0;_0x19dad2--)(_0x445e22=_0x4211d1[_0x19dad2])&&(_0x22f674=(_0x4178f2?_0x445e22(_0x380bb5,_0x1bcdc6,_0x22f674):_0x445e22(_0x22f674))||_0x22f674);return _0x4178f2&&_0x22f674&&Qt(_0x380bb5,_0x1bcdc6,_0x22f674),_0x22f674;},Xe=(_0x2dfffe,_0x5d368e)=>(_0x1bcd98,_0x221df2)=>_0x5d368e(_0x1bcd98,_0x221df2,_0x2dfffe);let Y=class extends o[_0x3022d6(0x1c9)]{constructor(_0x1ee660,_0x16a4c7){const _0x4d57a9=_0x3022d6;super(),u(this,_0x4d57a9(0x350),new Map()),(this[_0x4d57a9(0x17c)]=_0x1ee660,this['_userManagerService']=_0x16a4c7,this[_0x4d57a9(0x14a)](o[_0x4d57a9(0x24c)](v[_0x4d57a9(0xc5)](this[_0x4d57a9(0x17c)]['getTypeOfUnitDisposed$'](o[_0x4d57a9(0x23f)][_0x4d57a9(0x2c0)])['pipe'](E[_0x4d57a9(0x317)](_0x3b1a4b=>_0x3b1a4b['getUnitId']())),this[_0x4d57a9(0x17c)][_0x4d57a9(0x3ae)](o[_0x4d57a9(0x23f)][_0x4d57a9(0x237)])['pipe'](E[_0x4d57a9(0x317)](_0x21dfe9=>_0x21dfe9[_0x4d57a9(0x29c)]())),this['_univerInstanceService'][_0x4d57a9(0x3ae)](o[_0x4d57a9(0x23f)]['UNIVER_SLIDE'])['pipe'](E[_0x4d57a9(0x317)](_0x5264ca=>_0x5264ca['getUnitId']())))['subscribe'](_0x37c363=>this[_0x4d57a9(0x97)](_0x37c363)))));}[_0x3022d6(0x20e)](_0x4a4096){const _0x1bedcf=_0x3022d6;this['_userManagerService'][_0x1bedcf(0x20e)](_0x4a4096);}[_0x3022d6(0x129)](){const _0x340c7d=_0x3022d6;return this['_userManagerService'][_0x340c7d(0x129)]();}[_0x3022d6(0x165)](_0x3d1db6,_0x58e2ec){const _0x197f19=_0x3022d6;let _0xf181b7=this[_0x197f19(0x350)]['get'](_0x3d1db6);_0xf181b7||(_0xf181b7=new ss(),this[_0x197f19(0x350)][_0x197f19(0x182)](_0x3d1db6,_0xf181b7)),_0xf181b7[_0x197f19(0x165)](_0x58e2ec);}['removeMember'](_0x58f775,_0x560396){const _0x47e57c=_0x3022d6,_0x2172e2=this['_roomMembers'][_0x47e57c(0x84)](_0x58f775);_0x2172e2&&_0x2172e2[_0x47e57c(0x25d)](_0x560396);}['getRoom'](_0x363ec9){const _0xd6f08=_0x3022d6;return this[_0xd6f08(0x350)][_0xd6f08(0x84)](_0x363ec9);}[_0x3022d6(0x18f)](_0x4c13cc,_0xaf5f52){const _0x416d16=_0x3022d6,_0x46036a=this[_0x416d16(0x350)]['get'](_0x4c13cc);if(_0x46036a)return _0x46036a[_0x416d16(0x18f)](_0xaf5f52);}['_removeRoom'](_0x201d3e){const _0x180049=_0x3022d6,_0x6d81e4=this['_roomMembers']['get'](_0x201d3e);_0x6d81e4&&(_0x6d81e4[_0x180049(0x147)](),this[_0x180049(0x350)][_0x180049(0x1af)](_0x201d3e));}[_0x3022d6(0x147)](){const _0x125083=_0x3022d6;this[_0x125083(0x350)][_0x125083(0x3d3)](_0x10a089=>_0x10a089['dispose']()),this[_0x125083(0x350)][_0x125083(0xe4)]();}};Y=ts([Xe(0x0,o[_0x3022d6(0xb8)]),Xe(0x1,o['Inject'](o[_0x3022d6(0x168)]))],Y);class ss extends o[_0x3022d6(0x1c9)]{constructor(){const _0x38be72=_0x3022d6;super(...arguments),u(this,_0x38be72(0x400),new Map());}[_0x3022d6(0x147)](){const _0x52b467=_0x3022d6;this[_0x52b467(0x400)]['clear']();}[_0x3022d6(0x165)](_0x252ca8){const _0x281af3=_0x3022d6;this['_members']['set'](_0x252ca8[_0x281af3(0x36f)],_0x252ca8);}['removeMember'](_0x4f3a18){const _0x5a191c=_0x3022d6;this[_0x5a191c(0x400)][_0x5a191c(0x1af)](_0x4f3a18);}[_0x3022d6(0x18f)](_0x26bff1){const _0xd2bc34=_0x3022d6;return this[_0xd2bc34(0x400)][_0xd2bc34(0x84)](_0x26bff1);}}function It(_0x286f72){const _0x2d149e=_0x3022d6;var _0x283380,_0x502022,_0x113967,_0x4853f6;const _0x2c21c7=_0x286f72[_0x2d149e(0x2be)],_0x40d301=JSON[_0x2d149e(0x2ab)](_0x2c21c7);switch(_0x40d301[_0x2d149e(0x27b)]){case T[_0x2d149e(0x462)]:case T[_0x2d149e(0x24a)]:{const _0xae97b9=_0x40d301['infoRsp'];return{..._0x40d301,'data':_0xae97b9,'cmd':_0x40d301['cmd']};}case T[_0x2d149e(0x157)]:{const _0x77d3d6=_0x40d301['joinRsp'];return{..._0x40d301,'data':_0x77d3d6,'cmd':_0x40d301[_0x2d149e(0x27b)]};}case T[_0x2d149e(0x40c)]:{const _0x4c3868=_0x40d301[_0x2d149e(0x1dd)];switch(_0x4c3868[_0x2d149e(0x31c)]){case _['CollaborationEvent']['PERMISSION_REJ']:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x283380=_0x4c3868[_0x2d149e(0xf7)])==null?void 0x0:_0x283380['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x420)]:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x502022=_0x4c3868[_0x2d149e(0x1a2)])==null?void 0x0:_0x502022['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['NEW_CHANGESETS']:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x113967=_0x4c3868[_0x2d149e(0x40a)])==null?void 0x0:_0x113967['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x459)]:return{..._0x40d301,'data':{..._0x4c3868,'data':(_0x4853f6=_0x4c3868[_0x2d149e(0x1e2)])==null?void 0x0:_0x4853f6['cs']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x426)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x125)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['USERS_ENTER']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x345)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['USERS_LEAVE']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x154)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x179)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21a)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x2b3)]:case _[_0x2d149e(0x26c)]['LIVESHARE_OPERATION']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x284)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x3a9)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21a)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _['CollaborationEvent'][_0x2d149e(0x384)]:return{..._0x40d301,'data':_0x4c3868,'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)][_0x2d149e(0x2bd)]:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x21f)]},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['UPDATE_PERMISSION_OBJ']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868['updatePermissionObjEvent']},'cmd':_0x40d301[_0x2d149e(0x27b)]};case _[_0x2d149e(0x26c)]['SHOULD_CLOSE_CONN']:return{..._0x40d301,'data':{..._0x4c3868,'data':_0x4c3868[_0x2d149e(0x236)]},'cmd':_0x40d301['cmd']};default:return _0x40d301;}}default:return _0x40d301;}}function pt(_0x2fe806){const _0xadf2ba=_0x3022d6;switch(_0x2fe806[_0xadf2ba(0x27b)]){case T[_0xadf2ba(0x462)]:case T[_0xadf2ba(0x24a)]:return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806['routeKey']});case T[_0xadf2ba(0x145)]:{let _0x9d2086;switch(_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x31c)]){case _['CollaborationEvent']['UPDATE_CURSOR']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)]['UPDATE_CURSOR'],'updateCursorEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x1b6)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)]['USERS_LEAVE'],'leaveEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0xde)],'joinEvent':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:{_0x9d2086={'eventID':_['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2fe806[_0xadf2ba(0x2be)]['data']};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x176)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x176)],'liveShareOperation':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _[_0xadf2ba(0x26c)]['LIVESHARE_TERMINATE']:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x3a9)],'liveShareTerminate':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x2be)]};break;}case _['CollaborationEvent'][_0xadf2ba(0xd3)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0xd3)],'liveShareRequestHost':_0x2fe806[_0xadf2ba(0x2be)]['data']};break;}case _[_0xadf2ba(0x26c)][_0xadf2ba(0x2b3)]:{_0x9d2086={'eventID':_[_0xadf2ba(0x26c)][_0xadf2ba(0x2b3)]};break;}default:_0x9d2086={'eventID':_0x2fe806[_0xadf2ba(0x2be)][_0xadf2ba(0x31c)]};}return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806[_0xadf2ba(0x372)],'collaMsg':_0x9d2086});}case T[_0xadf2ba(0x157)]:return JSON[_0xadf2ba(0x258)]({'cmd':_0x2fe806[_0xadf2ba(0x27b)],'routeKey':_0x2fe806['routeKey'],'joinReq':_0x2fe806[_0xadf2ba(0x2be)]});case T[_0xadf2ba(0xdc)]:return JSON['stringify']({'cmd':_0x2fe806['cmd'],'routeKey':_0x2fe806[_0xadf2ba(0x372)],'leaveReq':_0x2fe806[_0xadf2ba(0x2be)]});default:throw new Error(_0xadf2ba(0x300));}}var is=Object['defineProperty'],ns=Object['getOwnPropertyDescriptor'],rs=(_0x295300,_0x25a473,_0x36e9ea,_0x1b5657)=>{const _0x16ebe8=_0x3022d6;for(var _0xbd7ab1=_0x1b5657>0x1?void 0x0:_0x1b5657?ns(_0x25a473,_0x36e9ea):_0x25a473,_0x4a4670=_0x295300[_0x16ebe8(0x2ce)]-0x1,_0x21683f;_0x4a4670>=0x0;_0x4a4670--)(_0x21683f=_0x295300[_0x4a4670])&&(_0xbd7ab1=(_0x1b5657?_0x21683f(_0x25a473,_0x36e9ea,_0xbd7ab1):_0x21683f(_0xbd7ab1))||_0xbd7ab1);return _0x1b5657&&_0xbd7ab1&&is(_0x25a473,_0x36e9ea,_0xbd7ab1),_0xbd7ab1;},se=(_0x235ee3,_0x5794ac)=>(_0x37b5b2,_0x2b4bff)=>_0x5794ac(_0x37b5b2,_0x2b4bff,_0x235ee3);const Be=o[_0x3022d6(0x2f4)](_0x3022d6(0x28a));function os(_0x5f5b4a,_0x1cfdff,_0x1bc97b){const _0xe015b0=_0x3022d6;return _0x5f5b4a+'/'+_0x1cfdff+_0xe015b0(0x3b5)+_0x1bc97b+_0xe015b0(0x454);}exports[_0x3022d6(0x3b0)]=class{constructor(_0x53e780,_0x2b38ba,_0x2c78eb,_0x22912d,_0x55105d){const _0x958d61=_0x3022d6;this[_0x958d61(0x2ae)]=_0x53e780,this[_0x958d61(0x200)]=_0x2b38ba,this[_0x958d61(0xee)]=_0x2c78eb,this[_0x958d61(0x38b)]=_0x22912d,this[_0x958d61(0x307)]=_0x55105d;}[_0x3022d6(0x112)](_0x4ab63f){const _0x225098=_0x3022d6,_0x2c1a0b=this[_0x225098(0x200)][_0x225098(0x112)](_0x4ab63f);if(!_0x2c1a0b)throw new Error(_0x225098(0x11e));const _0x2c3c6f=new o[(_0x225098(0x1fc))](),_0x569ac8=new v[(_0x225098(0x21b))]();_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](_0x2c1a0b[_0x225098(0x2a8)][_0x225098(0x265)](_0x3e1b2f=>_0x569ac8[_0x225098(0x116)](_0x3e1b2f)))),_0x2c3c6f['add'](o[_0x225098(0x24c)](()=>_0x569ac8[_0x225098(0x19e)]()));const _0x147b5b=new v[(_0x225098(0x21b))]();_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](_0x2c1a0b['error$'][_0x225098(0x265)](_0x5d2187=>_0x147b5b[_0x225098(0x116)](_0x5d2187)))),_0x2c3c6f[_0x225098(0xe1)](o[_0x225098(0x24c)](()=>_0x147b5b['complete']()));const _0x81b421=new v[(_0x225098(0x21b))]();_0x2c3c6f['add'](o[_0x225098(0x24c)](_0x2c1a0b[_0x225098(0x40b)][_0x225098(0x265)](_0x486390=>{const _0x54e024=_0x225098,_0x7511d0=It(_0x486390);_0x81b421[_0x54e024(0x116)](_0x7511d0);}))),_0x2c3c6f['add'](o[_0x225098(0x24c)](()=>_0x81b421[_0x225098(0x19e)]()));const _0x47934d=()=>{const _0x32310f=_0x225098;_0x147b5b[_0x32310f(0x116)](new Event(_0x32310f(0x366))),_0x569ac8['next'](new CloseEvent(_0x32310f(0x366))),_0xd7e53c[_0x32310f(0x22c)]();},_0xd7e53c={'memberID':'','close$':_0x569ac8[_0x225098(0x295)](),'error$':_0x147b5b[_0x225098(0x295)](),'open$':_0x2c1a0b[_0x225098(0x25b)],'message$':_0x81b421[_0x225098(0x295)](),'send':_0x44ff56=>{const _0x295cd7=_0x225098;if(_0x44ff56[_0x295cd7(0x27b)]===T[_0x295cd7(0x145)]){if(_0x44ff56[_0x295cd7(0x2be)][_0x295cd7(0x31c)]===_[_0x295cd7(0x26c)][_0x295cd7(0x37d)]){this[_0x295cd7(0x438)](_0xd7e53c,_0x44ff56[_0x295cd7(0x2be)])[_0x295cd7(0x104)](_0x3b160a=>{const _0x37f2c9=_0x295cd7;this[_0x37f2c9(0x38b)][_0x37f2c9(0x404)](_0x3b160a),_0x47934d();});return;}if(_0x44ff56['data']['eventID']===_[_0x295cd7(0x26c)][_0x295cd7(0x44f)]){const _0x21e818=_0x44ff56[_0x295cd7(0x2be)];this['_fetchMissChangesets'](_0x21e818)[_0x295cd7(0x156)](_0xb08435=>{const _0x4fe6de=_0x295cd7;_0x81b421[_0x4fe6de(0x116)]({'cmd':T[_0x4fe6de(0x40c)],'code':ke['OK'],'routeKey':_0x21e818[_0x4fe6de(0x2be)][_0x4fe6de(0x367)],'routeType':'','data':{'eventID':_[_0x4fe6de(0x26c)][_0x4fe6de(0x127)],'data':{'changesets':_0xb08435}}});})['catch'](_0x2666bd=>{const _0x120002=_0x295cd7;this[_0x120002(0x38b)][_0x120002(0x404)](_0x2666bd),_0x47934d();});return;}}_0x2c1a0b['send'](pt(_0x44ff56));},'close':()=>{const _0x482e80=_0x225098;_0x2c1a0b['close'](),_0x2c3c6f[_0x482e80(0x147)]();}};return _0xd7e53c;}async['_submitChangeset'](_0xc6c9c9,_0x52ee93){const _0x3aa633=_0x3022d6;var _0x27b936;const {unitType:_0x25939e,unitID:_0x37d525,changeset:_0x404bd9}=_0x52ee93[_0x3aa633(0x2be)],_0xf0966e={'unitID':_0x37d525,'memberID':_0xc6c9c9['memberID'],'type':_0x25939e,'changeset':_['parseChangesetToProtocol'](_0x404bd9)},_0x16a6b0=os((_0x27b936=this[_0x3aa633(0xee)][_0x3aa633(0x1bd)](vt))!=null?_0x27b936:Jt,_0x25939e,_0x37d525);try{await this[_0x3aa633(0x2ae)][_0x3aa633(0x45d)](_0x16a6b0,{'body':_0xf0966e});}catch(_0x57010d){throw this[_0x3aa633(0x38b)][_0x3aa633(0x404)]('[CollaborationSession]',_0x3aa633(0xc3)),_0x57010d;}}async[_0x3022d6(0xf6)](_0x56ee5b){const _0x3eac13=_0x3022d6,{unitID:_0x57f563,from:_0x492027,to:_0x440964,unitType:_0x288ce9}=_0x56ee5b[_0x3eac13(0x2be)];return(await this[_0x3eac13(0x307)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x57f563,'type':_0x288ce9,'from':_0x492027,'to':_0x440964}))[_0x3eac13(0x183)];}},exports[_0x3022d6(0x3b0)]=rs([se(0x0,o['Inject'](U[_0x3022d6(0x37e)])),se(0x1,o[_0x3022d6(0x291)](U[_0x3022d6(0x2e8)])),se(0x2,o[_0x3022d6(0x3be)]),se(0x3,o['ILogService']),se(0x4,o[_0x3022d6(0x143)])],exports['CollaborationSocketService']);class Ve{constructor(){const _0x3709e8=_0x3022d6;u(this,'_commentUpdate$',new v['Subject']()),u(this,_0x3709e8(0x45b),this[_0x3709e8(0x394)][_0x3709e8(0x295)]());}['onCommentUpdate'](_0x188d74){const _0x3d9c4c=_0x3022d6;this[_0x3d9c4c(0x394)][_0x3d9c4c(0x116)](_0x188d74);}}var as=Object[_0x3022d6(0x131)],cs=Object[_0x3022d6(0x2b4)],Et=(_0x150305,_0x30c649,_0x3f30fe,_0x47ffd1)=>{for(var _0x3ab926=_0x47ffd1>0x1?void 0x0:_0x47ffd1?cs(_0x30c649,_0x3f30fe):_0x30c649,_0x5a92b2=_0x150305['length']-0x1,_0x3093b9;_0x5a92b2>=0x0;_0x5a92b2--)(_0x3093b9=_0x150305[_0x5a92b2])&&(_0x3ab926=(_0x47ffd1?_0x3093b9(_0x30c649,_0x3f30fe,_0x3ab926):_0x3093b9(_0x3ab926))||_0x3ab926);return _0x47ffd1&&_0x3ab926&&as(_0x30c649,_0x3f30fe,_0x3ab926),_0x3ab926;},M=(_0x1af416,_0x7efeec)=>(_0x23bb22,_0xc105c6)=>_0x7efeec(_0x23bb22,_0xc105c6,_0x1af416),G=(_0x2e474b=>(_0x2e474b[_0x2e474b[_0x3022d6(0x1ab)]=0x0]=_0x3022d6(0x1ab),_0x2e474b[_0x2e474b[_0x3022d6(0x297)]=0x1]=_0x3022d6(0x297),_0x2e474b[_0x2e474b['OFFLINE']=0x2]=_0x3022d6(0x316),_0x2e474b[_0x2e474b[_0x3022d6(0x194)]=0x3]=_0x3022d6(0x194),_0x2e474b))(G||{});exports[_0x3022d6(0x343)]=class extends o['RxDisposable']{constructor(_0x4bbe2b,_0x55d84d,_0x26d98e,_0x2ef77d,_0x34108c,_0x1aaf81,_0x22bad2,_0x57170d,_0xe241c7){const _0x3efc7d=_0x3022d6;super(),u(this,_0x3efc7d(0x283),new v[(_0x3efc7d(0x141))](0x0)),u(this,_0x3efc7d(0x370),this[_0x3efc7d(0x283)]['asObservable']()),u(this,'_event$',new v['Subject']()),u(this,'event$',this[_0x3efc7d(0x17b)][_0x3efc7d(0x295)]()),u(this,_0x3efc7d(0x38d)),u(this,_0x3efc7d(0x3c3)),u(this,_0x3efc7d(0xb2)),(this[_0x3efc7d(0x328)]=_0x4bbe2b,this['_logService']=_0x26d98e,this[_0x3efc7d(0x2ed)]=_0x2ef77d,this['_messageService']=_0x34108c,this[_0x3efc7d(0xee)]=_0x1aaf81,this[_0x3efc7d(0x3b1)]=_0x22bad2,this[_0x3efc7d(0x16b)]=_0x57170d,this[_0x3efc7d(0x14f)]=_0xe241c7,_0x55d84d[_0x3efc7d(0x23e)](E[_0x3efc7d(0xc7)](this['dispose$']))[_0x3efc7d(0x265)](_0x424d0f=>{const _0x3d0031=_0x3efc7d;var _0x1a847c;typeof _0x424d0f>'u'||(this[_0x3d0031(0x38d)]=_0x424d0f,_0x424d0f?(this[_0x3d0031(0x320)](_0x424d0f),this[_0x3d0031(0x3c3)]=this[_0x3d0031(0x38d)][_0x3d0031(0x40b)][_0x3d0031(0x265)](_0xec03b7=>{const _0x583b5d=_0x3d0031;_0xec03b7['routeKey']===this[_0x583b5d(0x328)]&&this['_onCombEvent'](_0xec03b7);})):(this[_0x3d0031(0x283)][_0x3d0031(0x116)](0x2),(_0x1a847c=this[_0x3d0031(0x3c3)])==null||_0x1a847c[_0x3d0031(0x2b9)](),this[_0x3d0031(0x3c3)]=null));}),this[_0x3efc7d(0x14a)](this['_beforeCloseService'][_0x3efc7d(0x465)](()=>{const _0xee932b=_0x3efc7d;var _0x25b827;(_0x25b827=this[_0xee932b(0x38d)])==null||_0x25b827[_0xee932b(0x362)]({'cmd':T[_0xee932b(0xdc)],'data':{'roomID':this[_0xee932b(0x328)]}});})));}get['sessionStatus'](){const _0x27898d=_0x3022d6;return this[_0x27898d(0x283)][_0x27898d(0x386)]();}[_0x3022d6(0x3f2)](){const _0x5a1856=_0x3022d6;var _0x270fc7,_0x253f42;return(_0x253f42=(_0x270fc7=this[_0x5a1856(0x38d)])==null?void 0x0:_0x270fc7[_0x5a1856(0x36f)])!=null?_0x253f42:null;}['dispose'](){const _0x251fff=_0x3022d6;super[_0x251fff(0x147)](),this[_0x251fff(0x374)]['next'](),this['dispose$']['complete']();}[_0x3022d6(0x22c)](){const _0x3f32ee=_0x3022d6;var _0x5e6c87,_0x348b77;(_0x5e6c87=this[_0x3f32ee(0x38d)])==null||_0x5e6c87[_0x3f32ee(0x362)]({'cmd':T[_0x3f32ee(0xdc)],'data':{'roomID':this['_unitID']}}),this[_0x3f32ee(0x17b)][_0x3f32ee(0x19e)](),this[_0x3f32ee(0x283)]['complete'](),(_0x348b77=this[_0x3f32ee(0x38d)])==null||_0x348b77[_0x3f32ee(0x22c)](),this[_0x3f32ee(0x147)]();}[_0x3022d6(0x1a4)](_0x2ebd9c){const _0x4b0db9=_0x3022d6;_0x2ebd9c['cmd']===T[_0x4b0db9(0x157)]?this['_onJoinRoomEvent'](_0x2ebd9c):_0x2ebd9c[_0x4b0db9(0x27b)]===T['RECV']&&this[_0x4b0db9(0x268)](_0x2ebd9c);}[_0x3022d6(0x320)](_0x4c0486){const _0x26a4df=_0x3022d6;this['_sessionStatus$'][_0x26a4df(0x116)](0x1),_0x4c0486[_0x26a4df(0x362)]({'cmd':T[_0x26a4df(0x157)],'routeKey':this[_0x26a4df(0x328)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x3022d6(0x93)](_0xc4dc01){const _0x7a3970=_0x3022d6;var _0x313230;if(_0xc4dc01[_0x7a3970(0x2a2)]===ke[_0x7a3970(0x2ff)]){this['_messageService']['show']({'type':Q['MessageType'][_0x7a3970(0x1e0)],'content':this['_localeService']['t'](_0x7a3970(0xa2))}),this[_0x7a3970(0x283)]['next'](0x2);return;}this[_0x7a3970(0x283)][_0x7a3970(0x116)](0x3);const _0xc267a5=(_0x313230=_0xc4dc01[_0x7a3970(0x2be)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x313230[_0x7a3970(0x12d)];_0xc267a5&&_0xc267a5[_0x7a3970(0x3d3)](_0x256952=>this['_memberService'][_0x7a3970(0x165)](this[_0x7a3970(0x328)],_0x256952));}['_onRecvEvent'](_0x4533f2){const _0x5345d8=_0x3022d6;try{const _0x52855c=_0x4533f2[_0x5345d8(0x2be)];switch(_0x52855c[_0x5345d8(0x31c)]){case _[_0x5345d8(0x26c)][_0x5345d8(0xde)]:this[_0x5345d8(0x13c)](_0x52855c),this[_0x5345d8(0x17b)]['next'](_0x52855c);break;case _['CollaborationEvent'][_0x5345d8(0x1b6)]:this[_0x5345d8(0x12b)](_0x52855c),this[_0x5345d8(0x17b)]['next'](_0x52855c);break;case _[_0x5345d8(0x26c)][_0x5345d8(0x420)]:this['_clearCollaborationTimeoutTimer'](),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;case _[_0x5345d8(0x26c)][_0x5345d8(0x384)]:this['_logService']['error'](_0x5345d8(0x92)+JSON[_0x5345d8(0x258)](_0x52855c)),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;case _[_0x5345d8(0x26c)]['COMMENT_UPDATE']:this[_0x5345d8(0x14f)][_0x5345d8(0x1e9)](_0x52855c[_0x5345d8(0x2be)]),this[_0x5345d8(0x17b)][_0x5345d8(0x116)](_0x52855c);break;default:this[_0x5345d8(0x17b)]['next'](_0x52855c);}}catch(_0x704f1f){this['_logService'][_0x5345d8(0x404)](_0x704f1f,_0x4533f2);}}['_onUserJoin'](_0x38bdf0){const _0x8ca08e=_0x3022d6;this['_memberService'][_0x8ca08e(0x165)](this[_0x8ca08e(0x328)],_0x38bdf0[_0x8ca08e(0x2be)]);}[_0x3022d6(0x12b)](_0x226d4d){const _0x2de287=_0x3022d6;this[_0x2de287(0x16b)]['removeMember'](this[_0x2de287(0x328)],_0x226d4d[_0x2de287(0x2be)]['memberID']);}async[_0x3022d6(0x362)](_0x3fe405,_0x5172f6){const _0x5b24dc=_0x3022d6;if(this[_0x5b24dc(0x306)]!==0x3||!this[_0x5b24dc(0x38d)])throw new Error(_0x5b24dc(0x187));try{_0x3fe405['eventID']===_[_0x5b24dc(0x26c)][_0x5b24dc(0x310)]&&this[_0x5b24dc(0x2de)](),this[_0x5b24dc(0x38d)][_0x5b24dc(0x362)]({'cmd':T[_0x5b24dc(0x145)],'routeKey':_0x5172f6,'routeType':'','data':_0x3fe405});}catch(_0x2e9d16){this[_0x5b24dc(0x38b)][_0x5b24dc(0x404)](_0x2e9d16);}}[_0x3022d6(0x2de)](){const _0x4937cb=_0x3022d6;var _0x559ef4;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x174059=_0xbc10;this[_0x174059(0xb2)]=null,this[_0x174059(0x38e)][_0x174059(0x1d3)]({'type':Q[_0x174059(0x1e5)][_0x174059(0x19c)],'content':this[_0x174059(0x3b1)]['t'](_0x174059(0x1d4))});},(_0x559ef4=this[_0x4937cb(0xee)][_0x4937cb(0x1bd)](He))!=null?_0x559ef4:dt);}['_clearCollaborationTimeoutTimer'](){const _0x3ddca7=_0x3022d6;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x3ddca7(0xb2)]),this[_0x3ddca7(0xb2)]=null);}},exports['CollaborationSession']=Et([M(0x2,o[_0x3022d6(0x22f)]),M(0x3,L[_0x3022d6(0x3db)]),M(0x4,L[_0x3022d6(0xaf)]),M(0x5,o[_0x3022d6(0x3be)]),M(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),M(0x7,o[_0x3022d6(0x291)](Y)),M(0x8,o[_0x3022d6(0x291)](Ve))],exports['CollaborationSession']),exports[_0x3022d6(0x2ee)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x50311e,_0x496ed1,_0x277eb6,_0x3b147f,_0x296ed7,_0x38d5cb){const _0x498b88=_0x3022d6;super(),u(this,'_socket$',new v[(_0x498b88(0x141))](void 0x0)),u(this,_0x498b88(0xac),new Map()),u(this,_0x498b88(0x30d),new v['BehaviorSubject'](0x0)),u(this,_0x498b88(0x358),this[_0x498b88(0x30d)]['asObservable']()),u(this,_0x498b88(0x219),!0x1),u(this,_0x498b88(0x318)),u(this,_0x498b88(0xae)),u(this,_0x498b88(0x387)),u(this,'_retryCount',0x0),(this[_0x498b88(0x123)]=_0x50311e,this[_0x498b88(0x3b1)]=_0x496ed1,this[_0x498b88(0x38e)]=_0x277eb6,this[_0x498b88(0x38b)]=_0x3b147f,this[_0x498b88(0xee)]=_0x296ed7,this[_0x498b88(0x19f)]=_0x38d5cb);}get[_0x3022d6(0x38d)](){const _0x481f7e=_0x3022d6;return this[_0x481f7e(0x2e4)]['getValue']();}['dispose'](){const _0x3c2a9a=_0x3022d6;super[_0x3c2a9a(0x147)](),this[_0x3c2a9a(0xac)][_0x3c2a9a(0x3d3)](_0x596b0c=>_0x596b0c[_0x3c2a9a(0x147)]()),this[_0x3c2a9a(0xac)]['clear'](),this['_status$'][_0x3c2a9a(0x19e)]();}async[_0x3022d6(0x3b2)](_0x535be5){const _0x1a3942=_0x3022d6;if(this[_0x1a3942(0xac)][_0x1a3942(0x151)](_0x535be5))return this['_sessions'][_0x1a3942(0x84)](_0x535be5);this['_tryEnsureSocket']();const _0x1bab06=this[_0x1a3942(0x123)][_0x1a3942(0x89)](exports['CollaborationSession'],_0x535be5,this['_socket$']['asObservable']());return this[_0x1a3942(0xac)][_0x1a3942(0x182)](_0x535be5,_0x1bab06),_0x1bab06;}[_0x3022d6(0x186)](_0x392676){const _0x508515=_0x3022d6;var _0x5e4bcd;const _0x100b2f=this[_0x508515(0xac)]['get'](_0x392676);_0x100b2f&&(this[_0x508515(0xac)][_0x508515(0x1af)](_0x392676),_0x100b2f[_0x508515(0x22c)]()),this[_0x508515(0xac)][_0x508515(0x2ca)]||(_0x5e4bcd=this['_socket'])==null||_0x5e4bcd['close']();}['_createSocket'](){const _0x41ae52=_0x3022d6;var _0x32863b;const _0x597158=(_0x32863b=this[_0x41ae52(0xee)]['getConfig'](_t))!=null?_0x32863b:Ft;return this[_0x41ae52(0x19f)][_0x41ae52(0x112)](_0x597158);}['_tryEnsureSocket'](){const _0x1fe93e=_0x3022d6;try{const _0x2bb311=this[_0x1fe93e(0x20a)]();if(_0x2bb311){const _0x48c6fc=_0x2bb311[_0x1fe93e(0x362)];_0x2bb311[_0x1fe93e(0x362)]=_0x40ee79=>(this['_rescheduleHeartbeatEvent'](),_0x48c6fc[_0x1fe93e(0xd6)](_0x2bb311,[_0x40ee79])),_0x2bb311[_0x1fe93e(0x40b)][_0x1fe93e(0x265)](_0x2ba1ba=>this[_0x1fe93e(0x2eb)](_0x2bb311,_0x2ba1ba)),_0x2bb311['error$'][_0x1fe93e(0x23e)](E[_0x1fe93e(0x2e9)](0x1))[_0x1fe93e(0x265)](_0x1a1bda=>this['_logService'][_0x1fe93e(0x404)]('[CollaborationSessionService]:\x20socket\x20error',_0x1a1bda)),_0x2bb311[_0x1fe93e(0x25b)][_0x1fe93e(0x23e)](E[_0x1fe93e(0x2e9)](0x1))[_0x1fe93e(0x265)](()=>{const _0x3cda27=_0x1fe93e;this[_0x3cda27(0x2b2)](_0x2bb311);}),_0x2bb311[_0x1fe93e(0x2a8)][_0x1fe93e(0x23e)](E['take'](0x1))[_0x1fe93e(0x265)](_0x1b98cc=>{const _0x4115ec=_0x1fe93e;this[_0x4115ec(0x38b)][_0x4115ec(0xf9)]('[CollaborationSessionService]',_0x4115ec(0x22e),_0x1b98cc),this[_0x4115ec(0x121)]();});}}catch(_0x38f43d){this['_logService']['error'](_0x38f43d),this['_onConnectionFailed']();}}[_0x3022d6(0x2b2)](_0x203391){const _0x29c4e2=_0x3022d6;this[_0x29c4e2(0x38b)]['debug'](_0x29c4e2(0x359),_0x29c4e2(0x108)),_0x203391[_0x29c4e2(0x362)]({'cmd':T['HELLO']}),this[_0x29c4e2(0x193)]();}[_0x3022d6(0x121)](){const _0x16da08=_0x3022d6;var _0x14b16f;this['_status$'][_0x16da08(0x116)](0x2),this[_0x16da08(0x2e4)][_0x16da08(0x116)](null),this[_0x16da08(0x398)](),this[_0x16da08(0xe9)](),this[_0x16da08(0x219)]=!0x1,this[_0x16da08(0x452)]<((_0x14b16f=this['_configService'][_0x16da08(0x1bd)](Xt))!=null?_0x14b16f:qt)?(this[_0x16da08(0xbc)](this['_retryCount']),this[_0x16da08(0x452)]+=0x1):this[_0x16da08(0x38e)][_0x16da08(0x1d3)]({'type':Q[_0x16da08(0x1e5)][_0x16da08(0x19c)],'content':this[_0x16da08(0x3b1)]['t'](_0x16da08(0x2c2))});}[_0x3022d6(0xbc)](_0x5debf5){const _0x4bee5c=_0x3022d6;var _0x37fe45;const _0x464395=((_0x37fe45=this['_configService']['getConfig'](Yt))!=null?_0x37fe45:Kt)*0x2**_0x5debf5;this['_messageService'][_0x4bee5c(0x1d3)]({'type':Q[_0x4bee5c(0x1e5)]['Warning'],'content':this[_0x4bee5c(0x3b1)]['t'](_0x4bee5c(0xe0))}),this[_0x4bee5c(0x387)]=setTimeout(()=>{const _0x562a98=_0x4bee5c;this[_0x562a98(0x2c9)](),clearTimeout(this[_0x562a98(0x387)]),this['_retryConnectingTimer']=null;},_0x464395);}[_0x3022d6(0x193)](){const _0x408550=_0x3022d6;var _0x502f46;this[_0x408550(0xe9)](),this[_0x408550(0x318)]=setTimeout(()=>this[_0x408550(0x2a4)](),(_0x502f46=this['_configService'][_0x408550(0x1bd)](ut))!=null?_0x502f46:Gt);}[_0x3022d6(0x2a4)](){const _0x31451d=_0x3022d6;this[_0x31451d(0x38d)]['send']({'cmd':T[_0x31451d(0x462)]}),this[_0x31451d(0x155)]();}[_0x3022d6(0x155)](){const _0xb89689=_0x3022d6;var _0x5cade4;this['_timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](),(_0x5cade4=this[_0xb89689(0xee)][_0xb89689(0x1bd)](He))!=null?_0x5cade4:dt);}[_0x3022d6(0x2eb)](_0x21f316,_0x3b2fe9){const _0x477899=_0x3022d6,{cmd:_0x13c3e4}=_0x3b2fe9;_0x13c3e4===T[_0x477899(0x24a)]&&!this['_socketReady']&&(_0x21f316[_0x477899(0x36f)]=_0x3b2fe9[_0x477899(0x2be)]['memberID'],this[_0x477899(0x2e4)][_0x477899(0x116)](_0x21f316),this[_0x477899(0x30d)]['next'](0x3),this[_0x477899(0x219)]=!0x0),_0x13c3e4===T[_0x477899(0x462)]&&this[_0x477899(0x398)](),this[_0x477899(0x193)]();}[_0x3022d6(0xe9)](){const _0x340d41=_0x3022d6;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x340d41(0x318)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x3ed13c=_0x3022d6;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3ed13c(0xae)]=null);}},exports[_0x3022d6(0x2ee)]=Et([M(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),M(0x1,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),M(0x2,L[_0x3022d6(0xaf)]),M(0x3,o['ILogService']),M(0x4,o[_0x3022d6(0x3be)]),M(0x5,Be)],exports[_0x3022d6(0x2ee)]);var ls=Object['defineProperty'],hs=Object['getOwnPropertyDescriptor'],_s=(_0x5efbe1,_0x33b587,_0x471a65,_0x1008a8)=>{const _0x173ff6=_0x3022d6;for(var _0x192979=_0x1008a8>0x1?void 0x0:_0x1008a8?hs(_0x33b587,_0x471a65):_0x33b587,_0x8b15ae=_0x5efbe1[_0x173ff6(0x2ce)]-0x1,_0xa76f8e;_0x8b15ae>=0x0;_0x8b15ae--)(_0xa76f8e=_0x5efbe1[_0x8b15ae])&&(_0x192979=(_0x1008a8?_0xa76f8e(_0x33b587,_0x471a65,_0x192979):_0xa76f8e(_0x192979))||_0x192979);return _0x1008a8&&_0x192979&&ls(_0x33b587,_0x471a65,_0x192979),_0x192979;},ie=(_0x3eb3e7,_0x8ba7f3)=>(_0x55fd9d,_0x2dac49)=>_0x8ba7f3(_0x55fd9d,_0x2dac49,_0x3eb3e7);exports[_0x3022d6(0x174)]=class extends o['Disposable']{constructor(_0x25935f,_0x332295,_0x8dd6e5,_0x58b954,_0x894b28){const _0x4fb45e=_0x3022d6;super(),u(this,_0x4fb45e(0xdf),new Map()),u(this,_0x4fb45e(0x13d),new Map()),u(this,_0x4fb45e(0x44c),!0x1),(this[_0x4fb45e(0xee)]=_0x25935f,this[_0x4fb45e(0x2df)]=_0x332295,this[_0x4fb45e(0x2ed)]=_0x8dd6e5,this[_0x4fb45e(0x3b1)]=_0x58b954,this[_0x4fb45e(0x254)]=_0x894b28,this[_0x4fb45e(0x299)]());}['disableLocalCache'](){const _0x2f2bfe=_0x3022d6;this[_0x2f2bfe(0x44c)]=!0x0;}['enableLocalCache'](){const _0x4d5b4b=_0x3022d6;this[_0x4d5b4b(0x44c)]=!0x1;}[_0x3022d6(0x147)](){const _0x1ea836=_0x3022d6;this[_0x1ea836(0x2e5)]()[_0x1ea836(0x156)](()=>super[_0x1ea836(0x147)]());}async[_0x3022d6(0x3b8)](_0x2bd7ae){const _0x1b12a9=_0x3022d6;return this['_disabled']?null:this['_localStorageService'][_0x1b12a9(0x1e4)](qe(_0x2bd7ae));}async[_0x3022d6(0x25c)](_0x298dbd,_0x3d9c21){const _0x40ba56=_0x3022d6;return!!this[_0x40ba56(0x2df)][_0x40ba56(0x31f)](_0x298dbd,_0x3d9c21);}[_0x3022d6(0xbb)](_0x1c5bed,_0x4e47c4,_0x4eb31e,_0x1ed609){const _0x1ac5dd=_0x3022d6,_0x57bba6=this[_0x1ac5dd(0x254)][_0x1ac5dd(0x33a)](_0x1c5bed);this[_0x1ac5dd(0xdf)][_0x1ac5dd(0x182)](_0x1c5bed,{'unitID':_0x1c5bed,'type':_0x4e47c4,'awaitingChangeset':_0x4eb31e,'mutations':_0x1ed609,'rev':_0x57bba6}),this[_0x1ac5dd(0x13d)]['has'](_0x1c5bed)||this[_0x1ac5dd(0x192)](_0x1c5bed);}[_0x3022d6(0x192)](_0x3d21af){const _0x3560f6=_0x3022d6,_0x55bcda=this['_getSaveTimeout']();_0x55bcda===0x0?this[_0x3560f6(0x443)](_0x3d21af):this['_saveTaskMap'][_0x3560f6(0x182)](_0x3d21af,setTimeout(()=>this[_0x3560f6(0x443)](_0x3d21af),_0x55bcda));}[_0x3022d6(0x234)](){const _0x3624aa=_0x3022d6;var _0x2cd08e;return(_0x2cd08e=this[_0x3624aa(0xee)]['getConfig'](St))!=null?_0x2cd08e:zt;}[_0x3022d6(0x443)](_0x1f1416){const _0x2f5046=_0x3022d6,_0x56c934=this['_saveTaskMap'][_0x2f5046(0x84)](_0x1f1416);return _0x56c934!==void 0x0&&window[_0x2f5046(0x1b4)](_0x56c934),this[_0x2f5046(0x2df)]['setItem'](qe(_0x1f1416),this[_0x2f5046(0xdf)][_0x2f5046(0x84)](_0x1f1416))[_0x2f5046(0x156)](()=>this[_0x2f5046(0x13d)][_0x2f5046(0x1af)](_0x1f1416));}async[_0x3022d6(0x2e5)](){const _0x5bca9b=_0x3022d6,_0x3eb8b9=[];this['_saveTaskMap'][_0x5bca9b(0x3d3)]((_0x169d8f,_0xd45b4)=>{const _0x2a3477=_0x5bca9b;window['clearTimeout'](_0x169d8f),_0x3eb8b9[_0x2a3477(0x42d)](this[_0x2a3477(0x443)](_0xd45b4)[_0x2a3477(0x156)](()=>{const _0xdcd0b6=_0x2a3477;this[_0xdcd0b6(0x13d)][_0xdcd0b6(0x1af)](_0xd45b4);}));}),await Promise[_0x5bca9b(0x3ac)](_0x3eb8b9);}[_0x3022d6(0x299)](){const _0x2442c7=_0x3022d6;this[_0x2442c7(0x14a)](this['_beforeCloseService'][_0x2442c7(0x31a)](()=>{const _0x407bb9=_0x2442c7;if(this['_saveTaskMap'][_0x407bb9(0x2ca)])return this[_0x407bb9(0x3b1)]['t'](_0x407bb9(0x397));}));}},exports['LocalCacheService']=_s([ie(0x0,o['IConfigService']),ie(0x1,o['ILocalStorageService']),ie(0x2,L[_0x3022d6(0x3db)]),ie(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),ie(0x4,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)]))],exports[_0x3022d6(0x174)]);function qe(_0x2b6b36){const _0x3acedd=_0x3022d6;return _0x3acedd(0x211)+_0x2b6b36;}const pe=o['createIdentifier'](_0x3022d6(0x376));var Ct=(_0x54c139=>(_0x54c139[_0x54c139[_0x3022d6(0x3f7)]=0x0]=_0x3022d6(0x3f7),_0x54c139[_0x54c139[_0x3022d6(0x2e1)]=0x1]=_0x3022d6(0x2e1),_0x54c139))(Ct||{});const ze=0x7530,Je='ACTIVE_UNIT_EVENT_CHANNEL';class us extends o[_0x3022d6(0x1c9)]{constructor(){const _0x42beef=_0x3022d6;super(),u(this,'_id',o[_0x42beef(0x418)][_0x42beef(0x24e)]()),u(this,_0x42beef(0x35e),new Set()),u(this,_0x42beef(0x423),new Map()),u(this,_0x42beef(0x42a),null),u(this,'_clearOtherTimers',new Map()),u(this,_0x42beef(0x175),new Map()),this[_0x42beef(0x11b)]();}[_0x3022d6(0x147)](){const _0x484617=_0x3022d6;super[_0x484617(0x147)](),this[_0x484617(0xa8)][_0x484617(0x3d3)]((_0x3bfe7f,_0x6ed19)=>this[_0x484617(0x334)](_0x6ed19)),this['_heartbeatTimer']&&window[_0x484617(0xcd)](this[_0x484617(0x42a)]);}['getUnitStatus$'](_0x5bdf65){const _0x3ca3d0=_0x3022d6;return this[_0x3ca3d0(0x1bc)](_0x5bdf65)[_0x3ca3d0(0x23e)](v[_0x3ca3d0(0x1fe)]());}[_0x3022d6(0x313)](_0x57679c){const _0x2eeb27=_0x3022d6;this['_selfUnitIDs'][_0x2eeb27(0x2ca)]===0x0&&this[_0x2eeb27(0x261)](),this['_selfUnitIDs'][_0x2eeb27(0xe1)](_0x57679c),this[_0x2eeb27(0xff)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x57679c],'isForwarded':!0x1});}['disposeUnit'](_0x261eb2){const _0x103157=_0x3022d6;this[_0x103157(0x35e)][_0x103157(0x1af)](_0x261eb2),this[_0x103157(0x35e)][_0x103157(0x2ca)]===0x0&&this[_0x103157(0x42a)]&&window[_0x103157(0xcd)](this[_0x103157(0x42a)]);}[_0x3022d6(0x11b)](){const _0x454faf=_0x3022d6;this[_0x454faf(0x14a)](o['toDisposable'](v[_0x454faf(0x163)](window,_0x454faf(0x21d))[_0x454faf(0x265)](_0x37086b=>{const _0xb92c89=_0x454faf;if(_0x37086b[_0xb92c89(0xda)]!==Je||!_0x37086b['newValue'])return;const _0x289d84=JSON[_0xb92c89(0x2ab)](_0x37086b[_0xb92c89(0x3d6)]);this[_0xb92c89(0x119)](_0x289d84);}))),window[_0x454faf(0x29d)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x454faf(0x188)],'unitIDs':Array[_0x454faf(0x39f)](this[_0x454faf(0x35e)])}));}[_0x3022d6(0x119)](_0x1bc7f5){const _0x12ec3a=_0x3022d6;switch(_0x1bc7f5[_0x12ec3a(0x1f3)]){case 0x0:this[_0x12ec3a(0x1d6)](_0x1bc7f5);break;case 0x1:this[_0x12ec3a(0x1db)](_0x1bc7f5);break;case 0x2:this['_handleHeartbeatEvent'](_0x1bc7f5);break;}}[_0x3022d6(0x1d6)](_0xecf1f9){const _0xbd12e2=_0x3022d6,{unitIDs:_0x2ed7d7,memberID:_0xb2ea1a,isForwarded:_0x51026f}=_0xecf1f9;_0x2ed7d7[_0xbd12e2(0x3d3)](_0x197e78=>{const _0x354f90=_0xbd12e2;if(!_0x51026f&&this[_0x354f90(0x423)][_0x354f90(0x151)](_0x197e78)&&this[_0x354f90(0x1bc)](_0x197e78)[_0x354f90(0x116)](0x1),!this[_0x354f90(0x423)][_0x354f90(0x151)](_0x197e78)||!this[_0x354f90(0x423)]['get'](_0x197e78)['has'](_0xb2ea1a)){const _0x480e9a=this['_unitOnClients'][_0x354f90(0x84)](_0x197e78)||new Set();_0x480e9a['add'](_0xb2ea1a),this[_0x354f90(0x423)][_0x354f90(0x182)](_0x197e78,_0x480e9a),this[_0x354f90(0x305)](_0xb2ea1a);}}),_0x51026f||this[_0xbd12e2(0xff)]({'type':0x0,'memberID':this[_0xbd12e2(0x188)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x3022d6(0x305)](_0xb4cefc){const _0x40d92f=_0x3022d6;this[_0x40d92f(0x334)](_0xb4cefc);const _0x8e46b5=window[_0x40d92f(0x3ba)](()=>{const _0x402c38=_0x40d92f;this['_unitOnClients'][_0x402c38(0x3d3)](_0x5da93d=>{const _0x374487=_0x402c38;_0x5da93d[_0x374487(0x1af)](_0xb4cefc);});},ze*0x2);this[_0x40d92f(0xa8)][_0x40d92f(0x182)](_0xb4cefc,_0x8e46b5);}[_0x3022d6(0x334)](_0x7b44b4){const _0x49c533=_0x3022d6;if(this[_0x49c533(0xa8)][_0x49c533(0x151)](_0x7b44b4)){const _0x43978e=this[_0x49c533(0xa8)]['get'](_0x7b44b4);_0x43978e&&window[_0x49c533(0x1b4)](_0x43978e),this[_0x49c533(0xa8)]['set'](_0x7b44b4,null);}}[_0x3022d6(0x1db)](_0x5d4b60){const _0x5daf42=_0x3022d6,{memberID:_0x818d75,unitIDs:_0x1b41a8}=_0x5d4b60;_0x1b41a8[_0x5daf42(0x3d3)](_0x59b558=>{const _0x335a9a=_0x5daf42;var _0x44b9a9;const _0x4e5a49=this['_unitOnClients'][_0x335a9a(0x84)](_0x59b558);_0x4e5a49&&(_0x4e5a49[_0x335a9a(0x1af)](_0x818d75),(_0x44b9a9=this[_0x335a9a(0x1bc)](_0x59b558))==null||_0x44b9a9['next'](_0x4e5a49['size']===0x0?0x0:0x1));}),this[_0x5daf42(0x334)](_0x818d75);}[_0x3022d6(0x3c9)](_0x35027e){const _0x100d7c=_0x3022d6;this[_0x100d7c(0x305)](_0x35027e[_0x100d7c(0x36f)]);}['_send'](_0x428603){const _0x22b480=_0x3022d6;localStorage[_0x22b480(0x31f)](Je,JSON[_0x22b480(0x258)](_0x428603));}['_scheduleHeartbeat'](){const _0x5df6fd=_0x3022d6;this[_0x5df6fd(0x42a)]=window[_0x5df6fd(0x1aa)](()=>{const _0x52c2bd=_0x5df6fd;this[_0x52c2bd(0xff)]({'type':0x2,'memberID':this[_0x52c2bd(0x188)]});},ze);}[_0x3022d6(0x1bc)](_0x4dc8df){const _0x619c22=_0x3022d6;return this[_0x619c22(0x175)][_0x619c22(0x151)](_0x4dc8df)||this[_0x619c22(0x175)]['set'](_0x4dc8df,new v[(_0x619c22(0x141))](0x0)),this[_0x619c22(0x175)][_0x619c22(0x84)](_0x4dc8df);}}var ds=Object['defineProperty'],Ss=Object[_0x3022d6(0x2b4)],vs=(_0x216560,_0x5787b1,_0x464625,_0x5ca31c)=>{const _0x96976a=_0x3022d6;for(var _0x238240=_0x5ca31c>0x1?void 0x0:_0x5ca31c?Ss(_0x5787b1,_0x464625):_0x5787b1,_0x5922c8=_0x216560[_0x96976a(0x2ce)]-0x1,_0x504353;_0x5922c8>=0x0;_0x5922c8--)(_0x504353=_0x216560[_0x5922c8])&&(_0x238240=(_0x5ca31c?_0x504353(_0x5787b1,_0x464625,_0x238240):_0x504353(_0x238240))||_0x238240);return _0x5ca31c&&_0x238240&&ds(_0x5787b1,_0x464625,_0x238240),_0x238240;},Ze=(_0x28a2b6,_0x4c8dcd)=>(_0x55930c,_0x3eef43)=>_0x4c8dcd(_0x55930c,_0x3eef43,_0x28a2b6);let ve=class{constructor(_0x40752b,_0x30495e){const _0x1e32a7=_0x3022d6;this['_injector']=_0x40752b,this[_0x1e32a7(0x223)]=_0x30495e;}[_0x3022d6(0x377)](_0x572638){const _0x56555b=_0x3022d6;this[_0x56555b(0x2f5)](_0x572638),this[_0x56555b(0x90)](_0x572638);}[_0x3022d6(0x364)](_0x51fe01){const _0x1d7a8d=_0x3022d6,_0xb5b606=this[_0x1d7a8d(0x123)][_0x1d7a8d(0x84)](P[_0x1d7a8d(0x464)]),{redoCache:_0x333deb}=_0xb5b606[_0x1d7a8d(0x41e)]();if(_0x333deb[_0x1d7a8d(0x2ce)]===0x0)return _0x51fe01;let _0x1fd84e=o[_0x1d7a8d(0x418)][_0x1d7a8d(0x201)](_0x51fe01['mutations'][0x0]);for(let _0x1f5997=0x0;_0x1f5997<_0x333deb['length'];_0x1f5997++){const _0x5a21d9={'id':_0x1d7a8d(0x290),'params':{..._0x333deb[_0x1f5997]}},_0x2f89c2=this[_0x1d7a8d(0x223)][_0x1d7a8d(0x28e)](_0x1fd84e,_0x5a21d9,!0x1);if(_['isTransformMutationFailure'](_0x2f89c2))throw _0x2f89c2[_0x1d7a8d(0x404)];_0x1fd84e=_0x2f89c2[_0x1d7a8d(0x39e)];}return{...o[_0x1d7a8d(0x418)][_0x1d7a8d(0x201)](_0x51fe01),'mutations':[_0x1fd84e]};}[_0x3022d6(0x2f5)](_0x5790ed){const _0x59fc47=_0x3022d6,_0x474b46=this[_0x59fc47(0x123)][_0x59fc47(0x84)](P[_0x59fc47(0x464)]),{undoCache:_0x4c6c23,redoCache:_0x1dba12}=_0x474b46[_0x59fc47(0x41e)]();if(_0x4c6c23[_0x59fc47(0x2ce)]===0x0||_0x1dba12[_0x59fc47(0x2ce)]===0x0)return;const _0x531790=[],_0x58c5c0=[];let _0x148472=o[_0x59fc47(0x418)][_0x59fc47(0x201)](_0x5790ed[_0x59fc47(0x2a5)][0x0]),_0x32e0c2=o['Tools'][_0x59fc47(0x201)](_0x5790ed['mutations'][0x0]);for(let _0x5700fa=_0x4c6c23[_0x59fc47(0x2ce)]-0x1;_0x5700fa>=0x0;_0x5700fa--){const _0x4dd3d7={'id':_0x59fc47(0x290),'params':{..._0x4c6c23[_0x5700fa]}},_0x4bdcbd={'id':_0x59fc47(0x290),'params':{..._0x1dba12[_0x5700fa]}},_0x329f05=this[_0x59fc47(0x223)][_0x59fc47(0x28e)](_0x148472,_0x4dd3d7,!0x1),_0x77b3d4=this[_0x59fc47(0x223)]['transformMutation'](_0x32e0c2,_0x4bdcbd,!0x1);if(_[_0x59fc47(0x36a)](_0x329f05))throw _0x329f05['error'];if(_[_0x59fc47(0x36a)](_0x77b3d4))throw _0x77b3d4[_0x59fc47(0x404)];_0x531790['unshift'](_0x329f05[_0x59fc47(0x469)][_0x59fc47(0xd7)]),_0x58c5c0[_0x59fc47(0x3ec)](_0x77b3d4[_0x59fc47(0x469)][_0x59fc47(0xd7)]),_0x148472=_0x329f05[_0x59fc47(0x39e)],_0x32e0c2=_0x77b3d4['m1Prime'];}_0x474b46['setUndoRedoMutationParamsCache']({'undoCache':_0x531790,'redoCache':_0x58c5c0});}[_0x3022d6(0x90)](_0x58addf){const _0x14c88d=_0x3022d6,_0x700f28=this[_0x14c88d(0x123)][_0x14c88d(0x84)](P[_0x14c88d(0x464)]),_0x3f0817=_0x700f28[_0x14c88d(0x7c)]();if(_0x3f0817==null)return;const _0x30fa1c=[{'id':_0x14c88d(0x290),'params':{'unitId':_0x58addf['unitID'],'actions':null,'textRanges':[_0x3f0817]}}],_0x1bede1=this[_0x14c88d(0x223)][_0x14c88d(0x375)](_0x58addf,_0x30fa1c);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1bede1))throw _0x1bede1[_0x14c88d(0x404)];const _0x508d7d=_0x1bede1[_0x14c88d(0x469)][0x0][_0x14c88d(0xd7)]['textRanges'];Array[_0x14c88d(0x3a1)](_0x508d7d)&&_0x508d7d['length']&&_0x700f28['setActiveRange'](_0x508d7d[0x0]);}};ve=vs([Ze(0x0,o['Inject'](o['Injector'])),Ze(0x1,_[_0x3022d6(0x1d1)])],ve);var ms=Object['defineProperty'],gs=Object['getOwnPropertyDescriptor'],fs=(_0x4943a1,_0x513b46,_0x4d2e1f,_0xda901b)=>{const _0x3ad03f=_0x3022d6;for(var _0x8417dc=_0xda901b>0x1?void 0x0:_0xda901b?gs(_0x513b46,_0x4d2e1f):_0x513b46,_0x515f38=_0x4943a1[_0x3ad03f(0x2ce)]-0x1,_0x53719f;_0x515f38>=0x0;_0x515f38--)(_0x53719f=_0x4943a1[_0x515f38])&&(_0x8417dc=(_0xda901b?_0x53719f(_0x513b46,_0x4d2e1f,_0x8417dc):_0x53719f(_0x8417dc))||_0x8417dc);return _0xda901b&&_0x8417dc&&ms(_0x513b46,_0x4d2e1f,_0x8417dc),_0x8417dc;},Qe=(_0x521d19,_0x16ff44)=>(_0x4a172d,_0x576d5d)=>_0x16ff44(_0x4a172d,_0x576d5d,_0x521d19);let me=class{constructor(_0x5b301c,_0xba05d9){const _0x213f0e=_0x3022d6;this[_0x213f0e(0x123)]=_0x5b301c,this[_0x213f0e(0x223)]=_0xba05d9;}['transformSelections'](_0x5bf815){const _0x4aab1c=_0x3022d6;var _0x172ae2;const _0x378ecf=this[_0x4aab1c(0x123)][_0x4aab1c(0x84)](P[_0x4aab1c(0x329)]),_0x5c4b07=(_0x172ae2=_0x378ecf[_0x4aab1c(0x3bd)]())!=null?_0x172ae2:[],_0x186286=_0x5c4b07==null?void 0x0:_0x5c4b07[_0x4aab1c(0x317)](P[_0x4aab1c(0x3f1)]);if(_0x186286['length']===0x0)return;const _0x124bff=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5bf815[_0x4aab1c(0x367)],'actions':null,'textRanges':_0x186286}}],_0x2cb350=this[_0x4aab1c(0x223)][_0x4aab1c(0x375)](_0x5bf815,_0x124bff);if(!_[_0x4aab1c(0x10c)](_0x2cb350))throw _0x2cb350[_0x4aab1c(0x404)];const _0x24d70a=_0x2cb350['m2Prime'][0x0]['params'][_0x4aab1c(0x134)];Array['isArray'](_0x24d70a)&&_0x24d70a[_0x4aab1c(0x2ce)]&&_0x378ecf[_0x4aab1c(0x335)](_0x24d70a,!0x1);}};me=fs([Qe(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),Qe(0x1,_[_0x3022d6(0x1d1)])],me);function bt(_0x9dde2f){const _0xc20c6b=_0x3022d6;let _0x221a32='';for(const _0x1afc88 of _0x9dde2f){const {startOffset:_0x11c009,endOffset:_0x34fcb1,isActive:_0x2c4141}=_0x1afc88;_0x221a32[_0xc20c6b(0x2ce)]&&(_0x221a32+=','),_0x221a32+=_0x11c009+':'+_0x34fcb1+':'+(_0x2c4141?'1':'0');}return _0x221a32;}function Is(_0x232016){const _0x3337de=_0x3022d6,_0xf6a234=_0x232016['split'](','),_0x44efbc=[];for(const _0x55e957 of _0xf6a234){const [_0x598983,_0x1c1b54,_0x23957d]=_0x55e957['split'](':');_0x44efbc[_0x3337de(0x42d)]({'startOffset':Number(_0x598983),'endOffset':Number(_0x1c1b54),'collapsed':_0x598983===_0x1c1b54,'isActive':_0x23957d==='1'});}return _0x44efbc['some'](_0x3fdd7a=>_0x3fdd7a['isActive'])||(_0x44efbc[0x0][_0x3337de(0x311)]=!0x0),_0x44efbc;}class We extends o['RxDisposable']{constructor(){const _0x30522c=_0x3022d6;super(...arguments),u(this,_0x30522c(0x15c),new v[(_0x30522c(0x141))](null)),u(this,_0x30522c(0x3d9),this[_0x30522c(0x15c)][_0x30522c(0x295)]());}[_0x3022d6(0x2fe)](_0x1549c2){const _0x5a65db=_0x3022d6,{unitID:_0x4ba37c,memberID:_0x286a75,textRanges:_0x17fd5a}=_0x1549c2,_0xfbf8c3=bt(_0x17fd5a),_0x56e712={'unitID':_0x4ba37c,'memberID':_0x286a75,'selection':_0xfbf8c3};this[_0x5a65db(0x15c)]['next'](_0x56e712);}}var ps=Object['defineProperty'],Es=Object[_0x3022d6(0x2b4)],Cs=(_0x3f0d1a,_0x358edf,_0x1f789d,_0x59b426)=>{const _0xc70db1=_0x3022d6;for(var _0x4ad5cc=_0x59b426>0x1?void 0x0:_0x59b426?Es(_0x358edf,_0x1f789d):_0x358edf,_0xe11b17=_0x3f0d1a[_0xc70db1(0x2ce)]-0x1,_0x3e0915;_0xe11b17>=0x0;_0xe11b17--)(_0x3e0915=_0x3f0d1a[_0xe11b17])&&(_0x4ad5cc=(_0x59b426?_0x3e0915(_0x358edf,_0x1f789d,_0x4ad5cc):_0x3e0915(_0x4ad5cc))||_0x4ad5cc);return _0x59b426&&_0x4ad5cc&&ps(_0x358edf,_0x1f789d,_0x4ad5cc),_0x4ad5cc;},et=(_0x41730f,_0x7dfd34)=>(_0x5ad6c3,_0x3e4c3f)=>_0x7dfd34(_0x5ad6c3,_0x3e4c3f,_0x41730f);function bs(_0x2d1c1e){const _0x1dea0b=_0x3022d6,{unitID:_0x263411,mutations:_0x32bd98}=_0x2d1c1e;return{'unitId':_0x263411,'subUnitId':_0x32bd98[0x0][_0x1dea0b(0xd7)][_0x1dea0b(0x3d1)]};}let ge=class{constructor(_0x1e3aeb,_0xa5ed21){this['_injector']=_0x1e3aeb,this['_transformService']=_0xa5ed21;}[_0x3022d6(0xbd)](_0x3e28c0){const _0x22d43b=_0x3022d6;var _0x378b22,_0x26a32a,_0x13d21b;const _0x191cad=this[_0x22d43b(0x123)]['get'](p['SheetsSelectionsService']),{unitId:_0x401365,subUnitId:_0x2e921e}=bs(_0x3e28c0),_0x4c276d=_0x191cad[_0x22d43b(0x185)](_0x401365)[_0x22d43b(0xbe)]();if(_0x4c276d[_0x22d43b(0x2ce)]===0x0||!_0x401365||!_0x2e921e)return;const _0x2537b1=[{'id':p['SetSelectionsOperation']['id'],'params':{'unitId':_0x401365,'subUnitId':_0x2e921e,'selections':o[_0x22d43b(0x418)][_0x22d43b(0x201)](_0x4c276d)}}],_0x3cf102=this[_0x22d43b(0x223)][_0x22d43b(0x375)](_0x3e28c0,_0x2537b1);if(!_[_0x22d43b(0x10c)](_0x3cf102))throw _0x3cf102[_0x22d43b(0x404)];const _0x49136e=(_0x13d21b=(_0x26a32a=(_0x378b22=_0x3cf102[_0x22d43b(0x469)][0x0])==null?void 0x0:_0x378b22['params'])==null?void 0x0:_0x26a32a[_0x22d43b(0x2e7)])!=null?_0x13d21b:_0x4c276d;Array[_0x22d43b(0x3a1)](_0x49136e)&&_0x49136e[_0x22d43b(0x2ce)]&&this[_0x22d43b(0x123)][_0x22d43b(0x84)](o['ICommandService'])['executeCommand'](p[_0x22d43b(0x231)]['id'],{'unitId':_0x401365,'subUnitId':_0x2e921e,'selections':_0x49136e});}};ge=Cs([et(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),et(0x1,_['ITransformService'])],ge);const Ts=new Set([p[_0x3022d6(0x3d5)]['id']]);function tt(_0x26f792,_0x512bff,_0x37be72,_0x4ca68f,_0x1646e2){const _0x583edf=_0x3022d6;var _0x4cfa96,_0x412edb,_0x3e8031,_0x4b2f44;const _0x31fdaa=[];for(const _0xc050b6 of _0x26f792)if(Ts[_0x583edf(0x151)](_0xc050b6['id'])){if(_0x31fdaa[_0x583edf(0x2ce)]>0x0)break;_0x31fdaa[_0x583edf(0x42d)](_0xc050b6);break;}else _0x31fdaa[_0x583edf(0x42d)](_0xc050b6);const _0x5675fd=(_0x412edb=(_0x4cfa96=_0x1646e2[_0x583edf(0x129)]())==null?void 0x0:_0x4cfa96[_0x583edf(0x81)])!=null?_0x412edb:'unknown',_0x2beb24=(_0x4b2f44=(_0x3e8031=_0x1646e2[_0x583edf(0x129)]())==null?void 0x0:_0x3e8031[_0x583edf(0x36f)])!=null?_0x4b2f44:_0x583edf(0x2ad);return{'changeset':{'unitID':_0x512bff,'type':_[_0x583edf(0x3c4)](_0x37be72['getUnitType'](_0x512bff)),'baseRev':_0x4ca68f[_0x583edf(0x33a)](_0x512bff),'revision':0x0,'userID':_0x5675fd,'memberID':_0x2beb24,'mutations':_0x31fdaa},'pendingMutations':_0x26f792[_0x583edf(0x21e)](_0x31fdaa[_0x583edf(0x2ce)])};}function Rs(_0xf1d120,_0x3cc37e,_0x222102,_0x419f99,_0x44873a){const _0x49c1c9=_0x3022d6;var _0x163447,_0x2bd26b,_0x3a52cd,_0x472e3a;const _0x1f5291=[_0xf1d120[_0x49c1c9(0xb0)]((_0x6f6420,_0x278660)=>{const _0x5998c1=_0x49c1c9;var _0x3a02a7;const {id:_0x19d1c7}=_0x6f6420,{id:_0x3d8e02,type:_0x3cda21}=_0x278660,_0x5cabbf=(_0x3a02a7=_0x6f6420[_0x5998c1(0xd7)])!=null?_0x3a02a7:{'actions':null},_0x3e48d1=_0x278660[_0x5998c1(0xd7)];if(_0x19d1c7&&_0x19d1c7!==_0x3d8e02)throw new Error(_0x5998c1(0x333)+_0x19d1c7+'\x20-\x20'+_0x3d8e02+'.');return{..._0x6f6420,'id':_0x3d8e02,'type':_0x3cda21,'params':{'unitId':_0x3e48d1[_0x5998c1(0x347)],'textRanges':_0x3e48d1[_0x5998c1(0x134)],'actions':o[_0x5998c1(0x30c)]['compose'](_0x5cabbf[_0x5998c1(0x2d6)],_0x3e48d1['actions'])}};},{})],_0x3d061a=(_0x2bd26b=(_0x163447=_0x44873a[_0x49c1c9(0x129)]())==null?void 0x0:_0x163447[_0x49c1c9(0x81)])!=null?_0x2bd26b:'unknown',_0x1ddd84=(_0x472e3a=(_0x3a52cd=_0x44873a['getCurrentUser']())==null?void 0x0:_0x3a52cd['memberID'])!=null?_0x472e3a:'unknown';return{'changeset':{'unitID':_0x3cc37e,'type':_[_0x49c1c9(0x3c4)](_0x222102[_0x49c1c9(0x110)](_0x3cc37e)),'baseRev':_0x419f99[_0x49c1c9(0x33a)](_0x3cc37e),'revision':0x0,'userID':_0x3d061a,'memberID':_0x1ddd84,'mutations':_0x1f5291},'pendingMutations':[]};}const Os={'id':p[_0x3022d6(0x3f8)]['id'],'type':o[_0x3022d6(0x2c5)]['MUTATION'],'params':{}};var Ds=Object[_0x3022d6(0x131)],Ps=Object[_0x3022d6(0x2b4)],K=(_0x1d63e7,_0x4a8ea0,_0x2cd564,_0x162116)=>{const _0x5c0593=_0x3022d6;for(var _0x28402f=_0x162116>0x1?void 0x0:_0x162116?Ps(_0x4a8ea0,_0x2cd564):_0x4a8ea0,_0x3b6618=_0x1d63e7[_0x5c0593(0x2ce)]-0x1,_0x219653;_0x3b6618>=0x0;_0x3b6618--)(_0x219653=_0x1d63e7[_0x3b6618])&&(_0x28402f=(_0x162116?_0x219653(_0x4a8ea0,_0x2cd564,_0x28402f):_0x219653(_0x28402f))||_0x28402f);return _0x162116&&_0x28402f&&Ds(_0x4a8ea0,_0x2cd564,_0x28402f),_0x28402f;},m=(_0x31e4b6,_0xda1eb5)=>(_0x934e15,_0x1208ae)=>_0xda1eb5(_0x934e15,_0x1208ae,_0x31e4b6),D=(_0x4e40a3=>(_0x4e40a3[_0x3022d6(0x463)]=_0x3022d6(0x159),_0x4e40a3[_0x3022d6(0xf8)]='synced',_0x4e40a3[_0x3022d6(0x270)]=_0x3022d6(0x1ed),_0x4e40a3[_0x3022d6(0x1d0)]=_0x3022d6(0x450),_0x4e40a3['AWAITING_WITH_PENDING']=_0x3022d6(0x3f0),_0x4e40a3[_0x3022d6(0x1d2)]='fetch_missing',_0x4e40a3['CONFLICT']=_0x3022d6(0x3a0),_0x4e40a3[_0x3022d6(0x316)]=_0x3022d6(0x3b3),_0x4e40a3))(D||{});class X{constructor(_0x54a8a9,_0x95156f,_0x573774,_0x50f8fe,_0x1ea378,_0x4ee12a,_0x40f900,_0x1b71b5,_0x2b42d9){const _0x548d79=_0x3022d6;u(this,_0x548d79(0x3e3),null),u(this,'_pendingMutations',[]),(this['unitID']=_0x54a8a9,this[_0x548d79(0x1f3)]=_0x95156f,this[_0x548d79(0x3ce)]=_0x1ea378,this[_0x548d79(0x467)]=_0x4ee12a,this['_undoRedoService']=_0x40f900,this[_0x548d79(0x254)]=_0x1b71b5,this['_localCacheService']=_0x2b42d9,this['_awaitingChangeset']=_0x573774,this[_0x548d79(0x229)]=_0x50f8fe);}[_0x3022d6(0x1ef)](_0x46f82d){const _0x2725e8=_0x3022d6,_0x10f1e2=this[_0x2725e8(0x254)][_0x2725e8(0x33a)](this[_0x2725e8(0x367)]);return _0x46f82d[_0x2725e8(0x33d)]>_0x10f1e2+0x1?(this['_handler'][_0x2725e8(0x2b0)]({'from':_0x10f1e2,'to':_0x46f82d[_0x2725e8(0x33d)]-0x1}),!0x0):!0x1;}[_0x3022d6(0x241)](_0x4a0822){const _0x1e83ac=_0x3022d6;this[_0x1e83ac(0x42c)]['transformUndoRedo'](this['unitID'],_0x4a0822);}['_transformSelections'](_0x1bf423){const _0x525d44=_0x3022d6;var _0x4e462f,_0x50cd91;(_0x50cd91=(_0x4e462f=this[_0x525d44(0x3ce)])[_0x525d44(0x118)])==null||_0x50cd91[_0x525d44(0x422)](_0x4e462f,_0x1bf423);}[_0x3022d6(0x3de)](_0x416d2c){const _0x3ca126=_0x3022d6;var _0x15490d,_0x32a163;return(_0x32a163=(_0x15490d=this[_0x3ca126(0x3ce)])['onTransformIME'])==null?void 0x0:_0x32a163['call'](_0x15490d,_0x416d2c);}['_transformRemoteChangesetByIMECache'](_0x2cbc1e){const _0x53de4b=_0x3022d6;var _0x1f26c9,_0x4d63e8,_0x192ba9;return(_0x192ba9=(_0x4d63e8=(_0x1f26c9=this[_0x53de4b(0x3ce)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4d63e8[_0x53de4b(0x422)](_0x1f26c9,_0x2cbc1e))!=null?_0x192ba9:_0x2cbc1e;}['_syncEditingCollabCursor'](_0x28fd6e){const _0x423166=_0x3022d6;var _0x576b23,_0x1b160f;if(this[_0x423166(0x1f3)]===j[_0x423166(0x237)]){const {unitID:_0x4c5925,mutations:_0x7880ca,memberID:_0x3ac3d0}=_0x28fd6e,_0x496e7a=_0x7880ca[0x0][_0x423166(0xd7)][_0x423166(0x134)];Array['isArray'](_0x496e7a)&&_0x496e7a[_0x423166(0x2ce)]>0x0&&((_0x1b160f=(_0x576b23=this[_0x423166(0x3ce)])['onSyncEditingCollabCursor'])==null||_0x1b160f[_0x423166(0x422)](_0x576b23,{'unitID':_0x4c5925,'memberID':_0x3ac3d0,'textRanges':_0x496e7a}));}}[_0x3022d6(0x34d)](){const _0x9ec650=_0x3022d6;this[_0x9ec650(0x3ea)][_0x9ec650(0xbb)](this[_0x9ec650(0x367)],this[_0x9ec650(0x1f3)],this[_0x9ec650(0x3e3)],this[_0x9ec650(0x229)]);}[_0x3022d6(0x2e2)](){const _0x4ea688=_0x3022d6;return this[_0x4ea688(0x254)][_0x4ea688(0x33a)](this[_0x4ea688(0x367)]);}[_0x3022d6(0x3ad)](){const _0x355d68=_0x3022d6;this[_0x355d68(0x254)]['incrementRevForDocument'](this['unitID']);}[_0x3022d6(0x415)](_0x1e4ca3){const _0x24f1d0=_0x3022d6;var _0x192910;const _0x2ee049=this[_0x24f1d0(0x158)](_0x1e4ca3),_0x2aecaa=o['sequenceExecute'](_0x2ee049[_0x24f1d0(0x2a5)],this[_0x24f1d0(0x467)],{'fromCollab':!0x0});if(!_0x2aecaa[_0x24f1d0(0x3c5)])throw _0x2aecaa[_0x24f1d0(0x404)]instanceof Error?_0x2aecaa[_0x24f1d0(0x404)]:new Error((_0x192910=_0x2aecaa['error'])!=null?_0x192910:_0x24f1d0(0x217));this[_0x24f1d0(0x3de)](_0x2ee049),this['_transformUndoredo'](_0x1e4ca3),this[_0x24f1d0(0xdd)](_0x2ee049),this[_0x24f1d0(0x3c1)](_0x2ee049),this[_0x24f1d0(0x3ad)]();}}let ce=class extends X{constructor(_0x1180ec,_0xa8c4a4,_0xe87f20,_0x2fc83b,_0x418408,_0x350184,_0x3af90f,_0x3d4bde,_0x1feb46,_0x490b7b){const _0x56cafd=_0x3022d6;super(_0x1180ec,_0xa8c4a4,null,[],_0xe87f20,_0x3d4bde,_0x3af90f,_0x2fc83b,_0x418408),u(this,_0x56cafd(0x15b),'synced'),(this[_0x56cafd(0x123)]=_0x350184,this[_0x56cafd(0x38b)]=_0x1feb46,this[_0x56cafd(0x223)]=_0x490b7b);}[_0x3022d6(0x39c)](_0x16fffe){const _0x30fbf6=_0x3022d6,_0x43ae5c=this[_0x30fbf6(0x123)][_0x30fbf6(0x89)]($,this[_0x30fbf6(0x367)],this[_0x30fbf6(0x1f3)],[_0x16fffe],this[_0x30fbf6(0x3ce)]);return _0x43ae5c[_0x30fbf6(0x455)](),_0x43ae5c['_updateLocalCache'](),_0x43ae5c;}['onRemoteChangeset'](_0x129711){const _0x18e7a9=_0x3022d6;if(this[_0x18e7a9(0x1ef)](_0x129711))return this[_0x18e7a9(0x123)][_0x18e7a9(0x89)](H,this[_0x18e7a9(0x367)],this[_0x18e7a9(0x1f3)],null,[],null,[_0x129711],this['_handler']);try{const _0x3811c4=this['_transformService'][_0x18e7a9(0x375)](_0x129711,[Os]);if(_['isTransformMutationsWithChangesetSuccess'](_0x3811c4)){const {c1Prime:_0x567e85}=_0x3811c4;return this[_0x18e7a9(0x415)](_0x567e85),this;}throw _0x3811c4[_0x18e7a9(0x404)];}catch(_0x483141){return this[_0x18e7a9(0x38b)][_0x18e7a9(0x404)](_0x483141),this[_0x18e7a9(0x24f)](!0x1);}}[_0x3022d6(0x24f)](_0x3ef64d){const _0xa6a591=_0x3022d6;return this[_0xa6a591(0x123)][_0xa6a591(0x89)](B,this['unitID'],this[_0xa6a591(0x1f3)],null,[],this[_0xa6a591(0x3ce)],_0x3ef64d);}[_0x3022d6(0xc1)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3022d6(0x19d)](){const _0x11c763=_0x3022d6;throw new Error(_0x11c763(0x389));}[_0x3022d6(0x2b5)](){const _0x5b8f59=_0x3022d6;return this[_0x5b8f59(0x123)]['createInstance'](V,this[_0x5b8f59(0x367)],this[_0x5b8f59(0x1f3)],null,[],this[_0x5b8f59(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ce=K([m(0x3,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x4,o[_0x3022d6(0x291)](exports['LocalCacheService'])),m(0x5,o['Inject'](o[_0x3022d6(0x448)])),m(0x6,o['IUndoRedoService']),m(0x7,o[_0x3022d6(0x3e6)]),m(0x8,o['ILogService']),m(0x9,_['ITransformService'])],ce);let $=class extends X{constructor(_0x478f5c,_0x10b3d6,_0x47898d,_0x3e15d6,_0x518de2,_0x5f3629,_0x35a3bb,_0x15d241,_0x5858cd,_0x55d847,_0x1ebb08,_0x471be0,_0x9c612b,_0x35809f){const _0x1f6cf2=_0x3022d6;super(_0x478f5c,_0x10b3d6,null,_0x47898d,_0x3e15d6,_0x55d847,_0x35809f,_0x5f3629,_0x35a3bb),u(this,_0x1f6cf2(0x15b),_0x1f6cf2(0x1ed)),u(this,_0x1f6cf2(0x3cf),null),u(this,_0x1f6cf2(0x1f4),null),(this[_0x1f6cf2(0x123)]=_0x518de2,this[_0x1f6cf2(0x16b)]=_0x15d241,this[_0x1f6cf2(0x38b)]=_0x5858cd,this[_0x1f6cf2(0xee)]=_0x1ebb08,this[_0x1f6cf2(0x223)]=_0x471be0,this[_0x1f6cf2(0x17c)]=_0x9c612b);}[_0x3022d6(0x39c)](_0x3a8743){const _0x35ce8f=_0x3022d6;return this[_0x35ce8f(0x229)]['push'](_0x3a8743),this[_0x35ce8f(0x34d)](),this;}[_0x3022d6(0x138)](_0x30945e){const _0x37f1db=_0x3022d6;if(this[_0x37f1db(0x1ef)](_0x30945e))return this[_0x37f1db(0x2e6)](),this[_0x37f1db(0x123)][_0x37f1db(0x89)](H,this[_0x37f1db(0x367)],this['type'],null,this[_0x37f1db(0x229)],null,[_0x30945e],this[_0x37f1db(0x3ce)]);try{const _0x1cb749=this['_transformService'][_0x37f1db(0x375)](_0x30945e,this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0x1cb749)){const {c1Prime:_0x24c5f2,m2Prime:_0x1dc9a1}=_0x1cb749;this[_0x37f1db(0x415)](_0x24c5f2);const _0x1b7363=this[_0x37f1db(0x123)][_0x37f1db(0x89)]($,this[_0x37f1db(0x367)],this[_0x37f1db(0x1f3)],_0x1dc9a1,this[_0x37f1db(0x3ce)]);return this['_clearScheduledTask'](),_0x1b7363['_schedule'](this[_0x37f1db(0x3cf)]?Math['max'](0x0,new Date()[_0x37f1db(0x1fd)]()-this[_0x37f1db(0x3cf)]):this[_0x37f1db(0x250)]()),_0x1b7363;}throw _0x1cb749[_0x37f1db(0x404)];}catch(_0x3b6761){return this[_0x37f1db(0x38b)][_0x37f1db(0x404)](_0x3b6761),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](){const _0x600518=_0x3022d6;throw new Error(_0x600518(0x1f5));}[_0x3022d6(0x19d)](){const _0x4586c4=_0x3022d6;throw new Error(_0x4586c4(0x14b));}[_0x3022d6(0x2b5)](){const _0x2e2cc3=_0x3022d6;return this['_clearScheduledTask'](),this['_injector'][_0x2e2cc3(0x89)](V,this[_0x2e2cc3(0x367)],this[_0x2e2cc3(0x1f3)],null,this['_pendingMutations'],this[_0x2e2cc3(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x455)](_0x237c9f){const _0x1ed62a=_0x3022d6;_0x237c9f=_0x237c9f!=null?_0x237c9f:this[_0x1ed62a(0x250)](),this[_0x1ed62a(0x3cf)]=new Date()[_0x1ed62a(0x1fd)](),this[_0x1ed62a(0x1f4)]=setTimeout(()=>{const _0x573e65=_0x1ed62a;this[_0x573e65(0x2e6)]();let _0x58c62a=null;switch(this[_0x573e65(0x1f3)]){case j['UNIVER_SHEET']:{_0x58c62a=tt(this['_pendingMutations'],this['unitID'],this[_0x573e65(0x17c)],this['_revisionService'],this['_memberService']);break;}case j[_0x573e65(0x237)]:{this['_pendingMutations']['every'](_0x389115=>_0x389115['id']===P[_0x573e65(0x365)]['id'])?_0x58c62a=Rs(this['_pendingMutations'],this[_0x573e65(0x367)],this[_0x573e65(0x17c)],this[_0x573e65(0x254)],this['_memberService']):_0x58c62a=tt(this['_pendingMutations'],this['unitID'],this[_0x573e65(0x17c)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x573e65(0x461)+this['type']+_0x573e65(0x43d));}const {changeset:_0x39519a,pendingMutations:_0x36d424}=_0x58c62a;this[_0x573e65(0x3ce)]['onSendChangeset'](_0x39519a);const _0x463500=_0x36d424[_0x573e65(0x2ce)]?this[_0x573e65(0x123)][_0x573e65(0x89)](x,this[_0x573e65(0x367)],this[_0x573e65(0x1f3)],_0x39519a,_0x36d424,this[_0x573e65(0x3ce)]):this[_0x573e65(0x123)]['createInstance'](k,this[_0x573e65(0x367)],this[_0x573e65(0x1f3)],_0x39519a,this[_0x573e65(0x3ce)]);_0x463500[_0x573e65(0x34d)](),this[_0x573e65(0x3ce)][_0x573e65(0x218)](this,_0x463500);},_0x237c9f);}['_getSendChangesetTimeout'](){const _0xdd0fd2=_0x3022d6;var _0x58d8b1;return(_0x58d8b1=this['_configService'][_0xdd0fd2(0x1bd)](ht))!=null?_0x58d8b1:Wt;}[_0x3022d6(0x40f)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3022d6(0x2e6)](){const _0x1bcda4=_0x3022d6;this[_0x1bcda4(0x1f4)]!=null&&(clearTimeout(this[_0x1bcda4(0x1f4)]),this[_0x1bcda4(0x1f4)]=null);}[_0x3022d6(0x24f)](_0x305875){const _0x3857cc=_0x3022d6;return this[_0x3857cc(0x2e6)](),this[_0x3857cc(0x123)]['createInstance'](B,this['unitID'],this[_0x3857cc(0x1f3)],null,this[_0x3857cc(0x229)],this[_0x3857cc(0x3ce)],_0x305875);}};$=K([m(0x4,o[_0x3022d6(0x291)](o['Injector'])),m(0x5,o[_0x3022d6(0x291)](_['RevisionService'])),m(0x6,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x7,o[_0x3022d6(0x291)](Y)),m(0x8,o['ILogService']),m(0x9,o[_0x3022d6(0x3e6)]),m(0xa,o[_0x3022d6(0x3be)]),m(0xb,_[_0x3022d6(0x1d1)]),m(0xc,o[_0x3022d6(0xb8)]),m(0xd,o[_0x3022d6(0x114)])],$);let k=class extends X{constructor(_0xad95d0,_0x58fb5e,_0x378de6,_0x2f0da1,_0x559c0e,_0x5e33a4,_0x4947fb,_0x19e90c,_0x52b65f,_0x57e926,_0x1ecf7e){const _0x3afb07=_0x3022d6;super(_0xad95d0,_0x58fb5e,_0x378de6,[],_0x2f0da1,_0x19e90c,_0x1ecf7e,_0x5e33a4,_0x4947fb),u(this,'status',_0x3afb07(0x450)),(this[_0x3afb07(0x123)]=_0x559c0e,this[_0x3afb07(0x38b)]=_0x52b65f,this[_0x3afb07(0x223)]=_0x57e926);}[_0x3022d6(0x39c)](_0x5ee04f){const _0xbb817d=_0x3022d6,_0x38baf3=this[_0xbb817d(0x123)][_0xbb817d(0x89)](x,this['unitID'],this[_0xbb817d(0x1f3)],this['_awaitingChangeset'],[_0x5ee04f],this[_0xbb817d(0x3ce)]);return _0x38baf3[_0xbb817d(0x34d)](),_0x38baf3;}[_0x3022d6(0x138)](_0x328b73){const _0x5c2a96=_0x3022d6;if(this[_0x5c2a96(0x1ef)](_0x328b73))return this[_0x5c2a96(0x123)][_0x5c2a96(0x89)](H,this['unitID'],this[_0x5c2a96(0x1f3)],this[_0x5c2a96(0x3e3)],[],null,[_0x328b73],this[_0x5c2a96(0x3ce)]);try{const _0x4dbc67=this[_0x5c2a96(0x223)][_0x5c2a96(0x232)]([_0x328b73],[this[_0x5c2a96(0x3e3)]],!0x1);if(_[_0x5c2a96(0x2cf)](_0x4dbc67)){const {c1Prime:_0x3a578b,c2Prime:_0xd399ee}=_0x4dbc67;this[_0x5c2a96(0x415)](_0x3a578b[0x0]),_0xd399ee[0x0][_0x5c2a96(0x1da)]=this['_getCurrentRevision']();const _0x3031c6=this[_0x5c2a96(0x123)]['createInstance'](k,this['unitID'],this['type'],_0xd399ee[0x0],this[_0x5c2a96(0x3ce)]);return _0x3031c6[_0x5c2a96(0x34d)](),_0x3031c6;}return this[_0x5c2a96(0x24f)](!0x1);}catch(_0xe14102){return this[_0x5c2a96(0x38b)][_0x5c2a96(0x404)](_0xe14102),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](_0xac73c0){const _0x17c96d=_0x3022d6,_0x12a54d=this[_0x17c96d(0x254)][_0x17c96d(0x33a)](this['unitID']);if(_0xac73c0[_0x17c96d(0x33d)]<_0x12a54d-0x1)return this;if(this[_0x17c96d(0x1ef)](_0xac73c0))return this['_injector'][_0x17c96d(0x89)](H,this[_0x17c96d(0x367)],this[_0x17c96d(0x1f3)],null,[],this[_0x17c96d(0x3e3)],[],this['_handler']);this[_0x17c96d(0x3ad)]();const _0x512f1e=this['_injector'][_0x17c96d(0x89)](ce,this[_0x17c96d(0x367)],this[_0x17c96d(0x1f3)],this[_0x17c96d(0x3ce)]);return _0x512f1e[_0x17c96d(0x34d)](),_0x512f1e;}['onRemoteRej'](_0x4b5783){const _0x1cb382=_0x3022d6;return this[_0x1cb382(0x24f)](!!(_0x4b5783!=null&&_0x4b5783['isPermissionRej']));}[_0x3022d6(0x2b5)](){const _0x481c94=_0x3022d6;return this[_0x481c94(0x123)][_0x481c94(0x89)](V,this[_0x481c94(0x367)],this[_0x481c94(0x1f3)],this[_0x481c94(0x3e3)],[],this['_handler']);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0x12cf20=_0x3022d6;this[_0x12cf20(0x3ce)]['onSendChangeset'](this[_0x12cf20(0x3e3)]);}[_0x3022d6(0x24f)](_0x4509b6){const _0x43c488=_0x3022d6;return this['_injector'][_0x43c488(0x89)](B,this['unitID'],this[_0x43c488(0x1f3)],this[_0x43c488(0x3e3)],[],this['_handler'],_0x4509b6);}};k=K([m(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x5,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x6,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x7,o['ICommandService']),m(0x8,o[_0x3022d6(0x22f)]),m(0x9,_[_0x3022d6(0x1d1)]),m(0xa,o[_0x3022d6(0x114)])],k);let x=class extends X{constructor(_0x540732,_0x18dd8a,_0x445ce1,_0x1575e9,_0x324ca3,_0xd9fb39,_0xc48921,_0x3fad45,_0x1565a0,_0x38b790,_0x22af90,_0x4376a8){const _0x4f6979=_0x3022d6;super(_0x540732,_0x18dd8a,_0x445ce1,_0x1575e9,_0x324ca3,_0x1565a0,_0x4376a8,_0xc48921,_0x3fad45),u(this,_0x4f6979(0x15b),_0x4f6979(0x3f0)),(this[_0x4f6979(0x123)]=_0xd9fb39,this[_0x4f6979(0x38b)]=_0x38b790,this[_0x4f6979(0x223)]=_0x22af90);}[_0x3022d6(0x39c)](_0x36cd02){const _0x5ee7e1=_0x3022d6;return this[_0x5ee7e1(0x229)][_0x5ee7e1(0x42d)](_0x36cd02),this;}[_0x3022d6(0x138)](_0x5f318b){const _0x4988d8=_0x3022d6;if(this['_checkMissing'](_0x5f318b))return this[_0x4988d8(0x123)][_0x4988d8(0x89)](H,this[_0x4988d8(0x367)],this[_0x4988d8(0x1f3)],this[_0x4988d8(0x3e3)],this[_0x4988d8(0x229)],null,[_0x5f318b],this[_0x4988d8(0x3ce)]);try{const _0x14c260=this['_transformService'][_0x4988d8(0x232)]([_0x5f318b],[this[_0x4988d8(0x3e3)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x14c260)){const {c1Prime:_0x3254cc,c2Prime:_0x4ead3a}=_0x14c260,_0x1fc8ee=this[_0x4988d8(0x223)][_0x4988d8(0x375)](_0x3254cc[0x0],this[_0x4988d8(0x229)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x1fc8ee)){const {c1Prime:_0x2ae596,m2Prime:_0x1b45cf}=_0x1fc8ee;return this['_executeRemoteChangeset'](_0x2ae596),_0x4ead3a[0x0]['baseRev']=this[_0x4988d8(0x2e2)](),this[_0x4988d8(0x123)][_0x4988d8(0x89)](x,this['unitID'],this[_0x4988d8(0x1f3)],_0x4ead3a[0x0],_0x1b45cf,this[_0x4988d8(0x3ce)]);}throw _0x1fc8ee[_0x4988d8(0x404)];}throw _0x14c260[_0x4988d8(0x404)];}catch(_0x49480d){return this[_0x4988d8(0x38b)][_0x4988d8(0x404)](_0x49480d),this['_onConflict'](!0x1);}}[_0x3022d6(0xc1)](_0xbb7b49){const _0x318a76=_0x3022d6;if(this[_0x318a76(0x1ef)](_0xbb7b49))return this[_0x318a76(0x123)][_0x318a76(0x89)](H,this[_0x318a76(0x367)],this[_0x318a76(0x1f3)],null,this['_pendingMutations'],this[_0x318a76(0x3e3)],[],this[_0x318a76(0x3ce)]);this[_0x318a76(0x3ad)]();const _0xd33353=this[_0x318a76(0x123)][_0x318a76(0x89)]($,this[_0x318a76(0x367)],this['type'],this[_0x318a76(0x229)],this['_handler']);return _0xd33353[_0x318a76(0x455)](),_0xd33353[_0x318a76(0x34d)](),_0xd33353;}[_0x3022d6(0x19d)](_0x46c4e8){const _0x54c51b=_0x3022d6;return this[_0x54c51b(0x24f)](!!(_0x46c4e8!=null&&_0x46c4e8[_0x54c51b(0x278)]));}[_0x3022d6(0x2b5)](){const _0x12a183=_0x3022d6;return this[_0x12a183(0x123)][_0x12a183(0x89)](V,this[_0x12a183(0x367)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x12a183(0x3ce)]);}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0x1954c3=_0x3022d6;this[_0x1954c3(0x3ce)][_0x1954c3(0x3f5)](this[_0x1954c3(0x3e3)]);}[_0x3022d6(0x24f)](_0x537625){const _0x44e703=_0x3022d6;return this[_0x44e703(0x123)]['createInstance'](B,this[_0x44e703(0x367)],this[_0x44e703(0x1f3)],null,this[_0x44e703(0x229)],this[_0x44e703(0x3ce)],_0x537625);}};x=K([m(0x5,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x6,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x7,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x8,o['ICommandService']),m(0x9,o[_0x3022d6(0x22f)]),m(0xa,_[_0x3022d6(0x1d1)]),m(0xb,o[_0x3022d6(0x114)])],x);let B=class extends X{constructor(_0x1d14f0,_0x305aa6,_0x175bba,_0x592d17,_0xe4ab68,_0x535609=!0x1,_0x2f1e76,_0x45a94f,_0x2e285d,_0x53d8a4,_0x42897a,_0x299b53,_0x53643b){const _0x61b990=_0x3022d6;super(_0x1d14f0,_0x305aa6,_0x175bba,_0x592d17,_0xe4ab68,_0x45a94f,_0x2e285d,_0x42897a,_0x53d8a4),u(this,_0x61b990(0x15b),_0x61b990(0x3a0)),(this['_isPermissionRej']=_0x535609,this[_0x61b990(0x3a2)]=_0x2f1e76,this[_0x61b990(0x3b1)]=_0x299b53,this['_notificationService']=_0x53643b,this[_0x61b990(0x41d)](),this['_clearLocalCache'](),this[_0x61b990(0x3e9)]());}[_0x3022d6(0x39c)](){return this;}[_0x3022d6(0x138)](){return this;}[_0x3022d6(0xc1)](){return this;}[_0x3022d6(0x19d)](){return this;}['toggleOffline'](){return this;}[_0x3022d6(0xbf)](){return this;}[_0x3022d6(0x40f)](){const _0xe1508c=_0x3022d6;throw new Error(_0xe1508c(0x191));}[_0x3022d6(0x8d)](){const _0x3b4916=_0x3022d6;this[_0x3b4916(0x3ea)][_0x3b4916(0xbb)](this[_0x3b4916(0x367)],this['type'],null,[]);}['_showConflictNotification'](){const _0x5c7229=_0x3022d6;this[_0x5c7229(0x2cb)]?this[_0x5c7229(0x2d1)][_0x5c7229(0x1d3)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x5c7229(0x3b1)]['t'](_0x5c7229(0xb5)),'type':'error','duration':0x0}):this['_notificationService'][_0x5c7229(0x1d3)]({'title':this[_0x5c7229(0x3b1)]['t'](_0x5c7229(0x437)),'content':this['_localeService']['t'](_0x5c7229(0x2a7)),'type':_0x5c7229(0x404),'duration':0x0});}['_disableEditing'](){this['_permissionService']['updatePermissionPoint'](new p['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};B=K([m(0x6,o['Inject'](o[_0x3022d6(0x346)])),m(0x7,o[_0x3022d6(0x3e6)]),m(0x8,o[_0x3022d6(0x114)]),m(0x9,o['Inject'](exports['LocalCacheService'])),m(0xa,o['Inject'](_['RevisionService'])),m(0xb,o[_0x3022d6(0x291)](o['LocaleService'])),m(0xc,L[_0x3022d6(0xfd)])],B);let V=class extends X{constructor(_0x575fd6,_0x47952d,_0x2d2ccd,_0x4b5200,_0x2404c6,_0x5003bf,_0x142410,_0x59ee06,_0x295e3a,_0x47503a){const _0x112d35=_0x3022d6;super(_0x575fd6,_0x47952d,_0x2d2ccd,_0x4b5200,_0x2404c6,_0x295e3a,_0x47503a,_0x142410,_0x59ee06),u(this,'status',_0x112d35(0x3b3)),this['_injector']=_0x5003bf;}[_0x3022d6(0x39c)](_0x3d0251){const _0x57749a=_0x3022d6;return this[_0x57749a(0x229)][_0x57749a(0x42d)](_0x3d0251),this[_0x57749a(0x34d)](),this;}['onRemoteChangeset'](_0x1571aa){const _0x46ad6b=_0x3022d6;throw new Error(_0x46ad6b(0x3f6));}[_0x3022d6(0xc1)](){const _0x5d4e27=_0x3022d6;throw new Error(_0x5d4e27(0x41f));}[_0x3022d6(0x19d)](){const _0x485344=_0x3022d6;throw new Error(_0x485344(0x339));}[_0x3022d6(0x2b5)](){return this;}[_0x3022d6(0xbf)](){const {_injector:_0x4afdcc,_pendingMutations:_0xbc93e8,_awaitingChangeset:_0x43e856,unitID:_0x49259e,_handler:_0x33b0a9,type:_0x29f261}=this,_0x346bb5=Tt(_0x4afdcc,_0x49259e,_0x29f261,_0x43e856,_0xbc93e8,_0x33b0a9);return _0x346bb5 instanceof $?_0x346bb5['_schedule']():(_0x346bb5 instanceof x||_0x346bb5 instanceof k)&&_0x346bb5['resend'](),_0x346bb5;}['resend'](){const _0x19b740=_0x3022d6;throw new Error(_0x19b740(0x12e));}};V=K([m(0x5,o[_0x3022d6(0x291)](o['Injector'])),m(0x6,o[_0x3022d6(0x291)](_['RevisionService'])),m(0x7,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),m(0x8,o[_0x3022d6(0x3e6)]),m(0x9,o['IUndoRedoService'])],V);let H=class extends X{constructor(_0xed3494,_0x33dd9d,_0x366ee5,_0xb9976,_0x3069eb,_0x4e0ac0,_0x134033,_0x49330e,_0xd6f547,_0x7a70da,_0x325cf5,_0x14a2e2,_0x1f0776,_0x262250){const _0x110326=_0x3022d6;super(_0xed3494,_0x33dd9d,_0x366ee5,_0xb9976,_0x134033,_0x14a2e2,_0x1f0776,_0xd6f547,_0x7a70da),u(this,_0x110326(0x15b),_0x110326(0x28f)),(this['_acknowledgedAwaitingChangeset']=_0x3069eb,this[_0x110326(0x139)]=_0x4e0ac0,this[_0x110326(0x123)]=_0x49330e,this['_logService']=_0x325cf5,this['_transformService']=_0x262250);}['onMissedChangesetFetched'](_0x301a93){const _0x5b6c7f=_0x3022d6;try{const _0x1f496b=[..._0x301a93,...this[_0x5b6c7f(0x139)]],_0x566b5a=[this['_awaitingChangeset']||this[_0x5b6c7f(0xc2)]][_0x5b6c7f(0x1c0)](_0x1c938c=>!!_0x1c938c);let _0x5248cf,_0x450724;if(_0x566b5a[_0x5b6c7f(0x2ce)]){const _0x336cb4=this[_0x5b6c7f(0x223)][_0x5b6c7f(0x232)](_0x1f496b,_0x566b5a,!0x1);if(!_[_0x5b6c7f(0x2cf)](_0x336cb4))throw _0x336cb4[_0x5b6c7f(0x404)];_0x5248cf=_0x336cb4[_0x5b6c7f(0x3c6)],_0x450724=_0x336cb4[_0x5b6c7f(0x41a)];}else _0x5248cf=_0x1f496b,_0x450724=[];let _0x5693b1=this[_0x5b6c7f(0x229)];_0x5248cf[_0x5b6c7f(0x3d3)](_0xa167e9=>{const _0x3deceb=_0x5b6c7f;let _0x33cec9;if(_0x5693b1[_0x3deceb(0x2ce)]){const _0x5eee7f=this[_0x3deceb(0x223)][_0x3deceb(0x375)](_0xa167e9,_0x5693b1);if(!_[_0x3deceb(0x10c)](_0x5eee7f))throw _0x5eee7f[_0x3deceb(0x404)];_0x33cec9=_0x5eee7f[_0x3deceb(0x3c6)],_0x5693b1=_0x5eee7f[_0x3deceb(0x469)];}else _0x33cec9=_0xa167e9;this[_0x3deceb(0x415)](_0x33cec9);}),this[_0x5b6c7f(0xc2)]&&this['_incrementRevisionNumber'](),this['_awaitingChangeset']&&_0x450724[_0x5b6c7f(0x2ce)]&&(_0x450724[0x0][_0x5b6c7f(0x1da)]=this['_getCurrentRevision']());let _0x1a3fba;if(this['_awaitingChangeset']&&_0x5693b1['length']!==0x0)_0x1a3fba=this['_injector'][_0x5b6c7f(0x89)](x,this[_0x5b6c7f(0x367)],this['type'],_0x450724[0x0],_0x5693b1,this[_0x5b6c7f(0x3ce)]);else{if(this[_0x5b6c7f(0x3e3)]&&_0x5693b1['length']===0x0)_0x450724[0x0][_0x5b6c7f(0x1da)]=this[_0x5b6c7f(0x2e2)](),_0x1a3fba=this['_injector'][_0x5b6c7f(0x89)](k,this['unitID'],this[_0x5b6c7f(0x1f3)],_0x450724[0x0],this['_handler']);else{if(_0x5693b1[_0x5b6c7f(0x2ce)]!==0x0){const _0x6ca3ce=this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)]($,this['unitID'],this['type'],_0x5693b1,this[_0x5b6c7f(0x3ce)]);_0x6ca3ce[_0x5b6c7f(0x455)](),_0x1a3fba=_0x6ca3ce;}else _0x1a3fba=this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)](ce,this[_0x5b6c7f(0x367)],this['type'],this[_0x5b6c7f(0x3ce)]);}}return _0x1a3fba[_0x5b6c7f(0x34d)](),_0x1a3fba;}catch(_0x1c5a53){return this[_0x5b6c7f(0x38b)][_0x5b6c7f(0x404)](_0x5b6c7f(0x1a3),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1c5a53),this[_0x5b6c7f(0x123)][_0x5b6c7f(0x89)](B,this[_0x5b6c7f(0x367)],this[_0x5b6c7f(0x1f3)],this[_0x5b6c7f(0x3e3)],this[_0x5b6c7f(0x229)],this[_0x5b6c7f(0x3ce)],!0x1);}}[_0x3022d6(0x40f)](){const _0x1cdea1=_0x3022d6;throw new Error(_0x1cdea1(0x204));}['appendMutation'](_0x15c2e1){const _0x370357=_0x3022d6;return this['_pendingMutations'][_0x370357(0x42d)](_0x15c2e1),this;}[_0x3022d6(0x138)](_0x528053){const _0x24f7fb=_0x3022d6;return this[_0x24f7fb(0x139)][_0x24f7fb(0x42d)](_0x528053),this;}[_0x3022d6(0xc1)](_0x2ceca0){const _0x192ac9=_0x3022d6;if(this[_0x192ac9(0x3e3)])return this[_0x192ac9(0xc2)]=this['_awaitingChangeset'],this[_0x192ac9(0x3e3)]=null,this;throw new Error(_0x192ac9(0xf5));}[_0x3022d6(0x19d)](_0x5bc87f){const _0x4bcf50=_0x3022d6;return this[_0x4bcf50(0x24f)](!!(_0x5bc87f!=null&&_0x5bc87f['isPermissionRej']));}[_0x3022d6(0x2b5)](){const _0x2ef8df=_0x3022d6;return this[_0x2ef8df(0x123)][_0x2ef8df(0x89)](V,this[_0x2ef8df(0x367)],this[_0x2ef8df(0x1f3)],this[_0x2ef8df(0x3e3)],this[_0x2ef8df(0x229)],this[_0x2ef8df(0x3ce)]);}['toggleOnline'](){return this;}[_0x3022d6(0x24f)](_0xd0fe24){const _0x59135d=_0x3022d6;return this['_injector'][_0x59135d(0x89)](B,this[_0x59135d(0x367)],this[_0x59135d(0x1f3)],this[_0x59135d(0x3e3)],this[_0x59135d(0x229)],this['_handler'],_0xd0fe24);}};H=K([m(0x7,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),m(0x8,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),m(0x9,o['Inject'](exports[_0x3022d6(0x174)])),m(0xa,o[_0x3022d6(0x22f)]),m(0xb,o['ICommandService']),m(0xc,o[_0x3022d6(0x114)]),m(0xd,_[_0x3022d6(0x1d1)])],H);function Tt(_0x365636,_0x213eda,_0x519fde,_0x345076,_0x2a479d,_0x46650e){const _0x31b58a=_0x3022d6;return _0x345076&&_0x2a479d[_0x31b58a(0x2ce)]?_0x365636[_0x31b58a(0x89)](x,_0x213eda,_0x519fde,_0x345076,_0x2a479d,_0x46650e):_0x345076?_0x365636[_0x31b58a(0x89)](k,_0x213eda,_0x519fde,_0x345076,_0x46650e):_0x2a479d['length']?_0x365636['createInstance']($,_0x213eda,_0x519fde,_0x2a479d,_0x46650e):_0x365636[_0x31b58a(0x89)](ce,_0x213eda,_0x519fde,_0x46650e);}var Us=Object[_0x3022d6(0x131)],ws=Object[_0x3022d6(0x2b4)],Ee=(_0x43132f,_0x4cfd39,_0x47ae75,_0x32b9c4)=>{const _0x4d8e18=_0x3022d6;for(var _0x3debec=_0x32b9c4>0x1?void 0x0:_0x32b9c4?ws(_0x4cfd39,_0x47ae75):_0x4cfd39,_0x4d80a7=_0x43132f[_0x4d8e18(0x2ce)]-0x1,_0x59500c;_0x4d80a7>=0x0;_0x4d80a7--)(_0x59500c=_0x43132f[_0x4d80a7])&&(_0x3debec=(_0x32b9c4?_0x59500c(_0x4cfd39,_0x47ae75,_0x3debec):_0x59500c(_0x3debec))||_0x3debec);return _0x32b9c4&&_0x3debec&&Us(_0x4cfd39,_0x47ae75,_0x3debec),_0x3debec;},I=(_0x13dcd9,_0x4ebab0)=>(_0x1c06de,_0x5a8d3e)=>_0x4ebab0(_0x1c06de,_0x5a8d3e,_0x13dcd9);exports['CollaborationController']=class extends o['RxDisposable']{constructor(_0x5e2e76,_0x491d1d,_0x5844e7){const _0xdd5bd2=_0x3022d6;super(),u(this,_0xdd5bd2(0x23d),new Map()),u(this,_0xdd5bd2(0x242),new v[(_0xdd5bd2(0x21b))]()),(this[_0xdd5bd2(0x123)]=_0x5e2e76,this['_collabSessionService']=_0x491d1d,this[_0xdd5bd2(0x17c)]=_0x5844e7,this[_0xdd5bd2(0x11b)]());}[_0x3022d6(0x147)](){const _0x1d1575=_0x3022d6;super[_0x1d1575(0x147)](),this[_0x1d1575(0x23d)][_0x1d1575(0x3d3)](_0x30bbd1=>_0x30bbd1[_0x1d1575(0x147)]()),this['_entities'][_0x1d1575(0xe4)]();}[_0x3022d6(0x18d)](_0x1fc72e){var _0x1442dc;return(_0x1442dc=this['_entities']['get'](_0x1fc72e))!=null?_0x1442dc:null;}[_0x3022d6(0x293)](_0x10637a){const _0x232a25=_0x3022d6,_0x2d920d=this[_0x232a25(0x18d)](_0x10637a);return _0x2d920d?v['of'](_0x2d920d):this[_0x232a25(0x242)][_0x232a25(0x23e)](E[_0x232a25(0x1c0)](_0x23d388=>_0x23d388['unitID']===_0x10637a));}[_0x3022d6(0x11b)](){const _0x449d3c=_0x3022d6;this[_0x449d3c(0x17c)]['getTypeOfUnitAdded$'](o[_0x449d3c(0x23f)][_0x449d3c(0x2c0)])[_0x449d3c(0x23e)](v[_0x449d3c(0xc7)](this['dispose$']),E['delay'](0x10))[_0x449d3c(0x265)](async _0x4c3865=>{const _0x44dcad=_0x449d3c,_0x5a4465=_0x4c3865[_0x44dcad(0x29c)](),_0x6faeec=await this[_0x44dcad(0x2fd)](_0x5a4465,j[_0x44dcad(0x2c0)]);this[_0x44dcad(0x23d)][_0x44dcad(0x182)](_0x5a4465,_0x6faeec);}),this[_0x449d3c(0x17c)][_0x449d3c(0x2f6)](o[_0x449d3c(0x23f)][_0x449d3c(0x237)])['pipe'](v['takeUntil'](this[_0x449d3c(0x374)]),E[_0x449d3c(0x3eb)](0x10))[_0x449d3c(0x23e)](E[_0x449d3c(0x1c0)](_0x1491ca=>!_0x1491ca[_0x449d3c(0x29c)]()[_0x449d3c(0x1f6)]('__')))['subscribe'](async _0x52a7e9=>{const _0x21fec0=_0x449d3c,_0x4d985b=_0x52a7e9[_0x21fec0(0x29c)](),_0x2c8f21=await this[_0x21fec0(0x2fd)](_0x4d985b,j['UNIVER_DOC']);this[_0x21fec0(0x23d)][_0x21fec0(0x182)](_0x4d985b,_0x2c8f21);}),v['merge'](this['_univerInstanceService'][_0x449d3c(0x3ae)](o[_0x449d3c(0x23f)]['UNIVER_SHEET']),this[_0x449d3c(0x17c)][_0x449d3c(0x3ae)](o['UniverInstanceType'][_0x449d3c(0x237)]))[_0x449d3c(0x23e)](v[_0x449d3c(0xc7)](this['dispose$']))['subscribe'](_0x17ebd4=>{const _0xf0ffea=_0x449d3c,_0x3bc1b9=_0x17ebd4[_0xf0ffea(0x29c)](),_0x1aaf75=this[_0xf0ffea(0x23d)][_0xf0ffea(0x84)](_0x3bc1b9);_0x1aaf75&&(_0x1aaf75[_0xf0ffea(0x147)](),this[_0xf0ffea(0x23d)][_0xf0ffea(0x1af)](_0x3bc1b9));});}async[_0x3022d6(0x2fd)](_0x41f989,_0x4fea51){const _0x4cddd4=_0x3022d6,_0x3e99df=await this[_0x4cddd4(0x3e2)][_0x4cddd4(0x3b2)](_0x41f989),_0x24a5ec=this[_0x4cddd4(0x123)][_0x4cddd4(0x89)](this[_0x4cddd4(0x352)](_0x4fea51),_0x41f989,_0x4fea51,_0x3e99df);return await _0x24a5ec['init'](),this[_0x4cddd4(0x242)][_0x4cddd4(0x116)](_0x24a5ec),_0x24a5ec;}[_0x3022d6(0x352)](_0x43312c){const _0x2d8253=_0x3022d6;switch(_0x43312c){case j['UNIVER_DOC']:return Ne;case j[_0x2d8253(0x2c0)]:return exports[_0x2d8253(0x3e4)];default:throw new Error(_0x2d8253(0x3a6)+_0x43312c);}}},exports['CollaborationController']=Ee([o['OnLifecycle'](o[_0x3022d6(0x32a)][_0x3022d6(0xd4)],exports[_0x3022d6(0x431)]),I(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x1,o[_0x3022d6(0x291)](exports['CollaborationSessionService'])),I(0x2,o[_0x3022d6(0xb8)])],exports[_0x3022d6(0x431)]);let fe=class extends o[_0x3022d6(0x460)]{constructor(_0x2fcf48,_0x36c9ba,_0x2ae391,_0x53e4c4,_0x3752b5,_0x11476b,_0x10fdc6,_0xb585cf,_0xc73805,_0x4722a6,_0xaac408,_0x4850a6,_0xb9699b){const _0x219175=_0x3022d6;super(),u(this,_0x219175(0x439),new v[(_0x219175(0x141))](null)),u(this,_0x219175(0x43b),this[_0x219175(0x439)][_0x219175(0x295)]()),u(this,_0x219175(0x2d5)),u(this,_0x219175(0x39a),!0x1),u(this,_0x219175(0x358),this[_0x219175(0x43b)]['pipe'](E[_0x219175(0x317)](_0x211726=>_0x211726?_0x211726[_0x219175(0x15b)]:D[_0x219175(0x316)]),E[_0x219175(0x3af)](0x1))),u(this,_0x219175(0x42f),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x219175(0x367)]=_0x2fcf48,this['_type']=_0x36c9ba,this[_0x219175(0x1b0)]=_0x2ae391,this[_0x219175(0x123)]=_0x53e4c4,this[_0x219175(0x3ea)]=_0x3752b5,this[_0x219175(0x238)]=_0x11476b,this[_0x219175(0x3b1)]=_0x10fdc6,this[_0x219175(0x254)]=_0xb585cf,this[_0x219175(0x38b)]=_0xc73805,this[_0x219175(0x467)]=_0x4722a6,this[_0x219175(0x38e)]=_0xaac408,this[_0x219175(0x3a2)]=_0x4850a6,this[_0x219175(0x15a)]=_0xb9699b);}get[_0x3022d6(0x3bb)](){return this['_state'];}async['init'](){const _0x1ebd90=_0x3022d6;if(this[_0x1ebd90(0x3bb)])throw new Error(_0x1ebd90(0x312));await this['_init']();}['pauseCollaboration'](){const _0x2b79cb=_0x3022d6;return this[_0x2b79cb(0x39a)]=!0x0,o[_0x2b79cb(0x24c)](()=>{const _0x404824=_0x2b79cb;this[_0x404824(0x39a)]=!0x1,this[_0x404824(0x3cd)]();});}[_0x3022d6(0xfe)](_0x4523e6){const _0x2ce5da=_0x3022d6;this[_0x2ce5da(0x2d5)]=_0x4523e6,this[_0x2ce5da(0x439)][_0x2ce5da(0x116)](_0x4523e6);}async['_init'](){const _0x43f2da=_0x3022d6;var _0x5af108;return this[_0x43f2da(0xfe)](await this[_0x43f2da(0x344)]()),this['_singleActiveUnitService']&&((_0x5af108=this[_0x43f2da(0x15a)])==null||_0x5af108[_0x43f2da(0x313)](this[_0x43f2da(0x367)]),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x15a)][_0x43f2da(0x32e)](this['unitID'])[_0x43f2da(0x265)](_0x44c433=>{const _0x10b895=_0x43f2da;this['_logService'][_0x10b895(0xf9)](_0x10b895(0x3dc),_0x10b895(0x429),_0x44c433),_0x44c433===Ct[_0x10b895(0x2e1)]?(this[_0x10b895(0x38e)]['show']({'content':this[_0x10b895(0x3b1)]['t'](_0x10b895(0x1e6)),'type':Q[_0x10b895(0x1e5)]['Warning']}),this[_0x10b895(0x3a2)][_0x10b895(0x27f)](new p[(_0x10b895(0x32f))](this[_0x10b895(0x367)])['id'],!0x1)):this[_0x10b895(0x3a2)]['updatePermissionPoint'](new p[(_0x10b895(0x32f))](this[_0x10b895(0x367)])['id'],!0x0);})))),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x1b0)][_0x43f2da(0x370)][_0x43f2da(0x265)](_0x4ed6b5=>{const _0x542ab1=_0x43f2da;_0x4ed6b5===G[_0x542ab1(0x194)]?this[_0x542ab1(0x30a)]():_0x4ed6b5===G['OFFLINE']&&this[_0x542ab1(0x20b)]();}))),this[_0x43f2da(0x14a)](o[_0x43f2da(0x24c)](this[_0x43f2da(0x1b0)][_0x43f2da(0x144)][_0x43f2da(0x265)](_0x1d72de=>{const _0x155acd=_0x43f2da;try{switch(_0x1d72de['eventID']){case _[_0x155acd(0x26c)][_0x155acd(0x310)]:{this[_0x155acd(0x381)](_['parseProtocolChangeset'](_0x1d72de[_0x155acd(0x2be)]));break;}case _[_0x155acd(0x26c)][_0x155acd(0x420)]:{this['_onRemoteACK'](_0x1d72de['data']);break;}case _[_0x155acd(0x26c)][_0x155acd(0x459)]:{this[_0x155acd(0x3e7)]();break;}case _[_0x155acd(0x26c)][_0x155acd(0x127)]:{this[_0x155acd(0x88)](_0x1d72de['data'][_0x155acd(0x183)][_0x155acd(0x317)](_0x393630=>_[_0x155acd(0xe6)](_0x393630)));break;}case _['CollaborationEvent'][_0x155acd(0x12a)]:this[_0x155acd(0x3e7)]({'isPermissionRej':!0x0});}}catch(_0x1a9945){throw console[_0x155acd(0x404)](_0x155acd(0x44a),_0x1a9945),_0x1a9945;}}))),this[_0x43f2da(0x2d5)];}[_0x3022d6(0x2bc)](){const _0x176e7b=_0x3022d6;this[_0x176e7b(0x42f)]=!0x1;}[_0x3022d6(0xec)](){const _0x301c7e=_0x3022d6;if(this[_0x301c7e(0x42f)])throw new Error(_0x301c7e(0x29f));this[_0x301c7e(0x42f)]=!0x0;}[_0x3022d6(0xa4)](_0x4c66c3){const _0x4dcb5b=_0x3022d6;this[_0x4dcb5b(0xec)](),this[_0x4dcb5b(0xfe)](this[_0x4dcb5b(0x2d5)][_0x4dcb5b(0x39c)](_0x4c66c3)),this[_0x4dcb5b(0x2bc)]();}['_onRemoteChangeset'](_0x3ee877){const _0x2829a5=_0x3022d6;if(!(_0x3ee877[_0x2829a5(0x33d)]<=this[_0x2829a5(0x254)][_0x2829a5(0x33a)](this['unitID']))){if(this[_0x2829a5(0x39a)]){this[_0x2829a5(0xa1)][_0x2829a5(0x42d)](_0x3ee877);return;}this[_0x2829a5(0xd5)](_0x3ee877);}}['_exhaustRemoteChangesetQueue'](){const _0x3731a0=_0x3022d6;this[_0x3731a0(0xa1)][_0x3731a0(0x3d3)](_0x239ddf=>this['_applyRemoteChangeset'](_0x239ddf)),this[_0x3731a0(0xa1)]=[];}[_0x3022d6(0xd5)](_0x4f01ec){const _0x241cc6=_0x3022d6,_0x2c2a37=this['_compressMutationService'][_0x241cc6(0x161)][_0x241cc6(0x3d2)](this['_compressMutationService'][_0x241cc6(0x161)][_0x241cc6(0x35a)]()['COMPRESS_MUTATION_APPLY'])(_0x4f01ec['mutations'],null)||_0x4f01ec['mutations'],_0x5b6ce1={..._0x4f01ec,'mutations':_0x2c2a37};this[_0x241cc6(0xec)](),this[_0x241cc6(0xfe)](this['_state'][_0x241cc6(0x138)](_0x5b6ce1)),this[_0x241cc6(0x2bc)]();}['_onRemoteACK'](_0x538748){const _0x45594f=_0x3022d6;this[_0x45594f(0xec)](),this[_0x45594f(0xfe)](this['_state'][_0x45594f(0xc1)](_0x538748)),this[_0x45594f(0x2bc)]();}[_0x3022d6(0x3e7)](_0x30432c){const _0x297d39=_0x3022d6;this[_0x297d39(0xec)](),this[_0x297d39(0xfe)](this[_0x297d39(0x2d5)]['onRemoteRej'](_0x30432c)),this[_0x297d39(0x2bc)]();}[_0x3022d6(0x88)](_0x432633){const _0x473506=_0x3022d6;if(!(this['_state']instanceof H))throw new TypeError(_0x473506(0x1fb));const _0x56b3a8=_0x432633[_0x473506(0x317)](_0x40751a=>{const _0x4d9300=_0x473506,_0x2ba300=this['_compressMutationService'][_0x4d9300(0x161)][_0x4d9300(0x3d2)](this[_0x4d9300(0x238)][_0x4d9300(0x161)]['getInterceptPoints']()[_0x4d9300(0x9f)])(_0x40751a[_0x4d9300(0x2a5)],null)||_0x40751a[_0x4d9300(0x2a5)];return{..._0x40751a,'mutations':_0x2ba300};});this[_0x473506(0xec)](),this[_0x473506(0xfe)](this[_0x473506(0x2d5)][_0x473506(0x31e)](_0x56b3a8)),this['_unlockTransition']();}[_0x3022d6(0x20b)](){const _0x14a7ea=_0x3022d6;this['_lockTransition'](),this[_0x14a7ea(0xfe)](this[_0x14a7ea(0x2d5)][_0x14a7ea(0x2b5)]()),this[_0x14a7ea(0x2bc)]();}[_0x3022d6(0x30a)](){const _0x542acb=_0x3022d6;this[_0x542acb(0xec)](),this[_0x542acb(0xfe)](this[_0x542acb(0x2d5)][_0x542acb(0xbf)]()),this['_unlockTransition']();}async[_0x3022d6(0x344)](){return new Promise(_0x421371=>{const _0x595c85=_0xbc10;this[_0x595c85(0x1b0)]['sessionStatus$']['pipe'](E[_0x595c85(0x2e9)](0x1))['subscribe'](async _0x4594c6=>{const _0xa18a84=_0x595c85;_0x421371(await this['_createInitialStateImpl'](_0x4594c6===G[_0xa18a84(0x194)]));});});}['_createHandler'](){const _0x1d17a6=this['unitID'];return{'onStateChange':(_0x40fd66,_0x35632b)=>{const _0x44df82=_0xbc10;if(_0x40fd66!==this[_0x44df82(0x2d5)])throw new Error(_0x44df82(0x412)+_0x40fd66[_0x44df82(0x15b)]+'\x0aAfter:\x20'+_0x35632b[_0x44df82(0x15b)]+_0x44df82(0x3cb)+this[_0x44df82(0x2d5)][_0x44df82(0x15b)]);this[_0x44df82(0xfe)](_0x35632b);},'onSendChangeset':_0x1c2eb6=>{const _0x4b5d49=_0xbc10,_0x4c3faa={'eventID':_[_0x4b5d49(0x26c)][_0x4b5d49(0x37d)],'data':{'unitID':_0x1c2eb6[_0x4b5d49(0x367)],'unitType':this['_type'],'changeset':_0x1c2eb6,'memberID':this[_0x4b5d49(0x1b0)][_0x4b5d49(0x3f2)]()}};this[_0x4b5d49(0x1b0)]['send'](_0x4c3faa,this['unitID']);},'onMissingChangesets':({from:_0x175b10,to:_0x18ee4f})=>{const _0x22280b=_0xbc10;this[_0x22280b(0x38b)]['debug']('[CollaborationEntity]',_0x22280b(0x26d)+_0x175b10+_0x22280b(0xc6)+_0x18ee4f);const _0x465f5b={'eventID':_[_0x22280b(0x26c)][_0x22280b(0x44f)],'data':{'unitID':_0x1d17a6,'unitType':this[_0x22280b(0x18a)],'from':_0x175b10,'to':_0x18ee4f}};this['_session'][_0x22280b(0x362)](_0x465f5b,this[_0x22280b(0x367)]);}};}async['_createInitialStateImpl'](_0x4f1e1c){const _0x4fd687=_0x3022d6;var _0x3cfc1d,_0x2f86c1;const _0x53ab13=await this[_0x4fd687(0x3ea)][_0x4fd687(0x3b8)](this[_0x4fd687(0x367)]),_0x1a5d2d=(_0x3cfc1d=_0x53ab13==null?void 0x0:_0x53ab13[_0x4fd687(0x2a5)])!=null?_0x3cfc1d:[],_0x24c06e=(_0x2f86c1=_0x53ab13==null?void 0x0:_0x53ab13[_0x4fd687(0xca)])!=null?_0x2f86c1:null,_0x58ebfc=this[_0x4fd687(0x367)];try{this[_0x4fd687(0x243)](_0x24c06e,_0x1a5d2d);}catch(_0x184ad5){this[_0x4fd687(0x38b)][_0x4fd687(0x404)](_0x184ad5);}const _0x5aaee9=this['_createHandler']();if(_0x4f1e1c){const _0x2a1169=Tt(this[_0x4fd687(0x123)],_0x58ebfc,this[_0x4fd687(0x18a)],_0x24c06e,_0x1a5d2d,_0x5aaee9);return _0x2a1169 instanceof $?_0x2a1169[_0x4fd687(0x455)]():(_0x2a1169 instanceof x||_0x2a1169 instanceof k)&&_0x2a1169[_0x4fd687(0x40f)](),_0x2a1169;}return this[_0x4fd687(0x123)]['createInstance'](V,_0x58ebfc,this[_0x4fd687(0x18a)],_0x24c06e,_0x1a5d2d,_0x5aaee9);}[_0x3022d6(0x243)](_0x47d26e,_0x2e7385){const _0x53e60f=_0x3022d6;var _0x3f77fb,_0x7bfbbc;const _0x5f01cf=this[_0x53e60f(0x238)][_0x53e60f(0x161)][_0x53e60f(0x3d2)](this[_0x53e60f(0x238)]['interceptor'][_0x53e60f(0x35a)]()['COMPRESS_MUTATION_APPLY']);(_0x3f77fb=_0x5f01cf((_0x47d26e==null?void 0x0:_0x47d26e[_0x53e60f(0x2a5)])||[],null))==null||_0x3f77fb[_0x53e60f(0x3d3)](_0x4052a5=>this[_0x53e60f(0x467)][_0x53e60f(0x2a3)](_0x4052a5['id'],_0x4052a5[_0x53e60f(0xd7)])),(_0x7bfbbc=_0x5f01cf(_0x2e7385||[],null))==null||_0x7bfbbc['forEach'](_0x4465d1=>this[_0x53e60f(0x467)][_0x53e60f(0x2a3)](_0x4465d1['id'],_0x4465d1[_0x53e60f(0xd7)]));}};fe=Ee([I(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x4,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),I(0x5,o['Inject'](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),I(0x7,o['Inject'](_['RevisionService'])),I(0x8,o[_0x3022d6(0x22f)]),I(0x9,o['ICommandService']),I(0xa,L[_0x3022d6(0xaf)]),I(0xb,o[_0x3022d6(0x346)]),I(0xc,o[_0x3022d6(0x37a)](pe))],fe);let Ne=class extends fe{constructor(_0xeb18b9,_0x3c5401,_0x2f06fa,_0x5b1f2c,_0x5d1b2b,_0x5b4b3d,_0x508807,_0x2f40f6,_0x3d5994,_0x594176,_0x5d61c8,_0xedf129,_0x211053,_0x28e66c,_0x15bcb7,_0x51abe7,_0x336df5){const _0x22baa7=_0x3022d6;super(_0xeb18b9,_0x3c5401,_0x2f06fa,_0x5b1f2c,_0x5d1b2b,_0x5b4b3d,_0x508807,_0x2f40f6,_0x211053,_0x28e66c,_0x15bcb7,_0x51abe7,_0x336df5),this[_0x22baa7(0x367)]=_0xeb18b9,this['type']=_0x3c5401,this[_0x22baa7(0x31b)]=_0x2f06fa,this[_0x22baa7(0xce)]=_0x3d5994,this[_0x22baa7(0x3c0)]=_0x594176,this['_docTransformSelectionsService']=_0x5d61c8,this[_0x22baa7(0x296)]=_0xedf129;}[_0x3022d6(0xfa)](){const _0x5a9065=_0x3022d6,_0x38173f=super[_0x5a9065(0xfa)]();return _0x38173f[_0x5a9065(0x440)]=_0x2d216c=>this['_docTransformIMECacheService'][_0x5a9065(0x377)](_0x2d216c),_0x38173f[_0x5a9065(0x118)]=_0x3dc004=>this[_0x5a9065(0x2af)]['transformSelections'](_0x3dc004),_0x38173f[_0x5a9065(0x1b2)]=_0x447116=>this[_0x5a9065(0x296)]['syncEditingCollabCursor'](_0x447116),_0x38173f['onTransformRemoteChangesetByIMECache']=_0x54ff5e=>this[_0x5a9065(0x3c0)][_0x5a9065(0x364)](_0x54ff5e),_0x38173f;}async[_0x3022d6(0x11b)](){const _0x175d40=_0x3022d6,_0x4e8d67=await super[_0x175d40(0x11b)]();return this[_0x175d40(0x14a)](this[_0x175d40(0x467)]['onCommandExecuted']((_0xfe5c4e,_0x101370)=>{const _0x96331=_0x175d40;if(_0xfe5c4e[_0x96331(0x1f3)]!==o[_0x96331(0x2c5)][_0x96331(0x146)]||_0x101370!=null&&_0x101370[_0x96331(0x424)]||_0x101370!=null&&_0x101370[_0x96331(0x38a)])return;const _0x3479e3=_0xfe5c4e[_0x96331(0xd7)];if((_0x3479e3==null?void 0x0:_0x3479e3['unitId'])!==this[_0x96331(0x367)])return;let _0x1e1bde=_0xfe5c4e;if(_0x1e1bde['id']===P[_0x96331(0x365)]['id']){const _0x319844=_0x1e1bde[_0x96331(0xd7)];_0x1e1bde={'id':P[_0x96331(0x365)]['id'],'type':o[_0x96331(0x2c5)][_0x96331(0x146)],'params':{'unitId':_0x319844['unitId'],'actions':_0x319844[_0x96331(0x2d6)],'textRanges':null}};}const _0x3bb770=this[_0x96331(0x238)][_0x96331(0x161)][_0x96331(0x3d2)](this[_0x96331(0x238)][_0x96331(0x161)][_0x96331(0x35a)]()[_0x96331(0x30b)])([_0x1e1bde],null)||[_0x1e1bde];this['_onLocalMutation'](_0x3bb770[0x0]);})),_0x4e8d67;}};Ne=Ee([I(0x3,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),I(0x4,o['Inject'](exports[_0x3022d6(0x174)])),I(0x5,o[_0x3022d6(0x291)](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o['LocaleService'])),I(0x7,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),I(0x8,o[_0x3022d6(0x291)](P[_0x3022d6(0x287)])),I(0x9,o[_0x3022d6(0x291)](ve)),I(0xa,o[_0x3022d6(0x291)](me)),I(0xb,o['Inject'](We)),I(0xc,o[_0x3022d6(0x22f)]),I(0xd,o['ICommandService']),I(0xe,L['IMessageService']),I(0xf,o[_0x3022d6(0x346)]),I(0x10,o[_0x3022d6(0x37a)](pe))],Ne),exports[_0x3022d6(0x3e4)]=class extends fe{constructor(_0x20a9e3,_0xe2094e,_0x394262,_0x3c3334,_0x1f805c,_0x219517,_0x1d8671,_0x235d34,_0x275878,_0x159fa1,_0x259978,_0x522688,_0x1a4ce0,_0x2338f3){const _0x22b2f6=_0x3022d6;super(_0x20a9e3,_0xe2094e,_0x394262,_0x3c3334,_0x1f805c,_0x219517,_0x1d8671,_0x235d34,_0x159fa1,_0x259978,_0x522688,_0x1a4ce0,_0x2338f3),this[_0x22b2f6(0x367)]=_0x20a9e3,this[_0x22b2f6(0x1f3)]=_0xe2094e,this[_0x22b2f6(0x31b)]=_0x394262,this[_0x22b2f6(0x44e)]=_0x275878;}[_0x3022d6(0xfa)](){const _0x22c396=_0x3022d6,_0x53d7a8=super[_0x22c396(0xfa)]();return _0x53d7a8[_0x22c396(0x118)]=_0x4b0ea9=>this[_0x22c396(0x44e)][_0x22c396(0xbd)](_0x4b0ea9),_0x53d7a8;}async[_0x3022d6(0x11b)](){const _0x161557=_0x3022d6,_0x9e3d2b=await super[_0x161557(0x11b)]();return this[_0x161557(0x14a)](this['_commandService'][_0x161557(0x2a1)]((_0x17ddd6,_0x29f65b)=>{const _0x176451=_0x161557;if(_0x17ddd6[_0x176451(0x1f3)]!==o['CommandType'][_0x176451(0x146)]||_0x29f65b!=null&&_0x29f65b[_0x176451(0x424)]||_0x29f65b!=null&&_0x29f65b[_0x176451(0x38a)])return;const _0x40204d=_0x17ddd6[_0x176451(0xd7)];if((_0x40204d==null?void 0x0:_0x40204d[_0x176451(0x347)])!==this[_0x176451(0x367)])return;const _0x2ff0dc=_0x17ddd6,_0xb90525=this[_0x176451(0x238)][_0x176451(0x161)][_0x176451(0x3d2)](this['_compressMutationService'][_0x176451(0x161)][_0x176451(0x35a)]()[_0x176451(0x30b)])([_0x2ff0dc],null)||[_0x2ff0dc];this[_0x176451(0xa4)](_0xb90525[0x0]);})),_0x9e3d2b;}},exports[_0x3022d6(0x3e4)]=Ee([I(0x3,o[_0x3022d6(0x291)](o['Injector'])),I(0x4,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),I(0x5,o[_0x3022d6(0x291)](_['CompressMutationService'])),I(0x6,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)])),I(0x7,o[_0x3022d6(0x291)](_[_0x3022d6(0x309)])),I(0x8,o[_0x3022d6(0x291)](ge)),I(0x9,o[_0x3022d6(0x22f)]),I(0xa,o[_0x3022d6(0x3e6)]),I(0xb,L[_0x3022d6(0xaf)]),I(0xc,o[_0x3022d6(0x346)]),I(0xd,o[_0x3022d6(0x37a)](pe))],exports[_0x3022d6(0x3e4)]);const st=[_0x3022d6(0x3bf),_0x3022d6(0x341),_0x3022d6(0x36c),_0x3022d6(0x3b6),_0x3022d6(0x321),_0x3022d6(0xb7)];class Fe extends o[_0x3022d6(0x1c9)]{constructor(){const _0x3f5e7b=_0x3022d6;super(...arguments),u(this,_0x3f5e7b(0x3dd),new Map()),u(this,_0x3f5e7b(0x13b),0x0);}['assignAColorForMemberID'](_0x16f695){const _0x1f0d29=_0x3022d6;if(this[_0x1f0d29(0x3dd)][_0x1f0d29(0x151)](_0x16f695))return this['_assignedColors'][_0x1f0d29(0x84)](_0x16f695);const _0x2c8883=st[this[_0x1f0d29(0x13b)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%st['length'],this[_0x1f0d29(0x3dd)][_0x1f0d29(0x182)](_0x16f695,_0x2c8883),_0x2c8883;}}var Ms=Object[_0x3022d6(0x131)],ys=Object['getOwnPropertyDescriptor'],Ns=(_0x4ce4cb,_0x5b10f1,_0x5d8f8d,_0x4fc7ed)=>{const _0x21fc65=_0x3022d6;for(var _0x16b2df=_0x4fc7ed>0x1?void 0x0:_0x4fc7ed?ys(_0x5b10f1,_0x5d8f8d):_0x5b10f1,_0x491ca1=_0x4ce4cb[_0x21fc65(0x2ce)]-0x1,_0x3b3ffd;_0x491ca1>=0x0;_0x491ca1--)(_0x3b3ffd=_0x4ce4cb[_0x491ca1])&&(_0x16b2df=(_0x4fc7ed?_0x3b3ffd(_0x5b10f1,_0x5d8f8d,_0x16b2df):_0x3b3ffd(_0x16b2df))||_0x16b2df);return _0x4fc7ed&&_0x16b2df&&Ms(_0x5b10f1,_0x5d8f8d,_0x16b2df),_0x16b2df;},q=(_0x534e98,_0x4bd84d)=>(_0x127c99,_0x5337fc)=>_0x4bd84d(_0x127c99,_0x5337fc,_0x534e98);const Ls=0x12c,As=0x64,js=()=>{let _0x1e0ac6=[],_0x4c0342=!0x1;return _0x3a1542=>{_0x1e0ac6['push'](_0x3a1542),_0x4c0342||(_0x4c0342=!0x0,setTimeout(()=>{const _0x5b430c=_0xbc10;_0x1e0ac6[_0x5b430c(0x3d3)](_0x59f2d3=>_0x59f2d3()),_0x1e0ac6=[],_0x4c0342=!0x1;}));};};let Le=class extends o[_0x3022d6(0x460)]{constructor(_0x3d2681,_0x147c26,_0x31fe81,_0x5ab6c4,_0x22b641,_0x35ea40,_0x4a875f,_0x575d2c){const _0x23190b=_0x3022d6;super(),u(this,_0x23190b(0xa7),!0x1),u(this,_0x23190b(0x11b),!0x1),u(this,_0x23190b(0x130),new v[(_0x23190b(0x141))](new Map())),u(this,_0x23190b(0x210),this['_cursorInfo$'][_0x23190b(0x295)]()),u(this,_0x23190b(0x3fa),new v[(_0x23190b(0x141))]([])),u(this,_0x23190b(0xf3),this[_0x23190b(0x3fa)][_0x23190b(0x23e)](v[_0x23190b(0x280)](Ls))),u(this,_0x23190b(0x1f1),xe((_0x387b75,_0x8e0f08)=>{const _0x292851=_0x23190b,_0x158d4d={'eventID':_['CollaborationEvent'][_0x292851(0x426)],'data':{'unitID':this['unitID'],'memberID':this[_0x292851(0x1b0)]['getMemberID'](),'selection':Ke[_0x292851(0x1c1)](_0x387b75,_0x8e0f08[_0x292851(0x271)])}};this['_session'][_0x292851(0x362)](_0x158d4d,this[_0x292851(0x367)]);},As)),(this[_0x23190b(0x367)]=_0x3d2681,this[_0x23190b(0x1b0)]=_0x147c26,this[_0x23190b(0x123)]=_0x31fe81,this[_0x23190b(0x26b)]=_0x5ab6c4,this[_0x23190b(0x16b)]=_0x22b641,this[_0x23190b(0x17c)]=_0x35ea40,this[_0x23190b(0x467)]=_0x4a875f,this['_refRangeService']=_0x575d2c);}get['cursorInfo'](){const _0x585e9c=_0x3022d6;return this[_0x585e9c(0x130)]['getValue']();}get[_0x3022d6(0x240)](){const _0x1475da=_0x3022d6;return this[_0x1475da(0x3fa)][_0x1475da(0x386)]();}['dispose'](){const _0x347ccf=_0x3022d6;super[_0x347ccf(0x147)](),this[_0x347ccf(0x130)]['next'](new Map()),this['_cursorInfo$'][_0x347ccf(0x19e)](),this[_0x347ccf(0x3fa)][_0x347ccf(0x116)]([]),this['_roomMembers$'][_0x347ccf(0x19e)]();}[_0x3022d6(0x388)](){const _0x5780d6=_0x3022d6;this[_0x5780d6(0x11b)]||(this[_0x5780d6(0x11b)]=!0x0,this[_0x5780d6(0x1b0)]['sessionStatus$'][_0x5780d6(0x23e)](v['takeUntil'](this[_0x5780d6(0x374)]))[_0x5780d6(0x265)](_0x1f8f9f=>{const _0x149056=_0x5780d6;_0x1f8f9f===G[_0x149056(0x194)]?this[_0x149056(0x30a)]():this[_0x149056(0x20b)]();}),this['_session']['event$'][_0x5780d6(0x23e)](v['takeUntil'](this['dispose$']))[_0x5780d6(0x265)](_0x269997=>{const _0x55fa8d=_0x5780d6,_0x9f1c9f=_0x269997[_0x55fa8d(0x31c)];_0x9f1c9f===_[_0x55fa8d(0x26c)]['UPDATE_CURSOR']&&this[_0x55fa8d(0xab)](_0x269997),_0x9f1c9f===_['CollaborationEvent'][_0x55fa8d(0x1b6)]&&this['_onCursorDelete'](_0x269997);}),this[_0x5780d6(0x3f9)](),this[_0x5780d6(0x14a)](this['_commandService']['onCommandExecuted'](_0x33ee35=>{const _0x56d2b4=_0x5780d6;if(this['_online']&&_0x33ee35['id']===p[_0x56d2b4(0x231)]['id']&&_0x33ee35[_0x56d2b4(0xd7)][_0x56d2b4(0x347)]===this['unitID']){const _0x130564=_0x33ee35['params'];this['_updateLocalCursor'](_0x130564[_0x56d2b4(0x3d1)],_0x130564[_0x56d2b4(0x2e7)][0x0]);}})));}['_onCursorUpdate'](_0x453cd2){const _0x15ff59=_0x3022d6;var _0x35e629,_0x3b6f85;const {memberID:_0xfe6f7f,selection:_0x352e4e}=_0x453cd2[_0x15ff59(0x2be)],{sheetName:_0xd96678,range:_0x2b5ebc}=Ke[_0x15ff59(0x1a8)](_0x352e4e),_0xe8b54={'name':(_0x3b6f85=(_0x35e629=this[_0x15ff59(0x16b)][_0x15ff59(0x18f)](this[_0x15ff59(0x367)],_0xfe6f7f))==null?void 0x0:_0x35e629[_0x15ff59(0x1fa)])!=null?_0x3b6f85:'Unknown\x20user','range':this[_0x15ff59(0x371)](_0xd96678,_0x2b5ebc),'sheetID':_0xd96678,'color':this['_colorAssignService'][_0x15ff59(0x288)](_0xfe6f7f),'selection':_0x352e4e},_0x4fd53d=this['cursorInfo'];_0x4fd53d[_0x15ff59(0x182)](_0xfe6f7f,_0xe8b54),this[_0x15ff59(0x130)][_0x15ff59(0x116)](_0x4fd53d);}[_0x3022d6(0x16e)](_0x5c0d55){const _0x216e3b=_0x3022d6,{memberID:_0xa15997}=_0x5c0d55[_0x216e3b(0x2be)],_0x1c9452=this[_0x216e3b(0x3ca)];_0x1c9452[_0x216e3b(0x1af)](_0xa15997),this[_0x216e3b(0x130)][_0x216e3b(0x116)](_0x1c9452);}[_0x3022d6(0x371)](_0x20aaa2,_0xb1ee8f){const _0x32a65c=_0x3022d6;var _0x10e095,_0x2c6407;const _0x2163a2=(_0x2c6407=(_0x10e095=this[_0x32a65c(0x17c)][_0x32a65c(0x95)](this[_0x32a65c(0x367)]))==null?void 0x0:_0x10e095['getSheetBySheetId'](_0x20aaa2))==null?void 0x0:_0x2c6407[_0x32a65c(0x34a)]();return(_0x2163a2==null?void 0x0:_0x2163a2[_0x32a65c(0x99)](_0x4c8cbd=>o['Rectangle']['contains'](_0x4c8cbd,_0xb1ee8f)))||_0xb1ee8f;}[_0x3022d6(0x3f9)](){const _0x50022e=_0x3022d6,_0x3ae3cf=new o['DisposableCollection'](),_0x58ad63=js(),_0x47dffb=()=>{const _0x2d729a=_0xbc10;_0x3ae3cf[_0x2d729a(0x147)]();const _0x588c79=(_0x171abd,_0x583f02,_0x3f5b57,_0xb3c34d)=>{const _0x7bafcc=_0x2d729a;let _0x529413=[];switch(_0x171abd['id']){case p['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x529413=p[_0x7bafcc(0x369)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['DeleteRangeMoveUpCommandId']:{_0x529413=p[_0x7bafcc(0x148)](_0x171abd,_0xb3c34d);break;}case p['EffectRefRangId'][_0x7bafcc(0x34e)]:{_0x529413=p[_0x7bafcc(0x1f0)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x2e3)]:{_0x529413=p[_0x7bafcc(0x432)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x1e8)]:{_0x529413=p[_0x7bafcc(0x16a)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0xe3)]:{_0x529413=p['handleInsertRow'](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)][_0x7bafcc(0x86)]:{_0x529413=p['handleMoveRange'](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['RemoveColCommandId']:{_0x529413=p[_0x7bafcc(0x323)](_0x171abd,_0xb3c34d);break;}case p[_0x7bafcc(0x1df)]['RemoveRowCommandId']:{_0x529413=p[_0x7bafcc(0x442)](_0x171abd,_0xb3c34d);break;}}const _0x1eea94=p[_0x7bafcc(0xb6)](_0x529413,_0xb3c34d),_0x39bf5f=this[_0x7bafcc(0x3ca)][_0x7bafcc(0x84)](_0x583f02);if(_0x39bf5f&&_0x1eea94){const _0x3ed2d0={..._0x39bf5f,'range':_0x1eea94};this['cursorInfo'][_0x7bafcc(0x182)](_0x583f02,_0x3ed2d0),_0x58ad63(()=>{const _0x12bd55=_0x7bafcc,_0x34897d=this[_0x12bd55(0x286)][_0x12bd55(0x356)](_0x1eea94,_0x573923=>(_0x34897d[_0x12bd55(0x147)](),_0x588c79(_0x573923,_0x583f02,_0x3f5b57,_0x1eea94)));_0x3ae3cf[_0x12bd55(0xe1)](_0x34897d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2d729a(0x3d3)]((_0x5d2e9c,_0x1b5031)=>{const _0x35ccf0=_0x2d729a,{range:_0x3897a8,sheetID:_0x208c31}=_0x5d2e9c,_0x5ee685=this[_0x35ccf0(0x286)]['registerRefRange'](_0x3897a8,_0x58b2fd=>(_0x5ee685[_0x35ccf0(0x147)](),_0x588c79(_0x58b2fd,_0x1b5031,_0x208c31,_0x3897a8)));_0x3ae3cf['add'](_0x5ee685);});};this[_0x50022e(0x14a)](o[_0x50022e(0x24c)](this[_0x50022e(0x130)]['subscribe'](()=>{_0x47dffb();})));}['_toggleOnline'](){const _0x2a960c=_0x3022d6;var _0x175a4b,_0x8198c6;if(this[_0x2a960c(0xa7)]=!0x0,((_0x175a4b=this['_univerInstanceService'][_0x2a960c(0x45c)]())==null?void 0x0:_0x175a4b[_0x2a960c(0x29c)]())!==this[_0x2a960c(0x367)])return;const _0x4909eb=(_0x8198c6=this[_0x2a960c(0x123)][_0x2a960c(0x84)](p[_0x2a960c(0x303)])[_0x2a960c(0xbe)]())==null?void 0x0:_0x8198c6[0x0],_0x59ade2=this[_0x2a960c(0x17c)]['getCurrentUnitForType'](o[_0x2a960c(0x23f)][_0x2a960c(0x2c0)])[_0x2a960c(0x34b)]();_0x4909eb&&_0x59ade2&&this[_0x2a960c(0x1f1)](_0x59ade2[_0x2a960c(0x3a8)](),_0x4909eb);}[_0x3022d6(0x20b)](){this['_online']=!0x1;}};Le=Ns([q(0x2,o['Inject'](o[_0x3022d6(0x448)])),q(0x3,o[_0x3022d6(0x291)](Fe)),q(0x4,o['Inject'](Y)),q(0x5,o[_0x3022d6(0xb8)]),q(0x6,o[_0x3022d6(0x3e6)]),q(0x7,o[_0x3022d6(0x291)](p['RefRangeService']))],Le);var $s=Object[_0x3022d6(0x131)],xs=Object[_0x3022d6(0x2b4)],Hs=(_0x482d3e,_0x3e2e4f,_0x9ccfe9,_0x31d24d)=>{const _0x1a63a0=_0x3022d6;for(var _0x2e68cc=_0x31d24d>0x1?void 0x0:_0x31d24d?xs(_0x3e2e4f,_0x9ccfe9):_0x3e2e4f,_0x4a462e=_0x482d3e[_0x1a63a0(0x2ce)]-0x1,_0x30c1e3;_0x4a462e>=0x0;_0x4a462e--)(_0x30c1e3=_0x482d3e[_0x4a462e])&&(_0x2e68cc=(_0x31d24d?_0x30c1e3(_0x3e2e4f,_0x9ccfe9,_0x2e68cc):_0x30c1e3(_0x2e68cc))||_0x2e68cc);return _0x31d24d&&_0x2e68cc&&$s(_0x3e2e4f,_0x9ccfe9,_0x2e68cc),_0x2e68cc;},F=(_0x27e7fe,_0x423bc3)=>(_0x37ba10,_0x349b52)=>_0x423bc3(_0x37ba10,_0x349b52,_0x27e7fe);const ks=0x12c,Bs=0x64;let Ae=class extends o[_0x3022d6(0x460)]{constructor(_0x499004,_0x398ecf,_0x323392,_0x38b5bf,_0x57cd51,_0x496d33,_0x17988b,_0x51f4f9,_0x3912e1){const _0x1e3861=_0x3022d6;super(),u(this,_0x1e3861(0xa7),!0x1),u(this,_0x1e3861(0x11b),!0x1),u(this,_0x1e3861(0x130),new v[(_0x1e3861(0x141))](new Map())),u(this,_0x1e3861(0x210),this[_0x1e3861(0x130)][_0x1e3861(0x295)]()),u(this,_0x1e3861(0x3fa),new v['BehaviorSubject']([])),u(this,_0x1e3861(0xf3),this[_0x1e3861(0x3fa)][_0x1e3861(0x23e)](v[_0x1e3861(0x280)](ks))),u(this,_0x1e3861(0x1f1),xe(_0x4ce576=>{const _0x2a4bfb=_0x1e3861,_0x18c8c7={'eventID':_[_0x2a4bfb(0x26c)][_0x2a4bfb(0x426)],'data':{'unitID':this[_0x2a4bfb(0x367)],'memberID':this['_session'][_0x2a4bfb(0x3f2)](),'selection':bt(_0x4ce576)}};this['_session'][_0x2a4bfb(0x362)](_0x18c8c7,this[_0x2a4bfb(0x367)]);},Bs)),(this[_0x1e3861(0x367)]=_0x499004,this[_0x1e3861(0x1b0)]=_0x398ecf,this[_0x1e3861(0x123)]=_0x323392,this[_0x1e3861(0x26b)]=_0x38b5bf,this[_0x1e3861(0x16b)]=_0x57cd51,this['_syncEditingCollabCursorService']=_0x496d33,this[_0x1e3861(0x223)]=_0x17988b,this['_univerInstanceService']=_0x51f4f9,this[_0x1e3861(0x467)]=_0x3912e1);}get[_0x3022d6(0x3ca)](){const _0x24b48a=_0x3022d6;return this['_cursorInfo$'][_0x24b48a(0x386)]();}get[_0x3022d6(0x240)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x1e9ddd=_0x3022d6;super[_0x1e9ddd(0x147)](),this['_cursorInfo$']['next'](new Map()),this[_0x1e9ddd(0x130)][_0x1e9ddd(0x19e)](),this[_0x1e9ddd(0x3fa)]['next']([]),this[_0x1e9ddd(0x3fa)]['complete']();}[_0x3022d6(0x388)](){const _0x26cd26=_0x3022d6;this[_0x26cd26(0x11b)]||(this[_0x26cd26(0x11b)]=!0x0,this['_session'][_0x26cd26(0x370)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this[_0x26cd26(0x374)]))[_0x26cd26(0x265)](_0x124102=>{const _0x1a23d1=_0x26cd26;_0x124102===G[_0x1a23d1(0x194)]?this[_0x1a23d1(0x30a)]():this[_0x1a23d1(0x20b)]();}),this['_session'][_0x26cd26(0x144)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this['dispose$']))[_0x26cd26(0x265)](_0x4828b7=>{const _0x5d016c=_0x26cd26,_0x15fa62=_0x4828b7[_0x5d016c(0x31c)];_0x15fa62===_[_0x5d016c(0x26c)][_0x5d016c(0x426)]&&this['_onCursorUpdate'](_0x4828b7),_0x15fa62===_[_0x5d016c(0x26c)][_0x5d016c(0x1b6)]&&this[_0x5d016c(0x16e)](_0x4828b7);}),this[_0x26cd26(0x14a)](this[_0x26cd26(0x467)]['onCommandExecuted'](_0x522bb2=>{const _0x3b33af=_0x26cd26,_0xd10c11=_0x522bb2[_0x3b33af(0xd7)];_0xd10c11!=null&&this[_0x3b33af(0xa7)]&&_0x522bb2['id']===P[_0x3b33af(0x447)]['id']&&_0xd10c11[_0x3b33af(0x347)]===this[_0x3b33af(0x367)]&&_0xd10c11[_0x3b33af(0x167)]===!0x1&&this[_0x3b33af(0x1f1)](_0xd10c11[_0x3b33af(0x41c)]);})),this[_0x26cd26(0x308)][_0x26cd26(0x3d9)][_0x26cd26(0x23e)](v[_0x26cd26(0xc7)](this['dispose$']))[_0x26cd26(0x265)](_0x5db2a2=>{const _0x4c6953=_0x26cd26;if((_0x5db2a2==null?void 0x0:_0x5db2a2[_0x4c6953(0x367)])!==this[_0x4c6953(0x367)])return;const _0x57ae1b={'eventID':_['CollaborationEvent'][_0x4c6953(0x426)],'data':_0x5db2a2};this[_0x4c6953(0xab)](_0x57ae1b);}),this[_0x26cd26(0x14a)](this[_0x26cd26(0x467)][_0x26cd26(0x2a1)](_0x5aae3b=>{const _0x1ebb07=_0x26cd26;if(_0x5aae3b['params']==null)return;const _0x5316f9=_0x5aae3b[_0x1ebb07(0xd7)];if(_0x5aae3b['id']!==P[_0x1ebb07(0x365)]['id']||_0x5316f9[_0x1ebb07(0x347)]!==this[_0x1ebb07(0x367)])return;const _0x318e39={'id':_0x1ebb07(0x290),'params':_0x5316f9},_0x125d4a=this[_0x1ebb07(0x3ca)];for(const [_0x1fecf6,_0x552a89]of _0x125d4a){const _0x2d9969={'id':_0x1ebb07(0x290),'params':{'unitId':this[_0x1ebb07(0x367)],'actions':null,'textRanges':_0x552a89['ranges']}},_0x5cb14d=this[_0x1ebb07(0x223)][_0x1ebb07(0x28e)](_0x318e39,_0x2d9969,!0x1);if(_['isTransformMutationFailure'](_0x5cb14d))throw _0x5cb14d['error'];_0x125d4a[_0x1ebb07(0x182)](_0x1fecf6,{..._0x552a89,'ranges':_0x5cb14d[_0x1ebb07(0x469)]['params'][_0x1ebb07(0x134)]});}queueMicrotask(()=>{const _0x28502b=_0x1ebb07;this['_cursorInfo$'][_0x28502b(0x116)](_0x125d4a);});})));}[_0x3022d6(0xab)](_0x3ce280){const _0x4ac320=_0x3022d6;var _0x4ac7a7,_0x949b3a;const {memberID:_0x1934ba,selection:_0x4ccae7}=_0x3ce280[_0x4ac320(0x2be)],_0x1aa938=Is(_0x4ccae7),_0x3e1a7f=(_0x949b3a=(_0x4ac7a7=this['_memberService'][_0x4ac320(0x18f)](this[_0x4ac320(0x367)],_0x1934ba))==null?void 0x0:_0x4ac7a7[_0x4ac320(0x1fa)])!=null?_0x949b3a:_0x4ac320(0x1f2),_0x3990bd={'color':this[_0x4ac320(0x26b)][_0x4ac320(0x288)](_0x1934ba),'name':_0x3e1a7f,'ranges':_0x1aa938},_0x42cb94=this['cursorInfo'];_0x42cb94[_0x4ac320(0x182)](_0x1934ba,_0x3990bd),this[_0x4ac320(0x130)]['next'](_0x42cb94);}[_0x3022d6(0x16e)](_0x2ee17b){const _0x550d23=_0x3022d6,{memberID:_0x5e6357}=_0x2ee17b['data'],_0x7c044b=this[_0x550d23(0x3ca)];_0x7c044b[_0x550d23(0x1af)](_0x5e6357),this[_0x550d23(0x130)]['next'](_0x7c044b);}[_0x3022d6(0x30a)](){const _0x542f6b=_0x3022d6;var _0x46bb76;if(this[_0x542f6b(0xa7)]=!0x0,((_0x46bb76=this[_0x542f6b(0x17c)][_0x542f6b(0x45c)]())==null?void 0x0:_0x46bb76['getUnitId']())!==this[_0x542f6b(0x367)])return;const _0x2fe22b=this[_0x542f6b(0x123)][_0x542f6b(0x84)](P[_0x542f6b(0x329)])['getDocRanges'](),_0x2e777e=_0x2fe22b==null?void 0x0:_0x2fe22b[_0x542f6b(0x317)](P[_0x542f6b(0x3f1)]);Array[_0x542f6b(0x3a1)](_0x2e777e)&&_0x2e777e['length']>0x0&&this['_updateLocalCursor'](_0x2e777e);}['_toggleOffline'](){const _0x40fa06=_0x3022d6;this[_0x40fa06(0xa7)]=!0x1;}};Ae=Hs([F(0x2,o[_0x3022d6(0x291)](o['Injector'])),F(0x3,o['Inject'](Fe)),F(0x4,o[_0x3022d6(0x291)](Y)),F(0x5,o[_0x3022d6(0x291)](We)),F(0x6,_['ITransformService']),F(0x7,o[_0x3022d6(0xb8)]),F(0x8,o['ICommandService'])],Ae);var Vs=Object[_0x3022d6(0x131)],Ws=Object[_0x3022d6(0x2b4)],Fs=(_0x5b7d38,_0x53f4ea,_0x43a881,_0x3da234)=>{const _0x2be400=_0x3022d6;for(var _0x2855ff=_0x3da234>0x1?void 0x0:_0x3da234?Ws(_0x53f4ea,_0x43a881):_0x53f4ea,_0x2c3e74=_0x5b7d38[_0x2be400(0x2ce)]-0x1,_0x5563ce;_0x2c3e74>=0x0;_0x2c3e74--)(_0x5563ce=_0x5b7d38[_0x2c3e74])&&(_0x2855ff=(_0x3da234?_0x5563ce(_0x53f4ea,_0x43a881,_0x2855ff):_0x5563ce(_0x2855ff))||_0x2855ff);return _0x3da234&&_0x2855ff&&Vs(_0x53f4ea,_0x43a881,_0x2855ff),_0x2855ff;},Re=(_0x164277,_0x5e90e3)=>(_0x4f9e0b,_0xe67962)=>_0x5e90e3(_0x4f9e0b,_0xe67962,_0x164277);function _0x1991(){const _0x20ed93=['rxjs','url','_clearUndo','_tryEnsureSocket','size','_isPermissionRej','svg','getSkeleton','length','isTransformChangesetsSuccess','onPointerMove$','_notificationService','xlink:href','top','allowed','_state','actions','isTransformMutationsWithChangesetFailure','_color','_snapshotService','_undoStacks','substring','mapTo','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_scheduleCollaborationTimeoutTimer','_localStorageService','LOCAL_CACHE_INTERVAL_KEY','OTHER_CLIENTS_EDITING','_getCurrentRevision','InsertRangeMoveDownCommandId','_socket$','exhaustSavingTask','_clearScheduledTask','selections','WebSocketService','take','restore','_onMessage','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_beforeCloseService','CollaborationSessionService','YUUMI_RATE_OVER_LIMIT','_themeService','_scene','originalMeta','lineTo','createIdentifier','_transformUndoRedoStack','getTypeOfUnitAdded$','trim','onMouseMove','target','includes','/-/object/list','UNDEFINED','_startCollaboration','syncEditingCollabCursor','FAIL','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','IAuthzIoService','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','SheetsSelectionsService','NodePositionConvertToCursor','_scheduleClearOtherTimer','sessionStatus','_snapshotServerService','_syncEditingCollabCursorService','RevisionService','_toggleOnline','COMPRESS_MUTATION_SEND','JSONX','_status$','setShapeProps','colorChannel1','NEW_CHANGESETS','isActive','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','editingUnit','ThemeService','@univerjs/core','OFFLINE','map','_sendHeartbeatTimer','AWAITING_WITH_PENDING','registerBeforeClose','session','eventID','@univerjs-pro/collaboration','onMissedChangesetFetched','setItem','_joinRoom','blue400','UNRECOGNIZED','handleIRemoveCol','univer-online-status-title','initWorkbookPermissionChange','_uiPartsService','patch','_unitID','TextSelectionManagerService','LifecycleStages','closePath','IHTTPImplementation','Ready','getUnitStatus$','WorkbookEditablePermission','UPDATE_PERMISSION_OBJ','Shape','_name','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_removeClearOtherTimer','replaceTextRanges','DataLoaderController','_initUnitPermissionChange','getRangePointData','[OfflineState]:\x20received\x20rejection.','getCurrentRevForDocument','YUUMI_UNABLE_LOAD_URL','univer-online','revision','_cursor','list','APPLY_REVISION_CONFILICT','jiqing500','rev','CollaborationSession','_createInitialState','joinEvent','IPermissionService','unitId','&to=','UNKNOWN_CMD','getMergeData','getActiveSheet','/universer-api/authz','_updateLocalCache','InsertColCommandId','ImageUploadStatusType','_roomMembers','SNAPSHOT_SERVER_URL_KEY','_getCtorByUniverType','hasOwnProperty','_getAnchorBounding','HttpExport','registerRefRange','Undefined','status$','[CollaborationSessionService]','getInterceptPoints','whenReady','propertyIsEnumerable','onPointerLeave$','_selfUnitIDs','getVpScrollXYInfoByPosToVp','_startDocCollabCursor','idSuffix','send','BASE64','transformRemoteChangeset','RichTextEditingMutation','connection\x20error','unitID','Steady','handleDeleteRangeMoveLeft','isTransformMutationFailure','registerRenderModule','verdancy600','startColumn','_replaceFileID','memberID','sessionStatus$','_getMergeRange','routeKey','/object/','dispose$','transformMutationsWithChangeset','univer-pro.collaboration-client.single-active-unit-service','transformIMECache','_labelPosition','defIds','Optional','update','prototype','SUBMIT_CHANGESET','HTTPService','headers','UNIVER_UNKNOWN','_onRemoteChangeset','DocSkeletonManagerService','string','MSG_FOR_ERROR','encode','getValue','_retryConnectingTimer','init','[SyncedState]:\x20received\x20rejection.','onlyLocal','_logService','fillText','_socket','_messageService','DependentOn','IRemoteInstanceService','_setupSubUnitSync','transformUndoRedo','SnapshotService','_commentUpdate$','transformByState','_HTTPService','collaboration-client.offline-data-not-saved','_clearTimeoutTimer','SheetSkeletonManagerService','_collaborationPaused','makeDirty','appendMutation','onlineStatusTitle','m1Prime','from','conflict','isArray','_permissionService','objectType','/universer-api/file/{fileID}/sign-url','getImage','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','selection','getSheetId','LIVESHARE_TERMINATE','searchParams','replace','all','_incrementRevisionNumber','getTypeOfUnitDisposed$','shareReplay','CollaborationSocketService','_localeService','requireSession','offline','_registerDependencies','/unit/','red300','RETRY_CONNECTING_INTERVAL','loadOfflineData','saveSnapshot','setTimeout','state','loadSheet','getDocRanges','IConfigService','purple300','_docTransformIMECacheService','_syncEditingCollabCursor','COLLAB_SUBMIT_CHANGESET_URL_KEY','_socketMessageSubscription','mapDocumentTypeToUniverType','result','c1Prime','/universer-api/oidc/authpage','0\x200\x2016\x2016','_handleHeartbeatEvent','cursorInfo','\x0aCurrent:\x20','text','_exhaustRemoteChangesetQueue','_handler','_scheduleTimestamp','put','subUnitId','fetchThroughInterceptors','forEach','color','InsertSheetMutation','newValue','off-line-single_clip0_910_343','random','collabCursorState$','APPLY_NON_SEQUENTIAL_REVISION','IBeforeCloseService','[CollaborationEntity]','_assignedColors','_transformIMECache','COLLAB_WEB_SOCKET_URL','_draw','encodeURIComponent','_collabSessionService','_awaitingChangeset','SheetCollaborationEntity','fromEventSubject','ICommandService','_onRemoteRejected','NOT_FOUND','_disableEditing','_localCacheService','delay','unshift','8dGgQhj','url(#$1','OnLifecycle','awaiting_with_pending','serializeDocRange','getMemberID','resourceIDs','ImageSourceType','onSendChangeset','[OfflineState]:\x20received\x20changeset.','NO_OTHER_CLIENTS_EDITING','EmptyMutation','_onRefRangeChange','_roomMembers$','HttpImport','_cursorShapes','fetchMissingChangesets','Vector2','_getRedoStack','_members','round','collaborators','UniverIcon','error','_handleHover','_eventUnsubscribe','roles','objectID','activeSheet$','newCsEvent','message$','RECV','path','off-line-single','resend','/collaborator','on-line-single','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNIVER_PROJECT','_urlService','_executeRemoteChangeset','getCoordByCell','@univerjs/docs','Tools','concat','c2Prime','sheetId','ranges','_showConflictNotification','getUndoRedoMutationParamsCache','[OfflineState]:\x20received\x20acknowledgement.','CHANGESET_ACK','defs','call','_unitOnClients','fromCollab','useRef','UPDATE_CURSOR','_startSheetCollabCursor','SNAPSHOT_HAS_BEEN_REMOVED','editing\x20status\x20changed\x20to','_heartbeatTimer','measureText','_undoRedoService','push','FileId','_transitionLocked','4835vlFzud','CollaborationController','handleInsertRangeMoveDown','_getSnapshotAPIPrefix','title','onStarting','children','conflict.title','_submitChangeset','_state$','on-line-single_clip0_910_349','state$','sheetID','\x20in\x20_schedule.','LocaleService','fill','onTransformIME','unitId\x20is\x20not\x20found','handleIRemoveRow','_saveCache','_getAPIPrefix','SEND_CHANGESET_TIMEOUT','_waitCount','SetTextSelectionsOperation','Injector','UnitEmbedded','Error\x20on\x20receiving\x20event','currentSkeleton$','_disabled','subunit','_sheetTransformSelectionsService','FETCH_MISSING','awaiting','RETRY_CONNECTING_MAX_COUNT','_retryCount','@univerjs/drawing','/new_changes','_schedule','transform','_lastPointer','/universer-api/comb','CHANGESET_REJ','connectInjector','commentUpdate$','getFocusedUnit','post','none','/universer-api/snapshot','RxDisposable','[PendingState]:\x20unhandled\x20univer\x20type:\x20','HEARTBEAT','NOT_COLLAB','IMEInputManagerService','registerOnClose','ALREADY_EXISTS','_commandService','collaboration.closeRoom','m2Prime','getActiveRange','createElement','clsx','_getSheetObject','_removeCollabCursors','userID','backgroundColor','SHOULD_CLOSE_CONN','get','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MoveRangeCommandId','_config','_onFetchMissResult','createInstance','_imageSourceCache','@univerjs/design','responseType','_clearLocalCache','entries','lodash/debounce','_transformPreviousActiveRange','LICENSE_MAX_UNITS_EXCEEDED','save\x20fail\x20reason\x20is\x20','_onJoinRoomEvent','_hideTimer','getUniverSheetInstance','VIEWPORT_KEY','_removeRoom','skeleton','find','registerComponent','getResourcesRequest','assign','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','registerHTTPInterceptor','COMPRESS_MUTATION_APPLY','_initMergeInterceptor','_remoteChangesetQueue','session.room-full','8460fIjMFL','_onLocalMutation','HEARTBEAT_TIMEOUT_KEY','IContextService','_online','_clearOtherTimers','objects','IURLService','_onCursorUpdate','_sessions','setParam','_timeoutTimer','IMessageService','reduce','div','_collaborationTimeoutTimer','collabStatus.fetchMiss','getSheetBySheetId','permission.content','runRefRangeMutations','gold400','IUniverInstanceService','black','INTERNAL_ERROR','updateOfflineData','_scheduleReconnection','transformSelections','getCurrentSelections','toggleOnline','AuthzIoHttpService','onRemoteAck','_acknowledgedAwaitingChangeset','submit\x20changeset\x20error!','currentColor','merge','\x20to\x20','takeUntil','socketService','b64DecodeUnicode','awaitingChangeset','210889TPjnCz','localeService','clearInterval','_docStateChangeManagerService','SNAPSHOT_URL_KEY','APPLY_PERMISSION_DENIED','HEADER_MENU','_drawRectRange','LIVESHARE_REQUEST_HOST','Starting','_applyRemoteChangeset','apply','params','getParam','3469671eKcdvi','key','_collaborationSessionService','LEAVE','_transformSelections','USERS_ENTER','_cachedData','session.will-retry','add','className','InsertRowCommandId','clear','SUCCUSS','parseProtocolChangeset','getCurrent','_getAPIPrefixPath','_clearHeartbeatTimer','@univerjs/ui','_drawAnchor','_lockTransition','IImageIoService','_configService','rgba(255,\x20255,\x20255,\x200.01)','urlChange$','UUID','_anchor','roomMembers$','file','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_fetchMissChangesets','permissionRejEvent','SYNCED','debug','_createHandler','_transformStack','action','INotificationService','_updateState','_send','_context','_docSkeletonManagerService','max','SetDocZoomRatioOperation','catch','CHANGESET_REVISION_CONFILICT','_getUploadFileURL','ThresholdInterceptorFactory','socket\x20open.','onPointerEnter$','findNodePositionByCharIndex','hide','isTransformMutationsWithChangesetSuccess','collab-text-anchor-','reverse','_httpService','getUnitType','/rev/','createSocket','row','IUndoRedoService','values','next','COLLAB_WEB_SOCKET_URL_KEY','onTransformSelections','_handleEvent','_updateURLWithCurrentState','_init','Module','_loadDoc','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','arc','/object','_onConnectionFailed','location','_injector','IUIPartsService','updateCursorEvent','_getSignURL','PSEUDO_FETCH_MISSING_RESULT','drawWith','getCurrentUser','PERMISSION_REJ','_onUserLeave','collabStatus.syncing','members','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','enableAuthServer','_cursorInfo$','defineProperty','1em','_range','textRanges','collabStatus.offline','getUnitOnRev','?url=','onRemoteChangeset','_queuedRemoteChangesets','_initStatusComponent','_colorIndex','_onUserJoin','_saveTaskMap','IRenderManagerService','width','_redoStacks','BehaviorSubject','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ISnapshotServerService','event$','INGEST','MUTATION','dispose','handleDeleteRangeMoveUp','resize','disposeWithMe','[PendingState]:\x20received\x20rejection.','3004160FOuVSh','saveChangeset','override','_commentService','TEXT_RANGE_LAYER_INDEX','has','isInternalEditorID','[UniverCollaborationClientPlugin]','leaveEvent','_waitForHeartbeatResponse','then','JOIN','_transformRemoteChangesetByIMECache','not_collab','_singleActiveUnitService','status','_collabCursorState$','HTTPRequest','_collabCursorController','LOCAL_CACHE_INTERVAL','deserializeToCombResponse','interceptor','flatMap','fromEvent','Plugin','updateMember','_render','isEditing','UserManagerService','LICENSE_DISTRO_REJECTED','handleInsertRangeMoveRight','_memberService','UNIVER_SLIDE','endRow','_onCursorDelete','fillStyle','_textBubble','concatMap','currentTheme$','_clearRedo','LocalCacheService','_unitStatus','LIVESHARE_OPERATION','startRow','requestParams','LIVESHARE_NEW_HOST','Univer','_event$','_univerInstanceService','#fff','getColor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','history','popstate','set','changesets','_collaborationController','getWorkbookSelections','closeSession','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_id','addImageSourceCache','_type','univer-online-status-icon','UNAUTHENTICATED','getCollabEntity','batchAllowed','getMember','getSheetBlock','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleSaving','_rescheduleHeartbeatEvent','ONLINE','[CollaborationUndoRedoService]','disableLocalCache','_hover','[DataLoaderController]','url(#off-line-single_clip0_910_343)','labelPosition','toStringTag','Error','onRemoteRej','complete','_socketService','/role','collabStatus.conflict','csAckEvent','[FetchMissState]','_onCombEvent','POST','_substituteUndoStack','FromArray','deserializeRangeWithSheet','PERMISSION_DENIED','setInterval','IDLE','_initCommandExecutedListener','body','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','delete','_session','/-/object/-/batch_allowed','onSyncEditingCollabCursor','_change$','clearTimeout','544233WYqNEG','USERS_LEAVE','use','LICENSE_EXPORT_SIZE_EXCEEDED','LICENSE_IMPORT_SIZE_EXCEEDED','COLLAB_SUBMIT_CHANGESET_URL','throttleTime','_ensureSubject','getConfig','YUUMI_SUBSCRIPTION_NOT_FOUND','INVALID_ARGUMENT','filter','serializeRangeWithSheet','LOGIN_URL_KEY','workbook','onload','toRgbString','setAlpha','SetWorksheetActivateCommand','/resources','Disposable','BuiltInUIPart','OnLineSingle','collabStatus.synced','collabStatus.notCollab','addObject','rxjs/operators','AWAITING','ITransformService','FETCH_MISS','show','session.collaboration-timeout','addObjects','_handleJoinEvent','append','getUnhiddenWorksheets','_initModules','baseRev','_handleLeaveEvent','clipPath','collaMsg','ImageIoService','EffectRefRangId','Warning','_loadSheet','csRejEvent','ws://127.0.0.1:8000/universer-api/comb/connect','getItem','MessageType','collaboration.single-unit.warning','confirm','InsertRangeMoveRightCommandId','onCommentUpdate','_shapes','SNAPSHOT_INVALID_SNAPSHOT','min','pending','M0\x200H16V16H0z','_checkMissing','handleInsertCol','_updateLocalCursor','Unknown\x20user','type','_sendingTimer','[PendingState]:\x20received\x20acknowledgement.','startsWith','collab-rect-range-','_docSkeleton','displayName','name','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','DisposableCollection','getTime','distinctUntilChanged','DEFAULT_FILE_NAME','_ws','deepClone','src','focused$','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','replaceState','collab-text-range-','APPLY_REJECT','_backgroundColor','VIEW_MAIN','_createSocket','_toggleOffline','_updateStatus','objectActions','setCurrentUser','uni.network.url-service','cursorInfo$','unit-cache-','YUUMI_URL_COL_OUT_OF_RANGE','_sheetSkeletonManagerService','@univerjs/engine-render','font','evenodd','[CollaborationState]:\x20apply\x20error!','onStateChange','_socketReady','liveShareNewHost','Subject','/universer-api/snapshot/','storage','slice','commentUpdateEvent','attrs','collaboratorID','_refreshCollabCursors','_transformService','_updateSubUnitFromURLParams','SnapshotServerOverHTTPService','refreshPermission','_anchorDot','7051RgGdlw','_pendingMutations','_updateCollabCursors','ICollaborationSocketService','close','ERROR_IMAGE','socket\x20close','ILogService','_hovered','SetSelectionsOperation','transformChangesets','UniverCollaborationClientPlugin','_getSaveTimeout','_renderManagerService','shouldCloseConn','UNIVER_DOC','_compressMutationService','_decreaseWaiting','UnitSnapshot','useObservable','@univerjs/rpc','_entities','pipe','UniverInstanceType','roomMembers','_transformUndoredo','_entityInit$','_replayCachedMutations','getAncestorScale','pushState','snapshot','74929SUcquS','listRoles','UNKNOWN_CODE','HELLO','COMPLETION_FINISHED','toDisposable','univer-offline','generateRandomId','_onConflict','_getSendChangesetTimeout','bottom','reject','extend','_revisionService','loadDoc','onlineStatusIcon','forwardRef','stringify','method','_initCloseConn','open$','saveOfflineData','removeMember','indexOf','unit','enableSingleActiveInstanceLock','_scheduleHeartbeat','href','icon','putCollaborators','subscribe','switchMap','toString','_onRecvEvent','DesktopCollaborationStatusDisplayController','image/gif','_colorAssignService','CollaborationEvent','fetching\x20missing\x20changesets\x20from\x20','/allowed','removeParam','PENDING','range','engine','ColorKit','AUTHZ_URL_KEY','_getLoginPath','getCollabCursors$','image/jpeg','isPermissionRej','_initStatusListener','url(#on-line-single_clip0_910_349)','cmd','COLORS','6qRfFpl','...','updatePermissionPoint','debounceTime','getSheetObject','combineLatest','_sessionStatus$','liveShareOperation','resolve','_refRangeService','DocStateChangeManagerService','assignAColorForMemberID','_cursors','univer-pro.collaboration-client-socket-service','RegularPolygon','HEARTBEAT_INTERVAL_KEY','save','transformMutation','fetch_missing','doc.mutation.rich-text-editing','Inject','MergeInterceptorFactory','getCollabEntity$','@univerjs/sheets-ui','asObservable','_docSyncEditingCollabCursorService','JOINING','XHRHTTPImplementation','_setupBeforeClosingHandler','HEARTBEAT_INTERVAL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getUnitId','addEventListener','_document','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','TOO_MANY_REQUESTS','onCommandExecuted','code','executeCommand','_sendHeartbeat','mutations','Workbook','conflict.content','close$','getOwnPropertySymbols','CONNECTOR_DATA_TOO_LARGE','parse','column','unknown','_http','_docTransformSelectionsService','onMissingChangesets','image/bmp','_onConnectionOpen','LIVESHARE_FETCH_OPERATIONS','getOwnPropertyDescriptor','toggleOffline','tag','&source=','transformStack\x20failed!','unsubscribe','CommentService','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_unlockTransition','COMMENT_UPDATE','data','Rect','UNIVER_SHEET','436yCIBxr','session.connection-failed','?size=','subscribeEvent','CommandType'];_0x1991=function(){return _0x20ed93;};return _0x1991();}let Z=class extends o[_0x3022d6(0x460)]{constructor(_0x232dc6,_0x297dae,_0x35012a){const _0x50d605=_0x3022d6;super(),u(this,_0x50d605(0x23d),new Map()),u(this,_0x50d605(0x242),new v[(_0x50d605(0x21b))]()),(this[_0x50d605(0x17c)]=_0x232dc6,this[_0x50d605(0x123)]=_0x297dae,this[_0x50d605(0x3e2)]=_0x35012a,this['_init']());}[_0x3022d6(0x147)](){const _0x3b15f2=_0x3022d6;super[_0x3b15f2(0x147)](),this['_entityInit$'][_0x3b15f2(0x19e)](),this[_0x3b15f2(0x23d)][_0x3b15f2(0x3d3)](_0x5cf84c=>_0x5cf84c[_0x3b15f2(0x147)]());}[_0x3022d6(0x276)](_0x4259a2){const _0x1b44a8=_0x3022d6;return this[_0x1b44a8(0x23d)][_0x1b44a8(0x151)](_0x4259a2)?this[_0x1b44a8(0x23d)][_0x1b44a8(0x84)](_0x4259a2)[_0x1b44a8(0x210)]:this[_0x1b44a8(0x242)][_0x1b44a8(0x23e)](v[_0x1b44a8(0x1c0)](_0x50c05e=>_0x50c05e['unitID']===_0x4259a2),v['switchMap'](_0x4f2328=>_0x4f2328[_0x1b44a8(0x210)]));}['_init'](){const _0x106562=_0x3022d6;this[_0x106562(0x17c)]['getTypeOfUnitAdded$'](o[_0x106562(0x23f)][_0x106562(0x2c0)])[_0x106562(0x23e)](v[_0x106562(0xc7)](this[_0x106562(0x374)]))[_0x106562(0x265)](async _0x945a9b=>{const _0x5a3170=_0x106562,_0x10867e=_0x945a9b[_0x5a3170(0x29c)](),_0x205886=await this[_0x5a3170(0x427)](_0x10867e);this[_0x5a3170(0x242)][_0x5a3170(0x116)](_0x205886),this['_entities'][_0x5a3170(0x182)](_0x10867e,_0x205886);}),this[_0x106562(0x17c)][_0x106562(0x2f6)](o[_0x106562(0x23f)][_0x106562(0x237)])['pipe'](v['takeUntil'](this[_0x106562(0x374)]))[_0x106562(0x23e)](v[_0x106562(0x1c0)](_0xa776d7=>!_0xa776d7[_0x106562(0x29c)]()['startsWith']('__')))[_0x106562(0x265)](async _0x44ccb0=>{const _0x38d6d1=_0x106562,_0x119099=_0x44ccb0[_0x38d6d1(0x29c)](),_0x1c515a=await this[_0x38d6d1(0x360)](_0x119099);this[_0x38d6d1(0x242)]['next'](_0x1c515a),this[_0x38d6d1(0x23d)]['set'](_0x119099,_0x1c515a);}),v[_0x106562(0xc5)](this[_0x106562(0x17c)][_0x106562(0x3ae)](o['UniverInstanceType'][_0x106562(0x237)]),this['_univerInstanceService'][_0x106562(0x3ae)](o[_0x106562(0x23f)][_0x106562(0x2c0)]))[_0x106562(0x23e)](v[_0x106562(0xc7)](this[_0x106562(0x374)]))[_0x106562(0x265)](_0x4b11ed=>{const _0x10a2a5=_0x106562,_0x45a268=_0x4b11ed['getUnitId'](),_0x3c3645=this[_0x10a2a5(0x23d)][_0x10a2a5(0x84)](_0x45a268);_0x3c3645&&(_0x3c3645[_0x10a2a5(0x147)](),this[_0x10a2a5(0x23d)][_0x10a2a5(0x1af)](_0x45a268));});}async[_0x3022d6(0x427)](_0x3b5f60){const _0xa312fd=_0x3022d6,_0x20a746=await this['_collabSessionService'][_0xa312fd(0x3b2)](_0x3b5f60),_0x4253b6=this['_injector'][_0xa312fd(0x89)](Le,_0x3b5f60,_0x20a746);return _0x4253b6[_0xa312fd(0x388)](),_0x4253b6;}async[_0x3022d6(0x360)](_0x3e8e4b){const _0x2ff481=_0x3022d6,_0x37346a=await this[_0x2ff481(0x3e2)][_0x2ff481(0x3b2)](_0x3e8e4b),_0x2818e2=this[_0x2ff481(0x123)][_0x2ff481(0x89)](Ae,_0x3e8e4b,_0x37346a);return _0x2818e2[_0x2ff481(0x388)](),_0x2818e2;}};Z=Fs([o[_0x3022d6(0x3ef)](o['LifecycleStages'][_0x3022d6(0xd4)],Z),Re(0x0,o[_0x3022d6(0xb8)]),Re(0x1,o[_0x3022d6(0x291)](o['Injector'])),Re(0x2,o[_0x3022d6(0x291)](exports[_0x3022d6(0x2ee)]))],Z);const le=0x14,it=0xc8,Oe=0x4,Gs=0x5;function Ys(_0x2edb5c,_0x34bb34){const _0x45f535=_0x3022d6;let {radius:_0x5823fe,width:_0x427d30,height:_0x284563}=_0x34bb34;_0x5823fe=_0x5823fe!=null?_0x5823fe:0x0,_0x427d30=_0x427d30!=null?_0x427d30:0x1e,_0x284563=_0x284563!=null?_0x284563:0x1e;let _0x20f0fb=0x0,_0x58dffc=0x0,_0x3a2284=0x0;_0x20f0fb=_0x58dffc=_0x3a2284=Math[_0x45f535(0x1ec)](_0x5823fe,_0x427d30/0x2,_0x284563/0x2),_0x2edb5c['beginPath'](),_0x2edb5c['moveTo'](_0x20f0fb,0x0),_0x2edb5c[_0x45f535(0x2f3)](_0x427d30-_0x58dffc,0x0),_0x2edb5c['arc'](_0x427d30-_0x58dffc,_0x58dffc,_0x58dffc,Math['PI']*0x3/0x2,0x0,!0x1),_0x2edb5c[_0x45f535(0x2f3)](_0x427d30,_0x284563-_0x3a2284),_0x2edb5c[_0x45f535(0x11f)](_0x427d30-_0x3a2284,_0x284563-_0x3a2284,_0x3a2284,0x0,Math['PI']/0x2,!0x1),_0x2edb5c['lineTo'](0x0,_0x284563),_0x2edb5c[_0x45f535(0x2f3)](0x0,_0x20f0fb),_0x2edb5c[_0x45f535(0x11f)](_0x20f0fb,_0x20f0fb,_0x20f0fb,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2edb5c[_0x45f535(0x32b)](),_0x34bb34[_0x45f535(0x43f)]&&(_0x2edb5c[_0x45f535(0x28d)](),_0x2edb5c[_0x45f535(0x16f)]=_0x34bb34[_0x45f535(0x43f)],_0x34bb34['fillRule']===_0x45f535(0x216)?_0x2edb5c['fill'](_0x45f535(0x216)):_0x2edb5c['fill'](),_0x2edb5c[_0x45f535(0x2ea)]());}class Ce extends b['Shape']{constructor(_0x3bea77,_0x5da96b){const _0x144c4f=_0x3022d6;super(_0x3bea77,_0x5da96b),u(this,_0x144c4f(0x3d4)),u(this,_0x144c4f(0x3cc)),(this['color']=_0x5da96b==null?void 0x0:_0x5da96b[_0x144c4f(0x3d4)],this[_0x144c4f(0x3cc)]=_0x5da96b==null?void 0x0:_0x5da96b[_0x144c4f(0x3cc)]);}static[_0x3022d6(0x128)](_0x4cba4b,_0x3fe372){const _0x21ae0f=_0x3022d6,{text:_0x19e3c2,color:_0xac1df8}=_0x3fe372;_0x4cba4b[_0x21ae0f(0x28d)](),_0x4cba4b[_0x21ae0f(0x215)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1c4164=_0x4cba4b[_0x21ae0f(0x42b)](_0x19e3c2)[_0x21ae0f(0x13f)],_0x30ab62=Math[_0x21ae0f(0x1ec)](_0x1c4164+0x2*Oe,it);Ys(_0x4cba4b,{'height':le,'radius':0x4,'width':_0x30ab62,'fill':_0xac1df8,'evented':!0x1}),_0x4cba4b['fillStyle']='#FFF';const _0x14132e=Oe,_0x3bb5bf=le-Gs,_0x415b25=it-0x2*Oe;if(_0x1c4164>_0x415b25){let _0x180057='',_0x24e553=0x0;for(const _0x412e9a of _0x19e3c2){const _0x3df609=_0x4cba4b[_0x21ae0f(0x42b)](_0x412e9a)['width'];if(_0x24e553+_0x3df609<=_0x415b25-_0x4cba4b[_0x21ae0f(0x42b)](_0x21ae0f(0x27e))[_0x21ae0f(0x13f)])_0x180057+=_0x412e9a,_0x24e553+=_0x3df609;else{_0x180057+=_0x21ae0f(0x27e);break;}}_0x4cba4b[_0x21ae0f(0x38c)](_0x180057,_0x14132e,_0x3bb5bf);}else _0x4cba4b[_0x21ae0f(0x38c)](_0x19e3c2,_0x14132e,_0x3bb5bf);_0x4cba4b[_0x21ae0f(0x2ea)]();}[_0x3022d6(0x3e0)](_0x37aefa){const _0x22084e=_0x3022d6;Ce[_0x22084e(0x128)](_0x37aefa,this);}}const Ks=0x1,Xs=1.5;class Rt extends b[_0x3022d6(0x331)]{constructor(_0x342ef7,_0x6b98c0){const _0x432242=_0x3022d6;super(_0x342ef7,_0x6b98c0),u(this,'_color'),u(this,_0x432242(0x230),!0x1),u(this,_0x432242(0x133)),u(this,_0x432242(0x332),''),u(this,_0x432242(0x378),_0x432242(0x2d3)),u(this,'_backgroundColor'),(_0x6b98c0&&this[_0x432242(0x30e)](_0x6b98c0),this[_0x432242(0x109)][_0x432242(0x2c4)](()=>this[_0x432242(0x30e)]({'hovered':!0x0})),this[_0x432242(0x35d)][_0x432242(0x2c4)](()=>this[_0x432242(0x30e)]({'hovered':!0x1})));}['setShapeProps'](_0x3bed4f){const _0x5b3d7e=_0x3022d6;var _0x258065,_0x4d14c0,_0x53ce16,_0xcbae31,_0x2b6f9a,_0xc70a0a;this[_0x5b3d7e(0x2d8)]=(_0x258065=_0x3bed4f[_0x5b3d7e(0x3d4)])!=null?_0x258065:this[_0x5b3d7e(0x2d8)],this[_0x5b3d7e(0x230)]=(_0x4d14c0=_0x3bed4f['hovered'])!=null?_0x4d14c0:this[_0x5b3d7e(0x230)],this[_0x5b3d7e(0x133)]=(_0x53ce16=_0x3bed4f['range'])!=null?_0x53ce16:this[_0x5b3d7e(0x133)],this[_0x5b3d7e(0x332)]=(_0xcbae31=_0x3bed4f['name'])!=null?_0xcbae31:this[_0x5b3d7e(0x332)],this[_0x5b3d7e(0x378)]=(_0x2b6f9a=_0x3bed4f[_0x5b3d7e(0x19a)])!=null?_0x2b6f9a:this[_0x5b3d7e(0x378)],this['_backgroundColor']=(_0xc70a0a=_0x3bed4f[_0x5b3d7e(0x82)])!=null?_0xc70a0a:this['_backgroundColor'],this[_0x5b3d7e(0x395)]({'width':_0x3bed4f[_0x5b3d7e(0x13f)],'height':_0x3bed4f['height']});}['onMouseMove'](_0x350b75){const _0x289a57=_0x3022d6,{row:_0xc391cf,column:_0x391383}=_0x350b75;if(_0xc391cf>=this[_0x289a57(0x133)][_0x289a57(0x177)]&&_0xc391cf<=this[_0x289a57(0x133)][_0x289a57(0x16d)]&&_0x391383>=this[_0x289a57(0x133)][_0x289a57(0x36d)]&&_0x391383<=this[_0x289a57(0x133)]['endColumn']){this[_0x289a57(0x30e)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x1f4f29){return!0x1;}['_draw'](_0x59718e){const _0xb96a33=_0x3022d6;b[_0xb96a33(0x2bf)][_0xb96a33(0x128)](_0x59718e,{'width':this[_0xb96a33(0x13f)],'height':this['height'],'strokeWidth':Xs,'stroke':this[_0xb96a33(0x2d8)],'evented':!0x1,'fill':this[_0xb96a33(0x208)]}),this[_0xb96a33(0x230)]&&(_0x59718e[_0xb96a33(0x28d)](),_0x59718e[_0xb96a33(0x456)](0x1,0x0,0x0,0x1,this[_0xb96a33(0x13f)],this[_0xb96a33(0x378)]===_0xb96a33(0x251)?0x0:-le),Ce[_0xb96a33(0x128)](_0x59718e,{'text':this[_0xb96a33(0x332)],'color':this[_0xb96a33(0x2d8)]}),_0x59718e['restore']());}}var qs=Object['defineProperty'],zs=Object[_0x3022d6(0x2b4)],Js=(_0x3aa13d,_0x45407d,_0x233dab,_0x2918de)=>{const _0x5b9390=_0x3022d6;for(var _0x17d4d9=_0x2918de>0x1?void 0x0:_0x2918de?zs(_0x45407d,_0x233dab):_0x45407d,_0x561783=_0x3aa13d[_0x5b9390(0x2ce)]-0x1,_0xc7b38e;_0x561783>=0x0;_0x561783--)(_0xc7b38e=_0x3aa13d[_0x561783])&&(_0x17d4d9=(_0x2918de?_0xc7b38e(_0x45407d,_0x233dab,_0x17d4d9):_0xc7b38e(_0x17d4d9))||_0x17d4d9);return _0x2918de&&_0x17d4d9&&qs(_0x45407d,_0x233dab,_0x17d4d9),_0x17d4d9;},De=(_0xc3d184,_0x2a4a22)=>(_0x9f6b3f,_0x1c875c)=>_0x2a4a22(_0x9f6b3f,_0x1c875c,_0xc3d184);const Zs=0x1389;let je=class extends o[_0x3022d6(0x460)]{constructor(_0x4d393c,_0x5f3317,_0x23de27,_0x5292de){const _0x3d5dea=_0x3022d6;super(),u(this,'_cursors',new Set()),u(this,'_lastPointer',null),(this[_0x3d5dea(0x100)]=_0x4d393c,this[_0x3d5dea(0x213)]=_0x5f3317,this[_0x3d5dea(0x15e)]=_0x23de27,this[_0x3d5dea(0x2f0)]=_0x5292de,this[_0x3d5dea(0x11b)]());}['_init'](){const _0x243d82=_0x3022d6;this[_0x243d82(0x213)][_0x243d82(0x44b)][_0x243d82(0x23e)](E[_0x243d82(0xc7)](this[_0x243d82(0x374)]),E['switchMap'](_0x4c804c=>{const _0x2932e6=_0x243d82;if(_0x4c804c){const _0x5bbbf5=_0x4c804c[_0x2932e6(0x41b)];return v[_0x2932e6(0x282)](this['_collabCursorController'][_0x2932e6(0x276)](this[_0x2932e6(0x100)][_0x2932e6(0x347)]),this[_0x2932e6(0x2f0)]['currentTheme$'])[_0x2932e6(0x23e)](E[_0x2932e6(0x317)](([_0x2b169e,_0x3e8f44])=>{const _0x26d10a=new Map();return _0x2b169e['forEach']((_0x220325,_0x2b8d0d)=>{const _0xfbb881=_0xbc10;if(_0x220325[_0xfbb881(0x43c)]===_0x5bbbf5){const _0x51299e={..._0x220325};_0x51299e[_0xfbb881(0x3d4)]=_0x3e8f44[_0x220325[_0xfbb881(0x3d4)]],_0x26d10a['set'](_0x2b8d0d,_0x51299e);}}),{'skeleton':_0x4c804c,'cursors':_0x26d10a};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x243d82(0x265)](({skeleton:_0x8f0d24,cursors:_0x4963ef})=>{const _0x4816c2=_0x243d82;this[_0x4816c2(0x80)](),_0x8f0d24&&this['_updateCollabCursors'](_0x8f0d24,_0x4963ef);}),this[_0x243d82(0x213)]['currentSkeleton$'][_0x243d82(0x265)](_0x3b1b34=>{const _0x5d54e4=_0x243d82;if(_0x3b1b34==null)return;const {skeleton:_0x29399d}=_0x3b1b34,{scene:_0x5e2c8e}=this['_context'];_0x5e2c8e[_0x5d54e4(0x2d0)][_0x5d54e4(0x2c4)](xe(_0x399af6=>{const _0x110758=_0x5d54e4;var _0x15cc97,_0x4a5003;const {offsetX:_0xadeba4,offsetY:_0x10ee73}=_0x399af6,{x:_0x420f2a,y:_0x2d5269}=_0x5e2c8e['getRelativeToViewportCoord'](b[_0x110758(0x3fe)][_0x110758(0x1a7)]([_0xadeba4,_0x10ee73])),{scaleX:_0x586e02,scaleY:_0x3654f8}=_0x5e2c8e[_0x110758(0x244)](),_0xeaaa39=_0x5e2c8e['getViewport'](J[_0x110758(0x96)][_0x110758(0x209)]),_0x50eae8=_0x5e2c8e[_0x110758(0x35f)](b['Vector2']['FromArray']([_0x420f2a,_0x2d5269]),_0xeaaa39),_0x424466=_0x29399d['getCellPositionByOffset'](_0xadeba4,_0x10ee73,_0x586e02,_0x3654f8,_0x50eae8);((_0x15cc97=this[_0x110758(0x457)])==null?void 0x0:_0x15cc97['column'])===_0x424466[_0x110758(0x2ac)]&&((_0x4a5003=this[_0x110758(0x457)])==null?void 0x0:_0x4a5003[_0x110758(0x113)])===_0x424466[_0x110758(0x113)]||this[_0x110758(0x289)]['forEach'](_0xf813ff=>{const _0x4d6abb=_0x110758;_0xf813ff[_0x4d6abb(0x2f8)](_0x424466);});},0x64));});}['_updateCollabCursors'](_0x162432,_0x36b87b){const _0x271614=_0x3022d6;var _0x1c0a19;const _0x30aad7=(_0x1c0a19=this[_0x271614(0x213)][_0x271614(0xe7)]())==null?void 0x0:_0x1c0a19[_0x271614(0x98)];if(!_0x30aad7)return;const _0x3d4697=this[_0x271614(0x7f)]();if(!_0x3d4697)return;this[_0x271614(0x289)]['forEach'](_0x13bcf8=>{const _0x3f8f82=_0x271614;_0x13bcf8[_0x3f8f82(0x39b)]();});const {scene:_0x21e4f2}=_0x3d4697,_0x11d76f=Qs(Array[_0x271614(0x39f)](_0x36b87b[_0x271614(0x115)]()))[_0x271614(0x317)](_0x33908d=>{const _0x3f133e=_0x271614,{color:_0x4df8a8,range:_0x26408b,name:_0x1e0130,selection:_0x4fac3e,sheetID:_0x3a0b2f}=_0x33908d,{startColumn:_0x4f0145,startRow:_0x58a29f,endColumn:_0x3a0272,endRow:_0x22cf9e}=_0x26408b,_0x16d1e5=J['getCoordByCell'](_0x58a29f,_0x4f0145,_0x21e4f2,_0x30aad7),_0x14414f=J[_0x3f133e(0x416)](_0x22cf9e,_0x3a0272,_0x21e4f2,_0x30aad7),{columnHeaderHeightAndMarginTop:_0x34ac34}=_0x30aad7,{startX:_0x18058c,startY:_0x3faf28}=_0x16d1e5,{endX:_0x3d40df,endY:_0x358303}=_0x14414f,_0x54d9f5=_0x3d40df-_0x18058c,_0x23816e=_0x358303-_0x3faf28,_0x38e694={'labelPosition':_0x3faf28-_0x34ac34>=le?'top':_0x3f133e(0x251),'sheetID':_0x3a0b2f,'range':_0x26408b,'color':_0x4df8a8,'name':_0x1e0130,'selection':_0x4fac3e,'left':_0x18058c,'top':_0x3faf28,'width':_0x54d9f5,'height':_0x23816e,'evented':!0x1,'zIndex':Zs};return new Rt(_0x1e0130,_0x38e694);});_0x21e4f2[_0x271614(0x1d5)](_0x11d76f,Ks),this[_0x271614(0x289)]=new Set(_0x11d76f);}[_0x3022d6(0x80)](){const _0x451085=_0x3022d6;var _0x2f00ee;(_0x2f00ee=this['_cursors'])==null||_0x2f00ee[_0x451085(0x3d3)](_0x2f9d3c=>_0x2f9d3c[_0x451085(0x147)]());}[_0x3022d6(0x7f)](){const _0x329599=_0x3022d6;return J[_0x329599(0x281)](this[_0x329599(0x100)][_0x329599(0x25f)],this[_0x329599(0x100)]);}};je=Js([De(0x1,o[_0x3022d6(0x291)](J[_0x3022d6(0x399)])),De(0x2,o[_0x3022d6(0x291)](Z)),De(0x3,o[_0x3022d6(0x291)](o['ThemeService']))],je);function Qs(_0xb74c3d){const _0x138547=_0x3022d6,_0x3f69df=new Map();return _0xb74c3d[_0x138547(0x3d3)](_0x16f129=>{const _0x3327b4=_0x138547;if(_0x3f69df['has'](_0x16f129[_0x3327b4(0x3a7)])){const _0x286a2d=_0x3f69df[_0x3327b4(0x84)](_0x16f129['selection']);_0x286a2d[_0x3327b4(0x1fa)]+=',\x20'+_0x16f129['name'];}else _0x3f69df[_0x3327b4(0x182)](_0x16f129[_0x3327b4(0x3a7)],_0x16f129);}),Array[_0x138547(0x39f)](_0x3f69df[_0x138547(0x115)]());}var N=function(){const _0x2ac466=_0x3022d6;return N=Object[_0x2ac466(0x9c)]||function(_0x34108f){const _0x5f37a0=_0x2ac466;for(var _0x4ea710,_0x5c63b9=0x1,_0x1292cc=arguments[_0x5f37a0(0x2ce)];_0x5c63b9<_0x1292cc;_0x5c63b9++){_0x4ea710=arguments[_0x5c63b9];for(var _0x1eb999 in _0x4ea710)Object[_0x5f37a0(0x37c)][_0x5f37a0(0x353)]['call'](_0x4ea710,_0x1eb999)&&(_0x34108f[_0x1eb999]=_0x4ea710[_0x1eb999]);}return _0x34108f;},N[_0x2ac466(0xd6)](this,arguments);},ei=function(_0x39f4b8,_0x20d63e){const _0x3175e1=_0x3022d6;var _0x2908b5={};for(var _0x29e71f in _0x39f4b8)Object[_0x3175e1(0x37c)][_0x3175e1(0x353)][_0x3175e1(0x422)](_0x39f4b8,_0x29e71f)&&_0x20d63e[_0x3175e1(0x25e)](_0x29e71f)<0x0&&(_0x2908b5[_0x29e71f]=_0x39f4b8[_0x29e71f]);if(_0x39f4b8!=null&&typeof Object[_0x3175e1(0x2a9)]=='function'){for(var _0x4f6db4=0x0,_0x29e71f=Object[_0x3175e1(0x2a9)](_0x39f4b8);_0x4f6db4<_0x29e71f[_0x3175e1(0x2ce)];_0x4f6db4++)_0x20d63e['indexOf'](_0x29e71f[_0x4f6db4])<0x0&&Object[_0x3175e1(0x37c)][_0x3175e1(0x35c)][_0x3175e1(0x422)](_0x39f4b8,_0x29e71f[_0x4f6db4])&&(_0x2908b5[_0x29e71f[_0x4f6db4]]=_0x39f4b8[_0x29e71f[_0x4f6db4]]);}return _0x2908b5;},Ge=y['forwardRef'](function(_0xe8c99c,_0x5ec6b1){const _0x510bdf=_0x3022d6;var _0x14b232=_0xe8c99c[_0x510bdf(0x263)],_0x2aca30=_0xe8c99c['id'],_0x40d21b=_0xe8c99c[_0x510bdf(0xe2)],_0x2c69da=_0xe8c99c[_0x510bdf(0x253)],_0x4ccd10=ei(_0xe8c99c,[_0x510bdf(0x263),'id',_0x510bdf(0xe2),_0x510bdf(0x253)]),_0x2da550='univerjs-icon\x20univerjs-icon-'[_0x510bdf(0x419)](_0x2aca30,'\x20')['concat'](_0x40d21b||'')[_0x510bdf(0x2f7)](),_0x3ddee3=y[_0x510bdf(0x425)]('_'[_0x510bdf(0x419)](ii()));return Ot(_0x14b232,''[_0x510bdf(0x419)](_0x2aca30),{'defIds':_0x14b232[_0x510bdf(0x379)],'idSuffix':_0x3ddee3['current']},N({'ref':_0x5ec6b1,'className':_0x2da550},_0x4ccd10),_0x2c69da);});function Ot(_0x5b6e71,_0x467606,_0x1e566c,_0x3644dd,_0x14fa7b){const _0x5227cc=_0x3022d6;return y[_0x5227cc(0x7d)](_0x5b6e71['tag'],N(N({'key':_0x467606},ti(_0x5b6e71,_0x1e566c,_0x14fa7b)),_0x3644dd),(si(_0x5b6e71,_0x1e566c)['children']||[])[_0x5227cc(0x317)](function(_0x24fce0,_0xe7e765){const _0x44dcfe=_0x5227cc;return Ot(_0x24fce0,''[_0x44dcfe(0x419)](_0x467606,'-')['concat'](_0x5b6e71['tag'],'-')['concat'](_0xe7e765),_0x1e566c,void 0x0,_0x14fa7b);}));}function ti(_0x5053d1,_0x3f3cec,_0x347d70){const _0x1f2b68=_0x3022d6;var _0x166cea=N({},_0x5053d1[_0x1f2b68(0x220)]);_0x347d70!=null&&_0x347d70['colorChannel1']&&_0x166cea[_0x1f2b68(0x43f)]===_0x1f2b68(0x30f)&&(_0x166cea[_0x1f2b68(0x43f)]=_0x347d70[_0x1f2b68(0x30f)]);var _0x13295e=_0x3f3cec[_0x1f2b68(0x379)];return!_0x13295e||_0x13295e[_0x1f2b68(0x2ce)]===0x0||(_0x5053d1[_0x1f2b68(0x2b6)]===_0x1f2b68(0x1b7)&&_0x166cea['xlink:href']&&(_0x166cea[_0x1f2b68(0x2d2)]=_0x166cea['xlink:href']+_0x3f3cec[_0x1f2b68(0x361)]),Object[_0x1f2b68(0x8e)](_0x166cea)[_0x1f2b68(0x3d3)](function(_0x2f18e6){const _0x34e318=_0x1f2b68;var _0x4a62de=_0x2f18e6[0x0],_0x2a1e82=_0x2f18e6[0x1];typeof _0x2a1e82=='string'&&(_0x166cea[_0x4a62de]=_0x2a1e82['replace'](/url\(#(.*)\)/,_0x34e318(0x3ee)[_0x34e318(0x419)](_0x3f3cec[_0x34e318(0x361)],')')));})),_0x166cea;}function si(_0x2bf097,_0x4435bb){const _0x33e519=_0x3022d6;var _0x197652,_0xa9b418=_0x4435bb['defIds'];return!_0xa9b418||_0xa9b418['length']===0x0?_0x2bf097:_0x2bf097[_0x33e519(0x2b6)]==='defs'&&(!((_0x197652=_0x2bf097['children'])===null||_0x197652===void 0x0)&&_0x197652[_0x33e519(0x2ce)])?N(N({},_0x2bf097),{'children':_0x2bf097[_0x33e519(0x436)][_0x33e519(0x317)](function(_0xdb6428){const _0x26eadc=_0x33e519;return typeof _0xdb6428[_0x26eadc(0x220)]['id']==_0x26eadc(0x383)&&_0xa9b418&&_0xa9b418[_0x26eadc(0x25e)](_0xdb6428[_0x26eadc(0x220)]['id'])>-0x1?N(N({},_0xdb6428),{'attrs':N(N({},_0xdb6428['attrs']),{'id':_0xdb6428['attrs']['id']+_0x4435bb[_0x26eadc(0x361)]})}):_0xdb6428;})}):_0x2bf097;}function ii(){const _0x119000=_0x3022d6;return Math[_0x119000(0x3d8)]()['toString'](0x24)[_0x119000(0x2db)](0x2,0x8);}Ge['displayName']=_0x3022d6(0x403);var ni={'tag':_0x3022d6(0x2cc),'attrs':{'fill':_0x3022d6(0x45e),'viewBox':_0x3022d6(0x3c8),'width':_0x3022d6(0x132),'height':_0x3022d6(0x132)},'children':[{'tag':'g','attrs':{'clipPath':_0x3022d6(0x199)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x3022d6(0x9d),'strokeLinecap':_0x3022d6(0x401),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3022d6(0x1dc),'attrs':{'id':_0x3022d6(0x3d7)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'fill':_0x3022d6(0x17d),'d':_0x3022d6(0x1ee)}}]}]}],'defIds':[_0x3022d6(0x3d7)]},Dt=y[_0x3022d6(0x257)](function(_0x26c89e,_0x5c026c){const _0x213ded=_0x3022d6;return y[_0x213ded(0x7d)](Ge,Object[_0x213ded(0x9c)]({},_0x26c89e,{'id':_0x213ded(0x40e),'ref':_0x5c026c,'icon':ni}));});Dt[_0x3022d6(0x1f9)]='OffLineSingle';var ri={'tag':_0x3022d6(0x2cc),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x3022d6(0x132)},'children':[{'tag':'g','attrs':{'clipPath':_0x3022d6(0x27a)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'stroke':_0x3022d6(0xc4),'d':_0x3022d6(0x302),'strokeLinecap':_0x3022d6(0x401),'strokeLinejoin':_0x3022d6(0x401),'strokeWidth':1.2}}]},{'tag':_0x3022d6(0x421),'attrs':{},'children':[{'tag':_0x3022d6(0x1dc),'attrs':{'id':_0x3022d6(0x43a)},'children':[{'tag':_0x3022d6(0x40d),'attrs':{'fill':_0x3022d6(0x17d),'d':_0x3022d6(0x1ee),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Pt=y['forwardRef'](function(_0x5780af,_0x57c8c9){const _0x339c2a=_0x3022d6;return y[_0x339c2a(0x7d)](Ge,Object[_0x339c2a(0x9c)]({},_0x5780af,{'id':_0x339c2a(0x411),'ref':_0x57c8c9,'icon':ri}));});Pt[_0x3022d6(0x1f9)]=_0x3022d6(0x1cb);const oi=_0x3022d6(0x18b),ai=_0x3022d6(0x324),ci='univer-online-status',li=_0x3022d6(0x33c),hi=_0x3022d6(0x24d),ne={'onlineStatusIcon':oi,'onlineStatusTitle':ai,'onlineStatus':ci,'online':li,'offline':hi};function _i(_0x119ebd){const _0x1a70c7=_0x3022d6;switch(_0x119ebd){case D[_0x1a70c7(0x316)]:return _0x1a70c7(0x135);case D['CONFLICT']:return _0x1a70c7(0x1a1);case D['FETCH_MISS']:return _0x1a70c7(0xb3);case D[_0x1a70c7(0x463)]:return _0x1a70c7(0x1cd);case D[_0x1a70c7(0x270)]:case D[_0x1a70c7(0x1d0)]:case D[_0x1a70c7(0x319)]:return _0x1a70c7(0x12c);case D[_0x1a70c7(0xf8)]:return _0x1a70c7(0x1cc);}}function Ut(_0x524d32){const _0x400e06=_0x3022d6,{status$:_0x2a8259}=_0x524d32,_0x3295ce=L[_0x400e06(0x23b)](_0x2a8259,D[_0x400e06(0x463)]),_0x45f144=o['useDependency'](o[_0x400e06(0x43e)]),_0x5ca871=_0x3295ce!==D[_0x400e06(0x316)],_0x2dcca8=_0x45f144['t'](_i(_0x3295ce)),_0x1d51bb=kt(ne['onlineStatus'],{[ne['online']]:_0x5ca871,[ne['offline']]:!_0x5ca871}),_0x38df82=_0x5ca871?y[_0x400e06(0x7d)](Pt,null):y['createElement'](Dt,null);return y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':_0x1d51bb},y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':ne[_0x400e06(0x256)]},_0x38df82),y[_0x400e06(0x7d)](_0x400e06(0xb1),{'className':ne[_0x400e06(0x39d)]},_0x2dcca8));}var ui=Object[_0x3022d6(0x131)],di=Object['getOwnPropertyDescriptor'],Si=(_0x41599d,_0x5300c3,_0x2085ed,_0xfb07db)=>{const _0x2f9fc4=_0x3022d6;for(var _0x201f73=_0xfb07db>0x1?void 0x0:_0xfb07db?di(_0x5300c3,_0x2085ed):_0x5300c3,_0x22e295=_0x41599d[_0x2f9fc4(0x2ce)]-0x1,_0x17b5d8;_0x22e295>=0x0;_0x22e295--)(_0x17b5d8=_0x41599d[_0x22e295])&&(_0x201f73=(_0xfb07db?_0x17b5d8(_0x5300c3,_0x2085ed,_0x201f73):_0x17b5d8(_0x201f73))||_0x201f73);return _0xfb07db&&_0x201f73&&ui(_0x5300c3,_0x2085ed,_0x201f73),_0x201f73;},he=(_0x15d59f,_0x118a34)=>(_0xa6152a,_0x2d004b)=>_0x118a34(_0xa6152a,_0x2d004b,_0x15d59f);exports[_0x3022d6(0x269)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x3a016d,_0xc7d70c,_0x2c4e79,_0x22ef6b){const _0x4073a1=_0x3022d6;super(),u(this,_0x4073a1(0x30d),new v[(_0x4073a1(0x141))](D[_0x4073a1(0x463)])),(this[_0x4073a1(0x17c)]=_0x3a016d,this['_uiPartsService']=_0xc7d70c,this[_0x4073a1(0x123)]=_0x2c4e79,this[_0x4073a1(0x184)]=_0x22ef6b,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x3022d6(0x13a)](){const _0x261b2b=_0x3022d6;this[_0x261b2b(0x14a)](this[_0x261b2b(0x326)][_0x261b2b(0x9a)](L[_0x261b2b(0x1ca)][_0x261b2b(0xd1)],()=>o[_0x261b2b(0x45a)](vi({'status$':this['_status$'][_0x261b2b(0x295)]()}),this[_0x261b2b(0x123)])));}[_0x3022d6(0x279)](){const _0x53a634=_0x3022d6;this[_0x53a634(0x14a)](o[_0x53a634(0x24c)](this[_0x53a634(0x17c)][_0x53a634(0x203)][_0x53a634(0x23e)](v[_0x53a634(0x266)](()=>{const _0x385874=_0x53a634,_0x47889b=this[_0x385874(0x17c)][_0x385874(0x45c)]();return _0x47889b?this['_collaborationController'][_0x385874(0x293)](_0x47889b[_0x385874(0x29c)]()):v['of'](null);}),v[_0x53a634(0x266)](_0x20cdcb=>_0x20cdcb?_0x20cdcb['status$']:v['of'](D['NOT_COLLAB'])))[_0x53a634(0x265)](_0x213a81=>{const _0x1bd95f=_0x53a634;this[_0x1bd95f(0x30d)][_0x1bd95f(0x116)](_0x213a81);})));}},exports['DesktopCollaborationStatusDisplayController']=Si([o[_0x3022d6(0x3ef)](o[_0x3022d6(0x32a)]['Starting'],exports[_0x3022d6(0x269)]),he(0x0,o[_0x3022d6(0xb8)]),he(0x1,L[_0x3022d6(0x124)]),he(0x2,o['Inject'](o[_0x3022d6(0x448)])),he(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x431)]))],exports[_0x3022d6(0x269)]);function vi(_0x5d73a5){const {status$:_0x1cc3f6}=_0x5d73a5;return function(){const _0xaa8b48=_0xbc10;return y[_0xaa8b48(0x7d)](Ut,{'status$':_0x1cc3f6});};}const Ye=o[_0x3022d6(0x2f4)](_0x3022d6(0x20f));var mi=Object[_0x3022d6(0x131)],gi=Object['getOwnPropertyDescriptor'],fi=(_0x447b3c,_0x10bd04,_0x220bc4,_0x462cee)=>{for(var _0x4c3fa5=_0x462cee>0x1?void 0x0:_0x462cee?gi(_0x10bd04,_0x220bc4):_0x10bd04,_0x2cb0ae=_0x447b3c['length']-0x1,_0x2dd1f8;_0x2cb0ae>=0x0;_0x2cb0ae--)(_0x2dd1f8=_0x447b3c[_0x2cb0ae])&&(_0x4c3fa5=(_0x462cee?_0x2dd1f8(_0x10bd04,_0x220bc4,_0x4c3fa5):_0x2dd1f8(_0x4c3fa5))||_0x4c3fa5);return _0x462cee&&_0x4c3fa5&&mi(_0x10bd04,_0x220bc4,_0x4c3fa5),_0x4c3fa5;},z=(_0x46a470,_0x3b6322)=>(_0x24c1ca,_0x26e90d)=>_0x3b6322(_0x24c1ca,_0x26e90d,_0x46a470);exports[_0x3022d6(0x336)]=class extends o[_0x3022d6(0x460)]{constructor(_0x10f1b6,_0x4a50cf,_0x200a58,_0x285826,_0x322326,_0x4dabf7){const _0xe46bbc=_0x3022d6;super(),this[_0xe46bbc(0x414)]=_0x10f1b6,this['_logService']=_0x4a50cf,this[_0xe46bbc(0x467)]=_0x200a58,this[_0xe46bbc(0x3ea)]=_0x285826,this[_0xe46bbc(0x2d9)]=_0x322326,_0x4dabf7?_0x4dabf7==null||_0x4dabf7[_0xe46bbc(0x35b)]()[_0xe46bbc(0x156)](()=>this[_0xe46bbc(0x11b)]()):(this[_0xe46bbc(0x38b)][_0xe46bbc(0xf9)](_0xe46bbc(0x198),_0xe46bbc(0x17f)),this['_init']());}async['_init'](){const _0x1eae74=_0x3022d6,_0x72392=this[_0x1eae74(0x414)][_0x1eae74(0xd8)](_0x1eae74(0x25f)),_0x463797=this['_urlService']['getParam'](_0x1eae74(0x1f3));if(!_0x72392||!_0x463797){this[_0x1eae74(0x38b)]['debug'](_0x1eae74(0x198),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x463797)){case j[_0x1eae74(0x2c0)]:{const _0x55eab1=await this[_0x1eae74(0x1e1)](_0x72392);this[_0x1eae74(0x391)](_0x55eab1);break;}case j['UNIVER_DOC']:{await this[_0x1eae74(0x11d)](_0x72392);break;}default:{this[_0x1eae74(0x38b)][_0x1eae74(0x404)]('[DataLoaderController]',_0x1eae74(0x2dd));break;}}}async[_0x3022d6(0x391)](_0x27dfc1){const _0x113115=_0x3022d6;await this[_0x113115(0x224)](_0x27dfc1),_0x27dfc1[_0x113115(0x409)][_0x113115(0x23e)](v['takeUntil'](this[_0x113115(0x374)]))[_0x113115(0x265)](_0x1a3879=>{const _0x5c0690=_0x113115;_0x1a3879&&this[_0x5c0690(0x11a)](_0x1a3879);}),this[_0x113115(0x414)][_0x113115(0xf0)][_0x113115(0x23e)](v[_0x113115(0xc7)](this[_0x113115(0x374)]))[_0x113115(0x265)](()=>this[_0x113115(0x224)](_0x27dfc1));}[_0x3022d6(0x11a)](_0x345ca6,_0x16e0d8=!0x1){const _0x1d08dd=_0x3022d6,_0x2ff214=this[_0x1d08dd(0x414)]['getParam'](_0x1d08dd(0x44d));_0x345ca6[_0x1d08dd(0x3a8)]()!==_0x2ff214&&this[_0x1d08dd(0x414)][_0x1d08dd(0xad)](_0x1d08dd(0x44d),_0x345ca6[_0x1d08dd(0x3a8)](),_0x16e0d8);}async[_0x3022d6(0x224)](_0x40133d){const _0x5584aa=_0x3022d6;var _0x37948b;const _0x5cb5a0=this[_0x5584aa(0x414)][_0x5584aa(0xd8)]('subunit');if(!_0x5cb5a0||!_0x40133d[_0x5584aa(0xb4)](_0x5cb5a0)){const _0x318f11=_0x40133d[_0x5584aa(0x1d8)]()[0x0],_0x4331f2=_0x40133d[_0x5584aa(0xb4)](_0x318f11);if(!_0x4331f2)return;this['_updateURLWithCurrentState'](_0x4331f2,!0x0),await this[_0x5584aa(0x467)][_0x5584aa(0x2a3)](p[_0x5584aa(0x1c7)]['id'],{'unitId':_0x40133d[_0x5584aa(0x29c)](),'subUnitId':_0x318f11});return;}((_0x37948b=_0x40133d[_0x5584aa(0x34b)]())==null?void 0x0:_0x37948b[_0x5584aa(0x3a8)]())!==_0x5cb5a0&&await this[_0x5584aa(0x467)][_0x5584aa(0x2a3)](p['SetWorksheetActivateCommand']['id'],{'unitId':_0x40133d[_0x5584aa(0x29c)](),'subUnitId':_0x5cb5a0});}async['_loadSheet'](_0x2dd0af){const _0x249a55=_0x3022d6;let _0x171d02=0x0;const _0xfb1343=await this['_localCacheService'][_0x249a55(0x3b8)](_0x2dd0af);return _0xfb1343&&(_0xfb1343[_0x249a55(0xca)]||_0xfb1343['mutations'][_0x249a55(0x2ce)]!==0x0)&&(_0x171d02=_0xfb1343[_0x249a55(0x342)]),_0x171d02===0x0&&this['_logService']['debug'](_0x249a55(0x198),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x249a55(0x3bc)](_0x2dd0af,_0x171d02);}async[_0x3022d6(0x11d)](_0x36aaef){const _0x16302f=_0x3022d6;let _0x47db5e=0x0;const _0xfea10f=await this['_localCacheService'][_0x16302f(0x3b8)](_0x36aaef);return _0xfea10f&&(_0xfea10f[_0x16302f(0xca)]||_0xfea10f['mutations'][_0x16302f(0x2ce)]!==0x0)&&(_0x47db5e=_0xfea10f['rev']),_0x47db5e===0x0&&this[_0x16302f(0x38b)][_0x16302f(0xf9)](_0x16302f(0x198),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x16302f(0x2d9)][_0x16302f(0x255)](_0x36aaef,_0x47db5e);}},exports['DataLoaderController']=fi([o['OnLifecycle'](o[_0x3022d6(0x32a)][_0x3022d6(0xd4)],exports[_0x3022d6(0x336)]),z(0x0,Ye),z(0x1,o[_0x3022d6(0x22f)]),z(0x2,o['ICommandService']),z(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x174)])),z(0x4,o[_0x3022d6(0x291)](_[_0x3022d6(0x393)])),z(0x5,o['Optional'](Bt[_0x3022d6(0x390)]))],exports[_0x3022d6(0x336)]);var Ii=Object[_0x3022d6(0x131)],pi=Object[_0x3022d6(0x2b4)],Ei=(_0x2ab917,_0x820c24,_0x3820c3,_0x284d94)=>{const _0x436596=_0x3022d6;for(var _0x24e433=_0x284d94>0x1?void 0x0:_0x284d94?pi(_0x820c24,_0x3820c3):_0x820c24,_0xea3f42=_0x2ab917[_0x436596(0x2ce)]-0x1,_0x3b7e49;_0xea3f42>=0x0;_0xea3f42--)(_0x3b7e49=_0x2ab917[_0xea3f42])&&(_0x24e433=(_0x284d94?_0x3b7e49(_0x820c24,_0x3820c3,_0x24e433):_0x3b7e49(_0x24e433))||_0x24e433);return _0x284d94&&_0x24e433&&Ii(_0x820c24,_0x3820c3,_0x24e433),_0x24e433;},nt=(_0xf9a780,_0xd54f6e)=>(_0xcba332,_0x46995e)=>_0xd54f6e(_0xcba332,_0x46995e,_0xf9a780);const Ci=_0x3022d6(0x1ff),bi=_0x3022d6(0x17a);let ue=class extends o['Disposable']{constructor(_0x418202,_0x4a82b0){const _0x37c89f=_0x3022d6;super(),this['_univerInstanceService']=_0x418202,this[_0x37c89f(0xee)]=_0x4a82b0,this[_0x37c89f(0x11b)]();}[_0x3022d6(0x11b)](){const _0x1d83f5=_0x3022d6;this[_0x1d83f5(0x14a)](o[_0x1d83f5(0x24c)](this[_0x1d83f5(0x17c)][_0x1d83f5(0x203)][_0x1d83f5(0x265)](()=>{const _0x1cf256=_0x1d83f5;var _0x42e6c7;const _0x5fa7e8=this[_0x1cf256(0x17c)]['getFocusedUnit']();let _0x186205=(_0x42e6c7=this[_0x1cf256(0xee)][_0x1cf256(0x1bd)](Ci))!=null?_0x42e6c7:bi;_0x5fa7e8 instanceof o[_0x1cf256(0x2a6)]&&(_0x186205=_0x5fa7e8[_0x1cf256(0x1fa)]),document[_0x1cf256(0x434)]=_0x186205;})));}};ue=Ei([o['OnLifecycle'](o['LifecycleStages'][_0x3022d6(0x32d)],ue),nt(0x0,o[_0x3022d6(0xb8)]),nt(0x1,o['IConfigService'])],ue);var Ti=Object['defineProperty'],Ri=Object[_0x3022d6(0x2b4)],Oi=(_0x373aa7,_0x34845b,_0x3c769c,_0x47cb0f)=>{for(var _0x1dfae2=_0x47cb0f>0x1?void 0x0:_0x47cb0f?Ri(_0x34845b,_0x3c769c):_0x34845b,_0x26dbf5=_0x373aa7['length']-0x1,_0x516862;_0x26dbf5>=0x0;_0x26dbf5--)(_0x516862=_0x373aa7[_0x26dbf5])&&(_0x1dfae2=(_0x47cb0f?_0x516862(_0x34845b,_0x3c769c,_0x1dfae2):_0x516862(_0x1dfae2))||_0x1dfae2);return _0x47cb0f&&_0x1dfae2&&Ti(_0x34845b,_0x3c769c,_0x1dfae2),_0x1dfae2;},rt=(_0x211d48,_0x233aea)=>(_0x4480e2,_0x4b4b91)=>_0x233aea(_0x4480e2,_0x4b4b91,_0x211d48);exports['SnapshotServerOverHTTPService']=class{constructor(_0x512580,_0x3da7f5){const _0x4fa6e8=_0x3022d6;this[_0x4fa6e8(0xee)]=_0x512580,this[_0x4fa6e8(0x10f)]=_0x3da7f5;}async[_0x3022d6(0x136)](_0x3a36a7,_0x5c15d3){const _0x40478e=_0x3022d6;var _0x2b8d79;const {unitID:_0x17db55,type:_0x23d5ea,revision:_0x5c5d8e=0x0}=_0x5c15d3,_0x178704=this['_getSnapshotAPIPrefix']()+'/'+_0x23d5ea+_0x40478e(0x3b5)+_0x17db55+_0x40478e(0x111)+_0x5c5d8e,_0x5292b7=(await this['_httpService'][_0x40478e(0x84)](_0x178704))[_0x40478e(0x1ad)],_0x44f102=(_0x2b8d79=_0x5292b7[_0x40478e(0x246)])==null?void 0x0:_0x2b8d79[_0x40478e(0x1c3)];if(_0x44f102){const _0x197afa=_0x44f102==null?void 0x0:_0x44f102[_0x40478e(0x2f2)],_0x3b9c5f=o['textEncoder']['encode'](o['b64DecodeUnicode'](_0x197afa));_0x44f102['originalMeta']=_0x3b9c5f,Object[_0x40478e(0x8e)](_0x44f102['sheets'])[_0x40478e(0x3d3)](([,_0x39a3e4])=>{const _0x2c8882=_0x40478e,_0x341d20=_0x39a3e4[_0x2c8882(0x2f2)],_0x4b3cd6=o['textEncoder'][_0x2c8882(0x385)](o[_0x2c8882(0xc9)](_0x341d20));_0x39a3e4['originalMeta']=_0x4b3cd6;});}return _0x5292b7;}async[_0x3022d6(0x190)](_0x44033a,_0x567241){const _0x361c52=_0x3022d6,{unitID:_0x4a5014,type:_0x25b0e0,blockID:_0x5d635d}=_0x567241,_0x359efe=this[_0x361c52(0x444)]()+'/'+_0x25b0e0+_0x361c52(0x3b5)+_0x4a5014+'/block/'+_0x5d635d;return(await this[_0x361c52(0x10f)]['get'](_0x359efe))['body'];}async[_0x3022d6(0x3fd)](_0x47e961,_0x411cb5){const _0x342ce3=_0x3022d6,{unitID:_0x50b5d5,type:_0x4fae31,from:_0x13b406,to:_0x3f39a8}=_0x411cb5,_0x29c2be=this['_getAPIPrefix']()+'/'+_0x4fae31+_0x342ce3(0x3b5)+_0x50b5d5+'/fetchmissing?from='+_0x13b406+_0x342ce3(0x348)+_0x3f39a8;return(await this[_0x342ce3(0x10f)]['get'](_0x29c2be))[_0x342ce3(0x1ad)];}[_0x3022d6(0x433)](){const _0x1fcee5=_0x3022d6;var _0x520190;return(_0x520190=this[_0x1fcee5(0xee)][_0x1fcee5(0x1bd)](lt))!=null?_0x520190:this[_0x1fcee5(0x444)]();}[_0x3022d6(0x444)](){const _0x148968=_0x3022d6;var _0x4c186a;return(_0x4c186a=this[_0x148968(0xee)][_0x148968(0x1bd)](ct))!=null?_0x4c186a:Vt;}async[_0x3022d6(0x9b)](_0x343b89,_0xffa787){const _0x20b68c=_0x3022d6,_0xb85e18=_0x20b68c(0x21c)+_0xffa787[_0x20b68c(0x1f3)]+_0x20b68c(0x3b5)+_0xffa787['unitID']+_0x20b68c(0x1c8);return(await this[_0x20b68c(0x10f)][_0x20b68c(0x84)](_0xb85e18,{'params':{'resourceId':JSON[_0x20b68c(0x258)](_0xffa787[_0x20b68c(0x3f3)])}}))[_0x20b68c(0x1ad)];}[_0x3022d6(0x3b9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x412f94=_0x3022d6;throw new Error(_0x412f94(0x2ec));}[_0x3022d6(0x14d)](){const _0x137ae7=_0x3022d6;throw new Error(_0x137ae7(0x2ec));}},exports[_0x3022d6(0x225)]=Oi([rt(0x0,o[_0x3022d6(0x3be)]),rt(0x1,o[_0x3022d6(0x291)](U['HTTPService']))],exports[_0x3022d6(0x225)]);var Di=Object[_0x3022d6(0x131)],Pi=Object[_0x3022d6(0x2b4)],Ui=(_0xde67b4,_0x1d58f8,_0x43763b,_0xe47a3d)=>{const _0x4f2308=_0x3022d6;for(var _0x441171=_0xe47a3d>0x1?void 0x0:_0xe47a3d?Pi(_0x1d58f8,_0x43763b):_0x1d58f8,_0x4985df=_0xde67b4[_0x4f2308(0x2ce)]-0x1,_0x1c2158;_0x4985df>=0x0;_0x4985df--)(_0x1c2158=_0xde67b4[_0x4985df])&&(_0x441171=(_0xe47a3d?_0x1c2158(_0x1d58f8,_0x43763b,_0x441171):_0x1c2158(_0x441171))||_0x441171);return _0xe47a3d&&_0x441171&&Di(_0x1d58f8,_0x43763b,_0x441171),_0x441171;},re=(_0x18cce9,_0x1fc7d0)=>(_0x116730,_0x3adb2a)=>_0x1fc7d0(_0x116730,_0x3adb2a,_0x18cce9);let $e=class extends o['LocalUndoRedoService']{constructor(_0x394a69,_0x438863,_0x816939,_0x260ea8,_0x27a0b1){const _0x370de0=_0x3022d6;super(_0x394a69,_0x438863,_0x816939),this[_0x370de0(0x223)]=_0x260ea8,this['_logService']=_0x27a0b1;}[_0x3022d6(0x392)](_0x16dac9,_0x10d2b5){const _0x43b448=_0x3022d6,_0x2ae7ef=this['_getUndoStack'](_0x16dac9);if(_0x2ae7ef)try{const _0x43cfec=this[_0x43b448(0xfb)](_0x2ae7ef,_0x10d2b5);this[_0x43b448(0x1a6)](_0x16dac9,_0x43cfec);}catch(_0x49a0c8){this[_0x43b448(0x38b)]['error']('[CollaborationUndoRedoService]',_0x49a0c8),this[_0x43b448(0x2c8)](_0x16dac9);}const _0x4c7ecf=this['_getRedoStack'](_0x16dac9);if(_0x4c7ecf)try{const _0x1d1c94=this[_0x43b448(0xfb)](_0x4c7ecf,_0x10d2b5);this['_substituteRedoStack'](_0x16dac9,_0x1d1c94);}catch(_0x1cb997){this['_logService'][_0x43b448(0x404)](_0x1cb997),this['_clearRedo'](_0x16dac9);}}[_0x3022d6(0x2c8)](_0x5d4f20){const _0x43fe2d=_0x3022d6,_0x5cc21c=this['_getUndoStack'](_0x5d4f20);_0x5cc21c&&(_0x5cc21c[_0x43fe2d(0x2ce)]=0x0,this['_updateStatus']());}[_0x3022d6(0x173)](_0x581fdd){const _0x2a0eed=_0x3022d6,_0x240a55=this[_0x2a0eed(0x3ff)](_0x581fdd);_0x240a55&&(_0x240a55['length']=0x0,this['_updateStatus']());}[_0x3022d6(0x1a6)](_0xe4d781,_0x524362){const _0x22691c=_0x3022d6;this[_0x22691c(0x2da)]['set'](_0xe4d781,_0x524362),this[_0x22691c(0x20c)]();}['_substituteRedoStack'](_0x497b44,_0x299ad6){const _0x538df0=_0x3022d6;this[_0x538df0(0x140)][_0x538df0(0x182)](_0x497b44,_0x299ad6),this[_0x538df0(0x20c)]();}['_transformStack'](_0x5a1361,_0x8aa5df){const _0x534bc2=_0x3022d6,_0x871fd9=[];let _0x276e67=_0x8aa5df,_0x485a99=_0x8aa5df;for(let _0x1fba1f=_0x5a1361[_0x534bc2(0x2ce)]-0x1;_0x1fba1f>=0x0;_0x1fba1f--){const {unitID:_0x594529,undoMutations:_0x1e13d3,redoMutations:_0x43a925}=_0x5a1361[_0x1fba1f],_0x40492a=this[_0x534bc2(0x223)][_0x534bc2(0x375)](_0x276e67,_0x1e13d3),_0x3498db=this[_0x534bc2(0x223)]['transformMutationsWithChangeset'](_0x485a99,_0x43a925);if(_[_0x534bc2(0x2d7)](_0x40492a)||_['isTransformMutationsWithChangesetFailure'](_0x3498db)){this['_logService'][_0x534bc2(0x404)](_0x534bc2(0x195),_0x534bc2(0x2b8),_0x40492a,_0x3498db);break;}_0x276e67=_0x40492a[_0x534bc2(0x3c6)],_0x485a99=_0x3498db[_0x534bc2(0x3c6)],_0x871fd9[_0x534bc2(0x42d)]({'unitID':_0x594529,'undoMutations':_0x40492a[_0x534bc2(0x469)],'redoMutations':_0x3498db[_0x534bc2(0x469)]});}return _0x871fd9[_0x534bc2(0x10e)]();}};$e=Ui([re(0x0,o[_0x3022d6(0xb8)]),re(0x1,o[_0x3022d6(0x3e6)]),re(0x2,o[_0x3022d6(0xa6)]),re(0x3,_[_0x3022d6(0x1d1)]),re(0x4,o['ILogService'])],$e);class wt extends o['RxDisposable']{constructor(){const _0x517469=_0x3022d6;super(),u(this,_0x517469(0xf0)),this['urlChange$']=v[_0x517469(0x163)](window,_0x517469(0x181))[_0x517469(0x23e)](v[_0x517469(0xc7)](this['dispose$']),v[_0x517469(0x3af)](0x1),v[_0x517469(0x2dc)](void 0x0));}[_0x3022d6(0xad)](_0x22d6ec,_0x5252ef,_0x1ec323=!0x1){const _0xd70a63=_0x3022d6,_0x318282=new URL(window[_0xd70a63(0x122)][_0xd70a63(0x262)]);_0x318282[_0xd70a63(0x3aa)][_0xd70a63(0x182)](_0x22d6ec,_0x5252ef),_0x1ec323?window[_0xd70a63(0x180)]['replaceState']('','',_0x318282[_0xd70a63(0x267)]()):window[_0xd70a63(0x180)][_0xd70a63(0x245)]('','',_0x318282['toString']());}[_0x3022d6(0x26f)](_0x33fe12,_0x106d68=!0x1){const _0x13f16a=_0x3022d6,_0x46c089=new URL(window['location'][_0x13f16a(0x262)]);_0x46c089[_0x13f16a(0x3aa)][_0x13f16a(0x1af)](_0x33fe12),_0x106d68?window[_0x13f16a(0x180)][_0x13f16a(0x205)]('','',_0x46c089[_0x13f16a(0x267)]()):window[_0x13f16a(0x180)][_0x13f16a(0x245)]('','',_0x46c089['toString']());}[_0x3022d6(0xd8)](_0x4e1a76){const _0xafca22=_0x3022d6;var _0x57ae93;return(_0x57ae93=new URL(window['location']['href'])['searchParams'][_0xafca22(0x84)](_0x4e1a76))!=null?_0x57ae93:void 0x0;}}const Pe=_0x3022d6(0x10d),wi=_0x3022d6(0x206),Mi=_0x3022d6(0x1f7),oe=0x6,yi=1.5,Ue=0x4,Ni=1.5,Li=_0x3022d6(0xef);class ot{constructor(_0x468093,_0x21872e,_0x302255,_0xf955b9){const _0x111d6f=_0x3022d6;u(this,'_shapes',[]),u(this,'_anchor',null),u(this,_0x111d6f(0x170),null),u(this,_0x111d6f(0x227),null),u(this,'_hideTimer',null),u(this,_0x111d6f(0x406),null),(this[_0x111d6f(0x33e)]=_0x468093,this['_scene']=_0x21872e,this[_0x111d6f(0x1f8)]=_0x302255,this[_0x111d6f(0x29e)]=_0xf955b9,this[_0x111d6f(0x166)]());}set[_0x3022d6(0x197)](_0x259fe6){const _0x565f06=_0x3022d6;_0x259fe6?(this[_0x565f06(0x227)]&&this['_anchorDot']['hide'](),this[_0x565f06(0x170)]&&this[_0x565f06(0x170)]['show']()):(this[_0x565f06(0x227)]&&this['_anchorDot'][_0x565f06(0x1d3)](),this[_0x565f06(0x170)]&&this[_0x565f06(0x170)][_0x565f06(0x10b)]());}[_0x3022d6(0x147)](){const _0x1396fe=_0x3022d6;for(const _0x4e11ca of this[_0x1396fe(0x1ea)])_0x4e11ca['dispose']();this[_0x1396fe(0x170)]&&this[_0x1396fe(0x170)]['dispose'](),this[_0x1396fe(0x227)]&&this[_0x1396fe(0x227)][_0x1396fe(0x147)](),this[_0x1396fe(0xf2)]&&this[_0x1396fe(0xf2)][_0x1396fe(0x147)](),this[_0x1396fe(0x406)]&&this['_eventUnsubscribe']();}[_0x3022d6(0x166)](){const _0x2d9d68=_0x3022d6;var _0x969afb;const {_docSkeleton:_0x596256,_document:_0x1d172e}=this,{color:_0x2187a3,name:_0x4ae51e,ranges:_0x4a7aa6}=this[_0x2d9d68(0x33e)],_0x4c07db=_0x1d172e['getOffsetConfig'](),{docsLeft:_0x24ec1a,docsTop:_0x2a7d48}=_0x4c07db,_0x254dbc=new b[(_0x2d9d68(0x304))](_0x4c07db,_0x596256);for(const {startOffset:_0x37ec79,endOffset:_0x28a5f7,collapsed:_0x36ef09,isActive:_0x1776b6}of _0x4a7aa6){const _0xf40bff=_0x596256[_0x2d9d68(0x10a)](_0x37ec79),_0x5972af=_0x596256[_0x2d9d68(0x10a)](_0x28a5f7);if(_0x1776b6){const {contentBoxPointGroup:_0x161b0e}=_0x254dbc['getRangePointData'](_0x5972af,_0x5972af);if(_0x161b0e[_0x2d9d68(0x2ce)]===0x0)continue;this[_0x2d9d68(0xeb)](_0x2187a3,_0x161b0e,_0x24ec1a,_0x2a7d48,_0x4ae51e),this[_0x2d9d68(0x406)]=this[_0x2d9d68(0x405)]();}if(!_0x36ef09&&_0xf40bff&&_0x5972af){if(b['isValidRectRange'](_0xf40bff,_0x5972af)){const _0x5f179a=new b['NodePositionConvertToRectRange'](_0x4c07db,_0x596256),{pointGroup:_0x4fa771}=(_0x969afb=_0x5f179a[_0x2d9d68(0x338)](_0xf40bff,_0x5972af))!=null?_0x969afb:{};if(_0x4fa771==null||_0x4fa771['length']===0x0)continue;this[_0x2d9d68(0xd2)](_0x2187a3,_0x4fa771,_0x24ec1a,_0x2a7d48);}else{const {contentBoxPointGroup:_0x24bfdf}=_0x254dbc['getRangePointData'](_0xf40bff,_0x5972af);if(_0x24bfdf[_0x2d9d68(0x2ce)]===0x0)continue;this['_drawTextRange'](_0x2187a3,_0x24bfdf,_0x24ec1a,_0x2a7d48);}}}}[_0x3022d6(0xeb)](_0x9c23f2,_0x58e46c,_0x3c67fb,_0x154e8e,_0x31ac49){const _0x2e0169=_0x3022d6,_0x4066be=this[_0x2e0169(0x354)](_0x58e46c),{left:_0x3ffbde,top:_0x2ff494,height:_0x49c2f4}=_0x4066be,_0x258069=this['_getScale'](),_0x200b19=Ni/_0x258069,_0x2b9f02=new b[(_0x2e0169(0x2bf))](Pe+o[_0x2e0169(0x418)]['generateRandomId'](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e,'height':_0x49c2f4,'width':yi,'fill':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'strokeWidth':_0x200b19,'stroke':Li,'evented':!0x0});this[_0x2e0169(0xf2)]=_0x2b9f02,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0x2b9f02,b[_0x2e0169(0x150)]);const _0xc65cf9=new b[(_0x2e0169(0x2bf))](Pe+o[_0x2e0169(0x418)][_0x2e0169(0x24e)](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'strokeWidth':0x0,'stroke':_0x9c23f2||b[_0x2e0169(0x17e)](o[_0x2e0169(0x27c)][_0x2e0169(0xb9)],0x0),'evented':!0x1});this[_0x2e0169(0x227)]=_0xc65cf9,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0xc65cf9,b[_0x2e0169(0x150)]);const _0x19a1fd=new Ce(Pe+o[_0x2e0169(0x418)][_0x2e0169(0x24e)](oe),{'left':_0x3ffbde+_0x3c67fb-_0x200b19,'top':_0x2ff494+_0x154e8e-le,'text':_0x31ac49,'color':_0x9c23f2});this[_0x2e0169(0x170)]=_0x19a1fd,this[_0x2e0169(0x2f1)][_0x2e0169(0x1ce)](_0x19a1fd,b[_0x2e0169(0x150)]),this['_hover']=!0x1;}[_0x3022d6(0x405)](){const _0x21dba7=_0x3022d6,_0x30e9c5=this[_0x21dba7(0xf2)][_0x21dba7(0x109)][_0x21dba7(0x2c4)](()=>{const _0x1fcaa7=_0x21dba7;this[_0x1fcaa7(0x197)]=!0x0;}),_0x19d66f=this['_anchor'][_0x21dba7(0x35d)][_0x21dba7(0x2c4)](()=>{const _0x557145=_0x21dba7;this[_0x557145(0x94)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x54bb4e=_0x557145;this[_0x54bb4e(0x197)]=!0x1;},0x7d0);});return()=>{const _0x42d948=_0x21dba7;_0x30e9c5[_0x42d948(0x2b9)](),_0x19d66f[_0x42d948(0x2b9)]();};}['_drawTextRange'](_0x5bfb2c,_0x5a9ac9,_0x26b3e7,_0x499b66){const _0x4a7012=_0x3022d6,_0x85f639=new o['ColorKit'](_0x5bfb2c)['setAlpha'](0.2)[_0x4a7012(0x1c5)](),_0x4db5e9=new b[(_0x4a7012(0x28b))](wi+o[_0x4a7012(0x418)]['generateRandomId'](oe),{'pointsGroup':_0x5a9ac9,'fill':_0x85f639||b['getColor'](o[_0x4a7012(0x27c)]['black'],0.2),'left':_0x26b3e7,'top':_0x499b66,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a7012(0x1ea)][_0x4a7012(0x42d)](_0x4db5e9),this[_0x4a7012(0x2f1)][_0x4a7012(0x1ce)](_0x4db5e9,b['TEXT_RANGE_LAYER_INDEX']);}[_0x3022d6(0xd2)](_0x5b85cb,_0x2ff2a2,_0x3a3448,_0x1a5dc6){const _0x41f36d=_0x3022d6,_0x5e721e=new o[(_0x41f36d(0x273))](_0x5b85cb)[_0x41f36d(0x1c6)](0.2)['toRgbString'](),_0x543b75=new b[(_0x41f36d(0x28b))](Mi+o[_0x41f36d(0x418)][_0x41f36d(0x24e)](oe),{'pointsGroup':_0x2ff2a2,'fill':_0x5e721e||b[_0x41f36d(0x17e)](o['COLORS'][_0x41f36d(0xb9)],0.2),'left':_0x3a3448,'top':_0x1a5dc6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x41f36d(0x1ea)][_0x41f36d(0x42d)](_0x543b75),this[_0x41f36d(0x2f1)]['addObject'](_0x543b75,b[_0x41f36d(0x150)]);}[_0x3022d6(0x354)](_0x2cbe0d){const _0x555ec8=_0x2cbe0d[0x0],_0x48d9b4=_0x555ec8[0x0],_0x533457=_0x555ec8[0x2],{x:_0x20eae4,y:_0x56a2b3}=_0x48d9b4,{x:_0x5d2890,y:_0x2c0063}=_0x533457;return{'left':_0x20eae4,'top':_0x56a2b3,'width':_0x5d2890-_0x20eae4,'height':_0x2c0063-_0x56a2b3};}['_getScale'](){const _0x52bb27=_0x3022d6,{scaleX:_0x3a7bed,scaleY:_0x45fc89}=this[_0x52bb27(0x2f1)][_0x52bb27(0x244)]();return Math[_0x52bb27(0x102)](_0x3a7bed,_0x45fc89);}}var Ai=Object[_0x3022d6(0x131)],ji=Object[_0x3022d6(0x2b4)],$i=(_0x239a36,_0x2e10a8,_0x41be8f,_0x4745fc)=>{const _0x50d16c=_0x3022d6;for(var _0x1c6d5f=_0x4745fc>0x1?void 0x0:_0x4745fc?ji(_0x2e10a8,_0x41be8f):_0x2e10a8,_0x12a94f=_0x239a36[_0x50d16c(0x2ce)]-0x1,_0x57e94d;_0x12a94f>=0x0;_0x12a94f--)(_0x57e94d=_0x239a36[_0x12a94f])&&(_0x1c6d5f=(_0x4745fc?_0x57e94d(_0x2e10a8,_0x41be8f,_0x1c6d5f):_0x57e94d(_0x1c6d5f))||_0x1c6d5f);return _0x4745fc&&_0x1c6d5f&&Ai(_0x2e10a8,_0x41be8f,_0x1c6d5f),_0x1c6d5f;},_e=(_0x5a27a1,_0x5bc0f8)=>(_0x5c6a83,_0x437fa3)=>_0x5bc0f8(_0x5c6a83,_0x437fa3,_0x5a27a1);let de=class extends o[_0x3022d6(0x460)]{constructor(_0xa7917c,_0x21eb0b,_0x488d3c,_0x33f0e1,_0x5797a4){const _0x15ee78=_0x3022d6;super(),u(this,'_cursorShapes',[]),u(this,'_cursors',[]),(this[_0x15ee78(0x100)]=_0xa7917c,this[_0x15ee78(0x101)]=_0x21eb0b,this['_collabCursorController']=_0x488d3c,this[_0x15ee78(0x467)]=_0x33f0e1,this[_0x15ee78(0x2f0)]=_0x5797a4,this[_0x15ee78(0x11b)]());}[_0x3022d6(0x11b)](){const _0x2e77c7=_0x3022d6,_0x1b291d=this[_0x2e77c7(0x100)][_0x2e77c7(0x347)],_0x3da3e5=this[_0x2e77c7(0x101)];this[_0x2e77c7(0x14a)](v[_0x2e77c7(0x282)]([this[_0x2e77c7(0x15e)][_0x2e77c7(0x276)](_0x1b291d),this[_0x2e77c7(0x2f0)][_0x2e77c7(0x172)]])['pipe'](E[_0x2e77c7(0x317)](([_0x4ad3c9,_0x2105fe])=>({'skeleton':_0x3da3e5[_0x2e77c7(0x2cd)](),'cursors':[..._0x4ad3c9['values']()][_0x2e77c7(0x162)](_0x6e8858=>({..._0x6e8858,'color':_0x2105fe[_0x6e8858[_0x2e77c7(0x3d4)]]}))})))[_0x2e77c7(0x265)](_0x1df16d=>{const _0xc30eb1=_0x2e77c7;if(this['_removeCollabCursors'](),_0x1df16d){const {skeleton:_0x27e889,cursors:_0xa4b09d}=_0x1df16d;this[_0xc30eb1(0x22a)](_0x27e889,_0xa4b09d);}})),this['_initResize'](),this[_0x2e77c7(0x1ac)]();}[_0x3022d6(0x22a)](_0x401196,_0x4a0af0){const _0x5a6af9=_0x3022d6,{scene:_0x300256,mainComponent:_0xad475b}=this[_0x5a6af9(0x100)],_0x538149=_0x4a0af0[_0x5a6af9(0x317)](_0x4806b5=>new ot(_0x4806b5,_0x300256,_0x401196,_0xad475b));this[_0x5a6af9(0x3fc)]=_0x538149,this[_0x5a6af9(0x289)]=_0x4a0af0;}[_0x3022d6(0x222)](){const _0x4edcc8=_0x3022d6;this['_removeCollabCursors']();const {scene:_0x3bf1d9,mainComponent:_0x3e9487}=this[_0x4edcc8(0x100)],_0x4e8ab5=this[_0x4edcc8(0x101)]['getSkeleton'](),_0x323c11=this['_cursors']['map'](_0x5055fa=>new ot(_0x5055fa,_0x3bf1d9,_0x4e8ab5,_0x3e9487));this[_0x4edcc8(0x3fc)]=_0x323c11;}[_0x3022d6(0x80)](){const _0x486140=_0x3022d6;this[_0x486140(0x3fc)][_0x486140(0x3d3)](_0x1cd38d=>_0x1cd38d[_0x486140(0x147)]()),this[_0x486140(0x3fc)]=[];}['_initCommandExecutedListener'](){const _0x5eb61b=_0x3022d6,_0xf963e=[P[_0x5eb61b(0x103)]['id']];this[_0x5eb61b(0x14a)](this[_0x5eb61b(0x467)][_0x5eb61b(0x2a1)](_0x666573=>{const _0x868318=_0x5eb61b;_0xf963e['includes'](_0x666573['id'])&&_0x666573[_0x868318(0xd7)][_0x868318(0x347)]===this['_context'][_0x868318(0x347)]&&this[_0x868318(0x222)]();}));}['_initResize'](){const _0x1c5c3c=_0x3022d6;this[_0x1c5c3c(0x14a)](o[_0x1c5c3c(0x3e5)](this[_0x1c5c3c(0x100)][_0x1c5c3c(0x272)]['onTransformChange$'])['pipe'](E[_0x1c5c3c(0x1c0)](_0x168538=>_0x168538['type']===b[_0x1c5c3c(0x142)][_0x1c5c3c(0x149)]),E[_0x1c5c3c(0x1bb)](0x10))[_0x1c5c3c(0x265)](()=>{const _0x15ad91=_0x1c5c3c;this[_0x15ad91(0x222)]();}));}};function _0xbc10(_0x529a74,_0x392873){const _0x199194=_0x1991();return _0xbc10=function(_0xbc1022,_0x3aed93){_0xbc1022=_0xbc1022-0x7c;let _0x450b11=_0x199194[_0xbc1022];return _0x450b11;},_0xbc10(_0x529a74,_0x392873);}de=$i([o[_0x3022d6(0x3ef)](o[_0x3022d6(0x32a)][_0x3022d6(0x368)],de),_e(0x1,o['Inject'](P[_0x3022d6(0x382)])),_e(0x2,o[_0x3022d6(0x291)](Z)),_e(0x3,o['ICommandService']),_e(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x314)]))],de);var xi=Object[_0x3022d6(0x131)],Hi=Object['getOwnPropertyDescriptor'],ki=(_0xe7d303,_0x5d3887,_0x3efdba,_0x120476)=>{const _0x451bda=_0x3022d6;for(var _0x2b7dee=_0x120476>0x1?void 0x0:_0x120476?Hi(_0x5d3887,_0x3efdba):_0x5d3887,_0x46e779=_0xe7d303[_0x451bda(0x2ce)]-0x1,_0x2b75fd;_0x46e779>=0x0;_0x46e779--)(_0x2b75fd=_0xe7d303[_0x46e779])&&(_0x2b7dee=(_0x120476?_0x2b75fd(_0x5d3887,_0x3efdba,_0x2b7dee):_0x2b75fd(_0x2b7dee))||_0x2b7dee);return _0x120476&&_0x2b7dee&&xi(_0x5d3887,_0x3efdba,_0x2b7dee),_0x2b7dee;},we=(_0x4dfd66,_0x3af1c7)=>(_0x267593,_0x326429)=>_0x3af1c7(_0x267593,_0x326429,_0x4dfd66);let Ie=class{constructor(_0x590c1f,_0x50793d,_0x540cac){const _0x5d5eda=_0x3022d6;this[_0x5d5eda(0xee)]=_0x590c1f,this[_0x5d5eda(0x10f)]=_0x50793d,this[_0x5d5eda(0xcc)]=_0x540cac,this[_0x5d5eda(0x388)]();}[_0x3022d6(0x388)](){const _0x379959=_0x3022d6;this[_0x379959(0x10f)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5ad23a,_0x8ff70)=>_0x8ff70(_0x5ad23a)[_0x379959(0x23e)](v[_0x379959(0x171)](async _0x101bda=>{const _0x24cf80=_0x379959,_0x2af789=_0x101bda;if(_0x2af789[_0x24cf80(0x15b)]===0x191&&window[_0x24cf80(0x1e7)](this[_0x24cf80(0xcc)]['t']('auth.needGotoLoginAlert'))){const _0x1c0956=window[_0x24cf80(0x3e1)](window[_0x24cf80(0x122)][_0x24cf80(0x262)]);window[_0x24cf80(0x122)][_0x24cf80(0x262)]=this[_0x24cf80(0x275)]()+_0x24cf80(0x137)+_0x1c0956;}return _0x2af789;}))});}[_0x3022d6(0x275)](){const _0x418f52=_0x3022d6;var _0x547adf;return(_0x547adf=this[_0x418f52(0xee)]['getConfig'](mt))!=null?_0x547adf:Zt;}};Ie=ki([we(0x0,o[_0x3022d6(0x3be)]),we(0x1,o[_0x3022d6(0x291)](U[_0x3022d6(0x37e)])),we(0x2,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)]))],Ie);var Bi=Object[_0x3022d6(0x131)],Vi=Object[_0x3022d6(0x2b4)],Wi=(_0x3768ff,_0x25bb55,_0x14cc9f,_0x5d7769)=>{const _0x2d6baa=_0x3022d6;for(var _0x4bd6cd=_0x5d7769>0x1?void 0x0:_0x5d7769?Vi(_0x25bb55,_0x14cc9f):_0x25bb55,_0x4af96b=_0x3768ff[_0x2d6baa(0x2ce)]-0x1,_0x38602d;_0x4af96b>=0x0;_0x4af96b--)(_0x38602d=_0x3768ff[_0x4af96b])&&(_0x4bd6cd=(_0x5d7769?_0x38602d(_0x25bb55,_0x14cc9f,_0x4bd6cd):_0x38602d(_0x4bd6cd))||_0x4bd6cd);return _0x5d7769&&_0x4bd6cd&&Bi(_0x25bb55,_0x14cc9f,_0x4bd6cd),_0x4bd6cd;},at=(_0x2aee3b,_0x275f2c)=>(_0x48af27,_0x1f8cb1)=>_0x275f2c(_0x48af27,_0x1f8cb1,_0x2aee3b);const Mt=_0x3022d6(0x274),Fi=_0x3022d6(0x34c);exports[_0x3022d6(0xc0)]=class extends o[_0x3022d6(0x1c9)]{constructor(_0x22d5bc,_0x2b32f0){const _0x47c182=_0x3022d6;super(),this[_0x47c182(0x396)]=_0x22d5bc,this[_0x47c182(0xee)]=_0x2b32f0,this[_0x47c182(0xa0)]();}[_0x3022d6(0xa0)](){const _0x2b3f49=_0x3022d6,_0xf97820=this;this[_0x2b3f49(0x14a)](this[_0x2b3f49(0x396)][_0x2b3f49(0x9e)]({'priority':0x3e7,'interceptor':U[_0x2b3f49(0x292)]({'isMatch'(_0x511737){const _0x455b06=_0x2b3f49;var _0x502ee2;if(_0x511737[_0x455b06(0x259)]===_0x455b06(0x1a5)&&((_0x502ee2=_0x511737[_0x455b06(0x178)])!=null&&_0x502ee2[_0x455b06(0x1ad)])){const {objectID:_0x59ea2f,objectType:_0x46e59e}=_0x511737[_0x455b06(0x178)][_0x455b06(0x1ad)]||{};if(!_0x59ea2f||_0x46e59e===void 0x0)return!0x1;const _0xe546ed=_0xf97820[_0x455b06(0xe8)]()+'/'+_0x46e59e+_0x455b06(0x373)+_0x59ea2f+_0x455b06(0x26e);if(_0x511737[_0x455b06(0x2c7)]===_0xe546ed)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xd04952){const _0x315f27=_0x2b3f49;var _0x53dfaa;return(_0x53dfaa=_0xd04952[_0x315f27(0x178)])==null?void 0x0:_0x53dfaa[_0x315f27(0x1ad)];},'mergeParamsToRequest'(_0x485263,_0x2af748){const _0x67b013=_0x2b3f49,_0x3081c4=_0xf97820[_0x67b013(0xe8)]()+_0x67b013(0x1b1),_0x17efd7=_0x485263[_0x67b013(0xb0)]((_0x56d326,_0x1871a7)=>{const _0xd659e7=_0x67b013,{unitID:_0x361f5b,objectID:_0x69545,objectType:_0x5d24ee,actions:_0x2a4aea}=_0x1871a7;return _0x56d326[_0x361f5b]||(_0x56d326[_0x361f5b]={}),_0x56d326[_0x361f5b][_0x69545]||(_0x56d326[_0x361f5b][_0x69545]={'objectID':_0x69545,'objectType':_0x5d24ee,'actions':[]}),_0x56d326[_0x361f5b][_0x69545][_0xd659e7(0x2d6)][_0xd659e7(0x42d)](..._0x2a4aea),_0x56d326;},{}),_0x4dd689=[];for(const _0x4148a9 in _0x17efd7)for(const _0x413e45 in _0x17efd7[_0x4148a9]){const {actions:_0x38d1c4,objectType:_0x41000c}=_0x17efd7[_0x4148a9][_0x413e45],_0x368b9c=[...new Set(_0x38d1c4)];_0x4dd689[_0x67b013(0x42d)]({'unitID':_0x4148a9,'objectID':_0x413e45,'objectType':_0x41000c,'actions':_0x368b9c});}return new U[(_0x67b013(0x15d))](_0x67b013(0x1a5),_0x3081c4,{'headers':_0x2af748[_0x67b013(0x37f)],'withCredentials':_0x2af748['withCredentials'],'responseType':_0x2af748[_0x67b013(0x8c)],'body':{'requests':_0x4dd689}});}},{'distributeResult'(_0x1117d8,_0x3fa018){const {objectActions:_0x573cee}=_0x1117d8;return _0x3fa018['map'](_0x326ea9=>{const _0x10fce2=_0xbc10,{unitID:_0x469606,objectID:_0x44e292,actions:_0x126cd6}=_0x326ea9,_0x1c7bde=_0x573cee[_0x10fce2(0x99)](_0x12c56c=>_0x12c56c[_0x10fce2(0x367)]===_0x469606&&_0x12c56c[_0x10fce2(0x408)]===_0x44e292),_0x3c4616=_0x126cd6[_0x10fce2(0x317)](_0x52bb01=>_0x1c7bde==null?void 0x0:_0x1c7bde[_0x10fce2(0x2d6)][_0x10fce2(0x99)](_0x45eaeb=>_0x45eaeb[_0x10fce2(0xfc)]===_0x52bb01))['filter'](_0x535d0e=>!!_0x535d0e);return{'config':_0x326ea9,'result':{'actions':_0x3c4616,'error':_0x1117d8['error']}};});}})}));}[_0x3022d6(0xe8)](){const _0x2047ac=_0x3022d6;var _0x16b3ed;return(_0x16b3ed=this[_0x2047ac(0xee)]['getConfig'](Mt))!=null?_0x16b3ed:Fi;}async['create'](_0x37a02b){const _0x1cfac2=_0x3022d6,_0x59b1f2=this[_0x1cfac2(0xe8)]()+'/'+_0x37a02b[_0x1cfac2(0x3a3)]+_0x1cfac2(0x120);return(await this[_0x1cfac2(0x396)][_0x1cfac2(0x45d)](_0x59b1f2,{'body':_0x37a02b}))[_0x1cfac2(0x1ad)][_0x1cfac2(0x408)]||'';}async[_0x3022d6(0x33f)](_0x4009cb){const _0xca9716=_0x3022d6,_0x56ba18=this[_0xca9716(0xe8)]()+_0xca9716(0x2fb);return(await this[_0xca9716(0x396)]['post'](_0x56ba18,{'body':_0x4009cb}))[_0xca9716(0x1ad)][_0xca9716(0xa9)];}async[_0x3022d6(0x37b)](_0x41400e){const _0x15f475=_0x3022d6,_0x41e698=this[_0x15f475(0xe8)]()+'/'+_0x41400e['objectType']+'/object/'+_0x41400e[_0x15f475(0x408)];await this[_0x15f475(0x396)][_0x15f475(0x3d0)](_0x41e698,{'body':_0x41400e});}async[_0x3022d6(0x2d4)](_0x5e6d4d){const _0x235dd4=_0x3022d6,_0x3b4ca2=this[_0x235dd4(0xe8)]()+'/'+_0x5e6d4d[_0x235dd4(0x3a3)]+'/object/'+_0x5e6d4d['objectID']+'/allowed';return(await this[_0x235dd4(0x396)][_0x235dd4(0x45d)](_0x3b4ca2,{'body':_0x5e6d4d}))['body'][_0x235dd4(0x2d6)];}async[_0x3022d6(0x18e)](_0x3fa302){const _0x97bb19=_0x3022d6,_0x2cd8ec=this[_0x97bb19(0xe8)]()+_0x97bb19(0x1b1);return(await this[_0x97bb19(0x396)][_0x97bb19(0x45d)](_0x2cd8ec,{'body':{'requests':_0x3fa302}}))['body'][_0x97bb19(0x20d)];}async[_0x3022d6(0x248)](_0x1018a6){const _0x2e4780=_0x3022d6,_0x46af3e=this[_0x2e4780(0xe8)]()+'/'+_0x1018a6[_0x2e4780(0x3a3)]+_0x2e4780(0x1a0),_0x3452cb=await this[_0x2e4780(0x396)][_0x2e4780(0x45d)](_0x46af3e,{'body':_0x1018a6});return{'roles':_0x3452cb[_0x2e4780(0x1ad)][_0x2e4780(0x407)],'actions':_0x3452cb[_0x2e4780(0x1ad)][_0x2e4780(0x2d6)]};}async['deleteCollaborator'](_0x3bdd77){const _0x1701cf=_0x3022d6,_0x38a3f9=this[_0x1701cf(0xe8)]()+_0x1701cf(0x410);await this['_HTTPService'][_0x1701cf(0x1af)](_0x38a3f9,{'params':{'collaboratorID':_0x3bdd77[_0x1701cf(0x221)],'objectID':_0x3bdd77[_0x1701cf(0x408)],'unitID':_0x3bdd77[_0x1701cf(0x367)]}});}async['updateCollaborator'](_0xd0b606){const _0x21a3d3=_0x3022d6,_0x1fb859=this['_getAPIPrefixPath']()+_0x21a3d3(0x410);await this[_0x21a3d3(0x396)][_0x21a3d3(0x327)](_0x1fb859,{'body':_0xd0b606});}async['createCollaborator'](_0x4106b4){const _0x63bbec=_0x3022d6,_0x3d0943=this[_0x63bbec(0xe8)]()+_0x63bbec(0x410);await this[_0x63bbec(0x396)][_0x63bbec(0x45d)](_0x3d0943,{'body':_0x4106b4});}async['listCollaborators'](_0x140a45){const _0x5f206b=_0x3022d6,_0x503186=this[_0x5f206b(0xe8)]()+_0x5f206b(0x410);return(await this['_HTTPService']['get'](_0x503186,{'params':{'objectID':_0x140a45[_0x5f206b(0x408)],'unitID':_0x140a45[_0x5f206b(0x367)]}}))[_0x5f206b(0x1ad)][_0x5f206b(0x402)];}async[_0x3022d6(0x264)](_0x5beae4){const _0x5cf20b=_0x3022d6,_0x22b871=this['_getAPIPrefixPath']()+_0x5cf20b(0x410);await this[_0x5cf20b(0x396)]['put'](_0x22b871,{'body':_0x5beae4});}},exports[_0x3022d6(0xc0)]=Wi([at(0x0,o[_0x3022d6(0x291)](U[_0x3022d6(0x37e)])),at(0x1,o[_0x3022d6(0x291)](o[_0x3022d6(0x3be)]))],exports[_0x3022d6(0xc0)]);var Gi=Object[_0x3022d6(0x131)],Yi=Object[_0x3022d6(0x2b4)],Ki=(_0x55d51f,_0x229c0b,_0x435cbe,_0x919a58)=>{const _0xdae108=_0x3022d6;for(var _0x22499d=_0x919a58>0x1?void 0x0:_0x919a58?Yi(_0x229c0b,_0x435cbe):_0x229c0b,_0x30aa4a=_0x55d51f[_0xdae108(0x2ce)]-0x1,_0x24f5e0;_0x30aa4a>=0x0;_0x30aa4a--)(_0x24f5e0=_0x55d51f[_0x30aa4a])&&(_0x22499d=(_0x919a58?_0x24f5e0(_0x229c0b,_0x435cbe,_0x22499d):_0x24f5e0(_0x22499d))||_0x22499d);return _0x919a58&&_0x22499d&&Gi(_0x229c0b,_0x435cbe,_0x22499d),_0x22499d;},Me=(_0x1c2159,_0x4d2d9f)=>(_0x5389a7,_0x2cfc99)=>_0x4d2d9f(_0x5389a7,_0x2cfc99,_0x1c2159);const Xi=['image/png',_0x3022d6(0x277),'image/jpg',_0x3022d6(0x26a),_0x3022d6(0x2b1)],qi=0x5*0x400*0x400,zi=_0x3022d6(0x1ae),Ji='/universer-api/stream/file/upload',Zi=_0x3022d6(0x2bb),Qi=_0x3022d6(0x3a4);exports['ImageIoService']=class{constructor(_0x2d7910,_0x3552e1,_0x27958b){const _0x52ed2e=_0x3022d6;u(this,'_waitCount',0x0),u(this,_0x52ed2e(0x1b3),new v['Subject']()),u(this,'change$',this['_change$']),u(this,_0x52ed2e(0x8a),new Map()),(this[_0x52ed2e(0x10f)]=_0x2d7910,this[_0x52ed2e(0xee)]=_0x3552e1,this['_univerInstanceService']=_0x27958b);}['setWaitCount'](_0x53f017){const _0x2de70c=_0x3022d6;this[_0x2de70c(0x446)]=_0x53f017,this[_0x2de70c(0x1b3)][_0x2de70c(0x116)](_0x53f017);}['getImageSourceCache'](_0x4e0772,_0x4e5ace){const _0x5d052a=_0x3022d6;if(_0x4e5ace===A[_0x5d052a(0x3f4)][_0x5d052a(0x363)]){const _0x41c6f1=new Image();return _0x41c6f1[_0x5d052a(0x202)]=_0x4e0772,_0x41c6f1;}return this[_0x5d052a(0x8a)][_0x5d052a(0x84)](_0x4e0772);}[_0x3022d6(0x189)](_0xfa593,_0x2f288e,_0x874729){const _0x1d0802=_0x3022d6;_0x2f288e===A['ImageSourceType'][_0x1d0802(0x363)]||_0x874729==null||this['_imageSourceCache'][_0x1d0802(0x182)](_0xfa593,_0x874729);}async[_0x3022d6(0x3a5)](_0x577445){const _0x2712cb=_0x3022d6;try{const _0x33e798=this[_0x2712cb(0x36e)](this[_0x2712cb(0x126)](),''+_0x577445),_0x4bf161=(await this['_httpService'][_0x2712cb(0x84)](_0x33e798))['body'];return _0x4bf161['error']&&_0x4bf161[_0x2712cb(0x404)][_0x2712cb(0x2a2)]===gt['OK']?Promise[_0x2712cb(0x285)](_0x4bf161[_0x2712cb(0x2c7)]):Promise[_0x2712cb(0x252)](_0x4bf161[_0x2712cb(0x404)]);}catch(_0x2b59be){return Promise[_0x2712cb(0x252)](_0x2b59be);}}async['saveImage'](_0xfbd248){const _0x5e33af=_0x3022d6;let _0x4063b8='';if(!Xi[_0x5e33af(0x2fa)](_0xfbd248[_0x5e33af(0x1f3)]))return this['_decreaseWaiting'](),Promise[_0x5e33af(0x252)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0xfbd248[_0x5e33af(0x2ca)]>qi)return this[_0x5e33af(0x239)](),Promise[_0x5e33af(0x252)](new Error(A[_0x5e33af(0x34f)]['ERROR_EXCEED_SIZE']));try{const _0x1f3da0=new FormData();_0x1f3da0[_0x5e33af(0x1d7)](_0x5e33af(0xf4),_0xfbd248);const _0x532a11=this[_0x5e33af(0x17c)]['getFocusedUnit'](),_0x3f5c03=_0x532a11==null?void 0x0:_0x532a11[_0x5e33af(0x29c)]();if(!_0x3f5c03)throw new Error(_0x5e33af(0x441));const _0x270676=this[_0x5e33af(0x106)]()+_0x5e33af(0x2c3)+_0xfbd248[_0x5e33af(0x2ca)][_0x5e33af(0x267)]()+_0x5e33af(0x2b7)+ft[_0x5e33af(0x449)]+'&assign='+encodeURIComponent(_0x3f5c03),_0x525e8c=await(await fetch(_0x270676,{'method':_0x5e33af(0x1a5),'body':_0x1f3da0}))['json']();if(typeof _0x525e8c[_0x5e33af(0x42e)]!=_0x5e33af(0x383))return this[_0x5e33af(0x239)](),Promise['reject'](new Error(A[_0x5e33af(0x34f)][_0x5e33af(0x22d)]));_0x4063b8=_0x525e8c[_0x5e33af(0x42e)];}catch{return this[_0x5e33af(0x239)](),Promise[_0x5e33af(0x252)](new Error(A[_0x5e33af(0x34f)][_0x5e33af(0x22d)]));}return new Promise((_0x7d8ec0,_0x1d6ed2)=>{const _0x37a9fe=_0x5e33af,_0x355173=new FileReader();_0x355173['readAsDataURL'](_0xfbd248),_0x355173[_0x37a9fe(0x1c4)]=_0x4bcd50=>{const _0x4b5f33=_0x37a9fe;var _0x18076e;const _0x5b92bb=(_0x18076e=_0x4bcd50[_0x4b5f33(0x2f9)])==null?void 0x0:_0x18076e['result'];if(_0x5b92bb==null){this[_0x4b5f33(0x239)](),_0x1d6ed2(new Error(A[_0x4b5f33(0x34f)][_0x4b5f33(0x22d)]));return;}const _0xe0f8e9=o[_0x4b5f33(0x418)][_0x4b5f33(0x24e)](0x6);_0x7d8ec0({'imageId':_0xe0f8e9,'imageSourceType':A[_0x4b5f33(0x3f4)][_0x4b5f33(0xf1)],'source':_0x4063b8,'base64Cache':_0x5b92bb,'status':A[_0x4b5f33(0x34f)][_0x4b5f33(0xe5)]}),this[_0x4b5f33(0x239)]();};});}['_getUploadFileURL'](){const _0x46d001=_0x3022d6;var _0x7d1d46;return(_0x7d1d46=this['_configService'][_0x46d001(0x1bd)](zi))!=null?_0x7d1d46:Ji;}[_0x3022d6(0x126)](){const _0x2a4a57=_0x3022d6;var _0x5de54c;return(_0x5de54c=this[_0x2a4a57(0xee)][_0x2a4a57(0x1bd)](Zi))!=null?_0x5de54c:Qi;}['_replaceFileID'](_0x63808c,_0x5cf701){const _0x5c4d63=_0x3022d6;return _0x63808c[_0x5c4d63(0x3ab)]('{fileID}',_0x5cf701);}[_0x3022d6(0x239)](){const _0x1ba938=_0x3022d6;this['_waitCount']-=0x1,this['_change$'][_0x1ba938(0x116)](this[_0x1ba938(0x446)]);}},exports[_0x3022d6(0x1de)]=Ki([Me(0x0,o['Inject'](U['HTTPService'])),Me(0x1,o[_0x3022d6(0x3be)]),Me(0x2,o[_0x3022d6(0x291)](o[_0x3022d6(0xb8)]))],exports[_0x3022d6(0x1de)]);var en=Object[_0x3022d6(0x131)],tn=Object[_0x3022d6(0x2b4)],sn=(_0x2615b8,_0x5aba83,_0x487032,_0x2fa78c)=>{for(var _0x14bf79=_0x2fa78c>0x1?void 0x0:_0x2fa78c?tn(_0x5aba83,_0x487032):_0x5aba83,_0x4d04b5=_0x2615b8['length']-0x1,_0x25f268;_0x4d04b5>=0x0;_0x4d04b5--)(_0x25f268=_0x2615b8[_0x4d04b5])&&(_0x14bf79=(_0x2fa78c?_0x25f268(_0x5aba83,_0x487032,_0x14bf79):_0x25f268(_0x14bf79))||_0x14bf79);return _0x2fa78c&&_0x14bf79&&en(_0x5aba83,_0x487032,_0x14bf79),_0x14bf79;},ae=(_0x424331,_0x53f943)=>(_0x1b0475,_0x1c8dfd)=>_0x53f943(_0x1b0475,_0x1c8dfd,_0x424331);let Se=class extends o[_0x3022d6(0x460)]{constructor(_0x511d6d,_0xfaf903,_0x2e8a04,_0xdf82f6,_0x479a8b){const _0x2da27c=_0x3022d6;super(),this['_injector']=_0x511d6d,this[_0x2da27c(0x17c)]=_0xfaf903,this[_0x2da27c(0x3a2)]=_0x2e8a04,this[_0x2da27c(0xdb)]=_0xdf82f6,this[_0x2da27c(0x3b1)]=_0x479a8b,this['_initUnitPermissionChange'](),this[_0x2da27c(0x25a)]();}[_0x3022d6(0x25a)](){const _0x324886=_0x3022d6,_0x161a7d=async _0x480e29=>{const _0x4d04c3=_0xbc10;(await this[_0x4d04c3(0xdb)][_0x4d04c3(0x3b2)](_0x480e29))[_0x4d04c3(0x144)][_0x4d04c3(0x23e)](E[_0x4d04c3(0x1c0)](_0x39ce91=>_0x39ce91[_0x4d04c3(0x31c)]===_['CollaborationEvent'][_0x4d04c3(0x83)]),E[_0x4d04c3(0xc7)](this[_0x4d04c3(0x374)]))[_0x4d04c3(0x265)](_0x4fa8f3=>{const _0x2e395d=_0x4d04c3,_0x506907=_0x4fa8f3,{reason:_0x447084}=_0x506907[_0x2e395d(0x2be)];this[_0x2e395d(0x123)][_0x2e395d(0x84)](L[_0x2e395d(0xaf)])[_0x2e395d(0x1d3)]({'type':Q[_0x2e395d(0x1e5)]['Error'],'content':this[_0x2e395d(0x3b1)]['t'](_0x2e395d(0x468))+'('+_0x447084+')'}),this[_0x2e395d(0x3a2)][_0x2e395d(0x27f)](new p[(_0x2e395d(0x32f))](_0x480e29)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x480e29);});};v['merge'](this[_0x324886(0x17c)][_0x324886(0x2f6)](o[_0x324886(0x23f)][_0x324886(0x2c0)]),this[_0x324886(0x17c)][_0x324886(0x2f6)](o[_0x324886(0x23f)]['UNIVER_DOC']))[_0x324886(0x23e)](E[_0x324886(0x317)](_0x50edca=>_0x50edca['getUnitId']()),E[_0x324886(0x1c0)](_0x284a22=>!o[_0x324886(0x152)](_0x284a22)),E['takeUntil'](this[_0x324886(0x374)]))[_0x324886(0x265)](_0x2bac35=>{_0x161a7d(_0x2bac35);});}[_0x3022d6(0x337)](){const _0x5083ce=_0x3022d6,_0x2cd70e=async _0xc28033=>{const _0x2bca1f=_0xbc10;(await this[_0x2bca1f(0xdb)][_0x2bca1f(0x3b2)](_0xc28033))[_0x2bca1f(0x144)][_0x2bca1f(0x23e)](E[_0x2bca1f(0x1c0)](_0x2e3abf=>_0x2e3abf[_0x2bca1f(0x31c)]===_[_0x2bca1f(0x26c)][_0x2bca1f(0x330)]),E[_0x2bca1f(0xc7)](this[_0x2bca1f(0x374)]))[_0x2bca1f(0x265)](_0x11595b=>{const _0x410da8=_0x2bca1f,_0x34c4ff=_0x11595b,{objectId:_0x2b0083}=_0x34c4ff[_0x410da8(0x2be)],_0xcd28a=this['_injector'][_0x410da8(0x84)](J['SheetPermissionInitController']);_0x2b0083===_0xc28033?_0xcd28a[_0x410da8(0x325)](_0xc28033):_0xcd28a[_0x410da8(0x226)](_0xc28033,_0x2b0083);});};v[_0x5083ce(0xc5)](this['_univerInstanceService'][_0x5083ce(0x2f6)](o[_0x5083ce(0x23f)][_0x5083ce(0x2c0)]),this[_0x5083ce(0x17c)][_0x5083ce(0x2f6)](o[_0x5083ce(0x23f)]['UNIVER_DOC']))[_0x5083ce(0x23e)](E[_0x5083ce(0x317)](_0x2bcf95=>_0x2bcf95[_0x5083ce(0x29c)]()),E[_0x5083ce(0x1c0)](_0x397189=>!o['isInternalEditorID'](_0x397189)),E['takeUntil'](this[_0x5083ce(0x374)]))[_0x5083ce(0x265)](_0x5ccb10=>{_0x2cd70e(_0x5ccb10);});}};Se=sn([o[_0x3022d6(0x3ef)](o['LifecycleStages'][_0x3022d6(0xd4)],Se),ae(0x0,o[_0x3022d6(0x291)](o[_0x3022d6(0x448)])),ae(0x1,o[_0x3022d6(0xb8)]),ae(0x2,o['IPermissionService']),ae(0x3,o[_0x3022d6(0x291)](exports[_0x3022d6(0x2ee)])),ae(0x4,o[_0x3022d6(0x291)](o[_0x3022d6(0x43e)]))],Se);var yt=Object[_0x3022d6(0x131)],nn=Object[_0x3022d6(0x2b4)],rn=(_0x159d3f,_0x23a720,_0xbe718e)=>_0x23a720 in _0x159d3f?yt(_0x159d3f,_0x23a720,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbe718e}):_0x159d3f[_0x23a720]=_0xbe718e,on=(_0x5b4c88,_0x54efc7,_0x2dee11,_0x5c976b)=>{for(var _0x53b28e=_0x5c976b>0x1?void 0x0:_0x5c976b?nn(_0x54efc7,_0x2dee11):_0x54efc7,_0x3a8005=_0x5b4c88['length']-0x1,_0x2a9cad;_0x3a8005>=0x0;_0x3a8005--)(_0x2a9cad=_0x5b4c88[_0x3a8005])&&(_0x53b28e=(_0x5c976b?_0x2a9cad(_0x54efc7,_0x2dee11,_0x53b28e):_0x2a9cad(_0x53b28e))||_0x53b28e);return _0x5c976b&&_0x53b28e&&yt(_0x54efc7,_0x2dee11,_0x53b28e),_0x53b28e;},ye=(_0x286e6a,_0x4fb3c3)=>(_0x37569d,_0x21c3c2)=>_0x4fb3c3(_0x37569d,_0x21c3c2,_0x286e6a),an=(_0x572745,_0x3e31e5,_0x3b8699)=>rn(_0x572745,_0x3e31e5+'',_0x3b8699);const cn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports['UniverCollaborationClientPlugin']=class extends o[_0x3022d6(0x164)]{constructor(_0x221631,_0x31ff37,_0x2a3527,_0x3af6fd){const _0x36e8a3=_0x3022d6;super(),this['_config']=_0x221631,this[_0x36e8a3(0x38b)]=_0x31ff37,this['_renderManagerService']=_0x2a3527,this[_0x36e8a3(0x123)]=_0x3af6fd;}[_0x3022d6(0x435)](){const _0x1b7820=_0x3022d6;this[_0x1b7820(0x3b4)]();}['onRendered'](){this['_registerRenderDependencies']();}[_0x3022d6(0x3b4)](){const _0x410808=_0x3022d6;var _0x2871ff,_0x3be616,_0x3185e0,_0x2b1c55;this[_0x410808(0x123)][_0x410808(0x151)](o['IUndoRedoService'])&&this[_0x410808(0x38b)][_0x410808(0x404)](_0x410808(0x153),_0x410808(0x29b));let _0x5eb54c=[[o[_0x410808(0x114)],{'useClass':$e}],[exports['CollaborationSessionService']],[Fe],[U[_0x410808(0x37e)]],[Ye,{'useClass':wt}],[Y],[exports[_0x410808(0x174)]],[U[_0x410808(0x2e8)]],[ge],[me],[ve],[We],[Ie],[Ve],[Se],[Be,{'useClass':(_0x3be616=(_0x2871ff=this['_config'])==null?void 0x0:_0x2871ff[_0x410808(0xc8)])!=null?_0x3be616:exports[_0x410808(0x3b0)]}],[U[_0x410808(0x32c)],{'useClass':U[_0x410808(0x298)]}],[o[_0x410808(0x143)],{'useClass':exports[_0x410808(0x225)]}],[o[_0x410808(0x301)],{'useClass':exports[_0x410808(0xc0)]}],[A[_0x410808(0xed)],{'useClass':exports[_0x410808(0x1de)]}],[exports[_0x410808(0x431)]],[exports[_0x410808(0x336)]],[exports[_0x410808(0x269)]],[ue],[Z]];(_0x3185e0=this['_config'])!=null&&_0x3185e0[_0x410808(0x260)]&&_0x5eb54c[_0x410808(0x42d)]([pe,{'useClass':us}]),_0x5eb54c=o['mergeOverrideWithDependencies'](_0x5eb54c,(_0x2b1c55=this[_0x410808(0x87)])==null?void 0x0:_0x2b1c55[_0x410808(0x14e)]),_0x5eb54c[_0x410808(0x3d3)](_0x5597b0=>this[_0x410808(0x123)][_0x410808(0xe1)](_0x5597b0)),this[_0x410808(0x1d9)]();}['_registerRenderDependencies'](){const _0xbf1cd=_0x3022d6;this['disposeWithMe'](this['_renderManagerService'][_0xbf1cd(0x36b)](o['UniverInstanceType'][_0xbf1cd(0x237)],[de])),this['disposeWithMe'](this[_0xbf1cd(0x235)][_0xbf1cd(0x36b)](o[_0xbf1cd(0x23f)][_0xbf1cd(0x2c0)],[je]));}['_initModules'](){const _0x50840a=_0x3022d6;var _0x29fe07,_0x11ec11;this[_0x50840a(0x123)]['get'](U['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':U[_0x50840a(0x107)]({'maxParallel':0x6})}),(_0x29fe07=this[_0x50840a(0x87)])!=null&&_0x29fe07['enableOfflineEditing']||this[_0x50840a(0x123)][_0x50840a(0x84)](exports[_0x50840a(0x174)])[_0x50840a(0x196)](),(_0x11ec11=this[_0x50840a(0x87)])!=null&&_0x11ec11[_0x50840a(0x12f)]&&this['_injector'][_0x50840a(0x84)](Ie);}},an(exports['UniverCollaborationClientPlugin'],'pluginName',cn),exports['UniverCollaborationClientPlugin']=on([o[_0x3022d6(0x38f)](_['UniverCollaborationPlugin']),ye(0x1,o[_0x3022d6(0x22f)]),ye(0x2,b[_0x3022d6(0x13e)]),ye(0x3,o[_0x3022d6(0x291)](o['Injector']))],exports[_0x3022d6(0x233)]),exports[_0x3022d6(0x274)]=Mt,exports[_0x3022d6(0x3c2)]=vt,exports[_0x3022d6(0x117)]=_t,exports['CollaborationStatus']=D,exports['CollaborationStatusDisplay']=Ut,exports[_0x3022d6(0x2ba)]=Ve,exports[_0x3022d6(0x28c)]=ut,exports[_0x3022d6(0xa5)]=He,exports[_0x3022d6(0x22b)]=Be,exports[_0x3022d6(0xaa)]=Ye,exports[_0x3022d6(0x2e0)]=St,exports[_0x3022d6(0x1c2)]=mt,exports['SEND_CHANGESET_TIMEOUT_KEY']=ht,exports[_0x3022d6(0x351)]=ct,exports[_0x3022d6(0xcf)]=lt,exports['SessionStatus']=G,exports['SheetCollabCursorShape']=Rt,exports['WebURLService']=wt,exports[_0x3022d6(0x160)]=It,exports['serializeCombRequest']=pt;