graview 0.1.69 → 0.1.71

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 (247) hide show
  1. package/dist/preview/chunk.23DATB5Y.js +1 -0
  2. package/dist/preview/chunk.2INDKSJI.js +1 -0
  3. package/dist/preview/chunk.3CLTABGP.js +1 -0
  4. package/dist/preview/chunk.3RRK6UTN.js +8 -0
  5. package/dist/preview/chunk.45HUV56Z.js +1 -0
  6. package/dist/preview/chunk.4HU2ILFY.js +1 -0
  7. package/dist/preview/{chunk.3VNOTHA5.js → chunk.4LWWXIM4.js} +1 -1
  8. package/dist/preview/chunk.4O64QV2Y.js +1 -0
  9. package/dist/preview/{chunk.PJL3I2IW.js → chunk.4QMAYVPU.js} +1 -1
  10. package/dist/preview/chunk.4UDST6IF.js +1 -0
  11. package/dist/preview/{chunk.6BNSDPZE.js → chunk.4YZ2A6SJ.js} +3 -3
  12. package/dist/preview/{chunk.523EFGHU.js → chunk.4ZEHLUXV.js} +1 -1
  13. package/dist/preview/{chunk.F4CDJBDS.js → chunk.5EQRIZ6I.js} +1 -1
  14. package/dist/preview/chunk.5OS4SYHE.js +1 -0
  15. package/dist/preview/{chunk.BO32A3W5.js → chunk.5PQV7GFE.js} +1 -1
  16. package/dist/preview/{chunk.PZ3KM3TY.js → chunk.5WCSQFS5.js} +1 -1
  17. package/dist/preview/{chunk.HU3KEWFO.js → chunk.64K5ELSQ.js} +1 -1
  18. package/dist/preview/{chunk.MKN7ADJB.js → chunk.67S2UWBT.js} +1 -1
  19. package/dist/preview/chunk.6A3KTD66.js +1 -0
  20. package/dist/preview/chunk.6BBUTKFC.js +23 -0
  21. package/dist/preview/chunk.6IMRCKB4.js +1 -0
  22. package/dist/preview/chunk.6L6RUOSF.js +5 -0
  23. package/dist/preview/{chunk.MH3AQO2R.js → chunk.6TBQV3NO.js} +1 -1
  24. package/dist/preview/chunk.6ZRVVRDQ.js +1 -0
  25. package/dist/preview/{chunk.YZKHTBTC.js → chunk.7FI75ZVE.js} +1 -1
  26. package/dist/preview/{chunk.IO5VFTXC.js → chunk.7KX36ENH.js} +1 -1
  27. package/dist/preview/chunk.7LPHWJB4.js +3 -0
  28. package/dist/preview/chunk.7MDGPTYF.js +1 -0
  29. package/dist/preview/{chunk.I4H2GS4O.js → chunk.7PWLRRUS.js} +2 -2
  30. package/dist/preview/{chunk.7T2P42VW.js → chunk.7TACFS7Q.js} +1 -1
  31. package/dist/preview/{chunk.KLEKC4ZX.js → chunk.7THS3DLZ.js} +1 -1
  32. package/dist/preview/{chunk.CSVDBDRZ.js → chunk.7XGU6KVF.js} +2 -2
  33. package/dist/preview/chunk.7ZLCA3WK.js +1 -0
  34. package/dist/preview/{chunk.RRCPEHM4.js → chunk.AIFT2HNP.js} +1 -1
  35. package/dist/preview/{chunk.LMZ2WMGH.js → chunk.ARGEGV5T.js} +1 -1
  36. package/dist/preview/{chunk.4FJ4OPSJ.js → chunk.BSWR5SGX.js} +1 -1
  37. package/dist/preview/{chunk.RNAL35ID.js → chunk.BWMPC7LK.js} +1 -1
  38. package/dist/preview/{chunk.KW7PHJYX.js → chunk.CEJIH3CN.js} +1 -1
  39. package/dist/preview/chunk.CEOQY5KS.js +5 -0
  40. package/dist/preview/{chunk.G43YUGNW.js → chunk.CGRX6SDE.js} +1 -1
  41. package/dist/preview/chunk.CPK6CYKN.js +111 -0
  42. package/dist/preview/{chunk.AZRICZKT.js → chunk.CVN2XFMF.js} +1 -1
  43. package/dist/preview/chunk.D4F6QX5L.js +1 -0
  44. package/dist/preview/{chunk.JPAE6K4E.js → chunk.D6ODKMOV.js} +1 -1
  45. package/dist/preview/{chunk.CCCONK73.js → chunk.DDSAFU3B.js} +1 -1
  46. package/dist/preview/{chunk.AHYMIVBX.js → chunk.DG3YNOH3.js} +1 -1
  47. package/dist/preview/chunk.DGYWNM5U.js +1 -0
  48. package/dist/preview/{chunk.ML5EHDZG.js → chunk.DHO3QZYK.js} +1 -1
  49. package/dist/preview/{chunk.EL7XXGQY.js → chunk.DJGZOPAS.js} +1 -1
  50. package/dist/preview/chunk.DOJCYXIJ.js +1 -0
  51. package/dist/preview/{chunk.CKSRW3LA.js → chunk.DX7RGK5G.js} +1 -1
  52. package/dist/preview/{chunk.QK7EUIPL.js → chunk.EA2KYBBR.js} +1 -1
  53. package/dist/preview/chunk.EEGVI266.js +1 -0
  54. package/dist/preview/{chunk.I7OFRF6N.js → chunk.EHLV3LND.js} +2 -2
  55. package/dist/preview/{chunk.QEBD7SC4.js → chunk.EJC7ACZT.js} +4 -2
  56. package/dist/preview/{chunk.QRNKGPAD.js → chunk.EJIQDMLU.js} +1 -1
  57. package/dist/preview/chunk.EOSN5DWW.js +1 -0
  58. package/dist/preview/{chunk.4RPKCW4J.js → chunk.EPSYX2SF.js} +1 -1
  59. package/dist/preview/chunk.EUXAIG73.js +1 -0
  60. package/dist/preview/chunk.EZQK23AB.js +1 -0
  61. package/dist/preview/{chunk.KKFKSJUN.js → chunk.F5O3HR7X.js} +1 -1
  62. package/dist/preview/chunk.F6MY6WJ4.js +1 -0
  63. package/dist/preview/{chunk.GTF6EMVE.js → chunk.F7KVEWFH.js} +1 -1
  64. package/dist/preview/{chunk.EEUCRZA3.js → chunk.FIUPDGUZ.js} +1 -1
  65. package/dist/preview/chunk.FNSVGSZI.js +1 -0
  66. package/dist/preview/chunk.FOHZPYUV.js +1 -0
  67. package/dist/preview/chunk.FW6M6GIU.js +32 -0
  68. package/dist/preview/{chunk.VXPEXUQF.js → chunk.G5AF5IXL.js} +1 -1
  69. package/dist/preview/chunk.G767NLBH.js +1 -0
  70. package/dist/preview/chunk.GFBE4VNT.js +1 -0
  71. package/dist/preview/{chunk.CDSHUWSK.js → chunk.GFOZVQBQ.js} +1 -1
  72. package/dist/preview/chunk.GKYJQE5A.js +1 -0
  73. package/dist/preview/chunk.GOVRX2YX.js +4 -0
  74. package/dist/preview/{chunk.T3PELB6I.js → chunk.H33XWGAY.js} +1 -1
  75. package/dist/preview/{chunk.2AL26ZPJ.js → chunk.H4BPTMED.js} +1 -1
  76. package/dist/preview/chunk.HLKDYI6J.js +1 -0
  77. package/dist/preview/{chunk.VEQIH7HR.js → chunk.HPFEYMGP.js} +1 -1
  78. package/dist/preview/chunk.HT35PAHI.js +21 -0
  79. package/dist/preview/{chunk.VR553M6J.js → chunk.HXRHEPPJ.js} +1 -1
  80. package/dist/preview/chunk.IPKODEOZ.js +1 -0
  81. package/dist/preview/{chunk.EP7YT7LT.js → chunk.IXYG65TM.js} +1 -1
  82. package/dist/preview/chunk.IZDB777E.js +1 -0
  83. package/dist/preview/{chunk.VBBH5R5T.js → chunk.JAPTTM6Y.js} +1 -1
  84. package/dist/preview/chunk.JCKIJSW7.js +25 -0
  85. package/dist/preview/{chunk.4R7H3GIL.js → chunk.JLNTE5CH.js} +2 -2
  86. package/dist/preview/chunk.JNK5WBSU.js +1 -0
  87. package/dist/preview/chunk.JREA2XDG.js +1 -0
  88. package/dist/preview/{chunk.WV6SP6IJ.js → chunk.KBJ3UUER.js} +1 -1
  89. package/dist/preview/{chunk.VBHV4TLG.js → chunk.KHRS2SKB.js} +1 -1
  90. package/dist/preview/{chunk.ISZFRLNJ.js → chunk.KJPLX72N.js} +1 -1
  91. package/dist/preview/chunk.KZUHXOZU.js +21 -0
  92. package/dist/preview/{chunk.6ZFYFT5A.js → chunk.L3MLGFIS.js} +1 -1
  93. package/dist/preview/{chunk.KEGL6NBD.js → chunk.L6P55HFW.js} +1 -1
  94. package/dist/preview/{chunk.N7A3T5QU.js → chunk.LDWWUKKX.js} +1 -1
  95. package/dist/preview/{chunk.CA2SYEYE.js → chunk.LHCGC3K6.js} +1 -1
  96. package/dist/preview/{chunk.BQORHDAH.js → chunk.LNKY6MT4.js} +1 -1
  97. package/dist/preview/chunk.LQ5J6YQW.js +1 -0
  98. package/dist/preview/{chunk.47VEV4BX.js → chunk.MEAUTBVM.js} +1 -1
  99. package/dist/preview/chunk.MEBKTW7H.js +17 -0
  100. package/dist/preview/{chunk.WQ7K5O2I.js → chunk.MFMC35ET.js} +1 -1
  101. package/dist/preview/chunk.MJ4T6YXI.js +1 -0
  102. package/dist/preview/chunk.MKJV3BM5.js +240 -0
  103. package/dist/preview/chunk.ML4X7VVK.js +1 -0
  104. package/dist/preview/chunk.MM7MLBGB.js +1 -0
  105. package/dist/preview/{chunk.5MOXQUZH.js → chunk.MQNW3O67.js} +1 -1
  106. package/dist/preview/{chunk.J2N7EKMX.js → chunk.MT252WP4.js} +1 -1
  107. package/dist/preview/chunk.MWWNKM3I.js +1 -0
  108. package/dist/preview/chunk.N3MXLORL.js +3 -0
  109. package/dist/preview/chunk.NH3VXTGX.js +1 -0
  110. package/dist/preview/{chunk.B422DSYN.js → chunk.NI4OPHTL.js} +1 -1
  111. package/dist/preview/chunk.NNGG7RCO.js +1 -0
  112. package/dist/preview/{chunk.LKM2R5UF.js → chunk.NXHEOHRR.js} +1 -1
  113. package/dist/preview/{chunk.TQQDUJLX.js → chunk.O5RPSUXV.js} +1 -1
  114. package/dist/preview/{chunk.FE3SINPK.js → chunk.OKHXXIMN.js} +1 -1
  115. package/dist/preview/chunk.ONAH6MC4.js +1 -0
  116. package/dist/preview/chunk.OOQG2AEF.js +1 -0
  117. package/dist/preview/{chunk.ZQYHNFRZ.js → chunk.OPMGQS5J.js} +1 -1
  118. package/dist/preview/{chunk.UHJSZ2XZ.js → chunk.OUF2QFZL.js} +1 -1
  119. package/dist/preview/{chunk.CUEIGKFG.js → chunk.OVSKPBPS.js} +1 -1
  120. package/dist/preview/chunk.OYMN3IFX.js +1 -0
  121. package/dist/preview/{chunk.QNC2OKLF.js → chunk.P43LPXXJ.js} +1 -1
  122. package/dist/preview/chunk.PGT4ZQDG.js +4 -0
  123. package/dist/preview/{chunk.WFJCC6G3.js → chunk.PQTXM4VY.js} +1 -1
  124. package/dist/preview/{chunk.KHKCTVHD.js → chunk.Q6GEPVQ7.js} +1 -1
  125. package/dist/preview/chunk.QDDDKEBH.js +1 -0
  126. package/dist/preview/{chunk.26RYER7Y.js → chunk.QJJWAYHB.js} +1 -1
  127. package/dist/preview/chunk.QK4QZVQG.js +1 -0
  128. package/dist/preview/{chunk.CLIC2QBA.js → chunk.QKRQPUCE.js} +1 -1
  129. package/dist/preview/{chunk.DU76ASS4.js → chunk.QNWGDG2Z.js} +2 -2
  130. package/dist/preview/{chunk.447RWLS7.js → chunk.QVBP4UZG.js} +2 -2
  131. package/dist/preview/chunk.RDUGUC7R.js +1 -0
  132. package/dist/preview/{chunk.EK3JXEZL.js → chunk.RHIP2UYE.js} +1 -1
  133. package/dist/preview/chunk.RJ7VSWTA.js +87 -0
  134. package/dist/preview/{chunk.JHAMSDAI.js → chunk.RO3D2RNP.js} +1 -1
  135. package/dist/preview/{chunk.C6CT6F4C.js → chunk.S2BMI23H.js} +1 -1
  136. package/dist/preview/{chunk.ZRBGYXAO.js → chunk.SGYZM6ZU.js} +1 -1
  137. package/dist/preview/{chunk.UPOYRCKI.js → chunk.SPJ34VHA.js} +1 -1
  138. package/dist/preview/{chunk.UAEOCWSG.js → chunk.T6KOL7TW.js} +1 -1
  139. package/dist/preview/{chunk.AUNQNTKY.js → chunk.T6UJEXFL.js} +3 -2
  140. package/dist/preview/chunk.TBEKEHFS.js +1 -0
  141. package/dist/preview/chunk.TO3ZKCA2.js +1 -0
  142. package/dist/preview/{chunk.FIY4RUK5.js → chunk.TQ3MNB6K.js} +1 -1
  143. package/dist/preview/{chunk.GG47EIKO.js → chunk.TRP66PHK.js} +1 -1
  144. package/dist/preview/{chunk.LGNGFG5V.js → chunk.TSZ2S3VG.js} +1 -1
  145. package/dist/preview/chunk.TTM5GQ2U.js +1 -0
  146. package/dist/preview/chunk.TUBY6SV3.js +1 -0
  147. package/dist/preview/{chunk.ZE5RSKXF.js → chunk.U5KJQFAP.js} +1 -1
  148. package/dist/preview/chunk.U6V4KZF5.js +1 -0
  149. package/dist/preview/chunk.UJ7RTNT4.js +1 -0
  150. package/dist/preview/{chunk.HCX6KPRF.js → chunk.UQZ2P6KD.js} +1 -1
  151. package/dist/preview/{chunk.CLZYNFFH.js → chunk.UZKBFI52.js} +1 -1
  152. package/dist/preview/{chunk.66TRDXYR.js → chunk.V5JB5UJS.js} +2 -2
  153. package/dist/preview/{chunk.3TKIZGC7.js → chunk.VDFQFLTU.js} +1 -1
  154. package/dist/preview/{chunk.IY3DV52G.js → chunk.VGYG2IBZ.js} +1 -1
  155. package/dist/preview/chunk.VICBF3MQ.js +2 -0
  156. package/dist/preview/{chunk.EQZPEOIW.js → chunk.VL3YDD7D.js} +1 -1
  157. package/dist/preview/{chunk.IYHY4VEC.js → chunk.VPFUOTY7.js} +1 -1
  158. package/dist/preview/chunk.VUDNQOOX.js +1 -0
  159. package/dist/preview/{chunk.P26ATAAI.js → chunk.VVIQSFM4.js} +1 -1
  160. package/dist/preview/{chunk.DO3FQM6R.js → chunk.W332P5T3.js} +6 -6
  161. package/dist/preview/{chunk.POKGLN4T.js → chunk.W3TJF4EH.js} +1 -1
  162. package/dist/preview/{chunk.D5JZQZ74.js → chunk.W5O5F4FT.js} +1 -1
  163. package/dist/preview/chunk.W6L2VAJG.js +2 -0
  164. package/dist/preview/{chunk.O7NYSO6F.js → chunk.WGH2P2YL.js} +1 -1
  165. package/dist/preview/{chunk.OD5QZHRC.js → chunk.WS5ORRGS.js} +1 -1
  166. package/dist/preview/{chunk.VQDL4EEP.js → chunk.WU6D3SPL.js} +1 -1
  167. package/dist/preview/{chunk.MV27WMNW.js → chunk.X2UYEA7H.js} +1 -1
  168. package/dist/preview/chunk.X45EITTK.js +18 -0
  169. package/dist/preview/{chunk.TAJBXG5U.js → chunk.X7U3JMBR.js} +1 -1
  170. package/dist/preview/chunk.XSM4OTF4.js +1 -0
  171. package/dist/preview/{chunk.DRAPVGQZ.js → chunk.XTHSPLZZ.js} +1 -1
  172. package/dist/preview/{chunk.VQOYFBEV.js → chunk.Y5WQD6KV.js} +1 -1
  173. package/dist/preview/chunk.YXVUJ3NB.js +1 -0
  174. package/dist/preview/{chunk.NRECR3NQ.js → chunk.Z22C2JJ4.js} +1 -1
  175. package/dist/preview/{chunk.TQRC5VAM.js → chunk.Z2BCOZDZ.js} +1 -1
  176. package/dist/preview/{chunk.S2NQRD6W.js → chunk.Z3TK2LJM.js} +1 -1
  177. package/dist/preview/chunk.ZGLOXN7O.js +1 -0
  178. package/dist/preview/{chunk.R7POSVUK.js → chunk.ZLQIGZXO.js} +2 -2
  179. package/dist/preview/{chunk.YJ4PFOPC.js → chunk.ZONRIOIA.js} +1 -1
  180. package/dist/preview/{chunk.QVCKTDG3.js → chunk.ZY3NAJDM.js} +1 -1
  181. package/dist/preview/index.html +55 -55
  182. package/dist/preview/page.js +2 -2
  183. package/package.json +7 -7
  184. package/dist/preview/chunk.2WFOKJB4.js +0 -1
  185. package/dist/preview/chunk.32SHA3EY.js +0 -1
  186. package/dist/preview/chunk.3D37E2G5.js +0 -1
  187. package/dist/preview/chunk.3PT3BU6K.js +0 -1
  188. package/dist/preview/chunk.3XTIYX6M.js +0 -1
  189. package/dist/preview/chunk.4O7WYLCK.js +0 -1
  190. package/dist/preview/chunk.5DU6FA5R.js +0 -1
  191. package/dist/preview/chunk.5TWRTGP6.js +0 -1
  192. package/dist/preview/chunk.6BR2SUAE.js +0 -1
  193. package/dist/preview/chunk.6TDVNWFU.js +0 -17
  194. package/dist/preview/chunk.6XBQDXT6.js +0 -3
  195. package/dist/preview/chunk.7L3I776Z.js +0 -1
  196. package/dist/preview/chunk.7OLKVOS6.js +0 -1
  197. package/dist/preview/chunk.AG7WJYM5.js +0 -3
  198. package/dist/preview/chunk.AMAOZVEO.js +0 -1
  199. package/dist/preview/chunk.AMV2ILR6.js +0 -1
  200. package/dist/preview/chunk.B5EFNTDA.js +0 -1
  201. package/dist/preview/chunk.BBLIT7S7.js +0 -1
  202. package/dist/preview/chunk.BSQI3KM2.js +0 -1
  203. package/dist/preview/chunk.CYEPHT7V.js +0 -1
  204. package/dist/preview/chunk.D3SWJ7OS.js +0 -1
  205. package/dist/preview/chunk.DHPXRDT5.js +0 -5
  206. package/dist/preview/chunk.DKUEZPGR.js +0 -1
  207. package/dist/preview/chunk.FWXW4T4I.js +0 -25
  208. package/dist/preview/chunk.GF5CZPZ7.js +0 -1
  209. package/dist/preview/chunk.GPBHUIZQ.js +0 -2
  210. package/dist/preview/chunk.GVFGS2HY.js +0 -1
  211. package/dist/preview/chunk.HGH27XZG.js +0 -23
  212. package/dist/preview/chunk.HMJXB6KC.js +0 -5
  213. package/dist/preview/chunk.HTEQCRVP.js +0 -1
  214. package/dist/preview/chunk.I7KN732Z.js +0 -2
  215. package/dist/preview/chunk.IAVIYJTL.js +0 -1
  216. package/dist/preview/chunk.IPKESOIU.js +0 -21
  217. package/dist/preview/chunk.IRNEWNUB.js +0 -1
  218. package/dist/preview/chunk.J7O23NKZ.js +0 -22
  219. package/dist/preview/chunk.JDUA5PH2.js +0 -1
  220. package/dist/preview/chunk.JN3WZGJY.js +0 -1
  221. package/dist/preview/chunk.JQEXH23N.js +0 -1
  222. package/dist/preview/chunk.KVQYOFDV.js +0 -1
  223. package/dist/preview/chunk.LAVLPYSC.js +0 -1
  224. package/dist/preview/chunk.MATUPDZ3.js +0 -1
  225. package/dist/preview/chunk.MD3N26BC.js +0 -23
  226. package/dist/preview/chunk.MHHNO3O2.js +0 -1
  227. package/dist/preview/chunk.MUWI54IP.js +0 -1
  228. package/dist/preview/chunk.NLZHNPDU.js +0 -93
  229. package/dist/preview/chunk.NSAGOOJW.js +0 -1
  230. package/dist/preview/chunk.NYLKG25K.js +0 -4
  231. package/dist/preview/chunk.OWO3OV62.js +0 -1
  232. package/dist/preview/chunk.ROYCJXPE.js +0 -1
  233. package/dist/preview/chunk.RZ73YG5K.js +0 -1
  234. package/dist/preview/chunk.SAWASNDO.js +0 -1
  235. package/dist/preview/chunk.SCVKHGO3.js +0 -1
  236. package/dist/preview/chunk.SM37MNS2.js +0 -1
  237. package/dist/preview/chunk.T2BZBR7S.js +0 -50
  238. package/dist/preview/chunk.TLPCYKLW.js +0 -3
  239. package/dist/preview/chunk.U563J5IM.js +0 -1
  240. package/dist/preview/chunk.U6QXLNHF.js +0 -15
  241. package/dist/preview/chunk.VBYJBW32.js +0 -1
  242. package/dist/preview/chunk.VHLL6VC6.js +0 -1
  243. package/dist/preview/chunk.W3WXI5B3.js +0 -1
  244. package/dist/preview/chunk.W43XWQRC.js +0 -1
  245. package/dist/preview/chunk.WJHLE73Y.js +0 -111
  246. package/dist/preview/chunk.ZT3ZG52B.js +0 -1
  247. package/dist/preview/chunk.ZU3RPI34.js +0 -1
