ryugi-artifacts 1.74.1 → 1.74.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/cli.cjs +2 -2
  2. package/dist/server.cjs +1 -1
  3. package/dist/viewer/{DocumentLayout-DjlCHyjN.js → DocumentLayout-Dg75Y9z9.js} +2 -2
  4. package/dist/viewer/{DocumentPage-CabOx31R.js → DocumentPage-By32LKid.js} +1 -1
  5. package/dist/viewer/{PreviewLayout-Dv9KwPv2.js → PreviewLayout-BZBiRp3W.js} +2 -2
  6. package/dist/viewer/{SnapshotDocument-B3pqjSEk.js → SnapshotDocument-DT1NRd2r.js} +1 -1
  7. package/dist/viewer/channel-mrxiiI3i.js +4 -0
  8. package/dist/viewer/index.js +2 -2
  9. package/dist/viewer/preview.html +1 -1
  10. package/dist/viewer/preview.js +1 -1
  11. package/dist/viewer/{printDocument-DPt4MpvB.js → printDocument-CRbrGChK.js} +1 -1
  12. package/dist/viewer-lib/{Canvas-BS-_yDiQ.js → Canvas-CH7naLyS.js} +1 -1
  13. package/dist/viewer-lib/{PhoneArtboardBar-ZFnaDMbm.js → PhoneArtboardBar-CokUTH9B.js} +1 -1
  14. package/dist/viewer-lib/{PreviewView-CdCG9pzL.js → PreviewView-BNngando.js} +1 -1
  15. package/dist/viewer-lib/{ReadOnlyWhiteboard-CdaTkZWK.js → ReadOnlyWhiteboard-QiCO5pia.js} +59 -59
  16. package/dist/viewer-lib/{SnapshotDocument-Cq4p4KfQ.js → SnapshotDocument-B6CDMu92.js} +7272 -7268
  17. package/dist/viewer-lib/{VirtualizedEditor-uWe43zaI--81NZ1Uh.js → VirtualizedEditor-uWe43zaI-Dr8uLSTV.js} +2 -2
  18. package/dist/viewer-lib/{VirtualizedRenderer-C_d95FXi-xLgg7jfd.js → VirtualizedRenderer-C_d95FXi-Df6gt867.js} +3 -3
  19. package/dist/viewer-lib/{ar-SA-G6X2FPQ2-D9vbflA-.js → ar-SA-G6X2FPQ2-BuMc-uTr.js} +1 -1
  20. package/dist/viewer-lib/{az-AZ-76LH7QW2-C6viSIIe.js → az-AZ-76LH7QW2-BBpELU6r.js} +1 -1
  21. package/dist/viewer-lib/{bg-BG-XCXSNQG7-Daxmfqbv.js → bg-BG-XCXSNQG7-BbIq4LtR.js} +1 -1
  22. package/dist/viewer-lib/{bn-BD-2XOGV67Q-BaylJY11.js → bn-BD-2XOGV67Q-y4KBRebk.js} +1 -1
  23. package/dist/viewer-lib/{ca-ES-6MX7JW3Y-DMFt8OAA.js → ca-ES-6MX7JW3Y-D5NS_KZI.js} +1 -1
  24. package/dist/viewer-lib/{chunk-EIO257PC-DPiZy-Hq.js → chunk-EIO257PC-CLeYTFFi.js} +1 -1
  25. package/dist/viewer-lib/core.js +1 -1
  26. package/dist/viewer-lib/{cs-CZ-2BRQDIVT-HJURUVM0.js → cs-CZ-2BRQDIVT-B1rRsOGM.js} +1 -1
  27. package/dist/viewer-lib/{da-DK-5WZEPLOC-DiVeW7Oh.js → da-DK-5WZEPLOC-De5jhZX-.js} +1 -1
  28. package/dist/viewer-lib/{de-DE-XR44H4JA-CwaTGM6a.js → de-DE-XR44H4JA-nXvIcwLu.js} +1 -1
  29. package/dist/viewer-lib/{dist-D_KdhUm_.js → dist-B-3zCSkV.js} +2 -2
  30. package/dist/viewer-lib/{dist-XRXfSxIY.js → dist-BAa7kOPi.js} +4 -4
  31. package/dist/viewer-lib/{dist-Bj5UQAKx.js → dist-BQo6GVMP.js} +2 -2
  32. package/dist/viewer-lib/{dist-D19tSdni.js → dist-BmDWMFAh.js} +2 -2
  33. package/dist/viewer-lib/{dist-QhSKb6i0.js → dist-CQoir7UG.js} +4 -4
  34. package/dist/viewer-lib/{dist-DCJNjbF6.js → dist-CSyZJZuc.js} +2 -2
  35. package/dist/viewer-lib/{dist-BgYxkWrF.js → dist-Cr9Sl1Hh.js} +3 -3
  36. package/dist/viewer-lib/{dist-DOdFtwRN.js → dist-Cu7Z-lkb.js} +3 -3
  37. package/dist/viewer-lib/{dist-MwjZLyjE.js → dist-CxCfGAVZ.js} +1 -1
  38. package/dist/viewer-lib/{dist-bFfciYjb.js → dist-D3nVyNcZ.js} +2 -2
  39. package/dist/viewer-lib/{dist-CqCHfPkK.js → dist-DBhDjqVW.js} +2 -2
  40. package/dist/viewer-lib/{dist-DIyvFZEt.js → dist-DHK4djZK.js} +3 -3
  41. package/dist/viewer-lib/{dist-CxAB5CBm.js → dist-DMHNaEBH.js} +2 -2
  42. package/dist/viewer-lib/{dist-5Alf5ef6.js → dist-DQOIcJ5L.js} +3 -3
  43. package/dist/viewer-lib/{dist-BCs4xHYo.js → dist-DS_zvBM7.js} +2 -2
  44. package/dist/viewer-lib/{dist-nsuz6Enp.js → dist-DX4mwnpp.js} +3 -3
  45. package/dist/viewer-lib/{dist-BzkaP7Eu.js → dist-Dpzh4bzA.js} +4 -4
  46. package/dist/viewer-lib/{dist-CZIlIHZp.js → dist-Dq0NhL4K.js} +3 -3
  47. package/dist/viewer-lib/{dist-BtFp8Fdl.js → dist-Dw8BcfTC.js} +1 -1
  48. package/dist/viewer-lib/{dist-CrWKUkxs.js → dist-DxvYKGxH.js} +3 -3
  49. package/dist/viewer-lib/{dist-DAU3JelZ.js → dist-ixI0xyjk.js} +3 -3
  50. package/dist/viewer-lib/{dist-CQbHVUT8.js → dist-lty5YKi1.js} +3 -3
  51. package/dist/viewer-lib/{dist-CNYGqeWR.js → dist-n68hDW7K.js} +3 -3
  52. package/dist/viewer-lib/document.js +2 -2
  53. package/dist/viewer-lib/{el-GR-BZB4AONW-Cpnz69_d.js → el-GR-BZB4AONW-2KpqiaBa.js} +1 -1
  54. package/dist/viewer-lib/{en-B4ZKOASM-B5EWcVU_.js → en-B4ZKOASM-hSA7FtD2.js} +1 -1
  55. package/dist/viewer-lib/{es-ES-U4NZUMDT-DTxYNY9z.js → es-ES-U4NZUMDT-8_bzmvad.js} +1 -1
  56. package/dist/viewer-lib/{eu-ES-A7QVB2H4-DNQLa-75.js → eu-ES-A7QVB2H4-BhQt8hw_.js} +1 -1
  57. package/dist/viewer-lib/{fa-IR-HGAKTJCU-BmEwT5gJ.js → fa-IR-HGAKTJCU-CN48FKyv.js} +1 -1
  58. package/dist/viewer-lib/{fi-FI-Z5N7JZ37-Bn6mHqQ6.js → fi-FI-Z5N7JZ37-JtwD_USm.js} +1 -1
  59. package/dist/viewer-lib/{fr-FR-RHASNOE6-CRwCHElD.js → fr-FR-RHASNOE6-CI821WLy.js} +1 -1
  60. package/dist/viewer-lib/{gl-ES-HMX3MZ6V-CylPO_1D.js → gl-ES-HMX3MZ6V-JBJqjSBf.js} +1 -1
  61. package/dist/viewer-lib/{he-IL-6SHJWFNN-CDTBSMzd.js → he-IL-6SHJWFNN-Btt-bhrC.js} +1 -1
  62. package/dist/viewer-lib/{hi-IN-IWLTKZ5I-CtPpuV1u.js → hi-IN-IWLTKZ5I-DzMahlAV.js} +1 -1
  63. package/dist/viewer-lib/{hu-HU-A5ZG7DT2-CwVGkLn8.js → hu-HU-A5ZG7DT2-bEbPpNCJ.js} +1 -1
  64. package/dist/viewer-lib/{id-ID-SAP4L64H-Dnqb3xMl.js → id-ID-SAP4L64H-BiKdTEkU.js} +1 -1
  65. package/dist/viewer-lib/{image-GAAHSSAO-CSGEcIBN.js → image-GAAHSSAO-CcRQ85F1.js} +1 -1
  66. package/dist/viewer-lib/index.js +5 -5
  67. package/dist/viewer-lib/{it-IT-JPQ66NNP-C9zHSk81.js → it-IT-JPQ66NNP-DsxVyGSi.js} +1 -1
  68. package/dist/viewer-lib/{ja-JP-DBVTYXUO-DTTPwQmv.js → ja-JP-DBVTYXUO-CcJz_ST7.js} +1 -1
  69. package/dist/viewer-lib/{kaa-6HZHGXH3-CsTZZa5j.js → kaa-6HZHGXH3-DAhwLIHJ.js} +1 -1
  70. package/dist/viewer-lib/{kab-KAB-ZGHBKWFO-B7vrjlvJ.js → kab-KAB-ZGHBKWFO-B9HQVGrf.js} +1 -1
  71. package/dist/viewer-lib/{kk-KZ-P5N5QNE5-C5cNEoy6.js → kk-KZ-P5N5QNE5-7Ofr2xRM.js} +1 -1
  72. package/dist/viewer-lib/{km-KH-HSX4SM5Z-B51VzNEs.js → km-KH-HSX4SM5Z-CG0R8WjY.js} +1 -1
  73. package/dist/viewer-lib/{ko-KR-MTYHY66A-BwVxzxVv.js → ko-KR-MTYHY66A-AGz4Hdaj.js} +1 -1
  74. package/dist/viewer-lib/{ku-TR-6OUDTVRD-Bwlf9qjI.js → ku-TR-6OUDTVRD-B2-t_8vR.js} +1 -1
  75. package/dist/viewer-lib/{lt-LT-XHIRWOB4-aijnRkXE.js → lt-LT-XHIRWOB4-I7g1xXi1.js} +1 -1
  76. package/dist/viewer-lib/{lv-LV-5QDEKY6T-DhpQMs-U.js → lv-LV-5QDEKY6T-Ct3Cc3Ma.js} +1 -1
  77. package/dist/viewer-lib/{mr-IN-CRQNXWMA-NV2v3S8G.js → mr-IN-CRQNXWMA-B6TUa2sR.js} +1 -1
  78. package/dist/viewer-lib/{my-MM-5M5IBNSE-BKAJHxJu.js → my-MM-5M5IBNSE-DTEx81sN.js} +1 -1
  79. package/dist/viewer-lib/{nb-NO-T6EIAALU-DwzKRKbz.js → nb-NO-T6EIAALU-DZpwqCPW.js} +1 -1
  80. package/dist/viewer-lib/{nl-NL-IS3SIHDZ-CiEgpnnq.js → nl-NL-IS3SIHDZ-Bk4pHeqH.js} +1 -1
  81. package/dist/viewer-lib/{nn-NO-6E72VCQL-BGeAx6h3.js → nn-NO-6E72VCQL-DKtDQWHu.js} +1 -1
  82. package/dist/viewer-lib/{oc-FR-POXYY2M6-BAOxnmk2.js → oc-FR-POXYY2M6-BKkwOGcj.js} +1 -1
  83. package/dist/viewer-lib/{pa-IN-N4M65BXN-D7dfsOLu.js → pa-IN-N4M65BXN-CB1FvTjM.js} +1 -1
  84. package/dist/viewer-lib/{percentages-BXMCSKIN-BEBkudra.js → percentages-BXMCSKIN-CoDIW1I3.js} +1 -1
  85. package/dist/viewer-lib/{pl-PL-T2D74RX3-DreGIfrh.js → pl-PL-T2D74RX3-C-10gFgF.js} +1 -1
  86. package/dist/viewer-lib/{printDocument-CjaNQ9SE.js → printDocument-Dj01sV9J.js} +2 -2
  87. package/dist/viewer-lib/{pt-BR-5N22H2LF-C0BZMMWN.js → pt-BR-5N22H2LF-BzjDglrW.js} +1 -1
  88. package/dist/viewer-lib/{pt-PT-UZXXM6DQ-DpMUU3Dr.js → pt-PT-UZXXM6DQ-DzV8FtI3.js} +1 -1
  89. package/dist/viewer-lib/{ro-RO-JPDTUUEW-BXfEv5RD.js → ro-RO-JPDTUUEW-Ottklz3_.js} +1 -1
  90. package/dist/viewer-lib/{ru-RU-B4JR7IUQ-C9JJo2Vp.js → ru-RU-B4JR7IUQ-Cmx-KK8d.js} +1 -1
  91. package/dist/viewer-lib/{si-LK-N5RQ5JYF-CrMOni0i.js → si-LK-N5RQ5JYF-BpKfRidb.js} +1 -1
  92. package/dist/viewer-lib/{sk-SK-C5VTKIMK-C0hpi9M9.js → sk-SK-C5VTKIMK-CfBZvPWg.js} +1 -1
  93. package/dist/viewer-lib/{sl-SI-NN7IZMDC-MqYRpshn.js → sl-SI-NN7IZMDC-TtMKUeG7.js} +1 -1
  94. package/dist/viewer-lib/{static-C1Q2cI62.js → static-CIXBby28.js} +2 -2
  95. package/dist/viewer-lib/subset-shared.chunk-NCbWdv_r.js +2 -0
  96. package/dist/viewer-lib/{subset-worker.chunk-BLFn82Cl.js → subset-worker.chunk-Dm0pksc6.js} +2 -2
  97. package/dist/viewer-lib/{sv-SE-XGPEYMSR-DTOY7f8n.js → sv-SE-XGPEYMSR-BxBpmVWr.js} +1 -1
  98. package/dist/viewer-lib/{ta-IN-2NMHFXQM-hwaDZ_dR.js → ta-IN-2NMHFXQM-CDrgqB_h.js} +1 -1
  99. package/dist/viewer-lib/{th-TH-HPSO5L25-u8P0crNp.js → th-TH-HPSO5L25-BhiDll_c.js} +1 -1
  100. package/dist/viewer-lib/{tr-TR-DEFEU3FU-CXiJe1LL.js → tr-TR-DEFEU3FU-DPMxxC0S.js} +1 -1
  101. package/dist/viewer-lib/types/src/viewer/document/layoutCards.d.ts +1 -0
  102. package/dist/viewer-lib/{uk-UA-QMV73CPH-DjvTsLGT.js → uk-UA-QMV73CPH-DR9nXnJ9.js} +1 -1
  103. package/dist/viewer-lib/{vi-VN-M7AON7JQ-D1-kIlO1.js → vi-VN-M7AON7JQ-CQnrduv0.js} +1 -1
  104. package/dist/viewer-lib/{viewport-CFJHn_Y6-C6PY7g7D.js → viewport-CFJHn_Y6-DRJxKRsc.js} +1 -1
  105. package/dist/viewer-lib/{zh-CN-LNUGB5OW-DuedQ4LV.js → zh-CN-LNUGB5OW-BGGXwznZ.js} +1 -1
  106. package/dist/viewer-lib/{zh-HK-E62DVLB3-C36nmDOB.js → zh-HK-E62DVLB3--znI3-Br.js} +1 -1
  107. package/dist/viewer-lib/{zh-TW-RAJ6MFWO-eMp9b1w2.js → zh-TW-RAJ6MFWO-D536Rc9r.js} +1 -1
  108. package/package.json +1 -1
  109. package/dist/viewer/channel-C7OiO1UE.js +0 -4
  110. package/dist/viewer-lib/subset-shared.chunk-CA09RTjK.js +0 -2
