@nuxt/devtools 4.0.0-alpha.4 → 4.0.0-alpha.6

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 (211) hide show
  1. package/dist/chunks/module-main.mjs +40 -34
  2. package/dist/client/200.html +1 -1
  3. package/dist/client/404.html +1 -1
  4. package/dist/client/_nuxt/__blank-ekrx7eve.js +1 -0
  5. package/dist/client/_nuxt/analyze-build-gtjxxh9s.js +1 -0
  6. package/dist/client/_nuxt/assets-fxuoynew.js +6 -0
  7. package/dist/client/_nuxt/auth-required-panel-gwrodxrm.js +1 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/386e78c8-3698-49a8-a7c5-53c44542b939.json +1 -0
  10. package/dist/client/_nuxt/client-jwk7bkap.js +1 -0
  11. package/dist/client/_nuxt/{code-diff-cxfxstwy.js → code-diff-d1bf4mlz.js} +3 -3
  12. package/dist/client/_nuxt/code-snippets-nodldh90.js +1 -0
  13. package/dist/client/_nuxt/components-ibu6c1zd.js +1 -0
  14. package/dist/client/_nuxt/composable-item-lb3qexrh.js +1 -0
  15. package/dist/client/_nuxt/custom-_name_-dt22ybu3.js +1 -0
  16. package/dist/client/_nuxt/data-schema-button-m4wb470q.js +1 -0
  17. package/dist/client/_nuxt/data-schema-drawer-5ccj6aug.js +2 -0
  18. package/dist/client/_nuxt/debug-nxl66qh3.js +1 -0
  19. package/dist/client/_nuxt/default-ibmlv6hu.js +1 -0
  20. package/dist/client/_nuxt/dist-nsuzcp77.js +1 -0
  21. package/dist/client/_nuxt/duration-display-cfe3xsok.js +1 -0
  22. package/dist/client/_nuxt/entry.css-m21ytcnz.css +1 -0
  23. package/dist/client/_nuxt/error-404-izmgsqlm.js +1 -0
  24. package/dist/client/_nuxt/error-404.css-l9jcssuy.css +1 -0
  25. package/dist/client/_nuxt/error-500-fejd4grh.js +1 -0
  26. package/dist/client/_nuxt/error-500.css-he4ew8b1.css +1 -0
  27. package/dist/client/_nuxt/{error-ct6hbfyl.js → error-mm873c55.js} +2 -2
  28. package/dist/client/_nuxt/filepath-item-calgslzq.js +1 -0
  29. package/dist/client/_nuxt/full-pesi6bu3.js +1 -0
  30. package/dist/client/_nuxt/h0fobd1u.js +4 -0
  31. package/dist/client/_nuxt/help-fab-ietvwhig.js +1 -0
  32. package/dist/client/_nuxt/hooks-mqgelnks.js +1 -0
  33. package/dist/client/_nuxt/imports-bofdhcsr.js +1 -0
  34. package/dist/client/_nuxt/launch-page-i8mgxym7.js +1 -0
  35. package/dist/client/_nuxt/modules-b6uha2ss.js +1 -0
  36. package/dist/client/_nuxt/nbadge-ft1i3ddy.js +1 -0
  37. package/dist/client/_nuxt/ncheckbox-gl62y715.js +1 -0
  38. package/dist/client/_nuxt/ncode-block-ksrq5ppu.js +2 -0
  39. package/dist/client/_nuxt/{ncode-block.css-o2ixs97j.css → ncode-block.css-ivoxtfjk.css} +1 -1
  40. package/dist/client/_nuxt/ndrawer-evv584t1.js +1 -0
  41. package/dist/client/_nuxt/ndropdown-dqqc8bnq.js +1 -0
  42. package/dist/client/_nuxt/nicon-title-f3ho3hah.js +1 -0
  43. package/dist/client/_nuxt/nlink-endeyoly.js +1 -0
  44. package/dist/client/_nuxt/nmarkdown-iw4stzqp.js +1 -0
  45. package/dist/client/_nuxt/nnavbar-n8fcnalx.js +1 -0
  46. package/dist/client/_nuxt/none-gr24yqiq.js +1 -0
  47. package/dist/client/_nuxt/nsection-block-n5u7wj9x.js +1 -0
  48. package/dist/client/_nuxt/nsection-block.css-h1lgpwgm.css +1 -0
  49. package/dist/client/_nuxt/nselect-kdzalcm2.js +1 -0
  50. package/dist/client/_nuxt/nselect-tabs-e440xayq.js +1 -0
  51. package/dist/client/_nuxt/nswitch-pdw73751.js +1 -0
  52. package/dist/client/_nuxt/ntip-m8x8y44j.js +1 -0
  53. package/dist/client/_nuxt/nuxt-kphganvs.js +1 -0
  54. package/dist/client/_nuxt/open-graph-mtq8qyx5.js +3 -0
  55. package/dist/client/_nuxt/overview-mgkokpl9.js +1 -0
  56. package/dist/client/_nuxt/pages-g3tcvbsn.js +1 -0
  57. package/dist/client/_nuxt/pages-lk0hxlsc.js +1 -0
  58. package/dist/client/_nuxt/payload-ovd8emqe.js +1 -0
  59. package/dist/client/_nuxt/pinia-e6em75yg.js +1 -0
  60. package/dist/client/_nuxt/plugins-ojph2z4c.js +1 -0
  61. package/dist/client/_nuxt/ready-b5u27bv4.js +1 -0
  62. package/dist/client/_nuxt/render-tree-iwtso0n9.js +1 -0
  63. package/dist/client/_nuxt/rolldown-runtime-imbltlrc.js +1 -0
  64. package/dist/client/_nuxt/rpc-ewzip6fb.js +4 -0
  65. package/dist/client/_nuxt/runtime-configs-gyhmrfcz.js +1 -0
  66. package/dist/client/_nuxt/{server-discovery-epl1odcn.js → server-discovery-cfu428ir.js} +1 -1
  67. package/dist/client/_nuxt/server-route-inputs-hhxdu10p.js +1 -0
  68. package/dist/client/_nuxt/server-routes-efc7olve.js +7 -0
  69. package/dist/client/_nuxt/server-tasks-o59rfww6.js +1 -0
  70. package/dist/client/_nuxt/settings-c6tbo50r.js +1 -0
  71. package/dist/client/_nuxt/stacktrace-list-c5b46nul.js +1 -0
  72. package/dist/client/_nuxt/{state-components-grvqi1pg.js → state-components-eaw2evd3.js} +1 -1
  73. package/dist/client/_nuxt/state-editor-jm35t8p1.js +1 -0
  74. package/dist/client/_nuxt/state-modules-oox7nhib.js +1 -0
  75. package/dist/client/_nuxt/storage-fdd2zc94.js +1 -0
  76. package/dist/client/_nuxt/{storage-options-ll4al4nh.js → storage-options-ho965h55.js} +1 -1
  77. package/dist/client/_nuxt/terminals-b8awmi75.js +1 -0
  78. package/dist/client/_nuxt/timeline-nsh72kov.js +31 -0
  79. package/dist/client/_nuxt/{unocss-runtime-flq5aaes.js → unocss-runtime-mcb0a6oh.js} +1 -1
  80. package/dist/client/_nuxt/utils-hgmynvjd.js +2 -0
  81. package/dist/client/_nuxt/vendor/{json-editor-vue-go859b33.js → json-editor-vue-mkw4apmc.js} +92 -92
  82. package/dist/client/_nuxt/vendor/{json-editor-vue.css-lkbe0qhh.css → json-editor-vue.css-lb1ewor6.css} +1 -1
  83. package/dist/client/_nuxt/vendor/markdown-it-gg8o3tmh.js +14 -0
  84. package/dist/client/_nuxt/vendor/{quicktype-core-h9yg0llp.js → quicktype-core-ozubcbyl.js} +27 -27
  85. package/dist/client/_nuxt/vendor/shiki-c7z35hpo.js +293 -0
  86. package/dist/client/_nuxt/vendor/unocss-mfjt4fak.js +3 -0
  87. package/dist/client/_nuxt/vendor/unocss.css-flyrgbwp.css +1 -0
  88. package/dist/client/_nuxt/vendor/vis-izx2wksk.js +26 -0
  89. package/dist/client/_nuxt/vendor/{xterm.css-jqmddlol.css → xterm.css-j9zpjwmg.css} +1 -1
  90. package/dist/client/_nuxt/virtual-files-met9zkti.js +1 -0
  91. package/dist/client/_nuxt/vue-devtools-bl144b70.js +4 -0
  92. package/dist/client/_nuxt/vue-router-cnnrtyb0.js +1 -0
  93. package/dist/client/index.html +1 -1
  94. package/dist/module.json +1 -1
  95. package/dist/module.mjs +1 -1
  96. package/dist/runtime/plugins/devtools.client.js +1 -1
  97. package/dist/runtime/plugins/view/client.js +1 -1
  98. package/dist/shared/{devtools.DClER4Dv.mjs → devtools.nEotcg1R.mjs} +1 -1
  99. package/dist/webcomponents/index.mjs +23 -27
  100. package/package.json +46 -45
  101. package/dist/client/_nuxt/__blank-dpye2azp.js +0 -1
  102. package/dist/client/_nuxt/analyze-build-bkc0yj70.js +0 -1
  103. package/dist/client/_nuxt/assets-c8un2dgk.js +0 -6
  104. package/dist/client/_nuxt/auth-required-panel-f0bx4jy3.js +0 -1
  105. package/dist/client/_nuxt/builds/meta/c4431537-3cdf-4a17-8364-5d3d90841be5.json +0 -1
  106. package/dist/client/_nuxt/client-fxrhvlf0.js +0 -1
  107. package/dist/client/_nuxt/code-snippets-jmly69z5.js +0 -1
  108. package/dist/client/_nuxt/components-jtkex3ry.js +0 -1
  109. package/dist/client/_nuxt/composable-item-ctv0s77c.js +0 -1
  110. package/dist/client/_nuxt/composables-g3h8z0a3.js +0 -1
  111. package/dist/client/_nuxt/custom-_name_-lmgyewpm.js +0 -1
  112. package/dist/client/_nuxt/data-schema-button-lia8jo2z.js +0 -1
  113. package/dist/client/_nuxt/data-schema-drawer-k5lpnjpj.js +0 -2
  114. package/dist/client/_nuxt/debug-21oc3lwa.js +0 -1
  115. package/dist/client/_nuxt/default-l5unzaf9.js +0 -1
  116. package/dist/client/_nuxt/dialog-jbq54nkm.js +0 -1
  117. package/dist/client/_nuxt/dist-bxsmety0.js +0 -1
  118. package/dist/client/_nuxt/dist-el7s75zv.js +0 -1
  119. package/dist/client/_nuxt/dist-fas03c07.js +0 -1
  120. package/dist/client/_nuxt/dist-mnod32r1.js +0 -1
  121. package/dist/client/_nuxt/duration-display-gcccmged.js +0 -1
  122. package/dist/client/_nuxt/editor-ib5dg7xf.js +0 -1
  123. package/dist/client/_nuxt/entry.css-nqh1m7yk.css +0 -1
  124. package/dist/client/_nuxt/error-404-o4nzga33.js +0 -1
  125. package/dist/client/_nuxt/error-404.css-cfm1arun.css +0 -1
  126. package/dist/client/_nuxt/error-500-lbc8po65.js +0 -1
  127. package/dist/client/_nuxt/error-500.css-dkbj3cof.css +0 -1
  128. package/dist/client/_nuxt/filepath-item-mxes3g27.js +0 -1
  129. package/dist/client/_nuxt/full-g7ubub1r.js +0 -1
  130. package/dist/client/_nuxt/fuse-ic4l3jjo.js +0 -1
  131. package/dist/client/_nuxt/gdsye0vf.js +0 -2
  132. package/dist/client/_nuxt/help-fab-vp6gbv3k.js +0 -1
  133. package/dist/client/_nuxt/hooks-iu6wyfgn.js +0 -1
  134. package/dist/client/_nuxt/imports-jz51309y.js +0 -1
  135. package/dist/client/_nuxt/launch-page-j3htdbh0.js +0 -1
  136. package/dist/client/_nuxt/mitt.es-nswlq02h.js +0 -1
  137. package/dist/client/_nuxt/modules-j1gis064.js +0 -1
  138. package/dist/client/_nuxt/nbadge-7zr03ihs.js +0 -1
  139. package/dist/client/_nuxt/nbutton-dy9mskkk.js +0 -1
  140. package/dist/client/_nuxt/ncard-bs9j5ske.js +0 -1
  141. package/dist/client/_nuxt/ncheckbox-msykavgu.js +0 -1
  142. package/dist/client/_nuxt/ncode-block-lbhgksmi.js +0 -2
  143. package/dist/client/_nuxt/ndark-toggle-dd7qey8l.js +0 -1
  144. package/dist/client/_nuxt/ndialog-nuj407ct.js +0 -3
  145. package/dist/client/_nuxt/ndrawer-cshktk1a.js +0 -1
  146. package/dist/client/_nuxt/ndropdown-g8mioo07.js +0 -1
  147. package/dist/client/_nuxt/nicon-do46fhz3.js +0 -1
  148. package/dist/client/_nuxt/nicon-title-jjiuucly.js +0 -1
  149. package/dist/client/_nuxt/nlink-kqls97wt.js +0 -1
  150. package/dist/client/_nuxt/nloading-b6gn4u1s.js +0 -1
  151. package/dist/client/_nuxt/nmarkdown-c1xqnmie.js +0 -1
  152. package/dist/client/_nuxt/nnavbar-h4hz44io.js +0 -1
  153. package/dist/client/_nuxt/none-kh2oj8rz.js +0 -1
  154. package/dist/client/_nuxt/npanel-grids-ip7w4ejt.js +0 -1
  155. package/dist/client/_nuxt/npm-bqk49gno.js +0 -1
  156. package/dist/client/_nuxt/nsection-block-l37co05t.js +0 -1
  157. package/dist/client/_nuxt/nsection-block.css-h05mpq8x.css +0 -1
  158. package/dist/client/_nuxt/nselect-mb92757x.js +0 -1
  159. package/dist/client/_nuxt/nselect-tabs-gzwv1q7y.js +0 -1
  160. package/dist/client/_nuxt/nsplit-pane-nneagzae.js +0 -1
  161. package/dist/client/_nuxt/nsplit-pane.css-cyge27bh.css +0 -1
  162. package/dist/client/_nuxt/nswitch-hxwa8dwy.js +0 -1
  163. package/dist/client/_nuxt/ntext-input-ooyn577q.js +0 -1
  164. package/dist/client/_nuxt/ntip-czdtbj5r.js +0 -1
  165. package/dist/client/_nuxt/nuxt-link-bm02zjpm.js +0 -1
  166. package/dist/client/_nuxt/nuxt-logo-bq85idrv.js +0 -1
  167. package/dist/client/_nuxt/nuxt-n7rqurxx.js +0 -1
  168. package/dist/client/_nuxt/open-graph-fax7wv7x.js +0 -3
  169. package/dist/client/_nuxt/overview-8jufdkso.js +0 -1
  170. package/dist/client/_nuxt/pages-cudjh8j7.js +0 -1
  171. package/dist/client/_nuxt/pages-n6yugo8p.js +0 -1
  172. package/dist/client/_nuxt/payload-nms0e2pn.js +0 -1
  173. package/dist/client/_nuxt/pinia-lqdm1sj6.js +0 -1
  174. package/dist/client/_nuxt/plugins-d24ibpd8.js +0 -1
  175. package/dist/client/_nuxt/ready-chvd8pav.js +0 -1
  176. package/dist/client/_nuxt/render-tree-ipfeq7kp.js +0 -1
  177. package/dist/client/_nuxt/rolldown-runtime-oipoa1or.js +0 -1
  178. package/dist/client/_nuxt/rpc-isxadwf4.js +0 -1
  179. package/dist/client/_nuxt/runtime-configs-b6hwtm9f.js +0 -1
  180. package/dist/client/_nuxt/server-route-inputs-gybyb0r7.js +0 -1
  181. package/dist/client/_nuxt/server-routes-iyhit45p.js +0 -7
  182. package/dist/client/_nuxt/server-tasks-iu8kht7l.js +0 -1
  183. package/dist/client/_nuxt/settings-fmpxy0sd.js +0 -1
  184. package/dist/client/_nuxt/splitpanes.es-m52r20uv.js +0 -1
  185. package/dist/client/_nuxt/stacktrace-list-mzv9h3wp.js +0 -1
  186. package/dist/client/_nuxt/state-editor-bluyryo2.js +0 -1
  187. package/dist/client/_nuxt/state-modules-nila4w91.js +0 -1
  188. package/dist/client/_nuxt/state-routes-jda6rt5m.js +0 -1
  189. package/dist/client/_nuxt/state-schema-dxaz6x8f.js +0 -1
  190. package/dist/client/_nuxt/state-subprocess-lka458r1.js +0 -1
  191. package/dist/client/_nuxt/state-tabs-itldyzgg.js +0 -1
  192. package/dist/client/_nuxt/storage-e6rsfrwe.js +0 -1
  193. package/dist/client/_nuxt/storage-j9qzpha9.js +0 -1
  194. package/dist/client/_nuxt/tab-icon-me90e54n.js +0 -1
  195. package/dist/client/_nuxt/telemetry-iyty3hdu.js +0 -1
  196. package/dist/client/_nuxt/terminals-d6ve9pli.js +0 -1
  197. package/dist/client/_nuxt/timeline-ed79yl0t.js +0 -31
  198. package/dist/client/_nuxt/utils-0y38f305.js +0 -2
  199. package/dist/client/_nuxt/vendor/markdown-it-cxwyw9wc.js +0 -14
  200. package/dist/client/_nuxt/vendor/shiki-dger8vg9.js +0 -153
  201. package/dist/client/_nuxt/vendor/unocss-d0gwgu4l.js +0 -3
  202. package/dist/client/_nuxt/vendor/unocss.css-3gd0e2sv.css +0 -1
  203. package/dist/client/_nuxt/vendor/vis-iaw6hxx2.js +0 -26
  204. package/dist/client/_nuxt/virtual-files-jir7s4c5.js +0 -1
  205. package/dist/client/_nuxt/vue-devtools-gkfop7rb.js +0 -4
  206. package/dist/client/_nuxt/vue-router-bjsf3ueg.js +0 -1
  207. /package/dist/client/_nuxt/{_plugin-vue_export-helper-cxcynmu7.js → _plugin-vue_export-helper-d9irwgla.js} +0 -0
  208. /package/dist/client/_nuxt/{color-jp2clyon.js → color-abaog8vc.js} +0 -0
  209. /package/dist/client/_nuxt/{composables-cjr9vk21.js → composables-ioamscf4.js} +0 -0
  210. /package/dist/client/_nuxt/{constants-xk5tdj23.js → constants-g2z8m4rs.js} +0 -0
  211. /package/dist/client/_nuxt/vendor/{xterm-cbq9q6da.js → xterm-eb5atty5.js} +0 -0
