@nuxtjs/sitemap 7.6.0 → 8.0.0

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 (143) hide show
  1. package/README.md +8 -2
  2. package/dist/content.d.mts +42 -69
  3. package/dist/content.d.ts +42 -69
  4. package/dist/content.mjs +57 -41
  5. package/dist/devtools/200.html +1 -0
  6. package/dist/devtools/404.html +1 -0
  7. package/dist/devtools/_fonts/4ppnHhMi-pBsWSPo7mY0avYxlDoAg1N3PTzCwXLZ5rA-d9oibkGnTd1JL3tc_xnaVgBLYmOB8kjrK2cvZaqwj9s.woff2 +0 -0
  8. package/dist/devtools/_fonts/4qBuU9MRVUlPZNPSF7Xom_sK8RBEnfYu-9VXFrdq8A8-8TDwLE1HAj1sQn7XxVWtM_7sIaPM-DTdO3Pf8U2DF1U.woff2 +0 -0
  9. package/dist/devtools/_fonts/6dYsbWUd_BpKJ7mdDihgOcya1gHXLpJBuMYXux3WMjE-q3fYNS8YbW5n7ZeXI2vSNgkRWW5VDPKAl51SNTjG2qk.woff2 +0 -0
  10. package/dist/devtools/_fonts/Lr-hqqZZsYmCt0ITUlr1CUrWim9fsKvoDFZliMxgNHY-iTa_Yt_PzhOY9TX7ZXdSlEPim6iRt92xhECwaxWxd5w.woff2 +0 -0
  11. package/dist/devtools/_fonts/OknHvWI6KtYn1JQBzX7eSpNDBQ8520F9TvSUJYkVf6A-xeZn9253svK_8Q2LD0XEruY_MnEsuCRO5LenPoggC0Y.woff2 +0 -0
  12. package/dist/devtools/_fonts/PV2hrQG6wq5BlIPDjdL1IcOflycaghyt5MHzlBqZtlo-lb_WexLz3VZqfTN0oi554iBH5tT2j2UFEV-XErCAS3E.woff2 +0 -0
  13. package/dist/devtools/_fonts/UA7OtwYHwGN_HjcVGTdmiQxUit7FlqkCwxVUWSeXVnQ-B4OXCFOL_tWrYODpQTc07aMaj0c2cewTOmBRWR9tD-A.woff2 +0 -0
  14. package/dist/devtools/_fonts/VE4cDVCv5MxbFM7ZLoLCGbIpNd71zhp7MDI9lmN5Y7I-xZyDYCUVrd6LV8eVGF3Um3UZjBFuUtDGtvdyTBBRYBo.woff2 +0 -0
  15. package/dist/devtools/_fonts/fVoGbnMbBFd5L9BBp9fUPavUSkZ_EmsQNSyadkT-108-U4T0khaeLQSIhtt9eVvaCEKJjtWJ4ioRJOf8hvqkWY0.woff2 +0 -0
  16. package/dist/devtools/_fonts/lQAxeCEs1R0Lw-H9XRU1RlOARQN8J6npRsPjyEDMe5s-_DUSLEkO3tKTuun_gSnDLoQPVEnpOnyqZMOw0ByZ6PA.woff2 +0 -0
  17. package/dist/devtools/_fonts/lntlqNHKLV2n82yTwMde70QqOjcfLE2XJ5oKZ3vRPWc-z6TxpIZQdWXztWLr9_OFWqt_WJJoeGtuK_-XQMZGQwE.woff2 +0 -0
  18. package/dist/devtools/_fonts/qxAYvKsXWeYv731eb-h5TRurcdIP_W44mpNdX-HABAk-zUDeMEFlNtNbrwvT9JxLEBg0TphGy70O6RfIoIX_ZwU.woff2 +0 -0
  19. package/dist/devtools/_nuxt/6-8YL5RT.js +1 -0
  20. package/dist/devtools/_nuxt/B-CoxLn7.js +1 -0
  21. package/dist/devtools/_nuxt/BBg_LgdD.js +1 -0
  22. package/dist/devtools/_nuxt/BFP26XjE.js +1 -0
  23. package/dist/devtools/_nuxt/BFxFqELk.js +1 -0
  24. package/dist/devtools/_nuxt/BJ46vUgN.js +22 -0
  25. package/dist/devtools/_nuxt/BK43-3Xm.js +1 -0
  26. package/dist/devtools/_nuxt/BUgp7PK5.js +1 -0
  27. package/dist/devtools/_nuxt/BUwCbG2W.js +1 -0
  28. package/dist/devtools/_nuxt/BgUkVPML.js +1 -0
  29. package/dist/devtools/_nuxt/Bl-ESRhh.js +1 -0
  30. package/dist/devtools/_nuxt/BpntLhpu.js +1 -0
  31. package/dist/devtools/_nuxt/CMkTWvG2.js +1 -0
  32. package/dist/devtools/_nuxt/CdSSkj0j.js +6 -0
  33. package/dist/devtools/_nuxt/Cfg7NvvP.js +3 -0
  34. package/dist/devtools/_nuxt/Cq2IBCZt.js +1 -0
  35. package/dist/devtools/_nuxt/D56-uEuD.js +1 -0
  36. package/dist/devtools/_nuxt/D9eL2h5z.js +1 -0
  37. package/dist/devtools/_nuxt/DC83McAa.js +154 -0
  38. package/dist/devtools/_nuxt/DLfyhkbV.js +1 -0
  39. package/dist/devtools/_nuxt/DRdBN13f.js +1 -0
  40. package/dist/devtools/_nuxt/DevtoolsEmptyState.CPam6VsX.css +1 -0
  41. package/dist/devtools/_nuxt/DevtoolsSection.BeqVO-za.css +1 -0
  42. package/dist/devtools/_nuxt/DuYBAn1h.js +1 -0
  43. package/dist/devtools/_nuxt/Source.ChvNXxeG.css +1 -0
  44. package/dist/devtools/_nuxt/_hKGTbzI.js +1 -0
  45. package/dist/devtools/_nuxt/builds/latest.json +1 -0
  46. package/dist/devtools/_nuxt/builds/meta/8c443858-dba7-4dd0-b65e-6a31b3bbefed.json +1 -0
  47. package/dist/devtools/_nuxt/entry.DuwzcCXL.css +2 -0
  48. package/dist/devtools/_nuxt/error-404.CbnweSUu.css +1 -0
  49. package/dist/devtools/_nuxt/error-500.DrNDBqZi.css +1 -0
  50. package/dist/devtools/_nuxt/jxhrXVY1.js +1 -0
  51. package/dist/devtools/_nuxt/pages.CV7xHNff.css +1 -0
  52. package/dist/devtools/app-sources/index.html +1 -0
  53. package/dist/devtools/debug/index.html +1 -0
  54. package/dist/devtools/docs/index.html +1 -0
  55. package/dist/devtools/index.html +1 -0
  56. package/dist/devtools/user-sources/index.html +1 -0
  57. package/dist/module.d.mts +10 -1
  58. package/dist/module.d.ts +10 -1
  59. package/dist/module.json +1 -1
  60. package/dist/module.mjs +321 -430
  61. package/dist/runtime/server/composables/defineSitemapEventHandler.d.ts +1 -1
  62. package/dist/runtime/server/kit.d.ts +0 -1
  63. package/dist/runtime/server/kit.js +5 -7
  64. package/dist/runtime/server/plugins/warm-up.js +1 -1
  65. package/dist/runtime/server/robots-polyfill/getPathRobotConfig.d.ts +1 -1
  66. package/dist/runtime/server/robots-polyfill/getPathRobotConfig.js +1 -1
  67. package/dist/runtime/server/routes/__sitemap__/debug-production.d.ts +17 -0
  68. package/dist/runtime/server/routes/__sitemap__/debug-production.js +77 -0
  69. package/dist/runtime/server/routes/__sitemap__/debug.js +3 -3
  70. package/dist/runtime/server/routes/__sitemap__/nuxt-content-urls-v2.js +1 -1
  71. package/dist/runtime/server/routes/__sitemap__/nuxt-content-urls-v3.js +3 -3
  72. package/dist/runtime/server/routes/sitemap.xsl.js +4 -4
  73. package/dist/runtime/server/sitemap/builder/sitemap-index.js +8 -7
  74. package/dist/runtime/server/sitemap/builder/sitemap.d.ts +1 -1
  75. package/dist/runtime/server/sitemap/builder/sitemap.js +10 -8
  76. package/dist/runtime/server/sitemap/builder/xml.js +51 -25
  77. package/dist/runtime/server/sitemap/event-handlers.js +4 -4
  78. package/dist/runtime/server/sitemap/nitro.js +6 -6
  79. package/dist/runtime/server/sitemap/urlset/normalise.js +1 -1
  80. package/dist/runtime/server/sitemap/urlset/sources.js +2 -2
  81. package/dist/runtime/types.d.ts +5 -8
  82. package/dist/runtime/utils-pure.d.ts +3 -4
  83. package/dist/runtime/utils-pure.js +13 -41
  84. package/dist/shared/{sitemap.Bj0OAEtK.mjs → sitemap.B99ug6A9.mjs} +9 -5
  85. package/dist/utils.d.mts +9 -9
  86. package/dist/utils.d.ts +9 -9
  87. package/dist/utils.mjs +60 -59
  88. package/package.json +47 -46
  89. package/dist/client/200.html +0 -1
  90. package/dist/client/404.html +0 -1
  91. package/dist/client/_fonts/0xp3SbCWC1OhX7q1-uF6kilMZFm-alJNkUtkLTPCy_A-tN9KwPUWhhXvtqh74sU9FIkI4W6hsbm85r0X24hjOfM.woff2 +0 -0
  92. package/dist/client/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-995OEiyou9G2dJsMNn9aLuHTFlgwosm_9gD5SQUWR40.woff +0 -0
  93. package/dist/client/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-D6hedAgqRfOCLZzaShnyeAvlEnMzk4Wm7g9WDKWFHIc.woff +0 -0
  94. package/dist/client/_fonts/1ZTlEDqU4DtwDJiND8f6qaugUpa0RIDvQl-v7iM6l54-vrK12kZ24WGUghky9YxsOZpLH8Tt4jMU8XIvzgLQ6DU.woff +0 -0
  95. package/dist/client/_fonts/4HA9tc4y8BVQeLXvLn3JgQqilAj1xrAnUSprQGHIPSw-ZPswEL_UDOYaxTLQDUySPjoOHDxhD83pD19HMfKfK9s.woff2 +0 -0
  96. package/dist/client/_fonts/Bmul3LaKlc7BUKqJHE_UmEoF40Sg_2ga52yJjwyDcKs-TnYmYl1DNYkiWMu0Vx49DakCPBuiCCj9zoLIuQjUdKY.woff2 +0 -0
  97. package/dist/client/_fonts/DfgmjWGpWte3Q3a54Nevr_BYmMM5YEJXRI1CdI2VwO0-ox5RadQfCyVTmKl_hubTaIJjtRw9oaQz2GDBeZR6l1M.woff2 +0 -0
  98. package/dist/client/_fonts/LK8hREFNeTe-EIzvbfgusJBg3CJ7Q7NFgYIiGb2LZ8-qiyWl0ATLJjOsRPZC_7a8mTMFxEMKEv6JTK_kHtMzbM.woff2 +0 -0
  99. package/dist/client/_fonts/Lc_5lWuBuZcZ166p1-s-mnGkMJwIYJE_QDCkws8iCkI-r45Qbm2hCykrfOZ0kowz__uTTTUOPDN9hz34QcRNTY4.woff2 +0 -0
  100. package/dist/client/_fonts/UBlOS9e0BmJuiF5yVs0YcJrFWaa-iN8zx9TP_lmKs8c-iH3Naewt5UjJ0AQ38QZs4lkEo4zdjMIVkLs4y7EiwIE.woff2 +0 -0
  101. package/dist/client/_fonts/gRxGIWazSFZVyzU0s62U9IArK3RJLkOoUmXx0C8Npsw-kMFNQG6iwjw2nvqS3ut9jMSVn__HlJ28slvxjE4hYfc.woff2 +0 -0
  102. package/dist/client/_fonts/hIKtJJBMNYGPUppSYZpyuF6c24cKhBkhsgaCTgzYgqw-jRJyBPlfGDXClyrgfO6GK_Pfs1RmTsB-wWX6MOgpsRA.woff2 +0 -0
  103. package/dist/client/_fonts/iEvApgDRmzKzNqOYocBTrmcHZmuGAJloawKDP1S0nyE-T3oc_9We24QGwfw5naik4cM0g7VxylWVaQwKm4dy3cw.woff2 +0 -0
  104. package/dist/client/_fonts/kokcBTWRechd97ZdVUpUxrOFbsRt8whO21yA1vQ6iJ8-O7CCbVvFgg_MFLTdyFF9FMeMvIoEmxJLubqVDYTUoWY.woff2 +0 -0
  105. package/dist/client/_fonts/oFzdhjQtZFydTZ757bmiVFXgReR2bBSYm_CjQ7B1Jjs-F6oFbDhOWKYJbgrlC93wkLkPlIV7mzgvqwqEDxQMeHA.woff2 +0 -0
  106. package/dist/client/_nuxt/5ZF0DUKe.js +0 -1
  107. package/dist/client/_nuxt/8XcEHgiq.js +0 -1
  108. package/dist/client/_nuxt/B2G1Husz.js +0 -1
  109. package/dist/client/_nuxt/B6Rjxwce.js +0 -1
  110. package/dist/client/_nuxt/BTnenz-7.js +0 -1
  111. package/dist/client/_nuxt/BaarzCY9.js +0 -181
  112. package/dist/client/_nuxt/BeMtTGFX.js +0 -1
  113. package/dist/client/_nuxt/BgRd_GNf.js +0 -1
  114. package/dist/client/_nuxt/Bj_3pTUi.js +0 -1
  115. package/dist/client/_nuxt/BqgETAYZ.js +0 -1
  116. package/dist/client/_nuxt/C1-eNu7x.js +0 -1
  117. package/dist/client/_nuxt/C6MORWr4.js +0 -1
  118. package/dist/client/_nuxt/CIJ7g9su.js +0 -1
  119. package/dist/client/_nuxt/CINkxRg5.js +0 -1
  120. package/dist/client/_nuxt/COIEcBZR.js +0 -1
  121. package/dist/client/_nuxt/CVO1_9PV.js +0 -1
  122. package/dist/client/_nuxt/CZ3hLIr1.js +0 -1
  123. package/dist/client/_nuxt/Caedg1qp.js +0 -1
  124. package/dist/client/_nuxt/Cmw_hYOm.js +0 -1
  125. package/dist/client/_nuxt/Cp-IABpG.js +0 -1
  126. package/dist/client/_nuxt/CxFX6b0M.js +0 -1
  127. package/dist/client/_nuxt/D0r3Knsf.js +0 -1
  128. package/dist/client/_nuxt/D4YjxrHq.js +0 -1
  129. package/dist/client/_nuxt/DHOdika3.js +0 -1
  130. package/dist/client/_nuxt/DSdw0YSI.js +0 -1
  131. package/dist/client/_nuxt/DSxZHkX-.js +0 -1
  132. package/dist/client/_nuxt/Dn8lRF86.js +0 -1
  133. package/dist/client/_nuxt/DwNiGCgn.js +0 -1
  134. package/dist/client/_nuxt/O3qB0pnO.js +0 -1
  135. package/dist/client/_nuxt/ProsePre.D5orA6B_.css +0 -1
  136. package/dist/client/_nuxt/ZdghZ1ke.js +0 -1
  137. package/dist/client/_nuxt/aUtIlT-b.js +0 -1
  138. package/dist/client/_nuxt/builds/latest.json +0 -1
  139. package/dist/client/_nuxt/builds/meta/6319eec7-8aee-40f4-abcf-31c51d4b20a5.json +0 -1
  140. package/dist/client/_nuxt/entry.D1qdnVLM.css +0 -1
  141. package/dist/client/_nuxt/error-404.BBebgf1Y.css +0 -1
  142. package/dist/client/_nuxt/error-500.C4WF4yER.css +0 -1
  143. package/dist/client/index.html +0 -1
@@ -1,181 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DwNiGCgn.js","./ProsePre.D5orA6B_.css","./Cmw_hYOm.js","./error-404.BBebgf1Y.css","./CZ3hLIr1.js","./error-500.C4WF4yER.css"])))=>i.map(i=>d[i]);
2
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function tc(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ce={},Fr=[],on=()=>{},qd=()=>!1,Xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),nc=e=>e.startsWith("onUpdate:"),Ze=Object.assign,rc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},my=Object.prototype.hasOwnProperty,ke=(e,t)=>my.call(e,t),le=Array.isArray,Br=e=>Ti(e)==="[object Map]",zd=e=>Ti(e)==="[object Set]",ce=e=>typeof e=="function",De=e=>typeof e=="string",Pn=e=>typeof e=="symbol",Le=e=>e!==null&&typeof e=="object",sc=e=>(Le(e)||ce(e))&&ce(e.then)&&ce(e.catch),Hd=Object.prototype.toString,Ti=e=>Hd.call(e),yy=e=>Ti(e).slice(8,-1),Ud=e=>Ti(e)==="[object Object]",Pi=e=>De(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ar=tc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ri=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},by=/-\w/g,ht=Ri(e=>e.replace(by,t=>t.slice(1).toUpperCase())),vy=/\B([A-Z])/g,Wn=Ri(e=>e.replace(vy,"-$1").toLowerCase()),Ii=Ri(e=>e.charAt(0).toUpperCase()+e.slice(1)),ks=Ri(e=>e?`on${Ii(e)}`:""),bt=(e,t)=>!Object.is(e,t),aa=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Gd=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},wy=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_y=e=>{const t=De(e)?Number(e):NaN;return isNaN(t)?e:t};let gu;const Oi=()=>gu||(gu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xt(e){if(le(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=De(r)?Sy(r):Xt(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(De(e)||Le(e))return e}const xy=/;(?![^(]*\))/g,ky=/:([^]+)/,Cy=/\/\*[^]*?\*\//g;function Sy(e){const t={};return e.replace(Cy,"").split(xy).forEach(n=>{if(n){const r=n.split(ky);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ye(e){let t="";if(De(e))t=e;else if(le(e))for(let n=0;n<e.length;n++){const r=ye(e[n]);r&&(t+=r+" ")}else if(Le(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function xt(e){if(!e)return null;let{class:t,style:n}=e;return t&&!De(t)&&(e.class=ye(t)),n&&(e.style=Xt(n)),e}const Ey="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ay=tc(Ey);function Vd(e){return!!e||e===""}const Wd=e=>!!(e&&e.__v_isRef===!0),_e=e=>De(e)?e:e==null?"":le(e)||Le(e)&&(e.toString===Hd||!ce(e.toString))?Wd(e)?_e(e.value):JSON.stringify(e,Kd,2):String(e),Kd=(e,t)=>Wd(t)?Kd(e,t.value):Br(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[la(r,o)+" =>"]=s,n),{})}:zd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>la(n))}:Pn(t)?la(t):Le(t)&&!le(t)&&!Ud(t)?String(t):t,la=(e,t="")=>{var n;return Pn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let at;class Xd{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=at,!t&&at&&(this.index=(at.scopes||(at.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=at;try{return at=this,t()}finally{at=n}}}on(){++this._on===1&&(this.prevScope=at,at=this)}off(){this._on>0&&--this._on===0&&(at=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Jd(e){return new Xd(e)}function Js(){return at}function oc(e,t=!1){at&&at.cleanups.push(e)}let $e;const ca=new WeakSet;class Yd{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,at&&at.active&&at.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ca.has(this)&&(ca.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zd(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,mu(this),ep(this);const t=$e,n=Kt;$e=this,Kt=!0;try{return this.fn()}finally{tp(this),$e=t,Kt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)lc(t);this.deps=this.depsTail=void 0,mu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ca.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Va(this)&&this.run()}get dirty(){return Va(this)}}let Qd=0,Cs,Ss;function Zd(e,t=!1){if(e.flags|=8,t){e.next=Ss,Ss=e;return}e.next=Cs,Cs=e}function ic(){Qd++}function ac(){if(--Qd>0)return;if(Ss){let t=Ss;for(Ss=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Cs;){let t=Cs;for(Cs=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function ep(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function tp(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),lc(r),Ty(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Va(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(np(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function np(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ls)||(e.globalVersion=Ls,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Va(e))))return;e.flags|=2;const t=e.dep,n=$e,r=Kt;$e=e,Kt=!0;try{ep(e);const s=e.fn(e._value);(t.version===0||bt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{$e=n,Kt=r,tp(e),e.flags&=-3}}function lc(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)lc(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ty(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Kt=!0;const rp=[];function Cn(){rp.push(Kt),Kt=!1}function Sn(){const e=rp.pop();Kt=e===void 0?!0:e}function mu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=$e;$e=void 0;try{t()}finally{$e=n}}}let Ls=0;class Py{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class $i{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$e||!Kt||$e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$e)n=this.activeLink=new Py($e,this),$e.deps?(n.prevDep=$e.depsTail,$e.depsTail.nextDep=n,$e.depsTail=n):$e.deps=$e.depsTail=n,sp(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=$e.depsTail,n.nextDep=void 0,$e.depsTail.nextDep=n,$e.depsTail=n,$e.deps===n&&($e.deps=r)}return n}trigger(t){this.version++,Ls++,this.notify(t)}notify(t){ic();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ac()}}}function sp(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)sp(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Go=new WeakMap,lr=Symbol(""),Wa=Symbol(""),Ns=Symbol("");function lt(e,t,n){if(Kt&&$e){let r=Go.get(e);r||Go.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new $i),s.map=r,s.key=n),s.track()}}function wn(e,t,n,r,s,o){const i=Go.get(e);if(!i){Ls++;return}const a=l=>{l&&l.trigger()};if(ic(),t==="clear")i.forEach(a);else{const l=le(e),c=l&&Pi(n);if(l&&n==="length"){const u=Number(r);i.forEach((f,d)=>{(d==="length"||d===Ns||!Pn(d)&&d>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Ns)),t){case"add":l?c&&a(i.get("length")):(a(i.get(lr)),Br(e)&&a(i.get(Wa)));break;case"delete":l||(a(i.get(lr)),Br(e)&&a(i.get(Wa)));break;case"set":Br(e)&&a(i.get(lr));break}}ac()}function Ry(e,t){const n=Go.get(e);return n&&n.get(t)}function Er(e){const t=we(e);return t===e?t:(lt(t,"iterate",Ns),Lt(e)?t:t.map(Jt))}function Li(e){return lt(e=we(e),"iterate",Ns),e}function Mn(e,t){return ln(e)?Vr(qn(e)?Jt(t):t):Jt(t)}const Iy={__proto__:null,[Symbol.iterator](){return ua(this,Symbol.iterator,e=>Mn(this,e))},concat(...e){return Er(this).concat(...e.map(t=>le(t)?Er(t):t))},entries(){return ua(this,"entries",e=>(e[1]=Mn(this,e[1]),e))},every(e,t){return pn(this,"every",e,t,void 0,arguments)},filter(e,t){return pn(this,"filter",e,t,n=>n.map(r=>Mn(this,r)),arguments)},find(e,t){return pn(this,"find",e,t,n=>Mn(this,n),arguments)},findIndex(e,t){return pn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pn(this,"findLast",e,t,n=>Mn(this,n),arguments)},findLastIndex(e,t){return pn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pn(this,"forEach",e,t,void 0,arguments)},includes(...e){return fa(this,"includes",e)},indexOf(...e){return fa(this,"indexOf",e)},join(e){return Er(this).join(e)},lastIndexOf(...e){return fa(this,"lastIndexOf",e)},map(e,t){return pn(this,"map",e,t,void 0,arguments)},pop(){return ds(this,"pop")},push(...e){return ds(this,"push",e)},reduce(e,...t){return yu(this,"reduce",e,t)},reduceRight(e,...t){return yu(this,"reduceRight",e,t)},shift(){return ds(this,"shift")},some(e,t){return pn(this,"some",e,t,void 0,arguments)},splice(...e){return ds(this,"splice",e)},toReversed(){return Er(this).toReversed()},toSorted(e){return Er(this).toSorted(e)},toSpliced(...e){return Er(this).toSpliced(...e)},unshift(...e){return ds(this,"unshift",e)},values(){return ua(this,"values",e=>Mn(this,e))}};function ua(e,t,n){const r=Li(e),s=r[t]();return r!==e&&!Lt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const Oy=Array.prototype;function pn(e,t,n,r,s,o){const i=Li(e),a=i!==e&&!Lt(e),l=i[t];if(l!==Oy[t]){const f=l.apply(e,o);return a?Jt(f):f}let c=n;i!==e&&(a?c=function(f,d){return n.call(this,Mn(e,f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(i,c,r);return a&&s?s(u):u}function yu(e,t,n,r){const s=Li(e);let o=n;return s!==e&&(Lt(e)?n.length>3&&(o=function(i,a,l){return n.call(this,i,a,l,e)}):o=function(i,a,l){return n.call(this,i,Mn(e,a),l,e)}),s[t](o,...r)}function fa(e,t,n){const r=we(e);lt(r,"iterate",Ns);const s=r[t](...n);return(s===-1||s===!1)&&Di(n[0])?(n[0]=we(n[0]),r[t](...n)):s}function ds(e,t,n=[]){Cn(),ic();const r=we(e)[t].apply(e,n);return ac(),Sn(),r}const $y=tc("__proto__,__v_isRef,__isVue"),op=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pn));function Ly(e){Pn(e)||(e=String(e));const t=we(this);return lt(t,"has",e),t.hasOwnProperty(e)}class ip{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?dp:fp:o?up:cp).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=le(t);if(!s){let l;if(i&&(l=Iy[n]))return l;if(n==="hasOwnProperty")return Ly}const a=Reflect.get(t,n,Ne(t)?t:r);if((Pn(n)?op.has(n):$y(n))||(s||lt(t,"get",n),o))return a;if(Ne(a)){const l=i&&Pi(n)?a:a.value;return s&&Le(l)?Hn(l):l}return Le(a)?s?Hn(a):gt(a):a}}class ap extends ip{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=le(t)&&Pi(n);if(!this._isShallow){const c=ln(o);if(!Lt(r)&&!ln(r)&&(o=we(o),r=we(r)),!i&&Ne(o)&&!Ne(r))return c||(o.value=r),!0}const a=i?Number(n)<t.length:ke(t,n),l=Reflect.set(t,n,r,Ne(t)?t:s);return t===we(s)&&(a?bt(r,o)&&wn(t,"set",n,r):wn(t,"add",n,r)),l}deleteProperty(t,n){const r=ke(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&wn(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Pn(n)||!op.has(n))&&lt(t,"has",n),r}ownKeys(t){return lt(t,"iterate",le(t)?"length":lr),Reflect.ownKeys(t)}}class lp extends ip{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ny=new ap,My=new lp,Dy=new ap(!0),Fy=new lp(!0),Ka=e=>e,io=e=>Reflect.getPrototypeOf(e);function By(e,t,n){return function(...r){const s=this.__v_raw,o=we(s),i=Br(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...r),u=n?Ka:t?Vr:Jt;return!t&&lt(o,"iterate",l?Wa:lr),Ze(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}}})}}function ao(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function jy(e,t){const n={get(s){const o=this.__v_raw,i=we(o),a=we(s);e||(bt(s,a)&&lt(i,"get",s),lt(i,"get",a));const{has:l}=io(i),c=t?Ka:e?Vr:Jt;if(l.call(i,s))return c(o.get(s));if(l.call(i,a))return c(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&lt(we(s),"iterate",lr),s.size},has(s){const o=this.__v_raw,i=we(o),a=we(s);return e||(bt(s,a)&&lt(i,"has",s),lt(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=we(a),c=t?Ka:e?Vr:Jt;return!e&&lt(l,"iterate",lr),a.forEach((u,f)=>s.call(o,c(u),c(f),i))}};return Ze(n,e?{add:ao("add"),set:ao("set"),delete:ao("delete"),clear:ao("clear")}:{add(s){!t&&!Lt(s)&&!ln(s)&&(s=we(s));const o=we(this);return io(o).has.call(o,s)||(o.add(s),wn(o,"add",s,s)),this},set(s,o){!t&&!Lt(o)&&!ln(o)&&(o=we(o));const i=we(this),{has:a,get:l}=io(i);let c=a.call(i,s);c||(s=we(s),c=a.call(i,s));const u=l.call(i,s);return i.set(s,o),c?bt(o,u)&&wn(i,"set",s,o):wn(i,"add",s,o),this},delete(s){const o=we(this),{has:i,get:a}=io(o);let l=i.call(o,s);l||(s=we(s),l=i.call(o,s)),a&&a.call(o,s);const c=o.delete(s);return l&&wn(o,"delete",s,void 0),c},clear(){const s=we(this),o=s.size!==0,i=s.clear();return o&&wn(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=By(s,e,t)}),n}function Ni(e,t){const n=jy(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ke(n,s)&&s in r?n:r,s,o)}const qy={get:Ni(!1,!1)},zy={get:Ni(!1,!0)},Hy={get:Ni(!0,!1)},Uy={get:Ni(!0,!0)},cp=new WeakMap,up=new WeakMap,fp=new WeakMap,dp=new WeakMap;function Gy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vy(e){return e.__v_skip||!Object.isExtensible(e)?0:Gy(yy(e))}function gt(e){return ln(e)?e:Mi(e,!1,Ny,qy,cp)}function sr(e){return Mi(e,!1,Dy,zy,up)}function Hn(e){return Mi(e,!0,My,Hy,fp)}function Ar(e){return Mi(e,!0,Fy,Uy,dp)}function Mi(e,t,n,r,s){if(!Le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Vy(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function qn(e){return ln(e)?qn(e.__v_raw):!!(e&&e.__v_isReactive)}function ln(e){return!!(e&&e.__v_isReadonly)}function Lt(e){return!!(e&&e.__v_isShallow)}function Di(e){return e?!!e.__v_raw:!1}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function cc(e){return!ke(e,"__v_skip")&&Object.isExtensible(e)&&Gd(e,"__v_skip",!0),e}const Jt=e=>Le(e)?gt(e):e,Vr=e=>Le(e)?Hn(e):e;function Ne(e){return e?e.__v_isRef===!0:!1}function Y(e){return pp(e,!1)}function cn(e){return pp(e,!0)}function pp(e,t){return Ne(e)?e:new Wy(e,t)}class Wy{constructor(t,n){this.dep=new $i,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:we(t),this._value=n?t:Jt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Lt(t)||ln(t);t=r?t:we(t),bt(t,n)&&(this._rawValue=t,this._value=r?t:Jt(t),this.dep.trigger())}}function k(e){return Ne(e)?e.value:e}function Pe(e){return ce(e)?e():k(e)}const Ky={get:(e,t,n)=>t==="__v_raw"?e:k(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ne(s)&&!Ne(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function hp(e){return qn(e)?e:new Proxy(e,Ky)}class Xy{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new $i,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function uc(e){return new Xy(e)}function Un(e){const t=le(e)?new Array(e.length):{};for(const n in e)t[n]=gp(e,n);return t}class Jy{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=we(t);let s=!0,o=t;if(!le(t)||!Pi(String(n)))do s=!Di(o)||Lt(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=k(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ne(this._raw[this._key])){const n=this._object[this._key];if(Ne(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Ry(this._raw,this._key)}}class Yy{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function $t(e,t,n){return Ne(e)?e:ce(e)?new Yy(e):Le(e)&&arguments.length>1?gp(e,t,n):Y(e)}function gp(e,t,n){return new Jy(e,t,n)}class Qy{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new $i(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ls-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return Zd(this,!0),!0}get value(){const t=this.dep.track();return np(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Zy(e,t,n=!1){let r,s;return ce(e)?r=e:(r=e.get,s=e.set),new Qy(r,s,n)}const lo={},Vo=new WeakMap;let tr;function eb(e,t=!1,n=tr){if(n){let r=Vo.get(n);r||Vo.set(n,r=[]),r.push(e)}}function tb(e,t,n=Ce){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,c=v=>s?v:Lt(v)||s===!1||s===0?Bn(v,1):Bn(v);let u,f,d,p,h=!1,g=!1;if(Ne(e)?(f=()=>e.value,h=Lt(e)):qn(e)?(f=()=>c(e),h=!0):le(e)?(g=!0,h=e.some(v=>qn(v)||Lt(v)),f=()=>e.map(v=>{if(Ne(v))return v.value;if(qn(v))return c(v);if(ce(v))return l?l(v,2):v()})):ce(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Cn();try{d()}finally{Sn()}}const v=tr;tr=u;try{return l?l(e,3,[p]):e(p)}finally{tr=v}}:f=on,t&&s){const v=f,w=s===!0?1/0:s;f=()=>Bn(v(),w)}const y=Js(),b=()=>{u.stop(),y&&y.active&&rc(y.effects,u)};if(o&&t){const v=t;t=(...w)=>{v(...w),b()}}let _=g?new Array(e.length).fill(lo):lo;const m=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const w=u.run();if(s||h||(g?w.some((S,P)=>bt(S,_[P])):bt(w,_))){d&&d();const S=tr;tr=u;try{const P=[w,_===lo?void 0:g&&_[0]===lo?[]:_,p];_=w,l?l(t,3,P):t(...P)}finally{tr=S}}}else u.run()};return a&&a(m),u=new Yd(f),u.scheduler=i?()=>i(m,!1):m,p=v=>eb(v,!1,u),d=u.onStop=()=>{const v=Vo.get(u);if(v){if(l)l(v,4);else for(const w of v)w();Vo.delete(u)}},t?r?m(!0):_=u.run():i?i(m.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Bn(e,t=1/0,n){if(t<=0||!Le(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ne(e))Bn(e.value,t,n);else if(le(e))for(let r=0;r<e.length;r++)Bn(e[r],t,n);else if(zd(e)||Br(e))e.forEach(r=>{Bn(r,t,n)});else if(Ud(e)){for(const r in e)Bn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Bn(e[r],t,n)}return e}function Ys(e,t,n,r){try{return r?e(...r):e()}catch(s){Zr(s,t,n)}}function un(e,t,n,r){if(ce(e)){const s=Ys(e,t,n,r);return s&&sc(s)&&s.catch(o=>{Zr(o,t,n)}),s}if(le(e)){const s=[];for(let o=0;o<e.length;o++)s.push(un(e[o],t,n,r));return s}}function Zr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ce;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(o){Cn(),Ys(o,null,10,[e,l,c]),Sn();return}}nb(e,n,s,r,i)}function nb(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const dt=[];let nn=-1;const jr=[];let Dn=null,Or=0;const mp=Promise.resolve();let Wo=null;function kt(e){const t=Wo||mp;return e?t.then(this?e.bind(this):e):t}function rb(e){let t=nn+1,n=dt.length;for(;t<n;){const r=t+n>>>1,s=dt[r],o=Ms(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function fc(e){if(!(e.flags&1)){const t=Ms(e),n=dt[dt.length-1];!n||!(e.flags&2)&&t>=Ms(n)?dt.push(e):dt.splice(rb(t),0,e),e.flags|=1,yp()}}function yp(){Wo||(Wo=mp.then(bp))}function Xa(e){le(e)?jr.push(...e):Dn&&e.id===-1?Dn.splice(Or+1,0,e):e.flags&1||(jr.push(e),e.flags|=1),yp()}function bu(e,t,n=nn+1){for(;n<dt.length;n++){const r=dt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;dt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ko(e){if(jr.length){const t=[...new Set(jr)].sort((n,r)=>Ms(n)-Ms(r));if(jr.length=0,Dn){Dn.push(...t);return}for(Dn=t,Or=0;Or<Dn.length;Or++){const n=Dn[Or];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Dn=null,Or=0}}const Ms=e=>e.id==null?e.flags&2?-1:1/0:e.id;function bp(e){try{for(nn=0;nn<dt.length;nn++){const t=dt[nn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ys(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;nn<dt.length;nn++){const t=dt[nn];t&&(t.flags&=-2)}nn=-1,dt.length=0,Ko(),Wo=null,(dt.length||jr.length)&&bp()}}let pt=null,vp=null;function Xo(e){const t=pt;return pt=e,vp=e&&e.type.__scopeId||null,t}function V(e,t=pt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Qo(-1);const o=Xo(t);let i;try{i=e(...s)}finally{Xo(o),r._d&&Qo(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function rn(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(Cn(),un(l,n,8,[e.el,a,e,t]),Sn())}}function dr(e,t){if(et){let n=et.provides;const r=et.parent&&et.parent.provides;r===n&&(n=et.provides=Object.create(r)),n[e]=t}}function wt(e,t,n=!1){const r=ut();if(r||ur){let s=ur?ur._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ce(t)?t.call(r&&r.proxy):t}}function Fi(){return!!(ut()||ur)}const sb=Symbol.for("v-scx"),ob=()=>wt(sb);function Mt(e,t){return Qs(e,null,t)}function wp(e,t){return Qs(e,null,{flush:"post"})}function ib(e,t){return Qs(e,null,{flush:"sync"})}function Re(e,t,n){return Qs(e,t,n)}function Qs(e,t,n=Ce){const{immediate:r,deep:s,flush:o,once:i}=n,a=Ze({},n),l=t&&r||!t&&o!=="post";let c;if(Xr){if(o==="sync"){const p=ob();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=on,p.resume=on,p.pause=on,p}}const u=et;a.call=(p,h,g)=>un(p,u,h,g);let f=!1;o==="post"?a.scheduler=p=>{it(p,u&&u.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(p,h)=>{h?p():fc(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=tb(e,t,a);return Xr&&(c?c.push(d):l&&d()),d}function ab(e,t,n){const r=this.proxy,s=De(e)?e.includes(".")?_p(r,e):()=>r[e]:e.bind(r,r);let o;ce(t)?o=t:(o=t.handler,n=t);const i=hr(this),a=Qs(s,o.bind(r),n);return i(),a}function _p(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const xp=Symbol("_vte"),lb=e=>e.__isTeleport,Es=e=>e&&(e.disabled||e.disabled===""),vu=e=>e&&(e.defer||e.defer===""),wu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,_u=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ja=(e,t)=>{const n=e&&e.to;return De(n)?t?t(n):null:n},kp={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:g,createComment:y}}=c,b=Es(t.props);let{shapeFlag:_,children:m,dynamicChildren:v}=t;if(e==null){const w=t.el=g(""),S=t.anchor=g("");p(w,n,r),p(S,n,r);const P=(R,N)=>{_&16&&u(m,R,N,s,o,i,a,l)},T=()=>{const R=t.target=Ja(t.props,h),N=Sp(R,t,g,p);R&&(i!=="svg"&&wu(R)?i="svg":i!=="mathml"&&_u(R)&&(i="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(R),b||(P(R,N),Lo(t,!1)))};b&&(P(n,S),Lo(t,!0)),vu(t.props)?(t.el.__isMounted=!1,it(()=>{T(),delete t.el.__isMounted},o)):T()}else{if(vu(t.props)&&e.el.__isMounted===!1){it(()=>{kp.process(e,t,n,r,s,o,i,a,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const w=t.anchor=e.anchor,S=t.target=e.target,P=t.targetAnchor=e.targetAnchor,T=Es(e.props),R=T?n:S,N=T?w:P;if(i==="svg"||wu(S)?i="svg":(i==="mathml"||_u(S))&&(i="mathml"),v?(d(e.dynamicChildren,v,R,s,o,i,a),bc(e,t,!0)):l||f(e,t,R,N,s,o,i,a,!1),b)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):co(t,n,w,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const X=t.target=Ja(t.props,h);X&&co(t,X,null,c,0)}else T&&co(t,S,P,c,1);Lo(t,b)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e;if(f&&(s(c),s(u)),o&&s(l),i&16){const p=o||!Es(d);for(let h=0;h<a.length;h++){const g=a[h];r(g,t,n,p,!!g.dynamicChildren)}}},move:co,hydrate:cb};function co(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=e,f=o===2;if(f&&r(i,t,n),(!f||Es(u))&&l&16)for(let d=0;d<c.length;d++)s(c[d],t,n,2);f&&r(a,t,n)}function cb(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},f){function d(g,y,b,_){y.anchor=f(i(g),y,a(g),n,r,s,o),y.targetStart=b,y.targetAnchor=_}const p=t.target=Ja(t.props,l),h=Es(t.props);if(p){const g=p._lpa||p.firstChild;if(t.shapeFlag&16)if(h)d(e,t,g,g&&i(g));else{t.anchor=i(e);let y=g;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,p._lpa=t.targetAnchor&&i(t.targetAnchor);break}}y=i(y)}t.targetAnchor||Sp(p,t,u,c),f(g&&i(g),t,p,n,r,s,o)}Lo(t,h)}else h&&t.shapeFlag&16&&d(e,t,e,i(e));return t.anchor&&i(t.anchor)}const Cp=kp;function Lo(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Sp(e,t,n,r){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[xp]=o,e&&(r(s,e),r(o,e)),o}const ub=Symbol("_leaveCb");function dc(e,t){e.shapeFlag&6&&e.component?(e.transition=t,dc(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ue(e,t){return ce(e)?Ze({name:e.name},t,{setup:e}):e}function Ep(){const e=ut();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function pc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Jo=new WeakMap;function qr(e,t,n,r,s=!1){if(le(e)){e.forEach((h,g)=>qr(h,t&&(le(t)?t[g]:t),n,r,s));return}if(cr(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&qr(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?wc(r.component):r.el,i=s?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ce?a.refs={}:a.refs,f=a.setupState,d=we(f),p=f===Ce?qd:h=>ke(d,h);if(c!=null&&c!==l){if(xu(t),De(c))u[c]=null,p(c)&&(f[c]=null);else if(Ne(c)){c.value=null;const h=t;h.k&&(u[h.k]=null)}}if(ce(l))Ys(l,a,12,[i,u]);else{const h=De(l),g=Ne(l);if(h||g){const y=()=>{if(e.f){const b=h?p(l)?f[l]:u[l]:l.value;if(s)le(b)&&rc(b,o);else if(le(b))b.includes(o)||b.push(o);else if(h)u[l]=[o],p(l)&&(f[l]=u[l]);else{const _=[o];l.value=_,e.k&&(u[e.k]=_)}}else h?(u[l]=i,p(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(u[e.k]=i))};if(i){const b=()=>{y(),Jo.delete(e)};b.id=-1,Jo.set(e,b),it(b,n)}else xu(e),y()}}}function xu(e){const t=Jo.get(e);t&&(t.flags|=8,Jo.delete(e))}let ku=!1;const Tr=()=>{ku||(console.error("Hydration completed but contains mismatches."),ku=!0)},fb=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",db=e=>e.namespaceURI.includes("MathML"),uo=e=>{if(e.nodeType===1){if(fb(e))return"svg";if(db(e))return"mathml"}},Mr=e=>e.nodeType===8;function pb(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(m,v)=>{if(!v.hasChildNodes()){n(null,m,v),Ko(),v._vnode=m;return}f(v.firstChild,m,null,null,null),Ko(),v._vnode=m},f=(m,v,w,S,P,T=!1)=>{T=T||!!v.dynamicChildren;const R=Mr(m)&&m.data==="[",N=()=>g(m,v,w,S,P,R),{type:X,ref:U,shapeFlag:se,patchFlag:L}=v;let z=m.nodeType;v.el=m,L===-2&&(T=!1,v.dynamicChildren=null);let I=null;switch(X){case fr:z!==3?v.children===""?(l(v.el=s(""),i(m),m),I=m):I=N():(m.data!==v.children&&(Tr(),m.data=v.children),I=o(m));break;case Ct:_(m)?(I=o(m),b(v.el=m.content.firstChild,m,w)):z!==8||R?I=N():I=o(m);break;case Ts:if(R&&(m=o(m),z=m.nodeType),z===1||z===3){I=m;const H=!v.children.length;for(let A=0;A<v.staticCount;A++)H&&(v.children+=I.nodeType===1?I.outerHTML:I.data),A===v.staticCount-1&&(v.anchor=I),I=o(I);return R?o(I):I}else N();break;case be:R?I=h(m,v,w,S,P,T):I=N();break;default:if(se&1)(z!==1||v.type.toLowerCase()!==m.tagName.toLowerCase())&&!_(m)?I=N():I=d(m,v,w,S,P,T);else if(se&6){v.slotScopeIds=P;const H=i(m);if(R?I=y(m):Mr(m)&&m.data==="teleport start"?I=y(m,m.data,"teleport end"):I=o(m),t(v,H,null,w,S,uo(H),T),cr(v)&&!v.type.__asyncResolved){let A;R?(A=Z(be),A.anchor=I?I.previousSibling:H.lastChild):A=m.nodeType===3?Be(""):Z("div"),A.el=m,v.component.subTree=A}}else se&64?z!==8?I=N():I=v.type.hydrate(m,v,w,S,P,T,e,p):se&128&&(I=v.type.hydrate(m,v,w,S,uo(i(m)),P,T,e,f))}return U!=null&&qr(U,null,S,v),I},d=(m,v,w,S,P,T)=>{T=T||!!v.dynamicChildren;const{type:R,props:N,patchFlag:X,shapeFlag:U,dirs:se,transition:L}=v,z=R==="input"||R==="option";if(z||X!==-1){se&&rn(v,null,w,"created");let I=!1;if(_(m)){I=Xp(null,L)&&w&&w.vnode.props&&w.vnode.props.appear;const A=m.content.firstChild;if(I){const oe=A.getAttribute("class");oe&&(A.$cls=oe),L.beforeEnter(A)}b(A,m,w),v.el=m=A}if(U&16&&!(N&&(N.innerHTML||N.textContent))){let A=p(m.firstChild,v,m,w,S,P,T);for(;A;){fo(m,1)||Tr();const oe=A;A=A.nextSibling,a(oe)}}else if(U&8){let A=v.children;A[0]===`
3
- `&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(A=A.slice(1));const{textContent:oe}=m;oe!==A&&oe!==A.replace(/\r\n|\r/g,`
4
- `)&&(fo(m,0)||Tr(),m.textContent=v.children)}if(N){if(z||!T||X&48){const A=m.tagName.includes("-");for(const oe in N)(z&&(oe.endsWith("value")||oe==="indeterminate")||Xs(oe)&&!ar(oe)||oe[0]==="."||A&&!ar(oe))&&r(m,oe,null,N[oe],void 0,w)}else if(N.onClick)r(m,"onClick",null,N.onClick,void 0,w);else if(X&4&&qn(N.style))for(const A in N.style)N.style[A]}let H;(H=N&&N.onVnodeBeforeMount)&&Bt(H,w,v),se&&rn(v,null,w,"beforeMount"),((H=N&&N.onVnodeMounted)||se||I)&&eh(()=>{H&&Bt(H,w,v),I&&L.enter(m),se&&rn(v,null,w,"mounted")},S)}return m.nextSibling},p=(m,v,w,S,P,T,R)=>{R=R||!!v.dynamicChildren;const N=v.children,X=N.length;for(let U=0;U<X;U++){const se=R?N[U]:N[U]=Rt(N[U]),L=se.type===fr;m?(L&&!R&&U+1<X&&Rt(N[U+1]).type===fr&&(l(s(m.data.slice(se.children.length)),w,o(m)),m.data=se.children),m=f(m,se,S,P,T,R)):L&&!se.children?l(se.el=s(""),w):(fo(w,1)||Tr(),n(null,se,w,null,S,P,uo(w),T))}return m},h=(m,v,w,S,P,T)=>{const{slotScopeIds:R}=v;R&&(P=P?P.concat(R):R);const N=i(m),X=p(o(m),v,N,w,S,P,T);return X&&Mr(X)&&X.data==="]"?o(v.anchor=X):(Tr(),l(v.anchor=c("]"),N,X),X)},g=(m,v,w,S,P,T)=>{if(fo(m.parentElement,1)||Tr(),v.el=null,T){const X=y(m);for(;;){const U=o(m);if(U&&U!==X)a(U);else break}}const R=o(m),N=i(m);return a(m),n(null,v,N,R,w,S,uo(N),P),w&&(w.vnode.el=v.el,qi(w,v.el)),R},y=(m,v="[",w="]")=>{let S=0;for(;m;)if(m=o(m),m&&Mr(m)&&(m.data===v&&S++,m.data===w)){if(S===0)return o(m);S--}return m},b=(m,v,w)=>{const S=v.parentNode;S&&S.replaceChild(m,v);let P=w;for(;P;)P.vnode.el===v&&(P.vnode.el=P.subTree.el=m),P=P.parent},_=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[u,f]}const Cu="data-allow-mismatch",hb={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function fo(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Cu);)e=e.parentElement;const n=e&&e.getAttribute(Cu);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(hb[t])}}Oi().requestIdleCallback;Oi().cancelIdleCallback;function gb(e,t){if(Mr(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Mr(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const cr=e=>!!e.type.__asyncLoader;function Ae(e){ce(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let c=null,u,f=0;const d=()=>(f++,c=null,p()),p=()=>{let h;return c||(h=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,b)=>{l(g,()=>y(d()),()=>b(g),f+1)});throw g}).then(g=>h!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return ue({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(h,g,y){let b=!1;(g.bu||(g.bu=[])).push(()=>b=!0);const _=()=>{b||y()},m=o?()=>{const v=o(_,w=>gb(h,w));v&&(g.bum||(g.bum=[])).push(v)}:_;u?m():p().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return u},setup(){const h=et;if(pc(h),u)return()=>po(u,h);const g=m=>{c=null,Zr(m,h,13,!r)};if(a&&h.suspense||Xr)return p().then(m=>()=>po(m,h)).catch(m=>(g(m),()=>r?Z(r,{error:m}):null));const y=Y(!1),b=Y(),_=Y(!!s);return s&&setTimeout(()=>{_.value=!1},s),i!=null&&setTimeout(()=>{if(!y.value&&!b.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),b.value=m}},i),p().then(()=>{y.value=!0,h.parent&&hc(h.parent.vnode)&&h.parent.update()}).catch(m=>{g(m),b.value=m}),()=>{if(y.value&&u)return po(u,h);if(b.value&&r)return Z(r,{error:b.value});if(n&&!_.value)return po(n,h)}}})}function po(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=Z(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const hc=e=>e.type.__isKeepAlive;function Ap(e,t){Pp(e,"a",t)}function Tp(e,t){Pp(e,"da",t)}function Pp(e,t,n=et){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Bi(t,r,n),n){let s=n.parent;for(;s&&s.parent;)hc(s.parent.vnode)&&mb(r,t,n,s),s=s.parent}}function mb(e,t,n,r){const s=Bi(t,e,r,!0);es(()=>{rc(r[t],s)},n)}function Bi(e,t,n=et,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Cn();const a=hr(n),l=un(t,n,e,i);return a(),Sn(),l});return r?s.unshift(o):s.push(o),o}}const Rn=e=>(t,n=et)=>{(!Xr||e==="sp")&&Bi(e,(...r)=>t(...r),n)},yb=Rn("bm"),Dt=Rn("m"),bb=Rn("bu"),vb=Rn("u"),gc=Rn("bum"),es=Rn("um"),wb=Rn("sp"),_b=Rn("rtg"),xb=Rn("rtc");function Rp(e,t=et){Bi("ec",e,t)}const Ip="components";function Su(e,t){return $p(Ip,e,!0,t)||e}const Op=Symbol.for("v-ndc");function _n(e){return De(e)?$p(Ip,e,!1)||e:e||Op}function $p(e,t,n=!0,r=!1){const s=pt||et;if(s){const o=s.type;{const a=pv(o,!1);if(a&&(a===t||a===ht(t)||a===Ii(ht(t))))return o}const i=Eu(s[e]||o[e],t)||Eu(s.appContext[e],t);return!i&&r?o:i}}function Eu(e,t){return e&&(e[t]||e[ht(t)]||e[Ii(ht(t))])}function Ot(e,t,n,r){let s;const o=n,i=le(e);if(i||De(e)){const a=i&&qn(e);let l=!1,c=!1;a&&(l=!Lt(e),c=ln(e),e=Li(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(l?c?Vr(Jt(e[u])):Jt(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o)}else if(Le(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,o)}}else s=[];return s}function ne(e,t,n={},r,s){if(pt.ce||pt.parent&&cr(pt.parent)&&pt.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),E(),j(be,null,[Z("slot",n,r&&r())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),E();const i=o&&Lp(o(n)),a=n.key||i&&i.key,l=j(be,{key:(a&&!Pn(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Lp(e){return e.some(t=>Kr(t)?!(t.type===Ct||t.type===be&&!Lp(t.children)):!0)?e:null}function kb(e,t){const n={};for(const r in e)n[ks(r)]=e[r];return n}const Ya=e=>e?sh(e)?wc(e):Ya(e.parent):null,As=Ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ya(e.parent),$root:e=>Ya(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Mp(e),$forceUpdate:e=>e.f||(e.f=()=>{fc(e.update)}),$nextTick:e=>e.n||(e.n=kt.bind(e.proxy)),$watch:e=>ab.bind(e)}),da=(e,t)=>e!==Ce&&!e.__isScriptSetup&&ke(e,t),Cb={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;if(t[0]!=="$"){const d=i[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(da(r,t))return i[t]=1,r[t];if(s!==Ce&&ke(s,t))return i[t]=2,s[t];if(ke(o,t))return i[t]=3,o[t];if(n!==Ce&&ke(n,t))return i[t]=4,n[t];Qa&&(i[t]=0)}}const c=As[t];let u,f;if(c)return t==="$attrs"&&lt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Ce&&ke(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,ke(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return da(s,t)?(s[t]=n,!0):r!==Ce&&ke(r,t)?(r[t]=n,!0):ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:i}},a){let l;return!!(n[a]||e!==Ce&&a[0]!=="$"&&ke(e,a)||da(t,a)||ke(o,a)||ke(r,a)||ke(As,a)||ke(s.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ke(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ts(){return Sb().slots}function Sb(e){const t=ut();return t.setupContext||(t.setupContext=ih(t))}function Ds(e){return le(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Eb(e,t){const n=Ds(e);for(const r in t){if(r.startsWith("__skip"))continue;let s=n[r];s?le(s)||ce(s)?s=n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(s=n[r]={default:t[r]}),s&&t[`__skip_${r}`]&&(s.skipFactory=!0)}return n}function Ab(e,t){return!e||!t?e||t:le(e)&&le(t)?e.concat(t):Ze({},Ds(e),Ds(t))}function Tb(e){const t=ut();let n=e();return rl(),sc(n)&&(n=n.catch(r=>{throw hr(t),r})),[n,()=>hr(t)]}let Qa=!0;function Pb(e){const t=Mp(e),n=e.proxy,r=e.ctx;Qa=!1,t.beforeCreate&&Au(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:_,destroyed:m,unmounted:v,render:w,renderTracked:S,renderTriggered:P,errorCaptured:T,serverPrefetch:R,expose:N,inheritAttrs:X,components:U,directives:se,filters:L}=t;if(c&&Rb(c,r,null),i)for(const H in i){const A=i[H];ce(A)&&(r[H]=A.bind(n))}if(s){const H=s.call(n,n);Le(H)&&(e.data=gt(H))}if(Qa=!0,o)for(const H in o){const A=o[H],oe=ce(A)?A.bind(n,n):ce(A.get)?A.get.bind(n,n):on,je=!ce(A)&&ce(A.set)?A.set.bind(n):on,We=$({get:oe,set:je});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>We.value,set:Te=>We.value=Te})}if(a)for(const H in a)Np(a[H],r,n,H);if(l){const H=ce(l)?l.call(n):l;Reflect.ownKeys(H).forEach(A=>{dr(A,H[A])})}u&&Au(u,e,"c");function I(H,A){le(A)?A.forEach(oe=>H(oe.bind(n))):A&&H(A.bind(n))}if(I(yb,f),I(Dt,d),I(bb,p),I(vb,h),I(Ap,g),I(Tp,y),I(Rp,T),I(xb,S),I(_b,P),I(gc,_),I(es,v),I(wb,R),le(N))if(N.length){const H=e.exposed||(e.exposed={});N.forEach(A=>{Object.defineProperty(H,A,{get:()=>n[A],set:oe=>n[A]=oe,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===on&&(e.render=w),X!=null&&(e.inheritAttrs=X),U&&(e.components=U),se&&(e.directives=se),R&&pc(e)}function Rb(e,t,n=on){le(e)&&(e=Za(e));for(const r in e){const s=e[r];let o;Le(s)?"default"in s?o=wt(s.from||r,s.default,!0):o=wt(s.from||r):o=wt(s),Ne(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Au(e,t,n){un(le(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Np(e,t,n,r){let s=r.includes(".")?_p(n,r):()=>n[r];if(De(e)){const o=t[e];ce(o)&&Re(s,o)}else if(ce(e))Re(s,e.bind(n));else if(Le(e))if(le(e))e.forEach(o=>Np(o,t,n,r));else{const o=ce(e.handler)?e.handler.bind(n):t[e.handler];ce(o)&&Re(s,o,e)}}function Mp(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>Yo(l,c,i,!0)),Yo(l,t,i)),Le(t)&&o.set(t,l),l}function Yo(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Yo(e,o,n,!0),s&&s.forEach(i=>Yo(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Ib[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ib={data:Tu,props:Pu,emits:Pu,methods:ws,computed:ws,beforeCreate:ft,created:ft,beforeMount:ft,mounted:ft,beforeUpdate:ft,updated:ft,beforeDestroy:ft,beforeUnmount:ft,destroyed:ft,unmounted:ft,activated:ft,deactivated:ft,errorCaptured:ft,serverPrefetch:ft,components:ws,directives:ws,watch:$b,provide:Tu,inject:Ob};function Tu(e,t){return t?e?function(){return Ze(ce(e)?e.call(this,this):e,ce(t)?t.call(this,this):t)}:t:e}function Ob(e,t){return ws(Za(e),Za(t))}function Za(e){if(le(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ft(e,t){return e?[...new Set([].concat(e,t))]:t}function ws(e,t){return e?Ze(Object.create(null),e,t):t}function Pu(e,t){return e?le(e)&&le(t)?[...new Set([...e,...t])]:Ze(Object.create(null),Ds(e),Ds(t??{})):t}function $b(e,t){if(!e)return t;if(!t)return e;const n=Ze(Object.create(null),e);for(const r in t)n[r]=ft(e[r],t[r]);return n}function Dp(){return{app:null,config:{isNativeTag:qd,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Lb=0;function Nb(e,t){return function(r,s=null){ce(r)||(r=Ze({},r)),s!=null&&!Le(s)&&(s=null);const o=Dp(),i=new WeakSet,a=[];let l=!1;const c=o.app={_uid:Lb++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:gv,get config(){return o.config},set config(u){},use(u,...f){return i.has(u)||(u&&ce(u.install)?(i.add(u),u.install(c,...f)):ce(u)&&(i.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,d){if(!l){const p=c._ceVNode||Z(r,s);return p.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(p,u):e(p,u,d),l=!0,c._container=u,u.__vue_app__=c,wc(p.component)}},onUnmount(u){a.push(u)},unmount(){l&&(un(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=ur;ur=c;try{return u()}finally{ur=f}}};return c}}let ur=null;function Mb(e,t,n=Ce){const r=ut(),s=ht(t),o=Wn(t),i=Fp(e,s),a=uc((l,c)=>{let u,f=Ce,d;return ib(()=>{const p=e[s];bt(u,p)&&(u=p,c())}),{get(){return l(),n.get?n.get(u):u},set(p){const h=n.set?n.set(p):p;if(!bt(h,u)&&!(f!==Ce&&bt(p,f)))return;const g=r.vnode.props;g&&(t in g||s in g||o in g)&&(`onUpdate:${t}`in g||`onUpdate:${s}`in g||`onUpdate:${o}`in g)||(u=p,c()),r.emit(`update:${t}`,h),bt(p,h)&&bt(p,f)&&!bt(h,d)&&c(),f=p,d=h}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?i||Ce:a,done:!1}:{done:!0}}}},a}const Fp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ht(t)}Modifiers`]||e[`${Wn(t)}Modifiers`];function Db(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ce;let s=n;const o=t.startsWith("update:"),i=o&&Fp(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>De(u)?u.trim():u)),i.number&&(s=n.map(wy)));let a,l=r[a=ks(t)]||r[a=ks(ht(t))];!l&&o&&(l=r[a=ks(Wn(t))]),l&&un(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,un(c,e,6,s)}}const Fb=new WeakMap;function Bp(e,t,n=!1){const r=n?Fb:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!ce(e)){const l=c=>{const u=Bp(c,t,!0);u&&(a=!0,Ze(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Le(e)&&r.set(e,null),null):(le(o)?o.forEach(l=>i[l]=null):Ze(i,o),Le(e)&&r.set(e,i),i)}function ji(e,t){return!e||!Xs(t)?!1:(t=t.slice(2).replace(/Once$/,""),ke(e,t[0].toLowerCase()+t.slice(1))||ke(e,Wn(t))||ke(e,t))}function pa(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:h,inheritAttrs:g}=e,y=Xo(e);let b,_;try{if(n.shapeFlag&4){const v=s||r,w=v;b=Rt(c.call(w,v,u,f,p,d,h)),_=a}else{const v=t;b=Rt(v.length>1?v(f,{attrs:a,slots:i,emit:l}):v(f,null)),_=t.props?a:jb(a)}}catch(v){Ps.length=0,Zr(v,e,1),b=Z(Ct)}let m=b;if(_&&g!==!1){const v=Object.keys(_),{shapeFlag:w}=m;v.length&&w&7&&(o&&v.some(nc)&&(_=qb(_,o)),m=pr(m,_,!1,!0))}return n.dirs&&(m=pr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&dc(m,n.transition),b=m,Xo(y),b}function Bb(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(Kr(s)){if(s.type!==Ct||s.children==="v-if"){if(n)return;n=s}}else return}return n}const jb=e=>{let t;for(const n in e)(n==="class"||n==="style"||Xs(n))&&((t||(t={}))[n]=e[n]);return t},qb=(e,t)=>{const n={};for(const r in e)(!nc(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function zb(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ru(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(i[d]!==r[d]&&!ji(c,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Ru(r,i,c):!0:!!i;return!1}function Ru(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!ji(n,o))return!0}return!1}function qi({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const jp={},qp=()=>Object.create(jp),zp=e=>Object.getPrototypeOf(e)===jp;function Hb(e,t,n,r=!1){const s={},o=qp();e.propsDefaults=Object.create(null),Hp(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:sr(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Ub(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=we(s),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(ji(e.emitsOptions,d))continue;const p=t[d];if(l)if(ke(o,d))p!==o[d]&&(o[d]=p,c=!0);else{const h=ht(d);s[h]=el(l,a,h,p,e,!1)}else p!==o[d]&&(o[d]=p,c=!0)}}}else{Hp(e,t,s,o)&&(c=!0);let u;for(const f in a)(!t||!ke(t,f)&&((u=Wn(f))===f||!ke(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=el(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!ke(t,f))&&(delete o[f],c=!0)}c&&wn(e.attrs,"set","")}function Hp(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(ar(l))continue;const c=t[l];let u;s&&ke(s,u=ht(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:ji(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(o){const l=we(n),c=a||Ce;for(let u=0;u<o.length;u++){const f=o[u];n[f]=el(s,l,f,c[f],e,!ke(c,f))}}return i}function el(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=ke(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ce(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=hr(s);r=c[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===Wn(n))&&(r=!0))}return r}const Gb=new WeakMap;function Up(e,t,n=!1){const r=n?Gb:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!ce(e)){const u=f=>{l=!0;const[d,p]=Up(f,t,!0);Ze(i,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Le(e)&&r.set(e,Fr),Fr;if(le(o))for(let u=0;u<o.length;u++){const f=ht(o[u]);Iu(f)&&(i[f]=Ce)}else if(o)for(const u in o){const f=ht(u);if(Iu(f)){const d=o[u],p=i[f]=le(d)||ce(d)?{type:d}:Ze({},d),h=p.type;let g=!1,y=!0;if(le(h))for(let b=0;b<h.length;++b){const _=h[b],m=ce(_)&&_.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=ce(h)&&h.name==="Boolean";p[0]=g,p[1]=y,(g||ke(p,"default"))&&a.push(f)}}const c=[i,a];return Le(e)&&r.set(e,c),c}function Iu(e){return e[0]!=="$"&&!ar(e)}const mc=e=>e==="_"||e==="_ctx"||e==="$stable",yc=e=>le(e)?e.map(Rt):[Rt(e)],Vb=(e,t,n)=>{if(t._n)return t;const r=V((...s)=>yc(t(...s)),n);return r._c=!1,r},Gp=(e,t,n)=>{const r=e._ctx;for(const s in e){if(mc(s))continue;const o=e[s];if(ce(o))t[s]=Vb(s,o,r);else if(o!=null){const i=yc(o);t[s]=()=>i}}},Vp=(e,t)=>{const n=yc(t);e.slots.default=()=>n},Wp=(e,t,n)=>{for(const r in t)(n||!mc(r))&&(e[r]=t[r])},Wb=(e,t,n)=>{const r=e.slots=qp();if(e.vnode.shapeFlag&32){const s=t._;s?(Wp(r,t,n),n&&Gd(r,"_",s,!0)):Gp(t,r)}else t&&Vp(e,t)},Kb=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Ce;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Wp(s,t,n):(o=!t.$stable,Gp(t,s)),i=t}else t&&(Vp(e,t),i={default:1});if(o)for(const a in s)!mc(a)&&i[a]==null&&delete s[a]},it=eh;function Xb(e){return Kp(e)}function Jb(e){return Kp(e,pb)}function Kp(e,t){const n=Oi();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=on,insertStaticContent:h}=e,g=(x,C,O,B=null,M=null,D=null,J=void 0,K=null,G=!!C.dynamicChildren)=>{if(x===C)return;x&&!jn(x,C)&&(B=Fe(x),Te(x,M,D,!0),x=null),C.patchFlag===-2&&(G=!1,C.dynamicChildren=null);const{type:F,ref:ae,shapeFlag:Q}=C;switch(F){case fr:y(x,C,O,B);break;case Ct:b(x,C,O,B);break;case Ts:x==null&&_(C,O,B,J);break;case be:U(x,C,O,B,M,D,J,K,G);break;default:Q&1?w(x,C,O,B,M,D,J,K,G):Q&6?se(x,C,O,B,M,D,J,K,G):(Q&64||Q&128)&&F.process(x,C,O,B,M,D,J,K,G,Ut)}ae!=null&&M?qr(ae,x&&x.ref,D,C||x,!C):ae==null&&x&&x.ref!=null&&qr(x.ref,null,D,x,!0)},y=(x,C,O,B)=>{if(x==null)r(C.el=a(C.children),O,B);else{const M=C.el=x.el;C.children!==x.children&&c(M,C.children)}},b=(x,C,O,B)=>{x==null?r(C.el=l(C.children||""),O,B):C.el=x.el},_=(x,C,O,B)=>{[x.el,x.anchor]=h(x.children,C,O,B,x.el,x.anchor)},m=({el:x,anchor:C},O,B)=>{let M;for(;x&&x!==C;)M=d(x),r(x,O,B),x=M;r(C,O,B)},v=({el:x,anchor:C})=>{let O;for(;x&&x!==C;)O=d(x),s(x),x=O;s(C)},w=(x,C,O,B,M,D,J,K,G)=>{if(C.type==="svg"?J="svg":C.type==="math"&&(J="mathml"),x==null)S(C,O,B,M,D,J,K,G);else{const F=x.el&&x.el._isVueCE?x.el:null;try{F&&F._beginPatch(),R(x,C,M,D,J,K,G)}finally{F&&F._endPatch()}}},S=(x,C,O,B,M,D,J,K)=>{let G,F;const{props:ae,shapeFlag:Q,transition:ie,dirs:fe}=x;if(G=x.el=i(x.type,D,ae&&ae.is,ae),Q&8?u(G,x.children):Q&16&&T(x.children,G,null,B,M,ha(x,D),J,K),fe&&rn(x,null,B,"created"),P(G,x,x.scopeId,J,B),ae){for(const Ie in ae)Ie!=="value"&&!ar(Ie)&&o(G,Ie,null,ae[Ie],D,B);"value"in ae&&o(G,"value",null,ae.value,D),(F=ae.onVnodeBeforeMount)&&Bt(F,B,x)}fe&&rn(x,null,B,"beforeMount");const ve=Xp(M,ie);ve&&ie.beforeEnter(G),r(G,C,O),((F=ae&&ae.onVnodeMounted)||ve||fe)&&it(()=>{F&&Bt(F,B,x),ve&&ie.enter(G),fe&&rn(x,null,B,"mounted")},M)},P=(x,C,O,B,M)=>{if(O&&p(x,O),B)for(let D=0;D<B.length;D++)p(x,B[D]);if(M){let D=M.subTree;if(C===D||Qp(D.type)&&(D.ssContent===C||D.ssFallback===C)){const J=M.vnode;P(x,J,J.scopeId,J.slotScopeIds,M.parent)}}},T=(x,C,O,B,M,D,J,K,G=0)=>{for(let F=G;F<x.length;F++){const ae=x[F]=K?Fn(x[F]):Rt(x[F]);g(null,ae,C,O,B,M,D,J,K)}},R=(x,C,O,B,M,D,J)=>{const K=C.el=x.el;let{patchFlag:G,dynamicChildren:F,dirs:ae}=C;G|=x.patchFlag&16;const Q=x.props||Ce,ie=C.props||Ce;let fe;if(O&&Yn(O,!1),(fe=ie.onVnodeBeforeUpdate)&&Bt(fe,O,C,x),ae&&rn(C,x,O,"beforeUpdate"),O&&Yn(O,!0),(Q.innerHTML&&ie.innerHTML==null||Q.textContent&&ie.textContent==null)&&u(K,""),F?N(x.dynamicChildren,F,K,O,B,ha(C,M),D):J||A(x,C,K,null,O,B,ha(C,M),D,!1),G>0){if(G&16)X(K,Q,ie,O,M);else if(G&2&&Q.class!==ie.class&&o(K,"class",null,ie.class,M),G&4&&o(K,"style",Q.style,ie.style,M),G&8){const ve=C.dynamicProps;for(let Ie=0;Ie<ve.length;Ie++){const Se=ve[Ie],mt=Q[Se],rt=ie[Se];(rt!==mt||Se==="value")&&o(K,Se,mt,rt,M,O)}}G&1&&x.children!==C.children&&u(K,C.children)}else!J&&F==null&&X(K,Q,ie,O,M);((fe=ie.onVnodeUpdated)||ae)&&it(()=>{fe&&Bt(fe,O,C,x),ae&&rn(C,x,O,"updated")},B)},N=(x,C,O,B,M,D,J)=>{for(let K=0;K<C.length;K++){const G=x[K],F=C[K],ae=G.el&&(G.type===be||!jn(G,F)||G.shapeFlag&198)?f(G.el):O;g(G,F,ae,null,B,M,D,J,!0)}},X=(x,C,O,B,M)=>{if(C!==O){if(C!==Ce)for(const D in C)!ar(D)&&!(D in O)&&o(x,D,C[D],null,M,B);for(const D in O){if(ar(D))continue;const J=O[D],K=C[D];J!==K&&D!=="value"&&o(x,D,K,J,M,B)}"value"in O&&o(x,"value",C.value,O.value,M)}},U=(x,C,O,B,M,D,J,K,G)=>{const F=C.el=x?x.el:a(""),ae=C.anchor=x?x.anchor:a("");let{patchFlag:Q,dynamicChildren:ie,slotScopeIds:fe}=C;fe&&(K=K?K.concat(fe):fe),x==null?(r(F,O,B),r(ae,O,B),T(C.children||[],O,ae,M,D,J,K,G)):Q>0&&Q&64&&ie&&x.dynamicChildren&&x.dynamicChildren.length===ie.length?(N(x.dynamicChildren,ie,O,M,D,J,K),(C.key!=null||M&&C===M.subTree)&&bc(x,C,!0)):A(x,C,O,ae,M,D,J,K,G)},se=(x,C,O,B,M,D,J,K,G)=>{C.slotScopeIds=K,x==null?C.shapeFlag&512?M.ctx.activate(C,O,B,J,G):L(C,O,B,M,D,J,G):z(x,C,G)},L=(x,C,O,B,M,D,J)=>{const K=x.component=cv(x,B,M);if(hc(x)&&(K.ctx.renderer=Ut),uv(K,!1,J),K.asyncDep){if(M&&M.registerDep(K,I,J),!x.el){const G=K.subTree=Z(Ct);b(null,G,C,O),x.placeholder=G.el}}else I(K,x,C,O,M,D,J)},z=(x,C,O)=>{const B=C.component=x.component;if(zb(x,C,O))if(B.asyncDep&&!B.asyncResolved){H(B,C,O);return}else B.next=C,B.update();else C.el=x.el,B.vnode=C},I=(x,C,O,B,M,D,J)=>{const K=()=>{if(x.isMounted){let{next:Q,bu:ie,u:fe,parent:ve,vnode:Ie}=x;{const At=Jp(x);if(At){Q&&(Q.el=Ie.el,H(x,Q,J)),At.asyncDep.then(()=>{x.isUnmounted||K()});return}}let Se=Q,mt;Yn(x,!1),Q?(Q.el=Ie.el,H(x,Q,J)):Q=Ie,ie&&aa(ie),(mt=Q.props&&Q.props.onVnodeBeforeUpdate)&&Bt(mt,ve,Q,Ie),Yn(x,!0);const rt=pa(x),Gt=x.subTree;x.subTree=rt,g(Gt,rt,f(Gt.el),Fe(Gt),x,M,D),Q.el=rt.el,Se===null&&qi(x,rt.el),fe&&it(fe,M),(mt=Q.props&&Q.props.onVnodeUpdated)&&it(()=>Bt(mt,ve,Q,Ie),M)}else{let Q;const{el:ie,props:fe}=C,{bm:ve,m:Ie,parent:Se,root:mt,type:rt}=x,Gt=cr(C);if(Yn(x,!1),ve&&aa(ve),!Gt&&(Q=fe&&fe.onVnodeBeforeMount)&&Bt(Q,Se,C),Yn(x,!0),ie&&On){const At=()=>{x.subTree=pa(x),On(ie,x.subTree,x,M,null)};Gt&&rt.__asyncHydrate?rt.__asyncHydrate(ie,x,At):At()}else{mt.ce&&mt.ce._def.shadowRoot!==!1&&mt.ce._injectChildStyle(rt);const At=x.subTree=pa(x);g(null,At,O,B,x,M,D),C.el=At.el}if(Ie&&it(Ie,M),!Gt&&(Q=fe&&fe.onVnodeMounted)){const At=C;it(()=>Bt(Q,Se,At),M)}(C.shapeFlag&256||Se&&cr(Se.vnode)&&Se.vnode.shapeFlag&256)&&x.a&&it(x.a,M),x.isMounted=!0,C=O=B=null}};x.scope.on();const G=x.effect=new Yd(K);x.scope.off();const F=x.update=G.run.bind(G),ae=x.job=G.runIfDirty.bind(G);ae.i=x,ae.id=x.uid,G.scheduler=()=>fc(ae),Yn(x,!0),F()},H=(x,C,O)=>{C.component=x;const B=x.vnode.props;x.vnode=C,x.next=null,Ub(x,C.props,B,O),Kb(x,C.children,O),Cn(),bu(x),Sn()},A=(x,C,O,B,M,D,J,K,G=!1)=>{const F=x&&x.children,ae=x?x.shapeFlag:0,Q=C.children,{patchFlag:ie,shapeFlag:fe}=C;if(ie>0){if(ie&128){je(F,Q,O,B,M,D,J,K,G);return}else if(ie&256){oe(F,Q,O,B,M,D,J,K,G);return}}fe&8?(ae&16&&Et(F,M,D),Q!==F&&u(O,Q)):ae&16?fe&16?je(F,Q,O,B,M,D,J,K,G):Et(F,M,D,!0):(ae&8&&u(O,""),fe&16&&T(Q,O,B,M,D,J,K,G))},oe=(x,C,O,B,M,D,J,K,G)=>{x=x||Fr,C=C||Fr;const F=x.length,ae=C.length,Q=Math.min(F,ae);let ie;for(ie=0;ie<Q;ie++){const fe=C[ie]=G?Fn(C[ie]):Rt(C[ie]);g(x[ie],fe,O,null,M,D,J,K,G)}F>ae?Et(x,M,D,!0,!1,Q):T(C,O,B,M,D,J,K,G,Q)},je=(x,C,O,B,M,D,J,K,G)=>{let F=0;const ae=C.length;let Q=x.length-1,ie=ae-1;for(;F<=Q&&F<=ie;){const fe=x[F],ve=C[F]=G?Fn(C[F]):Rt(C[F]);if(jn(fe,ve))g(fe,ve,O,null,M,D,J,K,G);else break;F++}for(;F<=Q&&F<=ie;){const fe=x[Q],ve=C[ie]=G?Fn(C[ie]):Rt(C[ie]);if(jn(fe,ve))g(fe,ve,O,null,M,D,J,K,G);else break;Q--,ie--}if(F>Q){if(F<=ie){const fe=ie+1,ve=fe<ae?C[fe].el:B;for(;F<=ie;)g(null,C[F]=G?Fn(C[F]):Rt(C[F]),O,ve,M,D,J,K,G),F++}}else if(F>ie)for(;F<=Q;)Te(x[F],M,D,!0),F++;else{const fe=F,ve=F,Ie=new Map;for(F=ve;F<=ie;F++){const Tt=C[F]=G?Fn(C[F]):Rt(C[F]);Tt.key!=null&&Ie.set(Tt.key,F)}let Se,mt=0;const rt=ie-ve+1;let Gt=!1,At=0;const fs=new Array(rt);for(F=0;F<rt;F++)fs[F]=0;for(F=fe;F<=Q;F++){const Tt=x[F];if(mt>=rt){Te(Tt,M,D,!0);continue}let en;if(Tt.key!=null)en=Ie.get(Tt.key);else for(Se=ve;Se<=ie;Se++)if(fs[Se-ve]===0&&jn(Tt,C[Se])){en=Se;break}en===void 0?Te(Tt,M,D,!0):(fs[en-ve]=F+1,en>=At?At=en:Gt=!0,g(Tt,C[en],O,null,M,D,J,K,G),mt++)}const du=Gt?Yb(fs):Fr;for(Se=du.length-1,F=rt-1;F>=0;F--){const Tt=ve+F,en=C[Tt],pu=C[Tt+1],hu=Tt+1<ae?pu.el||Yp(pu):B;fs[F]===0?g(null,en,O,hu,M,D,J,K,G):Gt&&(Se<0||F!==du[Se]?We(en,O,hu,2):Se--)}}},We=(x,C,O,B,M=null)=>{const{el:D,type:J,transition:K,children:G,shapeFlag:F}=x;if(F&6){We(x.component.subTree,C,O,B);return}if(F&128){x.suspense.move(C,O,B);return}if(F&64){J.move(x,C,O,Ut);return}if(J===be){r(D,C,O);for(let Q=0;Q<G.length;Q++)We(G[Q],C,O,B);r(x.anchor,C,O);return}if(J===Ts){m(x,C,O);return}if(B!==2&&F&1&&K)if(B===0)K.beforeEnter(D),r(D,C,O),it(()=>K.enter(D),M);else{const{leave:Q,delayLeave:ie,afterLeave:fe}=K,ve=()=>{x.ctx.isUnmounted?s(D):r(D,C,O)},Ie=()=>{D._isLeaving&&D[ub](!0),Q(D,()=>{ve(),fe&&fe()})};ie?ie(D,ve,Ie):Ie()}else r(D,C,O)},Te=(x,C,O,B=!1,M=!1)=>{const{type:D,props:J,ref:K,children:G,dynamicChildren:F,shapeFlag:ae,patchFlag:Q,dirs:ie,cacheIndex:fe}=x;if(Q===-2&&(M=!1),K!=null&&(Cn(),qr(K,null,O,x,!0),Sn()),fe!=null&&(C.renderCache[fe]=void 0),ae&256){C.ctx.deactivate(x);return}const ve=ae&1&&ie,Ie=!cr(x);let Se;if(Ie&&(Se=J&&J.onVnodeBeforeUnmount)&&Bt(Se,C,x),ae&6)nt(x.component,O,B);else{if(ae&128){x.suspense.unmount(O,B);return}ve&&rn(x,null,C,"beforeUnmount"),ae&64?x.type.remove(x,C,O,Ut,B):F&&!F.hasOnce&&(D!==be||Q>0&&Q&64)?Et(F,C,O,!1,!0):(D===be&&Q&384||!M&&ae&16)&&Et(G,C,O),B&&Ee(x)}(Ie&&(Se=J&&J.onVnodeUnmounted)||ve)&&it(()=>{Se&&Bt(Se,C,x),ve&&rn(x,null,C,"unmounted")},O)},Ee=x=>{const{type:C,el:O,anchor:B,transition:M}=x;if(C===be){qe(O,B);return}if(C===Ts){v(x);return}const D=()=>{s(O),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(x.shapeFlag&1&&M&&!M.persisted){const{leave:J,delayLeave:K}=M,G=()=>J(O,D);K?K(x.el,D,G):G()}else D()},qe=(x,C)=>{let O;for(;x!==C;)O=d(x),s(x),x=O;s(C)},nt=(x,C,O)=>{const{bum:B,scope:M,job:D,subTree:J,um:K,m:G,a:F}=x;Ou(G),Ou(F),B&&aa(B),M.stop(),D&&(D.flags|=8,Te(J,x,C,O)),K&&it(K,C),it(()=>{x.isUnmounted=!0},C)},Et=(x,C,O,B=!1,M=!1,D=0)=>{for(let J=D;J<x.length;J++)Te(x[J],C,O,B,M)},Fe=x=>{if(x.shapeFlag&6)return Fe(x.component.subTree);if(x.shapeFlag&128)return x.suspense.next();const C=d(x.anchor||x.el),O=C&&C[xp];return O?d(O):C};let Sr=!1;const Xn=(x,C,O)=>{let B;x==null?C._vnode&&(Te(C._vnode,null,null,!0),B=C._vnode.component):g(C._vnode||null,x,C,null,null,null,O),C._vnode=x,Sr||(Sr=!0,bu(B),Ko(),Sr=!1)},Ut={p:g,um:Te,m:We,r:Ee,mt:L,mc:T,pc:A,pbc:N,n:Fe,o:e};let Jn,On;return t&&([Jn,On]=t(Ut)),{render:Xn,hydrate:Jn,createApp:Nb(Xn,Jn)}}function ha({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Yn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function bc(e,t,n=!1){const r=e.children,s=t.children;if(le(r)&&le(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=Fn(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&bc(i,a)),a.type===fr&&(a.patchFlag!==-1?a.el=i.el:a.__elIndex=o+(e.type===be?1:0)),a.type===Ct&&!a.el&&(a.el=i.el)}}function Yb(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<c?o=a+1:i=a;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Jp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jp(t)}function Ou(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Yp(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Yp(t.subTree):null}const Qp=e=>e.__isSuspense;let tl=0;const Qb={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,c){if(e==null)ev(t,n,r,s,o,i,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}tv(e,t,n,r,s,i,a,l,c)}},hydrate:nv,normalize:rv},Zb=Qb;function Fs(e,t){const n=e.props&&e.props[t];ce(n)&&n()}function ev(e,t,n,r,s,o,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=Zp(e,s,r,t,f,n,o,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,r,d,o,i),d.deps>0?(Fs(e,"onPending"),Fs(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,i),zr(d,e.ssFallback)):d.resolve(!1,!0)}function tv(e,t,n,r,s,o,i,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:g,isInFallback:y,isHydrating:b}=f;if(g)f.pendingBranch=d,jn(g,d)?(l(g,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():y&&(b||(l(h,p,n,r,s,null,o,i,a),zr(f,p)))):(f.pendingId=tl++,b?(f.isHydrating=!1,f.activeBranch=g):c(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),y?(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(l(h,p,n,r,s,null,o,i,a),zr(f,p))):h&&jn(h,d)?(l(h,d,n,r,s,f,o,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0&&f.resolve()));else if(h&&jn(h,d))l(h,d,n,r,s,f,o,i,a),zr(f,d);else if(Fs(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=tl++,l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:_,pendingId:m}=f;_>0?setTimeout(()=>{f.pendingId===m&&f.fallback(p)},_):_===0&&f.fallback(p)}}function Zp(e,t,n,r,s,o,i,a,l,c,u=!1){const{p:f,m:d,um:p,n:h,o:{parentNode:g,remove:y}}=c;let b;const _=sv(e);_&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const m=e.props?_y(e.props.timeout):void 0,v=o,w={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:tl++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(S=!1,P=!1){const{vnode:T,activeBranch:R,pendingBranch:N,pendingId:X,effects:U,parentComponent:se,container:L,isInFallback:z}=w;let I=!1;w.isHydrating?w.isHydrating=!1:S||(I=R&&N.transition&&N.transition.mode==="out-in",I&&(R.transition.afterLeave=()=>{X===w.pendingId&&(d(N,L,o===v?h(R):o,0),Xa(U),z&&T.ssFallback&&(T.ssFallback.el=null))}),R&&(g(R.el)===L&&(o=h(R)),p(R,se,w,!0),!I&&z&&T.ssFallback&&it(()=>T.ssFallback.el=null,w)),I||d(N,L,o,0)),zr(w,N),w.pendingBranch=null,w.isInFallback=!1;let H=w.parent,A=!1;for(;H;){if(H.pendingBranch){H.effects.push(...U),A=!0;break}H=H.parent}!A&&!I&&Xa(U),w.effects=[],_&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Fs(T,"onResolve")},fallback(S){if(!w.pendingBranch)return;const{vnode:P,activeBranch:T,parentComponent:R,container:N,namespace:X}=w;Fs(P,"onFallback");const U=h(T),se=()=>{w.isInFallback&&(f(null,S,N,U,R,null,X,a,l),zr(w,S))},L=S.transition&&S.transition.mode==="out-in";L&&(T.transition.afterLeave=se),w.isInFallback=!0,p(T,R,null,!0),L||se()},move(S,P,T){w.activeBranch&&d(w.activeBranch,S,P,T),w.container=S},next(){return w.activeBranch&&h(w.activeBranch)},registerDep(S,P,T){const R=!!w.pendingBranch;R&&w.deps++;const N=S.vnode.el;S.asyncDep.catch(X=>{Zr(X,S,0)}).then(X=>{if(S.isUnmounted||w.isUnmounted||w.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:U}=S;sl(S,X),N&&(U.el=N);const se=!N&&S.subTree.el;P(S,U,g(N||S.subTree.el),N?null:h(S.subTree),w,i,T),se&&(U.placeholder=null,y(se)),qi(S,U.el),R&&--w.deps===0&&w.resolve()})},unmount(S,P){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,n,S,P),w.pendingBranch&&p(w.pendingBranch,n,S,P)}};return w}function nv(e,t,n,r,s,o,i,a,l){const c=t.suspense=Zp(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,i);return c.deps===0&&c.resolve(!1,!0),u}function rv(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=$u(r?n.default:n),e.ssFallback=r?$u(n.fallback):Z(Ct)}function $u(e){let t;if(ce(e)){const n=Wr&&e._c;n&&(e._d=!1,E()),e=e(),n&&(e._d=!0,t=vt,th())}return le(e)&&(e=Bb(e)),e=Rt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function eh(e,t){t&&t.pendingBranch?le(e)?t.effects.push(...e):t.effects.push(e):Xa(e)}function zr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,qi(r,s))}function sv(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const be=Symbol.for("v-fgt"),fr=Symbol.for("v-txt"),Ct=Symbol.for("v-cmt"),Ts=Symbol.for("v-stc"),Ps=[];let vt=null;function E(e=!1){Ps.push(vt=e?null:[])}function th(){Ps.pop(),vt=Ps[Ps.length-1]||null}let Wr=1;function Qo(e,t=!1){Wr+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function nh(e){return e.dynamicChildren=Wr>0?vt||Fr:null,th(),Wr>0&&vt&&vt.push(e),e}function re(e,t,n,r,s,o){return nh(W(e,t,n,r,s,o,!0))}function j(e,t,n,r,s){return nh(Z(e,t,n,r,s,!0))}function Kr(e){return e?e.__v_isVNode===!0:!1}function jn(e,t){return e.type===t.type&&e.key===t.key}const rh=({key:e})=>e??null,No=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?De(e)||Ne(e)||ce(e)?{i:pt,r:e,k:t,f:!!n}:e:null);function W(e,t=null,n=null,r=0,s=null,o=e===be?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rh(t),ref:t&&No(t),scopeId:vp,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:pt};return a?(vc(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=De(n)?8:16),Wr>0&&!i&&vt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&vt.push(l),l}const Z=ov;function ov(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Op)&&(e=Ct),Kr(e)){const a=pr(e,t,!0);return n&&vc(a,n),Wr>0&&!o&&vt&&(a.shapeFlag&6?vt[vt.indexOf(e)]=a:vt.push(a)),a.patchFlag=-2,a}if(hv(e)&&(e=e.__vccOpts),t){t=zt(t);let{class:a,style:l}=t;a&&!De(a)&&(t.class=ye(a)),Le(l)&&(Di(l)&&!le(l)&&(l=Ze({},l)),t.style=Xt(l))}const i=De(e)?1:Qp(e)?128:lb(e)?64:Le(e)?4:ce(e)?2:0;return W(e,t,n,r,s,i,o,!0)}function zt(e){return e?Di(e)||zp(e)?Ze({},e):e:null}function pr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?pe(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rh(c),ref:t&&t.ref?n&&o?le(o)?o.concat(No(t)):[o,No(t)]:No(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pr(e.ssContent),ssFallback:e.ssFallback&&pr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&dc(u,l.clone(u)),u}function Be(e=" ",t=0){return Z(fr,null,e,t)}function iv(e,t){const n=Z(Ts,null,e);return n.staticCount=t,n}function he(e="",t=!1){return t?(E(),j(Ct,null,e)):Z(Ct,null,e)}function Rt(e){return e==null||typeof e=="boolean"?Z(Ct):le(e)?Z(be,null,e.slice()):Kr(e)?Fn(e):Z(fr,null,String(e))}function Fn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pr(e)}function vc(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(le(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),vc(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!zp(t)?t._ctx=pt:s===3&&pt&&(pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ce(t)?(t={default:t,_ctx:pt},n=32):(t=String(t),r&64?(n=16,t=[Be(t)]):n=8);e.children=t,e.shapeFlag|=n}function pe(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=ye([t.class,r.class]));else if(s==="style")t.style=Xt([t.style,r.style]);else if(Xs(s)){const o=t[s],i=r[s];i&&o!==i&&!(le(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function Bt(e,t,n,r=null){un(e,t,7,[n,r])}const av=Dp();let lv=0;function cv(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||av,o={uid:lv++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Xd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Up(r,s),emitsOptions:Bp(r,s),emit:null,emitted:null,propsDefaults:Ce,inheritAttrs:r.inheritAttrs,ctx:Ce,data:Ce,props:Ce,attrs:Ce,slots:Ce,refs:Ce,setupState:Ce,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Db.bind(null,o),e.ce&&e.ce(o),o}let et=null;const ut=()=>et||pt;let Zo,nl;{const e=Oi(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Zo=t("__VUE_INSTANCE_SETTERS__",n=>et=n),nl=t("__VUE_SSR_SETTERS__",n=>Xr=n)}const hr=e=>{const t=et;return Zo(e),e.scope.on(),()=>{e.scope.off(),Zo(t)}},rl=()=>{et&&et.scope.off(),Zo(null)};function sh(e){return e.vnode.shapeFlag&4}let Xr=!1;function uv(e,t=!1,n=!1){t&&nl(t);const{props:r,children:s}=e.vnode,o=sh(e);Hb(e,r,o,t),Wb(e,s,n||t);const i=o?fv(e,t):void 0;return t&&nl(!1),i}function fv(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Cb);const{setup:r}=n;if(r){Cn();const s=e.setupContext=r.length>1?ih(e):null,o=hr(e),i=Ys(r,e,0,[e.props,s]),a=sc(i);if(Sn(),o(),(a||e.sp)&&!cr(e)&&pc(e),a){if(i.then(rl,rl),t)return i.then(l=>{sl(e,l)}).catch(l=>{Zr(l,e,0)});e.asyncDep=i}else sl(e,i)}else oh(e)}function sl(e,t,n){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Le(t)&&(e.setupState=hp(t)),oh(e)}function oh(e,t,n){const r=e.type;e.render||(e.render=r.render||on);{const s=hr(e);Cn();try{Pb(e)}finally{Sn(),s()}}}const dv={get(e,t){return lt(e,"get",""),e[t]}};function ih(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,dv),slots:e.slots,emit:e.emit,expose:t}}function wc(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hp(cc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in As)return As[n](e)},has(t,n){return n in t||n in As}})):e.proxy}function pv(e,t=!0){return ce(e)?e.displayName||e.name:e.name||t&&e.__name}function hv(e){return ce(e)&&"__vccOpts"in e}const $=(e,t)=>Zy(e,t,Xr);function _t(e,t,n){try{Qo(-1);const r=arguments.length;return r===2?Le(t)&&!le(t)?Kr(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Kr(n)&&(n=[n]),Z(e,t,n))}finally{Qo(1)}}const gv="3.5.27";let ol;const Lu=typeof window<"u"&&window.trustedTypes;if(Lu)try{ol=Lu.createPolicy("vue",{createHTML:e=>e})}catch{}const ah=ol?e=>ol.createHTML(e):e=>e,mv="http://www.w3.org/2000/svg",yv="http://www.w3.org/1998/Math/MathML",bn=typeof document<"u"?document:null,Nu=bn&&bn.createElement("template"),bv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?bn.createElementNS(mv,e):t==="mathml"?bn.createElementNS(yv,e):n?bn.createElement(e,{is:n}):bn.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>bn.createTextNode(e),createComment:e=>bn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>bn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Nu.innerHTML=ah(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Nu.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},vv=Symbol("_vtc");function wv(e,t,n){const r=e[vv];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Mu=Symbol("_vod"),_v=Symbol("_vsh"),xv=Symbol(""),kv=/(?:^|;)\s*display\s*:/;function Cv(e,t,n){const r=e.style,s=De(n);let o=!1;if(n&&!s){if(t)if(De(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Mo(r,a,"")}else for(const i in t)n[i]==null&&Mo(r,i,"");for(const i in n)i==="display"&&(o=!0),Mo(r,i,n[i])}else if(s){if(t!==n){const i=r[xv];i&&(n+=";"+i),r.cssText=n,o=kv.test(n)}}else t&&e.removeAttribute("style");Mu in e&&(e[Mu]=o?r.display:"",e[_v]&&(r.display="none"))}const Du=/\s*!important$/;function Mo(e,t,n){if(le(n))n.forEach(r=>Mo(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Sv(e,t);Du.test(n)?e.setProperty(Wn(r),n.replace(Du,""),"important"):e[r]=n}}const Fu=["Webkit","Moz","ms"],ga={};function Sv(e,t){const n=ga[t];if(n)return n;let r=ht(t);if(r!=="filter"&&r in e)return ga[t]=r;r=Ii(r);for(let s=0;s<Fu.length;s++){const o=Fu[s]+r;if(o in e)return ga[t]=o}return t}const Bu="http://www.w3.org/1999/xlink";function ju(e,t,n,r,s,o=Ay(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Bu,t.slice(6,t.length)):e.setAttributeNS(Bu,t,n):n==null||o&&!Vd(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Pn(n)?String(n):n)}function qu(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ah(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Vd(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function Ev(e,t,n,r){e.addEventListener(t,n,r)}function Av(e,t,n,r){e.removeEventListener(t,n,r)}const zu=Symbol("_vei");function Tv(e,t,n,r,s=null){const o=e[zu]||(e[zu]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=Pv(t);if(r){const c=o[t]=Ov(r,s);Ev(e,a,c,l)}else i&&(Av(e,a,i,l),o[t]=void 0)}}const Hu=/(?:Once|Passive|Capture)$/;function Pv(e){let t;if(Hu.test(e)){t={};let r;for(;r=e.match(Hu);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wn(e.slice(2)),t]}let ma=0;const Rv=Promise.resolve(),Iv=()=>ma||(Rv.then(()=>ma=0),ma=Date.now());function Ov(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;un($v(r,n.value),t,5,[r])};return n.value=e,n.attached=Iv(),n}function $v(e,t){if(le(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Uu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Lv=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?wv(e,r,i):t==="style"?Cv(e,n,r):Xs(t)?nc(t)||Tv(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nv(e,t,r,i))?(qu(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ju(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!De(r))?qu(e,ht(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ju(e,t,r,i))};function Nv(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Uu(t)&&ce(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Uu(t)&&De(n)?!1:t in e}const Mv=["ctrl","shift","alt","meta"],Dv={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Mv.some(n=>e[`${n}Key`]&&!t.includes(n))},Rs=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let i=0;i<t.length;i++){const a=Dv[t[i]];if(a&&a(s,t))return}return e(s,...o)}))},lh=Ze({patchProp:Lv},bv);let Is,Gu=!1;function Fv(){return Is||(Is=Xb(lh))}function Bv(){return Is=Gu?Is:Jb(lh),Gu=!0,Is}const jv=((...e)=>{const t=Fv().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=uh(r);if(!s)return;const o=t._component;!ce(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,ch(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t}),qv=((...e)=>{const t=Bv().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=uh(r);if(s)return n(s,!0,ch(s))},t});function ch(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function uh(e){return De(e)?document.querySelector(e):e}const zv=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Hv=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Uv=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Gv(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Vv(e);return}return t}function Vv(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ei(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Uv.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(zv.test(e)||Hv.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Gv)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Wv=/#/g,Kv=/&/g,Xv=/\//g,Jv=/=/g,_c=/\+/g,Yv=/%5e/gi,Qv=/%60/gi,Zv=/%7c/gi,e0=/%20/gi;function t0(e){return encodeURI(""+e).replace(Zv,"|")}function il(e){return t0(typeof e=="string"?e:JSON.stringify(e)).replace(_c,"%2B").replace(e0,"+").replace(Wv,"%23").replace(Kv,"%26").replace(Qv,"`").replace(Yv,"^").replace(Xv,"%2F")}function ya(e){return il(e).replace(Jv,"%3D")}function ti(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function n0(e){return ti(e.replace(_c," "))}function r0(e){return ti(e.replace(_c," "))}function zi(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=n0(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=r0(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function s0(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ya(e)}=${il(n)}`).join("&"):`${ya(e)}=${il(t)}`:ya(e)}function fh(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>s0(t,e[t])).filter(Boolean).join("&")}const o0=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,dh=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,i0=/^([/\\]\s*){2,}[^/\\]/,a0=/^[\s\0]*(blob|data|javascript|vbscript):$/i,l0=/\/$|\/\?|\/#/,c0=/^\.?\//;function In(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?o0.test(e):dh.test(e)||(t.acceptRelative?i0.test(e):!1)}function u0(e){return!!e&&a0.test(e)}function al(e="",t){return t?l0.test(e):e.endsWith("/")}function xc(e="",t){if(!t)return(al(e)?e.slice(0,-1):e)||"/";if(!al(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function ni(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(al(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function f0(e=""){return e.startsWith("/")}function Vu(e=""){return f0(e)?e:"/"+e}function d0(e,t){if(hh(t)||In(e))return e;const n=xc(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return wr(n,e)}function p0(e,t){if(hh(t))return e;const n=xc(t);if(!e.startsWith(n))return e;const r=e[n.length];if(r&&r!=="/"&&r!=="?")return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function ph(e,t){const n=yh(e),r={...zi(n.search),...t};return n.search=fh(r),bh(n)}function hh(e){return!e||e==="/"}function h0(e){return e&&e!=="/"}function wr(e,...t){let n=e||"";for(const r of t.filter(s=>h0(s)))if(n){const s=r.replace(c0,"");n=ni(n)+s}else n=r;return n}function gh(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&In(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let o=r.join("/");return s>=0?n[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:n[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,n[n.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function g0(e){return m0(e,"https://")}function m0(e,t){let n=e.match(dh);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function y0(e,t,n={}){return n.trailingSlash||(e=ni(e),t=ni(t)),n.leadingSlash||(e=Vu(e),t=Vu(t)),n.encoding||(e=ti(e),t=ti(t)),e===t}const mh=Symbol.for("ufo:protocolRelative");function yh(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!In(e,{acceptRelative:!0}))return Wu(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Wu(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:c,hash:u,[mh]:!r}}function Wu(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function bh(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[mh]?(e.protocol||"")+"//":"")+s+o+t+n+r}class b0 extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function v0(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new b0(i,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[c]}});return a}const w0=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ku(e="GET"){return w0.has(e.toUpperCase())}function _0(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const x0=new Set(["image/svg","application/xml","application/xhtml","application/html"]),k0=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function C0(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return k0.test(t)?"json":t==="text/event-stream"?"stream":x0.has(t)||t.startsWith("text/")?"text":"blob"}function S0(e,t,n,r){const s=E0(t?.headers??e?.headers,n?.headers,r);let o;return(n?.query||n?.params||t?.params||t?.query)&&(o={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:o,params:o,headers:s}}function E0(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,o);return r}async function ho(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const A0=new Set([408,409,425,429,500,502,503,504]),T0=new Set([101,204,205,304]);function vh(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=Ku(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):A0.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),o(a.request,{...a.options,retry:u-1})}}const c=v0(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,o),c}const o=async function(l,c={}){const u={request:l,options:S0(l,c,e.defaults,n),response:void 0,error:void 0};if(u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&(await ho(u,u.options.onRequest),u.options.headers instanceof n||(u.options.headers=new n(u.options.headers||{}))),typeof u.request=="string"&&(u.options.baseURL&&(u.request=d0(u.request,u.options.baseURL)),u.options.query&&(u.request=ph(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&Ku(u.options.method))if(_0(u.options.body)){const p=u.options.headers.get("content-type");typeof u.options.body!="string"&&(u.options.body=p==="application/x-www-form-urlencoded"?new URLSearchParams(u.options.body).toString():JSON.stringify(u.options.body)),p||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")}else("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"));let f;if(!u.options.signal&&u.options.timeout){const p=new r;f=setTimeout(()=>{const h=new Error("[TimeoutError]: The operation was aborted due to timeout");h.name="TimeoutError",h.code=23,p.abort(h)},u.options.timeout),u.options.signal=p.signal}try{u.response=await t(u.request,u.options)}catch(p){return u.error=p,u.options.onRequestError&&await ho(u,u.options.onRequestError),await s(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!T0.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||C0(u.response.headers.get("content-type")||"");switch(p){case"json":{const h=await u.response.text(),g=u.options.parseResponse||ei;u.response._data=g(h);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[p]()}}return u.options.onResponse&&await ho(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await ho(u,u.options.onResponseError),await s(u)):u.response},i=async function(l,c){return(await o(l,c))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>vh({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const ri=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),P0=ri.fetch?(...e)=>ri.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),R0=ri.Headers,I0=ri.AbortController,O0=vh({fetch:P0,Headers:R0,AbortController:I0}),$0=O0,L0=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,kc=()=>L0().app,N0=()=>kc().baseURL,M0=()=>kc().buildAssetsDir,Cc=(...e)=>gh(wh(),M0(),...e),wh=(...e)=>{const t=kc(),n=t.cdnURL||t.baseURL;return e.length?gh(n,...e):n};globalThis.__buildAssetsURL=Cc,globalThis.__publicAssetsURL=wh;globalThis.$fetch||(globalThis.$fetch=$0.create({baseURL:N0()}));"global"in globalThis||(globalThis.global=globalThis);function ll(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?ll(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const D0={run:e=>e()},F0=()=>D0,_h=typeof console.createTask<"u"?console.createTask:F0;function B0(e,t){const n=t.shift(),r=_h(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function j0(e,t){const n=t.shift(),r=_h(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function ba(e,t){for(const n of[...e])n(t)}let q0=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let i=o.message;i||(i=`${s} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...o)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...o));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ll(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=ll(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(B0,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(j0,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&ba(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&ba(this._after,s)}):(this._after&&s&&ba(this._after,s),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}};function z0(){return new q0}function H0(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(s){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return s?s.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;cl.add(c);try{const u=s?s.run(i,a):a();return n||(t=void 0),await u}finally{cl.delete(c)}}}}function U0(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=H0({...e,...r})),t[n]}}}const si=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Xu="__unctx__",G0=si[Xu]||(si[Xu]=U0()),V0=(e,t={})=>G0.get(e,t),Ju="__unctx_async_handlers__",cl=si[Ju]||(si[Ju]=new Set);function W0(e){const t=[];for(const s of cl){const o=s();o&&t.push(o)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Yu={id:"__nuxt-loader"},K0={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},X0="#__nuxt",xh="nuxt-app",Qu=36e5,J0="vite:preloadError";function kh(e=xh){return V0(e,{asyncContext:!1})}const Y0="__nuxt_plugin";function Q0(e){let t=0;const n={_id:e.id||xh||"nuxt-app",_scope:Jd(),provide:void 0,versions:{get nuxt(){return"4.3.0"},get vue(){return n.vueApp.version}},payload:sr({...e.ssrContext?.payload||{},data:sr({}),state:gt({}),once:new Set,_errors:sr({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!Js()?n._scope.run(()=>Zu(n,s)):Zu(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:sr({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const o in s)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],s[o]);break;default:n.payload[o]=s[o]}}n.hooks=z0(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const i="$"+s;go(n,i,o),go(n.vueApp.config.globalProperties,i,o)},go(n.vueApp,"$nuxt",n),go(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(J0,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=Me;const s=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function Z0(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function ew(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function tw(e,t){const n=new Set,r=[],s=[];let o,i=0;async function a(l){const c=l.dependsOn?.filter(u=>t.some(f=>f._name===u)&&!n.has(u))??[];if(c.length>0)r.push([new Set(c),l]);else{const u=ew(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,d])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(i++,await a(d)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;o||=f});l.parallel?s.push(u):await u}}for(const l of t)Z0(e,l);for(const l of t)await a(l);if(await Promise.all(s),i)for(let l=0;l<i;l++)await Promise.all(s);if(o)throw e.payload.error||o}function Ht(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Y0]:!0,_name:t})}function Zu(e,t,n){const r=()=>t();return kh(e._id).set(e),e.vueApp.runWithContext(r)}function nw(e){let t;return Fi()&&(t=ut()?.appContext.app.$nuxt),t||=kh(e).tryUse(),t||null}function Me(e){const t=nw(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function gr(e){return Me().$config}function go(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function va(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function ul(e,t,n=".",r){if(!va(t))return ul(e,{},n,r);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:va(i)&&va(s[o])?s[o]=ul(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function Ch(e){return(...t)=>t.reduce((n,r)=>ul(n,r,"",e),{})}const Zs=Ch(),rw=Ch((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function sw(e,t){try{return t in e}catch{return!1}}class ef extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:fl(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Sh(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function ow(e){if(typeof e=="string")return new ef(e);if(iw(e))return e;const t=new ef(e.message??e.statusMessage??"",{cause:e.cause||e});if(sw(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=fl(e.statusCode,t.statusCode):e.status&&(t.statusCode=fl(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Sh(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function iw(e){return e?.constructor?.__h3_error__===!0}const aw=/[^\u0009\u0020-\u007E]/g;function Sh(e=""){return e.replace(aw,"")}function fl(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Eh=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Yt=()=>Me()?.$router,Hi=()=>Fi()?wt(Eh,Me()._route):Me()._route;const lw=()=>{try{if(Me()._processingMiddleware)return!0}catch{return!1}return!1},Ah=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?dl(e):Yt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=[];for(const[f,d]of Object.entries(c))d!==void 0&&u.push(`${f.toLowerCase()}=${d}`);return open(n,l,u.join(", ")),Promise.resolve()}const r=In(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&u0(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=lw();if(!s&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=yh(e);return{path:l,...c&&{query:zi(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Yt(),a=Me();return s?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?i.replace(e):i.push(e)};function dl(e){return ph(e.path||"",e.query||{})+(e.hash||"")}const Th="__nuxt_error",Sc=()=>$t(Me().payload,"error"),cw=e=>{const t=Ec(e);try{const n=Sc();Me().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},uw=async(e={})=>{const t=Me(),n=Sc();t.callHook("app:error:cleared",e),e.redirect&&await Yt().replace(e.redirect),n.value=void 0},fw=e=>!!e&&typeof e=="object"&&Th in e,Ec=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=ow(e);return Object.defineProperty(t,Th,{value:!0,configurable:!1,writable:!1}),t};function dw(e){const t=hw(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,t.charCodeAt(s));return n}const pw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function hw(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let s=0;s<e.length;s++)n<<=6,n|=pw.indexOf(e[s]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const gw=-1,mw=-2,yw=-3,bw=-4,vw=-5,ww=-6;function _w(e,t){return xw(JSON.parse(e),t)}function xw(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let s=null;function o(i,a=!1){if(i===gw)return;if(i===yw)return NaN;if(i===bw)return 1/0;if(i===vw)return-1/0;if(i===ww)return-0;if(a||typeof i!="number")throw new Error("Invalid input");if(i in r)return r[i];const l=n[i];if(!l||typeof l!="object")r[i]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const c=l[0],u=t&&Object.hasOwn(t,c)?t[c]:void 0;if(u){let f=l[1];if(typeof f!="number"&&(f=n.push(l[1])-1),s??=new Set,s.has(f))throw new Error("Invalid circular reference");return s.add(f),r[i]=u(o(f)),s.delete(f),r[i]}switch(c){case"Date":r[i]=new Date(l[1]);break;case"Set":const f=new Set;r[i]=f;for(let h=1;h<l.length;h+=1)f.add(o(l[h]));break;case"Map":const d=new Map;r[i]=d;for(let h=1;h<l.length;h+=2)d.set(o(l[h]),o(l[h+1]));break;case"RegExp":r[i]=new RegExp(l[1],l[2]);break;case"Object":r[i]=Object(l[1]);break;case"BigInt":r[i]=BigInt(l[1]);break;case"null":const p=Object.create(null);r[i]=p;for(let h=1;h<l.length;h+=2)p[l[h]]=o(l[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(n[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const h=globalThis[c],g=o(l[1]),y=new h(g);r[i]=l[2]!==void 0?y.subarray(l[2],l[3]):y;break}case"ArrayBuffer":{const h=l[1];if(typeof h!="string")throw new Error("Invalid ArrayBuffer encoding");const g=dw(h);r[i]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=c.slice(9);r[i]=Temporal[h].from(l[1]);break}case"URL":{const h=new URL(l[1]);r[i]=h;break}case"URLSearchParams":{const h=new URLSearchParams(l[1]);r[i]=h;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(l.length);r[i]=c;for(let u=0;u<l.length;u+=1){const f=l[u];f!==mw&&(c[u]=o(f))}}else{const c={};r[i]=c;for(const u in l){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=l[u];c[u]=o(f)}}return r[i]}return o(0)}const kw=new Set(["link","style","script","noscript"]),Cw=new Set(["title","titleTemplate","script","style","noscript"]),tf=new Set(["base","meta","link","style","script","noscript"]),Sw=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Ew=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Aw=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Tw=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Pw=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function pl(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?pl(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const Ph=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function Rh(e,t,n,r){for(let s=n;s<e.length;s+=1)try{const o=r?r.run(()=>e[s](...t)):e[s](...t);if(o instanceof Promise)return o.then(()=>Rh(e,t,s+1,r))}catch(o){return Promise.reject(o)}}function Rw(e,t,n){if(e.length>0)return Rh(e,t,0,Ph(n))}function Iw(e,t,n){if(e.length>0){const r=Ph(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}}function wa(e,t){for(const n of[...e])n(t)}var Ow=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!n.allowDeprecated){let o=s.message;o||(o=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...s)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...s));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=pl(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=pl(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(Rw,e,t)}callHookParallel(e,...t){return this.callHookWith(Iw,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&wa(this._before,r);const s=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return s instanceof Promise?s.finally(()=>{this._after&&r&&wa(this._after,r)}):(this._after&&r&&wa(this._after,r),s)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function $w(){return new Ow}const Lw=["name","property","http-equiv"],Nw=new Set(["viewport","description","keywords","robots"]);function Ih(e){const t=e.split(":");return t.length?Pw.has(t[1]):!1}function hl(e){const{props:t,tag:n}=e;if(Ew.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of Lw)if(t[r]!==void 0){const s=t[r],o=s&&typeof s=="string"&&s.includes(":"),i=s&&Nw.has(s),l=!(o||i)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(Cw.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function nf(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,s])=>`${r}:${String(s)}`).join(",")}`}function oi(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const s=t?t(n,e):e;if(Array.isArray(s))return s.map(o=>oi(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=oi(s[i],t,i);return o}return s}function Mw(e,t){const n=e==="style"?new Map:new Set;function r(s){if(s==null||s===void 0)return;const o=String(s).trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(l=>l?l.trim():"");i&&a.length&&n.set(i,a.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?n.set(String(s).trim(),String(o)):r(s))}),n}function Oh(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=Mw(n,r);return}if(Aw.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let a=t.type;if(t.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;t.type=a,e.props.type=a,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-"),i=e.tag==="meta"&&n==="content";s==="true"||s===""?e.props[n]=o||i?s:!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function Dw(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Oh({tag:e,props:{}},n);return r.key&&kw.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function Fw(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,o)=>{for(let i=0;i<t.length;i++)o=t[i](s,o);return o};e=n(void 0,e);const r=[];return e=oi(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(Dw(s,i))}),r.flat()}const rf=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,sf={base:-10,title:10},Bw={critical:-8,high:-1,low:2},of={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},jw=/@import/,ps=e=>e===""||e===!0;function qw(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=Bw[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:of;if(t.tag in sf)n=sf[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=of.meta[o])}else if(t.tag==="link"&&t.props.rel)n=s.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);ps(t.props.async)?n=s.script.async:t.props.src&&!ps(t.props.defer)&&!ps(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?n=s.script.sync:(ps(t.props.defer)&&t.props.src&&!ps(t.props.async)||o==="module")&&(n=s.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&jw.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function af(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function zw(e={}){const t=$w();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=new Set,i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>af(i,a),push(a,l){const c={...l||{}};delete c.head;const u=c._index??i._entryCount++,f={_i:u,input:a,options:c},d={_poll(p=!1){i.dirty=!0,!p&&o.add(u),t.callHook("entries:updated",i)},dispose(){r.delete(u)&&i.invalidate()},patch(p){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(f.input=p,r.set(u,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const d=o.values().next().value;o.delete(d);const p=r.get(d);if(p){const h={tags:Fw(p.input,e.propResolvers||[]).map(g=>Object.assign(g,p.options)),entry:p};await t.callHook("entries:normalize",h),p._tags=h.tags.map((g,y)=>(g._w=qw(i,g),g._p=(p._i<<10)+y,g._d=hl(g),g))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(p=>({...p,props:{...p.props}}))).sort(rf).reduce((d,p)=>{const h=String(p._d||p._p);if(!d.has(h))return d.set(h,p);const g=d.get(h);if((p?.tagDuplicateStrategy||(Tw.has(p.tag)?"merge":null)||(p.key&&p.key===g.key?"merge":null))==="merge"){const b={...g.props};Object.entries(p.props).forEach(([_,m])=>b[_]=_==="style"?new Map([...g.props.style||new Map,...m]):_==="class"?new Set([...g.props.class||new Set,...m]):m),d.set(h,{...p,props:b})}else p._p>>10===g._p>>10&&p.tag==="meta"&&Ih(h)?(d.set(h,Object.assign([...Array.isArray(g)?g:[g],p],p)),l=!0):(p._w===g._w?p._p>g._p:p?._w<g?._w)&&d.set(h,p);return d},a.tagMap);const c=a.tagMap.get("title"),u=a.tagMap.get("titleTemplate");if(i._title=c?.textContent,u){const d=u?.textContent;if(i._titleTemplate=d,d){let p=typeof d=="function"?d(c?.textContent):d;typeof p=="string"&&!i.plugins.has("template-params")&&(p=p.replace("%s",c?.textContent||"")),c?p===null?a.tagMap.delete("title"):a.tagMap.set("title",{...c,textContent:p}):(u.tag="title",u.textContent=p)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(rf)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const d of a.tags){const{innerHTML:p,tag:h,props:g}=d;if(Sw.has(h)&&!(Object.keys(g).length===0&&!d.innerHTML&&!d.textContent)&&!(h==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(h==="script"&&p){if(String(g.type).endsWith("json")){const y=typeof p=="string"?p:JSON.stringify(p);d.innerHTML=y.replace(/</g,"\\u003C")}else typeof p=="string"&&(d.innerHTML=p.replace(new RegExp(`</${h}`,"g"),`<\\/${h}`));d._d=hl(d)}f.push(d)}}return f},invalidate(){for(const a of r.values())o.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>af(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const Hw=(e,t)=>Ne(t)?Pe(t):t,Ac="usehead";function Uw(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Ac,e)}}.install}function Gw(){if(Fi()){const e=wt(Ac);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Vw(e,t={}){const n=t.head||Gw();return n.ssr?n.push(e||{},t):Ww(n,e,t)}function Ww(e,t,n={}){const r=Y(!1);let s;return Mt(()=>{const i=r.value?{}:oi(t,Hw);s?s.patch(i):s=e.push(i,n)}),ut()&&(gc(()=>{s.dispose()}),Tp(()=>{r.value=!0}),Ap(()=>{r.value=!1})),s}function Kw(e){const t=e||Me();return t.ssrContext?.head||t.runWithContext(()=>{if(Fi()){const n=wt(Ac);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function $h(e,t={}){const n=t.head||Kw(t.nuxt);return Vw(e,{head:n,...t})}const Xw=(e,t)=>[],Jw=e=>Zs({},...Xw().map(t=>t.data).reverse()),Yw=Jw;let Do;function Qw(){return Do=$fetch(Cc(`builds/meta/${gr().app.buildId}.json`),{responseType:"json"}),Do.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Do}function Tc(){return Do||Qw()}function Ui(e){const t=typeof e=="string"?e:e.path;try{return Yw(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function lf(e,t={}){if(await t_(e)){const n=await e_(e,t);return await Lh(n)||null}return null}const Zw="_payload.json";async function e_(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||In(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=gr(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await n_(e)?o:r.app.baseURL;return wr(i,n.pathname,Zw+(s?`?${s}`:""))}async function Lh(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Dh));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}function Nh(e){if(e.redirect)return!1;if(e.prerender)return!0}async function Mh(e){return e=e==="/"?e:e.replace(/\/$/,""),(await Tc()).prerendered.includes(e)}async function t_(e=Hi().path){const t=Ui({path:e}),n=Nh(t);return n!==void 0?n:t.payload?!0:await Mh(e)}async function n_(e=Hi().path){const t=Nh(Ui({path:e}));return t!==void 0?t:await Mh(e)}let Qn=null;async function r_(){if(Qn)return Qn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Dh(e.textContent||""),n=e.dataset.src?await Lh(e.dataset.src):void 0;return Qn={...t,...n,...window.__NUXT__},Qn.config?.public&&(Qn.config.public=gt(Qn.config.public)),Qn}async function Dh(e){return await _w(e,Me()._payloadRevivers)}function s_(e,t){Me()._payloadRevivers[e]=t}const o_=[["NuxtError",e=>Ec(e)],["EmptyShallowRef",e=>cn(e==="_"?void 0:e==="0n"?BigInt(0):ei(e))],["EmptyRef",e=>Y(e==="_"?void 0:e==="0n"?BigInt(0):ei(e))],["ShallowRef",e=>cn(e)],["ShallowReactive",e=>sr(e)],["Ref",e=>Y(e)],["Reactive",e=>gt(e)]],i_=Ht({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of o_)s_(r,s);Object.assign(e.payload,([t,n]=W0(()=>e.runWithContext(r_)),t=await t,n(),t)),delete window.__NUXT__}});function gl(e){return typeof e=="string"?`'${e}'`:new a_().serialize(e)}const a_=(function(){class e{#e=new Map;compare(n,r){const s=typeof n,o=typeof r;return s==="string"&&o==="string"?n.localeCompare(r):s==="number"&&o==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const s=n.constructor,o=s===Object||s===void 0?"":s.name;if(o!==""&&globalThis[o]===s)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const i=n.toJSON();return o+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,r){const s=this["$"+n];if(s)return s.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const s=Array.from(r).sort((i,a)=>this.compare(i[0],a[0]));let o=`${n}{`;for(let i=0;i<s.length;i++){const[a,l]=s[i];o+=`${this.serialize(a,!0)}:${this.serialize(l)}`,i<s.length-1&&(o+=",")}return o+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let s=0;s<n.length;s++)r+=this.serialize(n[s]),s<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,s)=>this.compare(r,s)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function Fh(e,t){return e===t||gl(e)===gl(t)}const ml=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),l_=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Gi=e=>{const t=Me();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{ml(()=>e())}):ml(()=>e())},c_="$s";function Pc(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=c_+n,o=Me(),i=$t(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(Ne(a))return o.payload.state[s]=a,a;i.value=a}return i}async function Bh(e,t=Yt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>Bh(e,t));t._routePreloaded.add(n);for(const o of r){const i=o.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function u_(e={}){const t=e.path||window.location.pathname;let n={};try{n=ei(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Me().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const f_=(...e)=>e.find(t=>t!==void 0);function d_(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i,a){const l=a??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return mo(o,l);const c="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:mo(c,l)}}function s(o){const i=Yt(),a=gr(),l=$(()=>!!o.target&&o.target!=="_self"),c=$(()=>{const y=o.to||o.href||"";return typeof y=="string"&&In(y,{acceptRelative:!0})}),u=Su("RouterLink"),f=typeof u!="string"?u.useLink:void 0,d=$(()=>{if(o.external)return!0;const y=o.to||o.href||"";return typeof y=="object"?!1:y===""||c.value}),p=$(()=>{const y=o.to||o.href||"";return d.value?y:r(y,i.resolve,o.trailingSlash)}),h=d.value?void 0:f?.({...o,to:p}),g=$(()=>{const y=o.trailingSlash??e.trailingSlash;if(!p.value||c.value||n(p.value))return p.value;if(d.value){const b=typeof p.value=="object"&&"path"in p.value?dl(p.value):p.value,_=typeof b=="object"?i.resolve(b).href:b;return mo(_,y)}return typeof p.value=="object"?i.resolve(p.value)?.href??null:mo(wr(a.app.baseURL,p.value),y)});return{to:p,hasTarget:l,isAbsoluteUrl:c,isExternal:d,href:g,isActive:h?.isActive??$(()=>p.value===i.currentRoute.value.path),isExactActive:h?.isExactActive??$(()=>p.value===i.currentRoute.value.path),route:h?.route??$(()=>i.resolve(p.value)),async navigate(y){await Ah(g.value,{replace:o.replace,external:d.value||l.value})}}}return ue({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const a=Yt(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:p}=s(o),h=cn(!1),g=Y(null),y=m=>{g.value=o.custom?m?.$el?.nextElementSibling:m?.$el};function b(m){return!h.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:o.prefetchOn?.[m]??e.prefetchOn?.[m])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!m_()}async function _(m=Me()){if(h.value)return;h.value=!0;const v=typeof l.value=="string"?l.value:f.value?dl(l.value):a.resolve(l.value).fullPath,w=f.value?new URL(v,window.location.href).href:v;await Promise.all([m.hooks.callHook("link:prefetch",w).catch(()=>{}),!f.value&&!d.value&&Bh(l.value,a).catch(()=>{})])}if(b("visibility")){const m=Me();let v,w=null;Dt(()=>{const S=h_();Gi(()=>{v=ml(()=>{g?.value?.tagName&&(w=S.observe(g.value,async()=>{w?.(),w=null,await _(m)}))})})}),gc(()=>{v&&l_(v),w?.(),w=null})}return()=>{if(!f.value&&!d.value&&!n(l.value)){const w={ref:y,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(b("interaction")&&(w.onPointerenter=_.bind(null,void 0),w.onFocus=_.bind(null,void 0)),h.value&&(w.class=o.prefetchedClass||e.prefetchedClass),w.rel=o.rel||void 0),_t(Su("RouterLink"),w,i.default)}const m=o.target||null,v=f_(o.noRel?"":o.rel,e.externalRelAttribute,p.value||d.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:c.value,navigate:u,prefetch:_,get route(){if(!c.value)return;const w=new URL(c.value,window.location.href);return{path:w.pathname,fullPath:w.pathname,get query(){return zi(w.search)},hash:w.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:v,target:m,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:_t("a",{ref:g,href:c.value||null,rel:v,target:m,onClick:w=>{if(!(f.value||d.value))return w.preventDefault(),o.replace?a.replace(c.value):a.push(c.value)}},i.default?.())}}})}const p_=d_(K0);function mo(e,t){const n=t==="append"?ni:xc;return In(e)&&!e.startsWith("http")?e:n(e,!0)}function h_(){const e=Me();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||=new IntersectionObserver(a=>{for(const l of a){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}}),n.set(o,i),t.observe(o),()=>{n.delete(o),t?.unobserve(o),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const g_=/2g/;function m_(){const e=navigator.connection;return!!(e&&(e.saveData||g_.test(e.effectiveType)))}const y_={nuxt:{},ui:{colors:{primary:"green",secondary:"blue",success:"green",info:"blue",warning:"yellow",error:"red",neutral:"slate"},icons:{arrowLeft:"i-lucide-arrow-left",arrowRight:"i-lucide-arrow-right",check:"i-lucide-check",chevronDoubleLeft:"i-lucide-chevrons-left",chevronDoubleRight:"i-lucide-chevrons-right",chevronDown:"i-lucide-chevron-down",chevronLeft:"i-lucide-chevron-left",chevronRight:"i-lucide-chevron-right",chevronUp:"i-lucide-chevron-up",close:"i-lucide-x",ellipsis:"i-lucide-ellipsis",external:"i-lucide-arrow-up-right",file:"i-lucide-file",folder:"i-lucide-folder",folderOpen:"i-lucide-folder-open",loading:"i-lucide-loader-circle",minus:"i-lucide-minus",plus:"i-lucide-plus",search:"i-lucide-search",upload:"i-lucide-upload"}},icon:{provider:"iconify",class:"",aliases:{},iconifyApiEndpoint:"https://api.iconify.design",localApiEndpoint:"/api/_nuxt_icon",fallbackToApi:!0,cssSelectorPrefix:"i-",cssWherePseudo:!0,cssLayer:"components",mode:"css",attrs:{"aria-hidden":!0},collections:["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency","cryptocurrency-color","dashicons","devicon","devicon-plain","ei","el","emojione","emojione-monotone","emojione-v1","entypo","entypo-social","eos-icons","ep","et","eva","f7","fa","fa-brands","fa-regular","fa-solid","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent","fluent-emoji","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-mdl2","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons","heroicons-outline","heroicons-solid","hugeicons","humbleicons","ic","icomoon-free","icon-park","icon-park-outline","icon-park-solid","icon-park-twotone","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","lucide-lab","mage","majesticons","maki","map","marketeq","material-symbols","material-symbols-light","mdi","mdi-light","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto","noto-v1","octicon","oi","ooui","openmoji","oui","pajamas","pepicons","pepicons-pencil","pepicons-pop","pepicons-print","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline","streamline-emojis","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token","token-branded","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],fetchTimeout:1500}},jh=rw(y_);function tt(){const e=Me();return e._appConfig||=gt(jh),e._appConfig}function b_(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!In(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=g0(String(e.url)));const t=Object.keys(e).sort((r,s)=>r.localeCompare(s)),n={};for(const r of t)n[r]=e[r];return n}function v_(e){const n=[];function r(o){if(!o||typeof o!="object"||Object.keys(o).length===0)return()=>{};o._context;const i={};for(const a in o){const l=o[a];typeof l<"u"&&l!==""&&(i[a]=l)}return Object.keys(i).filter(a=>!a.startsWith("_")).length===0?()=>{}:(n.push(i),()=>{const a=n.indexOf(i);a!==-1&&n.splice(a,1)})}function s(o){const i={};o?.debug&&(i._context={}),i._priority={};for(const a in n.sort((l,c)=>(l._priority||0)-(c._priority||0)))for(const l in n[a]){const c=l,u=o?.resolveRefs?Pe(n[a][l]):n[a][l];!l.startsWith("_")&&typeof u<"u"&&u!==""&&(i[l]=u,typeof n[a]._priority<"u"&&n[a]._priority!==-1&&(i._priority[c]=n[a]._priority),o?.debug&&(i._context[c]=n[a]._context?.[c]||n[a]._context||"anonymous"))}return o?.skipNormalize?i:b_(i)}return{stack:n,push:r,get:s}}const w_=Ht({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=v_(),n=Pc("site-config");{const r=n.value||window.__NUXT_SITE_CONFIG__||{};for(const s in r)s[0]!=="_"&&t.push({[s]:r[s],_priority:r._priority?.[s]||-1})}return{provide:{nuxtSiteConfig:t}}}});async function Rc(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{const o=new Map,i=new Promise(p=>{e.resolveTags().then(h=>{p(h.map(g=>{const y=o.get(g._d)||0,b={tag:g,id:(y?`${g._d}:${y}`:g._d)||nf(g),shouldRender:!0};return g._d&&Ih(g._d)&&o.set(g._d,y+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const p of["body","head"]){const h=n[p]?.children;for(const g of h){const y=g.tagName.toLowerCase();if(!tf.has(y))continue;const b=Oh({tag:y,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((_,m)=>(_[m]=g.getAttribute(m),_),{})||{}});if(b.key=g.getAttribute("data-hid")||void 0,b._d=hl(b)||nf(b),a.elMap.has(b._d)){let _=1,m=b._d;for(;a.elMap.has(m);)m=`${b._d}:${_++}`;a.elMap.set(m,g)}else a.elMap.set(b._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(p,h,g){const y=`${p}:${h}`;a.sideEffects[y]=g,delete a.pendingSideEffects[y]}function c({id:p,$el:h,tag:g}){const y=g.tag.endsWith("Attrs");a.elMap.set(p,h),y||(g.textContent&&g.textContent!==h.textContent&&(h.textContent=g.textContent),g.innerHTML&&g.innerHTML!==h.innerHTML&&(h.innerHTML=g.innerHTML),l(p,"el",()=>{h?.remove(),a.elMap.delete(p)}));for(const b in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,b))continue;const _=g.props[b];if(b.startsWith("on")&&typeof _=="function"){const v=h?.dataset;if(v&&v[`${b}fired`]){const w=b.slice(0,-5);_.call(h,new Event(w.substring(2)))}h.getAttribute(`data-${b}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:h).addEventListener(b.substring(2),_.bind(h)),h.setAttribute(`data-${b}`,""));continue}const m=`attr:${b}`;if(b==="class"){if(!_)continue;for(const v of _)y&&l(p,`${m}:${v}`,()=>h.classList.remove(v)),!h.classList.contains(v)&&h.classList.add(v)}else if(b==="style"){if(!_)continue;for(const[v,w]of _)l(p,`${m}:${v}`,()=>{h.style.removeProperty(v)}),h.style.setProperty(v,w)}else _!==!1&&_!==null&&(h.getAttribute(b)!==_&&h.setAttribute(b,_===!0?"":String(_)),y&&l(p,m,()=>h.removeAttribute(b)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const p of d){const{tag:h,shouldRender:g,id:y}=p;if(g){if(h.tag==="title"){n.title=h.textContent,l("title","",()=>n.title=a.title);continue}p.$el=p.$el||a.elMap.get(y),p.$el?c(p):tf.has(h.tag)&&u.push(p)}}for(const p of u){const h=p.tag.tagPosition||"head";p.$el=n.createElement(p.tag.tag),c(p),f[h]=f[h]||n.createDocumentFragment(),f[h].appendChild(p.$el)}for(const p of d)await e.hooks.callHook("dom:renderTag",p,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const p in a.pendingSideEffects)a.pendingSideEffects[p]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function __(e={}){const t=e.domOptions?.render||Rc;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return zw({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function x_(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function k_(e={}){const t=__({domOptions:{render:x_(()=>Rc(t),n=>setTimeout(n,0))},...e});return t.install=Uw(t),t}const C_={disableDefaults:!0},S_=Ht({name:"nuxt:head",enforce:"pre",setup(e){const t=k_(C_);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Rc(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}}),E_=e=>{const t=Ui({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return In(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},A_=[E_];function _a(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=bh({pathname:e.path||"",search:fh(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:zi(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const T_=Ht({name:"nuxt:router",enforce:"pre",setup(e){const t=p0(window.location.pathname,gr().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(d,p)=>(r[d].push(p),()=>r[d].splice(r[d].indexOf(p),1)),o=gr().app.baseURL,i=gt(_a(t));async function a(d,p){try{const h=_a(d);for(const g of r["navigate:before"]){const y=await g(h,i);if(y===!1||y instanceof Error)return;if(typeof y=="string"&&y.length)return a(y,!0)}for(const g of r["resolve:before"])await g(h,i);Object.assign(i,h),window.history[p?"replaceState":"pushState"]({},"",wr(o,h.fullPath)),e.isHydrating||await e.runWithContext(uw);for(const g of r["navigate:after"])await g(h,i)}catch(h){for(const g of r.error)await g(h)}}const c={currentRoute:$(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:d=>a(d,!1),replace:d=>a(d,!0),back:()=>window.history.go(-1),go:d=>window.history.go(d),forward:()=>window.history.go(1),beforeResolve:d=>s("resolve:before",d),beforeEach:d=>s("navigate:before",d),afterEach:d=>s("navigate:after",d),onError:d=>s("error",d),resolve:_a,addRoute:(d,p)=>{n.push(p)},getRoutes:()=>n,hasRoute:d=>n.some(p=>p.name===d),removeRoute:d=>{const p=n.findIndex(h=>h.name===d);p!==-1&&n.splice(p,1)}};e.vueApp.component("RouterLink",ue({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(d,{slots:p})=>{const h=()=>a(d.to,d.replace);return()=>{const g=c.resolve(d.to);return d.custom?p.default?.({href:d.to,navigate:h,route:g}):_t("a",{href:d.to,onClick:y=>(y.preventDefault(),h())},p)}}})),window.addEventListener("popstate",d=>{const p=d.target.location;c.replace(p.href.replace(p.origin,""))}),e._route=i,e._middleware||={global:[],named:{}};const u=e.payload.state._layout,f=e.payload.state._layoutProps;return e.hooks.hookOnce("app:created",async()=>{c.beforeEach(async(d,p)=>{d.meta=gt(d.meta||{}),e.isHydrating&&u&&!ln(d.meta.layout)&&(d.meta.layout=u,d.meta.layoutProps=f),e._processingMiddleware=!0;{const h=new Set([...A_,...e._middleware.global]),g=Ui({path:d.path});if(g.appMiddleware)for(const y in g.appMiddleware){const b=e._middleware.named[y];b&&(g.appMiddleware[y]?h.add(b):h.delete(b))}for(const y of h){const b=await e.runWithContext(()=>y(d,p));if(b!==!0&&(b||b===!1))return b}}}),c.afterEach(()=>{delete e._processingMiddleware}),await c.replace(t),y0(i.fullPath,t)||await e.runWithContext(()=>Ah(i.fullPath))}),{provide:{route:i,router:c}}}}),P_=Ht({name:"nuxt:payload",setup(e){const t=new Set;Yt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await lf(n.path);if(s){for(const o of t)delete e.static.data[o];for(const o in s.data)o in e.static.data||t.add(o),e.static.data[o]=s.data[o]}}),Gi(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await lf(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(Tc,1e3)})}}),R_=Ht(()=>{const e=Yt();Gi(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),I_=Ht(e=>{let t;async function n(){let r;try{r=await Tc()}catch(s){const o=s;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,Qu);try{const s=await $fetch(Cc("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}Gi(()=>{t=setTimeout(n,Qu)})}),O_=Ht({name:"nuxt:chunk-reload",setup(e){const t=Yt(),n=gr(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const i=wr(n.app.baseURL,o.fullPath);u_({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),$_="modulepreload",L_=function(e,t){return new URL(e,t).href},cf={},xe=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=c(n.map(u=>{if(u=L_(u,r),u in cf)return;cf[u]=!0;const f=u.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let h=i.length-1;h>=0;h--){const g=i[h];if(g.href===u&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":$_,f||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((h,g)=>{p.addEventListener("load",h),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},N_=Ae(()=>xe(()=>import("./BTnenz-7.js"),[],import.meta.url).then(e=>e.default||e.default||e)),M_=Ae(()=>xe(()=>import("./BgRd_GNf.js"),[],import.meta.url).then(e=>e.default||e.default||e)),D_=Ae(()=>xe(()=>import("./8XcEHgiq.js"),[],import.meta.url).then(e=>e.default||e.default||e)),F_=Ae(()=>xe(()=>import("./BeMtTGFX.js"),[],import.meta.url).then(e=>e.default||e.default||e)),B_=Ae(()=>xe(()=>import("./Dn8lRF86.js"),[],import.meta.url).then(e=>e.default||e.default||e)),j_=Ae(()=>xe(()=>import("./B2G1Husz.js"),[],import.meta.url).then(e=>e.default||e.default||e)),q_=Ae(()=>xe(()=>import("./Caedg1qp.js"),[],import.meta.url).then(e=>e.default||e.default||e)),z_=Ae(()=>xe(()=>import("./COIEcBZR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),H_=Ae(()=>xe(()=>import("./B6Rjxwce.js"),[],import.meta.url).then(e=>e.default||e.default||e)),U_=Ae(()=>xe(()=>import("./DHOdika3.js"),[],import.meta.url).then(e=>e.default||e.default||e)),G_=Ae(()=>xe(()=>import("./C1-eNu7x.js"),[],import.meta.url).then(e=>e.default||e.default||e)),V_=Ae(()=>xe(()=>import("./CIJ7g9su.js"),[],import.meta.url).then(e=>e.default||e.default||e)),W_=Ae(()=>xe(()=>import("./C6MORWr4.js"),[],import.meta.url).then(e=>e.default||e.default||e)),K_=Ae(()=>xe(()=>import("./O3qB0pnO.js"),[],import.meta.url).then(e=>e.default||e.default||e)),X_=Ae(()=>xe(()=>import("./5ZF0DUKe.js"),[],import.meta.url).then(e=>e.default||e.default||e)),J_=Ae(()=>xe(()=>import("./DwNiGCgn.js"),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.default||e.default||e)),Y_=Ae(()=>xe(()=>import("./D4YjxrHq.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Q_=Ae(()=>xe(()=>import("./aUtIlT-b.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Z_=Ae(()=>xe(()=>import("./DSdw0YSI.js"),[],import.meta.url).then(e=>e.default||e.default||e)),ex=Ae(()=>xe(()=>import("./CxFX6b0M.js"),[],import.meta.url).then(e=>e.default||e.default||e)),tx=Ae(()=>xe(()=>import("./CINkxRg5.js"),[],import.meta.url).then(e=>e.default||e.default||e)),nx=Ae(()=>xe(()=>import("./ZdghZ1ke.js"),[],import.meta.url).then(e=>e.default||e.default||e)),rx=Ae(()=>xe(()=>import("./Bj_3pTUi.js"),[],import.meta.url).then(e=>e.default||e.default||e)),sx=Ae(()=>xe(()=>import("./BqgETAYZ.js"),[],import.meta.url).then(e=>e.default||e.default||e)),ox=Ae(()=>xe(()=>import("./DSxZHkX-.js"),[],import.meta.url).then(e=>e.default||e.default||e)),ix=Ae(()=>xe(()=>Promise.resolve().then(()=>Gk),void 0,import.meta.url).then(e=>e.default||e.default||e)),ax=[["ProseA",N_],["ProseBlockquote",M_],["ProseCode",D_],["ProseEm",F_],["ProseH1",B_],["ProseH2",j_],["ProseH3",q_],["ProseH4",z_],["ProseH5",H_],["ProseH6",U_],["ProseHr",G_],["ProseImg",V_],["ProseLi",W_],["ProseOl",K_],["ProseP",X_],["ProsePre",J_],["ProseScript",Y_],["ProseStrong",Q_],["ProseTable",Z_],["ProseTbody",ex],["ProseTd",tx],["ProseTh",nx],["ProseThead",rx],["ProseTr",sx],["ProseUl",ox],["Icon",ix]],lx=Ht({name:"nuxt:global-components",setup(e){for(const[t,n]of ax)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}});var yo={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};const cx=[50,100,200,300,400,500,600,700,800,900,950];function ux(e,t){return e in yo&&typeof yo[e]=="object"&&t in yo[e]?yo[e][t]:""}function fx(e,t){return`${cx.map(n=>`--ui-color-${e}-${n}: var(--color-${t==="neutral"?"old-neutral":t}-${n}, ${ux(t,n)});`).join(`
5
- `)}`}function uf(e,t){return`--ui-${e}: var(--ui-color-${e}-${t});`}const dx=Ht(()=>{const e=tt(),t=Me(),n=$(()=>{const{neutral:s,...o}=e.ui.colors;return`@layer base {
6
- :root {
7
- ${Object.entries(e.ui.colors).map(([i,a])=>fx(i,a)).join(`
8
- `)}
9
- }
10
- :root, .light {
11
- ${Object.keys(o).map(i=>uf(i,500)).join(`
12
- `)}
13
- }
14
- .dark {
15
- ${Object.keys(o).map(i=>uf(i,400)).join(`
16
- `)}
17
- }
18
- }`}),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const s=document.createElement("style");s.innerHTML=n.value,s.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(s),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}$h(r)}),px="__NUXT_COLOR_MODE__",xa="nuxt-color-mode",hx="localStorage",hn=window[px]||{},gx=Ht(e=>{const t=Pc("color-mode",()=>gt({preference:hn.preference,value:hn.value,unknown:!1,forced:!1})).value;Yt().afterEach(o=>{const i=o.meta.colorMode;i&&i!=="system"?(t.value=i,t.forced=!0):(i==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?hn.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=hn.getColorScheme())}))}function s(o,i){switch(o){case"cookie":window.document.cookie=xa+"="+i;break;case"sessionStorage":window.sessionStorage?.setItem(xa,i);break;default:window.localStorage?.setItem(xa,i)}}Re(()=>t.preference,o=>{t.forced||(o==="system"?(t.value=hn.getColorScheme(),r()):t.value=o,s(hx,o))},{immediate:!0}),Re(()=>t.value,(o,i)=>{let a;a=window.document.createElement("style"),a.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),window.document.head.appendChild(a),hn.removeColorScheme(i),hn.addColorScheme(o),window.getComputedStyle(a).opacity,document.head.removeChild(a)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=hn.preference,t.value=hn.value,t.unknown=!1)}),e.provide("colorMode",t)}),qh=/^[a-z0-9]+(-[a-z0-9]+)*$/,eo=(e,t,n,r="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const a=s.pop(),l=s.pop(),c={provider:s.length>0?s[0]:r,prefix:l,name:a};return t&&!Fo(c)?null:c}const o=s[0],i=o.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!Fo(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:o};return t&&!Fo(a,n)?null:a}return null},Fo=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,zh=Object.freeze({left:0,top:0,width:16,height:16}),ii=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ns=Object.freeze({...zh,...ii}),yl=Object.freeze({...ns,body:"",hidden:!1});function mx(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ff(e,t){const n=mx(e,t);for(const r in yl)r in ii?r in e&&!(r in n)&&(n[r]=ii[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function yx(e,t){const n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function o(i){if(n[i])return s[i]=[];if(!(i in s)){s[i]=null;const a=r[i]&&r[i].parent,l=a&&o(a);l&&(s[i]=[a].concat(l))}return s[i]}return Object.keys(n).concat(Object.keys(r)).forEach(o),s}function bx(e,t,n){const r=e.icons,s=e.aliases||Object.create(null);let o={};function i(a){o=ff(r[a]||s[a],o)}return i(t),n.forEach(i),ff(e,o)}function Hh(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const r=yx(e);for(const s in r){const o=r[s];o&&(t(s,bx(e,s,o)),n.push(s))}return n}const vx={provider:"",aliases:{},not_found:{},...zh};function ka(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Uh(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ka(e,vx))return null;const n=t.icons;for(const s in n){const o=n[s];if(!s||typeof o.body!="string"||!ka(o,yl))return null}const r=t.aliases||Object.create(null);for(const s in r){const o=r[s],i=o.parent;if(!s||typeof i!="string"||!n[i]&&!r[i]||!ka(o,yl))return null}return t}const df=Object.create(null);function wx(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function mr(e,t){const n=df[e]||(df[e]=Object.create(null));return n[t]||(n[t]=wx(e,t))}function Gh(e,t){return Uh(t)?Hh(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function _x(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Bs=!1;function Vh(e){return typeof e=="boolean"&&(Bs=e),Bs}function Ic(e){const t=typeof e=="string"?eo(e,!0,Bs):e;if(t){const n=mr(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Oc(e,t){const n=eo(e,!0,Bs);if(!n)return!1;const r=mr(n.provider,n.prefix);return t?_x(r,n.name,t):(r.missing.add(n.name),!0)}function xx(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Bs&&!t&&!e.prefix){let s=!1;return Uh(e)&&(e.prefix="",Hh(e,(o,i)=>{Oc(o,i)&&(s=!0)})),s}const n=e.prefix;if(!Fo({prefix:n,name:"a"}))return!1;const r=mr(t,n);return!!Gh(r,e)}function bl(e){const t=Ic(e);return t&&{...ns,...t}}const Wh=Object.freeze({width:null,height:null}),Kh=Object.freeze({...Wh,...ii}),kx=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Cx=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pf(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(kx);if(r===null||!r.length)return e;const s=[];let o=r.shift(),i=Cx.test(o);for(;;){if(i){const a=parseFloat(o);isNaN(a)?s.push(o):s.push(Math.ceil(a*t*n)/n)}else s.push(o);if(o=r.shift(),o===void 0)return s.join("");i=!i}}function Sx(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const s=e.indexOf(">",r),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const i=e.indexOf(">",o);if(i===-1)break;n+=e.slice(s+1,o).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function Ex(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Ax(e,t,n){const r=Sx(e);return Ex(r.defs,t+r.content+n)}const Tx=e=>e==="unset"||e==="undefined"||e==="none";function Px(e,t){const n={...ns,...e},r={...Kh,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(g=>{const y=[],b=g.hFlip,_=g.vFlip;let m=g.rotate;b?_?m+=2:(y.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),y.push("scale(-1 1)"),s.top=s.left=0):_&&(y.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),y.push("scale(1 -1)"),s.top=s.left=0);let v;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:v=s.height/2+s.top,y.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:y.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:v=s.width/2+s.left,y.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}m%2===1&&(s.left!==s.top&&(v=s.left,s.left=s.top,s.top=v),s.width!==s.height&&(v=s.width,s.width=s.height,s.height=v)),y.length&&(o=Ax(o,'<g transform="'+y.join(" ")+'">',"</g>"))});const i=r.width,a=r.height,l=s.width,c=s.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=pf(f,l/c)):(u=i==="auto"?l:i,f=a===null?pf(u,c/l):a==="auto"?c:a);const d={},p=(g,y)=>{Tx(y)||(d[g]=y.toString())};p("width",u),p("height",f);const h=[s.left,s.top,l,c];return d.viewBox=h.join(" "),{attributes:d,viewBox:h,body:o}}const Rx=/\sid="(\S+)"/g,Ix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ox=0;function $x(e,t=Ix){const n=[];let r;for(;r=Rx.exec(e);)n.push(r[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(o=>{const i=typeof t=="function"?t(o):t+(Ox++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const vl=Object.create(null);function Xh(e,t){vl[e]=t}function wl(e){return vl[e]||vl[""]}function $c(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Vi=Object.create(null),hs=["https://api.simplesvg.com","https://api.unisvg.com"],Bo=[];for(;hs.length>0;)hs.length===1||Math.random()>.5?Bo.push(hs.shift()):Bo.push(hs.pop());Vi[""]=$c({resources:["https://api.iconify.design"].concat(Bo)});function Jh(e,t){const n=$c(t);return n===null?!1:(Vi[e]=n,!0)}function Wi(e){return Vi[e]}function Lx(){return Object.keys(Vi)}const Nx=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ai=Nx();function Mx(e){ai=e}function Dx(){return ai}function Fx(e,t){const n=Wi(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;n.resources.forEach(i=>{s=Math.max(s,i.length)});const o=t+".json?icons=";r=n.maxURL-s-n.path.length-o.length}return r}function Bx(e){return e===404}const jx=(e,t,n)=>{const r=[],s=Fx(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},a=0;return n.forEach((l,c)=>{a+=l.length+1,a>=s&&c>0&&(r.push(i),i={type:o,provider:e,prefix:t,icons:[]},a=l.length),i.icons.push(l)}),r.push(i),r};function qx(e){if(typeof e=="string"){const t=Wi(e);if(t)return t.path}return"/"}const zx=(e,t,n)=>{if(!ai){n("abort",424);return}let r=qx(t.provider);switch(t.type){case"icons":{const o=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});r+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;r+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let s=503;ai(e+r).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(Bx(i)?"abort":"next",i)});return}return s=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",s)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",s)})},Hx={prepare:jx,send:zx};function Ux(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,o)=>s.provider!==o.provider?s.provider.localeCompare(o.provider):s.prefix!==o.prefix?s.prefix.localeCompare(o.prefix):s.name.localeCompare(o.name));let r={provider:"",prefix:"",name:""};return e.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const o=s.provider,i=s.prefix,a=s.name,l=n[o]||(n[o]=Object.create(null)),c=l[i]||(l[i]=mr(o,i));let u;a in c.icons?u=t.loaded:i===""||c.missing.has(a)?u=t.missing:u=t.pending;const f={provider:o,prefix:i,name:a};u.push(f)}),t}function Yh(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==t))})}function Gx(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,s=e.prefix;t.forEach(o=>{const i=o.icons,a=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==s)return!0;const c=l.name;if(e.icons[c])i.loaded.push({provider:r,prefix:s,name:c});else if(e.missing.has(c))i.missing.push({provider:r,prefix:s,name:c});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||Yh([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let Vx=0;function Wx(e,t,n){const r=Vx++,s=Yh.bind(null,n,r);if(!t.pending.length)return s;const o={id:r,icons:t,callback:e,abort:s};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),s}function Kx(e,t=!0,n=!1){const r=[];return e.forEach(s=>{const o=typeof s=="string"?eo(s,t,n):s;o&&r.push(o)}),r}var Xx={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Jx(e,t,n,r){const s=e.resources.length,o=e.random?Math.floor(Math.random()*s):e.index;let i;if(e.random){let S=e.resources.slice(0);for(i=[];S.length>1;){const P=Math.floor(Math.random()*S.length);i.push(S[P]),S=S.slice(0,P).concat(S.slice(P+1))}i=i.concat(S)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const a=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof r=="function"&&p.push(r);function h(){f&&(clearTimeout(f),f=null)}function g(){l==="pending"&&(l="aborted"),h(),d.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),d=[]}function y(S,P){P&&(p=[]),typeof S=="function"&&p.push(S)}function b(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:y,abort:g}}function _(){l="failed",p.forEach(S=>{S(void 0,u)})}function m(){d.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),d=[]}function v(S,P,T){const R=P!=="success";switch(d=d.filter(N=>N!==S),l){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(P==="abort"){u=T,_();return}if(R){u=T,d.length||(i.length?w():_());return}if(h(),m(),!e.random){const N=e.resources.indexOf(S.resource);N!==-1&&N!==e.index&&(e.index=N)}l="completed",p.forEach(N=>{N(T)})}function w(){if(l!=="pending")return;h();const S=i.shift();if(S===void 0){if(d.length){f=setTimeout(()=>{h(),l==="pending"&&(m(),_())},e.timeout);return}_();return}const P={status:"pending",resource:S,callback:(T,R)=>{v(P,T,R)}};d.push(P),c++,f=setTimeout(w,e.rotate),n(S,t,P.callback)}return setTimeout(w),b}function Qh(e){const t={...Xx,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function s(a,l,c){const u=Jx(t,a,l,(f,d)=>{r(),c&&c(f,d)});return n.push(u),u}function o(a){return n.find(l=>a(l))||null}return{query:s,find:o,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function hf(){}const Ca=Object.create(null);function Yx(e){if(!Ca[e]){const t=Wi(e);if(!t)return;const n=Qh(t),r={config:t,redundancy:n};Ca[e]=r}return Ca[e]}function Zh(e,t,n){let r,s;if(typeof e=="string"){const o=wl(e);if(!o)return n(void 0,424),hf;s=o.send;const i=Yx(e);i&&(r=i.redundancy)}else{const o=$c(e);if(o){r=Qh(o);const i=e.resources?e.resources[0]:"",a=wl(i);a&&(s=a.send)}}return!r||!s?(n(void 0,424),hf):r.query(t,s,n)().abort}function gf(){}function Qx(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Gx(e)}))}function Zx(e){const t=[],n=[];return e.forEach(r=>{(r.match(qh)?t:n).push(r)}),{valid:t,invalid:n}}function gs(e,t,n){function r(){const s=e.pendingIcons;t.forEach(o=>{s&&s.delete(o),e.icons[o]||e.missing.add(o)})}if(n&&typeof n=="object")try{if(!Gh(e,n).length){r();return}}catch(s){console.error(s)}r(),Qx(e)}function mf(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function ek(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,s=e.iconsToLoad;if(delete e.iconsToLoad,!s||!s.length)return;const o=e.loadIcon;if(e.loadIcons&&(s.length>1||!o)){mf(e.loadIcons(s,r,n),u=>{gs(e,s,u)});return}if(o){s.forEach(u=>{const f=o(u,r,n);mf(f,d=>{const p=d?{prefix:r,icons:{[u]:d}}:null;gs(e,[u],p)})});return}const{valid:i,invalid:a}=Zx(s);if(a.length&&gs(e,a,null),!i.length)return;const l=r.match(qh)?wl(n):null;if(!l){gs(e,i,null);return}l.prepare(n,r,i).forEach(u=>{Zh(n,u,f=>{gs(e,u.icons,f)})})}))}const eg=(e,t)=>{const n=Kx(e,!0,Vh()),r=Ux(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,gf)}),()=>{l=!1}}const s=Object.create(null),o=[];let i,a;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===i)return;i=c,a=u,o.push(mr(c,u));const f=s[c]||(s[c]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=mr(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),s[c][u].push(f))}),o.forEach(l=>{const c=s[l.provider][l.prefix];c.length&&ek(l,c)}),t?Wx(t,r,o):gf},tk=e=>new Promise((t,n)=>{const r=typeof e=="string"?eo(e,!0):e;if(!r){n(e);return}eg([r||e],s=>{if(s.length&&r){const o=Ic(r);if(o){t({...ns,...o});return}}n(e)})});function nk(e,t,n){mr("",t).loadIcons=e}function rk(e,t){const n={...e};for(const r in t){const s=t[r],o=typeof s;r in Wh?(s===null||s&&(o==="string"||o==="number"))&&(n[r]=s):o===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const sk=/[\s,]+/;function ok(e,t){t.split(sk).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ik(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:r(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/s,o%1===0?r(o):0)}}return t}function ak(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function lk(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ck(e){return"data:image/svg+xml,"+lk(e)}function uk(e){return'url("'+ck(e)+'")'}const yf={...Kh,inline:!1},fk={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},dk={display:"inline-block"},_l={backgroundColor:"currentColor"},tg={backgroundColor:"transparent"},bf={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},vf={webkitMask:_l,mask:_l,background:tg};for(const e in vf){const t=vf[e];for(const n in bf)t[e+n]=bf[n]}const jo={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";jo[e+"-flip"]=t,jo[e.slice(0,1)+"-flip"]=t,jo[e+"Flip"]=t});function wf(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const _f=(e,t)=>{const n=rk(yf,t),r={...fk},s=t.mode||"svg",o={},i=t.style,a=typeof i=="object"&&!(i instanceof Array)?i:{};for(let g in t){const y=t[g];if(y!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[g]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&ok(n,y);break;case"color":o.color=y;break;case"rotate":typeof y=="string"?n[g]=ik(y):typeof y=="number"&&(n[g]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const b=jo[g];b?(y===!0||y==="true"||y===1)&&(n[b]=!0):yf[g]===void 0&&(r[g]=y)}}}const l=Px(e,n),c=l.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),s==="svg"){r.style={...o,...a},Object.assign(r,c);let g=0,y=t.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=$x(l.body,y?()=>y+"ID"+g++:"iconifyVue"),_t("svg",r)}const{body:u,width:f,height:d}=e,p=s==="mask"||(s==="bg"?!1:u.indexOf("currentColor")!==-1),h=ak(u,{...c,width:f+"",height:d+""});return r.style={...o,"--svg":uk(h),width:wf(c.width),height:wf(c.height),...dk,...p?_l:tg,...a},_t("span",r)};Vh(!0);Xh("",Hx);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!xx(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;Jh(n,s)||console.error(r)}catch{console.error(r)}}}}const pk={...ns,body:""},hk=ue((e,{emit:t})=>{const n=Y(null);function r(){n.value&&(n.value.abort?.(),n.value=null)}const s=Y(!!e.ssr),o=Y(""),i=cn(null);function a(){const c=e.icon;if(typeof c=="object"&&c!==null&&typeof c.body=="string")return o.value="",{data:c};let u;if(typeof c!="string"||(u=eo(c,!1,!0))===null)return null;let f=Ic(u);if(!f){const h=n.value;return(!h||h.name!==c)&&(f===null?n.value={name:c}:n.value={name:c,abort:eg([u],l)}),null}r(),o.value!==c&&(o.value=c,kt(()=>{t("load",c)}));const d=e.customise;if(d){f=Object.assign({},f);const h=d(f.body,u.name,u.prefix,u.provider);typeof h=="string"&&(f.body=h)}const p=["iconify"];return u.prefix!==""&&p.push("iconify--"+u.prefix),u.provider!==""&&p.push("iconify--"+u.provider),{data:f,classes:p}}function l(){const c=a();c?c.data!==i.value?.data&&(i.value=c):i.value=null}return s.value?l():Dt(()=>{s.value=!0,l()}),Re(()=>e.icon,l),es(r),()=>{const c=i.value;if(!c)return _f(pk,e);let u=e;return c.classes&&(u={...e,class:c.classes.join(" ")}),_f({...ns,...c.data},u)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]}),xf={getAPIConfig:Wi,setAPIModule:Xh,sendAPIQuery:Zh,setFetch:Mx,getFetch:Dx,listAPIProviders:Lx},gk=Ht({name:"@nuxt/icon",setup(){const e=gr(),t=tt().icon;xf.setFetch($fetch.native);const n=[];if(t.provider==="server"){const s=e.app?.baseURL?.replace(/\/$/,"")??"";n.push(s+(t.localApiEndpoint||"/api/_nuxt_icon")),(t.fallbackToApi===!0||t.fallbackToApi==="client-only")&&n.push(t.iconifyApiEndpoint)}else t.provider==="none"?xf.setFetch(()=>Promise.resolve(new Response)):n.push(t.iconifyApiEndpoint);async function r(s,o){try{const i=await $fetch(n[0]+"/"+o+".json",{query:{icons:s.join(",")}});if(!i||i.prefix!==o||!i.icons)throw new Error("Invalid data"+JSON.stringify(i));return i}catch(i){return console.error("Failed to load custom icons",i),null}}Jh("",{resources:n});for(const s of t.customCollections||[])s&&nk(r,s)}}),mk=[i_,w_,S_,T_,P_,R_,I_,O_,lx,dx,gx,gk],ng=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},yk={},bk={class:"flex items-center gap-1"};function vk(e,t){return E(),re("div",bk,[...t[0]||(t[0]=[iv('<svg viewBox="0 0 64 64" class="pop-quick w-7 h-7" data-v-4096a9b6><defs data-v-4096a9b6><linearGradient id="wmLine1" x1="0%" y1="100%" x2="100%" y2="0%" data-v-4096a9b6><stop offset="0%" stop-color="#22c55e" data-v-4096a9b6></stop><stop offset="100%" stop-color="#86efac" data-v-4096a9b6></stop></linearGradient><linearGradient id="wmFill1" x1="0%" y1="0%" x2="0%" y2="100%" data-v-4096a9b6><stop offset="0%" stop-color="#22c55e" stop-opacity="0.6" data-v-4096a9b6></stop><stop offset="100%" stop-color="#22c55e" stop-opacity="0" data-v-4096a9b6></stop></linearGradient></defs><path class="fill" d="M8 52 Q20 48 24 36 T40 20 T56 12 L56 56 L8 56 Z" fill="url(#wmFill1)" data-v-4096a9b6></path><path class="line" d="M8 52 Q20 48 24 36 T40 20 T56 12" fill="none" stroke="url(#wmLine1)" stroke-width="4" stroke-linecap="round" data-v-4096a9b6></path><circle class="node" cx="56" cy="12" r="6" fill="url(#wmLine1)" data-v-4096a9b6></circle></svg><span class="-ml-1 dark:text-white text-black text-lg font-bold tracking-tight slide-right" data-v-4096a9b6> Nuxt<span class="ml-1 text-green-400" data-v-4096a9b6>SEO</span></span>',2)])])}const wk=Object.assign(ng(yk,[["render",vk],["__scopeId","data-v-4096a9b6"]]),{__name:"NuxtSeoLogo"}),_k=Object.freeze({left:0,top:0,width:16,height:16}),rg=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Lc=Object.freeze({..._k,...rg});Object.freeze({...Lc,body:"",hidden:!1});function xk(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}const kk=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ck=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xl(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(kk);if(r===null||!r.length)return e;const s=[];let o=r.shift(),i=Ck.test(o);for(;;){if(i){const a=parseFloat(o);isNaN(a)?s.push(o):s.push(Math.ceil(a*t*n)/n)}else s.push(o);if(o=r.shift(),o===void 0)return s.join("");i=!i}}function Sk(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ek(e){return"data:image/svg+xml,"+Sk(e)}function Ak(e){return'url("'+Ek(e)+'")'}function Tk(e){const[t,n,r,s]=e;if(r!==s){const o=Math.max(r,s);return[t-(o-r)/2,n-(o-s)/2,o,o]}return e}const Pk=Object.freeze({width:null,height:null}),Rk=Object.freeze({...Pk,...rg});function Ik(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const s=e.indexOf(">",r),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const i=e.indexOf(">",o);if(i===-1)break;n+=e.slice(s+1,o).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function Ok(e,t){return e?"<defs>"+e+"</defs>"+t:t}function $k(e,t,n){const r=Ik(e);return Ok(r.defs,t+r.content+n)}const Lk=e=>e==="unset"||e==="undefined"||e==="none";function Nk(e,t){const n={...Lc,...e},r={...Rk,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(g=>{const y=[],b=g.hFlip,_=g.vFlip;let m=g.rotate;b?_?m+=2:(y.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),y.push("scale(-1 1)"),s.top=s.left=0):_&&(y.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),y.push("scale(1 -1)"),s.top=s.left=0);let v;switch(m<0&&(m-=Math.floor(m/4)*4),m=m%4,m){case 1:v=s.height/2+s.top,y.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:y.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:v=s.width/2+s.left,y.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}m%2===1&&(s.left!==s.top&&(v=s.left,s.left=s.top,s.top=v),s.width!==s.height&&(v=s.width,s.width=s.height,s.height=v)),y.length&&(o=$k(o,'<g transform="'+y.join(" ")+'">',"</g>"))});const i=r.width,a=r.height,l=s.width,c=s.height;let u,f;i===null?(f=a===null?"1em":a==="auto"?c:a,u=xl(f,l/c)):(u=i==="auto"?l:i,f=a===null?xl(u,c/l):a==="auto"?c:a);const d={},p=(g,y)=>{Lk(y)||(d[g]=y.toString())};p("width",u),p("height",f);const h=[s.left,s.top,l,c];return d.viewBox=h.join(" "),{attributes:d,viewBox:h,body:o}}function Mk(e){const t={display:"inline-block",width:"1em",height:"1em"},n=e.varName;switch(e.pseudoSelector&&(t.content="''"),e.mode){case"background":n&&(t["background-image"]="var(--"+n+")"),t["background-repeat"]="no-repeat",t["background-size"]="100% 100%";break;case"mask":t["background-color"]="currentColor",n&&(t["mask-image"]=t["-webkit-mask-image"]="var(--"+n+")"),t["mask-repeat"]=t["-webkit-mask-repeat"]="no-repeat",t["mask-size"]=t["-webkit-mask-size"]="100% 100%";break}return t}function Dk(e,t){const n={},r=t.varName,s=Nk(e);let o=s.viewBox;o[2]!==o[3]&&(t.forceSquare?o=Tk(o):n.width=xl("1em",o[2]/o[3]));const i=xk(s.body.replace(/currentColor/g,t.color||"black"),{viewBox:`${o[0]} ${o[1]} ${o[2]} ${o[3]}`,width:`${o[2]}`,height:`${o[3]}`}),a=Ak(i);if(r)n["--"+r]=a;else switch(t.mode){case"background":n["background-image"]=a;break;case"mask":n["mask-image"]=n["-webkit-mask-image"]=a;break}return n}const Sa={selectorStart:{compressed:"{",compact:" {",expanded:" {"},selectorEnd:{compressed:"}",compact:`; }
19
- `,expanded:`;
20
- }
21
- `},rule:{compressed:"{key}:",compact:" {key}: ",expanded:`
22
- {key}: `}};function Fk(e,t="expanded"){const n=[];for(let r=0;r<e.length;r++){const{selector:s,rules:o}=e[r];let a=(s instanceof Array?s.join(t==="compressed"?",":", "):s)+Sa.selectorStart[t],l=!0;for(const c in o)l||(a+=";"),a+=Sa.rule[t].replace("{key}",c)+o[c],l=!1;a+=Sa.selectorEnd[t],n.push(a)}return n.join(t==="compressed"?"":`
23
- `)}function Bk(e,t={}){const n=t.customise?t.customise(e.body):e.body,r=t.mode||(t.color||!n.includes("currentColor")?"background":"mask");let s=t.varName;s===void 0&&r==="mask"&&(s="svg");const o={...t,mode:r,varName:s};r==="background"&&delete o.varName;const i={...t.rules,...Mk(o),...Dk({...Lc,...e,body:n},o)},a=t.iconSelector||".icon";return Fk([{selector:a,rules:i}],o.format)}async function jk(e,t){if(!e)return null;const n=bl(e);return n||(await tk(e).catch(()=>(console.warn(`[Icon] failed to load icon \`${e}\``),null)),bl(e))}function sg(e){const t=tt().icon,n=(t.collections||[]).sort((r,s)=>s.length-r.length);return $(()=>{const r=e(),s=r.startsWith(t.cssSelectorPrefix)?r.slice(t.cssSelectorPrefix.length):r,o=t.aliases?.[s]||s;if(!o.includes(":")){const i=n.find(a=>o.startsWith(a+"-"));return i?i+":"+o.slice(i.length+1):o}return o})}function og(e,t){if(e!==!1)return e===!0||e===null?t:e}let ms;function qk(e){return e.replace(/([^\w-])/g,"\\$1")}function zk(){if(ms)return ms;ms=new Set;const e=n=>{if(n=n.replace(/^:where\((.*)\)$/,"$1").trim(),n.startsWith("."))return n},t=n=>{if(n?.length)for(const r of n){r?.cssRules&&t(r.cssRules);const s=r?.selectorText;if(typeof s=="string"){const o=e(s);o&&ms.add(o)}}};if(typeof document<"u")for(const n of document.styleSheets)try{const r=n.cssRules||n.rules;t(r)}catch{}return ms}const Hk=ue({name:"NuxtIconCss",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e){const t=Me(),n=tt().icon,r=$(()=>e.name?n.cssSelectorPrefix+e.name:"");function s(a){if(!a)return;const l=bl(a);if(l)return l;const c=t.payload?.data?.[a];if(c)return Oc(a,c),c}const o=$(()=>"."+qk(r.value));function i(a,l=!0){let c=o.value;n.cssWherePseudo&&(c=`:where(${c})`);const u=Bk(a,{iconSelector:c,format:"compressed",customise:og(e.customize,n.customize)});return n.cssLayer&&l?`@layer ${n.cssLayer} { ${u} }`:u}{const a=zk();async function l(c){if(a.has(o.value)||typeof document>"u")return;const u=document.createElement("style");u.textContent=i(c);const f=document.head.querySelector('style, link[rel="stylesheet"]');f?document.head.insertBefore(u,f):document.head.appendChild(u),a.add(o.value)}Re(()=>e.name,()=>{if(a.has(o.value))return;const c=s(e.name);c?l(c):jk(e.name).then(u=>{u&&l(u)}).catch(()=>null)},{immediate:!0})}return()=>_t("span",{class:["iconify",r.value]})}}),Uk=ue({name:"NuxtIconSvg",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){const n=Me(),r=tt().icon,s=sg(()=>e.name),o="i-"+s.value;if(s.value){const i=n.payload.data[o];i&&Oc(s.value,i)}return()=>_t(hk,{icon:s.value,ssr:!0,customise:og(e.customize,r.customize)},t)}}),ig=ue({name:"NuxtIcon",props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){const n=Me(),r=tt().icon,s=sg(()=>e.name),o=$(()=>n.vueApp?.component(s.value)||((e.mode||r.mode)==="svg"?Uk:Hk)),i=$(()=>{const a=e.size||r.size;return a?{fontSize:Number.isNaN(+a)?a:a+"px"}:null});return()=>_t(o.value,{...r.attrs,name:s.value,class:r.class,style:i.value,customize:e.customize},t)}}),Gk=Object.freeze(Object.defineProperty({__proto__:null,default:ig},Symbol.toStringTag,{value:"Module"}));function Kn(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,r=Symbol(n);return[i=>{const a=wt(r,i);if(a||a===null)return a;throw new Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},i=>(dr(r,i),i)]}function Jr(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function ag(e,t,n){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(s)}function lg(e){return e==null}function Nc(e){return e?e.flatMap(t=>t.type===be?Nc(t.children):[t]):[]}const[t2,Vk]=Kn("ConfigProvider");var Wk=ue({inheritAttrs:!1,__name:"ConfigProvider",props:{dir:{type:String,required:!1,default:"ltr"},locale:{type:String,required:!1,default:"en"},scrollBody:{type:[Boolean,Object],required:!1,default:!0},nonce:{type:String,required:!1,default:void 0},useId:{type:Function,required:!1,default:void 0}},setup(e){const t=e,{dir:n,locale:r,scrollBody:s,nonce:o}=Un(t);return Vk({dir:n,locale:r,scrollBody:s,nonce:o,useId:t.useId}),(i,a)=>ne(i.$slots,"default")}}),Kk=Wk;function Xk(e,t){var n;const r=cn();return Mt(()=>{r.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Hn(r)}function to(e){return Js()?(oc(e),!0):!1}function Jk(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const i=()=>t(o);return to(i),{off:i}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(i=>i(...o))),clear:()=>{e.clear()}}}const rs=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Yk=e=>typeof e<"u",Qk=Object.prototype.toString,Zk=e=>Qk.call(e)==="[object Object]",e1=()=>{};function Ea(e){return Array.isArray(e)?e:[e]}function t1(e,t=1e4){return uc((n,r)=>{let s=Pe(e),o;const i=()=>setTimeout(()=>{s=Pe(e),r()},Pe(t));return to(()=>{clearTimeout(o)}),{get(){return n(),s},set(a){s=a,r(),clearTimeout(o),o=i()}}})}function Mc(e,t,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n,o=cn(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function l(){o.value=!1,a()}function c(...u){s&&e(),a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...u)},Pe(t))}return r&&(o.value=!0,rs&&c()),to(l),{isPending:Hn(o),start:c,stop:l}}function n1(e=1e3,t={}){const{controls:n=!1,callback:r}=t,s=Mc(r??e1,e,t),o=$(()=>!s.isPending.value);return n?{ready:o,...s}:o}function r1(e,t,n){return Re(e,t,{...n,immediate:!0})}const Ki=rs?window:void 0;function yr(e){var t;const n=Pe(e);return(t=n?.$el)!=null?t:n}function kl(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,c,u)=>(a.addEventListener(l,c,u),()=>a.removeEventListener(l,c,u)),s=$(()=>{const a=Ea(Pe(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=r1(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(c=>yr(c)))!=null?l:[Ki].filter(c=>c!=null),Ea(Pe(s.value?e[1]:e[0])),Ea(k(s.value?e[2]:e[1])),Pe(s.value?e[3]:e[2])]},([a,l,c,u])=>{if(n(),!a?.length||!l?.length||!c?.length)return;const f=Zk(u)?{...u}:u;t.push(...a.flatMap(d=>l.flatMap(p=>c.map(h=>r(d,p,h,f)))))},{flush:"post"}),i=()=>{o(),n()};return to(n),i}function s1(){const e=cn(!1),t=ut();return t&&Dt(()=>{e.value=!0},t),e}function o1(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Dc(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Ki,eventName:o="keydown",passive:i=!1,dedupe:a=!1}=r,l=o1(t);return kl(s,o,u=>{u.repeat&&Pe(a)||l(u)&&n(u)},i)}function cg(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=Ki,once:o=!1}=t,i=cn(!1),a=$(()=>r?1e3/Pe(r):null);let l=0,c=null;function u(p){if(!i.value||!s)return;l||(l=p);const h=p-l;if(a.value&&h<a.value){c=s.requestAnimationFrame(u);return}if(l=p,e({delta:h,timestamp:p}),o){i.value=!1,c=null;return}c=s.requestAnimationFrame(u)}function f(){!i.value&&s&&(i.value=!0,l=0,c=s.requestAnimationFrame(u))}function d(){i.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&f(),to(d),{isActive:Hn(i),pause:d,resume:f}}function i1(e){return JSON.parse(JSON.stringify(e))}function li(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:f,shouldEmit:d}=r,p=ut(),h=n||p?.emit||((s=p?.$emit)==null?void 0:s.bind(p))||((i=(o=p?.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(p?.proxy));let g=c;t||(t="modelValue"),g=g||`update:${t.toString()}`;const y=m=>a?typeof a=="function"?a(m):i1(m):m,b=()=>Yk(e[t])?y(e[t]):f,_=m=>{d?d(m)&&h(g,m):h(g,m)};if(l){const m=b(),v=Y(m);let w=!1;return Re(()=>e[t],S=>{w||(w=!0,v.value=y(S),kt(()=>w=!1))}),Re(v,S=>{!w&&(S!==e[t]||u)&&_(S)},{deep:u}),v}else return $({get(){return b()},set(m){_(m)}})}function a1(e){const t=ut(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(s=>{r[ks(ht(s))]=(...o)=>e(s,...o)}),r}function ze(){const e=ut(),t=Y(),n=$(()=>["#text","#comment"].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:yr(t)),r=Object.assign({},e.exposed),s={};for(const i in e.props)Object.defineProperty(s,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(r).length>0)for(const i in r)Object.defineProperty(s,i,{enumerable:!0,configurable:!0,get:()=>r[i]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function o(i){t.value=i,i&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>i instanceof Element?i:i.$el}),e.exposed=s)}return{forwardRef:o,currentRef:t,currentElement:n}}function _r(e){const t=ut(),n=Object.keys(t?.type.props??{}).reduce((s,o)=>{const i=(t?.type.props[o]).default;return i!==void 0&&(s[o]=i),s},{}),r=$t(e);return $(()=>{const s={},o=t?.vnode.props??{};return Object.keys(o).forEach(i=>{s[ht(i)]=o[i]}),Object.keys({...n,...s}).reduce((i,a)=>(r.value[a]!==void 0&&(i[a]=r.value[a]),i),{})})}function Xi(e,t){const n=_r(e),r=t?a1(t):{};return $(()=>({...n.value,...r}))}function l1(e,t){const n=t1(!1,300),r=Y(null),s=Jk();function o(){r.value=null,n.value=!1}function i(a,l){const c=a.currentTarget,u={x:a.clientX,y:a.clientY},f=c1(u,c.getBoundingClientRect()),d=u1(u,f),p=f1(l.getBoundingClientRect()),h=p1([...d,...p]);r.value=h,n.value=!0}return Mt(a=>{if(e.value&&t.value){const l=u=>i(u,t.value),c=u=>i(u,e.value);e.value.addEventListener("pointerleave",l),t.value.addEventListener("pointerleave",c),a(()=>{e.value?.removeEventListener("pointerleave",l),t.value?.removeEventListener("pointerleave",c)})}}),Mt(a=>{if(r.value){const l=c=>{if(!r.value||!(c.target instanceof Element))return;const u=c.target,f={x:c.clientX,y:c.clientY},d=e.value?.contains(u)||t.value?.contains(u),p=!d1(f,r.value),h=!!u.closest("[data-grace-area-trigger]");d?o():(p||h)&&(o(),s.trigger())};e.value?.ownerDocument.addEventListener("pointermove",l),a(()=>e.value?.ownerDocument.removeEventListener("pointermove",l))}}),{isPointerInTransit:n,onPointerExit:s.on}}function c1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,s,o)){case o:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function u1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function f1(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function d1(e,t){const{x:n,y:r}=e;let s=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const a=t[o].x,l=t[o].y,c=t[i].x,u=t[i].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(s=!s)}return s}function p1(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),h1(t)}function h1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const o=n[n.length-1],i=n[n.length-2];if((o.x-i.x)*(s.y-i.y)>=(o.y-i.y)*(s.x-i.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}function g1(e,t="reka"){return`${t}-${Ep?.()}`}function m1(e){const t=Y(),n=$(()=>t.value?.width??0),r=$(()=>t.value?.height??0);return Dt(()=>{const s=yr(e);if(s){t.value={width:s.offsetWidth,height:s.offsetHeight};const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,f=Array.isArray(u)?u[0]:u;l=f.inlineSize,c=f.blockSize}else l=s.offsetWidth,c=s.offsetHeight;t.value={width:l,height:c}});return o.observe(s,{box:"border-box"}),()=>o.unobserve(s)}else t.value=void 0}),{width:n,height:r}}function y1(e,t){const n=Y(e);function r(o){return t[n.value][o]??n.value}return{state:n,dispatch:o=>{n.value=r(o)}}}function b1(e,t){const n=Y({}),r=Y("none"),s=Y(e),o=e.value?"mounted":"unmounted";let i;const a=t.value?.ownerDocument.defaultView??Ki,{state:l,dispatch:c}=y1(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),u=y=>{if(rs){const b=new CustomEvent(y,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(b)}};Re(e,async(y,b)=>{const _=b!==y;if(await kt(),_){const m=r.value,v=bo(t.value);y?(c("MOUNT"),u("enter"),v==="none"&&u("after-enter")):v==="none"||v==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),u("leave"),u("after-leave")):b&&m!==v?(c("ANIMATION_OUT"),u("leave")):(c("UNMOUNT"),u("after-leave"))}},{immediate:!0});const f=y=>{const b=bo(t.value),_=b.includes(CSS.escape(y.animationName)),m=l.value==="mounted"?"enter":"leave";if(y.target===t.value&&_&&(u(`after-${m}`),c("ANIMATION_END"),!s.value)){const v=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",i=a?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=v)})}y.target===t.value&&b==="none"&&c("ANIMATION_END")},d=y=>{y.target===t.value&&(r.value=bo(t.value))},p=Re(t,(y,b)=>{y?(n.value=getComputedStyle(y),y.addEventListener("animationstart",d),y.addEventListener("animationcancel",f),y.addEventListener("animationend",f)):(c("ANIMATION_END"),i!==void 0&&a?.clearTimeout(i),b?.removeEventListener("animationstart",d),b?.removeEventListener("animationcancel",f),b?.removeEventListener("animationend",f))},{immediate:!0}),h=Re(l,()=>{const y=bo(t.value);r.value=l.value==="mounted"?y:"none"});return es(()=>{p(),h()}),{isPresent:$(()=>["mounted","unmountSuspended"].includes(l.value))}}function bo(e){return e&&getComputedStyle(e).animationName||"none"}var ug=ue({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:r,forceMount:s}=Un(e),o=Y(),{isPresent:i}=b1(r,o);n({present:i});let a=t.default({present:i.value});a=Nc(a||[]);const l=ut();if(a&&a?.length>1){const c=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(u=>` - ${u}`).join(`
24
- `)].join(`
25
- `))}return()=>s.value||r.value||i.value?_t(t.default({present:i.value})[0],{ref:c=>{const u=yr(c);return typeof u?.hasAttribute>"u"||(u?.hasAttribute("data-reka-popper-content-wrapper")?o.value=u.firstElementChild:o.value=u),u}}):null}});const js=ue({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const r=Nc(n.default()),s=r.findIndex(l=>l.type!==Ct);if(s===-1)return r;const o=r[s];delete o.props?.ref;const i=o.props?pe(t,o.props):t,a=pr({...o,props:{}},i);return r.length===1?a:(r[s]=a,r)}}}),v1=["area","img","input"],Ue=ue({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as;return typeof r=="string"&&v1.includes(r)?()=>_t(r,t):r!=="template"?()=>_t(e.as,t,{default:n.default}):()=>_t(js,t,{default:n.default})}});function kf(){const e=Y(),t=$(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:yr(e));return{primitiveElement:e,currentElement:t}}const w1="dismissableLayer.pointerDownOutside",_1="dismissableLayer.focusOutside";function fg(e,t){const n=t.closest("[data-dismissable-layer]"),r=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(r===n||s.indexOf(r)<s.indexOf(n)))}function x1(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,s=Y(!1),o=Y(()=>{});return Mt(i=>{if(!rs||!Pe(n))return;const a=async c=>{const u=c.target;if(!(!t?.value||!u)){if(fg(t.value,u)){s.value=!1;return}if(c.target&&!s.value){let d=function(){ag(w1,e,f)};const f={originalEvent:c};c.pointerType==="touch"?(r.removeEventListener("click",o.value),o.value=d,r.addEventListener("click",o.value,{once:!0})):d()}else r.removeEventListener("click",o.value);s.value=!1}},l=window.setTimeout(()=>{r.addEventListener("pointerdown",a)},0);i(()=>{window.clearTimeout(l),r.removeEventListener("pointerdown",a),r.removeEventListener("click",o.value)})}),{onPointerDownCapture:()=>{Pe(n)&&(s.value=!0)}}}function k1(e,t,n=!0){const r=t?.value?.ownerDocument??globalThis?.document,s=Y(!1);return Mt(o=>{if(!rs||!Pe(n))return;const i=async a=>{if(!t?.value)return;await kt(),await kt();const l=a.target;!t.value||!l||fg(t.value,l)||a.target&&!s.value&&ag(_1,e,{originalEvent:a})};r.addEventListener("focusin",i),o(()=>r.removeEventListener("focusin",i))}),{onFocusCapture:()=>{Pe(n)&&(s.value=!0)},onBlurCapture:()=>{Pe(n)&&(s.value=!1)}}}const Vt=gt({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var C1=ue({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s,currentElement:o}=ze(),i=$(()=>o.value?.ownerDocument??globalThis.document),a=$(()=>Vt.layersRoot),l=$(()=>o.value?Array.from(a.value).indexOf(o.value):-1),c=$(()=>Vt.layersWithOutsidePointerEventsDisabled.size>0),u=$(()=>{const h=Array.from(a.value),[g]=[...Vt.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(g);return l.value>=y}),f=x1(async h=>{const g=[...Vt.branches].some(y=>y?.contains(h.target));!u.value||g||(r("pointerDownOutside",h),r("interactOutside",h),await kt(),h.defaultPrevented||r("dismiss"))},o),d=k1(h=>{[...Vt.branches].some(y=>y?.contains(h.target))||(r("focusOutside",h),r("interactOutside",h),h.defaultPrevented||r("dismiss"))},o);Dc("Escape",h=>{l.value===a.value.size-1&&(r("escapeKeyDown",h),h.defaultPrevented||r("dismiss"))});let p;return Mt(h=>{o.value&&(n.disableOutsidePointerEvents&&(Vt.layersWithOutsidePointerEventsDisabled.size===0&&(p=i.value.body.style.pointerEvents,i.value.body.style.pointerEvents="none"),Vt.layersWithOutsidePointerEventsDisabled.add(o.value)),a.value.add(o.value),h(()=>{n.disableOutsidePointerEvents&&Vt.layersWithOutsidePointerEventsDisabled.size===1&&(i.value.body.style.pointerEvents=p)}))}),Mt(h=>{h(()=>{o.value&&(a.value.delete(o.value),Vt.layersWithOutsidePointerEventsDisabled.delete(o.value))})}),(h,g)=>(E(),j(k(Ue),{ref:k(s),"as-child":h.asChild,as:h.as,"data-dismissable-layer":"",style:Xt({pointerEvents:c.value?u.value?"auto":"none":void 0}),onFocusCapture:k(d).onFocusCapture,onBlurCapture:k(d).onBlurCapture,onPointerdownCapture:k(f).onPointerDownCapture},{default:V(()=>[ne(h.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),S1=C1,E1=ue({__name:"DismissableLayerBranch",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:r}=ze();return Dt(()=>{Vt.branches.add(r.value)}),es(()=>{Vt.branches.delete(r.value)}),(s,o)=>(E(),j(k(Ue),pe({ref:k(n)},t),{default:V(()=>[ne(s.$slots,"default")]),_:3},16))}}),A1=E1;function Aa(e,{select:t=!1}={}){const n=Jr();for(const r of e)if(R1(r,{select:t}),Jr()!==n)return!0}function T1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function P1(e){return e instanceof HTMLInputElement&&"select"in e}function R1(e,{select:t=!1}={}){if(e&&e.focus){const n=Jr();e.focus({preventScroll:!0}),e!==n&&P1(e)&&t&&e.select()}}var I1=ue({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=s1();return(n,r)=>k(t)||n.forceMount?(E(),j(Cp,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[ne(n.$slots,"default")],8,["to","disabled","defer"])):he("v-if",!0)}}),dg=I1;const Cf="data-reka-collection-item";function Fc(e={}){const{key:t="",isProvider:n=!1}=e,r=`${t}CollectionProvider`;let s;n?(s={collectionRef:Y(),itemMap:Y(new Map)},dr(r,s)):s=wt(r);const o=(u=!1)=>{const f=s.collectionRef.value;if(!f)return[];const d=Array.from(f.querySelectorAll(`[${Cf}]`)),h=Array.from(s.itemMap.value.values()).sort((g,y)=>d.indexOf(g.ref)-d.indexOf(y.ref));return u?h:h.filter(g=>g.ref.dataset.disabled!=="")},i=ue({name:"CollectionSlot",setup(u,{slots:f}){const{primitiveElement:d,currentElement:p}=kf();return Re(p,()=>{s.collectionRef.value=p.value}),()=>_t(js,{ref:d},f)}}),a=ue({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(u,{slots:f,attrs:d}){const{primitiveElement:p,currentElement:h}=kf();return Mt(g=>{if(h.value){const y=cc(h.value);s.itemMap.value.set(y,{ref:h.value,value:u.value}),g(()=>s.itemMap.value.delete(y))}}),()=>_t(js,{...d,[Cf]:"",ref:p},f)}}),l=$(()=>Array.from(s.itemMap.value.values())),c=$(()=>s.itemMap.value.size);return{getItems:o,reactiveItems:l,itemMapSize:c,CollectionSlot:i,CollectionItem:a}}var O1=ue({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,n)=>(E(),j(k(Ue),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:V(()=>[ne(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Bc=O1;const[pg,$1]=Kn("PopperRoot");var L1=ue({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=Y();return $1({anchor:t,onAnchorChange:n=>t.value=n}),(n,r)=>ne(n.$slots,"default")}}),N1=L1,M1=ue({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:r}=ze(),s=pg();return wp(()=>{s.onAnchorChange(t.reference??r.value)}),(o,i)=>(E(),j(k(Ue),{ref:k(n),as:o.as,"as-child":o.asChild},{default:V(()=>[ne(o.$slots,"default")]),_:3},8,["as","as-child"]))}}),D1=M1;const F1={key:0,d:"M0 0L6 6L12 0"},B1={key:1,d:"M0 0L4.58579 4.58579C5.36683 5.36683 6.63316 5.36684 7.41421 4.58579L12 0"};var j1=ue({__name:"Arrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return ze(),(n,r)=>(E(),j(k(Ue),pe(t,{width:n.width,height:n.height,viewBox:n.asChild?void 0:"0 0 12 6",preserveAspectRatio:n.asChild?void 0:"none"}),{default:V(()=>[ne(n.$slots,"default",{},()=>[n.rounded?(E(),re("path",B1)):(E(),re("path",F1))])]),_:3},16,["width","height","viewBox","preserveAspectRatio"]))}}),q1=j1;function z1(e){return e!==null}function H1(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:s}=t,i=s.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=Cl(n),f={start:"0%",center:"50%",end:"100%"}[u],d=(s.arrow?.x??0)+a/2,p=(s.arrow?.y??0)+l/2;let h="",g="";return c==="bottom"?(h=i?f:`${d}px`,g=`${-l}px`):c==="top"?(h=i?f:`${d}px`,g=`${r.floating.height+l}px`):c==="right"?(h=`${-l}px`,g=i?f:`${p}px`):c==="left"&&(h=`${r.floating.width+l}px`,g=i?f:`${p}px`),{data:{x:h,y:g}}}}}function Cl(e){const[t,n="center"]=e.split("-");return[t,n]}const U1=["top","right","bottom","left"],Gn=Math.min,It=Math.max,ci=Math.round,vo=Math.floor,an=e=>({x:e,y:e}),G1={left:"right",right:"left",bottom:"top",top:"bottom"},V1={start:"end",end:"start"};function Sl(e,t,n){return It(e,Gn(t,n))}function En(e,t){return typeof e=="function"?e(t):e}function An(e){return e.split("-")[0]}function ss(e){return e.split("-")[1]}function jc(e){return e==="x"?"y":"x"}function qc(e){return e==="y"?"height":"width"}const W1=new Set(["top","bottom"]);function sn(e){return W1.has(An(e))?"y":"x"}function zc(e){return jc(sn(e))}function K1(e,t,n){n===void 0&&(n=!1);const r=ss(e),s=zc(e),o=qc(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=ui(i)),[i,ui(i)]}function X1(e){const t=ui(e);return[El(e),t,El(t)]}function El(e){return e.replace(/start|end/g,t=>V1[t])}const Sf=["left","right"],Ef=["right","left"],J1=["top","bottom"],Y1=["bottom","top"];function Q1(e,t,n){switch(e){case"top":case"bottom":return n?t?Ef:Sf:t?Sf:Ef;case"left":case"right":return t?J1:Y1;default:return[]}}function Z1(e,t,n,r){const s=ss(e);let o=Q1(An(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(El)))),o}function ui(e){return e.replace(/left|right|bottom|top/g,t=>G1[t])}function eC(e){return{top:0,right:0,bottom:0,left:0,...e}}function hg(e){return typeof e!="number"?eC(e):{top:e,right:e,bottom:e,left:e}}function fi(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Af(e,t,n){let{reference:r,floating:s}=e;const o=sn(t),i=zc(t),a=qc(i),l=An(t),c=o==="y",u=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,d=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-s.width,y:f};break;default:p={x:r.x,y:r.y}}switch(ss(t)){case"start":p[i]-=d*(n&&c?-1:1);break;case"end":p[i]+=d*(n&&c?-1:1);break}return p}const tC=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:f}=Af(c,r,l),d=r,p={},h=0;for(let g=0;g<a.length;g++){const{name:y,fn:b}=a[g],{x:_,y:m,data:v,reset:w}=await b({x:u,y:f,initialPlacement:r,placement:d,strategy:s,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=_??u,f=m??f,p={...p,[y]:{...p[y],...v}},w&&h<=50&&(h++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(c=w.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):w.rects),{x:u,y:f}=Af(c,d,l)),g=-1)}return{x:u,y:f,placement:d,strategy:s,middlewareData:p}};async function qs(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=En(t,e),h=hg(p),y=a[d?f==="floating"?"reference":"floating":f],b=fi(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),_=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),v=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},w=fi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:m,strategy:l}):_);return{top:(b.top-w.top+h.top)/v.y,bottom:(w.bottom-b.bottom+h.bottom)/v.y,left:(b.left-w.left+h.left)/v.x,right:(w.right-b.right+h.right)/v.x}}const nC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=En(e,t)||{};if(c==null)return{};const f=hg(u),d={x:n,y:r},p=zc(s),h=qc(p),g=await i.getDimensions(c),y=p==="y",b=y?"top":"left",_=y?"bottom":"right",m=y?"clientHeight":"clientWidth",v=o.reference[h]+o.reference[p]-d[p]-o.floating[h],w=d[p]-o.reference[p],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let P=S?S[m]:0;(!P||!await(i.isElement==null?void 0:i.isElement(S)))&&(P=a.floating[m]||o.floating[h]);const T=v/2-w/2,R=P/2-g[h]/2-1,N=Gn(f[b],R),X=Gn(f[_],R),U=N,se=P-g[h]-X,L=P/2-g[h]/2+T,z=Sl(U,L,se),I=!l.arrow&&ss(s)!=null&&L!==z&&o.reference[h]/2-(L<U?N:X)-g[h]/2<0,H=I?L<U?L-U:L-se:0;return{[p]:d[p]+H,data:{[p]:z,centerOffset:L-z-H,...I&&{alignmentOffset:H}},reset:I}}}),rC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=En(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=An(s),_=sn(a),m=An(a)===a,v=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=d||(m||!g?[ui(a)]:X1(a)),S=h!=="none";!d&&S&&w.push(...Z1(a,g,h,v));const P=[a,...w],T=await qs(t,y),R=[];let N=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&R.push(T[b]),f){const L=K1(s,i,v);R.push(T[L[0]],T[L[1]])}if(N=[...N,{placement:s,overflows:R}],!R.every(L=>L<=0)){var X,U;const L=(((X=o.flip)==null?void 0:X.index)||0)+1,z=P[L];if(z&&(!(f==="alignment"?_!==sn(z):!1)||N.every(A=>sn(A.placement)===_?A.overflows[0]>0:!0)))return{data:{index:L,overflows:N},reset:{placement:z}};let I=(U=N.filter(H=>H.overflows[0]<=0).sort((H,A)=>H.overflows[1]-A.overflows[1])[0])==null?void 0:U.placement;if(!I)switch(p){case"bestFit":{var se;const H=(se=N.filter(A=>{if(S){const oe=sn(A.placement);return oe===_||oe==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(oe=>oe>0).reduce((oe,je)=>oe+je,0)]).sort((A,oe)=>A[1]-oe[1])[0])==null?void 0:se[0];H&&(I=H);break}case"initialPlacement":I=a;break}if(s!==I)return{reset:{placement:I}}}return{}}}};function Tf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pf(e){return U1.some(t=>e[t]>=0)}const sC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=En(e,t);switch(r){case"referenceHidden":{const o=await qs(t,{...s,elementContext:"reference"}),i=Tf(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Pf(i)}}}case"escaped":{const o=await qs(t,{...s,altBoundary:!0}),i=Tf(o,n.floating);return{data:{escapedOffsets:i,escaped:Pf(i)}}}default:return{}}}}},gg=new Set(["left","top"]);async function oC(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=An(n),a=ss(n),l=sn(n)==="y",c=gg.has(i)?-1:1,u=o&&l?-1:1,f=En(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}const iC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await oC(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},aC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:y=>{let{x:b,y:_}=y;return{x:b,y:_}}},...l}=En(e,t),c={x:n,y:r},u=await qs(t,l),f=sn(An(s)),d=jc(f);let p=c[d],h=c[f];if(o){const y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",_=p+u[y],m=p-u[b];p=Sl(_,p,m)}if(i){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",_=h+u[y],m=h-u[b];h=Sl(_,h,m)}const g=a.fn({...t,[d]:p,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:o,[f]:i}}}}}},lC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:o,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=En(e,t),u={x:n,y:r},f=sn(s),d=jc(f);let p=u[d],h=u[f];const g=En(a,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const m=d==="y"?"height":"width",v=o.reference[d]-o.floating[m]+y.mainAxis,w=o.reference[d]+o.reference[m]-y.mainAxis;p<v?p=v:p>w&&(p=w)}if(c){var b,_;const m=d==="y"?"width":"height",v=gg.has(An(s)),w=o.reference[f]-o.floating[m]+(v&&((b=i.offset)==null?void 0:b[f])||0)+(v?0:y.crossAxis),S=o.reference[f]+o.reference[m]+(v?0:((_=i.offset)==null?void 0:_[f])||0)-(v?y.crossAxis:0);h<w?h=w:h>S&&(h=S)}return{[d]:p,[f]:h}}}},cC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...c}=En(e,t),u=await qs(t,c),f=An(s),d=ss(s),p=sn(s)==="y",{width:h,height:g}=o.floating;let y,b;f==="top"||f==="bottom"?(y=f,b=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,y=d==="end"?"top":"bottom");const _=g-u.top-u.bottom,m=h-u.left-u.right,v=Gn(g-u[y],_),w=Gn(h-u[b],m),S=!t.middlewareData.shift;let P=v,T=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=_),S&&!d){const N=It(u.left,0),X=It(u.right,0),U=It(u.top,0),se=It(u.bottom,0);p?T=h-2*(N!==0||X!==0?N+X:It(u.left,u.right)):P=g-2*(U!==0||se!==0?U+se:It(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:P});const R=await i.getDimensions(a.floating);return h!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}};function Ji(){return typeof window<"u"}function xr(e){return Hc(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(Hc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hc(e){return Ji()?e instanceof Node||e instanceof Nt(e).Node:!1}function Qt(e){return Ji()?e instanceof Element||e instanceof Nt(e).Element:!1}function fn(e){return Ji()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function Rf(e){return!Ji()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}const uC=new Set(["inline","contents"]);function no(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!uC.has(s)}const fC=new Set(["table","td","th"]);function dC(e){return fC.has(xr(e))}const pC=[":popover-open",":modal"];function Yi(e){return pC.some(t=>{try{return e.matches(t)}catch{return!1}})}const hC=["transform","translate","scale","rotate","perspective"],gC=["transform","translate","scale","rotate","perspective","filter"],mC=["paint","layout","strict","content"];function Uc(e){const t=Gc(),n=Qt(e)?Zt(e):e;return hC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||gC.some(r=>(n.willChange||"").includes(r))||mC.some(r=>(n.contain||"").includes(r))}function yC(e){let t=Vn(e);for(;fn(t)&&!Yr(t);){if(Uc(t))return t;if(Yi(t))return null;t=Vn(t)}return null}function Gc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bC=new Set(["html","body","#document"]);function Yr(e){return bC.has(xr(e))}function Zt(e){return Nt(e).getComputedStyle(e)}function Qi(e){return Qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(xr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rf(e)&&e.host||dn(e);return Rf(t)?t.host:t}function mg(e){const t=Vn(e);return Yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:fn(t)&&no(t)?t:mg(t)}function zs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=mg(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),i=Nt(s);if(o){const a=Al(i);return t.concat(i,i.visualViewport||[],no(s)?s:[],a&&n?zs(a):[])}return t.concat(s,zs(s,[],n))}function Al(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yg(e){const t=Zt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=fn(e),o=s?e.offsetWidth:n,i=s?e.offsetHeight:r,a=ci(n)!==o||ci(r)!==i;return a&&(n=o,r=i),{width:n,height:r,$:a}}function Vc(e){return Qt(e)?e:e.contextElement}function Hr(e){const t=Vc(e);if(!fn(t))return an(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=yg(t);let i=(o?ci(n.width):n.width)/r,a=(o?ci(n.height):n.height)/s;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const vC=an(0);function bg(e){const t=Nt(e);return!Gc()||!t.visualViewport?vC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function br(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=Vc(e);let i=an(1);t&&(r?Qt(r)&&(i=Hr(r)):i=Hr(e));const a=wC(o,n,r)?bg(o):an(0);let l=(s.left+a.x)/i.x,c=(s.top+a.y)/i.y,u=s.width/i.x,f=s.height/i.y;if(o){const d=Nt(o),p=r&&Qt(r)?Nt(r):r;let h=d,g=Al(h);for(;g&&r&&p!==h;){const y=Hr(g),b=g.getBoundingClientRect(),_=Zt(g),m=b.left+(g.clientLeft+parseFloat(_.paddingLeft))*y.x,v=b.top+(g.clientTop+parseFloat(_.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,f*=y.y,l+=m,c+=v,h=Nt(g),g=Al(h)}}return fi({width:u,height:f,x:l,y:c})}function Zi(e,t){const n=Qi(e).scrollLeft;return t?t.left+n:br(dn(e)).left+n}function vg(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Zi(e,n),s=n.top+t.scrollTop;return{x:r,y:s}}function _C(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",i=dn(r),a=t?Yi(t.floating):!1;if(r===i||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=an(1);const u=an(0),f=fn(r);if((f||!f&&!o)&&((xr(r)!=="body"||no(i))&&(l=Qi(r)),fn(r))){const p=br(r);c=Hr(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const d=i&&!f&&!o?vg(i,l):an(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function xC(e){return Array.from(e.getClientRects())}function kC(e){const t=dn(e),n=Qi(e),r=e.ownerDocument.body,s=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Zi(e);const a=-n.scrollTop;return Zt(r).direction==="rtl"&&(i+=It(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:i,y:a}}const If=25;function CC(e,t){const n=Nt(e),r=dn(e),s=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,a=0,l=0;if(s){o=s.width,i=s.height;const u=Gc();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}const c=Zi(r);if(c<=0){const u=r.ownerDocument,f=u.body,d=getComputedStyle(f),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(r.clientWidth-f.clientWidth-p);h<=If&&(o-=h)}else c<=If&&(o+=c);return{width:o,height:i,x:a,y:l}}const SC=new Set(["absolute","fixed"]);function EC(e,t){const n=br(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=fn(e)?Hr(e):an(1),i=e.clientWidth*o.x,a=e.clientHeight*o.y,l=s*o.x,c=r*o.y;return{width:i,height:a,x:l,y:c}}function Of(e,t,n){let r;if(t==="viewport")r=CC(e,n);else if(t==="document")r=kC(dn(e));else if(Qt(t))r=EC(t,n);else{const s=bg(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return fi(r)}function wg(e,t){const n=Vn(e);return n===t||!Qt(n)||Yr(n)?!1:Zt(n).position==="fixed"||wg(n,t)}function AC(e,t){const n=t.get(e);if(n)return n;let r=zs(e,[],!1).filter(a=>Qt(a)&&xr(a)!=="body"),s=null;const o=Zt(e).position==="fixed";let i=o?Vn(e):e;for(;Qt(i)&&!Yr(i);){const a=Zt(i),l=Uc(i);!l&&a.position==="fixed"&&(s=null),(o?!l&&!s:!l&&a.position==="static"&&!!s&&SC.has(s.position)||no(i)&&!l&&wg(e,i))?r=r.filter(u=>u!==i):s=a,i=Vn(i)}return t.set(e,r),r}function TC(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const i=[...n==="clippingAncestors"?Yi(t)?[]:AC(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,u)=>{const f=Of(t,u,s);return c.top=It(f.top,c.top),c.right=Gn(f.right,c.right),c.bottom=Gn(f.bottom,c.bottom),c.left=It(f.left,c.left),c},Of(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function PC(e){const{width:t,height:n}=yg(e);return{width:t,height:n}}function RC(e,t,n){const r=fn(t),s=dn(t),o=n==="fixed",i=br(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=an(0);function c(){l.x=Zi(s)}if(r||!r&&!o)if((xr(t)!=="body"||no(s))&&(a=Qi(t)),r){const p=br(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else s&&c();o&&!r&&s&&c();const u=s&&!r&&!o?vg(s,a):an(0),f=i.left+a.scrollLeft-l.x-u.x,d=i.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:i.width,height:i.height}}function Ta(e){return Zt(e).position==="static"}function $f(e,t){if(!fn(e)||Zt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dn(e)===n&&(n=n.ownerDocument.body),n}function _g(e,t){const n=Nt(e);if(Yi(e))return n;if(!fn(e)){let s=Vn(e);for(;s&&!Yr(s);){if(Qt(s)&&!Ta(s))return s;s=Vn(s)}return n}let r=$f(e,t);for(;r&&dC(r)&&Ta(r);)r=$f(r,t);return r&&Yr(r)&&Ta(r)&&!Uc(r)?n:r||yC(e)||n}const IC=async function(e){const t=this.getOffsetParent||_g,n=this.getDimensions,r=await n(e.floating);return{reference:RC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function OC(e){return Zt(e).direction==="rtl"}const $C={convertOffsetParentRelativeRectToViewportRelativeRect:_C,getDocumentElement:dn,getClippingRect:TC,getOffsetParent:_g,getElementRects:IC,getClientRects:xC,getDimensions:PC,getScale:Hr,isElement:Qt,isRTL:OC};function xg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LC(e,t){let n=null,r;const s=dn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(a||t(),!d||!p)return;const h=vo(f),g=vo(s.clientWidth-(u+d)),y=vo(s.clientHeight-(f+p)),b=vo(u),m={rootMargin:-h+"px "+-g+"px "+-y+"px "+-b+"px",threshold:It(0,Gn(1,l))||1};let v=!0;function w(S){const P=S[0].intersectionRatio;if(P!==l){if(!v)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!xg(c,e.getBoundingClientRect())&&i(),v=!1}try{n=new IntersectionObserver(w,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(w,m)}n.observe(e)}return i(!0),o}function NC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Vc(e),u=s||o?[...c?zs(c):[],...zs(t)]:[];u.forEach(b=>{s&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const f=c&&a?LC(c,n):null;let d=-1,p=null;i&&(p=new ResizeObserver(b=>{let[_]=b;_&&_.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let h,g=l?br(e):null;l&&y();function y(){const b=br(e);g&&!xg(g,b)&&n(),g=b,h=requestAnimationFrame(y)}return n(),()=>{var b;u.forEach(_=>{s&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),f?.(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const MC=iC,DC=aC,Lf=rC,FC=cC,BC=sC,jC=nC,qC=lC,zC=(e,t,n)=>{const r=new Map,s={platform:$C,...n},o={...s.platform,_c:r};return tC(e,t,{...s,platform:o})};function HC(e){return e!=null&&typeof e=="object"&&"$el"in e}function Tl(e){if(HC(e)){const t=e.$el;return Hc(t)&&xr(t)==="#comment"?null:t}return e}function $r(e){return typeof e=="function"?e():k(e)}function UC(e){return{name:"arrow",options:e,fn(t){const n=Tl($r(e.element));return n==null?{}:jC({element:n,padding:e.padding}).fn(t)}}}function kg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Nf(e,t){const n=kg(e);return Math.round(t*n)/n}function GC(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,s=$(()=>{var P;return(P=$r(n.open))!=null?P:!0}),o=$(()=>$r(n.middleware)),i=$(()=>{var P;return(P=$r(n.placement))!=null?P:"bottom"}),a=$(()=>{var P;return(P=$r(n.strategy))!=null?P:"absolute"}),l=$(()=>{var P;return(P=$r(n.transform))!=null?P:!0}),c=$(()=>Tl(e.value)),u=$(()=>Tl(t.value)),f=Y(0),d=Y(0),p=Y(a.value),h=Y(i.value),g=cn({}),y=Y(!1),b=$(()=>{const P={position:p.value,left:"0",top:"0"};if(!u.value)return P;const T=Nf(u.value,f.value),R=Nf(u.value,d.value);return l.value?{...P,transform:"translate("+T+"px, "+R+"px)",...kg(u.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:T+"px",top:R+"px"}});let _;function m(){if(c.value==null||u.value==null)return;const P=s.value;zC(c.value,u.value,{middleware:o.value,placement:i.value,strategy:a.value}).then(T=>{f.value=T.x,d.value=T.y,p.value=T.strategy,h.value=T.placement,g.value=T.middlewareData,y.value=P!==!1})}function v(){typeof _=="function"&&(_(),_=void 0)}function w(){if(v(),r===void 0){m();return}if(c.value!=null&&u.value!=null){_=r(c.value,u.value,m);return}}function S(){s.value||(y.value=!1)}return Re([o,i,a,s],m,{flush:"sync"}),Re([c,u],w,{flush:"sync"}),Re(s,S,{flush:"sync"}),Js()&&oc(v),{x:Ar(f),y:Ar(d),strategy:Ar(p),placement:Ar(h),middlewareData:Ar(g),isPositioned:Ar(y),floatingStyles:b,update:m}}const VC={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[WC,KC]=Kn("PopperContent");var XC=ue({inheritAttrs:!1,__name:"PopperContent",props:Eb({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...VC}),emits:["placed"],setup(e,{emit:t}){const n=e,r=t,s=pg(),{forwardRef:o,currentElement:i}=ze(),a=Y(),l=Y(),{width:c,height:u}=m1(l),f=$(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),d=$(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=$(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=$(()=>({padding:d.value,boundary:p.value.filter(z1),altBoundary:p.value.length>0})),g=$(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),y=Xk(()=>[MC({mainAxis:n.sideOffset+u.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&Lf({...h.value,...g.value}),n.avoidCollisions&&DC({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?qC():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&Lf({...h.value,...g.value}),FC({...h.value,apply:({elements:U,rects:se,availableWidth:L,availableHeight:z})=>{const{width:I,height:H}=se.reference,A=U.floating.style;A.setProperty("--reka-popper-available-width",`${L}px`),A.setProperty("--reka-popper-available-height",`${z}px`),A.setProperty("--reka-popper-anchor-width",`${I}px`),A.setProperty("--reka-popper-anchor-height",`${H}px`)}}),l.value&&UC({element:l.value,padding:n.arrowPadding}),H1({arrowWidth:c.value,arrowHeight:u.value}),n.hideWhenDetached&&BC({strategy:"referenceHidden",...h.value})]),b=$(()=>n.reference??s.anchor.value),{floatingStyles:_,placement:m,isPositioned:v,middlewareData:w}=GC(b,a,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...U)=>NC(...U,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:y}),S=$(()=>Cl(m.value)[0]),P=$(()=>Cl(m.value)[1]);wp(()=>{v.value&&r("placed")});const T=$(()=>w.value.arrow?.centerOffset!==0),R=Y("");Mt(()=>{i.value&&(R.value=window.getComputedStyle(i.value).zIndex)});const N=$(()=>w.value.arrow?.x??0),X=$(()=>w.value.arrow?.y??0);return KC({placedSide:S,onArrowChange:U=>l.value=U,arrowX:N,arrowY:X,shouldHideArrow:T}),(U,se)=>(E(),re("div",{ref_key:"floatingRef",ref:a,"data-reka-popper-content-wrapper":"",style:Xt({...k(_),transform:k(v)?k(_).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:R.value,"--reka-popper-transform-origin":[k(w).transformOrigin?.x,k(w).transformOrigin?.y].join(" "),...k(w).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[Z(k(Ue),pe({ref:k(o)},U.$attrs,{"as-child":n.asChild,as:U.as,"data-side":S.value,"data-align":P.value,style:{animation:k(v)?void 0:"none"}}),{default:V(()=>[ne(U.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),JC=XC;const YC={top:"bottom",right:"left",bottom:"top",left:"right"};var QC=ue({inheritAttrs:!1,__name:"PopperArrow",props:{width:{type:Number,required:!1},height:{type:Number,required:!1},rounded:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const{forwardRef:t}=ze(),n=WC(),r=$(()=>YC[n.placedSide.value]);return(s,o)=>(E(),re("span",{ref:i=>{k(n).onArrowChange(i)},style:Xt({position:"absolute",left:k(n).arrowX?.value?`${k(n).arrowX?.value}px`:void 0,top:k(n).arrowY?.value?`${k(n).arrowY?.value}px`:void 0,[r.value]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[k(n).placedSide.value],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[k(n).placedSide.value],visibility:k(n).shouldHideArrow.value?"hidden":void 0})},[Z(q1,pe(s.$attrs,{ref:k(t),style:{display:"block"},as:s.as,"as-child":s.asChild,rounded:s.rounded,width:s.width,height:s.height}),{default:V(()=>[ne(s.$slots,"default")]),_:3},16,["as","as-child","rounded","width","height"])],4))}}),ZC=QC;const Hs=100,[eS,tS]=Kn("ProgressRoot"),di=e=>typeof e=="number";function nS(e,t){return lg(e)||di(e)&&!Number.isNaN(e)&&e<=t&&e>=0?e:(console.error(`Invalid prop \`value\` of value \`${e}\` supplied to \`ProgressRoot\`. The \`value\` prop must be:
26
- - a positive number
27
- - less than the value passed to \`max\` (or ${Hs} if no \`max\` prop is set)
28
- - \`null\` or \`undefined\` if the progress is indeterminate.
29
-
30
- Defaulting to \`null\`.`),null)}function rS(e){return di(e)&&!Number.isNaN(e)&&e>0?e:(console.error(`Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Hs}\`.`),Hs)}var sS=ue({__name:"ProgressRoot",props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:Hs},getValueLabel:{type:Function,required:!1,default:(e,t)=>di(e)?`${Math.round(e/t*Hs)}%`:void 0},getValueText:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue","update:max"],setup(e,{emit:t}){const n=e,r=t;ze();const s=li(n,"modelValue",r,{passive:n.modelValue===void 0}),o=li(n,"max",r,{passive:n.max===void 0});Re(()=>s.value,async a=>{const l=nS(a,n.max);l!==a&&(await kt(),s.value=l)},{immediate:!0}),Re(()=>n.max,a=>{const l=rS(n.max);l!==a&&(o.value=l)},{immediate:!0});const i=$(()=>lg(s.value)?"indeterminate":s.value===o.value?"complete":"loading");return tS({modelValue:s,max:o,progressState:i}),(a,l)=>(E(),j(k(Ue),{"as-child":a.asChild,as:a.as,"aria-valuemax":k(o),"aria-valuemin":0,"aria-valuenow":di(k(s))?k(s):void 0,"aria-valuetext":a.getValueText?.(k(s),k(o)),"aria-label":a.getValueLabel(k(s),k(o)),role:"progressbar","data-state":i.value,"data-value":k(s)??void 0,"data-max":k(o)},{default:V(()=>[ne(a.$slots,"default",{modelValue:k(s)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),oS=sS,iS=ue({__name:"ProgressIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=eS();return ze(),(r,s)=>(E(),j(k(Ue),pe(t,{"data-state":k(n).progressState.value,"data-value":k(n).modelValue?.value??void 0,"data-max":k(n).max.value}),{default:V(()=>[ne(r.$slots,"default")]),_:3},16,["data-state","data-value","data-max"]))}}),aS=iS,lS=ue({__name:"ToastAnnounceExclude",props:{altText:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){return(t,n)=>(E(),j(k(Ue),{as:t.as,"as-child":t.asChild,"data-reka-toast-announce-exclude":"","data-reka-toast-announce-alt":t.altText||void 0},{default:V(()=>[ne(t.$slots,"default")]),_:3},8,["as","as-child","data-reka-toast-announce-alt"]))}}),Cg=lS;const[ea,cS]=Kn("ToastProvider");var uS=ue({inheritAttrs:!1,__name:"ToastProvider",props:{label:{type:String,required:!1,default:"Notification"},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeDirection:{type:String,required:!1,default:"right"},swipeThreshold:{type:Number,required:!1,default:50}},setup(e){const t=e,{label:n,duration:r,disableSwipe:s,swipeDirection:o,swipeThreshold:i}=Un(t);Fc({isProvider:!0});const a=Y(),l=Y(0),c=Y(!1),u=Y(!1);if(t.label&&typeof t.label=="string"&&!t.label.trim()){const f="Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.";throw new Error(f)}return cS({label:n,duration:r,disableSwipe:s,swipeDirection:o,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange(f){a.value=f},onToastAdd(){l.value++},onToastRemove(){l.value--},isFocusedToastEscapeKeyDownRef:c,isClosePausedRef:u}),(f,d)=>ne(f.$slots,"default")}}),fS=uS,dS=ue({__name:"ToastAnnounce",setup(e){const t=ea(),n=n1(1e3),r=Y(!1);return cg(()=>{r.value=!0}),(s,o)=>k(n)||r.value?(E(),j(k(Bc),{key:0},{default:V(()=>[Be(_e(k(t).label.value)+" ",1),ne(s.$slots,"default")]),_:3})):he("v-if",!0)}}),pS=dS;const hS="toast.swipeStart",gS="toast.swipeMove",mS="toast.swipeCancel",yS="toast.swipeEnd",Pl="toast.viewportPause",Rl="toast.viewportResume";function wo(e,t,n){const r=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(s)}function Mf(e,t,n=0){const r=Math.abs(e.x),s=Math.abs(e.y),o=r>s;return t==="left"||t==="right"?o&&r>n:!o&&s>n}function bS(e){return e.nodeType===e.ELEMENT_NODE}function Sg(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),bS(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.rekaToastAnnounceExclude==="";if(!s)if(o){const i=r.dataset.rekaToastAnnounceAlt;i&&t.push(i)}else t.push(...Sg(r))}}),t}const[vS,wS]=Kn("ToastRoot");var _S=ue({inheritAttrs:!1,__name:"ToastRootImpl",props:{type:{type:String,required:!1},open:{type:Boolean,required:!1,default:!1},duration:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},emits:["close","escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s,currentElement:o}=ze(),{CollectionItem:i}=Fc(),a=ea(),l=Y(null),c=Y(null),u=$(()=>typeof n.duration=="number"?n.duration:a.duration.value),f=Y(0),d=Y(u.value),p=Y(0),h=Y(u.value),g=cg(()=>{const m=new Date().getTime()-f.value;h.value=Math.max(d.value-m,0)},{fpsLimit:60});function y(m){m<=0||m===Number.POSITIVE_INFINITY||rs&&(window.clearTimeout(p.value),f.value=new Date().getTime(),p.value=window.setTimeout(b,m))}function b(m){const v=m?.pointerType==="";o.value?.contains(Jr())&&v&&a.viewport.value?.focus(),v&&(a.isClosePausedRef.value=!1),r("close")}const _=$(()=>o.value?Sg(o.value):null);if(n.type&&!["foreground","background"].includes(n.type)){const m="Invalid prop `type` supplied to `Toast`. Expected `foreground | background`.";throw new Error(m)}return Mt(m=>{const v=a.viewport.value;if(v){const w=()=>{y(d.value),g.resume(),r("resume")},S=()=>{const P=new Date().getTime()-f.value;d.value=d.value-P,window.clearTimeout(p.value),g.pause(),r("pause")};return v.addEventListener(Pl,S),v.addEventListener(Rl,w),()=>{v.removeEventListener(Pl,S),v.removeEventListener(Rl,w)}}}),Re(()=>[n.open,u.value],()=>{d.value=u.value,n.open&&!a.isClosePausedRef.value&&y(u.value)},{immediate:!0}),Dc("Escape",m=>{r("escapeKeyDown",m),m.defaultPrevented||(a.isFocusedToastEscapeKeyDownRef.value=!0,b())}),Dt(()=>{a.onToastAdd()}),es(()=>{a.onToastRemove()}),wS({onClose:b}),(m,v)=>(E(),re(be,null,[_.value?(E(),j(pS,{key:0,role:"alert","aria-live":m.type==="foreground"?"assertive":"polite","aria-atomic":"true"},{default:V(()=>[Be(_e(_.value),1)]),_:1},8,["aria-live"])):he("v-if",!0),k(a).viewport.value?(E(),j(Cp,{key:1,to:k(a).viewport.value},[Z(k(i),null,{default:V(()=>[Z(k(Ue),pe({ref:k(s),role:"alert","aria-live":"off","aria-atomic":"true",tabindex:"0"},m.$attrs,{as:m.as,"as-child":m.asChild,"data-state":m.open?"open":"closed","data-swipe-direction":k(a).swipeDirection.value,style:k(a).disableSwipe.value?void 0:{userSelect:"none",touchAction:"none"},onPointerdown:v[0]||(v[0]=Rs(w=>{k(a).disableSwipe.value||(l.value={x:w.clientX,y:w.clientY})},["left"])),onPointermove:v[1]||(v[1]=w=>{if(k(a).disableSwipe.value||!l.value)return;const S=w.clientX-l.value.x,P=w.clientY-l.value.y,T=!!c.value,R=["left","right"].includes(k(a).swipeDirection.value),N=["left","up"].includes(k(a).swipeDirection.value)?Math.min:Math.max,X=R?N(0,S):0,U=R?0:N(0,P),se=w.pointerType==="touch"?10:2,L={x:X,y:U},z={originalEvent:w,delta:L};T?(c.value=L,k(wo)(k(gS),I=>r("swipeMove",I),z)):k(Mf)(L,k(a).swipeDirection.value,se)?(c.value=L,k(wo)(k(hS),I=>r("swipeStart",I),z),w.target.setPointerCapture(w.pointerId)):(Math.abs(S)>se||Math.abs(P)>se)&&(l.value=null)}),onPointerup:v[2]||(v[2]=w=>{if(k(a).disableSwipe.value)return;const S=c.value,P=w.target;if(P.hasPointerCapture(w.pointerId)&&P.releasePointerCapture(w.pointerId),c.value=null,l.value=null,S){const T=w.currentTarget,R={originalEvent:w,delta:S};k(Mf)(S,k(a).swipeDirection.value,k(a).swipeThreshold.value)?k(wo)(k(yS),N=>r("swipeEnd",N),R):k(wo)(k(mS),N=>r("swipeCancel",N),R),T?.addEventListener("click",N=>N.preventDefault(),{once:!0})}})}),{default:V(()=>[ne(m.$slots,"default",{remaining:h.value,duration:u.value})]),_:3},16,["as","as-child","data-state","data-swipe-direction","style"])]),_:3})],8,["to"])):he("v-if",!0)],64))}}),xS=_S,kS=ue({__name:"ToastClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=vS(),{forwardRef:r}=ze();return(s,o)=>(E(),j(Cg,{"as-child":""},{default:V(()=>[Z(k(Ue),pe(t,{ref:k(r),type:s.as==="button"?"button":void 0,onClick:k(n).onClose}),{default:V(()=>[ne(s.$slots,"default")]),_:3},16,["type","onClick"])]),_:3}))}}),Eg=kS,CS=ue({__name:"ToastAction",props:{altText:{type:String,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){if(!e.altText)throw new Error("Missing prop `altText` expected on `ToastAction`");const{forwardRef:n}=ze();return(r,s)=>r.altText?(E(),j(Cg,{key:0,"alt-text":r.altText,"as-child":""},{default:V(()=>[Z(Eg,{ref:k(n),as:r.as,"as-child":r.asChild},{default:V(()=>[ne(r.$slots,"default")]),_:3},8,["as","as-child"])]),_:3},8,["alt-text"])):he("v-if",!0)}}),Df=CS,SS=ue({__name:"ToastDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return ze(),(n,r)=>(E(),j(k(Ue),xt(zt(t)),{default:V(()=>[ne(n.$slots,"default")]),_:3},16))}}),ES=SS,AS=ue({__name:"ToastPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(E(),j(k(dg),xt(zt(t)),{default:V(()=>[ne(n.$slots,"default")]),_:3},16))}}),TS=AS,PS=ue({__name:"ToastRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!0},forceMount:{type:Boolean,required:!1},type:{type:String,required:!1,default:"foreground"},open:{type:Boolean,required:!1,default:void 0},duration:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"li"}},emits:["escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd","update:open"],setup(e,{emit:t}){const n=e,r=t,{forwardRef:s}=ze(),o=li(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});return(i,a)=>(E(),j(k(ug),{present:i.forceMount||k(o)},{default:V(()=>[Z(xS,pe({ref:k(s),open:k(o),type:i.type,as:i.as,"as-child":i.asChild,duration:i.duration},i.$attrs,{onClose:a[0]||(a[0]=l=>o.value=!1),onPause:a[1]||(a[1]=l=>r("pause")),onResume:a[2]||(a[2]=l=>r("resume")),onEscapeKeyDown:a[3]||(a[3]=l=>r("escapeKeyDown",l)),onSwipeStart:a[4]||(a[4]=l=>{r("swipeStart",l),l.defaultPrevented||l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:a[5]||(a[5]=l=>{if(r("swipeMove",l),!l.defaultPrevented){const{x:c,y:u}=l.detail.delta,f=l.currentTarget;f.setAttribute("data-swipe","move"),f.style.setProperty("--reka-toast-swipe-move-x",`${c}px`),f.style.setProperty("--reka-toast-swipe-move-y",`${u}px`)}}),onSwipeCancel:a[6]||(a[6]=l=>{if(r("swipeCancel",l),!l.defaultPrevented){const c=l.currentTarget;c.setAttribute("data-swipe","cancel"),c.style.removeProperty("--reka-toast-swipe-move-x"),c.style.removeProperty("--reka-toast-swipe-move-y"),c.style.removeProperty("--reka-toast-swipe-end-x"),c.style.removeProperty("--reka-toast-swipe-end-y")}}),onSwipeEnd:a[7]||(a[7]=l=>{if(r("swipeEnd",l),!l.defaultPrevented){const{x:c,y:u}=l.detail.delta,f=l.currentTarget;f.setAttribute("data-swipe","end"),f.style.removeProperty("--reka-toast-swipe-move-x"),f.style.removeProperty("--reka-toast-swipe-move-y"),f.style.setProperty("--reka-toast-swipe-end-x",`${c}px`),f.style.setProperty("--reka-toast-swipe-end-y",`${u}px`),o.value=!1}})}),{default:V(({remaining:l,duration:c})=>[ne(i.$slots,"default",{remaining:l,duration:c,open:k(o)})]),_:3},16,["open","type","as","as-child","duration"])]),_:3},8,["present"]))}}),RS=PS,IS=ue({__name:"ToastTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return ze(),(n,r)=>(E(),j(k(Ue),xt(zt(t)),{default:V(()=>[ne(n.$slots,"default")]),_:3},16))}}),OS=IS,$S=ue({__name:"FocusProxy",emits:["focusFromOutsideViewport"],setup(e,{emit:t}){const n=t,r=ea();return(s,o)=>(E(),j(k(Bc),{"aria-hidden":"true",tabindex:"0",style:{position:"fixed"},onFocus:o[0]||(o[0]=i=>{const a=i.relatedTarget;!k(r).viewport.value?.contains(a)&&n("focusFromOutsideViewport")})},{default:V(()=>[ne(s.$slots,"default")]),_:3}))}}),Ff=$S,LS=ue({inheritAttrs:!1,__name:"ToastViewport",props:{hotkey:{type:Array,required:!1,default:()=>["F8"]},label:{type:[String,Function],required:!1,default:"Notifications ({hotkey})"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"ol"}},setup(e){const t=e,{hotkey:n,label:r}=Un(t),{forwardRef:s,currentElement:o}=ze(),{CollectionSlot:i,getItems:a}=Fc(),l=ea(),c=$(()=>l.toastCount.value>0),u=Y(),f=Y(),d=$(()=>n.value.join("+").replace(/Key/g,"").replace(/Digit/g,""));Dc(n.value,()=>{o.value.focus()}),Dt(()=>{l.onViewportChange(o.value)}),Mt(h=>{const g=o.value;if(c.value&&g){const y=()=>{if(!l.isClosePausedRef.value){const w=new CustomEvent(Pl);g.dispatchEvent(w),l.isClosePausedRef.value=!0}},b=()=>{if(l.isClosePausedRef.value){const w=new CustomEvent(Rl);g.dispatchEvent(w),l.isClosePausedRef.value=!1}},_=w=>{!g.contains(w.relatedTarget)&&b()},m=()=>{g.contains(Jr())||b()},v=w=>{const S=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!S){const T=Jr(),R=w.shiftKey;if(w.target===g&&R){u.value?.focus();return}const U=p({tabbingDirection:R?"backwards":"forwards"}),se=U.findIndex(L=>L===T);Aa(U.slice(se+1))?w.preventDefault():R?u.value?.focus():f.value?.focus()}};g.addEventListener("focusin",y),g.addEventListener("focusout",_),g.addEventListener("pointermove",y),g.addEventListener("pointerleave",m),g.addEventListener("keydown",v),window.addEventListener("blur",y),window.addEventListener("focus",b),h(()=>{g.removeEventListener("focusin",y),g.removeEventListener("focusout",_),g.removeEventListener("pointermove",y),g.removeEventListener("pointerleave",m),g.removeEventListener("keydown",v),window.removeEventListener("blur",y),window.removeEventListener("focus",b)})}});function p({tabbingDirection:h}){const y=a().map(b=>b.ref).map(b=>{const _=[b,...T1(b)];return h==="forwards"?_:_.reverse()});return(h==="forwards"?y.reverse():y).flat()}return(h,g)=>(E(),j(k(A1),{role:"region","aria-label":typeof k(r)=="string"?k(r).replace("{hotkey}",d.value):k(r)(d.value),tabindex:"-1",style:Xt({pointerEvents:c.value?void 0:"none"})},{default:V(()=>[c.value?(E(),j(Ff,{key:0,ref:y=>{u.value=k(yr)(y)},onFocusFromOutsideViewport:g[0]||(g[0]=()=>{const y=p({tabbingDirection:"forwards"});k(Aa)(y)})},null,512)):he("v-if",!0),Z(k(i),null,{default:V(()=>[Z(k(Ue),pe({ref:k(s),tabindex:"-1",as:h.as,"as-child":h.asChild},h.$attrs),{default:V(()=>[ne(h.$slots,"default")]),_:3},16,["as","as-child"])]),_:3}),c.value?(E(),j(Ff,{key:1,ref:y=>{f.value=k(yr)(y)},onFocusFromOutsideViewport:g[1]||(g[1]=()=>{const y=p({tabbingDirection:"backwards"});k(Aa)(y)})},null,512)):he("v-if",!0)]),_:3},8,["aria-label","style"]))}}),NS=LS,MS=ue({__name:"TooltipArrow",props:{width:{type:Number,required:!1,default:10},height:{type:Number,required:!1,default:5},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"svg"}},setup(e){const t=e;return ze(),(n,r)=>(E(),j(k(ZC),xt(zt(t)),{default:V(()=>[ne(n.$slots,"default")]),_:3},16))}}),DS=MS;const[Wc,FS]=Kn("TooltipProvider");var BS=ue({inheritAttrs:!1,__name:"TooltipProvider",props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:s,disableClosingTrigger:o,ignoreNonKeyboardFocus:i,disabled:a}=Un(t);ze();const l=Y(!0),c=Y(!1),{start:u,stop:f}=Mc(()=>{l.value=!0},r,{immediate:!1});return FS({isOpenDelayed:l,delayDuration:n,onOpen(){f(),l.value=!1},onClose(){u()},isPointerInTransitRef:c,disableHoverableContent:s,disableClosingTrigger:o,disabled:a,ignoreNonKeyboardFocus:i}),(d,p)=>ne(d.$slots,"default")}}),jS=BS;const Ag="tooltip.open",[ta,qS]=Kn("TooltipRoot");var zS=ue({__name:"TooltipRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},delayDuration:{type:Number,required:!1,default:void 0},disableHoverableContent:{type:Boolean,required:!1,default:void 0},disableClosingTrigger:{type:Boolean,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:void 0},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:void 0}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;ze();const s=Wc(),o=$(()=>n.disableHoverableContent??s.disableHoverableContent.value),i=$(()=>n.disableClosingTrigger??s.disableClosingTrigger.value),a=$(()=>n.disabled??s.disabled.value),l=$(()=>n.delayDuration??s.delayDuration.value),c=$(()=>n.ignoreNonKeyboardFocus??s.ignoreNonKeyboardFocus.value),u=li(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0});Re(u,m=>{s.onClose&&(m?(s.onOpen(),document.dispatchEvent(new CustomEvent(Ag))):s.onClose())});const f=Y(!1),d=Y(),p=$(()=>u.value?f.value?"delayed-open":"instant-open":"closed"),{start:h,stop:g}=Mc(()=>{f.value=!0,u.value=!0},l,{immediate:!1});function y(){g(),f.value=!1,u.value=!0}function b(){g(),u.value=!1}function _(){h()}return qS({contentId:"",open:u,stateAttribute:p,trigger:d,onTriggerChange(m){d.value=m},onTriggerEnter(){s.isOpenDelayed.value?_():y()},onTriggerLeave(){o.value?b():g()},onOpen:y,onClose:b,disableHoverableContent:o,disableClosingTrigger:i,disabled:a,ignoreNonKeyboardFocus:c}),(m,v)=>(E(),j(k(N1),null,{default:V(()=>[ne(m.$slots,"default",{open:k(u)})]),_:3}))}}),HS=zS,US=ue({__name:"TooltipContentImpl",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1,default:0},align:{type:null,required:!1,default:"center"},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1,default:!0},collisionBoundary:{type:null,required:!1,default:()=>[]},collisionPadding:{type:[Number,Object],required:!1,default:0},arrowPadding:{type:Number,required:!1,default:0},sticky:{type:String,required:!1,default:"partial"},hideWhenDetached:{type:Boolean,required:!1,default:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,s=ta(),{forwardRef:o}=ze(),i=ts(),a=$(()=>i.default?.({})),l=$(()=>{if(n.ariaLabel)return n.ariaLabel;let u="";function f(d){typeof d.children=="string"&&d.type!==Ct?u+=d.children:Array.isArray(d.children)&&d.children.forEach(p=>f(p))}return a.value?.forEach(d=>f(d)),u}),c=$(()=>{const{ariaLabel:u,...f}=n;return f});return Dt(()=>{kl(window,"scroll",u=>{u.target?.contains(s.trigger.value)&&s.onClose()}),kl(window,Ag,s.onClose)}),(u,f)=>(E(),j(k(S1),{"as-child":"","disable-outside-pointer-events":!1,onEscapeKeyDown:f[0]||(f[0]=d=>r("escapeKeyDown",d)),onPointerDownOutside:f[1]||(f[1]=d=>{k(s).disableClosingTrigger.value&&k(s).trigger.value?.contains(d.target)&&d.preventDefault(),r("pointerDownOutside",d)}),onFocusOutside:f[2]||(f[2]=Rs(()=>{},["prevent"])),onDismiss:f[3]||(f[3]=d=>k(s).onClose())},{default:V(()=>[Z(k(JC),pe({ref:k(o),"data-state":k(s).stateAttribute.value},{...u.$attrs,...c.value},{style:{"--reka-tooltip-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-tooltip-content-available-width":"var(--reka-popper-available-width)","--reka-tooltip-content-available-height":"var(--reka-popper-available-height)","--reka-tooltip-trigger-width":"var(--reka-popper-anchor-width)","--reka-tooltip-trigger-height":"var(--reka-popper-anchor-height)"}}),{default:V(()=>[ne(u.$slots,"default"),Z(k(Bc),{id:k(s).contentId,role:"tooltip"},{default:V(()=>[Be(_e(l.value),1)]),_:1},8,["id"])]),_:3},16,["data-state"])]),_:3}))}}),Tg=US,GS=ue({__name:"TooltipContentHoverable",props:{ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},setup(e){const n=_r(e),{forwardRef:r,currentElement:s}=ze(),{trigger:o,onClose:i}=ta(),a=Wc(),{isPointerInTransit:l,onPointerExit:c}=l1(o,s);return a.isPointerInTransitRef=l,c(()=>{i()}),(u,f)=>(E(),j(Tg,pe({ref:k(r)},k(n)),{default:V(()=>[ne(u.$slots,"default")]),_:3},16))}}),VS=GS,WS=ue({__name:"TooltipContent",props:{forceMount:{type:Boolean,required:!1},ariaLabel:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},side:{type:null,required:!1,default:"top"},sideOffset:{type:Number,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1}},emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){const n=e,r=t,s=ta(),o=Xi(n,r),{forwardRef:i}=ze();return(a,l)=>(E(),j(k(ug),{present:a.forceMount||k(s).open.value},{default:V(()=>[(E(),j(_n(k(s).disableHoverableContent.value?Tg:VS),pe({ref:k(i)},k(o)),{default:V(()=>[ne(a.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),KS=WS,XS=ue({__name:"TooltipPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(n,r)=>(E(),j(k(dg),xt(zt(t)),{default:V(()=>[ne(n.$slots,"default")]),_:3},16))}}),JS=XS,YS=ue({__name:"TooltipTrigger",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=ta(),r=Wc();n.contentId||=g1(void 0,"reka-tooltip-content");const{forwardRef:s,currentElement:o}=ze(),i=Y(!1),a=Y(!1),l=$(()=>n.disabled.value?{}:{click:g,focus:p,pointermove:f,pointerleave:d,pointerdown:u,blur:h});Dt(()=>{n.onTriggerChange(o.value)});function c(){setTimeout(()=>{i.value=!1},1)}function u(){n.open&&!n.disableClosingTrigger.value&&n.onClose(),i.value=!0,document.addEventListener("pointerup",c,{once:!0})}function f(y){y.pointerType!=="touch"&&!a.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),a.value=!0)}function d(){n.onTriggerLeave(),a.value=!1}function p(y){i.value||n.ignoreNonKeyboardFocus.value&&!y.target.matches?.(":focus-visible")||n.onOpen()}function h(){n.onClose()}function g(){n.disableClosingTrigger.value||n.onClose()}return(y,b)=>(E(),j(k(D1),{"as-child":"",reference:y.reference},{default:V(()=>[Z(k(Ue),pe({ref:k(s),"aria-describedby":k(n).open.value?k(n).contentId:void 0,"data-state":k(n).stateAttribute.value,as:y.as,"as-child":t.asChild,"data-grace-area-trigger":""},kb(l.value)),{default:V(()=>[ne(y.$slots,"default")]),_:3},16,["aria-describedby","data-state","as","as-child"])]),_:3},8,["reference"]))}}),QS=YS;function Pg(e){return Js()?(oc(e),!0):!1}function Kc(e){let t=0,n,r;const s=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...o)=>(t+=1,r||(r=Jd(!0),n=r.run(()=>e(...o))),Pg(s),n)}function ZS(e){if(!Ne(e))return gt(e);const t=new Proxy({},{get(n,r,s){return k(Reflect.get(e.value,r,s))},set(n,r,s){return Ne(e.value[r])&&!Ne(s)?e.value[r].value=s:e.value[r]=s,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return gt(t)}function Rg(e){return ZS($(e))}function eE(e,...t){const n=t.flat(),r=n[0];return Rg(()=>Object.fromEntries(typeof r=="function"?Object.entries(Un(e)).filter(([s,o])=>!r(Pe(o),s)):Object.entries(Un(e)).filter(s=>!n.includes(s[0]))))}const tE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nE=e=>typeof e<"u",rE=Object.prototype.toString,sE=e=>rE.call(e)==="[object Object]",oE=()=>{};function Ig(...e){if(e.length!==1)return $t(...e);const t=e[0];return typeof t=="function"?Hn(uc(()=>({get:t,set:oE}))):Y(t)}function kr(e,...t){const n=t.flat(),r=n[0];return Rg(()=>Object.fromEntries(typeof r=="function"?Object.entries(Un(e)).filter(([s,o])=>r(Pe(o),s)):n.map(s=>[s,Ig(e,s)])))}function iE(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const Og=e=>e();function aE(e=Og,t={}){const{initialState:n="active"}=t,r=Ig(n==="active");function s(){r.value=!1}function o(){r.value=!0}return{isActive:Hn(r),pause:s,resume:o,eventFilter:(...a)=>{r.value&&e(...a)}}}function Pa(e){return Array.isArray(e)?e:[e]}function lE(e){return ut()}function cE(e,t,n={}){const{eventFilter:r=Og,...s}=n;return Re(e,iE(r,t),s)}function uE(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:c}=aE(r,{initialState:s});return{stop:cE(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:c}}function fE(e,t=!0,n){lE()?Dt(e,n):t?e():kt(e)}function dE(e,t,n){return Re(e,t,{...n,immediate:!0})}const pi=tE?window:void 0;function pE(e){var t;const n=Pe(e);return(t=n?.$el)!=null?t:n}function Bf(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,c,u)=>(a.addEventListener(l,c,u),()=>a.removeEventListener(l,c,u)),s=$(()=>{const a=Pa(Pe(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=dE(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(c=>pE(c)))!=null?l:[pi].filter(c=>c!=null),Pa(Pe(s.value?e[1]:e[0])),Pa(k(s.value?e[2]:e[1])),Pe(s.value?e[3]:e[2])]},([a,l,c,u])=>{if(n(),!a?.length||!l?.length||!c?.length)return;const f=sE(u)?{...u}:u;t.push(...a.flatMap(d=>l.flatMap(p=>c.map(h=>r(d,p,h,f)))))},{flush:"post"}),i=()=>{o(),n()};return Pg(n),i}function hE(e){return JSON.parse(JSON.stringify(e))}const _o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xo="__vueuse_ssr_handlers__",gE=mE();function mE(){return xo in _o||(_o[xo]=_o[xo]||{}),_o[xo]}function yE(e,t){return gE[e]||t}function bE(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const vE={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},jf="vueuse-storage";function wE(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=pi,eventFilter:d,onError:p=L=>{console.error(L)},initOnMounted:h}=r,g=(u?cn:Y)(t),y=$(()=>Pe(e));if(!n)try{n=yE("getDefaultStorage",()=>{var L;return(L=pi)==null?void 0:L.localStorage})()}catch(L){p(L)}if(!n)return g;const b=Pe(t),_=bE(b),m=(s=r.serializer)!=null?s:vE[_],{pause:v,resume:w}=uE(g,L=>N(L),{flush:o,deep:i,eventFilter:d});Re(y,()=>U(),{flush:o});let S=!1;const P=L=>{h&&!S||U(L)},T=L=>{h&&!S||se(L)};f&&a&&(n instanceof Storage?Bf(f,"storage",P,{passive:!0}):Bf(f,jf,T)),h?fE(()=>{S=!0,U()}):U();function R(L,z){if(f){const I={key:y.value,oldValue:L,newValue:z,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",I):new CustomEvent(jf,{detail:I}))}}function N(L){try{const z=n.getItem(y.value);if(L==null)R(z,null),n.removeItem(y.value);else{const I=m.write(L);z!==I&&(n.setItem(y.value,I),R(z,I))}}catch(z){p(z)}}function X(L){const z=L?L.newValue:n.getItem(y.value);if(z==null)return l&&b!=null&&n.setItem(y.value,m.write(b)),b;if(!L&&c){const I=m.read(z);return typeof c=="function"?c(I,b):_==="object"&&!Array.isArray(I)?{...b,...I}:I}else return typeof z!="string"?z:m.read(z)}function U(L){if(!(L&&L.storageArea!==n)){if(L&&L.key==null){g.value=b;return}if(!(L&&L.key!==y.value)){v();try{const z=m.write(g.value);(L===void 0||L?.newValue!==z)&&(g.value=X(L))}catch(z){p(z)}finally{L?kt(w):w()}}}}function se(L){U(L.detail)}return g}function _E(e,t,n={}){const{window:r=pi}=n;return wE(e,t,r?.localStorage,n)}function xE(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:f,shouldEmit:d}=r,p=ut(),h=p?.emit||((s=p?.$emit)==null?void 0:s.bind(p))||((i=(o=p?.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(p?.proxy));let g=c;g=g||`update:${t.toString()}`;const y=m=>a?typeof a=="function"?a(m):hE(m):m,b=()=>nE(e[t])?y(e[t]):f,_=m=>{d?d(m)&&h(g,m):h(g,m)};if(l){const m=b(),v=Y(m);let w=!1;return Re(()=>e[t],S=>{w||(w=!0,v.value=y(S),kt(()=>w=!1))}),Re(v,S=>{!w&&(S!==e[t]||u)&&_(S)},{deep:u}),v}else return $({get(){return b()},set(m){_(m)}})}const Tn={__name:"UIcon",props:{name:{type:String,required:!0},mode:{type:String,required:!1},size:{type:[String,Number],required:!1},customize:{type:Function,required:!1}},setup(e){const n=_r(kr(e,"name","mode","size","customize"));return(r,s)=>{const o=ig;return E(),j(o,xt(zt(k(n))),null,16)}}},kE=Symbol("nuxt-ui.button-group");function $g(e){const t=wt(kE,void 0);return{orientation:$(()=>t?.value.orientation),size:$(()=>e?.size??t?.value.size)}}function Lg(e){const t=tt(),n=$(()=>Pe(e)),r=$(()=>n.value.icon&&n.value.leading||n.value.icon&&!n.value.trailing||n.value.loading&&!n.value.trailing||!!n.value.leadingIcon),s=$(()=>n.value.icon&&n.value.trailing||n.value.loading&&n.value.trailing||!!n.value.trailingIcon),o=$(()=>n.value.loading?n.value.loadingIcon||t.ui.icons.loading:n.value.leadingIcon||n.value.icon),i=$(()=>n.value.loading&&!r.value?n.value.loadingIcon||t.ui.icons.loading:n.value.trailingIcon||n.value.icon);return{isLeading:r,isTrailing:s,leadingIconName:o,trailingIconName:i}}var CE=/\s+/g,SE=e=>typeof e!="string"||!e?e:e.replace(CE," ").trim(),hi=(...e)=>{const t=[],n=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let o=0,i=r.length;o<i;o++)n(r[o]);return}const s=typeof r;if(s==="string"||s==="number"||s==="bigint"){if(s==="number"&&r!==r)return;t.push(String(r))}else if(s==="object"){const o=Object.keys(r);for(let i=0,a=o.length;i<a;i++){const l=o[i];r[l]&&t.push(l)}}};for(let r=0,s=e.length;r<s;r++){const o=e[r];o!=null&&n(o)}return t.length>0?SE(t.join(" ")):void 0},qf=e=>e===!1?"false":e===!0?"true":e===0?"0":e,yt=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},EE=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let s=0;s<n.length;s++){const o=n[s];if(!r.includes(o)||e[o]!==t[o])return!1}return!0},AE=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];n in e?e[n]=hi(e[n],r):e[n]=r}return e},Ng=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];Array.isArray(r)?Ng(r,t):r&&t.push(r)}},Mg=(...e)=>{const t=[];Ng(e,t);const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},Il=(e,t)=>{const n={};for(const r in e){const s=e[r];if(r in t){const o=t[r];Array.isArray(s)||Array.isArray(o)?n[r]=Mg(o,s):typeof s=="object"&&typeof o=="object"&&s&&o?n[r]=Il(s,o):n[r]=o+" "+s}else n[r]=s}for(const r in t)r in e||(n[r]=t[r]);return n},TE={twMerge:!0,twMergeConfig:{}};function PE(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){e=null,t={},n=!1}}}var vn=PE(),RE=e=>{const t=(r,s)=>{const{extend:o=null,slots:i={},variants:a={},compoundVariants:l=[],compoundSlots:c=[],defaultVariants:u={}}=r,f={...TE,...s},d=o?.base?hi(o.base,r?.base):r?.base,p=o?.variants&&!yt(o.variants)?Il(a,o.variants):a,h=o?.defaultVariants&&!yt(o.defaultVariants)?{...o.defaultVariants,...u}:u;!yt(f.twMergeConfig)&&!EE(f.twMergeConfig,vn.cachedTwMergeConfig)&&(vn.didTwMergeConfigChange=!0,vn.cachedTwMergeConfig=f.twMergeConfig);const g=yt(o?.slots),y=yt(i)?{}:{base:hi(r?.base,g&&o?.base),...i},b=g?y:AE({...o?.slots},yt(y)?{base:r?.base}:y),_=yt(o?.compoundVariants)?l:Mg(o?.compoundVariants,l),m=w=>{if(yt(p)&&yt(i)&&g)return e(d,w?.class,w?.className)(f);if(_&&!Array.isArray(_))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof _}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const S=(L,z=p,I=null,H=null)=>{const A=z[L];if(!A||yt(A))return null;const oe=H?.[L]??w?.[L];if(oe===null)return null;const je=qf(oe);if(typeof je=="object")return null;const We=h?.[L],Te=je??qf(We);return A[Te||"false"]},P=()=>{if(!p)return null;const L=Object.keys(p),z=[];for(let I=0;I<L.length;I++){const H=S(L[I],p);H&&z.push(H)}return z},T=(L,z)=>{if(!p||typeof p!="object")return null;const I=[];for(const H in p){const A=S(H,p,L,z),oe=L==="base"&&typeof A=="string"?A:A&&A[L];oe&&I.push(oe)}return I},R={};for(const L in w){const z=w[L];z!==void 0&&(R[L]=z)}const N=(L,z)=>{const I=typeof w?.[L]=="object"?{[L]:w[L]?.initial}:{};return{...h,...R,...I,...z}},X=(L=[],z)=>{const I=[],H=L.length;for(let A=0;A<H;A++){const{class:oe,className:je,...We}=L[A];let Te=!0;const Ee=N(null,z);for(const qe in We){const nt=We[qe],Et=Ee[qe];if(Array.isArray(nt)){if(!nt.includes(Et)){Te=!1;break}}else{if((nt==null||nt===!1)&&(Et==null||Et===!1))continue;if(Et!==nt){Te=!1;break}}}Te&&(oe&&I.push(oe),je&&I.push(je))}return I},U=L=>{const z=X(_,L);if(!Array.isArray(z))return z;const I={},H=e;for(let A=0;A<z.length;A++){const oe=z[A];if(typeof oe=="string")I.base=H(I.base,oe)(f);else if(typeof oe=="object")for(const je in oe)I[je]=H(I[je],oe[je])(f)}return I},se=L=>{if(c.length<1)return null;const z={},I=N(null,L);for(let H=0;H<c.length;H++){const{slots:A=[],class:oe,className:je,...We}=c[H];if(!yt(We)){let Te=!0;for(const Ee in We){const qe=I[Ee],nt=We[Ee];if(qe===void 0||(Array.isArray(nt)?!nt.includes(qe):nt!==qe)){Te=!1;break}}if(!Te)continue}for(let Te=0;Te<A.length;Te++){const Ee=A[Te];z[Ee]||(z[Ee]=[]),z[Ee].push([oe,je])}}return z};if(!yt(i)||!g){const L={};if(typeof b=="object"&&!yt(b)){const z=e;for(const I in b)L[I]=H=>{const A=U(H),oe=se(H);return z(b[I],T(I,H),A?A[I]:void 0,oe?oe[I]:void 0,H?.class,H?.className)(f)}}return L}return e(d,P(),X(_),w?.class,w?.className)(f)},v=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return m.variantKeys=v(),m.extend=o,m.base=d,m.slots=b,m.variants=p,m.defaultVariants=h,m.compoundSlots=c,m.compoundVariants=_,m};return{tv:t,createTV:r=>(s,o)=>t(s,o?Il(r,o):r)}};const IE=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},OE=(e,t)=>({classGroupId:e,validator:t}),Dg=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),gi="-",zf=[],$E="arbitrary..",LE=e=>{const t=ME(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return NE(i);const a=i.split(gi),l=a[0]===""&&a.length>1?1:0;return Fg(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=r[i],c=n[i];return l?c?IE(c,l):l:c||zf}return n[i]||zf}}},Fg=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],o=n.nextPart.get(s);if(o){const c=Fg(e,t+1,o);if(c)return c}const i=n.validators;if(i===null)return;const a=t===0?e.join(gi):e.slice(t).join(gi),l=i.length;for(let c=0;c<l;c++){const u=i[c];if(u.validator(a))return u.classGroupId}},NE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?$E+r:void 0})(),ME=e=>{const{theme:t,classGroups:n}=e;return DE(n,t)},DE=(e,t)=>{const n=Dg();for(const r in e){const s=e[r];Xc(s,n,r,t)}return n},Xc=(e,t,n,r)=>{const s=e.length;for(let o=0;o<s;o++){const i=e[o];FE(i,t,n,r)}},FE=(e,t,n,r)=>{if(typeof e=="string"){BE(e,t,n);return}if(typeof e=="function"){jE(e,t,n,r);return}qE(e,t,n,r)},BE=(e,t,n)=>{const r=e===""?t:Bg(t,e);r.classGroupId=n},jE=(e,t,n,r)=>{if(zE(e)){Xc(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(OE(n,e))},qE=(e,t,n,r)=>{const s=Object.entries(e),o=s.length;for(let i=0;i<o;i++){const[a,l]=s[i];Xc(l,Bg(t,a),n,r)}},Bg=(e,t)=>{let n=e;const r=t.split(gi),s=r.length;for(let o=0;o<s;o++){const i=r[o];let a=n.nextPart.get(i);a||(a=Dg(),n.nextPart.set(i,a)),n=a}return n},zE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,HE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(o,i)=>{n[o]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let i=n[o];if(i!==void 0)return i;if((i=r[o])!==void 0)return s(o,i),i},set(o,i){o in n?n[o]=i:s(o,i)}}},Ol="!",Hf=":",UE=[],Uf=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),GE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const o=[];let i=0,a=0,l=0,c;const u=s.length;for(let g=0;g<u;g++){const y=s[g];if(i===0&&a===0){if(y===Hf){o.push(s.slice(l,g)),l=g+1;continue}if(y==="/"){c=g;continue}}y==="["?i++:y==="]"?i--:y==="("?a++:y===")"&&a--}const f=o.length===0?s:s.slice(l);let d=f,p=!1;f.endsWith(Ol)?(d=f.slice(0,-1),p=!0):f.startsWith(Ol)&&(d=f.slice(1),p=!0);const h=c&&c>l?c-l:void 0;return Uf(o,p,d,h)};if(t){const s=t+Hf,o=r;r=i=>i.startsWith(s)?o(i.slice(s.length)):Uf(UE,!1,i,void 0,!0)}if(n){const s=r;r=o=>n({className:o,parseClassName:s})}return r},VE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let o=0;o<n.length;o++){const i=n[o],a=i[0]==="[",l=t.has(i);a||l?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(i)):s.push(i)}return s.length>0&&(s.sort(),r.push(...s)),r}},WE=e=>({cache:HE(e.cacheSize),parseClassName:GE(e),sortModifiers:VE(e),...LE(e)}),KE=/\s+/,XE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:o}=t,i=[],a=e.trim().split(KE);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:f,modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let y=!!g,b=r(y?h.substring(0,g):h);if(!b){if(!y){l=u+(l.length>0?" "+l:l);continue}if(b=r(h),!b){l=u+(l.length>0?" "+l:l);continue}y=!1}const _=d.length===0?"":d.length===1?d[0]:o(d).join(":"),m=p?_+Ol:_,v=m+b;if(i.indexOf(v)>-1)continue;i.push(v);const w=s(b,y);for(let S=0;S<w.length;++S){const P=w[S];i.push(m+P)}l=u+(l.length>0?" "+l:l)}return l},JE=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=jg(n))&&(s&&(s+=" "),s+=r);return s},jg=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=jg(e[r]))&&(n&&(n+=" "),n+=t);return n},$l=(e,...t)=>{let n,r,s,o;const i=l=>{const c=t.reduce((u,f)=>f(u),e());return n=WE(c),r=n.cache.get,s=n.cache.set,o=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=XE(l,n);return s(l,u),u};return o=i,(...l)=>o(JE(...l))},YE=[],Ke=e=>{const t=n=>n[e]||YE;return t.isThemeGetter=!0,t},qg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QE=/^\d+\/\d+$/,ZE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pr=e=>QE.test(e),me=e=>!!e&&!Number.isNaN(Number(e)),$n=e=>!!e&&Number.isInteger(Number(e)),Ra=e=>e.endsWith("%")&&me(e.slice(0,-1)),gn=e=>ZE.test(e),sA=()=>!0,oA=e=>eA.test(e)&&!tA.test(e),Hg=()=>!1,iA=e=>nA.test(e),aA=e=>rA.test(e),lA=e=>!ee(e)&&!te(e),cA=e=>os(e,Vg,Hg),ee=e=>qg.test(e),Zn=e=>os(e,Wg,oA),Ia=e=>os(e,hA,me),Gf=e=>os(e,Ug,Hg),uA=e=>os(e,Gg,aA),ko=e=>os(e,Kg,iA),te=e=>zg.test(e),ys=e=>is(e,Wg),fA=e=>is(e,gA),Vf=e=>is(e,Ug),dA=e=>is(e,Vg),pA=e=>is(e,Gg),Co=e=>is(e,Kg,!0),os=(e,t,n)=>{const r=qg.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},is=(e,t,n=!1)=>{const r=zg.exec(e);return r?r[1]?t(r[1]):n:!1},Ug=e=>e==="position"||e==="percentage",Gg=e=>e==="image"||e==="url",Vg=e=>e==="length"||e==="size"||e==="bg-size",Wg=e=>e==="length",hA=e=>e==="number",gA=e=>e==="family-name",Kg=e=>e==="shadow",Ll=()=>{const e=Ke("color"),t=Ke("font"),n=Ke("text"),r=Ke("font-weight"),s=Ke("tracking"),o=Ke("leading"),i=Ke("breakpoint"),a=Ke("container"),l=Ke("spacing"),c=Ke("radius"),u=Ke("shadow"),f=Ke("inset-shadow"),d=Ke("text-shadow"),p=Ke("drop-shadow"),h=Ke("blur"),g=Ke("perspective"),y=Ke("aspect"),b=Ke("ease"),_=Ke("animate"),m=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...v(),te,ee],S=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],T=()=>[te,ee,l],R=()=>[Pr,"full","auto",...T()],N=()=>[$n,"none","subgrid",te,ee],X=()=>["auto",{span:["full",$n,te,ee]},$n,te,ee],U=()=>[$n,"auto",te,ee],se=()=>["auto","min","max","fr",te,ee],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...T()],H=()=>[Pr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],A=()=>[e,te,ee],oe=()=>[...v(),Vf,Gf,{position:[te,ee]}],je=()=>["no-repeat",{repeat:["","x","y","space","round"]}],We=()=>["auto","cover","contain",dA,cA,{size:[te,ee]}],Te=()=>[Ra,ys,Zn],Ee=()=>["","none","full",c,te,ee],qe=()=>["",me,ys,Zn],nt=()=>["solid","dashed","dotted","double"],Et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Fe=()=>[me,Ra,Vf,Gf],Sr=()=>["","none",h,te,ee],Xn=()=>["none",me,te,ee],Ut=()=>["none",me,te,ee],Jn=()=>[me,te,ee],On=()=>[Pr,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gn],breakpoint:[gn],color:[sA],container:[gn],"drop-shadow":[gn],ease:["in","out","in-out"],font:[lA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gn],shadow:[gn],spacing:["px",me],text:[gn],"text-shadow":[gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pr,ee,te,y]}],container:["container"],columns:[{columns:[me,ee,te,a]}],"break-after":[{"break-after":m()}],"break-before":[{"break-before":m()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[$n,"auto",te,ee]}],basis:[{basis:[Pr,"full","auto",a,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[me,Pr,"auto","initial","none",ee]}],grow:[{grow:["",me,te,ee]}],shrink:[{shrink:["",me,te,ee]}],order:[{order:[$n,"first","last","none",te,ee]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[a,"screen",...H()]}],"min-w":[{"min-w":[a,"screen","none",...H()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",n,ys,Zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,te,Ia]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ra,ee]}],"font-family":[{font:[fA,ee,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,te,ee]}],"line-clamp":[{"line-clamp":[me,"none",te,Ia]}],leading:[{leading:[o,...T()]}],"list-image":[{"list-image":["none",te,ee]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",te,ee]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...nt(),"wavy"]}],"text-decoration-thickness":[{decoration:[me,"from-font","auto",te,Zn]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[me,"auto",te,ee]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te,ee]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te,ee]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:je()}],"bg-size":[{bg:We()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$n,te,ee],radial:["",te,ee],conic:[$n,te,ee]},pA,uA]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:Ee()}],"rounded-s":[{"rounded-s":Ee()}],"rounded-e":[{"rounded-e":Ee()}],"rounded-t":[{"rounded-t":Ee()}],"rounded-r":[{"rounded-r":Ee()}],"rounded-b":[{"rounded-b":Ee()}],"rounded-l":[{"rounded-l":Ee()}],"rounded-ss":[{"rounded-ss":Ee()}],"rounded-se":[{"rounded-se":Ee()}],"rounded-ee":[{"rounded-ee":Ee()}],"rounded-es":[{"rounded-es":Ee()}],"rounded-tl":[{"rounded-tl":Ee()}],"rounded-tr":[{"rounded-tr":Ee()}],"rounded-br":[{"rounded-br":Ee()}],"rounded-bl":[{"rounded-bl":Ee()}],"border-w":[{border:qe()}],"border-w-x":[{"border-x":qe()}],"border-w-y":[{"border-y":qe()}],"border-w-s":[{"border-s":qe()}],"border-w-e":[{"border-e":qe()}],"border-w-t":[{"border-t":qe()}],"border-w-r":[{"border-r":qe()}],"border-w-b":[{"border-b":qe()}],"border-w-l":[{"border-l":qe()}],"divide-x":[{"divide-x":qe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":qe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...nt(),"hidden","none"]}],"divide-style":[{divide:[...nt(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...nt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[me,te,ee]}],"outline-w":[{outline:["",me,ys,Zn]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,Co,ko]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",f,Co,ko]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:qe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[me,Zn]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":qe()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",d,Co,ko]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[me,te,ee]}],"mix-blend":[{"mix-blend":[...Et(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Et()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[me]}],"mask-image-linear-from-pos":[{"mask-linear-from":Fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Fe()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":Fe()}],"mask-image-t-to-pos":[{"mask-t-to":Fe()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":Fe()}],"mask-image-r-to-pos":[{"mask-r-to":Fe()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":Fe()}],"mask-image-b-to-pos":[{"mask-b-to":Fe()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":Fe()}],"mask-image-l-to-pos":[{"mask-l-to":Fe()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":Fe()}],"mask-image-x-to-pos":[{"mask-x-to":Fe()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":Fe()}],"mask-image-y-to-pos":[{"mask-y-to":Fe()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[te,ee]}],"mask-image-radial-from-pos":[{"mask-radial-from":Fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Fe()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[me]}],"mask-image-conic-from-pos":[{"mask-conic-from":Fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Fe()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:je()}],"mask-size":[{mask:We()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",te,ee]}],filter:[{filter:["","none",te,ee]}],blur:[{blur:Sr()}],brightness:[{brightness:[me,te,ee]}],contrast:[{contrast:[me,te,ee]}],"drop-shadow":[{"drop-shadow":["","none",p,Co,ko]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",me,te,ee]}],"hue-rotate":[{"hue-rotate":[me,te,ee]}],invert:[{invert:["",me,te,ee]}],saturate:[{saturate:[me,te,ee]}],sepia:[{sepia:["",me,te,ee]}],"backdrop-filter":[{"backdrop-filter":["","none",te,ee]}],"backdrop-blur":[{"backdrop-blur":Sr()}],"backdrop-brightness":[{"backdrop-brightness":[me,te,ee]}],"backdrop-contrast":[{"backdrop-contrast":[me,te,ee]}],"backdrop-grayscale":[{"backdrop-grayscale":["",me,te,ee]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[me,te,ee]}],"backdrop-invert":[{"backdrop-invert":["",me,te,ee]}],"backdrop-opacity":[{"backdrop-opacity":[me,te,ee]}],"backdrop-saturate":[{"backdrop-saturate":[me,te,ee]}],"backdrop-sepia":[{"backdrop-sepia":["",me,te,ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",te,ee]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[me,"initial",te,ee]}],ease:[{ease:["linear","initial",b,te,ee]}],delay:[{delay:[me,te,ee]}],animate:[{animate:["none",_,te,ee]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,te,ee]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:Xn()}],"rotate-x":[{"rotate-x":Xn()}],"rotate-y":[{"rotate-y":Xn()}],"rotate-z":[{"rotate-z":Xn()}],scale:[{scale:Ut()}],"scale-x":[{"scale-x":Ut()}],"scale-y":[{"scale-y":Ut()}],"scale-z":[{"scale-z":Ut()}],"scale-3d":["scale-3d"],skew:[{skew:Jn()}],"skew-x":[{"skew-x":Jn()}],"skew-y":[{"skew-y":Jn()}],transform:[{transform:[te,ee,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:On()}],"translate-x":[{"translate-x":On()}],"translate-y":[{"translate-y":On()}],"translate-z":[{"translate-z":On()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te,ee]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te,ee]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[me,ys,Zn,Ia]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mA=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:s={},override:o={}})=>(_s(e,"cacheSize",t),_s(e,"prefix",n),_s(e,"experimentalParseClassName",r),So(e.theme,o.theme),So(e.classGroups,o.classGroups),So(e.conflictingClassGroups,o.conflictingClassGroups),So(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),_s(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Eo(e.theme,s.theme),Eo(e.classGroups,s.classGroups),Eo(e.conflictingClassGroups,s.conflictingClassGroups),Eo(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Xg(e,s,"orderSensitiveModifiers"),e),_s=(e,t,n)=>{n!==void 0&&(e[t]=n)},So=(e,t)=>{if(t)for(const n in t)_s(e,n,t[n])},Eo=(e,t)=>{if(t)for(const n in t)Xg(e,t,n)},Xg=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},yA=(e,...t)=>typeof e=="function"?$l(Ll,e,...t):$l(()=>mA(Ll(),e),...t),bA=$l(Ll);var vA=e=>yt(e)?bA:yA({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),wA=(e,t)=>{const n=hi(e);return!n||!(t?.twMerge??!0)?n:((!vn.cachedTwMerge||vn.didTwMergeConfigChange)&&(vn.didTwMergeConfigChange=!1,vn.cachedTwMerge=vA(vn.cachedTwMergeConfig)),vn.cachedTwMerge(n)||void 0)},_A=(...e)=>t=>wA(e,t),{createTV:xA}=RE(_A);const kA=jh,Ve=xA(kA.ui?.tv),CA="img",Wf=Symbol("nuxt-ui.avatar-group");function Jg(e){const t=wt(Wf,void 0),n=$(()=>e.size??t?.value.size);return dr(Wf,$(()=>({size:n.value}))),{size:n}}const SA={slots:{root:"relative inline-flex items-center justify-center shrink-0",base:"rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap"},variants:{color:{primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",info:"bg-info",warning:"bg-warning",error:"bg-error",neutral:"bg-inverted"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px]","2xs":"h-[5px] min-w-[5px] text-[5px]",xs:"h-[6px] min-w-[6px] text-[6px]",sm:"h-[7px] min-w-[7px] text-[7px]",md:"h-[8px] min-w-[8px] text-[8px]",lg:"h-[9px] min-w-[9px] text-[9px]",xl:"h-[10px] min-w-[10px] text-[10px]","2xl":"h-[11px] min-w-[11px] text-[11px]","3xl":"h-[12px] min-w-[12px] text-[12px]"},position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},inset:{false:""},standalone:{false:"absolute"}},compoundVariants:[{position:"top-right",inset:!1,class:"-translate-y-1/2 translate-x-1/2 transform"},{position:"bottom-right",inset:!1,class:"translate-y-1/2 translate-x-1/2 transform"},{position:"top-left",inset:!1,class:"-translate-y-1/2 -translate-x-1/2 transform"},{position:"bottom-left",inset:!1,class:"translate-y-1/2 -translate-x-1/2 transform"}],defaultVariants:{size:"md",color:"primary",position:"top-right"}},EA=Object.assign({inheritAttrs:!1},{__name:"UChip",props:Ab({as:{type:null,required:!1},text:{type:[String,Number],required:!1},color:{type:null,required:!1},size:{type:null,required:!1},position:{type:null,required:!1},inset:{type:Boolean,required:!1,default:!1},standalone:{type:Boolean,required:!1,default:!1},class:{type:null,required:!1},ui:{type:null,required:!1}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:["update:show"],setup(e){const t=e,n=Mb(e,"show",{type:Boolean,default:!0}),{size:r}=Jg(t),s=tt(),o=$(()=>Ve({extend:Ve(SA),...s.ui?.chip||{}})({color:t.color,size:r.value,position:t.position,inset:t.inset,standalone:t.standalone}));return(i,a)=>(E(),j(k(Ue),{as:e.as,class:ye(o.value.root({class:[t.ui?.root,t.class]}))},{default:V(()=>[Z(k(js),xt(zt(i.$attrs)),{default:V(()=>[ne(i.$slots,"default")]),_:3},16),n.value?(E(),re("span",{key:0,class:ye(o.value.base({class:t.ui?.base}))},[ne(i.$slots,"content",{},()=>[Be(_e(e.text),1)])],2)):he("",!0)]),_:3},8,["as","class"]))}}),AA={slots:{root:"inline-flex items-center justify-center shrink-0 select-none rounded-full align-middle bg-elevated",image:"h-full w-full rounded-[inherit] object-cover",fallback:"font-medium leading-none text-muted truncate",icon:"text-muted shrink-0"},variants:{size:{"3xs":{root:"size-4 text-[8px]"},"2xs":{root:"size-5 text-[10px]"},xs:{root:"size-6 text-xs"},sm:{root:"size-7 text-sm"},md:{root:"size-8 text-base"},lg:{root:"size-9 text-lg"},xl:{root:"size-10 text-xl"},"2xl":{root:"size-11 text-[22px]"},"3xl":{root:"size-12 text-2xl"}}},defaultVariants:{size:"md"}},Jc=Object.assign({inheritAttrs:!1},{__name:"UAvatar",props:{as:{type:null,required:!1,default:"span"},src:{type:String,required:!1},alt:{type:String,required:!1},icon:{type:String,required:!1},text:{type:String,required:!1},size:{type:null,required:!1},chip:{type:[Boolean,Object],required:!1},class:{type:null,required:!1},style:{type:null,required:!1},ui:{type:null,required:!1}},setup(e){const t=e,n=$(()=>t.text||(t.alt||"").split(" ").map(c=>c.charAt(0)).join("").substring(0,2)),r=tt(),{size:s}=Jg(t),o=$(()=>Ve({extend:Ve(AA),...r.ui?.avatar||{}})({size:s.value})),i=$(()=>({"3xs":16,"2xs":20,xs:24,sm:28,md:32,lg:36,xl:40,"2xl":44,"3xl":48})[t.size||"md"]),a=Y(!1);Re(()=>t.src,()=>{a.value&&(a.value=!1)});function l(){a.value=!0}return(c,u)=>(E(),j(_n(t.chip?EA:k(Ue)),pe({as:e.as},t.chip?typeof t.chip=="object"?{inset:!0,...t.chip}:{inset:!0}:{},{class:o.value.root({class:[t.ui?.root,t.class]}),style:t.style}),{default:V(()=>[e.src&&!a.value?(E(),j(_n(k(CA)),pe({key:0,role:"img",src:e.src,alt:e.alt,width:i.value,height:i.value},c.$attrs,{class:o.value.image({class:t.ui?.image}),onError:l}),null,16,["src","alt","width","height","class"])):(E(),j(k(js),xt(pe({key:1},c.$attrs)),{default:V(()=>[ne(c.$slots,"default",{},()=>[e.icon?(E(),j(Tn,{key:0,name:e.icon,class:ye(o.value.icon({class:t.ui?.icon}))},null,8,["name","class"])):(E(),re("span",{key:1,class:ye(o.value.fallback({class:t.ui?.fallback}))},_e(n.value||" "),3))])]),_:3},16))]),_:3},16,["as","class","style"]))}}),TA={slots:{base:"font-medium inline-flex items-center",label:"truncate",leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailingIcon:"shrink-0"},variants:{buttonGroup:{horizontal:"not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",vertical:"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"},color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{solid:"",outline:"",soft:"",subtle:""},size:{xs:{base:"text-[8px]/3 px-1 py-0.5 gap-1 rounded-sm",leadingIcon:"size-3",leadingAvatarSize:"3xs",trailingIcon:"size-3"},sm:{base:"text-[10px]/3 px-1.5 py-1 gap-1 rounded-sm",leadingIcon:"size-3",leadingAvatarSize:"3xs",trailingIcon:"size-3"},md:{base:"text-xs px-2 py-1 gap-1 rounded-md",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},lg:{base:"text-sm px-2 py-1 gap-1.5 rounded-md",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},xl:{base:"text-base px-2.5 py-1 gap-1.5 rounded-md",leadingIcon:"size-6",leadingAvatarSize:"2xs",trailingIcon:"size-6"}},square:{true:""}},compoundVariants:[{color:"primary",variant:"solid",class:"bg-primary text-inverted"},{color:"secondary",variant:"solid",class:"bg-secondary text-inverted"},{color:"success",variant:"solid",class:"bg-success text-inverted"},{color:"info",variant:"solid",class:"bg-info text-inverted"},{color:"warning",variant:"solid",class:"bg-warning text-inverted"},{color:"error",variant:"solid",class:"bg-error text-inverted"},{color:"primary",variant:"outline",class:"text-primary ring ring-inset ring-primary/50"},{color:"secondary",variant:"outline",class:"text-secondary ring ring-inset ring-secondary/50"},{color:"success",variant:"outline",class:"text-success ring ring-inset ring-success/50"},{color:"info",variant:"outline",class:"text-info ring ring-inset ring-info/50"},{color:"warning",variant:"outline",class:"text-warning ring ring-inset ring-warning/50"},{color:"error",variant:"outline",class:"text-error ring ring-inset ring-error/50"},{color:"primary",variant:"soft",class:"bg-primary/10 text-primary"},{color:"secondary",variant:"soft",class:"bg-secondary/10 text-secondary"},{color:"success",variant:"soft",class:"bg-success/10 text-success"},{color:"info",variant:"soft",class:"bg-info/10 text-info"},{color:"warning",variant:"soft",class:"bg-warning/10 text-warning"},{color:"error",variant:"soft",class:"bg-error/10 text-error"},{color:"primary",variant:"subtle",class:"bg-primary/10 text-primary ring ring-inset ring-primary/25"},{color:"secondary",variant:"subtle",class:"bg-secondary/10 text-secondary ring ring-inset ring-secondary/25"},{color:"success",variant:"subtle",class:"bg-success/10 text-success ring ring-inset ring-success/25"},{color:"info",variant:"subtle",class:"bg-info/10 text-info ring ring-inset ring-info/25"},{color:"warning",variant:"subtle",class:"bg-warning/10 text-warning ring ring-inset ring-warning/25"},{color:"error",variant:"subtle",class:"bg-error/10 text-error ring ring-inset ring-error/25"},{color:"neutral",variant:"solid",class:"text-inverted bg-inverted"},{color:"neutral",variant:"outline",class:"ring ring-inset ring-accented text-default bg-default"},{color:"neutral",variant:"soft",class:"text-default bg-elevated"},{color:"neutral",variant:"subtle",class:"ring ring-inset ring-accented text-default bg-elevated"},{size:"xs",square:!0,class:"p-0.5"},{size:"sm",square:!0,class:"p-1"},{size:"md",square:!0,class:"p-1"},{size:"lg",square:!0,class:"p-1"},{size:"xl",square:!0,class:"p-1"}],defaultVariants:{color:"primary",variant:"solid",size:"md"}},PA={__name:"UBadge",props:{as:{type:null,required:!1,default:"span"},label:{type:[String,Number],required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},icon:{type:String,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:String,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:String,required:!1}},setup(e){const t=e,n=ts(),r=tt(),{orientation:s,size:o}=$g(t),{isLeading:i,isTrailing:a,leadingIconName:l,trailingIconName:c}=Lg(t),u=$(()=>Ve({extend:Ve(TA),...r.ui?.badge||{}})({color:t.color,variant:t.variant,size:o.value||t.size,square:t.square||!n.default&&!t.label,buttonGroup:s.value}));return(f,d)=>(E(),j(k(Ue),{as:e.as,class:ye(u.value.base({class:[t.ui?.base,t.class]}))},{default:V(()=>[ne(f.$slots,"leading",{},()=>[k(i)&&k(l)?(E(),j(Tn,{key:0,name:k(l),class:ye(u.value.leadingIcon({class:t.ui?.leadingIcon}))},null,8,["name","class"])):e.avatar?(E(),j(Jc,pe({key:1,size:t.ui?.leadingAvatarSize||u.value.leadingAvatarSize()},e.avatar,{class:u.value.leadingAvatar({class:t.ui?.leadingAvatar})}),null,16,["size","class"])):he("",!0)]),ne(f.$slots,"default",{},()=>[e.label!==void 0&&e.label!==null?(E(),re("span",{key:0,class:ye(u.value.label({class:t.ui?.label}))},_e(e.label),3)):he("",!0)]),ne(f.$slots,"trailing",{},()=>[k(a)&&k(c)?(E(),j(Tn,{key:0,name:k(c),class:ye(u.value.trailingIcon({class:t.ui?.trailingIcon}))},null,8,["name","class"])):he("",!0)])]),_:3},8,["as","class"]))}},Yg=Symbol("nuxt-ui.portal-target");function Qg(e){const t=wt(Yg,void 0),n=$(()=>e.value===!0?t?.value:e.value),r=$(()=>typeof n.value=="boolean"?!n.value:!1),s=$(()=>typeof n.value=="boolean"?"body":n.value);return $(()=>({to:s.value,disabled:r.value}))}const Ao={meta:"",ctrl:"",alt:"",win:"⊞",command:"⌘",shift:"⇧",control:"⌃",option:"⌥",enter:"↵",delete:"⌦",backspace:"⌫",escape:"Esc",tab:"⇥",capslock:"⇪",arrowup:"↑",arrowright:"→",arrowdown:"↓",arrowleft:"←",pageup:"⇞",pagedown:"⇟",home:"↖",end:"↘"},RA=()=>{const e=$(()=>navigator&&navigator.userAgent&&navigator.userAgent.match(/Macintosh;/)),t=gt({meta:" ",alt:" ",ctrl:" "});Dt(()=>{t.meta=e.value?Ao.command:"Ctrl",t.ctrl=e.value?Ao.control:"Ctrl",t.alt=e.value?Ao.option:"Alt"});function n(r){if(r)return["meta","alt","ctrl"].includes(r)?t[r]:Ao[r]||r.toUpperCase()}return{macOS:e,getKbdKey:n}},IA=Kc(RA),OA={base:"inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans",variants:{color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{solid:"",outline:"",soft:"",subtle:""},size:{sm:"h-4 min-w-[16px] text-[10px]",md:"h-5 min-w-[20px] text-[11px]",lg:"h-6 min-w-[24px] text-[12px]"}},compoundVariants:[{color:"primary",variant:"solid",class:"text-inverted bg-primary"},{color:"secondary",variant:"solid",class:"text-inverted bg-secondary"},{color:"success",variant:"solid",class:"text-inverted bg-success"},{color:"info",variant:"solid",class:"text-inverted bg-info"},{color:"warning",variant:"solid",class:"text-inverted bg-warning"},{color:"error",variant:"solid",class:"text-inverted bg-error"},{color:"primary",variant:"outline",class:"ring ring-inset ring-primary/50 text-primary"},{color:"secondary",variant:"outline",class:"ring ring-inset ring-secondary/50 text-secondary"},{color:"success",variant:"outline",class:"ring ring-inset ring-success/50 text-success"},{color:"info",variant:"outline",class:"ring ring-inset ring-info/50 text-info"},{color:"warning",variant:"outline",class:"ring ring-inset ring-warning/50 text-warning"},{color:"error",variant:"outline",class:"ring ring-inset ring-error/50 text-error"},{color:"primary",variant:"soft",class:"text-primary bg-primary/10"},{color:"secondary",variant:"soft",class:"text-secondary bg-secondary/10"},{color:"success",variant:"soft",class:"text-success bg-success/10"},{color:"info",variant:"soft",class:"text-info bg-info/10"},{color:"warning",variant:"soft",class:"text-warning bg-warning/10"},{color:"error",variant:"soft",class:"text-error bg-error/10"},{color:"primary",variant:"subtle",class:"text-primary ring ring-inset ring-primary/25 bg-primary/10"},{color:"secondary",variant:"subtle",class:"text-secondary ring ring-inset ring-secondary/25 bg-secondary/10"},{color:"success",variant:"subtle",class:"text-success ring ring-inset ring-success/25 bg-success/10"},{color:"info",variant:"subtle",class:"text-info ring ring-inset ring-info/25 bg-info/10"},{color:"warning",variant:"subtle",class:"text-warning ring ring-inset ring-warning/25 bg-warning/10"},{color:"error",variant:"subtle",class:"text-error ring ring-inset ring-error/25 bg-error/10"},{color:"neutral",variant:"solid",class:"text-inverted bg-inverted"},{color:"neutral",variant:"outline",class:"ring ring-inset ring-accented text-default bg-default"},{color:"neutral",variant:"soft",class:"text-default bg-elevated"},{color:"neutral",variant:"subtle",class:"ring ring-inset ring-accented text-default bg-elevated"}],defaultVariants:{variant:"outline",color:"neutral",size:"md"}},$A={__name:"UKbd",props:{as:{type:null,required:!1,default:"kbd"},value:{type:null,required:!1},color:{type:null,required:!1},variant:{type:null,required:!1},size:{type:null,required:!1},class:{type:null,required:!1}},setup(e){const t=e,{getKbdKey:n}=IA(),r=tt(),s=$(()=>Ve({extend:Ve(OA),...r.ui?.kbd||{}}));return(o,i)=>(E(),j(k(Ue),{as:e.as,class:ye(s.value({class:t.class,color:t.color,variant:t.variant,size:t.size}))},{default:V(()=>[ne(o.$slots,"default",{},()=>[Be(_e(k(n)(e.value)),1)])]),_:3},8,["as","class"]))}},LA={slots:{content:"flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",arrow:"fill-default",text:"truncate",kbds:"hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5",kbdsSize:"sm"}},NA={__name:"UTooltip",props:{text:{type:String,required:!1},kbds:{type:Array,required:!1},content:{type:Object,required:!1},arrow:{type:[Boolean,Object],required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},reference:{type:null,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},delayDuration:{type:Number,required:!1},disableHoverableContent:{type:Boolean,required:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1}},emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,s=ts(),o=tt(),i=Xi(kr(n,"defaultOpen","open","delayDuration","disableHoverableContent","disableClosingTrigger","ignoreNonKeyboardFocus"),r),a=Qg($t(()=>n.portal)),l=$t(()=>Zs(n.content,{side:"bottom",sideOffset:8,collisionPadding:8})),c=$t(()=>n.arrow),u=$(()=>Ve({extend:Ve(LA),...o.ui?.tooltip||{}})({side:l.value.side}));return(f,d)=>(E(),j(k(HS),pe(k(i),{disabled:!(e.text||e.kbds?.length||s.content)||n.disabled}),{default:V(({open:p})=>[s.default||e.reference?(E(),j(k(QS),pe({key:0},f.$attrs,{"as-child":"",reference:e.reference,class:n.class}),{default:V(()=>[ne(f.$slots,"default",{open:p})]),_:2},1040,["reference","class"])):he("",!0),Z(k(JS),xt(zt(k(a))),{default:V(()=>[Z(k(KS),pe(l.value,{class:u.value.content({class:[!s.default&&n.class,n.ui?.content]})}),{default:V(()=>[ne(f.$slots,"content",{},()=>[e.text?(E(),re("span",{key:0,class:ye(u.value.text({class:n.ui?.text}))},_e(e.text),3)):he("",!0),e.kbds?.length?(E(),re("span",{key:1,class:ye(u.value.kbds({class:n.ui?.kbds}))},[(E(!0),re(be,null,Ot(e.kbds,(h,g)=>(E(),j($A,pe({key:g,size:n.ui?.kbdsSize||u.value.kbdsSize()},{ref_for:!0},typeof h=="string"?{value:h}:h),null,16,["size"]))),128))],2)):he("",!0)]),e.arrow?(E(),j(k(DS),pe({key:0},c.value,{class:u.value.arrow({class:n.ui?.arrow})}),null,16,["class"])):he("",!0)]),_:3},16,["class"])]),_:3},16)]),_:3},16,["disabled"]))}},MA=Symbol("nuxt-ui.form-loading");function DA(e,t){const n=Nl(e),r=Nl(t);return Zg(n,r)}function Zg(e,t){const n=[],r=new Set([...Object.keys(e.props||{}),...Object.keys(t.props||{})]);if(e.props&&t.props)for(const s of r){const o=e.props[s],i=t.props[s];o&&i?n.push(...Zg(e.props?.[s],t.props?.[s])):(o||i)&&n.push(new Kf((i||o).key,o?"removed":"added",i,o))}return r.size===0&&e.hash!==t.hash&&n.push(new Kf((t||e).key,"changed",t,e)),n}function Nl(e,t=""){if(e&&typeof e!="object")return new Xf(t,e,gl(e));const n={},r=[];for(const s in e)n[s]=Nl(e[s],t?`${t}.${s}`:s),r.push(n[s].hash);return new Xf(t,e,`{${r.join(":")}}`,n)}class Kf{constructor(t,n,r,s){this.key=t,this.type=n,this.newValue=r,this.oldValue=s}toString(){return this.toJSON()}toJSON(){switch(this.type){case"added":return`Added \`${this.key}\``;case"removed":return`Removed \`${this.key}\``;case"changed":return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||"-"}\` to \`${this.newValue.toString()}\``}}}class Xf{constructor(t,n,r,s){this.key=t,this.value=n,this.hash=r,this.props=s}toString(){return this.props?`{${Object.keys(this.props).join(",")}}`:JSON.stringify(this.value)}toJSON(){const t=this.key||".";return this.props?`${t}({${Object.keys(this.props).join(",")}})`:`${t}(${this.value})`}}function em(e,t){const n={...e};for(const r of t)delete n[r];return n}function FA(e,t,n){typeof t=="string"&&(t=t.split(".").map(s=>{const o=Number(s);return Number.isNaN(o)?s:o}));let r=e;for(const s of t){if(r==null)return n;r=r[s]}return r!==void 0?r:n}function mi(e,t){return!e&&!t?"":[...Array.isArray(e)?e:[e],t].filter(Boolean)}function BA(e){const t=Object.keys(e),n=t.filter(o=>o.startsWith("aria-")),r=t.filter(o=>o.startsWith("data-")),s=["active","activeClass","ariaCurrentValue","as","disabled","exact","exactActiveClass","exactHash","exactQuery","external","href","download","inactiveClass","noPrefetch","noRel","prefetch","prefetchedClass","rel","replace","target","to","type","title","onClick",...n,...r];return kr(e,...s)}function jA(e,t){const n=DA(e,t).reduce((o,i)=>(i.type==="added"&&o.add(i.key),o),new Set),r=Object.fromEntries(Object.entries(e).filter(([o])=>!n.has(o))),s=Object.fromEntries(Object.entries(t).filter(([o])=>!n.has(o)));return Fh(r,s)}const tm={__name:"ULinkBase",props:{as:{type:String,required:!1,default:"button"},type:{type:String,required:!1,default:"button"},disabled:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},href:{type:String,required:!1},navigate:{type:Function,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},active:{type:Boolean,required:!1},isExternal:{type:Boolean,required:!1}},setup(e){const t=e;function n(r){if(t.disabled){r.stopPropagation(),r.preventDefault();return}if(t.onClick)for(const s of Array.isArray(t.onClick)?t.onClick:[t.onClick])s(r);t.href&&t.navigate&&!t.isExternal&&t.navigate(r)}return(r,s)=>(E(),j(k(Ue),pe(e.href?{as:"a",href:e.disabled?void 0:e.href,"aria-disabled":e.disabled?"true":void 0,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0}:e.as==="button"?{as:e.as,type:e.type,disabled:e.disabled}:{as:e.as},{rel:e.rel,target:e.target,onClick:n}),{default:V(()=>[ne(r.$slots,"default")]),_:3},16,["rel","target"]))}},qA={base:"focus-visible:outline-primary",variants:{active:{true:"text-primary",false:"text-muted"},disabled:{true:"cursor-not-allowed opacity-75"}},compoundVariants:[{active:!1,disabled:!1,class:["hover:text-default","transition-colors"]}]},zA=Object.assign({inheritAttrs:!1},{__name:"ULink",props:{as:{type:null,required:!1,default:"button"},type:{type:null,required:!1,default:"button"},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1,default:void 0},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},custom:{type:Boolean,required:!1},raw:{type:Boolean,required:!1},class:{type:null,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1,default:"page"},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){const t=e,n=Hi(),r=tt(),s=_r(eE(t,"as","type","disabled","active","exact","exactQuery","exactHash","activeClass","inactiveClass","to","href","raw","custom","class")),o=$(()=>Ve({extend:Ve(qA),...Zs({variants:{active:{true:mi(r.ui?.link?.variants?.active?.true,t.activeClass),false:mi(r.ui?.link?.variants?.active?.false,t.inactiveClass)}}},r.ui?.link||{})})),i=$(()=>t.to??t.href);function a({route:c,isActive:u,isExactActive:f}){if(t.active!==void 0)return t.active;if(t.exactQuery==="partial"){if(!jA(c.query,n.query))return!1}else if(t.exactQuery===!0&&!Fh(c.query,n.query))return!1;return t.exactHash&&c.hash!==n.hash?!1:!!(t.exact&&f||!t.exact&&u)}function l({route:c,isActive:u,isExactActive:f}){const d=a({route:c,isActive:u,isExactActive:f});return t.raw?[t.class,d?t.activeClass:t.inactiveClass]:o.value({class:t.class,active:d,disabled:t.disabled})}return(c,u)=>{const f=p_;return E(),j(f,pe(k(s),{to:i.value,custom:""}),{default:V(({href:d,navigate:p,route:h,rel:g,target:y,isExternal:b,isActive:_,isExactActive:m})=>[e.custom?ne(c.$slots,"default",xt(pe({key:0},{...c.$attrs,...e.exact&&m?{"aria-current":t.ariaCurrentValue}:{},as:e.as,type:e.type,disabled:e.disabled,href:d,navigate:p,rel:g,target:y,isExternal:b,active:a({route:h,isActive:_,isExactActive:m})}))):(E(),j(tm,pe({key:1},{...c.$attrs,...e.exact&&m?{"aria-current":t.ariaCurrentValue}:{},as:e.as,type:e.type,disabled:e.disabled,href:d,navigate:p,rel:g,target:y,isExternal:b},{class:l({route:h,isActive:_,isExactActive:m})}),{default:V(()=>[ne(c.$slots,"default",{active:a({route:h,isActive:_,isExactActive:m})})]),_:2},1040,["class"]))]),_:3},16,["to"])}}}),HA={slots:{base:["rounded-md font-medium inline-flex items-center disabled:cursor-not-allowed aria-disabled:cursor-not-allowed disabled:opacity-75 aria-disabled:opacity-75","transition-colors"],label:"truncate",leadingIcon:"shrink-0",leadingAvatar:"shrink-0",leadingAvatarSize:"",trailingIcon:"shrink-0"},variants:{buttonGroup:{horizontal:"not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",vertical:"not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"},color:{primary:"",secondary:"",success:"",info:"",warning:"",error:"",neutral:""},variant:{solid:"",outline:"",soft:"",subtle:"",ghost:"",link:""},size:{xs:{base:"px-2 py-1 text-xs gap-1",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},sm:{base:"px-2.5 py-1.5 text-xs gap-1.5",leadingIcon:"size-4",leadingAvatarSize:"3xs",trailingIcon:"size-4"},md:{base:"px-2.5 py-1.5 text-sm gap-1.5",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},lg:{base:"px-3 py-2 text-sm gap-2",leadingIcon:"size-5",leadingAvatarSize:"2xs",trailingIcon:"size-5"},xl:{base:"px-3 py-2 text-base gap-2",leadingIcon:"size-6",leadingAvatarSize:"xs",trailingIcon:"size-6"}},block:{true:{base:"w-full justify-center",trailingIcon:"ms-auto"}},square:{true:""},leading:{true:""},trailing:{true:""},loading:{true:""},active:{true:{base:""},false:{base:""}}},compoundVariants:[{color:"primary",variant:"solid",class:"text-inverted bg-primary hover:bg-primary/75 active:bg-primary/75 disabled:bg-primary aria-disabled:bg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"},{color:"secondary",variant:"solid",class:"text-inverted bg-secondary hover:bg-secondary/75 active:bg-secondary/75 disabled:bg-secondary aria-disabled:bg-secondary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary"},{color:"success",variant:"solid",class:"text-inverted bg-success hover:bg-success/75 active:bg-success/75 disabled:bg-success aria-disabled:bg-success focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success"},{color:"info",variant:"solid",class:"text-inverted bg-info hover:bg-info/75 active:bg-info/75 disabled:bg-info aria-disabled:bg-info focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info"},{color:"warning",variant:"solid",class:"text-inverted bg-warning hover:bg-warning/75 active:bg-warning/75 disabled:bg-warning aria-disabled:bg-warning focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning"},{color:"error",variant:"solid",class:"text-inverted bg-error hover:bg-error/75 active:bg-error/75 disabled:bg-error aria-disabled:bg-error focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error"},{color:"primary",variant:"outline",class:"ring ring-inset ring-primary/50 text-primary hover:bg-primary/10 active:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-primary"},{color:"secondary",variant:"outline",class:"ring ring-inset ring-secondary/50 text-secondary hover:bg-secondary/10 active:bg-secondary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-secondary"},{color:"success",variant:"outline",class:"ring ring-inset ring-success/50 text-success hover:bg-success/10 active:bg-success/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-success"},{color:"info",variant:"outline",class:"ring ring-inset ring-info/50 text-info hover:bg-info/10 active:bg-info/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-info"},{color:"warning",variant:"outline",class:"ring ring-inset ring-warning/50 text-warning hover:bg-warning/10 active:bg-warning/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-warning"},{color:"error",variant:"outline",class:"ring ring-inset ring-error/50 text-error hover:bg-error/10 active:bg-error/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-error"},{color:"primary",variant:"soft",class:"text-primary bg-primary/10 hover:bg-primary/15 active:bg-primary/15 focus:outline-none focus-visible:bg-primary/15 disabled:bg-primary/10 aria-disabled:bg-primary/10"},{color:"secondary",variant:"soft",class:"text-secondary bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 focus:outline-none focus-visible:bg-secondary/15 disabled:bg-secondary/10 aria-disabled:bg-secondary/10"},{color:"success",variant:"soft",class:"text-success bg-success/10 hover:bg-success/15 active:bg-success/15 focus:outline-none focus-visible:bg-success/15 disabled:bg-success/10 aria-disabled:bg-success/10"},{color:"info",variant:"soft",class:"text-info bg-info/10 hover:bg-info/15 active:bg-info/15 focus:outline-none focus-visible:bg-info/15 disabled:bg-info/10 aria-disabled:bg-info/10"},{color:"warning",variant:"soft",class:"text-warning bg-warning/10 hover:bg-warning/15 active:bg-warning/15 focus:outline-none focus-visible:bg-warning/15 disabled:bg-warning/10 aria-disabled:bg-warning/10"},{color:"error",variant:"soft",class:"text-error bg-error/10 hover:bg-error/15 active:bg-error/15 focus:outline-none focus-visible:bg-error/15 disabled:bg-error/10 aria-disabled:bg-error/10"},{color:"primary",variant:"subtle",class:"text-primary ring ring-inset ring-primary/25 bg-primary/10 hover:bg-primary/15 active:bg-primary/15 disabled:bg-primary/10 aria-disabled:bg-primary/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary"},{color:"secondary",variant:"subtle",class:"text-secondary ring ring-inset ring-secondary/25 bg-secondary/10 hover:bg-secondary/15 active:bg-secondary/15 disabled:bg-secondary/10 aria-disabled:bg-secondary/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-secondary"},{color:"success",variant:"subtle",class:"text-success ring ring-inset ring-success/25 bg-success/10 hover:bg-success/15 active:bg-success/15 disabled:bg-success/10 aria-disabled:bg-success/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-success"},{color:"info",variant:"subtle",class:"text-info ring ring-inset ring-info/25 bg-info/10 hover:bg-info/15 active:bg-info/15 disabled:bg-info/10 aria-disabled:bg-info/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-info"},{color:"warning",variant:"subtle",class:"text-warning ring ring-inset ring-warning/25 bg-warning/10 hover:bg-warning/15 active:bg-warning/15 disabled:bg-warning/10 aria-disabled:bg-warning/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-warning"},{color:"error",variant:"subtle",class:"text-error ring ring-inset ring-error/25 bg-error/10 hover:bg-error/15 active:bg-error/15 disabled:bg-error/10 aria-disabled:bg-error/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-error"},{color:"primary",variant:"ghost",class:"text-primary hover:bg-primary/10 active:bg-primary/10 focus:outline-none focus-visible:bg-primary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"secondary",variant:"ghost",class:"text-secondary hover:bg-secondary/10 active:bg-secondary/10 focus:outline-none focus-visible:bg-secondary/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"success",variant:"ghost",class:"text-success hover:bg-success/10 active:bg-success/10 focus:outline-none focus-visible:bg-success/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"info",variant:"ghost",class:"text-info hover:bg-info/10 active:bg-info/10 focus:outline-none focus-visible:bg-info/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"warning",variant:"ghost",class:"text-warning hover:bg-warning/10 active:bg-warning/10 focus:outline-none focus-visible:bg-warning/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"error",variant:"ghost",class:"text-error hover:bg-error/10 active:bg-error/10 focus:outline-none focus-visible:bg-error/10 disabled:bg-transparent aria-disabled:bg-transparent dark:disabled:bg-transparent dark:aria-disabled:bg-transparent"},{color:"primary",variant:"link",class:"text-primary hover:text-primary/75 active:text-primary/75 disabled:text-primary aria-disabled:text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"},{color:"secondary",variant:"link",class:"text-secondary hover:text-secondary/75 active:text-secondary/75 disabled:text-secondary aria-disabled:text-secondary focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"},{color:"success",variant:"link",class:"text-success hover:text-success/75 active:text-success/75 disabled:text-success aria-disabled:text-success focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"},{color:"info",variant:"link",class:"text-info hover:text-info/75 active:text-info/75 disabled:text-info aria-disabled:text-info focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"},{color:"warning",variant:"link",class:"text-warning hover:text-warning/75 active:text-warning/75 disabled:text-warning aria-disabled:text-warning focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"},{color:"error",variant:"link",class:"text-error hover:text-error/75 active:text-error/75 disabled:text-error aria-disabled:text-error focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"},{color:"neutral",variant:"solid",class:"text-inverted bg-inverted hover:bg-inverted/90 active:bg-inverted/90 disabled:bg-inverted aria-disabled:bg-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"},{color:"neutral",variant:"outline",class:"ring ring-inset ring-accented text-default bg-default hover:bg-elevated active:bg-elevated disabled:bg-default aria-disabled:bg-default focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted"},{color:"neutral",variant:"soft",class:"text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 focus:outline-none focus-visible:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated"},{color:"neutral",variant:"subtle",class:"ring ring-inset ring-accented text-default bg-elevated hover:bg-accented/75 active:bg-accented/75 disabled:bg-elevated aria-disabled:bg-elevated focus:outline-none focus-visible:ring-2 focus-visible:ring-inverted"},{color:"neutral",variant:"ghost",class:"text-default hover:bg-elevated active:bg-elevated focus:outline-none focus-visible:bg-elevated hover:disabled:bg-transparent dark:hover:disabled:bg-transparent hover:aria-disabled:bg-transparent dark:hover:aria-disabled:bg-transparent"},{color:"neutral",variant:"link",class:"text-muted hover:text-default active:text-default disabled:text-muted aria-disabled:text-muted focus:outline-none focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-inverted"},{size:"xs",square:!0,class:"p-1"},{size:"sm",square:!0,class:"p-1.5"},{size:"md",square:!0,class:"p-1.5"},{size:"lg",square:!0,class:"p-2"},{size:"xl",square:!0,class:"p-2"},{loading:!0,leading:!0,class:{leadingIcon:"animate-spin"}},{loading:!0,leading:!1,trailing:!0,class:{trailingIcon:"animate-spin"}}],defaultVariants:{color:"primary",variant:"solid",size:"md"}},qo={__name:"UButton",props:{label:{type:String,required:!1},color:{type:null,required:!1},activeColor:{type:null,required:!1},variant:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},icon:{type:String,required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:String,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:String,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:String,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(e){const t=e,n=ts(),r=tt(),{orientation:s,size:o}=$g(t),i=_r(BA(t)),a=Y(!1),l=wt(MA,void 0);async function c(y){a.value=!0;const b=Array.isArray(t.onClick)?t.onClick:[t.onClick];try{await Promise.all(b.map(_=>_?.(y)))}finally{a.value=!1}}const u=$(()=>t.loading||t.loadingAuto&&(a.value||l?.value&&t.type==="submit")),{isLeading:f,isTrailing:d,leadingIconName:p,trailingIconName:h}=Lg($(()=>({...t,loading:u.value}))),g=$(()=>Ve({extend:Ve(HA),...Zs({variants:{active:{true:{base:mi(r.ui?.button?.variants?.active?.true?.base,t.activeClass)},false:{base:mi(r.ui?.button?.variants?.active?.false?.base,t.inactiveClass)}}}},r.ui?.button||{})})({color:t.color,variant:t.variant,size:o.value,loading:u.value,block:t.block,square:t.square||!n.default&&!t.label,leading:f.value,trailing:d.value,buttonGroup:s.value}));return(y,b)=>(E(),j(zA,pe({type:e.type,disabled:e.disabled||u.value},k(em)(k(i),["type","disabled","onClick"]),{custom:""}),{default:V(({active:_,...m})=>[Z(tm,pe(m,{class:g.value.base({class:[t.ui?.base,t.class],active:_,..._&&e.activeVariant?{variant:e.activeVariant}:{},..._&&e.activeColor?{color:e.activeColor}:{}}),onClick:c}),{default:V(()=>[ne(y.$slots,"leading",{},()=>[k(f)&&k(p)?(E(),j(Tn,{key:0,name:k(p),class:ye(g.value.leadingIcon({class:t.ui?.leadingIcon,active:_}))},null,8,["name","class"])):e.avatar?(E(),j(Jc,pe({key:1,size:t.ui?.leadingAvatarSize||g.value.leadingAvatarSize()},e.avatar,{class:g.value.leadingAvatar({class:t.ui?.leadingAvatar,active:_})}),null,16,["size","class"])):he("",!0)]),ne(y.$slots,"default",{},()=>[e.label!==void 0&&e.label!==null?(E(),re("span",{key:0,class:ye(g.value.label({class:t.ui?.label,active:_}))},_e(e.label),3)):he("",!0)]),ne(y.$slots,"trailing",{},()=>[k(d)&&k(h)?(E(),j(Tn,{key:0,name:k(h),class:ye(g.value.trailingIcon({class:t.ui?.trailingIcon,active:_}))},null,8,["name","class"])):he("",!0)])]),_:2},1040,["class"])]),_:3},16,["type","disabled"]))}};let Ye=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function UA(e){return Yc(e)}function Yc(e){return Array.isArray(e)?GA(e):e instanceof RegExp?e:typeof e=="object"?VA(e):e}function GA(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Yc(e[n]);return t}function VA(e){let t={};for(let n in e)t[n]=Yc(e[n]);return t}function nm(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function rm(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?rm(e.substring(0,e.length-1)):e.substr(~t+1)}var Oa=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,To=class{static hasCaptures(e){return e===null?!1:(Oa.lastIndex=0,Oa.test(e))}static replaceCaptures(e,t,n){return e.replace(Oa,(r,s,o,i)=>{let a=n[parseInt(s||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function sm(e,t){return e<t?-1:e>t?1:0}function om(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let s=0;s<n;s++){let o=sm(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Jf(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function im(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var am=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},yi=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(XA(e),t)}static createFromParsedTheme(e,t){return YA(e,t)}_cachedMatchRoot=new am(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(s=>WA(e.parent,s.parentScopes));return r?new lm(r.fontStyle,r.foreground,r.background):null}},$a=class zo{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new zo(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new zo(n,t[r]);return n}push(t){return new zo(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function WA(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],s=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],s=!0}for(;e&&!KA(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function KA(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var lm=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function XA(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let s=0,o=t.length;s<o;s++){let i=t[s];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let f=i.settings.fontStyle.split(" ");for(let d=0,p=f.length;d<p;d++)switch(f[d]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof i.settings.foreground=="string"&&Jf(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&Jf(i.settings.background)&&(u=i.settings.background);for(let f=0,d=a.length;f<d;f++){let h=a[f].trim().split(" "),g=h[h.length-1],y=null;h.length>1&&(y=h.slice(0,h.length-1),y.reverse()),n[r++]=new JA(g,y,s,l,c,u)}}return n}var JA=class{constructor(e,t,n,r,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=s,this.background=o}},ct=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(ct||{});function YA(e,t){e.sort((l,c)=>{let u=sm(l.scope,c.scope);return u!==0||(u=om(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let n=0,r="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let o=new QA(t),i=new lm(n,o.getId(r),o.getId(s)),a=new eT(new Ml(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let u=e[l];a.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new yi(o,i,a)}var QA=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},ZA=Object.freeze([]),Ml=class cm{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,s,o){this.scopeDepth=t,this.parentScopes=n||ZA,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new cm(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,s=t.length;r<s;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},eT=class Dl{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,s=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),s,o;if(r===-1?(s=t,o=""):(s=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Dl._cmpBySpecificity),n}insert(t,n,r,s,o,i){if(n===""){this._doInsertHere(t,r,s,o,i);return}let a=n.indexOf("."),l,c;a===-1?(l=n,c=""):(l=n.substring(0,a),c=n.substring(a+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new Dl(this._mainRule.clone(),Ml.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,c,r,s,o,i)}_doInsertHere(t,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(t,r,s,o);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let l=this._rulesWithParentScopes[i];if(om(l.parentScopes,n)===0){l.acceptOverwrite(t,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Ml(t,n,r,s,o))}},Qr=class Ft{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Ft.getLanguageId(t),r=Ft.getTokenType(t),s=Ft.getFontStyle(t),o=Ft.getForeground(t),i=Ft.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:o,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,s,o,i,a){let l=Ft.getLanguageId(t),c=Ft.getTokenType(t),u=Ft.containsBalancedBrackets(t)?1:0,f=Ft.getFontStyle(t),d=Ft.getForeground(t),p=Ft.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),s!==null&&(u=s?1:0),o!==-1&&(f=o),i!==0&&(d=i),a!==0&&(p=a),(l<<0|c<<8|u<<10|f<<11|d<<15|p<<24)>>>0}};function bi(e,t){const n=[],r=tT(e);let s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let c=i();if(n.push({matcher:c,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return c=>!!l&&!l(c)}if(s==="("){s=r.next();const l=a();return s===")"&&(s=r.next()),l}if(Yf(s)){const l=[];do l.push(s),s=r.next();while(Yf(s));return c=>t(l,c)}return null}function i(){const l=[];let c=o();for(;c;)l.push(c),c=o();return u=>l.every(f=>f(u))}function a(){const l=[];let c=i();for(;c&&(l.push(c),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");c=i()}return u=>l.some(f=>f(u))}}function Yf(e){return!!e&&!!e.match(/[\w\.:]+/)}function tT(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function um(e){typeof e.dispose=="function"&&e.dispose()}var Us=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},nT=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},rT=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},sT=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Us(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new rT;for(const n of e)oT(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Us){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function oT(e,t,n,r){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Us?Ho({baseGrammar:o,selfGrammar:s},r):Fl(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);const i=n.injections(e.scopeName);if(i)for(const a of i)r.add(new Us(a))}function Fl(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];vi([r],t,n)}}function Ho(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&vi(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&vi(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function vi(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?nm({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&vi(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=fm(o);switch(i.kind){case 0:Ho({...t,selfGrammar:t.baseGrammar},n);break;case 1:Ho(t,n);break;case 2:Fl(i.ruleName,{...t,repository:s},n);break;case 3:case 4:const a=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:s};i.kind===4?Fl(i.ruleName,l,n):Ho(l,n)}else i.kind===4?n.add(new nT(i.scopeName,i.ruleName)):n.add(new Us(i.scopeName));break}}}var iT=class{kind=0},aT=class{kind=1},lT=class{constructor(e){this.ruleName=e}kind=2},cT=class{constructor(e){this.scopeName=e}kind=3},uT=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function fm(e){if(e==="$base")return new iT;if(e==="$self")return new aT;const t=e.indexOf("#");if(t===-1)return new cT(e);if(t===0)return new lT(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new uT(n,r)}}var fT=/\\(\d+)/,Qf=/\\(\d+)/g,dT=-1,dm=-2;var ro=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=To.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=To.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${rm(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:To.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:To.replaceCaptures(this._contentName,e,t)}},pT=class extends ro{retokenizeCapturedWithRuleId;constructor(e,t,n,r,s){super(e,t,n,r),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},hT=class extends ro{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,null),this._match=new Gs(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Vs,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Zf=class extends ro{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,r),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Vs,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Bl=class extends ro{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s,o,i,a,l,c){super(e,t,n,r),this._begin=new Gs(s,this.id),this.beginCaptures=o,this._end=new Gs(i||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Vs;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},wi=class extends ro{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,s,o,i,a,l){super(e,t,n,r),this._begin=new Gs(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new Gs(i,dm),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Vs;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Vs,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},pm=class st{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new pT(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new hT(t.$vscodeTextmateLocation,t.id,t.name,t.match,st._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=nm({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Zf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,st._compilePatterns(o,n,r))}return t.while?new wi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,st._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,st._compileCaptures(t.whileCaptures||t.captures,n,r),st._compilePatterns(t.patterns,n,r)):new Bl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,st._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,st._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,st._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let s=[];if(t){let o=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)s[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);let l=0;t[i].patterns&&(l=st.getCompiledRuleId(t[i],n,r)),s[a]=st.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return s}static _compilePatterns(t,n,r){let s=[];if(t)for(let o=0,i=t.length;o<i;o++){const a=t[o];let l=-1;if(a.include){const c=fm(a.include);switch(c.kind){case 0:case 1:l=st.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=st.getCompiledRuleId(u,n,r));break;case 3:case 4:const f=c.scopeName,d=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(f,r);if(p)if(d){let h=p.repository[d];h&&(l=st.getCompiledRuleId(h,n,p.repository))}else l=st.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else l=st.getCompiledRuleId(a,n,r);if(l!==-1){const c=n.getRule(l);let u=!1;if((c instanceof Zf||c instanceof Bl||c instanceof wi)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Gs=class hm{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let s=0,o=[],i=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const c=t.charAt(a+1);c==="z"?(o.push(t.substring(s,a)),o.push("$(?!\\n)(?<!\\n)"),s=a+2):(c==="A"||c==="G")&&(i=!0),a++}this.hasAnchor=i,s===0?this.source=t:(o.push(t.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=fT.test(this.source):this.hasBackReferences=!1}clone(){return new hm(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>t.substring(s.start,s.end));return Qf.lastIndex=0,this.source.replace(Qf,(s,o)=>im(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],s=[],o,i,a,l;for(o=0,i=this.source.length;o<i;o++)a=this.source.charAt(o),t[o]=a,n[o]=a,r[o]=a,s[o]=a,a==="\\"&&o+1<i&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",s[o+1]="A"):l==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",s[o+1]="G"):(t[o+1]=l,n[o+1]=l,r[o+1]=l,s[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Vs=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new ed(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(s=>s.resolveAnchors(t,n));return new ed(e,r,this._items.map(s=>s.ruleId))}},ed=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
31
- `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},La=class{constructor(e,t){this.languageId=e,this.tokenType=t}},gT=class jl{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new La(t,8),this._embeddedLanguagesMatcher=new mT(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?jl._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new La(0,0);_getBasicScopeAttributes=new am(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new La(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(jl.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},mT=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>im(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},td=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function gm(e,t,n,r,s,o,i,a){const l=t.content.length;let c=!1,u=-1;if(i){const p=yT(e,t,n,r,s,o);s=p.stack,r=p.linePos,n=p.isFirstLine,u=p.anchorPosition}const f=Date.now();for(;!c;){if(a!==0&&Date.now()-f>a)return new td(s,!0);d()}return new td(s,!1);function d(){const p=bT(e,t,n,r,s,u);if(!p){o.produce(s,l),c=!0;return}const h=p.captureIndices,g=p.matchedRuleId,y=h&&h.length>0?h[0].end>r:!1;if(g===dT){const b=s.getRule(e);o.produce(s,h[0].start),s=s.withContentNameScopesList(s.nameScopesList),xs(e,t,n,s,o,b.endCaptures,h),o.produce(s,h[0].end);const _=s;if(s=s.parent,u=_.getAnchorPos(),!y&&_.getEnterPos()===r){s=_,o.produce(s,l),c=!0;return}}else{const b=e.getRule(g);o.produce(s,h[0].start);const _=s,m=b.getName(t.content,h),v=s.contentNameScopesList.pushAttributed(m,e);if(s=s.push(g,r,u,h[0].end===l,null,v,v),b instanceof Bl){const w=b;xs(e,t,n,s,o,w.beginCaptures,h),o.produce(s,h[0].end),u=h[0].end;const S=w.getContentName(t.content,h),P=v.pushAttributed(S,e);if(s=s.withContentNameScopesList(P),w.endHasBackReferences&&(s=s.withEndRule(w.getEndWithResolvedBackReferences(t.content,h))),!y&&_.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(b instanceof wi){const w=b;xs(e,t,n,s,o,w.beginCaptures,h),o.produce(s,h[0].end),u=h[0].end;const S=w.getContentName(t.content,h),P=v.pushAttributed(S,e);if(s=s.withContentNameScopesList(P),w.whileHasBackReferences&&(s=s.withEndRule(w.getWhileWithResolvedBackReferences(t.content,h))),!y&&_.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(xs(e,t,n,s,o,b.captures,h),o.produce(s,h[0].end),s=s.pop(),!y){s=s.safePop(),o.produce(s,l),c=!0;return}}h[0].end>r&&(r=h[0].end,n=!1)}}function yT(e,t,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const c=l.getRule(e);c instanceof wi&&a.push({rule:c,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:c,findOptions:u}=_T(l.rule,e,l.stack.endRule,n,r===i),f=c.findNextMatchSync(t,r,u);if(f){if(f.ruleId!==dm){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),xs(e,t,n,l.stack,o,l.rule.whileCaptures,f.captureIndices),o.produce(l.stack,f.captureIndices[0].end),i=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:i,isFirstLine:n}}function bT(e,t,n,r,s,o){const i=vT(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=wT(a,e,t,n,r,s,o);if(!l)return i;if(!i)return l;const c=i.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:i}function vT(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=mm(i,e,s.endRule,n,r===o),c=a.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function wT(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,c,u=0;const f=o.contentNameScopesList.getScopeNames();for(let d=0,p=e.length;d<p;d++){const h=e[d];if(!h.matcher(f))continue;const g=t.getRule(h.ruleId),{ruleScanner:y,findOptions:b}=mm(g,t,null,r,s===i),_=y.findNextMatchSync(n,s,b);if(!_)continue;const m=_.captureIndices[0].start;if(!(m>=a)&&(a=m,l=_.captureIndices,c=_.ruleId,u=h.priority,a===s))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function mm(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function _T(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function xs(e,t,n,r,s,o,i){if(o.length===0)return;const a=t.content,l=Math.min(o.length,i.length),c=[],u=i[0].end;for(let f=0;f<l;f++){const d=o[f];if(d===null)continue;const p=i[f];if(p.length===0)continue;if(p.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,p.start):s.produce(r,p.start),d.retokenizeCapturedWithRuleId){const g=d.getName(a,i),y=r.contentNameScopesList.pushAttributed(g,e),b=d.getContentName(a,i),_=y.pushAttributed(b,e),m=r.push(d.retokenizeCapturedWithRuleId,p.start,-1,!1,null,y,_),v=e.createOnigString(a.substring(0,p.end));gm(e,v,n&&p.start===0,p.start,m,s,!1,0),um(v);continue}const h=d.getName(a,i);if(h!==null){const y=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new xT(y,p.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var xT=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function kT(e,t,n,r,s,o,i,a){return new ST(e,t,n,r,s,o,i,a)}function nd(e,t,n,r,s){const o=bi(t,_i),i=pm.getCompiledRuleId(n,r,s.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:i,grammar:s,priority:a.priority})}function _i(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let s=n;s<t.length;s++)if(CT(t[s],r))return n=s+1,!0;return!1})}function CT(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var ST=class{constructor(e,t,n,r,s,o,i,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new gT(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=rd(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const c=bi(l,_i);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const s=r.injections;if(s)for(let i in s)nd(t,i,s[i],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(i=>{const a=this.getExternalGrammar(i);if(a){const l=a.injectionSelector;l&&nd(t,l,a,this,a)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=rd(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=pm.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===ql.NULL){s=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),f=Qr.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),d=this.getRule(this._rootId).getName(null,null);let p;d?p=Os.createRootAndLookUpScopeName(d,f,this):p=Os.createRoot("unknown",f),t=new ql(null,this._rootId,-1,-1,!1,null,p,p)}else s=!1,t.reset();e=e+`
32
- `;const o=this.createOnigString(e),i=o.content.length,a=new AT(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=gm(this,o,s,0,t,a,!0,r);return um(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function rd(e,t){return e=UA(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Os=class tn{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=t?.scopePath??null;for(const o of n)s=$a.push(s,o.scopeNames),r=new tn(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new tn(null,new $a(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new $a(null,t),i=r.themeProvider.themeMatch(o),a=tn.mergeAttributes(n,s,i);return new tn(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return tn.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let s=-1,o=0,i=0;return r!==null&&(s=r.fontStyle,o=r.foregroundId,i=r.backgroundId),Qr.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return tn._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=tn._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,r){const s=r.getMetadataForScope(n),o=t.scopePath.push(n),i=r.themeProvider.themeMatch(o),a=tn.mergeAttributes(t.tokenAttributes,s,i);return new tn(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},ql=class nr{constructor(t,n,r,s,o,i,a,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}_stackElementBrand=void 0;static NULL=new nr(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:nr._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Os.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){nr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new nr(this,t,n,r,s,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new nr(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Os.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new nr(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Os.fromExtension(r,n.contentNameScopesList))}},ET=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):bi(n,_i).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>bi(n,_i).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},AT=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(o)&&(r=Qr.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=Qr.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},TT=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,kT(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},PT=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new TT(yi.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(yi.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new ET(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new sT(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(a=>this._loadSingleGrammar(a.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,s,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,s=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,s)}_grammarForScopeName(t,n=0,r=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,s,o)}},zl=ql.NULL;const RT=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class so{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}so.prototype.normal={};so.prototype.property={};so.prototype.space=void 0;function ym(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new so(n,r,t)}function Hl(e){return e.toLowerCase()}class St{constructor(t,n){this.attribute=n,this.property=t}}St.prototype.attribute="";St.prototype.booleanish=!1;St.prototype.boolean=!1;St.prototype.commaOrSpaceSeparated=!1;St.prototype.commaSeparated=!1;St.prototype.defined=!1;St.prototype.mustUseProperty=!1;St.prototype.number=!1;St.prototype.overloadedBoolean=!1;St.prototype.property="";St.prototype.spaceSeparated=!1;St.prototype.space=void 0;let IT=0;const ge=Cr(),Ge=Cr(),Ul=Cr(),q=Cr(),Oe=Cr(),Ur=Cr(),Pt=Cr();function Cr(){return 2**++IT}const Gl=Object.freeze(Object.defineProperty({__proto__:null,boolean:ge,booleanish:Ge,commaOrSpaceSeparated:Pt,commaSeparated:Ur,number:q,overloadedBoolean:Ul,spaceSeparated:Oe},Symbol.toStringTag,{value:"Module"})),Na=Object.keys(Gl);class Qc extends St{constructor(t,n,r,s){let o=-1;if(super(t,n),sd(this,"space",s),typeof r=="number")for(;++o<Na.length;){const i=Na[o];sd(this,Na[o],(r&Gl[i])===Gl[i])}}}Qc.prototype.defined=!0;function sd(e,t,n){n&&(e[t]=n)}function as(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new Qc(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Hl(r)]=r,n[Hl(o.attribute)]=r}return new so(t,n,e.space)}const bm=as({properties:{ariaActiveDescendant:null,ariaAtomic:Ge,ariaAutoComplete:null,ariaBusy:Ge,ariaChecked:Ge,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:Oe,ariaCurrent:null,ariaDescribedBy:Oe,ariaDetails:null,ariaDisabled:Ge,ariaDropEffect:Oe,ariaErrorMessage:null,ariaExpanded:Ge,ariaFlowTo:Oe,ariaGrabbed:Ge,ariaHasPopup:null,ariaHidden:Ge,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Oe,ariaLevel:q,ariaLive:null,ariaModal:Ge,ariaMultiLine:Ge,ariaMultiSelectable:Ge,ariaOrientation:null,ariaOwns:Oe,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:Ge,ariaReadOnly:Ge,ariaRelevant:null,ariaRequired:Ge,ariaRoleDescription:Oe,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:Ge,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function vm(e,t){return t in e?e[t]:t}function wm(e,t){return vm(e,t.toLowerCase())}const OT=as({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ur,acceptCharset:Oe,accessKey:Oe,action:null,allow:null,allowFullScreen:ge,allowPaymentRequest:ge,allowUserMedia:ge,alt:null,as:null,async:ge,autoCapitalize:null,autoComplete:Oe,autoFocus:ge,autoPlay:ge,blocking:Oe,capture:null,charSet:null,checked:ge,cite:null,className:Oe,cols:q,colSpan:null,content:null,contentEditable:Ge,controls:ge,controlsList:Oe,coords:q|Ur,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ge,defer:ge,dir:null,dirName:null,disabled:ge,download:Ul,draggable:Ge,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ge,formTarget:null,headers:Oe,height:q,hidden:Ul,high:q,href:null,hrefLang:null,htmlFor:Oe,httpEquiv:Oe,id:null,imageSizes:null,imageSrcSet:null,inert:ge,inputMode:null,integrity:null,is:null,isMap:ge,itemId:null,itemProp:Oe,itemRef:Oe,itemScope:ge,itemType:Oe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ge,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:ge,muted:ge,name:null,nonce:null,noModule:ge,noValidate:ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ge,optimum:q,pattern:null,ping:Oe,placeholder:null,playsInline:ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ge,referrerPolicy:null,rel:Oe,required:ge,reversed:ge,rows:q,rowSpan:q,sandbox:Oe,scope:null,scoped:ge,seamless:ge,selected:ge,shadowRootClonable:ge,shadowRootDelegatesFocus:ge,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:Ge,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:ge,useMap:null,value:Ge,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Oe,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ge,declare:ge,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:ge,noHref:ge,noShade:ge,noWrap:ge,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:Ge,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ge,disableRemotePlayback:ge,prefix:null,property:null,results:q,security:null,unselectable:null},space:"html",transform:wm}),$T=as({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Pt,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:Oe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ur,g2:Ur,glyphName:Ur,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Pt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Oe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pt,rev:Pt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pt,requiredFeatures:Pt,requiredFonts:Pt,requiredFormats:Pt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Pt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pt,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:vm}),_m=as({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),xm=as({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:wm}),km=as({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),LT=/[A-Z]/g,od=/-[a-z]/g,NT=/^data[-\w.:]+$/i;function MT(e,t){const n=Hl(t);let r=t,s=St;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&NT.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(od,FT);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!od.test(o)){let i=o.replace(LT,DT);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=Qc}return new s(r,t)}function DT(e){return"-"+e.toLowerCase()}function FT(e){return e.charAt(1).toUpperCase()}const BT=ym([bm,OT,_m,xm,km],"html"),Cm=ym([bm,$T,_m,xm,km],"svg"),id={}.hasOwnProperty;function jT(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&id.call(s,e)){const l=String(s[e]);i=id.call(a,l)?a[l]:r.unknown}if(i)return i.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const qT=/["&'<>`]/g,zT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,HT=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,UT=/[|\\{}()[\]^$+*?.]/g,ad=new WeakMap;function GT(e,t){if(e=e.replace(t.subset?VT(t.subset):qT,r),t.subset||t.escapeOnly)return e;return e.replace(zT,n).replace(HT,r);function n(s,o,i){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),t)}function r(s,o,i){return t.format(s.charCodeAt(0),i.charCodeAt(o+1),t)}}function VT(e){let t=ad.get(e);return t||(t=WT(e),ad.set(e,t)),t}function WT(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(UT,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const KT=/[\dA-Fa-f]/;function XT(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!KT.test(String.fromCharCode(t))?r:r+";"}const JT=/\d/;function YT(e,t,n){const r="&#"+String(e);return n&&t&&!JT.test(String.fromCharCode(t))?r:r+";"}const QT=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ma={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ZT=["cent","copy","divide","gt","lt","not","para","times"],Sm={}.hasOwnProperty,Vl={};let Po;for(Po in Ma)Sm.call(Ma,Po)&&(Vl[Ma[Po]]=Po);const eP=/[^\dA-Za-z]/;function tP(e,t,n,r){const s=String.fromCharCode(e);if(Sm.call(Vl,s)){const o=Vl[s],i="&"+o;return n&&QT.includes(o)&&!ZT.includes(o)&&(!r||t&&t!==61&&eP.test(String.fromCharCode(t)))?i:i+";"}return""}function nP(e,t,n){let r=XT(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=tP(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=YT(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function Gr(e,t){return GT(e,Object.assign({format:nP},t))}const rP=/^>|^->|<!--|-->|--!>|<!-$/g,sP=[">"],oP=["<",">"];function iP(e,t,n,r){return r.settings.bogusComments?"<?"+Gr(e.value,Object.assign({},r.settings.characterReferences,{subset:sP}))+">":"<!--"+e.value.replace(rP,s)+"-->";function s(o){return Gr(o,Object.assign({},r.settings.characterReferences,{subset:oP}))}}function aP(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function ld(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;s!==-1;)r++,s=n.indexOf(t,s+t.length);return r}function lP(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function cP(e){return e.join(" ").trim()}const uP=/[ \t\n\f\r]/g;function Zc(e){return typeof e=="object"?e.type==="text"?cd(e.value):!1:cd(e)}function cd(e){return e.replace(uP,"")===""}const Je=Am(1),Em=Am(-1),fP=[];function Am(e){return t;function t(n,r,s){const o=n?n.children:fP;let i=(r||0)+e,a=o[i];if(!s)for(;a&&Zc(a);)i+=e,a=o[i];return a}}const dP={}.hasOwnProperty;function Tm(e){return t;function t(n,r,s){return dP.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const eu=Tm({body:hP,caption:Da,colgroup:Da,dd:bP,dt:yP,head:Da,html:pP,li:mP,optgroup:vP,option:wP,p:gP,rp:ud,rt:ud,tbody:xP,td:fd,tfoot:kP,th:fd,thead:_P,tr:CP});function Da(e,t,n){const r=Je(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Zc(r.value.charAt(0)))}function pP(e,t,n){const r=Je(n,t);return!r||r.type!=="comment"}function hP(e,t,n){const r=Je(n,t);return!r||r.type!=="comment"}function gP(e,t,n){const r=Je(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function mP(e,t,n){const r=Je(n,t);return!r||r.type==="element"&&r.tagName==="li"}function yP(e,t,n){const r=Je(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function bP(e,t,n){const r=Je(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ud(e,t,n){const r=Je(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function vP(e,t,n){const r=Je(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function wP(e,t,n){const r=Je(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function _P(e,t,n){const r=Je(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function xP(e,t,n){const r=Je(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function kP(e,t,n){return!Je(n,t)}function CP(e,t,n){const r=Je(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function fd(e,t,n){const r=Je(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const SP=Tm({body:TP,colgroup:PP,head:AP,html:EP,tbody:RP});function EP(e){const t=Je(e,-1);return!t||t.type!=="comment"}function AP(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function TP(e){const t=Je(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Zc(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function PP(e,t,n){const r=Em(n,t),s=Je(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&eu(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function RP(e,t,n){const r=Em(n,t),s=Je(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&eu(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const Ro={name:[[`
33
- \f\r &/=>`.split(""),`
34
- \f\r "&'/=>\``.split("")],[`\0
35
- \f\r "&'/<=>`.split(""),`\0
36
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
37
- \f\r &>`.split(""),`\0
38
- \f\r "&'<=>\``.split("")],[`\0
39
- \f\r "&'<=>\``.split(""),`\0
40
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function IP(e,t,n,r){const s=r.schema,o=s.space==="svg"?!1:r.settings.omitOptionalTags;let i=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;s.space==="html"&&e.tagName==="svg"&&(r.schema=Cm);const c=OP(r,e.properties),u=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,u&&(i=!1),(c||!o||!SP(e,t,n))&&(a.push("<",e.tagName,c?" "+c:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(u),!i&&(!o||!eu(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function OP(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=$P(e,s,t[s]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function $P(e,t,n){const r=MT(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let i=e.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=Gr(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Ro.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?lP:cP)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=Gr(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ro.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&ld(n,i)>ld(n,e.alternative)&&(i=e.alternative),a=i+Gr(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?Ro.single:Ro.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const LP=["<","&"];function Pm(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Gr(e.value,Object.assign({},r.settings.characterReferences,{subset:LP}))}function NP(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Pm(e,t,n,r)}function MP(e,t,n,r){return r.all(e)}const DP=jT("type",{invalid:FP,unknown:BP,handlers:{comment:iP,doctype:aP,element:IP,raw:NP,root:MP,text:Pm}});function FP(e){throw new Error("Expected node, not `"+e+"`")}function BP(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const jP={},qP={},zP=[];function HP(e,t){const n=t||jP,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:UP,all:GP,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||RT,characterReferences:n.characterReferences||qP,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Cm:BT,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function UP(e,t,n){return DP(e,t,n,this)}function GP(e){const t=[],n=e&&e.children||zP;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function xi(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function zn(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function VP(e){return Array.isArray(e)?e:[e]}async function Rm(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function tu(e){return!e||["plaintext","txt","text","plain"].includes(e)}function WP(e){return e==="ansi"||tu(e)}function nu(e){return e==="none"}function KP(e){return nu(e)}function Im(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function na(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let o=0;o<n.length;o+=2){const i=t?n[o]+(n[o+1]||""):n[o];s.push([i,r]),r+=n[o].length,r+=n[o+1]?.length||0}return s}function XP(e){const t=na(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,i=0;for(const a of t){if(o<a.length)break;o-=a.length,i++}return{line:i,character:o}}function r(s,o){let i=0;for(let a=0;a<s;a++)i+=t[a].length;return i+=o,i}return{lines:t,indexToPos:n,posToIndex:r}}const ru="light-dark()",JP=["color","background-color"];function YP(e,t){let n=0;const r=[];for(const s of t)s>n&&r.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function QP(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,s)=>r-s);return n.length?e.map(r=>r.flatMap(s=>{const o=n.filter(i=>s.offset<i&&i<s.offset+s.content.length).map(i=>i-s.offset).sort((i,a)=>i-a);return o.length?YP(s,o):s})):e}function ZP(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(u=>ki(e.variants[u])),a=new Set(i.flatMap(u=>Object.keys(u))),l={},c=(u,f)=>{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[u]+(f==="color"?"":d)};return i.forEach((u,f)=>{for(const d of a){const p=u[d]||"inherit";if(f===0&&r&&JP.includes(d))if(r===ru&&i.length>1){const h=t.findIndex(_=>_==="light"),g=t.findIndex(_=>_==="dark");if(h===-1||g===-1)throw new Ye('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=i[h][d]||"inherit",b=i[g][d]||"inherit";l[d]=`light-dark(${y}, ${b})`,s==="css-vars"&&(l[c(f,d)]=p)}else l[d]=p;else s==="css-vars"&&(l[c(f,d)]=p)}}),o.htmlStyle=l,o}function ki(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&ct.Italic&&(t["font-style"]="italic"),e.fontStyle&ct.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&ct.Underline&&n.push("underline"),e.fontStyle&ct.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Wl(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Om=new WeakMap;function ra(e,t){Om.set(e,t)}function Ws(e){return Om.get(e)}class ls{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new ls(Object.fromEntries(VP(n).map(r=>[r,zl])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,s]=t;this.lang=r,this._stacks={[s]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return eR(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function eR(e){const t=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);const o=s?.nameScopesList?.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function tR(e,t){if(!(e instanceof ls))throw new Ye("Invalid grammar state");return e.getInternalStack(t)}function nR(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new Ye(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...s.indexToPos(i),offset:i}}else{const a=s.lines[i.line];if(a===void 0)throw new Ye(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);let l=i.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new Ye(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,character:l,offset:s.posToIndex(i.line,l)}}};const s=XP(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));rR(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const s=t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]);return QP(n,s)},code(n){if(!this.options.decorations?.length)return;const r=t(this),s=Array.from(n.children).filter(u=>u.type==="element"&&u.tagName==="span");if(s.length!==r.converter.lines.length)throw new Ye(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(u,f,d,p){const h=s[u];let g="",y=-1,b=-1;if(f===0&&(y=0),d===0&&(b=0),d===Number.POSITIVE_INFINITY&&(b=h.children.length),y===-1||b===-1)for(let m=0;m<h.children.length;m++)g+=$m(h.children[m]),y===-1&&g.length===f&&(y=m+1),b===-1&&g.length===d&&(b=m+1);if(y===-1)throw new Ye(`Failed to find start index for decoration ${JSON.stringify(p.start)}`);if(b===-1)throw new Ye(`Failed to find end index for decoration ${JSON.stringify(p.end)}`);const _=h.children.slice(y,b);if(!p.alwaysWrap&&_.length===h.children.length)a(h,p,"line");else if(!p.alwaysWrap&&_.length===1&&_[0].type==="element")a(_[0],p,"token");else{const m={type:"element",tagName:"span",properties:{},children:_};a(m,p,"wrapper"),h.children.splice(y,_.length,m)}}function i(u,f){s[u]=a(s[u],f,"line")}function a(u,f,d){const p=f.properties||{},h=f.transform||(g=>g);return u.tagName=f.tagName||"span",u.properties={...u.properties,...p,class:u.properties.class},f.properties?.class&&Im(u,f.properties.class),u=h(u,d)||u,u}const l=[],c=r.decorations.sort((u,f)=>f.start.offset-u.start.offset||u.end.offset-f.end.offset);for(const u of c){const{start:f,end:d}=u;if(f.line===d.line)o(f.line,f.character,d.character,u);else if(f.line<d.line){o(f.line,f.character,Number.POSITIVE_INFINITY,u);for(let p=f.line+1;p<d.line;p++)l.unshift(()=>i(p,u));o(d.line,0,d.character,u)}}l.forEach(u=>u())}}}function rR(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Ye(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const s=e[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,i=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||i||a||l){if(o&&i||a&&l||a&&n.start.offset===n.end.offset||i&&s.start.offset===s.end.offset)continue;throw new Ye(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function $m(e){return e.type==="text"?e.value:e.type==="element"?e.children.map($m).join(""):""}const sR=[nR()];function Ci(e){const t=oR(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...sR]}function oR(e){const t=[],n=[],r=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:t,post:n,normal:r}}var or=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Fa={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function iR(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function dd(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function aR(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)Fa[r]&&t.push({type:"setDecoration",value:Fa[r]});else if(r<=29){const s=Fa[r-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:or[r-30]}});else if(r===38){const s=dd(e);s&&t.push({type:"setForegroundColor",value:s})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:or[r-40]}});else if(r===48){const s=dd(e);s&&t.push({type:"setBackgroundColor",value:s})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:or[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:or[r-100+8]}})}return t}function lR(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=iR(r,o),a=i.sequence?r.substring(o,i.startPosition):r.substring(o);if(a.length>0&&s.push({value:a,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const l=aR(i.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}o=i.position}while(o<r.length);return s}}}var cR={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function uR(e=cR){function t(a){return e[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let c=0;c<or.length;c++)r.push(t(or[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let f=0;f<6;f++)r.push(n([a[c],a[u],a[f]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(a){return s()[a]}function i(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return o(a.index)}}return{value:i}}const fR={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function dR(e,t,n){const r=xi(e,n),s=na(t),o=Object.fromEntries(or.map(l=>{const c=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,u=e.colors?.[c];return[l,u||fR[l]]})),i=uR(o),a=lR();return s.map(l=>a.parse(l[0]).map(c=>{let u,f;c.decorations.has("reverse")?(u=c.background?i.value(c.background):e.bg,f=c.foreground?i.value(c.foreground):e.fg):(u=c.foreground?i.value(c.foreground):e.fg,f=c.background?i.value(c.background):void 0),u=zn(u,r),f=zn(f,r),c.decorations.has("dim")&&(u=pR(u));let d=ct.None;return c.decorations.has("bold")&&(d|=ct.Bold),c.decorations.has("italic")&&(d|=ct.Italic),c.decorations.has("underline")&&(d|=ct.Underline),c.decorations.has("strikethrough")&&(d|=ct.Strikethrough),{content:c.value,offset:l[1],color:u,bgColor:f,fontStyle:d}}))}function pR(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const s=r[0],o=r[1],i=r[2],a=r[3],l=Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0");return`#${s}${s}${o}${o}${i}${i}${l}`}else if(r.length===3){const s=r[0],o=r[1],i=r[2];return`#${s}${s}${o}${o}${i}${i}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function su(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,s=e.resolveLangAlias(n.lang||"text");if(tu(s)||nu(r))return na(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(r);if(s==="ansi")return dR(o,t,n);const a=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Ye(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ye(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return gR(t,a,o,i,n)}function hR(...e){if(e.length===2)return Ws(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(tu(s)||nu(o))throw new Ye("Plain language does not have grammar state");if(s==="ansi")throw new Ye("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new ls(ou(n,l,i,a,r).stateStack,l.name,i.name)}function gR(e,t,n,r,s){const o=ou(e,t,n,r,s),i=new ls(o.stateStack,t.name,n.name);return ra(o.tokens,i),o.tokens}function ou(e,t,n,r,s){const o=xi(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=na(e);let c=s.grammarState?tR(s.grammarState,n.name)??zl:s.grammarContextCode!=null?ou(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:zl,u=[];const f=[];for(let d=0,p=l.length;d<p;d++){const[h,g]=l[d];if(h===""){u=[],f.push([]);continue}if(i>0&&h.length>=i){u=[],f.push([{content:h,offset:g,color:"",fontStyle:0}]);continue}let y,b,_;s.includeExplanation&&(y=t.tokenizeLine(h,c,a),b=y.tokens,_=0);const m=t.tokenizeLine2(h,c,a),v=m.tokens.length/2;for(let w=0;w<v;w++){const S=m.tokens[2*w],P=w+1<v?m.tokens[2*w+2]:h.length;if(S===P)continue;const T=m.tokens[2*w+1],R=zn(r[Qr.getForeground(T)],o),N=Qr.getFontStyle(T),X={content:h.substring(S,P),offset:g+S,color:R,fontStyle:N};if(s.includeExplanation){const U=[];if(s.includeExplanation!=="scopeName")for(const L of n.settings){let z;switch(typeof L.scope){case"string":z=L.scope.split(/,/).map(I=>I.trim());break;case"object":z=L.scope;break;default:continue}U.push({settings:L,selectors:z.map(I=>I.split(/ /))})}X.explanation=[];let se=0;for(;S+se<P;){const L=b[_],z=h.substring(L.startIndex,L.endIndex);se+=z.length,X.explanation.push({content:z,scopes:s.includeExplanation==="scopeName"?mR(L.scopes):yR(U,L.scopes)}),_+=1}}u.push(X)}f.push(u),u=[],c=m.ruleStack}return{tokens:f,stateStack:c}}function mR(e){return e.map(t=>({scopeName:t}))}function yR(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:vR(e,o,t.slice(0,r))}}return n}function pd(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function bR(e,t,n){if(!pd(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)pd(e[r],n[s])&&(r-=1),s-=1;return r===-1}function vR(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(bR(i,t,n)){r.push(o);break}return r}function Lm(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),s=r.map(l=>{const c=su(e,t,{...n,theme:l.theme}),u=Ws(c),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:f}}),o=wR(...s.map(l=>l.tokens)),i=o[0].map((l,c)=>l.map((u,f)=>{const d={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=u.explanation),o.forEach((p,h)=>{const{content:g,explanation:y,offset:b,..._}=p[c][f];d.variants[r[h].color]=_}),d})),a=s[0].state?new ls(Object.fromEntries(s.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),s[0].state.lang):void 0;return a&&ra(i,a),i}function wR(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const s=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,c)=>l.push(o[c]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){const u=a[c];u.content.length===l?(o[c].push(u),i[c]+=1,a[c]=s[c][i[c]]):(o[c].push({...u,content:u.content.slice(0,l)}),a[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}function Si(e,t,n){let r,s,o,i,a,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:f="css-vars"}=n,d=Object.entries(n.themes).filter(b=>b[1]).map(b=>({color:b[0],theme:b[1]})).sort((b,_)=>b.color===c?-1:_.color===c?1:0);if(d.length===0)throw new Ye("`themes` option must not be empty");const p=Lm(e,t,n);if(l=Ws(p),c&&ru!==c&&!d.find(b=>b.color===c))throw new Ye(`\`themes\` option must contain the defaultColor key \`${c}\``);const h=d.map(b=>e.getTheme(b.theme)),g=d.map(b=>b.color);o=p.map(b=>b.map(_=>ZP(_,g,u,c,f))),l&&ra(o,l);const y=d.map(b=>xi(b.theme,n));s=hd(d,h,y,u,c,"fg",f),r=hd(d,h,y,u,c,"bg",f),i=`shiki-themes ${h.map(b=>b.name).join(" ")}`,a=c?void 0:[s,r].join(";")}else if("theme"in n){const c=xi(n.theme,n);o=su(e,t,n);const u=e.getTheme(n.theme);r=zn(u.bg,c),s=zn(u.fg,c),i=u.name,l=Ws(o)}else throw new Ye("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function hd(e,t,n,r,s,o,i){return e.map((a,l)=>{const c=zn(t[l][o],n[l])||"inherit",u=`${r+a.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&s){if(s===ru&&e.length>1){const f=e.findIndex(g=>g.color==="light"),d=e.findIndex(g=>g.color==="dark");if(f===-1||d===-1)throw new Ye('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const p=zn(t[f][o],n[f])||"inherit",h=zn(t[d][o],n[d])||"inherit";return`light-dark(${p}, ${h});${u}`}return c}return i==="css-vars"?u:null}).filter(a=>!!a).join(";")}function Ei(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>Ei(e,s,o),codeToTokens:(s,o)=>Si(e,s,o)}){let s=t;for(const h of Ci(n))s=h.preprocess?.call(r,s,n)||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:c,grammarState:u}=Si(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=xR(o):f==="never"&&(o=kR(o)),d&&(o=CR(o));const p={...r,get source(){return s}};for(const h of Ci(n))o=h.tokens?.call(p,o)||o;return _R(o,{...n,fg:i,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},p,u)}function _R(e,t,n,r=Ws(e)){const s=Ci(t),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(const[g,y]of Object.entries(t.meta||{}))g.startsWith("_")||(c[g]=y);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},f={type:"element",tagName:"code",properties:{},children:o};const d=[],p={...n,structure:a,addClassToHast:Im,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return u},get code(){return f},get lines(){return d}};if(e.forEach((g,y)=>{y&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
41
- `}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const m of g){let v={type:"element",tagName:"span",properties:{...m.htmlAttrs},children:[{type:"text",value:m.content}]};const w=Wl(m.htmlStyle||ki(m));w&&(v.properties.style=w);for(const S of s)v=S?.span?.call(p,v,y+1,_,b,m)||v;a==="inline"?i.children.push(v):a==="classic"&&b.children.push(v),_+=m.content.length}if(a==="classic"){for(const m of s)b=m?.line?.call(p,b,y+1)||b;d.push(b),o.push(b)}else a==="inline"&&d.push(b)}),a==="classic"){for(const g of s)f=g?.code?.call(p,f)||f;u.children.push(f);for(const g of s)u=g?.pre?.call(p,u)||u;i.children.push(u)}else if(a==="inline"){const g=[];let y={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const m of i.children)m.type==="element"&&m.tagName==="br"?(g.push(y),y={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(m.type==="element"||m.type==="text")&&y.children.push(m);g.push(y);let _={type:"element",tagName:"code",properties:{},children:g};for(const m of s)_=m?.code?.call(p,_)||_;i.children=[];for(let m=0;m<_.children.length;m++){m>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const v=_.children[m];v.type==="element"&&i.children.push(...v.children)}}let h=i;for(const g of s)h=g?.root?.call(p,h)||h;return r&&ra(h,r),h}function xR(e){return e.map(t=>{const n=[];let r="",s;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&ct.Underline||o.fontStyle&ct.Strikethrough));l&&o.content.match(/^\s+$/)&&t[i+1]?(s===void 0&&(s=o.offset),r+=o.content):r?(l?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=void 0,r=""):n.push(o)}),n})}function kR(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,s,o,i]=r;if(!s&&!i)return n;const a=[{...n,offset:n.offset+s.length,content:o}];return s&&a.unshift({content:s,offset:n.offset}),i&&a.push({content:i,offset:n.offset+s.length+o.length}),a}))}function CR(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const s=n[n.length-1],o=Wl(s.htmlStyle||ki(s)),i=Wl(r.htmlStyle||ki(r)),a=s.fontStyle&&(s.fontStyle&ct.Underline||s.fontStyle&ct.Strikethrough),l=r.fontStyle&&(r.fontStyle&ct.Underline||r.fontStyle&ct.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}const SR=HP;function ER(e,t,n){const r={meta:{},options:n,codeToHast:(o,i)=>Ei(e,o,i),codeToTokens:(o,i)=>Si(e,o,i)};let s=SR(Ei(e,t,n,r));for(const o of Ci(n))s=o.postprocess?.call(r,s,n)||s;return s}const gd={light:"#333333",dark:"#bbbbbb"},md={light:"#fffffe",dark:"#1e1e1e"},yd="__shiki_resolved";function iu(e){if(e?.[yd])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const a=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(r=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?gd.light:gd.dark),n||(n=t.type==="light"?md.light:md.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function i(a){if(o.has(a))return o.get(a);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(a):(o.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),c=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!c)return a;const u={...a,settings:{...a.settings}};if(l){const f=i(a.settings.foreground);t.colorReplacements[f]=a.settings.foreground,u.settings.foreground=f}if(c){const f=i(a.settings.background);t.colorReplacements[f]=a.settings.background,u.settings.background=f}return u});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=i(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,yd,{enumerable:!1,writable:!1,value:!0}),t}async function Nm(e){return Array.from(new Set((await Promise.all(e.filter(t=>!WP(t)).map(async t=>await Rm(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Mm(e){return(await Promise.all(e.map(async n=>KP(n)?null:iu(await Rm(n))))).filter(n=>!!n)}let AR=3;function TR(e,t=3){t>AR||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class Dr extends Error{constructor(t){super(t),this.name="ShikiError"}}function Dm(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Dr(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class PR extends PT{constructor(t,n,r,s={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=iu(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=yi.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Dm(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const s=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(s.name=t.name,this._resolvedGrammars.set(t.name,s),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const s of t)this.resolveEmbeddedLanguages(s);const n=Array.from(this._langGraph.entries()),r=n.filter(([s,o])=>!o);if(r.length){const s=n.filter(([o,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(l=>r.map(([c])=>c).includes(l)):!1).filter(o=>!r.includes(o));throw new Dr(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[s,o]of n)this._resolver.addLanguage(o);for(const[s,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class RR{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let bs=0;function IR(e){bs+=1,e.warnings!==!1&&bs>=10&&bs%10===0&&console.warn(`[Shiki] ${bs} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Dr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(iu),s=new RR(e.engine,n),o=new PR(s,r,n,e.langAlias);let i;function a(m){return Dm(m,e.langAlias)}function l(m){b();const v=o.getGrammar(typeof m=="string"?m:m.name);if(!v)throw new Dr(`Language \`${m}\` not found, you may need to load it first`);return v}function c(m){if(m==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();const v=o.getTheme(m);if(!v)throw new Dr(`Theme \`${m}\` not found, you may need to load it first`);return v}function u(m){b();const v=c(m);i!==m&&(o.setTheme(v),i=m);const w=o.getColorMap();return{theme:v,colorMap:w}}function f(){return b(),o.getLoadedThemes()}function d(){return b(),o.getLoadedLanguages()}function p(...m){b(),o.loadLanguages(m.flat(1))}async function h(...m){return p(await Nm(m))}function g(...m){b();for(const v of m.flat(1))o.loadTheme(v)}async function y(...m){return b(),g(await Mm(m))}function b(){if(t)throw new Dr("Shiki instance has been disposed")}function _(){t||(t=!0,o.dispose(),bs-=1)}return{setTheme:u,getTheme:c,getLanguage:l,getLoadedThemes:f,getLoadedLanguages:d,resolveLangAlias:a,loadLanguage:h,loadLanguageSync:p,loadTheme:y,loadThemeSync:g,dispose:_,[Symbol.dispose]:_}}async function OR(e){e.engine||TR("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Mm(e.themes||[]),Nm(e.langs||[]),e.engine]);return IR({...e,themes:t,langs:n,engine:r})}async function $R(e){const t=await OR(e);return{getLastGrammarState:(...n)=>hR(t,...n),codeToTokensBase:(n,r)=>su(t,n,r),codeToTokensWithThemes:(n,r)=>Lm(t,n,r),codeToTokens:(n,r)=>Si(t,n,r),codeToHast:(n,r)=>Ei(t,n,r),codeToHtml:(n,r)=>ER(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function cs(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function LR(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const au=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Qe=String.raw;function us(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Fm=Qe`\[\^?`,Bm=`c.? | C(?:-.?)?|${Qe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Qe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Qe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Qe`o\{[^\}]*\}?`}|${Qe`\d{1,3}`}`,lu=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Io=new RegExp(Qe`
42
- \\ (?:
43
- ${Bm}
44
- | [gk]<[^>]*>?
45
- | [gk]'[^']*'?
46
- | .
47
- )
48
- | \( (?:
49
- \? (?:
50
- [:=!>({]
51
- | <[=!]
52
- | <[^>]*>
53
- | '[^']*'
54
- | ~\|?
55
- | #(?:[^)\\]|\\.?)*
56
- | [^:)]*[:)]
57
- )?
58
- | \*[^\)]*\)?
59
- )?
60
- | (?:${lu.source})+
61
- | ${Fm}
62
- | .
63
- `.replace(/\s+/g,""),"gsu"),Ba=new RegExp(Qe`
64
- \\ (?:
65
- ${Bm}
66
- | .
67
- )
68
- | \[:(?:\^?\p{Alpha}+|\^):\]
69
- | ${Fm}
70
- | &&
71
- | .
72
- `.replace(/\s+/g,""),"gsu");function NR(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=eI(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(f){s.push(f)},replaceCurrentModX(f){s[s.length-1]=f},singleline:n.rules.singleline};let i=[],a;for(Io.lastIndex=0;a=Io.exec(e);){const f=MR(o,e,a[0],Io.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(Io.lastIndex=f.lastIndex)}const l=[];let c=0;i.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++c:f.raw==="("&&l.push(f)}),c||l.forEach((f,d)=>{f.kind="capturing",f.number=d+1});const u=c||l.length;return{tokens:i.map(f=>f.type==="EscapedNumber"?nI(f,u):f).flat(),flags:r}}function MR(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=DR(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:bd(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:WR(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:qm(n)}}if(o==="K")return{token:zm("keep",n)};if(o==="N"||o==="R")return{token:ir("newline",n,{negate:o==="N"})};if(o==="O")return{token:ir("any",n)};if(o==="X")return{token:ir("text_segment",n)};const i=jm(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:YR(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:JR(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Lr("group",n)};if(n==="(?>")return{token:Lr("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Lr(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Lr("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Lr("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:UR(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
73
- `,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:ir("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Qe`\A`,$:Qe`\Z`}[n]:n;return{token:bd(i,n)}}return n==="|"?{token:BR(n)}:lu.test(n)?{tokens:rI(n)}:{token:xn(cs(n),n)}}function DR(e,t,n){const r=[vd(t[1]==="^",t)];let s=1,o;for(Ba.lastIndex=n;o=Ba.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(vd(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(xn(93,i));else if(s--,r.push(jR(i)),!s)break}else{const a=FR(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:Ba.lastIndex||e.length}}function FR(e){if(e[0]==="\\")return jm(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!au.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return ir("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?qR(e):e==="&&"?zR(e):xn(cs(e),e)}function jm(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return XR(e);if("dDhHsSwW".includes(n))return QR(e);if(e.startsWith(Qe`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return ZR(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...s].map(i=>{const a=[...o.encode(i)].map(l=>`\\x${l.toString(16)}`).join("");return xn(cs(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return xn(tI(e),e);if(wd.has(n))return xn(wd.get(n),e);if(/\d/.test(n))return HR(t,e);if(e==="\\")throw new Error(Qe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return xn(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function BR(e){return{type:"Alternator",raw:e}}function bd(e,t){return{type:"Assertion",kind:e,raw:t}}function qm(e){return{type:"Backreference",raw:e}}function xn(e,t){return{type:"Character",value:e,raw:t}}function jR(e){return{type:"CharacterClassClose",raw:e}}function qR(e){return{type:"CharacterClassHyphen",raw:e}}function zR(e){return{type:"CharacterClassIntersector",raw:e}}function vd(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function ir(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function zm(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:us(n.flags),raw:t}}function HR(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function UR(e){return{type:"GroupClose",raw:e}}function Lr(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function GR(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function VR(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function WR(e){return{type:"Subroutine",raw:e}}const KR=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),wd=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function XR(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return xn(cs(t.toUpperCase())-64,e)}function JR(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=xd(n),i=xd(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),zm("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,Lr("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function YR(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:s}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=s?s.split(",").filter(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[i,a,l]=o,c=KR.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${a}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof a=="number"||!/^(?:[<>!=]=|[<>])$/.test(a))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${a}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return GR(c,r??null,s?.split(",")??null,e)}function _d(e){let t=null,n,r;if(e[0]==="{"){const{minStr:s,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+s>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+s,r=o===void 0?+s:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return VR(t,n,r,e)}function QR(e){const t=e[1].toLowerCase();return ir({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function ZR(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return ir("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function xd(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function eI(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function tI(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function nI(e,t){const{raw:n,inCharClass:r}=e,s=n.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=t))return[qm(n)];const o=[],i=s.match(/^[0-7]+|\d/g);for(let a=0;a<i.length;a++){const l=i[a];let c;if(a===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(Qe`Octal encoded byte above 177 unsupported "${n}"`)}else c=cs(l);o.push(xn(c,(a===0?"\\":"")+l))}return o}function rI(e){const t=[],n=new RegExp(lu,"gy");let r;for(;r=n.exec(e);){const s=r[0];if(s[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(s);if(o){const{min:i,max:a}=o.groups;if(+i>+a&&s.endsWith("?")){n.lastIndex--,t.push(_d(s.slice(0,-1)));continue}}}t.push(_d(s))}return t}function Hm(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function sI(e){return oI.has(e.type)}const oI=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Um(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=NR(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(d,p)=>{const h=r.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,h.type){case"Alternator":return vr();case"Assertion":return iI(h);case"Backreference":return aI(h,o);case"Character":return sa(h.value,{useLastValid:!!p.isCheckingRangeEnd});case"CharacterClassHyphen":return lI(h,o,p);case"CharacterClassOpen":return cI(h,o,p);case"CharacterSet":return uI(h,o);case"Directive":return mI(h.kind,{flags:h.flags});case"GroupOpen":return fI(h,o,p);case"NamedCallout":return bI(h.kind,h.tag,h.arguments);case"Quantifier":return dI(h,o);case"Subroutine":return pI(h,o);default:throw new Error(`Unexpected token type "${h.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},i=wI(yI(r.flags));let a=i.body[0];for(;o.nextIndex<r.tokens.length;){const d=s(a,{});d.type==="Alternative"?(i.body.push(d),a=d):a.body.push(d)}const{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:f}=o;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of f)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined");d&&(l[d-1].isSubroutined=!0)}else if(u.has(d)){if(u.get(d).length>1)throw new Error(Qe`Subroutine uses a duplicate group name "\g<${d}>"`);u.get(d)[0].isSubroutined=!0}else throw new Error(Qe`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function iI({kind:e}){return Kl(us({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Qe`\B`||e===Qe`\Y`})}function aI({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),s=(o,i=!1)=>{const a=t.capturingGroups.length;let l=!1;if(o>a)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Xl(i?a+1-o:o,{orphan:l})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return Xl(r)}return s(+r)}function lI(e,t,n){const{tokens:r,walk:s}=t,o=t.parent,i=o.body.at(-1),a=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&a&&a.type!=="CharacterClassOpen"&&a.type!=="CharacterClassClose"&&a.type!=="CharacterClassIntersector"){const l=s(o,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&l.type==="Character")return o.body.pop(),gI(i,l);throw new Error("Invalid character class range")}return sa(cs("-"))}function cI({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[Uo()];let a=Sd(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push(Uo()),t.nextIndex++;else{const c=i.at(-1);c.body.push(s(c,n))}a=Sd(r[t.nextIndex],o)}const l=Uo({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(c=>c.body.length===1?c.body[0]:c)),t.nextIndex++,l}function uI({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const a=oa(n);if(au.has(a)&&!i?.has(a))e="posix",n=a;else return Nr(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?vI(n,{negate:t}):Jl(e,{negate:t})}function fI(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=_I(e),c=l.type==="AbsenceFunction",u=Cd(l),f=u&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&LR(o,l.name,[]).push(l)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=Ed(r[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(vr()),t.nextIndex++;else{const p=l.body.at(-1),h=a(p,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||f});if(p.body.push(h),(u||n.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(kd(h)||h.type==="CapturingGroup")throw new Error(g)}else if(kd(h)||Cd(h)&&h.negate)throw new Error(g)}}d=Ed(r[t.nextIndex])}return t.nextIndex++,l}function dI({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!sI(o))throw new Error("Quantifier requires a repeatable token");const i=Vm(e,t,n,o);return s.body.pop(),i}function pI({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let s=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const a=+o.groups.num,l=n.length;if(t.hasNumberedRef=!0,s={"":a,"+":l+a,"-":l+1-a}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const i=Wm(s);return r.push(i),i}function hI(e,t){return{type:"AbsenceFunction",kind:e,body:oo(t?.body)}}function vr(e){return{type:"Alternative",body:Km(e?.body)}}function Kl(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function Xl(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Gm(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!xI(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:oo(t?.body)}}function sa(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function Uo(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Km(e?.body)}}function gI(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Jl(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function mI(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:us(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function yI(e){return{type:"Flags",...e}}function Wt(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:oo(e?.body)}}function rr(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:oo(e?.body)}}function bI(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function vI(e,t){const n=!!t?.negate;if(!au.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Vm(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function wI(e,t){return{type:"Regex",body:oo(t?.body),flags:e}}function Wm(e){return{type:"Subroutine",ref:e}}function Nr(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(oa(e));if(!r){if(n.normalizeUnknownPropertyNames)r=kI(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Qe`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function _I({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return hI("repeater");case"atomic":return Wt({atomic:!0});case"capturing":return Gm(s,{name:n});case"group":return Wt({flags:e});case"lookahead":case"lookbehind":return rr({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function oo(e){if(e===void 0)e=[vr()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function Km(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function kd(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Cd(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function xI(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function kI(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function oa(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Sd(e,t){return us(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function Ed(e){return us(e,"Unclosed group")}function $s(e,t,n=null){function r(o,i){for(let a=0;a<o.length;a++){const l=s(o[a],i,a,o);a=Math.max(-1,a+l)}}function s(o,i=null,a=null,l=null){let c=0,u=!1;const f={node:o,parent:i,key:a,container:l,root:e,remove(){Oo(l).splice(Math.max(0,Rr(a)+c),1),c--,u=!0},removeAllNextSiblings(){return Oo(l).splice(Rr(a)+1)},removeAllPrevSiblings(){const b=Rr(a)+c;return c-=b,Oo(l).splice(0,Math.max(0,b))},replaceWith(b,_={}){const m=!!_.traverse;l?l[Math.max(0,Rr(a)+c)]=b:us(i,"Can't replace root node")[a]=b,m&&s(b,i,a,l),u=!0},replaceWithMultiple(b,_={}){const m=!!_.traverse;if(Oo(l).splice(Math.max(0,Rr(a)+c),1,...b),c+=b.length-1,m){let v=0;for(let w=0;w<b.length;w++)v+=s(b[w],i,Rr(a)+w+v,l)}u=!0},skip(){u=!0}},{type:d}=o,p=t["*"],h=t[d],g=typeof p=="function"?p:p?.enter,y=typeof h=="function"?h:h?.enter;if(g?.(f,n),y?.(f,n),!u)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":r(o.body,o);break;case"Alternative":case"CharacterClass":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":s(o.min,o,"min"),s(o.max,o,"max");break;case"LookaroundAssertion":r(o.body,o);break;case"Quantifier":s(o.body,o,"body");break;case"Regex":r(o.body,o),s(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return h?.exit?.(f,n),p?.exit?.(f,n),c}return s(e),e}function Oo(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Rr(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const CI=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function SI(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function EI(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const qt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function cu(e,t,n,r){const s=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let i=0,a="";for(const l of e.matchAll(s)){const{0:c,groups:{$skip:u}}=l;if(!u&&(!r||r===qt.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?qt.CHAR_CLASS:qt.DEFAULT,negated:o[o.length-1]}):a+=n;continue}c[0]==="["?(i++,o.push(c[1]==="^")):c==="]"&&i&&(i--,o.pop()),a+=c}return a}function Xm(e,t,n,r){cu(e,t,n,r)}function AI(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const s=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=n;let o=0,i;for(;i=s.exec(e);){const{0:a,groups:{$skip:l}}=i;if(!l&&(!r||r===qt.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function $o(e,t,n){return!!AI(e,t,0,n)}function TI(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,s=0,o=1,i;for(;i=n.exec(e);){const[a]=i;if(a==="[")s++;else if(s)a==="]"&&s--;else if(a==="(")o++;else if(a===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const Ad=new RegExp(String.raw`(?<noncapturingStart>${CI})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function PI(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",i=[0],a=[];let l=0,c=0,u=NaN,f;do{f=!1;let d=0,p=0,h=!1,g;for(Ad.lastIndex=Number.isNaN(u)?0:u+o.length;g=Ad.exec(e);){const{0:y,index:b,groups:{capturingStart:_,noncapturingStart:m}}=g;if(y==="[")d++;else if(d)y==="]"&&d--;else if(y===s&&!h)u=b,h=!0;else if(h&&m)p++;else if(_)h?p++:(l++,i.push(l+c));else if(y===")"&&h){if(!p){c++;const v=l+c;if(e=`${e.slice(0,u)}${o}${e.slice(u+s.length,b)}))<$$${v}>)${e.slice(b+1)}`,f=!0,a.push(v),SI(n,v),r.size){const w=new Map;r.forEach((S,P)=>{w.set(P>=v?P+1:P,S.map(T=>T>=v?T+1:T))}),r=w}break}p--}}}while(f);return n.push(...a),e=cu(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:p,wrappedBackrefNum:h}})=>{if(p){const g=+p;if(g>i.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${i[g]}`}return`\\${h}`},qt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Jm=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ja=new RegExp(String.raw`
74
- \\(?: \d+
75
- | c[A-Za-z]
76
- | [gk]<[^>]+>
77
- | [pPu]\{[^\}]+\}
78
- | u[A-Fa-f\d]{4}
79
- | x[A-Fa-f\d]{2}
80
- )
81
- | \((?: \? (?: [:=!>]
82
- | <(?:[=!]|[^>]+>)
83
- | [A-Za-z\-]+:
84
- | \(DEFINE\)
85
- ))?
86
- | (?<qBase>${Jm})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
87
- | \\?.
88
- `.replace(/\s+/g,""),"gsu");function RI(e){if(!new RegExp(`${Jm}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(ja.lastIndex=0;i=ja.exec(e);){const{0:a,index:l,groups:{qBase:c,qMod:u,invalidQ:f}}=i;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(u==="+"&&s&&!s.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${a}"`);let d=-1;if(/^\{\d+\}$/.test(c))e=EI(e,l+c.length,u,"");else{if(s===")"||s==="]"){const p=s===")"?n:r;if(p===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,p)}(?>${e.slice(p,l)}${c})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${c})${e.slice(l+a.length)}`;d+=4}ja.lastIndex+=d}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const jt=String.raw,II=jt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Yl=jt`\(\?R=(?<rDepth>[^\)]+)\)|${II}`,ia=jt`\(\?<(?![=!])(?<captureName>[^>]+)>`,Ym=jt`${ia}|(?<unnamed>\()(?!\?)`,er=new RegExp(jt`${ia}|${Yl}|\(\?|\\?.`,"gsu"),qa="Cannot use multiple overlapping recursions";function OI(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=t?.captureTransfers??new Map;if(!new RegExp(Yl,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&$o(e,jt`\(\?\(DEFINE\)`,qt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=$o(e,jt`\\[1-9]`,qt.DEFAULT),a=new Map,l=[];let c=!1,u=0,f=0,d;for(er.lastIndex=0;d=er.exec(e);){const{0:p,groups:{captureName:h,rDepth:g,gRNameOrNum:y,gRDepth:b}}=d;if(p==="[")u++;else if(u)p==="]"&&u--;else if(g){if(Td(g),c)throw new Error(qa);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const _=e.slice(0,d.index),m=e.slice(er.lastIndex);if($o(m,Yl,qt.DEFAULT))throw new Error(qa);const v=+g-1;e=Pd(_,m,v,!1,n,o,f),s=Id(s,_,v,o.length,0,f);break}else if(y){Td(b);let _=!1;for(const U of l)if(U.name===y||U.num===+y){if(_=!0,U.hasRecursedWithin)throw new Error(qa);break}if(!_)throw new Error(jt`Recursive \g cannot be used outside the referenced group "${r==="external"?y:jt`\g<${y}&R=${b}>`}"`);const m=a.get(y),v=TI(e,m);if(i&&$o(v,jt`${ia}|\((?!\?)`,qt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const w=e.slice(m,d.index),S=v.slice(w.length+p.length),P=o.length,T=+b-1,R=Pd(w,S,T,!0,n,o,f);s=Id(s,w,T,o.length-P,P,f);const N=e.slice(0,m),X=e.slice(m+v.length);e=`${N}${R}${X}`,er.lastIndex+=R.length-p.length-w.length-S.length,l.forEach(U=>U.hasRecursedWithin=!0),c=!0}else if(h)f++,a.set(String(f),er.lastIndex),a.set(h,er.lastIndex),l.push({num:f,name:h});else if(p[0]==="("){const _=p==="(";_&&(f++,a.set(String(f),er.lastIndex)),l.push(_?{num:f}:{})}else p===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function Td(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Pd(e,t,n,r,s,o,i){const a=new Set;r&&Xm(e+t,ia,({groups:{captureName:c}})=>{a.add(c)},qt.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${Rd(`(?:${e}`,"forward",...l)}(?:)${Rd(`${t})`,"backward",...l)}${t}`}function Rd(e,t,n,r,s,o,i){const l=u=>t==="forward"?u+2:n-u+2-1;let c="";for(let u=0;u<n;u++){const f=l(u);c+=cu(e,jt`${Ym}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:p,unnamed:h,backref:g}})=>{if(g&&r&&!r.has(g))return d;const y=`_$${f}`;if(h||p){const b=i+o.length+1;return o.push(b),$I(s,b),h?d:`(?<${p}${y}>`}return jt`\k<${g}${y}>`},qt.DEFAULT)}return c}function $I(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Id(e,t,n,r,s,o){if(e.size&&r){let i=0;Xm(t,Ym,()=>i++,qt.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((c,u)=>{const f=(r-i*n)/n,d=i*n,p=u>a+i?u+r:u,h=[];for(const g of c)if(g<=a)h.push(g);else if(g>a+i+f)h.push(g+r);else if(g<=a+i)for(let y=0;y<=n;y++)h.push(g+i*y);else for(let y=0;y<=n;y++)h.push(g+d+f*y);l.set(p,h)}),l}return e}var Xe=String.fromCodePoint,de=String.raw,kn={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};kn.bugFlagVLiteralHyphenIsRange=kn.unicodeSets?(()=>{try{new RegExp(de`[\d\-a]`,"v")}catch{return!0}return!1})():!1;kn.bugNestedClassIgnoresNegation=kn.unicodeSets&&new RegExp("[[^a]]","v").test("a");function Ai(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Ks(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function Ql(e,t){return Od[e]>=Od[t]}function LI(e,t){if(e==null)throw new Error(t??"Value expected");return e}var Od={ES2025:2025,ES2024:2024,ES2018:2018},NI={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Qm(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!NI[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=kn.flagGroups?"ES2025":kn.unicodeSets?"ES2024":"ES2018"),t}var MI="[ -\r ]",DI=new Set([Xe(304),Xe(305)]),mn=de`[\p{L}\p{M}\p{N}\p{Pc}]`;function Zm(e){if(DI.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=jI.get(n),o=FI.get(n),i=BI.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),s&&t.add(s),t.add(n),o&&t.add(o),[...t]}var uu=new Map(`C Other
89
- Cc Control cntrl
90
- Cf Format
91
- Cn Unassigned
92
- Co Private_Use
93
- Cs Surrogate
94
- L Letter
95
- LC Cased_Letter
96
- Ll Lowercase_Letter
97
- Lm Modifier_Letter
98
- Lo Other_Letter
99
- Lt Titlecase_Letter
100
- Lu Uppercase_Letter
101
- M Mark Combining_Mark
102
- Mc Spacing_Mark
103
- Me Enclosing_Mark
104
- Mn Nonspacing_Mark
105
- N Number
106
- Nd Decimal_Number digit
107
- Nl Letter_Number
108
- No Other_Number
109
- P Punctuation punct
110
- Pc Connector_Punctuation
111
- Pd Dash_Punctuation
112
- Pe Close_Punctuation
113
- Pf Final_Punctuation
114
- Pi Initial_Punctuation
115
- Po Other_Punctuation
116
- Ps Open_Punctuation
117
- S Symbol
118
- Sc Currency_Symbol
119
- Sk Modifier_Symbol
120
- Sm Math_Symbol
121
- So Other_Symbol
122
- Z Separator
123
- Zl Line_Separator
124
- Zp Paragraph_Separator
125
- Zs Space_Separator
126
- ASCII
127
- ASCII_Hex_Digit AHex
128
- Alphabetic Alpha
129
- Any
130
- Assigned
131
- Bidi_Control Bidi_C
132
- Bidi_Mirrored Bidi_M
133
- Case_Ignorable CI
134
- Cased
135
- Changes_When_Casefolded CWCF
136
- Changes_When_Casemapped CWCM
137
- Changes_When_Lowercased CWL
138
- Changes_When_NFKC_Casefolded CWKCF
139
- Changes_When_Titlecased CWT
140
- Changes_When_Uppercased CWU
141
- Dash
142
- Default_Ignorable_Code_Point DI
143
- Deprecated Dep
144
- Diacritic Dia
145
- Emoji
146
- Emoji_Component EComp
147
- Emoji_Modifier EMod
148
- Emoji_Modifier_Base EBase
149
- Emoji_Presentation EPres
150
- Extended_Pictographic ExtPict
151
- Extender Ext
152
- Grapheme_Base Gr_Base
153
- Grapheme_Extend Gr_Ext
154
- Hex_Digit Hex
155
- IDS_Binary_Operator IDSB
156
- IDS_Trinary_Operator IDST
157
- ID_Continue IDC
158
- ID_Start IDS
159
- Ideographic Ideo
160
- Join_Control Join_C
161
- Logical_Order_Exception LOE
162
- Lowercase Lower
163
- Math
164
- Noncharacter_Code_Point NChar
165
- Pattern_Syntax Pat_Syn
166
- Pattern_White_Space Pat_WS
167
- Quotation_Mark QMark
168
- Radical
169
- Regional_Indicator RI
170
- Sentence_Terminal STerm
171
- Soft_Dotted SD
172
- Terminal_Punctuation Term
173
- Unified_Ideograph UIdeo
174
- Uppercase Upper
175
- Variation_Selector VS
176
- White_Space space
177
- XID_Continue XIDC
178
- XID_Start XIDS`.split(/\s/).map(e=>[oa(e),e])),FI=new Map([["s",Xe(383)],[Xe(383),"s"]]),BI=new Map([[Xe(223),Xe(7838)],[Xe(107),Xe(8490)],[Xe(229),Xe(8491)],[Xe(969),Xe(8486)]]),jI=new Map([Ln(453),Ln(456),Ln(459),Ln(498),...za(8072,8079),...za(8088,8095),...za(8104,8111),Ln(8124),Ln(8140),Ln(8188)]),qI=new Map([["alnum",de`[\p{Alpha}\p{Nd}]`],["alpha",de`\p{Alpha}`],["ascii",de`\p{ASCII}`],["blank",de`[\p{Zs}\t]`],["cntrl",de`\p{Cc}`],["digit",de`\p{Nd}`],["graph",de`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",de`\p{Lower}`],["print",de`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",de`[\p{P}\p{S}]`],["space",de`\p{space}`],["upper",de`\p{Upper}`],["word",de`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",de`\p{AHex}`]]);function zI(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Ln(e){const t=Xe(e);return[t.toLowerCase(),t]}function za(e,t){return zI(e,t).map(n=>Ln(n))}var ey=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function HI(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};ty(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Ql(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};$s(e,UI,r);const s={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};$s(e,GI,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return $s(e,VI,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var UI={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=Wt();o.body[0].body.push(rr({negate:!0,body:r}),Nr("Any"));const i=Wt();i.body[0].body.push(Vm("greedy",0,1/0,o)),n(He(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++){const i=t.body[o];Ks(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=ry(t.get(e));if(n){const r=Wt({flags:n});r.body[0].body=e.body,e.body=[He(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:i},a){const{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:f,supportedGNodes:d,wordIsAscii:p}=a;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")i(He(rr({body:[vr({body:[Kl("string_end")]}),vr({body:[sa(10)]})]}),t));else if(l==="line_start")i(He(yn(de`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(d.has(e))s.flags.sticky=!0,o();else{const h=r[n-1];if(h&&QI(h))i(He(rr({negate:!0}),t));else{if(f)throw new Error(de`Uses "\G" in a way that requires a subclass`);i(Nn(Kl("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(He(yn(de`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!p&&!u){const h=`(?:(?<=${mn})(?!${mn})|(?<!${mn})(?=${mn}))`,g=`(?:(?<=${mn})(?=${mn})|(?<!${mn})(?!${mn}))`;i(He(yn(c?g:h),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ua(n)&&(n=Ha(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Ua(r)&&(r=Ha(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=Uo({body:[e]});n(He(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:a}){const{kind:l,negate:c,value:u}=e;if(o&&(l==="digit"||u==="digit")){n(Nn(Jl("digit",{negate:c}),t));return}if(i&&(l==="space"||u==="space")){n(He(Ga(yn(MI),c),t));return}if(a&&(l==="word"||u==="word")){n(Nn(Jl("word",{negate:c}),t));return}if(l==="any")n(Nn(Nr("Any"),t));else if(l==="digit")n(Nn(Nr("Nd",{negate:c}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(de`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=de`\p{RI}{2}|${f}(?:\u200D${f})*`;n(He(yn(de`(?>\r\n|${s?de`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(Nn(Nr("AHex",{negate:c}),t));else if(l==="newline")n(He(yn(c?`[^
179
- ]`:`(?>\r
180
- ?|[
181
- \v\f…\u2028\u2029])`),t));else if(l==="posix")if(!s&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[u];c&&(f=`\0-${Xe(f.codePointAt(0)-1)}${Xe(f.codePointAt(2)+1)}-􏿿`),n(He(yn(`[${f}]`),t))}else n(He(Ga(yn(qI.get(u)),c),t));else if(l==="property")uu.has(oa(u))||(e.key="sc");else if(l==="space")n(Nn(Nr("space",{negate:c}),t));else if(l==="word")n(He(Ga(yn(mn),c),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:i}){const{kind:a,flags:l}=e;if(a==="flags")if(!l.enable&&!l.disable)r();else{const c=Wt({flags:l});c.body[0].body=i(),s(He(c,t),{traverse:!0})}else if(a==="keep"){const c=n.body[0],f=n.body.length===1&&Hm(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(de`Uses "\K" in a way that's unsupported`);const d=rr({behind:!0});d.body[0].body=o(),s(He(d,t))}else throw new Error(`Unexpected directive kind "${a}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(He(rr({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=Wt();t.body[0].body.push(e.body),e.body=He(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,s=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const i=oy(o.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):s=!0}r&&!s&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(de`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ua(n)&&(n=Ha(n,t),e.ref=n)}},GI={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:s}=e;r||n.set(e,[...t.get(s).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:a,reffedNodesByReferencer:l}){const c=s.get(e);if(c&&a.has(e.number)){const f=Nn($d(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&Ks(i,e.name,[]);const u=i.get(e.name??e.number);for(let f=0;f<u.length;f++){const d=u[f];if(c===d.node||c&&c===d.origin||e===d.origin){u.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:c}),e.name&&i.get(e.name).push({node:e,origin:c}),e.name){const f=Ks(o,e.name,new Map);let d=!1;if(c)d=!0;else for(const p of f.values())if(!p.hasDuplicateNameToRemove){d=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:d})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Ai(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:s,ref:o}=e;if(s){let u=t;for(;(u=u.parent)&&!(u.type==="CapturingGroup"&&(u.name===o||u.number===o)););r.reffedNodesByReferencer.set(e,u);return}const i=r.subroutineRefMap.get(o),a=o===0,l=a?$d(0):ny(i,r.groupOriginByCopy,null);let c=l;if(!a){const u=ry(XI(i,d=>d.type==="Group"&&!!d.flags)),f=u?Ai(r.globalFlags,u):r.globalFlags;WI(f,r.currentFlags)||(c=Wt({flags:JI(f)}),c.body[0].body.push(l))}n(He(c,t),{traverse:!a})}},VI={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const o=r.reffedNodesByReferencer.get(e).filter(i=>KI(i,e));if(!o.length)n(He(rr({negate:!0}),t));else if(o.length>1){const i=Wt({atomic:!0,body:o.reverse().map(a=>vr({body:[Xl(a.number)]}))});n(He(i,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const s=Gm();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function ty(e){$s(e,{"*"({node:t,parent:n}){t.parent=n}})}function WI(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function KI(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=sy(n.parent);for(const s of r){if(s===n)break;if(s===e||iy(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function ny(e,t,n,r){const s=Array.isArray(e)?[]:{};for(const[o,i]of Object.entries(e))o==="parent"?s.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?s[o]=ny(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function $d(e){const t=Wm(e);return t.isRecursive=!0,t}function XI(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function Ha(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function ry(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{r.enable?.[s]&&(delete n.disable[s],n.enable[s]=!0),r.disable?.[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function JI({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function sy(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function oy(e){const t=e.find(n=>n.kind==="search_start"||ZI(n,{negate:!1})||!YI(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const s=oy(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function iy(e,t){const n=sy(e)??[];for(const r of n)if(r===t||iy(r,t))return!0;return!1}function YI({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function QI(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function ZI(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Hm(e.body[0],{type:"Assertion",kind:"search_start"})}function Ua(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function yn(e,t){const r=Um(e,{...t,unicodePropertyMap:uu}).body;return r.length>1||r[0].body.length>1?Wt({body:r}):r[0].body[0]}function Ga(e,t){return e.negate=t,e}function Nn(e,t){return e.parent=t,e}function He(e,t){return ty(e),e.parent=t,e}function eO(e,t){const n=Qm(t),r=Ql(n.target,"ES2024"),s=Ql(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!s){const p=[e.flags.ignoreCase];$s(e,tO,{getCurrentModI:()=>p.at(-1),popModI(){p.pop()},pushModI(h){p.push(h)},setHasCasedChar(){p.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!a)};let c=e;const u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&a),useFlagMods:s,useFlagV:r,verbose:n.verbose};function f(p){return u.lastNode=c,c=p,LI(nO[p.type],`Unexpected node type "${p.type}"`)(p,u,f)}const d={pattern:e.body.map(f).join("|"),flags:f(e.flags),options:{...e.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],u.captureMap.forEach((p,h)=>{p.hidden&&d._hiddenCaptures.push(h),p.transferTo&&Ks(d._captureTransfers,p.transferTo,[]).push(h)}),d}var tO={"*":{enter({node:e},t){if(Nd(e)){const n=t.getCurrentModI();t.pushModI(e.flags?Ai({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Nd(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){fu(Xe(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),ay(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&ey.has(e.value)&&t.setHasCasedChar()}},nO={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?de`\B`:de`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:s,number:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(i.hidden=!0,o>a.number&&(i.transferTo=a.number)),t.captureMap.set(o,i),`(${s?`?<${s}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Xe(e),r=Ir(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&fu(n)){const s=Zm(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:s,parent:o}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");kn.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Md)&&(i=[sa(45),...i.filter(c=>!Md(c))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||kn.bugNestedClassIgnoresNegation)&&!s){const u=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(u.length){const f=Wt(),d=f.body[0];return f.parent=o,d.parent=f,i=i.filter(p=>!u.includes(p)),e.body=i,i.length?(e.parent=d,d.body.push(e)):f.body.pop(),u.forEach(p=>{const h=vr({body:[p]});p.parent=h,h.parent=f,f.body.push(h)}),n(f)}}t.inCharClass=!0;const c=a();return t.inCharClass=!1,c}const l=i[0];if(r==="union"&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(kn.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&l.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return a()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=Ir(n,s),i=Ir(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=ay(e);aO(l).forEach(u=>{a.add(Array.isArray(u)?`${Ir(u[0],s)}-${Ir(u[1],s)}`:Ir(u,s))})}return`${o}-${i}${[...a].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},s){if(e==="dot")return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":de`[^\n]`;if(e==="digit")return t?de`\D`:de`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&ey.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?de`\P`:de`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?de`\W`:de`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},s,o){const i=s.currentFlags;n&&(s.currentFlags=Ai(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${lO(e,n,s.useFlagMods)}${a})`;return s.currentFlags=i,l},LookaroundAssertion({body:e,kind:t,negate:n},r,s){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(s).join("|")})`},Quantifier(e,t,n){return n(e.body)+cO(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:de`\g<${t}&R=${r}>`}},rO=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),sO=new Set(["-","\\","]","^","["]),oO=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Ld=new Map([[9,de`\t`],[10,de`\n`],[11,de`\v`],[12,de`\f`],[13,de`\r`],[8232,de`\u2028`],[8233,de`\u2029`],[65279,de`\uFEFF`]]),iO=new RegExp("^\\p{Cased}$","u");function fu(e){return iO.test(e)}function ay(e,t){const n=!!t?.firstOnly,r=e.min.value,s=e.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let i=r;i<=s;i++){const a=Xe(i);if(!fu(a))continue;const l=Zm(a).filter(c=>{const u=c.codePointAt(0);return u<r||u>s});if(l.length&&(o.push(...l),n))break}return o}function Ir(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Ld.has(e))return Ld.get(e);if(e<32||e>126&&e<160||e>262143||t&&uO(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?oO:sO:rO,o=Xe(e);return(s.has(o)?"\\":"")+o}function aO(e){const t=e.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[];let r=null;for(let s=0;s<t.length;s++)t[s+1]===t[s]+1?r??=t[s]:r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function lO(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function cO({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function Nd({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function uO(e){return e>47&&e<58}function Md({type:e,value:t}){return e==="Character"&&t===45}var fO=class Zl extends RegExp{#e=new Map;#t=null;#r;#n=null;#s=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,n,r){const s=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),this.#r=o.source,o instanceof Zl&&(this.#e=o.#e,this.#n=o.#n,this.#s=o.#s,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(s?"":t,n),this.#r=t,this.#e=pO(o.hiddenCaptures,o.transfers),this.#s=o.strategy,this.rawOptions=r??{}}s||(this.#t=this)}exec(t){if(!this.#t){const{lazyCompile:s,...o}=this.rawOptions;this.#t=new Zl(this.#r,this.flags,o)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#s==="clip_search"&&n&&r){this.lastIndex=0;const s=this.#o(t.slice(r));return s&&(dO(s,r,t,this.hasIndices),this.lastIndex+=r),s}return this.#o(t)}#o(t){this.#t.lastIndex=this.lastIndex;const n=super.exec.call(this.#t,t);if(this.lastIndex=this.#t.lastIndex,!n||!this.#e.size)return n;const r=[...n];n.length=1;let s;this.hasIndices&&(s=[...n.indices],n.indices.length=1);const o=[0];for(let i=1;i<r.length;i++){const{hidden:a,transferTo:l}=this.#e.get(i)??{};if(a?o.push(null):(o.push(n.length),n.push(r[i]),this.hasIndices&&n.indices.push(s[i])),l&&r[i]!==void 0){const c=o[l];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(n[c]=r[i],this.hasIndices&&(n.indices[c]=s[i]),n.groups){this.#n||(this.#n=hO(this.source));const u=this.#n.get(l);u&&(n.groups[u]=r[i],this.hasIndices&&(n.indices.groups[u]=s[i]))}}}return n}};function dO(e,t,n,r){if(e.index+=t,e.input=n,r){const s=e.indices;for(let i=0;i<s.length;i++){const a=s[i];a&&(s[i]=[a[0]+t,a[1]+t])}const o=s.groups;o&&Object.keys(o).forEach(i=>{const a=o[i];a&&(o[i]=[a[0]+t,a[1]+t])})}}function pO(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,s]of t)for(const o of s)Ks(n,o,{}).transferTo=r;return n}function hO(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,s=0,o;for(;o=t.exec(e);){const{0:i,groups:{capture:a,name:l}}=o;i==="["?r++:r?i==="]"&&r--:a&&(s++,l&&n.set(s,l))}return n}function gO(e,t){const n=mO(e,t);return n.options?new fO(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function mO(e,t){const n=Qm(t),r=Um(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:uu}),s=HI(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=eO(s,n),i=OI(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=RI(i.pattern),l=PI(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),c={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const u=l.hiddenCaptures.sort((h,g)=>h-g),f=Array.from(l.captureTransfers),d=s._strategy,p=c.pattern.length>=n.lazyCompileLength;(u.length||f.length||d||p)&&(c.options={...u.length&&{hiddenCaptures:u},...f.length&&{transfers:f},...d&&{strategy:d},...p&&{lazyCompile:p}})}return c}const Dd=4294967295;class yO{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:s,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const a=s?.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s?.set(i,l),l}catch(l){if(s?.set(i,l),r)return null;throw l}})}regexps;findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function i(a,l,c=0){return{index:a,captureIndices:l.indices.map(u=>u==null?{start:Dd,end:Dd,length:0}:{start:u[0]+c,end:u[1]+c,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const c=l.exec(s);if(!c)continue;if(c.index===n)return i(a,c,0);o.push([a,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,c,u]of o)if(c.index===a)return i(l,c,u)}return null}}function bO(e,t){return gO(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function vO(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>bO(n,{target:t.target}),{createScanner(n){return new yO(n,t)},createString(n){return{content:n}}}}let wO;const vs=[];function _O(e){if(vs.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&vs.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&vs.forEach(n=>n(t))},get(){return wO.value},configurable:!0}),()=>{vs.splice(vs.indexOf(e),1)}}const ot=Y(null);async function ly(){ec.value&&(ot.value=await ec.value("/__sitemap__/debug.json"))}const ec=Y(),cy=Y(),uy=Y();_O(async e=>{ec.value=e.host.app.$fetch,Mt(()=>{uy.value=e.host.app.colorMode.value}),cy.value=e.devtools,ly()});const fy=Y();function xO(){return $R({themes:[xe(()=>import("./CVO1_9PV.js"),[],import.meta.url),xe(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[xe(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:vO()}).then(e=>{fy.value=e})}function kO(e,t){return $(()=>{const n=cy.value?.colorMode||"light";return fy.value.codeToHtml(Pe(e),{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const CO=["innerHTML"],SO=ue({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=$(()=>{const r=kO(t.code,"json");return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(E(),re("pre",{class:ye(["code-block p-5",e.lines?"code-block-lines":""]),innerHTML:n.value},null,10,CO))}}),dy=Object.assign(SO,{__name:"OCodeBlock"}),EO=["open"],AO={class:"flex-1 min-w-0"},TO={class:"section-label"},PO={key:0,class:"section-description"},RO=ue({__name:"OSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(e){const n=xE(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=Tn;return E(),re("details",{open:k(n),class:"section-block",onToggle:r},[W("summary",{class:ye(["section-header",e.collapse?"":"pointer-events-none"])},[W("div",{class:ye(["section-title",[k(n)?"":"opacity-60",e.headerClass]])},[e.icon?(E(),j(i,{key:0,name:e.icon,class:"section-icon"},null,8,["name"])):he("",!0),W("div",AO,[W("div",TO,[ne(s.$slots,"text",{},()=>[Be(_e(e.text),1)],!0)]),e.description||s.$slots.description?(E(),re("div",PO,[ne(s.$slots,"description",{},()=>[Be(_e(e.description),1)],!0)])):he("",!0)]),ne(s.$slots,"actions",{},void 0,!0),e.collapse?(E(),j(i,{key:1,name:"carbon:chevron-down",class:"chevron"})):he("",!0)],2)],2),W("div",{class:ye(["section-content",typeof e.padding=="string"?e.padding:e.padding?"px-4":""])},[ne(s.$slots,"details",{},void 0,!0),W("div",{class:ye(e.containerClass)},[ne(s.$slots,"default",{},void 0,!0)],2),ne(s.$slots,"footer",{},void 0,!0)],2)],40,EO)}}}),py=Object.assign(ng(RO,[["__scopeId","data-v-8d49b107"]]),{__name:"OSectionBlock"}),IO={class:"flex items-center gap-3"},OO={key:0,class:"flex items-center gap-1.5"},$O={key:0,class:"timing-badge"},LO={class:"font-semibold"},NO={class:"url-count"},MO={class:"flex items-center gap-3"},DO=["href"],FO={key:1,class:"text-xs text-[var(--color-text-muted)]"},BO={key:0,class:"flex items-center gap-2 text-red-500"},jO={key:0,class:"url-warnings"},qO={class:"url-warnings-header"},zO={class:"url-warnings-list"},HO={key:2,class:"hint-callout mt-3"},UO={class:"space-y-1"},GO=["innerHTML"],VO=ue({__name:"Source",props:{source:{},showContext:{type:Boolean}},setup(e){const t=e,n=$(()=>{const s=typeof t.source.fetch=="string"?t.source.fetch:t.source.fetch[0];return s.includes("http")?s:wr(ot.value?.nitroOrigin||"localhost",s)});function r(s){return s.replace(/`([^`]+)`/g,"<code>$1</code>")}return(s,o)=>{const i=Tn,a=dy,l=py;return E(),j(l,null,{text:V(()=>[W("div",IO,[e.source.fetch?(E(),re("div",OO,[Z(i,{name:"carbon:api-1",class:"text-[var(--color-text-muted)]"}),e.source.timeTakenMs?(E(),re("span",$O,_e(e.source.timeTakenMs)+"ms ",1)):he("",!0)])):he("",!0),W("span",LO,_e(e.source.context.name),1),W("span",NO,_e(e.source.urls?.length||0)+" URLs ",1)])]),description:V(()=>[W("div",MO,[e.source.fetch?(E(),re("a",{key:0,href:n.value,target:"_blank",class:"link-external text-sm"},_e(e.source.fetch),9,DO)):he("",!0),e.source.context.description?(E(),re("span",FO,_e(e.source.context.description),1)):he("",!0)])]),default:V(()=>[e.source.error?(E(),re("div",BO,[Z(i,{name:"carbon:warning"}),W("span",null,_e(e.source.error),1)])):(E(),re(be,{key:1},[e.source._urlWarnings?.length?(E(),re("div",jO,[W("div",qO,[Z(i,{name:"carbon:warning-alt"}),W("span",null,_e(e.source._urlWarnings.length)+" URL warning"+_e(e.source._urlWarnings.length>1?"s":""),1)]),W("ul",zO,[(E(!0),re(be,null,Ot(e.source._urlWarnings,(c,u)=>(E(),re("li",{key:u},[W("code",null,_e(c.loc),1),Be(" — "+_e(c.message),1)]))),128))])])):he("",!0),Z(a,{class:"max-h-[250px] overflow-y-auto",code:JSON.stringify(e.source.urls,null,2),lang:"json"},null,8,["code"])],64)),e.source.context.tips?.length?(E(),re("div",HO,[Z(i,{name:"carbon:idea",class:"hint-callout-icon text-base flex-shrink-0 mt-0.5"}),W("div",null,[o[0]||(o[0]=W("h3",{class:"text-xs font-semibold mb-1.5 text-[var(--color-text)] uppercase tracking-wide opacity-70"}," Hints ",-1)),W("ul",UO,[(E(!0),re(be,null,Ot(e.source.context.tips,(c,u)=>(E(),re("li",{key:u,class:"text-sm text-[var(--color-text-muted)] leading-relaxed",innerHTML:r(c)},null,8,GO))),128))])])])):he("",!0)]),_:1})}}}),WO=Object.assign(VO,{__name:"Source"});function KO(e){return(t,n)=>XO(t,n,k(e))}function XO(e,t,n){return FA(n,`messages.${e}`,e).replace(/\{(\w+)\}/g,(s,o)=>`${t?.[o]??`{${o}}`}`)}function JO(e){const t=$(()=>k(e).name),n=$(()=>k(e).code),r=$(()=>k(e).dir);return{lang:t,code:n,dir:r,locale:Ne(e)?e:Y(e),t:KO(e)}}function YO(e){return Zs(e,{dir:"ltr"})}const Fd=YO({name:"English",code:"en",messages:{inputMenu:{noMatch:"No matching data",noData:"No data",create:'Create "{label}"'},calendar:{prevYear:"Previous year",nextYear:"Next year",prevMonth:"Previous month",nextMonth:"Next month"},inputNumber:{increment:"Increment",decrement:"Decrement"},commandPalette:{placeholder:"Type a command or search...",noMatch:"No matching data",noData:"No data",close:"Close",back:"Back"},selectMenu:{noMatch:"No matching data",noData:"No data",create:'Create "{label}"',search:"Search..."},toast:{close:"Close"},carousel:{prev:"Prev",next:"Next",dots:"Choose slide to display",goto:"Go to slide {slide}"},modal:{close:"Close"},slideover:{close:"Close"},alert:{close:"Close"},table:{noData:"No data"},fileUpload:{removeFile:"Remove {filename}"}}}),hy=Symbol.for("nuxt-ui.locale-context"),QO=e=>{const t=e||$t(wt(hy,Fd));return JO($(()=>t.value||Fd))},gy=Kc(QO);function ZO(){const e=Pc("toasts",()=>[]),t=Y(!1),n=[],r=()=>`${Date.now()}-${Math.random().toString(36).slice(2,9)}`;async function s(){if(!(t.value||n.length===0)){for(t.value=!0;n.length>0;){const c=n.shift();await kt(),e.value=[...e.value,c].slice(-5)}t.value=!1}}function o(c){const u={id:r(),open:!0,...c};return n.push(u),s(),u}function i(c,u){const f=e.value.findIndex(d=>d.id===c);f!==-1&&(e.value[f]={...e.value[f],...u})}function a(c){const u=e.value.findIndex(f=>f.id===c);u!==-1&&(e.value[u]={...e.value[u],open:!1}),setTimeout(()=>{e.value=e.value.filter(f=>f.id!==c)},200)}function l(){e.value=[]}return{toasts:e,add:o,update:i,remove:a,clear:l}}const e$={slots:{root:"gap-2",base:"relative overflow-hidden rounded-full bg-accented",indicator:"rounded-full size-full transition-transform duration-200 ease-out",status:"flex text-dimmed transition-[width] duration-200",steps:"grid items-end",step:"truncate text-end row-start-1 col-start-1 transition-opacity"},variants:{animation:{carousel:"","carousel-inverse":"",swing:"",elastic:""},color:{primary:{indicator:"bg-primary",steps:"text-primary"},secondary:{indicator:"bg-secondary",steps:"text-secondary"},success:{indicator:"bg-success",steps:"text-success"},info:{indicator:"bg-info",steps:"text-info"},warning:{indicator:"bg-warning",steps:"text-warning"},error:{indicator:"bg-error",steps:"text-error"},neutral:{indicator:"bg-inverted",steps:"text-inverted"}},size:{"2xs":{status:"text-xs",steps:"text-xs"},xs:{status:"text-xs",steps:"text-xs"},sm:{status:"text-sm",steps:"text-sm"},md:{status:"text-sm",steps:"text-sm"},lg:{status:"text-sm",steps:"text-sm"},xl:{status:"text-base",steps:"text-base"},"2xl":{status:"text-base",steps:"text-base"}},step:{active:{step:"opacity-100"},first:{step:"opacity-100 text-muted"},other:{step:"opacity-0"},last:{step:""}},orientation:{horizontal:{root:"w-full flex flex-col",base:"w-full",status:"flex-row items-center justify-end min-w-fit"},vertical:{root:"h-full flex flex-row-reverse",base:"h-full",status:"flex-col justify-end min-h-fit"}},inverted:{true:{status:"self-end"}}},compoundVariants:[{inverted:!0,orientation:"horizontal",class:{step:"text-start",status:"flex-row-reverse"}},{inverted:!0,orientation:"vertical",class:{steps:"items-start",status:"flex-col-reverse"}},{orientation:"horizontal",size:"2xs",class:"h-px"},{orientation:"horizontal",size:"xs",class:"h-0.5"},{orientation:"horizontal",size:"sm",class:"h-1"},{orientation:"horizontal",size:"md",class:"h-2"},{orientation:"horizontal",size:"lg",class:"h-3"},{orientation:"horizontal",size:"xl",class:"h-4"},{orientation:"horizontal",size:"2xl",class:"h-5"},{orientation:"vertical",size:"2xs",class:"w-px"},{orientation:"vertical",size:"xs",class:"w-0.5"},{orientation:"vertical",size:"sm",class:"w-1"},{orientation:"vertical",size:"md",class:"w-2"},{orientation:"vertical",size:"lg",class:"w-3"},{orientation:"vertical",size:"xl",class:"w-4"},{orientation:"vertical",size:"2xl",class:"w-5"},{orientation:"horizontal",animation:"carousel",class:{indicator:"data-[state=indeterminate]:animate-[carousel_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_ease-in-out_infinite]"}},{orientation:"vertical",animation:"carousel",class:{indicator:"data-[state=indeterminate]:animate-[carousel-vertical_2s_ease-in-out_infinite]"}},{orientation:"horizontal",animation:"carousel-inverse",class:{indicator:"data-[state=indeterminate]:animate-[carousel-inverse_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]"}},{orientation:"vertical",animation:"carousel-inverse",class:{indicator:"data-[state=indeterminate]:animate-[carousel-inverse-vertical_2s_ease-in-out_infinite]"}},{orientation:"horizontal",animation:"swing",class:{indicator:"data-[state=indeterminate]:animate-[swing_2s_ease-in-out_infinite]"}},{orientation:"vertical",animation:"swing",class:{indicator:"data-[state=indeterminate]:animate-[swing-vertical_2s_ease-in-out_infinite]"}},{orientation:"horizontal",animation:"elastic",class:{indicator:"data-[state=indeterminate]:animate-[elastic_2s_ease-in-out_infinite]"}},{orientation:"vertical",animation:"elastic",class:{indicator:"data-[state=indeterminate]:animate-[elastic-vertical_2s_ease-in-out_infinite]"}}],defaultVariants:{animation:"carousel",color:"primary",size:"md"}},t$={__name:"UProgress",props:{as:{type:null,required:!1},max:{type:[Number,Array],required:!1},status:{type:Boolean,required:!1},inverted:{type:Boolean,required:!1,default:!1},size:{type:null,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},animation:{type:null,required:!1},class:{type:null,required:!1},ui:{type:null,required:!1},getValueLabel:{type:Function,required:!1},getValueText:{type:Function,required:!1},modelValue:{type:[Number,null],required:!1,default:null}},emits:["update:modelValue","update:max"],setup(e,{emit:t}){const n=e,r=t,s=ts(),{dir:o}=gy(),i=tt(),a=Xi(kr(n,"getValueLabel","getValueText","modelValue"),r),l=$(()=>a.value.modelValue===null),c=$(()=>Array.isArray(n.max)),u=$(()=>{if(!(l.value||!n.max))return Array.isArray(n.max)?n.max.length-1:Number(n.max)}),f=$(()=>{if(!l.value)switch(!0){case a.value.modelValue<0:return 0;case a.value.modelValue>(u.value??100):return 100;default:return Math.round(a.value.modelValue/(u.value??100)*100)}}),d=$(()=>{if(f.value!==void 0)return n.orientation==="vertical"?{transform:`translateY(${n.inverted?"":"-"}${100-f.value}%)`}:o.value==="rtl"?{transform:`translateX(${n.inverted?"-":""}${100-f.value}%)`}:{transform:`translateX(${n.inverted?"":"-"}${100-f.value}%)`}}),p=$(()=>{const m=`${Math.max(f.value??0,0)}%`;return n.orientation==="vertical"?{height:m}:{width:m}});function h(m){return m===Number(n.modelValue)}function g(m){return m===0}function y(m){return m===u.value}function b(m){return m=Number(m),h(m)&&!g(m)?"active":g(m)&&h(m)?"first":y(m)&&h(m)?"last":"other"}const _=$(()=>Ve({extend:Ve(e$),...i.ui?.progress||{}})({animation:n.animation,size:n.size,color:n.color,orientation:n.orientation,inverted:n.inverted}));return(m,v)=>(E(),j(k(Ue),{as:e.as,class:ye(_.value.root({class:[n.ui?.root,n.class]}))},{default:V(()=>[!l.value&&(e.status||s.status)?(E(),re("div",{key:0,class:ye(_.value.status({class:n.ui?.status})),style:Xt(p.value)},[ne(m.$slots,"status",{percent:f.value},()=>[Be(_e(f.value)+"% ",1)])],6)):he("",!0),Z(k(oS),pe(k(a),{max:u.value,class:_.value.base({class:n.ui?.base}),style:{transform:"translateZ(0)"}}),{default:V(()=>[Z(k(aS),{class:ye(_.value.indicator({class:n.ui?.indicator})),style:Xt(d.value)},null,8,["class","style"])]),_:1},16,["max","class"]),c.value?(E(),re("div",{key:1,class:ye(_.value.steps({class:n.ui?.steps}))},[(E(!0),re(be,null,Ot(e.max,(w,S)=>(E(),re("div",{key:S,class:ye(_.value.step({class:n.ui?.step,step:b(S)}))},[ne(m.$slots,`step-${S}`,{step:w},()=>[Be(_e(w),1)])],2))),128))],2)):he("",!0)]),_:3},8,["as","class"]))}},n$={slots:{root:"relative group overflow-hidden bg-default shadow-lg rounded-lg ring ring-default p-4 flex gap-2.5 focus:outline-none",wrapper:"w-0 flex-1 flex flex-col",title:"text-sm font-medium text-highlighted",description:"text-sm text-muted",icon:"shrink-0 size-5",avatar:"shrink-0",avatarSize:"2xl",actions:"flex gap-1.5 shrink-0",progress:"absolute inset-x-0 bottom-0",close:"p-0"},variants:{color:{primary:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary",icon:"text-primary"},secondary:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary",icon:"text-secondary"},success:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success",icon:"text-success"},info:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info",icon:"text-info"},warning:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning",icon:"text-warning"},error:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error",icon:"text-error"},neutral:{root:"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted",icon:"text-highlighted"}},orientation:{horizontal:{root:"items-center",actions:"items-center"},vertical:{root:"items-start",actions:"items-start mt-2.5"}},title:{true:{description:"mt-1"}}},defaultVariants:{color:"primary"}},r$={__name:"UToast",props:{as:{type:null,required:!1},title:{type:[String,Object,Function],required:!1},description:{type:[String,Object,Function],required:!1},icon:{type:String,required:!1},avatar:{type:Object,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:"vertical"},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:String,required:!1},actions:{type:Array,required:!1},progress:{type:[Boolean,Object],required:!1,default:!0},class:{type:null,required:!1},ui:{type:null,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},type:{type:String,required:!1},duration:{type:Number,required:!1}},emits:["escapeKeyDown","pause","resume","swipeStart","swipeMove","swipeCancel","swipeEnd","update:open"],setup(e,{expose:t,emit:n}){const r=e,s=n,o=ts(),{t:i}=gy(),a=tt(),l=Xi(kr(r,"as","defaultOpen","open","duration","type"),s),c=$(()=>Ve({extend:Ve(n$),...a.ui?.toast||{}})({color:r.color,orientation:r.orientation,title:!!r.title||!!o.title})),u=Y(),f=Y(0);return Dt(()=>{u.value&&kt(()=>{f.value=u.value?.$el?.getBoundingClientRect()?.height})}),t({height:f}),(d,p)=>(E(),j(k(RS),pe({ref_key:"el",ref:u},k(l),{"data-orientation":e.orientation,class:c.value.root({class:[r.ui?.root,r.class]}),style:{"--height":f.value}}),{default:V(({remaining:h,duration:g,open:y})=>[ne(d.$slots,"leading",{},()=>[e.avatar?(E(),j(Jc,pe({key:0,size:r.ui?.avatarSize||c.value.avatarSize()},e.avatar,{class:c.value.avatar({class:r.ui?.avatar})}),null,16,["size","class"])):e.icon?(E(),j(Tn,{key:1,name:e.icon,class:ye(c.value.icon({class:r.ui?.icon}))},null,8,["name","class"])):he("",!0)]),W("div",{class:ye(c.value.wrapper({class:r.ui?.wrapper}))},[e.title||o.title?(E(),j(k(OS),{key:0,class:ye(c.value.title({class:r.ui?.title}))},{default:V(()=>[ne(d.$slots,"title",{},()=>[typeof e.title=="function"?(E(),j(_n(e.title()),{key:0})):typeof e.title=="object"?(E(),j(_n(e.title),{key:1})):(E(),re(be,{key:2},[Be(_e(e.title),1)],64))])]),_:3},8,["class"])):he("",!0),e.description||o.description?(E(),j(k(ES),{key:1,class:ye(c.value.description({class:r.ui?.description}))},{default:V(()=>[ne(d.$slots,"description",{},()=>[typeof e.description=="function"?(E(),j(_n(e.description()),{key:0})):typeof e.description=="object"?(E(),j(_n(e.description),{key:1})):(E(),re(be,{key:2},[Be(_e(e.description),1)],64))])]),_:3},8,["class"])):he("",!0),e.orientation==="vertical"&&(e.actions?.length||o.actions)?(E(),re("div",{key:2,class:ye(c.value.actions({class:r.ui?.actions}))},[ne(d.$slots,"actions",{},()=>[(E(!0),re(be,null,Ot(e.actions,(b,_)=>(E(),j(k(Df),{key:_,"alt-text":b.label||"Action","as-child":"",onClick:p[0]||(p[0]=Rs(()=>{},["stop"]))},{default:V(()=>[Z(qo,pe({size:"xs",color:e.color},{ref_for:!0},b),null,16,["color"])]),_:2},1032,["alt-text"]))),128))])],2)):he("",!0)],2),e.orientation==="horizontal"&&(e.actions?.length||o.actions)||e.close?(E(),re("div",{key:0,class:ye(c.value.actions({class:r.ui?.actions,orientation:"horizontal"}))},[e.orientation==="horizontal"&&(e.actions?.length||o.actions)?ne(d.$slots,"actions",{key:0},()=>[(E(!0),re(be,null,Ot(e.actions,(b,_)=>(E(),j(k(Df),{key:_,"alt-text":b.label||"Action","as-child":"",onClick:p[1]||(p[1]=Rs(()=>{},["stop"]))},{default:V(()=>[Z(qo,pe({size:"xs",color:e.color},{ref_for:!0},b),null,16,["color"])]),_:2},1032,["alt-text"]))),128))]):he("",!0),e.close||o.close?(E(),j(k(Eg),{key:1,"as-child":""},{default:V(()=>[ne(d.$slots,"close",{ui:c.value},()=>[e.close?(E(),j(qo,pe({key:0,icon:e.closeIcon||k(a).ui.icons.close,color:"neutral",variant:"link","aria-label":k(i)("toast.close")},typeof e.close=="object"?e.close:{},{class:c.value.close({class:r.ui?.close}),onClick:p[2]||(p[2]=Rs(()=>{},["stop"]))}),null,16,["icon","aria-label","class"])):he("",!0)])]),_:3})):he("",!0)],2)):he("",!0),e.progress&&y&&h>0&&g?(E(),j(t$,pe({key:1,"model-value":h/g*100,color:e.color},typeof e.progress=="object"?e.progress:{},{size:"sm",class:c.value.progress({class:r.ui?.progress})}),null,16,["model-value","color","class"])):he("",!0)]),_:3},16,["data-orientation","class","style"]))}},s$={slots:{viewport:"fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",base:"pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"},variants:{position:{"top-left":{viewport:"left-4"},"top-center":{viewport:"left-1/2 transform -translate-x-1/2"},"top-right":{viewport:"right-4"},"bottom-left":{viewport:"left-4"},"bottom-center":{viewport:"left-1/2 transform -translate-x-1/2"},"bottom-right":{viewport:"right-4"}},swipeDirection:{up:"data-[swipe=end]:animate-[toast-slide-up_200ms_ease-out]",right:"data-[swipe=end]:animate-[toast-slide-right_200ms_ease-out]",down:"data-[swipe=end]:animate-[toast-slide-down_200ms_ease-out]",left:"data-[swipe=end]:animate-[toast-slide-left_200ms_ease-out]"}},compoundVariants:[{position:["top-left","top-center","top-right"],class:{viewport:"top-4",base:"top-0 data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out]"}},{position:["bottom-left","bottom-center","bottom-right"],class:{viewport:"bottom-4",base:"bottom-0 data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out]"}},{swipeDirection:["left","right"],class:"data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0"},{swipeDirection:["up","down"],class:"data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0"}],defaultVariants:{position:"bottom-right"}},o$={name:"Toaster"},i$=Object.assign(o$,{props:{position:{type:null,required:!1},expand:{type:Boolean,required:!1,default:!0},progress:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},class:{type:null,required:!1},ui:{type:null,required:!1},label:{type:String,required:!1},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeThreshold:{type:Number,required:!1}},setup(e){const t=e,{toasts:n,remove:r}=ZO(),s=tt(),o=_r(kr(t,"duration","label","swipeThreshold","disableSwipe")),i=Qg($t(()=>t.portal)),a=$(()=>{switch(t.position){case"top-center":return"up";case"top-right":case"bottom-right":return"right";case"bottom-center":return"down";case"top-left":case"bottom-left":return"left"}return"right"}),l=$(()=>Ve({extend:Ve(s$),...s.ui?.toaster||{}})({position:t.position,swipeDirection:a.value}));function c(y,b){y||r(b)}const u=Y(!1),f=$(()=>t.expand||u.value),d=Y([]),p=$(()=>d.value.reduce((y,{height:b})=>y+b+16,0)),h=$(()=>d.value[d.value.length-1]?.height||0);function g(y){return d.value.slice(y+1).reduce((b,{height:_})=>b+_+16,0)}return(y,b)=>(E(),j(k(fS),pe({"swipe-direction":a.value},k(o)),{default:V(()=>[ne(y.$slots,"default"),(E(!0),re(be,null,Ot(k(n),(_,m)=>(E(),j(r$,pe({key:_.id,ref_for:!0,ref_key:"refs",ref:d,progress:e.progress},{ref_for:!0},k(em)(_,["id","close"]),{close:_.close,"data-expanded":f.value,"data-front":!f.value&&m===k(n).length-1,style:{"--index":m-k(n).length+k(n).length,"--before":k(n).length-1-m,"--offset":g(m),"--scale":f.value?"1":"calc(1 - var(--before) * var(--scale-factor))","--translate":f.value?"calc(var(--offset) * var(--translate-factor))":"calc(var(--before) * var(--gap))","--transform":"translateY(var(--translate)) scale(var(--scale))"},class:l.value.base({class:[t.ui?.base,_.onClick?"cursor-pointer":void 0]}),"onUpdate:open":v=>c(v,_.id),onClick:v=>_.onClick&&_.onClick(_)}),null,16,["progress","close","data-expanded","data-front","style","class","onUpdate:open","onClick"]))),128)),Z(k(TS),xt(zt(k(i))),{default:V(()=>[Z(k(NS),{"data-expanded":f.value,class:ye(l.value.viewport({class:[t.ui?.viewport,t.class]})),style:Xt({"--scale-factor":"0.05","--translate-factor":e.position?.startsWith("top")?"1px":"-1px","--gap":e.position?.startsWith("top")?"16px":"-16px","--front-height":`${h.value}px`,"--height":`${p.value}px`}),onMouseenter:b[0]||(b[0]=_=>u.value=!0),onMouseleave:b[1]||(b[1]=_=>u.value=!1)},null,8,["data-expanded","class","style"])]),_:1},16)]),_:3},16,["swipe-direction"]))}}),a$=Object.assign(i$,{__name:"UToaster"});function l$(){const e=sr([]),t=(c,u)=>{const{props:f,defaultOpen:d,destroyOnClose:p}=u||{},h=gt({id:Symbol(""),isOpen:!!d,component:cc(c),isMounted:!!d,destroyOnClose:!!p,originalProps:f||{},props:{...f}});return e.push(h),{...h,open:g=>n(h.id,g),close:g=>r(h.id,g),patch:g=>i(h.id,g)}},n=(c,u)=>{const f=a(c);u?f.props={...f.originalProps,...u}:f.props={...f.originalProps},f.isOpen=!0,f.isMounted=!0;const d=new Promise(p=>f.resolvePromise=p);return Object.assign(d,{id:c,isMounted:f.isMounted,isOpen:f.isOpen,result:d})},r=(c,u)=>{const f=a(c);f.isOpen=!1,f.resolvePromise&&(f.resolvePromise(u),f.resolvePromise=void 0)},s=()=>{e.forEach(c=>r(c.id))},o=c=>{const u=a(c);if(u.isMounted=!1,u.destroyOnClose){const f=e.findIndex(d=>d.id===c);e.splice(f,1)}},i=(c,u)=>{const f=a(c);f.props={...f.props,...u}},a=c=>{const u=e.find(f=>f.id===c);if(!u)throw new Error("Overlay not found");return u};return{overlays:e,open:n,close:r,closeAll:s,create:t,patch:i,unmount:o,isOpen:c=>a(c).isOpen}}const c$=Kc(l$),u$={__name:"UOverlayProvider",setup(e){const{overlays:t,unmount:n,close:r}=c$(),s=$(()=>t.filter(a=>a.isMounted)),o=a=>{r(a),n(a)},i=(a,l)=>{r(a,l)};return(a,l)=>(E(!0),re(be,null,Ot(s.value,c=>(E(),j(_n(c.component),pe({key:c.id},{ref_for:!0},c.props,{open:c.isOpen,"onUpdate:open":u=>c.isOpen=u,onClose:u=>i(c.id,u),"onAfter:leave":u=>o(c.id)}),null,16,["open","onUpdate:open","onClose","onAfter:leave"]))),128))}},f$={name:"App"},d$=Object.assign(f$,{props:{tooltip:{type:Object,required:!1},toaster:{type:[Object,null],required:!1},locale:{type:Object,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:"body"},scrollBody:{type:[Boolean,Object],required:!1},nonce:{type:String,required:!1}},setup(e){const t=e,n=_r(kr(t,"scrollBody")),r=$t(()=>t.tooltip),s=$t(()=>t.toaster),o=$t(()=>t.locale);return dr(hy,o),dr(Yg,$t(()=>t.portal)),(a,l)=>(E(),j(k(Kk),pe({"use-id":()=>Ep(),dir:o.value?.dir,locale:o.value?.code},k(n)),{default:V(()=>[Z(k(jS),xt(zt(r.value)),{default:V(()=>[e.toaster!==null?(E(),j(a$,xt(pe({key:0},s.value)),{default:V(()=>[ne(a.$slots,"default")]),_:3},16)):ne(a.$slots,"default",{key:1}),Z(u$)]),_:3},16)]),_:3},16,["use-id","dir","locale"]))}}),p$=Object.assign(d$,{__name:"UApp"}),h$={class:"relative bg-base flex flex-col min-h-screen"},g$={class:"header glass sticky top-0 z-50"},m$={class:"header-content"},y$={class:"flex items-center gap-3 sm:gap-4"},b$={href:"https://nuxtseo.com",target:"_blank",class:"flex items-center opacity-90 hover:opacity-100 transition-opacity"},v$={class:"flex items-center gap-2"},w$={class:"brand-icon"},_$={class:"flex items-center gap-1 sm:gap-2"},x$={class:"nav-tabs"},k$=["onClick"],C$={class:"nav-tab-inner"},S$={class:"nav-label"},E$={class:"flex items-center gap-1"},A$={class:"flex-1 flex flex-col p-3 sm:p-4",style:{"min-height":"calc(100vh - 60px)"}},T$={class:"mx-auto flex flex-col w-full max-w-7xl"},P$={key:0,class:"flex items-center justify-center py-20"},R$={key:0,class:"space-y-5 animate-fade-up"},I$={class:"flex items-center gap-2"},O$={class:"font-semibold"},$$=["href"],L$={class:"space-y-5"},N$={key:0,class:"hint-callout"},M$={key:0,class:"flex gap-5"},D$={class:"flex-grow space-y-2"},F$={class:"flex gap-5"},B$={class:"flex-grow flex flex-col justify-center"},j$={key:0,class:"status-enabled"},q$={key:1,class:"status-disabled"},z$={class:"text-xs text-[var(--color-text-subtle)] mt-2"},H$={class:"flex gap-5"},U$={class:"flex-grow"},G$={key:1,class:"space-y-5 animate-fade-up"},V$={key:1,class:"empty-state card"},W$={key:2,class:"space-y-5 animate-fade-up"},K$={key:1,class:"empty-state card"},X$={key:3,class:"space-y-5 animate-fade-up"},J$={key:4,class:"h-full animate-fade-up"},Y$=ue({__name:"app",async setup(e){let t,n;[t,n]=Tb(()=>xO()),await t,n();const r=Y(!1),s=Y(!1);async function o(){s.value||(s.value=!0,r.value=!0,ot.value=null,await ly(),setTimeout(()=>{r.value=!1,s.value=!1},300))}const i=_E("@nuxtjs/sitemap:tab","sitemaps");function a(h){return ot.value?h==="sitemap"||h==="sitemap.xml"?`${ot.value.nitroOrigin}sitemap.xml`:h==="index"?`${ot.value.nitroOrigin}sitemap_index.xml`:wr(ot.value.nitroOrigin,ot.value.runtimeConfig?.sitemapsPathPrefix||"",`${h}-sitemap.xml`):""}function l(h){const g={};return Object.entries(h).forEach(([y,b])=>{b!==void 0&&(!Array.isArray(b)||b.length>0)&&y!=="includeAppSources"&&(g[y]=b)}),g}const c=$(()=>uy.value==="dark");$h({title:"Nuxt Sitemap",htmlAttrs:{class:()=>c.value?"dark":""}});const u=$(()=>ot.value?.runtimeConfig?.excludeAppSources||[]),f=$(()=>(ot.value?.globalSources||[]).filter(h=>h.sourceType==="app")),d=$(()=>(ot.value?.globalSources||[]).filter(h=>h.sourceType==="user")),p=[{value:"sitemaps",icon:"carbon:load-balancer-application",label:"Sitemaps",count:()=>Object.keys(ot.value?.sitemaps||{}).length||0},{value:"user-sources",icon:"carbon:group-account",label:"User Sources",count:()=>d.value.length},{value:"app-sources",icon:"carbon:bot",label:"App Sources",count:()=>f.value.length},{value:"debug",icon:"carbon:debug",label:"Debug"},{value:"docs",icon:"carbon:book",label:"Docs"}];return(h,g)=>{const y=wk,b=Tn,_=PA,m=NA,v=qo,w=WO,S=dy,P=py,T=p$;return E(),j(T,null,{default:V(()=>[W("div",h$,[g[19]||(g[19]=W("div",{class:"gradient-bg"},null,-1)),W("header",g$,[W("div",m$,[W("div",y$,[W("a",b$,[Z(y,{class:"h-6 sm:h-7"})]),g[2]||(g[2]=W("div",{class:"divider"},null,-1)),W("div",v$,[W("div",w$,[Z(b,{name:"carbon:load-balancer-application",class:"text-base sm:text-lg"})]),g[1]||(g[1]=W("h1",{class:"text-sm sm:text-base font-semibold tracking-tight text-[var(--color-text)]"}," Sitemap ",-1)),Z(_,{color:"neutral",variant:"subtle",size:"xs",class:"font-mono text-[10px] sm:text-xs hidden sm:inline-flex"},{default:V(()=>[Be(_e(k(ot)?.runtimeConfig?.version),1)]),_:1})])]),W("nav",_$,[W("div",x$,[(E(),re(be,null,Ot(p,R=>W("button",{key:R.value,type:"button",class:ye(["nav-tab",[k(i)===R.value?"active":"",r.value?"opacity-50 pointer-events-none":""]]),onClick:N=>i.value=R.value},[Z(m,{text:R.label,"delay-duration":300},{default:V(()=>[W("div",C$,[Z(b,{name:R.icon,class:ye(["text-base sm:text-lg",k(i)===R.value?"text-[var(--seo-green)]":""])},null,8,["name","class"]),W("span",S$,_e(R.label),1),R.count?(E(),j(_,{key:0,color:"neutral",variant:"subtle",size:"xs",class:"ml-1 hidden sm:inline-flex"},{default:V(()=>[Be(_e(R.count()),1)]),_:2},1024)):he("",!0)])]),_:2},1032,["text"])],10,k$)),64))]),W("div",E$,[Z(m,{text:"Refresh","delay-duration":300},{default:V(()=>[Z(v,{square:"",variant:"ghost",color:"neutral",size:"sm",icon:"carbon:reset",class:ye(["nav-action",{"refresh-spinning":s.value}]),disabled:s.value,onClick:o},null,8,["class","disabled"])]),_:1}),Z(m,{text:"GitHub","delay-duration":300},{default:V(()=>[Z(v,{square:"",variant:"ghost",color:"neutral",size:"sm",icon:"simple-icons:github",to:"https://github.com/nuxt-modules/sitemap",target:"_blank",class:"nav-action hidden sm:flex"})]),_:1})])])])]),W("div",A$,[W("main",T$,[!k(ot)?.globalSources||r.value?(E(),re("div",P$,[Z(b,{name:"carbon:circle-dash",class:"animate-spin text-3xl text-[var(--color-text-muted)]"})])):(E(),re(be,{key:1},[k(i)==="sitemaps"?(E(),re("div",R$,[g[11]||(g[11]=W("div",null,[W("h2",{class:"text-lg font-semibold mb-1"}," Sitemaps "),W("p",{class:"text-xs text-[var(--color-text-muted)]"}," The sitemaps generated from your site. ")],-1)),(E(!0),re(be,null,Ot(k(ot).sitemaps,(R,N)=>(E(),j(P,{key:N},{text:V(()=>[W("div",I$,[W("span",O$,_e(R.sitemapName),1),(R.sources||[]).some(X=>typeof X!="string"&&"error"in X&&!!X.error)?(E(),j(b,{key:0,name:"carbon:warning",class:"text-red-500"})):(R.sources||[]).some(X=>typeof X!="string"&&"_urlWarnings"in X&&X._urlWarnings?.length)?(E(),j(b,{key:1,name:"carbon:warning-alt",class:"text-amber-500"})):he("",!0)])]),description:V(()=>[W("a",{target:"_blank",href:a(R.sitemapName),class:"link-external text-sm"},_e(a(R.sitemapName)),9,$$)]),default:V(()=>[W("div",L$,[R.sitemapName==="index"?(E(),re("div",N$,[Z(b,{name:"carbon:information",class:"hint-callout-icon text-lg flex-shrink-0 mt-0.5"}),g[3]||(g[3]=W("div",{class:"text-sm text-[var(--color-text-muted)]"},[Be(" This is a special sitemap file that links to your other sitemaps. "),W("a",{href:"https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps",target:"_blank",class:"link-external"}," Learn more ")],-1))])):(E(),re(be,{key:1},[R.sources&&R.sources.length?(E(),re("div",M$,[g[4]||(g[4]=W("div",{class:"w-40 flex-shrink-0"},[W("div",{class:"font-semibold text-sm mb-1"}," Sources "),W("div",{class:"text-xs text-[var(--color-text-muted)]"}," Local sources associated with just this sitemap. ")],-1)),W("div",D$,[(E(!0),re(be,null,Ot(R.sources,(X,U)=>(E(),j(w,{key:U,source:X},null,8,["source"]))),128))])])):he("",!0),W("div",F$,[g[9]||(g[9]=W("div",{class:"w-40 flex-shrink-0"},[W("div",{class:"font-semibold text-sm mb-1"}," App Sources "),W("div",{class:"text-xs text-[var(--color-text-muted)]"},[Be(" Configured with the "),W("code",{class:"px-1 py-0.5 rounded bg-[var(--color-surface-sunken)]"},"includeAppSources"),Be(" option. ")])],-1)),W("div",B$,[R.includeAppSources&&u.value!==!0?(E(),re("div",j$,[Z(b,{name:"carbon:checkmark",class:"text-sm"}),g[5]||(g[5]=W("span",null,"Enabled",-1))])):(E(),re("div",q$,[Z(b,{name:"carbon:close",class:"text-sm"}),g[6]||(g[6]=W("span",null,"Disabled",-1))])),W("div",z$,[g[7]||(g[7]=Be(" Switch to ",-1)),W("button",{type:"button",class:"text-[var(--seo-green)] hover:underline",onClick:g[0]||(g[0]=X=>i.value="app-sources")}," App sources "),g[8]||(g[8]=Be(" to learn more. ",-1))])])]),W("div",H$,[g[10]||(g[10]=W("div",{class:"w-40 flex-shrink-0"},[W("div",{class:"font-semibold text-sm mb-1"}," Sitemap Options "),W("div",{class:"text-xs text-[var(--color-text-muted)]"}," Extra options used to filter the URLs on the final sitemap and set defaults. ")],-1)),W("div",U$,[Z(S,{class:"max-h-[350px] min-h-full overflow-y-auto",code:JSON.stringify(l(R),null,2),lang:"json"},null,8,["code"])])])],64))])]),_:2},1024))),128))])):k(i)==="app-sources"?(E(),re("div",G$,[g[14]||(g[14]=W("div",null,[W("h2",{class:"text-lg font-semibold mb-1"}," App Sources "),W("p",{class:"text-xs text-[var(--color-text-muted)]"}," Automatic global sources generated from your application. ")],-1)),f.value.length?(E(!0),re(be,{key:0},Ot(f.value,(R,N)=>(E(),j(w,{key:N,source:R},null,8,["source"]))),128)):(E(),re("div",V$,[Z(b,{name:"carbon:bot",class:"empty-state-icon"}),g[12]||(g[12]=W("p",{class:"text-sm font-medium mb-1"}," No app sources detected ",-1)),g[13]||(g[13]=W("p",{class:"text-xs opacity-70 max-w-xs"}," App sources are automatically discovered from your Nuxt application routes and pages. ",-1))]))])):k(i)==="user-sources"?(E(),re("div",W$,[g[17]||(g[17]=W("div",null,[W("h2",{class:"text-lg font-semibold mb-1"}," User Sources "),W("p",{class:"text-xs text-[var(--color-text-muted)]"}," Manually provided global sources provided by you. ")],-1)),d.value.length?(E(!0),re(be,{key:0},Ot(d.value,(R,N)=>(E(),j(w,{key:N,source:R},null,8,["source"]))),128)):(E(),re("div",K$,[Z(b,{name:"carbon:add-alt",class:"empty-state-icon"}),g[15]||(g[15]=W("p",{class:"text-sm font-medium mb-1"}," No user sources configured ",-1)),g[16]||(g[16]=W("p",{class:"text-xs opacity-70 max-w-xs"},[Be(" Add custom sources via the "),W("code",{class:"px-1 py-0.5 rounded bg-[var(--color-surface-sunken)] text-[10px]"},"sources"),Be(" option in your sitemap config. ")],-1))]))])):k(i)==="debug"?(E(),re("div",X$,[Z(P,{icon:"carbon:settings",text:"Runtime Config"},{default:V(()=>[Z(S,{code:JSON.stringify(k(ot)?.runtimeConfig,null,2),lang:"json"},null,8,["code"])]),_:1})])):k(i)==="docs"?(E(),re("div",J$,[...g[18]||(g[18]=[W("iframe",{src:"https://nuxtseo.com/sitemap",class:"w-full h-full border-none rounded-lg",style:{"min-height":"calc(100vh - 100px)"}},null,-1)])])):he("",!0)],64))])])])]),_:1})}}}),Q$={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error,r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,u=s?Ae(()=>xe(()=>import("./Cmw_hYOm.js"),__vite__mapDeps([2,3]),import.meta.url)):Ae(()=>xe(()=>import("./CZ3hLIr1.js"),__vite__mapDeps([4,5]),import.meta.url));return(f,d)=>(E(),j(k(u),xt(zt({status:k(r),statusText:k(o),statusCode:k(r),statusMessage:k(o),description:k(i),stack:k(a)})),null,16))}},Z$={key:0},Bd={__name:"nuxt-root",setup(e){const t=()=>null,n=Me(),r=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",r);Yt().beforeEach(c)}const s=!1;dr(Eh,Hi()),n.hooks.callHookWith(c=>c.map(u=>u()),"vue:setup");const o=Sc(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;Rp((c,u,f)=>{if(n.hooks.callHook("vue:error",c,u,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(fw(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>cw(c)),!1});const l=!1;return(c,u)=>(E(),j(Zb,{onResolve:k(r)},{default:V(()=>[k(i)?(E(),re("div",Z$)):k(o)?(E(),j(k(Q$),{key:1,error:k(o)},null,8,["error"])):k(l)?(E(),j(k(t),{key:2,context:k(l)},null,8,["context"])):k(s)?(E(),j(_n(k(s)),{key:3})):(E(),j(k(Y$),{key:4}))]),_:1},8,["onResolve"]))}};let jd;{let e;jd=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?qv(Bd):jv(Bd),s=Q0({vueApp:r});async function o(i){await s.callHook("app:error",i),s.payload.error||=Ec(i)}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&Yu.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(Yu.id)?.remove()});try{await tw(s,mk)}catch(i){o(i)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(X0),await s.hooks.callHook("app:mounted",r),await kt()}catch(i){o(i)}return r},e=jd().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{ng as _,W as a,Z as b,re as c,Be as d,p_ as e,j as f,gr as g,k as h,$ as i,_n as j,Vu as k,ni as l,wr as m,ye as n,E as o,he as p,ne as r,_e as t,$h as u,V as w};