@@ -0,0 +1,4 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./printDocument-CRbrGChK.js","./rolldown-runtime-COiEfhsA.js","./route-33mCuMZa.js","./react-B8SKf8RM.js","./jsx-runtime-DePvh3-m.js","./clsx-DRUh9g2d.js","./types-B9wjnrSg.js","./index3.css","./DocumentEditor-CvsHqTIi.js","./split-url-TIs9dalN.js","./MotionConfigContext-ClRb4nZj.js","./Popover-BEbPVC0T.js","./parseTrigger-C8eJQQT5.js","./TooltipPopup-Dn_UXVTv.js","./arrow-up-DCvct17l.js","./SelectScrollUpArrow-CMO4ZAXH.js","./MenuTrigger-BMV8vZ0_.js","./CompositeItem-CBKUVnEh.js","./isElementDisabled-KSuuBj8D.js","./chevron-up-BmcYlrhx.js","./minus-DFwlVdXQ.js","./type-BaA1Wn-r.js","./pen-tool-BHe7XHmt.js","./file-text-D_oZKRaU.js","./verdicts-DsDoB0AI.js","./maximize-2-BIFXhjSM.js","./lib-Bz2MLJKt.js","./search-B262MOpE.js","./useTranslation-spVeD_pd.js","./linear-BRPZ2Cwd.js","./html-BYfTdFQ4.js","./defaultLocale-BFoDCU3G.js","./init-C-OQMol4.js","./band-D-Cum8PO.js","./ordinal-BDEzSJ7C.js","./year--3Z3GYyB.js","./arc-CNPCFOtd.js","./pie-wjo18AAU.js","./agentLook-DMy3ONbz.js","./Center-3zaroQ67.js","./BottomSheet-HGnyGzBC.js","./motion-Cy65kd7X.js","./useSandboxFrame-D8TinZsv.js","./ref-CBCETzr1.js","./index2.css","./katex-CoSiSFrM.js","./static-Cz1A8szL.js","./shims-CqTWewbM.js"])))=>i.map(i=>d[i]);
2
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{S as t,g as n,l as r,x as i}from"./route-33mCuMZa.js";import{t as a}from"./react-B8SKf8RM.js";import{_i as o,f as s,g as c,h as l,i as u,l as d,m as f,o as p,u as m,xi as h}from"./split-url-TIs9dalN.js";import{t as g}from"./jsx-runtime-DePvh3-m.js";import{Ot as _,_t as v,bt as y,dt as b,ut as x,yt as S}from"./DocumentEditor-CvsHqTIi.js";import{i as C}from"./minus-DFwlVdXQ.js";import{i as w}from"./route-messages-BX8f0RRz.js";import{i as T,r as ee,t as te}from"./ThreadView-DGz95Ehs.js";import{S as E}from"./Switch-DjUp0VCc.js";import{i as D}from"./agentLook-DMy3ONbz.js";import{a as ne,i as O,n as re}from"./Avatar-EE7TFChq.js";import{a as k,i as A,n as ie,o as ae,t as j}from"./motion-Cy65kd7X.js";import{n as oe,r as M,t as se}from"./anchor-CawwftpS.js";import{n as ce}from"./useMedia-B_wouzHa.js";import{n as le}from"./font-preference-CHZ9OnPd.js";import{t as ue}from"./diagram-font-D5bUXQyN.js";import{i as de,n as fe,r as N}from"./ref-CBCETzr1.js";var P=g(),F=e(i(),1),I=e(a(),1),L=()=>document.documentElement.dataset.ryugiEmbedParent??null,R=()=>L()??location.origin,pe=e=>e.source===window.parent&&e.origin===R();function me(e,t){window.parent!==window&&window.parent.postMessage({type:`ryugi:cloud-header`,id:e,...t},R())}function he(e,t){let n=t!==null,{title:r,online:i,comments:a,activity:o,activityTone:s,retrying:c,reason:l,history:u,historyOpen:d,documentExport:f}=t??{};return(0,I.useEffect)(()=>{n&&me(e,{title:r,online:i,comments:a,activity:o,activityTone:s,retrying:c,reason:l,history:u,historyOpen:d,documentExport:f})},[e,n,r,i,a,o,s,c,l,u,d,f]),n&&window.parent!==window}function ge(e,t,n){let r=(0,I.useMemo)(()=>d(),[]),[i,a]=(0,I.useState)(!1),o=(0,I.useRef)(t);o.current=t;let c=(0,I.useRef)(n);c.current=n,(0,I.useEffect)(()=>{if(r)return m((e,t)=>{e.kind===`chrome`&&a(e.hosted),e.kind===`history`&&o.current(e.action),t===window.parent&&e.kind===`document-export`&&e.format===`pdf`&&c.current?.()})},[r]);let{activity:l,comments:u,history:f,historyOpen:p,documentExport:h}=e;return(0,I.useEffect)(()=>{r&&s({kind:`header`,activity:l,comments:u,history:f,historyOpen:p,documentExport:h})},[r,l,u,f,p,h]),r&&i}var z=(e,t,n,r)=>e.find(e=>t<e.bottom+r&&t+n+r>e.top);function _e(e,t,n,r){for(let i=z(e,t,n,r);i;)t=i.bottom+r,i=z(e,t,n,r);return t}function ve(e,t,n,r){for(let i=z(e,t,n,r);i;)t=i.top-r-n,i=z(e,t,n,r);return t}function ye(e,t,n,r,i){let a=e.top-i-t.height;if(a<0||z(r,a,t.height,i))return null;let o=t.anchorTop-a,s=[],c=a;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.top+t.height+i<=c)break;let a=c-i-t.height;if(t.fixed||a<0||z(r,a,t.height,i))return null;o+=t.top-a,s.push([e,a]),c=a}return{cost:o,moves:s,top:a}}function be(e,t,n,r=[]){let i=[...e].sort((e,t)=>e.anchorTop-t.anchorTop),a=n?i.findIndex(e=>e.id===n):-1,o=Math.max(a,0),s=[],c=-1/0;for(let e=o;e<i.length;e++){let n=i[e],o=Math.max(n.anchorTop,c),l=z(r,o,n.height,t);if(l){let e=_e(r,o,n.height,t),i=ye(l,n,s,r,t);if(i&&i.cost<=e-n.anchorTop){for(let[e,t]of i.moves)s[e].top=t;o=i.top}else o=e}s.push({id:n.id,top:o,height:n.height,fixed:e===a}),c=o+n.height+t}let l={};for(let e of s)l[e.id]=e.top;if(a>0){let e=l[i[a].id];for(let n=a-1;n>=0;n--){let a=i[n],o=Math.min(a.anchorTop,e-t-a.height),s=z(r,o,a.height,t);if(s){let n=ve(r,o,a.height,t),i=s.bottom+t;o=i+a.height+t<=e&&!z(r,i,a.height,t)&&Math.abs(i-a.anchorTop)<Math.abs(a.anchorTop-n)?i:n}l[a.id]=o,e=o}}return l}function xe(e,t,n){let r=Math.max(e.x,t.x-n),i=(r+t.x)/2,a=r>e.x?` H${r}`:``;return`M${e.x} ${e.y}${a} C${i} ${e.y} ${i} ${t.y} ${t.x} ${t.y}`}var Se=8,Ce=3,we=18;function B(e){let t=e.right+Se;return{left:t,right:t+Ce,top:e.top,bottom:e.bottom}}function Te(e){return{x:e.right,y:e.top+Math.min(we,(e.bottom-e.top)/2)}}function Ee(e,t,n,r){return{left:Math.max(t.left,Math.min(e.left,t.right-n)),top:e.bottom+r}}var V=10;function De(e,t,n,r,i){let a=Math.max(t.left,Math.min(e.left,t.right-n)),o=e.bottom+V;return i.top+o+r<=i.height-i.reserved-8?{left:a,top:o,placement:`below`}:{left:a,top:e.top-r-V,placement:`above`}}var H=e=>e.blocks??(e.kind===`block`?[{id:e.threadId,element:e.element}]:[]),U=e=>e.kind===`text`?e.ranges??[e.range]:[],Oe=4;function W(e){return[...U(e).flatMap(e=>[...e.getClientRects()]),...H(e).map(e=>B(e.element.getBoundingClientRect()))].sort((e,t)=>e.top-t.top||e.left-t.left)}function ke(e){let t=W(e).at(-1);return t?e.kind===`text`?{x:t.right,y:t.bottom}:Te(t):null}function G(e,t,n){let r=document.createRange(),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),a=0,o=!1;for(let e=i.nextNode();e;e=i.nextNode()){let i=a+e.length;if(!o&&t<=i&&(r.setStart(e,t-a),o=!0),o&&n<=i)return r.setEnd(e,n-a),r;a=i}return r.selectNodeContents(e),r}function K(e,t,n){let[r,i]=(0,I.useState)([]);return(0,I.useEffect)(()=>{if(!e||!n)return;let r=()=>{let r=e.getEditorState().read(()=>{let e=new Map;for(let t of y().getChildren()){let n=_(t,v);n&&e.set(n,t.getKey())}return e}),a=n.getBoundingClientRect().top-n.scrollTop,o=[];for(let n of t){let t=O(n.anchor).flatMap(t=>{let n=r.get(t),i=n?e.getElementByKey(n):null;return i?[{id:t,element:i}]:[]}),i=t[0]?.element;if(!i)continue;if(n.anchor.textRanges){let e=new Map(n.anchor.textRanges.map(e=>[e.blockId,e])),r=[],s=[],c;for(let n of t){let t=e.get(n.id),i=t?oe(n.element.textContent??``,t.quote,t.start):`block`;if(i===`block`)s.push(n),c??=n.element.getBoundingClientRect().top-a;else{let e=G(n.element,i.start,i.end);r.push(e);let t=e.getClientRects()[0]??n.element.getBoundingClientRect();c??=t.top-a}}r.length?o.push({threadId:n.id,top:c,kind:`text`,range:r[0],ranges:r,blocks:s}):o.push({threadId:n.id,top:c,kind:`block`,element:i,blocks:s});continue}let s=n.anchor.blockIds?`block`:oe(i.textContent??``,n.anchor.quote);if(s===`block`){o.push({threadId:n.id,top:i.getBoundingClientRect().top-a,kind:`block`,element:i,blocks:t});continue}let c=G(i,s.start,s.end),l=c.getClientRects()[0]??i.getBoundingClientRect();o.push({threadId:n.id,top:l.top-a,kind:`text`,range:c})}i(o)};r();let a=0,o=()=>{cancelAnimationFrame(a),a=requestAnimationFrame(r)},s=e.registerUpdateListener(o),c=new ResizeObserver(o);c.observe(n);let l=e.getRootElement();return l&&c.observe(l),()=>{cancelAnimationFrame(a),s(),c.disconnect()}},[e,t,n]),r}function q(e,t,n){(0,I.useEffect)(()=>{if(typeof CSS>`u`||!(`highlights`in CSS))return;let r=M(t,n),i=e.filter(e=>r.has(e.threadId)&&e.threadId!==n).flatMap(U),a=e.filter(e=>e.threadId===n).flatMap(U);return CSS.highlights.set(`ryugi-comment`,new Highlight(...i)),CSS.highlights.set(`ryugi-comment-active`,new Highlight(...a)),()=>{CSS.highlights.delete(`ryugi-comment`),CSS.highlights.delete(`ryugi-comment-active`)}},[e,t,n])}function Ae(e,t){(0,I.useEffect)(()=>{if(t?.length){for(let e of t)e.setAttribute(`data-comment-draft`,``);return()=>{for(let e of t)e.removeAttribute(`data-comment-draft`)}}if(e&&typeof CSS<`u`&&`highlights`in CSS)return CSS.highlights.set(`ryugi-comment-draft`,new Highlight(e)),()=>{CSS.highlights.delete(`ryugi-comment-draft`)}},[e,t])}function je(e,t,n){for(let r of e){let e=r.kind===`block`||H(r).length?Oe:0;for(let i of W(r))if(t>=i.left-e&&t<=i.right+e&&n>=i.top&&n<=i.bottom)return r.threadId}return null}function Me({container:e,anchors:t,threads:n,activeId:r}){let[i,a]=(0,I.useState)([]);return(0,I.useLayoutEffect)(()=>{if(!e)return a([]);let i=e.getBoundingClientRect(),o=M(n,r),s=[];for(let e of t)if(o.has(e.threadId))for(let t of H(e)){let n=B(t.element.getBoundingClientRect());s.push({id:e.threadId,key:`${e.threadId}:${t.id}`,left:n.left-i.left,top:n.top-i.top,width:n.right-n.left,height:n.bottom-n.top})}a(s)},[e,t,n,r]),i.map(e=>(0,P.jsx)(`div`,{"data-comment-block":e.id,...{0:{className:`x10l6tqk x1cum3z5 x47corl x1euklzv x15406qy xx6bhzk`},1:{className:`x10l6tqk x1cum3z5 x47corl x15406qy xx6bhzk xakccsc`}}[e.id===r|0],style:{left:e.left,top:e.top,width:e.width,height:e.height}},e.key))}var Ne=ae(260,28),Pe=260;function Fe(e){let[t,n]=(0,I.useState)(e),r=(0,I.useRef)(null),i=(0,I.useRef)(null);return e&&!t&&n(!0),(0,I.useLayoutEffect)(()=>{let t=r.current,a=i.current;if(!t||!a)return;let o=!1,s=t.offsetHeight;return e?(A(t,[{height:`0px`},{height:`${s}px`}],Ne),A(a,[{opacity:0,transform:`translateY(8px)`},{opacity:1,transform:`none`}],Ne)):Promise.all([A(t,[{height:`${s}px`},{height:`0px`}],{duration:140,easing:ie}),A(a,[{opacity:1},{opacity:0}],{duration:100,easing:`linear`})]).then(()=>{o||n(!1)}),()=>{o=!0}},[e,t]),{shown:t,outer:r,inner:i}}function Ie(e){let t=(0,I.useRef)(null),n=(0,I.useRef)(0);return(0,I.useLayoutEffect)(()=>{let r=t.current,i=n.current;if(!r||!i)return;let a=r.offsetHeight;i!==a&&(r.style.overflow=`hidden`,A(r,[{height:`${i}px`},{height:`${a}px`}],{duration:Pe,easing:j}).then(()=>{r.style.overflow=``}),A(r.firstElementChild,[{opacity:0},{opacity:1}],{duration:e?140:160,delay:Pe,easing:`ease-out`}))},[e]),(0,I.useLayoutEffect)(()=>{t.current&&(n.current=t.current.offsetHeight)}),t}function J({active:e,children:t}){return(0,P.jsx)(`div`,{...{0:{className:`xh8yej3 x9f619 xb3r6kr xixl9f9 x2fo67v xqfszdh xfifm61 x1dbl2gt xo2rkog xt0e3qv`},1:{className:`xh8yej3 x9f619 xb3r6kr xixl9f9 xqfszdh xfifm61 x1dbl2gt xo2rkog xt0e3qv x12ilycc x1d5q07e`}}[!!e|0],children:t})}var Le={backgroundColor:D.success,color:D.white};function Re({thread:e,active:t,actions:n,onActivate:i,agent:a=`Agent`}){let[o,s]=(0,I.useState)(!1),[c,l]=(0,I.useState)(!1),[u,d]=(0,I.useState)(!1),[f,p]=(0,I.useState)(0),m=(0,I.useRef)(null),g=(0,I.useRef)(null),_=e.status===`resolved`,v=(_||c)&&!o,y=se(e.anchor),b=Ie(v),x=Fe(!!n&&t&&!_&&!c);(0,I.useEffect)(()=>{e.status===`open`&&(s(!1),l(!1))},[e.status]);let S=async t=>{u||(d(!0),await A(t,[{transform:`scale(1)`},{transform:`scale(1.2)`,offset:.23},{transform:`scale(1)`,offset:.52},{transform:`scale(1)`}],{duration:420,easing:`ease-out`}),await A(m.current,[{opacity:1},{opacity:0}],{duration:120,easing:`ease-out`}),(0,F.flushSync)(()=>{l(!0),s(!1),d(!1)}),n?.resolve(e.id))},C=async()=>{i(),await A(g.current,[{opacity:1},{opacity:0}],{duration:100,easing:`ease-in`}),(0,F.flushSync)(()=>s(!0))};return(0,P.jsx)(`div`,{ref:b,children:v?(0,P.jsx)(J,{children:(0,P.jsxs)(`div`,{ref:g,onClick:()=>void C(),className:`x78zum5 x6s0dn4 x167g77z x1vvogim xaope02 xddlp02 x1ypdohk`,children:[(0,P.jsx)(h,{size:13,strokeWidth:2.2}),r(`common.resolved`),` · `,(0,P.jsx)(`span`,{className:`x98rzlu xeuugli xb3r6kr xuxw1ft xlyipyv x7zghnd`,children:y})]})}):(0,P.jsx)(`div`,{ref:m,onClick:e=>{i(),!e.target.closest(`button, textarea, input, a`)&&window.getSelection()?.isCollapsed!==!1&&p(e=>e+1)},children:(0,P.jsxs)(J,{active:t,children:[(0,P.jsxs)(`div`,{className:`x78zum5 x6s0dn4 x167g77z x889kno xqin4a2 x1j6dyjg`,children:[(0,P.jsx)(`span`,{className:`x98rzlu xeuugli xb3r6kr xuxw1ft xlyipyv x7zghnd`,children:y}),n?(0,P.jsx)(ee,{agent:a,thread:e}):null,n?_?(0,P.jsx)(`button`,{title:r(`common.reopen`),type:`button`,onClick:()=>n.reopen(e.id),className:`x2lah0s x17z2i9w x17rw0jw xrvj5dj x1ku5rj1 x1717udv xc342km x1kogg8i xjbqb8w xj0l527 xddlp02 xytdrwj xfifm61 x1ypdohk`,children:(0,P.jsx)(T,{size:13,strokeWidth:2.2})}):(0,P.jsx)(`button`,{title:r(`common.markResolved`),type:`button`,onClick:e=>(e.stopPropagation(),void S(e.currentTarget)),className:`x2lah0s x17z2i9w x17rw0jw xrvj5dj x1ku5rj1 x1717udv xc342km x1kogg8i xjbqb8w xj0l527 xddlp02 xytdrwj xfifm61 x1ypdohk`,style:u?Le:void 0,children:(0,P.jsx)(h,{size:14,strokeWidth:2.4})}):null]}),(0,P.jsx)(te,{actions:n,thread:e}),n&&x.shown?(0,P.jsx)(`div`,{ref:x.outer,className:`xb3r6kr`,children:(0,P.jsx)(`div`,{ref:x.inner,children:(0,P.jsx)(re,{focusKey:f,placeholder:r(`common.reply`),onSubmit:t=>n.reply(e.id,t)})})}):null]})})})}var Y=12,ze=40,Be=18;function Ve({id:e,onHeight:t,children:n}){let r=(0,I.useRef)(null);return(0,I.useLayoutEffect)(()=>{let n=r.current;if(!n)return;let i=new ResizeObserver(()=>t(e,n.offsetHeight));return i.observe(n),t(e,n.offsetHeight),()=>i.disconnect()},[e,t]),(0,P.jsx)(`div`,{ref:r,children:n})}function He({narrow:e,threads:t,anchors:n,blocked:i,activeId:a,actions:o,onActivate:s,railRef:c,agent:l}){let[u,d]=(0,I.useState)({}),[f,p]=(0,I.useState)(0),m=(0,I.useCallback)((e,t)=>p(t),[]),[h,g]=(0,I.useState)([]),_=(0,I.useRef)(null),v=(0,I.useRef)((e,t)=>d(n=>n[e]===t?n:{...n,[e]:t})).current,y=(0,I.useCallback)(e=>{_.current=e,c(e)},[c]),b=new Map(n.map(e=>[e.threadId,e.top])),x=t.filter(e=>b.has(e.id)),S=t.filter(e=>!b.has(e.id)&&!e.messages.every(e=>e.deleted)),C=x.map(e=>({id:e.id,anchorTop:b.get(e.id),height:u[e.id]??120})),w=be(C,Y,a??void 0,i),T=Math.max(0,...C.map(e=>(w[e.id]??0)+e.height)),ee=_e(i??[],T+Y,f,Y),te=JSON.stringify(w);(0,I.useLayoutEffect)(()=>{let r=_.current;if(e||!r)return g([]);let i=r.getBoundingClientRect(),o=M(t,a),s=[];for(let e of n){let t=w[e.threadId],n=ke(e);if(t===void 0||!n||!o.has(e.threadId))continue;let r={x:n.x-i.left,y:n.y-i.top};s.push({id:e.threadId,d:xe(r,{x:0,y:t+Be},ze)})}g(s)},[e,n,t,a,te]);let E=e=>(0,P.jsx)(Re,{actions:o,active:e.id===a,agent:l,thread:e,onActivate:()=>s(e.id)});return e?(0,P.jsxs)(`div`,{"aria-label":r(`document.commentsLabel`),ref:y,role:`region`,className:`x78zum5 xdt5ytf x1v2ro7d xh8yej3 x7ep2pv xvueqy4`,children:[[...x].sort((e,t)=>b.get(e.id)-b.get(t.id)).map(e=>(0,P.jsx)(`div`,{children:E(e)},e.id)),S.length>0?(0,P.jsx)(`div`,{className:`xqui205 x1e56ztr xddlp02 xqfszdh x1j6dyjg`,children:r(`document.originalDeleted`)}):null,S.map(e=>(0,P.jsx)(`div`,{children:E(e)},e.id))]}):(0,P.jsxs)(`aside`,{"aria-label":r(`document.commentsLabel`),ref:y,className:`x1n2onr6 xh8yej3 x2lah0s`,style:{minHeight:T},children:[(0,P.jsx)(`svg`,{className:`x10l6tqk x13vifvy xu96u03 x1i1rx1s xjm9jq1 x1rea2x4 x47corl`,children:h.map(e=>(0,P.jsx)(`path`,{d:e.d,fill:`none`,stroke:e.id===a?D.warningStrong:`currentColor`,strokeDasharray:e.id===a?void 0:`3 3`,strokeOpacity:e.id===a?1:.25},e.id))}),x.map(e=>(0,P.jsx)(`div`,{className:`x10l6tqk xu96u03 xh8yej3 xhtitgo x14h5d43 xx6bhzk`,style:{top:w[e.id]},children:(0,P.jsx)(Ve,{id:e.id,onHeight:v,children:E(e)})},e.id)),S.length>0?(0,P.jsx)(`div`,{style:{position:`absolute`,top:ee,left:0,width:`100%`,zIndex:2},children:(0,P.jsxs)(Ve,{id:`orphaned`,onHeight:m,children:[(0,P.jsx)(`div`,{className:`xqui205 x1e56ztr xddlp02 xqfszdh x1j6dyjg`,children:r(`document.originalDeleted`)}),S.map(e=>(0,P.jsx)(`div`,{style:{marginBottom:Y},children:E(e)},e.id))]})}):null]})}var Ue=`svg[role="img"] text[font-family*="Excalifont"] { font-family: ${ue}; }`;function We(){let e=le();return(0,P.jsx)(P.Fragment,{children:e&&(0,F.createPortal)((0,P.jsx)(`style`,{"data-diagram-font-style":!0,children:Ue}),document.head)})}var Ge=e=>Math.max(0,Math.min(window.scrollY+e.getBoundingClientRect().top-100,document.documentElement.scrollHeight-window.innerHeight));function Ke(e){window.scrollTo({top:Ge(e),behavior:`instant`})}function X(e,t){let n=Ge(e);if(k())return window.scrollTo({top:n,behavior:`instant`}),t?.(),()=>{};let r=()=>{window.removeEventListener(`wheel`,i),window.removeEventListener(`touchmove`,i)},i=()=>{a.stop(),r()},a=E({keyframes:[window.scrollY+1,n],type:`spring`,stiffness:1e3,damping:250,onUpdate:e=>window.scrollTo({top:e,behavior:`instant`}),onComplete:()=>{r(),t?.()}});return window.addEventListener(`wheel`,i,{passive:!0}),window.addEventListener(`touchmove`,i,{passive:!0}),i}var qe={h2:0,h3:1},Je=e=>e.getType()===`heading`?qe[e.getTag()]:void 0;function Ye(){let e=[];for(let t of y().getChildren()){let n=Je(t),r=_(t,v);n!==void 0&&e.push({key:t.getKey(),blockId:r,text:t.getTextContent(),depth:n,blocks:[]}),r&&e.at(-1)?.blocks.push(r)}return e}function Xe(e,t){let n=new Map;for(let t of e)for(let e of t.blocks)n.set(e,t.blockId);let r=new Set;for(let e of t)if(e.status===`open`)for(let t of O(e.anchor)){let e=n.get(t);e&&r.add(e)}return r}var Z={toc:{kVAEAm:`x7wzq59`,kY2c9j:`x1w0boku`,k87sOh:`xossvpg`,kSGwAc:`x1y8v6su`,keoZOQ:`x1tfhste`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kskxy:`x1r4ahda`,k7Eaqz:`xeuugli`,kMv6JI:`xqfszdh`,kGuDYH:`xfifm61`,kMwMTN:`xddlp02`,$$css:!0},rail:{kzqmXN:`x1td3qas`,$$css:!0},list:{kAzted:`x2lwn1j`,kORKVm:`x1odjw0f`,kacamN:`x1e4zzel`,k5wCbM:`x1rohswg`,k8WAf4:`xj8oexa`,$$css:!0},item:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x167g77z`,kzqmXN:`xh8yej3`,kZKoxP:`x6w4g8m`,kmVPX3:`x1717udv`,kMzoRj:`xc342km`,kaIpWk:`x1kogg8i`,kWkggS:`xjbqb8w`,kMwMTN:`x1heor9g`,kVVagm:`xln7xf2`,kLWn49:`xd4r4e8`,k9WMMc:`x1yc453h`,kkrTdU:`x1ypdohk`,k1ekBW:`xua3uq3`,kmkexE:`xv8752b`,kMeerF:`x1de99jn`,k3XXqK:`xaatb59`,kInvED:`x1y3gkto`,kjBf7l:`x1uczgqu x1fkwv27`,$$css:!0},h2Gap:{keoZOQ:`x1k70j0n`,$$css:!0},open:{kZKoxP:`xd7y6wv`,keoZOQ:`xdj266r`,$$css:!0},cardItem:{kZKoxP:`xd7y6wv`,kg3NbH:`xdqyycr`,$$css:!0},cardActive:{kWkggS:`x1k8f3b`,$$css:!0},tick:{kmuXW:`x2lah0s`,kzqmXN:`xsmyaan`,kZKoxP:`x36qwtl`,keTefX:`xdwrcjd`,kaIpWk:`x1nj7uno`,kWkggS:`x174nbcu`,kmkexE:`x1tcxqan`,$$css:!0},tickH2:{kzqmXN:`xw4jnvo`,keTefX:`x1lziwak`,kWkggS:`xxwmxtg`,$$css:!0},tickActive:{kzqmXN:`xw4jnvo`,keTefX:`x1lziwak`,kWkggS:`x18t3gi2`,$$css:!0},text:{k7Eaqz:`xeuugli`,kVQacm:`xb3r6kr`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,kSiTet:`xg01cxk`,kmkexE:`x1hqmhqo`,$$css:!0},textShown:{kSiTet:`x1hc1fzr`,$$css:!0},textH2:{kMwMTN:`x1bo0w0s`,k63SB2:`xk50ysn`,$$css:!0},textActive:{kMwMTN:`x17nrqe2`,k63SB2:`x1s688f`,$$css:!0},label:{kMwMTN:`x1bo0w0s`,k63SB2:`xk50ysn`,$$css:!0},dot:{kmuXW:`x2lah0s`,kzqmXN:`x1ftt334`,kZKoxP:`x1ycjhwn`,keTefX:`x165d6jo`,kaIpWk:`x16rqkct`,kWkggS:`xzkukvh`,$$css:!0},card:{kVAEAm:`x10l6tqk`,kY2c9j:`x1w0boku`,k87sOh:`x1v4kod4`,kbCHJM:`x6f9vd5`,kzqmXN:`xy2penl`,kskxy:`x1r4ahda`,kORKVm:`x1odjw0f`,kB7OPa:`x9f619`,k8WAf4:`x1vvogim`,kg3NbH:`x1xijbu4`,kMzoRj:`xmkeg23`,ksu8eU:`x1y0btm7`,kVAM5u:`xgcsv5v`,kaIpWk:`x1q4ynmn`,kWkggS:`x12ilycc`,kGVxlE:`x1d5q07e`,$$css:!0}},Ze=/^#([\w-]{4,64})$/,Qe=/^#ryugi-host=/,$e=e=>Ze.exec(e)?.[1]??null;function Q(e=window){if(e.parent===e||!e.parent)return e;try{return e.parent.location.href,e.parent}catch{return e}}var et=(e=Q())=>$e(e.location.hash);function tt(e,t=Q()){let{hash:n,pathname:r,search:i}=t.location;if(Qe.test(n))return;let a=e?`#${e}`:``;n!==a&&t.history.replaceState(t.history.state,``,`${r}${i}${a}`)}function nt(e,t){let n=new URL(e);return n.hash=t,n.toString()}var rt=3e3;function $(e,t){let n=e.getRootElement()?.closest(`.history-body`)?.querySelector(`.history-body-comparison[data-ready="true"]`);if(n)return[...n.querySelectorAll(`[data-history-block-id]`)].find(e=>e.dataset.historyBlockId===t)?.querySelector(`.history-current :is(h1, h2, h3, h4, h5, h6)`)??null;let r=e.getEditorState().read(()=>y().getChildren().find(e=>_(e,v)===t)?.getKey());return r?e.getElementByKey(r):null}function it(e,t){let[n]=(0,I.useState)(et),r=(0,I.useRef)(n),i=(0,I.useRef)(n),a=(0,I.useRef)(void 0),o=(0,I.useRef)(null),s=(0,I.useRef)(null),l=(0,I.useCallback)(e=>{o.current=e,tt(e)},[]),u=(0,I.useCallback)(t=>{let n=e&&$(e,t);return n?(a.current?.(),a.current=X(n,()=>{r.current===t&&!i.current&&(r.current=null)}),!0):!1},[e]),d=(0,I.useCallback)(t=>{let n=e&&$(e,t);return n?(a.current?.(),Ke(n),r.current===t&&!i.current&&(r.current=null),!0):!1},[e]),f=(0,I.useCallback)(e=>{let t={lock:r.current,pending:i.current};r.current=e,i.current=null,u(e)?l(e):(r.current=t.lock,i.current=t.pending)},[u,l]);return(0,I.useEffect)(()=>{if(!e)return;let t=()=>{if(e.getRootElement()?.closest(`.history-space-shell[data-immersive]`))return;let t=i.current;t&&(i.current=null,c()?r.current===t&&(r.current=null):d(t)?s.current={blockId:t,until:Date.now()+rt}:i.current=t)};t();let n=()=>{r.current=null,i.current=null,s.current=null},l=new ResizeObserver(()=>{if(e.getRootElement()?.closest(`.history-space-shell[data-immersive]`))return;let t=s.current;t&&(Date.now()>t.until?s.current=null:d(t.blockId))}),u=e.registerRootListener(e=>{l.disconnect(),e&&l.observe(e)}),f=Q(),p=()=>{let e=et();e&&e!==o.current&&(r.current=e,i.current=e,t())},m=e.registerUpdateListener(t);return window.addEventListener(`wheel`,n,{passive:!0}),window.addEventListener(`touchmove`,n,{passive:!0}),window.addEventListener(`keydown`,n),f.addEventListener(`hashchange`,p),()=>{m(),u(),l.disconnect(),a.current?.(),window.removeEventListener(`wheel`,n),window.removeEventListener(`touchmove`,n),window.removeEventListener(`keydown`,n),f.removeEventListener(`hashchange`,p)}},[e,d]),(0,I.useEffect)(()=>{if(e){if(r.current){if(i.current||t!==r.current)return;r.current=null}else l(t)}},[t,e,l]),{scrollTo:f}}function at({editor:e}){return it(e,null),null}var ot=120,st=200;function ct(e,t){let[n,r]=(0,I.useState)({key:null,reading:!1});return(0,I.useEffect)(()=>{if(!e)return;let n=()=>{if(e.getRootElement()?.closest(`.history-space-shell[data-immersive]`))return;let n=t[0]?.key??null,i=!1;for(let r of t){let t=r.blockId?$(e,r.blockId):e.getElementByKey(r.key);t&&t.getBoundingClientRect().top<ot&&(n=r.key,i=!0)}r(e=>e.key===n&&e.reading===i?e:{key:n,reading:i})};return n(),window.addEventListener(`scroll`,n,{passive:!0}),()=>window.removeEventListener(`scroll`,n)},[e,t]),n}function lt(e,t,n){(0,I.useEffect)(()=>{let n=()=>{let n=e.current,r=t.current;if(!n||!r)return;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();(a.top<i.top||a.bottom>i.bottom)&&(n.scrollTop=Math.max(0,n.scrollTop+a.top-i.top-(n.clientHeight-a.height)/2))};return n(),window.addEventListener(`scroll`,n,{passive:!0}),window.addEventListener(`resize`,n),()=>{window.removeEventListener(`scroll`,n),window.removeEventListener(`resize`,n)}},n)}function ut({editor:e,threads:n=[],variant:i=`column`}){let[a,o]=(0,I.useState)([]),[s,c]=(0,I.useState)(!1),l=(0,I.useRef)(void 0),u=(0,I.useRef)(null),d=(0,I.useRef)(null);(0,I.useEffect)(()=>{if(!e)return;let t=()=>o(e.getEditorState().read(Ye));return t(),e.registerUpdateListener(t)},[e]);let f=ct(e,a),p=a.find(e=>e.key===f.key),{scrollTo:m}=it(e,f.reading&&p?.blockId?p.blockId:null),h=(0,I.useMemo)(()=>Xe(a,n),[a,n]);lt(u,d,[f.key,a]),(0,I.useEffect)(()=>()=>clearTimeout(l.current),[]);let g=()=>{clearTimeout(l.current),c(!0)},_=()=>{clearTimeout(l.current),l.current=setTimeout(()=>c(!1),st)};if(i===`hidden`)return null;if(a.length===0)return(0,P.jsx)(`nav`,{"data-variant":i,...t(Z.toc)});let v=i===`rail`,y=(n,r,i)=>{let a=n.key===f.key,o=i||!v&&s,c=o||!v&&a;return(0,P.jsxs)(`button`,{"aria-current":a&&!i?`location`:void 0,"aria-label":n.text,ref:a&&!i?d:void 0,tabIndex:i?-1:void 0,type:`button`,onClick:()=>{if(n.blockId)return m(n.blockId);let t=e?.getElementByKey(n.key);t&&X(t)},...t(Z.item,!o&&n.depth===0&&r>0&&Z.h2Gap,o&&Z.open,i&&Z.cardItem,i&&a&&Z.cardActive),children:[(0,P.jsx)(`span`,{...t(Z.tick,n.depth===0&&Z.tickH2,a&&Z.tickActive)}),h.has(n.blockId)?(0,P.jsx)(`span`,{"data-commented":``,...t(Z.dot)}):null,v&&!i?null:(0,P.jsx)(`span`,{"data-current-label":!o&&a?``:void 0,...t(Z.text,c&&Z.textShown,n.depth===0&&Z.textH2,!o&&Z.label,o&&a&&Z.textActive),children:n.text})]},n.key)};return(0,P.jsxs)(`nav`,{"aria-label":r(`document.toc`),"data-expanded":s?`true`:`false`,"data-variant":i,onFocus:g,onPointerEnter:g,onPointerLeave:_,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||_()},...t(Z.toc,v&&Z.rail),children:[(0,P.jsx)(`div`,{ref:u,...t(Z.list),children:a.map((e,t)=>y(e,t,!1))}),v&&s?(0,P.jsx)(`div`,{"data-toc-card":``,...t(Z.card),children:a.map((e,t)=>y(e,t,!0))}):null]})}var dt=new Set([`h2`,`h3`]),ft=160;function pt(e){let t=document.createRange();t.selectNodeContents(e);let n=t.getClientRects?.(),r=n&&n.length>0?n.item(n.length-1):null,i=e.getBoundingClientRect();return r&&r.width>0?r:i}function mt(e,t){e.getEditorState().read(()=>{for(let n of t){let t=S(n),r=e.getElementByKey(n);if(!b(t)||!r)continue;let i=dt.has(t.getTag())?_(t,v):``;i?r.id=i:r.removeAttribute(`id`)}})}function ht({editor:e,shareBase:t}){let[n,i]=(0,I.useState)(null),[a,o]=(0,I.useState)(!1),s=(0,I.useRef)(void 0);if((0,I.useEffect)(()=>{if(e.hasNodes([x]))return e.registerMutationListener(x,t=>mt(e,[...t].filter(([,e])=>e!==`destroyed`).map(([e])=>e)))},[e]),(0,I.useEffect)(()=>{let t=()=>clearTimeout(s.current),n=()=>{t(),s.current=setTimeout(()=>i(null),ft)},r=r=>{let a=r.target;if(a?.closest?.(`[data-heading-link]`))return t();let s=e.getRootElement(),c=a?.closest?.(`h2[id], h3[id]`);if(!s||!c||!s.contains(c))return n();t();let l=pt(c);o(!1),i({id:c.id,left:l.right+window.scrollX+6,top:l.top+window.scrollY+(l.height-24)/2})};return document.addEventListener(`pointerover`,r),()=>{t(),document.removeEventListener(`pointerover`,r)}},[e]),!n)return null;let c=()=>{let e=nt(t||Q().location.href,n.id);navigator.clipboard?.writeText(e),tt(n.id),o(!0)},l=r(a?`document.headingLinkCopied`:`document.copyHeadingLink`);return(0,F.createPortal)((0,P.jsx)(`button`,{"aria-label":l,"data-heading-link":``,style:{left:n.left,top:n.top},title:l,type:`button`,onClick:c,onPointerDown:e=>e.preventDefault(),...{0:{className:`x10l6tqk xoegz02 xrvj5dj x1ku5rj1 xvy4d1p xxk0z11 x1717udv xc342km x1kogg8i xjbqb8w xj0l527 xddlp02 x8jt6w9 xgagcye x1ypdohk x1de99jn xaatb59 x1y3gkto x1uczgqu x1fkwv27`},1:{className:`x10l6tqk xoegz02 xrvj5dj x1ku5rj1 xvy4d1p xxk0z11 x1717udv xc342km x1kogg8i xjbqb8w xj0l527 x1ypdohk x1de99jn xaatb59 x1y3gkto x1uczgqu x1fkwv27 x17nrqe2`}}[!!a|0],children:a?(0,P.jsx)(h,{"aria-hidden":`true`,size:14}):(0,P.jsx)(C,{"aria-hidden":`true`,size:14})}),document.body)}var gt=620,_t=class extends I.Component{state={leaving:null,shown:null};static getDerivedStateFromProps(e,t){return e.history?.immersive?t.shown===e.history?null:{shown:e.history}:t.shown?{shown:null,leaving:t.shown}:null}host=null;paper=null;viewport=null;shell=null;entry=null;slide=null;exitTimer=null;getSnapshotBeforeUpdate(){return{rect:this.paper?.getBoundingClientRect()??null,x:window.scrollX,y:window.scrollY}}animate(e,t){if(!this.paper||!e||k()||typeof this.paper.animate!=`function`)return;this.slide?.cancel();let n=t??this.paper.getBoundingClientRect(),r=Math.max(56,e.top),i=parseFloat(getComputedStyle(this.paper).borderLeftWidth)||0,a=t?0:i,o=t?i:0;this.slide=this.paper.animate([{left:e.left-a+`px`,top:r-a+`px`,width:e.width+a*2+`px`,height:Math.min(e.height,window.innerHeight-r)+a+`px`},{left:n.left-o+`px`,top:n.top-o+`px`,width:n.width+o*2+`px`,height:n.height+o+`px`}],{duration:gt,easing:j,fill:t?`forwards`:`none`}),this.slide.finished.catch(()=>{})}unlock=()=>{if(this.exitTimer&&clearTimeout(this.exitTimer),this.exitTimer=null,this.slide?.cancel(),this.slide=null,this.host&&(this.host.style.height=``),this.entry){let e=this.entry;document.documentElement.style.overflow=e.overflow,document.documentElement.style.scrollbarGutter=e.gutter,window.scrollTo(e.x,e.y)}this.entry=null};componentDidUpdate(e,t,n){let r=!!this.props.history?.immersive,i=!!e.history?.immersive;if(r&&!i)this.exitTimer&&clearTimeout(this.exitTimer),this.exitTimer=null,this.state.leaving&&this.setState({leaving:null}),this.entry||(this.entry={...n,focus:document.activeElement,overflow:document.documentElement.style.overflow,gutter:document.documentElement.style.scrollbarGutter,offset:Math.max(0,56-(n.rect?.top??56))},this.host&&(this.host.style.height=(n.rect?.height??0)+`px`)),n.rect&&this.shell?.style.setProperty(`--history-reading-width`,n.rect.width+`px`),document.documentElement.style.scrollbarGutter=`stable`,document.documentElement.style.overflow=`hidden`,this.viewport&&(this.viewport.scrollTop=this.entry.offset),this.animate(n.rect),this.shell?.querySelector(`[data-history-exit]`)?.focus({preventScroll:!0});else if(!r&&i&&this.entry){let e=this.entry;this.viewport&&(this.viewport.scrollTop=e.offset),window.scrollTo(e.x,e.y),e.focus?.focus({preventScroll:!0});let t=e.rect;t&&this.animate(n.rect,{left:t.left,top:Math.max(56,t.top),width:t.width,height:Math.min(t.height,window.innerHeight-Math.max(56,t.top))});let r=()=>{this.setState({leaving:null},()=>{this.unlock(),e.focus?.focus({preventScroll:!0})})};k()?r():this.exitTimer=setTimeout(r,gt)}else!r&&!this.state.leaving&&(!e.history&&this.props.history&&(this.entry={...n,focus:null,overflow:document.documentElement.style.overflow,gutter:document.documentElement.style.scrollbarGutter,offset:0}),e.history&&!this.props.history&&this.entry&&(window.scrollTo(this.entry.x,this.entry.y),this.entry=null))}componentWillUnmount(){this.unlock()}trap=e=>{if(!this.props.history?.immersive||e.key!==`Tab`)return;let t=[...this.shell?.querySelectorAll(`button:not(:disabled),a[href],summary,[tabindex="0"]`)??[]].filter(e=>!e.closest(`[hidden],[aria-hidden="true"],[inert]`)),n=t[0],r=t.at(-1);e.shiftKey&&document.activeElement===n?(e.preventDefault(),r?.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n?.focus())};render(){let{history:e,children:t}=this.props,n=e?.immersive?e:this.state.leaving,i=!!n,a=!!e?.ready;return(0,P.jsx)(`div`,{className:`history-body`,ref:e=>{this.host=e},children:(0,P.jsxs)(`div`,{"aria-label":e?.immersive?r(`history.title`):void 0,"aria-modal":e?.immersive?!0:void 0,className:`history-space-shell`,"data-immersive":i?``:void 0,"data-open":e?.immersive?``:void 0,inert:!(!this.state.leaving||e),role:e?.immersive?`dialog`:void 0,ref:e=>{this.shell=e},onKeyDown:this.trap,children:[n?.space,(0,P.jsx)(`div`,{className:`history-space-paper`,ref:e=>{this.paper=e},children:(0,P.jsxs)(`div`,{className:`history-space-scroll`,tabIndex:i?0:void 0,ref:e=>{this.viewport=e},children:[(0,P.jsx)(`div`,{className:`history-body-comparison`,"data-ready":a,hidden:!a,children:e?.content}),(0,P.jsx)(`div`,{hidden:a,children:t})]})})]})})}};function vt({history:e,children:t}){let[n,r]=(0,I.useState)({current:e,panel:e?.panel??null});return n.current!==e&&r({current:e,panel:e?.panel??n.panel}),(0,I.useEffect)(()=>{if(e)return;let t=setTimeout(()=>{r(e=>e.current?e:{...e,panel:null})},k()?0:280);return()=>clearTimeout(t)},[e]),(0,P.jsx)(`div`,{className:`history-rail`,"data-moving":e||n.panel?``:void 0,"data-open":e?``:void 0,children:(0,P.jsxs)(`div`,{className:`history-rail-track`,children:[(0,P.jsx)(`div`,{"aria-hidden":e?!0:void 0,className:`history-rail-comments`,inert:!!e,children:t}),(0,P.jsx)(`div`,{"aria-hidden":!e||void 0,className:`history-rail-panel`,inert:!e,children:e?.panel??n.panel})]})})}var yt=80,bt=240,xt=e=>{let t=/matrix\(([^)]+)\)/.exec(getComputedStyle(e).transform);return t?Number(t[1].split(`,`)[4]):0};function St(e,t){let n=t.offsetLeft,r=null,i=()=>{let i=n-t.offsetLeft;if(n=t.offsetLeft,!i||k()||!r&&Math.abs(i)<yt)return;let a=i+(r?xt(t):0),o={duration:bt,easing:j};if(r)r.cancel();else for(let n of e.children)n!==t&&A(n,[{opacity:0},{opacity:1}],o);let s=t.animate([{transform:`translateX(${a}px)`},{transform:`none`}],o);r=s,s.finished.then(()=>{r===s&&(r=null)},()=>void 0)},a=new ResizeObserver(i);return a.observe(e),{settle:i,stop:()=>a.disconnect()}}var Ct=`.rich-table-scrollable-wrapper`;function wt(e,t){let n=e.getBoundingClientRect().right;return[...e.querySelectorAll(Ct)].map(e=>e.getBoundingClientRect()).filter(e=>e.right>n+1).map(e=>({top:e.top-t,bottom:e.bottom-t}))}var Tt=(e,t)=>e.length===t.length&&e.every((e,n)=>e.top===t[n].top&&e.bottom===t[n].bottom);function Et(e,t){let[n,r]=(0,I.useState)([]);return(0,I.useEffect)(()=>{let n=e?.getRootElement();if(!e||!t||!n)return;let i=()=>{let e=t.getBoundingClientRect().top-t.scrollTop,i=wt(n,e);r(e=>Tt(e,i)?e:i)};i();let a=0,o=()=>{cancelAnimationFrame(a),a=requestAnimationFrame(i)},s=e.registerUpdateListener(o),c=new ResizeObserver(o);return c.observe(t),c.observe(n),()=>{cancelAnimationFrame(a),s(),c.disconnect()}},[e,t]),n}function Dt({editor:e,threads:t,actions:n,agent:r,onMain:i,overlay:a,history:o,shareBase:s,children:c}){let[l,u]=(0,I.useState)(null),[d,f]=(0,I.useState)(null),[p,m]=(0,I.useState)(null),[h,g]=(0,I.useState)(null),_=(0,I.useCallback)(e=>{g(e),i?.(e)},[i]),v=(0,I.useRef)(null);(0,I.useEffect)(()=>{if(!h||!p)return;let e=St(h,p);return v.current=e,()=>{v.current=null,e.stop()}},[h,p]);let y=ce(`(max-width: 1100px)`),b=!ce(`(max-width: 1480px)`),x=y?`hidden`:b?`column`:`rail`,S=K(e,t,l),C=Et(e,y||o?null:l);return q(S,t,d),(0,I.useLayoutEffect)(()=>v.current?.settle(),[x]),(0,P.jsxs)(`main`,{ref:_,...{0:{className:`x1n2onr6 xrvj5dj xc94fvo xl56j7k xwaa2ar x13zrc24 x1ffnkcp x4l9tsp`},2:{className:`x1n2onr6 xrvj5dj xl56j7k xwaa2ar x13zrc24 x1ffnkcp x4l9tsp xoiau2f`},1:{className:`x1n2onr6 xc94fvo xl56j7k xwaa2ar x13zrc24 x1ffnkcp x78zum5 xdt5ytf x1qjc9v5 x17qtykl`},3:{className:`x1n2onr6 xl56j7k xwaa2ar x13zrc24 x1ffnkcp xoiau2f x78zum5 xdt5ytf x1qjc9v5 x17qtykl`}}[(x===`rail`)<<1|!!y],children:[(0,P.jsx)(`div`,{className:`history-space-toc`,inert:!!o?.immersive,children:(0,P.jsx)(ut,{editor:e,threads:t,variant:x})}),e?(0,P.jsx)(ht,{editor:e,shareBase:s}):null,(0,P.jsxs)(`article`,{ref:m,className:`x1n2onr6 x1vjfegm xh8yej3 xrgej4m xeuugli`,style:y?{marginInline:`auto`}:o?void 0:{"--ryugi-table-bleed":`368px`},onClick:e=>f(je(S,e.clientX,e.clientY)),children:[(0,P.jsx)(We,{}),(0,P.jsx)(_t,{history:o,children:c}),o?null:(0,P.jsx)(Me,{activeId:d,anchors:S,container:p,threads:t})]}),(0,P.jsx)(`div`,{className:`x1n2onr6`,className:`history-space-comments ${{className:`x1n2onr6`}.className??``}`,inert:!!o?.immersive,children:(0,P.jsx)(vt,{history:o?.immersive?null:o,children:(0,P.jsx)(He,{actions:n,activeId:d,agent:r,anchors:S,blocked:C,narrow:y,railRef:u,threads:t,onActivate:f})})}),p&&a&&!o?a(p):null]})}function Ot({error:e,onDismiss:t}){return e?(0,F.createPortal)((0,P.jsxs)(`div`,{role:`alert`,className:`xixxii4 xy58vm5 xvf9o5y xvueqy4 xeq5yr9 x27kpxv x11uqc5h x78zum5 x6s0dn4 x1v2ro7d x10dr8xq x1hr3lfm xur7f20 xmkeg23 x1y0btm7 xgcsv5v x1rozbrz xo2rkog xqfszdh x4z9k3i x1pzk2i8`,children:[(0,P.jsx)(`span`,{children:r(`documentExport.failed`)}),(0,P.jsx)(`button`,{"aria-label":r(`common.close`),type:`button`,onClick:t,className:`xrvj5dj x1ku5rj1 xjbqb8w x1bo0w0s xc342km xgd8bvy x1fgtraw x1717udv x1ypdohk x2lah0s`,children:(0,P.jsx)(o,{size:16})})]}),document.body):null}var kt=[`wheel`,`touchmove`,`keydown`,`pointerdown`];function At(e){return e.getEditorState().read(()=>y().getChildren().map(e=>({id:_(e,v),key:e.getKey()}))).flatMap(({id:t,key:n})=>{let r=t?e.getElementByKey(n):null;return r?[{id:t,element:r}]:[]})}function jt(e,t){if(t.kind!==`document`)return!1;let n=At(e).find(({id:e})=>e===t.blockId);if(!n)return!1;let r=n.element.getBoundingClientRect().top-t.top;return r!==0&&window.scrollBy({top:r,behavior:`instant`}),!0}function Mt(e){(0,I.useEffect)(()=>{if(!e)return;let t=l({read(){let t=null;for(let{id:n,element:r}of At(e)){let{top:e,bottom:i}=r.getBoundingClientRect();if(!(i<=0)){if(e>=0&&e<window.innerHeight)return{kind:`document`,blockId:n,top:e};if(t??={kind:`document`,blockId:n,top:e},e>=0)break}}return t},apply:t=>jt(e,t)}),n=()=>{let t=c();t&&jt(e,t)};n();let r=e.registerUpdateListener(n);for(let e of kt)window.addEventListener(e,f,{passive:!0});return()=>{t(),r();for(let e of kt)window.removeEventListener(e,f)}},[e])}function Nt(e){let t=structuredClone({...e,comments:e.comments??ne()}),n=t=>{if(!t||t.startsWith(`#`))return t;try{return new URL(t,e.contentBase||e.sourceUrl).href}catch{return t}},r=e=>{if(!e||typeof e!=`object`)return;let t=e;if(typeof t.type==`string`){for(let e of[`src`,`poster`,`favicon`,`image`])typeof t[e]==`string`&&(t[e]=n(t[e]));if((t.type===`link`||t.type===`autolink`||t.type===`link-card`)&&typeof t.url==`string`&&(t.url=n(t.url)),t.type===`excalidraw`&&typeof t.snapshot==`string`){let[e=``,...r]=t.snapshot.split(`
3
+ `);!e.trimStart().startsWith(`{`)&&!e.startsWith(`ref:`)&&/(?:\.excalidraw(?:[?#]|$)|^https?:|^blob:)/.test(e)&&(t.snapshot=[n(e),...r].join(`
4
+ `))}}for(let e of Object.values(t))typeof e==`object`&&r(e)};return r(t.state),t}function Pt(e,t){let n;if(t.cloudOrigin){if(!e.to)return;n=new URL(`/a/${encodeURIComponent(e.to)}`,t.cloudOrigin)}else{n=new URL(`/${fe(e)}/${encodeURIComponent(N(e))}`,t.sourceUrl);let r=new URL(t.sourceUrl);n.searchParams.set(`at`,r.searchParams.get(`at`)??r.pathname)}for(let t of p)e[t]&&n.searchParams.set(t,e[t]);return n.href}function Ft(e){let[t,r]=(0,I.useState)(!1),[i,a]=(0,I.useState)(!1),o=(0,I.useRef)(e);o.current=e;let s=(0,I.useRef)(null),c=async()=>{let e=o.current;if(!e.editor||e.available===!1||s.current)return;let t=new AbortController;s.current=t,r(!0),a(!1);try{let r=Nt({state:e.editor.getEditorState().toJSON(),comments:e.comments,title:e.title,contentBase:e.contentBase,sourceUrl:location.href,cloudOrigin:L()??(e.cloud?location.origin:void 0)}),{printDocument:i}=await n(async()=>{let{printDocument:e}=await import(`./printDocument-CRbrGChK.js`);return{printDocument:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47]),import.meta.url);await i(r,{signal:t.signal})}catch(e){t.signal.aborted||(a(!0),console.warn(`Document export failed`,e))}finally{s.current===t&&(s.current=null),t.signal.aborted||r(!1)}},l=(0,I.useRef)(c);return l.current=c,(0,I.useEffect)(()=>{r(!1),a(!1);let t=t=>{pe(t)&&t.data?.type===`ryugi:document-export`&&t.data.id===e.id&&t.data.format===`pdf`&&l.current()};return window.addEventListener(`message`,t),()=>{window.removeEventListener(`message`,t),s.current?.abort(),s.current=null}},[e.id]),{state:t?`preparing`:e.editor&&e.available!==!1?`ready`:null,error:i,dismiss:()=>a(!1),exportPdf:()=>void c()}}var It=2400,Lt=[{boxShadow:`inset 2px 0 0 #0d99ff`,backgroundColor:`rgb(13 153 255 / 0.13)`},{boxShadow:`inset 2px 0 0 transparent`,backgroundColor:`transparent`}];function Rt(e,t){let n=e.getEditorState().read(()=>y().getChildren().find(e=>_(e,v)===t)?.getKey());return n?e.getElementByKey(n):null}var zt=50,Bt=100;function Vt(e){let t=e.indexOf(`:`),n=e.slice(0,t),r=e.slice(t+1);return`[data-ref-chip="${n}"][data-ref-key="${r}"], [data-ref-to="${n}"][data-ref-key="${r}"]`}function Ht(e){let t=0,n=setInterval(()=>{let r=document.querySelector(Vt(e));r&&X(r),(r||++t>=zt)&&clearInterval(n)},Bt);return()=>clearInterval(n)}function Ut(e,t,n){let r=!!n,[i,a]=(0,I.useState)(null),o=(0,I.useMemo)(()=>r&&d(),[r]);return(0,I.useEffect)(()=>{if(!o)return;let t,n=m(n=>{if(n.kind===`active`&&a(n.key),n.kind===`reveal`&&(a(n.key),t?.(),t=Ht(n.key)),n.kind!==`scroll-to`)return;a(n.key);let r=e&&Rt(e,n.blockId);r&&(X(r),r.animate(Lt,{duration:It,easing:`ease-out`}))});return s({kind:`ready`}),()=>{n(),t?.()}},[o,e]),(0,I.useMemo)(()=>r?{active:i,useBoard:n,open:e=>{let n=fe(e);o?s({kind:`ref-open`,target:e}):location.assign(`/document/${t}${u(location.search,w(N(e),n,e,`document`))}`)}}:null,[r,i,o,t,n])}function Wt(e){let[t,n]=(0,I.useState)([]);return(0,I.useEffect)(()=>{if(!e)return;let t=()=>{let t=de(e.getEditorState().toJSON());n(e=>JSON.stringify(e)===JSON.stringify(t)?e:t)};return t(),e.registerUpdateListener(t)},[e]),t}function Gt(){let e=new Set;return{emit:t=>e.forEach(e=>e(t)),subscribe:t=>(e.add(t),()=>e.delete(t))}}export{he as C,pe as S,q as _,Pt as a,ge as b,Dt as c,at as d,We as f,Ae as g,K as h,Ft as i,_t as l,je as m,Ut as n,Mt as o,J as p,Wt as r,Ot as s,Gt as t,ht as u,De as v,L as x,Ee as y};