@@ -0,0 +1 @@
1
+ import"./chunk.AJZBJBMO.js";var e='"use strict";\n/*! @remote-dom/core and @remote-dom/polyfill \u2014 Copyright 2020-present, Shopify Inc. \u2014 MIT License.\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n * @graview/guest\'s worker runtime \u2014 Elastic License 2.0. */\n"use strict";(()=>{var Re=globalThis,mo=Re.addEventListener,po=Re.removeEventListener,ho=Re.postMessage,go=globalThis.queueMicrotask,pn=globalThis.performance,yo=pn?pn.now.bind(pn):Date.now,_e={listen:t=>mo.call(Re,"message",t),unlisten:t=>po.call(Re,"message",t),post:t=>ho.call(Re,t),microtask:t=>go.call(globalThis,t),now:()=>yo()};var O=Symbol("name"),fe=Symbol("prefix"),me=Symbol("value"),v=Symbol("ns"),Y=Symbol("owner"),k=Symbol("owner_document"),re=Symbol("attributes"),D=Symbol("prev"),p=Symbol("next"),R=Symbol("child"),z=Symbol("parent"),pe=Symbol("host"),K=Symbol("data"),Te=Symbol("listeners"),hn=Symbol("isTrusted"),Pe=Symbol("path"),Me=Symbol("stop_immediate_propagation"),Ce=Symbol("dispatching"),ie=Symbol("content"),L=Symbol("hooks"),mt=Symbol("extensions"),we=Symbol("hooks_dispatch"),B=Symbol("is_connected"),Ie=Symbol("create_element"),nr=0,$=1,ke=2,De=3,Le=8,Se=9,rr=10,he=11,_="http://www.w3.org/1999/xhtml",Z="http://www.w3.org/2000/svg",or="http://www.w3.org/XML/1998/namespace",$e="http://www.w3.org/2000/xmlns/";function pt(t){return t.split(/[\\t\\n\\f\\r ]+/).filter(Boolean)}function H(t){return t.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}function sr(t){return t.replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32))}function M(t,e){let n=globalThis.DOMException;if(typeof n=="function")return new n(t,e);let r=new Error(t);return r.name=e,r}var ir=/^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$/u,ar=/[\\0\\t\\n\\f\\r />=]/u,Eo=/[\\0\\t\\n\\f\\r />]/u;function ae(t){if(t==null)return null;let e=String(t);return e===""?null:e}function lr(t){ir.test(t)||yn(t)}function gn(t){(t===""||ar.test(t))&&yn(t)}function ht(t,e,n){let r=ae(t),o=String(e),s=o.indexOf(":"),i=s<0?null:o.slice(0,s),l=s<0?o:o.slice(s+1);if((i!=null&&(i===""||Eo.test(i))||(n==="element"?!ir.test(l):l===""||ar.test(l)))&&yn(o),i!=null&&r==null)throw M(`A namespace is required for the prefix in "${o}"`,"NamespaceError");if(i==="xml"&&r!==or)throw M("The xml prefix requires the XML namespace","NamespaceError");if((o==="xmlns"||i==="xmlns")&&r!==$e)throw M("The xmlns name requires the XMLNS namespace","NamespaceError");if(r===$e&&o!=="xmlns"&&i!=="xmlns")throw M("The XMLNS namespace requires the xmlns name or prefix","NamespaceError");return{namespace:r,qualifiedName:o,prefix:i,localName:l}}function yn(t){throw M(`Invalid name: "${t}"`,"InvalidCharacterError")}var gt=0,yt=1,cr=2,En=3,bo=typeof performance>"u"?Date.now:performance.now.bind(performance),V=class{static NONE=gt;static CAPTURING_PHASE=yt;static AT_TARGET=cr;static BUBBLING_PHASE=En;timeStamp=bo();target=null;currentTarget=null;srcElement=null;bubbles=!1;cancelable=!1;composed=!1;defaultPrevented=!1;cancelBubble=!1;eventPhase=gt;[Pe]=[];[Me]=!1;[Ce]=!1;constructor(e,n){this.type=e,Object.defineProperty(this,hn,{writable:!0,value:!1}),n&&(n.bubbles&&(this.bubbles=n.bubbles),n.cancelable&&(this.cancelable=n.cancelable),n.composed&&(this.composed=n.composed))}get isTrusted(){return this[hn]}composedPath(){return[...this[Pe]]}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this[Me]=!0,this.cancelBubble=!0}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}set returnValue(e){e||this.preventDefault()}get returnValue(){return!this.defaultPrevented}initEvent(e,n,r){this.type=e,this.bubbles=!!n,this.cancelable=!!r}};function bn(t,e,n){if(t.cancelBubble)return;let o=e[Te]?.get(t.type)?.[n===yt?"capture":"bubble"];if(o)for(let s of[...o]){if(!o.has(s)||s.signal?.aborted)continue;t.eventPhase=t.target===e?cr:n,t.currentTarget=e;let i=s.normalizedListener;try{typeof i=="object"?i.handleEvent(t):i.call(e,t)}catch(l){setTimeout(No,0,l)}if(t[Me])break}}function No(t){throw t}var Xe=[],Et=new WeakMap;function bt(t,e){let n=Et.get(t);n?n.push(e):Et.set(t,[e]),Xe[Xe.length-1].push(t)}function F(t){let e=[];Xe.push(e);let n;try{n=t()}catch(r){Xe.pop();try{ur(e)}catch{}throw r}return Xe.pop(),ur(e),n}function ur(t){let e,n=!1;for(let r of t){let o=Et.get(r);if(o){for(;o.length>0;){let s=o.shift();try{s()}catch(i){n||(e=i,n=!0)}}Et.delete(r)}}if(n)throw e}var Nt=[],Ke=[],Nn=!1;function Oe(t){for(let e of t)Nt.push(e),e[1]&&Ke.push(e[1]);if(!Nn){Nn=!0;try{let e,n=!1;for(let r=0;r<Nt.length;r++){let[o,s]=Nt[r];s&&Ke.splice(Ke.indexOf(s),1);try{o()}catch(i){n||(e=i,n=!0)}}if(n)throw e}finally{Nt.length=0,Ke.length=0,Nn=!1}}}function Ze(t){let e=t;for(;e;){if(Ke.includes(e))return!0;e=e[z]??e[pe]}return!1}var Qe=Symbol("listenerRegistrations"),ge=class{[Te]=void 0;[Qe]=void 0;[k]=void 0;addEventListener(e,n,r){if(n==null)return;let o=r===!0||typeof r=="object"&&r.capture===!0,s=typeof r=="object"&&r.once===!0,i=typeof r=="object"?r.signal:void 0;if(i?.aborted)return;let l=Tn(o),c=this[Qe];c||(c=new Map,this[Qe]=c);let u=c.get(e);u||(u={},c.set(e,u));let m=u[l];if(m||(m=new Map,u[l]=m),m.has(n))return;let g=this,y={type:e,listener:n,capture:o,once:s,normalizedListener:n,signal:i};(s||i)&&(y.normalizedListener=function(...C){if(y.signal?.aborted){Tt(g,y);return}return y.once&&Tt(g,y),typeof y.listener=="object"?y.listener.handleEvent(...C):y.listener.call(this,...C)});let E=this[Te];E||(E=new Map,this[Te]=E);let x=E.get(e);x||(x={},E.set(e,x));let N=x[l];if(N||(N=new Set,x[l]=N),m.set(n,y),N.add(y),i){let w=()=>{Tt(g,y)};y.abortListener=w,i.addEventListener("abort",w,{once:!0})}this[k]?.defaultView[we].addEventListener?.(this,e,n,r)}removeEventListener(e,n,r){return To.call(this,e,n,r)}dispatchEvent(e){if(e[Ce])throw M("Failed to execute \'dispatchEvent\' on \'EventTarget\': The event is already being dispatched.","InvalidStateError");e[Ce]=!0;try{let n=[],r=this;for(;r!=null;)n.push(r),r=r.parentNode;e.target=this,e.srcElement=this,e[Pe]=n;for(let s=n.length;s--;)if(bn(e,n[s],yt),e.cancelBubble)return!e.defaultPrevented;let o=e.bubbles?n:n.slice(0,1);for(let s=0;s<o.length;s++)if(bn(e,o[s],En),e.cancelBubble)return!e.defaultPrevented;return!e.defaultPrevented}finally{e[Ce]=!1,e.cancelBubble=!1,e[Me]=!1,e.eventPhase=gt,e.currentTarget=null,e[Pe]=[]}}};function To(t,e,n){if(e==null)return;let r=n===!0||n&&n.capture===!0,o=Tn(!!r),s=this[Qe]?.get(t)?.[o]?.get(e);s&&Tt(this,s)}function Tn(t){return t?"capture":"bubble"}function Tt(t,e){let n=Tn(e.capture),r=t[Qe],o=r?.get(e.type);if(!o)return;let s=o[n];if(!s||s.get(e.listener)!==e)return;s.delete(e.listener),s.size===0&&delete o[n],!o.bubble&&!o.capture&&r?.delete(e.type),e.signal&&e.abortListener&&e.signal.removeEventListener("abort",e.abortListener);let i=t[Te],l=i?.get(e.type);if(!l)return;let c=l[n];c?.delete(e)&&(c.size===0&&delete l[n],!l.bubble&&!l.capture&&i?.delete(e.type),t[k]?.defaultView[we].removeEventListener?.(t,e.type,e.listener,e.capture))}var Q=class extends Array{item(e){return this[e]??null}};var et=0,dr=1,On=2,vn=3,tt=4,fr=0,mr=1,Ot=2,vt=3,pr=4,Sn=5,hr=6,gr=7,wt=/^(?:--|-?[A-Za-z_\\u0080-\\u{10FFFF}])[A-Za-z0-9_\\u0080-\\u{10FFFF}-]*$/u;function wo(t,e){let n=1,r=null;for(let o=e;o<t.length;o++){let s=t[o];if(r){s==="\\\\"?o++:s===r&&(r=null);continue}if(s===\'"\'||s==="\'")r=s;else if(s==="(")n++;else if(s===")"&&--n===0)return[t.slice(e,o),o+1]}return[t.slice(e),t.length]}function W(t){throw M(`Invalid or unsupported selector: "${t}"`,"SyntaxError")}function xt(t,e){let n=typeof e=="string"?nt(e):[{combinator:tt,matchers:e}],r=null,o=t[R];return o&&n[0].matchers.length&&xn(o,n,s=>(r=s,!1)),r}function At(t,e){let n=typeof e=="string"?nt(e):[{combinator:tt,matchers:e}],r=new Q,o=t[R];return o&&n[0].matchers.length&&xn(o,n,s=>{r.push(s)}),r}function nt(t,e=!1,n=!1){let r={combinator:tt,matchers:[]},o=[r],s=/[\\t\\n\\f\\r ]*?([>\\t\\n\\f\\r +~]?)[\\t\\n\\f\\r ]*?(?:(?:\\[[\\t\\n\\f\\r ]*([^\\]=\\t\\n\\f\\r ]+)[\\t\\n\\f\\r ]*(?:=[\\t\\n\\f\\r ]*(?:([\'"])(.*?)\\3|([^\\]\\t\\n\\f\\r ]+)))?[\\t\\n\\f\\r ]*(?:\\]|$))|([#.]?)([^\\t\\n\\f\\r #.[>:+~()]+)|:(\\w+)(\\()?)/gi,i=t.replace(/^[\\t\\n\\f\\r ]+|[\\t\\n\\f\\r ]+$/g,"");i===""&&W(t);let l=0,c;for(;c=s.exec(i);){c.index!==l&&W(t),c[1]&&(r.matchers.length===0&&!(n&&o.length===1)&&W(t),c[1]===">"?r.combinator=dr:c[1]==="+"?r.combinator=vn:c[1]==="~"?r.combinator=On:r.combinator=et,r={combinator:tt,matchers:[]},o.push(r));let u=c[8]?H(c[8]):c[2]||c[7];c[7]!=null&&!c[6]&&r.matchers.length>0&&W(t);let g,y=c[4]??c[5]??c[7];if(c[2]){wt.test(u)||W(t);let E=c[5],x=E?.[0];if(c[3]==null&&(x===\'"\'||x==="\'")){let N=c[0].lastIndexOf(E);y=i.slice(c.index+N+1),s.lastIndex=i.length}else E!=null&&!wt.test(E)&&W(t);g=pr}else c[6]?(wt.test(u)||W(t),g=c[6]==="#"?Ot:vt):c[8]?g=c[9]==null?Sn:hr:c[7]==="*"?g=fr:c[7]&&wt.test(c[7])?g=mr:W(t);c[9]?([y,s.lastIndex]=wo(i,s.lastIndex),u!=="has"&&u!=="not"&&W(t),u==="has"&&e&&W(t),nt(y,e||u==="has",u==="has")):g===Sn&&W(t),r.matchers.push({type:g,name:u,value:y}),l=s.lastIndex}return(l!==i.length||r.matchers.length===0)&&W(t),o}function So(t,e){let n=nt(e);return n[0]?.matchers.length?Je(t,n):!1}function Oo(t,e){let n=nt(e,!0,!0),r=n[0];if(n.length===1&&r.matchers.length===0)return!1;let o=et,s={type:gr,name:":scope"};if(r.matchers.length===0?(o=r.combinator,r.matchers.push(s)):n.unshift({combinator:et,matchers:[s]}),n.some(({matchers:c})=>c.length===0))return!1;let i=o===vn||o===On?t[p]:t[R];if(!i)return!1;let l=!1;return xn(i,n,()=>(l=!0,!1),t),l}function xn(t,e,n,r){let o=[],s=t;for(;s;){if(j(s)){if(Je(s,e,r)&&n(s)===!1)return!1;let i=s[R];if(i){let l=s[p];l&&o.push(l),s=i;continue}}s=s[p]??o.pop()??null}return!0}function Je(t,e,n){let{combinator:r,matchers:o}=e[e.length-1];if(r===tt){if(!St(t,o,n))return!1;let l=e.slice(0,-1);return l.length===0||Je(t,l,n)}let s=r===dr||r===et?z:D,i=t[s];if(!i)return!1;if(r===et||r===On){for(;i;){if(j(i)&&St(i,o,n)){let l=e.slice(0,-1);if(l.length===0||Je(i,l,n))return!0}i=i[s]}return!1}else{if(r===vn&&!j(i)){for(;i&&!j(i);)i=i[s];if(!i)return!1}if(!j(i)||!St(i,o,n))return!1;let l=e.slice(0,-1);return l.length===0||Je(i,l,n)}}function wn(t,e){return t.getAttributeNS(null,t.namespaceURI===_?H(e):e)}function St(t,e,n){if(!t)return!1;if(Array.isArray(e)){for(let i of e)if(St(t,i,n)===!1)return!1;return!0}let{type:r,name:o,value:s}=e;switch(r){case fr:return o==="*";case mr:return t.namespaceURI===_?t.localName===H(o):t.localName===o;case Ot:return wn(t,"id")===o;case vt:let i=wn(t,"class");return i?pt(i).includes(o):!1;case pr:let l=wn(t,o);return s==null?l!=null:l===s;case gr:return t===n;case Sn:W(`:${o}`);case hr:switch(o){case"has":return Oo(t,s||"");case"not":return!So(t,s||"");default:W(`:${o}(${s})`)}}return!1}function vo(t){return t.nodeType===ke}function rt(t){return K in t}function Rn(t){return t.nodeType===De}function xo(t){return t.nodeType===Le}function j(t){return t.nodeType===$}function An(t){return t.nodeType===he}function Nr(t){return"appendChild"in t}function Rt(t){let e=[],n=[t],r=new Set(n),o=new Set,s;for(;n.length>0;){let i=n.pop();if(r.delete(i),o.has(i))continue;let l=[];for(let c of st(i)){if(o.has(c)||(o.add(c),e.push(c),l.push(c),!j(c)))continue;let u=c[re];if(u)for(let g of u)o.has(g)||(o.add(g),e.push(g));let m=c[ie];m&&!o.has(m)&&!r.has(m)&&(r.add(m),n.push(m))}s??=l}return{nodes:e,treeNodes:s}}function ot(t,e){for(let n of t)n[k]=e}function yr(t,e){let n=t.constructor,r=new n(t.name,t.value,t.namespaceURI);return r[k]=e,r}function Er(t,e){if(Rn(t))return e.createTextNode(t.data);if(xo(t))return e.createComment(t.data);if(vo(t))return yr(t,e);if(j(t)){let n=e[Ie](t[O],t.namespaceURI,t[fe],t.localName);if(t[re])for(let r=0;r<t[re].length;r++){let o=t[re].item(r);n.attributes.setNamedItem(yr(o,e))}return n}else{if(An(t))return e.createDocumentFragment();{let n=new t.constructor;return n[k]=e,n}}}function _t(t,e,n=t.ownerDocument){if(t.nodeType===Se)throw M("Cannot clone a document node","NotSupportedError");let r=Er(t,n);if(!e||!j(t)&&!An(t))return r;let o=new Set([t]),s=[{source:t,destination:r,childIndex:0,cloningContent:!1}];for(;s.length>0;){let i=s[s.length-1],l,c;if(i.cloningContent)if(i.contentSource&&i.contentDestination)l=i.contentSource.childNodes[i.childIndex++],c=i.contentDestination;else{s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}else if(l=i.source.childNodes[i.childIndex++],c=i.destination,!l){if(i.cloningContent=!0,i.childIndex=0,j(i.source)&&i.source.namespaceURI===_&&i.source.localName==="template"){let m=i.source[ie];m&&(o.has(m)&&br(),o.add(m),i.contentSource=m,i.contentDestination=i.destination.content)}continue}if(!l){s.pop(),i.appendTo&&i.appendTo.appendChild(i.destination);continue}o.has(l)&&br(),o.add(l);let u=Er(l,n);j(l)||An(l)?s.push({source:l,destination:u,appendTo:c,childIndex:0,cloningContent:!1}):c.appendChild(u)}return r}function br(){throw new Error("Cannot clone a cyclic or repeated node graph")}function Pt(t,e){let n=String(e);return n===""?null:xt(t,[{type:Ot,name:n}])}function Mt(t,e){let n=[...new Set(pt(String(e)))];return At(t,n.map(r=>({type:vt,name:r})))}function Ct(t,e){let n=String(e),r=H(n),o=[];for(let s of It(t))j(s)&&(n==="*"||(s.namespaceURI===_?s[O]===r:s[O]===n))&&o.push(s);return o}function It(t){let e=[],n=[],r=t[R];for(;r;){e.push(r);let o=r[R],s=r[p];o?(s&&n.push(s),r=o):r=s??n.pop()??null}return e}function st(t){let e=It(t);return e.unshift(t),e}var J=class extends ge{nodeType=nr;[O]="";[z]=null;[pe]=null;[R]=null;[D]=null;[p]=null;[B]=!1;get[L](){return this[k].defaultView[we]}get localName(){return this[O]}get nodeName(){return this[O]}get ownerDocument(){return this[k]}get isConnected(){return this[B]}isDefaultNamespace(e){let n=ae(e);return Ao(this)===n}get parentNode(){return this[z]}set parentNode(e){}get parentElement(){let e=this[z];return!e||e.nodeType!==1?null:e}set parentElement(e){}get previousSibling(){return this[D]}set previousSibling(e){}get nextSibling(){return this[p]}set nextSibling(e){}get previousElementSibling(){let e=this[D];for(;e&&e.nodeType!==1;)e=e[D];return e}set previousElementSibling(e){}get nextElementSibling(){let e=this[p];for(;e&&e.nodeType!==1;)e=e[p];return e}set nextElementSibling(e){}get firstChild(){return this[R]}set firstChild(e){}get lastChild(){let e=this[R];for(;e;){let n=e[p];if(n==null)break;e=n}return e}set lastChild(e){}get nodeValue(){return rt(this)?this.data:null}set nodeValue(e){rt(this)&&(this.data=e)}get textContent(){if(rt(this))return this.data;let e="";for(let n of It(this))Rn(n)&&(e+=n.data);return e}set textContent(e){if(rt(this))this.data=e;else if(Nr(this)){let n=e==null?"":String(e);n===""?this.replaceChildren():this.replaceChildren(n)}}cloneNode(e){return _t(this,e)}contains(e){let n=e;for(;n!=null;){if(n===this)return!0;n=n.parentNode}return!1}};function Ao(t){let e=t;for(;e;)switch(e.nodeType){case $:{let n=e;if(n.prefix==null&&n.namespaceURI!=null)return n.namespaceURI;let r=n.attributes.getNamedItemNS($e,"xmlns");if(r!=null&&r.prefix==null)return ae(r.value);e=n.parentElement;break}case Se:e=e.documentElement;break;case rr:case he:return null;case ke:e=e.ownerElement;break;default:e=e.parentElement}return null}var ee=Symbol("insertNode"),Mn=Symbol("preflightInsertions"),kt=Symbol("replaceNode"),ye=class extends J{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let n=ve(e),r=this.parentNode;if(r)return _n(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Pn(r,n,o);this.parentNode===r?r[kt](i,this,o):r[ee](i,s,o)})}before(...e){let n=ve(e),r=this.parentNode;if(r)return _n(o=>{le(r,n);let s=this[D];for(;s&&n.includes(s);)s=s[D];let i=Pn(r,n,o);r[ee](i,s?s[p]:r.firstChild,o)})}after(...e){let n=ve(e),r=this.parentNode;if(r)return _n(o=>{le(r,n);let s=this[p];for(;s&&n.includes(s);)s=s[p];let i=Pn(r,n,o);r[ee](i,s,o)})}};function _n(t){return F(()=>{let e=[];try{t(e)}catch(n){try{Oe(e)}catch{}throw n}Oe(e)})}function ve(t){return t.map(e=>e instanceof J?e:String(e))}function it(t,e){return e instanceof J?e:t.ownerDocument.createTextNode(String(e))}function le(t,e){for(let n of e){if(!(n instanceof J))continue;let r=t;for(;r;){if(r===n)throw M("Cannot insert a node into itself or one of its descendants","HierarchyRequestError");r=r[z]??r[pe]}}}function Pn(t,e,n){let r=[];for(let s of e)r.push(it(t,s));if(r.length===1)return r[0];let o=t.ownerDocument.createDocumentFragment();o[Mn](r);for(let s of r)o[ee](s,null,n);return o}var Dt,Cn=0,Tr=0,wr=0,Sr=0,Ge=!1,kn=!1,at=!1,Lt=class{#t;#n=[];#e=new Set;#r=!1;constructor(e){if(typeof e!="function")throw new TypeError("MutationObserver callback must be a function");this.#t=e}observe(e,n={}){let r=Ro(n),o=Dt??=new WeakMap,s=o.get(e);s==null&&(s=new Map,o.set(e,s));let i=s.get(this);i==null?Cn++:In(i,-1),s.set(this,r),In(r,1),this.#e.add(e)}disconnect(){let e=Dt;if(e!=null){for(let n of this.#e){let r=e.get(n),o=r?.get(this);o!=null&&(r.delete(this),Cn--,In(o,-1)),r?.size===0&&e.delete(n)}this.#e.clear(),this.#n.length=0,Cn===0&&(Dt=void 0)}}takeRecords(){return this.#n.splice(0)}enqueue(e){this.#n.push(e),!this.#r&&(this.#r=!0,queueMicrotask(()=>{this.#r=!1;let n=this.takeRecords();n.length>0&&this.#t.call(this,n,this)}))}};function te(t){let e=Dt;if(e==null)return;let n=new Map,r=t.target;for(;r;){let o=e.get(r);if(o)for(let[s,i]of o){if(r!==t.target&&!i.subtree)continue;let l=!1;if(t.type==="attributes"){if(!i.attributes||i.attributeFilter&&!i.attributeFilter.has(t.attributeName??""))continue;l=i.attributeOldValue}else if(t.type==="characterData"){if(!i.characterData)continue;l=i.characterDataOldValue}else if(!i.childList)continue;n.set(s,n.get(s)===!0||l)}r=r.parentNode}for(let[o,s]of n)o.enqueue({addedNodes:t.addedNodes??new Q,attributeName:t.attributeName??null,attributeNamespace:t.attributeNamespace??null,nextSibling:t.nextSibling??null,oldValue:s?t.oldValue??null:null,previousSibling:t.previousSibling??null,removedNodes:t.removedNodes??new Q,target:t.target,type:t.type})}function Gt(...t){let e=new Q;return e.push(...t),e}function Ro(t){if(t.attributes===!1&&(t.attributeOldValue||t.attributeFilter!=null))throw new TypeError("attributeOldValue and attributeFilter require attributes to be enabled");if(t.characterData===!1&&t.characterDataOldValue)throw new TypeError("characterDataOldValue requires characterData to be enabled");let e=t.attributes??(t.attributeOldValue===!0||t.attributeFilter!=null),n=t.characterData??t.characterDataOldValue===!0,r=t.childList===!0;if(!e&&!n&&!r)throw new TypeError("MutationObserver options must enable childList, attributes, or characterData");return{attributes:e,attributeFilter:t.attributeFilter==null?void 0:new Set(t.attributeFilter.map(String)),attributeOldValue:t.attributeOldValue===!0,characterData:n,characterDataOldValue:t.characterDataOldValue===!0,childList:r,subtree:t.subtree===!0}}function In(t,e){t.attributes&&(Tr+=e),t.characterData&&(wr+=e),t.childList&&(Sr+=e),Ge=Tr>0,kn=wr>0,at=Sr>0}var oe=class extends ye{childNodes=new Q;children=new Q;appendChild(e){return F(()=>this[ee](e,null))}insertBefore(e,n){return F(()=>this[ee](e,n||null))}append(...e){return F(()=>{let n=ve(e.filter(r=>r!=null));n.length>1&&le(this,n);for(let r of n)this[ee](it(this,r),null)})}prepend(...e){return F(()=>{let n=ve(e.filter(o=>o!=null));n.length>1&&le(this,n);let r=this.firstChild;for(let o of n)this[ee](it(this,o),r)})}replaceChildren(...e){return F(()=>{let n=ve(e.filter(o=>o!=null));le(this,n);let r;for(;r=this.firstChild;)this.removeChildImmediately(r);for(let o of n)this[ee](it(this,o),null)})}removeChild(e){return F(()=>(this.removeChildImmediately(e),e))}removeChildImmediately(e){if(e.parentNode!==this)throw M("The node is not a child of this node","NotFoundError");let n=this[B]?st(e):void 0,r=e[D],o=e[p],s=Ht(this,e);if(n)for(let i of n)i[B]=!1;this.queueRemovalMutationRecord(this,e,r,o),n&&this.enqueueTreeReactions(n,"disconnectedCallback"),Oe(this.collectRemovalHookEffects(e,s))}replaceChild(e,n){return F(()=>this[kt](e,n))}[kt](e,n,r){if(le(this,[e]),n.parentNode!==this)throw M("The reference node is not a child of this parent","NotFoundError");let o=n[D],s=n[p],i=this.prepareInsertion(e),l=this[B]?st(n):void 0,c=new Set(i.map(({node:y})=>y)),u=s;for(;u&&c.has(u);)u=u[p];let m=Ht(this,n);if(l){for(let E of l)E[B]=!1;let y=new Set(l);for(let E of i)y.has(E.node)&&(E.shouldDisconnect=!1)}this.commitInsertion(i,u);let g=this[B];return this.queueRemovalMutationRecord(this,n,o,s),this.queueInsertionMutationRecords(i),l&&this.enqueueTreeReactions(l,"disconnectedCallback"),this.enqueueInsertionReactions(i,g),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(n,m),...this.collectInsertionHookEffects(i)],r),n}querySelectorAll(e){return At(this,e)}querySelector(e){return xt(this,e)}[ee](e,n,r){return this.validateInsertion(e,n),this.insertIntoValidated(e,n,r),e}[Mn](e){for(let n of e)this.validateInsertion(n,null),this.prepareInsertion(n)}validateInsertion(e,n){if(le(this,[e]),n&&n.parentNode!==this)throw M("The reference node is not a child of this parent","NotFoundError")}insertIntoValidated(e,n,r){e===n&&(n=e[p]);let o=this.prepareInsertion(e);this.commitInsertion(o,n);let s=this[B];this.queueInsertionMutationRecords(o),this.enqueueInsertionReactions(o,s),this.performOrCollectHookEffects(this.collectInsertionHookEffects(o),r)}performOrCollectHookEffects(e,n){n?n.push(...e):Oe(e)}prepareInsertion(e){let n=[];if(e.nodeType===he){let i=e[R];for(;i;)n.push(i),i=i[p]}else n.push(e);let r=this[B],o=this[k],s=[];for(let i of n){let l=i[B],c=l||r,u,m;if(i[k]===o)c&&(u=st(i));else{let g=Rt(i);m=g.nodes,c&&(u=g.treeNodes)}s.push({node:i,nodes:u,adoption:m,shouldDisconnect:l})}return s}commitInsertion(e,n){for(let s of e){let i=s.node[z];if(i){let l=s.node[D],c=s.node[p];s.source={parent:i,index:Ht(i,s.node),previousSibling:l,nextSibling:c}}}for(let s of e){let i=this.attachChild(s.node,n);s.insertIndex=i.index,s.previousSibling=i.previousSibling,s.nextSibling=i.nextSibling}let r=this[k];for(let{adoption:s}of e)s&&ot(s,r);let o=this[B];for(let{nodes:s}of e)if(s)for(let i of s)i[B]=o}attachChild(e,n){if(n){let s=n[D];e[p]=n,e[D]=s,s?s[p]=e:this[R]=e,n[D]=e}else{e[p]=null;let s=this[R];if(s){let i;for(;i=s[p];)s=i;s[p]=e,e[D]=s}else this[R]=e,e[D]=null}let r=j(e);e[z]=this;let o;if(n){if(o=this.childNodes.indexOf(n),this.childNodes.splice(o,0,e),r){let s=n;for(;s&&!j(s);)s=s[p];s?this.children.splice(this.children.indexOf(s),0,e):this.children.push(e)}}else o=this.childNodes.length,this.childNodes.push(e),r&&this.children.push(e);return{index:o,previousSibling:e[D],nextSibling:e[p]}}queueRemovalMutationRecord(e,n,r,o){at&&te({type:"childList",target:e,removedNodes:Gt(n),previousSibling:r,nextSibling:o})}queueInsertionMutationRecords(e){if(at)for(let n of e){let{node:r,source:o}=n;o&&this.queueRemovalMutationRecord(o.parent,r,o.previousSibling,o.nextSibling),te({type:"childList",target:this,addedNodes:Gt(r),previousSibling:n.previousSibling,nextSibling:n.nextSibling})}}collectRemovalHookEffects(e,n){return this.nodeType!==$||Ze(this)?[]:[[()=>this[L].removeChild?.(this,e,n)]]}collectInsertionHookEffects(e){let n=[];for(let r of e){let{node:o,source:s}=r;s?.parent.nodeType===$&&!Ze(s.parent)&&n.push([()=>s.parent[L].removeChild?.(s.parent,o,s.index)]),this.nodeType===$&&!Ze(this)&&n.push([()=>this[L].insertChild?.(this,o,r.insertIndex),o])}return n}enqueueInsertionReactions(e,n){for(let r of e){let{nodes:o}=r;o&&(r.shouldDisconnect&&this.enqueueTreeReactions(o,"disconnectedCallback"),n&&this.enqueueTreeReactions(o,"connectedCallback"))}}enqueueTreeReactions(e,n){vr(e,n)}};function Or(t,e,n,r){if(e.parentNode!==t)throw Error("not a child of this node");let o=t[B]?n.treeNodes:void 0,s=e[D],i=e[p],l=Ht(t,e);if(o)for(let u of o)u[B]=!1;ot(n.nodes,r),at&&te({type:"childList",target:t,removedNodes:Gt(e),previousSibling:s,nextSibling:i}),o&&vr(o,"disconnectedCallback");let c=[];t.nodeType===$&&!Ze(t)&&c.push([()=>t[L].removeChild?.(t,e,l)]),Oe(c)}function Ht(t,e){let n=e[D],r=e[p];n?n[p]=r:t[R]=r,r&&(r[D]=n);let o=t.childNodes.indexOf(e);return t.childNodes.splice(o,1),j(e)&&t.children.splice(t.children.indexOf(e),1),e[z]=null,e[p]=null,e[D]=null,o}function vr(t,e){for(let n of t){let r=n[e];typeof r=="function"&&bt(n,()=>r.call(n))}}function lt(t,e,n,r,o){let{observedAttributes:s}=t.constructor,{attributeChangedCallback:i}=t;i==null||s==null||!s.includes(e)||bt(t,()=>i.call(t,e,n,r,o))}var Ut=class{[R]=null;constructor(e){this[Y]=e}getNamedItem(e){let n=String(e),r=this[Y][v]===_?H(n):n,o=this[R];for(;o;){if(o.name===r)return o;o=o[p]}return null}getNamedItemNS(e,n){let r=ae(e),o=String(n),s=this[R];for(;s;){if(s.localName===o&&s[v]===r)return s;s=s[p]}return null}item(e){let n=this[R],r=0;for(;n;){if(r++===e)return n;n=n[p]}return null}get length(){let e=0,n=this[R];for(;n;)e++,n=n[p];return e}removeNamedItem(e){let n=String(e),r=this[Y][v]===_?H(n):n;return F(()=>this.removeNamedItemImmediately(o=>o.name===r))}removeNamedItemNS(e,n){let r=ae(e),o=String(n);return F(()=>this.removeNamedItemImmediately(s=>s.localName===o&&s[v]===r))}removeNamedItemImmediately(e){let n=this[Y],r=this[R],o=null;for(;r!=null;){if(e(r)){o&&(o[p]=r[p]),this[R]===r&&(this[R]=r[p]);let s=r.value;return r[p]=null,r[Y]=null,Ge&&te({type:"attributes",target:n,attributeName:r.name,attributeNamespace:r[v],oldValue:s}),n[L].removeAttribute?.(n,r.name,r[v]),lt(n,r.localName,s,null,r[v]),r}o=r,r=r[p]}return null}setNamedItem(e){return F(()=>this.setNamedItemImmediately(e))}setNamedItemImmediately(e){let n=this[Y],r=e[Y];if(r!=null&&r!==n)throw M("The attribute is already in use by another element.","InUseAttributeError");let o=null,s=this[R],i=null;for(;s;){if(s.localName===e.localName&&s[v]===e[v]){if(s===e)return s;i?i[p]=e:this[R]=e,e[p]=s[p],s[p]=null,o=s;break}i=s,s=s[p]}o==null&&(i?i[p]=e:this[R]=e),e[Y]=n,e[k]=n[k],o&&(o[Y]=null);let l=o==null||o.value!==e.value,c=o!=null&&o.name!==e.name;return l&&Ge&&te({type:"attributes",target:n,attributeName:e.name,attributeNamespace:e[v],oldValue:o?.value??null}),c&&n[L].removeAttribute?.(n,o.name,o[v]),(l||c)&&n[L].setAttribute?.(n,e.name,e.value,e[v]),l&&lt(n,e.localName,o?.value??null,e.value,e[v]),o}setNamedItemNS(e){return this.setNamedItem(e)}*[Symbol.iterator](){let e=this[R];for(;e;)yield e,e=e[p]}};var xe=class extends J{nodeType=ke;[v]=null;[p]=null;[Y]=null;constructor(e,n,r){super(),this[O]=e,this[me]=n,r&&(this[v]=r)}get nodeName(){return this[O]}set nodeName(e){}get name(){return this[O]}set name(e){}get localName(){if(this[v]==null)return this[O];let e=this[O].indexOf(":");return e<0?this[O]:this[O].slice(e+1)}get prefix(){if(this[v]==null)return null;let e=this[O].indexOf(":");return e<0?null:this[O].slice(0,e)}get value(){return this[me]}set value(e){let n=String(e),r=this[Y];if(!r){this[me]=n;return}F(()=>{let o=this[me];this[me]=n,Ge&&o!==n&&te({type:"attributes",target:r,attributeName:this[O],attributeNamespace:this[v],oldValue:o}),this[L].setAttribute?.(r,this[O],n,this[v]),lt(r,this.localName,o,n,this[v])})}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[Y]}get namespaceURI(){return this[v]}get specified(){return!0}};var _o={amp:"&",AMP:"&",apos:"\'",gt:">",GT:">",lt:"<",LT:"<",quot:\'"\',QUOT:\'"\'},Po=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Mo=/(?:<([a-z][a-z0-9-:]*)((?:[\\s]+[^<>\'"=/\\s]+(?:=([\'"])[^]*?\\3|=[^>\'"\\s]*|))*)[\\s]*(\\/?)\\s*>|<\\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^<>]+))/gi,Rr=/\\s([^<>\'"=/\\n\\s]+)(?:=(["\'])([\\s\\S]*?)\\2|=([^>\'"\\n\\s]*)|)/g,Co="|b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h1|h2|h3|h4|h5|h6|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var|",Io=/^(?:color|face|size)$/i;function xr(t){return t.replace(/&(?:(amp|AMP|apos|gt|GT|lt|LT|quot|QUOT)|#(\\d+)|#[xX]([\\da-fA-F]+));/g,(e,n,r,o)=>{if(n)return _o[n];let s=Number.parseInt(r??o,r?10:16);try{return String.fromCodePoint(s)}catch{return e}})}function _r(t){return t.namespaceURI===_&&Po.has(t.localName)}function Ar(t){let e=t.localName;return t[v]===Z&&(e==="foreignObject"||e==="desc"||e==="title")}function ko(t,e){if(Co.includes(`|${t}|`))return!0;if(t!=="font")return!1;for(let n of e.matchAll(Rr))if(Io.test(n[1]))return!0;return!1}function Bt(t,e){let n=e.ownerDocument,r=n.createDocumentFragment(),o=[],s=r;for(let i of t.matchAll(Mo)){let l=i[1];if(l){let c=i[2],u=H(l),m=o[o.length-1]?.element??e,g=m[v]===Z?Z:_;if(u==="svg")g=Z;else if(g===Z){if(Ar(m))g=_;else if(ko(u,c)){for(;o.length>0;){let x=o[o.length-1];if(x.element[v]!==Z||Ar(x.element))break;o.pop(),s=x.target}g=_}}let y=g===_?u:l,E=n[Ie](y,g,null,y);for(let x of c.matchAll(Rr))E.setAttribute(x[1],xr(x[3]||x[4]||""));if(s.append(E),_r(E)||g!==_&&i[4])continue;o.push({element:E,target:s}),s=g===_&&u==="template"?E.content:E}else if(i[5]){let c=H(i[5]);for(let u=o.length-1;u>=0;u--){let m=o[u],g=H(m.element[O]);if(g===c){s=m.target,o.length=u;break}if(m.element[v]===_&&g==="template")break}}else i[6]?s.append(n.createComment(i[6])):s.append(xr(i[7]))}return r}function Vt(t){return Mr([{type:"content",child:t[R]}])}function Pr(t){return Mr([{type:"opening",node:t}])}function Mr(t){let e=[],n;for(;n=t.pop();)switch(n.type){case"opening":{let r=n.node;switch(r.nodeType){case $:{let o=r;e.push(`<${o[O]}`);let s=o[re]?.[R];for(;s;){e.push(` ${s[O]}`);let l=s[me];l!==""&&(l=String(l).replace(/&/g,"&amp;").replace(/"/g,"&quot;"),e.push(`="${l}"`)),s=s[p]}if(e.push(">"),_r(o))break;let i=o.namespaceURI===_&&o.localName==="template"?o[ie]:o;t.push({type:"closing",name:o[O]}),t.push({type:"content",child:i?.[R]??null});break}case De:{let o=r;e.push(o[K].replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"));break}case Le:{let o=r;e.push(`<!--${o[K]}-->`);break}}break}case"content":{let r=n.child;r&&(t.push({type:"content",child:r[p]}),t.push({type:"opening",node:r}));break}case"closing":e.push(`</${n.name}>`);break}return e.join("")}var U=class extends oe{nodeType=$;[v]=_;[fe]=null;get namespaceURI(){return this[v]}get prefix(){return this[fe]}get localName(){let e=this[fe];return e==null?this[O]:this[O].slice(e.length+1)}get nodeName(){return this[v]===_?sr(this[O]):this[O]}get tagName(){return this.nodeName}get id(){return this.getAttributeNS(null,"id")??""}set id(e){this.setAttribute("id",String(e))}get slot(){return this.getAttributeNS(null,"slot")??""}set slot(e){let n=String(e);this.getAttributeNS(null,"slot")!==n&&this.attributes.setNamedItem(new xe("slot",n))}get attributes(){let e=this[re];return e||(e=new Ut(this),this[re]=e),e}getAttributeNames(){return[...this.attributes].map(e=>e.name)}getElementsByTagName(e){return Ct(this,e)}get firstElementChild(){return this.children[0]??null}getElementsByClassName(e){return Mt(this,e)}get lastElementChild(){return this.children[this.children.length-1]??null}get nextElementSibling(){let e=this.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}get previousElementSibling(){let e=this.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}setAttribute(e,n){let r=String(e),o=String(n);gn(r);let s=this[v]===_?H(r):r,i=this.attributes.getNamedItemNS(null,s);i?i.value=o:this.attributes.setNamedItem(new xe(s,o))}setAttributeNS(e,n,r){let o=ae(e),s=String(n),i=String(r),l=ht(o,s,"attribute"),c=this.attributes.getNamedItemNS(l.namespace,l.localName);c?c.value=i:this.attributes.setNamedItemNS(new xe(l.qualifiedName,i,l.namespace))}toggleAttribute(e,n){let r=String(e);gn(r);let o=this[v]===_?H(r):r,s=this.attributes.getNamedItemNS(null,o),i=n===void 0?void 0:!!n;return s==null?i===!1?!1:(this.attributes.setNamedItem(new xe(o,"")),!0):i===!0?!0:(this.attributes.removeNamedItemNS(null,o),!1)}getAttribute(e){let n=this.attributes.getNamedItem(e);return n&&n.value}getAttributeNS(e,n){let r=this.attributes.getNamedItemNS(e,n);return r&&r.value}hasAttribute(e){return this.attributes.getNamedItem(e)!=null}hasAttributeNS(e,n){return this.attributes.getNamedItemNS(e,n)!=null}removeAttribute(e){let n=String(e),r=this[v]===_?H(n):n;this.attributes.removeNamedItemNS(null,r)}removeAttributeNS(e,n){this.attributes.removeNamedItemNS(e,n)}get outerHTML(){return Pr(this)}get innerHTML(){return Vt(this)}set innerHTML(e){if(e==null||e==="")this.replaceChildren();else{let n=Bt(String(e),this);this.replaceChildren(n)}}};var He=class t extends U{[v]=Z;get ownerSVGElement(){let e=null,n=this.parentNode;for(;n instanceof t;)e=n,n=n.parentNode;return e}};var Ee=class extends ye{[K]="";constructor(e){super(),this[K]=e==null?"":String(e)}setData(e){let n=kn,r=n?this[K]:null,o="";e!=null&&(o=typeof e=="string"?e:String(e)),this[K]=o,n&&r!==o&&te({type:"characterData",target:this,oldValue:r}),this[L].setText?.(this,o)}get data(){return this[K]}set data(e){this.setData(e)}};var Ue=class extends Ee{nodeType=De;[O]="#text"};var Be=class extends Ee{nodeType=Le;[O]="#comment"};var Ve=class extends oe{nodeType=he;[O]="#document-fragment";[k]=typeof window<"u"?window.document:null;getElementById(e){return Pt(this,e)}};var Fe=class extends U{get content(){let e=this[ie];return e||(e=this.ownerDocument.createDocumentFragment(),e[pe]=this,this[ie]=e),e}set content(e){}set innerHTML(e){this.content.replaceChildren(Bt(String(e),this))}get innerHTML(){let e=this[ie];return e?Vt(e):""}};var Ft=class extends U{};var jt=class extends U{};var qt=class extends U{};var ct=class extends oe{nodeType=Se;[O]="#document";[B]=!0;constructor(e){super(),this.defaultView=e,this[k]=this,this.documentElement=zt(new qt,this,"html"),this.body=zt(new Ft,this,"body"),this.head=zt(new jt,this,"head"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}get textContent(){return null}set textContent(e){}getElementsByClassName(e){return Mt(this,e)}createElement(e){let n=String(e);return lr(n),Dn(this,H(n))}createElementNS(e,n){let r=ht(e,n,"element");return Dn(this,r.qualifiedName,r.namespace,r.prefix,r.localName)}[Ie](e,n,r,o){return Dn(this,e,n,r,o)}createTextNode(e){let n=Yt(new Ue(e),this);return this[L].createText?.(n,n.data),n}createComment(e){return Yt(new Be(e),this)}createDocumentFragment(){return Yt(new Ve,this)}createEvent(){return new V("")}getElementById(e){return Pt(this,e)}getElementsByTagName(e){return Ct(this,e)}importNode(e,n){if(e.nodeType===Se)throw M("Cannot import a document node","NotSupportedError");return _t(e,n,this)}adoptNode(e){if(e[k]===this)return e;let n=Rt(e);return F(()=>{let r=e.parentNode;return r?Or(r,e,n,this):ot(n.nodes,this),e})}};function Yt(t,e){return Object.defineProperty(t,k,{value:e,writable:!0,enumerable:!1}),t}function Dn(t,e,n=_,r=null,o=e){let s;if(n===Z)s=new He;else if(n===_&&o==="template")s=new Fe;else if(n===_){let i=t.defaultView.customElements.get(o);s=i?new i:new U}else s=new U;return zt(s,t,e,n,r)}function zt(t,e,n,r=_,o=null){return Yt(t,e),Object.defineProperties(t,{[O]:{value:n},[v]:{value:r},[fe]:{value:o}}),e[L].createElement?.(t,r),t}var Wt=class extends V{constructor(e,n){super(e,n),this.detail=n?.detail??null}initCustomEvent(e,n,r,o){super.initEvent(e,n,r),this.detail=o??null}};var $t=class extends V{constructor(e,n){super(e,n),this.message=n.message,this.filename=n.filename,this.lineno=n.lineno,this.colno=n.colno,this.error=n.error}};var Xt=class extends V{constructor(e,n){super(e,n),this.promise=n.promise,this.reason=n.reason}};var Kt=class extends V{constructor(e,n){super(e,n),this.oldState=n.oldState,this.newState=n.newState}};var Zt=class extends V{constructor(e,n={}){super(e,n),this.relatedTarget=n.relatedTarget??null}};var Qt=class extends V{constructor(e,n={}){super(e,n),this.clipboardData=n.clipboardData??null}};var Jt=class extends U{};var Do=/^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$/u,Lo=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function Cr(t){return Do.test(t)&&!Lo.has(t)}function Ir(t){return M(`Invalid custom element name: "${t}"`,"SyntaxError")}var en=class{registry=new Map;listenersByName=new Map;define(e,n,r){if(!Cr(e))throw Ir(e);if(this.registry.has(e))throw M(`A custom element named "${e}" has already been defined`,"NotSupportedError");if(this.getName(n)!=null)throw M("This constructor has already been registered in this custom element registry","NotSupportedError");this.registry.set(e,n);let o=this.listenersByName.get(e);if(o!=null){this.listenersByName.delete(e);for(let s of o)s(n)}}get(e){return this.registry.get(e)}getName(e){for(let[n,r]of this.registry)if(r===e)return n;return null}whenDefined(e){if(!Cr(e))return Promise.reject(Ir(e));let n=this.registry.get(e);if(n!=null)return Promise.resolve(n);let r=this.listenersByName.get(e);return r==null&&(r=[],this.listenersByName.set(e,r)),new Promise(o=>{r.push(o)})}upgrade(e){}initialize(e){}};var Go=["onerror","onunhandledrejection"],Dr=Symbol.for("@remote-dom/polyfill/global-property");function Lr(t){return Object.getOwnPropertyDescriptors(t)}function Gr(t){let e={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(ge.prototype)))n!=="constructor"&&typeof r.value=="function"&&(r.value=Ln(r.value.bind(t)),e[n]=r);return e}function Hr(t){let e={};for(let n of Go)e[n]={configurable:!0,enumerable:!0,get:Ln(()=>t[n]),set:Ln(r=>{t[n]=r})};return e}function Ho(t){return Object.assign(Lr(t),Gr(t),Hr(t))}function Ln(t){return Object.defineProperty(t,Dr,{value:!0}),t}function kr(t,e){for(let n of Reflect.ownKeys(e)){let r=Uo(t,n);(r==null||Bo(r))&&Object.defineProperty(t,n,e[n])}}function Uo(t,e){let n=t;for(;n;){let r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function Bo(t){return[t.value,t.get,t.set].some(e=>typeof e=="function"&&e[Dr]===!0)}var Ae=class extends ge{[L]={};[mt]=[];[we]=Fo(this);name="";window=this;parent=this;self=this;top=this;document=new ct(this);customElements=new en;location=globalThis.location;navigator=globalThis.navigator;Event=V;ErrorEvent=$t;PromiseRejectionEvent=Xt;ToggleEvent=Kt;FocusEvent=Zt;ClipboardEvent=Qt;EventTarget=ge;CustomEvent=Wt;Node=J;ParentNode=oe;ChildNode=ye;DocumentFragment=Ve;Document=ct;CharacterData=Ee;Comment=Be;Text=Ue;Element=U;HTMLElement=Jt;SVGElement=He;HTMLTemplateElement=Fe;MutationObserver=Lt;#t=null;#n=null;#e=null;static with(...e){let n=this;return class extends n{constructor(){super();for(let o of e)Vo(this,o)}}}get onerror(){return this.#n}set onerror(e){this.#t&&this.removeEventListener("error",this.#t),e&&typeof e=="function"?(this.#n=e,this.#t=n=>{e(n.message??"Error",n.filename,n.lineno,n.colno,n.error)},this.addEventListener("error",this.#t)):(this.#t=null,this.#n=null)}get onunhandledrejection(){return this.#e}set onunhandledrejection(e){this.#e&&this.removeEventListener("unhandledrejection",this.#e),e&&typeof e=="function"?(this.#e=e,this.addEventListener("unhandledrejection",this.#e)):this.#e=null}static setGlobal(e){let n=globalThis.self,r=globalThis.window,o=Lr(e),s=Object.assign(Gr(e),Hr(e));delete o.self,Object.defineProperties(globalThis,o),kr(globalThis,s),typeof n>"u"||n===r&&n!==globalThis?Object.defineProperty(globalThis,"self",{value:e,configurable:!0,writable:!0,enumerable:!0}):n!==globalThis&&(Object.defineProperties(n,o),kr(n,s))}static setGlobalThis(e){for(let n in e)e[n]===e&&(e[n]=globalThis);Object.defineProperties(globalThis,Ho(e))}};function Vo(t,e){t[mt].push(e(t)??{})}function Fo(t){return{createElement:ce.bind(null,t,"createElement"),setAttribute:ce.bind(null,t,"setAttribute"),removeAttribute:ce.bind(null,t,"removeAttribute"),createText:ce.bind(null,t,"createText"),setText:ce.bind(null,t,"setText"),insertChild:ce.bind(null,t,"insertChild"),removeChild:ce.bind(null,t,"removeChild"),addEventListener:ce.bind(null,t,"addEventListener"),removeEventListener:ce.bind(null,t,"removeEventListener")}}function ce(t,e,...n){for(let s of t[mt])s[e]?.apply(s,n);let r=t[L];r[e]?.apply(r,n)}var tn=new Ae;var Gn="~";var be=new WeakMap;function je(t){return be.get(t)}var Vn=new WeakMap,qo=0;function X(t){let e=Vn.get(t);return e==null&&(e=String(qo++),nn(t,e)),e}function nn(t,e){Vn.set(t,e)}var Un=new WeakMap;function Yo(t){return Un.get(t)}var Bn=new WeakMap;function zo(t){let e=Bn.get(t);if(e!=null)return e;if(!(!(t instanceof Element)||t.tagName.includes("-"))){e={};for(let{name:n,value:r}of t.attributes)e[n]=r;return e}}var Wo=new WeakMap;function $o(t){return Wo.get(t)}function Fn(t,e,n){let r=Un.get(t);if(r==null&&(r={},Un.set(t,r)),r[e]===n)return;r[e]=n;let o=be.get(t);o?.mutate([[3,X(t),e,n,1]])}function Ne(t,e,n){let r=Bn.get(t);if(r==null&&(r={},Bn.set(t,r)),r[e]===n)return;n==null?delete r[e]:r[e]=String(n);let o=be.get(t);o?.mutate([[3,X(t),e,n,2]])}function qe(t,e){if(be.get(t)!==e&&(be.set(t,e),t.childNodes))for(let r=0;r<t.childNodes.length;r++)qe(t.childNodes[r],e)}function rn(t){if(be.get(t)!=null&&(be.delete(t),t.childNodes))for(let n=0;n<t.childNodes.length;n++)rn(t.childNodes[n])}function Ye(t){let{nodeType:e}=t;switch(e){case 1:return{id:X(t),type:e,element:t.localName,properties:Hn(Yo(t)),attributes:Hn(zo(t)),eventListeners:Hn($o(t)),children:Array.from(t.childNodes).map(Ye)};case 3:case 8:return{id:X(t),type:e,data:t.data};default:throw new Error(`Cannot serialize node of type ${t.nodeType} (${typeof t.nodeType})`)}}function Hn(t){return t?{...t}:void 0}function jn(t,e,...n){let r=Vn.get(t),o=be.get(t);if(r==null||o==null)throw new Error(`Cannot call method ${e} on an unconnected node`);return o.call(r,e,...n)}var ze=tn[L];ze.insertChild=(t,e,n)=>{let r=je(t);r!=null&&(qe(e,r),r.mutate([[0,X(t),Ye(e),n]]))};ze.removeChild=(t,e,n)=>{let r=je(t);r!=null&&(rn(e),r.mutate([[1,X(t),n]]))};ze.setText=(t,e)=>{let n=je(t);n?.mutate([[2,X(t),e]])};ze.setAttribute=(t,e,n)=>{t.tagName.includes("-")||Ne(t,e,n)};ze.removeAttribute=(t,e)=>{t.tagName.includes("-")||Ne(t,e)};Ae.setGlobal(tn);function on(t){if(typeof t=="string")return{type:"navigate",to:t};let{place:e,record:n,where:r,section:o}=t??{},s={...r===void 0?{}:{where:r},...o===void 0?{}:{section:String(o)}};return typeof e=="string"?{type:"navigate",place:e,...s}:typeof n=="string"?{type:"navigate",to:n,...s}:void 0}var Br=["wheel","drag","pinch"];function Vr(t){let e=t;return typeof t=="object"&&t!==null&&e.graview==="host-hello"&&typeof e.nonce=="string"}function jr(t,e={}){let n,r="",o,s=0,i=new Set,l=new Map,c=[],u=N=>{n?n.postMessage({...N,nonce:r}):c.push(N)},m=N=>{let w=N.data;if(!(!w||typeof w!="object")){if(w.type==="props"){o=w.props;for(let C of i)C(w.props)}else w.type==="answer"?(l.get(w.id)?.(w),l.delete(w.id)):w.type==="event"&&typeof w.listener=="number"?e.onEvent?.(w):w.type==="heartbeat"&&typeof w.beat=="number"&&u({type:"heartbeat",beat:w.beat});e.onMessage?.(w)}},g=()=>{},y=N=>{if(n||!t.fromHost(N)||!Vr(N.data)||N.data.protocol!==1)return;let w=N.ports[0];if(w){n=w,r=N.data.nonce,n.onmessage=m,n.start?.(),g();for(let C of c.splice(0))u(C)}};g=t.listen(y),t.ready({graview:"guest-ready",protocol:1});let E,x={get props(){return o},subscribe(N){return i.add(N),()=>i.delete(N)},act(N,w={}){let C=s+=1;return new Promise(I=>{l.set(C,I),u({type:"act",id:C,name:N,args:w})})},navigate(N){let w=on(N);w&&u(w)},size(N){u({type:"size",height:N})},autoSize(N){let w=N??globalThis.document?.documentElement,C=globalThis.ResizeObserver;if(!w||!C||typeof w.getBoundingClientRect!="function")return()=>{};E?.disconnect();let I=new C(()=>x.size(Math.ceil(w.getBoundingClientRect().height)));return I.observe(w),E=I,()=>I.disconnect()},close(){E?.disconnect(),g(),n?.close(),i.clear()}};return{guest:x,send:u}}var Yr=["globalThis","Infinity","NaN","undefined","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape","Object","Function","Array","Number","Boolean","String","Symbol","BigInt","Date","Promise","RegExp","Math","JSON","Reflect","Proxy","Intl","Error","AggregateError","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","SuppressedError","Map","Set","WeakMap","WeakSet","WeakRef","FinalizationRegistry","Iterator","AsyncIterator","DisposableStack","AsyncDisposableStack","ArrayBuffer","SharedArrayBuffer","DataView","Atomics","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float16Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"],zr=["window","parent","top","document","customElements","Event","ErrorEvent","PromiseRejectionEvent","ToggleEvent","FocusEvent","ClipboardEvent","CustomEvent","EventTarget","Node","ParentNode","ChildNode","DocumentFragment","Document","CharacterData","Comment","Text","Element","HTMLElement","SVGElement","HTMLTemplateElement","MutationObserver"],Wr=["self","postMessage","setTimeout","clearTimeout","setInterval","clearInterval","queueMicrotask","structuredClone","crypto","console","DOMException"],$r=["TEMPORARY","PERSISTENT"],xl=Object.freeze([...Yr,...zr,...Wr,...$r]),Al=Object.freeze(["constructor","__defineGetter__","__defineSetter__","hasOwnProperty","__lookupGetter__","__lookupSetter__","isPrototypeOf","propertyIsEnumerable","toString","valueOf","__proto__","toLocaleString"]),qr=t=>typeof t=="symbol"?`[${t.description??"symbol"}]`:t;function Xr(t=globalThis,e=[],n={}){let r=[],o=[],s=new Set([...Yr,...zr,...Wr,...e,"constructor",Symbol.toStringTag]),i=(S,P)=>{let q=Reflect.getOwnPropertyDescriptor(S,P);return q===void 0||!("value"in q)||q.writable||q.configurable?!1:n.primitivesStay&&typeof P=="symbol"&&(typeof q.value!="object"||q.value===null)&&typeof q.value!="function"?!0:$r.includes(P)&&typeof q.value=="number"},l=t,c=l.setTimeout,u=l.setInterval,m=l.crypto,g=(S,P)=>function(q,dt,...ft){if(typeof q!="function")throw new TypeError(`${P} takes a function: a guest view cannot run code from text`);return S.call(t,q,dt,...ft)},y=m?Object.freeze({getRandomValues:S=>m.getRandomValues(S)}):void 0,E=l.document?.defaultView;if(E&&E!==l)for(let S of Reflect.ownKeys(E))typeof S=="symbol"||s.has(S)||Reflect.deleteProperty(E,S)||o.push(`window.${S}`);let x=[];for(let S=t;S&&S!==Object.prototype;S=Object.getPrototypeOf(S))x.push(S);for(let S of x)for(let P of Reflect.ownKeys(S))s.has(P)||(Reflect.deleteProperty(S,P)?r.push(qr(P)):i(S,P)||o.push(qr(P)));let N=()=>function(){throw new EvalError("A guest view cannot make code from text.")},w=[Function.prototype,Object.getPrototypeOf(async function(){}),Object.getPrototypeOf(function*(){}),Object.getPrototypeOf(async function*(){})];for(let S of w){let P=N();Object.defineProperty(P,"prototype",{value:S,writable:!1,enumerable:!1,configurable:!1}),Reflect.defineProperty(S,"constructor",{value:P,writable:!1,enumerable:!1,configurable:!1})||o.push("Function.prototype.constructor"),S===Function.prototype&&Reflect.defineProperty(t,"Function",{value:P,writable:!0,enumerable:!1,configurable:!0})}let C=(S,P)=>{Reflect.defineProperty(t,S,{value:P,writable:!0,enumerable:!0,configurable:!0})||o.push(S)};C("setTimeout",g(c,"setTimeout")),C("setInterval",g(u,"setInterval")),y&&C("crypto",y);for(let S of x.slice(1))Object.freeze(S);for(let S of Reflect.ownKeys(t)){let P=Reflect.getOwnPropertyDescriptor(t,S);Reflect.defineProperty(t,S,"value"in P?{...P,writable:!1,configurable:!1}:{...P,configurable:!1})}let I;try{I=Reflect.preventExtensions(t)}catch{I=!1}return{removed:r,stuck:o,sealed:I}}var ut=class extends HTMLElement{constructor(){super(),nn(this,Gn)}connect(e){if(je(this)===e||(qe(this,e),this.childNodes.length===0))return;let n=[];for(let r=0;r<this.childNodes.length;r++){let o=this.childNodes[r];n.push([0,Gn,Ye(o),r])}e.mutate(n)}updateRemoteProperty(e,n){Fn(this,e,n)}callRemoteMethod(e,...n){return jn(this,e,...n)}};var f={},qn={empty:!0},Xo={id:"text",class:"text",title:"text",lang:"text",dir:{oneOf:["ltr","rtl","auto"]},hidden:"text",tabindex:{oneOf:["-1","0"]},role:"text",style:"style",translate:{oneOf:["yes","no"]},spellcheck:{oneOf:["true","false"]},draggable:{oneOf:["true","false"]},inert:"boolean"},Yn={div:f,section:f,article:f,aside:f,header:f,footer:f,nav:f,hgroup:f,search:f,address:f,figure:f,figcaption:f,blockquote:f,p:f,pre:f,hr:qn,br:qn,wbr:qn,h1:f,h2:f,h3:f,h4:f,h5:f,h6:f,span:f,strong:f,em:f,b:f,i:f,u:f,s:f,small:f,mark:f,abbr:f,cite:f,q:f,code:f,kbd:f,samp:f,var:f,sub:f,sup:f,dfn:f,bdi:f,bdo:f,ruby:f,rt:f,rp:f,time:{attributes:{datetime:"text"}},data:{attributes:{value:"text"}},del:{attributes:{datetime:"text"}},ins:{attributes:{datetime:"text"}},a:{attributes:{href:"link"}},ul:f,menu:f,dl:f,dt:f,dd:f,ol:{attributes:{start:"number",reversed:"boolean",type:{oneOf:["1","a","A","i","I"]}}},li:{attributes:{value:"number"}},table:f,caption:f,thead:f,tbody:f,tfoot:f,tr:f,colgroup:{attributes:{span:"number"}},col:{attributes:{span:"number"},empty:!0},th:{attributes:{colspan:"number",rowspan:"number",headers:"text",scope:{oneOf:["row","col","rowgroup","colgroup"]},abbr:"text"}},td:{attributes:{colspan:"number",rowspan:"number",headers:"text"}},details:{attributes:{open:"boolean",name:"text"}},summary:f,button:{attributes:{type:{oneOf:["button"]},disabled:"boolean",name:"text",value:"text"}},input:{empty:!0,attributes:{type:{oneOf:["text","search","number","range","checkbox","radio","date","time","datetime-local","month","week","color","email","tel","url"]},name:"text",value:"text",placeholder:"text",min:"text",max:"text",step:"text",checked:"boolean",disabled:"boolean",readonly:"boolean",required:"boolean",maxlength:"number",minlength:"number",size:"number",pattern:"text",multiple:"boolean",inputmode:"text",enterkeyhint:"text"}},select:{attributes:{name:"text",disabled:"boolean",multiple:"boolean",required:"boolean",size:"number"}},option:{attributes:{value:"text",selected:"boolean",disabled:"boolean",label:"text"}},optgroup:{attributes:{label:"text",disabled:"boolean"}},textarea:{attributes:{name:"text",placeholder:"text",rows:"number",cols:"number",disabled:"boolean",readonly:"boolean",required:"boolean",maxlength:"number",minlength:"number",wrap:{oneOf:["soft","hard","off"]}}},label:{attributes:{for:"text"}},fieldset:{attributes:{disabled:"boolean",name:"text"}},legend:f,output:f,meter:{attributes:{value:"number",min:"number",max:"number",low:"number",high:"number",optimum:"number"}},progress:{attributes:{value:"number",max:"number"}},img:{empty:!0,attributes:{src:"image",alt:"text",width:"number",height:"number",decoding:{oneOf:["async","sync","auto"]}}},"graview-video":{empty:!0,attributes:{autoplay:"boolean",cover:"boolean"}}},Ko=["fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","stroke-opacity","stroke-miterlimit","opacity","color","display","visibility","transform-origin","clip-path","clip-rule","marker-start","marker-mid","marker-end","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","alignment-baseline","letter-spacing","text-decoration","paint-order","vector-effect","shape-rendering","pointer-events","stop-color","stop-opacity","overflow","mask","filter","flood-color","flood-opacity","lighting-color","color-interpolation-filters"],Zo={id:"text",class:"text",style:"style",lang:"text",role:"text",tabindex:{oneOf:["-1","0"]},transform:"geometry",...Object.fromEntries(Ko.map(t=>[t,"css"]))},ue={x:"geometry",y:"geometry",width:"geometry",height:"geometry"},sn={viewBox:"geometry",preserveAspectRatio:"geometry"},Kr={oneOf:["userSpaceOnUse","objectBoundingBox"]},Zr={oneOf:["R","G","B","A"]},ne={...ue,in:"text",result:"text"},Qr={gradientUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},gradientTransform:"geometry",spreadMethod:{oneOf:["pad","reflect","repeat"]},href:"fragment"},Jr={svg:{attributes:{...ue,...sn}},g:f,defs:f,symbol:{attributes:{...ue,...sn,refX:"geometry",refY:"geometry"}},use:{attributes:{...ue,href:"fragment"}},title:f,desc:f,path:{attributes:{d:"geometry",pathLength:"number"}},rect:{attributes:{...ue,rx:"geometry",ry:"geometry",pathLength:"number"}},circle:{attributes:{cx:"geometry",cy:"geometry",r:"geometry",pathLength:"number"}},ellipse:{attributes:{cx:"geometry",cy:"geometry",rx:"geometry",ry:"geometry",pathLength:"number"}},line:{attributes:{x1:"geometry",y1:"geometry",x2:"geometry",y2:"geometry",pathLength:"number"}},polyline:{attributes:{points:"geometry",pathLength:"number"}},polygon:{attributes:{points:"geometry",pathLength:"number"}},text:{attributes:{x:"geometry",y:"geometry",dx:"geometry",dy:"geometry",rotate:"geometry",textLength:"geometry",lengthAdjust:{oneOf:["spacing","spacingAndGlyphs"]}}},tspan:{attributes:{x:"geometry",y:"geometry",dx:"geometry",dy:"geometry",rotate:"geometry",textLength:"geometry"}},textPath:{attributes:{href:"fragment",startOffset:"geometry",method:{oneOf:["align","stretch"]},spacing:{oneOf:["auto","exact"]},side:{oneOf:["left","right"]}}},linearGradient:{attributes:{x1:"geometry",y1:"geometry",x2:"geometry",y2:"geometry",...Qr}},radialGradient:{attributes:{cx:"geometry",cy:"geometry",r:"geometry",fx:"geometry",fy:"geometry",fr:"geometry",...Qr}},stop:{attributes:{offset:"geometry"}},clipPath:{attributes:{clipPathUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]}}},mask:{attributes:{...ue,maskUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},maskContentUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]}}},pattern:{attributes:{...ue,...sn,patternUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},patternContentUnits:{oneOf:["userSpaceOnUse","objectBoundingBox"]},patternTransform:"geometry",href:"fragment"}},marker:{attributes:{...sn,markerWidth:"geometry",markerHeight:"geometry",refX:"geometry",refY:"geometry",orient:"geometry",markerUnits:{oneOf:["strokeWidth","userSpaceOnUse"]}}},a:f,filter:{attributes:{...ue,filterUnits:Kr,primitiveUnits:Kr}},feBlend:{attributes:{...ne,in2:"text",mode:"text"}},feColorMatrix:{attributes:{...ne,type:{oneOf:["matrix","saturate","hueRotate","luminanceToAlpha"]},values:"geometry"}},feComponentTransfer:{attributes:ne},...Object.fromEntries(["feFuncR","feFuncG","feFuncB","feFuncA"].map(t=>[t,{attributes:{type:{oneOf:["identity","table","discrete","linear","gamma"]},tableValues:"geometry",slope:"number",intercept:"number",amplitude:"number",exponent:"number",offset:"number"}}])),feComposite:{attributes:{...ne,in2:"text",operator:{oneOf:["over","in","out","atop","xor","lighter","arithmetic"]},k1:"number",k2:"number",k3:"number",k4:"number"}},feDisplacementMap:{attributes:{...ne,in2:"text",scale:"number",xChannelSelector:Zr,yChannelSelector:Zr}},feDropShadow:{attributes:{...ne,dx:"number",dy:"number",stdDeviation:"geometry"}},feFlood:{attributes:ne},feGaussianBlur:{attributes:{...ne,stdDeviation:"geometry",edgeMode:{oneOf:["duplicate","wrap","none"]}}},feMerge:{attributes:ne},feMergeNode:{attributes:{in:"text"}},feMorphology:{attributes:{...ne,operator:{oneOf:["erode","dilate"]},radius:"geometry"}},feOffset:{attributes:{...ne,dx:"number",dy:"number"}},feTurbulence:{attributes:{...ue,result:"text",type:{oneOf:["fractalNoise","turbulence"]},baseFrequency:"geometry",numOctaves:"number",seed:"number",stitchTiles:{oneOf:["stitch","noStitch"]}}}};var eo={section:["aria-label","title"]};function Qo(t){return/^aria-[a-z]+$/.test(t)}function Jo(t){return/^data-[a-z0-9][a-z0-9_.-]*$/.test(t)}var es=new Map(Object.keys(Jr).map(t=>[t.toLowerCase(),t]));function to(t){return es.get(t.toLowerCase())}function no(t,e,n){let r=n.toLowerCase(),o=t==="html"?[Yn[e]?.attributes,Xo]:[Jr[e]?.attributes,Zo],s=t==="svg"&&r==="xlink:href"?"href":r;for(let i of o)if(i){for(let[l,c]of Object.entries(i))if(l.toLowerCase()===s)return{name:l,kind:c}}if(Qo(r)||Jo(r))return{name:r,kind:"text"}}var an=/^\\d{4}-\\d{2}-\\d{2}$/;function ts(t,e){if(typeof t!="string"||typeof e!="string"||!an.test(t)||!an.test(e))return;let n=Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5);return Number.isFinite(n)?n:void 0}function ro(t,e,n={}){let r=ts(t,e);if(r===void 0)return"";if(r===0)return"today";if(r===1)return"tomorrow";if(r<0&&n.due===!0)return"overdue";if(r===-1)return"yesterday";let o=Math.abs(r),[s,i]=o<14?[o,"day"]:o<60?[Math.round(o/7),"week"]:o<730?[Math.round(o/30.44),"month"]:[Math.round(o/365.25),"year"],l=`${s} ${i}${s===1?"":"s"}`;return r>0?`in ${l}`:`${l} ago`}function oo(t,e){if(typeof t!="string")return;if(an.test(t))return t;let n=Date.parse(t);if(Number.isFinite(n)){if(!/(Z|[+-]\\d\\d:?\\d\\d)$/.test(t))return an.test(t.slice(0,10))?t.slice(0,10):void 0;try{let r=new Intl.DateTimeFormat("en-CA",{timeZone:e||"UTC",year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(n),o=s=>r.find(i=>i.type===s)?.value??"";return`${o("year")}-${o("month")}-${o("day")}`}catch{return new Date(n).toISOString().slice(0,10)}}}var so="~",ln=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),se=(t,e=0)=>{if(t===null||typeof t=="string"||typeof t=="number"||typeof t=="boolean"||t===void 0)return t;if(!(e>64||typeof t!="object"))return Array.isArray(t)?t.map(n=>se(n,e+1)):Object.fromEntries(Object.entries(t).map(([n,r])=>[n,se(r,e+1)]))};function io(){let t=new Map,e=new Map,n=new Map([[so,{children:[],listeners:new Map}]]),r=0,o=u=>{let m=e.get(u);return m===void 0&&(m=r+=1,e.set(u,m),t.set(m,{listener:u,count:0})),t.get(m).count+=1,m},s=u=>{let m=t.get(u);m&&(m.count-=1,!(m.count>0)&&(t.delete(u),e.delete(m.listener)))},i=u=>{let m=n.get(u);if(m){n.delete(u);for(let g of m.listeners.values())s(g);for(let g of m.children)i(g)}},l=(u,m,g=0)=>{if(!ln(u)||g>64)return se(u);let y=typeof u.id=="string"?u.id:void 0,E=m&&y!==void 0&&y!==so;E&&i(y);let x={children:[],listeners:new Map};E&&n.set(y,x);let N={};for(let[w,C]of Object.entries(u))w==="children"&&Array.isArray(C)?N[w]=C.map(I=>{let S=l(I,E,g+1);return E&&ln(I)&&typeof I.id=="string"&&x.children.push(I.id),S}):w==="eventListeners"&&ln(C)?N[w]=Object.fromEntries(Object.entries(C).map(([I,S])=>{if(typeof S!="function"||!E)return[I,void 0];let P=o(S);return x.listeners.set(I,P),[I,{listener:P}]})):N[w]=se(C,g+1);return N},c=u=>{if(!Array.isArray(u))return se(u);let[m,g]=u,y=typeof g=="string"?n.get(g):void 0;if(m===0){let E=l(u[2],y!==void 0),x=ln(u[2])?u[2].id:void 0;if(y&&typeof x=="string"&&n.has(x)){let N=Number(u[3]);y.children.splice(Number.isInteger(N)&&N>=0&&N<=y.children.length?N:y.children.length,0,x)}return[m,se(g),E,se(u[3])]}if(m===1){let E=Number(u[2]);return y&&Number.isInteger(E)&&E>=0&&E<y.children.length&&i(y.children.splice(E,1)[0]),se(u)}if(m===3&&u[4]===3){let E=String(u[2]),x=u[3],N=y&&typeof x=="function"?o(x):void 0,w=y?.listeners.get(E);return w!==void 0&&s(w),N===void 0?y?.listeners.delete(E):y.listeners.set(E,N),[m,se(g),E,N===void 0?void 0:{listener:N},3]}return se(u)};return{encode:u=>u.map(c),listener:u=>t.get(u)?.listener,get listening(){return t.size},get nodes(){return n.size-1}}}var cn="graview-view-root",ns=["value","checked","key","pressed","files","refused","x","y","width","height","deltaX","deltaY","deltaMode","ctrlKey","metaKey","phase","pointerId","button","pressure","dx","dy","scale","rotation"],rs=t=>t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\'/g,"&#39;"),os=t=>Object.freeze({html:t,toString:()=>t}),ao=t=>typeof t=="object"&&t!==null&&typeof t.html=="string"&&Object.isFrozen(t),lo=t=>t==null||t===!1?"":Array.isArray(t)?t.map(lo).join(""):ao(t)?t.html:rs(String(t));function co(t){customElements.get(cn)||customElements.define(cn,ut);let e=Event,n=io(),r=new Set,o=new Set,s,i=[],l=new Set;for(let a of["closest","matches","dataset"]){let d=()=>{throw new TypeError(`A view\'s element has no ${a}: graview.on hands event.element, the element its selector matched; read event.element.getAttribute("data-\\u2026").`)};a in Element.prototype||Object.defineProperty(Element.prototype,a,a==="dataset"?{get:d}:{value:d})}let c=document.createElement(cn),u=a=>{let d=h=>{for(let T of Array.from(h.childNodes)){if(T.nodeType!==1)continue;if(X(T)===a)return T;let b=d(T);if(b)return b}};return d(c)},m=a=>{let d=u(a.target);if(!d)return;let h=new e(a.event,{bubbles:!0}),T={};for(let b of ns)a[b]!==void 0&&(T[b]=a[b]);for(let b of Object.keys(T))Object.defineProperty(h,b,{value:T[b],enumerable:!0});d.dispatchEvent(h);for(let b of o){if(b.type!==a.event)continue;let A;try{A=new Set(Array.from(c.querySelectorAll(b.selector)))}catch{continue}for(let G=d;G&&G!==c;G=G.parentNode)if(A.has(G)){b.listener(Object.freeze({type:a.event,target:d,element:G,...T}));break}}},g=Error,y=new Map,E=0,x=(a,d,h)=>new Promise((T,b)=>{let A=++E;y.set(A,G=>G.ok?T(G):b(new g(G.sentence??"This value was not kept."))),t.send({type:"mine",id:A,op:a,key:d,...a==="set"?{value:h}:{}})}),N=a=>(a.catch(()=>{}),a),w=Object.freeze({get(a){return N(x("get",a).then(d=>typeof d.value=="string"?d.value:null))},set(a,d){return N(x("set",a,d).then(()=>{}))}}),C=a=>{if(a.type==="mine-answer"){let b=y.get(a.id);return y.delete(a.id),b?.(a)}if(a.type==="dom-event"&&typeof a.target=="string")return m(a);if(a.type==="notice")return t.warn(a.text);if(a.type!=="props")return;s=a.props;let d=t.now();for(let b of r)try{b(a.props)}catch(A){t.threw(A)}let h=t.now()-d,T=a.push;typeof T=="number"&&t.microtask(()=>t.microtask(()=>t.send({type:"pushed",push:T,ms:h})))},I;c.connect({mutate(a){I||(I=[],t.microtask(()=>{let d=I??[];I=void 0,t.send({type:"render",records:n.encode(d)})})),I.push(...a)},call:()=>{}});let S=a=>a.nodeType===1?a.getAttribute("data-key")??a.getAttribute("id"):null,P=(a,d)=>a.nodeType===d.nodeType&&(a.nodeType!==1||a.localName===d.localName&&a.namespaceURI===d.namespaceURI&&S(a)===S(d));function q(a,d){let h=Array.from(d.childNodes),T=0;for(let b of h){let A=a.childNodes[T]??null;if(A&&P(A,b)){dt(A,b),T+=1;continue}if(S(b)!==null){let de=Array.from(a.childNodes).slice(T+1).find(We=>P(We,b));if(de){a.insertBefore(de,A),dt(de,b),T+=1;continue}}a.insertBefore(b,A),T+=1}for(;a.childNodes.length>T;)a.removeChild(a.lastChild)}function dt(a,d){if(a.nodeType!==1){a.data!==d.data&&(a.data=d.data);return}let h=a,T=d,b=ft(h);for(let A of h.getAttributeNames())T.hasAttribute(A)||(h.removeAttribute(A),b&&Ne(h,A,void 0));for(let A of T.getAttributeNames()){let G=T.getAttribute(A);h.getAttribute(A)!==G&&h.setAttribute(A,G),b&&Ne(h,A,G)}q(h,T)}let ft=a=>a.localName.includes("-");function Xn(a){for(let d of Array.from(a.childNodes)){if(d.nodeType!==1)continue;let h=d;if(ft(h))for(let T of h.getAttributeNames())Ne(h,T,h.getAttribute(T)??void 0);Xn(h)}}function Kn(a,d,h){for(let T of Array.from(a.childNodes)){if(T.nodeType!==1)continue;let b=T,A=b.localName,G=d||A.toLowerCase()==="svg",de=G?to(A):Object.prototype.hasOwnProperty.call(Yn,A.toLowerCase())?A.toLowerCase():void 0;if(!de){h.add(`<${A}>`);continue}for(let We of b.getAttributeNames())(!no(G?"svg":"html",de,We)||!G&&eo[de]?.includes(We.toLowerCase()))&&h.add(`${de} ${We}`);Kn(b,G,h)}}function fo(a){let d=document.createElement("div"),h=Array.isArray(a)?a:[a];for(let b of h)if(b!=null)if(typeof b=="string"||ao(b)){let A=document.createElement("div");A.innerHTML=typeof b=="string"?b:b.html,d.append(...Array.from(A.childNodes))}else d.append(b);let T=new Set;Kn(d,!1,T),i=[...T],i.length>0&&t.warn(`The host will not draw: ${i.join(", ")}`),Xn(d),q(c,d)}let un=[],dn=new Set(Br),Zn="[]",fn=!1,Qn=()=>{fn||(fn=!0,t.microtask(()=>{fn=!1;let a=[...new Map([...o].filter(h=>dn.has(h.type)).map(h=>[`${h.type} ${h.selector}`,{event:h.type,selector:h.selector}])).entries()].sort(([h],[T])=>h<T?-1:h>T?1:0).map(([,h])=>h),d=JSON.stringify(a);d!==Zn&&(Zn=d,t.send({type:"gestures",bound:a}))}))},Jn="[[],[]]",mn=!1,er=()=>{mn||(mn=!0,t.microtask(()=>{mn=!1;let a=b=>[...new Set([...o].filter(A=>A.type===b&&typeof A.selector=="string").map(A=>A.selector))].sort().slice(0,200),d=a("click"),h=a("acted"),T=JSON.stringify([d,h]);T!==Jn&&(Jn=T,t.send({type:"clicks",selectors:d,...h.length>0?{acted:h}:{}}))}))},tr=Object.freeze({get props(){return s},onProps(a){return r.add(a),s&&a(s),()=>void r.delete(a)},render:fo,style(a){typeof a!="string"||un.includes(a)||(un.push(a),t.send({type:"style",sheets:[...un]}))},on(a,d,h){let T={type:a,selector:d,listener:h};return o.add(T),typeof a=="string"&&!l.has(a)&&(l.add(a),t.send({type:"hears",events:[a]})),dn.has(a)&&Qn(),(a==="click"||a==="acted")&&er(),()=>{o.delete(T),dn.has(a)&&Qn(),(a==="click"||a==="acted")&&er()}},act:(a,d={})=>t.act(a,d),mine:w,navigate(a){if(typeof a=="string")return t.navigate(a);let d=on(a);d&&t.send(d)},html(a,...d){return os(a.reduce((h,T,b)=>h+T+(b<d.length?lo(d[b]):""),""))},get today(){return s?.today??new Date().toISOString().slice(0,10)},fromToday(a,d){let h=oo(a,s?.timeZone);return h===void 0?"":ro(h,tr.today,d)},get refused(){return i},get hardening(){return t.hardening()}});return{view:tr,hear:C,find:a=>{try{let d=c.querySelectorAll(a)[0];return d?X(d):void 0}catch{return}},listened:a=>{let d=new Set;for(let h of o)if(h.type===a)try{for(let T of Array.from(c.querySelectorAll(h.selector))){let b=X(T);b&&d.add(b)}}catch{}return[...d]}}}var $n={removed:[],stuck:[],sealed:!1,worker:!1},zn=jr({listen(t){return _e.listen(t),()=>_e.unlisten(t)},fromHost:()=>!0,ready:t=>_e.post(t)},{onMessage:t=>uo.hear(t)}),uo=co({send:t=>zn.send(t),act:(t,e)=>zn.guest.act(t,e),navigate:t=>zn.guest.navigate(t),microtask:_e.microtask,now:_e.now,threw:t=>console.error(t),warn:t=>console.warn(t),hardening:()=>$n}),ss=uo.view;Object.defineProperty(globalThis,"graview",{value:ss,enumerable:!0,configurable:!0,writable:!1});var Wn="WorkerGlobalScope"in globalThis?Xr(globalThis,["graview"]):$n;$n=Wn;if(Wn.stuck.length>0)throw new Error(`The view\'s worker could not be hardened: ${Wn.stuck.join(", ")} would not go.`);})();\n';export{e as VIEW_RUNTIME};
@@ -1 +1 @@
1
- import{g as a}from"./chunk.I7KN732Z.js";import{c as l}from"./chunk.TLPCYKLW.js";import{Oa as d}from"./chunk.DHPXRDT5.js";function m(n){let r=new Map;for(let i of n.kinds){let e=n.tryDefinition(i),o=a(e),s=d(e);r.set(i,{fields:new Set(Object.keys(e?.fields?.shape??{})),edges:new Map(Object.entries(e?.edges??{}).map(([p,y])=>[p,y.cardinality??"many"])),...o?{computed:o}:{},...s.size>0?{linked:s}:{}})}let t=a(n);return t&&r.set(l,{computed:t}),r}export{m as a};
1
+ import{g as a}from"./chunk.W6L2VAJG.js";import{f as l}from"./chunk.N3MXLORL.js";import{Pa as d}from"./chunk.6L6RUOSF.js";function m(n){let r=new Map;for(let i of n.kinds){let e=n.tryDefinition(i),o=a(e),s=d(e);r.set(i,{fields:new Set(Object.keys(e?.fields?.shape??{})),edges:new Map(Object.entries(e?.edges??{}).map(([p,y])=>[p,y.cardinality??"many"])),...o?{computed:o}:{},...s.size>0?{linked:s}:{}})}let t=a(n);return t&&r.set(l,{computed:t}),r}export{m as a};
@@ -0,0 +1 @@
1
+ import{T as k,V as y,c,h as l,o as p}from"./chunk.MKJV3BM5.js";import"./chunk.CEOQY5KS.js";import"./chunk.Q355UPFG.js";import{b as m}from"./chunk.4HU2ILFY.js";import"./chunk.EHLV3LND.js";import"./chunk.EPSYX2SF.js";import"./chunk.EOSN5DWW.js";import"./chunk.T6UJEXFL.js";import"./chunk.7THS3DLZ.js";import"./chunk.4QMAYVPU.js";import"./chunk.ARGEGV5T.js";import"./chunk.WS5ORRGS.js";import"./chunk.ZONRIOIA.js";import"./chunk.NXHEOHRR.js";import"./chunk.MB7LKKUD.js";import"./chunk.QJJWAYHB.js";import"./chunk.6A3KTD66.js";import"./chunk.MQNW3O67.js";import"./chunk.67S2UWBT.js";import"./chunk.7PWLRRUS.js";import"./chunk.OKHXXIMN.js";import"./chunk.NH3VXTGX.js";import"./chunk.6IMRCKB4.js";import"./chunk.WVUJXDXZ.js";import"./chunk.NI4OPHTL.js";import"./chunk.U5KJQFAP.js";import"./chunk.FOHZPYUV.js";import"./chunk.IXYG65TM.js";import"./chunk.W6L2VAJG.js";import"./chunk.N3MXLORL.js";import"./chunk.MIE4TJRW.js";import"./chunk.3CLTABGP.js";import"./chunk.RD2FSSLV.js";import"./chunk.CVN2XFMF.js";import"./chunk.6TBQV3NO.js";import"./chunk.MT252WP4.js";import"./chunk.VVIQSFM4.js";import"./chunk.TQ3MNB6K.js";import"./chunk.VGYG2IBZ.js";import"./chunk.RJ7VSWTA.js";import"./chunk.P43LPXXJ.js";import{G as S,H as s,I as d,Y as f,ha as g}from"./chunk.JCKIJSW7.js";import"./chunk.SDO3U72B.js";import"./chunk.6L6RUOSF.js";import"./chunk.FQLNBIQ5.js";import{b as n}from"./chunk.AJZBJBMO.js";var u=n(S(),1);var t=n(f(),1);function D({context:a}){let r=l(),h=g(),[w]=(0,u.useState)(()=>s(null)),o=d(h?.seatTalk??w),P=()=>{(window.history.state?.idx??0)>0?r(-1):r("/")};return(0,t.jsxs)(k,{context:a,"data-testid":"draft-page",children:[(0,t.jsx)(y,{context:a,...o.draft?{"data-testid":"draft-title"}:{},children:o.draft?o.draft.title:"Nothing drawn"}),o.draft?(0,t.jsx)(m,{page:!0,go:e=>r(e.address),onPick:e=>{let i=a.store.graph.getNode(e);i&&r(c(a.store.schema,i.kind,e))},onDiscard:P}):(0,t.jsxs)("p",{style:{margin:0,color:"var(--graview-ink-muted)"},children:["Ask for a way of seeing \u2014 \u201Ca board of tasks by status\u201D \u2014 and it is drawn here."," ",(0,t.jsx)(p,{to:"/",style:{color:"var(--graview-accent)"},children:"Home \u2192"})]})]})}export{D as DraftPage};
@@ -1,2 +1,2 @@
1
- import{d as S,e as w,f as I}from"./chunk.3VNOTHA5.js";import{d as k,g as h,h as b}from"./chunk.VR553M6J.js";import"./chunk.DU76ASS4.js";import"./chunk.BJUUSIQY.js";import"./chunk.7L3I776Z.js";import{a as A}from"./chunk.GTF6EMVE.js";import"./chunk.CLIC2QBA.js";import"./chunk.UPOYRCKI.js";import"./chunk.XOZU4OFA.js";import"./chunk.WV6SP6IJ.js";import"./chunk.ZE5RSKXF.js";import"./chunk.MH3AQO2R.js";import"./chunk.J2N7EKMX.js";import"./chunk.P26ATAAI.js";import"./chunk.FIY4RUK5.js";import"./chunk.IY3DV52G.js";import"./chunk.NLZHNPDU.js";import"./chunk.QNC2OKLF.js";import{G as M,W as f}from"./chunk.FWXW4T4I.js";import"./chunk.SDO3U72B.js";import"./chunk.DHPXRDT5.js";import"./chunk.FQLNBIQ5.js";import{b as d}from"./chunk.AJZBJBMO.js";var n=d(M(),1);var r=d(f(),1),C="several";function T({chosen:c,acts:p,onAct:N}){let t=A(),u=(0,n.useMemo)(()=>[...c].sort(),[c]),i=u.join(`
1
+ import{d as S,e as w,f as I}from"./chunk.4LWWXIM4.js";import{d as k,g as h,h as b}from"./chunk.HXRHEPPJ.js";import"./chunk.QNWGDG2Z.js";import"./chunk.BJUUSIQY.js";import"./chunk.QDDDKEBH.js";import{a as A}from"./chunk.F7KVEWFH.js";import"./chunk.QKRQPUCE.js";import"./chunk.SPJ34VHA.js";import"./chunk.XOZU4OFA.js";import"./chunk.KBJ3UUER.js";import"./chunk.U5KJQFAP.js";import"./chunk.6TBQV3NO.js";import"./chunk.MT252WP4.js";import"./chunk.VVIQSFM4.js";import"./chunk.TQ3MNB6K.js";import"./chunk.VGYG2IBZ.js";import"./chunk.RJ7VSWTA.js";import"./chunk.P43LPXXJ.js";import{G as M,Y as f}from"./chunk.JCKIJSW7.js";import"./chunk.SDO3U72B.js";import"./chunk.6L6RUOSF.js";import"./chunk.FQLNBIQ5.js";import{b as d}from"./chunk.AJZBJBMO.js";var n=d(M(),1);var r=d(f(),1),C="several";function T({chosen:c,acts:p,onAct:N}){let t=A(),u=(0,n.useMemo)(()=>[...c].sort(),[c]),i=u.join(`
2
2
  `),o=(0,n.useMemo)(()=>({on:"selection",ids:u}),[i]),l=(0,n.useMemo)(()=>p.filter(e=>e.open.length===0&&!e.more&&!e.destructive),[p]),g=(0,n.useMemo)(()=>new Map(l.map(e=>[h(e.id),e])),[l]),v=S(t,o,C),[y,x]=(0,n.useState)(null);(0,n.useEffect)(()=>{if(v!==void 0)return;let e=!0;return w(t,o,{by:C,ask:()=>b(t.ai,{store:t.store,target:o,principal:t.principal,interaction:k(),places:t.places,selection:t.selection,...t.place?{place:t.place}:{},shared:l.map(a=>({id:a.id,label:a.label,mutation:a.mutation,args:a.args}))})}).then(a=>{e&&x({key:i,result:a})}),()=>{e=!1}},[i]);let s=v??(y?.key===i?y.result:void 0);if(s===void 0)return(0,r.jsx)("span",{role:"status",className:"graview-several-quiet","data-testid":"several-ai-thinking",style:{textDecoration:"none"},children:"AI: thinking\u2026"});let m=s.offers.filter(e=>e.type!=="act"||g.has(e.id));if(m.length===0)return null;let E=e=>{let a=g.get(e.id);if(a){t.desk.record({...s.interaction,outcome:"accepted",accepted:[e.id]}),N(a);return}I(t,s,e)};return(0,r.jsx)("div",{role:"group","aria-label":"Suggested by AI",className:"graview-several-acts","data-testid":"several-ai",children:m.map(e=>(0,r.jsxs)("button",{type:"button",className:"graview-several-act","data-testid":"several-ai-offer","data-ai-offer":e.id,"data-ai-offer-type":e.type,onClick:()=>E(e),children:[e.label,(0,r.jsx)("span",{style:{color:"var(--graview-ink-faint)",fontWeight:400},children:" \xB7 suggested"})]},e.id))})}export{T as SeveralAi};
@@ -0,0 +1,25 @@
1
+ var __graviewPreload=(base,files)=>{if(typeof document>"u")return;const asked=globalThis.__graviewPreloaded??=new Set;for(const file of files){const href=new URL(file,base).href;if(asked.has(href))continue;asked.add(href);const link=document.createElement("link");link.rel="modulepreload";link.href=href;document.head.append(link)}};import{a as ot}from"./chunk.SDO3U72B.js";import{De as Io,Fe as nt,Gd as Ao,Ge as Gt,Id as ko,N as vo,Od as Ro,Pa as bo,Ta as Wt,Ud as To,Va as xo,Xc as jt,ie as Co,pb as Po,se as Mo,te as Oo,zd as Eo,ze as Vo}from"./chunk.6L6RUOSF.js";import{a as tt,b as _}from"./chunk.AJZBJBMO.js";var Jo=tt(v=>{"use strict";var Yt=Symbol.for("react.transitional.element"),Ri=Symbol.for("react.portal"),Ti=Symbol.for("react.fragment"),Ci=Symbol.for("react.strict_mode"),Mi=Symbol.for("react.profiler"),Oi=Symbol.for("react.consumer"),Vi=Symbol.for("react.context"),Ii=Symbol.for("react.forward_ref"),Hi=Symbol.for("react.suspense"),Li=Symbol.for("react.memo"),zo=Symbol.for("react.lazy"),_i=Symbol.for("react.activity"),Fo=Symbol.iterator;function Di(e){return e===null||typeof e!="object"?null:(e=Fo&&e[Fo]||e["@@iterator"],typeof e=="function"?e:null)}var $o={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uo=Object.assign,Yo={};function be(e,t,n){this.props=e,this.context=t,this.refs=Yo,this.updater=n||$o}be.prototype.isReactComponent={};be.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};be.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zo(){}Zo.prototype=be.prototype;function Zt(e,t,n){this.props=e,this.context=t,this.refs=Yo,this.updater=n||$o}var Xt=Zt.prototype=new Zo;Xt.constructor=Zt;Uo(Xt,be.prototype);Xt.isPureReactComponent=!0;var Bo=Array.isArray;function Ut(){}var H={H:null,A:null,T:null,S:null},Xo=Object.prototype.hasOwnProperty;function Jt(e,t,n){var o=n.ref;return{$$typeof:Yt,type:e,key:t,ref:o!==void 0?o:null,props:n}}function Ni(e,t){return Jt(e.type,t,e.props)}function Qt(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yt}function Wi(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ko=/\/+/g;function $t(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Wi(""+e.key):t.toString(36)}function ji(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ut,Ut):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ve(e,t,n,o,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Yt:case Ri:a=!0;break;case zo:return a=e._init,ve(a(e._payload),t,n,o,r)}}if(a)return r=r(e),a=o===""?"."+$t(e,0):o,Bo(r)?(n="",a!=null&&(n=a.replace(Ko,"$&/")+"/"),ve(r,t,n,"",function(c){return c})):r!=null&&(Qt(r)&&(r=Ni(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Ko,"$&/")+"/")+a)),t.push(r)),1;a=0;var s=o===""?".":o+":";if(Bo(e))for(var l=0;l<e.length;l++)o=e[l],i=s+$t(o,l),a+=ve(o,t,n,i,r);else if(l=Di(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,i=s+$t(o,l++),a+=ve(o,t,n,i,r);else if(i==="object"){if(typeof e.then=="function")return ve(ji(e),t,n,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function ct(e,t,n){if(e==null)return e;var o=[],r=0;return ve(e,o,"","",function(i){return t.call(n,i,r++)}),o}function Gi(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Fi={map:ct,forEach:function(e,t,n){ct(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ct(e,function(){t++}),t},toArray:function(e){return ct(e,function(t){return t})||[]},only:function(e){if(!Qt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};v.Activity=_i;v.Children=Fi;v.Component=be;v.Fragment=Ti;v.Profiler=Mi;v.PureComponent=Zt;v.StrictMode=Ci;v.Suspense=Hi;v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H;v.__COMPILER_RUNTIME={__proto__:null,c:function(e){return H.H.useMemoCache(e)}};v.cache=function(e){return function(){return e.apply(null,arguments)}};v.cacheSignal=function(){return null};v.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Uo({},e.props),r=e.key;if(t!=null)for(i in t.key!==void 0&&(r=""+t.key),t)!Xo.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(o[i]=t[i]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];o.children=a}return Jt(e.type,r,o)};v.createContext=function(e){return e={$$typeof:Vi,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Oi,_context:e},e};v.createElement=function(e,t,n){var o,r={},i=null;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)Xo.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];r.children=s}if(e&&e.defaultProps)for(o in a=e.defaultProps,a)r[o]===void 0&&(r[o]=a[o]);return Jt(e,i,r)};v.createRef=function(){return{current:null}};v.forwardRef=function(e){return{$$typeof:Ii,render:e}};v.isValidElement=Qt;v.lazy=function(e){return{$$typeof:zo,_payload:{_status:-1,_result:e},_init:Gi}};v.memo=function(e,t){return{$$typeof:Li,type:e,compare:t===void 0?null:t}};v.startTransition=function(e){var t=H.T,n={};H.T=n;try{var o=e(),r=H.S;r!==null&&r(n,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Ut,qo)}catch(i){qo(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),H.T=t}};v.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()};v.use=function(e){return H.H.use(e)};v.useActionState=function(e,t,n){return H.H.useActionState(e,t,n)};v.useCallback=function(e,t){return H.H.useCallback(e,t)};v.useContext=function(e){return H.H.useContext(e)};v.useDebugValue=function(){};v.useDeferredValue=function(e,t){return H.H.useDeferredValue(e,t)};v.useEffect=function(e,t){return H.H.useEffect(e,t)};v.useEffectEvent=function(e){return H.H.useEffectEvent(e)};v.useId=function(){return H.H.useId()};v.useImperativeHandle=function(e,t,n){return H.H.useImperativeHandle(e,t,n)};v.useInsertionEffect=function(e,t){return H.H.useInsertionEffect(e,t)};v.useLayoutEffect=function(e,t){return H.H.useLayoutEffect(e,t)};v.useMemo=function(e,t){return H.H.useMemo(e,t)};v.useOptimistic=function(e,t){return H.H.useOptimistic(e,t)};v.useReducer=function(e,t,n){return H.H.useReducer(e,t,n)};v.useRef=function(e){return H.H.useRef(e)};v.useState=function(e){return H.H.useState(e)};v.useSyncExternalStore=function(e,t,n){return H.H.useSyncExternalStore(e,t,n)};v.useTransition=function(){return H.H.useTransition()};v.version="19.2.8"});var W=tt((ks,Qo)=>{"use strict";Qo.exports=Jo()});var ur=tt(gt=>{"use strict";var ea=Symbol.for("react.transitional.element"),ta=Symbol.for("react.fragment");function dr(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:ea,type:e,key:o,ref:t!==void 0?t:null,props:n}}gt.Fragment=ta;gt.jsx=dr;gt.jsxs=dr});var De=tt((Ds,cr)=>{"use strict";cr.exports=ur()});var we={focusId:null,relation:null,expanded:[],pins:{}},rt=e=>{let t=Number(e);return Number.isFinite(t)?t:null};function Y(e){let t=new URLSearchParams;e.focusId&&t.set("focus",e.focusId),e.relation&&t.set("relation",e.relation),e.overview&&t.set("overview","1"),e.zoom&&t.set("zoom","1"),e.past&&t.set("past","1"),e.shown&&e.shown.length>0&&t.set("show",[...e.shown].sort().join(",")),e.selection!==void 0&&e.selection.length>0&&t.set("sel",[...e.selection].sort().join(",")),e.expanded.length>0&&t.set("expand",[...e.expanded].sort().join(","));for(let o of Object.keys(e.pins).sort()){let r=e.pins[o];t.set(`pin.${o}`,`${it(r.x)},${it(r.y)}`)}e.pan&&(e.pan.x!==0||e.pan.y!==0)&&t.set("pan",`${it(e.pan.x)},${it(e.pan.y)}`);for(let o of Object.keys(e.within??{}).sort()){let r=e.within[o];r.length>0&&t.set(`in.${o}`,r)}e.q&&e.q.trim().length>0&&t.set("q",e.q);let n=t.toString();return n?`#${n}`:"#"}function bi(e){return e&&e.startsWith("agg:")?`aggregate:${e.slice(4)}`:e}function at(e){let t=e.includes("#")?e.slice(e.indexOf("#")+1):e,n=new URLSearchParams(t),o=Object.create(null);for(let[y,g]of n){if(!y.startsWith("pin."))continue;let[m,x]=g.split(","),T=m===void 0?null:rt(m),f=x===void 0?null:rt(x);T===null||f===null||(o[y.slice(4)]={x:T,y:f})}let r=Object.create(null);for(let[y,g]of n)!y.startsWith("in.")||g.length===0||(r[y.slice(3)]=g);let i=n.get("view");i&&i.length>0&&r.view===void 0&&(r.view=i);let a=n.get("pan")?.split(",")??[],s=a[0]===void 0?null:rt(a[0]),l=a[1]===void 0?null:rt(a[1]),c=(n.get("sel")??"").split(",").filter(y=>y.length>0).sort(),u=n.get("overview")==="1";return{...c.length>0?{selection:c}:{},...u?{overview:!0}:{},...n.get("zoom")==="1"?{zoom:!0}:{},...n.get("past")==="1"?{past:!0}:{},...n.get("show")?{shown:[...new Set(n.get("show").split(",").filter(Boolean))].sort()}:{},...s!==null&&l!==null?{pan:{x:s,y:l}}:{},...Object.keys(r).length>0?{within:r}:{},...n.get("q")?.trim()?{q:n.get("q")}:{},focusId:bi(n.get("focus")),relation:n.get("relation"),expanded:(n.get("expand")??"").split(",").filter(y=>y.length>0&&(u||!y.startsWith("kind:"))).sort(),pins:o}}function ds(e){let t=at(e);return Y(t)==="#"?{...t,overview:!0}:t}function us(e){let t=Y(e);return t==="#overview=1"?"":t}function it(e){return Math.round(e*100)/100}function Lo(e,t){return Y(e)===Y(t)}var Ho="edge:";function _o(e){if(!e.startsWith(Ho))return null;let t=e.slice(Ho.length).split(":");if(t.length!==3)return null;let[n,o,r]=t;if(!n||!o||!r)return null;try{return{kind:decodeURIComponent(n),from:decodeURIComponent(o),to:decodeURIComponent(r)}}catch{return null}}function Ft(e){let{pan:t,...n}=e;return{...n,pins:{}}}function $(e,t){if(t===e.focusId)return{...e,focusId:t};let n=Ft(e);return{...n.within?.q!==void 0?ne(n,"q",null):n,focusId:t}}function Do(e,t){return{...e,relation:t}}function ne(e,t,n){let o={...e.within??{}};if(n===null?delete o[t]:o[t]=n,Object.keys(o).length===0){let{within:r,...i}=e;return i}return{...e,within:o}}function de(e,t){if(t!==e.overview&&(e=Ft(e)),!t){let n=e.expanded.filter(o=>!o.startsWith("kind:"));return{...e,overview:!1,expanded:n}}return{...e,overview:t}}function st(e,t){if(t.length===0){let{selection:n,...o}=e;return o}return{...e,selection:[...t]}}function Le(e,t){if(t!==(e.zoom===!0)&&(e=Ft(e)),!t){let{zoom:n,...o}=e;return o}return{...e,zoom:!0}}function lt(e,t){let n=new Set(e.expanded);return n.has(t)?n.delete(t):n.add(t),{...e,expanded:[...n].sort()}}var ut="aggregate:",dt="kind:";function Bt(e){return`${dt}${e}`}function Se(e){return e.startsWith(dt)?e.slice(dt.length):null}var fs="kinds:beyond";function xi(e){let t=Se(e);return t?[t]:ue(e)}function oe(...e){return`${ut}${[...e].sort().join("+")}`}function No(e){return e.startsWith(ut)}function ue(e){return!No(e)||e.includes("|")?[]:e.slice(ut.length).split("+").filter(Boolean)}function Wo(e,t,n={}){let o=Se(t);if(o!==null&&e.overview&&n.ownPicture!==!0)return lt(e,t);let r=o!==null?oe(o):t;if(e.zoom&&e.focusId===r&&!(o!==null&&n.carry))return Le(e,!1);if(o!==null&&n.carry){let i=de({...$(e,r),relation:null},!1);return ne(Le(i,!0),"q",n.carry)}return Le({...$(e,r),relation:null},!0)}function Pi(e,t,n){return ne(de($(e,oe(t)),!1),"view",n)}function ys(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var jo="aggregate:";function Kt(e){return e.startsWith(jo)&&e.includes("|")}var qt=e=>e?.off===!0,Ei=e=>e!==void 0&&!qt(e)&&(e.fast!==void 0||e.thinking!==void 0||e.answer!==void 0||e.decide!==void 0||e.complete!==void 0||e.turn!==void 0),Go=e=>e!==void 0&&!qt(e)&&(e.fast!==void 0||e.decide!==void 0),Ai=e=>e?.suggestOnOpen!==!1&&Go(e),ki=e=>e?.hoverChips===!0&&Go(e);var zt={};var er=_(W(),1),Bi={turns:[],outcomes:new Map,busy:!1,pending:null,draft:null,draftNote:null},tr=e=>`graview:seat:${e}`;function Ki(e){if(!e)return{};try{let t=sessionStorage.getItem(e);if(!t)return{};let n=JSON.parse(t);return{...Array.isArray(n.turns)?{turns:n.turns}:{},...Array.isArray(n.outcomes)?{outcomes:new Map(n.outcomes)}:{},...n.draft?.drawn?{draft:n.draft}:{}}}catch{return{}}}function qi(e,t){if(e)try{sessionStorage.setItem(e,JSON.stringify({turns:t.turns.slice(-40),outcomes:[...t.outcomes],draft:t.draft}))}catch{}}function en(e){let t=e===null?null:tr(e),n={...Bi,...Ki(t)},o=new Set,r=(i,a=!0)=>{n=i,a&&qi(t,n);for(let s of[...o])s()};return{get:()=>n,subscribe(i){return o.add(i),()=>void o.delete(i)},setTurns:i=>r({...n,turns:i(n.turns)}),settle:(i,a)=>r({...n,outcomes:new Map(n.outcomes).set(i,a)}),setBusy:i=>r({...n,busy:i},!1),ask:i=>r({...n,pending:i.trim()||null}),takePending(){let i=n.pending;return i!==null&&r({...n,pending:null},!1),i},setDraft:(i,a=null)=>r({...n,draft:i,draftNote:a})}}function zi(e){return(0,er.useSyncExternalStore)(e.subscribe,e.get,e.get)}var or=_(W(),1),$i={entries:[],ghost:null,loaded:!1};function nr(e,t){let n=new Map(e.map(o=>[o.id,o]));for(let o of t)n.set(o.id,{...n.get(o.id),...o});return[...n.values()].sort((o,r)=>o.at<r.at?1:o.at>r.at?-1:0)}function tn(e){let t=$i,n=new Set,o=r=>{t=r;for(let i of[...n])i()};return{get:()=>t,subscribe:r=>(n.add(r),()=>n.delete(r)),record:r=>{o({...t,entries:nr(t.entries,[r])}),Promise.resolve(e()?.keep?.(r)).catch(i=>{console.warn("The host did not keep an AI interaction:",i)})},setGhost:r=>o({...t,ghost:r}),load:()=>{if(t.loaded)return;o({...t,loaded:!0});let r=e()?.load;r&&Promise.resolve(r()).then(i=>o({...t,entries:nr(t.entries,i)})).catch(i=>{console.warn("The host's AI interactions could not be read:",i)})}}}function Ui(e){return(0,or.useSyncExternalStore)(e.subscribe,e.get,e.get)}function rr(e){return e?.closest?.("[data-graview-pick]")?.getAttribute("data-graview-pick")??null}function Cs(e,t,n,o){for(let r=e;r&&r!==t?.parentElement;r=r.parentElement){if(typeof r.querySelectorAll!="function")continue;let i=[...new Set([...r.querySelectorAll("[data-graview-pick]")].map(s=>s.getAttribute("data-graview-pick")??"").filter(s=>s!==""&&s!==o))];if(i.length===0)continue;let a=i[0];return i.slice(1).every(s=>n(a,s))?a:null}return null}var re=_(W(),1),pt=(0,re.createContext)(void 0),Yi=()=>(0,re.useContext)(pt),ft=(0,re.createContext)(void 0),Zi=()=>(0,re.useContext)(ft),yt=(0,re.createContext)(void 0),Xi=()=>(0,re.useContext)(yt);var A=_(W(),1),_e=(0,A.createContext)(null);function ar(){return(0,A.useContext)(_e)}function Ji(e,t){let n=ar(),o=(0,A.useMemo)(()=>n?n.live.seenBy(t):e,[n,e,t]),r=(0,A.useRef)(0),i=(0,A.useCallback)(a=>o.subscribe(()=>{r.current+=1,a()}),[o]);return(0,A.useSyncExternalStore)(i,()=>r.current,()=>0),o}var sr=ot(()=>(__graviewPreload(import.meta.url,["./chunk.YFVJUHAK.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.FC6AF6CC.js")));function nn(e){let[,t]=(0,A.useReducer)(o=>o+1,0),n=e.publishing?.mode==="on-publish"&&!Ao();return(0,A.useEffect)(()=>{n&&sr().then(t,()=>{})},[n]),!n}var ir,Qi=400;function on(e,t,n){let o=(0,A.useContext)(_e),r=o!==null&&o.owns(e,t),[i,a]=(0,A.useState)(null),[s,l]=(0,A.useState)(ir);(0,A.useEffect)(()=>{if(s||r||i===null)return;let E=!0;return sr().then(V=>{ir=V,E&&l(V)},()=>{}),()=>{E=!1}},[s,r,i]);let[c,u]=(0,A.useState)(0),[y,g]=(0,A.useMemo)(()=>r||i===null||!s?[]:[i>=e.log.length?void 0:s.askArchived(e,i,n)??s.askDeclaration(n,i),s.keptOf(e,n)],[r,e,i,n,s,c]),m=y&&"waiting"in y?y.waiting:void 0,x=y&&"seq"in y?y:null,[T,f]=(0,A.useState)(void 0);(0,A.useEffect)(()=>{if(!m)return;let E=!0,V=setTimeout(()=>E&&f(m),Qi);return m.then(()=>E&&u(L=>L+1)),()=>{E=!1,clearTimeout(V)}},[m]);let h=m!==void 0&&T!==m||x!==null,w=(0,A.useMemo)(()=>{if(r||i===null||i>=e.log.length||!s||h)return null;try{let E=s.pastAt(e,i,n);return{seq:i,at:E.past?.at,store:E}}catch{return null}},[r,e,i,n,s,h,c]),k=(0,A.useRef)(null),P=h?k.current:w;(0,A.useEffect)(()=>{k.current=P},[P]);let B=(0,A.useCallback)(E=>a(E===null?null:E>=e.log.length?Number.POSITIVE_INFINITY:E),[e]),j=(0,A.useCallback)((E,V)=>[e,P?.store].some(L=>L!==void 0&&(L===E||L.seenBy(V)===E)),[e,P]),G=i!==null,C=(0,A.useMemo)(()=>({past:P,open:G,show:B,live:e,host:n,owns:j,archive:x,kept:g}),[P,G,B,e,n,j,x,g]);return r?o:C}var lr=_(W(),1),rn=(0,lr.createContext)(null);var pr=e=>`graview:setting:${e}`;function fr(){return localStorage}function yr(e,t){try{let n=(t??fr()).getItem(pr(e.name));if(n!==null&&e.options.some(o=>o.value===n))return n}catch{}return e.initial}function gr(e,t,n){try{(n??fr()).setItem(pr(e.name),t)}catch{}}function mr(e,t){if(typeof document>"u")return;let n=document.documentElement;if(e.honored==="root-font-size"){n.style.fontSize=t===e.initial?"":t;return}let o=`graview${e.name.replace(/-([a-z0-9])/g,(r,i)=>i.toUpperCase()).replace(/^[a-z]/,r=>r.toUpperCase())}`;t===e.initial?delete n.dataset[o]:n.dataset[o]=t}var R=_(W(),1);function an(e){return nt(e)}var na=12,oa=4;function ra(e,t,n){let o=an(t);return e.get(o)??{participant:o,who:t.id??t.kind,at:null,mode:"docked",since:n,trail:[]}}var mt=(e,t)=>t===null||e[e.length-1]===t?e:[...e,t].slice(-na);function hr(e,t){let n=e.filter(r=>r.length>0);if(n.length===0)return null;if(n.length<=oa)return n[0];let o=new Set(n.map(r=>t(r)).filter(r=>r!==void 0));return o.size===1?Bt([...o][0]):n[0]}function sn(e,t,n){let o=new Map(e);if(t.type==="rest"){for(let[a,s]of e)s.mode!=="asking"&&s.mode!=="docked"&&t.at-s.since>=t.holdMs&&o.set(a,{...s,mode:"docked",at:null,trail:[],say:void 0,confidence:void 0});return o}if(t.author.kind!=="agent")return o;let r=ra(e,t.author,t.at),i=a=>o.set(r.participant,{...r,...a,since:t.at});switch(t.type){case"read":{let a=hr(t.ids,n);return i({at:a,mode:"reading",trail:mt(r.trail,a)}),o}case"about-to-write":case"write":{let a=hr(t.ids,n);return i({at:a,mode:"writing",trail:mt(r.trail,a),say:void 0,confidence:void 0}),o}case"refused":return i({at:t.where,mode:"refused",say:t.say,confidence:void 0,trail:mt(r.trail,t.where)}),o;case"asking":return i({at:t.where??r.at,mode:"asking",say:t.say,...t.confidence!==void 0?{confidence:t.confidence}:{confidence:void 0},trail:mt(r.trail,t.where)}),o;case"said":return i({say:t.say,...t.confidence!==void 0?{confidence:t.confidence}:{confidence:void 0},...t.caption?{caption:t.caption}:{}}),o;case"over":return i({over:t.over}),o;case"home":return i({at:null,mode:"docked",trail:[],say:void 0,confidence:void 0,over:null}),o;default:return o}}var wr="graview:session";function vr(e){let t=()=>typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID().slice(0,8):Math.random().toString(36).slice(2,10);try{let n=e??sessionStorage,o=n.getItem(wr);if(o)return o;let r=t();return n.setItem(wr,r),r}catch{return t()}}var ln={name:"share-where",title:"Where you are",description:"Whether the others here see which stop you are on.",honored:"root-attribute",options:[{value:"shared",label:"Shown"},{value:"private",label:"Hidden"}],initial:"shared"},dn={name:"share-over",title:"What you point at",description:"Whether the others see the thing under your pointer, outlined in your color.",honored:"root-attribute",options:[{value:"private",label:"Kept to yourself"},{value:"shared",label:"Outlined for others"}],initial:"private"},br=[ln,dn],Sr=800;function xr(e){let{channel:t,store:n,view:o,principal:r,session:i,robots:a,seatWho:s,settingValues:l,setView:c,ttlMs:u=Io,people:y,seats:g}=e,[m,x]=(0,R.useState)(()=>new Map),[T,f]=(0,R.useState)(null),[h,w]=(0,R.useState)(null),[k,P]=(0,R.useState)(null),B=typeof r.id=="string"&&r.id.length>0,j=B&&(l[ln.name]??ln.initial)==="shared",G=j&&(l[dn.name]??dn.initial)==="shared",C=an({kind:r.kind,...r.id?{id:r.id}:{},session:i}),E=B?Po(r,{graph:n.graph,schema:n.schema,...g?{seats:g}:{},...y?{people:y}:{}}):"",V=s?a.get(`agent:${s}:${i}`):void 0,L=(0,R.useMemo)(()=>!t||!j?null:{participant:C,kind:r.kind,name:E,...r.onBehalfOf?.id?{onBehalfOf:r.onBehalfOf.id,...r.onBehalfOf.name?{onBehalfOfName:r.onBehalfOf.name}:{}}:{},hue:jt(r.id??"nobody"),stop:k??Y(o),...G?{over:T}:{},...V?{robot:{at:V.at,mode:V.mode}}:{},at:new Date().toISOString()},[t,j,G,C,E,r.id,r.kind,r.onBehalfOf?.id,r.onBehalfOf?.name,o,k,T,V?.at,V?.mode]),ke=(0,R.useRef)(null),fe=b=>b&&t?.here({...b,caret:ke.current??void 0,at:new Date().toISOString()}),Fe=(0,R.useCallback)(b=>{ke.current=b,fe(L)},[t,L]);(0,R.useEffect)(()=>{if(!L)return;fe(L);let b=setInterval(()=>fe(L),Sr);return()=>clearInterval(b)},[t,L]),(0,R.useEffect)(()=>t?t.onWho(D=>x(Gt(new Map,D,Date.now(),u))):void 0,[t,u]);let ye=m.size>0;(0,R.useEffect)(()=>{if(!ye)return;let b=setInterval(()=>{x(D=>{let ae=Gt(D,[],Date.now(),u);return ae.size===D.size?D:ae})},Math.max(250,Math.min(1e3,u/4)));return()=>clearInterval(b)},[ye,u]),(0,R.useEffect)(()=>{if(!t||typeof window>"u")return;let b=()=>t.leave();return window.addEventListener("pagehide",b),()=>window.removeEventListener("pagehide",b)},[t]),(0,R.useEffect)(()=>{if(!G||typeof document>"u")return;let b=null,D=ae=>{let q=rr(ae.target);q!==b&&(b=q,f(q))};return document.addEventListener("pointermove",D,{passive:!0}),()=>document.removeEventListener("pointermove",D)},[G]);let ge=(0,R.useRef)(null),Q=h?m.get(h)??null:null,Be=(0,R.useCallback)(b=>{ge.current=null,w(b)},[]);(0,R.useEffect)(()=>{if(h){if(!Q){w(null);return}Q.stop!==ge.current?.stop&&(ge.current={stop:Q.stop,at:Date.now()},c(at(Q.stop)))}},[h,Q,c]),(0,R.useEffect)(()=>{let b=ge.current;!h||b===null||Date.now()-b.at<400||Lo(o,at(b.stop))||w(null)},[o,h]),(0,R.useEffect)(()=>{if(!h||typeof document>"u")return;let b=D=>{D.key==="Escape"&&w(null)};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[h]);let[ee,Ke]=(0,R.useState)(null),Re=(0,R.useRef)(Y(o));Re.current=k??Y(o);let qe=(0,R.useCallback)(b=>Ke(D=>(b===null&&D&&t?.alsoHere?.({...D,at:new Date().toISOString(),until:new Date().toISOString()}),b===null?null:{hue:jt("graview"),...b,stop:Re.current,at:new Date().toISOString()})),[t]);(0,R.useEffect)(()=>{if(!ee||!t?.alsoHere)return;let b=()=>t.alsoHere?.({...ee,at:new Date().toISOString()});b();let D=setInterval(b,Sr);return()=>clearInterval(D)},[ee,t]);let ze=(0,R.useMemo)(()=>{if(!ee)return m;let b=new Map(m);return b.set(ee.participant,{...ee,at:new Date().toISOString()}),b},[m,ee]),$e=L!==null,Ue=(0,R.useMemo)(()=>$e?{participant:C,name:E}:null,[$e,C,E]);return(0,R.useMemo)(()=>({who:ze,aiHere:qe,sharing:Ue,following:Q,follow:Be,sayWhere:P,sayCaret:Fe}),[ze,qe,Ue,Q,Be,Fe])}var Z=_(W(),1);function Pr(e){return nt(e.author)}function ia(e,t){return e.length>1?"co-edited":t==="rule"?"rule":t==="agent"?"autonomous":"directed"}function Er(e,t,n,o,r){let i=new Map;for(let[l,c]of e)o-c.at<r&&i.set(l,c);let a=new Set(n.flatMap(l=>l.nodeIds)),s=(l,c,u)=>{let y=i.get(l),g=y?.participants.includes(Pr(c))?y.participants:[...y?.participants??[],Pr(c)];i.set(l,{at:o,manner:ia(g,c.author.kind),intent:c.intent,wrote:(y?.wrote??!1)||(u.wrote??!1),read:(y?.read??!1)||(u.read??!1),broke:(y?.broke??!1)||a.has(l),participants:g})};for(let l of t){for(let c of l.writes)s(c,l,{wrote:!0});for(let c of l.reads)l.writes.includes(c)||s(c,l,{read:!0})}for(let l of n)for(let c of l.nodeIds){let u=i.get(c);i.set(c,{at:o,manner:u?.manner??"rule",intent:u?.intent??l.message,wrote:u?.wrote??!1,read:u?.read??!1,broke:!0,participants:u?.participants??["rule::"]})}return i}var aa=2600;function Ar(e,t=aa){let[n,o]=(0,Z.useState)(()=>new Map),r=(0,Z.useRef)(n);r.current=n;let i=(0,Z.useRef)(null),a=(0,Z.useCallback)(l=>{r.current=l,o(l),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{r.current=new Map,o(new Map)},t)},[t]);(0,Z.useEffect)(()=>{let l=e.violations(),c=e.subscribe((u,y)=>{let g=e.violations(),m=To(e.allInvariants(),l,g).introduces;l=g,a(Er(r.current,y,m.map(x=>({nodeIds:x.nodeIds,message:x.message})),Date.now(),t))});return()=>{c(),i.current&&clearTimeout(i.current)}},[e,t,a]);let s=(0,Z.useCallback)(l=>{l.reads.length!==0&&a(Er(r.current,[sa(l)],[],Date.now(),t))},[t,a]);return{activity:n,noteAttention:s}}function sa(e){return{id:`attention:${e.intent}`,seq:-1,batch:"attention",author:e.author,intent:e.intent,mutation:null,primitives:[],reads:e.reads,writes:[],at:new Date().toISOString()}}var d=_(W(),1);function kr(){let e=null,t=new Set,n=new Set,o=r=>{for(let i of n)i(r)};return{subscribe(r){return t.add(r),t.size===1&&o(!0),()=>{t.delete(r),t.size===0&&(e=null,o(!1))}},snapshot:()=>e,set(r){if(!(e===r||e&&r&&e.x===r.x&&e.y===r.y)){e=r;for(let i of t)i()}},get listeners(){return t.size},onActive(r){return n.add(r),()=>void n.delete(r)}}}var ht=_(W(),1),la=e=>e.definitions.some(t=>bo(t).size>0);function Rr(e,t,n){let[o,r]=(0,ht.useState)(void 0),i=(n.roles??[]).join("\0"),a=n.onBehalfOf?JSON.stringify(n.onBehalfOf):"";return(0,ht.useEffect)(()=>{if(!t||!la(e.schema)){r(void 0);return}let s=!0,l=!1,c=e.graph,u=()=>{l||(l=!0,queueMicrotask(()=>{l=!1,s&&e.reread()}))},y=xo(t,{kind:n.kind,...n.id===void 0?{}:{id:n.id},...n.roles?{roles:n.roles}:{},...n.onBehalfOf?{onBehalfOf:n.onBehalfOf}:{}},u);return Wt(c,y.read),r(y),e.reread(),()=>{s=!1,Wt(c,void 0)}},[e,t,n.kind,n.id,i,a]),o}function Tr(){let e=!1,t=new Set;return{moving:()=>e,set(n){if(n!==e){e=n;for(let o of t)o()}},subscribe(n){return t.add(n),()=>t.delete(n)}}}var X=_(De(),1),da="graview:place-menu",Ne=(0,d.createContext)(null),Vr=(0,d.createContext)("scene");function ua({mode:e,children:t}){return(0,X.jsx)(Vr.Provider,{value:e,children:t})}function ca(){return(0,d.useContext)(Vr)}var Ir={kind:"human"},pa=[],fa=[],ya=[],un=[];function Hr(e,t){let n=(0,d.useId)();(0,d.useEffect)(()=>{if(!globalThis.__graviewWatch)return;let o=t??Ir,r=()=>Ro(e,o,n);r();let i,a=e.subscribe(()=>{clearTimeout(i),i=setTimeout(r,250)});return()=>{clearTimeout(i),a(),globalThis.__graviewWatch?.unseen?.({words:[],from:n,gone:!0})}},[e,t,n])}var ga=()=>{try{return typeof location<"u"&&new URLSearchParams(location.search).get("as")==="published"?"published":void 0}catch{return}},ma={off:!0};function ha({store:e,views:t,initialView:n,scheme:o="dark",initialSelection:r,principal:i,as:a,seats:s=pa,onSeat:l,people:c=fa,memory:u,presenceTtlMs:y,app:g,settings:m=g?.settings??ya,presence:x,typing:T,brand:f,locale:h,timeZone:w,onKeepLens:k,onProposeChange:P,composeChange:B,onDraftChange:j,displayOptions:G,providers:C,ai:E,files:V,viewerState:L,assetsAt:ke,resolveApp:fe,history:Fe,linkedRecords:ye,menuSections:ge,keptViews:Q,onExport:Be,subscriptions:ee,dismissals:Ke,whileAway:Re,notifications:qe,onNotificationsSeen:ze,workflowRuns:$e,signIn:Ue,view:b,onViewChange:D,children:ae}){let q=(0,d.useContext)(Ne),Rn=ge??q?.menuSections,Tn=Ue??q?.signIn,Rt=$e??q?.workflowRuns,Tt=Q??q?.keptViews,Ct=Be??q?.onExport,Mt=qe??q?.notifications,Ot=ze??q?.onNotificationsSeen,[si,li]=(0,d.useState)(null),me=si??i??s[0]?.principal??Ir,Ye=on(e,me,Fe),Cn=Ye.past&&Ye.live===e?Ye.past.store:e,Vt=a??ga(),It=!nn(e),N=(0,d.useMemo)(()=>It?e:Cn.seenBy(me,Vt?{as:Vt}:void 0),[It,e,Cn,me,Vt]);Hr(e,me);let[se]=(0,d.useState)(()=>vr(u)),[Mn,di]=(0,d.useState)(!1),On=(0,d.useCallback)(()=>di(!0),[]),le=(0,d.useMemo)(()=>x?[...m,...br]:m,[m,x]),[Ht]=(0,d.useState)(()=>n??yn(t,e.schema)),[ui,Vn]=(0,d.useState)(()=>st(Ht??we,r??Ht?.selection??[])),Te=(0,d.useRef)(Ht??we).current,[In,ci]=(0,d.useState)(null),[Hn,pi]=(0,d.useState)(null),K=(0,d.useContext)(Ne),[Ln]=(0,d.useState)(()=>K?.seatTalk??en(f?.name??e.schema.kinds.join(","))),Lt=E??K?.ai??zt,Ze=(0,d.useMemo)(()=>Lt.off?ma:Lt,[Lt]),_n=(0,d.useRef)(Ze.interactions);_n.current=Ze.interactions;let[Dn]=(0,d.useState)(()=>K?.aiDesk??tn(()=>_n.current)),[fi]=(0,d.useState)(()=>K?.subscriptions??ko()),Nn=ee??K?.subscriptions??fi,_t=k??K?.onKeepLens,Wn=P??K?.onProposeChange,jn=B??K?.composeChange,Gn=j??K?.onDraftChange,Fn=G??K?.displayOptions,Xe=g??K?.app,Je=h??K?.locale,yi=f?.locale??Xe?.brand?.locale,Qe=w??K?.timeZone;vo({reader:Je,app:yi,readerTimeZone:Qe,appTimeZone:f?.timeZone??Xe?.brand?.timeZone});let Bn=(0,d.useRef)(null),Kn=(0,d.useCallback)(p=>{Bn.current=p},[]),qn=(0,d.useCallback)(p=>Bn.current?.whereIs(p)??null,[]),[zn]=(0,d.useState)(()=>kr()),[$n]=(0,d.useState)(()=>Tr()),[Dt,gi]=(0,d.useState)(null),[Ce,Un]=(0,d.useState)(()=>new Map),Me=(0,d.useRef)(Ce);Me.current=Ce;let Oe=(0,d.useRef)(null),Nt=(0,d.useCallback)(p=>N.graph.getNode(p)?.kind,[N]),te=(0,d.useCallback)(p=>{let S=sn(Me.current,p,Nt);Me.current=S,Un(S),Oe.current&&clearTimeout(Oe.current),[...S.values()].some(I=>I.mode!=="docked"&&I.mode!=="asking")&&(Oe.current=setTimeout(()=>{let I=sn(Me.current,{type:"rest",at:Date.now(),holdMs:fn},Nt);Me.current=I,Un(I)},fn+20))},[Nt]),Yn=(0,d.useCallback)(p=>te({...p,at:p.at??Date.now()}),[te]),Zn=(0,d.useCallback)(p=>{gi(p),p&&te({type:"home",author:{kind:"agent",id:p,session:se},at:Date.now()})},[te,se]);(0,d.useEffect)(()=>N.subscribe((p,S)=>{for(let M of S)M.author.kind==="agent"&&te({type:"write",author:M.author,ids:M.writes,at:Date.now()})}),[N,te]),(0,d.useEffect)(()=>()=>{Oe.current&&clearTimeout(Oe.current)},[]);let U=(0,d.useMemo)(()=>({...me,session:se}),[me,se]),Xn=Rr(N,ye,U),Jn=(0,d.useCallback)(p=>{li(p),l?.(p)},[l]),[Ve,mi]=(0,d.useState)(()=>Object.fromEntries(le.map(p=>[p.name,yr(p,u)])));(0,d.useEffect)(()=>{for(let p of le)mr(p,Ve[p.name]??p.initial)},[le,Ve]);let Qn=(0,d.useCallback)((p,S)=>{let M=le.find(I=>I.name===p);!M||!M.options.some(I=>I.value===S)||(gr(M,S,u),mi(I=>({...I,[p]:S})))},[le,u]),[eo,hi]=(0,d.useState)(null),{activity:to,noteAttention:no}=Ar(N),oo=(0,d.useCallback)(p=>{no(p),te({type:"read",author:p.author,ids:p.reads,at:Date.now()})},[no,te]),he=(0,d.useCallback)(p=>{if(Se(p)!==null||ue(p).length>0||Kt(p))return!0;let S=_o(p);return S?N.graph.allEdges().some(M=>M.kind===S.kind&&M.from===S.from&&M.to===S.to):N.graph.getNode(p)!==void 0},[N]),ro=(0,d.useCallback)(p=>{let S=p.selection??un,M=S.filter(he),I=M.length===S.length?p:st(p,M);return I.focusId!==null&&!he(I.focusId)&&(I=$(I,null)),I},[he]),Ie=(0,d.useCallback)(p=>{let S=ro(p),M=Or(N,U,S.shown);if(S.focusId!==null&&M.size>0){let I=ue(S.focusId),So=N.graph.getNode(S.focusId);(I.length>0?I.every(vi=>M.has(vi)):So?M.has(So.kind):!1)&&(S={...S,focusId:null})}if(!S.overview&&S.focusId===null){let I=Te.focusId!==null&&!he(Te.focusId)?yn(t,e.schema)??{...we,overview:!0}:Te;I.focusId!==null&&he(I.focusId)?S={...S,focusId:I.focusId}:I.overview===!0&&(S={...S,overview:!0})}return S},[ro,he,N,Te,U,t,e.schema]),z=Ie(b??ui),io=(0,d.useMemo)(()=>Or(N,U,z.shown),[N,U,z.shown]),ao=(0,d.useMemo)(()=>[...N.modules.administered.entries()].map(([p,S])=>{let M=N.mayAdminister(p,U);return{name:p,...S.description?{description:S.description}:{},kinds:S.kinds??[],canShow:M,shown:M&&(z.shown??[]).includes(p)}}),[N,U,z.shown]),He=(0,d.useCallback)(p=>{let S=M=>Ie(typeof p=="function"?p(M):p);if(b!==void 0){D?.(S(b));return}D&&D(S(z)),Vn(M=>S(M))},[z,D,b,Ie]);(0,d.useEffect)(()=>{b===void 0&&Vn(p=>{let S=Ie(p);return S===p?p:S})},[z,b,Ie]);let so=z.selection??un,lo=(0,d.useCallback)(p=>{He(S=>st(S,typeof p=="function"?p(S.selection??un):p))},[He]),{who:et,aiHere:uo,following:co,follow:po,sayWhere:wi,sayCaret:fo,sharing:yo}=xr({channel:x,store:N,view:z,principal:U,session:se,robots:Ce,seatWho:Dt,settingValues:Ve,setView:He,seats:s,people:c,...y!==void 0?{ttlMs:y}:{}}),Si=(0,d.useMemo)(()=>({store:N,scheme:o,views:t,view:z,setView:He,homeView:Te,selection:so,setSelection:lo,menuAt:In,setMenuAt:ci,whereIs:qn,pointer:zn,motion:$n,registerScene:Kn,robots:Ce,noteSeat:Yn,seatWho:Dt,registerSeatWho:Zn,actsDoor:Hn,registerActsDoor:pi,seatTalk:Ln,aiDesk:Dn,...u?{memory:u}:{},who:et,aiHere:uo,following:co,follow:po,sayWhere:wi,sharing:yo,session:se,ai:Ze,resolveApp:fe,linkedRecords:ye,menuSections:Rn,...Tt?{keptViews:Tt}:{},...Ct?{onExport:Ct}:{},subscriptions:Nn,dismissals:Ke,whileAway:Re,...Mt?{notifications:Mt}:{},...Ot?{onNotificationsSeen:Ot}:{},...Rt?{workflowRuns:Rt}:{},signIn:Tn,linkedReads:Xn,movedByHand:Mn,noteMoved:On,emphasis:eo,setEmphasis:hi,activity:to,noteAttention:oo,principal:U,seats:s,people:c,takeSeat:Jn,settings:le,settingValues:Ve,chooseSetting:Qn,hiddenKinds:io,administered:ao,...C?{providers:C}:{},...f?{brand:f}:{},..._t?{onKeepLens:_t}:{},...Wn?{onProposeChange:Wn}:{},...jn?{composeChange:jn}:{},...Gn?{onDraftChange:Gn}:{},...Fn?{displayOptions:Fn}:{},app:Xe,...Je?{locale:Je}:{},...Qe?{timeZone:Qe}:{}}),[N,o,t,z,He,so,lo,In,qn,zn,$n,Kn,Ce,Yn,Dt,Zn,Hn,Ln,Dn,u,et,uo,co,po,yo,se,Ze,fe,ye,Rn,Tt,Ct,Nn,Ke,Re,Mt,Ot,Rt,Tn,Xn,Mn,On,eo,to,oo,U,s,c,Jn,le,Ve,Qn,io,ao,C,f,_t,Xe,Je,Qe]),go=(0,d.useMemo)(()=>T?{typing:T,sayCaret:fo,who:et}:null,[T,fo,et]),mo=ke?(0,X.jsx)(ft.Provider,{value:ke,children:ae}):ae,ho=V?(0,X.jsx)(pt.Provider,{value:V,children:mo}):mo,wo=L?(0,X.jsx)(yt.Provider,{value:L,children:ho}):ho;return(0,X.jsx)(Ne.Provider,{value:Si,children:(0,X.jsx)(_e.Provider,{value:Ye,children:(0,X.jsx)(xa,{children:It?null:go?(0,X.jsx)(rn.Provider,{value:go,children:wo}):wo})})})}var Lr=(0,d.createContext)(null),cn,pn=new Set,wa=e=>(pn.add(e),()=>void pn.delete(e)),Cr=()=>cn;function Sa(e){if(!cn){cn=e;for(let t of[...pn])t()}}var va=300;function ba(e){let t=0;return async(n,o)=>{let r=++t;return await new Promise(i=>setTimeout(i,va)),r===t?e(n,o):[]}}function xa({children:e}){let{store:t,view:n,views:o,principal:r,hiddenKinds:i,selection:a,ai:s}=ie(),l=wt(),c=n.q,u=n.focusId,y=!!(c&&c.trim().length>0),g=(0,d.useSyncExternalStore)(wa,Cr,Cr),m=(0,d.useMemo)(()=>y&&g?{flagged:new Set(t.violations().flatMap(k=>k.nodeIds)),touched:g.touchWeights(t.log.all())}:null,[t,l,y,g]),x=u?t.graph.getNode(u)?.kind??Se(u)??(ue(u).length===1?ue(u)[0]:void 0):void 0,T=(0,d.useMemo)(()=>s.near&&ba(s.near),[s.near]),f=(0,d.useMemo)(()=>!c||!m||!g?null:g.search(t,c,{...x?{inKind:x}:{},principal:r,places:o.places(),kinds:t.schema.kinds.filter(k=>!i.has(k)),from:[...a,...u&&t.graph.has(u)?[u]:[]],flagged:m.flagged,touched:m.touched,limit:200,rank:T}),[t,c,r,o,i,a,u,x,m,T]),[h,w]=(0,d.useState)();return(0,d.useEffect)(()=>void f?.later?.then(k=>w([f,k])),[f]),(0,X.jsx)(Lr.Provider,{value:h?.[0]===f?h[1]:f,children:e})}var Mr=new WeakMap;function yl(e){let t=Mr.get(e);return t||Mr.set(e,t=new Set(e.matched)),t}function Pa(){return(0,d.useContext)(Lr)}function ie(){let e=(0,d.useContext)(Ne);if(!e)throw new Error("useGraview must be used inside a <GraviewProvider>.");return e}function gn(){return(0,d.useContext)(Ne)??null}function wt(){let{store:e}=ie(),t=(0,d.useRef)(null),n=(0,d.useRef)(null),o=(0,d.useCallback)(()=>(n.current!==e&&(n.current=e,t.current=null),t.current??=e.graph.allNodes(),t.current),[e]),r=(0,d.useCallback)(i=>e.subscribe(()=>{t.current=null,i()}),[e]);return(0,d.useSyncExternalStore)(r,o,o)}function Ea(e){let{store:t}=ie(),n=(0,d.useCallback)(r=>t.subscribe(r),[t]),o=(0,d.useCallback)(()=>e===null?void 0:t.graph.getNode(e),[t,e]);return(0,d.useSyncExternalStore)(n,o,o)}function Or(e,t,n){let o=new Set(e.modules.disabledKinds);for(let r of e.kindsKeptFrom(t))o.add(r);for(let[r,i]of e.modules.administered)if(!(e.mayAdminister(r,t)&&(n??[]).includes(r)))for(let a of i.kinds??[])o.add(a);return o}var fn=2600;var _r=new WeakSet,Aa=e=>_r.has(e),ka=e=>void _r.add(e);function yn(e,t){let n=Vo(e.arrangement?.()?.first,t,e.places());if(!(!n||n.to==="home"))return n.to==="place"?{...we,focusId:oe(n.place.kind),within:{view:n.place.as}}:{...we,focusId:oe(n.kind)}}var ce=_(W(),1);var mn=_(W(),1),Ra=(0,mn.createContext)(null),hn=(0,mn.createContext)(null);var Dr=(0,ce.createContext)(null);function Ta(){let e=(0,ce.useContext)(Dr),t=gn(),n=(0,ce.useContext)(hn),o=(i,a,s)=>t?.setView(l=>ne(ne(de($(l,oe(i)),!1),"view",a),"filter",s?.filter??null)),r=()=>t?.setView(i=>ne(de(i,!0),"view",null));return(0,ce.useMemo)(()=>e??{record:i=>{t&&(t.setView(a=>$(de(a,!1),i)),t.setSelection([i]))},place:(i,a)=>{if(i===Oo)return r();if(i===Mo)return n?n.open("/"):r();let s=t?.views.places().find(l=>l.as===i);s&&o(s.kind,s.as,a)},list:(i,a)=>o(i,null,a)},[e,t,n])}var Nr=_(W(),1),Ca=(0,Nr.createContext)(!1);var St=Symbol.for("graview.default-view");function Wr(e){return Object.defineProperty(e,St,{value:!0,enumerable:!1}),e}function jr(e){return typeof e=="function"&&e[St]===!0}var vt=Symbol.for("graview.replaces-page");function Gr(e){return Object.defineProperty(e,vt,{value:!0,enumerable:!1}),e}function Fr(e){return typeof e=="function"&&e[vt]===!0}var We=Symbol.for("graview.bleeds");function Br(e,t=!0){return Object.defineProperty(e,We,{value:t,enumerable:!1,configurable:!0}),e}function Kr(e){let t=typeof e=="function"?e[We]:void 0;return t===!0||t==="full"}function qr(e){return typeof e=="function"&&e[We]==="full"}var bt=Symbol.for("graview.previews");function zr(e,t={}){return Object.defineProperty(e,bt,{value:t,enumerable:!1}),e}function $r(e){return typeof e=="function"?e[bt]:void 0}function Ma(e){return Co(e)}function Oa(e,t){if(t===e)return e;for(let r of t.registrations())e.register(r.kind,r,r.view,r);let n=t.arrangement?.();n&&e.arrange?.(n);let o=t.homes?.()??[];if(o.length>0)for(let r of o)e.home?.(r.view,r.name!==void 0?{name:r.name}:void 0);else{let r=t.homeView?.();r&&e.home?.(r)}return e}var O=_(W(),1),J=_(De(),1),wn=new Set,xt=0;function Sn(e){return()=>{xt+=1;let t=e();return t.then(()=>void(xt-=1),()=>void(xt-=1)),t}}var Va=()=>xt,Et=(0,O.createContext)(null);function Ia(){return{waiting:new Map,at:0}}function Ha(e){for(let[t,n]of e.waiting)n<e.at&&e.waiting.delete(t);e.at+=1}var La=e=>e?.waiting.size??0;function Zr(e,t){e?.waiting.set(t,e.at)}function Xr(e){let t=(0,O.useContext)(Et);(0,O.useLayoutEffect)(()=>{t?.waiting.delete(e)},[t,e])}function _a(e){let t={},n=!1,o=new Set,r=(0,O.lazy)(Sn(()=>e().then(a=>{n=!0;let s=a.default;function l(c){return Xr(t),(0,O.createElement)(s,c)}return{default:l}},a=>{for(let s of o)s.waiting.delete(t);throw a})));function i(a){let s=(0,O.useContext)(Et);return!n&&s&&(o.add(s),Zr(s,t)),(0,O.createElement)(r,a)}return i}var Jr=!1,Qr=!1,Pt=new Set;function Da(){Jr=!0}function Na(){Qr=!0;for(let e of[...Pt])e();Pt.clear()}var ei=()=>Qr||!Jr;function Wa(e){return ei()?(e(),()=>{}):(Pt.add(e),()=>void Pt.delete(e))}var Ur=!1;function vn(){for(let e of[...wn])e()}function ja(){Ur||typeof window>"u"||(Ur=!0,window.addEventListener("online",vn))}function bn(e){let t,n=!1,o=!1,r,i=0,a=new Set,s=()=>{i+=1;for(let g of[...a])g()},l=g=>(a.add(g),()=>void a.delete(g)),c=()=>i,u=()=>void y().catch(()=>{});function y(){if(n)return Promise.resolve(t);if(r)return r;let g=e().then(m=>(t=m,n=!0,o=!1,r=void 0,wn.delete(u),s(),m),m=>{throw r=void 0,o=!0,wn.add(u),ja(),s(),m});return g.catch(()=>{}),r=g,g}return{load:y,prefetch:u,get current(){return t},get failed(){return o},part(g,m={}){let x=m.what??"This part",T={};function f(k){(0,O.useSyncExternalStore)(l,c,c),Xr(T);let P=(0,O.useRef)(null),B=(0,O.useRef)(null),j=(0,O.useRef)(!1);return(0,O.useEffect)(()=>{o&&r===void 0&&u()},[]),n&&typeof document<"u"&&P.current!==null&&document.activeElement===P.current&&(j.current=!0),(0,O.useLayoutEffect)(()=>{if(!(!n||!j.current)){j.current=!1;for(let G=B.current?.nextElementSibling??null;G!==null;G=G.nextElementSibling){let C=G.matches(Yr)?G:G.querySelector(Yr);if(C instanceof HTMLElement){C.focus();return}}}}),n?(0,J.jsxs)(J.Fragment,{children:[j.current?(0,J.jsx)("span",{ref:B,hidden:!0}):null,g(t,k)]}):m.quiet?null:(0,J.jsx)(Ga,{what:x,button:P,...m.as?{as:m.as}:{}})}let h=(0,O.lazy)(Sn(()=>y().then(()=>({default:f}),()=>({default:f}))));function w(k){let P=(0,O.useContext)(Et),[B]=(0,O.useState)(()=>n||o);return!n&&!o&&Zr(P,T),(0,O.createElement)(B?f:h,k)}return w}}}var Yr="button,a[href],input,select,textarea,[tabindex]:not([tabindex='-1'])";function Ga({what:e,button:t,as:n="p"}){let r=typeof navigator<"u"&&navigator.onLine===!1?`${e} will load when you're back online.`:`${e} didn't load.`;return(0,J.jsxs)(n,{"data-testid":"lazy-part-missing",style:{margin:0,fontSize:"0.875rem",color:"var(--graview-ink-muted)"},children:[(0,J.jsx)("span",{role:"status",children:r})," ",(0,J.jsx)("button",{ref:t,type:"button","data-testid":"lazy-part-retry",onClick:vn,style:{font:"inherit",fontWeight:600,color:"var(--graview-ink)",background:"none",border:"1px solid var(--graview-edge)",borderRadius:6,padding:"2px 10px"},children:"Try again"})]})}var Pe=_(W(),1);function Fa(){let{selection:e,setSelection:t}=ie();return(0,Pe.useMemo)(()=>({selection:e,set:n=>t(n),clear:()=>t([]),toggle:n=>t(o=>o.includes(n)?o.filter(r=>r!==n):[...o,n]),isSelected:n=>e.includes(n)}),[e,t])}function Ba(){let{store:e}=ie(),t=wt();return(0,Pe.useMemo)(()=>Ka(e),[e,t])}var ti=new WeakMap;function Ka(e){let t=ti.get(e);if(!t){let n={violations:null};e.subscribe(()=>{n.violations=null}),ti.set(e,n),t=n}return t.violations??=e.violations(),t.violations}function qa(){let{view:e,setView:t}=ie();return(0,Pe.useMemo)(()=>({view:e,url:Y(e),focus:n=>t(o=>$(o,n)),show:n=>t(o=>Do(o,n)),toggle:n=>t(o=>lt(o,n)),go:n=>t(n)}),[e,t])}var xe={at:0,depth:0,listeners:new Set,tell(){for(let e of this.listeners)e()}};typeof window<"u"&&window.addEventListener("popstate",e=>{let t=e.state;xe.at=typeof t?.graview=="number"?t.graview:0,xe.at>xe.depth&&(xe.depth=xe.at),xe.tell()});var F=_(W(),1),Pn={profile:{trigger:"profile-button",pane:"profile",opens:"press",focus:"into",drawn:["shell","embed"]},places:{trigger:"app-places-open",pane:"app-places",opens:"press",focus:"into",drawn:["embed"]},here:{trigger:"here-open",pane:"here-list",opens:"press",focus:"into",drawn:["shell","embed","pages"]},"app-menu":{trigger:"app-menu-open",pane:"app-menu",opens:"press",focus:"into",drawn:["shell","embed","pages"]},inbox:{trigger:"inbox-button",pane:"inbox",opens:"press",focus:"into",drawn:["shell","embed","pages"]},share:{trigger:"app-share-open",pane:"app-share",opens:"press",focus:"into",drawn:["embed"]},"host-actions":{trigger:"host-bar-actions-open",pane:"host-bar-actions",opens:"press",focus:"into",drawn:["shell","embed"]},activity:{trigger:"activity-button",pane:"activity",opens:"press",focus:"into",drawn:["studio"]},find:{trigger:"find-box",pane:"find-strip",opens:"typing",focus:"stays",drawn:["shell"]},districts:{trigger:"beyond-more",pane:"beyond-list",opens:"press",focus:"into",drawn:["shell","embed"]},acts:{trigger:null,pane:"context-menu",opens:"context-menu",focus:"into",drawn:["shell","embed","pages"]},arrange:{trigger:"arrange-add",pane:"arrange-list",opens:"press",focus:"into",drawn:["pages"]},"studio-ask":{trigger:"studio-agent",pane:"studio-agent-panel",opens:"press",focus:"into",drawn:["studio"]}},za={position:"fixed",inset:"auto",margin:0,zIndex:Eo("popover"),boxSizing:"border-box"},At=6,pe=8,$a=e=>typeof e.showPopover=="function";function je(e){try{return e.matches(":popover-open")}catch{return!1}}function Ua(e){if(typeof e=="function"){let o=e();return o?{left:o.x,right:o.x,top:o.y,bottom:o.y}:null}let t=e.current;if(!t||!t.isConnected)return null;let n=t.getBoundingClientRect();return{left:n.left,right:n.right,top:n.top,bottom:n.bottom}}function kt(e,t,n={}){let o=Ua(t);if(!o)return;let r={width:document.documentElement.clientWidth||innerWidth,height:innerHeight},i=e.dataset.graviewDesignedHeight??=e.style.maxHeight;e.style.maxHeight=i;let a=e.getBoundingClientRect(),s=r.height-o.bottom-At-pe,l=o.top-At-pe,c=a.height<=s||s>=l,u=Math.max(96,Math.floor(c?s:l)),y=Math.min(a.height,u);a.height>u&&(e.style.maxHeight=i?`min(${i}, ${u}px)`:`${u}px`);let g=a.width,m=n.align==="start"?o.left:o.right-g,x=typeof t=="function"?null:t.current?.closest("[data-graview-embed]")?.getBoundingClientRect();x&&g<=x.right-x.left&&(m<x.left?m=o.left+g<=x.right?o.left:x.left:m+g>x.right&&(m=o.right-g>=x.left?o.right-g:x.right-g));let T=g>=r.width-2*pe?Math.max(0,(r.width-g)/2):Math.max(pe,Math.min(m,r.width-pe-g)),f=Math.round(c?o.bottom+At:Math.max(pe,o.top-At-y));e.style.left=`${Math.round(T)}px`,e.style.top=`${f}px`;let h=e.getBoundingClientRect();if(je(e)&&(Math.abs(h.left-Math.round(T))>2||Math.abs(h.top-f)>2)){let w=e.style.position;e.style.position=w==="absolute"?"fixed":"absolute",e.offsetWidth,e.style.position=w}}function ni(e,t,n,o={}){let r=o.align??"end";(0,F.useLayoutEffect)(()=>{let i=e.current;if(!t||!i)return;if($a(i)&&!je(i))try{i.showPopover(),Za()}catch{}let a=0,s=u=>{u?.target instanceof Node&&i.contains(u.target)||(cancelAnimationFrame(a),a=requestAnimationFrame(()=>kt(i,n,{align:r})))};kt(i,n,{align:r});let l=()=>{let u=i.style.top;cancelAnimationFrame(a),a=requestAnimationFrame(()=>{kt(i,n,{align:r});let y=Number.parseFloat(u);typeof n=="function"&&Number.isFinite(y)&&y+i.getBoundingClientRect().height<=innerHeight-pe&&(i.style.top=u)})};addEventListener("resize",s),addEventListener("scroll",s,!0);let c=typeof ResizeObserver>"u"?null:new ResizeObserver(()=>l());return c?.observe(i),()=>{if(cancelAnimationFrame(a),removeEventListener("resize",s),removeEventListener("scroll",s,!0),c?.disconnect(),i.isConnected&&je(i))try{i.hidePopover()}catch{}}},[t,e,r])}var En=new Set;function Ya(e){return En.add(e),()=>En.delete(e)}function Za(){for(let e of En)if(!(!e.isConnected||!je(e)))try{e.hidePopover(),e.showPopover()}catch{}}var Ee=null,Xa='button:not([disabled]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])';function Ja(e){for(let t of e.querySelectorAll(Xa))if(t.closest("[hidden]")===null&&!t.hasAttribute("data-graview-not-first")&&getComputedStyle(t).visibility!=="hidden")return t;return e}var xn=()=>{let e=document.activeElement;return e===null||e===document.body};function Qa(e,t={}){let{at:n,returnTo:o,onOpenChange:r}=t,i=t.popover!==!1,[a,s]=(0,F.useState)(!1),l=t.open??a,c=(0,F.useRef)(null),u=(0,F.useRef)(null),y=(0,F.useCallback)(w=>{c.current=w},[]),g=(0,F.useCallback)(w=>{u.current=w},[]),m=`graview-popover-${(0,F.useId)().replace(/:/g,"")}`,x=(0,F.useRef)({onOpenChange:r,returnTo:o,controlled:t.open!==void 0});x.current={onOpenChange:r,returnTo:o,controlled:t.open!==void 0};let T=(0,F.useCallback)(w=>{x.current.controlled||s(w),x.current.onOpenChange?.(w)},[]),f=(0,F.useCallback)(()=>{(document.querySelector(`[aria-controls="${m}"]`)??c.current??x.current.returnTo?.()??null)?.focus({preventScroll:!0})},[m]),h=(0,F.useCallback)(w=>{let k=u.current,P=typeof document>"u"?null:document.activeElement,B=P===null||P===document.body||k!==null&&k.contains(P);T(!1),!(!w||!B)&&(f(),requestAnimationFrame(()=>{xn()&&f()}))},[T,f]);return ni(u,i&&l,n??c,t.align?{align:t.align}:{}),(0,F.useEffect)(()=>{if(!i||!l)return;let w={name:e,close:()=>h(!1)};if(Ee&&Ee.close!==w.close&&Ee.close(),Ee=w,Pn[e].focus==="into"){let C=u.current;C&&!C.contains(document.activeElement)&&Ja(C).focus({preventScroll:!0})}let k=C=>{C.key==="Escape"&&h(!0)},P=C=>{let E=C.target;if(!(E instanceof Node))return;let V=u.current;if(V?.contains(E)||c.current?.contains(E))return;let L=E instanceof Element?E.closest('[role="dialog"], [role="alertdialog"]'):null;L&&!(V&&L.contains(V))||(h(!1),Pn[e].focus==="into"&&requestAnimationFrame(()=>{(xn()||V!==null&&V.contains(document.activeElement))&&f()}))},B=null,j=null,G=C=>{let E=C.target;if(!(E instanceof Element))return;let V=u.current,L=E.closest('[role="dialog"], [role="alertdialog"]');!L||V&&(V.contains(L)||L.contains(V))||(B=L,h(!1))};return document.addEventListener("keydown",k),document.addEventListener("pointerdown",P,!0),document.addEventListener("focusin",G),()=>{document.removeEventListener("keydown",k),document.removeEventListener("pointerdown",P,!0),document.removeEventListener("focusin",G);let C=B;C&&typeof MutationObserver<"u"&&(j?.disconnect(),j=new MutationObserver(()=>{C.isConnected||(j?.disconnect(),requestAnimationFrame(()=>{(xn()||document.activeElement.closest("[hidden]")!==null)&&f()}))}),j.observe(document.body,{childList:!0,subtree:!0}),setTimeout(()=>j?.disconnect(),10*6e4)),Ee?.close===w.close&&(Ee=null)}},[i,l,e,h,f]),{open:l,setOpen:w=>w?T(!0):h(!0),toggle:()=>l?h(!0):T(!0),trigger:{ref:y,"aria-expanded":l,"aria-controls":m,"data-graview-popover-trigger":e},pane:{ref:g,id:m,popover:"manual",tabIndex:-1,"data-graview-popover":e,"data-graview-overlay":""}}}var Ae=_(W(),1);var es=bn(ot(()=>(__graviewPreload(import.meta.url,["./chunk.JCKIJSW7.js","./chunk.SDO3U72B.js","./chunk.6L6RUOSF.js","./chunk.FQLNBIQ5.js","./chunk.AJZBJBMO.js"]),import("./chunk.4ZEHLUXV.js"))));function ts(e,t,n){let o,r=!1,i=()=>{let{hidden:s,removed:l}=t.current();o||r||s.length+l.length===0||(o=()=>{},es.load().then(c=>{r||(o=c.watchTidied(e,t,n))},String))};i();let a=t.onChange?.(i);return()=>{r=!0,a?.(),o?.()}}function ns(e,t){let[n,o]=(0,Ae.useState)();return(0,Ae.useEffect)(()=>t?ts(e,t,r=>o([e,r])):void 0,[e,t]),n?.[0]===e?n[1]:e}var oi=_(W(),1),os=(0,oi.createContext)(!1);var ri=_(W(),1),rs=(0,ri.createContext)(null);var ii=_(W(),1),An='button:not([disabled]), a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), summary, [tabindex]:not([tabindex="-1"])',kn=e=>e instanceof HTMLElement&&(e.matches(An)||e.hasAttribute("tabindex")),Ge=e=>typeof e.checkVisibility=="function"?e.checkVisibility():e.getClientRects().length>0;function is(e,t){let n=l=>l.replace(/["\\]/g,"\\$&"),o=t.getAttribute("data-testid"),r=t.getAttribute("data-graview-pick"),i=t.getAttribute("aria-label"),a=o?`[data-testid="${n(o)}"]`:r?`[data-graview-pick="${n(r)}"]`:i?`${t.tagName.toLowerCase()}[aria-label="${n(i)}"]`:null;if(!a)return null;let s=e.querySelector(a);return s&&kn(s)&&Ge(s)?s:null}var as=e=>e.isConnected&&kn(e)&&!e.matches(":disabled")&&e instanceof HTMLElement&&Ge(e);function ai(e,t){let n=t?is(e,t):null;if(n)return n;let o=e.querySelector("[data-graview-view][tabindex]");if(o&&Ge(o))return o;for(let r of e.querySelectorAll(An))if(Ge(r))return r;return kn(e)&&Ge(e)?e:null}function ss(e){(0,ii.useEffect)(()=>{let t=e.current;if(!t||typeof MutationObserver>"u")return;let n=[],o=f=>{let h=f.target;if(h instanceof Element){n=[];for(let w=h;w&&w!==t.parentElement;w=w.parentElement)n.push(w)}},r=!1,i=!1,a=t.ownerDocument,s=()=>!i&&a.defaultView!==null,l=(f,h)=>void setTimeout(()=>s()&&h(),f),c=f=>void requestAnimationFrame(()=>s()&&f()),u=f=>{if(r=!1,i)return;let h=a.activeElement;if(!(!(h===null||h===a.body||h===a.documentElement)||n.length===0)){if(as(n[0])){f&&n[0]instanceof HTMLElement&&n[0].focus({preventScroll:!0});return}for(let k of n.slice(1)){if(!k.isConnected)continue;let P=ai(k,n[0]);if(P){P.focus({preventScroll:!0}),n=[];return}}}},y=(f,h=Date.now()+2500)=>{l(100,()=>{u(f);let w=a.activeElement;(w===null||w===a.body||w===a.documentElement)&&n.length>0&&Date.now()<h&&y(f,h)})},g=()=>{r||n.length===0||(r=!0,l(60,()=>c(()=>{u(!1),y(!1)})))},m=f=>{if(!(f instanceof KeyboardEvent&&!["Enter"," ","Escape"].includes(f.key))){if(!(f instanceof KeyboardEvent)){let h=f.target instanceof Element?f.target.closest(An):null,w=a.activeElement,k=w===null||w===a.body||w===a.documentElement;if(h&&k&&t.contains(h)){n=[];for(let P=h;P&&P!==t.parentElement;P=P.parentElement)n.push(P);l(150,()=>c(()=>{u(!1),y(!1)}));return}}!(f instanceof KeyboardEvent)&&!(f.target instanceof Node&&n[0]?.contains(f.target))||l(150,()=>c(()=>{u(!0),y(!0)}))}},x=new MutationObserver(()=>{n.length>0&&!n[0].isConnected&&g()}),T=f=>{f.relatedTarget===null&&g()};return t.addEventListener("focusin",o),t.addEventListener("focusout",T),t.addEventListener("click",m),t.addEventListener("keydown",m),x.observe(t,{childList:!0,subtree:!0}),()=>{i=!0,t.removeEventListener("focusin",o),t.removeEventListener("focusout",T),t.removeEventListener("click",m),t.removeEventListener("keydown",m),x.disconnect()}},[e])}export{we as a,Y as b,at as c,ds as d,us as e,Lo as f,Ho as g,_o as h,Ft as i,$ as j,Do as k,ne as l,de as m,st as n,Le as o,lt as p,ut as q,Bt as r,Se as s,fs as t,xi as u,oe as v,No as w,ue as x,Wo as y,Pi as z,ys as A,jo as B,Kt as C,Ei as D,Ai as E,ki as F,W as G,en as H,zi as I,Ui as J,rr as K,Cs as L,pt as M,Yi as N,ft as O,Zi as P,yt as Q,Xi as R,_e as S,ar as T,Ji as U,nn as V,on as W,rn as X,De as Y,da as Z,Ne as _,ua as $,ca as aa,Hr as ba,ha as ca,Sa as da,yl as ea,Pa as fa,ie as ga,gn as ha,wt as ia,Ea as ja,Aa as ka,ka as la,yn as ma,Ra as na,hn as oa,Dr as pa,Ta as qa,Ca as ra,Wr as sa,jr as ta,Gr as ua,Fr as va,Br as wa,Kr as xa,qr as ya,zr as za,$r as Aa,Ma as Ba,Oa as Ca,Sn as Da,Va as Ea,Et as Fa,Ia as Ga,Ha,La as Ia,_a as Ja,Da as Ka,Na as La,ei as Ma,Wa as Na,bn as Oa,ns as Pa,os as Qa,rs as Ra,Fa as Sa,Ba as Ta,qa as Ua,xe as Va,ss as Wa,za as Xa,je as Ya,ni as Za,Ya as _a,Qa as $a};
2
+ /*! Bundled license information:
3
+
4
+ react/cjs/react.production.js:
5
+ (**
6
+ * @license React
7
+ * react.production.js
8
+ *
9
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ *)
14
+
15
+ react/cjs/react-jsx-runtime.production.js:
16
+ (**
17
+ * @license React
18
+ * react-jsx-runtime.production.js
19
+ *
20
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ *)
25
+ */