@@ -1 +0,0 @@
1
- import{A as e,Ct as t,E as n,Et as r,F as i,K as a,M as o,Mt as s,ct as c,m as l,wt as u,xt as d}from"./vendor/json-editor-vue-go859b33.js";var f=typeof document<`u`;function p(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function m(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&p(e.default)}var h=Object.assign;function g(e,t){let n={};for(let r in t){let i=t[r];n[r]=v(i)?i.map(e):e(i)}return n}var _=()=>{},v=Array.isArray;function ee(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var y=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),b=Symbol(``);y.MATCHER_NOT_FOUND,y.NAVIGATION_GUARD_REDIRECT,y.NAVIGATION_ABORTED,y.NAVIGATION_CANCELLED,y.NAVIGATION_DUPLICATED;function x(e,t){return h(Error(),{type:e,[b]:!0},t)}function S(e,t){return e instanceof Error&&b in e&&(t==null||!!(e.type&t))}var te=Symbol(``),ne=Symbol(``),re=Symbol(``),ie=Symbol(``),ae=Symbol(``);function oe(e){return o(ie)}var se=/#/g,ce=/&/g,C=/\//g,w=/=/g,T=/\?/g,E=/\+/g,le=/%5B/g,D=/%5D/g,O=/%5E/g,ue=/%60/g,k=/%7B/g,de=/%7C/g,A=/%7D/g,fe=/%20/g;function j(e){return e==null?``:encodeURI(``+e).replace(de,`|`).replace(le,`[`).replace(D,`]`)}function pe(e){return j(e).replace(k,`{`).replace(A,`}`).replace(O,`^`)}function M(e){return j(e).replace(E,`%2B`).replace(fe,`+`).replace(se,`%23`).replace(ce,`%26`).replace(ue,"`").replace(k,`{`).replace(A,`}`).replace(O,`^`)}function N(e){return M(e).replace(w,`%3D`)}function P(e){return j(e).replace(se,`%23`).replace(T,`%3F`)}function me(e){return P(e).replace(C,`%2F`)}function F(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var I=/\/$/,L=e=>e.replace(I,``);function R(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=W(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:F(o)}}function he(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function z(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ge(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&B(t.matched[r],n.matched[i])&&V(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function B(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function V(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!H(e[n],t[n]))return!1;return!0}function H(e,t){return v(e)?U(e,t):v(t)?U(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function U(e,t){return v(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function W(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},_e=function(e){return e.pop=`pop`,e.push=`push`,e}({}),K=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function q(e){if(!e)if(f){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),L(e)}var ve=/^[^#]+#/;function ye(e,t){return e.replace(ve,`#`)+t}function be(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var J=()=>({left:window.scrollX,top:window.scrollY});function xe(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=be(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Se(e,t){return(history.state?history.state.position-t:-1)+e}var Ce=new Map;function we(e,t){Ce.set(e,t)}function Te(e){let t=Ce.get(e);return Ce.delete(e),t}function Ee(e){return typeof e==`string`||e&&typeof e==`object`}function De(e){return typeof e==`string`||typeof e==`symbol`}function Oe(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(E,` `),i=r.indexOf(`=`),a=F(i<0?r:r.slice(0,i)),o=i<0?null:F(r.slice(i+1));if(a in t){let e=t[a];v(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function ke(e){let t=``;for(let n in e){let r=e[n];if(n=N(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(v(r)?r.map(e=>e&&M(e)):[r&&M(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Ae(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=v(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Y(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(x(y.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Ee(e)?c(x(y.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function je(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(p(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=m(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}return a}function Me(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>B(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>B(e,s))||i.push(s))}return[n,r,i]}var Ne=()=>location.protocol+`//`+location.host;function Pe(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),z(n,``)}return z(n,e)+r+i}function Fe(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Pe(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:_e.pop,direction:u?u>0?K.forward:K.back:K.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(h({},e.state,{scroll:J()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Ie(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?J():null}}function Le(e){let{history:t,location:n}=window,r={value:Pe(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ne()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,h({},t.state,Ie(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=h({},i.value,t.state,{forward:e,scroll:J()});a(o.current,o,!0),a(e,h({},Ie(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Re(e){e=q(e);let t=Le(e),n=Fe(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=h({location:``,base:e,go:r,createHref:ye.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function ze(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Re(e)}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),Be={type:Z.Static,value:``},Ve=/[a-zA-Z0-9_]/;function He(e){if(!e)return[[]];if(e===`/`)return[[Be]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:Ve.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Ue=`[^/]+?`,We={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),Ge=/[.+*?^${}()[\]/\\]/g;function Ke(e,t){let n=h({},We,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(Ge,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ue;if(u!==Ue){s+=$.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Z.Static)n+=e.value;else if(e.type===Z.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(v(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=v(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function qe(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function Je(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=qe(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ye(r))return 1;if(Ye(i))return-1}return i.length-r.length}function Ye(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Xe={strict:!1,end:!0,sensitive:!1};function Ze(e,t,n){let r=h(Ke(He(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Qe(e,t){let n=[],r=new Map;t=ee(Xe,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=et(e);s.aliasOf=r&&r.record;let l=ee(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(et(h({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ze(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!nt(d)&&o(e.name)),ot(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:_}function o(e){if(De(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=it(e,n);n.splice(t,0,e),e.record.name&&!nt(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw x(y.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=h($e(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&$e(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw x(y.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=h({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:rt(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function $e(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function et(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:tt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function tt(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function nt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rt(e){return e.reduce((e,t)=>h(e,t.meta),{})}function it(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Je(e,t[i])<0?r=i:n=i+1}let i=at(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function at(e){let t=e;for(;t=t.parent;)if(ot(t)&&Je(e,t)===0)return t}function ot({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function st(e){let t=o(re),n=o(ie),r=l(()=>{let n=s(e.to);return t.resolve(n)}),i=l(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(B.bind(null,i));if(o>-1)return o;let s=ft(e[t-2]);return t>1&&ft(i)===s&&a[a.length-1].path!==s?a.findIndex(B.bind(null,e[t-2])):o}),a=l(()=>i.value>-1&&dt(n.params,r.value.params)),c=l(()=>i.value>-1&&i.value===n.matched.length-1&&V(n.params,r.value.params));function u(n={}){if(ut(n)){let n=t[s(e.replace)?`replace`:`push`](s(e.to)).catch(_);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:l(()=>r.value.href),isActive:a,isExactActive:c,navigate:u}}function ct(e){return e.length===1?e[0]:e}var lt=n({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:st,setup(t,{slots:n}){let r=d(st(t)),{options:i}=o(re),a=l(()=>({[pt(t.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[pt(t.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let i=n.default&&ct(n.default(r));return t.custom?i:e(`a`,{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}});function ut(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function dt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!v(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ft(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var pt=(e,t,n)=>e??t??n,mt=n({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(n,{attrs:r,slots:i}){let u=o(ae),d=l(()=>n.route||u.value),f=o(ne,0),p=l(()=>{let e=s(f),{matched:t}=d.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),m=l(()=>d.value.matched[p.value]);a(ne,l(()=>p.value+1)),a(te,m),a(ae,d);let g=t();return c(()=>[g.value,m.value,n.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!B(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let t=d.value,a=n.name,o=m.value,s=o&&o.components[a];if(!s)return ht(i.default,{Component:s,route:t});let c=o.props[a],l=e(s,h({},c?c===!0?t.params:typeof c==`function`?c(t):c:null,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:g}));return ht(i.default,{Component:l,route:t})||l}}});function ht(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var gt=mt;function _t(e){let t=Qe(e.routes,e),n=e.parseQuery||Oe,a=e.stringifyQuery||ke,o=e.history,c=Y(),l=Y(),d=Y(),p=r(G),m=G;f&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=g.bind(null,e=>``+e),b=g.bind(null,me),te=g.bind(null,F);function ne(e,n){let r,i;return De(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function oe(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function se(){return t.getRoutes().map(e=>e.record)}function ce(e){return!!t.getRecordMatcher(e)}function C(e,r){if(r=h({},r||p.value),typeof e==`string`){let i=R(n,e,r.path),a=t.resolve({path:i.path},r),s=o.createHref(i.fullPath);return h(i,a,{params:te(a.params),hash:F(i.hash),redirectedFrom:void 0,href:s})}let i;if(e.path!=null)i=h({},e,{path:R(n,e.path,r.path).path});else{let t=h({},e.params);for(let e in t)t[e]??delete t[e];i=h({},e,{params:b(t)}),r.params=b(r.params)}let s=t.resolve(i,r),c=e.hash||``;s.params=ee(te(s.params));let l=he(a,h({},e,{hash:pe(c),path:s.path})),u=o.createHref(l);return h({fullPath:l,hash:c,query:a===ke?Ae(e.query):e.query||{}},s,{redirectedFrom:void 0,href:u})}function w(e){return typeof e==`string`?R(n,e,p.value.path):h({},e)}function T(e,t){if(m!==e)return x(y.NAVIGATION_CANCELLED,{from:t,to:e})}function E(e){return O(e)}function le(e){return E(h(w(e),{replace:!0}))}function D(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=w(i):{path:i},i.params={}),h({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function O(e,t){let n=m=C(e),r=p.value,i=e.state,o=e.force,s=e.replace===!0,c=D(n,r);if(c)return O(h(w(c),{state:typeof c==`object`?h({},i,c.state):i,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!o&&ge(a,r,n)&&(u=x(y.NAVIGATION_DUPLICATED,{to:l,from:r}),V(r,r,!0,!1)),(u?Promise.resolve(u):de(l,r)).catch(e=>S(e)?S(e,y.NAVIGATION_GUARD_REDIRECT)?e:B(e):L(e,l,r)).then(e=>{if(e){if(S(e,y.NAVIGATION_GUARD_REDIRECT))return O(h({replace:s},w(e.to),{state:typeof e.to==`object`?h({},i,e.to.state):i,force:o}),t||l)}else e=fe(l,r,!0,s,i);return A(l,r,e),e})}function ue(e,t){let n=T(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=W.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function de(e,t){let n,[r,i,a]=Me(e,t);n=je(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let o=ue.bind(null,e,t);return n.push(o),q(n).then(()=>{n=[];for(let r of c.list())n.push(X(r,e,t));return n.push(o),q(n)}).then(()=>{n=je(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(o),q(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(v(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(o),q(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=je(a,`beforeRouteEnter`,e,t,k),n.push(o),q(n))).then(()=>{n=[];for(let r of l.list())n.push(X(r,e,t));return n.push(o),q(n)}).catch(e=>S(e,y.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function A(e,t,n){d.list().forEach(r=>k(()=>r(e,t,n)))}function fe(e,t,n,r,i){let a=T(e,t);if(a)return a;let s=t===G,c=f?history.state:{};n&&(r||s?o.replace(e.fullPath,h({scroll:s&&c&&c.scroll},i)):o.push(e.fullPath,i)),p.value=e,V(e,t,n,s),B()}let j;function M(){j||=o.listen((e,t,n)=>{if(!K.listening)return;let r=C(e),i=D(r,K.currentRoute.value);if(i){O(h(i,{replace:!0,force:!0}),r).catch(_);return}m=r;let a=p.value;f&&we(Se(a.fullPath,n.delta),J()),de(r,a).catch(e=>S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_CANCELLED)?e:S(e,y.NAVIGATION_GUARD_REDIRECT)?(O(h(w(e.to),{force:!0}),r).then(e=>{S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===_e.pop&&o.go(-1,!1)}).catch(_),Promise.reject()):(n.delta&&o.go(-n.delta,!1),L(e,r,a))).then(e=>{e||=fe(r,a,!1),e&&(n.delta&&!S(e,y.NAVIGATION_CANCELLED)?o.go(-n.delta,!1):n.type===_e.pop&&S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),A(r,a,e)}).catch(_)})}let N=Y(),P=Y(),I;function L(e,t,n){B(e);let r=P.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function z(){return I&&p.value!==G?Promise.resolve():new Promise((e,t)=>{N.add([e,t])})}function B(e){return I||(I=!e,M(),N.list().forEach(([t,n])=>e?n(e):t()),N.reset()),e}function V(t,n,r,a){let{scrollBehavior:o}=e;if(!f||!o)return Promise.resolve();let s=!r&&Te(Se(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>e&&xe(e)).catch(e=>L(e,t,n))}let H=e=>o.go(e),U,W=new Set,K={currentRoute:p,listening:!0,addRoute:ne,removeRoute:oe,clearRoutes:t.clearRoutes,hasRoute:ce,getRoutes:se,resolve:C,options:e,push:E,replace:le,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:c.add,beforeResolve:l.add,afterEach:d.add,onError:P.add,isReady:z,install(e){e.component(`RouterLink`,lt),e.component(`RouterView`,gt),e.config.globalProperties.$router=K,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>s(p)}),f&&!U&&p.value===G&&(U=!0,E(o.location).catch(e=>{}));let t={};for(let e in G)Object.defineProperty(t,e,{get:()=>p.value[e],enumerable:!0});e.provide(re,K),e.provide(ie,u(t)),e.provide(ae,p);let n=e.unmount;W.add(e),e.unmount=function(){W.delete(e),W.size<1&&(m=G,j&&j(),j=null,p.value=G,U=!1,I=!1),n()}}};function q(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return K}export{G as a,Re as i,_t as n,oe as o,ze as r,gt as t};